index int64 0 66.5k | func_name stringlengths 2 5.36k | func_dep stringlengths 16 2.19k | func stringlengths 8 55.3k | test stringlengths 0 7.07k | opt stringclasses 4
values | language stringclasses 2
values | asm stringlengths 0 45.4k | ida_asm stringlengths 0 44.7k | ida_pseudo stringlengths 0 44.3k | ghidra_asm stringlengths 0 49.1k | ghidra_pseudo stringlengths 0 64.7k |
|---|---|---|---|---|---|---|---|---|---|---|---|
45,700 | JS_WriteString | bluesky950520[P]quickjs/quickjs.c | static void JS_WriteString(BCWriterState *s, JSString *p)
{
int i;
bc_put_leb128(s, ((uint32_t)p->len << 1) | p->is_wide_char);
if (p->is_wide_char) {
for(i = 0; i < p->len; i++)
bc_put_u16(s, p->u.str16[i]);
} else {
dbuf_put(&s->dbuf, p->u.str8, p->len);
}
} | O1 | c | JS_WriteString:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl 0x4(%rsi), %esi
roll %esi
addq $0x8, %r14
movq %r14, %rdi
callq 0x44c40
movq 0x4(%rbx), %rdx
testl %edx, %edx
js 0x4473a
addq $0x18, %rbx
andl $0x7fffffff, %edx # imm = 0x7FFFFFFF
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1a80e
testl $0x7fffffff, 0x4(%rbx) # imm = 0x7FFFFFFF
je 0x44777
xorl %r12d, %r12d
leaq 0x6(%rsp), %r15
movzwl 0x18(%rbx,%r12,2), %eax
movw %ax, 0x6(%rsp)
movl $0x2, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x1a80e
incq %r12
movq 0x4(%rbx), %rax
andl $0x7fffffff, %eax # imm = 0x7FFFFFFF
cmpq %rax, %r12
jb 0x4474b
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
| JS_WriteString:
push r15
push r14
push r12
push rbx
push rax
mov rbx, rsi
mov r14, rdi
mov esi, [rsi+4]
rol esi, 1
add r14, 8
mov rdi, r14
call dbuf_put_leb128
mov rdx, [rbx+4]
test edx, edx
js short loc_4473A
add rbx, 18h
and edx, 7FFFFFFFh
mov rdi, r14
mov rsi, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
jmp dbuf_put
loc_4473A:
test dword ptr [rbx+4], 7FFFFFFFh
jz short loc_44777
xor r12d, r12d
lea r15, [rsp+28h+var_22]
loc_4474B:
movzx eax, word ptr [rbx+r12*2+18h]
mov [rsp+28h+var_22], ax
mov edx, 2
mov rdi, r14
mov rsi, r15
call dbuf_put
inc r12
mov rax, [rbx+4]
and eax, 7FFFFFFFh
cmp r12, rax
jb short loc_4474B
loc_44777:
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
| unsigned long long JS_WriteString(long long a1, long long a2)
{
long long v2; // rax
_QWORD *v3; // r14
unsigned long long result; // rax
unsigned long long v5; // r12
_WORD v6[17]; // [rsp+0h] [rbp-22h] BYREF
v6[0] = HIWORD(v2);
v3 = (_QWORD *)(a1 + 8);
result = dbuf_put_leb128(a1 + 8, (unsigned int)__ROL4__(*(_DWORD *)(a2 + 4), 1));
if ( (int)*(_QWORD *)(a2 + 4) >= 0 )
return dbuf_put(v3, a2 + 24, *(_QWORD *)(a2 + 4) & 0x7FFFFFFFLL);
if ( (*(_DWORD *)(a2 + 4) & 0x7FFFFFFF) != 0 )
{
v5 = 0LL;
do
{
v6[0] = *(_WORD *)(a2 + 2 * v5 + 24);
dbuf_put(v3, (long long)v6, 2LL);
++v5;
result = *(_QWORD *)(a2 + 4) & 0x7FFFFFFFLL;
}
while ( v5 < result );
}
return result;
}
| JS_WriteString:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
MOV ESI,dword ptr [RSI + 0x4]
ROL ESI,0x1
ADD R14,0x8
MOV RDI,R14
CALL 0x00144c40
MOV RDX,qword ptr [RBX + 0x4]
TEST EDX,EDX
JS 0x0014473a
ADD RBX,0x18
AND EDX,0x7fffffff
MOV RDI,R14
MOV RSI,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
JMP 0x0011a80e
LAB_0014473a:
TEST dword ptr [RBX + 0x4],0x7fffffff
JZ 0x00144777
XOR R12D,R12D
LEA R15,[RSP + 0x6]
LAB_0014474b:
MOVZX EAX,word ptr [RBX + R12*0x2 + 0x18]
MOV word ptr [RSP + 0x6],AX
MOV EDX,0x2
MOV RDI,R14
MOV RSI,R15
CALL 0x0011a80e
INC R12
MOV RAX,qword ptr [RBX + 0x4]
AND EAX,0x7fffffff
CMP R12,RAX
JC 0x0014474b
LAB_00144777:
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
void JS_WriteString(long param_1,long param_2)
{
int8 in_RAX;
uint uVar1;
ulong uVar2;
int8 uStack_28;
param_1 = param_1 + 8;
uStack_28 = in_RAX;
dbuf_put_leb128(param_1,*(int *)(param_2 + 4) << 1 | (uint)(*(int *)(param_2 + 4) < 0));
uVar1 = (uint)*(int8 *)(param_2 + 4);
if (-1 < (int)uVar1) {
dbuf_put(param_1,param_2 + 0x18,uVar1 & 0x7fffffff);
return;
}
if ((*(uint *)(param_2 + 4) & 0x7fffffff) != 0) {
uVar2 = 0;
do {
uStack_28 = CONCAT26(*(int2 *)(param_2 + 0x18 + uVar2 * 2),(int6)uStack_28);
dbuf_put(param_1,(long)&uStack_28 + 6,2);
uVar2 = uVar2 + 1;
} while (uVar2 < ((uint)*(int8 *)(param_2 + 4) & 0x7fffffff));
}
return;
}
| |
45,701 | fmt::v10::appender fmt::v10::detail::write_escaped_cp<fmt::v10::appender, char>(fmt::v10::appender, fmt::v10::detail::find_escape_result<char> const&) | aimrt_mujoco_sim/_deps/fmt-src/include/fmt/format.h | auto write_escaped_cp(OutputIt out, const find_escape_result<Char>& escape)
-> OutputIt {
auto c = static_cast<Char>(escape.cp);
switch (escape.cp) {
case '\n':
*out++ = static_cast<Char>('\\');
c = static_cast<Char>('n');
break;
case '\r':
*out++ = static_cast<Char>('\\');
c = static_cast<Char>('r');
break;
case '\t':
*out++ = static_cast<Char>('\\');
c = static_cast<Char>('t');
break;
case '"':
FMT_FALLTHROUGH;
case '\'':
FMT_FALLTHROUGH;
case '\\':
*out++ = static_cast<Char>('\\');
break;
default:
if (escape.cp < 0x100) {
return write_codepoint<2, Char>(out, 'x', escape.cp);
}
if (escape.cp < 0x10000) {
return write_codepoint<4, Char>(out, 'u', escape.cp);
}
if (escape.cp < 0x110000) {
return write_codepoint<8, Char>(out, 'U', escape.cp);
}
for (Char escape_char : basic_string_view<Char>(
escape.begin, to_unsigned(escape.end - escape.begin))) {
out = write_codepoint<2, Char>(out, 'x',
static_cast<uint32_t>(escape_char) & 0xFF);
}
return out;
}
*out++ = c;
return out;
} | O3 | c | fmt::v10::appender fmt::v10::detail::write_escaped_cp<fmt::v10::appender, char>(fmt::v10::appender, fmt::v10::detail::find_escape_result<char> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x10(%rsi), %ebp
cmpl $0x21, %ebp
jg 0x9bb53
cmpl $0x9, %ebp
je 0x9bb8a
cmpl $0xa, %ebp
je 0x9bbd6
cmpl $0xd, %ebp
jne 0x9bbb5
movq 0x10(%rbx), %rax
leaq 0x1(%rax), %rsi
cmpq %rsi, 0x18(%rbx)
jae 0x9bb43
movq (%rbx), %rax
movq %rbx, %rdi
callq *(%rax)
movq 0x10(%rbx), %rax
leaq 0x1(%rax), %rsi
movq %rsi, 0x10(%rbx)
addq 0x8(%rbx), %rax
movb $0x72, %bpl
jmp 0x9bbff
cmpl $0x22, %ebp
je 0x9bb62
cmpl $0x27, %ebp
je 0x9bb62
cmpl $0x5c, %ebp
jne 0x9bbb5
movq 0x10(%rbx), %rax
leaq 0x1(%rax), %rsi
cmpq %rsi, 0x18(%rbx)
jae 0x9bb80
movq (%rbx), %rax
movq %rbx, %rdi
callq *(%rax)
movq 0x10(%rbx), %rax
leaq 0x1(%rax), %rsi
movq %rsi, 0x10(%rbx)
addq 0x8(%rbx), %rax
jmp 0x9bbff
movq 0x10(%rbx), %rax
leaq 0x1(%rax), %rsi
cmpq %rsi, 0x18(%rbx)
jae 0x9bba8
movq (%rbx), %rax
movq %rbx, %rdi
callq *(%rax)
movq 0x10(%rbx), %rax
leaq 0x1(%rax), %rsi
movq %rsi, 0x10(%rbx)
addq 0x8(%rbx), %rax
movb $0x74, %bpl
jmp 0x9bbff
cmpl $0xff, %ebp
ja 0x9bc3a
movq %rbx, %rdi
movl $0x78, %esi
movl %ebp, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x9be84
movq 0x10(%rbx), %rax
leaq 0x1(%rax), %rsi
cmpq %rsi, 0x18(%rbx)
jae 0x9bbf4
movq (%rbx), %rax
movq %rbx, %rdi
callq *(%rax)
movq 0x10(%rbx), %rax
leaq 0x1(%rax), %rsi
movq %rsi, 0x10(%rbx)
addq 0x8(%rbx), %rax
movb $0x6e, %bpl
movb $0x5c, (%rax)
movq 0x10(%rbx), %rax
leaq 0x1(%rax), %rsi
cmpq %rsi, 0x18(%rbx)
jae 0x9bc20
movq (%rbx), %rax
movq %rbx, %rdi
callq *(%rax)
movq 0x10(%rbx), %rax
leaq 0x1(%rax), %rsi
movq 0x8(%rbx), %rcx
movq %rsi, 0x10(%rbx)
movb %bpl, (%rcx,%rax)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
cmpl $0xffff, %ebp # imm = 0xFFFF
ja 0x9bc5b
movq %rbx, %rdi
movl $0x75, %esi
movl %ebp, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x9bf33
cmpl $0x10ffff, %ebp # imm = 0x10FFFF
ja 0x9bc7c
movq %rbx, %rdi
movl $0x55, %esi
movl %ebp, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x9bfe3
movq (%rsi), %r14
movq 0x8(%rsi), %r15
cmpq %r15, %r14
je 0x9bc2c
movzbl (%r14), %edx
movq %rbx, %rdi
movl $0x78, %esi
callq 0x9be84
movq %rax, %rbx
incq %r14
jmp 0x9bc83
| _ZN3fmt3v106detail16write_escaped_cpINS0_8appenderEcEET_S4_RKNS1_18find_escape_resultIT0_EE:
push rbp
push r15
push r14
push rbx
push rax
mov rbx, rdi
mov ebp, [rsi+10h]
cmp ebp, 21h ; '!'
jg short loc_9BB53
cmp ebp, 9
jz short loc_9BB8A
cmp ebp, 0Ah
jz loc_9BBD6
cmp ebp, 0Dh
jnz loc_9BBB5
mov rax, [rbx+10h]
lea rsi, [rax+1]
cmp [rbx+18h], rsi
jnb short loc_9BB43
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax]
mov rax, [rbx+10h]
lea rsi, [rax+1]
loc_9BB43:
mov [rbx+10h], rsi
add rax, [rbx+8]
mov bpl, 72h ; 'r'
jmp loc_9BBFF
loc_9BB53:
cmp ebp, 22h ; '"'
jz short loc_9BB62
cmp ebp, 27h ; '''
jz short loc_9BB62
cmp ebp, 5Ch ; '\'
jnz short loc_9BBB5
loc_9BB62:
mov rax, [rbx+10h]
lea rsi, [rax+1]
cmp [rbx+18h], rsi
jnb short loc_9BB80
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax]
mov rax, [rbx+10h]
lea rsi, [rax+1]
loc_9BB80:
mov [rbx+10h], rsi
add rax, [rbx+8]
jmp short loc_9BBFF
loc_9BB8A:
mov rax, [rbx+10h]
lea rsi, [rax+1]
cmp [rbx+18h], rsi
jnb short loc_9BBA8
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax]
mov rax, [rbx+10h]
lea rsi, [rax+1]
loc_9BBA8:
mov [rbx+10h], rsi
add rax, [rbx+8]
mov bpl, 74h ; 't'
jmp short loc_9BBFF
loc_9BBB5:
cmp ebp, 0FFh
ja short loc_9BC3A
mov rdi, rbx
mov esi, 78h ; 'x'
mov edx, ebp
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp _ZN3fmt3v106detail15write_codepointILm2EcNS0_8appenderEEET1_S4_cj; fmt::v10::detail::write_codepoint<2ul,char,fmt::v10::appender>(fmt::v10::appender,char,uint)
loc_9BBD6:
mov rax, [rbx+10h]
lea rsi, [rax+1]
cmp [rbx+18h], rsi
jnb short loc_9BBF4
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax]
mov rax, [rbx+10h]
lea rsi, [rax+1]
loc_9BBF4:
mov [rbx+10h], rsi
add rax, [rbx+8]
mov bpl, 6Eh ; 'n'
loc_9BBFF:
mov byte ptr [rax], 5Ch ; '\'
mov rax, [rbx+10h]
lea rsi, [rax+1]
cmp [rbx+18h], rsi
jnb short loc_9BC20
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax]
mov rax, [rbx+10h]
lea rsi, [rax+1]
loc_9BC20:
mov rcx, [rbx+8]
mov [rbx+10h], rsi
mov [rcx+rax], bpl
loc_9BC2C:
mov rax, rbx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_9BC3A:
cmp ebp, 0FFFFh
ja short loc_9BC5B
mov rdi, rbx
mov esi, 75h ; 'u'
mov edx, ebp
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp _ZN3fmt3v106detail15write_codepointILm4EcNS0_8appenderEEET1_S4_cj; fmt::v10::detail::write_codepoint<4ul,char,fmt::v10::appender>(fmt::v10::appender,char,uint)
loc_9BC5B:
cmp ebp, offset loc_10FFFF
ja short loc_9BC7C
mov rdi, rbx
mov esi, 55h ; 'U'
mov edx, ebp
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp _ZN3fmt3v106detail15write_codepointILm8EcNS0_8appenderEEET1_S4_cj; fmt::v10::detail::write_codepoint<8ul,char,fmt::v10::appender>(fmt::v10::appender,char,uint)
loc_9BC7C:
mov r14, [rsi]
mov r15, [rsi+8]
loc_9BC83:
cmp r14, r15
jz short loc_9BC2C
movzx edx, byte ptr [r14]
mov rdi, rbx
mov esi, 78h ; 'x'
call _ZN3fmt3v106detail15write_codepointILm2EcNS0_8appenderEEET1_S4_cj; fmt::v10::detail::write_codepoint<2ul,char,fmt::v10::appender>(fmt::v10::appender,char,uint)
mov rbx, rax
inc r14
jmp short loc_9BC83
| long long fmt::v10::detail::write_escaped_cp<fmt::v10::appender,char>(long long a1, unsigned __int8 **a2)
{
long long v2; // rbx
unsigned int v3; // ebp
long long v4; // rax
long long v5; // rsi
_BYTE *v6; // rax
long long v7; // rax
long long v8; // rsi
long long v9; // rax
long long v10; // rsi
long long v12; // rax
long long v13; // rsi
long long v14; // rax
long long v15; // rsi
long long v16; // rcx
unsigned __int8 *v17; // r14
unsigned __int8 *v18; // r15
v2 = a1;
v3 = *((_DWORD *)a2 + 4);
if ( (int)v3 > 33 )
{
if ( v3 == 34 || v3 == 39 || v3 == 92 )
{
v7 = *(_QWORD *)(a1 + 16);
v8 = v7 + 1;
if ( *(_QWORD *)(a1 + 24) < (unsigned long long)(v7 + 1) )
{
(**(void ( ***)(long long))a1)(a1);
v7 = *(_QWORD *)(a1 + 16);
v8 = v7 + 1;
}
*(_QWORD *)(a1 + 16) = v8;
v6 = (_BYTE *)(*(_QWORD *)(a1 + 8) + v7);
goto LABEL_22;
}
}
else
{
switch ( v3 )
{
case 9u:
v9 = *(_QWORD *)(a1 + 16);
v10 = v9 + 1;
if ( *(_QWORD *)(a1 + 24) < (unsigned long long)(v9 + 1) )
{
(**(void ( ***)(long long))a1)(a1);
v9 = *(_QWORD *)(a1 + 16);
v10 = v9 + 1;
}
*(_QWORD *)(a1 + 16) = v10;
v6 = (_BYTE *)(*(_QWORD *)(a1 + 8) + v9);
LOBYTE(v3) = 116;
goto LABEL_22;
case 0xAu:
v12 = *(_QWORD *)(a1 + 16);
v13 = v12 + 1;
if ( *(_QWORD *)(a1 + 24) < (unsigned long long)(v12 + 1) )
{
(**(void ( ***)(long long))a1)(a1);
v12 = *(_QWORD *)(a1 + 16);
v13 = v12 + 1;
}
*(_QWORD *)(a1 + 16) = v13;
v6 = (_BYTE *)(*(_QWORD *)(a1 + 8) + v12);
LOBYTE(v3) = 110;
goto LABEL_22;
case 0xDu:
v4 = *(_QWORD *)(a1 + 16);
v5 = v4 + 1;
if ( *(_QWORD *)(a1 + 24) < (unsigned long long)(v4 + 1) )
{
(**(void ( ***)(long long))a1)(a1);
v4 = *(_QWORD *)(a1 + 16);
v5 = v4 + 1;
}
*(_QWORD *)(a1 + 16) = v5;
v6 = (_BYTE *)(*(_QWORD *)(a1 + 8) + v4);
LOBYTE(v3) = 114;
LABEL_22:
*v6 = 92;
v14 = *(_QWORD *)(a1 + 16);
v15 = v14 + 1;
if ( *(_QWORD *)(a1 + 24) < (unsigned long long)(v14 + 1) )
{
(**(void ( ***)(long long))a1)(a1);
v14 = *(_QWORD *)(a1 + 16);
v15 = v14 + 1;
}
v16 = *(_QWORD *)(a1 + 8);
*(_QWORD *)(a1 + 16) = v15;
*(_BYTE *)(v16 + v14) = v3;
return v2;
}
}
if ( v3 <= 0xFF )
return fmt::v10::detail::write_codepoint<2ul,char,fmt::v10::appender>(a1, 120LL, v3);
if ( v3 <= 0xFFFF )
return fmt::v10::detail::write_codepoint<4ul,char,fmt::v10::appender>(a1, 117LL, v3);
if ( v3 > (unsigned int)&loc_10FFFF )
{
v17 = *a2;
v18 = a2[1];
while ( v17 != v18 )
v2 = fmt::v10::detail::write_codepoint<2ul,char,fmt::v10::appender>(v2, 120LL, *v17++);
return v2;
}
return fmt::v10::detail::write_codepoint<8ul,char,fmt::v10::appender>(a1, 85LL, v3);
}
| write_escaped_cp<fmt::v10::appender,char>:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV EBP,dword ptr [RSI + 0x10]
CMP EBP,0x21
JG 0x0019bb53
CMP EBP,0x9
JZ 0x0019bb8a
CMP EBP,0xa
JZ 0x0019bbd6
CMP EBP,0xd
JNZ 0x0019bbb5
MOV RAX,qword ptr [RBX + 0x10]
LEA RSI,[RAX + 0x1]
CMP qword ptr [RBX + 0x18],RSI
JNC 0x0019bb43
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX]
MOV RAX,qword ptr [RBX + 0x10]
LEA RSI,[RAX + 0x1]
LAB_0019bb43:
MOV qword ptr [RBX + 0x10],RSI
ADD RAX,qword ptr [RBX + 0x8]
MOV BPL,0x72
JMP 0x0019bbff
LAB_0019bb53:
CMP EBP,0x22
JZ 0x0019bb62
CMP EBP,0x27
JZ 0x0019bb62
CMP EBP,0x5c
JNZ 0x0019bbb5
LAB_0019bb62:
MOV RAX,qword ptr [RBX + 0x10]
LEA RSI,[RAX + 0x1]
CMP qword ptr [RBX + 0x18],RSI
JNC 0x0019bb80
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX]
MOV RAX,qword ptr [RBX + 0x10]
LEA RSI,[RAX + 0x1]
LAB_0019bb80:
MOV qword ptr [RBX + 0x10],RSI
ADD RAX,qword ptr [RBX + 0x8]
JMP 0x0019bbff
LAB_0019bb8a:
MOV RAX,qword ptr [RBX + 0x10]
LEA RSI,[RAX + 0x1]
CMP qword ptr [RBX + 0x18],RSI
JNC 0x0019bba8
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX]
MOV RAX,qword ptr [RBX + 0x10]
LEA RSI,[RAX + 0x1]
LAB_0019bba8:
MOV qword ptr [RBX + 0x10],RSI
ADD RAX,qword ptr [RBX + 0x8]
MOV BPL,0x74
JMP 0x0019bbff
LAB_0019bbb5:
CMP EBP,0xff
JA 0x0019bc3a
MOV RDI,RBX
MOV ESI,0x78
MOV EDX,EBP
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x0019be84
LAB_0019bbd6:
MOV RAX,qword ptr [RBX + 0x10]
LEA RSI,[RAX + 0x1]
CMP qword ptr [RBX + 0x18],RSI
JNC 0x0019bbf4
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX]
MOV RAX,qword ptr [RBX + 0x10]
LEA RSI,[RAX + 0x1]
LAB_0019bbf4:
MOV qword ptr [RBX + 0x10],RSI
ADD RAX,qword ptr [RBX + 0x8]
MOV BPL,0x6e
LAB_0019bbff:
MOV byte ptr [RAX],0x5c
MOV RAX,qword ptr [RBX + 0x10]
LEA RSI,[RAX + 0x1]
CMP qword ptr [RBX + 0x18],RSI
JNC 0x0019bc20
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX]
MOV RAX,qword ptr [RBX + 0x10]
LEA RSI,[RAX + 0x1]
LAB_0019bc20:
MOV RCX,qword ptr [RBX + 0x8]
MOV qword ptr [RBX + 0x10],RSI
MOV byte ptr [RCX + RAX*0x1],BPL
LAB_0019bc2c:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0019bc3a:
CMP EBP,0xffff
JA 0x0019bc5b
MOV RDI,RBX
MOV ESI,0x75
MOV EDX,EBP
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x0019bf33
LAB_0019bc5b:
CMP EBP,0x10ffff
JA 0x0019bc7c
MOV RDI,RBX
MOV ESI,0x55
MOV EDX,EBP
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x0019bfe3
LAB_0019bc7c:
MOV R14,qword ptr [RSI]
MOV R15,qword ptr [RSI + 0x8]
LAB_0019bc83:
CMP R14,R15
JZ 0x0019bc2c
MOVZX EDX,byte ptr [R14]
MOV RDI,RBX
MOV ESI,0x78
CALL 0x0019be84
MOV RBX,RAX
INC R14
JMP 0x0019bc83
|
/* fmt::v10::appender fmt::v10::detail::write_escaped_cp<fmt::v10::appender,
char>(fmt::v10::appender, fmt::v10::detail::find_escape_result<char> const&) */
int8 *
fmt::v10::detail::write_escaped_cp<fmt::v10::appender,char>(int8 *param_1,int8 *param_2)
{
int1 *puVar1;
long lVar2;
int1 *puVar3;
int8 *puVar4;
uint uVar5;
ulong uVar6;
uVar5 = *(uint *)(param_2 + 2);
if ((int)uVar5 < 0x22) {
if (uVar5 == 9) {
lVar2 = param_1[2];
uVar6 = lVar2 + 1;
if ((ulong)param_1[3] < uVar6) {
(**(code **)*param_1)(param_1);
lVar2 = param_1[2];
uVar6 = lVar2 + 1;
}
param_1[2] = uVar6;
puVar3 = (int1 *)(lVar2 + param_1[1]);
uVar5 = 0x74;
}
else if (uVar5 == 10) {
lVar2 = param_1[2];
uVar6 = lVar2 + 1;
if ((ulong)param_1[3] < uVar6) {
(**(code **)*param_1)(param_1);
lVar2 = param_1[2];
uVar6 = lVar2 + 1;
}
param_1[2] = uVar6;
puVar3 = (int1 *)(lVar2 + param_1[1]);
uVar5 = 0x6e;
}
else {
if (uVar5 != 0xd) goto LAB_0019bbb5;
lVar2 = param_1[2];
uVar6 = lVar2 + 1;
if ((ulong)param_1[3] < uVar6) {
(**(code **)*param_1)(param_1);
lVar2 = param_1[2];
uVar6 = lVar2 + 1;
}
param_1[2] = uVar6;
puVar3 = (int1 *)(lVar2 + param_1[1]);
uVar5 = 0x72;
}
}
else {
if (((uVar5 != 0x22) && (uVar5 != 0x27)) && (uVar5 != 0x5c)) {
LAB_0019bbb5:
if (uVar5 < 0x100) {
puVar4 = (int8 *)write_codepoint<2ul,char,fmt::v10::appender>(param_1,0x78,uVar5);
return puVar4;
}
if (0xffff < uVar5) {
if (0x10ffff < uVar5) {
puVar1 = (int1 *)param_2[1];
for (puVar3 = (int1 *)*param_2; puVar3 != puVar1; puVar3 = puVar3 + 1) {
param_1 = (int8 *)
write_codepoint<2ul,char,fmt::v10::appender>(param_1,0x78,*puVar3);
}
return param_1;
}
puVar4 = (int8 *)write_codepoint<8ul,char,fmt::v10::appender>(param_1,0x55,uVar5);
return puVar4;
}
puVar4 = (int8 *)write_codepoint<4ul,char,fmt::v10::appender>(param_1,0x75,uVar5);
return puVar4;
}
lVar2 = param_1[2];
uVar6 = lVar2 + 1;
if ((ulong)param_1[3] < uVar6) {
(**(code **)*param_1)(param_1);
lVar2 = param_1[2];
uVar6 = lVar2 + 1;
}
param_1[2] = uVar6;
puVar3 = (int1 *)(lVar2 + param_1[1]);
}
*puVar3 = 0x5c;
lVar2 = param_1[2];
uVar6 = lVar2 + 1;
if ((ulong)param_1[3] < uVar6) {
(**(code **)*param_1)(param_1);
lVar2 = param_1[2];
uVar6 = lVar2 + 1;
}
param_1[2] = uVar6;
*(char *)(param_1[1] + lVar2) = (char)uVar5;
return param_1;
}
| |
45,702 | evmone::advanced::Instruction const* evmone::advanced::(anonymous namespace)::op<&evmc_status_code evmone::advanced::instr::impl<(evmone::Opcode)49, &evmone::instr::core::balance(evmone::StackTop, long, evmone::ExecutionState&)>(evmone::advanced::AdvancedExecutionState&)>(evmone::advanced::Instruction const*, evmone::advanced::AdvancedExecutionState&) | corpus-core[P]colibri-stateless/build_O1/_deps/evmone_external-src/lib/evmone/advanced_instructions.cpp | const Instruction* op(const Instruction* instr, AdvancedExecutionState& state) noexcept
{
if (const auto status_code = InstrFn(state); status_code != EVMC_SUCCESS)
return state.exit(status_code);
return ++instr;
} | O1 | cpp | evmone::advanced::Instruction const* evmone::advanced::(anonymous namespace)::op<&evmc_status_code evmone::advanced::instr::impl<(evmone::Opcode)49, &evmone::instr::core::balance(evmone::StackTop, long, evmone::ExecutionState&)>(evmone::advanced::AdvancedExecutionState&)>(evmone::advanced::Instruction const*, evmone::advanced::AdvancedExecutionState&):
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x220(%rsi), %rsi
movq 0x228(%r14), %rdi
movq %r14, %rdx
callq 0x43ad2
movq %rdx, 0x220(%r14)
addq $-0x40, 0x228(%r14)
testl %eax, %eax
je 0x519dd
movl %eax, 0x78(%r14)
addq $0x10, %rbx
xorl %ecx, %ecx
testl %eax, %eax
cmoveq %rbx, %rcx
movq %rcx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| _ZN6evmone8advanced12_GLOBAL__N_12opIXadL_ZNS0_5instr4implILNS_6OpcodeE160EXadL_ZNS_5instr4core3logILm0EEENS_6ResultENS_8StackTopElRNS_14ExecutionStateEEEEE16evmc_status_codeRNS0_22AdvancedExecutionStateEEEEEPKNS0_11InstructionESI_SF_:
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
mov rsi, [rsi+220h]
mov rdi, [r14+228h]
mov rdx, r14
call _ZN6evmone5instr4core3logILm0EEENS_6ResultENS_8StackTopElRNS_14ExecutionStateE; evmone::instr::core::log<0ul>(evmone::StackTop,long,evmone::ExecutionState &)
mov [r14+220h], rdx
add qword ptr [r14+228h], 0FFFFFFFFFFFFFFC0h
test eax, eax
jz short loc_519DD
mov [r14+78h], eax
loc_519DD:
add rbx, 10h
xor ecx, ecx
test eax, eax
cmovz rcx, rbx
mov rax, rcx
add rsp, 8
pop rbx
pop r14
retn
| long long evmone::advanced::`anonymous namespace'::op<&evmc_status_code evmone::advanced::instr::impl<(evmone::Opcode)160,&evmone::Result evmone::instr::core::log<0ul>>>(
long long a1,
long long a2)
{
int v2; // eax
long long v3; // rdx
long long v4; // rcx
v2 = evmone::instr::core::log<0ul>(*(_QWORD **)(a2 + 552), *(evmone **)(a2 + 544), (_QWORD *)a2);
*(_QWORD *)(a2 + 544) = v3;
*(_QWORD *)(a2 + 552) -= 64LL;
if ( v2 )
*(_DWORD *)(a2 + 120) = v2;
v4 = 0LL;
if ( !v2 )
return a1 + 16;
return v4;
}
| op<&(evmc_status_code_evmone::advanced::instr::impl<(evmone::Opcode)160,&(evmone::Result_evmone::instr::core::log<0ul>(evmone::StackTop,long,evmone::ExecutionState&))>(evmone::advanced::AdvancedExecutionState&))>:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
MOV RSI,qword ptr [RSI + 0x220]
MOV RDI,qword ptr [R14 + 0x228]
MOV RDX,R14
CALL 0x00143ad2
MOV qword ptr [R14 + 0x220],RDX
ADD qword ptr [R14 + 0x228],-0x40
TEST EAX,EAX
JZ 0x001519dd
MOV dword ptr [R14 + 0x78],EAX
LAB_001519dd:
ADD RBX,0x10
XOR ECX,ECX
TEST EAX,EAX
CMOVZ RCX,RBX
MOV RAX,RCX
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* evmone::advanced::Instruction const* evmone::advanced::(anonymous
namespace)::op<&(evmc_status_code evmone::advanced::instr::impl<(evmone::Opcode)160,
&(evmone::Result evmone::instr::core::log<0ul>(evmone::StackTop, long,
evmone::ExecutionState&))>(evmone::advanced::AdvancedExecutionState&))>(evmone::advanced::Instruction
const*, evmone::advanced::AdvancedExecutionState&) */
Instruction *
evmone::advanced::(anonymous_namespace)::
op<&(evmc_status_code_evmone::advanced::instr::impl<(evmone::Opcode)160,&(evmone::Result_evmone::instr::core::log<0ul>(evmone::StackTop,long,evmone::ExecutionState&))>(evmone::advanced::AdvancedExecutionState&))>
(Instruction *param_1,AdvancedExecutionState *param_2)
{
int iVar1;
Instruction *pIVar2;
int8 extraout_RDX;
iVar1 = instr::core::log<0ul>
(*(int8 *)(param_2 + 0x228),*(int8 *)(param_2 + 0x220),param_2);
*(int8 *)(param_2 + 0x220) = extraout_RDX;
*(long *)(param_2 + 0x228) = *(long *)(param_2 + 0x228) + -0x40;
if (iVar1 != 0) {
*(int *)(param_2 + 0x78) = iVar1;
}
pIVar2 = (Instruction *)0x0;
if (iVar1 == 0) {
pIVar2 = param_1 + 0x10;
}
return pIVar2;
}
| |
45,703 | gguf_find_key | 7CodeWizard[P]stablediffusion/ggml/src/ggml.c | int gguf_find_key(const struct gguf_context * ctx, const char * key) {
// return -1 if key not found
int keyfound = -1;
const int n_kv = gguf_get_n_kv(ctx);
for (int i = 0; i < n_kv; ++i) {
if (strcmp(key, gguf_get_key(ctx, i)) == 0) {
keyfound = i;
break;
}
}
return keyfound;
} | O0 | c | gguf_find_key:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movl $0xffffffff, 0x14(%rsp) # imm = 0xFFFFFFFF
movq 0x20(%rsp), %rdi
callq 0x1383e0
movl %eax, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
movl 0xc(%rsp), %eax
cmpl 0x10(%rsp), %eax
jge 0x138277
movq 0x18(%rsp), %rax
movq %rax, (%rsp)
movq 0x20(%rsp), %rdi
movl 0xc(%rsp), %esi
callq 0x1383f0
movq (%rsp), %rdi
movq %rax, %rsi
callq 0xbaa0
cmpl $0x0, %eax
jne 0x138268
movl 0xc(%rsp), %eax
movl %eax, 0x14(%rsp)
jmp 0x138277
jmp 0x13826a
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x13822c
movl 0x14(%rsp), %eax
addq $0x28, %rsp
retq
| gguf_find_key:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov [rsp+28h+var_10], rsi
mov [rsp+28h+var_14], 0FFFFFFFFh
mov rdi, [rsp+28h+var_8]
call gguf_get_n_kv
mov [rsp+28h+var_18], eax
mov [rsp+28h+var_1C], 0
loc_13822C:
mov eax, [rsp+28h+var_1C]
cmp eax, [rsp+28h+var_18]
jge short loc_138277
mov rax, [rsp+28h+var_10]
mov [rsp+28h+var_28], rax
mov rdi, [rsp+28h+var_8]
mov esi, [rsp+28h+var_1C]
call gguf_get_key
mov rdi, [rsp+28h+var_28]
mov rsi, rax
call _strcmp
cmp eax, 0
jnz short loc_138268
mov eax, [rsp+28h+var_1C]
mov [rsp+28h+var_14], eax
jmp short loc_138277
loc_138268:
jmp short $+2
loc_13826A:
mov eax, [rsp+28h+var_1C]
add eax, 1
mov [rsp+28h+var_1C], eax
jmp short loc_13822C
loc_138277:
mov eax, [rsp+28h+var_14]
add rsp, 28h
retn
| long long gguf_find_key(long long a1, long long a2)
{
long long key; // rax
unsigned int i; // [rsp+Ch] [rbp-1Ch]
signed int n_kv; // [rsp+10h] [rbp-18h]
unsigned int v6; // [rsp+14h] [rbp-14h]
v6 = -1;
n_kv = gguf_get_n_kv(a1);
for ( i = 0; (int)i < n_kv; ++i )
{
key = gguf_get_key(a1, i);
if ( !(unsigned int)strcmp(a2, key) )
return i;
}
return v6;
}
| |||
45,704 | gguf_find_key | 7CodeWizard[P]stablediffusion/ggml/src/ggml.c | int gguf_find_key(const struct gguf_context * ctx, const char * key) {
// return -1 if key not found
int keyfound = -1;
const int n_kv = gguf_get_n_kv(ctx);
for (int i = 0; i < n_kv; ++i) {
if (strcmp(key, gguf_get_key(ctx, i)) == 0) {
keyfound = i;
break;
}
}
return keyfound;
} | O1 | c | gguf_find_key:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl 0x10(%rdi), %r12d
movl $0xffffffff, %ebx # imm = 0xFFFFFFFF
testl %r12d, %r12d
jle 0x9da59
movq %rsi, %r14
movq %rdi, %r15
xorl %ebp, %ebp
movq %r15, %rdi
movl %ebp, %esi
callq 0x9dabd
movq %r14, %rdi
movq %rax, %rsi
callq 0xa860
testl %eax, %eax
je 0x9da57
incl %ebp
cmpl %ebp, %r12d
jne 0x9da35
jmp 0x9da59
movl %ebp, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| gguf_find_key:
push rbp
push r15
push r14
push r12
push rbx
mov r12d, [rdi+10h]
mov ebx, 0FFFFFFFFh
test r12d, r12d
jle short loc_9DA59
mov r14, rsi
mov r15, rdi
xor ebp, ebp
loc_9DA35:
mov rdi, r15
mov esi, ebp
call gguf_get_key
mov rdi, r14
mov rsi, rax
call _strcmp
test eax, eax
jz short loc_9DA57
inc ebp
cmp r12d, ebp
jnz short loc_9DA35
jmp short loc_9DA59
loc_9DA57:
mov ebx, ebp
loc_9DA59:
mov eax, ebx
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long gguf_find_key(long long a1, long long a2)
{
int v2; // r12d
unsigned int v3; // ebx
unsigned int v4; // ebp
long long key; // rax
v2 = *(_DWORD *)(a1 + 16);
v3 = -1;
if ( v2 > 0 )
{
v4 = 0;
while ( 1 )
{
key = gguf_get_key(a1, v4);
if ( !(unsigned int)strcmp(a2, key) )
break;
if ( v2 == ++v4 )
return v3;
}
return v4;
}
return v3;
}
| |||
45,705 | gguf_find_key | 7CodeWizard[P]stablediffusion/ggml/src/ggml.c | int gguf_find_key(const struct gguf_context * ctx, const char * key) {
// return -1 if key not found
int keyfound = -1;
const int n_kv = gguf_get_n_kv(ctx);
for (int i = 0; i < n_kv; ++i) {
if (strcmp(key, gguf_get_key(ctx, i)) == 0) {
keyfound = i;
break;
}
}
return keyfound;
} | O2 | c | gguf_find_key:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl 0x10(%rdi), %r12d
xorl %r15d, %r15d
testl %r12d, %r12d
cmovlel %r15d, %r12d
pushq $-0x1
popq %rbp
cmpl %r15d, %r12d
je 0x7763b
movq %r14, %rdi
movl %r15d, %esi
callq 0x7770a
movq %rbx, %rdi
movq %rax, %rsi
callq 0xa880
testl %eax, %eax
je 0x77638
incl %r15d
jmp 0x77614
movl %r15d, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| gguf_find_key:
push rbp
push r15
push r14
push r12
push rbx
mov rbx, rsi
mov r14, rdi
mov r12d, [rdi+10h]
xor r15d, r15d
test r12d, r12d
cmovle r12d, r15d
push 0FFFFFFFFFFFFFFFFh
pop rbp
loc_77614:
cmp r12d, r15d
jz short loc_7763B
mov rdi, r14
mov esi, r15d
call gguf_get_key
mov rdi, rbx
mov rsi, rax
call _strcmp
test eax, eax
jz short loc_77638
inc r15d
jmp short loc_77614
loc_77638:
mov ebp, r15d
loc_7763B:
mov eax, ebp
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long gguf_find_key(long long a1, long long a2)
{
int v2; // r12d
unsigned int v3; // r15d
unsigned int v4; // ebp
long long key; // rax
v2 = *(_DWORD *)(a1 + 16);
v3 = 0;
if ( v2 <= 0 )
v2 = 0;
v4 = -1;
while ( v2 != v3 )
{
key = gguf_get_key(a1, v3);
if ( !(unsigned int)strcmp(a2, key) )
return v3;
++v3;
}
return v4;
}
| gguf_find_key:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV RBX,RSI
MOV R14,RDI
MOV R12D,dword ptr [RDI + 0x10]
XOR R15D,R15D
TEST R12D,R12D
CMOVLE R12D,R15D
PUSH -0x1
POP RBP
LAB_00177614:
CMP R12D,R15D
JZ 0x0017763b
MOV RDI,R14
MOV ESI,R15D
CALL 0x0017770a
MOV RDI,RBX
MOV RSI,RAX
CALL 0x0010a880
TEST EAX,EAX
JZ 0x00177638
INC R15D
JMP 0x00177614
LAB_00177638:
MOV EBP,R15D
LAB_0017763b:
MOV EAX,EBP
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
int gguf_find_key(long param_1,char *param_2)
{
int iVar1;
char *__s2;
int iVar2;
int iVar3;
iVar3 = 0;
iVar2 = *(int *)(param_1 + 0x10);
if (*(int *)(param_1 + 0x10) < 1) {
iVar2 = 0;
}
while( true ) {
if (iVar2 == iVar3) {
return -1;
}
__s2 = (char *)gguf_get_key(param_1,iVar3);
iVar1 = strcmp(param_2,__s2);
if (iVar1 == 0) break;
iVar3 = iVar3 + 1;
}
return iVar3;
}
| |
45,706 | pfs_spawn_thread_v1 | eloqsql/storage/perfschema/pfs.cc | int pfs_spawn_thread_v1(PSI_thread_key key,
my_thread_handle *thread, const my_thread_attr_t *attr,
void *(*start_routine)(void*), void *arg)
{
PFS_spawn_thread_arg *psi_arg;
PFS_thread *parent;
/* psi_arg can not be global, and can not be a local variable. */
psi_arg= (PFS_spawn_thread_arg*) my_malloc(PSI_NOT_INSTRUMENTED,
sizeof(PFS_spawn_thread_arg),
MYF(MY_WME));
if (unlikely(psi_arg == NULL))
return EAGAIN;
psi_arg->m_child_key= key;
psi_arg->m_child_identity= (arg ? arg : thread);
psi_arg->m_user_start_routine= start_routine;
psi_arg->m_user_arg= arg;
parent= my_thread_get_THR_PFS();
if (parent != NULL)
{
/*
Make a copy of the parent attributes.
This is required, because instrumentation for this thread (the parent)
may be destroyed before the child thread instrumentation is created.
*/
psi_arg->m_thread_internal_id= parent->m_thread_internal_id;
memcpy(psi_arg->m_username, parent->m_username, sizeof(psi_arg->m_username));
psi_arg->m_username_length= parent->m_username_length;
memcpy(psi_arg->m_hostname, parent->m_hostname, sizeof(psi_arg->m_hostname));
psi_arg->m_hostname_length= parent->m_hostname_length;
}
else
{
psi_arg->m_thread_internal_id= 0;
psi_arg->m_username_length= 0;
psi_arg->m_hostname_length= 0;
}
int result= my_thread_create(thread, attr, pfs_spawn_thread, psi_arg);
if (unlikely(result != 0))
my_free(psi_arg);
return result;
} | O3 | cpp | pfs_spawn_thread_v1:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r12
movq %rcx, %r13
movq %rdx, -0x30(%rbp)
movq %rsi, %r15
movl %edi, %r14d
pushq $0x10
popq %rdx
movl $0x2b0, %esi # imm = 0x2B0
xorl %edi, %edi
callq 0x48695
testq %rax, %rax
je 0x28c55
movq %rax, %rbx
movl %r14d, 0x290(%rax)
testq %r12, %r12
movq %r12, %rax
cmoveq %r15, %rax
movq %rax, 0x298(%rbx)
movq %r13, 0x2a0(%rbx)
movq %r12, 0x2a8(%rbx)
movl 0x3ace7c(%rip), %edi # 0x3d5a2c
callq 0x26540
testq %rax, %rax
je 0x28c13
movq %rax, %r12
movq 0x850(%rax), %rax
movq %rax, (%rbx)
leaq 0x8(%rbx), %rdi
leaq 0xcdc(%r12), %rsi
movl $0x180, %edx # imm = 0x180
callq 0x26290
movl 0xe5c(%r12), %eax
movl %eax, 0x188(%rbx)
movq %rbx, %rdi
addq $0x18c, %rdi # imm = 0x18C
movq %r12, %rsi
addq $0xe60, %rsi # imm = 0xE60
movl $0xff, %edx
callq 0x26290
movl 0xf60(%r12), %eax
jmp 0x28c20
andq $0x0, (%rbx)
andl $0x0, 0x188(%rbx)
xorl %eax, %eax
movl %eax, 0x28c(%rbx)
leaq -0x1c2(%rip), %rdx # 0x28a6b
movq %r15, %rdi
movq -0x30(%rbp), %rsi
movq %rbx, %rcx
callq 0x26640
movl %eax, %r14d
xorl %eax, %eax
testl %r14d, %r14d
jne 0x28c5a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0xb
popq %rax
jmp 0x28c46
movq %rbx, %rdi
callq 0x488c2
movl %r14d, %eax
jmp 0x28c46
| pfs_spawn_thread_v1:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r12, r8
mov r13, rcx
mov [rbp+var_30], rdx
mov r15, rsi
mov r14d, edi
push 10h
pop rdx
mov esi, 2B0h
xor edi, edi
call my_malloc
test rax, rax
jz loc_28C55
mov rbx, rax
mov [rax+290h], r14d
test r12, r12
mov rax, r12
cmovz rax, r15
mov [rbx+298h], rax
mov [rbx+2A0h], r13
mov [rbx+2A8h], r12
mov edi, cs:THR_PFS
call _pthread_getspecific
test rax, rax
jz short loc_28C13
mov r12, rax
mov rax, [rax+850h]
mov [rbx], rax
lea rdi, [rbx+8]
lea rsi, [r12+0CDCh]
mov edx, 180h
call _memcpy
mov eax, [r12+0E5Ch]
mov [rbx+188h], eax
mov rdi, rbx
add rdi, 18Ch
mov rsi, r12
add rsi, 0E60h
mov edx, 0FFh
call _memcpy
mov eax, [r12+0F60h]
jmp short loc_28C20
loc_28C13:
and qword ptr [rbx], 0
and dword ptr [rbx+188h], 0
xor eax, eax
loc_28C20:
mov [rbx+28Ch], eax
lea rdx, pfs_spawn_thread
mov rdi, r15
mov rsi, [rbp+var_30]
mov rcx, rbx
call _pthread_create
mov r14d, eax
xor eax, eax
test r14d, r14d
jnz short loc_28C5A
loc_28C46:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_28C55:
push 0Bh
pop rax
jmp short loc_28C46
loc_28C5A:
mov rdi, rbx
call my_free
mov eax, r14d
jmp short loc_28C46
| long long pfs_spawn_thread_v1(int a1, long long a2, long long a3, long long a4, long long a5)
{
long long v7; // rax
long long v8; // rbx
long long v9; // rax
long long v10; // rax
long long v11; // r12
int v12; // eax
unsigned int v13; // r14d
long long result; // rax
v7 = my_malloc(0LL, 688LL, 16LL);
if ( !v7 )
return 11LL;
v8 = v7;
*(_DWORD *)(v7 + 656) = a1;
v9 = a5;
if ( !a5 )
v9 = a2;
*(_QWORD *)(v8 + 664) = v9;
*(_QWORD *)(v8 + 672) = a4;
*(_QWORD *)(v8 + 680) = a5;
v10 = pthread_getspecific((unsigned int)THR_PFS);
if ( v10 )
{
v11 = v10;
*(_QWORD *)v8 = *(_QWORD *)(v10 + 2128);
memcpy(v8 + 8, v10 + 3292, 384LL);
*(_DWORD *)(v8 + 392) = *(_DWORD *)(v11 + 3676);
memcpy(v8 + 396, v11 + 3680, 255LL);
v12 = *(_DWORD *)(v11 + 3936);
}
else
{
*(_QWORD *)v8 = 0LL;
*(_DWORD *)(v8 + 392) = 0;
v12 = 0;
}
*(_DWORD *)(v8 + 652) = v12;
v13 = pthread_create(a2, a3, pfs_spawn_thread, v8);
result = 0LL;
if ( v13 )
{
my_free(v8);
return v13;
}
return result;
}
| pfs_spawn_thread_v1:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R12,R8
MOV R13,RCX
MOV qword ptr [RBP + -0x30],RDX
MOV R15,RSI
MOV R14D,EDI
PUSH 0x10
POP RDX
MOV ESI,0x2b0
XOR EDI,EDI
CALL 0x00148695
TEST RAX,RAX
JZ 0x00128c55
MOV RBX,RAX
MOV dword ptr [RAX + 0x290],R14D
TEST R12,R12
MOV RAX,R12
CMOVZ RAX,R15
MOV qword ptr [RBX + 0x298],RAX
MOV qword ptr [RBX + 0x2a0],R13
MOV qword ptr [RBX + 0x2a8],R12
MOV EDI,dword ptr [0x004d5a2c]
CALL 0x00126540
TEST RAX,RAX
JZ 0x00128c13
MOV R12,RAX
MOV RAX,qword ptr [RAX + 0x850]
MOV qword ptr [RBX],RAX
LEA RDI,[RBX + 0x8]
LEA RSI,[R12 + 0xcdc]
MOV EDX,0x180
CALL 0x00126290
MOV EAX,dword ptr [R12 + 0xe5c]
MOV dword ptr [RBX + 0x188],EAX
MOV RDI,RBX
ADD RDI,0x18c
MOV RSI,R12
ADD RSI,0xe60
MOV EDX,0xff
CALL 0x00126290
MOV EAX,dword ptr [R12 + 0xf60]
JMP 0x00128c20
LAB_00128c13:
AND qword ptr [RBX],0x0
AND dword ptr [RBX + 0x188],0x0
XOR EAX,EAX
LAB_00128c20:
MOV dword ptr [RBX + 0x28c],EAX
LEA RDX,[0x128a6b]
MOV RDI,R15
MOV RSI,qword ptr [RBP + -0x30]
MOV RCX,RBX
CALL 0x00126640
MOV R14D,EAX
XOR EAX,EAX
TEST R14D,R14D
JNZ 0x00128c5a
LAB_00128c46:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00128c55:
PUSH 0xb
POP RAX
JMP 0x00128c46
LAB_00128c5a:
MOV RDI,RBX
CALL 0x001488c2
MOV EAX,R14D
JMP 0x00128c46
|
int pfs_spawn_thread_v1(int4 param_1,pthread_t *param_2,pthread_attr_t *param_3,
int8 param_4,pthread_t *param_5)
{
int4 uVar1;
int iVar2;
int iVar3;
int8 *__arg;
pthread_t *ppVar4;
void *pvVar5;
__arg = (int8 *)my_malloc(0,0x2b0,0x10);
if (__arg == (int8 *)0x0) {
iVar3 = 0xb;
}
else {
*(int4 *)(__arg + 0x52) = param_1;
ppVar4 = param_5;
if (param_5 == (pthread_t *)0x0) {
ppVar4 = param_2;
}
__arg[0x53] = ppVar4;
__arg[0x54] = param_4;
__arg[0x55] = param_5;
pvVar5 = pthread_getspecific(THR_PFS);
if (pvVar5 == (void *)0x0) {
*__arg = 0;
*(int4 *)(__arg + 0x31) = 0;
uVar1 = 0;
}
else {
*__arg = *(int8 *)((long)pvVar5 + 0x850);
memcpy(__arg + 1,(void *)((long)pvVar5 + 0xcdc),0x180);
*(int4 *)(__arg + 0x31) = *(int4 *)((long)pvVar5 + 0xe5c);
memcpy((void *)((long)__arg + 0x18c),(void *)((long)pvVar5 + 0xe60),0xff);
uVar1 = *(int4 *)((long)pvVar5 + 0xf60);
}
*(int4 *)((long)__arg + 0x28c) = uVar1;
iVar2 = pthread_create(param_2,param_3,pfs_spawn_thread,__arg);
iVar3 = 0;
if (iVar2 != 0) {
my_free(__arg);
iVar3 = iVar2;
}
}
return iVar3;
}
| |
45,707 | stbi__load_and_postprocess_16bit(stbi__context*, int*, int*, int*, int) | monkey531[P]llama/examples/llava/../../common/stb_image.h | static stbi__uint16 *stbi__load_and_postprocess_16bit(stbi__context *s, int *x, int *y, int *comp, int req_comp)
{
stbi__result_info ri;
void *result = stbi__load_main(s, x, y, comp, req_comp, &ri, 16);
if (result == NULL)
return NULL;
// it is the responsibility of the loaders to make sure we get either 8 or 16 bit.
STBI_ASSERT(ri.bits_per_channel == 8 || ri.bits_per_channel == 16);
if (ri.bits_per_channel != 16) {
result = stbi__convert_8_to_16((stbi_uc *) result, *x, *y, req_comp == 0 ? *comp : req_comp);
ri.bits_per_channel = 16;
}
// @TODO: move stbi__convert_format16 to here
// @TODO: special case RGB-to-Y (and RGBA-to-YA) for 8-bit-to-16-bit case to keep more precision
if (stbi__vertically_flip_on_load) {
int channels = req_comp ? req_comp : *comp;
stbi__vertical_flip(result, *x, *y, channels * sizeof(stbi__uint16));
}
return (stbi__uint16 *) result;
} | O3 | c | stbi__load_and_postprocess_16bit(stbi__context*, int*, int*, int*, int):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r8d, %ebx
movq %rcx, %r13
movq %rdx, %r14
movq %rsi, %r15
movl $0x10, (%rsp)
leaq 0x1c(%rsp), %r9
callq 0x3526a
testq %rax, %rax
je 0x2873a
movq %rax, %rbp
cmpl $0x10, 0x1c(%rsp)
movq %r13, 0x10(%rsp)
jne 0x28742
movq %rbp, %r13
jmp 0x287b6
xorl %r13d, %r13d
jmp 0x287fd
movl (%r15), %eax
movl (%r14), %r12d
movl %ebx, %ecx
testl %ebx, %ebx
jne 0x28752
movl (%r13), %ecx
imull %eax, %r12d
imull %ecx, %r12d
leal (%r12,%r12), %eax
movslq %eax, %rdi
callq 0x1e010
movq %rax, %r13
testq %rax, %rax
je 0x2879c
testl %r12d, %r12d
jle 0x28792
movl %r12d, %eax
xorl %ecx, %ecx
movzbl (%rbp,%rcx), %edx
movl %edx, %esi
shll $0x8, %esi
orl %edx, %esi
movw %si, (%r13,%rcx,2)
incq %rcx
cmpq %rcx, %rax
jne 0x28778
movq %rbp, %rdi
callq 0x1de80
jmp 0x287b6
movq %fs:0x0, %rax
leaq 0xe2e24(%rip), %rcx # 0x10b5d3
movq %rcx, -0x20(%rax)
movq %fs:0x0, %rax
cmpl $0x0, -0x14(%rax)
leaq -0x18(%rax), %rax
leaq 0x12e9c9(%rip), %rcx # 0x1571a0
cmovneq %rax, %rcx
cmpl $0x0, (%rcx)
je 0x287fd
testl %ebx, %ebx
jne 0x287eb
movq 0x10(%rsp), %rax
movl (%rax), %ebx
movl (%r15), %esi
movl (%r14), %edx
addl %ebx, %ebx
movq %r13, %rdi
movl %ebx, %ecx
callq 0x37eea
movq %r13, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ZL32stbi__load_and_postprocess_16bitP13stbi__contextPiS1_S1_i:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov ebx, r8d
mov r13, rcx
mov r14, rdx
mov r15, rsi
mov [rsp+58h+var_58], 10h
lea r9, [rsp+58h+var_3C]
call _ZL15stbi__load_mainP13stbi__contextPiS1_S1_iP17stbi__result_infoi; stbi__load_main(stbi__context *,int *,int *,int *,int,stbi__result_info *,int)
test rax, rax
jz short loc_2873A
mov rbp, rax
cmp [rsp+58h+var_3C], 10h
mov [rsp+58h+var_48], r13
jnz short loc_28742
mov r13, rbp
jmp short loc_287B6
loc_2873A:
xor r13d, r13d
jmp loc_287FD
loc_28742:
mov eax, [r15]
mov r12d, [r14]
mov ecx, ebx
test ebx, ebx
jnz short loc_28752
mov ecx, [r13+0]
loc_28752:
imul r12d, eax
imul r12d, ecx
lea eax, [r12+r12]
movsxd rdi, eax
call _malloc
mov r13, rax
test rax, rax
jz short loc_2879C
test r12d, r12d
jle short loc_28792
mov eax, r12d
xor ecx, ecx
loc_28778:
movzx edx, byte ptr [rbp+rcx+0]
mov esi, edx
shl esi, 8
or esi, edx
mov [r13+rcx*2+0], si
inc rcx
cmp rax, rcx
jnz short loc_28778
loc_28792:
mov rdi, rbp
call _free
jmp short loc_287B6
loc_2879C:
mov rax, fs:0
lea rcx, aOutofmem; "outofmem"
mov [rax-20h], rcx
loc_287B6:
mov rax, fs:0
cmp dword ptr [rax-14h], 0
lea rax, [rax-18h]
lea rcx, _ZL36stbi__vertically_flip_on_load_global; stbi__vertically_flip_on_load_global
cmovnz rcx, rax
cmp dword ptr [rcx], 0
jz short loc_287FD
test ebx, ebx
jnz short loc_287EB
mov rax, [rsp+58h+var_48]
mov ebx, [rax]
loc_287EB:
mov esi, [r15]; int
mov edx, [r14]; int
add ebx, ebx
mov rdi, r13; void *
mov ecx, ebx; int
call _ZL19stbi__vertical_flipPviii; stbi__vertical_flip(void *,int,int,int)
loc_287FD:
mov rax, r13
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| _WORD * stbi__load_and_postprocess_16bit(long long a1, int *a2, int *a3, int *a4, long long a5)
{
int v5; // ebx
long long main; // rax
long long v9; // rbp
_WORD *v10; // r13
int v11; // ecx
int v12; // r12d
long long i; // rcx
unsigned long long v14; // rax
bool v15; // zf
int *v16; // rax
int *v17; // rcx
int *v19; // [rsp+10h] [rbp-48h]
_DWORD v20[15]; // [rsp+1Ch] [rbp-3Ch] BYREF
v5 = a5;
main = stbi__load_main(a1, a2, a3, a4, a5, v20, 16);
if ( !main )
return 0LL;
v9 = main;
v19 = a4;
if ( v20[0] == 16 )
{
v10 = (_WORD *)main;
}
else
{
v11 = v5;
if ( !v5 )
v11 = *a4;
v12 = v11 * *a2 * *a3;
v10 = (_WORD *)malloc(2 * v12);
if ( v10 )
{
if ( v12 > 0 )
{
for ( i = 0LL; i != v12; ++i )
v10[i] = *(unsigned __int8 *)(v9 + i) | (*(unsigned __int8 *)(v9 + i) << 8);
}
free(v9);
}
else
{
*(_QWORD *)(__readfsqword(0) - 32) = "outofmem";
}
}
v14 = __readfsqword(0);
v15 = *(_DWORD *)(v14 - 20) == 0;
v16 = (int *)(v14 - 24);
v17 = &stbi__vertically_flip_on_load_global;
if ( !v15 )
v17 = v16;
if ( *v17 )
{
if ( !v5 )
v5 = *v19;
stbi__vertical_flip(v10, *a2, *a3, 2 * v5);
}
return v10;
}
| stbi__load_and_postprocess_16bit:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV EBX,R8D
MOV R13,RCX
MOV R14,RDX
MOV R15,RSI
MOV dword ptr [RSP],0x10
LEA R9,[RSP + 0x1c]
CALL 0x0013526a
TEST RAX,RAX
JZ 0x0012873a
MOV RBP,RAX
CMP dword ptr [RSP + 0x1c],0x10
MOV qword ptr [RSP + 0x10],R13
JNZ 0x00128742
MOV R13,RBP
JMP 0x001287b6
LAB_0012873a:
XOR R13D,R13D
JMP 0x001287fd
LAB_00128742:
MOV EAX,dword ptr [R15]
MOV R12D,dword ptr [R14]
MOV ECX,EBX
TEST EBX,EBX
JNZ 0x00128752
MOV ECX,dword ptr [R13]
LAB_00128752:
IMUL R12D,EAX
IMUL R12D,ECX
LEA EAX,[R12 + R12*0x1]
MOVSXD RDI,EAX
CALL 0x0011e010
MOV R13,RAX
TEST RAX,RAX
JZ 0x0012879c
TEST R12D,R12D
JLE 0x00128792
MOV EAX,R12D
XOR ECX,ECX
LAB_00128778:
MOVZX EDX,byte ptr [RBP + RCX*0x1]
MOV ESI,EDX
SHL ESI,0x8
OR ESI,EDX
MOV word ptr [R13 + RCX*0x2],SI
INC RCX
CMP RAX,RCX
JNZ 0x00128778
LAB_00128792:
MOV RDI,RBP
CALL 0x0011de80
JMP 0x001287b6
LAB_0012879c:
MOV RAX,qword ptr FS:[0x0]
LEA RCX,[0x20b5d3]
MOV qword ptr [RAX + -0x20],RCX
LAB_001287b6:
MOV RAX,qword ptr FS:[0x0]
CMP dword ptr [RAX + -0x14],0x0
LEA RAX,[RAX + -0x18]
LEA RCX,[0x2571a0]
CMOVNZ RCX,RAX
CMP dword ptr [RCX],0x0
JZ 0x001287fd
TEST EBX,EBX
JNZ 0x001287eb
MOV RAX,qword ptr [RSP + 0x10]
MOV EBX,dword ptr [RAX]
LAB_001287eb:
MOV ESI,dword ptr [R15]
MOV EDX,dword ptr [R14]
ADD EBX,EBX
MOV RDI,R13
MOV ECX,EBX
CALL 0x00137eea
LAB_001287fd:
MOV RAX,R13
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* stbi__load_and_postprocess_16bit(stbi__context*, int*, int*, int*, int) */
void * stbi__load_and_postprocess_16bit
(stbi__context *param_1,int *param_2,int *param_3,int *param_4,int param_5)
{
void *__ptr;
void *pvVar1;
int iVar2;
ulong uVar3;
int *piVar4;
uint uVar5;
long *in_FS_OFFSET;
int local_3c [3];
__ptr = (void *)stbi__load_main(param_1,param_2,param_3,param_4,param_5,
(stbi__result_info *)local_3c,0x10);
if (__ptr == (void *)0x0) {
__ptr = (void *)0x0;
}
else {
if (local_3c[0] != 0x10) {
iVar2 = param_5;
if (param_5 == 0) {
iVar2 = *param_4;
}
uVar5 = *param_3 * *param_2 * iVar2;
pvVar1 = malloc((long)(int)(uVar5 * 2));
if (pvVar1 == (void *)0x0) {
*(char **)(*in_FS_OFFSET + -0x20) = "outofmem";
__ptr = pvVar1;
}
else {
if (0 < (int)uVar5) {
uVar3 = 0;
do {
*(ushort *)((long)pvVar1 + uVar3 * 2) =
CONCAT11(*(int1 *)((long)__ptr + uVar3),*(int1 *)((long)__ptr + uVar3))
;
uVar3 = uVar3 + 1;
} while (uVar5 != uVar3);
}
free(__ptr);
__ptr = pvVar1;
}
}
piVar4 = &stbi__vertically_flip_on_load_global;
if (*(int *)(*in_FS_OFFSET + -0x14) != 0) {
piVar4 = (int *)(*in_FS_OFFSET + -0x18);
}
if (*piVar4 != 0) {
if (param_5 == 0) {
param_5 = *param_4;
}
stbi__vertical_flip(__ptr,*param_2,*param_3,param_5 * 2);
}
}
return __ptr;
}
| |
45,708 | lunasvg::SVGMaskElement::SVGMaskElement(lunasvg::Document*) | dmazzella[P]pylunasvg/lunasvg/source/svgelement.cpp | SVGMaskElement::SVGMaskElement(Document* document)
: SVGElement(document, ElementID::Mask)
, m_x(PropertyID::X, LengthDirection::Horizontal, LengthNegativeMode::Allow, -10.f, LengthUnits::Percent)
, m_y(PropertyID::Y, LengthDirection::Vertical, LengthNegativeMode::Allow, -10.f, LengthUnits::Percent)
, m_width(PropertyID::Width, LengthDirection::Horizontal, LengthNegativeMode::Forbid, 120.f, LengthUnits::Percent)
, m_height(PropertyID::Height, LengthDirection::Vertical, LengthNegativeMode::Forbid, 120.f, LengthUnits::Percent)
, m_maskUnits(PropertyID::MaskUnits, Units::ObjectBoundingBox)
, m_maskContentUnits(PropertyID::MaskContentUnits, Units::UserSpaceOnUse)
{
addProperty(m_x);
addProperty(m_y);
addProperty(m_width);
addProperty(m_height);
addProperty(m_maskUnits);
addProperty(m_maskContentUnits);
} | O0 | cpp | lunasvg::SVGMaskElement::SVGMaskElement(lunasvg::Document*):
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x30(%rbp)
movq -0x10(%rbp), %rsi
movl $0xb, %edx
callq 0x18830
movq -0x30(%rbp), %rdi
leaq 0xa4ba7(%rip), %rax # 0xc1d38
movq %rax, (%rdi)
addq $0x70, %rdi
movq %rdi, -0x28(%rbp)
movl $0x4b, %esi
xorl %ecx, %ecx
movss 0x6f22d(%rip), %xmm0 # 0x8c3d8
movl $0x1, %r8d
movl %ecx, %edx
callq 0x20d00
jmp 0x1d1ba
movq -0x30(%rbp), %rdi
addq $0x88, %rdi
movq %rdi, -0x38(%rbp)
movl $0x4e, %esi
xorl %ecx, %ecx
movss 0x6f200(%rip), %xmm0 # 0x8c3d8
movl $0x1, %r8d
movl %r8d, %edx
callq 0x20d00
jmp 0x1d1e8
movq -0x30(%rbp), %rdi
addq $0xa0, %rdi
movq %rdi, -0x40(%rbp)
movl $0x4a, %esi
xorl %edx, %edx
movss 0x6f1d6(%rip), %xmm0 # 0x8c3dc
movl $0x1, %r8d
movl %r8d, %ecx
callq 0x20d00
jmp 0x1d216
movq -0x30(%rbp), %rdi
addq $0xb8, %rdi
movq %rdi, -0x48(%rbp)
movl $0x1b, %esi
movss 0x6f1aa(%rip), %xmm0 # 0x8c3dc
movl $0x1, %r8d
movl %r8d, %edx
movl %r8d, %ecx
callq 0x20d00
jmp 0x1d245
movq -0x30(%rbp), %rdi
addq $0xd0, %rdi
movq %rdi, -0x50(%rbp)
movl $0x27, %esi
movl $0x1, %edx
callq 0x21580
jmp 0x1d265
movq -0x30(%rbp), %rdi
addq $0xe0, %rdi
movq %rdi, -0x58(%rbp)
movl $0x26, %esi
xorl %edx, %edx
callq 0x21580
jmp 0x1d282
movq -0x30(%rbp), %rdi
movb $0x0, 0xf0(%rdi)
movq %rdi, %rsi
addq $0x70, %rsi
callq 0x19a70
jmp 0x1d29b
movq -0x30(%rbp), %rdi
movq %rdi, %rsi
addq $0x88, %rsi
callq 0x19a70
jmp 0x1d2b0
movq -0x30(%rbp), %rdi
movq %rdi, %rsi
addq $0xa0, %rsi
callq 0x19a70
jmp 0x1d2c5
movq -0x30(%rbp), %rdi
movq %rdi, %rsi
addq $0xb8, %rsi
callq 0x19a70
jmp 0x1d2da
movq -0x30(%rbp), %rdi
movq %rdi, %rsi
addq $0xd0, %rsi
callq 0x19a70
jmp 0x1d2ef
movq -0x30(%rbp), %rdi
movq %rdi, %rsi
addq $0xe0, %rsi
callq 0x19a70
jmp 0x1d304
addq $0x60, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x1d3a3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x1d39a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x1d391
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x1d388
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x1d37f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x1d376
movq -0x58(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
callq 0x215d0
movq -0x50(%rbp), %rdi
callq 0x215d0
movq -0x48(%rbp), %rdi
callq 0xfb10
movq -0x40(%rbp), %rdi
callq 0xfb10
movq -0x38(%rbp), %rdi
callq 0xfb10
movq -0x28(%rbp), %rdi
callq 0xfb10
movq -0x30(%rbp), %rdi
callq 0xfc00
movq -0x18(%rbp), %rdi
callq 0xb6c0
nopw %cs:(%rax,%rax)
| _ZN7lunasvg14SVGMaskElementC2EPNS_8DocumentE:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rdi, [rbp+var_8]
mov [rbp+var_30], rdi
mov rsi, [rbp+var_10]
mov edx, 0Bh
call _ZN7lunasvg10SVGElementC2EPNS_8DocumentENS_9ElementIDE; lunasvg::SVGElement::SVGElement(lunasvg::Document *,lunasvg::ElementID)
mov rdi, [rbp+var_30]
lea rax, off_C1D38
mov [rdi], rax
add rdi, 70h ; 'p'
mov [rbp+var_28], rdi
mov esi, 4Bh ; 'K'
xor ecx, ecx
movss xmm0, cs:dword_8C3D8
mov r8d, 1
mov edx, ecx
call _ZN7lunasvg9SVGLengthC2ENS_10PropertyIDENS_15LengthDirectionENS_18LengthNegativeModeEfNS_11LengthUnitsE; lunasvg::SVGLength::SVGLength(lunasvg::PropertyID,lunasvg::LengthDirection,lunasvg::LengthNegativeMode,float,lunasvg::LengthUnits)
jmp short $+2
loc_1D1BA:
mov rdi, [rbp+var_30]
add rdi, 88h
mov [rbp+var_38], rdi
mov esi, 4Eh ; 'N'
xor ecx, ecx
movss xmm0, cs:dword_8C3D8
mov r8d, 1
mov edx, r8d
call _ZN7lunasvg9SVGLengthC2ENS_10PropertyIDENS_15LengthDirectionENS_18LengthNegativeModeEfNS_11LengthUnitsE; lunasvg::SVGLength::SVGLength(lunasvg::PropertyID,lunasvg::LengthDirection,lunasvg::LengthNegativeMode,float,lunasvg::LengthUnits)
jmp short $+2
loc_1D1E8:
mov rdi, [rbp+var_30]
add rdi, 0A0h
mov [rbp+var_40], rdi
mov esi, 4Ah ; 'J'
xor edx, edx
movss xmm0, cs:dword_8C3DC
mov r8d, 1
mov ecx, r8d
call _ZN7lunasvg9SVGLengthC2ENS_10PropertyIDENS_15LengthDirectionENS_18LengthNegativeModeEfNS_11LengthUnitsE; lunasvg::SVGLength::SVGLength(lunasvg::PropertyID,lunasvg::LengthDirection,lunasvg::LengthNegativeMode,float,lunasvg::LengthUnits)
jmp short $+2
loc_1D216:
mov rdi, [rbp+var_30]
add rdi, 0B8h
mov [rbp+var_48], rdi
mov esi, 1Bh
movss xmm0, cs:dword_8C3DC
mov r8d, 1
mov edx, r8d
mov ecx, r8d
call _ZN7lunasvg9SVGLengthC2ENS_10PropertyIDENS_15LengthDirectionENS_18LengthNegativeModeEfNS_11LengthUnitsE; lunasvg::SVGLength::SVGLength(lunasvg::PropertyID,lunasvg::LengthDirection,lunasvg::LengthNegativeMode,float,lunasvg::LengthUnits)
jmp short $+2
loc_1D245:
mov rdi, [rbp+var_30]
add rdi, 0D0h
mov [rbp+var_50], rdi
mov esi, 27h ; '''
mov edx, 1
call _ZN7lunasvg14SVGEnumerationINS_5UnitsEEC2ENS_10PropertyIDES1_; lunasvg::SVGEnumeration<lunasvg::Units>::SVGEnumeration(lunasvg::PropertyID,lunasvg::Units)
jmp short $+2
loc_1D265:
mov rdi, [rbp+var_30]
add rdi, 0E0h
mov [rbp+var_58], rdi
mov esi, 26h ; '&'
xor edx, edx
call _ZN7lunasvg14SVGEnumerationINS_5UnitsEEC2ENS_10PropertyIDES1_; lunasvg::SVGEnumeration<lunasvg::Units>::SVGEnumeration(lunasvg::PropertyID,lunasvg::Units)
jmp short $+2
loc_1D282:
mov rdi, [rbp+var_30]; this
mov byte ptr [rdi+0F0h], 0
mov rsi, rdi
add rsi, 70h ; 'p'; lunasvg::SVGProperty *
call _ZN7lunasvg10SVGElement11addPropertyERNS_11SVGPropertyE; lunasvg::SVGElement::addProperty(lunasvg::SVGProperty &)
jmp short $+2
loc_1D29B:
mov rdi, [rbp+var_30]; this
mov rsi, rdi
add rsi, 88h; lunasvg::SVGProperty *
call _ZN7lunasvg10SVGElement11addPropertyERNS_11SVGPropertyE; lunasvg::SVGElement::addProperty(lunasvg::SVGProperty &)
jmp short $+2
loc_1D2B0:
mov rdi, [rbp+var_30]; this
mov rsi, rdi
add rsi, 0A0h; lunasvg::SVGProperty *
call _ZN7lunasvg10SVGElement11addPropertyERNS_11SVGPropertyE; lunasvg::SVGElement::addProperty(lunasvg::SVGProperty &)
jmp short $+2
loc_1D2C5:
mov rdi, [rbp+var_30]; this
mov rsi, rdi
add rsi, 0B8h; lunasvg::SVGProperty *
call _ZN7lunasvg10SVGElement11addPropertyERNS_11SVGPropertyE; lunasvg::SVGElement::addProperty(lunasvg::SVGProperty &)
jmp short $+2
loc_1D2DA:
mov rdi, [rbp+var_30]; this
mov rsi, rdi
add rsi, 0D0h; lunasvg::SVGProperty *
call _ZN7lunasvg10SVGElement11addPropertyERNS_11SVGPropertyE; lunasvg::SVGElement::addProperty(lunasvg::SVGProperty &)
jmp short $+2
loc_1D2EF:
mov rdi, [rbp+var_30]; this
mov rsi, rdi
add rsi, 0E0h; lunasvg::SVGProperty *
call _ZN7lunasvg10SVGElement11addPropertyERNS_11SVGPropertyE; lunasvg::SVGElement::addProperty(lunasvg::SVGProperty &)
jmp short $+2
loc_1D304:
add rsp, 60h
pop rbp
retn
mov rcx, rax
mov eax, edx
mov [rbp+var_18], rcx
mov [rbp+var_1C], eax
jmp loc_1D3A3
mov rcx, rax
mov eax, edx
mov [rbp+var_18], rcx
mov [rbp+var_1C], eax
jmp short loc_1D39A
mov rcx, rax
mov eax, edx
mov [rbp+var_18], rcx
mov [rbp+var_1C], eax
jmp short loc_1D391
mov rcx, rax
mov eax, edx
mov [rbp+var_18], rcx
mov [rbp+var_1C], eax
jmp short loc_1D388
mov rcx, rax
mov eax, edx
mov [rbp+var_18], rcx
mov [rbp+var_1C], eax
jmp short loc_1D37F
mov rcx, rax
mov eax, edx
mov [rbp+var_18], rcx
mov [rbp+var_1C], eax
jmp short loc_1D376
mov rdi, [rbp+var_58]
mov rcx, rax
mov eax, edx
mov [rbp+var_18], rcx
mov [rbp+var_1C], eax
call _ZN7lunasvg14SVGEnumerationINS_5UnitsEED2Ev; lunasvg::SVGEnumeration<lunasvg::Units>::~SVGEnumeration()
loc_1D376:
mov rdi, [rbp+var_50]
call _ZN7lunasvg14SVGEnumerationINS_5UnitsEED2Ev; lunasvg::SVGEnumeration<lunasvg::Units>::~SVGEnumeration()
loc_1D37F:
mov rdi, [rbp+var_48]; this
call _ZN7lunasvg9SVGLengthD2Ev; lunasvg::SVGLength::~SVGLength()
loc_1D388:
mov rdi, [rbp+var_40]; this
call _ZN7lunasvg9SVGLengthD2Ev; lunasvg::SVGLength::~SVGLength()
loc_1D391:
mov rdi, [rbp+var_38]; this
call _ZN7lunasvg9SVGLengthD2Ev; lunasvg::SVGLength::~SVGLength()
loc_1D39A:
mov rdi, [rbp+var_28]; this
call _ZN7lunasvg9SVGLengthD2Ev; lunasvg::SVGLength::~SVGLength()
loc_1D3A3:
mov rdi, [rbp+var_30]; this
call _ZN7lunasvg10SVGElementD2Ev; lunasvg::SVGElement::~SVGElement()
mov rdi, [rbp+var_18]
call __Unwind_Resume
| long long lunasvg::SVGMaskElement::SVGMaskElement(lunasvg::SVGMaskElement *this, lunasvg::Document *a2)
{
lunasvg::SVGElement::SVGElement((long long)this, a2, 11);
*(_QWORD *)this = off_C1D38;
lunasvg::SVGLength::SVGLength((char *)this + 112, 75LL, 0LL, 0LL, COERCE_DOUBLE(3240099840LL));
lunasvg::SVGLength::SVGLength((char *)this + 136, 78LL, 1LL, 0LL, COERCE_DOUBLE(3240099840LL));
lunasvg::SVGLength::SVGLength((char *)this + 160, 74LL, 0LL, 1LL, COERCE_DOUBLE(1123024896LL));
lunasvg::SVGLength::SVGLength((char *)this + 184, 27LL, 1LL, 1LL, COERCE_DOUBLE(1123024896LL));
lunasvg::SVGEnumeration<lunasvg::Units>::SVGEnumeration((char *)this + 208, 39LL, 1LL);
lunasvg::SVGEnumeration<lunasvg::Units>::SVGEnumeration((char *)this + 224, 38LL, 0LL);
*((_BYTE *)this + 240) = 0;
lunasvg::SVGElement::addProperty(this, (lunasvg::SVGMaskElement *)((char *)this + 112));
lunasvg::SVGElement::addProperty(this, (lunasvg::SVGMaskElement *)((char *)this + 136));
lunasvg::SVGElement::addProperty(this, (lunasvg::SVGMaskElement *)((char *)this + 160));
lunasvg::SVGElement::addProperty(this, (lunasvg::SVGMaskElement *)((char *)this + 184));
lunasvg::SVGElement::addProperty(this, (lunasvg::SVGMaskElement *)((char *)this + 208));
return lunasvg::SVGElement::addProperty(this, (lunasvg::SVGMaskElement *)((char *)this + 224));
}
| SVGMaskElement:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x30],RDI
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,0xb
CALL 0x00118830
MOV RDI,qword ptr [RBP + -0x30]
LEA RAX,[0x1c1d38]
MOV qword ptr [RDI],RAX
ADD RDI,0x70
MOV qword ptr [RBP + -0x28],RDI
LAB_0011d19c:
MOV ESI,0x4b
XOR ECX,ECX
MOVSS XMM0,dword ptr [0x0018c3d8]
MOV R8D,0x1
MOV EDX,ECX
CALL 0x00120d00
JMP 0x0011d1ba
LAB_0011d1ba:
MOV RDI,qword ptr [RBP + -0x30]
ADD RDI,0x88
MOV qword ptr [RBP + -0x38],RDI
LAB_0011d1c9:
MOV ESI,0x4e
XOR ECX,ECX
MOVSS XMM0,dword ptr [0x0018c3d8]
MOV R8D,0x1
MOV EDX,R8D
CALL 0x00120d00
JMP 0x0011d1e8
LAB_0011d1e8:
MOV RDI,qword ptr [RBP + -0x30]
ADD RDI,0xa0
MOV qword ptr [RBP + -0x40],RDI
LAB_0011d1f7:
MOV ESI,0x4a
XOR EDX,EDX
MOVSS XMM0,dword ptr [0x0018c3dc]
MOV R8D,0x1
MOV ECX,R8D
CALL 0x00120d00
JMP 0x0011d216
LAB_0011d216:
MOV RDI,qword ptr [RBP + -0x30]
ADD RDI,0xb8
MOV qword ptr [RBP + -0x48],RDI
LAB_0011d225:
MOV ESI,0x1b
MOVSS XMM0,dword ptr [0x0018c3dc]
MOV R8D,0x1
MOV EDX,R8D
MOV ECX,R8D
CALL 0x00120d00
JMP 0x0011d245
LAB_0011d245:
MOV RDI,qword ptr [RBP + -0x30]
ADD RDI,0xd0
MOV qword ptr [RBP + -0x50],RDI
LAB_0011d254:
MOV ESI,0x27
MOV EDX,0x1
CALL 0x00121580
JMP 0x0011d265
LAB_0011d265:
MOV RDI,qword ptr [RBP + -0x30]
ADD RDI,0xe0
MOV qword ptr [RBP + -0x58],RDI
LAB_0011d274:
MOV ESI,0x26
XOR EDX,EDX
CALL 0x00121580
JMP 0x0011d282
LAB_0011d282:
MOV RDI,qword ptr [RBP + -0x30]
MOV byte ptr [RDI + 0xf0],0x0
MOV RSI,RDI
ADD RSI,0x70
LAB_0011d294:
CALL 0x00119a70
JMP 0x0011d29b
LAB_0011d29b:
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,RDI
ADD RSI,0x88
CALL 0x00119a70
JMP 0x0011d2b0
LAB_0011d2b0:
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,RDI
ADD RSI,0xa0
CALL 0x00119a70
JMP 0x0011d2c5
LAB_0011d2c5:
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,RDI
ADD RSI,0xb8
CALL 0x00119a70
JMP 0x0011d2da
LAB_0011d2da:
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,RDI
ADD RSI,0xd0
CALL 0x00119a70
JMP 0x0011d2ef
LAB_0011d2ef:
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,RDI
ADD RSI,0xe0
CALL 0x00119a70
LAB_0011d302:
JMP 0x0011d304
LAB_0011d304:
ADD RSP,0x60
POP RBP
RET
| ||
45,709 | lunasvg::SVGMaskElement::SVGMaskElement(lunasvg::Document*) | dmazzella[P]pylunasvg/lunasvg/source/svgelement.cpp | SVGMaskElement::SVGMaskElement(Document* document)
: SVGElement(document, ElementID::Mask)
, m_x(PropertyID::X, LengthDirection::Horizontal, LengthNegativeMode::Allow, -10.f, LengthUnits::Percent)
, m_y(PropertyID::Y, LengthDirection::Vertical, LengthNegativeMode::Allow, -10.f, LengthUnits::Percent)
, m_width(PropertyID::Width, LengthDirection::Horizontal, LengthNegativeMode::Forbid, 120.f, LengthUnits::Percent)
, m_height(PropertyID::Height, LengthDirection::Vertical, LengthNegativeMode::Forbid, 120.f, LengthUnits::Percent)
, m_maskUnits(PropertyID::MaskUnits, Units::ObjectBoundingBox)
, m_maskContentUnits(PropertyID::MaskContentUnits, Units::UserSpaceOnUse)
{
addProperty(m_x);
addProperty(m_y);
addProperty(m_width);
addProperty(m_height);
addProperty(m_maskUnits);
addProperty(m_maskContentUnits);
} | O2 | cpp | lunasvg::SVGMaskElement::SVGMaskElement(lunasvg::Document*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0xb
popq %rdx
callq 0xe6ca
leaq 0x42e95(%rip), %rax # 0x53db8
movq %rax, (%rbx)
leaq 0x70(%rbx), %r14
pushq $0x4b
popq %rsi
movss 0x2965b(%rip), %xmm0 # 0x3a590
pushq $0x1
popq %r8
movq %r14, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x11df4
leaq 0x88(%rbx), %r15
pushq $0x4e
popq %rsi
movss 0x29639(%rip), %xmm0 # 0x3a590
pushq $0x1
popq %rdx
movq %r15, %rdi
xorl %ecx, %ecx
movl %edx, %r8d
callq 0x11df4
leaq 0xa0(%rbx), %r12
pushq $0x4a
popq %rsi
movss 0x2961b(%rip), %xmm0 # 0x3a594
pushq $0x1
popq %rcx
movq %r12, %rdi
xorl %edx, %edx
movl %ecx, %r8d
callq 0x11df4
movq %r12, (%rsp)
leaq 0xb8(%rbx), %r13
pushq $0x1b
popq %rsi
movss 0x295f5(%rip), %xmm0 # 0x3a594
pushq $0x1
popq %rcx
movq %r13, %rdi
movl %ecx, %edx
movl %ecx, %r8d
callq 0x11df4
movq %r15, %r12
leaq 0xd0(%rbx), %rbp
pushq $0x27
popq %rsi
pushq $0x1
popq %rdx
movq %rbp, %rdi
callq 0x11f10
leaq 0xe0(%rbx), %r15
pushq $0x26
popq %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x11f10
movb $0x0, 0xf0(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
callq 0xef2e
movq %rbx, %rdi
movq %r12, %rsi
callq 0xef2e
movq %rbx, %rdi
movq (%rsp), %rsi
callq 0xef2e
movq %rbx, %rdi
movq %r13, %rsi
callq 0xef2e
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xef2e
movq %rbx, %rdi
movq %r15, %rsi
callq 0xef2e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x11040
jmp 0x11040
jmp 0x11040
jmp 0x11040
jmp 0x11040
jmp 0x11040
movq %rax, %r14
movq %rbx, %rdi
callq 0xbe6a
movq %r14, %rdi
callq 0xa560
nop
| _ZN7lunasvg14SVGMaskElementC2EPNS_8DocumentE:
push rbp; Alternative name is 'lunasvg::SVGMaskElement::SVGMaskElement(lunasvg::Document *)'
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdi
push 0Bh
pop rdx
call _ZN7lunasvg10SVGElementC2EPNS_8DocumentENS_9ElementIDE; lunasvg::SVGElement::SVGElement(lunasvg::Document *,lunasvg::ElementID)
lea rax, off_53DB8
mov [rbx], rax
lea r14, [rbx+70h]
push 4Bh ; 'K'
pop rsi
movss xmm0, cs:dword_3A590
push 1
pop r8
mov rdi, r14
xor edx, edx
xor ecx, ecx
call _ZN7lunasvg9SVGLengthC2ENS_10PropertyIDENS_15LengthDirectionENS_18LengthNegativeModeEfNS_11LengthUnitsE; lunasvg::SVGLength::SVGLength(lunasvg::PropertyID,lunasvg::LengthDirection,lunasvg::LengthNegativeMode,float,lunasvg::LengthUnits)
lea r15, [rbx+88h]
push 4Eh ; 'N'
pop rsi
movss xmm0, cs:dword_3A590
push 1
pop rdx
mov rdi, r15
xor ecx, ecx
mov r8d, edx
call _ZN7lunasvg9SVGLengthC2ENS_10PropertyIDENS_15LengthDirectionENS_18LengthNegativeModeEfNS_11LengthUnitsE; lunasvg::SVGLength::SVGLength(lunasvg::PropertyID,lunasvg::LengthDirection,lunasvg::LengthNegativeMode,float,lunasvg::LengthUnits)
lea r12, [rbx+0A0h]
push 4Ah ; 'J'
pop rsi
movss xmm0, cs:dword_3A594
push 1
pop rcx
mov rdi, r12
xor edx, edx
mov r8d, ecx
call _ZN7lunasvg9SVGLengthC2ENS_10PropertyIDENS_15LengthDirectionENS_18LengthNegativeModeEfNS_11LengthUnitsE; lunasvg::SVGLength::SVGLength(lunasvg::PropertyID,lunasvg::LengthDirection,lunasvg::LengthNegativeMode,float,lunasvg::LengthUnits)
mov [rsp+38h+var_38], r12
lea r13, [rbx+0B8h]
push 1Bh
pop rsi
movss xmm0, cs:dword_3A594
push 1
pop rcx
mov rdi, r13
mov edx, ecx
mov r8d, ecx
call _ZN7lunasvg9SVGLengthC2ENS_10PropertyIDENS_15LengthDirectionENS_18LengthNegativeModeEfNS_11LengthUnitsE; lunasvg::SVGLength::SVGLength(lunasvg::PropertyID,lunasvg::LengthDirection,lunasvg::LengthNegativeMode,float,lunasvg::LengthUnits)
mov r12, r15
lea rbp, [rbx+0D0h]
push 27h ; '''
pop rsi
push 1
pop rdx
mov rdi, rbp
call _ZN7lunasvg14SVGEnumerationINS_5UnitsEEC2ENS_10PropertyIDES1_; lunasvg::SVGEnumeration<lunasvg::Units>::SVGEnumeration(lunasvg::PropertyID,lunasvg::Units)
lea r15, [rbx+0E0h]
push 26h ; '&'
pop rsi
mov rdi, r15
xor edx, edx
call _ZN7lunasvg14SVGEnumerationINS_5UnitsEEC2ENS_10PropertyIDES1_; lunasvg::SVGEnumeration<lunasvg::Units>::SVGEnumeration(lunasvg::PropertyID,lunasvg::Units)
mov byte ptr [rbx+0F0h], 0
mov rdi, rbx; this
mov rsi, r14; lunasvg::SVGProperty *
call _ZN7lunasvg10SVGElement11addPropertyERNS_11SVGPropertyE; lunasvg::SVGElement::addProperty(lunasvg::SVGProperty &)
mov rdi, rbx; this
mov rsi, r12; lunasvg::SVGProperty *
call _ZN7lunasvg10SVGElement11addPropertyERNS_11SVGPropertyE; lunasvg::SVGElement::addProperty(lunasvg::SVGProperty &)
mov rdi, rbx; this
mov rsi, [rsp+38h+var_38]; lunasvg::SVGProperty *
call _ZN7lunasvg10SVGElement11addPropertyERNS_11SVGPropertyE; lunasvg::SVGElement::addProperty(lunasvg::SVGProperty &)
mov rdi, rbx; this
mov rsi, r13; lunasvg::SVGProperty *
call _ZN7lunasvg10SVGElement11addPropertyERNS_11SVGPropertyE; lunasvg::SVGElement::addProperty(lunasvg::SVGProperty &)
mov rdi, rbx; this
mov rsi, rbp; lunasvg::SVGProperty *
call _ZN7lunasvg10SVGElement11addPropertyERNS_11SVGPropertyE; lunasvg::SVGElement::addProperty(lunasvg::SVGProperty &)
mov rdi, rbx; this
mov rsi, r15; lunasvg::SVGProperty *
call _ZN7lunasvg10SVGElement11addPropertyERNS_11SVGPropertyE; lunasvg::SVGElement::addProperty(lunasvg::SVGProperty &)
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_11040
jmp short loc_11040
jmp short loc_11040
jmp short loc_11040
jmp short loc_11040
jmp short $+2
loc_11040:
mov r14, rax
mov rdi, rbx; this
call _ZN7lunasvg10SVGElementD2Ev; lunasvg::SVGElement::~SVGElement()
mov rdi, r14
call __Unwind_Resume
| lunasvg::SVGProperty * lunasvg::SVGMaskElement::SVGMaskElement(
lunasvg::SVGMaskElement *this,
lunasvg::Document *a2)
{
lunasvg::SVGElement::SVGElement((long long)this, (long long)a2, 11);
*(_QWORD *)this = off_53DB8;
lunasvg::SVGLength::SVGLength((char *)this + 112, 75LL, 0LL, 0LL, 1LL, COERCE_DOUBLE(3240099840LL));
lunasvg::SVGLength::SVGLength((char *)this + 136, 78LL, 1LL, 0LL, 1LL, COERCE_DOUBLE(3240099840LL));
lunasvg::SVGLength::SVGLength((char *)this + 160, 74LL, 0LL, 1LL, 1LL, COERCE_DOUBLE(1123024896LL));
lunasvg::SVGLength::SVGLength((char *)this + 184, 27LL, 1LL, 1LL, 1LL, COERCE_DOUBLE(1123024896LL));
lunasvg::SVGEnumeration<lunasvg::Units>::SVGEnumeration((char *)this + 208, 39LL, 1LL);
lunasvg::SVGEnumeration<lunasvg::Units>::SVGEnumeration((char *)this + 224, 38LL, 0LL);
*((_BYTE *)this + 240) = 0;
lunasvg::SVGElement::addProperty(this, (lunasvg::SVGMaskElement *)((char *)this + 112));
lunasvg::SVGElement::addProperty(this, (lunasvg::SVGMaskElement *)((char *)this + 136));
lunasvg::SVGElement::addProperty(this, (lunasvg::SVGMaskElement *)((char *)this + 160));
lunasvg::SVGElement::addProperty(this, (lunasvg::SVGMaskElement *)((char *)this + 184));
lunasvg::SVGElement::addProperty(this, (lunasvg::SVGMaskElement *)((char *)this + 208));
return lunasvg::SVGElement::addProperty(this, (lunasvg::SVGMaskElement *)((char *)this + 224));
}
| SVGMaskElement:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
PUSH 0xb
POP RDX
CALL 0x0010e6ca
LEA RAX,[0x153db8]
MOV qword ptr [RBX],RAX
LEA R14,[RBX + 0x70]
LAB_00110f2a:
PUSH 0x4b
POP RSI
MOVSS XMM0,dword ptr [0x0013a590]
PUSH 0x1
POP R8
MOV RDI,R14
XOR EDX,EDX
XOR ECX,ECX
CALL 0x00111df4
LEA R15,[RBX + 0x88]
LAB_00110f4c:
PUSH 0x4e
POP RSI
MOVSS XMM0,dword ptr [0x0013a590]
PUSH 0x1
POP RDX
MOV RDI,R15
XOR ECX,ECX
MOV R8D,EDX
CALL 0x00111df4
LEA R12,[RBX + 0xa0]
LAB_00110f6e:
PUSH 0x4a
POP RSI
MOVSS XMM0,dword ptr [0x0013a594]
PUSH 0x1
POP RCX
MOV RDI,R12
XOR EDX,EDX
MOV R8D,ECX
CALL 0x00111df4
MOV qword ptr [RSP],R12
LEA R13,[RBX + 0xb8]
LAB_00110f94:
PUSH 0x1b
POP RSI
MOVSS XMM0,dword ptr [0x0013a594]
PUSH 0x1
POP RCX
MOV RDI,R13
MOV EDX,ECX
MOV R8D,ECX
CALL 0x00111df4
MOV R12,R15
LEA RBP,[RBX + 0xd0]
LAB_00110fb9:
PUSH 0x27
POP RSI
PUSH 0x1
POP RDX
MOV RDI,RBP
CALL 0x00111f10
LEA R15,[RBX + 0xe0]
LAB_00110fce:
PUSH 0x26
POP RSI
MOV RDI,R15
XOR EDX,EDX
CALL 0x00111f10
MOV byte ptr [RBX + 0xf0],0x0
LAB_00110fe2:
MOV RDI,RBX
MOV RSI,R14
CALL 0x0010ef2e
MOV RDI,RBX
MOV RSI,R12
CALL 0x0010ef2e
MOV RDI,RBX
MOV RSI,qword ptr [RSP]
CALL 0x0010ef2e
MOV RDI,RBX
MOV RSI,R13
CALL 0x0010ef2e
MOV RDI,RBX
MOV RSI,RBP
CALL 0x0010ef2e
MOV RDI,RBX
MOV RSI,R15
CALL 0x0010ef2e
LAB_00111025:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
| ||
45,710 | my_thread_global_reinit | eloqsql/mysys/my_thr_init.c | void my_thread_global_reinit(void)
{
struct st_my_thread_var *tmp;
DBUG_ASSERT(my_thread_global_init_done);
#ifdef HAVE_PSI_INTERFACE
my_init_mysys_psi_keys();
#endif
my_thread_destroy_common_mutex();
my_thread_init_common_mutex();
my_thread_destroy_internal_mutex();
my_thread_init_internal_mutex();
tmp= my_thread_var;
DBUG_ASSERT(tmp);
my_thread_destory_thr_mutex(tmp);
my_thread_init_thr_mutex(tmp);
} | O3 | c | my_thread_global_reinit:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
callq 0x9f5df
callq 0xa1590
callq 0xa17ca
callq 0xa16f3
callq 0xa1957
leaq 0xb6724a(%rip), %rax # 0xc089f4
movl (%rax), %edi
callq 0x29860
movq %rax, %rbx
movq %rax, %rdi
callq 0xa1a19
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xa1a83
| my_thread_global_reinit:
push rbp
mov rbp, rsp
push rbx
push rax
call my_init_mysys_psi_keys
call my_thread_destroy_common_mutex
call my_thread_init_common_mutex
call my_thread_destroy_internal_mutex
call my_thread_init_internal_mutex
lea rax, THR_KEY_mysys
mov edi, [rax]
call _pthread_getspecific
mov rbx, rax
mov rdi, rax
call my_thread_destory_thr_mutex
mov rdi, rbx
add rsp, 8
pop rbx
pop rbp
jmp my_thread_init_thr_mutex
| long long my_thread_global_reinit(long long a1)
{
long long v1; // rbx
my_init_mysys_psi_keys(a1);
my_thread_destroy_common_mutex();
my_thread_init_common_mutex();
my_thread_destroy_internal_mutex();
my_thread_init_internal_mutex();
v1 = pthread_getspecific(THR_KEY_mysys);
my_thread_destory_thr_mutex(v1);
return my_thread_init_thr_mutex(v1);
}
| my_thread_global_reinit:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
CALL 0x0019f5df
CALL 0x001a1590
CALL 0x001a17ca
CALL 0x001a16f3
CALL 0x001a1957
LEA RAX,[0xd089f4]
MOV EDI,dword ptr [RAX]
CALL 0x00129860
MOV RBX,RAX
MOV RDI,RAX
CALL 0x001a1a19
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x001a1a83
|
void my_thread_global_reinit(void)
{
void *pvVar1;
my_init_mysys_psi_keys();
my_thread_destroy_common_mutex();
my_thread_init_common_mutex();
my_thread_destroy_internal_mutex();
my_thread_init_internal_mutex();
pvVar1 = pthread_getspecific(THR_KEY_mysys);
my_thread_destory_thr_mutex(pvVar1);
my_thread_init_thr_mutex(pvVar1);
return;
}
| |
45,711 | my_uca_copy_page | eloqsql/strings/ctype-uca.c | static my_bool
my_uca_copy_page(MY_CHARSET_LOADER *loader,
const MY_UCA_WEIGHT_LEVEL *src,
MY_UCA_WEIGHT_LEVEL *dst,
size_t page)
{
uint chc, size= 256 * dst->lengths[page] * sizeof(uint16);
if (!(dst->weights[page]= (uint16 *) (loader->once_alloc)(size)))
return TRUE;
DBUG_ASSERT(src->lengths[page] <= dst->lengths[page]);
memset(dst->weights[page], 0, size);
for (chc=0 ; chc < 256; chc++)
{
memcpy(dst->weights[page] + chc * dst->lengths[page],
src->weights[page] + chc * src->lengths[page],
src->lengths[page] * sizeof(uint16));
}
return FALSE;
} | O0 | c | my_uca_copy_page:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x28(%rbp), %rcx
movzbl (%rax,%rcx), %eax
shll $0x8, %eax
cltq
shlq %rax
movl %eax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq 0x80(%rax), %rax
movl -0x30(%rbp), %ecx
movl %ecx, %edi
callq *%rax
movq -0x20(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq -0x28(%rbp), %rdx
movq %rax, (%rcx,%rdx,8)
cmpq $0x0, %rax
jne 0x58f04
movb $0x1, -0x1(%rbp)
jmp 0x58fc0
jmp 0x58f06
jmp 0x58f08
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movl -0x30(%rbp), %eax
movl %eax, %edx
xorl %esi, %esi
callq 0x25190
movl $0x0, -0x2c(%rbp)
cmpl $0x100, -0x2c(%rbp) # imm = 0x100
jae 0x58fbc
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movl -0x2c(%rbp), %eax
movq -0x20(%rbp), %rcx
movq 0x8(%rcx), %rcx
movq -0x28(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
imull %ecx, %eax
movl %eax, %eax
shlq %rax
addq %rax, %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movl -0x2c(%rbp), %eax
movq -0x18(%rbp), %rcx
movq 0x8(%rcx), %rcx
movq -0x28(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
imull %ecx, %eax
movl %eax, %eax
shlq %rax
addq %rax, %rsi
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x28(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, %edx
shlq %rdx
callq 0x25230
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x58f2b
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
| my_uca_copy_page:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_20]
mov rax, [rax+8]
mov rcx, [rbp+var_28]
movzx eax, byte ptr [rax+rcx]
shl eax, 8
cdqe
shl rax, 1
mov [rbp+var_30], eax
mov rax, [rbp+var_10]
mov rax, [rax+80h]
mov ecx, [rbp+var_30]
mov edi, ecx
call rax
mov rcx, [rbp+var_20]
mov rcx, [rcx+10h]
mov rdx, [rbp+var_28]
mov [rcx+rdx*8], rax
cmp rax, 0
jnz short loc_58F04
mov [rbp+var_1], 1
jmp loc_58FC0
loc_58F04:
jmp short $+2
loc_58F06:
jmp short $+2
loc_58F08:
mov rax, [rbp+var_20]
mov rax, [rax+10h]
mov rcx, [rbp+var_28]
mov rdi, [rax+rcx*8]
mov eax, [rbp+var_30]
mov edx, eax
xor esi, esi
call _memset
mov [rbp+var_2C], 0
loc_58F2B:
cmp [rbp+var_2C], 100h
jnb loc_58FBC
mov rax, [rbp+var_20]
mov rax, [rax+10h]
mov rcx, [rbp+var_28]
mov rdi, [rax+rcx*8]
mov eax, [rbp+var_2C]
mov rcx, [rbp+var_20]
mov rcx, [rcx+8]
mov rdx, [rbp+var_28]
movzx ecx, byte ptr [rcx+rdx]
imul eax, ecx
mov eax, eax
shl rax, 1
add rdi, rax
mov rax, [rbp+var_18]
mov rax, [rax+10h]
mov rcx, [rbp+var_28]
mov rsi, [rax+rcx*8]
mov eax, [rbp+var_2C]
mov rcx, [rbp+var_18]
mov rcx, [rcx+8]
mov rdx, [rbp+var_28]
movzx ecx, byte ptr [rcx+rdx]
imul eax, ecx
mov eax, eax
shl rax, 1
add rsi, rax
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov rcx, [rbp+var_28]
movzx eax, byte ptr [rax+rcx]
mov edx, eax
shl rdx, 1
call _memcpy
mov eax, [rbp+var_2C]
add eax, 1
mov [rbp+var_2C], eax
jmp loc_58F2B
loc_58FBC:
mov [rbp+var_1], 0
loc_58FC0:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
| char my_uca_copy_page(long long a1, long long a2, long long a3, long long a4)
{
long long v4; // rax
unsigned int v6; // [rsp+0h] [rbp-30h]
unsigned int i; // [rsp+4h] [rbp-2Ch]
v6 = *(unsigned __int8 *)(*(_QWORD *)(a3 + 8) + a4) << 9;
v4 = (*(long long ( **)(_QWORD))(a1 + 128))(v6);
*(_QWORD *)(*(_QWORD *)(a3 + 16) + 8 * a4) = v4;
if ( !v4 )
return 1;
memset(*(_QWORD *)(*(_QWORD *)(a3 + 16) + 8 * a4), 0LL, v6);
for ( i = 0; i < 0x100; ++i )
memcpy(
2LL * *(unsigned __int8 *)(*(_QWORD *)(a3 + 8) + a4) * i + *(_QWORD *)(*(_QWORD *)(a3 + 16) + 8 * a4),
2LL * *(unsigned __int8 *)(*(_QWORD *)(a2 + 8) + a4) * i + *(_QWORD *)(*(_QWORD *)(a2 + 16) + 8 * a4),
2LL * *(unsigned __int8 *)(*(_QWORD *)(a2 + 8) + a4));
return 0;
}
| my_uca_copy_page:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
SHL EAX,0x8
CDQE
SHL RAX,0x1
MOV dword ptr [RBP + -0x30],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x80]
MOV ECX,dword ptr [RBP + -0x30]
MOV EDI,ECX
CALL RAX
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX + 0x10]
MOV RDX,qword ptr [RBP + -0x28]
MOV qword ptr [RCX + RDX*0x8],RAX
CMP RAX,0x0
JNZ 0x00158f04
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00158fc0
LAB_00158f04:
JMP 0x00158f06
LAB_00158f06:
JMP 0x00158f08
LAB_00158f08:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RBP + -0x28]
MOV RDI,qword ptr [RAX + RCX*0x8]
MOV EAX,dword ptr [RBP + -0x30]
MOV EDX,EAX
XOR ESI,ESI
CALL 0x00125190
MOV dword ptr [RBP + -0x2c],0x0
LAB_00158f2b:
CMP dword ptr [RBP + -0x2c],0x100
JNC 0x00158fbc
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RBP + -0x28]
MOV RDI,qword ptr [RAX + RCX*0x8]
MOV EAX,dword ptr [RBP + -0x2c]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX + 0x8]
MOV RDX,qword ptr [RBP + -0x28]
MOVZX ECX,byte ptr [RCX + RDX*0x1]
IMUL EAX,ECX
MOV EAX,EAX
SHL RAX,0x1
ADD RDI,RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RAX + RCX*0x8]
MOV EAX,dword ptr [RBP + -0x2c]
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX + 0x8]
MOV RDX,qword ptr [RBP + -0x28]
MOVZX ECX,byte ptr [RCX + RDX*0x1]
IMUL EAX,ECX
MOV EAX,EAX
SHL RAX,0x1
ADD RSI,RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV EDX,EAX
SHL RDX,0x1
CALL 0x00125230
MOV EAX,dword ptr [RBP + -0x2c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x2c],EAX
JMP 0x00158f2b
LAB_00158fbc:
MOV byte ptr [RBP + -0x1],0x0
LAB_00158fc0:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1 my_uca_copy_page(long param_1,long param_2,long param_3,long param_4)
{
size_t __n;
long lVar1;
int4 local_34;
int1 local_9;
__n = (long)(int)((uint)*(byte *)(*(long *)(param_3 + 8) + param_4) << 8) << 1;
lVar1 = (**(code **)(param_1 + 0x80))(__n);
*(long *)(*(long *)(param_3 + 0x10) + param_4 * 8) = lVar1;
if (lVar1 == 0) {
local_9 = 1;
}
else {
memset(*(void **)(*(long *)(param_3 + 0x10) + param_4 * 8),0,__n);
for (local_34 = 0; local_34 < 0x100; local_34 = local_34 + 1) {
memcpy((void *)(*(long *)(*(long *)(param_3 + 0x10) + param_4 * 8) +
(ulong)(local_34 * *(byte *)(*(long *)(param_3 + 8) + param_4)) * 2),
(void *)(*(long *)(*(long *)(param_2 + 0x10) + param_4 * 8) +
(ulong)(local_34 * *(byte *)(*(long *)(param_2 + 8) + param_4)) * 2),
(ulong)*(byte *)(*(long *)(param_2 + 8) + param_4) << 1);
}
local_9 = 0;
}
return local_9;
}
| |
45,712 | my_strnxfrm_win1250ch | eloqsql/strings/ctype-win1250ch.c | static size_t
my_strnxfrm_win1250ch(CHARSET_INFO *cs __attribute__((unused)),
uchar *dest, size_t len,
uint nweights_arg __attribute__((unused)),
const uchar *src, size_t srclen, uint flags)
{
int value;
const uchar *p;
int pass = 0;
size_t totlen = 0;
p = src;
if (!(flags & 0x0F)) /* All levels by default */
flags|= 0x0F;
while (totlen < len)
{
NEXT_CMP_VALUE(src, p, pass, value, (int)srclen);
if (!value)
break;
if ((1 << pass) & flags)
dest[totlen++] = value;
}
if ((flags & MY_STRXFRM_PAD_TO_MAXLEN) && len > totlen)
{
memset(dest + totlen, 0x00, len - totlen);
totlen= len;
}
return totlen;
} | O0 | c | my_strnxfrm_win1250ch:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movl $0x0, -0x44(%rbp)
movq $0x0, -0x50(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
movl 0x10(%rbp), %eax
andl $0xf, %eax
cmpl $0x0, %eax
jne 0x6c190
movl 0x10(%rbp), %eax
orl $0xf, %eax
movl %eax, 0x10(%rbp)
jmp 0x6c192
movq -0x50(%rbp), %rax
cmpq -0x18(%rbp), %rax
jae 0x6c379
jmp 0x6c1a2
movq -0x40(%rbp), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
movq -0x30(%rbp), %rcx
movslq %ecx, %rcx
cmpq %rcx, %rax
jl 0x6c1e9
cmpl $0x0, -0x44(%rbp)
jne 0x6c1db
movq -0x30(%rbp), %rax
cmpl $0x0, %eax
jle 0x6c1db
movq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x6c1e7
movl $0x0, -0x34(%rbp)
jmp 0x6c33f
jmp 0x6c1e9
cmpl $0x0, -0x44(%rbp)
jne 0x6c208
movq -0x40(%rbp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x14a541(%rip), %rax # 0x1b6740
movzbl (%rax,%rcx), %eax
movl %eax, -0x6c(%rbp)
jmp 0x6c21f
movq -0x40(%rbp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x319e08(%rip), %rax # 0x386020
movzbl (%rax,%rcx), %eax
movl %eax, -0x6c(%rbp)
movl -0x6c(%rbp), %eax
movl %eax, -0x34(%rbp)
cmpl $0xff, -0x34(%rbp)
jne 0x6c333
movl $0x0, -0x54(%rbp)
cmpl $0x50, -0x54(%rbp)
jge 0x6c331
movslq -0x54(%rbp), %rcx
leaq 0x162332(%rip), %rax # 0x1ce580
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rax
movzbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x6d(%rbp)
je 0x6c2a7
movq -0x68(%rbp), %rcx
movq -0x28(%rbp), %rax
subq %rax, %rcx
movq -0x30(%rbp), %rax
movslq %eax, %rdx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x6d(%rbp)
jge 0x6c2a7
movq -0x60(%rbp), %rax
movzbl (%rax), %eax
movq -0x68(%rbp), %rcx
movzbl (%rcx), %ecx
cmpl %ecx, %eax
sete %al
movb %al, -0x6d(%rbp)
movb -0x6d(%rbp), %al
testb $0x1, %al
jne 0x6c2b0
jmp 0x6c2ca
movq -0x60(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x60(%rbp)
movq -0x68(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x68(%rbp)
jmp 0x6c264
movq -0x60(%rbp), %rax
cmpb $0x0, (%rax)
jne 0x6c321
cmpl $0x0, -0x44(%rbp)
jne 0x6c2f4
movslq -0x54(%rbp), %rcx
leaq 0x16229c(%rip), %rax # 0x1ce580
shlq $0x4, %rcx
addq %rcx, %rax
movzbl 0x8(%rax), %eax
movl %eax, -0x74(%rbp)
jmp 0x6c30d
movslq -0x54(%rbp), %rcx
leaq 0x162281(%rip), %rax # 0x1ce580
shlq $0x4, %rcx
addq %rcx, %rax
movzbl 0x9(%rax), %eax
movl %eax, -0x74(%rbp)
movl -0x74(%rbp), %eax
movl %eax, -0x34(%rbp)
movq -0x68(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x6c331
jmp 0x6c323
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
jmp 0x6c239
jmp 0x6c333
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
cmpl $0x0, -0x34(%rbp)
jne 0x6c347
jmp 0x6c379
movl -0x44(%rbp), %ecx
movl $0x1, %eax
shll %cl, %eax
andl 0x10(%rbp), %eax
cmpl $0x0, %eax
je 0x6c374
movl -0x34(%rbp), %eax
movb %al, %dl
movq -0x10(%rbp), %rax
movq -0x50(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x50(%rbp)
movb %dl, (%rax,%rcx)
jmp 0x6c192
movl 0x10(%rbp), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x6c3af
movq -0x18(%rbp), %rax
cmpq -0x50(%rbp), %rax
jbe 0x6c3af
movq -0x10(%rbp), %rdi
addq -0x50(%rbp), %rdi
movq -0x18(%rbp), %rdx
subq -0x50(%rbp), %rdx
xorl %esi, %esi
callq 0x24180
movq -0x18(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax)
| my_strnxfrm_win1250ch:
push rbp
mov rbp, rsp
sub rsp, 80h
mov eax, [rbp+arg_0]
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_1C], ecx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov [rbp+var_44], 0
mov [rbp+var_50], 0
mov rax, [rbp+var_28]
mov [rbp+var_40], rax
mov eax, [rbp+arg_0]
and eax, 0Fh
cmp eax, 0
jnz short loc_6C190
mov eax, [rbp+arg_0]
or eax, 0Fh
mov [rbp+arg_0], eax
loc_6C190:
jmp short $+2
loc_6C192:
mov rax, [rbp+var_50]
cmp rax, [rbp+var_18]
jnb loc_6C379
jmp short $+2
loc_6C1A2:
mov rax, [rbp+var_40]
mov rcx, [rbp+var_28]
sub rax, rcx
mov rcx, [rbp+var_30]
movsxd rcx, ecx
cmp rax, rcx
jl short loc_6C1E9
cmp [rbp+var_44], 0
jnz short loc_6C1DB
mov rax, [rbp+var_30]
cmp eax, 0
jle short loc_6C1DB
mov rax, [rbp+var_28]
mov [rbp+var_40], rax
mov eax, [rbp+var_44]
add eax, 1
mov [rbp+var_44], eax
jmp short loc_6C1E7
loc_6C1DB:
mov [rbp+var_34], 0
jmp loc_6C33F
loc_6C1E7:
jmp short $+2
loc_6C1E9:
cmp [rbp+var_44], 0
jnz short loc_6C208
mov rax, [rbp+var_40]
movzx eax, byte ptr [rax]
mov ecx, eax
lea rax, _sort_order_win1250ch1
movzx eax, byte ptr [rax+rcx]
mov [rbp+var_6C], eax
jmp short loc_6C21F
loc_6C208:
mov rax, [rbp+var_40]
movzx eax, byte ptr [rax]
mov ecx, eax
lea rax, _sort_order_win1250ch2
movzx eax, byte ptr [rax+rcx]
mov [rbp+var_6C], eax
loc_6C21F:
mov eax, [rbp+var_6C]
mov [rbp+var_34], eax
cmp [rbp+var_34], 0FFh
jnz loc_6C333
mov [rbp+var_54], 0
loc_6C239:
cmp [rbp+var_54], 50h ; 'P'
jge loc_6C331
movsxd rcx, [rbp+var_54]
lea rax, doubles_0
shl rcx, 4
add rax, rcx
mov rax, [rax]
mov [rbp+var_60], rax
mov rax, [rbp+var_40]
mov [rbp+var_68], rax
loc_6C264:
mov rax, [rbp+var_60]
movzx ecx, byte ptr [rax]
xor eax, eax
cmp ecx, 0
mov [rbp+var_6D], al
jz short loc_6C2A7
mov rcx, [rbp+var_68]
mov rax, [rbp+var_28]
sub rcx, rax
mov rax, [rbp+var_30]
movsxd rdx, eax
xor eax, eax
cmp rcx, rdx
mov [rbp+var_6D], al
jge short loc_6C2A7
mov rax, [rbp+var_60]
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_68]
movzx ecx, byte ptr [rcx]
cmp eax, ecx
setz al
mov [rbp+var_6D], al
loc_6C2A7:
mov al, [rbp+var_6D]
test al, 1
jnz short loc_6C2B0
jmp short loc_6C2CA
loc_6C2B0:
mov rax, [rbp+var_60]
add rax, 1
mov [rbp+var_60], rax
mov rax, [rbp+var_68]
add rax, 1
mov [rbp+var_68], rax
jmp short loc_6C264
loc_6C2CA:
mov rax, [rbp+var_60]
cmp byte ptr [rax], 0
jnz short loc_6C321
cmp [rbp+var_44], 0
jnz short loc_6C2F4
movsxd rcx, [rbp+var_54]
lea rax, doubles_0
shl rcx, 4
add rax, rcx
movzx eax, byte ptr [rax+8]
mov [rbp+var_74], eax
jmp short loc_6C30D
loc_6C2F4:
movsxd rcx, [rbp+var_54]
lea rax, doubles_0
shl rcx, 4
add rax, rcx
movzx eax, byte ptr [rax+9]
mov [rbp+var_74], eax
loc_6C30D:
mov eax, [rbp+var_74]
mov [rbp+var_34], eax
mov rax, [rbp+var_68]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_40], rax
jmp short loc_6C331
loc_6C321:
jmp short $+2
loc_6C323:
mov eax, [rbp+var_54]
add eax, 1
mov [rbp+var_54], eax
jmp loc_6C239
loc_6C331:
jmp short $+2
loc_6C333:
mov rax, [rbp+var_40]
add rax, 1
mov [rbp+var_40], rax
loc_6C33F:
cmp [rbp+var_34], 0
jnz short loc_6C347
jmp short loc_6C379
loc_6C347:
mov ecx, [rbp+var_44]
mov eax, 1
shl eax, cl
and eax, [rbp+arg_0]
cmp eax, 0
jz short loc_6C374
mov eax, [rbp+var_34]
mov dl, al
mov rax, [rbp+var_10]
mov rcx, [rbp+var_50]
mov rsi, rcx
add rsi, 1
mov [rbp+var_50], rsi
mov [rax+rcx], dl
loc_6C374:
jmp loc_6C192
loc_6C379:
mov eax, [rbp+arg_0]
and eax, 80h
cmp eax, 0
jz short loc_6C3AF
mov rax, [rbp+var_18]
cmp rax, [rbp+var_50]
jbe short loc_6C3AF
mov rdi, [rbp+var_10]
add rdi, [rbp+var_50]
mov rdx, [rbp+var_18]
sub rdx, [rbp+var_50]
xor esi, esi
call _memset
mov rax, [rbp+var_18]
mov [rbp+var_50], rax
loc_6C3AF:
mov rax, [rbp+var_50]
add rsp, 80h
pop rbp
retn
| unsigned long long my_strnxfrm_win1250ch(
long long a1,
long long a2,
unsigned long long a3,
long long a4,
unsigned __int8 *a5,
int a6,
int a7)
{
long long v7; // rcx
int v9; // [rsp+Ch] [rbp-74h]
bool v10; // [rsp+13h] [rbp-6Dh]
int v11; // [rsp+14h] [rbp-6Ch]
unsigned __int8 *j; // [rsp+18h] [rbp-68h]
_BYTE *v13; // [rsp+20h] [rbp-60h]
int i; // [rsp+2Ch] [rbp-54h]
unsigned long long v15; // [rsp+30h] [rbp-50h]
int v16; // [rsp+3Ch] [rbp-44h]
unsigned __int8 *v17; // [rsp+40h] [rbp-40h]
int v18; // [rsp+4Ch] [rbp-34h]
v16 = 0;
v15 = 0LL;
v17 = a5;
if ( (a7 & 0xF) == 0 )
a7 |= 0xFu;
while ( v15 < a3 )
{
if ( v17 - a5 >= a6 )
{
if ( v16 || a6 <= 0 )
{
v18 = 0;
goto LABEL_28;
}
v17 = a5;
v16 = 1;
}
if ( v16 )
v11 = sort_order_win1250ch2[*v17];
else
v11 = sort_order_win1250ch1[*v17];
v18 = v11;
if ( v11 == 255 )
{
for ( i = 0; i < 80; ++i )
{
v13 = *(&doubles_0 + 2 * i);
for ( j = v17; ; ++j )
{
v10 = 0;
if ( *v13 )
{
v10 = 0;
if ( j - a5 < a6 )
v10 = (unsigned __int8)*v13 == *j;
}
if ( !v10 )
break;
++v13;
}
if ( !*v13 )
{
if ( v16 )
v9 = *((unsigned __int8 *)&doubles_0 + 16 * i + 9);
else
v9 = *((unsigned __int8 *)&doubles_0 + 16 * i + 8);
v18 = v9;
v17 = j - 1;
break;
}
}
}
++v17;
LABEL_28:
if ( !v18 )
break;
if ( (a7 & (1 << v16)) != 0 )
{
v7 = v15++;
*(_BYTE *)(a2 + v7) = v18;
}
}
if ( (a7 & 0x80) != 0 && a3 > v15 )
{
memset(v15 + a2, 0LL, a3 - v15);
return a3;
}
return v15;
}
| my_strnxfrm_win1250ch:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV EAX,dword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV dword ptr [RBP + -0x1c],ECX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
MOV dword ptr [RBP + -0x44],0x0
MOV qword ptr [RBP + -0x50],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x40],RAX
MOV EAX,dword ptr [RBP + 0x10]
AND EAX,0xf
CMP EAX,0x0
JNZ 0x0016c190
MOV EAX,dword ptr [RBP + 0x10]
OR EAX,0xf
MOV dword ptr [RBP + 0x10],EAX
LAB_0016c190:
JMP 0x0016c192
LAB_0016c192:
MOV RAX,qword ptr [RBP + -0x50]
CMP RAX,qword ptr [RBP + -0x18]
JNC 0x0016c379
JMP 0x0016c1a2
LAB_0016c1a2:
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x28]
SUB RAX,RCX
MOV RCX,qword ptr [RBP + -0x30]
MOVSXD RCX,ECX
CMP RAX,RCX
JL 0x0016c1e9
CMP dword ptr [RBP + -0x44],0x0
JNZ 0x0016c1db
MOV RAX,qword ptr [RBP + -0x30]
CMP EAX,0x0
JLE 0x0016c1db
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x40],RAX
MOV EAX,dword ptr [RBP + -0x44]
ADD EAX,0x1
MOV dword ptr [RBP + -0x44],EAX
JMP 0x0016c1e7
LAB_0016c1db:
MOV dword ptr [RBP + -0x34],0x0
JMP 0x0016c33f
LAB_0016c1e7:
JMP 0x0016c1e9
LAB_0016c1e9:
CMP dword ptr [RBP + -0x44],0x0
JNZ 0x0016c208
MOV RAX,qword ptr [RBP + -0x40]
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x2b6740]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV dword ptr [RBP + -0x6c],EAX
JMP 0x0016c21f
LAB_0016c208:
MOV RAX,qword ptr [RBP + -0x40]
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x486020]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV dword ptr [RBP + -0x6c],EAX
LAB_0016c21f:
MOV EAX,dword ptr [RBP + -0x6c]
MOV dword ptr [RBP + -0x34],EAX
CMP dword ptr [RBP + -0x34],0xff
JNZ 0x0016c333
MOV dword ptr [RBP + -0x54],0x0
LAB_0016c239:
CMP dword ptr [RBP + -0x54],0x50
JGE 0x0016c331
MOVSXD RCX,dword ptr [RBP + -0x54]
LEA RAX,[0x2ce580]
SHL RCX,0x4
ADD RAX,RCX
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x68],RAX
LAB_0016c264:
MOV RAX,qword ptr [RBP + -0x60]
MOVZX ECX,byte ptr [RAX]
XOR EAX,EAX
CMP ECX,0x0
MOV byte ptr [RBP + -0x6d],AL
JZ 0x0016c2a7
MOV RCX,qword ptr [RBP + -0x68]
MOV RAX,qword ptr [RBP + -0x28]
SUB RCX,RAX
MOV RAX,qword ptr [RBP + -0x30]
MOVSXD RDX,EAX
XOR EAX,EAX
CMP RCX,RDX
MOV byte ptr [RBP + -0x6d],AL
JGE 0x0016c2a7
MOV RAX,qword ptr [RBP + -0x60]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x68]
MOVZX ECX,byte ptr [RCX]
CMP EAX,ECX
SETZ AL
MOV byte ptr [RBP + -0x6d],AL
LAB_0016c2a7:
MOV AL,byte ptr [RBP + -0x6d]
TEST AL,0x1
JNZ 0x0016c2b0
JMP 0x0016c2ca
LAB_0016c2b0:
MOV RAX,qword ptr [RBP + -0x60]
ADD RAX,0x1
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x68]
ADD RAX,0x1
MOV qword ptr [RBP + -0x68],RAX
JMP 0x0016c264
LAB_0016c2ca:
MOV RAX,qword ptr [RBP + -0x60]
CMP byte ptr [RAX],0x0
JNZ 0x0016c321
CMP dword ptr [RBP + -0x44],0x0
JNZ 0x0016c2f4
MOVSXD RCX,dword ptr [RBP + -0x54]
LEA RAX,[0x2ce580]
SHL RCX,0x4
ADD RAX,RCX
MOVZX EAX,byte ptr [RAX + 0x8]
MOV dword ptr [RBP + -0x74],EAX
JMP 0x0016c30d
LAB_0016c2f4:
MOVSXD RCX,dword ptr [RBP + -0x54]
LEA RAX,[0x2ce580]
SHL RCX,0x4
ADD RAX,RCX
MOVZX EAX,byte ptr [RAX + 0x9]
MOV dword ptr [RBP + -0x74],EAX
LAB_0016c30d:
MOV EAX,dword ptr [RBP + -0x74]
MOV dword ptr [RBP + -0x34],EAX
MOV RAX,qword ptr [RBP + -0x68]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x40],RAX
JMP 0x0016c331
LAB_0016c321:
JMP 0x0016c323
LAB_0016c323:
MOV EAX,dword ptr [RBP + -0x54]
ADD EAX,0x1
MOV dword ptr [RBP + -0x54],EAX
JMP 0x0016c239
LAB_0016c331:
JMP 0x0016c333
LAB_0016c333:
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,0x1
MOV qword ptr [RBP + -0x40],RAX
LAB_0016c33f:
CMP dword ptr [RBP + -0x34],0x0
JNZ 0x0016c347
JMP 0x0016c379
LAB_0016c347:
MOV ECX,dword ptr [RBP + -0x44]
MOV EAX,0x1
SHL EAX,CL
AND EAX,dword ptr [RBP + 0x10]
CMP EAX,0x0
JZ 0x0016c374
MOV EAX,dword ptr [RBP + -0x34]
MOV DL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x50]
MOV RSI,RCX
ADD RSI,0x1
MOV qword ptr [RBP + -0x50],RSI
MOV byte ptr [RAX + RCX*0x1],DL
LAB_0016c374:
JMP 0x0016c192
LAB_0016c379:
MOV EAX,dword ptr [RBP + 0x10]
AND EAX,0x80
CMP EAX,0x0
JZ 0x0016c3af
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x50]
JBE 0x0016c3af
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x18]
SUB RDX,qword ptr [RBP + -0x50]
XOR ESI,ESI
CALL 0x00124180
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x50],RAX
LAB_0016c3af:
MOV RAX,qword ptr [RBP + -0x50]
ADD RSP,0x80
POP RBP
RET
|
ulong my_strnxfrm_win1250ch
(int8 param_1,long param_2,ulong param_3,int8 param_4,byte *param_5,
int param_6,uint param_7)
{
char cVar1;
bool bVar2;
bool bVar3;
byte *local_70;
byte *local_68;
int local_5c;
ulong local_58;
byte *local_48;
bVar2 = false;
local_58 = 0;
local_48 = param_5;
if ((param_7 & 0xf) == 0) {
param_7 = param_7 | 0xf;
}
while (local_58 < param_3) {
if ((long)local_48 - (long)param_5 < (long)param_6) {
LAB_0016c1e9:
if (bVar2) {
cVar1 = _sort_order_win1250ch2[*local_48];
}
else {
cVar1 = _sort_order_win1250ch1[*local_48];
}
if (cVar1 == -1) {
for (local_5c = 0; local_5c < 0x50; local_5c = local_5c + 1) {
local_68 = *(byte **)(doubles + (long)local_5c * 0x10);
local_70 = local_48;
while( true ) {
bVar3 = false;
if ((*local_68 != 0) && (bVar3 = false, (long)local_70 - (long)param_5 < (long)param_6))
{
bVar3 = *local_68 == *local_70;
}
if (!bVar3) break;
local_68 = local_68 + 1;
local_70 = local_70 + 1;
}
if (*local_68 == 0) {
if (bVar2) {
cVar1 = doubles[(long)local_5c * 0x10 + 9];
}
else {
cVar1 = doubles[(long)local_5c * 0x10 + 8];
}
local_48 = local_70 + -1;
break;
}
}
}
local_48 = local_48 + 1;
}
else {
if ((!bVar2) && (0 < param_6)) {
bVar2 = true;
local_48 = param_5;
goto LAB_0016c1e9;
}
cVar1 = '\0';
}
if (cVar1 == '\0') break;
if ((1 << bVar2 & param_7) != 0) {
*(char *)(param_2 + local_58) = cVar1;
local_58 = local_58 + 1;
}
}
if (((param_7 & 0x80) != 0) && (local_58 < param_3)) {
memset((void *)(param_2 + local_58),0,param_3 - local_58);
local_58 = param_3;
}
return local_58;
}
| |
45,713 | my_strnxfrm_win1250ch | eloqsql/strings/ctype-win1250ch.c | static size_t
my_strnxfrm_win1250ch(CHARSET_INFO *cs __attribute__((unused)),
uchar *dest, size_t len,
uint nweights_arg __attribute__((unused)),
const uchar *src, size_t srclen, uint flags)
{
int value;
const uchar *p;
int pass = 0;
size_t totlen = 0;
p = src;
if (!(flags & 0x0F)) /* All levels by default */
flags|= 0x0F;
while (totlen < len)
{
NEXT_CMP_VALUE(src, p, pass, value, (int)srclen);
if (!value)
break;
if ((1 << pass) & flags)
dest[totlen++] = value;
}
if ((flags & MY_STRXFRM_PAD_TO_MAXLEN) && len > totlen)
{
memset(dest + totlen, 0x00, len - totlen);
totlen= len;
}
return totlen;
} | O3 | c | my_strnxfrm_win1250ch:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %rbx
movq %rsi, -0x50(%rbp)
movl 0x10(%rbp), %eax
movl %eax, %edx
orl $0xf, %edx
testb $0xf, %al
cmovnel %eax, %edx
xorl %r10d, %r10d
testq %rbx, %rbx
je 0x53ec4
movslq %r9d, %rdi
movl $0x1, %eax
subq %r8, %rax
movq %rax, -0x60(%rbp)
leaq 0x284ca9(%rip), %r14 # 0x2d8a10
leaq 0x29a7b2(%rip), %r15 # 0x2ee520
xorl %eax, %eax
movq %r8, %r11
movq %rbx, -0x48(%rbp)
movq %r9, -0x40(%rbp)
movq %r8, -0x38(%rbp)
movl %edx, -0x2c(%rbp)
movq %r11, %rsi
subq %r8, %rsi
cmpq %rdi, %rsi
jge 0x53d9e
testl %r10d, %r10d
je 0x53e60
movl $0x9, %r12d
jmp 0x53dbf
testl %r9d, %r9d
jle 0x53ec8
testl %r10d, %r10d
jne 0x53ec8
movl $0x1, %r10d
movl $0x9, %r12d
movq %r8, %r11
movq %r14, %rsi
movzbl (%r11), %ecx
movb (%rsi,%rcx), %sil
cmpb $-0x1, %sil
jne 0x53ea0
movq %r12, -0x68(%rbp)
movq %r10, -0x58(%rbp)
movq %r11, %rdx
subq %r8, %rdx
movq -0x60(%rbp), %rcx
leaq (%rcx,%r11), %r13
xorl %r10d, %r10d
movq %r10, %rbx
shlq $0x4, %rbx
movq (%rbx,%r15), %rsi
movb (%rsi), %r9b
testb %r9b, %r9b
je 0x53e30
cmpq %rdi, %rdx
jge 0x53e30
incq %rsi
movq %r13, %r14
movq %r11, %r12
cmpb (%r12), %r9b
jne 0x53e38
incq %r12
movb (%rsi), %r9b
testb %r9b, %r9b
je 0x53e33
leaq 0x1(%r14), %rcx
incq %rsi
cmpq %rdi, %r14
movq %rcx, %r14
jl 0x53e0e
jmp 0x53e33
movq %r11, %r12
testb %r9b, %r9b
je 0x53e75
incq %r10
cmpq $0x50, %r10
jne 0x53ded
movb $-0x1, %sil
movq -0x48(%rbp), %rbx
movq -0x40(%rbp), %r9
movq -0x38(%rbp), %r8
movl -0x2c(%rbp), %edx
movq -0x58(%rbp), %r10
leaq 0x284bb2(%rip), %r14 # 0x2d8a10
jmp 0x53ea5
xorl %r10d, %r10d
movl $0x8, %r12d
leaq 0x284aa0(%rip), %rsi # 0x2d8910
jmp 0x53dc2
addq %r15, %rbx
movq -0x68(%rbp), %rcx
movb (%rbx,%rcx), %sil
decq %r12
movq %r12, %r11
movq -0x48(%rbp), %rbx
movq -0x40(%rbp), %r9
movq -0x38(%rbp), %r8
movl -0x2c(%rbp), %edx
movq -0x58(%rbp), %r10
leaq 0x284b70(%rip), %r14 # 0x2d8a10
testb %sil, %sil
je 0x53ec8
btl %r10d, %edx
jae 0x53eb6
movq -0x50(%rbp), %rcx
movb %sil, (%rcx,%rax)
incq %rax
incq %r11
cmpq %rbx, %rax
jb 0x53d82
jmp 0x53ee3
xorl %eax, %eax
jmp 0x53ee3
testb %dl, %dl
jns 0x53ee3
movq -0x50(%rbp), %rdi
addq %rax, %rdi
movq %rbx, %rdx
subq %rax, %rdx
xorl %esi, %esi
callq 0x24180
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_strnxfrm_win1250ch:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov rbx, rdx
mov [rbp+var_50], rsi
mov eax, [rbp+arg_0]
mov edx, eax
or edx, 0Fh
test al, 0Fh
cmovnz edx, eax
xor r10d, r10d
test rbx, rbx
jz loc_53EC4
movsxd rdi, r9d
mov eax, 1
sub rax, r8
mov [rbp+var_60], rax
lea r14, _sort_order_win1250ch2
lea r15, doubles_0
xor eax, eax
mov r11, r8
mov [rbp+var_48], rbx
mov [rbp+var_40], r9
mov [rbp+var_38], r8
mov [rbp+var_2C], edx
loc_53D82:
mov rsi, r11
sub rsi, r8
cmp rsi, rdi
jge short loc_53D9E
test r10d, r10d
jz loc_53E60
mov r12d, 9
jmp short loc_53DBF
loc_53D9E:
test r9d, r9d
jle loc_53EC8
test r10d, r10d
jnz loc_53EC8
mov r10d, 1
mov r12d, 9
mov r11, r8
loc_53DBF:
mov rsi, r14
loc_53DC2:
movzx ecx, byte ptr [r11]
mov sil, [rsi+rcx]
cmp sil, 0FFh
jnz loc_53EA0
mov [rbp+var_68], r12
mov [rbp+var_58], r10
mov rdx, r11
sub rdx, r8
mov rcx, [rbp+var_60]
lea r13, [rcx+r11]
xor r10d, r10d
loc_53DED:
mov rbx, r10
shl rbx, 4
mov rsi, [rbx+r15]
mov r9b, [rsi]
test r9b, r9b
jz short loc_53E30
cmp rdx, rdi
jge short loc_53E30
inc rsi
mov r14, r13
mov r12, r11
loc_53E0E:
cmp r9b, [r12]
jnz short loc_53E38
inc r12
mov r9b, [rsi]
test r9b, r9b
jz short loc_53E33
lea rcx, [r14+1]
inc rsi
cmp r14, rdi
mov r14, rcx
jl short loc_53E0E
jmp short loc_53E33
loc_53E30:
mov r12, r11
loc_53E33:
test r9b, r9b
jz short loc_53E75
loc_53E38:
inc r10
cmp r10, 50h ; 'P'
jnz short loc_53DED
mov sil, 0FFh
mov rbx, [rbp+var_48]
mov r9, [rbp+var_40]
mov r8, [rbp+var_38]
mov edx, [rbp+var_2C]
mov r10, [rbp+var_58]
lea r14, _sort_order_win1250ch2
jmp short loc_53EA5
loc_53E60:
xor r10d, r10d
mov r12d, 8
lea rsi, _sort_order_win1250ch1
jmp loc_53DC2
loc_53E75:
add rbx, r15
mov rcx, [rbp+var_68]
mov sil, [rbx+rcx]
dec r12
mov r11, r12
mov rbx, [rbp+var_48]
mov r9, [rbp+var_40]
mov r8, [rbp+var_38]
mov edx, [rbp+var_2C]
mov r10, [rbp+var_58]
lea r14, _sort_order_win1250ch2
loc_53EA0:
test sil, sil
jz short loc_53EC8
loc_53EA5:
bt edx, r10d
jnb short loc_53EB6
mov rcx, [rbp+var_50]
mov [rcx+rax], sil
inc rax
loc_53EB6:
inc r11
cmp rax, rbx
jb loc_53D82
jmp short loc_53EE3
loc_53EC4:
xor eax, eax
jmp short loc_53EE3
loc_53EC8:
test dl, dl
jns short loc_53EE3
mov rdi, [rbp+var_50]
add rdi, rax
mov rdx, rbx
sub rdx, rax
xor esi, esi
call _memset
mov rax, rbx
loc_53EE3:
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| unsigned long long my_strnxfrm_win1250ch(
long long a1,
long long a2,
unsigned long long a3,
long long a4,
unsigned __int8 *a5,
int a6,
int a7)
{
int v8; // edx
long long v9; // r10
long long v10; // rdi
unsigned long long result; // rax
unsigned __int8 *v12; // r11
long long v13; // r12
_BYTE *v14; // rsi
char v15; // si
long long v16; // r10
char *v17; // rsi
char v18; // r9
char *v19; // rsi
unsigned __int8 *v20; // r14
_BYTE *v21; // r12
long long v23; // [rsp+8h] [rbp-68h]
long long v24; // [rsp+10h] [rbp-60h]
long long v25; // [rsp+18h] [rbp-58h]
unsigned long long v27; // [rsp+28h] [rbp-48h]
int v28; // [rsp+30h] [rbp-40h]
unsigned __int8 *v29; // [rsp+38h] [rbp-38h]
int v30; // [rsp+44h] [rbp-2Ch]
v8 = a7 | 0xF;
if ( (a7 & 0xF) != 0 )
v8 = a7;
v9 = 0LL;
if ( !a3 )
return 0LL;
v10 = a6;
v24 = 1LL - (_QWORD)a5;
result = 0LL;
v12 = a5;
v27 = a3;
v28 = a6;
v29 = a5;
v30 = v8;
while ( 2 )
{
if ( v12 - a5 >= v10 )
{
if ( a6 <= 0 || (_DWORD)v9 )
break;
v9 = 1LL;
v13 = 9LL;
v12 = a5;
}
else
{
if ( !(_DWORD)v9 )
{
v9 = 0LL;
v13 = 8LL;
v14 = &sort_order_win1250ch1;
goto LABEL_12;
}
v13 = 9LL;
}
v14 = &sort_order_win1250ch2;
LABEL_12:
v15 = v14[*v12];
if ( v15 != -1 )
goto LABEL_27;
v23 = v13;
v25 = v9;
v16 = 0LL;
while ( 1 )
{
v17 = (char *)*(&doubles_0 + 2 * v16);
v18 = *v17;
if ( !*v17 || v12 - a5 >= v10 )
break;
v19 = v17 + 1;
v20 = &v12[v24];
v21 = v12;
while ( v18 == *v21 )
{
++v21;
v18 = *v19;
if ( *v19 )
{
++v19;
if ( (long long)v20++ < v10 )
continue;
}
goto LABEL_22;
}
LABEL_23:
if ( ++v16 == 80 )
{
v15 = -1;
a3 = v27;
a6 = v28;
a5 = v29;
v8 = v30;
v9 = v25;
goto LABEL_28;
}
}
v21 = v12;
LABEL_22:
if ( v18 )
goto LABEL_23;
v15 = *((_BYTE *)&doubles_0 + 16 * v16 + v23);
v12 = v21 - 1;
a3 = v27;
a6 = v28;
a5 = v29;
v8 = v30;
v9 = v25;
LABEL_27:
if ( v15 )
{
LABEL_28:
if ( _bittest(&v8, v9) )
*(_BYTE *)(a2 + result++) = v15;
++v12;
if ( result >= a3 )
return result;
continue;
}
break;
}
if ( (v8 & 0x80u) != 0 )
{
memset(result + a2, 0LL, a3 - result);
return a3;
}
return result;
}
| my_strnxfrm_win1250ch:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV RBX,RDX
MOV qword ptr [RBP + -0x50],RSI
MOV EAX,dword ptr [RBP + 0x10]
MOV EDX,EAX
OR EDX,0xf
TEST AL,0xf
CMOVNZ EDX,EAX
XOR R10D,R10D
TEST RBX,RBX
JZ 0x00153ec4
MOVSXD RDI,R9D
MOV EAX,0x1
SUB RAX,R8
MOV qword ptr [RBP + -0x60],RAX
LEA R14,[0x3d8a10]
LEA R15,[0x3ee520]
XOR EAX,EAX
MOV R11,R8
MOV qword ptr [RBP + -0x48],RBX
MOV qword ptr [RBP + -0x40],R9
MOV qword ptr [RBP + -0x38],R8
MOV dword ptr [RBP + -0x2c],EDX
LAB_00153d82:
MOV RSI,R11
SUB RSI,R8
CMP RSI,RDI
JGE 0x00153d9e
TEST R10D,R10D
JZ 0x00153e60
MOV R12D,0x9
JMP 0x00153dbf
LAB_00153d9e:
TEST R9D,R9D
JLE 0x00153ec8
TEST R10D,R10D
JNZ 0x00153ec8
MOV R10D,0x1
MOV R12D,0x9
MOV R11,R8
LAB_00153dbf:
MOV RSI,R14
LAB_00153dc2:
MOVZX ECX,byte ptr [R11]
MOV SIL,byte ptr [RSI + RCX*0x1]
CMP SIL,0xff
JNZ 0x00153ea0
MOV qword ptr [RBP + -0x68],R12
MOV qword ptr [RBP + -0x58],R10
MOV RDX,R11
SUB RDX,R8
MOV RCX,qword ptr [RBP + -0x60]
LEA R13,[RCX + R11*0x1]
XOR R10D,R10D
LAB_00153ded:
MOV RBX,R10
SHL RBX,0x4
MOV RSI,qword ptr [RBX + R15*0x1]
MOV R9B,byte ptr [RSI]
TEST R9B,R9B
JZ 0x00153e30
CMP RDX,RDI
JGE 0x00153e30
INC RSI
MOV R14,R13
MOV R12,R11
LAB_00153e0e:
CMP R9B,byte ptr [R12]
JNZ 0x00153e38
INC R12
MOV R9B,byte ptr [RSI]
TEST R9B,R9B
JZ 0x00153e33
LEA RCX,[R14 + 0x1]
INC RSI
CMP R14,RDI
MOV R14,RCX
JL 0x00153e0e
JMP 0x00153e33
LAB_00153e30:
MOV R12,R11
LAB_00153e33:
TEST R9B,R9B
JZ 0x00153e75
LAB_00153e38:
INC R10
CMP R10,0x50
JNZ 0x00153ded
MOV SIL,0xff
MOV RBX,qword ptr [RBP + -0x48]
MOV R9,qword ptr [RBP + -0x40]
MOV R8,qword ptr [RBP + -0x38]
MOV EDX,dword ptr [RBP + -0x2c]
MOV R10,qword ptr [RBP + -0x58]
LEA R14,[0x3d8a10]
JMP 0x00153ea5
LAB_00153e60:
XOR R10D,R10D
MOV R12D,0x8
LEA RSI,[0x3d8910]
JMP 0x00153dc2
LAB_00153e75:
ADD RBX,R15
MOV RCX,qword ptr [RBP + -0x68]
MOV SIL,byte ptr [RBX + RCX*0x1]
DEC R12
MOV R11,R12
MOV RBX,qword ptr [RBP + -0x48]
MOV R9,qword ptr [RBP + -0x40]
MOV R8,qword ptr [RBP + -0x38]
MOV EDX,dword ptr [RBP + -0x2c]
MOV R10,qword ptr [RBP + -0x58]
LEA R14,[0x3d8a10]
LAB_00153ea0:
TEST SIL,SIL
JZ 0x00153ec8
LAB_00153ea5:
BT EDX,R10D
JNC 0x00153eb6
MOV RCX,qword ptr [RBP + -0x50]
MOV byte ptr [RCX + RAX*0x1],SIL
INC RAX
LAB_00153eb6:
INC R11
CMP RAX,RBX
JC 0x00153d82
JMP 0x00153ee3
LAB_00153ec4:
XOR EAX,EAX
JMP 0x00153ee3
LAB_00153ec8:
TEST DL,DL
JNS 0x00153ee3
MOV RDI,qword ptr [RBP + -0x50]
ADD RDI,RAX
MOV RDX,RBX
SUB RDX,RAX
XOR ESI,ESI
CALL 0x00124180
MOV RAX,RBX
LAB_00153ee3:
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong my_strnxfrm_win1250ch
(int8 param_1,long param_2,ulong param_3,int8 param_4,byte *param_5,
int param_6,uint param_7)
{
uint uVar1;
byte *pbVar2;
byte *pbVar3;
byte *pbVar4;
ulong uVar5;
char cVar6;
int1 *puVar7;
byte *pbVar8;
byte bVar9;
int iVar10;
long lVar11;
byte *pbVar12;
byte *pbVar13;
long lVar14;
uVar1 = param_7 | 0xf;
if ((param_7 & 0xf) != 0) {
uVar1 = param_7;
}
iVar10 = 0;
if (param_3 == 0) {
uVar5 = 0;
}
else {
uVar5 = 0;
pbVar12 = param_5;
do {
if ((long)pbVar12 - (long)param_5 < (long)param_6) {
if (iVar10 != 0) goto LAB_00153dbf;
iVar10 = 0;
lVar14 = 8;
puVar7 = _sort_order_win1250ch1;
}
else {
if ((param_6 < 1) || (iVar10 != 0)) goto LAB_00153ec8;
iVar10 = 1;
pbVar12 = param_5;
LAB_00153dbf:
lVar14 = 9;
puVar7 = _sort_order_win1250ch2;
}
cVar6 = puVar7[*pbVar12];
if (cVar6 == -1) {
lVar11 = 0;
do {
pbVar8 = (&doubles)[lVar11 * 2];
bVar9 = *pbVar8;
pbVar13 = pbVar12;
pbVar4 = pbVar12 + (1 - (long)param_5);
pbVar3 = pbVar12 + -(long)param_5;
if (bVar9 != 0) {
while (pbVar2 = pbVar4, (long)pbVar3 < (long)param_6) {
pbVar8 = pbVar8 + 1;
if (bVar9 != *pbVar13) goto LAB_00153e38;
pbVar13 = pbVar13 + 1;
bVar9 = *pbVar8;
if (bVar9 == 0) break;
pbVar4 = pbVar2 + 1;
pbVar3 = pbVar2;
}
}
if (bVar9 == 0) {
cVar6 = *(char *)((long)&doubles + lVar14 + lVar11 * 0x10);
pbVar12 = pbVar13 + -1;
goto LAB_00153ea0;
}
LAB_00153e38:
lVar11 = lVar11 + 1;
} while (lVar11 != 0x50);
cVar6 = -1;
}
else {
LAB_00153ea0:
if (cVar6 == '\0') {
LAB_00153ec8:
if (-1 < (char)uVar1) {
return uVar5;
}
memset((void *)(param_2 + uVar5),0,param_3 - uVar5);
return param_3;
}
}
if ((uVar1 >> iVar10 & 1) != 0) {
*(char *)(param_2 + uVar5) = cVar6;
uVar5 = uVar5 + 1;
}
pbVar12 = pbVar12 + 1;
} while (uVar5 < param_3);
}
return uVar5;
}
| |
45,714 | add_cfg_dir | eloqsql/libmariadb/libmariadb/ma_default.c | static int add_cfg_dir(char **cfg_dirs, const char *directory)
{
int i;
for (i = 0; i < MAX_CONFIG_DIRS && cfg_dirs[i]; i++)
if (!strcmp(cfg_dirs[i], directory)) /* already present */
return 0;
if (i < MAX_CONFIG_DIRS) {
cfg_dirs[i]= strdup(directory);
return 0;
}
return 1;
} | O0 | c | add_cfg_dir:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
xorl %eax, %eax
cmpl $0x6, -0x1c(%rbp)
movb %al, -0x1d(%rbp)
jge 0xa0965
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
setne %al
movb %al, -0x1d(%rbp)
movb -0x1d(%rbp), %al
testb $0x1, %al
jne 0xa096e
jmp 0xa099e
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x18(%rbp), %rsi
callq 0x3b990
cmpl $0x0, %eax
jne 0xa0991
movl $0x0, -0x4(%rbp)
jmp 0xa09cc
jmp 0xa0993
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0xa0947
cmpl $0x6, -0x1c(%rbp)
jge 0xa09c5
movq -0x18(%rbp), %rdi
callq 0x3b030
movq %rax, %rdx
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl $0x0, -0x4(%rbp)
jmp 0xa09cc
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| add_cfg_dir:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], 0
loc_A0947:
xor eax, eax
cmp [rbp+var_1C], 6
mov [rbp+var_1D], al
jge short loc_A0965
mov rax, [rbp+var_10]
movsxd rcx, [rbp+var_1C]
cmp qword ptr [rax+rcx*8], 0
setnz al
mov [rbp+var_1D], al
loc_A0965:
mov al, [rbp+var_1D]
test al, 1
jnz short loc_A096E
jmp short loc_A099E
loc_A096E:
mov rax, [rbp+var_10]
movsxd rcx, [rbp+var_1C]
mov rdi, [rax+rcx*8]
mov rsi, [rbp+var_18]
call _strcmp
cmp eax, 0
jnz short loc_A0991
mov [rbp+var_4], 0
jmp short loc_A09CC
loc_A0991:
jmp short $+2
loc_A0993:
mov eax, [rbp+var_1C]
add eax, 1
mov [rbp+var_1C], eax
jmp short loc_A0947
loc_A099E:
cmp [rbp+var_1C], 6
jge short loc_A09C5
mov rdi, [rbp+var_18]
call _strdup
mov rdx, rax
mov rax, [rbp+var_10]
movsxd rcx, [rbp+var_1C]
mov [rax+rcx*8], rdx
mov [rbp+var_4], 0
jmp short loc_A09CC
loc_A09C5:
mov [rbp+var_4], 1
loc_A09CC:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
| long long add_cfg_dir(long long a1, long long a2)
{
bool v3; // [rsp+3h] [rbp-1Dh]
int i; // [rsp+4h] [rbp-1Ch]
for ( i = 0; ; ++i )
{
v3 = 0;
if ( i < 6 )
v3 = *(_QWORD *)(a1 + 8LL * i) != 0LL;
if ( !v3 )
break;
if ( !(unsigned int)strcmp(*(_QWORD *)(a1 + 8LL * i), a2) )
return 0;
}
if ( i >= 6 )
{
return 1;
}
else
{
*(_QWORD *)(a1 + 8LL * i) = strdup(a2);
return 0;
}
}
| add_cfg_dir:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],0x0
LAB_001a0947:
XOR EAX,EAX
CMP dword ptr [RBP + -0x1c],0x6
MOV byte ptr [RBP + -0x1d],AL
JGE 0x001a0965
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,dword ptr [RBP + -0x1c]
CMP qword ptr [RAX + RCX*0x8],0x0
SETNZ AL
MOV byte ptr [RBP + -0x1d],AL
LAB_001a0965:
MOV AL,byte ptr [RBP + -0x1d]
TEST AL,0x1
JNZ 0x001a096e
JMP 0x001a099e
LAB_001a096e:
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,dword ptr [RBP + -0x1c]
MOV RDI,qword ptr [RAX + RCX*0x8]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x0013b990
CMP EAX,0x0
JNZ 0x001a0991
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001a09cc
LAB_001a0991:
JMP 0x001a0993
LAB_001a0993:
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x001a0947
LAB_001a099e:
CMP dword ptr [RBP + -0x1c],0x6
JGE 0x001a09c5
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x0013b030
MOV RDX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,dword ptr [RBP + -0x1c]
MOV qword ptr [RAX + RCX*0x8],RDX
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001a09cc
LAB_001a09c5:
MOV dword ptr [RBP + -0x4],0x1
LAB_001a09cc:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int4 add_cfg_dir(long param_1,char *param_2)
{
int iVar1;
char *pcVar2;
bool bVar3;
int local_24;
local_24 = 0;
while( true ) {
bVar3 = false;
if (local_24 < 6) {
bVar3 = *(long *)(param_1 + (long)local_24 * 8) != 0;
}
if (!bVar3) break;
iVar1 = strcmp(*(char **)(param_1 + (long)local_24 * 8),param_2);
if (iVar1 == 0) {
return 0;
}
local_24 = local_24 + 1;
}
if (local_24 < 6) {
pcVar2 = strdup(param_2);
*(char **)(param_1 + (long)local_24 * 8) = pcVar2;
return 0;
}
return 1;
}
| |
45,715 | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::empty() const | monkey531[P]llama/common/json.hpp | bool empty() const noexcept
{
switch (m_data.m_type)
{
case value_t::null:
{
// null values are empty
return true;
}
case value_t::array:
{
// delegate call to array_t::empty()
return m_data.m_value.array->empty();
}
case value_t::object:
{
// delegate call to object_t::empty()
return m_data.m_value.object->empty();
}
case value_t::string:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::binary:
case value_t::discarded:
default:
{
// all other types are nonempty
return false;
}
}
} | O2 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::empty() const:
movzbl (%rdi), %eax
testl %eax, %eax
je 0x63fe0
cmpl $0x1, %eax
je 0x63fd1
cmpl $0x2, %eax
jne 0x63fe3
movq 0x8(%rdi), %rax
movq (%rax), %rcx
cmpq 0x8(%rax), %rcx
sete %al
retq
movb $0x1, %al
retq
xorl %eax, %eax
retq
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5emptyEv:
movzx eax, byte ptr [rdi]
test eax, eax
jz short loc_63FE0
cmp eax, 1
jz short loc_63FD1
cmp eax, 2
jnz short loc_63FE3
loc_63FD1:
mov rax, [rdi+8]
mov rcx, [rax]
cmp rcx, [rax+8]
setz al
retn
loc_63FE0:
mov al, 1
retn
loc_63FE3:
xor eax, eax
retn
| bool nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::empty(
unsigned __int8 *a1)
{
int v1; // eax
v1 = *a1;
if ( !*a1 )
return 1;
if ( v1 == 1 || v1 == 2 )
return **((_QWORD **)a1 + 1) == *(_QWORD *)(*((_QWORD *)a1 + 1) + 8LL);
return 0;
}
| empty:
MOVZX EAX,byte ptr [RDI]
TEST EAX,EAX
JZ 0x00163fe0
CMP EAX,0x1
JZ 0x00163fd1
CMP EAX,0x2
JNZ 0x00163fe3
LAB_00163fd1:
MOV RAX,qword ptr [RDI + 0x8]
MOV RCX,qword ptr [RAX]
CMP RCX,qword ptr [RAX + 0x8]
SETZ AL
RET
LAB_00163fe0:
MOV AL,0x1
RET
LAB_00163fe3:
XOR EAX,EAX
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::empty() const */
int8 __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::empty(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this)
{
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
bVar1;
long *plVar2;
bVar1 = *this;
if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x0) {
return 1;
}
if ((bVar1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x1) &&
(bVar1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x2)) {
return 0;
}
plVar2 = *(long **)(this + 8);
return CONCAT71((int7)((ulong)plVar2 >> 8),*plVar2 == plVar2[1]);
}
| |
45,716 | ftxui::TerminalInputParser::ParseESC() | Andrewchistyakov[P]flashcards_lyc/build_O1/_deps/ftxui-src/src/ftxui/component/terminal_input_parser.cpp | TerminalInputParser::Output TerminalInputParser::ParseESC() {
if (!Eat()) {
return UNCOMPLETED;
}
switch (Current()) {
case 'P':
return ParseDCS();
case '[':
return ParseCSI();
case ']':
return ParseOSC();
default:
if (!Eat()) {
return UNCOMPLETED;
} else {
return SPECIAL;
}
}
} | O1 | cpp | ftxui::TerminalInputParser::ParseESC():
pushq %rbx
movq %rdi, %rbx
movslq 0x8(%rsi), %rax
leaq 0x1(%rax), %rdx
movl %edx, 0x8(%rsi)
movl 0x18(%rsi), %ecx
cmpl %ecx, %edx
jge 0x3364b
movq 0x10(%rsi), %rdi
movzbl (%rdi,%rdx), %edx
cmpl $0x5d, %edx
je 0x3362f
cmpl $0x5b, %edx
je 0x33625
cmpl $0x50, %edx
jne 0x33639
movq %rbx, %rdi
callq 0x33740
jmp 0x33651
movq %rbx, %rdi
callq 0x33792
jmp 0x33651
movq %rbx, %rdi
callq 0x33a00
jmp 0x33651
addl $0x2, %eax
movl %eax, 0x8(%rsi)
cmpl %ecx, %eax
jge 0x3364b
movl $0x3, (%rbx)
jmp 0x33651
movl $0x0, (%rbx)
movq %rbx, %rax
popq %rbx
retq
| _ZN5ftxui19TerminalInputParser8ParseESCEv:
push rbx
mov rbx, rdi
movsxd rax, dword ptr [rsi+8]
lea rdx, [rax+1]
mov [rsi+8], edx
mov ecx, [rsi+18h]
cmp edx, ecx
jge short loc_3364B
mov rdi, [rsi+10h]
movzx edx, byte ptr [rdi+rdx]
cmp edx, 5Dh ; ']'
jz short loc_3362F
cmp edx, 5Bh ; '['
jz short loc_33625
cmp edx, 50h ; 'P'
jnz short loc_33639
mov rdi, rbx; this
call _ZN5ftxui19TerminalInputParser8ParseDCSEv; ftxui::TerminalInputParser::ParseDCS(void)
jmp short loc_33651
loc_33625:
mov rdi, rbx; this
call _ZN5ftxui19TerminalInputParser8ParseCSIEv; ftxui::TerminalInputParser::ParseCSI(void)
jmp short loc_33651
loc_3362F:
mov rdi, rbx; this
call _ZN5ftxui19TerminalInputParser8ParseOSCEv; ftxui::TerminalInputParser::ParseOSC(void)
jmp short loc_33651
loc_33639:
add eax, 2
mov [rsi+8], eax
cmp eax, ecx
jge short loc_3364B
mov dword ptr [rbx], 3
jmp short loc_33651
loc_3364B:
mov dword ptr [rbx], 0
loc_33651:
mov rax, rbx
pop rbx
retn
| ftxui::TerminalInputParser * ftxui::TerminalInputParser::ParseESC(
ftxui::TerminalInputParser *this,
long long a2)
{
long long v2; // rax
int v3; // ecx
int v4; // edx
int v5; // eax
v2 = *(int *)(a2 + 8);
*(_DWORD *)(a2 + 8) = v2 + 1;
v3 = *(_DWORD *)(a2 + 24);
if ( (int)v2 + 1 >= v3 )
goto LABEL_10;
v4 = *(unsigned __int8 *)(*(_QWORD *)(a2 + 16) + v2 + 1);
if ( v4 == 93 )
{
ftxui::TerminalInputParser::ParseOSC(this);
return this;
}
if ( v4 == 91 )
{
ftxui::TerminalInputParser::ParseCSI(this);
return this;
}
if ( v4 != 80 )
{
v5 = v2 + 2;
*(_DWORD *)(a2 + 8) = v5;
if ( v5 < v3 )
{
*(_DWORD *)this = 3;
return this;
}
LABEL_10:
*(_DWORD *)this = 0;
return this;
}
ftxui::TerminalInputParser::ParseDCS(this);
return this;
}
| ParseESC:
PUSH RBX
MOV RBX,RDI
MOVSXD RAX,dword ptr [RSI + 0x8]
LEA RDX,[RAX + 0x1]
MOV dword ptr [RSI + 0x8],EDX
MOV ECX,dword ptr [RSI + 0x18]
CMP EDX,ECX
JGE 0x0013364b
MOV RDI,qword ptr [RSI + 0x10]
MOVZX EDX,byte ptr [RDI + RDX*0x1]
CMP EDX,0x5d
JZ 0x0013362f
CMP EDX,0x5b
JZ 0x00133625
CMP EDX,0x50
JNZ 0x00133639
MOV RDI,RBX
CALL 0x00133740
JMP 0x00133651
LAB_00133625:
MOV RDI,RBX
CALL 0x00133792
JMP 0x00133651
LAB_0013362f:
MOV RDI,RBX
CALL 0x00133a00
JMP 0x00133651
LAB_00133639:
ADD EAX,0x2
MOV dword ptr [RSI + 0x8],EAX
CMP EAX,ECX
JGE 0x0013364b
MOV dword ptr [RBX],0x3
JMP 0x00133651
LAB_0013364b:
MOV dword ptr [RBX],0x0
LAB_00133651:
MOV RAX,RBX
POP RBX
RET
|
/* ftxui::TerminalInputParser::ParseESC() */
void ftxui::TerminalInputParser::ParseESC(void)
{
long lVar1;
char cVar2;
int iVar3;
int iVar4;
long in_RSI;
int4 *in_RDI;
iVar3 = *(int *)(in_RSI + 8);
lVar1 = (long)iVar3 + 1;
iVar4 = (int)lVar1;
*(int *)(in_RSI + 8) = iVar4;
if (iVar4 < *(int *)(in_RSI + 0x18)) {
cVar2 = *(char *)(*(long *)(in_RSI + 0x10) + lVar1);
if (cVar2 == ']') {
ParseOSC();
return;
}
if (cVar2 == '[') {
ParseCSI();
return;
}
if (cVar2 == 'P') {
ParseDCS();
return;
}
iVar3 = iVar3 + 2;
*(int *)(in_RSI + 8) = iVar3;
if (iVar3 < *(int *)(in_RSI + 0x18)) {
*in_RDI = 3;
return;
}
}
*in_RDI = 0;
return;
}
| |
45,717 | my_numcells_cp932 | eloqsql/strings/ctype-cp932.c | static
size_t my_numcells_cp932(CHARSET_INFO *cs __attribute__((unused)),
const char *str, const char *str_end)
{
size_t clen= 0;
const uchar *b= (const uchar *) str;
const uchar *e= (const uchar *) str_end;
for (clen= 0; b < e; )
{
if (*b >= 0xA1 && *b <= 0xDF)
{
clen++;
b++;
}
else if (*b > 0x7F)
{
clen+= 2;
b+= 2;
}
else
{
clen++;
b++;
}
}
return clen;
} | O3 | c | my_numcells_cp932:
cmpq %rdx, %rsi
jae 0x4f9f3
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
movl $0x1, %ecx
movb (%rsi), %dil
leal 0x5f(%rdi), %r8d
shrb $0x7, %dil
movzbl %dil, %edi
incq %rdi
cmpb $0x3f, %r8b
cmovbq %rcx, %rdi
addq %rdi, %rax
addq %rdi, %rsi
cmpq %rdx, %rsi
jb 0x4f9cc
popq %rbp
retq
xorl %eax, %eax
retq
| my_numcells_cp932:
cmp rsi, rdx
jnb short loc_4F9F3
push rbp
mov rbp, rsp
xor eax, eax
mov ecx, 1
loc_4F9CC:
mov dil, [rsi]
lea r8d, [rdi+5Fh]
shr dil, 7
movzx edi, dil
inc rdi
cmp r8b, 3Fh ; '?'
cmovb rdi, rcx
add rax, rdi
add rsi, rdi
cmp rsi, rdx
jb short loc_4F9CC
pop rbp
retn
loc_4F9F3:
xor eax, eax
retn
| long long my_numcells_cp932(long long a1, _BYTE *a2, unsigned long long a3)
{
long long result; // rax
long long v4; // rdi
if ( (unsigned long long)a2 >= a3 )
return 0LL;
result = 0LL;
do
{
v4 = (*a2 >> 7) + 1LL;
if ( (unsigned __int8)(*a2 + 95) < 0x3Fu )
v4 = 1LL;
result += v4;
a2 += v4;
}
while ( (unsigned long long)a2 < a3 );
return result;
}
| my_numcells_cp932:
CMP RSI,RDX
JNC 0x0014f9f3
PUSH RBP
MOV RBP,RSP
XOR EAX,EAX
MOV ECX,0x1
LAB_0014f9cc:
MOV DIL,byte ptr [RSI]
LEA R8D,[RDI + 0x5f]
SHR DIL,0x7
MOVZX EDI,DIL
INC RDI
CMP R8B,0x3f
CMOVC RDI,RCX
ADD RAX,RDI
ADD RSI,RDI
CMP RSI,RDX
JC 0x0014f9cc
POP RBP
RET
LAB_0014f9f3:
XOR EAX,EAX
RET
|
long my_numcells_cp932(int8 param_1,byte *param_2,byte *param_3)
{
long lVar1;
long lVar2;
if (param_2 < param_3) {
lVar1 = 0;
do {
lVar2 = (ulong)(*param_2 >> 7) + 1;
if ((byte)(*param_2 + 0x5f) < 0x3f) {
lVar2 = 1;
}
lVar1 = lVar1 + lVar2;
param_2 = param_2 + lVar2;
} while (param_2 < param_3);
return lVar1;
}
return 0;
}
| |
45,718 | ftxui::(anonymous namespace)::VBox::SetBox(ftxui::Box) | Andrewchistyakov[P]flashcards_lyc/build_O1/_deps/ftxui-src/src/ftxui/dom/vbox.cpp | void SetBox(Box box) override {
Node::SetBox(box);
std::vector<box_helper::Element> elements(children_.size());
for (size_t i = 0; i < children_.size(); ++i) {
auto& element = elements[i];
const auto& requirement = children_[i]->requirement();
element.min_size = requirement.min_y;
element.flex_grow = requirement.flex_grow_y;
element.flex_shrink = requirement.flex_shrink_y;
}
const int target_size = box.y_max - box.y_min + 1;
box_helper::Compute(&elements, target_size);
int y = box.y_min;
for (size_t i = 0; i < children_.size(); ++i) {
box.y_min = y;
box.y_max = y + elements[i].size - 1;
children_[i]->SetBox(box);
y = box.y_max + 1;
}
} | O1 | cpp | ftxui::(anonymous namespace)::VBox::SetBox(ftxui::Box):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movq %rdx, %r12
shrq $0x20, %r12
callq 0x24194
movq 0x10(%r14), %rsi
subq 0x8(%r14), %rsi
sarq $0x4, %rsi
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x24034
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
subq %rax, %rcx
je 0x2682f
sarq $0x4, %rcx
movq 0x10(%rsp), %rdx
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorl %esi, %esi
movq (%rax,%rsi), %rdi
movl 0x24(%rdi), %r8d
movl 0x2c(%rdi), %r9d
movl 0x34(%rdi), %edi
movl %r8d, (%rdx,%rsi)
movl %r9d, 0x4(%rdx,%rsi)
movl %edi, 0x8(%rdx,%rsi)
addq $0x10, %rsi
decq %rcx
jne 0x2680a
subl %r15d, %r12d
incl %r12d
leaq 0x10(%rsp), %rdi
movl %r12d, %esi
callq 0x268e4
movq 0x8(%r14), %rax
cmpq %rax, 0x10(%r14)
je 0x2689a
xorl %r12d, %r12d
xorl %r13d, %r13d
movq 0x10(%rsp), %rcx
movl 0xc(%rcx,%r12), %ebp
leal (%r15,%rbp), %ecx
decl %ecx
movq (%rax,%r12), %rdi
shlq $0x20, %rcx
movl %r15d, %edx
orq %rcx, %rdx
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x18(%rax)
addl %r15d, %ebp
incq %r13
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
subq %rax, %rcx
sarq $0x4, %rcx
addq $0x10, %r12
movl %ebp, %r15d
cmpq %rcx, %r13
jb 0x26852
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x268b1
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0xb400
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x268c2
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x268dc
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0xb400
movq %rbx, %rdi
callq 0xb780
| _ZN5ftxui12_GLOBAL__N_14VBox6SetBoxENS_3BoxE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r15, rdx
mov rbx, rsi
mov r14, rdi
mov r12, rdx
shr r12, 20h
call _ZN5ftxui4Node6SetBoxENS_3BoxE; ftxui::Node::SetBox(ftxui::Box)
mov rsi, [r14+10h]
sub rsi, [r14+8]
sar rsi, 4
lea rdi, [rsp+58h+var_48]
lea rdx, [rsp+58h+var_49]
call _ZNSt6vectorIN5ftxui10box_helper7ElementESaIS2_EEC2EmRKS3_; std::vector<ftxui::box_helper::Element>::vector(ulong,std::allocator<ftxui::box_helper::Element> const&)
mov rax, [r14+8]
mov rcx, [r14+10h]
sub rcx, rax
jz short loc_2682F
sar rcx, 4
mov rdx, [rsp+58h+var_48]
cmp rcx, 1
adc rcx, 0
xor esi, esi
loc_2680A:
mov rdi, [rax+rsi]
mov r8d, [rdi+24h]
mov r9d, [rdi+2Ch]
mov edi, [rdi+34h]
mov [rdx+rsi], r8d
mov [rdx+rsi+4], r9d
mov [rdx+rsi+8], edi
add rsi, 10h
dec rcx
jnz short loc_2680A
loc_2682F:
sub r12d, r15d
inc r12d
lea rdi, [rsp+58h+var_48]
mov esi, r12d
call _ZN5ftxui10box_helper7ComputeEPSt6vectorINS0_7ElementESaIS2_EEi; ftxui::box_helper::Compute(std::vector<ftxui::box_helper::Element> *,int)
mov rax, [r14+8]
cmp [r14+10h], rax
jz short loc_2689A
xor r12d, r12d
xor r13d, r13d
loc_26852:
mov rcx, [rsp+58h+var_48]
mov ebp, [rcx+r12+0Ch]
lea ecx, [r15+rbp]
dec ecx
mov rdi, [rax+r12]
shl rcx, 20h
mov edx, r15d
or rdx, rcx
mov rax, [rdi]
mov rsi, rbx
call qword ptr [rax+18h]
add ebp, r15d
inc r13
mov rax, [r14+8]
mov rcx, [r14+10h]
sub rcx, rax
sar rcx, 4
add r12, 10h
mov r15d, ebp
cmp r13, rcx
jb short loc_26852
loc_2689A:
mov rdi, [rsp+58h+var_48]; void *
test rdi, rdi
jz short loc_268B1
mov rsi, [rsp+58h+var_38]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_268B1:
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_268C2:
mov rbx, rax
mov rdi, [rsp+arg_8]; void *
test rdi, rdi
jz short loc_268DC
mov rsi, [rsp+arg_18]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_268DC:
mov rdi, rbx
call __Unwind_Resume
| void ftxui::`anonymous namespace'::VBox::SetBox(long long a1, long long a2, unsigned long long a3)
{
unsigned int v3; // r15d
unsigned long long v6; // r12
long long v7; // rax
long long v8; // rcx
char *v9; // rdx
long long v10; // rcx
long long v11; // rsi
_DWORD *v12; // rdi
int v13; // r8d
int v14; // r9d
long long v15; // rax
long long v16; // r12
unsigned long long v17; // r13
int v18; // ebp
void *v19[9]; // [rsp+10h] [rbp-48h] BYREF
v3 = a3;
v6 = HIDWORD(a3);
ftxui::Node::SetBox(a1, a2, a3);
std::vector<ftxui::box_helper::Element>::vector(
(long long)v19,
(long long)(*(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 8)) >> 4);
v7 = *(_QWORD *)(a1 + 8);
v8 = *(_QWORD *)(a1 + 16) - v7;
if ( v8 )
{
v9 = (char *)v19[0];
v10 = (v8 >> 4 == 0) + (v8 >> 4);
v11 = 0LL;
do
{
v12 = *(_DWORD **)(v7 + v11);
v13 = v12[9];
v14 = v12[11];
LODWORD(v12) = v12[13];
*(_DWORD *)&v9[v11] = v13;
*(_DWORD *)&v9[v11 + 4] = v14;
*(_DWORD *)&v9[v11 + 8] = (_DWORD)v12;
v11 += 16LL;
--v10;
}
while ( v10 );
}
ftxui::box_helper::Compute(v19, (unsigned int)v6 - v3 + 1);
v15 = *(_QWORD *)(a1 + 8);
if ( *(_QWORD *)(a1 + 16) != v15 )
{
v16 = 0LL;
v17 = 0LL;
do
{
v18 = *(_DWORD *)((char *)v19[0] + v16 + 12);
(*(void ( **)(_QWORD, long long, unsigned long long))(**(_QWORD **)(v15 + v16) + 24LL))(
*(_QWORD *)(v15 + v16),
a2,
((unsigned long long)(v3 + v18 - 1) << 32) | v3);
++v17;
v15 = *(_QWORD *)(a1 + 8);
v16 += 16LL;
v3 += v18;
}
while ( v17 < (*(_QWORD *)(a1 + 16) - v15) >> 4 );
}
if ( v19[0] )
operator delete(v19[0], (char *)v19[2] - (char *)v19[0]);
}
| SetBox:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R15,RDX
MOV RBX,RSI
MOV R14,RDI
MOV R12,RDX
SHR R12,0x20
CALL 0x00124194
MOV RSI,qword ptr [R14 + 0x10]
SUB RSI,qword ptr [R14 + 0x8]
SAR RSI,0x4
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0xf]
CALL 0x00124034
MOV RAX,qword ptr [R14 + 0x8]
MOV RCX,qword ptr [R14 + 0x10]
SUB RCX,RAX
JZ 0x0012682f
SAR RCX,0x4
MOV RDX,qword ptr [RSP + 0x10]
CMP RCX,0x1
ADC RCX,0x0
XOR ESI,ESI
LAB_0012680a:
MOV RDI,qword ptr [RAX + RSI*0x1]
MOV R8D,dword ptr [RDI + 0x24]
MOV R9D,dword ptr [RDI + 0x2c]
MOV EDI,dword ptr [RDI + 0x34]
MOV dword ptr [RDX + RSI*0x1],R8D
MOV dword ptr [RDX + RSI*0x1 + 0x4],R9D
MOV dword ptr [RDX + RSI*0x1 + 0x8],EDI
ADD RSI,0x10
DEC RCX
JNZ 0x0012680a
LAB_0012682f:
SUB R12D,R15D
INC R12D
LAB_00126835:
LEA RDI,[RSP + 0x10]
MOV ESI,R12D
CALL 0x001268e4
MOV RAX,qword ptr [R14 + 0x8]
CMP qword ptr [R14 + 0x10],RAX
JZ 0x0012689a
XOR R12D,R12D
XOR R13D,R13D
LAB_00126852:
MOV RCX,qword ptr [RSP + 0x10]
MOV EBP,dword ptr [RCX + R12*0x1 + 0xc]
LEA ECX,[R15 + RBP*0x1]
DEC ECX
MOV RDI,qword ptr [RAX + R12*0x1]
SHL RCX,0x20
MOV EDX,R15D
OR RDX,RCX
MOV RAX,qword ptr [RDI]
LAB_00126873:
MOV RSI,RBX
CALL qword ptr [RAX + 0x18]
LAB_00126879:
ADD EBP,R15D
INC R13
MOV RAX,qword ptr [R14 + 0x8]
MOV RCX,qword ptr [R14 + 0x10]
SUB RCX,RAX
SAR RCX,0x4
ADD R12,0x10
MOV R15D,EBP
CMP R13,RCX
JC 0x00126852
LAB_0012689a:
MOV RDI,qword ptr [RSP + 0x10]
TEST RDI,RDI
JZ 0x001268b1
MOV RSI,qword ptr [RSP + 0x20]
SUB RSI,RDI
CALL 0x0010b400
LAB_001268b1:
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* ftxui::(anonymous namespace)::VBox::SetBox(ftxui::Box) */
void ftxui::(anonymous_namespace)::VBox::SetBox(long param_1,int8 param_2,ulong param_3)
{
int4 uVar1;
int4 uVar2;
int iVar3;
long lVar4;
long lVar5;
long lVar6;
long lVar7;
ulong uVar8;
void *local_48 [2];
long local_38;
Node::SetBox();
std::vector<ftxui::box_helper::Element,std::allocator<ftxui::box_helper::Element>>::vector
((ulong)local_48,(allocator *)(*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 4))
;
lVar5 = *(long *)(param_1 + 8);
lVar6 = *(long *)(param_1 + 0x10) - lVar5;
if (lVar6 != 0) {
lVar6 = lVar6 >> 4;
lVar6 = lVar6 + (ulong)(lVar6 == 0);
lVar7 = 0;
do {
lVar4 = *(long *)(lVar5 + lVar7);
uVar1 = *(int4 *)(lVar4 + 0x2c);
uVar2 = *(int4 *)(lVar4 + 0x34);
*(int4 *)((long)local_48[0] + lVar7) = *(int4 *)(lVar4 + 0x24);
*(int4 *)((long)local_48[0] + lVar7 + 4) = uVar1;
*(int4 *)((long)local_48[0] + lVar7 + 8) = uVar2;
lVar7 = lVar7 + 0x10;
lVar6 = lVar6 + -1;
} while (lVar6 != 0);
}
/* try { // try from 00126835 to 00126841 has its CatchHandler @ 001268c0 */
box_helper::Compute((vector *)local_48,((int)(param_3 >> 0x20) - (int)param_3) + 1);
lVar5 = *(long *)(param_1 + 8);
if (*(long *)(param_1 + 0x10) != lVar5) {
lVar6 = 0;
uVar8 = 0;
do {
iVar3 = *(int *)((long)local_48[0] + lVar6 + 0xc);
/* try { // try from 00126873 to 00126878 has its CatchHandler @ 001268c2 */
(**(code **)(**(long **)(lVar5 + lVar6) + 0x18))
(*(long **)(lVar5 + lVar6),param_2,
param_3 & 0xffffffff | (ulong)(((int)param_3 + iVar3) - 1) << 0x20);
uVar8 = uVar8 + 1;
lVar5 = *(long *)(param_1 + 8);
lVar6 = lVar6 + 0x10;
param_3 = (ulong)(uint)(iVar3 + (int)param_3);
} while (uVar8 < (ulong)(*(long *)(param_1 + 0x10) - lVar5 >> 4));
}
if (local_48[0] != (void *)0x0) {
operator_delete(local_48[0],local_38 - (long)local_48[0]);
}
return;
}
| |
45,719 | my_rename_with_symlink | eloqsql/mysys/my_symlink2.c | int my_rename_with_symlink(const char *from, const char *to, myf MyFlags)
{
#ifndef HAVE_READLINK
return my_rename(from, to, MyFlags);
#else
char link_name[FN_REFLEN], tmp_name[FN_REFLEN];
int was_symlink= (!my_disable_symlinks &&
!my_readlink(link_name, from, MYF(0)));
int result=0;
int name_is_different;
DBUG_ENTER("my_rename_with_symlink");
if (!was_symlink)
DBUG_RETURN(my_rename(from, to, MyFlags));
/* Change filename that symlink pointed to */
strmov(tmp_name, to);
fn_same(tmp_name,link_name,1); /* Copy dir */
name_is_different= strcmp(link_name, tmp_name);
if (name_is_different && !access(tmp_name, F_OK))
{
my_errno= EEXIST;
if (MyFlags & MY_WME)
my_error(EE_CANTCREATEFILE, MYF(0), tmp_name, EEXIST);
DBUG_RETURN(1);
}
/* Create new symlink */
if (my_symlink(tmp_name, to, MyFlags))
DBUG_RETURN(1);
/*
Rename symlinked file if the base name didn't change.
This can happen if you use this function where 'from' and 'to' has
the same basename and different directories.
*/
if (name_is_different && my_rename(link_name, tmp_name, MyFlags))
{
int save_errno=my_errno;
my_delete(to, MyFlags); /* Remove created symlink */
my_errno=save_errno;
DBUG_RETURN(1);
}
/* Remove original symlink */
if (my_delete(from, MyFlags))
{
int save_errno=my_errno;
/* Remove created link */
my_delete(to, MyFlags);
/* Rename file back */
if (strcmp(link_name, tmp_name))
(void) my_rename(tmp_name, link_name, MyFlags);
my_errno=save_errno;
result= 1;
}
DBUG_RETURN(result);
#endif /* HAVE_READLINK */
} | O0 | c | my_rename_with_symlink:
pushq %rbp
movq %rsp, %rbp
subq $0x460, %rsp # imm = 0x460
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x420(%rbp)
movq %rsi, -0x428(%rbp)
movq %rdx, -0x430(%rbp)
xorl %eax, %eax
leaq 0xb8e156(%rip), %rcx # 0xc8530c
cmpb $0x0, (%rcx)
movb %al, -0x445(%rbp)
jne 0xf71e6
leaq -0x210(%rbp), %rdi
movq -0x420(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0xf68f0
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
movb %al, -0x445(%rbp)
movb -0x445(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x434(%rbp)
movl $0x0, -0x438(%rbp)
cmpl $0x0, -0x434(%rbp)
jne 0xf7231
jmp 0xf720c
movq -0x420(%rbp), %rdi
movq -0x428(%rbp), %rsi
movq -0x430(%rbp), %rdx
callq 0xf6530
movl %eax, -0x414(%rbp)
jmp 0xf7415
leaq -0x410(%rbp), %rdi
movq -0x428(%rbp), %rsi
callq 0x296a0
leaq -0x410(%rbp), %rdi
leaq -0x210(%rbp), %rsi
movl $0x1, %edx
callq 0x104bd0
leaq -0x210(%rbp), %rdi
leaq -0x410(%rbp), %rsi
callq 0x295d0
movl %eax, -0x43c(%rbp)
cmpl $0x0, -0x43c(%rbp)
je 0xf72da
leaq -0x410(%rbp), %rdi
xorl %esi, %esi
callq 0x290e0
cmpl $0x0, %eax
jne 0xf72da
callq 0xf7b30
movl $0x11, (%rax)
movq -0x430(%rbp), %rax
andq $0x10, %rax
cmpq $0x0, %rax
je 0xf72c9
leaq -0x410(%rbp), %rdx
movl $0x1, %edi
xorl %eax, %eax
movl %eax, %esi
movl $0x11, %ecx
movb $0x0, %al
callq 0xf14a0
jmp 0xf72cb
movl $0x1, -0x414(%rbp)
jmp 0xf7415
leaq -0x410(%rbp), %rdi
movq -0x428(%rbp), %rsi
movq -0x430(%rbp), %rdx
callq 0xf69c0
cmpl $0x0, %eax
je 0xf730a
jmp 0xf72fb
movl $0x1, -0x414(%rbp)
jmp 0xf7415
cmpl $0x0, -0x43c(%rbp)
je 0xf737a
leaq -0x210(%rbp), %rdi
leaq -0x410(%rbp), %rsi
movq -0x430(%rbp), %rdx
callq 0xf6530
cmpl $0x0, %eax
je 0xf737a
callq 0xf7b30
movl (%rax), %eax
movl %eax, -0x440(%rbp)
movq -0x428(%rbp), %rdi
movq -0x430(%rbp), %rsi
callq 0xf10b0
movl -0x440(%rbp), %eax
movl %eax, -0x44c(%rbp)
callq 0xf7b30
movl -0x44c(%rbp), %ecx
movl %ecx, (%rax)
movl $0x1, -0x414(%rbp)
jmp 0xf7415
movq -0x420(%rbp), %rdi
movq -0x430(%rbp), %rsi
callq 0xf10b0
cmpl $0x0, %eax
je 0xf7407
callq 0xf7b30
movl (%rax), %eax
movl %eax, -0x444(%rbp)
movq -0x428(%rbp), %rdi
movq -0x430(%rbp), %rsi
callq 0xf10b0
leaq -0x210(%rbp), %rdi
leaq -0x410(%rbp), %rsi
callq 0x295d0
cmpl $0x0, %eax
je 0xf73e4
leaq -0x410(%rbp), %rdi
leaq -0x210(%rbp), %rsi
movq -0x430(%rbp), %rdx
callq 0xf6530
movl -0x444(%rbp), %eax
movl %eax, -0x450(%rbp)
callq 0xf7b30
movl -0x450(%rbp), %ecx
movl %ecx, (%rax)
movl $0x1, -0x438(%rbp)
jmp 0xf7409
movl -0x438(%rbp), %eax
movl %eax, -0x414(%rbp)
movl -0x414(%rbp), %eax
movl %eax, -0x454(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xf7442
movl -0x454(%rbp), %eax
addq $0x460, %rsp # imm = 0x460
popq %rbp
retq
callq 0x29230
nopw (%rax,%rax)
| my_rename_with_symlink:
push rbp
mov rbp, rsp
sub rsp, 460h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_420], rdi
mov [rbp+var_428], rsi
mov [rbp+var_430], rdx
xor eax, eax
lea rcx, my_disable_symlinks
cmp byte ptr [rcx], 0
mov [rbp+var_445], al
jnz short loc_F71E6
lea rdi, [rbp+var_210]
mov rsi, [rbp+var_420]
xor eax, eax
mov edx, eax
call my_readlink
cmp eax, 0
setnz al
xor al, 0FFh
mov [rbp+var_445], al
loc_F71E6:
mov al, [rbp+var_445]
and al, 1
movzx eax, al
mov [rbp+var_434], eax
mov [rbp+var_438], 0
cmp [rbp+var_434], 0
jnz short loc_F7231
jmp short $+2
loc_F720C:
mov rdi, [rbp+var_420]
mov rsi, [rbp+var_428]
mov rdx, [rbp+var_430]
call my_rename
mov [rbp+var_414], eax
jmp loc_F7415
loc_F7231:
lea rdi, [rbp+var_410]
mov rsi, [rbp+var_428]
call _stpcpy
lea rdi, [rbp+var_410]
lea rsi, [rbp+var_210]
mov edx, 1
call fn_same
lea rdi, [rbp+var_210]
lea rsi, [rbp+var_410]
call _strcmp
mov [rbp+var_43C], eax
cmp [rbp+var_43C], 0
jz short loc_F72DA
lea rdi, [rbp+var_410]
xor esi, esi
call _access
cmp eax, 0
jnz short loc_F72DA
call _my_thread_var
mov dword ptr [rax], 11h
mov rax, [rbp+var_430]
and rax, 10h
cmp rax, 0
jz short loc_F72C9
lea rdx, [rbp+var_410]
mov edi, 1
xor eax, eax
mov esi, eax
mov ecx, 11h
mov al, 0
call my_error
loc_F72C9:
jmp short $+2
loc_F72CB:
mov [rbp+var_414], 1
jmp loc_F7415
loc_F72DA:
lea rdi, [rbp+var_410]
mov rsi, [rbp+var_428]
mov rdx, [rbp+var_430]
call my_symlink
cmp eax, 0
jz short loc_F730A
jmp short $+2
loc_F72FB:
mov [rbp+var_414], 1
jmp loc_F7415
loc_F730A:
cmp [rbp+var_43C], 0
jz short loc_F737A
lea rdi, [rbp+var_210]
lea rsi, [rbp+var_410]
mov rdx, [rbp+var_430]
call my_rename
cmp eax, 0
jz short loc_F737A
call _my_thread_var
mov eax, [rax]
mov [rbp+var_440], eax
mov rdi, [rbp+var_428]
mov rsi, [rbp+var_430]
call my_delete
mov eax, [rbp+var_440]
mov [rbp+var_44C], eax
call _my_thread_var
mov ecx, [rbp+var_44C]
mov [rax], ecx
mov [rbp+var_414], 1
jmp loc_F7415
loc_F737A:
mov rdi, [rbp+var_420]
mov rsi, [rbp+var_430]
call my_delete
cmp eax, 0
jz short loc_F7407
call _my_thread_var
mov eax, [rax]
mov [rbp+var_444], eax
mov rdi, [rbp+var_428]
mov rsi, [rbp+var_430]
call my_delete
lea rdi, [rbp+var_210]
lea rsi, [rbp+var_410]
call _strcmp
cmp eax, 0
jz short loc_F73E4
lea rdi, [rbp+var_410]
lea rsi, [rbp+var_210]
mov rdx, [rbp+var_430]
call my_rename
loc_F73E4:
mov eax, [rbp+var_444]
mov [rbp+var_450], eax
call _my_thread_var
mov ecx, [rbp+var_450]
mov [rax], ecx
mov [rbp+var_438], 1
loc_F7407:
jmp short $+2
loc_F7409:
mov eax, [rbp+var_438]
mov [rbp+var_414], eax
loc_F7415:
mov eax, [rbp+var_414]
mov [rbp+var_454], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_F7442
mov eax, [rbp+var_454]
add rsp, 460h
pop rbp
retn
loc_F7442:
call ___stack_chk_fail
| long long my_rename_with_symlink(_BYTE *a1, char *a2, long long a3)
{
char *v3; // rdi
const char *v4; // rsi
char v6; // [rsp+1Bh] [rbp-445h]
int v7; // [rsp+1Ch] [rbp-444h]
int v8; // [rsp+20h] [rbp-440h]
int v9; // [rsp+24h] [rbp-43Ch]
unsigned int v10; // [rsp+28h] [rbp-438h]
char v13[512]; // [rsp+50h] [rbp-410h] BYREF
char v14[520]; // [rsp+250h] [rbp-210h] BYREF
unsigned long long v15; // [rsp+458h] [rbp-8h]
v15 = __readfsqword(0x28u);
v6 = 0;
if ( !my_disable_symlinks )
v6 = ~((unsigned int)my_readlink(v14, (long long)a1, 0) != 0);
v10 = 0;
if ( (v6 & 1) != 0 )
{
stpcpy(v13, a2);
fn_same(v13, v14, 1LL);
v9 = strcmp(v14, v13);
if ( !v9 || (unsigned int)access(v13, 0LL) )
{
if ( (unsigned int)my_symlink((long long)v13, a2, a3) )
{
return 1;
}
else if ( v9 && (unsigned int)my_rename(v14, v13, a3) )
{
v8 = *(_DWORD *)my_thread_var(v14, v13);
my_delete((long long)a2, (const char *)a3);
*(_DWORD *)my_thread_var(a2, (const char *)a3) = v8;
return 1;
}
else
{
if ( (unsigned int)my_delete((long long)a1, (const char *)a3) )
{
v7 = *(_DWORD *)my_thread_var(a1, (const char *)a3);
my_delete((long long)a2, (const char *)a3);
v3 = v14;
v4 = v13;
if ( (unsigned int)strcmp(v14, v13) )
{
v3 = v13;
v4 = v14;
my_rename(v13, v14, a3);
}
*(_DWORD *)my_thread_var(v3, v4) = v7;
return 1;
}
return v10;
}
}
else
{
*(_DWORD *)my_thread_var(v13, 0LL) = 17;
if ( (a3 & 0x10) != 0 )
my_error(1u, 0LL, v13, 17LL);
return 1;
}
}
else
{
return (unsigned int)my_rename(a1, a2, a3);
}
}
| my_rename_with_symlink:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x460
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x420],RDI
MOV qword ptr [RBP + -0x428],RSI
MOV qword ptr [RBP + -0x430],RDX
XOR EAX,EAX
LEA RCX,[0xd8530c]
CMP byte ptr [RCX],0x0
MOV byte ptr [RBP + -0x445],AL
JNZ 0x001f71e6
LEA RDI,[RBP + -0x210]
MOV RSI,qword ptr [RBP + -0x420]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x001f68f0
CMP EAX,0x0
SETNZ AL
XOR AL,0xff
MOV byte ptr [RBP + -0x445],AL
LAB_001f71e6:
MOV AL,byte ptr [RBP + -0x445]
AND AL,0x1
MOVZX EAX,AL
MOV dword ptr [RBP + -0x434],EAX
MOV dword ptr [RBP + -0x438],0x0
CMP dword ptr [RBP + -0x434],0x0
JNZ 0x001f7231
JMP 0x001f720c
LAB_001f720c:
MOV RDI,qword ptr [RBP + -0x420]
MOV RSI,qword ptr [RBP + -0x428]
MOV RDX,qword ptr [RBP + -0x430]
CALL 0x001f6530
MOV dword ptr [RBP + -0x414],EAX
JMP 0x001f7415
LAB_001f7231:
LEA RDI,[RBP + -0x410]
MOV RSI,qword ptr [RBP + -0x428]
CALL 0x001296a0
LEA RDI,[RBP + -0x410]
LEA RSI,[RBP + -0x210]
MOV EDX,0x1
CALL 0x00204bd0
LEA RDI,[RBP + -0x210]
LEA RSI,[RBP + -0x410]
CALL 0x001295d0
MOV dword ptr [RBP + -0x43c],EAX
CMP dword ptr [RBP + -0x43c],0x0
JZ 0x001f72da
LEA RDI,[RBP + -0x410]
XOR ESI,ESI
CALL 0x001290e0
CMP EAX,0x0
JNZ 0x001f72da
CALL 0x001f7b30
MOV dword ptr [RAX],0x11
MOV RAX,qword ptr [RBP + -0x430]
AND RAX,0x10
CMP RAX,0x0
JZ 0x001f72c9
LEA RDX,[RBP + -0x410]
MOV EDI,0x1
XOR EAX,EAX
MOV ESI,EAX
MOV ECX,0x11
MOV AL,0x0
CALL 0x001f14a0
LAB_001f72c9:
JMP 0x001f72cb
LAB_001f72cb:
MOV dword ptr [RBP + -0x414],0x1
JMP 0x001f7415
LAB_001f72da:
LEA RDI,[RBP + -0x410]
MOV RSI,qword ptr [RBP + -0x428]
MOV RDX,qword ptr [RBP + -0x430]
CALL 0x001f69c0
CMP EAX,0x0
JZ 0x001f730a
JMP 0x001f72fb
LAB_001f72fb:
MOV dword ptr [RBP + -0x414],0x1
JMP 0x001f7415
LAB_001f730a:
CMP dword ptr [RBP + -0x43c],0x0
JZ 0x001f737a
LEA RDI,[RBP + -0x210]
LEA RSI,[RBP + -0x410]
MOV RDX,qword ptr [RBP + -0x430]
CALL 0x001f6530
CMP EAX,0x0
JZ 0x001f737a
CALL 0x001f7b30
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x440],EAX
MOV RDI,qword ptr [RBP + -0x428]
MOV RSI,qword ptr [RBP + -0x430]
CALL 0x001f10b0
MOV EAX,dword ptr [RBP + -0x440]
MOV dword ptr [RBP + -0x44c],EAX
CALL 0x001f7b30
MOV ECX,dword ptr [RBP + -0x44c]
MOV dword ptr [RAX],ECX
MOV dword ptr [RBP + -0x414],0x1
JMP 0x001f7415
LAB_001f737a:
MOV RDI,qword ptr [RBP + -0x420]
MOV RSI,qword ptr [RBP + -0x430]
CALL 0x001f10b0
CMP EAX,0x0
JZ 0x001f7407
CALL 0x001f7b30
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x444],EAX
MOV RDI,qword ptr [RBP + -0x428]
MOV RSI,qword ptr [RBP + -0x430]
CALL 0x001f10b0
LEA RDI,[RBP + -0x210]
LEA RSI,[RBP + -0x410]
CALL 0x001295d0
CMP EAX,0x0
JZ 0x001f73e4
LEA RDI,[RBP + -0x410]
LEA RSI,[RBP + -0x210]
MOV RDX,qword ptr [RBP + -0x430]
CALL 0x001f6530
LAB_001f73e4:
MOV EAX,dword ptr [RBP + -0x444]
MOV dword ptr [RBP + -0x450],EAX
CALL 0x001f7b30
MOV ECX,dword ptr [RBP + -0x450]
MOV dword ptr [RAX],ECX
MOV dword ptr [RBP + -0x438],0x1
LAB_001f7407:
JMP 0x001f7409
LAB_001f7409:
MOV EAX,dword ptr [RBP + -0x438]
MOV dword ptr [RBP + -0x414],EAX
LAB_001f7415:
MOV EAX,dword ptr [RBP + -0x414]
MOV dword ptr [RBP + -0x454],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001f7442
MOV EAX,dword ptr [RBP + -0x454]
ADD RSP,0x460
POP RBP
RET
LAB_001f7442:
CALL 0x00129230
|
int4 my_rename_with_symlink(int8 param_1,char *param_2,ulong param_3)
{
int4 uVar1;
int iVar2;
int iVar3;
int4 *puVar4;
long in_FS_OFFSET;
bool bVar5;
int4 local_440;
int4 local_41c;
char local_418 [512];
char local_218 [520];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
bVar5 = false;
if (my_disable_symlinks == '\0') {
iVar2 = my_readlink(local_218,param_1,0);
bVar5 = iVar2 == 0;
}
local_440 = 0;
if (bVar5) {
stpcpy(local_418,param_2);
fn_same(local_418,local_218,1);
iVar2 = strcmp(local_218,local_418);
if (iVar2 != 0) {
iVar3 = access(local_418,0);
if (iVar3 == 0) {
puVar4 = (int4 *)_my_thread_var();
*puVar4 = 0x11;
if ((param_3 & 0x10) != 0) {
my_error(1,0,local_418,0x11);
}
local_41c = 1;
goto LAB_001f7415;
}
}
iVar3 = my_symlink(local_418,param_2,param_3);
if (iVar3 == 0) {
if (iVar2 != 0) {
iVar2 = my_rename(local_218,local_418,param_3);
if (iVar2 != 0) {
puVar4 = (int4 *)_my_thread_var();
uVar1 = *puVar4;
my_delete(param_2,param_3);
puVar4 = (int4 *)_my_thread_var();
*puVar4 = uVar1;
local_41c = 1;
goto LAB_001f7415;
}
}
iVar2 = my_delete(param_1,param_3);
if (iVar2 != 0) {
puVar4 = (int4 *)_my_thread_var();
uVar1 = *puVar4;
my_delete(param_2,param_3);
iVar2 = strcmp(local_218,local_418);
if (iVar2 != 0) {
my_rename(local_418,local_218,param_3);
}
puVar4 = (int4 *)_my_thread_var();
*puVar4 = uVar1;
local_440 = 1;
}
local_41c = local_440;
}
else {
local_41c = 1;
}
}
else {
local_41c = my_rename(param_1,param_2,param_3);
}
LAB_001f7415:
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return local_41c;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
45,720 | minja::UnaryOpExpr::UnaryOpExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, minja::UnaryOpExpr::Op) | monkey531[P]llama/common/./minja.hpp | Expression(const Location & location) : location(location) {} | O3 | cpp | minja::UnaryOpExpr::UnaryOpExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, minja::UnaryOpExpr::Op):
leaq 0x950e7(%rip), %rax # 0xee288
movq %rax, (%rdi)
movq (%rsi), %rax
movq %rax, 0x8(%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x10(%rdi)
testq %rax, %rax
je 0x591ce
movq 0x96de1(%rip), %r9 # 0xeffa0
cmpb $0x0, (%r9)
je 0x591ca
incl 0x8(%rax)
jmp 0x591ce
lock
incl 0x8(%rax)
movq 0x10(%rsi), %rax
movq %rax, 0x18(%rdi)
leaq 0x958fb(%rip), %rax # 0xeead8
movq %rax, (%rdi)
xorl %eax, %eax
movq %rax, 0x28(%rdi)
movups (%rdx), %xmm0
movq %rax, 0x8(%rdx)
movups %xmm0, 0x20(%rdi)
movq %rax, (%rdx)
movq %rax, 0x38(%rdi)
movups (%rcx), %xmm0
movq %rax, 0x8(%rcx)
movups %xmm0, 0x30(%rdi)
movq %rax, (%rcx)
movq %rax, 0x48(%rdi)
movups (%r8), %xmm0
movq %rax, 0x8(%r8)
movups %xmm0, 0x40(%rdi)
movq %rax, (%r8)
retq
| _ZN5minja6IfExprC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEES7_S7_:
lea rax, off_EE288
mov [rdi], rax
mov rax, [rsi]
mov [rdi+8], rax
mov rax, [rsi+8]
mov [rdi+10h], rax
test rax, rax
jz short loc_591CE
mov r9, cs:__libc_single_threaded_ptr
cmp byte ptr [r9], 0
jz short loc_591CA
inc dword ptr [rax+8]
jmp short loc_591CE
loc_591CA:
lock inc dword ptr [rax+8]
loc_591CE:
mov rax, [rsi+10h]
mov [rdi+18h], rax
lea rax, off_EEAD8
mov [rdi], rax
xor eax, eax
mov [rdi+28h], rax
movups xmm0, xmmword ptr [rdx]
mov [rdx+8], rax
movups xmmword ptr [rdi+20h], xmm0
mov [rdx], rax
mov [rdi+38h], rax
movups xmm0, xmmword ptr [rcx]
mov [rcx+8], rax
movups xmmword ptr [rdi+30h], xmm0
mov [rcx], rax
mov [rdi+48h], rax
movups xmm0, xmmword ptr [r8]
mov [r8+8], rax
movups xmmword ptr [rdi+40h], xmm0
mov [r8], rax
retn
| long long minja::IfExpr::IfExpr(long long a1, _QWORD *a2, __int128 *a3, __int128 *a4, __int128 *a5)
{
long long v5; // rax
long long result; // rax
__int128 v7; // xmm0
__int128 v8; // xmm0
__int128 v9; // xmm0
*(_QWORD *)a1 = &off_EE288;
*(_QWORD *)(a1 + 8) = *a2;
v5 = a2[1];
*(_QWORD *)(a1 + 16) = v5;
if ( v5 )
{
if ( _libc_single_threaded )
++*(_DWORD *)(v5 + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(v5 + 8));
}
*(_QWORD *)(a1 + 24) = a2[2];
*(_QWORD *)a1 = &off_EEAD8;
result = 0LL;
*(_QWORD *)(a1 + 40) = 0LL;
v7 = *a3;
*((_QWORD *)a3 + 1) = 0LL;
*(_OWORD *)(a1 + 32) = v7;
*(_QWORD *)a3 = 0LL;
*(_QWORD *)(a1 + 56) = 0LL;
v8 = *a4;
*((_QWORD *)a4 + 1) = 0LL;
*(_OWORD *)(a1 + 48) = v8;
*(_QWORD *)a4 = 0LL;
*(_QWORD *)(a1 + 72) = 0LL;
v9 = *a5;
*((_QWORD *)a5 + 1) = 0LL;
*(_OWORD *)(a1 + 64) = v9;
*(_QWORD *)a5 = 0LL;
return result;
}
| IfExpr:
LEA RAX,[0x1ee288]
MOV qword ptr [RDI],RAX
MOV RAX,qword ptr [RSI]
MOV qword ptr [RDI + 0x8],RAX
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RDI + 0x10],RAX
TEST RAX,RAX
JZ 0x001591ce
MOV R9,qword ptr [0x001effa0]
CMP byte ptr [R9],0x0
JZ 0x001591ca
INC dword ptr [RAX + 0x8]
JMP 0x001591ce
LAB_001591ca:
INC.LOCK dword ptr [RAX + 0x8]
LAB_001591ce:
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RDI + 0x18],RAX
LEA RAX,[0x1eead8]
MOV qword ptr [RDI],RAX
XOR EAX,EAX
MOV qword ptr [RDI + 0x28],RAX
MOVUPS XMM0,xmmword ptr [RDX]
MOV qword ptr [RDX + 0x8],RAX
MOVUPS xmmword ptr [RDI + 0x20],XMM0
MOV qword ptr [RDX],RAX
MOV qword ptr [RDI + 0x38],RAX
MOVUPS XMM0,xmmword ptr [RCX]
MOV qword ptr [RCX + 0x8],RAX
MOVUPS xmmword ptr [RDI + 0x30],XMM0
MOV qword ptr [RCX],RAX
MOV qword ptr [RDI + 0x48],RAX
MOVUPS XMM0,xmmword ptr [R8]
MOV qword ptr [R8 + 0x8],RAX
MOVUPS xmmword ptr [RDI + 0x40],XMM0
MOV qword ptr [R8],RAX
RET
|
/* minja::IfExpr::IfExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&,
std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&) */
void __thiscall
minja::IfExpr::IfExpr
(IfExpr *this,Location *param_1,shared_ptr *param_2,shared_ptr *param_3,
shared_ptr *param_4)
{
long lVar1;
int8 uVar2;
*(int ***)this = &PTR___cxa_pure_virtual_001ee288;
*(int8 *)(this + 8) = *(int8 *)param_1;
lVar1 = *(long *)(param_1 + 8);
*(long *)(this + 0x10) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_001effa0 == '\0') {
LOCK();
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
}
}
*(int8 *)(this + 0x18) = *(int8 *)(param_1 + 0x10);
*(int ***)this = &PTR_do_evaluate_001eead8;
*(int8 *)(this + 0x28) = 0;
uVar2 = *(int8 *)(param_2 + 8);
*(int8 *)(param_2 + 8) = 0;
*(int8 *)(this + 0x20) = *(int8 *)param_2;
*(int8 *)(this + 0x28) = uVar2;
*(int8 *)param_2 = 0;
*(int8 *)(this + 0x38) = 0;
uVar2 = *(int8 *)(param_3 + 8);
*(int8 *)(param_3 + 8) = 0;
*(int8 *)(this + 0x30) = *(int8 *)param_3;
*(int8 *)(this + 0x38) = uVar2;
*(int8 *)param_3 = 0;
*(int8 *)(this + 0x48) = 0;
uVar2 = *(int8 *)(param_4 + 8);
*(int8 *)(param_4 + 8) = 0;
*(int8 *)(this + 0x40) = *(int8 *)param_4;
*(int8 *)(this + 0x48) = uVar2;
*(int8 *)param_4 = 0;
return;
}
| |
45,721 | ssz_is_dynamic | corpus-core[P]colibri-stateless/src/util/ssz.c | bool ssz_is_dynamic(const ssz_def_t* def) {
if (def->type == SSZ_TYPE_CONTAINER) {
for (int i = 0; i < def->def.container.len; i++) {
if (ssz_is_dynamic(def->def.container.elements + i))
return true;
}
}
return def->type == SSZ_TYPE_LIST || def->type == SSZ_TYPE_BIT_LIST || def->type == SSZ_TYPE_UNION;
} | O0 | c | ssz_is_dynamic:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x2, 0x8(%rax)
jne 0x9e02c
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x18(%rcx), %eax
jae 0x9e02a
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
movslq -0x14(%rbp), %rax
shlq $0x5, %rax
addq %rax, %rdi
callq 0x9dfd0
testb $0x1, %al
jne 0x9e017
jmp 0x9e01d
movb $0x1, -0x1(%rbp)
jmp 0x9e060
jmp 0x9e01f
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x9dfed
jmp 0x9e02c
movq -0x10(%rbp), %rcx
movb $0x1, %al
cmpl $0x4, 0x8(%rcx)
movb %al, -0x15(%rbp)
je 0x9e058
movq -0x10(%rbp), %rcx
movb $0x1, %al
cmpl $0x6, 0x8(%rcx)
movb %al, -0x15(%rbp)
je 0x9e058
movq -0x10(%rbp), %rax
cmpl $0x7, 0x8(%rax)
sete %al
movb %al, -0x15(%rbp)
movb -0x15(%rbp), %al
andb $0x1, %al
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| ssz_is_dynamic:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
cmp dword ptr [rax+8], 2
jnz short loc_9E02C
mov [rbp+var_14], 0
loc_9DFED:
mov eax, [rbp+var_14]
mov rcx, [rbp+var_10]
cmp eax, [rcx+18h]
jnb short loc_9E02A
mov rax, [rbp+var_10]
mov rdi, [rax+10h]
movsxd rax, [rbp+var_14]
shl rax, 5
add rdi, rax
call ssz_is_dynamic
test al, 1
jnz short loc_9E017
jmp short loc_9E01D
loc_9E017:
mov [rbp+var_1], 1
jmp short loc_9E060
loc_9E01D:
jmp short $+2
loc_9E01F:
mov eax, [rbp+var_14]
add eax, 1
mov [rbp+var_14], eax
jmp short loc_9DFED
loc_9E02A:
jmp short $+2
loc_9E02C:
mov rcx, [rbp+var_10]
mov al, 1
cmp dword ptr [rcx+8], 4
mov [rbp+var_15], al
jz short loc_9E058
mov rcx, [rbp+var_10]
mov al, 1
cmp dword ptr [rcx+8], 6
mov [rbp+var_15], al
jz short loc_9E058
mov rax, [rbp+var_10]
cmp dword ptr [rax+8], 7
setz al
mov [rbp+var_15], al
loc_9E058:
mov al, [rbp+var_15]
and al, 1
mov [rbp+var_1], al
loc_9E060:
mov al, [rbp+var_1]
and al, 1
add rsp, 20h
pop rbp
retn
| char ssz_is_dynamic(long long a1)
{
bool v2; // [rsp+Bh] [rbp-15h]
unsigned int i; // [rsp+Ch] [rbp-14h]
if ( *(_DWORD *)(a1 + 8) == 2 )
{
for ( i = 0; i < *(_DWORD *)(a1 + 24); ++i )
{
if ( (ssz_is_dynamic(32LL * (int)i + *(_QWORD *)(a1 + 16)) & 1) != 0 )
return 1;
}
}
v2 = 1;
if ( *(_DWORD *)(a1 + 8) != 4 )
{
v2 = 1;
if ( *(_DWORD *)(a1 + 8) != 6 )
return *(_DWORD *)(a1 + 8) == 7;
}
return v2;
}
| ssz_is_dynamic:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x8],0x2
JNZ 0x0019e02c
MOV dword ptr [RBP + -0x14],0x0
LAB_0019dfed:
MOV EAX,dword ptr [RBP + -0x14]
MOV RCX,qword ptr [RBP + -0x10]
CMP EAX,dword ptr [RCX + 0x18]
JNC 0x0019e02a
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x10]
MOVSXD RAX,dword ptr [RBP + -0x14]
SHL RAX,0x5
ADD RDI,RAX
CALL 0x0019dfd0
TEST AL,0x1
JNZ 0x0019e017
JMP 0x0019e01d
LAB_0019e017:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0019e060
LAB_0019e01d:
JMP 0x0019e01f
LAB_0019e01f:
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x1
MOV dword ptr [RBP + -0x14],EAX
JMP 0x0019dfed
LAB_0019e02a:
JMP 0x0019e02c
LAB_0019e02c:
MOV RCX,qword ptr [RBP + -0x10]
MOV AL,0x1
CMP dword ptr [RCX + 0x8],0x4
MOV byte ptr [RBP + -0x15],AL
JZ 0x0019e058
MOV RCX,qword ptr [RBP + -0x10]
MOV AL,0x1
CMP dword ptr [RCX + 0x8],0x6
MOV byte ptr [RBP + -0x15],AL
JZ 0x0019e058
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x8],0x7
SETZ AL
MOV byte ptr [RBP + -0x15],AL
LAB_0019e058:
MOV AL,byte ptr [RBP + -0x15]
AND AL,0x1
MOV byte ptr [RBP + -0x1],AL
LAB_0019e060:
MOV AL,byte ptr [RBP + -0x1]
AND AL,0x1
ADD RSP,0x20
POP RBP
RET
|
bool ssz_is_dynamic(long param_1)
{
ulong uVar1;
bool local_1d;
uint local_1c;
if (*(int *)(param_1 + 8) == 2) {
for (local_1c = 0; local_1c < *(uint *)(param_1 + 0x18); local_1c = local_1c + 1) {
uVar1 = ssz_is_dynamic(*(long *)(param_1 + 0x10) + (long)(int)local_1c * 0x20);
if ((uVar1 & 1) != 0) {
return true;
}
}
}
local_1d = true;
if ((*(int *)(param_1 + 8) != 4) && (local_1d = true, *(int *)(param_1 + 8) != 6)) {
local_1d = *(int *)(param_1 + 8) == 7;
}
return local_1d;
}
| |
45,722 | ssz_is_dynamic | corpus-core[P]colibri-stateless/src/util/ssz.c | bool ssz_is_dynamic(const ssz_def_t* def) {
if (def->type == SSZ_TYPE_CONTAINER) {
for (int i = 0; i < def->def.container.len; i++) {
if (ssz_is_dynamic(def->def.container.elements + i))
return true;
}
}
return def->type == SSZ_TYPE_LIST || def->type == SSZ_TYPE_BIT_LIST || def->type == SSZ_TYPE_UNION;
} | O1 | c | ssz_is_dynamic:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0x8(%rdi), %r14d
movb $0x1, %bl
leal -0x6(%r14), %eax
cmpl $0x2, %eax
jb 0x55d5c
cmpl $0x4, %r14d
je 0x55d5c
cmpl $0x2, %r14d
jne 0x55d5a
movl 0x18(%rdi), %r12d
testq %r12, %r12
setne %bpl
je 0x55d4b
movq 0x10(%rdi), %r15
movq %r15, %rdi
callq 0x55cd8
testb %al, %al
jne 0x55d46
addq $0x20, %r15
leaq -0x1(%r12), %rbp
xorl %r13d, %r13d
cmpq %r13, %rbp
je 0x55d4b
movq %r15, %rdi
callq 0x55cd8
addq $0x20, %r15
incq %r13
testb %al, %al
je 0x55d27
cmpq %r12, %r13
setb %bpl
testb %bpl, %bpl
jne 0x55d5c
cmpl $0x8, %r14d
jae 0x55d5a
movb $-0x30, %bl
movl %r14d, %ecx
shrb %cl, %bl
jmp 0x55d5c
xorl %ebx, %ebx
andb $0x1, %bl
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| ssz_is_dynamic:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14d, [rdi+8]
mov bl, 1
lea eax, [r14-6]
cmp eax, 2
jb short loc_55D5C
cmp r14d, 4
jz short loc_55D5C
cmp r14d, 2
jnz short loc_55D5A
mov r12d, [rdi+18h]
test r12, r12
setnz bpl
jz short loc_55D4B
mov r15, [rdi+10h]
mov rdi, r15
call ssz_is_dynamic
test al, al
jnz short loc_55D46
add r15, 20h ; ' '
lea rbp, [r12-1]
xor r13d, r13d
loc_55D27:
cmp rbp, r13
jz short loc_55D4B
mov rdi, r15
call ssz_is_dynamic
add r15, 20h ; ' '
inc r13
test al, al
jz short loc_55D27
cmp r13, r12
setb bpl
loc_55D46:
test bpl, bpl
jnz short loc_55D5C
loc_55D4B:
cmp r14d, 8
jnb short loc_55D5A
mov bl, 0D0h
mov ecx, r14d
shr bl, cl
jmp short loc_55D5C
loc_55D5A:
xor ebx, ebx
loc_55D5C:
and bl, 1
mov eax, ebx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long ssz_is_dynamic(long long a1)
{
unsigned int v1; // ebx
int v2; // r14d
unsigned long long v3; // r12
bool v4; // bp
long long v5; // r15
long long v6; // r15
unsigned long long v7; // r13
char is_dynamic; // al
v2 = *(_DWORD *)(a1 + 8);
LOBYTE(v1) = 1;
if ( (unsigned int)(v2 - 6) >= 2 && v2 != 4 )
{
if ( v2 != 2 )
{
v1 = 0;
goto LABEL_13;
}
v3 = *(unsigned int *)(a1 + 24);
v4 = v3 != 0;
if ( !*(_DWORD *)(a1 + 24) )
goto LABEL_11;
v5 = *(_QWORD *)(a1 + 16);
if ( !(unsigned __int8)ssz_is_dynamic(v5) )
{
v6 = v5 + 32;
v7 = 0LL;
while ( v3 - 1 != v7 )
{
is_dynamic = ssz_is_dynamic(v6);
v6 += 32LL;
++v7;
if ( is_dynamic )
{
v4 = v7 < v3;
goto LABEL_10;
}
}
goto LABEL_11;
}
LABEL_10:
if ( !v4 )
LABEL_11:
LOBYTE(v1) = 52;
}
LABEL_13:
LOBYTE(v1) = v1 & 1;
return v1;
}
| ssz_is_dynamic:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14D,dword ptr [RDI + 0x8]
MOV BL,0x1
LEA EAX,[R14 + -0x6]
CMP EAX,0x2
JC 0x00155d5c
CMP R14D,0x4
JZ 0x00155d5c
CMP R14D,0x2
JNZ 0x00155d5a
MOV R12D,dword ptr [RDI + 0x18]
TEST R12,R12
SETNZ BPL
JZ 0x00155d4b
MOV R15,qword ptr [RDI + 0x10]
MOV RDI,R15
CALL 0x00155cd8
TEST AL,AL
JNZ 0x00155d46
ADD R15,0x20
LEA RBP,[R12 + -0x1]
XOR R13D,R13D
LAB_00155d27:
CMP RBP,R13
JZ 0x00155d4b
MOV RDI,R15
CALL 0x00155cd8
ADD R15,0x20
INC R13
TEST AL,AL
JZ 0x00155d27
CMP R13,R12
SETC BPL
LAB_00155d46:
TEST BPL,BPL
JNZ 0x00155d5c
LAB_00155d4b:
CMP R14D,0x8
JNC 0x00155d5a
MOV BL,0xd0
MOV ECX,R14D
SHR BL,CL
JMP 0x00155d5c
LAB_00155d5a:
XOR EBX,EBX
LAB_00155d5c:
AND BL,0x1
MOV EAX,EBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong ssz_is_dynamic(long param_1)
{
int iVar1;
char cVar2;
int8 unaff_RBX;
ulong uVar3;
ulong uVar5;
ulong uVar6;
long lVar7;
bool bVar8;
int7 uVar4;
iVar1 = *(int *)(param_1 + 8);
uVar4 = (int7)((ulong)unaff_RBX >> 8);
uVar3 = CONCAT71(uVar4,1);
if ((1 < iVar1 - 6U) && (iVar1 != 4)) {
if (iVar1 == 2) {
uVar5 = (ulong)*(uint *)(param_1 + 0x18);
bVar8 = uVar5 != 0;
if (bVar8) {
lVar7 = *(long *)(param_1 + 0x10);
cVar2 = ssz_is_dynamic(lVar7);
if (cVar2 == '\0') {
uVar6 = 0;
do {
lVar7 = lVar7 + 0x20;
if (uVar5 - 1 == uVar6) goto code_r0x00155d51;
cVar2 = ssz_is_dynamic(lVar7);
uVar6 = uVar6 + 1;
} while (cVar2 == '\0');
bVar8 = uVar6 < uVar5;
}
if (bVar8) goto LAB_00155d5c;
}
code_r0x00155d51:
uVar3 = CONCAT71(uVar4,0x34);
}
else {
uVar3 = 0;
}
}
LAB_00155d5c:
return uVar3 & 0xffffff01;
}
| |
45,723 | my_strnxfrm_8bit_nopad_bin | eloqsql/strings/ctype-bin.c | static size_t
my_strnxfrm_8bit_nopad_bin(CHARSET_INFO *cs,
uchar * dst, size_t dstlen, uint nweights,
const uchar *src, size_t srclen, uint flags)
{
set_if_smaller(srclen, dstlen);
set_if_smaller(srclen, nweights);
if (dst != src)
memcpy(dst, src, srclen);
return my_strxfrm_pad_desc_and_reverse_nopad(cs, dst, dst + srclen,
dst + dstlen,(uint)(nweights - srclen),
flags, 0);
} | O3 | c | my_strnxfrm_8bit_nopad_bin:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r13
movl %ecx, %ebx
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %r15
movl 0x10(%rbp), %r9d
cmpq %rdx, %r13
cmovaeq %rdx, %r13
movl %ecx, %eax
cmpq %rax, %r13
cmovaeq %rax, %r13
cmpq %r8, %rsi
je 0x2ebf2
movq %r12, %rdi
movq %r8, %rsi
movq %r13, %rdx
callq 0x24200
movl 0x10(%rbp), %r9d
leaq (%r12,%r13), %rdx
addq %r12, %r14
subl %r13d, %ebx
movl $0x0, (%rsp)
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rcx
movl %ebx, %r8d
callq 0x36f12
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_strnxfrm_8bit_nopad_bin:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r13, r9
mov ebx, ecx
mov r14, rdx
mov r12, rsi
mov r15, rdi
mov r9d, [rbp+arg_0]
cmp r13, rdx
cmovnb r13, rdx
mov eax, ecx
cmp r13, rax
cmovnb r13, rax
cmp rsi, r8
jz short loc_2EBF2
mov rdi, r12
mov rsi, r8
mov rdx, r13
call _memcpy
mov r9d, [rbp+arg_0]
loc_2EBF2:
lea rdx, [r12+r13]
add r14, r12
sub ebx, r13d
mov [rsp+30h+var_30], 0
mov rdi, r15
mov rsi, r12
mov rcx, r14
mov r8d, ebx
call my_strxfrm_pad_desc_and_reverse_nopad
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_strnxfrm_8bit_nopad_bin(
int a1,
long long a2,
unsigned long long a3,
unsigned int a4,
long long a5,
unsigned long long a6,
int a7)
{
int v9; // r14d
int v10; // r9d
v9 = a3;
v10 = a7;
if ( a6 >= a3 )
a6 = a3;
if ( a6 >= a4 )
a6 = a4;
if ( a2 != a5 )
{
memcpy(a2, a5, a6);
v10 = a7;
}
return my_strxfrm_pad_desc_and_reverse_nopad(a1, a2, (int)a2 + (int)a6, (int)a2 + v9, a4 - (unsigned int)a6, v10, 0);
}
| my_strnxfrm_8bit_nopad_bin:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R13,R9
MOV EBX,ECX
MOV R14,RDX
MOV R12,RSI
MOV R15,RDI
MOV R9D,dword ptr [RBP + 0x10]
CMP R13,RDX
CMOVNC R13,RDX
MOV EAX,ECX
CMP R13,RAX
CMOVNC R13,RAX
CMP RSI,R8
JZ 0x0012ebf2
MOV RDI,R12
MOV RSI,R8
MOV RDX,R13
CALL 0x00124200
MOV R9D,dword ptr [RBP + 0x10]
LAB_0012ebf2:
LEA RDX,[R12 + R13*0x1]
ADD R14,R12
SUB EBX,R13D
MOV dword ptr [RSP],0x0
MOV RDI,R15
MOV RSI,R12
MOV RCX,R14
MOV R8D,EBX
CALL 0x00136f12
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void my_strnxfrm_8bit_nopad_bin
(int8 param_1,void *param_2,ulong param_3,uint param_4,void *param_5,
ulong param_6,int4 param_7)
{
int8 in_RAX;
uint uVar1;
uVar1 = (uint)((ulong)in_RAX >> 0x20);
if (param_3 <= param_6) {
param_6 = param_3;
}
if (param_4 <= param_6) {
param_6 = (ulong)param_4;
}
if (param_2 != param_5) {
memcpy(param_2,param_5,param_6);
}
my_strxfrm_pad_desc_and_reverse_nopad
(param_1,param_2,(long)param_2 + param_6,param_3 + (long)param_2,param_4 - (int)param_6,
param_7,(ulong)uVar1 << 0x20);
return;
}
| |
45,724 | Scene::clean() | GhostEscape/src/core/scene.cpp | void Scene::clean()
{
Object::clean();
for (auto &child : children_world_)
{
child->clean();
delete child;
child = nullptr;
}
children_world_.clear();
for (auto &child : children_screen_)
{
child->clean();
delete child;
child = nullptr;
}
children_screen_.clear();
} | O3 | cpp | Scene::clean():
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x89fc
movq 0x60(%rbx), %r14
movq 0x68(%rbx), %r15
cmpq %r15, %r14
je 0x926e
movq (%r14), %rdi
movq (%rdi), %rax
callq *0x30(%rax)
movq (%r14), %rdi
testq %rdi, %rdi
je 0x9250
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, (%r14)
addq $0x8, %r14
cmpq %r15, %r14
jne 0x9239
movq 0x60(%rbx), %rax
cmpq %rax, 0x68(%rbx)
je 0x926e
movq %rax, 0x68(%rbx)
movq 0x78(%rbx), %r14
movq 0x80(%rbx), %r15
cmpq %r15, %r14
je 0x92b9
movq (%r14), %rdi
movq (%rdi), %rax
callq *0x30(%rax)
movq (%r14), %rdi
testq %rdi, %rdi
je 0x9295
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, (%r14)
addq $0x8, %r14
cmpq %r15, %r14
jne 0x927e
movq 0x78(%rbx), %rax
cmpq %rax, 0x80(%rbx)
je 0x92b9
movq %rax, 0x80(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| _ZN5Scene5cleanEv:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rdi
call _ZN6Object5cleanEv; Object::clean(void)
mov r14, [rbx+60h]
mov r15, [rbx+68h]
cmp r14, r15
jz short loc_926E
loc_9239:
mov rdi, [r14]
mov rax, [rdi]
call qword ptr [rax+30h]
mov rdi, [r14]
test rdi, rdi
jz short loc_9250
mov rax, [rdi]
call qword ptr [rax+8]
loc_9250:
mov qword ptr [r14], 0
add r14, 8
cmp r14, r15
jnz short loc_9239
mov rax, [rbx+60h]
cmp [rbx+68h], rax
jz short loc_926E
mov [rbx+68h], rax
loc_926E:
mov r14, [rbx+78h]
mov r15, [rbx+80h]
cmp r14, r15
jz short loc_92B9
loc_927E:
mov rdi, [r14]
mov rax, [rdi]
call qword ptr [rax+30h]
mov rdi, [r14]
test rdi, rdi
jz short loc_9295
mov rax, [rdi]
call qword ptr [rax+8]
loc_9295:
mov qword ptr [r14], 0
add r14, 8
cmp r14, r15
jnz short loc_927E
mov rax, [rbx+78h]
cmp [rbx+80h], rax
jz short loc_92B9
mov [rbx+80h], rax
loc_92B9:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long Scene::clean(Scene *this)
{
long long result; // rax
_QWORD *v2; // r14
_QWORD *v3; // r15
_QWORD *v4; // r14
_QWORD *v5; // r15
result = Object::clean(this);
v2 = (_QWORD *)*((_QWORD *)this + 12);
v3 = (_QWORD *)*((_QWORD *)this + 13);
if ( v2 != v3 )
{
do
{
(*(void ( **)(_QWORD))(*(_QWORD *)*v2 + 48LL))(*v2);
if ( *v2 )
(*(void ( **)(_QWORD))(*(_QWORD *)*v2 + 8LL))(*v2);
*v2++ = 0LL;
}
while ( v2 != v3 );
result = *((_QWORD *)this + 12);
if ( *((_QWORD *)this + 13) != result )
*((_QWORD *)this + 13) = result;
}
v4 = (_QWORD *)*((_QWORD *)this + 15);
v5 = (_QWORD *)*((_QWORD *)this + 16);
if ( v4 != v5 )
{
do
{
(*(void ( **)(_QWORD))(*(_QWORD *)*v4 + 48LL))(*v4);
if ( *v4 )
(*(void ( **)(_QWORD))(*(_QWORD *)*v4 + 8LL))(*v4);
*v4++ = 0LL;
}
while ( v4 != v5 );
result = *((_QWORD *)this + 15);
if ( *((_QWORD *)this + 16) != result )
*((_QWORD *)this + 16) = result;
}
return result;
}
| clean:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
CALL 0x001089fc
MOV R14,qword ptr [RBX + 0x60]
MOV R15,qword ptr [RBX + 0x68]
CMP R14,R15
JZ 0x0010926e
LAB_00109239:
MOV RDI,qword ptr [R14]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x30]
MOV RDI,qword ptr [R14]
TEST RDI,RDI
JZ 0x00109250
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
LAB_00109250:
MOV qword ptr [R14],0x0
ADD R14,0x8
CMP R14,R15
JNZ 0x00109239
MOV RAX,qword ptr [RBX + 0x60]
CMP qword ptr [RBX + 0x68],RAX
JZ 0x0010926e
MOV qword ptr [RBX + 0x68],RAX
LAB_0010926e:
MOV R14,qword ptr [RBX + 0x78]
MOV R15,qword ptr [RBX + 0x80]
CMP R14,R15
JZ 0x001092b9
LAB_0010927e:
MOV RDI,qword ptr [R14]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x30]
MOV RDI,qword ptr [R14]
TEST RDI,RDI
JZ 0x00109295
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
LAB_00109295:
MOV qword ptr [R14],0x0
ADD R14,0x8
CMP R14,R15
JNZ 0x0010927e
MOV RAX,qword ptr [RBX + 0x78]
CMP qword ptr [RBX + 0x80],RAX
JZ 0x001092b9
MOV qword ptr [RBX + 0x80],RAX
LAB_001092b9:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* Scene::clean() */
void __thiscall Scene::clean(Scene *this)
{
long *plVar1;
long *plVar2;
Object::clean((Object *)this);
plVar2 = *(long **)(this + 0x60);
plVar1 = *(long **)(this + 0x68);
if (plVar2 != plVar1) {
do {
(**(code **)(*(long *)*plVar2 + 0x30))();
if ((long *)*plVar2 != (long *)0x0) {
(**(code **)(*(long *)*plVar2 + 8))();
}
*plVar2 = 0;
plVar2 = plVar2 + 1;
} while (plVar2 != plVar1);
if (*(long *)(this + 0x68) != *(long *)(this + 0x60)) {
*(long *)(this + 0x68) = *(long *)(this + 0x60);
}
}
plVar2 = *(long **)(this + 0x78);
plVar1 = *(long **)(this + 0x80);
if (plVar2 != plVar1) {
do {
(**(code **)(*(long *)*plVar2 + 0x30))();
if ((long *)*plVar2 != (long *)0x0) {
(**(code **)(*(long *)*plVar2 + 8))();
}
*plVar2 = 0;
plVar2 = plVar2 + 1;
} while (plVar2 != plVar1);
if (*(long *)(this + 0x80) != *(long *)(this + 0x78)) {
*(long *)(this + 0x80) = *(long *)(this + 0x78);
}
}
return;
}
| |
45,725 | mysql_stmt_close_start | eloqsql/libmariadb/libmariadb/mariadb_async.c | int STDCALL
mysql_stmt_close_start(my_bool *ret, MYSQL_STMT *stmt)
{
MK_ASYNC_START_BODY(
mysql_stmt_close,
stmt->mysql,
{
WIN_SET_NONBLOCKING(stmt->mysql)
parms.stmt= stmt;
},
TRUE,
r_my_bool,
/* If stmt->mysql==NULL then we will not block so can call directly. */
if (!stmt->mysql)
{
*ret= mysql_stmt_close(stmt);
return 0;
})
} | O3 | c | mysql_stmt_close_start:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x38(%rsi), %rax
testq %rax, %rax
je 0x2c593
movq 0x480(%rax), %rax
movq 0x28(%rax), %r15
leaq -0x20(%rbp), %rdx
movq %r14, (%rdx)
movb $0x1, 0x14(%r15)
leaq 0x38(%r15), %rdi
leaq 0x9f(%rip), %rsi # 0x2c618
callq 0x2d85c
movw $0x0, 0x14(%r15)
testl %eax, %eax
jle 0x2c59d
movb $0x1, 0x15(%r15)
movl (%r15), %eax
jmp 0x2c60d
movq %r14, %rdi
callq 0x205cd
jmp 0x2c609
js 0x2c5a5
movb 0x8(%r15), %al
jmp 0x2c609
movq 0x38(%r14), %rax
movl $0x7d8, 0x90(%rax) # imm = 0x7D8
movl $0x297, %edi # imm = 0x297
addq 0x38(%r14), %rdi
leaq 0x1c49d(%rip), %rax # 0x48a60
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13220
movq 0x38(%r14), %rax
xorl %r15d, %r15d
movb %r15b, 0x29c(%rax)
movl $0x97, %edi
addq 0x38(%r14), %rdi
leaq 0x1c482(%rip), %rax # 0x48a70
movq 0x40(%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x13220
movq 0x38(%r14), %rax
movb %r15b, 0x296(%rax)
movb $0x1, %al
movb %al, (%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| mysql_stmt_close_start:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
mov rax, [rsi+38h]
test rax, rax
jz short loc_2C593
mov rax, [rax+480h]
mov r15, [rax+28h]
lea rdx, [rbp+var_20]
mov [rdx], r14
mov byte ptr [r15+14h], 1
lea rdi, [r15+38h]
lea rsi, mysql_stmt_close_start_internal
call my_context_spawn
mov word ptr [r15+14h], 0
test eax, eax
jle short loc_2C59D
mov byte ptr [r15+15h], 1
mov eax, [r15]
jmp short loc_2C60D
loc_2C593:
mov rdi, r14
call mysql_stmt_close
jmp short loc_2C609
loc_2C59D:
js short loc_2C5A5
mov al, [r15+8]
jmp short loc_2C609
loc_2C5A5:
mov rax, [r14+38h]
mov dword ptr [rax+90h], 7D8h
mov edi, 297h
add rdi, [r14+38h]
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
mov rax, [r14+38h]
xor r15d, r15d
mov [rax+29Ch], r15b
mov edi, 97h
add rdi, [r14+38h]
lea rax, client_errors
mov rsi, [rax+40h]
mov edx, 1FFh
call _strncpy
mov rax, [r14+38h]
mov [rax+296h], r15b
mov al, 1
loc_2C609:
mov [rbx], al
xor eax, eax
loc_2C60D:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long mysql_stmt_close_start(char *a1, long long a2)
{
long long v2; // rax
long long v3; // rax
_BYTE *v4; // r15
int v5; // eax
char v7; // al
long long v8[4]; // [rsp+0h] [rbp-20h] BYREF
v8[0] = v2;
v3 = *(_QWORD *)(a2 + 56);
if ( v3 )
{
v4 = *(_BYTE **)(*(_QWORD *)(v3 + 1152) + 40LL);
v8[0] = a2;
v4[20] = 1;
v5 = my_context_spawn(v4 + 56, mysql_stmt_close_start_internal, v8);
*((_WORD *)v4 + 10) = 0;
if ( v5 > 0 )
{
v4[21] = 1;
return *(unsigned int *)v4;
}
if ( v5 < 0 )
{
*(_DWORD *)(*(_QWORD *)(a2 + 56) + 144LL) = 2008;
strncpy(*(_QWORD *)(a2 + 56) + 663LL, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(*(_QWORD *)(a2 + 56) + 668LL) = 0;
strncpy(*(_QWORD *)(a2 + 56) + 151LL, client_errors[8], 511LL);
*(_BYTE *)(*(_QWORD *)(a2 + 56) + 662LL) = 0;
v7 = 1;
}
else
{
v7 = v4[8];
}
}
else
{
v7 = mysql_stmt_close(a2);
}
*a1 = v7;
return 0LL;
}
| mysql_stmt_close_start:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RSI + 0x38]
TEST RAX,RAX
JZ 0x0012c593
MOV RAX,qword ptr [RAX + 0x480]
MOV R15,qword ptr [RAX + 0x28]
LEA RDX,[RBP + -0x20]
MOV qword ptr [RDX],R14
MOV byte ptr [R15 + 0x14],0x1
LEA RDI,[R15 + 0x38]
LEA RSI,[0x12c618]
CALL 0x0012d85c
MOV word ptr [R15 + 0x14],0x0
TEST EAX,EAX
JLE 0x0012c59d
MOV byte ptr [R15 + 0x15],0x1
MOV EAX,dword ptr [R15]
JMP 0x0012c60d
LAB_0012c593:
MOV RDI,R14
CALL 0x001205cd
JMP 0x0012c609
LAB_0012c59d:
JS 0x0012c5a5
MOV AL,byte ptr [R15 + 0x8]
JMP 0x0012c609
LAB_0012c5a5:
MOV RAX,qword ptr [R14 + 0x38]
MOV dword ptr [RAX + 0x90],0x7d8
MOV EDI,0x297
ADD RDI,qword ptr [R14 + 0x38]
LEA RAX,[0x148a60]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113220
MOV RAX,qword ptr [R14 + 0x38]
XOR R15D,R15D
MOV byte ptr [RAX + 0x29c],R15B
MOV EDI,0x97
ADD RDI,qword ptr [R14 + 0x38]
LEA RAX,[0x148a70]
MOV RSI,qword ptr [RAX + 0x40]
MOV EDX,0x1ff
CALL 0x00113220
MOV RAX,qword ptr [R14 + 0x38]
MOV byte ptr [RAX + 0x296],R15B
MOV AL,0x1
LAB_0012c609:
MOV byte ptr [RBX],AL
XOR EAX,EAX
LAB_0012c60d:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
int4 mysql_stmt_close_start(int1 *param_1,long param_2)
{
int4 *puVar1;
int1 uVar2;
int iVar3;
if (*(long *)(param_2 + 0x38) == 0) {
uVar2 = mysql_stmt_close(param_2);
}
else {
puVar1 = *(int4 **)(*(long *)(*(long *)(param_2 + 0x38) + 0x480) + 0x28);
*(int1 *)(puVar1 + 5) = 1;
iVar3 = my_context_spawn(puVar1 + 0xe,mysql_stmt_close_start_internal);
*(int2 *)(puVar1 + 5) = 0;
if (0 < iVar3) {
*(int1 *)((long)puVar1 + 0x15) = 1;
return *puVar1;
}
if (iVar3 < 0) {
*(int4 *)(*(long *)(param_2 + 0x38) + 0x90) = 0x7d8;
strncpy((char *)(*(long *)(param_2 + 0x38) + 0x297),SQLSTATE_UNKNOWN,5);
*(int1 *)(*(long *)(param_2 + 0x38) + 0x29c) = 0;
strncpy((char *)(*(long *)(param_2 + 0x38) + 0x97),PTR_s_Client_run_out_of_memory_00148ab0,
0x1ff);
*(int1 *)(*(long *)(param_2 + 0x38) + 0x296) = 0;
uVar2 = 1;
}
else {
uVar2 = *(int1 *)(puVar1 + 2);
}
}
*param_1 = uVar2;
return 0;
}
| |
45,726 | mysql_real_query_start | eloqsql/libmariadb/libmariadb/mariadb_async.c | int STDCALL
mysql_real_query_start(int *ret, MYSQL *mysql, const char *stmt_str, unsigned long length)
{
int res;
struct mysql_async_context *b;
struct mysql_real_query_params parms;
b= mysql->options.extension->async_context;
{
WIN_SET_NONBLOCKING(mysql)
parms.mysql= mysql;
parms.stmt_str= stmt_str;
parms.length= length;
}
b->active= 1;
res= my_context_spawn(&b->async_context, mysql_real_query_start_internal, &parms);
b->active= b->suspended= 0;
if (res > 0)
{
/* Suspended. */
b->suspended= 1;
return b->events_to_wait_for;
}
if (res < 0)
{
set_mariadb_error((mysql), CR_OUT_OF_MEMORY, unknown_sqlstate);
*ret= 1;
}
else
*ret= b->ret_result.r_int;
return 0;
} | O3 | c | mysql_real_query_start:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x480(%rsi), %rax
movq 0x28(%rax), %r15
leaq -0x30(%rbp), %rax
movq %rsi, (%rax)
movq %rdx, 0x8(%rax)
movq %rcx, 0x10(%rax)
movb $0x1, 0x14(%r15)
leaq 0x38(%r15), %rdi
leaq 0x8c(%rip), %rsi # 0x2bb5d
movq %rax, %rdx
callq 0x305a4
movw $0x0, 0x14(%r15)
testl %eax, %eax
jle 0x2baee
movb $0x1, 0x15(%r15)
movl (%r15), %eax
jmp 0x2bb52
js 0x2baf6
movl 0x8(%r15), %eax
jmp 0x2bb4e
movl $0x7d8, 0x90(%r14) # imm = 0x7D8
leaq 0x297(%r14), %rdi
leaq 0x22271(%rip), %rax # 0x4dd80
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13220
xorl %r15d, %r15d
movb %r15b, 0x29c(%r14)
leaq 0x97(%r14), %rdi
leaq 0x2225c(%rip), %rax # 0x4dd90
movq 0x40(%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x13220
movb %r15b, 0x296(%r14)
movl $0x1, %eax
movl %eax, (%rbx)
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| mysql_real_query_start:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
sub rsp, 18h
mov r14, rsi
mov rbx, rdi
mov rax, [rsi+480h]
mov r15, [rax+28h]
lea rax, [rbp+var_30]
mov [rax], rsi
mov [rax+8], rdx
mov [rax+10h], rcx
mov byte ptr [r15+14h], 1
lea rdi, [r15+38h]
lea rsi, mysql_real_query_start_internal
mov rdx, rax
call my_context_spawn
mov word ptr [r15+14h], 0
test eax, eax
jle short loc_2BAEE
mov byte ptr [r15+15h], 1
mov eax, [r15]
jmp short loc_2BB52
loc_2BAEE:
js short loc_2BAF6
mov eax, [r15+8]
jmp short loc_2BB4E
loc_2BAF6:
mov dword ptr [r14+90h], 7D8h
lea rdi, [r14+297h]
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
xor r15d, r15d
mov [r14+29Ch], r15b
lea rdi, [r14+97h]
lea rax, client_errors
mov rsi, [rax+40h]
mov edx, 1FFh
call _strncpy
mov [r14+296h], r15b
mov eax, 1
loc_2BB4E:
mov [rbx], eax
xor eax, eax
loc_2BB52:
add rsp, 18h
pop rbx
pop r14
pop r15
pop rbp
retn
| long long mysql_real_query_start(int *a1, long long a2, long long a3, long long a4)
{
unsigned int *v4; // r15
int v5; // eax
int v7; // eax
_QWORD v8[6]; // [rsp+0h] [rbp-30h] BYREF
v4 = *(unsigned int **)(*(_QWORD *)(a2 + 1152) + 40LL);
v8[0] = a2;
v8[1] = a3;
v8[2] = a4;
*((_BYTE *)v4 + 20) = 1;
v5 = my_context_spawn(v4 + 14, mysql_real_query_start_internal, v8);
*((_WORD *)v4 + 10) = 0;
if ( v5 <= 0 )
{
if ( v5 < 0 )
{
*(_DWORD *)(a2 + 144) = 2008;
strncpy(a2 + 663, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(a2 + 668) = 0;
strncpy(a2 + 151, client_errors[8], 511LL);
*(_BYTE *)(a2 + 662) = 0;
v7 = 1;
}
else
{
v7 = v4[2];
}
*a1 = v7;
return 0LL;
}
else
{
*((_BYTE *)v4 + 21) = 1;
return *v4;
}
}
| mysql_real_query_start:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RSI + 0x480]
MOV R15,qword ptr [RAX + 0x28]
LEA RAX,[RBP + -0x30]
MOV qword ptr [RAX],RSI
MOV qword ptr [RAX + 0x8],RDX
MOV qword ptr [RAX + 0x10],RCX
MOV byte ptr [R15 + 0x14],0x1
LEA RDI,[R15 + 0x38]
LEA RSI,[0x12bb5d]
MOV RDX,RAX
CALL 0x001305a4
MOV word ptr [R15 + 0x14],0x0
TEST EAX,EAX
JLE 0x0012baee
MOV byte ptr [R15 + 0x15],0x1
MOV EAX,dword ptr [R15]
JMP 0x0012bb52
LAB_0012baee:
JS 0x0012baf6
MOV EAX,dword ptr [R15 + 0x8]
JMP 0x0012bb4e
LAB_0012baf6:
MOV dword ptr [R14 + 0x90],0x7d8
LEA RDI,[R14 + 0x297]
LEA RAX,[0x14dd80]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113220
XOR R15D,R15D
MOV byte ptr [R14 + 0x29c],R15B
LEA RDI,[R14 + 0x97]
LEA RAX,[0x14dd90]
MOV RSI,qword ptr [RAX + 0x40]
MOV EDX,0x1ff
CALL 0x00113220
MOV byte ptr [R14 + 0x296],R15B
MOV EAX,0x1
LAB_0012bb4e:
MOV dword ptr [RBX],EAX
XOR EAX,EAX
LAB_0012bb52:
ADD RSP,0x18
POP RBX
POP R14
POP R15
POP RBP
RET
|
int4
mysql_real_query_start(int4 *param_1,long param_2,int8 param_3,int8 param_4)
{
int4 *puVar1;
int iVar2;
int4 uVar3;
long local_38;
int8 local_30;
int8 local_28;
puVar1 = *(int4 **)(*(long *)(param_2 + 0x480) + 0x28);
*(int1 *)(puVar1 + 5) = 1;
local_38 = param_2;
local_30 = param_3;
local_28 = param_4;
iVar2 = my_context_spawn(puVar1 + 0xe,mysql_real_query_start_internal,&local_38);
*(int2 *)(puVar1 + 5) = 0;
if (iVar2 < 1) {
if (iVar2 < 0) {
*(int4 *)(param_2 + 0x90) = 0x7d8;
strncpy((char *)(param_2 + 0x297),SQLSTATE_UNKNOWN,5);
*(int1 *)(param_2 + 0x29c) = 0;
strncpy((char *)(param_2 + 0x97),PTR_s_Client_run_out_of_memory_0014ddd0,0x1ff);
*(int1 *)(param_2 + 0x296) = 0;
uVar3 = 1;
}
else {
uVar3 = puVar1[2];
}
*param_1 = uVar3;
uVar3 = 0;
}
else {
*(int1 *)((long)puVar1 + 0x15) = 1;
uVar3 = *puVar1;
}
return uVar3;
}
| |
45,727 | OpenSubdiv::v3_6_0::Vtr::internal::Level::resizeVertices(int) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/../vtr/level.h | inline void
Level::resizeVertices(int vertCount) {
_vertCount = vertCount;
_vertFaceCountsAndOffsets.resize(2 * vertCount);
_vertEdgeCountsAndOffsets.resize(2 * vertCount);
_vertSharpness.resize(vertCount);
_vertTags.resize(vertCount);
std::memset((void*) &_vertTags[0], 0, _vertCount * sizeof(VTag));
} | O0 | c | OpenSubdiv::v3_6_0::Vtr::internal::Level::resizeVertices(int):
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x18(%rbp)
movl -0xc(%rbp), %eax
movl %eax, 0x8(%rdi)
addq $0x108, %rdi # imm = 0x108
movl -0xc(%rbp), %eax
shll %eax
movslq %eax, %rsi
callq 0xc9aa0
movq -0x18(%rbp), %rdi
addq $0x150, %rdi # imm = 0x150
movl -0xc(%rbp), %eax
shll %eax
movslq %eax, %rsi
callq 0xc9aa0
movq -0x18(%rbp), %rdi
addq $0x198, %rdi # imm = 0x198
movslq -0xc(%rbp), %rsi
callq 0xcad80
movq -0x18(%rbp), %rdi
addq $0x1b0, %rdi # imm = 0x1B0
movslq -0xc(%rbp), %rsi
callq 0xd2920
movq -0x18(%rbp), %rdi
addq $0x1b0, %rdi # imm = 0x1B0
xorl %eax, %eax
movl %eax, %esi
callq 0xc4dc0
movq %rax, %rdi
movq -0x18(%rbp), %rax
movslq 0x8(%rax), %rdx
shlq %rdx
xorl %esi, %esi
callq 0xc8170
addq $0x20, %rsp
popq %rbp
retq
| _ZN10OpenSubdiv6v3_6_03Vtr8internal5Level14resizeVerticesEi:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov rdi, [rbp+var_8]
mov [rbp+var_18], rdi
mov eax, [rbp+var_C]
mov [rdi+8], eax
add rdi, 108h
mov eax, [rbp+var_C]
shl eax, 1
movsxd rsi, eax
call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong)
mov rdi, [rbp+var_18]
add rdi, 150h
mov eax, [rbp+var_C]
shl eax, 1
movsxd rsi, eax
call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong)
mov rdi, [rbp+var_18]
add rdi, 198h
movsxd rsi, [rbp+var_C]
call __ZNSt6vectorIfSaIfEE6resizeEm; std::vector<float>::resize(ulong)
mov rdi, [rbp+var_18]
add rdi, 1B0h
movsxd rsi, [rbp+var_C]
call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal5Level4VTagESaIS5_EE6resizeEm; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag>::resize(ulong)
mov rdi, [rbp+var_18]
add rdi, 1B0h
xor eax, eax
mov esi, eax
call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal5Level4VTagESaIS5_EEixEm; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag>::operator[](ulong)
mov rdi, rax
mov rax, [rbp+var_18]
movsxd rdx, dword ptr [rax+8]
shl rdx, 1
xor esi, esi
call _memset
add rsp, 20h
pop rbp
retn
| long long OpenSubdiv::v3_6_0::Vtr::internal::Level::resizeVertices(
OpenSubdiv::v3_6_0::Vtr::internal::Level *this,
int a2)
{
long long v2; // rax
*((_DWORD *)this + 2) = a2;
std::vector<int>::resize((char *)this + 264, 2 * a2);
std::vector<int>::resize((char *)this + 336, 2 * a2);
std::vector<float>::resize((char *)this + 408, a2);
std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag>::resize((char *)this + 432, a2);
v2 = std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag>::operator[]((char *)this + 432, 0LL);
return memset(v2, 0LL, 2LL * *((int *)this + 2));
}
| resizeVertices:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RDI
MOV EAX,dword ptr [RBP + -0xc]
MOV dword ptr [RDI + 0x8],EAX
ADD RDI,0x108
MOV EAX,dword ptr [RBP + -0xc]
SHL EAX,0x1
MOVSXD RSI,EAX
CALL 0x001c9aa0
MOV RDI,qword ptr [RBP + -0x18]
ADD RDI,0x150
MOV EAX,dword ptr [RBP + -0xc]
SHL EAX,0x1
MOVSXD RSI,EAX
CALL 0x001c9aa0
MOV RDI,qword ptr [RBP + -0x18]
ADD RDI,0x198
MOVSXD RSI,dword ptr [RBP + -0xc]
CALL 0x001cad80
MOV RDI,qword ptr [RBP + -0x18]
ADD RDI,0x1b0
MOVSXD RSI,dword ptr [RBP + -0xc]
CALL 0x001d2920
MOV RDI,qword ptr [RBP + -0x18]
ADD RDI,0x1b0
XOR EAX,EAX
MOV ESI,EAX
CALL 0x001c4dc0
MOV RDI,RAX
MOV RAX,qword ptr [RBP + -0x18]
MOVSXD RDX,dword ptr [RAX + 0x8]
SHL RDX,0x1
XOR ESI,ESI
CALL 0x001c8170
ADD RSP,0x20
POP RBP
RET
|
/* OpenSubdiv::v3_6_0::Vtr::internal::Level::resizeVertices(int) */
void __thiscall OpenSubdiv::v3_6_0::Vtr::internal::Level::resizeVertices(Level *this,int param_1)
{
void *__s;
*(int *)(this + 8) = param_1;
std::vector<int,std::allocator<int>>::resize
((vector<int,std::allocator<int>> *)(this + 0x108),(long)(param_1 << 1));
std::vector<int,std::allocator<int>>::resize
((vector<int,std::allocator<int>> *)(this + 0x150),(long)(param_1 << 1));
std::vector<float,std::allocator<float>>::resize
((vector<float,std::allocator<float>> *)(this + 0x198),(long)param_1);
std::
vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag>>
::resize((vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag>>
*)(this + 0x1b0),(long)param_1);
__s = (void *)std::
vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag>>
::operator[]((vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag>>
*)(this + 0x1b0),0);
memset(__s,0,(long)*(int *)(this + 8) << 1);
return;
}
| |
45,728 | OpenSubdiv::v3_6_0::Vtr::internal::Level::resizeVertices(int) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/../vtr/level.h | inline void
Level::resizeVertices(int vertCount) {
_vertCount = vertCount;
_vertFaceCountsAndOffsets.resize(2 * vertCount);
_vertEdgeCountsAndOffsets.resize(2 * vertCount);
_vertSharpness.resize(vertCount);
_vertTags.resize(vertCount);
std::memset((void*) &_vertTags[0], 0, _vertCount * sizeof(VTag));
} | O2 | c | OpenSubdiv::v3_6_0::Vtr::internal::Level::resizeVertices(int):
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
movl %esi, 0x8(%rdi)
addq $0x108, %rdi # imm = 0x108
leal (%r14,%r14), %eax
movslq %eax, %r15
movq %r15, %rsi
callq 0x514b0
leaq 0x150(%rbx), %rdi
movq %r15, %rsi
callq 0x514b0
leaq 0x198(%rbx), %rdi
movslq %r14d, %r14
movq %r14, %rsi
callq 0x51a70
leaq 0x1b0(%rbx), %rdi
movq %r14, %rsi
callq 0x54340
movq 0x1b0(%rbx), %rdi
movslq 0x8(%rbx), %rdx
addq %rdx, %rdx
xorl %esi, %esi
popq %rbx
popq %r14
popq %r15
jmp 0x50c10
| _ZN10OpenSubdiv6v3_6_03Vtr8internal5Level14resizeVerticesEi:
push r15
push r14
push rbx
mov r14d, esi
mov rbx, rdi
mov [rdi+8], esi
add rdi, 108h
lea eax, [r14+r14]
movsxd r15, eax
mov rsi, r15
call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong)
lea rdi, [rbx+150h]
mov rsi, r15
call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong)
lea rdi, [rbx+198h]
movsxd r14, r14d
mov rsi, r14
call __ZNSt6vectorIfSaIfEE6resizeEm; std::vector<float>::resize(ulong)
lea rdi, [rbx+1B0h]
mov rsi, r14
call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal5Level4VTagESaIS5_EE6resizeEm; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag>::resize(ulong)
mov rdi, [rbx+1B0h]
movsxd rdx, dword ptr [rbx+8]
add rdx, rdx
xor esi, esi
pop rbx
pop r14
pop r15
jmp _memset
| long long OpenSubdiv::v3_6_0::Vtr::internal::Level::resizeVertices(
OpenSubdiv::v3_6_0::Vtr::internal::Level *this,
int a2)
{
*((_DWORD *)this + 2) = a2;
std::vector<int>::resize((char *)this + 264, 2 * a2);
std::vector<int>::resize((char *)this + 336, 2 * a2);
std::vector<float>::resize((char *)this + 408, a2);
std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag>::resize((char *)this + 432, a2);
return memset(*((_QWORD *)this + 54), 0LL, 2LL * *((int *)this + 2));
}
| resizeVertices:
PUSH R15
PUSH R14
PUSH RBX
MOV R14D,ESI
MOV RBX,RDI
MOV dword ptr [RDI + 0x8],ESI
ADD RDI,0x108
LEA EAX,[R14 + R14*0x1]
MOVSXD R15,EAX
MOV RSI,R15
CALL 0x001514b0
LEA RDI,[RBX + 0x150]
MOV RSI,R15
CALL 0x001514b0
LEA RDI,[RBX + 0x198]
MOVSXD R14,R14D
MOV RSI,R14
CALL 0x00151a70
LEA RDI,[RBX + 0x1b0]
MOV RSI,R14
CALL 0x00154340
MOV RDI,qword ptr [RBX + 0x1b0]
MOVSXD RDX,dword ptr [RBX + 0x8]
ADD RDX,RDX
XOR ESI,ESI
POP RBX
POP R14
POP R15
JMP 0x00150c10
|
/* OpenSubdiv::v3_6_0::Vtr::internal::Level::resizeVertices(int) */
void __thiscall OpenSubdiv::v3_6_0::Vtr::internal::Level::resizeVertices(Level *this,int param_1)
{
*(int *)(this + 8) = param_1;
std::vector<int,std::allocator<int>>::resize
((vector<int,std::allocator<int>> *)(this + 0x108),(long)(param_1 * 2));
std::vector<int,std::allocator<int>>::resize
((vector<int,std::allocator<int>> *)(this + 0x150),(long)(param_1 * 2));
std::vector<float,std::allocator<float>>::resize
((vector<float,std::allocator<float>> *)(this + 0x198),(long)param_1);
std::
vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag>>
::resize((vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag>>
*)(this + 0x1b0),(long)param_1);
memset(*(void **)(this + 0x1b0),0,(long)*(int *)(this + 8) * 2);
return;
}
| |
45,729 | my_bitmap_free | eloqsql/mysys/my_bitmap.c | void my_bitmap_free(MY_BITMAP *map)
{
DBUG_ENTER("my_bitmap_free");
if (map->bitmap)
{
if (map->mutex)
mysql_mutex_destroy(map->mutex);
my_free(map->bitmap);
map->bitmap=0;
}
DBUG_VOID_RETURN;
} | O3 | c | my_bitmap_free:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0xbe615
movq 0x10(%rbx), %r14
testq %r14, %r14
je 0xbe609
movq 0x40(%r14), %rdi
testq %rdi, %rdi
je 0xbe5fe
leaq 0x2fa618(%rip), %rax # 0x3b8c08
movq (%rax), %rax
callq *0x48(%rax)
movq $0x0, 0x40(%r14)
movq %r14, %rdi
callq 0x2b0f0
movq (%rbx), %rdi
callq 0xc3cfa
movq $0x0, (%rbx)
popq %rbx
popq %r14
popq %rbp
retq
| my_bitmap_free:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rdi
mov rdi, [rdi]
test rdi, rdi
jz short loc_BE615
mov r14, [rbx+10h]
test r14, r14
jz short loc_BE609
mov rdi, [r14+40h]
test rdi, rdi
jz short loc_BE5FE
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+48h]
mov qword ptr [r14+40h], 0
loc_BE5FE:
mov rdi, r14
call _pthread_mutex_destroy
mov rdi, [rbx]
loc_BE609:
call my_free
mov qword ptr [rbx], 0
loc_BE615:
pop rbx
pop r14
pop rbp
retn
| long long my_bitmap_free(long long *a1)
{
long long v2; // rdi
long long v3; // r14
long long result; // rax
v2 = *a1;
if ( v2 )
{
v3 = a1[2];
if ( v3 )
{
if ( *(_QWORD *)(v3 + 64) )
{
PSI_server[9]();
*(_QWORD *)(v3 + 64) = 0LL;
}
pthread_mutex_destroy(v3);
v2 = *a1;
}
result = my_free(v2);
*a1 = 0LL;
}
return result;
}
| my_bitmap_free:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RDI
MOV RDI,qword ptr [RDI]
TEST RDI,RDI
JZ 0x001be615
MOV R14,qword ptr [RBX + 0x10]
TEST R14,R14
JZ 0x001be609
MOV RDI,qword ptr [R14 + 0x40]
TEST RDI,RDI
JZ 0x001be5fe
LEA RAX,[0x4b8c08]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x48]
MOV qword ptr [R14 + 0x40],0x0
LAB_001be5fe:
MOV RDI,R14
CALL 0x0012b0f0
MOV RDI,qword ptr [RBX]
LAB_001be609:
CALL 0x001c3cfa
MOV qword ptr [RBX],0x0
LAB_001be615:
POP RBX
POP R14
POP RBP
RET
|
void my_bitmap_free(long *param_1)
{
pthread_mutex_t *__mutex;
long lVar1;
lVar1 = *param_1;
if (lVar1 != 0) {
__mutex = (pthread_mutex_t *)param_1[2];
if (__mutex != (pthread_mutex_t *)0x0) {
if (*(long *)((long)__mutex + 0x40) != 0) {
(**(code **)(PSI_server + 0x48))();
*(int8 *)((long)__mutex + 0x40) = 0;
}
pthread_mutex_destroy(__mutex);
lVar1 = *param_1;
}
my_free(lVar1);
*param_1 = 0;
}
return;
}
| |
45,730 | downheap | eloqsql/mysys/queues.c | void _downheap(QUEUE *queue, uint idx)
{
uchar *element= queue->root[idx];
uint next_index,
elements= queue->elements,
half_queue= elements >> 1,
offset_to_key= queue->offset_to_key,
offset_to_queue_pos= queue->offset_to_queue_pos;
while (idx <= half_queue)
{
next_index= idx+idx;
if (next_index < elements &&
(queue->compare(queue->first_cmp_arg,
queue->root[next_index]+offset_to_key,
queue->root[next_index+1]+offset_to_key) *
queue->max_at_top) > 0)
next_index++;
if ((queue->compare(queue->first_cmp_arg,
queue->root[next_index]+offset_to_key,
element+offset_to_key) * queue->max_at_top) >= 0)
break;
queue->root[idx]= queue->root[next_index];
if (offset_to_queue_pos)
(*(uint*) (queue->root[idx] + offset_to_queue_pos-1))= idx;
idx= next_index;
}
queue->root[idx]=element;
if (offset_to_queue_pos)
(*(uint*) (element + offset_to_queue_pos-1))= idx;
} | O3 | c | downheap:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %esi, %ebx
movq (%rdi), %rax
movl %esi, %r13d
movq (%rax,%r13,8), %rcx
movl 0x10(%rdi), %edx
movl %edx, -0x30(%rbp)
shrl %edx
movl 0x1c(%rdi), %r15d
movl %edx, -0x2c(%rbp)
cmpl %esi, %edx
jb 0xacc86
movq %rdi, %r14
movl 0x18(%rdi), %eax
movq %rcx, -0x40(%rbp)
movq %rax, -0x38(%rbp)
addq %rcx, %rax
movq %rax, -0x48(%rbp)
leal (%rbx,%rbx), %r12d
movq (%r14), %rax
cmpl -0x30(%rbp), %r12d
jae 0xacc29
movq 0x8(%r14), %rdi
movl %r12d, %ecx
movq (%rax,%rcx,8), %rsi
movq -0x38(%rbp), %rcx
addq %rcx, %rsi
movl %r12d, %r13d
orl $0x1, %r13d
movq (%rax,%r13,8), %rdx
addq %rcx, %rdx
callq *0x28(%r14)
imull 0x24(%r14), %eax
testl %eax, %eax
jg 0xacc23
movl %r12d, %r13d
movq (%r14), %rax
movl %r13d, %r12d
movq 0x8(%r14), %rdi
movl %r12d, %r13d
movq (%rax,%r13,8), %rsi
addq -0x38(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq *0x28(%r14)
imull 0x24(%r14), %eax
testl %eax, %eax
jns 0xacc76
movq (%r14), %rcx
movq (%rcx,%r13,8), %rdx
movl %ebx, %eax
movq %rdx, (%rcx,%rax,8)
testq %r15, %r15
je 0xacc67
movq (%r14), %rcx
movq (%rcx,%rax,8), %rax
movl %ebx, -0x1(%rax,%r15)
movl %r12d, %ebx
cmpl -0x2c(%rbp), %r12d
jbe 0xacbe6
jmp 0xacc7c
movl %ebx, %r13d
movl %ebx, %r12d
movq (%r14), %rax
movl %r12d, %ebx
movq -0x40(%rbp), %rcx
movq %rcx, (%rax,%r13,8)
testq %r15, %r15
je 0xacc94
movl %ebx, -0x1(%rcx,%r15)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _downheap:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov ebx, esi
mov rax, [rdi]
mov r13d, esi
mov rcx, [rax+r13*8]
mov edx, [rdi+10h]
mov [rbp+var_30], edx
shr edx, 1
mov r15d, [rdi+1Ch]
mov [rbp+var_2C], edx
cmp edx, esi
jb loc_ACC86
mov r14, rdi
mov eax, [rdi+18h]
mov [rbp+var_40], rcx
mov [rbp+var_38], rax
add rax, rcx
mov [rbp+var_48], rax
loc_ACBE6:
lea r12d, [rbx+rbx]
mov rax, [r14]
cmp r12d, [rbp+var_30]
jnb short loc_ACC29
mov rdi, [r14+8]
mov ecx, r12d
mov rsi, [rax+rcx*8]
mov rcx, [rbp+var_38]
add rsi, rcx
mov r13d, r12d
or r13d, 1
mov rdx, [rax+r13*8]
add rdx, rcx
call qword ptr [r14+28h]
imul eax, [r14+24h]
test eax, eax
jg short loc_ACC23
mov r13d, r12d
loc_ACC23:
mov rax, [r14]
mov r12d, r13d
loc_ACC29:
mov rdi, [r14+8]
mov r13d, r12d
mov rsi, [rax+r13*8]
add rsi, [rbp+var_38]
mov rdx, [rbp+var_48]
call qword ptr [r14+28h]
imul eax, [r14+24h]
test eax, eax
jns short loc_ACC76
mov rcx, [r14]
mov rdx, [rcx+r13*8]
mov eax, ebx
mov [rcx+rax*8], rdx
test r15, r15
jz short loc_ACC67
mov rcx, [r14]
mov rax, [rcx+rax*8]
mov [rax+r15-1], ebx
loc_ACC67:
mov ebx, r12d
cmp r12d, [rbp+var_2C]
jbe loc_ACBE6
jmp short loc_ACC7C
loc_ACC76:
mov r13d, ebx
mov r12d, ebx
loc_ACC7C:
mov rax, [r14]
mov ebx, r12d
mov rcx, [rbp+var_40]
loc_ACC86:
mov [rax+r13*8], rcx
test r15, r15
jz short loc_ACC94
mov [rcx+r15-1], ebx
loc_ACC94:
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long downheap(long long *a1, unsigned int a2)
{
unsigned int v2; // ebx
long long result; // rax
long long v4; // r13
long long v5; // rcx
long long v6; // r15
unsigned int v7; // r12d
long long v8; // rax
long long v9; // r13
long long v10; // [rsp+8h] [rbp-48h]
long long v11; // [rsp+10h] [rbp-40h]
long long v12; // [rsp+18h] [rbp-38h]
unsigned int v13; // [rsp+20h] [rbp-30h]
v2 = a2;
result = *a1;
v4 = a2;
v5 = *(_QWORD *)(*a1 + 8LL * a2);
v13 = *((_DWORD *)a1 + 4);
v6 = *((unsigned int *)a1 + 7);
if ( v13 >> 1 >= a2 )
{
v11 = *(_QWORD *)(*a1 + 8LL * a2);
v12 = *((unsigned int *)a1 + 6);
v10 = v5 + v12;
while ( 1 )
{
v7 = 2 * v2;
v8 = *a1;
if ( 2 * v2 < v13 )
{
v9 = v7 | 1;
if ( (int)(*((_DWORD *)a1 + 9)
* ((long long ( *)(long long, long long, long long))a1[5])(
a1[1],
v12 + *(_QWORD *)(v8 + 8LL * v7),
v12 + *(_QWORD *)(v8 + 8 * v9))) <= 0 )
LODWORD(v9) = 2 * v2;
v8 = *a1;
v7 = v9;
}
v4 = v7;
if ( (int)(*((_DWORD *)a1 + 9)
* ((long long ( *)(long long, long long, long long))a1[5])(
a1[1],
v12 + *(_QWORD *)(v8 + 8LL * v7),
v10)) >= 0 )
break;
*(_QWORD *)(*a1 + 8LL * v2) = *(_QWORD *)(*a1 + 8LL * v7);
if ( v6 )
*(_DWORD *)(*(_QWORD *)(*a1 + 8LL * v2) + v6 - 1) = v2;
v2 = v7;
if ( v7 > v13 >> 1 )
goto LABEL_13;
}
v4 = v2;
v7 = v2;
LABEL_13:
result = *a1;
v2 = v7;
v5 = v11;
}
*(_QWORD *)(result + 8 * v4) = v5;
if ( v6 )
*(_DWORD *)(v5 + v6 - 1) = v2;
return result;
}
| _downheap:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV EBX,ESI
MOV RAX,qword ptr [RDI]
MOV R13D,ESI
MOV RCX,qword ptr [RAX + R13*0x8]
MOV EDX,dword ptr [RDI + 0x10]
MOV dword ptr [RBP + -0x30],EDX
SHR EDX,0x1
MOV R15D,dword ptr [RDI + 0x1c]
MOV dword ptr [RBP + -0x2c],EDX
CMP EDX,ESI
JC 0x001acc86
MOV R14,RDI
MOV EAX,dword ptr [RDI + 0x18]
MOV qword ptr [RBP + -0x40],RCX
MOV qword ptr [RBP + -0x38],RAX
ADD RAX,RCX
MOV qword ptr [RBP + -0x48],RAX
LAB_001acbe6:
LEA R12D,[RBX + RBX*0x1]
MOV RAX,qword ptr [R14]
CMP R12D,dword ptr [RBP + -0x30]
JNC 0x001acc29
MOV RDI,qword ptr [R14 + 0x8]
MOV ECX,R12D
MOV RSI,qword ptr [RAX + RCX*0x8]
MOV RCX,qword ptr [RBP + -0x38]
ADD RSI,RCX
MOV R13D,R12D
OR R13D,0x1
MOV RDX,qword ptr [RAX + R13*0x8]
ADD RDX,RCX
CALL qword ptr [R14 + 0x28]
IMUL EAX,dword ptr [R14 + 0x24]
TEST EAX,EAX
JG 0x001acc23
MOV R13D,R12D
LAB_001acc23:
MOV RAX,qword ptr [R14]
MOV R12D,R13D
LAB_001acc29:
MOV RDI,qword ptr [R14 + 0x8]
MOV R13D,R12D
MOV RSI,qword ptr [RAX + R13*0x8]
ADD RSI,qword ptr [RBP + -0x38]
MOV RDX,qword ptr [RBP + -0x48]
CALL qword ptr [R14 + 0x28]
IMUL EAX,dword ptr [R14 + 0x24]
TEST EAX,EAX
JNS 0x001acc76
MOV RCX,qword ptr [R14]
MOV RDX,qword ptr [RCX + R13*0x8]
MOV EAX,EBX
MOV qword ptr [RCX + RAX*0x8],RDX
TEST R15,R15
JZ 0x001acc67
MOV RCX,qword ptr [R14]
MOV RAX,qword ptr [RCX + RAX*0x8]
MOV dword ptr [RAX + R15*0x1 + -0x1],EBX
LAB_001acc67:
MOV EBX,R12D
CMP R12D,dword ptr [RBP + -0x2c]
JBE 0x001acbe6
JMP 0x001acc7c
LAB_001acc76:
MOV R13D,EBX
MOV R12D,EBX
LAB_001acc7c:
MOV RAX,qword ptr [R14]
MOV EBX,R12D
MOV RCX,qword ptr [RBP + -0x40]
LAB_001acc86:
MOV qword ptr [RAX + R13*0x8],RCX
TEST R15,R15
JZ 0x001acc94
MOV dword ptr [RCX + R15*0x1 + -0x1],EBX
LAB_001acc94:
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void _downheap(long *param_1,uint param_2)
{
uint uVar1;
long lVar2;
uint uVar3;
int iVar4;
ulong uVar5;
long lVar6;
uint uVar7;
uint uVar8;
ulong uVar9;
ulong uVar10;
lVar6 = *param_1;
uVar9 = (ulong)param_2;
lVar2 = *(long *)(lVar6 + uVar9 * 8);
uVar1 = *(uint *)(param_1 + 2);
uVar7 = uVar1 >> 1;
uVar10 = (ulong)*(uint *)((long)param_1 + 0x1c);
if (param_2 <= uVar7) {
uVar5 = (ulong)*(uint *)(param_1 + 3);
uVar8 = param_2;
do {
uVar3 = uVar8 * 2;
uVar9 = (ulong)uVar3;
lVar6 = *param_1;
if (uVar3 < uVar1) {
uVar9 = (ulong)(uVar3 | 1);
iVar4 = (*(code *)param_1[5])
(param_1[1],*(long *)(lVar6 + (ulong)uVar3 * 8) + uVar5,
*(long *)(lVar6 + uVar9 * 8) + uVar5);
if (iVar4 * *(int *)((long)param_1 + 0x24) < 1) {
uVar9 = (ulong)uVar3;
}
lVar6 = *param_1;
}
param_2 = (uint)uVar9;
iVar4 = (*(code *)param_1[5])(param_1[1],*(long *)(lVar6 + uVar9 * 8) + uVar5,uVar5 + lVar2);
if (-1 < iVar4 * *(int *)((long)param_1 + 0x24)) {
uVar9 = (ulong)uVar8;
param_2 = uVar8;
break;
}
*(int8 *)(*param_1 + (ulong)uVar8 * 8) = *(int8 *)(*param_1 + uVar9 * 8);
if (uVar10 != 0) {
*(uint *)(*(long *)(*param_1 + (ulong)uVar8 * 8) + -1 + uVar10) = uVar8;
}
uVar8 = param_2;
} while (param_2 <= uVar7);
lVar6 = *param_1;
}
*(long *)(lVar6 + uVar9 * 8) = lVar2;
if (uVar10 != 0) {
*(uint *)(lVar2 + -1 + uVar10) = param_2;
}
return;
}
| |
45,731 | my_caseup_utf16 | eloqsql/strings/ctype-ucs2.c | static size_t
my_caseup_utf16(CHARSET_INFO *cs, const char *src, size_t srclen,
char *dst, size_t dstlen)
{
my_wc_t wc;
my_charset_conv_mb_wc mb_wc= cs->cset->mb_wc;
my_charset_conv_wc_mb wc_mb= cs->cset->wc_mb;
int res;
const char *srcend= src + srclen;
char *dstend= dst + dstlen;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
DBUG_ASSERT(srclen <= dstlen);
while ((src < srcend) &&
(res= mb_wc(cs, &wc, (uchar *) src, (uchar *) srcend)) > 0)
{
my_toupper_utf16(uni_plane, &wc);
if (res != wc_mb(cs, wc, (uchar *) dst, (uchar *) dstend))
break;
src+= res;
dst+= res;
}
return srclen;
} | O0 | c | my_caseup_utf16:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x30(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movq %rax, -0x60(%rbp)
jmp 0xaa2c8
jmp 0xaa2ca
movq -0x10(%rbp), %rcx
xorl %eax, %eax
cmpq -0x50(%rbp), %rcx
movb %al, -0x61(%rbp)
jae 0xaa2fb
movq -0x38(%rbp), %rax
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rdx
movq -0x50(%rbp), %rcx
leaq -0x30(%rbp), %rsi
callq *%rax
movl %eax, -0x44(%rbp)
cmpl $0x0, %eax
setg %al
movb %al, -0x61(%rbp)
movb -0x61(%rbp), %al
testb $0x1, %al
jne 0xaa304
jmp 0xaa35f
movq -0x60(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0xad850
movl -0x44(%rbp), %eax
movl %eax, -0x68(%rbp)
movq -0x40(%rbp), %rax
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x58(%rbp), %rcx
callq *%rax
movl %eax, %ecx
movl -0x68(%rbp), %eax
cmpl %ecx, %eax
je 0xaa338
jmp 0xaa35f
movl -0x44(%rbp), %ecx
movq -0x10(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movl -0x44(%rbp), %ecx
movq -0x20(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
jmp 0xaa2ca
movq -0x18(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax)
| my_caseup_utf16:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov rax, [rbp+var_8]
mov rax, [rax+0B8h]
mov rax, [rax+28h]
mov [rbp+var_38], rax
mov rax, [rbp+var_8]
mov rax, [rax+0B8h]
mov rax, [rax+30h]
mov [rbp+var_40], rax
mov rax, [rbp+var_10]
add rax, [rbp+var_18]
mov [rbp+var_50], rax
mov rax, [rbp+var_20]
add rax, [rbp+var_28]
mov [rbp+var_58], rax
mov rax, [rbp+var_8]
mov rax, [rax+78h]
mov [rbp+var_60], rax
jmp short $+2
loc_AA2C8:
jmp short $+2
loc_AA2CA:
mov rcx, [rbp+var_10]
xor eax, eax
cmp rcx, [rbp+var_50]
mov [rbp+var_61], al
jnb short loc_AA2FB
mov rax, [rbp+var_38]
mov rdi, [rbp+var_8]
mov rdx, [rbp+var_10]
mov rcx, [rbp+var_50]
lea rsi, [rbp+var_30]
call rax
mov [rbp+var_44], eax
cmp eax, 0
setnle al
mov [rbp+var_61], al
loc_AA2FB:
mov al, [rbp+var_61]
test al, 1
jnz short loc_AA304
jmp short loc_AA35F
loc_AA304:
mov rdi, [rbp+var_60]
lea rsi, [rbp+var_30]
call my_toupper_utf16
mov eax, [rbp+var_44]
mov [rbp+var_68], eax
mov rax, [rbp+var_40]
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_30]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_58]
call rax
mov ecx, eax
mov eax, [rbp+var_68]
cmp eax, ecx
jz short loc_AA338
jmp short loc_AA35F
loc_AA338:
mov ecx, [rbp+var_44]
mov rax, [rbp+var_10]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_10], rax
mov ecx, [rbp+var_44]
mov rax, [rbp+var_20]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_20], rax
jmp loc_AA2CA
loc_AA35F:
mov rax, [rbp+var_18]
add rsp, 70h
pop rbp
retn
| long long my_caseup_utf16(long long a1, unsigned long long a2, long long a3, long long a4, long long a5)
{
bool v6; // [rsp+Fh] [rbp-61h]
long long v7; // [rsp+10h] [rbp-60h]
long long v8; // [rsp+18h] [rbp-58h]
unsigned long long v9; // [rsp+20h] [rbp-50h]
int v10; // [rsp+2Ch] [rbp-44h]
unsigned int ( *v11)(long long, _QWORD, long long, long long); // [rsp+30h] [rbp-40h]
long long ( *v12)(long long, _QWORD *, unsigned long long, unsigned long long); // [rsp+38h] [rbp-38h]
_QWORD v13[2]; // [rsp+40h] [rbp-30h] BYREF
long long v14; // [rsp+50h] [rbp-20h]
long long v15; // [rsp+58h] [rbp-18h]
unsigned long long v16; // [rsp+60h] [rbp-10h]
long long v17; // [rsp+68h] [rbp-8h]
v17 = a1;
v16 = a2;
v15 = a3;
v14 = a4;
v13[1] = a5;
v12 = *(long long ( **)(long long, _QWORD *, unsigned long long, unsigned long long))(*(_QWORD *)(a1 + 184) + 40LL);
v11 = *(unsigned int ( **)(long long, _QWORD, long long, long long))(*(_QWORD *)(a1 + 184) + 48LL);
v9 = a3 + a2;
v8 = a5 + a4;
v7 = *(_QWORD *)(a1 + 120);
while ( 1 )
{
v6 = 0;
if ( v16 < v9 )
{
v10 = v12(v17, v13, v16, v9);
v6 = v10 > 0;
}
if ( !v6 )
break;
my_toupper_utf16(v7, v13);
if ( v10 != v11(v17, v13[0], v14, v8) )
break;
v16 += v10;
v14 += v10;
}
return v15;
}
| my_caseup_utf16:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0xb8]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0xb8]
MOV RAX,qword ptr [RAX + 0x30]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV qword ptr [RBP + -0x60],RAX
JMP 0x001aa2c8
LAB_001aa2c8:
JMP 0x001aa2ca
LAB_001aa2ca:
MOV RCX,qword ptr [RBP + -0x10]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x50]
MOV byte ptr [RBP + -0x61],AL
JNC 0x001aa2fb
MOV RAX,qword ptr [RBP + -0x38]
MOV RDI,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x50]
LEA RSI,[RBP + -0x30]
CALL RAX
MOV dword ptr [RBP + -0x44],EAX
CMP EAX,0x0
SETG AL
MOV byte ptr [RBP + -0x61],AL
LAB_001aa2fb:
MOV AL,byte ptr [RBP + -0x61]
TEST AL,0x1
JNZ 0x001aa304
JMP 0x001aa35f
LAB_001aa304:
MOV RDI,qword ptr [RBP + -0x60]
LEA RSI,[RBP + -0x30]
CALL 0x001ad850
MOV EAX,dword ptr [RBP + -0x44]
MOV dword ptr [RBP + -0x68],EAX
MOV RAX,qword ptr [RBP + -0x40]
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x58]
CALL RAX
MOV ECX,EAX
MOV EAX,dword ptr [RBP + -0x68]
CMP EAX,ECX
JZ 0x001aa338
JMP 0x001aa35f
LAB_001aa338:
MOV ECX,dword ptr [RBP + -0x44]
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
MOV ECX,dword ptr [RBP + -0x44]
MOV RAX,qword ptr [RBP + -0x20]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
JMP 0x001aa2ca
LAB_001aa35f:
MOV RAX,qword ptr [RBP + -0x18]
ADD RSP,0x70
POP RBP
RET
|
long my_caseup_utf16(long param_1,ulong param_2,long param_3,long param_4,long param_5)
{
code *pcVar1;
code *pcVar2;
int8 uVar3;
bool bVar4;
int iVar5;
int local_4c;
int8 local_38;
long local_30;
long local_28;
long local_20;
ulong local_18;
long local_10;
pcVar1 = *(code **)(*(long *)(param_1 + 0xb8) + 0x28);
pcVar2 = *(code **)(*(long *)(param_1 + 0xb8) + 0x30);
uVar3 = *(int8 *)(param_1 + 0x78);
local_30 = param_5;
local_28 = param_4;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
while( true ) {
bVar4 = false;
if (local_18 < param_2 + param_3) {
local_4c = (*pcVar1)(local_10,&local_38,local_18,param_2 + param_3);
bVar4 = 0 < local_4c;
}
if (!bVar4) break;
my_toupper_utf16(uVar3,&local_38);
iVar5 = (*pcVar2)(local_10,local_38,local_28,param_4 + param_5);
if (local_4c != iVar5) {
return local_20;
}
local_18 = local_18 + (long)local_4c;
local_28 = local_28 + local_4c;
}
return local_20;
}
| |
45,732 | testing::internal::posix::IsATTY(int) | AlayaLite/build_O0/_deps/googletest-src/googletest/include/gtest/internal/gtest-port.h | inline int IsATTY(int fd) {
// DoIsATTY might change errno (for example ENOTTY in case you redirect stdout
// to a file on Linux), which is unexpected, so save the previous value, and
// restore it after the call.
int savedErrno = errno;
int isAttyValue = DoIsATTY(fd);
errno = savedErrno;
return isAttyValue;
} | O0 | c | testing::internal::posix::IsATTY(int):
subq $0x18, %rsp
movl %edi, 0x14(%rsp)
callq 0x14050
movl (%rax), %eax
movl %eax, 0x10(%rsp)
movl 0x14(%rsp), %edi
callq 0xf5c20
movl %eax, 0xc(%rsp)
movl 0x10(%rsp), %eax
movl %eax, 0x8(%rsp)
callq 0x14050
movl 0x8(%rsp), %ecx
movl %ecx, (%rax)
movl 0xc(%rsp), %eax
addq $0x18, %rsp
retq
nopl (%rax)
| _ZN7testing8internal5posix6IsATTYEi:
sub rsp, 18h
mov [rsp+18h+var_4], edi
call ___errno_location
mov eax, [rax]
mov [rsp+18h+var_8], eax
mov edi, [rsp+18h+var_4]; this
call _ZN7testing8internal5posix8DoIsATTYEi; testing::internal::posix::DoIsATTY(int)
mov [rsp+18h+var_C], eax
mov eax, [rsp+18h+var_8]
mov [rsp+18h+var_10], eax
call ___errno_location
mov ecx, [rsp+18h+var_10]
mov [rax], ecx
mov eax, [rsp+18h+var_C]
add rsp, 18h
retn
| long long testing::internal::posix::IsATTY(testing::internal::posix *this, long long a2)
{
unsigned int IsATTY; // [rsp+Ch] [rbp-Ch]
int v4; // [rsp+10h] [rbp-8h]
v4 = *(_DWORD *)__errno_location(this, a2);
IsATTY = testing::internal::posix::DoIsATTY((testing::internal::posix *)(unsigned int)this, a2);
*(_DWORD *)__errno_location((unsigned int)this, a2) = v4;
return IsATTY;
}
| IsATTY:
SUB RSP,0x18
MOV dword ptr [RSP + 0x14],EDI
CALL 0x00114050
MOV EAX,dword ptr [RAX]
MOV dword ptr [RSP + 0x10],EAX
MOV EDI,dword ptr [RSP + 0x14]
CALL 0x001f5c20
MOV dword ptr [RSP + 0xc],EAX
MOV EAX,dword ptr [RSP + 0x10]
MOV dword ptr [RSP + 0x8],EAX
CALL 0x00114050
MOV ECX,dword ptr [RSP + 0x8]
MOV dword ptr [RAX],ECX
MOV EAX,dword ptr [RSP + 0xc]
ADD RSP,0x18
RET
|
/* testing::internal::posix::IsATTY(int) */
int4 testing::internal::posix::IsATTY(int param_1)
{
int iVar1;
int4 uVar2;
int *piVar3;
piVar3 = __errno_location();
iVar1 = *piVar3;
uVar2 = DoIsATTY(param_1);
piVar3 = __errno_location();
*piVar3 = iVar1;
return uVar2;
}
| |
45,733 | ggml_soft_max_ext_back | llama.cpp/ggml/src/ggml.c | struct ggml_tensor * ggml_soft_max_ext_back(
struct ggml_context * ctx,
struct ggml_tensor * a,
struct ggml_tensor * b,
float scale,
float max_bias) {
return ggml_soft_max_ext_back_impl(ctx, a, b, scale, max_bias, false);
} | O3 | c | ggml_soft_max_ext_back:
pushq %r14
pushq %rbx
pushq %rax
movss %xmm1, 0x4(%rsp)
movss %xmm0, (%rsp)
movq %rdx, %rbx
movq %rsi, %r14
movl (%rsi), %esi
leaq 0x10(%r14), %rcx
movl $0x4, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x19be7
movl $0x2c, 0x50(%rax)
movq %r14, 0x98(%rax)
movq %rbx, 0xa0(%rax)
movss (%rsp), %xmm0
movss %xmm0, 0x54(%rax)
movss 0x4(%rsp), %xmm0
movss %xmm0, 0x58(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| ggml_soft_max_ext_back:
push r14
push rbx
push rax
movss [rsp+18h+var_14], xmm1
movss [rsp+18h+var_18], xmm0
mov rbx, rdx
mov r14, rsi
mov esi, [rsi]
lea rcx, [r14+10h]
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
mov dword ptr [rax+50h], 2Ch ; ','
mov [rax+98h], r14
mov [rax+0A0h], rbx
movss xmm0, [rsp+18h+var_18]
movss dword ptr [rax+54h], xmm0
movss xmm0, [rsp+18h+var_14]
movss dword ptr [rax+58h], xmm0
add rsp, 8
pop rbx
pop r14
retn
| long long ggml_soft_max_ext_back(long long a1, long long a2, long long a3, float a4, float a5)
{
long long result; // rax
result = ggml_new_tensor_impl(a1, *(_DWORD *)a2, 4u, (_QWORD *)(a2 + 16), 0LL, 0LL);
*(_DWORD *)(result + 80) = 44;
*(_QWORD *)(result + 152) = a2;
*(_QWORD *)(result + 160) = a3;
*(float *)(result + 84) = a4;
*(float *)(result + 88) = a5;
return result;
}
| ggml_soft_max_ext_back:
PUSH R14
PUSH RBX
PUSH RAX
MOVSS dword ptr [RSP + 0x4],XMM1
MOVSS dword ptr [RSP],XMM0
MOV RBX,RDX
MOV R14,RSI
MOV ESI,dword ptr [RSI]
LEA RCX,[R14 + 0x10]
MOV EDX,0x4
XOR R8D,R8D
XOR R9D,R9D
CALL 0x00119be7
MOV dword ptr [RAX + 0x50],0x2c
MOV qword ptr [RAX + 0x98],R14
MOV qword ptr [RAX + 0xa0],RBX
MOVSS XMM0,dword ptr [RSP]
MOVSS dword ptr [RAX + 0x54],XMM0
MOVSS XMM0,dword ptr [RSP + 0x4]
MOVSS dword ptr [RAX + 0x58],XMM0
ADD RSP,0x8
POP RBX
POP R14
RET
|
void ggml_soft_max_ext_back
(int4 param_1,int4 param_2,int8 param_3,int4 *param_4,
int8 param_5)
{
long lVar1;
lVar1 = ggml_new_tensor_impl(param_3,*param_4,4,param_4 + 4,0,0);
*(int4 *)(lVar1 + 0x50) = 0x2c;
*(int4 **)(lVar1 + 0x98) = param_4;
*(int8 *)(lVar1 + 0xa0) = param_5;
*(int4 *)(lVar1 + 0x54) = param_1;
*(int4 *)(lVar1 + 0x58) = param_2;
return;
}
| |
45,734 | inline_mysql_cond_destroy | eloqsql/include/mysql/psi/mysql_thread.h | static inline int inline_mysql_cond_destroy(
mysql_cond_t *that)
{
#ifdef HAVE_PSI_COND_INTERFACE
if (psi_likely(that->m_psi != NULL))
{
PSI_COND_CALL(destroy_cond)(that->m_psi);
that->m_psi= NULL;
}
#endif
return pthread_cond_destroy(&that->m_cond);
} | O0 | c | inline_mysql_cond_destroy:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x30(%rax)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x5e8f4
leaq 0x265741(%rip), %rax # 0x2c4018
movq (%rax), %rax
movq 0x68(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x30(%rcx), %rdi
callq *%rax
movq -0x8(%rbp), %rax
movq $0x0, 0x30(%rax)
movq -0x8(%rbp), %rdi
callq 0x29240
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| inline_mysql_cond_destroy:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
cmp qword ptr [rax+30h], 0
setnz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_5E8F4
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+68h]
mov rcx, [rbp+var_8]
mov rdi, [rcx+30h]
call rax
mov rax, [rbp+var_8]
mov qword ptr [rax+30h], 0
loc_5E8F4:
mov rdi, [rbp+var_8]
call _pthread_cond_destroy
add rsp, 10h
pop rbp
retn
| long long inline_mysql_cond_destroy(long long a1)
{
if ( *(_QWORD *)(a1 + 48) )
{
((void ( *)(_QWORD))PSI_server[13])(*(_QWORD *)(a1 + 48));
*(_QWORD *)(a1 + 48) = 0LL;
}
return pthread_cond_destroy(a1);
}
| inline_mysql_cond_destroy:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x30],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x0015e8f4
LEA RAX,[0x3c4018]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x68]
MOV RCX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RCX + 0x30]
CALL RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x30],0x0
LAB_0015e8f4:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00129240
ADD RSP,0x10
POP RBP
RET
|
void inline_mysql_cond_destroy(pthread_cond_t *param_1)
{
if (param_1[1].__align != 0) {
(**(code **)(PSI_server + 0x68))(param_1[1].__align);
param_1[1].__align = 0;
}
pthread_cond_destroy(param_1);
return;
}
| |
45,735 | thr_upgrade_write_delay_lock | eloqsql/mysys/thr_lock.c | my_bool thr_upgrade_write_delay_lock(THR_LOCK_DATA *data,
enum thr_lock_type new_lock_type,
ulong lock_wait_timeout)
{
THR_LOCK *lock=data->lock;
enum enum_thr_lock_result res;
DBUG_ENTER("thr_upgrade_write_delay_lock");
mysql_mutex_lock(&lock->mutex);
if (data->type == TL_UNLOCK || data->type >= TL_WRITE_LOW_PRIORITY)
{
mysql_mutex_unlock(&lock->mutex);
DBUG_RETURN(data->type == TL_UNLOCK); /* Test if Aborted */
}
check_locks(lock,"before upgrading lock", data->type, 0);
/* TODO: Upgrade to TL_WRITE_CONCURRENT_INSERT in some cases */
data->type= new_lock_type; /* Upgrade lock */
/* Check if someone has given us the lock */
if (!data->cond)
{
if (!lock->read.data) /* No read locks */
{ /* We have the lock */
/* For this function, get_status is not allowed to fail */
if (data->lock->get_status)
(*data->lock->get_status)(data->status_param, 0);
mysql_mutex_unlock(&lock->mutex);
if (lock->start_trans)
(*lock->start_trans)(data->status_param);
DBUG_RETURN(0);
}
if (((*data->prev)=data->next)) /* remove from lock-list */
data->next->prev= data->prev;
else
lock->write.last=data->prev;
if ((data->next=lock->write_wait.data)) /* Put first in lock_list */
data->next->prev= &data->next;
else
lock->write_wait.last= &data->next;
data->prev= &lock->write_wait.data;
lock->write_wait.data=data;
check_locks(lock,"upgrading lock", new_lock_type, 0);
}
else
{
check_locks(lock,"waiting for lock", new_lock_type, 0);
}
res= wait_for_lock(&lock->write_wait, data, 1, lock_wait_timeout);
if (res == THR_LOCK_SUCCESS && lock->start_trans)
DBUG_RETURN((*lock->start_trans)(data->status_param));
DBUG_RETURN(0);
} | O0 | c | thr_upgrade_write_delay_lock:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
addq $0x18, %rdi
leaq 0x5b1d4(%rip), %rsi # 0x154402
movl $0x5a5, %edx # imm = 0x5A5
callq 0xf7ac0
movq -0x10(%rbp), %rax
cmpl $0x0, 0x40(%rax)
je 0xf924c
movq -0x10(%rbp), %rax
cmpl $0xb, 0x40(%rax)
jl 0xf9271
movq -0x28(%rbp), %rdi
addq $0x18, %rdi
callq 0xf7b30
movq -0x10(%rbp), %rax
cmpl $0x0, 0x40(%rax)
sete %al
andb $0x1, %al
movzbl %al, %eax
movb %al, -0x1(%rbp)
jmp 0xf93fd
movl -0x14(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x40(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x20(%rax)
jne 0xf93a5
movq -0x28(%rbp), %rax
cmpq $0x0, 0x70(%rax)
jne 0xf92fd
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
cmpq $0x0, 0xb0(%rax)
je 0xf92c2
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0xb0(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x28(%rcx), %rdi
xorl %esi, %esi
callq *%rax
movq -0x28(%rbp), %rdi
addq $0x18, %rdi
callq 0xf7b30
movq -0x28(%rbp), %rax
cmpq $0x0, 0xd0(%rax)
je 0xf92f2
movq -0x28(%rbp), %rax
movq 0xd0(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x28(%rcx), %rdi
callq *%rax
jmp 0xf92f4
movb $0x0, -0x1(%rbp)
jmp 0xf93fd
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq %rax, (%rcx)
cmpq $0x0, %rax
je 0xf932c
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x10(%rax)
jmp 0xf933f
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x98(%rax)
movq -0x28(%rbp), %rax
movq 0x80(%rax), %rax
movq -0x10(%rbp), %rcx
movq %rax, 0x8(%rcx)
cmpq $0x0, %rax
je 0xf936e
movq -0x10(%rbp), %rcx
addq $0x8, %rcx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x10(%rax)
jmp 0xf9381
movq -0x10(%rbp), %rcx
addq $0x8, %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x88(%rax)
movq -0x28(%rbp), %rcx
addq $0x80, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x80(%rax)
jmp 0xf93a7
jmp 0xf93a7
movq -0x28(%rbp), %rdi
addq $0x80, %rdi
movq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rcx
movl $0x1, %edx
callq 0xf9410
movl %eax, -0x2c(%rbp)
cmpl $0x0, -0x2c(%rbp)
jne 0xf93f7
movq -0x28(%rbp), %rax
cmpq $0x0, 0xd0(%rax)
je 0xf93f7
jmp 0xf93dd
movq -0x28(%rbp), %rax
movq 0xd0(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x28(%rcx), %rdi
callq *%rax
movb %al, -0x1(%rbp)
jmp 0xf93fd
jmp 0xf93f9
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| thr_upgrade_write_delay_lock:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_20], rdx
mov rax, [rbp+var_10]
mov rax, [rax+18h]
mov [rbp+var_28], rax
mov rdi, [rbp+var_28]
add rdi, 18h
lea rsi, aWorkspaceLlm4b_39; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 5A5h
call inline_mysql_mutex_lock_27
mov rax, [rbp+var_10]
cmp dword ptr [rax+40h], 0
jz short loc_F924C
mov rax, [rbp+var_10]
cmp dword ptr [rax+40h], 0Bh
jl short loc_F9271
loc_F924C:
mov rdi, [rbp+var_28]
add rdi, 18h
call inline_mysql_mutex_unlock_28
mov rax, [rbp+var_10]
cmp dword ptr [rax+40h], 0
setz al
and al, 1
movzx eax, al
mov [rbp+var_1], al
jmp loc_F93FD
loc_F9271:
mov ecx, [rbp+var_14]
mov rax, [rbp+var_10]
mov [rax+40h], ecx
mov rax, [rbp+var_10]
cmp qword ptr [rax+20h], 0
jnz loc_F93A5
mov rax, [rbp+var_28]
cmp qword ptr [rax+70h], 0
jnz short loc_F92FD
mov rax, [rbp+var_10]
mov rax, [rax+18h]
cmp qword ptr [rax+0B0h], 0
jz short loc_F92C2
mov rax, [rbp+var_10]
mov rax, [rax+18h]
mov rax, [rax+0B0h]
mov rcx, [rbp+var_10]
mov rdi, [rcx+28h]
xor esi, esi
call rax
loc_F92C2:
mov rdi, [rbp+var_28]
add rdi, 18h
call inline_mysql_mutex_unlock_28
mov rax, [rbp+var_28]
cmp qword ptr [rax+0D0h], 0
jz short loc_F92F2
mov rax, [rbp+var_28]
mov rax, [rax+0D0h]
mov rcx, [rbp+var_10]
mov rdi, [rcx+28h]
call rax
loc_F92F2:
jmp short $+2
loc_F92F4:
mov [rbp+var_1], 0
jmp loc_F93FD
loc_F92FD:
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rcx, [rbp+var_10]
mov rcx, [rcx+10h]
mov [rcx], rax
cmp rax, 0
jz short loc_F932C
mov rax, [rbp+var_10]
mov rcx, [rax+10h]
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rax+10h], rcx
jmp short loc_F933F
loc_F932C:
mov rax, [rbp+var_10]
mov rcx, [rax+10h]
mov rax, [rbp+var_28]
mov [rax+98h], rcx
loc_F933F:
mov rax, [rbp+var_28]
mov rax, [rax+80h]
mov rcx, [rbp+var_10]
mov [rcx+8], rax
cmp rax, 0
jz short loc_F936E
mov rcx, [rbp+var_10]
add rcx, 8
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rax+10h], rcx
jmp short loc_F9381
loc_F936E:
mov rcx, [rbp+var_10]
add rcx, 8
mov rax, [rbp+var_28]
mov [rax+88h], rcx
loc_F9381:
mov rcx, [rbp+var_28]
add rcx, 80h
mov rax, [rbp+var_10]
mov [rax+10h], rcx
mov rcx, [rbp+var_10]
mov rax, [rbp+var_28]
mov [rax+80h], rcx
jmp short loc_F93A7
loc_F93A5:
jmp short $+2
loc_F93A7:
mov rdi, [rbp+var_28]
add rdi, 80h
mov rsi, [rbp+var_10]
mov rcx, [rbp+var_20]
mov edx, 1
call wait_for_lock
mov [rbp+var_2C], eax
cmp [rbp+var_2C], 0
jnz short loc_F93F7
mov rax, [rbp+var_28]
cmp qword ptr [rax+0D0h], 0
jz short loc_F93F7
jmp short $+2
loc_F93DD:
mov rax, [rbp+var_28]
mov rax, [rax+0D0h]
mov rcx, [rbp+var_10]
mov rdi, [rcx+28h]
call rax
mov [rbp+var_1], al
jmp short loc_F93FD
loc_F93F7:
jmp short $+2
loc_F93F9:
mov [rbp+var_1], 0
loc_F93FD:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
| char thr_upgrade_write_delay_lock(long long a1, int a2, long long a3)
{
long long v3; // rax
long long v4; // rax
long long v6; // [rsp+8h] [rbp-28h]
v6 = *(_QWORD *)(a1 + 24);
inline_mysql_mutex_lock_27(v6 + 24, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c", 0x5A5u);
if ( !*(_DWORD *)(a1 + 64) || *(int *)(a1 + 64) >= 11 )
{
inline_mysql_mutex_unlock_28(v6 + 24);
return *(_DWORD *)(a1 + 64) == 0;
}
*(_DWORD *)(a1 + 64) = a2;
if ( *(_QWORD *)(a1 + 32) )
goto LABEL_18;
if ( *(_QWORD *)(v6 + 112) )
{
v3 = *(_QWORD *)(a1 + 8);
**(_QWORD **)(a1 + 16) = v3;
if ( v3 )
*(_QWORD *)(*(_QWORD *)(a1 + 8) + 16LL) = *(_QWORD *)(a1 + 16);
else
*(_QWORD *)(v6 + 152) = *(_QWORD *)(a1 + 16);
v4 = *(_QWORD *)(v6 + 128);
*(_QWORD *)(a1 + 8) = v4;
if ( v4 )
*(_QWORD *)(*(_QWORD *)(a1 + 8) + 16LL) = a1 + 8;
else
*(_QWORD *)(v6 + 136) = a1 + 8;
*(_QWORD *)(a1 + 16) = v6 + 128;
*(_QWORD *)(v6 + 128) = a1;
LABEL_18:
if ( (unsigned int)wait_for_lock(v6 + 128, a1, 1LL, a3) || !*(_QWORD *)(v6 + 208) )
return 0;
else
return (*(long long ( **)(_QWORD))(v6 + 208))(*(_QWORD *)(a1 + 40));
}
if ( *(_QWORD *)(*(_QWORD *)(a1 + 24) + 176LL) )
(*(void ( **)(_QWORD, _QWORD))(*(_QWORD *)(a1 + 24) + 176LL))(*(_QWORD *)(a1 + 40), 0LL);
inline_mysql_mutex_unlock_28(v6 + 24);
if ( *(_QWORD *)(v6 + 208) )
(*(void ( **)(_QWORD))(v6 + 208))(*(_QWORD *)(a1 + 40));
return 0;
}
| thr_upgrade_write_delay_lock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV qword ptr [RBP + -0x20],RDX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x28],RAX
MOV RDI,qword ptr [RBP + -0x28]
ADD RDI,0x18
LEA RSI,[0x254402]
MOV EDX,0x5a5
CALL 0x001f7ac0
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x40],0x0
JZ 0x001f924c
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x40],0xb
JL 0x001f9271
LAB_001f924c:
MOV RDI,qword ptr [RBP + -0x28]
ADD RDI,0x18
CALL 0x001f7b30
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x40],0x0
SETZ AL
AND AL,0x1
MOVZX EAX,AL
MOV byte ptr [RBP + -0x1],AL
JMP 0x001f93fd
LAB_001f9271:
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x40],ECX
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x20],0x0
JNZ 0x001f93a5
MOV RAX,qword ptr [RBP + -0x28]
CMP qword ptr [RAX + 0x70],0x0
JNZ 0x001f92fd
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
CMP qword ptr [RAX + 0xb0],0x0
JZ 0x001f92c2
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RAX + 0xb0]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RCX + 0x28]
XOR ESI,ESI
CALL RAX
LAB_001f92c2:
MOV RDI,qword ptr [RBP + -0x28]
ADD RDI,0x18
CALL 0x001f7b30
MOV RAX,qword ptr [RBP + -0x28]
CMP qword ptr [RAX + 0xd0],0x0
JZ 0x001f92f2
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0xd0]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RCX + 0x28]
CALL RAX
LAB_001f92f2:
JMP 0x001f92f4
LAB_001f92f4:
MOV byte ptr [RBP + -0x1],0x0
JMP 0x001f93fd
LAB_001f92fd:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x10]
MOV qword ptr [RCX],RAX
CMP RAX,0x0
JZ 0x001f932c
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RAX + 0x10],RCX
JMP 0x001f933f
LAB_001f932c:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX + 0x98],RCX
LAB_001f933f:
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x80]
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RCX + 0x8],RAX
CMP RAX,0x0
JZ 0x001f936e
MOV RCX,qword ptr [RBP + -0x10]
ADD RCX,0x8
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RAX + 0x10],RCX
JMP 0x001f9381
LAB_001f936e:
MOV RCX,qword ptr [RBP + -0x10]
ADD RCX,0x8
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX + 0x88],RCX
LAB_001f9381:
MOV RCX,qword ptr [RBP + -0x28]
ADD RCX,0x80
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],RCX
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX + 0x80],RCX
JMP 0x001f93a7
LAB_001f93a5:
JMP 0x001f93a7
LAB_001f93a7:
MOV RDI,qword ptr [RBP + -0x28]
ADD RDI,0x80
MOV RSI,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x20]
MOV EDX,0x1
CALL 0x001f9410
MOV dword ptr [RBP + -0x2c],EAX
CMP dword ptr [RBP + -0x2c],0x0
JNZ 0x001f93f7
MOV RAX,qword ptr [RBP + -0x28]
CMP qword ptr [RAX + 0xd0],0x0
JZ 0x001f93f7
JMP 0x001f93dd
LAB_001f93dd:
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0xd0]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RCX + 0x28]
CALL RAX
MOV byte ptr [RBP + -0x1],AL
JMP 0x001f93fd
LAB_001f93f7:
JMP 0x001f93f9
LAB_001f93f9:
MOV byte ptr [RBP + -0x1],0x0
LAB_001f93fd:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1 thr_upgrade_write_delay_lock(long param_1,int4 param_2,int8 param_3)
{
long lVar1;
long lVar2;
int iVar3;
int1 local_9;
lVar1 = *(long *)(param_1 + 0x18);
inline_mysql_mutex_lock
(lVar1 + 0x18,"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c",0x5a5);
if ((*(int *)(param_1 + 0x40) == 0) || (10 < *(int *)(param_1 + 0x40))) {
inline_mysql_mutex_unlock(lVar1 + 0x18);
local_9 = *(int *)(param_1 + 0x40) == 0;
}
else {
*(int4 *)(param_1 + 0x40) = param_2;
if (*(long *)(param_1 + 0x20) == 0) {
if (*(long *)(lVar1 + 0x70) == 0) {
if (*(long *)(*(long *)(param_1 + 0x18) + 0xb0) != 0) {
(**(code **)(*(long *)(param_1 + 0x18) + 0xb0))(*(int8 *)(param_1 + 0x28),0);
}
inline_mysql_mutex_unlock(lVar1 + 0x18);
if (*(long *)(lVar1 + 0xd0) != 0) {
(**(code **)(lVar1 + 0xd0))(*(int8 *)(param_1 + 0x28));
}
return 0;
}
lVar2 = *(long *)(param_1 + 8);
**(long **)(param_1 + 0x10) = lVar2;
if (lVar2 == 0) {
*(int8 *)(lVar1 + 0x98) = *(int8 *)(param_1 + 0x10);
}
else {
*(int8 *)(*(long *)(param_1 + 8) + 0x10) = *(int8 *)(param_1 + 0x10);
}
lVar2 = *(long *)(lVar1 + 0x80);
*(long *)(param_1 + 8) = lVar2;
if (lVar2 == 0) {
*(long *)(lVar1 + 0x88) = param_1 + 8;
}
else {
*(long *)(*(long *)(param_1 + 8) + 0x10) = param_1 + 8;
}
*(long *)(param_1 + 0x10) = lVar1 + 0x80;
*(long *)(lVar1 + 0x80) = param_1;
}
iVar3 = wait_for_lock(lVar1 + 0x80,param_1,1,param_3);
if ((iVar3 == 0) && (*(long *)(lVar1 + 0xd0) != 0)) {
local_9 = (**(code **)(lVar1 + 0xd0))(*(int8 *)(param_1 + 0x28));
}
else {
local_9 = 0;
}
}
return local_9;
}
| |
45,736 | testing::internal::(anonymous namespace)::PositiveAndNegativeUnitTestFilter::PositiveAndNegativeUnitTestFilter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest.cc | explicit PositiveAndNegativeUnitTestFilter(const std::string& filter) {
std::vector<std::string> positive_and_negative_filters;
// NOTE: `SplitString` always returns a non-empty container.
SplitString(filter, '-', &positive_and_negative_filters);
const auto& positive_filter = positive_and_negative_filters.front();
if (positive_and_negative_filters.size() > 1) {
positive_filter_ = UnitTestFilter(
positive_filter.empty() ? kUniversalFilter : positive_filter);
// TODO(b/214626361): Fail on multiple '-' characters
// For the moment to preserve old behavior we concatenate the rest of the
// string parts with `-` as separator to generate the negative filter.
auto negative_filter_string = positive_and_negative_filters[1];
for (std::size_t i = 2; i < positive_and_negative_filters.size(); i++)
negative_filter_string =
negative_filter_string + '-' + positive_and_negative_filters[i];
negative_filter_ = UnitTestFilter(negative_filter_string);
} else {
// In case we don't have a negative filter and positive filter is ""
// we do not use kUniversalFilter by design as opposed to when we have a
// negative filter.
positive_filter_ = UnitTestFilter(positive_filter);
}
} | O0 | cpp | testing::internal::(anonymous namespace)::PositiveAndNegativeUnitTestFilter::PositiveAndNegativeUnitTestFilter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
subq $0x1f8, %rsp # imm = 0x1F8
movq %rdi, 0x1f0(%rsp)
movq %rsi, 0x1e8(%rsp)
movq 0x1f0(%rsp), %rdi
movq %rdi, 0x20(%rsp)
movq %rdi, %rax
movq %rax, 0x18(%rsp)
callq 0x11ed80
movq 0x20(%rsp), %rdi
addq $0x50, %rdi
movq %rdi, 0x28(%rsp)
callq 0x11ed80
leaq 0x1d0(%rsp), %rdi
movq %rdi, 0x30(%rsp)
callq 0x1240e0
movq 0x30(%rsp), %rdx
movq 0x1e8(%rsp), %rdi
movl $0x2d, %esi
callq 0xf72c0
jmp 0xffecf
leaq 0x1d0(%rsp), %rdi
callq 0x132fc0
movq %rax, 0x1b8(%rsp)
leaq 0x1d0(%rsp), %rdi
callq 0x1240f0
cmpq $0x1, %rax
jbe 0x1001af
movq 0x1b8(%rsp), %rdi
callq 0x7bfe0
movb $0x0, 0x146(%rsp)
testb $0x1, %al
jne 0xfff16
jmp 0xfff4d
leaq 0x147(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x15de0
movq 0x10(%rsp), %rdx
movb $0x1, 0x146(%rsp)
leaq 0x53c74(%rip), %rsi # 0x153bb0
leaq 0x148(%rsp), %rdi
callq 0x1bd40
jmp 0xfff4b
jmp 0xfff66
movq 0x1b8(%rsp), %rsi
leaq 0x148(%rsp), %rdi
callq 0x1fe60
jmp 0xfff64
jmp 0xfff66
leaq 0x168(%rsp), %rdi
leaq 0x148(%rsp), %rsi
callq 0xff9f0
jmp 0xfff7d
movq 0x18(%rsp), %rdi
leaq 0x168(%rsp), %rsi
callq 0x11edb0
leaq 0x168(%rsp), %rdi
callq 0xffda0
leaq 0x148(%rsp), %rdi
callq 0x1c160
testb $0x1, 0x146(%rsp)
jne 0xfffb5
jmp 0xfffc2
leaq 0x147(%rsp), %rdi
callq 0x157f0
leaq 0x1d0(%rsp), %rdi
movl $0x1, %esi
callq 0x124270
movq %rax, %rsi
leaq 0x120(%rsp), %rdi
callq 0x1fe60
jmp 0xfffe6
movq $0x2, 0x118(%rsp)
movq 0x118(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x1d0(%rsp), %rdi
callq 0x1240f0
movq %rax, %rcx
movq 0x8(%rsp), %rax
cmpq %rcx, %rax
jae 0x100157
leaq 0xd8(%rsp), %rdi
leaq 0x120(%rsp), %rsi
movl $0x2d, %edx
callq 0x124470
jmp 0x100039
movq 0x118(%rsp), %rsi
leaq 0x1d0(%rsp), %rdi
callq 0x124270
movq %rax, %rdx
leaq 0xf8(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
callq 0x124420
jmp 0x100068
leaq 0x120(%rsp), %rdi
leaq 0xf8(%rsp), %rsi
callq 0x7b740
leaq 0xf8(%rsp), %rdi
callq 0x1c160
leaq 0xd8(%rsp), %rdi
callq 0x1c160
movq 0x118(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x118(%rsp)
jmp 0xffff2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1c8(%rsp)
movl %eax, 0x1c4(%rsp)
jmp 0x1001f1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1c8(%rsp)
movl %eax, 0x1c4(%rsp)
jmp 0x100100
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1c8(%rsp)
movl %eax, 0x1c4(%rsp)
leaq 0x148(%rsp), %rdi
callq 0x1c160
testb $0x1, 0x146(%rsp)
jne 0x10010c
jmp 0x100119
leaq 0x147(%rsp), %rdi
callq 0x157f0
jmp 0x1001f1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1c8(%rsp)
movl %eax, 0x1c4(%rsp)
jmp 0x1001a0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1c8(%rsp)
movl %eax, 0x1c4(%rsp)
leaq 0xd8(%rsp), %rdi
callq 0x1c160
jmp 0x1001a0
leaq 0x88(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0xff9f0
jmp 0x10016e
movq 0x18(%rsp), %rdi
addq $0x50, %rdi
leaq 0x88(%rsp), %rsi
callq 0x11edb0
leaq 0x88(%rsp), %rdi
callq 0xffda0
leaq 0x120(%rsp), %rdi
callq 0x1c160
jmp 0x1001dc
leaq 0x120(%rsp), %rdi
callq 0x1c160
jmp 0x1001f1
movq 0x1b8(%rsp), %rsi
leaq 0x38(%rsp), %rdi
callq 0xff9f0
jmp 0x1001c3
movq 0x18(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x11edb0
leaq 0x38(%rsp), %rdi
callq 0xffda0
leaq 0x1d0(%rsp), %rdi
callq 0x123ed0
addq $0x1f8, %rsp # imm = 0x1F8
retq
leaq 0x1d0(%rsp), %rdi
callq 0x123ed0
movq 0x28(%rsp), %rdi
callq 0xffda0
movq 0x20(%rsp), %rdi
callq 0xffda0
movq 0x1c8(%rsp), %rdi
callq 0x15dd0
nop
| _ZN7testing8internal12_GLOBAL__N_133PositiveAndNegativeUnitTestFilterC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
sub rsp, 1F8h
mov [rsp+1F8h+var_8], rdi
mov [rsp+1F8h+var_10], rsi
mov rdi, [rsp+1F8h+var_8]; this
mov qword ptr [rsp+1F8h+var_1D8], rdi; int
mov rax, rdi
mov qword ptr [rsp+1F8h+var_1E0], rax; int
call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilterC2Ev; testing::internal::`anonymous namespace'::UnitTestFilter::UnitTestFilter(void)
mov rdi, qword ptr [rsp+1F8h+var_1D8]
add rdi, 50h ; 'P'; this
mov qword ptr [rsp+1F8h+var_1D0], rdi; int
call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilterC2Ev; testing::internal::`anonymous namespace'::UnitTestFilter::UnitTestFilter(void)
lea rdi, [rsp+1F8h+var_28]
mov qword ptr [rsp+1F8h+var_1C8], rdi; int
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev; std::vector<std::string>::vector(void)
mov rdx, qword ptr [rsp+1F8h+var_1C8]
mov rdi, [rsp+1F8h+var_10]
mov esi, 2Dh ; '-'
call _ZN7testing8internal11SplitStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcPSt6vectorIS6_SaIS6_EE; testing::internal::SplitString(std::string const&,char,std::vector<std::string> *)
jmp short $+2
loc_FFECF:
lea rdi, [rsp+1F8h+var_28]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5frontEv; std::vector<std::string>::front(void)
mov qword ptr [rsp+1F8h+var_40], rax
lea rdi, [rsp+1F8h+var_28]
call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv; std::vector<std::string>::size(void)
cmp rax, 1
jbe loc_1001AF
mov rdi, qword ptr [rsp+1F8h+var_40]
call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
mov [rsp+1F8h+var_B2], 0
test al, 1
jnz short loc_FFF16
jmp short loc_FFF4D
loc_FFF16:
lea rdi, [rsp+1F8h+var_B1]
mov [rsp+1F8h+var_1E8], rdi; int
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, [rsp+1F8h+var_1E8]
mov [rsp+1F8h+var_B2], 1
lea rsi, _ZN7testingL16kUniversalFilterE; "*"
lea rdi, [rsp+1F8h+var_B1+1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_FFF4B:
jmp short loc_FFF66
loc_FFF4D:
mov rsi, qword ptr [rsp+1F8h+var_40]
lea rdi, [rsp+1F8h+var_B1+1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&)
jmp short $+2
loc_FFF64:
jmp short $+2
loc_FFF66:
lea rdi, [rsp+1F8h+var_90]; int
lea rsi, [rsp+1F8h+var_B1+1]; int
call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilterC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::`anonymous namespace'::UnitTestFilter::UnitTestFilter(std::string const&)
jmp short $+2
loc_FFF7D:
mov rdi, qword ptr [rsp+1F8h+var_1E0]
lea rsi, [rsp+1F8h+var_90]
call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilteraSEOS2_; testing::internal::`anonymous namespace'::UnitTestFilter::operator=(testing::internal::`anonymous namespace'::UnitTestFilter&&)
lea rdi, [rsp+1F8h+var_90]; this
call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilterD2Ev; testing::internal::`anonymous namespace'::UnitTestFilter::~UnitTestFilter()
lea rdi, [rsp+1F8h+var_B1+1]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test [rsp+1F8h+var_B2], 1
jnz short loc_FFFB5
jmp short loc_FFFC2
loc_FFFB5:
lea rdi, [rsp+1F8h+var_B1]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
loc_FFFC2:
lea rdi, [rsp+1F8h+var_28]
mov esi, 1
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm; std::vector<std::string>::operator[](ulong)
mov rsi, rax
lea rdi, [rsp+1F8h+var_D8]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&)
jmp short $+2
loc_FFFE6:
mov qword ptr [rsp+1F8h+var_E0], 2; int
loc_FFFF2:
mov rax, qword ptr [rsp+1F8h+var_E0]
mov qword ptr [rsp+1F8h+var_1F0], rax; int
lea rdi, [rsp+1F8h+var_28]
call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv; std::vector<std::string>::size(void)
mov rcx, rax; int
mov rax, qword ptr [rsp+1F8h+var_1F0]
cmp rax, rcx
jnb loc_100157
lea rdi, [rsp+1F8h+var_120]; int
lea rsi, [rsp+1F8h+var_D8]; int
mov edx, 2Dh ; '-'; int
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_; std::operator+<char>(std::string const&,char)
jmp short $+2
loc_100039:
mov rsi, qword ptr [rsp+1F8h+var_E0]
lea rdi, [rsp+1F8h+var_28]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm; std::vector<std::string>::operator[](ulong)
mov rdx, rax
lea rdi, [rsp+1F8h+var_100]
lea rsi, [rsp+1F8h+var_120]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_; std::operator+<char>(std::string&&,std::string const&)
jmp short $+2
loc_100068:
lea rdi, [rsp+1F8h+var_D8]
lea rsi, [rsp+1F8h+var_100]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
lea rdi, [rsp+1F8h+var_100]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1F8h+var_120]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, qword ptr [rsp+1F8h+var_E0]
add rax, 1
mov qword ptr [rsp+1F8h+var_E0], rax
jmp loc_FFFF2
mov rcx, rax
mov eax, edx
mov [rsp+arg_1C0], rcx
mov [rsp+arg_1BC], eax
jmp loc_1001F1
mov rcx, rax
mov eax, edx
mov [rsp+arg_1C0], rcx
mov [rsp+arg_1BC], eax
jmp short loc_100100
mov rcx, rax
mov eax, edx
mov [rsp+arg_1C0], rcx
mov [rsp+arg_1BC], eax
lea rdi, [rsp+arg_140]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_100100:
test [rsp+arg_13E], 1
jnz short loc_10010C
jmp short loc_100119
loc_10010C:
lea rdi, [rsp+arg_13F]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
loc_100119:
jmp loc_1001F1
mov rcx, rax
mov eax, edx
mov [rsp+arg_1C0], rcx
mov [rsp+arg_1BC], eax
jmp short loc_1001A0
mov rcx, rax
mov eax, edx
mov [rsp+arg_1C0], rcx
mov [rsp+arg_1BC], eax
lea rdi, [rsp+arg_D0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_1001A0
loc_100157:
lea rdi, [rsp+1F8h+var_170]; int
lea rsi, [rsp+1F8h+var_D8]; int
call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilterC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::`anonymous namespace'::UnitTestFilter::UnitTestFilter(std::string const&)
jmp short $+2
loc_10016E:
mov rdi, qword ptr [rsp+1F8h+var_1E0]
add rdi, 50h ; 'P'
lea rsi, [rsp+1F8h+var_170]
call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilteraSEOS2_; testing::internal::`anonymous namespace'::UnitTestFilter::operator=(testing::internal::`anonymous namespace'::UnitTestFilter&&)
lea rdi, [rsp+1F8h+var_170]; this
call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilterD2Ev; testing::internal::`anonymous namespace'::UnitTestFilter::~UnitTestFilter()
lea rdi, [rsp+1F8h+var_D8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_1001DC
loc_1001A0:
lea rdi, [rsp+arg_118]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_1001F1
loc_1001AF:
mov rsi, qword ptr [rsp+1F8h+var_40]; int
lea rdi, [rsp+1F8h+var_1C0]; int
call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilterC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::`anonymous namespace'::UnitTestFilter::UnitTestFilter(std::string const&)
jmp short $+2
loc_1001C3:
mov rdi, qword ptr [rsp+1F8h+var_1E0]
lea rsi, [rsp+1F8h+var_1C0]
call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilteraSEOS2_; testing::internal::`anonymous namespace'::UnitTestFilter::operator=(testing::internal::`anonymous namespace'::UnitTestFilter&&)
lea rdi, [rsp+1F8h+var_1C0]; this
call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilterD2Ev; testing::internal::`anonymous namespace'::UnitTestFilter::~UnitTestFilter()
loc_1001DC:
lea rdi, [rsp+1F8h+var_28]; void *
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
add rsp, 1F8h
retn
loc_1001F1:
lea rdi, [rsp+arg_1C8]; void *
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, [rsp+arg_20]; this
call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilterD2Ev; testing::internal::`anonymous namespace'::UnitTestFilter::~UnitTestFilter()
mov rdi, [rsp+arg_18]; this
call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilterD2Ev; testing::internal::`anonymous namespace'::UnitTestFilter::~UnitTestFilter()
mov rdi, [rsp+arg_1C0]
call __Unwind_Resume
| void testing::internal::`anonymous namespace'::PositiveAndNegativeUnitTestFilter::PositiveAndNegativeUnitTestFilter(
long long a1,
long long a2)
{
long long v2; // rdx
long long v3; // rax
unsigned long long v4; // rcx
int v5; // r8d
int v6; // r9d
long long v7; // rax
void *v8; // [rsp+0h] [rbp-1F8h]
int v9[2]; // [rsp+8h] [rbp-1F0h]
char *v10; // [rsp+10h] [rbp-1E8h]
int v11[20]; // [rsp+38h] [rbp-1C0h] BYREF
int v12[20]; // [rsp+88h] [rbp-170h] BYREF
int v13[8]; // [rsp+D8h] [rbp-120h] BYREF
_QWORD v14[4]; // [rsp+F8h] [rbp-100h] BYREF
int v15[2]; // [rsp+118h] [rbp-E0h]
_QWORD v16[4]; // [rsp+120h] [rbp-D8h] BYREF
char v17; // [rsp+146h] [rbp-B2h]
char v18; // [rsp+147h] [rbp-B1h] BYREF
_QWORD v19[4]; // [rsp+148h] [rbp-B0h] BYREF
char v20[80]; // [rsp+168h] [rbp-90h] BYREF
int v21[2]; // [rsp+1B8h] [rbp-40h]
int v22[6]; // [rsp+1D0h] [rbp-28h] BYREF
long long v23; // [rsp+1E8h] [rbp-10h]
testing::internal::_anonymous_namespace_::UnitTestFilter *v24; // [rsp+1F0h] [rbp-8h]
v24 = (testing::internal::_anonymous_namespace_::UnitTestFilter *)a1;
v23 = a2;
testing::internal::`anonymous namespace'::UnitTestFilter::UnitTestFilter((testing::internal::_anonymous_namespace_::UnitTestFilter *)a1);
testing::internal::`anonymous namespace'::UnitTestFilter::UnitTestFilter((testing::internal::_anonymous_namespace_::UnitTestFilter *)(a1 + 80));
std::vector<std::string>::vector(v22);
testing::internal::SplitString(v23, 45, (long long)v22);
*(_QWORD *)v21 = std::vector<std::string>::front(v22);
if ( (unsigned long long)std::vector<std::string>::size(v22) <= 1 )
{
testing::internal::`anonymous namespace'::UnitTestFilter::UnitTestFilter((long long)v11, *(long long *)v21);
testing::internal::`anonymous namespace'::UnitTestFilter::operator=(a1, v11);
testing::internal::`anonymous namespace'::UnitTestFilter::~UnitTestFilter((testing::internal::_anonymous_namespace_::UnitTestFilter *)v11);
}
else
{
v17 = 0;
if ( std::string::empty(*(long long *)v21) )
{
v10 = &v18;
std::allocator<char>::allocator(&v18, 45LL, v2);
v17 = 1;
std::string::basic_string<std::allocator<char>>((long long)v19, (long long)"*", (long long)&v18);
}
else
{
std::string::basic_string(v19, *(long long *)v21);
}
testing::internal::`anonymous namespace'::UnitTestFilter::UnitTestFilter((long long)v20, (long long)v19);
testing::internal::`anonymous namespace'::UnitTestFilter::operator=(a1, v20);
testing::internal::`anonymous namespace'::UnitTestFilter::~UnitTestFilter((testing::internal::_anonymous_namespace_::UnitTestFilter *)v20);
std::string::~string(v19);
if ( (v17 & 1) != 0 )
std::allocator<char>::~allocator(&v18, v20);
v3 = std::vector<std::string>::operator[](v22, 1LL);
std::string::basic_string(v16, v3);
for ( *(_QWORD *)v15 = 2LL; ; ++*(_QWORD *)v15 )
{
*(_QWORD *)v9 = *(_QWORD *)v15;
v4 = std::vector<std::string>::size(v22);
if ( *(_QWORD *)v9 >= v4 )
break;
std::operator+<char>((int)v13, (int)v16, 45, v4, v5, v6, v8, v9[0], (long long)v10);
v7 = std::vector<std::string>::operator[](v22, *(_QWORD *)v15);
std::operator+<char>(v14, v13, v7);
std::string::operator=(v16, v14);
std::string::~string(v14);
std::string::~string(v13);
}
testing::internal::`anonymous namespace'::UnitTestFilter::UnitTestFilter((long long)v12, (long long)v16);
testing::internal::`anonymous namespace'::UnitTestFilter::operator=(a1 + 80, v12);
testing::internal::`anonymous namespace'::UnitTestFilter::~UnitTestFilter((testing::internal::_anonymous_namespace_::UnitTestFilter *)v12);
std::string::~string(v16);
}
std::vector<std::string>::~vector(v22);
}
| PositiveAndNegativeUnitTestFilter:
SUB RSP,0x1f8
MOV qword ptr [RSP + 0x1f0],RDI
MOV qword ptr [RSP + 0x1e8],RSI
MOV RDI,qword ptr [RSP + 0x1f0]
MOV qword ptr [RSP + 0x20],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x18],RAX
CALL 0x0021ed80
MOV RDI,qword ptr [RSP + 0x20]
ADD RDI,0x50
MOV qword ptr [RSP + 0x28],RDI
CALL 0x0021ed80
LEA RDI,[RSP + 0x1d0]
MOV qword ptr [RSP + 0x30],RDI
CALL 0x002240e0
MOV RDX,qword ptr [RSP + 0x30]
MOV RDI,qword ptr [RSP + 0x1e8]
LAB_001ffec3:
MOV ESI,0x2d
CALL 0x001f72c0
JMP 0x001ffecf
LAB_001ffecf:
LEA RDI,[RSP + 0x1d0]
CALL 0x00232fc0
MOV qword ptr [RSP + 0x1b8],RAX
LEA RDI,[RSP + 0x1d0]
CALL 0x002240f0
CMP RAX,0x1
JBE 0x002001af
MOV RDI,qword ptr [RSP + 0x1b8]
CALL 0x0017bfe0
MOV byte ptr [RSP + 0x146],0x0
TEST AL,0x1
JNZ 0x001fff16
JMP 0x001fff4d
LAB_001fff16:
LEA RDI,[RSP + 0x147]
MOV qword ptr [RSP + 0x10],RDI
CALL 0x00115de0
MOV RDX,qword ptr [RSP + 0x10]
MOV byte ptr [RSP + 0x146],0x1
LAB_001fff35:
LEA RSI,[0x253bb0]
LEA RDI,[RSP + 0x148]
CALL 0x0011bd40
JMP 0x001fff4b
LAB_001fff4b:
JMP 0x001fff66
LAB_001fff4d:
MOV RSI,qword ptr [RSP + 0x1b8]
LEA RDI,[RSP + 0x148]
CALL 0x0011fe60
JMP 0x001fff64
LAB_001fff64:
JMP 0x001fff66
LAB_001fff66:
LEA RDI,[RSP + 0x168]
LEA RSI,[RSP + 0x148]
CALL 0x001ff9f0
JMP 0x001fff7d
LAB_001fff7d:
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[RSP + 0x168]
CALL 0x0021edb0
LEA RDI,[RSP + 0x168]
CALL 0x001ffda0
LEA RDI,[RSP + 0x148]
CALL 0x0011c160
TEST byte ptr [RSP + 0x146],0x1
JNZ 0x001fffb5
JMP 0x001fffc2
LAB_001fffb5:
LEA RDI,[RSP + 0x147]
CALL 0x001157f0
LAB_001fffc2:
LEA RDI,[RSP + 0x1d0]
MOV ESI,0x1
CALL 0x00224270
MOV RSI,RAX
LAB_001fffd7:
LEA RDI,[RSP + 0x120]
CALL 0x0011fe60
JMP 0x001fffe6
LAB_001fffe6:
MOV qword ptr [RSP + 0x118],0x2
LAB_001ffff2:
MOV RAX,qword ptr [RSP + 0x118]
MOV qword ptr [RSP + 0x8],RAX
LEA RDI,[RSP + 0x1d0]
CALL 0x002240f0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x8]
CMP RAX,RCX
JNC 0x00200157
LAB_0020001d:
LEA RDI,[RSP + 0xd8]
LEA RSI,[RSP + 0x120]
MOV EDX,0x2d
CALL 0x00224470
JMP 0x00200039
LAB_00200039:
MOV RSI,qword ptr [RSP + 0x118]
LEA RDI,[RSP + 0x1d0]
CALL 0x00224270
MOV RDX,RAX
LAB_00200051:
LEA RDI,[RSP + 0xf8]
LEA RSI,[RSP + 0xd8]
CALL 0x00224420
JMP 0x00200068
LAB_00200068:
LEA RDI,[RSP + 0x120]
LEA RSI,[RSP + 0xf8]
CALL 0x0017b740
LEA RDI,[RSP + 0xf8]
CALL 0x0011c160
LEA RDI,[RSP + 0xd8]
CALL 0x0011c160
MOV RAX,qword ptr [RSP + 0x118]
ADD RAX,0x1
MOV qword ptr [RSP + 0x118],RAX
JMP 0x001ffff2
LAB_00200157:
LEA RDI,[RSP + 0x88]
LEA RSI,[RSP + 0x120]
CALL 0x001ff9f0
JMP 0x0020016e
LAB_0020016e:
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x50
LEA RSI,[RSP + 0x88]
CALL 0x0021edb0
LEA RDI,[RSP + 0x88]
CALL 0x001ffda0
LEA RDI,[RSP + 0x120]
CALL 0x0011c160
JMP 0x002001dc
LAB_002001af:
MOV RSI,qword ptr [RSP + 0x1b8]
LAB_002001b7:
LEA RDI,[RSP + 0x38]
CALL 0x001ff9f0
LAB_002001c1:
JMP 0x002001c3
LAB_002001c3:
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[RSP + 0x38]
CALL 0x0021edb0
LEA RDI,[RSP + 0x38]
CALL 0x001ffda0
LAB_002001dc:
LEA RDI,[RSP + 0x1d0]
CALL 0x00223ed0
ADD RSP,0x1f8
RET
|
/* testing::internal::(anonymous
namespace)::PositiveAndNegativeUnitTestFilter::PositiveAndNegativeUnitTestFilter(std::__cxx11::string
const&) */
void __thiscall
testing::internal::(anonymous_namespace)::PositiveAndNegativeUnitTestFilter::
PositiveAndNegativeUnitTestFilter(PositiveAndNegativeUnitTestFilter *this,string *param_1)
{
ulong uVar1;
string *psVar2;
ulong uVar3;
UnitTestFilter local_1c0 [80];
UnitTestFilter local_170 [80];
string local_120 [32];
string local_100 [32];
ulong local_e0;
string local_d8 [38];
byte local_b2;
allocator local_b1;
string local_b0 [32];
UnitTestFilter local_90 [80];
string *local_40;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_28 [24];
string *local_10;
PositiveAndNegativeUnitTestFilter *local_8;
local_10 = param_1;
local_8 = this;
UnitTestFilter::UnitTestFilter((UnitTestFilter *)this);
UnitTestFilter::UnitTestFilter((UnitTestFilter *)(this + 0x50));
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector(local_28);
/* try { // try from 001ffec3 to 001ffecc has its CatchHandler @ 002000b0 */
SplitString(local_10,'-',(vector *)local_28);
local_40 = (string *)
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::front(local_28)
;
uVar1 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::size(local_28);
if (uVar1 < 2) {
/* try { // try from 002001b7 to 002001c0 has its CatchHandler @ 002000b0 */
UnitTestFilter::UnitTestFilter(local_1c0,local_40);
UnitTestFilter::operator=((UnitTestFilter *)this,local_1c0);
UnitTestFilter::~UnitTestFilter(local_1c0);
}
else {
uVar1 = std::__cxx11::string::empty(local_40);
local_b2 = 0;
if ((uVar1 & 1) == 0) {
std::__cxx11::string::string(local_b0,local_40);
}
else {
std::allocator<char>::allocator();
local_b2 = 1;
/* try { // try from 001fff35 to 001fff61 has its CatchHandler @ 002000c9 */
std::__cxx11::string::string<std::allocator<char>>(local_b0,"*",&local_b1);
}
/* try { // try from 001fff66 to 001fff7a has its CatchHandler @ 002000df */
UnitTestFilter::UnitTestFilter(local_90,local_b0);
UnitTestFilter::operator=((UnitTestFilter *)this,local_90);
UnitTestFilter::~UnitTestFilter(local_90);
std::__cxx11::string::~string(local_b0);
if ((local_b2 & 1) != 0) {
std::allocator<char>::~allocator((allocator<char> *)&local_b1);
}
psVar2 = (string *)
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::operator[]
(local_28,1);
/* try { // try from 001fffd7 to 001fffe3 has its CatchHandler @ 002000b0 */
std::__cxx11::string::string(local_d8,psVar2);
for (local_e0 = 2; uVar1 = local_e0,
uVar3 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::size
(local_28), uVar1 < uVar3; local_e0 = local_e0 + 1) {
/* try { // try from 0020001d to 00200036 has its CatchHandler @ 0020011e */
std::operator+(local_120,(char)local_d8);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::operator[]
(local_28,local_e0);
/* try { // try from 00200051 to 00200065 has its CatchHandler @ 00200134 */
std::operator+(local_100,local_120);
std::__cxx11::string::operator=(local_d8,local_100);
std::__cxx11::string::~string(local_100);
std::__cxx11::string::~string(local_120);
}
/* try { // try from 00200157 to 0020016b has its CatchHandler @ 0020011e */
UnitTestFilter::UnitTestFilter(local_170,local_d8);
UnitTestFilter::operator=((UnitTestFilter *)(this + 0x50),local_170);
UnitTestFilter::~UnitTestFilter(local_170);
std::__cxx11::string::~string(local_d8);
}
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(local_28);
return;
}
| |
45,737 | rtree_get_next | eloqsql/storage/myisam/rt_index.c | int rtree_get_next(MI_INFO *info, uint keynr, uint key_length)
{
my_off_t root= info->s->state.key_root[keynr];
MI_KEYDEF *keyinfo = info->s->keyinfo + keynr;
if (root == HA_OFFSET_ERROR)
{
my_errno= HA_ERR_END_OF_FILE;
return -1;
}
if (!info->buff_used && !info->page_changed)
{
uint k_len = keyinfo->keylength - info->s->base.rec_reflength;
/* rt_PAGE_NEXT_KEY(info->int_keypos) */
uchar *key = info->buff + *(int*)info->int_keypos + k_len +
info->s->base.rec_reflength;
/* rt_PAGE_NEXT_KEY(key) */
uchar *after_key = key + k_len + info->s->base.rec_reflength;
info->lastpos = _mi_dpos(info, 0, after_key);
info->lastkey_length = k_len + info->s->base.rec_reflength;
memcpy(info->lastkey, key, k_len + info->s->base.rec_reflength);
*(uint*)info->int_keypos = (uint) (key - info->buff);
if (after_key >= info->int_maxpos)
{
info->buff_used = 1;
}
return 0;
}
return rtree_get_req(info, keyinfo, key_length, root, 0);
} | O0 | c | rtree_get_next:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x98(%rax), %rax
movl -0x14(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x218(%rax), %rax
movl -0x14(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
cmpq $-0x1, -0x20(%rbp)
jne 0xca825
callq 0xf7440
movl $0x89, (%rax)
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xca972
movq -0x10(%rbp), %rax
cmpb $0x0, 0x33d(%rax)
jne 0xca958
movq -0x10(%rbp), %rax
cmpb $0x0, 0x33c(%rax)
jne 0xca958
movq -0x28(%rbp), %rax
movzwl 0x12(%rax), %eax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
subl 0x178(%rcx), %eax
movl %eax, -0x2c(%rbp)
movq -0x10(%rbp), %rax
movq 0x100(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x128(%rcx), %rcx
movslq (%rcx), %rcx
addq %rcx, %rax
movl -0x2c(%rbp), %ecx
addq %rcx, %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
movl 0x178(%rcx), %ecx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
addq %rcx, %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
movl 0x178(%rcx), %ecx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x40(%rbp), %rdx
xorl %esi, %esi
callq 0xc05c0
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x170(%rax)
movl -0x2c(%rbp), %ecx
movq -0x10(%rbp), %rax
movq (%rax), %rax
addl 0x178(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x1d8(%rax)
movq -0x10(%rbp), %rax
movq 0x108(%rax), %rdi
movq -0x38(%rbp), %rsi
movl -0x2c(%rbp), %eax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
addl 0x178(%rcx), %eax
movl %eax, %eax
movl %eax, %edx
callq 0x2a090
movq -0x38(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0x100(%rcx), %rcx
subq %rcx, %rax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movq 0x128(%rax), %rax
movl %ecx, (%rax)
movq -0x40(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x130(%rcx), %rax
jb 0xca94f
movq -0x10(%rbp), %rax
movb $0x1, 0x33d(%rax)
movl $0x0, -0x4(%rbp)
jmp 0xca972
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
movl -0x18(%rbp), %edx
movq -0x20(%rbp), %rcx
xorl %r8d, %r8d
callq 0xca340
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| rtree_get_next:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+98h]
mov ecx, [rbp+var_14]
mov rax, [rax+rcx*8]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+218h]
mov ecx, [rbp+var_14]
imul rcx, 70h ; 'p'
add rax, rcx
mov [rbp+var_28], rax
cmp [rbp+var_20], 0FFFFFFFFFFFFFFFFh
jnz short loc_CA825
call _my_thread_var
mov dword ptr [rax], 89h
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_CA972
loc_CA825:
mov rax, [rbp+var_10]
cmp byte ptr [rax+33Dh], 0
jnz loc_CA958
mov rax, [rbp+var_10]
cmp byte ptr [rax+33Ch], 0
jnz loc_CA958
mov rax, [rbp+var_28]
movzx eax, word ptr [rax+12h]
mov rcx, [rbp+var_10]
mov rcx, [rcx]
sub eax, [rcx+178h]
mov [rbp+var_2C], eax
mov rax, [rbp+var_10]
mov rax, [rax+100h]
mov rcx, [rbp+var_10]
mov rcx, [rcx+128h]
movsxd rcx, dword ptr [rcx]
add rax, rcx
mov ecx, [rbp+var_2C]
add rax, rcx
mov rcx, [rbp+var_10]
mov rcx, [rcx]
mov ecx, [rcx+178h]
add rax, rcx
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
mov ecx, [rbp+var_2C]
add rax, rcx
mov rcx, [rbp+var_10]
mov rcx, [rcx]
mov ecx, [rcx+178h]
add rax, rcx
mov [rbp+var_40], rax
mov rdi, [rbp+var_10]
mov rdx, [rbp+var_40]
xor esi, esi
call _mi_dpos
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+170h], rcx
mov ecx, [rbp+var_2C]
mov rax, [rbp+var_10]
mov rax, [rax]
add ecx, [rax+178h]
mov rax, [rbp+var_10]
mov [rax+1D8h], ecx
mov rax, [rbp+var_10]
mov rdi, [rax+108h]
mov rsi, [rbp+var_38]
mov eax, [rbp+var_2C]
mov rcx, [rbp+var_10]
mov rcx, [rcx]
add eax, [rcx+178h]
mov eax, eax
mov edx, eax
call _memcpy
mov rax, [rbp+var_38]
mov rcx, [rbp+var_10]
mov rcx, [rcx+100h]
sub rax, rcx
mov ecx, eax
mov rax, [rbp+var_10]
mov rax, [rax+128h]
mov [rax], ecx
mov rax, [rbp+var_40]
mov rcx, [rbp+var_10]
cmp rax, [rcx+130h]
jb short loc_CA94F
mov rax, [rbp+var_10]
mov byte ptr [rax+33Dh], 1
loc_CA94F:
mov [rbp+var_4], 0
jmp short loc_CA972
loc_CA958:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_28]
mov edx, [rbp+var_18]
mov rcx, [rbp+var_20]
xor r8d, r8d
call rtree_get_req
mov [rbp+var_4], eax
loc_CA972:
mov eax, [rbp+var_4]
add rsp, 40h
pop rbp
retn
| long long rtree_get_next(long long a1, const char *a2, unsigned int a3)
{
unsigned long long v4; // [rsp+0h] [rbp-40h]
long long v5; // [rsp+8h] [rbp-38h]
unsigned int v6; // [rsp+14h] [rbp-2Ch]
long long v7; // [rsp+18h] [rbp-28h]
long long v8; // [rsp+20h] [rbp-20h]
v8 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)a1 + 152LL) + 8LL * (unsigned int)a2);
v7 = 112LL * (unsigned int)a2 + *(_QWORD *)(*(_QWORD *)a1 + 536LL);
if ( v8 == -1 )
{
*(_DWORD *)my_thread_var(a1, a2) = 137;
return (unsigned int)-1;
}
else if ( *(_BYTE *)(a1 + 829) || *(_BYTE *)(a1 + 828) )
{
return (unsigned int)rtree_get_req((_QWORD *)a1, v7, a3, v8, 0);
}
else
{
v6 = *(unsigned __int16 *)(v7 + 18) - *(_DWORD *)(*(_QWORD *)a1 + 376LL);
v5 = *(unsigned int *)(*(_QWORD *)a1 + 376LL) + v6 + **(int **)(a1 + 296) + *(_QWORD *)(a1 + 256);
v4 = *(unsigned int *)(*(_QWORD *)a1 + 376LL) + v6 + v5;
*(_QWORD *)(a1 + 368) = mi_dpos(a1, 0, v4);
*(_DWORD *)(a1 + 472) = *(_DWORD *)(*(_QWORD *)a1 + 376LL) + v6;
memcpy(*(_QWORD *)(a1 + 264), v5, *(_DWORD *)(*(_QWORD *)a1 + 376LL) + v6);
**(_DWORD **)(a1 + 296) = v5 - *(_QWORD *)(a1 + 256);
if ( v4 >= *(_QWORD *)(a1 + 304) )
*(_BYTE *)(a1 + 829) = 1;
return 0;
}
}
| rtree_get_next:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x98]
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x218]
MOV ECX,dword ptr [RBP + -0x14]
IMUL RCX,RCX,0x70
ADD RAX,RCX
MOV qword ptr [RBP + -0x28],RAX
CMP qword ptr [RBP + -0x20],-0x1
JNZ 0x001ca825
CALL 0x001f7440
MOV dword ptr [RAX],0x89
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x001ca972
LAB_001ca825:
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX + 0x33d],0x0
JNZ 0x001ca958
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX + 0x33c],0x0
JNZ 0x001ca958
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,word ptr [RAX + 0x12]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
SUB EAX,dword ptr [RCX + 0x178]
MOV dword ptr [RBP + -0x2c],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x100]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x128]
MOVSXD RCX,dword ptr [RCX]
ADD RAX,RCX
MOV ECX,dword ptr [RBP + -0x2c]
ADD RAX,RCX
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
MOV ECX,dword ptr [RCX + 0x178]
ADD RAX,RCX
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RBP + -0x2c]
ADD RAX,RCX
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
MOV ECX,dword ptr [RCX + 0x178]
ADD RAX,RCX
MOV qword ptr [RBP + -0x40],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x40]
XOR ESI,ESI
CALL 0x001c05c0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x170],RCX
MOV ECX,dword ptr [RBP + -0x2c]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
ADD ECX,dword ptr [RAX + 0x178]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x1d8],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x108]
MOV RSI,qword ptr [RBP + -0x38]
MOV EAX,dword ptr [RBP + -0x2c]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
ADD EAX,dword ptr [RCX + 0x178]
MOV EAX,EAX
MOV EDX,EAX
CALL 0x0012a090
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x100]
SUB RAX,RCX
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x128]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x130]
JC 0x001ca94f
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x33d],0x1
LAB_001ca94f:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001ca972
LAB_001ca958:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x28]
MOV EDX,dword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
XOR R8D,R8D
CALL 0x001ca340
MOV dword ptr [RBP + -0x4],EAX
LAB_001ca972:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x40
POP RBP
RET
|
int4 rtree_get_next(long *param_1,uint param_2,int4 param_3)
{
uint uVar1;
long lVar2;
int4 *puVar3;
void *__src;
ulong uVar4;
long lVar5;
int4 local_c;
lVar5 = *(long *)(*(long *)(*param_1 + 0x98) + (ulong)param_2 * 8);
lVar2 = *(long *)(*param_1 + 0x218) + (ulong)param_2 * 0x70;
if (lVar5 == -1) {
puVar3 = (int4 *)_my_thread_var();
*puVar3 = 0x89;
local_c = 0xffffffff;
}
else if ((*(char *)((long)param_1 + 0x33d) == '\0') && (*(char *)((long)param_1 + 0x33c) == '\0'))
{
uVar1 = (uint)*(ushort *)(lVar2 + 0x12) - *(int *)(*param_1 + 0x178);
__src = (void *)(param_1[0x20] + (long)*(int *)param_1[0x25] + (ulong)uVar1 +
(ulong)*(uint *)(*param_1 + 0x178));
uVar4 = (long)__src + (ulong)*(uint *)(*param_1 + 0x178) + (ulong)uVar1;
lVar5 = _mi_dpos(param_1,0,uVar4);
param_1[0x2e] = lVar5;
*(uint *)(param_1 + 0x3b) = uVar1 + *(int *)(*param_1 + 0x178);
memcpy((void *)param_1[0x21],__src,(ulong)(uVar1 + *(int *)(*param_1 + 0x178)));
*(int *)param_1[0x25] = (int)__src - (int)param_1[0x20];
if ((ulong)param_1[0x26] <= uVar4) {
*(int1 *)((long)param_1 + 0x33d) = 1;
}
local_c = 0;
}
else {
local_c = rtree_get_req(param_1,lVar2,param_3,lVar5,0);
}
return local_c;
}
| |
45,738 | minja::Value::array(std::vector<minja::Value, std::allocator<minja::Value>>) | monkey531[P]llama/common/minja.hpp | static Value array(const std::vector<Value> values = {}) {
auto array = std::make_shared<ArrayType>();
for (const auto& item : values) {
array->push_back(item);
}
return Value(array);
} | O3 | cpp | minja::Value::array(std::vector<minja::Value, std::allocator<minja::Value>>):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r13
movq %rdi, %rbx
movl $0x28, %edi
callq 0x1a8b0
movq %rax, %r14
movabsq $0x100000001, %rax # imm = 0x100000001
movq %rax, 0x8(%r14)
leaq 0x9ba6b(%rip), %rax # 0x12a498
addq $0x10, %rax
movq %rax, (%r14)
leaq 0x10(%r14), %r15
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r14)
movq $0x0, 0x20(%r14)
movq %r14, 0x8(%rsp)
movq %r15, (%rsp)
movq (%r13), %r12
movq 0x8(%r13), %r13
cmpq %r13, %r12
je 0x8ea6f
movq %r15, %rdi
movq %r12, %rsi
callq 0x8eba0
addq $0x50, %r12
jmp 0x8ea59
movq %rsp, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8ebcc
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0x8ea8b
callq 0x6e096
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %r14, %rdi
callq 0x6e096
movq %rbx, %rdi
callq 0x1afb0
nop
| _ZN5minja5Value5arrayESt6vectorIS0_SaIS0_EE:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 10h
mov r13, rsi
mov rbx, rdi
mov edi, 28h ; '('; unsigned __int64
call __Znwm; operator new(ulong)
mov r14, rax
mov rax, 100000001h
mov [r14+8], rax
lea rax, _ZTVSt23_Sp_counted_ptr_inplaceISt6vectorIN5minja5ValueESaIS2_EESaIS4_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<std::vector<minja::Value>,std::allocator<std::vector<minja::Value>>,(__gnu_cxx::_Lock_policy)2>
add rax, 10h
mov [r14], rax
lea r15, [r14+10h]
xorps xmm0, xmm0
movups xmmword ptr [r14+10h], xmm0
mov qword ptr [r14+20h], 0
mov [rsp+38h+var_30], r14
mov [rsp+38h+var_38], r15
mov r12, [r13+0]
mov r13, [r13+8]
loc_8EA59:
cmp r12, r13
jz short loc_8EA6F
mov rdi, r15
mov rsi, r12
call _ZNSt6vectorIN5minja5ValueESaIS1_EE9push_backERKS1_; std::vector<minja::Value>::push_back(minja::Value const&)
add r12, 50h ; 'P'
jmp short loc_8EA59
loc_8EA6F:
mov r14, rsp
mov rdi, rbx
mov rsi, r14
call _ZN5minja5ValueC2ERKSt10shared_ptrISt6vectorIS0_SaIS0_EEE; minja::Value::Value(std::shared_ptr<std::vector<minja::Value>> const&)
mov rdi, [r14+8]
test rdi, rdi
jz short loc_8EA8B
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8EA8B:
mov rax, rbx
add rsp, 10h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov rbx, rax
mov rdi, r14
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
mov rdi, rbx
call __Unwind_Resume
| long long minja::Value::array(long long a1, long long *a2)
{
long long v2; // r14
long long v3; // r12
long long v4; // r13
long long v6; // [rsp+0h] [rbp-38h] BYREF
volatile signed __int32 *v7; // [rsp+8h] [rbp-30h]
v2 = operator new(0x28uLL);
*(_QWORD *)(v2 + 8) = 0x100000001LL;
*(_QWORD *)v2 = &`vtable for'std::_Sp_counted_ptr_inplace<std::vector<minja::Value>,std::allocator<std::vector<minja::Value>>,(__gnu_cxx::_Lock_policy)2>
+ 2;
*(_OWORD *)(v2 + 16) = 0LL;
*(_QWORD *)(v2 + 32) = 0LL;
v7 = (volatile signed __int32 *)v2;
v6 = v2 + 16;
v3 = *a2;
v4 = a2[1];
while ( v3 != v4 )
{
std::vector<minja::Value>::push_back(v2 + 16, v3);
v3 += 80LL;
}
minja::Value::Value(a1, &v6);
if ( v7 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v7);
return a1;
}
| array:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV R13,RSI
MOV RBX,RDI
MOV EDI,0x28
CALL 0x0011a8b0
MOV R14,RAX
MOV RAX,0x100000001
MOV qword ptr [R14 + 0x8],RAX
LEA RAX,[0x22a498]
ADD RAX,0x10
MOV qword ptr [R14],RAX
LEA R15,[R14 + 0x10]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R14 + 0x10],XMM0
MOV qword ptr [R14 + 0x20],0x0
MOV qword ptr [RSP + 0x8],R14
MOV qword ptr [RSP],R15
MOV R12,qword ptr [R13]
MOV R13,qword ptr [R13 + 0x8]
LAB_0018ea59:
CMP R12,R13
JZ 0x0018ea6f
LAB_0018ea5e:
MOV RDI,R15
MOV RSI,R12
CALL 0x0018eba0
LAB_0018ea69:
ADD R12,0x50
JMP 0x0018ea59
LAB_0018ea6f:
MOV R14,RSP
MOV RDI,RBX
MOV RSI,R14
CALL 0x0018ebcc
MOV RDI,qword ptr [R14 + 0x8]
TEST RDI,RDI
JZ 0x0018ea8b
CALL 0x0016e096
LAB_0018ea8b:
MOV RAX,RBX
ADD RSP,0x10
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* minja::Value::array(std::vector<minja::Value, std::allocator<minja::Value> >) */
Value * __thiscall minja::Value::array(Value *this,int8 *param_2)
{
vector<minja::Value,std::allocator<minja::Value>> *this_00;
Value *pVVar1;
Value *pVVar2;
vector<minja::Value,std::allocator<minja::Value>> *local_38;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_30;
local_30 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)operator_new(0x28);
*(int8 *)(local_30 + 8) = 0x100000001;
*(int ***)local_30 = &PTR___Sp_counted_ptr_inplace_0022a4a8;
this_00 = (vector<minja::Value,std::allocator<minja::Value>> *)(local_30 + 0x10);
*(int8 *)(local_30 + 0x10) = 0;
*(int8 *)(local_30 + 0x18) = 0;
*(int8 *)(local_30 + 0x20) = 0;
pVVar1 = (Value *)param_2[1];
local_38 = this_00;
for (pVVar2 = (Value *)*param_2; pVVar2 != pVVar1; pVVar2 = pVVar2 + 0x50) {
/* try { // try from 0018ea5e to 0018ea68 has its CatchHandler @ 0018ea9c */
std::vector<minja::Value,std::allocator<minja::Value>>::push_back(this_00,pVVar2);
}
Value(this,(shared_ptr *)&local_38);
if (local_30 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_30);
}
return this;
}
| |
45,739 | tailoring_append2 | eloqsql/strings/ctype.c | static int
tailoring_append2(MY_XML_PARSER *st,
const char *fmt,
size_t len1, const char *attr1,
size_t len2, const char *attr2)
{
struct my_cs_file_info *i= (struct my_cs_file_info *) st->user_data;
size_t newlen= i->tailoring_length + len1 + len2 + 64; /* 64 for format */
if (MY_XML_OK == my_charset_file_tailoring_realloc(i, newlen))
{
char *dst= i->tailoring + i->tailoring_length;
sprintf(dst, fmt, (int) len1, attr1, (int) len2, attr2);
i->tailoring_length+= strlen(dst);
return MY_XML_OK;
}
return MY_XML_ERROR;
} | O0 | c | tailoring_append2:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq 0x140(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq 0x690(%rax), %rax
addq -0x20(%rbp), %rax
addq -0x30(%rbp), %rax
addq $0x40, %rax
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x6e800
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x6ebf4
movq -0x40(%rbp), %rax
movq 0x688(%rax), %rax
movq -0x40(%rbp), %rcx
addq 0x690(%rcx), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rax
movl %eax, %edx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %rax
movl %eax, %r8d
movq -0x38(%rbp), %r9
movb $0x0, %al
callq 0x240b0
movq -0x50(%rbp), %rdi
callq 0x24120
movq %rax, %rcx
movq -0x40(%rbp), %rax
addq 0x690(%rax), %rcx
movq %rcx, 0x690(%rax)
movl $0x0, -0x4(%rbp)
jmp 0x6ebfb
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| tailoring_append2:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov [rbp+var_38], r9
mov rax, [rbp+var_10]
mov rax, [rax+140h]
mov [rbp+var_40], rax
mov rax, [rbp+var_40]
mov rax, [rax+690h]
add rax, [rbp+var_20]
add rax, [rbp+var_30]
add rax, 40h ; '@'
mov [rbp+var_48], rax
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_48]
call my_charset_file_tailoring_realloc
mov ecx, eax
xor eax, eax
cmp eax, ecx
jnz short loc_6EBF4
mov rax, [rbp+var_40]
mov rax, [rax+688h]
mov rcx, [rbp+var_40]
add rax, [rcx+690h]
mov [rbp+var_50], rax
mov rdi, [rbp+var_50]
mov rsi, [rbp+var_18]
mov rax, [rbp+var_20]
mov edx, eax
mov rcx, [rbp+var_28]
mov rax, [rbp+var_30]
mov r8d, eax
mov r9, [rbp+var_38]
mov al, 0
call _sprintf
mov rdi, [rbp+var_50]
call _strlen
mov rcx, rax
mov rax, [rbp+var_40]
add rcx, [rax+690h]
mov [rax+690h], rcx
mov [rbp+var_4], 0
jmp short loc_6EBFB
loc_6EBF4:
mov [rbp+var_4], 1
loc_6EBFB:
mov eax, [rbp+var_4]
add rsp, 50h
pop rbp
retn
| long long tailoring_append2(long long a1, const char *a2, long long a3, long long a4, long long a5, long long a6)
{
long long v7; // [rsp+0h] [rbp-50h]
_QWORD *v8; // [rsp+10h] [rbp-40h]
unsigned int v10; // [rsp+20h] [rbp-30h]
unsigned int v12; // [rsp+30h] [rbp-20h]
v12 = a3;
v10 = a5;
v8 = *(_QWORD **)(a1 + 320);
if ( (unsigned int)my_charset_file_tailoring_realloc(v8, a5 + a3 + v8[210] + 64) )
{
return 1;
}
else
{
v7 = v8[210] + v8[209];
sprintf(v7, a2, v12, a4, v10, a6);
v8[210] += strlen(v7);
return 0;
}
}
| tailoring_append2:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
MOV qword ptr [RBP + -0x38],R9
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x140]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX + 0x690]
ADD RAX,qword ptr [RBP + -0x20]
ADD RAX,qword ptr [RBP + -0x30]
ADD RAX,0x40
MOV qword ptr [RBP + -0x48],RAX
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x48]
CALL 0x0016e800
MOV ECX,EAX
XOR EAX,EAX
CMP EAX,ECX
JNZ 0x0016ebf4
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX + 0x688]
MOV RCX,qword ptr [RBP + -0x40]
ADD RAX,qword ptr [RCX + 0x690]
MOV qword ptr [RBP + -0x50],RAX
MOV RDI,qword ptr [RBP + -0x50]
MOV RSI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x20]
MOV EDX,EAX
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x30]
MOV R8D,EAX
MOV R9,qword ptr [RBP + -0x38]
MOV AL,0x0
CALL 0x001240b0
MOV RDI,qword ptr [RBP + -0x50]
CALL 0x00124120
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x40]
ADD RCX,qword ptr [RAX + 0x690]
MOV qword ptr [RAX + 0x690],RCX
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0016ebfb
LAB_0016ebf4:
MOV dword ptr [RBP + -0x4],0x1
LAB_0016ebfb:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x50
POP RBP
RET
|
bool tailoring_append2(long param_1,char *param_2,ulong param_3,int8 param_4,ulong param_5,
int8 param_6)
{
long lVar1;
int iVar2;
char *__s;
size_t sVar3;
lVar1 = *(long *)(param_1 + 0x140);
iVar2 = my_charset_file_tailoring_realloc
(lVar1,*(long *)(lVar1 + 0x690) + param_3 + param_5 + 0x40);
if (iVar2 == 0) {
__s = (char *)(*(long *)(lVar1 + 0x688) + *(long *)(lVar1 + 0x690));
sprintf(__s,param_2,param_3 & 0xffffffff,param_4,param_5 & 0xffffffff,param_6);
sVar3 = strlen(__s);
*(size_t *)(lVar1 + 0x690) = sVar3 + *(long *)(lVar1 + 0x690);
}
return iVar2 != 0;
}
| |
45,740 | my_wc_mb_utf8mb4 | eloqsql/strings/ctype-utf8.c | static int
my_wc_mb_utf8mb4(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *r, uchar *e)
{
int count;
if (r >= e)
return MY_CS_TOOSMALL;
if (wc < 0x80)
count= 1;
else if (wc < 0x800)
count= 2;
else if (wc < 0x10000)
count= 3;
else if (wc < 0x200000)
count= 4;
else return MY_CS_ILUNI;
if (r + count > e)
return MY_CS_TOOSMALLN(count);
switch (count) {
case 4: r[3] = (uchar) (0x80 | (wc & 0x3f)); wc = wc >> 6; wc |= 0x10000;
/* fall through */
case 3: r[2] = (uchar) (0x80 | (wc & 0x3f)); wc = wc >> 6; wc |= 0x800;
/* fall through */
case 2: r[1] = (uchar) (0x80 | (wc & 0x3f)); wc = wc >> 6; wc |= 0xc0;
/* fall through */
case 1: r[0] = (uchar) wc;
}
return count;
} | O0 | c | my_wc_mb_utf8mb4:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jb 0xc3aca
movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B
jmp 0xc3c16
cmpq $0x80, -0x18(%rbp)
jae 0xc3add
movl $0x1, -0x2c(%rbp)
jmp 0xc3b28
cmpq $0x800, -0x18(%rbp) # imm = 0x800
jae 0xc3af0
movl $0x2, -0x2c(%rbp)
jmp 0xc3b26
cmpq $0x10000, -0x18(%rbp) # imm = 0x10000
jae 0xc3b03
movl $0x3, -0x2c(%rbp)
jmp 0xc3b24
cmpq $0x200000, -0x18(%rbp) # imm = 0x200000
jae 0xc3b16
movl $0x4, -0x2c(%rbp)
jmp 0xc3b22
movl $0x0, -0x4(%rbp)
jmp 0xc3c16
jmp 0xc3b24
jmp 0xc3b26
jmp 0xc3b28
movq -0x20(%rbp), %rax
movslq -0x2c(%rbp), %rcx
addq %rcx, %rax
cmpq -0x28(%rbp), %rax
jbe 0xc3b49
movl $0xffffff9c, %eax # imm = 0xFFFFFF9C
subl -0x2c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0xc3c16
movl -0x2c(%rbp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x38(%rbp)
subl $0x3, %eax
ja 0xc3c10
movq -0x38(%rbp), %rax
leaq 0x14fdf8(%rip), %rcx # 0x213960
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x18(%rbp), %rax
andq $0x3f, %rax
orq $0x80, %rax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x18(%rbp), %rax
shrq $0x6, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
orq $0x10000, %rax # imm = 0x10000
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
andq $0x3f, %rax
orq $0x80, %rax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, 0x2(%rax)
movq -0x18(%rbp), %rax
shrq $0x6, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
orq $0x800, %rax # imm = 0x800
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
andq $0x3f, %rax
orq $0x80, %rax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x18(%rbp), %rax
shrq $0x6, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
orq $0xc0, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, (%rax)
movl -0x2c(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax,%rax)
| my_wc_mb_utf8mb4:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_20]
cmp rax, [rbp+var_28]
jb short loc_C3ACA
mov [rbp+var_4], 0FFFFFF9Bh
jmp loc_C3C16
loc_C3ACA:
cmp [rbp+var_18], 80h
jnb short loc_C3ADD
mov [rbp+var_2C], 1
jmp short loc_C3B28
loc_C3ADD:
cmp [rbp+var_18], 800h
jnb short loc_C3AF0
mov [rbp+var_2C], 2
jmp short loc_C3B26
loc_C3AF0:
cmp [rbp+var_18], 10000h
jnb short loc_C3B03
mov [rbp+var_2C], 3
jmp short loc_C3B24
loc_C3B03:
cmp [rbp+var_18], offset off_200000
jnb short loc_C3B16
mov [rbp+var_2C], 4
jmp short loc_C3B22
loc_C3B16:
mov [rbp+var_4], 0
jmp loc_C3C16
loc_C3B22:
jmp short $+2
loc_C3B24:
jmp short $+2
loc_C3B26:
jmp short $+2
loc_C3B28:
mov rax, [rbp+var_20]
movsxd rcx, [rbp+var_2C]
add rax, rcx
cmp rax, [rbp+var_28]
jbe short loc_C3B49
mov eax, 0FFFFFF9Ch
sub eax, [rbp+var_2C]
mov [rbp+var_4], eax
jmp loc_C3C16
loc_C3B49:
mov eax, [rbp+var_2C]
dec eax; switch 4 cases
mov ecx, eax
mov [rbp+var_38], rcx
sub eax, 3
ja def_C3B6F; jumptable 00000000000C3B6F default case
mov rax, [rbp+var_38]
lea rcx, jpt_C3B6F
movsxd rax, ds:(jpt_C3B6F - 213960h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_C3B71:
mov rax, [rbp+var_18]; jumptable 00000000000C3B6F case 4
and rax, 3Fh
or rax, 80h
mov cl, al
mov rax, [rbp+var_20]
mov [rax+3], cl
mov rax, [rbp+var_18]
shr rax, 6
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
or rax, 10000h
mov [rbp+var_18], rax
loc_C3BA2:
mov rax, [rbp+var_18]; jumptable 00000000000C3B6F case 3
and rax, 3Fh
or rax, 80h
mov cl, al
mov rax, [rbp+var_20]
mov [rax+2], cl
mov rax, [rbp+var_18]
shr rax, 6
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
or rax, 800h
mov [rbp+var_18], rax
loc_C3BD3:
mov rax, [rbp+var_18]; jumptable 00000000000C3B6F case 2
and rax, 3Fh
or rax, 80h
mov cl, al
mov rax, [rbp+var_20]
mov [rax+1], cl
mov rax, [rbp+var_18]
shr rax, 6
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
or rax, 0C0h
mov [rbp+var_18], rax
loc_C3C04:
mov rax, [rbp+var_18]; jumptable 00000000000C3B6F case 1
mov cl, al
mov rax, [rbp+var_20]
mov [rax], cl
def_C3B6F:
mov eax, [rbp+var_2C]; jumptable 00000000000C3B6F default case
mov [rbp+var_4], eax
loc_C3C16:
mov eax, [rbp+var_4]
pop rbp
retn
| long long my_wc_mb_utf8mb4(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4)
{
int v5; // [rsp+Ch] [rbp-2Ch]
unsigned long long v6; // [rsp+20h] [rbp-18h]
v6 = a2;
if ( (unsigned long long)a3 < a4 )
{
if ( a2 >= 0x80 )
{
if ( a2 >= 0x800 )
{
if ( a2 >= 0x10000 )
{
if ( a2 >= (unsigned long long)&off_200000 )
return 0;
v5 = 4;
}
else
{
v5 = 3;
}
}
else
{
v5 = 2;
}
}
else
{
v5 = 1;
}
if ( (unsigned long long)&a3[v5] <= a4 )
{
switch ( v5 )
{
case 1:
goto LABEL_18;
case 2:
goto LABEL_17;
case 3:
goto LABEL_16;
case 4:
a3[3] = a2 & 0x3F | 0x80;
v6 = (a2 >> 6) | 0x10000;
LABEL_16:
a3[2] = v6 & 0x3F | 0x80;
v6 = (v6 >> 6) | 0x800;
LABEL_17:
a3[1] = v6 & 0x3F | 0x80;
v6 = (v6 >> 6) | 0xC0;
LABEL_18:
*a3 = v6;
break;
default:
break;
}
return (unsigned int)v5;
}
else
{
return (unsigned int)(-100 - v5);
}
}
else
{
return (unsigned int)-101;
}
}
| my_wc_mb_utf8mb4:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x28]
JC 0x001c3aca
MOV dword ptr [RBP + -0x4],0xffffff9b
JMP 0x001c3c16
LAB_001c3aca:
CMP qword ptr [RBP + -0x18],0x80
JNC 0x001c3add
MOV dword ptr [RBP + -0x2c],0x1
JMP 0x001c3b28
LAB_001c3add:
CMP qword ptr [RBP + -0x18],0x800
JNC 0x001c3af0
MOV dword ptr [RBP + -0x2c],0x2
JMP 0x001c3b26
LAB_001c3af0:
CMP qword ptr [RBP + -0x18],0x10000
JNC 0x001c3b03
MOV dword ptr [RBP + -0x2c],0x3
JMP 0x001c3b24
LAB_001c3b03:
CMP qword ptr [RBP + -0x18],0x200000
JNC 0x001c3b16
MOV dword ptr [RBP + -0x2c],0x4
JMP 0x001c3b22
LAB_001c3b16:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001c3c16
LAB_001c3b22:
JMP 0x001c3b24
LAB_001c3b24:
JMP 0x001c3b26
LAB_001c3b26:
JMP 0x001c3b28
LAB_001c3b28:
MOV RAX,qword ptr [RBP + -0x20]
MOVSXD RCX,dword ptr [RBP + -0x2c]
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x001c3b49
MOV EAX,0xffffff9c
SUB EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001c3c16
LAB_001c3b49:
MOV EAX,dword ptr [RBP + -0x2c]
DEC EAX
MOV ECX,EAX
MOV qword ptr [RBP + -0x38],RCX
SUB EAX,0x3
JA 0x001c3c10
MOV RAX,qword ptr [RBP + -0x38]
LEA RCX,[0x313960]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_4:
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,0x3f
OR RAX,0x80
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x3],CL
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0x6
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
OR RAX,0x10000
MOV qword ptr [RBP + -0x18],RAX
caseD_3:
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,0x3f
OR RAX,0x80
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x2],CL
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0x6
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
OR RAX,0x800
MOV qword ptr [RBP + -0x18],RAX
caseD_2:
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,0x3f
OR RAX,0x80
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x1],CL
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0x6
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
OR RAX,0xc0
MOV qword ptr [RBP + -0x18],RAX
caseD_1:
MOV RAX,qword ptr [RBP + -0x18]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],CL
default:
MOV EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x4],EAX
LAB_001c3c16:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int my_wc_mb_utf8mb4(int8 param_1,ulong param_2,int1 *param_3,int1 *param_4)
{
int local_34;
ulong local_20;
int local_c;
if (param_3 < param_4) {
if (param_2 < 0x80) {
local_34 = 1;
}
else if (param_2 < 0x800) {
local_34 = 2;
}
else if (param_2 < 0x10000) {
local_34 = 3;
}
else {
if (0x1fffff < param_2) {
return 0;
}
local_34 = 4;
}
if (param_4 < param_3 + local_34) {
local_c = -100 - local_34;
}
else {
local_20 = param_2;
switch(local_34) {
case 4:
param_3[3] = (byte)param_2 & 0x3f | 0x80;
local_20 = param_2 >> 6 | 0x10000;
case 3:
param_3[2] = (byte)local_20 & 0x3f | 0x80;
local_20 = local_20 >> 6 | 0x800;
case 2:
param_3[1] = (byte)local_20 & 0x3f | 0x80;
local_20 = local_20 >> 6 | 0xc0;
case 1:
*param_3 = (char)local_20;
default:
local_c = local_34;
}
}
}
else {
local_c = -0x65;
}
return local_c;
}
| |
45,741 | binding_system_binding_in_current_scope | tsotchke[P]eshkol/src/frontend/binding/core/binding_management.c | bool binding_system_binding_in_current_scope(BindingSystem* system, StringId name) {
assert(system != NULL);
assert(name != NULL);
// Search for binding in current scope
for (size_t i = 0; i < system->binding_table.count; i++) {
if (system->binding_table.scope_ids[i] == system->current_scope_id &&
strcmp(system->binding_table.names[i], name) == 0) {
// Found binding
return true;
}
}
// Binding not found in current scope
return false;
} | O0 | c | binding_system_binding_in_current_scope:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0xb8b9
jmp 0xb8d8
leaq 0x1fd75(%rip), %rdi # 0x2b635
leaq 0x1ced8(%rip), %rsi # 0x2879f
movl $0xb9, %edx
leaq 0x1d08a(%rip), %rcx # 0x2895d
callq 0x2160
cmpq $0x0, -0x18(%rbp)
je 0xb8e1
jmp 0xb900
leaq 0x1d379(%rip), %rdi # 0x28c61
leaq 0x1ceb0(%rip), %rsi # 0x2879f
movl $0xba, %edx
leaq 0x1d062(%rip), %rcx # 0x2895d
callq 0x2160
movq $0x0, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x48(%rcx), %rax
jae 0xb967
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0x10(%rbp), %rcx
cmpq 0x110(%rcx), %rax
jne 0xb957
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x18(%rbp), %rsi
callq 0x21c0
cmpl $0x0, %eax
jne 0xb957
movb $0x1, -0x1(%rbp)
jmp 0xb96b
jmp 0xb959
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0xb908
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| binding_system_binding_in_current_scope:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
cmp [rbp+var_10], 0
jz short loc_B8B9
jmp short loc_B8D8
loc_B8B9:
lea rdi, aBindingSystemN_0+8; "system != NULL"
lea rsi, aWorkspaceLlm4b_6; "/workspace/llm4binary/github/2025_star3"...
mov edx, 0B9h
lea rcx, aBoolBindingSys_3; "_Bool binding_system_binding_in_current"...
call ___assert_fail
loc_B8D8:
cmp [rbp+var_18], 0
jz short loc_B8E1
jmp short loc_B900
loc_B8E1:
lea rdi, aFunctionNameNu+9; "name != NULL"
lea rsi, aWorkspaceLlm4b_6; "/workspace/llm4binary/github/2025_star3"...
mov edx, 0BAh
lea rcx, aBoolBindingSys_3; "_Bool binding_system_binding_in_current"...
call ___assert_fail
loc_B900:
mov [rbp+var_20], 0
loc_B908:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_10]
cmp rax, [rcx+48h]
jnb short loc_B967
mov rax, [rbp+var_10]
mov rax, [rax+20h]
mov rcx, [rbp+var_20]
mov rax, [rax+rcx*8]
mov rcx, [rbp+var_10]
cmp rax, [rcx+110h]
jnz short loc_B957
mov rax, [rbp+var_10]
mov rax, [rax+10h]
mov rcx, [rbp+var_20]
mov rdi, [rax+rcx*8]
mov rsi, [rbp+var_18]
call _strcmp
cmp eax, 0
jnz short loc_B957
mov [rbp+var_1], 1
jmp short loc_B96B
loc_B957:
jmp short $+2
loc_B959:
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
jmp short loc_B908
loc_B967:
mov [rbp+var_1], 0
loc_B96B:
mov al, [rbp+var_1]
and al, 1
add rsp, 20h
pop rbp
retn
| char binding_system_binding_in_current_scope(_QWORD *a1, long long a2)
{
unsigned long long i; // [rsp+0h] [rbp-20h]
if ( !a1 )
__assert_fail(
"system != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/core/binding_management.c",
185LL,
"_Bool binding_system_binding_in_current_scope(BindingSystem *, StringId)");
if ( !a2 )
__assert_fail(
"name != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/core/binding_management.c",
186LL,
"_Bool binding_system_binding_in_current_scope(BindingSystem *, StringId)");
for ( i = 0LL; i < a1[9]; ++i )
{
if ( *(_QWORD *)(a1[4] + 8 * i) == a1[34] && !(unsigned int)strcmp(*(_QWORD *)(a1[2] + 8 * i), a2) )
return 1;
}
return 0;
}
| binding_system_binding_in_current_scope:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
CMP qword ptr [RBP + -0x10],0x0
JZ 0x0010b8b9
JMP 0x0010b8d8
LAB_0010b8b9:
LEA RDI,[0x12b635]
LEA RSI,[0x12879f]
MOV EDX,0xb9
LEA RCX,[0x12895d]
CALL 0x00102160
LAB_0010b8d8:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x0010b8e1
JMP 0x0010b900
LAB_0010b8e1:
LEA RDI,[0x128c61]
LEA RSI,[0x12879f]
MOV EDX,0xba
LEA RCX,[0x12895d]
CALL 0x00102160
LAB_0010b900:
MOV qword ptr [RBP + -0x20],0x0
LAB_0010b908:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x48]
JNC 0x0010b967
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x110]
JNZ 0x0010b957
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RBP + -0x20]
MOV RDI,qword ptr [RAX + RCX*0x8]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x001021c0
CMP EAX,0x0
JNZ 0x0010b957
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0010b96b
LAB_0010b957:
JMP 0x0010b959
LAB_0010b959:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
JMP 0x0010b908
LAB_0010b967:
MOV byte ptr [RBP + -0x1],0x0
LAB_0010b96b:
MOV AL,byte ptr [RBP + -0x1]
AND AL,0x1
ADD RSP,0x20
POP RBP
RET
|
int8 binding_system_binding_in_current_scope(long param_1,char *param_2)
{
int iVar1;
int4 extraout_var;
ulong local_28;
int1 local_9;
if (param_1 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("system != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/core/binding_management.c"
,0xb9,"_Bool binding_system_binding_in_current_scope(BindingSystem *, StringId)");
}
if (param_2 == (char *)0x0) {
/* WARNING: Subroutine does not return */
__assert_fail("name != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/core/binding_management.c"
,0xba,"_Bool binding_system_binding_in_current_scope(BindingSystem *, StringId)");
}
local_28 = 0;
do {
if (*(ulong *)(param_1 + 0x48) <= local_28) {
local_9 = 0;
LAB_0010b96b:
return CONCAT71((int7)(local_28 >> 8),local_9);
}
if (*(long *)(*(long *)(param_1 + 0x20) + local_28 * 8) == *(long *)(param_1 + 0x110)) {
iVar1 = strcmp(*(char **)(*(long *)(param_1 + 0x10) + local_28 * 8),param_2);
if (iVar1 == 0) {
local_9 = 1;
local_28 = CONCAT44(extraout_var,iVar1);
goto LAB_0010b96b;
}
}
local_28 = local_28 + 1;
} while( true );
}
| |
45,742 | binding_system_binding_in_current_scope | tsotchke[P]eshkol/src/frontend/binding/core/binding_management.c | bool binding_system_binding_in_current_scope(BindingSystem* system, StringId name) {
assert(system != NULL);
assert(name != NULL);
// Search for binding in current scope
for (size_t i = 0; i < system->binding_table.count; i++) {
if (system->binding_table.scope_ids[i] == system->current_scope_id &&
strcmp(system->binding_table.names[i], name) == 0) {
// Found binding
return true;
}
}
// Binding not found in current scope
return false;
} | O2 | c | binding_system_binding_in_current_scope:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x78f4
movq %rsi, %rbx
testq %rsi, %rsi
je 0x7913
movq %rdi, %r14
movq 0x48(%rdi), %r15
xorl %r12d, %r12d
cmpq %r12, %r15
je 0x78e2
movq 0x20(%r14), %rax
movq (%rax,%r12,8), %rax
cmpq 0x110(%r14), %rax
jne 0x78dd
movq 0x10(%r14), %rax
movq (%rax,%r12,8), %rdi
movq %rbx, %rsi
callq 0x21f0
testl %eax, %eax
je 0x78e2
incq %r12
jmp 0x78b3
cmpq %r15, %r12
setb %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x11b36(%rip), %rdi # 0x19431
leaq 0x11d22(%rip), %rsi # 0x19624
leaq 0x11ed9(%rip), %rcx # 0x197e2
movl $0xb9, %edx
callq 0x2180
leaq 0x121cc(%rip), %rdi # 0x19ae6
leaq 0x11d03(%rip), %rsi # 0x19624
leaq 0x11eba(%rip), %rcx # 0x197e2
movl $0xba, %edx
callq 0x2180
| binding_system_binding_in_current_scope:
push r15
push r14
push r12
push rbx
push rax
test rdi, rdi
jz short loc_78F4
mov rbx, rsi
test rsi, rsi
jz short loc_7913
mov r14, rdi
mov r15, [rdi+48h]
xor r12d, r12d
loc_78B3:
cmp r15, r12
jz short loc_78E2
mov rax, [r14+20h]
mov rax, [rax+r12*8]
cmp rax, [r14+110h]
jnz short loc_78DD
mov rax, [r14+10h]
mov rdi, [rax+r12*8]
mov rsi, rbx
call _strcmp
test eax, eax
jz short loc_78E2
loc_78DD:
inc r12
jmp short loc_78B3
loc_78E2:
cmp r12, r15
setb al
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
loc_78F4:
lea rdi, aSystemNull; "system != NULL"
lea rsi, aWorkspaceLlm4b_6; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aBoolBindingSys_3; "_Bool binding_system_binding_in_current"...
mov edx, 0B9h
call ___assert_fail
loc_7913:
lea rdi, aFunctionNameNu+9; "name != NULL"
lea rsi, aWorkspaceLlm4b_6; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aBoolBindingSys_3; "_Bool binding_system_binding_in_current"...
mov edx, 0BAh
call ___assert_fail
| bool binding_system_binding_in_current_scope(_QWORD *a1, long long a2)
{
unsigned long long v2; // r15
unsigned long long i; // r12
if ( !a1 )
__assert_fail(
"system != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/core/binding_management.c",
185LL,
"_Bool binding_system_binding_in_current_scope(BindingSystem *, StringId)");
if ( !a2 )
__assert_fail(
"name != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/core/binding_management.c",
186LL,
"_Bool binding_system_binding_in_current_scope(BindingSystem *, StringId)");
v2 = a1[9];
for ( i = 0LL;
v2 != i && (*(_QWORD *)(a1[4] + 8 * i) != a1[34] || (unsigned int)strcmp(*(_QWORD *)(a1[2] + 8 * i), a2));
++i )
{
;
}
return i < v2;
}
| binding_system_binding_in_current_scope:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
TEST RDI,RDI
JZ 0x001078f4
MOV RBX,RSI
TEST RSI,RSI
JZ 0x00107913
MOV R14,RDI
MOV R15,qword ptr [RDI + 0x48]
XOR R12D,R12D
LAB_001078b3:
CMP R15,R12
JZ 0x001078e2
MOV RAX,qword ptr [R14 + 0x20]
MOV RAX,qword ptr [RAX + R12*0x8]
CMP RAX,qword ptr [R14 + 0x110]
JNZ 0x001078dd
MOV RAX,qword ptr [R14 + 0x10]
MOV RDI,qword ptr [RAX + R12*0x8]
MOV RSI,RBX
CALL 0x001021f0
TEST EAX,EAX
JZ 0x001078e2
LAB_001078dd:
INC R12
JMP 0x001078b3
LAB_001078e2:
CMP R12,R15
SETC AL
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
LAB_001078f4:
LEA RDI,[0x119431]
LEA RSI,[0x119624]
LEA RCX,[0x1197e2]
MOV EDX,0xb9
CALL 0x00102180
LAB_00107913:
LEA RDI,[0x119ae6]
LEA RSI,[0x119624]
LEA RCX,[0x1197e2]
MOV EDX,0xba
CALL 0x00102180
|
bool binding_system_binding_in_current_scope(long param_1,char *param_2)
{
ulong uVar1;
int iVar2;
ulong uVar3;
if (param_1 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("system != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/core/binding_management.c"
,0xb9,"_Bool binding_system_binding_in_current_scope(BindingSystem *, StringId)");
}
if (param_2 == (char *)0x0) {
/* WARNING: Subroutine does not return */
__assert_fail("name != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/core/binding_management.c"
,0xba,"_Bool binding_system_binding_in_current_scope(BindingSystem *, StringId)");
}
uVar1 = *(ulong *)(param_1 + 0x48);
for (uVar3 = 0; uVar1 != uVar3; uVar3 = uVar3 + 1) {
if (*(long *)(*(long *)(param_1 + 0x20) + uVar3 * 8) == *(long *)(param_1 + 0x110)) {
iVar2 = strcmp(*(char **)(*(long *)(param_1 + 0x10) + uVar3 * 8),param_2);
if (iVar2 == 0) break;
}
}
return uVar3 < uVar1;
}
| |
45,743 | create_dest_frm | eloqsql/storage/myisam/myisampack.c | static int create_dest_frm(char *source_table, char *dest_table)
{
char source_name[FN_REFLEN], dest_name[FN_REFLEN];
DBUG_ENTER("create_dest_frm");
(void) fn_format(source_name, source_table,
"", FRM_EXT, MY_UNPACK_FILENAME | MY_RESOLVE_SYMLINKS);
(void) fn_format(dest_name, dest_table,
"", FRM_EXT, MY_UNPACK_FILENAME | MY_RESOLVE_SYMLINKS);
/*
Error messages produced by my_copy() are suppressed as this
is not vital for --join operation. User shouldn't see any error messages
like "source file frm not found" and "unable to create destination frm
file. So we don't pass the flag MY_WME -Write Message on Error to
my_copy()
*/
(void) my_copy(source_name, dest_name, MYF(MY_DONT_OVERWRITE_FILE));
DBUG_RETURN(0);
} | O0 | c | create_dest_frm:
pushq %rbp
movq %rsp, %rbp
subq $0x420, %rsp # imm = 0x420
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x418(%rbp)
movq %rsi, -0x420(%rbp)
leaq -0x210(%rbp), %rdi
movq -0x418(%rbp), %rsi
leaq 0xbf0c5(%rip), %rdx # 0xe9b00
leaq 0xb93db(%rip), %rcx # 0xe3e1d
movl $0x14, %r8d
callq 0x73960
leaq -0x410(%rbp), %rdi
movq -0x420(%rbp), %rsi
leaq 0xbf09e(%rip), %rdx # 0xe9b00
leaq 0xb93b4(%rip), %rcx # 0xe3e1d
movl $0x14, %r8d
callq 0x73960
leaq -0x210(%rbp), %rdi
leaq -0x410(%rbp), %rsi
movl $0x800, %edx # imm = 0x800
callq 0x82260
jmp 0x2aa8e
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x2aaab
xorl %eax, %eax
addq $0x420, %rsp # imm = 0x420
popq %rbp
retq
callq 0x29420
| create_dest_frm:
push rbp
mov rbp, rsp
sub rsp, 420h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_418], rdi
mov [rbp+var_420], rsi
lea rdi, [rbp+var_210]
mov rsi, [rbp+var_418]
lea rdx, asc_E9AFC+4; ""
lea rcx, aFrm; ".frm"
mov r8d, 14h
call fn_format
lea rdi, [rbp+var_410]
mov rsi, [rbp+var_420]
lea rdx, asc_E9AFC+4; ""
lea rcx, aFrm; ".frm"
mov r8d, 14h
call fn_format
lea rdi, [rbp+var_210]
lea rsi, [rbp+var_410]
mov edx, 800h
call my_copy
jmp short $+2
loc_2AA8E:
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_2AAAB
xor eax, eax
add rsp, 420h
pop rbp
retn
loc_2AAAB:
call ___stack_chk_fail
| long long create_dest_frm(long long a1, long long a2)
{
_BYTE v3[512]; // [rsp+10h] [rbp-410h] BYREF
_BYTE v4[520]; // [rsp+210h] [rbp-210h] BYREF
unsigned long long v5; // [rsp+418h] [rbp-8h]
v5 = __readfsqword(0x28u);
fn_format(v4, a1, "", ".frm", 20LL);
fn_format(v3, a2, "", ".frm", 20LL);
my_copy(v4, v3, 2048LL);
return 0LL;
}
| create_dest_frm:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x420
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x418],RDI
MOV qword ptr [RBP + -0x420],RSI
LEA RDI,[RBP + -0x210]
MOV RSI,qword ptr [RBP + -0x418]
LEA RDX,[0x1e9b00]
LEA RCX,[0x1e3e1d]
MOV R8D,0x14
CALL 0x00173960
LEA RDI,[RBP + -0x410]
MOV RSI,qword ptr [RBP + -0x420]
LEA RDX,[0x1e9b00]
LEA RCX,[0x1e3e1d]
MOV R8D,0x14
CALL 0x00173960
LEA RDI,[RBP + -0x210]
LEA RSI,[RBP + -0x410]
MOV EDX,0x800
CALL 0x00182260
JMP 0x0012aa8e
LAB_0012aa8e:
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0012aaab
XOR EAX,EAX
ADD RSP,0x420
POP RBP
RET
LAB_0012aaab:
CALL 0x00129420
|
int8 create_dest_frm(int8 param_1,int8 param_2)
{
long in_FS_OFFSET;
int1 local_418 [512];
int1 local_218 [520];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
fn_format(local_218,param_1,&DAT_001e9b00,&DAT_001e3e1d,0x14);
fn_format(local_418,param_2,&DAT_001e9b00,&DAT_001e3e1d,0x14);
my_copy(local_218,local_418,0x800);
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return 0;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
45,744 | my_caseup_utf16 | eloqsql/strings/ctype-ucs2.c | static size_t
my_caseup_utf16(CHARSET_INFO *cs, const char *src, size_t srclen,
char *dst, size_t dstlen)
{
my_wc_t wc;
my_charset_conv_mb_wc mb_wc= cs->cset->mb_wc;
my_charset_conv_wc_mb wc_mb= cs->cset->wc_mb;
int res;
const char *srcend= src + srclen;
char *dstend= dst + dstlen;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
DBUG_ASSERT(srclen <= dstlen);
while ((src < srcend) &&
(res= mb_wc(cs, &wc, (uchar *) src, (uchar *) srcend)) > 0)
{
my_toupper_utf16(uni_plane, &wc);
if (res != wc_mb(cs, wc, (uchar *) dst, (uchar *) dstend))
break;
src+= res;
dst+= res;
}
return srclen;
} | O3 | c | my_caseup_utf16:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, -0x38(%rbp)
movq %rdx, -0x30(%rbp)
testq %rdx, %rdx
jle 0x44f09
movq %rcx, %r15
movq %rsi, %r12
movq %rdi, %r13
movq 0x78(%rdi), %rax
movq %rax, -0x50(%rbp)
movq 0xb8(%rdi), %rax
movq 0x28(%rax), %rcx
movq %rcx, -0x58(%rbp)
movq 0x30(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x30(%rbp), %rax
leaq (%rsi,%rax), %r14
addq %r15, -0x38(%rbp)
movq %r13, %rdi
leaq -0x40(%rbp), %rsi
movq %r12, %rdx
movq %r14, %rcx
callq *-0x58(%rbp)
testl %eax, %eax
jle 0x44f09
movl %eax, %ebx
movq -0x40(%rbp), %rsi
movq -0x50(%rbp), %rax
cmpq (%rax), %rsi
ja 0x44eeb
movq 0x8(%rax), %rax
movq %rsi, %rcx
shrq $0x8, %rcx
movq (%rax,%rcx,8), %rax
testq %rax, %rax
je 0x44eeb
movzbl %sil, %ecx
leaq (%rcx,%rcx,2), %rcx
movl (%rax,%rcx,4), %esi
movq %rsi, -0x40(%rbp)
movq %r13, %rdi
movq %r15, %rdx
movq -0x38(%rbp), %rcx
callq *-0x48(%rbp)
cmpl %eax, %ebx
jne 0x44f09
movl %ebx, %eax
addq %rax, %r12
addq %rax, %r15
cmpq %r14, %r12
jb 0x44ea5
movq -0x30(%rbp), %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_caseup_utf16:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov [rbp+var_38], r8
mov [rbp+var_30], rdx
test rdx, rdx
jle loc_44F09
mov r15, rcx
mov r12, rsi
mov r13, rdi
mov rax, [rdi+78h]
mov [rbp+var_50], rax
mov rax, [rdi+0B8h]
mov rcx, [rax+28h]
mov [rbp+var_58], rcx
mov rax, [rax+30h]
mov [rbp+var_48], rax
mov rax, [rbp+var_30]
lea r14, [rsi+rax]
add [rbp+var_38], r15
loc_44EA5:
mov rdi, r13
lea rsi, [rbp+var_40]
mov rdx, r12
mov rcx, r14
call [rbp+var_58]
test eax, eax
jle short loc_44F09
mov ebx, eax
mov rsi, [rbp+var_40]
mov rax, [rbp+var_50]
cmp rsi, [rax]
ja short loc_44EEB
mov rax, [rax+8]
mov rcx, rsi
shr rcx, 8
mov rax, [rax+rcx*8]
test rax, rax
jz short loc_44EEB
movzx ecx, sil
lea rcx, [rcx+rcx*2]
mov esi, [rax+rcx*4]
mov [rbp+var_40], rsi
loc_44EEB:
mov rdi, r13
mov rdx, r15
mov rcx, [rbp+var_38]
call [rbp+var_48]
cmp ebx, eax
jnz short loc_44F09
mov eax, ebx
add r12, rax
add r15, rax
cmp r12, r14
jb short loc_44EA5
loc_44F09:
mov rax, [rbp+var_30]
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_caseup_utf16(long long a1, unsigned long long a2, long long a3, long long a4, long long a5)
{
long long v5; // r15
unsigned long long v6; // r12
long long v7; // rax
unsigned long long v8; // r14
int v9; // eax
unsigned int v10; // ebx
unsigned long long v11; // rsi
long long v12; // rax
long long ( *v14)(long long, unsigned long long *, unsigned long long, unsigned long long); // [rsp+8h] [rbp-58h]
unsigned long long *v15; // [rsp+10h] [rbp-50h]
unsigned int ( *v16)(long long, unsigned long long, long long, long long); // [rsp+18h] [rbp-48h]
unsigned long long v17; // [rsp+20h] [rbp-40h] BYREF
long long v18; // [rsp+28h] [rbp-38h]
long long v19; // [rsp+30h] [rbp-30h]
v18 = a5;
v19 = a3;
if ( a3 > 0 )
{
v5 = a4;
v6 = a2;
v15 = *(unsigned long long **)(a1 + 120);
v7 = *(_QWORD *)(a1 + 184);
v14 = *(long long ( **)(long long, unsigned long long *, unsigned long long, unsigned long long))(v7 + 40);
v16 = *(unsigned int ( **)(long long, unsigned long long, long long, long long))(v7 + 48);
v8 = a2 + v19;
v18 += a4;
do
{
v9 = v14(a1, &v17, v6, v8);
if ( v9 <= 0 )
break;
v10 = v9;
v11 = v17;
if ( v17 <= *v15 )
{
v12 = *(_QWORD *)(v15[1] + 8 * (v17 >> 8));
if ( v12 )
{
v11 = *(unsigned int *)(v12 + 12LL * (unsigned __int8)v17);
v17 = v11;
}
}
if ( v10 != v16(a1, v11, v5, v18) )
break;
v6 += v10;
v5 += v10;
}
while ( v6 < v8 );
}
return v19;
}
| my_caseup_utf16:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV qword ptr [RBP + -0x38],R8
MOV qword ptr [RBP + -0x30],RDX
TEST RDX,RDX
JLE 0x00144f09
MOV R15,RCX
MOV R12,RSI
MOV R13,RDI
MOV RAX,qword ptr [RDI + 0x78]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RDI + 0xb8]
MOV RCX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x58],RCX
MOV RAX,qword ptr [RAX + 0x30]
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x30]
LEA R14,[RSI + RAX*0x1]
ADD qword ptr [RBP + -0x38],R15
LAB_00144ea5:
MOV RDI,R13
LEA RSI,[RBP + -0x40]
MOV RDX,R12
MOV RCX,R14
CALL qword ptr [RBP + -0x58]
TEST EAX,EAX
JLE 0x00144f09
MOV EBX,EAX
MOV RSI,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x50]
CMP RSI,qword ptr [RAX]
JA 0x00144eeb
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,RSI
SHR RCX,0x8
MOV RAX,qword ptr [RAX + RCX*0x8]
TEST RAX,RAX
JZ 0x00144eeb
MOVZX ECX,SIL
LEA RCX,[RCX + RCX*0x2]
MOV ESI,dword ptr [RAX + RCX*0x4]
MOV qword ptr [RBP + -0x40],RSI
LAB_00144eeb:
MOV RDI,R13
MOV RDX,R15
MOV RCX,qword ptr [RBP + -0x38]
CALL qword ptr [RBP + -0x48]
CMP EBX,EAX
JNZ 0x00144f09
MOV EAX,EBX
ADD R12,RAX
ADD R15,RAX
CMP R12,R14
JC 0x00144ea5
LAB_00144f09:
MOV RAX,qword ptr [RBP + -0x30]
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_caseup_utf16(long param_1,ulong param_2,long param_3,long param_4,long param_5)
{
ulong uVar1;
ulong *puVar2;
code *pcVar3;
code *pcVar4;
long lVar5;
uint uVar6;
uint uVar7;
ulong local_48;
long local_40;
long local_38;
local_38 = param_3;
if (0 < param_3) {
puVar2 = *(ulong **)(param_1 + 0x78);
pcVar3 = *(code **)(*(long *)(param_1 + 0xb8) + 0x28);
pcVar4 = *(code **)(*(long *)(param_1 + 0xb8) + 0x30);
uVar1 = param_2 + param_3;
local_40 = param_5 + param_4;
do {
uVar6 = (*pcVar3)(param_1,&local_48,param_2,uVar1);
if ((int)uVar6 < 1) {
return local_38;
}
if ((local_48 <= *puVar2) && (lVar5 = *(long *)(puVar2[1] + (local_48 >> 8) * 8), lVar5 != 0))
{
local_48 = (ulong)*(uint *)(lVar5 + (local_48 & 0xff) * 0xc);
}
uVar7 = (*pcVar4)(param_1,local_48,param_4,local_40);
if (uVar6 != uVar7) {
return local_38;
}
param_2 = param_2 + uVar6;
param_4 = param_4 + (ulong)uVar6;
} while (param_2 < uVar1);
}
return local_38;
}
| |
45,745 | google::protobuf::internal::ExtensionSet::ReleaseMessage(int, google::protobuf::MessageLite const&) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/extension_set.cc | MessageLite* ExtensionSet::ReleaseMessage(int number,
const MessageLite& prototype) {
Extension* extension = FindOrNull(number);
if (extension == nullptr) {
// Not present. Return nullptr.
return nullptr;
} else {
GOOGLE_DCHECK_TYPE(*extension, OPTIONAL_FIELD, MESSAGE);
MessageLite* ret = nullptr;
if (extension->is_lazy) {
ret = extension->lazymessage_value->ReleaseMessage(prototype, arena_);
if (arena_ == nullptr) {
delete extension->lazymessage_value;
}
} else {
if (arena_ == nullptr) {
ret = extension->message_value;
} else {
// ReleaseMessage() always returns a heap-allocated message, and we are
// on an arena, so we need to make a copy of this message to return.
ret = extension->message_value->New();
ret->CheckTypeAndMergeFrom(*extension->message_value);
}
}
Erase(number);
return ret;
}
} | O3 | cpp | google::protobuf::internal::ExtensionSet::ReleaseMessage(int, google::protobuf::MessageLite const&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movl %esi, %ebx
movq %rdi, %r14
callq 0xb3166
testq %rax, %rax
je 0xb55ee
movq %rax, %r12
testb $0x10, 0xa(%rax)
jne 0xb55f3
cmpq $0x0, (%r14)
movq (%r12), %r15
je 0xb561b
movq (%r15), %rax
movq %r15, %rdi
xorl %esi, %esi
callq *0x18(%rax)
movq %rax, %r15
movq (%r12), %rsi
movq (%rax), %rax
movq %r15, %rdi
callq *0x38(%rax)
jmp 0xb561b
xorl %r15d, %r15d
jmp 0xb5625
movq (%r12), %rdi
movq (%r14), %rdx
movq (%rdi), %rax
movq %r15, %rsi
callq *0x38(%rax)
movq %rax, %r15
cmpq $0x0, (%r14)
jne 0xb561b
movq (%r12), %rdi
testq %rdi, %rdi
je 0xb561b
movq (%rdi), %rax
callq *0x8(%rax)
movq %r14, %rdi
movl %ebx, %esi
callq 0xb5634
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
| _ZN6google8protobuf8internal12ExtensionSet14ReleaseMessageEiRKNS0_11MessageLiteE:
push r15
push r14
push r12
push rbx
push rax
mov r15, rdx
mov ebx, esi
mov r14, rdi
call _ZNK6google8protobuf8internal12ExtensionSet10FindOrNullEi; google::protobuf::internal::ExtensionSet::FindOrNull(int)
test rax, rax
jz short loc_B55EE
mov r12, rax
test byte ptr [rax+0Ah], 10h
jnz short loc_B55F3
cmp qword ptr [r14], 0
mov r15, [r12]
jz short loc_B561B
mov rax, [r15]
mov rdi, r15
xor esi, esi
call qword ptr [rax+18h]
mov r15, rax
mov rsi, [r12]
mov rax, [rax]
mov rdi, r15
call qword ptr [rax+38h]
jmp short loc_B561B
loc_B55EE:
xor r15d, r15d
jmp short loc_B5625
loc_B55F3:
mov rdi, [r12]
mov rdx, [r14]
mov rax, [rdi]
mov rsi, r15
call qword ptr [rax+38h]
mov r15, rax
cmp qword ptr [r14], 0
jnz short loc_B561B
mov rdi, [r12]
test rdi, rdi
jz short loc_B561B
mov rax, [rdi]
call qword ptr [rax+8]
loc_B561B:
mov rdi, r14; this
mov esi, ebx; int
call _ZN6google8protobuf8internal12ExtensionSet5EraseEi; google::protobuf::internal::ExtensionSet::Erase(int)
loc_B5625:
mov rax, r15
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
| long long google::protobuf::internal::ExtensionSet::ReleaseMessage(
google::protobuf::internal::ExtensionSet *this,
int a2,
const google::protobuf::MessageLite *a3)
{
_QWORD *v4; // rax
_QWORD *v5; // r12
long long v6; // r15
v4 = (_QWORD *)google::protobuf::internal::ExtensionSet::FindOrNull(this, a2);
if ( !v4 )
return 0LL;
v5 = v4;
if ( (*((_BYTE *)v4 + 10) & 0x10) != 0 )
{
v6 = (*(long long ( **)(_QWORD, const google::protobuf::MessageLite *, _QWORD))(*(_QWORD *)*v4 + 56LL))(
*v4,
a3,
*(_QWORD *)this);
if ( !*(_QWORD *)this && *v5 )
(*(void ( **)(_QWORD))(*(_QWORD *)*v5 + 8LL))(*v5);
}
else
{
v6 = *v4;
if ( *(_QWORD *)this )
{
v6 = (*(long long ( **)(_QWORD, _QWORD))(*(_QWORD *)v6 + 24LL))(*v4, 0LL);
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v6 + 56LL))(v6, *v5);
}
}
google::protobuf::internal::ExtensionSet::Erase(this, a2);
return v6;
}
| ReleaseMessage:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,RDX
MOV EBX,ESI
MOV R14,RDI
CALL 0x001b3166
TEST RAX,RAX
JZ 0x001b55ee
MOV R12,RAX
TEST byte ptr [RAX + 0xa],0x10
JNZ 0x001b55f3
CMP qword ptr [R14],0x0
MOV R15,qword ptr [R12]
JZ 0x001b561b
MOV RAX,qword ptr [R15]
MOV RDI,R15
XOR ESI,ESI
CALL qword ptr [RAX + 0x18]
MOV R15,RAX
MOV RSI,qword ptr [R12]
MOV RAX,qword ptr [RAX]
MOV RDI,R15
CALL qword ptr [RAX + 0x38]
JMP 0x001b561b
LAB_001b55ee:
XOR R15D,R15D
JMP 0x001b5625
LAB_001b55f3:
MOV RDI,qword ptr [R12]
MOV RDX,qword ptr [R14]
MOV RAX,qword ptr [RDI]
MOV RSI,R15
CALL qword ptr [RAX + 0x38]
MOV R15,RAX
CMP qword ptr [R14],0x0
JNZ 0x001b561b
MOV RDI,qword ptr [R12]
TEST RDI,RDI
JZ 0x001b561b
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
LAB_001b561b:
MOV RDI,R14
MOV ESI,EBX
CALL 0x001b5634
LAB_001b5625:
MOV RAX,R15
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* google::protobuf::internal::ExtensionSet::ReleaseMessage(int, google::protobuf::MessageLite
const&) */
long * __thiscall
google::protobuf::internal::ExtensionSet::ReleaseMessage
(ExtensionSet *this,int param_1,MessageLite *param_2)
{
long *plVar1;
long *plVar2;
plVar1 = (long *)FindOrNull(this,param_1);
if (plVar1 == (long *)0x0) {
plVar2 = (long *)0x0;
}
else {
if ((*(byte *)((long)plVar1 + 10) & 0x10) == 0) {
plVar2 = (long *)*plVar1;
if (*(long *)this != 0) {
plVar2 = (long *)(**(code **)(*plVar2 + 0x18))(plVar2,0);
(**(code **)(*plVar2 + 0x38))(plVar2,*plVar1);
}
}
else {
plVar2 = (long *)(**(code **)(*(long *)*plVar1 + 0x38))
((long *)*plVar1,param_2,*(int8 *)this);
if ((*(long *)this == 0) && ((long *)*plVar1 != (long *)0x0)) {
(**(code **)(*(long *)*plVar1 + 8))();
}
}
Erase(this,param_1);
}
return plVar2;
}
| |
45,746 | my_hash_update | eloqsql/mysys/hash.c | my_bool my_hash_update(HASH *hash, uchar *record, uchar *old_key,
size_t old_key_length)
{
uint new_index, new_pos_index, org_index, records, idx;
size_t length, empty, blength;
my_hash_value_type hash_nr;
HASH_LINK org_link,*data,*previous,*pos;
uchar *new_key;
DBUG_ENTER("my_hash_update");
new_key= (uchar*) my_hash_key(hash, record, &length, 1);
hash_nr= hash->hash_function(hash->charset, new_key, length);
if (HASH_UNIQUE & hash->flags)
{
HASH_SEARCH_STATE state;
uchar *found;
if ((found= my_hash_first_from_hash_value(hash, hash_nr, new_key, length,
&state)))
{
do
{
if (found != record)
DBUG_RETURN(1); /* Duplicate entry */
}
while ((found= my_hash_next(hash, new_key, length, &state)));
}
}
data=dynamic_element(&hash->array,0,HASH_LINK*);
blength=hash->blength; records=hash->records;
/* Search after record with key */
idx= my_hash_mask(hash->hash_function(hash->charset, old_key,
(old_key_length ? old_key_length :
hash->key_length)),
blength, records);
org_index= idx;
new_index= my_hash_mask(hash_nr, blength, records);
previous=0;
for (;;)
{
if ((pos= data+idx)->data == record)
break;
previous=pos;
if ((idx=pos->next) == NO_RECORD)
DBUG_RETURN(1); /* Not found in links */
}
if (org_index == new_index)
{
data[idx].hash_nr= hash_nr; /* Hash number may have changed */
DBUG_RETURN(0); /* Record is in right position */
}
org_link= *pos;
empty=idx;
/* Relink record from current chain */
if (!previous)
{
if (pos->next != NO_RECORD)
{
empty=pos->next;
*pos= data[pos->next];
}
}
else
previous->next=pos->next; /* unlink pos */
/* Move data to correct position */
if (new_index == empty)
{
/*
At this point record is unlinked from the old chain, thus it holds
random position. By the chance this position is equal to position
for the first element in the new chain. That means updated record
is the only record in the new chain.
*/
if (empty != idx)
{
/*
Record was moved while unlinking it from the old chain.
Copy data to a new position.
*/
data[empty]= org_link;
}
data[empty].next= NO_RECORD;
data[empty].hash_nr= hash_nr;
DBUG_RETURN(0);
}
pos=data+new_index;
new_pos_index= my_hash_rec_mask(pos, blength, records);
if (new_index != new_pos_index)
{ /* Other record in wrong position */
data[empty]= *pos;
movelink(data,new_index,new_pos_index, (uint) empty);
org_link.next=NO_RECORD;
data[new_index]= org_link;
data[new_index].hash_nr= hash_nr;
}
else
{ /* Link in chain at right position */
org_link.next=data[new_index].next;
data[empty]=org_link;
data[empty].hash_nr= hash_nr;
data[new_index].next= (uint) empty;
}
DBUG_RETURN(0);
} | O3 | c | my_hash_update:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, -0x60(%rbp)
movq %rsi, %r14
movq %rdi, %r13
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq 0x50(%rdi), %rax
testq %rax, %rax
movq %rdx, -0x58(%rbp)
je 0x971a3
leaq -0x48(%rbp), %r12
movq %r14, %rdi
movq %r12, %rsi
movl $0x1, %edx
callq *%rax
movq %rax, %rbx
movq (%r12), %rdx
jmp 0x971b2
movq 0x8(%r13), %rdx
movq %rdx, -0x48(%rbp)
movq (%r13), %rbx
addq %r14, %rbx
movq 0x68(%r13), %rdi
movq %rbx, %rsi
callq *0x58(%r13)
testb $0x1, 0x20(%r13)
je 0x97208
movq -0x48(%rbp), %rcx
leaq -0x40(%rbp), %r8
movq %r13, %rdi
movl %eax, %r15d
movl %eax, %esi
movq %rbx, %rdx
callq 0x96a07
testq %rax, %rax
je 0x97205
leaq -0x40(%rbp), %r12
cmpq %r14, %rax
jne 0x972b0
movq -0x48(%rbp), %rdx
movq %r13, %rdi
movq %rbx, %rsi
movq %r12, %rcx
callq 0x96b60
testq %rax, %rax
jne 0x971e5
movl %r15d, %eax
movl %eax, -0x4c(%rbp)
movq 0x28(%r13), %rbx
movq 0x10(%r13), %r12
movl 0x18(%r13), %r15d
movq 0x58(%r13), %rax
movq 0x68(%r13), %rdi
movq -0x60(%rbp), %rdx
testq %rdx, %rdx
jne 0x9722c
movq 0x8(%r13), %rdx
movq -0x58(%rbp), %rsi
callq *%rax
movl $0xffffffff, %edi # imm = 0xFFFFFFFF
leaq (%r12,%rdi), %rsi
movl %esi, %ecx
andl %eax, %ecx
shrq %r12
decl %r12d
andl %r12d, %eax
cmpl %r15d, %ecx
cmovbl %ecx, %eax
movl %esi, %ecx
movl -0x4c(%rbp), %r11d
andl %r11d, %ecx
movl %r11d, %edx
andl %r12d, %edx
cmpl %r15d, %ecx
cmovbl %ecx, %edx
movq %rax, %rcx
shlq $0x4, %rcx
leaq (%rbx,%rcx), %r8
cmpq %r14, 0x8(%rbx,%rcx)
je 0x972b4
movl (%r8), %ecx
cmpq %rdi, %rcx
je 0x972b0
movq %r8, %r9
movq %rcx, %r10
shlq $0x4, %r10
leaq (%rbx,%r10), %r8
cmpq %r14, 0x8(%rbx,%r10)
jne 0x97275
cmpl %edx, %eax
je 0x972bb
movl (%r8), %eax
movl 0xc(%r8), %edi
movl %edi, -0x38(%rbp)
movq 0x4(%r8), %rdi
movq %rdi, -0x40(%rbp)
movl %eax, (%r9)
movq %rcx, %rax
jmp 0x972ed
movb $0x1, %al
jmp 0x9731e
cmpl %edx, %eax
jne 0x972c1
movq %rax, %rcx
shlq $0x4, %rcx
jmp 0x97317
movl (%r8), %ecx
movl 0xc(%r8), %r9d
movl %r9d, -0x38(%rbp)
movq 0x4(%r8), %r9
movq %r9, -0x40(%rbp)
cmpq %rdi, %rcx
je 0x972ea
movq %rcx, %rdi
shlq $0x4, %rdi
movups (%rbx,%rdi), %xmm0
movups %xmm0, (%r8)
jmp 0x972ed
movq %rax, %rcx
cmpl %edx, %ecx
jne 0x97340
cmpl %eax, %ecx
je 0x9730c
movq %rcx, %rax
shlq $0x4, %rax
movl -0x38(%rbp), %edx
movl %edx, 0xc(%rbx,%rax)
movq -0x40(%rbp), %rdx
movq %rdx, 0x4(%rbx,%rax)
shlq $0x4, %rcx
movl $0xffffffff, (%rbx,%rcx) # imm = 0xFFFFFFFF
movl %r11d, 0x4(%rbx,%rcx)
xorl %eax, %eax
movq %fs:0x28, %rcx
cmpq -0x30(%rbp), %rcx
jne 0x973cd
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %edx, %edi
shlq $0x4, %rdi
leaq (%rbx,%rdi), %rax
movl 0x4(%rbx,%rdi), %r8d
andl %r8d, %esi
andl %r8d, %r12d
cmpl %r15d, %esi
cmovbl %esi, %r12d
cmpl %r12d, %edx
jne 0x97386
movl (%rax), %edx
movq %rcx, %rsi
shlq $0x4, %rsi
movl %edx, (%rbx,%rsi)
movq -0x40(%rbp), %rdx
movq %rdx, 0x4(%rbx,%rsi)
movl -0x38(%rbp), %edx
movl %edx, 0xc(%rbx,%rsi)
movl %r11d, 0x4(%rbx,%rsi)
movl %ecx, (%rax)
jmp 0x9731c
leaq (%rbx,%rdi), %rsi
addq $0x4, %rsi
movq %rcx, %rdi
shlq $0x4, %rdi
movups (%rax), %xmm0
movups %xmm0, (%rbx,%rdi)
movl %r12d, %edi
shlq $0x4, %rdi
movl (%rbx,%rdi), %r12d
cmpl %edx, %r12d
jne 0x9739c
addq %rdi, %rbx
movl %ecx, (%rbx)
movl $0xffffffff, (%rax) # imm = 0xFFFFFFFF
movl -0x38(%rbp), %ecx
movl %ecx, 0x8(%rsi)
movq -0x40(%rbp), %rcx
movq %rcx, (%rsi)
movl %r11d, 0x4(%rax)
jmp 0x9731c
callq 0x29240
| my_hash_update:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov [rbp+var_60], rcx
mov r14, rsi
mov r13, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov rax, [rdi+50h]
test rax, rax
mov [rbp+var_58], rdx
jz short loc_971A3
lea r12, [rbp+var_48]
mov rdi, r14
mov rsi, r12
mov edx, 1
call rax
mov rbx, rax
mov rdx, [r12]
jmp short loc_971B2
loc_971A3:
mov rdx, [r13+8]
mov [rbp+var_48], rdx
mov rbx, [r13+0]
add rbx, r14
loc_971B2:
mov rdi, [r13+68h]
mov rsi, rbx
call qword ptr [r13+58h]
test byte ptr [r13+20h], 1
jz short loc_97208
mov rcx, [rbp+var_48]
lea r8, [rbp+var_40]
mov rdi, r13
mov r15d, eax
mov esi, eax
mov rdx, rbx
call my_hash_first_from_hash_value
test rax, rax
jz short loc_97205
lea r12, [rbp+var_40]
loc_971E5:
cmp rax, r14
jnz loc_972B0
mov rdx, [rbp+var_48]
mov rdi, r13
mov rsi, rbx
mov rcx, r12
call my_hash_next
test rax, rax
jnz short loc_971E5
loc_97205:
mov eax, r15d
loc_97208:
mov [rbp+var_4C], eax
mov rbx, [r13+28h]
mov r12, [r13+10h]
mov r15d, [r13+18h]
mov rax, [r13+58h]
mov rdi, [r13+68h]
mov rdx, [rbp+var_60]
test rdx, rdx
jnz short loc_9722C
mov rdx, [r13+8]
loc_9722C:
mov rsi, [rbp+var_58]
call rax
mov edi, 0FFFFFFFFh
lea rsi, [r12+rdi]
mov ecx, esi
and ecx, eax
shr r12, 1
dec r12d
and eax, r12d
cmp ecx, r15d
cmovb eax, ecx
mov ecx, esi
mov r11d, [rbp+var_4C]
and ecx, r11d
mov edx, r11d
and edx, r12d
cmp ecx, r15d
cmovb edx, ecx
mov rcx, rax
shl rcx, 4
lea r8, [rbx+rcx]
cmp [rbx+rcx+8], r14
jz short loc_972B4
loc_97275:
mov ecx, [r8]
cmp rcx, rdi
jz short loc_972B0
mov r9, r8
mov r10, rcx
shl r10, 4
lea r8, [rbx+r10]
cmp [rbx+r10+8], r14
jnz short loc_97275
cmp eax, edx
jz short loc_972BB
mov eax, [r8]
mov edi, [r8+0Ch]
mov [rbp+var_38], edi
mov rdi, [r8+4]
mov [rbp+var_40], rdi
mov [r9], eax
mov rax, rcx
jmp short loc_972ED
loc_972B0:
mov al, 1
jmp short loc_9731E
loc_972B4:
cmp eax, edx
jnz short loc_972C1
mov rcx, rax
loc_972BB:
shl rcx, 4
jmp short loc_97317
loc_972C1:
mov ecx, [r8]
mov r9d, [r8+0Ch]
mov [rbp+var_38], r9d
mov r9, [r8+4]
mov [rbp+var_40], r9
cmp rcx, rdi
jz short loc_972EA
mov rdi, rcx
shl rdi, 4
movups xmm0, xmmword ptr [rbx+rdi]
movups xmmword ptr [r8], xmm0
jmp short loc_972ED
loc_972EA:
mov rcx, rax
loc_972ED:
cmp ecx, edx
jnz short loc_97340
cmp ecx, eax
jz short loc_9730C
mov rax, rcx
shl rax, 4
mov edx, [rbp+var_38]
mov [rbx+rax+0Ch], edx
mov rdx, [rbp+var_40]
mov [rbx+rax+4], rdx
loc_9730C:
shl rcx, 4
mov dword ptr [rbx+rcx], 0FFFFFFFFh
loc_97317:
mov [rbx+rcx+4], r11d
loc_9731C:
xor eax, eax
loc_9731E:
mov rcx, fs:28h
cmp rcx, [rbp+var_30]
jnz loc_973CD
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_97340:
mov edi, edx
shl rdi, 4
lea rax, [rbx+rdi]
mov r8d, [rbx+rdi+4]
and esi, r8d
and r12d, r8d
cmp esi, r15d
cmovb r12d, esi
cmp edx, r12d
jnz short loc_97386
mov edx, [rax]
mov rsi, rcx
shl rsi, 4
mov [rbx+rsi], edx
mov rdx, [rbp+var_40]
mov [rbx+rsi+4], rdx
mov edx, [rbp+var_38]
mov [rbx+rsi+0Ch], edx
mov [rbx+rsi+4], r11d
mov [rax], ecx
jmp short loc_9731C
loc_97386:
lea rsi, [rbx+rdi]
add rsi, 4
mov rdi, rcx
shl rdi, 4
movups xmm0, xmmword ptr [rax]
movups xmmword ptr [rbx+rdi], xmm0
loc_9739C:
mov edi, r12d
shl rdi, 4
mov r12d, [rbx+rdi]
cmp r12d, edx
jnz short loc_9739C
add rbx, rdi
mov [rbx], ecx
mov dword ptr [rax], 0FFFFFFFFh
mov ecx, [rbp+var_38]
mov [rsi+8], ecx
mov rcx, [rbp+var_40]
mov [rsi], rcx
mov [rax+4], r11d
jmp loc_9731C
loc_973CD:
call ___stack_chk_fail
| char my_hash_update(long long a1, long long a2, long long a3)
{
long long ( *v4)(long long, long long *, long long); // rax
long long v5; // rbx
long long v6; // rdx
int v7; // eax
int v8; // r15d
long long v9; // rax
long long v10; // rbx
unsigned long long v11; // r12
unsigned int v12; // r15d
unsigned int v13; // eax
unsigned int v14; // esi
unsigned int v15; // ecx
int v16; // r12d
long long v17; // rax
unsigned int v18; // edx
unsigned int *v19; // r8
long long v20; // rcx
_DWORD *v21; // r9
int v22; // eax
long long v24; // rcx
long long v25; // rax
long long v26; // rdi
_DWORD *v27; // rax
int v28; // r8d
unsigned int v29; // esi
unsigned int v30; // r12d
long long v31; // rsi
long long v32; // rsi
long long v33; // rdi
int v35; // [rsp+14h] [rbp-4Ch]
long long v36; // [rsp+18h] [rbp-48h] BYREF
long long v37; // [rsp+20h] [rbp-40h] BYREF
unsigned int v38; // [rsp+28h] [rbp-38h]
unsigned long long v39; // [rsp+30h] [rbp-30h]
v39 = __readfsqword(0x28u);
v4 = *(long long ( **)(long long, long long *, long long))(a1 + 80);
if ( v4 )
{
v5 = v4(a2, &v36, 1LL);
v6 = v36;
}
else
{
v6 = *(_QWORD *)(a1 + 8);
v36 = v6;
v5 = a2 + *(_QWORD *)a1;
}
v7 = (*(long long ( **)(_QWORD, long long, long long))(a1 + 88))(*(_QWORD *)(a1 + 104), v5, v6);
if ( (*(_BYTE *)(a1 + 32) & 1) != 0 )
{
v8 = v7;
v9 = my_hash_first_from_hash_value((_QWORD *)a1, v7, v5, v36, (unsigned int *)&v37);
if ( v9 )
{
while ( v9 == a2 )
{
v9 = my_hash_next((_QWORD *)a1, v5, v36, &v37);
if ( !v9 )
goto LABEL_8;
}
return 1;
}
LABEL_8:
v7 = v8;
}
v35 = v7;
v10 = *(_QWORD *)(a1 + 40);
v11 = *(_QWORD *)(a1 + 16);
v12 = *(_DWORD *)(a1 + 24);
v13 = (*(long long ( **)(_QWORD, long long))(a1 + 88))(*(_QWORD *)(a1 + 104), a3);
v14 = v11 - 1;
v15 = v13 & (v11 - 1);
v16 = (v11 >> 1) - 1;
v17 = v16 & v13;
if ( v15 < v12 )
v17 = v15;
v18 = v16 & v35;
if ( (v35 & v14) < v12 )
v18 = v35 & v14;
v19 = (unsigned int *)(v10 + 16 * v17);
if ( *((_QWORD *)v19 + 1) != a2 )
{
while ( 1 )
{
v20 = *v19;
if ( v20 == 0xFFFFFFFFLL )
return 1;
v21 = v19;
v19 = (unsigned int *)(v10 + 16 * v20);
if ( *((_QWORD *)v19 + 1) == a2 )
{
if ( (_DWORD)v17 == v18 )
goto LABEL_21;
v22 = *v19;
v38 = v19[3];
v37 = *(_QWORD *)(v19 + 1);
*v21 = v22;
LODWORD(v17) = v20;
goto LABEL_25;
}
}
}
if ( (_DWORD)v17 == v18 )
{
v20 = v17;
LABEL_21:
v24 = 16 * v20;
}
else
{
v20 = *v19;
v38 = v19[3];
v37 = *(_QWORD *)(v19 + 1);
if ( v20 == 0xFFFFFFFFLL )
v20 = v17;
else
*(_OWORD *)v19 = *(_OWORD *)(v10 + 16 * v20);
LABEL_25:
if ( (_DWORD)v20 != v18 )
{
v26 = 16LL * v18;
v27 = (_DWORD *)(v10 + v26);
v28 = *(_DWORD *)(v10 + v26 + 4);
v29 = v28 & v14;
v30 = v28 & v16;
if ( v29 < v12 )
v30 = v29;
if ( v18 == v30 )
{
v31 = 16 * v20;
*(_DWORD *)(v10 + v31) = *v27;
*(_QWORD *)(v10 + v31 + 4) = v37;
*(_DWORD *)(v10 + v31 + 12) = v38;
*(_DWORD *)(v10 + v31 + 4) = v35;
*v27 = v20;
}
else
{
v32 = v10 + v26 + 4;
*(_OWORD *)(v10 + 16 * v20) = *(_OWORD *)v27;
do
{
v33 = 16LL * v30;
v30 = *(_DWORD *)(v10 + v33);
}
while ( v30 != v18 );
*(_DWORD *)(v33 + v10) = v20;
*v27 = -1;
*(_DWORD *)(v32 + 8) = v38;
*(_QWORD *)v32 = v37;
v27[1] = v35;
}
return 0;
}
if ( (_DWORD)v20 != (_DWORD)v17 )
{
v25 = 16 * v20;
*(_DWORD *)(v10 + v25 + 12) = v38;
*(_QWORD *)(v10 + v25 + 4) = v37;
}
v24 = 16 * v20;
*(_DWORD *)(v10 + v24) = -1;
}
*(_DWORD *)(v10 + v24 + 4) = v35;
return 0;
}
| my_hash_update:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV qword ptr [RBP + -0x60],RCX
MOV R14,RSI
MOV R13,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RDI + 0x50]
TEST RAX,RAX
MOV qword ptr [RBP + -0x58],RDX
JZ 0x001971a3
LEA R12,[RBP + -0x48]
MOV RDI,R14
MOV RSI,R12
MOV EDX,0x1
CALL RAX
MOV RBX,RAX
MOV RDX,qword ptr [R12]
JMP 0x001971b2
LAB_001971a3:
MOV RDX,qword ptr [R13 + 0x8]
MOV qword ptr [RBP + -0x48],RDX
MOV RBX,qword ptr [R13]
ADD RBX,R14
LAB_001971b2:
MOV RDI,qword ptr [R13 + 0x68]
MOV RSI,RBX
CALL qword ptr [R13 + 0x58]
TEST byte ptr [R13 + 0x20],0x1
JZ 0x00197208
MOV RCX,qword ptr [RBP + -0x48]
LEA R8,[RBP + -0x40]
MOV RDI,R13
MOV R15D,EAX
MOV ESI,EAX
MOV RDX,RBX
CALL 0x00196a07
TEST RAX,RAX
JZ 0x00197205
LEA R12,[RBP + -0x40]
LAB_001971e5:
CMP RAX,R14
JNZ 0x001972b0
MOV RDX,qword ptr [RBP + -0x48]
MOV RDI,R13
MOV RSI,RBX
MOV RCX,R12
CALL 0x00196b60
TEST RAX,RAX
JNZ 0x001971e5
LAB_00197205:
MOV EAX,R15D
LAB_00197208:
MOV dword ptr [RBP + -0x4c],EAX
MOV RBX,qword ptr [R13 + 0x28]
MOV R12,qword ptr [R13 + 0x10]
MOV R15D,dword ptr [R13 + 0x18]
MOV RAX,qword ptr [R13 + 0x58]
MOV RDI,qword ptr [R13 + 0x68]
MOV RDX,qword ptr [RBP + -0x60]
TEST RDX,RDX
JNZ 0x0019722c
MOV RDX,qword ptr [R13 + 0x8]
LAB_0019722c:
MOV RSI,qword ptr [RBP + -0x58]
CALL RAX
MOV EDI,0xffffffff
LEA RSI,[R12 + RDI*0x1]
MOV ECX,ESI
AND ECX,EAX
SHR R12,0x1
DEC R12D
AND EAX,R12D
CMP ECX,R15D
CMOVC EAX,ECX
MOV ECX,ESI
MOV R11D,dword ptr [RBP + -0x4c]
AND ECX,R11D
MOV EDX,R11D
AND EDX,R12D
CMP ECX,R15D
CMOVC EDX,ECX
MOV RCX,RAX
SHL RCX,0x4
LEA R8,[RBX + RCX*0x1]
CMP qword ptr [RBX + RCX*0x1 + 0x8],R14
JZ 0x001972b4
LAB_00197275:
MOV ECX,dword ptr [R8]
CMP RCX,RDI
JZ 0x001972b0
MOV R9,R8
MOV R10,RCX
SHL R10,0x4
LEA R8,[RBX + R10*0x1]
CMP qword ptr [RBX + R10*0x1 + 0x8],R14
JNZ 0x00197275
CMP EAX,EDX
JZ 0x001972bb
MOV EAX,dword ptr [R8]
MOV EDI,dword ptr [R8 + 0xc]
MOV dword ptr [RBP + -0x38],EDI
MOV RDI,qword ptr [R8 + 0x4]
MOV qword ptr [RBP + -0x40],RDI
MOV dword ptr [R9],EAX
MOV RAX,RCX
JMP 0x001972ed
LAB_001972b0:
MOV AL,0x1
JMP 0x0019731e
LAB_001972b4:
CMP EAX,EDX
JNZ 0x001972c1
MOV RCX,RAX
LAB_001972bb:
SHL RCX,0x4
JMP 0x00197317
LAB_001972c1:
MOV ECX,dword ptr [R8]
MOV R9D,dword ptr [R8 + 0xc]
MOV dword ptr [RBP + -0x38],R9D
MOV R9,qword ptr [R8 + 0x4]
MOV qword ptr [RBP + -0x40],R9
CMP RCX,RDI
JZ 0x001972ea
MOV RDI,RCX
SHL RDI,0x4
MOVUPS XMM0,xmmword ptr [RBX + RDI*0x1]
MOVUPS xmmword ptr [R8],XMM0
JMP 0x001972ed
LAB_001972ea:
MOV RCX,RAX
LAB_001972ed:
CMP ECX,EDX
JNZ 0x00197340
CMP ECX,EAX
JZ 0x0019730c
MOV RAX,RCX
SHL RAX,0x4
MOV EDX,dword ptr [RBP + -0x38]
MOV dword ptr [RBX + RAX*0x1 + 0xc],EDX
MOV RDX,qword ptr [RBP + -0x40]
MOV qword ptr [RBX + RAX*0x1 + 0x4],RDX
LAB_0019730c:
SHL RCX,0x4
MOV dword ptr [RBX + RCX*0x1],0xffffffff
LAB_00197317:
MOV dword ptr [RBX + RCX*0x1 + 0x4],R11D
LAB_0019731c:
XOR EAX,EAX
LAB_0019731e:
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x30]
JNZ 0x001973cd
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00197340:
MOV EDI,EDX
SHL RDI,0x4
LEA RAX,[RBX + RDI*0x1]
MOV R8D,dword ptr [RBX + RDI*0x1 + 0x4]
AND ESI,R8D
AND R12D,R8D
CMP ESI,R15D
CMOVC R12D,ESI
CMP EDX,R12D
JNZ 0x00197386
MOV EDX,dword ptr [RAX]
MOV RSI,RCX
SHL RSI,0x4
MOV dword ptr [RBX + RSI*0x1],EDX
MOV RDX,qword ptr [RBP + -0x40]
MOV qword ptr [RBX + RSI*0x1 + 0x4],RDX
MOV EDX,dword ptr [RBP + -0x38]
MOV dword ptr [RBX + RSI*0x1 + 0xc],EDX
MOV dword ptr [RBX + RSI*0x1 + 0x4],R11D
MOV dword ptr [RAX],ECX
JMP 0x0019731c
LAB_00197386:
LEA RSI,[RBX + RDI*0x1]
ADD RSI,0x4
MOV RDI,RCX
SHL RDI,0x4
MOVUPS XMM0,xmmword ptr [RAX]
MOVUPS xmmword ptr [RBX + RDI*0x1],XMM0
LAB_0019739c:
MOV EDI,R12D
SHL RDI,0x4
MOV R12D,dword ptr [RBX + RDI*0x1]
CMP R12D,EDX
JNZ 0x0019739c
ADD RBX,RDI
MOV dword ptr [RBX],ECX
MOV dword ptr [RAX],0xffffffff
MOV ECX,dword ptr [RBP + -0x38]
MOV dword ptr [RSI + 0x8],ECX
MOV RCX,qword ptr [RBP + -0x40]
MOV qword ptr [RSI],RCX
MOV dword ptr [RAX + 0x4],R11D
JMP 0x0019731c
LAB_001973cd:
CALL 0x00129240
|
int8 my_hash_update(long *param_1,long param_2,int8 param_3,long param_4)
{
uint *puVar1;
uint uVar2;
uint uVar3;
uint uVar4;
uint uVar5;
uint uVar6;
uint uVar7;
long lVar8;
long lVar9;
ulong uVar10;
int8 uVar11;
uint uVar12;
ulong uVar13;
uint uVar14;
uint *puVar15;
uint uVar16;
long in_FS_OFFSET;
long local_50;
int8 local_48;
uint local_40;
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
if ((code *)param_1[10] == (code *)0x0) {
local_50 = param_1[1];
lVar8 = *param_1 + param_2;
}
else {
lVar8 = (*(code *)param_1[10])(param_2,&local_50,1);
}
uVar5 = (*(code *)param_1[0xb])(param_1[0xd],lVar8,local_50);
if (((*(byte *)(param_1 + 4) & 1) != 0) &&
(lVar9 = my_hash_first_from_hash_value(param_1,uVar5,lVar8,local_50,&local_48), lVar9 != 0)) {
do {
if (lVar9 != param_2) goto LAB_001972b0;
lVar9 = my_hash_next(param_1,lVar8,local_50,&local_48);
} while (lVar9 != 0);
}
lVar8 = param_1[5];
uVar10 = param_1[2];
uVar2 = *(uint *)(param_1 + 3);
if (param_4 == 0) {
param_4 = param_1[1];
}
uVar6 = (*(code *)param_1[0xb])(param_1[0xd],param_3,param_4);
uVar14 = (int)uVar10 - 1;
uVar16 = (int)(uVar10 >> 1) - 1;
uVar7 = uVar6 & uVar16;
if ((uVar14 & uVar6) < uVar2) {
uVar7 = uVar14 & uVar6;
}
uVar10 = (ulong)uVar7;
uVar6 = uVar5 & uVar16;
if ((uVar14 & uVar5) < uVar2) {
uVar6 = uVar14 & uVar5;
}
puVar1 = (uint *)(lVar8 + uVar10 * 0x10);
if (*(long *)(lVar8 + 8 + uVar10 * 0x10) == param_2) {
if (uVar7 != uVar6) {
uVar13 = (ulong)*puVar1;
local_40 = puVar1[3];
local_48 = *(int8 *)(puVar1 + 1);
if (uVar13 != 0xffffffff) {
puVar15 = (uint *)(lVar8 + uVar13 * 0x10);
uVar12 = puVar15[1];
uVar3 = puVar15[2];
uVar4 = puVar15[3];
*puVar1 = *puVar15;
puVar1[1] = uVar12;
puVar1[2] = uVar3;
puVar1[3] = uVar4;
uVar10 = uVar13;
}
goto LAB_001972ed;
}
LAB_001972bb:
lVar9 = uVar10 << 4;
LAB_00197317:
*(uint *)(lVar8 + 4 + lVar9) = uVar5;
}
else {
do {
puVar15 = puVar1;
uVar12 = *puVar15;
uVar10 = (ulong)uVar12;
if (uVar10 == 0xffffffff) goto LAB_001972b0;
puVar1 = (uint *)(lVar8 + uVar10 * 0x10);
} while (*(long *)(lVar8 + 8 + uVar10 * 0x10) != param_2);
if (uVar7 == uVar6) goto LAB_001972bb;
local_40 = puVar1[3];
local_48 = *(int8 *)(puVar1 + 1);
*puVar15 = *puVar1;
uVar7 = uVar12;
LAB_001972ed:
uVar12 = (uint)uVar10;
if (uVar12 == uVar6) {
if (uVar12 != uVar7) {
*(uint *)(lVar8 + 0xc + uVar10 * 0x10) = local_40;
*(int8 *)(lVar8 + 4 + uVar10 * 0x10) = local_48;
}
lVar9 = uVar10 * 0x10;
*(int4 *)(lVar8 + lVar9) = 0xffffffff;
goto LAB_00197317;
}
lVar9 = (ulong)uVar6 * 0x10;
puVar1 = (uint *)(lVar8 + lVar9);
uVar7 = *(uint *)(lVar8 + 4 + lVar9);
uVar14 = uVar14 & uVar7;
uVar7 = uVar16 & uVar7;
if (uVar14 < uVar2) {
uVar7 = uVar14;
}
if (uVar6 == uVar7) {
lVar9 = uVar10 * 0x10;
*(uint *)(lVar8 + lVar9) = *puVar1;
*(int8 *)(lVar8 + 4 + lVar9) = local_48;
*(uint *)(lVar8 + 0xc + lVar9) = local_40;
*(uint *)(lVar8 + 4 + lVar9) = uVar5;
*puVar1 = uVar12;
}
else {
uVar2 = puVar1[1];
uVar14 = puVar1[2];
uVar16 = puVar1[3];
puVar15 = (uint *)(lVar8 + uVar10 * 0x10);
*puVar15 = *puVar1;
puVar15[1] = uVar2;
puVar15[2] = uVar14;
puVar15[3] = uVar16;
do {
uVar10 = (ulong)uVar7;
uVar7 = *(uint *)(lVar8 + uVar10 * 0x10);
} while (uVar7 != uVar6);
*(uint *)(lVar8 + uVar10 * 0x10) = uVar12;
*puVar1 = 0xffffffff;
*(uint *)(lVar8 + lVar9 + 0xc) = local_40;
*(int8 *)(lVar8 + lVar9 + 4) = local_48;
puVar1[1] = uVar5;
}
}
uVar11 = 0;
LAB_0019731e:
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return uVar11;
LAB_001972b0:
uVar11 = 1;
goto LAB_0019731e;
}
| |
45,747 | mark_blocks_free | eloqsql/mysys/my_alloc.c | static inline void mark_blocks_free(MEM_ROOT* root)
{
reg1 USED_MEM *next;
reg2 USED_MEM **last;
/* iterate through (partially) free blocks, mark them free */
last= &root->free;
for (next= root->free; next; next= *(last= &next->next))
{
next->left= next->size - ALIGN_SIZE(sizeof(USED_MEM));
TRASH_MEM(next);
}
/* Combine the free and the used list */
*last= next=root->used;
/* now go through the used blocks and mark them free */
for (; next; next= next->next)
{
next->left= next->size - ALIGN_SIZE(sizeof(USED_MEM));
TRASH_MEM(next);
}
/* Now everything is set; Indicate that nothing is used anymore */
root->used= 0;
root->first_block_usage= 0;
root->block_num= 4;
} | O0 | c | mark_blocks_free:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x3411f
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
subq $0x18, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
jmp 0x34108
jmp 0x3410a
jmp 0x3410c
jmp 0x3410e
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movq (%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0x340eb
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rcx
movq %rcx, -0x10(%rbp)
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
cmpq $0x0, -0x10(%rbp)
je 0x34162
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
subq $0x18, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
jmp 0x3414f
jmp 0x34151
jmp 0x34153
jmp 0x34155
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0x34132
movq -0x8(%rbp), %rax
movq $0x0, 0x8(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x2c(%rax)
movq -0x8(%rbp), %rax
movl $0x4, 0x28(%rax)
popq %rbp
retq
nopw %cs:(%rax,%rax)
| mark_blocks_free:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_18], rax
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rbp+var_10], rax
loc_340EB:
cmp [rbp+var_10], 0
jz short loc_3411F
mov rax, [rbp+var_10]
mov rcx, [rax+10h]
sub rcx, 18h
mov rax, [rbp+var_10]
mov [rax+8], rcx
jmp short $+2
loc_34108:
jmp short $+2
loc_3410A:
jmp short $+2
loc_3410C:
jmp short $+2
loc_3410E:
mov rax, [rbp+var_10]
mov [rbp+var_18], rax
mov rax, [rax]
mov [rbp+var_10], rax
jmp short loc_340EB
loc_3411F:
mov rax, [rbp+var_8]
mov rcx, [rax+8]
mov [rbp+var_10], rcx
mov rax, [rbp+var_18]
mov [rax], rcx
loc_34132:
cmp [rbp+var_10], 0
jz short loc_34162
mov rax, [rbp+var_10]
mov rcx, [rax+10h]
sub rcx, 18h
mov rax, [rbp+var_10]
mov [rax+8], rcx
jmp short $+2
loc_3414F:
jmp short $+2
loc_34151:
jmp short $+2
loc_34153:
jmp short $+2
loc_34155:
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_10], rax
jmp short loc_34132
loc_34162:
mov rax, [rbp+var_8]
mov qword ptr [rax+8], 0
mov rax, [rbp+var_8]
mov dword ptr [rax+2Ch], 0
mov rax, [rbp+var_8]
mov dword ptr [rax+28h], 4
pop rbp
retn
| long long mark_blocks_free(long long a1)
{
long long result; // rax
_QWORD *v2; // [rsp+0h] [rbp-18h]
_QWORD *i; // [rsp+8h] [rbp-10h]
_QWORD *v4; // [rsp+8h] [rbp-10h]
v2 = (_QWORD *)a1;
for ( i = *(_QWORD **)a1; i; i = (_QWORD *)*i )
{
i[1] = i[2] - 24LL;
v2 = i;
}
v4 = *(_QWORD **)(a1 + 8);
*v2 = v4;
while ( v4 )
{
v4[1] = v4[2] - 24LL;
v4 = (_QWORD *)*v4;
}
*(_QWORD *)(a1 + 8) = 0LL;
*(_DWORD *)(a1 + 44) = 0;
result = a1;
*(_DWORD *)(a1 + 40) = 4;
return result;
}
| mark_blocks_free:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x10],RAX
LAB_001340eb:
CMP qword ptr [RBP + -0x10],0x0
JZ 0x0013411f
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x10]
SUB RCX,0x18
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
JMP 0x00134108
LAB_00134108:
JMP 0x0013410a
LAB_0013410a:
JMP 0x0013410c
LAB_0013410c:
JMP 0x0013410e
LAB_0013410e:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x10],RAX
JMP 0x001340eb
LAB_0013411f:
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x10],RCX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
LAB_00134132:
CMP qword ptr [RBP + -0x10],0x0
JZ 0x00134162
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x10]
SUB RCX,0x18
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
JMP 0x0013414f
LAB_0013414f:
JMP 0x00134151
LAB_00134151:
JMP 0x00134153
LAB_00134153:
JMP 0x00134155
LAB_00134155:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x10],RAX
JMP 0x00134132
LAB_00134162:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x8],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x2c],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x28],0x4
POP RBP
RET
|
void mark_blocks_free(int8 *param_1)
{
int8 *local_20;
int8 *local_18;
local_20 = param_1;
for (local_18 = (int8 *)*param_1; local_18 != (int8 *)0x0;
local_18 = (int8 *)*local_18) {
local_18[1] = local_18[2] + -0x18;
local_20 = local_18;
}
local_18 = (int8 *)param_1[1];
*local_20 = local_18;
for (; local_18 != (int8 *)0x0; local_18 = (int8 *)*local_18) {
local_18[1] = local_18[2] + -0x18;
}
param_1[1] = 0;
*(int4 *)((long)param_1 + 0x2c) = 0;
*(int4 *)(param_1 + 5) = 4;
return;
}
| |
45,748 | my_strcasecmp_utf8mb3 | eloqsql/strings/ctype-utf8.c | static
int my_strcasecmp_utf8mb3(CHARSET_INFO *cs, const char *s, const char *t)
{
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
while (s[0] && t[0])
{
my_wc_t s_wc,t_wc;
if ((uchar) s[0] < 128)
{
/*
s[0] is between 0 and 127.
It represents a single byte character.
Convert it into weight according to collation.
*/
s_wc= my_unicase_default_page00[(uchar) s[0]].tolower;
s++;
}
else
{
int res;
/*
Scan a multibyte character.
In the future it is worth to write a special version of my_utf8mb3_uni()
for 0-terminated strings which will not take in account length. Now
we call the regular version of my_utf8mb3_uni() with s+3 in the
last argument. s+3 is enough to scan any multibyte sequence.
Calling the regular version of my_utf8mb3_uni is safe for 0-terminated
strings: we will never lose the end of the string:
If we have 0 character in the middle of a multibyte sequence,
then my_utf8mb3_uni will always return a negative number, so the
loop with finish.
*/
res= my_utf8mb3_uni(cs,&s_wc, (const uchar*)s, (const uchar*) s + 3);
/*
In the case of wrong multibyte sequence we will
call strcmp() for byte-to-byte comparison.
*/
if (res <= 0)
return strcmp(s, t);
s+= res;
/* Convert Unicode code into weight according to collation */
my_tolower_utf8mb3(uni_plane, &s_wc);
}
/* Do the same for the second string */
if ((uchar) t[0] < 128)
{
/* Convert single byte character into weight */
t_wc= my_unicase_default_page00[(uchar) t[0]].tolower;
t++;
}
else
{
int res=my_utf8mb3_uni(cs,&t_wc, (const uchar*)t, (const uchar*) t + 3);
if (res <= 0)
return strcmp(s, t);
t+= res;
/* Convert code into weight */
my_tolower_utf8mb3(uni_plane, &t_wc);
}
/* Now we have two weights, let's compare them */
if ( s_wc != t_wc )
return ((int) s_wc) - ((int) t_wc);
}
return ((int)(uchar)s[0]) - ((int) (uchar) t[0]);
} | O3 | c | my_strcasecmp_utf8mb3:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r13
movb (%rsi), %al
testb %al, %al
je 0x53b6c
movq %rsi, %r14
movq 0x78(%rdi), %r15
leaq 0x2f28af(%rip), %r12 # 0x346350
cmpb $0x0, (%r13)
je 0x53b67
testb %al, %al
js 0x53ac5
movzbl %al, %eax
leaq (%rax,%rax,2), %rax
movl 0x4(%r12,%rax,4), %ebx
movq %rbx, -0x30(%rbp)
incq %r14
jmp 0x53b05
leaq 0x3(%r14), %rcx
leaq -0x30(%rbp), %rsi
movq %r14, %rdx
callq 0x5261b
testl %eax, %eax
jle 0x53b8a
movl %eax, %eax
addq %rax, %r14
movq 0x8(%r15), %rax
movq -0x30(%rbp), %rbx
movzbl %bh, %ecx
movq (%rax,%rcx,8), %rax
testq %rax, %rax
je 0x53b05
movzbl %bl, %ecx
leaq (%rcx,%rcx,2), %rcx
movl 0x4(%rax,%rcx,4), %ebx
movq %rbx, -0x30(%rbp)
movsbq (%r13), %rax
testq %rax, %rax
js 0x53b1d
leaq (%rax,%rax,2), %rax
movl 0x4(%r12,%rax,4), %eax
incq %r13
jmp 0x53b55
leaq 0x3(%r13), %rcx
leaq -0x38(%rbp), %rsi
movq %r13, %rdx
callq 0x5261b
testl %eax, %eax
jle 0x53b8a
movl %eax, %eax
addq %rax, %r13
movq 0x8(%r15), %rcx
movq -0x38(%rbp), %rax
movzbl %ah, %edx
movq (%rcx,%rdx,8), %rcx
testq %rcx, %rcx
je 0x53b55
movzbl %al, %eax
leaq (%rax,%rax,2), %rax
movl 0x4(%rcx,%rax,4), %eax
cmpq %rax, %rbx
jne 0x53b86
movb (%r14), %al
testb %al, %al
jne 0x53aa1
xorl %eax, %eax
movzbl %al, %ebx
jmp 0x53b6e
xorl %ebx, %ebx
movzbl (%r13), %eax
subl %eax, %ebx
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
subl %eax, %ebx
jmp 0x53b75
movq %r14, %rdi
movq %r13, %rsi
callq 0x24490
movl %eax, %ebx
jmp 0x53b75
| my_strcasecmp_utf8mb3:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r13, rdx
mov al, [rsi]
test al, al
jz loc_53B6C
mov r14, rsi
mov r15, [rdi+78h]
lea r12, my_unicase_default_page00
loc_53AA1:
cmp byte ptr [r13+0], 0
jz loc_53B67
test al, al
js short loc_53AC5
movzx eax, al
lea rax, [rax+rax*2]
mov ebx, [r12+rax*4+4]
mov [rbp+var_30], rbx
inc r14
jmp short loc_53B05
loc_53AC5:
lea rcx, [r14+3]
lea rsi, [rbp+var_30]
mov rdx, r14
call my_utf8mb3_uni
test eax, eax
jle loc_53B8A
mov eax, eax
add r14, rax
mov rax, [r15+8]
mov rbx, [rbp+var_30]
movzx ecx, bh
mov rax, [rax+rcx*8]
test rax, rax
jz short loc_53B05
movzx ecx, bl
lea rcx, [rcx+rcx*2]
mov ebx, [rax+rcx*4+4]
mov [rbp+var_30], rbx
loc_53B05:
movsx rax, byte ptr [r13+0]
test rax, rax
js short loc_53B1D
lea rax, [rax+rax*2]
mov eax, [r12+rax*4+4]
inc r13
jmp short loc_53B55
loc_53B1D:
lea rcx, [r13+3]
lea rsi, [rbp+var_38]
mov rdx, r13
call my_utf8mb3_uni
test eax, eax
jle short loc_53B8A
mov eax, eax
add r13, rax
mov rcx, [r15+8]
mov rax, [rbp+var_38]
movzx edx, ah
mov rcx, [rcx+rdx*8]
test rcx, rcx
jz short loc_53B55
movzx eax, al
lea rax, [rax+rax*2]
mov eax, [rcx+rax*4+4]
loc_53B55:
cmp rbx, rax
jnz short loc_53B86
mov al, [r14]
test al, al
jnz loc_53AA1
xor eax, eax
loc_53B67:
movzx ebx, al
jmp short loc_53B6E
loc_53B6C:
xor ebx, ebx
loc_53B6E:
movzx eax, byte ptr [r13+0]
sub ebx, eax
loc_53B75:
mov eax, ebx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_53B86:
sub ebx, eax
jmp short loc_53B75
loc_53B8A:
mov rdi, r14
mov rsi, r13
call _strcmp
mov ebx, eax
jmp short loc_53B75
| long long my_strcasecmp_utf8mb3(long long a1, unsigned __int8 *a2, unsigned __int8 *a3)
{
unsigned __int8 v4; // al
unsigned __int8 *v5; // r14
long long v6; // r15
unsigned long long v7; // rbx
int v8; // eax
long long v9; // rax
long long v10; // rax
unsigned long long v11; // rax
int v12; // eax
long long v13; // rcx
int v14; // ebx
unsigned long long v17; // [rsp+8h] [rbp-38h] BYREF
unsigned long long v18; // [rsp+10h] [rbp-30h] BYREF
v4 = *a2;
if ( *a2 )
{
v5 = a2;
v6 = *(_QWORD *)(a1 + 120);
while ( 1 )
{
if ( !*a3 )
goto LABEL_17;
if ( (v4 & 0x80u) != 0 )
{
v8 = my_utf8mb3_uni(a1, &v18, v5, (unsigned long long)(v5 + 3));
if ( v8 <= 0 )
return (unsigned int)strcmp(v5, a3);
v5 += (unsigned int)v8;
v7 = v18;
v9 = *(_QWORD *)(*(_QWORD *)(v6 + 8) + 8LL * BYTE1(v18));
if ( v9 )
{
v7 = *(unsigned int *)(v9 + 12LL * (unsigned __int8)v18 + 4);
v18 = v7;
}
}
else
{
v7 = (unsigned int)my_unicase_default_page00[3 * v4 + 1];
v18 = v7;
++v5;
}
v10 = (char)*a3;
if ( v10 < 0 )
{
v12 = my_utf8mb3_uni(a1, &v17, a3, (unsigned long long)(a3 + 3));
if ( v12 <= 0 )
return (unsigned int)strcmp(v5, a3);
a3 += (unsigned int)v12;
v11 = v17;
v13 = *(_QWORD *)(*(_QWORD *)(v6 + 8) + 8LL * BYTE1(v17));
if ( v13 )
v11 = *(unsigned int *)(v13 + 12LL * (unsigned __int8)v17 + 4);
}
else
{
v11 = (unsigned int)my_unicase_default_page00[3 * v10 + 1];
++a3;
}
if ( v7 != v11 )
return (unsigned int)(v7 - v11);
v4 = *v5;
if ( !*v5 )
{
v4 = 0;
LABEL_17:
v14 = v4;
return (unsigned int)(v14 - *a3);
}
}
}
v14 = 0;
return (unsigned int)(v14 - *a3);
}
| my_strcasecmp_utf8mb3:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R13,RDX
MOV AL,byte ptr [RSI]
TEST AL,AL
JZ 0x00153b6c
MOV R14,RSI
MOV R15,qword ptr [RDI + 0x78]
LEA R12,[0x446350]
LAB_00153aa1:
CMP byte ptr [R13],0x0
JZ 0x00153b67
TEST AL,AL
JS 0x00153ac5
MOVZX EAX,AL
LEA RAX,[RAX + RAX*0x2]
MOV EBX,dword ptr [R12 + RAX*0x4 + 0x4]
MOV qword ptr [RBP + -0x30],RBX
INC R14
JMP 0x00153b05
LAB_00153ac5:
LEA RCX,[R14 + 0x3]
LEA RSI,[RBP + -0x30]
MOV RDX,R14
CALL 0x0015261b
TEST EAX,EAX
JLE 0x00153b8a
MOV EAX,EAX
ADD R14,RAX
MOV RAX,qword ptr [R15 + 0x8]
MOV RBX,qword ptr [RBP + -0x30]
MOVZX ECX,BH
MOV RAX,qword ptr [RAX + RCX*0x8]
TEST RAX,RAX
JZ 0x00153b05
MOVZX ECX,BL
LEA RCX,[RCX + RCX*0x2]
MOV EBX,dword ptr [RAX + RCX*0x4 + 0x4]
MOV qword ptr [RBP + -0x30],RBX
LAB_00153b05:
MOVSX RAX,byte ptr [R13]
TEST RAX,RAX
JS 0x00153b1d
LEA RAX,[RAX + RAX*0x2]
MOV EAX,dword ptr [R12 + RAX*0x4 + 0x4]
INC R13
JMP 0x00153b55
LAB_00153b1d:
LEA RCX,[R13 + 0x3]
LEA RSI,[RBP + -0x38]
MOV RDX,R13
CALL 0x0015261b
TEST EAX,EAX
JLE 0x00153b8a
MOV EAX,EAX
ADD R13,RAX
MOV RCX,qword ptr [R15 + 0x8]
MOV RAX,qword ptr [RBP + -0x38]
MOVZX EDX,AH
MOV RCX,qword ptr [RCX + RDX*0x8]
TEST RCX,RCX
JZ 0x00153b55
MOVZX EAX,AL
LEA RAX,[RAX + RAX*0x2]
MOV EAX,dword ptr [RCX + RAX*0x4 + 0x4]
LAB_00153b55:
CMP RBX,RAX
JNZ 0x00153b86
MOV AL,byte ptr [R14]
TEST AL,AL
JNZ 0x00153aa1
XOR EAX,EAX
LAB_00153b67:
MOVZX EBX,AL
JMP 0x00153b6e
LAB_00153b6c:
XOR EBX,EBX
LAB_00153b6e:
MOVZX EAX,byte ptr [R13]
SUB EBX,EAX
LAB_00153b75:
MOV EAX,EBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00153b86:
SUB EBX,EAX
JMP 0x00153b75
LAB_00153b8a:
MOV RDI,R14
MOV RSI,R13
CALL 0x00124490
MOV EBX,EAX
JMP 0x00153b75
|
int my_strcasecmp_utf8mb3(long param_1,byte *param_2,byte *param_3)
{
long lVar1;
long lVar2;
byte bVar3;
uint uVar4;
int iVar5;
ulong uVar6;
ulong local_40;
ulong local_38;
bVar3 = *param_2;
if (bVar3 == 0) {
uVar4 = 0;
}
else {
lVar1 = *(long *)(param_1 + 0x78);
do {
if (*param_3 == 0) goto LAB_00153b67;
if ((char)bVar3 < '\0') {
uVar4 = my_utf8mb3_uni();
if ((int)uVar4 < 1) goto LAB_00153b8a;
param_2 = param_2 + uVar4;
lVar2 = *(long *)(*(long *)(lVar1 + 8) + (local_38 >> 8 & 0xff) * 8);
if (lVar2 != 0) {
local_38 = (ulong)*(uint *)(lVar2 + 4 + (local_38 & 0xff) * 0xc);
}
}
else {
local_38 = (ulong)*(uint *)(my_unicase_default_page00 + (ulong)bVar3 * 0xc + 4);
param_2 = param_2 + 1;
}
bVar3 = *param_3;
if ((long)(char)bVar3 < 0) {
uVar4 = my_utf8mb3_uni();
if ((int)uVar4 < 1) {
LAB_00153b8a:
iVar5 = strcmp((char *)param_2,(char *)param_3);
return iVar5;
}
param_3 = param_3 + uVar4;
lVar2 = *(long *)(*(long *)(lVar1 + 8) + (local_40 >> 8 & 0xff) * 8);
uVar6 = local_40;
if (lVar2 != 0) {
uVar6 = (ulong)*(uint *)(lVar2 + 4 + (local_40 & 0xff) * 0xc);
}
}
else {
param_3 = param_3 + 1;
uVar6 = (ulong)*(uint *)(my_unicase_default_page00 + (long)(char)bVar3 * 0xc + 4);
}
if (local_38 != uVar6) {
return (int)local_38 - (int)uVar6;
}
bVar3 = *param_2;
} while (bVar3 != 0);
bVar3 = 0;
LAB_00153b67:
uVar4 = (uint)bVar3;
}
return uVar4 - *param_3;
}
| |
45,749 | minja::chat_template::try_raw_render(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&) const | monkey531[P]llama/common/chat-template.hpp | std::string try_raw_render(
const nlohmann::ordered_json & messages,
const nlohmann::ordered_json & tools,
bool add_generation_prompt,
const nlohmann::ordered_json & extra_context = nlohmann::ordered_json()) const
{
try {
auto prompt = apply(messages, tools, add_generation_prompt, extra_context, /* adjust_inputs= */ false);
// fprintf(stderr, "try_raw_render: %s\n", prompt.c_str());
return prompt;
} catch (const std::exception & e) {
// fprintf(stderr, "try_raw_render error: %s\n", e.what());
return "";
}
} | O3 | cpp | minja::chat_template::try_raw_render(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&) const:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x0, (%rsp)
callq 0xa1994
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
cmpl $0x1, %edx
jne 0x7f13c
movq %r14, %rdi
callq 0x1a390
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x6d11a(%rip), %rdx # 0xec23c
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x22338
callq 0x1ae60
jmp 0x7f0f9
movq %rax, %r14
callq 0x1ae60
movq %r14, %rdi
callq 0x1afb0
movq %rax, %rdi
callq 0x21a05
| _ZNK5minja13chat_template14try_raw_renderERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEESH_bSH_:
push r14
push rbx
push rax
mov rbx, rdi
mov [rsp+18h+var_18], 0
call _ZNK5minja13chat_template5applyERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEESH_bSH_b; minja::chat_template::apply(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,bool,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,bool)
loc_7F0F9:
mov rax, rbx
add rsp, 8
pop rbx
pop r14
retn
mov r14, rax
cmp edx, 1
jnz short loc_7F13C
mov rdi, r14; void *
call ___cxa_begin_catch
lea rax, [rbx+10h]
mov [rbx], rax
lea rdx, aErrorWhileHand_0+34h; ""
mov rdi, rbx
mov rsi, rdx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
call ___cxa_end_catch
jmp short loc_7F0F9
mov r14, rax
call ___cxa_end_catch
loc_7F13C:
mov rdi, r14
call __Unwind_Resume
mov rdi, rax
call __clang_call_terminate
| long long minja::chat_template::try_raw_render(long long a1)
{
minja::chat_template::apply(a1);
return a1;
}
| try_raw_render:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
LAB_0017f0ed:
MOV dword ptr [RSP],0x0
CALL 0x001a1994
LAB_0017f0f9:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* minja::chat_template::try_raw_render(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const&,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const&, bool,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const&) const */
chat_template * __thiscall
minja::chat_template::try_raw_render
(chat_template *this,basic_json *param_1,basic_json *param_2,bool param_3,
basic_json *param_4)
{
int7 in_register_00000009;
/* try { // try from 0017f0ed to 0017f0f8 has its CatchHandler @ 0017f104 */
apply((basic_json *)this,param_1,SUB81(param_2,0),
(basic_json *)CONCAT71(in_register_00000009,param_3),SUB81(param_4,0));
return this;
}
| |
45,750 | my_scan_utf32 | eloqsql/strings/ctype-ucs2.c | static size_t
my_scan_utf32(CHARSET_INFO *cs,
const char *str, const char *end, int sequence_type)
{
const char *str0= str;
switch (sequence_type)
{
case MY_SEQ_SPACES:
for ( ; str < end; )
{
my_wc_t wc;
int res= my_utf32_uni(cs, &wc, (uchar*) str, (uchar*) end);
if (res < 0 || wc != ' ')
break;
str+= res;
}
return (size_t) (str - str0);
case MY_SEQ_NONSPACES:
DBUG_ASSERT(0); /* Not implemented */
/* pass through */
default:
return 0;
}
} | O0 | c | my_scan_utf32:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x40(%rbp)
subl $0x2, %eax
je 0x90a06
jmp 0x909fc
movl -0x40(%rbp), %eax
subl $0x3, %eax
je 0x90a5d
jmp 0x90a63
jmp 0x90a08
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0x90a4c
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
leaq -0x38(%rbp), %rsi
callq 0x8fe70
movl %eax, -0x3c(%rbp)
cmpl $0x0, -0x3c(%rbp)
jl 0x90a37
cmpq $0x20, -0x38(%rbp)
je 0x90a39
jmp 0x90a4c
movl -0x3c(%rbp), %ecx
movq -0x18(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
jmp 0x90a08
movq -0x18(%rbp), %rax
movq -0x30(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x8(%rbp)
jmp 0x90a6b
jmp 0x90a5f
jmp 0x90a61
jmp 0x90a63
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_scan_utf32:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_24], ecx
mov rax, [rbp+var_18]
mov [rbp+var_30], rax
mov eax, [rbp+var_24]
mov [rbp+var_40], eax
sub eax, 2
jz short loc_90A06
jmp short $+2
loc_909FC:
mov eax, [rbp+var_40]
sub eax, 3
jz short loc_90A5D
jmp short loc_90A63
loc_90A06:
jmp short $+2
loc_90A08:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jnb short loc_90A4C
mov rdi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
lea rsi, [rbp+var_38]
call my_utf32_uni
mov [rbp+var_3C], eax
cmp [rbp+var_3C], 0
jl short loc_90A37
cmp [rbp+var_38], 20h ; ' '
jz short loc_90A39
loc_90A37:
jmp short loc_90A4C
loc_90A39:
mov ecx, [rbp+var_3C]
mov rax, [rbp+var_18]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_18], rax
jmp short loc_90A08
loc_90A4C:
mov rax, [rbp+var_18]
mov rcx, [rbp+var_30]
sub rax, rcx
mov [rbp+var_8], rax
jmp short loc_90A6B
loc_90A5D:
jmp short $+2
loc_90A5F:
jmp short $+2
loc_90A61:
jmp short $+2
loc_90A63:
mov [rbp+var_8], 0
loc_90A6B:
mov rax, [rbp+var_8]
add rsp, 40h
pop rbp
retn
| unsigned long long my_scan_utf32(
long long a1,
unsigned long long a2,
unsigned long long a3,
int a4,
long long a5,
long long a6)
{
int v7; // [rsp+4h] [rbp-3Ch]
long long v8; // [rsp+8h] [rbp-38h] BYREF
unsigned long long v9; // [rsp+10h] [rbp-30h]
int v10; // [rsp+1Ch] [rbp-24h]
unsigned long long v11; // [rsp+20h] [rbp-20h]
unsigned long long v12; // [rsp+28h] [rbp-18h]
long long v13; // [rsp+30h] [rbp-10h]
v13 = a1;
v12 = a2;
v11 = a3;
v10 = a4;
v9 = a2;
if ( a4 != 2 )
return 0LL;
while ( v12 < v11 )
{
v7 = my_utf32_uni(v13, (long long)&v8, v12, v11, a5, a6);
if ( v7 < 0 || v8 != 32 )
break;
v12 += v7;
}
return v12 - v9;
}
| my_scan_utf32:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV dword ptr [RBP + -0x24],ECX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x40],EAX
SUB EAX,0x2
JZ 0x00190a06
JMP 0x001909fc
LAB_001909fc:
MOV EAX,dword ptr [RBP + -0x40]
SUB EAX,0x3
JZ 0x00190a5d
JMP 0x00190a63
LAB_00190a06:
JMP 0x00190a08
LAB_00190a08:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x00190a4c
MOV RDI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
LEA RSI,[RBP + -0x38]
CALL 0x0018fe70
MOV dword ptr [RBP + -0x3c],EAX
CMP dword ptr [RBP + -0x3c],0x0
JL 0x00190a37
CMP qword ptr [RBP + -0x38],0x20
JZ 0x00190a39
LAB_00190a37:
JMP 0x00190a4c
LAB_00190a39:
MOV ECX,dword ptr [RBP + -0x3c]
MOV RAX,qword ptr [RBP + -0x18]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00190a08
LAB_00190a4c:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x30]
SUB RAX,RCX
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00190a6b
LAB_00190a5d:
JMP 0x00190a5f
LAB_00190a5f:
JMP 0x00190a61
LAB_00190a61:
JMP 0x00190a63
LAB_00190a63:
MOV qword ptr [RBP + -0x8],0x0
LAB_00190a6b:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x40
POP RBP
RET
|
long my_scan_utf32(int8 param_1,ulong param_2,ulong param_3,int param_4)
{
int iVar1;
long local_40;
ulong local_38;
int4 local_2c;
ulong local_28;
ulong local_20;
int8 local_18;
long local_10;
if (param_4 == 2) {
local_2c = 2;
local_38 = param_2;
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
while (((local_20 < local_28 &&
(iVar1 = my_utf32_uni(local_18,&local_40,local_20,local_28), -1 < iVar1)) &&
(local_40 == 0x20))) {
local_20 = local_20 + (long)iVar1;
}
local_10 = local_20 - local_38;
}
else {
local_10 = 0;
}
return local_10;
}
| |
45,751 | mi_read_key_record | eloqsql/storage/myisam/mi_key.c | int _mi_read_key_record(MI_INFO *info, my_off_t filepos, uchar *buf)
{
fast_mi_writeinfo(info);
if (filepos != HA_OFFSET_ERROR)
{
if (info->lastinx >= 0)
{ /* Read only key */
if (_mi_put_key_in_record(info,(uint) info->lastinx, TRUE, buf))
{
mi_print_error(info->s, HA_ERR_CRASHED);
my_errno=HA_ERR_CRASHED;
return -1;
}
info->update|= HA_STATE_AKTIV; /* We should find a record */
return 0;
}
my_errno=HA_ERR_WRONG_INDEX;
}
return(-1); /* Wrong data to read */
} | O3 | c | mi_read_key_record:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
movq (%rdi), %rax
cmpl $0x0, 0x368(%rax)
jne 0x7c659
movq %r14, %rdi
xorl %esi, %esi
callq 0x7d842
movl $0xffffffff, %ebx # imm = 0xFFFFFFFF
cmpq $-0x1, %r12
je 0x7c6bb
movl 0x1d4(%r14), %esi
testl %esi, %esi
js 0x7c6a4
movq %r14, %rdi
movl $0x1, %edx
movq %r15, %rcx
callq 0x7c6c6
testl %eax, %eax
je 0x7c6b1
movq (%r14), %rax
movq 0x268(%rax), %rsi
movl $0x7e, %edi
callq 0x7be7a
callq 0xa2a4e
movl $0x7e, (%rax)
jmp 0x7c6bb
callq 0xa2a4e
movl $0x7c, (%rax)
jmp 0x7c6bb
orb $0x2, 0x1d0(%r14)
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| _mi_read_key_record:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov r15, rdx
mov r12, rsi
mov r14, rdi
mov rax, [rdi]
cmp dword ptr [rax+368h], 0
jnz short loc_7C659
mov rdi, r14
xor esi, esi
call _mi_writeinfo
loc_7C659:
mov ebx, 0FFFFFFFFh
cmp r12, 0FFFFFFFFFFFFFFFFh
jz short loc_7C6BB
mov esi, [r14+1D4h]
test esi, esi
js short loc_7C6A4
mov rdi, r14
mov edx, 1
mov rcx, r15
call _mi_put_key_in_record
test eax, eax
jz short loc_7C6B1
mov rax, [r14]
mov rsi, [rax+268h]
mov edi, 7Eh ; '~'
call mi_report_error
call _my_thread_var
mov dword ptr [rax], 7Eh ; '~'
jmp short loc_7C6BB
loc_7C6A4:
call _my_thread_var
mov dword ptr [rax], 7Ch ; '|'
jmp short loc_7C6BB
loc_7C6B1:
or byte ptr [r14+1D0h], 2
xor ebx, ebx
loc_7C6BB:
mov eax, ebx
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long mi_read_key_record(unsigned int *a1, long long a2, long long a3)
{
unsigned int v4; // ebx
const char *v5; // rsi
const char *v6; // rsi
if ( !*(_DWORD *)(*(_QWORD *)a1 + 872LL) )
mi_writeinfo(a1, 0LL);
v4 = -1;
if ( a2 != -1 )
{
v5 = (const char *)a1[117];
if ( (int)v5 < 0 )
{
*(_DWORD *)my_thread_var(a1, v5) = 124;
}
else if ( (unsigned int)mi_put_key_in_record(a1, v5, 1LL, a3) )
{
v6 = *(const char **)(*(_QWORD *)a1 + 616LL);
mi_report_error(126, (long long)v6);
*(_DWORD *)my_thread_var(126LL, v6) = 126;
}
else
{
*((_BYTE *)a1 + 464) |= 2u;
return 0;
}
}
return v4;
}
| _mi_read_key_record:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R15,RDX
MOV R12,RSI
MOV R14,RDI
MOV RAX,qword ptr [RDI]
CMP dword ptr [RAX + 0x368],0x0
JNZ 0x0017c659
MOV RDI,R14
XOR ESI,ESI
CALL 0x0017d842
LAB_0017c659:
MOV EBX,0xffffffff
CMP R12,-0x1
JZ 0x0017c6bb
MOV ESI,dword ptr [R14 + 0x1d4]
TEST ESI,ESI
JS 0x0017c6a4
MOV RDI,R14
MOV EDX,0x1
MOV RCX,R15
CALL 0x0017c6c6
TEST EAX,EAX
JZ 0x0017c6b1
MOV RAX,qword ptr [R14]
MOV RSI,qword ptr [RAX + 0x268]
MOV EDI,0x7e
CALL 0x0017be7a
CALL 0x001a2a4e
MOV dword ptr [RAX],0x7e
JMP 0x0017c6bb
LAB_0017c6a4:
CALL 0x001a2a4e
MOV dword ptr [RAX],0x7c
JMP 0x0017c6bb
LAB_0017c6b1:
OR byte ptr [R14 + 0x1d0],0x2
XOR EBX,EBX
LAB_0017c6bb:
MOV EAX,EBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
int8 _mi_read_key_record(long *param_1,long param_2,int8 param_3)
{
int iVar1;
int4 *puVar2;
int8 uVar3;
if (*(int *)(*param_1 + 0x368) == 0) {
_mi_writeinfo(param_1,0);
}
uVar3 = 0xffffffff;
if (param_2 != -1) {
if (*(int *)((long)param_1 + 0x1d4) < 0) {
puVar2 = (int4 *)_my_thread_var();
*puVar2 = 0x7c;
}
else {
iVar1 = _mi_put_key_in_record(param_1,*(int *)((long)param_1 + 0x1d4),1,param_3);
if (iVar1 == 0) {
*(byte *)(param_1 + 0x3a) = *(byte *)(param_1 + 0x3a) | 2;
uVar3 = 0;
}
else {
mi_report_error(0x7e,*(int8 *)(*param_1 + 0x268));
puVar2 = (int4 *)_my_thread_var();
*puVar2 = 0x7e;
}
}
}
return uVar3;
}
| |
45,752 | host_get_code_hash | corpus-core[P]colibri-stateless/src/chains/eth/verifier/call_evmone.c | static evmc_bytes32 host_get_code_hash(void* context, const evmc_address* addr) {
evmone_context_t* ctx = (evmone_context_t*) context;
debug_print_address("get_code_hash for", addr);
evmc_bytes32 result = {0};
keccak(get_code(ctx, addr->bytes), result.bytes);
debug_print_bytes32("get_code_hash result", &result);
return result;
} | O0 | c | host_get_code_hash:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x38(%rbp)
movq %rdi, -0x30(%rbp)
movq %rsi, -0x8(%rbp)
movq %rdx, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rsi
leaq 0xafd67(%rip), %rdi # 0xdb452
callq 0x2b2a0
movq -0x38(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x23140
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x2a980
movl %eax, %ecx
movq %rdx, %rax
movq -0x38(%rbp), %rdx
movl %ecx, -0x28(%rbp)
movq %rax, -0x20(%rbp)
movl -0x28(%rbp), %edi
movq -0x20(%rbp), %rsi
callq 0xa3340
movq -0x38(%rbp), %rsi
leaq 0xafd30(%rip), %rdi # 0xdb464
callq 0x2b2b0
movq -0x30(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| host_get_code_hash:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_38], rdi
mov [rbp+var_30], rdi
mov [rbp+var_8], rsi
mov [rbp+var_10], rdx
mov rax, [rbp+var_8]
mov [rbp+var_18], rax
mov rsi, [rbp+var_10]
lea rdi, aGetCodeHashFor; "get_code_hash for"
call debug_print_address
mov rdi, [rbp+var_38]
xor esi, esi
mov edx, 20h ; ' '
call _memset
mov rdi, [rbp+var_18]
mov rsi, [rbp+var_10]
call get_code
mov ecx, eax
mov rax, rdx
mov rdx, [rbp+var_38]
mov [rbp+var_28], ecx
mov [rbp+var_20], rax
mov edi, [rbp+var_28]
mov rsi, [rbp+var_20]
call keccak
mov rsi, [rbp+var_38]
lea rdi, aGetCodeHashRes; "get_code_hash result"
call debug_print_bytes32
mov rax, [rbp+var_30]
add rsp, 40h
pop rbp
retn
| long long host_get_code_hash(long long a1, long long a2, long long a3)
{
long long v3; // rdx
unsigned int code; // [rsp+18h] [rbp-28h]
debug_print_address();
memset(a1, 0LL, 32LL);
code = get_code(a2, a3);
keccak(code, v3, a1);
debug_print_bytes32();
return a1;
}
| host_get_code_hash:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x38],RDI
MOV qword ptr [RBP + -0x30],RDI
MOV qword ptr [RBP + -0x8],RSI
MOV qword ptr [RBP + -0x10],RDX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RAX
MOV RSI,qword ptr [RBP + -0x10]
LEA RDI,[0x1db452]
CALL 0x0012b2a0
MOV RDI,qword ptr [RBP + -0x38]
XOR ESI,ESI
MOV EDX,0x20
CALL 0x00123140
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x0012a980
MOV ECX,EAX
MOV RAX,RDX
MOV RDX,qword ptr [RBP + -0x38]
MOV dword ptr [RBP + -0x28],ECX
MOV qword ptr [RBP + -0x20],RAX
MOV EDI,dword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x001a3340
MOV RSI,qword ptr [RBP + -0x38]
LEA RDI,[0x1db464]
CALL 0x0012b2b0
MOV RAX,qword ptr [RBP + -0x30]
ADD RSP,0x40
POP RBP
RET
|
void * host_get_code_hash(void *param_1,int8 param_2,int8 param_3)
{
int4 uVar1;
int8 extraout_RDX;
debug_print_address("get_code_hash for");
memset(param_1,0,0x20);
uVar1 = get_code(param_2,param_3);
keccak(uVar1,extraout_RDX,param_1);
debug_print_bytes32("get_code_hash result",param_1);
return param_1;
}
| |
45,753 | host_get_code_hash | corpus-core[P]colibri-stateless/src/chains/eth/verifier/call_evmone.c | static evmc_bytes32 host_get_code_hash(void* context, const evmc_address* addr) {
evmone_context_t* ctx = (evmone_context_t*) context;
debug_print_address("get_code_hash for", addr);
evmc_bytes32 result = {0};
keccak(get_code(ctx, addr->bytes), result.bytes);
debug_print_bytes32("get_code_hash result", &result);
return result;
} | O3 | c | host_get_code_hash:
pushq %rbx
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x274f2
movl %eax, %edi
movq %rdx, %rsi
movq %rbx, %rdx
callq 0x54d10
movq %rbx, %rax
popq %rbx
retq
| host_get_code_hash:
push rbx
mov rbx, rdi
xorps xmm0, xmm0
movups xmmword ptr [rdi+10h], xmm0
movups xmmword ptr [rdi], xmm0
mov rdi, rsi
mov rsi, rdx
call get_code
mov edi, eax
mov rsi, rdx
mov rdx, rbx
call keccak
mov rax, rbx
pop rbx
retn
| _OWORD * host_get_code_hash(_OWORD *a1, long long a2, long long a3)
{
unsigned int code; // eax
long long v4; // rdx
a1[1] = 0LL;
*a1 = 0LL;
code = get_code(a2, a3);
keccak(code, v4, a1);
return a1;
}
| host_get_code_hash:
PUSH RBX
MOV RBX,RDI
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x10],XMM0
MOVUPS xmmword ptr [RDI],XMM0
MOV RDI,RSI
MOV RSI,RDX
CALL 0x001274f2
MOV EDI,EAX
MOV RSI,RDX
MOV RDX,RBX
CALL 0x00154d10
MOV RAX,RBX
POP RBX
RET
|
int8 * host_get_code_hash(int8 *param_1,int8 param_2,int8 param_3)
{
int4 uVar1;
int8 extraout_RDX;
param_1[2] = 0;
param_1[3] = 0;
*param_1 = 0;
param_1[1] = 0;
uVar1 = get_code(param_2,param_3);
keccak(uVar1,extraout_RDX,param_1);
return param_1;
}
| |
45,754 | OpenSubdiv::v3_6_0::Bfr::Surface<double>::evalMultiLinearStencils(double const*, double**) const | NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/surface.cpp | int
Surface<REAL>::evalMultiLinearStencils(REAL const uv[2], REAL *sDeriv[]) const {
//
// Linear evaluation of irregular N-sided faces evaluates one of N
// locally subdivided quad faces and identifies that sub-face -- also
// the origin vertex of the quad. The basis weights are subsequently
// transformed into the four unique values that are then assigned to
// the N vertices of the face.
//
// Assign weights for requested stencils and evaluate:
//
REAL wBuffer[6 * 4];
REAL * wDeriv[6];
int numDerivs = assignWeightsPerDeriv(sDeriv, 4, wBuffer, wDeriv);
int iOrigin = evalMultiLinearBasis(uv, wDeriv);
//
// Transform the four linear weights to four unique stencil weights:
//
int numControlPoints = GetNumControlPoints();
transformLinearQuadWeightsToStencil(wDeriv[0], numControlPoints);
if (numDerivs > 1) {
transformLinearQuadWeightsToStencil(wDeriv[1], numControlPoints);
transformLinearQuadWeightsToStencil(wDeriv[2], numControlPoints);
if (numDerivs > 3) {
transformLinearQuadWeightsToStencil(wDeriv[4], numControlPoints);
}
}
//
// Assign the N stencil weights from the four unique values:
//
int iNext = (iOrigin + 1) % numControlPoints;
int iPrev = (iOrigin + numControlPoints - 1) % numControlPoints;
for (int i = 0; i < numControlPoints; ++i) {
int wIndex = 2;
if (i == iOrigin) {
wIndex = 0;
} else if (i == iNext) {
wIndex = 1;
} else if (i == iPrev) {
wIndex = 3;
}
sDeriv[0][i] = wDeriv[0][wIndex];
if (numDerivs > 1) {
sDeriv[1][i] = wDeriv[1][wIndex];
sDeriv[2][i] = wDeriv[2][wIndex];
if (numDerivs > 3) {
sDeriv[3][i] = 0.0f;
sDeriv[4][i] = wDeriv[4][wIndex];
sDeriv[5][i] = 0.0f;
}
}
}
return numControlPoints;
} | O0 | cpp | OpenSubdiv::v3_6_0::Bfr::Surface<double>::evalMultiLinearStencils(double const*, double**) const:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp # imm = 0x140
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0x18(%rbp), %rdi
leaq -0xe0(%rbp), %rdx
leaq -0x110(%rbp), %rcx
movl $0x4, %esi
callq 0x1ab980
movq -0x138(%rbp), %rdi
movl %eax, -0x114(%rbp)
movq -0x10(%rbp), %rsi
leaq -0x110(%rbp), %rdx
callq 0xcdbe0
movq -0x138(%rbp), %rdi
movl %eax, -0x118(%rbp)
callq 0xce660
movl %eax, -0x11c(%rbp)
movq -0x110(%rbp), %rdi
movl -0x11c(%rbp), %esi
callq 0x1abb00
cmpl $0x1, -0x114(%rbp)
jle 0x1aeeef
movq -0x108(%rbp), %rdi
movl -0x11c(%rbp), %esi
callq 0x1abb00
movq -0x100(%rbp), %rdi
movl -0x11c(%rbp), %esi
callq 0x1abb00
cmpl $0x3, -0x114(%rbp)
jle 0x1aeeed
movq -0xf0(%rbp), %rdi
movl -0x11c(%rbp), %esi
callq 0x1abb00
jmp 0x1aeeef
movl -0x118(%rbp), %eax
addl $0x1, %eax
cltd
idivl -0x11c(%rbp)
movl %edx, -0x120(%rbp)
movl -0x118(%rbp), %eax
addl -0x11c(%rbp), %eax
subl $0x1, %eax
cltd
idivl -0x11c(%rbp)
movl %edx, -0x124(%rbp)
movl $0x0, -0x128(%rbp)
movl -0x128(%rbp), %eax
cmpl -0x11c(%rbp), %eax
jge 0x1af08e
movl $0x2, -0x12c(%rbp)
movl -0x128(%rbp), %eax
cmpl -0x118(%rbp), %eax
jne 0x1aef61
movl $0x0, -0x12c(%rbp)
jmp 0x1aef97
movl -0x128(%rbp), %eax
cmpl -0x120(%rbp), %eax
jne 0x1aef7b
movl $0x1, -0x12c(%rbp)
jmp 0x1aef95
movl -0x128(%rbp), %eax
cmpl -0x124(%rbp), %eax
jne 0x1aef93
movl $0x3, -0x12c(%rbp)
jmp 0x1aef95
jmp 0x1aef97
movq -0x110(%rbp), %rax
movslq -0x12c(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x18(%rbp), %rax
movq (%rax), %rax
movslq -0x128(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
cmpl $0x1, -0x114(%rbp)
jle 0x1af078
movq -0x108(%rbp), %rax
movslq -0x12c(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x128(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -0x100(%rbp), %rax
movslq -0x12c(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x128(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
cmpl $0x3, -0x114(%rbp)
jle 0x1af076
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0x128(%rbp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movq -0xf0(%rbp), %rax
movslq -0x12c(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x128(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movslq -0x128(%rbp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
jmp 0x1af078
jmp 0x1af07a
movl -0x128(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x128(%rbp)
jmp 0x1aef2b
movl -0x11c(%rbp), %eax
addq $0x140, %rsp # imm = 0x140
popq %rbp
retq
nopl (%rax)
| _ZNK10OpenSubdiv6v3_6_03Bfr7SurfaceIdE23evalMultiLinearStencilsEPKdPPd:
push rbp
mov rbp, rsp
sub rsp, 140h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_8]
mov [rbp+var_138], rax
mov rdi, [rbp+var_18]
lea rdx, [rbp+var_E0]
lea rcx, [rbp+var_110]
mov esi, 4
call _ZN10OpenSubdiv6v3_6_03Bfr12_GLOBAL__N_121assignWeightsPerDerivIdEEiPKPT_iS5_PS5_; OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::assignWeightsPerDeriv<double>(double * const*,int,double *,double **)
mov rdi, [rbp+var_138]
mov [rbp+var_114], eax
mov rsi, [rbp+var_10]
lea rdx, [rbp+var_110]
call __ZNK10OpenSubdiv6v3_6_03Bfr7SurfaceIdE20evalMultiLinearBasisEPKdPPd; OpenSubdiv::v3_6_0::Bfr::Surface<double>::evalMultiLinearBasis(double const*,double **)
mov rdi, [rbp+var_138]
mov [rbp+var_118], eax
call __ZNK10OpenSubdiv6v3_6_03Bfr7SurfaceIdE19GetNumControlPointsEv; OpenSubdiv::v3_6_0::Bfr::Surface<double>::GetNumControlPoints(void)
mov [rbp+var_11C], eax
mov rdi, [rbp+var_110]
mov esi, [rbp+var_11C]
call _ZN10OpenSubdiv6v3_6_03Bfr12_GLOBAL__N_135transformLinearQuadWeightsToStencilIdEEvPT_i; OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::transformLinearQuadWeightsToStencil<double>(double *,int)
cmp [rbp+var_114], 1
jle short loc_1AEEEF
mov rdi, [rbp+var_108]
mov esi, [rbp+var_11C]
call _ZN10OpenSubdiv6v3_6_03Bfr12_GLOBAL__N_135transformLinearQuadWeightsToStencilIdEEvPT_i; OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::transformLinearQuadWeightsToStencil<double>(double *,int)
mov rdi, [rbp+var_100]
mov esi, [rbp+var_11C]
call _ZN10OpenSubdiv6v3_6_03Bfr12_GLOBAL__N_135transformLinearQuadWeightsToStencilIdEEvPT_i; OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::transformLinearQuadWeightsToStencil<double>(double *,int)
cmp [rbp+var_114], 3
jle short loc_1AEEED
mov rdi, [rbp+var_F0]
mov esi, [rbp+var_11C]
call _ZN10OpenSubdiv6v3_6_03Bfr12_GLOBAL__N_135transformLinearQuadWeightsToStencilIdEEvPT_i; OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::transformLinearQuadWeightsToStencil<double>(double *,int)
loc_1AEEED:
jmp short $+2
loc_1AEEEF:
mov eax, [rbp+var_118]
add eax, 1
cdq
idiv [rbp+var_11C]
mov [rbp+var_120], edx
mov eax, [rbp+var_118]
add eax, [rbp+var_11C]
sub eax, 1
cdq
idiv [rbp+var_11C]
mov [rbp+var_124], edx
mov [rbp+var_128], 0
loc_1AEF2B:
mov eax, [rbp+var_128]
cmp eax, [rbp+var_11C]
jge loc_1AF08E
mov [rbp+var_12C], 2
mov eax, [rbp+var_128]
cmp eax, [rbp+var_118]
jnz short loc_1AEF61
mov [rbp+var_12C], 0
jmp short loc_1AEF97
loc_1AEF61:
mov eax, [rbp+var_128]
cmp eax, [rbp+var_120]
jnz short loc_1AEF7B
mov [rbp+var_12C], 1
jmp short loc_1AEF95
loc_1AEF7B:
mov eax, [rbp+var_128]
cmp eax, [rbp+var_124]
jnz short loc_1AEF93
mov [rbp+var_12C], 3
loc_1AEF93:
jmp short $+2
loc_1AEF95:
jmp short $+2
loc_1AEF97:
mov rax, [rbp+var_110]
movsxd rcx, [rbp+var_12C]
movsd xmm0, qword ptr [rax+rcx*8]
mov rax, [rbp+var_18]
mov rax, [rax]
movsxd rcx, [rbp+var_128]
movsd qword ptr [rax+rcx*8], xmm0
cmp [rbp+var_114], 1
jle loc_1AF078
mov rax, [rbp+var_108]
movsxd rcx, [rbp+var_12C]
movsd xmm0, qword ptr [rax+rcx*8]
mov rax, [rbp+var_18]
mov rax, [rax+8]
movsxd rcx, [rbp+var_128]
movsd qword ptr [rax+rcx*8], xmm0
mov rax, [rbp+var_100]
movsxd rcx, [rbp+var_12C]
movsd xmm0, qword ptr [rax+rcx*8]
mov rax, [rbp+var_18]
mov rax, [rax+10h]
movsxd rcx, [rbp+var_128]
movsd qword ptr [rax+rcx*8], xmm0
cmp [rbp+var_114], 3
jle short loc_1AF076
mov rax, [rbp+var_18]
mov rax, [rax+18h]
movsxd rcx, [rbp+var_128]
xorps xmm0, xmm0
movsd qword ptr [rax+rcx*8], xmm0
mov rax, [rbp+var_F0]
movsxd rcx, [rbp+var_12C]
movsd xmm0, qword ptr [rax+rcx*8]
mov rax, [rbp+var_18]
mov rax, [rax+20h]
movsxd rcx, [rbp+var_128]
movsd qword ptr [rax+rcx*8], xmm0
mov rax, [rbp+var_18]
mov rax, [rax+28h]
movsxd rcx, [rbp+var_128]
xorps xmm0, xmm0
movsd qword ptr [rax+rcx*8], xmm0
loc_1AF076:
jmp short $+2
loc_1AF078:
jmp short $+2
loc_1AF07A:
mov eax, [rbp+var_128]
add eax, 1
mov [rbp+var_128], eax
jmp loc_1AEF2B
loc_1AF08E:
mov eax, [rbp+var_11C]
add rsp, 140h
pop rbp
retn
| long long OpenSubdiv::v3_6_0::Bfr::Surface<double>::evalMultiLinearStencils(
OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *a1,
long long a2,
_QWORD *a3)
{
int v4; // [rsp+14h] [rbp-12Ch]
int i; // [rsp+18h] [rbp-128h]
int NumControlPoints; // [rsp+24h] [rbp-11Ch]
int v7; // [rsp+28h] [rbp-118h]
int v8; // [rsp+2Ch] [rbp-114h]
double *v9; // [rsp+30h] [rbp-110h] BYREF
double *v10; // [rsp+38h] [rbp-108h]
double *v11; // [rsp+40h] [rbp-100h]
double *v12; // [rsp+50h] [rbp-F0h]
_BYTE v13[200]; // [rsp+60h] [rbp-E0h] BYREF
_QWORD *v14; // [rsp+128h] [rbp-18h]
long long v15; // [rsp+130h] [rbp-10h]
OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *v16; // [rsp+138h] [rbp-8h]
v16 = a1;
v15 = a2;
v14 = a3;
v8 = OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::assignWeightsPerDeriv<double>(a3, 4, (long long)v13, &v9);
v7 = OpenSubdiv::v3_6_0::Bfr::Surface<double>::evalMultiLinearBasis(a1, v15, &v9);
NumControlPoints = OpenSubdiv::v3_6_0::Bfr::Surface<double>::GetNumControlPoints(a1);
OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::transformLinearQuadWeightsToStencil<double>(v9, NumControlPoints);
if ( v8 > 1 )
{
OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::transformLinearQuadWeightsToStencil<double>(v10, NumControlPoints);
OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::transformLinearQuadWeightsToStencil<double>(v11, NumControlPoints);
if ( v8 > 3 )
OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::transformLinearQuadWeightsToStencil<double>(v12, NumControlPoints);
}
for ( i = 0; i < NumControlPoints; ++i )
{
v4 = 2;
if ( i == v7 )
{
v4 = 0;
}
else if ( i == (v7 + 1) % NumControlPoints )
{
v4 = 1;
}
else if ( i == (NumControlPoints + v7 - 1) % NumControlPoints )
{
v4 = 3;
}
*(double *)(*v14 + 8LL * i) = v9[v4];
if ( v8 > 1 )
{
*(double *)(v14[1] + 8LL * i) = v10[v4];
*(double *)(v14[2] + 8LL * i) = v11[v4];
if ( v8 > 3 )
{
*(_QWORD *)(v14[3] + 8LL * i) = 0LL;
*(double *)(v14[4] + 8LL * i) = v12[v4];
*(_QWORD *)(v14[5] + 8LL * i) = 0LL;
}
}
}
return (unsigned int)NumControlPoints;
}
| |||
45,755 | OpenSubdiv::v3_6_0::Bfr::Surface<double>::evalMultiLinearStencils(double const*, double**) const | NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/surface.cpp | int
Surface<REAL>::evalMultiLinearStencils(REAL const uv[2], REAL *sDeriv[]) const {
//
// Linear evaluation of irregular N-sided faces evaluates one of N
// locally subdivided quad faces and identifies that sub-face -- also
// the origin vertex of the quad. The basis weights are subsequently
// transformed into the four unique values that are then assigned to
// the N vertices of the face.
//
// Assign weights for requested stencils and evaluate:
//
REAL wBuffer[6 * 4];
REAL * wDeriv[6];
int numDerivs = assignWeightsPerDeriv(sDeriv, 4, wBuffer, wDeriv);
int iOrigin = evalMultiLinearBasis(uv, wDeriv);
//
// Transform the four linear weights to four unique stencil weights:
//
int numControlPoints = GetNumControlPoints();
transformLinearQuadWeightsToStencil(wDeriv[0], numControlPoints);
if (numDerivs > 1) {
transformLinearQuadWeightsToStencil(wDeriv[1], numControlPoints);
transformLinearQuadWeightsToStencil(wDeriv[2], numControlPoints);
if (numDerivs > 3) {
transformLinearQuadWeightsToStencil(wDeriv[4], numControlPoints);
}
}
//
// Assign the N stencil weights from the four unique values:
//
int iNext = (iOrigin + 1) % numControlPoints;
int iPrev = (iOrigin + numControlPoints - 1) % numControlPoints;
for (int i = 0; i < numControlPoints; ++i) {
int wIndex = 2;
if (i == iOrigin) {
wIndex = 0;
} else if (i == iNext) {
wIndex = 1;
} else if (i == iPrev) {
wIndex = 3;
}
sDeriv[0][i] = wDeriv[0][wIndex];
if (numDerivs > 1) {
sDeriv[1][i] = wDeriv[1][wIndex];
sDeriv[2][i] = wDeriv[2][wIndex];
if (numDerivs > 3) {
sDeriv[3][i] = 0.0f;
sDeriv[4][i] = wDeriv[4][wIndex];
sDeriv[5][i] = 0.0f;
}
}
}
return numControlPoints;
} | O1 | cpp | OpenSubdiv::v3_6_0::Bfr::Surface<double>::evalMultiLinearStencils(double const*, double**) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdx, %rbx
movq %rdi, %r14
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
leaq 0x50(%rsp), %rax
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x8(%rdx)
je 0x972f7
cmpq $0x0, 0x10(%rbx)
je 0x972f7
leaq 0x60(%rsp), %rax
movq %rax, 0x18(%rsp)
leaq 0x70(%rsp), %rax
movq %rax, 0x20(%rsp)
movb $0x1, %bpl
cmpq $0x0, 0x18(%rbx)
je 0x972f9
cmpq $0x0, 0x20(%rbx)
je 0x972f9
cmpq $0x0, 0x28(%rbx)
je 0x972f9
leaq 0x80(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0x90(%rsp), %rax
movq %rax, 0x30(%rsp)
leaq 0xa0(%rsp), %rax
movq %rax, 0x38(%rsp)
movb $0x1, %bpl
movb $0x1, %al
movl %eax, 0xc(%rsp)
jmp 0x97301
xorl %ebp, %ebp
movl $0x0, 0xc(%rsp)
leaq 0x10(%rsp), %r15
movq %r14, %rdi
movq %r15, %rdx
callq 0x3c050
movl %eax, %esi
movl 0x8(%r14), %ecx
movq (%r15), %r8
movss 0x1ec32(%rip), %xmm0 # 0xb5f54
movss 0x4(%r8), %xmm2
cvtsi2ss %ecx, %xmm1
mulss %xmm0, %xmm2
movss 0x8(%r8), %xmm3
divss %xmm1, %xmm3
movss 0xc(%r8), %xmm4
mulss %xmm0, %xmm4
addss %xmm3, %xmm2
movaps %xmm2, %xmm5
addss %xmm4, %xmm5
addss (%r8), %xmm5
movss %xmm5, (%r8)
movss %xmm2, 0x4(%r8)
movss %xmm3, 0x8(%r8)
addss %xmm3, %xmm4
movss %xmm4, 0xc(%r8)
testb %bpl, %bpl
je 0x9744d
movq 0x18(%rsp), %rax
movss 0x4(%rax), %xmm2
mulss %xmm0, %xmm2
movss 0x8(%rax), %xmm3
divss %xmm1, %xmm3
movss 0xc(%rax), %xmm4
mulss %xmm0, %xmm4
addss %xmm3, %xmm2
movaps %xmm2, %xmm5
addss %xmm4, %xmm5
addss (%rax), %xmm5
movss %xmm5, (%rax)
movss %xmm2, 0x4(%rax)
movss %xmm3, 0x8(%rax)
addss %xmm3, %xmm4
movss %xmm4, 0xc(%rax)
movq 0x20(%rsp), %rax
movss 0x4(%rax), %xmm2
mulss %xmm0, %xmm2
movss 0x8(%rax), %xmm3
divss %xmm1, %xmm3
movss 0xc(%rax), %xmm4
mulss %xmm0, %xmm4
addss %xmm3, %xmm2
movaps %xmm2, %xmm5
addss %xmm4, %xmm5
addss (%rax), %xmm5
movss %xmm5, (%rax)
movss %xmm2, 0x4(%rax)
movss %xmm3, 0x8(%rax)
addss %xmm3, %xmm4
movss %xmm4, 0xc(%rax)
cmpb $0x0, 0xc(%rsp)
je 0x9744d
movq 0x30(%rsp), %rax
movss 0x4(%rax), %xmm2
mulss %xmm0, %xmm2
movss 0x8(%rax), %xmm3
divss %xmm1, %xmm3
mulss 0xc(%rax), %xmm0
addss %xmm3, %xmm2
movaps %xmm2, %xmm1
addss %xmm0, %xmm1
addss (%rax), %xmm1
movss %xmm1, (%rax)
movss %xmm2, 0x4(%rax)
movss %xmm3, 0x8(%rax)
addss %xmm3, %xmm0
movss %xmm0, 0xc(%rax)
testl %ecx, %ecx
jle 0x97513
leal (%rsi,%rcx), %eax
decl %eax
cltd
idivl %ecx
movq %rdx, 0x48(%rsp)
leal 0x1(%rsi), %eax
cltd
idivl %ecx
movq (%rbx), %rax
movq 0x18(%rsp), %r9
movq 0x20(%rsp), %r10
movq 0x30(%rsp), %r11
movl %esi, %esi
xorl %r14d, %r14d
xorl %r15d, %r15d
cmpq %r15, %rsi
jne 0x9748c
xorl %r13d, %r13d
jmp 0x974a7
movl $0x1, %r13d
cmpq %r15, %rdx
je 0x974a7
xorl %r13d, %r13d
cmpq %r15, 0x48(%rsp)
sete %r13b
orq $0x2, %r13
movss (%r8,%r13,4), %xmm0
movss %xmm0, (%rax,%r15,4)
testb %bpl, %bpl
je 0x97507
leal (,%r13,4), %r12d
movss (%r9,%r12), %xmm0
movq 0x8(%rbx), %rdi
movss %xmm0, (%rdi,%r15,4)
movss (%r10,%r12), %xmm0
movq 0x10(%rbx), %rdi
movss %xmm0, (%rdi,%r15,4)
cmpb $0x0, 0xc(%rsp)
je 0x97507
movq 0x18(%rbx), %rdi
movl %r14d, (%rdi,%r15,4)
movss (%r11,%r13,4), %xmm0
movq 0x20(%rbx), %rdi
movss %xmm0, (%rdi,%r15,4)
movq 0x28(%rbx), %rdi
movl %r14d, (%rdi,%r15,4)
incq %r15
cmpq %r15, %rcx
jne 0x97482
movl %ecx, %eax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
| _ZNK10OpenSubdiv6v3_6_03Bfr7SurfaceIfE23evalMultiLinearStencilsEPKfPPf:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0B8h
mov rbx, rdx
mov r14, rdi
xorps xmm0, xmm0
movaps [rsp+0E8h+var_D8], xmm0
movaps [rsp+0E8h+var_B8], xmm0
movaps [rsp+0E8h+var_C8], xmm0
lea rax, [rsp+0E8h+var_98]
mov qword ptr [rsp+0E8h+var_D8], rax
cmp qword ptr [rdx+8], 0
jz short loc_972F7
cmp qword ptr [rbx+10h], 0
jz short loc_972F7
lea rax, [rsp+0E8h+var_88]
mov qword ptr [rsp+0E8h+var_D8+8], rax
lea rax, [rsp+0E8h+var_78]
mov qword ptr [rsp+0E8h+var_C8], rax
mov bpl, 1
cmp qword ptr [rbx+18h], 0
jz short loc_972F9
cmp qword ptr [rbx+20h], 0
jz short loc_972F9
cmp qword ptr [rbx+28h], 0
jz short loc_972F9
lea rax, [rsp+0E8h+var_68]
mov qword ptr [rsp+0E8h+var_C8+8], rax
lea rax, [rsp+0E8h+var_58]
mov qword ptr [rsp+0E8h+var_B8], rax
lea rax, [rsp+0E8h+var_48]
mov qword ptr [rsp+0E8h+var_B8+8], rax
mov bpl, 1
mov al, 1
mov [rsp+0E8h+var_DC], eax
jmp short loc_97301
loc_972F7:
xor ebp, ebp
loc_972F9:
mov [rsp+0E8h+var_DC], 0
loc_97301:
lea r15, [rsp+0E8h+var_D8]
mov rdi, r14
mov rdx, r15
call __ZNK10OpenSubdiv6v3_6_03Bfr7SurfaceIfE20evalMultiLinearBasisEPKfPPf; OpenSubdiv::v3_6_0::Bfr::Surface<float>::evalMultiLinearBasis(float const*,float **)
mov esi, eax
mov ecx, [r14+8]
mov r8, [r15]
movss xmm0, cs:dword_B5F54
movss xmm2, dword ptr [r8+4]
cvtsi2ss xmm1, ecx
mulss xmm2, xmm0
movss xmm3, dword ptr [r8+8]
divss xmm3, xmm1
movss xmm4, dword ptr [r8+0Ch]
mulss xmm4, xmm0
addss xmm2, xmm3
movaps xmm5, xmm2
addss xmm5, xmm4
addss xmm5, dword ptr [r8]
movss dword ptr [r8], xmm5
movss dword ptr [r8+4], xmm2
movss dword ptr [r8+8], xmm3
addss xmm4, xmm3
movss dword ptr [r8+0Ch], xmm4
test bpl, bpl
jz loc_9744D
mov rax, qword ptr [rsp+0E8h+var_D8+8]
movss xmm2, dword ptr [rax+4]
mulss xmm2, xmm0
movss xmm3, dword ptr [rax+8]
divss xmm3, xmm1
movss xmm4, dword ptr [rax+0Ch]
mulss xmm4, xmm0
addss xmm2, xmm3
movaps xmm5, xmm2
addss xmm5, xmm4
addss xmm5, dword ptr [rax]
movss dword ptr [rax], xmm5
movss dword ptr [rax+4], xmm2
movss dword ptr [rax+8], xmm3
addss xmm4, xmm3
movss dword ptr [rax+0Ch], xmm4
mov rax, qword ptr [rsp+0E8h+var_C8]
movss xmm2, dword ptr [rax+4]
mulss xmm2, xmm0
movss xmm3, dword ptr [rax+8]
divss xmm3, xmm1
movss xmm4, dword ptr [rax+0Ch]
mulss xmm4, xmm0
addss xmm2, xmm3
movaps xmm5, xmm2
addss xmm5, xmm4
addss xmm5, dword ptr [rax]
movss dword ptr [rax], xmm5
movss dword ptr [rax+4], xmm2
movss dword ptr [rax+8], xmm3
addss xmm4, xmm3
movss dword ptr [rax+0Ch], xmm4
cmp byte ptr [rsp+0E8h+var_DC], 0
jz short loc_9744D
mov rax, qword ptr [rsp+0E8h+var_B8]
movss xmm2, dword ptr [rax+4]
mulss xmm2, xmm0
movss xmm3, dword ptr [rax+8]
divss xmm3, xmm1
mulss xmm0, dword ptr [rax+0Ch]
addss xmm2, xmm3
movaps xmm1, xmm2
addss xmm1, xmm0
addss xmm1, dword ptr [rax]
movss dword ptr [rax], xmm1
movss dword ptr [rax+4], xmm2
movss dword ptr [rax+8], xmm3
addss xmm0, xmm3
movss dword ptr [rax+0Ch], xmm0
loc_9744D:
test ecx, ecx
jle loc_97513
lea eax, [rsi+rcx]
dec eax
cdq
idiv ecx
mov [rsp+0E8h+var_A0], rdx
lea eax, [rsi+1]
cdq
idiv ecx
mov rax, [rbx]
mov r9, qword ptr [rsp+0E8h+var_D8+8]
mov r10, qword ptr [rsp+0E8h+var_C8]
mov r11, qword ptr [rsp+0E8h+var_B8]
mov esi, esi
xor r14d, r14d
xor r15d, r15d
loc_97482:
cmp rsi, r15
jnz short loc_9748C
xor r13d, r13d
jmp short loc_974A7
loc_9748C:
mov r13d, 1
cmp rdx, r15
jz short loc_974A7
xor r13d, r13d
cmp [rsp+0E8h+var_A0], r15
setz r13b
or r13, 2
loc_974A7:
movss xmm0, dword ptr [r8+r13*4]
movss dword ptr [rax+r15*4], xmm0
test bpl, bpl
jz short loc_97507
lea r12d, ds:0[r13*4]
movss xmm0, dword ptr [r9+r12]
mov rdi, [rbx+8]
movss dword ptr [rdi+r15*4], xmm0
movss xmm0, dword ptr [r10+r12]
mov rdi, [rbx+10h]
movss dword ptr [rdi+r15*4], xmm0
cmp byte ptr [rsp+0E8h+var_DC], 0
jz short loc_97507
mov rdi, [rbx+18h]
mov [rdi+r15*4], r14d
movss xmm0, dword ptr [r11+r13*4]
mov rdi, [rbx+20h]
movss dword ptr [rdi+r15*4], xmm0
mov rdi, [rbx+28h]
mov [rdi+r15*4], r14d
loc_97507:
inc r15
cmp rcx, r15
jnz loc_97482
loc_97513:
mov eax, ecx
add rsp, 0B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long OpenSubdiv::v3_6_0::Bfr::Surface<float>::evalMultiLinearStencils(
long long a1,
long long a2,
long long *a3)
{
char v4; // bp
int v5; // esi
long long v6; // rcx
float *v7; // r8
float v8; // xmm1_4
float v9; // xmm3_4
float v10; // xmm4_4
float v11; // xmm2_4
float *v12; // rax
float v13; // xmm3_4
float v14; // xmm4_4
float v15; // xmm2_4
float *v16; // rax
float v17; // xmm3_4
float v18; // xmm4_4
float v19; // xmm2_4
float *v20; // rax
float v21; // xmm3_4
float v22; // xmm0_4
float v23; // xmm2_4
long long v24; // rdx
long long v25; // rdx
long long v26; // rax
long long v27; // r9
long long v28; // r10
long long v29; // r11
long long i; // r15
long long v31; // r13
long long v32; // r12
char v34; // [rsp+Ch] [rbp-DCh]
__int128 v35; // [rsp+10h] [rbp-D8h] BYREF
__int128 v36; // [rsp+20h] [rbp-C8h]
__int128 v37; // [rsp+30h] [rbp-B8h]
long long v38; // [rsp+48h] [rbp-A0h]
char v39; // [rsp+50h] [rbp-98h] BYREF
char v40; // [rsp+60h] [rbp-88h] BYREF
char v41; // [rsp+70h] [rbp-78h] BYREF
char v42; // [rsp+80h] [rbp-68h] BYREF
char v43; // [rsp+90h] [rbp-58h] BYREF
char v44; // [rsp+A0h] [rbp-48h] BYREF
v37 = 0LL;
v36 = 0LL;
v35 = (unsigned long long)&v39;
if ( !a3[1] || !a3[2] )
{
v4 = 0;
LABEL_8:
v34 = 0;
goto LABEL_9;
}
*((_QWORD *)&v35 + 1) = &v40;
*(_QWORD *)&v36 = &v41;
v4 = 1;
if ( !a3[3] || !a3[4] || !a3[5] )
goto LABEL_8;
*((_QWORD *)&v36 + 1) = &v42;
*(_QWORD *)&v37 = &v43;
*((_QWORD *)&v37 + 1) = &v44;
v4 = 1;
v34 = 1;
LABEL_9:
v5 = OpenSubdiv::v3_6_0::Bfr::Surface<float>::evalMultiLinearBasis(a1, a2, &v35);
v6 = *(unsigned int *)(a1 + 8);
v7 = (float *)v35;
v8 = (float)(int)v6;
v9 = *(float *)(v35 + 8) / (float)(int)v6;
v10 = *(float *)(v35 + 12) * 0.5;
v11 = (float)(*(float *)(v35 + 4) * 0.5) + v9;
*(float *)v35 = (float)(v11 + v10) + *(float *)v35;
v7[1] = v11;
v7[2] = v9;
v7[3] = v10 + v9;
if ( v4 )
{
v12 = (float *)*((_QWORD *)&v35 + 1);
v13 = *(float *)(*((_QWORD *)&v35 + 1) + 8LL) / v8;
v14 = *(float *)(*((_QWORD *)&v35 + 1) + 12LL) * 0.5;
v15 = (float)(*(float *)(*((_QWORD *)&v35 + 1) + 4LL) * 0.5) + v13;
**((float **)&v35 + 1) = (float)(v15 + v14) + **((float **)&v35 + 1);
v12[1] = v15;
v12[2] = v13;
v12[3] = v14 + v13;
v16 = (float *)v36;
v17 = *(float *)(v36 + 8) / v8;
v18 = *(float *)(v36 + 12) * 0.5;
v19 = (float)(*(float *)(v36 + 4) * 0.5) + v17;
*(float *)v36 = (float)(v19 + v18) + *(float *)v36;
v16[1] = v19;
v16[2] = v17;
v16[3] = v18 + v17;
if ( v34 )
{
v20 = (float *)v37;
v21 = *(float *)(v37 + 8) / v8;
v22 = 0.5 * *(float *)(v37 + 12);
v23 = (float)(*(float *)(v37 + 4) * 0.5) + v21;
*(float *)v37 = (float)(v23 + v22) + *(float *)v37;
v20[1] = v23;
v20[2] = v21;
v20[3] = v22 + v21;
}
}
if ( (int)v6 > 0 )
{
v24 = (unsigned int)((v5 + (int)v6 - 1) >> 31);
LODWORD(v24) = (v5 + (int)v6 - 1) % (int)v6;
v38 = v24;
v25 = (unsigned int)((v5 + 1) >> 31);
v26 = *a3;
v27 = *((_QWORD *)&v35 + 1);
v28 = v36;
v29 = v37;
for ( i = 0LL; i != v6; ++i )
{
if ( v5 == i )
{
v31 = 0LL;
}
else
{
v31 = 1LL;
LODWORD(v25) = (v5 + 1) % (int)v6;
if ( v25 != i )
v31 = (v38 == i) | 2LL;
}
*(float *)(v26 + 4 * i) = v7[v31];
if ( v4 )
{
v32 = (unsigned int)(4 * v31);
*(_DWORD *)(a3[1] + 4 * i) = *(_DWORD *)(v27 + v32);
*(_DWORD *)(a3[2] + 4 * i) = *(_DWORD *)(v28 + v32);
if ( v34 )
{
*(_DWORD *)(a3[3] + 4 * i) = 0;
*(_DWORD *)(a3[4] + 4 * i) = *(_DWORD *)(v29 + 4 * v31);
*(_DWORD *)(a3[5] + 4 * i) = 0;
}
}
}
}
return (unsigned int)v6;
}
| evalMultiLinearStencils:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xb8
MOV RBX,RDX
MOV R14,RDI
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x10],XMM0
MOVAPS xmmword ptr [RSP + 0x30],XMM0
MOVAPS xmmword ptr [RSP + 0x20],XMM0
LEA RAX,[RSP + 0x50]
MOV qword ptr [RSP + 0x10],RAX
CMP qword ptr [RDX + 0x8],0x0
JZ 0x001972f7
CMP qword ptr [RBX + 0x10],0x0
JZ 0x001972f7
LEA RAX,[RSP + 0x60]
MOV qword ptr [RSP + 0x18],RAX
LEA RAX,[RSP + 0x70]
MOV qword ptr [RSP + 0x20],RAX
MOV BPL,0x1
CMP qword ptr [RBX + 0x18],0x0
JZ 0x001972f9
CMP qword ptr [RBX + 0x20],0x0
JZ 0x001972f9
CMP qword ptr [RBX + 0x28],0x0
JZ 0x001972f9
LEA RAX,[RSP + 0x80]
MOV qword ptr [RSP + 0x28],RAX
LEA RAX,[RSP + 0x90]
MOV qword ptr [RSP + 0x30],RAX
LEA RAX,[RSP + 0xa0]
MOV qword ptr [RSP + 0x38],RAX
MOV BPL,0x1
MOV AL,0x1
MOV dword ptr [RSP + 0xc],EAX
JMP 0x00197301
LAB_001972f7:
XOR EBP,EBP
LAB_001972f9:
MOV dword ptr [RSP + 0xc],0x0
LAB_00197301:
LEA R15,[RSP + 0x10]
MOV RDI,R14
MOV RDX,R15
CALL 0x0013c050
MOV ESI,EAX
MOV ECX,dword ptr [R14 + 0x8]
MOV R8,qword ptr [R15]
MOVSS XMM0,dword ptr [0x001b5f54]
MOVSS XMM2,dword ptr [R8 + 0x4]
CVTSI2SS XMM1,ECX
MULSS XMM2,XMM0
MOVSS XMM3,dword ptr [R8 + 0x8]
DIVSS XMM3,XMM1
MOVSS XMM4,dword ptr [R8 + 0xc]
MULSS XMM4,XMM0
ADDSS XMM2,XMM3
MOVAPS XMM5,XMM2
ADDSS XMM5,XMM4
ADDSS XMM5,dword ptr [R8]
MOVSS dword ptr [R8],XMM5
MOVSS dword ptr [R8 + 0x4],XMM2
MOVSS dword ptr [R8 + 0x8],XMM3
ADDSS XMM4,XMM3
MOVSS dword ptr [R8 + 0xc],XMM4
TEST BPL,BPL
JZ 0x0019744d
MOV RAX,qword ptr [RSP + 0x18]
MOVSS XMM2,dword ptr [RAX + 0x4]
MULSS XMM2,XMM0
MOVSS XMM3,dword ptr [RAX + 0x8]
DIVSS XMM3,XMM1
MOVSS XMM4,dword ptr [RAX + 0xc]
MULSS XMM4,XMM0
ADDSS XMM2,XMM3
MOVAPS XMM5,XMM2
ADDSS XMM5,XMM4
ADDSS XMM5,dword ptr [RAX]
MOVSS dword ptr [RAX],XMM5
MOVSS dword ptr [RAX + 0x4],XMM2
MOVSS dword ptr [RAX + 0x8],XMM3
ADDSS XMM4,XMM3
MOVSS dword ptr [RAX + 0xc],XMM4
MOV RAX,qword ptr [RSP + 0x20]
MOVSS XMM2,dword ptr [RAX + 0x4]
MULSS XMM2,XMM0
MOVSS XMM3,dword ptr [RAX + 0x8]
DIVSS XMM3,XMM1
MOVSS XMM4,dword ptr [RAX + 0xc]
MULSS XMM4,XMM0
ADDSS XMM2,XMM3
MOVAPS XMM5,XMM2
ADDSS XMM5,XMM4
ADDSS XMM5,dword ptr [RAX]
MOVSS dword ptr [RAX],XMM5
MOVSS dword ptr [RAX + 0x4],XMM2
MOVSS dword ptr [RAX + 0x8],XMM3
ADDSS XMM4,XMM3
MOVSS dword ptr [RAX + 0xc],XMM4
CMP byte ptr [RSP + 0xc],0x0
JZ 0x0019744d
MOV RAX,qword ptr [RSP + 0x30]
MOVSS XMM2,dword ptr [RAX + 0x4]
MULSS XMM2,XMM0
MOVSS XMM3,dword ptr [RAX + 0x8]
DIVSS XMM3,XMM1
MULSS XMM0,dword ptr [RAX + 0xc]
ADDSS XMM2,XMM3
MOVAPS XMM1,XMM2
ADDSS XMM1,XMM0
ADDSS XMM1,dword ptr [RAX]
MOVSS dword ptr [RAX],XMM1
MOVSS dword ptr [RAX + 0x4],XMM2
MOVSS dword ptr [RAX + 0x8],XMM3
ADDSS XMM0,XMM3
MOVSS dword ptr [RAX + 0xc],XMM0
LAB_0019744d:
TEST ECX,ECX
JLE 0x00197513
LEA EAX,[RSI + RCX*0x1]
DEC EAX
CDQ
IDIV ECX
MOV qword ptr [RSP + 0x48],RDX
LEA EAX,[RSI + 0x1]
CDQ
IDIV ECX
MOV RAX,qword ptr [RBX]
MOV R9,qword ptr [RSP + 0x18]
MOV R10,qword ptr [RSP + 0x20]
MOV R11,qword ptr [RSP + 0x30]
MOV ESI,ESI
XOR R14D,R14D
XOR R15D,R15D
LAB_00197482:
CMP RSI,R15
JNZ 0x0019748c
XOR R13D,R13D
JMP 0x001974a7
LAB_0019748c:
MOV R13D,0x1
CMP RDX,R15
JZ 0x001974a7
XOR R13D,R13D
CMP qword ptr [RSP + 0x48],R15
SETZ R13B
OR R13,0x2
LAB_001974a7:
MOVSS XMM0,dword ptr [R8 + R13*0x4]
MOVSS dword ptr [RAX + R15*0x4],XMM0
TEST BPL,BPL
JZ 0x00197507
LEA R12D,[R13*0x4]
MOVSS XMM0,dword ptr [R9 + R12*0x1]
MOV RDI,qword ptr [RBX + 0x8]
MOVSS dword ptr [RDI + R15*0x4],XMM0
MOVSS XMM0,dword ptr [R10 + R12*0x1]
MOV RDI,qword ptr [RBX + 0x10]
MOVSS dword ptr [RDI + R15*0x4],XMM0
CMP byte ptr [RSP + 0xc],0x0
JZ 0x00197507
MOV RDI,qword ptr [RBX + 0x18]
MOV dword ptr [RDI + R15*0x4],R14D
MOVSS XMM0,dword ptr [R11 + R13*0x4]
MOV RDI,qword ptr [RBX + 0x20]
MOVSS dword ptr [RDI + R15*0x4],XMM0
MOV RDI,qword ptr [RBX + 0x28]
MOV dword ptr [RDI + R15*0x4],R14D
LAB_00197507:
INC R15
CMP RCX,R15
JNZ 0x00197482
LAB_00197513:
MOV EAX,ECX
ADD RSP,0xb8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* OpenSubdiv::v3_6_0::Bfr::Surface<float>::evalMultiLinearStencils(float const*, float**) const */
uint __thiscall
OpenSubdiv::v3_6_0::Bfr::Surface<float>::evalMultiLinearStencils
(Surface<float> *this,float *param_1,float **param_2)
{
uint uVar1;
float *pfVar2;
bool bVar3;
bool bVar4;
float fVar5;
uint uVar6;
ulong uVar7;
ulong uVar8;
ulong uVar9;
float fVar10;
float fVar11;
float fVar12;
float fVar13;
float *local_d8;
float *pfStack_d0;
float *local_c8;
int1 *puStack_c0;
float *local_b8;
int1 *puStack_b0;
float local_98 [4];
float local_88 [4];
float local_78 [4];
int1 local_68 [16];
float local_58 [4];
int1 local_48 [24];
pfStack_d0 = (float *)0x0;
local_b8 = (float *)0x0;
puStack_b0 = (int1 *)0x0;
local_c8 = (float *)0x0;
puStack_c0 = (int1 *)0x0;
local_d8 = local_98;
if ((param_2[1] == (float *)0x0) || (param_2[2] == (float *)0x0)) {
bVar3 = false;
}
else {
pfStack_d0 = local_88;
local_c8 = local_78;
bVar3 = true;
if (((param_2[3] != (float *)0x0) && (param_2[4] != (float *)0x0)) &&
(param_2[5] != (float *)0x0)) {
puStack_c0 = local_68;
local_b8 = local_58;
puStack_b0 = local_48;
bVar3 = true;
bVar4 = true;
goto LAB_00197301;
}
}
bVar4 = false;
LAB_00197301:
uVar6 = evalMultiLinearBasis(this,param_1,&local_d8);
fVar5 = DAT_001b5f54;
uVar1 = *(uint *)(this + 8);
fVar10 = (float)(int)uVar1;
fVar12 = local_d8[2] / fVar10;
fVar13 = local_d8[3] * DAT_001b5f54;
fVar11 = local_d8[1] * DAT_001b5f54 + fVar12;
*local_d8 = fVar11 + fVar13 + *local_d8;
local_d8[1] = fVar11;
local_d8[2] = fVar12;
local_d8[3] = fVar13 + fVar12;
if (bVar3) {
fVar12 = pfStack_d0[2] / fVar10;
fVar11 = pfStack_d0[1] * fVar5 + fVar12;
*pfStack_d0 = fVar11 + pfStack_d0[3] * fVar5 + *pfStack_d0;
pfStack_d0[1] = fVar11;
pfStack_d0[2] = fVar12;
pfStack_d0[3] = pfStack_d0[3] * fVar5 + fVar12;
fVar12 = local_c8[2] / fVar10;
fVar11 = local_c8[1] * fVar5 + fVar12;
*local_c8 = fVar11 + local_c8[3] * fVar5 + *local_c8;
local_c8[1] = fVar11;
local_c8[2] = fVar12;
local_c8[3] = local_c8[3] * fVar5 + fVar12;
if (bVar4) {
fVar10 = local_b8[2] / fVar10;
fVar11 = local_b8[1] * fVar5 + fVar10;
*local_b8 = fVar11 + fVar5 * local_b8[3] + *local_b8;
local_b8[1] = fVar11;
local_b8[2] = fVar10;
local_b8[3] = fVar5 * local_b8[3] + fVar10;
}
}
if (0 < (int)uVar1) {
pfVar2 = *param_2;
uVar9 = 0;
do {
if (uVar6 == uVar9) {
uVar8 = 0;
}
else {
uVar8 = 1;
if (((long)(int)(uVar6 + 1) % (long)(int)uVar1 & 0xffffffffU) != uVar9) {
uVar8 = (ulong)(((long)(int)(uVar6 + uVar1 + -1) % (long)(int)uVar1 & 0xffffffffU) ==
uVar9) | 2;
}
}
pfVar2[uVar9] = local_d8[uVar8];
if (bVar3) {
uVar7 = (ulong)(uint)((int)uVar8 * 4);
param_2[1][uVar9] = *(float *)((long)pfStack_d0 + uVar7);
param_2[2][uVar9] = *(float *)((long)local_c8 + uVar7);
if (bVar4) {
param_2[3][uVar9] = 0.0;
param_2[4][uVar9] = local_b8[uVar8];
param_2[5][uVar9] = 0.0;
}
}
uVar9 = uVar9 + 1;
} while (uVar1 != uVar9);
}
return uVar1;
}
| |
45,756 | OpenSubdiv::v3_6_0::Bfr::Surface<double>::evalMultiLinearStencils(double const*, double**) const | NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/surface.cpp | int
Surface<REAL>::evalMultiLinearStencils(REAL const uv[2], REAL *sDeriv[]) const {
//
// Linear evaluation of irregular N-sided faces evaluates one of N
// locally subdivided quad faces and identifies that sub-face -- also
// the origin vertex of the quad. The basis weights are subsequently
// transformed into the four unique values that are then assigned to
// the N vertices of the face.
//
// Assign weights for requested stencils and evaluate:
//
REAL wBuffer[6 * 4];
REAL * wDeriv[6];
int numDerivs = assignWeightsPerDeriv(sDeriv, 4, wBuffer, wDeriv);
int iOrigin = evalMultiLinearBasis(uv, wDeriv);
//
// Transform the four linear weights to four unique stencil weights:
//
int numControlPoints = GetNumControlPoints();
transformLinearQuadWeightsToStencil(wDeriv[0], numControlPoints);
if (numDerivs > 1) {
transformLinearQuadWeightsToStencil(wDeriv[1], numControlPoints);
transformLinearQuadWeightsToStencil(wDeriv[2], numControlPoints);
if (numDerivs > 3) {
transformLinearQuadWeightsToStencil(wDeriv[4], numControlPoints);
}
}
//
// Assign the N stencil weights from the four unique values:
//
int iNext = (iOrigin + 1) % numControlPoints;
int iPrev = (iOrigin + numControlPoints - 1) % numControlPoints;
for (int i = 0; i < numControlPoints; ++i) {
int wIndex = 2;
if (i == iOrigin) {
wIndex = 0;
} else if (i == iNext) {
wIndex = 1;
} else if (i == iPrev) {
wIndex = 3;
}
sDeriv[0][i] = wDeriv[0][wIndex];
if (numDerivs > 1) {
sDeriv[1][i] = wDeriv[1][wIndex];
sDeriv[2][i] = wDeriv[2][wIndex];
if (numDerivs > 3) {
sDeriv[3][i] = 0.0f;
sDeriv[4][i] = wDeriv[4][wIndex];
sDeriv[5][i] = 0.0f;
}
}
}
return numControlPoints;
} | O3 | cpp | OpenSubdiv::v3_6_0::Bfr::Surface<double>::evalMultiLinearStencils(double const*, double**) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp # imm = 0x118
movq %rdx, %rbx
movq %rdi, %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rsp)
movups %xmm0, 0x18(%rsp)
movq $0x0, 0x38(%rsp)
leaq 0x50(%rsp), %rax
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x8(%rdx)
je 0x9b062
cmpq $0x0, 0x10(%rbx)
je 0x9b062
leaq 0x70(%rsp), %rax
movq %rax, 0x18(%rsp)
leaq 0x90(%rsp), %rax
movq %rax, 0x20(%rsp)
movb $0x1, %bpl
cmpq $0x0, 0x18(%rbx)
je 0x9b064
cmpq $0x0, 0x20(%rbx)
je 0x9b064
cmpq $0x0, 0x28(%rbx)
je 0x9b064
leaq 0xb0(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0xd0(%rsp), %rax
movq %rax, 0x30(%rsp)
leaq 0xf0(%rsp), %rax
movq %rax, 0x38(%rsp)
movb $0x1, %bpl
movb $0x1, %al
movl %eax, 0xc(%rsp)
jmp 0x9b06c
xorl %ebp, %ebp
movl $0x0, 0xc(%rsp)
leaq 0x10(%rsp), %r15
movq %r14, %rdi
movq %r15, %rdx
callq 0x3a450
movl %eax, %esi
movl 0x8(%r14), %ecx
movq (%r15), %r8
movsd 0x1c533(%rip), %xmm0 # 0xb75c0
movsd 0x8(%r8), %xmm2
mulsd %xmm0, %xmm2
movsd 0x10(%r8), %xmm3
cvtsi2sd %ecx, %xmm1
divsd %xmm1, %xmm3
movsd 0x18(%r8), %xmm4
mulsd %xmm0, %xmm4
addsd %xmm3, %xmm2
movapd %xmm2, %xmm5
addsd %xmm4, %xmm5
addsd (%r8), %xmm5
movsd %xmm5, (%r8)
movsd %xmm2, 0x8(%r8)
movsd %xmm3, 0x10(%r8)
addsd %xmm3, %xmm4
movsd %xmm4, 0x18(%r8)
testb %bpl, %bpl
je 0x9b1bc
movq 0x18(%rsp), %rax
movsd 0x8(%rax), %xmm2
mulsd %xmm0, %xmm2
movsd 0x10(%rax), %xmm3
divsd %xmm1, %xmm3
movsd 0x18(%rax), %xmm4
mulsd %xmm0, %xmm4
addsd %xmm3, %xmm2
movapd %xmm2, %xmm5
addsd %xmm4, %xmm5
addsd (%rax), %xmm5
movsd %xmm5, (%rax)
movsd %xmm2, 0x8(%rax)
movsd %xmm3, 0x10(%rax)
addsd %xmm3, %xmm4
movsd %xmm4, 0x18(%rax)
movq 0x20(%rsp), %rax
movsd 0x8(%rax), %xmm2
mulsd %xmm0, %xmm2
movsd 0x10(%rax), %xmm3
divsd %xmm1, %xmm3
movsd 0x18(%rax), %xmm4
mulsd %xmm0, %xmm4
addsd %xmm3, %xmm2
movapd %xmm2, %xmm5
addsd %xmm4, %xmm5
addsd (%rax), %xmm5
movsd %xmm5, (%rax)
movsd %xmm2, 0x8(%rax)
movsd %xmm3, 0x10(%rax)
addsd %xmm3, %xmm4
movsd %xmm4, 0x18(%rax)
cmpb $0x0, 0xc(%rsp)
je 0x9b1bc
movq 0x30(%rsp), %rax
movsd 0x8(%rax), %xmm2
mulsd %xmm0, %xmm2
movsd 0x10(%rax), %xmm3
divsd %xmm1, %xmm3
mulsd 0x18(%rax), %xmm0
addsd %xmm3, %xmm2
movapd %xmm2, %xmm1
addsd %xmm0, %xmm1
addsd (%rax), %xmm1
movsd %xmm1, (%rax)
movsd %xmm2, 0x8(%rax)
movsd %xmm3, 0x10(%rax)
addsd %xmm3, %xmm0
movsd %xmm0, 0x18(%rax)
testl %ecx, %ecx
jle 0x9b282
leal (%rsi,%rcx), %eax
decl %eax
cltd
idivl %ecx
movq %rdx, 0x48(%rsp)
leal 0x1(%rsi), %eax
cltd
idivl %ecx
movq (%rbx), %rax
movq 0x18(%rsp), %r9
movq 0x20(%rsp), %r10
movq 0x30(%rsp), %r11
movl %esi, %esi
xorl %r14d, %r14d
xorl %r15d, %r15d
cmpq %r15, %rsi
jne 0x9b1fb
xorl %r13d, %r13d
jmp 0x9b216
movl $0x1, %r13d
cmpq %r15, %rdx
je 0x9b216
xorl %r13d, %r13d
cmpq %r15, 0x48(%rsp)
sete %r13b
orq $0x2, %r13
movsd (%r8,%r13,8), %xmm0
movsd %xmm0, (%rax,%r15,8)
testb %bpl, %bpl
je 0x9b276
leal (,%r13,8), %r12d
movsd (%r9,%r12), %xmm0
movq 0x8(%rbx), %rdi
movsd %xmm0, (%rdi,%r15,8)
movsd (%r10,%r12), %xmm0
movq 0x10(%rbx), %rdi
movsd %xmm0, (%rdi,%r15,8)
cmpb $0x0, 0xc(%rsp)
je 0x9b276
movq 0x18(%rbx), %rdi
movq %r14, (%rdi,%r15,8)
movsd (%r11,%r13,8), %xmm0
movq 0x20(%rbx), %rdi
movsd %xmm0, (%rdi,%r15,8)
movq 0x28(%rbx), %rdi
movq %r14, (%rdi,%r15,8)
incq %r15
cmpq %r15, %rcx
jne 0x9b1f1
movl %ecx, %eax
addq $0x118, %rsp # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ZNK10OpenSubdiv6v3_6_03Bfr7SurfaceIdE23evalMultiLinearStencilsEPKdPPd:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 118h
mov rbx, rdx
mov r14, rdi
xorps xmm0, xmm0
movups [rsp+148h+var_120], xmm0
movups [rsp+148h+var_130], xmm0
mov [rsp+148h+var_110], 0
lea rax, [rsp+148h+var_F8]
mov [rsp+148h+var_138], rax
cmp qword ptr [rdx+8], 0
jz short loc_9B062
cmp qword ptr [rbx+10h], 0
jz short loc_9B062
lea rax, [rsp+148h+var_D8]
mov qword ptr [rsp+148h+var_130], rax
lea rax, [rsp+148h+var_B8]
mov qword ptr [rsp+148h+var_130+8], rax
mov bpl, 1
cmp qword ptr [rbx+18h], 0
jz short loc_9B064
cmp qword ptr [rbx+20h], 0
jz short loc_9B064
cmp qword ptr [rbx+28h], 0
jz short loc_9B064
lea rax, [rsp+148h+var_98]
mov qword ptr [rsp+148h+var_120], rax
lea rax, [rsp+148h+var_78]
mov qword ptr [rsp+148h+var_120+8], rax
lea rax, [rsp+148h+var_58]
mov [rsp+148h+var_110], rax
mov bpl, 1
mov al, 1
mov [rsp+148h+var_13C], eax
jmp short loc_9B06C
loc_9B062:
xor ebp, ebp
loc_9B064:
mov [rsp+148h+var_13C], 0
loc_9B06C:
lea r15, [rsp+148h+var_138]
mov rdi, r14
mov rdx, r15
call __ZNK10OpenSubdiv6v3_6_03Bfr7SurfaceIdE20evalMultiLinearBasisEPKdPPd; OpenSubdiv::v3_6_0::Bfr::Surface<double>::evalMultiLinearBasis(double const*,double **)
mov esi, eax
mov ecx, [r14+8]
mov r8, [r15]
movsd xmm0, cs:qword_B75C0
movsd xmm2, qword ptr [r8+8]
mulsd xmm2, xmm0
movsd xmm3, qword ptr [r8+10h]
cvtsi2sd xmm1, ecx
divsd xmm3, xmm1
movsd xmm4, qword ptr [r8+18h]
mulsd xmm4, xmm0
addsd xmm2, xmm3
movapd xmm5, xmm2
addsd xmm5, xmm4
addsd xmm5, qword ptr [r8]
movsd qword ptr [r8], xmm5
movsd qword ptr [r8+8], xmm2
movsd qword ptr [r8+10h], xmm3
addsd xmm4, xmm3
movsd qword ptr [r8+18h], xmm4
test bpl, bpl
jz loc_9B1BC
mov rax, qword ptr [rsp+148h+var_130]
movsd xmm2, qword ptr [rax+8]
mulsd xmm2, xmm0
movsd xmm3, qword ptr [rax+10h]
divsd xmm3, xmm1
movsd xmm4, qword ptr [rax+18h]
mulsd xmm4, xmm0
addsd xmm2, xmm3
movapd xmm5, xmm2
addsd xmm5, xmm4
addsd xmm5, qword ptr [rax]
movsd qword ptr [rax], xmm5
movsd qword ptr [rax+8], xmm2
movsd qword ptr [rax+10h], xmm3
addsd xmm4, xmm3
movsd qword ptr [rax+18h], xmm4
mov rax, qword ptr [rsp+148h+var_130+8]
movsd xmm2, qword ptr [rax+8]
mulsd xmm2, xmm0
movsd xmm3, qword ptr [rax+10h]
divsd xmm3, xmm1
movsd xmm4, qword ptr [rax+18h]
mulsd xmm4, xmm0
addsd xmm2, xmm3
movapd xmm5, xmm2
addsd xmm5, xmm4
addsd xmm5, qword ptr [rax]
movsd qword ptr [rax], xmm5
movsd qword ptr [rax+8], xmm2
movsd qword ptr [rax+10h], xmm3
addsd xmm4, xmm3
movsd qword ptr [rax+18h], xmm4
cmp byte ptr [rsp+148h+var_13C], 0
jz short loc_9B1BC
mov rax, qword ptr [rsp+148h+var_120+8]
movsd xmm2, qword ptr [rax+8]
mulsd xmm2, xmm0
movsd xmm3, qword ptr [rax+10h]
divsd xmm3, xmm1
mulsd xmm0, qword ptr [rax+18h]
addsd xmm2, xmm3
movapd xmm1, xmm2
addsd xmm1, xmm0
addsd xmm1, qword ptr [rax]
movsd qword ptr [rax], xmm1
movsd qword ptr [rax+8], xmm2
movsd qword ptr [rax+10h], xmm3
addsd xmm0, xmm3
movsd qword ptr [rax+18h], xmm0
loc_9B1BC:
test ecx, ecx
jle loc_9B282
lea eax, [rsi+rcx]
dec eax
cdq
idiv ecx
mov [rsp+148h+var_100], rdx
lea eax, [rsi+1]
cdq
idiv ecx
mov rax, [rbx]
mov r9, qword ptr [rsp+148h+var_130]
mov r10, qword ptr [rsp+148h+var_130+8]
mov r11, qword ptr [rsp+148h+var_120+8]
mov esi, esi
xor r14d, r14d
xor r15d, r15d
loc_9B1F1:
cmp rsi, r15
jnz short loc_9B1FB
xor r13d, r13d
jmp short loc_9B216
loc_9B1FB:
mov r13d, 1
cmp rdx, r15
jz short loc_9B216
xor r13d, r13d
cmp [rsp+148h+var_100], r15
setz r13b
or r13, 2
loc_9B216:
movsd xmm0, qword ptr [r8+r13*8]
movsd qword ptr [rax+r15*8], xmm0
test bpl, bpl
jz short loc_9B276
lea r12d, ds:0[r13*8]
movsd xmm0, qword ptr [r9+r12]
mov rdi, [rbx+8]
movsd qword ptr [rdi+r15*8], xmm0
movsd xmm0, qword ptr [r10+r12]
mov rdi, [rbx+10h]
movsd qword ptr [rdi+r15*8], xmm0
cmp byte ptr [rsp+148h+var_13C], 0
jz short loc_9B276
mov rdi, [rbx+18h]
mov [rdi+r15*8], r14
movsd xmm0, qword ptr [r11+r13*8]
mov rdi, [rbx+20h]
movsd qword ptr [rdi+r15*8], xmm0
mov rdi, [rbx+28h]
mov [rdi+r15*8], r14
loc_9B276:
inc r15
cmp rcx, r15
jnz loc_9B1F1
loc_9B282:
mov eax, ecx
add rsp, 118h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long OpenSubdiv::v3_6_0::Bfr::Surface<double>::evalMultiLinearStencils(
long long a1,
long long a2,
long long *a3)
{
char v4; // bp
int v5; // esi
long long v6; // rcx
double *v7; // r8
double v8; // xmm1_8
double v9; // xmm3_8
double v10; // xmm4_8
double v11; // xmm2_8
double *v12; // rax
double v13; // xmm3_8
double v14; // xmm4_8
double v15; // xmm2_8
double *v16; // rax
double v17; // xmm3_8
double v18; // xmm4_8
double v19; // xmm2_8
double *v20; // rax
double v21; // xmm3_8
double v22; // xmm0_8
double v23; // xmm2_8
long long v24; // rdx
long long v25; // rdx
long long v26; // rax
__int128 v27; // kr00_16
long long v28; // r11
long long i; // r15
long long v30; // r13
long long v31; // r12
char v33; // [rsp+Ch] [rbp-13Ch]
double *v34; // [rsp+10h] [rbp-138h] BYREF
__int128 v35; // [rsp+18h] [rbp-130h]
__int128 v36; // [rsp+28h] [rbp-120h]
char *v37; // [rsp+38h] [rbp-110h]
long long v38; // [rsp+48h] [rbp-100h]
char v39; // [rsp+50h] [rbp-F8h] BYREF
char v40; // [rsp+70h] [rbp-D8h] BYREF
char v41; // [rsp+90h] [rbp-B8h] BYREF
char v42; // [rsp+B0h] [rbp-98h] BYREF
char v43; // [rsp+D0h] [rbp-78h] BYREF
char v44; // [rsp+F0h] [rbp-58h] BYREF
v36 = 0LL;
v35 = 0LL;
v37 = 0LL;
v34 = (double *)&v39;
if ( !a3[1] || !a3[2] )
{
v4 = 0;
LABEL_8:
v33 = 0;
goto LABEL_9;
}
*(_QWORD *)&v35 = &v40;
*((_QWORD *)&v35 + 1) = &v41;
v4 = 1;
if ( !a3[3] || !a3[4] || !a3[5] )
goto LABEL_8;
*(_QWORD *)&v36 = &v42;
*((_QWORD *)&v36 + 1) = &v43;
v37 = &v44;
v4 = 1;
v33 = 1;
LABEL_9:
v5 = OpenSubdiv::v3_6_0::Bfr::Surface<double>::evalMultiLinearBasis(a1, a2, &v34);
v6 = *(unsigned int *)(a1 + 8);
v7 = v34;
v8 = (double)(int)v6;
v9 = v34[2] / (double)(int)v6;
v10 = v34[3] * 0.5;
v11 = v34[1] * 0.5 + v9;
*v34 = v11 + v10 + *v34;
v7[1] = v11;
v7[2] = v9;
v7[3] = v10 + v9;
if ( v4 )
{
v12 = (double *)v35;
v13 = *(double *)(v35 + 16) / v8;
v14 = *(double *)(v35 + 24) * 0.5;
v15 = *(double *)(v35 + 8) * 0.5 + v13;
*(double *)v35 = v15 + v14 + *(double *)v35;
v12[1] = v15;
v12[2] = v13;
v12[3] = v14 + v13;
v16 = (double *)*((_QWORD *)&v35 + 1);
v17 = *(double *)(*((_QWORD *)&v35 + 1) + 16LL) / v8;
v18 = *(double *)(*((_QWORD *)&v35 + 1) + 24LL) * 0.5;
v19 = *(double *)(*((_QWORD *)&v35 + 1) + 8LL) * 0.5 + v17;
**((double **)&v35 + 1) = v19 + v18 + **((double **)&v35 + 1);
v16[1] = v19;
v16[2] = v17;
v16[3] = v18 + v17;
if ( v33 )
{
v20 = (double *)*((_QWORD *)&v36 + 1);
v21 = *(double *)(*((_QWORD *)&v36 + 1) + 16LL) / v8;
v22 = 0.5 * *(double *)(*((_QWORD *)&v36 + 1) + 24LL);
v23 = *(double *)(*((_QWORD *)&v36 + 1) + 8LL) * 0.5 + v21;
**((double **)&v36 + 1) = v23 + v22 + **((double **)&v36 + 1);
v20[1] = v23;
v20[2] = v21;
v20[3] = v22 + v21;
}
}
if ( (int)v6 > 0 )
{
v24 = (unsigned int)((v5 + (int)v6 - 1) >> 31);
LODWORD(v24) = (v5 + (int)v6 - 1) % (int)v6;
v38 = v24;
v25 = (unsigned int)((v5 + 1) >> 31);
v26 = *a3;
v27 = v35;
v28 = *((_QWORD *)&v36 + 1);
for ( i = 0LL; i != v6; ++i )
{
if ( v5 == i )
{
v30 = 0LL;
}
else
{
v30 = 1LL;
LODWORD(v25) = (v5 + 1) % (int)v6;
if ( v25 != i )
v30 = (v38 == i) | 2LL;
}
*(double *)(v26 + 8 * i) = v7[v30];
if ( v4 )
{
v31 = (unsigned int)(8 * v30);
*(_QWORD *)(a3[1] + 8 * i) = *(_QWORD *)(v27 + v31);
*(_QWORD *)(a3[2] + 8 * i) = *(_QWORD *)(*((_QWORD *)&v27 + 1) + v31);
if ( v33 )
{
*(_QWORD *)(a3[3] + 8 * i) = 0LL;
*(_QWORD *)(a3[4] + 8 * i) = *(_QWORD *)(v28 + 8 * v30);
*(_QWORD *)(a3[5] + 8 * i) = 0LL;
}
}
}
}
return (unsigned int)v6;
}
| evalMultiLinearStencils:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x118
MOV RBX,RDX
MOV R14,RDI
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSP + 0x28],XMM0
MOVUPS xmmword ptr [RSP + 0x18],XMM0
MOV qword ptr [RSP + 0x38],0x0
LEA RAX,[RSP + 0x50]
MOV qword ptr [RSP + 0x10],RAX
CMP qword ptr [RDX + 0x8],0x0
JZ 0x0019b062
CMP qword ptr [RBX + 0x10],0x0
JZ 0x0019b062
LEA RAX,[RSP + 0x70]
MOV qword ptr [RSP + 0x18],RAX
LEA RAX,[RSP + 0x90]
MOV qword ptr [RSP + 0x20],RAX
MOV BPL,0x1
CMP qword ptr [RBX + 0x18],0x0
JZ 0x0019b064
CMP qword ptr [RBX + 0x20],0x0
JZ 0x0019b064
CMP qword ptr [RBX + 0x28],0x0
JZ 0x0019b064
LEA RAX,[RSP + 0xb0]
MOV qword ptr [RSP + 0x28],RAX
LEA RAX,[RSP + 0xd0]
MOV qword ptr [RSP + 0x30],RAX
LEA RAX,[RSP + 0xf0]
MOV qword ptr [RSP + 0x38],RAX
MOV BPL,0x1
MOV AL,0x1
MOV dword ptr [RSP + 0xc],EAX
JMP 0x0019b06c
LAB_0019b062:
XOR EBP,EBP
LAB_0019b064:
MOV dword ptr [RSP + 0xc],0x0
LAB_0019b06c:
LEA R15,[RSP + 0x10]
MOV RDI,R14
MOV RDX,R15
CALL 0x0013a450
MOV ESI,EAX
MOV ECX,dword ptr [R14 + 0x8]
MOV R8,qword ptr [R15]
MOVSD XMM0,qword ptr [0x001b75c0]
MOVSD XMM2,qword ptr [R8 + 0x8]
MULSD XMM2,XMM0
MOVSD XMM3,qword ptr [R8 + 0x10]
CVTSI2SD XMM1,ECX
DIVSD XMM3,XMM1
MOVSD XMM4,qword ptr [R8 + 0x18]
MULSD XMM4,XMM0
ADDSD XMM2,XMM3
MOVAPD XMM5,XMM2
ADDSD XMM5,XMM4
ADDSD XMM5,qword ptr [R8]
MOVSD qword ptr [R8],XMM5
MOVSD qword ptr [R8 + 0x8],XMM2
MOVSD qword ptr [R8 + 0x10],XMM3
ADDSD XMM4,XMM3
MOVSD qword ptr [R8 + 0x18],XMM4
TEST BPL,BPL
JZ 0x0019b1bc
MOV RAX,qword ptr [RSP + 0x18]
MOVSD XMM2,qword ptr [RAX + 0x8]
MULSD XMM2,XMM0
MOVSD XMM3,qword ptr [RAX + 0x10]
DIVSD XMM3,XMM1
MOVSD XMM4,qword ptr [RAX + 0x18]
MULSD XMM4,XMM0
ADDSD XMM2,XMM3
MOVAPD XMM5,XMM2
ADDSD XMM5,XMM4
ADDSD XMM5,qword ptr [RAX]
MOVSD qword ptr [RAX],XMM5
MOVSD qword ptr [RAX + 0x8],XMM2
MOVSD qword ptr [RAX + 0x10],XMM3
ADDSD XMM4,XMM3
MOVSD qword ptr [RAX + 0x18],XMM4
MOV RAX,qword ptr [RSP + 0x20]
MOVSD XMM2,qword ptr [RAX + 0x8]
MULSD XMM2,XMM0
MOVSD XMM3,qword ptr [RAX + 0x10]
DIVSD XMM3,XMM1
MOVSD XMM4,qword ptr [RAX + 0x18]
MULSD XMM4,XMM0
ADDSD XMM2,XMM3
MOVAPD XMM5,XMM2
ADDSD XMM5,XMM4
ADDSD XMM5,qword ptr [RAX]
MOVSD qword ptr [RAX],XMM5
MOVSD qword ptr [RAX + 0x8],XMM2
MOVSD qword ptr [RAX + 0x10],XMM3
ADDSD XMM4,XMM3
MOVSD qword ptr [RAX + 0x18],XMM4
CMP byte ptr [RSP + 0xc],0x0
JZ 0x0019b1bc
MOV RAX,qword ptr [RSP + 0x30]
MOVSD XMM2,qword ptr [RAX + 0x8]
MULSD XMM2,XMM0
MOVSD XMM3,qword ptr [RAX + 0x10]
DIVSD XMM3,XMM1
MULSD XMM0,qword ptr [RAX + 0x18]
ADDSD XMM2,XMM3
MOVAPD XMM1,XMM2
ADDSD XMM1,XMM0
ADDSD XMM1,qword ptr [RAX]
MOVSD qword ptr [RAX],XMM1
MOVSD qword ptr [RAX + 0x8],XMM2
MOVSD qword ptr [RAX + 0x10],XMM3
ADDSD XMM0,XMM3
MOVSD qword ptr [RAX + 0x18],XMM0
LAB_0019b1bc:
TEST ECX,ECX
JLE 0x0019b282
LEA EAX,[RSI + RCX*0x1]
DEC EAX
CDQ
IDIV ECX
MOV qword ptr [RSP + 0x48],RDX
LEA EAX,[RSI + 0x1]
CDQ
IDIV ECX
MOV RAX,qword ptr [RBX]
MOV R9,qword ptr [RSP + 0x18]
MOV R10,qword ptr [RSP + 0x20]
MOV R11,qword ptr [RSP + 0x30]
MOV ESI,ESI
XOR R14D,R14D
XOR R15D,R15D
LAB_0019b1f1:
CMP RSI,R15
JNZ 0x0019b1fb
XOR R13D,R13D
JMP 0x0019b216
LAB_0019b1fb:
MOV R13D,0x1
CMP RDX,R15
JZ 0x0019b216
XOR R13D,R13D
CMP qword ptr [RSP + 0x48],R15
SETZ R13B
OR R13,0x2
LAB_0019b216:
MOVSD XMM0,qword ptr [R8 + R13*0x8]
MOVSD qword ptr [RAX + R15*0x8],XMM0
TEST BPL,BPL
JZ 0x0019b276
LEA R12D,[R13*0x8]
MOVSD XMM0,qword ptr [R9 + R12*0x1]
MOV RDI,qword ptr [RBX + 0x8]
MOVSD qword ptr [RDI + R15*0x8],XMM0
MOVSD XMM0,qword ptr [R10 + R12*0x1]
MOV RDI,qword ptr [RBX + 0x10]
MOVSD qword ptr [RDI + R15*0x8],XMM0
CMP byte ptr [RSP + 0xc],0x0
JZ 0x0019b276
MOV RDI,qword ptr [RBX + 0x18]
MOV qword ptr [RDI + R15*0x8],R14
MOVSD XMM0,qword ptr [R11 + R13*0x8]
MOV RDI,qword ptr [RBX + 0x20]
MOVSD qword ptr [RDI + R15*0x8],XMM0
MOV RDI,qword ptr [RBX + 0x28]
MOV qword ptr [RDI + R15*0x8],R14
LAB_0019b276:
INC R15
CMP RCX,R15
JNZ 0x0019b1f1
LAB_0019b282:
MOV EAX,ECX
ADD RSP,0x118
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* OpenSubdiv::v3_6_0::Bfr::Surface<double>::evalMultiLinearStencils(double const*, double**) const
*/
uint __thiscall
OpenSubdiv::v3_6_0::Bfr::Surface<double>::evalMultiLinearStencils
(Surface<double> *this,double *param_1,double **param_2)
{
uint uVar1;
double *pdVar2;
bool bVar3;
bool bVar4;
double dVar5;
uint uVar6;
ulong uVar7;
ulong uVar8;
ulong uVar9;
double dVar10;
double dVar11;
double dVar12;
double dVar13;
double *local_138;
double *local_130;
double *pdStack_128;
int1 *local_120;
double *pdStack_118;
int1 *local_110;
double local_f8 [4];
double local_d8 [4];
double local_b8 [4];
int1 local_98 [32];
double local_78 [4];
int1 local_58 [40];
local_120 = (int1 *)0x0;
pdStack_118 = (double *)0x0;
local_130 = (double *)0x0;
pdStack_128 = (double *)0x0;
local_110 = (int1 *)0x0;
local_138 = local_f8;
if ((param_2[1] == (double *)0x0) || (param_2[2] == (double *)0x0)) {
bVar3 = false;
}
else {
local_130 = local_d8;
pdStack_128 = local_b8;
bVar3 = true;
if (((param_2[3] != (double *)0x0) && (param_2[4] != (double *)0x0)) &&
(param_2[5] != (double *)0x0)) {
local_120 = local_98;
pdStack_118 = local_78;
local_110 = local_58;
bVar3 = true;
bVar4 = true;
goto LAB_0019b06c;
}
}
bVar4 = false;
LAB_0019b06c:
uVar6 = evalMultiLinearBasis(this,param_1,&local_138);
dVar5 = DAT_001b75c0;
uVar1 = *(uint *)(this + 8);
dVar10 = (double)(int)uVar1;
dVar12 = local_138[2] / dVar10;
dVar13 = local_138[3] * DAT_001b75c0;
dVar11 = local_138[1] * DAT_001b75c0 + dVar12;
*local_138 = dVar11 + dVar13 + *local_138;
local_138[1] = dVar11;
local_138[2] = dVar12;
local_138[3] = dVar13 + dVar12;
if (bVar3) {
dVar12 = local_130[2] / dVar10;
dVar11 = local_130[1] * dVar5 + dVar12;
*local_130 = dVar11 + local_130[3] * dVar5 + *local_130;
local_130[1] = dVar11;
local_130[2] = dVar12;
local_130[3] = local_130[3] * dVar5 + dVar12;
dVar12 = pdStack_128[2] / dVar10;
dVar11 = pdStack_128[1] * dVar5 + dVar12;
*pdStack_128 = dVar11 + pdStack_128[3] * dVar5 + *pdStack_128;
pdStack_128[1] = dVar11;
pdStack_128[2] = dVar12;
pdStack_128[3] = pdStack_128[3] * dVar5 + dVar12;
if (bVar4) {
dVar10 = pdStack_118[2] / dVar10;
dVar11 = pdStack_118[1] * dVar5 + dVar10;
*pdStack_118 = dVar11 + dVar5 * pdStack_118[3] + *pdStack_118;
pdStack_118[1] = dVar11;
pdStack_118[2] = dVar10;
pdStack_118[3] = dVar5 * pdStack_118[3] + dVar10;
}
}
if (0 < (int)uVar1) {
pdVar2 = *param_2;
uVar9 = 0;
do {
if (uVar6 == uVar9) {
uVar8 = 0;
}
else {
uVar8 = 1;
if (((long)(int)(uVar6 + 1) % (long)(int)uVar1 & 0xffffffffU) != uVar9) {
uVar8 = (ulong)(((long)(int)(uVar6 + uVar1 + -1) % (long)(int)uVar1 & 0xffffffffU) ==
uVar9) | 2;
}
}
pdVar2[uVar9] = local_138[uVar8];
if (bVar3) {
uVar7 = (ulong)(uint)((int)uVar8 * 8);
param_2[1][uVar9] = *(double *)((long)local_130 + uVar7);
param_2[2][uVar9] = *(double *)((long)pdStack_128 + uVar7);
if (bVar4) {
param_2[3][uVar9] = 0.0;
param_2[4][uVar9] = pdStack_118[uVar8];
param_2[5][uVar9] = 0.0;
}
}
uVar9 = uVar9 + 1;
} while (uVar1 != uVar9);
}
return uVar1;
}
| |
45,757 | ftxui::borderDashed(std::shared_ptr<ftxui::Node>) | Andrewchistyakov[P]flashcards_lyc/build_O3/_deps/ftxui-src/src/ftxui/dom/border.cpp | Element borderDashed(Element child) {
return std::make_shared<Border>(unpack(std::move(child)), DASHED);
} | O3 | cpp | ftxui::borderDashed(std::shared_ptr<ftxui::Node>):
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rdi, %rbx
movups (%rsi), %xmm0
xorl %ecx, %ecx
movq %rcx, 0x8(%rsi)
leaq 0x20(%rsp), %rax
movaps %xmm0, (%rax)
movq %rcx, (%rsi)
movq %rsp, %rdi
movq %rax, %rsi
callq 0x22adb
movl $0x80, %edi
callq 0xb3e0
movq %rax, %r14
movabsq $0x100000001, %rax # imm = 0x100000001
movq %rax, 0x8(%r14)
leaq 0x35be4(%rip), %rax # 0x570d8
movq %rax, (%r14)
movq %r14, %r15
addq $0x10, %r15
movaps (%rsp), %xmm0
leaq 0x30(%rsp), %rsi
movaps %xmm0, (%rsi)
movq 0x10(%rsp), %rax
movq %rax, 0x10(%rsi)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq %r15, %rdi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x21c4a
leaq 0x30(%rsp), %rdi
callq 0x1503a
movq %r15, (%rbx)
movq %r14, 0x8(%rbx)
movq %rsp, %rdi
callq 0x1503a
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2155a
callq 0x14af8
movq %rbx, %rax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x1503a
movl $0x80, %esi
movq %r14, %rdi
callq 0xb400
jmp 0x21586
movq %rax, %rbx
movq %rsp, %rdi
callq 0x1503a
jmp 0x21593
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x215a2
callq 0x14af8
movq %rbx, %rdi
callq 0xb780
| _ZN5ftxui12borderDashedESt10shared_ptrINS_4NodeEE:
push r15
push r14
push rbx
sub rsp, 50h
mov rbx, rdi
movups xmm0, xmmword ptr [rsi]
xor ecx, ecx
mov [rsi+8], rcx
lea rax, [rsp+68h+var_48]
movaps xmmword ptr [rax], xmm0
mov [rsi], rcx
mov rdi, rsp
mov rsi, rax
call _ZN5ftxui6unpackIJSt10shared_ptrINS_4NodeEEEEESt6vectorIS3_SaIS3_EEDpT_; ftxui::unpack<std::shared_ptr<ftxui::Node>>(std::shared_ptr<ftxui::Node>)
mov edi, 80h; unsigned __int64
call __Znwm; operator new(ulong)
mov r14, rax
mov rax, 100000001h
mov [r14+8], rax
lea rax, off_570D8
mov [r14], rax
mov r15, r14
add r15, 10h
movaps xmm0, [rsp+68h+var_68]
lea rsi, [rsp+68h+var_38]
movaps xmmword ptr [rsi], xmm0
mov rax, [rsp+68h+var_58]
mov [rsi+10h], rax
xorps xmm0, xmm0
movaps [rsp+68h+var_68], xmm0
mov [rsp+68h+var_58], 0
mov rdi, r15
mov edx, 1
xor ecx, ecx
call _ZN5ftxui12_GLOBAL__N_16BorderC2ESt6vectorISt10shared_ptrINS_4NodeEESaIS5_EENS_11BorderStyleESt8optionalINS_5ColorEE; ftxui::`anonymous namespace'::Border::Border(std::vector<std::shared_ptr<ftxui::Node>>,ftxui::BorderStyle,std::optional<ftxui::Color>)
lea rdi, [rsp+68h+var_38]
call _ZNSt6vectorISt10shared_ptrIN5ftxui4NodeEESaIS3_EED2Ev; std::vector<std::shared_ptr<ftxui::Node>>::~vector()
mov [rbx], r15
mov [rbx+8], r14
mov rdi, rsp
call _ZNSt6vectorISt10shared_ptrIN5ftxui4NodeEESaIS3_EED2Ev; std::vector<std::shared_ptr<ftxui::Node>>::~vector()
mov rdi, [rsp+68h+var_40]
test rdi, rdi
jz short loc_2155A
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_2155A:
mov rax, rbx
add rsp, 50h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
lea rdi, [rsp+arg_28]
call _ZNSt6vectorISt10shared_ptrIN5ftxui4NodeEESaIS3_EED2Ev; std::vector<std::shared_ptr<ftxui::Node>>::~vector()
mov esi, 80h; unsigned __int64
mov rdi, r14; void *
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_21586
mov rbx, rax
loc_21586:
mov rdi, rsp
call _ZNSt6vectorISt10shared_ptrIN5ftxui4NodeEESaIS3_EED2Ev; std::vector<std::shared_ptr<ftxui::Node>>::~vector()
jmp short loc_21593
mov rbx, rax
loc_21593:
mov rdi, [rsp+arg_20]
test rdi, rdi
jz short loc_215A2
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_215A2:
mov rdi, rbx
call __Unwind_Resume
| _QWORD * ftxui::borderDashed(_QWORD *a1, __int128 *a2, int a3, long long a4, int a5, int a6)
{
__int128 v6; // xmm0
_QWORD *v7; // r14
long long v8; // r8
long long v9; // r9
__int128 v11; // [rsp+0h] [rbp-68h] BYREF
long long v12; // [rsp+10h] [rbp-58h]
__int128 v13; // [rsp+20h] [rbp-48h] BYREF
__int128 v14; // [rsp+30h] [rbp-38h] BYREF
long long v15; // [rsp+40h] [rbp-28h]
v6 = *a2;
*((_QWORD *)a2 + 1) = 0LL;
v13 = v6;
*(_QWORD *)a2 = 0LL;
ftxui::unpack<std::shared_ptr<ftxui::Node>>((unsigned int)&v11, (unsigned int)&v13, a3, 0, a5, a6, v11);
v7 = (_QWORD *)operator new(0x80uLL);
v7[1] = 0x100000001LL;
*v7 = off_570D8;
v14 = v11;
v15 = v12;
ftxui::`anonymous namespace'::Border::Border(v7 + 2, &v14, 1LL, 0LL, v8, v9, 0LL, 0LL, 0LL);
std::vector<std::shared_ptr<ftxui::Node>>::~vector((long long)&v14);
*a1 = v7 + 2;
a1[1] = v7;
std::vector<std::shared_ptr<ftxui::Node>>::~vector((long long)&v11);
if ( *((_QWORD *)&v13 + 1) )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v13 + 1));
return a1;
}
| borderDashed:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x50
MOV RBX,RDI
MOVUPS XMM0,xmmword ptr [RSI]
XOR ECX,ECX
MOV qword ptr [RSI + 0x8],RCX
LEA RAX,[RSP + 0x20]
MOVAPS xmmword ptr [RAX],XMM0
MOV qword ptr [RSI],RCX
LAB_001214c7:
MOV RDI,RSP
MOV RSI,RAX
CALL 0x00122adb
LAB_001214d2:
MOV EDI,0x80
CALL 0x0010b3e0
MOV R14,RAX
MOV RAX,0x100000001
MOV qword ptr [R14 + 0x8],RAX
LEA RAX,[0x1570d8]
MOV qword ptr [R14],RAX
MOV R15,R14
ADD R15,0x10
MOVAPS XMM0,xmmword ptr [RSP]
LEA RSI,[RSP + 0x30]
MOVAPS xmmword ptr [RSI],XMM0
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSI + 0x10],RAX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x10],0x0
LAB_00121523:
MOV RDI,R15
MOV EDX,0x1
XOR ECX,ECX
CALL 0x00121c4a
LAB_00121532:
LEA RDI,[RSP + 0x30]
CALL 0x0011503a
MOV qword ptr [RBX],R15
MOV qword ptr [RBX + 0x8],R14
MOV RDI,RSP
CALL 0x0011503a
MOV RDI,qword ptr [RSP + 0x28]
TEST RDI,RDI
JZ 0x0012155a
CALL 0x00114af8
LAB_0012155a:
MOV RAX,RBX
ADD RSP,0x50
POP RBX
POP R14
POP R15
RET
|
/* ftxui::borderDashed(std::shared_ptr<ftxui::Node>) */
ftxui * __thiscall ftxui::borderDashed(ftxui *this,int8 *param_2)
{
int8 *puVar1;
int8 local_68;
int8 uStack_60;
int8 local_58;
int4 local_48;
int4 uStack_44;
int4 uStack_40;
int4 uStack_3c;
int8 local_38;
int8 uStack_30;
int8 local_28;
local_48 = *(int4 *)param_2;
uStack_44 = *(int4 *)((long)param_2 + 4);
uStack_40 = *(int4 *)(param_2 + 1);
uStack_3c = *(int4 *)((long)param_2 + 0xc);
param_2[1] = 0;
*param_2 = 0;
/* try { // try from 001214c7 to 001214d1 has its CatchHandler @ 00121590 */
unpack<std::shared_ptr<ftxui::Node>>((ftxui *)&local_68,&local_48);
/* try { // try from 001214d2 to 001214db has its CatchHandler @ 00121583 */
puVar1 = (int8 *)operator_new(0x80);
puVar1[1] = 0x100000001;
*puVar1 = &PTR___Sp_counted_ptr_inplace_001570d8;
local_38 = local_68;
uStack_30 = uStack_60;
local_28 = local_58;
local_68 = 0;
uStack_60 = 0;
local_58 = 0;
/* try { // try from 00121523 to 00121531 has its CatchHandler @ 00121567 */
(anonymous_namespace)::Border::Border((Border *)(puVar1 + 2),&local_38,1,0);
std::vector<std::shared_ptr<ftxui::Node>,std::allocator<std::shared_ptr<ftxui::Node>>>::~vector
((vector<std::shared_ptr<ftxui::Node>,std::allocator<std::shared_ptr<ftxui::Node>>> *)
&local_38);
*(Border **)this = (Border *)(puVar1 + 2);
*(int8 **)(this + 8) = puVar1;
std::vector<std::shared_ptr<ftxui::Node>,std::allocator<std::shared_ptr<ftxui::Node>>>::~vector
((vector<std::shared_ptr<ftxui::Node>,std::allocator<std::shared_ptr<ftxui::Node>>> *)
&local_68);
if ((_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)CONCAT44(uStack_3c,uStack_40) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
((_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)CONCAT44(uStack_3c,uStack_40));
}
return this;
}
| |
45,758 | my_copy_fix_mb2_or_mb4 | eloqsql/strings/ctype-ucs2.c | static size_t
my_copy_fix_mb2_or_mb4(CHARSET_INFO *cs,
char *dst, size_t dst_length,
const char *src, size_t src_length,
size_t nchars, MY_STRCOPY_STATUS *status)
{
size_t length2, src_offset= src_length % cs->mbminlen;
my_char_copy_status_t padstatus;
if (!src_offset)
return my_copy_fix_mb(cs, dst, dst_length,
src, src_length, nchars, status);
if ((padstatus= my_copy_incomplete_char(cs, dst, dst_length,
src, src_length, nchars, TRUE)) ==
MY_CHAR_COPY_ERROR)
{
status->m_source_end_pos= status->m_well_formed_error_pos= src;
return 0;
}
length2= my_copy_fix_mb(cs, dst + cs->mbminlen, dst_length - cs->mbminlen,
src + src_offset, src_length - src_offset,
nchars - 1, status);
if (padstatus == MY_CHAR_COPY_FIXED)
status->m_well_formed_error_pos= src;
return cs->mbminlen /* The left-padded character */ + length2;
} | O3 | c | my_copy_fix_mb2_or_mb4:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, %r12
movq %rdx, %r10
movq %rsi, %rbx
movq %rdi, %r14
movl 0x98(%rdi), %r13d
movq %r8, %rax
xorl %edx, %edx
divq %r13
testq %rdx, %rdx
je 0xc56bd
cmpq %r10, %r13
seta %al
movq 0x10(%rbp), %rsi
testq %r9, %r9
sete %cl
orb %al, %cl
jne 0xc574c
movq %rdx, %r15
movq %rsi, -0x38(%rbp)
movq %r10, -0x40(%rbp)
movq %r8, -0x48(%rbp)
movq %r9, -0x50(%rbp)
subq %rdx, %r13
movq %rbx, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x292c0
addq %rbx, %r13
movq %r13, %rdi
movq %r12, -0x58(%rbp)
movq %r12, %rsi
movq %r15, %rdx
callq 0x29120
movl 0x98(%r14), %edx
addq %rbx, %rdx
movq 0xb8(%r14), %rax
movq %r14, %rdi
movq %rbx, %rsi
callq *0xc0(%rax)
movl 0x98(%r14), %r13d
cmpl %r13d, %eax
movl %eax, -0x2c(%rbp)
jne 0xc56dc
movq -0x58(%rbp), %r12
movq -0x50(%rbp), %r9
movq -0x48(%rbp), %r8
movq -0x40(%rbp), %rdx
movq -0x38(%rbp), %rsi
jmp 0xc5712
movq %r14, %rdi
movq %rbx, %rsi
movq %r10, %rdx
movq %r12, %rcx
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xb4696
movq 0xb8(%r14), %rax
leaq (%rbx,%r13), %rcx
movl $0x3f, %esi
movq %r14, %rdi
movq %rbx, %rdx
callq *0x30(%rax)
cmpl 0x98(%r14), %eax
movq -0x58(%rbp), %r12
movq -0x50(%rbp), %r9
movq -0x48(%rbp), %r8
movq -0x40(%rbp), %rdx
movq -0x38(%rbp), %rsi
jne 0xc574c
movl %eax, %eax
addq %rax, %rbx
subq %rax, %rdx
leaq (%r12,%r15), %rcx
subq %r15, %r8
decq %r9
movq %rsi, (%rsp)
movq %r14, %rdi
movq %rsi, %r15
movq %rbx, %rsi
callq 0xb4696
cmpl %r13d, -0x2c(%rbp)
je 0xc5740
movq %r12, 0x8(%r15)
movl 0x98(%r14), %ecx
addq %rcx, %rax
jmp 0xc5755
movq %r12, 0x8(%rsi)
movq %r12, (%rsi)
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_copy_fix_mb2_or_mb4:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r12, rcx
mov r10, rdx
mov rbx, rsi
mov r14, rdi
mov r13d, [rdi+98h]
mov rax, r8
xor edx, edx
div r13
test rdx, rdx
jz loc_C56BD
cmp r13, r10
setnbe al
mov rsi, [rbp+arg_0]
test r9, r9
setz cl
or cl, al
jnz loc_C574C
mov r15, rdx
mov [rbp+var_38], rsi
mov [rbp+var_40], r10
mov [rbp+var_48], r8
mov [rbp+var_50], r9
sub r13, rdx
mov rdi, rbx
xor esi, esi
mov rdx, r13
call _memset
add r13, rbx
mov rdi, r13
mov [rbp+var_58], r12
mov rsi, r12
mov rdx, r15
call _memmove
mov edx, [r14+98h]
add rdx, rbx
mov rax, [r14+0B8h]
mov rdi, r14
mov rsi, rbx
call qword ptr [rax+0C0h]
mov r13d, [r14+98h]
cmp eax, r13d
mov [rbp+var_2C], eax
jnz short loc_C56DC
mov r12, [rbp+var_58]
mov r9, [rbp+var_50]
mov r8, [rbp+var_48]
mov rdx, [rbp+var_40]
mov rsi, [rbp+var_38]
jmp short loc_C5712
loc_C56BD:
mov rdi, r14
mov rsi, rbx
mov rdx, r10
mov rcx, r12
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp my_copy_fix_mb
loc_C56DC:
mov rax, [r14+0B8h]
lea rcx, [rbx+r13]
mov esi, 3Fh ; '?'
mov rdi, r14
mov rdx, rbx
call qword ptr [rax+30h]
cmp eax, [r14+98h]
mov r12, [rbp+var_58]
mov r9, [rbp+var_50]
mov r8, [rbp+var_48]
mov rdx, [rbp+var_40]
mov rsi, [rbp+var_38]
jnz short loc_C574C
loc_C5712:
mov eax, eax
add rbx, rax
sub rdx, rax
lea rcx, [r12+r15]
sub r8, r15
dec r9
mov [rsp+60h+var_60], rsi
mov rdi, r14
mov r15, rsi
mov rsi, rbx
call my_copy_fix_mb
cmp [rbp+var_2C], r13d
jz short loc_C5740
mov [r15+8], r12
loc_C5740:
mov ecx, [r14+98h]
add rax, rcx
jmp short loc_C5755
loc_C574C:
mov [rsi+8], r12
mov [rsi], r12
xor eax, eax
loc_C5755:
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| unsigned long long my_copy_fix_mb2_or_mb4(
long long a1,
long long a2,
unsigned long long a3,
long long a4,
unsigned long long a5,
long long a6,
unsigned long long *a7)
{
unsigned long long v9; // r13
unsigned long long *v10; // rsi
unsigned long long v11; // r15
unsigned long long v12; // r13
unsigned int v13; // eax
long long v14; // r13
long long v15; // r9
unsigned long long v16; // r8
unsigned long long v17; // rdx
unsigned long long fixed; // rax
unsigned int v23; // [rsp+34h] [rbp-2Ch]
v9 = *(unsigned int *)(a1 + 152);
if ( !(a5 % v9) )
return my_copy_fix_mb(a1, a2, a3, a4, a5, a6, a7);
v10 = a7;
if ( v9 > a3 || a6 == 0 )
goto LABEL_10;
v11 = a5 % *(unsigned int *)(a1 + 152);
v12 = v9 - a5 % v9;
memset(a2, 0LL, v12);
memmove(a2 + v12, a4, v11);
v13 = (*(long long ( **)(long long, long long, long long))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
a2,
a2 + *(unsigned int *)(a1 + 152));
v14 = *(unsigned int *)(a1 + 152);
v23 = v13;
if ( v13 != (_DWORD)v14 )
{
v13 = (*(long long ( **)(long long, long long, long long, long long))(*(_QWORD *)(a1 + 184) + 48LL))(
a1,
63LL,
a2,
a2 + v14);
v15 = a6;
v16 = a5;
v17 = a3;
v10 = a7;
if ( v13 == *(_DWORD *)(a1 + 152) )
goto LABEL_7;
LABEL_10:
v10[1] = a4;
*v10 = a4;
return 0LL;
}
v15 = a6;
v16 = a5;
v17 = a3;
v10 = a7;
LABEL_7:
fixed = my_copy_fix_mb(a1, v13 + a2, v17 - v13, a4 + v11, v16 - v11, v15 - 1, v10);
if ( v23 != (_DWORD)v14 )
v10[1] = a4;
return *(unsigned int *)(a1 + 152) + fixed;
}
| my_copy_fix_mb2_or_mb4:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R12,RCX
MOV R10,RDX
MOV RBX,RSI
MOV R14,RDI
MOV R13D,dword ptr [RDI + 0x98]
MOV RAX,R8
XOR EDX,EDX
DIV R13
TEST RDX,RDX
JZ 0x001c56bd
CMP R13,R10
SETA AL
MOV RSI,qword ptr [RBP + 0x10]
TEST R9,R9
SETZ CL
OR CL,AL
JNZ 0x001c574c
MOV R15,RDX
MOV qword ptr [RBP + -0x38],RSI
MOV qword ptr [RBP + -0x40],R10
MOV qword ptr [RBP + -0x48],R8
MOV qword ptr [RBP + -0x50],R9
SUB R13,RDX
MOV RDI,RBX
XOR ESI,ESI
MOV RDX,R13
CALL 0x001292c0
ADD R13,RBX
MOV RDI,R13
MOV qword ptr [RBP + -0x58],R12
MOV RSI,R12
MOV RDX,R15
CALL 0x00129120
MOV EDX,dword ptr [R14 + 0x98]
ADD RDX,RBX
MOV RAX,qword ptr [R14 + 0xb8]
MOV RDI,R14
MOV RSI,RBX
CALL qword ptr [RAX + 0xc0]
MOV R13D,dword ptr [R14 + 0x98]
CMP EAX,R13D
MOV dword ptr [RBP + -0x2c],EAX
JNZ 0x001c56dc
MOV R12,qword ptr [RBP + -0x58]
MOV R9,qword ptr [RBP + -0x50]
MOV R8,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x38]
JMP 0x001c5712
LAB_001c56bd:
MOV RDI,R14
MOV RSI,RBX
MOV RDX,R10
MOV RCX,R12
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001b4696
LAB_001c56dc:
MOV RAX,qword ptr [R14 + 0xb8]
LEA RCX,[RBX + R13*0x1]
MOV ESI,0x3f
MOV RDI,R14
MOV RDX,RBX
CALL qword ptr [RAX + 0x30]
CMP EAX,dword ptr [R14 + 0x98]
MOV R12,qword ptr [RBP + -0x58]
MOV R9,qword ptr [RBP + -0x50]
MOV R8,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x38]
JNZ 0x001c574c
LAB_001c5712:
MOV EAX,EAX
ADD RBX,RAX
SUB RDX,RAX
LEA RCX,[R12 + R15*0x1]
SUB R8,R15
DEC R9
MOV qword ptr [RSP],RSI
MOV RDI,R14
MOV R15,RSI
MOV RSI,RBX
CALL 0x001b4696
CMP dword ptr [RBP + -0x2c],R13D
JZ 0x001c5740
MOV qword ptr [R15 + 0x8],R12
LAB_001c5740:
MOV ECX,dword ptr [R14 + 0x98]
ADD RAX,RCX
JMP 0x001c5755
LAB_001c574c:
MOV qword ptr [RSI + 0x8],R12
MOV qword ptr [RSI],R12
XOR EAX,EAX
LAB_001c5755:
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_copy_fix_mb2_or_mb4
(long param_1,void *param_2,ulong param_3,void *param_4,ulong param_5,long param_6,
int8 *param_7)
{
uint uVar1;
uint uVar2;
uint uVar3;
long lVar4;
ulong __n;
ulong uVar5;
uVar5 = (ulong)*(uint *)(param_1 + 0x98);
__n = param_5 % uVar5;
if (__n == 0) {
lVar4 = my_copy_fix_mb(param_1,param_2,param_3,param_4);
return lVar4;
}
if (param_6 != 0 && uVar5 <= param_3) {
memset(param_2,0,uVar5 - __n);
memmove((void *)((uVar5 - __n) + (long)param_2),param_4,__n);
uVar2 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))
(param_1,param_2,(ulong)*(uint *)(param_1 + 0x98) + (long)param_2);
uVar1 = *(uint *)(param_1 + 0x98);
uVar3 = uVar2;
if ((uVar2 == uVar1) ||
(uVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x30))
(param_1,0x3f,param_2,(long)param_2 + (ulong)uVar1),
uVar3 == *(uint *)(param_1 + 0x98))) {
lVar4 = my_copy_fix_mb(param_1,(long)param_2 + (ulong)uVar3,param_3 - uVar3,
(long)param_4 + __n,param_5 - __n,param_6 + -1,param_7);
if (uVar2 != uVar1) {
param_7[1] = param_4;
}
return lVar4 + (ulong)*(uint *)(param_1 + 0x98);
}
}
param_7[1] = param_4;
*param_7 = param_4;
return 0;
}
| |
45,759 | lunasvg::SVGPatternElement::collectPatternAttributes() const | dmazzella[P]pylunasvg/lunasvg/source/svgpaintelement.cpp | SVGPatternAttributes SVGPatternElement::collectPatternAttributes() const
{
SVGPatternAttributes attributes;
std::set<const SVGPatternElement*> processedPatterns;
const SVGPatternElement* current = this;
while(true) {
if(!attributes.hasX() && current->hasAttribute(PropertyID::X))
attributes.setX(current);
if(!attributes.hasY() && current->hasAttribute(PropertyID::Y))
attributes.setY(current);
if(!attributes.hasWidth() && current->hasAttribute(PropertyID::Width))
attributes.setWidth(current);
if(!attributes.hasHeight() && current->hasAttribute(PropertyID::Height))
attributes.setHeight(current);
if(!attributes.hasPatternTransform() && current->hasAttribute(PropertyID::PatternTransform))
attributes.setPatternTransform(current);
if(!attributes.hasPatternUnits() && current->hasAttribute(PropertyID::PatternUnits))
attributes.setPatternUnits(current);
if(!attributes.hasPatternContentUnits() && current->hasAttribute(PropertyID::PatternContentUnits))
attributes.setPatternContentUnits(current);
if(!attributes.hasViewBox() && current->hasAttribute(PropertyID::ViewBox))
attributes.setViewBox(current);
if(!attributes.hasPreserveAspectRatio() && current->hasAttribute(PropertyID::PreserveAspectRatio))
attributes.setPreserveAspectRatio(current);
if(!attributes.hasPatternContentElement()) {
for(const auto& child : current->children()) {
if(child->isElement()) {
attributes.setPatternContentElement(current);
break;
}
}
}
auto targetElement = current->getTargetElement(document());
if(!targetElement || targetElement->id() != ElementID::Pattern)
break;
processedPatterns.insert(current);
current = static_cast<const SVGPatternElement*>(targetElement);
if(processedPatterns.count(current) > 0) {
break;
}
}
attributes.setDefaultValues(this);
return attributes;
} | O0 | cpp | lunasvg::SVGPatternElement::collectPatternAttributes() const:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp # imm = 0x100
movq %rdi, -0xa0(%rbp)
movq %rdi, %rax
movq %rax, -0x98(%rbp)
movq %rsi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x90(%rbp)
callq 0x38020
leaq -0x38(%rbp), %rdi
callq 0x38080
movq -0x90(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x36fb6
movq -0xa0(%rbp), %rdi
callq 0x380a0
movb %al, -0xa1(%rbp)
jmp 0x36fca
movb -0xa1(%rbp), %al
testb $0x1, %al
jne 0x37026
jmp 0x36fd6
movq -0x40(%rbp), %rdi
movl $0x4b, %esi
callq 0x18940
movb %al, -0xa2(%rbp)
jmp 0x36fec
movb -0xa2(%rbp), %al
testb $0x1, %al
jne 0x36ff8
jmp 0x37026
movq -0xa0(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x380c0
jmp 0x3700a
jmp 0x37026
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x384d0
jmp 0x3749f
movq -0xa0(%rbp), %rdi
callq 0x380e0
movb %al, -0xa3(%rbp)
jmp 0x3703a
movb -0xa3(%rbp), %al
testb $0x1, %al
jne 0x3707c
jmp 0x37046
movq -0x40(%rbp), %rdi
movl $0x4e, %esi
callq 0x18940
movb %al, -0xa4(%rbp)
jmp 0x3705c
movb -0xa4(%rbp), %al
testb $0x1, %al
jne 0x37068
jmp 0x3707c
movq -0xa0(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x38100
jmp 0x3707a
jmp 0x3707c
movq -0xa0(%rbp), %rdi
callq 0x38120
movb %al, -0xa5(%rbp)
jmp 0x37090
movb -0xa5(%rbp), %al
testb $0x1, %al
jne 0x370d2
jmp 0x3709c
movq -0x40(%rbp), %rdi
movl $0x4a, %esi
callq 0x18940
movb %al, -0xa6(%rbp)
jmp 0x370b2
movb -0xa6(%rbp), %al
testb $0x1, %al
jne 0x370be
jmp 0x370d2
movq -0xa0(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x38140
jmp 0x370d0
jmp 0x370d2
movq -0xa0(%rbp), %rdi
callq 0x38160
movb %al, -0xa7(%rbp)
jmp 0x370e6
movb -0xa7(%rbp), %al
testb $0x1, %al
jne 0x37128
jmp 0x370f2
movq -0x40(%rbp), %rdi
movl $0x1b, %esi
callq 0x18940
movb %al, -0xa8(%rbp)
jmp 0x37108
movb -0xa8(%rbp), %al
testb $0x1, %al
jne 0x37114
jmp 0x37128
movq -0xa0(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x38180
jmp 0x37126
jmp 0x37128
movq -0xa0(%rbp), %rdi
callq 0x381a0
movb %al, -0xa9(%rbp)
jmp 0x3713c
movb -0xa9(%rbp), %al
testb $0x1, %al
jne 0x3717e
jmp 0x37148
movq -0x40(%rbp), %rdi
movl $0x2e, %esi
callq 0x18940
movb %al, -0xaa(%rbp)
jmp 0x3715e
movb -0xaa(%rbp), %al
testb $0x1, %al
jne 0x3716a
jmp 0x3717e
movq -0xa0(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x381c0
jmp 0x3717c
jmp 0x3717e
movq -0xa0(%rbp), %rdi
callq 0x381e0
movb %al, -0xab(%rbp)
jmp 0x37192
movb -0xab(%rbp), %al
testb $0x1, %al
jne 0x371d4
jmp 0x3719e
movq -0x40(%rbp), %rdi
movl $0x2f, %esi
callq 0x18940
movb %al, -0xac(%rbp)
jmp 0x371b4
movb -0xac(%rbp), %al
testb $0x1, %al
jne 0x371c0
jmp 0x371d4
movq -0xa0(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x38200
jmp 0x371d2
jmp 0x371d4
movq -0xa0(%rbp), %rdi
callq 0x38220
movb %al, -0xad(%rbp)
jmp 0x371e8
movb -0xad(%rbp), %al
testb $0x1, %al
jne 0x3722a
jmp 0x371f4
movq -0x40(%rbp), %rdi
movl $0x2d, %esi
callq 0x18940
movb %al, -0xae(%rbp)
jmp 0x3720a
movb -0xae(%rbp), %al
testb $0x1, %al
jne 0x37216
jmp 0x3722a
movq -0xa0(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x38240
jmp 0x37228
jmp 0x3722a
movq -0xa0(%rbp), %rdi
callq 0x38260
movb %al, -0xaf(%rbp)
jmp 0x3723e
movb -0xaf(%rbp), %al
testb $0x1, %al
jne 0x37280
jmp 0x3724a
movq -0x40(%rbp), %rdi
movl $0x47, %esi
callq 0x18940
movb %al, -0xb0(%rbp)
jmp 0x37260
movb -0xb0(%rbp), %al
testb $0x1, %al
jne 0x3726c
jmp 0x37280
movq -0xa0(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x38280
jmp 0x3727e
jmp 0x37280
movq -0xa0(%rbp), %rdi
callq 0x382a0
movb %al, -0xb1(%rbp)
jmp 0x37294
movb -0xb1(%rbp), %al
testb $0x1, %al
jne 0x372d6
jmp 0x372a0
movq -0x40(%rbp), %rdi
movl $0x31, %esi
callq 0x18940
movb %al, -0xb2(%rbp)
jmp 0x372b6
movb -0xb2(%rbp), %al
testb $0x1, %al
jne 0x372c2
jmp 0x372d6
movq -0xa0(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x382c0
jmp 0x372d4
jmp 0x372d6
movq -0xa0(%rbp), %rdi
callq 0x382e0
movb %al, -0xb3(%rbp)
jmp 0x372ea
movb -0xb3(%rbp), %al
testb $0x1, %al
jne 0x3739d
jmp 0x372fa
movq -0x40(%rbp), %rdi
callq 0xe950
movq %rax, -0xc0(%rbp)
jmp 0x3730c
movq -0xc0(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdi
callq 0xe970
movq %rax, -0x60(%rbp)
movq -0x58(%rbp), %rdi
callq 0xe9a0
movq %rax, -0x68(%rbp)
leaq -0x60(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0xe9d0
testb $0x1, %al
jne 0x37344
jmp 0x3739b
leaq -0x60(%rbp), %rdi
callq 0xea00
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rdi
callq 0x1fc50
movq %rax, %rdi
movq (%rdi), %rax
movq 0x18(%rax), %rax
callq *%rax
movb %al, -0xc1(%rbp)
jmp 0x3736e
movb -0xc1(%rbp), %al
testb $0x1, %al
jne 0x3737a
jmp 0x3738e
movq -0xa0(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x38300
jmp 0x3738c
jmp 0x3739b
jmp 0x37390
leaq -0x60(%rbp), %rdi
callq 0xea90
jmp 0x37331
jmp 0x3739d
movq -0x90(%rbp), %rdi
movq -0x40(%rbp), %rax
addq $0x70, %rax
movq %rax, -0xd8(%rbp)
callq 0x1dc90
movq %rax, -0xd0(%rbp)
jmp 0x373c1
movq -0xd0(%rbp), %rsi
movq -0xd8(%rbp), %rdi
callq 0x1a360
movq %rax, -0xe0(%rbp)
jmp 0x373dd
movq -0xe0(%rbp), %rax
movq %rax, -0x78(%rbp)
cmpq $0x0, -0x78(%rbp)
je 0x3740a
movq -0x78(%rbp), %rdi
callq 0x1fe70
movb %al, -0xe1(%rbp)
jmp 0x37400
movb -0xe1(%rbp), %al
cmpb $0xd, %al
je 0x3740c
jmp 0x37471
leaq -0x38(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x38320
movb %dl, -0xf1(%rbp)
movq %rax, -0xf0(%rbp)
jmp 0x37428
movb -0xf1(%rbp), %al
movq -0xf0(%rbp), %rcx
movq %rcx, -0x88(%rbp)
movb %al, -0x80(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x40(%rbp)
leaq -0x38(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x38370
movq %rax, -0x100(%rbp)
jmp 0x3745d
movq -0x100(%rbp), %rax
cmpq $0x0, %rax
jbe 0x3746c
jmp 0x37471
jmp 0x36fb4
movq -0x90(%rbp), %rsi
movq -0xa0(%rbp), %rdi
callq 0x383d0
jmp 0x37486
leaq -0x38(%rbp), %rdi
callq 0x384d0
movq -0x98(%rbp), %rax
addq $0x100, %rsp # imm = 0x100
popq %rbp
retq
movq -0x48(%rbp), %rdi
callq 0xb6c0
nopl (%rax,%rax)
| _ZNK7lunasvg17SVGPatternElement24collectPatternAttributesEv:
push rbp
mov rbp, rsp
sub rsp, 100h
mov [rbp+var_A0], rdi
mov rax, rdi
mov [rbp+var_98], rax
mov [rbp+var_8], rsi
mov rax, [rbp+var_8]
mov [rbp+var_90], rax
call _ZN7lunasvg20SVGPatternAttributesC2Ev; lunasvg::SVGPatternAttributes::SVGPatternAttributes(void)
lea rdi, [rbp+var_38]
call _ZNSt3setIPKN7lunasvg17SVGPatternElementESt4lessIS3_ESaIS3_EEC2Ev; std::set<lunasvg::SVGPatternElement const*>::set(void)
mov rax, [rbp+var_90]
mov [rbp+var_40], rax
loc_36FB4:
jmp short $+2
loc_36FB6:
mov rdi, [rbp+var_A0]; this
call _ZNK7lunasvg20SVGPatternAttributes4hasXEv; lunasvg::SVGPatternAttributes::hasX(void)
mov [rbp+var_A1], al
jmp short $+2
loc_36FCA:
mov al, [rbp+var_A1]
test al, 1
jnz short loc_37026
jmp short $+2
loc_36FD6:
mov rdi, [rbp+var_40]
mov esi, 4Bh ; 'K'
call _ZNK7lunasvg10SVGElement12hasAttributeENS_10PropertyIDE; lunasvg::SVGElement::hasAttribute(lunasvg::PropertyID)
mov [rbp+var_A2], al
jmp short $+2
loc_36FEC:
mov al, [rbp+var_A2]
test al, 1
jnz short loc_36FF8
jmp short loc_37026
loc_36FF8:
mov rdi, [rbp+var_A0]
mov rsi, [rbp+var_40]
call _ZN7lunasvg20SVGPatternAttributes4setXEPKNS_17SVGPatternElementE; lunasvg::SVGPatternAttributes::setX(lunasvg::SVGPatternElement const*)
jmp short $+2
loc_3700A:
jmp short loc_37026
mov rcx, rax
mov eax, edx
mov [rbp+var_48], rcx
mov [rbp+var_4C], eax
lea rdi, [rbp+var_38]
call _ZNSt3setIPKN7lunasvg17SVGPatternElementESt4lessIS3_ESaIS3_EED2Ev; std::set<lunasvg::SVGPatternElement const*>::~set()
jmp loc_3749F
loc_37026:
mov rdi, [rbp+var_A0]; this
call _ZNK7lunasvg20SVGPatternAttributes4hasYEv; lunasvg::SVGPatternAttributes::hasY(void)
mov [rbp+var_A3], al
jmp short $+2
loc_3703A:
mov al, [rbp+var_A3]
test al, 1
jnz short loc_3707C
jmp short $+2
loc_37046:
mov rdi, [rbp+var_40]
mov esi, 4Eh ; 'N'
call _ZNK7lunasvg10SVGElement12hasAttributeENS_10PropertyIDE; lunasvg::SVGElement::hasAttribute(lunasvg::PropertyID)
mov [rbp+var_A4], al
jmp short $+2
loc_3705C:
mov al, [rbp+var_A4]
test al, 1
jnz short loc_37068
jmp short loc_3707C
loc_37068:
mov rdi, [rbp+var_A0]
mov rsi, [rbp+var_40]
call _ZN7lunasvg20SVGPatternAttributes4setYEPKNS_17SVGPatternElementE; lunasvg::SVGPatternAttributes::setY(lunasvg::SVGPatternElement const*)
jmp short $+2
loc_3707A:
jmp short $+2
loc_3707C:
mov rdi, [rbp+var_A0]; this
call _ZNK7lunasvg20SVGPatternAttributes8hasWidthEv; lunasvg::SVGPatternAttributes::hasWidth(void)
mov [rbp+var_A5], al
jmp short $+2
loc_37090:
mov al, [rbp+var_A5]
test al, 1
jnz short loc_370D2
jmp short $+2
loc_3709C:
mov rdi, [rbp+var_40]
mov esi, 4Ah ; 'J'
call _ZNK7lunasvg10SVGElement12hasAttributeENS_10PropertyIDE; lunasvg::SVGElement::hasAttribute(lunasvg::PropertyID)
mov [rbp+var_A6], al
jmp short $+2
loc_370B2:
mov al, [rbp+var_A6]
test al, 1
jnz short loc_370BE
jmp short loc_370D2
loc_370BE:
mov rdi, [rbp+var_A0]
mov rsi, [rbp+var_40]
call _ZN7lunasvg20SVGPatternAttributes8setWidthEPKNS_17SVGPatternElementE; lunasvg::SVGPatternAttributes::setWidth(lunasvg::SVGPatternElement const*)
jmp short $+2
loc_370D0:
jmp short $+2
loc_370D2:
mov rdi, [rbp+var_A0]; this
call _ZNK7lunasvg20SVGPatternAttributes9hasHeightEv; lunasvg::SVGPatternAttributes::hasHeight(void)
mov [rbp+var_A7], al
jmp short $+2
loc_370E6:
mov al, [rbp+var_A7]
test al, 1
jnz short loc_37128
jmp short $+2
loc_370F2:
mov rdi, [rbp+var_40]
mov esi, 1Bh
call _ZNK7lunasvg10SVGElement12hasAttributeENS_10PropertyIDE; lunasvg::SVGElement::hasAttribute(lunasvg::PropertyID)
mov [rbp+var_A8], al
jmp short $+2
loc_37108:
mov al, [rbp+var_A8]
test al, 1
jnz short loc_37114
jmp short loc_37128
loc_37114:
mov rdi, [rbp+var_A0]
mov rsi, [rbp+var_40]
call _ZN7lunasvg20SVGPatternAttributes9setHeightEPKNS_17SVGPatternElementE; lunasvg::SVGPatternAttributes::setHeight(lunasvg::SVGPatternElement const*)
jmp short $+2
loc_37126:
jmp short $+2
loc_37128:
mov rdi, [rbp+var_A0]; this
call _ZNK7lunasvg20SVGPatternAttributes19hasPatternTransformEv; lunasvg::SVGPatternAttributes::hasPatternTransform(void)
mov [rbp+var_A9], al
jmp short $+2
loc_3713C:
mov al, [rbp+var_A9]
test al, 1
jnz short loc_3717E
jmp short $+2
loc_37148:
mov rdi, [rbp+var_40]
mov esi, 2Eh ; '.'
call _ZNK7lunasvg10SVGElement12hasAttributeENS_10PropertyIDE; lunasvg::SVGElement::hasAttribute(lunasvg::PropertyID)
mov [rbp+var_AA], al
jmp short $+2
loc_3715E:
mov al, [rbp+var_AA]
test al, 1
jnz short loc_3716A
jmp short loc_3717E
loc_3716A:
mov rdi, [rbp+var_A0]
mov rsi, [rbp+var_40]
call _ZN7lunasvg20SVGPatternAttributes19setPatternTransformEPKNS_17SVGPatternElementE; lunasvg::SVGPatternAttributes::setPatternTransform(lunasvg::SVGPatternElement const*)
jmp short $+2
loc_3717C:
jmp short $+2
loc_3717E:
mov rdi, [rbp+var_A0]; this
call _ZNK7lunasvg20SVGPatternAttributes15hasPatternUnitsEv; lunasvg::SVGPatternAttributes::hasPatternUnits(void)
mov [rbp+var_AB], al
jmp short $+2
loc_37192:
mov al, [rbp+var_AB]
test al, 1
jnz short loc_371D4
jmp short $+2
loc_3719E:
mov rdi, [rbp+var_40]
mov esi, 2Fh ; '/'
call _ZNK7lunasvg10SVGElement12hasAttributeENS_10PropertyIDE; lunasvg::SVGElement::hasAttribute(lunasvg::PropertyID)
mov [rbp+var_AC], al
jmp short $+2
loc_371B4:
mov al, [rbp+var_AC]
test al, 1
jnz short loc_371C0
jmp short loc_371D4
loc_371C0:
mov rdi, [rbp+var_A0]
mov rsi, [rbp+var_40]
call _ZN7lunasvg20SVGPatternAttributes15setPatternUnitsEPKNS_17SVGPatternElementE; lunasvg::SVGPatternAttributes::setPatternUnits(lunasvg::SVGPatternElement const*)
jmp short $+2
loc_371D2:
jmp short $+2
loc_371D4:
mov rdi, [rbp+var_A0]; this
call _ZNK7lunasvg20SVGPatternAttributes22hasPatternContentUnitsEv; lunasvg::SVGPatternAttributes::hasPatternContentUnits(void)
mov [rbp+var_AD], al
jmp short $+2
loc_371E8:
mov al, [rbp+var_AD]
test al, 1
jnz short loc_3722A
jmp short $+2
loc_371F4:
mov rdi, [rbp+var_40]
mov esi, 2Dh ; '-'
call _ZNK7lunasvg10SVGElement12hasAttributeENS_10PropertyIDE; lunasvg::SVGElement::hasAttribute(lunasvg::PropertyID)
mov [rbp+var_AE], al
jmp short $+2
loc_3720A:
mov al, [rbp+var_AE]
test al, 1
jnz short loc_37216
jmp short loc_3722A
loc_37216:
mov rdi, [rbp+var_A0]
mov rsi, [rbp+var_40]
call _ZN7lunasvg20SVGPatternAttributes22setPatternContentUnitsEPKNS_17SVGPatternElementE; lunasvg::SVGPatternAttributes::setPatternContentUnits(lunasvg::SVGPatternElement const*)
jmp short $+2
loc_37228:
jmp short $+2
loc_3722A:
mov rdi, [rbp+var_A0]; this
call _ZNK7lunasvg20SVGPatternAttributes10hasViewBoxEv; lunasvg::SVGPatternAttributes::hasViewBox(void)
mov [rbp+var_AF], al
jmp short $+2
loc_3723E:
mov al, [rbp+var_AF]
test al, 1
jnz short loc_37280
jmp short $+2
loc_3724A:
mov rdi, [rbp+var_40]
mov esi, 47h ; 'G'
call _ZNK7lunasvg10SVGElement12hasAttributeENS_10PropertyIDE; lunasvg::SVGElement::hasAttribute(lunasvg::PropertyID)
mov [rbp+var_B0], al
jmp short $+2
loc_37260:
mov al, [rbp+var_B0]
test al, 1
jnz short loc_3726C
jmp short loc_37280
loc_3726C:
mov rdi, [rbp+var_A0]
mov rsi, [rbp+var_40]
call _ZN7lunasvg20SVGPatternAttributes10setViewBoxEPKNS_17SVGPatternElementE; lunasvg::SVGPatternAttributes::setViewBox(lunasvg::SVGPatternElement const*)
jmp short $+2
loc_3727E:
jmp short $+2
loc_37280:
mov rdi, [rbp+var_A0]; this
call _ZNK7lunasvg20SVGPatternAttributes22hasPreserveAspectRatioEv; lunasvg::SVGPatternAttributes::hasPreserveAspectRatio(void)
mov [rbp+var_B1], al
jmp short $+2
loc_37294:
mov al, [rbp+var_B1]
test al, 1
jnz short loc_372D6
jmp short $+2
loc_372A0:
mov rdi, [rbp+var_40]
mov esi, 31h ; '1'
call _ZNK7lunasvg10SVGElement12hasAttributeENS_10PropertyIDE; lunasvg::SVGElement::hasAttribute(lunasvg::PropertyID)
mov [rbp+var_B2], al
jmp short $+2
loc_372B6:
mov al, [rbp+var_B2]
test al, 1
jnz short loc_372C2
jmp short loc_372D6
loc_372C2:
mov rdi, [rbp+var_A0]
mov rsi, [rbp+var_40]
call _ZN7lunasvg20SVGPatternAttributes22setPreserveAspectRatioEPKNS_17SVGPatternElementE; lunasvg::SVGPatternAttributes::setPreserveAspectRatio(lunasvg::SVGPatternElement const*)
jmp short $+2
loc_372D4:
jmp short $+2
loc_372D6:
mov rdi, [rbp+var_A0]; this
call _ZNK7lunasvg20SVGPatternAttributes24hasPatternContentElementEv; lunasvg::SVGPatternAttributes::hasPatternContentElement(void)
mov [rbp+var_B3], al
jmp short $+2
loc_372EA:
mov al, [rbp+var_B3]
test al, 1
jnz loc_3739D
jmp short $+2
loc_372FA:
mov rdi, [rbp+var_40]
call _ZNK7lunasvg10SVGElement8childrenB5cxx11Ev; lunasvg::SVGElement::children(void)
mov [rbp+var_C0], rax
jmp short $+2
loc_3730C:
mov rax, [rbp+var_C0]
mov [rbp+var_58], rax
mov rdi, [rbp+var_58]
call _ZNKSt7__cxx114listISt10unique_ptrIN7lunasvg7SVGNodeESt14default_deleteIS3_EESaIS6_EE5beginEv; std::list<std::unique_ptr<lunasvg::SVGNode>>::begin(void)
mov [rbp+var_60], rax
mov rdi, [rbp+var_58]
call _ZNKSt7__cxx114listISt10unique_ptrIN7lunasvg7SVGNodeESt14default_deleteIS3_EESaIS6_EE3endEv; std::list<std::unique_ptr<lunasvg::SVGNode>>::end(void)
mov [rbp+var_68], rax
loc_37331:
lea rdi, [rbp+var_60]
lea rsi, [rbp+var_68]
call _ZStneRKSt20_List_const_iteratorISt10unique_ptrIN7lunasvg7SVGNodeESt14default_deleteIS2_EEES8_; std::operator!=(std::_List_const_iterator<std::unique_ptr<lunasvg::SVGNode>> const&,std::_List_const_iterator<std::unique_ptr<lunasvg::SVGNode>> const&)
test al, 1
jnz short loc_37344
jmp short loc_3739B
loc_37344:
lea rdi, [rbp+var_60]
call _ZNKSt20_List_const_iteratorISt10unique_ptrIN7lunasvg7SVGNodeESt14default_deleteIS2_EEEdeEv; std::_List_const_iterator<std::unique_ptr<lunasvg::SVGNode>>::operator*(void)
mov [rbp+var_70], rax
mov rdi, [rbp+var_70]
call _ZNKSt10unique_ptrIN7lunasvg7SVGNodeESt14default_deleteIS1_EEptEv; std::unique_ptr<lunasvg::SVGNode>::operator->(void)
mov rdi, rax
mov rax, [rdi]
mov rax, [rax+18h]
call rax
mov [rbp+var_C1], al
jmp short $+2
loc_3736E:
mov al, [rbp+var_C1]
test al, 1
jnz short loc_3737A
jmp short loc_3738E
loc_3737A:
mov rdi, [rbp+var_A0]
mov rsi, [rbp+var_40]
call _ZN7lunasvg20SVGPatternAttributes24setPatternContentElementEPKNS_17SVGPatternElementE; lunasvg::SVGPatternAttributes::setPatternContentElement(lunasvg::SVGPatternElement const*)
jmp short $+2
loc_3738C:
jmp short loc_3739B
loc_3738E:
jmp short $+2
loc_37390:
lea rdi, [rbp+var_60]
call _ZNSt20_List_const_iteratorISt10unique_ptrIN7lunasvg7SVGNodeESt14default_deleteIS2_EEEppEv; std::_List_const_iterator<std::unique_ptr<lunasvg::SVGNode>>::operator++(void)
jmp short loc_37331
loc_3739B:
jmp short $+2
loc_3739D:
mov rdi, [rbp+var_90]; this
mov rax, [rbp+var_40]
add rax, 70h ; 'p'
mov [rbp+var_D8], rax
call _ZNK7lunasvg7SVGNode8documentEv; lunasvg::SVGNode::document(void)
mov [rbp+var_D0], rax
jmp short $+2
loc_373C1:
mov rsi, [rbp+var_D0]; lunasvg::Document *
mov rdi, [rbp+var_D8]; this
call _ZNK7lunasvg15SVGURIReference16getTargetElementEPKNS_8DocumentE; lunasvg::SVGURIReference::getTargetElement(lunasvg::Document const*)
mov [rbp+var_E0], rax
jmp short $+2
loc_373DD:
mov rax, [rbp+var_E0]
mov [rbp+var_78], rax
cmp [rbp+var_78], 0
jz short loc_3740A
mov rdi, [rbp+var_78]; this
call _ZNK7lunasvg10SVGElement2idEv; lunasvg::SVGElement::id(void)
mov [rbp+var_E1], al
jmp short $+2
loc_37400:
mov al, [rbp+var_E1]
cmp al, 0Dh
jz short loc_3740C
loc_3740A:
jmp short loc_37471
loc_3740C:
lea rdi, [rbp+var_38]
lea rsi, [rbp+var_40]
call _ZNSt3setIPKN7lunasvg17SVGPatternElementESt4lessIS3_ESaIS3_EE6insertERKS3_; std::set<lunasvg::SVGPatternElement const*>::insert(lunasvg::SVGPatternElement const* const&)
mov [rbp+var_F1], dl
mov [rbp+var_F0], rax
jmp short $+2
loc_37428:
mov al, [rbp+var_F1]
mov rcx, [rbp+var_F0]
mov [rbp+var_88], rcx
mov [rbp+var_80], al
mov rax, [rbp+var_78]
mov [rbp+var_40], rax
lea rdi, [rbp+var_38]
lea rsi, [rbp+var_40]
call _ZNKSt3setIPKN7lunasvg17SVGPatternElementESt4lessIS3_ESaIS3_EE5countERKS3_; std::set<lunasvg::SVGPatternElement const*>::count(lunasvg::SVGPatternElement const* const&)
mov [rbp+var_100], rax
jmp short $+2
loc_3745D:
mov rax, [rbp+var_100]
cmp rax, 0
jbe short loc_3746C
jmp short loc_37471
loc_3746C:
jmp loc_36FB4
loc_37471:
mov rsi, [rbp+var_90]
mov rdi, [rbp+var_A0]
call _ZN7lunasvg20SVGPatternAttributes16setDefaultValuesEPKNS_17SVGPatternElementE; lunasvg::SVGPatternAttributes::setDefaultValues(lunasvg::SVGPatternElement const*)
jmp short $+2
loc_37486:
lea rdi, [rbp+var_38]
call _ZNSt3setIPKN7lunasvg17SVGPatternElementESt4lessIS3_ESaIS3_EED2Ev; std::set<lunasvg::SVGPatternElement const*>::~set()
mov rax, [rbp+var_98]
add rsp, 100h
pop rbp
retn
loc_3749F:
mov rdi, [rbp+var_48]
call __Unwind_Resume
| lunasvg::SVGPatternElement * lunasvg::SVGPatternElement::collectPatternAttributes(
lunasvg::SVGPatternElement *this,
const lunasvg::SVGPatternElement *a2)
{
long long v2; // rax
lunasvg::SVGURIReference *v4; // [rsp+28h] [rbp-D8h]
lunasvg::Document *v5; // [rsp+30h] [rbp-D0h]
lunasvg::SVGElement *TargetElement; // [rsp+88h] [rbp-78h]
long long v7; // [rsp+98h] [rbp-68h] BYREF
_QWORD *v8; // [rsp+A0h] [rbp-60h] BYREF
_QWORD *v9; // [rsp+A8h] [rbp-58h]
const lunasvg::SVGPatternElement *v10; // [rsp+C0h] [rbp-40h] BYREF
_BYTE v11[48]; // [rsp+C8h] [rbp-38h] BYREF
const lunasvg::SVGPatternElement *v12; // [rsp+F8h] [rbp-8h]
v12 = a2;
lunasvg::SVGPatternAttributes::SVGPatternAttributes(this);
std::set<lunasvg::SVGPatternElement const*>::set(v11);
v10 = a2;
do
{
if ( (lunasvg::SVGPatternAttributes::hasX(this) & 1) == 0
&& (lunasvg::SVGElement::hasAttribute((long long)v10, 75) & 1) != 0 )
{
lunasvg::SVGPatternAttributes::setX(this, v10);
}
if ( (lunasvg::SVGPatternAttributes::hasY(this) & 1) == 0
&& (lunasvg::SVGElement::hasAttribute((long long)v10, 78) & 1) != 0 )
{
lunasvg::SVGPatternAttributes::setY(this, v10);
}
if ( (lunasvg::SVGPatternAttributes::hasWidth(this) & 1) == 0
&& (lunasvg::SVGElement::hasAttribute((long long)v10, 74) & 1) != 0 )
{
lunasvg::SVGPatternAttributes::setWidth(this, v10);
}
if ( (lunasvg::SVGPatternAttributes::hasHeight(this) & 1) == 0
&& (lunasvg::SVGElement::hasAttribute((long long)v10, 27) & 1) != 0 )
{
lunasvg::SVGPatternAttributes::setHeight(this, v10);
}
if ( (lunasvg::SVGPatternAttributes::hasPatternTransform(this) & 1) == 0
&& (lunasvg::SVGElement::hasAttribute((long long)v10, 46) & 1) != 0 )
{
lunasvg::SVGPatternAttributes::setPatternTransform(this, v10);
}
if ( (lunasvg::SVGPatternAttributes::hasPatternUnits(this) & 1) == 0
&& (lunasvg::SVGElement::hasAttribute((long long)v10, 47) & 1) != 0 )
{
lunasvg::SVGPatternAttributes::setPatternUnits(this, v10);
}
if ( (lunasvg::SVGPatternAttributes::hasPatternContentUnits(this) & 1) == 0
&& (lunasvg::SVGElement::hasAttribute((long long)v10, 45) & 1) != 0 )
{
lunasvg::SVGPatternAttributes::setPatternContentUnits(this, v10);
}
if ( (lunasvg::SVGPatternAttributes::hasViewBox(this) & 1) == 0
&& (lunasvg::SVGElement::hasAttribute((long long)v10, 71) & 1) != 0 )
{
lunasvg::SVGPatternAttributes::setViewBox(this, v10);
}
if ( (lunasvg::SVGPatternAttributes::hasPreserveAspectRatio(this) & 1) == 0
&& (lunasvg::SVGElement::hasAttribute((long long)v10, 49) & 1) != 0 )
{
lunasvg::SVGPatternAttributes::setPreserveAspectRatio(this, v10);
}
if ( (lunasvg::SVGPatternAttributes::hasPatternContentElement(this) & 1) == 0 )
{
v9 = (_QWORD *)lunasvg::SVGElement::children[abi:cxx11]((long long)v10);
v8 = (_QWORD *)std::list<std::unique_ptr<lunasvg::SVGNode>>::begin(v9);
v7 = std::list<std::unique_ptr<lunasvg::SVGNode>>::end((long long)v9);
while ( std::operator!=(&v8, &v7) )
{
std::_List_const_iterator<std::unique_ptr<lunasvg::SVGNode>>::operator*(&v8);
v2 = std::unique_ptr<lunasvg::SVGNode>::operator->();
if ( ((*(long long ( **)(long long))(*(_QWORD *)v2 + 24LL))(v2) & 1) != 0 )
{
lunasvg::SVGPatternAttributes::setPatternContentElement(this, v10);
break;
}
std::_List_const_iterator<std::unique_ptr<lunasvg::SVGNode>>::operator++(&v8);
}
}
v4 = (const lunasvg::SVGPatternElement *)((char *)v10 + 112);
v5 = (lunasvg::Document *)lunasvg::SVGNode::document(a2);
TargetElement = (lunasvg::SVGElement *)lunasvg::SVGURIReference::getTargetElement(v4, v5);
if ( !TargetElement )
break;
if ( lunasvg::SVGElement::id(TargetElement) != 13 )
break;
std::set<lunasvg::SVGPatternElement const*>::insert(v11, &v10);
v10 = TargetElement;
}
while ( !std::set<lunasvg::SVGPatternElement const*>::count(v11, &v10) );
lunasvg::SVGPatternAttributes::setDefaultValues(this, a2);
std::set<lunasvg::SVGPatternElement const*>::~set(v11);
return this;
}
| collectPatternAttributes:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x100
MOV qword ptr [RBP + -0xa0],RDI
MOV RAX,RDI
MOV qword ptr [RBP + -0x98],RAX
MOV qword ptr [RBP + -0x8],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x90],RAX
CALL 0x00138020
LEA RDI,[RBP + -0x38]
CALL 0x00138080
MOV RAX,qword ptr [RBP + -0x90]
MOV qword ptr [RBP + -0x40],RAX
LAB_00136fb4:
JMP 0x00136fb6
LAB_00136fb6:
MOV RDI,qword ptr [RBP + -0xa0]
CALL 0x001380a0
MOV byte ptr [RBP + -0xa1],AL
JMP 0x00136fca
LAB_00136fca:
MOV AL,byte ptr [RBP + -0xa1]
TEST AL,0x1
JNZ 0x00137026
JMP 0x00136fd6
LAB_00136fd6:
MOV RDI,qword ptr [RBP + -0x40]
MOV ESI,0x4b
CALL 0x00118940
MOV byte ptr [RBP + -0xa2],AL
JMP 0x00136fec
LAB_00136fec:
MOV AL,byte ptr [RBP + -0xa2]
TEST AL,0x1
JNZ 0x00136ff8
JMP 0x00137026
LAB_00136ff8:
MOV RDI,qword ptr [RBP + -0xa0]
MOV RSI,qword ptr [RBP + -0x40]
CALL 0x001380c0
JMP 0x0013700a
LAB_0013700a:
JMP 0x00137026
LAB_00137026:
MOV RDI,qword ptr [RBP + -0xa0]
CALL 0x001380e0
MOV byte ptr [RBP + -0xa3],AL
JMP 0x0013703a
LAB_0013703a:
MOV AL,byte ptr [RBP + -0xa3]
TEST AL,0x1
JNZ 0x0013707c
JMP 0x00137046
LAB_00137046:
MOV RDI,qword ptr [RBP + -0x40]
MOV ESI,0x4e
CALL 0x00118940
MOV byte ptr [RBP + -0xa4],AL
JMP 0x0013705c
LAB_0013705c:
MOV AL,byte ptr [RBP + -0xa4]
TEST AL,0x1
JNZ 0x00137068
JMP 0x0013707c
LAB_00137068:
MOV RDI,qword ptr [RBP + -0xa0]
MOV RSI,qword ptr [RBP + -0x40]
CALL 0x00138100
JMP 0x0013707a
LAB_0013707a:
JMP 0x0013707c
LAB_0013707c:
MOV RDI,qword ptr [RBP + -0xa0]
CALL 0x00138120
MOV byte ptr [RBP + -0xa5],AL
JMP 0x00137090
LAB_00137090:
MOV AL,byte ptr [RBP + -0xa5]
TEST AL,0x1
JNZ 0x001370d2
JMP 0x0013709c
LAB_0013709c:
MOV RDI,qword ptr [RBP + -0x40]
MOV ESI,0x4a
CALL 0x00118940
MOV byte ptr [RBP + -0xa6],AL
JMP 0x001370b2
LAB_001370b2:
MOV AL,byte ptr [RBP + -0xa6]
TEST AL,0x1
JNZ 0x001370be
JMP 0x001370d2
LAB_001370be:
MOV RDI,qword ptr [RBP + -0xa0]
MOV RSI,qword ptr [RBP + -0x40]
CALL 0x00138140
JMP 0x001370d0
LAB_001370d0:
JMP 0x001370d2
LAB_001370d2:
MOV RDI,qword ptr [RBP + -0xa0]
CALL 0x00138160
MOV byte ptr [RBP + -0xa7],AL
JMP 0x001370e6
LAB_001370e6:
MOV AL,byte ptr [RBP + -0xa7]
TEST AL,0x1
JNZ 0x00137128
JMP 0x001370f2
LAB_001370f2:
MOV RDI,qword ptr [RBP + -0x40]
MOV ESI,0x1b
CALL 0x00118940
MOV byte ptr [RBP + -0xa8],AL
JMP 0x00137108
LAB_00137108:
MOV AL,byte ptr [RBP + -0xa8]
TEST AL,0x1
JNZ 0x00137114
JMP 0x00137128
LAB_00137114:
MOV RDI,qword ptr [RBP + -0xa0]
MOV RSI,qword ptr [RBP + -0x40]
CALL 0x00138180
JMP 0x00137126
LAB_00137126:
JMP 0x00137128
LAB_00137128:
MOV RDI,qword ptr [RBP + -0xa0]
CALL 0x001381a0
MOV byte ptr [RBP + -0xa9],AL
JMP 0x0013713c
LAB_0013713c:
MOV AL,byte ptr [RBP + -0xa9]
TEST AL,0x1
JNZ 0x0013717e
JMP 0x00137148
LAB_00137148:
MOV RDI,qword ptr [RBP + -0x40]
MOV ESI,0x2e
CALL 0x00118940
MOV byte ptr [RBP + -0xaa],AL
JMP 0x0013715e
LAB_0013715e:
MOV AL,byte ptr [RBP + -0xaa]
TEST AL,0x1
JNZ 0x0013716a
JMP 0x0013717e
LAB_0013716a:
MOV RDI,qword ptr [RBP + -0xa0]
MOV RSI,qword ptr [RBP + -0x40]
CALL 0x001381c0
JMP 0x0013717c
LAB_0013717c:
JMP 0x0013717e
LAB_0013717e:
MOV RDI,qword ptr [RBP + -0xa0]
CALL 0x001381e0
MOV byte ptr [RBP + -0xab],AL
JMP 0x00137192
LAB_00137192:
MOV AL,byte ptr [RBP + -0xab]
TEST AL,0x1
JNZ 0x001371d4
JMP 0x0013719e
LAB_0013719e:
MOV RDI,qword ptr [RBP + -0x40]
MOV ESI,0x2f
CALL 0x00118940
MOV byte ptr [RBP + -0xac],AL
JMP 0x001371b4
LAB_001371b4:
MOV AL,byte ptr [RBP + -0xac]
TEST AL,0x1
JNZ 0x001371c0
JMP 0x001371d4
LAB_001371c0:
MOV RDI,qword ptr [RBP + -0xa0]
MOV RSI,qword ptr [RBP + -0x40]
CALL 0x00138200
JMP 0x001371d2
LAB_001371d2:
JMP 0x001371d4
LAB_001371d4:
MOV RDI,qword ptr [RBP + -0xa0]
CALL 0x00138220
MOV byte ptr [RBP + -0xad],AL
JMP 0x001371e8
LAB_001371e8:
MOV AL,byte ptr [RBP + -0xad]
TEST AL,0x1
JNZ 0x0013722a
JMP 0x001371f4
LAB_001371f4:
MOV RDI,qword ptr [RBP + -0x40]
MOV ESI,0x2d
CALL 0x00118940
MOV byte ptr [RBP + -0xae],AL
JMP 0x0013720a
LAB_0013720a:
MOV AL,byte ptr [RBP + -0xae]
TEST AL,0x1
JNZ 0x00137216
JMP 0x0013722a
LAB_00137216:
MOV RDI,qword ptr [RBP + -0xa0]
MOV RSI,qword ptr [RBP + -0x40]
CALL 0x00138240
JMP 0x00137228
LAB_00137228:
JMP 0x0013722a
LAB_0013722a:
MOV RDI,qword ptr [RBP + -0xa0]
CALL 0x00138260
MOV byte ptr [RBP + -0xaf],AL
JMP 0x0013723e
LAB_0013723e:
MOV AL,byte ptr [RBP + -0xaf]
TEST AL,0x1
JNZ 0x00137280
JMP 0x0013724a
LAB_0013724a:
MOV RDI,qword ptr [RBP + -0x40]
MOV ESI,0x47
CALL 0x00118940
MOV byte ptr [RBP + -0xb0],AL
JMP 0x00137260
LAB_00137260:
MOV AL,byte ptr [RBP + -0xb0]
TEST AL,0x1
JNZ 0x0013726c
JMP 0x00137280
LAB_0013726c:
MOV RDI,qword ptr [RBP + -0xa0]
MOV RSI,qword ptr [RBP + -0x40]
CALL 0x00138280
JMP 0x0013727e
LAB_0013727e:
JMP 0x00137280
LAB_00137280:
MOV RDI,qword ptr [RBP + -0xa0]
CALL 0x001382a0
MOV byte ptr [RBP + -0xb1],AL
JMP 0x00137294
LAB_00137294:
MOV AL,byte ptr [RBP + -0xb1]
TEST AL,0x1
JNZ 0x001372d6
JMP 0x001372a0
LAB_001372a0:
MOV RDI,qword ptr [RBP + -0x40]
MOV ESI,0x31
CALL 0x00118940
MOV byte ptr [RBP + -0xb2],AL
JMP 0x001372b6
LAB_001372b6:
MOV AL,byte ptr [RBP + -0xb2]
TEST AL,0x1
JNZ 0x001372c2
JMP 0x001372d6
LAB_001372c2:
MOV RDI,qword ptr [RBP + -0xa0]
MOV RSI,qword ptr [RBP + -0x40]
CALL 0x001382c0
JMP 0x001372d4
LAB_001372d4:
JMP 0x001372d6
LAB_001372d6:
MOV RDI,qword ptr [RBP + -0xa0]
CALL 0x001382e0
MOV byte ptr [RBP + -0xb3],AL
JMP 0x001372ea
LAB_001372ea:
MOV AL,byte ptr [RBP + -0xb3]
TEST AL,0x1
JNZ 0x0013739d
JMP 0x001372fa
LAB_001372fa:
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x0010e950
MOV qword ptr [RBP + -0xc0],RAX
JMP 0x0013730c
LAB_0013730c:
MOV RAX,qword ptr [RBP + -0xc0]
MOV qword ptr [RBP + -0x58],RAX
MOV RDI,qword ptr [RBP + -0x58]
CALL 0x0010e970
MOV qword ptr [RBP + -0x60],RAX
MOV RDI,qword ptr [RBP + -0x58]
CALL 0x0010e9a0
MOV qword ptr [RBP + -0x68],RAX
LAB_00137331:
LEA RDI,[RBP + -0x60]
LEA RSI,[RBP + -0x68]
CALL 0x0010e9d0
TEST AL,0x1
JNZ 0x00137344
JMP 0x0013739b
LAB_00137344:
LEA RDI,[RBP + -0x60]
CALL 0x0010ea00
MOV qword ptr [RBP + -0x70],RAX
MOV RDI,qword ptr [RBP + -0x70]
CALL 0x0011fc50
MOV RDI,RAX
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0x18]
CALL RAX
MOV byte ptr [RBP + -0xc1],AL
JMP 0x0013736e
LAB_0013736e:
MOV AL,byte ptr [RBP + -0xc1]
TEST AL,0x1
JNZ 0x0013737a
JMP 0x0013738e
LAB_0013737a:
MOV RDI,qword ptr [RBP + -0xa0]
MOV RSI,qword ptr [RBP + -0x40]
CALL 0x00138300
JMP 0x0013738c
LAB_0013738c:
JMP 0x0013739b
LAB_0013738e:
JMP 0x00137390
LAB_00137390:
LEA RDI,[RBP + -0x60]
CALL 0x0010ea90
JMP 0x00137331
LAB_0013739b:
JMP 0x0013739d
LAB_0013739d:
MOV RDI,qword ptr [RBP + -0x90]
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,0x70
MOV qword ptr [RBP + -0xd8],RAX
CALL 0x0011dc90
MOV qword ptr [RBP + -0xd0],RAX
JMP 0x001373c1
LAB_001373c1:
MOV RSI,qword ptr [RBP + -0xd0]
MOV RDI,qword ptr [RBP + -0xd8]
CALL 0x0011a360
MOV qword ptr [RBP + -0xe0],RAX
JMP 0x001373dd
LAB_001373dd:
MOV RAX,qword ptr [RBP + -0xe0]
MOV qword ptr [RBP + -0x78],RAX
CMP qword ptr [RBP + -0x78],0x0
JZ 0x0013740a
MOV RDI,qword ptr [RBP + -0x78]
CALL 0x0011fe70
MOV byte ptr [RBP + -0xe1],AL
JMP 0x00137400
LAB_00137400:
MOV AL,byte ptr [RBP + -0xe1]
CMP AL,0xd
JZ 0x0013740c
LAB_0013740a:
JMP 0x00137471
LAB_0013740c:
LEA RDI,[RBP + -0x38]
LEA RSI,[RBP + -0x40]
CALL 0x00138320
MOV byte ptr [RBP + -0xf1],DL
MOV qword ptr [RBP + -0xf0],RAX
JMP 0x00137428
LAB_00137428:
MOV AL,byte ptr [RBP + -0xf1]
MOV RCX,qword ptr [RBP + -0xf0]
MOV qword ptr [RBP + -0x88],RCX
MOV byte ptr [RBP + -0x80],AL
MOV RAX,qword ptr [RBP + -0x78]
MOV qword ptr [RBP + -0x40],RAX
LEA RDI,[RBP + -0x38]
LEA RSI,[RBP + -0x40]
CALL 0x00138370
MOV qword ptr [RBP + -0x100],RAX
JMP 0x0013745d
LAB_0013745d:
MOV RAX,qword ptr [RBP + -0x100]
CMP RAX,0x0
JBE 0x0013746c
JMP 0x00137471
LAB_0013746c:
JMP 0x00136fb4
LAB_00137471:
MOV RSI,qword ptr [RBP + -0x90]
MOV RDI,qword ptr [RBP + -0xa0]
CALL 0x001383d0
LAB_00137484:
JMP 0x00137486
LAB_00137486:
LEA RDI,[RBP + -0x38]
CALL 0x001384d0
MOV RAX,qword ptr [RBP + -0x98]
ADD RSP,0x100
POP RBP
RET
|
/* lunasvg::SVGPatternElement::collectPatternAttributes() const */
SVGPatternAttributes * lunasvg::SVGPatternElement::collectPatternAttributes(void)
{
byte bVar1;
char cVar2;
ulong uVar3;
unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>> *this;
long *plVar4;
SVGURIReference *this_00;
Document *pDVar5;
SVGElement *this_01;
long lVar6;
SVGNode *in_RSI;
SVGPatternAttributes *in_RDI;
int8 local_70;
int8 local_68;
list<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>,std::allocator<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>>>
*local_60;
SVGElement *local_48;
set<lunasvg::SVGPatternElement_const*,std::less<lunasvg::SVGPatternElement_const*>,std::allocator<lunasvg::SVGPatternElement_const*>>
local_40 [56];
SVGPatternAttributes::SVGPatternAttributes(in_RDI);
std::
set<lunasvg::SVGPatternElement_const*,std::less<lunasvg::SVGPatternElement_const*>,std::allocator<lunasvg::SVGPatternElement_const*>>
::set(local_40);
local_48 = (SVGElement *)in_RSI;
do {
/* try { // try from 00136fb6 to 00137483 has its CatchHandler @ 0013700c */
bVar1 = SVGPatternAttributes::hasX(in_RDI);
if (((bVar1 & 1) == 0) && (bVar1 = SVGElement::hasAttribute(local_48,0x4b), (bVar1 & 1) != 0)) {
SVGPatternAttributes::setX(in_RDI,(SVGPatternElement *)local_48);
}
bVar1 = SVGPatternAttributes::hasY(in_RDI);
if (((bVar1 & 1) == 0) && (bVar1 = SVGElement::hasAttribute(local_48,0x4e), (bVar1 & 1) != 0)) {
SVGPatternAttributes::setY(in_RDI,(SVGPatternElement *)local_48);
}
bVar1 = SVGPatternAttributes::hasWidth(in_RDI);
if (((bVar1 & 1) == 0) && (bVar1 = SVGElement::hasAttribute(local_48,0x4a), (bVar1 & 1) != 0)) {
SVGPatternAttributes::setWidth(in_RDI,(SVGPatternElement *)local_48);
}
bVar1 = SVGPatternAttributes::hasHeight(in_RDI);
if (((bVar1 & 1) == 0) && (bVar1 = SVGElement::hasAttribute(local_48,0x1b), (bVar1 & 1) != 0)) {
SVGPatternAttributes::setHeight(in_RDI,(SVGPatternElement *)local_48);
}
bVar1 = SVGPatternAttributes::hasPatternTransform(in_RDI);
if (((bVar1 & 1) == 0) && (bVar1 = SVGElement::hasAttribute(local_48,0x2e), (bVar1 & 1) != 0)) {
SVGPatternAttributes::setPatternTransform(in_RDI,(SVGPatternElement *)local_48);
}
bVar1 = SVGPatternAttributes::hasPatternUnits(in_RDI);
if (((bVar1 & 1) == 0) && (bVar1 = SVGElement::hasAttribute(local_48,0x2f), (bVar1 & 1) != 0)) {
SVGPatternAttributes::setPatternUnits(in_RDI,(SVGPatternElement *)local_48);
}
bVar1 = SVGPatternAttributes::hasPatternContentUnits(in_RDI);
if (((bVar1 & 1) == 0) && (bVar1 = SVGElement::hasAttribute(local_48,0x2d), (bVar1 & 1) != 0)) {
SVGPatternAttributes::setPatternContentUnits(in_RDI,(SVGPatternElement *)local_48);
}
bVar1 = SVGPatternAttributes::hasViewBox(in_RDI);
if (((bVar1 & 1) == 0) && (bVar1 = SVGElement::hasAttribute(local_48,0x47), (bVar1 & 1) != 0)) {
SVGPatternAttributes::setViewBox(in_RDI,(SVGPatternElement *)local_48);
}
bVar1 = SVGPatternAttributes::hasPreserveAspectRatio(in_RDI);
if (((bVar1 & 1) == 0) && (bVar1 = SVGElement::hasAttribute(local_48,0x31), (bVar1 & 1) != 0)) {
SVGPatternAttributes::setPreserveAspectRatio(in_RDI,(SVGPatternElement *)local_48);
}
bVar1 = SVGPatternAttributes::hasPatternContentElement(in_RDI);
if ((bVar1 & 1) == 0) {
local_60 = (list<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>,std::allocator<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>>>
*)SVGElement::children_abi_cxx11_(local_48);
local_68 = std::__cxx11::
list<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>,std::allocator<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>>>
::begin(local_60);
local_70 = std::__cxx11::
list<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>,std::allocator<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>>>
::end(local_60);
while (uVar3 = std::operator!=((_List_const_iterator *)&local_68,
(_List_const_iterator *)&local_70), (uVar3 & 1) != 0) {
this = (unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>> *)
std::
_List_const_iterator<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>>
::operator*((_List_const_iterator<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>>
*)&local_68);
plVar4 = (long *)std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>::
operator->(this);
bVar1 = (**(code **)(*plVar4 + 0x18))();
if ((bVar1 & 1) != 0) {
SVGPatternAttributes::setPatternContentElement(in_RDI,(SVGPatternElement *)local_48);
break;
}
std::
_List_const_iterator<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>>
::operator++((_List_const_iterator<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>>
*)&local_68);
}
}
this_00 = (SVGURIReference *)(local_48 + 0x70);
pDVar5 = (Document *)SVGNode::document(in_RSI);
this_01 = (SVGElement *)SVGURIReference::getTargetElement(this_00,pDVar5);
if ((this_01 == (SVGElement *)0x0) || (cVar2 = SVGElement::id(this_01), cVar2 != '\r')) break;
std::
set<lunasvg::SVGPatternElement_const*,std::less<lunasvg::SVGPatternElement_const*>,std::allocator<lunasvg::SVGPatternElement_const*>>
::insert(local_40,(SVGPatternElement **)&local_48);
local_48 = this_01;
lVar6 = std::
set<lunasvg::SVGPatternElement_const*,std::less<lunasvg::SVGPatternElement_const*>,std::allocator<lunasvg::SVGPatternElement_const*>>
::count(local_40,(SVGPatternElement **)&local_48);
} while (lVar6 == 0);
SVGPatternAttributes::setDefaultValues(in_RDI,(SVGPatternElement *)in_RSI);
std::
set<lunasvg::SVGPatternElement_const*,std::less<lunasvg::SVGPatternElement_const*>,std::allocator<lunasvg::SVGPatternElement_const*>>
::~set(local_40);
return in_RDI;
}
| |
45,760 | stbi__zhuffman_decode | dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-image.h | stbi_inline static int stbi__zhuffman_decode(stbi__zbuf *a, stbi__zhuffman *z)
{
int b,s;
if (a->num_bits < 16) {
if (stbi__zeof(a)) {
if (!a->hit_zeof_once) {
// This is the first time we hit eof, insert 16 extra padding btis
// to allow us to keep going; if we actually consume any of them
// though, that is invalid data. This is caught later.
a->hit_zeof_once = 1;
a->num_bits += 16; // add 16 implicit zero bits
} else {
// We already inserted our extra 16 padding bits and are again
// out, this stream is actually prematurely terminated.
return -1;
}
} else {
stbi__fill_bits(a);
}
}
b = z->fast[a->code_buffer & STBI__ZFAST_MASK];
if (b) {
s = b >> 9;
a->code_buffer >>= s;
a->num_bits -= s;
return b & 511;
}
return stbi__zhuffman_decode_slowpath(a, z);
} | O1 | c | stbi__zhuffman_decode:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl 0x10(%rdi), %ecx
cmpl $0xf, %ecx
jg 0x35f82
movq (%rbx), %rax
cmpq 0x8(%rbx), %rax
jae 0x35f66
movq %rbx, %rdi
callq 0x35e6c
jmp 0x35f82
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
cmpl $0x0, 0x14(%rbx)
jne 0x3605e
movl $0x1, 0x14(%rbx)
addl $0x10, %ecx
movl %ecx, 0x10(%rbx)
movl 0x18(%rbx), %esi
movl %esi, %eax
andl $0x1ff, %eax # imm = 0x1FF
movzwl (%r14,%rax,2), %eax
testl %eax, %eax
je 0x35fac
movl %eax, %ecx
shrl $0x9, %ecx
shrl %cl, %esi
movl %esi, 0x18(%rbx)
subl %ecx, 0x10(%rbx)
andl $0x1ff, %eax # imm = 0x1FF
jmp 0x3605e
movl %esi, %eax
rolw $0x8, %ax
movl %eax, %ecx
shrl $0x4, %ecx
movl $0xf0f, %edx # imm = 0xF0F
andl %edx, %ecx
andl %edx, %eax
shll $0x4, %eax
orl %ecx, %eax
movl $0x3333, %ecx # imm = 0x3333
movl %eax, %edx
andl %ecx, %edx
shrl $0x2, %eax
andl %ecx, %eax
leal (%rax,%rdx,4), %eax
movl $0x5555, %ecx # imm = 0x5555
movl %eax, %edx
andl %ecx, %edx
shrl %eax
andl %ecx, %eax
leal (%rax,%rdx,2), %r8d
xorl %edi, %edi
movq %rdi, %rax
incq %rdi
cmpl %r8d, 0x448(%r14,%rax,4)
jle 0x35fe9
leaq 0x9(%rdi), %rdx
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
cmpq $0xf, %rdx
ja 0x3605e
movb $0x7, %cl
subb %dil, %cl
shrl %cl, %r8d
movzwl 0x412(%r14,%rdi,2), %ecx
subq %rcx, %r8
movzwl 0x476(%r14,%rdi,2), %r9d
addq %r8, %r9
cmpl $0x11f, %r9d # imm = 0x11F
jg 0x3605e
movzbl 0x484(%r14,%r9), %ecx
addq $-0x9, %rcx
cmpq %rdi, %rcx
jne 0x3605e
movl %edx, %ecx
shrl %cl, %esi
movl %esi, 0x18(%rbx)
movl 0x10(%rbx), %eax
subl %edi, %eax
addl $-0x9, %eax
movl %eax, 0x10(%rbx)
movzwl 0x5a4(%r14,%r9,2), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| stbi__zhuffman_decode:
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
mov ecx, [rdi+10h]
cmp ecx, 0Fh
jg short loc_35F82
mov rax, [rbx]
cmp rax, [rbx+8]
jnb short loc_35F66
mov rdi, rbx
call stbi__fill_bits
jmp short loc_35F82
loc_35F66:
mov eax, 0FFFFFFFFh
cmp dword ptr [rbx+14h], 0
jnz loc_3605E
mov dword ptr [rbx+14h], 1
add ecx, 10h
mov [rbx+10h], ecx
loc_35F82:
mov esi, [rbx+18h]
mov eax, esi
and eax, 1FFh
movzx eax, word ptr [r14+rax*2]
test eax, eax
jz short loc_35FAC
mov ecx, eax
shr ecx, 9
shr esi, cl
mov [rbx+18h], esi
sub [rbx+10h], ecx
and eax, 1FFh
jmp loc_3605E
loc_35FAC:
mov eax, esi
rol ax, 8
mov ecx, eax
shr ecx, 4
mov edx, 0F0Fh
and ecx, edx
and eax, edx
shl eax, 4
or eax, ecx
mov ecx, 3333h
mov edx, eax
and edx, ecx
shr eax, 2
and eax, ecx
lea eax, [rax+rdx*4]
mov ecx, 5555h
mov edx, eax
and edx, ecx
shr eax, 1
and eax, ecx
lea r8d, [rax+rdx*2]
xor edi, edi
loc_35FE9:
mov rax, rdi
inc rdi
cmp [r14+rax*4+448h], r8d
jle short loc_35FE9
lea rdx, [rdi+9]
mov eax, 0FFFFFFFFh
cmp rdx, 0Fh
ja short loc_3605E
mov cl, 7
sub cl, dil
shr r8d, cl
movzx ecx, word ptr [r14+rdi*2+412h]
sub r8, rcx
movzx r9d, word ptr [r14+rdi*2+476h]
add r9, r8
cmp r9d, 11Fh
jg short loc_3605E
movzx ecx, byte ptr [r14+r9+484h]
add rcx, 0FFFFFFFFFFFFFFF7h
cmp rcx, rdi
jnz short loc_3605E
mov ecx, edx
shr esi, cl
mov [rbx+18h], esi
mov eax, [rbx+10h]
sub eax, edi
add eax, 0FFFFFFF7h
mov [rbx+10h], eax
movzx eax, word ptr [r14+r9*2+5A4h]
loc_3605E:
add rsp, 8
pop rbx
pop r14
retn
| long long stbi__zhuffman_decode(long long a1, long long a2)
{
int v4; // ecx
long long result; // rax
unsigned int v6; // esi
unsigned int v7; // eax
unsigned int v8; // eax
unsigned int v9; // eax
unsigned int v10; // eax
int v11; // r8d
long long v12; // rdi
long long v13; // rax
unsigned long long v14; // r9
v4 = *(_DWORD *)(a1 + 16);
if ( v4 <= 15 )
{
if ( *(_QWORD *)a1 >= *(_QWORD *)(a1 + 8) )
{
result = 0xFFFFFFFFLL;
if ( *(_DWORD *)(a1 + 20) )
return result;
*(_DWORD *)(a1 + 20) = 1;
*(_DWORD *)(a1 + 16) = v4 + 16;
}
else
{
stbi__fill_bits((unsigned __int8 **)a1);
}
}
v6 = *(_DWORD *)(a1 + 24);
v7 = *(unsigned __int16 *)(a2 + 2LL * (v6 & 0x1FF));
if ( *(_WORD *)(a2 + 2LL * (v6 & 0x1FF)) )
{
*(_DWORD *)(a1 + 24) = v6 >> (v7 >> 9);
*(_DWORD *)(a1 + 16) -= v7 >> 9;
return v7 & 0x1FF;
}
else
{
HIWORD(v8) = HIWORD(v6);
LOWORD(v8) = __ROL2__(v6, 8);
v9 = (v8 >> 4) & 0xF0F | (16 * (v8 & 0xF0F));
v10 = ((v9 >> 2) & 0x3333) + 4 * (v9 & 0x3333);
v11 = ((v10 >> 1) & 0x5555) + 2 * (v10 & 0x5555);
v12 = 0LL;
do
v13 = v12++;
while ( *(_DWORD *)(a2 + 4 * v13 + 1096) <= v11 );
result = 0xFFFFFFFFLL;
if ( (unsigned long long)(v12 + 9) <= 0xF )
{
v14 = ((unsigned int)v11 >> (7 - v12))
- (unsigned long long)*(unsigned __int16 *)(a2 + 2 * v12 + 1042)
+ *(unsigned __int16 *)(a2 + 2 * v12 + 1142);
if ( (int)v14 <= 287 && *(unsigned __int8 *)(a2 + v14 + 1156) - 9LL == v12 )
{
*(_DWORD *)(a1 + 24) = v6 >> (v12 + 9);
*(_DWORD *)(a1 + 16) = *(_DWORD *)(a1 + 16) - v12 - 9;
return *(unsigned __int16 *)(a2 + 2 * v14 + 1444);
}
}
}
return result;
}
| stbi__zhuffman_decode:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
MOV ECX,dword ptr [RDI + 0x10]
CMP ECX,0xf
JG 0x00135f82
MOV RAX,qword ptr [RBX]
CMP RAX,qword ptr [RBX + 0x8]
JNC 0x00135f66
MOV RDI,RBX
CALL 0x00135e6c
JMP 0x00135f82
LAB_00135f66:
MOV EAX,0xffffffff
CMP dword ptr [RBX + 0x14],0x0
JNZ 0x0013605e
MOV dword ptr [RBX + 0x14],0x1
ADD ECX,0x10
MOV dword ptr [RBX + 0x10],ECX
LAB_00135f82:
MOV ESI,dword ptr [RBX + 0x18]
MOV EAX,ESI
AND EAX,0x1ff
MOVZX EAX,word ptr [R14 + RAX*0x2]
TEST EAX,EAX
JZ 0x00135fac
MOV ECX,EAX
SHR ECX,0x9
SHR ESI,CL
MOV dword ptr [RBX + 0x18],ESI
SUB dword ptr [RBX + 0x10],ECX
AND EAX,0x1ff
JMP 0x0013605e
LAB_00135fac:
MOV EAX,ESI
ROL AX,0x8
MOV ECX,EAX
SHR ECX,0x4
MOV EDX,0xf0f
AND ECX,EDX
AND EAX,EDX
SHL EAX,0x4
OR EAX,ECX
MOV ECX,0x3333
MOV EDX,EAX
AND EDX,ECX
SHR EAX,0x2
AND EAX,ECX
LEA EAX,[RAX + RDX*0x4]
MOV ECX,0x5555
MOV EDX,EAX
AND EDX,ECX
SHR EAX,0x1
AND EAX,ECX
LEA R8D,[RAX + RDX*0x2]
XOR EDI,EDI
LAB_00135fe9:
MOV RAX,RDI
INC RDI
CMP dword ptr [R14 + RAX*0x4 + 0x448],R8D
JLE 0x00135fe9
LEA RDX,[RDI + 0x9]
MOV EAX,0xffffffff
CMP RDX,0xf
JA 0x0013605e
MOV CL,0x7
SUB CL,DIL
SHR R8D,CL
MOVZX ECX,word ptr [R14 + RDI*0x2 + 0x412]
SUB R8,RCX
MOVZX R9D,word ptr [R14 + RDI*0x2 + 0x476]
ADD R9,R8
CMP R9D,0x11f
JG 0x0013605e
MOVZX ECX,byte ptr [R14 + R9*0x1 + 0x484]
ADD RCX,-0x9
CMP RCX,RDI
JNZ 0x0013605e
MOV ECX,EDX
SHR ESI,CL
MOV dword ptr [RBX + 0x18],ESI
MOV EAX,dword ptr [RBX + 0x10]
SUB EAX,EDI
ADD EAX,-0x9
MOV dword ptr [RBX + 0x10],EAX
MOVZX EAX,word ptr [R14 + R9*0x2 + 0x5a4]
LAB_0013605e:
ADD RSP,0x8
POP RBX
POP R14
RET
|
uint stbi__zhuffman_decode(ulong *param_1,long param_2)
{
uint uVar1;
ushort uVar2;
uint uVar3;
uint uVar4;
long lVar5;
long lVar6;
long lVar7;
if ((int)param_1[2] < 0x10) {
if (*param_1 < param_1[1]) {
stbi__fill_bits();
}
else {
if (*(int *)((long)param_1 + 0x14) != 0) {
return 0xffffffff;
}
*(int4 *)((long)param_1 + 0x14) = 1;
*(int *)(param_1 + 2) = (int)param_1[2] + 0x10;
}
}
uVar1 = (uint)param_1[3];
uVar2 = *(ushort *)(param_2 + (ulong)(uVar1 & 0x1ff) * 2);
if (uVar2 == 0) {
uVar2 = (ushort)uVar1 << 8 | (ushort)uVar1 >> 8;
uVar4 = (uVar2 & 0xf0f) << 4 | (uVar2 & 0xf0f0) >> 4;
uVar4 = (uVar4 >> 2 & 0x3333) + (uVar4 & 0x3333) * 4;
uVar4 = (uVar4 >> 1 & 0x5555) + (uVar4 & 0x5555) * 2;
lVar6 = 0;
do {
lVar5 = lVar6;
lVar6 = lVar5 + 1;
} while (*(int *)(param_2 + 0x448 + lVar5 * 4) <= (int)uVar4);
uVar3 = 0xffffffff;
if (((lVar5 + 10U < 0x10) &&
(lVar7 = (ulong)*(ushort *)(param_2 + 0x476 + lVar6 * 2) +
((ulong)(uVar4 >> (7U - (char)lVar6 & 0x1f)) -
(ulong)*(ushort *)(param_2 + 0x412 + lVar6 * 2)), (int)lVar7 < 0x120)) &&
((ulong)*(byte *)(param_2 + 0x484 + lVar7) - 9 == lVar6)) {
*(uint *)(param_1 + 3) = uVar1 >> ((byte)(lVar5 + 10U) & 0x1f);
*(int *)(param_1 + 2) = ((int)param_1[2] - (int)lVar6) + -9;
uVar3 = (uint)*(ushort *)(param_2 + 0x5a4 + lVar7 * 2);
}
}
else {
*(uint *)(param_1 + 3) = uVar1 >> ((byte)(uVar2 >> 9) & 0x1f);
*(uint *)(param_1 + 2) = (int)param_1[2] - (uint)(uVar2 >> 9);
uVar3 = uVar2 & 0x1ff;
}
return uVar3;
}
| |
45,761 | ok1 | eloqsql/unittest/mytap/tap.c | void
ok1(int const pass)
{
va_list ap;
memset(&ap, 0, sizeof(ap));
if (!pass && *g_test.todo == '\0')
++g_test.failed;
vemit_tap(pass, NULL, ap);
if (*g_test.todo != '\0')
emit_dir("todo", g_test.todo);
emit_endl();
} | O3 | c | ok1:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x18, %rsp
xorps %xmm0, %xmm0
movaps %xmm0, -0x20(%rbp)
movq $0x0, -0x10(%rbp)
testl %edi, %edi
jne 0x91c5a
cmpb $0x0, 0xb6da4a(%rip) # 0xbff69c
jne 0x91c5a
incl 0xb6da3e(%rip) # 0xbff698
leaq -0x20(%rbp), %rdx
xorl %esi, %esi
callq 0x91b81
cmpb $0x0, 0xb6da30(%rip) # 0xbff69c
je 0x91ca1
movq 0x2f2323(%rip), %rbx # 0x383f98
movq (%rbx), %rdi
leaq 0x4a49d(%rip), %rdx # 0xdc11c
leaq 0x4a425(%rip), %rcx # 0xdc0ab
leaq 0xb6da0f(%rip), %r8 # 0xbff69c
movl $0x1, %esi
xorl %eax, %eax
callq 0x291f0
movq (%rbx), %rdi
callq 0x29400
movq 0x2f22f0(%rip), %rbx # 0x383f98
movq (%rbx), %rdi
leaq 0x4e2b2(%rip), %rdx # 0xdff64
movl $0x1, %esi
xorl %eax, %eax
callq 0x291f0
movq (%rbx), %rdi
callq 0x29400
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
| ok1:
push rbp
mov rbp, rsp
push rbx
sub rsp, 18h
xorps xmm0, xmm0
movaps [rbp+var_20], xmm0
mov [rbp+var_10], 0
test edi, edi
jnz short loc_91C5A
cmp cs:byte_BFF69C, 0
jnz short loc_91C5A
inc cs:dword_BFF698
loc_91C5A:
lea rdx, [rbp+var_20]
xor esi, esi
call vemit_tap
cmp cs:byte_BFF69C, 0
jz short loc_91CA1
mov rbx, cs:stdout_ptr
mov rdi, [rbx]
lea rdx, aSS; " # %s %s"
lea rcx, aTodo; "todo"
lea r8, byte_BFF69C
mov esi, 1
xor eax, eax
call ___fprintf_chk
mov rdi, [rbx]
call _fflush
loc_91CA1:
mov rbx, cs:stdout_ptr
mov rdi, [rbx]
lea rdx, asc_DFF61+3; "\n"
mov esi, 1
xor eax, eax
call ___fprintf_chk
mov rdi, [rbx]
call _fflush
add rsp, 18h
pop rbx
pop rbp
retn
| long long ok1(int a1)
{
long long v1; // rcx
long long v2; // r8
long long v3; // r9
__int128 v5; // [rsp+0h] [rbp-20h] BYREF
long long v6; // [rsp+10h] [rbp-10h]
v5 = 0LL;
v6 = 0LL;
if ( !a1 && !byte_BFF69C )
++dword_BFF698;
vemit_tap(a1, 0LL, (long long)&v5);
if ( byte_BFF69C )
{
__fprintf_chk(stdout, 1LL, " # %s %s", "todo", &byte_BFF69C);
fflush(stdout);
}
__fprintf_chk(stdout, 1LL, "\n", v1, v2, v3, v5, v6);
return fflush(stdout);
}
| ok1:
PUSH RBP
MOV RBP,RSP
PUSH RBX
SUB RSP,0x18
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RBP + -0x20],XMM0
MOV qword ptr [RBP + -0x10],0x0
TEST EDI,EDI
JNZ 0x00191c5a
CMP byte ptr [0x00cff69c],0x0
JNZ 0x00191c5a
INC dword ptr [0x00cff698]
LAB_00191c5a:
LEA RDX,[RBP + -0x20]
XOR ESI,ESI
CALL 0x00191b81
CMP byte ptr [0x00cff69c],0x0
JZ 0x00191ca1
MOV RBX,qword ptr [0x00483f98]
MOV RDI,qword ptr [RBX]
LEA RDX,[0x1dc11c]
LEA RCX,[0x1dc0ab]
LEA R8,[0xcff69c]
MOV ESI,0x1
XOR EAX,EAX
CALL 0x001291f0
MOV RDI,qword ptr [RBX]
CALL 0x00129400
LAB_00191ca1:
MOV RBX,qword ptr [0x00483f98]
MOV RDI,qword ptr [RBX]
LEA RDX,[0x1dff64]
MOV ESI,0x1
XOR EAX,EAX
CALL 0x001291f0
MOV RDI,qword ptr [RBX]
CALL 0x00129400
ADD RSP,0x18
POP RBX
POP RBP
RET
|
void ok1(int8 param_1)
{
int *puVar1;
int8 local_28;
int8 uStack_20;
int8 local_18;
local_28 = 0;
uStack_20 = 0;
local_18 = 0;
if (((int)param_1 == 0) && (DAT_00cff69c == '\0')) {
DAT_00cff698 = DAT_00cff698 + 1;
}
vemit_tap(param_1,0,&local_28);
puVar1 = PTR_stdout_00483f98;
if (DAT_00cff69c != '\0') {
__fprintf_chk(*(int8 *)PTR_stdout_00483f98,1," # %s %s",&DAT_001dc0ab,&DAT_00cff69c);
fflush(*(FILE **)puVar1);
}
puVar1 = PTR_stdout_00483f98;
__fprintf_chk(*(int8 *)PTR_stdout_00483f98,1,&DAT_001dff64);
fflush(*(FILE **)puVar1);
return;
}
| |
45,762 | void nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2<double>(char*, int&, int&, double) | monkey531[P]llama/common/json.hpp | JSON_HEDLEY_NON_NULL(1)
void grisu2(char* buf, int& len, int& decimal_exponent, FloatType value)
{
static_assert(diyfp::kPrecision >= std::numeric_limits<FloatType>::digits + 3,
"internal error: not enough precision");
JSON_ASSERT(std::isfinite(value));
JSON_ASSERT(value > 0);
// If the neighbors (and boundaries) of 'value' are always computed for double-precision
// numbers, all float's can be recovered using strtod (and strtof). However, the resulting
// decimal representations are not exactly "short".
//
// The documentation for 'std::to_chars' (https://en.cppreference.com/w/cpp/utility/to_chars)
// says "value is converted to a string as if by std::sprintf in the default ("C") locale"
// and since sprintf promotes floats to doubles, I think this is exactly what 'std::to_chars'
// does.
// On the other hand, the documentation for 'std::to_chars' requires that "parsing the
// representation using the corresponding std::from_chars function recovers value exactly". That
// indicates that single precision floating-point numbers should be recovered using
// 'std::strtof'.
//
// NB: If the neighbors are computed for single-precision numbers, there is a single float
// (7.0385307e-26f) which can't be recovered using strtod. The resulting double precision
// value is off by 1 ulp.
#if 0 // NOLINT(readability-avoid-unconditional-preprocessor-if)
const boundaries w = compute_boundaries(static_cast<double>(value));
#else
const boundaries w = compute_boundaries(value);
#endif
grisu2(buf, len, decimal_exponent, w.minus, w.w, w.plus);
} | O2 | cpp | void nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2<double>(char*, int&, int&, double):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %xmm0, %rax
btrq $0x3f, %rax
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
cmpq %rcx, %rax
jge 0x87c19
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x87c35
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x28(%rsp), %r12
movq %r12, %rdi
callq 0x87def
movq 0x10(%r12), %rcx
movl 0x18(%r12), %r8d
movups (%r12), %xmm0
movups 0x20(%r12), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x87f37
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x28426(%rip), %rdi # 0xb0046
leaq 0x2267a(%rip), %rdx # 0xaa2a1
leaq 0x2da0f(%rip), %rcx # 0xb563d
movl $0x4589, %esi # imm = 0x4589
jmp 0x87c4f
leaq 0x2840a(%rip), %rdi # 0xb0046
leaq 0x2265e(%rip), %rdx # 0xaa2a1
leaq 0x2db0c(%rip), %rcx # 0xb5756
movl $0x458a, %esi # imm = 0x458A
xorl %eax, %eax
callq 0x23ef0
| _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl6grisu2IdEEvPcRiS5_T_:
push r15
push r14
push r12
push rbx
sub rsp, 58h
movq rax, xmm0
btr rax, 3Fh ; '?'
mov rcx, 7FF0000000000000h
cmp rax, rcx
jge short loc_87C19
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jbe short loc_87C35
mov rbx, rdx
mov r14, rsi
mov r15, rdi
lea r12, [rsp+78h+var_50]
mov rdi, r12
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl18compute_boundariesIdEENS2_10boundariesET_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>(double)
mov rcx, [r12+10h]
mov r8d, [r12+18h]
movups xmm0, xmmword ptr [r12]
movups xmm1, xmmword ptr [r12+20h]
movups [rsp+78h+var_68], xmm1
movups [rsp+78h+var_78], xmm0
mov rdi, r15
mov rsi, r14
mov rdx, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl6grisu2EPcRiS4_NS2_5diyfpES5_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(char *,int &,int &,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp)
add rsp, 58h
pop rbx
pop r12
pop r14
pop r15
retn
loc_87C19:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aStdIsfiniteVal; "std::isfinite(value)"
mov esi, 4589h
jmp short loc_87C4F
loc_87C35:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aValue0; "value > 0"
mov esi, 458Ah
loc_87C4F:
xor eax, eax
call _ggml_abort
| long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2<double>(
long long a1,
long long a2,
long long a3,
double a4)
{
long long v5; // r9
char *v7; // rsi
int v8; // edx
int v9; // ecx
int v10; // r8d
int v11; // r9d
_QWORD v12[3]; // [rsp+28h] [rbp-50h] BYREF
unsigned int v13; // [rsp+40h] [rbp-38h]
long long v14; // [rsp+48h] [rbp-30h]
long long v15; // [rsp+50h] [rbp-28h]
if ( (*(_QWORD *)&a4 & 0x7FFFFFFFFFFFFFFFuLL) >= 0x7FF0000000000000LL )
{
v7 = (_BYTE *)(&stru_4588 + 1);
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17801LL,
"GGML_ASSERT(%s) failed",
"std::isfinite(value)");
}
else
{
if ( a4 > 0.0 )
{
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>(v12);
return nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(
a1,
a2,
a3,
v12[2],
v13,
v5,
v12[0],
v12[1],
v14,
v15);
}
v7 = (_BYTE *)(&stru_4588 + 2);
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17802LL,
"GGML_ASSERT(%s) failed",
"value > 0");
}
return nlohmann::json_abi_v3_11_3::detail::dtoa_impl::format_buffer(
(nlohmann::json_abi_v3_11_3::detail::dtoa_impl *)"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
v7,
v8,
v9,
v10,
v11);
}
| grisu2<double>:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x58
MOVQ RAX,XMM0
BTR RAX,0x3f
MOV RCX,0x7ff0000000000000
CMP RAX,RCX
JGE 0x00187c19
XORPD XMM1,XMM1
UCOMISD XMM0,XMM1
JBE 0x00187c35
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
LEA R12,[RSP + 0x28]
MOV RDI,R12
CALL 0x00187def
MOV RCX,qword ptr [R12 + 0x10]
MOV R8D,dword ptr [R12 + 0x18]
MOVUPS XMM0,xmmword ptr [R12]
MOVUPS XMM1,xmmword ptr [R12 + 0x20]
MOVUPS xmmword ptr [RSP + 0x10],XMM1
MOVUPS xmmword ptr [RSP],XMM0
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
CALL 0x00187f37
ADD RSP,0x58
POP RBX
POP R12
POP R14
POP R15
RET
LAB_00187c19:
LEA RDI,[0x1b0046]
LEA RDX,[0x1aa2a1]
LEA RCX,[0x1b563d]
MOV ESI,0x4589
JMP 0x00187c4f
LAB_00187c35:
LEA RDI,[0x1b0046]
LEA RDX,[0x1aa2a1]
LEA RCX,[0x1b5756]
MOV ESI,0x458a
LAB_00187c4f:
XOR EAX,EAX
CALL 0x00123ef0
|
/* void nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2<double>(char*, int&, int&, double) */
void nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2<double>
(char *param_1,int *param_2,int *param_3,double param_4)
{
char *pcVar1;
int8 uVar2;
int8 in_R9;
int4 local_50 [2];
int4 uStack_48;
int8 local_40;
int4 local_38;
int4 local_30;
int4 uStack_28;
if ((ulong)ABS(param_4) < 0x7ff0000000000000) {
if (0.0 < param_4) {
compute_boundaries<double>((dtoa_impl *)local_50,param_4);
grisu2(param_1,param_2,param_3,local_40,local_38,in_R9,local_50[0],uStack_48,local_30,
uStack_28);
return;
}
pcVar1 = "value > 0";
uVar2 = 0x458a;
}
else {
pcVar1 = "std::isfinite(value)";
uVar2 = 0x4589;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar2,
"GGML_ASSERT(%s) failed",pcVar1);
}
| |
45,763 | Catch::Matchers::Equals(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, Catch::CaseSensitive) | AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.cpp | StringEqualsMatcher Equals( std::string const& str, CaseSensitive caseSensitivity ) {
return StringEqualsMatcher( CasedString( str, caseSensitivity) );
} | O3 | cpp | Catch::Matchers::Equals(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, Catch::CaseSensitive):
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq %rsp, %r14
movq %r14, %rdi
callq 0x658d2
movq %rbx, %rdi
movq %r14, %rsi
callq 0x65aa6
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5934b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x17150
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x59374
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x17150
movq %rbx, %rdi
callq 0x17740
| _ZN5Catch8Matchers6EqualsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13CaseSensitiveE:
push r14
push rbx
sub rsp, 28h
mov rbx, rdi
mov r14, rsp
mov rdi, r14
call _ZN5Catch8Matchers11CasedStringC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13CaseSensitiveE; Catch::Matchers::CasedString::CasedString(std::string const&,Catch::CaseSensitive)
mov rdi, rbx; this
mov rsi, r14; Catch::Matchers::CasedString *
call _ZN5Catch8Matchers19StringEqualsMatcherC2ERKNS0_11CasedStringE; Catch::Matchers::StringEqualsMatcher::StringEqualsMatcher(Catch::Matchers::CasedString const&)
lea rax, [rsp+38h+var_20]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5934B
mov rsi, [rsp+38h+var_20]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5934B:
mov rax, rbx
add rsp, 28h
pop rbx
pop r14
retn
mov rbx, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_59374
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_59374:
mov rdi, rbx
call __Unwind_Resume
| Catch::Matchers::StringEqualsMatcher * Catch::Matchers::Equals(Catch::Matchers::StringEqualsMatcher *this)
{
long long v2; // [rsp+0h] [rbp-38h] BYREF
long long *v3; // [rsp+8h] [rbp-30h]
long long v4; // [rsp+18h] [rbp-20h] BYREF
Catch::Matchers::CasedString::CasedString(&v2);
Catch::Matchers::StringEqualsMatcher::StringEqualsMatcher(this, (const Catch::Matchers::CasedString *)&v2);
if ( v3 != &v4 )
operator delete(v3, v4 + 1);
return this;
}
| Equals:
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
MOV R14,RSP
MOV RDI,R14
CALL 0x001658d2
LAB_00159325:
MOV RDI,RBX
MOV RSI,R14
CALL 0x00165aa6
LAB_00159330:
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0015934b
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x00117150
LAB_0015934b:
MOV RAX,RBX
ADD RSP,0x28
POP RBX
POP R14
RET
|
/* Catch::Matchers::Equals(std::__cxx11::string const&, Catch::CaseSensitive) */
StringEqualsMatcher * Catch::Matchers::Equals(StringEqualsMatcher *param_1)
{
CasedString aCStack_38 [8];
long *local_30;
long local_20 [2];
CasedString::CasedString(aCStack_38);
/* try { // try from 00159325 to 0015932f has its CatchHandler @ 00159356 */
StringEqualsMatcher::StringEqualsMatcher(param_1,aCStack_38);
if (local_30 != local_20) {
operator_delete(local_30,local_20[0] + 1);
}
return param_1;
}
| |
45,764 | ma_read_bitmap_page | eloqsql/storage/maria/ma_bitmap.c | static my_bool _ma_read_bitmap_page(MARIA_HA *info,
MARIA_FILE_BITMAP *bitmap,
pgcache_page_no_t page)
{
MARIA_SHARE *share= info->s;
my_bool res;
DBUG_ENTER("_ma_read_bitmap_page");
DBUG_PRINT("enter", ("page: %lld data_file_length: %lld",
(longlong) page,
(longlong) share->state.state.data_file_length));
DBUG_ASSERT(page % bitmap->pages_covered == 0);
DBUG_ASSERT(!bitmap->changed);
bitmap->page= page;
if ((page + 1) * bitmap->block_size > share->state.state.data_file_length)
{
/* Inexistent or half-created page */
res= _ma_bitmap_create_missing(info, bitmap, page);
if (!res)
adjust_total_size(info, page);
DBUG_RETURN(res);
}
adjust_total_size(info, page);
bitmap->full_head_size= bitmap->full_tail_size= 0;
DBUG_ASSERT(share->pagecache->block_size == bitmap->block_size);
res= pagecache_read(share->pagecache,
&bitmap->file, page, 0,
bitmap->map, PAGECACHE_PLAIN_PAGE,
PAGECACHE_LOCK_LEFT_UNLOCKED, 0) == NULL;
if (!res)
{
/* Calculate used_size */
const uchar *data, *end= bitmap->map;
for (data= bitmap->map + bitmap->total_size; --data >= end && *data == 0; )
{}
bitmap->used_size= (uint) ((data + 1) - end);
DBUG_ASSERT(bitmap->used_size <= bitmap->total_size);
}
else
{
_ma_set_fatal_error(info, my_errno);
}
/*
We can't check maria_bitmap_marker here as if the bitmap page
previously had a true checksum and the user switched mode to not checksum
this may have any value, except maria_normal_page_marker.
Using maria_normal_page_marker gives us a protection against bugs
when running without any checksums.
*/
#ifndef DBUG_OFF
if (!res)
{
memcpy(bitmap->map + bitmap->block_size, bitmap->map, bitmap->block_size);
_ma_check_bitmap(bitmap);
}
#endif
DBUG_RETURN(res);
} | O0 | c | ma_read_bitmap_page:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
jmp 0x62191
jmp 0x62193
jmp 0x62195
jmp 0x62197
jmp 0x62199
movq -0x20(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq -0x18(%rbp), %rcx
movl 0x134(%rcx), %ecx
imulq %rcx, %rax
movq -0x28(%rbp), %rcx
cmpq 0x40(%rcx), %rax
jbe 0x621f9
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x62310
movb %al, -0x29(%rbp)
cmpb $0x0, -0x29(%rbp)
jne 0x621ec
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x62590
jmp 0x621ee
movb -0x29(%rbp), %al
movb %al, -0x1(%rbp)
jmp 0x62304
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x62590
movq -0x18(%rbp), %rax
movl $0x0, 0x2c(%rax)
movq -0x18(%rbp), %rax
movl $0x0, 0x28(%rax)
jmp 0x6221e
movq -0x28(%rbp), %rax
movq 0x600(%rax), %rdi
movq -0x18(%rbp), %rsi
addq $0x40, %rsi
movq -0x20(%rbp), %rdx
movq -0x18(%rbp), %rax
movq 0x8(%rax), %r8
xorl %ecx, %ecx
movl $0x1, %r9d
xorl %eax, %eax
movl $0x0, (%rsp)
movq $0x0, 0x8(%rsp)
callq 0x96df0
cmpq $0x0, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
movb %al, -0x29(%rbp)
cmpb $0x0, -0x29(%rbp)
jne 0x622e4
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
movl 0x128(%rcx), %ecx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rcx
addq $-0x1, %rcx
movq %rcx, -0x38(%rbp)
xorl %eax, %eax
cmpq -0x40(%rbp), %rcx
movb %al, -0x41(%rbp)
jb 0x622bd
movq -0x38(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x0, %eax
sete %al
movb %al, -0x41(%rbp)
movb -0x41(%rbp), %al
testb $0x1, %al
jne 0x622c6
jmp 0x622c8
jmp 0x62296
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq -0x40(%rbp), %rcx
subq %rcx, %rax
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x24(%rax)
jmp 0x622e2
jmp 0x622fc
movq -0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
callq 0xfc990
movq -0x50(%rbp), %rdi
movl (%rax), %esi
callq 0x37c10
jmp 0x622fe
movb -0x29(%rbp), %al
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)
| _ma_read_bitmap_page:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_28], rax
jmp short $+2
loc_62191:
jmp short $+2
loc_62193:
jmp short $+2
loc_62195:
jmp short $+2
loc_62197:
jmp short $+2
loc_62199:
mov rcx, [rbp+var_20]
mov rax, [rbp+var_18]
mov [rax+10h], rcx
mov rax, [rbp+var_20]
add rax, 1
mov rcx, [rbp+var_18]
mov ecx, [rcx+134h]
imul rax, rcx
mov rcx, [rbp+var_28]
cmp rax, [rcx+40h]
jbe short loc_621F9
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call _ma_bitmap_create_missing
mov [rbp+var_29], al
cmp [rbp+var_29], 0
jnz short loc_621EC
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_20]
call adjust_total_size
loc_621EC:
jmp short $+2
loc_621EE:
mov al, [rbp+var_29]
mov [rbp+var_1], al
jmp loc_62304
loc_621F9:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_20]
call adjust_total_size
mov rax, [rbp+var_18]
mov dword ptr [rax+2Ch], 0
mov rax, [rbp+var_18]
mov dword ptr [rax+28h], 0
jmp short $+2
loc_6221E:
mov rax, [rbp+var_28]
mov rdi, [rax+600h]
mov rsi, [rbp+var_18]
add rsi, 40h ; '@'
mov rdx, [rbp+var_20]
mov rax, [rbp+var_18]
mov r8, [rax+8]
xor ecx, ecx
mov r9d, 1
xor eax, eax
mov [rsp+60h+var_60], 0
mov [rsp+60h+var_58], 0
call pagecache_read
cmp rax, 0
setz al
and al, 1
movzx eax, al
mov [rbp+var_29], al
cmp [rbp+var_29], 0
jnz short loc_622E4
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov [rbp+var_40], rax
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov rcx, [rbp+var_18]
mov ecx, [rcx+128h]
add rax, rcx
mov [rbp+var_38], rax
loc_62296:
mov rcx, [rbp+var_38]
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_38], rcx
xor eax, eax
cmp rcx, [rbp+var_40]
mov [rbp+var_41], al
jb short loc_622BD
mov rax, [rbp+var_38]
movzx eax, byte ptr [rax]
cmp eax, 0
setz al
mov [rbp+var_41], al
loc_622BD:
mov al, [rbp+var_41]
test al, 1
jnz short loc_622C6
jmp short loc_622C8
loc_622C6:
jmp short loc_62296
loc_622C8:
mov rax, [rbp+var_38]
add rax, 1
mov rcx, [rbp+var_40]
sub rax, rcx
mov ecx, eax
mov rax, [rbp+var_18]
mov [rax+24h], ecx
jmp short $+2
loc_622E2:
jmp short loc_622FC
loc_622E4:
mov rax, [rbp+var_10]
mov [rbp+var_50], rax
call _my_thread_var
mov rdi, [rbp+var_50]
mov esi, [rax]
call _ma_set_fatal_error
loc_622FC:
jmp short $+2
loc_622FE:
mov al, [rbp+var_29]
mov [rbp+var_1], al
loc_62304:
mov al, [rbp+var_1]
add rsp, 60h
pop rbp
retn
| bool ma_read_bitmap_page(_DWORD *a1, long long a2, long long a3)
{
long long v3; // rdi
const char *v4; // rsi
long long v5; // rax
unsigned int *v6; // rax
long long v7; // rdx
long long v8; // rcx
long long v9; // r8
int v10; // r9d
bool v12; // [rsp+1Fh] [rbp-41h]
unsigned long long v13; // [rsp+20h] [rbp-40h]
_BYTE *v14; // [rsp+28h] [rbp-38h]
char missing; // [rsp+37h] [rbp-29h]
bool v16; // [rsp+37h] [rbp-29h]
long long v17; // [rsp+38h] [rbp-28h]
v17 = *(_QWORD *)a1;
*(_QWORD *)(a2 + 16) = a3;
if ( (unsigned long long)*(unsigned int *)(a2 + 308) * (a3 + 1) <= *(_QWORD *)(v17 + 64) )
{
adjust_total_size(a1, a3);
*(_DWORD *)(a2 + 44) = 0;
*(_DWORD *)(a2 + 40) = 0;
v3 = *(_QWORD *)(v17 + 1536);
v4 = (const char *)(a2 + 64);
v5 = pagecache_read(v3, (int)a2 + 64, a3, 0, *(_QWORD *)(a2 + 8), 1, 0, 0LL);
v16 = v5 == 0;
if ( v5 )
{
v13 = *(_QWORD *)(a2 + 8);
v14 = (_BYTE *)(*(unsigned int *)(a2 + 296) + v13);
do
{
--v14;
v12 = 0;
if ( (unsigned long long)v14 >= v13 )
v12 = *v14 == 0;
}
while ( v12 );
*(_DWORD *)(a2 + 36) = (_DWORD)v14 + 1 - v13;
}
else
{
v6 = (unsigned int *)my_thread_var(v3, v4);
ma_set_fatal_error(a1, *v6, v7, v8, v9, v10);
}
return v16;
}
else
{
missing = ma_bitmap_create_missing(a1, a2, a3);
if ( !missing )
adjust_total_size(a1, a3);
return missing;
}
}
| _ma_read_bitmap_page:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x28],RAX
JMP 0x00162191
LAB_00162191:
JMP 0x00162193
LAB_00162193:
JMP 0x00162195
LAB_00162195:
JMP 0x00162197
LAB_00162197:
JMP 0x00162199
LAB_00162199:
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV RCX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RCX + 0x134]
IMUL RAX,RCX
MOV RCX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RCX + 0x40]
JBE 0x001621f9
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x00162310
MOV byte ptr [RBP + -0x29],AL
CMP byte ptr [RBP + -0x29],0x0
JNZ 0x001621ec
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x00162590
LAB_001621ec:
JMP 0x001621ee
LAB_001621ee:
MOV AL,byte ptr [RBP + -0x29]
MOV byte ptr [RBP + -0x1],AL
JMP 0x00162304
LAB_001621f9:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x00162590
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x2c],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x28],0x0
JMP 0x0016221e
LAB_0016221e:
MOV RAX,qword ptr [RBP + -0x28]
MOV RDI,qword ptr [RAX + 0x600]
MOV RSI,qword ptr [RBP + -0x18]
ADD RSI,0x40
MOV RDX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x18]
MOV R8,qword ptr [RAX + 0x8]
XOR ECX,ECX
MOV R9D,0x1
XOR EAX,EAX
MOV dword ptr [RSP],0x0
MOV qword ptr [RSP + 0x8],0x0
CALL 0x00196df0
CMP RAX,0x0
SETZ AL
AND AL,0x1
MOVZX EAX,AL
MOV byte ptr [RBP + -0x29],AL
CMP byte ptr [RBP + -0x29],0x0
JNZ 0x001622e4
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RCX + 0x128]
ADD RAX,RCX
MOV qword ptr [RBP + -0x38],RAX
LAB_00162296:
MOV RCX,qword ptr [RBP + -0x38]
ADD RCX,-0x1
MOV qword ptr [RBP + -0x38],RCX
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x40]
MOV byte ptr [RBP + -0x41],AL
JC 0x001622bd
MOV RAX,qword ptr [RBP + -0x38]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x0
SETZ AL
MOV byte ptr [RBP + -0x41],AL
LAB_001622bd:
MOV AL,byte ptr [RBP + -0x41]
TEST AL,0x1
JNZ 0x001622c6
JMP 0x001622c8
LAB_001622c6:
JMP 0x00162296
LAB_001622c8:
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x1
MOV RCX,qword ptr [RBP + -0x40]
SUB RAX,RCX
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x24],ECX
JMP 0x001622e2
LAB_001622e2:
JMP 0x001622fc
LAB_001622e4:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x50],RAX
CALL 0x001fc990
MOV RDI,qword ptr [RBP + -0x50]
MOV ESI,dword ptr [RAX]
CALL 0x00137c10
LAB_001622fc:
JMP 0x001622fe
LAB_001622fe:
MOV AL,byte ptr [RBP + -0x29]
MOV byte ptr [RBP + -0x1],AL
LAB_00162304:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x60
POP RBP
RET
|
int8 _ma_read_bitmap_page(long *param_1,long param_2,long param_3)
{
ulong uVar1;
ulong uVar2;
int8 uVar3;
int7 uVar6;
long lVar4;
int4 *puVar5;
bool bVar7;
char *local_40;
char local_9;
lVar4 = *param_1;
*(long *)(param_2 + 0x10) = param_3;
uVar2 = (param_3 + 1) * (ulong)*(uint *)(param_2 + 0x134);
uVar1 = *(ulong *)(lVar4 + 0x40);
if (uVar2 < uVar1 || uVar2 - uVar1 == 0) {
adjust_total_size(param_1,param_3);
*(int4 *)(param_2 + 0x2c) = 0;
*(int4 *)(param_2 + 0x28) = 0;
lVar4 = pagecache_read(*(int8 *)(lVar4 + 0x600),param_2 + 0x40,param_3,0,
*(int8 *)(param_2 + 8),1,0,0);
local_9 = lVar4 == 0;
if ((bool)local_9) {
puVar5 = (int4 *)_my_thread_var();
param_2 = _ma_set_fatal_error(param_1,*puVar5);
}
else {
local_40 = (char *)(*(long *)(param_2 + 8) + (ulong)*(uint *)(param_2 + 0x128));
do {
local_40 = local_40 + -1;
bVar7 = false;
if (*(char **)(param_2 + 8) <= local_40) {
bVar7 = *local_40 == '\0';
}
} while (bVar7);
*(int *)(param_2 + 0x24) = ((int)local_40 + 1) - (int)*(char **)(param_2 + 8);
}
uVar6 = (int7)((ulong)param_2 >> 8);
}
else {
uVar3 = _ma_bitmap_create_missing(param_1,param_2,param_3);
local_9 = (char)uVar3;
if (local_9 == '\0') {
uVar3 = adjust_total_size(param_1,param_3);
}
uVar6 = (int7)((ulong)uVar3 >> 8);
}
return CONCAT71(uVar6,local_9);
}
| |
45,765 | translog_scanner_eol | eloqsql/storage/maria/ma_loghandler.c | static my_bool translog_scanner_eol(TRANSLOG_SCANNER_DATA *scanner)
{
DBUG_ENTER("translog_scanner_eol");
DBUG_PRINT("enter",
("Horizon: " LSN_FMT " Current: (%u, 0x%x+0x%x=0x%x)",
LSN_IN_PARTS(scanner->horizon),
LSN_IN_PARTS(scanner->page_addr),
(uint) scanner->page_offset,
(uint) (LSN_OFFSET(scanner->page_addr) + scanner->page_offset)));
if (scanner->horizon > (scanner->page_addr +
scanner->page_offset))
{
DBUG_PRINT("info", ("Horizon is not reached"));
DBUG_RETURN(0);
}
if (scanner->fixed_horizon)
{
DBUG_PRINT("info", ("Horizon is fixed and reached"));
DBUG_RETURN(1);
}
scanner->horizon= translog_get_horizon();
DBUG_PRINT("info",
("Horizon is re-read, EOL: %d",
scanner->horizon <= (scanner->page_addr +
scanner->page_offset)));
DBUG_RETURN(scanner->horizon <= (scanner->page_addr +
scanner->page_offset));
} | O3 | c | translog_scanner_eol:
movl 0x2028(%rdi), %eax
addq 0x2000(%rdi), %rax
cmpq %rax, 0x2008(%rdi)
jle 0x6cf20
xorl %eax, %eax
retq
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movb $0x1, %al
cmpb $0x0, 0x202c(%rdi)
jne 0x6cf53
callq 0x68d88
movq %rax, 0x2008(%rbx)
movl 0x2028(%rbx), %ecx
addq 0x2000(%rbx), %rcx
cmpq %rcx, %rax
setle %al
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| translog_scanner_eol:
mov eax, [rdi+2028h]
add rax, [rdi+2000h]
cmp [rdi+2008h], rax
jle short loc_6CF20
xor eax, eax
retn
loc_6CF20:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
mov al, 1
cmp byte ptr [rdi+202Ch], 0
jnz short loc_6CF53
call translog_get_horizon
mov [rbx+2008h], rax
mov ecx, [rbx+2028h]
add rcx, [rbx+2000h]
cmp rax, rcx
setle al
loc_6CF53:
add rsp, 8
pop rbx
pop rbp
retn
| bool translog_scanner_eol(long long a1)
{
bool result; // al
long long horizon; // rax
if ( *(_QWORD *)(a1 + 8200) > (signed long long)(*(_QWORD *)(a1 + 0x2000) + *(unsigned int *)(a1 + 8232)) )
return 0;
result = 1;
if ( !*(_BYTE *)(a1 + 8236) )
{
horizon = translog_get_horizon();
*(_QWORD *)(a1 + 8200) = horizon;
return horizon <= *(_QWORD *)(a1 + 0x2000) + *(unsigned int *)(a1 + 8232);
}
return result;
}
| translog_scanner_eol:
MOV EAX,dword ptr [RDI + 0x2028]
ADD RAX,qword ptr [RDI + 0x2000]
CMP qword ptr [RDI + 0x2008],RAX
JLE 0x0016cf20
XOR EAX,EAX
RET
LAB_0016cf20:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV AL,0x1
CMP byte ptr [RDI + 0x202c],0x0
JNZ 0x0016cf53
CALL 0x00168d88
MOV qword ptr [RBX + 0x2008],RAX
MOV ECX,dword ptr [RBX + 0x2028]
ADD RCX,qword ptr [RBX + 0x2000]
CMP RAX,RCX
SETLE AL
LAB_0016cf53:
ADD RSP,0x8
POP RBX
POP RBP
RET
|
bool translog_scanner_eol(long param_1)
{
bool bVar1;
long lVar2;
if ((long)((ulong)*(uint *)(param_1 + 0x2028) + *(long *)(param_1 + 0x2000)) <
*(long *)(param_1 + 0x2008)) {
return false;
}
bVar1 = true;
if (*(char *)(param_1 + 0x202c) == '\0') {
lVar2 = translog_get_horizon();
*(long *)(param_1 + 0x2008) = lVar2;
bVar1 = lVar2 <= (long)((ulong)*(uint *)(param_1 + 0x2028) + *(long *)(param_1 + 0x2000));
}
return bVar1;
}
| |
45,766 | mysql_set_server_option_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_set_server_option_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_set_server_option,
(parms->mysql, parms->option),
parms->mysql,
int,
r_int)
} | O0 | c | mysql_set_server_option_start_internal:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movl 0x8(%rax), %esi
callq 0x22ba0
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| mysql_set_server_option_start_internal:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rdi, [rax]
mov rax, [rbp+var_10]
mov esi, [rax+8]
call mysql_set_server_option
mov [rbp+var_14], eax
mov ecx, [rbp+var_14]
mov rax, [rbp+var_20]
mov [rax+8], ecx
mov rax, [rbp+var_20]
mov dword ptr [rax], 0
add rsp, 20h
pop rbp
retn
| _DWORD * mysql_set_server_option_start_internal(long long a1)
{
_DWORD *result; // rax
_DWORD *v2; // [rsp+0h] [rbp-20h]
v2 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)a1 + 1152LL) + 40LL);
v2[2] = mysql_set_server_option(*(_QWORD *)a1, *(_DWORD *)(a1 + 8));
result = v2;
*v2 = 0;
return result;
}
| mysql_set_server_option_start_internal:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RAX + 0x8]
CALL 0x00122ba0
MOV dword ptr [RBP + -0x14],EAX
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x8],ECX
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX],0x0
ADD RSP,0x20
POP RBP
RET
|
void mysql_set_server_option_start_internal(long *param_1)
{
int4 *puVar1;
int4 uVar2;
puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28);
uVar2 = mysql_set_server_option(*param_1,(int)param_1[1]);
puVar1[2] = uVar2;
*puVar1 = 0;
return;
}
| |
45,767 | ma_reset_history | eloqsql/storage/maria/ma_state.c | void _ma_reset_history(MARIA_SHARE *share)
{
MARIA_STATE_HISTORY *history, *next;
DBUG_ENTER("_ma_reset_history");
share->state_history->trid= 0; /* Visibly by all */
share->state_history->state= share->state.state;
history= share->state_history->next;
share->state_history->next= 0;
for (; history; history= next)
{
next= history->next;
my_free(history);
}
DBUG_VOID_RETURN;
} | O0 | c | ma_reset_history:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x450(%rax), %rax
movq $0x0, 0x8(%rax)
movq -0x8(%rbp), %rax
movq 0x450(%rax), %rdi
addq $0x10, %rdi
movq -0x8(%rbp), %rsi
addq $0x18, %rsi
movl $0x38, %edx
callq 0x2a090
movq -0x8(%rbp), %rax
movq 0x450(%rax), %rax
movq (%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x450(%rax), %rax
movq $0x0, (%rax)
cmpq $0x0, -0x10(%rbp)
je 0x36e89
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0xf3be0
movq -0x18(%rbp), %rax
movq %rax, -0x10(%rbp)
jmp 0x36e64
jmp 0x36e8b
jmp 0x36e8d
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ma_reset_history:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov rax, [rax+450h]
mov qword ptr [rax+8], 0
mov rax, [rbp+var_8]
mov rdi, [rax+450h]
add rdi, 10h
mov rsi, [rbp+var_8]
add rsi, 18h
mov edx, 38h ; '8'
call _memcpy
mov rax, [rbp+var_8]
mov rax, [rax+450h]
mov rax, [rax]
mov [rbp+var_10], rax
mov rax, [rbp+var_8]
mov rax, [rax+450h]
mov qword ptr [rax], 0
loc_36E64:
cmp [rbp+var_10], 0
jz short loc_36E89
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_18], rax
mov rdi, [rbp+var_10]
call my_free
mov rax, [rbp+var_18]
mov [rbp+var_10], rax
jmp short loc_36E64
loc_36E89:
jmp short $+2
loc_36E8B:
jmp short $+2
loc_36E8D:
add rsp, 20h
pop rbp
retn
| _QWORD * ma_reset_history(long long a1)
{
_QWORD *result; // rax
_QWORD *v2; // [rsp+8h] [rbp-18h]
_QWORD *v3; // [rsp+10h] [rbp-10h]
*(_QWORD *)(*(_QWORD *)(a1 + 1104) + 8LL) = 0LL;
memcpy(*(_QWORD *)(a1 + 1104) + 16LL, a1 + 24, 56LL);
v3 = **(_QWORD ***)(a1 + 1104);
result = *(_QWORD **)(a1 + 1104);
*result = 0LL;
while ( v3 )
{
v2 = (_QWORD *)*v3;
my_free(v3);
result = v2;
v3 = v2;
}
return result;
}
| _ma_reset_history:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x450]
MOV qword ptr [RAX + 0x8],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x450]
ADD RDI,0x10
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0x18
MOV EDX,0x38
CALL 0x0012a090
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x450]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x450]
MOV qword ptr [RAX],0x0
LAB_00136e64:
CMP qword ptr [RBP + -0x10],0x0
JZ 0x00136e89
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001f3be0
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x10],RAX
JMP 0x00136e64
LAB_00136e89:
JMP 0x00136e8b
LAB_00136e8b:
JMP 0x00136e8d
LAB_00136e8d:
ADD RSP,0x20
POP RBP
RET
|
void _ma_reset_history(long param_1)
{
int8 *puVar1;
int8 local_18;
*(int8 *)(*(long *)(param_1 + 0x450) + 8) = 0;
memcpy((void *)(*(long *)(param_1 + 0x450) + 0x10),(void *)(param_1 + 0x18),0x38);
local_18 = (int8 *)**(int8 **)(param_1 + 0x450);
**(int8 **)(param_1 + 0x450) = 0;
while (local_18 != (int8 *)0x0) {
puVar1 = (int8 *)*local_18;
my_free(local_18);
local_18 = puVar1;
}
return;
}
| |
45,768 | testing::internal::RE::~RE() | AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest-port.cc | RE::~RE() {
if (is_valid_) {
// regfree'ing an invalid regex might crash because the content
// of the regex is undefined. Since the regex's are essentially
// the same, one cannot be valid (or invalid) without the other
// being so too.
regfree(&partial_regex_);
regfree(&full_regex_);
}
} | O0 | cpp | testing::internal::RE::~RE():
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
testb $0x1, 0x20(%rax)
je 0xb858b
movq 0x8(%rsp), %rdi
addq $0x68, %rdi
callq 0x146d0
jmp 0xb8579
movq 0x8(%rsp), %rdi
addq $0x28, %rdi
callq 0x146d0
jmp 0xb8589
jmp 0xb858b
movq 0x8(%rsp), %rdi
callq 0x1aac0
addq $0x18, %rsp
retq
movq %rax, %rdi
callq 0x1b6b0
nopw %cs:(%rax,%rax)
| _ZN7testing8internal2RED2Ev:
sub rsp, 18h; Alternative name is 'testing::internal::RE::~RE()'
mov [rsp+18h+var_8], rdi
mov rax, [rsp+18h+var_8]
mov [rsp+18h+var_10], rax
test byte ptr [rax+20h], 1
jz short loc_B858B
mov rdi, [rsp+18h+var_10]
add rdi, 68h ; 'h'
call _regfree
jmp short $+2
loc_B8579:
mov rdi, [rsp+18h+var_10]
add rdi, 28h ; '('
call _regfree
jmp short $+2
loc_B8589:
jmp short $+2
loc_B858B:
mov rdi, [rsp+18h+var_10]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
add rsp, 18h
retn
mov rdi, rax
call __clang_call_terminate
| void testing::internal::RE::~RE(testing::internal::RE *this)
{
if ( (*((_BYTE *)this + 32) & 1) != 0 )
{
regfree((char *)this + 104);
regfree((char *)this + 40);
}
std::string::~string(this);
}
| ~RE:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x8],RAX
TEST byte ptr [RAX + 0x20],0x1
JZ 0x001b858b
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x68
LAB_001b8572:
CALL 0x001146d0
JMP 0x001b8579
LAB_001b8579:
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x28
CALL 0x001146d0
JMP 0x001b8589
LAB_001b8589:
JMP 0x001b858b
LAB_001b858b:
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x0011aac0
ADD RSP,0x18
RET
|
/* testing::internal::RE::~RE() */
void __thiscall testing::internal::RE::~RE(RE *this)
{
if (((byte)this[0x20] & 1) != 0) {
/* try { // try from 001b8572 to 001b8586 has its CatchHandler @ 001b859a */
regfree((regex_t *)(this + 0x68));
regfree((regex_t *)(this + 0x28));
}
std::__cxx11::string::~string((string *)this);
return;
}
| |
45,769 | my_wc_to_printable_ex | eloqsql/strings/ctype.c | int
my_wc_to_printable_ex(CHARSET_INFO *cs, my_wc_t wc,
uchar *str, uchar *end,
uint bs, uint bslen, uint diglen)
{
uchar *str0;
uint i, length;
uchar tmp[MY_CS_PRINTABLE_CHAR_LENGTH * MY_CS_MBMAXLEN];
if (my_is_printable(wc))
{
int mblen= my_ci_wc_mb(cs, wc, str, end);
if (mblen > 0)
return mblen;
}
if (str + my_printable_length(bslen, diglen) > end)
return MY_CS_TOOSMALLN(my_printable_length(bslen, diglen));
if ((cs->state & MY_CS_NONASCII) == 0)
return to_printable_8bit(str, wc, bs);
length= to_printable_8bit(tmp, wc, bs);
str0= str;
for (i= 0; i < length; i++)
{
uint expected_length= i == 0 ? bslen : diglen;
if (my_ci_wc_mb(cs, tmp[i], str, end) != (int) expected_length)
{
DBUG_ASSERT(0);
return MY_CS_ILSEQ;
}
str+= expected_length;
}
return (int) (str - str0);
} | O0 | c | my_wc_to_printable_ex:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movl 0x10(%rbp), %eax
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x40(%rbp)
movq %rsi, -0x48(%rbp)
movq %rdx, -0x50(%rbp)
movq %rcx, -0x58(%rbp)
movl %r8d, -0x5c(%rbp)
movl %r9d, -0x60(%rbp)
movq -0x48(%rbp), %rdi
callq 0x6cf10
cmpb $0x0, %al
je 0x6cdc7
movq -0x40(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x30(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq -0x50(%rbp), %rdx
movq -0x58(%rbp), %rcx
callq *%rax
movl %eax, -0x74(%rbp)
cmpl $0x0, -0x74(%rbp)
jle 0x6cdc5
movl -0x74(%rbp), %eax
movl %eax, -0x34(%rbp)
jmp 0x6cedf
jmp 0x6cdc7
movq -0x50(%rbp), %rax
movq %rax, -0x80(%rbp)
movl -0x60(%rbp), %edi
movl 0x10(%rbp), %esi
callq 0x6cf90
movl %eax, %ecx
movq -0x80(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
cmpq -0x58(%rbp), %rax
jbe 0x6ce07
movl -0x60(%rbp), %edi
movl 0x10(%rbp), %esi
callq 0x6cf90
movl %eax, %ecx
movl $0xffffff9c, %eax # imm = 0xFFFFFF9C
subl %ecx, %eax
movl %eax, -0x34(%rbp)
jmp 0x6cedf
movq -0x40(%rbp), %rax
movl 0xc(%rax), %eax
andl $0x2000, %eax # imm = 0x2000
cmpl $0x0, %eax
jne 0x6ce30
movq -0x50(%rbp), %rdi
movq -0x48(%rbp), %rsi
movl -0x5c(%rbp), %edx
callq 0x6cfb0
movl %eax, -0x34(%rbp)
jmp 0x6cedf
leaq -0x30(%rbp), %rdi
movq -0x48(%rbp), %rsi
movl -0x5c(%rbp), %edx
callq 0x6cfb0
movl %eax, -0x70(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x68(%rbp)
movl $0x0, -0x6c(%rbp)
movl -0x6c(%rbp), %eax
cmpl -0x70(%rbp), %eax
jae 0x6ced1
cmpl $0x0, -0x6c(%rbp)
jne 0x6ce6b
movl -0x60(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x6ce74
movl 0x10(%rbp), %eax
movl %eax, -0x84(%rbp)
movl -0x84(%rbp), %eax
movl %eax, -0x78(%rbp)
movq -0x40(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x30(%rax), %rax
movq -0x40(%rbp), %rdi
movl -0x6c(%rbp), %ecx
movzbl -0x30(%rbp,%rcx), %ecx
movl %ecx, %esi
movq -0x50(%rbp), %rdx
movq -0x58(%rbp), %rcx
callq *%rax
cmpl -0x78(%rbp), %eax
je 0x6ceb6
jmp 0x6ceab
jmp 0x6cead
movl $0x0, -0x34(%rbp)
jmp 0x6cedf
movl -0x78(%rbp), %ecx
movq -0x50(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movl -0x6c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x6c(%rbp)
jmp 0x6ce52
movq -0x50(%rbp), %rax
movq -0x68(%rbp), %rcx
subq %rcx, %rax
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
movl %eax, -0x88(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x6cf09
movl -0x88(%rbp), %eax
addq $0x90, %rsp
popq %rbp
retq
callq 0x242e0
nop
| my_wc_to_printable_ex:
push rbp
mov rbp, rsp
sub rsp, 90h
mov eax, [rbp+arg_0]
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_40], rdi
mov [rbp+var_48], rsi
mov [rbp+var_50], rdx
mov [rbp+var_58], rcx
mov [rbp+var_5C], r8d
mov [rbp+var_60], r9d
mov rdi, [rbp+var_48]
call my_is_printable
cmp al, 0
jz short loc_6CDC7
mov rax, [rbp+var_40]
mov rax, [rax+0B8h]
mov rax, [rax+30h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_48]
mov rdx, [rbp+var_50]
mov rcx, [rbp+var_58]
call rax
mov [rbp+var_74], eax
cmp [rbp+var_74], 0
jle short loc_6CDC5
mov eax, [rbp+var_74]
mov [rbp+var_34], eax
jmp loc_6CEDF
loc_6CDC5:
jmp short $+2
loc_6CDC7:
mov rax, [rbp+var_50]
mov [rbp+var_80], rax
mov edi, [rbp+var_60]
mov esi, [rbp+arg_0]
call my_printable_length
mov ecx, eax
mov rax, [rbp+var_80]
mov ecx, ecx
add rax, rcx
cmp rax, [rbp+var_58]
jbe short loc_6CE07
mov edi, [rbp+var_60]
mov esi, [rbp+arg_0]
call my_printable_length
mov ecx, eax
mov eax, 0FFFFFF9Ch
sub eax, ecx
mov [rbp+var_34], eax
jmp loc_6CEDF
loc_6CE07:
mov rax, [rbp+var_40]
mov eax, [rax+0Ch]
and eax, 2000h
cmp eax, 0
jnz short loc_6CE30
mov rdi, [rbp+var_50]
mov rsi, [rbp+var_48]
mov edx, [rbp+var_5C]
call to_printable_8bit
mov [rbp+var_34], eax
jmp loc_6CEDF
loc_6CE30:
lea rdi, [rbp+var_30]
mov rsi, [rbp+var_48]
mov edx, [rbp+var_5C]
call to_printable_8bit
mov [rbp+var_70], eax
mov rax, [rbp+var_50]
mov [rbp+var_68], rax
mov [rbp+var_6C], 0
loc_6CE52:
mov eax, [rbp+var_6C]
cmp eax, [rbp+var_70]
jnb short loc_6CED1
cmp [rbp+var_6C], 0
jnz short loc_6CE6B
mov eax, [rbp+var_60]
mov [rbp+var_84], eax
jmp short loc_6CE74
loc_6CE6B:
mov eax, [rbp+arg_0]
mov [rbp+var_84], eax
loc_6CE74:
mov eax, [rbp+var_84]
mov [rbp+var_78], eax
mov rax, [rbp+var_40]
mov rax, [rax+0B8h]
mov rax, [rax+30h]
mov rdi, [rbp+var_40]
mov ecx, [rbp+var_6C]
movzx ecx, [rbp+rcx+var_30]
mov esi, ecx
mov rdx, [rbp+var_50]
mov rcx, [rbp+var_58]
call rax
cmp eax, [rbp+var_78]
jz short loc_6CEB6
jmp short $+2
loc_6CEAB:
jmp short $+2
loc_6CEAD:
mov [rbp+var_34], 0
jmp short loc_6CEDF
loc_6CEB6:
mov ecx, [rbp+var_78]
mov rax, [rbp+var_50]
mov ecx, ecx
add rax, rcx
mov [rbp+var_50], rax
mov eax, [rbp+var_6C]
add eax, 1
mov [rbp+var_6C], eax
jmp short loc_6CE52
loc_6CED1:
mov rax, [rbp+var_50]
mov rcx, [rbp+var_68]
sub rax, rcx
mov [rbp+var_34], eax
loc_6CEDF:
mov eax, [rbp+var_34]
mov [rbp+var_88], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_6CF09
mov eax, [rbp+var_88]
add rsp, 90h
pop rbp
retn
loc_6CF09:
call ___stack_chk_fail
| long long my_wc_to_printable_ex(
long long a1,
long long a2,
long long a3,
unsigned long long a4,
unsigned int a5,
unsigned int a6,
unsigned int a7)
{
unsigned int v8; // [rsp+Ch] [rbp-84h]
int v9; // [rsp+1Ch] [rbp-74h]
unsigned int v10; // [rsp+20h] [rbp-70h]
unsigned int i; // [rsp+24h] [rbp-6Ch]
int v12; // [rsp+28h] [rbp-68h]
_BYTE v18[40]; // [rsp+60h] [rbp-30h] BYREF
unsigned long long v19; // [rsp+88h] [rbp-8h]
v19 = __readfsqword(0x28u);
if ( (unsigned __int8)my_is_printable(a2)
&& (v9 = (*(long long ( **)(long long, long long, long long, unsigned long long))(*(_QWORD *)(a1 + 184) + 48LL))(
a1,
a2,
a3,
a4),
v9 > 0) )
{
return (unsigned int)v9;
}
else if ( (unsigned long long)(unsigned int)my_printable_length(a6, a7) + a3 <= a4 )
{
if ( (*(_DWORD *)(a1 + 12) & 0x2000) != 0 )
{
v10 = to_printable_8bit(v18, a2, a5);
v12 = a3;
for ( i = 0; i < v10; ++i )
{
if ( i )
v8 = a7;
else
v8 = a6;
if ( (*(unsigned int ( **)(long long, _QWORD, long long, unsigned long long))(*(_QWORD *)(a1 + 184) + 48LL))(
a1,
(unsigned __int8)v18[i],
a3,
a4) != v8 )
return 0;
a3 += v8;
}
return (unsigned int)(a3 - v12);
}
else
{
return (unsigned int)to_printable_8bit(a3, a2, a5);
}
}
else
{
return (unsigned int)(-100 - my_printable_length(a6, a7));
}
}
| my_wc_to_printable_ex:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV EAX,dword ptr [RBP + 0x10]
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x40],RDI
MOV qword ptr [RBP + -0x48],RSI
MOV qword ptr [RBP + -0x50],RDX
MOV qword ptr [RBP + -0x58],RCX
MOV dword ptr [RBP + -0x5c],R8D
MOV dword ptr [RBP + -0x60],R9D
MOV RDI,qword ptr [RBP + -0x48]
CALL 0x0016cf10
CMP AL,0x0
JZ 0x0016cdc7
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX + 0xb8]
MOV RAX,qword ptr [RAX + 0x30]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x50]
MOV RCX,qword ptr [RBP + -0x58]
CALL RAX
MOV dword ptr [RBP + -0x74],EAX
CMP dword ptr [RBP + -0x74],0x0
JLE 0x0016cdc5
MOV EAX,dword ptr [RBP + -0x74]
MOV dword ptr [RBP + -0x34],EAX
JMP 0x0016cedf
LAB_0016cdc5:
JMP 0x0016cdc7
LAB_0016cdc7:
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x80],RAX
MOV EDI,dword ptr [RBP + -0x60]
MOV ESI,dword ptr [RBP + 0x10]
CALL 0x0016cf90
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x80]
MOV ECX,ECX
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x58]
JBE 0x0016ce07
MOV EDI,dword ptr [RBP + -0x60]
MOV ESI,dword ptr [RBP + 0x10]
CALL 0x0016cf90
MOV ECX,EAX
MOV EAX,0xffffff9c
SUB EAX,ECX
MOV dword ptr [RBP + -0x34],EAX
JMP 0x0016cedf
LAB_0016ce07:
MOV RAX,qword ptr [RBP + -0x40]
MOV EAX,dword ptr [RAX + 0xc]
AND EAX,0x2000
CMP EAX,0x0
JNZ 0x0016ce30
MOV RDI,qword ptr [RBP + -0x50]
MOV RSI,qword ptr [RBP + -0x48]
MOV EDX,dword ptr [RBP + -0x5c]
CALL 0x0016cfb0
MOV dword ptr [RBP + -0x34],EAX
JMP 0x0016cedf
LAB_0016ce30:
LEA RDI,[RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x48]
MOV EDX,dword ptr [RBP + -0x5c]
CALL 0x0016cfb0
MOV dword ptr [RBP + -0x70],EAX
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x68],RAX
MOV dword ptr [RBP + -0x6c],0x0
LAB_0016ce52:
MOV EAX,dword ptr [RBP + -0x6c]
CMP EAX,dword ptr [RBP + -0x70]
JNC 0x0016ced1
CMP dword ptr [RBP + -0x6c],0x0
JNZ 0x0016ce6b
MOV EAX,dword ptr [RBP + -0x60]
MOV dword ptr [RBP + -0x84],EAX
JMP 0x0016ce74
LAB_0016ce6b:
MOV EAX,dword ptr [RBP + 0x10]
MOV dword ptr [RBP + -0x84],EAX
LAB_0016ce74:
MOV EAX,dword ptr [RBP + -0x84]
MOV dword ptr [RBP + -0x78],EAX
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX + 0xb8]
MOV RAX,qword ptr [RAX + 0x30]
MOV RDI,qword ptr [RBP + -0x40]
MOV ECX,dword ptr [RBP + -0x6c]
MOVZX ECX,byte ptr [RBP + RCX*0x1 + -0x30]
MOV ESI,ECX
MOV RDX,qword ptr [RBP + -0x50]
MOV RCX,qword ptr [RBP + -0x58]
CALL RAX
CMP EAX,dword ptr [RBP + -0x78]
JZ 0x0016ceb6
JMP 0x0016ceab
LAB_0016ceab:
JMP 0x0016cead
LAB_0016cead:
MOV dword ptr [RBP + -0x34],0x0
JMP 0x0016cedf
LAB_0016ceb6:
MOV ECX,dword ptr [RBP + -0x78]
MOV RAX,qword ptr [RBP + -0x50]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x50],RAX
MOV EAX,dword ptr [RBP + -0x6c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x6c],EAX
JMP 0x0016ce52
LAB_0016ced1:
MOV RAX,qword ptr [RBP + -0x50]
MOV RCX,qword ptr [RBP + -0x68]
SUB RAX,RCX
MOV dword ptr [RBP + -0x34],EAX
LAB_0016cedf:
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x88],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0016cf09
MOV EAX,dword ptr [RBP + -0x88]
ADD RSP,0x90
POP RBP
RET
LAB_0016cf09:
CALL 0x001242e0
|
int my_wc_to_printable_ex
(long param_1,int8 param_2,long param_3,ulong param_4,int4 param_5,
uint param_6,uint param_7)
{
char cVar1;
uint uVar2;
uint uVar3;
long in_FS_OFFSET;
uint local_8c;
uint local_74;
long local_58;
int local_3c;
int1 local_38 [40];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
cVar1 = my_is_printable(param_2);
if ((cVar1 == '\0') ||
(local_3c = (**(code **)(*(long *)(param_1 + 0xb8) + 0x30))(param_1,param_2,param_3,param_4),
local_3c < 1)) {
uVar2 = my_printable_length(param_6,param_7);
if (param_4 < param_3 + (ulong)uVar2) {
local_3c = my_printable_length(param_6,param_7);
local_3c = -100 - local_3c;
}
else if ((*(uint *)(param_1 + 0xc) & 0x2000) == 0) {
local_3c = to_printable_8bit(param_3,param_2,param_5);
}
else {
uVar2 = to_printable_8bit(local_38,param_2,param_5);
local_58 = param_3;
for (local_74 = 0; local_74 < uVar2; local_74 = local_74 + 1) {
local_8c = param_6;
if (local_74 != 0) {
local_8c = param_7;
}
uVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x30))
(param_1,local_38[local_74],local_58,param_4);
if (uVar3 != local_8c) {
local_3c = 0;
goto LAB_0016cedf;
}
local_58 = local_58 + (ulong)local_8c;
}
local_3c = (int)local_58 - (int)param_3;
}
}
LAB_0016cedf:
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_3c;
}
| |
45,770 | translog_write_data_on_page | eloqsql/storage/maria/ma_loghandler.c | static my_bool translog_write_data_on_page(TRANSLOG_ADDRESS *horizon,
struct st_buffer_cursor *cursor,
translog_size_t length,
uchar *buffer)
{
DBUG_ENTER("translog_write_data_on_page");
DBUG_PRINT("enter", ("Chunk length: %lu Page size %u",
(ulong) length, (uint) cursor->current_page_fill));
DBUG_ASSERT(length > 0);
DBUG_ASSERT(length + cursor->current_page_fill <= TRANSLOG_PAGE_SIZE);
DBUG_ASSERT(length + cursor->ptr <= cursor->buffer->buffer +
TRANSLOG_WRITE_BUFFER);
memcpy(cursor->ptr, buffer, length);
cursor->ptr+= length;
(*horizon)+= length; /* adds offset */
cursor->current_page_fill+= length;
if (!cursor->chaser)
cursor->buffer->size+= length;
DBUG_PRINT("info", ("Write data buffer #%u: %p "
"chaser: %d Size: %lu (%lu)",
(uint) cursor->buffer->buffer_no, cursor->buffer,
cursor->chaser, (ulong) cursor->buffer->size,
(ulong) (cursor->ptr - cursor->buffer->buffer)));
translog_check_cursor(cursor);
DBUG_RETURN(0);
} | O0 | c | translog_write_data_on_page:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
jmp 0x5c099
jmp 0x5c09b
jmp 0x5c09d
jmp 0x5c09f
jmp 0x5c0a1
jmp 0x5c0a3
jmp 0x5c0a5
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rdi
movq -0x20(%rbp), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x2a090
movl -0x14(%rbp), %edx
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rcx
movl %edx, %edx
addq %rdx, %rcx
movq %rcx, 0x20(%rax)
movl -0x14(%rbp), %eax
movl %eax, %ecx
movq -0x8(%rbp), %rax
addq (%rax), %rcx
movq %rcx, (%rax)
movl -0x14(%rbp), %edx
movq -0x10(%rbp), %rax
movzwl 0x30(%rax), %ecx
addl %edx, %ecx
movw %cx, 0x30(%rax)
movq -0x10(%rbp), %rax
cmpb $0x0, 0x37(%rax)
jne 0x5c110
movl -0x14(%rbp), %ecx
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
addl 0x100030(%rax), %ecx
movl %ecx, 0x100030(%rax)
jmp 0x5c112
jmp 0x5c114
movq -0x10(%rbp), %rdi
callq 0x529e0
jmp 0x5c11f
xorl %eax, %eax
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| translog_write_data_on_page:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov [rbp+var_20], rcx
jmp short $+2
loc_5C099:
jmp short $+2
loc_5C09B:
jmp short $+2
loc_5C09D:
jmp short $+2
loc_5C09F:
jmp short $+2
loc_5C0A1:
jmp short $+2
loc_5C0A3:
jmp short $+2
loc_5C0A5:
mov rax, [rbp+var_10]
mov rdi, [rax+20h]
mov rsi, [rbp+var_20]
mov eax, [rbp+var_14]
mov edx, eax
call _memcpy
mov edx, [rbp+var_14]
mov rax, [rbp+var_10]
mov rcx, [rax+20h]
mov edx, edx
add rcx, rdx
mov [rax+20h], rcx
mov eax, [rbp+var_14]
mov ecx, eax
mov rax, [rbp+var_8]
add rcx, [rax]
mov [rax], rcx
mov edx, [rbp+var_14]
mov rax, [rbp+var_10]
movzx ecx, word ptr [rax+30h]
add ecx, edx
mov [rax+30h], cx
mov rax, [rbp+var_10]
cmp byte ptr [rax+37h], 0
jnz short loc_5C110
mov ecx, [rbp+var_14]
mov rax, [rbp+var_10]
mov rax, [rax+28h]
add ecx, dword ptr ds:loc_100030[rax]
mov dword ptr ds:loc_100030[rax], ecx
loc_5C110:
jmp short $+2
loc_5C112:
jmp short $+2
loc_5C114:
mov rdi, [rbp+var_10]
call translog_check_cursor
jmp short $+2
loc_5C11F:
xor eax, eax
add rsp, 20h
pop rbp
retn
| long long translog_write_data_on_page(_QWORD *a1, long long a2, unsigned int a3, long long a4)
{
memcpy(*(_QWORD *)(a2 + 32), a4, a3);
*(_QWORD *)(a2 + 32) += a3;
*a1 += a3;
*(_WORD *)(a2 + 48) += a3;
if ( !*(_BYTE *)(a2 + 55) )
*(_DWORD *)((char *)&loc_100030 + *(_QWORD *)(a2 + 40)) += a3;
translog_check_cursor();
return 0LL;
}
| translog_write_data_on_page:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV qword ptr [RBP + -0x20],RCX
JMP 0x0015c099
LAB_0015c099:
JMP 0x0015c09b
LAB_0015c09b:
JMP 0x0015c09d
LAB_0015c09d:
JMP 0x0015c09f
LAB_0015c09f:
JMP 0x0015c0a1
LAB_0015c0a1:
JMP 0x0015c0a3
LAB_0015c0a3:
JMP 0x0015c0a5
LAB_0015c0a5:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x20]
MOV RSI,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RBP + -0x14]
MOV EDX,EAX
CALL 0x0012a090
MOV EDX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x20]
MOV EDX,EDX
ADD RCX,RDX
MOV qword ptr [RAX + 0x20],RCX
MOV EAX,dword ptr [RBP + -0x14]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x8]
ADD RCX,qword ptr [RAX]
MOV qword ptr [RAX],RCX
MOV EDX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x10]
MOVZX ECX,word ptr [RAX + 0x30]
ADD ECX,EDX
MOV word ptr [RAX + 0x30],CX
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX + 0x37],0x0
JNZ 0x0015c110
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x28]
ADD ECX,dword ptr [RAX + 0x100030]
MOV dword ptr [RAX + 0x100030],ECX
LAB_0015c110:
JMP 0x0015c112
LAB_0015c112:
JMP 0x0015c114
LAB_0015c114:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001529e0
JMP 0x0015c11f
LAB_0015c11f:
XOR EAX,EAX
ADD RSP,0x20
POP RBP
RET
|
int8 translog_write_data_on_page(long *param_1,long param_2,uint param_3,void *param_4)
{
memcpy(*(void **)(param_2 + 0x20),param_4,(ulong)param_3);
*(ulong *)(param_2 + 0x20) = *(long *)(param_2 + 0x20) + (ulong)param_3;
*param_1 = (ulong)param_3 + *param_1;
*(short *)(param_2 + 0x30) = *(short *)(param_2 + 0x30) + (short)param_3;
if (*(char *)(param_2 + 0x37) == '\0') {
*(uint *)(Elf64_Ehdr_00100000.e_ident_pad + *(long *)(param_2 + 0x28) + 0x27) =
param_3 + *(int *)(Elf64_Ehdr_00100000.e_ident_pad + *(long *)(param_2 + 0x28) + 0x27);
}
translog_check_cursor(param_2);
return 0;
}
| |
45,771 | my_hash_iterate | eloqsql/mysys/hash.c | my_bool my_hash_iterate(HASH *hash, my_hash_walk_action action, void *argument)
{
uint records, i;
records= hash->records;
for (i= 0 ; i < records ; i++)
{
if ((*action)(dynamic_element(&hash->array, i, HASH_LINK *)->data,
argument))
return 1;
}
return 0;
} | O0 | c | my_hash_iterate:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movl %eax, -0x24(%rbp)
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x24(%rbp), %eax
jae 0x67575
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x28(%rbp), %edx
shlq $0x4, %rdx
addq %rdx, %rcx
movq 0x8(%rcx), %rdi
movq -0x20(%rbp), %rsi
callq *%rax
cmpb $0x0, %al
je 0x67568
movb $0x1, -0x1(%rbp)
jmp 0x67579
jmp 0x6756a
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x67536
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| my_hash_iterate:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rax, [rbp+var_10]
mov rax, [rax+18h]
mov [rbp+var_24], eax
mov [rbp+var_28], 0
loc_67536:
mov eax, [rbp+var_28]
cmp eax, [rbp+var_24]
jnb short loc_67575
mov rax, [rbp+var_18]
mov rcx, [rbp+var_10]
mov rcx, [rcx+28h]
mov edx, [rbp+var_28]
shl rdx, 4
add rcx, rdx
mov rdi, [rcx+8]
mov rsi, [rbp+var_20]
call rax
cmp al, 0
jz short loc_67568
mov [rbp+var_1], 1
jmp short loc_67579
loc_67568:
jmp short $+2
loc_6756A:
mov eax, [rbp+var_28]
add eax, 1
mov [rbp+var_28], eax
jmp short loc_67536
loc_67575:
mov [rbp+var_1], 0
loc_67579:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
| char my_hash_iterate(long long a1, unsigned __int8 ( *a2)(_QWORD, long long), long long a3)
{
unsigned int i; // [rsp+8h] [rbp-28h]
unsigned int v5; // [rsp+Ch] [rbp-24h]
v5 = *(_QWORD *)(a1 + 24);
for ( i = 0; i < v5; ++i )
{
if ( a2(*(_QWORD *)(16LL * i + *(_QWORD *)(a1 + 40) + 8), a3) )
return 1;
}
return 0;
}
| my_hash_iterate:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOV dword ptr [RBP + -0x24],EAX
MOV dword ptr [RBP + -0x28],0x0
LAB_00167536:
MOV EAX,dword ptr [RBP + -0x28]
CMP EAX,dword ptr [RBP + -0x24]
JNC 0x00167575
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x28]
MOV EDX,dword ptr [RBP + -0x28]
SHL RDX,0x4
ADD RCX,RDX
MOV RDI,qword ptr [RCX + 0x8]
MOV RSI,qword ptr [RBP + -0x20]
CALL RAX
CMP AL,0x0
JZ 0x00167568
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00167579
LAB_00167568:
JMP 0x0016756a
LAB_0016756a:
MOV EAX,dword ptr [RBP + -0x28]
ADD EAX,0x1
MOV dword ptr [RBP + -0x28],EAX
JMP 0x00167536
LAB_00167575:
MOV byte ptr [RBP + -0x1],0x0
LAB_00167579:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1 my_hash_iterate(long param_1,code *param_2,int8 param_3)
{
int8 uVar1;
char cVar2;
uint local_30;
uVar1 = *(int8 *)(param_1 + 0x18);
local_30 = 0;
while( true ) {
if ((uint)uVar1 <= local_30) {
return 0;
}
cVar2 = (*param_2)(*(int8 *)(*(long *)(param_1 + 0x28) + (ulong)local_30 * 0x10 + 8),
param_3);
if (cVar2 != '\0') break;
local_30 = local_30 + 1;
}
return 1;
}
| |
45,772 | uf_prespace_selected | eloqsql/storage/maria/ma_packrec.c | static void uf_prespace_selected(MARIA_COLUMNDEF *rec,
MARIA_BIT_BUFF *bit_buff,
uchar *to, uchar *end)
{
uint spaces;
if (get_bit(bit_buff))
{
if ((spaces=get_bits(bit_buff,rec->space_length_bits))+to > end)
{
bit_buff->error=1;
return;
}
bfill(to, spaces, ' ');
if (to+spaces != end)
decode_bytes(rec,bit_buff,to+spaces,end);
}
else
decode_bytes(rec,bit_buff,to,end);
} | O0 | c | uf_prespace_selected:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0x4d76a
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x10(%rbp), %rdx
movl 0x4(%rdx), %ecx
addl $-0x1, %ecx
movl %ecx, 0x4(%rdx)
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
jne 0x4d792
jmp 0x4d84a
movq -0x10(%rbp), %rdi
callq 0x4c6e0
movq -0x10(%rbp), %rax
movl $0x1f, 0x4(%rax)
movq -0x10(%rbp), %rax
movl (%rax), %eax
andl $0x80000000, %eax # imm = 0x80000000
cmpl $0x0, %eax
je 0x4d84a
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x8(%rbp), %rcx
cmpl 0x24(%rcx), %eax
jb 0x4d7d5
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x8(%rbp), %rcx
movl 0x24(%rcx), %esi
movq -0x10(%rbp), %rdx
movl 0x4(%rdx), %ecx
subl %esi, %ecx
movl %ecx, 0x4(%rdx)
shrl %cl, %eax
movq -0x8(%rbp), %rcx
movl 0x24(%rcx), %ecx
movl %ecx, %edx
leaq 0x270933(%rip), %rcx # 0x2be100
andl (%rcx,%rdx,4), %eax
movl %eax, -0x28(%rbp)
jmp 0x4d7e8
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x24(%rax), %esi
callq 0x4be90
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %ecx
movl %ecx, -0x24(%rbp)
movq -0x18(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
cmpq -0x20(%rbp), %rax
jbe 0x4d80a
movq -0x10(%rbp), %rax
movl $0x1, 0x28(%rax)
jmp 0x4d85f
movq -0x18(%rbp), %rdi
movl -0x24(%rbp), %eax
movl %eax, %edx
movl $0x20, %esi
callq 0x2a2a0
movq -0x18(%rbp), %rax
movl -0x24(%rbp), %ecx
addq %rcx, %rax
cmpq -0x20(%rbp), %rax
je 0x4d848
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl -0x24(%rbp), %eax
addq %rax, %rdx
movq -0x20(%rbp), %rcx
callq 0x4ca20
jmp 0x4d85f
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0x4ca20
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| uf_prespace_selected:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov rax, [rbp+var_10]
cmp dword ptr [rax+4], 0
jz short loc_4D76A
mov rax, [rbp+var_10]
mov eax, [rax]
mov rdx, [rbp+var_10]
mov ecx, [rdx+4]
add ecx, 0FFFFFFFFh
mov [rdx+4], ecx
mov edx, 1
shl edx, cl
mov ecx, edx
and eax, ecx
cmp eax, 0
jnz short loc_4D792
jmp loc_4D84A
loc_4D76A:
mov rdi, [rbp+var_10]
call fill_buffer
mov rax, [rbp+var_10]
mov dword ptr [rax+4], 1Fh
mov rax, [rbp+var_10]
mov eax, [rax]
and eax, 80000000h
cmp eax, 0
jz loc_4D84A
loc_4D792:
mov rax, [rbp+var_10]
mov eax, [rax+4]
mov rcx, [rbp+var_8]
cmp eax, [rcx+24h]
jb short loc_4D7D5
mov rax, [rbp+var_10]
mov eax, [rax]
mov rcx, [rbp+var_8]
mov esi, [rcx+24h]
mov rdx, [rbp+var_10]
mov ecx, [rdx+4]
sub ecx, esi
mov [rdx+4], ecx
shr eax, cl
mov rcx, [rbp+var_8]
mov ecx, [rcx+24h]
mov edx, ecx
lea rcx, mask
and eax, [rcx+rdx*4]
mov [rbp+var_28], eax
jmp short loc_4D7E8
loc_4D7D5:
mov rdi, [rbp+var_10]
mov rax, [rbp+var_8]
mov esi, [rax+24h]
call fill_and_get_bits
mov [rbp+var_28], eax
loc_4D7E8:
mov ecx, [rbp+var_28]
mov [rbp+var_24], ecx
mov rax, [rbp+var_18]
mov ecx, ecx
add rax, rcx
cmp rax, [rbp+var_20]
jbe short loc_4D80A
mov rax, [rbp+var_10]
mov dword ptr [rax+28h], 1
jmp short loc_4D85F
loc_4D80A:
mov rdi, [rbp+var_18]
mov eax, [rbp+var_24]
mov edx, eax
mov esi, 20h ; ' '
call _memset
mov rax, [rbp+var_18]
mov ecx, [rbp+var_24]
add rax, rcx
cmp rax, [rbp+var_20]
jz short loc_4D848
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov eax, [rbp+var_24]
add rdx, rax
mov rcx, [rbp+var_20]
call decode_bytes
loc_4D848:
jmp short loc_4D85F
loc_4D84A:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
call decode_bytes
loc_4D85F:
add rsp, 30h
pop rbp
retn
| long long uf_prespace_selected(long long a1, int *a2, _BYTE *a3, _BYTE *a4)
{
int v4; // eax
int v5; // ecx
unsigned int v6; // eax
int v7; // ecx
long long result; // rax
unsigned int bits; // [rsp+8h] [rbp-28h]
if ( a2[1] )
{
v4 = *a2;
v5 = a2[1] - 1;
a2[1] = v5;
if ( ((1 << v5) & v4) == 0 )
return decode_bytes(a1, (long long)a2, a3, a4);
}
else
{
fill_buffer((long long)a2);
a2[1] = 31;
if ( *a2 >= 0 )
return decode_bytes(a1, (long long)a2, a3, a4);
}
if ( (unsigned int)a2[1] < *(_DWORD *)(a1 + 36) )
{
bits = fill_and_get_bits(a2, *(_DWORD *)(a1 + 36));
}
else
{
v6 = *a2;
v7 = a2[1] - *(_DWORD *)(a1 + 36);
a2[1] = v7;
bits = mask[*(unsigned int *)(a1 + 36)] & (v6 >> v7);
}
if ( &a3[bits] <= a4 )
{
memset(a3, 32LL, bits);
result = (long long)&a3[bits];
if ( (_BYTE *)result != a4 )
return decode_bytes(a1, (long long)a2, &a3[bits], a4);
}
else
{
result = (long long)a2;
a2[10] = 1;
}
return result;
}
| uf_prespace_selected:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x4],0x0
JZ 0x0014d76a
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RDX + 0x4]
ADD ECX,-0x1
MOV dword ptr [RDX + 0x4],ECX
MOV EDX,0x1
SHL EDX,CL
MOV ECX,EDX
AND EAX,ECX
CMP EAX,0x0
JNZ 0x0014d792
JMP 0x0014d84a
LAB_0014d76a:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0014c6e0
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x4],0x1f
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
AND EAX,0x80000000
CMP EAX,0x0
JZ 0x0014d84a
LAB_0014d792:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x4]
MOV RCX,qword ptr [RBP + -0x8]
CMP EAX,dword ptr [RCX + 0x24]
JC 0x0014d7d5
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RCX + 0x24]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RDX + 0x4]
SUB ECX,ESI
MOV dword ptr [RDX + 0x4],ECX
SHR EAX,CL
MOV RCX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RCX + 0x24]
MOV EDX,ECX
LEA RCX,[0x3be100]
AND EAX,dword ptr [RCX + RDX*0x4]
MOV dword ptr [RBP + -0x28],EAX
JMP 0x0014d7e8
LAB_0014d7d5:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RAX + 0x24]
CALL 0x0014be90
MOV dword ptr [RBP + -0x28],EAX
LAB_0014d7e8:
MOV ECX,dword ptr [RBP + -0x28]
MOV dword ptr [RBP + -0x24],ECX
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,ECX
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x20]
JBE 0x0014d80a
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x28],0x1
JMP 0x0014d85f
LAB_0014d80a:
MOV RDI,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RBP + -0x24]
MOV EDX,EAX
MOV ESI,0x20
CALL 0x0012a2a0
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x24]
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x20]
JZ 0x0014d848
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RBP + -0x24]
ADD RDX,RAX
MOV RCX,qword ptr [RBP + -0x20]
CALL 0x0014ca20
LAB_0014d848:
JMP 0x0014d85f
LAB_0014d84a:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
CALL 0x0014ca20
LAB_0014d85f:
ADD RSP,0x30
POP RBP
RET
|
void uf_prespace_selected(long param_1,uint *param_2,void *param_3,ulong param_4)
{
uint uVar1;
uint local_30;
if (param_2[1] == 0) {
fill_buffer(param_2);
param_2[1] = 0x1f;
uVar1 = *param_2 & 0x80000000;
}
else {
uVar1 = param_2[1];
param_2[1] = uVar1 - 1;
uVar1 = *param_2 & 1 << ((byte)(uVar1 - 1) & 0x1f);
}
if (uVar1 == 0) {
decode_bytes(param_1,param_2,param_3,param_4);
}
else {
if (param_2[1] < *(uint *)(param_1 + 0x24)) {
local_30 = fill_and_get_bits(param_2,*(int4 *)(param_1 + 0x24));
}
else {
uVar1 = param_2[1] - *(int *)(param_1 + 0x24);
param_2[1] = uVar1;
local_30 = *param_2 >> ((byte)uVar1 & 0x1f) &
*(uint *)(mask + (ulong)*(uint *)(param_1 + 0x24) * 4);
}
if (param_4 < (long)param_3 + (ulong)local_30) {
param_2[10] = 1;
}
else {
memset(param_3,0x20,(ulong)local_30);
if ((long)param_3 + (ulong)local_30 != param_4) {
decode_bytes(param_1,param_2,(long)param_3 + (ulong)local_30,param_4);
}
}
}
return;
}
| |
45,773 | ma_hashtbl_init | eloqsql/libmariadb/libmariadb/ma_hashtbl.c | my_bool _ma_hashtbl_init(MA_HASHTBL *hash,uint size,uint key_offset,uint key_length,
hash_get_key get_key,
void (*free_element)(void*),uint flags CALLER_INFO_PROTO)
{
hash->records=0;
if (ma_init_dynamic_array_ci(&hash->array,sizeof(MA_HASHTBL_LINK),size,0))
{
hash->free=0; /* Allow call to hash_free */
return(TRUE);
}
hash->key_offset=key_offset;
hash->key_length=key_length;
hash->blength=1;
hash->current_record= NO_RECORD; /* For the future */
hash->get_key=get_key;
hash->free=free_element;
hash->flags=flags;
if (flags & MA_HASHTBL_CASE_INSENSITIVE)
hash->calc_hashnr=calc_hashnr_caseup;
else
hash->calc_hashnr=calc_hashnr;
return(0);
} | O0 | c | ma_hashtbl_init:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x10(%rbp), %rax
movl $0x0, 0x8(%rax)
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
movl -0x14(%rbp), %edx
movl $0x10, %esi
xorl %ecx, %ecx
callq 0x43d40
cmpb $0x0, %al
je 0x45c28
movq -0x10(%rbp), %rax
movq $0x0, 0x38(%rax)
movb $0x1, -0x1(%rbp)
jmp 0x45ca2
movl -0x18(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
movl -0x1c(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x10(%rbp), %rax
movl $0x1, 0xc(%rax)
movq -0x10(%rbp), %rax
movl $0xffffffff, 0x10(%rax) # imm = 0xFFFFFFFF
movq -0x28(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x30(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x38(%rax)
movl 0x10(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x14(%rax)
movl 0x10(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x45c8f
movq -0x10(%rbp), %rax
leaq 0x27(%rip), %rcx # 0x45cb0
movq %rcx, 0x40(%rax)
jmp 0x45c9e
movq -0x10(%rbp), %rax
leaq 0x96(%rip), %rcx # 0x45d30
movq %rcx, 0x40(%rax)
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| _ma_hashtbl_init:
push rbp
mov rbp, rsp
sub rsp, 30h
mov eax, [rbp+arg_0]
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_1C], ecx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov rax, [rbp+var_10]
mov dword ptr [rax+8], 0
mov rdi, [rbp+var_10]
add rdi, 18h
mov edx, [rbp+var_14]
mov esi, 10h
xor ecx, ecx
call ma_init_dynamic_array
cmp al, 0
jz short loc_45C28
mov rax, [rbp+var_10]
mov qword ptr [rax+38h], 0
mov [rbp+var_1], 1
jmp short loc_45CA2
loc_45C28:
mov ecx, [rbp+var_18]
mov rax, [rbp+var_10]
mov [rax], ecx
mov ecx, [rbp+var_1C]
mov rax, [rbp+var_10]
mov [rax+4], ecx
mov rax, [rbp+var_10]
mov dword ptr [rax+0Ch], 1
mov rax, [rbp+var_10]
mov dword ptr [rax+10h], 0FFFFFFFFh
mov rcx, [rbp+var_28]
mov rax, [rbp+var_10]
mov [rax+30h], rcx
mov rcx, [rbp+var_30]
mov rax, [rbp+var_10]
mov [rax+38h], rcx
mov ecx, [rbp+arg_0]
mov rax, [rbp+var_10]
mov [rax+14h], ecx
mov eax, [rbp+arg_0]
and eax, 1
cmp eax, 0
jz short loc_45C8F
mov rax, [rbp+var_10]
lea rcx, calc_hashnr_caseup
mov [rax+40h], rcx
jmp short loc_45C9E
loc_45C8F:
mov rax, [rbp+var_10]
lea rcx, calc_hashnr
mov [rax+40h], rcx
loc_45C9E:
mov [rbp+var_1], 0
loc_45CA2:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
| char ma_hashtbl_init(long long a1, unsigned int a2, int a3, int a4, long long a5, long long a6, int a7)
{
*(_DWORD *)(a1 + 8) = 0;
if ( ma_init_dynamic_array(a1 + 24, 0x10u, a2, 0) )
{
*(_QWORD *)(a1 + 56) = 0LL;
return 1;
}
else
{
*(_DWORD *)a1 = a3;
*(_DWORD *)(a1 + 4) = a4;
*(_DWORD *)(a1 + 12) = 1;
*(_DWORD *)(a1 + 16) = -1;
*(_QWORD *)(a1 + 48) = a5;
*(_QWORD *)(a1 + 56) = a6;
*(_DWORD *)(a1 + 20) = a7;
if ( (a7 & 1) != 0 )
*(_QWORD *)(a1 + 64) = calc_hashnr_caseup;
else
*(_QWORD *)(a1 + 64) = calc_hashnr;
return 0;
}
}
| _ma_hashtbl_init:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV EAX,dword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV dword ptr [RBP + -0x1c],ECX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x8],0x0
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x18
MOV EDX,dword ptr [RBP + -0x14]
MOV ESI,0x10
XOR ECX,ECX
CALL 0x00143d40
CMP AL,0x0
JZ 0x00145c28
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x38],0x0
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00145ca2
LAB_00145c28:
MOV ECX,dword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX],ECX
MOV ECX,dword ptr [RBP + -0x1c]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x4],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0xc],0x1
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x10],0xffffffff
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x30],RCX
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x38],RCX
MOV ECX,dword ptr [RBP + 0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x14],ECX
MOV EAX,dword ptr [RBP + 0x10]
AND EAX,0x1
CMP EAX,0x0
JZ 0x00145c8f
MOV RAX,qword ptr [RBP + -0x10]
LEA RCX,[0x145cb0]
MOV qword ptr [RAX + 0x40],RCX
JMP 0x00145c9e
LAB_00145c8f:
MOV RAX,qword ptr [RBP + -0x10]
LEA RCX,[0x145d30]
MOV qword ptr [RAX + 0x40],RCX
LAB_00145c9e:
MOV byte ptr [RBP + -0x1],0x0
LAB_00145ca2:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1
_ma_hashtbl_init(int4 *param_1,int4 param_2,int4 param_3,int4 param_4,
int8 param_5,int8 param_6,uint param_7)
{
char cVar1;
int1 local_9;
param_1[2] = 0;
cVar1 = ma_init_dynamic_array(param_1 + 6,0x10,param_2,0);
if (cVar1 == '\0') {
*param_1 = param_3;
param_1[1] = param_4;
param_1[3] = 1;
param_1[4] = 0xffffffff;
*(int8 *)(param_1 + 0xc) = param_5;
*(int8 *)(param_1 + 0xe) = param_6;
param_1[5] = param_7;
if ((param_7 & 1) == 0) {
*(code **)(param_1 + 0x10) = calc_hashnr;
}
else {
*(code **)(param_1 + 0x10) = calc_hashnr_caseup;
}
local_9 = 0;
}
else {
*(int8 *)(param_1 + 0xe) = 0;
local_9 = 1;
}
return local_9;
}
| |
45,774 | glfwGetError | untodesu[P]riteg/build_O0/_deps/glfw-src/src/init.c | GLFWAPI int glfwGetError(const char** description)
{
_GLFWerror* error;
int code = GLFW_NO_ERROR;
if (description)
*description = NULL;
if (_glfw.initialized)
error = _glfwPlatformGetTls(&_glfw.errorSlot);
else
error = &_glfwMainThreadError;
if (error)
{
code = error->code;
error->code = GLFW_NO_ERROR;
if (description && code)
*description = error->description;
}
return code;
} | O0 | c | glfwGetError:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0x14(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x22945
movq -0x8(%rbp), %rax
movq $0x0, (%rax)
leaq 0xbe31c(%rip), %rax # 0xe0c68
cmpl $0x0, (%rax)
je 0x2296a
leaq 0xbe310(%rip), %rdi # 0xe0c68
addq $0x1fe14, %rdi # imm = 0x1FE14
callq 0x36790
movq %rax, -0x10(%rbp)
jmp 0x22975
leaq 0xdec87(%rip), %rax # 0x1015f8
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x229af
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rax
movl $0x0, 0x8(%rax)
cmpq $0x0, -0x8(%rbp)
je 0x229ad
cmpl $0x0, -0x14(%rbp)
je 0x229ad
movq -0x10(%rbp), %rcx
addq $0xc, %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
jmp 0x229af
movl -0x14(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| glfwGetError:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_14], 0
cmp [rbp+var_8], 0
jz short loc_22945
mov rax, [rbp+var_8]
mov qword ptr [rax], 0
loc_22945:
lea rax, _glfw
cmp dword ptr [rax], 0
jz short loc_2296A
lea rdi, _glfw
add rdi, 1FE14h
call _glfwPlatformGetTls
mov [rbp+var_10], rax
jmp short loc_22975
loc_2296A:
lea rax, _glfwMainThreadError
mov [rbp+var_10], rax
loc_22975:
cmp [rbp+var_10], 0
jz short loc_229AF
mov rax, [rbp+var_10]
mov eax, [rax+8]
mov [rbp+var_14], eax
mov rax, [rbp+var_10]
mov dword ptr [rax+8], 0
cmp [rbp+var_8], 0
jz short loc_229AD
cmp [rbp+var_14], 0
jz short loc_229AD
mov rcx, [rbp+var_10]
add rcx, 0Ch
mov rax, [rbp+var_8]
mov [rax], rcx
loc_229AD:
jmp short $+2
loc_229AF:
mov eax, [rbp+var_14]
add rsp, 20h
pop rbp
retn
| long long glfwGetError(_QWORD *a1)
{
unsigned int v2; // [rsp+Ch] [rbp-14h]
_DWORD *Tls; // [rsp+10h] [rbp-10h]
v2 = 0;
if ( a1 )
*a1 = 0LL;
if ( glfw[0] )
Tls = (_DWORD *)glfwPlatformGetTls(&glfw[32645]);
else
Tls = &glfwMainThreadError;
if ( Tls )
{
v2 = Tls[2];
Tls[2] = 0;
if ( a1 )
{
if ( v2 )
*a1 = Tls + 3;
}
}
return v2;
}
| glfwGetError:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0x14],0x0
CMP qword ptr [RBP + -0x8],0x0
JZ 0x00122945
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX],0x0
LAB_00122945:
LEA RAX,[0x1e0c68]
CMP dword ptr [RAX],0x0
JZ 0x0012296a
LEA RDI,[0x1e0c68]
ADD RDI,0x1fe14
CALL 0x00136790
MOV qword ptr [RBP + -0x10],RAX
JMP 0x00122975
LAB_0012296a:
LEA RAX,[0x2015f8]
MOV qword ptr [RBP + -0x10],RAX
LAB_00122975:
CMP qword ptr [RBP + -0x10],0x0
JZ 0x001229af
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x8]
MOV dword ptr [RBP + -0x14],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x8],0x0
CMP qword ptr [RBP + -0x8],0x0
JZ 0x001229ad
CMP dword ptr [RBP + -0x14],0x0
JZ 0x001229ad
MOV RCX,qword ptr [RBP + -0x10]
ADD RCX,0xc
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX],RCX
LAB_001229ad:
JMP 0x001229af
LAB_001229af:
MOV EAX,dword ptr [RBP + -0x14]
ADD RSP,0x20
POP RBP
RET
|
int glfwGetError(long *param_1)
{
int local_1c;
int1 *local_18;
local_1c = 0;
if (param_1 != (long *)0x0) {
*param_1 = 0;
}
if (_glfw == 0) {
local_18 = _glfwMainThreadError;
}
else {
local_18 = (int1 *)_glfwPlatformGetTls(&DAT_00200a7c);
}
if (local_18 != (int1 *)0x0) {
local_1c = *(int *)(local_18 + 8);
*(int4 *)(local_18 + 8) = 0;
if ((param_1 != (long *)0x0) && (local_1c != 0)) {
*param_1 = (long)(local_18 + 0xc);
}
}
return local_1c;
}
| |
45,775 | my_strnxfrm_simple_nopad | eloqsql/strings/ctype-simple.c | size_t my_strnxfrm_simple_nopad(CHARSET_INFO * cs,
uchar *dst, size_t dstlen, uint nweights,
const uchar *src, size_t srclen, uint flags)
{
uchar *d0= dst;
dst= d0 + my_strnxfrm_simple_internal(cs, dst, dstlen, &nweights,
src, srclen);
return my_strxfrm_pad_desc_and_reverse_nopad(cs, d0, dst, d0 + dstlen,
nweights, flags, 0);
} | O0 | c | my_strnxfrm_simple_nopad:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x28(%rbp), %r8
movq -0x30(%rbp), %r9
leaq -0x1c(%rbp), %rcx
callq 0x797a0
movq %rax, %rcx
movq -0x40(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x10(%rbp), %rdx
movq -0x38(%rbp), %rcx
addq -0x18(%rbp), %rcx
movl -0x1c(%rbp), %r8d
movl 0x10(%rbp), %r9d
xorl %eax, %eax
movl $0x0, (%rsp)
callq 0x79b00
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)
| my_strnxfrm_simple_nopad:
push rbp
mov rbp, rsp
sub rsp, 50h
mov eax, [rbp+arg_0]
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_1C], ecx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov rax, [rbp+var_10]
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
mov [rbp+var_40], rax
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov r8, [rbp+var_28]
mov r9, [rbp+var_30]
lea rcx, [rbp+var_1C]
call my_strnxfrm_simple_internal
mov rcx, rax
mov rax, [rbp+var_40]
add rax, rcx
mov [rbp+var_10], rax
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_38]
mov rdx, [rbp+var_10]
mov rcx, [rbp+var_38]
add rcx, [rbp+var_18]
mov r8d, [rbp+var_1C]
mov r9d, [rbp+arg_0]
xor eax, eax
mov [rsp+50h+var_50], 0
call my_strxfrm_pad_desc_and_reverse_nopad
add rsp, 50h
pop rbp
retn
| long long my_strnxfrm_simple_nopad(
long long a1,
unsigned __int8 *a2,
unsigned long long a3,
unsigned int a4,
unsigned __int8 *a5,
unsigned long long a6,
int a7)
{
_BYTE *v7; // rax
unsigned int v9; // [rsp+34h] [rbp-1Ch] BYREF
unsigned long long v10; // [rsp+38h] [rbp-18h]
unsigned __int8 *v11; // [rsp+40h] [rbp-10h]
long long v12; // [rsp+48h] [rbp-8h]
v12 = a1;
v11 = a2;
v10 = a3;
v9 = a4;
v7 = my_strnxfrm_simple_internal(a1, a2, a3, &v9, a5, a6);
v11 = &a2[(_QWORD)v7];
return my_strxfrm_pad_desc_and_reverse_nopad(v12, (_DWORD)a2, (int)v7 + (int)a2, (int)v10 + (int)a2, v9, a7, 0);
}
| my_strnxfrm_simple_nopad:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV EAX,dword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV dword ptr [RBP + -0x1c],ECX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x40],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV R8,qword ptr [RBP + -0x28]
MOV R9,qword ptr [RBP + -0x30]
LEA RCX,[RBP + -0x1c]
CALL 0x001797a0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x38]
MOV RDX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x38]
ADD RCX,qword ptr [RBP + -0x18]
MOV R8D,dword ptr [RBP + -0x1c]
MOV R9D,dword ptr [RBP + 0x10]
XOR EAX,EAX
MOV dword ptr [RSP],0x0
CALL 0x00179b00
ADD RSP,0x50
POP RBP
RET
|
void my_strnxfrm_simple_nopad
(int8 param_1,long param_2,long param_3,int4 param_4,int8 param_5,
int8 param_6,int4 param_7)
{
int4 local_24;
long local_20;
long local_18;
int8 local_10;
local_24 = param_4;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
local_18 = my_strnxfrm_simple_internal(param_1,param_2,param_3,&local_24,param_5,param_6);
local_18 = param_2 + local_18;
my_strxfrm_pad_desc_and_reverse_nopad
(local_10,param_2,local_18,param_2 + local_20,local_24,param_7,0);
return;
}
| |
45,776 | nlohmann::json_abi_v3_11_3::detail::iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>>::begin() const | monkey531[P]llama/common/json.hpp | iteration_proxy_value<IteratorType> begin() const noexcept
{
return iteration_proxy_value<IteratorType>(container->begin());
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>>::begin() const:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq (%rsi), %rax
leaq 0x8(%rsp), %r14
movq %rax, (%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r14)
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, 0x18(%r14)
movq %r14, %rdi
callq 0x8e396
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xb6eaa
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
nop
| _ZNK8nlohmann16json_abi_v3_11_36detail15iteration_proxyINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEE5beginEv:
push r14
push rbx
sub rsp, 28h
mov rbx, rdi
mov rax, [rsi]
lea r14, [rsp+38h+var_30]
mov [r14], rax
xorps xmm0, xmm0
movups xmmword ptr [r14+8], xmm0
mov rax, 8000000000000000h
mov [r14+18h], rax
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE9set_beginEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::set_begin(void)
mov rdi, rbx
mov rsi, r14
xor edx, edx
call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEEC2ESI_m; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::iteration_proxy_value(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>,ulong)
mov rax, rbx
add rsp, 28h
pop rbx
pop r14
retn
| long long nlohmann::json_abi_v3_11_3::detail::iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::begin(
long long a1,
unsigned __int8 **a2)
{
unsigned __int8 *v3; // [rsp+8h] [rbp-30h] BYREF
__int128 v4; // [rsp+10h] [rbp-28h]
unsigned long long v5; // [rsp+20h] [rbp-18h]
v3 = *a2;
v4 = 0LL;
v5 = 0x8000000000000000LL;
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::set_begin(&v3);
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::iteration_proxy_value(
a1,
(__int128 *)&v3,
0LL);
return a1;
}
| begin:
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
MOV RAX,qword ptr [RSI]
LEA R14,[RSP + 0x8]
MOV qword ptr [R14],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R14 + 0x8],XMM0
MOV RAX,-0x8000000000000000
MOV qword ptr [R14 + 0x18],RAX
MOV RDI,R14
CALL 0x0018e396
MOV RDI,RBX
MOV RSI,R14
XOR EDX,EDX
CALL 0x001b6eaa
MOV RAX,RBX
ADD RSP,0x28
POP RBX
POP R14
RET
|
/* nlohmann::json_abi_v3_11_3::detail::iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const> >::begin() const */
void nlohmann::json_abi_v3_11_3::detail::
iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
::begin(void)
{
int8 *in_RSI;
int8 local_30;
int8 local_28;
int8 uStack_20;
int8 local_18;
local_30 = *in_RSI;
local_28 = 0;
uStack_20 = 0;
local_18 = 0x8000000000000000;
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
::set_begin((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
*)&local_30);
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>>
::iteration_proxy_value();
return;
}
| |
45,777 | orientStr(int) | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lefrw/lefrw.cpp | char* orientStr(int orient) {
switch (orient) {
case 0: return ((char*)"N");
case 1: return ((char*)"W");
case 2: return ((char*)"S");
case 3: return ((char*)"E");
case 4: return ((char*)"FN");
case 5: return ((char*)"FW");
case 6: return ((char*)"FS");
case 7: return ((char*)"FE");
};
return ((char*)"BOGUS");
} | O3 | cpp | orientStr(int):
cmpl $0x7, %edi
ja 0x26cf
movl %edi, %eax
leaq 0x875de(%rip), %rcx # 0x89ca8
movq (%rcx,%rax,8), %rax
retq
leaq 0x55af9(%rip), %rax # 0x581cf
retq
| _Z9orientStri:
cmp edi, 7
ja short loc_26CF
mov eax, edi
lea rcx, off_89CA8; "N"
mov rax, [rcx+rax*8]
retn
loc_26CF:
lea rax, aBogus; "BOGUS"
retn
| const char * orientStr(unsigned int a1)
{
if ( a1 > 7 )
return "BOGUS";
else
return (const char *)*(&off_89CA8 + a1);
}
| orientStr:
CMP EDI,0x7
JA 0x001026cf
MOV EAX,EDI
LEA RCX,[0x189ca8]
MOV RAX,qword ptr [RCX + RAX*0x8]
RET
LAB_001026cf:
LEA RAX,[0x1581cf]
RET
|
/* orientStr(int) */
char * orientStr(int param_1)
{
if ((uint)param_1 < 8) {
return (&PTR_s_N_00189ca8)[(uint)param_1];
}
return "BOGUS";
}
| |
45,778 | my_rw_trywrlock | eloqsql/mysys/thr_rwlock.c | int my_rw_trywrlock(my_rw_lock_t *rwp)
{
int res;
pthread_mutex_lock(&rwp->lock);
if (rwp->state)
res= EBUSY; /* Can't get lock */
else
{
res=0;
rwp->state = -1;
#ifdef SAFE_MUTEX
rwp->write_thread= pthread_self();
#endif
}
pthread_mutex_unlock(&rwp->lock);
return(res);
} | O3 | c | my_rw_trywrlock:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x24430
movl $0x10, %r14d
cmpl $0x0, 0x88(%rbx)
jne 0x2e846
movl $0xffffffff, 0x88(%rbx) # imm = 0xFFFFFFFF
xorl %r14d, %r14d
movq %rbx, %rdi
callq 0x241e0
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
| my_rw_trywrlock:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rdi
call _pthread_mutex_lock
mov r14d, 10h
cmp dword ptr [rbx+88h], 0
jnz short loc_2E846
mov dword ptr [rbx+88h], 0FFFFFFFFh
xor r14d, r14d
loc_2E846:
mov rdi, rbx
call _pthread_mutex_unlock
mov eax, r14d
pop rbx
pop r14
pop rbp
retn
| long long my_rw_trywrlock(long long a1)
{
unsigned int v1; // r14d
pthread_mutex_lock(a1);
v1 = 16;
if ( !*(_DWORD *)(a1 + 136) )
{
*(_DWORD *)(a1 + 136) = -1;
v1 = 0;
}
pthread_mutex_unlock(a1);
return v1;
}
| my_rw_trywrlock:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RDI
CALL 0x00124430
MOV R14D,0x10
CMP dword ptr [RBX + 0x88],0x0
JNZ 0x0012e846
MOV dword ptr [RBX + 0x88],0xffffffff
XOR R14D,R14D
LAB_0012e846:
MOV RDI,RBX
CALL 0x001241e0
MOV EAX,R14D
POP RBX
POP R14
POP RBP
RET
|
int8 my_rw_trywrlock(pthread_mutex_t *param_1)
{
int8 uVar1;
pthread_mutex_lock(param_1);
uVar1 = 0x10;
if (*(int *)((long)param_1 + 0x88) == 0) {
*(int4 *)((long)param_1 + 0x88) = 0xffffffff;
uVar1 = 0;
}
pthread_mutex_unlock(param_1);
return uVar1;
}
| |
45,779 | minja::FilterNode::FilterNode(minja::Location const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::TemplateNode>&&) | monkey531[P]llama/common/minja.hpp | FilterNode(const Location & location, std::shared_ptr<Expression> && f, std::shared_ptr<TemplateNode> && b)
: TemplateNode(location), filter(std::move(f)), body(std::move(b)) {} | O2 | cpp | minja::FilterNode::FilterNode(minja::Location const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::TemplateNode>&&):
pushq %r15
pushq %r14
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r14
movq %rdi, %r15
callq 0x759f8
leaq 0x8643e(%rip), %rax # 0x100508
addq $0x10, %rax
movq %rax, (%r15)
andq $0x0, 0x28(%r15)
movups (%r14), %xmm0
andq $0x0, 0x8(%r14)
movups %xmm0, 0x20(%r15)
andq $0x0, (%r14)
andq $0x0, 0x38(%r15)
movups (%rbx), %xmm0
andq $0x0, 0x8(%rbx)
movups %xmm0, 0x30(%r15)
andq $0x0, (%rbx)
popq %rbx
popq %r14
popq %r15
retq
| _ZN5minja10FilterNodeC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEEOS4_INS_12TemplateNodeEE:
push r15
push r14
push rbx
mov rbx, rcx
mov r14, rdx
mov r15, rdi
call _ZN5minja12TemplateNodeC2ERKNS_8LocationE; minja::TemplateNode::TemplateNode(minja::Location const&)
lea rax, _ZTVN5minja10FilterNodeE; `vtable for'minja::FilterNode
add rax, 10h
mov [r15], rax
and qword ptr [r15+28h], 0
movups xmm0, xmmword ptr [r14]
and qword ptr [r14+8], 0
movups xmmword ptr [r15+20h], xmm0
and qword ptr [r14], 0
and qword ptr [r15+38h], 0
movups xmm0, xmmword ptr [rbx]
and qword ptr [rbx+8], 0
movups xmmword ptr [r15+30h], xmm0
and qword ptr [rbx], 0
pop rbx
pop r14
pop r15
retn
| long long * minja::FilterNode::FilterNode(long long a1, _QWORD *a2, __int128 *a3, __int128 *a4)
{
long long *result; // rax
__int128 v7; // xmm0
__int128 v8; // xmm0
minja::TemplateNode::TemplateNode((_QWORD *)a1, a2);
result = &`vtable for'minja::FilterNode + 2;
*(_QWORD *)a1 = &`vtable for'minja::FilterNode + 2;
*(_QWORD *)(a1 + 40) = 0LL;
v7 = *a3;
*((_QWORD *)a3 + 1) = 0LL;
*(_OWORD *)(a1 + 32) = v7;
*(_QWORD *)a3 = 0LL;
*(_QWORD *)(a1 + 56) = 0LL;
v8 = *a4;
*((_QWORD *)a4 + 1) = 0LL;
*(_OWORD *)(a1 + 48) = v8;
*(_QWORD *)a4 = 0LL;
return result;
}
| FilterNode:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RCX
MOV R14,RDX
MOV R15,RDI
CALL 0x001759f8
LEA RAX,[0x200508]
ADD RAX,0x10
MOV qword ptr [R15],RAX
AND qword ptr [R15 + 0x28],0x0
MOVUPS XMM0,xmmword ptr [R14]
AND qword ptr [R14 + 0x8],0x0
MOVUPS xmmword ptr [R15 + 0x20],XMM0
AND qword ptr [R14],0x0
AND qword ptr [R15 + 0x38],0x0
MOVUPS XMM0,xmmword ptr [RBX]
AND qword ptr [RBX + 0x8],0x0
MOVUPS xmmword ptr [R15 + 0x30],XMM0
AND qword ptr [RBX],0x0
POP RBX
POP R14
POP R15
RET
|
/* minja::FilterNode::FilterNode(minja::Location const&, std::shared_ptr<minja::Expression>&&,
std::shared_ptr<minja::TemplateNode>&&) */
void __thiscall
minja::FilterNode::FilterNode
(FilterNode *this,Location *param_1,shared_ptr *param_2,shared_ptr *param_3)
{
int8 uVar1;
TemplateNode::TemplateNode((TemplateNode *)this,param_1);
*(int ***)this = &PTR_do_render_00200518;
*(int8 *)(this + 0x28) = 0;
uVar1 = *(int8 *)(param_2 + 8);
*(int8 *)(param_2 + 8) = 0;
*(int8 *)(this + 0x20) = *(int8 *)param_2;
*(int8 *)(this + 0x28) = uVar1;
*(int8 *)param_2 = 0;
*(int8 *)(this + 0x38) = 0;
uVar1 = *(int8 *)(param_3 + 8);
*(int8 *)(param_3 + 8) = 0;
*(int8 *)(this + 0x30) = *(int8 *)param_3;
*(int8 *)(this + 0x38) = uVar1;
*(int8 *)param_3 = 0;
return;
}
| |
45,780 | pack_dirname | eloqsql/mysys/mf_pack.c | void pack_dirname(char * to, const char *from)
{
int cwd_err;
size_t d_length,length,UNINIT_VAR(buff_length);
char * start;
char buff[FN_REFLEN + 1];
DBUG_ENTER("pack_dirname");
(void) intern_filename(to,from); /* Change to intern name */
#ifdef FN_DEVCHAR
if ((start=strrchr(to,FN_DEVCHAR)) != 0) /* Skip device part */
start++;
else
#endif
start=to;
if (!(cwd_err= my_getwd(buff,FN_REFLEN,MYF(0))))
{
buff_length= strlen(buff);
d_length= (size_t) (start-to);
if ((start == to ||
(buff_length == d_length && !memcmp(buff,start,d_length))) &&
*start != FN_LIBCHAR && *start)
{ /* Put current dir before */
bchange((uchar*) to, d_length, (uchar*) buff, buff_length, strlen(to)+1);
}
}
if ((d_length= cleanup_dirname(to,to)) != 0)
{
length=0;
if (home_dir)
{
length= strlen(home_dir);
if (home_dir[length-1] == FN_LIBCHAR)
length--; /* Don't test last '/' */
}
if (length > 1 && length < d_length)
{ /* test if /xx/yy -> ~/yy */
if (memcmp(to,home_dir,length) == 0 && to[length] == FN_LIBCHAR)
{
to[0]=FN_HOMELIB; /* Filename begins with ~ */
(void) strmov_overlapp(to+1,to+length);
}
}
if (! cwd_err)
{ /* Test if cwd is ~/... */
if (length > 1 && length < buff_length)
{
if (memcmp(buff,home_dir,length) == 0 && buff[length] == FN_LIBCHAR)
{
buff[0]=FN_HOMELIB;
(void) strmov_overlapp(buff+1,buff+length);
}
}
if (is_prefix(to,buff))
{
length= strlen(buff);
if (to[length])
(void) strmov_overlapp(to,to+length); /* Remove everything before */
else
{
to[0]= FN_CURLIB; /* Put ./ instead of cwd */
to[1]= FN_LIBCHAR;
to[2]= '\0';
}
}
}
}
DBUG_PRINT("exit",("to: '%s'",to));
DBUG_VOID_RETURN;
} | O0 | c | pack_dirname:
pushq %rbp
movq %rsp, %rbp
subq $0x270, %rsp # imm = 0x270
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x218(%rbp)
movq %rsi, -0x220(%rbp)
movq -0x240(%rbp), %rax
movq %rax, -0x240(%rbp)
movq -0x218(%rbp), %rdi
movq -0x220(%rbp), %rsi
callq 0x2be00
movq -0x218(%rbp), %rax
movq %rax, -0x248(%rbp)
leaq -0x210(%rbp), %rdi
movl $0x200, %esi # imm = 0x200
xorl %eax, %eax
movl %eax, %edx
callq 0x2cfb0
movl %eax, -0x224(%rbp)
cmpl $0x0, %eax
jne 0x2bbc7
leaq -0x210(%rbp), %rdi
callq 0x24110
movq %rax, -0x240(%rbp)
movq -0x248(%rbp), %rax
movq -0x218(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x230(%rbp)
movq -0x248(%rbp), %rax
cmpq -0x218(%rbp), %rax
je 0x2bb3b
movq -0x240(%rbp), %rax
cmpq -0x230(%rbp), %rax
jne 0x2bbc5
leaq -0x210(%rbp), %rdi
movq -0x248(%rbp), %rsi
movq -0x230(%rbp), %rdx
callq 0x24120
cmpl $0x0, %eax
jne 0x2bbc5
movq -0x248(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2f, %eax
je 0x2bbc5
movq -0x248(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x2bbc5
movq -0x218(%rbp), %rax
movq %rax, -0x268(%rbp)
movq -0x230(%rbp), %rax
movq %rax, -0x260(%rbp)
leaq -0x210(%rbp), %rax
movq %rax, -0x258(%rbp)
movq -0x240(%rbp), %rax
movq %rax, -0x250(%rbp)
movq -0x218(%rbp), %rdi
callq 0x24110
movq -0x268(%rbp), %rdi
movq -0x260(%rbp), %rsi
movq -0x258(%rbp), %rdx
movq -0x250(%rbp), %rcx
movq %rax, %r8
addq $0x1, %r8
callq 0x328c0
jmp 0x2bbc7
movq -0x218(%rbp), %rdi
movq -0x218(%rbp), %rsi
callq 0x2bef0
movq %rax, -0x230(%rbp)
cmpq $0x0, %rax
je 0x2bdcd
movq $0x0, -0x238(%rbp)
leaq 0x357bab(%rip), %rax # 0x3837a8
cmpq $0x0, (%rax)
je 0x2bc4b
leaq 0x357b9e(%rip), %rax # 0x3837a8
movq (%rax), %rdi
callq 0x24110
movq %rax, -0x238(%rbp)
leaq 0x357b88(%rip), %rax # 0x3837a8
movq (%rax), %rax
movq -0x238(%rbp), %rcx
subq $0x1, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x2f, %eax
jne 0x2bc49
movq -0x238(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x238(%rbp)
jmp 0x2bc4b
cmpq $0x1, -0x238(%rbp)
jbe 0x2bcc8
movq -0x238(%rbp), %rax
cmpq -0x230(%rbp), %rax
jae 0x2bcc8
movq -0x218(%rbp), %rdi
leaq 0x357b35(%rip), %rax # 0x3837a8
movq (%rax), %rsi
movq -0x238(%rbp), %rdx
callq 0x24120
cmpl $0x0, %eax
jne 0x2bcc6
movq -0x218(%rbp), %rax
movq -0x238(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x2f, %eax
jne 0x2bcc6
movq -0x218(%rbp), %rax
movb $0x7e, (%rax)
movq -0x218(%rbp), %rdi
addq $0x1, %rdi
movq -0x218(%rbp), %rsi
addq -0x238(%rbp), %rsi
callq 0x771c0
jmp 0x2bcc8
cmpl $0x0, -0x224(%rbp)
jne 0x2bdcb
cmpq $0x1, -0x238(%rbp)
jbe 0x2bd4c
movq -0x238(%rbp), %rax
cmpq -0x240(%rbp), %rax
jae 0x2bd4c
leaq -0x210(%rbp), %rdi
leaq 0x357aab(%rip), %rax # 0x3837a8
movq (%rax), %rsi
movq -0x238(%rbp), %rdx
callq 0x24120
cmpl $0x0, %eax
jne 0x2bd4a
movq -0x238(%rbp), %rax
movsbl -0x210(%rbp,%rax), %eax
cmpl $0x2f, %eax
jne 0x2bd4a
movb $0x7e, -0x210(%rbp)
leaq -0x210(%rbp), %rdi
addq $0x1, %rdi
leaq -0x210(%rbp), %rsi
addq -0x238(%rbp), %rsi
callq 0x771c0
jmp 0x2bd4c
movq -0x218(%rbp), %rdi
leaq -0x210(%rbp), %rsi
callq 0x72140
cmpl $0x0, %eax
je 0x2bdc9
leaq -0x210(%rbp), %rdi
callq 0x24110
movq %rax, -0x238(%rbp)
movq -0x218(%rbp), %rax
movq -0x238(%rbp), %rcx
cmpb $0x0, (%rax,%rcx)
je 0x2bda7
movq -0x218(%rbp), %rdi
movq -0x218(%rbp), %rsi
addq -0x238(%rbp), %rsi
callq 0x771c0
jmp 0x2bdc7
movq -0x218(%rbp), %rax
movb $0x2e, (%rax)
movq -0x218(%rbp), %rax
movb $0x2f, 0x1(%rax)
movq -0x218(%rbp), %rax
movb $0x0, 0x2(%rax)
jmp 0x2bdc9
jmp 0x2bdcb
jmp 0x2bdcd
jmp 0x2bdcf
jmp 0x2bdd1
jmp 0x2bdd3
jmp 0x2bdd5
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x2bdf0
addq $0x270, %rsp # imm = 0x270
popq %rbp
retq
callq 0x242a0
nopw %cs:(%rax,%rax)
| pack_dirname:
push rbp
mov rbp, rsp
sub rsp, 270h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_218], rdi
mov [rbp+var_220], rsi
mov rax, [rbp+var_240]
mov [rbp+var_240], rax
mov rdi, [rbp+var_218]
mov rsi, [rbp+var_220]
call intern_filename
mov rax, [rbp+var_218]
mov [rbp+var_248], rax
lea rdi, [rbp+var_210]
mov esi, 200h
xor eax, eax
mov edx, eax
call my_getwd
mov [rbp+var_224], eax
cmp eax, 0
jnz loc_2BBC7
lea rdi, [rbp+var_210]
call _strlen
mov [rbp+var_240], rax
mov rax, [rbp+var_248]
mov rcx, [rbp+var_218]
sub rax, rcx
mov [rbp+var_230], rax
mov rax, [rbp+var_248]
cmp rax, [rbp+var_218]
jz short loc_2BB3B
mov rax, [rbp+var_240]
cmp rax, [rbp+var_230]
jnz loc_2BBC5
lea rdi, [rbp+var_210]
mov rsi, [rbp+var_248]
mov rdx, [rbp+var_230]
call _memcmp
cmp eax, 0
jnz loc_2BBC5
loc_2BB3B:
mov rax, [rbp+var_248]
movsx eax, byte ptr [rax]
cmp eax, 2Fh ; '/'
jz short loc_2BBC5
mov rax, [rbp+var_248]
movsx eax, byte ptr [rax]
cmp eax, 0
jz short loc_2BBC5
mov rax, [rbp+var_218]
mov [rbp+var_268], rax
mov rax, [rbp+var_230]
mov [rbp+var_260], rax
lea rax, [rbp+var_210]
mov [rbp+var_258], rax
mov rax, [rbp+var_240]
mov [rbp+var_250], rax
mov rdi, [rbp+var_218]
call _strlen
mov rdi, [rbp+var_268]
mov rsi, [rbp+var_260]
mov rdx, [rbp+var_258]
mov rcx, [rbp+var_250]
mov r8, rax
add r8, 1
call bchange
loc_2BBC5:
jmp short $+2
loc_2BBC7:
mov rdi, [rbp+var_218]
mov rsi, [rbp+var_218]
call cleanup_dirname
mov [rbp+var_230], rax
cmp rax, 0
jz loc_2BDCD
mov [rbp+var_238], 0
lea rax, home_dir
cmp qword ptr [rax], 0
jz short loc_2BC4B
lea rax, home_dir
mov rdi, [rax]
call _strlen
mov [rbp+var_238], rax
lea rax, home_dir
mov rax, [rax]
mov rcx, [rbp+var_238]
sub rcx, 1
movsx eax, byte ptr [rax+rcx]
cmp eax, 2Fh ; '/'
jnz short loc_2BC49
mov rax, [rbp+var_238]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_238], rax
loc_2BC49:
jmp short $+2
loc_2BC4B:
cmp [rbp+var_238], 1
jbe short loc_2BCC8
mov rax, [rbp+var_238]
cmp rax, [rbp+var_230]
jnb short loc_2BCC8
mov rdi, [rbp+var_218]
lea rax, home_dir
mov rsi, [rax]
mov rdx, [rbp+var_238]
call _memcmp
cmp eax, 0
jnz short loc_2BCC6
mov rax, [rbp+var_218]
mov rcx, [rbp+var_238]
movsx eax, byte ptr [rax+rcx]
cmp eax, 2Fh ; '/'
jnz short loc_2BCC6
mov rax, [rbp+var_218]
mov byte ptr [rax], 7Eh ; '~'
mov rdi, [rbp+var_218]
add rdi, 1
mov rsi, [rbp+var_218]
add rsi, [rbp+var_238]
call strmov_overlapp
loc_2BCC6:
jmp short $+2
loc_2BCC8:
cmp [rbp+var_224], 0
jnz loc_2BDCB
cmp [rbp+var_238], 1
jbe short loc_2BD4C
mov rax, [rbp+var_238]
cmp rax, [rbp+var_240]
jnb short loc_2BD4C
lea rdi, [rbp+var_210]
lea rax, home_dir
mov rsi, [rax]
mov rdx, [rbp+var_238]
call _memcmp
cmp eax, 0
jnz short loc_2BD4A
mov rax, [rbp+var_238]
movsx eax, [rbp+rax+var_210]
cmp eax, 2Fh ; '/'
jnz short loc_2BD4A
mov [rbp+var_210], 7Eh ; '~'
lea rdi, [rbp+var_210]
add rdi, 1
lea rsi, [rbp+var_210]
add rsi, [rbp+var_238]
call strmov_overlapp
loc_2BD4A:
jmp short $+2
loc_2BD4C:
mov rdi, [rbp+var_218]
lea rsi, [rbp+var_210]
call is_prefix
cmp eax, 0
jz short loc_2BDC9
lea rdi, [rbp+var_210]
call _strlen
mov [rbp+var_238], rax
mov rax, [rbp+var_218]
mov rcx, [rbp+var_238]
cmp byte ptr [rax+rcx], 0
jz short loc_2BDA7
mov rdi, [rbp+var_218]
mov rsi, [rbp+var_218]
add rsi, [rbp+var_238]
call strmov_overlapp
jmp short loc_2BDC7
loc_2BDA7:
mov rax, [rbp+var_218]
mov byte ptr [rax], 2Eh ; '.'
mov rax, [rbp+var_218]
mov byte ptr [rax+1], 2Fh ; '/'
mov rax, [rbp+var_218]
mov byte ptr [rax+2], 0
loc_2BDC7:
jmp short $+2
loc_2BDC9:
jmp short $+2
loc_2BDCB:
jmp short $+2
loc_2BDCD:
jmp short $+2
loc_2BDCF:
jmp short $+2
loc_2BDD1:
jmp short $+2
loc_2BDD3:
jmp short $+2
loc_2BDD5:
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_2BDF0
add rsp, 270h
pop rbp
retn
loc_2BDF0:
call ___stack_chk_fail
| unsigned long long pack_dirname(_BYTE *a1, long long a2)
{
long long v2; // rax
unsigned long long v4; // [rsp+30h] [rbp-240h]
unsigned long long v5; // [rsp+38h] [rbp-238h]
long long v6; // [rsp+38h] [rbp-238h]
long long v7; // [rsp+40h] [rbp-230h]
unsigned long long v8; // [rsp+40h] [rbp-230h]
int v9; // [rsp+4Ch] [rbp-224h]
_BYTE *v10; // [rsp+58h] [rbp-218h]
char v11; // [rsp+60h] [rbp-210h] BYREF
_BYTE v12[527]; // [rsp+61h] [rbp-20Fh] BYREF
*(_QWORD *)&v12[519] = __readfsqword(0x28u);
v10 = a1;
intern_filename(a1, a2);
v9 = my_getwd(&v11, 512LL, 0LL);
if ( !v9 )
{
v4 = strlen(&v11);
v7 = a1 - v10;
if ( (a1 == v10 || v4 == v7 && !(unsigned int)memcmp(&v11, a1, v7)) && *a1 != 47 && *a1 )
{
v2 = strlen(v10);
bchange(v10, v7, &v11, v4, v2 + 1);
}
}
v8 = cleanup_dirname(v10, v10);
if ( v8 )
{
v5 = 0LL;
if ( home_dir )
{
v5 = strlen(home_dir);
if ( *(_BYTE *)(home_dir + v5 - 1) == 47 )
--v5;
}
if ( v5 > 1 && v5 < v8 && !(unsigned int)memcmp(v10, home_dir, v5) && v10[v5] == 47 )
{
*v10 = 126;
strmov_overlapp(v10 + 1, &v10[v5]);
}
if ( !v9 )
{
if ( v5 > 1 && v5 < v4 && !(unsigned int)memcmp(&v11, home_dir, v5) && v12[v5 - 1] == 47 )
{
v11 = 126;
strmov_overlapp(v12, &v12[v5 - 1]);
}
if ( (unsigned int)is_prefix(v10, &v11) )
{
v6 = strlen(&v11);
if ( v10[v6] )
{
strmov_overlapp(v10, &v10[v6]);
}
else
{
*v10 = 46;
v10[1] = 47;
v10[2] = 0;
}
}
}
}
return __readfsqword(0x28u);
}
| pack_dirname:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x270
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x218],RDI
MOV qword ptr [RBP + -0x220],RSI
MOV RAX,qword ptr [RBP + -0x240]
MOV qword ptr [RBP + -0x240],RAX
MOV RDI,qword ptr [RBP + -0x218]
MOV RSI,qword ptr [RBP + -0x220]
CALL 0x0012be00
MOV RAX,qword ptr [RBP + -0x218]
MOV qword ptr [RBP + -0x248],RAX
LEA RDI,[RBP + -0x210]
MOV ESI,0x200
XOR EAX,EAX
MOV EDX,EAX
CALL 0x0012cfb0
MOV dword ptr [RBP + -0x224],EAX
CMP EAX,0x0
JNZ 0x0012bbc7
LEA RDI,[RBP + -0x210]
CALL 0x00124110
MOV qword ptr [RBP + -0x240],RAX
MOV RAX,qword ptr [RBP + -0x248]
MOV RCX,qword ptr [RBP + -0x218]
SUB RAX,RCX
MOV qword ptr [RBP + -0x230],RAX
MOV RAX,qword ptr [RBP + -0x248]
CMP RAX,qword ptr [RBP + -0x218]
JZ 0x0012bb3b
MOV RAX,qword ptr [RBP + -0x240]
CMP RAX,qword ptr [RBP + -0x230]
JNZ 0x0012bbc5
LEA RDI,[RBP + -0x210]
MOV RSI,qword ptr [RBP + -0x248]
MOV RDX,qword ptr [RBP + -0x230]
CALL 0x00124120
CMP EAX,0x0
JNZ 0x0012bbc5
LAB_0012bb3b:
MOV RAX,qword ptr [RBP + -0x248]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x2f
JZ 0x0012bbc5
MOV RAX,qword ptr [RBP + -0x248]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
JZ 0x0012bbc5
MOV RAX,qword ptr [RBP + -0x218]
MOV qword ptr [RBP + -0x268],RAX
MOV RAX,qword ptr [RBP + -0x230]
MOV qword ptr [RBP + -0x260],RAX
LEA RAX,[RBP + -0x210]
MOV qword ptr [RBP + -0x258],RAX
MOV RAX,qword ptr [RBP + -0x240]
MOV qword ptr [RBP + -0x250],RAX
MOV RDI,qword ptr [RBP + -0x218]
CALL 0x00124110
MOV RDI,qword ptr [RBP + -0x268]
MOV RSI,qword ptr [RBP + -0x260]
MOV RDX,qword ptr [RBP + -0x258]
MOV RCX,qword ptr [RBP + -0x250]
MOV R8,RAX
ADD R8,0x1
CALL 0x001328c0
LAB_0012bbc5:
JMP 0x0012bbc7
LAB_0012bbc7:
MOV RDI,qword ptr [RBP + -0x218]
MOV RSI,qword ptr [RBP + -0x218]
CALL 0x0012bef0
MOV qword ptr [RBP + -0x230],RAX
CMP RAX,0x0
JZ 0x0012bdcd
MOV qword ptr [RBP + -0x238],0x0
LEA RAX,[0x4837a8]
CMP qword ptr [RAX],0x0
JZ 0x0012bc4b
LEA RAX,[0x4837a8]
MOV RDI,qword ptr [RAX]
CALL 0x00124110
MOV qword ptr [RBP + -0x238],RAX
LEA RAX,[0x4837a8]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x238]
SUB RCX,0x1
MOVSX EAX,byte ptr [RAX + RCX*0x1]
CMP EAX,0x2f
JNZ 0x0012bc49
MOV RAX,qword ptr [RBP + -0x238]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x238],RAX
LAB_0012bc49:
JMP 0x0012bc4b
LAB_0012bc4b:
CMP qword ptr [RBP + -0x238],0x1
JBE 0x0012bcc8
MOV RAX,qword ptr [RBP + -0x238]
CMP RAX,qword ptr [RBP + -0x230]
JNC 0x0012bcc8
MOV RDI,qword ptr [RBP + -0x218]
LEA RAX,[0x4837a8]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x238]
CALL 0x00124120
CMP EAX,0x0
JNZ 0x0012bcc6
MOV RAX,qword ptr [RBP + -0x218]
MOV RCX,qword ptr [RBP + -0x238]
MOVSX EAX,byte ptr [RAX + RCX*0x1]
CMP EAX,0x2f
JNZ 0x0012bcc6
MOV RAX,qword ptr [RBP + -0x218]
MOV byte ptr [RAX],0x7e
MOV RDI,qword ptr [RBP + -0x218]
ADD RDI,0x1
MOV RSI,qword ptr [RBP + -0x218]
ADD RSI,qword ptr [RBP + -0x238]
CALL 0x001771c0
LAB_0012bcc6:
JMP 0x0012bcc8
LAB_0012bcc8:
CMP dword ptr [RBP + -0x224],0x0
JNZ 0x0012bdcb
CMP qword ptr [RBP + -0x238],0x1
JBE 0x0012bd4c
MOV RAX,qword ptr [RBP + -0x238]
CMP RAX,qword ptr [RBP + -0x240]
JNC 0x0012bd4c
LEA RDI,[RBP + -0x210]
LEA RAX,[0x4837a8]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x238]
CALL 0x00124120
CMP EAX,0x0
JNZ 0x0012bd4a
MOV RAX,qword ptr [RBP + -0x238]
MOVSX EAX,byte ptr [RBP + RAX*0x1 + -0x210]
CMP EAX,0x2f
JNZ 0x0012bd4a
MOV byte ptr [RBP + -0x210],0x7e
LEA RDI,[RBP + -0x210]
ADD RDI,0x1
LEA RSI,[RBP + -0x210]
ADD RSI,qword ptr [RBP + -0x238]
CALL 0x001771c0
LAB_0012bd4a:
JMP 0x0012bd4c
LAB_0012bd4c:
MOV RDI,qword ptr [RBP + -0x218]
LEA RSI,[RBP + -0x210]
CALL 0x00172140
CMP EAX,0x0
JZ 0x0012bdc9
LEA RDI,[RBP + -0x210]
CALL 0x00124110
MOV qword ptr [RBP + -0x238],RAX
MOV RAX,qword ptr [RBP + -0x218]
MOV RCX,qword ptr [RBP + -0x238]
CMP byte ptr [RAX + RCX*0x1],0x0
JZ 0x0012bda7
MOV RDI,qword ptr [RBP + -0x218]
MOV RSI,qword ptr [RBP + -0x218]
ADD RSI,qword ptr [RBP + -0x238]
CALL 0x001771c0
JMP 0x0012bdc7
LAB_0012bda7:
MOV RAX,qword ptr [RBP + -0x218]
MOV byte ptr [RAX],0x2e
MOV RAX,qword ptr [RBP + -0x218]
MOV byte ptr [RAX + 0x1],0x2f
MOV RAX,qword ptr [RBP + -0x218]
MOV byte ptr [RAX + 0x2],0x0
LAB_0012bdc7:
JMP 0x0012bdc9
LAB_0012bdc9:
JMP 0x0012bdcb
LAB_0012bdcb:
JMP 0x0012bdcd
LAB_0012bdcd:
JMP 0x0012bdcf
LAB_0012bdcf:
JMP 0x0012bdd1
LAB_0012bdd1:
JMP 0x0012bdd3
LAB_0012bdd3:
JMP 0x0012bdd5
LAB_0012bdd5:
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0012bdf0
ADD RSP,0x270
POP RBP
RET
LAB_0012bdf0:
CALL 0x001242a0
|
/* WARNING: Removing unreachable block (ram,0x0012bb04) */
/* WARNING: Removing unreachable block (ram,0x0012bb18) */
void pack_dirname(char *param_1,int8 param_2)
{
int iVar1;
int iVar2;
size_t sVar3;
ulong uVar4;
long in_FS_OFFSET;
ulong local_248;
ulong local_240;
char local_218 [520];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
intern_filename(param_1,param_2);
iVar1 = my_getwd(local_218,0x200,0);
if (((iVar1 == 0) && (local_248 = strlen(local_218), *param_1 != '/')) && (*param_1 != '\0')) {
sVar3 = strlen(param_1);
bchange(param_1,0,local_218,local_248,sVar3 + 1);
}
uVar4 = cleanup_dirname(param_1,param_1);
if (uVar4 != 0) {
local_240 = 0;
if ((home_dir != (char *)0x0) && (local_240 = strlen(home_dir), home_dir[local_240 - 1] == '/'))
{
local_240 = local_240 - 1;
}
if (((1 < local_240) && (local_240 < uVar4)) &&
((iVar2 = memcmp(param_1,home_dir,local_240), iVar2 == 0 && (param_1[local_240] == '/')))) {
*param_1 = '~';
strmov_overlapp(param_1 + 1,param_1 + local_240);
}
if (iVar1 == 0) {
if ((((1 < local_240) && (local_240 < local_248)) &&
(iVar1 = memcmp(local_218,home_dir,local_240), iVar1 == 0)) &&
(local_218[local_240] == '/')) {
local_218[0] = '~';
strmov_overlapp(local_218 + 1,local_218 + local_240);
}
iVar1 = is_prefix(param_1,local_218);
if (iVar1 != 0) {
sVar3 = strlen(local_218);
if (param_1[sVar3] == '\0') {
*param_1 = '.';
param_1[1] = '/';
param_1[2] = '\0';
}
else {
strmov_overlapp(param_1,param_1 + sVar3);
}
}
}
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
45,781 | my_strtoll10_utf32 | eloqsql/strings/ctype-ucs2.c | static longlong
my_strtoll10_utf32(CHARSET_INFO *cs __attribute__((unused)),
const char *nptr, char **endptr, int *error)
{
const char *s, *end, *start, *n_end, *true_end;
uchar c;
unsigned long i, j, k;
ulonglong li;
int negative;
ulong cutoff, cutoff2, cutoff3;
s= nptr;
/* If fixed length string */
if (endptr)
{
/* Make sure string length is even */
end= s + ((*endptr - s) / 4) * 4;
while (s < end && !s[0] && !s[1] && !s[2] &&
(s[3] == ' ' || s[3] == '\t'))
s+= 4;
if (s == end)
goto no_conv;
}
else
{
/* We don't support null terminated strings in UCS2 */
goto no_conv;
}
/* Check for a sign. */
negative= 0;
if (!s[0] && !s[1] && !s[2] && s[3] == '-')
{
*error= -1; /* Mark as negative number */
negative= 1;
s+= 4;
if (s == end)
goto no_conv;
cutoff= MAX_NEGATIVE_NUMBER / LFACTOR2;
cutoff2= (MAX_NEGATIVE_NUMBER % LFACTOR2) / 100;
cutoff3= MAX_NEGATIVE_NUMBER % 100;
}
else
{
*error= 0;
if (!s[0] && !s[1] && !s[2] && s[3] == '+')
{
s+= 4;
if (s == end)
goto no_conv;
}
cutoff= ULONGLONG_MAX / LFACTOR2;
cutoff2= ULONGLONG_MAX % LFACTOR2 / 100;
cutoff3= ULONGLONG_MAX % 100;
}
/* Handle case where we have a lot of pre-zero */
if (!s[0] && !s[1] && !s[2] && s[3] == '0')
{
i= 0;
do
{
s+= 4;
if (s == end)
goto end_i; /* Return 0 */
}
while (!s[0] && !s[1] && !s[2] && s[3] == '0');
n_end= s + 4 * INIT_CNT;
}
else
{
/* Read first digit to check that it's a valid number */
if (s[0] || s[1] || s[2] || (c= (s[3]-'0')) > 9)
goto no_conv;
i= c;
s+= 4;
n_end= s + 4 * (INIT_CNT-1);
}
/* Handle first 9 digits and store them in i */
if (n_end > end)
n_end= end;
for (; s != n_end ; s+= 4)
{
if (s[0] || s[1] || s[2] || (c= (s[3] - '0')) > 9)
goto end_i;
i= i * 10 + c;
}
if (s == end)
goto end_i;
/* Handle next 9 digits and store them in j */
j= 0;
start= s; /* Used to know how much to shift i */
n_end= true_end= s + 4 * INIT_CNT;
if (n_end > end)
n_end= end;
do
{
if (s[0] || s[1] || s[2] || (c= (s[3] - '0')) > 9)
goto end_i_and_j;
j= j * 10 + c;
s+= 4;
} while (s != n_end);
if (s == end)
{
if (s != true_end)
goto end_i_and_j;
goto end3;
}
if (s[0] || s[1] || s[2] || (c= (s[3] - '0')) > 9)
goto end3;
/* Handle the next 1 or 2 digits and store them in k */
k=c;
s+= 4;
if (s == end || s[0] || s[1] || s[2] || (c= (s[3]-'0')) > 9)
goto end4;
k= k * 10 + c;
s+= 4;
*endptr= (char*) s;
/* number string should have ended here */
if (s != end && !s[0] && !s[1] && !s[2] && (c= (s[3] - '0')) <= 9)
goto overflow;
/* Check that we didn't get an overflow with the last digit */
if (i > cutoff || (i == cutoff && ((j > cutoff2 || j == cutoff2) &&
k > cutoff3)))
goto overflow;
li= i * LFACTOR2+ (ulonglong) j * 100 + k;
return (longlong) li;
overflow: /* *endptr is set here */
*error= MY_ERRNO_ERANGE;
return negative ? LONGLONG_MIN : (longlong) ULONGLONG_MAX;
end_i:
*endptr= (char*) s;
return (negative ? ((longlong) -(long) i) : (longlong) i);
end_i_and_j:
li= (ulonglong) i * lfactor[(size_t) (s-start) / 4] + j;
*endptr= (char*) s;
return (negative ? -((longlong) li) : (longlong) li);
end3:
li= (ulonglong) i*LFACTOR+ (ulonglong) j;
*endptr= (char*) s;
return (negative ? -((longlong) li) : (longlong) li);
end4:
li= (ulonglong) i*LFACTOR1+ (ulonglong) j * 10 + k;
*endptr= (char*) s;
if (negative)
{
if (li > MAX_NEGATIVE_NUMBER)
goto overflow;
return -((longlong) li);
}
return (longlong) li;
no_conv:
/* There was no number to convert. */
*error= MY_ERRNO_EDOM;
*endptr= (char *) nptr;
return 0;
} | O3 | c | my_strtoll10_utf32:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
testq %rdx, %rdx
je 0x464b2
movq (%rdx), %rdi
subq %rsi, %rdi
leaq 0x3(%rdi), %rax
testq %rdi, %rdi
cmovnsq %rdi, %rax
andq $-0x4, %rax
addq %rsi, %rax
movq %rsi, %r11
cmpq $0x4, %rdi
jl 0x463bc
movq %rsi, %r11
cmpb $0x0, (%r11)
jne 0x463bc
cmpb $0x0, 0x1(%r11)
jne 0x463bc
cmpb $0x0, 0x2(%r11)
jne 0x463bc
movzbl 0x3(%r11), %edi
cmpl $0x20, %edi
je 0x463b3
cmpl $0x9, %edi
jne 0x463bc
addq $0x4, %r11
cmpq %rax, %r11
jb 0x46390
cmpq %rax, %r11
je 0x464b2
cmpb $0x0, (%r11)
jne 0x46409
cmpb $0x0, 0x1(%r11)
jne 0x46409
cmpb $0x0, 0x2(%r11)
jne 0x46409
cmpb $0x2d, 0x3(%r11)
jne 0x46409
movl $0xffffffff, (%rcx) # imm = 0xFFFFFFFF
addq $0x4, %r11
cmpq %rax, %r11
je 0x464b2
movl $0x8, %r8d
movl $0x15f797ae, %r9d # imm = 0x15F797AE
movl $0x57f5ff8, %r10d # imm = 0x57F5FF8
xorl %edi, %edi
jmp 0x4644c
movl $0x0, (%rcx)
cmpb $0x0, (%r11)
jne 0x464b2
movl $0xf, %r8d
movl $0x2bef2f5c, %r9d # imm = 0x2BEF2F5C
movl $0xafebff0, %r10d # imm = 0xAFEBFF0
movb $0x1, %dil
cmpb $0x0, 0x1(%r11)
jne 0x4644c
cmpb $0x0, 0x2(%r11)
jne 0x4644c
cmpb $0x2b, 0x3(%r11)
jne 0x4644c
addq $0x4, %r11
cmpq %rax, %r11
je 0x464b2
cmpb $0x0, (%r11)
jne 0x464b2
cmpb $0x0, 0x1(%r11)
jne 0x464b2
cmpb $0x0, 0x2(%r11)
jne 0x4649f
cmpb $0x30, 0x3(%r11)
jne 0x4649f
addq $0x28, %r11
xorl %esi, %esi
leaq -0x24(%r11), %rbx
cmpq %rax, %rbx
je 0x46655
movq %r11, %r14
cmpb $0x0, (%rbx)
jne 0x4649b
cmpb $0x0, -0x23(%r14)
jne 0x4649b
cmpb $0x0, -0x22(%r14)
jne 0x4649b
leaq 0x4(%r14), %r11
cmpb $0x30, -0x21(%r14)
je 0x4646d
xorl %esi, %esi
jmp 0x464d6
cmpb $0x0, 0x2(%r11)
jne 0x464b2
movb 0x3(%r11), %bl
addb $-0x30, %bl
cmpb $0x9, %bl
jbe 0x464c8
movl $0x21, (%rcx)
movq %rsi, (%rdx)
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movzbl %bl, %esi
leaq 0x4(%r11), %rbx
addq $0x24, %r11
movq %r11, %r14
cmpq %rax, %r14
cmovaq %rax, %r14
cmpq %r14, %rbx
je 0x46523
cmpb $0x0, (%rbx)
jne 0x46652
cmpb $0x0, 0x1(%rbx)
jne 0x46652
cmpb $0x0, 0x2(%rbx)
jne 0x46652
movb 0x3(%rbx), %r11b
addb $-0x30, %r11b
cmpb $0x9, %r11b
ja 0x46652
leaq (%rsi,%rsi,4), %rsi
movzbl %r11b, %r11d
leaq (%r11,%rsi,2), %rsi
addq $0x4, %rbx
jmp 0x464dd
cmpq %rax, %rbx
je 0x46652
leaq 0x24(%rbx), %r12
cmpq %rax, %r12
cmovaq %rax, %r12
leaq 0x8(%rbx), %r14
movl $0x24, %r13d
xorl %r11d, %r11d
cmpb $0x0, -0x8(%r14)
jne 0x4665a
cmpb $0x0, -0x7(%r14)
jne 0x4665a
cmpb $0x0, -0x6(%r14)
jne 0x4665a
movb -0x5(%r14), %r15b
addb $-0x30, %r15b
cmpb $0x9, %r15b
ja 0x4665a
leaq (%r11,%r11,4), %r11
movzbl %r15b, %r15d
leaq (%r15,%r11,2), %r11
leaq 0x4(%r14), %r15
addq $-0x4, %r14
addq $-0x4, %r13
cmpq %r12, %r14
movq %r15, %r14
jne 0x46544
leaq -0x8(%r15), %r14
cmpq %rax, %r12
je 0x4668c
cmpb $0x0, (%r14)
jne 0x46691
cmpb $0x0, -0x7(%r15)
jne 0x46691
cmpb $0x0, -0x6(%r15)
jne 0x46691
movb -0x5(%r15), %bl
addb $-0x30, %bl
cmpb $0x9, %bl
ja 0x46691
movzbl %bl, %ebx
leaq -0x4(%r15), %r12
cmpq %rax, %r12
je 0x46607
cmpb $0x0, -0x4(%r15)
jne 0x46607
cmpb $0x0, -0x3(%r15)
jne 0x46607
cmpb $0x0, -0x2(%r15)
jne 0x46607
movb -0x1(%r15), %r14b
addb $-0x30, %r14b
cmpb $0x9, %r14b
jbe 0x466b8
movabsq $0x2540be400, %rax # imm = 0x2540BE400
imulq %rax, %rsi
leaq (%r11,%r11,4), %rax
leaq (%rsi,%rax,2), %rax
addq %rbx, %rax
movq %r12, (%rdx)
testb %dil, %dil
jne 0x464bd
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
cmpq %rdx, %rax
jbe 0x466b0
movl $0x22, (%rcx)
movzbl %dil, %eax
negq %rax
btsq $0x3f, %rax
jmp 0x464bd
movq %rbx, %rax
movq %rax, (%rdx)
jmp 0x4667a
addq $-0x8, %r14
movq %r14, %rax
subq %rbx, %rax
andq $-0x4, %rax
leaq 0x207f01(%rip), %rcx # 0x24e570
imulq (%rcx,%rax,2), %rsi
addq %r11, %rsi
movq %r14, (%rdx)
movq %rsi, %rax
negq %rax
testb %dil, %dil
cmovneq %rsi, %rax
jmp 0x464bd
testq %r13, %r13
jne 0x4665e
imulq $0x3b9aca00, %rsi, %rax # imm = 0x3B9ACA00
addq %rax, %r11
movq %r14, (%rdx)
movq %r11, %rax
negq %rax
testb %dil, %dil
cmovneq %r11, %rax
jmp 0x464bd
negq %rax
jmp 0x464bd
movq %r15, (%rdx)
cmpq %rax, %r15
je 0x466e2
cmpb $0x0, (%r15)
jne 0x466e2
cmpb $0x0, 0x1(%r15)
jne 0x466e2
cmpb $0x0, 0x2(%r15)
jne 0x466e2
movb 0x3(%r15), %al
addb $-0x30, %al
cmpb $0xa, %al
jb 0x4663b
cmpq %r10, %rsi
ja 0x4663b
leaq (%rbx,%rbx,4), %rax
movzbl %r14b, %edx
leaq (%rdx,%rax,2), %rax
cmpq %r10, %rsi
jne 0x4670a
cmpq %r9, %r11
jb 0x4670a
cmpl %r8d, %eax
ja 0x4663b
movabsq $0x174876e800, %rcx # imm = 0x174876E800
imulq %rcx, %rsi
imulq $0x64, %r11, %rcx
addq %rax, %rsi
addq %rcx, %rsi
movq %rsi, %rax
jmp 0x464bd
| my_strtoll10_utf32:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
test rdx, rdx
jz loc_464B2
mov rdi, [rdx]
sub rdi, rsi
lea rax, [rdi+3]
test rdi, rdi
cmovns rax, rdi
and rax, 0FFFFFFFFFFFFFFFCh
add rax, rsi
mov r11, rsi
cmp rdi, 4
jl short loc_463BC
mov r11, rsi
loc_46390:
cmp byte ptr [r11], 0
jnz short loc_463BC
cmp byte ptr [r11+1], 0
jnz short loc_463BC
cmp byte ptr [r11+2], 0
jnz short loc_463BC
movzx edi, byte ptr [r11+3]
cmp edi, 20h ; ' '
jz short loc_463B3
cmp edi, 9
jnz short loc_463BC
loc_463B3:
add r11, 4
cmp r11, rax
jb short loc_46390
loc_463BC:
cmp r11, rax
jz loc_464B2
cmp byte ptr [r11], 0
jnz short loc_46409
cmp byte ptr [r11+1], 0
jnz short loc_46409
cmp byte ptr [r11+2], 0
jnz short loc_46409
cmp byte ptr [r11+3], 2Dh ; '-'
jnz short loc_46409
mov dword ptr [rcx], 0FFFFFFFFh
add r11, 4
cmp r11, rax
jz loc_464B2
mov r8d, 8
mov r9d, 15F797AEh
mov r10d, 57F5FF8h
xor edi, edi
jmp short loc_4644C
loc_46409:
mov dword ptr [rcx], 0
cmp byte ptr [r11], 0
jnz loc_464B2
mov r8d, 0Fh
mov r9d, 2BEF2F5Ch
mov r10d, 0AFEBFF0h
mov dil, 1
cmp byte ptr [r11+1], 0
jnz short loc_4644C
cmp byte ptr [r11+2], 0
jnz short loc_4644C
cmp byte ptr [r11+3], 2Bh ; '+'
jnz short loc_4644C
add r11, 4
cmp r11, rax
jz short loc_464B2
loc_4644C:
cmp byte ptr [r11], 0
jnz short loc_464B2
cmp byte ptr [r11+1], 0
jnz short loc_464B2
cmp byte ptr [r11+2], 0
jnz short loc_4649F
cmp byte ptr [r11+3], 30h ; '0'
jnz short loc_4649F
add r11, 28h ; '('
xor esi, esi
loc_4646D:
lea rbx, [r11-24h]
cmp rbx, rax
jz loc_46655
mov r14, r11
cmp byte ptr [rbx], 0
jnz short loc_4649B
cmp byte ptr [r14-23h], 0
jnz short loc_4649B
cmp byte ptr [r14-22h], 0
jnz short loc_4649B
lea r11, [r14+4]
cmp byte ptr [r14-21h], 30h ; '0'
jz short loc_4646D
loc_4649B:
xor esi, esi
jmp short loc_464D6
loc_4649F:
cmp byte ptr [r11+2], 0
jnz short loc_464B2
mov bl, [r11+3]
add bl, 0D0h
cmp bl, 9
jbe short loc_464C8
loc_464B2:
mov dword ptr [rcx], 21h ; '!'
mov [rdx], rsi
xor eax, eax
loc_464BD:
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_464C8:
movzx esi, bl
lea rbx, [r11+4]
add r11, 24h ; '$'
mov r14, r11
loc_464D6:
cmp r14, rax
cmova r14, rax
loc_464DD:
cmp rbx, r14
jz short loc_46523
cmp byte ptr [rbx], 0
jnz loc_46652
cmp byte ptr [rbx+1], 0
jnz loc_46652
cmp byte ptr [rbx+2], 0
jnz loc_46652
mov r11b, [rbx+3]
add r11b, 0D0h
cmp r11b, 9
ja loc_46652
lea rsi, [rsi+rsi*4]
movzx r11d, r11b
lea rsi, [r11+rsi*2]
add rbx, 4
jmp short loc_464DD
loc_46523:
cmp rbx, rax
jz loc_46652
lea r12, [rbx+24h]
cmp r12, rax
cmova r12, rax
lea r14, [rbx+8]
mov r13d, 24h ; '$'
xor r11d, r11d
loc_46544:
cmp byte ptr [r14-8], 0
jnz loc_4665A
cmp byte ptr [r14-7], 0
jnz loc_4665A
cmp byte ptr [r14-6], 0
jnz loc_4665A
mov r15b, [r14-5]
add r15b, 0D0h
cmp r15b, 9
ja loc_4665A
lea r11, [r11+r11*4]
movzx r15d, r15b
lea r11, [r15+r11*2]
lea r15, [r14+4]
add r14, 0FFFFFFFFFFFFFFFCh
add r13, 0FFFFFFFFFFFFFFFCh
cmp r14, r12
mov r14, r15
jnz short loc_46544
lea r14, [r15-8]
cmp r12, rax
jz loc_4668C
cmp byte ptr [r14], 0
jnz loc_46691
cmp byte ptr [r15-7], 0
jnz loc_46691
cmp byte ptr [r15-6], 0
jnz loc_46691
mov bl, [r15-5]
add bl, 0D0h
cmp bl, 9
ja loc_46691
movzx ebx, bl
lea r12, [r15-4]
cmp r12, rax
jz short loc_46607
cmp byte ptr [r15-4], 0
jnz short loc_46607
cmp byte ptr [r15-3], 0
jnz short loc_46607
cmp byte ptr [r15-2], 0
jnz short loc_46607
mov r14b, [r15-1]
add r14b, 0D0h
cmp r14b, 9
jbe loc_466B8
loc_46607:
mov rax, 2540BE400h
imul rsi, rax
lea rax, [r11+r11*4]
lea rax, [rsi+rax*2]
add rax, rbx
mov [rdx], r12
test dil, dil
jnz loc_464BD
mov rdx, 8000000000000000h
cmp rax, rdx
jbe short loc_466B0
loc_4663B:
mov dword ptr [rcx], 22h ; '"'
movzx eax, dil
neg rax
bts rax, 3Fh ; '?'
jmp loc_464BD
loc_46652:
mov rax, rbx
loc_46655:
mov [rdx], rax
jmp short loc_4667A
loc_4665A:
add r14, 0FFFFFFFFFFFFFFF8h
loc_4665E:
mov rax, r14
sub rax, rbx
and rax, 0FFFFFFFFFFFFFFFCh
lea rcx, lfactor
imul rsi, [rcx+rax*2]
add rsi, r11
mov [rdx], r14
loc_4667A:
mov rax, rsi
neg rax
test dil, dil
cmovnz rax, rsi
jmp loc_464BD
loc_4668C:
test r13, r13
jnz short loc_4665E
loc_46691:
imul rax, rsi, 3B9ACA00h
add r11, rax
mov [rdx], r14
mov rax, r11
neg rax
test dil, dil
cmovnz rax, r11
jmp loc_464BD
loc_466B0:
neg rax
jmp loc_464BD
loc_466B8:
mov [rdx], r15
cmp r15, rax
jz short loc_466E2
cmp byte ptr [r15], 0
jnz short loc_466E2
cmp byte ptr [r15+1], 0
jnz short loc_466E2
cmp byte ptr [r15+2], 0
jnz short loc_466E2
mov al, [r15+3]
add al, 0D0h
cmp al, 0Ah
jb loc_4663B
loc_466E2:
cmp rsi, r10
ja loc_4663B
lea rax, [rbx+rbx*4]
movzx edx, r14b
lea rax, [rdx+rax*2]
cmp rsi, r10
jnz short loc_4670A
cmp r11, r9
jb short loc_4670A
cmp eax, r8d
ja loc_4663B
loc_4670A:
mov rcx, 174876E800h
imul rsi, rcx
imul rcx, r11, 64h ; 'd'
add rsi, rax
add rsi, rcx
mov rax, rsi
jmp loc_464BD
| unsigned long long my_strtoll10_utf32(long long a1, _BYTE *a2, unsigned long long *a3, _DWORD *a4)
{
long long v4; // rdi
long long v5; // rax
unsigned long long v6; // rax
_BYTE *v7; // r11
int v8; // edi
unsigned int v9; // r8d
unsigned long long v10; // r9
unsigned long long v11; // r10
unsigned __int8 v12; // di
_BYTE *v13; // r11
unsigned long long v14; // rsi
_BYTE *v15; // rbx
_BYTE *v16; // r14
unsigned __int8 v17; // bl
unsigned long long result; // rax
unsigned __int8 v19; // r11
_BYTE *v20; // r12
_BYTE *v21; // r14
long long v22; // r13
unsigned long long v23; // r11
unsigned __int8 v24; // r15
_BYTE *v25; // r15
bool v26; // zf
_BYTE *v27; // r14
unsigned __int8 v28; // bl
unsigned __int8 v29; // r14
unsigned long long v30; // r11
long long v31; // rax
if ( !a3 )
goto LABEL_37;
v4 = *a3 - (_QWORD)a2;
v5 = v4 + 3;
if ( v4 >= 0 )
v5 = *a3 - (_QWORD)a2;
v6 = (unsigned long long)&a2[v5 & 0xFFFFFFFFFFFFFFFCLL];
v7 = a2;
if ( v4 >= 4 )
{
v7 = a2;
do
{
if ( *v7 )
break;
if ( v7[1] )
break;
if ( v7[2] )
break;
v8 = (unsigned __int8)v7[3];
if ( v8 != 32 && v8 != 9 )
break;
v7 += 4;
}
while ( (unsigned long long)v7 < v6 );
}
if ( v7 == (_BYTE *)v6 )
goto LABEL_37;
if ( *v7 || v7[1] || v7[2] || v7[3] != 45 )
{
*a4 = 0;
if ( *v7 )
goto LABEL_37;
v9 = 15;
v10 = 737095516LL;
v11 = 184467440LL;
v12 = 1;
if ( !v7[1] && !v7[2] && v7[3] == 43 )
{
v7 += 4;
if ( v7 == (_BYTE *)v6 )
goto LABEL_37;
}
}
else
{
*a4 = -1;
v7 += 4;
if ( v7 == (_BYTE *)v6 )
goto LABEL_37;
v9 = 8;
v10 = 368547758LL;
v11 = 92233720LL;
v12 = 0;
}
if ( *v7 || v7[1] )
goto LABEL_37;
if ( !v7[2] && v7[3] == 48 )
{
v13 = v7 + 40;
v14 = 0LL;
while ( 1 )
{
v15 = v13 - 36;
if ( v13 - 36 == (_BYTE *)v6 )
goto LABEL_71;
v16 = v13;
if ( !*v15 && !*(v13 - 35) && !*(v13 - 34) )
{
v13 += 4;
if ( *(v16 - 33) == 48 )
continue;
}
v14 = 0LL;
goto LABEL_40;
}
}
if ( v7[2] || (v17 = v7[3] - 48, v17 > 9u) )
{
LABEL_37:
*a4 = 33;
*a3 = (unsigned long long)a2;
return 0LL;
}
v14 = v17;
v15 = v7 + 4;
v16 = v7 + 36;
LABEL_40:
if ( (unsigned long long)v16 > v6 )
v16 = (_BYTE *)v6;
while ( v15 != v16 )
{
if ( *v15 )
goto LABEL_70;
if ( v15[1] )
goto LABEL_70;
if ( v15[2] )
goto LABEL_70;
v19 = v15[3] - 48;
if ( v19 > 9u )
goto LABEL_70;
v14 = v19 + 10 * v14;
v15 += 4;
}
if ( v15 != (_BYTE *)v6 )
{
v20 = v15 + 36;
if ( (unsigned long long)(v15 + 36) > v6 )
v20 = (_BYTE *)v6;
v21 = v15 + 8;
v22 = 36LL;
v23 = 0LL;
while ( !*(v21 - 8) )
{
if ( *(v21 - 7) )
break;
if ( *(v21 - 6) )
break;
v24 = *(v21 - 5) - 48;
if ( v24 > 9u )
break;
v23 = v24 + 10 * v23;
v25 = v21 + 4;
v22 -= 4LL;
v26 = v21 - 4 == v20;
v21 += 4;
if ( v26 )
{
v27 = v25 - 8;
if ( v20 != (_BYTE *)v6 )
{
if ( !*v27 && !*(v25 - 7) && !*(v25 - 6) )
{
v28 = *(v25 - 5) - 48;
if ( v28 <= 9u )
{
if ( v25 - 4 == (_BYTE *)v6 || *(v25 - 4) || *(v25 - 3) || *(v25 - 2) || (v29 = *(v25 - 1) - 48, v29 > 9u) )
{
result = v28 + 10000000000LL * v14 + 10 * v23;
*a3 = (unsigned long long)(v25 - 4);
if ( v12 )
return result;
if ( result > 0x8000000000000000LL )
goto LABEL_69;
return -(long long)result;
}
else
{
*a3 = (unsigned long long)v25;
if ( v25 != (_BYTE *)v6 && !*v25 && !v25[1] && !v25[2] && (unsigned __int8)(v25[3] - 48) < 0xAu
|| v14 > v11
|| (v31 = v29 + 10LL * v28, v14 == v11) && v23 >= v10 && (unsigned int)v31 > v9 )
{
LABEL_69:
*a4 = 34;
return -(long long)v12 | 0x8000000000000000LL;
}
return 100 * v23 + v31 + 100000000000LL * v14;
}
}
}
LABEL_78:
v30 = 1000000000 * v14 + v23;
*a3 = (unsigned long long)v27;
result = -(long long)v30;
if ( v12 )
return v30;
return result;
}
if ( !v22 )
goto LABEL_78;
LABEL_73:
v14 = v23 + *(_QWORD *)((char *)&lfactor + 2 * ((v27 - v15) & 0xFFFFFFFFFFFFFFFCLL)) * v14;
*a3 = (unsigned long long)v27;
goto LABEL_74;
}
}
v27 = v21 - 8;
goto LABEL_73;
}
LABEL_70:
v6 = (unsigned long long)v15;
LABEL_71:
*a3 = v6;
LABEL_74:
result = -(long long)v14;
if ( v12 )
return v14;
return result;
}
| my_strtoll10_utf32:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
TEST RDX,RDX
JZ 0x001464b2
MOV RDI,qword ptr [RDX]
SUB RDI,RSI
LEA RAX,[RDI + 0x3]
TEST RDI,RDI
CMOVNS RAX,RDI
AND RAX,-0x4
ADD RAX,RSI
MOV R11,RSI
CMP RDI,0x4
JL 0x001463bc
MOV R11,RSI
LAB_00146390:
CMP byte ptr [R11],0x0
JNZ 0x001463bc
CMP byte ptr [R11 + 0x1],0x0
JNZ 0x001463bc
CMP byte ptr [R11 + 0x2],0x0
JNZ 0x001463bc
MOVZX EDI,byte ptr [R11 + 0x3]
CMP EDI,0x20
JZ 0x001463b3
CMP EDI,0x9
JNZ 0x001463bc
LAB_001463b3:
ADD R11,0x4
CMP R11,RAX
JC 0x00146390
LAB_001463bc:
CMP R11,RAX
JZ 0x001464b2
CMP byte ptr [R11],0x0
JNZ 0x00146409
CMP byte ptr [R11 + 0x1],0x0
JNZ 0x00146409
CMP byte ptr [R11 + 0x2],0x0
JNZ 0x00146409
CMP byte ptr [R11 + 0x3],0x2d
JNZ 0x00146409
MOV dword ptr [RCX],0xffffffff
ADD R11,0x4
CMP R11,RAX
JZ 0x001464b2
MOV R8D,0x8
MOV R9D,0x15f797ae
MOV R10D,0x57f5ff8
XOR EDI,EDI
JMP 0x0014644c
LAB_00146409:
MOV dword ptr [RCX],0x0
CMP byte ptr [R11],0x0
JNZ 0x001464b2
MOV R8D,0xf
MOV R9D,0x2bef2f5c
MOV R10D,0xafebff0
MOV DIL,0x1
CMP byte ptr [R11 + 0x1],0x0
JNZ 0x0014644c
CMP byte ptr [R11 + 0x2],0x0
JNZ 0x0014644c
CMP byte ptr [R11 + 0x3],0x2b
JNZ 0x0014644c
ADD R11,0x4
CMP R11,RAX
JZ 0x001464b2
LAB_0014644c:
CMP byte ptr [R11],0x0
JNZ 0x001464b2
CMP byte ptr [R11 + 0x1],0x0
JNZ 0x001464b2
CMP byte ptr [R11 + 0x2],0x0
JNZ 0x0014649f
CMP byte ptr [R11 + 0x3],0x30
JNZ 0x0014649f
ADD R11,0x28
XOR ESI,ESI
LAB_0014646d:
LEA RBX,[R11 + -0x24]
CMP RBX,RAX
JZ 0x00146655
MOV R14,R11
CMP byte ptr [RBX],0x0
JNZ 0x0014649b
CMP byte ptr [R14 + -0x23],0x0
JNZ 0x0014649b
CMP byte ptr [R14 + -0x22],0x0
JNZ 0x0014649b
LEA R11,[R14 + 0x4]
CMP byte ptr [R14 + -0x21],0x30
JZ 0x0014646d
LAB_0014649b:
XOR ESI,ESI
JMP 0x001464d6
LAB_0014649f:
CMP byte ptr [R11 + 0x2],0x0
JNZ 0x001464b2
MOV BL,byte ptr [R11 + 0x3]
ADD BL,0xd0
CMP BL,0x9
JBE 0x001464c8
LAB_001464b2:
MOV dword ptr [RCX],0x21
MOV qword ptr [RDX],RSI
XOR EAX,EAX
LAB_001464bd:
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001464c8:
MOVZX ESI,BL
LEA RBX,[R11 + 0x4]
ADD R11,0x24
MOV R14,R11
LAB_001464d6:
CMP R14,RAX
CMOVA R14,RAX
LAB_001464dd:
CMP RBX,R14
JZ 0x00146523
CMP byte ptr [RBX],0x0
JNZ 0x00146652
CMP byte ptr [RBX + 0x1],0x0
JNZ 0x00146652
CMP byte ptr [RBX + 0x2],0x0
JNZ 0x00146652
MOV R11B,byte ptr [RBX + 0x3]
ADD R11B,0xd0
CMP R11B,0x9
JA 0x00146652
LEA RSI,[RSI + RSI*0x4]
MOVZX R11D,R11B
LEA RSI,[R11 + RSI*0x2]
ADD RBX,0x4
JMP 0x001464dd
LAB_00146523:
CMP RBX,RAX
JZ 0x00146652
LEA R12,[RBX + 0x24]
CMP R12,RAX
CMOVA R12,RAX
LEA R14,[RBX + 0x8]
MOV R13D,0x24
XOR R11D,R11D
LAB_00146544:
CMP byte ptr [R14 + -0x8],0x0
JNZ 0x0014665a
CMP byte ptr [R14 + -0x7],0x0
JNZ 0x0014665a
CMP byte ptr [R14 + -0x6],0x0
JNZ 0x0014665a
MOV R15B,byte ptr [R14 + -0x5]
ADD R15B,0xd0
CMP R15B,0x9
JA 0x0014665a
LEA R11,[R11 + R11*0x4]
MOVZX R15D,R15B
LEA R11,[R15 + R11*0x2]
LEA R15,[R14 + 0x4]
ADD R14,-0x4
ADD R13,-0x4
CMP R14,R12
MOV R14,R15
JNZ 0x00146544
LEA R14,[R15 + -0x8]
CMP R12,RAX
JZ 0x0014668c
CMP byte ptr [R14],0x0
JNZ 0x00146691
CMP byte ptr [R15 + -0x7],0x0
JNZ 0x00146691
CMP byte ptr [R15 + -0x6],0x0
JNZ 0x00146691
MOV BL,byte ptr [R15 + -0x5]
ADD BL,0xd0
CMP BL,0x9
JA 0x00146691
MOVZX EBX,BL
LEA R12,[R15 + -0x4]
CMP R12,RAX
JZ 0x00146607
CMP byte ptr [R15 + -0x4],0x0
JNZ 0x00146607
CMP byte ptr [R15 + -0x3],0x0
JNZ 0x00146607
CMP byte ptr [R15 + -0x2],0x0
JNZ 0x00146607
MOV R14B,byte ptr [R15 + -0x1]
ADD R14B,0xd0
CMP R14B,0x9
JBE 0x001466b8
LAB_00146607:
MOV RAX,0x2540be400
IMUL RSI,RAX
LEA RAX,[R11 + R11*0x4]
LEA RAX,[RSI + RAX*0x2]
ADD RAX,RBX
MOV qword ptr [RDX],R12
TEST DIL,DIL
JNZ 0x001464bd
MOV RDX,-0x8000000000000000
CMP RAX,RDX
JBE 0x001466b0
LAB_0014663b:
MOV dword ptr [RCX],0x22
MOVZX EAX,DIL
NEG RAX
BTS RAX,0x3f
JMP 0x001464bd
LAB_00146652:
MOV RAX,RBX
LAB_00146655:
MOV qword ptr [RDX],RAX
JMP 0x0014667a
LAB_0014665a:
ADD R14,-0x8
LAB_0014665e:
MOV RAX,R14
SUB RAX,RBX
AND RAX,-0x4
LEA RCX,[0x34e570]
IMUL RSI,qword ptr [RCX + RAX*0x2]
ADD RSI,R11
MOV qword ptr [RDX],R14
LAB_0014667a:
MOV RAX,RSI
NEG RAX
TEST DIL,DIL
CMOVNZ RAX,RSI
JMP 0x001464bd
LAB_0014668c:
TEST R13,R13
JNZ 0x0014665e
LAB_00146691:
IMUL RAX,RSI,0x3b9aca00
ADD R11,RAX
MOV qword ptr [RDX],R14
MOV RAX,R11
NEG RAX
TEST DIL,DIL
CMOVNZ RAX,R11
JMP 0x001464bd
LAB_001466b0:
NEG RAX
JMP 0x001464bd
LAB_001466b8:
MOV qword ptr [RDX],R15
CMP R15,RAX
JZ 0x001466e2
CMP byte ptr [R15],0x0
JNZ 0x001466e2
CMP byte ptr [R15 + 0x1],0x0
JNZ 0x001466e2
CMP byte ptr [R15 + 0x2],0x0
JNZ 0x001466e2
MOV AL,byte ptr [R15 + 0x3]
ADD AL,0xd0
CMP AL,0xa
JC 0x0014663b
LAB_001466e2:
CMP RSI,R10
JA 0x0014663b
LEA RAX,[RBX + RBX*0x4]
MOVZX EDX,R14B
LEA RAX,[RDX + RAX*0x2]
CMP RSI,R10
JNZ 0x0014670a
CMP R11,R9
JC 0x0014670a
CMP EAX,R8D
JA 0x0014663b
LAB_0014670a:
MOV RCX,0x174876e800
IMUL RSI,RCX
IMUL RCX,R11,0x64
ADD RSI,RAX
ADD RSI,RCX
MOV RAX,RSI
JMP 0x001464bd
|
ulong my_strtoll10_utf32(int8 param_1,char *param_2,long *param_3,int4 *param_4)
{
char *pcVar1;
char cVar2;
char *pcVar3;
byte bVar4;
char *pcVar5;
ulong uVar6;
byte bVar7;
ulong uVar8;
uint uVar9;
ulong uVar10;
char *pcVar11;
ulong uVar12;
long lVar13;
char *pcVar14;
char *pcVar15;
if (param_3 != (long *)0x0) {
uVar8 = *param_3 - (long)param_2;
uVar10 = uVar8 + 3;
if (-1 < (long)uVar8) {
uVar10 = uVar8;
}
pcVar3 = param_2 + (uVar10 & 0xfffffffffffffffc);
pcVar11 = param_2;
if (3 < (long)uVar8) {
do {
if ((((*pcVar11 != '\0') || (pcVar11[1] != '\0')) || (pcVar11[2] != '\0')) ||
((pcVar11[3] != ' ' && (pcVar11[3] != '\t')))) break;
pcVar11 = pcVar11 + 4;
} while (pcVar11 < pcVar3);
}
if (pcVar11 != pcVar3) {
if (((*pcVar11 == '\0') && (pcVar11[1] == '\0')) &&
((pcVar11[2] == '\0' && (pcVar11[3] == '-')))) {
*param_4 = 0xffffffff;
pcVar11 = pcVar11 + 4;
if (pcVar11 == pcVar3) goto LAB_001464b2;
uVar9 = 8;
uVar10 = 0x15f797ae;
uVar8 = 0x57f5ff8;
bVar7 = 0;
}
else {
*param_4 = 0;
if (*pcVar11 != '\0') goto LAB_001464b2;
uVar9 = 0xf;
uVar10 = 0x2bef2f5c;
uVar8 = 0xafebff0;
bVar7 = 1;
if ((((pcVar11[1] == '\0') && (pcVar11[2] == '\0')) && (pcVar11[3] == '+')) &&
(pcVar11 = pcVar11 + 4, pcVar11 == pcVar3)) goto LAB_001464b2;
}
if ((*pcVar11 == '\0') && (pcVar11[1] == '\0')) {
if ((pcVar11[2] == '\0') && (pcVar11[3] == '0')) {
uVar6 = 0;
pcVar5 = pcVar11 + 0x28;
do {
pcVar11 = pcVar5;
pcVar1 = pcVar11 + -0x24;
pcVar5 = pcVar3;
if (pcVar1 == pcVar3) goto LAB_00146655;
} while ((((*pcVar1 == '\0') && (pcVar11[-0x23] == '\0')) && (pcVar11[-0x22] == '\0')) &&
(pcVar5 = pcVar11 + 4, pcVar11[-0x21] == '0'));
uVar6 = 0;
pcVar5 = pcVar1;
}
else {
if ((pcVar11[2] != '\0') || (9 < (byte)(pcVar11[3] - 0x30U))) goto LAB_001464b2;
uVar6 = (ulong)(byte)(pcVar11[3] - 0x30U);
pcVar5 = pcVar11 + 4;
pcVar11 = pcVar11 + 0x24;
}
if (pcVar3 < pcVar11) {
pcVar11 = pcVar3;
}
for (; pcVar5 != pcVar11; pcVar5 = pcVar5 + 4) {
if (((*pcVar5 != '\0') || (pcVar5[1] != '\0')) ||
((pcVar5[2] != '\0' || (9 < (byte)(pcVar5[3] - 0x30U))))) goto LAB_00146655;
uVar6 = (ulong)(byte)(pcVar5[3] - 0x30U) + uVar6 * 10;
}
if (pcVar5 != pcVar3) {
pcVar11 = pcVar5 + 0x24;
if (pcVar3 < pcVar5 + 0x24) {
pcVar11 = pcVar3;
}
lVar13 = 0x24;
uVar12 = 0;
pcVar1 = pcVar5 + 8;
do {
pcVar14 = pcVar1;
if (((pcVar14[-8] != '\0') || (pcVar14[-7] != '\0')) ||
((pcVar14[-6] != '\0' || (9 < (byte)(pcVar14[-5] - 0x30U))))) {
pcVar15 = pcVar14 + -8;
goto LAB_0014665e;
}
uVar12 = (ulong)(byte)(pcVar14[-5] - 0x30U) + uVar12 * 10;
pcVar1 = pcVar14 + 4;
lVar13 = lVar13 + -4;
} while (pcVar14 + -4 != pcVar11);
pcVar15 = pcVar14 + -4;
if (pcVar11 == pcVar3) {
if (lVar13 != 0) {
LAB_0014665e:
uVar6 = uVar6 * *(long *)((long)&lfactor +
((long)pcVar15 - (long)pcVar5 & 0xfffffffffffffffcU) * 2) +
uVar12;
*param_3 = (long)pcVar15;
goto LAB_0014667a;
}
}
else if ((((*pcVar15 == '\0') && (pcVar14[-3] == '\0')) && (pcVar14[-2] == '\0')) &&
(bVar4 = pcVar14[-1] - 0x30, bVar4 < 10)) {
if (((pcVar14 == pcVar3) || (*pcVar14 != '\0')) ||
((pcVar14[1] != '\0' ||
((pcVar14[2] != '\0' || (cVar2 = pcVar14[3], 9 < (byte)(cVar2 - 0x30U))))))) {
uVar10 = uVar6 * 10000000000 + uVar12 * 10 + (ulong)bVar4;
*param_3 = (long)pcVar14;
if (bVar7 != 0) {
return uVar10;
}
if (uVar10 < 0x8000000000000001) {
return -uVar10;
}
}
else {
*param_3 = (long)pcVar1;
if ((((((pcVar1 == pcVar3) || (*pcVar1 != '\0')) || (pcVar14[5] != '\0')) ||
((pcVar14[6] != '\0' || (9 < (byte)(pcVar14[7] - 0x30U))))) && (uVar6 <= uVar8))
&& (((lVar13 = (ulong)(byte)(cVar2 - 0x30U) + (ulong)bVar4 * 10, uVar6 != uVar8 ||
(uVar12 < uVar10)) || ((uint)lVar13 <= uVar9)))) {
return uVar6 * 100000000000 + lVar13 + uVar12 * 100;
}
}
*param_4 = 0x22;
return -(ulong)bVar7 | 0x8000000000000000;
}
uVar12 = uVar12 + uVar6 * 1000000000;
*param_3 = (long)pcVar15;
if (bVar7 == 0) {
return -uVar12;
}
return uVar12;
}
LAB_00146655:
*param_3 = (long)pcVar5;
LAB_0014667a:
if (bVar7 == 0) {
return -uVar6;
}
return uVar6;
}
}
}
LAB_001464b2:
*param_4 = 0x21;
*param_3 = (long)param_2;
return 0;
}
| |
45,782 | minja::Parser::parseString[abi:cxx11]()::'lambda'(char)::operator()[abi:cxx11](char) const | monkey531[P]llama/common/./minja.hpp | std::unique_ptr<std::string> parseString() {
auto doParse = [&](char quote) -> std::unique_ptr<std::string> {
if (it == end || *it != quote) return nullptr;
std::string result;
bool escape = false;
for (++it; it != end; ++it) {
if (escape) {
escape = false;
switch (*it) {
case 'n': result += '\n'; break;
case 'r': result += '\r'; break;
case 't': result += '\t'; break;
case 'b': result += '\b'; break;
case 'f': result += '\f'; break;
case '\\': result += '\\'; break;
default:
if (*it == quote) {
result += quote;
} else {
result += *it;
}
break;
}
} else if (*it == '\\') {
escape = true;
} else if (*it == quote) {
++it;
return std::make_unique<std::string>(std::move(result));
} else {
result += *it;
}
}
return nullptr;
};
consumeSpaces();
if (it == end) return nullptr;
if (*it == '"') return doParse('"');
if (*it == '\'') return doParse('\'');
return nullptr;
} | O0 | cpp | minja::Parser::parseString[abi:cxx11]()::'lambda'(char)::operator()[abi:cxx11](char) const:
subq $0x78, %rsp
movq %rdi, 0x10(%rsp)
movb %dl, %al
movq %rdi, %rcx
movq %rcx, 0x18(%rsp)
movq %rdi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movb %al, 0x67(%rsp)
movq 0x68(%rsp), %rax
movq (%rax), %rsi
movq %rsi, 0x20(%rsp)
movq %rsi, %rdi
addq $0x20, %rdi
addq $0x18, %rsi
callq 0x9d2b0
testb $0x1, %al
jne 0xacafc
movq 0x20(%rsp), %rdi
addq $0x20, %rdi
callq 0x9b390
movsbl (%rax), %eax
movsbl 0x67(%rsp), %ecx
cmpl %ecx, %eax
je 0xacb0f
movq 0x10(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xaca60
jmp 0xacd36
leaq 0x40(%rsp), %rdi
callq 0x504a0
movq 0x20(%rsp), %rdi
movb $0x0, 0x3f(%rsp)
addq $0x20, %rdi
callq 0x9b3a0
movq 0x20(%rsp), %rsi
movq %rsi, %rdi
addq $0x20, %rdi
addq $0x18, %rsi
callq 0x76d70
testb $0x1, %al
jne 0xacb4a
jmp 0xacd16
testb $0x1, 0x3f(%rsp)
je 0xacc7e
movq 0x20(%rsp), %rdi
movb $0x0, 0x3f(%rsp)
addq $0x20, %rdi
callq 0x9b390
movsbl (%rax), %eax
addl $-0x5c, %eax
movl %eax, %ecx
movq %rcx, 0x8(%rsp)
subl $0x18, %eax
ja 0xacc2b
movq 0x8(%rsp), %rax
leaq 0x1156b6(%rip), %rcx # 0x1c2240
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x40(%rsp), %rdi
movl $0xa, %esi
callq 0x50a00
jmp 0xacba4
jmp 0xacc79
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x30(%rsp)
movl %eax, 0x2c(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x510c0
jmp 0xacd40
leaq 0x40(%rsp), %rdi
movl $0xd, %esi
callq 0x50a00
jmp 0xacbd7
jmp 0xacc79
leaq 0x40(%rsp), %rdi
movl $0x9, %esi
callq 0x50a00
jmp 0xacbed
jmp 0xacc79
leaq 0x40(%rsp), %rdi
movl $0x8, %esi
callq 0x50a00
jmp 0xacc03
jmp 0xacc79
leaq 0x40(%rsp), %rdi
movl $0xc, %esi
callq 0x50a00
jmp 0xacc16
jmp 0xacc79
leaq 0x40(%rsp), %rdi
movl $0x5c, %esi
callq 0x50a00
jmp 0xacc29
jmp 0xacc79
movq 0x20(%rsp), %rdi
addq $0x20, %rdi
callq 0x9b390
movsbl (%rax), %eax
movsbl 0x67(%rsp), %ecx
cmpl %ecx, %eax
jne 0xacc58
movsbl 0x67(%rsp), %esi
leaq 0x40(%rsp), %rdi
callq 0x50a00
jmp 0xacc56
jmp 0xacc77
movq 0x20(%rsp), %rdi
addq $0x20, %rdi
callq 0x9b390
movsbl (%rax), %esi
leaq 0x40(%rsp), %rdi
callq 0x50a00
jmp 0xacc75
jmp 0xacc77
jmp 0xacc79
jmp 0xacd01
movq 0x20(%rsp), %rdi
addq $0x20, %rdi
callq 0x9b390
movsbl (%rax), %eax
cmpl $0x5c, %eax
jne 0xacc9b
movb $0x1, 0x3f(%rsp)
jmp 0xaccff
movq 0x20(%rsp), %rdi
addq $0x20, %rdi
callq 0x9b390
movsbl (%rax), %eax
movsbl 0x67(%rsp), %ecx
cmpl %ecx, %eax
jne 0xaccde
movq 0x20(%rsp), %rdi
addq $0x20, %rdi
callq 0x9b3a0
movq 0x10(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0xace00
jmp 0xaccd4
movl $0x1, 0x28(%rsp)
jmp 0xacd2c
movq 0x20(%rsp), %rdi
addq $0x20, %rdi
callq 0x9b390
movsbl (%rax), %esi
leaq 0x40(%rsp), %rdi
callq 0x50a00
jmp 0xaccfb
jmp 0xaccfd
jmp 0xaccff
jmp 0xacd01
jmp 0xacd03
movq 0x20(%rsp), %rdi
addq $0x20, %rdi
callq 0x9b3a0
jmp 0xacb2c
movq 0x10(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xaca60
movl $0x1, 0x28(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x510c0
movq 0x18(%rsp), %rax
addq $0x78, %rsp
retq
movq 0x30(%rsp), %rdi
callq 0x50940
nopw (%rax,%rax)
| _ZZN5minja6Parser11parseStringB5cxx11EvENKUlcE_clB5cxx11Ec:
sub rsp, 78h
mov [rsp+78h+var_68], rdi
mov al, dl
mov rcx, rdi
mov [rsp+78h+var_60], rcx
mov [rsp+78h+var_8], rdi
mov [rsp+78h+var_10], rsi
mov [rsp+78h+var_11], al
mov rax, [rsp+78h+var_10]
mov rsi, [rax]
mov [rsp+78h+var_58], rsi
mov rdi, rsi
add rdi, 20h ; ' '
add rsi, 18h
call _ZN9__gnu_cxxeqIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESE_; __gnu_cxx::operator==<char const*,std::string>(__gnu_cxx::__normal_iterator<char const*,std::string> const&,__gnu_cxx::__normal_iterator<char const*,std::string> const&)
test al, 1
jnz short loc_ACAFC
mov rdi, [rsp+78h+var_58]
add rdi, 20h ; ' '
call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void)
movsx eax, byte ptr [rax]
movsx ecx, [rsp+78h+var_11]
cmp eax, ecx
jz short loc_ACB0F
loc_ACAFC:
mov rdi, [rsp+78h+var_68]
xor eax, eax
mov esi, eax
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEC2IS7_vEEDn; std::unique_ptr<std::string>::unique_ptr<std::default_delete<std::string>,void>(decltype(nullptr))
jmp loc_ACD36
loc_ACB0F:
lea rdi, [rsp+78h+var_38]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void)
mov rdi, [rsp+78h+var_58]
mov [rsp+78h+var_39], 0
add rdi, 20h ; ' '
call _ZN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator++(void)
loc_ACB2C:
mov rsi, [rsp+78h+var_58]
mov rdi, rsi
add rdi, 20h ; ' '
add rsi, 18h
call _ZN9__gnu_cxxneIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESE_; __gnu_cxx::operator!=<char const*,std::string>(__gnu_cxx::__normal_iterator<char const*,std::string> const&,__gnu_cxx::__normal_iterator<char const*,std::string> const&)
test al, 1
jnz short loc_ACB4A
jmp loc_ACD16
loc_ACB4A:
test [rsp+78h+var_39], 1
jz loc_ACC7E
mov rdi, [rsp+78h+var_58]
mov [rsp+78h+var_39], 0
add rdi, 20h ; ' '
call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void)
movsx eax, byte ptr [rax]
add eax, 0FFFFFFA4h; switch 25 cases
mov ecx, eax
mov [rsp+78h+var_70], rcx
sub eax, 18h
ja def_ACB91; jumptable 00000000000ACB91 default case, cases 93-97,99-101,103-109,111-113,115
mov rax, [rsp+78h+var_70]
lea rcx, jpt_ACB91
movsxd rax, ds:(jpt_ACB91 - 1C2240h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_ACB93:
lea rdi, [rsp+78h+var_38]; jumptable 00000000000ACB91 case 110
mov esi, 0Ah
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char)
jmp short $+2
loc_ACBA4:
jmp loc_ACC79
mov rcx, rax
mov eax, edx
mov [rsp+arg_28], rcx
mov [rsp+arg_24], eax
lea rdi, [rsp+arg_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_ACD40
loc_ACBC6:
lea rdi, [rsp+78h+var_38]; jumptable 00000000000ACB91 case 114
mov esi, 0Dh
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char)
jmp short $+2
loc_ACBD7:
jmp loc_ACC79
loc_ACBDC:
lea rdi, [rsp+78h+var_38]; jumptable 00000000000ACB91 case 116
mov esi, 9
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char)
jmp short $+2
loc_ACBED:
jmp loc_ACC79
loc_ACBF2:
lea rdi, [rsp+78h+var_38]; jumptable 00000000000ACB91 case 98
mov esi, 8
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char)
jmp short $+2
loc_ACC03:
jmp short loc_ACC79
loc_ACC05:
lea rdi, [rsp+78h+var_38]; jumptable 00000000000ACB91 case 102
mov esi, 0Ch
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char)
jmp short $+2
loc_ACC16:
jmp short loc_ACC79
loc_ACC18:
lea rdi, [rsp+78h+var_38]; jumptable 00000000000ACB91 case 92
mov esi, 5Ch ; '\'
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char)
jmp short $+2
loc_ACC29:
jmp short loc_ACC79
def_ACB91:
mov rdi, [rsp+78h+var_58]; jumptable 00000000000ACB91 default case, cases 93-97,99-101,103-109,111-113,115
add rdi, 20h ; ' '
call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void)
movsx eax, byte ptr [rax]
movsx ecx, [rsp+78h+var_11]
cmp eax, ecx
jnz short loc_ACC58
movsx esi, [rsp+78h+var_11]
lea rdi, [rsp+78h+var_38]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char)
jmp short $+2
loc_ACC56:
jmp short loc_ACC77
loc_ACC58:
mov rdi, [rsp+78h+var_58]
add rdi, 20h ; ' '
call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void)
movsx esi, byte ptr [rax]
lea rdi, [rsp+78h+var_38]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char)
jmp short $+2
loc_ACC75:
jmp short $+2
loc_ACC77:
jmp short $+2
loc_ACC79:
jmp loc_ACD01
loc_ACC7E:
mov rdi, [rsp+78h+var_58]
add rdi, 20h ; ' '
call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void)
movsx eax, byte ptr [rax]
cmp eax, 5Ch ; '\'
jnz short loc_ACC9B
mov [rsp+78h+var_39], 1
jmp short loc_ACCFF
loc_ACC9B:
mov rdi, [rsp+78h+var_58]
add rdi, 20h ; ' '
call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void)
movsx eax, byte ptr [rax]
movsx ecx, [rsp+78h+var_11]
cmp eax, ecx
jnz short loc_ACCDE
mov rdi, [rsp+78h+var_58]
add rdi, 20h ; ' '
call _ZN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator++(void)
mov rdi, [rsp+78h+var_68]
lea rsi, [rsp+78h+var_38]
call _ZSt11make_uniqueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS5_EENSt9_MakeUniqIT_E15__single_objectEDpOT0_; std::make_unique<std::string,std::string>(std::string &&)
jmp short $+2
loc_ACCD4:
mov [rsp+78h+var_50], 1
jmp short loc_ACD2C
loc_ACCDE:
mov rdi, [rsp+78h+var_58]
add rdi, 20h ; ' '
call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void)
movsx esi, byte ptr [rax]
lea rdi, [rsp+78h+var_38]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char)
jmp short $+2
loc_ACCFB:
jmp short $+2
loc_ACCFD:
jmp short $+2
loc_ACCFF:
jmp short $+2
loc_ACD01:
jmp short $+2
loc_ACD03:
mov rdi, [rsp+78h+var_58]
add rdi, 20h ; ' '
call _ZN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator++(void)
jmp loc_ACB2C
loc_ACD16:
mov rdi, [rsp+78h+var_68]
xor eax, eax
mov esi, eax
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEC2IS7_vEEDn; std::unique_ptr<std::string>::unique_ptr<std::default_delete<std::string>,void>(decltype(nullptr))
mov [rsp+78h+var_50], 1
loc_ACD2C:
lea rdi, [rsp+78h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_ACD36:
mov rax, [rsp+78h+var_60]
add rsp, 78h
retn
loc_ACD40:
mov rdi, [rsp+arg_28]
call __Unwind_Resume
| long long minja::Parser::parseString[abi:cxx11](void)::{lambda(char)#1}::operator()[abi:cxx11](
long long a1,
_QWORD *a2,
char a3)
{
char *v3; // rax
char *v4; // rax
char *v5; // rax
long long v7; // [rsp+20h] [rbp-58h]
char v8; // [rsp+3Fh] [rbp-39h]
_BYTE v9[39]; // [rsp+40h] [rbp-38h] BYREF
char v10; // [rsp+67h] [rbp-11h]
_QWORD *v11; // [rsp+68h] [rbp-10h]
long long v12; // [rsp+70h] [rbp-8h]
v12 = a1;
v11 = a2;
v10 = a3;
v7 = *a2;
if ( !__gnu_cxx::operator==<char const*,std::string>(*a2 + 32LL, *a2 + 24LL)
&& *(char *)__gnu_cxx::__normal_iterator<char const*,std::string>::operator*(v7 + 32) == v10 )
{
std::string::basic_string(v9);
v8 = 0;
__gnu_cxx::__normal_iterator<char const*,std::string>::operator++((_QWORD *)(v7 + 32));
while ( __gnu_cxx::operator!=<char const*,std::string>(v7 + 32, v7 + 24) )
{
if ( (v8 & 1) != 0 )
{
v8 = 0;
switch ( *(_BYTE *)__gnu_cxx::__normal_iterator<char const*,std::string>::operator*(v7 + 32) )
{
case '\\':
std::string::operator+=(v9, 92LL);
break;
case 'b':
std::string::operator+=(v9, 8LL);
break;
case 'f':
std::string::operator+=(v9, 12LL);
break;
case 'n':
std::string::operator+=(v9, 10LL);
break;
case 'r':
std::string::operator+=(v9, 13LL);
break;
case 't':
std::string::operator+=(v9, 9LL);
break;
default:
v3 = (char *)__gnu_cxx::__normal_iterator<char const*,std::string>::operator*(v7 + 32);
if ( *v3 != v10 )
goto LABEL_21;
std::string::operator+=(v9, (unsigned int)v10);
break;
}
}
else if ( *(_BYTE *)__gnu_cxx::__normal_iterator<char const*,std::string>::operator*(v7 + 32) == 92 )
{
v8 = 1;
}
else
{
v4 = (char *)__gnu_cxx::__normal_iterator<char const*,std::string>::operator*(v7 + 32);
if ( *v4 == v10 )
{
__gnu_cxx::__normal_iterator<char const*,std::string>::operator++((_QWORD *)(v7 + 32));
std::make_unique<std::string,std::string>(a1, v9);
goto LABEL_24;
}
LABEL_21:
v5 = (char *)__gnu_cxx::__normal_iterator<char const*,std::string>::operator*(v7 + 32);
std::string::operator+=(v9, (unsigned int)*v5);
}
__gnu_cxx::__normal_iterator<char const*,std::string>::operator++((_QWORD *)(v7 + 32));
}
std::unique_ptr<std::string>::unique_ptr<std::default_delete<std::string>,void>(a1);
LABEL_24:
std::string::~string(v9);
}
else
{
std::unique_ptr<std::string>::unique_ptr<std::default_delete<std::string>,void>(a1);
}
return a1;
}
| operator()[abi:cxx11]:
SUB RSP,0x78
MOV qword ptr [RSP + 0x10],RDI
MOV AL,DL
MOV RCX,RDI
MOV qword ptr [RSP + 0x18],RCX
MOV qword ptr [RSP + 0x70],RDI
MOV qword ptr [RSP + 0x68],RSI
MOV byte ptr [RSP + 0x67],AL
MOV RAX,qword ptr [RSP + 0x68]
MOV RSI,qword ptr [RAX]
MOV qword ptr [RSP + 0x20],RSI
MOV RDI,RSI
ADD RDI,0x20
ADD RSI,0x18
CALL 0x0019d2b0
TEST AL,0x1
JNZ 0x001acafc
MOV RDI,qword ptr [RSP + 0x20]
ADD RDI,0x20
CALL 0x0019b390
MOVSX EAX,byte ptr [RAX]
MOVSX ECX,byte ptr [RSP + 0x67]
CMP EAX,ECX
JZ 0x001acb0f
LAB_001acafc:
MOV RDI,qword ptr [RSP + 0x10]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x001aca60
JMP 0x001acd36
LAB_001acb0f:
LEA RDI,[RSP + 0x40]
CALL 0x001504a0
MOV RDI,qword ptr [RSP + 0x20]
MOV byte ptr [RSP + 0x3f],0x0
ADD RDI,0x20
CALL 0x0019b3a0
LAB_001acb2c:
MOV RSI,qword ptr [RSP + 0x20]
MOV RDI,RSI
ADD RDI,0x20
ADD RSI,0x18
CALL 0x00176d70
TEST AL,0x1
JNZ 0x001acb4a
JMP 0x001acd16
LAB_001acb4a:
TEST byte ptr [RSP + 0x3f],0x1
JZ 0x001acc7e
MOV RDI,qword ptr [RSP + 0x20]
MOV byte ptr [RSP + 0x3f],0x0
ADD RDI,0x20
CALL 0x0019b390
MOVSX EAX,byte ptr [RAX]
ADD EAX,-0x5c
MOV ECX,EAX
MOV qword ptr [RSP + 0x8],RCX
SUB EAX,0x18
JA 0x001acc2b
MOV RAX,qword ptr [RSP + 0x8]
LEA RCX,[0x2c2240]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_6e:
LEA RDI,[RSP + 0x40]
MOV ESI,0xa
CALL 0x00150a00
JMP 0x001acba4
LAB_001acba4:
JMP 0x001acc79
caseD_72:
LEA RDI,[RSP + 0x40]
MOV ESI,0xd
CALL 0x00150a00
JMP 0x001acbd7
LAB_001acbd7:
JMP 0x001acc79
caseD_74:
LEA RDI,[RSP + 0x40]
MOV ESI,0x9
CALL 0x00150a00
JMP 0x001acbed
LAB_001acbed:
JMP 0x001acc79
caseD_62:
LEA RDI,[RSP + 0x40]
MOV ESI,0x8
CALL 0x00150a00
JMP 0x001acc03
LAB_001acc03:
JMP 0x001acc79
caseD_66:
LEA RDI,[RSP + 0x40]
MOV ESI,0xc
CALL 0x00150a00
JMP 0x001acc16
LAB_001acc16:
JMP 0x001acc79
caseD_5c:
LEA RDI,[RSP + 0x40]
MOV ESI,0x5c
CALL 0x00150a00
JMP 0x001acc29
LAB_001acc29:
JMP 0x001acc79
caseD_5d:
MOV RDI,qword ptr [RSP + 0x20]
ADD RDI,0x20
CALL 0x0019b390
MOVSX EAX,byte ptr [RAX]
MOVSX ECX,byte ptr [RSP + 0x67]
CMP EAX,ECX
JNZ 0x001acc58
MOVSX ESI,byte ptr [RSP + 0x67]
LEA RDI,[RSP + 0x40]
CALL 0x00150a00
JMP 0x001acc56
LAB_001acc56:
JMP 0x001acc77
LAB_001acc58:
MOV RDI,qword ptr [RSP + 0x20]
ADD RDI,0x20
CALL 0x0019b390
MOVSX ESI,byte ptr [RAX]
LEA RDI,[RSP + 0x40]
CALL 0x00150a00
JMP 0x001acc75
LAB_001acc75:
JMP 0x001acc77
LAB_001acc77:
JMP 0x001acc79
LAB_001acc79:
JMP 0x001acd01
LAB_001acc7e:
MOV RDI,qword ptr [RSP + 0x20]
ADD RDI,0x20
CALL 0x0019b390
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x5c
JNZ 0x001acc9b
MOV byte ptr [RSP + 0x3f],0x1
JMP 0x001accff
LAB_001acc9b:
MOV RDI,qword ptr [RSP + 0x20]
ADD RDI,0x20
CALL 0x0019b390
MOVSX EAX,byte ptr [RAX]
MOVSX ECX,byte ptr [RSP + 0x67]
CMP EAX,ECX
JNZ 0x001accde
MOV RDI,qword ptr [RSP + 0x20]
ADD RDI,0x20
CALL 0x0019b3a0
MOV RDI,qword ptr [RSP + 0x10]
LEA RSI,[RSP + 0x40]
CALL 0x001ace00
JMP 0x001accd4
LAB_001accd4:
MOV dword ptr [RSP + 0x28],0x1
JMP 0x001acd2c
LAB_001accde:
MOV RDI,qword ptr [RSP + 0x20]
ADD RDI,0x20
CALL 0x0019b390
MOVSX ESI,byte ptr [RAX]
LEA RDI,[RSP + 0x40]
CALL 0x00150a00
LAB_001accf9:
JMP 0x001accfb
LAB_001accfb:
JMP 0x001accfd
LAB_001accfd:
JMP 0x001accff
LAB_001accff:
JMP 0x001acd01
LAB_001acd01:
JMP 0x001acd03
LAB_001acd03:
MOV RDI,qword ptr [RSP + 0x20]
ADD RDI,0x20
CALL 0x0019b3a0
JMP 0x001acb2c
LAB_001acd16:
MOV RDI,qword ptr [RSP + 0x10]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x001aca60
MOV dword ptr [RSP + 0x28],0x1
LAB_001acd2c:
LEA RDI,[RSP + 0x40]
CALL 0x001510c0
LAB_001acd36:
MOV RAX,qword ptr [RSP + 0x18]
ADD RSP,0x78
RET
|
/* operator()[abi:cxx11](char) const */
string * minja::Parser::parseString[abi:cxx11]()::{lambda(char)#1}::operator()[abi_cxx11_
(char param_1)
{
long lVar1;
bool bVar2;
bool bVar3;
char *pcVar4;
int1 *puVar5;
char in_DL;
long *in_RSI;
int7 in_register_00000039;
string *psVar6;
string local_38 [39];
char local_11;
string *local_8;
psVar6 = (string *)CONCAT71(in_register_00000039,param_1);
lVar1 = *in_RSI;
local_11 = in_DL;
local_8 = psVar6;
bVar2 = __gnu_cxx::operator==
((__normal_iterator *)(lVar1 + 0x20),(__normal_iterator *)(lVar1 + 0x18));
if ((bVar2) ||
(pcVar4 = (char *)__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator*
((__normal_iterator<char_const*,std::__cxx11::string> *)
(lVar1 + 0x20)), *pcVar4 != local_11)) {
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::
unique_ptr<std::default_delete<std::__cxx11::string>,void>((_func_decltype_nullptr *)psVar6);
}
else {
std::__cxx11::string::string(local_38);
bVar2 = false;
__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator++
((__normal_iterator<char_const*,std::__cxx11::string> *)(lVar1 + 0x20));
while (bVar3 = __gnu_cxx::operator!=
((__normal_iterator *)(lVar1 + 0x20),
(__normal_iterator *)(lVar1 + 0x18)), bVar3) {
if (bVar2) {
bVar2 = false;
puVar5 = (int1 *)
__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator*
((__normal_iterator<char_const*,std::__cxx11::string> *)(lVar1 + 0x20));
switch(*puVar5) {
case 0x5c:
std::__cxx11::string::operator+=(local_38,'\\');
break;
default:
pcVar4 = (char *)__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator*
((__normal_iterator<char_const*,std::__cxx11::string> *)
(lVar1 + 0x20));
if (*pcVar4 == local_11) {
std::__cxx11::string::operator+=(local_38,local_11);
}
else {
pcVar4 = (char *)__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::
operator*((__normal_iterator<char_const*,std::__cxx11::string> *)
(lVar1 + 0x20));
std::__cxx11::string::operator+=(local_38,*pcVar4);
}
break;
case 0x62:
std::__cxx11::string::operator+=(local_38,'\b');
break;
case 0x66:
std::__cxx11::string::operator+=(local_38,'\f');
break;
case 0x6e:
/* try { // try from 001acb93 to 001accf8 has its CatchHandler @ 001acba9 */
std::__cxx11::string::operator+=(local_38,'\n');
break;
case 0x72:
std::__cxx11::string::operator+=(local_38,'\r');
break;
case 0x74:
std::__cxx11::string::operator+=(local_38,'\t');
}
}
else {
pcVar4 = (char *)__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator*
((__normal_iterator<char_const*,std::__cxx11::string> *)
(lVar1 + 0x20));
if (*pcVar4 == '\\') {
bVar2 = true;
}
else {
pcVar4 = (char *)__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator*
((__normal_iterator<char_const*,std::__cxx11::string> *)
(lVar1 + 0x20));
if (*pcVar4 == local_11) {
__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator++
((__normal_iterator<char_const*,std::__cxx11::string> *)(lVar1 + 0x20));
std::make_unique<std::__cxx11::string,std::__cxx11::string>(psVar6);
goto LAB_001acd2c;
}
pcVar4 = (char *)__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator*
((__normal_iterator<char_const*,std::__cxx11::string> *)
(lVar1 + 0x20));
std::__cxx11::string::operator+=(local_38,*pcVar4);
}
}
__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator++
((__normal_iterator<char_const*,std::__cxx11::string> *)(lVar1 + 0x20));
}
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::
unique_ptr<std::default_delete<std::__cxx11::string>,void>((_func_decltype_nullptr *)psVar6);
LAB_001acd2c:
std::__cxx11::string::~string(local_38);
}
return psVar6;
}
| |
45,783 | minja::Parser::parseString[abi:cxx11]()::'lambda'(char)::operator()[abi:cxx11](char) const | monkey531[P]llama/common/./minja.hpp | std::unique_ptr<std::string> parseString() {
auto doParse = [&](char quote) -> std::unique_ptr<std::string> {
if (it == end || *it != quote) return nullptr;
std::string result;
bool escape = false;
for (++it; it != end; ++it) {
if (escape) {
escape = false;
switch (*it) {
case 'n': result += '\n'; break;
case 'r': result += '\r'; break;
case 't': result += '\t'; break;
case 'b': result += '\b'; break;
case 'f': result += '\f'; break;
case '\\': result += '\\'; break;
default:
if (*it == quote) {
result += quote;
} else {
result += *it;
}
break;
}
} else if (*it == '\\') {
escape = true;
} else if (*it == quote) {
++it;
return std::make_unique<std::string>(std::move(result));
} else {
result += *it;
}
}
return nullptr;
};
consumeSpaces();
if (it == end) return nullptr;
if (*it == '"') return doParse('"');
if (*it == '\'') return doParse('\'');
return nullptr;
} | O2 | cpp | minja::Parser::parseString[abi:cxx11]()::'lambda'(char)::operator()[abi:cxx11](char) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq (%rsi), %r15
movq 0x18(%r15), %rcx
movq 0x20(%r15), %rax
cmpq %rcx, %rax
je 0x40237
movl %edx, %ebp
cmpb %bpl, (%rax)
jne 0x40237
leaq 0x18(%rsp), %rdx
movq %rdx, -0x10(%rdx)
andq $0x0, -0x8(%rdx)
movb $0x0, (%rdx)
xorl %edx, %edx
movl $0x1a29, %r12d # imm = 0x1A29
leaq 0x50740(%rip), %r13 # 0x90920
leaq 0x8(%rsp), %r14
leaq 0x1(%rax), %rsi
movq %rsi, 0x20(%r15)
cmpq %rcx, %rsi
je 0x4023d
movb (%rsi), %cl
testb $0x1, %dl
je 0x40214
movsbl %cl, %eax
addl $-0x5c, %eax
rorl %eax
cmpl $0xc, %eax
ja 0x40220
btl %eax, %r12d
jae 0x40220
movl %eax, %eax
movb (%rax,%r13), %cl
jmp 0x40220
movb $0x1, %dl
cmpb $0x5c, %cl
je 0x4022d
cmpb %bpl, %cl
je 0x4025d
movsbl %cl, %esi
movq %r14, %rdi
callq 0x205c0
xorl %edx, %edx
movq 0x18(%r15), %rcx
movq 0x20(%r15), %rax
jmp 0x401e5
andq $0x0, (%rbx)
jmp 0x4024b
andq $0x0, (%rbx)
leaq 0x8(%rsp), %rdi
callq 0x20d78
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
addq $0x2, %rax
movq %rax, 0x20(%r15)
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x4028b
jmp 0x40241
jmp 0x40276
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x20d78
movq %rbx, %rdi
callq 0x20b90
| _ZZN5minja6Parser11parseStringB5cxx11EvENKUlcE_clB5cxx11Ec:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov rbx, rdi
mov r15, [rsi]
mov rcx, [r15+18h]
mov rax, [r15+20h]
cmp rax, rcx
jz short loc_40237
mov ebp, edx
cmp [rax], bpl
jnz short loc_40237
lea rdx, [rsp+58h+var_40]
mov [rdx-10h], rdx
and qword ptr [rdx-8], 0
mov byte ptr [rdx], 0
xor edx, edx
mov r12d, 1A29h
lea r13, unk_90920
lea r14, [rsp+58h+var_50]
loc_401E5:
lea rsi, [rax+1]
mov [r15+20h], rsi
cmp rsi, rcx
jz short loc_4023D
mov cl, [rsi]
test dl, 1
jz short loc_40214
movsx eax, cl
add eax, 0FFFFFFA4h
ror eax, 1
cmp eax, 0Ch
ja short loc_40220
bt r12d, eax
jnb short loc_40220
mov eax, eax
mov cl, [rax+r13]
jmp short loc_40220
loc_40214:
mov dl, 1
cmp cl, 5Ch ; '\'
jz short loc_4022D
cmp cl, bpl
jz short loc_4025D
loc_40220:
movsx esi, cl
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
xor edx, edx
loc_4022D:
mov rcx, [r15+18h]
mov rax, [r15+20h]
jmp short loc_401E5
loc_40237:
and qword ptr [rbx], 0
jmp short loc_4024B
loc_4023D:
and qword ptr [rbx], 0
loc_40241:
lea rdi, [rsp+58h+var_50]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_4024B:
mov rax, rbx
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_4025D:
add rax, 2
mov [r15+20h], rax
lea rsi, [rsp+58h+var_50]
mov rdi, rbx
call _ZSt11make_uniqueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS5_EENSt9_MakeUniqIT_E15__single_objectEDpOT0_; std::make_unique<std::string,std::string>(std::string &&)
jmp short loc_40241
jmp short $+2
loc_40276:
mov rbx, rax
lea rdi, [rsp+arg_0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rbx
call __Unwind_Resume
| _QWORD * minja::Parser::parseString[abi:cxx11](void)::{lambda(char)#1}::operator()[abi:cxx11](
_QWORD *a1,
long long *a2,
char a3)
{
long long v3; // r15
_BYTE *v4; // rcx
_BYTE *v5; // rax
long long v7; // rdx
int v8; // r12d
char v9; // cl
unsigned int v10; // eax
_QWORD v12[2]; // [rsp+8h] [rbp-50h] BYREF
char v13; // [rsp+18h] [rbp-40h] BYREF
v3 = *a2;
v4 = *(_BYTE **)(*a2 + 24);
v5 = *(_BYTE **)(*a2 + 32);
if ( v5 == v4 || *v5 != a3 )
{
*a1 = 0LL;
return a1;
}
v12[0] = &v13;
v12[1] = 0LL;
v13 = 0;
v7 = 0LL;
v8 = 6697;
while ( 1 )
{
*(_QWORD *)(v3 + 32) = v5 + 1;
if ( v5 + 1 == v4 )
{
*a1 = 0LL;
goto LABEL_15;
}
v9 = v5[1];
if ( (v7 & 1) != 0 )
{
v10 = __ROR4__(v9 - 92, 1);
if ( v10 <= 0xC )
{
if ( _bittest(&v8, v10) )
v9 = byte_90920[v10];
}
goto LABEL_11;
}
LOBYTE(v7) = 1;
if ( v9 == 92 )
goto LABEL_12;
if ( v9 == a3 )
break;
LABEL_11:
std::string::push_back(v12, (unsigned int)v9);
v7 = 0LL;
LABEL_12:
v4 = *(_BYTE **)(v3 + 24);
v5 = *(_BYTE **)(v3 + 32);
}
*(_QWORD *)(v3 + 32) = v5 + 2;
std::make_unique<std::string,std::string>(a1, v12, v7);
LABEL_15:
std::string::~string(v12);
return a1;
}
| operator()[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
MOV R15,qword ptr [RSI]
MOV RCX,qword ptr [R15 + 0x18]
MOV RAX,qword ptr [R15 + 0x20]
CMP RAX,RCX
JZ 0x00140237
MOV EBP,EDX
CMP byte ptr [RAX],BPL
JNZ 0x00140237
LEA RDX,[RSP + 0x18]
MOV qword ptr [RDX + -0x10],RDX
AND qword ptr [RDX + -0x8],0x0
MOV byte ptr [RDX],0x0
XOR EDX,EDX
MOV R12D,0x1a29
LEA R13,[0x190920]
LEA R14,[RSP + 0x8]
LAB_001401e5:
LEA RSI,[RAX + 0x1]
MOV qword ptr [R15 + 0x20],RSI
CMP RSI,RCX
JZ 0x0014023d
MOV CL,byte ptr [RSI]
TEST DL,0x1
JZ 0x00140214
MOVSX EAX,CL
ADD EAX,-0x5c
ROR EAX,0x1
CMP EAX,0xc
JA 0x00140220
BT R12D,EAX
JNC 0x00140220
MOV EAX,EAX
MOV CL,byte ptr [RAX + R13*0x1]
JMP 0x00140220
LAB_00140214:
MOV DL,0x1
CMP CL,0x5c
JZ 0x0014022d
CMP CL,BPL
JZ 0x0014025d
LAB_00140220:
MOVSX ESI,CL
MOV RDI,R14
CALL 0x001205c0
XOR EDX,EDX
LAB_0014022d:
MOV RCX,qword ptr [R15 + 0x18]
MOV RAX,qword ptr [R15 + 0x20]
JMP 0x001401e5
LAB_00140237:
AND qword ptr [RBX],0x0
JMP 0x0014024b
LAB_0014023d:
AND qword ptr [RBX],0x0
LAB_00140241:
LEA RDI,[RSP + 0x8]
CALL 0x00120d78
LAB_0014024b:
MOV RAX,RBX
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0014025d:
ADD RAX,0x2
MOV qword ptr [R15 + 0x20],RAX
LAB_00140265:
LEA RSI,[RSP + 0x8]
MOV RDI,RBX
CALL 0x0014028b
LAB_00140272:
JMP 0x00140241
|
/* operator()[abi:cxx11](char) const */
string * minja::Parser::parseString[abi:cxx11]()::{lambda(char)#1}::operator()[abi_cxx11_
(char param_1)
{
char *pcVar1;
long lVar2;
char *pcVar3;
char *pcVar4;
char in_DL;
bool bVar5;
long *in_RSI;
int7 in_register_00000039;
string *psVar6;
int1 *local_50;
int8 local_48;
int1 local_40 [16];
psVar6 = (string *)CONCAT71(in_register_00000039,param_1);
lVar2 = *in_RSI;
pcVar4 = *(char **)(lVar2 + 0x18);
pcVar3 = *(char **)(lVar2 + 0x20);
if ((pcVar3 == pcVar4) || (*pcVar3 != in_DL)) {
*(int8 *)psVar6 = 0;
}
else {
local_50 = local_40;
local_48 = 0;
local_40[0] = 0;
bVar5 = false;
while( true ) {
pcVar1 = pcVar3 + 1;
*(char **)(lVar2 + 0x20) = pcVar1;
if (pcVar1 == pcVar4) break;
if (bVar5) {
LAB_00140220:
/* try { // try from 00140220 to 0014022a has its CatchHandler @ 00140276 */
std::__cxx11::string::push_back((char)&local_50);
bVar5 = false;
}
else {
bVar5 = true;
if (*pcVar1 != '\\') {
if (*pcVar1 != in_DL) goto LAB_00140220;
*(char **)(lVar2 + 0x20) = pcVar3 + 2;
/* try { // try from 00140265 to 00140271 has its CatchHandler @ 00140274 */
std::make_unique<std::__cxx11::string,std::__cxx11::string>(psVar6);
goto LAB_00140241;
}
}
pcVar4 = *(char **)(lVar2 + 0x18);
pcVar3 = *(char **)(lVar2 + 0x20);
}
*(int8 *)psVar6 = 0;
LAB_00140241:
std::__cxx11::string::~string((string *)&local_50);
}
return psVar6;
}
| |
45,784 | minja::Parser::parseString[abi:cxx11]()::'lambda'(char)::operator()[abi:cxx11](char) const | monkey531[P]llama/common/./minja.hpp | std::unique_ptr<std::string> parseString() {
auto doParse = [&](char quote) -> std::unique_ptr<std::string> {
if (it == end || *it != quote) return nullptr;
std::string result;
bool escape = false;
for (++it; it != end; ++it) {
if (escape) {
escape = false;
switch (*it) {
case 'n': result += '\n'; break;
case 'r': result += '\r'; break;
case 't': result += '\t'; break;
case 'b': result += '\b'; break;
case 'f': result += '\f'; break;
case '\\': result += '\\'; break;
default:
if (*it == quote) {
result += quote;
} else {
result += *it;
}
break;
}
} else if (*it == '\\') {
escape = true;
} else if (*it == quote) {
++it;
return std::make_unique<std::string>(std::move(result));
} else {
result += *it;
}
}
return nullptr;
};
consumeSpaces();
if (it == end) return nullptr;
if (*it == '"') return doParse('"');
if (*it == '\'') return doParse('\'');
return nullptr;
} | O3 | cpp | minja::Parser::parseString[abi:cxx11]()::'lambda'(char)::operator()[abi:cxx11](char) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq (%rsi), %r12
movq 0x18(%r12), %rcx
movq 0x20(%r12), %rax
cmpq %rcx, %rax
je 0x43f75
movl %edx, %ebp
cmpb %bpl, (%rax)
jne 0x43f75
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
leaq 0x1(%rax), %rdx
movq %rdx, 0x20(%r12)
cmpq %rcx, %rdx
je 0x43f8e
xorl %edx, %edx
movl $0x1a29, %r13d # imm = 0x1A29
leaq 0x8(%rsp), %r14
movb 0x1(%rax), %cl
testb $0x1, %dl
je 0x43f27
movsbl %cl, %eax
addl $-0x5c, %eax
rorl %eax
cmpl $0xc, %eax
ja 0x43f33
btl %eax, %r13d
jae 0x43f33
movl %eax, %eax
leaq 0x79df2(%rip), %rcx # 0xbdd14
movb (%rax,%rcx), %cl
jmp 0x43f33
movb $0x1, %dl
cmpb $0x5c, %cl
je 0x43f40
cmpb %bpl, %cl
je 0x43f92
movsbl %cl, %esi
movq %r14, %rdi
callq 0x185a0
xorl %edx, %edx
movq 0x20(%r12), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x20(%r12)
cmpq 0x18(%r12), %rcx
jne 0x43efe
movq 0x8(%rsp), %rdi
movq $0x0, (%rbx)
cmpq %r15, %rdi
je 0x43f7c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x186a0
jmp 0x43f7c
movq $0x0, (%rbx)
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
jmp 0x43fd7
addq $0x2, %rax
movq %rax, 0x20(%r12)
movl $0x20, %edi
callq 0x18690
movq %rax, %rcx
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0x8(%rsp), %rdx
cmpq %r15, %rdx
je 0x43fc7
movq %rdx, (%rax)
movq 0x18(%rsp), %rcx
movq %rcx, 0x10(%rax)
jmp 0x43fce
movups (%r15), %xmm0
movups %xmm0, (%rcx)
movq 0x10(%rsp), %rcx
movq %rcx, 0x8(%rax)
movq %rax, (%rbx)
jmp 0x43f7c
jmp 0x43fde
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x43ff8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x186a0
movq %rbx, %rdi
callq 0x18b90
| _ZZN5minja6Parser11parseStringB5cxx11EvENKUlcE_clB5cxx11Ec:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov rbx, rdi
mov r12, [rsi]
mov rcx, [r12+18h]
mov rax, [r12+20h]
cmp rax, rcx
jz loc_43F75
mov ebp, edx
cmp [rax], bpl
jnz loc_43F75
lea r15, [rsp+58h+var_40]
mov [r15-10h], r15
mov qword ptr [r15-8], 0
mov byte ptr [r15], 0
lea rdx, [rax+1]
mov [r12+20h], rdx
cmp rdx, rcx
jz loc_43F8E
xor edx, edx
mov r13d, 1A29h
lea r14, [rsp+58h+var_50]
loc_43EFE:
mov cl, [rax+1]
test dl, 1
jz short loc_43F27
movsx eax, cl
add eax, 0FFFFFFA4h
ror eax, 1
cmp eax, 0Ch
ja short loc_43F33
bt r13d, eax
jnb short loc_43F33
mov eax, eax
lea rcx, unk_BDD14
mov cl, [rax+rcx]
jmp short loc_43F33
loc_43F27:
mov dl, 1
cmp cl, 5Ch ; '\'
jz short loc_43F40
cmp cl, bpl
jz short loc_43F92
loc_43F33:
movsx esi, cl
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
xor edx, edx
loc_43F40:
mov rax, [r12+20h]
lea rcx, [rax+1]
mov [r12+20h], rcx
cmp rcx, [r12+18h]
jnz short loc_43EFE
mov rdi, [rsp+58h+var_50]; void *
mov qword ptr [rbx], 0
cmp rdi, r15
jz short loc_43F7C
mov rsi, [rsp+58h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_43F7C
loc_43F75:
mov qword ptr [rbx], 0
loc_43F7C:
mov rax, rbx
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_43F8E:
xor eax, eax
jmp short loc_43FD7
loc_43F92:
add rax, 2
mov [r12+20h], rax
mov edi, 20h ; ' '; unsigned __int64
call __Znwm; operator new(ulong)
mov rcx, rax
add rcx, 10h
mov [rax], rcx
mov rdx, [rsp+58h+var_50]
cmp rdx, r15
jz short loc_43FC7
mov [rax], rdx
mov rcx, [rsp+58h+var_40]
mov [rax+10h], rcx
jmp short loc_43FCE
loc_43FC7:
movups xmm0, xmmword ptr [r15]
movups xmmword ptr [rcx], xmm0
loc_43FCE:
mov rcx, [rsp+58h+var_48]
mov [rax+8], rcx
loc_43FD7:
mov [rbx], rax
jmp short loc_43F7C
jmp short $+2
loc_43FDE:
mov rbx, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r15
jz short loc_43FF8
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_43FF8:
mov rdi, rbx
call __Unwind_Resume
| _QWORD * minja::Parser::parseString[abi:cxx11](void)::{lambda(char)#1}::operator()[abi:cxx11](
_QWORD *a1,
long long *a2,
char a3)
{
long long v4; // r12
_BYTE *v5; // rcx
_BYTE *v6; // rax
char v8; // dl
int v9; // r13d
char v10; // cl
unsigned int v11; // eax
_OWORD *v12; // rdi
long long v14; // rax
void *v15; // [rsp+8h] [rbp-50h] BYREF
long long v16; // [rsp+10h] [rbp-48h]
_OWORD v17[4]; // [rsp+18h] [rbp-40h] BYREF
v4 = *a2;
v5 = *(_BYTE **)(*a2 + 24);
v6 = *(_BYTE **)(*a2 + 32);
if ( v6 == v5 || *v6 != a3 )
{
*a1 = 0LL;
return a1;
}
v15 = v17;
v16 = 0LL;
LOBYTE(v17[0]) = 0;
*(_QWORD *)(v4 + 32) = v6 + 1;
if ( v6 + 1 == v5 )
{
v14 = 0LL;
goto LABEL_22;
}
v8 = 0;
v9 = 6697;
while ( 1 )
{
v10 = v6[1];
if ( (v8 & 1) != 0 )
{
v11 = __ROR4__(v10 - 92, 1);
if ( v11 <= 0xC && _bittest(&v9, v11) )
v10 = byte_BDD14[v11];
goto LABEL_11;
}
v8 = 1;
if ( v10 != 92 )
break;
LABEL_12:
v6 = *(_BYTE **)(v4 + 32);
*(_QWORD *)(v4 + 32) = v6 + 1;
if ( v6 + 1 == *(_BYTE **)(v4 + 24) )
{
v12 = v15;
*a1 = 0LL;
if ( v12 != v17 )
operator delete(v12, *(_QWORD *)&v17[0] + 1LL);
return a1;
}
}
if ( v10 != a3 )
{
LABEL_11:
std::string::push_back(&v15, (unsigned int)v10);
v8 = 0;
goto LABEL_12;
}
*(_QWORD *)(v4 + 32) = v6 + 2;
v14 = operator new(0x20uLL);
*(_QWORD *)v14 = v14 + 16;
if ( v15 == v17 )
{
*(_OWORD *)(v14 + 16) = v17[0];
}
else
{
*(_QWORD *)v14 = v15;
*(_QWORD *)(v14 + 16) = *(_QWORD *)&v17[0];
}
*(_QWORD *)(v14 + 8) = v16;
LABEL_22:
*a1 = v14;
return a1;
}
| operator()[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
MOV R12,qword ptr [RSI]
MOV RCX,qword ptr [R12 + 0x18]
MOV RAX,qword ptr [R12 + 0x20]
CMP RAX,RCX
JZ 0x00143f75
MOV EBP,EDX
CMP byte ptr [RAX],BPL
JNZ 0x00143f75
LEA R15,[RSP + 0x18]
MOV qword ptr [R15 + -0x10],R15
MOV qword ptr [R15 + -0x8],0x0
MOV byte ptr [R15],0x0
LEA RDX,[RAX + 0x1]
MOV qword ptr [R12 + 0x20],RDX
CMP RDX,RCX
JZ 0x00143f8e
XOR EDX,EDX
MOV R13D,0x1a29
LEA R14,[RSP + 0x8]
LAB_00143efe:
MOV CL,byte ptr [RAX + 0x1]
TEST DL,0x1
JZ 0x00143f27
MOVSX EAX,CL
ADD EAX,-0x5c
ROR EAX,0x1
CMP EAX,0xc
JA 0x00143f33
BT R13D,EAX
JNC 0x00143f33
MOV EAX,EAX
LEA RCX,[0x1bdd14]
MOV CL,byte ptr [RAX + RCX*0x1]
JMP 0x00143f33
LAB_00143f27:
MOV DL,0x1
CMP CL,0x5c
JZ 0x00143f40
CMP CL,BPL
JZ 0x00143f92
LAB_00143f33:
MOVSX ESI,CL
MOV RDI,R14
CALL 0x001185a0
XOR EDX,EDX
LAB_00143f40:
MOV RAX,qword ptr [R12 + 0x20]
LEA RCX,[RAX + 0x1]
MOV qword ptr [R12 + 0x20],RCX
CMP RCX,qword ptr [R12 + 0x18]
JNZ 0x00143efe
MOV RDI,qword ptr [RSP + 0x8]
MOV qword ptr [RBX],0x0
CMP RDI,R15
JZ 0x00143f7c
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001186a0
JMP 0x00143f7c
LAB_00143f75:
MOV qword ptr [RBX],0x0
LAB_00143f7c:
MOV RAX,RBX
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00143f8e:
XOR EAX,EAX
JMP 0x00143fd7
LAB_00143f92:
ADD RAX,0x2
MOV qword ptr [R12 + 0x20],RAX
LAB_00143f9b:
MOV EDI,0x20
CALL 0x00118690
LAB_00143fa5:
MOV RCX,RAX
ADD RCX,0x10
MOV qword ptr [RAX],RCX
MOV RDX,qword ptr [RSP + 0x8]
CMP RDX,R15
JZ 0x00143fc7
MOV qword ptr [RAX],RDX
MOV RCX,qword ptr [RSP + 0x18]
MOV qword ptr [RAX + 0x10],RCX
JMP 0x00143fce
LAB_00143fc7:
MOVUPS XMM0,xmmword ptr [R15]
MOVUPS xmmword ptr [RCX],XMM0
LAB_00143fce:
MOV RCX,qword ptr [RSP + 0x10]
MOV qword ptr [RAX + 0x8],RCX
LAB_00143fd7:
MOV qword ptr [RBX],RAX
JMP 0x00143f7c
|
/* operator()[abi:cxx11](char) const */
int8 *
minja::Parser::parseString[abi:cxx11]()::{lambda(char)#1}::operator()[abi_cxx11_(char param_1)
{
long lVar1;
char *pcVar2;
int8 *puVar3;
char in_DL;
bool bVar4;
long *in_RSI;
int7 in_register_00000039;
int8 *puVar5;
int1 *local_50;
int8 local_48;
int1 local_40;
int7 uStack_3f;
int8 uStack_38;
puVar5 = (int8 *)CONCAT71(in_register_00000039,param_1);
lVar1 = *in_RSI;
pcVar2 = *(char **)(lVar1 + 0x20);
if ((pcVar2 == *(char **)(lVar1 + 0x18)) || (*pcVar2 != in_DL)) {
*puVar5 = 0;
}
else {
local_48 = 0;
local_40 = 0;
*(char **)(lVar1 + 0x20) = pcVar2 + 1;
if (pcVar2 + 1 == *(char **)(lVar1 + 0x18)) {
puVar3 = (int8 *)0x0;
LAB_00143fd7:
*puVar5 = puVar3;
}
else {
bVar4 = false;
local_50 = &local_40;
do {
if (bVar4) {
LAB_00143f33:
/* try { // try from 00143f33 to 00143f3d has its CatchHandler @ 00143fde */
std::__cxx11::string::push_back((char)&local_50);
bVar4 = false;
}
else {
bVar4 = true;
if (pcVar2[1] != '\\') {
if (pcVar2[1] != in_DL) goto LAB_00143f33;
*(char **)(lVar1 + 0x20) = pcVar2 + 2;
/* try { // try from 00143f9b to 00143fa4 has its CatchHandler @ 00143fdc */
puVar3 = (int8 *)operator_new(0x20);
*puVar3 = puVar3 + 2;
if (local_50 == &local_40) {
puVar3[2] = CONCAT71(uStack_3f,local_40);
puVar3[3] = uStack_38;
}
else {
*puVar3 = local_50;
puVar3[2] = CONCAT71(uStack_3f,local_40);
}
puVar3[1] = local_48;
goto LAB_00143fd7;
}
}
pcVar2 = *(char **)(lVar1 + 0x20);
*(char **)(lVar1 + 0x20) = pcVar2 + 1;
} while (pcVar2 + 1 != *(char **)(lVar1 + 0x18));
*puVar5 = 0;
if (local_50 != &local_40) {
operator_delete(local_50,CONCAT71(uStack_3f,local_40) + 1);
}
}
}
return puVar5;
}
| |
45,785 | b2d | eloqsql/strings/dtoa.c | static double b2d(Bigint *a, int *e)
{
ULong *xa, *xa0, w, y, z;
int k;
U d;
#define d0 word0(&d)
#define d1 word1(&d)
xa0= a->p.x;
xa= xa0 + a->wds;
y= *--xa;
k= hi0bits(y);
*e= 32 - k;
if (k < Ebits)
{
d0= Exp_1 | y >> (Ebits - k);
w= xa > xa0 ? *--xa : 0;
d1= y << ((32-Ebits) + k) | w >> (Ebits - k);
goto ret_d;
}
z= xa > xa0 ? *--xa : 0;
if (k-= Ebits)
{
d0= Exp_1 | y << k | z >> (32 - k);
y= xa > xa0 ? *--xa : 0;
d1= z << k | y >> (32 - k);
}
else
{
d0= Exp_1 | y;
d1= z;
}
ret_d:
#undef d0
#undef d1
return dval(&d);
} | O3 | c | b2d:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rdi, %r14
movslq %esi, %rax
leaq (%rdi,%rax,4), %r13
leaq (%rdi,%rax,4), %r12
addq $-0x4, %r12
movl (%r12), %ebx
movl %ebx, %edi
callq 0x5c306
movl $0x20, %ecx
subl %eax, %ecx
movl %ecx, (%r15)
cmpl $0xa, %eax
ja 0x5c3d4
movl $0xb, %edx
subl %eax, %edx
movl %ebx, %esi
movl %edx, %ecx
shrl %cl, %esi
xorl %edi, %edi
cmpq %r14, %r12
jbe 0x5c3c7
movl -0x8(%r13), %edi
leal 0x15(%rax), %ecx
shll %cl, %ebx
movl %edx, %ecx
shrl %cl, %edi
orl %ebx, %edi
jmp 0x5c41b
xorl %edi, %edi
cmpq %r14, %r12
jbe 0x5c3e6
movl -0x8(%r13), %edi
addq $-0x8, %r13
movq %r13, %r12
movl %eax, %edx
addl $-0xb, %edx
je 0x5c419
movl %edx, %ecx
shll %cl, %ebx
movl $0x2b, %esi
subl %eax, %esi
movl %edi, %eax
movl %esi, %ecx
shrl %cl, %eax
xorl %r8d, %r8d
cmpq %r14, %r12
jbe 0x5c40b
movl -0x4(%r12), %r8d
movl %edx, %ecx
shll %cl, %edi
movl %esi, %ecx
shrl %cl, %r8d
orl %eax, %ebx
orl %r8d, %edi
movl %ebx, %esi
orl $0x3ff00000, %esi # imm = 0x3FF00000
shlq $0x20, %rsi
movl %edi, %eax
orq %rsi, %rax
movq %rax, %xmm0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
| b2d:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r15, rdx
mov r14, rdi
movsxd rax, esi
lea r13, [rdi+rax*4]
lea r12, [rdi+rax*4]
add r12, 0FFFFFFFFFFFFFFFCh
mov ebx, [r12]
mov edi, ebx
call hi0bits
mov ecx, 20h ; ' '
sub ecx, eax
mov [r15], ecx
cmp eax, 0Ah
ja short loc_5C3D4
mov edx, 0Bh
sub edx, eax
mov esi, ebx
mov ecx, edx
shr esi, cl
xor edi, edi
cmp r12, r14
jbe short loc_5C3C7
mov edi, [r13-8]
loc_5C3C7:
lea ecx, [rax+15h]
shl ebx, cl
mov ecx, edx
shr edi, cl
or edi, ebx
jmp short loc_5C41B
loc_5C3D4:
xor edi, edi
cmp r12, r14
jbe short loc_5C3E6
mov edi, [r13-8]
add r13, 0FFFFFFFFFFFFFFF8h
mov r12, r13
loc_5C3E6:
mov edx, eax
add edx, 0FFFFFFF5h
jz short loc_5C419
mov ecx, edx
shl ebx, cl
mov esi, 2Bh ; '+'
sub esi, eax
mov eax, edi
mov ecx, esi
shr eax, cl
xor r8d, r8d
cmp r12, r14
jbe short loc_5C40B
mov r8d, [r12-4]
loc_5C40B:
mov ecx, edx
shl edi, cl
mov ecx, esi
shr r8d, cl
or ebx, eax
or edi, r8d
loc_5C419:
mov esi, ebx
loc_5C41B:
or esi, 3FF00000h
shl rsi, 20h
mov eax, edi
or rax, rsi
movq xmm0, rax
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| double b2d(unsigned long long a1, int a2, _DWORD *a3)
{
unsigned long long v5; // r13
unsigned long long v6; // r12
unsigned int v7; // ebx
unsigned int v8; // eax
unsigned int v9; // esi
unsigned int v10; // edi
unsigned int v11; // edi
char v12; // dl
unsigned int v13; // ebx
char v14; // si
unsigned int v15; // eax
unsigned int v16; // r8d
double result; // xmm0_8
v5 = a1 + 4LL * a2;
v6 = v5 - 4;
v7 = *(_DWORD *)(v5 - 4);
v8 = hi0bits(v7);
*a3 = 32 - v8;
if ( v8 > 0xA )
{
v11 = 0;
if ( v6 > a1 )
{
v11 = *(_DWORD *)(v5 - 8);
v6 = v5 - 8;
}
v12 = v8 - 11;
if ( v8 != 11 )
{
v13 = v7 << v12;
v14 = 43 - v8;
v15 = v11 >> (43 - v8);
v16 = 0;
if ( v6 > a1 )
v16 = *(_DWORD *)(v6 - 4);
v7 = v15 | v13;
v11 = (v16 >> v14) | (v11 << v12);
}
v9 = v7;
}
else
{
v9 = v7 >> (11 - v8);
v10 = 0;
if ( v6 > a1 )
v10 = *(_DWORD *)(v5 - 8);
v11 = (v7 << (v8 + 21)) | (v10 >> (11 - v8));
}
*(_QWORD *)&result = ((unsigned long long)(v9 | 0x3FF00000) << 32) | v11;
return result;
}
| b2d:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,RDX
MOV R14,RDI
MOVSXD RAX,ESI
LEA R13,[RDI + RAX*0x4]
LEA R12,[RDI + RAX*0x4]
ADD R12,-0x4
MOV EBX,dword ptr [R12]
MOV EDI,EBX
CALL 0x0015c306
MOV ECX,0x20
SUB ECX,EAX
MOV dword ptr [R15],ECX
CMP EAX,0xa
JA 0x0015c3d4
MOV EDX,0xb
SUB EDX,EAX
MOV ESI,EBX
MOV ECX,EDX
SHR ESI,CL
XOR EDI,EDI
CMP R12,R14
JBE 0x0015c3c7
MOV EDI,dword ptr [R13 + -0x8]
LAB_0015c3c7:
LEA ECX,[RAX + 0x15]
SHL EBX,CL
MOV ECX,EDX
SHR EDI,CL
OR EDI,EBX
JMP 0x0015c41b
LAB_0015c3d4:
XOR EDI,EDI
CMP R12,R14
JBE 0x0015c3e6
MOV EDI,dword ptr [R13 + -0x8]
ADD R13,-0x8
MOV R12,R13
LAB_0015c3e6:
MOV EDX,EAX
ADD EDX,-0xb
JZ 0x0015c419
MOV ECX,EDX
SHL EBX,CL
MOV ESI,0x2b
SUB ESI,EAX
MOV EAX,EDI
MOV ECX,ESI
SHR EAX,CL
XOR R8D,R8D
CMP R12,R14
JBE 0x0015c40b
MOV R8D,dword ptr [R12 + -0x4]
LAB_0015c40b:
MOV ECX,EDX
SHL EDI,CL
MOV ECX,ESI
SHR R8D,CL
OR EBX,EAX
OR EDI,R8D
LAB_0015c419:
MOV ESI,EBX
LAB_0015c41b:
OR ESI,0x3ff00000
SHL RSI,0x20
MOV EAX,EDI
OR RAX,RSI
MOVQ XMM0,RAX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong b2d(uint *param_1,int param_2,int *param_3)
{
char cVar1;
uint uVar2;
long lVar3;
byte bVar4;
uint uVar5;
uint uVar6;
uint *puVar7;
lVar3 = (long)param_2;
puVar7 = param_1 + lVar3 + -1;
uVar5 = *puVar7;
uVar2 = hi0bits(uVar5);
*param_3 = 0x20 - uVar2;
cVar1 = (char)uVar2;
if (uVar2 < 0xb) {
uVar2 = 0;
if (param_1 < puVar7) {
uVar2 = param_1[lVar3 + -2];
}
uVar6 = uVar2 >> (0xbU - cVar1 & 0x1f) | uVar5 << (cVar1 + 0x15U & 0x1f);
uVar5 = uVar5 >> (0xbU - cVar1 & 0x1f);
}
else {
uVar6 = 0;
if (param_1 < puVar7) {
uVar6 = param_1[lVar3 + -2];
puVar7 = param_1 + lVar3 + -2;
}
if (uVar2 - 0xb != 0) {
bVar4 = (byte)(uVar2 - 0xb);
uVar2 = 0;
if (param_1 < puVar7) {
uVar2 = puVar7[-1];
}
uVar5 = uVar5 << (bVar4 & 0x1f) | uVar6 >> (0x2bU - cVar1 & 0x1f);
uVar6 = uVar6 << (bVar4 & 0x1f) | uVar2 >> (0x2bU - cVar1 & 0x1f);
}
}
return CONCAT44(uVar5,uVar6) | 0x3ff0000000000000;
}
| |
45,786 | my_caseup_ucs2 | eloqsql/strings/ctype-ucs2.c | static size_t my_caseup_ucs2(CHARSET_INFO *cs, const char *src, size_t srclen,
char *dst, size_t dstlen)
{
my_wc_t wc;
int res;
const char *srcend= src + srclen;
char *dstend= dst + dstlen;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
DBUG_ASSERT(srclen <= dstlen);
while ((src < srcend) &&
(res= my_ucs2_uni(cs, &wc, (uchar *)src, (uchar*) srcend)) > 0)
{
my_toupper_ucs2(uni_plane, &wc);
if (res != my_uni_ucs2(cs, wc, (uchar*) dst, (uchar*) dstend))
break;
src+= res;
dst+= res;
}
return srclen;
} | O3 | c | my_caseup_ucs2:
movq %rdx, %rax
cmpq $0x2, %rdx
jl 0x680bb
pushq %rbp
movq %rsp, %rbp
leaq (%rsi,%rax), %rdx
addq %rcx, %r8
movq 0x78(%rdi), %rdi
addq $0x2, %rcx
movzbl (%rsi), %r9d
movzbl 0x1(%rsi), %r10d
movq 0x8(%rdi), %r11
movq (%r11,%r9,8), %r11
testq %r11, %r11
je 0x68082
leaq (%r10,%r10,2), %r9
movl (%r11,%r9,4), %r9d
jmp 0x68089
shll $0x8, %r9d
orq %r10, %r9
cmpq %r8, %rcx
ja 0x680ba
cmpl $0xffff, %r9d # imm = 0xFFFF
ja 0x680ba
rolw $0x8, %r9w
movw %r9w, -0x2(%rcx)
leaq 0x2(%rsi), %r9
cmpq %rdx, %r9
jae 0x680ba
addq $0x4, %rsi
addq $0x2, %rcx
cmpq %rdx, %rsi
movq %r9, %rsi
jbe 0x68062
popq %rbp
retq
| my_caseup_ucs2:
mov rax, rdx
cmp rdx, 2
jl short locret_680BB
push rbp
mov rbp, rsp
lea rdx, [rsi+rax]
add r8, rcx
mov rdi, [rdi+78h]
add rcx, 2
loc_68062:
movzx r9d, byte ptr [rsi]
movzx r10d, byte ptr [rsi+1]
mov r11, [rdi+8]
mov r11, [r11+r9*8]
test r11, r11
jz short loc_68082
lea r9, [r10+r10*2]
mov r9d, [r11+r9*4]
jmp short loc_68089
loc_68082:
shl r9d, 8
or r9, r10
loc_68089:
cmp rcx, r8
ja short loc_680BA
cmp r9d, 0FFFFh
ja short loc_680BA
rol r9w, 8
mov [rcx-2], r9w
lea r9, [rsi+2]
cmp r9, rdx
jnb short loc_680BA
add rsi, 4
add rcx, 2
cmp rsi, rdx
mov rsi, r9
jbe short loc_68062
loc_680BA:
pop rbp
locret_680BB:
retn
| long long my_caseup_ucs2(long long a1, unsigned __int8 *a2, long long a3, long long a4, long long a5)
{
long long result; // rax
unsigned long long v6; // rdx
unsigned long long v7; // r8
long long v8; // rdi
unsigned long long v9; // rcx
long long v10; // r9
long long v11; // r10
long long v12; // r11
unsigned int v13; // r9d
bool v14; // cc
result = a3;
if ( a3 >= 2 )
{
v6 = (unsigned long long)&a2[a3];
v7 = a4 + a5;
v8 = *(_QWORD *)(a1 + 120);
v9 = a4 + 2;
do
{
v10 = *a2;
v11 = a2[1];
v12 = *(_QWORD *)(*(_QWORD *)(v8 + 8) + 8 * v10);
if ( v12 )
v13 = *(_DWORD *)(v12 + 12 * v11);
else
v13 = v11 | ((_DWORD)v10 << 8);
if ( v9 > v7 )
break;
if ( v13 > 0xFFFF )
break;
*(_WORD *)(v9 - 2) = __ROL2__(v13, 8);
if ( (unsigned long long)(a2 + 2) >= v6 )
break;
v9 += 2LL;
v14 = (unsigned long long)(a2 + 4) <= v6;
a2 += 2;
}
while ( v14 );
}
return result;
}
| my_caseup_ucs2:
MOV RAX,RDX
CMP RDX,0x2
JL 0x001680bb
PUSH RBP
MOV RBP,RSP
LEA RDX,[RSI + RAX*0x1]
ADD R8,RCX
MOV RDI,qword ptr [RDI + 0x78]
ADD RCX,0x2
LAB_00168062:
MOVZX R9D,byte ptr [RSI]
MOVZX R10D,byte ptr [RSI + 0x1]
MOV R11,qword ptr [RDI + 0x8]
MOV R11,qword ptr [R11 + R9*0x8]
TEST R11,R11
JZ 0x00168082
LEA R9,[R10 + R10*0x2]
MOV R9D,dword ptr [R11 + R9*0x4]
JMP 0x00168089
LAB_00168082:
SHL R9D,0x8
OR R9,R10
LAB_00168089:
CMP RCX,R8
JA 0x001680ba
CMP R9D,0xffff
JA 0x001680ba
ROL R9W,0x8
MOV word ptr [RCX + -0x2],R9W
LEA R9,[RSI + 0x2]
CMP R9,RDX
JNC 0x001680ba
ADD RSI,0x4
ADD RCX,0x2
CMP RSI,RDX
MOV RSI,R9
JBE 0x00168062
LAB_001680ba:
POP RBP
LAB_001680bb:
RET
|
void my_caseup_ucs2(long param_1,byte *param_2,long param_3,long param_4,long param_5)
{
long lVar1;
long lVar2;
ulong uVar3;
byte *pbVar4;
byte *pbVar5;
uint uVar6;
if (1 < param_3) {
lVar1 = *(long *)(param_1 + 0x78);
uVar3 = param_4 + 2;
pbVar4 = param_2;
while( true ) {
lVar2 = *(long *)(*(long *)(lVar1 + 8) + (ulong)*pbVar4 * 8);
if (lVar2 == 0) {
uVar6 = (uint)CONCAT11(*pbVar4,pbVar4[1]);
}
else {
uVar6 = *(uint *)(lVar2 + (ulong)pbVar4[1] * 0xc);
}
if (((ulong)(param_5 + param_4) < uVar3) || (0xffff < uVar6)) break;
*(ushort *)(uVar3 - 2) = (ushort)uVar6 << 8 | (ushort)uVar6 >> 8;
if (param_2 + param_3 <= pbVar4 + 2) {
return;
}
pbVar5 = pbVar4 + 4;
uVar3 = uVar3 + 2;
pbVar4 = pbVar4 + 2;
if (param_2 + param_3 < pbVar5) {
return;
}
}
}
return;
}
| |
45,787 | google::protobuf::io::Tokenizer::TryConsumeWhitespace() | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/io/tokenizer.cc | bool Tokenizer::TryConsumeWhitespace() {
if (report_newlines_) {
if (TryConsumeOne<WhitespaceNoNewline>()) {
ConsumeZeroOrMore<WhitespaceNoNewline>();
current_.type = TYPE_WHITESPACE;
return true;
}
return false;
}
if (TryConsumeOne<Whitespace>()) {
ConsumeZeroOrMore<Whitespace>();
current_.type = TYPE_WHITESPACE;
return report_whitespace_;
}
return false;
} | O0 | cpp | google::protobuf::io::Tokenizer::TryConsumeWhitespace():
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq %rax, (%rsp)
testb $0x1, 0xbf(%rax)
je 0x3297cb
movq (%rsp), %rdi
callq 0x329810
testb $0x1, %al
jne 0x3297aa
jmp 0x3297c4
movq (%rsp), %rdi
callq 0x329640
movq (%rsp), %rax
movl $0x7, (%rax)
movb $0x1, 0x17(%rsp)
jmp 0x329800
movb $0x0, 0x17(%rsp)
jmp 0x329800
movq (%rsp), %rdi
callq 0x329860
testb $0x1, %al
jne 0x3297da
jmp 0x3297fb
movq (%rsp), %rdi
callq 0x3298b0
movq (%rsp), %rax
movl $0x7, (%rax)
movb 0xbe(%rax), %al
andb $0x1, %al
movb %al, 0x17(%rsp)
jmp 0x329800
movb $0x0, 0x17(%rsp)
movb 0x17(%rsp), %al
andb $0x1, %al
addq $0x18, %rsp
retq
nopl (%rax,%rax)
| _ZN6google8protobuf2io9Tokenizer20TryConsumeWhitespaceEv:
sub rsp, 18h
mov [rsp+18h+var_10], rdi
mov rax, [rsp+18h+var_10]
mov [rsp+18h+var_18], rax
test byte ptr [rax+0BFh], 1
jz short loc_3297CB
mov rdi, [rsp+18h+var_18]
call _ZN6google8protobuf2io9Tokenizer13TryConsumeOneINS1_12_GLOBAL__N_119WhitespaceNoNewlineEEEbv; google::protobuf::io::Tokenizer::TryConsumeOne<google::protobuf::io::`anonymous namespace'::WhitespaceNoNewline>(void)
test al, 1
jnz short loc_3297AA
jmp short loc_3297C4
loc_3297AA:
mov rdi, [rsp+18h+var_18]
call _ZN6google8protobuf2io9Tokenizer17ConsumeZeroOrMoreINS1_12_GLOBAL__N_119WhitespaceNoNewlineEEEvv; google::protobuf::io::Tokenizer::ConsumeZeroOrMore<google::protobuf::io::`anonymous namespace'::WhitespaceNoNewline>(void)
mov rax, [rsp+18h+var_18]
mov dword ptr [rax], 7
mov [rsp+18h+var_1], 1
jmp short loc_329800
loc_3297C4:
mov [rsp+18h+var_1], 0
jmp short loc_329800
loc_3297CB:
mov rdi, [rsp+18h+var_18]
call _ZN6google8protobuf2io9Tokenizer13TryConsumeOneINS1_12_GLOBAL__N_110WhitespaceEEEbv; google::protobuf::io::Tokenizer::TryConsumeOne<google::protobuf::io::`anonymous namespace'::Whitespace>(void)
test al, 1
jnz short loc_3297DA
jmp short loc_3297FB
loc_3297DA:
mov rdi, [rsp+18h+var_18]
call _ZN6google8protobuf2io9Tokenizer17ConsumeZeroOrMoreINS1_12_GLOBAL__N_110WhitespaceEEEvv; google::protobuf::io::Tokenizer::ConsumeZeroOrMore<google::protobuf::io::`anonymous namespace'::Whitespace>(void)
mov rax, [rsp+18h+var_18]
mov dword ptr [rax], 7
mov al, [rax+0BEh]
and al, 1
mov [rsp+18h+var_1], al
jmp short loc_329800
loc_3297FB:
mov [rsp+18h+var_1], 0
loc_329800:
mov al, [rsp+18h+var_1]
and al, 1
add rsp, 18h
retn
| char google::protobuf::io::Tokenizer::TryConsumeWhitespace(google::protobuf::io::Tokenizer *this, char a2)
{
if ( (*((_BYTE *)this + 191) & 1) != 0 )
{
if ( (google::protobuf::io::Tokenizer::TryConsumeOne<google::protobuf::io::`anonymous namespace'::WhitespaceNoNewline>(this) & 1) != 0 )
{
google::protobuf::io::Tokenizer::ConsumeZeroOrMore<google::protobuf::io::`anonymous namespace'::WhitespaceNoNewline>(
(char *)this,
a2);
*(_DWORD *)this = 7;
return 1;
}
else
{
return 0;
}
}
else if ( (google::protobuf::io::Tokenizer::TryConsumeOne<google::protobuf::io::`anonymous namespace'::Whitespace>(this) & 1) != 0 )
{
google::protobuf::io::Tokenizer::ConsumeZeroOrMore<google::protobuf::io::`anonymous namespace'::Whitespace>(this);
*(_DWORD *)this = 7;
return *((_BYTE *)this + 190) & 1;
}
else
{
return 0;
}
}
| _Head_base:
MOV qword ptr [RSP + -0x8],RDI
RET
|
/* std::_Head_base<1ul, std::default_delete<char []>, true>::_Head_base() */
void std::_Head_base<1ul,std::default_delete<char[]>,true>::_Head_base(void)
{
return;
}
| |
45,788 | google::protobuf::io::Tokenizer::TryConsumeWhitespace() | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/io/tokenizer.cc | bool Tokenizer::TryConsumeWhitespace() {
if (report_newlines_) {
if (TryConsumeOne<WhitespaceNoNewline>()) {
ConsumeZeroOrMore<WhitespaceNoNewline>();
current_.type = TYPE_WHITESPACE;
return true;
}
return false;
}
if (TryConsumeOne<Whitespace>()) {
ConsumeZeroOrMore<Whitespace>();
current_.type = TYPE_WHITESPACE;
return report_whitespace_;
}
return false;
} | O3 | cpp | google::protobuf::io::Tokenizer::TryConsumeWhitespace():
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movzbl 0x80(%rdi), %ecx
cmpb $0x1, 0xbf(%rdi)
jne 0x16f6d9
xorl %eax, %eax
cmpl $0x20, %ecx
ja 0x16f709
movl %ecx, %ecx
movabsq $0x100003a00, %r14 # imm = 0x100003A00
btq %rcx, %r14
jae 0x16f709
movq %rbx, %rdi
callq 0x16e868
movzbl 0x80(%rbx), %eax
cmpq $0x20, %rax
ja 0x16f6cf
btq %rax, %r14
jb 0x16f6b4
movl $0x7, (%rbx)
movb $0x1, %al
jmp 0x16f709
leal -0x9(%rcx), %eax
cmpl $0x5, %eax
jae 0x16f711
movq %rbx, %rdi
callq 0x16e868
movzbl 0x80(%rbx), %eax
leal -0x9(%rax), %ecx
cmpl $0x5, %ecx
jb 0x16f6e1
cmpl $0x20, %eax
je 0x16f6e1
movl $0x7, (%rbx)
movb 0xbe(%rbx), %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
cmpl $0x20, %ecx
je 0x16f6e1
xorl %eax, %eax
jmp 0x16f709
| _ZN6google8protobuf2io9Tokenizer20TryConsumeWhitespaceEv:
push r14
push rbx
push rax
mov rbx, rdi
movzx ecx, byte ptr [rdi+80h]
cmp byte ptr [rdi+0BFh], 1
jnz short loc_16F6D9
xor eax, eax
cmp ecx, 20h ; ' '
ja short loc_16F709
mov ecx, ecx
mov r14, 100003A00h
bt r14, rcx
jnb short loc_16F709
loc_16F6B4:
mov rdi, rbx; this
call _ZN6google8protobuf2io9Tokenizer8NextCharEv; google::protobuf::io::Tokenizer::NextChar(void)
movzx eax, byte ptr [rbx+80h]
cmp rax, 20h ; ' '
ja short loc_16F6CF
bt r14, rax
jb short loc_16F6B4
loc_16F6CF:
mov dword ptr [rbx], 7
mov al, 1
jmp short loc_16F709
loc_16F6D9:
lea eax, [rcx-9]
cmp eax, 5
jnb short loc_16F711
loc_16F6E1:
mov rdi, rbx; this
call _ZN6google8protobuf2io9Tokenizer8NextCharEv; google::protobuf::io::Tokenizer::NextChar(void)
movzx eax, byte ptr [rbx+80h]
lea ecx, [rax-9]
cmp ecx, 5
jb short loc_16F6E1
cmp eax, 20h ; ' '
jz short loc_16F6E1
mov dword ptr [rbx], 7
mov al, [rbx+0BEh]
loc_16F709:
add rsp, 8
pop rbx
pop r14
retn
loc_16F711:
cmp ecx, 20h ; ' '
jz short loc_16F6E1
xor eax, eax
jmp short loc_16F709
| char google::protobuf::io::Tokenizer::TryConsumeWhitespace(google::protobuf::io::Tokenizer *this)
{
unsigned int v1; // ecx
char result; // al
long long v3; // r14
unsigned long long v4; // rax
int v5; // eax
v1 = *((unsigned __int8 *)this + 128);
if ( *((_BYTE *)this + 191) == 1 )
{
result = 0;
if ( v1 <= 0x20 )
{
v3 = 0x100003A00LL;
if ( _bittest64(&v3, *((unsigned __int8 *)this + 128)) )
{
do
{
google::protobuf::io::Tokenizer::NextChar(this);
v4 = *((unsigned __int8 *)this + 128);
}
while ( v4 <= 0x20 && _bittest64(&v3, v4) );
*(_DWORD *)this = 7;
return 1;
}
}
}
else if ( v1 - 9 < 5 || v1 == 32 )
{
do
{
do
{
google::protobuf::io::Tokenizer::NextChar(this);
v5 = *((unsigned __int8 *)this + 128);
}
while ( (unsigned int)(v5 - 9) < 5 );
}
while ( v5 == 32 );
*(_DWORD *)this = 7;
return *((_BYTE *)this + 190);
}
else
{
return 0;
}
return result;
}
| |||
45,789 | write_hook_for_undo_key_insert | eloqsql/storage/maria/ma_key_recover.c | my_bool write_hook_for_undo_key_insert(enum translog_record_type type,
TRN *trn, MARIA_HA *tbl_info,
LSN *lsn, void *hook_arg)
{
struct st_msg_to_write_hook_for_undo_key *msg=
(struct st_msg_to_write_hook_for_undo_key *) hook_arg;
MARIA_SHARE *share= tbl_info->s;
if (msg->auto_increment > 0)
{
/*
Only reason to set it here is to have a mutex protect from checkpoint
reading at the same time (would see a corrupted value).
The purpose of the following code is to set auto_increment if the row
has a with auto_increment value higher than the current one. We also
want to be able to restore the old value, in case of rollback,
if no one else has tried to set the value.
The logic used is that we only restore the auto_increment value if
tbl_info->last_auto_increment == share->last_auto_increment
when it's time to do the rollback.
*/
DBUG_PRINT("info",("auto_inc: %lu new auto_inc: %lu",
(ulong)share->state.auto_increment,
(ulong)msg->auto_increment));
if (share->state.auto_increment < msg->auto_increment)
{
/* Remember the original value, in case of rollback */
tbl_info->last_auto_increment= share->last_auto_increment=
share->state.auto_increment;
share->state.auto_increment= msg->auto_increment;
}
else
{
/*
If the current value would have affected the original auto_increment
value, set it to an impossible value so that it's not restored on
rollback
*/
if (msg->auto_increment > share->last_auto_increment)
share->last_auto_increment= ~(ulonglong) 0;
}
}
return write_hook_for_undo_key(type, trn, tbl_info, lsn, hook_arg);
} | O0 | c | write_hook_for_undo_key_insert:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
cmpq $0x0, 0x18(%rax)
jbe 0x70690
jmp 0x7061b
jmp 0x7061d
movq -0x38(%rbp), %rax
movq 0xd8(%rax), %rax
movq -0x30(%rbp), %rcx
cmpq 0x18(%rcx), %rax
jae 0x70668
movq -0x38(%rbp), %rax
movq 0xd8(%rax), %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x610(%rax)
movq -0x18(%rbp), %rax
movq %rcx, 0x3e8(%rax)
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0xd8(%rax)
jmp 0x7068e
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x38(%rbp), %rcx
cmpq 0x610(%rcx), %rax
jbe 0x7068c
movq -0x38(%rbp), %rax
movq $-0x1, 0x610(%rax)
jmp 0x7068e
jmp 0x70690
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %r8
callq 0x70550
addq $0x40, %rsp
popq %rbp
retq
nop
| write_hook_for_undo_key_insert:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov rax, [rbp+var_28]
mov [rbp+var_30], rax
mov rax, [rbp+var_18]
mov rax, [rax]
mov [rbp+var_38], rax
mov rax, [rbp+var_30]
cmp qword ptr [rax+18h], 0
jbe short loc_70690
jmp short $+2
loc_7061B:
jmp short $+2
loc_7061D:
mov rax, [rbp+var_38]
mov rax, [rax+0D8h]
mov rcx, [rbp+var_30]
cmp rax, [rcx+18h]
jnb short loc_70668
mov rax, [rbp+var_38]
mov rcx, [rax+0D8h]
mov rax, [rbp+var_38]
mov [rax+610h], rcx
mov rax, [rbp+var_18]
mov [rax+3E8h], rcx
mov rax, [rbp+var_30]
mov rcx, [rax+18h]
mov rax, [rbp+var_38]
mov [rax+0D8h], rcx
jmp short loc_7068E
loc_70668:
mov rax, [rbp+var_30]
mov rax, [rax+18h]
mov rcx, [rbp+var_38]
cmp rax, [rcx+610h]
jbe short loc_7068C
mov rax, [rbp+var_38]
mov qword ptr [rax+610h], 0FFFFFFFFFFFFFFFFh
loc_7068C:
jmp short $+2
loc_7068E:
jmp short $+2
loc_70690:
mov edi, [rbp+var_4]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
mov r8, [rbp+var_28]
call write_hook_for_undo_key
add rsp, 40h
pop rbp
retn
| long long write_hook_for_undo_key_insert(unsigned int a1, long long a2, long long *a3, long long a4, long long a5)
{
long long v5; // rcx
long long v7; // [rsp+8h] [rbp-38h]
v7 = *a3;
if ( *(_QWORD *)(a5 + 24) )
{
if ( *(_QWORD *)(v7 + 216) >= *(_QWORD *)(a5 + 24) )
{
if ( *(_QWORD *)(a5 + 24) > *(_QWORD *)(v7 + 1552) )
*(_QWORD *)(v7 + 1552) = -1LL;
}
else
{
v5 = *(_QWORD *)(v7 + 216);
*(_QWORD *)(v7 + 1552) = v5;
a3[125] = v5;
*(_QWORD *)(v7 + 216) = *(_QWORD *)(a5 + 24);
}
}
return write_hook_for_undo_key(a1, a2, (long long)a3, a4, a5);
}
| write_hook_for_undo_key_insert:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x30]
CMP qword ptr [RAX + 0x18],0x0
JBE 0x00170690
JMP 0x0017061b
LAB_0017061b:
JMP 0x0017061d
LAB_0017061d:
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0xd8]
MOV RCX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RCX + 0x18]
JNC 0x00170668
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RAX + 0xd8]
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX + 0x610],RCX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x3e8],RCX
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX + 0xd8],RCX
JMP 0x0017068e
LAB_00170668:
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX + 0x18]
MOV RCX,qword ptr [RBP + -0x38]
CMP RAX,qword ptr [RCX + 0x610]
JBE 0x0017068c
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX + 0x610],-0x1
LAB_0017068c:
JMP 0x0017068e
LAB_0017068e:
JMP 0x00170690
LAB_00170690:
MOV EDI,dword ptr [RBP + -0x4]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
MOV R8,qword ptr [RBP + -0x28]
CALL 0x00170550
ADD RSP,0x40
POP RBP
RET
|
void write_hook_for_undo_key_insert
(int4 param_1,int8 param_2,long *param_3,int8 param_4,long param_5)
{
long lVar1;
lVar1 = *param_3;
if (*(long *)(param_5 + 0x18) != 0) {
if (*(ulong *)(lVar1 + 0xd8) < *(ulong *)(param_5 + 0x18)) {
*(long *)(lVar1 + 0x610) = *(long *)(lVar1 + 0xd8);
param_3[0x7d] = *(long *)(lVar1 + 0xd8);
*(int8 *)(lVar1 + 0xd8) = *(int8 *)(param_5 + 0x18);
}
else if (*(ulong *)(lVar1 + 0x610) < *(ulong *)(param_5 + 0x18)) {
*(int8 *)(lVar1 + 0x610) = 0xffffffffffffffff;
}
}
write_hook_for_undo_key(param_1,param_2,param_3,param_4,param_5);
return;
}
| |
45,790 | my_sync_dir_by_file | eloqsql/mysys/my_sync.c | int my_sync_dir_by_file(const char *file_name __attribute__((unused)),
myf my_flags __attribute__((unused)))
{
#ifdef NEED_EXPLICIT_SYNC_DIR
char dir_name[FN_REFLEN];
size_t dir_name_length;
dirname_part(dir_name, file_name, &dir_name_length);
return my_sync_dir(dir_name, my_flags & ~MY_NOSYMLINKS);
#else
return 0;
#endif
} | O0 | c | my_sync_dir_by_file:
pushq %rbp
movq %rsp, %rbp
subq $0x240, %rsp # imm = 0x240
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x218(%rbp)
movq %rsi, -0x220(%rbp)
movq -0x218(%rbp), %rsi
leaq -0x210(%rbp), %rdi
movq %rdi, -0x238(%rbp)
leaq -0x228(%rbp), %rdx
callq 0xdf3b0
movq -0x238(%rbp), %rdi
movq -0x220(%rbp), %rax
andl $0xfffffdff, %eax # imm = 0xFFFFFDFF
movl %eax, %esi
callq 0xf5c40
movl %eax, -0x22c(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xf5d78
movl -0x22c(%rbp), %eax
addq $0x240, %rsp # imm = 0x240
popq %rbp
retq
callq 0x2a250
nopl (%rax)
| my_sync_dir_by_file:
push rbp
mov rbp, rsp
sub rsp, 240h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_218], rdi
mov [rbp+var_220], rsi
mov rsi, [rbp+var_218]
lea rdi, [rbp+var_210]
mov [rbp+var_238], rdi
lea rdx, [rbp+var_228]
call dirname_part
mov rdi, [rbp+var_238]
mov rax, [rbp+var_220]
and eax, 0FFFFFDFFh
mov esi, eax
call my_sync_dir
mov [rbp+var_22C], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_F5D78
mov eax, [rbp+var_22C]
add rsp, 240h
pop rbp
retn
loc_F5D78:
call ___stack_chk_fail
| long long my_sync_dir_by_file(_BYTE *a1, long long a2)
{
long long v3; // [rsp+18h] [rbp-228h] BYREF
long long v4; // [rsp+20h] [rbp-220h]
_BYTE *v5; // [rsp+28h] [rbp-218h]
_BYTE v6[520]; // [rsp+30h] [rbp-210h] BYREF
unsigned long long v7; // [rsp+238h] [rbp-8h]
v7 = __readfsqword(0x28u);
v5 = a1;
v4 = a2;
dirname_part((long long)v6, a1, &v3);
return (unsigned int)my_sync_dir(v6, (unsigned int)v4 & 0xFFFFFDFF);
}
| my_sync_dir_by_file:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x240
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x218],RDI
MOV qword ptr [RBP + -0x220],RSI
MOV RSI,qword ptr [RBP + -0x218]
LEA RDI,[RBP + -0x210]
MOV qword ptr [RBP + -0x238],RDI
LEA RDX,[RBP + -0x228]
CALL 0x001df3b0
MOV RDI,qword ptr [RBP + -0x238]
MOV RAX,qword ptr [RBP + -0x220]
AND EAX,0xfffffdff
MOV ESI,EAX
CALL 0x001f5c40
MOV dword ptr [RBP + -0x22c],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001f5d78
MOV EAX,dword ptr [RBP + -0x22c]
ADD RSP,0x240
POP RBP
RET
LAB_001f5d78:
CALL 0x0012a250
|
int4 my_sync_dir_by_file(int8 param_1,int8 param_2)
{
int4 uVar1;
long in_FS_OFFSET;
int1 local_230 [8];
int8 local_228;
int8 local_220;
int1 local_218 [520];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_228 = param_2;
local_220 = param_1;
dirname_part(local_218,param_1,local_230);
uVar1 = my_sync_dir(local_218,(uint)local_228 & 0xfffffdff);
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return uVar1;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
45,791 | minja::Context::make(minja::Value&&, std::shared_ptr<minja::Context> const&) | monkey531[P]llama/common/minja.hpp | inline std::shared_ptr<Context> Context::make(Value && values, const std::shared_ptr<Context> & parent) {
return std::make_shared<Context>(values.is_null() ? Value::object() : std::move(values), parent);
} | O1 | cpp | minja::Context::make(minja::Value&&, std::shared_ptr<minja::Context> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq 0x10(%rsi), %rdx
movq 0x20(%rsi), %rax
movq %rax, %rcx
orq %rdx, %rcx
sete %cl
cmpb $0x0, 0x40(%rsi)
movq %rdi, %rbx
sete %sil
andb %cl, %sil
movq 0x30(%r15), %rcx
testq %rcx, %rcx
sete %bpl
andb %sil, %bpl
cmpb $0x1, %bpl
jne 0x9bc64
xorl %r12d, %r12d
leaq 0x10(%rsp), %r15
movq %r12, (%r15)
movl $0x30, %edi
callq 0x1a870
movabsq $0x100000001, %rcx # imm = 0x100000001
movq %rcx, 0x8(%rax)
leaq 0x8e803(%rip), %rcx # 0x12a438
addq $0x10, %rcx
movq %rcx, (%rax)
leaq 0x10(%rax), %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq %r12, 0x20(%rax)
movq %rax, 0x8(%r15)
movq %rcx, (%r15)
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
callq 0x8e532
jmp 0x9bcef
leaq 0x40(%r15), %rdi
xorps %xmm0, %xmm0
leaq 0x60(%rsp), %r12
movaps %xmm0, -0x40(%r12)
movq %rdx, -0x30(%r12)
xorl %r13d, %r13d
movq %r13, -0x28(%r12)
movq 0x18(%r15), %rdx
movq %r13, 0x18(%r15)
movq %rdx, -0x28(%r12)
movq %r13, 0x10(%r15)
movq %rax, -0x20(%r12)
movq %r13, -0x18(%r12)
movq 0x28(%r15), %rax
movq %r13, 0x28(%r15)
movq %rax, -0x18(%r12)
movq %r13, 0x20(%r15)
movq %rcx, -0x10(%r12)
movq %r13, -0x8(%r12)
movq 0x38(%r15), %rax
movq %r13, 0x38(%r15)
movq %rax, -0x8(%r12)
movq %r13, 0x30(%r15)
movups (%rdi), %xmm0
movaps %xmm0, (%r12)
xorl %esi, %esi
callq 0x56f38
movb $0x0, 0x40(%r15)
movq %r13, 0x48(%r15)
movq %r12, %rdi
movl $0x1, %esi
callq 0x56f38
movq $0x0, (%rbx)
leaq 0x8(%rbx), %rdi
leaq 0xf(%rsp), %rdx
leaq 0x20(%rsp), %rcx
movq %rbx, %rsi
movq %r14, %r8
callq 0x9c05e
movq (%rbx), %rsi
movq %rbx, %rdi
callq 0x9c0e0
leaq 0x60(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x56f38
movq %r14, %rdi
callq 0x5c724
movq -0x8(%r14), %rdi
testq %rdi, %rdi
je 0x9bd3f
callq 0x6c090
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x9bd4e
callq 0x6c090
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x9bd5d
callq 0x6c090
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x9bd93
movq 0x90212(%rip), %rax # 0x12bf80
cmpb $0x0, (%rax)
je 0x9bd7e
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x9bd88
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x9bd93
movq (%rdi), %rax
callq *0x18(%rax)
testb %bpl, %bpl
je 0x9bda7
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x9bda7
callq 0x6c090
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x858b4
testb %bpl, %bpl
je 0x9bdda
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x9bdda
callq 0x6c090
movq %rbx, %rdi
callq 0x1af20
| _ZN5minja7Context4makeEONS_5ValueERKSt10shared_ptrIS0_E:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov r14, rdx
mov r15, rsi
mov rdx, [rsi+10h]
mov rax, [rsi+20h]
mov rcx, rax
or rcx, rdx
setz cl
cmp byte ptr [rsi+40h], 0
mov rbx, rdi
setz sil
and sil, cl
mov rcx, [r15+30h]
test rcx, rcx
setz bpl
and bpl, sil
cmp bpl, 1
jnz short loc_9BC64
xor r12d, r12d
lea r15, [rsp+0A8h+var_98]
mov [r15], r12
mov edi, 30h ; '0'; unsigned __int64
call __Znwm; operator new(ulong)
mov rcx, 100000001h
mov [rax+8], rcx
lea rcx, _ZTVSt23_Sp_counted_ptr_inplaceIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEESaISN_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>,(__gnu_cxx::_Lock_policy)2>
add rcx, 10h
mov [rax], rcx
lea rcx, [rax+10h]
xorps xmm0, xmm0
movups xmmword ptr [rax+10h], xmm0
mov [rax+20h], r12
mov [r15+8], rax
mov [r15], rcx
lea rdi, [rsp+0A8h+var_88]
mov rsi, r15
call _ZN5minja5ValueC2ERKSt10shared_ptrIN8nlohmann16json_abi_v3_11_311ordered_mapINS3_10basic_jsonIS4_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEES0_St4lessISG_ESaISt4pairIKSG_S0_EEEEE; minja::Value::Value(std::shared_ptr<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>> const&)
jmp loc_9BCEF
loc_9BC64:
lea rdi, [r15+40h]
xorps xmm0, xmm0
lea r12, [rsp+0A8h+var_48]
movaps xmmword ptr [r12-40h], xmm0
mov [r12-30h], rdx
xor r13d, r13d
mov [r12-28h], r13
mov rdx, [r15+18h]
mov [r15+18h], r13
mov [r12-28h], rdx
mov [r15+10h], r13
mov [r12-20h], rax
mov [r12-18h], r13
mov rax, [r15+28h]
mov [r15+28h], r13
mov [r12-18h], rax
mov [r15+20h], r13
mov [r12-10h], rcx
mov [r12-8], r13
mov rax, [r15+38h]
mov [r15+38h], r13
mov [r12-8], rax
mov [r15+30h], r13
movups xmm0, xmmword ptr [rdi]
movaps xmmword ptr [r12], xmm0
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov byte ptr [r15+40h], 0
mov [r15+48h], r13
mov rdi, r12
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
loc_9BCEF:
mov qword ptr [rbx], 0
lea rdi, [rbx+8]
lea rdx, [rsp+0A8h+var_99]
lea rcx, [rsp+0A8h+var_88]
mov rsi, rbx
mov r8, r14
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEC2IN5minja7ContextESaIS5_EJNS4_5ValueERKSt10shared_ptrIS5_EEEERPT_St20_Sp_alloc_shared_tagIT0_EDpOT1_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<minja::Context,std::allocator<minja::Context>,minja::Value,std::shared_ptr<minja::Context> const&>(minja::Context *&,std::_Sp_alloc_shared_tag<std::allocator<minja::Context>>,minja::Value,std::shared_ptr<minja::Context> const&)
mov rsi, [rbx]
mov rdi, rbx
call _ZNSt12__shared_ptrIN5minja7ContextELN9__gnu_cxx12_Lock_policyE2EE31_M_enable_shared_from_this_withIS1_S1_EENSt9enable_ifIXsr15__has_esft_baseIT0_EE5valueEvE4typeEPT_
lea r14, [rsp+0A8h+var_48]
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [r14-8]
test rdi, rdi
jz short loc_9BD3F
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9BD3F:
mov rdi, [rsp+0A8h+var_60]
test rdi, rdi
jz short loc_9BD4E
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9BD4E:
mov rdi, [rsp+0A8h+var_70]
test rdi, rdi
jz short loc_9BD5D
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9BD5D:
mov rdi, [rsp+0A8h+var_80]
test rdi, rdi
jz short loc_9BD93
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_9BD7E
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_9BD88
loc_9BD7E:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_9BD88:
cmp eax, 1
jnz short loc_9BD93
mov rax, [rdi]
call qword ptr [rax+18h]
loc_9BD93:
test bpl, bpl
jz short loc_9BDA7
mov rdi, [rsp+0A8h+var_90]
test rdi, rdi
jz short loc_9BDA7
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9BDA7:
mov rax, rbx
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_18]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
test bpl, bpl
jz short loc_9BDDA
mov rdi, [rsp+arg_10]
test rdi, rdi
jz short loc_9BDDA
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9BDDA:
mov rdi, rbx
call __Unwind_Resume
| _QWORD * minja::Context::make(_QWORD *a1, long long a2, long long a3)
{
__int128 v4; // rax
long long v6; // rcx
bool v7; // bp
long long v8; // rax
volatile signed __int32 *v9; // rax
volatile signed __int32 *v10; // rax
long long v11; // rdi
signed __int32 v12; // eax
char v14; // [rsp+Fh] [rbp-99h] BYREF
long long v15; // [rsp+10h] [rbp-98h] BYREF
volatile signed __int32 *v16; // [rsp+18h] [rbp-90h]
__int128 v17; // [rsp+20h] [rbp-88h] BYREF
long long v18; // [rsp+30h] [rbp-78h]
volatile signed __int32 *v19; // [rsp+38h] [rbp-70h]
long long v20; // [rsp+40h] [rbp-68h]
volatile signed __int32 *v21; // [rsp+48h] [rbp-60h]
long long v22; // [rsp+50h] [rbp-58h]
volatile signed __int32 *v23; // [rsp+58h] [rbp-50h]
_OWORD v24[4]; // [rsp+60h] [rbp-48h] BYREF
*((_QWORD *)&v4 + 1) = *(_QWORD *)(a2 + 16);
*(_QWORD *)&v4 = *(_QWORD *)(a2 + 32);
v6 = *(_QWORD *)(a2 + 48);
v7 = v4 == 0 && *(_BYTE *)(a2 + 64) == 0 && v6 == 0;
if ( v7 )
{
v15 = 0LL;
v8 = operator new(0x30uLL);
*(_QWORD *)(v8 + 8) = 0x100000001LL;
*(_QWORD *)v8 = &`vtable for'std::_Sp_counted_ptr_inplace<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>,std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>>,(__gnu_cxx::_Lock_policy)2>
+ 2;
*(_OWORD *)(v8 + 16) = 0LL;
*(_QWORD *)(v8 + 32) = 0LL;
v16 = (volatile signed __int32 *)v8;
v15 = v8 + 16;
minja::Value::Value((long long)&v17, &v15);
}
else
{
v17 = 0LL;
v18 = *((_QWORD *)&v4 + 1);
v19 = 0LL;
*((_QWORD *)&v4 + 1) = *(_QWORD *)(a2 + 24);
*(_QWORD *)(a2 + 24) = 0LL;
v19 = (volatile signed __int32 *)*((_QWORD *)&v4 + 1);
*(_QWORD *)(a2 + 16) = 0LL;
v20 = v4;
v21 = 0LL;
v9 = *(volatile signed __int32 **)(a2 + 40);
*(_QWORD *)(a2 + 40) = 0LL;
v21 = v9;
*(_QWORD *)(a2 + 32) = 0LL;
v22 = v6;
v23 = 0LL;
v10 = *(volatile signed __int32 **)(a2 + 56);
*(_QWORD *)(a2 + 56) = 0LL;
v23 = v10;
*(_QWORD *)(a2 + 48) = 0LL;
v24[0] = *(_OWORD *)(a2 + 64);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)(a2 + 64));
*(_BYTE *)(a2 + 64) = 0;
*(_QWORD *)(a2 + 72) = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v24);
}
*a1 = 0LL;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<minja::Context,std::allocator<minja::Context>,minja::Value,std::shared_ptr<minja::Context> const&>(
a1 + 1,
a1,
&v14,
&v17,
a3);
std::__shared_ptr<minja::Context,(__gnu_cxx::_Lock_policy)2>::_M_enable_shared_from_this_with<minja::Context,minja::Context>(
a1,
*a1);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v24);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v24);
if ( v23 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v23);
if ( v21 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v21);
if ( v19 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v19);
v11 = *((_QWORD *)&v17 + 1);
if ( *((_QWORD *)&v17 + 1) )
{
if ( _libc_single_threaded )
{
v12 = *(_DWORD *)(*((_QWORD *)&v17 + 1) + 12LL);
*(_DWORD *)(*((_QWORD *)&v17 + 1) + 12LL) = v12 - 1;
}
else
{
v12 = _InterlockedExchangeAdd((volatile signed __int32 *)(*((_QWORD *)&v17 + 1) + 12LL), 0xFFFFFFFF);
}
if ( v12 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v11 + 24LL))(v11, 0LL);
}
if ( v7 && v16 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v16);
return a1;
}
| make:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV R14,RDX
MOV R15,RSI
MOV RDX,qword ptr [RSI + 0x10]
MOV RAX,qword ptr [RSI + 0x20]
MOV RCX,RAX
OR RCX,RDX
SETZ CL
CMP byte ptr [RSI + 0x40],0x0
MOV RBX,RDI
SETZ SIL
AND SIL,CL
MOV RCX,qword ptr [R15 + 0x30]
TEST RCX,RCX
SETZ BPL
AND BPL,SIL
CMP BPL,0x1
JNZ 0x0019bc64
XOR R12D,R12D
LEA R15,[RSP + 0x10]
MOV qword ptr [R15],R12
MOV EDI,0x30
CALL 0x0011a870
MOV RCX,0x100000001
MOV qword ptr [RAX + 0x8],RCX
LEA RCX,[0x22a438]
ADD RCX,0x10
MOV qword ptr [RAX],RCX
LEA RCX,[RAX + 0x10]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX + 0x10],XMM0
MOV qword ptr [RAX + 0x20],R12
MOV qword ptr [R15 + 0x8],RAX
MOV qword ptr [R15],RCX
LEA RDI,[RSP + 0x20]
MOV RSI,R15
CALL 0x0018e532
JMP 0x0019bcef
LAB_0019bc64:
LEA RDI,[R15 + 0x40]
XORPS XMM0,XMM0
LEA R12,[RSP + 0x60]
MOVAPS xmmword ptr [R12 + -0x40],XMM0
MOV qword ptr [R12 + -0x30],RDX
XOR R13D,R13D
MOV qword ptr [R12 + -0x28],R13
MOV RDX,qword ptr [R15 + 0x18]
MOV qword ptr [R15 + 0x18],R13
MOV qword ptr [R12 + -0x28],RDX
MOV qword ptr [R15 + 0x10],R13
MOV qword ptr [R12 + -0x20],RAX
MOV qword ptr [R12 + -0x18],R13
MOV RAX,qword ptr [R15 + 0x28]
MOV qword ptr [R15 + 0x28],R13
MOV qword ptr [R12 + -0x18],RAX
MOV qword ptr [R15 + 0x20],R13
MOV qword ptr [R12 + -0x10],RCX
MOV qword ptr [R12 + -0x8],R13
MOV RAX,qword ptr [R15 + 0x38]
MOV qword ptr [R15 + 0x38],R13
MOV qword ptr [R12 + -0x8],RAX
MOV qword ptr [R15 + 0x30],R13
MOVUPS XMM0,xmmword ptr [RDI]
MOVAPS xmmword ptr [R12],XMM0
XOR ESI,ESI
CALL 0x00156f38
MOV byte ptr [R15 + 0x40],0x0
MOV qword ptr [R15 + 0x48],R13
MOV RDI,R12
MOV ESI,0x1
CALL 0x00156f38
LAB_0019bcef:
MOV qword ptr [RBX],0x0
LEA RDI,[RBX + 0x8]
LAB_0019bcfa:
LEA RDX,[RSP + 0xf]
LEA RCX,[RSP + 0x20]
MOV RSI,RBX
MOV R8,R14
CALL 0x0019c05e
LAB_0019bd0f:
MOV RSI,qword ptr [RBX]
MOV RDI,RBX
CALL 0x0019c0e0
LEA R14,[RSP + 0x60]
MOV RDI,R14
XOR ESI,ESI
CALL 0x00156f38
MOV RDI,R14
CALL 0x0015c724
MOV RDI,qword ptr [R14 + -0x8]
TEST RDI,RDI
JZ 0x0019bd3f
CALL 0x0016c090
LAB_0019bd3f:
MOV RDI,qword ptr [RSP + 0x48]
TEST RDI,RDI
JZ 0x0019bd4e
CALL 0x0016c090
LAB_0019bd4e:
MOV RDI,qword ptr [RSP + 0x38]
TEST RDI,RDI
JZ 0x0019bd5d
CALL 0x0016c090
LAB_0019bd5d:
MOV RDI,qword ptr [RSP + 0x28]
TEST RDI,RDI
JZ 0x0019bd93
MOV RAX,qword ptr [0x0022bf80]
CMP byte ptr [RAX],0x0
JZ 0x0019bd7e
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x0019bd88
LAB_0019bd7e:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_0019bd88:
CMP EAX,0x1
JNZ 0x0019bd93
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_0019bd93:
TEST BPL,BPL
JZ 0x0019bda7
MOV RDI,qword ptr [RSP + 0x18]
TEST RDI,RDI
JZ 0x0019bda7
CALL 0x0016c090
LAB_0019bda7:
MOV RAX,RBX
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* minja::Context::make(minja::Value&&, std::shared_ptr<minja::Context> const&) */
Context * __thiscall minja::Context::make(Context *this,Value *param_1,shared_ptr *param_2)
{
int *piVar1;
Value VVar2;
long lVar3;
long lVar4;
long lVar5;
int iVar6;
int1 local_99;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_98;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_90;
int8 local_88;
long *plStack_80;
long local_78;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_70;
long local_68;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_60;
long local_58;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_50;
int8 local_48;
int8 uStack_40;
lVar3 = *(long *)(param_1 + 0x10);
lVar4 = *(long *)(param_1 + 0x20);
VVar2 = param_1[0x40];
lVar5 = *(long *)(param_1 + 0x30);
if (lVar5 != 0 || (VVar2 != (Value)0x0 || (lVar4 != 0 || lVar3 != 0))) {
local_88 = 0;
plStack_80 = (long *)0x0;
local_70 = *(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(param_1 + 0x18);
*(int8 *)(param_1 + 0x18) = 0;
*(int8 *)(param_1 + 0x10) = 0;
local_60 = *(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(param_1 + 0x28);
*(int8 *)(param_1 + 0x28) = 0;
*(int8 *)(param_1 + 0x20) = 0;
local_50 = *(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(param_1 + 0x38);
*(int8 *)(param_1 + 0x38) = 0;
*(int8 *)(param_1 + 0x30) = 0;
local_48 = *(int8 *)(param_1 + 0x40);
uStack_40 = *(int8 *)(param_1 + 0x48);
local_78 = lVar3;
local_68 = lVar4;
local_58 = lVar5;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(param_1 + 0x40,0));
param_1[0x40] = (Value)0x0;
*(int8 *)(param_1 + 0x48) = 0;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(&local_48,0));
}
else {
local_98 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
local_90 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)operator_new(0x30);
*(int8 *)(local_90 + 8) = 0x100000001;
*(int ***)local_90 = &PTR___Sp_counted_ptr_inplace_0022a448;
local_98 = local_90 + 0x10;
*(int8 *)(local_90 + 0x10) = 0;
*(int8 *)(local_90 + 0x18) = 0;
*(int8 *)(local_90 + 0x20) = 0;
Value::Value((Value *)&local_88,(shared_ptr *)&local_98);
}
*(int8 *)this = 0;
/* try { // try from 0019bcfa to 0019bd0e has its CatchHandler @ 0019bdb9 */
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::
__shared_count<minja::Context,std::allocator<minja::Context>,minja::Value,std::shared_ptr<minja::Context>const&>
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(this + 8),this,&local_99,&local_88,
param_2);
std::__shared_ptr<minja::Context,(__gnu_cxx::_Lock_policy)2>::
_M_enable_shared_from_this_with<minja::Context,minja::Context>
((__shared_ptr<minja::Context,(__gnu_cxx::_Lock_policy)2> *)this,*(Context **)this);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81((data *)&local_48,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)&local_48);
if (local_50 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_50);
}
if (local_60 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_60);
}
if (local_70 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_70);
}
if (plStack_80 != (long *)0x0) {
if (*PTR___libc_single_threaded_0022bf80 == '\0') {
LOCK();
piVar1 = (int *)((long)plStack_80 + 0xc);
iVar6 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar6 = *(int *)((long)plStack_80 + 0xc);
*(int *)((long)plStack_80 + 0xc) = iVar6 + -1;
}
if (iVar6 == 1) {
(**(code **)(*plStack_80 + 0x18))();
}
}
if ((lVar5 == 0 && (VVar2 == (Value)0x0 && (lVar4 == 0 && lVar3 == 0))) &&
(local_90 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0)) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_90);
}
return this;
}
| |
45,792 | google::protobuf::compiler::java::GetExperimentalJavaFieldType(google::protobuf::FieldDescriptor const*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/java/helpers.cc | int GetExperimentalJavaFieldType(const FieldDescriptor* field) {
static const int kMapFieldType = 50;
static const int kOneofFieldTypeOffset = 51;
static const int kRequiredBit = 0x100;
static const int kUtf8CheckBit = 0x200;
static const int kCheckInitialized = 0x400;
static const int kMapWithProto2EnumValue = 0x800;
static const int kHasHasBit = 0x1000;
int extra_bits = field->is_required() ? kRequiredBit : 0;
if (field->type() == FieldDescriptor::TYPE_STRING && CheckUtf8(field)) {
extra_bits |= kUtf8CheckBit;
}
if (field->is_required() || (GetJavaType(field) == JAVATYPE_MESSAGE &&
HasRequiredFields(field->message_type()))) {
extra_bits |= kCheckInitialized;
}
if (HasHasbit(field)) {
extra_bits |= kHasHasBit;
}
if (field->is_map()) {
if (!SupportUnknownEnumValue(field)) {
const FieldDescriptor* value = field->message_type()->map_value();
if (GetJavaType(value) == JAVATYPE_ENUM) {
extra_bits |= kMapWithProto2EnumValue;
}
}
return kMapFieldType | extra_bits;
} else if (field->is_packed()) {
return GetExperimentalJavaFieldTypeForPacked(field);
} else if (field->is_repeated()) {
return GetExperimentalJavaFieldTypeForRepeated(field) | extra_bits;
} else if (IsRealOneof(field)) {
return (GetExperimentalJavaFieldTypeForSingular(field) +
kOneofFieldTypeOffset) |
extra_bits;
} else {
return GetExperimentalJavaFieldTypeForSingular(field) | extra_bits;
}
} | O0 | cpp | google::protobuf::compiler::java::GetExperimentalJavaFieldType(google::protobuf::FieldDescriptor const*):
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq 0x18(%rsp), %rdi
callq 0x58d80
movb %al, %dl
xorl %eax, %eax
movl $0x100, %ecx # imm = 0x100
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, 0x14(%rsp)
movq 0x18(%rsp), %rdi
callq 0x3d920
cmpl $0x9, %eax
jne 0x77872
movq 0x18(%rsp), %rdi
callq 0x78030
testb $0x1, %al
jne 0x77865
jmp 0x77872
movl 0x14(%rsp), %eax
orl $0x200, %eax # imm = 0x200
movl %eax, 0x14(%rsp)
movq 0x18(%rsp), %rdi
callq 0x58d80
testb $0x1, %al
jne 0x778a7
movq 0x18(%rsp), %rdi
callq 0x74730
cmpl $0x8, %eax
jne 0x778b4
movq 0x18(%rsp), %rdi
callq 0x24cfc0
movq %rax, %rdi
callq 0x77520
testb $0x1, %al
jne 0x778a7
jmp 0x778b4
movl 0x14(%rsp), %eax
orl $0x400, %eax # imm = 0x400
movl %eax, 0x14(%rsp)
movq 0x18(%rsp), %rdi
callq 0x78090
testb $0x1, %al
jne 0x778c4
jmp 0x778d1
movl 0x14(%rsp), %eax
orl $0x1000, %eax # imm = 0x1000
movl %eax, 0x14(%rsp)
movq 0x18(%rsp), %rdi
callq 0x58da0
testb $0x1, %al
jne 0x778e1
jmp 0x77931
movq 0x18(%rsp), %rdi
callq 0x780f0
testb $0x1, %al
jne 0x77924
movq 0x18(%rsp), %rdi
callq 0x24cfc0
movq %rax, %rdi
callq 0x24d9e0
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rdi
callq 0x74730
cmpl $0x7, %eax
jne 0x77922
movl 0x14(%rsp), %eax
orl $0x800, %eax # imm = 0x800
movl %eax, 0x14(%rsp)
jmp 0x77924
movl 0x14(%rsp), %eax
orl $0x32, %eax
movl %eax, 0x24(%rsp)
jmp 0x779ae
movq 0x18(%rsp), %rdi
callq 0x2583f0
testb $0x1, %al
jne 0x77941
jmp 0x77951
movq 0x18(%rsp), %rdi
callq 0x77730
movl %eax, 0x24(%rsp)
jmp 0x779ae
movq 0x18(%rsp), %rdi
callq 0x58050
testb $0x1, %al
jne 0x77961
jmp 0x77975
movq 0x18(%rsp), %rdi
callq 0x776f0
orl 0x14(%rsp), %eax
movl %eax, 0x24(%rsp)
jmp 0x779ae
movq 0x18(%rsp), %rdi
callq 0x78110
testb $0x1, %al
jne 0x77985
jmp 0x7799c
movq 0x18(%rsp), %rdi
callq 0x776a0
addl $0x33, %eax
orl 0x14(%rsp), %eax
movl %eax, 0x24(%rsp)
jmp 0x779ae
movq 0x18(%rsp), %rdi
callq 0x776a0
orl 0x14(%rsp), %eax
movl %eax, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopw (%rax,%rax)
| _ZN6google8protobuf8compiler4java28GetExperimentalJavaFieldTypeEPKNS0_15FieldDescriptorE:
sub rsp, 28h
mov [rsp+28h+var_10], rdi
mov rdi, [rsp+28h+var_10]; this
call _ZNK6google8protobuf15FieldDescriptor11is_requiredEv; google::protobuf::FieldDescriptor::is_required(void)
mov dl, al
xor eax, eax
mov ecx, 100h
test dl, 1
cmovnz eax, ecx
mov [rsp+28h+var_14], eax
mov rdi, [rsp+28h+var_10]; this
call _ZNK6google8protobuf15FieldDescriptor4typeEv; google::protobuf::FieldDescriptor::type(void)
cmp eax, 9
jnz short loc_77872
mov rdi, [rsp+28h+var_10]; this
call _ZN6google8protobuf8compiler4java9CheckUtf8EPKNS0_15FieldDescriptorE; google::protobuf::compiler::java::CheckUtf8(google::protobuf::FieldDescriptor const*)
test al, 1
jnz short loc_77865
jmp short loc_77872
loc_77865:
mov eax, [rsp+28h+var_14]
or eax, 200h
mov [rsp+28h+var_14], eax
loc_77872:
mov rdi, [rsp+28h+var_10]; this
call _ZNK6google8protobuf15FieldDescriptor11is_requiredEv; google::protobuf::FieldDescriptor::is_required(void)
test al, 1
jnz short loc_778A7
mov rdi, [rsp+28h+var_10]; this
call _ZN6google8protobuf8compiler4java11GetJavaTypeEPKNS0_15FieldDescriptorE; google::protobuf::compiler::java::GetJavaType(google::protobuf::FieldDescriptor const*)
cmp eax, 8
jnz short loc_778B4
mov rdi, [rsp+28h+var_10]; this
call _ZNK6google8protobuf15FieldDescriptor12message_typeEv; google::protobuf::FieldDescriptor::message_type(void)
mov rdi, rax; this
call _ZN6google8protobuf8compiler4java17HasRequiredFieldsEPKNS0_10DescriptorE; google::protobuf::compiler::java::HasRequiredFields(google::protobuf::Descriptor const*)
test al, 1
jnz short loc_778A7
jmp short loc_778B4
loc_778A7:
mov eax, [rsp+28h+var_14]
or eax, 400h
mov [rsp+28h+var_14], eax
loc_778B4:
mov rdi, [rsp+28h+var_10]; this
call _ZN6google8protobuf8compiler4java9HasHasbitEPKNS0_15FieldDescriptorE; google::protobuf::compiler::java::HasHasbit(google::protobuf::FieldDescriptor const*)
test al, 1
jnz short loc_778C4
jmp short loc_778D1
loc_778C4:
mov eax, [rsp+28h+var_14]
or eax, 1000h
mov [rsp+28h+var_14], eax
loc_778D1:
mov rdi, [rsp+28h+var_10]; this
call _ZNK6google8protobuf15FieldDescriptor6is_mapEv; google::protobuf::FieldDescriptor::is_map(void)
test al, 1
jnz short loc_778E1
jmp short loc_77931
loc_778E1:
mov rdi, [rsp+28h+var_10]; this
call _ZN6google8protobuf8compiler4java23SupportUnknownEnumValueEPKNS0_15FieldDescriptorE; google::protobuf::compiler::java::SupportUnknownEnumValue(google::protobuf::FieldDescriptor const*)
test al, 1
jnz short loc_77924
mov rdi, [rsp+28h+var_10]; this
call _ZNK6google8protobuf15FieldDescriptor12message_typeEv; google::protobuf::FieldDescriptor::message_type(void)
mov rdi, rax; this
call _ZNK6google8protobuf10Descriptor9map_valueEv; google::protobuf::Descriptor::map_value(void)
mov [rsp+28h+var_20], rax
mov rdi, [rsp+28h+var_20]; this
call _ZN6google8protobuf8compiler4java11GetJavaTypeEPKNS0_15FieldDescriptorE; google::protobuf::compiler::java::GetJavaType(google::protobuf::FieldDescriptor const*)
cmp eax, 7
jnz short loc_77922
mov eax, [rsp+28h+var_14]
or eax, 800h
mov [rsp+28h+var_14], eax
loc_77922:
jmp short $+2
loc_77924:
mov eax, [rsp+28h+var_14]
or eax, 32h
mov [rsp+28h+var_4], eax
jmp short loc_779AE
loc_77931:
mov rdi, [rsp+28h+var_10]; this
call _ZNK6google8protobuf15FieldDescriptor9is_packedEv; google::protobuf::FieldDescriptor::is_packed(void)
test al, 1
jnz short loc_77941
jmp short loc_77951
loc_77941:
mov rdi, [rsp+28h+var_10]; this
call _ZN6google8protobuf8compiler4java37GetExperimentalJavaFieldTypeForPackedEPKNS0_15FieldDescriptorE; google::protobuf::compiler::java::GetExperimentalJavaFieldTypeForPacked(google::protobuf::FieldDescriptor const*)
mov [rsp+28h+var_4], eax
jmp short loc_779AE
loc_77951:
mov rdi, [rsp+28h+var_10]; this
call _ZNK6google8protobuf15FieldDescriptor11is_repeatedEv; google::protobuf::FieldDescriptor::is_repeated(void)
test al, 1
jnz short loc_77961
jmp short loc_77975
loc_77961:
mov rdi, [rsp+28h+var_10]; this
call _ZN6google8protobuf8compiler4java39GetExperimentalJavaFieldTypeForRepeatedEPKNS0_15FieldDescriptorE; google::protobuf::compiler::java::GetExperimentalJavaFieldTypeForRepeated(google::protobuf::FieldDescriptor const*)
or eax, [rsp+28h+var_14]
mov [rsp+28h+var_4], eax
jmp short loc_779AE
loc_77975:
mov rdi, [rsp+28h+var_10]; this
call _ZN6google8protobuf8compiler4java11IsRealOneofEPKNS0_15FieldDescriptorE; google::protobuf::compiler::java::IsRealOneof(google::protobuf::FieldDescriptor const*)
test al, 1
jnz short loc_77985
jmp short loc_7799C
loc_77985:
mov rdi, [rsp+28h+var_10]; this
call _ZN6google8protobuf8compiler4java39GetExperimentalJavaFieldTypeForSingularEPKNS0_15FieldDescriptorE; google::protobuf::compiler::java::GetExperimentalJavaFieldTypeForSingular(google::protobuf::FieldDescriptor const*)
add eax, 33h ; '3'
or eax, [rsp+28h+var_14]
mov [rsp+28h+var_4], eax
jmp short loc_779AE
loc_7799C:
mov rdi, [rsp+28h+var_10]; this
call _ZN6google8protobuf8compiler4java39GetExperimentalJavaFieldTypeForSingularEPKNS0_15FieldDescriptorE; google::protobuf::compiler::java::GetExperimentalJavaFieldTypeForSingular(google::protobuf::FieldDescriptor const*)
or eax, [rsp+28h+var_14]
mov [rsp+28h+var_4], eax
loc_779AE:
mov eax, [rsp+28h+var_4]
add rsp, 28h
retn
| long long google::protobuf::compiler::java::GetExperimentalJavaFieldType(
google::protobuf::compiler::java *this,
const google::protobuf::FieldDescriptor *a2)
{
bool is_required; // dl
int v3; // eax
google::protobuf::compiler::java *v4; // rax
google::protobuf::Descriptor *v5; // rax
google::protobuf::compiler::java *v7; // [rsp+8h] [rbp-20h]
int v8; // [rsp+14h] [rbp-14h]
is_required = google::protobuf::FieldDescriptor::is_required(this);
v3 = 0;
if ( is_required )
v3 = 256;
v8 = v3;
if ( (unsigned int)google::protobuf::FieldDescriptor::type(this) == 9
&& (google::protobuf::compiler::java::CheckUtf8(this, a2) & 1) != 0 )
{
v8 |= 0x200u;
}
if ( google::protobuf::FieldDescriptor::is_required(this)
|| (unsigned int)google::protobuf::compiler::java::GetJavaType(this, a2) == 8
&& (v4 = (google::protobuf::compiler::java *)google::protobuf::FieldDescriptor::message_type(this),
(google::protobuf::compiler::java::HasRequiredFields(v4, a2) & 1) != 0) )
{
v8 |= 0x400u;
}
if ( (google::protobuf::compiler::java::HasHasbit(this, a2) & 1) != 0 )
v8 |= 0x1000u;
if ( (google::protobuf::FieldDescriptor::is_map(this) & 1) != 0 )
{
if ( (google::protobuf::compiler::java::SupportUnknownEnumValue(this, a2) & 1) == 0 )
{
v5 = (google::protobuf::Descriptor *)google::protobuf::FieldDescriptor::message_type(this);
v7 = (google::protobuf::compiler::java *)google::protobuf::Descriptor::map_value(v5);
if ( (unsigned int)google::protobuf::compiler::java::GetJavaType(v7, a2) == 7 )
v8 |= 0x800u;
}
return (unsigned int)(v8 | 0x32);
}
else if ( (google::protobuf::FieldDescriptor::is_packed(this) & 1) != 0 )
{
return (unsigned int)google::protobuf::compiler::java::GetExperimentalJavaFieldTypeForPacked(this, a2);
}
else if ( google::protobuf::FieldDescriptor::is_repeated(this) )
{
return (unsigned int)(v8 | google::protobuf::compiler::java::GetExperimentalJavaFieldTypeForRepeated(this, a2));
}
else if ( (google::protobuf::compiler::java::IsRealOneof(this, a2) & 1) != 0 )
{
return (unsigned int)(v8 | (google::protobuf::compiler::java::GetExperimentalJavaFieldTypeForSingular(this, a2) + 51));
}
else
{
return (unsigned int)(v8 | google::protobuf::compiler::java::GetExperimentalJavaFieldTypeForSingular(this, a2));
}
}
| GetExperimentalJavaFieldType:
SUB RSP,0x28
MOV qword ptr [RSP + 0x18],RDI
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x00158d80
MOV DL,AL
XOR EAX,EAX
MOV ECX,0x100
TEST DL,0x1
CMOVNZ EAX,ECX
MOV dword ptr [RSP + 0x14],EAX
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x0013d920
CMP EAX,0x9
JNZ 0x00177872
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x00178030
TEST AL,0x1
JNZ 0x00177865
JMP 0x00177872
LAB_00177865:
MOV EAX,dword ptr [RSP + 0x14]
OR EAX,0x200
MOV dword ptr [RSP + 0x14],EAX
LAB_00177872:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x00158d80
TEST AL,0x1
JNZ 0x001778a7
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x00174730
CMP EAX,0x8
JNZ 0x001778b4
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x0034cfc0
MOV RDI,RAX
CALL 0x00177520
TEST AL,0x1
JNZ 0x001778a7
JMP 0x001778b4
LAB_001778a7:
MOV EAX,dword ptr [RSP + 0x14]
OR EAX,0x400
MOV dword ptr [RSP + 0x14],EAX
LAB_001778b4:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x00178090
TEST AL,0x1
JNZ 0x001778c4
JMP 0x001778d1
LAB_001778c4:
MOV EAX,dword ptr [RSP + 0x14]
OR EAX,0x1000
MOV dword ptr [RSP + 0x14],EAX
LAB_001778d1:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x00158da0
TEST AL,0x1
JNZ 0x001778e1
JMP 0x00177931
LAB_001778e1:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001780f0
TEST AL,0x1
JNZ 0x00177924
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x0034cfc0
MOV RDI,RAX
CALL 0x0034d9e0
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00174730
CMP EAX,0x7
JNZ 0x00177922
MOV EAX,dword ptr [RSP + 0x14]
OR EAX,0x800
MOV dword ptr [RSP + 0x14],EAX
LAB_00177922:
JMP 0x00177924
LAB_00177924:
MOV EAX,dword ptr [RSP + 0x14]
OR EAX,0x32
MOV dword ptr [RSP + 0x24],EAX
JMP 0x001779ae
LAB_00177931:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x003583f0
TEST AL,0x1
JNZ 0x00177941
JMP 0x00177951
LAB_00177941:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x00177730
MOV dword ptr [RSP + 0x24],EAX
JMP 0x001779ae
LAB_00177951:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x00158050
TEST AL,0x1
JNZ 0x00177961
JMP 0x00177975
LAB_00177961:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001776f0
OR EAX,dword ptr [RSP + 0x14]
MOV dword ptr [RSP + 0x24],EAX
JMP 0x001779ae
LAB_00177975:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x00178110
TEST AL,0x1
JNZ 0x00177985
JMP 0x0017799c
LAB_00177985:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001776a0
ADD EAX,0x33
OR EAX,dword ptr [RSP + 0x14]
MOV dword ptr [RSP + 0x24],EAX
JMP 0x001779ae
LAB_0017799c:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001776a0
OR EAX,dword ptr [RSP + 0x14]
MOV dword ptr [RSP + 0x24],EAX
LAB_001779ae:
MOV EAX,dword ptr [RSP + 0x24]
ADD RSP,0x28
RET
|
/* google::protobuf::compiler::java::GetExperimentalJavaFieldType(google::protobuf::FieldDescriptor
const*) */
uint google::protobuf::compiler::java::GetExperimentalJavaFieldType(FieldDescriptor *param_1)
{
uint uVar1;
int iVar2;
ulong uVar3;
Descriptor *pDVar4;
FieldDescriptor *pFVar5;
uint local_14;
uint local_4;
uVar1 = FieldDescriptor::is_required(param_1);
local_14 = 0;
if ((uVar1 & 1) != 0) {
local_14 = 0x100;
}
iVar2 = FieldDescriptor::type(param_1);
if ((iVar2 == 9) && (uVar3 = CheckUtf8(param_1), (uVar3 & 1) != 0)) {
local_14 = local_14 | 0x200;
}
uVar3 = FieldDescriptor::is_required(param_1);
if ((uVar3 & 1) == 0) {
iVar2 = GetJavaType(param_1);
if (iVar2 != 8) goto LAB_001778b4;
pDVar4 = (Descriptor *)FieldDescriptor::message_type(param_1);
uVar3 = HasRequiredFields(pDVar4);
if ((uVar3 & 1) == 0) goto LAB_001778b4;
}
local_14 = local_14 | 0x400;
LAB_001778b4:
uVar3 = HasHasbit(param_1);
if ((uVar3 & 1) != 0) {
local_14 = local_14 | 0x1000;
}
uVar3 = FieldDescriptor::is_map(param_1);
if ((uVar3 & 1) == 0) {
uVar3 = FieldDescriptor::is_packed(param_1);
if ((uVar3 & 1) == 0) {
uVar3 = FieldDescriptor::is_repeated(param_1);
if ((uVar3 & 1) == 0) {
uVar3 = IsRealOneof(param_1);
if ((uVar3 & 1) == 0) {
local_4 = GetExperimentalJavaFieldTypeForSingular(param_1);
local_4 = local_4 | local_14;
}
else {
iVar2 = GetExperimentalJavaFieldTypeForSingular(param_1);
local_4 = iVar2 + 0x33U | local_14;
}
}
else {
local_4 = GetExperimentalJavaFieldTypeForRepeated(param_1);
local_4 = local_4 | local_14;
}
}
else {
local_4 = GetExperimentalJavaFieldTypeForPacked(param_1);
}
}
else {
uVar3 = SupportUnknownEnumValue(param_1);
if ((uVar3 & 1) == 0) {
pDVar4 = (Descriptor *)FieldDescriptor::message_type(param_1);
pFVar5 = (FieldDescriptor *)Descriptor::map_value(pDVar4);
iVar2 = GetJavaType(pFVar5);
if (iVar2 == 7) {
local_14 = local_14 | 0x800;
}
}
local_4 = local_14 | 0x32;
}
return local_4;
}
| |
45,793 | my_longlong10_to_str_8bit | eloqsql/strings/ctype-simple.c | size_t my_longlong10_to_str_8bit(CHARSET_INFO *cs __attribute__((unused)),
char *dst, size_t len, int radix,
longlong val)
{
char buffer[65];
register char *p, *e;
long long_val;
uint sign= 0;
ulonglong uval = (ulonglong)val;
if (radix < 0)
{
if (val < 0)
{
/* Avoid integer overflow in (-val) for LONGLONG_MIN (BUG#31799). */
uval = (ulonglong)0 - uval;
*dst++= '-';
len--;
sign= 1;
}
}
e = p = &buffer[sizeof(buffer)-1];
*p= 0;
if (uval == 0)
{
*--p= '0';
len= 1;
goto cnv;
}
while (uval > (ulonglong) LONG_MAX)
{
ulonglong quo= uval/(uint) 10;
uint rem= (uint) (uval- quo* (uint) 10);
*--p = '0' + rem;
uval= quo;
}
long_val= (long) uval;
while (long_val != 0)
{
long quo= long_val/10;
*--p = (char) ('0' + (long_val - quo*10));
long_val= quo;
}
len= MY_MIN(len, (size_t) (e-p));
cnv:
memcpy(dst, p, len);
return len+sign;
} | O0 | c | my_longlong10_to_str_8bit:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x58(%rbp)
movq %rsi, -0x60(%rbp)
movq %rdx, -0x68(%rbp)
movl %ecx, -0x6c(%rbp)
movq %r8, -0x78(%rbp)
movl $0x0, -0x94(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0xa0(%rbp)
cmpl $0x0, -0x6c(%rbp)
jge 0x44827
cmpq $0x0, -0x78(%rbp)
jge 0x44825
xorl %eax, %eax
subq -0xa0(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x60(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x60(%rbp)
movb $0x2d, (%rax)
movq -0x68(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x68(%rbp)
movl $0x1, -0x94(%rbp)
jmp 0x44827
leaq -0x50(%rbp), %rax
addq $0x40, %rax
movq %rax, -0x80(%rbp)
movq %rax, -0x88(%rbp)
movq -0x80(%rbp), %rax
movb $0x0, (%rax)
cmpq $0x0, -0xa0(%rbp)
jne 0x4486b
movq -0x80(%rbp), %rax
movq %rax, %rcx
addq $-0x1, %rcx
movq %rcx, -0x80(%rbp)
movb $0x30, -0x1(%rax)
movq $0x1, -0x68(%rbp)
jmp 0x4498b
jmp 0x4486d
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
cmpq %rax, -0xa0(%rbp)
jbe 0x448dd
movq -0xa0(%rbp), %rax
movl $0xa, %ecx
xorl %edx, %edx
divq %rcx
movq %rax, -0xa8(%rbp)
movq -0xa0(%rbp), %rax
imulq $0xa, -0xa8(%rbp), %rcx
subq %rcx, %rax
movl %eax, -0xac(%rbp)
movl -0xac(%rbp), %eax
addl $0x30, %eax
movb %al, %cl
movq -0x80(%rbp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, -0x80(%rbp)
movb %cl, -0x1(%rax)
movq -0xa8(%rbp), %rax
movq %rax, -0xa0(%rbp)
jmp 0x4486d
movq -0xa0(%rbp), %rax
movq %rax, -0x90(%rbp)
cmpq $0x0, -0x90(%rbp)
je 0x44947
movq -0x90(%rbp), %rax
movl $0xa, %ecx
cqto
idivq %rcx
movq %rax, -0xb8(%rbp)
movq -0x90(%rbp), %rax
imulq $0xa, -0xb8(%rbp), %rcx
subq %rcx, %rax
addq $0x30, %rax
movb %al, %cl
movq -0x80(%rbp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, -0x80(%rbp)
movb %cl, -0x1(%rax)
movq -0xb8(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0x448eb
movq -0x68(%rbp), %rax
movq -0x88(%rbp), %rcx
movq -0x80(%rbp), %rdx
subq %rdx, %rcx
cmpq %rcx, %rax
jae 0x4496b
movq -0x68(%rbp), %rax
movq %rax, -0xc0(%rbp)
jmp 0x44980
movq -0x88(%rbp), %rax
movq -0x80(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rdi
movq -0x80(%rbp), %rsi
movq -0x68(%rbp), %rdx
callq 0x24230
movq -0x68(%rbp), %rax
movl -0x94(%rbp), %ecx
addq %rcx, %rax
movq %rax, -0xc8(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x449d2
movq -0xc8(%rbp), %rax
addq $0xd0, %rsp
popq %rbp
retq
callq 0x24320
nopw (%rax,%rax)
| my_longlong10_to_str_8bit:
push rbp
mov rbp, rsp
sub rsp, 0D0h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_58], rdi
mov [rbp+var_60], rsi
mov [rbp+var_68], rdx
mov [rbp+var_6C], ecx
mov [rbp+var_78], r8
mov [rbp+var_94], 0
mov rax, [rbp+var_78]
mov [rbp+var_A0], rax
cmp [rbp+var_6C], 0
jge short loc_44827
cmp [rbp+var_78], 0
jge short loc_44825
xor eax, eax
sub rax, [rbp+var_A0]
mov [rbp+var_A0], rax
mov rax, [rbp+var_60]
mov rcx, rax
add rcx, 1
mov [rbp+var_60], rcx
mov byte ptr [rax], 2Dh ; '-'
mov rax, [rbp+var_68]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_68], rax
mov [rbp+var_94], 1
loc_44825:
jmp short $+2
loc_44827:
lea rax, [rbp+var_50]
add rax, 40h ; '@'
mov [rbp+var_80], rax
mov [rbp+var_88], rax
mov rax, [rbp+var_80]
mov byte ptr [rax], 0
cmp [rbp+var_A0], 0
jnz short loc_4486B
mov rax, [rbp+var_80]
mov rcx, rax
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_80], rcx
mov byte ptr [rax-1], 30h ; '0'
mov [rbp+var_68], 1
jmp loc_4498B
loc_4486B:
jmp short $+2
loc_4486D:
mov rax, 7FFFFFFFFFFFFFFFh
cmp [rbp+var_A0], rax
jbe short loc_448DD
mov rax, [rbp+var_A0]
mov ecx, 0Ah
xor edx, edx
div rcx
mov [rbp+var_A8], rax
mov rax, [rbp+var_A0]
imul rcx, [rbp+var_A8], 0Ah
sub rax, rcx
mov [rbp+var_AC], eax
mov eax, [rbp+var_AC]
add eax, 30h ; '0'
mov cl, al
mov rax, [rbp+var_80]
mov rdx, rax
add rdx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_80], rdx
mov [rax-1], cl
mov rax, [rbp+var_A8]
mov [rbp+var_A0], rax
jmp short loc_4486D
loc_448DD:
mov rax, [rbp+var_A0]
mov [rbp+var_90], rax
loc_448EB:
cmp [rbp+var_90], 0
jz short loc_44947
mov rax, [rbp+var_90]
mov ecx, 0Ah
cqo
idiv rcx
mov [rbp+var_B8], rax
mov rax, [rbp+var_90]
imul rcx, [rbp+var_B8], 0Ah
sub rax, rcx
add rax, 30h ; '0'
mov cl, al
mov rax, [rbp+var_80]
mov rdx, rax
add rdx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_80], rdx
mov [rax-1], cl
mov rax, [rbp+var_B8]
mov [rbp+var_90], rax
jmp short loc_448EB
loc_44947:
mov rax, [rbp+var_68]
mov rcx, [rbp+var_88]
mov rdx, [rbp+var_80]
sub rcx, rdx
cmp rax, rcx
jnb short loc_4496B
mov rax, [rbp+var_68]
mov [rbp+var_C0], rax
jmp short loc_44980
loc_4496B:
mov rax, [rbp+var_88]
mov rcx, [rbp+var_80]
sub rax, rcx
mov [rbp+var_C0], rax
loc_44980:
mov rax, [rbp+var_C0]
mov [rbp+var_68], rax
loc_4498B:
mov rdi, [rbp+var_60]
mov rsi, [rbp+var_80]
mov rdx, [rbp+var_68]
call _memcpy
mov rax, [rbp+var_68]
mov ecx, [rbp+var_94]
add rax, rcx
mov [rbp+var_C8], rax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_449D2
mov rax, [rbp+var_C8]
add rsp, 0D0h
pop rbp
retn
loc_449D2:
call ___stack_chk_fail
| long long my_longlong10_to_str_8bit(long long a1, _BYTE *a2, _BYTE *a3, int a4, long long a5)
{
char *v5; // rax
char *v6; // rax
_BYTE *v8; // [rsp+10h] [rbp-C0h]
unsigned long long v9; // [rsp+30h] [rbp-A0h]
unsigned int v10; // [rsp+3Ch] [rbp-94h]
signed long long i; // [rsp+40h] [rbp-90h]
char *v12; // [rsp+50h] [rbp-80h]
_BYTE *v13; // [rsp+68h] [rbp-68h]
long long v14; // [rsp+68h] [rbp-68h]
_BYTE *v15; // [rsp+70h] [rbp-60h]
char v16; // [rsp+BFh] [rbp-11h] BYREF
_BYTE v17[8]; // [rsp+C0h] [rbp-10h] BYREF
unsigned long long v18; // [rsp+C8h] [rbp-8h]
v18 = __readfsqword(0x28u);
v15 = a2;
v13 = a3;
v10 = 0;
v9 = a5;
if ( a4 < 0 && a5 < 0 )
{
v9 = -a5;
v15 = a2 + 1;
*a2 = 45;
v13 = a3 - 1;
v10 = 1;
}
v12 = v17;
v17[0] = 0;
if ( v9 )
{
while ( v9 > 0x7FFFFFFFFFFFFFFFLL )
{
v5 = v12--;
*(v5 - 1) = v9 % 0xA + 48;
v9 /= 0xAuLL;
}
for ( i = v9; i; i /= 10LL )
{
v6 = v12--;
*(v6 - 1) = i % 10 + 48;
}
if ( (unsigned long long)v13 >= v17 - v12 )
v8 = (_BYTE *)(v17 - v12);
else
v8 = v13;
v14 = (long long)v8;
}
else
{
v12 = &v16;
v16 = 48;
v14 = 1LL;
}
memcpy(v15, v12, v14);
return v10 + v14;
}
| my_longlong10_to_str_8bit:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xd0
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x58],RDI
MOV qword ptr [RBP + -0x60],RSI
MOV qword ptr [RBP + -0x68],RDX
MOV dword ptr [RBP + -0x6c],ECX
MOV qword ptr [RBP + -0x78],R8
MOV dword ptr [RBP + -0x94],0x0
MOV RAX,qword ptr [RBP + -0x78]
MOV qword ptr [RBP + -0xa0],RAX
CMP dword ptr [RBP + -0x6c],0x0
JGE 0x00144827
CMP qword ptr [RBP + -0x78],0x0
JGE 0x00144825
XOR EAX,EAX
SUB RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0xa0],RAX
MOV RAX,qword ptr [RBP + -0x60]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x60],RCX
MOV byte ptr [RAX],0x2d
MOV RAX,qword ptr [RBP + -0x68]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x68],RAX
MOV dword ptr [RBP + -0x94],0x1
LAB_00144825:
JMP 0x00144827
LAB_00144827:
LEA RAX,[RBP + -0x50]
ADD RAX,0x40
MOV qword ptr [RBP + -0x80],RAX
MOV qword ptr [RBP + -0x88],RAX
MOV RAX,qword ptr [RBP + -0x80]
MOV byte ptr [RAX],0x0
CMP qword ptr [RBP + -0xa0],0x0
JNZ 0x0014486b
MOV RAX,qword ptr [RBP + -0x80]
MOV RCX,RAX
ADD RCX,-0x1
MOV qword ptr [RBP + -0x80],RCX
MOV byte ptr [RAX + -0x1],0x30
MOV qword ptr [RBP + -0x68],0x1
JMP 0x0014498b
LAB_0014486b:
JMP 0x0014486d
LAB_0014486d:
MOV RAX,0x7fffffffffffffff
CMP qword ptr [RBP + -0xa0],RAX
JBE 0x001448dd
MOV RAX,qword ptr [RBP + -0xa0]
MOV ECX,0xa
XOR EDX,EDX
DIV RCX
MOV qword ptr [RBP + -0xa8],RAX
MOV RAX,qword ptr [RBP + -0xa0]
IMUL RCX,qword ptr [RBP + -0xa8],0xa
SUB RAX,RCX
MOV dword ptr [RBP + -0xac],EAX
MOV EAX,dword ptr [RBP + -0xac]
ADD EAX,0x30
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x80]
MOV RDX,RAX
ADD RDX,-0x1
MOV qword ptr [RBP + -0x80],RDX
MOV byte ptr [RAX + -0x1],CL
MOV RAX,qword ptr [RBP + -0xa8]
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x0014486d
LAB_001448dd:
MOV RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0x90],RAX
LAB_001448eb:
CMP qword ptr [RBP + -0x90],0x0
JZ 0x00144947
MOV RAX,qword ptr [RBP + -0x90]
MOV ECX,0xa
CQO
IDIV RCX
MOV qword ptr [RBP + -0xb8],RAX
MOV RAX,qword ptr [RBP + -0x90]
IMUL RCX,qword ptr [RBP + -0xb8],0xa
SUB RAX,RCX
ADD RAX,0x30
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x80]
MOV RDX,RAX
ADD RDX,-0x1
MOV qword ptr [RBP + -0x80],RDX
MOV byte ptr [RAX + -0x1],CL
MOV RAX,qword ptr [RBP + -0xb8]
MOV qword ptr [RBP + -0x90],RAX
JMP 0x001448eb
LAB_00144947:
MOV RAX,qword ptr [RBP + -0x68]
MOV RCX,qword ptr [RBP + -0x88]
MOV RDX,qword ptr [RBP + -0x80]
SUB RCX,RDX
CMP RAX,RCX
JNC 0x0014496b
MOV RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RBP + -0xc0],RAX
JMP 0x00144980
LAB_0014496b:
MOV RAX,qword ptr [RBP + -0x88]
MOV RCX,qword ptr [RBP + -0x80]
SUB RAX,RCX
MOV qword ptr [RBP + -0xc0],RAX
LAB_00144980:
MOV RAX,qword ptr [RBP + -0xc0]
MOV qword ptr [RBP + -0x68],RAX
LAB_0014498b:
MOV RDI,qword ptr [RBP + -0x60]
MOV RSI,qword ptr [RBP + -0x80]
MOV RDX,qword ptr [RBP + -0x68]
CALL 0x00124230
MOV RAX,qword ptr [RBP + -0x68]
MOV ECX,dword ptr [RBP + -0x94]
ADD RAX,RCX
MOV qword ptr [RBP + -0xc8],RAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001449d2
MOV RAX,qword ptr [RBP + -0xc8]
ADD RSP,0xd0
POP RBP
RET
LAB_001449d2:
CALL 0x00124320
|
long my_longlong10_to_str_8bit
(int8 param_1,int1 *param_2,ulong param_3,int param_4,ulong param_5)
{
char *pcVar1;
long in_FS_OFFSET;
ulong local_c8;
ulong local_a8;
uint local_9c;
ulong local_98;
char *local_88;
size_t local_70;
int1 *local_68;
char local_19 [9];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_9c = 0;
local_a8 = param_5;
local_70 = param_3;
local_68 = param_2;
if (param_4 < 0) {
if ((long)param_5 < 0) {
local_a8 = -param_5;
local_68 = param_2 + 1;
*param_2 = 0x2d;
local_70 = param_3 - 1;
}
local_9c = (uint)((long)param_5 < 0);
}
pcVar1 = local_19 + 1;
local_19[1] = 0;
local_88 = pcVar1;
if (local_a8 == 0) {
local_88 = local_19;
local_19[0] = '0';
local_70 = 1;
}
else {
while (0x7fffffffffffffff < local_a8) {
local_88[-1] = (char)local_a8 + (char)(local_a8 / 10) * -10 + '0';
local_a8 = local_a8 / 10;
local_88 = local_88 + -1;
}
local_98 = local_a8;
while (local_98 != 0) {
local_88[-1] = (char)local_98 + (char)((long)local_98 / 10) * -10 + '0';
local_98 = (long)local_98 / 10;
local_88 = local_88 + -1;
}
if (local_70 < (ulong)((long)pcVar1 - (long)local_88)) {
local_c8 = local_70;
}
else {
local_c8 = (long)pcVar1 - (long)local_88;
}
local_70 = local_c8;
}
memcpy(local_68,local_88,local_70);
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_70 + local_9c;
}
| |
45,794 | my_caseup_str_mb | eloqsql/strings/ctype-mb.c | size_t my_caseup_str_mb(CHARSET_INFO * cs, char *str)
{
register uint32 l;
register const uchar *map= cs->to_upper;
char *str_orig= str;
while (*str)
{
/* Pointing after the '\0' is safe here. */
if ((l= my_ismbchar(cs, str, str + cs->mbmaxlen)))
str+= l;
else
{
*str= (char) map[(uchar)*str];
str++;
}
}
return (size_t) (str - str_orig);
} | O0 | c | my_caseup_str_mb:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x50(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
cmpb $0x0, (%rax)
je 0x46447
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x10(%rbp), %rdx
movq -0x8(%rbp), %rax
movl 0x9c(%rax), %eax
addq %rax, %rdx
callq 0x46460
movl %eax, -0x14(%rbp)
cmpl $0x0, %eax
je 0x46425
movl -0x14(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
jmp 0x46445
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
movzbl (%rcx), %ecx
movb (%rax,%rcx), %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x463e4
movq -0x10(%rbp), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| my_caseup_str_mb:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
mov rax, [rax+50h]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
loc_463E4:
mov rax, [rbp+var_10]
cmp byte ptr [rax], 0
jz short loc_46447
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_10]
mov rax, [rbp+var_8]
mov eax, [rax+9Ch]
add rdx, rax
call my_ismbchar_0
mov [rbp+var_14], eax
cmp eax, 0
jz short loc_46425
mov ecx, [rbp+var_14]
mov rax, [rbp+var_10]
mov ecx, ecx
add rax, rcx
mov [rbp+var_10], rax
jmp short loc_46445
loc_46425:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_10]
movzx ecx, byte ptr [rcx]
mov cl, [rax+rcx]
mov rax, [rbp+var_10]
mov [rax], cl
mov rax, [rbp+var_10]
add rax, 1
mov [rbp+var_10], rax
loc_46445:
jmp short loc_463E4
loc_46447:
mov rax, [rbp+var_10]
mov rcx, [rbp+var_28]
sub rax, rcx
add rsp, 30h
pop rbp
retn
| _BYTE * my_caseup_str_mb(long long a1, _BYTE *a2)
{
long long v3; // [rsp+10h] [rbp-20h]
unsigned int v4; // [rsp+1Ch] [rbp-14h]
_BYTE *v5; // [rsp+20h] [rbp-10h]
v5 = a2;
v3 = *(_QWORD *)(a1 + 80);
while ( *v5 )
{
v4 = my_ismbchar_0(a1, v5, &v5[*(unsigned int *)(a1 + 156)]);
if ( v4 )
{
v5 += v4;
}
else
{
*v5 = *(_BYTE *)(v3 + (unsigned __int8)*v5);
++v5;
}
}
return (_BYTE *)(v5 - a2);
}
| my_caseup_str_mb:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x50]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
LAB_001463e4:
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX],0x0
JZ 0x00146447
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x9c]
ADD RDX,RAX
CALL 0x00146460
MOV dword ptr [RBP + -0x14],EAX
CMP EAX,0x0
JZ 0x00146425
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
JMP 0x00146445
LAB_00146425:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
MOVZX ECX,byte ptr [RCX]
MOV CL,byte ptr [RAX + RCX*0x1]
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x1
MOV qword ptr [RBP + -0x10],RAX
LAB_00146445:
JMP 0x001463e4
LAB_00146447:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x28]
SUB RAX,RCX
ADD RSP,0x30
POP RBP
RET
|
long my_caseup_str_mb(long param_1,byte *param_2)
{
long lVar1;
uint uVar2;
byte *local_18;
lVar1 = *(long *)(param_1 + 0x50);
local_18 = param_2;
while (*local_18 != 0) {
uVar2 = my_ismbchar(param_1,local_18,local_18 + *(uint *)(param_1 + 0x9c));
if (uVar2 == 0) {
*local_18 = *(byte *)(lVar1 + (ulong)*local_18);
local_18 = local_18 + 1;
}
else {
local_18 = local_18 + uVar2;
}
}
return (long)local_18 - (long)param_2;
}
| |
45,795 | ma_get_prev_key | eloqsql/storage/maria/ma_search.c | static my_bool _ma_get_prev_key(MARIA_KEY *key, MARIA_PAGE *ma_page,
uchar *keypos)
{
uint page_flag, nod_flag;
MARIA_KEYDEF *keyinfo= key->keyinfo;
DBUG_ENTER("_ma_get_prev_key");
page_flag= ma_page->flag;
nod_flag= ma_page->node;
if (! (keyinfo->flag & (HA_VAR_LENGTH_KEY | HA_BINARY_PACK_KEY)) &&
! (page_flag & KEYPAGE_FLAG_HAS_TRANSID))
{
bmove(key->data, keypos - keyinfo->keylength - nod_flag,
keyinfo->keylength);
key->ref_length= keyinfo->share->rec_reflength;
key->data_length= keyinfo->keylength - key->ref_length;
key->flag= 0;
DBUG_RETURN(0);
}
else
{
uchar *page;
page= ma_page->buff + keyinfo->share->keypage_header + nod_flag;
key->data[0]= 0; /* safety */
DBUG_ASSERT(page != keypos);
while (page < keypos)
{
if (! (*keyinfo->get_key)(key, page_flag, nod_flag, &page))
{
_ma_set_fatal_error_with_share(keyinfo->share, HA_ERR_CRASHED);
DBUG_RETURN(1);
}
}
}
DBUG_RETURN(0);
} | O3 | c | ma_get_prev_key:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r9
movq %rdi, %rbx
movq 0x8(%rdi), %r14
movl 0x28(%rsi), %r8d
movl 0x2c(%rsi), %ecx
testb $0x28, 0xa2(%r14)
sete %al
movl %ecx, -0x2c(%rbp)
testb $0x2, %cl
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x6f9e5
movq (%rbx), %rdi
movzwl 0xaa(%r14), %edx
subq %rdx, %r9
subq %r8, %r9
movq %r9, %rsi
callq 0x29110
movq (%r14), %rax
movl 0x740(%rax), %eax
movl %eax, 0x14(%rbx)
movzwl 0xaa(%r14), %ecx
subl %eax, %ecx
movl %ecx, 0x10(%rbx)
movl $0x0, 0x18(%rbx)
xorl %eax, %eax
jmp 0x6fa4a
movq %r14, %r12
movq (%r14), %rax
movl 0x744(%rax), %eax
addq 0x10(%rsi), %rax
movq %r8, %r14
addq %r8, %rax
leaq -0x38(%rbp), %rcx
movq %rax, (%rcx)
movq %rbx, %r13
movq (%rbx), %rax
movb $0x0, (%rax)
movq -0x38(%rbp), %r15
cmpq %r9, %r15
jae 0x6fa44
movq %r13, %rdi
movl -0x2c(%rbp), %esi
movl %r14d, %edx
leaq -0x38(%rbp), %rcx
movq %r9, %rbx
callq *0xe0(%r12)
movq %rbx, %r9
testl %eax, %eax
jne 0x6fa0b
movq (%r12), %rdi
movl $0x7e, %esi
callq 0x405da
movq %rbx, %r9
cmpq %r9, %r15
setb %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
| _ma_get_prev_key:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r9, rdx
mov rbx, rdi
mov r14, [rdi+8]
mov r8d, [rsi+28h]
mov ecx, [rsi+2Ch]
test byte ptr [r14+0A2h], 28h
setz al
mov [rbp+var_2C], ecx
test cl, 2
setz cl
and cl, al
cmp cl, 1
jnz short loc_6F9E5
mov rdi, [rbx]
movzx edx, word ptr [r14+0AAh]
sub r9, rdx
sub r9, r8
mov rsi, r9
call _memmove
mov rax, [r14]
mov eax, [rax+740h]
mov [rbx+14h], eax
movzx ecx, word ptr [r14+0AAh]
sub ecx, eax
mov [rbx+10h], ecx
mov dword ptr [rbx+18h], 0
xor eax, eax
jmp short loc_6FA4A
loc_6F9E5:
mov r12, r14
mov rax, [r14]
mov eax, [rax+744h]
add rax, [rsi+10h]
mov r14, r8
add rax, r8
lea rcx, [rbp+var_38]
mov [rcx], rax
mov r13, rbx
mov rax, [rbx]
mov byte ptr [rax], 0
loc_6FA0B:
mov r15, [rbp+var_38]
cmp r15, r9
jnb short loc_6FA44
mov rdi, r13
mov esi, [rbp+var_2C]
mov edx, r14d
lea rcx, [rbp+var_38]
mov rbx, r9
call qword ptr [r12+0E0h]
mov r9, rbx
test eax, eax
jnz short loc_6FA0B
mov rdi, [r12]
mov esi, 7Eh ; '~'
call _ma_set_fatal_error_with_share
mov r9, rbx
loc_6FA44:
cmp r15, r9
setb al
loc_6FA4A:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| bool ma_get_prev_key(long long a1, long long a2, unsigned long long a3)
{
unsigned long long v3; // r9
long long v4; // r14
long long v5; // r8
bool v6; // al
int v7; // eax
long long v9; // r12
long long v10; // rax
unsigned int v11; // r14d
unsigned long long v12; // r15
unsigned long long v13; // rbx
int v14; // eax
long long v15; // rdx
long long v16; // rcx
long long v17; // r8
unsigned long long v18; // [rsp+8h] [rbp-38h] BYREF
unsigned int v19; // [rsp+14h] [rbp-2Ch]
v3 = a3;
v4 = *(_QWORD *)(a1 + 8);
v5 = *(unsigned int *)(a2 + 40);
v6 = (*(_BYTE *)(v4 + 162) & 0x28) == 0;
v19 = *(_DWORD *)(a2 + 44);
if ( v6 && (v19 & 2) == 0 )
{
memmove(*(_QWORD *)a1, a3 - *(unsigned __int16 *)(v4 + 170) - v5, *(unsigned __int16 *)(v4 + 170));
v7 = *(_DWORD *)(*(_QWORD *)v4 + 1856LL);
*(_DWORD *)(a1 + 20) = v7;
*(_DWORD *)(a1 + 16) = *(unsigned __int16 *)(v4 + 170) - v7;
*(_DWORD *)(a1 + 24) = 0;
return 0;
}
else
{
v9 = v4;
v10 = *(_QWORD *)(a2 + 16) + *(unsigned int *)(*(_QWORD *)v4 + 1860LL);
v11 = v5;
v18 = v5 + v10;
**(_BYTE **)a1 = 0;
while ( 1 )
{
v12 = v18;
if ( v18 >= v3 )
break;
v13 = v3;
v14 = (*(long long ( **)(long long, _QWORD, _QWORD, unsigned long long *))(v9 + 224))(a1, v19, v11, &v18);
v3 = v13;
if ( !v14 )
{
ma_set_fatal_error_with_share(*(_QWORD *)v9, 126, v15, v16, v17, v13);
v3 = v13;
return v12 < v3;
}
}
return v12 < v3;
}
}
| _ma_get_prev_key:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R9,RDX
MOV RBX,RDI
MOV R14,qword ptr [RDI + 0x8]
MOV R8D,dword ptr [RSI + 0x28]
MOV ECX,dword ptr [RSI + 0x2c]
TEST byte ptr [R14 + 0xa2],0x28
SETZ AL
MOV dword ptr [RBP + -0x2c],ECX
TEST CL,0x2
SETZ CL
AND CL,AL
CMP CL,0x1
JNZ 0x0016f9e5
MOV RDI,qword ptr [RBX]
MOVZX EDX,word ptr [R14 + 0xaa]
SUB R9,RDX
SUB R9,R8
MOV RSI,R9
CALL 0x00129110
MOV RAX,qword ptr [R14]
MOV EAX,dword ptr [RAX + 0x740]
MOV dword ptr [RBX + 0x14],EAX
MOVZX ECX,word ptr [R14 + 0xaa]
SUB ECX,EAX
MOV dword ptr [RBX + 0x10],ECX
MOV dword ptr [RBX + 0x18],0x0
XOR EAX,EAX
JMP 0x0016fa4a
LAB_0016f9e5:
MOV R12,R14
MOV RAX,qword ptr [R14]
MOV EAX,dword ptr [RAX + 0x744]
ADD RAX,qword ptr [RSI + 0x10]
MOV R14,R8
ADD RAX,R8
LEA RCX,[RBP + -0x38]
MOV qword ptr [RCX],RAX
MOV R13,RBX
MOV RAX,qword ptr [RBX]
MOV byte ptr [RAX],0x0
LAB_0016fa0b:
MOV R15,qword ptr [RBP + -0x38]
CMP R15,R9
JNC 0x0016fa44
MOV RDI,R13
MOV ESI,dword ptr [RBP + -0x2c]
MOV EDX,R14D
LEA RCX,[RBP + -0x38]
MOV RBX,R9
CALL qword ptr [R12 + 0xe0]
MOV R9,RBX
TEST EAX,EAX
JNZ 0x0016fa0b
MOV RDI,qword ptr [R12]
MOV ESI,0x7e
CALL 0x001405da
MOV R9,RBX
LAB_0016fa44:
CMP R15,R9
SETC AL
LAB_0016fa4a:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
bool _ma_get_prev_key(int8 *param_1,long param_2,ulong param_3)
{
long *plVar1;
ulong uVar2;
int iVar3;
ulong uVar4;
bool bVar5;
ulong local_40;
uint local_34;
plVar1 = (long *)param_1[1];
uVar4 = (ulong)*(uint *)(param_2 + 0x28);
local_34 = *(uint *)(param_2 + 0x2c);
if ((local_34 & 2) == 0 && (*(byte *)((long)plVar1 + 0xa2) & 0x28) == 0) {
memmove((void *)*param_1,(void *)((param_3 - *(ushort *)((long)plVar1 + 0xaa)) - uVar4),
(ulong)*(ushort *)((long)plVar1 + 0xaa));
iVar3 = *(int *)(*plVar1 + 0x740);
*(int *)((long)param_1 + 0x14) = iVar3;
*(uint *)(param_1 + 2) = (uint)*(ushort *)((long)plVar1 + 0xaa) - iVar3;
*(int4 *)(param_1 + 3) = 0;
bVar5 = false;
}
else {
local_40 = (ulong)*(uint *)(*plVar1 + 0x744) + *(long *)(param_2 + 0x10) + uVar4;
*(int1 *)*param_1 = 0;
do {
uVar2 = local_40;
if (param_3 <= local_40) goto LAB_0016fa44;
iVar3 = (*(code *)plVar1[0x1c])(param_1,local_34,uVar4,&local_40);
} while (iVar3 != 0);
_ma_set_fatal_error_with_share(*plVar1,0x7e);
LAB_0016fa44:
bVar5 = uVar2 < param_3;
}
return bVar5;
}
| |
45,796 | ma_apply_undo_row_insert | eloqsql/storage/maria/ma_blockrec.c | my_bool _ma_apply_undo_row_insert(MARIA_HA *info, LSN undo_lsn,
const uchar *header)
{
pgcache_page_no_t page;
uint rownr;
uchar *buff;
my_bool res;
MARIA_PINNED_PAGE page_link;
MARIA_SHARE *share= info->s;
ha_checksum checksum;
LSN lsn;
DBUG_ENTER("_ma_apply_undo_row_insert");
page= page_korr(header);
header+= PAGE_STORE_SIZE;
rownr= dirpos_korr(header);
header+= DIRPOS_STORE_SIZE;
DBUG_PRINT("enter", ("rowid: %lu page: %lu rownr: %u",
(ulong) ma_recordpos(page, rownr),
(ulong) page, rownr));
buff= pagecache_read(share->pagecache,
&info->dfile, page, 0,
0, share->page_type,
PAGECACHE_LOCK_WRITE,
&page_link.link);
page_link.unlock= PAGECACHE_LOCK_WRITE_UNLOCK;
page_link.changed= buff != 0;
push_dynamic(&info->pinned_pages, (void*) &page_link);
if (!buff)
goto err;
if (read_row_extent_info(info, buff, rownr))
goto err;
_ma_bitmap_flushable(info, 1);
if (delete_head_or_tail(info, page, rownr, 1, 1) ||
delete_tails(info, info->cur_row.tail_positions))
goto err;
if (info->cur_row.extents_count && free_full_pages(info, &info->cur_row))
goto err;
checksum= 0;
if (share->calc_checksum)
checksum= (ha_checksum) 0 - ha_checksum_korr(header);
info->last_auto_increment= ~ (ulonglong) 0;
if (_ma_write_clr(info, undo_lsn, LOGREC_UNDO_ROW_INSERT,
share->calc_checksum != 0, checksum, &lsn, (void*) 0))
goto err;
res= 0;
end:
/* The following is true only if _ma_bitmap_flushable() was called earlier */
if (info->non_flushable_state)
_ma_bitmap_flushable(info, -1);
_ma_unpin_all_pages_and_finalize_row(info, lsn);
DBUG_RETURN(res);
err:
DBUG_ASSERT(!maria_assert_if_crashed_table);
res= 1;
_ma_mark_file_crashed(share);
/*
Don't write a new LSN on the used pages. Not important as the file is
marked as crashed and need to be repaired before it can be used.
*/
lsn= LSN_IMPOSSIBLE;
goto end;
} | O0 | c | ma_apply_undo_row_insert:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x18(%rbp), %rdi
callq 0x5a860
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
addq $0x5, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
movl %eax, -0x24(%rbp)
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x5c033
movq -0x58(%rbp), %rax
movq 0x600(%rax), %rdi
movq -0x8(%rbp), %rsi
addq $0x470, %rsi # imm = 0x470
movq -0x20(%rbp), %rdx
movq -0x58(%rbp), %rax
movl 0x7d4(%rax), %r9d
leaq -0x50(%rbp), %rax
xorl %ecx, %ecx
xorl %r8d, %r8d
movl $0x4, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x3d190
movq %rax, -0x30(%rbp)
movl $0x6, -0x48(%rbp)
cmpq $0x0, -0x30(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
movb %al, -0x40(%rbp)
movq -0x8(%rbp), %rdi
addq $0x2e8, %rdi # imm = 0x2E8
leaq -0x50(%rbp), %rsi
callq 0xda810
cmpq $0x0, -0x30(%rbp)
jne 0x5c0ad
jmp 0x5c1ec
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl -0x24(%rbp), %edx
callq 0x5c210
cmpb $0x0, %al
je 0x5c0c6
jmp 0x5c1ec
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0x642d0
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x24(%rbp), %edx
movl $0x1, %r8d
movl %r8d, %ecx
callq 0x56300
movsbl %al, %eax
cmpl $0x0, %eax
jne 0x5c111
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0xa8(%rax), %rsi
callq 0x57300
movsbl %al, %eax
cmpl $0x0, %eax
je 0x5c116
jmp 0x5c1ec
movq -0x8(%rbp), %rax
cmpl $0x0, 0x12c(%rax)
je 0x5c144
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rsi
addq $0x80, %rsi
callq 0x57390
movsbl %al, %eax
cmpl $0x0, %eax
je 0x5c144
jmp 0x5c1ec
movl $0x0, -0x5c(%rbp)
movq -0x58(%rbp), %rax
cmpq $0x0, 0x6a8(%rax)
je 0x5c164
movq -0x18(%rbp), %rcx
xorl %eax, %eax
subl (%rcx), %eax
movl %eax, -0x5c(%rbp)
movq -0x8(%rbp), %rax
movq $-0x1, 0x3e8(%rax)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x58(%rbp), %rax
cmpq $0x0, 0x6a8(%rax)
setne %al
andb $0x1, %al
movzbl %al, %eax
movl -0x5c(%rbp), %r8d
movl $0x12, %edx
leaq -0x68(%rbp), %r9
xorl %ecx, %ecx
movsbl %al, %ecx
movq $0x0, (%rsp)
callq 0x44130
cmpb $0x0, %al
je 0x5c1b4
jmp 0x5c1ec
movb $0x0, -0x31(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x644(%rax)
je 0x5c1d3
movq -0x8(%rbp), %rdi
movl $0xffffffff, %esi # imm = 0xFFFFFFFF
callq 0x642d0
movq -0x8(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x56910
movb -0x31(%rbp), %al
addq $0x80, %rsp
popq %rbp
retq
jmp 0x5c1ee
jmp 0x5c1f0
movb $0x1, -0x31(%rbp)
movq -0x58(%rbp), %rdi
callq 0x49420
movq $0x0, -0x68(%rbp)
jmp 0x5c1b8
nopw (%rax,%rax)
| _ma_apply_undo_row_insert:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rbp+var_58], rax
mov rdi, [rbp+var_18]
call uint5korr_0
mov [rbp+var_20], rax
mov rax, [rbp+var_18]
add rax, 5
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax]
mov [rbp+var_24], eax
mov rax, [rbp+var_18]
add rax, 1
mov [rbp+var_18], rax
jmp short $+2
loc_5C033:
mov rax, [rbp+var_58]
mov rdi, [rax+600h]
mov rsi, [rbp+var_8]
add rsi, 470h
mov rdx, [rbp+var_20]
mov rax, [rbp+var_58]
mov r9d, [rax+7D4h]
lea rax, [rbp+var_50]
xor ecx, ecx
xor r8d, r8d
mov dword ptr [rsp+80h+var_80], 4
mov [rsp+80h+var_78], rax
call pagecache_read
mov [rbp+var_30], rax
mov [rbp+var_48], 6
cmp [rbp+var_30], 0
setnz al
and al, 1
movzx eax, al
mov [rbp+var_40], al
mov rdi, [rbp+var_8]
add rdi, 2E8h
lea rsi, [rbp+var_50]
call insert_dynamic
cmp [rbp+var_30], 0
jnz short loc_5C0AD
jmp loc_5C1EC
loc_5C0AD:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_30]
mov edx, [rbp+var_24]
call read_row_extent_info
cmp al, 0
jz short loc_5C0C6
jmp loc_5C1EC
loc_5C0C6:
mov rdi, [rbp+var_8]
mov esi, 1
call _ma_bitmap_flushable
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_20]
mov edx, [rbp+var_24]
mov r8d, 1
mov ecx, r8d
call delete_head_or_tail
movsx eax, al
cmp eax, 0
jnz short loc_5C111
mov rdi, [rbp+var_8]
mov rax, [rbp+var_8]
mov rsi, [rax+0A8h]
call delete_tails
movsx eax, al
cmp eax, 0
jz short loc_5C116
loc_5C111:
jmp loc_5C1EC
loc_5C116:
mov rax, [rbp+var_8]
cmp dword ptr [rax+12Ch], 0
jz short loc_5C144
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_8]
add rsi, 80h
call free_full_pages
movsx eax, al
cmp eax, 0
jz short loc_5C144
jmp loc_5C1EC
loc_5C144:
mov [rbp+var_5C], 0
mov rax, [rbp+var_58]
cmp qword ptr [rax+6A8h], 0
jz short loc_5C164
mov rcx, [rbp+var_18]
xor eax, eax
sub eax, [rcx]
mov [rbp+var_5C], eax
loc_5C164:
mov rax, [rbp+var_8]
mov qword ptr [rax+3E8h], 0FFFFFFFFFFFFFFFFh
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rax, [rbp+var_58]
cmp qword ptr [rax+6A8h], 0
setnz al
and al, 1
movzx eax, al
mov r8d, [rbp+var_5C]
mov edx, 12h
lea r9, [rbp+var_68]
xor ecx, ecx
movsx ecx, al
mov [rsp+80h+var_80], 0
call _ma_write_clr
cmp al, 0
jz short loc_5C1B4
jmp short loc_5C1EC
loc_5C1B4:
mov [rbp+var_31], 0
loc_5C1B8:
mov rax, [rbp+var_8]
cmp dword ptr [rax+644h], 0
jz short loc_5C1D3
mov rdi, [rbp+var_8]
mov esi, 0FFFFFFFFh
call _ma_bitmap_flushable
loc_5C1D3:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_68]
call _ma_unpin_all_pages_and_finalize_row_0
mov al, [rbp+var_31]
add rsp, 80h
pop rbp
retn
loc_5C1EC:
jmp short $+2
loc_5C1EE:
jmp short $+2
loc_5C1F0:
mov [rbp+var_31], 1
mov rdi, [rbp+var_58]
call _ma_mark_file_crashed
mov [rbp+var_68], 0
jmp short loc_5C1B8
| char ma_apply_undo_row_insert(long long *a1, long long a2, unsigned int *a3)
{
long long v4; // [rsp+18h] [rbp-68h] BYREF
int v5; // [rsp+24h] [rbp-5Ch]
long long v6; // [rsp+28h] [rbp-58h]
char v7[8]; // [rsp+30h] [rbp-50h] BYREF
int v8; // [rsp+38h] [rbp-48h]
bool v9; // [rsp+40h] [rbp-40h]
char v10; // [rsp+4Fh] [rbp-31h]
long long v11; // [rsp+50h] [rbp-30h]
unsigned int v12; // [rsp+5Ch] [rbp-24h]
unsigned long long v13; // [rsp+60h] [rbp-20h]
unsigned int *v14; // [rsp+68h] [rbp-18h]
long long v15; // [rsp+70h] [rbp-10h]
long long *v16; // [rsp+78h] [rbp-8h]
v16 = a1;
v15 = a2;
v14 = a3;
v6 = *a1;
v13 = uint5korr_0(a3);
v14 = (unsigned int *)((char *)v14 + 5);
v12 = *(unsigned __int8 *)v14;
v14 = (unsigned int *)((char *)v14 + 1);
v11 = pagecache_read(*(_QWORD **)(v6 + 1536), (long long)(a1 + 142), v13, 0, 0LL, *(_DWORD *)(v6 + 2004), 4u, v7);
v8 = 6;
v9 = v11 != 0;
insert_dynamic(v16 + 93, v7);
if ( !v11 )
goto LABEL_15;
if ( (unsigned __int8)read_row_extent_info(v16, v11, v12) )
goto LABEL_15;
ma_bitmap_flushable(v16, 1LL);
if ( delete_head_or_tail(v16, v13, v12, 1, 1)
|| delete_tails(v16, (unsigned long long *)v16[21])
|| *((_DWORD *)v16 + 75) && free_full_pages(v16, (long long)(v16 + 16)) )
{
goto LABEL_15;
}
v5 = 0;
if ( *(_QWORD *)(v6 + 1704) )
v5 = -*v14;
v16[125] = -1LL;
if ( ma_write_clr(v16, v15, 18, *(_QWORD *)(v6 + 1704) != 0LL, v5, (long long)&v4, 0LL) )
{
LABEL_15:
v10 = 1;
ma_mark_file_crashed(v6);
v4 = 0LL;
}
else
{
v10 = 0;
}
if ( *((_DWORD *)v16 + 401) )
ma_bitmap_flushable(v16, 0xFFFFFFFFLL);
ma_unpin_all_pages_and_finalize_row_0((long long)v16, v4);
return v10;
}
| _ma_apply_undo_row_insert:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x58],RAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x0015a860
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x5
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
MOV dword ptr [RBP + -0x24],EAX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
MOV qword ptr [RBP + -0x18],RAX
JMP 0x0015c033
LAB_0015c033:
MOV RAX,qword ptr [RBP + -0x58]
MOV RDI,qword ptr [RAX + 0x600]
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0x470
MOV RDX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x58]
MOV R9D,dword ptr [RAX + 0x7d4]
LEA RAX,[RBP + -0x50]
XOR ECX,ECX
XOR R8D,R8D
MOV dword ptr [RSP],0x4
MOV qword ptr [RSP + 0x8],RAX
CALL 0x0013d190
MOV qword ptr [RBP + -0x30],RAX
MOV dword ptr [RBP + -0x48],0x6
CMP qword ptr [RBP + -0x30],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
MOV byte ptr [RBP + -0x40],AL
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x2e8
LEA RSI,[RBP + -0x50]
CALL 0x001da810
CMP qword ptr [RBP + -0x30],0x0
JNZ 0x0015c0ad
JMP 0x0015c1ec
LAB_0015c0ad:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x30]
MOV EDX,dword ptr [RBP + -0x24]
CALL 0x0015c210
CMP AL,0x0
JZ 0x0015c0c6
JMP 0x0015c1ec
LAB_0015c0c6:
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,0x1
CALL 0x001642d0
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x20]
MOV EDX,dword ptr [RBP + -0x24]
MOV R8D,0x1
MOV ECX,R8D
CALL 0x00156300
MOVSX EAX,AL
CMP EAX,0x0
JNZ 0x0015c111
MOV RDI,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RAX + 0xa8]
CALL 0x00157300
MOVSX EAX,AL
CMP EAX,0x0
JZ 0x0015c116
LAB_0015c111:
JMP 0x0015c1ec
LAB_0015c116:
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x12c],0x0
JZ 0x0015c144
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0x80
CALL 0x00157390
MOVSX EAX,AL
CMP EAX,0x0
JZ 0x0015c144
JMP 0x0015c1ec
LAB_0015c144:
MOV dword ptr [RBP + -0x5c],0x0
MOV RAX,qword ptr [RBP + -0x58]
CMP qword ptr [RAX + 0x6a8],0x0
JZ 0x0015c164
MOV RCX,qword ptr [RBP + -0x18]
XOR EAX,EAX
SUB EAX,dword ptr [RCX]
MOV dword ptr [RBP + -0x5c],EAX
LAB_0015c164:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x3e8],-0x1
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x58]
CMP qword ptr [RAX + 0x6a8],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
MOV R8D,dword ptr [RBP + -0x5c]
MOV EDX,0x12
LEA R9,[RBP + -0x68]
XOR ECX,ECX
MOVSX ECX,AL
MOV qword ptr [RSP],0x0
CALL 0x00144130
CMP AL,0x0
JZ 0x0015c1b4
JMP 0x0015c1ec
LAB_0015c1b4:
MOV byte ptr [RBP + -0x31],0x0
LAB_0015c1b8:
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x644],0x0
JZ 0x0015c1d3
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,0xffffffff
CALL 0x001642d0
LAB_0015c1d3:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x68]
CALL 0x00156910
MOV AL,byte ptr [RBP + -0x31]
ADD RSP,0x80
POP RBP
RET
LAB_0015c1ec:
JMP 0x0015c1ee
LAB_0015c1ee:
JMP 0x0015c1f0
LAB_0015c1f0:
MOV byte ptr [RBP + -0x31],0x1
MOV RDI,qword ptr [RBP + -0x58]
CALL 0x00149420
MOV qword ptr [RBP + -0x68],0x0
JMP 0x0015c1b8
|
int1 _ma_apply_undo_row_insert(long *param_1,int8 param_2,long param_3)
{
char cVar1;
int8 in_stack_ffffffffffffff78;
int4 uVar2;
int8 local_70;
int local_64;
long local_60;
int1 local_58 [8];
int4 local_50;
int1 local_48;
int1 local_39;
long local_38;
uint local_2c;
int8 local_28;
int *local_20;
int8 local_18;
long *local_10;
uVar2 = (int4)((ulong)in_stack_ffffffffffffff78 >> 0x20);
local_60 = *param_1;
local_20 = (int *)param_3;
local_18 = param_2;
local_10 = param_1;
local_28 = uint5korr(param_3);
local_2c = (uint)*(byte *)((long)local_20 + 5);
local_20 = (int *)((long)local_20 + 6);
local_38 = pagecache_read(*(int8 *)(local_60 + 0x600),local_10 + 0x8e,local_28,0,0,
*(int4 *)(local_60 + 0x7d4),CONCAT44(uVar2,4),local_58);
local_50 = 6;
local_48 = local_38 != 0;
insert_dynamic(local_10 + 0x5d,local_58);
if ((local_38 != 0) && (cVar1 = read_row_extent_info(local_10,local_38,local_2c), cVar1 == '\0'))
{
_ma_bitmap_flushable(local_10,1);
cVar1 = delete_head_or_tail(local_10,local_28,local_2c,1);
if (((cVar1 == '\0') && (cVar1 = delete_tails(local_10,local_10[0x15]), cVar1 == '\0')) &&
((*(int *)((long)local_10 + 300) == 0 ||
(cVar1 = free_full_pages(local_10,local_10 + 0x10), cVar1 == '\0')))) {
local_64 = 0;
if (*(long *)(local_60 + 0x6a8) != 0) {
local_64 = -*local_20;
}
local_10[0x7d] = -1;
cVar1 = _ma_write_clr(local_10,local_18,0x12,*(long *)(local_60 + 0x6a8) != 0,local_64,
&local_70,0);
if (cVar1 == '\0') {
local_39 = 0;
goto LAB_0015c1b8;
}
}
}
local_39 = 1;
_ma_mark_file_crashed(local_60);
local_70 = 0;
LAB_0015c1b8:
if (*(int *)((long)local_10 + 0x644) != 0) {
_ma_bitmap_flushable(local_10,0xffffffff);
}
_ma_unpin_all_pages_and_finalize_row(local_10,local_70);
return local_39;
}
| |
45,797 | google::protobuf::compiler::CodeGeneratorRequest::_InternalParse(char const*, google::protobuf::internal::ParseContext*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/plugin.pb.cc | const char* CodeGeneratorRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
_Internal::HasBits has_bits{};
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// repeated string file_to_generate = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
ptr -= 1;
do {
ptr += 1;
auto str = _internal_add_file_to_generate();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
#ifndef NDEBUG
::_pbi::VerifyUTF8(str, "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate");
#endif // !NDEBUG
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
} else
goto handle_unusual;
continue;
// optional string parameter = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
auto str = _internal_mutable_parameter();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
#ifndef NDEBUG
::_pbi::VerifyUTF8(str, "google.protobuf.compiler.CodeGeneratorRequest.parameter");
#endif // !NDEBUG
} else
goto handle_unusual;
continue;
// optional .google.protobuf.compiler.Version compiler_version = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
ptr = ctx->ParseMessage(_internal_mutable_compiler_version(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// repeated .google.protobuf.FileDescriptorProto proto_file = 15;
case 15:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 122)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(_internal_add_proto_file(), ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<122>(ptr));
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
_impl_._has_bits_.Or(has_bits);
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
} | O0 | cpp | google::protobuf::compiler::CodeGeneratorRequest::_InternalParse(char const*, google::protobuf::internal::ParseContext*):
subq $0x98, %rsp
movq %rdi, 0x68(%rsp)
movq %rsi, 0x60(%rsp)
movq %rdx, 0x58(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0x54(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rax
movq %rax, %rcx
addq $0x4, %rcx
movq %rcx, 0x30(%rsp)
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq 0x30(%rsp), %rcx
movl $0x0, (%rax)
addq $0x4, %rax
cmpq %rcx, %rax
movq %rax, 0x38(%rsp)
jne 0xaaa30
jmp 0xaaa50
movq 0x58(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0xaf060
xorb $-0x1, %al
testb $0x1, %al
jne 0xaaa6a
jmp 0xaad80
movq 0x60(%rsp), %rdi
leaq 0x50(%rsp), %rsi
xorl %edx, %edx
callq 0xaf090
movq %rax, 0x60(%rsp)
movl 0x50(%rsp), %eax
shrl $0x3, %eax
decl %eax
movl %eax, %ecx
movq %rcx, 0x20(%rsp)
subl $0xe, %eax
ja 0xaac93
movq 0x20(%rsp), %rax
leaq 0x30adf7(%rip), %rcx # 0x3b589c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0x50(%rsp), %eax
movzbl %al, %eax
cmpl $0xa, %eax
jne 0xaab3f
movq 0x60(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x60(%rsp)
movq 0x28(%rsp), %rdi
movq 0x60(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x60(%rsp)
callq 0xafa80
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x58(%rsp), %rdx
callq 0x1f9280
movq %rax, 0x60(%rsp)
cmpq $0x0, 0x60(%rsp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0xaab13
jmp 0xaab18
jmp 0xaada2
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0xafaa0
testb $0x1, %al
jne 0xaab2d
jmp 0xaab3d
jmp 0xaab2f
movq 0x60(%rsp), %rdi
callq 0xafac0
testb $0x1, %al
jne 0xaaacc
jmp 0xaab44
jmp 0xaac95
jmp 0xaaa50
movl 0x50(%rsp), %eax
movzbl %al, %eax
cmpl $0x12, %eax
jne 0xaab95
movq 0x28(%rsp), %rdi
callq 0xafae0
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x58(%rsp), %rdx
callq 0x1f9280
movq %rax, 0x60(%rsp)
cmpq $0x0, 0x60(%rsp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0xaab8e
jmp 0xaab93
jmp 0xaada2
jmp 0xaab9a
jmp 0xaac95
jmp 0xaaa50
movl 0x50(%rsp), %eax
movzbl %al, %eax
cmpl $0x1a, %eax
jne 0xaabee
movq 0x28(%rsp), %rdi
movq 0x58(%rsp), %rax
movq %rax, 0x18(%rsp)
callq 0x3d1c0
movq 0x18(%rsp), %rdi
movq %rax, %rsi
movq 0x60(%rsp), %rdx
callq 0x1f8c30
movq %rax, 0x60(%rsp)
cmpq $0x0, 0x60(%rsp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0xaabe7
jmp 0xaabec
jmp 0xaada2
jmp 0xaabf3
jmp 0xaac95
jmp 0xaaa50
movl 0x50(%rsp), %eax
movzbl %al, %eax
cmpl $0x7a, %eax
jne 0xaac8c
movq 0x60(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x60(%rsp)
movq 0x28(%rsp), %rdi
movq 0x60(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x60(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x10(%rsp)
callq 0xafb40
movq 0x10(%rsp), %rdi
movq %rax, %rsi
movq 0x60(%rsp), %rdx
callq 0x1f8c30
movq %rax, 0x60(%rsp)
cmpq $0x0, 0x60(%rsp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0xaac60
jmp 0xaac65
jmp 0xaada2
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0xafaa0
testb $0x1, %al
jne 0xaac7a
jmp 0xaac8a
jmp 0xaac7c
movq 0x60(%rsp), %rdi
callq 0xafb60
testb $0x1, %al
jne 0xaac16
jmp 0xaac8e
jmp 0xaac95
jmp 0xaaa50
jmp 0xaac95
cmpl $0x0, 0x50(%rsp)
je 0xaaca8
movl 0x50(%rsp), %eax
andl $0x7, %eax
cmpl $0x4, %eax
jne 0xaacd1
cmpq $0x0, 0x60(%rsp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0xaacb9
jmp 0xaacbe
jmp 0xaada2
movq 0x58(%rsp), %rdi
movl 0x50(%rsp), %esi
callq 0xaf280
jmp 0xaad82
movq 0x28(%rsp), %rax
movl 0x50(%rsp), %ecx
movq %rcx, (%rsp)
addq $0x8, %rax
movq %rax, 0x78(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %rax, 0x88(%rsp)
movq 0x88(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x90(%rsp), %rax
movq (%rax), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xaad36
movq 0x8(%rsp), %rdi
callq 0xb1a70
addq $0x8, %rax
movq %rax, 0x80(%rsp)
jmp 0xaad48
movq 0x8(%rsp), %rdi
callq 0xb1a90
movq %rax, 0x80(%rsp)
movq (%rsp), %rdi
movq 0x80(%rsp), %rsi
movq 0x60(%rsp), %rdx
movq 0x58(%rsp), %rcx
callq 0x366cb0
movq %rax, 0x60(%rsp)
cmpq $0x0, 0x60(%rsp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0xaad79
jmp 0xaad7b
jmp 0xaada2
jmp 0xaaa50
jmp 0xaad82
movq 0x28(%rsp), %rdi
addq $0x10, %rdi
leaq 0x54(%rsp), %rsi
callq 0xaf2a0
movq 0x60(%rsp), %rax
addq $0x98, %rsp
retq
movq $0x0, 0x60(%rsp)
jmp 0xaad82
nopl (%rax)
| _ZN6google8protobuf8compiler20CodeGeneratorRequest14_InternalParseEPKcPNS0_8internal12ParseContextE:
sub rsp, 98h
mov qword ptr [rsp+98h+var_30], rdi; int
mov [rsp+98h+var_38], rsi
mov [rsp+98h+var_40], rdx; int
mov rax, qword ptr [rsp+98h+var_30]
mov [rsp+98h+var_70], rax; int
lea rax, [rsp+98h+var_44]
mov qword ptr [rsp+98h+var_28], rax; int
mov rax, qword ptr [rsp+98h+var_28]
mov rcx, rax
add rcx, 4
mov qword ptr [rsp+98h+var_68], rcx; int
mov qword ptr [rsp+98h+var_60], rax
loc_AAA30:
mov rax, qword ptr [rsp+98h+var_60]
mov rcx, qword ptr [rsp+98h+var_68]
mov dword ptr [rax], 0
add rax, 4
cmp rax, rcx
mov qword ptr [rsp+98h+var_60], rax; int
jnz short loc_AAA30
jmp short $+2
loc_AAA50:
mov rdi, [rsp+98h+var_40]; this
lea rsi, [rsp+98h+var_38]; char **
call _ZN6google8protobuf8internal12ParseContext4DoneEPPKc; google::protobuf::internal::ParseContext::Done(char const**)
xor al, 0FFh
test al, 1
jnz short loc_AAA6A
jmp loc_AAD80
loc_AAA6A:
mov rdi, [rsp+98h+var_38]; this
lea rsi, [rsp+98h+var_48]; char *
xor edx, edx; unsigned int *
call _ZN6google8protobuf8internal7ReadTagEPKcPjj; google::protobuf::internal::ReadTag(char const*,uint *,uint)
mov [rsp+98h+var_38], rax; int
mov eax, dword ptr [rsp+98h+var_48]
shr eax, 3
dec eax; switch 15 cases
mov ecx, eax
mov qword ptr [rsp+98h+var_78], rcx; int
sub eax, 0Eh
ja def_AAAAC; jumptable 00000000000AAAAC default case, cases 4-14
mov rax, qword ptr [rsp+98h+var_78]
lea rcx, jpt_AAAAC
movsxd rax, ds:(jpt_AAAAC - 3B589Ch)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_AAAAE:
mov eax, dword ptr [rsp+98h+var_48]; jumptable 00000000000AAAAC case 1
movzx eax, al
cmp eax, 0Ah
jnz loc_AAB3F
mov rax, [rsp+98h+var_38]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rsp+98h+var_38], rax
loc_AAACC:
mov rdi, [rsp+98h+var_70]
mov rax, [rsp+98h+var_38]
add rax, 1
mov [rsp+98h+var_38], rax
call _ZN6google8protobuf8compiler20CodeGeneratorRequest30_internal_add_file_to_generateB5cxx11Ev; google::protobuf::compiler::CodeGeneratorRequest::_internal_add_file_to_generate(void)
mov [rsp+98h+var_50], rax
mov rdi, [rsp+98h+var_50]
mov rsi, [rsp+98h+var_38]
mov rdx, [rsp+98h+var_40]
call _ZN6google8protobuf8internal24InlineGreedyStringParserEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcPNS1_12ParseContextE; google::protobuf::internal::InlineGreedyStringParser(std::string *,char const*,google::protobuf::internal::ParseContext *)
mov [rsp+98h+var_38], rax
cmp [rsp+98h+var_38], 0
setnz al
xor al, 0FFh
test al, 1
jnz short loc_AAB13
jmp short loc_AAB18
loc_AAB13:
jmp loc_AADA2
loc_AAB18:
mov rdi, [rsp+98h+var_40]; this
mov rsi, [rsp+98h+var_38]; char *
call _ZN6google8protobuf8internal18EpsCopyInputStream13DataAvailableEPKc; google::protobuf::internal::EpsCopyInputStream::DataAvailable(char const*)
test al, 1
jnz short loc_AAB2D
jmp short loc_AAB3D
loc_AAB2D:
jmp short $+2
loc_AAB2F:
mov rdi, [rsp+98h+var_38]
call _ZN6google8protobuf8internal9ExpectTagILj10EEEbPKc; google::protobuf::internal::ExpectTag<10u>(char const*)
test al, 1
jnz short loc_AAACC
loc_AAB3D:
jmp short loc_AAB44
loc_AAB3F:
jmp loc_AAC95
loc_AAB44:
jmp loc_AAA50
loc_AAB49:
mov eax, dword ptr [rsp+98h+var_48]; jumptable 00000000000AAAAC case 2
movzx eax, al
cmp eax, 12h
jnz short loc_AAB95
mov rdi, [rsp+98h+var_70]
call _ZN6google8protobuf8compiler20CodeGeneratorRequest27_internal_mutable_parameterB5cxx11Ev; google::protobuf::compiler::CodeGeneratorRequest::_internal_mutable_parameter(void)
mov [rsp+98h+var_58], rax
mov rdi, [rsp+98h+var_58]
mov rsi, [rsp+98h+var_38]
mov rdx, [rsp+98h+var_40]
call _ZN6google8protobuf8internal24InlineGreedyStringParserEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcPNS1_12ParseContextE; google::protobuf::internal::InlineGreedyStringParser(std::string *,char const*,google::protobuf::internal::ParseContext *)
mov [rsp+98h+var_38], rax
cmp [rsp+98h+var_38], 0
setnz al
xor al, 0FFh
test al, 1
jnz short loc_AAB8E
jmp short loc_AAB93
loc_AAB8E:
jmp loc_AADA2
loc_AAB93:
jmp short loc_AAB9A
loc_AAB95:
jmp loc_AAC95
loc_AAB9A:
jmp loc_AAA50
loc_AAB9F:
mov eax, dword ptr [rsp+98h+var_48]; jumptable 00000000000AAAAC case 3
movzx eax, al
cmp eax, 1Ah
jnz short loc_AABEE
mov rdi, [rsp+98h+var_70]; this
mov rax, [rsp+98h+var_40]
mov [rsp+98h+var_80], rax
call _ZN6google8protobuf8compiler20CodeGeneratorRequest34_internal_mutable_compiler_versionEv; google::protobuf::compiler::CodeGeneratorRequest::_internal_mutable_compiler_version(void)
mov rdi, [rsp+98h+var_80]; this
mov rsi, rax; google::protobuf::MessageLite *
mov rdx, [rsp+98h+var_38]; char *
call _ZN6google8protobuf8internal12ParseContext12ParseMessageEPNS0_11MessageLiteEPKc; google::protobuf::internal::ParseContext::ParseMessage(google::protobuf::MessageLite *,char const*)
mov [rsp+98h+var_38], rax
cmp [rsp+98h+var_38], 0
setnz al
xor al, 0FFh
test al, 1
jnz short loc_AABE7
jmp short loc_AABEC
loc_AABE7:
jmp loc_AADA2
loc_AABEC:
jmp short loc_AABF3
loc_AABEE:
jmp loc_AAC95
loc_AABF3:
jmp loc_AAA50
loc_AABF8:
mov eax, dword ptr [rsp+98h+var_48]; jumptable 00000000000AAAAC case 15
movzx eax, al
cmp eax, 7Ah ; 'z'
jnz loc_AAC8C
mov rax, [rsp+98h+var_38]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rsp+98h+var_38], rax
loc_AAC16:
mov rdi, [rsp+98h+var_70]; this
mov rax, [rsp+98h+var_38]
add rax, 1
mov [rsp+98h+var_38], rax
mov rax, [rsp+98h+var_40]
mov [rsp+98h+var_88], rax
call _ZN6google8protobuf8compiler20CodeGeneratorRequest24_internal_add_proto_fileEv; google::protobuf::compiler::CodeGeneratorRequest::_internal_add_proto_file(void)
mov rdi, [rsp+98h+var_88]; this
mov rsi, rax; google::protobuf::MessageLite *
mov rdx, [rsp+98h+var_38]; char *
call _ZN6google8protobuf8internal12ParseContext12ParseMessageEPNS0_11MessageLiteEPKc; google::protobuf::internal::ParseContext::ParseMessage(google::protobuf::MessageLite *,char const*)
mov [rsp+98h+var_38], rax
cmp [rsp+98h+var_38], 0
setnz al
xor al, 0FFh
test al, 1
jnz short loc_AAC60
jmp short loc_AAC65
loc_AAC60:
jmp loc_AADA2
loc_AAC65:
mov rdi, [rsp+98h+var_40]; this
mov rsi, [rsp+98h+var_38]; char *
call _ZN6google8protobuf8internal18EpsCopyInputStream13DataAvailableEPKc; google::protobuf::internal::EpsCopyInputStream::DataAvailable(char const*)
test al, 1
jnz short loc_AAC7A
jmp short loc_AAC8A
loc_AAC7A:
jmp short $+2
loc_AAC7C:
mov rdi, [rsp+98h+var_38]
call _ZN6google8protobuf8internal9ExpectTagILj122EEEbPKc; google::protobuf::internal::ExpectTag<122u>(char const*)
test al, 1
jnz short loc_AAC16
loc_AAC8A:
jmp short loc_AAC8E
loc_AAC8C:
jmp short loc_AAC95
loc_AAC8E:
jmp loc_AAA50
def_AAAAC:
jmp short $+2; jumptable 00000000000AAAAC default case, cases 4-14
loc_AAC95:
cmp dword ptr [rsp+98h+var_48], 0
jz short loc_AACA8
mov eax, dword ptr [rsp+98h+var_48]
and eax, 7
cmp eax, 4
jnz short loc_AACD1
loc_AACA8:
cmp [rsp+98h+var_38], 0
setnz al
xor al, 0FFh
test al, 1
jnz short loc_AACB9
jmp short loc_AACBE
loc_AACB9:
jmp loc_AADA2
loc_AACBE:
mov rdi, [rsp+98h+var_40]; this
mov esi, dword ptr [rsp+98h+var_48]; unsigned int
call _ZN6google8protobuf8internal18EpsCopyInputStream10SetLastTagEj; google::protobuf::internal::EpsCopyInputStream::SetLastTag(uint)
jmp loc_AAD82
loc_AACD1:
mov rax, [rsp+98h+var_70]
mov ecx, dword ptr [rsp+98h+var_48]; int
mov [rsp+98h+var_98], rcx; int
add rax, 8
mov qword ptr [rsp+98h+var_20], rax; int
mov rax, qword ptr [rsp+98h+var_20]
mov qword ptr [rsp+98h+var_90], rax; int
mov [rsp+98h+var_10], rax
mov rax, [rsp+98h+var_10]
mov [rsp+98h+var_8], rax
mov rax, [rsp+98h+var_8]
mov rax, [rax]
and rax, 1
cmp rax, 0
jz short loc_AAD36
mov rdi, qword ptr [rsp+98h+var_90]
call _ZNK6google8protobuf8internal16InternalMetadata8PtrValueINS2_9ContainerINS0_15UnknownFieldSetEEEEEPT_v; google::protobuf::internal::InternalMetadata::PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>>(void)
add rax, 8
mov [rsp+98h+var_18], rax
jmp short loc_AAD48
loc_AAD36:
mov rdi, qword ptr [rsp+98h+var_90]; int
call _ZN6google8protobuf8internal16InternalMetadata27mutable_unknown_fields_slowINS0_15UnknownFieldSetEEEPT_v; google::protobuf::internal::InternalMetadata::mutable_unknown_fields_slow<google::protobuf::UnknownFieldSet>(void)
mov [rsp+98h+var_18], rax
loc_AAD48:
mov rdi, [rsp+98h+var_98]; this
mov rsi, [rsp+98h+var_18]; unsigned __int64
mov rdx, [rsp+98h+var_38]; google::protobuf::UnknownFieldSet *
mov rcx, [rsp+98h+var_40]; char *
call _ZN6google8protobuf8internal17UnknownFieldParseEmPNS0_15UnknownFieldSetEPKcPNS1_12ParseContextE; google::protobuf::internal::UnknownFieldParse(ulong,google::protobuf::UnknownFieldSet *,char const*,google::protobuf::internal::ParseContext *)
mov [rsp+98h+var_38], rax
cmp [rsp+98h+var_38], 0
setnz al
xor al, 0FFh
test al, 1
jnz short loc_AAD79
jmp short loc_AAD7B
loc_AAD79:
jmp short loc_AADA2
loc_AAD7B:
jmp loc_AAA50
loc_AAD80:
jmp short $+2
loc_AAD82:
mov rdi, [rsp+98h+var_70]
add rdi, 10h
lea rsi, [rsp+98h+var_44]
call _ZN6google8protobuf8internal7HasBitsILm1EE2OrERKS3_; google::protobuf::internal::HasBits<1ul>::Or(google::protobuf::internal::HasBits<1ul> const&)
mov rax, [rsp+98h+var_38]
add rsp, 98h
retn
loc_AADA2:
mov [rsp+98h+var_38], 0
jmp short loc_AAD82
| google::protobuf::internal * google::protobuf::compiler::CodeGeneratorRequest::_InternalParse(
google::protobuf::compiler::CodeGeneratorRequest *this,
google::protobuf::internal *a2,
google::protobuf::internal::ParseContext *a3)
{
unsigned int v3; // ecx
int v4; // edx
int v5; // r8d
int v6; // r9d
google::protobuf::MessageLite *v7; // rax
google::protobuf::MessageLite *v8; // rax
google::protobuf::internal::ParseContext *v9; // r8
google::protobuf::internal *v11; // [rsp+0h] [rbp-98h]
int v12[2]; // [rsp+8h] [rbp-90h]
google::protobuf::internal::EpsCopyInputStream *v13; // [rsp+10h] [rbp-88h]
google::protobuf::internal::EpsCopyInputStream *v14; // [rsp+18h] [rbp-80h]
google::protobuf::compiler::CodeGeneratorRequest *v15; // [rsp+28h] [rbp-70h]
google::protobuf::internal::EpsCopyInputStream **v16; // [rsp+30h] [rbp-68h]
int *v17; // [rsp+38h] [rbp-60h]
long long v18; // [rsp+40h] [rbp-58h]
long long v19; // [rsp+48h] [rbp-50h]
char v20[4]; // [rsp+50h] [rbp-48h] BYREF
int v21; // [rsp+54h] [rbp-44h] BYREF
google::protobuf::internal::EpsCopyInputStream *v22; // [rsp+58h] [rbp-40h] BYREF
google::protobuf::internal *Tag; // [rsp+60h] [rbp-38h] BYREF
int v24[2]; // [rsp+68h] [rbp-30h]
int v25[2]; // [rsp+70h] [rbp-28h]
int v26[2]; // [rsp+78h] [rbp-20h]
unsigned long long v27; // [rsp+80h] [rbp-18h]
char *v28; // [rsp+88h] [rbp-10h]
char *v29; // [rsp+90h] [rbp-8h]
*(_QWORD *)v24 = this;
Tag = a2;
v22 = a3;
v15 = this;
*(_QWORD *)v25 = &v21;
v16 = &v22;
v17 = &v21;
do
*v17++ = 0;
while ( v17 != (int *)&v22 );
LABEL_3:
while ( 2 )
{
if ( (google::protobuf::internal::ParseContext::Done(v22, (const char **)&Tag) & 1) != 0 )
goto LABEL_35;
Tag = (google::protobuf::internal *)google::protobuf::internal::ReadTag(Tag, v20, 0LL, v3);
switch ( *(_DWORD *)v20 >> 3 )
{
case 1:
if ( v20[0] != 10 )
goto LABEL_26;
Tag = (google::protobuf::internal *)((char *)Tag - 1);
do
{
Tag = (google::protobuf::internal *)((char *)Tag + 1);
v19 = google::protobuf::compiler::CodeGeneratorRequest::_internal_add_file_to_generate[abi:cxx11](v15);
Tag = (google::protobuf::internal *)google::protobuf::internal::InlineGreedyStringParser(v19, Tag, v22);
if ( !Tag )
goto LABEL_36;
}
while ( (google::protobuf::internal::EpsCopyInputStream::DataAvailable(v22, (const char *)Tag) & 1) != 0
&& (google::protobuf::internal::ExpectTag<10u>(Tag) & 1) != 0 );
continue;
case 2:
if ( v20[0] != 18 )
goto LABEL_26;
v18 = google::protobuf::compiler::CodeGeneratorRequest::_internal_mutable_parameter[abi:cxx11](v15);
Tag = (google::protobuf::internal *)google::protobuf::internal::InlineGreedyStringParser(v18, Tag, v22);
if ( Tag )
continue;
goto LABEL_36;
case 3:
if ( v20[0] != 26 )
goto LABEL_26;
v14 = v22;
v7 = (google::protobuf::MessageLite *)google::protobuf::compiler::CodeGeneratorRequest::_internal_mutable_compiler_version(v15);
Tag = (google::protobuf::internal *)google::protobuf::internal::ParseContext::ParseMessage(
v14,
v7,
(const char *)Tag);
if ( Tag )
continue;
goto LABEL_36;
case 0xF:
if ( v20[0] != 122 )
goto LABEL_26;
Tag = (google::protobuf::internal *)((char *)Tag - 1);
while ( 1 )
{
Tag = (google::protobuf::internal *)((char *)Tag + 1);
v13 = v22;
v8 = (google::protobuf::MessageLite *)google::protobuf::compiler::CodeGeneratorRequest::_internal_add_proto_file(v15);
Tag = (google::protobuf::internal *)google::protobuf::internal::ParseContext::ParseMessage(
v13,
v8,
(const char *)Tag);
if ( !Tag )
goto LABEL_36;
if ( (google::protobuf::internal::EpsCopyInputStream::DataAvailable(v22, (const char *)Tag) & 1) == 0
|| (google::protobuf::internal::ExpectTag<122u>(Tag) & 1) == 0 )
{
goto LABEL_3;
}
}
default:
LABEL_26:
if ( *(_DWORD *)v20 && (v20[0] & 7) != 4 )
{
v11 = (google::protobuf::internal *)*(unsigned int *)v20;
*(_QWORD *)v26 = (char *)v15 + 8;
*(_QWORD *)v12 = (char *)v15 + 8;
v28 = (char *)v15 + 8;
v29 = (char *)v15 + 8;
if ( (*((_QWORD *)v15 + 1) & 1LL) != 0 )
v27 = google::protobuf::internal::InternalMetadata::PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>>(*(_QWORD *)v12)
+ 8;
else
v27 = google::protobuf::internal::InternalMetadata::mutable_unknown_fields_slow<google::protobuf::UnknownFieldSet>(
v12[0],
(int)v20,
v4,
*(int *)v20,
v5,
v6,
*(int *)v20,
v12[0],
v13,
(int)v14,
(*(_DWORD *)v20 >> 3) - 1,
(int)v15,
(int)v16,
(int)v17,
v18,
v19,
*(int *)v20,
(int)v22,
(int)Tag,
v24[0],
v25[0],
v26[0],
v27);
Tag = (google::protobuf::internal *)google::protobuf::internal::UnknownFieldParse(
v11,
v27,
Tag,
(const char *)v22,
v9);
if ( !Tag )
goto LABEL_36;
continue;
}
if ( Tag )
google::protobuf::internal::EpsCopyInputStream::SetLastTag(v22, *(unsigned int *)v20);
else
LABEL_36:
Tag = 0LL;
LABEL_35:
google::protobuf::internal::HasBits<1ul>::Or((char *)v15 + 16, &v21);
return Tag;
}
}
}
| _InternalParse:
SUB RSP,0x98
MOV qword ptr [RSP + 0x68],RDI
MOV qword ptr [RSP + 0x60],RSI
MOV qword ptr [RSP + 0x58],RDX
MOV RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0x28],RAX
LEA RAX,[RSP + 0x54]
MOV qword ptr [RSP + 0x70],RAX
MOV RAX,qword ptr [RSP + 0x70]
MOV RCX,RAX
ADD RCX,0x4
MOV qword ptr [RSP + 0x30],RCX
MOV qword ptr [RSP + 0x38],RAX
LAB_001aaa30:
MOV RAX,qword ptr [RSP + 0x38]
MOV RCX,qword ptr [RSP + 0x30]
MOV dword ptr [RAX],0x0
ADD RAX,0x4
CMP RAX,RCX
MOV qword ptr [RSP + 0x38],RAX
JNZ 0x001aaa30
JMP 0x001aaa50
LAB_001aaa50:
MOV RDI,qword ptr [RSP + 0x58]
LEA RSI,[RSP + 0x60]
CALL 0x001af060
XOR AL,0xff
TEST AL,0x1
JNZ 0x001aaa6a
JMP 0x001aad80
LAB_001aaa6a:
MOV RDI,qword ptr [RSP + 0x60]
LEA RSI,[RSP + 0x50]
XOR EDX,EDX
CALL 0x001af090
MOV qword ptr [RSP + 0x60],RAX
MOV EAX,dword ptr [RSP + 0x50]
SHR EAX,0x3
DEC EAX
MOV ECX,EAX
MOV qword ptr [RSP + 0x20],RCX
SUB EAX,0xe
JA 0x001aac93
MOV RAX,qword ptr [RSP + 0x20]
LEA RCX,[0x4b589c]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_1:
MOV EAX,dword ptr [RSP + 0x50]
MOVZX EAX,AL
CMP EAX,0xa
JNZ 0x001aab3f
MOV RAX,qword ptr [RSP + 0x60]
ADD RAX,-0x1
MOV qword ptr [RSP + 0x60],RAX
LAB_001aaacc:
MOV RDI,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x60]
ADD RAX,0x1
MOV qword ptr [RSP + 0x60],RAX
CALL 0x001afa80
MOV qword ptr [RSP + 0x48],RAX
MOV RDI,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x60]
MOV RDX,qword ptr [RSP + 0x58]
CALL 0x002f9280
MOV qword ptr [RSP + 0x60],RAX
CMP qword ptr [RSP + 0x60],0x0
SETNZ AL
XOR AL,0xff
TEST AL,0x1
JNZ 0x001aab13
JMP 0x001aab18
LAB_001aab13:
JMP 0x001aada2
LAB_001aab18:
MOV RDI,qword ptr [RSP + 0x58]
MOV RSI,qword ptr [RSP + 0x60]
CALL 0x001afaa0
TEST AL,0x1
JNZ 0x001aab2d
JMP 0x001aab3d
LAB_001aab2d:
JMP 0x001aab2f
LAB_001aab2f:
MOV RDI,qword ptr [RSP + 0x60]
CALL 0x001afac0
TEST AL,0x1
JNZ 0x001aaacc
LAB_001aab3d:
JMP 0x001aab44
LAB_001aab3f:
JMP 0x001aac95
LAB_001aab44:
JMP 0x001aaa50
caseD_2:
MOV EAX,dword ptr [RSP + 0x50]
MOVZX EAX,AL
CMP EAX,0x12
JNZ 0x001aab95
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x001afae0
MOV qword ptr [RSP + 0x40],RAX
MOV RDI,qword ptr [RSP + 0x40]
MOV RSI,qword ptr [RSP + 0x60]
MOV RDX,qword ptr [RSP + 0x58]
CALL 0x002f9280
MOV qword ptr [RSP + 0x60],RAX
CMP qword ptr [RSP + 0x60],0x0
SETNZ AL
XOR AL,0xff
TEST AL,0x1
JNZ 0x001aab8e
JMP 0x001aab93
LAB_001aab8e:
JMP 0x001aada2
LAB_001aab93:
JMP 0x001aab9a
LAB_001aab95:
JMP 0x001aac95
LAB_001aab9a:
JMP 0x001aaa50
caseD_3:
MOV EAX,dword ptr [RSP + 0x50]
MOVZX EAX,AL
CMP EAX,0x1a
JNZ 0x001aabee
MOV RDI,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x18],RAX
CALL 0x0013d1c0
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,RAX
MOV RDX,qword ptr [RSP + 0x60]
CALL 0x002f8c30
MOV qword ptr [RSP + 0x60],RAX
CMP qword ptr [RSP + 0x60],0x0
SETNZ AL
XOR AL,0xff
TEST AL,0x1
JNZ 0x001aabe7
JMP 0x001aabec
LAB_001aabe7:
JMP 0x001aada2
LAB_001aabec:
JMP 0x001aabf3
LAB_001aabee:
JMP 0x001aac95
LAB_001aabf3:
JMP 0x001aaa50
caseD_f:
MOV EAX,dword ptr [RSP + 0x50]
MOVZX EAX,AL
CMP EAX,0x7a
JNZ 0x001aac8c
MOV RAX,qword ptr [RSP + 0x60]
ADD RAX,-0x1
MOV qword ptr [RSP + 0x60],RAX
LAB_001aac16:
MOV RDI,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x60]
ADD RAX,0x1
MOV qword ptr [RSP + 0x60],RAX
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x001afb40
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,RAX
MOV RDX,qword ptr [RSP + 0x60]
CALL 0x002f8c30
MOV qword ptr [RSP + 0x60],RAX
CMP qword ptr [RSP + 0x60],0x0
SETNZ AL
XOR AL,0xff
TEST AL,0x1
JNZ 0x001aac60
JMP 0x001aac65
LAB_001aac60:
JMP 0x001aada2
LAB_001aac65:
MOV RDI,qword ptr [RSP + 0x58]
MOV RSI,qword ptr [RSP + 0x60]
CALL 0x001afaa0
TEST AL,0x1
JNZ 0x001aac7a
JMP 0x001aac8a
LAB_001aac7a:
JMP 0x001aac7c
LAB_001aac7c:
MOV RDI,qword ptr [RSP + 0x60]
CALL 0x001afb60
TEST AL,0x1
JNZ 0x001aac16
LAB_001aac8a:
JMP 0x001aac8e
LAB_001aac8c:
JMP 0x001aac95
LAB_001aac8e:
JMP 0x001aaa50
caseD_4:
JMP 0x001aac95
LAB_001aac95:
CMP dword ptr [RSP + 0x50],0x0
JZ 0x001aaca8
MOV EAX,dword ptr [RSP + 0x50]
AND EAX,0x7
CMP EAX,0x4
JNZ 0x001aacd1
LAB_001aaca8:
CMP qword ptr [RSP + 0x60],0x0
SETNZ AL
XOR AL,0xff
TEST AL,0x1
JNZ 0x001aacb9
JMP 0x001aacbe
LAB_001aacb9:
JMP 0x001aada2
LAB_001aacbe:
MOV RDI,qword ptr [RSP + 0x58]
MOV ESI,dword ptr [RSP + 0x50]
CALL 0x001af280
JMP 0x001aad82
LAB_001aacd1:
MOV RAX,qword ptr [RSP + 0x28]
MOV ECX,dword ptr [RSP + 0x50]
MOV qword ptr [RSP],RCX
ADD RAX,0x8
MOV qword ptr [RSP + 0x78],RAX
MOV RAX,qword ptr [RSP + 0x78]
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP + 0x88],RAX
MOV RAX,qword ptr [RSP + 0x88]
MOV qword ptr [RSP + 0x90],RAX
MOV RAX,qword ptr [RSP + 0x90]
MOV RAX,qword ptr [RAX]
AND RAX,0x1
CMP RAX,0x0
JZ 0x001aad36
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001b1a70
ADD RAX,0x8
MOV qword ptr [RSP + 0x80],RAX
JMP 0x001aad48
LAB_001aad36:
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001b1a90
MOV qword ptr [RSP + 0x80],RAX
LAB_001aad48:
MOV RDI,qword ptr [RSP]
MOV RSI,qword ptr [RSP + 0x80]
MOV RDX,qword ptr [RSP + 0x60]
MOV RCX,qword ptr [RSP + 0x58]
CALL 0x00466cb0
MOV qword ptr [RSP + 0x60],RAX
CMP qword ptr [RSP + 0x60],0x0
SETNZ AL
XOR AL,0xff
TEST AL,0x1
JNZ 0x001aad79
JMP 0x001aad7b
LAB_001aad79:
JMP 0x001aada2
LAB_001aad7b:
JMP 0x001aaa50
LAB_001aad80:
JMP 0x001aad82
LAB_001aad82:
MOV RDI,qword ptr [RSP + 0x28]
ADD RDI,0x10
LEA RSI,[RSP + 0x54]
CALL 0x001af2a0
MOV RAX,qword ptr [RSP + 0x60]
ADD RSP,0x98
RET
LAB_001aada2:
MOV qword ptr [RSP + 0x60],0x0
JMP 0x001aad82
|
/* google::protobuf::compiler::CodeGeneratorRequest::_InternalParse(char const*,
google::protobuf::internal::ParseContext*) */
char * __thiscall
google::protobuf::compiler::CodeGeneratorRequest::_InternalParse
(CodeGeneratorRequest *this,char *param_1,ParseContext *param_2)
{
ParseContext *pPVar1;
byte bVar2;
bool bVar3;
string *psVar4;
MessageLite *pMVar5;
ulong uVar6;
Container *pCVar7;
HasBits *local_60;
uint local_48;
HasBits local_44 [4];
ParseContext *local_40;
char *local_38;
CodeGeneratorRequest *local_30;
HasBits *local_28;
InternalMetadata *local_20;
UnknownFieldSet *local_18;
InternalMetadata *local_10;
InternalMetadata *local_8;
local_60 = local_44;
local_40 = param_2;
local_38 = param_1;
local_30 = this;
local_28 = local_60;
do {
*(int4 *)local_60 = 0;
local_60 = local_60 + 4;
} while (local_60 != (HasBits *)&local_40);
LAB_001aaa50:
do {
bVar2 = internal::ParseContext::Done(local_40,&local_38);
if (((bVar2 ^ 0xff) & 1) == 0) goto LAB_001aad82;
local_38 = (char *)internal::ReadTag(local_38,&local_48,0);
pPVar1 = local_40;
switch(local_48 >> 3) {
case 1:
if ((local_48 & 0xff) == 10) {
local_38 = local_38 + -1;
do {
local_38 = local_38 + 1;
psVar4 = (string *)_internal_add_file_to_generate_abi_cxx11_(this);
local_38 = (char *)internal::InlineGreedyStringParser(psVar4,local_38,local_40);
if (local_38 == (char *)0x0) goto LAB_001aada2;
uVar6 = internal::EpsCopyInputStream::DataAvailable
((EpsCopyInputStream *)local_40,local_38);
} while (((uVar6 & 1) != 0) && (bVar3 = internal::ExpectTag<10u>(local_38), bVar3));
goto LAB_001aaa50;
}
break;
case 2:
if ((local_48 & 0xff) != 0x12) break;
psVar4 = (string *)_internal_mutable_parameter_abi_cxx11_(this);
local_38 = (char *)internal::InlineGreedyStringParser(psVar4,local_38,local_40);
goto joined_r0x001aabe3;
case 3:
if ((local_48 & 0xff) == 0x1a) {
pMVar5 = (MessageLite *)_internal_mutable_compiler_version(this);
local_38 = (char *)internal::ParseContext::ParseMessage(pPVar1,pMVar5,local_38);
goto joined_r0x001aabe3;
}
break;
default:
break;
case 0xf:
if ((local_48 & 0xff) == 0x7a) {
local_38 = local_38 + -1;
do {
pPVar1 = local_40;
local_38 = local_38 + 1;
pMVar5 = (MessageLite *)_internal_add_proto_file(this);
local_38 = (char *)internal::ParseContext::ParseMessage(pPVar1,pMVar5,local_38);
if (local_38 == (char *)0x0) goto LAB_001aada2;
uVar6 = internal::EpsCopyInputStream::DataAvailable
((EpsCopyInputStream *)local_40,local_38);
} while (((uVar6 & 1) != 0) && (bVar3 = internal::ExpectTag<122u>(local_38), bVar3));
goto LAB_001aaa50;
}
}
if ((local_48 == 0) || ((local_48 & 7) == 4)) {
if (local_38 != (char *)0x0) {
internal::EpsCopyInputStream::SetLastTag((EpsCopyInputStream *)local_40,local_48);
goto LAB_001aad82;
}
goto LAB_001aada2;
}
uVar6 = (ulong)local_48;
local_20 = (InternalMetadata *)(this + 8);
local_10 = local_20;
local_8 = local_20;
if ((*(ulong *)local_20 & 1) == 0) {
local_18 = internal::InternalMetadata::
mutable_unknown_fields_slow<google::protobuf::UnknownFieldSet>(local_20);
}
else {
pCVar7 = internal::InternalMetadata::
PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>>
(local_20);
local_18 = (UnknownFieldSet *)(pCVar7 + 8);
}
local_38 = (char *)internal::UnknownFieldParse(uVar6,local_18,local_38,local_40);
joined_r0x001aabe3:
if (local_38 == (char *)0x0) {
LAB_001aada2:
local_38 = (char *)0x0;
LAB_001aad82:
internal::HasBits<1ul>::Or((HasBits<1ul> *)(this + 0x10),local_44);
return local_38;
}
} while( true );
}
| |
45,798 | stbi__get32be | dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-image.h | static stbi__uint32 stbi__get32be(stbi__context *s)
{
stbi__uint32 z = stbi__get16be(s);
return (z << 16) + stbi__get16be(s);
} | O1 | c | stbi__get32be:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x15736
movzbl %al, %ebp
movq %rbx, %rdi
callq 0x15736
movzbl %al, %r14d
shll $0x18, %ebp
shll $0x10, %r14d
orl %ebp, %r14d
movq %rbx, %rdi
callq 0x15736
movzbl %al, %ebp
shll $0x8, %ebp
movq %rbx, %rdi
callq 0x15736
movzbl %al, %eax
orl %ebp, %eax
orl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
| stbi__get32be:
push rbp
push r14
push rbx
mov rbx, rdi
call stbi__get8
movzx ebp, al
mov rdi, rbx
call stbi__get8
movzx r14d, al
shl ebp, 18h
shl r14d, 10h
or r14d, ebp
mov rdi, rbx
call stbi__get8
movzx ebp, al
shl ebp, 8
mov rdi, rbx
call stbi__get8
movzx eax, al
or eax, ebp
or eax, r14d
pop rbx
pop r14
pop rbp
retn
| long long stbi__get32be(long long a1)
{
int v1; // ebp
int v2; // r14d
int v3; // ebp
v1 = (unsigned __int8)stbi__get8(a1);
v2 = (v1 << 24) | ((unsigned __int8)stbi__get8(a1) << 16);
v3 = (unsigned __int8)stbi__get8(a1) << 8;
return v2 | v3 | (unsigned int)(unsigned __int8)stbi__get8(a1);
}
| stbi__get32be:
PUSH RBP
PUSH R14
PUSH RBX
MOV RBX,RDI
CALL 0x00115736
MOVZX EBP,AL
MOV RDI,RBX
CALL 0x00115736
MOVZX R14D,AL
SHL EBP,0x18
SHL R14D,0x10
OR R14D,EBP
MOV RDI,RBX
CALL 0x00115736
MOVZX EBP,AL
SHL EBP,0x8
MOV RDI,RBX
CALL 0x00115736
MOVZX EAX,AL
OR EAX,EBP
OR EAX,R14D
POP RBX
POP R14
POP RBP
RET
|
uint stbi__get32be(int8 param_1)
{
byte bVar1;
byte bVar2;
int1 uVar3;
int1 uVar4;
bVar1 = stbi__get8();
bVar2 = stbi__get8(param_1);
uVar3 = stbi__get8(param_1);
uVar4 = stbi__get8(param_1);
return (uint)CONCAT11(uVar3,uVar4) | (uint)bVar2 << 0x10 | (uint)bVar1 << 0x18;
}
| |
45,799 | binding_system_enter_lambda_scope | eshkol/src/frontend/binding/core/binding_scope.c | uint64_t binding_system_enter_lambda_scope(BindingSystem* system) {
assert(system != NULL);
// Create a new scope
uint64_t scope_id = binding_system_enter_scope(system);
if (scope_id == 0) {
return 0;
}
// Set scope type to lambda
if (system->scope_stack.types) {
for (size_t i = 0; i < system->scope_stack.count; i++) {
if (system->scope_stack.ids[i] == scope_id) {
system->scope_stack.types[i] = SCOPE_LAMBDA;
break;
}
}
}
return scope_id;
} | O3 | c | binding_system_enter_lambda_scope:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x7fb3
movq %rdi, %rbx
callq 0x7da0
testq %rax, %rax
je 0x7fac
movq 0x68(%rbx), %rcx
testq %rcx, %rcx
je 0x7fac
movq 0x78(%rbx), %rdx
testq %rdx, %rdx
je 0x7fac
movq 0x58(%rbx), %rdi
xorl %esi, %esi
cmpq %rax, (%rdi,%rsi,8)
je 0x7fa5
incq %rsi
cmpq %rsi, %rdx
jne 0x7f95
jmp 0x7fac
movl $0x2, (%rcx,%rsi,4)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x4b75(%rip), %rdi # 0xcb2f
leaq 0x4b7d(%rip), %rsi # 0xcb3e
leaq 0x4bfd(%rip), %rcx # 0xcbc5
movl $0x5b, %edx
callq 0x10b0
| binding_system_enter_lambda_scope:
push rbp
mov rbp, rsp
push rbx
push rax
test rdi, rdi
jz short loc_7FB3
mov rbx, rdi
call binding_system_enter_scope
test rax, rax
jz short loc_7FAC
mov rcx, [rbx+68h]
test rcx, rcx
jz short loc_7FAC
mov rdx, [rbx+78h]
test rdx, rdx
jz short loc_7FAC
mov rdi, [rbx+58h]
xor esi, esi
loc_7F95:
cmp [rdi+rsi*8], rax
jz short loc_7FA5
inc rsi
cmp rdx, rsi
jnz short loc_7F95
jmp short loc_7FAC
loc_7FA5:
mov dword ptr [rcx+rsi*4], 2
loc_7FAC:
add rsp, 8
pop rbx
pop rbp
retn
loc_7FB3:
lea rdi, aSystemNull; "system != NULL"
lea rsi, aWorkspaceLlm4b_6; "/workspace/llm4binary/github2025/eshkol"...
lea rcx, aUint64TBinding_0; "uint64_t binding_system_enter_lambda_sc"...
mov edx, 5Bh ; '['
call ___assert_fail
| long long binding_system_enter_lambda_scope(long long *a1)
{
long long result; // rax
long long v2; // rcx
long long v3; // rdx
long long v4; // rdi
long long v5; // rsi
if ( !a1 )
__assert_fail(
"system != NULL",
"/workspace/llm4binary/github2025/eshkol/src/frontend/binding/core/binding_scope.c",
91LL,
"uint64_t binding_system_enter_lambda_scope(BindingSystem *)");
result = binding_system_enter_scope(a1);
if ( result )
{
v2 = a1[13];
if ( v2 )
{
v3 = a1[15];
if ( v3 )
{
v4 = a1[11];
v5 = 0LL;
while ( *(_QWORD *)(v4 + 8 * v5) != result )
{
if ( v3 == ++v5 )
return result;
}
*(_DWORD *)(v2 + 4 * v5) = 2;
}
}
}
return result;
}
| binding_system_enter_lambda_scope:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
TEST RDI,RDI
JZ 0x00107fb3
MOV RBX,RDI
CALL 0x00107da0
TEST RAX,RAX
JZ 0x00107fac
MOV RCX,qword ptr [RBX + 0x68]
TEST RCX,RCX
JZ 0x00107fac
MOV RDX,qword ptr [RBX + 0x78]
TEST RDX,RDX
JZ 0x00107fac
MOV RDI,qword ptr [RBX + 0x58]
XOR ESI,ESI
LAB_00107f95:
CMP qword ptr [RDI + RSI*0x8],RAX
JZ 0x00107fa5
INC RSI
CMP RDX,RSI
JNZ 0x00107f95
JMP 0x00107fac
LAB_00107fa5:
MOV dword ptr [RCX + RSI*0x4],0x2
LAB_00107fac:
ADD RSP,0x8
POP RBX
POP RBP
RET
LAB_00107fb3:
LEA RDI,[0x10cb2f]
LEA RSI,[0x10cb3e]
LEA RCX,[0x10cbc5]
MOV EDX,0x5b
CALL 0x001010b0
|
void binding_system_enter_lambda_scope(long param_1)
{
long lVar1;
long lVar2;
if (param_1 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("system != NULL",
"/workspace/llm4binary/github2025/eshkol/src/frontend/binding/core/binding_scope.c"
,0x5b,"uint64_t binding_system_enter_lambda_scope(BindingSystem *)");
}
lVar1 = binding_system_enter_scope();
if (((lVar1 != 0) && (*(long *)(param_1 + 0x68) != 0)) && (*(long *)(param_1 + 0x78) != 0)) {
lVar2 = 0;
do {
if (*(long *)(*(long *)(param_1 + 0x58) + lVar2 * 8) == lVar1) {
*(int4 *)(*(long *)(param_1 + 0x68) + lVar2 * 4) = 2;
return;
}
lVar2 = lVar2 + 1;
} while (*(long *)(param_1 + 0x78) != lVar2);
}
return;
}
|
Subsets and Splits
C++ Functions With Standard Library Dependencies
Identifies C++ functions that depend on standard library components, revealing patterns in how developers utilize STL libraries and potentially highlighting common coding practices or dependencies in the dataset.
C++ Standard Library Function Analysis
Filters C++ code examples that use standard library containers and types, providing useful insights into common programming patterns and data structures in the dataset.
Random Training Function Samples
Performs basic filtering and random sampling of assembly code data without revealing meaningful patterns or relationships.
Random Training Function Samples
Retrieves a random sample of 1000 records from the training dataset, providing basic data exploration but offering limited analytical value beyond seeing raw entries.