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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
27,000 | LefDefParser::defiGcellGrid::print(_IO_FILE*) const | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiRowTrack.cpp | void defiGcellGrid::print(FILE* f) const {
fprintf(f, "GcellGrid '%s'\n", macro());
fprintf(f, " DO %d %d STEP %5.1f\n",
x(),
xNum(),
xStep());
} | O0 | cpp | LefDefParser::defiGcellGrid::print(_IO_FILE*) const:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq 0x30(%rsp), %rdi
movq %rdi, 0x10(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x8(%rsp)
callq 0x2fbb0
movq 0x8(%rsp), %rdi
movq %rax, %rdx
leaq 0x41ae5(%rip), %rsi # 0x716db
movb $0x0, %al
callq 0x7300
movq 0x10(%rsp), %rdi
movq 0x28(%rsp), %rax
movq %rax, 0x18(%rsp)
callq 0x2fb80
movq 0x10(%rsp), %rdi
movl %eax, 0x20(%rsp)
callq 0x2fb90
movq 0x10(%rsp), %rdi
movl %eax, 0x24(%rsp)
callq 0x2fba0
movq 0x18(%rsp), %rdi
movl 0x20(%rsp), %edx
movl 0x24(%rsp), %ecx
leaq 0x41aaa(%rip), %rsi # 0x716eb
movb $0x1, %al
callq 0x7300
addq $0x38, %rsp
retq
nopl (%rax)
| _ZNK12LefDefParser13defiGcellGrid5printEP8_IO_FILE:
sub rsp, 38h
mov [rsp+38h+var_8], rdi
mov [rsp+38h+var_10], rsi
mov rdi, [rsp+38h+var_8]; this
mov [rsp+38h+var_28], rdi
mov rax, [rsp+38h+var_10]
mov [rsp+38h+var_30], rax
call _ZNK12LefDefParser13defiGcellGrid5macroEv; LefDefParser::defiGcellGrid::macro(void)
mov rdi, [rsp+38h+var_30]
mov rdx, rax
lea rsi, aGcellgridS; "GcellGrid '%s'\n"
mov al, 0
call _fprintf
mov rdi, [rsp+38h+var_28]; this
mov rax, [rsp+38h+var_10]
mov [rsp+38h+var_20], rax
call _ZNK12LefDefParser13defiGcellGrid1xEv; LefDefParser::defiGcellGrid::x(void)
mov rdi, [rsp+38h+var_28]; this
mov [rsp+38h+var_18], eax
call _ZNK12LefDefParser13defiGcellGrid4xNumEv; LefDefParser::defiGcellGrid::xNum(void)
mov rdi, [rsp+38h+var_28]; this
mov [rsp+38h+var_14], eax
call _ZNK12LefDefParser13defiGcellGrid5xStepEv; LefDefParser::defiGcellGrid::xStep(void)
mov rdi, [rsp+38h+var_20]
mov edx, [rsp+38h+var_18]
mov ecx, [rsp+38h+var_14]
lea rsi, aDoDDStep51f; " DO %d %d STEP %5.1f\n"
mov al, 1
call _fprintf
add rsp, 38h
retn
| long long LefDefParser::defiGcellGrid::print(LefDefParser::defiGcellGrid *a1, long long a2)
{
const char *v2; // rax
double v3; // xmm0_8
int v5; // [rsp+20h] [rbp-18h]
int v6; // [rsp+24h] [rbp-14h]
v2 = (const char *)LefDefParser::defiGcellGrid::macro(a1);
fprintf(a2, "GcellGrid '%s'\n", v2);
v5 = LefDefParser::defiGcellGrid::x(a1);
v6 = LefDefParser::defiGcellGrid::xNum(a1);
v3 = LefDefParser::defiGcellGrid::xStep(a1);
return fprintf(a2, " DO %d %d STEP %5.1f\n", v5, v6, v3);
}
| print:
SUB RSP,0x38
MOV qword ptr [RSP + 0x30],RDI
MOV qword ptr [RSP + 0x28],RSI
MOV RDI,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x10],RDI
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x8],RAX
CALL 0x0012fbb0
MOV RDI,qword ptr [RSP + 0x8]
MOV RDX,RAX
LEA RSI,[0x1716db]
MOV AL,0x0
CALL 0x00107300
MOV RDI,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x18],RAX
CALL 0x0012fb80
MOV RDI,qword ptr [RSP + 0x10]
MOV dword ptr [RSP + 0x20],EAX
CALL 0x0012fb90
MOV RDI,qword ptr [RSP + 0x10]
MOV dword ptr [RSP + 0x24],EAX
CALL 0x0012fba0
MOV RDI,qword ptr [RSP + 0x18]
MOV EDX,dword ptr [RSP + 0x20]
MOV ECX,dword ptr [RSP + 0x24]
LEA RSI,[0x1716eb]
MOV AL,0x1
CALL 0x00107300
ADD RSP,0x38
RET
|
/* LefDefParser::defiGcellGrid::print(_IO_FILE*) const */
void __thiscall LefDefParser::defiGcellGrid::print(defiGcellGrid *this,_IO_FILE *param_1)
{
uint uVar1;
uint uVar2;
int8 uVar3;
uVar3 = macro(this);
fprintf(param_1,"GcellGrid \'%s\'\n",uVar3);
uVar1 = x(this);
uVar2 = xNum(this);
xStep(this);
fprintf(param_1," DO %d %d STEP %5.1f\n",(ulong)uVar1,(ulong)uVar2);
return;
}
| |
27,001 | test_get_rows_back::build_graph(ggml_context*) | llama.cpp/tests/test-backend-ops.cpp | ggml_tensor * build_graph(ggml_context * ctx) override {
ggml_tensor * in_forward = ggml_new_tensor_3d(ctx, type, n, m, b);
ggml_set_name(in_forward, "in_forward");
ggml_tensor * rows = ggml_new_tensor_2d(ctx, GGML_TYPE_I32, r, b);
ggml_set_name(rows, "rows");
if (v) {
rows = ggml_view_2d(ctx, rows, r/2, b, rows->nb[1], 0);
ggml_set_name(rows, "view_of_rows");
}
ggml_tensor * grad = ggml_new_tensor_3d(ctx, type, n, r, b);
ggml_set_name(grad, "grad");
ggml_tensor * out = ggml_get_rows_back(ctx, grad, rows, in_forward);
ggml_set_name(out, "out");
return out;
} | O3 | cpp | test_get_rows_back::build_graph(ggml_context*):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r15
movl 0x38(%rdi), %esi
movslq 0x3c(%rdi), %rdx
movslq 0x40(%rdi), %rcx
movslq 0x48(%rdi), %r8
movq %rbx, %rdi
callq 0x1c880
movq %rax, %r14
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2cc20
leaq 0x39c66(%rip), %rsi # 0x68ee9
movq %r14, %rdi
callq 0x1c690
movslq 0x44(%r15), %rdx
movslq 0x48(%r15), %rcx
movq %rbx, %rdi
movl $0x1a, %esi
callq 0x1c1b0
movq %rax, %r12
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2cc20
leaq 0x39c2f(%rip), %rsi # 0x68ee4
movq %r12, %rdi
callq 0x1c690
cmpb $0x1, 0x4c(%r15)
jne 0x2f2fd
movl 0x44(%r15), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
movslq %ecx, %rdx
movslq 0x48(%r15), %rcx
movq 0x38(%r12), %r8
movq %rbx, %rdi
movq %r12, %rsi
xorl %r9d, %r9d
callq 0x1c760
movq %rax, %r12
leaq 0x39be7(%rip), %rsi # 0x68edc
movq %rax, %rdi
callq 0x1c690
movl 0x38(%r15), %esi
movslq 0x3c(%r15), %rdx
movslq 0x44(%r15), %rcx
movslq 0x48(%r15), %r8
movq %rbx, %rdi
callq 0x1c880
movq %rax, %r13
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2cc20
leaq 0x3a984(%rip), %rsi # 0x69cae
movq %r13, %rdi
callq 0x1c690
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %r14, %rcx
callq 0x1ce90
movq %rax, %rbx
leaq 0x3a89e(%rip), %rsi # 0x69beb
movq %rax, %rdi
callq 0x1c690
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
| _ZN18test_get_rows_back11build_graphEP12ggml_context:
push r15
push r14
push r13
push r12
push rbx
mov rbx, rsi
mov r15, rdi
mov esi, [rdi+38h]
movsxd rdx, dword ptr [rdi+3Ch]
movsxd rcx, dword ptr [rdi+40h]
movsxd r8, dword ptr [rdi+48h]
mov rdi, rbx
call _ggml_new_tensor_3d
mov r14, rax
mov rdi, r15
mov rsi, rbx
call _ZN9test_case12add_sentinelEP12ggml_context; test_case::add_sentinel(ggml_context *)
lea rsi, aInForward; "in_forward"
mov rdi, r14
call _ggml_set_name
movsxd rdx, dword ptr [r15+44h]
movsxd rcx, dword ptr [r15+48h]
mov rdi, rbx
mov esi, 1Ah
call _ggml_new_tensor_2d
mov r12, rax
mov rdi, r15
mov rsi, rbx
call _ZN9test_case12add_sentinelEP12ggml_context; test_case::add_sentinel(ggml_context *)
lea rsi, aViewOfRows+8; "rows"
mov rdi, r12
call _ggml_set_name
cmp byte ptr [r15+4Ch], 1
jnz short loc_2F2FD
mov eax, [r15+44h]
mov ecx, eax
shr ecx, 1Fh
add ecx, eax
sar ecx, 1
movsxd rdx, ecx
movsxd rcx, dword ptr [r15+48h]
mov r8, [r12+38h]
mov rdi, rbx
mov rsi, r12
xor r9d, r9d
call _ggml_view_2d
mov r12, rax
lea rsi, aViewOfRows; "view_of_rows"
mov rdi, rax
call _ggml_set_name
loc_2F2FD:
mov esi, [r15+38h]
movsxd rdx, dword ptr [r15+3Ch]
movsxd rcx, dword ptr [r15+44h]
movsxd r8, dword ptr [r15+48h]
mov rdi, rbx
call _ggml_new_tensor_3d
mov r13, rax
mov rdi, r15
mov rsi, rbx
call _ZN9test_case12add_sentinelEP12ggml_context; test_case::add_sentinel(ggml_context *)
lea rsi, aEvalGrad+5; "grad"
mov rdi, r13
call _ggml_set_name
mov rdi, rbx
mov rsi, r13
mov rdx, r12
mov rcx, r14
call _ggml_get_rows_back
mov rbx, rax
lea rsi, aSumOfOut+7; "out"
mov rdi, rax
call _ggml_set_name
mov rax, rbx
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
| long long test_get_rows_back::build_graph(long long a1, long long a2)
{
long long v2; // r14
long long v3; // r12
long long v4; // r13
long long rows_back; // rbx
v2 = ggml_new_tensor_3d(a2, *(unsigned int *)(a1 + 56), *(int *)(a1 + 60), *(int *)(a1 + 64), *(int *)(a1 + 72));
test_case::add_sentinel(a1, a2);
ggml_set_name(v2, "in_forward");
v3 = ggml_new_tensor_2d(a2, 26LL, *(int *)(a1 + 68), *(int *)(a1 + 72));
test_case::add_sentinel(a1, a2);
ggml_set_name(v3, "rows");
if ( *(_BYTE *)(a1 + 76) == 1 )
{
v3 = ggml_view_2d(a2, v3, *(_DWORD *)(a1 + 68) / 2, *(int *)(a1 + 72), *(_QWORD *)(v3 + 56), 0LL);
ggml_set_name(v3, "view_of_rows");
}
v4 = ggml_new_tensor_3d(a2, *(unsigned int *)(a1 + 56), *(int *)(a1 + 60), *(int *)(a1 + 68), *(int *)(a1 + 72));
test_case::add_sentinel(a1, a2);
ggml_set_name(v4, "grad");
rows_back = ggml_get_rows_back(a2, v4, v3, v2);
ggml_set_name(rows_back, "out");
return rows_back;
}
| build_graph:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV RBX,RSI
MOV R15,RDI
MOV ESI,dword ptr [RDI + 0x38]
MOVSXD RDX,dword ptr [RDI + 0x3c]
MOVSXD RCX,dword ptr [RDI + 0x40]
MOVSXD R8,dword ptr [RDI + 0x48]
MOV RDI,RBX
CALL 0x0011c880
MOV R14,RAX
MOV RDI,R15
MOV RSI,RBX
CALL 0x0012cc20
LEA RSI,[0x168ee9]
MOV RDI,R14
CALL 0x0011c690
MOVSXD RDX,dword ptr [R15 + 0x44]
MOVSXD RCX,dword ptr [R15 + 0x48]
MOV RDI,RBX
MOV ESI,0x1a
CALL 0x0011c1b0
MOV R12,RAX
MOV RDI,R15
MOV RSI,RBX
CALL 0x0012cc20
LEA RSI,[0x168ee4]
MOV RDI,R12
CALL 0x0011c690
CMP byte ptr [R15 + 0x4c],0x1
JNZ 0x0012f2fd
MOV EAX,dword ptr [R15 + 0x44]
MOV ECX,EAX
SHR ECX,0x1f
ADD ECX,EAX
SAR ECX,0x1
MOVSXD RDX,ECX
MOVSXD RCX,dword ptr [R15 + 0x48]
MOV R8,qword ptr [R12 + 0x38]
MOV RDI,RBX
MOV RSI,R12
XOR R9D,R9D
CALL 0x0011c760
MOV R12,RAX
LEA RSI,[0x168edc]
MOV RDI,RAX
CALL 0x0011c690
LAB_0012f2fd:
MOV ESI,dword ptr [R15 + 0x38]
MOVSXD RDX,dword ptr [R15 + 0x3c]
MOVSXD RCX,dword ptr [R15 + 0x44]
MOVSXD R8,dword ptr [R15 + 0x48]
MOV RDI,RBX
CALL 0x0011c880
MOV R13,RAX
MOV RDI,R15
MOV RSI,RBX
CALL 0x0012cc20
LEA RSI,[0x169cae]
MOV RDI,R13
CALL 0x0011c690
MOV RDI,RBX
MOV RSI,R13
MOV RDX,R12
MOV RCX,R14
CALL 0x0011ce90
MOV RBX,RAX
LEA RSI,[0x169beb]
MOV RDI,RAX
CALL 0x0011c690
MOV RAX,RBX
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* test_get_rows_back::build_graph(ggml_context*) */
int8 __thiscall
test_get_rows_back::build_graph(test_get_rows_back *this,ggml_context *param_1)
{
int8 uVar1;
long lVar2;
int8 uVar3;
uVar1 = ggml_new_tensor_3d(param_1,*(int4 *)(this + 0x38),(long)*(int *)(this + 0x3c),
(long)*(int *)(this + 0x40),(long)*(int *)(this + 0x48));
test_case::add_sentinel((test_case *)this,param_1);
ggml_set_name(uVar1,"in_forward");
lVar2 = ggml_new_tensor_2d(param_1,0x1a,(long)*(int *)(this + 0x44),(long)*(int *)(this + 0x48));
test_case::add_sentinel((test_case *)this,param_1);
ggml_set_name(lVar2,"rows");
if (this[0x4c] == (test_get_rows_back)0x1) {
lVar2 = ggml_view_2d(param_1,lVar2,(long)(*(int *)(this + 0x44) / 2),(long)*(int *)(this + 0x48)
,*(int8 *)(lVar2 + 0x38),0);
ggml_set_name(lVar2,"view_of_rows");
}
uVar3 = ggml_new_tensor_3d(param_1,*(int4 *)(this + 0x38),(long)*(int *)(this + 0x3c),
(long)*(int *)(this + 0x44),(long)*(int *)(this + 0x48));
test_case::add_sentinel((test_case *)this,param_1);
ggml_set_name(uVar3,"grad");
uVar1 = ggml_get_rows_back(param_1,uVar3,lVar2,uVar1);
ggml_set_name(uVar1,"out");
return uVar1;
}
| |
27,002 | start_dbl_n | corpus-core[P]colibri-stateless/build_O2/_deps/blst-src/src/pairing.c | static void start_dbl_n(vec384fp12 ret, POINTonE2 T[],
const POINTonE1_affine Px2[], size_t n)
{
size_t i;
vec384fp6 line; /* it's not actual fp6, but 3 packed fp2, "xy00z0" */
/* first step is ret = 1^2*line, which is replaced with ret = line */
line_dbl(line, T+0, T+0); line_by_Px2(line, Px2+0);
vec_zero(ret, sizeof(vec384fp12));
vec_copy(ret[0][0], line[0], 2*sizeof(vec384fp2));
vec_copy(ret[1][1], line[2], sizeof(vec384fp2));
for (i = 1; i < n; i++) {
line_dbl(line, T+i, T+i); line_by_Px2(line, Px2+i);
mul_by_xy00z0_fp12(ret, ret, line);
}
} | O2 | c | start_dbl_n:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp # imm = 0x128
movq %rcx, -0x30(%rbp)
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
leaq -0x150(%rbp), %r13
movq %r13, %rdi
movq %rsi, %rdx
callq 0x5d4eb
movq %r13, %rdi
movq %r14, %rsi
callq 0x5d719
movl $0x240, %esi # imm = 0x240
movq %r12, %rdi
callq 0x50ea6
movl $0xc0, %edx
movq %r12, %rdi
movq %r13, %rsi
callq 0x51055
leaq 0x180(%r12), %rdi
leaq -0x90(%rbp), %rsi
pushq $0x60
popq %rdx
callq 0x51055
addq $0x120, %r15 # imm = 0x120
addq $0x60, %r14
pushq $0x1
popq %rbx
cmpq -0x30(%rbp), %rbx
jae 0x56b57
movq %r13, %rdi
movq %r15, %rsi
movq %r15, %rdx
callq 0x5d4eb
movq %r13, %rdi
movq %r14, %rsi
callq 0x5d719
movq %r12, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x5605e
incq %rbx
addq $0x120, %r15 # imm = 0x120
addq $0x60, %r14
jmp 0x56b1a
addq $0x128, %rsp # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| start_dbl_n:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 128h
mov [rbp+var_30], rcx
mov r14, rdx
mov r15, rsi
mov r12, rdi
lea r13, [rbp+var_150]
mov rdi, r13
mov rdx, rsi
call line_dbl
mov rdi, r13
mov rsi, r14
call line_by_Px2
mov esi, 240h
mov rdi, r12
call vec_zero
mov edx, 0C0h
mov rdi, r12
mov rsi, r13
call vec_copy
lea rdi, [r12+180h]
lea rsi, [rbp+var_90]
push 60h ; '`'
pop rdx
call vec_copy
add r15, 120h
add r14, 60h ; '`'
push 1
pop rbx
loc_56B1A:
cmp rbx, [rbp+var_30]
jnb short loc_56B57
mov rdi, r13
mov rsi, r15
mov rdx, r15
call line_dbl
mov rdi, r13
mov rsi, r14
call line_by_Px2
mov rdi, r12
mov rsi, r12
mov rdx, r13
call mul_by_xy00z0_fp12
inc rbx
add r15, 120h
add r14, 60h ; '`'
jmp short loc_56B1A
loc_56B57:
add rsp, 128h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long start_dbl_n(long long a1, long long a2, long long a3, unsigned long long a4)
{
long long result; // rax
long long v6; // r15
long long v7; // r14
unsigned long long i; // rbx
_BYTE v9[192]; // [rsp+0h] [rbp-150h] BYREF
char v10[96]; // [rsp+C0h] [rbp-90h] BYREF
unsigned long long v11; // [rsp+120h] [rbp-30h]
v11 = a4;
line_dbl(v9, a2, a2);
line_by_Px2(v9, a3);
vec_zero(a1, 0x240uLL);
vec_copy(a1, (long long)v9, 0xC0uLL);
result = vec_copy(a1 + 384, (long long)v10, 0x60uLL);
v6 = a2 + 288;
v7 = a3 + 96;
for ( i = 1LL; i < v11; ++i )
{
line_dbl(v9, v6, v6);
line_by_Px2(v9, v7);
result = mul_by_xy00z0_fp12(a1, a1, (long long)v9);
v6 += 288LL;
v7 += 96LL;
}
return result;
}
| start_dbl_n:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x128
MOV qword ptr [RBP + -0x30],RCX
MOV R14,RDX
MOV R15,RSI
MOV R12,RDI
LEA R13,[RBP + -0x150]
MOV RDI,R13
MOV RDX,RSI
CALL 0x0015d4eb
MOV RDI,R13
MOV RSI,R14
CALL 0x0015d719
MOV ESI,0x240
MOV RDI,R12
CALL 0x00150ea6
MOV EDX,0xc0
MOV RDI,R12
MOV RSI,R13
CALL 0x00151055
LEA RDI,[R12 + 0x180]
LEA RSI,[RBP + -0x90]
PUSH 0x60
POP RDX
CALL 0x00151055
ADD R15,0x120
ADD R14,0x60
PUSH 0x1
POP RBX
LAB_00156b1a:
CMP RBX,qword ptr [RBP + -0x30]
JNC 0x00156b57
MOV RDI,R13
MOV RSI,R15
MOV RDX,R15
CALL 0x0015d4eb
MOV RDI,R13
MOV RSI,R14
CALL 0x0015d719
MOV RDI,R12
MOV RSI,R12
MOV RDX,R13
CALL 0x0015605e
INC RBX
ADD R15,0x120
ADD R14,0x60
JMP 0x00156b1a
LAB_00156b57:
ADD RSP,0x128
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void start_dbl_n(long param_1,long param_2,long param_3,ulong param_4)
{
ulong uVar1;
int1 local_158 [192];
int1 local_98 [96];
ulong local_38;
local_38 = param_4;
line_dbl(local_158,param_2,param_2);
line_by_Px2(local_158,param_3);
vec_zero(param_1,0x240);
vec_copy(param_1,local_158,0xc0);
vec_copy(param_1 + 0x180,local_98,0x60);
param_2 = param_2 + 0x120;
param_3 = param_3 + 0x60;
for (uVar1 = 1; uVar1 < local_38; uVar1 = uVar1 + 1) {
line_dbl(local_158,param_2,param_2);
line_by_Px2(local_158,param_3);
mul_by_xy00z0_fp12(param_1,param_1,local_158);
param_2 = param_2 + 0x120;
param_3 = param_3 + 0x60;
}
return;
}
| |
27,003 | mi_reset | eloqsql/storage/myisam/mi_extra.c | int mi_reset(MI_INFO *info)
{
int error= 0;
MYISAM_SHARE *share=info->s;
DBUG_ENTER("mi_reset");
/*
Free buffers and reset the following flags:
EXTRA_CACHE, EXTRA_WRITE_CACHE, EXTRA_KEYREAD, EXTRA_QUICK
If the row buffer cache is large (for dynamic tables), reduce it
to save memory.
*/
if (info->opt_flag & (READ_CACHE_USED | WRITE_CACHE_USED))
{
info->opt_flag&= ~(READ_CACHE_USED | WRITE_CACHE_USED);
error= end_io_cache(&info->rec_cache);
}
if (share->base.blobs)
mi_alloc_rec_buff(info, -1, &info->rec_buff);
#if defined(HAVE_MMAP) && defined(HAVE_MADVISE)
if (info->opt_flag & MEMMAP_USED)
madvise((char*) share->file_map, share->state.state.data_file_length,
MADV_RANDOM);
#endif
info->opt_flag&= ~(KEY_READ_USED | REMEMBER_OLD_POS);
info->quick_mode=0;
info->lastinx= 0; /* Use first index as def */
info->last_search_keypage= info->lastpos= HA_OFFSET_ERROR;
info->page_changed= 1;
info->update= ((info->update & HA_STATE_CHANGED) | HA_STATE_NEXT_FOUND |
HA_STATE_PREV_FOUND);
DBUG_RETURN(error);
} | O3 | c | mi_reset:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %r15
movl 0x1c8(%rdi), %eax
testb $0x12, %al
je 0x7fea2
andl $-0x13, %eax
movl %eax, 0x1c8(%rbx)
leaq 0x220(%rbx), %rdi
callq 0x9b3e3
movl %eax, %r14d
jmp 0x7fea5
xorl %r14d, %r14d
cmpl $0x0, 0x188(%r15)
je 0x7fec5
leaq 0x120(%rbx), %rdx
movq %rbx, %rdi
movq $-0x1, %rsi
callq 0x84fc1
movl 0x1c8(%rbx), %eax
testb $0x20, %al
je 0x7feea
movq 0x270(%r15), %rdi
movq 0x40(%r15), %rsi
movl $0x1, %edx
callq 0x2a470
movl 0x1c8(%rbx), %eax
andl $-0x49, %eax
movl %eax, 0x1c8(%rbx)
movw $0x100, 0x33b(%rbx) # imm = 0x100
movl $0x0, 0x1d4(%rbx)
movq $-0x1, %rax
movq %rax, 0x170(%rbx)
movq %rax, 0x198(%rbx)
movl 0x1d0(%rbx), %eax
andl $0x1, %eax
orl $0x30, %eax
movl %eax, 0x1d0(%rbx)
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| mi_reset:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rdi
mov r15, [rdi]
mov eax, [rdi+1C8h]
test al, 12h
jz short loc_7FEA2
and eax, 0FFFFFFEDh
mov [rbx+1C8h], eax
lea rdi, [rbx+220h]
call end_io_cache
mov r14d, eax
jmp short loc_7FEA5
loc_7FEA2:
xor r14d, r14d
loc_7FEA5:
cmp dword ptr [r15+188h], 0
jz short loc_7FEC5
lea rdx, [rbx+120h]
mov rdi, rbx
mov rsi, 0FFFFFFFFFFFFFFFFh
call mi_alloc_rec_buff
loc_7FEC5:
mov eax, [rbx+1C8h]
test al, 20h
jz short loc_7FEEA
mov rdi, [r15+270h]
mov rsi, [r15+40h]
mov edx, 1
call _madvise
mov eax, [rbx+1C8h]
loc_7FEEA:
and eax, 0FFFFFFB7h
mov [rbx+1C8h], eax
mov word ptr [rbx+33Bh], 100h
mov dword ptr [rbx+1D4h], 0
mov rax, 0FFFFFFFFFFFFFFFFh
mov [rbx+170h], rax
mov [rbx+198h], rax
mov eax, [rbx+1D0h]
and eax, 1
or eax, 30h
mov [rbx+1D0h], eax
mov eax, r14d
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long mi_reset(long long *a1)
{
long long v1; // r15
int v2; // eax
unsigned int v3; // r14d
int v4; // eax
v1 = *a1;
v2 = *((_DWORD *)a1 + 114);
if ( (v2 & 0x12) != 0 )
{
*((_DWORD *)a1 + 114) = v2 & 0xFFFFFFED;
v3 = end_io_cache(a1 + 68);
}
else
{
v3 = 0;
}
if ( *(_DWORD *)(v1 + 392) )
mi_alloc_rec_buff(a1, -1LL, a1 + 36);
v4 = *((_DWORD *)a1 + 114);
if ( (v4 & 0x20) != 0 )
{
madvise(*(_QWORD *)(v1 + 624), *(_QWORD *)(v1 + 64), 1LL);
v4 = *((_DWORD *)a1 + 114);
}
*((_DWORD *)a1 + 114) = v4 & 0xFFFFFFB7;
*(_WORD *)((char *)a1 + 827) = 256;
*((_DWORD *)a1 + 117) = 0;
a1[46] = -1LL;
a1[51] = -1LL;
*((_DWORD *)a1 + 116) = a1[58] & 1 | 0x30;
return v3;
}
| mi_reset:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV R15,qword ptr [RDI]
MOV EAX,dword ptr [RDI + 0x1c8]
TEST AL,0x12
JZ 0x0017fea2
AND EAX,0xffffffed
MOV dword ptr [RBX + 0x1c8],EAX
LEA RDI,[RBX + 0x220]
CALL 0x0019b3e3
MOV R14D,EAX
JMP 0x0017fea5
LAB_0017fea2:
XOR R14D,R14D
LAB_0017fea5:
CMP dword ptr [R15 + 0x188],0x0
JZ 0x0017fec5
LEA RDX,[RBX + 0x120]
MOV RDI,RBX
MOV RSI,-0x1
CALL 0x00184fc1
LAB_0017fec5:
MOV EAX,dword ptr [RBX + 0x1c8]
TEST AL,0x20
JZ 0x0017feea
MOV RDI,qword ptr [R15 + 0x270]
MOV RSI,qword ptr [R15 + 0x40]
MOV EDX,0x1
CALL 0x0012a470
MOV EAX,dword ptr [RBX + 0x1c8]
LAB_0017feea:
AND EAX,0xffffffb7
MOV dword ptr [RBX + 0x1c8],EAX
MOV word ptr [RBX + 0x33b],0x100
MOV dword ptr [RBX + 0x1d4],0x0
MOV RAX,-0x1
MOV qword ptr [RBX + 0x170],RAX
MOV qword ptr [RBX + 0x198],RAX
MOV EAX,dword ptr [RBX + 0x1d0]
AND EAX,0x1
OR EAX,0x30
MOV dword ptr [RBX + 0x1d0],EAX
MOV EAX,R14D
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
int4 mi_reset(long *param_1)
{
long lVar1;
int4 uVar2;
uint uVar3;
lVar1 = *param_1;
if ((*(uint *)(param_1 + 0x39) & 0x12) == 0) {
uVar2 = 0;
}
else {
*(uint *)(param_1 + 0x39) = *(uint *)(param_1 + 0x39) & 0xffffffed;
uVar2 = end_io_cache(param_1 + 0x44);
}
if (*(int *)(lVar1 + 0x188) != 0) {
mi_alloc_rec_buff(param_1,0xffffffffffffffff,param_1 + 0x24);
}
uVar3 = *(uint *)(param_1 + 0x39);
if ((uVar3 & 0x20) != 0) {
madvise(*(void **)(lVar1 + 0x270),*(size_t *)(lVar1 + 0x40),1);
uVar3 = *(uint *)(param_1 + 0x39);
}
*(uint *)(param_1 + 0x39) = uVar3 & 0xffffffb7;
*(int2 *)((long)param_1 + 0x33b) = 0x100;
*(int4 *)((long)param_1 + 0x1d4) = 0;
param_1[0x2e] = -1;
param_1[0x33] = -1;
*(uint *)(param_1 + 0x3a) = *(uint *)(param_1 + 0x3a) & 1 | 0x30;
return uVar2;
}
| |
27,004 | my_like_range_simple | eloqsql/strings/ctype-simple.c | my_bool my_like_range_simple(CHARSET_INFO *cs,
const char *ptr, size_t ptr_length,
pbool escape, pbool w_one, pbool w_many,
size_t res_length,
char *min_str,char *max_str,
size_t *min_length, size_t *max_length)
{
const char *end= ptr + ptr_length;
char *min_org=min_str;
char *min_end=min_str+res_length;
size_t charlen= res_length / cs->mbmaxlen;
for (; ptr != end && min_str != min_end && charlen > 0 ; ptr++, charlen--)
{
if (*ptr == escape && ptr+1 != end)
{
ptr++; /* Skip escape */
*min_str++= *max_str++ = *ptr;
continue;
}
if (*ptr == w_one) /* '_' in SQL */
{
*min_str++='\0'; /* This should be min char */
*max_str++= (char) cs->max_sort_char;
continue;
}
if (*ptr == w_many) /* '%' in SQL */
{
/* Calculate length of keys */
*min_length= (cs->state & (MY_CS_BINSORT | MY_CS_NOPAD)) ?
(size_t) (min_str - min_org) :
res_length;
*max_length= res_length;
do
{
*min_str++= 0;
*max_str++= (char) cs->max_sort_char;
} while (min_str != min_end);
return 0;
}
*min_str++= *max_str++ = *ptr;
}
*min_length= *max_length = (size_t) (min_str - min_org);
while (min_str != min_end)
*min_str++= *max_str++ = ' '; /* Because if key compression */
return 0;
} | O3 | c | my_like_range_simple:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r10
movq 0x30(%rbp), %rdx
movq 0x28(%rbp), %r12
movq 0x20(%rbp), %rbx
movq 0x18(%rbp), %r14
movq 0x10(%rbp), %r11
testq %r10, %r10
je 0xb5cd1
addq %rsi, %r10
movl 0x9c(%rdi), %r15d
xorl %r13d, %r13d
movq %r11, %rax
xorl %edx, %edx
divq %r15
addq $-0x1, %rax
setb %dl
cmpq %r13, %r11
je 0xb5cc4
testb %dl, %dl
je 0xb5cc4
movb (%rsi), %r15b
cmpb %cl, %r15b
jne 0xb5c90
leaq 0x1(%rsi), %rdx
cmpq %r10, %rdx
je 0xb5c90
movb (%rdx), %sil
movb %sil, (%rbx,%r13)
movb %sil, (%r14,%r13)
jmp 0xb5cb6
cmpb %r8b, %r15b
jne 0xb5ca6
movb $0x0, (%r14,%r13)
movb 0xa8(%rdi), %dl
movb %dl, (%rbx,%r13)
jmp 0xb5cb3
cmpb %r9b, %r15b
je 0xb5d07
movb %r15b, (%rbx,%r13)
movb %r15b, (%r14,%r13)
movq %rsi, %rdx
incq %rdx
incq %r13
movq %rdx, %rsi
cmpq %r10, %rdx
jne 0xb5c62
leaq (%r14,%r13), %rax
addq %r13, %rbx
movq 0x30(%rbp), %rdx
jmp 0xb5cd4
movq %r14, %rax
addq %r14, %r11
movq %rax, %rcx
subq %r14, %rcx
movq %rcx, (%rdx)
movq %rcx, (%r12)
cmpq %r11, %rax
je 0xb5cfa
movb $0x20, %cl
movb %cl, (%rbx)
incq %rbx
movb %cl, (%rax)
incq %rax
cmpq %r11, %rax
jne 0xb5ceb
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testl $0x20010, 0xc(%rdi) # imm = 0x20010
movq %r13, %rax
cmoveq %r11, %rax
movq %rax, (%r12)
movq 0x30(%rbp), %rax
movq %r11, (%rax)
movb $0x0, (%r14,%r13)
movb 0xa8(%rdi), %al
movb %al, (%rbx,%r13)
incq %r13
cmpq %r13, %r11
jne 0xb5d20
jmp 0xb5cfa
| my_like_range_simple:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
mov r10, rdx
mov rdx, [rbp+arg_20]
mov r12, [rbp+arg_18]
mov rbx, [rbp+arg_10]
mov r14, [rbp+arg_8]
mov r11, [rbp+arg_0]
test r10, r10
jz loc_B5CD1
add r10, rsi
mov r15d, [rdi+9Ch]
xor r13d, r13d
mov rax, r11
xor edx, edx
div r15
loc_B5C62:
add rax, 0FFFFFFFFFFFFFFFFh
setb dl
cmp r11, r13
jz short loc_B5CC4
test dl, dl
jz short loc_B5CC4
mov r15b, [rsi]
cmp r15b, cl
jnz short loc_B5C90
lea rdx, [rsi+1]
cmp rdx, r10
jz short loc_B5C90
mov sil, [rdx]
mov [rbx+r13], sil
mov [r14+r13], sil
jmp short loc_B5CB6
loc_B5C90:
cmp r15b, r8b
jnz short loc_B5CA6
mov byte ptr [r14+r13], 0
mov dl, [rdi+0A8h]
mov [rbx+r13], dl
jmp short loc_B5CB3
loc_B5CA6:
cmp r15b, r9b
jz short loc_B5D07
mov [rbx+r13], r15b
mov [r14+r13], r15b
loc_B5CB3:
mov rdx, rsi
loc_B5CB6:
inc rdx
inc r13
mov rsi, rdx
cmp rdx, r10
jnz short loc_B5C62
loc_B5CC4:
lea rax, [r14+r13]
add rbx, r13
mov rdx, [rbp+arg_20]
jmp short loc_B5CD4
loc_B5CD1:
mov rax, r14
loc_B5CD4:
add r11, r14
mov rcx, rax
sub rcx, r14
mov [rdx], rcx
mov [r12], rcx
cmp rax, r11
jz short loc_B5CFA
mov cl, 20h ; ' '
loc_B5CEB:
mov [rbx], cl
inc rbx
mov [rax], cl
inc rax
cmp rax, r11
jnz short loc_B5CEB
loc_B5CFA:
xor eax, eax
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_B5D07:
test dword ptr [rdi+0Ch], 20010h
mov rax, r13
cmovz rax, r11
mov [r12], rax
mov rax, [rbp+arg_20]
mov [rax], r11
loc_B5D20:
mov byte ptr [r14+r13], 0
mov al, [rdi+0A8h]
mov [rbx+r13], al
inc r13
cmp r11, r13
jnz short loc_B5D20
jmp short loc_B5CFA
| long long my_like_range_simple(
long long a1,
char *a2,
long long a3,
char a4,
char a5,
char a6,
unsigned long long a7,
long long a8,
_BYTE *a9,
unsigned long long *a10,
_QWORD *a11)
{
_QWORD *v12; // rdx
_BYTE *v13; // rbx
char *v14; // r10
unsigned long long v15; // r13
unsigned long long v16; // rax
bool v17; // cf
char v18; // r15
char *v19; // rdx
char v20; // si
_BYTE *v21; // rax
unsigned long long v23; // rax
v12 = a11;
v13 = a9;
if ( a3 )
{
v14 = &a2[a3];
v15 = 0LL;
v16 = a7 / *(unsigned int *)(a1 + 156);
while ( 1 )
{
v17 = v16-- != 0;
if ( a7 == v15 || !v17 )
{
LABEL_14:
v21 = (_BYTE *)(a8 + v15);
v13 = &a9[v15];
v12 = a11;
goto LABEL_16;
}
v18 = *a2;
if ( *a2 != a4 || (v19 = a2 + 1, a2 + 1 == v14) )
{
if ( v18 == a5 )
{
*(_BYTE *)(a8 + v15) = 0;
a9[v15] = *(_BYTE *)(a1 + 168);
}
else
{
if ( v18 == a6 )
{
v23 = v15;
if ( (*(_DWORD *)(a1 + 12) & 0x20010) == 0 )
v23 = a7;
*a10 = v23;
*a11 = a7;
do
{
*(_BYTE *)(a8 + v15) = 0;
a9[v15++] = *(_BYTE *)(a1 + 168);
}
while ( a7 != v15 );
return 0LL;
}
a9[v15] = v18;
*(_BYTE *)(a8 + v15) = v18;
}
v19 = a2;
}
else
{
v20 = *v19;
a9[v15] = *v19;
*(_BYTE *)(a8 + v15) = v20;
}
++v15;
a2 = v19 + 1;
if ( v19 + 1 == v14 )
goto LABEL_14;
}
}
v21 = (_BYTE *)a8;
LABEL_16:
*v12 = &v21[-a8];
for ( *a10 = (unsigned long long)&v21[-a8]; v21 != (_BYTE *)(a8 + a7); ++v21 )
{
*v13++ = 32;
*v21 = 32;
}
return 0LL;
}
| my_like_range_simple:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV R10,RDX
MOV RDX,qword ptr [RBP + 0x30]
MOV R12,qword ptr [RBP + 0x28]
MOV RBX,qword ptr [RBP + 0x20]
MOV R14,qword ptr [RBP + 0x18]
MOV R11,qword ptr [RBP + 0x10]
TEST R10,R10
JZ 0x001b5cd1
ADD R10,RSI
MOV R15D,dword ptr [RDI + 0x9c]
XOR R13D,R13D
MOV RAX,R11
XOR EDX,EDX
DIV R15
LAB_001b5c62:
ADD RAX,-0x1
SETC DL
CMP R11,R13
JZ 0x001b5cc4
TEST DL,DL
JZ 0x001b5cc4
MOV R15B,byte ptr [RSI]
CMP R15B,CL
JNZ 0x001b5c90
LEA RDX,[RSI + 0x1]
CMP RDX,R10
JZ 0x001b5c90
MOV SIL,byte ptr [RDX]
MOV byte ptr [RBX + R13*0x1],SIL
MOV byte ptr [R14 + R13*0x1],SIL
JMP 0x001b5cb6
LAB_001b5c90:
CMP R15B,R8B
JNZ 0x001b5ca6
MOV byte ptr [R14 + R13*0x1],0x0
MOV DL,byte ptr [RDI + 0xa8]
MOV byte ptr [RBX + R13*0x1],DL
JMP 0x001b5cb3
LAB_001b5ca6:
CMP R15B,R9B
JZ 0x001b5d07
MOV byte ptr [RBX + R13*0x1],R15B
MOV byte ptr [R14 + R13*0x1],R15B
LAB_001b5cb3:
MOV RDX,RSI
LAB_001b5cb6:
INC RDX
INC R13
MOV RSI,RDX
CMP RDX,R10
JNZ 0x001b5c62
LAB_001b5cc4:
LEA RAX,[R14 + R13*0x1]
ADD RBX,R13
MOV RDX,qword ptr [RBP + 0x30]
JMP 0x001b5cd4
LAB_001b5cd1:
MOV RAX,R14
LAB_001b5cd4:
ADD R11,R14
MOV RCX,RAX
SUB RCX,R14
MOV qword ptr [RDX],RCX
MOV qword ptr [R12],RCX
CMP RAX,R11
JZ 0x001b5cfa
MOV CL,0x20
LAB_001b5ceb:
MOV byte ptr [RBX],CL
INC RBX
MOV byte ptr [RAX],CL
INC RAX
CMP RAX,R11
JNZ 0x001b5ceb
LAB_001b5cfa:
XOR EAX,EAX
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001b5d07:
TEST dword ptr [RDI + 0xc],0x20010
MOV RAX,R13
CMOVZ RAX,R11
MOV qword ptr [R12],RAX
MOV RAX,qword ptr [RBP + 0x30]
MOV qword ptr [RAX],R11
LAB_001b5d20:
MOV byte ptr [R14 + R13*0x1],0x0
MOV AL,byte ptr [RDI + 0xa8]
MOV byte ptr [RBX + R13*0x1],AL
INC R13
CMP R11,R13
JNZ 0x001b5d20
JMP 0x001b5cfa
|
int8
my_like_range_simple
(long param_1,char *param_2,long param_3,char param_4,char param_5,char param_6,
ulong param_7,int1 *param_8,int1 *param_9,ulong *param_10,ulong *param_11)
{
char *pcVar1;
char cVar2;
ulong uVar3;
int1 *puVar4;
char *pcVar5;
ulong uVar6;
bool bVar7;
puVar4 = param_8;
if (param_3 != 0) {
pcVar5 = param_2 + param_3;
uVar6 = 0;
uVar3 = param_7 / *(uint *)(param_1 + 0x9c);
do {
bVar7 = uVar3 == 0;
uVar3 = uVar3 - 1;
if ((param_7 == uVar6) || (bVar7)) break;
cVar2 = *param_2;
if ((cVar2 == param_4) && (pcVar1 = param_2 + 1, pcVar1 != pcVar5)) {
cVar2 = *pcVar1;
param_9[uVar6] = cVar2;
param_8[uVar6] = cVar2;
param_2 = pcVar1;
}
else if (cVar2 == param_5) {
param_8[uVar6] = 0;
param_9[uVar6] = *(int1 *)(param_1 + 0xa8);
}
else {
if (cVar2 == param_6) {
uVar3 = uVar6;
if ((*(uint *)(param_1 + 0xc) & 0x20010) == 0) {
uVar3 = param_7;
}
*param_10 = uVar3;
*param_11 = param_7;
do {
param_8[uVar6] = 0;
param_9[uVar6] = *(int1 *)(param_1 + 0xa8);
uVar6 = uVar6 + 1;
} while (param_7 != uVar6);
return 0;
}
param_9[uVar6] = cVar2;
param_8[uVar6] = cVar2;
}
param_2 = param_2 + 1;
uVar6 = uVar6 + 1;
} while (param_2 != pcVar5);
param_9 = param_9 + uVar6;
puVar4 = param_8 + uVar6;
}
*param_11 = (long)puVar4 - (long)param_8;
*param_10 = (long)puVar4 - (long)param_8;
for (; puVar4 != param_8 + param_7; puVar4 = puVar4 + 1) {
*param_9 = 0x20;
param_9 = param_9 + 1;
*puVar4 = 0x20;
}
return 0;
}
| |
27,005 | my_rw_wrlock | eloqsql/mysys/thr_rwlock.c | int my_rw_wrlock(my_rw_lock_t *rwp)
{
pthread_mutex_lock(&rwp->lock);
rwp->waiters++; /* another writer queued */
my_rw_lock_assert_not_write_owner(rwp);
while (rwp->state)
pthread_cond_wait(&rwp->writers, &rwp->lock);
rwp->state = -1;
rwp->waiters--;
#ifdef SAFE_MUTEX
rwp->write_thread= pthread_self();
#endif
pthread_mutex_unlock(&rwp->lock);
return(0);
} | O0 | c | my_rw_wrlock:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x244a0
movq -0x8(%rbp), %rax
movl 0x8c(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x8c(%rax)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x88(%rax)
je 0x2a7f8
movq -0x8(%rbp), %rdi
addq $0x58, %rdi
movq -0x8(%rbp), %rsi
callq 0x24540
jmp 0x2a7d8
movq -0x8(%rbp), %rax
movl $0xffffffff, 0x88(%rax) # imm = 0xFFFFFFFF
movq -0x8(%rbp), %rax
movl 0x8c(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x8c(%rax)
movq -0x8(%rbp), %rdi
callq 0x24200
xorl %eax, %eax
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| my_rw_wrlock:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]
call _pthread_mutex_lock
mov rax, [rbp+var_8]
mov ecx, [rax+8Ch]
add ecx, 1
mov [rax+8Ch], ecx
loc_2A7D8:
mov rax, [rbp+var_8]
cmp dword ptr [rax+88h], 0
jz short loc_2A7F8
mov rdi, [rbp+var_8]
add rdi, 58h ; 'X'
mov rsi, [rbp+var_8]
call _pthread_cond_wait
jmp short loc_2A7D8
loc_2A7F8:
mov rax, [rbp+var_8]
mov dword ptr [rax+88h], 0FFFFFFFFh
mov rax, [rbp+var_8]
mov ecx, [rax+8Ch]
add ecx, 0FFFFFFFFh
mov [rax+8Ch], ecx
mov rdi, [rbp+var_8]
call _pthread_mutex_unlock
xor eax, eax
add rsp, 10h
pop rbp
retn
| long long my_rw_wrlock(long long a1)
{
pthread_mutex_lock(a1);
++*(_DWORD *)(a1 + 140);
while ( *(_DWORD *)(a1 + 136) )
pthread_cond_wait(a1 + 88, a1);
*(_DWORD *)(a1 + 136) = -1;
--*(_DWORD *)(a1 + 140);
pthread_mutex_unlock(a1);
return 0LL;
}
| my_rw_wrlock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001244a0
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x8c]
ADD ECX,0x1
MOV dword ptr [RAX + 0x8c],ECX
LAB_0012a7d8:
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x88],0x0
JZ 0x0012a7f8
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x58
MOV RSI,qword ptr [RBP + -0x8]
CALL 0x00124540
JMP 0x0012a7d8
LAB_0012a7f8:
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x88],0xffffffff
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x8c]
ADD ECX,-0x1
MOV dword ptr [RAX + 0x8c],ECX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00124200
XOR EAX,EAX
ADD RSP,0x10
POP RBP
RET
|
int8 my_rw_wrlock(pthread_mutex_t *param_1)
{
pthread_mutex_lock(param_1);
*(int *)((long)param_1 + 0x8c) = *(int *)((long)param_1 + 0x8c) + 1;
while (*(int *)((long)param_1 + 0x88) != 0) {
pthread_cond_wait((pthread_cond_t *)((long)param_1 + 0x58),param_1);
}
*(int4 *)((long)param_1 + 0x88) = 0xffffffff;
*(int *)((long)param_1 + 0x8c) = *(int *)((long)param_1 + 0x8c) + -1;
pthread_mutex_unlock(param_1);
return 0;
}
| |
27,006 | mysql_stmt_reset_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_stmt_reset_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_stmt_reset,
(parms->stmt),
parms->stmt->mysql,
my_bool,
r_my_bool)
} | O3 | c | mysql_stmt_reset_start_internal:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq (%rdi), %rdi
movq 0x38(%rdi), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rbx
callq 0x2686c
movb %al, 0x8(%rbx)
movl $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| mysql_stmt_reset_start_internal:
push rbp
mov rbp, rsp
push rbx
push rax
mov rdi, [rdi]
mov rax, [rdi+38h]
mov rax, [rax+480h]
mov rbx, [rax+28h]
call mysql_stmt_reset
mov [rbx+8], al
mov dword ptr [rbx], 0
add rsp, 8
pop rbx
pop rbp
retn
| long long mysql_stmt_reset_start_internal(long long *a1)
{
long long v1; // rdi
long long v2; // rbx
long long result; // rax
v1 = *a1;
v2 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v1 + 56) + 1152LL) + 40LL);
result = mysql_stmt_reset(v1);
*(_BYTE *)(v2 + 8) = result;
*(_DWORD *)v2 = 0;
return result;
}
| mysql_stmt_reset_start_internal:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RDI,qword ptr [RDI]
MOV RAX,qword ptr [RDI + 0x38]
MOV RAX,qword ptr [RAX + 0x480]
MOV RBX,qword ptr [RAX + 0x28]
CALL 0x0012686c
MOV byte ptr [RBX + 0x8],AL
MOV dword ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void mysql_stmt_reset_start_internal(long *param_1)
{
int4 *puVar1;
int1 uVar2;
puVar1 = *(int4 **)(*(long *)(*(long *)(*param_1 + 0x38) + 0x480) + 0x28);
uVar2 = mysql_stmt_reset();
*(int1 *)(puVar1 + 2) = uVar2;
*puVar1 = 0;
return;
}
| |
27,007 | inheritance_source_by_id | eloqsql/mysys/charset.c | static CHARSET_INFO *inheritance_source_by_id(CHARSET_INFO *cs, uint refid)
{
CHARSET_INFO *refcs;
return refid && refid != cs->number &&
(refcs= all_charsets[refid]) &&
(refcs->state & MY_CS_AVAILABLE) ? refcs : NULL;
} | O0 | c | inheritance_source_by_id:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
cmpl $0x0, -0xc(%rbp)
je 0xdd781
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
je 0xdd781
movl -0xc(%rbp), %eax
movl %eax, %ecx
leaq 0xba3cc8(%rip), %rax # 0xc81420
movq (%rax,%rcx,8), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
je 0xdd781
movq -0x18(%rbp), %rax
movl 0xc(%rax), %eax
andl $0x200, %eax # imm = 0x200
cmpl $0x0, %eax
je 0xdd781
movq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
jmp 0xdd789
xorl %eax, %eax
movq %rax, -0x20(%rbp)
jmp 0xdd789
movq -0x20(%rbp), %rax
popq %rbp
retq
nop
| inheritance_source_by_id:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
cmp [rbp+var_C], 0
jz short loc_DD781
mov eax, [rbp+var_C]
mov rcx, [rbp+var_8]
cmp eax, [rcx]
jz short loc_DD781
mov eax, [rbp+var_C]
mov ecx, eax
lea rax, all_charsets
mov rax, [rax+rcx*8]
mov [rbp+var_18], rax
cmp rax, 0
jz short loc_DD781
mov rax, [rbp+var_18]
mov eax, [rax+0Ch]
and eax, 200h
cmp eax, 0
jz short loc_DD781
mov rax, [rbp+var_18]
mov [rbp+var_20], rax
jmp short loc_DD789
loc_DD781:
xor eax, eax
mov [rbp+var_20], rax
jmp short $+2
loc_DD789:
mov rax, [rbp+var_20]
pop rbp
retn
| long long inheritance_source_by_id(_DWORD *a1, int a2)
{
long long v4; // [rsp+8h] [rbp-18h]
if ( a2 && a2 != *a1 && (v4 = all_charsets[a2]) != 0 && (*(_DWORD *)(v4 + 12) & 0x200) != 0 )
return all_charsets[a2];
else
return 0LL;
}
| inheritance_source_by_id:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
CMP dword ptr [RBP + -0xc],0x0
JZ 0x001dd781
MOV EAX,dword ptr [RBP + -0xc]
MOV RCX,qword ptr [RBP + -0x8]
CMP EAX,dword ptr [RCX]
JZ 0x001dd781
MOV EAX,dword ptr [RBP + -0xc]
MOV ECX,EAX
LEA RAX,[0xd81420]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x18],RAX
CMP RAX,0x0
JZ 0x001dd781
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0xc]
AND EAX,0x200
CMP EAX,0x0
JZ 0x001dd781
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x20],RAX
JMP 0x001dd789
LAB_001dd781:
XOR EAX,EAX
MOV qword ptr [RBP + -0x20],RAX
JMP 0x001dd789
LAB_001dd789:
MOV RAX,qword ptr [RBP + -0x20]
POP RBP
RET
|
long inheritance_source_by_id(uint *param_1,uint param_2)
{
long local_28;
if ((((param_2 == 0) || (param_2 == *param_1)) ||
(local_28 = (&all_charsets)[param_2], local_28 == 0)) ||
((*(uint *)(local_28 + 0xc) & 0x200) == 0)) {
local_28 = 0;
}
return local_28;
}
| |
27,008 | my_casefold_mb | eloqsql/strings/ctype-mb.c | static size_t
my_casefold_mb(CHARSET_INFO *cs,
const char *src, size_t srclen,
char *dst, size_t dstlen __attribute__((unused)),
const uchar *map,
size_t is_upper)
{
const char *srcend= src + srclen;
char *dst0= dst;
DBUG_ASSERT(cs->mbmaxlen == 2);
while (src < srcend)
{
size_t mblen= my_ismbchar(cs, src, srcend);
if (mblen)
{
MY_UNICASE_CHARACTER *ch;
if ((ch= get_case_info_for_ch(cs, (uchar) src[0], (uchar) src[1])))
{
int code= is_upper ? ch->toupper : ch->tolower;
src+= 2;
if (code > 0xFF)
*dst++= code >> 8;
*dst++= code & 0xFF;
}
else
{
*dst++= *src++;
*dst++= *src++;
}
}
else
{
*dst++= (char) map[(uchar) *src++];
}
}
return (size_t) (dst - dst0);
} | O0 | c | my_casefold_mb:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x440ea
jmp 0x440ec
movq -0x10(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0x44220
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x43f50
movl %eax, %eax
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0x441f1
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movzbl (%rax), %esi
movq -0x10(%rbp), %rax
movzbl 0x1(%rax), %edx
callq 0x46c30
movq %rax, -0x50(%rbp)
cmpq $0x0, %rax
je 0x441ab
cmpq $0x0, 0x10(%rbp)
je 0x44150
movq -0x50(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x58(%rbp)
jmp 0x4415a
movq -0x50(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x58(%rbp)
movl -0x58(%rbp), %eax
movl %eax, -0x54(%rbp)
movq -0x10(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x10(%rbp)
cmpl $0xff, -0x54(%rbp)
jle 0x4418e
movl -0x54(%rbp), %eax
sarl $0x8, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
movl -0x54(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
jmp 0x441ef
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movb (%rax), %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movb (%rax), %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
jmp 0x4421b
movq -0x30(%rbp), %rax
movq -0x10(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movzbl (%rcx), %ecx
movb (%rax,%rcx), %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
jmp 0x440ec
movq -0x20(%rbp), %rax
movq -0x40(%rbp), %rcx
subq %rcx, %rax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_casefold_mb:
push rbp
mov rbp, rsp
sub rsp, 60h
mov rax, [rbp+arg_0]
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 [rbp+var_30], r9
mov rax, [rbp+var_10]
add rax, [rbp+var_18]
mov [rbp+var_38], rax
mov rax, [rbp+var_20]
mov [rbp+var_40], rax
jmp short $+2
loc_440EA:
jmp short $+2
loc_440EC:
mov rax, [rbp+var_10]
cmp rax, [rbp+var_38]
jnb loc_44220
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_38]
call my_ismbchar_0
mov eax, eax
mov [rbp+var_48], rax
cmp [rbp+var_48], 0
jz loc_441F1
mov rdi, [rbp+var_8]
mov rax, [rbp+var_10]
movzx esi, byte ptr [rax]
mov rax, [rbp+var_10]
movzx edx, byte ptr [rax+1]
call get_case_info_for_ch
mov [rbp+var_50], rax
cmp rax, 0
jz short loc_441AB
cmp [rbp+arg_0], 0
jz short loc_44150
mov rax, [rbp+var_50]
mov eax, [rax]
mov [rbp+var_58], eax
jmp short loc_4415A
loc_44150:
mov rax, [rbp+var_50]
mov eax, [rax+4]
mov [rbp+var_58], eax
loc_4415A:
mov eax, [rbp+var_58]
mov [rbp+var_54], eax
mov rax, [rbp+var_10]
add rax, 2
mov [rbp+var_10], rax
cmp [rbp+var_54], 0FFh
jle short loc_4418E
mov eax, [rbp+var_54]
sar eax, 8
mov cl, al
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
loc_4418E:
mov eax, [rbp+var_54]
and eax, 0FFh
mov cl, al
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
jmp short loc_441EF
loc_441AB:
mov rax, [rbp+var_10]
mov rcx, rax
add rcx, 1
mov [rbp+var_10], rcx
mov cl, [rax]
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
mov rax, [rbp+var_10]
mov rcx, rax
add rcx, 1
mov [rbp+var_10], rcx
mov cl, [rax]
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
loc_441EF:
jmp short loc_4421B
loc_441F1:
mov rax, [rbp+var_30]
mov rcx, [rbp+var_10]
mov rdx, rcx
add rdx, 1
mov [rbp+var_10], rdx
movzx ecx, byte ptr [rcx]
mov cl, [rax+rcx]
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
loc_4421B:
jmp loc_440EC
loc_44220:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_40]
sub rax, rcx
add rsp, 60h
pop rbp
retn
| _BYTE * my_casefold_mb(
long long a1,
unsigned __int8 *a2,
long long a3,
unsigned __int8 *a4,
long long a5,
long long a6,
long long a7)
{
unsigned __int8 *v7; // rax
unsigned __int8 *v8; // rax
char *v9; // rax
char v10; // cl
_BYTE *v11; // rax
unsigned __int8 *v12; // rcx
unsigned __int8 *v13; // rax
int v15; // [rsp+8h] [rbp-58h]
int *case_info_for_ch; // [rsp+10h] [rbp-50h]
unsigned long long v18; // [rsp+28h] [rbp-38h]
unsigned __int8 *v20; // [rsp+40h] [rbp-20h]
unsigned __int8 *v21; // [rsp+50h] [rbp-10h]
v21 = a2;
v20 = a4;
v18 = (unsigned long long)&a2[a3];
while ( (unsigned long long)v21 < v18 )
{
if ( (unsigned int)my_ismbchar_0(a1, (long long)v21, v18) )
{
case_info_for_ch = (int *)get_case_info_for_ch(a1, *v21, v21[1]);
if ( case_info_for_ch )
{
if ( a7 )
v15 = *case_info_for_ch;
else
v15 = case_info_for_ch[1];
v21 += 2;
if ( v15 > 255 )
{
v7 = v20++;
*v7 = BYTE1(v15);
}
v8 = v20++;
*v8 = v15;
}
else
{
*v20 = *v21;
v9 = (char *)(v21 + 1);
v21 += 2;
v10 = *v9;
v11 = v20 + 1;
v20 += 2;
*v11 = v10;
}
}
else
{
v12 = v21++;
v13 = v20++;
*v13 = *(_BYTE *)(a6 + *v12);
}
}
return (_BYTE *)(v20 - a4);
}
| my_casefold_mb:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV RAX,qword ptr [RBP + 0x10]
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 qword ptr [RBP + -0x30],R9
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x40],RAX
JMP 0x001440ea
LAB_001440ea:
JMP 0x001440ec
LAB_001440ec:
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x38]
JNC 0x00144220
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x38]
CALL 0x00143f50
MOV EAX,EAX
MOV qword ptr [RBP + -0x48],RAX
CMP qword ptr [RBP + -0x48],0x0
JZ 0x001441f1
MOV RDI,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOVZX ESI,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EDX,byte ptr [RAX + 0x1]
CALL 0x00146c30
MOV qword ptr [RBP + -0x50],RAX
CMP RAX,0x0
JZ 0x001441ab
CMP qword ptr [RBP + 0x10],0x0
JZ 0x00144150
MOV RAX,qword ptr [RBP + -0x50]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x58],EAX
JMP 0x0014415a
LAB_00144150:
MOV RAX,qword ptr [RBP + -0x50]
MOV EAX,dword ptr [RAX + 0x4]
MOV dword ptr [RBP + -0x58],EAX
LAB_0014415a:
MOV EAX,dword ptr [RBP + -0x58]
MOV dword ptr [RBP + -0x54],EAX
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x2
MOV qword ptr [RBP + -0x10],RAX
CMP dword ptr [RBP + -0x54],0xff
JLE 0x0014418e
MOV EAX,dword ptr [RBP + -0x54]
SAR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
LAB_0014418e:
MOV EAX,dword ptr [RBP + -0x54]
AND EAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
JMP 0x001441ef
LAB_001441ab:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x10],RCX
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x10],RCX
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
LAB_001441ef:
JMP 0x0014421b
LAB_001441f1:
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDX,RCX
ADD RDX,0x1
MOV qword ptr [RBP + -0x10],RDX
MOVZX ECX,byte ptr [RCX]
MOV CL,byte ptr [RAX + RCX*0x1]
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
LAB_0014421b:
JMP 0x001440ec
LAB_00144220:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x40]
SUB RAX,RCX
ADD RSP,0x60
POP RBP
RET
|
long my_casefold_mb(int8 param_1,byte *param_2,long param_3,byte *param_4,int8 param_5,
long param_6,long param_7)
{
int iVar1;
int *piVar2;
byte *pbVar3;
int local_60;
byte *local_28;
byte *local_18;
local_28 = param_4;
local_18 = param_2;
while (local_18 < param_2 + param_3) {
iVar1 = my_ismbchar(param_1,local_18,param_2 + param_3);
if (iVar1 == 0) {
*local_28 = *(byte *)(param_6 + (ulong)*local_18);
local_28 = local_28 + 1;
local_18 = local_18 + 1;
}
else {
piVar2 = (int *)get_case_info_for_ch(param_1,*local_18,local_18[1]);
if (piVar2 == (int *)0x0) {
pbVar3 = local_28 + 1;
*local_28 = *local_18;
local_28 = local_28 + 2;
*pbVar3 = local_18[1];
}
else {
if (param_7 == 0) {
local_60 = piVar2[1];
}
else {
local_60 = *piVar2;
}
if (0xff < local_60) {
*local_28 = (byte)((uint)local_60 >> 8);
local_28 = local_28 + 1;
}
*local_28 = (byte)local_60;
local_28 = local_28 + 1;
}
local_18 = local_18 + 2;
}
}
return (long)local_28 - (long)param_4;
}
| |
27,009 | my_wc_mb_8bit | eloqsql/strings/ctype-simple.c | int my_wc_mb_8bit(CHARSET_INFO *cs,my_wc_t wc,
uchar *str,
uchar *end)
{
MY_UNI_IDX *idx;
if (str >= end)
return MY_CS_TOOSMALL;
for (idx=cs->tab_from_uni; idx->tab ; idx++)
{
if (idx->from <= wc && idx->to >= wc)
{
str[0]= idx->tab[wc - idx->from];
return (!str[0] && wc) ? MY_CS_ILUNI : 1;
}
}
return MY_CS_ILUNI;
} | O0 | c | my_wc_mb_8bit:
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 0x7803a
movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B
jmp 0x780d3
movq -0x10(%rbp), %rax
movq 0x70(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x780cc
movq -0x30(%rbp), %rax
movzwl (%rax), %eax
cmpq -0x18(%rbp), %rax
ja 0x780b9
movq -0x30(%rbp), %rax
movzwl 0x2(%rax), %eax
cmpq -0x18(%rbp), %rax
jb 0x780b9
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
movq -0x30(%rbp), %rdx
movzwl (%rdx), %edx
subq %rdx, %rcx
movb (%rax,%rcx), %cl
movq -0x20(%rbp), %rax
movb %cl, (%rax)
movq -0x20(%rbp), %rcx
xorl %eax, %eax
cmpb $0x0, (%rcx)
movb %al, -0x31(%rbp)
jne 0x780a4
cmpq $0x0, -0x18(%rbp)
setne %al
movb %al, -0x31(%rbp)
movb -0x31(%rbp), %dl
movl $0x1, %eax
xorl %ecx, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x780d3
jmp 0x780bb
movq -0x30(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x30(%rbp)
jmp 0x78046
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax,%rax)
| my_wc_mb_8bit:
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_7803A
mov [rbp+var_4], 0FFFFFF9Bh
jmp loc_780D3
loc_7803A:
mov rax, [rbp+var_10]
mov rax, [rax+70h]
mov [rbp+var_30], rax
loc_78046:
mov rax, [rbp+var_30]
cmp qword ptr [rax+8], 0
jz short loc_780CC
mov rax, [rbp+var_30]
movzx eax, word ptr [rax]
cmp rax, [rbp+var_18]
ja short loc_780B9
mov rax, [rbp+var_30]
movzx eax, word ptr [rax+2]
cmp rax, [rbp+var_18]
jb short loc_780B9
mov rax, [rbp+var_30]
mov rax, [rax+8]
mov rcx, [rbp+var_18]
mov rdx, [rbp+var_30]
movzx edx, word ptr [rdx]
sub rcx, rdx
mov cl, [rax+rcx]
mov rax, [rbp+var_20]
mov [rax], cl
mov rcx, [rbp+var_20]
xor eax, eax
cmp byte ptr [rcx], 0
mov [rbp+var_31], al
jnz short loc_780A4
cmp [rbp+var_18], 0
setnz al
mov [rbp+var_31], al
loc_780A4:
mov dl, [rbp+var_31]
mov eax, 1
xor ecx, ecx
test dl, 1
cmovnz eax, ecx
mov [rbp+var_4], eax
jmp short loc_780D3
loc_780B9:
jmp short $+2
loc_780BB:
mov rax, [rbp+var_30]
add rax, 10h
mov [rbp+var_30], rax
jmp loc_78046
loc_780CC:
mov [rbp+var_4], 0
loc_780D3:
mov eax, [rbp+var_4]
pop rbp
retn
| long long my_wc_mb_8bit(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4)
{
bool v5; // [rsp+1h] [rbp-31h]
unsigned __int16 *i; // [rsp+2h] [rbp-30h]
if ( (unsigned long long)a3 < a4 )
{
for ( i = *(unsigned __int16 **)(a1 + 112); ; i += 8 )
{
if ( !*((_QWORD *)i + 1) )
return 0;
if ( *i <= a2 && i[1] >= a2 )
break;
}
*a3 = *(_BYTE *)(*((_QWORD *)i + 1) + a2 - *i);
v5 = 0;
if ( !*a3 )
v5 = a2 != 0;
return !v5;
}
else
{
return (unsigned int)-101;
}
}
| my_wc_mb_8bit:
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 0x0017803a
MOV dword ptr [RBP + -0x4],0xffffff9b
JMP 0x001780d3
LAB_0017803a:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x70]
MOV qword ptr [RBP + -0x30],RAX
LAB_00178046:
MOV RAX,qword ptr [RBP + -0x30]
CMP qword ptr [RAX + 0x8],0x0
JZ 0x001780cc
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,word ptr [RAX]
CMP RAX,qword ptr [RBP + -0x18]
JA 0x001780b9
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,word ptr [RAX + 0x2]
CMP RAX,qword ptr [RBP + -0x18]
JC 0x001780b9
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x30]
MOVZX EDX,word ptr [RDX]
SUB RCX,RDX
MOV CL,byte ptr [RAX + RCX*0x1]
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],CL
MOV RCX,qword ptr [RBP + -0x20]
XOR EAX,EAX
CMP byte ptr [RCX],0x0
MOV byte ptr [RBP + -0x31],AL
JNZ 0x001780a4
CMP qword ptr [RBP + -0x18],0x0
SETNZ AL
MOV byte ptr [RBP + -0x31],AL
LAB_001780a4:
MOV DL,byte ptr [RBP + -0x31]
MOV EAX,0x1
XOR ECX,ECX
TEST DL,0x1
CMOVNZ EAX,ECX
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001780d3
LAB_001780b9:
JMP 0x001780bb
LAB_001780bb:
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,0x10
MOV qword ptr [RBP + -0x30],RAX
JMP 0x00178046
LAB_001780cc:
MOV dword ptr [RBP + -0x4],0x0
LAB_001780d3:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
uint my_wc_mb_8bit(long param_1,ulong param_2,char *param_3,char *param_4)
{
ushort *local_38;
uint local_c;
if (param_3 < param_4) {
for (local_38 = *(ushort **)(param_1 + 0x70); *(long *)(local_38 + 4) != 0;
local_38 = local_38 + 8) {
if ((*local_38 <= param_2) && (param_2 <= local_38[1])) {
*param_3 = *(char *)(*(long *)(local_38 + 4) + (param_2 - *local_38));
return (uint)(*param_3 != '\0' || param_2 == 0);
}
}
local_c = 0;
}
else {
local_c = 0xffffff9b;
}
return local_c;
}
| |
27,010 | my_hrtime | eloqsql/mysys/my_getsystime.c | my_hrtime_t my_hrtime()
{
my_hrtime_t hrtime;
#if defined(_WIN32)
ulonglong newtime;
GetSystemTimePreciseAsFileTime((FILETIME*)&newtime);
hrtime.val= (newtime - OFFSET_TO_EPOC)/10;
#elif defined(HAVE_CLOCK_GETTIME)
struct timespec tp;
clock_gettime(CLOCK_REALTIME, &tp);
hrtime.val= tp.tv_sec*1000000ULL+tp.tv_nsec/1000ULL;
#else
struct timeval t;
/* The following loop is here because gettimeofday may fail */
while (gettimeofday(&t, NULL) != 0) {}
hrtime.val= t.tv_sec*1000000ULL + t.tv_usec;
#endif
DBUG_EXECUTE_IF("system_time_plus_one_hour", hrtime.val += 3600*1000000ULL;);
DBUG_EXECUTE_IF("system_time_minus_one_hour", hrtime.val -= 3600*1000000ULL;);
return hrtime;
} | O3 | c | my_hrtime:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x18, %rsp
leaq -0x18(%rbp), %rbx
xorl %edi, %edi
movq %rbx, %rsi
callq 0x242f0
imulq $0xf4240, (%rbx), %rcx # imm = 0xF4240
movq 0x8(%rbx), %rax
shrq $0x3, %rax
movabsq $0x20c49ba5e353f7cf, %rdx # imm = 0x20C49BA5E353F7CF
mulq %rdx
shrq $0x4, %rdx
addq %rdx, %rcx
movq %rcx, %rax
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
| my_hrtime:
push rbp
mov rbp, rsp
push rbx
sub rsp, 18h
lea rbx, [rbp+var_18]
xor edi, edi
mov rsi, rbx
call _clock_gettime
imul rcx, [rbx], 0F4240h
mov rax, [rbx+8]
shr rax, 3
mov rdx, 20C49BA5E353F7CFh
mul rdx
shr rdx, 4
add rcx, rdx
mov rax, rcx
add rsp, 18h
pop rbx
pop rbp
retn
| unsigned long long my_hrtime()
{
long long v1; // [rsp+8h] [rbp-18h] BYREF
unsigned long long v2; // [rsp+10h] [rbp-10h]
clock_gettime(0LL, &v1);
return v2 / 0x3E8 + 1000000 * v1;
}
| my_hrtime:
PUSH RBP
MOV RBP,RSP
PUSH RBX
SUB RSP,0x18
LEA RBX,[RBP + -0x18]
XOR EDI,EDI
MOV RSI,RBX
CALL 0x001242f0
IMUL RCX,qword ptr [RBX],0xf4240
MOV RAX,qword ptr [RBX + 0x8]
SHR RAX,0x3
MOV RDX,0x20c49ba5e353f7cf
MUL RDX
SHR RDX,0x4
ADD RCX,RDX
MOV RAX,RCX
ADD RSP,0x18
POP RBX
POP RBP
RET
|
long my_hrtime(void)
{
timespec local_20;
clock_gettime(0,&local_20);
return local_20.tv_sec * 1000000 + (ulong)local_20.tv_nsec / 1000;
}
| |
27,011 | bc_put_atom | bluesky950520[P]quickjs/quickjs.c | static int bc_put_atom(BCWriterState *s, JSAtom atom)
{
uint32_t v;
if (__JS_AtomIsTaggedInt(atom)) {
v = (__JS_AtomToUInt32(atom) << 1) | 1;
} else {
if (bc_atom_to_idx(s, &v, atom))
return -1;
v <<= 1;
}
bc_put_leb128(s, v);
return 0;
} | O0 | c | bc_put_atom:
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
movl %esi, 0x4(%rsp)
movl 0x4(%rsp), %edi
callq 0x34e00
cmpl $0x0, %eax
je 0x7809e
movl 0x4(%rsp), %edi
callq 0x34e20
shll %eax
orl $0x1, %eax
movl %eax, (%rsp)
jmp 0x780c6
movq 0x8(%rsp), %rdi
movl 0x4(%rsp), %edx
movq %rsp, %rsi
callq 0x785b0
cmpl $0x0, %eax
je 0x780be
movl $0xffffffff, 0x14(%rsp) # imm = 0xFFFFFFFF
jmp 0x780db
movl (%rsp), %eax
shll %eax
movl %eax, (%rsp)
movq 0x8(%rsp), %rdi
movl (%rsp), %esi
callq 0x77470
movl $0x0, 0x14(%rsp)
movl 0x14(%rsp), %eax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
| bc_put_atom:
sub rsp, 18h
mov [rsp+18h+var_10], rdi
mov [rsp+18h+var_14], esi
mov edi, [rsp+18h+var_14]
call __JS_AtomIsTaggedInt
cmp eax, 0
jz short loc_7809E
mov edi, [rsp+18h+var_14]
call __JS_AtomToUInt32
shl eax, 1
or eax, 1
mov [rsp+18h+var_18], eax
jmp short loc_780C6
loc_7809E:
mov rdi, [rsp+18h+var_10]
mov edx, [rsp+18h+var_14]
mov rsi, rsp
call bc_atom_to_idx
cmp eax, 0
jz short loc_780BE
mov [rsp+18h+var_4], 0FFFFFFFFh
jmp short loc_780DB
loc_780BE:
mov eax, [rsp+18h+var_18]
shl eax, 1
mov [rsp+18h+var_18], eax
loc_780C6:
mov rdi, [rsp+18h+var_10]
mov esi, [rsp+18h+var_18]
call bc_put_leb128
mov [rsp+18h+var_4], 0
loc_780DB:
mov eax, [rsp+18h+var_4]
add rsp, 18h
retn
| long long bc_put_atom(long long a1, int a2)
{
unsigned int v3; // [rsp+0h] [rbp-18h] BYREF
unsigned int v4; // [rsp+4h] [rbp-14h]
long long v5; // [rsp+8h] [rbp-10h]
v5 = a1;
v4 = a2;
if ( _JS_AtomIsTaggedInt(a2) )
{
v3 = (2 * _JS_AtomToUInt32(v4)) | 1;
LABEL_6:
bc_put_leb128(v5, v3);
return 0;
}
if ( !(unsigned int)bc_atom_to_idx(v5, &v3, v4) )
{
v3 *= 2;
goto LABEL_6;
}
return (unsigned int)-1;
}
| bc_put_atom:
SUB RSP,0x18
MOV qword ptr [RSP + 0x8],RDI
MOV dword ptr [RSP + 0x4],ESI
MOV EDI,dword ptr [RSP + 0x4]
CALL 0x00134e00
CMP EAX,0x0
JZ 0x0017809e
MOV EDI,dword ptr [RSP + 0x4]
CALL 0x00134e20
SHL EAX,0x1
OR EAX,0x1
MOV dword ptr [RSP],EAX
JMP 0x001780c6
LAB_0017809e:
MOV RDI,qword ptr [RSP + 0x8]
MOV EDX,dword ptr [RSP + 0x4]
MOV RSI,RSP
CALL 0x001785b0
CMP EAX,0x0
JZ 0x001780be
MOV dword ptr [RSP + 0x14],0xffffffff
JMP 0x001780db
LAB_001780be:
MOV EAX,dword ptr [RSP]
SHL EAX,0x1
MOV dword ptr [RSP],EAX
LAB_001780c6:
MOV RDI,qword ptr [RSP + 0x8]
MOV ESI,dword ptr [RSP]
CALL 0x00177470
MOV dword ptr [RSP + 0x14],0x0
LAB_001780db:
MOV EAX,dword ptr [RSP + 0x14]
ADD RSP,0x18
RET
|
int4 bc_put_atom(int8 param_1,int4 param_2)
{
int iVar1;
uint local_18;
int4 local_14;
int8 local_10;
local_14 = param_2;
local_10 = param_1;
iVar1 = __JS_AtomIsTaggedInt(param_2);
if (iVar1 == 0) {
iVar1 = bc_atom_to_idx(local_10,&local_18,local_14);
if (iVar1 != 0) {
return 0xffffffff;
}
local_18 = local_18 << 1;
}
else {
iVar1 = __JS_AtomToUInt32(local_14);
local_18 = iVar1 << 1 | 1;
}
bc_put_leb128(local_10,local_18);
return 0;
}
| |
27,012 | bc_put_atom | bluesky950520[P]quickjs/quickjs.c | static int bc_put_atom(BCWriterState *s, JSAtom atom)
{
uint32_t v;
if (__JS_AtomIsTaggedInt(atom)) {
v = (__JS_AtomToUInt32(atom) << 1) | 1;
} else {
if (bc_atom_to_idx(s, &v, atom))
return -1;
v <<= 1;
}
bc_put_leb128(s, v);
return 0;
} | O1 | c | bc_put_atom:
pushq %rbx
subq $0x10, %rsp
movl %esi, %edx
movq %rdi, %rbx
testl %esi, %esi
js 0x44c1f
leaq 0xc(%rsp), %rsi
movq %rbx, %rdi
callq 0x44c87
testl %eax, %eax
je 0x44c28
addq $0x10, %rsp
popq %rbx
retq
leal 0x1(,%rdx,2), %esi
jmp 0x44c2e
movl 0xc(%rsp), %esi
addl %esi, %esi
movl %esi, 0xc(%rsp)
addq $0x8, %rbx
movq %rbx, %rdi
addq $0x10, %rsp
popq %rbx
jmp 0x44c40
| bc_put_atom:
push rbx
sub rsp, 10h
mov edx, esi
mov rbx, rdi
test esi, esi
js short loc_44C1F
lea rsi, [rsp+18h+var_C]
mov rdi, rbx
call bc_atom_to_idx
test eax, eax
jz short loc_44C28
add rsp, 10h
pop rbx
retn
loc_44C1F:
lea esi, ds:1[rdx*2]
jmp short loc_44C2E
loc_44C28:
mov esi, [rsp+18h+var_C]
add esi, esi
loc_44C2E:
mov [rsp+18h+var_C], esi
add rbx, 8
mov rdi, rbx
add rsp, 10h
pop rbx
jmp short $+2
| long long bc_put_atom(long long a1, int a2)
{
long long result; // rax
long long v3; // rsi
_DWORD v4[3]; // [rsp+Ch] [rbp-Ch] BYREF
if ( a2 < 0 )
{
v3 = (unsigned int)(2 * a2 + 1);
return dbuf_put_leb128(a1 + 8, v3);
}
result = bc_atom_to_idx(a1, v4, (unsigned int)a2);
if ( !(_DWORD)result )
{
v3 = (unsigned int)(2 * v4[0]);
return dbuf_put_leb128(a1 + 8, v3);
}
return result;
}
| bc_put_atom:
PUSH RBX
SUB RSP,0x10
MOV EDX,ESI
MOV RBX,RDI
TEST ESI,ESI
JS 0x00144c1f
LEA RSI,[RSP + 0xc]
MOV RDI,RBX
CALL 0x00144c87
TEST EAX,EAX
JZ 0x00144c28
ADD RSP,0x10
POP RBX
RET
LAB_00144c1f:
LEA ESI,[0x1 + RDX*0x2]
JMP 0x00144c2e
LAB_00144c28:
MOV ESI,dword ptr [RSP + 0xc]
ADD ESI,ESI
LAB_00144c2e:
MOV dword ptr [RSP + 0xc],ESI
ADD RBX,0x8
MOV RDI,RBX
ADD RSP,0x10
POP RBX
JMP 0x00144c40
|
void bc_put_atom(long param_1,int param_2)
{
int iVar1;
int local_c;
if (param_2 < 0) {
local_c = param_2 * 2 + 1;
}
else {
iVar1 = bc_atom_to_idx(param_1,&local_c);
if (iVar1 != 0) {
return;
}
local_c = local_c * 2;
}
dbuf_put_leb128(param_1 + 8);
return;
}
| |
27,013 | my_hash_sort_ucs2_bin | eloqsql/strings/ctype-ucs2.c | static void
my_hash_sort_ucs2_bin(CHARSET_INFO *cs,
const uchar *key, size_t len, ulong *nr1, ulong *nr2)
{
size_t lengthsp= my_lengthsp_mb2(cs, (const char *) key, len);
my_hash_sort_ucs2_nopad_bin(cs, key, lengthsp, nr1, nr2);
} | O3 | c | my_hash_sort_ucs2_bin:
movq %rdx, %rax
cmpq $0x2, %rdx
jl 0xc9311
cmpb $0x20, -0x1(%rsi,%rax)
jne 0xc9309
leaq -0x2(%rax), %rdx
cmpb $0x0, -0x2(%rsi,%rax)
je 0xc92ee
movq (%rcx), %rdx
movq (%r8), %rdi
jmp 0xc931d
movq (%rcx), %rdx
movq (%r8), %rdi
cmpq $0x1, %rax
jne 0xc9350
pushq %rbp
movq %rsp, %rbp
addq %rsi, %rax
movl %edx, %r9d
andl $0x3f, %r9d
addq %rdi, %r9
movzbl (%rsi), %r10d
imulq %r9, %r10
movq %rdx, %r9
shlq $0x8, %r9
addq %r10, %r9
xorq %r9, %rdx
addq $0x3, %rdi
incq %rsi
cmpq %rax, %rsi
jb 0xc9324
popq %rbp
movq %rdx, (%rcx)
movq %rdi, (%r8)
retq
| my_hash_sort_ucs2_bin:
mov rax, rdx
cmp rdx, 2
jl short loc_C9311
cmp byte ptr [rsi+rax-1], 20h ; ' '
jnz short loc_C9309
lea rdx, [rax-2]
cmp byte ptr [rsi+rax-2], 0
jz short my_hash_sort_ucs2_bin
loc_C9309:
mov rdx, [rcx]
mov rdi, [r8]
jmp short loc_C931D
loc_C9311:
mov rdx, [rcx]
mov rdi, [r8]
cmp rax, 1
jnz short loc_C9350
loc_C931D:
push rbp
mov rbp, rsp
add rax, rsi
loc_C9324:
mov r9d, edx
and r9d, 3Fh
add r9, rdi
movzx r10d, byte ptr [rsi]
imul r10, r9
mov r9, rdx
shl r9, 8
add r9, r10
xor rdx, r9
add rdi, 3
inc rsi
cmp rsi, rax
jb short loc_C9324
pop rbp
loc_C9350:
mov [rcx], rdx
mov [r8], rdi
retn
| unsigned long long my_hash_sort_ucs2_bin(
long long a1,
unsigned long long a2,
long long a3,
long long *a4,
long long *a5)
{
unsigned long long result; // rax
long long v6; // rdx
long long v7; // rdi
while ( 1 )
{
result = a3;
if ( a3 < 2 )
break;
if ( *(_BYTE *)(a2 + a3 - 1) == 32 )
{
a3 -= 2LL;
if ( !*(_BYTE *)(a2 + result - 2) )
continue;
}
v6 = *a4;
v7 = *a5;
goto LABEL_6;
}
v6 = *a4;
v7 = *a5;
if ( result != 1 )
goto LABEL_8;
LABEL_6:
result += a2;
do
{
v6 ^= (v7 + (v6 & 0x3F)) * *(unsigned __int8 *)a2 + (v6 << 8);
v7 += 3LL;
++a2;
}
while ( a2 < result );
LABEL_8:
*a4 = v6;
*a5 = v7;
return result;
}
| my_hash_sort_ucs2_bin:
MOV RAX,RDX
CMP RDX,0x2
JL 0x001c9311
CMP byte ptr [RSI + RAX*0x1 + -0x1],0x20
JNZ 0x001c9309
LEA RDX,[RAX + -0x2]
CMP byte ptr [RSI + RAX*0x1 + -0x2],0x0
JZ 0x001c92ee
LAB_001c9309:
MOV RDX,qword ptr [RCX]
MOV RDI,qword ptr [R8]
JMP 0x001c931d
LAB_001c9311:
MOV RDX,qword ptr [RCX]
MOV RDI,qword ptr [R8]
CMP RAX,0x1
JNZ 0x001c9350
LAB_001c931d:
PUSH RBP
MOV RBP,RSP
ADD RAX,RSI
LAB_001c9324:
MOV R9D,EDX
AND R9D,0x3f
ADD R9,RDI
MOVZX R10D,byte ptr [RSI]
IMUL R10,R9
MOV R9,RDX
SHL R9,0x8
ADD R9,R10
XOR RDX,R9
ADD RDI,0x3
INC RSI
CMP RSI,RAX
JC 0x001c9324
POP RBP
LAB_001c9350:
MOV qword ptr [RCX],RDX
MOV qword ptr [R8],RDI
RET
|
void my_hash_sort_ucs2_bin
(int8 param_1,byte *param_2,long param_3,ulong *param_4,long *param_5)
{
byte *pbVar1;
long lVar2;
ulong uVar3;
long lVar4;
do {
lVar2 = param_3;
if (lVar2 < 2) {
uVar3 = *param_4;
lVar4 = *param_5;
if (lVar2 != 1) goto LAB_001c9350;
goto LAB_001c931d;
}
} while ((param_2[lVar2 + -1] == 0x20) && (param_3 = lVar2 + -2, param_2[lVar2 + -2] == 0));
uVar3 = *param_4;
lVar4 = *param_5;
LAB_001c931d:
pbVar1 = param_2 + lVar2;
do {
uVar3 = uVar3 ^ uVar3 * 0x100 + (ulong)*param_2 * ((ulong)((uint)uVar3 & 0x3f) + lVar4);
lVar4 = lVar4 + 3;
param_2 = param_2 + 1;
} while (param_2 < pbVar1);
LAB_001c9350:
*param_4 = uVar3;
*param_5 = lVar4;
return;
}
| |
27,014 | my_dirend | eloqsql/mysys/my_lib.c | void my_dirend(MY_DIR *dir)
{
MY_DIR_HANDLE *dirh= (MY_DIR_HANDLE*) dir;
DBUG_ENTER("my_dirend");
if (dirh)
{
delete_dynamic(&dirh->array);
free_root(&dirh->root, MYF(0));
my_free(dirh);
}
DBUG_VOID_RETURN;
} | O0 | c | my_dirend:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0xc1a232
movq -0x10(%rbp), %rdi
addq $0x10, %rdi
callq 0xbf7fd0
movq -0x10(%rbp), %rdi
addq $0x38, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xc0ff60
movq -0x10(%rbp), %rdi
callq 0xc1ae80
jmp 0xc1a234
jmp 0xc1a236
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
| my_dirend:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
cmp [rbp+var_10], 0
jz short loc_C1A232
mov rdi, [rbp+var_10]
add rdi, 10h
call delete_dynamic
mov rdi, [rbp+var_10]
add rdi, 38h ; '8'
xor eax, eax
mov esi, eax
call free_root
mov rdi, [rbp+var_10]
call my_free
loc_C1A232:
jmp short $+2
loc_C1A234:
jmp short $+2
loc_C1A236:
add rsp, 10h
pop rbp
retn
| long long my_dirend(long long a1)
{
long long result; // rax
result = a1;
if ( a1 )
{
delete_dynamic(a1 + 16);
free_root(a1 + 56, 0);
return my_free(a1);
}
return result;
}
| inline_mysql_file_open:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV dword ptr [RBP + -0x8],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV qword ptr [RBP + -0x20],RCX
MOV dword ptr [RBP + -0x24],R8D
MOV qword ptr [RBP + -0x30],R9
LEA RAX,[0x14feec0]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x148]
MOV ESI,dword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP + -0x20]
LEA RDI,[RBP + -0x88]
MOV EDX,0x2
LEA R8,[RBP + -0x40]
CALL RAX
MOV qword ptr [RBP + -0x40],RAX
CMP qword ptr [RBP + -0x40],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 0x00c1a2b2
LEA RAX,[0x14feec0]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1f0]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RBP + -0x14]
CALL RAX
MOV RDI,qword ptr [RBP + -0x20]
MOV ESI,dword ptr [RBP + -0x24]
MOV RDX,qword ptr [RBP + -0x30]
CALL 0x00d1b510
MOV dword ptr [RBP + -0x34],EAX
LEA RAX,[0x14feec0]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x200]
MOV RDI,qword ptr [RBP + -0x40]
MOV ESI,dword ptr [RBP + -0x34]
CALL RAX
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00c1a2cb
LAB_00c1a2b2:
MOV RDI,qword ptr [RBP + -0x20]
MOV ESI,dword ptr [RBP + -0x24]
MOV RDX,qword ptr [RBP + -0x30]
CALL 0x00d1b510
MOV dword ptr [RBP + -0x34],EAX
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x4],EAX
LAB_00c1a2cb:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x90
POP RBP
RET
|
int4
inline_mysql_file_open
(int4 param_1,int8 param_2,int4 param_3,int8 param_4,
int4 param_5,int8 param_6)
{
int1 local_90 [72];
long local_48;
int4 local_3c;
int8 local_38;
int4 local_2c;
int8 local_28;
int4 local_1c;
int8 local_18;
int4 local_10;
int4 local_c;
local_38 = param_6;
local_2c = param_5;
local_28 = param_4;
local_1c = param_3;
local_18 = param_2;
local_10 = param_1;
local_48 = (**(code **)(PSI_server + 0x148))(local_90,param_1,2,param_4,&local_48);
if (local_48 == 0) {
local_c = my_open(local_28,local_2c,local_38);
}
else {
(**(code **)(PSI_server + 0x1f0))(local_48,local_18,local_1c);
local_3c = my_open(local_28,local_2c,local_38);
(**(code **)(PSI_server + 0x200))(local_48,local_3c);
local_c = local_3c;
}
return local_c;
}
| |
27,015 | llava_image_embed_make_with_bytes | monkey531[P]llama/examples/llava/llava.cpp | struct llava_image_embed * llava_image_embed_make_with_bytes(struct clip_ctx * ctx_clip, int n_threads, const unsigned char * image_bytes, int image_bytes_length) {
clip_image_u8 * img = clip_image_u8_init();
if (!clip_image_load_from_bytes(image_bytes, image_bytes_length, img)) {
clip_image_u8_free(img);
LOG_ERR("%s: can't load image from bytes, is it a valid image?", __func__);
return NULL;
}
float* image_embed = NULL;
int n_image_pos = 0;
bool image_embed_result = llava_image_embed_make_with_clip_img(ctx_clip, n_threads, img, &image_embed, &n_image_pos);
if (!image_embed_result) {
clip_image_u8_free(img);
LOG_ERR("%s: couldn't embed the image\n", __func__);
return NULL;
}
clip_image_u8_free(img);
auto result = (llava_image_embed*)malloc(sizeof(llava_image_embed));
result->embed = image_embed;
result->n_image_pos = n_image_pos;
return result;
} | O1 | cpp | llava_image_embed_make_with_bytes:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %ecx, %r15d
movq %rdx, %r12
movl %esi, %ebp
movq %rdi, %r14
callq 0x312c0
movq %rax, %rbx
movslq %r15d, %rsi
movq %r12, %rdi
movq %rax, %rdx
callq 0x314cb
testb %al, %al
je 0x277bc
leaq 0x8(%rsp), %rcx
movq $0x0, (%rcx)
leaq 0x4(%rsp), %r8
movl $0x0, (%r8)
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x26700
movl %eax, %ebp
movq %rbx, %rdi
callq 0x312ee
testb %bpl, %bpl
je 0x277c6
movl $0x10, %edi
callq 0x1e000
movq 0x8(%rsp), %rcx
movq %rcx, (%rax)
movl 0x4(%rsp), %ecx
movl %ecx, 0x8(%rax)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x1ec4f
jmp 0x277cb
callq 0x1ec75
xorl %eax, %eax
jmp 0x277af
| llava_image_embed_make_with_bytes:
push rbp; int
push r15; __int64
push r14; int
push r12; void *
push rbx; int
sub rsp, 10h
mov r15d, ecx
mov r12, rdx
mov ebp, esi
mov r14, rdi
call clip_image_u8_init
mov rbx, rax
movsxd rsi, r15d
mov rdi, r12
mov rdx, rax
call clip_image_load_from_bytes
test al, al
jz short loc_277BC
lea rcx, [rsp+38h+var_30]
mov qword ptr [rcx], 0
lea r8, [rsp+38h+var_34]
mov dword ptr [r8], 0
mov rdi, r14; int
mov esi, ebp
mov rdx, rbx
call llava_image_embed_make_with_clip_img
mov ebp, eax
mov rdi, rbx; void *
call clip_image_u8_free
test bpl, bpl
jz short loc_277C6
mov edi, 10h
call _malloc
mov rcx, [rsp+38h+var_30]
mov [rax], rcx
mov ecx, [rsp+38h+var_34]
mov [rax+8], ecx
loc_277AF:
add rsp, 10h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_277BC:
mov rdi, rbx
call llava_image_embed_make_with_bytes_cold_1
jmp short loc_277CB
loc_277C6:
call llava_image_embed_make_with_bytes_cold_2
loc_277CB:
xor eax, eax
jmp short loc_277AF
| long long llava_image_embed_make_with_bytes(long long a1, int a2, long long a3, int a4)
{
int *v6; // rbx
char v7; // bp
long long result; // rax
int v9; // [rsp+4h] [rbp-34h] BYREF
_QWORD v10[6]; // [rsp+8h] [rbp-30h] BYREF
v6 = (int *)clip_image_u8_init();
if ( (unsigned __int8)clip_image_load_from_bytes(a3, a4, v6) )
{
v10[0] = 0LL;
v9 = 0;
v7 = llava_image_embed_make_with_clip_img(a1, a2, v6, v10, (long long)&v9);
clip_image_u8_free(v6);
if ( v7 )
{
result = malloc(16LL);
*(_QWORD *)result = v10[0];
*(_DWORD *)(result + 8) = v9;
return result;
}
llava_image_embed_make_with_bytes_cold_2();
}
else
{
llava_image_embed_make_with_bytes_cold_1(v6);
}
return 0LL;
}
| llava_image_embed_make_with_bytes:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV R15D,ECX
MOV R12,RDX
MOV EBP,ESI
MOV R14,RDI
CALL 0x001312c0
MOV RBX,RAX
MOVSXD RSI,R15D
MOV RDI,R12
MOV RDX,RAX
CALL 0x001314cb
TEST AL,AL
JZ 0x001277bc
LEA RCX,[RSP + 0x8]
MOV qword ptr [RCX],0x0
LEA R8,[RSP + 0x4]
MOV dword ptr [R8],0x0
MOV RDI,R14
MOV ESI,EBP
MOV RDX,RBX
CALL 0x00126700
MOV EBP,EAX
MOV RDI,RBX
CALL 0x001312ee
TEST BPL,BPL
JZ 0x001277c6
MOV EDI,0x10
CALL 0x0011e000
MOV RCX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX],RCX
MOV ECX,dword ptr [RSP + 0x4]
MOV dword ptr [RAX + 0x8],ECX
LAB_001277af:
ADD RSP,0x10
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_001277bc:
MOV RDI,RBX
CALL 0x0011ec4f
JMP 0x001277cb
LAB_001277c6:
CALL 0x0011ec75
LAB_001277cb:
XOR EAX,EAX
JMP 0x001277af
|
int8 *
llava_image_embed_make_with_bytes
(int8 param_1,int4 param_2,int8 param_3,int param_4)
{
char cVar1;
int8 uVar2;
int8 *puVar3;
uVar2 = clip_image_u8_init();
cVar1 = clip_image_load_from_bytes(param_3,(long)param_4,uVar2);
if (cVar1 == '\0') {
llava_image_embed_make_with_bytes_cold_1(uVar2);
}
else {
cVar1 = llava_image_embed_make_with_clip_img(param_1,param_2,uVar2);
clip_image_u8_free(uVar2);
if (cVar1 != '\0') {
puVar3 = (int8 *)malloc(0x10);
*puVar3 = 0;
*(int4 *)(puVar3 + 1) = 0;
return puVar3;
}
llava_image_embed_make_with_bytes_cold_2();
}
return (int8 *)0x0;
}
| |
27,016 | llava_image_embed_make_with_bytes | monkey531[P]llama/examples/llava/llava.cpp | struct llava_image_embed * llava_image_embed_make_with_bytes(struct clip_ctx * ctx_clip, int n_threads, const unsigned char * image_bytes, int image_bytes_length) {
clip_image_u8 * img = clip_image_u8_init();
if (!clip_image_load_from_bytes(image_bytes, image_bytes_length, img)) {
clip_image_u8_free(img);
LOG_ERR("%s: can't load image from bytes, is it a valid image?", __func__);
return NULL;
}
float* image_embed = NULL;
int n_image_pos = 0;
bool image_embed_result = llava_image_embed_make_with_clip_img(ctx_clip, n_threads, img, &image_embed, &n_image_pos);
if (!image_embed_result) {
clip_image_u8_free(img);
LOG_ERR("%s: couldn't embed the image\n", __func__);
return NULL;
}
clip_image_u8_free(img);
auto result = (llava_image_embed*)malloc(sizeof(llava_image_embed));
result->embed = image_embed;
result->n_image_pos = n_image_pos;
return result;
} | O2 | cpp | llava_image_embed_make_with_bytes:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %ecx, %r15d
movq %rdx, %r12
movl %esi, %ebp
movq %rdi, %r14
callq 0x357d9
movq %rax, %rbx
movslq %r15d, %rsi
movq %r12, %rdi
movq %rax, %rdx
callq 0x359c4
testb %al, %al
je 0x2ce9b
leaq 0x8(%rsp), %rcx
andq $0x0, (%rcx)
leaq 0x4(%rsp), %r8
andl $0x0, (%r8)
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x2bf20
movl %eax, %ebp
movq %rbx, %rdi
callq 0x35803
testb %bpl, %bpl
je 0x2ceb6
pushq $0x10
popq %rdi
callq 0x27050
movq %rax, %rbx
movq 0x8(%rsp), %rax
movq %rax, (%rbx)
movl 0x4(%rsp), %eax
movl %eax, 0x8(%rbx)
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x35803
movq 0xf40de(%rip), %rax # 0x120f88
movq (%rax), %rdi
leaq 0x989ba(%rip), %rsi # 0xc586e
jmp 0x2cec7
movq 0xf40cb(%rip), %rax # 0x120f88
movq (%rax), %rdi
leaq 0x989ff(%rip), %rsi # 0xc58c6
leaq 0x989d6(%rip), %rdx # 0xc58a4
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x271f0
jmp 0x2ce8b
| llava_image_embed_make_with_bytes:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 10h
mov r15d, ecx
mov r12, rdx
mov ebp, esi
mov r14, rdi
call clip_image_u8_init
mov rbx, rax
movsxd rsi, r15d
mov rdi, r12
mov rdx, rax
call clip_image_load_from_bytes
test al, al
jz short loc_2CE9B
lea rcx, [rsp+38h+var_30]
and qword ptr [rcx], 0
lea r8, [rsp+38h+var_34]
and dword ptr [r8], 0
mov rdi, r14
mov esi, ebp
mov rdx, rbx
call llava_image_embed_make_with_clip_img
mov ebp, eax
mov rdi, rbx; void *
call clip_image_u8_free
test bpl, bpl
jz short loc_2CEB6
push 10h
pop rdi
call _malloc
mov rbx, rax
mov rax, [rsp+38h+var_30]
mov [rbx], rax
mov eax, [rsp+38h+var_34]
mov [rbx+8], eax
loc_2CE8B:
mov rax, rbx
add rsp, 10h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_2CE9B:
mov rdi, rbx; void *
call clip_image_u8_free
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aSCanTLoadImage_0; "%s: can't load image from bytes, is it "...
jmp short loc_2CEC7
loc_2CEB6:
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aSCouldnTEmbedT; "%s: couldn't embed the image\n"
loc_2CEC7:
lea rdx, aLlavaImageEmbe_1; "llava_image_embed_make_with_bytes"
xor ebx, ebx
xor eax, eax
call _fprintf
jmp short loc_2CE8B
| long long llava_image_embed_make_with_bytes(long long a1, unsigned int a2, long long a3, int a4)
{
void *v6; // rbx
char v7; // bp
long long v8; // rbx
long long v10; // rdi
const char *v11; // rsi
int v12; // [rsp+4h] [rbp-34h] BYREF
long long v13[6]; // [rsp+8h] [rbp-30h] BYREF
v6 = (void *)clip_image_u8_init();
if ( !(unsigned __int8)clip_image_load_from_bytes(a3, a4, v6) )
{
clip_image_u8_free(v6);
v10 = stderr;
v11 = "%s: can't load image from bytes, is it a valid image?";
LABEL_7:
v8 = 0LL;
fprintf(v10, v11, "llava_image_embed_make_with_bytes");
return v8;
}
v13[0] = 0LL;
v12 = 0;
v7 = llava_image_embed_make_with_clip_img(a1, a2, (unsigned int *)v6, v13, &v12);
clip_image_u8_free(v6);
if ( !v7 )
{
v10 = stderr;
v11 = "%s: couldn't embed the image\n";
goto LABEL_7;
}
v8 = malloc(16LL);
*(_QWORD *)v8 = v13[0];
*(_DWORD *)(v8 + 8) = v12;
return v8;
}
| llava_image_embed_make_with_bytes:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV R15D,ECX
MOV R12,RDX
MOV EBP,ESI
MOV R14,RDI
CALL 0x001357d9
MOV RBX,RAX
MOVSXD RSI,R15D
MOV RDI,R12
MOV RDX,RAX
CALL 0x001359c4
TEST AL,AL
JZ 0x0012ce9b
LEA RCX,[RSP + 0x8]
AND qword ptr [RCX],0x0
LEA R8,[RSP + 0x4]
AND dword ptr [R8],0x0
MOV RDI,R14
MOV ESI,EBP
MOV RDX,RBX
CALL 0x0012bf20
MOV EBP,EAX
MOV RDI,RBX
CALL 0x00135803
TEST BPL,BPL
JZ 0x0012ceb6
PUSH 0x10
POP RDI
CALL 0x00127050
MOV RBX,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RBX],RAX
MOV EAX,dword ptr [RSP + 0x4]
MOV dword ptr [RBX + 0x8],EAX
LAB_0012ce8b:
MOV RAX,RBX
ADD RSP,0x10
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0012ce9b:
MOV RDI,RBX
CALL 0x00135803
MOV RAX,qword ptr [0x00220f88]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x1c586e]
JMP 0x0012cec7
LAB_0012ceb6:
MOV RAX,qword ptr [0x00220f88]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x1c58c6]
LAB_0012cec7:
LEA RDX,[0x1c58a4]
XOR EBX,EBX
XOR EAX,EAX
CALL 0x001271f0
JMP 0x0012ce8b
|
int8 *
llava_image_embed_make_with_bytes
(int8 param_1,int4 param_2,int8 param_3,int param_4)
{
char cVar1;
int8 uVar2;
int8 *puVar3;
char *__format;
FILE *__stream;
uVar2 = clip_image_u8_init();
cVar1 = clip_image_load_from_bytes(param_3,(long)param_4,uVar2);
if (cVar1 == '\0') {
clip_image_u8_free(uVar2);
__stream = *(FILE **)PTR_stderr_00220f88;
__format = "%s: can\'t load image from bytes, is it a valid image?";
}
else {
cVar1 = llava_image_embed_make_with_clip_img(param_1,param_2,uVar2);
clip_image_u8_free(uVar2);
if (cVar1 != '\0') {
puVar3 = (int8 *)malloc(0x10);
*puVar3 = 0;
*(int4 *)(puVar3 + 1) = 0;
return puVar3;
}
__stream = *(FILE **)PTR_stderr_00220f88;
__format = "%s: couldn\'t embed the image\n";
}
fprintf(__stream,__format,"llava_image_embed_make_with_bytes");
return (int8 *)0x0;
}
| |
27,017 | my_wc_mb_8bit | eloqsql/strings/ctype-simple.c | int my_wc_mb_8bit(CHARSET_INFO *cs,my_wc_t wc,
uchar *str,
uchar *end)
{
MY_UNI_IDX *idx;
if (str >= end)
return MY_CS_TOOSMALL;
for (idx=cs->tab_from_uni; idx->tab ; idx++)
{
if (idx->from <= wc && idx->to >= wc)
{
str[0]= idx->tab[wc - idx->from];
return (!str[0] && wc) ? MY_CS_ILUNI : 1;
}
}
return MY_CS_ILUNI;
} | O3 | c | my_wc_mb_8bit:
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0x7033d
pushq %rbp
movq %rsp, %rbp
movq 0x70(%rdi), %rcx
movq 0x8(%rcx), %rdi
xorl %eax, %eax
testq %rdi, %rdi
je 0x7033c
addq $0x2, %rcx
movzwl -0x2(%rcx), %r9d
movq %rsi, %r8
subq %r9, %r8
jb 0x70317
movzwl (%rcx), %r9d
cmpq %rsi, %r9
jae 0x70326
movq 0x16(%rcx), %rdi
addq $0x10, %rcx
testq %rdi, %rdi
jne 0x70301
jmp 0x7033c
movb (%rdi,%r8), %al
movb %al, (%rdx)
testb %al, %al
setne %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
movzbl %cl, %eax
popq %rbp
retq
| my_wc_mb_8bit:
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb short locret_7033D
push rbp
mov rbp, rsp
mov rcx, [rdi+70h]
mov rdi, [rcx+8]
xor eax, eax
test rdi, rdi
jz short loc_7033C
add rcx, 2
loc_70301:
movzx r9d, word ptr [rcx-2]
mov r8, rsi
sub r8, r9
jb short loc_70317
movzx r9d, word ptr [rcx]
cmp r9, rsi
jnb short loc_70326
loc_70317:
mov rdi, [rcx+16h]
add rcx, 10h
test rdi, rdi
jnz short loc_70301
jmp short loc_7033C
loc_70326:
mov al, [rdi+r8]
mov [rdx], al
test al, al
setnz al
test rsi, rsi
setz cl
or cl, al
movzx eax, cl
loc_7033C:
pop rbp
locret_7033D:
retn
| long long my_wc_mb_8bit(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4)
{
long long result; // rax
long long v5; // rcx
long long v6; // rdi
unsigned __int16 *i; // rcx
unsigned long long v8; // r9
char v9; // al
result = 4294967195LL;
if ( (unsigned long long)a3 < a4 )
{
v5 = *(_QWORD *)(a1 + 112);
v6 = *(_QWORD *)(v5 + 8);
result = 0LL;
if ( v6 )
{
for ( i = (unsigned __int16 *)(v5 + 2); ; i += 8 )
{
v8 = *(i - 1);
if ( a2 >= v8 && *i >= a2 )
break;
v6 = *(_QWORD *)(i + 11);
if ( !v6 )
return result;
}
v9 = *(_BYTE *)(v6 + a2 - v8);
*a3 = v9;
return (v9 != 0) | (unsigned __int8)(a2 == 0);
}
}
return result;
}
| my_wc_mb_8bit:
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x0017033d
PUSH RBP
MOV RBP,RSP
MOV RCX,qword ptr [RDI + 0x70]
MOV RDI,qword ptr [RCX + 0x8]
XOR EAX,EAX
TEST RDI,RDI
JZ 0x0017033c
ADD RCX,0x2
LAB_00170301:
MOVZX R9D,word ptr [RCX + -0x2]
MOV R8,RSI
SUB R8,R9
JC 0x00170317
MOVZX R9D,word ptr [RCX]
CMP R9,RSI
JNC 0x00170326
LAB_00170317:
MOV RDI,qword ptr [RCX + 0x16]
ADD RCX,0x10
TEST RDI,RDI
JNZ 0x00170301
JMP 0x0017033c
LAB_00170326:
MOV AL,byte ptr [RDI + R8*0x1]
MOV byte ptr [RDX],AL
TEST AL,AL
SETNZ AL
TEST RSI,RSI
SETZ CL
OR CL,AL
MOVZX EAX,CL
LAB_0017033c:
POP RBP
LAB_0017033d:
RET
|
ulong my_wc_mb_8bit(long param_1,ulong param_2,char *param_3,char *param_4)
{
char cVar1;
ulong uVar2;
ushort *puVar3;
long lVar4;
uVar2 = 0xffffff9b;
if (param_3 < param_4) {
lVar4 = *(long *)(*(long *)(param_1 + 0x70) + 8);
uVar2 = 0;
if (lVar4 != 0) {
puVar3 = (ushort *)(*(long *)(param_1 + 0x70) + 2);
do {
if ((puVar3[-1] <= param_2) && (param_2 <= *puVar3)) {
cVar1 = *(char *)(lVar4 + (param_2 - puVar3[-1]));
*param_3 = cVar1;
return (ulong)(param_2 == 0 || cVar1 != '\0');
}
lVar4 = *(long *)(puVar3 + 0xb);
puVar3 = puVar3 + 8;
} while (lVar4 != 0);
}
}
return uVar2;
}
| |
27,018 | evmone::(anonymous namespace)::InstructionTracer::on_instruction_start(unsigned int, intx::uint<256u> const*, int, long, evmone::ExecutionState const&) | corpus-core[P]colibri-stateless/build_O3/_deps/evmone_external-src/lib/evmone/tracing.cpp | void on_instruction_start(uint32_t pc, const intx::uint256* stack_top, int stack_height,
int64_t gas, const ExecutionState& state) noexcept override
{
const auto& ctx = m_contexts.top();
const auto opcode = ctx.code[pc];
m_out << "{";
m_out << R"("pc":)" << std::dec << pc;
m_out << R"(,"op":)" << std::dec << int{opcode};
m_out << R"(,"gas":"0x)" << std::hex << gas << '"';
m_out << R"(,"gasCost":"0x)" << std::hex << instr::gas_costs[state.rev][opcode] << '"';
// Full memory can be dumped as evmc::hex({state.memory.data(), state.memory.size()}),
// but this should not be done by default. Adding --tracing=+memory option would be nice.
m_out << R"(,"memSize":)" << std::dec << state.memory.size();
output_stack(stack_top, stack_height);
if (!state.return_data.empty())
m_out << R"(,"returnData":"0x)" << evmc::hex(state.return_data) << '"';
m_out << R"(,"depth":)" << std::dec << (ctx.depth + 1);
m_out << R"(,"refund":)" << std::dec << state.gas_refund;
m_out << R"(,"opName":")" << get_name(opcode) << '"';
m_out << "}\n";
} | O3 | cpp | evmone::(anonymous namespace)::InstructionTracer::on_instruction_start(unsigned int, intx::uint<256u> const*, int, long, evmone::ExecutionState const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %r9, 0x28(%rsp)
movq %r8, %r13
movl %ecx, %r15d
movq %rdx, 0x58(%rsp)
movq %rdi, %rbx
movq 0x40(%rdi), %rcx
cmpq 0x48(%rdi), %rcx
jne 0x4c3ee
movq 0x58(%rbx), %rax
movl $0x1f8, %ecx # imm = 0x1F8
addq -0x8(%rax), %rcx
movq %rcx, 0x60(%rsp)
movq -0x10(%rcx), %rax
movl %esi, %ebp
movzbl (%rax,%rbp), %r12d
movq 0x60(%rbx), %rdi
leaq 0x3d55c(%rip), %rsi # 0x89965
movl $0x1, %edx
callq 0x22460
movq 0x60(%rbx), %r14
leaq 0x3d549(%rip), %rsi # 0x89967
movl $0x5, %edx
movq %r14, %rdi
callq 0x22460
movq (%r14), %rax
movq -0x18(%rax), %rax
movl 0x18(%r14,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%r14,%rax)
movq %r14, %rdi
movq %rbp, %rsi
callq 0x22280
movq 0x60(%rbx), %r14
leaq 0x3d515(%rip), %rsi # 0x8996d
movl $0x6, %edx
movq %r14, %rdi
callq 0x22460
movq (%r14), %rax
movq -0x18(%rax), %rax
movl 0x18(%r14,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%r14,%rax)
movq %r14, %rdi
movl %r12d, %esi
callq 0x221a0
movq 0x60(%rbx), %r14
leaq 0x3d4e2(%rip), %rsi # 0x89974
movl $0xa, %edx
movq %r14, %rdi
callq 0x22460
movq (%r14), %rax
movq -0x18(%rax), %rax
movl 0x18(%r14,%rax), %ecx
andl $-0x4b, %ecx
orl $0x8, %ecx
movl %ecx, 0x18(%r14,%rax)
movq %r14, %rdi
movq %r13, %rsi
callq 0x221e0
leaq 0x30(%rsp), %rsi
movb $0x22, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x22460
movq 0x60(%rbx), %r13
leaq 0x3d49e(%rip), %rsi # 0x8997f
movl $0xe, %edx
movq %r13, %rdi
callq 0x22460
movq (%r13), %rax
movq -0x18(%rax), %rax
movl 0x18(%r13,%rax), %ecx
andl $-0x4b, %ecx
orl $0x8, %ecx
movl %ecx, 0x18(%r13,%rax)
movq 0x28(%rsp), %rax
movl 0x40(%rax), %eax
shlq $0x9, %rax
leaq 0x3d4cf(%rip), %rcx # 0x899e8
addq %rax, %rcx
movl %r12d, %eax
movswl (%rcx,%rax,2), %esi
movq %r13, %rdi
callq 0x222a0
leaq 0x30(%rsp), %rsi
movb $0x22, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x22460
movq 0x60(%rbx), %r14
leaq 0x3d443(%rip), %rsi # 0x8998e
movl $0xb, %edx
movq %r14, %rdi
callq 0x22460
movq (%r14), %rax
movq -0x18(%rax), %rax
movl 0x18(%r14,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%r14,%rax)
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0x22280
movq 0x60(%rbx), %rdi
leaq 0x3d445(%rip), %rsi # 0x899d0
movl $0xa, %edx
callq 0x22460
movl %r12d, 0x54(%rsp)
movq %rbx, %r12
testl %r15d, %r15d
je 0x4c670
movslq %r15d, %r15
shlq $0x5, %r15
movl $0x20, %eax
subq %r15, %rax
addq %rax, 0x58(%rsp)
xorl %ebx, %ebx
leaq 0x30(%rsp), %r13
leaq 0x27(%rsp), %rbp
testq %rbx, %rbx
je 0x4c5e2
movq 0x60(%r12), %rdi
movb $0x2c, 0x30(%rsp)
movl $0x1, %edx
movq %r13, %rsi
callq 0x22460
movq 0x60(%r12), %r14
movl $0x3, %edx
movq %r14, %rdi
leaq 0x3d3b2(%rip), %rsi # 0x899a8
callq 0x22460
movq 0x58(%rsp), %rax
addq %rbx, %rax
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %r13, %rdi
movl $0x10, %esi
callq 0x4ce4d
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq %r14, %rdi
callq 0x22460
movb $0x22, 0x27(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x22460
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x4c663
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x220c0
addq $0x20, %rbx
cmpq %rbx, %r15
jne 0x4c5c6
movq 0x60(%r12), %rdi
leaq 0x30(%rsp), %rsi
movb $0x5d, (%rsi)
movl $0x1, %edx
callq 0x22460
movl 0x54(%rsp), %ebp
movq 0x28(%rsp), %rax
cmpq $0x0, 0x50(%rax)
je 0x4c709
movq 0x60(%r12), %r14
leaq 0x3d2f7(%rip), %rsi # 0x8999a
movl $0x11, %edx
movq %r14, %rdi
callq 0x22460
movq 0x28(%rsp), %rax
movq 0x48(%rax), %rdx
movq 0x50(%rax), %rsi
leaq 0x30(%rsp), %rdi
callq 0x4cd50
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq %r14, %rdi
callq 0x22460
leaq 0x27(%rsp), %rsi
movb $0x22, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x22460
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4c709
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x220c0
movq 0x60(%r12), %r14
leaq 0x3d297(%rip), %rsi # 0x899ac
movl $0x9, %edx
movq %r14, %rdi
callq 0x22460
movq (%r14), %rax
movq -0x18(%rax), %rax
movl 0x18(%r14,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%r14,%rax)
movq 0x60(%rsp), %rax
movl -0x18(%rax), %esi
incl %esi
movq %r14, %rdi
callq 0x221a0
movq 0x60(%r12), %r14
leaq 0x3d25f(%rip), %rsi # 0x899b6
movl $0xa, %edx
movq %r14, %rdi
callq 0x22460
movq (%r14), %rax
movq -0x18(%rax), %rax
movl 0x18(%r14,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%r14,%rax)
movq 0x28(%rsp), %rax
movq (%rax), %rsi
movq %r14, %rdi
callq 0x221e0
movq 0x60(%r12), %r14
leaq 0x3d22a(%rip), %rsi # 0x899c1
movl $0xb, %edx
movq %r14, %rdi
callq 0x22460
leaq 0x30(%rsp), %rdi
movl %ebp, %esi
callq 0x4bf56
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq %r14, %rdi
callq 0x22460
leaq 0x27(%rsp), %rsi
movb $0x22, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x22460
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4c7f2
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x220c0
movq 0x60(%r12), %rdi
leaq 0x3d1cf(%rip), %rsi # 0x899cd
movl $0x2, %edx
callq 0x22460
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4c83a
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x4c83d
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x220c0
jmp 0x4c83d
movq %rax, %rbx
movq %rbx, %rdi
callq 0x30061
nop
| _ZN6evmone12_GLOBAL__N_117InstructionTracer20on_instruction_startEjPKN4intx4uintILj256EEEilRKNS_14ExecutionStateE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov [rsp+98h+var_70], r9
mov r13, r8
mov r15d, ecx
mov [rsp+98h+var_40], rdx
mov rbx, rdi
mov rcx, [rdi+40h]
cmp rcx, [rdi+48h]
jnz short loc_4C3EE
mov rax, [rbx+58h]
mov ecx, 1F8h
add rcx, [rax-8]
loc_4C3EE:
mov [rsp+98h+var_38], rcx
mov rax, [rcx-10h]
mov ebp, esi
movzx r12d, byte ptr [rax+rbp]
mov rdi, [rbx+60h]
lea rsi, asc_89965; "{"
mov edx, 1
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov r14, [rbx+60h]
lea rsi, aPc; "\"pc\":"
mov edx, 5
mov rdi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rax, [r14]
mov rax, [rax-18h]
mov ecx, [r14+rax+18h]
and ecx, 0FFFFFFB5h
or ecx, 2
mov [r14+rax+18h], ecx
mov rdi, r14
mov rsi, rbp
call __ZNSo9_M_insertImEERSoT_; std::ostream::_M_insert<ulong>(ulong)
mov r14, [rbx+60h]
lea rsi, aOp; ",\"op\":"
mov edx, 6
mov rdi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rax, [r14]
mov rax, [rax-18h]
mov ecx, [r14+rax+18h]
and ecx, 0FFFFFFB5h
or ecx, 2
mov [r14+rax+18h], ecx
mov rdi, r14
mov esi, r12d
call __ZNSolsEi; std::ostream::operator<<(int)
mov r14, [rbx+60h]
lea rsi, aGas0x; ",\"gas\":\"0x"
mov edx, 0Ah
mov rdi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rax, [r14]
mov rax, [rax-18h]
mov ecx, [r14+rax+18h]
and ecx, 0FFFFFFB5h
or ecx, 8
mov [r14+rax+18h], ecx
mov rdi, r14
mov rsi, r13
call __ZNSo9_M_insertIlEERSoT_; std::ostream::_M_insert<long>(long)
lea rsi, [rsp+98h+var_68]
mov byte ptr [rsi], 22h ; '"'
mov edx, 1
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov r13, [rbx+60h]
lea rsi, aGascost0x; ",\"gasCost\":\"0x"
mov edx, 0Eh
mov rdi, r13
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rax, [r13+0]
mov rax, [rax-18h]
mov ecx, [r13+rax+18h]
and ecx, 0FFFFFFB5h
or ecx, 8
mov [r13+rax+18h], ecx
mov rax, [rsp+98h+var_70]
mov eax, [rax+40h]
shl rax, 9
lea rcx, _ZN6evmone5instr9gas_costsE; evmone::instr::gas_costs
add rcx, rax
mov eax, r12d
movsx esi, word ptr [rcx+rax*2]
mov rdi, r13
call __ZNSolsEs; std::ostream::operator<<(short)
lea rsi, [rsp+98h+var_68]
mov byte ptr [rsi], 22h ; '"'
mov edx, 1
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov r14, [rbx+60h]
lea rsi, aMemsize; ",\"memSize\":"
mov edx, 0Bh
mov rdi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rax, [r14]
mov rax, [rax-18h]
mov ecx, [r14+rax+18h]
and ecx, 0FFFFFFB5h
or ecx, 2
mov [r14+rax+18h], ecx
mov rax, [rsp+98h+var_70]
mov rsi, [rax+10h]
mov rdi, r14
call __ZNSo9_M_insertImEERSoT_; std::ostream::_M_insert<ulong>(ulong)
mov rdi, [rbx+60h]
lea rsi, aStack; ",\"stack\":["
mov edx, 0Ah
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov [rsp+98h+var_44], r12d
mov r12, rbx
test r15d, r15d
jz loc_4C670
movsxd r15, r15d
shl r15, 5
mov eax, 20h ; ' '
sub rax, r15
add [rsp+98h+var_40], rax
xor ebx, ebx
lea r13, [rsp+98h+var_68]
lea rbp, [rsp+98h+var_71]
loc_4C5C6:
test rbx, rbx
jz short loc_4C5E2
mov rdi, [r12+60h]
mov byte ptr [rsp+98h+var_68], 2Ch ; ','
mov edx, 1
mov rsi, r13
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
loc_4C5E2:
mov r14, [r12+60h]
mov edx, 3
mov rdi, r14
lea rsi, aReturndata0x+0Eh; "\"0x"
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rax, [rsp+98h+var_40]
add rax, rbx
movups xmm0, xmmword ptr [rax]
movups xmm1, xmmword ptr [rax+10h]
movups xmmword ptr [rsp+98h+var_88], xmm1; __int64
movups xmmword ptr [rsp+98h+var_98], xmm0; void *
mov rdi, r13
mov esi, 10h
call _ZN4intx9to_stringILj256EEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_4uintIXT_EEEi; intx::to_string<256u>(intx::uint<256u>,int)
mov rsi, [rsp+98h+var_68]
mov rdx, [rsp+98h+var_60]
mov rdi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov [rsp+98h+var_71], 22h ; '"'
mov edx, 1
mov rdi, rax
mov rsi, rbp
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+98h+var_68]; void *
lea rax, [rsp+98h+var_58]
cmp rdi, rax
jz short loc_4C663
mov rsi, [rsp+98h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4C663:
add rbx, 20h ; ' '
cmp r15, rbx
jnz loc_4C5C6
loc_4C670:
mov rdi, [r12+60h]
lea rsi, [rsp+98h+var_68]
mov byte ptr [rsi], 5Dh ; ']'
mov edx, 1
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov ebp, [rsp+98h+var_44]
mov rax, [rsp+98h+var_70]
cmp qword ptr [rax+50h], 0
jz short loc_4C709
mov r14, [r12+60h]
lea rsi, aReturndata0x; ",\"returnData\":\"0x"
mov edx, 11h
mov rdi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rax, [rsp+98h+var_70]
mov rdx, [rax+48h]; int
mov rsi, [rax+50h]; int
lea rdi, [rsp+98h+var_68]; int
call _ZN4evmc3hexB5cxx11ESt17basic_string_viewIhNS_11byte_traitsIhEEE; evmc::hex(std::basic_string_view<uchar,evmc::byte_traits<uchar>>)
mov rsi, [rsp+98h+var_68]
mov rdx, [rsp+98h+var_60]
mov rdi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, [rsp+98h+var_71]
mov byte ptr [rsi], 22h ; '"'
mov edx, 1
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rax, [rsp+98h+var_58]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_4C709
mov rsi, [rsp+98h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4C709:
mov r14, [r12+60h]
lea rsi, aDepth; ",\"depth\":"
mov edx, 9
mov rdi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rax, [r14]
mov rax, [rax-18h]
mov ecx, [r14+rax+18h]
and ecx, 0FFFFFFB5h
or ecx, 2
mov [r14+rax+18h], ecx
mov rax, [rsp+98h+var_38]
mov esi, [rax-18h]
inc esi
mov rdi, r14
call __ZNSolsEi; std::ostream::operator<<(int)
mov r14, [r12+60h]
lea rsi, aRefund; ",\"refund\":"
mov edx, 0Ah
mov rdi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rax, [r14]
mov rax, [rax-18h]
mov ecx, [r14+rax+18h]
and ecx, 0FFFFFFB5h
or ecx, 2
mov [r14+rax+18h], ecx
mov rax, [rsp+98h+var_70]
mov rsi, [rax]
mov rdi, r14
call __ZNSo9_M_insertIlEERSoT_; std::ostream::_M_insert<long>(long)
mov r14, [r12+60h]
lea rsi, aOpname; ",\"opName\":\""
mov edx, 0Bh
mov rdi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rdi, [rsp+98h+var_68]; int
mov esi, ebp; int
call _ZN6evmone12_GLOBAL__N_18get_nameB5cxx11Eh; evmone::`anonymous namespace'::get_name(uchar)
mov rsi, [rsp+98h+var_68]
mov rdx, [rsp+98h+var_60]
mov rdi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, [rsp+98h+var_71]
mov byte ptr [rsi], 22h ; '"'
mov edx, 1
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rax, [rsp+98h+var_58]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_4C7F2
mov rsi, [rsp+98h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4C7F2:
mov rdi, [r12+60h]
lea rsi, asc_899CD; "}\n"
mov edx, 2
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_4C83A
mov rbx, rax
mov rdi, [rsp+98h+var_68]; void *
lea rax, [rsp+98h+var_58]
cmp rdi, rax
jz short loc_4C83D
mov rsi, [rsp+98h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_4C83D
loc_4C83A:
mov rbx, rax
loc_4C83D:
mov rdi, rbx
call __clang_call_terminate
| long long evmone::`anonymous namespace'::InstructionTracer::on_instruction_start(
_QWORD *a1,
unsigned int a2,
long long a3,
int a4,
long long a5,
long long a6)
{
long long v8; // rcx
unsigned int v9; // r12d
_QWORD *v10; // r14
_QWORD *v11; // r14
_QWORD *v12; // r14
long long v13; // rax
_QWORD *v14; // r13
long long v15; // rax
_QWORD *v16; // r14
long long v18; // r15
long long v19; // rbx
long long v20; // rdi
long long v21; // r14
int v22; // edx
int v23; // ecx
int v24; // r8d
int v25; // r9d
long long v26; // rax
long long v27; // rdi
int v28; // ebp
long long v29; // r14
int v30; // ecx
int v31; // r8d
int v32; // r9d
long long v33; // rax
_QWORD *v34; // r14
_QWORD *v35; // r14
long long v36; // r14
long long v37; // rax
void *v39; // [rsp+0h] [rbp-98h]
int v40; // [rsp+8h] [rbp-90h]
long long v41; // [rsp+10h] [rbp-88h]
char v42; // [rsp+27h] [rbp-71h] BYREF
long long v43; // [rsp+28h] [rbp-70h]
void *v44; // [rsp+30h] [rbp-68h] BYREF
long long v45; // [rsp+38h] [rbp-60h]
_QWORD v46[2]; // [rsp+40h] [rbp-58h] BYREF
int v47; // [rsp+54h] [rbp-44h]
long long v48; // [rsp+58h] [rbp-40h]
long long v49; // [rsp+60h] [rbp-38h]
v43 = a6;
v48 = a3;
v8 = a1[8];
if ( v8 == a1[9] )
v8 = *(_QWORD *)(a1[11] - 8LL) + 504LL;
v49 = v8;
v9 = *(unsigned __int8 *)(*(_QWORD *)(v8 - 16) + a2);
std::__ostream_insert<char,std::char_traits<char>>(a1[12], "{", 1LL);
v10 = (_QWORD *)a1[12];
std::__ostream_insert<char,std::char_traits<char>>(v10, "\"pc\":", 5LL);
*(_DWORD *)((char *)v10 + *(_QWORD *)(*v10 - 24LL) + 24) = *(_DWORD *)((_BYTE *)v10 + *(_QWORD *)(*v10 - 24LL) + 24) & 0xFFFFFFB5 | 2;
std::ostream::_M_insert<unsigned long>(v10, a2);
v11 = (_QWORD *)a1[12];
std::__ostream_insert<char,std::char_traits<char>>(v11, ",\"op\":", 6LL);
*(_DWORD *)((char *)v11 + *(_QWORD *)(*v11 - 24LL) + 24) = *(_DWORD *)((_BYTE *)v11 + *(_QWORD *)(*v11 - 24LL) + 24) & 0xFFFFFFB5 | 2;
std::ostream::operator<<(v11, v9);
v12 = (_QWORD *)a1[12];
std::__ostream_insert<char,std::char_traits<char>>(v12, ",\"gas\":\"0x", 10LL);
*(_DWORD *)((char *)v12 + *(_QWORD *)(*v12 - 24LL) + 24) = *(_DWORD *)((_BYTE *)v12 + *(_QWORD *)(*v12 - 24LL) + 24) & 0xFFFFFFB5 | 8;
v13 = std::ostream::_M_insert<long>(v12, a5);
LOBYTE(v44) = 34;
std::__ostream_insert<char,std::char_traits<char>>(v13, &v44, 1LL);
v14 = (_QWORD *)a1[12];
std::__ostream_insert<char,std::char_traits<char>>(v14, ",\"gasCost\":\"0x", 14LL);
*(_DWORD *)((char *)v14 + *(_QWORD *)(*v14 - 24LL) + 24) = *(_DWORD *)((_BYTE *)v14 + *(_QWORD *)(*v14 - 24LL) + 24) & 0xFFFFFFB5 | 8;
v15 = std::ostream::operator<<(
v14,
(unsigned int)evmone::instr::gas_costs[256 * (unsigned long long)*(unsigned int *)(v43 + 64) + v9]);
LOBYTE(v44) = 34;
std::__ostream_insert<char,std::char_traits<char>>(v15, &v44, 1LL);
v16 = (_QWORD *)a1[12];
std::__ostream_insert<char,std::char_traits<char>>(v16, ",\"memSize\":", 11LL);
*(_DWORD *)((char *)v16 + *(_QWORD *)(*v16 - 24LL) + 24) = *(_DWORD *)((_BYTE *)v16 + *(_QWORD *)(*v16 - 24LL) + 24) & 0xFFFFFFB5 | 2;
std::ostream::_M_insert<unsigned long>(v16, *(_QWORD *)(v43 + 16));
std::__ostream_insert<char,std::char_traits<char>>(a1[12], ",\"stack\":[", 10LL);
v47 = v9;
if ( a4 )
{
v18 = 32LL * a4;
v48 += 32 - v18;
v19 = 0LL;
do
{
if ( v19 )
{
v20 = a1[12];
LOBYTE(v44) = 44;
std::__ostream_insert<char,std::char_traits<char>>(v20, &v44, 1LL);
}
v21 = a1[12];
std::__ostream_insert<char,std::char_traits<char>>(v21, "\"0x", 3LL);
intx::to_string<256u>(
(unsigned int)&v44,
16,
v22,
v23,
v24,
v25,
*(_QWORD *)(v19 + v48),
*(_QWORD *)(v19 + v48 + 8),
*(_QWORD *)(v19 + v48 + 16),
*(_QWORD *)(v19 + v48 + 24));
v26 = std::__ostream_insert<char,std::char_traits<char>>(v21, v44, v45);
v42 = 34;
std::__ostream_insert<char,std::char_traits<char>>(v26, &v42, 1LL);
if ( v44 != v46 )
operator delete(v44, v46[0] + 1LL);
v19 += 32LL;
}
while ( v18 != v19 );
}
v27 = a1[12];
LOBYTE(v44) = 93;
std::__ostream_insert<char,std::char_traits<char>>(v27, &v44, 1LL);
v28 = v47;
if ( *(_QWORD *)(v43 + 80) )
{
v29 = a1[12];
std::__ostream_insert<char,std::char_traits<char>>(v29, ",\"returnData\":\"0x", 17LL);
evmc::hex[abi:cxx11]((int)&v44, *(_QWORD *)(v43 + 80), *(_QWORD *)(v43 + 72), v30, v31, v32, v39, v40, v41);
v33 = std::__ostream_insert<char,std::char_traits<char>>(v29, v44, v45);
v42 = 34;
std::__ostream_insert<char,std::char_traits<char>>(v33, &v42, 1LL);
if ( v44 != v46 )
operator delete(v44, v46[0] + 1LL);
}
v34 = (_QWORD *)a1[12];
std::__ostream_insert<char,std::char_traits<char>>(v34, ",\"depth\":", 9LL);
*(_DWORD *)((char *)v34 + *(_QWORD *)(*v34 - 24LL) + 24) = *(_DWORD *)((_BYTE *)v34 + *(_QWORD *)(*v34 - 24LL) + 24) & 0xFFFFFFB5 | 2;
std::ostream::operator<<(v34, (unsigned int)(*(_DWORD *)(v49 - 24) + 1));
v35 = (_QWORD *)a1[12];
std::__ostream_insert<char,std::char_traits<char>>(v35, ",\"refund\":", 10LL);
*(_DWORD *)((char *)v35 + *(_QWORD *)(*v35 - 24LL) + 24) = *(_DWORD *)((_BYTE *)v35 + *(_QWORD *)(*v35 - 24LL) + 24) & 0xFFFFFFB5 | 2;
std::ostream::_M_insert<long>(v35, *(_QWORD *)v43);
v36 = a1[12];
std::__ostream_insert<char,std::char_traits<char>>(v36, ",\"opName\":\"", 11LL);
evmone::`anonymous namespace'::get_name[abi:cxx11]((long long)&v44, v28);
v37 = std::__ostream_insert<char,std::char_traits<char>>(v36, v44, v45);
v42 = 34;
std::__ostream_insert<char,std::char_traits<char>>(v37, &v42, 1LL);
if ( v44 != v46 )
operator delete(v44, v46[0] + 1LL);
return std::__ostream_insert<char,std::char_traits<char>>(a1[12], "}\n", 2LL);
}
| on_instruction_start:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV qword ptr [RSP + 0x28],R9
MOV R13,R8
MOV R15D,ECX
MOV qword ptr [RSP + 0x58],RDX
MOV RBX,RDI
MOV RCX,qword ptr [RDI + 0x40]
CMP RCX,qword ptr [RDI + 0x48]
JNZ 0x0014c3ee
MOV RAX,qword ptr [RBX + 0x58]
MOV ECX,0x1f8
ADD RCX,qword ptr [RAX + -0x8]
LAB_0014c3ee:
MOV qword ptr [RSP + 0x60],RCX
MOV RAX,qword ptr [RCX + -0x10]
MOV EBP,ESI
MOVZX R12D,byte ptr [RAX + RBP*0x1]
MOV RDI,qword ptr [RBX + 0x60]
LAB_0014c402:
LEA RSI,[0x189965]
MOV EDX,0x1
CALL 0x00122460
MOV R14,qword ptr [RBX + 0x60]
LEA RSI,[0x189967]
MOV EDX,0x5
MOV RDI,R14
CALL 0x00122460
MOV RAX,qword ptr [R14]
MOV RAX,qword ptr [RAX + -0x18]
MOV ECX,dword ptr [R14 + RAX*0x1 + 0x18]
AND ECX,0xffffffb5
OR ECX,0x2
MOV dword ptr [R14 + RAX*0x1 + 0x18],ECX
MOV RDI,R14
MOV RSI,RBP
CALL 0x00122280
MOV R14,qword ptr [RBX + 0x60]
LEA RSI,[0x18996d]
MOV EDX,0x6
MOV RDI,R14
CALL 0x00122460
MOV RAX,qword ptr [R14]
MOV RAX,qword ptr [RAX + -0x18]
MOV ECX,dword ptr [R14 + RAX*0x1 + 0x18]
AND ECX,0xffffffb5
OR ECX,0x2
MOV dword ptr [R14 + RAX*0x1 + 0x18],ECX
MOV RDI,R14
MOV ESI,R12D
CALL 0x001221a0
MOV R14,qword ptr [RBX + 0x60]
LEA RSI,[0x189974]
MOV EDX,0xa
MOV RDI,R14
CALL 0x00122460
MOV RAX,qword ptr [R14]
MOV RAX,qword ptr [RAX + -0x18]
MOV ECX,dword ptr [R14 + RAX*0x1 + 0x18]
AND ECX,0xffffffb5
OR ECX,0x8
MOV dword ptr [R14 + RAX*0x1 + 0x18],ECX
MOV RDI,R14
MOV RSI,R13
CALL 0x001221e0
LEA RSI,[RSP + 0x30]
MOV byte ptr [RSI],0x22
MOV EDX,0x1
MOV RDI,RAX
CALL 0x00122460
MOV R13,qword ptr [RBX + 0x60]
LEA RSI,[0x18997f]
MOV EDX,0xe
MOV RDI,R13
CALL 0x00122460
MOV RAX,qword ptr [R13]
MOV RAX,qword ptr [RAX + -0x18]
MOV ECX,dword ptr [R13 + RAX*0x1 + 0x18]
AND ECX,0xffffffb5
OR ECX,0x8
MOV dword ptr [R13 + RAX*0x1 + 0x18],ECX
MOV RAX,qword ptr [RSP + 0x28]
MOV EAX,dword ptr [RAX + 0x40]
SHL RAX,0x9
LEA RCX,[0x1899e8]
ADD RCX,RAX
MOV EAX,R12D
MOVSX ESI,word ptr [RCX + RAX*0x2]
MOV RDI,R13
CALL 0x001222a0
LEA RSI,[RSP + 0x30]
MOV byte ptr [RSI],0x22
MOV EDX,0x1
MOV RDI,RAX
CALL 0x00122460
MOV R14,qword ptr [RBX + 0x60]
LEA RSI,[0x18998e]
MOV EDX,0xb
MOV RDI,R14
CALL 0x00122460
MOV RAX,qword ptr [R14]
MOV RAX,qword ptr [RAX + -0x18]
MOV ECX,dword ptr [R14 + RAX*0x1 + 0x18]
AND ECX,0xffffffb5
OR ECX,0x2
MOV dword ptr [R14 + RAX*0x1 + 0x18],ECX
MOV RAX,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RAX + 0x10]
MOV RDI,R14
CALL 0x00122280
MOV RDI,qword ptr [RBX + 0x60]
LEA RSI,[0x1899d0]
MOV EDX,0xa
CALL 0x00122460
MOV dword ptr [RSP + 0x54],R12D
MOV R12,RBX
TEST R15D,R15D
JZ 0x0014c670
MOVSXD R15,R15D
SHL R15,0x5
MOV EAX,0x20
SUB RAX,R15
ADD qword ptr [RSP + 0x58],RAX
XOR EBX,EBX
LEA R13,[RSP + 0x30]
LEA RBP,[RSP + 0x27]
LAB_0014c5c6:
TEST RBX,RBX
JZ 0x0014c5e2
MOV RDI,qword ptr [R12 + 0x60]
MOV byte ptr [RSP + 0x30],0x2c
LAB_0014c5d5:
MOV EDX,0x1
MOV RSI,R13
CALL 0x00122460
LAB_0014c5e2:
MOV R14,qword ptr [R12 + 0x60]
MOV EDX,0x3
MOV RDI,R14
LEA RSI,[0x1899a8]
CALL 0x00122460
MOV RAX,qword ptr [RSP + 0x58]
ADD RAX,RBX
MOVUPS XMM0,xmmword ptr [RAX]
MOVUPS XMM1,xmmword ptr [RAX + 0x10]
MOVUPS xmmword ptr [RSP + 0x10],XMM1
MOVUPS xmmword ptr [RSP],XMM0
MOV RDI,R13
MOV ESI,0x10
CALL 0x0014ce4d
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RSP + 0x38]
LAB_0014c62a:
MOV RDI,R14
CALL 0x00122460
MOV byte ptr [RSP + 0x27],0x22
MOV EDX,0x1
MOV RDI,RAX
MOV RSI,RBP
CALL 0x00122460
MOV RDI,qword ptr [RSP + 0x30]
LEA RAX,[RSP + 0x40]
CMP RDI,RAX
JZ 0x0014c663
MOV RSI,qword ptr [RSP + 0x40]
INC RSI
CALL 0x001220c0
LAB_0014c663:
ADD RBX,0x20
CMP R15,RBX
JNZ 0x0014c5c6
LAB_0014c670:
MOV RDI,qword ptr [R12 + 0x60]
LEA RSI,[RSP + 0x30]
MOV byte ptr [RSI],0x5d
LAB_0014c67d:
MOV EDX,0x1
CALL 0x00122460
MOV EBP,dword ptr [RSP + 0x54]
MOV RAX,qword ptr [RSP + 0x28]
CMP qword ptr [RAX + 0x50],0x0
JZ 0x0014c709
MOV R14,qword ptr [R12 + 0x60]
LEA RSI,[0x18999a]
MOV EDX,0x11
MOV RDI,R14
CALL 0x00122460
MOV RAX,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RAX + 0x48]
MOV RSI,qword ptr [RAX + 0x50]
LEA RDI,[RSP + 0x30]
CALL 0x0014cd50
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RSP + 0x38]
MOV RDI,R14
CALL 0x00122460
LEA RSI,[RSP + 0x27]
MOV byte ptr [RSI],0x22
MOV EDX,0x1
MOV RDI,RAX
CALL 0x00122460
LEA RAX,[RSP + 0x40]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0014c709
MOV RSI,qword ptr [RSP + 0x40]
INC RSI
CALL 0x001220c0
LAB_0014c709:
MOV R14,qword ptr [R12 + 0x60]
LEA RSI,[0x1899ac]
MOV EDX,0x9
MOV RDI,R14
CALL 0x00122460
MOV RAX,qword ptr [R14]
MOV RAX,qword ptr [RAX + -0x18]
MOV ECX,dword ptr [R14 + RAX*0x1 + 0x18]
AND ECX,0xffffffb5
OR ECX,0x2
MOV dword ptr [R14 + RAX*0x1 + 0x18],ECX
MOV RAX,qword ptr [RSP + 0x60]
MOV ESI,dword ptr [RAX + -0x18]
INC ESI
MOV RDI,R14
CALL 0x001221a0
MOV R14,qword ptr [R12 + 0x60]
LEA RSI,[0x1899b6]
MOV EDX,0xa
MOV RDI,R14
CALL 0x00122460
MOV RAX,qword ptr [R14]
MOV RAX,qword ptr [RAX + -0x18]
MOV ECX,dword ptr [R14 + RAX*0x1 + 0x18]
AND ECX,0xffffffb5
OR ECX,0x2
MOV dword ptr [R14 + RAX*0x1 + 0x18],ECX
MOV RAX,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RAX]
MOV RDI,R14
CALL 0x001221e0
MOV R14,qword ptr [R12 + 0x60]
LEA RSI,[0x1899c1]
MOV EDX,0xb
MOV RDI,R14
CALL 0x00122460
LEA RDI,[RSP + 0x30]
MOV ESI,EBP
CALL 0x0014bf56
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RSP + 0x38]
MOV RDI,R14
CALL 0x00122460
LEA RSI,[RSP + 0x27]
MOV byte ptr [RSI],0x22
MOV EDX,0x1
MOV RDI,RAX
CALL 0x00122460
LEA RAX,[RSP + 0x40]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0014c7f2
MOV RSI,qword ptr [RSP + 0x40]
INC RSI
CALL 0x001220c0
LAB_0014c7f2:
MOV RDI,qword ptr [R12 + 0x60]
LEA RSI,[0x1899cd]
MOV EDX,0x2
CALL 0x00122460
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* evmone::(anonymous namespace)::InstructionTracer::on_instruction_start(unsigned int,
intx::uint<256u> const*, int, long, evmone::ExecutionState const&) */
void __thiscall
evmone::(anonymous_namespace)::InstructionTracer::on_instruction_start
(InstructionTracer *this,uint param_1,uint *param_2,int param_3,long param_4,
ExecutionState *param_5)
{
byte bVar1;
ostream *poVar2;
long lVar3;
uint uVar4;
char local_71;
ExecutionState *local_70;
_anonymous_namespace_ local_68;
int7 uStack_67;
long local_60;
long local_58 [2];
uint local_44;
uint *local_40;
long local_38;
local_38 = *(long *)(this + 0x40);
if (local_38 == *(long *)(this + 0x48)) {
local_38 = *(long *)(*(long *)(this + 0x58) + -8) + 0x1f8;
}
bVar1 = *(byte *)(*(long *)(local_38 + -0x10) + (ulong)param_1);
uVar4 = (uint)bVar1;
local_70 = param_5;
local_40 = param_2;
/* try { // try from 0014c402 to 0014c594 has its CatchHandler @ 0014c817 */
std::__ostream_insert<char,std::char_traits<char>>(*(ostream **)(this + 0x60),"{",1);
poVar2 = *(ostream **)(this + 0x60);
std::__ostream_insert<char,std::char_traits<char>>(poVar2,"\"pc\":",5);
*(uint *)(poVar2 + *(long *)(*(long *)poVar2 + -0x18) + 0x18) =
*(uint *)(poVar2 + *(long *)(*(long *)poVar2 + -0x18) + 0x18) & 0xffffffb5 | 2;
std::ostream::_M_insert<unsigned_long>((ulong)poVar2);
poVar2 = *(ostream **)(this + 0x60);
std::__ostream_insert<char,std::char_traits<char>>(poVar2,",\"op\":",6);
*(uint *)(poVar2 + *(long *)(*(long *)poVar2 + -0x18) + 0x18) =
*(uint *)(poVar2 + *(long *)(*(long *)poVar2 + -0x18) + 0x18) & 0xffffffb5 | 2;
std::ostream::operator<<(poVar2,uVar4);
poVar2 = *(ostream **)(this + 0x60);
std::__ostream_insert<char,std::char_traits<char>>(poVar2,",\"gas\":\"0x",10);
*(uint *)(poVar2 + *(long *)(*(long *)poVar2 + -0x18) + 0x18) =
*(uint *)(poVar2 + *(long *)(*(long *)poVar2 + -0x18) + 0x18) & 0xffffffb5 | 8;
poVar2 = std::ostream::_M_insert<long>((long)poVar2);
local_68 = (_anonymous_namespace_)0x22;
std::__ostream_insert<char,std::char_traits<char>>(poVar2,(char *)&local_68,1);
poVar2 = *(ostream **)(this + 0x60);
std::__ostream_insert<char,std::char_traits<char>>(poVar2,",\"gasCost\":\"0x",0xe);
*(uint *)(poVar2 + *(long *)(*(long *)poVar2 + -0x18) + 0x18) =
*(uint *)(poVar2 + *(long *)(*(long *)poVar2 + -0x18) + 0x18) & 0xffffffb5 | 8;
poVar2 = (ostream *)
std::ostream::operator<<
(poVar2,*(short *)(instr::gas_costs +
(ulong)bVar1 * 2 + (ulong)*(uint *)(local_70 + 0x40) * 0x200)
);
local_68 = (_anonymous_namespace_)0x22;
std::__ostream_insert<char,std::char_traits<char>>(poVar2,(char *)&local_68,1);
poVar2 = *(ostream **)(this + 0x60);
std::__ostream_insert<char,std::char_traits<char>>(poVar2,",\"memSize\":",0xb);
*(uint *)(poVar2 + *(long *)(*(long *)poVar2 + -0x18) + 0x18) =
*(uint *)(poVar2 + *(long *)(*(long *)poVar2 + -0x18) + 0x18) & 0xffffffb5 | 2;
std::ostream::_M_insert<unsigned_long>((ulong)poVar2);
std::__ostream_insert<char,std::char_traits<char>>(*(ostream **)(this + 0x60),",\"stack\":[",10);
local_44 = uVar4;
if (param_3 != 0) {
local_40 = local_40 + (long)param_3 * -0x20 + 0x20;
lVar3 = 0;
do {
if (lVar3 != 0) {
local_68 = (_anonymous_namespace_)0x2c;
/* try { // try from 0014c5d5 to 0014c61f has its CatchHandler @ 0014c83a */
std::__ostream_insert<char,std::char_traits<char>>
(*(ostream **)(this + 0x60),(char *)&local_68,1);
}
poVar2 = *(ostream **)(this + 0x60);
std::__ostream_insert<char,std::char_traits<char>>(poVar2,"\"0x",3);
intx::to_string<256u>(&local_68,0x10);
/* try { // try from 0014c62a to 0014c646 has its CatchHandler @ 0014c819 */
poVar2 = std::__ostream_insert<char,std::char_traits<char>>
(poVar2,(char *)CONCAT71(uStack_67,local_68),local_60);
local_71 = '\"';
std::__ostream_insert<char,std::char_traits<char>>(poVar2,&local_71,1);
if ((long *)CONCAT71(uStack_67,local_68) != local_58) {
operator_delete((long *)CONCAT71(uStack_67,local_68),local_58[0] + 1);
}
lVar3 = lVar3 + 0x20;
} while ((long)param_3 * 0x20 != lVar3);
}
local_68 = (_anonymous_namespace_)0x5d;
/* try { // try from 0014c67d to 0014c807 has its CatchHandler @ 0014c817 */
std::__ostream_insert<char,std::char_traits<char>>(*(ostream **)(this + 0x60),(char *)&local_68,1)
;
uVar4 = local_44;
if (*(long *)(local_70 + 0x50) != 0) {
poVar2 = *(ostream **)(this + 0x60);
std::__ostream_insert<char,std::char_traits<char>>(poVar2,",\"returnData\":\"0x",0x11);
evmc::hex_abi_cxx11_
(&local_68,*(int8 *)(local_70 + 0x50),*(int8 *)(local_70 + 0x48));
poVar2 = std::__ostream_insert<char,std::char_traits<char>>
(poVar2,(char *)CONCAT71(uStack_67,local_68),local_60);
local_71 = '\"';
std::__ostream_insert<char,std::char_traits<char>>(poVar2,&local_71,1);
if ((long *)CONCAT71(uStack_67,local_68) != local_58) {
operator_delete((long *)CONCAT71(uStack_67,local_68),local_58[0] + 1);
}
}
poVar2 = *(ostream **)(this + 0x60);
std::__ostream_insert<char,std::char_traits<char>>(poVar2,",\"depth\":",9);
*(uint *)(poVar2 + *(long *)(*(long *)poVar2 + -0x18) + 0x18) =
*(uint *)(poVar2 + *(long *)(*(long *)poVar2 + -0x18) + 0x18) & 0xffffffb5 | 2;
std::ostream::operator<<(poVar2,*(int *)(local_38 + -0x18) + 1);
poVar2 = *(ostream **)(this + 0x60);
std::__ostream_insert<char,std::char_traits<char>>(poVar2,",\"refund\":",10);
*(uint *)(poVar2 + *(long *)(*(long *)poVar2 + -0x18) + 0x18) =
*(uint *)(poVar2 + *(long *)(*(long *)poVar2 + -0x18) + 0x18) & 0xffffffb5 | 2;
std::ostream::_M_insert<long>((long)poVar2);
poVar2 = *(ostream **)(this + 0x60);
std::__ostream_insert<char,std::char_traits<char>>(poVar2,",\"opName\":\"",0xb);
get_name_abi_cxx11_(&local_68,(uchar)uVar4);
poVar2 = std::__ostream_insert<char,std::char_traits<char>>
(poVar2,(char *)CONCAT71(uStack_67,local_68),local_60);
local_71 = '\"';
std::__ostream_insert<char,std::char_traits<char>>(poVar2,&local_71,1);
if ((long *)CONCAT71(uStack_67,local_68) != local_58) {
operator_delete((long *)CONCAT71(uStack_67,local_68),local_58[0] + 1);
}
std::__ostream_insert<char,std::char_traits<char>>(*(ostream **)(this + 0x60),"}\n",2);
return;
}
| |
27,019 | dirname_length | eloqsql/mysys/mf_dirname.c | size_t dirname_length(const char *name)
{
register char *pos, *gpos;
#ifdef BASKSLASH_MBTAIL
CHARSET_INFO *fs= fs_character_set();
#endif
#ifdef FN_DEVCHAR
if ((pos=(char*)strrchr(name,FN_DEVCHAR)) == 0)
#endif
pos=(char*) name-1;
gpos= pos++;
for ( ; *pos ; pos++) /* Find last FN_LIBCHAR */
{
#ifdef BASKSLASH_MBTAIL
uint l;
if (my_ci_use_mb(fs) && (l= my_ismbchar(fs, pos, pos + 3)))
{
pos+= l - 1;
continue;
}
#endif
if (*pos == FN_LIBCHAR || *pos == '/')
gpos=pos;
}
return (size_t) (gpos+1-(char*) name);
} | O3 | c | dirname_length:
pushq %rbp
movq %rsp, %rbp
leaq -0x1(%rdi), %rax
movq %rdi, %rcx
movzbl (%rcx), %edx
cmpl $0x2f, %edx
je 0x2a2a9
testl %edx, %edx
jne 0x2a2ac
jmp 0x2a2b1
movq %rcx, %rax
incq %rcx
jmp 0x2a29b
subq %rdi, %rax
incq %rax
popq %rbp
retq
| dirname_length:
push rbp
mov rbp, rsp
lea rax, [rdi-1]
mov rcx, rdi
loc_2A29B:
movzx edx, byte ptr [rcx]
cmp edx, 2Fh ; '/'
jz short loc_2A2A9
test edx, edx
jnz short loc_2A2AC
jmp short loc_2A2B1
loc_2A2A9:
mov rax, rcx
loc_2A2AC:
inc rcx
jmp short loc_2A29B
loc_2A2B1:
sub rax, rdi
inc rax
pop rbp
retn
| long long dirname_length(_BYTE *a1)
{
_BYTE *v1; // rax
_BYTE *i; // rcx
v1 = a1 - 1;
for ( i = a1; *i == 47; ++i )
{
v1 = i;
LABEL_6:
;
}
if ( *i )
goto LABEL_6;
return v1 - a1 + 1;
}
| dirname_length:
PUSH RBP
MOV RBP,RSP
LEA RAX,[RDI + -0x1]
MOV RCX,RDI
LAB_0012a29b:
MOVZX EDX,byte ptr [RCX]
CMP EDX,0x2f
JZ 0x0012a2a9
TEST EDX,EDX
JNZ 0x0012a2ac
JMP 0x0012a2b1
LAB_0012a2a9:
MOV RAX,RCX
LAB_0012a2ac:
INC RCX
JMP 0x0012a29b
LAB_0012a2b1:
SUB RAX,RDI
INC RAX
POP RBP
RET
|
char * dirname_length(char *param_1)
{
char *pcVar1;
char *pcVar2;
char *pcVar3;
pcVar1 = param_1 + -1;
for (pcVar3 = param_1; (pcVar2 = pcVar3, *pcVar3 == '/' || (pcVar2 = pcVar1, *pcVar3 != '\0'));
pcVar3 = pcVar3 + 1) {
pcVar1 = pcVar2;
}
return pcVar1 + (1 - (long)param_1);
}
| |
27,020 | nlohmann::json_abi_v3_11_3::basic_json<std::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>::basic_json<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, 0>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&) | llama.cpp/common/./json.hpp | basic_json(CompatibleType && val) noexcept(noexcept( // NOLINT(bugprone-forwarding-reference-overload,bugprone-exception-escape)
JSONSerializer<U>::to_json(std::declval<basic_json_t&>(),
std::forward<CompatibleType>(val))))
{
JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
set_parents();
assert_invariant();
} | O3 | cpp | nlohmann::json_abi_v3_11_3::basic_json<std::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>::basic_json<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, 0>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&):
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %r14, %rdi
xorl %esi, %esi
callq 0x2c152
movb $0x3, (%rbx)
movq %r15, %rdi
callq 0x2c02c
movq %rax, (%r14)
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x2bbb6
movq %r14, %rdi
callq 0x1d8e0
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_:
push r15
push r14
push rbx
mov r15, rsi
mov rbx, rdi
lea r14, [rdi+8]
xorps xmm0, xmm0
movups xmmword ptr [rdi], xmm0
mov rdi, r14
xor esi, esi
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10json_value7destroyENS0_6detail7value_tE; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t)
mov byte ptr [rbx], 3
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createIS9_JRKS9_EEEPT_DpOT0_; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::create<std::string,std::string const&>(std::string const&)
mov [r14], rax
pop rbx
pop r14
pop r15
retn
mov r14, rax
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<std::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
call __Unwind_Resume
| _QWORD * ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_(
long long a1,
long long a2)
{
_QWORD *result; // rax
*(_OWORD *)a1 = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<std::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>::json_value::destroy(
(long long **)(a1 + 8),
0);
*(_BYTE *)a1 = 3;
result = nlohmann::json_abi_v3_11_3::basic_json<std::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>::create<std::string,std::string const&>(a2);
*(_QWORD *)(a1 + 8) = result;
return result;
}
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_:
PUSH R15
PUSH R14
PUSH RBX
MOV R15,RSI
MOV RBX,RDI
LEA R14,[RDI + 0x8]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI],XMM0
LAB_0012cc3f:
MOV RDI,R14
XOR ESI,ESI
CALL 0x0012c152
MOV byte ptr [RBX],0x3
MOV RDI,R15
CALL 0x0012c02c
LAB_0012cc54:
MOV qword ptr [R14],RAX
POP RBX
POP R14
POP R15
RET
|
void _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
(int8 *param_1,string *param_2)
{
string *psVar1;
*param_1 = 0;
param_1[1] = 0;
/* try { // try from 0012cc3f to 0012cc53 has its CatchHandler @ 0012cc5d */
nlohmann::json_abi_v3_11_3::
basic_json<std::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>
::json_value::destroy((json_value *)(param_1 + 1),0);
*(int1 *)param_1 = 3;
psVar1 = nlohmann::json_abi_v3_11_3::
basic_json<std::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>
::create<std::__cxx11::string,std::__cxx11::string_const&>(param_2);
*(string **)(param_1 + 1) = psVar1;
return;
}
| |
27,021 | nlohmann::json_abi_v3_11_3::detail::serializer<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>>::dump_float(double) | monkey531[P]llama/common/json.hpp | void dump_float(number_float_t x)
{
// NaN / inf
if (!std::isfinite(x))
{
o->write_characters("null", 4);
return;
}
// If number_float_t is an IEEE-754 single or double precision number,
// use the Grisu2 algorithm to produce short numbers which are
// guaranteed to round-trip, using strtof and strtod, resp.
//
// NB: The test below works if <long double> == <double>.
static constexpr bool is_ieee_single_or_double
= (std::numeric_limits<number_float_t>::is_iec559 && std::numeric_limits<number_float_t>::digits == 24 && std::numeric_limits<number_float_t>::max_exponent == 128) ||
(std::numeric_limits<number_float_t>::is_iec559 && std::numeric_limits<number_float_t>::digits == 53 && std::numeric_limits<number_float_t>::max_exponent == 1024);
dump_float(x, std::integral_constant<bool, is_ieee_single_or_double>());
} | O2 | cpp | nlohmann::json_abi_v3_11_3::detail::serializer<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>>::dump_float(double):
movq %xmm0, %rax
btrq $0x3f, %rax
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
cmpq %rcx, %rax
jl 0x87188
movq (%rdi), %rdi
movq (%rdi), %rax
movq 0x8(%rax), %rax
leaq 0x2c671(%rip), %rsi # 0xb34f7
pushq $0x4
popq %rdx
jmpq *%rax
nop
| _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE10dump_floatEd:
movq rax, xmm0
btr rax, 3Fh ; '?'
mov rcx, 7FF0000000000000h
cmp rax, rcx
jl _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE10dump_floatEdSt17integral_constantIbLb1EE; nlohmann::json_abi_v3_11_3::detail::serializer<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>>::dump_float(double,std::integral_constant<bool,true>)
mov rdi, [rdi]
mov rax, [rdi]
mov rax, [rax+8]
lea rsi, aOnNull_0+5; "null"
push 4
pop rdx
jmp rax
| long long nlohmann::json_abi_v3_11_3::detail::serializer<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>>::dump_float(
_QWORD *a1,
double a2)
{
if ( (*(_QWORD *)&a2 & 0x7FFFFFFFFFFFFFFFuLL) < 0x7FF0000000000000LL )
return nlohmann::json_abi_v3_11_3::detail::serializer<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>>::dump_float();
else
return (*(long long ( **)(_QWORD, char *, long long))(*(_QWORD *)*a1 + 8LL))(*a1, "null", 4LL);
}
| dump_float:
MOVQ RAX,XMM0
BTR RAX,0x3f
MOV RCX,0x7ff0000000000000
CMP RAX,RCX
JL 0x00187188
MOV RDI,qword ptr [RDI]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0x8]
LEA RSI,[0x1b34f7]
PUSH 0x4
POP RDX
JMP RAX
|
/* nlohmann::json_abi_v3_11_3::detail::serializer<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> >::dump_float(double) */
void __thiscall
nlohmann::json_abi_v3_11_3::detail::
serializer<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>>
::dump_float(serializer<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>>
*this,double param_1)
{
serializer<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>>
*psVar1;
code *UNRECOVERED_JUMPTABLE;
char *pcVar2;
if (0x7fefffffffffffff < (ulong)ABS(param_1)) {
/* WARNING: Could not recover jumptable at 0x00186e89. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(**(long **)this + 8))(*(long **)this,"null",4);
return;
}
psVar1 = this + 0x10;
pcVar2 = to_chars<double>((char *)psVar1,(char *)(this + 0x50),param_1);
UNRECOVERED_JUMPTABLE = *(code **)(**(long **)this + 8);
/* WARNING: Could not recover jumptable at 0x001871b9. Too many branches */
/* WARNING: Treating indirect jump as call */
(*UNRECOVERED_JUMPTABLE)(*(long **)this,psVar1,(long)pcVar2 - (long)psVar1,UNRECOVERED_JUMPTABLE);
return;
}
| |
27,022 | mi_copy_status | eloqsql/storage/myisam/mi_locking.c | void mi_copy_status(void* to,void *from)
{
MI_INFO *info= (MI_INFO*) to;
DBUG_ENTER("mi_copy_status");
info->state= &((MI_INFO*) from)->save_state;
DBUG_PRINT("info",("key_file: %ld data_file: %ld",
(long) info->state->key_file_length,
(long) info->state->data_file_length));
DBUG_VOID_RETURN;
} | O0 | c | mi_copy_status:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rcx
addq $0x10, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x8(%rax)
jmp 0xb0926
jmp 0xb0928
jmp 0xb092a
popq %rbp
retq
nopl (%rax)
| mi_copy_status:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
mov [rbp+var_18], rax
mov rcx, [rbp+var_10]
add rcx, 10h
mov rax, [rbp+var_18]
mov [rax+8], rcx
jmp short $+2
loc_B0926:
jmp short $+2
loc_B0928:
jmp short $+2
loc_B092A:
pop rbp
retn
| long long mi_copy_status(long long a1, long long a2)
{
long long result; // rax
result = a1;
*(_QWORD *)(a1 + 8) = a2 + 16;
return result;
}
| mi_copy_status:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RAX
MOV RCX,qword ptr [RBP + -0x10]
ADD RCX,0x10
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x8],RCX
JMP 0x001b0926
LAB_001b0926:
JMP 0x001b0928
LAB_001b0928:
JMP 0x001b092a
LAB_001b092a:
POP RBP
RET
|
void mi_copy_status(long param_1,long param_2)
{
*(long *)(param_1 + 8) = param_2 + 0x10;
return;
}
| |
27,023 | Trie::Node::autocompleteNode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long) const | BirdUp9000[P]ct9/src/../include/ct9/Trie.h | [[nodiscard]] inline std::queue<std::string> Trie::Node::autocompleteNode(const std::string& prefix,
const size_t count) const {
std::queue<std::string> results;
std::string current = prefix;
std::function<bool(const Node*)> dfs = [&](const Node* node) -> bool {
if (results.size() >= count) {
return true;
}
if (node->end_of_word) {
results.push(current);
if (results.size() >= count) {
return true;
}
}
for (const auto& [key, child] : node->children) {
current.push_back(key);
if (dfs(child)) {
return true;
}
current.pop_back();
}
return false;
};
static_cast<void>(dfs(this));
return results;
} | O2 | c | Trie::Node::autocompleteNode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long) const:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
movq %rcx, (%rsp)
callq 0x2a74
leaq 0x28(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x301e
leaq 0x48(%rsp), %rsi
movq %rbx, (%rsi)
movq %rsp, %rax
movq %rax, 0x8(%rsi)
movq %r15, 0x10(%rsi)
leaq 0x8(%rsp), %rdi
movq %rdi, 0x18(%rsi)
callq 0x3038
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x3080
leaq 0x8(%rsp), %rdi
callq 0x309a
leaq 0x28(%rsp), %rdi
callq 0x2b50
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x309a
jmp 0x2ffe
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x2b50
jmp 0x300d
movq %rax, %r14
movq %rbx, %rdi
callq 0x3780
movq %r14, %rdi
callq 0x22e0
nop
| _ZNK4Trie4Node16autocompleteNodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm:
push r15
push r14
push r12
push rbx
sub rsp, 68h
mov r12, rdx
mov r14, rsi
mov rbx, rdi
mov [rsp+88h+var_88], rcx
call _ZNSt5queueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt5dequeIS5_SaIS5_EEEC2IS8_vEEv; std::queue<std::string>::queue<std::deque<std::string>,void>(void)
lea r15, [rsp+88h+var_60]
mov rdi, r15
mov rsi, r12
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&)
lea rsi, [rsp+88h+var_40]
mov [rsi], rbx
mov rax, rsp
mov [rsi+8], rax
mov [rsi+10h], r15
lea rdi, [rsp+88h+var_80]
mov [rsi+18h], rdi
call _ZNSt8functionIFbPKN4Trie4NodeEEEC2IZNKS1_16autocompleteNodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmEUlS3_E_vEEOT_; std::function<bool ()(Trie::Node const*)>::function<Trie::Node::autocompleteNode(std::string const&,ulong)::{lambda(Trie::Node const*)#1},void>(Trie::Node::autocompleteNode(std::string const&,ulong)::{lambda(Trie::Node const*)#1} &&)
lea rdi, [rsp+88h+var_80]
mov rsi, r14
call _ZNKSt8functionIFbPKN4Trie4NodeEEEclES3_; std::function<bool ()(Trie::Node const*)>::operator()(Trie::Node const*)
lea rdi, [rsp+88h+var_80]; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
lea rdi, [rsp+88h+var_60]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, rbx
add rsp, 68h
pop rbx
pop r12
pop r14
pop r15
retn
mov r14, rax
lea rdi, [rsp+arg_0]; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
jmp short loc_2FFE
mov r14, rax
loc_2FFE:
lea rdi, [rsp+arg_20]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_300D
mov r14, rax
loc_300D:
mov rdi, rbx
call _ZNSt5dequeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::deque<std::string>::~deque()
mov rdi, r14
call __Unwind_Resume
| _OWORD * Trie::Node::autocompleteNode(_OWORD *a1, long long a2, long long a3, long long a4)
{
long long v6; // [rsp+0h] [rbp-88h] BYREF
_BYTE v7[32]; // [rsp+8h] [rbp-80h] BYREF
_BYTE v8[32]; // [rsp+28h] [rbp-60h] BYREF
_OWORD *v9; // [rsp+48h] [rbp-40h]
long long *v10; // [rsp+50h] [rbp-38h]
_BYTE *v11; // [rsp+58h] [rbp-30h]
_BYTE *v12; // [rsp+60h] [rbp-28h]
v6 = a4;
std::queue<std::string>::queue<std::deque<std::string>,void>(a1);
std::string::basic_string(v8, a3);
v9 = a1;
v10 = &v6;
v11 = v8;
v12 = v7;
std::function<bool ()(Trie::Node const*)>::function<Trie::Node::autocompleteNode(std::string const&,unsigned long)::{lambda(Trie::Node const*)#1},void>(v7);
std::function<bool ()(Trie::Node const*)>::operator()(v7, a2);
std::_Function_base::~_Function_base((std::_Function_base *)v7);
std::string::~string();
return a1;
}
| autocompleteNode:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV R12,RDX
MOV R14,RSI
MOV RBX,RDI
MOV qword ptr [RSP],RCX
CALL 0x00102a74
LAB_00102f8b:
LEA R15,[RSP + 0x28]
MOV RDI,R15
MOV RSI,R12
CALL 0x0010301e
LEA RSI,[RSP + 0x48]
MOV qword ptr [RSI],RBX
MOV RAX,RSP
MOV qword ptr [RSI + 0x8],RAX
MOV qword ptr [RSI + 0x10],R15
LEA RDI,[RSP + 0x8]
MOV qword ptr [RSI + 0x18],RDI
LAB_00102fb7:
CALL 0x00103038
LAB_00102fbc:
LEA RDI,[RSP + 0x8]
MOV RSI,R14
CALL 0x00103080
LAB_00102fc9:
LEA RDI,[RSP + 0x8]
CALL 0x0010309a
LEA RDI,[RSP + 0x28]
CALL 0x00102b50
MOV RAX,RBX
ADD RSP,0x68
POP RBX
POP R12
POP R14
POP R15
RET
|
/* Trie::Node::autocompleteNode(std::__cxx11::string const&, unsigned long) const */
string * Trie::Node::autocompleteNode(string *param_1,ulong param_2)
{
string *in_RDX;
int1 local_88 [8];
_lambda_Trie__Node_const___1_ local_80 [32];
string local_60 [32];
string *local_40;
int1 *local_38;
string *local_30;
_lambda_Trie__Node_const___1_ *local_28;
std::
queue<std::__cxx11::string,std::deque<std::__cxx11::string,std::allocator<std::__cxx11::string>>>
::queue<std::deque<std::__cxx11::string,std::allocator<std::__cxx11::string>>,void>
((queue<std::__cxx11::string,std::deque<std::__cxx11::string,std::allocator<std::__cxx11::string>>>
*)param_1);
/* try { // try from 00102f8b to 00102f9a has its CatchHandler @ 0010300a */
std::__cxx11::string::string(local_60,in_RDX);
local_28 = local_80;
local_40 = param_1;
local_38 = local_88;
local_30 = local_60;
/* try { // try from 00102fb7 to 00102fbb has its CatchHandler @ 00102ffb */
std::function<bool(Trie::Node_const*)>::
function<Trie::Node::autocompleteNode(std::__cxx11::string_const&,unsigned_long)const::_lambda(Trie::Node_const*)_1_,void>
(local_28);
/* try { // try from 00102fbc to 00102fc8 has its CatchHandler @ 00102fec */
std::function<bool(Trie::Node_const*)>::operator()
((function<bool(Trie::Node_const*)> *)local_80,(Node *)param_2);
std::_Function_base::~_Function_base((_Function_base *)local_80);
std::__cxx11::string::~string(local_60);
return param_1;
}
| |
27,024 | wsrep_init_thd_for_schema(THD*) | eloqsql/sql/wsrep_schema.cc | static void wsrep_init_thd_for_schema(THD *thd)
{
thd->security_ctx->skip_grants();
thd->system_thread= SYSTEM_THREAD_GENERIC;
thd->real_id=pthread_self(); // Keep purify happy
thd->prior_thr_create_utime= thd->start_utime= thd->thr_create_utime;
/* No Galera replication */
thd->variables.wsrep_on= 0;
/* No binlogging */
thd->variables.sql_log_bin= 0;
thd->variables.option_bits&= ~OPTION_BIN_LOG;
/* No safe updates */
thd->variables.option_bits&= ~OPTION_SAFE_UPDATES;
/* No general log */
thd->variables.option_bits|= OPTION_LOG_OFF;
/* Read committed isolation to avoid gap locking */
thd->variables.tx_isolation= ISO_READ_COMMITTED;
wsrep_assign_from_threadvars(thd);
wsrep_store_threadvars(thd);
} | O0 | cpp | wsrep_init_thd_for_schema(THD*):
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x2570(%rax), %rdi
callq 0x54ff40
movq -0x8(%rbp), %rax
movl $0x80, 0x3e6c(%rax)
callq 0x434160
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x3e40(%rax)
movq -0x8(%rbp), %rax
movq 0x2748(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x2750(%rax)
movq -0x8(%rbp), %rax
movq %rcx, 0x2740(%rax)
movq -0x8(%rbp), %rax
movb $0x0, 0xbd0(%rax)
movq -0x8(%rbp), %rax
movb $0x0, 0xb26(%rax)
movq -0x8(%rbp), %rax
movq 0x8a8(%rax), %rcx
andq $-0x40001, %rcx # imm = 0xFFFBFFFF
movq %rcx, 0x8a8(%rax)
movq -0x8(%rbp), %rax
movq 0x8a8(%rax), %rcx
andq $-0x10001, %rcx # imm = 0xFFFEFFFF
movq %rcx, 0x8a8(%rax)
movq -0x8(%rbp), %rax
movq 0x8a8(%rax), %rcx
orq $0x400, %rcx # imm = 0x400
movq %rcx, 0x8a8(%rax)
movq -0x8(%rbp), %rax
movq $0x1, 0xad8(%rax)
movq -0x8(%rbp), %rdi
callq 0xd35ce0
movq -0x8(%rbp), %rdi
callq 0xd35da0
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ZL25wsrep_init_thd_for_schemaP3THD:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov rdi, [rax+2570h]; this
call _ZN16Security_context11skip_grantsEv; Security_context::skip_grants(void)
mov rax, [rbp+var_8]
mov dword ptr [rax+3E6Ch], 80h
call _pthread_self
mov rcx, rax
mov rax, [rbp+var_8]
mov [rax+3E40h], rcx
mov rax, [rbp+var_8]
mov rcx, [rax+2748h]
mov rax, [rbp+var_8]
mov [rax+2750h], rcx
mov rax, [rbp+var_8]
mov [rax+2740h], rcx
mov rax, [rbp+var_8]
mov byte ptr [rax+0BD0h], 0
mov rax, [rbp+var_8]
mov byte ptr [rax+0B26h], 0
mov rax, [rbp+var_8]
mov rcx, [rax+8A8h]
and rcx, 0FFFFFFFFFFFBFFFFh
mov [rax+8A8h], rcx
mov rax, [rbp+var_8]
mov rcx, [rax+8A8h]
and rcx, 0FFFFFFFFFFFEFFFFh
mov [rax+8A8h], rcx
mov rax, [rbp+var_8]
mov rcx, [rax+8A8h]
or rcx, 400h
mov [rax+8A8h], rcx
mov rax, [rbp+var_8]
mov qword ptr [rax+0AD8h], 1
mov rdi, [rbp+var_8]; THD *
call _Z28wsrep_assign_from_threadvarsP3THD; wsrep_assign_from_threadvars(THD *)
mov rdi, [rbp+var_8]; THD *
call _Z22wsrep_store_threadvarsP3THD; wsrep_store_threadvars(THD *)
add rsp, 10h
pop rbp
retn
| long long wsrep_init_thd_for_schema(THD *a1)
{
Security_context *v1; // rdi
long long v2; // rcx
v1 = (Security_context *)*((_QWORD *)a1 + 1198);
Security_context::skip_grants(v1);
*((_DWORD *)a1 + 3995) = 128;
*((_QWORD *)a1 + 1992) = pthread_self(v1);
v2 = *((_QWORD *)a1 + 1257);
*((_QWORD *)a1 + 1258) = v2;
*((_QWORD *)a1 + 1256) = v2;
*((_BYTE *)a1 + 3024) = 0;
*((_BYTE *)a1 + 2854) = 0;
*((_QWORD *)a1 + 277) &= ~0x40000uLL;
*((_QWORD *)a1 + 277) &= ~0x10000uLL;
*((_QWORD *)a1 + 277) |= 0x400uLL;
*((_QWORD *)a1 + 347) = 1LL;
wsrep_assign_from_threadvars(a1);
return wsrep_store_threadvars(a1);
}
| inc_statement_select_scan_noop:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
POP RBP
RET
|
void inc_statement_select_scan_noop(void)
{
return;
}
| |
27,025 | list_reverse | eloqsql/libmariadb/libmariadb/ma_list.c | LIST *list_reverse(LIST *root)
{
LIST *last;
last=root;
while (root)
{
last=root;
root=root->next;
last->next=last->prev;
last->prev=root;
}
return last;
} | O3 | c | list_reverse:
testq %rdi, %rdi
je 0x1d990
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rax
movq (%rdi), %rcx
movq 0x8(%rdi), %rdi
movq %rcx, 0x8(%rax)
movq %rdi, (%rax)
testq %rdi, %rdi
jne 0x1d978
popq %rbp
retq
xorl %eax, %eax
retq
| list_reverse:
test rdi, rdi
jz short loc_1D990
push rbp
mov rbp, rsp
loc_1D978:
mov rax, rdi
mov rcx, [rdi]
mov rdi, [rdi+8]
mov [rax+8], rcx
mov [rax], rdi
test rdi, rdi
jnz short loc_1D978
pop rbp
retn
loc_1D990:
xor eax, eax
retn
| _QWORD * list_reverse(_QWORD *a1)
{
_QWORD *result; // rax
long long v2; // rcx
if ( !a1 )
return 0LL;
do
{
result = a1;
v2 = *a1;
a1 = (_QWORD *)a1[1];
result[1] = v2;
*result = a1;
}
while ( a1 );
return result;
}
| list_reverse:
TEST RDI,RDI
JZ 0x0011d990
PUSH RBP
MOV RBP,RSP
LAB_0011d978:
MOV RAX,RDI
MOV RCX,qword ptr [RDI]
MOV RDI,qword ptr [RDI + 0x8]
MOV qword ptr [RAX + 0x8],RCX
MOV qword ptr [RAX],RDI
TEST RDI,RDI
JNZ 0x0011d978
POP RBP
RET
LAB_0011d990:
XOR EAX,EAX
RET
|
int8 * list_reverse(int8 *param_1)
{
int8 *puVar1;
int8 *puVar2;
if (param_1 == (int8 *)0x0) {
return (int8 *)0x0;
}
do {
puVar2 = param_1;
puVar1 = (int8 *)param_1[1];
param_1[1] = *param_1;
*param_1 = puVar1;
param_1 = puVar1;
} while (puVar1 != (int8 *)0x0);
return puVar2;
}
| |
27,026 | testing::internal::UnitTestImpl::RecordProperty(testing::TestProperty const&) | seiftnesse[P]memoryallocator/build_O1/_deps/googletest-src/googletest/src/gtest.cc | void UnitTestImpl::RecordProperty(const TestProperty& test_property) {
std::string xml_element;
TestResult* test_result; // TestResult appropriate for property recording.
if (current_test_info_ != nullptr) {
xml_element = "testcase";
test_result = &(current_test_info_->result_);
} else if (current_test_suite_ != nullptr) {
xml_element = "testsuite";
test_result = &(current_test_suite_->ad_hoc_test_result_);
} else {
xml_element = "testsuites";
test_result = &ad_hoc_test_result_;
}
test_result->RecordProperty(xml_element, test_property);
} | O1 | cpp | testing::internal::UnitTestImpl::RecordProperty(testing::TestProperty const&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
cmpq $0x0, 0x170(%rdi)
je 0x30f83
leaq 0x12889(%rip), %rcx # 0x437ec
movq %rsp, %rdi
movl $0x8, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x98b0
movl $0x90, %edi
addq 0x170(%r14), %rdi
jmp 0x30fd7
cmpq $0x0, 0x168(%r14)
je 0x30fb4
leaq 0x12813(%rip), %rcx # 0x437a7
movq %rsp, %rdi
movl $0x9, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x98b0
movl $0x88, %edi
addq 0x168(%r14), %rdi
jmp 0x30fd7
leaq 0x12905(%rip), %rcx # 0x438c0
movq %rsp, %rdi
movl $0xa, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x98b0
addq $0x178, %r14 # imm = 0x178
movq %r14, %rdi
movq %rsp, %rsi
movq %rbx, %rdx
callq 0x23b5c
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x30ff8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x94c0
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x3101b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x94c0
movq %rbx, %rdi
callq 0x99a0
nop
| _ZN7testing8internal12UnitTestImpl14RecordPropertyERKNS_12TestPropertyE:
push r15
push r14
push rbx
sub rsp, 20h
mov rbx, rsi
mov r14, rdi
lea r15, [rsp+38h+var_28]
mov [r15-10h], r15
mov qword ptr [r15-8], 0
mov byte ptr [r15], 0
cmp qword ptr [rdi+170h], 0
jz short loc_30F83
lea rcx, aTestcase+5; "testcase"
mov rdi, rsp
mov r8d, 8
xor esi, esi
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong)
mov edi, 90h
add rdi, [r14+170h]
jmp short loc_30FD7
loc_30F83:
cmp qword ptr [r14+168h], 0
jz short loc_30FB4
lea rcx, aTestsuite+3; "testsuite"
mov rdi, rsp
mov r8d, 9
xor esi, esi
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong)
mov edi, 88h
add rdi, [r14+168h]
jmp short loc_30FD7
loc_30FB4:
lea rcx, aTestsuites; "testsuites"
mov rdi, rsp
mov r8d, 0Ah
xor esi, esi
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong)
add r14, 178h
mov rdi, r14; this
loc_30FD7:
mov rsi, rsp
mov rdx, rbx
call _ZN7testing10TestResult14RecordPropertyERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_12TestPropertyE; testing::TestResult::RecordProperty(std::string const&,testing::TestProperty const&)
mov rdi, [rsp+38h+var_38]; void *
cmp rdi, r15
jz short loc_30FF8
mov rsi, [rsp+38h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_30FF8:
add rsp, 20h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
mov rdi, [rsp+0]; void *
cmp rdi, r15
jz short loc_3101B
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3101B:
mov rdi, rbx
call __Unwind_Resume
| void testing::internal::UnitTestImpl::RecordProperty(
testing::internal::UnitTestImpl *this,
const testing::TestProperty *a2)
{
testing::internal::MutexBase *v2; // rdi
void *v3[2]; // [rsp+0h] [rbp-38h] BYREF
_QWORD v4[5]; // [rsp+10h] [rbp-28h] BYREF
v3[0] = v4;
v3[1] = 0LL;
LOBYTE(v4[0]) = 0;
if ( *((_QWORD *)this + 46) )
{
std::string::_M_replace(v3, 0LL, 0LL, "testcase", 8LL);
v2 = (testing::internal::MutexBase *)(*((_QWORD *)this + 46) + 144LL);
}
else if ( *((_QWORD *)this + 45) )
{
std::string::_M_replace(v3, 0LL, 0LL, "testsuite", 9LL);
v2 = (testing::internal::MutexBase *)(*((_QWORD *)this + 45) + 136LL);
}
else
{
std::string::_M_replace(v3, 0LL, 0LL, "testsuites", 10LL);
v2 = (testing::internal::UnitTestImpl *)((char *)this + 376);
}
testing::TestResult::RecordProperty(v2);
if ( v3[0] != v4 )
operator delete(v3[0], v4[0] + 1LL);
}
| RecordProperty:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x20
MOV RBX,RSI
MOV R14,RDI
LEA R15,[RSP + 0x10]
MOV qword ptr [R15 + -0x10],R15
MOV qword ptr [R15 + -0x8],0x0
MOV byte ptr [R15],0x0
CMP qword ptr [RDI + 0x170],0x0
JZ 0x00130f83
LAB_00130f5c:
LEA RCX,[0x1437ec]
MOV RDI,RSP
MOV R8D,0x8
XOR ESI,ESI
XOR EDX,EDX
CALL 0x001098b0
MOV EDI,0x90
ADD RDI,qword ptr [R14 + 0x170]
JMP 0x00130fd7
LAB_00130f83:
CMP qword ptr [R14 + 0x168],0x0
JZ 0x00130fb4
LEA RCX,[0x1437a7]
MOV RDI,RSP
MOV R8D,0x9
XOR ESI,ESI
XOR EDX,EDX
CALL 0x001098b0
MOV EDI,0x88
ADD RDI,qword ptr [R14 + 0x168]
JMP 0x00130fd7
LAB_00130fb4:
LEA RCX,[0x1438c0]
MOV RDI,RSP
MOV R8D,0xa
XOR ESI,ESI
XOR EDX,EDX
CALL 0x001098b0
ADD R14,0x178
MOV RDI,R14
LAB_00130fd7:
MOV RSI,RSP
MOV RDX,RBX
CALL 0x00123b5c
LAB_00130fe2:
MOV RDI,qword ptr [RSP]
CMP RDI,R15
JZ 0x00130ff8
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x001094c0
LAB_00130ff8:
ADD RSP,0x20
POP RBX
POP R14
POP R15
RET
|
/* testing::internal::UnitTestImpl::RecordProperty(testing::TestProperty const&) */
void __thiscall
testing::internal::UnitTestImpl::RecordProperty(UnitTestImpl *this,TestProperty *param_1)
{
TestResult *this_00;
int1 *local_38;
int8 local_30;
int1 local_28;
int7 uStack_27;
local_30 = 0;
local_28 = 0;
local_38 = &local_28;
if (*(long *)(this + 0x170) == 0) {
if (*(long *)(this + 0x168) == 0) {
std::__cxx11::string::_M_replace((ulong)&local_38,0,(char *)0x0,0x1438c0);
this_00 = (TestResult *)(this + 0x178);
}
else {
std::__cxx11::string::_M_replace((ulong)&local_38,0,(char *)0x0,0x1437a7);
this_00 = (TestResult *)(*(long *)(this + 0x168) + 0x88);
}
}
else {
/* try { // try from 00130f5c to 00130fe1 has its CatchHandler @ 00131002 */
std::__cxx11::string::_M_replace((ulong)&local_38,0,(char *)0x0,0x1437ec);
this_00 = (TestResult *)(*(long *)(this + 0x170) + 0x90);
}
TestResult::RecordProperty(this_00,(string *)&local_38,param_1);
if (local_38 != &local_28) {
operator_delete(local_38,CONCAT71(uStack_27,local_28) + 1);
}
return;
}
| |
27,027 | my_mb_wc_euc_jp | eloqsql/strings/ctype-ujis.c | static int
my_mb_wc_euc_jp(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t *pwc, const uchar *s, const uchar *e)
{
int hi;
if (s >= e)
return MY_CS_TOOSMALL;
if ((hi= s[0]) < 0x80) /* ASCII code set: [00..7F] -> [U+0000..U+007F] */
{
*pwc= hi;
return 1;
}
if (hi >= 0xA1 && hi <= 0xFE) /* JIS-X-0208 code set: [A1..FE][A1..FE] */
{
if (s + 2 > e)
return MY_CS_TOOSMALL2;
return (*pwc= jisx0208_eucjp_to_unicode[(hi << 8) + s[1]]) ? 2 :
(s[1] < 0xA1 || s[1] > 0xFE) ? MY_CS_ILSEQ : -2;
}
/* JIS-X-0201 HALF WIDTH KATAKANA: [8E][A1..DF] -> [U+FF61..U+FF9F] */
if (hi == 0x8E)
{
if (s + 2 > e)
return MY_CS_TOOSMALL2;
if (s[1] < 0xA1 || s[1] > 0xDF)
return MY_CS_ILSEQ;
*pwc= 0xFEC0 + s[1]; /* 0xFFC0 = 0xFF61 - 0xA1 */
return 2;
}
if (hi == 0x8F) /* JIS X 0212 code set: [8F][A1..FE][A1..FE] */
{
if (s + 3 > e)
return MY_CS_TOOSMALL3;
return (*pwc= jisx0212_eucjp_to_unicode[(((int) s[1]) << 8) + s[2]]) ?
3 :
(s[1] < 0xA1 || s[1] > 0xFE || s[2] < 0xA1 || s[2] > 0xFE) ?
MY_CS_ILSEQ : -3;
}
return MY_CS_ILSEQ;
} | O3 | c | my_mb_wc_euc_jp:
pushq %rbp
movq %rsp, %rbp
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0xc9923
movzbl (%rdx), %edi
testb %dil, %dil
js 0xc9925
movq %rdi, (%rsi)
movl $0x1, %eax
popq %rbp
retq
leal 0x5f(%rdi), %eax
cmpb $0x5d, %al
ja 0xc9971
leaq 0x2(%rdx), %r8
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rcx, %r8
ja 0xc9923
movzbl 0x1(%rdx), %eax
shll $0x9, %edi
leal (%rdi,%rax,2), %eax
leaq 0x20d255(%rip), %rcx # 0x2d6ba0
movzwl (%rax,%rcx), %ecx
movq %rcx, (%rsi)
movl $0x2, %eax
testq %rcx, %rcx
jne 0xc9923
movb 0x1(%rdx), %al
incb %al
xorl %ecx, %ecx
cmpb $-0x5e, %al
setb %cl
leal -0x2(,%rcx,2), %eax
jmp 0xc9923
cmpq $0x8f, %rdi
je 0xc99b5
cmpl $0x8e, %edi
jne 0xc99f7
leaq 0x2(%rdx), %rdi
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rcx, %rdi
ja 0xc9923
movzbl 0x1(%rdx), %ecx
leal 0x20(%rcx), %edx
movl $0x0, %eax
cmpb $-0x3f, %dl
jb 0xc9923
addq $0xfec0, %rcx # imm = 0xFEC0
movq %rcx, (%rsi)
movl $0x2, %eax
jmp 0xc9923
leaq 0x3(%rdx), %rdi
movl $0xffffff99, %eax # imm = 0xFFFFFF99
cmpq %rcx, %rdi
ja 0xc9923
movzwl 0x1(%rdx), %eax
rolw $0x8, %ax
movzwl %ax, %eax
leaq 0x22d1c7(%rip), %rcx # 0x2f6ba0
movzwl (%rcx,%rax,2), %ecx
movq %rcx, (%rsi)
movl $0x3, %eax
testq %rcx, %rcx
jne 0xc9923
movb 0x1(%rdx), %al
incb %al
cmpb $-0x5e, %al
jae 0xc99fe
xorl %eax, %eax
jmp 0xc9923
movb 0x2(%rdx), %cl
movl $0x0, %eax
cmpb $-0x5f, %cl
jb 0xc9923
xorl %eax, %eax
cmpb $-0x1, %cl
sete %al
leal (%rax,%rax,2), %eax
addl $-0x3, %eax
jmp 0xc9923
| my_mb_wc_euc_jp:
push rbp
mov rbp, rsp
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb short loc_C9923
movzx edi, byte ptr [rdx]
test dil, dil
js short loc_C9925
mov [rsi], rdi
mov eax, 1
loc_C9923:
pop rbp
retn
loc_C9925:
lea eax, [rdi+5Fh]
cmp al, 5Dh ; ']'
ja short loc_C9971
lea r8, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp r8, rcx
ja short loc_C9923
movzx eax, byte ptr [rdx+1]
shl edi, 9
lea eax, [rdi+rax*2]
lea rcx, jisx0208_eucjp_to_unicode
movzx ecx, word ptr [rax+rcx]
mov [rsi], rcx
mov eax, 2
test rcx, rcx
jnz short loc_C9923
mov al, [rdx+1]
inc al
xor ecx, ecx
cmp al, 0A2h
setb cl
lea eax, ds:0FFFFFFFFFFFFFFFEh[rcx*2]
jmp short loc_C9923
loc_C9971:
cmp rdi, 8Fh
jz short loc_C99B5
cmp edi, 8Eh
jnz short loc_C99F7
lea rdi, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp rdi, rcx
ja short loc_C9923
movzx ecx, byte ptr [rdx+1]
lea edx, [rcx+20h]
mov eax, 0
cmp dl, 0C1h
jb short loc_C9923
add rcx, 0FEC0h
mov [rsi], rcx
mov eax, 2
jmp loc_C9923
loc_C99B5:
lea rdi, [rdx+3]
mov eax, 0FFFFFF99h
cmp rdi, rcx
ja loc_C9923
movzx eax, word ptr [rdx+1]
rol ax, 8
movzx eax, ax
lea rcx, jisx0212_eucjp_to_unicode
movzx ecx, word ptr [rcx+rax*2]
mov [rsi], rcx
mov eax, 3
test rcx, rcx
jnz loc_C9923
mov al, [rdx+1]
inc al
cmp al, 0A2h
jnb short loc_C99FE
loc_C99F7:
xor eax, eax
jmp loc_C9923
loc_C99FE:
mov cl, [rdx+2]
mov eax, 0
cmp cl, 0A1h
jb loc_C9923
xor eax, eax
cmp cl, 0FFh
setz al
lea eax, [rax+rax*2]
add eax, 0FFFFFFFDh
jmp loc_C9923
| long long my_mb_wc_euc_jp(long long a1, _QWORD *a2, unsigned __int8 *a3, unsigned long long a4)
{
long long result; // rax
long long v5; // rdi
long long v6; // rcx
long long v7; // rcx
long long v8; // rcx
unsigned __int8 v9; // cl
result = 4294967195LL;
if ( (unsigned long long)a3 >= a4 )
return result;
v5 = *a3;
if ( (v5 & 0x80u) == 0LL )
{
*a2 = v5;
return 1LL;
}
if ( (unsigned __int8)(v5 + 95) <= 0x5Du )
{
result = 4294967194LL;
if ( (unsigned long long)(a3 + 2) <= a4 )
{
v6 = jisx0208_eucjp_to_unicode[256 * (_DWORD)v5 + a3[1]];
*a2 = v6;
result = 2LL;
if ( !v6 )
return 2 * (unsigned int)((unsigned __int8)(a3[1] + 1) < 0xA2u) - 2;
}
return result;
}
if ( v5 != 143 )
{
if ( (_DWORD)v5 == 142 )
{
result = 4294967194LL;
if ( (unsigned long long)(a3 + 2) <= a4 )
{
v7 = a3[1];
result = 0LL;
if ( (unsigned __int8)(v7 + 32) >= 0xC1u )
{
*a2 = v7 + 65216;
return 2LL;
}
}
return result;
}
return 0LL;
}
result = 4294967193LL;
if ( (unsigned long long)(a3 + 3) > a4 )
return result;
v8 = jisx0212_eucjp_to_unicode[(unsigned __int16)__ROL2__(*(_WORD *)(a3 + 1), 8)];
*a2 = v8;
result = 3LL;
if ( v8 )
return result;
if ( (unsigned __int8)(a3[1] + 1) < 0xA2u )
return 0LL;
v9 = a3[2];
result = 0LL;
if ( v9 >= 0xA1u )
return 3 * (unsigned int)(v9 == 0xFF) - 3;
return result;
}
| my_mb_wc_euc_jp:
PUSH RBP
MOV RBP,RSP
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x001c9923
MOVZX EDI,byte ptr [RDX]
TEST DIL,DIL
JS 0x001c9925
MOV qword ptr [RSI],RDI
MOV EAX,0x1
LAB_001c9923:
POP RBP
RET
LAB_001c9925:
LEA EAX,[RDI + 0x5f]
CMP AL,0x5d
JA 0x001c9971
LEA R8,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP R8,RCX
JA 0x001c9923
MOVZX EAX,byte ptr [RDX + 0x1]
SHL EDI,0x9
LEA EAX,[RDI + RAX*0x2]
LEA RCX,[0x3d6ba0]
MOVZX ECX,word ptr [RAX + RCX*0x1]
MOV qword ptr [RSI],RCX
MOV EAX,0x2
TEST RCX,RCX
JNZ 0x001c9923
MOV AL,byte ptr [RDX + 0x1]
INC AL
XOR ECX,ECX
CMP AL,0xa2
SETC CL
LEA EAX,[-0x2 + RCX*0x2]
JMP 0x001c9923
LAB_001c9971:
CMP RDI,0x8f
JZ 0x001c99b5
CMP EDI,0x8e
JNZ 0x001c99f7
LEA RDI,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP RDI,RCX
JA 0x001c9923
MOVZX ECX,byte ptr [RDX + 0x1]
LEA EDX,[RCX + 0x20]
MOV EAX,0x0
CMP DL,0xc1
JC 0x001c9923
ADD RCX,0xfec0
MOV qword ptr [RSI],RCX
MOV EAX,0x2
JMP 0x001c9923
LAB_001c99b5:
LEA RDI,[RDX + 0x3]
MOV EAX,0xffffff99
CMP RDI,RCX
JA 0x001c9923
MOVZX EAX,word ptr [RDX + 0x1]
ROL AX,0x8
MOVZX EAX,AX
LEA RCX,[0x3f6ba0]
MOVZX ECX,word ptr [RCX + RAX*0x2]
MOV qword ptr [RSI],RCX
MOV EAX,0x3
TEST RCX,RCX
JNZ 0x001c9923
MOV AL,byte ptr [RDX + 0x1]
INC AL
CMP AL,0xa2
JNC 0x001c99fe
LAB_001c99f7:
XOR EAX,EAX
JMP 0x001c9923
LAB_001c99fe:
MOV CL,byte ptr [RDX + 0x2]
MOV EAX,0x0
CMP CL,0xa1
JC 0x001c9923
XOR EAX,EAX
CMP CL,0xff
SETZ AL
LEA EAX,[RAX + RAX*0x2]
ADD EAX,-0x3
JMP 0x001c9923
|
int my_mb_wc_euc_jp(int8 param_1,ulong *param_2,byte *param_3,byte *param_4)
{
byte bVar1;
ushort uVar2;
int iVar3;
iVar3 = -0x65;
if (param_3 < param_4) {
bVar1 = *param_3;
if ((char)bVar1 < '\0') {
if ((byte)(bVar1 + 0x5f) < 0x5e) {
iVar3 = -0x66;
if (param_3 + 2 <= param_4) {
uVar2 = *(ushort *)
(jisx0208_eucjp_to_unicode + ((uint)bVar1 * 0x200 + (uint)param_3[1] * 2));
*param_2 = (ulong)uVar2;
iVar3 = 2;
if ((ulong)uVar2 == 0) {
iVar3 = (uint)((byte)(param_3[1] + 1) < 0xa2) * 2 + -2;
}
}
}
else {
if ((ulong)bVar1 == 0x8f) {
if (param_4 < param_3 + 3) {
return -0x67;
}
uVar2 = *(ushort *)
(&jisx0212_eucjp_to_unicode +
(ulong)(ushort)(*(ushort *)(param_3 + 1) << 8 | *(ushort *)(param_3 + 1) >> 8) *
2);
*param_2 = (ulong)uVar2;
if ((ulong)uVar2 != 0) {
return 3;
}
if (0xa1 < (byte)(param_3[1] + 1)) {
if (param_3[2] < 0xa1) {
return 0;
}
return (uint)(param_3[2] == 0xff) * 3 + -3;
}
}
else if (bVar1 == 0x8e) {
if (param_4 < param_3 + 2) {
return -0x66;
}
if ((byte)(param_3[1] + 0x20) < 0xc1) {
return 0;
}
*param_2 = (ulong)param_3[1] + 0xfec0;
return 2;
}
iVar3 = 0;
}
}
else {
*param_2 = (ulong)bVar1;
iVar3 = 1;
}
}
return iVar3;
}
| |
27,028 | chooseGLXFBConfig | untodesu[P]riteg/build_O1/_deps/glfw-src/src/glx_context.c | static GLFWbool chooseGLXFBConfig(const _GLFWfbconfig* desired,
GLXFBConfig* result)
{
GLXFBConfig* nativeConfigs;
_GLFWfbconfig* usableConfigs;
const _GLFWfbconfig* closest;
int i, nativeCount, usableCount;
const char* vendor;
GLFWbool trustWindowBit = GLFW_TRUE;
// HACK: This is a (hopefully temporary) workaround for Chromium
// (VirtualBox GL) not setting the window bit on any GLXFBConfigs
vendor = glXGetClientString(_glfw.x11.display, GLX_VENDOR);
if (vendor && strcmp(vendor, "Chromium") == 0)
trustWindowBit = GLFW_FALSE;
nativeConfigs =
glXGetFBConfigs(_glfw.x11.display, _glfw.x11.screen, &nativeCount);
if (!nativeConfigs || !nativeCount)
{
_glfwInputError(GLFW_API_UNAVAILABLE, "GLX: No GLXFBConfigs returned");
return GLFW_FALSE;
}
usableConfigs = calloc(nativeCount, sizeof(_GLFWfbconfig));
usableCount = 0;
for (i = 0; i < nativeCount; i++)
{
const GLXFBConfig n = nativeConfigs[i];
_GLFWfbconfig* u = usableConfigs + usableCount;
// Only consider RGBA GLXFBConfigs
if (!(getGLXFBConfigAttrib(n, GLX_RENDER_TYPE) & GLX_RGBA_BIT))
continue;
// Only consider window GLXFBConfigs
if (!(getGLXFBConfigAttrib(n, GLX_DRAWABLE_TYPE) & GLX_WINDOW_BIT))
{
if (trustWindowBit)
continue;
}
if (desired->transparent)
{
XVisualInfo* vi = glXGetVisualFromFBConfig(_glfw.x11.display, n);
if (vi)
{
u->transparent = _glfwIsVisualTransparentX11(vi->visual);
XFree(vi);
}
}
u->redBits = getGLXFBConfigAttrib(n, GLX_RED_SIZE);
u->greenBits = getGLXFBConfigAttrib(n, GLX_GREEN_SIZE);
u->blueBits = getGLXFBConfigAttrib(n, GLX_BLUE_SIZE);
u->alphaBits = getGLXFBConfigAttrib(n, GLX_ALPHA_SIZE);
u->depthBits = getGLXFBConfigAttrib(n, GLX_DEPTH_SIZE);
u->stencilBits = getGLXFBConfigAttrib(n, GLX_STENCIL_SIZE);
u->accumRedBits = getGLXFBConfigAttrib(n, GLX_ACCUM_RED_SIZE);
u->accumGreenBits = getGLXFBConfigAttrib(n, GLX_ACCUM_GREEN_SIZE);
u->accumBlueBits = getGLXFBConfigAttrib(n, GLX_ACCUM_BLUE_SIZE);
u->accumAlphaBits = getGLXFBConfigAttrib(n, GLX_ACCUM_ALPHA_SIZE);
u->auxBuffers = getGLXFBConfigAttrib(n, GLX_AUX_BUFFERS);
if (getGLXFBConfigAttrib(n, GLX_STEREO))
u->stereo = GLFW_TRUE;
if (getGLXFBConfigAttrib(n, GLX_DOUBLEBUFFER))
u->doublebuffer = GLFW_TRUE;
if (_glfw.glx.ARB_multisample)
u->samples = getGLXFBConfigAttrib(n, GLX_SAMPLES);
if (_glfw.glx.ARB_framebuffer_sRGB || _glfw.glx.EXT_framebuffer_sRGB)
u->sRGB = getGLXFBConfigAttrib(n, GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB);
u->handle = (uintptr_t) n;
usableCount++;
}
closest = _glfwChooseFBConfig(desired, usableConfigs, usableCount);
if (closest)
*result = (GLXFBConfig) closest->handle;
XFree(nativeConfigs);
free(usableConfigs);
return closest != NULL;
} | O1 | c | chooseGLXFBConfig:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, 0x20(%rsp)
leaq 0x7dc29(%rip), %r12 # 0xa4638
movq 0x1fec0(%r12), %rdi
movl $0x1, %esi
callq *0x20798(%r12)
testq %rax, %rax
je 0x26a41
leaq 0x5c9d4(%rip), %rsi # 0x83404
movq %rax, %rdi
callq 0xcb50
testl %eax, %eax
setne 0xb(%rsp)
jmp 0x26a46
movb $0x1, 0xb(%rsp)
movq 0x1fec0(%r12), %rdi
movl 0x1fec8(%r12), %esi
leaq 0xc(%rsp), %rbx
movq %rbx, %rdx
callq *0x20788(%r12)
movq %rax, %r15
testq %rax, %rax
setne %cl
movl (%rbx), %eax
testl %eax, %eax
setne %dl
testb %dl, %cl
je 0x26db0
movq %r14, 0x28(%rsp)
movslq %eax, %rdi
movl $0x48, %esi
callq 0xc550
movq %rax, 0x10(%rsp)
cmpl $0x0, 0xc(%rsp)
jle 0x26dc7
xorl %ebp, %ebp
leaq 0x4(%rsp), %r13
xorl %r14d, %r14d
movq %r15, 0x30(%rsp)
movq (%r15,%rbp,8), %rbx
movq 0x1fec0(%r12), %rdi
movq %rbx, %rsi
movl $0x8011, %edx # imm = 0x8011
movq %r13, %rcx
callq *0x20790(%r12)
testb $0x1, 0x4(%rsp)
je 0x26d9d
movq 0x1fec0(%r12), %rdi
movq %rbx, %rsi
movl $0x8010, %edx # imm = 0x8010
movq %r13, %rcx
callq *0x20790(%r12)
testb $0x1, 0x4(%rsp)
sete %al
testb %al, 0xb(%rsp)
jne 0x26d9d
movl %r14d, 0x1c(%rsp)
movslq %r14d, %rax
leaq (%rax,%rax,8), %rax
movq 0x10(%rsp), %rcx
leaq (%rcx,%rax,8), %r15
movq 0x20(%rsp), %rax
cmpl $0x0, 0x3c(%rax)
je 0x26b55
movq 0x1fec0(%r12), %rdi
movq %rbx, %rsi
callq *0x207d8(%r12)
testq %rax, %rax
je 0x26b55
movq %rax, %r14
movq (%rax), %rdi
callq 0x217d2
movl %eax, 0x3c(%r15)
movq %r14, %rdi
callq 0xcac0
movq 0x1fec0(%r12), %rdi
movq %rbx, %rsi
movl $0x8, %edx
movq %r13, %rcx
callq *0x20790(%r12)
movl 0x4(%rsp), %eax
movl %eax, (%r15)
movq 0x1fec0(%r12), %rdi
movq %rbx, %rsi
movl $0x9, %edx
movq %r13, %rcx
callq *0x20790(%r12)
movl 0x4(%rsp), %eax
movl %eax, 0x4(%r15)
movq 0x1fec0(%r12), %rdi
movq %rbx, %rsi
movl $0xa, %edx
movq %r13, %rcx
callq *0x20790(%r12)
movl 0x4(%rsp), %eax
movl %eax, 0x8(%r15)
movq 0x1fec0(%r12), %rdi
movq %rbx, %rsi
movl $0xb, %edx
movq %r13, %rcx
callq *0x20790(%r12)
movl 0x4(%rsp), %eax
movl %eax, 0xc(%r15)
movq 0x1fec0(%r12), %rdi
movq %rbx, %rsi
movl $0xc, %edx
movq %r13, %rcx
callq *0x20790(%r12)
movl 0x4(%rsp), %eax
movl %eax, 0x10(%r15)
movq 0x1fec0(%r12), %rdi
movq %rbx, %rsi
movl $0xd, %edx
movq %r13, %rcx
callq *0x20790(%r12)
movl 0x4(%rsp), %eax
movl %eax, 0x14(%r15)
movq 0x1fec0(%r12), %rdi
movq %rbx, %rsi
movl $0xe, %edx
movq %r13, %rcx
callq *0x20790(%r12)
movl 0x4(%rsp), %eax
movl %eax, 0x18(%r15)
movq 0x1fec0(%r12), %rdi
movq %rbx, %rsi
movl $0xf, %edx
movq %r13, %rcx
callq *0x20790(%r12)
movl 0x4(%rsp), %eax
movl %eax, 0x1c(%r15)
movq 0x1fec0(%r12), %rdi
movq %rbx, %rsi
movl $0x10, %edx
movq %r13, %rcx
callq *0x20790(%r12)
movl 0x4(%rsp), %eax
movl %eax, 0x20(%r15)
movq 0x1fec0(%r12), %rdi
movq %rbx, %rsi
movl $0x11, %edx
movq %r13, %rcx
callq *0x20790(%r12)
movl 0x4(%rsp), %eax
movl %eax, 0x24(%r15)
movq 0x1fec0(%r12), %rdi
movq %rbx, %rsi
movl $0x7, %edx
movq %r13, %rcx
callq *0x20790(%r12)
movl 0x4(%rsp), %eax
movl %eax, 0x28(%r15)
movq 0x1fec0(%r12), %rdi
movq %rbx, %rsi
movl $0x6, %edx
movq %r13, %rcx
callq *0x20790(%r12)
cmpl $0x0, 0x4(%rsp)
je 0x26cff
movl $0x1, 0x2c(%r15)
movq 0x1fec0(%r12), %rdi
movq %rbx, %rsi
movl $0x5, %edx
movq %r13, %rcx
callq *0x20790(%r12)
cmpl $0x0, 0x4(%rsp)
je 0x26d29
movl $0x1, 0x38(%r15)
cmpl $0x0, 0x2082c(%r12)
movl 0x1c(%rsp), %r14d
je 0x26d5c
movq 0x1fec0(%r12), %rdi
movq %rbx, %rsi
movl $0x186a1, %edx # imm = 0x186A1
movq %r13, %rcx
callq *0x20790(%r12)
movl 0x4(%rsp), %eax
movl %eax, 0x30(%r15)
movl 0x20834(%r12), %eax
orl 0x20830(%r12), %eax
je 0x26d91
movq 0x1fec0(%r12), %rdi
movq %rbx, %rsi
movl $0x20b2, %edx # imm = 0x20B2
movq %r13, %rcx
callq *0x20790(%r12)
movl 0x4(%rsp), %eax
movl %eax, 0x34(%r15)
movq %rbx, 0x40(%r15)
incl %r14d
movq 0x30(%rsp), %r15
incq %rbp
movslq 0xc(%rsp), %rax
cmpq %rax, %rbp
jl 0x26aaf
jmp 0x26dca
leaq 0x5c656(%rip), %rsi # 0x8340d
xorl %ebx, %ebx
movl $0x10006, %edi # imm = 0x10006
xorl %eax, %eax
callq 0x19081
jmp 0x26e07
xorl %r14d, %r14d
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rsi
movl %r14d, %edx
callq 0x186c0
testq %rax, %rax
je 0x26ded
movq 0x40(%rax), %rcx
movq 0x28(%rsp), %rdx
movq %rcx, (%rdx)
xorl %ebx, %ebx
testq %rax, %rax
setne %bl
movq %r15, %rdi
callq 0xcac0
movq 0x10(%rsp), %rdi
callq 0xca50
movl %ebx, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| chooseGLXFBConfig:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r14, rsi
mov [rsp+68h+var_48], rdi
lea r12, _glfw
mov rdi, [r12+1FEC0h]
mov esi, 1
call qword ptr [r12+20798h]
test rax, rax
jz short loc_26A41
lea rsi, aChromium; "Chromium"
mov rdi, rax
call _strcmp
test eax, eax
setnz [rsp+68h+var_5D]
jmp short loc_26A46
loc_26A41:
mov [rsp+68h+var_5D], 1
loc_26A46:
mov rdi, [r12+1FEC0h]
mov esi, [r12+1FEC8h]
lea rbx, [rsp+68h+var_5C]
mov rdx, rbx
call qword ptr [r12+20788h]
mov r15, rax
test rax, rax
setnz cl
mov eax, [rbx]
test eax, eax
setnz dl
test cl, dl
jz loc_26DB0
mov [rsp+68h+var_40], r14
movsxd rdi, eax
mov esi, 48h ; 'H'
call _calloc
mov [rsp+68h+var_58], rax
cmp [rsp+68h+var_5C], 0
jle loc_26DC7
xor ebp, ebp
lea r13, [rsp+68h+var_64]
xor r14d, r14d
mov [rsp+68h+var_38], r15
loc_26AAF:
mov rbx, [r15+rbp*8]
mov rdi, [r12+1FEC0h]
mov rsi, rbx
mov edx, 8011h
mov rcx, r13
call qword ptr ds:loc_20790[r12]
test byte ptr [rsp+68h+var_64], 1
jz loc_26D9D
mov rdi, [r12+1FEC0h]
mov rsi, rbx
mov edx, 8010h
mov rcx, r13
call qword ptr ds:loc_20790[r12]
test byte ptr [rsp+68h+var_64], 1
setz al
test [rsp+68h+var_5D], al
jnz loc_26D9D
mov [rsp+68h+var_4C], r14d
movsxd rax, r14d
lea rax, [rax+rax*8]
mov rcx, [rsp+68h+var_58]
lea r15, [rcx+rax*8]
mov rax, [rsp+68h+var_48]
cmp dword ptr [rax+3Ch], 0
jz short loc_26B55
mov rdi, [r12+1FEC0h]
mov rsi, rbx
call qword ptr [r12+207D8h]
test rax, rax
jz short loc_26B55
mov r14, rax
mov rdi, [rax]
call _glfwIsVisualTransparentX11
mov [r15+3Ch], eax
mov rdi, r14
call _XFree
loc_26B55:
mov rdi, [r12+1FEC0h]
mov rsi, rbx
mov edx, 8
mov rcx, r13
call qword ptr ds:loc_20790[r12]
mov eax, [rsp+68h+var_64]
mov [r15], eax
mov rdi, [r12+1FEC0h]
mov rsi, rbx
mov edx, 9
mov rcx, r13
call qword ptr ds:loc_20790[r12]
mov eax, [rsp+68h+var_64]
mov [r15+4], eax
mov rdi, [r12+1FEC0h]
mov rsi, rbx
mov edx, 0Ah
mov rcx, r13
call qword ptr ds:loc_20790[r12]
mov eax, [rsp+68h+var_64]
mov [r15+8], eax
mov rdi, [r12+1FEC0h]
mov rsi, rbx
mov edx, 0Bh
mov rcx, r13
call qword ptr ds:loc_20790[r12]
mov eax, [rsp+68h+var_64]
mov [r15+0Ch], eax
mov rdi, [r12+1FEC0h]
mov rsi, rbx
mov edx, 0Ch
mov rcx, r13
call qword ptr ds:loc_20790[r12]
mov eax, [rsp+68h+var_64]
mov [r15+10h], eax
mov rdi, [r12+1FEC0h]
mov rsi, rbx
mov edx, 0Dh
mov rcx, r13
call qword ptr ds:loc_20790[r12]
mov eax, [rsp+68h+var_64]
mov [r15+14h], eax
mov rdi, [r12+1FEC0h]
mov rsi, rbx
mov edx, 0Eh
mov rcx, r13
call qword ptr ds:loc_20790[r12]
mov eax, [rsp+68h+var_64]
mov [r15+18h], eax
mov rdi, [r12+1FEC0h]
mov rsi, rbx
mov edx, 0Fh
mov rcx, r13
call qword ptr ds:loc_20790[r12]
mov eax, [rsp+68h+var_64]
mov [r15+1Ch], eax
mov rdi, [r12+1FEC0h]
mov rsi, rbx
mov edx, 10h
mov rcx, r13
call qword ptr ds:loc_20790[r12]
mov eax, [rsp+68h+var_64]
mov [r15+20h], eax
mov rdi, [r12+1FEC0h]
mov rsi, rbx
mov edx, 11h
mov rcx, r13
call qword ptr ds:loc_20790[r12]
mov eax, [rsp+68h+var_64]
mov [r15+24h], eax
mov rdi, [r12+1FEC0h]
mov rsi, rbx
mov edx, 7
mov rcx, r13
call qword ptr ds:loc_20790[r12]
mov eax, [rsp+68h+var_64]
mov [r15+28h], eax
mov rdi, [r12+1FEC0h]
mov rsi, rbx
mov edx, 6
mov rcx, r13
call qword ptr ds:loc_20790[r12]
cmp [rsp+68h+var_64], 0
jz short loc_26CFF
mov dword ptr [r15+2Ch], 1
loc_26CFF:
mov rdi, [r12+1FEC0h]
mov rsi, rbx
mov edx, 5
mov rcx, r13
call qword ptr ds:loc_20790[r12]
cmp [rsp+68h+var_64], 0
jz short loc_26D29
mov dword ptr [r15+38h], 1
loc_26D29:
cmp dword ptr ds:loc_2082C[r12], 0
mov r14d, [rsp+68h+var_4C]
jz short loc_26D5C
mov rdi, [r12+1FEC0h]
mov rsi, rbx
mov edx, 186A1h
mov rcx, r13
call qword ptr ds:loc_20790[r12]
mov eax, [rsp+68h+var_64]
mov [r15+30h], eax
loc_26D5C:
mov eax, [r12+20834h]
or eax, [r12+20830h]
jz short loc_26D91
mov rdi, [r12+1FEC0h]
mov rsi, rbx
mov edx, 20B2h
mov rcx, r13
call qword ptr ds:loc_20790[r12]
mov eax, [rsp+68h+var_64]
mov [r15+34h], eax
loc_26D91:
mov [r15+40h], rbx
inc r14d
mov r15, [rsp+68h+var_38]
loc_26D9D:
inc rbp
movsxd rax, [rsp+68h+var_5C]
cmp rbp, rax
jl loc_26AAF
jmp short loc_26DCA
loc_26DB0:
lea rsi, aGlxNoGlxfbconf; "GLX: No GLXFBConfigs returned"
xor ebx, ebx
mov edi, 10006h
xor eax, eax
call _glfwInputError
jmp short loc_26E07
loc_26DC7:
xor r14d, r14d
loc_26DCA:
mov rdi, [rsp+68h+var_48]
mov rsi, [rsp+68h+var_58]
mov edx, r14d
call _glfwChooseFBConfig
test rax, rax
jz short loc_26DED
mov rcx, [rax+40h]
mov rdx, [rsp+68h+var_40]
mov [rdx], rcx
loc_26DED:
xor ebx, ebx
test rax, rax
setnz bl
mov rdi, r15
call _XFree
mov rdi, [rsp+68h+var_58]
call _free
loc_26E07:
mov eax, ebx
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| _BOOL8 chooseGLXFBConfig(_DWORD *a1, _QWORD *a2)
{
long long v2; // rax
long long v3; // r15
long long v4; // rbp
unsigned int v5; // r14d
long long v6; // rbx
_DWORD *v7; // r15
long long *v8; // rax
long long *v9; // r14
unsigned int v10; // r14d
BOOL v11; // ebx
_DWORD *v12; // rax
int v14; // [rsp+4h] [rbp-64h] BYREF
bool v15; // [rsp+Bh] [rbp-5Dh]
int v16; // [rsp+Ch] [rbp-5Ch] BYREF
_DWORD *v17; // [rsp+10h] [rbp-58h]
unsigned int v18; // [rsp+1Ch] [rbp-4Ch]
_DWORD *v19; // [rsp+20h] [rbp-48h]
_QWORD *v20; // [rsp+28h] [rbp-40h]
long long v21; // [rsp+30h] [rbp-38h]
v19 = a1;
v2 = (*(long long ( **)(_QWORD, long long))&glfw[33254])(*(_QWORD *)&glfw[32688], 1LL);
if ( v2 )
v15 = (unsigned int)strcmp(v2, "Chromium") != 0;
else
v15 = 1;
v3 = (*(long long ( **)(_QWORD, _QWORD, int *))&glfw[33250])(
*(_QWORD *)&glfw[32688],
(unsigned int)glfw[32690],
&v16);
if ( v16 != 0 && v3 != 0 )
{
v20 = a2;
v17 = (_DWORD *)calloc(v16, 72LL);
if ( v16 <= 0 )
{
v5 = 0;
}
else
{
v4 = 0LL;
v5 = 0;
v21 = v3;
do
{
v6 = *(_QWORD *)(v3 + 8 * v4);
(*(void ( **)(_QWORD, long long, long long, int *))((char *)&loc_20790 + (_QWORD)glfw))(
*(_QWORD *)&glfw[32688],
v6,
32785LL,
&v14);
if ( (v14 & 1) != 0 )
{
(*(void ( **)(_QWORD, long long, long long, int *))((char *)&loc_20790 + (_QWORD)glfw))(
*(_QWORD *)&glfw[32688],
v6,
32784LL,
&v14);
if ( (v14 & 1) != 0 || !v15 )
{
v18 = v5;
v7 = &v17[18 * v5];
if ( v19[15] )
{
v8 = (long long *)(*(long long ( **)(_QWORD, long long))&glfw[33270])(*(_QWORD *)&glfw[32688], v6);
if ( v8 )
{
v9 = v8;
v7[15] = glfwIsVisualTransparentX11(*v8);
XFree(v9);
}
}
(*(void ( **)(_QWORD, long long, long long, int *))((char *)&loc_20790 + (_QWORD)glfw))(
*(_QWORD *)&glfw[32688],
v6,
8LL,
&v14);
*v7 = v14;
(*(void ( **)(_QWORD, long long, long long, int *))((char *)&loc_20790 + (_QWORD)glfw))(
*(_QWORD *)&glfw[32688],
v6,
9LL,
&v14);
v7[1] = v14;
(*(void ( **)(_QWORD, long long, long long, int *))((char *)&loc_20790 + (_QWORD)glfw))(
*(_QWORD *)&glfw[32688],
v6,
10LL,
&v14);
v7[2] = v14;
(*(void ( **)(_QWORD, long long, long long, int *))((char *)&loc_20790 + (_QWORD)glfw))(
*(_QWORD *)&glfw[32688],
v6,
11LL,
&v14);
v7[3] = v14;
(*(void ( **)(_QWORD, long long, long long, int *))((char *)&loc_20790 + (_QWORD)glfw))(
*(_QWORD *)&glfw[32688],
v6,
12LL,
&v14);
v7[4] = v14;
(*(void ( **)(_QWORD, long long, long long, int *))((char *)&loc_20790 + (_QWORD)glfw))(
*(_QWORD *)&glfw[32688],
v6,
13LL,
&v14);
v7[5] = v14;
(*(void ( **)(_QWORD, long long, long long, int *))((char *)&loc_20790 + (_QWORD)glfw))(
*(_QWORD *)&glfw[32688],
v6,
14LL,
&v14);
v7[6] = v14;
(*(void ( **)(_QWORD, long long, long long, int *))((char *)&loc_20790 + (_QWORD)glfw))(
*(_QWORD *)&glfw[32688],
v6,
15LL,
&v14);
v7[7] = v14;
(*(void ( **)(_QWORD, long long, long long, int *))((char *)&loc_20790 + (_QWORD)glfw))(
*(_QWORD *)&glfw[32688],
v6,
16LL,
&v14);
v7[8] = v14;
(*(void ( **)(_QWORD, long long, long long, int *))((char *)&loc_20790 + (_QWORD)glfw))(
*(_QWORD *)&glfw[32688],
v6,
17LL,
&v14);
v7[9] = v14;
(*(void ( **)(_QWORD, long long, long long, int *))((char *)&loc_20790 + (_QWORD)glfw))(
*(_QWORD *)&glfw[32688],
v6,
7LL,
&v14);
v7[10] = v14;
(*(void ( **)(_QWORD, long long, long long, int *))((char *)&loc_20790 + (_QWORD)glfw))(
*(_QWORD *)&glfw[32688],
v6,
6LL,
&v14);
if ( v14 )
v7[11] = 1;
(*(void ( **)(_QWORD, long long, long long, int *))((char *)&loc_20790 + (_QWORD)glfw))(
*(_QWORD *)&glfw[32688],
v6,
5LL,
&v14);
if ( v14 )
v7[14] = 1;
v10 = v18;
if ( *(_DWORD *)((char *)&loc_2082C + (_QWORD)glfw) )
{
(*(void ( **)(_QWORD, long long, long long, int *))((char *)&loc_20790 + (_QWORD)glfw))(
*(_QWORD *)&glfw[32688],
v6,
100001LL,
&v14);
v7[12] = v14;
}
if ( *(_QWORD *)&glfw[33292] )
{
(*(void ( **)(_QWORD, long long, long long, int *))((char *)&loc_20790 + (_QWORD)glfw))(
*(_QWORD *)&glfw[32688],
v6,
8370LL,
&v14);
v7[13] = v14;
}
*((_QWORD *)v7 + 8) = v6;
v5 = v10 + 1;
v3 = v21;
}
}
++v4;
}
while ( v4 < v16 );
}
v12 = glfwChooseFBConfig(v19, v17, v5);
if ( v12 )
*v20 = *((_QWORD *)v12 + 8);
v11 = v12 != 0LL;
XFree(v3);
free(v17);
}
else
{
v11 = 0;
glfwInputError(0x10006u, (long long)"GLX: No GLXFBConfigs returned");
}
return v11;
}
| chooseGLXFBConfig:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R14,RSI
MOV qword ptr [RSP + 0x20],RDI
LEA R12,[0x1a4638]
MOV RDI,qword ptr [R12 + 0x1fec0]
MOV ESI,0x1
CALL qword ptr [R12 + 0x20798]
TEST RAX,RAX
JZ 0x00126a41
LEA RSI,[0x183404]
MOV RDI,RAX
CALL 0x0010cb50
TEST EAX,EAX
SETNZ byte ptr [RSP + 0xb]
JMP 0x00126a46
LAB_00126a41:
MOV byte ptr [RSP + 0xb],0x1
LAB_00126a46:
MOV RDI,qword ptr [R12 + 0x1fec0]
MOV ESI,dword ptr [R12 + 0x1fec8]
LEA RBX,[RSP + 0xc]
MOV RDX,RBX
CALL qword ptr [R12 + 0x20788]
MOV R15,RAX
TEST RAX,RAX
SETNZ CL
MOV EAX,dword ptr [RBX]
TEST EAX,EAX
SETNZ DL
TEST CL,DL
JZ 0x00126db0
MOV qword ptr [RSP + 0x28],R14
MOVSXD RDI,EAX
MOV ESI,0x48
CALL 0x0010c550
MOV qword ptr [RSP + 0x10],RAX
CMP dword ptr [RSP + 0xc],0x0
JLE 0x00126dc7
XOR EBP,EBP
LEA R13,[RSP + 0x4]
XOR R14D,R14D
MOV qword ptr [RSP + 0x30],R15
LAB_00126aaf:
MOV RBX,qword ptr [R15 + RBP*0x8]
MOV RDI,qword ptr [R12 + 0x1fec0]
MOV RSI,RBX
MOV EDX,0x8011
MOV RCX,R13
CALL qword ptr [R12 + 0x20790]
TEST byte ptr [RSP + 0x4],0x1
JZ 0x00126d9d
MOV RDI,qword ptr [R12 + 0x1fec0]
MOV RSI,RBX
MOV EDX,0x8010
MOV RCX,R13
CALL qword ptr [R12 + 0x20790]
TEST byte ptr [RSP + 0x4],0x1
SETZ AL
TEST byte ptr [RSP + 0xb],AL
JNZ 0x00126d9d
MOV dword ptr [RSP + 0x1c],R14D
MOVSXD RAX,R14D
LEA RAX,[RAX + RAX*0x8]
MOV RCX,qword ptr [RSP + 0x10]
LEA R15,[RCX + RAX*0x8]
MOV RAX,qword ptr [RSP + 0x20]
CMP dword ptr [RAX + 0x3c],0x0
JZ 0x00126b55
MOV RDI,qword ptr [R12 + 0x1fec0]
MOV RSI,RBX
CALL qword ptr [R12 + 0x207d8]
TEST RAX,RAX
JZ 0x00126b55
MOV R14,RAX
MOV RDI,qword ptr [RAX]
CALL 0x001217d2
MOV dword ptr [R15 + 0x3c],EAX
MOV RDI,R14
CALL 0x0010cac0
LAB_00126b55:
MOV RDI,qword ptr [R12 + 0x1fec0]
MOV RSI,RBX
MOV EDX,0x8
MOV RCX,R13
CALL qword ptr [R12 + 0x20790]
MOV EAX,dword ptr [RSP + 0x4]
MOV dword ptr [R15],EAX
MOV RDI,qword ptr [R12 + 0x1fec0]
MOV RSI,RBX
MOV EDX,0x9
MOV RCX,R13
CALL qword ptr [R12 + 0x20790]
MOV EAX,dword ptr [RSP + 0x4]
MOV dword ptr [R15 + 0x4],EAX
MOV RDI,qword ptr [R12 + 0x1fec0]
MOV RSI,RBX
MOV EDX,0xa
MOV RCX,R13
CALL qword ptr [R12 + 0x20790]
MOV EAX,dword ptr [RSP + 0x4]
MOV dword ptr [R15 + 0x8],EAX
MOV RDI,qword ptr [R12 + 0x1fec0]
MOV RSI,RBX
MOV EDX,0xb
MOV RCX,R13
CALL qword ptr [R12 + 0x20790]
MOV EAX,dword ptr [RSP + 0x4]
MOV dword ptr [R15 + 0xc],EAX
MOV RDI,qword ptr [R12 + 0x1fec0]
MOV RSI,RBX
MOV EDX,0xc
MOV RCX,R13
CALL qword ptr [R12 + 0x20790]
MOV EAX,dword ptr [RSP + 0x4]
MOV dword ptr [R15 + 0x10],EAX
MOV RDI,qword ptr [R12 + 0x1fec0]
MOV RSI,RBX
MOV EDX,0xd
MOV RCX,R13
CALL qword ptr [R12 + 0x20790]
MOV EAX,dword ptr [RSP + 0x4]
MOV dword ptr [R15 + 0x14],EAX
MOV RDI,qword ptr [R12 + 0x1fec0]
MOV RSI,RBX
MOV EDX,0xe
MOV RCX,R13
CALL qword ptr [R12 + 0x20790]
MOV EAX,dword ptr [RSP + 0x4]
MOV dword ptr [R15 + 0x18],EAX
MOV RDI,qword ptr [R12 + 0x1fec0]
MOV RSI,RBX
MOV EDX,0xf
MOV RCX,R13
CALL qword ptr [R12 + 0x20790]
MOV EAX,dword ptr [RSP + 0x4]
MOV dword ptr [R15 + 0x1c],EAX
MOV RDI,qword ptr [R12 + 0x1fec0]
MOV RSI,RBX
MOV EDX,0x10
MOV RCX,R13
CALL qword ptr [R12 + 0x20790]
MOV EAX,dword ptr [RSP + 0x4]
MOV dword ptr [R15 + 0x20],EAX
MOV RDI,qword ptr [R12 + 0x1fec0]
MOV RSI,RBX
MOV EDX,0x11
MOV RCX,R13
CALL qword ptr [R12 + 0x20790]
MOV EAX,dword ptr [RSP + 0x4]
MOV dword ptr [R15 + 0x24],EAX
MOV RDI,qword ptr [R12 + 0x1fec0]
MOV RSI,RBX
MOV EDX,0x7
MOV RCX,R13
CALL qword ptr [R12 + 0x20790]
MOV EAX,dword ptr [RSP + 0x4]
MOV dword ptr [R15 + 0x28],EAX
MOV RDI,qword ptr [R12 + 0x1fec0]
MOV RSI,RBX
MOV EDX,0x6
MOV RCX,R13
CALL qword ptr [R12 + 0x20790]
CMP dword ptr [RSP + 0x4],0x0
JZ 0x00126cff
MOV dword ptr [R15 + 0x2c],0x1
LAB_00126cff:
MOV RDI,qword ptr [R12 + 0x1fec0]
MOV RSI,RBX
MOV EDX,0x5
MOV RCX,R13
CALL qword ptr [R12 + 0x20790]
CMP dword ptr [RSP + 0x4],0x0
JZ 0x00126d29
MOV dword ptr [R15 + 0x38],0x1
LAB_00126d29:
CMP dword ptr [R12 + 0x2082c],0x0
MOV R14D,dword ptr [RSP + 0x1c]
JZ 0x00126d5c
MOV RDI,qword ptr [R12 + 0x1fec0]
MOV RSI,RBX
MOV EDX,0x186a1
MOV RCX,R13
CALL qword ptr [R12 + 0x20790]
MOV EAX,dword ptr [RSP + 0x4]
MOV dword ptr [R15 + 0x30],EAX
LAB_00126d5c:
MOV EAX,dword ptr [R12 + 0x20834]
OR EAX,dword ptr [R12 + 0x20830]
JZ 0x00126d91
MOV RDI,qword ptr [R12 + 0x1fec0]
MOV RSI,RBX
MOV EDX,0x20b2
MOV RCX,R13
CALL qword ptr [R12 + 0x20790]
MOV EAX,dword ptr [RSP + 0x4]
MOV dword ptr [R15 + 0x34],EAX
LAB_00126d91:
MOV qword ptr [R15 + 0x40],RBX
INC R14D
MOV R15,qword ptr [RSP + 0x30]
LAB_00126d9d:
INC RBP
MOVSXD RAX,dword ptr [RSP + 0xc]
CMP RBP,RAX
JL 0x00126aaf
JMP 0x00126dca
LAB_00126db0:
LEA RSI,[0x18340d]
XOR EBX,EBX
MOV EDI,0x10006
XOR EAX,EAX
CALL 0x00119081
JMP 0x00126e07
LAB_00126dc7:
XOR R14D,R14D
LAB_00126dca:
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RSP + 0x10]
MOV EDX,R14D
CALL 0x001186c0
TEST RAX,RAX
JZ 0x00126ded
MOV RCX,qword ptr [RAX + 0x40]
MOV RDX,qword ptr [RSP + 0x28]
MOV qword ptr [RDX],RCX
LAB_00126ded:
XOR EBX,EBX
TEST RAX,RAX
SETNZ BL
MOV RDI,R15
CALL 0x0010cac0
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x0010ca50
LAB_00126e07:
MOV EAX,EBX
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
bool chooseGLXFBConfig(long param_1,int8 *param_2)
{
uint *puVar1;
int8 uVar2;
int iVar3;
uint uVar4;
char *__s1;
long lVar5;
int8 *puVar6;
long lVar7;
bool bVar8;
uint local_64;
bool local_5d;
int local_5c;
void *local_58;
int local_4c;
long local_48;
int8 *local_40;
long local_38;
local_48 = param_1;
__s1 = (char *)(*DAT_001c4dd0)(DAT_001c44f8,1);
if (__s1 == (char *)0x0) {
local_5d = true;
}
else {
iVar3 = strcmp(__s1,"Chromium");
local_5d = iVar3 != 0;
}
lVar5 = (*DAT_001c4dc0)(DAT_001c44f8,DAT_001c4500,&local_5c);
if (lVar5 == 0 || local_5c == 0) {
bVar8 = false;
_glfwInputError(0x10006,"GLX: No GLXFBConfigs returned");
}
else {
local_40 = param_2;
local_58 = calloc((long)local_5c,0x48);
if (local_5c < 1) {
iVar3 = 0;
}
else {
lVar7 = 0;
iVar3 = 0;
local_38 = lVar5;
do {
uVar2 = *(int8 *)(lVar5 + lVar7 * 8);
(*DAT_001c4dc8)(DAT_001c44f8,uVar2,0x8011,&local_64);
if (((local_64 & 1) != 0) &&
((*DAT_001c4dc8)(DAT_001c44f8,uVar2,0x8010,&local_64),
(local_5d & (local_64 & 1) == 0) == 0)) {
puVar1 = (uint *)((long)local_58 + (long)iVar3 * 0x48);
local_4c = iVar3;
if ((*(int *)(local_48 + 0x3c) != 0) &&
(puVar6 = (int8 *)(*DAT_001c4e10)(DAT_001c44f8,uVar2),
puVar6 != (int8 *)0x0)) {
uVar4 = _glfwIsVisualTransparentX11(*puVar6);
puVar1[0xf] = uVar4;
XFree(puVar6);
}
(*DAT_001c4dc8)(DAT_001c44f8,uVar2,8,&local_64);
*puVar1 = local_64;
(*DAT_001c4dc8)(DAT_001c44f8,uVar2,9,&local_64);
puVar1[1] = local_64;
(*DAT_001c4dc8)(DAT_001c44f8,uVar2,10,&local_64);
puVar1[2] = local_64;
(*DAT_001c4dc8)(DAT_001c44f8,uVar2,0xb,&local_64);
puVar1[3] = local_64;
(*DAT_001c4dc8)(DAT_001c44f8,uVar2,0xc,&local_64);
puVar1[4] = local_64;
(*DAT_001c4dc8)(DAT_001c44f8,uVar2,0xd,&local_64);
puVar1[5] = local_64;
(*DAT_001c4dc8)(DAT_001c44f8,uVar2,0xe,&local_64);
puVar1[6] = local_64;
(*DAT_001c4dc8)(DAT_001c44f8,uVar2,0xf,&local_64);
puVar1[7] = local_64;
(*DAT_001c4dc8)(DAT_001c44f8,uVar2,0x10,&local_64);
puVar1[8] = local_64;
(*DAT_001c4dc8)(DAT_001c44f8,uVar2,0x11,&local_64);
puVar1[9] = local_64;
(*DAT_001c4dc8)(DAT_001c44f8,uVar2,7,&local_64);
puVar1[10] = local_64;
(*DAT_001c4dc8)(DAT_001c44f8,uVar2,6,&local_64);
if (local_64 != 0) {
puVar1[0xb] = 1;
}
(*DAT_001c4dc8)(DAT_001c44f8,uVar2,5,&local_64);
iVar3 = local_4c;
if (local_64 != 0) {
puVar1[0xe] = 1;
}
if (DAT_001c4e64 != 0) {
(*DAT_001c4dc8)(DAT_001c44f8,uVar2,0x186a1,&local_64);
puVar1[0xc] = local_64;
}
if (DAT_001c4e6c != 0 || DAT_001c4e68 != 0) {
(*DAT_001c4dc8)(DAT_001c44f8,uVar2,0x20b2,&local_64);
puVar1[0xd] = local_64;
}
*(int8 *)(puVar1 + 0x10) = uVar2;
iVar3 = iVar3 + 1;
lVar5 = local_38;
}
lVar7 = lVar7 + 1;
} while (lVar7 < local_5c);
}
lVar7 = _glfwChooseFBConfig(local_48,local_58,iVar3);
if (lVar7 != 0) {
*local_40 = *(int8 *)(lVar7 + 0x40);
}
bVar8 = lVar7 != 0;
XFree(lVar5);
free(local_58);
}
return bVar8;
}
| |
27,029 | 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::__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>>>::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::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>>, unsigned long) | monkey531[P]llama/common/json.hpp | explicit iteration_proxy_value(IteratorType it, std::size_t array_index_ = 0)
noexcept(std::is_nothrow_move_constructible<IteratorType>::value
&& std::is_nothrow_default_constructible<string_type>::value)
: anchor(std::move(it))
, array_index(array_index_)
{} | O1 | cpp | 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::__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>>>::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::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>>, unsigned long):
pushq %rbx
movq %rdi, %rbx
movups (%rsi), %xmm0
movups 0x10(%rsi), %xmm1
movups %xmm1, 0x10(%rdi)
movups %xmm0, (%rdi)
movq %rdx, 0x20(%rdi)
movq $0x0, 0x28(%rdi)
addq $0x30, %rdi
leaq 0x40(%rbx), %rax
movq %rax, 0x30(%rbx)
leaq 0x3dacc(%rip), %rsi # 0xf4747
leaq 0x3dac6(%rip), %rdx # 0xf4748
callq 0x22ba6
leaq 0x60(%rbx), %rax
movq %rax, 0x50(%rbx)
movq $0x0, 0x58(%rbx)
movb $0x0, 0x60(%rbx)
popq %rbx
retq
movq %rax, %rdi
callq 0x229a1
nop
| _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEEC2ESI_m:
push rbx
mov rbx, rdi
movups xmm0, xmmword ptr [rsi]
movups xmm1, xmmword ptr [rsi+10h]
movups xmmword ptr [rdi+10h], xmm1
movups xmmword ptr [rdi], xmm0
mov [rdi+20h], rdx
mov qword ptr [rdi+28h], 0
add rdi, 30h ; '0'
lea rax, [rbx+40h]
mov [rbx+30h], rax
lea rsi, aMinExp0+0Ah; "0"
lea rdx, aMinExp0+0Bh; ""
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)
lea rax, [rbx+60h]
mov [rbx+50h], rax
mov qword ptr [rbx+58h], 0
mov byte ptr [rbx+60h], 0
pop rbx
retn
mov rdi, rax
call __clang_call_terminate
| long long 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(
long long a1,
__int128 *a2,
long long a3)
{
__int128 v3; // xmm0
long long result; // rax
v3 = *a2;
*(_OWORD *)(a1 + 16) = a2[1];
*(_OWORD *)a1 = v3;
*(_QWORD *)(a1 + 32) = a3;
*(_QWORD *)(a1 + 40) = 0LL;
*(_QWORD *)(a1 + 48) = a1 + 64;
std::string::_M_construct<char const*>((_QWORD *)(a1 + 48), "0", (long long)"");
result = a1 + 96;
*(_QWORD *)(a1 + 80) = a1 + 96;
*(_QWORD *)(a1 + 88) = 0LL;
*(_BYTE *)(a1 + 96) = 0;
return result;
}
| iteration_proxy_value:
PUSH RBX
MOV RBX,RDI
MOVUPS XMM0,xmmword ptr [RSI]
MOVUPS XMM1,xmmword ptr [RSI + 0x10]
MOVUPS xmmword ptr [RDI + 0x10],XMM1
MOVUPS xmmword ptr [RDI],XMM0
MOV qword ptr [RDI + 0x20],RDX
MOV qword ptr [RDI + 0x28],0x0
ADD RDI,0x30
LEA RAX,[RBX + 0x40]
MOV qword ptr [RBX + 0x30],RAX
LAB_001b6c74:
LEA RSI,[0x1f4747]
LEA RDX,[0x1f4748]
CALL 0x00122ba6
LEA RAX,[RBX + 0x60]
MOV qword ptr [RBX + 0x50],RAX
MOV qword ptr [RBX + 0x58],0x0
MOV byte ptr [RBX + 0x60],0x0
POP RBX
RET
|
/* 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::__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(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>, unsigned long) */
void __thiscall
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::__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
(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>>
*this,int4 *param_2,int8 param_3)
{
int4 uVar1;
int4 uVar2;
int4 uVar3;
int4 uVar4;
int4 uVar5;
int4 uVar6;
int4 uVar7;
uVar1 = *param_2;
uVar2 = param_2[1];
uVar3 = param_2[2];
uVar4 = param_2[3];
uVar5 = param_2[5];
uVar6 = param_2[6];
uVar7 = param_2[7];
*(int4 *)(this + 0x10) = param_2[4];
*(int4 *)(this + 0x14) = uVar5;
*(int4 *)(this + 0x18) = uVar6;
*(int4 *)(this + 0x1c) = uVar7;
*(int4 *)this = uVar1;
*(int4 *)(this + 4) = uVar2;
*(int4 *)(this + 8) = uVar3;
*(int4 *)(this + 0xc) = uVar4;
*(int8 *)(this + 0x20) = param_3;
*(int8 *)(this + 0x28) = 0;
*(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>>
**)(this + 0x30) = this + 0x40;
/* try { // try from 001b6c74 to 001b6c86 has its CatchHandler @ 001b6c9d */
std::__cxx11::string::_M_construct<char_const*>(this + 0x30,"0","");
*(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>>
**)(this + 0x50) = this + 0x60;
*(int8 *)(this + 0x58) = 0;
this[0x60] = (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>>
)0x0;
return;
}
| |
27,030 | 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::__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>>>::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::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>>, unsigned long) | monkey531[P]llama/common/json.hpp | explicit iteration_proxy_value(IteratorType it, std::size_t array_index_ = 0)
noexcept(std::is_nothrow_move_constructible<IteratorType>::value
&& std::is_nothrow_default_constructible<string_type>::value)
: anchor(std::move(it))
, array_index(array_index_)
{} | O2 | cpp | 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::__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>>>::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::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>>, unsigned long):
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movups (%rsi), %xmm0
movups 0x10(%rsi), %xmm1
movups %xmm1, 0x10(%rdi)
movups %xmm0, (%rdi)
movq %rdx, 0x20(%rdi)
andq $0x0, 0x28(%rdi)
addq $0x30, %rdi
leaq 0x30237(%rip), %rsi # 0xb5773
leaq 0xf(%rsp), %rdx
callq 0x275c8
leaq 0x60(%rbx), %rax
movq %rax, 0x50(%rbx)
andq $0x0, 0x58(%rbx)
movb $0x0, 0x60(%rbx)
addq $0x10, %rsp
popq %rbx
retq
movq %rax, %rdi
callq 0x27867
nop
| _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEEC2ESI_m:
push rbx
sub rsp, 10h
mov rbx, rdi
movups xmm0, xmmword ptr [rsi]
movups xmm1, xmmword ptr [rsi+10h]
movups xmmword ptr [rdi+10h], xmm1
movups xmmword ptr [rdi], xmm0
mov [rdi+20h], rdx
and qword ptr [rdi+28h], 0
add rdi, 30h ; '0'
lea rsi, aMinExp0+0Ah; "0"
lea rdx, [rsp+18h+var_9]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rax, [rbx+60h]
mov [rbx+50h], rax
and qword ptr [rbx+58h], 0
mov byte ptr [rbx+60h], 0
add rsp, 10h
pop rbx
retn
mov rdi, rax
call __clang_call_terminate
| long long 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(
long long a1,
__int128 *a2,
long long a3)
{
__int128 v3; // xmm0
long long result; // rax
v3 = *a2;
*(_OWORD *)(a1 + 16) = a2[1];
*(_OWORD *)a1 = v3;
*(_QWORD *)(a1 + 32) = a3;
*(_QWORD *)(a1 + 40) = 0LL;
std::string::basic_string<std::allocator<char>>((_QWORD *)(a1 + 48), (long long)"0");
result = a1 + 96;
*(_QWORD *)(a1 + 80) = a1 + 96;
*(_QWORD *)(a1 + 88) = 0LL;
*(_BYTE *)(a1 + 96) = 0;
return result;
}
| iteration_proxy_value:
PUSH RBX
SUB RSP,0x10
MOV RBX,RDI
MOVUPS XMM0,xmmword ptr [RSI]
MOVUPS XMM1,xmmword ptr [RSI + 0x10]
MOVUPS xmmword ptr [RDI + 0x10],XMM1
MOVUPS xmmword ptr [RDI],XMM0
MOV qword ptr [RDI + 0x20],RDX
AND qword ptr [RDI + 0x28],0x0
ADD RDI,0x30
LAB_00185535:
LEA RSI,[0x1b5773]
LEA RDX,[RSP + 0xf]
CALL 0x001275c8
LEA RAX,[RBX + 0x60]
MOV qword ptr [RBX + 0x50],RAX
AND qword ptr [RBX + 0x58],0x0
MOV byte ptr [RBX + 0x60],0x0
ADD RSP,0x10
POP RBX
RET
|
/* 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::__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(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>, unsigned long) */
void __thiscall
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::__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
(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>>
*this,int8 *param_2,int8 param_3)
{
int8 uVar1;
int8 uVar2;
int8 uVar3;
allocator local_9;
uVar1 = *param_2;
uVar2 = param_2[1];
uVar3 = param_2[3];
*(int8 *)(this + 0x10) = param_2[2];
*(int8 *)(this + 0x18) = uVar3;
*(int8 *)this = uVar1;
*(int8 *)(this + 8) = uVar2;
*(int8 *)(this + 0x20) = param_3;
*(int8 *)(this + 0x28) = 0;
/* try { // try from 00185535 to 00185545 has its CatchHandler @ 0018555d */
std::__cxx11::string::string<std::allocator<char>>((string *)(this + 0x30),"0",&local_9);
*(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>>
**)(this + 0x50) = this + 0x60;
*(int8 *)(this + 0x58) = 0;
this[0x60] = (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>>
)0x0;
return;
}
| |
27,031 | evmone::baseline::(anonymous namespace)::Position evmone::baseline::(anonymous namespace)::invoke<(evmone::Opcode)224>(std::array<short, 256ul> const&, intx::uint<256u> const*, evmone::baseline::(anonymous namespace)::Position, long&, evmone::ExecutionState&) | corpus-core[P]colibri-stateless/build_O2/_deps/evmone_external-src/lib/evmone/baseline_execution.cpp | inline evmc_status_code check_requirements(const CostTable& cost_table, int64_t& gas_left,
const uint256* stack_top, const uint256* stack_bottom) noexcept
{
static_assert(
!instr::has_const_gas_cost(Op) || instr::gas_costs[EVMC_FRONTIER][Op] != instr::undefined,
"undefined instructions must not be handled by check_requirements()");
auto gas_cost = instr::gas_costs[EVMC_FRONTIER][Op]; // Init assuming const cost.
if constexpr (!instr::has_const_gas_cost(Op))
{
gas_cost = cost_table[Op]; // If not, load the cost from the table.
// Negative cost marks an undefined instruction.
// This check must be first to produce correct error code.
if (INTX_UNLIKELY(gas_cost < 0))
return EVMC_UNDEFINED_INSTRUCTION;
}
// Check stack requirements first. This is order is not required,
// but it is nicer because complete gas check may need to inspect operands.
if constexpr (instr::traits[Op].stack_height_change > 0)
{
static_assert(instr::traits[Op].stack_height_change == 1,
"unexpected instruction with multiple results");
if (INTX_UNLIKELY(stack_top == stack_bottom + StackSpace::limit))
return EVMC_STACK_OVERFLOW;
}
if constexpr (instr::traits[Op].stack_height_required > 0)
{
// Check stack underflow using pointer comparison <= (better optimization).
static constexpr auto min_offset = instr::traits[Op].stack_height_required - 1;
if (INTX_UNLIKELY(stack_top <= stack_bottom + min_offset))
return EVMC_STACK_UNDERFLOW;
}
if (INTX_UNLIKELY((gas_left -= gas_cost) < 0))
return EVMC_OUT_OF_GAS;
return EVMC_SUCCESS;
} | O2 | cpp | evmone::baseline::(anonymous namespace)::Position evmone::baseline::(anonymous namespace)::invoke<(evmone::Opcode)224>(std::array<short, 256ul> const&, intx::uint<256u> const*, evmone::baseline::(anonymous namespace)::Position, long&, evmone::ExecutionState&):
movswq 0x1c0(%rdi), %rax
testq %rax, %rax
js 0x3704f
subq %rax, (%rcx)
js 0x37053
movzbl 0x2(%rsi), %eax
movzbl 0x1(%rsi), %ecx
shll $0x8, %ecx
movswq %cx, %rcx
orq %rax, %rcx
leaq (%rsi,%rcx), %rax
addq $0x3, %rax
retq
pushq $0x5
jmp 0x37055
pushq $0x3
popq %rax
movl %eax, 0x78(%r8)
xorl %eax, %eax
retq
| _ZN6evmone8baseline12_GLOBAL__N_16invokeILNS_6OpcodeE224EEENS1_8PositionERKSt5arrayIsLm256EEPKN4intx4uintILj256EEES4_RlRNS_14ExecutionStateE:
movsx rax, word ptr [rdi+1C0h]
test rax, rax
js short loc_3704F
sub [rcx], rax
js short loc_37053
movzx eax, byte ptr [rsi+2]
movzx ecx, byte ptr [rsi+1]
shl ecx, 8
movsx rcx, cx
or rcx, rax
lea rax, [rsi+rcx]
add rax, 3
retn
loc_3704F:
push 5
jmp short loc_37055
loc_37053:
push 3
loc_37055:
pop rax
mov [r8+78h], eax
xor eax, eax
retn
| unsigned long long evmone::baseline::`anonymous namespace'::invoke<(evmone::Opcode)224>(
long long a1,
long long a2,
long long a3,
_QWORD *a4,
long long a5)
{
long long v5; // rax
bool v6; // sf
int v8; // [rsp-8h] [rbp-8h]
v5 = *(__int16 *)(a1 + 448);
if ( v5 < 0 )
{
v8 = 5;
}
else
{
v6 = *a4 - v5 < 0;
*a4 -= v5;
if ( !v6 )
return a2 + (*(unsigned __int8 *)(a2 + 2) | (unsigned long long)(__int16)(*(unsigned __int8 *)(a2 + 1) << 8)) + 3;
v8 = 3;
}
*(_DWORD *)(a5 + 120) = v8;
return 0LL;
}
| invoke<(evmone::Opcode)224>:
MOVSX RAX,word ptr [RDI + 0x1c0]
TEST RAX,RAX
JS 0x0013704f
SUB qword ptr [RCX],RAX
JS 0x00137053
MOVZX EAX,byte ptr [RSI + 0x2]
MOVZX ECX,byte ptr [RSI + 0x1]
SHL ECX,0x8
MOVSX RCX,CX
OR RCX,RAX
LEA RAX,[RSI + RCX*0x1]
ADD RAX,0x3
RET
LAB_0013704f:
PUSH 0x5
JMP 0x00137055
LAB_00137053:
PUSH 0x3
LAB_00137055:
POP RAX
MOV dword ptr [R8 + 0x78],EAX
XOR EAX,EAX
RET
|
/* evmone::baseline::(anonymous namespace)::Position evmone::baseline::(anonymous
namespace)::invoke<(evmone::Opcode)224>(std::array<short, 256ul> const&, intx::uint<256u> const*,
evmone::baseline::(anonymous namespace)::Position, long&, evmone::ExecutionState&) */
long evmone::baseline::(anonymous_namespace)::invoke<(evmone::Opcode)224>
(long param_1,long param_2,int8 param_3,long *param_4,long param_5)
{
int4 uVar1;
if ((long)*(short *)(param_1 + 0x1c0) < 0) {
uVar1 = 5;
}
else {
*param_4 = *param_4 - (long)*(short *)(param_1 + 0x1c0);
if (-1 < *param_4) {
return param_2 + ((long)(short)((ushort)*(byte *)(param_2 + 1) << 8) |
(ulong)*(byte *)(param_2 + 2)) + 3;
}
uVar1 = 3;
}
*(int4 *)(param_5 + 0x78) = uVar1;
return 0;
}
| |
27,032 | mark_all_entries | eloqsql/storage/myisam/rt_split.c | static void mark_all_entries(SplitStruct *node, int n_entries, int n_group)
{
SplitStruct *cur = node;
SplitStruct *end = node + n_entries;
for (; cur<end; ++cur)
{
if (cur->n_node)
{
continue;
}
cur->n_node = n_group;
}
} | O0 | c | mark_all_entries:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0xd70f7
movq -0x18(%rbp), %rax
cmpl $0x0, 0x8(%rax)
je 0xd70df
jmp 0xd70e9
movl -0x10(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x18(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x18(%rbp)
jmp 0xd70c9
popq %rbp
retq
nopl (%rax)
| mark_all_entries_0:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_10], edx
mov rax, [rbp+var_8]
mov [rbp+var_18], rax
mov rax, [rbp+var_8]
movsxd rcx, [rbp+var_C]
shl rcx, 5
add rax, rcx
mov [rbp+var_20], rax
loc_D70C9:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jnb short loc_D70F7
mov rax, [rbp+var_18]
cmp dword ptr [rax+8], 0
jz short loc_D70DF
jmp short loc_D70E9
loc_D70DF:
mov ecx, [rbp+var_10]
mov rax, [rbp+var_18]
mov [rax+8], ecx
loc_D70E9:
mov rax, [rbp+var_18]
add rax, 20h ; ' '
mov [rbp+var_18], rax
jmp short loc_D70C9
loc_D70F7:
pop rbp
retn
| unsigned long long mark_all_entries_0(unsigned long long a1, int a2, int a3)
{
unsigned long long result; // rax
unsigned long long i; // [rsp+8h] [rbp-18h]
for ( i = a1; ; i += 32LL )
{
result = i;
if ( i >= 32LL * a2 + a1 )
break;
if ( !*(_DWORD *)(i + 8) )
*(_DWORD *)(i + 8) = a3;
}
return result;
}
| mark_all_entries:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV dword ptr [RBP + -0x10],EDX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOVSXD RCX,dword ptr [RBP + -0xc]
SHL RCX,0x5
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
LAB_001d70c9:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x001d70f7
MOV RAX,qword ptr [RBP + -0x18]
CMP dword ptr [RAX + 0x8],0x0
JZ 0x001d70df
JMP 0x001d70e9
LAB_001d70df:
MOV ECX,dword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x8],ECX
LAB_001d70e9:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x20
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001d70c9
LAB_001d70f7:
POP RBP
RET
|
void mark_all_entries(ulong param_1,int param_2,int4 param_3)
{
int8 local_20;
for (local_20 = param_1; local_20 < param_1 + (long)param_2 * 0x20; local_20 = local_20 + 0x20) {
if (*(int *)(local_20 + 8) == 0) {
*(int4 *)(local_20 + 8) = param_3;
}
}
return;
}
| |
27,033 | testing::TestInfo* testing::RegisterTest<testing::internal::InsertSyntheticTestCase(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, testing::internal::CodeLocation, bool)::$_0>(char const*, char const*, char const*, char const*, char const*, int, testing::internal::InsertSyntheticTestCase(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, testing::internal::CodeLocation, bool)::$_0)::FactoryImpl::~FactoryImpl() | giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/include/gtest/gtest.h | Test* CreateTest() override { return factory_(); } | O1 | c | testing::TestInfo* testing::RegisterTest<testing::internal::InsertSyntheticTestCase(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, testing::internal::CodeLocation, bool)::$_0>(char const*, char const*, char const*, char const*, char const*, int, testing::internal::InsertSyntheticTestCase(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, testing::internal::CodeLocation, bool)::$_0)::FactoryImpl::~FactoryImpl():
pushq %rbx
movq %rdi, %rbx
leaq 0x27f2d(%rip), %rax # 0x587c0
movq %rax, (%rdi)
movq 0x28(%rdi), %rdi
leaq 0x38(%rbx), %rax
cmpq %rax, %rdi
je 0x308ae
movq (%rax), %rsi
incq %rsi
callq 0x84e0
movq 0x8(%rbx), %rdi
addq $0x18, %rbx
cmpq %rbx, %rdi
je 0x308c7
movq (%rbx), %rsi
incq %rsi
popq %rbx
jmp 0x84e0
popq %rbx
retq
nop
| _ZZN7testing12RegisterTestITpTnRiJEZNS_8internal23InsertSyntheticTestCaseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS2_12CodeLocationEbE3$_0EEPNS_8TestInfoEPKcSG_SG_SG_SG_iT0_EN11FactoryImplD2Ev:
push rbx
mov rbx, rdi
lea rax, off_587C0
mov [rdi], rax
mov rdi, [rdi+28h]; void *
lea rax, [rbx+38h]
cmp rdi, rax
jz short loc_308AE
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_308AE:
mov rdi, [rbx+8]; void *
add rbx, 18h
cmp rdi, rbx
jz short loc_308C7
mov rsi, [rbx]
inc rsi; unsigned __int64
pop rbx
jmp __ZdlPvm; operator delete(void *,ulong)
loc_308C7:
pop rbx
retn
| void ZZN7testing12RegisterTestITpTnRiJEZNS_8internal23InsertSyntheticTestCaseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS2_12CodeLocationEbE3__0EEPNS_8TestInfoEPKcSG_SG_SG_SG_iT0_EN11FactoryImplD2Ev(
_QWORD *a1)
{
_QWORD *v2; // rdi
_QWORD *v3; // rdi
_QWORD *v4; // rbx
*a1 = &off_587C0;
v2 = (_QWORD *)a1[5];
if ( v2 != a1 + 7 )
operator delete(v2, a1[7] + 1LL);
v3 = (_QWORD *)a1[1];
v4 = a1 + 3;
if ( v3 != v4 )
operator delete(v3, *v4 + 1LL);
}
| _ZZN7testing12RegisterTestITpTnRiJEZNS_8internal23InsertSyntheticTestCaseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS2_12CodeLocationEbE3$_0EEPNS_8TestInfoEPKcSG_SG_SG_SG_iT0_EN11FactoryImplD2Ev:
PUSH RBX
MOV RBX,RDI
LEA RAX,[0x1587c0]
MOV qword ptr [RDI],RAX
MOV RDI,qword ptr [RDI + 0x28]
LEA RAX,[RBX + 0x38]
CMP RDI,RAX
JZ 0x001308ae
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x001084e0
LAB_001308ae:
MOV RDI,qword ptr [RBX + 0x8]
ADD RBX,0x18
CMP RDI,RBX
JZ 0x001308c7
MOV RSI,qword ptr [RBX]
INC RSI
POP RBX
JMP 0x001084e0
LAB_001308c7:
POP RBX
RET
|
void _ZZN7testing12RegisterTestITpTnRiJEZNS_8internal23InsertSyntheticTestCaseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS2_12CodeLocationEbE3__0EEPNS_8TestInfoEPKcSG_SG_SG_SG_iT0_EN11FactoryImplD2Ev
(int8 *param_1)
{
*param_1 = 0x1587c0;
if ((long *)param_1[5] != param_1 + 7) {
operator_delete((long *)param_1[5],param_1[7] + 1);
}
if ((long *)param_1[1] != param_1 + 3) {
operator_delete((long *)param_1[1],param_1[3] + 1);
return;
}
return;
}
| |
27,034 | init_queue | eloqsql/mysys/queues.c | int init_queue(QUEUE *queue, uint max_elements, uint offset_to_key,
my_bool max_at_top, int (*compare) (void *, uchar *, uchar *),
void *first_cmp_arg, uint offset_to_queue_pos,
uint auto_extent)
{
DBUG_ENTER("init_queue");
if ((queue->root= (uchar **) my_malloc(key_memory_QUEUE,
(max_elements + 1) * sizeof(void*),
MYF(MY_WME))) == 0)
DBUG_RETURN(1);
queue->elements= 0;
queue->compare= compare;
queue->first_cmp_arg= first_cmp_arg;
queue->max_elements= max_elements;
queue->offset_to_key= offset_to_key;
queue->offset_to_queue_pos= offset_to_queue_pos;
queue->auto_extent= auto_extent;
queue_set_max_at_top(queue, max_at_top);
DBUG_RETURN(0);
} | O3 | c | init_queue:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, -0x30(%rbp)
movq %r8, %r13
movl %ecx, %r14d
movl %edx, %r12d
movl %esi, %r15d
movq %rdi, %rbx
leaq 0xb699ac(%rip), %rax # 0xc161c0
movl (%rax), %edi
leal 0x1(%r15), %esi
shlq $0x3, %rsi
movl $0x10, %edx
callq 0xaa1d9
movq %rax, (%rbx)
testq %rax, %rax
je 0xac86b
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %ecx
movl $0x0, 0x10(%rbx)
movq %r13, 0x28(%rbx)
movq -0x30(%rbp), %rdx
movq %rdx, 0x8(%rbx)
movl %r15d, 0x14(%rbx)
movl %r12d, 0x18(%rbx)
movl %ecx, 0x1c(%rbx)
movl %eax, 0x20(%rbx)
xorl %eax, %eax
negb %r14b
movl $0x0, %ecx
sbbl %ecx, %ecx
orl $0x1, %ecx
movl %ecx, 0x24(%rbx)
jmp 0xac870
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| init_queue:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov [rbp+var_30], r9
mov r13, r8
mov r14d, ecx
mov r12d, edx
mov r15d, esi
mov rbx, rdi
lea rax, key_memory_QUEUE
mov edi, [rax]
lea esi, [r15+1]
shl rsi, 3
mov edx, 10h
call my_malloc
mov [rbx], rax
test rax, rax
jz short loc_AC86B
mov eax, [rbp+arg_8]
mov ecx, [rbp+arg_0]
mov dword ptr [rbx+10h], 0
mov [rbx+28h], r13
mov rdx, [rbp+var_30]
mov [rbx+8], rdx
mov [rbx+14h], r15d
mov [rbx+18h], r12d
mov [rbx+1Ch], ecx
mov [rbx+20h], eax
xor eax, eax
neg r14b
mov ecx, 0
sbb ecx, ecx
or ecx, 1
mov [rbx+24h], ecx
jmp short loc_AC870
loc_AC86B:
mov eax, 1
loc_AC870:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long init_queue(long long a1, int a2, int a3, char a4, long long a5, long long a6, int a7, int a8)
{
long long v11; // rax
long long result; // rax
v11 = my_malloc(key_memory_QUEUE, 8LL * (unsigned int)(a2 + 1), 16);
*(_QWORD *)a1 = v11;
if ( !v11 )
return 1LL;
*(_DWORD *)(a1 + 16) = 0;
*(_QWORD *)(a1 + 40) = a5;
*(_QWORD *)(a1 + 8) = a6;
*(_DWORD *)(a1 + 20) = a2;
*(_DWORD *)(a1 + 24) = a3;
*(_DWORD *)(a1 + 28) = a7;
*(_DWORD *)(a1 + 32) = a8;
result = 0LL;
*(_DWORD *)(a1 + 36) = a4 != 0 ? -1 : 1;
return result;
}
| init_queue:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV qword ptr [RBP + -0x30],R9
MOV R13,R8
MOV R14D,ECX
MOV R12D,EDX
MOV R15D,ESI
MOV RBX,RDI
LEA RAX,[0xd161c0]
MOV EDI,dword ptr [RAX]
LEA ESI,[R15 + 0x1]
SHL RSI,0x3
MOV EDX,0x10
CALL 0x001aa1d9
MOV qword ptr [RBX],RAX
TEST RAX,RAX
JZ 0x001ac86b
MOV EAX,dword ptr [RBP + 0x18]
MOV ECX,dword ptr [RBP + 0x10]
MOV dword ptr [RBX + 0x10],0x0
MOV qword ptr [RBX + 0x28],R13
MOV RDX,qword ptr [RBP + -0x30]
MOV qword ptr [RBX + 0x8],RDX
MOV dword ptr [RBX + 0x14],R15D
MOV dword ptr [RBX + 0x18],R12D
MOV dword ptr [RBX + 0x1c],ECX
MOV dword ptr [RBX + 0x20],EAX
XOR EAX,EAX
NEG R14B
MOV ECX,0x0
SBB ECX,ECX
OR ECX,0x1
MOV dword ptr [RBX + 0x24],ECX
JMP 0x001ac870
LAB_001ac86b:
MOV EAX,0x1
LAB_001ac870:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
bool init_queue(long *param_1,int param_2,int4 param_3,char param_4,long param_5,long param_6,
int4 param_7,int4 param_8)
{
long lVar1;
lVar1 = my_malloc(key_memory_QUEUE,(ulong)(param_2 + 1) << 3,0x10);
*param_1 = lVar1;
if (lVar1 != 0) {
*(int4 *)(param_1 + 2) = 0;
param_1[5] = param_5;
param_1[1] = param_6;
*(int *)((long)param_1 + 0x14) = param_2;
*(int4 *)(param_1 + 3) = param_3;
*(int4 *)((long)param_1 + 0x1c) = param_7;
*(int4 *)(param_1 + 4) = param_8;
*(uint *)((long)param_1 + 0x24) = -(uint)(param_4 != '\0') | 1;
}
return lVar1 == 0;
}
| |
27,035 | copy_decode_table | eloqsql/storage/myisam/mi_packrec.c | static uint copy_decode_table(uint16 *to_pos, uint offset,
uint16 *decode_table)
{
uint prev_offset= offset;
DBUG_ENTER("copy_decode_table");
/* Descent on the left side. */
if (!(*decode_table & IS_CHAR))
{
/* Set a pointer to the next target node. */
to_pos[offset]=2;
/* Copy the left hand subtree there. */
offset=copy_decode_table(to_pos,offset+2,decode_table+ *decode_table);
}
else
{
/* Copy the byte value. */
to_pos[offset]= *decode_table;
/* Step behind this node. */
offset+=2;
}
/* Descent on the right side. */
decode_table++;
if (!(*decode_table & IS_CHAR))
{
/* Set a pointer to the next free target node. */
to_pos[prev_offset+1]=(uint16) (offset-prev_offset-1);
/* Copy the right hand subtree to the entry of that node. */
offset=copy_decode_table(to_pos,offset,decode_table+ *decode_table);
}
else
{
/* Copy the byte value. */
to_pos[prev_offset+1]= *decode_table;
}
DBUG_RETURN(offset);
} | O0 | c | copy_decode_table:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x1c(%rbp)
movq -0x18(%rbp), %rax
movzwl (%rax), %eax
andl $0x8000, %eax # imm = 0x8000
cmpl $0x0, %eax
jne 0xbdf5e
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
movw $0x2, (%rax,%rcx,2)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
addl $0x2, %esi
movq -0x18(%rbp), %rdx
movq -0x18(%rbp), %rax
movzwl (%rax), %eax
cltq
shlq %rax
addq %rax, %rdx
callq 0xbdf00
movl %eax, -0xc(%rbp)
jmp 0xbdf79
movq -0x18(%rbp), %rax
movw (%rax), %dx
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
movw %dx, (%rax,%rcx,2)
movl -0xc(%rbp), %eax
addl $0x2, %eax
movl %eax, -0xc(%rbp)
movq -0x18(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movzwl (%rax), %eax
andl $0x8000, %eax # imm = 0x8000
cmpl $0x0, %eax
jne 0xbdfd6
movl -0xc(%rbp), %eax
subl -0x1c(%rbp), %eax
subl $0x1, %eax
movw %ax, %dx
movq -0x8(%rbp), %rax
movl -0x1c(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, %ecx
movw %dx, (%rax,%rcx,2)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x18(%rbp), %rax
movzwl (%rax), %eax
cltq
shlq %rax
addq %rax, %rdx
callq 0xbdf00
movl %eax, -0xc(%rbp)
jmp 0xbdfed
movq -0x18(%rbp), %rax
movw (%rax), %dx
movq -0x8(%rbp), %rax
movl -0x1c(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, %ecx
movw %dx, (%rax,%rcx,2)
jmp 0xbdfef
movl -0xc(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nop
| copy_decode_table_0:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov eax, [rbp+var_C]
mov [rbp+var_1C], eax
mov rax, [rbp+var_18]
movzx eax, word ptr [rax]
and eax, 8000h
cmp eax, 0
jnz short loc_BDF5E
mov rax, [rbp+var_8]
mov ecx, [rbp+var_C]
mov word ptr [rax+rcx*2], 2
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
add esi, 2
mov rdx, [rbp+var_18]
mov rax, [rbp+var_18]
movzx eax, word ptr [rax]
cdqe
shl rax, 1
add rdx, rax
call copy_decode_table_0
mov [rbp+var_C], eax
jmp short loc_BDF79
loc_BDF5E:
mov rax, [rbp+var_18]
mov dx, [rax]
mov rax, [rbp+var_8]
mov ecx, [rbp+var_C]
mov [rax+rcx*2], dx
mov eax, [rbp+var_C]
add eax, 2
mov [rbp+var_C], eax
loc_BDF79:
mov rax, [rbp+var_18]
add rax, 2
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
movzx eax, word ptr [rax]
and eax, 8000h
cmp eax, 0
jnz short loc_BDFD6
mov eax, [rbp+var_C]
sub eax, [rbp+var_1C]
sub eax, 1
mov dx, ax
mov rax, [rbp+var_8]
mov ecx, [rbp+var_1C]
add ecx, 1
mov ecx, ecx
mov [rax+rcx*2], dx
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
mov rax, [rbp+var_18]
movzx eax, word ptr [rax]
cdqe
shl rax, 1
add rdx, rax
call copy_decode_table_0
mov [rbp+var_C], eax
jmp short loc_BDFED
loc_BDFD6:
mov rax, [rbp+var_18]
mov dx, [rax]
mov rax, [rbp+var_8]
mov ecx, [rbp+var_1C]
add ecx, 1
mov ecx, ecx
mov [rax+rcx*2], dx
loc_BDFED:
jmp short $+2
loc_BDFEF:
mov eax, [rbp+var_C]
mov [rbp+var_20], eax
mov eax, [rbp+var_20]
add rsp, 20h
pop rbp
retn
| long long copy_decode_table_0(long long a1, unsigned int a2, _WORD *a3)
{
_WORD *v5; // [rsp+8h] [rbp-18h]
unsigned int v6; // [rsp+14h] [rbp-Ch]
if ( (*a3 & 0x8000) != 0 )
{
*(_WORD *)(a1 + 2LL * a2) = *a3;
v6 = a2 + 2;
}
else
{
*(_WORD *)(a1 + 2LL * a2) = 2;
v6 = copy_decode_table_0(a1, a2 + 2, &a3[(unsigned __int16)*a3]);
}
v5 = a3 + 1;
if ( (*v5 & 0x8000) != 0 )
{
*(_WORD *)(a1 + 2LL * (a2 + 1)) = *v5;
}
else
{
*(_WORD *)(a1 + 2LL * (a2 + 1)) = v6 - a2 - 1;
return (unsigned int)copy_decode_table_0(a1, v6, &v5[(unsigned __int16)*v5]);
}
return v6;
}
| copy_decode_table:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV qword ptr [RBP + -0x18],RDX
MOV EAX,dword ptr [RBP + -0xc]
MOV dword ptr [RBP + -0x1c],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,word ptr [RAX]
AND EAX,0x8000
CMP EAX,0x0
JNZ 0x001bdf5e
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0xc]
MOV word ptr [RAX + RCX*0x2],0x2
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
ADD ESI,0x2
MOV RDX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,word ptr [RAX]
CDQE
SHL RAX,0x1
ADD RDX,RAX
CALL 0x001bdf00
MOV dword ptr [RBP + -0xc],EAX
JMP 0x001bdf79
LAB_001bdf5e:
MOV RAX,qword ptr [RBP + -0x18]
MOV DX,word ptr [RAX]
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0xc]
MOV word ptr [RAX + RCX*0x2],DX
MOV EAX,dword ptr [RBP + -0xc]
ADD EAX,0x2
MOV dword ptr [RBP + -0xc],EAX
LAB_001bdf79:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x2
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,word ptr [RAX]
AND EAX,0x8000
CMP EAX,0x0
JNZ 0x001bdfd6
MOV EAX,dword ptr [RBP + -0xc]
SUB EAX,dword ptr [RBP + -0x1c]
SUB EAX,0x1
MOV DX,AX
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0x1c]
ADD ECX,0x1
MOV ECX,ECX
MOV word ptr [RAX + RCX*0x2],DX
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,word ptr [RAX]
CDQE
SHL RAX,0x1
ADD RDX,RAX
CALL 0x001bdf00
MOV dword ptr [RBP + -0xc],EAX
JMP 0x001bdfed
LAB_001bdfd6:
MOV RAX,qword ptr [RBP + -0x18]
MOV DX,word ptr [RAX]
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0x1c]
ADD ECX,0x1
MOV ECX,ECX
MOV word ptr [RAX + RCX*0x2],DX
LAB_001bdfed:
JMP 0x001bdfef
LAB_001bdfef:
MOV EAX,dword ptr [RBP + -0xc]
MOV dword ptr [RBP + -0x20],EAX
MOV EAX,dword ptr [RBP + -0x20]
ADD RSP,0x20
POP RBP
RET
|
int copy_decode_table(long param_1,uint param_2,ushort *param_3)
{
int local_14;
if ((*param_3 & 0x8000) == 0) {
*(int2 *)(param_1 + (ulong)param_2 * 2) = 2;
local_14 = copy_decode_table(param_1,param_2 + 2,param_3 + (int)(uint)*param_3);
}
else {
*(ushort *)(param_1 + (ulong)param_2 * 2) = *param_3;
local_14 = param_2 + 2;
}
param_3 = param_3 + 1;
if ((*param_3 & 0x8000) == 0) {
*(short *)(param_1 + (ulong)(param_2 + 1) * 2) = ((short)local_14 - (short)param_2) + -1;
local_14 = copy_decode_table(param_1,local_14,param_3 + (int)(uint)*param_3);
}
else {
*(ushort *)(param_1 + (ulong)(param_2 + 1) * 2) = *param_3;
}
return local_14;
}
| |
27,036 | copy_decode_table | eloqsql/storage/myisam/mi_packrec.c | static uint copy_decode_table(uint16 *to_pos, uint offset,
uint16 *decode_table)
{
uint prev_offset= offset;
DBUG_ENTER("copy_decode_table");
/* Descent on the left side. */
if (!(*decode_table & IS_CHAR))
{
/* Set a pointer to the next target node. */
to_pos[offset]=2;
/* Copy the left hand subtree there. */
offset=copy_decode_table(to_pos,offset+2,decode_table+ *decode_table);
}
else
{
/* Copy the byte value. */
to_pos[offset]= *decode_table;
/* Step behind this node. */
offset+=2;
}
/* Descent on the right side. */
decode_table++;
if (!(*decode_table & IS_CHAR))
{
/* Set a pointer to the next free target node. */
to_pos[prev_offset+1]=(uint16) (offset-prev_offset-1);
/* Copy the right hand subtree to the entry of that node. */
offset=copy_decode_table(to_pos,offset,decode_table+ *decode_table);
}
else
{
/* Copy the byte value. */
to_pos[prev_offset+1]= *decode_table;
}
DBUG_RETURN(offset);
} | O3 | c | copy_decode_table:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %eax
movq %rdi, %rbx
movzwl (%r14), %ecx
movl %eax, %r15d
addl $0x2, %eax
testw %cx, %cx
js 0x8447b
movw $0x2, (%rbx,%r15,2)
movzwl (%r14), %ecx
leaq (%r14,%rcx,2), %rdx
movq %rbx, %rdi
movl %eax, %esi
callq 0x8443f
jmp 0x84480
movw %cx, (%rbx,%r15,2)
movzwl 0x2(%r14), %ecx
testw %cx, %cx
js 0x844a7
addq $0x2, %r14
movl %r15d, %ecx
notl %ecx
addl %eax, %ecx
incl %r15d
movw %cx, (%rbx,%r15,2)
movzwl (%r14), %ecx
leaq (%r14,%rcx,2), %r14
jmp 0x84451
incl %r15d
movw %cx, (%rbx,%r15,2)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| copy_decode_table_0:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov r14, rdx
mov eax, esi
mov rbx, rdi
loc_84451:
movzx ecx, word ptr [r14]
mov r15d, eax
add eax, 2
test cx, cx
js short loc_8447B
mov word ptr [rbx+r15*2], 2
movzx ecx, word ptr [r14]
lea rdx, [r14+rcx*2]
mov rdi, rbx
mov esi, eax
call copy_decode_table_0
jmp short loc_84480
loc_8447B:
mov [rbx+r15*2], cx
loc_84480:
movzx ecx, word ptr [r14+2]
test cx, cx
js short loc_844A7
add r14, 2
mov ecx, r15d
not ecx
add ecx, eax
inc r15d
mov [rbx+r15*2], cx
movzx ecx, word ptr [r14]
lea r14, [r14+rcx*2]
jmp short loc_84451
loc_844A7:
inc r15d
mov [rbx+r15*2], cx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long copy_decode_table_0(long long a1, int a2, unsigned __int16 *a3)
{
long long result; // rax
long long v5; // r15
__int16 v6; // cx
LODWORD(result) = a2;
while ( 1 )
{
v5 = (unsigned int)result;
result = (unsigned int)(result + 2);
if ( (*a3 & 0x8000u) != 0 )
{
*(_WORD *)(a1 + 2 * v5) = *a3;
}
else
{
*(_WORD *)(a1 + 2 * v5) = 2;
result = copy_decode_table_0(a1, (unsigned int)result, &a3[*a3]);
}
v6 = a3[1];
if ( v6 < 0 )
break;
*(_WORD *)(a1 + 2LL * (unsigned int)(v5 + 1)) = result + ~(_WORD)v5;
a3 += a3[1] + 1;
}
*(_WORD *)(a1 + 2LL * (unsigned int)(v5 + 1)) = v6;
return result;
}
| copy_decode_table:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RDX
MOV EAX,ESI
MOV RBX,RDI
LAB_00184451:
MOVZX ECX,word ptr [R14]
MOV R15D,EAX
ADD EAX,0x2
TEST CX,CX
JS 0x0018447b
MOV word ptr [RBX + R15*0x2],0x2
MOVZX ECX,word ptr [R14]
LEA RDX,[R14 + RCX*0x2]
MOV RDI,RBX
MOV ESI,EAX
CALL 0x0018443f
JMP 0x00184480
LAB_0018447b:
MOV word ptr [RBX + R15*0x2],CX
LAB_00184480:
MOVZX ECX,word ptr [R14 + 0x2]
TEST CX,CX
JS 0x001844a7
ADD R14,0x2
MOV ECX,R15D
NOT ECX
ADD ECX,EAX
INC R15D
MOV word ptr [RBX + R15*0x2],CX
MOVZX ECX,word ptr [R14]
LEA R14,[R14 + RCX*0x2]
JMP 0x00184451
LAB_001844a7:
INC R15D
MOV word ptr [RBX + R15*0x2],CX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
void copy_decode_table(long param_1,uint param_2,ushort *param_3)
{
uint uVar1;
while( true ) {
uVar1 = param_2 + 2;
if ((short)*param_3 < 0) {
*(ushort *)(param_1 + (ulong)param_2 * 2) = *param_3;
}
else {
*(int2 *)(param_1 + (ulong)param_2 * 2) = 2;
uVar1 = copy_decode_table(param_1,uVar1,param_3 + *param_3);
}
if ((short)param_3[1] < 0) break;
*(ushort *)(param_1 + (ulong)(param_2 + 1) * 2) = ~(ushort)param_2 + (short)uVar1;
param_3 = param_3 + 1 + param_3[1];
param_2 = uVar1;
}
*(ushort *)(param_1 + (ulong)(param_2 + 1) * 2) = param_3[1];
return;
}
| |
27,037 | alaya::RawSpace<float, float, unsigned int, alaya::SequentialStorage<float, unsigned int>>::fit(float const*, unsigned int) | AlayaLite/include/space/raw_space.hpp | void fit(const DataType *data, IDType item_cnt) {
item_cnt_ = item_cnt;
for (IDType i = 0; i < item_cnt_; ++i) {
// if the metric is cosine, normalize the query
if (metric_ == MetricType::COS) {
normalize(const_cast<DataType *>(data + i * dim_), dim_);
}
data_storage_.insert(data + i * dim_);
}
} | O0 | cpp | alaya::RawSpace<float, float, unsigned int, alaya::SequentialStorage<float, unsigned int>>::fit(float const*, unsigned int):
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movl %edx, 0x14(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
movl 0x14(%rsp), %ecx
movl %ecx, 0x18(%rax)
movl $0x0, 0x10(%rsp)
movq 0x8(%rsp), %rcx
movl 0x10(%rsp), %eax
cmpl 0x18(%rcx), %eax
jae 0x1c5fc
movq 0x8(%rsp), %rax
cmpl $0x2, (%rax)
jne 0x1c5c8
movq 0x8(%rsp), %rax
movq 0x18(%rsp), %rdi
movl 0x10(%rsp), %ecx
imull 0x14(%rax), %ecx
movl %ecx, %ecx
shlq $0x2, %rcx
addq %rcx, %rdi
movl 0x14(%rax), %eax
movl %eax, %esi
callq 0x2aeb0
movq 0x8(%rsp), %rcx
movq %rcx, %rdi
addq $0x28, %rdi
movq 0x18(%rsp), %rsi
movl 0x10(%rsp), %eax
imull 0x14(%rcx), %eax
movl %eax, %eax
shlq $0x2, %rax
addq %rax, %rsi
callq 0x2af80
movl 0x10(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x10(%rsp)
jmp 0x1c58b
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
| _ZN5alaya8RawSpaceIffjNS_17SequentialStorageIfjEEE3fitEPKfj:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov [rsp+28h+var_10], rsi
mov [rsp+28h+var_14], edx
mov rax, [rsp+28h+var_8]
mov [rsp+28h+var_20], rax
mov ecx, [rsp+28h+var_14]
mov [rax+18h], ecx
mov [rsp+28h+var_18], 0
loc_1C58B:
mov rcx, [rsp+28h+var_20]
mov eax, [rsp+28h+var_18]
cmp eax, [rcx+18h]
jnb short loc_1C5FC
mov rax, [rsp+28h+var_20]
cmp dword ptr [rax], 2
jnz short loc_1C5C8
mov rax, [rsp+28h+var_20]
mov rdi, [rsp+28h+var_10]
mov ecx, [rsp+28h+var_18]
imul ecx, [rax+14h]
mov ecx, ecx
shl rcx, 2
add rdi, rcx
mov eax, [rax+14h]
mov esi, eax
call _ZN5alaya9normalizeIfEEvPT_m; alaya::normalize<float>(float *,ulong)
loc_1C5C8:
mov rcx, [rsp+28h+var_20]
mov rdi, rcx
add rdi, 28h ; '('
mov rsi, [rsp+28h+var_10]
mov eax, [rsp+28h+var_18]
imul eax, [rcx+14h]
mov eax, eax
shl rax, 2
add rsi, rax
call _ZN5alaya17SequentialStorageIfjE6insertEPKf; alaya::SequentialStorage<float,uint>::insert(float const*)
mov eax, [rsp+28h+var_18]
add eax, 1
mov [rsp+28h+var_18], eax
jmp short loc_1C58B
loc_1C5FC:
add rsp, 28h
retn
| long long alaya::RawSpace<float,float,unsigned int,alaya::SequentialStorage<float,unsigned int>>::fit(
_DWORD *a1,
long long a2,
int a3)
{
long long result; // rax
unsigned int i; // [rsp+10h] [rbp-18h]
a1[6] = a3;
for ( i = 0; ; ++i )
{
result = i;
if ( i >= a1[6] )
break;
if ( *a1 == 2 )
alaya::normalize<float>(4LL * a1[5] * i + a2, (unsigned int)a1[5]);
alaya::SequentialStorage<float,unsigned int>::insert(a1 + 10, 4LL * a1[5] * i + a2);
}
return result;
}
| fit:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x18],RSI
MOV dword ptr [RSP + 0x14],EDX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x8],RAX
MOV ECX,dword ptr [RSP + 0x14]
MOV dword ptr [RAX + 0x18],ECX
MOV dword ptr [RSP + 0x10],0x0
LAB_0011c58b:
MOV RCX,qword ptr [RSP + 0x8]
MOV EAX,dword ptr [RSP + 0x10]
CMP EAX,dword ptr [RCX + 0x18]
JNC 0x0011c5fc
MOV RAX,qword ptr [RSP + 0x8]
CMP dword ptr [RAX],0x2
JNZ 0x0011c5c8
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RSP + 0x18]
MOV ECX,dword ptr [RSP + 0x10]
IMUL ECX,dword ptr [RAX + 0x14]
MOV ECX,ECX
SHL RCX,0x2
ADD RDI,RCX
MOV EAX,dword ptr [RAX + 0x14]
MOV ESI,EAX
CALL 0x0012aeb0
LAB_0011c5c8:
MOV RCX,qword ptr [RSP + 0x8]
MOV RDI,RCX
ADD RDI,0x28
MOV RSI,qword ptr [RSP + 0x18]
MOV EAX,dword ptr [RSP + 0x10]
IMUL EAX,dword ptr [RCX + 0x14]
MOV EAX,EAX
SHL RAX,0x2
ADD RSI,RAX
CALL 0x0012af80
MOV EAX,dword ptr [RSP + 0x10]
ADD EAX,0x1
MOV dword ptr [RSP + 0x10],EAX
JMP 0x0011c58b
LAB_0011c5fc:
ADD RSP,0x28
RET
|
/* alaya::RawSpace<float, float, unsigned int, alaya::SequentialStorage<float, unsigned int>
>::fit(float const*, unsigned int) */
void __thiscall
alaya::RawSpace<float,float,unsigned_int,alaya::SequentialStorage<float,unsigned_int>>::fit
(RawSpace<float,float,unsigned_int,alaya::SequentialStorage<float,unsigned_int>> *this,
float *param_1,uint param_2)
{
uint local_18;
*(uint *)(this + 0x18) = param_2;
for (local_18 = 0; local_18 < *(uint *)(this + 0x18); local_18 = local_18 + 1) {
if (*(int *)this == 2) {
normalize<float>(param_1 + local_18 * *(int *)(this + 0x14),(ulong)*(uint *)(this + 0x14));
}
SequentialStorage<float,unsigned_int>::insert
((SequentialStorage<float,unsigned_int> *)(this + 0x28),
param_1 + local_18 * *(int *)(this + 0x14));
}
return;
}
| |
27,038 | key_cache_write | eloqsql/mysys/mf_keycache.c | int key_cache_write(KEY_CACHE *keycache,
File file, void *file_extra,
my_off_t filepos, int level,
uchar *buff, uint length,
uint block_length, int force_write)
{
if (keycache->can_be_used)
return keycache->interface_funcs->write(keycache->keycache_cb,
file, file_extra,
filepos, level,
buff, length,
block_length, force_write);
/* We can't use mutex here as the key cache may not be initialized */
if (my_pwrite(file, buff, length, filepos, MYF(MY_NABP | MY_WAIT_IF_FULL)))
return 1;
return 0;
} | O3 | c | key_cache_write:
cmpb $0x0, 0x49(%rdi)
je 0x986e6
movq 0x8(%rdi), %rax
movq 0x10(%rdi), %rdi
movq 0x28(%rdi), %r11
movq %rax, %rdi
jmpq *%r11
pushq %rbp
movq %rsp, %rbp
movl 0x10(%rbp), %edx
movl $0x24, %r8d
movl %esi, %edi
movq %r9, %rsi
callq 0xa07ee
xorl %ecx, %ecx
testq %rax, %rax
setne %cl
movl %ecx, %eax
popq %rbp
retq
| key_cache_write:
cmp byte ptr [rdi+49h], 0
jz short loc_986E6
mov rax, [rdi+8]
mov rdi, [rdi+10h]
mov r11, [rdi+28h]
mov rdi, rax
jmp r11
loc_986E6:
push rbp
mov rbp, rsp
mov edx, [rbp+10h]
mov r8d, 24h ; '$'
mov edi, esi
mov rsi, r9
call my_pwrite
xor ecx, ecx
test rax, rax
setnz cl
mov eax, ecx
pop rbp
retn
| long long key_cache_write(
long long a1,
unsigned int a2,
long long a3,
long long a4,
long long a5,
long long a6,
unsigned int a7)
{
if ( *(_BYTE *)(a1 + 73) )
return (*(long long ( **)(_QWORD))(*(_QWORD *)(a1 + 16) + 40LL))(*(_QWORD *)(a1 + 8));
else
return my_pwrite(a2, a6, a7, a4, 36LL) != 0;
}
| key_cache_write:
CMP byte ptr [RDI + 0x49],0x0
JZ 0x001986e6
MOV RAX,qword ptr [RDI + 0x8]
MOV RDI,qword ptr [RDI + 0x10]
MOV R11,qword ptr [RDI + 0x28]
MOV RDI,RAX
JMP R11
LAB_001986e6:
PUSH RBP
MOV RBP,RSP
MOV EDX,dword ptr [RBP + 0x10]
MOV R8D,0x24
MOV EDI,ESI
MOV RSI,R9
CALL 0x001a07ee
XOR ECX,ECX
TEST RAX,RAX
SETNZ CL
MOV EAX,ECX
POP RBP
RET
|
ulong key_cache_write(long param_1,int4 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int4 param_7)
{
ulong uVar1;
long lVar2;
if (*(char *)(param_1 + 0x49) != '\0') {
/* WARNING: Could not recover jumptable at 0x001986e3. Too many branches */
/* WARNING: Treating indirect jump as call */
uVar1 = (**(code **)(*(long *)(param_1 + 0x10) + 0x28))(*(int8 *)(param_1 + 8));
return uVar1;
}
lVar2 = my_pwrite(param_2,param_6,param_7,param_4,0x24);
return (ulong)(lVar2 != 0);
}
| |
27,039 | bfdec_print_str | bluesky950520[P]quickjs/libbf.c | void bfdec_print_str(const char *str, const bfdec_t *a)
{
slimb_t i;
printf("%s=", str);
if (a->expn == BF_EXP_NAN) {
printf("NaN");
} else {
if (a->sign)
putchar('-');
if (a->expn == BF_EXP_ZERO) {
putchar('0');
} else if (a->expn == BF_EXP_INF) {
printf("Inf");
} else {
printf("0.");
for(i = a->len - 1; i >= 0; i--)
printf("%0*" PRIu_LIMB, LIMB_DIGITS, a->tab[i]);
printf("e%" PRId_LIMB, a->expn);
}
}
printf("\n");
} | O2 | c | bfdec_print_str:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %rsi
leaq 0x12b16(%rip), %rdi # 0x8d2ce
xorl %eax, %eax
callq 0xe2c0
movq 0x10(%rbx), %rax
movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF
cmpq %rcx, %rax
jne 0x7a7db
leaq 0x10026(%rip), %rdi # 0x8a7ff
jmp 0x7a812
cmpl $0x0, 0x8(%rbx)
je 0x7a7ed
pushq $0x2d
popq %rdi
callq 0xe080
movq 0x10(%rbx), %rax
movabsq $0x7ffffffffffffffe, %rcx # imm = 0x7FFFFFFFFFFFFFFE
cmpq %rcx, %rax
je 0x7a80b
negq %rax
jno 0x7a82b
pushq $0x30
popq %rdi
callq 0xe080
jmp 0x7a819
leaq 0x12ac0(%rip), %rdi # 0x8d2d2
xorl %eax, %eax
callq 0xe2c0
pushq $0xa
popq %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xe080
leaq 0x12aa6(%rip), %rdi # 0x8d2d8
xorl %eax, %eax
callq 0xe2c0
movq 0x18(%rbx), %r15
decq %r15
leaq 0x12a99(%rip), %r14 # 0x8d2e0
pushq $0x13
popq %rbp
testq %r15, %r15
js 0x7a868
movq 0x20(%rbx), %rax
movq (%rax,%r15,8), %rdx
movq %r14, %rdi
movl %ebp, %esi
xorl %eax, %eax
callq 0xe2c0
decq %r15
jmp 0x7a84a
movq 0x10(%rbx), %rsi
leaq 0x12a73(%rip), %rdi # 0x8d2e6
xorl %eax, %eax
callq 0xe2c0
jmp 0x7a819
| bfdec_print_str:
push rbp
push r15
push r14
push rbx
push rax
mov rbx, rsi
mov rsi, rdi
lea rdi, aS_4; "%s="
xor eax, eax
call _printf
mov rax, [rbx+10h]
mov rcx, 7FFFFFFFFFFFFFFFh
cmp rax, rcx
jnz short loc_7A7DB
lea rdi, aDateValueIsNan+0Eh; "NaN"
jmp short loc_7A812
loc_7A7DB:
cmp dword ptr [rbx+8], 0
jz short loc_7A7ED
push 2Dh ; '-'
pop rdi
call _putchar
mov rax, [rbx+10h]
loc_7A7ED:
mov rcx, 7FFFFFFFFFFFFFFEh
cmp rax, rcx
jz short loc_7A80B
neg rax
jno short loc_7A82B
push 30h ; '0'
pop rdi
call _putchar
jmp short loc_7A819
loc_7A80B:
lea rdi, aInf; "Inf"
loc_7A812:
xor eax, eax
call _printf
loc_7A819:
push 0Ah
pop rdi
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp _putchar
loc_7A82B:
lea rdi, a0x0+2; "0."
xor eax, eax
call _printf
mov r15, [rbx+18h]
dec r15
lea r14, a0Lu; "%0*lu"
push 13h
pop rbp
loc_7A84A:
test r15, r15
js short loc_7A868
mov rax, [rbx+20h]
mov rdx, [rax+r15*8]
mov rdi, r14
mov esi, ebp
xor eax, eax
call _printf
dec r15
jmp short loc_7A84A
loc_7A868:
mov rsi, [rbx+10h]
lea rdi, aELd; "e%ld"
xor eax, eax
call _printf
jmp short loc_7A819
| long long bfdec_print_str(const char *a1, long long a2)
{
long long v2; // rax
long long i; // r15
printf("%s=", a1);
v2 = *(_QWORD *)(a2 + 16);
if ( v2 == 0x7FFFFFFFFFFFFFFFLL )
{
printf("NaN");
}
else
{
if ( *(_DWORD *)(a2 + 8) )
{
putchar(45LL);
v2 = *(_QWORD *)(a2 + 16);
}
if ( v2 == 0x7FFFFFFFFFFFFFFELL )
{
printf("Inf");
}
else if ( __OFSUB__(-v2, 1LL) )
{
putchar(48LL);
}
else
{
printf("0.");
for ( i = *(_QWORD *)(a2 + 24) - 1LL; i >= 0; --i )
printf("%0*lu", 19, *(_QWORD *)(*(_QWORD *)(a2 + 32) + 8 * i));
printf("e%ld", *(_QWORD *)(a2 + 16));
}
}
return putchar(10LL);
}
| bfdec_print_str:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV RSI,RDI
LEA RDI,[0x18d2ce]
XOR EAX,EAX
CALL 0x0010e2c0
MOV RAX,qword ptr [RBX + 0x10]
MOV RCX,0x7fffffffffffffff
CMP RAX,RCX
JNZ 0x0017a7db
LEA RDI,[0x18a7ff]
JMP 0x0017a812
LAB_0017a7db:
CMP dword ptr [RBX + 0x8],0x0
JZ 0x0017a7ed
PUSH 0x2d
POP RDI
CALL 0x0010e080
MOV RAX,qword ptr [RBX + 0x10]
LAB_0017a7ed:
MOV RCX,0x7ffffffffffffffe
CMP RAX,RCX
JZ 0x0017a80b
NEG RAX
JNO 0x0017a82b
PUSH 0x30
POP RDI
CALL 0x0010e080
JMP 0x0017a819
LAB_0017a80b:
LEA RDI,[0x18d2d2]
LAB_0017a812:
XOR EAX,EAX
CALL 0x0010e2c0
LAB_0017a819:
PUSH 0xa
POP RDI
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x0010e080
LAB_0017a82b:
LEA RDI,[0x18d2d8]
XOR EAX,EAX
CALL 0x0010e2c0
MOV R15,qword ptr [RBX + 0x18]
DEC R15
LEA R14,[0x18d2e0]
PUSH 0x13
POP RBP
LAB_0017a84a:
TEST R15,R15
JS 0x0017a868
MOV RAX,qword ptr [RBX + 0x20]
MOV RDX,qword ptr [RAX + R15*0x8]
MOV RDI,R14
MOV ESI,EBP
XOR EAX,EAX
CALL 0x0010e2c0
DEC R15
JMP 0x0017a84a
LAB_0017a868:
MOV RSI,qword ptr [RBX + 0x10]
LEA RDI,[0x18d2e6]
XOR EAX,EAX
CALL 0x0010e2c0
JMP 0x0017a819
|
/* WARNING: Removing unreachable block (ram,0x0017a801) */
void bfdec_print_str(int8 param_1,long param_2)
{
char *__format;
long lVar1;
printf("%s=",param_1);
lVar1 = *(long *)(param_2 + 0x10);
if (lVar1 == 0x7fffffffffffffff) {
__format = "NaN";
}
else {
if (*(int *)(param_2 + 8) != 0) {
putchar(0x2d);
lVar1 = *(long *)(param_2 + 0x10);
}
if (lVar1 != 0x7ffffffffffffffe) {
printf("0.");
lVar1 = *(long *)(param_2 + 0x18);
while (lVar1 = lVar1 + -1, -1 < lVar1) {
printf("%0*lu",0x13,*(int8 *)(*(long *)(param_2 + 0x20) + lVar1 * 8));
}
printf("e%ld",*(int8 *)(param_2 + 0x10));
goto LAB_0017a819;
}
__format = "Inf";
}
printf(__format);
LAB_0017a819:
putchar(10);
return;
}
| |
27,040 | my_numchars_mb | eloqsql/strings/ctype-mb.c | size_t my_numchars_mb(CHARSET_INFO *cs __attribute__((unused)),
const char *pos, const char *end)
{
register size_t count= 0;
while (pos < end)
{
uint mb_len;
pos+= (mb_len= my_ismbchar(cs,pos,end)) ? mb_len : 1;
count++;
}
return count;
} | O3 | c | my_numchars_mb:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpq %rdx, %rsi
jae 0x3f6a1
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r12
xorl %r14d, %r14d
movl $0x1, %r13d
movq 0xb8(%r12), %rax
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq *0xc0(%rax)
cmpl $0x2, %eax
cmovbl %r13d, %eax
cmovll %r13d, %eax
addq %rax, %r15
incq %r14
cmpq %rbx, %r15
jb 0x3f672
jmp 0x3f6a4
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_numchars_mb:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
cmp rsi, rdx
jnb short loc_3F6A1
mov rbx, rdx
mov r15, rsi
mov r12, rdi
xor r14d, r14d
mov r13d, 1
loc_3F672:
mov rax, [r12+0B8h]
mov rdi, r12
mov rsi, r15
mov rdx, rbx
call qword ptr [rax+0C0h]
cmp eax, 2
cmovb eax, r13d
cmovl eax, r13d
add r15, rax
inc r14
cmp r15, rbx
jb short loc_3F672
jmp short loc_3F6A4
loc_3F6A1:
xor r14d, r14d
loc_3F6A4:
mov rax, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_numchars_mb(long long a1, unsigned long long a2, unsigned long long a3)
{
unsigned long long v4; // r15
long long v5; // r14
long long v6; // rax
bool v7; // cc
if ( a2 >= a3 )
return 0LL;
v4 = a2;
v5 = 0LL;
do
{
v6 = (*(long long ( **)(long long, unsigned long long, unsigned long long))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
v4,
a3);
v7 = (int)v6 < 2;
if ( (unsigned int)v6 < 2 )
v6 = 1LL;
if ( v7 )
v6 = 1LL;
v4 += v6;
++v5;
}
while ( v4 < a3 );
return v5;
}
| my_numchars_mb:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
CMP RSI,RDX
JNC 0x0013f6a1
MOV RBX,RDX
MOV R15,RSI
MOV R12,RDI
XOR R14D,R14D
MOV R13D,0x1
LAB_0013f672:
MOV RAX,qword ptr [R12 + 0xb8]
MOV RDI,R12
MOV RSI,R15
MOV RDX,RBX
CALL qword ptr [RAX + 0xc0]
CMP EAX,0x2
CMOVC EAX,R13D
CMOVL EAX,R13D
ADD R15,RAX
INC R14
CMP R15,RBX
JC 0x0013f672
JMP 0x0013f6a4
LAB_0013f6a1:
XOR R14D,R14D
LAB_0013f6a4:
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_numchars_mb(long param_1,ulong param_2,ulong param_3)
{
uint uVar1;
ulong uVar2;
long lVar3;
if (param_2 < param_3) {
lVar3 = 0;
do {
uVar1 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_2,param_3);
uVar2 = (ulong)uVar1;
if (uVar1 < 2) {
uVar2 = 1;
}
if ((int)uVar1 < 2) {
uVar2 = 1;
}
param_2 = param_2 + uVar2;
lVar3 = lVar3 + 1;
} while (param_2 < param_3);
}
else {
lVar3 = 0;
}
return lVar3;
}
| |
27,041 | nglog::tools::GetHex(char const*, char const*, unsigned long*) | ng-log[P]ng-log/src/symbolize.cc | static char* GetHex(const char* start, const char* end, uint64_t* hex) {
*hex = 0;
const char* p;
for (p = start; p < end; ++p) {
int ch = *p;
if ((ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'F') ||
(ch >= 'a' && ch <= 'f')) {
*hex = (*hex << 4U) |
(ch < 'A' ? static_cast<uint64_t>(ch - '0') : (ch & 0xF) + 9U);
} else { // Encountered the first non-hex character.
break;
}
}
NGLOG_SAFE_ASSERT(p <= end);
return const_cast<char*>(p);
} | O0 | cpp | nglog::tools::GetHex(char const*, char const*, unsigned long*):
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq $0x0, (%rax)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0x4f02e
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
movl %eax, -0x24(%rbp)
cmpl $0x30, -0x24(%rbp)
jl 0x4efbb
cmpl $0x39, -0x24(%rbp)
jle 0x4efd3
cmpl $0x41, -0x24(%rbp)
jl 0x4efc7
cmpl $0x46, -0x24(%rbp)
jle 0x4efd3
cmpl $0x61, -0x24(%rbp)
jl 0x4f019
cmpl $0x66, -0x24(%rbp)
jg 0x4f019
movq -0x18(%rbp), %rax
movq (%rax), %rax
shlq $0x4, %rax
movq %rax, -0x30(%rbp)
cmpl $0x41, -0x24(%rbp)
jge 0x4eff6
movl -0x24(%rbp), %eax
subl $0x30, %eax
cltq
movq %rax, -0x38(%rbp)
jmp 0x4f005
movl -0x24(%rbp), %eax
andl $0xf, %eax
addl $0x9, %eax
movl %eax, %eax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rcx
movq -0x38(%rbp), %rax
orq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
jmp 0x4f01b
jmp 0x4f02e
jmp 0x4f01d
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x4ef97
movq -0x20(%rbp), %rax
cmpq -0x10(%rbp), %rax
ja 0x4f03a
jmp 0x4f03f
callq 0x93a0
movq -0x20(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
| _ZN5nglog5toolsL6GetHexEPKcS2_Pm:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_18]
mov qword ptr [rax], 0
mov rax, [rbp+var_8]
mov [rbp+var_20], rax
loc_4EF97:
mov rax, [rbp+var_20]
cmp rax, [rbp+var_10]
jnb loc_4F02E
mov rax, [rbp+var_20]
movsx eax, byte ptr [rax]
mov [rbp+var_24], eax
cmp [rbp+var_24], 30h ; '0'
jl short loc_4EFBB
cmp [rbp+var_24], 39h ; '9'
jle short loc_4EFD3
loc_4EFBB:
cmp [rbp+var_24], 41h ; 'A'
jl short loc_4EFC7
cmp [rbp+var_24], 46h ; 'F'
jle short loc_4EFD3
loc_4EFC7:
cmp [rbp+var_24], 61h ; 'a'
jl short loc_4F019
cmp [rbp+var_24], 66h ; 'f'
jg short loc_4F019
loc_4EFD3:
mov rax, [rbp+var_18]
mov rax, [rax]
shl rax, 4
mov [rbp+var_30], rax
cmp [rbp+var_24], 41h ; 'A'
jge short loc_4EFF6
mov eax, [rbp+var_24]
sub eax, 30h ; '0'
cdqe
mov [rbp+var_38], rax
jmp short loc_4F005
loc_4EFF6:
mov eax, [rbp+var_24]
and eax, 0Fh
add eax, 9
mov eax, eax
mov [rbp+var_38], rax
loc_4F005:
mov rcx, [rbp+var_30]
mov rax, [rbp+var_38]
or rcx, rax
mov rax, [rbp+var_18]
mov [rax], rcx
jmp short loc_4F01B
loc_4F019:
jmp short loc_4F02E
loc_4F01B:
jmp short $+2
loc_4F01D:
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
jmp loc_4EF97
loc_4F02E:
mov rax, [rbp+var_20]
cmp rax, [rbp+var_10]
ja short loc_4F03A
jmp short loc_4F03F
loc_4F03A:
call _abort
loc_4F03F:
mov rax, [rbp+var_20]
add rsp, 40h
pop rbp
retn
| nglog::tools * nglog::tools::GetHex(nglog::tools *this, nglog::tools *a2, char *a3, unsigned long long *a4)
{
long long v5; // [rsp+8h] [rbp-38h]
int v6; // [rsp+1Ch] [rbp-24h]
nglog::tools *i; // [rsp+20h] [rbp-20h]
*(_QWORD *)a3 = 0LL;
for ( i = this; i < a2; i = (nglog::tools *)((char *)i + 1) )
{
v6 = *(char *)i;
if ( (v6 < 48 || v6 > 57) && (v6 < 65 || v6 > 70) && (v6 < 97 || v6 > 102) )
break;
if ( v6 >= 65 )
v5 = (v6 & 0xFu) + 9;
else
v5 = v6 - 48;
*(_QWORD *)a3 = v5 | (16LL * *(_QWORD *)a3);
}
if ( i > a2 )
abort(this, a2);
return i;
}
| GetHex:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x20],RAX
LAB_0014ef97:
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x10]
JNC 0x0014f02e
MOV RAX,qword ptr [RBP + -0x20]
MOVSX EAX,byte ptr [RAX]
MOV dword ptr [RBP + -0x24],EAX
CMP dword ptr [RBP + -0x24],0x30
JL 0x0014efbb
CMP dword ptr [RBP + -0x24],0x39
JLE 0x0014efd3
LAB_0014efbb:
CMP dword ptr [RBP + -0x24],0x41
JL 0x0014efc7
CMP dword ptr [RBP + -0x24],0x46
JLE 0x0014efd3
LAB_0014efc7:
CMP dword ptr [RBP + -0x24],0x61
JL 0x0014f019
CMP dword ptr [RBP + -0x24],0x66
JG 0x0014f019
LAB_0014efd3:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
SHL RAX,0x4
MOV qword ptr [RBP + -0x30],RAX
CMP dword ptr [RBP + -0x24],0x41
JGE 0x0014eff6
MOV EAX,dword ptr [RBP + -0x24]
SUB EAX,0x30
CDQE
MOV qword ptr [RBP + -0x38],RAX
JMP 0x0014f005
LAB_0014eff6:
MOV EAX,dword ptr [RBP + -0x24]
AND EAX,0xf
ADD EAX,0x9
MOV EAX,EAX
MOV qword ptr [RBP + -0x38],RAX
LAB_0014f005:
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x38]
OR RCX,RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
JMP 0x0014f01b
LAB_0014f019:
JMP 0x0014f02e
LAB_0014f01b:
JMP 0x0014f01d
LAB_0014f01d:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
JMP 0x0014ef97
LAB_0014f02e:
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x10]
JA 0x0014f03a
JMP 0x0014f03f
LAB_0014f03a:
CALL 0x001093a0
LAB_0014f03f:
MOV RAX,qword ptr [RBP + -0x20]
ADD RSP,0x40
POP RBP
RET
|
/* nglog::tools::GetHex(char const*, char const*, unsigned long*) */
char * nglog::tools::GetHex(char *param_1,char *param_2,ulong *param_3)
{
uint uVar1;
ulong local_40;
char *local_28;
*param_3 = 0;
for (local_28 = param_1;
(local_28 < param_2 &&
((((uVar1 = (uint)*local_28, 0x2f < (int)uVar1 && ((int)uVar1 < 0x3a)) ||
((0x40 < (int)uVar1 && ((int)uVar1 < 0x47)))) ||
((0x60 < (int)uVar1 && ((int)uVar1 < 0x67)))))); local_28 = local_28 + 1) {
if ((int)uVar1 < 0x41) {
local_40 = (ulong)(int)(uVar1 - 0x30);
}
else {
local_40 = (ulong)((uVar1 & 0xf) + 9);
}
*param_3 = *param_3 << 4 | local_40;
}
if (param_2 < local_28) {
/* WARNING: Subroutine does not return */
abort();
}
return local_28;
}
| |
27,042 | nglog::tools::GetHex(char const*, char const*, unsigned long*) | ng-log[P]ng-log/src/symbolize.cc | static char* GetHex(const char* start, const char* end, uint64_t* hex) {
*hex = 0;
const char* p;
for (p = start; p < end; ++p) {
int ch = *p;
if ((ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'F') ||
(ch >= 'a' && ch <= 'f')) {
*hex = (*hex << 4U) |
(ch < 'A' ? static_cast<uint64_t>(ch - '0') : (ch & 0xF) + 9U);
} else { // Encountered the first non-hex character.
break;
}
}
NGLOG_SAFE_ASSERT(p <= end);
return const_cast<char*>(p);
} | O2 | cpp | nglog::tools::GetHex(char const*, char const*, unsigned long*):
pushq %rax
andq $0x0, (%rdx)
xorl %eax, %eax
movabsq $0x3f0000003f, %rcx # imm = 0x3F0000003F
cmpq %rsi, %rdi
jae 0x1e772
movb (%rdi), %r8b
leal -0x30(%r8), %r9d
cmpb $0xa, %r9b
jb 0x1e748
movzbl %r8b, %r9d
addl $-0x41, %r9d
cmpl $0x25, %r9d
ja 0x1e772
btq %r9, %rcx
jae 0x1e772
movsbl %r8b, %r9d
shlq $0x4, %rax
leal -0x30(%r9), %r10d
andl $0xf, %r9d
addl $0x9, %r9d
cmpb $0x41, %r8b
movslq %r10d, %r8
cmovbq %r8, %r9
orq %r9, %rax
movq %rax, (%rdx)
incq %rdi
jmp 0x1e722
cmpq %rsi, %rdi
ja 0x1e77c
movq %rdi, %rax
popq %rcx
retq
callq 0x8310
nop
| _ZN5nglog5toolsL6GetHexEPKcS2_Pm:
push rax
and qword ptr [rdx], 0
xor eax, eax
mov rcx, 3F0000003Fh
loc_1E722:
cmp rdi, rsi
jnb short loc_1E772
mov r8b, [rdi]
lea r9d, [r8-30h]
cmp r9b, 0Ah
jb short loc_1E748
movzx r9d, r8b
add r9d, 0FFFFFFBFh
cmp r9d, 25h ; '%'
ja short loc_1E772
bt rcx, r9
jnb short loc_1E772
loc_1E748:
movsx r9d, r8b
shl rax, 4
lea r10d, [r9-30h]
and r9d, 0Fh
add r9d, 9
cmp r8b, 41h ; 'A'
movsxd r8, r10d
cmovb r9, r8
or rax, r9
mov [rdx], rax
inc rdi
jmp short loc_1E722
loc_1E772:
cmp rdi, rsi
ja short loc_1E77C
mov rax, rdi
pop rcx
retn
loc_1E77C:
call _abort
| nglog::tools * nglog::tools::GetHex(nglog::tools *this, nglog::tools *a2, char *a3, unsigned long long *a4)
{
long long v4; // rax
long long v5; // rcx
unsigned __int8 v6; // r8
unsigned long long v7; // r9
long long v8; // rax
long long v9; // r9
*(_QWORD *)a3 = 0LL;
v4 = 0LL;
v5 = 0x3F0000003FLL;
while ( this < a2 )
{
v6 = *(_BYTE *)this;
if ( (unsigned __int8)(*(_BYTE *)this - 48) >= 0xAu )
{
v7 = (unsigned int)v6 - 65;
if ( (unsigned int)v7 > 0x25 || !_bittest64(&v5, v7) )
break;
}
v8 = 16 * v4;
v9 = ((char)v6 & 0xFu) + 9;
if ( v6 < 0x41u )
v9 = (char)v6 - 48;
v4 = v9 | v8;
*(_QWORD *)a3 = v4;
this = (nglog::tools *)((char *)this + 1);
}
if ( this > a2 )
abort(this);
return this;
}
| GetHex:
PUSH RAX
AND qword ptr [RDX],0x0
XOR EAX,EAX
MOV RCX,0x3f0000003f
LAB_0011e722:
CMP RDI,RSI
JNC 0x0011e772
MOV R8B,byte ptr [RDI]
LEA R9D,[R8 + -0x30]
CMP R9B,0xa
JC 0x0011e748
MOVZX R9D,R8B
ADD R9D,-0x41
CMP R9D,0x25
JA 0x0011e772
BT RCX,R9
JNC 0x0011e772
LAB_0011e748:
MOVSX R9D,R8B
SHL RAX,0x4
LEA R10D,[R9 + -0x30]
AND R9D,0xf
ADD R9D,0x9
CMP R8B,0x41
MOVSXD R8,R10D
CMOVC R9,R8
OR RAX,R9
MOV qword ptr [RDX],RAX
INC RDI
JMP 0x0011e722
LAB_0011e772:
CMP RDI,RSI
JA 0x0011e77c
MOV RAX,RDI
POP RCX
RET
LAB_0011e77c:
CALL 0x00108310
|
/* nglog::tools::GetHex(char const*, char const*, unsigned long*) */
byte * nglog::tools::GetHex(char *param_1,char *param_2,ulong *param_3)
{
byte bVar1;
ulong uVar2;
ulong uVar3;
*param_3 = 0;
uVar2 = 0;
while ((param_1 < param_2 &&
((bVar1 = *param_1, (byte)(bVar1 - 0x30) < 10 ||
((bVar1 - 0x41 < 0x26 && ((0x3f0000003fU >> ((ulong)(bVar1 - 0x41) & 0x3f) & 1) != 0))))))
) {
uVar3 = (ulong)(((int)(char)bVar1 & 0xfU) + 9);
if (bVar1 < 0x41) {
uVar3 = (long)(int)((int)(char)bVar1 - 0x30);
}
uVar2 = uVar2 << 4 | uVar3;
*param_3 = uVar2;
param_1 = (char *)((byte *)param_1 + 1);
}
if (param_1 <= param_2) {
return (byte *)param_1;
}
/* WARNING: Subroutine does not return */
abort();
}
| |
27,043 | NumbersPanelImpl::updateDisplaySettings(PresetDisplaySettings&, float) | LumonMDR/src/UI/Widgets/NumbersPanel.cpp | bool updateDisplaySettings(PresetDisplaySettings &settings, float globalScale)
{
// Want preset display settings to scale proportionally to the window size
auto viewportSize = ImGui::GetMainViewport()->Size;
if (lastViewportSize.x == viewportSize.x && lastViewportSize.y == viewportSize.y && lastGlobalScale == globalScale) {
return false;
}
float displaySizeScalePrev = lastViewportSize.x/1280.f * lastGlobalScale;
float displaySizeScale = viewportSize.x/1280.f * globalScale;
float newScale = displaySizeScale / displaySizeScalePrev;
settings.numberWindowBufferTop *= newScale;
settings.numberWindowBufferBottom *= newScale;
settings.headerImageScale *= newScale;
settings.headerImageOffsetX *= newScale;
settings.headerBoxBufferX *= newScale;
settings.headerBoxBufferY *= newScale;
settings.binImageScale *= newScale;
settings.binOffset *= newScale;
settings.binPercentBarOffset *= newScale;
settings.fontSize *= newScale;
settings.settingsFontScale *= newScale;
settings.lineGraphicsSpacing *= newScale;
settings.lineThickness *= newScale;
lastViewportSize = viewportSize;
lastGlobalScale = globalScale;
return true;
} | O0 | cpp | NumbersPanelImpl::updateDisplaySettings(PresetDisplaySettings&, float):
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movss %xmm0, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
callq 0x54460
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq 0x10(%rcx), %rcx
movq %rcx, -0x24(%rbp)
movss 0x260(%rax), %xmm0
ucomiss -0x24(%rbp), %xmm0
jne 0x2fbf2
jp 0x2fbf2
movq -0x38(%rbp), %rax
movss 0x264(%rax), %xmm0
ucomiss -0x20(%rbp), %xmm0
jne 0x2fbf2
jp 0x2fbf2
movq -0x38(%rbp), %rax
movss 0x268(%rax), %xmm0
ucomiss -0x1c(%rbp), %xmm0
jne 0x2fbf2
jp 0x2fbf2
movb $0x0, -0x1(%rbp)
jmp 0x2fd52
movq -0x38(%rbp), %rax
movss 0x260(%rax), %xmm0
movss 0xe75b2(%rip), %xmm1 # 0x1171b8
divss %xmm1, %xmm0
mulss 0x268(%rax), %xmm0
movss %xmm0, -0x28(%rbp)
movss -0x24(%rbp), %xmm0
movss 0xe7594(%rip), %xmm1 # 0x1171b8
divss %xmm1, %xmm0
mulss -0x1c(%rbp), %xmm0
movss %xmm0, -0x2c(%rbp)
movss -0x2c(%rbp), %xmm0
divss -0x28(%rbp), %xmm0
movss %xmm0, -0x30(%rbp)
movss -0x30(%rbp), %xmm0
movq -0x18(%rbp), %rcx
mulss (%rcx), %xmm0
movss %xmm0, (%rcx)
movss -0x30(%rbp), %xmm0
movq -0x18(%rbp), %rcx
mulss 0x4(%rcx), %xmm0
movss %xmm0, 0x4(%rcx)
movss -0x30(%rbp), %xmm0
movq -0x18(%rbp), %rcx
mulss 0x8(%rcx), %xmm0
movss %xmm0, 0x8(%rcx)
movss -0x30(%rbp), %xmm0
movq -0x18(%rbp), %rcx
mulss 0xc(%rcx), %xmm0
movss %xmm0, 0xc(%rcx)
movss -0x30(%rbp), %xmm0
movq -0x18(%rbp), %rcx
mulss 0x10(%rcx), %xmm0
movss %xmm0, 0x10(%rcx)
movss -0x30(%rbp), %xmm0
movq -0x18(%rbp), %rcx
mulss 0x14(%rcx), %xmm0
movss %xmm0, 0x14(%rcx)
movss -0x30(%rbp), %xmm0
movq -0x18(%rbp), %rcx
mulss 0x18(%rcx), %xmm0
movss %xmm0, 0x18(%rcx)
movss -0x30(%rbp), %xmm0
movq -0x18(%rbp), %rcx
mulss 0x1c(%rcx), %xmm0
movss %xmm0, 0x1c(%rcx)
movss -0x30(%rbp), %xmm0
movq -0x18(%rbp), %rcx
mulss 0x20(%rcx), %xmm0
movss %xmm0, 0x20(%rcx)
movss -0x30(%rbp), %xmm0
movq -0x18(%rbp), %rcx
mulss 0x24(%rcx), %xmm0
movss %xmm0, 0x24(%rcx)
movss -0x30(%rbp), %xmm0
movq -0x18(%rbp), %rcx
mulss 0x28(%rcx), %xmm0
movss %xmm0, 0x28(%rcx)
movss -0x30(%rbp), %xmm0
movq -0x18(%rbp), %rcx
mulss 0x2c(%rcx), %xmm0
movss %xmm0, 0x2c(%rcx)
movss -0x30(%rbp), %xmm0
movq -0x18(%rbp), %rcx
mulss 0x30(%rcx), %xmm0
movss %xmm0, 0x30(%rcx)
movq -0x24(%rbp), %rcx
movq %rcx, 0x260(%rax)
movss -0x1c(%rbp), %xmm0
movss %xmm0, 0x268(%rax)
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
| _ZN16NumbersPanelImpl21updateDisplaySettingsER21PresetDisplaySettingsf:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
movss [rbp+var_1C], xmm0
mov rax, [rbp+var_10]
mov [rbp+var_38], rax
call _ZN5ImGui15GetMainViewportEv; ImGui::GetMainViewport(void)
mov rcx, rax
mov rax, [rbp+var_38]
mov rcx, [rcx+10h]
mov [rbp+var_24], rcx
movss xmm0, dword ptr [rax+260h]
ucomiss xmm0, dword ptr [rbp+var_24]
jnz short loc_2FBF2
jp short loc_2FBF2
mov rax, [rbp+var_38]
movss xmm0, dword ptr [rax+264h]
ucomiss xmm0, dword ptr [rbp+var_24+4]
jnz short loc_2FBF2
jp short loc_2FBF2
mov rax, [rbp+var_38]
movss xmm0, dword ptr [rax+268h]
ucomiss xmm0, [rbp+var_1C]
jnz short loc_2FBF2
jp short loc_2FBF2
mov [rbp+var_1], 0
jmp loc_2FD52
loc_2FBF2:
mov rax, [rbp+var_38]
movss xmm0, dword ptr [rax+260h]
movss xmm1, cs:flt_1171B8
divss xmm0, xmm1
mulss xmm0, dword ptr [rax+268h]
movss [rbp+var_28], xmm0
movss xmm0, dword ptr [rbp+var_24]
movss xmm1, cs:flt_1171B8
divss xmm0, xmm1
mulss xmm0, [rbp+var_1C]
movss [rbp+var_2C], xmm0
movss xmm0, [rbp+var_2C]
divss xmm0, [rbp+var_28]
movss [rbp+var_30], xmm0
movss xmm0, [rbp+var_30]
mov rcx, [rbp+var_18]
mulss xmm0, dword ptr [rcx]
movss dword ptr [rcx], xmm0
movss xmm0, [rbp+var_30]
mov rcx, [rbp+var_18]
mulss xmm0, dword ptr [rcx+4]
movss dword ptr [rcx+4], xmm0
movss xmm0, [rbp+var_30]
mov rcx, [rbp+var_18]
mulss xmm0, dword ptr [rcx+8]
movss dword ptr [rcx+8], xmm0
movss xmm0, [rbp+var_30]
mov rcx, [rbp+var_18]
mulss xmm0, dword ptr [rcx+0Ch]
movss dword ptr [rcx+0Ch], xmm0
movss xmm0, [rbp+var_30]
mov rcx, [rbp+var_18]
mulss xmm0, dword ptr [rcx+10h]
movss dword ptr [rcx+10h], xmm0
movss xmm0, [rbp+var_30]
mov rcx, [rbp+var_18]
mulss xmm0, dword ptr [rcx+14h]
movss dword ptr [rcx+14h], xmm0
movss xmm0, [rbp+var_30]
mov rcx, [rbp+var_18]
mulss xmm0, dword ptr [rcx+18h]
movss dword ptr [rcx+18h], xmm0
movss xmm0, [rbp+var_30]
mov rcx, [rbp+var_18]
mulss xmm0, dword ptr [rcx+1Ch]
movss dword ptr [rcx+1Ch], xmm0
movss xmm0, [rbp+var_30]
mov rcx, [rbp+var_18]
mulss xmm0, dword ptr [rcx+20h]
movss dword ptr [rcx+20h], xmm0
movss xmm0, [rbp+var_30]
mov rcx, [rbp+var_18]
mulss xmm0, dword ptr [rcx+24h]
movss dword ptr [rcx+24h], xmm0
movss xmm0, [rbp+var_30]
mov rcx, [rbp+var_18]
mulss xmm0, dword ptr [rcx+28h]
movss dword ptr [rcx+28h], xmm0
movss xmm0, [rbp+var_30]
mov rcx, [rbp+var_18]
mulss xmm0, dword ptr [rcx+2Ch]
movss dword ptr [rcx+2Ch], xmm0
movss xmm0, [rbp+var_30]
mov rcx, [rbp+var_18]
mulss xmm0, dword ptr [rcx+30h]
movss dword ptr [rcx+30h], xmm0
mov rcx, [rbp+var_24]
mov [rax+260h], rcx
movss xmm0, [rbp+var_1C]
movss dword ptr [rax+268h], xmm0
mov [rbp+var_1], 1
loc_2FD52:
mov al, [rbp+var_1]
and al, 1
add rsp, 40h
pop rbp
retn
| char NumbersPanelImpl::updateDisplaySettings(NumbersPanelImpl *this, PresetDisplaySettings *a2, float a3)
{
float v4; // [rsp+10h] [rbp-30h]
long long v5; // [rsp+1Ch] [rbp-24h]
v5 = *(_QWORD *)(ImGui::GetMainViewport(this) + 16);
if ( *((float *)this + 152) == *(float *)&v5
&& *((float *)this + 153) == *((float *)&v5 + 1)
&& *((float *)this + 154) == a3 )
{
return 0;
}
v4 = (float)((float)(*(float *)&v5 / 1280.0) * a3)
/ (float)((float)(*((float *)this + 152) / 1280.0) * *((float *)this + 154));
*(float *)a2 = v4 * *(float *)a2;
*((float *)a2 + 1) = v4 * *((float *)a2 + 1);
*((float *)a2 + 2) = v4 * *((float *)a2 + 2);
*((float *)a2 + 3) = v4 * *((float *)a2 + 3);
*((float *)a2 + 4) = v4 * *((float *)a2 + 4);
*((float *)a2 + 5) = v4 * *((float *)a2 + 5);
*((float *)a2 + 6) = v4 * *((float *)a2 + 6);
*((float *)a2 + 7) = v4 * *((float *)a2 + 7);
*((float *)a2 + 8) = v4 * *((float *)a2 + 8);
*((float *)a2 + 9) = v4 * *((float *)a2 + 9);
*((float *)a2 + 10) = v4 * *((float *)a2 + 10);
*((float *)a2 + 11) = v4 * *((float *)a2 + 11);
*((float *)a2 + 12) = v4 * *((float *)a2 + 12);
*((_QWORD *)this + 76) = v5;
*((float *)this + 154) = a3;
return 1;
}
| updateDisplaySettings:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOVSS dword ptr [RBP + -0x1c],XMM0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x38],RAX
CALL 0x00154460
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RCX + 0x10]
MOV qword ptr [RBP + -0x24],RCX
MOVSS XMM0,dword ptr [RAX + 0x260]
UCOMISS XMM0,dword ptr [RBP + -0x24]
JNZ 0x0012fbf2
JP 0x0012fbf2
MOV RAX,qword ptr [RBP + -0x38]
MOVSS XMM0,dword ptr [RAX + 0x264]
UCOMISS XMM0,dword ptr [RBP + -0x20]
JNZ 0x0012fbf2
JP 0x0012fbf2
MOV RAX,qword ptr [RBP + -0x38]
MOVSS XMM0,dword ptr [RAX + 0x268]
UCOMISS XMM0,dword ptr [RBP + -0x1c]
JNZ 0x0012fbf2
JP 0x0012fbf2
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0012fd52
LAB_0012fbf2:
MOV RAX,qword ptr [RBP + -0x38]
MOVSS XMM0,dword ptr [RAX + 0x260]
MOVSS XMM1,dword ptr [0x002171b8]
DIVSS XMM0,XMM1
MULSS XMM0,dword ptr [RAX + 0x268]
MOVSS dword ptr [RBP + -0x28],XMM0
MOVSS XMM0,dword ptr [RBP + -0x24]
MOVSS XMM1,dword ptr [0x002171b8]
DIVSS XMM0,XMM1
MULSS XMM0,dword ptr [RBP + -0x1c]
MOVSS dword ptr [RBP + -0x2c],XMM0
MOVSS XMM0,dword ptr [RBP + -0x2c]
DIVSS XMM0,dword ptr [RBP + -0x28]
MOVSS dword ptr [RBP + -0x30],XMM0
MOVSS XMM0,dword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x18]
MULSS XMM0,dword ptr [RCX]
MOVSS dword ptr [RCX],XMM0
MOVSS XMM0,dword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x18]
MULSS XMM0,dword ptr [RCX + 0x4]
MOVSS dword ptr [RCX + 0x4],XMM0
MOVSS XMM0,dword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x18]
MULSS XMM0,dword ptr [RCX + 0x8]
MOVSS dword ptr [RCX + 0x8],XMM0
MOVSS XMM0,dword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x18]
MULSS XMM0,dword ptr [RCX + 0xc]
MOVSS dword ptr [RCX + 0xc],XMM0
MOVSS XMM0,dword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x18]
MULSS XMM0,dword ptr [RCX + 0x10]
MOVSS dword ptr [RCX + 0x10],XMM0
MOVSS XMM0,dword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x18]
MULSS XMM0,dword ptr [RCX + 0x14]
MOVSS dword ptr [RCX + 0x14],XMM0
MOVSS XMM0,dword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x18]
MULSS XMM0,dword ptr [RCX + 0x18]
MOVSS dword ptr [RCX + 0x18],XMM0
MOVSS XMM0,dword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x18]
MULSS XMM0,dword ptr [RCX + 0x1c]
MOVSS dword ptr [RCX + 0x1c],XMM0
MOVSS XMM0,dword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x18]
MULSS XMM0,dword ptr [RCX + 0x20]
MOVSS dword ptr [RCX + 0x20],XMM0
MOVSS XMM0,dword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x18]
MULSS XMM0,dword ptr [RCX + 0x24]
MOVSS dword ptr [RCX + 0x24],XMM0
MOVSS XMM0,dword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x18]
MULSS XMM0,dword ptr [RCX + 0x28]
MOVSS dword ptr [RCX + 0x28],XMM0
MOVSS XMM0,dword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x18]
MULSS XMM0,dword ptr [RCX + 0x2c]
MOVSS dword ptr [RCX + 0x2c],XMM0
MOVSS XMM0,dword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x18]
MULSS XMM0,dword ptr [RCX + 0x30]
MOVSS dword ptr [RCX + 0x30],XMM0
MOV RCX,qword ptr [RBP + -0x24]
MOV qword ptr [RAX + 0x260],RCX
MOVSS XMM0,dword ptr [RBP + -0x1c]
MOVSS dword ptr [RAX + 0x268],XMM0
MOV byte ptr [RBP + -0x1],0x1
LAB_0012fd52:
MOV AL,byte ptr [RBP + -0x1]
AND AL,0x1
ADD RSP,0x40
POP RBP
RET
|
/* NumbersPanelImpl::updateDisplaySettings(PresetDisplaySettings&, float) */
int1 __thiscall
NumbersPanelImpl::updateDisplaySettings
(NumbersPanelImpl *this,PresetDisplaySettings *param_1,float param_2)
{
int8 uVar1;
long lVar2;
float fVar3;
float local_2c;
float fStack_28;
lVar2 = ImGui::GetMainViewport();
uVar1 = *(int8 *)(lVar2 + 0x10);
local_2c = (float)uVar1;
if ((*(float *)(this + 0x260) == local_2c) && (!NAN(*(float *)(this + 0x260)) && !NAN(local_2c)))
{
fStack_28 = (float)((ulong)uVar1 >> 0x20);
if ((*(float *)(this + 0x264) == fStack_28) &&
(!NAN(*(float *)(this + 0x264)) && !NAN(fStack_28))) {
if ((*(float *)(this + 0x268) == param_2) && (!NAN(*(float *)(this + 0x268)) && !NAN(param_2))
) {
return 0;
}
}
}
fVar3 = ((local_2c / DAT_002171b8) * param_2) /
((*(float *)(this + 0x260) / DAT_002171b8) * *(float *)(this + 0x268));
*(float *)param_1 = fVar3 * *(float *)param_1;
*(float *)(param_1 + 4) = fVar3 * *(float *)(param_1 + 4);
*(float *)(param_1 + 8) = fVar3 * *(float *)(param_1 + 8);
*(float *)(param_1 + 0xc) = fVar3 * *(float *)(param_1 + 0xc);
*(float *)(param_1 + 0x10) = fVar3 * *(float *)(param_1 + 0x10);
*(float *)(param_1 + 0x14) = fVar3 * *(float *)(param_1 + 0x14);
*(float *)(param_1 + 0x18) = fVar3 * *(float *)(param_1 + 0x18);
*(float *)(param_1 + 0x1c) = fVar3 * *(float *)(param_1 + 0x1c);
*(float *)(param_1 + 0x20) = fVar3 * *(float *)(param_1 + 0x20);
*(float *)(param_1 + 0x24) = fVar3 * *(float *)(param_1 + 0x24);
*(float *)(param_1 + 0x28) = fVar3 * *(float *)(param_1 + 0x28);
*(float *)(param_1 + 0x2c) = fVar3 * *(float *)(param_1 + 0x2c);
*(float *)(param_1 + 0x30) = fVar3 * *(float *)(param_1 + 0x30);
*(int8 *)(this + 0x260) = uVar1;
*(float *)(this + 0x268) = param_2;
return 1;
}
| |
27,044 | Catch::RunContext::handleUnexpectedInflightException(Catch::AssertionInfo const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, Catch::AssertionReaction&) | AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.cpp | void RunContext::handleUnexpectedInflightException(
AssertionInfo const& info,
std::string const& message,
AssertionReaction& reaction
) {
m_lastAssertionInfo = info;
AssertionResultData data( ResultWas::ThrewException, LazyExpression( false ) );
data.message = message;
AssertionResult assertionResult{ info, CATCH_MOVE(data) };
assertionEnded( assertionResult );
populateReaction( reaction );
} | O3 | cpp | Catch::RunContext::handleUnexpectedInflightException(Catch::AssertionInfo const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, Catch::AssertionReaction&):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf0, %rsp
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r14
movl 0x30(%rsi), %eax
movl %eax, 0x178(%rdi)
movups (%rsi), %xmm0
movups 0x10(%rsi), %xmm1
movups 0x20(%rsi), %xmm2
movups %xmm2, 0x168(%rdi)
movups %xmm1, 0x158(%rdi)
movups %xmm0, 0x148(%rdi)
leaq 0x60(%rsp), %rdx
movq $0x0, (%rdx)
movb $0x0, 0x8(%rdx)
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movl $0x111, %esi # imm = 0x111
callq 0x4ac20
movq %r13, %rdi
movq %r12, %rsi
callq 0x81d42
leaq 0x60(%rsp), %rdi
leaq 0x8(%rsp), %rdx
movq %r15, %rsi
callq 0x4ad18
leaq 0x60(%rsp), %rsi
movq %r14, %rdi
callq 0x5f466
movq 0xc8(%r14), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
movb %al, (%rbx)
movq 0xc8(%r14), %rdi
movq 0xd8(%r14), %r15
movq (%rdi), %rax
callq *0x48(%rax)
cltq
movb 0x178(%r14), %cl
andb $0x1, %cl
cmpq %rax, %r15
movzbl %cl, %eax
movl $0x1, %ecx
cmovbl %eax, %ecx
movb %cl, 0x1(%rbx)
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6071c
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x17150
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6073d
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x17150
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x60758
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x17150
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x60773
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x17150
addq $0xf0, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x60786
movq %rax, %rbx
jmp 0x60798
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x774ea
leaq 0x8(%rsp), %rdi
callq 0x78990
movq %rbx, %rdi
callq 0x17740
| _ZN5Catch10RunContext33handleUnexpectedInflightExceptionERKNS_13AssertionInfoERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_17AssertionReactionE:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0F0h
mov rbx, rcx
mov r12, rdx
mov r15, rsi
mov r14, rdi
mov eax, [rsi+30h]
mov [rdi+178h], eax
movups xmm0, xmmword ptr [rsi]
movups xmm1, xmmword ptr [rsi+10h]
movups xmm2, xmmword ptr [rsi+20h]
movups xmmword ptr [rdi+168h], xmm2
movups xmmword ptr [rdi+158h], xmm1
movups xmmword ptr [rdi+148h], xmm0
lea rdx, [rsp+118h+var_B8]
mov qword ptr [rdx], 0
mov byte ptr [rdx+8], 0
lea r13, [rsp+118h+var_110]
mov rdi, r13
mov esi, 111h
call _ZN5Catch19AssertionResultDataC2ENS_9ResultWas6OfTypeERKNS_14LazyExpressionE; Catch::AssertionResultData::AssertionResultData(Catch::ResultWas::OfType,Catch::LazyExpression const&)
mov rdi, r13
mov rsi, r12
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
lea rdi, [rsp+118h+var_B8]
lea rdx, [rsp+118h+var_110]
mov rsi, r15
call _ZN5Catch15AssertionResultC2ERKNS_13AssertionInfoEONS_19AssertionResultDataE; Catch::AssertionResult::AssertionResult(Catch::AssertionInfo const&,Catch::AssertionResultData &&)
lea rsi, [rsp+118h+var_B8]; Catch::AssertionResult *
mov rdi, r14; this
call _ZN5Catch10RunContext14assertionEndedERKNS_15AssertionResultE; Catch::RunContext::assertionEnded(Catch::AssertionResult const&)
mov rdi, [r14+0C8h]
mov rax, [rdi]
call qword ptr [rax+28h]
mov [rbx], al
mov rdi, [r14+0C8h]
mov r15, [r14+0D8h]
mov rax, [rdi]
call qword ptr [rax+48h]
cdqe
mov cl, [r14+178h]
and cl, 1
cmp r15, rax
movzx eax, cl
mov ecx, 1
cmovb ecx, eax
mov [rbx+1], cl
lea rax, [rsp+118h+var_50]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_6071C
mov rsi, [rsp+118h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6071C:
lea rax, [rsp+118h+var_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_6073D
mov rsi, [rsp+118h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6073D:
lea rax, [rsp+118h+var_E0]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_60758
mov rsi, [rsp+118h+var_E0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_60758:
lea rax, [rsp+118h+var_100]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_60773
mov rsi, [rsp+118h+var_100]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_60773:
add rsp, 0F0h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
jmp short $+2
loc_60786:
mov rbx, rax
jmp short loc_60798
mov rbx, rax
lea rdi, [rsp+arg_58]; this
call _ZN5Catch15AssertionResultD2Ev; Catch::AssertionResult::~AssertionResult()
loc_60798:
lea rdi, [rsp+arg_0]; this
call _ZN5Catch19AssertionResultDataD2Ev; Catch::AssertionResultData::~AssertionResultData()
mov rdi, rbx
call __Unwind_Resume
| void Catch::RunContext::handleUnexpectedInflightException(
Catch::RunContext *this,
long long a2,
long long a3,
_BYTE *a4)
{
__int128 v6; // xmm0
__int128 v7; // xmm1
unsigned long long v8; // r15
bool v9; // cf
char v10; // cl
void *v11[2]; // [rsp+8h] [rbp-110h] BYREF
long long v12; // [rsp+18h] [rbp-100h] BYREF
long long *v13; // [rsp+28h] [rbp-F0h]
long long v14; // [rsp+38h] [rbp-E0h] BYREF
_OWORD v15[3]; // [rsp+60h] [rbp-B8h] BYREF
long long *v16; // [rsp+98h] [rbp-80h]
long long v17; // [rsp+A8h] [rbp-70h] BYREF
long long *v18; // [rsp+B8h] [rbp-60h]
long long v19; // [rsp+C8h] [rbp-50h] BYREF
*((_DWORD *)this + 94) = *(_DWORD *)(a2 + 48);
v6 = *(_OWORD *)a2;
v7 = *(_OWORD *)(a2 + 16);
*(_OWORD *)((char *)this + 360) = *(_OWORD *)(a2 + 32);
*(_OWORD *)((char *)this + 344) = v7;
*(_OWORD *)((char *)this + 328) = v6;
*(_QWORD *)&v15[0] = 0LL;
BYTE8(v15[0]) = 0;
Catch::AssertionResultData::AssertionResultData((long long)v11, 273, v15);
std::string::_M_assign(v11, a3);
Catch::AssertionResult::AssertionResult((long long)v15, (__int128 *)a2, (long long)v11);
Catch::RunContext::assertionEnded(this, (const Catch::AssertionResult *)v15, *(double *)&v6);
*a4 = (*(long long ( **)(_QWORD))(**((_QWORD **)this + 25) + 40LL))(*((_QWORD *)this + 25));
v8 = *((_QWORD *)this + 27);
v9 = v8 < (*(int ( **)(_QWORD))(**((_QWORD **)this + 25) + 72LL))(*((_QWORD *)this + 25));
v10 = 1;
if ( v9 )
v10 = *((_BYTE *)this + 376) & 1;
a4[1] = v10;
if ( v18 != &v19 )
operator delete(v18, v19 + 1);
if ( v16 != &v17 )
operator delete(v16, v17 + 1);
if ( v13 != &v14 )
operator delete(v13, v14 + 1);
if ( v11[0] != &v12 )
operator delete(v11[0], v12 + 1);
}
| handleUnexpectedInflightException:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xf0
MOV RBX,RCX
MOV R12,RDX
MOV R15,RSI
MOV R14,RDI
MOV EAX,dword ptr [RSI + 0x30]
MOV dword ptr [RDI + 0x178],EAX
MOVUPS XMM0,xmmword ptr [RSI]
MOVUPS XMM1,xmmword ptr [RSI + 0x10]
MOVUPS XMM2,xmmword ptr [RSI + 0x20]
MOVUPS xmmword ptr [RDI + 0x168],XMM2
MOVUPS xmmword ptr [RDI + 0x158],XMM1
MOVUPS xmmword ptr [RDI + 0x148],XMM0
LEA RDX,[RSP + 0x60]
MOV qword ptr [RDX],0x0
MOV byte ptr [RDX + 0x8],0x0
LEA R13,[RSP + 0x8]
MOV RDI,R13
MOV ESI,0x111
CALL 0x0014ac20
LAB_00160691:
MOV RDI,R13
MOV RSI,R12
CALL 0x00181d42
LAB_0016069c:
LEA RDI,[RSP + 0x60]
LEA RDX,[RSP + 0x8]
MOV RSI,R15
CALL 0x0014ad18
LAB_001606ae:
LEA RSI,[RSP + 0x60]
MOV RDI,R14
CALL 0x0015f466
MOV RDI,qword ptr [R14 + 0xc8]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x28]
MOV byte ptr [RBX],AL
MOV RDI,qword ptr [R14 + 0xc8]
MOV R15,qword ptr [R14 + 0xd8]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x48]
LAB_001606de:
CDQE
MOV CL,byte ptr [R14 + 0x178]
AND CL,0x1
CMP R15,RAX
MOVZX EAX,CL
MOV ECX,0x1
CMOVC ECX,EAX
MOV byte ptr [RBX + 0x1],CL
LEA RAX,[RSP + 0xc8]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0016071c
MOV RSI,qword ptr [RSP + 0xc8]
INC RSI
CALL 0x00117150
LAB_0016071c:
LEA RAX,[RSP + 0xa8]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0016073d
MOV RSI,qword ptr [RSP + 0xa8]
INC RSI
CALL 0x00117150
LAB_0016073d:
LEA RAX,[RSP + 0x38]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00160758
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x00117150
LAB_00160758:
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00160773
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x00117150
LAB_00160773:
ADD RSP,0xf0
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* Catch::RunContext::handleUnexpectedInflightException(Catch::AssertionInfo const&,
std::__cxx11::string const&, Catch::AssertionReaction&) */
void __thiscall
Catch::RunContext::handleUnexpectedInflightException
(RunContext *this,AssertionInfo *param_1,string *param_2,AssertionReaction *param_3)
{
ulong uVar1;
int4 uVar2;
int4 uVar3;
int4 uVar4;
int4 uVar5;
int4 uVar6;
int4 uVar7;
int4 uVar8;
int4 uVar9;
int4 uVar10;
int4 uVar11;
int4 uVar12;
AssertionReaction AVar13;
int iVar14;
long *local_110 [2];
long local_100 [2];
long *local_f0;
long local_e0 [5];
int8 local_b8;
int1 local_b0;
long *local_80;
long local_70 [2];
long *local_60;
long local_50 [5];
*(int4 *)(this + 0x178) = *(int4 *)(param_1 + 0x30);
uVar2 = *(int4 *)param_1;
uVar3 = *(int4 *)(param_1 + 4);
uVar4 = *(int4 *)(param_1 + 8);
uVar5 = *(int4 *)(param_1 + 0xc);
uVar6 = *(int4 *)(param_1 + 0x10);
uVar7 = *(int4 *)(param_1 + 0x14);
uVar8 = *(int4 *)(param_1 + 0x18);
uVar9 = *(int4 *)(param_1 + 0x1c);
uVar10 = *(int4 *)(param_1 + 0x24);
uVar11 = *(int4 *)(param_1 + 0x28);
uVar12 = *(int4 *)(param_1 + 0x2c);
*(int4 *)(this + 0x168) = *(int4 *)(param_1 + 0x20);
*(int4 *)(this + 0x16c) = uVar10;
*(int4 *)(this + 0x170) = uVar11;
*(int4 *)(this + 0x174) = uVar12;
*(int4 *)(this + 0x158) = uVar6;
*(int4 *)(this + 0x15c) = uVar7;
*(int4 *)(this + 0x160) = uVar8;
*(int4 *)(this + 0x164) = uVar9;
*(int4 *)(this + 0x148) = uVar2;
*(int4 *)(this + 0x14c) = uVar3;
*(int4 *)(this + 0x150) = uVar4;
*(int4 *)(this + 0x154) = uVar5;
local_b8 = 0;
local_b0 = 0;
AssertionResultData::AssertionResultData((AssertionResultData *)local_110,0x111);
/* try { // try from 00160691 to 0016069b has its CatchHandler @ 00160786 */
std::__cxx11::string::_M_assign((string *)local_110,param_2);
/* try { // try from 0016069c to 001606ad has its CatchHandler @ 00160784 */
AssertionResult::AssertionResult
((AssertionResult *)&local_b8,param_1,(AssertionResultData *)local_110);
/* try { // try from 001606ae to 001606dd has its CatchHandler @ 0016078b */
assertionEnded(this,(AssertionResult *)&local_b8);
AVar13 = (AssertionReaction)(**(code **)(**(long **)(this + 200) + 0x28))();
*param_3 = AVar13;
uVar1 = *(ulong *)(this + 0xd8);
iVar14 = (**(code **)(**(long **)(this + 200) + 0x48))();
AVar13 = (AssertionReaction)0x1;
if (uVar1 < (ulong)(long)iVar14) {
AVar13 = (AssertionReaction)((byte)this[0x178] & 1);
}
param_3[1] = AVar13;
if (local_60 != local_50) {
operator_delete(local_60,local_50[0] + 1);
}
if (local_80 != local_70) {
operator_delete(local_80,local_70[0] + 1);
}
if (local_f0 != local_e0) {
operator_delete(local_f0,local_e0[0] + 1);
}
if (local_110[0] != local_100) {
operator_delete(local_110[0],local_100[0] + 1);
}
return;
}
| |
27,045 | uint64_from_be | corpus-core[P]colibri-stateless/src/util/bytes.c | uint64_t uint64_from_be(uint8_t* data) {
return (uint64_t) data[7] |
((uint64_t) data[6] << 8) |
((uint64_t) data[5] << 16) |
((uint64_t) data[4] << 24) |
((uint64_t) data[3] << 32) |
((uint64_t) data[2] << 40) |
((uint64_t) data[1] << 48) |
((uint64_t) data[0] << 56);
} | O0 | c | uint64_from_be:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x7(%rax), %eax
movq -0x8(%rbp), %rcx
movzbl 0x6(%rcx), %ecx
shlq $0x8, %rcx
orq %rcx, %rax
movq -0x8(%rbp), %rcx
movzbl 0x5(%rcx), %ecx
shlq $0x10, %rcx
orq %rcx, %rax
movq -0x8(%rbp), %rcx
movzbl 0x4(%rcx), %ecx
shlq $0x18, %rcx
orq %rcx, %rax
movq -0x8(%rbp), %rcx
movzbl 0x3(%rcx), %ecx
shlq $0x20, %rcx
orq %rcx, %rax
movq -0x8(%rbp), %rcx
movzbl 0x2(%rcx), %ecx
shlq $0x28, %rcx
orq %rcx, %rax
movq -0x8(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
shlq $0x30, %rcx
orq %rcx, %rax
movq -0x8(%rbp), %rcx
movzbl (%rcx), %ecx
shlq $0x38, %rcx
orq %rcx, %rax
popq %rbp
retq
nopw (%rax,%rax)
| uint64_from_be:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax+7]
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx+6]
shl rcx, 8
or rax, rcx
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx+5]
shl rcx, 10h
or rax, rcx
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx+4]
shl rcx, 18h
or rax, rcx
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx+3]
shl rcx, 20h
or rax, rcx
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx+2]
shl rcx, 28h
or rax, rcx
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx+1]
shl rcx, 30h
or rax, rcx
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx]
shl rcx, 38h
or rax, rcx
pop rbp
retn
| unsigned long long uint64_from_be(unsigned long long *a1)
{
return _byteswap_uint64(*a1);
}
| uint64_from_be:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX + 0x7]
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX + 0x6]
SHL RCX,0x8
OR RAX,RCX
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX + 0x5]
SHL RCX,0x10
OR RAX,RCX
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX + 0x4]
SHL RCX,0x18
OR RAX,RCX
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX + 0x3]
SHL RCX,0x20
OR RAX,RCX
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL RCX,0x28
OR RAX,RCX
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL RCX,0x30
OR RAX,RCX
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX]
SHL RCX,0x38
OR RAX,RCX
POP RBP
RET
|
int8 uint64_from_be(int1 *param_1)
{
return CONCAT17(*param_1,CONCAT16(param_1[1],
CONCAT15(param_1[2],
CONCAT14(param_1[3],
CONCAT13(param_1[4],
CONCAT12(param_1[5],
CONCAT11(param_1[6],
param_1[7])))))));
}
| |
27,046 | uint64_from_be | corpus-core[P]colibri-stateless/src/util/bytes.c | uint64_t uint64_from_be(uint8_t* data) {
return (uint64_t) data[7] |
((uint64_t) data[6] << 8) |
((uint64_t) data[5] << 16) |
((uint64_t) data[4] << 24) |
((uint64_t) data[3] << 32) |
((uint64_t) data[2] << 40) |
((uint64_t) data[1] << 48) |
((uint64_t) data[0] << 56);
} | O1 | c | uint64_from_be:
movq (%rdi), %rax
bswapq %rax
retq
| uint64_from_be:
mov rax, [rdi]
bswap rax
retn
| unsigned long long uint64_from_be(unsigned long long *a1)
{
return _byteswap_uint64(*a1);
}
| uint64_from_be:
MOV RAX,qword ptr [RDI]
BSWAP RAX
RET
|
ulong uint64_from_be(ulong *param_1)
{
ulong uVar1;
uVar1 = *param_1;
return uVar1 >> 0x38 | (uVar1 & 0xff000000000000) >> 0x28 | (uVar1 & 0xff0000000000) >> 0x18 |
(uVar1 & 0xff00000000) >> 8 | (uVar1 & 0xff000000) << 8 | (uVar1 & 0xff0000) << 0x18 |
(uVar1 & 0xff00) << 0x28 | uVar1 << 0x38;
}
| |
27,047 | uint64_from_be | corpus-core[P]colibri-stateless/src/util/bytes.c | uint64_t uint64_from_be(uint8_t* data) {
return (uint64_t) data[7] |
((uint64_t) data[6] << 8) |
((uint64_t) data[5] << 16) |
((uint64_t) data[4] << 24) |
((uint64_t) data[3] << 32) |
((uint64_t) data[2] << 40) |
((uint64_t) data[1] << 48) |
((uint64_t) data[0] << 56);
} | O2 | c | uint64_from_be:
movq (%rdi), %rax
bswapq %rax
retq
| uint64_from_be:
mov rax, [rdi]
bswap rax
retn
| unsigned long long uint64_from_be(unsigned long long *a1)
{
return _byteswap_uint64(*a1);
}
| uint64_from_be:
MOV RAX,qword ptr [RDI]
BSWAP RAX
RET
|
ulong uint64_from_be(ulong *param_1)
{
ulong uVar1;
uVar1 = *param_1;
return uVar1 >> 0x38 | (uVar1 & 0xff000000000000) >> 0x28 | (uVar1 & 0xff0000000000) >> 0x18 |
(uVar1 & 0xff00000000) >> 8 | (uVar1 & 0xff000000) << 8 | (uVar1 & 0xff0000) << 0x18 |
(uVar1 & 0xff00) << 0x28 | uVar1 << 0x38;
}
| |
27,048 | my_convert_using_func | eloqsql/strings/ctype.c | uint32
my_convert_using_func(char *to, size_t to_length,
CHARSET_INFO *to_cs, my_charset_conv_wc_mb wc_mb,
const char *from, size_t from_length,
CHARSET_INFO *from_cs, my_charset_conv_mb_wc mb_wc,
uint *errors)
{
int cnvres;
my_wc_t wc;
const uchar *from_end= (const uchar*) from + from_length;
char *to_start= to;
uchar *to_end= (uchar*) to + to_length;
uint error_count= 0;
while (1)
{
if ((cnvres= (*mb_wc)(from_cs, &wc, (uchar*) from, from_end)) > 0)
from+= cnvres;
else if (cnvres == MY_CS_ILSEQ)
{
error_count++;
from++;
wc= '?';
}
else if (cnvres > MY_CS_TOOSMALL)
{
/*
A correct multibyte sequence detected
But it doesn't have Unicode mapping.
*/
error_count++;
from+= (-cnvres);
wc= '?';
}
else
{
if ((uchar *) from >= from_end)
break; /* End of line */
/* Incomplete byte sequence */
error_count++;
from++;
wc= '?';
}
outp:
if ((cnvres= (*wc_mb)(to_cs, wc, (uchar*) to, to_end)) > 0)
to+= cnvres;
else if (cnvres == MY_CS_ILUNI && wc != '?')
{
error_count++;
wc= '?';
goto outp;
}
else
break;
}
*errors= error_count;
return (uint32) (to - to_start);
} | O3 | c | my_convert_using_func:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %r13
movq %rcx, -0x40(%rbp)
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
addq %r8, %r9
movq %r9, -0x48(%rbp)
addq %rdi, %r14
xorl %r12d, %r12d
movq %rdi, -0x50(%rbp)
movq 0x10(%rbp), %rdi
leaq -0x38(%rbp), %rsi
movq %r13, %rdx
movq -0x48(%rbp), %rcx
callq *0x18(%rbp)
testl %eax, %eax
jle 0x5dc1e
movl %eax, %eax
addq %rax, %r13
movq %r13, -0x30(%rbp)
movq -0x38(%rbp), %rsi
movq -0x40(%rbp), %r13
jmp 0x5dc63
movq %r13, -0x30(%rbp)
je 0x5dc3b
cmpl $-0x64, %eax
movq -0x30(%rbp), %rcx
movq -0x40(%rbp), %r13
jb 0x5dc51
incl %r12d
negl %eax
addq %rax, %rcx
jmp 0x5dc5d
incl %r12d
incq -0x30(%rbp)
movq $0x3f, -0x38(%rbp)
movl $0x3f, %esi
jmp 0x5dc18
cmpq -0x48(%rbp), %rcx
jae 0x5dc9e
incl %r12d
incq %rcx
movq %rcx, -0x30(%rbp)
jmp 0x5dc81
movq %rbx, %rdi
movq %r15, %rdx
movq %r14, %rcx
callq *%r13
testl %eax, %eax
jg 0x5dc90
testl %eax, %eax
jne 0x5dc9e
cmpq $0x3f, -0x38(%rbp)
je 0x5dc9e
incl %r12d
movq $0x3f, -0x38(%rbp)
movl $0x3f, %esi
jmp 0x5dc63
movl %eax, %eax
addq %rax, %r15
movq -0x30(%rbp), %r13
jmp 0x5dbf5
movq 0x20(%rbp), %rax
movl %r12d, (%rax)
subl -0x50(%rbp), %r15d
movl %r15d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_convert_using_func:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r13, r8
mov [rbp+var_40], rcx
mov rbx, rdx
mov r14, rsi
mov r15, rdi
add r9, r8
mov [rbp+var_48], r9
add r14, rdi
xor r12d, r12d
mov [rbp+var_50], rdi
loc_5DBF5:
mov rdi, [rbp+arg_0]
lea rsi, [rbp+var_38]
mov rdx, r13
mov rcx, [rbp+var_48]
call [rbp+arg_8]
test eax, eax
jle short loc_5DC1E
mov eax, eax
add r13, rax
mov [rbp+var_30], r13
mov rsi, [rbp+var_38]
loc_5DC18:
mov r13, [rbp+var_40]
jmp short loc_5DC63
loc_5DC1E:
mov [rbp+var_30], r13
jz short loc_5DC3B
cmp eax, 0FFFFFF9Ch
mov rcx, [rbp+var_30]
mov r13, [rbp+var_40]
jb short loc_5DC51
inc r12d
neg eax
add rcx, rax
jmp short loc_5DC5D
loc_5DC3B:
inc r12d
inc [rbp+var_30]
mov [rbp+var_38], 3Fh ; '?'
mov esi, 3Fh ; '?'
jmp short loc_5DC18
loc_5DC51:
cmp rcx, [rbp+var_48]
jnb short loc_5DC9E
inc r12d
inc rcx
loc_5DC5D:
mov [rbp+var_30], rcx
jmp short loc_5DC81
loc_5DC63:
mov rdi, rbx
mov rdx, r15
mov rcx, r14
call r13
test eax, eax
jg short loc_5DC90
test eax, eax
jnz short loc_5DC9E
cmp [rbp+var_38], 3Fh ; '?'
jz short loc_5DC9E
inc r12d
loc_5DC81:
mov [rbp+var_38], 3Fh ; '?'
mov esi, 3Fh ; '?'
jmp short loc_5DC63
loc_5DC90:
mov eax, eax
add r15, rax
mov r13, [rbp+var_30]
jmp loc_5DBF5
loc_5DC9E:
mov rax, [rbp+arg_10]
mov [rax], r12d
sub r15d, dword ptr [rbp+var_50]
mov eax, r15d
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_convert_using_func(
long long a1,
long long a2,
long long a3,
long long ( *a4)(long long, long long, long long, long long),
long long a5,
long long a6,
long long a7,
long long ( *a8)(long long, long long *, long long, unsigned long long),
_DWORD *a9)
{
long long v9; // r13
long long v11; // r15
long long v12; // r14
int v13; // r12d
int v14; // eax
long long v15; // rsi
long long ( *v16)(long long, long long, long long, long long); // r13
int v17; // eax
unsigned long long v18; // rcx
unsigned long long v20; // [rsp+8h] [rbp-48h]
long long v22; // [rsp+18h] [rbp-38h] BYREF
unsigned long long v23; // [rsp+20h] [rbp-30h]
v9 = a5;
v11 = a1;
v20 = a5 + a6;
v12 = a1 + a2;
v13 = 0;
while ( 1 )
{
v14 = a8(a7, &v22, v9, v20);
if ( v14 > 0 )
{
v23 = (unsigned int)v14 + v9;
v15 = v22;
LABEL_4:
v16 = a4;
v17 = a4(a3, v15, v11, v12);
goto LABEL_12;
}
v23 = v9;
if ( !v14 )
{
++v13;
++v23;
v22 = 63LL;
v15 = 63LL;
goto LABEL_4;
}
v16 = a4;
if ( (unsigned int)v14 < 0xFFFFFF9C )
break;
++v13;
v18 = (unsigned int)-v14 + v23;
LABEL_11:
v23 = v18;
while ( 1 )
{
v22 = 63LL;
v17 = v16(a3, 63LL, v11, v12);
LABEL_12:
if ( v17 > 0 )
break;
if ( v17 || v22 == 63 )
goto LABEL_18;
++v13;
}
v11 += (unsigned int)v17;
v9 = v23;
}
if ( v23 < v20 )
{
++v13;
v18 = v23 + 1;
goto LABEL_11;
}
LABEL_18:
*a9 = v13;
return (unsigned int)(v11 - a1);
}
| my_convert_using_func:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R13,R8
MOV qword ptr [RBP + -0x40],RCX
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
ADD R9,R8
MOV qword ptr [RBP + -0x48],R9
ADD R14,RDI
XOR R12D,R12D
MOV qword ptr [RBP + -0x50],RDI
LAB_0015dbf5:
MOV RDI,qword ptr [RBP + 0x10]
LEA RSI,[RBP + -0x38]
MOV RDX,R13
MOV RCX,qword ptr [RBP + -0x48]
CALL qword ptr [RBP + 0x18]
TEST EAX,EAX
JLE 0x0015dc1e
MOV EAX,EAX
ADD R13,RAX
MOV qword ptr [RBP + -0x30],R13
MOV RSI,qword ptr [RBP + -0x38]
LAB_0015dc18:
MOV R13,qword ptr [RBP + -0x40]
JMP 0x0015dc63
LAB_0015dc1e:
MOV qword ptr [RBP + -0x30],R13
JZ 0x0015dc3b
CMP EAX,-0x64
MOV RCX,qword ptr [RBP + -0x30]
MOV R13,qword ptr [RBP + -0x40]
JC 0x0015dc51
INC R12D
NEG EAX
ADD RCX,RAX
JMP 0x0015dc5d
LAB_0015dc3b:
INC R12D
INC qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x38],0x3f
MOV ESI,0x3f
JMP 0x0015dc18
LAB_0015dc51:
CMP RCX,qword ptr [RBP + -0x48]
JNC 0x0015dc9e
INC R12D
INC RCX
LAB_0015dc5d:
MOV qword ptr [RBP + -0x30],RCX
JMP 0x0015dc81
LAB_0015dc63:
MOV RDI,RBX
MOV RDX,R15
MOV RCX,R14
CALL R13
TEST EAX,EAX
JG 0x0015dc90
TEST EAX,EAX
JNZ 0x0015dc9e
CMP qword ptr [RBP + -0x38],0x3f
JZ 0x0015dc9e
INC R12D
LAB_0015dc81:
MOV qword ptr [RBP + -0x38],0x3f
MOV ESI,0x3f
JMP 0x0015dc63
LAB_0015dc90:
MOV EAX,EAX
ADD R15,RAX
MOV R13,qword ptr [RBP + -0x30]
JMP 0x0015dbf5
LAB_0015dc9e:
MOV RAX,qword ptr [RBP + 0x20]
MOV dword ptr [RAX],R12D
SUB R15D,dword ptr [RBP + -0x50]
MOV EAX,R15D
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int my_convert_using_func
(long param_1,long param_2,int8 param_3,code *param_4,ulong param_5,long param_6
,int8 param_7,code *param_8,int *param_9)
{
uint uVar1;
ulong uVar2;
int iVar3;
long lVar4;
int local_58;
long local_40;
ulong local_38;
uVar2 = param_6 + param_5;
iVar3 = 0;
lVar4 = param_1;
do {
uVar1 = (*param_8)(param_7,&local_40,param_5,uVar2);
if ((int)uVar1 < 1) {
if (uVar1 != 0) {
if (0xffffff9b < uVar1) {
local_38 = param_5 + -uVar1;
goto LAB_0015dc81;
}
if (param_5 < uVar2) {
local_38 = param_5 + 1;
goto LAB_0015dc81;
}
LAB_0015dc9e:
*param_9 = iVar3;
local_58 = (int)param_1;
return (int)lVar4 - local_58;
}
iVar3 = iVar3 + 1;
local_38 = param_5 + 1;
local_40 = 0x3f;
}
else {
local_38 = param_5 + uVar1;
}
while (uVar1 = (*param_4)(param_3,local_40,lVar4,param_2 + param_1), (int)uVar1 < 1) {
if ((uVar1 != 0) || (local_40 == 0x3f)) goto LAB_0015dc9e;
LAB_0015dc81:
iVar3 = iVar3 + 1;
local_40 = 0x3f;
}
lVar4 = lVar4 + (ulong)uVar1;
param_5 = local_38;
} while( true );
}
| |
27,049 | PFS_account::aggregate_statements(PFS_user*, PFS_host*) | eloqsql/storage/perfschema/pfs_account.cc | void PFS_account::aggregate_statements(PFS_user *safe_user, PFS_host *safe_host)
{
if (read_instr_class_statements_stats() == NULL)
return;
if (likely(safe_user != NULL && safe_host != NULL))
{
/*
Aggregate EVENTS_STATEMENTS_SUMMARY_BY_ACCOUNT_BY_EVENT_NAME to:
- EVENTS_STATEMENTS_SUMMARY_BY_USER_BY_EVENT_NAME
- EVENTS_STATEMENTS_SUMMARY_BY_HOST_BY_EVENT_NAME
in parallel.
*/
aggregate_all_statements(write_instr_class_statements_stats(),
safe_user->write_instr_class_statements_stats(),
safe_host->write_instr_class_statements_stats());
return;
}
if (safe_user != NULL)
{
/*
Aggregate EVENTS_STATEMENTS_SUMMARY_BY_ACCOUNT_BY_EVENT_NAME to:
- EVENTS_STATEMENTS_SUMMARY_BY_USER_BY_EVENT_NAME
- EVENTS_STATEMENTS_SUMMARY_GLOBAL_BY_EVENT_NAME
in parallel.
*/
aggregate_all_statements(write_instr_class_statements_stats(),
safe_user->write_instr_class_statements_stats(),
global_instr_class_statements_array);
return;
}
if (safe_host != NULL)
{
/*
Aggregate EVENTS_STATEMENTS_SUMMARY_BY_ACCOUNT_BY_EVENT_NAME to:
- EVENTS_STATEMENTS_SUMMARY_BY_HOST_BY_EVENT_NAME
*/
aggregate_all_statements(write_instr_class_statements_stats(),
safe_host->write_instr_class_statements_stats());
return;
}
/*
Aggregate EVENTS_STATEMENTS_SUMMARY_BY_ACCOUNT_BY_EVENT_NAME to:
- EVENTS_STATEMENTS_SUMMARY_GLOBAL_BY_EVENT_NAME
*/
aggregate_all_statements(write_instr_class_statements_stats(),
global_instr_class_statements_array);
return;
} | O0 | cpp | PFS_account::aggregate_statements(PFS_user*, PFS_host*):
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x20(%rbp)
callq 0x38830
cmpq $0x0, %rax
jne 0x378ac
jmp 0x37980
xorl %eax, %eax
cmpq $0x0, -0x10(%rbp)
movb %al, -0x21(%rbp)
je 0x378c3
cmpq $0x0, -0x18(%rbp)
setne %al
movb %al, -0x21(%rbp)
movb -0x21(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x37905
movq -0x20(%rbp), %rdi
callq 0x365a0
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
callq 0x365a0
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rdi
callq 0x365a0
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq %rax, %rdx
callq 0x457f0
jmp 0x37980
cmpq $0x0, -0x10(%rbp)
je 0x3793a
movq -0x20(%rbp), %rdi
callq 0x365a0
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
callq 0x365a0
movq -0x40(%rbp), %rdi
movq %rax, %rsi
leaq 0x3d4490(%rip), %rax # 0x40bdc0
movq (%rax), %rdx
callq 0x457f0
jmp 0x37980
cmpq $0x0, -0x18(%rbp)
je 0x37965
movq -0x20(%rbp), %rdi
callq 0x365a0
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rdi
callq 0x365a0
movq -0x48(%rbp), %rdi
movq %rax, %rsi
callq 0x45760
jmp 0x37980
movq -0x20(%rbp), %rdi
callq 0x365a0
movq %rax, %rdi
leaq 0x3d4448(%rip), %rax # 0x40bdc0
movq (%rax), %rsi
callq 0x45760
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ZN11PFS_account20aggregate_statementsEP8PFS_userP8PFS_host:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rdi, [rbp+var_8]; this
mov [rbp+var_20], rdi
call _ZNK20PFS_connection_slice33read_instr_class_statements_statsEv; PFS_connection_slice::read_instr_class_statements_stats(void)
cmp rax, 0
jnz short loc_378AC
jmp loc_37980
loc_378AC:
xor eax, eax
cmp [rbp+var_10], 0
mov [rbp+var_21], al
jz short loc_378C3
cmp [rbp+var_18], 0
setnz al
mov [rbp+var_21], al
loc_378C3:
mov al, [rbp+var_21]
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_37905
mov rdi, [rbp+var_20]; this
call _ZN20PFS_connection_slice34write_instr_class_statements_statsEv; PFS_connection_slice::write_instr_class_statements_stats(void)
mov [rbp+var_38], rax
mov rdi, [rbp+var_10]; this
call _ZN20PFS_connection_slice34write_instr_class_statements_statsEv; PFS_connection_slice::write_instr_class_statements_stats(void)
mov [rbp+var_30], rax
mov rdi, [rbp+var_18]; this
call _ZN20PFS_connection_slice34write_instr_class_statements_statsEv; PFS_connection_slice::write_instr_class_statements_stats(void)
mov rdi, [rbp+var_38]; PFS_statement_stat *
mov rsi, [rbp+var_30]; PFS_statement_stat *
mov rdx, rax; PFS_statement_stat *
call _Z24aggregate_all_statementsP18PFS_statement_statS0_S0_; aggregate_all_statements(PFS_statement_stat *,PFS_statement_stat *,PFS_statement_stat *)
jmp short loc_37980
loc_37905:
cmp [rbp+var_10], 0
jz short loc_3793A
mov rdi, [rbp+var_20]; this
call _ZN20PFS_connection_slice34write_instr_class_statements_statsEv; PFS_connection_slice::write_instr_class_statements_stats(void)
mov [rbp+var_40], rax
mov rdi, [rbp+var_10]; this
call _ZN20PFS_connection_slice34write_instr_class_statements_statsEv; PFS_connection_slice::write_instr_class_statements_stats(void)
mov rdi, [rbp+var_40]; PFS_statement_stat *
mov rsi, rax; PFS_statement_stat *
lea rax, global_instr_class_statements_array
mov rdx, [rax]; PFS_statement_stat *
call _Z24aggregate_all_statementsP18PFS_statement_statS0_S0_; aggregate_all_statements(PFS_statement_stat *,PFS_statement_stat *,PFS_statement_stat *)
jmp short loc_37980
loc_3793A:
cmp [rbp+var_18], 0
jz short loc_37965
mov rdi, [rbp+var_20]; this
call _ZN20PFS_connection_slice34write_instr_class_statements_statsEv; PFS_connection_slice::write_instr_class_statements_stats(void)
mov [rbp+var_48], rax
mov rdi, [rbp+var_18]; this
call _ZN20PFS_connection_slice34write_instr_class_statements_statsEv; PFS_connection_slice::write_instr_class_statements_stats(void)
mov rdi, [rbp+var_48]; PFS_statement_stat *
mov rsi, rax; PFS_statement_stat *
call _Z24aggregate_all_statementsP18PFS_statement_statS0_; aggregate_all_statements(PFS_statement_stat *,PFS_statement_stat *)
jmp short loc_37980
loc_37965:
mov rdi, [rbp+var_20]; this
call _ZN20PFS_connection_slice34write_instr_class_statements_statsEv; PFS_connection_slice::write_instr_class_statements_stats(void)
mov rdi, rax; PFS_statement_stat *
lea rax, global_instr_class_statements_array
mov rsi, [rax]; PFS_statement_stat *
call _Z24aggregate_all_statementsP18PFS_statement_statS0_; aggregate_all_statements(PFS_statement_stat *,PFS_statement_stat *)
loc_37980:
add rsp, 50h
pop rbp
retn
| long long PFS_account::aggregate_statements(PFS_account *this, PFS_user *a2, PFS_host *a3)
{
long long result; // rax
PFS_statement_stat *v4; // rax
PFS_statement_stat *v5; // rax
PFS_statement_stat *v6; // rax
PFS_statement_stat *v7; // rax
PFS_statement_stat *v8; // [rsp+8h] [rbp-48h]
PFS_statement_stat *v9; // [rsp+10h] [rbp-40h]
PFS_statement_stat *v10; // [rsp+18h] [rbp-38h]
PFS_statement_stat *v11; // [rsp+20h] [rbp-30h]
bool v12; // [rsp+2Fh] [rbp-21h]
result = PFS_connection_slice::read_instr_class_statements_stats(this);
if ( result )
{
v12 = 0;
if ( a2 )
v12 = a3 != 0LL;
if ( v12 )
{
v10 = (PFS_statement_stat *)PFS_connection_slice::write_instr_class_statements_stats(this);
v11 = (PFS_statement_stat *)PFS_connection_slice::write_instr_class_statements_stats(a2);
v4 = (PFS_statement_stat *)PFS_connection_slice::write_instr_class_statements_stats(a3);
return aggregate_all_statements(v10, v11, v4);
}
else if ( a2 )
{
v9 = (PFS_statement_stat *)PFS_connection_slice::write_instr_class_statements_stats(this);
v5 = (PFS_statement_stat *)PFS_connection_slice::write_instr_class_statements_stats(a2);
return aggregate_all_statements(v9, v5, global_instr_class_statements_array);
}
else if ( a3 )
{
v8 = (PFS_statement_stat *)PFS_connection_slice::write_instr_class_statements_stats(this);
v6 = (PFS_statement_stat *)PFS_connection_slice::write_instr_class_statements_stats(a3);
return aggregate_all_statements(v8, v6);
}
else
{
v7 = (PFS_statement_stat *)PFS_connection_slice::write_instr_class_statements_stats(this);
return aggregate_all_statements(v7, global_instr_class_statements_array);
}
}
return result;
}
| aggregate_statements:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x20],RDI
CALL 0x00138830
CMP RAX,0x0
JNZ 0x001378ac
JMP 0x00137980
LAB_001378ac:
XOR EAX,EAX
CMP qword ptr [RBP + -0x10],0x0
MOV byte ptr [RBP + -0x21],AL
JZ 0x001378c3
CMP qword ptr [RBP + -0x18],0x0
SETNZ AL
MOV byte ptr [RBP + -0x21],AL
LAB_001378c3:
MOV AL,byte ptr [RBP + -0x21]
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x00137905
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001365a0
MOV qword ptr [RBP + -0x38],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001365a0
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001365a0
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,RAX
CALL 0x001457f0
JMP 0x00137980
LAB_00137905:
CMP qword ptr [RBP + -0x10],0x0
JZ 0x0013793a
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001365a0
MOV qword ptr [RBP + -0x40],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001365a0
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,RAX
LEA RAX,[0x50bdc0]
MOV RDX,qword ptr [RAX]
CALL 0x001457f0
JMP 0x00137980
LAB_0013793a:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x00137965
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001365a0
MOV qword ptr [RBP + -0x48],RAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001365a0
MOV RDI,qword ptr [RBP + -0x48]
MOV RSI,RAX
CALL 0x00145760
JMP 0x00137980
LAB_00137965:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001365a0
MOV RDI,RAX
LEA RAX,[0x50bdc0]
MOV RSI,qword ptr [RAX]
CALL 0x00145760
LAB_00137980:
ADD RSP,0x50
POP RBP
RET
|
/* PFS_account::aggregate_statements(PFS_user*, PFS_host*) */
void __thiscall
PFS_account::aggregate_statements(PFS_account *this,PFS_user *param_1,PFS_host *param_2)
{
long lVar1;
PFS_statement_stat *pPVar2;
PFS_statement_stat *pPVar3;
PFS_statement_stat *pPVar4;
lVar1 = PFS_connection_slice::read_instr_class_statements_stats((PFS_connection_slice *)this);
if (lVar1 != 0) {
if (param_1 == (PFS_user *)0x0 || param_2 == (PFS_host *)0x0) {
if (param_1 == (PFS_user *)0x0) {
if (param_2 == (PFS_host *)0x0) {
pPVar2 = (PFS_statement_stat *)
PFS_connection_slice::write_instr_class_statements_stats
((PFS_connection_slice *)this);
aggregate_all_statements(pPVar2,global_instr_class_statements_array);
}
else {
pPVar2 = (PFS_statement_stat *)
PFS_connection_slice::write_instr_class_statements_stats
((PFS_connection_slice *)this);
pPVar3 = (PFS_statement_stat *)
PFS_connection_slice::write_instr_class_statements_stats
((PFS_connection_slice *)param_2);
aggregate_all_statements(pPVar2,pPVar3);
}
}
else {
pPVar2 = (PFS_statement_stat *)
PFS_connection_slice::write_instr_class_statements_stats
((PFS_connection_slice *)this);
pPVar3 = (PFS_statement_stat *)
PFS_connection_slice::write_instr_class_statements_stats
((PFS_connection_slice *)param_1);
aggregate_all_statements(pPVar2,pPVar3,global_instr_class_statements_array);
}
}
else {
pPVar2 = (PFS_statement_stat *)
PFS_connection_slice::write_instr_class_statements_stats
((PFS_connection_slice *)this);
pPVar3 = (PFS_statement_stat *)
PFS_connection_slice::write_instr_class_statements_stats
((PFS_connection_slice *)param_1);
pPVar4 = (PFS_statement_stat *)
PFS_connection_slice::write_instr_class_statements_stats
((PFS_connection_slice *)param_2);
aggregate_all_statements(pPVar2,pPVar3,pPVar4);
}
}
return;
}
| |
27,050 | svc_logger_init | navaro[P]qoraal-tictactoe/build_O3/_deps/qoraal-src/src/svc/svc_logger.c | int32_t
svc_logger_init (SVC_TASK_PRIO_T prio)
{
os_mutex_init (&_logger_mutex) ;
linked_init (&_logger_channels) ;
_logger_task_prio = prio ;
if (!mlog_started()) {
uintptr_t base = (uintptr_t)&__memlog_base__;
uintptr_t end = (uintptr_t)&__memlog_end__;
uint32_t size = (end - base) ;
if (size >= 4*1024) {
mlog_init ((uint32_t *)base, size - 512,
(uint32_t *)(base + size - 512), 512) ;
}
}
return EOK ;
} | O3 | c | svc_logger_init:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %edi, %ebx
leaq 0x28da5(%rip), %rdi # 0x3eb18
callq 0x14ef0
xorps %xmm0, %xmm0
movups %xmm0, 0x2afde(%rip) # 0x40d60
movl %ebx, 0x2afe8(%rip) # 0x40d70
callq 0x1a618
leaq 0x2c26c(%rip), %rdi # 0x42000
leaq 0x2ea65(%rip), %rcx # 0x44800
subl %edi, %ecx
cmpl $0x1000, %ecx # imm = 0x1000
setb %cl
orb %al, %cl
jne 0x15dce
leaq 0x2ea4f(%rip), %rsi # 0x44800
subl %edi, %esi
leaq (%rsi,%rdi), %rdx
addq $-0x200, %rdx # imm = 0xFE00
addl $0xfffffe00, %esi # imm = 0xFFFFFE00
movl $0x200, %ecx # imm = 0x200
callq 0x1a546
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| svc_logger_init:
push rbp
mov rbp, rsp
push rbx
push rax
mov ebx, edi
lea rdi, _logger_mutex
call os_mutex_init
xorps xmm0, xmm0
movups cs:_logger_channels, xmm0
mov cs:_logger_task_prio, ebx
call mlog_started
lea rdi, __memlog_base__
lea rcx, _end
sub ecx, edi
cmp ecx, 1000h
setb cl
or cl, al
jnz short loc_15DCE
lea rsi, _end
sub esi, edi
lea rdx, [rsi+rdi]
add rdx, 0FFFFFFFFFFFFFE00h
add esi, 0FFFFFE00h
mov ecx, 200h
call mlog_init
loc_15DCE:
xor eax, eax
add rsp, 8
pop rbx
pop rbp
retn
| long long svc_logger_init(int a1)
{
os_mutex_init(&logger_mutex);
logger_channels = 0LL;
logger_task_prio = a1;
if ( !((unsigned __int8)mlog_started(&logger_mutex) | ((unsigned int)&end - (unsigned int)&_memlog_base__ < 0x1000)) )
mlog_init(
&_memlog_base__,
(unsigned int)&end - (unsigned int)&_memlog_base__ - 512,
(char *)&_memlog_base__ + (unsigned int)&end - (unsigned int)&_memlog_base__ - 512,
512LL);
return 0LL;
}
| svc_logger_init:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV EBX,EDI
LEA RDI,[0x13eb18]
CALL 0x00114ef0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [0x00140d60],XMM0
MOV dword ptr [0x00140d70],EBX
CALL 0x0011a618
LEA RDI,[0x142000]
LEA RCX,[0x144800]
SUB ECX,EDI
CMP ECX,0x1000
SETC CL
OR CL,AL
JNZ 0x00115dce
LEA RSI,[0x144800]
SUB ESI,EDI
LEA RDX,[RSI + RDI*0x1]
ADD RDX,-0x200
ADD ESI,0xfffffe00
MOV ECX,0x200
CALL 0x0011a546
LAB_00115dce:
XOR EAX,EAX
ADD RSP,0x8
POP RBX
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
int8 svc_logger_init(int4 param_1)
{
char cVar1;
os_mutex_init(&_logger_mutex);
_logger_channels = 0;
uRam0000000000140d68 = 0;
__logger_task_prio = param_1;
cVar1 = mlog_started();
if (cVar1 == '\0') {
mlog_init(&__memlog_base__,0x2600,&DAT_00144600,0x200);
}
return 0;
}
| |
27,051 | 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>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<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>>>, bool, nlohmann::json_abi_v3_11_3::detail::value_t) | monkey531[P]llama/common/json.hpp | basic_json(initializer_list_t init,
bool type_deduction = true,
value_t manual_type = value_t::array)
{
// check if each element is an array with two elements whose first
// element is a string
bool is_an_object = std::all_of(init.begin(), init.end(),
[](const detail::json_ref<basic_json>& element_ref)
{
// The cast is to ensure op[size_type] is called, bearing in mind size_type may not be int;
// (many string types can be constructed from 0 via its null-pointer guise, so we get a
// broken call to op[key_type], the wrong semantics and a 4804 warning on Windows)
return element_ref->is_array() && element_ref->size() == 2 && (*element_ref)[static_cast<size_type>(0)].is_string();
});
// adjust type if type deduction is not wanted
if (!type_deduction)
{
// if array is wanted, do not create an object though possible
if (manual_type == value_t::array)
{
is_an_object = false;
}
// if object is wanted but impossible, throw an exception
if (JSON_HEDLEY_UNLIKELY(manual_type == value_t::object && !is_an_object))
{
JSON_THROW(type_error::create(301, "cannot create object from initializer list", nullptr));
}
}
if (is_an_object)
{
// the initializer list is a list of pairs -> create object
m_data.m_type = value_t::object;
m_data.m_value = value_t::object;
for (auto& element_ref : init)
{
auto element = element_ref.moved_or_copied();
m_data.m_value.object->emplace(
std::move(*((*element.m_data.m_value.array)[0].m_data.m_value.string)),
std::move((*element.m_data.m_value.array)[1]));
}
}
else
{
// the initializer list describes an array -> create array
m_data.m_type = value_t::array;
m_data.m_value.array = create<array_t>(init.begin(), init.end());
}
set_parents();
assert_invariant();
} | O3 | 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>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<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>>>, bool, nlohmann::json_abi_v3_11_3::detail::value_t):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r8d, %ebp
movl %ecx, %r13d
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq (%rdx,%rdx,2), %rax
leaq (%rsi,%rax,8), %r12
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rsi, %rdi
movq %r12, %rsi
callq 0xa403c
cmpq %r12, %rax
sete %cl
testb %r13b, %r13b
jne 0x81a67
cmpq %r12, %rax
sete %al
cmpb $0x2, %bpl
setne %cl
cmpb $0x1, %bpl
setne %dl
orb %al, %dl
je 0x81b12
andb %al, %cl
testb %cl, %cl
je 0x81adc
movb $0x1, (%rbx)
movl $0x20, %edi
callq 0x1b9f0
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rax, 0x8(%rbx)
testq %r15, %r15
je 0x81af6
shlq $0x3, %r15
leaq (%r15,%r15,2), %r12
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0xa3f96
movq 0x8(%rbx), %rdi
movq 0x8(%rsp), %rax
movq (%rax), %rdx
movq 0x8(%rdx), %rsi
addq $0x10, %rdx
callq 0x61fe4
movq %r15, %rdi
xorl %esi, %esi
callq 0x5b4ca
movq %r15, %rdi
callq 0x60938
addq $0x18, %r14
addq $-0x18, %r12
jne 0x81a9a
jmp 0x81af6
movb $0x2, (%rbx)
movq %rsp, %rdi
movq %r14, (%rdi)
leaq 0x20(%rsp), %rsi
movq %r12, (%rsi)
callq 0xa3fe8
movq %rax, 0x8(%rbx)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x5b4ca
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x1b4f0
movq %rax, %r14
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x714f1(%rip), %rsi # 0xf3021
leaq 0x71514(%rip), %rdx # 0xf304b
movq %rsp, %rdi
callq 0x22b0c
movb $0x1, %bpl
movq %rsp, %rdx
movq %r14, %rdi
movl $0x12d, %esi # imm = 0x12D
xorl %ecx, %ecx
callq 0xa3dc6
xorl %ebp, %ebp
leaq 0xaa3eb(%rip), %rsi # 0x12bf48
leaq -0x23f1c(%rip), %rdx # 0x5dc48
movq %r14, %rdi
callq 0x1c150
jmp 0x81b72
jmp 0x81b72
jmp 0x81b72
movq %rax, %r15
jmp 0x81bbc
movq %rax, %r15
movq %rsp, %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x5b4ca
movq %r14, %rdi
callq 0x60938
jmp 0x81bbc
movq %rax, %r15
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x81baa
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1ba20
testb %bpl, %bpl
jne 0x81bb4
jmp 0x81bbc
movq %rax, %r15
movq %r14, %rdi
callq 0x1b770
movq %rbx, %rdi
callq 0x60938
movq %r15, %rdi
callq 0x1c1e0
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE:
push rbp; int
push r15; int
push r14; char
push r13; int
push r12; __int64
push rbx; int
sub rsp, 28h
mov ebp, r8d
mov r13d, ecx
mov r15, rdx
mov r14, rsi
mov rbx, rdi
lea rax, [rdx+rdx*2]
lea r12, [rsi+rax*8]
xorps xmm0, xmm0
movups xmmword ptr [rdi], xmm0
mov rdi, rsi
mov rsi, r12
call _ZSt9__find_ifIPKN8nlohmann16json_abi_v3_11_36detail8json_refINS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEN9__gnu_cxx5__ops12_Iter_negateIZNSG_C1ESt16initializer_listISH_EbNS2_7value_tEEUlRSI_E_EEET_ST_ST_T0_St26random_access_iterator_tag; std::__find_if<nlohmann::json_abi_v3_11_3::detail::json_ref<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*,__gnu_cxx::__ops::_Iter_negate<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::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<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>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)::{lambda(nlohmann::json_abi_v3_11_3::detail::json_ref<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&)#1}>>(nlohmann::json_abi_v3_11_3::detail::json_ref<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::detail::json_ref<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*,__gnu_cxx::__ops::_Iter_negate<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::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<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>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)::{lambda(nlohmann::json_abi_v3_11_3::detail::json_ref<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&)#1}>,std::random_access_iterator_tag)
cmp rax, r12
setz cl
test r13b, r13b
jnz short loc_81A67
cmp rax, r12
setz al
cmp bpl, 2
setnz cl
cmp bpl, 1
setnz dl
or dl, al
jz loc_81B12
and cl, al
loc_81A67:
test cl, cl
jz short loc_81ADC
mov byte ptr [rbx], 1
mov edi, 20h ; ' '; unsigned __int64
call __Znwm; operator new(ulong)
xorps xmm0, xmm0
movups xmmword ptr [rax], xmm0
mov qword ptr [rax+10h], 0
mov [rbx+8], rax
test r15, r15
jz short loc_81AF6
shl r15, 3
lea r12, [r15+r15*2]
mov r15, rsp
loc_81A9A:
mov rdi, r15
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15moved_or_copiedEv; nlohmann::json_abi_v3_11_3::detail::json_ref<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>>::moved_or_copied(void)
mov rdi, [rbx+8]
mov rax, [rsp+58h+var_50]
mov rdx, [rax]
mov rsi, [rdx+8]
add rdx, 10h
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE7emplaceERSH_OSD_; nlohmann::json_abi_v3_11_3::ordered_map<std::string,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::less<void>,std::allocator<std::pair<std::string 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>>>>::emplace(std::string 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>&&)
mov rdi, r15
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, r15
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()
add r14, 18h
add r12, 0FFFFFFFFFFFFFFE8h
jnz short loc_81A9A
jmp short loc_81AF6
loc_81ADC:
mov byte ptr [rbx], 2
mov rdi, rsp
mov [rdi], r14
lea rsi, [rsp+58h+var_38]
mov [rsi], r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createIS3_ISD_SaISD_EEJPKNS0_6detail8json_refISD_EESL_EEEPT_DpOT0_; 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>::create<std::vector<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>>,nlohmann::json_abi_v3_11_3::detail::json_ref<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::detail::json_ref<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::detail::json_ref<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::detail::json_ref<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* &&)
mov [rbx+8], rax
loc_81AF6:
mov rdi, rbx
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)
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_81B12:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea r12, [rsp+58h+var_48]
mov [r12-10h], r12
lea rsi, aCannotCreateOb; "cannot create object from initializer l"...
lea rdx, aCannotCreateOb+2Ah; ""
mov rdi, rsp
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)
mov bpl, 1
mov rdx, rsp
mov rdi, r14; this
mov esi, 12Dh; int
xor ecx, ecx
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
jmp short loc_81B72
jmp short loc_81B72
jmp short $+2
loc_81B72:
mov r15, rax
jmp short loc_81BBC
mov r15, rax
mov r14, rsp
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()
jmp short loc_81BBC
mov r15, rax
mov rdi, [rsp+58h+var_58]; void *
cmp rdi, r12
jz short loc_81BAA
mov rsi, [rsp+58h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_81BAA:
test bpl, bpl
jnz short loc_81BB4
jmp short loc_81BBC
mov r15, rax
loc_81BB4:
mov rdi, r14; void *
call ___cxa_free_exception
loc_81BBC:
mov rdi, rbx
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, r15
call __Unwind_Resume
| basic_json:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV EBP,R8D
MOV R13D,ECX
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
LEA RAX,[RDX + RDX*0x2]
LEA R12,[RSI + RAX*0x8]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI],XMM0
LAB_00181a33:
MOV RDI,RSI
MOV RSI,R12
CALL 0x001a403c
CMP RAX,R12
SETZ CL
TEST R13B,R13B
JNZ 0x00181a67
CMP RAX,R12
SETZ AL
CMP BPL,0x2
SETNZ CL
CMP BPL,0x1
SETNZ DL
OR DL,AL
JZ 0x00181b12
AND CL,AL
LAB_00181a67:
TEST CL,CL
JZ 0x00181adc
MOV byte ptr [RBX],0x1
LAB_00181a6e:
MOV EDI,0x20
CALL 0x0011b9f0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX],XMM0
MOV qword ptr [RAX + 0x10],0x0
MOV qword ptr [RBX + 0x8],RAX
TEST R15,R15
JZ 0x00181af6
SHL R15,0x3
LEA R12,[R15 + R15*0x2]
MOV R15,RSP
LAB_00181a9a:
MOV RDI,R15
MOV RSI,R14
CALL 0x001a3f96
MOV RDI,qword ptr [RBX + 0x8]
MOV RAX,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RAX]
MOV RSI,qword ptr [RDX + 0x8]
ADD RDX,0x10
LAB_00181ab9:
CALL 0x00161fe4
MOV RDI,R15
XOR ESI,ESI
CALL 0x0015b4ca
MOV RDI,R15
CALL 0x00160938
ADD R14,0x18
ADD R12,-0x18
JNZ 0x00181a9a
JMP 0x00181af6
LAB_00181adc:
MOV byte ptr [RBX],0x2
MOV RDI,RSP
MOV qword ptr [RDI],R14
LEA RSI,[RSP + 0x20]
MOV qword ptr [RSI],R12
LAB_00181aed:
CALL 0x001a3fe8
LAB_00181af2:
MOV qword ptr [RBX + 0x8],RAX
LAB_00181af6:
MOV RDI,RBX
MOV ESI,0x1
CALL 0x0015b4ca
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00181b12:
MOV EDI,0x20
CALL 0x0011b4f0
MOV R14,RAX
LEA R12,[RSP + 0x10]
MOV qword ptr [R12 + -0x10],R12
LAB_00181b29:
LEA RSI,[0x1f3021]
LEA RDX,[0x1f304b]
MOV RDI,RSP
CALL 0x00122b0c
MOV BPL,0x1
LAB_00181b42:
MOV RDX,RSP
MOV RDI,R14
MOV ESI,0x12d
XOR ECX,ECX
CALL 0x001a3dc6
XOR EBP,EBP
LEA RSI,[0x22bf48]
LEA RDX,[0x15dc48]
MOV RDI,R14
CALL 0x0011c150
|
/* 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>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<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> > >, bool, nlohmann::json_abi_v3_11_3::detail::value_t) */
void 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>
::basic_json(int8 *param_1,json_ref *param_2,long param_3,char param_4,char param_5)
{
json_ref *pjVar1;
json_ref *pjVar2;
int8 *puVar3;
vector *pvVar4;
int8 uVar5;
bool bVar6;
json_ref *local_58;
long *local_50;
json_ref local_48 [16];
json_ref *local_38;
pjVar1 = param_2 + param_3 * 0x18;
*param_1 = 0;
param_1[1] = 0;
/* try { // try from 00181a33 to 00181a3d has its CatchHandler @ 00181b70 */
pjVar2 = std::
__find_if<nlohmann::json_abi_v3_11_3::detail::json_ref<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*,__gnu_cxx::__ops::_Iter_negate<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>::_Iter_negate(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<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>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)::_lambda(nlohmann::json_abi_v3_11_3::detail::json_ref<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&)_1_>>
(param_2,pjVar1);
bVar6 = pjVar2 == pjVar1;
if (param_4 == '\0') {
if (param_5 == '\x01' && pjVar2 != pjVar1) {
uVar5 = __cxa_allocate_exception(0x20);
local_58 = local_48;
/* try { // try from 00181b29 to 00181b3e has its CatchHandler @ 00181bb1 */
std::__cxx11::string::_M_construct<char_const*>
(&local_58,"cannot create object from initializer list","");
/* try { // try from 00181b42 to 00181b6b has its CatchHandler @ 00181b91 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
(uVar5,0x12d,&local_58,0);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar5,&detail::type_error::typeinfo,detail::exception::~exception);
}
bVar6 = param_5 != '\x02' && pjVar2 == pjVar1;
}
if (bVar6) {
*(int1 *)param_1 = 1;
/* try { // try from 00181a6e to 00181a77 has its CatchHandler @ 00181b6e */
puVar3 = (int8 *)operator_new(0x20);
*puVar3 = 0;
puVar3[1] = 0;
puVar3[2] = 0;
param_1[1] = puVar3;
if (param_3 != 0) {
param_3 = param_3 * 0x18;
do {
/* try { // try from 00181a9a to 00181aa4 has its CatchHandler @ 00181b72 */
detail::
json_ref<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>>
::moved_or_copied();
/* try { // try from 00181ab9 to 00181abd has its CatchHandler @ 00181b77 */
ordered_map<std::__cxx11::string,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>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_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>>>>
::emplace((ordered_map<std::__cxx11::string,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>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_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>>>>
*)param_1[1],*(string **)(*local_50 + 8),(basic_json *)(*local_50 + 0x10));
assert_invariant(SUB81(&local_58,0));
data::~data((data *)&local_58);
param_3 = param_3 + -0x18;
} while (param_3 != 0);
}
}
else {
*(int1 *)param_1 = 2;
local_58 = param_2;
local_38 = pjVar1;
/* try { // try from 00181aed to 00181af1 has its CatchHandler @ 00181b6c */
pvVar4 = create<std::vector<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>,std::allocator<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>>>,nlohmann::json_abi_v3_11_3::detail::json_ref<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::detail::json_ref<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_58,&local_38);
param_1[1] = pvVar4;
}
assert_invariant(SUB81(param_1,0));
return;
}
| ||
27,052 | testing::internal::StreamingListener::OnTestIterationStart(testing::UnitTest const&, int) | giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest-internal-inl.h | void OnTestIterationStart(const UnitTest& /* unit_test */,
int iteration) override {
SendLn("event=TestIterationStart&iteration=" +
StreamableToString(iteration));
} | O1 | c | testing::internal::StreamingListener::OnTestIterationStart(testing::UnitTest const&, int):
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
leaq 0x24(%rsp), %rsi
movl %edx, (%rsi)
leaq 0x28(%rsp), %r14
movq %r14, %rdi
callq 0x32327
leaq 0xc6b2(%rip), %rcx # 0x44435
movl $0x23, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x8590
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x37dbb
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x37dc2
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rsp, %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rbx), %rdi
callq 0x39422
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x37dfb
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x84e0
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x37e16
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x84e0
addq $0x48, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x37e3c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x84e0
jmp 0x37e3c
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x37e57
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x84e0
movq %rbx, %rdi
callq 0x8990
nop
| _ZN7testing8internal17StreamingListener20OnTestIterationStartERKNS_8UnitTestEi:
push r14
push rbx
sub rsp, 48h
mov rbx, rdi
lea rsi, [rsp+58h+var_34]
mov [rsi], edx
lea r14, [rsp+58h+var_30]
mov rdi, r14
call _ZN7testing8internal18StreamableToStringIiEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_; testing::internal::StreamableToString<int>(int const&)
lea rcx, aEventTestitera; "event=TestIterationStart&iteration="
mov r8d, 23h ; '#'
mov rdi, r14
xor esi, esi
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong)
lea r14, [rsp+58h+var_48]
mov [r14-10h], r14
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_37DBB
mov [rsp+58h+var_58], rdx
mov rdx, [rcx]
mov [rsp+58h+var_48], rdx
jmp short loc_37DC2
loc_37DBB:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r14], xmm0
loc_37DC2:
mov rdx, [rax+8]
mov rsi, rsp
mov [rsi+8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
mov rdi, [rbx+8]
call _ZN7testing8internal17StreamingListener20AbstractSocketWriter6SendLnERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::StreamingListener::AbstractSocketWriter::SendLn(std::string const&)
mov rdi, [rsp+58h+var_58]; void *
cmp rdi, r14
jz short loc_37DFB
mov rsi, [rsp+58h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_37DFB:
lea rax, [rsp+58h+var_20]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_37E16
mov rsi, [rsp+58h+var_20]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_37E16:
add rsp, 48h
pop rbx
pop r14
retn
mov rbx, rax
mov rdi, [rsp+0]; void *
cmp rdi, r14
jz short loc_37E3C
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_37E3C
mov rbx, rax
loc_37E3C:
lea rax, [rsp+arg_30]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_37E57
mov rsi, [rsp+arg_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_37E57:
mov rdi, rbx
call __Unwind_Resume
| void testing::internal::StreamingListener::OnTestIterationStart(
testing::internal::StreamingListener *this,
const testing::UnitTest *a2,
unsigned int a3)
{
long long v3; // rax
int v4; // r8d
int v5; // r9d
__int128 *v6; // rcx
int v7; // edx
void *v8; // [rsp+0h] [rbp-58h] BYREF
long long v9; // [rsp+8h] [rbp-50h]
__int128 v10; // [rsp+10h] [rbp-48h] BYREF
unsigned int v11; // [rsp+24h] [rbp-34h] BYREF
void *v12[2]; // [rsp+28h] [rbp-30h] BYREF
long long v13; // [rsp+38h] [rbp-20h] BYREF
v11 = a3;
testing::internal::StreamableToString<int>((long long)v12, &v11);
v3 = std::string::replace(v12, 0LL, 0LL);
v8 = &v10;
v6 = (__int128 *)(v3 + 16);
if ( *(_QWORD *)v3 == v3 + 16 )
{
v10 = *v6;
}
else
{
v8 = *(void **)v3;
*(_QWORD *)&v10 = *(_QWORD *)v6;
}
v9 = *(_QWORD *)(v3 + 8);
v7 = v9;
*(_QWORD *)v3 = v6;
*(_QWORD *)(v3 + 8) = 0LL;
*(_BYTE *)(v3 + 16) = 0;
testing::internal::StreamingListener::AbstractSocketWriter::SendLn(
*((_QWORD *)this + 1),
(unsigned int)&v8,
v7,
(_DWORD)v6,
v4,
v5,
(_DWORD)v8,
v9);
if ( v8 != &v10 )
operator delete(v8, v10 + 1);
if ( v12[0] != &v13 )
operator delete(v12[0], v13 + 1);
}
| OnTestIterationStart:
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV RBX,RDI
LEA RSI,[RSP + 0x24]
MOV dword ptr [RSI],EDX
LEA R14,[RSP + 0x28]
MOV RDI,R14
CALL 0x00132327
LAB_00137d7c:
LEA RCX,[0x144435]
MOV R8D,0x23
MOV RDI,R14
XOR ESI,ESI
XOR EDX,EDX
CALL 0x00108590
LEA R14,[RSP + 0x10]
MOV qword ptr [R14 + -0x10],R14
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x00137dbb
MOV qword ptr [RSP],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x10],RDX
JMP 0x00137dc2
LAB_00137dbb:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R14],XMM0
LAB_00137dc2:
MOV RDX,qword ptr [RAX + 0x8]
MOV RSI,RSP
MOV qword ptr [RSI + 0x8],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
MOV RDI,qword ptr [RBX + 0x8]
LAB_00137de0:
CALL 0x00139422
LAB_00137de5:
MOV RDI,qword ptr [RSP]
CMP RDI,R14
JZ 0x00137dfb
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x001084e0
LAB_00137dfb:
LEA RAX,[RSP + 0x38]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00137e16
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x001084e0
LAB_00137e16:
ADD RSP,0x48
POP RBX
POP R14
RET
|
/* testing::internal::StreamingListener::OnTestIterationStart(testing::UnitTest const&, int) */
void __thiscall
testing::internal::StreamingListener::OnTestIterationStart
(StreamingListener *this,UnitTest *param_1,int param_2)
{
long *plVar1;
long *plVar2;
long *local_58;
long local_50;
long local_48;
long lStack_40;
int local_34;
long *local_30 [2];
long local_20 [2];
local_34 = param_2;
StreamableToString<int>((internal *)local_30,&local_34);
/* try { // try from 00137d7c to 00137d94 has its CatchHandler @ 00137e39 */
plVar1 = (long *)std::__cxx11::string::replace((ulong)local_30,0,(char *)0x0,0x144435);
plVar2 = plVar1 + 2;
if ((long *)*plVar1 == plVar2) {
local_48 = *plVar2;
lStack_40 = plVar1[3];
local_58 = &local_48;
}
else {
local_48 = *plVar2;
local_58 = (long *)*plVar1;
}
local_50 = plVar1[1];
*plVar1 = (long)plVar2;
plVar1[1] = 0;
*(int1 *)(plVar1 + 2) = 0;
/* try { // try from 00137de0 to 00137de4 has its CatchHandler @ 00137e1e */
AbstractSocketWriter::SendLn(*(AbstractSocketWriter **)(this + 8),(string *)&local_58);
if (local_58 != &local_48) {
operator_delete(local_58,local_48 + 1);
}
if (local_30[0] != local_20) {
operator_delete(local_30[0],local_20[0] + 1);
}
return;
}
| |
27,053 | aimrt::protocols::geometry::Vector3::~Vector3() | aimrt_mujoco_sim/_deps/aimrt-build/src/protocols/pb/geometry/vector3.pb.cc | Vector3::~Vector3() {
// @@protoc_insertion_point(destructor:aimrt.protocols.geometry.Vector3)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
} | O3 | cpp | aimrt::protocols::geometry::Vector3::~Vector3():
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x8(%rdi), %rbx
testb $0x1, 0x8(%rdi)
je 0x75d2b
movq %rbx, %rdi
callq 0x734ec
leaq 0x1947ee(%rip), %rax # 0x20a520
addq $0x10, %rax
movq %rax, (%r14)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x73456
movq %rax, %rdi
callq 0x33bfc
| _ZN5aimrt9protocols8geometry7Vector3D2Ev:
push r14
push rbx
push rax
mov r14, rdi
lea rbx, [rdi+8]
test byte ptr [rdi+8], 1
jz short loc_75D2B
mov rdi, rbx
call _ZN6google8protobuf8internal16InternalMetadata21DeleteOutOfLineHelperINS0_15UnknownFieldSetEEEPNS0_5ArenaEv; google::protobuf::internal::InternalMetadata::DeleteOutOfLineHelper<google::protobuf::UnknownFieldSet>(void)
loc_75D2B:
lea rax, _ZTVN6google8protobuf11MessageLiteE; `vtable for'google::protobuf::MessageLite
add rax, 10h
mov [r14], rax
mov rdi, rbx; this
add rsp, 8
pop rbx
pop r14
jmp _ZN6google8protobuf8internal16InternalMetadataD2Ev; google::protobuf::internal::InternalMetadata::~InternalMetadata()
mov rdi, rax
call __clang_call_terminate
| void aimrt::protocols::geometry::Vector3::~Vector3(aimrt::protocols::geometry::Vector3 *this)
{
if ( (*((_BYTE *)this + 8) & 1) != 0 )
google::protobuf::internal::InternalMetadata::DeleteOutOfLineHelper<google::protobuf::UnknownFieldSet>((long long *)this + 1);
*(_QWORD *)this = &`vtable for'google::protobuf::MessageLite + 2;
google::protobuf::internal::InternalMetadata::~InternalMetadata((aimrt::protocols::geometry::Vector3 *)((char *)this + 8));
}
| ~Vector3:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RDI
LEA RBX,[RDI + 0x8]
TEST byte ptr [RDI + 0x8],0x1
JZ 0x00175d2b
LAB_00175d23:
MOV RDI,RBX
CALL 0x001734ec
LAB_00175d2b:
LEA RAX,[0x30a520]
ADD RAX,0x10
MOV qword ptr [R14],RAX
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP 0x00173456
|
/* aimrt::protocols::geometry::Vector3::~Vector3() */
void __thiscall aimrt::protocols::geometry::Vector3::~Vector3(Vector3 *this)
{
if (((byte)this[8] & 1) != 0) {
/* try { // try from 00175d23 to 00175d2a has its CatchHandler @ 00175d48 */
google::protobuf::internal::InternalMetadata::
DeleteOutOfLineHelper<google::protobuf::UnknownFieldSet>((InternalMetadata *)(this + 8));
}
*(int ***)this = &PTR__MessageLite_0030a530;
google::protobuf::internal::InternalMetadata::~InternalMetadata((InternalMetadata *)(this + 8));
return;
}
| |
27,054 | ssz_add_uint32 | corpus-core[P]colibri-stateless/src/util/ssz_builder.c | void ssz_add_uint32(ssz_builder_t* buffer, uint32_t value) {
uint8_t tmp[4];
tmp[0] = value & 0xFF;
tmp[1] = (value >> 8) & 0xFF;
tmp[2] = (value >> 16) & 0xFF;
tmp[3] = (value >> 24) & 0xFF;
buffer_append(&buffer->fixed, bytes(tmp, 4));
} | O0 | c | ssz_add_uint32:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl -0xc(%rbp), %eax
andl $0xff, %eax
movb %al, -0x10(%rbp)
movl -0xc(%rbp), %eax
shrl $0x8, %eax
andl $0xff, %eax
movb %al, -0xf(%rbp)
movl -0xc(%rbp), %eax
shrl $0x10, %eax
andl $0xff, %eax
movb %al, -0xe(%rbp)
movl -0xc(%rbp), %eax
shrl $0x18, %eax
andl $0xff, %eax
movb %al, -0xd(%rbp)
movq -0x8(%rbp), %rdi
addq $0x8, %rdi
movl $0x4, -0x20(%rbp)
leaq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movl -0x20(%rbp), %esi
movq -0x18(%rbp), %rdx
callq 0x9ca30
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
| ssz_add_uint32:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov eax, [rbp+var_C]
and eax, 0FFh
mov [rbp+var_10], al
mov eax, [rbp+var_C]
shr eax, 8
and eax, 0FFh
mov [rbp+var_F], al
mov eax, [rbp+var_C]
shr eax, 10h
and eax, 0FFh
mov [rbp+var_E], al
mov eax, [rbp+var_C]
shr eax, 18h
and eax, 0FFh
mov [rbp+var_D], al
mov rdi, [rbp+var_8]
add rdi, 8
mov [rbp+var_20], 4
lea rax, [rbp+var_10]
mov [rbp+var_18], rax
mov esi, [rbp+var_20]
mov rdx, [rbp+var_18]
call buffer_append
add rsp, 20h
pop rbp
retn
| long long ssz_add_uint32(long long a1, int a2)
{
_DWORD v3[2]; // [rsp+10h] [rbp-10h] BYREF
long long v4; // [rsp+18h] [rbp-8h]
v4 = a1;
v3[1] = a2;
v3[0] = a2;
return buffer_append((unsigned int *)(a1 + 8), 4u, (long long)v3);
}
| ssz_add_uint32:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV EAX,dword ptr [RBP + -0xc]
AND EAX,0xff
MOV byte ptr [RBP + -0x10],AL
MOV EAX,dword ptr [RBP + -0xc]
SHR EAX,0x8
AND EAX,0xff
MOV byte ptr [RBP + -0xf],AL
MOV EAX,dword ptr [RBP + -0xc]
SHR EAX,0x10
AND EAX,0xff
MOV byte ptr [RBP + -0xe],AL
MOV EAX,dword ptr [RBP + -0xc]
SHR EAX,0x18
AND EAX,0xff
MOV byte ptr [RBP + -0xd],AL
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x8
MOV dword ptr [RBP + -0x20],0x4
LEA RAX,[RBP + -0x10]
MOV qword ptr [RBP + -0x18],RAX
MOV ESI,dword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x0019ca30
ADD RSP,0x20
POP RBP
RET
|
void ssz_add_uint32(long param_1,int4 param_2)
{
int1 local_18;
int1 local_17;
int1 local_16;
int1 local_15;
int4 local_14;
long local_10;
local_18 = (int1)param_2;
local_17 = (int1)((uint)param_2 >> 8);
local_16 = (int1)((uint)param_2 >> 0x10);
local_15 = (int1)((uint)param_2 >> 0x18);
local_14 = param_2;
local_10 = param_1;
buffer_append(param_1 + 8,4,&local_18);
return;
}
| |
27,055 | ssz_add_uint32 | corpus-core[P]colibri-stateless/src/util/ssz_builder.c | void ssz_add_uint32(ssz_builder_t* buffer, uint32_t value) {
uint8_t tmp[4];
tmp[0] = value & 0xFF;
tmp[1] = (value >> 8) & 0xFF;
tmp[2] = (value >> 16) & 0xFF;
tmp[3] = (value >> 24) & 0xFF;
buffer_append(&buffer->fixed, bytes(tmp, 4));
} | O3 | c | ssz_add_uint32:
pushq %rax
leaq 0x4(%rsp), %rdx
movl %esi, (%rdx)
addq $0x8, %rdi
movl $0x4, %esi
callq 0x50fdd
popq %rax
retq
| ssz_add_uint32:
push rax
lea rdx, [rsp+8+var_4]
mov [rdx], esi
add rdi, 8
mov esi, 4
call buffer_append
pop rax
retn
| unsigned long long ssz_add_uint32(long long a1, unsigned int a2)
{
unsigned int v2; // eax
unsigned long long v4; // [rsp-4h] [rbp-8h] BYREF
v4 = __PAIR64__(a2, v2);
buffer_append((unsigned int *)(a1 + 8), 4u, (long long)&v4 + 4);
return v4;
}
| ssz_add_uint32:
PUSH RAX
LEA RDX,[RSP + 0x4]
MOV dword ptr [RDX],ESI
ADD RDI,0x8
MOV ESI,0x4
CALL 0x00150fdd
POP RAX
RET
|
int8 ssz_add_uint32(long param_1,int4 param_2)
{
int4 in_EAX;
int8 uStack_8;
uStack_8 = CONCAT44(param_2,in_EAX);
buffer_append(param_1 + 8,4);
return uStack_8;
}
| |
27,056 | js_math_random | bluesky950520[P]quickjs/quickjs.c | static uint64_t xorshift64star(uint64_t *pstate)
{
uint64_t x;
x = *pstate;
x ^= x >> 12;
x ^= x << 25;
x ^= x >> 27;
*pstate = x;
return x * 0x2545F4914F6CDD1D;
} | O2 | c | js_math_random:
movq 0x1c8(%rdi), %rax
movq %rax, %rcx
shrq $0xc, %rcx
xorq %rax, %rcx
movq %rcx, %rax
shlq $0x19, %rax
xorq %rcx, %rax
movq %rax, %rcx
shrq $0x1b, %rcx
xorq %rax, %rcx
movq %rcx, 0x1c8(%rdi)
movabsq $0x2545f4914f6cdd1d, %rax # imm = 0x2545F4914F6CDD1D
imulq %rcx, %rax
shrq $0xc, %rax
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
orq %rax, %rcx
movq %rcx, %xmm0
addsd 0x1baf7(%rip), %xmm0 # 0x85850
movq %xmm0, %rax
pushq $0x7
popq %rdx
retq
| js_math_random:
mov rax, [rdi+1C8h]
mov rcx, rax
shr rcx, 0Ch
xor rcx, rax
mov rax, rcx
shl rax, 19h
xor rax, rcx
mov rcx, rax
shr rcx, 1Bh
xor rcx, rax
mov [rdi+1C8h], rcx
mov rax, 2545F4914F6CDD1Dh
imul rax, rcx
shr rax, 0Ch
mov rcx, 3FF0000000000000h
or rcx, rax
movq xmm0, rcx
addsd xmm0, cs:qword_85850
movq rax, xmm0
push 7
pop rdx
retn
| long long js_math_random(long long a1)
{
long long v1; // rcx
long long result; // rax
v1 = *(_QWORD *)(a1 + 456) ^ (*(_QWORD *)(a1 + 456) >> 12) ^ ((*(_QWORD *)(a1 + 456) ^ (*(_QWORD *)(a1 + 456) >> 12)) << 25) ^ ((*(_QWORD *)(a1 + 456) ^ (*(_QWORD *)(a1 + 456) >> 12) ^ ((*(_QWORD *)(a1 + 456) ^ (*(_QWORD *)(a1 + 456) >> 12)) << 25)) >> 27);
*(_QWORD *)(a1 + 456) = v1;
*(double *)&result = COERCE_DOUBLE(((unsigned long long)(0x2545F4914F6CDD1DLL * v1) >> 12) | 0x3FF0000000000000LL)
+ -1.0;
return result;
}
| js_math_random:
MOV RAX,qword ptr [RDI + 0x1c8]
MOV RCX,RAX
SHR RCX,0xc
XOR RCX,RAX
MOV RAX,RCX
SHL RAX,0x19
XOR RAX,RCX
MOV RCX,RAX
SHR RCX,0x1b
XOR RCX,RAX
MOV qword ptr [RDI + 0x1c8],RCX
MOV RAX,0x2545f4914f6cdd1d
IMUL RAX,RCX
SHR RAX,0xc
MOV RCX,0x3ff0000000000000
OR RCX,RAX
MOVQ XMM0,RCX
ADDSD XMM0,qword ptr [0x00185850]
MOVQ RAX,XMM0
PUSH 0x7
POP RDX
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
int1 [16] js_math_random(long param_1)
{
ulong uVar1;
int1 auVar2 [16];
uVar1 = *(ulong *)(param_1 + 0x1c8) >> 0xc ^ *(ulong *)(param_1 + 0x1c8);
uVar1 = uVar1 << 0x19 ^ uVar1;
uVar1 = uVar1 >> 0x1b ^ uVar1;
*(ulong *)(param_1 + 0x1c8) = uVar1;
auVar2._8_8_ = 7;
auVar2._0_8_ = (double)(uVar1 * 0x2545f4914f6cdd1d >> 0xc | 0x3ff0000000000000) + _DAT_00185850;
return auVar2;
}
| |
27,057 | my_8bit_charset_flags_from_data | eloqsql/strings/ctype-simple.c | uint my_8bit_charset_flags_from_data(CHARSET_INFO *cs)
{
uint flags= 0;
if (my_charset_is_8bit_pure_ascii(cs))
flags|= MY_CS_PUREASCII;
if (!my_charset_is_ascii_compatible(cs))
flags|= MY_CS_NONASCII;
return flags;
} | O3 | c | my_8bit_charset_flags_from_data:
movq 0x68(%rdi), %rcx
testq %rcx, %rcx
je 0xbbf04
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
xorl %edx, %edx
cmpw $0x80, (%rcx,%rdx,2)
jae 0xbbeeb
incq %rdx
cmpq $0x100, %rdx # imm = 0x100
jne 0xbbed2
movl $0x1000, %eax # imm = 0x1000
xorl %edx, %edx
movzwl (%rcx,%rdx,2), %esi
cmpq %rsi, %rdx
jne 0xbbf07
incq %rdx
cmpq $0x80, %rdx
jne 0xbbeed
jmp 0xbbf0c
xorl %eax, %eax
retq
orl $0x2000, %eax # imm = 0x2000
popq %rbp
retq
| my_8bit_charset_flags_from_data:
mov rcx, [rdi+68h]
test rcx, rcx
jz short loc_BBF04
push rbp
mov rbp, rsp
xor eax, eax
xor edx, edx
loc_BBED2:
cmp word ptr [rcx+rdx*2], 80h
jnb short loc_BBEEB
inc rdx
cmp rdx, 100h
jnz short loc_BBED2
mov eax, 1000h
loc_BBEEB:
xor edx, edx
loc_BBEED:
movzx esi, word ptr [rcx+rdx*2]
cmp rdx, rsi
jnz short loc_BBF07
inc rdx
cmp rdx, 80h
jnz short loc_BBEED
jmp short loc_BBF0C
loc_BBF04:
xor eax, eax
retn
loc_BBF07:
or eax, 2000h
loc_BBF0C:
pop rbp
retn
| long long my_8bit_charset_flags_from_data(long long a1)
{
long long v1; // rcx
long long result; // rax
long long v3; // rdx
long long v4; // rdx
v1 = *(_QWORD *)(a1 + 104);
if ( !v1 )
return 0LL;
result = 0LL;
v3 = 0LL;
while ( *(_WORD *)(v1 + 2 * v3) < 0x80u )
{
if ( ++v3 == 256 )
{
result = 4096LL;
break;
}
}
v4 = 0LL;
while ( v4 == *(unsigned __int16 *)(v1 + 2 * v4) )
{
if ( ++v4 == 128 )
return result;
}
return (unsigned int)result | 0x2000;
}
| my_8bit_charset_flags_from_data:
MOV RCX,qword ptr [RDI + 0x68]
TEST RCX,RCX
JZ 0x001bbf04
PUSH RBP
MOV RBP,RSP
XOR EAX,EAX
XOR EDX,EDX
LAB_001bbed2:
CMP word ptr [RCX + RDX*0x2],0x80
JNC 0x001bbeeb
INC RDX
CMP RDX,0x100
JNZ 0x001bbed2
MOV EAX,0x1000
LAB_001bbeeb:
XOR EDX,EDX
LAB_001bbeed:
MOVZX ESI,word ptr [RCX + RDX*0x2]
CMP RDX,RSI
JNZ 0x001bbf07
INC RDX
CMP RDX,0x80
JNZ 0x001bbeed
JMP 0x001bbf0c
LAB_001bbf04:
XOR EAX,EAX
RET
LAB_001bbf07:
OR EAX,0x2000
LAB_001bbf0c:
POP RBP
RET
|
uint my_8bit_charset_flags_from_data(long param_1)
{
long lVar1;
uint uVar2;
long lVar3;
ulong uVar4;
lVar1 = *(long *)(param_1 + 0x68);
if (lVar1 == 0) {
return 0;
}
uVar2 = 0;
lVar3 = 0;
do {
if (0x7f < *(ushort *)(lVar1 + lVar3 * 2)) goto LAB_001bbeeb;
lVar3 = lVar3 + 1;
} while (lVar3 != 0x100);
uVar2 = 0x1000;
LAB_001bbeeb:
uVar4 = 0;
do {
if (uVar4 != *(ushort *)(lVar1 + uVar4 * 2)) {
return uVar2 | 0x2000;
}
uVar4 = uVar4 + 1;
} while (uVar4 != 0x80);
return uVar2;
}
| |
27,058 | 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>::basic_json<nlohmann::json_abi_v3_11_3::detail::json_ref<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>>, 0>(nlohmann::json_abi_v3_11_3::detail::json_ref<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&) | monkey531[P]llama/common/json.hpp | basic_json(const JsonRef& ref) : basic_json(ref.moved_or_copied()) {} | O3 | 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>::basic_json<nlohmann::json_abi_v3_11_3::detail::json_ref<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>>, 0>(nlohmann::json_abi_v3_11_3::detail::json_ref<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&):
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xa0e1c
movups (%r14), %xmm0
movups %xmm0, (%rbx)
movq %r14, %rdi
xorl %esi, %esi
callq 0x58484
movb $0x0, (%r14)
movq $0x0, 0x8(%r14)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x58484
movq %r14, %rdi
xorl %esi, %esi
callq 0x58484
movq %r14, %rdi
callq 0x5d972
addq $0x18, %rsp
popq %rbx
popq %r14
retq
nop
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2INS0_6detail8json_refISD_EETnNSt9enable_ifIXsr6detail11conjunctionINSF_11is_json_refIT_EESt7is_sameINSK_10value_typeESD_EEE5valueEiE4typeELi0EEERKSK_:
push r14
push rbx
sub rsp, 18h
mov rbx, rdi
lea r14, [rsp+28h+var_20]
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15moved_or_copiedEv; nlohmann::json_abi_v3_11_3::detail::json_ref<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>>::moved_or_copied(void)
movups xmm0, xmmword ptr [r14]
movups xmmword ptr [rbx], xmm0
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 byte ptr [r14], 0
mov qword ptr [r14+8], 0
mov rdi, rbx
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)
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()
add rsp, 18h
pop rbx
pop r14
retn
| long long ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2INS0_6detail8json_refISD_EETnNSt9enable_ifIXsr6detail11conjunctionINSF_11is_json_refIT_EESt7is_sameINSK_10value_typeESD_EEE5valueEiE4typeELi0EEERKSK_(
char *a1,
long long a2)
{
_OWORD v3[2]; // [rsp+8h] [rbp-20h] BYREF
nlohmann::json_abi_v3_11_3::detail::json_ref<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>>::moved_or_copied(
(unsigned __int8 *)v3,
a2);
*(_OWORD *)a1 = v3[0];
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 *)v3);
LOBYTE(v3[0]) = 0;
*((_QWORD *)&v3[0] + 1) = 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(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 *)v3);
return 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(v3);
}
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2INS0_6detail8json_refISD_EETnNSt9enable_ifIXsr6detail11conjunctionINSF_11is_json_refIT_EESt7is_sameINSK_10value_typeESD_EEE5valueEiE4typeELi0EEERKSK_:
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x001a0e1c
MOVUPS XMM0,xmmword ptr [R14]
MOVUPS xmmword ptr [RBX],XMM0
MOV RDI,R14
XOR ESI,ESI
CALL 0x00158484
MOV byte ptr [R14],0x0
MOV qword ptr [R14 + 0x8],0x0
MOV RDI,RBX
MOV ESI,0x1
CALL 0x00158484
MOV RDI,R14
XOR ESI,ESI
CALL 0x00158484
MOV RDI,R14
CALL 0x0015d972
ADD RSP,0x18
POP RBX
POP R14
RET
|
void _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2INS0_6detail8json_refISD_EETnNSt9enable_ifIXsr6detail11conjunctionINSF_11is_json_refIT_EESt7is_sameINSK_10value_typeESD_EEE5valueEiE4typeELi0EEERKSK_
(int8 *param_1)
{
bool bVar1;
data local_20;
int7 uStack_1f;
int8 uStack_18;
nlohmann::json_abi_v3_11_3::detail::
json_ref<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>>
::moved_or_copied();
*param_1 = CONCAT71(uStack_1f,local_20);
param_1[1] = uStack_18;
bVar1 = SUB81(&local_20,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(bVar1);
local_20 = (data)0x0;
uStack_18 = 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(param_1,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(bVar1);
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(&local_20);
return;
}
| |
27,059 | mi_read_cache | eloqsql/storage/myisam/mi_cache.c | int _mi_read_cache(IO_CACHE *info, uchar *buff, my_off_t pos, size_t length,
int flag)
{
size_t read_length,in_buff_length;
my_off_t offset;
uchar *in_buff_pos;
DBUG_ENTER("_mi_read_cache");
DBUG_ASSERT(!(info->myflags & MY_ENCRYPT));
if (pos < info->pos_in_file)
{
read_length=length;
if ((my_off_t) read_length > (my_off_t) (info->pos_in_file-pos))
read_length=(size_t)(info->pos_in_file-pos);
info->seek_not_done=1;
if (mysql_file_pread(info->file, buff, read_length, pos, MYF(MY_NABP)))
DBUG_RETURN(1);
if (!(length-=read_length))
DBUG_RETURN(0);
pos+=read_length;
buff+=read_length;
}
if (pos >= info->pos_in_file &&
(offset= (my_off_t) (pos - info->pos_in_file)) <
(my_off_t) (info->read_end - info->request_pos))
{
in_buff_pos=info->request_pos+ (uint)offset;
in_buff_length= MY_MIN(length, (size_t)(info->read_end-in_buff_pos));
memcpy(buff,info->request_pos+(uint) offset, in_buff_length);
if (!(length-=in_buff_length))
DBUG_RETURN(0);
pos+=in_buff_length;
buff+=in_buff_length;
}
else
in_buff_length=0;
if (flag & READING_NEXT)
{
if (pos != (info->pos_in_file +
(uint) (info->read_end - info->request_pos)))
{
info->pos_in_file=pos; /* Force start here */
info->read_pos=info->read_end=info->request_pos; /* Everything used */
info->seek_not_done=1;
}
else
info->read_pos=info->read_end; /* All block used */
if (!_my_b_read(info,buff,length))
DBUG_RETURN(0);
read_length=info->error;
}
else
{
info->seek_not_done=1;
if ((read_length= mysql_file_pread(info->file, buff, length, pos,
MYF(0))) == length)
DBUG_RETURN(0);
}
if (!(flag & READING_HEADER) || (int) read_length == -1 ||
read_length+in_buff_length < 3)
{
DBUG_PRINT("error",
("Error %d reading next-multi-part block (Got %d bytes)",
my_errno, (int) read_length));
if (!my_errno || my_errno == -1 || my_errno == HA_ERR_FILE_TOO_SHORT)
my_errno= HA_ERR_WRONG_IN_RECORD;
DBUG_RETURN(1);
}
bzero(buff+read_length,MI_BLOCK_INFO_HEADER_LENGTH - in_buff_length -
read_length);
DBUG_RETURN(0);
} | O0 | c | mi_read_cache:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
jmp 0xd97ae
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq (%rcx), %rax
jae 0xd9876
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
subq -0x20(%rbp), %rcx
cmpq %rcx, %rax
jbe 0xd97ea
movq -0x10(%rbp), %rax
movq (%rax), %rax
subq -0x20(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movl $0x1, 0xe0(%rax)
movq -0x10(%rbp), %rax
movl 0xd4(%rax), %edx
movq -0x18(%rbp), %rcx
movq -0x38(%rbp), %r8
movq -0x20(%rbp), %r9
leaq 0x8377a(%rip), %rdi # 0x15cf8f
movl $0x35, %esi
movq $0x4, (%rsp)
callq 0xd9b00
cmpq $0x0, %rax
je 0xd983b
jmp 0xd982f
movl $0x1, -0x4(%rbp)
jmp 0xd9aef
movq -0x38(%rbp), %rcx
movq -0x28(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
jne 0xd985e
jmp 0xd9852
movl $0x0, -0x4(%rbp)
jmp 0xd9aef
movq -0x38(%rbp), %rax
addq -0x20(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x38(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq (%rcx), %rax
jb 0xd995f
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
subq (%rcx), %rax
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq -0x10(%rbp), %rdx
movq 0x28(%rdx), %rdx
subq %rdx, %rcx
cmpq %rcx, %rax
jae 0xd995f
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x48(%rbp), %rcx
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq -0x50(%rbp), %rdx
subq %rdx, %rcx
cmpq %rcx, %rax
jae 0xd98e9
movq -0x28(%rbp), %rax
movq %rax, -0x58(%rbp)
jmp 0xd98fc
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x50(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rsi
movq -0x48(%rbp), %rax
movl %eax, %eax
addq %rax, %rsi
movq -0x40(%rbp), %rdx
callq 0x2a0c0
movq -0x40(%rbp), %rcx
movq -0x28(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
jne 0xd9945
jmp 0xd9939
movl $0x0, -0x4(%rbp)
jmp 0xd9aef
movq -0x40(%rbp), %rax
addq -0x20(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x40(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0xd9967
movq $0x0, -0x40(%rbp)
movl -0x2c(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0xd9a16
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
movq -0x10(%rbp), %rdx
movq 0x18(%rdx), %rdx
movq -0x10(%rbp), %rsi
movq 0x28(%rsi), %rsi
subq %rsi, %rdx
movl %edx, %edx
addq %rdx, %rcx
cmpq %rcx, %rax
je 0xd99d1
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
movl $0x1, 0xe0(%rax)
jmp 0xd99e1
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0xe3db0
cmpl $0x0, %eax
jne 0xd9a05
jmp 0xd99f9
movl $0x0, -0x4(%rbp)
jmp 0xd9aef
movq -0x10(%rbp), %rax
movslq 0xe4(%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0xd9a6f
movq -0x10(%rbp), %rax
movl $0x1, 0xe0(%rax)
movq -0x10(%rbp), %rax
movl 0xd4(%rax), %edx
movq -0x18(%rbp), %rcx
movq -0x28(%rbp), %r8
movq -0x20(%rbp), %r9
leaq 0x8354e(%rip), %rdi # 0x15cf8f
movl $0x5d, %esi
xorl %eax, %eax
movq $0x0, (%rsp)
callq 0xd9b00
movq %rax, -0x38(%rbp)
cmpq -0x28(%rbp), %rax
jne 0xd9a6d
jmp 0xd9a61
movl $0x0, -0x4(%rbp)
jmp 0xd9aef
jmp 0xd9a6f
movl -0x2c(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0xd9a91
movq -0x38(%rbp), %rax
cmpl $-0x1, %eax
je 0xd9a91
movq -0x38(%rbp), %rax
addq -0x40(%rbp), %rax
cmpq $0x3, %rax
jae 0xd9acc
jmp 0xd9a93
jmp 0xd9a95
callq 0xfc990
cmpl $0x0, (%rax)
je 0xd9ab6
callq 0xfc990
cmpl $-0x1, (%rax)
je 0xd9ab6
callq 0xfc990
cmpl $0xaf, (%rax)
jne 0xd9ac1
callq 0xfc990
movl $0x7f, (%rax)
jmp 0xd9ac3
movl $0x1, -0x4(%rbp)
jmp 0xd9aef
movq -0x18(%rbp), %rdi
addq -0x38(%rbp), %rdi
movl $0x14, %edx
subq -0x40(%rbp), %rdx
subq -0x38(%rbp), %rdx
xorl %esi, %esi
callq 0x2a2b0
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| _mi_read_cache:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_2C], r8d
jmp short $+2
loc_D97AE:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_10]
cmp rax, [rcx]
jnb loc_D9876
mov rax, [rbp+var_28]
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
mov rcx, [rbp+var_10]
mov rcx, [rcx]
sub rcx, [rbp+var_20]
cmp rax, rcx
jbe short loc_D97EA
mov rax, [rbp+var_10]
mov rax, [rax]
sub rax, [rbp+var_20]
mov [rbp+var_38], rax
loc_D97EA:
mov rax, [rbp+var_10]
mov dword ptr [rax+0E0h], 1
mov rax, [rbp+var_10]
mov edx, [rax+0D4h]
mov rcx, [rbp+var_18]
mov r8, [rbp+var_38]
mov r9, [rbp+var_20]
lea rdi, aWorkspaceLlm4b_36; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 35h ; '5'
mov [rsp+60h+var_60], 4
call inline_mysql_file_pread_8
cmp rax, 0
jz short loc_D983B
jmp short $+2
loc_D982F:
mov [rbp+var_4], 1
jmp loc_D9AEF
loc_D983B:
mov rcx, [rbp+var_38]
mov rax, [rbp+var_28]
sub rax, rcx
mov [rbp+var_28], rax
cmp rax, 0
jnz short loc_D985E
jmp short $+2
loc_D9852:
mov [rbp+var_4], 0
jmp loc_D9AEF
loc_D985E:
mov rax, [rbp+var_38]
add rax, [rbp+var_20]
mov [rbp+var_20], rax
mov rax, [rbp+var_38]
add rax, [rbp+var_18]
mov [rbp+var_18], rax
loc_D9876:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_10]
cmp rax, [rcx]
jb loc_D995F
mov rax, [rbp+var_20]
mov rcx, [rbp+var_10]
sub rax, [rcx]
mov [rbp+var_48], rax
mov rcx, [rbp+var_10]
mov rcx, [rcx+18h]
mov rdx, [rbp+var_10]
mov rdx, [rdx+28h]
sub rcx, rdx
cmp rax, rcx
jnb loc_D995F
mov rax, [rbp+var_10]
mov rax, [rax+28h]
mov rcx, [rbp+var_48]
mov ecx, ecx
add rax, rcx
mov [rbp+var_50], rax
mov rax, [rbp+var_28]
mov rcx, [rbp+var_10]
mov rcx, [rcx+18h]
mov rdx, [rbp+var_50]
sub rcx, rdx
cmp rax, rcx
jnb short loc_D98E9
mov rax, [rbp+var_28]
mov [rbp+var_58], rax
jmp short loc_D98FC
loc_D98E9:
mov rax, [rbp+var_10]
mov rax, [rax+18h]
mov rcx, [rbp+var_50]
sub rax, rcx
mov [rbp+var_58], rax
loc_D98FC:
mov rax, [rbp+var_58]
mov [rbp+var_40], rax
mov rdi, [rbp+var_18]
mov rax, [rbp+var_10]
mov rsi, [rax+28h]
mov rax, [rbp+var_48]
mov eax, eax
add rsi, rax
mov rdx, [rbp+var_40]
call _memcpy
mov rcx, [rbp+var_40]
mov rax, [rbp+var_28]
sub rax, rcx
mov [rbp+var_28], rax
cmp rax, 0
jnz short loc_D9945
jmp short $+2
loc_D9939:
mov [rbp+var_4], 0
jmp loc_D9AEF
loc_D9945:
mov rax, [rbp+var_40]
add rax, [rbp+var_20]
mov [rbp+var_20], rax
mov rax, [rbp+var_40]
add rax, [rbp+var_18]
mov [rbp+var_18], rax
jmp short loc_D9967
loc_D995F:
mov [rbp+var_40], 0
loc_D9967:
mov eax, [rbp+var_2C]
and eax, 1
cmp eax, 0
jz loc_D9A16
mov rax, [rbp+var_20]
mov rcx, [rbp+var_10]
mov rcx, [rcx]
mov rdx, [rbp+var_10]
mov rdx, [rdx+18h]
mov rsi, [rbp+var_10]
mov rsi, [rsi+28h]
sub rdx, rsi
mov edx, edx
add rcx, rdx
cmp rax, rcx
jz short loc_D99D1
mov rcx, [rbp+var_20]
mov rax, [rbp+var_10]
mov [rax], rcx
mov rax, [rbp+var_10]
mov rcx, [rax+28h]
mov rax, [rbp+var_10]
mov [rax+18h], rcx
mov rax, [rbp+var_10]
mov [rax+10h], rcx
mov rax, [rbp+var_10]
mov dword ptr [rax+0E0h], 1
jmp short loc_D99E1
loc_D99D1:
mov rax, [rbp+var_10]
mov rcx, [rax+18h]
mov rax, [rbp+var_10]
mov [rax+10h], rcx
loc_D99E1:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_28]
call _my_b_read
cmp eax, 0
jnz short loc_D9A05
jmp short $+2
loc_D99F9:
mov [rbp+var_4], 0
jmp loc_D9AEF
loc_D9A05:
mov rax, [rbp+var_10]
movsxd rax, dword ptr [rax+0E4h]
mov [rbp+var_38], rax
jmp short loc_D9A6F
loc_D9A16:
mov rax, [rbp+var_10]
mov dword ptr [rax+0E0h], 1
mov rax, [rbp+var_10]
mov edx, [rax+0D4h]
mov rcx, [rbp+var_18]
mov r8, [rbp+var_28]
mov r9, [rbp+var_20]
lea rdi, aWorkspaceLlm4b_36; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 5Dh ; ']'
xor eax, eax
mov [rsp+60h+var_60], 0
call inline_mysql_file_pread_8
mov [rbp+var_38], rax
cmp rax, [rbp+var_28]
jnz short loc_D9A6D
jmp short $+2
loc_D9A61:
mov [rbp+var_4], 0
jmp loc_D9AEF
loc_D9A6D:
jmp short $+2
loc_D9A6F:
mov eax, [rbp+var_2C]
and eax, 2
cmp eax, 0
jz short loc_D9A91
mov rax, [rbp+var_38]
cmp eax, 0FFFFFFFFh
jz short loc_D9A91
mov rax, [rbp+var_38]
add rax, [rbp+var_40]
cmp rax, 3
jnb short loc_D9ACC
loc_D9A91:
jmp short $+2
loc_D9A93:
jmp short $+2
loc_D9A95:
call _my_thread_var
cmp dword ptr [rax], 0
jz short loc_D9AB6
call _my_thread_var
cmp dword ptr [rax], 0FFFFFFFFh
jz short loc_D9AB6
call _my_thread_var
cmp dword ptr [rax], 0AFh
jnz short loc_D9AC1
loc_D9AB6:
call _my_thread_var
mov dword ptr [rax], 7Fh
loc_D9AC1:
jmp short $+2
loc_D9AC3:
mov [rbp+var_4], 1
jmp short loc_D9AEF
loc_D9ACC:
mov rdi, [rbp+var_18]
add rdi, [rbp+var_38]
mov edx, 14h
sub rdx, [rbp+var_40]
sub rdx, [rbp+var_38]
xor esi, esi
call _memset
mov [rbp+var_4], 0
loc_D9AEF:
mov eax, [rbp+var_4]
add rsp, 60h
pop rbp
retn
| long long mi_read_cache(char *a1, const char *a2, unsigned long long a3, unsigned long long a4, char a5)
{
long long v5; // rcx
const char *v6; // rsi
unsigned long long v8; // [rsp+8h] [rbp-58h]
long long v9; // [rsp+10h] [rbp-50h]
unsigned long long v10; // [rsp+18h] [rbp-48h]
unsigned long long v11; // [rsp+20h] [rbp-40h]
unsigned long long v12; // [rsp+28h] [rbp-38h]
long long v13; // [rsp+28h] [rbp-38h]
unsigned long long v15; // [rsp+38h] [rbp-28h]
unsigned long long v16; // [rsp+40h] [rbp-20h]
const char *v17; // [rsp+48h] [rbp-18h]
char *v18; // [rsp+50h] [rbp-10h]
v18 = a1;
v17 = a2;
v16 = a3;
v15 = a4;
if ( a3 < *(_QWORD *)a1 )
{
v12 = a4;
if ( a4 > *(_QWORD *)a1 - a3 )
v12 = *(_QWORD *)a1 - a3;
*((_DWORD *)a1 + 56) = 1;
if ( inline_mysql_file_pread_8(
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_cache.c",
53,
*((_DWORD *)a1 + 53),
(_DWORD)a2,
v12,
a3,
4LL) )
{
return 1;
}
v15 -= v12;
if ( !v15 )
return 0;
v16 += v12;
v17 = &a2[v12];
}
if ( v16 < *(_QWORD *)a1 || (v10 = v16 - *(_QWORD *)a1, v10 >= *((_QWORD *)a1 + 3) - *((_QWORD *)a1 + 5)) )
{
v11 = 0LL;
}
else
{
v9 = (unsigned int)v10 + *((_QWORD *)a1 + 5);
if ( v15 >= *((_QWORD *)a1 + 3) - v9 )
v8 = *((_QWORD *)a1 + 3) - v9;
else
v8 = v15;
v11 = v8;
memcpy(v17, (unsigned int)v10 + *((_QWORD *)a1 + 5), v8);
v15 -= v8;
if ( !v15 )
return 0;
v16 += v8;
v17 += v8;
}
if ( (a5 & 1) != 0 )
{
if ( v16 == (unsigned int)*((_QWORD *)a1 + 3) - (unsigned int)*((_QWORD *)a1 + 5) + *(_QWORD *)a1 )
{
*((_QWORD *)a1 + 2) = *((_QWORD *)a1 + 3);
}
else
{
*(_QWORD *)a1 = v16;
v5 = *((_QWORD *)a1 + 5);
*((_QWORD *)a1 + 3) = v5;
*((_QWORD *)a1 + 2) = v5;
*((_DWORD *)a1 + 56) = 1;
}
v6 = v17;
if ( !(unsigned int)my_b_read(a1, v17, v15) )
return 0;
v13 = *((int *)a1 + 57);
}
else
{
*((_DWORD *)a1 + 56) = 1;
a1 = "/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_cache.c";
v6 = (_BYTE *)(&qword_58 + 5);
v13 = inline_mysql_file_pread_8(
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_cache.c",
93,
*((_DWORD *)v18 + 53),
(_DWORD)v17,
v15,
v16,
0LL);
if ( v13 == v15 )
return 0;
}
if ( (a5 & 2) != 0 && (_DWORD)v13 != -1 && v11 + v13 >= 3 )
{
memset(&v17[v13], 0LL, 20 - v11 - v13);
return 0;
}
else
{
if ( !*(_DWORD *)my_thread_var(a1, v6)
|| *(_DWORD *)my_thread_var(a1, v6) == -1
|| *(_DWORD *)my_thread_var(a1, v6) == 175 )
{
*(_DWORD *)my_thread_var(a1, v6) = 127;
}
return 1;
}
}
| _mi_read_cache:
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 qword ptr [RBP + -0x28],RCX
MOV dword ptr [RBP + -0x2c],R8D
JMP 0x001d97ae
LAB_001d97ae:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX]
JNC 0x001d9876
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
SUB RCX,qword ptr [RBP + -0x20]
CMP RAX,RCX
JBE 0x001d97ea
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
SUB RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x38],RAX
LAB_001d97ea:
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0xe0],0x1
MOV RAX,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RAX + 0xd4]
MOV RCX,qword ptr [RBP + -0x18]
MOV R8,qword ptr [RBP + -0x38]
MOV R9,qword ptr [RBP + -0x20]
LEA RDI,[0x25cf8f]
MOV ESI,0x35
MOV qword ptr [RSP],0x4
CALL 0x001d9b00
CMP RAX,0x0
JZ 0x001d983b
JMP 0x001d982f
LAB_001d982f:
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001d9aef
LAB_001d983b:
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x28]
SUB RAX,RCX
MOV qword ptr [RBP + -0x28],RAX
CMP RAX,0x0
JNZ 0x001d985e
JMP 0x001d9852
LAB_001d9852:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001d9aef
LAB_001d985e:
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x18],RAX
LAB_001d9876:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX]
JC 0x001d995f
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
SUB RAX,qword ptr [RCX]
MOV qword ptr [RBP + -0x48],RAX
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x18]
MOV RDX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RDX + 0x28]
SUB RCX,RDX
CMP RAX,RCX
JNC 0x001d995f
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x28]
MOV RCX,qword ptr [RBP + -0x48]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x18]
MOV RDX,qword ptr [RBP + -0x50]
SUB RCX,RDX
CMP RAX,RCX
JNC 0x001d98e9
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x58],RAX
JMP 0x001d98fc
LAB_001d98e9:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOV RCX,qword ptr [RBP + -0x50]
SUB RAX,RCX
MOV qword ptr [RBP + -0x58],RAX
LAB_001d98fc:
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RBP + -0x40],RAX
MOV RDI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x28]
MOV RAX,qword ptr [RBP + -0x48]
MOV EAX,EAX
ADD RSI,RAX
MOV RDX,qword ptr [RBP + -0x40]
CALL 0x0012a0c0
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x28]
SUB RAX,RCX
MOV qword ptr [RBP + -0x28],RAX
CMP RAX,0x0
JNZ 0x001d9945
JMP 0x001d9939
LAB_001d9939:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001d9aef
LAB_001d9945:
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001d9967
LAB_001d995f:
MOV qword ptr [RBP + -0x40],0x0
LAB_001d9967:
MOV EAX,dword ptr [RBP + -0x2c]
AND EAX,0x1
CMP EAX,0x0
JZ 0x001d9a16
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
MOV RDX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RDX + 0x18]
MOV RSI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RSI + 0x28]
SUB RDX,RSI
MOV EDX,EDX
ADD RCX,RDX
CMP RAX,RCX
JZ 0x001d99d1
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x28]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0xe0],0x1
JMP 0x001d99e1
LAB_001d99d1:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],RCX
LAB_001d99e1:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x28]
CALL 0x001e3db0
CMP EAX,0x0
JNZ 0x001d9a05
JMP 0x001d99f9
LAB_001d99f9:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001d9aef
LAB_001d9a05:
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RAX,dword ptr [RAX + 0xe4]
MOV qword ptr [RBP + -0x38],RAX
JMP 0x001d9a6f
LAB_001d9a16:
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0xe0],0x1
MOV RAX,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RAX + 0xd4]
MOV RCX,qword ptr [RBP + -0x18]
MOV R8,qword ptr [RBP + -0x28]
MOV R9,qword ptr [RBP + -0x20]
LEA RDI,[0x25cf8f]
MOV ESI,0x5d
XOR EAX,EAX
MOV qword ptr [RSP],0x0
CALL 0x001d9b00
MOV qword ptr [RBP + -0x38],RAX
CMP RAX,qword ptr [RBP + -0x28]
JNZ 0x001d9a6d
JMP 0x001d9a61
LAB_001d9a61:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001d9aef
LAB_001d9a6d:
JMP 0x001d9a6f
LAB_001d9a6f:
MOV EAX,dword ptr [RBP + -0x2c]
AND EAX,0x2
CMP EAX,0x0
JZ 0x001d9a91
MOV RAX,qword ptr [RBP + -0x38]
CMP EAX,-0x1
JZ 0x001d9a91
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,qword ptr [RBP + -0x40]
CMP RAX,0x3
JNC 0x001d9acc
LAB_001d9a91:
JMP 0x001d9a93
LAB_001d9a93:
JMP 0x001d9a95
LAB_001d9a95:
CALL 0x001fc990
CMP dword ptr [RAX],0x0
JZ 0x001d9ab6
CALL 0x001fc990
CMP dword ptr [RAX],-0x1
JZ 0x001d9ab6
CALL 0x001fc990
CMP dword ptr [RAX],0xaf
JNZ 0x001d9ac1
LAB_001d9ab6:
CALL 0x001fc990
MOV dword ptr [RAX],0x7f
LAB_001d9ac1:
JMP 0x001d9ac3
LAB_001d9ac3:
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001d9aef
LAB_001d9acc:
MOV RDI,qword ptr [RBP + -0x18]
ADD RDI,qword ptr [RBP + -0x38]
MOV EDX,0x14
SUB RDX,qword ptr [RBP + -0x40]
SUB RDX,qword ptr [RBP + -0x38]
XOR ESI,ESI
CALL 0x0012a2b0
MOV dword ptr [RBP + -0x4],0x0
LAB_001d9aef:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x60
POP RBP
RET
|
int4 _mi_read_cache(ulong *param_1,void *param_2,ulong param_3,ulong param_4,uint param_5)
{
int iVar1;
long lVar2;
ulong uVar3;
int *piVar4;
int4 *puVar5;
size_t local_60;
size_t local_48;
ulong local_40;
ulong local_30;
ulong local_28;
void *local_20;
int4 local_c;
local_30 = param_4;
local_28 = param_3;
local_20 = param_2;
if (param_3 < *param_1) {
local_40 = param_4;
if (*param_1 - param_3 < param_4) {
local_40 = *param_1 - param_3;
}
*(int4 *)(param_1 + 0x1c) = 1;
lVar2 = inline_mysql_file_pread
("/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_cache.c",0x35,
*(int4 *)((long)param_1 + 0xd4),param_2,local_40,param_3,4);
if (lVar2 != 0) {
return 1;
}
local_30 = param_4 - local_40;
if (local_30 == 0) {
return 0;
}
local_28 = local_40 + param_3;
local_20 = (void *)(local_40 + (long)param_2);
}
if ((local_28 < *param_1) || (uVar3 = local_28 - *param_1, param_1[3] - param_1[5] <= uVar3)) {
local_48 = 0;
}
else {
lVar2 = param_1[5] + (uVar3 & 0xffffffff);
if (local_30 < param_1[3] - lVar2) {
local_60 = local_30;
}
else {
local_60 = param_1[3] - lVar2;
}
local_48 = local_60;
memcpy(local_20,(void *)(param_1[5] + (uVar3 & 0xffffffff)),local_60);
local_30 = local_30 - local_60;
if (local_30 == 0) {
return 0;
}
local_28 = local_60 + local_28;
local_20 = (void *)(local_60 + (long)local_20);
}
if ((param_5 & 1) == 0) {
*(int4 *)(param_1 + 0x1c) = 1;
local_40 = inline_mysql_file_pread
("/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_cache.c",0x5d,
*(int4 *)((long)param_1 + 0xd4),local_20,local_30,local_28,0);
if (local_40 == local_30) {
return 0;
}
}
else {
if (local_28 == *param_1 + (ulong)(uint)((int)param_1[3] - (int)param_1[5])) {
param_1[2] = param_1[3];
}
else {
*param_1 = local_28;
param_1[3] = param_1[5];
param_1[2] = param_1[5];
*(int4 *)(param_1 + 0x1c) = 1;
}
iVar1 = _my_b_read(param_1,local_20,local_30);
if (iVar1 == 0) {
return 0;
}
local_40 = (ulong)*(int *)((long)param_1 + 0xe4);
}
if ((((param_5 & 2) == 0) || ((int)local_40 == -1)) || (local_40 + local_48 < 3)) {
piVar4 = (int *)_my_thread_var();
if (((*piVar4 == 0) || (piVar4 = (int *)_my_thread_var(), *piVar4 == -1)) ||
(piVar4 = (int *)_my_thread_var(), *piVar4 == 0xaf)) {
puVar5 = (int4 *)_my_thread_var();
*puVar5 = 0x7f;
}
local_c = 1;
}
else {
memset((void *)((long)local_20 + local_40),0,(0x14 - local_48) - local_40);
local_c = 0;
}
return local_c;
}
| |
27,060 | google::protobuf::DescriptorBuilder::AddWarning(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, google::protobuf::Message const&, google::protobuf::DescriptorPool::ErrorCollector::ErrorLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc | void DescriptorBuilder::AddWarning(
const std::string& element_name, const Message& descriptor,
DescriptorPool::ErrorCollector::ErrorLocation location,
const std::string& error) {
if (error_collector_ == nullptr) {
GOOGLE_LOG(WARNING) << filename_ << " " << element_name << ": " << error;
} else {
error_collector_->AddWarning(filename_, element_name, &descriptor, location,
error);
}
} | O0 | cpp | google::protobuf::DescriptorBuilder::AddWarning(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, google::protobuf::Message const&, google::protobuf::DescriptorPool::ErrorCollector::ErrorLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
subq $0xa8, %rsp
movq %rdi, 0xa0(%rsp)
movq %rsi, 0x98(%rsp)
movq %rdx, 0x90(%rsp)
movl %ecx, 0x8c(%rsp)
movq %r8, 0x80(%rsp)
movq 0xa0(%rsp), %rax
movq %rax, 0x30(%rsp)
cmpq $0x0, 0x10(%rax)
jne 0x43167
leaq 0x1aa437(%rip), %rdx # 0x1ed4d4
leaq 0x48(%rsp), %rdi
movq %rdi, 0x20(%rsp)
movl $0x1, %esi
movl $0x109d, %ecx # imm = 0x109D
callq 0x237e0
movq 0x30(%rsp), %rsi
movq 0x20(%rsp), %rdi
addq $0x38, %rsi
callq 0x230d0
movq %rax, 0x28(%rsp)
jmp 0x430d0
movq 0x28(%rsp), %rdi
leaq 0x1ad097(%rip), %rsi # 0x1f0173
callq 0x230a0
movq %rax, 0x18(%rsp)
jmp 0x430e8
movq 0x18(%rsp), %rdi
movq 0x98(%rsp), %rsi
callq 0x230d0
movq %rax, 0x10(%rsp)
jmp 0x43101
movq 0x10(%rsp), %rdi
leaq 0x1afae8(%rip), %rsi # 0x1f2bf5
callq 0x230a0
movq %rax, 0x8(%rsp)
jmp 0x43119
movq 0x8(%rsp), %rdi
movq 0x80(%rsp), %rsi
callq 0x230d0
movq %rax, (%rsp)
jmp 0x43131
movq (%rsp), %rsi
leaq 0x3b(%rsp), %rdi
callq 0x23250
jmp 0x43141
leaq 0x48(%rsp), %rdi
callq 0x23820
jmp 0x4319a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x40(%rsp)
movl %eax, 0x3c(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x23820
jmp 0x431a2
movq 0x30(%rsp), %rsi
movq 0x10(%rsi), %rdi
addq $0x38, %rsi
movq 0x98(%rsp), %rdx
movq 0x90(%rsp), %rcx
movl 0x8c(%rsp), %r8d
movq 0x80(%rsp), %r9
movq (%rdi), %rax
callq *0x18(%rax)
addq $0xa8, %rsp
retq
movq 0x40(%rsp), %rdi
callq 0x13750
nopl (%rax)
| _ZN6google8protobuf17DescriptorBuilder10AddWarningERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_7MessageENS0_14DescriptorPool14ErrorCollector13ErrorLocationES9_:
sub rsp, 0A8h
mov [rsp+0A8h+var_8], rdi
mov [rsp+0A8h+var_10], rsi
mov [rsp+0A8h+var_18], rdx
mov [rsp+0A8h+var_1C], ecx
mov [rsp+0A8h+var_28], r8
mov rax, [rsp+0A8h+var_8]
mov [rsp+0A8h+var_78], rax
cmp qword ptr [rax+10h], 0
jnz loc_43167
lea rdx, aWorkspaceLlm4b_4; "/workspace/llm4binary/github2025/aimrt_"...
lea rdi, [rsp+0A8h+var_60]
mov [rsp+0A8h+var_88], rdi
mov esi, 1
mov ecx, 109Dh
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
mov rsi, [rsp+0A8h+var_78]
mov rdi, [rsp+0A8h+var_88]
add rsi, 38h ; '8'
call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&)
mov [rsp+0A8h+var_80], rax
jmp short $+2
loc_430D0:
mov rdi, [rsp+0A8h+var_80]
lea rsi, aParsingAttempt+12h; " "
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+0A8h+var_90], rax
jmp short $+2
loc_430E8:
mov rdi, [rsp+0A8h+var_90]
mov rsi, [rsp+0A8h+var_10]
call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&)
mov [rsp+0A8h+var_98], rax
jmp short $+2
loc_43101:
mov rdi, [rsp+0A8h+var_98]
lea rsi, aField+0Fh; ": "
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+0A8h+var_A0], rax
jmp short $+2
loc_43119:
mov rdi, [rsp+0A8h+var_A0]
mov rsi, [rsp+0A8h+var_28]
call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&)
mov [rsp+0A8h+var_A8], rax
jmp short $+2
loc_43131:
mov rsi, [rsp+0A8h+var_A8]
lea rdi, [rsp+0A8h+var_6D]
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
jmp short $+2
loc_43141:
lea rdi, [rsp+0A8h+var_60]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
jmp short loc_4319A
mov rcx, rax
mov eax, edx
mov [rsp+arg_38], rcx
mov [rsp+arg_34], eax
lea rdi, [rsp+arg_40]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
jmp short loc_431A2
loc_43167:
mov rsi, [rsp+0A8h+var_78]
mov rdi, [rsi+10h]
add rsi, 38h ; '8'
mov rdx, [rsp+0A8h+var_10]
mov rcx, [rsp+0A8h+var_18]
mov r8d, [rsp+0A8h+var_1C]
mov r9, [rsp+0A8h+var_28]
mov rax, [rdi]
call qword ptr [rax+18h]
loc_4319A:
add rsp, 0A8h
retn
loc_431A2:
mov rdi, [rsp+arg_38]
call __Unwind_Resume
| void google::protobuf::DescriptorBuilder::AddWarning(
long long a1,
long long a2,
long long a3,
unsigned int a4,
long long a5)
{
google::protobuf::internal::LogMessage *v5; // [rsp+0h] [rbp-A8h]
long long v6; // [rsp+8h] [rbp-A0h]
long long v7; // [rsp+10h] [rbp-98h]
long long v8; // [rsp+18h] [rbp-90h]
long long v9; // [rsp+28h] [rbp-80h]
_BYTE v10[13]; // [rsp+3Bh] [rbp-6Dh] BYREF
_BYTE v11[56]; // [rsp+48h] [rbp-60h] BYREF
long long v12; // [rsp+80h] [rbp-28h]
unsigned int v13; // [rsp+8Ch] [rbp-1Ch]
long long v14; // [rsp+90h] [rbp-18h]
long long v15; // [rsp+98h] [rbp-10h]
long long v16; // [rsp+A0h] [rbp-8h]
v16 = a1;
v15 = a2;
v14 = a3;
v13 = a4;
v12 = a5;
if ( *(_QWORD *)(a1 + 16) )
{
(*(void ( **)(_QWORD, long long, long long, long long, _QWORD, long long))(**(_QWORD **)(a1 + 16) + 24LL))(
*(_QWORD *)(a1 + 16),
a1 + 56,
v15,
v14,
v13,
v12);
}
else
{
google::protobuf::internal::LogMessage::LogMessage(
(long long)v11,
1,
(long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc",
4253);
v9 = google::protobuf::internal::LogMessage::operator<<((long long)v11, a1 + 56);
v8 = google::protobuf::internal::LogMessage::operator<<(v9, (long long)" ");
v7 = google::protobuf::internal::LogMessage::operator<<(v8, v15);
v6 = google::protobuf::internal::LogMessage::operator<<(v7, (long long)": ");
v5 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<(v6, v12);
google::protobuf::internal::LogFinisher::operator=((long long)v10, v5);
google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v11);
}
}
| AddWarning:
SUB RSP,0xa8
MOV qword ptr [RSP + 0xa0],RDI
MOV qword ptr [RSP + 0x98],RSI
MOV qword ptr [RSP + 0x90],RDX
MOV dword ptr [RSP + 0x8c],ECX
MOV qword ptr [RSP + 0x80],R8
MOV RAX,qword ptr [RSP + 0xa0]
MOV qword ptr [RSP + 0x30],RAX
CMP qword ptr [RAX + 0x10],0x0
JNZ 0x00143167
LEA RDX,[0x2ed4d4]
LEA RDI,[RSP + 0x48]
MOV qword ptr [RSP + 0x20],RDI
MOV ESI,0x1
MOV ECX,0x109d
CALL 0x001237e0
MOV RSI,qword ptr [RSP + 0x30]
MOV RDI,qword ptr [RSP + 0x20]
ADD RSI,0x38
LAB_001430c4:
CALL 0x001230d0
MOV qword ptr [RSP + 0x28],RAX
JMP 0x001430d0
LAB_001430d0:
MOV RDI,qword ptr [RSP + 0x28]
LEA RSI,[0x2f0173]
CALL 0x001230a0
MOV qword ptr [RSP + 0x18],RAX
JMP 0x001430e8
LAB_001430e8:
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x98]
CALL 0x001230d0
MOV qword ptr [RSP + 0x10],RAX
JMP 0x00143101
LAB_00143101:
MOV RDI,qword ptr [RSP + 0x10]
LEA RSI,[0x2f2bf5]
CALL 0x001230a0
MOV qword ptr [RSP + 0x8],RAX
JMP 0x00143119
LAB_00143119:
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x80]
CALL 0x001230d0
MOV qword ptr [RSP],RAX
JMP 0x00143131
LAB_00143131:
MOV RSI,qword ptr [RSP]
LEA RDI,[RSP + 0x3b]
CALL 0x00123250
LAB_0014313f:
JMP 0x00143141
LAB_00143141:
LEA RDI,[RSP + 0x48]
CALL 0x00123820
JMP 0x0014319a
LAB_00143167:
MOV RSI,qword ptr [RSP + 0x30]
MOV RDI,qword ptr [RSI + 0x10]
ADD RSI,0x38
MOV RDX,qword ptr [RSP + 0x98]
MOV RCX,qword ptr [RSP + 0x90]
MOV R8D,dword ptr [RSP + 0x8c]
MOV R9,qword ptr [RSP + 0x80]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_0014319a:
ADD RSP,0xa8
RET
|
/* google::protobuf::DescriptorBuilder::AddWarning(std::__cxx11::string const&,
google::protobuf::Message const&,
google::protobuf::DescriptorPool::ErrorCollector::ErrorLocation, std::__cxx11::string const&) */
void __thiscall
google::protobuf::DescriptorBuilder::AddWarning
(DescriptorBuilder *this,string *param_1,int8 param_2,int4 param_4,
string *param_5)
{
LogMessage *pLVar1;
LogFinisher local_6d [13];
LogMessage local_60 [56];
string *local_28;
int4 local_1c;
int8 local_18;
string *local_10;
DescriptorBuilder *local_8;
local_28 = param_5;
local_1c = param_4;
local_18 = param_2;
local_10 = param_1;
local_8 = this;
if (*(long *)(this + 0x10) == 0) {
internal::LogMessage::LogMessage
(local_60,1,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc"
,0x109d);
/* try { // try from 001430c4 to 0014313e has its CatchHandler @ 0014314d */
pLVar1 = (LogMessage *)internal::LogMessage::operator<<(local_60,(string *)(this + 0x38));
pLVar1 = (LogMessage *)internal::LogMessage::operator<<(pLVar1," ");
pLVar1 = (LogMessage *)internal::LogMessage::operator<<(pLVar1,local_10);
pLVar1 = (LogMessage *)internal::LogMessage::operator<<(pLVar1,": ");
pLVar1 = (LogMessage *)internal::LogMessage::operator<<(pLVar1,local_28);
internal::LogFinisher::operator=(local_6d,pLVar1);
internal::LogMessage::~LogMessage(local_60);
}
else {
(**(code **)(**(long **)(this + 0x10) + 0x18))
(*(long **)(this + 0x10),this + 0x38,param_1,param_2,param_4,param_5);
}
return;
}
| |
27,061 | google::protobuf::DescriptorBuilder::AddWarning(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, google::protobuf::Message const&, google::protobuf::DescriptorPool::ErrorCollector::ErrorLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc | void DescriptorBuilder::AddWarning(
const std::string& element_name, const Message& descriptor,
DescriptorPool::ErrorCollector::ErrorLocation location,
const std::string& error) {
if (error_collector_ == nullptr) {
GOOGLE_LOG(WARNING) << filename_ << " " << element_name << ": " << error;
} else {
error_collector_->AddWarning(filename_, element_name, &descriptor, location,
error);
}
} | O3 | cpp | google::protobuf::DescriptorBuilder::AddWarning(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, google::protobuf::Message const&, google::protobuf::DescriptorPool::ErrorCollector::ErrorLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x28298
movl %ecx, %r8d
movq %rdx, %rcx
addq $0x38, %r15
movq (%rdi), %rax
movq 0x18(%rax), %rax
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %r9
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmpq *%rax
leaq 0x8db45(%rip), %rdx # 0xb5de4
leaq 0x10(%rsp), %r12
movq %r12, %rdi
movl $0x1, %esi
movl $0x109d, %ecx # imm = 0x109D
callq 0x169ca
addq $0x38, %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x164da
leaq 0x90509(%rip), %rsi # 0xb87d5
movq %rax, %rdi
callq 0x164c8
movq %rax, %rdi
movq %r14, %rsi
callq 0x164da
leaq 0x92164(%rip), %rsi # 0xba44a
movq %rax, %rdi
callq 0x164c8
movq %rax, %rdi
movq %rbx, %rsi
callq 0x164da
leaq 0xf(%rsp), %rdi
movq %rax, %rsi
callq 0x165a2
leaq 0x10(%rsp), %rdi
callq 0x169e8
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x2831e
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x169e8
movq %rbx, %rdi
callq 0xf570
nop
| _ZN6google8protobuf17DescriptorBuilder10AddWarningERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_7MessageENS0_14DescriptorPool14ErrorCollector13ErrorLocationES9_:
push r15
push r14
push r12
push rbx
sub rsp, 48h
mov rbx, r8
mov r14, rsi
mov r15, rdi
mov rdi, [rdi+10h]
test rdi, rdi
jz short loc_28298
mov r8d, ecx
mov rcx, rdx
add r15, 38h ; '8'
mov rax, [rdi]
mov rax, [rax+18h]
mov rsi, r15
mov rdx, r14
mov r9, rbx
add rsp, 48h
pop rbx
pop r12
pop r14
pop r15
jmp rax
loc_28298:
lea rdx, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/aimrt_"...
lea r12, [rsp+68h+var_58]
mov rdi, r12
mov esi, 1
mov ecx, 109Dh
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
add r15, 38h ; '8'
mov rdi, r12
mov rsi, r15
call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&)
lea rsi, aParsingAttempt+12h; " "
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov rdi, rax
mov rsi, r14
call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&)
lea rsi, aField+0Fh; ": "
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov rdi, rax
mov rsi, rbx
call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&)
lea rdi, [rsp+68h+var_59]
mov rsi, rax
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
lea rdi, [rsp+68h+var_58]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
add rsp, 48h
pop rbx
pop r12
pop r14
pop r15
retn
jmp short $+2
loc_2831E:
mov rbx, rax
lea rdi, [rsp+arg_8]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
mov rdi, rbx
call __Unwind_Resume
| void google::protobuf::DescriptorBuilder::AddWarning(
long long a1,
long long a2,
long long a3,
unsigned int a4,
long long a5)
{
long long v7; // rdi
long long v8; // rax
long long v9; // rax
long long v10; // rax
long long v11; // rax
google::protobuf::internal::LogMessage *v12; // rax
char v13; // [rsp+Fh] [rbp-59h] BYREF
_BYTE v14[88]; // [rsp+10h] [rbp-58h] BYREF
v7 = *(_QWORD *)(a1 + 16);
if ( v7 )
{
(*(void ( **)(long long, long long, long long, long long, _QWORD, long long))(*(_QWORD *)v7 + 24LL))(
v7,
a1 + 56,
a2,
a3,
a4,
a5);
}
else
{
google::protobuf::internal::LogMessage::LogMessage(
(long long)v14,
1,
(long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc",
4253);
v8 = google::protobuf::internal::LogMessage::operator<<((long long)v14, a1 + 56);
v9 = google::protobuf::internal::LogMessage::operator<<(v8, (long long)" ");
v10 = google::protobuf::internal::LogMessage::operator<<(v9, a2);
v11 = google::protobuf::internal::LogMessage::operator<<(v10, (long long)": ");
v12 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<(v11, a5);
google::protobuf::internal::LogFinisher::operator=((long long)&v13, v12);
google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v14);
}
}
| AddWarning:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV RBX,R8
MOV R14,RSI
MOV R15,RDI
MOV RDI,qword ptr [RDI + 0x10]
TEST RDI,RDI
JZ 0x00128298
MOV R8D,ECX
MOV RCX,RDX
ADD R15,0x38
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0x18]
MOV RSI,R15
MOV RDX,R14
MOV R9,RBX
ADD RSP,0x48
POP RBX
POP R12
POP R14
POP R15
JMP RAX
LAB_00128298:
LEA RDX,[0x1b5de4]
LEA R12,[RSP + 0x10]
MOV RDI,R12
MOV ESI,0x1
MOV ECX,0x109d
CALL 0x001169ca
ADD R15,0x38
LAB_001282ba:
MOV RDI,R12
MOV RSI,R15
CALL 0x001164da
LEA RSI,[0x1b87d5]
MOV RDI,RAX
CALL 0x001164c8
MOV RDI,RAX
MOV RSI,R14
CALL 0x001164da
LEA RSI,[0x1ba44a]
MOV RDI,RAX
CALL 0x001164c8
MOV RDI,RAX
MOV RSI,RBX
CALL 0x001164da
LAB_001282f9:
LEA RDI,[RSP + 0xf]
MOV RSI,RAX
CALL 0x001165a2
LAB_00128306:
LEA RDI,[RSP + 0x10]
CALL 0x001169e8
ADD RSP,0x48
POP RBX
POP R12
POP R14
POP R15
RET
|
/* google::protobuf::DescriptorBuilder::AddWarning(std::__cxx11::string const&,
google::protobuf::Message const&,
google::protobuf::DescriptorPool::ErrorCollector::ErrorLocation, std::__cxx11::string const&) */
void __thiscall
google::protobuf::DescriptorBuilder::AddWarning
(DescriptorBuilder *this,string *param_1,int8 param_2,int4 param_4,
string *param_5)
{
long *plVar1;
LogMessage *pLVar2;
LogFinisher local_59;
LogMessage local_58 [56];
plVar1 = *(long **)(this + 0x10);
if (plVar1 != (long *)0x0) {
/* WARNING: Could not recover jumptable at 0x00128296. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(*plVar1 + 0x18))(plVar1,this + 0x38,param_1,param_2,param_4,param_5);
return;
}
internal::LogMessage::LogMessage
(local_58,1,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc"
,0x109d);
/* try { // try from 001282ba to 001282f8 has its CatchHandler @ 0012831e */
pLVar2 = (LogMessage *)internal::LogMessage::operator<<(local_58,(string *)(this + 0x38));
pLVar2 = (LogMessage *)internal::LogMessage::operator<<(pLVar2," ");
pLVar2 = (LogMessage *)internal::LogMessage::operator<<(pLVar2,param_1);
pLVar2 = (LogMessage *)internal::LogMessage::operator<<(pLVar2,": ");
pLVar2 = (LogMessage *)internal::LogMessage::operator<<(pLVar2,param_5);
/* try { // try from 001282f9 to 00128305 has its CatchHandler @ 0012831c */
internal::LogFinisher::operator=(&local_59,pLVar2);
internal::LogMessage::~LogMessage(local_58);
return;
}
| |
27,062 | 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 0x41d87
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x10(%rbp), %rdx
movq -0x8(%rbp), %rax
movl 0x9c(%rax), %eax
addq %rax, %rdx
callq 0x41da0
movl %eax, -0x14(%rbp)
cmpl $0x0, %eax
je 0x41d65
movl -0x14(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
jmp 0x41d85
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 0x41d24
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_41D24:
mov rax, [rbp+var_10]
cmp byte ptr [rax], 0
jz short loc_41D87
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_41D65
mov ecx, [rbp+var_14]
mov rax, [rbp+var_10]
mov ecx, ecx
add rax, rcx
mov [rbp+var_10], rax
jmp short loc_41D85
loc_41D65:
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_41D85:
jmp short loc_41D24
loc_41D87:
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_00141d24:
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX],0x0
JZ 0x00141d87
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 0x00141da0
MOV dword ptr [RBP + -0x14],EAX
CMP EAX,0x0
JZ 0x00141d65
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 0x00141d85
LAB_00141d65:
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_00141d85:
JMP 0x00141d24
LAB_00141d87:
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;
}
| |
27,063 | testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::CreateKey() | AlayaLite/build_O3/_deps/googletest-src/googletest/include/gtest/internal/gtest-port.h | static pthread_key_t CreateKey() {
pthread_key_t key;
// When a thread exits, DeleteThreadLocalValue() will be called on
// the object managed for that thread.
GTEST_CHECK_POSIX_SUCCESS_(
pthread_key_create(&key, &DeleteThreadLocalValue));
return key;
} | O3 | c | testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::CreateKey():
pushq %rbx
subq $0x10, %rsp
leaq 0x92(%rip), %rsi # 0x7de74
leaq 0xc(%rsp), %rdi
callq 0x11a40
testl %eax, %eax
je 0x7de55
movl %eax, %ebx
leaq 0xa3c7(%rip), %rdx # 0x881c0
leaq 0x8(%rsp), %rdi
movl $0x3, %esi
movl $0x72e, %ecx # imm = 0x72E
callq 0x5830c
movq 0x361c4(%rip), %rdi # 0xb3fd8
leaq 0xab2f(%rip), %rsi # 0x8894a
movl $0x31, %edx
callq 0x11b90
movq 0x361ac(%rip), %rdi # 0xb3fd8
leaq 0xa421(%rip), %rsi # 0x88254
movl $0x12, %edx
callq 0x11b90
movq 0x36194(%rip), %rdi # 0xb3fd8
movl %ebx, %esi
callq 0x113b0
leaq 0x8(%rsp), %rdi
callq 0x5844e
movl 0xc(%rsp), %eax
addq $0x10, %rsp
popq %rbx
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x5844e
movq %rbx, %rdi
callq 0x11760
| _ZN7testing8internal11ThreadLocalIPNS_31TestPartResultReporterInterfaceEE9CreateKeyEv:
push rbx
sub rsp, 10h
lea rsi, DeleteThreadLocalValue
lea rdi, [rsp+18h+var_C]
call _pthread_key_create
test eax, eax
jz short loc_7DE55
mov ebx, eax
lea rdx, aWorkspaceLlm4b_15; "/workspace/llm4binary/github2025/AlayaL"...
lea rdi, [rsp+18h+var_10]
mov esi, 3
mov ecx, 72Eh
call _ZN7testing8internal8GTestLogC2ENS0_16GTestLogSeverityEPKci; testing::internal::GTestLog::GTestLog(testing::internal::GTestLogSeverity,char const*,int)
mov rdi, cs:_ZSt4cerr_ptr
lea rsi, aPthreadKeyCrea_0; "pthread_key_create(&key, &DeleteThreadL"...
mov edx, 31h ; '1'
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, cs:_ZSt4cerr_ptr
lea rsi, aFailedWithErro; "failed with error "
mov edx, 12h
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, cs:_ZSt4cerr_ptr
mov esi, ebx
call __ZNSolsEi; std::ostream::operator<<(int)
lea rdi, [rsp+18h+var_10]; this
call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog()
loc_7DE55:
mov eax, [rsp+18h+var_C]
add rsp, 10h
pop rbx
retn
mov rbx, rax
lea rdi, [rsp+arg_0]; this
call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog()
mov rdi, rbx
call __Unwind_Resume
| long long testing::internal::ThreadLocal<testing::TestPartResultReporterInterface *>::CreateKey()
{
unsigned int v0; // eax
unsigned int v1; // ebx
int v3; // [rsp+8h] [rbp-10h] BYREF
_DWORD v4[3]; // [rsp+Ch] [rbp-Ch] BYREF
v0 = pthread_key_create(v4, DeleteThreadLocalValue);
if ( v0 )
{
v1 = v0;
testing::internal::GTestLog::GTestLog(
&v3,
3,
"/workspace/llm4binary/github2025/AlayaLite/build_O3/_deps/googletest-src/googletest/include/gtest/internal/gtest-port.h",
1838);
std::__ostream_insert<char,std::char_traits<char>>(
&std::cerr,
"pthread_key_create(&key, &DeleteThreadLocalValue)",
49LL);
std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, "failed with error ", 18LL);
std::ostream::operator<<(&std::cerr, v1);
testing::internal::GTestLog::~GTestLog((testing::internal::GTestLog *)&v3);
}
return v4[0];
}
| CreateKey:
PUSH RBX
SUB RSP,0x10
LEA RSI,[0x17de74]
LEA RDI,[RSP + 0xc]
CALL 0x00111a40
TEST EAX,EAX
JZ 0x0017de55
MOV EBX,EAX
LEA RDX,[0x1881c0]
LEA RDI,[RSP + 0x8]
MOV ESI,0x3
MOV ECX,0x72e
CALL 0x0015830c
LAB_0017de0d:
MOV RDI,qword ptr [0x001b3fd8]
LEA RSI,[0x18894a]
MOV EDX,0x31
CALL 0x00111b90
MOV RDI,qword ptr [0x001b3fd8]
LEA RSI,[0x188254]
MOV EDX,0x12
CALL 0x00111b90
MOV RDI,qword ptr [0x001b3fd8]
MOV ESI,EBX
CALL 0x001113b0
LAB_0017de4b:
LEA RDI,[RSP + 0x8]
CALL 0x0015844e
LAB_0017de55:
MOV EAX,dword ptr [RSP + 0xc]
ADD RSP,0x10
POP RBX
RET
|
/* testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::CreateKey() */
pthread_key_t
testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::CreateKey(void)
{
int iVar1;
GTestLog local_10 [4];
pthread_key_t local_c;
iVar1 = pthread_key_create(&local_c,DeleteThreadLocalValue);
if (iVar1 != 0) {
GTestLog::GTestLog(local_10,3,
"/workspace/llm4binary/github2025/AlayaLite/build_O3/_deps/googletest-src/googletest/include/gtest/internal/gtest-port.h"
,0x72e);
/* try { // try from 0017de0d to 0017de4a has its CatchHandler @ 0017de5f */
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)PTR_cerr_001b3fd8,"pthread_key_create(&key, &DeleteThreadLocalValue)",0x31
);
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)PTR_cerr_001b3fd8,"failed with error ",0x12);
std::ostream::operator<<((ostream *)PTR_cerr_001b3fd8,iVar1);
GTestLog::~GTestLog(local_10);
}
return local_c;
}
| |
27,064 | mi_keylength_part | eloqsql/storage/myisam/mi_search.c | uint _mi_keylength_part(MI_KEYDEF *keyinfo, register uchar *key,
HA_KEYSEG *end)
{
reg1 HA_KEYSEG *keyseg;
uchar *start= key;
for (keyseg=keyinfo->seg ; keyseg != end ; keyseg++)
{
if (keyseg->flag & HA_NULL_PART)
if (!*key++)
continue;
if (keyseg->flag & (HA_SPACE_PACK | HA_BLOB_PART | HA_VAR_LENGTH_PART))
{
uint length;
get_key_length(length,key);
key+=length;
}
else
key+= keyseg->length;
}
return (uint) (key-start);
} | O0 | c | mi_keylength_part:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x18(%rbp), %rax
je 0xc168a
movq -0x20(%rbp), %rax
movzwl 0x12(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0xc15ed
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
cmpb $0x0, (%rax)
jne 0xc15eb
jmp 0xc1679
jmp 0xc15ed
movq -0x20(%rbp), %rax
movzwl 0x12(%rax), %eax
andl $0x29, %eax
cmpl $0x0, %eax
je 0xc1661
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xff, %eax
je 0xc1622
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movzbl (%rax), %eax
movl %eax, -0x2c(%rbp)
jmp 0xc164f
movq -0x10(%rbp), %rax
movzbl 0x2(%rax), %eax
movzwl %ax, %eax
movq -0x10(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movzwl %ax, %eax
movl %eax, -0x2c(%rbp)
movq -0x10(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x10(%rbp)
movl -0x2c(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
jmp 0xc1677
movq -0x20(%rbp), %rax
movzwl 0x14(%rax), %ecx
movq -0x10(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
jmp 0xc1679
movq -0x20(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x20(%rbp)
jmp 0xc15b4
movq -0x10(%rbp), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
popq %rbp
retq
nopw (%rax,%rax)
| _mi_keylength_part:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
mov rax, [rbp+var_8]
mov rax, [rax+28h]
mov [rbp+var_20], rax
loc_C15B4:
mov rax, [rbp+var_20]
cmp rax, [rbp+var_18]
jz loc_C168A
mov rax, [rbp+var_20]
movzx eax, word ptr [rax+12h]
and eax, 10h
cmp eax, 0
jz short loc_C15ED
mov rax, [rbp+var_10]
mov rcx, rax
add rcx, 1
mov [rbp+var_10], rcx
cmp byte ptr [rax], 0
jnz short loc_C15EB
jmp loc_C1679
loc_C15EB:
jmp short $+2
loc_C15ED:
mov rax, [rbp+var_20]
movzx eax, word ptr [rax+12h]
and eax, 29h
cmp eax, 0
jz short loc_C1661
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax]
cmp eax, 0FFh
jz short loc_C1622
mov rax, [rbp+var_10]
mov rcx, rax
add rcx, 1
mov [rbp+var_10], rcx
movzx eax, byte ptr [rax]
mov [rbp+var_2C], eax
jmp short loc_C164F
loc_C1622:
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax+2]
movzx eax, ax
mov rcx, [rbp+var_10]
movzx ecx, byte ptr [rcx+1]
movzx ecx, cx
shl ecx, 8
or eax, ecx
movzx eax, ax
mov [rbp+var_2C], eax
mov rax, [rbp+var_10]
add rax, 3
mov [rbp+var_10], rax
loc_C164F:
mov ecx, [rbp+var_2C]
mov rax, [rbp+var_10]
mov ecx, ecx
add rax, rcx
mov [rbp+var_10], rax
jmp short loc_C1677
loc_C1661:
mov rax, [rbp+var_20]
movzx ecx, word ptr [rax+14h]
mov rax, [rbp+var_10]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_10], rax
loc_C1677:
jmp short $+2
loc_C1679:
mov rax, [rbp+var_20]
add rax, 20h ; ' '
mov [rbp+var_20], rax
jmp loc_C15B4
loc_C168A:
mov rax, [rbp+var_10]
mov rcx, [rbp+var_28]
sub rax, rcx
pop rbp
retn
| unsigned __int8 * mi_keylength_part(long long a1, unsigned __int8 *a2, long long a3)
{
unsigned __int8 *v3; // rax
unsigned __int8 *v4; // rax
int v6; // [rsp+0h] [rbp-2Ch]
long long i; // [rsp+Ch] [rbp-20h]
unsigned __int8 *v8; // [rsp+1Ch] [rbp-10h]
unsigned __int8 *v9; // [rsp+1Ch] [rbp-10h]
v8 = a2;
for ( i = *(_QWORD *)(a1 + 40); i != a3; i += 32LL )
{
if ( (*(_WORD *)(i + 18) & 0x10) != 0 )
{
v3 = v8++;
if ( !*v3 )
continue;
}
if ( (*(_WORD *)(i + 18) & 0x29) != 0 )
{
if ( *v8 == 255 )
{
v6 = _byteswap_ushort(*(_WORD *)(v8 + 1));
v9 = v8 + 3;
}
else
{
v4 = v8;
v9 = v8 + 1;
v6 = *v4;
}
v8 = &v9[v6];
}
else
{
v8 += *(unsigned __int16 *)(i + 20);
}
}
return (unsigned __int8 *)(v8 - a2);
}
| _mi_keylength_part:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x20],RAX
LAB_001c15b4:
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x18]
JZ 0x001c168a
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,word ptr [RAX + 0x12]
AND EAX,0x10
CMP EAX,0x0
JZ 0x001c15ed
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x10],RCX
CMP byte ptr [RAX],0x0
JNZ 0x001c15eb
JMP 0x001c1679
LAB_001c15eb:
JMP 0x001c15ed
LAB_001c15ed:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,word ptr [RAX + 0x12]
AND EAX,0x29
CMP EAX,0x0
JZ 0x001c1661
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xff
JZ 0x001c1622
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x10],RCX
MOVZX EAX,byte ptr [RAX]
MOV dword ptr [RBP + -0x2c],EAX
JMP 0x001c164f
LAB_001c1622:
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX + 0x2]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x10]
MOVZX ECX,byte ptr [RCX + 0x1]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOVZX EAX,AX
MOV dword ptr [RBP + -0x2c],EAX
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x3
MOV qword ptr [RBP + -0x10],RAX
LAB_001c164f:
MOV ECX,dword ptr [RBP + -0x2c]
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
JMP 0x001c1677
LAB_001c1661:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX ECX,word ptr [RAX + 0x14]
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
LAB_001c1677:
JMP 0x001c1679
LAB_001c1679:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x20
MOV qword ptr [RBP + -0x20],RAX
JMP 0x001c15b4
LAB_001c168a:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x28]
SUB RAX,RCX
POP RBP
RET
|
long _mi_keylength_part(long param_1,byte *param_2,long param_3)
{
byte bVar1;
byte *pbVar2;
uint local_34;
long local_28;
byte *local_18;
local_18 = param_2;
for (local_28 = *(long *)(param_1 + 0x28); local_28 != param_3; local_28 = local_28 + 0x20) {
if (((*(ushort *)(local_28 + 0x12) & 0x10) == 0) ||
(pbVar2 = local_18 + 1, bVar1 = *local_18, local_18 = pbVar2, bVar1 != 0)) {
if ((*(ushort *)(local_28 + 0x12) & 0x29) == 0) {
local_18 = local_18 + (int)(uint)*(ushort *)(local_28 + 0x14);
}
else {
if (*local_18 == 0xff) {
local_34 = (uint)CONCAT11(local_18[1],local_18[2]);
local_18 = local_18 + 3;
}
else {
local_34 = (uint)*local_18;
local_18 = local_18 + 1;
}
local_18 = local_18 + local_34;
}
}
}
return (long)local_18 - (long)param_2;
}
| |
27,065 | bf_mul_ui | bluesky950520[P]quickjs/libbf.c | int bf_mul_ui(bf_t *r, const bf_t *a, uint64_t b1, limb_t prec,
bf_flags_t flags)
{
bf_t b;
int ret;
bf_init(r->ctx, &b);
ret = bf_set_ui(&b, b1);
ret |= bf_mul(r, a, &b, prec, flags);
bf_delete(&b);
return ret;
} | O2 | c | bf_mul_ui:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r8d, %ebx
movq %rcx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq (%rdi), %rax
movq %rsp, %r13
movq %rax, (%r13)
andl $0x0, 0x8(%r13)
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, 0x10(%r13)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%r13)
movq %r13, %rdi
movq %rdx, %rsi
callq 0x73106
movl %eax, %ebp
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %rdx
movq %r14, %rcx
movl %ebx, %r8d
callq 0x74959
movl %eax, %ebx
orl %ebp, %ebx
movq %r13, %rdi
callq 0x7500e
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| bf_mul_ui:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov ebx, r8d
mov r14, rcx
mov r15, rsi
mov r12, rdi
mov rax, [rdi]
mov r13, rsp
mov [r13+0], rax
and dword ptr [r13+8], 0
mov rax, 8000000000000000h
mov [r13+10h], rax
xorps xmm0, xmm0
movups xmmword ptr [r13+18h], xmm0
mov rdi, r13
mov rsi, rdx
call bf_set_ui
mov ebp, eax
mov rdi, r12
mov rsi, r15
mov rdx, r13
mov rcx, r14
mov r8d, ebx
call bf_mul
mov ebx, eax
or ebx, ebp
mov rdi, r13
call bf_delete_0
mov eax, ebx
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long bf_mul_ui(long long *a1, long long *a2, unsigned long long a3, long long a4, unsigned int a5)
{
int v7; // ebp
unsigned int v8; // ebx
long long v10; // [rsp+0h] [rbp-58h] BYREF
int v11; // [rsp+8h] [rbp-50h]
unsigned long long v12; // [rsp+10h] [rbp-48h]
__int128 v13; // [rsp+18h] [rbp-40h]
v10 = *a1;
v11 = 0;
v12 = 0x8000000000000000LL;
v13 = 0LL;
v7 = bf_set_ui((long long)&v10, a3);
v8 = v7 | bf_mul(a1, a2, &v10, a4, a5);
bf_delete_0(&v10);
return v8;
}
| bf_mul_ui:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV EBX,R8D
MOV R14,RCX
MOV R15,RSI
MOV R12,RDI
MOV RAX,qword ptr [RDI]
MOV R13,RSP
MOV qword ptr [R13],RAX
AND dword ptr [R13 + 0x8],0x0
MOV RAX,-0x8000000000000000
MOV qword ptr [R13 + 0x10],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R13 + 0x18],XMM0
MOV RDI,R13
MOV RSI,RDX
CALL 0x00173106
MOV EBP,EAX
MOV RDI,R12
MOV RSI,R15
MOV RDX,R13
MOV RCX,R14
MOV R8D,EBX
CALL 0x00174959
MOV EBX,EAX
OR EBX,EBP
MOV RDI,R13
CALL 0x0017500e
MOV EAX,EBX
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
uint bf_mul_ui(int8 *param_1,int8 param_2,int8 param_3,int8 param_4,
int4 param_5)
{
uint uVar1;
uint uVar2;
int8 local_58;
int4 local_50;
int8 local_48;
int8 local_40;
int8 uStack_38;
local_58 = *param_1;
local_50 = 0;
local_48 = 0x8000000000000000;
local_40 = 0;
uStack_38 = 0;
uVar1 = bf_set_ui(&local_58,param_3);
uVar2 = bf_mul(param_1,param_2,&local_58,param_4,param_5);
bf_delete(&local_58);
return uVar2 | uVar1;
}
| |
27,066 | glfwPlatformGetWindowSize | untodesu[P]riteg/build_O0/_deps/glfw-src/src/x11_window.c | void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height)
{
XWindowAttributes attribs;
XGetWindowAttributes(_glfw.x11.display, window->x11.handle, &attribs);
if (width)
*width = attribs.width;
if (height)
*height = attribs.height;
} | O0 | c | glfwPlatformGetWindowSize:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
leaq 0xaef9a(%rip), %rax # 0xe0c68
movq 0x1fec0(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x348(%rax), %rsi
leaq -0xa0(%rbp), %rdx
callq 0xd050
cmpq $0x0, -0x10(%rbp)
je 0x31cff
movl -0x98(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
cmpq $0x0, -0x18(%rbp)
je 0x31d12
movl -0x94(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
addq $0xa0, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| _glfwPlatformGetWindowSize:
push rbp
mov rbp, rsp
sub rsp, 0A0h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
lea rax, _glfw
mov rdi, qword ptr ds:loc_1FEC0[rax]
mov rax, [rbp+var_8]
mov rsi, [rax+348h]
lea rdx, [rbp+var_A0]
call _XGetWindowAttributes
cmp [rbp+var_10], 0
jz short loc_31CFF
mov ecx, [rbp+var_98]
mov rax, [rbp+var_10]
mov [rax], ecx
loc_31CFF:
cmp [rbp+var_18], 0
jz short loc_31D12
mov ecx, [rbp+var_94]
mov rax, [rbp+var_18]
mov [rax], ecx
loc_31D12:
add rsp, 0A0h
pop rbp
retn
| long long glfwPlatformGetWindowSize(long long a1, _DWORD *a2, _DWORD *a3)
{
long long result; // rax
_BYTE v4[8]; // [rsp+0h] [rbp-A0h] BYREF
int v5; // [rsp+8h] [rbp-98h]
int v6; // [rsp+Ch] [rbp-94h]
_DWORD *v7; // [rsp+88h] [rbp-18h]
_DWORD *v8; // [rsp+90h] [rbp-10h]
long long v9; // [rsp+98h] [rbp-8h]
v9 = a1;
v8 = a2;
v7 = a3;
result = XGetWindowAttributes(*(_QWORD *)((char *)&loc_1FEC0 + (_QWORD)glfw), *(_QWORD *)(a1 + 840), v4);
if ( v8 )
{
result = (long long)v8;
*v8 = v5;
}
if ( v7 )
{
result = (long long)v7;
*v7 = v6;
}
return result;
}
| _glfwPlatformGetWindowSize:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xa0
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
LEA RAX,[0x1e0c68]
MOV RDI,qword ptr [RAX + 0x1fec0]
MOV RAX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RAX + 0x348]
LEA RDX,[RBP + -0xa0]
CALL 0x0010d050
CMP qword ptr [RBP + -0x10],0x0
JZ 0x00131cff
MOV ECX,dword ptr [RBP + -0x98]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX],ECX
LAB_00131cff:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x00131d12
MOV ECX,dword ptr [RBP + -0x94]
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX],ECX
LAB_00131d12:
ADD RSP,0xa0
POP RBP
RET
|
void _glfwPlatformGetWindowSize(long param_1,int4 *param_2,int4 *param_3)
{
int1 local_a8 [8];
int4 local_a0;
int4 local_9c;
int4 *local_20;
int4 *local_18;
long local_10;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
XGetWindowAttributes(DAT_00200b28,*(int8 *)(param_1 + 0x348),local_a8);
if (local_18 != (int4 *)0x0) {
*local_18 = local_a0;
}
if (local_20 != (int4 *)0x0) {
*local_20 = local_9c;
}
return;
}
| |
27,067 | js_math_min_max | bluesky950520[P]quickjs/quickjs.c | static JSValue js_math_min_max(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv, int magic)
{
BOOL is_max = magic;
double r, a;
int i;
uint32_t tag;
if (unlikely(argc == 0)) {
return js_float64(is_max ? NEG_INF : INF);
}
tag = JS_VALUE_GET_TAG(argv[0]);
if (tag == JS_TAG_INT) {
int a1, r1 = JS_VALUE_GET_INT(argv[0]);
for(i = 1; i < argc; i++) {
tag = JS_VALUE_GET_TAG(argv[i]);
if (tag != JS_TAG_INT) {
r = r1;
goto generic_case;
}
a1 = JS_VALUE_GET_INT(argv[i]);
if (is_max)
r1 = max_int(r1, a1);
else
r1 = min_int(r1, a1);
}
return js_int32(r1);
} else {
if (JS_ToFloat64(ctx, &r, argv[0]))
return JS_EXCEPTION;
i = 1;
generic_case:
while (i < argc) {
if (JS_ToFloat64(ctx, &a, argv[i]))
return JS_EXCEPTION;
if (!isnan(r)) {
if (isnan(a)) {
r = a;
} else {
if (is_max)
r = js_fmax(r, a);
else
r = js_fmin(r, a);
}
}
i++;
}
return js_number(r);
}
} | O1 | c | js_math_min_max:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r9d, %ebx
testl %ecx, %ecx
je 0x7d15d
movq %r8, %r15
movl %ecx, %ebp
movq %rdi, %r14
movq 0x8(%r8), %rcx
testl %ecx, %ecx
je 0x7cf5a
movq (%r15), %rdx
movq %rsp, %rsi
movq %r14, %rdi
callq 0x26a6d
testl %eax, %eax
jne 0x7d140
movl $0x1, %eax
jmp 0x7cfdc
movl (%r15), %ecx
movl $0x1, %eax
cmpl $0x2, %ebp
setge %dl
jl 0x7cfd2
movl $0x1, %eax
cmpl $0x0, 0x18(%r15)
jne 0x7cfbd
movl %ebp, %edx
leaq 0x10(%r15), %rdi
movl $0x2, %esi
subq %rdx, %rsi
movl $0x1, %eax
movl (%rdi), %r8d
testl %ebx, %ebx
je 0x7cf99
cmpl %r8d, %ecx
cmovlel %r8d, %ecx
jmp 0x7cfa0
cmpl %r8d, %ecx
cmovgel %r8d, %ecx
leaq (%rsi,%rax), %r8
incq %rax
cmpq $0x1, %r8
je 0x7cfca
cmpl $0x0, 0x18(%rdi)
leaq 0x10(%rdi), %rdi
je 0x7cf89
cmpq %rdx, %rax
setb %dl
cvtsi2sd %ecx, %xmm0
movsd %xmm0, (%rsp)
xorl %esi, %esi
jmp 0x7cfd4
cmpq %rdx, %rax
setb %dl
movl %ebp, %eax
movl %ecx, %esi
testb %dl, %dl
je 0x7d0fc
movsd (%rsp), %xmm3
cmpl %ebp, %eax
jge 0x7d0be
movl %eax, %eax
movl %ebp, %r12d
subq %rax, %r12
shlq $0x4, %rax
leaq (%rax,%r15), %r13
addq $0x8, %r13
leaq 0x8(%rsp), %r15
movapd %xmm3, 0x10(%rsp)
movq -0x8(%r13), %rdx
movq (%r13), %rcx
movq %r14, %rdi
movq %r15, %rsi
callq 0x26a6d
testl %eax, %eax
jne 0x7d136
movapd 0x10(%rsp), %xmm3
ucomisd %xmm3, %xmm3
jp 0x7d0a9
movsd 0x8(%rsp), %xmm0
ucomisd %xmm0, %xmm0
jp 0x7d0b8
movapd %xmm0, %xmm1
xorpd %xmm4, %xmm4
cmpeqpd %xmm4, %xmm1
movapd %xmm3, %xmm2
cmpeqpd %xmm4, %xmm2
andpd %xmm1, %xmm2
movd %xmm2, %eax
testl %ebx, %ebx
je 0x7d067
testb $0x1, %al
je 0x7d071
andpd %xmm0, %xmm3
jmp 0x7d0a9
testb $0x1, %al
je 0x7d088
orpd %xmm0, %xmm3
jmp 0x7d0a9
movapd %xmm3, %xmm1
cmpunordsd %xmm3, %xmm1
movapd %xmm1, %xmm2
andpd %xmm0, %xmm2
maxsd %xmm3, %xmm0
jmp 0x7d09d
movapd %xmm3, %xmm1
cmpunordsd %xmm3, %xmm1
movapd %xmm1, %xmm2
andpd %xmm0, %xmm2
minsd %xmm3, %xmm0
andnpd %xmm0, %xmm1
orpd %xmm2, %xmm1
movapd %xmm1, %xmm3
addq $0x10, %r13
decq %r12
jne 0x7d002
jmp 0x7d0be
movapd %xmm0, %xmm3
jmp 0x7d0a9
movsd %xmm3, (%rsp)
movq %xmm3, %rsi
movq %rsi, %rcx
shrq $0x34, %rcx
andl $0x7ff, %ecx # imm = 0x7FF
addq $-0x3ff, %rcx # imm = 0xFC01
cmpq $0x1f, %rcx
jb 0x7d102
testq %rsi, %rsi
sete %cl
movabsq $-0x3e20000000000000, %rax # imm = 0xC1E0000000000000
cmpq %rax, %rsi
sete %al
orb %cl, %al
jmp 0x7d112
xorl %ecx, %ecx
xorl %edx, %edx
jmp 0x7d149
movq %rsi, %rax
shlq $0xc, %rax
shlq %cl, %rax
testq %rax, %rax
sete %al
cvttsd2si %xmm3, %ecx
xorl %edi, %edi
testb %al, %al
cmovneq %rcx, %rsi
movl $0x7, %edx
cmovneq %rdi, %rdx
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
andq %rsi, %rcx
jmp 0x7d149
movaps 0x10(%rsp), %xmm0
movsd %xmm0, (%rsp)
movl $0x6, %edx
xorl %esi, %esi
xorl %ecx, %ecx
movl %esi, %eax
orq %rcx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testl %ebx, %ebx
movabsq $0x7ff0000000000000, %rax # imm = 0x7FF0000000000000
movabsq $-0x10000000000000, %rsi # imm = 0xFFF0000000000000
cmoveq %rax, %rsi
movl $0x7, %edx
movq %rsi, %rcx
jmp 0x7d149
| js_math_min_max:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov ebx, r9d
test ecx, ecx
jz loc_7D15D
mov r15, r8
mov ebp, ecx
mov r14, rdi
mov rcx, [r8+8]
test ecx, ecx
jz short loc_7CF5A
mov rdx, [r15]
mov rsi, rsp
mov rdi, r14
call JS_ToFloat64
test eax, eax
jnz loc_7D140
mov eax, 1
jmp loc_7CFDC
loc_7CF5A:
mov ecx, [r15]
mov eax, 1
cmp ebp, 2
setnl dl
jl short loc_7CFD2
mov eax, 1
cmp dword ptr [r15+18h], 0
jnz short loc_7CFBD
mov edx, ebp
lea rdi, [r15+10h]
mov esi, 2
sub rsi, rdx
mov eax, 1
loc_7CF89:
mov r8d, [rdi]
test ebx, ebx
jz short loc_7CF99
cmp ecx, r8d
cmovle ecx, r8d
jmp short loc_7CFA0
loc_7CF99:
cmp ecx, r8d
cmovge ecx, r8d
loc_7CFA0:
lea r8, [rsi+rax]
inc rax
cmp r8, 1
jz short loc_7CFCA
cmp dword ptr [rdi+18h], 0
lea rdi, [rdi+10h]
jz short loc_7CF89
cmp rax, rdx
setb dl
loc_7CFBD:
cvtsi2sd xmm0, ecx
movsd [rsp+58h+var_58], xmm0
xor esi, esi
jmp short loc_7CFD4
loc_7CFCA:
cmp rax, rdx
setb dl
mov eax, ebp
loc_7CFD2:
mov esi, ecx
loc_7CFD4:
test dl, dl
jz loc_7D0FC
loc_7CFDC:
movsd xmm3, [rsp+58h+var_58]
cmp eax, ebp
jge loc_7D0BE
mov eax, eax
mov r12d, ebp
sub r12, rax
shl rax, 4
lea r13, [rax+r15]
add r13, 8
lea r15, [rsp+58h+var_50]
loc_7D002:
movapd [rsp+58h+var_48], xmm3
mov rdx, [r13-8]
mov rcx, [r13+0]
mov rdi, r14
mov rsi, r15
call JS_ToFloat64
test eax, eax
jnz loc_7D136
movapd xmm3, [rsp+58h+var_48]
ucomisd xmm3, xmm3
jp short loc_7D0A9
movsd xmm0, [rsp+58h+var_50]
ucomisd xmm0, xmm0
jp short loc_7D0B8
movapd xmm1, xmm0
xorpd xmm4, xmm4
cmpeqpd xmm1, xmm4
movapd xmm2, xmm3
cmpeqpd xmm2, xmm4
andpd xmm2, xmm1
movd eax, xmm2
test ebx, ebx
jz short loc_7D067
test al, 1
jz short loc_7D071
andpd xmm3, xmm0
jmp short loc_7D0A9
loc_7D067:
test al, 1
jz short loc_7D088
orpd xmm3, xmm0
jmp short loc_7D0A9
loc_7D071:
movapd xmm1, xmm3
cmpunordsd xmm1, xmm3
movapd xmm2, xmm1
andpd xmm2, xmm0
maxsd xmm0, xmm3
jmp short loc_7D09D
loc_7D088:
movapd xmm1, xmm3
cmpunordsd xmm1, xmm3
movapd xmm2, xmm1
andpd xmm2, xmm0
minsd xmm0, xmm3
loc_7D09D:
andnpd xmm1, xmm0
orpd xmm1, xmm2
movapd xmm3, xmm1
loc_7D0A9:
add r13, 10h
dec r12
jnz loc_7D002
jmp short loc_7D0BE
loc_7D0B8:
movapd xmm3, xmm0
jmp short loc_7D0A9
loc_7D0BE:
movsd [rsp+58h+var_58], xmm3
movq rsi, xmm3
mov rcx, rsi
shr rcx, 34h
and ecx, 7FFh
add rcx, 0FFFFFFFFFFFFFC01h
cmp rcx, 1Fh
jb short loc_7D102
test rsi, rsi
setz cl
mov rax, 0C1E0000000000000h
cmp rsi, rax
setz al
or al, cl
jmp short loc_7D112
loc_7D0FC:
xor ecx, ecx
xor edx, edx
jmp short loc_7D149
loc_7D102:
mov rax, rsi
shl rax, 0Ch
shl rax, cl
test rax, rax
setz al
loc_7D112:
cvttsd2si ecx, xmm3
xor edi, edi
test al, al
cmovnz rsi, rcx
mov edx, 7
cmovnz rdx, rdi
mov rcx, 0FFFFFFFF00000000h
and rcx, rsi
jmp short loc_7D149
loc_7D136:
movaps xmm0, [rsp+58h+var_48]
movsd [rsp+58h+var_58], xmm0
loc_7D140:
mov edx, 6
xor esi, esi
xor ecx, ecx
loc_7D149:
mov eax, esi
or rax, rcx
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_7D15D:
test ebx, ebx
mov rax, 7FF0000000000000h
mov rsi, 0FFF0000000000000h
cmovz rsi, rax
mov edx, 7
mov rcx, rsi
jmp short loc_7D149
| unsigned long long js_math_min_max(long long a1, long long a2, long long a3, int a4, _DWORD **a5, int a6)
{
_DWORD *v10; // rcx
unsigned long long v11; // rax
int v12; // ecx
bool v13; // dl
int *v14; // rdi
int v15; // r8d
long long v16; // r8
bool v17; // zf
unsigned long long v18; // rsi
__m128d v19; // xmm3
unsigned long long v20; // r12
_QWORD *v21; // r13
__m128d v22; // xmm0
char v23; // al
__m128d v24; // xmm1
__m128d v25; // xmm2
bool v26; // al
unsigned long long v27; // rcx
double v29; // [rsp+0h] [rbp-58h] BYREF
double v30; // [rsp+8h] [rbp-50h] BYREF
__m128d v31; // [rsp+10h] [rbp-48h]
if ( !a4 )
{
v18 = 0xFFF0000000000000LL;
if ( !a6 )
v18 = 0x7FF0000000000000LL;
v27 = v18;
return v27 | (unsigned int)v18;
}
v10 = a5[1];
if ( !(_DWORD)v10 )
{
v12 = *(_DWORD *)a5;
LODWORD(v11) = 1;
v13 = a4 >= 2;
if ( a4 >= 2 )
{
LODWORD(v11) = 1;
if ( *((_DWORD *)a5 + 6) )
{
LABEL_17:
v29 = (double)v12;
LODWORD(v18) = 0;
goto LABEL_20;
}
v14 = (int *)(a5 + 2);
v11 = 1LL;
while ( 1 )
{
v15 = *v14;
if ( a6 )
{
if ( v12 <= v15 )
v12 = *v14;
}
else if ( v12 >= v15 )
{
v12 = *v14;
}
v16 = 2LL - (unsigned int)a4 + v11++;
if ( v16 == 1 )
break;
v17 = v14[6] == 0;
v14 += 4;
if ( !v17 )
{
v13 = v11 < (unsigned int)a4;
goto LABEL_17;
}
}
v13 = v11 < (unsigned int)a4;
LODWORD(v11) = a4;
}
LODWORD(v18) = v12;
LABEL_20:
if ( !v13 )
{
v27 = 0LL;
return v27 | (unsigned int)v18;
}
goto LABEL_21;
}
if ( (unsigned int)JS_ToFloat64(a1, &v29, *a5, (unsigned int)v10) )
goto LABEL_41;
LODWORD(v11) = 1;
LABEL_21:
v19 = (__m128d)*(unsigned long long *)&v29;
if ( (int)v11 >= a4 )
{
LABEL_33:
v29 = v19.m128d_f64[0];
v18 = *(_QWORD *)&v19.m128d_f64[0];
if ( ((*(_QWORD *)&v19.m128d_f64[0] >> 52) & 0x7FFuLL) - 1023 < 0x1F )
v26 = *(_QWORD *)&v19.m128d_f64[0] << 12 << ((unsigned __int8)(*(_QWORD *)&v19.m128d_f64[0] >> 52) + 1) == 0LL;
else
v26 = *(_QWORD *)&v19.m128d_f64[0] == 0LL || *(_QWORD *)&v19.m128d_f64[0] == 0xC1E0000000000000LL;
if ( v26 )
v18 = (unsigned int)(int)v19.m128d_f64[0];
v27 = v18 & 0xFFFFFFFF00000000LL;
return v27 | (unsigned int)v18;
}
v20 = (unsigned int)a4 - (unsigned long long)(unsigned int)v11;
v21 = &a5[2 * (unsigned int)v11 + 1];
while ( 1 )
{
v31 = v19;
if ( (unsigned int)JS_ToFloat64(a1, &v30, (_DWORD *)*(v21 - 1), *v21) )
break;
v22 = (__m128d)*(unsigned long long *)&v30;
v23 = _mm_cvtsi128_si32((__m128i)_mm_and_pd(
_mm_cmpeq_pd(v31, (__m128d)0LL),
_mm_cmpeq_pd((__m128d)*(unsigned long long *)&v30, (__m128d)0LL)));
if ( a6 )
{
if ( (v23 & 1) == 0 )
{
v24 = _mm_cmpunord_sd(v31, v31);
v25 = _mm_and_pd(v24, (__m128d)*(unsigned long long *)&v30);
v22.m128d_f64[0] = fmax(v30, v31.m128d_f64[0]);
LABEL_31:
v19 = _mm_or_pd(_mm_andn_pd(v24, v22), v25);
goto LABEL_32;
}
v19 = _mm_and_pd(v31, (__m128d)*(unsigned long long *)&v30);
}
else
{
if ( (v23 & 1) == 0 )
{
v24 = _mm_cmpunord_sd(v31, v31);
v25 = _mm_and_pd(v24, (__m128d)*(unsigned long long *)&v30);
v22.m128d_f64[0] = fmin(v30, v31.m128d_f64[0]);
goto LABEL_31;
}
v19 = _mm_or_pd(v31, (__m128d)*(unsigned long long *)&v30);
}
LABEL_32:
v21 += 2;
if ( !--v20 )
goto LABEL_33;
}
v29 = v31.m128d_f64[0];
LABEL_41:
LODWORD(v18) = 0;
v27 = 0LL;
return v27 | (unsigned int)v18;
}
| js_math_min_max:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV EBX,R9D
TEST ECX,ECX
JZ 0x0017d15d
MOV R15,R8
MOV EBP,ECX
MOV R14,RDI
MOV RCX,qword ptr [R8 + 0x8]
TEST ECX,ECX
JZ 0x0017cf5a
MOV RDX,qword ptr [R15]
MOV RSI,RSP
MOV RDI,R14
CALL 0x00126a6d
TEST EAX,EAX
JNZ 0x0017d140
MOV EAX,0x1
JMP 0x0017cfdc
LAB_0017cf5a:
MOV ECX,dword ptr [R15]
MOV EAX,0x1
CMP EBP,0x2
SETGE DL
JL 0x0017cfd2
MOV EAX,0x1
CMP dword ptr [R15 + 0x18],0x0
JNZ 0x0017cfbd
MOV EDX,EBP
LEA RDI,[R15 + 0x10]
MOV ESI,0x2
SUB RSI,RDX
MOV EAX,0x1
LAB_0017cf89:
MOV R8D,dword ptr [RDI]
TEST EBX,EBX
JZ 0x0017cf99
CMP ECX,R8D
CMOVLE ECX,R8D
JMP 0x0017cfa0
LAB_0017cf99:
CMP ECX,R8D
CMOVGE ECX,R8D
LAB_0017cfa0:
LEA R8,[RSI + RAX*0x1]
INC RAX
CMP R8,0x1
JZ 0x0017cfca
CMP dword ptr [RDI + 0x18],0x0
LEA RDI,[RDI + 0x10]
JZ 0x0017cf89
CMP RAX,RDX
SETC DL
LAB_0017cfbd:
CVTSI2SD XMM0,ECX
MOVSD qword ptr [RSP],XMM0
XOR ESI,ESI
JMP 0x0017cfd4
LAB_0017cfca:
CMP RAX,RDX
SETC DL
MOV EAX,EBP
LAB_0017cfd2:
MOV ESI,ECX
LAB_0017cfd4:
TEST DL,DL
JZ 0x0017d0fc
LAB_0017cfdc:
MOVSD XMM3,qword ptr [RSP]
CMP EAX,EBP
JGE 0x0017d0be
MOV EAX,EAX
MOV R12D,EBP
SUB R12,RAX
SHL RAX,0x4
LEA R13,[RAX + R15*0x1]
ADD R13,0x8
LEA R15,[RSP + 0x8]
LAB_0017d002:
MOVAPD xmmword ptr [RSP + 0x10],XMM3
MOV RDX,qword ptr [R13 + -0x8]
MOV RCX,qword ptr [R13]
MOV RDI,R14
MOV RSI,R15
CALL 0x00126a6d
TEST EAX,EAX
JNZ 0x0017d136
MOVAPD XMM3,xmmword ptr [RSP + 0x10]
UCOMISD XMM3,XMM3
JP 0x0017d0a9
MOVSD XMM0,qword ptr [RSP + 0x8]
UCOMISD XMM0,XMM0
JP 0x0017d0b8
MOVAPD XMM1,XMM0
XORPD XMM4,XMM4
CMPEQPD XMM1,XMM4
MOVAPD XMM2,XMM3
CMPEQPD XMM2,XMM4
ANDPD XMM2,XMM1
MOVD EAX,XMM2
TEST EBX,EBX
JZ 0x0017d067
TEST AL,0x1
JZ 0x0017d071
ANDPD XMM3,XMM0
JMP 0x0017d0a9
LAB_0017d067:
TEST AL,0x1
JZ 0x0017d088
ORPD XMM3,XMM0
JMP 0x0017d0a9
LAB_0017d071:
MOVAPD XMM1,XMM3
CMPUNORDSD XMM1,XMM3
MOVAPD XMM2,XMM1
ANDPD XMM2,XMM0
MAXSD XMM0,XMM3
JMP 0x0017d09d
LAB_0017d088:
MOVAPD XMM1,XMM3
CMPUNORDSD XMM1,XMM3
MOVAPD XMM2,XMM1
ANDPD XMM2,XMM0
MINSD XMM0,XMM3
LAB_0017d09d:
ANDNPD XMM1,XMM0
ORPD XMM1,XMM2
MOVAPD XMM3,XMM1
LAB_0017d0a9:
ADD R13,0x10
DEC R12
JNZ 0x0017d002
JMP 0x0017d0be
LAB_0017d0b8:
MOVAPD XMM3,XMM0
JMP 0x0017d0a9
LAB_0017d0be:
MOVSD qword ptr [RSP],XMM3
MOVQ RSI,XMM3
MOV RCX,RSI
SHR RCX,0x34
AND ECX,0x7ff
ADD RCX,-0x3ff
CMP RCX,0x1f
JC 0x0017d102
TEST RSI,RSI
SETZ CL
MOV RAX,-0x3e20000000000000
CMP RSI,RAX
SETZ AL
OR AL,CL
JMP 0x0017d112
LAB_0017d0fc:
XOR ECX,ECX
XOR EDX,EDX
JMP 0x0017d149
LAB_0017d102:
MOV RAX,RSI
SHL RAX,0xc
SHL RAX,CL
TEST RAX,RAX
SETZ AL
LAB_0017d112:
CVTTSD2SI ECX,XMM3
XOR EDI,EDI
TEST AL,AL
CMOVNZ RSI,RCX
MOV EDX,0x7
CMOVNZ RDX,RDI
MOV RCX,-0x100000000
AND RCX,RSI
JMP 0x0017d149
LAB_0017d136:
MOVAPS XMM0,xmmword ptr [RSP + 0x10]
MOVSD qword ptr [RSP],XMM0
LAB_0017d140:
MOV EDX,0x6
XOR ESI,ESI
XOR ECX,ECX
LAB_0017d149:
MOV EAX,ESI
OR RAX,RCX
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0017d15d:
TEST EBX,EBX
MOV RAX,0x7ff0000000000000
MOV RSI,-0x10000000000000
CMOVZ RSI,RAX
MOV EDX,0x7
MOV RCX,RSI
JMP 0x0017d149
|
int1 [16]
js_math_min_max(int8 param_1,int8 param_2,int8 param_3,uint param_4,uint *param_5,
int param_6)
{
uint *puVar1;
int1 auVar2 [16];
bool bVar3;
int iVar4;
uint uVar5;
uint uVar6;
ulong uVar7;
int8 uVar8;
double dVar9;
uint *puVar10;
long lVar11;
int4 uVar12;
int4 uVar13;
ulong uVar14;
double dVar15;
int1 auVar16 [16];
double local_58;
double local_50;
int1 local_48 [16];
if (param_4 == 0) {
dVar15 = -INFINITY;
if (param_6 == 0) {
dVar15 = INFINITY;
}
uVar8 = 7;
dVar9 = dVar15;
}
else {
if ((int)*(int8 *)(param_5 + 2) == 0) {
uVar6 = *param_5;
bVar3 = 1 < (int)param_4;
uVar5 = 1;
if ((int)param_4 < 2) {
LAB_0017cfd2:
dVar9 = (double)(ulong)uVar6;
}
else {
uVar7 = 1;
if (param_5[6] == 0) {
uVar14 = (ulong)param_4;
puVar10 = param_5 + 4;
uVar7 = 1;
do {
uVar5 = *puVar10;
if (param_6 == 0) {
if ((int)uVar5 <= (int)uVar6) {
uVar6 = uVar5;
}
}
else if ((int)uVar6 <= (int)uVar5) {
uVar6 = uVar5;
}
lVar11 = (2 - uVar14) + uVar7;
uVar7 = uVar7 + 1;
if (lVar11 == 1) {
bVar3 = uVar7 < uVar14;
uVar5 = param_4;
goto LAB_0017cfd2;
}
puVar1 = puVar10 + 6;
puVar10 = puVar10 + 4;
} while (*puVar1 == 0);
bVar3 = uVar7 < uVar14;
}
uVar5 = (uint)uVar7;
local_58 = (double)(int)uVar6;
dVar9 = 0.0;
}
if (!bVar3) {
dVar15 = 0.0;
uVar8 = 0;
goto LAB_0017d149;
}
}
else {
iVar4 = JS_ToFloat64(param_1,&local_58,*(int8 *)param_5);
if (iVar4 != 0) {
LAB_0017d140:
uVar8 = 6;
dVar15 = 0.0;
dVar9 = 0.0;
goto LAB_0017d149;
}
uVar5 = 1;
}
local_48._8_8_ = 0;
local_48._0_8_ = (ulong)local_58;
dVar9 = local_58;
if ((int)uVar5 < (int)param_4) {
lVar11 = (ulong)param_4 - (ulong)uVar5;
param_5 = param_5 + (ulong)uVar5 * 4 + 2;
do {
iVar4 = JS_ToFloat64(param_1,&local_50,*(int8 *)(param_5 + -2),*(int8 *)param_5)
;
if (iVar4 != 0) goto LAB_0017d140;
dVar15 = local_48._0_8_;
if (!NAN(dVar15)) {
uVar13 = (int4)((ulong)local_50 >> 0x20);
if (NAN(local_50)) {
local_48._8_8_ = 0;
local_48._0_8_ = (ulong)local_50;
}
else {
uVar12 = SUB84(local_50,0);
if (param_6 == 0) {
if (dVar15 != 0.0 || local_50 != 0.0) {
uVar7 = -(ulong)NAN(dVar15);
uVar14 = uVar7 & (ulong)local_50;
if (dVar15 <= local_50) {
uVar12 = local_48._0_4_;
uVar13 = local_48._4_4_;
}
goto LAB_0017d09d;
}
auVar2._8_8_ = 0;
auVar2._0_8_ = local_50;
local_48 = local_48 | auVar2;
}
else if (dVar15 != 0.0 || local_50 != 0.0) {
uVar7 = -(ulong)NAN(dVar15);
uVar14 = uVar7 & (ulong)local_50;
if (local_50 <= dVar15) {
uVar12 = local_48._0_4_;
uVar13 = local_48._4_4_;
}
LAB_0017d09d:
local_48._8_8_ = 0;
local_48._0_8_ = ~uVar7 & CONCAT44(uVar13,uVar12) | uVar14;
}
else {
local_48._0_8_ = (ulong)dVar15 & (ulong)local_50;
local_48._8_8_ = 0;
}
}
}
dVar9 = local_48._0_8_;
param_5 = param_5 + 4;
lVar11 = lVar11 + -1;
} while (lVar11 != 0);
}
uVar7 = (ulong)((uint)((ulong)dVar9 >> 0x34) & 0x7ff) - 0x3ff;
if (uVar7 < 0x1f) {
bVar3 = ((long)dVar9 << 0xc) << ((byte)uVar7 & 0x3f) == 0;
}
else {
uVar7 = CONCAT71((int7)(uVar7 >> 8),dVar9 == 0.0);
bVar3 = dVar9 == -2147483648.0 || dVar9 == 0.0;
}
if (bVar3) {
dVar9 = (double)CONCAT44((int)(uVar7 >> 0x20),(int)dVar9);
}
uVar8 = 7;
if (bVar3) {
uVar8 = 0;
}
dVar15 = (double)((ulong)dVar9 & 0xffffffff00000000);
}
LAB_0017d149:
auVar16._0_8_ = (ulong)dVar9 & 0xffffffff | (ulong)dVar15;
auVar16._8_8_ = uVar8;
return auVar16;
}
| |
27,068 | js_math_min_max | bluesky950520[P]quickjs/quickjs.c | static JSValue js_math_min_max(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv, int magic)
{
BOOL is_max = magic;
double r, a;
int i;
uint32_t tag;
if (unlikely(argc == 0)) {
return js_float64(is_max ? NEG_INF : INF);
}
tag = JS_VALUE_GET_TAG(argv[0]);
if (tag == JS_TAG_INT) {
int a1, r1 = JS_VALUE_GET_INT(argv[0]);
for(i = 1; i < argc; i++) {
tag = JS_VALUE_GET_TAG(argv[i]);
if (tag != JS_TAG_INT) {
r = r1;
goto generic_case;
}
a1 = JS_VALUE_GET_INT(argv[i]);
if (is_max)
r1 = max_int(r1, a1);
else
r1 = min_int(r1, a1);
}
return js_int32(r1);
} else {
if (JS_ToFloat64(ctx, &r, argv[0]))
return JS_EXCEPTION;
i = 1;
generic_case:
while (i < argc) {
if (JS_ToFloat64(ctx, &a, argv[i]))
return JS_EXCEPTION;
if (!isnan(r)) {
if (isnan(a)) {
r = a;
} else {
if (is_max)
r = js_fmax(r, a);
else
r = js_fmin(r, a);
}
}
i++;
}
return js_number(r);
}
} | O2 | c | js_math_min_max:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r9d, %ebp
testl %ecx, %ecx
je 0x68f5c
movq %r8, %r15
movl %ecx, %r12d
movq %rdi, %r14
movq 0x8(%r8), %rcx
pushq $0x6
popq %rbx
testl %ecx, %ecx
je 0x68e32
movq (%r15), %rdx
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x20703
testl %eax, %eax
je 0x68e65
xorl %eax, %eax
xorl %ecx, %ecx
jmp 0x68f45
movl (%r15), %eax
movslq %r12d, %r13
leaq 0x18(%r15), %rcx
pushq $0x1
popq %rbx
cmpq %r13, %rbx
jge 0x68e73
cmpl $0x0, (%rcx)
jne 0x68e7e
movl -0x8(%rcx), %edx
testl %ebp, %ebp
je 0x68e57
cmpl %edx, %eax
cmovlel %edx, %eax
jmp 0x68e5c
cmpl %edx, %eax
cmovgel %edx, %eax
incq %rbx
addq $0x10, %rcx
jmp 0x68e3f
movsd 0x8(%rsp), %xmm0
movslq %r12d, %r13
pushq $0x1
popq %rbx
jmp 0x68e82
movl %eax, %eax
xorl %ecx, %ecx
xorl %ebx, %ebx
jmp 0x68f45
cvtsi2sd %eax, %xmm0
movq %rbx, %rax
shlq $0x4, %rax
addq %rax, %r15
addq $0x8, %r15
movq %rsp, %r12
cmpq %r13, %rbx
jge 0x68f27
movapd %xmm0, 0x10(%rsp)
movq -0x8(%r15), %rdx
movq (%r15), %rcx
movq %r14, %rdi
movq %r12, %rsi
callq 0x20703
testl %eax, %eax
jne 0x68f3e
movapd 0x10(%rsp), %xmm0
ucomisd %xmm0, %xmm0
jp 0x68f15
movsd (%rsp), %xmm1
ucomisd %xmm1, %xmm1
jp 0x68f21
movapd %xmm1, %xmm3
xorpd %xmm4, %xmm4
cmpeqpd %xmm4, %xmm3
movapd %xmm0, %xmm2
cmpeqpd %xmm4, %xmm2
andpd %xmm3, %xmm2
movd %xmm2, %eax
testl %ebp, %ebp
je 0x68eff
testb $0x1, %al
je 0x68f09
andpd %xmm1, %xmm0
jmp 0x68f15
testb $0x1, %al
je 0x68f10
orpd %xmm1, %xmm0
jmp 0x68f15
callq 0xe0e0
jmp 0x68f15
callq 0xe5d0
incq %rbx
addq $0x10, %r15
jmp 0x68e93
movapd %xmm1, %xmm0
jmp 0x68f15
callq 0x16422
movq %rdx, %rbx
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
andq %rax, %rcx
jmp 0x68f45
xorl %ecx, %ecx
pushq $0x6
popq %rbx
xorl %eax, %eax
movl %eax, %eax
orq %rcx, %rax
movq %rbx, %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testl %ebp, %ebp
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
movabsq $-0x10000000000000, %rax # imm = 0xFFF0000000000000
cmoveq %rcx, %rax
pushq $0x7
popq %rbx
movq %rax, %rcx
jmp 0x68f45
| js_math_min_max:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov ebp, r9d
test ecx, ecx
jz loc_68F5C
mov r15, r8
mov r12d, ecx
mov r14, rdi
mov rcx, [r8+8]
push 6
pop rbx
test ecx, ecx
jz short loc_68E32
mov rdx, [r15]
lea rsi, [rsp+58h+var_50]
mov rdi, r14
call JS_ToFloat64
test eax, eax
jz short loc_68E65
xor eax, eax
xor ecx, ecx
jmp loc_68F45
loc_68E32:
mov eax, [r15]
movsxd r13, r12d
lea rcx, [r15+18h]
push 1
pop rbx
loc_68E3F:
cmp rbx, r13
jge short loc_68E73
cmp dword ptr [rcx], 0
jnz short loc_68E7E
mov edx, [rcx-8]
test ebp, ebp
jz short loc_68E57
cmp eax, edx
cmovle eax, edx
jmp short loc_68E5C
loc_68E57:
cmp eax, edx
cmovge eax, edx
loc_68E5C:
inc rbx
add rcx, 10h
jmp short loc_68E3F
loc_68E65:
movsd xmm0, [rsp+58h+var_50]
movsxd r13, r12d
push 1
pop rbx
jmp short loc_68E82
loc_68E73:
mov eax, eax
xor ecx, ecx
xor ebx, ebx
jmp loc_68F45
loc_68E7E:
cvtsi2sd xmm0, eax
loc_68E82:
mov rax, rbx
shl rax, 4
add r15, rax
add r15, 8
mov r12, rsp
loc_68E93:
cmp rbx, r13
jge loc_68F27
movapd [rsp+58h+var_48], xmm0
mov rdx, [r15-8]
mov rcx, [r15]
mov rdi, r14
mov rsi, r12
call JS_ToFloat64
test eax, eax
jnz loc_68F3E
movapd xmm0, [rsp+58h+var_48]
ucomisd xmm0, xmm0
jp short loc_68F15
movsd xmm1, [rsp+58h+var_58]
ucomisd xmm1, xmm1
jp short loc_68F21
movapd xmm3, xmm1
xorpd xmm4, xmm4
cmpeqpd xmm3, xmm4
movapd xmm2, xmm0
cmpeqpd xmm2, xmm4
andpd xmm2, xmm3
movd eax, xmm2
test ebp, ebp
jz short loc_68EFF
test al, 1
jz short loc_68F09
andpd xmm0, xmm1
jmp short loc_68F15
loc_68EFF:
test al, 1
jz short loc_68F10
orpd xmm0, xmm1
jmp short loc_68F15
loc_68F09:
call _fmax
jmp short loc_68F15
loc_68F10:
call _fmin
loc_68F15:
inc rbx
add r15, 10h
jmp loc_68E93
loc_68F21:
movapd xmm0, xmm1
jmp short loc_68F15
loc_68F27:
call js_number
mov rbx, rdx
mov rcx, 0FFFFFFFF00000000h
and rcx, rax
jmp short loc_68F45
loc_68F3E:
xor ecx, ecx
push 6
pop rbx
xor eax, eax
loc_68F45:
mov eax, eax
or rax, rcx
mov rdx, rbx
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_68F5C:
test ebp, ebp
mov rcx, 7FF0000000000000h
mov rax, 0FFF0000000000000h
cmovz rax, rcx
push 7
pop rbx
mov rcx, rax
jmp short loc_68F45
| unsigned long long js_math_min_max(long long a1, __m128d a2, long long a3, long long a4, int a5, long long a6, int a7)
{
long long v10; // rcx
long long v11; // rax
unsigned long long v12; // rcx
long long v13; // r13
_DWORD *v14; // rcx
long long i; // rbx
int v16; // edx
long long *j; // r15
char v18; // al
double v20; // [rsp+0h] [rbp-58h] BYREF
unsigned long long v21; // [rsp+8h] [rbp-50h] BYREF
__m128d v22; // [rsp+10h] [rbp-48h]
if ( a5 )
{
v10 = *(_QWORD *)(a6 + 8);
if ( (_DWORD)v10 )
{
if ( (unsigned int)JS_ToFloat64(a1, (long long)&v21, *(_DWORD **)a6, v10) )
{
LODWORD(v11) = 0;
v12 = 0LL;
return v12 | (unsigned int)v11;
}
a2 = (__m128d)v21;
v13 = a5;
i = 1LL;
}
else
{
LODWORD(v11) = *(_DWORD *)a6;
v13 = a5;
v14 = (_DWORD *)(a6 + 24);
for ( i = 1LL; ; ++i )
{
if ( i >= a5 )
{
v12 = 0LL;
return v12 | (unsigned int)v11;
}
if ( *v14 )
break;
v16 = *(v14 - 2);
if ( a7 )
{
if ( (int)v11 <= v16 )
LODWORD(v11) = *(v14 - 2);
}
else if ( (int)v11 >= v16 )
{
LODWORD(v11) = *(v14 - 2);
}
v14 += 4;
}
a2.m128d_f64[0] = (double)(int)v11;
}
for ( j = (long long *)(16 * i + a6 + 8); ; j += 2 )
{
if ( i >= v13 )
{
v11 = js_number(a2.m128d_f64[0]);
v12 = v11 & 0xFFFFFFFF00000000LL;
return v12 | (unsigned int)v11;
}
v22 = a2;
if ( (unsigned int)JS_ToFloat64(a1, (long long)&v20, (_DWORD *)*(j - 1), *j) )
break;
a2 = v22;
v18 = _mm_cvtsi128_si32((__m128i)_mm_and_pd(
_mm_cmpeq_pd(v22, (__m128d)0LL),
_mm_cmpeq_pd((__m128d)*(unsigned long long *)&v20, (__m128d)0LL)));
if ( a7 )
{
if ( (v18 & 1) != 0 )
a2 = _mm_and_pd(v22, (__m128d)*(unsigned long long *)&v20);
else
fmax(v22.m128d_f64[0], v20);
}
else if ( (v18 & 1) != 0 )
{
a2 = _mm_or_pd(v22, (__m128d)*(unsigned long long *)&v20);
}
else
{
fmin(v22.m128d_f64[0], v20);
}
++i;
}
v12 = 0LL;
LODWORD(v11) = 0;
}
else
{
v11 = 0xFFF0000000000000LL;
if ( !a7 )
v11 = 0x7FF0000000000000LL;
v12 = v11;
}
return v12 | (unsigned int)v11;
}
| js_math_min_max:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV EBP,R9D
TEST ECX,ECX
JZ 0x00168f5c
MOV R15,R8
MOV R12D,ECX
MOV R14,RDI
MOV RCX,qword ptr [R8 + 0x8]
PUSH 0x6
POP RBX
TEST ECX,ECX
JZ 0x00168e32
MOV RDX,qword ptr [R15]
LEA RSI,[RSP + 0x8]
MOV RDI,R14
CALL 0x00120703
TEST EAX,EAX
JZ 0x00168e65
XOR EAX,EAX
XOR ECX,ECX
JMP 0x00168f45
LAB_00168e32:
MOV EAX,dword ptr [R15]
MOVSXD R13,R12D
LEA RCX,[R15 + 0x18]
PUSH 0x1
POP RBX
LAB_00168e3f:
CMP RBX,R13
JGE 0x00168e73
CMP dword ptr [RCX],0x0
JNZ 0x00168e7e
MOV EDX,dword ptr [RCX + -0x8]
TEST EBP,EBP
JZ 0x00168e57
CMP EAX,EDX
CMOVLE EAX,EDX
JMP 0x00168e5c
LAB_00168e57:
CMP EAX,EDX
CMOVGE EAX,EDX
LAB_00168e5c:
INC RBX
ADD RCX,0x10
JMP 0x00168e3f
LAB_00168e65:
MOVSD XMM0,qword ptr [RSP + 0x8]
MOVSXD R13,R12D
PUSH 0x1
POP RBX
JMP 0x00168e82
LAB_00168e73:
MOV EAX,EAX
XOR ECX,ECX
XOR EBX,EBX
JMP 0x00168f45
LAB_00168e7e:
CVTSI2SD XMM0,EAX
LAB_00168e82:
MOV RAX,RBX
SHL RAX,0x4
ADD R15,RAX
ADD R15,0x8
MOV R12,RSP
LAB_00168e93:
CMP RBX,R13
JGE 0x00168f27
MOVAPD xmmword ptr [RSP + 0x10],XMM0
MOV RDX,qword ptr [R15 + -0x8]
MOV RCX,qword ptr [R15]
MOV RDI,R14
MOV RSI,R12
CALL 0x00120703
TEST EAX,EAX
JNZ 0x00168f3e
MOVAPD XMM0,xmmword ptr [RSP + 0x10]
UCOMISD XMM0,XMM0
JP 0x00168f15
MOVSD XMM1,qword ptr [RSP]
UCOMISD XMM1,XMM1
JP 0x00168f21
MOVAPD XMM3,XMM1
XORPD XMM4,XMM4
CMPEQPD XMM3,XMM4
MOVAPD XMM2,XMM0
CMPEQPD XMM2,XMM4
ANDPD XMM2,XMM3
MOVD EAX,XMM2
TEST EBP,EBP
JZ 0x00168eff
TEST AL,0x1
JZ 0x00168f09
ANDPD XMM0,XMM1
JMP 0x00168f15
LAB_00168eff:
TEST AL,0x1
JZ 0x00168f10
ORPD XMM0,XMM1
JMP 0x00168f15
LAB_00168f09:
CALL 0x0010e0e0
JMP 0x00168f15
LAB_00168f10:
CALL 0x0010e5d0
LAB_00168f15:
INC RBX
ADD R15,0x10
JMP 0x00168e93
LAB_00168f21:
MOVAPD XMM0,XMM1
JMP 0x00168f15
LAB_00168f27:
CALL 0x00116422
MOV RBX,RDX
MOV RCX,-0x100000000
AND RCX,RAX
JMP 0x00168f45
LAB_00168f3e:
XOR ECX,ECX
PUSH 0x6
POP RBX
XOR EAX,EAX
LAB_00168f45:
MOV EAX,EAX
OR RAX,RCX
MOV RDX,RBX
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00168f5c:
TEST EBP,EBP
MOV RCX,0x7ff0000000000000
MOV RAX,-0x10000000000000
CMOVZ RAX,RCX
PUSH 0x7
POP RBX
MOV RCX,RAX
JMP 0x00168f45
|
int1 [16]
js_math_min_max(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int param_5,uint *param_6,int param_7)
{
uint uVar1;
int iVar2;
uint uVar3;
uint *puVar4;
ulong uVar5;
long lVar6;
int8 extraout_XMM0_Qb;
int8 extraout_XMM0_Qb_00;
int1 auVar7 [16];
int1 auVar8 [16];
double local_58;
double local_50;
double local_48;
int8 uStack_40;
if (param_5 == 0) {
uVar5 = 0xfff0000000000000;
if (param_7 == 0) {
uVar5 = 0x7ff0000000000000;
}
auVar7._8_8_ = 7;
auVar7._0_8_ = uVar5;
}
else if ((int)*(int8 *)(param_6 + 2) == 0) {
uVar3 = *param_6;
puVar4 = param_6 + 6;
for (lVar6 = 1; lVar6 < param_5; lVar6 = lVar6 + 1) {
if (*puVar4 != 0) {
local_50 = (double)(int)uVar3;
goto LAB_00168e82;
}
uVar1 = puVar4[-2];
if (param_7 == 0) {
if ((int)uVar1 <= (int)uVar3) {
uVar3 = uVar1;
}
}
else if ((int)uVar3 <= (int)uVar1) {
uVar3 = uVar1;
}
puVar4 = puVar4 + 4;
}
uVar5 = 0;
auVar7 = ZEXT416(uVar3);
}
else {
iVar2 = JS_ToFloat64(param_2,&local_50,*(int8 *)param_6);
if (iVar2 == 0) {
param_1 = 0;
lVar6 = 1;
LAB_00168e82:
param_6 = param_6 + lVar6 * 4 + 2;
for (; lVar6 < param_5; lVar6 = lVar6 + 1) {
local_48 = local_50;
uStack_40 = param_1;
iVar2 = JS_ToFloat64(param_2,&local_58,*(int8 *)(param_6 + -2),*(int8 *)param_6)
;
if (iVar2 != 0) {
uVar5 = 0;
auVar7 = ZEXT816(6) << 0x40;
goto LAB_00168f45;
}
local_50 = local_48;
param_1 = uStack_40;
if (!NAN(local_48)) {
if (NAN(local_58)) {
param_1 = 0;
local_50 = local_58;
}
else if (param_7 == 0) {
if (local_48 != 0.0 || local_58 != 0.0) {
local_50 = fmin(local_48,local_58);
param_1 = extraout_XMM0_Qb_00;
}
else {
local_50 = (double)((ulong)local_48 | (ulong)local_58);
}
}
else if (local_48 != 0.0 || local_58 != 0.0) {
local_50 = fmax(local_48,local_58);
param_1 = extraout_XMM0_Qb;
}
else {
local_50 = (double)((ulong)local_48 & (ulong)local_58);
param_1 = 0;
}
}
param_6 = param_6 + 4;
}
auVar7 = js_number();
uVar5 = auVar7._0_8_ & 0xffffffff00000000;
}
else {
auVar7 = ZEXT816(6) << 0x40;
uVar5 = 0;
}
}
LAB_00168f45:
auVar8._0_8_ = auVar7._0_8_ & 0xffffffff | uVar5;
auVar8._8_8_ = auVar7._8_8_;
return auVar8;
}
| |
27,069 | js_math_min_max | bluesky950520[P]quickjs/quickjs.c | static JSValue js_math_min_max(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv, int magic)
{
BOOL is_max = magic;
double r, a;
int i;
uint32_t tag;
if (unlikely(argc == 0)) {
return js_float64(is_max ? NEG_INF : INF);
}
tag = JS_VALUE_GET_TAG(argv[0]);
if (tag == JS_TAG_INT) {
int a1, r1 = JS_VALUE_GET_INT(argv[0]);
for(i = 1; i < argc; i++) {
tag = JS_VALUE_GET_TAG(argv[i]);
if (tag != JS_TAG_INT) {
r = r1;
goto generic_case;
}
a1 = JS_VALUE_GET_INT(argv[i]);
if (is_max)
r1 = max_int(r1, a1);
else
r1 = min_int(r1, a1);
}
return js_int32(r1);
} else {
if (JS_ToFloat64(ctx, &r, argv[0]))
return JS_EXCEPTION;
i = 1;
generic_case:
while (i < argc) {
if (JS_ToFloat64(ctx, &a, argv[i]))
return JS_EXCEPTION;
if (!isnan(r)) {
if (isnan(a)) {
r = a;
} else {
if (is_max)
r = js_fmax(r, a);
else
r = js_fmin(r, a);
}
}
i++;
}
return js_number(r);
}
} | O3 | c | js_math_min_max:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r9d, %ebx
testl %ecx, %ecx
je 0x7fc79
movq %r8, %r15
movl %ecx, %ebp
movq %rdi, %r14
movq 0x8(%r8), %rcx
testl %ecx, %ecx
je 0x7fabe
movq (%r15), %rdx
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x2712e
testl %eax, %eax
je 0x7fb01
movl $0x6, %edx
xorl %r12d, %r12d
xorl %ecx, %ecx
jmp 0x7fc5a
movl (%r15), %ecx
cmpl $0x2, %ebp
jl 0x7faf5
movl %ebp, %edx
leaq 0x18(%r15), %rsi
movl $0x1, %eax
cmpl $0x0, (%rsi)
jne 0x7fb0e
movl -0x8(%rsi), %edi
testl %ebx, %ebx
je 0x7fae4
cmpl %edi, %ecx
cmovlel %edi, %ecx
jmp 0x7fae9
cmpl %edi, %ecx
cmovgel %edi, %ecx
incq %rax
addq $0x10, %rsi
cmpq %rax, %rdx
jne 0x7fad1
movl %ecx, %r12d
xorl %ecx, %ecx
xorl %edx, %edx
jmp 0x7fc5a
movl $0x1, %eax
movsd 0x8(%rsp), %xmm3
jmp 0x7fb12
cvtsi2sd %ecx, %xmm3
cmpl %ebp, %eax
jge 0x7fbef
movl %eax, %eax
movl %ebp, %r13d
subq %rax, %r13
shlq $0x4, %rax
leaq (%rax,%r15), %rbp
addq $0x8, %rbp
movq %rsp, %r15
xorl %r12d, %r12d
movapd %xmm3, 0x10(%rsp)
movq -0x8(%rbp), %rdx
movq (%rbp), %rcx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2712e
testl %eax, %eax
jne 0x7fc6f
movapd 0x10(%rsp), %xmm3
ucomisd %xmm3, %xmm3
jp 0x7fbda
movsd (%rsp), %xmm0
ucomisd %xmm0, %xmm0
jp 0x7fbe9
movapd %xmm0, %xmm1
xorpd %xmm4, %xmm4
cmpeqpd %xmm4, %xmm1
movapd %xmm3, %xmm2
cmpeqpd %xmm4, %xmm2
andpd %xmm1, %xmm2
movd %xmm2, %eax
testl %ebx, %ebx
je 0x7fb98
testb $0x1, %al
je 0x7fba2
andpd %xmm0, %xmm3
jmp 0x7fbda
testb $0x1, %al
je 0x7fbb9
orpd %xmm0, %xmm3
jmp 0x7fbda
movapd %xmm3, %xmm1
cmpunordsd %xmm3, %xmm1
movapd %xmm1, %xmm2
andpd %xmm0, %xmm2
maxsd %xmm3, %xmm0
jmp 0x7fbce
movapd %xmm3, %xmm1
cmpunordsd %xmm3, %xmm1
movapd %xmm1, %xmm2
andpd %xmm0, %xmm2
minsd %xmm3, %xmm0
andnpd %xmm0, %xmm1
orpd %xmm2, %xmm1
movapd %xmm1, %xmm3
addq $0x10, %rbp
decq %r13
jne 0x7fb34
jmp 0x7fbef
movapd %xmm0, %xmm3
jmp 0x7fbda
movq %xmm3, %r12
movq %r12, %rcx
shrq $0x34, %rcx
andl $0x7ff, %ecx # imm = 0x7FF
addq $-0x3ff, %rcx # imm = 0xFC01
cmpq $0x1f, %rcx
jb 0x7fc28
testq %r12, %r12
sete %cl
movabsq $-0x3e20000000000000, %rax # imm = 0xC1E0000000000000
cmpq %rax, %r12
sete %al
orb %cl, %al
jmp 0x7fc38
movq %r12, %rax
shlq $0xc, %rax
shlq %cl, %rax
testq %rax, %rax
sete %al
cvttsd2si %xmm3, %ecx
xorl %esi, %esi
testb %al, %al
cmovneq %rcx, %r12
movl $0x7, %edx
cmovneq %rsi, %rdx
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
andq %r12, %rcx
movl %r12d, %eax
orq %rcx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x6, %edx
jmp 0x7fab7
testl %ebx, %ebx
movabsq $0x7ff0000000000000, %rax # imm = 0x7FF0000000000000
movabsq $-0x10000000000000, %r12 # imm = 0xFFF0000000000000
cmoveq %rax, %r12
movl $0x7, %edx
movq %r12, %rcx
jmp 0x7fc5a
| js_math_min_max:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov ebx, r9d
test ecx, ecx
jz loc_7FC79
mov r15, r8
mov ebp, ecx
mov r14, rdi
mov rcx, [r8+8]
test ecx, ecx
jz short loc_7FABE
mov rdx, [r15]
lea rsi, [rsp+58h+var_50]
mov rdi, r14
call JS_ToFloat64
test eax, eax
jz short loc_7FB01
mov edx, 6
xor r12d, r12d
loc_7FAB7:
xor ecx, ecx
jmp loc_7FC5A
loc_7FABE:
mov ecx, [r15]
cmp ebp, 2
jl short loc_7FAF5
mov edx, ebp
lea rsi, [r15+18h]
mov eax, 1
loc_7FAD1:
cmp dword ptr [rsi], 0
jnz short loc_7FB0E
mov edi, [rsi-8]
test ebx, ebx
jz short loc_7FAE4
cmp ecx, edi
cmovle ecx, edi
jmp short loc_7FAE9
loc_7FAE4:
cmp ecx, edi
cmovge ecx, edi
loc_7FAE9:
inc rax
add rsi, 10h
cmp rdx, rax
jnz short loc_7FAD1
loc_7FAF5:
mov r12d, ecx
xor ecx, ecx
xor edx, edx
jmp loc_7FC5A
loc_7FB01:
mov eax, 1
movsd xmm3, [rsp+58h+var_50]
jmp short loc_7FB12
loc_7FB0E:
cvtsi2sd xmm3, ecx
loc_7FB12:
cmp eax, ebp
jge loc_7FBEF
mov eax, eax
mov r13d, ebp
sub r13, rax
shl rax, 4
lea rbp, [rax+r15]
add rbp, 8
mov r15, rsp
xor r12d, r12d
loc_7FB34:
movapd [rsp+58h+var_48], xmm3
mov rdx, [rbp-8]
mov rcx, [rbp+0]
mov rdi, r14
mov rsi, r15
call JS_ToFloat64
test eax, eax
jnz loc_7FC6F
movapd xmm3, [rsp+58h+var_48]
ucomisd xmm3, xmm3
jp short loc_7FBDA
movsd xmm0, [rsp+58h+var_58]
ucomisd xmm0, xmm0
jp short loc_7FBE9
movapd xmm1, xmm0
xorpd xmm4, xmm4
cmpeqpd xmm1, xmm4
movapd xmm2, xmm3
cmpeqpd xmm2, xmm4
andpd xmm2, xmm1
movd eax, xmm2
test ebx, ebx
jz short loc_7FB98
test al, 1
jz short loc_7FBA2
andpd xmm3, xmm0
jmp short loc_7FBDA
loc_7FB98:
test al, 1
jz short loc_7FBB9
orpd xmm3, xmm0
jmp short loc_7FBDA
loc_7FBA2:
movapd xmm1, xmm3
cmpunordsd xmm1, xmm3
movapd xmm2, xmm1
andpd xmm2, xmm0
maxsd xmm0, xmm3
jmp short loc_7FBCE
loc_7FBB9:
movapd xmm1, xmm3
cmpunordsd xmm1, xmm3
movapd xmm2, xmm1
andpd xmm2, xmm0
minsd xmm0, xmm3
loc_7FBCE:
andnpd xmm1, xmm0
orpd xmm1, xmm2
movapd xmm3, xmm1
loc_7FBDA:
add rbp, 10h
dec r13
jnz loc_7FB34
jmp short loc_7FBEF
loc_7FBE9:
movapd xmm3, xmm0
jmp short loc_7FBDA
loc_7FBEF:
movq r12, xmm3
mov rcx, r12
shr rcx, 34h
and ecx, 7FFh
add rcx, 0FFFFFFFFFFFFFC01h
cmp rcx, 1Fh
jb short loc_7FC28
test r12, r12
setz cl
mov rax, 0C1E0000000000000h
cmp r12, rax
setz al
or al, cl
jmp short loc_7FC38
loc_7FC28:
mov rax, r12
shl rax, 0Ch
shl rax, cl
test rax, rax
setz al
loc_7FC38:
cvttsd2si ecx, xmm3
xor esi, esi
test al, al
cmovnz r12, rcx
mov edx, 7
cmovnz rdx, rsi
mov rcx, 0FFFFFFFF00000000h
and rcx, r12
loc_7FC5A:
mov eax, r12d
or rax, rcx
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_7FC6F:
mov edx, 6
jmp loc_7FAB7
loc_7FC79:
test ebx, ebx
mov rax, 7FF0000000000000h
mov r12, 0FFF0000000000000h
cmovz r12, rax
mov edx, 7
mov rcx, r12
jmp short loc_7FC5A
| unsigned long long js_math_min_max(
long long a1,
double a2,
double a3,
double a4,
__m128d a5,
long long a6,
long long a7,
int a8,
_DWORD **a9,
int a10)
{
_DWORD *v14; // rcx
unsigned long long v15; // r12
unsigned long long v16; // rcx
int v17; // ecx
_DWORD *v18; // rsi
long long v19; // rax
int v20; // edi
unsigned long long v21; // r13
_QWORD *v22; // rbp
__m128d v23; // xmm0
char v24; // al
__m128d v25; // xmm1
__m128d v26; // xmm2
bool v27; // al
double v29; // [rsp+0h] [rbp-58h] BYREF
unsigned long long v30; // [rsp+8h] [rbp-50h] BYREF
__m128d v31; // [rsp+10h] [rbp-48h]
if ( !a8 )
{
v15 = 0xFFF0000000000000LL;
if ( !a10 )
v15 = 0x7FF0000000000000LL;
v16 = v15;
return v16 | (unsigned int)v15;
}
v14 = a9[1];
if ( !(_DWORD)v14 )
{
v17 = *(_DWORD *)a9;
if ( a8 < 2 )
{
LABEL_16:
LODWORD(v15) = v17;
v16 = 0LL;
return v16 | (unsigned int)v15;
}
v18 = a9 + 3;
v19 = 1LL;
while ( !*v18 )
{
v20 = *(v18 - 2);
if ( a10 )
{
if ( v17 <= v20 )
v17 = *(v18 - 2);
}
else if ( v17 >= v20 )
{
v17 = *(v18 - 2);
}
++v19;
v18 += 4;
if ( a8 == v19 )
goto LABEL_16;
}
a5.m128d_f64[0] = (double)v17;
goto LABEL_19;
}
if ( !(unsigned int)JS_ToFloat64(a1, (double *)&v30, *a9, (unsigned int)v14) )
{
LODWORD(v19) = 1;
a5 = (__m128d)v30;
LABEL_19:
if ( (int)v19 >= a8 )
{
LABEL_31:
v15 = *(_QWORD *)&a5.m128d_f64[0];
if ( ((*(_QWORD *)&a5.m128d_f64[0] >> 52) & 0x7FFuLL) - 1023 < 0x1F )
v27 = *(_QWORD *)&a5.m128d_f64[0] << 12 << ((unsigned __int8)(*(_QWORD *)&a5.m128d_f64[0] >> 52) + 1) == 0LL;
else
v27 = *(_QWORD *)&a5.m128d_f64[0] == 0LL || *(_QWORD *)&a5.m128d_f64[0] == 0xC1E0000000000000LL;
if ( v27 )
v15 = (unsigned int)(int)a5.m128d_f64[0];
v16 = v15 & 0xFFFFFFFF00000000LL;
return v16 | (unsigned int)v15;
}
v21 = (unsigned int)a8 - (unsigned long long)(unsigned int)v19;
v22 = &a9[2 * (unsigned int)v19 + 1];
LODWORD(v15) = 0;
while ( 1 )
{
v31 = a5;
if ( (unsigned int)JS_ToFloat64(a1, &v29, (_DWORD *)*(v22 - 1), *v22) )
goto LABEL_5;
v23 = (__m128d)*(unsigned long long *)&v29;
v24 = _mm_cvtsi128_si32((__m128i)_mm_and_pd(
_mm_cmpeq_pd(v31, (__m128d)0LL),
_mm_cmpeq_pd((__m128d)*(unsigned long long *)&v29, (__m128d)0LL)));
if ( a10 )
{
if ( (v24 & 1) == 0 )
{
v25 = _mm_cmpunord_sd(v31, v31);
v26 = _mm_and_pd(v25, (__m128d)*(unsigned long long *)&v29);
v23.m128d_f64[0] = fmax(v29, v31.m128d_f64[0]);
LABEL_29:
a5 = _mm_or_pd(_mm_andn_pd(v25, v23), v26);
goto LABEL_30;
}
a5 = _mm_and_pd(v31, (__m128d)*(unsigned long long *)&v29);
}
else
{
if ( (v24 & 1) == 0 )
{
v25 = _mm_cmpunord_sd(v31, v31);
v26 = _mm_and_pd(v25, (__m128d)*(unsigned long long *)&v29);
v23.m128d_f64[0] = fmin(v29, v31.m128d_f64[0]);
goto LABEL_29;
}
a5 = _mm_or_pd(v31, (__m128d)*(unsigned long long *)&v29);
}
LABEL_30:
v22 += 2;
if ( !--v21 )
goto LABEL_31;
}
}
LODWORD(v15) = 0;
LABEL_5:
v16 = 0LL;
return v16 | (unsigned int)v15;
}
| js_math_min_max:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV EBX,R9D
TEST ECX,ECX
JZ 0x0017fc79
MOV R15,R8
MOV EBP,ECX
MOV R14,RDI
MOV RCX,qword ptr [R8 + 0x8]
TEST ECX,ECX
JZ 0x0017fabe
MOV RDX,qword ptr [R15]
LEA RSI,[RSP + 0x8]
MOV RDI,R14
CALL 0x0012712e
TEST EAX,EAX
JZ 0x0017fb01
MOV EDX,0x6
XOR R12D,R12D
LAB_0017fab7:
XOR ECX,ECX
JMP 0x0017fc5a
LAB_0017fabe:
MOV ECX,dword ptr [R15]
CMP EBP,0x2
JL 0x0017faf5
MOV EDX,EBP
LEA RSI,[R15 + 0x18]
MOV EAX,0x1
LAB_0017fad1:
CMP dword ptr [RSI],0x0
JNZ 0x0017fb0e
MOV EDI,dword ptr [RSI + -0x8]
TEST EBX,EBX
JZ 0x0017fae4
CMP ECX,EDI
CMOVLE ECX,EDI
JMP 0x0017fae9
LAB_0017fae4:
CMP ECX,EDI
CMOVGE ECX,EDI
LAB_0017fae9:
INC RAX
ADD RSI,0x10
CMP RDX,RAX
JNZ 0x0017fad1
LAB_0017faf5:
MOV R12D,ECX
XOR ECX,ECX
XOR EDX,EDX
JMP 0x0017fc5a
LAB_0017fb01:
MOV EAX,0x1
MOVSD XMM3,qword ptr [RSP + 0x8]
JMP 0x0017fb12
LAB_0017fb0e:
CVTSI2SD XMM3,ECX
LAB_0017fb12:
CMP EAX,EBP
JGE 0x0017fbef
MOV EAX,EAX
MOV R13D,EBP
SUB R13,RAX
SHL RAX,0x4
LEA RBP,[RAX + R15*0x1]
ADD RBP,0x8
MOV R15,RSP
XOR R12D,R12D
LAB_0017fb34:
MOVAPD xmmword ptr [RSP + 0x10],XMM3
MOV RDX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP]
MOV RDI,R14
MOV RSI,R15
CALL 0x0012712e
TEST EAX,EAX
JNZ 0x0017fc6f
MOVAPD XMM3,xmmword ptr [RSP + 0x10]
UCOMISD XMM3,XMM3
JP 0x0017fbda
MOVSD XMM0,qword ptr [RSP]
UCOMISD XMM0,XMM0
JP 0x0017fbe9
MOVAPD XMM1,XMM0
XORPD XMM4,XMM4
CMPEQPD XMM1,XMM4
MOVAPD XMM2,XMM3
CMPEQPD XMM2,XMM4
ANDPD XMM2,XMM1
MOVD EAX,XMM2
TEST EBX,EBX
JZ 0x0017fb98
TEST AL,0x1
JZ 0x0017fba2
ANDPD XMM3,XMM0
JMP 0x0017fbda
LAB_0017fb98:
TEST AL,0x1
JZ 0x0017fbb9
ORPD XMM3,XMM0
JMP 0x0017fbda
LAB_0017fba2:
MOVAPD XMM1,XMM3
CMPUNORDSD XMM1,XMM3
MOVAPD XMM2,XMM1
ANDPD XMM2,XMM0
MAXSD XMM0,XMM3
JMP 0x0017fbce
LAB_0017fbb9:
MOVAPD XMM1,XMM3
CMPUNORDSD XMM1,XMM3
MOVAPD XMM2,XMM1
ANDPD XMM2,XMM0
MINSD XMM0,XMM3
LAB_0017fbce:
ANDNPD XMM1,XMM0
ORPD XMM1,XMM2
MOVAPD XMM3,XMM1
LAB_0017fbda:
ADD RBP,0x10
DEC R13
JNZ 0x0017fb34
JMP 0x0017fbef
LAB_0017fbe9:
MOVAPD XMM3,XMM0
JMP 0x0017fbda
LAB_0017fbef:
MOVQ R12,XMM3
MOV RCX,R12
SHR RCX,0x34
AND ECX,0x7ff
ADD RCX,-0x3ff
CMP RCX,0x1f
JC 0x0017fc28
TEST R12,R12
SETZ CL
MOV RAX,-0x3e20000000000000
CMP R12,RAX
SETZ AL
OR AL,CL
JMP 0x0017fc38
LAB_0017fc28:
MOV RAX,R12
SHL RAX,0xc
SHL RAX,CL
TEST RAX,RAX
SETZ AL
LAB_0017fc38:
CVTTSD2SI ECX,XMM3
XOR ESI,ESI
TEST AL,AL
CMOVNZ R12,RCX
MOV EDX,0x7
CMOVNZ RDX,RSI
MOV RCX,-0x100000000
AND RCX,R12
LAB_0017fc5a:
MOV EAX,R12D
OR RAX,RCX
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0017fc6f:
MOV EDX,0x6
JMP 0x0017fab7
LAB_0017fc79:
TEST EBX,EBX
MOV RAX,0x7ff0000000000000
MOV R12,-0x10000000000000
CMOVZ R12,RAX
MOV EDX,0x7
MOV RCX,R12
JMP 0x0017fc5a
|
int1 [16]
js_math_min_max(int8 param_1,int8 param_2,int8 param_3,uint param_4,uint *param_5,
int param_6)
{
uint uVar1;
bool bVar2;
int iVar3;
ulong uVar4;
uint uVar5;
double dVar6;
int8 uVar7;
uint *puVar8;
long lVar9;
ulong uVar10;
int8 in_XMM3_Qa;
int1 auVar11 [16];
double local_58;
double local_50;
double local_48;
int8 uStack_40;
if (param_4 == 0) {
dVar6 = -INFINITY;
if (param_6 == 0) {
dVar6 = INFINITY;
}
uVar7 = 7;
local_48 = dVar6;
}
else if ((int)*(int8 *)(param_5 + 2) == 0) {
uVar5 = *param_5;
if (1 < (int)param_4) {
puVar8 = param_5 + 6;
uVar4 = 1;
do {
if (*puVar8 != 0) {
local_48 = (double)(int)uVar5;
uStack_40 = in_XMM3_Qa;
goto LAB_0017fb12;
}
uVar1 = puVar8[-2];
if (param_6 == 0) {
if ((int)uVar1 <= (int)uVar5) {
uVar5 = uVar1;
}
}
else if ((int)uVar5 <= (int)uVar1) {
uVar5 = uVar1;
}
uVar4 = uVar4 + 1;
puVar8 = puVar8 + 4;
} while (param_4 != uVar4);
}
dVar6 = 0.0;
uVar7 = 0;
local_48 = (double)(ulong)uVar5;
}
else {
iVar3 = JS_ToFloat64(param_1,&local_50,*(int8 *)param_5);
if (iVar3 == 0) {
uVar4 = 1;
uStack_40 = 0;
local_48 = local_50;
LAB_0017fb12:
if ((int)uVar4 < (int)param_4) {
lVar9 = (ulong)param_4 - (uVar4 & 0xffffffff);
param_5 = param_5 + (uVar4 & 0xffffffff) * 4 + 2;
do {
iVar3 = JS_ToFloat64(param_1,&local_58,*(int8 *)(param_5 + -2),
*(int8 *)param_5);
if (iVar3 != 0) goto LAB_0017fab7;
if (!NAN(local_48)) {
if (NAN(local_58)) {
uStack_40 = 0;
local_48 = local_58;
}
else {
dVar6 = local_58;
if (param_6 == 0) {
if (local_48 != 0.0 || local_58 != 0.0) {
uVar4 = -(ulong)NAN(local_48);
uVar10 = uVar4 & (ulong)local_58;
if (local_48 <= local_58) {
dVar6 = local_48;
}
goto LAB_0017fbce;
}
local_48 = (double)((ulong)local_48 | (ulong)local_58);
}
else if (local_48 != 0.0 || local_58 != 0.0) {
uVar4 = -(ulong)NAN(local_48);
uVar10 = uVar4 & (ulong)local_58;
if (local_58 <= local_48) {
dVar6 = local_48;
}
LAB_0017fbce:
local_48 = (double)(~uVar4 & (ulong)dVar6 | uVar10);
uStack_40 = 0;
}
else {
local_48 = (double)((ulong)local_48 & (ulong)local_58);
uStack_40 = 0;
}
}
}
param_5 = param_5 + 4;
lVar9 = lVar9 + -1;
} while (lVar9 != 0);
}
uVar4 = (ulong)((uint)((ulong)local_48 >> 0x34) & 0x7ff) - 0x3ff;
if (uVar4 < 0x1f) {
bVar2 = ((long)local_48 << 0xc) << ((byte)uVar4 & 0x3f) == 0;
}
else {
uVar4 = CONCAT71((int7)(uVar4 >> 8),local_48 == 0.0);
bVar2 = local_48 == -2147483648.0 || local_48 == 0.0;
}
if (bVar2) {
local_48 = (double)CONCAT44((int)(uVar4 >> 0x20),(int)local_48);
}
uVar7 = 7;
if (bVar2) {
uVar7 = 0;
}
dVar6 = (double)((ulong)local_48 & 0xffffffff00000000);
}
else {
LAB_0017fab7:
uVar7 = 6;
dVar6 = 0.0;
local_48 = 0.0;
}
}
auVar11._0_8_ = (ulong)local_48 & 0xffffffff | (ulong)dVar6;
auVar11._8_8_ = uVar7;
return auVar11;
}
| |
27,070 | my_xml_error_pos | eloqsql/strings/xml.c | size_t my_xml_error_pos(MY_XML_PARSER *p)
{
const char *beg=p->beg;
const char *s;
for ( s=p->beg ; s<p->cur; s++)
{
if (s[0] == '\n')
beg=s;
}
return (size_t) (p->cur-beg);
} | O0 | c | my_xml_error_pos:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x128(%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x128(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq 0x130(%rcx), %rax
jae 0x8a88b
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0xa, %eax
jne 0x8a87b
movq -0x18(%rbp), %rax
movq %rax, -0x10(%rbp)
jmp 0x8a87d
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x8a856
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rax
movq -0x10(%rbp), %rcx
subq %rcx, %rax
popq %rbp
retq
nop
| my_xml_error_pos:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov rax, [rax+128h]
mov [rbp+var_10], rax
mov rax, [rbp+var_8]
mov rax, [rax+128h]
mov [rbp+var_18], rax
loc_8A856:
mov rax, [rbp+var_18]
mov rcx, [rbp+var_8]
cmp rax, [rcx+130h]
jnb short loc_8A88B
mov rax, [rbp+var_18]
movsx eax, byte ptr [rax]
cmp eax, 0Ah
jnz short loc_8A87B
mov rax, [rbp+var_18]
mov [rbp+var_10], rax
loc_8A87B:
jmp short $+2
loc_8A87D:
mov rax, [rbp+var_18]
add rax, 1
mov [rbp+var_18], rax
jmp short loc_8A856
loc_8A88B:
mov rax, [rbp+var_8]
mov rax, [rax+130h]
mov rcx, [rbp+var_10]
sub rax, rcx
pop rbp
retn
| long long my_xml_error_pos(long long a1)
{
_BYTE *i; // [rsp+0h] [rbp-18h]
_BYTE *v3; // [rsp+8h] [rbp-10h]
v3 = *(_BYTE **)(a1 + 296);
for ( i = v3; (unsigned long long)i < *(_QWORD *)(a1 + 304); ++i )
{
if ( *i == 10 )
v3 = i;
}
return *(_QWORD *)(a1 + 304) - (_QWORD)v3;
}
| my_xml_error_pos:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x128]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x128]
MOV qword ptr [RBP + -0x18],RAX
LAB_0018a856:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RCX + 0x130]
JNC 0x0018a88b
MOV RAX,qword ptr [RBP + -0x18]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0xa
JNZ 0x0018a87b
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x10],RAX
LAB_0018a87b:
JMP 0x0018a87d
LAB_0018a87d:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
MOV qword ptr [RBP + -0x18],RAX
JMP 0x0018a856
LAB_0018a88b:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x130]
MOV RCX,qword ptr [RBP + -0x10]
SUB RAX,RCX
POP RBP
RET
|
long my_xml_error_pos(long param_1)
{
char *local_20;
char *local_18;
local_18 = *(char **)(param_1 + 0x128);
for (local_20 = *(char **)(param_1 + 0x128); local_20 < *(char **)(param_1 + 0x130);
local_20 = local_20 + 1) {
if (*local_20 == '\n') {
local_18 = local_20;
}
}
return *(long *)(param_1 + 0x130) - (long)local_18;
}
| |
27,071 | void ankerl::nanobench::detail::doNotOptimizeAway<unsigned int>(unsigned int&) | BadAccessGuards/build_O0/_deps/nanobench-src/src/include/nanobench.h | void doNotOptimizeAway(T& val) {
# if defined(__clang__)
// NOLINTNEXTLINE(hicpp-no-assembler)
asm volatile("" : "+r,m"(val) : : "memory");
# else
// NOLINTNEXTLINE(hicpp-no-assembler)
asm volatile("" : "+m,r"(val) : : "memory");
# endif
} | O0 | c | void ankerl::nanobench::detail::doNotOptimizeAway<unsigned int>(unsigned int&):
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl (%rax), %ecx
popq %rbp
retq
| _ZN6ankerl9nanobench6detail17doNotOptimizeAwayIjEEvRT_:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov ecx, [rax]
pop rbp
retn
| long long ankerl::nanobench::detail::doNotOptimizeAway<unsigned int>(long long a1)
{
return a1;
}
| doNotOptimizeAway<unsigned_int>:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX]
POP RBP
RET
|
/* void ankerl::nanobench::detail::doNotOptimizeAway<unsigned int>(unsigned int&) */
void ankerl::nanobench::detail::doNotOptimizeAway<unsigned_int>(uint *param_1)
{
return;
}
| |
27,072 | BAIL_OUT | eloqsql/libmariadb/unittest/mytap/tap.c | void
BAIL_OUT(char const *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
fprintf(tapout, "Bail out! ");
vfprintf(tapout, fmt, ap);
emit_endl();
va_end(ap);
exit(255);
} | O3 | c | BAIL_OUT:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xc8, %rsp
movq %rdi, %rbx
leaq -0xe0(%rbp), %rdi
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x15773
movaps %xmm0, -0xb0(%rbp)
movaps %xmm1, -0xa0(%rbp)
movaps %xmm2, -0x90(%rbp)
movaps %xmm3, -0x80(%rbp)
movaps %xmm4, -0x70(%rbp)
movaps %xmm5, -0x60(%rbp)
movaps %xmm6, -0x50(%rbp)
movaps %xmm7, -0x40(%rbp)
leaq -0x30(%rbp), %r14
movq %rdi, 0x10(%r14)
leaq 0x10(%rbp), %rax
movq %rax, 0x8(%r14)
movabsq $0x3000000008, %rax # imm = 0x3000000008
movq %rax, (%r14)
movq 0x33819(%rip), %r15 # 0x48fb0
movq (%r15), %rdi
leaq 0x20100(%rip), %rdx # 0x358a1
movl $0x1, %esi
xorl %eax, %eax
callq 0x13740
movq (%r15), %rdi
movl $0x1, %esi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x13150
callq 0x15e2a
movl $0xff, %edi
callq 0x13580
| BAIL_OUT:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
sub rsp, 0C8h
mov rbx, rdi
lea rdi, [rbp+var_E0]
mov [rdi+8], rsi
mov [rdi+10h], rdx
mov [rdi+18h], rcx
mov [rdi+20h], r8
mov [rdi+28h], r9
test al, al
jz short loc_15773
movaps [rbp+var_B0], xmm0
movaps [rbp+var_A0], xmm1
movaps [rbp+var_90], xmm2
movaps [rbp+var_80], xmm3
movaps [rbp+var_70], xmm4
movaps [rbp+var_60], xmm5
movaps [rbp+var_50], xmm6
movaps [rbp+var_40], xmm7
loc_15773:
lea r14, [rbp+var_30]
mov [r14+10h], rdi
lea rax, [rbp+arg_0]
mov [r14+8], rax
mov rax, 3000000008h
mov [r14], rax
mov r15, cs:stdout_ptr
mov rdi, [r15]
lea rdx, aBailOut; "Bail out! "
mov esi, 1
xor eax, eax
call ___fprintf_chk
mov rdi, [r15]
mov esi, 1
mov rdx, rbx
mov rcx, r14
call ___vfprintf_chk
call emit_endl
mov edi, 0FFh
call _exit
| void __noreturn BAIL_OUT(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14,
char a15)
{
char v15; // [rsp+0h] [rbp-E0h] BYREF
long long v16; // [rsp+8h] [rbp-D8h]
long long v17; // [rsp+10h] [rbp-D0h]
long long v18; // [rsp+18h] [rbp-C8h]
long long v19; // [rsp+20h] [rbp-C0h]
long long v20; // [rsp+28h] [rbp-B8h]
__m128 v21; // [rsp+30h] [rbp-B0h]
__m128 v22; // [rsp+40h] [rbp-A0h]
__m128 v23; // [rsp+50h] [rbp-90h]
__m128 v24; // [rsp+60h] [rbp-80h]
__m128 v25; // [rsp+70h] [rbp-70h]
__m128 v26; // [rsp+80h] [rbp-60h]
__m128 v27; // [rsp+90h] [rbp-50h]
__m128 v28; // [rsp+A0h] [rbp-40h]
_QWORD v29[6]; // [rsp+B0h] [rbp-30h] BYREF
v21 = a7;
v22 = a8;
v23 = a9;
v24 = a10;
v25 = a11;
v26 = a12;
v27 = a13;
v28 = a14;
v16 = a2;
v17 = a3;
v18 = a4;
v19 = a5;
v20 = a6;
v29[2] = &v15;
v29[1] = &a15;
v29[0] = 0x3000000008LL;
__fprintf_chk(stdout, 1LL, "Bail out! ");
__vfprintf_chk(stdout, 1LL, a1, v29);
emit_endl();
exit(255LL);
}
| BAIL_OUT:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0xc8
MOV RBX,RDI
LEA RDI,[RBP + -0xe0]
MOV qword ptr [RDI + 0x8],RSI
MOV qword ptr [RDI + 0x10],RDX
MOV qword ptr [RDI + 0x18],RCX
MOV qword ptr [RDI + 0x20],R8
MOV qword ptr [RDI + 0x28],R9
TEST AL,AL
JZ 0x00115773
MOVAPS xmmword ptr [RBP + -0xb0],XMM0
MOVAPS xmmword ptr [RBP + -0xa0],XMM1
MOVAPS xmmword ptr [RBP + -0x90],XMM2
MOVAPS xmmword ptr [RBP + -0x80],XMM3
MOVAPS xmmword ptr [RBP + -0x70],XMM4
MOVAPS xmmword ptr [RBP + -0x60],XMM5
MOVAPS xmmword ptr [RBP + -0x50],XMM6
MOVAPS xmmword ptr [RBP + -0x40],XMM7
LAB_00115773:
LEA R14,[RBP + -0x30]
MOV qword ptr [R14 + 0x10],RDI
LEA RAX,[RBP + 0x10]
MOV qword ptr [R14 + 0x8],RAX
MOV RAX,0x3000000008
MOV qword ptr [R14],RAX
MOV R15,qword ptr [0x00148fb0]
MOV RDI,qword ptr [R15]
LEA RDX,[0x1358a1]
MOV ESI,0x1
XOR EAX,EAX
CALL 0x00113740
MOV RDI,qword ptr [R15]
MOV ESI,0x1
MOV RDX,RBX
MOV RCX,R14
CALL 0x00113150
CALL 0x00115e2a
MOV EDI,0xff
CALL 0x00113580
|
void BAIL_OUT(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,
int8 param_9,int8 param_10,int8 param_11,int8 param_12,
int8 param_13,int8 param_14)
{
int *puVar1;
char in_AL;
int1 local_e8 [8];
int8 local_e0;
int8 local_d8;
int8 local_d0;
int8 local_c8;
int8 local_c0;
int8 local_b8;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
int8 local_68;
int8 local_58;
int8 local_48;
int8 local_38;
int1 *local_30;
int1 *local_28;
puVar1 = PTR_stdout_00148fb0;
local_28 = local_e8;
if (in_AL != '\0') {
local_b8 = param_1;
local_a8 = param_2;
local_98 = param_3;
local_88 = param_4;
local_78 = param_5;
local_68 = param_6;
local_58 = param_7;
local_48 = param_8;
}
local_30 = &stack0x00000008;
local_38 = 0x3000000008;
local_e0 = param_10;
local_d8 = param_11;
local_d0 = param_12;
local_c8 = param_13;
local_c0 = param_14;
__fprintf_chk(*(int8 *)PTR_stdout_00148fb0,1,"Bail out! ");
__vfprintf_chk(*(int8 *)puVar1,1,param_9,&local_38);
emit_endl();
/* WARNING: Subroutine does not return */
exit(0xff);
}
| |
27,073 | can_opt_put_ref_value | bluesky950520[P]quickjs/quickjs.c | static BOOL can_opt_put_ref_value(const uint8_t *bc_buf, int pos)
{
int opcode = bc_buf[pos];
return (bc_buf[pos + 1] == OP_put_ref_value &&
(opcode == OP_insert3 ||
opcode == OP_perm4 ||
opcode == OP_nop ||
opcode == OP_rot3l));
} | O2 | c | can_opt_put_ref_value:
movslq %esi, %rcx
xorl %eax, %eax
cmpb $0x3d, 0x1(%rdi,%rcx)
jne 0x612c0
movzbl (%rdi,%rcx), %ecx
pushq $0x1
popq %rax
cmpl $0x16, %ecx
je 0x612c0
cmpl $0x19, %ecx
je 0x612c0
cmpl $0xb2, %ecx
je 0x612c0
xorl %eax, %eax
cmpl $0x1d, %ecx
sete %al
retq
| can_opt_put_ref_value:
movsxd rcx, esi
xor eax, eax
cmp byte ptr [rdi+rcx+1], 3Dh ; '='
jnz short locret_612C0
movzx ecx, byte ptr [rdi+rcx]
push 1
pop rax
cmp ecx, 16h
jz short locret_612C0
cmp ecx, 19h
jz short locret_612C0
cmp ecx, 0B2h
jz short locret_612C0
xor eax, eax
cmp ecx, 1Dh
setz al
locret_612C0:
retn
| _BOOL8 can_opt_put_ref_value(long long a1, int a2)
{
_BOOL8 result; // rax
int v3; // ecx
result = 0LL;
if ( *(_BYTE *)(a1 + a2 + 1) == 61 )
{
v3 = *(unsigned __int8 *)(a1 + a2);
result = 1LL;
if ( v3 != 22 && v3 != 25 && v3 != 178 )
return v3 == 29;
}
return result;
}
| can_opt_put_ref_value:
MOVSXD RCX,ESI
XOR EAX,EAX
CMP byte ptr [RDI + RCX*0x1 + 0x1],0x3d
JNZ 0x001612c0
MOVZX ECX,byte ptr [RDI + RCX*0x1]
PUSH 0x1
POP RAX
CMP ECX,0x16
JZ 0x001612c0
CMP ECX,0x19
JZ 0x001612c0
CMP ECX,0xb2
JZ 0x001612c0
XOR EAX,EAX
CMP ECX,0x1d
SETZ AL
LAB_001612c0:
RET
|
bool can_opt_put_ref_value(long param_1,int param_2)
{
char cVar1;
bool bVar2;
bVar2 = false;
if (*(char *)(param_1 + 1 + (long)param_2) == '=') {
cVar1 = *(char *)(param_1 + param_2);
bVar2 = true;
if (((cVar1 != '\x16') && (cVar1 != '\x19')) && (cVar1 != -0x4e)) {
bVar2 = cVar1 == '\x1d';
}
}
return bVar2;
}
| |
27,074 | my_wc_mb_eucjpms | eloqsql/strings/ctype-eucjpms.c | static int
my_wc_mb_eucjpms(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *s, uchar *e)
{
int jp;
if ((int) wc < 0x80) /* ASCII [00-7F] */
{
if (s >= e)
return MY_CS_TOOSMALL;
*s= (uchar) wc;
return 1;
}
if (wc > 0xFFFF)
return MY_CS_ILUNI;
if ((jp= unicode_to_jisx0208_eucjpms[wc])) /* JIS-X-0208 MS */
{
if (s + 2 > e)
return MY_CS_TOOSMALL2;
MY_PUT_MB2(s, jp);
return 2;
}
if ((jp= unicode_to_jisx0212_eucjpms[wc])) /* JIS-X-0212 MS */
{
if (s + 3 > e)
return MY_CS_TOOSMALL3;
s[0]= 0x8F;
MY_PUT_MB2(s + 1, jp);
return 3;
}
if (wc >= 0xFF61 && wc <= 0xFF9F) /* Half width Katakana */
{
if (s + 2 > e)
return MY_CS_TOOSMALL2;
s[0]= 0x8E;
s[1]= (uchar) (wc - 0xFEC0);
return 2;
}
return MY_CS_ILUNI;
} | O0 | c | my_wc_mb_eucjpms:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x80, %eax
jge 0x4f86d
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jb 0x4f855
movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B
jmp 0x4f995
movq -0x18(%rbp), %rax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4f995
cmpq $0xffff, -0x18(%rbp) # imm = 0xFFFF
jbe 0x4f883
movl $0x0, -0x4(%rbp)
jmp 0x4f995
movq -0x18(%rbp), %rcx
leaq 0x1f3002(%rip), %rax # 0x242890
movzwl (%rax,%rcx,2), %eax
movl %eax, -0x2c(%rbp)
cmpl $0x0, %eax
je 0x4f8df
movq -0x20(%rbp), %rax
addq $0x2, %rax
cmpq -0x28(%rbp), %rax
jbe 0x4f8b4
movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A
jmp 0x4f995
movl -0x2c(%rbp), %eax
sarl $0x8, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, (%rax)
movl -0x2c(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, 0x1(%rax)
movl $0x2, -0x4(%rbp)
jmp 0x4f995
movq -0x18(%rbp), %rcx
leaq 0x212fa6(%rip), %rax # 0x262890
movzwl (%rax,%rcx,2), %eax
movl %eax, -0x2c(%rbp)
cmpl $0x0, %eax
je 0x4f940
movq -0x20(%rbp), %rax
addq $0x3, %rax
cmpq -0x28(%rbp), %rax
jbe 0x4f910
movl $0xffffff99, -0x4(%rbp) # imm = 0xFFFFFF99
jmp 0x4f995
movq -0x20(%rbp), %rax
movb $-0x71, (%rax)
movl -0x2c(%rbp), %eax
sarl $0x8, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0x2c(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, 0x2(%rax)
movl $0x3, -0x4(%rbp)
jmp 0x4f995
cmpq $0xff61, -0x18(%rbp) # imm = 0xFF61
jb 0x4f98e
cmpq $0xff9f, -0x18(%rbp) # imm = 0xFF9F
ja 0x4f98e
movq -0x20(%rbp), %rax
addq $0x2, %rax
cmpq -0x28(%rbp), %rax
jbe 0x4f96b
movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A
jmp 0x4f995
movq -0x20(%rbp), %rax
movb $-0x72, (%rax)
movq -0x18(%rbp), %rax
subq $0xfec0, %rax # imm = 0xFEC0
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, 0x1(%rax)
movl $0x2, -0x4(%rbp)
jmp 0x4f995
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw (%rax,%rax)
| my_wc_mb_eucjpms:
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_18]
cmp eax, 80h
jge short loc_4F86D
mov rax, [rbp+var_20]
cmp rax, [rbp+var_28]
jb short loc_4F855
mov [rbp+var_4], 0FFFFFF9Bh
jmp loc_4F995
loc_4F855:
mov rax, [rbp+var_18]
mov cl, al
mov rax, [rbp+var_20]
mov [rax], cl
mov [rbp+var_4], 1
jmp loc_4F995
loc_4F86D:
cmp [rbp+var_18], 0FFFFh
jbe short loc_4F883
mov [rbp+var_4], 0
jmp loc_4F995
loc_4F883:
mov rcx, [rbp+var_18]
lea rax, unicode_to_jisx0208_eucjpms
movzx eax, word ptr [rax+rcx*2]
mov [rbp+var_2C], eax
cmp eax, 0
jz short loc_4F8DF
mov rax, [rbp+var_20]
add rax, 2
cmp rax, [rbp+var_28]
jbe short loc_4F8B4
mov [rbp+var_4], 0FFFFFF9Ah
jmp loc_4F995
loc_4F8B4:
mov eax, [rbp+var_2C]
sar eax, 8
mov cl, al
mov rax, [rbp+var_20]
mov [rax], cl
mov eax, [rbp+var_2C]
and eax, 0FFh
mov cl, al
mov rax, [rbp+var_20]
mov [rax+1], cl
mov [rbp+var_4], 2
jmp loc_4F995
loc_4F8DF:
mov rcx, [rbp+var_18]
lea rax, unicode_to_jisx0212_eucjpms
movzx eax, word ptr [rax+rcx*2]
mov [rbp+var_2C], eax
cmp eax, 0
jz short loc_4F940
mov rax, [rbp+var_20]
add rax, 3
cmp rax, [rbp+var_28]
jbe short loc_4F910
mov [rbp+var_4], 0FFFFFF99h
jmp loc_4F995
loc_4F910:
mov rax, [rbp+var_20]
mov byte ptr [rax], 8Fh
mov eax, [rbp+var_2C]
sar eax, 8
mov cl, al
mov rax, [rbp+var_20]
mov [rax+1], cl
mov eax, [rbp+var_2C]
and eax, 0FFh
mov cl, al
mov rax, [rbp+var_20]
mov [rax+2], cl
mov [rbp+var_4], 3
jmp short loc_4F995
loc_4F940:
cmp [rbp+var_18], 0FF61h
jb short loc_4F98E
cmp [rbp+var_18], 0FF9Fh
ja short loc_4F98E
mov rax, [rbp+var_20]
add rax, 2
cmp rax, [rbp+var_28]
jbe short loc_4F96B
mov [rbp+var_4], 0FFFFFF9Ah
jmp short loc_4F995
loc_4F96B:
mov rax, [rbp+var_20]
mov byte ptr [rax], 8Eh
mov rax, [rbp+var_18]
sub rax, 0FEC0h
mov cl, al
mov rax, [rbp+var_20]
mov [rax+1], cl
mov [rbp+var_4], 2
jmp short loc_4F995
loc_4F98E:
mov [rbp+var_4], 0
loc_4F995:
mov eax, [rbp+var_4]
pop rbp
retn
| long long my_wc_mb_eucjpms(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4)
{
__int16 v5; // [rsp+0h] [rbp-2Ch]
__int16 v6; // [rsp+0h] [rbp-2Ch]
if ( (int)a2 >= 128 )
{
if ( a2 <= 0xFFFF )
{
v5 = unicode_to_jisx0208_eucjpms[a2];
if ( v5 )
{
if ( (unsigned long long)(a3 + 2) <= a4 )
{
*a3 = HIBYTE(v5);
a3[1] = v5;
return 2;
}
else
{
return (unsigned int)-102;
}
}
else
{
v6 = unicode_to_jisx0212_eucjpms[a2];
if ( v6 )
{
if ( (unsigned long long)(a3 + 3) <= a4 )
{
*a3 = -113;
a3[1] = HIBYTE(v6);
a3[2] = v6;
return 3;
}
else
{
return (unsigned int)-103;
}
}
else if ( a2 < 0xFF61 || a2 > 0xFF9F )
{
return 0;
}
else if ( (unsigned long long)(a3 + 2) <= a4 )
{
*a3 = -114;
a3[1] = a2 + 64;
return 2;
}
else
{
return (unsigned int)-102;
}
}
}
else
{
return 0;
}
}
else if ( (unsigned long long)a3 < a4 )
{
*a3 = a2;
return 1;
}
else
{
return (unsigned int)-101;
}
}
| my_wc_mb_eucjpms:
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 + -0x18]
CMP EAX,0x80
JGE 0x0014f86d
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x28]
JC 0x0014f855
MOV dword ptr [RBP + -0x4],0xffffff9b
JMP 0x0014f995
LAB_0014f855:
MOV RAX,qword ptr [RBP + -0x18]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],CL
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0014f995
LAB_0014f86d:
CMP qword ptr [RBP + -0x18],0xffff
JBE 0x0014f883
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0014f995
LAB_0014f883:
MOV RCX,qword ptr [RBP + -0x18]
LEA RAX,[0x342890]
MOVZX EAX,word ptr [RAX + RCX*0x2]
MOV dword ptr [RBP + -0x2c],EAX
CMP EAX,0x0
JZ 0x0014f8df
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x0014f8b4
MOV dword ptr [RBP + -0x4],0xffffff9a
JMP 0x0014f995
LAB_0014f8b4:
MOV EAX,dword ptr [RBP + -0x2c]
SAR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],CL
MOV EAX,dword ptr [RBP + -0x2c]
AND EAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x1],CL
MOV dword ptr [RBP + -0x4],0x2
JMP 0x0014f995
LAB_0014f8df:
MOV RCX,qword ptr [RBP + -0x18]
LEA RAX,[0x362890]
MOVZX EAX,word ptr [RAX + RCX*0x2]
MOV dword ptr [RBP + -0x2c],EAX
CMP EAX,0x0
JZ 0x0014f940
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x3
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x0014f910
MOV dword ptr [RBP + -0x4],0xffffff99
JMP 0x0014f995
LAB_0014f910:
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],0x8f
MOV EAX,dword ptr [RBP + -0x2c]
SAR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x1],CL
MOV EAX,dword ptr [RBP + -0x2c]
AND EAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x2],CL
MOV dword ptr [RBP + -0x4],0x3
JMP 0x0014f995
LAB_0014f940:
CMP qword ptr [RBP + -0x18],0xff61
JC 0x0014f98e
CMP qword ptr [RBP + -0x18],0xff9f
JA 0x0014f98e
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x0014f96b
MOV dword ptr [RBP + -0x4],0xffffff9a
JMP 0x0014f995
LAB_0014f96b:
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],0x8e
MOV RAX,qword ptr [RBP + -0x18]
SUB RAX,0xfec0
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x1],CL
MOV dword ptr [RBP + -0x4],0x2
JMP 0x0014f995
LAB_0014f98e:
MOV dword ptr [RBP + -0x4],0x0
LAB_0014f995:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4 my_wc_mb_eucjpms(int8 param_1,ulong param_2,char *param_3,char *param_4)
{
short sVar1;
int4 local_c;
if ((int)param_2 < 0x80) {
if (param_3 < param_4) {
*param_3 = (char)param_2;
local_c = 1;
}
else {
local_c = 0xffffff9b;
}
}
else if (param_2 < 0x10000) {
sVar1 = *(short *)(unicode_to_jisx0208_eucjpms + param_2 * 2);
if (sVar1 == 0) {
sVar1 = *(short *)(unicode_to_jisx0212_eucjpms + param_2 * 2);
if (sVar1 == 0) {
if ((param_2 < 0xff61) || (0xff9f < param_2)) {
local_c = 0;
}
else if (param_4 < param_3 + 2) {
local_c = 0xffffff9a;
}
else {
*param_3 = -0x72;
param_3[1] = (char)param_2 + '@';
local_c = 2;
}
}
else if (param_4 < param_3 + 3) {
local_c = 0xffffff99;
}
else {
*param_3 = -0x71;
param_3[1] = (char)((ushort)sVar1 >> 8);
param_3[2] = (char)sVar1;
local_c = 3;
}
}
else if (param_4 < param_3 + 2) {
local_c = 0xffffff9a;
}
else {
*param_3 = (char)((ushort)sVar1 >> 8);
param_3[1] = (char)sVar1;
local_c = 2;
}
}
else {
local_c = 0;
}
return local_c;
}
| |
27,075 | nlohmann::json_abi_v3_11_3::detail::lexer<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>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::scan() | monkey531[P]llama/common/json.hpp | token_type scan()
{
// initially, skip the BOM
if (position.chars_read_total == 0 && !skip_bom())
{
error_message = "invalid BOM; must be 0xEF 0xBB 0xBF if given";
return token_type::parse_error;
}
// read next character and ignore whitespace
skip_whitespace();
// ignore comments
while (ignore_comments && current == '/')
{
if (!scan_comment())
{
return token_type::parse_error;
}
// skip following whitespace
skip_whitespace();
}
switch (current)
{
// structural characters
case '[':
return token_type::begin_array;
case ']':
return token_type::end_array;
case '{':
return token_type::begin_object;
case '}':
return token_type::end_object;
case ':':
return token_type::name_separator;
case ',':
return token_type::value_separator;
// literals
case 't':
{
std::array<char_type, 4> true_literal = {{static_cast<char_type>('t'), static_cast<char_type>('r'), static_cast<char_type>('u'), static_cast<char_type>('e')}};
return scan_literal(true_literal.data(), true_literal.size(), token_type::literal_true);
}
case 'f':
{
std::array<char_type, 5> false_literal = {{static_cast<char_type>('f'), static_cast<char_type>('a'), static_cast<char_type>('l'), static_cast<char_type>('s'), static_cast<char_type>('e')}};
return scan_literal(false_literal.data(), false_literal.size(), token_type::literal_false);
}
case 'n':
{
std::array<char_type, 4> null_literal = {{static_cast<char_type>('n'), static_cast<char_type>('u'), static_cast<char_type>('l'), static_cast<char_type>('l')}};
return scan_literal(null_literal.data(), null_literal.size(), token_type::literal_null);
}
// string
case '\"':
return scan_string();
// number
case '-':
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
return scan_number();
// end of input (the null byte is needed when parsing from
// string literals)
case '\0':
case char_traits<char_type>::eof():
return token_type::end_of_input;
// error
default:
error_message = "invalid literal";
return token_type::parse_error;
}
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::lexer<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>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::scan():
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
cmpq $0x0, 0x20(%rdi)
jne 0x5967f
movq %rbx, %rdi
callq 0x59816
testb %al, %al
je 0x59741
movabsq $0x100002600, %r14 # imm = 0x100002600
movq %rbx, %rdi
callq 0x1c2d2
movl 0x14(%rbx), %eax
cmpq $0x20, %rax
ja 0x596c9
btq %rax, %r14
jb 0x59689
jmp 0x596c9
movq %rbx, %rdi
callq 0x59858
testb %al, %al
je 0x5974c
movq %rbx, %rdi
callq 0x1c2d2
movl 0x14(%rbx), %eax
cmpq $0x20, %rax
ja 0x596c9
btq %rax, %r14
jb 0x596b2
cmpl $0x2f, %eax
jne 0x596d4
cmpb $0x0, 0x10(%rbx)
jne 0x596a2
cmpl $0x5a, %eax
jg 0x59704
leal -0x22(%rax), %ecx
cmpl $0x18, %ecx
ja 0x5978e
leaq 0x8ecf8(%rip), %rax # 0xe83e4
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r14
jmp 0x59dc2
cmpl $0x6d, %eax
jle 0x59759
cmpl $0x7a, %eax
jg 0x5979c
cmpl $0x6e, %eax
je 0x597d6
cmpl $0x74, %eax
jne 0x597ad
leaq 0xc(%rsp), %rsi
movl $0x65757274, (%rsi) # imm = 0x65757274
movl $0x4, %edx
movq %rbx, %rdi
movl $0x1, %ecx
jmp 0x597ee
leaq 0x94684(%rip), %rax # 0xeddcc
movq %rax, 0x70(%rbx)
movl $0xe, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
cmpl $0x5b, %eax
je 0x59802
cmpl $0x5d, %eax
je 0x5980c
cmpl $0x66, %eax
jne 0x597ad
leaq 0x10(%rsp), %rsi
movb $0x65, 0x4(%rsi)
movl $0x736c6166, (%rsi) # imm = 0x736C6166
movl $0x5, %edx
movq %rbx, %rdi
movl $0x2, %ecx
jmp 0x597ee
incl %eax
cmpl $0x2, %eax
jae 0x597ad
movl $0xf, %eax
jmp 0x59751
cmpl $0x7b, %eax
je 0x597f8
cmpl $0x7d, %eax
jne 0x597ad
movl $0xb, %eax
jmp 0x59751
leaq 0x94645(%rip), %rax # 0xeddf9
jmp 0x59748
movl $0xc, %eax
jmp 0x59751
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r14
jmp 0x59950
movl $0xd, %eax
jmp 0x59751
leaq 0x8(%rsp), %rsi
movl $0x6c6c756e, (%rsi) # imm = 0x6C6C756E
movl $0x4, %edx
movq %rbx, %rdi
movl $0x3, %ecx
callq 0x598d4
jmp 0x59751
movl $0x9, %eax
jmp 0x59751
movl $0x8, %eax
jmp 0x59751
movl $0xa, %eax
jmp 0x59751
| _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE4scanEv:
push r14
push rbx
sub rsp, 18h
mov rbx, rdi
cmp qword ptr [rdi+20h], 0
jnz short loc_5967F
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE8skip_bomEv; nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::skip_bom(void)
test al, al
jz loc_59741
loc_5967F:
mov r14, 100002600h
loc_59689:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
mov eax, [rbx+14h]
cmp rax, 20h ; ' '
ja short loc_596C9
bt r14, rax
jb short loc_59689
jmp short loc_596C9
loc_596A2:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE12scan_commentEv; nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_comment(void)
test al, al
jz loc_5974C
loc_596B2:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
mov eax, [rbx+14h]
cmp rax, 20h ; ' '
ja short loc_596C9
bt r14, rax
jb short loc_596B2
loc_596C9:
cmp eax, 2Fh ; '/'
jnz short loc_596D4
cmp byte ptr [rbx+10h], 0
jnz short loc_596A2
loc_596D4:
cmp eax, 5Ah ; 'Z'
jg short loc_59704
lea ecx, [rax-22h]; switch 25 cases
cmp ecx, 18h
ja def_596F3; jumptable 00000000000596F3 default case
lea rax, jpt_596F3
movsxd rcx, ds:(jpt_596F3 - 0E83E4h)[rax+rcx*4]
add rcx, rax
jmp rcx; switch jump
loc_596F5:
mov rdi, rbx; jumptable 00000000000596F3 cases 45,48-57
add rsp, 18h
pop rbx
pop r14
jmp _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE11scan_numberEv; nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_number(void)
loc_59704:
cmp eax, 6Dh ; 'm'
jle short loc_59759
cmp eax, 7Ah ; 'z'
jg loc_5979C
cmp eax, 6Eh ; 'n'
jz loc_597D6
cmp eax, 74h ; 't'
jnz loc_597AD; jumptable 00000000000596F3 cases 35-43,46,47
lea rsi, [rsp+28h+var_1C]
mov dword ptr [rsi], 65757274h
mov edx, 4
mov rdi, rbx
mov ecx, 1
jmp loc_597EE
loc_59741:
lea rax, aInvalidBomMust; "invalid BOM; must be 0xEF 0xBB 0xBF if "...
loc_59748:
mov [rbx+70h], rax
loc_5974C:
mov eax, 0Eh
loc_59751:
add rsp, 18h
pop rbx
pop r14
retn
loc_59759:
cmp eax, 5Bh ; '['
jz loc_59802
cmp eax, 5Dh ; ']'
jz loc_5980C
cmp eax, 66h ; 'f'
jnz short loc_597AD; jumptable 00000000000596F3 cases 35-43,46,47
lea rsi, [rsp+28h+var_18]
mov byte ptr [rsi+4], 65h ; 'e'
mov dword ptr [rsi], 736C6166h
mov edx, 5
mov rdi, rbx
mov ecx, 2
jmp short loc_597EE
def_596F3:
inc eax; jumptable 00000000000596F3 default case
cmp eax, 2
jnb short loc_597AD; jumptable 00000000000596F3 cases 35-43,46,47
mov eax, 0Fh
jmp short loc_59751
loc_5979C:
cmp eax, 7Bh ; '{'
jz short loc_597F8
cmp eax, 7Dh ; '}'
jnz short loc_597AD; jumptable 00000000000596F3 cases 35-43,46,47
mov eax, 0Bh
jmp short loc_59751
loc_597AD:
lea rax, aInvalidLiteral; jumptable 00000000000596F3 cases 35-43,46,47
jmp short loc_59748
loc_597B6:
mov eax, 0Ch; jumptable 00000000000596F3 case 58
jmp short loc_59751
loc_597BD:
mov rdi, rbx; jumptable 00000000000596F3 case 34
add rsp, 18h
pop rbx
pop r14
jmp _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE11scan_stringEv; nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_string(void)
loc_597CC:
mov eax, 0Dh; jumptable 00000000000596F3 case 44
jmp loc_59751
loc_597D6:
lea rsi, [rsp+28h+var_20]
mov dword ptr [rsi], 6C6C756Eh
mov edx, 4
mov rdi, rbx
mov ecx, 3
loc_597EE:
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE12scan_literalESK_mNS1_10lexer_baseISF_E10token_typeE; nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_literal(char const*,ulong,nlohmann::json_abi_v3_11_3::detail::lexer_base<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>>::token_type)
jmp loc_59751
loc_597F8:
mov eax, 9
jmp loc_59751
loc_59802:
mov eax, 8
jmp loc_59751
loc_5980C:
mov eax, 0Ah
jmp loc_59751
| long long nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan(
__m128i *a1)
{
long long v1; // r14
unsigned long long v2; // rax
long long result; // rax
int *v4; // rsi
long long v5; // rdx
long long v6; // rcx
const char *v7; // rax
int v8; // [rsp+8h] [rbp-20h] BYREF
int v9; // [rsp+Ch] [rbp-1Ch] BYREF
_BYTE v10[24]; // [rsp+10h] [rbp-18h] BYREF
if ( a1[2].m128i_i64[0]
|| (unsigned __int8)nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::skip_bom(a1) )
{
v1 = 0x100002600LL;
do
{
nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1);
v2 = a1[1].m128i_u32[1];
}
while ( v2 <= 0x20 && _bittest64(&v1, v2) );
while ( (_DWORD)v2 == 47 && a1[1].m128i_i8[0] )
{
if ( !(unsigned __int8)nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_comment(a1) )
return 14LL;
do
{
nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1);
v2 = a1[1].m128i_u32[1];
}
while ( v2 <= 0x20 && _bittest64(&v1, v2) );
}
if ( (int)v2 <= 90 )
{
switch ( (int)v2 )
{
case '"':
result = nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_string(a1);
break;
case '#':
case '$':
case '%':
case '&':
case '\'':
case '(':
case ')':
case '*':
case '+':
case '.':
case '/':
goto LABEL_33;
case ',':
result = 13LL;
break;
case '-':
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
result = nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_number(a1);
break;
case ':':
result = 12LL;
break;
default:
if ( (unsigned int)(v2 + 1) >= 2 )
goto LABEL_33;
result = 15LL;
break;
}
return result;
}
if ( (int)v2 <= 109 )
{
switch ( (_DWORD)v2 )
{
case '[':
return 8LL;
case ']':
return 10LL;
case 'f':
v4 = (int *)v10;
qmemcpy(v10, "false", 5);
v5 = 5LL;
v6 = 2LL;
return nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_literal(
a1,
v4,
v5,
v6);
}
}
else if ( (int)v2 > 122 )
{
if ( (_DWORD)v2 == 123 )
return 9LL;
if ( (_DWORD)v2 == 125 )
return 11LL;
}
else
{
if ( (_DWORD)v2 == 110 )
{
v4 = &v8;
v8 = 1819047278;
v5 = 4LL;
v6 = 3LL;
return nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_literal(
a1,
v4,
v5,
v6);
}
if ( (_DWORD)v2 == 116 )
{
v4 = &v9;
v9 = 1702195828;
v5 = 4LL;
v6 = 1LL;
return nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_literal(
a1,
v4,
v5,
v6);
}
}
LABEL_33:
v7 = "invalid literal";
}
else
{
v7 = "invalid BOM; must be 0xEF 0xBB 0xBF if given";
}
a1[7].m128i_i64[0] = (long long)v7;
return 14LL;
}
| scan:
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
CMP qword ptr [RDI + 0x20],0x0
JNZ 0x0015967f
MOV RDI,RBX
CALL 0x00159816
TEST AL,AL
JZ 0x00159741
LAB_0015967f:
MOV R14,0x100002600
LAB_00159689:
MOV RDI,RBX
CALL 0x0011c2d2
MOV EAX,dword ptr [RBX + 0x14]
CMP RAX,0x20
JA 0x001596c9
BT R14,RAX
JC 0x00159689
JMP 0x001596c9
LAB_001596a2:
MOV RDI,RBX
CALL 0x00159858
TEST AL,AL
JZ 0x0015974c
LAB_001596b2:
MOV RDI,RBX
CALL 0x0011c2d2
MOV EAX,dword ptr [RBX + 0x14]
CMP RAX,0x20
JA 0x001596c9
BT R14,RAX
JC 0x001596b2
LAB_001596c9:
CMP EAX,0x2f
JNZ 0x001596d4
CMP byte ptr [RBX + 0x10],0x0
JNZ 0x001596a2
LAB_001596d4:
CMP EAX,0x5a
JG 0x00159704
LEA ECX,[RAX + -0x22]
CMP ECX,0x18
JA 0x0015978e
LEA RAX,[0x1e83e4]
MOVSXD RCX,dword ptr [RAX + RCX*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_2d:
MOV RDI,RBX
ADD RSP,0x18
POP RBX
POP R14
JMP 0x00159dc2
LAB_00159704:
CMP EAX,0x6d
JLE 0x00159759
CMP EAX,0x7a
JG 0x0015979c
CMP EAX,0x6e
JZ 0x001597d6
CMP EAX,0x74
JNZ 0x001597ad
LEA RSI,[RSP + 0xc]
MOV dword ptr [RSI],0x65757274
MOV EDX,0x4
MOV RDI,RBX
MOV ECX,0x1
JMP 0x001597ee
LAB_00159741:
LEA RAX,[0x1eddcc]
LAB_00159748:
MOV qword ptr [RBX + 0x70],RAX
LAB_0015974c:
MOV EAX,0xe
LAB_00159751:
ADD RSP,0x18
POP RBX
POP R14
RET
LAB_00159759:
CMP EAX,0x5b
JZ 0x00159802
CMP EAX,0x5d
JZ 0x0015980c
CMP EAX,0x66
JNZ 0x001597ad
LEA RSI,[RSP + 0x10]
MOV byte ptr [RSI + 0x4],0x65
MOV dword ptr [RSI],0x736c6166
MOV EDX,0x5
MOV RDI,RBX
MOV ECX,0x2
JMP 0x001597ee
default:
INC EAX
CMP EAX,0x2
JNC 0x001597ad
MOV EAX,0xf
JMP 0x00159751
LAB_0015979c:
CMP EAX,0x7b
JZ 0x001597f8
CMP EAX,0x7d
JNZ 0x001597ad
MOV EAX,0xb
JMP 0x00159751
caseD_23:
LEA RAX,[0x1eddf9]
JMP 0x00159748
caseD_3a:
MOV EAX,0xc
JMP 0x00159751
caseD_22:
MOV RDI,RBX
ADD RSP,0x18
POP RBX
POP R14
JMP 0x00159950
caseD_2c:
MOV EAX,0xd
JMP 0x00159751
LAB_001597d6:
LEA RSI,[RSP + 0x8]
MOV dword ptr [RSI],0x6c6c756e
MOV EDX,0x4
MOV RDI,RBX
MOV ECX,0x3
LAB_001597ee:
CALL 0x001598d4
JMP 0x00159751
LAB_001597f8:
MOV EAX,0x9
JMP 0x00159751
LAB_00159802:
MOV EAX,0x8
JMP 0x00159751
LAB_0015980c:
MOV EAX,0xa
JMP 0x00159751
|
/* nlohmann::json_abi_v3_11_3::detail::lexer<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>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > > >::scan() */
int8 __thiscall
nlohmann::json_abi_v3_11_3::detail::
lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::scan(lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*this)
{
char cVar1;
int iVar2;
ulong uVar3;
int8 uVar4;
char *pcVar5;
int8 uVar6;
int4 *puVar7;
int4 local_20;
int4 local_1c;
int4 local_18;
int1 local_14;
if ((*(long *)(this + 0x20) != 0) || (cVar1 = skip_bom(this), cVar1 != '\0')) {
do {
get(this);
uVar3 = (ulong)*(uint *)(this + 0x14);
if (0x20 < uVar3) break;
} while ((0x100002600U >> (uVar3 & 0x3f) & 1) != 0);
do {
iVar2 = (int)uVar3;
if ((iVar2 != 0x2f) ||
(this[0x10] ==
(lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
)0x0)) goto LAB_001596d4;
cVar1 = scan_comment(this);
if (cVar1 == '\0') goto LAB_0015974c;
do {
get(this);
uVar3 = (ulong)*(uint *)(this + 0x14);
if (0x20 < uVar3) break;
} while ((0x100002600U >> (uVar3 & 0x3f) & 1) != 0);
} while( true );
}
pcVar5 = "invalid BOM; must be 0xEF 0xBB 0xBF if given";
goto LAB_00159748;
LAB_001596d4:
if (0x5a < iVar2) {
if (iVar2 < 0x6e) {
if (iVar2 == 0x5b) {
return 8;
}
if (iVar2 == 0x5d) {
return 10;
}
if (iVar2 == 0x66) {
puVar7 = &local_18;
local_14 = 0x65;
local_18 = 0x736c6166;
uVar6 = 5;
uVar4 = 2;
goto LAB_001597ee;
}
}
else if (iVar2 < 0x7b) {
if (iVar2 == 0x6e) {
puVar7 = &local_20;
local_20 = 0x6c6c756e;
uVar6 = 4;
uVar4 = 3;
LAB_001597ee:
uVar4 = scan_literal(this,puVar7,uVar6,uVar4);
return uVar4;
}
if (iVar2 == 0x74) {
puVar7 = &local_1c;
local_1c = 0x65757274;
uVar6 = 4;
uVar4 = 1;
goto LAB_001597ee;
}
}
else {
if (iVar2 == 0x7b) {
return 9;
}
if (iVar2 == 0x7d) {
return 0xb;
}
}
goto switchD_001596f3_caseD_23;
}
switch(iVar2) {
case 0x22:
uVar4 = scan_string(this);
return uVar4;
case 0x2c:
uVar4 = 0xd;
break;
case 0x2d:
case 0x30:
case 0x31:
case 0x32:
case 0x33:
case 0x34:
case 0x35:
case 0x36:
case 0x37:
case 0x38:
case 0x39:
uVar4 = scan_number(this);
return uVar4;
case 0x3a:
uVar4 = 0xc;
break;
default:
if (iVar2 + 1U < 2) {
return 0xf;
}
case 0x23:
case 0x24:
case 0x25:
case 0x26:
case 0x27:
case 0x28:
case 0x29:
case 0x2a:
case 0x2b:
case 0x2e:
case 0x2f:
switchD_001596f3_caseD_23:
pcVar5 = "invalid literal";
LAB_00159748:
*(char **)(this + 0x70) = pcVar5;
LAB_0015974c:
uVar4 = 0xe;
}
return uVar4;
}
| |
27,076 | ma_pvio_register_callback | eloqsql/libmariadb/libmariadb/ma_pvio.c | int ma_pvio_register_callback(my_bool register_callback,
void (*callback_function)(int mode, MYSQL *mysql, const uchar *buffer, size_t length))
{
LIST *list;
if (!callback_function)
return 1;
/* plugin will unregister in it's deinit function */
if (register_callback)
{
list= (LIST *)malloc(sizeof(LIST));
list->data= (void *)callback_function;
pvio_callback= list_add(pvio_callback, list);
}
else /* unregister callback function */
{
LIST *p= pvio_callback;
while (p)
{
if (p->data == callback_function)
{
list_delete(pvio_callback, p);
break;
}
p= p->next;
}
}
return 0;
} | O0 | c | ma_pvio_register_callback:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %dil, %al
movb %al, -0x5(%rbp)
movq %rsi, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x26515
movl $0x1, -0x4(%rbp)
jmp 0x265a6
cmpb $0x0, -0x5(%rbp)
je 0x26557
movl $0x18, %edi
callq 0x135b0
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x10(%rax)
leaq 0x3bfec(%rip), %rax # 0x62528
movq (%rax), %rdi
movq -0x18(%rbp), %rsi
callq 0x250c0
movq %rax, %rcx
leaq 0x3bfd6(%rip), %rax # 0x62528
movq %rcx, (%rax)
jmp 0x2659f
leaq 0x3bfca(%rip), %rax # 0x62528
movq (%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x2659d
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
cmpq -0x10(%rbp), %rax
jne 0x2658f
leaq 0x3bfa7(%rip), %rax # 0x62528
movq (%rax), %rdi
movq -0x20(%rbp), %rsi
callq 0x25130
jmp 0x2659d
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0x26565
jmp 0x2659f
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nop
| ma_pvio_register_callback:
push rbp
mov rbp, rsp
sub rsp, 20h
mov al, dil
mov [rbp+var_5], al
mov [rbp+var_10], rsi
cmp [rbp+var_10], 0
jnz short loc_26515
mov [rbp+var_4], 1
jmp loc_265A6
loc_26515:
cmp [rbp+var_5], 0
jz short loc_26557
mov edi, 18h
call _malloc
mov [rbp+var_18], rax
mov rcx, [rbp+var_10]
mov rax, [rbp+var_18]
mov [rax+10h], rcx
lea rax, pvio_callback
mov rdi, [rax]
mov rsi, [rbp+var_18]
call list_add
mov rcx, rax
lea rax, pvio_callback
mov [rax], rcx
jmp short loc_2659F
loc_26557:
lea rax, pvio_callback
mov rax, [rax]
mov [rbp+var_20], rax
loc_26565:
cmp [rbp+var_20], 0
jz short loc_2659D
mov rax, [rbp+var_20]
mov rax, [rax+10h]
cmp rax, [rbp+var_10]
jnz short loc_2658F
lea rax, pvio_callback
mov rdi, [rax]
mov rsi, [rbp+var_20]
call list_delete
jmp short loc_2659D
loc_2658F:
mov rax, [rbp+var_20]
mov rax, [rax+8]
mov [rbp+var_20], rax
jmp short loc_26565
loc_2659D:
jmp short $+2
loc_2659F:
mov [rbp+var_4], 0
loc_265A6:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
| long long ma_pvio_register_callback(char a1, long long a2)
{
_QWORD *i; // [rsp+0h] [rbp-20h]
_QWORD *v4; // [rsp+8h] [rbp-18h]
if ( a2 )
{
if ( a1 )
{
v4 = (_QWORD *)malloc(24LL);
v4[2] = a2;
pvio_callback = (long long)list_add(pvio_callback, v4);
}
else
{
for ( i = (_QWORD *)pvio_callback; i; i = (_QWORD *)i[1] )
{
if ( i[2] == a2 )
{
list_delete(pvio_callback, i);
break;
}
}
}
return 0;
}
else
{
return 1;
}
}
| ma_pvio_register_callback:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV AL,DIL
MOV byte ptr [RBP + -0x5],AL
MOV qword ptr [RBP + -0x10],RSI
CMP qword ptr [RBP + -0x10],0x0
JNZ 0x00126515
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001265a6
LAB_00126515:
CMP byte ptr [RBP + -0x5],0x0
JZ 0x00126557
MOV EDI,0x18
CALL 0x001135b0
MOV qword ptr [RBP + -0x18],RAX
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x10],RCX
LEA RAX,[0x162528]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x001250c0
MOV RCX,RAX
LEA RAX,[0x162528]
MOV qword ptr [RAX],RCX
JMP 0x0012659f
LAB_00126557:
LEA RAX,[0x162528]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
LAB_00126565:
CMP qword ptr [RBP + -0x20],0x0
JZ 0x0012659d
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x10]
CMP RAX,qword ptr [RBP + -0x10]
JNZ 0x0012658f
LEA RAX,[0x162528]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x00125130
JMP 0x0012659d
LAB_0012658f:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x20],RAX
JMP 0x00126565
LAB_0012659d:
JMP 0x0012659f
LAB_0012659f:
MOV dword ptr [RBP + -0x4],0x0
LAB_001265a6:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int4 ma_pvio_register_callback(char param_1,long param_2)
{
void *pvVar1;
int8 local_28;
int4 local_c;
if (param_2 == 0) {
local_c = 1;
}
else {
if (param_1 == '\0') {
for (local_28 = pvio_callback; local_28 != 0; local_28 = *(long *)(local_28 + 8)) {
if (*(long *)(local_28 + 0x10) == param_2) {
list_delete(pvio_callback,local_28);
break;
}
}
}
else {
pvVar1 = malloc(0x18);
*(long *)((long)pvVar1 + 0x10) = param_2;
pvio_callback = list_add(pvio_callback,pvVar1);
}
local_c = 0;
}
return local_c;
}
| |
27,077 | my_strcasecmp_utf8mb4 | eloqsql/strings/ctype-utf8.c | static int
my_strcasecmp_utf8mb4(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= my_mb_wc_utf8mb4_no_range(cs, &s_wc, (const uchar*) s);
/*
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;
my_tolower_utf8mb4(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_mb_wc_utf8mb4_no_range(cs, &t_wc, (const uchar*) t);
if (res <= 0)
return strcmp(s, t);
t+= res;
my_tolower_utf8mb4(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]);
} | O0 | c | my_strcasecmp_utf8mb4:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x78(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x41(%rbp)
je 0x70011
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x41(%rbp)
movb -0x41(%rbp), %al
testb $0x1, %al
jne 0x7001d
jmp 0x70146
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x80, %eax
jge 0x70057
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x2f8475(%rip), %rax # 0x3684b0
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x700a4
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq -0x30(%rbp), %rsi
callq 0x6f750
movl %eax, -0x3c(%rbp)
cmpl $0x0, -0x3c(%rbp)
jg 0x70086
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x24460
movl %eax, -0x4(%rbp)
jmp 0x70159
movl -0x3c(%rbp), %ecx
movq -0x18(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x28(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x6fb40
movq -0x20(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x80, %eax
jge 0x700de
movq -0x20(%rbp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x2f83ee(%rip), %rax # 0x3684b0
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x70128
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rdx
leaq -0x38(%rbp), %rsi
callq 0x6f750
movl %eax, -0x40(%rbp)
cmpl $0x0, -0x40(%rbp)
jg 0x7010a
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x24460
movl %eax, -0x4(%rbp)
jmp 0x70159
movl -0x40(%rbp), %ecx
movq -0x20(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x6fb40
movq -0x30(%rbp), %rax
cmpq -0x38(%rbp), %rax
je 0x70141
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
subl %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x70159
jmp 0x6fff0
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
movq -0x20(%rbp), %rcx
movzbl (%rcx), %ecx
subl %ecx, %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_strcasecmp_utf8mb4:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rax, [rbp+var_10]
mov rax, [rax+78h]
mov [rbp+var_28], rax
loc_6FFF0:
mov rax, [rbp+var_18]
movsx ecx, byte ptr [rax]
xor eax, eax
cmp ecx, 0
mov [rbp+var_41], al
jz short loc_70011
mov rax, [rbp+var_20]
movsx eax, byte ptr [rax]
cmp eax, 0
setnz al
mov [rbp+var_41], al
loc_70011:
mov al, [rbp+var_41]
test al, 1
jnz short loc_7001D
jmp loc_70146
loc_7001D:
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax]
cmp eax, 80h
jge short loc_70057
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax]
mov ecx, eax
lea rax, my_unicase_default_page00
imul rcx, 0Ch
add rax, rcx
mov eax, [rax+4]
mov [rbp+var_30], rax
mov rax, [rbp+var_18]
add rax, 1
mov [rbp+var_18], rax
jmp short loc_700A4
loc_70057:
mov rdi, [rbp+var_10]
mov rdx, [rbp+var_18]
lea rsi, [rbp+var_30]
call my_mb_wc_utf8mb4_no_range
mov [rbp+var_3C], eax
cmp [rbp+var_3C], 0
jg short loc_70086
mov rdi, [rbp+var_18]
mov rsi, [rbp+var_20]
call _strcmp
mov [rbp+var_4], eax
jmp loc_70159
loc_70086:
mov ecx, [rbp+var_3C]
mov rax, [rbp+var_18]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_18], rax
mov rdi, [rbp+var_28]
lea rsi, [rbp+var_30]
call my_tolower_utf8mb4
loc_700A4:
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax]
cmp eax, 80h
jge short loc_700DE
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax]
mov ecx, eax
lea rax, my_unicase_default_page00
imul rcx, 0Ch
add rax, rcx
mov eax, [rax+4]
mov [rbp+var_38], rax
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
jmp short loc_70128
loc_700DE:
mov rdi, [rbp+var_10]
mov rdx, [rbp+var_20]
lea rsi, [rbp+var_38]
call my_mb_wc_utf8mb4_no_range
mov [rbp+var_40], eax
cmp [rbp+var_40], 0
jg short loc_7010A
mov rdi, [rbp+var_18]
mov rsi, [rbp+var_20]
call _strcmp
mov [rbp+var_4], eax
jmp short loc_70159
loc_7010A:
mov ecx, [rbp+var_40]
mov rax, [rbp+var_20]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_20], rax
mov rdi, [rbp+var_28]
lea rsi, [rbp+var_38]
call my_tolower_utf8mb4
loc_70128:
mov rax, [rbp+var_30]
cmp rax, [rbp+var_38]
jz short loc_70141
mov rax, [rbp+var_30]
mov rcx, [rbp+var_38]
sub eax, ecx
mov [rbp+var_4], eax
jmp short loc_70159
loc_70141:
jmp loc_6FFF0
loc_70146:
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_20]
movzx ecx, byte ptr [rcx]
sub eax, ecx
mov [rbp+var_4], eax
loc_70159:
mov eax, [rbp+var_4]
add rsp, 50h
pop rbp
retn
| long long my_strcasecmp_utf8mb4(long long a1, unsigned __int8 *a2, unsigned __int8 *a3)
{
bool v4; // [rsp+Fh] [rbp-41h]
int v5; // [rsp+10h] [rbp-40h]
int v6; // [rsp+14h] [rbp-3Ch]
unsigned long long v7; // [rsp+18h] [rbp-38h] BYREF
unsigned long long v8; // [rsp+20h] [rbp-30h] BYREF
_QWORD *v9; // [rsp+28h] [rbp-28h]
unsigned __int8 *v10; // [rsp+30h] [rbp-20h]
unsigned __int8 *v11; // [rsp+38h] [rbp-18h]
long long v12; // [rsp+40h] [rbp-10h]
v12 = a1;
v11 = a2;
v10 = a3;
v9 = *(_QWORD **)(a1 + 120);
while ( 1 )
{
v4 = 0;
if ( *v11 )
v4 = *v10 != 0;
if ( !v4 )
break;
if ( *v11 >= 0x80u )
{
v6 = my_mb_wc_utf8mb4_no_range(v12, &v8, v11);
if ( v6 <= 0 )
return (unsigned int)strcmp(v11, v10);
v11 += v6;
my_tolower_utf8mb4(v9, &v8);
}
else
{
v8 = my_unicase_default_page00[3 * *v11++ + 1];
}
if ( *v10 >= 0x80u )
{
v5 = my_mb_wc_utf8mb4_no_range(v12, &v7, v10);
if ( v5 <= 0 )
return (unsigned int)strcmp(v11, v10);
v10 += v5;
my_tolower_utf8mb4(v9, &v7);
}
else
{
v7 = my_unicase_default_page00[3 * *v10++ + 1];
}
if ( v8 != v7 )
return (unsigned int)(v8 - v7);
}
return (unsigned int)(*v11 - *v10);
}
| my_strcasecmp_utf8mb4:
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 RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x78]
MOV qword ptr [RBP + -0x28],RAX
LAB_0016fff0:
MOV RAX,qword ptr [RBP + -0x18]
MOVSX ECX,byte ptr [RAX]
XOR EAX,EAX
CMP ECX,0x0
MOV byte ptr [RBP + -0x41],AL
JZ 0x00170011
MOV RAX,qword ptr [RBP + -0x20]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x41],AL
LAB_00170011:
MOV AL,byte ptr [RBP + -0x41]
TEST AL,0x1
JNZ 0x0017001d
JMP 0x00170146
LAB_0017001d:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x80
JGE 0x00170057
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x4684b0]
IMUL RCX,RCX,0xc
ADD RAX,RCX
MOV EAX,dword ptr [RAX + 0x4]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001700a4
LAB_00170057:
MOV RDI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
LEA RSI,[RBP + -0x30]
CALL 0x0016f750
MOV dword ptr [RBP + -0x3c],EAX
CMP dword ptr [RBP + -0x3c],0x0
JG 0x00170086
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x00124460
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00170159
LAB_00170086:
MOV ECX,dword ptr [RBP + -0x3c]
MOV RAX,qword ptr [RBP + -0x18]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
MOV RDI,qword ptr [RBP + -0x28]
LEA RSI,[RBP + -0x30]
CALL 0x0016fb40
LAB_001700a4:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x80
JGE 0x001700de
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x4684b0]
IMUL RCX,RCX,0xc
ADD RAX,RCX
MOV EAX,dword ptr [RAX + 0x4]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
JMP 0x00170128
LAB_001700de:
MOV RDI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x20]
LEA RSI,[RBP + -0x38]
CALL 0x0016f750
MOV dword ptr [RBP + -0x40],EAX
CMP dword ptr [RBP + -0x40],0x0
JG 0x0017010a
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x00124460
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00170159
LAB_0017010a:
MOV ECX,dword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x20]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x28]
LEA RSI,[RBP + -0x38]
CALL 0x0016fb40
LAB_00170128:
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x38]
JZ 0x00170141
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x38]
SUB EAX,ECX
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00170159
LAB_00170141:
JMP 0x0016fff0
LAB_00170146:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x20]
MOVZX ECX,byte ptr [RCX]
SUB EAX,ECX
MOV dword ptr [RBP + -0x4],EAX
LAB_00170159:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x50
POP RBP
RET
|
int my_strcasecmp_utf8mb4(long param_1,byte *param_2,byte *param_3)
{
int iVar1;
bool bVar2;
ulong local_40;
ulong local_38;
int8 local_30;
byte *local_28;
byte *local_20;
long local_18;
local_30 = *(int8 *)(param_1 + 0x78);
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
do {
bVar2 = false;
if (*local_20 != 0) {
bVar2 = *local_28 != 0;
}
if (!bVar2) {
return (uint)*local_20 - (uint)*local_28;
}
if (*local_20 < 0x80) {
local_38 = (ulong)*(uint *)(my_unicase_default_page00 + (ulong)*local_20 * 0xc + 4);
local_20 = local_20 + 1;
}
else {
iVar1 = my_mb_wc_utf8mb4_no_range(local_18,&local_38,local_20);
if (iVar1 < 1) {
iVar1 = strcmp((char *)local_20,(char *)local_28);
return iVar1;
}
local_20 = local_20 + iVar1;
my_tolower_utf8mb4(local_30,&local_38);
}
if (*local_28 < 0x80) {
local_40 = (ulong)*(uint *)(my_unicase_default_page00 + (ulong)*local_28 * 0xc + 4);
local_28 = local_28 + 1;
}
else {
iVar1 = my_mb_wc_utf8mb4_no_range(local_18,&local_40,local_28);
if (iVar1 < 1) {
iVar1 = strcmp((char *)local_20,(char *)local_28);
return iVar1;
}
local_28 = local_28 + iVar1;
my_tolower_utf8mb4(local_30,&local_40);
}
} while (local_38 == local_40);
return (int)local_38 - (int)local_40;
}
| |
27,078 | stbi_load_16_from_callbacks | llama.cpp/examples/llava/../../common/stb_image.h | STBIDEF stbi_us *stbi_load_16_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels)
{
stbi__context s;
stbi__start_callbacks(&s, (stbi_io_callbacks *)clbk, user);
return stbi__load_and_postprocess_16bit(&s,x,y,channels_in_file,desired_channels);
} | O3 | c | stbi_load_16_from_callbacks:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe0, %rsp
movl %r9d, %ebx
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq 0x10(%rdi), %rax
leaq 0x38(%rsp), %rcx
movq %rax, -0x18(%rcx)
movups (%rdi), %xmm0
movups %xmm0, -0x28(%rcx)
movq %rsi, -0x10(%rcx)
movabsq $0x8000000001, %rax # imm = 0x8000000001
movq %rax, -0x8(%rcx)
movl $0x0, 0x80(%rcx)
movq %rcx, 0x98(%rcx)
movq %rcx, 0x88(%rcx)
movq %rsp, %r13
movq %r13, %rdi
callq 0x26801
movq 0xc8(%r13), %rax
movq %rax, 0xd8(%r13)
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
movl %ebx, %r8d
callq 0x18a6e
addq $0xe0, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
| stbi_load_16_from_callbacks:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0E0h
mov ebx, r9d
mov r14, r8
mov r15, rcx
mov r12, rdx
mov rax, [rdi+10h]
lea rcx, [rsp+108h+var_D0]
mov [rcx-18h], rax
movups xmm0, xmmword ptr [rdi]
movups xmmword ptr [rcx-28h], xmm0
mov [rcx-10h], rsi
mov rax, 8000000001h
mov [rcx-8], rax
mov dword ptr [rcx+80h], 0
mov [rcx+98h], rcx
mov [rcx+88h], rcx
mov r13, rsp
mov rdi, r13
call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *)
mov rax, [r13+0C8h]
mov [r13+0D8h], rax
mov rdi, r13
mov rsi, r12
mov rdx, r15
mov rcx, r14
mov r8d, ebx
call _ZL32stbi__load_and_postprocess_16bitP13stbi__contextPiS1_S1_i; stbi__load_and_postprocess_16bit(stbi__context *,int *,int *,int *,int)
add rsp, 0E0h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
| _WORD * stbi_load_16_from_callbacks(long long a1, long long a2, int *a3, int *a4, int *a5, unsigned int a6)
{
_OWORD v11[2]; // [rsp+0h] [rbp-108h] BYREF
long long v12; // [rsp+20h] [rbp-E8h]
long long v13; // [rsp+28h] [rbp-E0h]
long long v14; // [rsp+30h] [rbp-D8h]
_BYTE v15[128]; // [rsp+38h] [rbp-D0h] BYREF
int v16; // [rsp+B8h] [rbp-50h]
_BYTE *v17; // [rsp+C0h] [rbp-48h]
long long v18; // [rsp+C8h] [rbp-40h]
_BYTE *v19; // [rsp+D0h] [rbp-38h]
long long v20; // [rsp+D8h] [rbp-30h]
v12 = *(_QWORD *)(a1 + 16);
v11[1] = *(_OWORD *)a1;
v13 = a2;
v14 = 0x8000000001LL;
v16 = 0;
v19 = v15;
v17 = v15;
stbi__refill_buffer(v11);
v20 = v18;
return stbi__load_and_postprocess_16bit((long long)v11, a3, a4, a5, a6);
}
| stbi_load_16_from_callbacks:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xe0
MOV EBX,R9D
MOV R14,R8
MOV R15,RCX
MOV R12,RDX
MOV RAX,qword ptr [RDI + 0x10]
LEA RCX,[RSP + 0x38]
MOV qword ptr [RCX + -0x18],RAX
MOVUPS XMM0,xmmword ptr [RDI]
MOVUPS xmmword ptr [RCX + -0x28],XMM0
MOV qword ptr [RCX + -0x10],RSI
MOV RAX,0x8000000001
MOV qword ptr [RCX + -0x8],RAX
MOV dword ptr [RCX + 0x80],0x0
MOV qword ptr [RCX + 0x98],RCX
MOV qword ptr [RCX + 0x88],RCX
MOV R13,RSP
MOV RDI,R13
CALL 0x00126801
MOV RAX,qword ptr [R13 + 0xc8]
MOV qword ptr [R13 + 0xd8],RAX
MOV RDI,R13
MOV RSI,R12
MOV RDX,R15
MOV RCX,R14
MOV R8D,EBX
CALL 0x00118a6e
ADD RSP,0xe0
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
void stbi_load_16_from_callbacks
(int8 *param_1,int8 param_2,int *param_3,int *param_4,int *param_5,
int param_6)
{
stbi__context asStack_108 [16];
int8 local_f8;
int8 uStack_f0;
int8 local_e8;
int8 local_e0;
int8 local_d8;
int1 local_d0 [128];
int4 local_50;
int1 *local_48;
int8 local_40;
int1 *local_38;
int8 local_30;
local_e8 = param_1[2];
local_48 = local_d0;
local_f8 = *param_1;
uStack_f0 = param_1[1];
local_d8 = 0x8000000001;
local_50 = 0;
local_e0 = param_2;
local_38 = local_48;
stbi__refill_buffer(asStack_108);
local_30 = local_40;
stbi__load_and_postprocess_16bit(asStack_108,param_3,param_4,param_5,param_6);
return;
}
| |
27,079 | eval_num_suffix_ull | eloqsql/mysys/my_getopt.c | static ulonglong eval_num_suffix_ull(char *argument,
int *error, char *option_name)
{
char *endchar;
ulonglong num;
DBUG_ENTER("eval_num_suffix_ull");
if (*argument == '-')
{
my_getopt_error_reporter(ERROR_LEVEL,
"Incorrect unsigned value: '%s' for %s",
argument, option_name);
*error= 1;
DBUG_RETURN(0);
}
*error= 0;
errno= 0;
num= strtoull(argument, &endchar, 10);
if (errno == ERANGE)
{
my_getopt_error_reporter(ERROR_LEVEL,
"Incorrect integer value: '%s' for %s",
argument, option_name);
*error= 1;
DBUG_RETURN(0);
}
num*= eval_num_suffix(endchar, error);
if (*error)
my_getopt_error_reporter(ERROR_LEVEL,
"Unknown suffix '%c' used for variable '%s' (value '%s')",
*endchar, option_name, argument);
DBUG_RETURN(num);
} | O0 | c | eval_num_suffix_ull:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0x2ce37
leaq 0x1ac829(%rip), %rax # 0x1d9630
movq (%rax), %r8
movq -0x10(%rbp), %rdx
movq -0x20(%rbp), %rcx
xorl %edi, %edi
leaq 0x56516(%rip), %rsi # 0x83331
movb $0x0, %al
callq *%r8
movq -0x18(%rbp), %rax
movl $0x1, (%rax)
movq $0x0, -0x8(%rbp)
jmp 0x2cef0
movq -0x18(%rbp), %rax
movl $0x0, (%rax)
callq 0x25040
movl $0x0, (%rax)
movq -0x10(%rbp), %rdi
leaq -0x28(%rbp), %rsi
movl $0xa, %edx
callq 0x25450
movq %rax, -0x30(%rbp)
callq 0x25040
cmpl $0x22, (%rax)
jne 0x2cea0
leaq 0x1ac7bd(%rip), %rax # 0x1d9630
movq (%rax), %r8
movq -0x10(%rbp), %rdx
movq -0x20(%rbp), %rcx
xorl %edi, %edi
leaq 0x564d0(%rip), %rsi # 0x83357
movb $0x0, %al
callq *%r8
movq -0x18(%rbp), %rax
movl $0x1, (%rax)
movq $0x0, -0x8(%rbp)
jmp 0x2cef0
movq -0x28(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x2cd30
imulq -0x30(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
je 0x2cee6
leaq 0x1ac76a(%rip), %rax # 0x1d9630
movq (%rax), %r9
movq -0x28(%rbp), %rax
movsbl (%rax), %edx
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %r8
xorl %edi, %edi
leaq 0x5649b(%rip), %rsi # 0x8337c
movb $0x0, %al
callq *%r9
jmp 0x2cee8
movq -0x30(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| eval_num_suffix_ull:
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]
movsx eax, byte ptr [rax]
cmp eax, 2Dh ; '-'
jnz short loc_2CE37
lea rax, my_getopt_error_reporter
mov r8, [rax]
mov rdx, [rbp+var_10]
mov rcx, [rbp+var_20]
xor edi, edi
lea rsi, aIncorrectUnsig; "Incorrect unsigned value: '%s' for %s"
mov al, 0
call r8
mov rax, [rbp+var_18]
mov dword ptr [rax], 1
mov [rbp+var_8], 0
jmp loc_2CEF0
loc_2CE37:
mov rax, [rbp+var_18]
mov dword ptr [rax], 0
call ___errno_location
mov dword ptr [rax], 0
mov rdi, [rbp+var_10]
lea rsi, [rbp+var_28]
mov edx, 0Ah
call ___isoc23_strtoul
mov [rbp+var_30], rax
call ___errno_location
cmp dword ptr [rax], 22h ; '"'
jnz short loc_2CEA0
lea rax, my_getopt_error_reporter
mov r8, [rax]
mov rdx, [rbp+var_10]
mov rcx, [rbp+var_20]
xor edi, edi
lea rsi, aIncorrectInteg_0; "Incorrect integer value: '%s' for %s"
mov al, 0
call r8
mov rax, [rbp+var_18]
mov dword ptr [rax], 1
mov [rbp+var_8], 0
jmp short loc_2CEF0
loc_2CEA0:
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_18]
call eval_num_suffix
imul rax, [rbp+var_30]
mov [rbp+var_30], rax
mov rax, [rbp+var_18]
cmp dword ptr [rax], 0
jz short loc_2CEE6
lea rax, my_getopt_error_reporter
mov r9, [rax]
mov rax, [rbp+var_28]
movsx edx, byte ptr [rax]
mov rcx, [rbp+var_20]
mov r8, [rbp+var_10]
xor edi, edi
lea rsi, aUnknownSuffixC_0; "Unknown suffix '%c' used for variable '"...
mov al, 0
call r9
loc_2CEE6:
jmp short $+2
loc_2CEE8:
mov rax, [rbp+var_30]
mov [rbp+var_8], rax
loc_2CEF0:
mov rax, [rbp+var_8]
add rsp, 30h
pop rbp
retn
| long long eval_num_suffix_ull(const char *a1, _DWORD *a2, const char *a3)
{
long long v4; // [rsp+0h] [rbp-30h]
long long v5; // [rsp+0h] [rbp-30h]
_BYTE *v6; // [rsp+8h] [rbp-28h] BYREF
const char *v7; // [rsp+10h] [rbp-20h]
_DWORD *v8; // [rsp+18h] [rbp-18h]
const char *v9; // [rsp+20h] [rbp-10h]
v9 = a1;
v8 = a2;
v7 = a3;
if ( *a1 == 45 )
{
my_getopt_error_reporter(0, (long long)"Incorrect unsigned value: '%s' for %s", v9, v7);
*v8 = 1;
return 0LL;
}
else
{
*v8 = 0;
*(_DWORD *)__errno_location() = 0;
v4 = __isoc23_strtoul(v9, &v6, 10LL);
if ( *(_DWORD *)__errno_location() == 34 )
{
my_getopt_error_reporter(0, (long long)"Incorrect integer value: '%s' for %s", v9, v7);
*v8 = 1;
return 0LL;
}
else
{
v5 = v4 * eval_num_suffix(v6, v8);
if ( *v8 )
my_getopt_error_reporter(
0,
(long long)"Unknown suffix '%c' used for variable '%s' (value '%s')",
(unsigned int)(char)*v6,
v7,
v9);
return v5;
}
}
}
| eval_num_suffix_ull:
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]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x2d
JNZ 0x0012ce37
LEA RAX,[0x2d9630]
MOV R8,qword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x20]
XOR EDI,EDI
LEA RSI,[0x183331]
MOV AL,0x0
CALL R8
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX],0x1
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0012cef0
LAB_0012ce37:
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX],0x0
CALL 0x00125040
MOV dword ptr [RAX],0x0
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[RBP + -0x28]
MOV EDX,0xa
CALL 0x00125450
MOV qword ptr [RBP + -0x30],RAX
CALL 0x00125040
CMP dword ptr [RAX],0x22
JNZ 0x0012cea0
LEA RAX,[0x2d9630]
MOV R8,qword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x20]
XOR EDI,EDI
LEA RSI,[0x183357]
MOV AL,0x0
CALL R8
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX],0x1
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0012cef0
LAB_0012cea0:
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x0012cd30
IMUL RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x18]
CMP dword ptr [RAX],0x0
JZ 0x0012cee6
LEA RAX,[0x2d9630]
MOV R9,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x28]
MOVSX EDX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x20]
MOV R8,qword ptr [RBP + -0x10]
XOR EDI,EDI
LEA RSI,[0x18337c]
MOV AL,0x0
CALL R9
LAB_0012cee6:
JMP 0x0012cee8
LAB_0012cee8:
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x8],RAX
LAB_0012cef0:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
long eval_num_suffix_ull(char *param_1,int *param_2,int8 param_3)
{
int *piVar1;
long lVar2;
char *local_30;
int8 local_28;
int *local_20;
char *local_18;
long local_10;
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
if (*param_1 == '-') {
(*(code *)my_getopt_error_reporter)(0,"Incorrect unsigned value: \'%s\' for %s",param_1,param_3)
;
*local_20 = 1;
local_10 = 0;
}
else {
*param_2 = 0;
piVar1 = __errno_location();
*piVar1 = 0;
lVar2 = __isoc23_strtoul(local_18,&local_30,10);
piVar1 = __errno_location();
if (*piVar1 == 0x22) {
(*(code *)my_getopt_error_reporter)
(0,"Incorrect integer value: \'%s\' for %s",local_18,local_28);
*local_20 = 1;
local_10 = 0;
}
else {
local_10 = eval_num_suffix(local_30,local_20);
local_10 = local_10 * lVar2;
if (*local_20 != 0) {
(*(code *)my_getopt_error_reporter)
(0,"Unknown suffix \'%c\' used for variable \'%s\' (value \'%s\')",(int)*local_30,
local_28,local_18);
}
}
}
return local_10;
}
| |
27,080 | heapsortx | bluesky950520[P]quickjs/cutils.c | static void heapsortx(void *base, size_t nmemb, size_t size, cmp_f cmp, void *opaque)
{
uint8_t *basep = (uint8_t *)base;
size_t i, n, c, r;
exchange_f swap = exchange_func(base, size);
if (nmemb > 1) {
i = (nmemb / 2) * size;
n = nmemb * size;
while (i > 0) {
i -= size;
for (r = i; (c = r * 2 + size) < n; r = c) {
if (c < n - size && cmp(basep + c, basep + c + size, opaque) <= 0)
c += size;
if (cmp(basep + r, basep + c, opaque) > 0)
break;
swap(basep + r, basep + c, size);
}
}
for (i = n - size; i > 0; i -= size) {
swap(basep, basep + i, size);
for (r = 0; (c = r * 2 + size) < i; r = c) {
if (c < i - size && cmp(basep + c, basep + c + size, opaque) <= 0)
c += size;
if (cmp(basep + r, basep + c, opaque) > 0)
break;
swap(basep + r, basep + c, size);
}
}
}
} | O0 | c | heapsortx:
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x30(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x50(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x26cb0
movq %rax, (%rsp)
cmpq $0x1, 0x48(%rsp)
jbe 0x2701d
movq 0x48(%rsp), %rax
shrq %rax
imulq 0x40(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x48(%rsp), %rax
imulq 0x40(%rsp), %rax
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x20(%rsp)
jbe 0x26f05
movq 0x40(%rsp), %rcx
movq 0x20(%rsp), %rax
subq %rcx, %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
shlq %rax
addq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
cmpq 0x18(%rsp), %rax
jae 0x26f00
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
subq 0x40(%rsp), %rcx
cmpq %rcx, %rax
jae 0x26eab
movq 0x38(%rsp), %rax
movq 0x28(%rsp), %rdi
addq 0x10(%rsp), %rdi
movq 0x28(%rsp), %rsi
addq 0x10(%rsp), %rsi
addq 0x40(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq *%rax
cmpl $0x0, %eax
jg 0x26eab
movq 0x40(%rsp), %rax
addq 0x10(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x38(%rsp), %rax
movq 0x28(%rsp), %rdi
addq 0x8(%rsp), %rdi
movq 0x28(%rsp), %rsi
addq 0x10(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq *%rax
cmpl $0x0, %eax
jle 0x26ed2
jmp 0x26f00
movq (%rsp), %rax
movq 0x28(%rsp), %rdi
addq 0x8(%rsp), %rdi
movq 0x28(%rsp), %rsi
addq 0x10(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq *%rax
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
jmp 0x26e41
jmp 0x26e19
movq 0x18(%rsp), %rax
subq 0x40(%rsp), %rax
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
jbe 0x2701b
movq (%rsp), %rax
movq 0x28(%rsp), %rdi
movq 0x28(%rsp), %rsi
addq 0x20(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq *%rax
movq $0x0, 0x8(%rsp)
movq 0x8(%rsp), %rax
shlq %rax
addq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
cmpq 0x20(%rsp), %rax
jae 0x27002
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
subq 0x40(%rsp), %rcx
cmpq %rcx, %rax
jae 0x26fad
movq 0x38(%rsp), %rax
movq 0x28(%rsp), %rdi
addq 0x10(%rsp), %rdi
movq 0x28(%rsp), %rsi
addq 0x10(%rsp), %rsi
addq 0x40(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq *%rax
cmpl $0x0, %eax
jg 0x26fad
movq 0x40(%rsp), %rax
addq 0x10(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x38(%rsp), %rax
movq 0x28(%rsp), %rdi
addq 0x8(%rsp), %rdi
movq 0x28(%rsp), %rsi
addq 0x10(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq *%rax
cmpl $0x0, %eax
jle 0x26fd4
jmp 0x27002
movq (%rsp), %rax
movq 0x28(%rsp), %rdi
addq 0x8(%rsp), %rdi
movq 0x28(%rsp), %rsi
addq 0x10(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq *%rax
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
jmp 0x26f43
jmp 0x27004
movq 0x40(%rsp), %rcx
movq 0x20(%rsp), %rax
subq %rcx, %rax
movq %rax, 0x20(%rsp)
jmp 0x26f14
jmp 0x2701d
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)
| heapsortx:
sub rsp, 58h
mov [rsp+58h+var_8], rdi
mov [rsp+58h+var_10], rsi
mov [rsp+58h+var_18], rdx
mov [rsp+58h+var_20], rcx
mov [rsp+58h+var_28], r8
mov rax, [rsp+58h+var_8]
mov [rsp+58h+var_30], rax
mov rdi, [rsp+58h+var_8]
mov rsi, [rsp+58h+var_18]
call exchange_func
mov [rsp+58h+var_58], rax
cmp [rsp+58h+var_10], 1
jbe loc_2701D
mov rax, [rsp+58h+var_10]
shr rax, 1
imul rax, [rsp+58h+var_18]
mov [rsp+58h+var_38], rax
mov rax, [rsp+58h+var_10]
imul rax, [rsp+58h+var_18]
mov [rsp+58h+var_40], rax
loc_26E19:
cmp [rsp+58h+var_38], 0
jbe loc_26F05
mov rcx, [rsp+58h+var_18]
mov rax, [rsp+58h+var_38]
sub rax, rcx
mov [rsp+58h+var_38], rax
mov rax, [rsp+58h+var_38]
mov [rsp+58h+var_50], rax
loc_26E41:
mov rax, [rsp+58h+var_50]
shl rax, 1
add rax, [rsp+58h+var_18]
mov [rsp+58h+var_48], rax
cmp rax, [rsp+58h+var_40]
jnb loc_26F00
mov rax, [rsp+58h+var_48]
mov rcx, [rsp+58h+var_40]
sub rcx, [rsp+58h+var_18]
cmp rax, rcx
jnb short loc_26EAB
mov rax, [rsp+58h+var_20]
mov rdi, [rsp+58h+var_30]
add rdi, [rsp+58h+var_48]
mov rsi, [rsp+58h+var_30]
add rsi, [rsp+58h+var_48]
add rsi, [rsp+58h+var_18]
mov rdx, [rsp+58h+var_28]
call rax
cmp eax, 0
jg short loc_26EAB
mov rax, [rsp+58h+var_18]
add rax, [rsp+58h+var_48]
mov [rsp+58h+var_48], rax
loc_26EAB:
mov rax, [rsp+58h+var_20]
mov rdi, [rsp+58h+var_30]
add rdi, [rsp+58h+var_50]
mov rsi, [rsp+58h+var_30]
add rsi, [rsp+58h+var_48]
mov rdx, [rsp+58h+var_28]
call rax
cmp eax, 0
jle short loc_26ED2
jmp short loc_26F00
loc_26ED2:
mov rax, [rsp+58h+var_58]
mov rdi, [rsp+58h+var_30]
add rdi, [rsp+58h+var_50]
mov rsi, [rsp+58h+var_30]
add rsi, [rsp+58h+var_48]
mov rdx, [rsp+58h+var_18]
call rax
mov rax, [rsp+58h+var_48]
mov [rsp+58h+var_50], rax
jmp loc_26E41
loc_26F00:
jmp loc_26E19
loc_26F05:
mov rax, [rsp+58h+var_40]
sub rax, [rsp+58h+var_18]
mov [rsp+58h+var_38], rax
loc_26F14:
cmp [rsp+58h+var_38], 0
jbe loc_2701B
mov rax, [rsp+58h+var_58]
mov rdi, [rsp+58h+var_30]
mov rsi, [rsp+58h+var_30]
add rsi, [rsp+58h+var_38]
mov rdx, [rsp+58h+var_18]
call rax
mov [rsp+58h+var_50], 0
loc_26F43:
mov rax, [rsp+58h+var_50]
shl rax, 1
add rax, [rsp+58h+var_18]
mov [rsp+58h+var_48], rax
cmp rax, [rsp+58h+var_38]
jnb loc_27002
mov rax, [rsp+58h+var_48]
mov rcx, [rsp+58h+var_38]
sub rcx, [rsp+58h+var_18]
cmp rax, rcx
jnb short loc_26FAD
mov rax, [rsp+58h+var_20]
mov rdi, [rsp+58h+var_30]
add rdi, [rsp+58h+var_48]
mov rsi, [rsp+58h+var_30]
add rsi, [rsp+58h+var_48]
add rsi, [rsp+58h+var_18]
mov rdx, [rsp+58h+var_28]
call rax
cmp eax, 0
jg short loc_26FAD
mov rax, [rsp+58h+var_18]
add rax, [rsp+58h+var_48]
mov [rsp+58h+var_48], rax
loc_26FAD:
mov rax, [rsp+58h+var_20]
mov rdi, [rsp+58h+var_30]
add rdi, [rsp+58h+var_50]
mov rsi, [rsp+58h+var_30]
add rsi, [rsp+58h+var_48]
mov rdx, [rsp+58h+var_28]
call rax
cmp eax, 0
jle short loc_26FD4
jmp short loc_27002
loc_26FD4:
mov rax, [rsp+58h+var_58]
mov rdi, [rsp+58h+var_30]
add rdi, [rsp+58h+var_50]
mov rsi, [rsp+58h+var_30]
add rsi, [rsp+58h+var_48]
mov rdx, [rsp+58h+var_18]
call rax
mov rax, [rsp+58h+var_48]
mov [rsp+58h+var_50], rax
jmp loc_26F43
loc_27002:
jmp short $+2
loc_27004:
mov rcx, [rsp+58h+var_18]
mov rax, [rsp+58h+var_38]
sub rax, rcx
mov [rsp+58h+var_38], rax
jmp loc_26F14
loc_2701B:
jmp short $+2
loc_2701D:
add rsp, 58h
retn
| long long ( * heapsortx(
long long a1,
unsigned long long a2,
long long a3,
int ( *a4)(unsigned long long, unsigned long long, long long),
long long a5))()
{
long long ( *result)(); // rax
long long ( *v6)(); // [rsp+0h] [rbp-58h]
unsigned long long i; // [rsp+8h] [rbp-50h]
unsigned long long k; // [rsp+8h] [rbp-50h]
unsigned long long v9; // [rsp+10h] [rbp-48h]
unsigned long long v10; // [rsp+10h] [rbp-48h]
unsigned long long v11; // [rsp+18h] [rbp-40h]
unsigned long long v12; // [rsp+20h] [rbp-38h]
unsigned long long j; // [rsp+20h] [rbp-38h]
result = exchange_func(a1, a3);
v6 = result;
if ( a2 > 1 )
{
v12 = a3 * (a2 >> 1);
v11 = a3 * a2;
while ( v12 )
{
v12 -= a3;
for ( i = v12; ; i = v9 )
{
v9 = a3 + 2 * i;
if ( v9 >= v11 )
break;
if ( v9 < v11 - a3 && a4(v9 + a1, a3 + v9 + a1, a5) <= 0 )
v9 += a3;
if ( a4(i + a1, v9 + a1, a5) > 0 )
break;
((void ( *)(unsigned long long, unsigned long long, long long))v6)(i + a1, v9 + a1, a3);
}
}
result = (long long ( *)())(v11 - a3);
for ( j = v11 - a3; j; j -= a3 )
{
((void ( *)(long long, unsigned long long, long long))v6)(a1, j + a1, a3);
for ( k = 0LL; ; k = v10 )
{
v10 = a3 + 2 * k;
if ( v10 >= j )
break;
if ( v10 < j - a3 && a4(v10 + a1, a3 + v10 + a1, a5) <= 0 )
v10 += a3;
if ( a4(k + a1, v10 + a1, a5) > 0 )
break;
((void ( *)(unsigned long long, unsigned long long, long long))v6)(k + a1, v10 + a1, a3);
}
result = (long long ( *)())(j - a3);
}
}
return result;
}
| heapsortx:
SUB RSP,0x58
MOV qword ptr [RSP + 0x50],RDI
MOV qword ptr [RSP + 0x48],RSI
MOV qword ptr [RSP + 0x40],RDX
MOV qword ptr [RSP + 0x38],RCX
MOV qword ptr [RSP + 0x30],R8
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x28],RAX
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x40]
CALL 0x00126cb0
MOV qword ptr [RSP],RAX
CMP qword ptr [RSP + 0x48],0x1
JBE 0x0012701d
MOV RAX,qword ptr [RSP + 0x48]
SHR RAX,0x1
IMUL RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x48]
IMUL RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x18],RAX
LAB_00126e19:
CMP qword ptr [RSP + 0x20],0x0
JBE 0x00126f05
MOV RCX,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RSP + 0x20]
SUB RAX,RCX
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x8],RAX
LAB_00126e41:
MOV RAX,qword ptr [RSP + 0x8]
SHL RAX,0x1
ADD RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x10],RAX
CMP RAX,qword ptr [RSP + 0x18]
JNC 0x00126f00
MOV RAX,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x18]
SUB RCX,qword ptr [RSP + 0x40]
CMP RAX,RCX
JNC 0x00126eab
MOV RAX,qword ptr [RSP + 0x38]
MOV RDI,qword ptr [RSP + 0x28]
ADD RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x28]
ADD RSI,qword ptr [RSP + 0x10]
ADD RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x30]
CALL RAX
CMP EAX,0x0
JG 0x00126eab
MOV RAX,qword ptr [RSP + 0x40]
ADD RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x10],RAX
LAB_00126eab:
MOV RAX,qword ptr [RSP + 0x38]
MOV RDI,qword ptr [RSP + 0x28]
ADD RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x28]
ADD RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x30]
CALL RAX
CMP EAX,0x0
JLE 0x00126ed2
JMP 0x00126f00
LAB_00126ed2:
MOV RAX,qword ptr [RSP]
MOV RDI,qword ptr [RSP + 0x28]
ADD RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x28]
ADD RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x40]
CALL RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x8],RAX
JMP 0x00126e41
LAB_00126f00:
JMP 0x00126e19
LAB_00126f05:
MOV RAX,qword ptr [RSP + 0x18]
SUB RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x20],RAX
LAB_00126f14:
CMP qword ptr [RSP + 0x20],0x0
JBE 0x0012701b
MOV RAX,qword ptr [RSP]
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x28]
ADD RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x40]
CALL RAX
MOV qword ptr [RSP + 0x8],0x0
LAB_00126f43:
MOV RAX,qword ptr [RSP + 0x8]
SHL RAX,0x1
ADD RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x10],RAX
CMP RAX,qword ptr [RSP + 0x20]
JNC 0x00127002
MOV RAX,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x20]
SUB RCX,qword ptr [RSP + 0x40]
CMP RAX,RCX
JNC 0x00126fad
MOV RAX,qword ptr [RSP + 0x38]
MOV RDI,qword ptr [RSP + 0x28]
ADD RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x28]
ADD RSI,qword ptr [RSP + 0x10]
ADD RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x30]
CALL RAX
CMP EAX,0x0
JG 0x00126fad
MOV RAX,qword ptr [RSP + 0x40]
ADD RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x10],RAX
LAB_00126fad:
MOV RAX,qword ptr [RSP + 0x38]
MOV RDI,qword ptr [RSP + 0x28]
ADD RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x28]
ADD RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x30]
CALL RAX
CMP EAX,0x0
JLE 0x00126fd4
JMP 0x00127002
LAB_00126fd4:
MOV RAX,qword ptr [RSP]
MOV RDI,qword ptr [RSP + 0x28]
ADD RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x28]
ADD RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x40]
CALL RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x8],RAX
JMP 0x00126f43
LAB_00127002:
JMP 0x00127004
LAB_00127004:
MOV RCX,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RSP + 0x20]
SUB RAX,RCX
MOV qword ptr [RSP + 0x20],RAX
JMP 0x00126f14
LAB_0012701b:
JMP 0x0012701d
LAB_0012701d:
ADD RSP,0x58
RET
|
void heapsortx(long param_1,ulong param_2,long param_3,code *param_4,int8 param_5)
{
int iVar1;
code *pcVar2;
ulong local_50;
ulong local_48;
ulong local_38;
pcVar2 = (code *)exchange_func(param_1,param_3);
if (1 < param_2) {
local_38 = (param_2 >> 1) * param_3;
param_2 = param_2 * param_3;
LAB_00126e19:
if (local_38 != 0) {
local_38 = local_38 - param_3;
local_50 = local_38;
while (local_48 = local_50 * 2 + param_3, local_48 < param_2) {
if ((local_48 < param_2 - param_3) &&
(iVar1 = (*param_4)(param_1 + local_48,param_1 + local_48 + param_3,param_5), iVar1 < 1))
{
local_48 = param_3 + local_48;
}
iVar1 = (*param_4)(param_1 + local_50,param_1 + local_48,param_5);
if (0 < iVar1) break;
(*pcVar2)(param_1 + local_50,param_1 + local_48,param_3);
local_50 = local_48;
}
goto LAB_00126e19;
}
for (local_38 = param_2 - param_3; local_38 != 0; local_38 = local_38 - param_3) {
(*pcVar2)(param_1,param_1 + local_38,param_3);
local_50 = 0;
while (local_48 = local_50 * 2 + param_3, local_48 < local_38) {
if ((local_48 < local_38 - param_3) &&
(iVar1 = (*param_4)(param_1 + local_48,param_1 + local_48 + param_3,param_5), iVar1 < 1))
{
local_48 = param_3 + local_48;
}
iVar1 = (*param_4)(param_1 + local_50,param_1 + local_48,param_5);
if (0 < iVar1) break;
(*pcVar2)(param_1 + local_50,param_1 + local_48,param_3);
local_50 = local_48;
}
}
}
return;
}
| |
27,081 | ma_tls_write | eloqsql/libmariadb/libmariadb/secure/openssl.c | ssize_t ma_tls_write(MARIADB_TLS *ctls, const uchar* buffer, size_t length)
{
int rc;
MARIADB_PVIO *pvio= ctls->pvio;
while ((rc= SSL_write((SSL *)ctls->ssl, (void *)buffer, (int)length)) <= 0)
{
int error= SSL_get_error((SSL *)ctls->ssl, rc);
if (error != SSL_ERROR_WANT_WRITE)
break;
if (pvio->methods->wait_io_or_timeout(pvio, TRUE, pvio->mysql->options.write_timeout) < 1)
break;
}
if (rc <= 0)
{
MYSQL *mysql= SSL_get_app_data(ctls->ssl);
ma_tls_set_error(mysql);
}
return rc;
} | O0 | c | ma_tls_write:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rax
movl %eax, %edx
callq 0x38550
movl %eax, -0x1c(%rbp)
cmpl $0x0, %eax
jg 0x691b8
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
movl -0x1c(%rbp), %esi
callq 0x38be0
movl %eax, -0x2c(%rbp)
cmpl $0x3, -0x2c(%rbp)
je 0x6918a
jmp 0x691b8
movq -0x28(%rbp), %rax
movq 0x48(%rax), %rax
movq 0x30(%rax), %rax
movq -0x28(%rbp), %rdi
movq -0x28(%rbp), %rcx
movq 0x40(%rcx), %rcx
movl 0x398(%rcx), %edx
movl $0x1, %esi
callq *%rax
cmpl $0x1, %eax
jge 0x691b6
jmp 0x691b8
jmp 0x69150
cmpl $0x0, -0x1c(%rbp)
jg 0x691da
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
xorl %esi, %esi
callq 0x38320
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
callq 0x68da0
movslq -0x1c(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| ma_tls_write:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_8]
mov rax, [rax+8]
mov [rbp+var_28], rax
loc_69150:
mov rax, [rbp+var_8]
mov rdi, [rax+10h]
mov rsi, [rbp+var_10]
mov rax, [rbp+var_18]
mov edx, eax
call _SSL_write
mov [rbp+var_1C], eax
cmp eax, 0
jg short loc_691B8
mov rax, [rbp+var_8]
mov rdi, [rax+10h]
mov esi, [rbp+var_1C]
call _SSL_get_error
mov [rbp+var_2C], eax
cmp [rbp+var_2C], 3
jz short loc_6918A
jmp short loc_691B8
loc_6918A:
mov rax, [rbp+var_28]
mov rax, [rax+48h]
mov rax, [rax+30h]
mov rdi, [rbp+var_28]
mov rcx, [rbp+var_28]
mov rcx, [rcx+40h]
mov edx, [rcx+398h]
mov esi, 1
call rax
cmp eax, 1
jge short loc_691B6
jmp short loc_691B8
loc_691B6:
jmp short loc_69150
loc_691B8:
cmp [rbp+var_1C], 0
jg short loc_691DA
mov rax, [rbp+var_8]
mov rdi, [rax+10h]
xor esi, esi
call _SSL_get_ex_data
mov [rbp+var_38], rax
mov rdi, [rbp+var_38]
call ma_tls_set_error
loc_691DA:
movsxd rax, [rbp+var_1C]
add rsp, 40h
pop rbp
retn
| long long ma_tls_write(long long a1, long long a2, unsigned int a3)
{
long long *v4; // [rsp+8h] [rbp-38h]
long long v5; // [rsp+18h] [rbp-28h]
int v6; // [rsp+24h] [rbp-1Ch]
v5 = *(_QWORD *)(a1 + 8);
do
v6 = SSL_write(*(_QWORD *)(a1 + 16), a2, a3);
while ( v6 <= 0
&& (unsigned int)SSL_get_error(*(_QWORD *)(a1 + 16), (unsigned int)v6) == 3
&& (*(int ( **)(long long, long long, _QWORD))(*(_QWORD *)(v5 + 72) + 48LL))(
v5,
1LL,
*(unsigned int *)(*(_QWORD *)(v5 + 64) + 920LL)) >= 1 );
if ( v6 <= 0 )
{
v4 = (long long *)SSL_get_ex_data(*(_QWORD *)(a1 + 16), 0LL);
ma_tls_set_error(v4);
}
return v6;
}
| ma_tls_write:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
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 + 0x8]
MOV qword ptr [RBP + -0x28],RAX
LAB_00169150:
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x10]
MOV RSI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x18]
MOV EDX,EAX
CALL 0x00138550
MOV dword ptr [RBP + -0x1c],EAX
CMP EAX,0x0
JG 0x001691b8
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x10]
MOV ESI,dword ptr [RBP + -0x1c]
CALL 0x00138be0
MOV dword ptr [RBP + -0x2c],EAX
CMP dword ptr [RBP + -0x2c],0x3
JZ 0x0016918a
JMP 0x001691b8
LAB_0016918a:
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x48]
MOV RAX,qword ptr [RAX + 0x30]
MOV RDI,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RCX + 0x40]
MOV EDX,dword ptr [RCX + 0x398]
MOV ESI,0x1
CALL RAX
CMP EAX,0x1
JGE 0x001691b6
JMP 0x001691b8
LAB_001691b6:
JMP 0x00169150
LAB_001691b8:
CMP dword ptr [RBP + -0x1c],0x0
JG 0x001691da
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x10]
XOR ESI,ESI
CALL 0x00138320
MOV qword ptr [RBP + -0x38],RAX
MOV RDI,qword ptr [RBP + -0x38]
CALL 0x00168da0
LAB_001691da:
MOVSXD RAX,dword ptr [RBP + -0x1c]
ADD RSP,0x40
POP RBP
RET
|
long ma_tls_write(long param_1,void *param_2,int param_3)
{
long lVar1;
int ret_code;
int iVar2;
void *pvVar3;
lVar1 = *(long *)(param_1 + 8);
do {
ret_code = SSL_write(*(SSL **)(param_1 + 0x10),param_2,param_3);
if ((0 < ret_code) || (iVar2 = SSL_get_error(*(SSL **)(param_1 + 0x10),ret_code), iVar2 != 3))
break;
iVar2 = (**(code **)(*(long *)(lVar1 + 0x48) + 0x30))
(lVar1,1,*(int4 *)(*(long *)(lVar1 + 0x40) + 0x398));
} while (0 < iVar2);
if (ret_code < 1) {
pvVar3 = SSL_get_ex_data(*(SSL **)(param_1 + 0x10),0);
ma_tls_set_error(pvVar3);
}
return (long)ret_code;
}
| |
27,082 | translog_page_next | eloqsql/storage/maria/ma_loghandler.c | static my_bool translog_page_next(TRANSLOG_ADDRESS *horizon,
struct st_buffer_cursor *cursor,
struct st_translog_buffer **prev_buffer)
{
struct st_translog_buffer *buffer= cursor->buffer;
DBUG_ENTER("translog_page_next");
*prev_buffer= NULL;
if ((cursor->ptr + TRANSLOG_PAGE_SIZE >
cursor->buffer->buffer + TRANSLOG_WRITE_BUFFER) ||
(LSN_OFFSET(*horizon) >
log_descriptor.log_file_max_size - TRANSLOG_PAGE_SIZE))
{
DBUG_PRINT("info", ("Switch to next buffer Buffer Size: %lu (%lu) => %d "
"File size: %lu max: %lu => %d",
(ulong) cursor->buffer->size,
(ulong) (cursor->ptr - cursor->buffer->buffer),
(cursor->ptr + TRANSLOG_PAGE_SIZE >
cursor->buffer->buffer + TRANSLOG_WRITE_BUFFER),
(ulong) LSN_OFFSET(*horizon),
(ulong) log_descriptor.log_file_max_size,
(LSN_OFFSET(*horizon) >
(log_descriptor.log_file_max_size -
TRANSLOG_PAGE_SIZE))));
if (translog_buffer_next(horizon, cursor,
LSN_OFFSET(*horizon) >
(log_descriptor.log_file_max_size -
TRANSLOG_PAGE_SIZE)))
DBUG_RETURN(1);
*prev_buffer= buffer;
DBUG_PRINT("info", ("Buffer #%u (%p): have to be flushed",
(uint) buffer->buffer_no, buffer));
}
else
{
DBUG_PRINT("info", ("Use the same buffer #%u (%p): "
"Buffer Size: %lu (%lu)",
(uint) buffer->buffer_no,
buffer,
(ulong) cursor->buffer->size,
(ulong) (cursor->ptr - cursor->buffer->buffer)));
translog_finish_page(horizon, cursor);
translog_new_page_header(horizon, cursor);
}
DBUG_RETURN(0);
} | O0 | c | translog_page_next:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movq $0x0, (%rax)
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
addq $0x2000, %rax # imm = 0x2000
movq -0x18(%rbp), %rcx
movq 0x28(%rcx), %rcx
addq $0x100000, %rcx # imm = 0x100000
cmpq %rcx, %rax
ja 0x594c1
movq -0x10(%rbp), %rcx
movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF
andq (%rcx), %rax
movl 0x41ef0c(%rip), %ecx # 0x4783c0
subl $0x2000, %ecx # imm = 0x2000
movl %ecx, %ecx
cmpq %rcx, %rax
jbe 0x5951a
jmp 0x594c3
jmp 0x594c5
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rcx
movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF
andq (%rcx), %rax
movl 0x41eedc(%rip), %ecx # 0x4783c0
subl $0x2000, %ecx # imm = 0x2000
movl %ecx, %ecx
cmpq %rcx, %rax
seta %al
andb $0x1, %al
movzbl %al, %eax
movsbl %al, %edx
callq 0x577a0
cmpb $0x0, %al
je 0x5950b
jmp 0x59505
movb $0x1, -0x1(%rbp)
jmp 0x5953e
movq -0x28(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
jmp 0x59518
jmp 0x59538
jmp 0x5951c
jmp 0x5951e
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x535d0
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x52540
jmp 0x5953a
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| translog_page_next:
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_18]
mov rax, [rax+28h]
mov [rbp+var_28], rax
mov rax, [rbp+var_20]
mov qword ptr [rax], 0
mov rax, [rbp+var_18]
mov rax, [rax+20h]
add rax, 2000h
mov rcx, [rbp+var_18]
mov rcx, [rcx+28h]
add rcx, 100000h
cmp rax, rcx
ja short loc_594C1
mov rcx, [rbp+var_10]
mov rax, 0FFFFFFFFh
and rax, [rcx]
mov ecx, cs:dword_4783C0
sub ecx, 2000h
mov ecx, ecx
cmp rax, rcx
jbe short loc_5951A
loc_594C1:
jmp short $+2
loc_594C3:
jmp short $+2
loc_594C5:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rcx, [rbp+var_10]
mov rax, 0FFFFFFFFh
and rax, [rcx]
mov ecx, cs:dword_4783C0
sub ecx, 2000h
mov ecx, ecx
cmp rax, rcx
setnbe al
and al, 1
movzx eax, al
movsx edx, al
call translog_buffer_next
cmp al, 0
jz short loc_5950B
jmp short $+2
loc_59505:
mov [rbp+var_1], 1
jmp short loc_5953E
loc_5950B:
mov rcx, [rbp+var_28]
mov rax, [rbp+var_20]
mov [rax], rcx
jmp short $+2
loc_59518:
jmp short loc_59538
loc_5951A:
jmp short $+2
loc_5951C:
jmp short $+2
loc_5951E:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call translog_finish_page
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call translog_new_page_header
loc_59538:
jmp short $+2
loc_5953A:
mov [rbp+var_1], 0
loc_5953E:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
| char translog_page_next(long long *a1, long long a2, _QWORD *a3)
{
long long v4; // [rsp+8h] [rbp-28h]
v4 = *(_QWORD *)(a2 + 40);
*a3 = 0LL;
if ( *(_QWORD *)(a2 + 32) + 0x2000LL <= (unsigned long long)(*(_QWORD *)(a2 + 40) + 0x100000LL)
&& (unsigned int)*a1 <= (unsigned long long)(unsigned int)(dword_4783C0 - 0x2000) )
{
translog_finish_page(a1, a2);
translog_new_page_header(a1, a2);
return 0;
}
if ( !translog_buffer_next(a1, a2, (unsigned int)*a1 > (unsigned long long)(unsigned int)(dword_4783C0 - 0x2000)) )
{
*a3 = v4;
return 0;
}
return 1;
}
| translog_page_next:
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 + -0x18]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x20]
ADD RAX,0x2000
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX + 0x28]
ADD RCX,0x100000
CMP RAX,RCX
JA 0x001594c1
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,0xffffffff
AND RAX,qword ptr [RCX]
MOV ECX,dword ptr [0x005783c0]
SUB ECX,0x2000
MOV ECX,ECX
CMP RAX,RCX
JBE 0x0015951a
LAB_001594c1:
JMP 0x001594c3
LAB_001594c3:
JMP 0x001594c5
LAB_001594c5:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,0xffffffff
AND RAX,qword ptr [RCX]
MOV ECX,dword ptr [0x005783c0]
SUB ECX,0x2000
MOV ECX,ECX
CMP RAX,RCX
SETA AL
AND AL,0x1
MOVZX EAX,AL
MOVSX EDX,AL
CALL 0x001577a0
CMP AL,0x0
JZ 0x0015950b
JMP 0x00159505
LAB_00159505:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0015953e
LAB_0015950b:
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX],RCX
JMP 0x00159518
LAB_00159518:
JMP 0x00159538
LAB_0015951a:
JMP 0x0015951c
LAB_0015951c:
JMP 0x0015951e
LAB_0015951e:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x001535d0
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x00152540
LAB_00159538:
JMP 0x0015953a
LAB_0015953a:
MOV byte ptr [RBP + -0x1],0x0
LAB_0015953e:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1 translog_page_next(ulong *param_1,long param_2,int8 *param_3)
{
int8 uVar1;
char cVar2;
uVar1 = *(int8 *)(param_2 + 0x28);
*param_3 = 0;
if ((*(long *)(param_2 + 0x28) + 0x100000U < *(long *)(param_2 + 0x20) + 0x2000U) ||
((ulong)(DAT_005783c0 - 0x2000) < (*param_1 & 0xffffffff))) {
cVar2 = translog_buffer_next
(param_1,param_2,(ulong)(DAT_005783c0 - 0x2000) < (*param_1 & 0xffffffff));
if (cVar2 != '\0') {
return 1;
}
*param_3 = uVar1;
}
else {
translog_finish_page(param_1,param_2);
translog_new_page_header(param_1,param_2);
}
return 0;
}
| |
27,083 | ImageCopy | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rtextures.c | Image ImageCopy(Image image)
{
Image newImage = { 0 };
int width = image.width;
int height = image.height;
int size = 0;
for (int i = 0; i < image.mipmaps; i++)
{
size += GetPixelDataSize(width, height, image.format);
width /= 2;
height /= 2;
// Security check for NPOT textures
if (width < 1) width = 1;
if (height < 1) height = 1;
}
newImage.data = RL_CALLOC(size, 1);
if (newImage.data != NULL)
{
// NOTE: Size must be provided in bytes
memcpy(newImage.data, image.data, size);
newImage.width = image.width;
newImage.height = image.height;
newImage.mipmaps = image.mipmaps;
newImage.format = image.format;
}
return newImage;
} | O0 | c | ImageCopy:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x28(%rbp)
movq %rdi, %rax
movq %rax, -0x20(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
xorl %esi, %esi
movl $0x18, %edx
callq 0xa2d0
movq -0x18(%rbp), %rax
movl 0x8(%rax), %ecx
movl %ecx, -0x4(%rbp)
movl 0xc(%rax), %eax
movl %eax, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
movl $0x0, -0x10(%rbp)
movq -0x18(%rbp), %rcx
movl -0x10(%rbp), %eax
cmpl 0x10(%rcx), %eax
jge 0xfe08c
movq -0x18(%rbp), %rax
movl -0x4(%rbp), %edi
movl -0x8(%rbp), %esi
movl 0x14(%rax), %edx
callq 0xfb840
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
movl -0x4(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, -0x4(%rbp)
movl -0x8(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, -0x8(%rbp)
cmpl $0x1, -0x4(%rbp)
jge 0xfe072
movl $0x1, -0x4(%rbp)
cmpl $0x1, -0x8(%rbp)
jge 0xfe07f
movl $0x1, -0x8(%rbp)
jmp 0xfe081
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0xfe025
movslq -0xc(%rbp), %rdi
movl $0x1, %esi
callq 0xa340
movq %rax, %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
cmpq $0x0, (%rax)
je 0xfe0e1
movq -0x28(%rbp), %rcx
movq -0x18(%rbp), %rax
movq (%rcx), %rdi
movq (%rax), %rsi
movslq -0xc(%rbp), %rdx
callq 0xa400
movq -0x18(%rbp), %rcx
movq -0x28(%rbp), %rax
movl 0x8(%rcx), %edx
movl %edx, 0x8(%rax)
movl 0xc(%rcx), %edx
movl %edx, 0xc(%rax)
movl 0x10(%rcx), %edx
movl %edx, 0x10(%rax)
movl 0x14(%rcx), %ecx
movl %ecx, 0x14(%rax)
movq -0x20(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| ImageCopy:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_28], rdi
mov rax, rdi
mov [rbp+var_20], rax
lea rax, [rbp+arg_0]
mov [rbp+var_18], rax
xor esi, esi
mov edx, 18h
call _memset
mov rax, [rbp+var_18]
mov ecx, [rax+8]
mov [rbp+var_4], ecx
mov eax, [rax+0Ch]
mov [rbp+var_8], eax
mov [rbp+var_C], 0
mov [rbp+var_10], 0
loc_FE025:
mov rcx, [rbp+var_18]
mov eax, [rbp+var_10]
cmp eax, [rcx+10h]
jge short loc_FE08C
mov rax, [rbp+var_18]
mov edi, [rbp+var_4]
mov esi, [rbp+var_8]
mov edx, [rax+14h]
call GetPixelDataSize
add eax, [rbp+var_C]
mov [rbp+var_C], eax
mov eax, [rbp+var_4]
mov ecx, 2
cdq
idiv ecx
mov [rbp+var_4], eax
mov eax, [rbp+var_8]
mov ecx, 2
cdq
idiv ecx
mov [rbp+var_8], eax
cmp [rbp+var_4], 1
jge short loc_FE072
mov [rbp+var_4], 1
loc_FE072:
cmp [rbp+var_8], 1
jge short loc_FE07F
mov [rbp+var_8], 1
loc_FE07F:
jmp short $+2
loc_FE081:
mov eax, [rbp+var_10]
add eax, 1
mov [rbp+var_10], eax
jmp short loc_FE025
loc_FE08C:
movsxd rdi, [rbp+var_C]
mov esi, 1
call _calloc
mov rcx, rax
mov rax, [rbp+var_28]
mov [rax], rcx
cmp qword ptr [rax], 0
jz short loc_FE0E1
mov rcx, [rbp+var_28]
mov rax, [rbp+var_18]
mov rdi, [rcx]
mov rsi, [rax]
movsxd rdx, [rbp+var_C]
call _memcpy
mov rcx, [rbp+var_18]
mov rax, [rbp+var_28]
mov edx, [rcx+8]
mov [rax+8], edx
mov edx, [rcx+0Ch]
mov [rax+0Ch], edx
mov edx, [rcx+10h]
mov [rax+10h], edx
mov ecx, [rcx+14h]
mov [rax+14h], ecx
loc_FE0E1:
mov rax, [rbp+var_20]
add rsp, 30h
pop rbp
retn
| _QWORD * ImageCopy(
_QWORD *a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
long long a7,
long long a8,
long long a9)
{
int i; // [rsp+20h] [rbp-10h]
int v11; // [rsp+24h] [rbp-Ch]
int v12; // [rsp+28h] [rbp-8h]
int v13; // [rsp+2Ch] [rbp-4h]
memset(a1, 0LL, 24LL);
v12 = HIDWORD(a8);
v13 = a8;
v11 = 0;
for ( i = 0; i < (int)a9; ++i )
{
v11 += GetPixelDataSize(v13, v12, SHIDWORD(a9));
v13 /= 2;
v12 /= 2;
if ( v13 < 1 )
v13 = 1;
if ( v12 < 1 )
v12 = 1;
}
*a1 = calloc(v11, 1LL);
if ( *a1 )
{
memcpy(*a1, a7, v11);
a1[1] = a8;
a1[2] = a9;
}
return a1;
}
| ImageCopy:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x28],RDI
MOV RAX,RDI
MOV qword ptr [RBP + -0x20],RAX
LEA RAX,[RBP + 0x10]
MOV qword ptr [RBP + -0x18],RAX
XOR ESI,ESI
MOV EDX,0x18
CALL 0x0010a2d0
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RAX + 0x8]
MOV dword ptr [RBP + -0x4],ECX
MOV EAX,dword ptr [RAX + 0xc]
MOV dword ptr [RBP + -0x8],EAX
MOV dword ptr [RBP + -0xc],0x0
MOV dword ptr [RBP + -0x10],0x0
LAB_001fe025:
MOV RCX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RBP + -0x10]
CMP EAX,dword ptr [RCX + 0x10]
JGE 0x001fe08c
MOV RAX,qword ptr [RBP + -0x18]
MOV EDI,dword ptr [RBP + -0x4]
MOV ESI,dword ptr [RBP + -0x8]
MOV EDX,dword ptr [RAX + 0x14]
CALL 0x001fb840
ADD EAX,dword ptr [RBP + -0xc]
MOV dword ptr [RBP + -0xc],EAX
MOV EAX,dword ptr [RBP + -0x4]
MOV ECX,0x2
CDQ
IDIV ECX
MOV dword ptr [RBP + -0x4],EAX
MOV EAX,dword ptr [RBP + -0x8]
MOV ECX,0x2
CDQ
IDIV ECX
MOV dword ptr [RBP + -0x8],EAX
CMP dword ptr [RBP + -0x4],0x1
JGE 0x001fe072
MOV dword ptr [RBP + -0x4],0x1
LAB_001fe072:
CMP dword ptr [RBP + -0x8],0x1
JGE 0x001fe07f
MOV dword ptr [RBP + -0x8],0x1
LAB_001fe07f:
JMP 0x001fe081
LAB_001fe081:
MOV EAX,dword ptr [RBP + -0x10]
ADD EAX,0x1
MOV dword ptr [RBP + -0x10],EAX
JMP 0x001fe025
LAB_001fe08c:
MOVSXD RDI,dword ptr [RBP + -0xc]
MOV ESI,0x1
CALL 0x0010a340
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX],RCX
CMP qword ptr [RAX],0x0
JZ 0x001fe0e1
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RCX]
MOV RSI,qword ptr [RAX]
MOVSXD RDX,dword ptr [RBP + -0xc]
CALL 0x0010a400
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x28]
MOV EDX,dword ptr [RCX + 0x8]
MOV dword ptr [RAX + 0x8],EDX
MOV EDX,dword ptr [RCX + 0xc]
MOV dword ptr [RAX + 0xc],EDX
MOV EDX,dword ptr [RCX + 0x10]
MOV dword ptr [RAX + 0x10],EDX
MOV ECX,dword ptr [RCX + 0x14]
MOV dword ptr [RAX + 0x14],ECX
LAB_001fe0e1:
MOV RAX,qword ptr [RBP + -0x20]
ADD RSP,0x30
POP RBP
RET
|
long * ImageCopy(long *param_1)
{
int iVar1;
void *pvVar2;
void *in_stack_00000008;
int iStack0000000000000010;
int iStack0000000000000014;
int iStack0000000000000018;
int4 uStack000000000000001c;
int local_18;
int local_14;
int local_10;
int local_c;
memset(param_1,0,0x18);
local_c = iStack0000000000000010;
local_10 = iStack0000000000000014;
local_14 = 0;
for (local_18 = 0; local_18 < iStack0000000000000018; local_18 = local_18 + 1) {
iVar1 = GetPixelDataSize(local_c,local_10,uStack000000000000001c);
local_14 = iVar1 + local_14;
local_c = local_c / 2;
local_10 = local_10 / 2;
if (local_c < 1) {
local_c = 1;
}
if (local_10 < 1) {
local_10 = 1;
}
}
pvVar2 = calloc((long)local_14,1);
*param_1 = (long)pvVar2;
if (*param_1 != 0) {
memcpy((void *)*param_1,in_stack_00000008,(long)local_14);
*(int *)(param_1 + 1) = iStack0000000000000010;
*(int *)((long)param_1 + 0xc) = iStack0000000000000014;
*(int *)(param_1 + 2) = iStack0000000000000018;
*(int4 *)((long)param_1 + 0x14) = uStack000000000000001c;
}
return param_1;
}
| |
27,084 | fmt::v10::appender fmt::v10::detail::write_padded<(fmt::v10::align::type)2, fmt::v10::appender, char, char fmt::v10::detail::write_int<fmt::v10::appender, char, fmt::v10::appender fmt::v10::detail::write_int<char, fmt::v10::appender, unsigned int>(fmt::v10::appender, fmt::v10::detail::write_int_arg<unsigned int>, fmt::v10::format_specs<char> const&, fmt::v10::detail::locale_ref)::'lambda'(fmt::v10::appender)>(char, int, unsigned int, fmt::v10::format_specs<fmt::v10::appender> const&, unsigned int)::'lambda'(fmt::v10::appender)&>(fmt::v10::appender, fmt::v10::format_specs<unsigned int> const&, unsigned long, unsigned long, char fmt::v10::detail::write_int<fmt::v10::appender, char, fmt::v10::appender fmt::v10::detail::write_int<char, fmt::v10::appender, unsigned int>(fmt::v10::appender, fmt::v10::detail::write_int_arg<unsigned int>, fmt::v10::format_specs<char> const&, fmt::v10::detail::locale_ref)::'lambda'(fmt::v10::appender)>(char, int, unsigned int, fmt::v10::format_specs<fmt::v10::appender> const&, unsigned int)::'lambda'(fmt::v10::appender)&) | AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/fmt/bundled/format.h | FMT_CONSTEXPR auto write_padded(OutputIt out, const format_specs<Char>& specs,
size_t size, size_t width, F&& f) -> OutputIt {
static_assert(align == align::left || align == align::right, "");
unsigned spec_width = to_unsigned(specs.width);
size_t padding = spec_width > width ? spec_width - width : 0;
// Shifts are encoded as string literals because static constexpr is not
// supported in constexpr functions.
auto* shifts = align == align::left ? "\x1f\x1f\x00\x01" : "\x00\x1f\x00\x01";
size_t left_padding = padding >> shifts[specs.align];
size_t right_padding = padding - left_padding;
auto it = reserve(out, size + padding * specs.fill.size());
if (left_padding != 0) it = fill(it, left_padding, specs.fill);
it = f(it);
if (right_padding != 0) it = fill(it, right_padding, specs.fill);
return base_iterator(out, it);
} | O0 | c | fmt::v10::appender fmt::v10::detail::write_padded<(fmt::v10::align::type)2, fmt::v10::appender, char, char fmt::v10::detail::write_int<fmt::v10::appender, char, fmt::v10::appender fmt::v10::detail::write_int<char, fmt::v10::appender, unsigned int>(fmt::v10::appender, fmt::v10::detail::write_int_arg<unsigned int>, fmt::v10::format_specs<char> const&, fmt::v10::detail::locale_ref)::'lambda'(fmt::v10::appender)>(char, int, unsigned int, fmt::v10::format_specs<fmt::v10::appender> const&, unsigned int)::'lambda'(fmt::v10::appender)&>(fmt::v10::appender, fmt::v10::format_specs<unsigned int> const&, unsigned long, unsigned long, char fmt::v10::detail::write_int<fmt::v10::appender, char, fmt::v10::appender fmt::v10::detail::write_int<char, fmt::v10::appender, unsigned int>(fmt::v10::appender, fmt::v10::detail::write_int_arg<unsigned int>, fmt::v10::format_specs<char> const&, fmt::v10::detail::locale_ref)::'lambda'(fmt::v10::appender)>(char, int, unsigned int, fmt::v10::format_specs<fmt::v10::appender> const&, unsigned int)::'lambda'(fmt::v10::appender)&):
subq $0xb8, %rsp
movq %rdi, 0xa8(%rsp)
movq %rsi, 0xa0(%rsp)
movq %rdx, 0x98(%rsp)
movq %rcx, 0x90(%rsp)
movq %r8, 0x88(%rsp)
movq 0xa0(%rsp), %rax
movl (%rax), %edi
callq 0x90310
movl %eax, 0x84(%rsp)
movl 0x84(%rsp), %eax
cmpq 0x90(%rsp), %rax
jbe 0xb875c
movl 0x84(%rsp), %eax
subq 0x90(%rsp), %rax
movq %rax, 0x10(%rsp)
jmp 0xb8765
xorl %eax, %eax
movq %rax, 0x10(%rsp)
jmp 0xb8765
movq 0x10(%rsp), %rax
movq %rax, 0x78(%rsp)
leaq 0x61f7e(%rip), %rax # 0x11a6f4
movq %rax, 0x70(%rsp)
movq 0x78(%rsp), %rax
movq 0x70(%rsp), %rcx
movq 0xa0(%rsp), %rdx
movw 0x9(%rdx), %dx
andw $0xf, %dx
movzbl %dl, %edx
movsbl (%rcx,%rdx), %ecx
movl %ecx, %ecx
shrq %cl, %rax
movq %rax, 0x68(%rsp)
movq 0x78(%rsp), %rax
subq 0x68(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x98(%rsp), %rax
movq %rax, (%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0xa0(%rsp), %rdi
addq $0xb, %rdi
callq 0x988a0
movq (%rsp), %rsi
movq %rax, %rcx
movq 0x8(%rsp), %rax
imulq %rcx, %rax
addq %rax, %rsi
leaq 0xa8(%rsp), %rdi
callq 0x96090
movq (%rax), %rax
movq %rax, 0x58(%rsp)
cmpq $0x0, 0x68(%rsp)
je 0xb8840
movq 0x58(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x68(%rsp), %rsi
movq 0xa0(%rsp), %rdx
addq $0xb, %rdx
movq 0x48(%rsp), %rdi
callq 0x988b0
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x88(%rsp), %rdi
movq 0x58(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rsi
callq 0xb88f0
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x58(%rsp)
cmpq $0x0, 0x60(%rsp)
je 0xb88a7
movq 0x58(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x60(%rsp), %rsi
movq 0xa0(%rsp), %rdx
addq $0xb, %rdx
movq 0x28(%rsp), %rdi
callq 0x988b0
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0xa8(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x961c0
movq %rax, 0xb0(%rsp)
movq 0xb0(%rsp), %rax
addq $0xb8, %rsp
retq
nopw %cs:(%rax,%rax)
nop
| _ZN3fmt3v106detail12write_paddedILNS0_5align4typeE2ENS0_8appenderEcZNS1_9write_intIS5_ocEET_S7_T0_jRKNS0_12format_specsIT1_EERKNS1_14digit_groupingISA_EEEUlS5_E_EES8_S8_SD_mmOT2_:
sub rsp, 0B8h
mov [rsp+0B8h+var_10], rdi
mov [rsp+0B8h+var_18], rsi
mov [rsp+0B8h+var_20], rdx
mov [rsp+0B8h+var_28], rcx
mov [rsp+0B8h+var_30], r8
mov rax, [rsp+0B8h+var_18]
mov edi, [rax]
call _ZN3fmt3v106detail11to_unsignedIiEENSt13make_unsignedIT_E4typeES4_; fmt::v10::detail::to_unsigned<int>(int)
mov [rsp+0B8h+var_34], eax
mov eax, [rsp+0B8h+var_34]
cmp rax, [rsp+0B8h+var_28]
jbe short loc_B875C
mov eax, [rsp+0B8h+var_34]
sub rax, [rsp+0B8h+var_28]
mov [rsp+0B8h+var_A8], rax
jmp short loc_B8765
loc_B875C:
xor eax, eax
mov [rsp+0B8h+var_A8], rax
jmp short $+2
loc_B8765:
mov rax, [rsp+0B8h+var_A8]
mov [rsp+0B8h+var_40], rax
lea rax, byte_11A6F4
mov [rsp+0B8h+var_48], rax
mov rax, [rsp+0B8h+var_40]
mov rcx, [rsp+0B8h+var_48]
mov rdx, [rsp+0B8h+var_18]
mov dx, [rdx+9]
and dx, 0Fh
movzx edx, dl
movsx ecx, byte ptr [rcx+rdx]
mov ecx, ecx
shr rax, cl
mov [rsp+0B8h+var_50], rax
mov rax, [rsp+0B8h+var_40]
sub rax, [rsp+0B8h+var_50]
mov [rsp+0B8h+var_58], rax
mov rax, [rsp+0B8h+var_20]
mov [rsp+0B8h+var_B8], rax
mov rax, [rsp+0B8h+var_40]
mov [rsp+0B8h+var_B0], rax
mov rdi, [rsp+0B8h+var_18]
add rdi, 0Bh
call _ZNK3fmt3v106detail6fill_tIcE4sizeEv; fmt::v10::detail::fill_t<char>::size(void)
mov rsi, [rsp+0B8h+var_B8]
mov rcx, rax
mov rax, [rsp+0B8h+var_B0]
imul rax, rcx
add rsi, rax
lea rdi, [rsp+0B8h+var_10]
call _ZN3fmt3v106detail7reserveINS0_8appenderEEERT_S5_m; fmt::v10::detail::reserve<fmt::v10::appender>(fmt::v10::appender &,ulong)
mov rax, [rax]
mov [rsp+0B8h+var_60], rax
cmp [rsp+0B8h+var_50], 0
jz short loc_B8840
mov rax, [rsp+0B8h+var_60]
mov [rsp+0B8h+var_70], rax
mov rsi, [rsp+0B8h+var_50]
mov rdx, [rsp+0B8h+var_18]
add rdx, 0Bh
mov rdi, [rsp+0B8h+var_70]
call _ZN3fmt3v106detail4fillINS0_8appenderEcEET_S4_mRKNS1_6fill_tIT0_EE; fmt::v10::detail::fill<fmt::v10::appender,char>(fmt::v10::appender,ulong,fmt::v10::detail::fill_t<char> const&)
mov [rsp+0B8h+var_68], rax
mov rax, [rsp+0B8h+var_68]
mov [rsp+0B8h+var_60], rax
loc_B8840:
mov rdi, [rsp+0B8h+var_30]
mov rax, [rsp+0B8h+var_60]
mov [rsp+0B8h+var_80], rax
mov rsi, [rsp+0B8h+var_80]
call _ZZN3fmt3v106detail9write_intINS0_8appenderEocEET_S4_T0_jRKNS0_12format_specsIT1_EERKNS1_14digit_groupingIS7_EEENKUlS3_E_clES3_; fmt::v10::detail::write_int<fmt::v10::appender,unsigned __int128,char>(fmt::v10::appender,unsigned __int128,uint,fmt::v10::format_specs<char> const&,fmt::v10::detail::digit_grouping<char> const&)::{lambda(fmt::v10::appender)#1}::operator()(fmt::v10::appender)
mov [rsp+0B8h+var_78], rax
mov rax, [rsp+0B8h+var_78]
mov [rsp+0B8h+var_60], rax
cmp [rsp+0B8h+var_58], 0
jz short loc_B88A7
mov rax, [rsp+0B8h+var_60]
mov [rsp+0B8h+var_90], rax
mov rsi, [rsp+0B8h+var_58]
mov rdx, [rsp+0B8h+var_18]
add rdx, 0Bh
mov rdi, [rsp+0B8h+var_90]
call _ZN3fmt3v106detail4fillINS0_8appenderEcEET_S4_mRKNS1_6fill_tIT0_EE; fmt::v10::detail::fill<fmt::v10::appender,char>(fmt::v10::appender,ulong,fmt::v10::detail::fill_t<char> const&)
mov [rsp+0B8h+var_88], rax
mov rax, [rsp+0B8h+var_88]
mov [rsp+0B8h+var_60], rax
loc_B88A7:
mov rax, [rsp+0B8h+var_10]
mov [rsp+0B8h+var_98], rax
mov rax, [rsp+0B8h+var_60]
mov [rsp+0B8h+var_A0], rax
mov rdi, [rsp+0B8h+var_98]
mov rsi, [rsp+0B8h+var_A0]
call _ZN3fmt3v106detail13base_iteratorINS0_8appenderEEET_S4_S4_; fmt::v10::detail::base_iterator<fmt::v10::appender>(fmt::v10::appender,fmt::v10::appender)
mov [rsp+0B8h+var_8], rax
mov rax, [rsp+0B8h+var_8]
add rsp, 0B8h
retn
| long long fmt::v10::detail::write_padded<(fmt::v10::align::type)2,fmt::v10::appender,char,fmt::v10::appender fmt::v10::detail::write_int<fmt::v10::appender,unsigned __int128,char>(fmt::v10::appender,unsigned __int128,unsigned int,fmt::v10::format_specs<char> const&,fmt::v10::detail::digit_grouping<char> const&)::{lambda(fmt::v10::appender)#1}>(
long long a1,
long long a2,
long long a3,
unsigned long long a4,
long long a5)
{
unsigned long long v6; // [rsp+10h] [rbp-A8h]
long long v7; // [rsp+58h] [rbp-60h]
long long v8; // [rsp+58h] [rbp-60h]
unsigned long long v9; // [rsp+60h] [rbp-58h]
unsigned long long v10; // [rsp+68h] [rbp-50h]
unsigned int v11; // [rsp+84h] [rbp-34h]
long long v14; // [rsp+A8h] [rbp-10h] BYREF
v14 = a1;
v11 = fmt::v10::detail::to_unsigned<int>(*(_DWORD *)a2);
if ( v11 <= a4 )
v6 = 0LL;
else
v6 = v11 - a4;
v10 = v6 >> byte_11A6F4[*(_WORD *)(a2 + 9) & 0xF];
v9 = v6 - v10;
fmt::v10::detail::fill_t<char>::size(a2 + 11);
v7 = *(_QWORD *)fmt::v10::detail::reserve<fmt::v10::appender>((long long)&v14);
if ( v10 )
v7 = fmt::v10::detail::fill<fmt::v10::appender,char>(v7, v10, a2 + 11);
v8 = fmt::v10::detail::write_int<fmt::v10::appender,unsigned __int128,char>(fmt::v10::appender,unsigned __int128,unsigned int,fmt::v10::format_specs<char> const&,fmt::v10::detail::digit_grouping<char> const&)::{lambda(fmt::v10::appender)#1}::operator()(
a5,
v7);
if ( v9 )
v8 = fmt::v10::detail::fill<fmt::v10::appender,char>(v8, v9, a2 + 11);
return fmt::v10::detail::base_iterator<fmt::v10::appender>(v14, v8);
}
| write_padded<(fmt::v10::align::type)2,fmt::v10::appender,char,fmt::v10::detail::write_int<fmt::v10::appender,unsigned__int128,char>(fmt::v10::appender,unsigned__int128,unsigned_int,fmt::v10::format_specs<char>const&,fmt::v10::detail::digit_grouping<char>const&)::{lambda(fmt::v10::appender)#1}>:
SUB RSP,0xb8
MOV qword ptr [RSP + 0xa8],RDI
MOV qword ptr [RSP + 0xa0],RSI
MOV qword ptr [RSP + 0x98],RDX
MOV qword ptr [RSP + 0x90],RCX
MOV qword ptr [RSP + 0x88],R8
MOV RAX,qword ptr [RSP + 0xa0]
MOV EDI,dword ptr [RAX]
CALL 0x00190310
MOV dword ptr [RSP + 0x84],EAX
MOV EAX,dword ptr [RSP + 0x84]
CMP RAX,qword ptr [RSP + 0x90]
JBE 0x001b875c
MOV EAX,dword ptr [RSP + 0x84]
SUB RAX,qword ptr [RSP + 0x90]
MOV qword ptr [RSP + 0x10],RAX
JMP 0x001b8765
LAB_001b875c:
XOR EAX,EAX
MOV qword ptr [RSP + 0x10],RAX
JMP 0x001b8765
LAB_001b8765:
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x78],RAX
LEA RAX,[0x21a6f4]
MOV qword ptr [RSP + 0x70],RAX
MOV RAX,qword ptr [RSP + 0x78]
MOV RCX,qword ptr [RSP + 0x70]
MOV RDX,qword ptr [RSP + 0xa0]
MOV DX,word ptr [RDX + 0x9]
AND DX,0xf
MOVZX EDX,DL
MOVSX ECX,byte ptr [RCX + RDX*0x1]
MOV ECX,ECX
SHR RAX,CL
MOV qword ptr [RSP + 0x68],RAX
MOV RAX,qword ptr [RSP + 0x78]
SUB RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0x60],RAX
MOV RAX,qword ptr [RSP + 0x98]
MOV qword ptr [RSP],RAX
MOV RAX,qword ptr [RSP + 0x78]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0xa0]
ADD RDI,0xb
CALL 0x001988a0
MOV RSI,qword ptr [RSP]
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x8]
IMUL RAX,RCX
ADD RSI,RAX
LEA RDI,[RSP + 0xa8]
CALL 0x00196090
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x58],RAX
CMP qword ptr [RSP + 0x68],0x0
JZ 0x001b8840
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x48],RAX
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0xa0]
ADD RDX,0xb
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x001988b0
MOV qword ptr [RSP + 0x50],RAX
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x58],RAX
LAB_001b8840:
MOV RDI,qword ptr [RSP + 0x88]
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x38],RAX
MOV RSI,qword ptr [RSP + 0x38]
CALL 0x001b88f0
MOV qword ptr [RSP + 0x40],RAX
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x58],RAX
CMP qword ptr [RSP + 0x60],0x0
JZ 0x001b88a7
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x28],RAX
MOV RSI,qword ptr [RSP + 0x60]
MOV RDX,qword ptr [RSP + 0xa0]
ADD RDX,0xb
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x001988b0
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x58],RAX
LAB_001b88a7:
MOV RAX,qword ptr [RSP + 0xa8]
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RSP + 0x18]
CALL 0x001961c0
MOV qword ptr [RSP + 0xb0],RAX
MOV RAX,qword ptr [RSP + 0xb0]
ADD RSP,0xb8
RET
|
/* fmt::v10::appender fmt::v10::detail::write_padded<(fmt::v10::align::type)2, fmt::v10::appender,
char, fmt::v10::detail::write_int<fmt::v10::appender, unsigned __int128,
char>(fmt::v10::appender, unsigned __int128, unsigned int, fmt::v10::format_specs<char> const&,
fmt::v10::detail::digit_grouping<char>
const&)::{lambda(fmt::v10::appender)#1}>(fmt::v10::appender, fmt::v10::format_specs<char> const&,
unsigned long, unsigned long, fmt::v10::detail::write_int<fmt::v10::appender, unsigned __int128,
char>(fmt::v10::appender, unsigned __int128, unsigned int, fmt::v10::format_specs<char> const&,
fmt::v10::detail::digit_grouping<char> const&)::{lambda(fmt::v10::appender)#1}&&) */
int8
fmt::v10::detail::
write_padded<(fmt::v10::align::type)2,fmt::v10::appender,char,fmt::v10::detail::write_int<fmt::v10::appender,unsigned__int128,char>(fmt::v10::appender,unsigned__int128,unsigned_int,fmt::v10::format_specs<char>const&,fmt::v10::detail::digit_grouping<char>const&)::_lambda(fmt::v10::appender)_1_>
(int8 param_1,int *param_2,long param_3,ulong param_4,
_lambda_fmt__v10__appender__1_ *param_5)
{
uint uVar1;
ulong uVar2;
long lVar3;
int8 *puVar4;
int8 uVar5;
ulong local_a8;
int8 local_60;
int8 local_10 [2];
local_10[0] = param_1;
uVar1 = to_unsigned<int>(*param_2);
if (param_4 < uVar1) {
local_a8 = uVar1 - param_4;
}
else {
local_a8 = 0;
}
uVar2 = local_a8 >> ((&DAT_0021a6f4)[(byte)*(int2 *)((long)param_2 + 9) & 0xf] & 0x3f);
lVar3 = fill_t<char>::size((fill_t<char> *)((long)param_2 + 0xb));
puVar4 = (int8 *)
reserve<fmt::v10::appender>((appender *)local_10,param_3 + local_a8 * lVar3);
local_60 = *puVar4;
if (uVar2 != 0) {
local_60 = fill<fmt::v10::appender,char>(local_60,uVar2,(long)param_2 + 0xb);
}
local_60 = write_int<fmt::v10::appender,unsigned__int128,char>(fmt::v10::appender,unsigned__int128,unsigned_int,fmt::v10::format_specs<char>const&,fmt::v10::detail::digit_grouping<char>const&)
::{lambda(fmt::v10::appender)#1}::operator()(param_5,local_60);
if (local_a8 - uVar2 != 0) {
local_60 = fill<fmt::v10::appender,char>(local_60,local_a8 - uVar2,(long)param_2 + 0xb);
}
uVar5 = base_iterator<fmt::v10::appender>(local_10[0],local_60);
return uVar5;
}
| |
27,085 | evmone::instr::core::selfdestruct(evmone::StackTop, long, evmone::ExecutionState&) | corpus-core[P]colibri-stateless/build_O0/_deps/evmone_external-src/lib/evmone/instructions.hpp | inline TermResult selfdestruct(StackTop stack, int64_t gas_left, ExecutionState& state) noexcept
{
if (state.in_static_mode())
return {EVMC_STATIC_MODE_VIOLATION, gas_left};
const auto beneficiary = intx::be::trunc<evmc::address>(stack[0]);
if (state.rev >= EVMC_BERLIN && state.host.access_account(beneficiary) == EVMC_ACCESS_COLD)
{
if ((gas_left -= instr::cold_account_access_cost) < 0)
return {EVMC_OUT_OF_GAS, gas_left};
}
if (state.rev >= EVMC_TANGERINE_WHISTLE)
{
if (state.rev == EVMC_TANGERINE_WHISTLE || state.host.get_balance(state.msg->recipient))
{
// After TANGERINE_WHISTLE apply additional cost of
// sending value to a non-existing account.
if (!state.host.account_exists(beneficiary))
{
if ((gas_left -= 25000) < 0)
return {EVMC_OUT_OF_GAS, gas_left};
}
}
}
if (state.host.selfdestruct(state.msg->recipient, beneficiary))
{
if (state.rev < EVMC_LONDON)
state.gas_refund += 24000;
}
return {EVMC_SUCCESS, gas_left};
} | O0 | cpp | evmone::instr::core::selfdestruct(evmone::StackTop, long, evmone::ExecutionState&):
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %rdx, -0x28(%rbp)
movq -0x28(%rbp), %rdi
callq 0x6b0b0
testb $0x1, %al
jne 0x71776
jmp 0x7178a
movl $0xb, -0x10(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x7197d
leaq -0x18(%rbp), %rdi
xorl %esi, %esi
callq 0x61a10
movq %rax, %rsi
leaq -0x3c(%rbp), %rdi
callq 0x68cf0
movq -0x28(%rbp), %rax
cmpl $0x8, 0x40(%rax)
jl 0x717eb
movq -0x28(%rbp), %rdi
addq $0x28, %rdi
leaq -0x3c(%rbp), %rsi
callq 0x3b8e0
cmpl $0x0, %eax
jne 0x717eb
movq -0x20(%rbp), %rax
subq $0xa28, %rax # imm = 0xA28
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jge 0x717e9
movl $0x3, -0x10(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x7197d
jmp 0x717eb
movq -0x28(%rbp), %rax
cmpl $0x2, 0x40(%rax)
jl 0x718d4
movq -0x28(%rbp), %rcx
movb $0x1, %al
cmpl $0x2, 0x40(%rcx)
movb %al, -0xb1(%rbp)
je 0x71885
movq -0x28(%rbp), %rax
addq $0x28, %rax
movq %rax, -0xc0(%rbp)
movq -0x28(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x18(%rax), %rcx
movq %rcx, -0x88(%rbp)
movq 0x20(%rax), %rcx
movq %rcx, -0x80(%rbp)
movl 0x28(%rax), %eax
movl %eax, -0x78(%rbp)
leaq -0x70(%rbp), %rdi
leaq -0x88(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movl 0x10(%rax), %eax
movl %eax, 0x10(%rsp)
callq 0x386f0
movq -0xc0(%rbp), %rsi
leaq -0x5c(%rbp), %rdi
leaq -0x70(%rbp), %rdx
callq 0x3b570
leaq -0x5c(%rbp), %rdi
callq 0x71990
movb %al, -0xb1(%rbp)
movb -0xb1(%rbp), %al
testb $0x1, %al
jne 0x71891
jmp 0x718d2
movq -0x28(%rbp), %rdi
addq $0x28, %rdi
leaq -0x3c(%rbp), %rsi
callq 0x3b460
testb $0x1, %al
jne 0x718d0
movq -0x20(%rbp), %rax
subq $0x61a8, %rax # imm = 0x61A8
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jge 0x718ce
movl $0x3, -0x10(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x7197d
jmp 0x718d0
jmp 0x718d2
jmp 0x718d4
movq -0x28(%rbp), %rax
addq $0x28, %rax
movq %rax, -0xc8(%rbp)
movq -0x28(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x18(%rax), %rcx
movq %rcx, -0xb0(%rbp)
movq 0x20(%rax), %rcx
movq %rcx, -0xa8(%rbp)
movl 0x28(%rax), %eax
movl %eax, -0xa0(%rbp)
leaq -0x9c(%rbp), %rdi
leaq -0xb0(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movl 0x10(%rax), %eax
movl %eax, 0x10(%rsp)
callq 0x386f0
movq -0xc8(%rbp), %rdi
leaq -0x9c(%rbp), %rsi
leaq -0x3c(%rbp), %rdx
callq 0x3b710
testb $0x1, %al
jne 0x71951
jmp 0x7196e
movq -0x28(%rbp), %rax
cmpl $0x9, 0x40(%rax)
jge 0x7196c
movq -0x28(%rbp), %rax
movq (%rax), %rcx
addq $0x5dc0, %rcx # imm = 0x5DC0
movq %rcx, (%rax)
jmp 0x7196e
movl $0x0, -0x10(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0xe0, %rsp
popq %rbp
retq
nopl (%rax)
| _ZN6evmone5instr4core12selfdestructENS_8StackTopElRNS_14ExecutionStateE:
push rbp
mov rbp, rsp
sub rsp, 0E0h
mov [rbp+var_18], rdi
mov [rbp+var_20], rsi
mov [rbp+var_28], rdx
mov rdi, [rbp+var_28]; this
call _ZNK6evmone14ExecutionState14in_static_modeEv; evmone::ExecutionState::in_static_mode(void)
test al, 1
jnz short loc_71776
jmp short loc_7178A
loc_71776:
mov [rbp+var_10], 0Bh
mov rax, [rbp+var_20]
mov [rbp+var_8], rax
jmp loc_7197D
loc_7178A:
lea rdi, [rbp+var_18]
xor esi, esi
call _ZN6evmone8StackTopixEi; evmone::StackTop::operator[](int)
mov rsi, rax
lea rdi, [rbp+var_3C]
call _ZN4intx2be5truncIN4evmc7addressELj256EEET_RKNS_4uintIXT0_EEE; intx::be::trunc<evmc::address,256u>(intx::uint<256u> const&)
mov rax, [rbp+var_28]
cmp dword ptr [rax+40h], 8
jl short loc_717EB
mov rdi, [rbp+var_28]
add rdi, 28h ; '('
lea rsi, [rbp+var_3C]
call _ZN4evmc11HostContext14access_accountERKNS_7addressE; evmc::HostContext::access_account(evmc::address const&)
cmp eax, 0
jnz short loc_717EB
mov rax, [rbp+var_20]
sub rax, 0A28h
mov [rbp+var_20], rax
cmp rax, 0
jge short loc_717E9
mov [rbp+var_10], 3
mov rax, [rbp+var_20]
mov [rbp+var_8], rax
jmp loc_7197D
loc_717E9:
jmp short $+2
loc_717EB:
mov rax, [rbp+var_28]
cmp dword ptr [rax+40h], 2
jl loc_718D4
mov rcx, [rbp+var_28]
mov al, 1
cmp dword ptr [rcx+40h], 2
mov [rbp+var_B1], al
jz short loc_71885
mov rax, [rbp+var_28]
add rax, 28h ; '('
mov [rbp+var_C0], rax
mov rax, [rbp+var_28]
mov rax, [rax+20h]
mov rcx, [rax+18h]
mov [rbp+var_88], rcx
mov rcx, [rax+20h]
mov [rbp+var_80], rcx
mov eax, [rax+28h]
mov [rbp+var_78], eax
lea rdi, [rbp+var_70]
lea rax, [rbp+var_88]
mov rcx, [rax]
mov [rsp+0E0h+var_E0], rcx
mov rcx, [rax+8]
mov [rsp+0E0h+var_D8], rcx
mov eax, [rax+10h]
mov [rsp+0E0h+var_D0], eax
call _ZN4evmc7addressC2E12evmc_address; evmc::address::address(evmc_address)
mov rsi, [rbp+var_C0]
lea rdi, [rbp+var_5C]
lea rdx, [rbp+var_70]
call _ZNK4evmc11HostContext11get_balanceERKNS_7addressE; evmc::HostContext::get_balance(evmc::address const&)
lea rdi, [rbp+var_5C]
call _ZNK4evmc7bytes32cvbEv; evmc::bytes32::operator bool(void)
mov [rbp+var_B1], al
loc_71885:
mov al, [rbp+var_B1]
test al, 1
jnz short loc_71891
jmp short loc_718D2
loc_71891:
mov rdi, [rbp+var_28]
add rdi, 28h ; '('
lea rsi, [rbp+var_3C]
call _ZNK4evmc11HostContext14account_existsERKNS_7addressE; evmc::HostContext::account_exists(evmc::address const&)
test al, 1
jnz short loc_718D0
mov rax, [rbp+var_20]
sub rax, 61A8h
mov [rbp+var_20], rax
cmp rax, 0
jge short loc_718CE
mov [rbp+var_10], 3
mov rax, [rbp+var_20]
mov [rbp+var_8], rax
jmp loc_7197D
loc_718CE:
jmp short $+2
loc_718D0:
jmp short $+2
loc_718D2:
jmp short $+2
loc_718D4:
mov rax, [rbp+var_28]
add rax, 28h ; '('
mov [rbp+var_C8], rax
mov rax, [rbp+var_28]
mov rax, [rax+20h]
mov rcx, [rax+18h]
mov [rbp+var_B0], rcx
mov rcx, [rax+20h]
mov [rbp+var_A8], rcx
mov eax, [rax+28h]
mov [rbp+var_A0], eax
lea rdi, [rbp+var_9C]
lea rax, [rbp+var_B0]
mov rcx, [rax]
mov [rsp+0E0h+var_E0], rcx
mov rcx, [rax+8]
mov [rsp+0E0h+var_D8], rcx
mov eax, [rax+10h]
mov [rsp+0E0h+var_D0], eax
call _ZN4evmc7addressC2E12evmc_address; evmc::address::address(evmc_address)
mov rdi, [rbp+var_C8]
lea rsi, [rbp+var_9C]
lea rdx, [rbp+var_3C]
call _ZN4evmc11HostContext12selfdestructERKNS_7addressES3_; evmc::HostContext::selfdestruct(evmc::address const&,evmc::address const&)
test al, 1
jnz short loc_71951
jmp short loc_7196E
loc_71951:
mov rax, [rbp+var_28]
cmp dword ptr [rax+40h], 9
jge short loc_7196C
mov rax, [rbp+var_28]
mov rcx, [rax]
add rcx, 5DC0h
mov [rax], rcx
loc_7196C:
jmp short $+2
loc_7196E:
mov [rbp+var_10], 0
mov rax, [rbp+var_20]
mov [rbp+var_8], rax
loc_7197D:
mov eax, [rbp+var_10]
mov rdx, [rbp+var_8]
add rsp, 0E0h
pop rbp
retn
| long long evmone::instr::core::selfdestruct(long long a1, long long a2, evmone::ExecutionState *a3)
{
long long v3; // rax
_BYTE *v4; // rsi
int v5; // edx
int v6; // r8d
int v7; // r9d
long long v8; // rax
char *v10; // [rsp+18h] [rbp-C8h]
char *v11; // [rsp+20h] [rbp-C0h]
char v12; // [rsp+2Fh] [rbp-B1h]
_BYTE v13[20]; // [rsp+44h] [rbp-9Ch] BYREF
long long v14; // [rsp+58h] [rbp-88h]
long long v15; // [rsp+60h] [rbp-80h]
int v16; // [rsp+68h] [rbp-78h]
_BYTE v17[20]; // [rsp+70h] [rbp-70h] BYREF
_QWORD v18[4]; // [rsp+84h] [rbp-5Ch] BYREF
_BYTE v19[20]; // [rsp+A4h] [rbp-3Ch] BYREF
evmone::ExecutionState *v20; // [rsp+B8h] [rbp-28h]
long long v21; // [rsp+C0h] [rbp-20h]
long long v22; // [rsp+C8h] [rbp-18h] BYREF
unsigned int v23; // [rsp+D0h] [rbp-10h]
long long v24; // [rsp+D8h] [rbp-8h]
v22 = a1;
v21 = a2;
v20 = a3;
if ( evmone::ExecutionState::in_static_mode(a3) )
{
v23 = 11;
v24 = v21;
}
else
{
v3 = evmone::StackTop::operator[](&v22, 0);
LODWORD(v4) = v3;
intx::be::trunc<evmc::address,256u>((long long)v19, v3);
if ( *((int *)v20 + 16) < 8
|| (v4 = v19, (unsigned int)evmc::HostContext::access_account((long long)v20 + 40))
|| (v21 -= 2600LL, v21 >= 0) )
{
if ( *((int *)v20 + 16) < 2 )
goto LABEL_14;
v12 = 1;
if ( *((_DWORD *)v20 + 16) != 2 )
{
v11 = (char *)v20 + 40;
v8 = *((_QWORD *)v20 + 4);
v14 = *(_QWORD *)(v8 + 24);
v15 = *(_QWORD *)(v8 + 32);
v16 = *(_DWORD *)(v8 + 40);
evmc::address::address((long long)v17, (_DWORD)v4, v5, v15, v6, v7, v14, v15, v16);
LODWORD(v4) = (_DWORD)v11;
evmc::HostContext::get_balance(v18, (long long)v11, (long long)v17);
v12 = evmc::bytes32::operator bool(v18);
}
if ( (v12 & 1) == 0
|| (v4 = v19, (evmc::HostContext::account_exists((long long)v20 + 40) & 1) != 0)
|| (v21 -= 25000LL, v21 >= 0) )
{
LABEL_14:
v10 = (char *)v20 + 40;
evmc::address::address(
(long long)v13,
(_DWORD)v4,
v5,
*(_QWORD *)(*((_QWORD *)v20 + 4) + 32LL),
v6,
v7,
*(_QWORD *)(*((_QWORD *)v20 + 4) + 24LL),
*(_QWORD *)(*((_QWORD *)v20 + 4) + 32LL),
*(_DWORD *)(*((_QWORD *)v20 + 4) + 40LL));
if ( (evmc::HostContext::selfdestruct((long long)v10) & 1) != 0 && *((int *)v20 + 16) < 9 )
*(_QWORD *)v20 += 24000LL;
v23 = 0;
v24 = v21;
}
else
{
v23 = 3;
v24 = v21;
}
}
else
{
v23 = 3;
v24 = v21;
}
}
return v23;
}
| selfdestruct:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xe0
MOV qword ptr [RBP + -0x18],RDI
MOV qword ptr [RBP + -0x20],RSI
MOV qword ptr [RBP + -0x28],RDX
MOV RDI,qword ptr [RBP + -0x28]
CALL 0x0016b0b0
TEST AL,0x1
JNZ 0x00171776
JMP 0x0017178a
LAB_00171776:
MOV dword ptr [RBP + -0x10],0xb
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0017197d
LAB_0017178a:
LEA RDI,[RBP + -0x18]
XOR ESI,ESI
CALL 0x00161a10
MOV RSI,RAX
LEA RDI,[RBP + -0x3c]
CALL 0x00168cf0
MOV RAX,qword ptr [RBP + -0x28]
CMP dword ptr [RAX + 0x40],0x8
JL 0x001717eb
MOV RDI,qword ptr [RBP + -0x28]
ADD RDI,0x28
LEA RSI,[RBP + -0x3c]
CALL 0x0013b8e0
CMP EAX,0x0
JNZ 0x001717eb
MOV RAX,qword ptr [RBP + -0x20]
SUB RAX,0xa28
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JGE 0x001717e9
MOV dword ptr [RBP + -0x10],0x3
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0017197d
LAB_001717e9:
JMP 0x001717eb
LAB_001717eb:
MOV RAX,qword ptr [RBP + -0x28]
CMP dword ptr [RAX + 0x40],0x2
JL 0x001718d4
MOV RCX,qword ptr [RBP + -0x28]
MOV AL,0x1
CMP dword ptr [RCX + 0x40],0x2
MOV byte ptr [RBP + -0xb1],AL
JZ 0x00171885
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x28
MOV qword ptr [RBP + -0xc0],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x88],RCX
MOV RCX,qword ptr [RAX + 0x20]
MOV qword ptr [RBP + -0x80],RCX
MOV EAX,dword ptr [RAX + 0x28]
MOV dword ptr [RBP + -0x78],EAX
LEA RDI,[RBP + -0x70]
LEA RAX,[RBP + -0x88]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV EAX,dword ptr [RAX + 0x10]
MOV dword ptr [RSP + 0x10],EAX
CALL 0x001386f0
MOV RSI,qword ptr [RBP + -0xc0]
LEA RDI,[RBP + -0x5c]
LEA RDX,[RBP + -0x70]
CALL 0x0013b570
LEA RDI,[RBP + -0x5c]
CALL 0x00171990
MOV byte ptr [RBP + -0xb1],AL
LAB_00171885:
MOV AL,byte ptr [RBP + -0xb1]
TEST AL,0x1
JNZ 0x00171891
JMP 0x001718d2
LAB_00171891:
MOV RDI,qword ptr [RBP + -0x28]
ADD RDI,0x28
LEA RSI,[RBP + -0x3c]
CALL 0x0013b460
TEST AL,0x1
JNZ 0x001718d0
MOV RAX,qword ptr [RBP + -0x20]
SUB RAX,0x61a8
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JGE 0x001718ce
MOV dword ptr [RBP + -0x10],0x3
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0017197d
LAB_001718ce:
JMP 0x001718d0
LAB_001718d0:
JMP 0x001718d2
LAB_001718d2:
JMP 0x001718d4
LAB_001718d4:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x28
MOV qword ptr [RBP + -0xc8],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0xb0],RCX
MOV RCX,qword ptr [RAX + 0x20]
MOV qword ptr [RBP + -0xa8],RCX
MOV EAX,dword ptr [RAX + 0x28]
MOV dword ptr [RBP + -0xa0],EAX
LEA RDI,[RBP + -0x9c]
LEA RAX,[RBP + -0xb0]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV EAX,dword ptr [RAX + 0x10]
MOV dword ptr [RSP + 0x10],EAX
CALL 0x001386f0
MOV RDI,qword ptr [RBP + -0xc8]
LEA RSI,[RBP + -0x9c]
LEA RDX,[RBP + -0x3c]
CALL 0x0013b710
TEST AL,0x1
JNZ 0x00171951
JMP 0x0017196e
LAB_00171951:
MOV RAX,qword ptr [RBP + -0x28]
CMP dword ptr [RAX + 0x40],0x9
JGE 0x0017196c
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RAX]
ADD RCX,0x5dc0
MOV qword ptr [RAX],RCX
LAB_0017196c:
JMP 0x0017196e
LAB_0017196e:
MOV dword ptr [RBP + -0x10],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x8],RAX
LAB_0017197d:
MOV EAX,dword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x8]
ADD RSP,0xe0
POP RBP
RET
|
/* evmone::instr::core::selfdestruct(evmone::StackTop, long, evmone::ExecutionState&) */
int1 [16]
evmone::instr::core::selfdestruct(int8 param_1,long param_2,ExecutionState *param_3)
{
long lVar1;
int iVar2;
ulong uVar3;
uint *puVar4;
HostContext *this;
int1 auVar5 [16];
bool local_b9;
address local_a4 [20];
int8 local_90;
int8 local_88;
int4 local_80;
address local_78 [20];
address local_64 [32];
be local_44 [20];
ExecutionState *local_30;
long local_28;
int8 local_20;
uint local_18;
long local_10;
local_30 = param_3;
local_28 = param_2;
local_20 = param_1;
uVar3 = ExecutionState::in_static_mode(param_3);
if ((uVar3 & 1) == 0) {
puVar4 = (uint *)StackTop::operator[]((StackTop *)&local_20,0);
intx::be::trunc<evmc::address,256u>(local_44,puVar4);
if (((*(int *)(local_30 + 0x40) < 8) ||
(iVar2 = evmc::HostContext::access_account
((HostContext *)(local_30 + 0x28),(address *)local_44), iVar2 != 0)) ||
(local_28 = local_28 + -0xa28, -1 < local_28)) {
if (1 < *(int *)(local_30 + 0x40)) {
local_b9 = true;
if (*(int *)(local_30 + 0x40) != 2) {
lVar1 = *(long *)(local_30 + 0x20);
local_90 = *(int8 *)(lVar1 + 0x18);
local_88 = *(int8 *)(lVar1 + 0x20);
local_80 = *(int4 *)(lVar1 + 0x28);
evmc::address::address(local_78);
evmc::HostContext::get_balance(local_64);
local_b9 = evmc::bytes32::operator_cast_to_bool((bytes32 *)local_64);
}
if (((local_b9 != false) &&
(uVar3 = evmc::HostContext::account_exists
((HostContext *)(local_30 + 0x28),(address *)local_44),
(uVar3 & 1) == 0)) && (local_28 = local_28 + -25000, local_28 < 0)) {
local_18 = 3;
local_10 = local_28;
goto LAB_0017197d;
}
}
this = (HostContext *)(local_30 + 0x28);
evmc::address::address(local_a4);
uVar3 = evmc::HostContext::selfdestruct(this,local_a4,(address *)local_44);
if (((uVar3 & 1) != 0) && (*(int *)(local_30 + 0x40) < 9)) {
*(long *)local_30 = *(long *)local_30 + 24000;
}
local_18 = 0;
local_10 = local_28;
}
else {
local_18 = 3;
local_10 = local_28;
}
}
else {
local_18 = 0xb;
local_10 = local_28;
}
LAB_0017197d:
auVar5._4_4_ = 0;
auVar5._0_4_ = local_18;
auVar5._8_8_ = local_10;
return auVar5;
}
| |
27,086 | start_of_next_entry | eloqsql/storage/maria/ma_blockrec.c | static inline uint start_of_next_entry(uchar *dir)
{
uchar *prev;
/*
Find previous used entry. (There is always a previous entry as
the directory never starts with a deleted entry)
*/
for (prev= dir - DIR_ENTRY_SIZE ;
prev[0] == 0 && prev[1] == 0 ;
prev-= DIR_ENTRY_SIZE)
{}
return (uint) uint2korr(prev);
} | O0 | c | start_of_next_entry:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $-0x4, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movzbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x11(%rbp)
jne 0x80276
movq -0x10(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0x0, %eax
sete %al
movb %al, -0x11(%rbp)
movb -0x11(%rbp), %al
testb $0x1, %al
jne 0x8027f
jmp 0x8028f
jmp 0x80281
movq -0x10(%rbp), %rax
addq $-0x4, %rax
movq %rax, -0x10(%rbp)
jmp 0x80254
movq -0x10(%rbp), %rax
movzwl (%rax), %eax
popq %rbp
retq
nopl (%rax,%rax)
| start_of_next_entry:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
add rax, 0FFFFFFFFFFFFFFFCh
mov [rbp+var_10], rax
loc_80254:
mov rax, [rbp+var_10]
movzx ecx, byte ptr [rax]
xor eax, eax
cmp ecx, 0
mov [rbp+var_11], al
jnz short loc_80276
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax+1]
cmp eax, 0
setz al
mov [rbp+var_11], al
loc_80276:
mov al, [rbp+var_11]
test al, 1
jnz short loc_8027F
jmp short loc_8028F
loc_8027F:
jmp short $+2
loc_80281:
mov rax, [rbp+var_10]
add rax, 0FFFFFFFFFFFFFFFCh
mov [rbp+var_10], rax
jmp short loc_80254
loc_8028F:
mov rax, [rbp+var_10]
movzx eax, word ptr [rax]
pop rbp
retn
| long long start_of_next_entry(long long a1)
{
bool v2; // [rsp+1h] [rbp-11h]
_BYTE *i; // [rsp+2h] [rbp-10h]
for ( i = (_BYTE *)(a1 - 4); ; i -= 4 )
{
v2 = 0;
if ( !*i )
v2 = i[1] == 0;
if ( !v2 )
break;
}
return *(unsigned __int16 *)i;
}
| start_of_next_entry:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,-0x4
MOV qword ptr [RBP + -0x10],RAX
LAB_00180254:
MOV RAX,qword ptr [RBP + -0x10]
MOVZX ECX,byte ptr [RAX]
XOR EAX,EAX
CMP ECX,0x0
MOV byte ptr [RBP + -0x11],AL
JNZ 0x00180276
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX + 0x1]
CMP EAX,0x0
SETZ AL
MOV byte ptr [RBP + -0x11],AL
LAB_00180276:
MOV AL,byte ptr [RBP + -0x11]
TEST AL,0x1
JNZ 0x0018027f
JMP 0x0018028f
LAB_0018027f:
JMP 0x00180281
LAB_00180281:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,-0x4
MOV qword ptr [RBP + -0x10],RAX
JMP 0x00180254
LAB_0018028f:
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,word ptr [RAX]
POP RBP
RET
|
int2 start_of_next_entry(long param_1)
{
bool bVar1;
char *local_18;
local_18 = (char *)(param_1 + -4);
while( true ) {
bVar1 = false;
if (*local_18 == '\0') {
bVar1 = local_18[1] == '\0';
}
if (!bVar1) break;
local_18 = local_18 + -4;
}
return *(int2 *)local_18;
}
| |
27,087 | ma_columndef_write | eloqsql/storage/maria/ma_open.c | my_bool _ma_columndef_write(File file, MARIA_COLUMNDEF *columndef)
{
uchar buff[MARIA_COLUMNDEF_SIZE];
uchar *ptr=buff;
uint low_offset= (uint) (columndef->offset & 0xffff);
uint high_offset= (uint) (columndef->offset >> 16);
mi_int2store(ptr,(ulong) columndef->column_nr); ptr+= 2;
mi_int2store(ptr, low_offset); ptr+= 2;
mi_int2store(ptr,columndef->type); ptr+= 2;
mi_int2store(ptr,columndef->length); ptr+= 2;
mi_int2store(ptr,columndef->fill_length); ptr+= 2;
mi_int2store(ptr,columndef->null_pos); ptr+= 2;
mi_int2store(ptr,columndef->empty_pos); ptr+= 2;
(*ptr++)= columndef->null_bit;
(*ptr++)= columndef->empty_bit;
mi_int2store(ptr, high_offset); ptr+= 2;
ptr[0]= ptr[1]= 0; ptr+= 2; /* For future */
return mysql_file_write(file, buff, (size_t) (ptr-buff), MYF(MY_NABP)) != 0;
} | O0 | c | ma_columndef_write:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movl %edi, -0x24(%rbp)
movq %rsi, -0x30(%rbp)
leaq -0x20(%rbp), %rcx
movq %rcx, -0x38(%rbp)
movq -0x30(%rbp), %rax
movzwl 0x4(%rax), %eax
movl %eax, -0x3c(%rbp)
movq -0x30(%rbp), %rax
movzwl 0x6(%rax), %eax
movl %eax, -0x40(%rbp)
movq -0x30(%rbp), %rax
movzwl 0xa(%rax), %eax
movl %eax, -0x44(%rbp)
movb -0x44(%rbp), %dl
movq -0x38(%rbp), %rax
movb %dl, 0x1(%rax)
movb -0x43(%rbp), %dl
movq -0x38(%rbp), %rax
movb %dl, (%rax)
movq -0x38(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x38(%rbp)
movl -0x3c(%rbp), %eax
movl %eax, -0x48(%rbp)
movb -0x48(%rbp), %dl
movq -0x38(%rbp), %rax
movb %dl, 0x1(%rax)
movb -0x47(%rbp), %dl
movq -0x38(%rbp), %rax
movb %dl, (%rax)
movq -0x38(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x4c(%rbp)
movb -0x4c(%rbp), %dl
movq -0x38(%rbp), %rax
movb %dl, 0x1(%rax)
movb -0x4b(%rbp), %dl
movq -0x38(%rbp), %rax
movb %dl, (%rax)
movq -0x38(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movzwl 0x8(%rax), %eax
movl %eax, -0x50(%rbp)
movb -0x50(%rbp), %dl
movq -0x38(%rbp), %rax
movb %dl, 0x1(%rax)
movb -0x4f(%rbp), %dl
movq -0x38(%rbp), %rax
movb %dl, (%rax)
movq -0x38(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movzwl 0xc(%rax), %eax
movl %eax, -0x54(%rbp)
movb -0x54(%rbp), %dl
movq -0x38(%rbp), %rax
movb %dl, 0x1(%rax)
movb -0x53(%rbp), %dl
movq -0x38(%rbp), %rax
movb %dl, (%rax)
movq -0x38(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movzwl 0xe(%rax), %eax
movl %eax, -0x58(%rbp)
movb -0x58(%rbp), %dl
movq -0x38(%rbp), %rax
movb %dl, 0x1(%rax)
movb -0x57(%rbp), %dl
movq -0x38(%rbp), %rax
movb %dl, (%rax)
movq -0x38(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movzwl 0x10(%rax), %eax
movl %eax, -0x5c(%rbp)
movb -0x5c(%rbp), %dl
movq -0x38(%rbp), %rax
movb %dl, 0x1(%rax)
movb -0x5b(%rbp), %dl
movq -0x38(%rbp), %rax
movb %dl, (%rax)
movq -0x38(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movb 0x12(%rax), %dl
movq -0x38(%rbp), %rax
movq %rax, %rsi
incq %rsi
movq %rsi, -0x38(%rbp)
movb %dl, (%rax)
movq -0x30(%rbp), %rax
movb 0x13(%rax), %dl
movq -0x38(%rbp), %rax
movq %rax, %rsi
incq %rsi
movq %rsi, -0x38(%rbp)
movb %dl, (%rax)
movl -0x40(%rbp), %eax
movl %eax, -0x60(%rbp)
movb -0x60(%rbp), %dl
movq -0x38(%rbp), %rax
movb %dl, 0x1(%rax)
movb -0x5f(%rbp), %dl
movq -0x38(%rbp), %rax
movb %dl, (%rax)
movq -0x38(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movb $0x0, 0x1(%rax)
movq -0x38(%rbp), %rax
movb $0x0, (%rax)
movq -0x38(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x38(%rbp)
movl -0x24(%rbp), %edx
movq -0x38(%rbp), %r8
subq %rcx, %r8
leaq 0xbf452(%rip), %rdi # 0x15283a
movl $0x77b, %esi # imm = 0x77B
movl $0x4, %r9d
callq 0x91d10
testq %rax, %rax
setne %al
movb %al, -0x61(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x9341c
movb -0x61(%rbp), %al
addq $0x70, %rsp
popq %rbp
retq
callq 0x2a250
nopw %cs:(%rax,%rax)
| _ma_columndef_write:
push rbp
mov rbp, rsp
sub rsp, 70h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_24], edi
mov [rbp+var_30], rsi
lea rcx, [rbp+var_20]
mov [rbp+var_38], rcx
mov rax, [rbp+var_30]
movzx eax, word ptr [rax+4]
mov [rbp+var_3C], eax
mov rax, [rbp+var_30]
movzx eax, word ptr [rax+6]
mov [rbp+var_40], eax
mov rax, [rbp+var_30]
movzx eax, word ptr [rax+0Ah]
mov [rbp+var_44], eax
mov dl, byte ptr [rbp+var_44]
mov rax, [rbp+var_38]
mov [rax+1], dl
mov dl, byte ptr [rbp+var_44+1]
mov rax, [rbp+var_38]
mov [rax], dl
mov rax, [rbp+var_38]
add rax, 2
mov [rbp+var_38], rax
mov eax, [rbp+var_3C]
mov [rbp+var_48], eax
mov dl, byte ptr [rbp+var_48]
mov rax, [rbp+var_38]
mov [rax+1], dl
mov dl, byte ptr [rbp+var_48+1]
mov rax, [rbp+var_38]
mov [rax], dl
mov rax, [rbp+var_38]
add rax, 2
mov [rbp+var_38], rax
mov rax, [rbp+var_30]
mov eax, [rax]
mov [rbp+var_4C], eax
mov dl, byte ptr [rbp+var_4C]
mov rax, [rbp+var_38]
mov [rax+1], dl
mov dl, byte ptr [rbp+var_4C+1]
mov rax, [rbp+var_38]
mov [rax], dl
mov rax, [rbp+var_38]
add rax, 2
mov [rbp+var_38], rax
mov rax, [rbp+var_30]
movzx eax, word ptr [rax+8]
mov [rbp+var_50], eax
mov dl, byte ptr [rbp+var_50]
mov rax, [rbp+var_38]
mov [rax+1], dl
mov dl, byte ptr [rbp+var_50+1]
mov rax, [rbp+var_38]
mov [rax], dl
mov rax, [rbp+var_38]
add rax, 2
mov [rbp+var_38], rax
mov rax, [rbp+var_30]
movzx eax, word ptr [rax+0Ch]
mov [rbp+var_54], eax
mov dl, byte ptr [rbp+var_54]
mov rax, [rbp+var_38]
mov [rax+1], dl
mov dl, byte ptr [rbp+var_54+1]
mov rax, [rbp+var_38]
mov [rax], dl
mov rax, [rbp+var_38]
add rax, 2
mov [rbp+var_38], rax
mov rax, [rbp+var_30]
movzx eax, word ptr [rax+0Eh]
mov [rbp+var_58], eax
mov dl, byte ptr [rbp+var_58]
mov rax, [rbp+var_38]
mov [rax+1], dl
mov dl, byte ptr [rbp+var_58+1]
mov rax, [rbp+var_38]
mov [rax], dl
mov rax, [rbp+var_38]
add rax, 2
mov [rbp+var_38], rax
mov rax, [rbp+var_30]
movzx eax, word ptr [rax+10h]
mov [rbp+var_5C], eax
mov dl, byte ptr [rbp+var_5C]
mov rax, [rbp+var_38]
mov [rax+1], dl
mov dl, byte ptr [rbp+var_5C+1]
mov rax, [rbp+var_38]
mov [rax], dl
mov rax, [rbp+var_38]
add rax, 2
mov [rbp+var_38], rax
mov rax, [rbp+var_30]
mov dl, [rax+12h]
mov rax, [rbp+var_38]
mov rsi, rax
inc rsi
mov [rbp+var_38], rsi
mov [rax], dl
mov rax, [rbp+var_30]
mov dl, [rax+13h]
mov rax, [rbp+var_38]
mov rsi, rax
inc rsi
mov [rbp+var_38], rsi
mov [rax], dl
mov eax, [rbp+var_40]
mov [rbp+var_60], eax
mov dl, byte ptr [rbp+var_60]
mov rax, [rbp+var_38]
mov [rax+1], dl
mov dl, byte ptr [rbp+var_60+1]
mov rax, [rbp+var_38]
mov [rax], dl
mov rax, [rbp+var_38]
add rax, 2
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
mov byte ptr [rax+1], 0
mov rax, [rbp+var_38]
mov byte ptr [rax], 0
mov rax, [rbp+var_38]
add rax, 2
mov [rbp+var_38], rax
mov edx, [rbp+var_24]
mov r8, [rbp+var_38]
sub r8, rcx
lea rdi, aWorkspaceLlm4b_18; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 77Bh
mov r9d, 4
call inline_mysql_file_write_0
test rax, rax
setnz al
mov [rbp+var_61], al
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_9341C
mov al, [rbp+var_61]
add rsp, 70h
pop rbp
retn
loc_9341C:
call ___stack_chk_fail
| bool ma_columndef_write(unsigned int a1, long long a2)
{
__int16 v2; // kr00_2
__int16 v3; // kr04_2
__int16 v4; // kr06_2
__int16 v5; // kr08_2
__int16 v6; // kr0A_2
__int16 v7; // kr0C_2
__int16 v9; // [rsp+30h] [rbp-40h]
__int16 v10; // [rsp+34h] [rbp-3Ch]
_BYTE v11[24]; // [rsp+50h] [rbp-20h] BYREF
unsigned long long v12; // [rsp+68h] [rbp-8h]
v12 = __readfsqword(0x28u);
v10 = *(_WORD *)(a2 + 4);
v9 = *(_WORD *)(a2 + 6);
v2 = *(_WORD *)(a2 + 10);
v11[0] = HIBYTE(v2);
v11[1] = v2;
v11[2] = HIBYTE(v10);
v11[3] = v10;
v3 = *(_DWORD *)a2;
v11[4] = HIBYTE(v3);
v11[5] = v3;
v4 = *(_WORD *)(a2 + 8);
v11[6] = HIBYTE(v4);
v11[7] = v4;
v5 = *(_WORD *)(a2 + 12);
v11[8] = HIBYTE(v5);
v11[9] = v5;
v6 = *(_WORD *)(a2 + 14);
v11[10] = HIBYTE(v6);
v11[11] = v6;
v7 = *(_WORD *)(a2 + 16);
v11[12] = HIBYTE(v7);
v11[13] = v7;
v11[14] = *(_BYTE *)(a2 + 18);
v11[15] = *(_BYTE *)(a2 + 19);
v11[16] = HIBYTE(v9);
v11[17] = v9;
v11[19] = 0;
v11[18] = 0;
return inline_mysql_file_write_0(
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_open.c",
0x77Bu,
a1,
(long long)v11,
20LL,
4LL) != 0;
}
| _ma_columndef_write:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV dword ptr [RBP + -0x24],EDI
MOV qword ptr [RBP + -0x30],RSI
LEA RCX,[RBP + -0x20]
MOV qword ptr [RBP + -0x38],RCX
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,word ptr [RAX + 0x4]
MOV dword ptr [RBP + -0x3c],EAX
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,word ptr [RAX + 0x6]
MOV dword ptr [RBP + -0x40],EAX
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,word ptr [RAX + 0xa]
MOV dword ptr [RBP + -0x44],EAX
MOV DL,byte ptr [RBP + -0x44]
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX + 0x1],DL
MOV DL,byte ptr [RBP + -0x43]
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX],DL
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x2
MOV qword ptr [RBP + -0x38],RAX
MOV EAX,dword ptr [RBP + -0x3c]
MOV dword ptr [RBP + -0x48],EAX
MOV DL,byte ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX + 0x1],DL
MOV DL,byte ptr [RBP + -0x47]
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX],DL
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x2
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x4c],EAX
MOV DL,byte ptr [RBP + -0x4c]
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX + 0x1],DL
MOV DL,byte ptr [RBP + -0x4b]
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX],DL
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x2
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,word ptr [RAX + 0x8]
MOV dword ptr [RBP + -0x50],EAX
MOV DL,byte ptr [RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX + 0x1],DL
MOV DL,byte ptr [RBP + -0x4f]
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX],DL
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x2
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,word ptr [RAX + 0xc]
MOV dword ptr [RBP + -0x54],EAX
MOV DL,byte ptr [RBP + -0x54]
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX + 0x1],DL
MOV DL,byte ptr [RBP + -0x53]
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX],DL
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x2
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,word ptr [RAX + 0xe]
MOV dword ptr [RBP + -0x58],EAX
MOV DL,byte ptr [RBP + -0x58]
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX + 0x1],DL
MOV DL,byte ptr [RBP + -0x57]
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX],DL
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x2
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,word ptr [RAX + 0x10]
MOV dword ptr [RBP + -0x5c],EAX
MOV DL,byte ptr [RBP + -0x5c]
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX + 0x1],DL
MOV DL,byte ptr [RBP + -0x5b]
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX],DL
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x2
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV DL,byte ptr [RAX + 0x12]
MOV RAX,qword ptr [RBP + -0x38]
MOV RSI,RAX
INC RSI
MOV qword ptr [RBP + -0x38],RSI
MOV byte ptr [RAX],DL
MOV RAX,qword ptr [RBP + -0x30]
MOV DL,byte ptr [RAX + 0x13]
MOV RAX,qword ptr [RBP + -0x38]
MOV RSI,RAX
INC RSI
MOV qword ptr [RBP + -0x38],RSI
MOV byte ptr [RAX],DL
MOV EAX,dword ptr [RBP + -0x40]
MOV dword ptr [RBP + -0x60],EAX
MOV DL,byte ptr [RBP + -0x60]
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX + 0x1],DL
MOV DL,byte ptr [RBP + -0x5f]
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX],DL
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x2
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX + 0x1],0x0
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x2
MOV qword ptr [RBP + -0x38],RAX
MOV EDX,dword ptr [RBP + -0x24]
MOV R8,qword ptr [RBP + -0x38]
SUB R8,RCX
LEA RDI,[0x25283a]
MOV ESI,0x77b
MOV R9D,0x4
CALL 0x00191d10
TEST RAX,RAX
SETNZ AL
MOV byte ptr [RBP + -0x61],AL
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0019341c
MOV AL,byte ptr [RBP + -0x61]
ADD RSP,0x70
POP RBP
RET
LAB_0019341c:
CALL 0x0012a250
|
int8 _ma_columndef_write(int4 param_1,int4 *param_2)
{
long lVar1;
long in_FS_OFFSET;
int1 local_68;
int1 uStack_67;
int1 local_64;
int1 uStack_63;
int1 local_60;
int1 uStack_5f;
int1 local_5c;
int1 uStack_5b;
int1 local_58;
int1 uStack_57;
int1 local_54;
int1 uStack_53;
int1 local_50;
int1 uStack_4f;
int1 local_4c;
int1 uStack_4b;
int1 local_28;
int1 local_27;
int1 local_26;
int1 local_25;
int1 local_24;
int1 local_23;
int1 local_22;
int1 local_21;
int1 local_20;
int1 local_1f;
int1 local_1e;
int1 local_1d;
int1 local_1c;
int1 local_1b;
int1 local_1a;
int1 local_19;
int1 local_18;
int1 local_17;
int1 local_16;
int1 local_15;
int1 auStack_14 [4];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_4c = (int1)*(int2 *)((long)param_2 + 10);
local_27 = local_4c;
uStack_4b = (int1)((ushort)*(int2 *)((long)param_2 + 10) >> 8);
local_28 = uStack_4b;
local_50 = (int1)*(int2 *)(param_2 + 1);
local_25 = local_50;
uStack_4f = (int1)((ushort)*(int2 *)(param_2 + 1) >> 8);
local_26 = uStack_4f;
local_54 = (int1)*param_2;
local_23 = local_54;
uStack_53 = (int1)((uint)*param_2 >> 8);
local_24 = uStack_53;
local_58 = (int1)*(int2 *)(param_2 + 2);
local_21 = local_58;
uStack_57 = (int1)((ushort)*(int2 *)(param_2 + 2) >> 8);
local_22 = uStack_57;
local_5c = (int1)*(int2 *)(param_2 + 3);
local_1f = local_5c;
uStack_5b = (int1)((ushort)*(int2 *)(param_2 + 3) >> 8);
local_20 = uStack_5b;
local_60 = (int1)*(int2 *)((long)param_2 + 0xe);
local_1d = local_60;
uStack_5f = (int1)((ushort)*(int2 *)((long)param_2 + 0xe) >> 8);
local_1e = uStack_5f;
local_64 = (int1)*(int2 *)(param_2 + 4);
local_1b = local_64;
uStack_63 = (int1)((ushort)*(int2 *)(param_2 + 4) >> 8);
local_1c = uStack_63;
local_1a = *(int1 *)((long)param_2 + 0x12);
local_19 = *(int1 *)((long)param_2 + 0x13);
local_68 = (int1)*(int2 *)((long)param_2 + 6);
local_17 = local_68;
uStack_67 = (int1)((ushort)*(int2 *)((long)param_2 + 6) >> 8);
local_18 = uStack_67;
local_15 = 0;
local_16 = 0;
lVar1 = inline_mysql_file_write
("/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_open.c",0x77b,
param_1,&local_28,auStack_14 + -(long)&local_28,4);
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),lVar1 != 0);
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
27,088 | ma_columndef_write | eloqsql/storage/maria/ma_open.c | my_bool _ma_columndef_write(File file, MARIA_COLUMNDEF *columndef)
{
uchar buff[MARIA_COLUMNDEF_SIZE];
uchar *ptr=buff;
uint low_offset= (uint) (columndef->offset & 0xffff);
uint high_offset= (uint) (columndef->offset >> 16);
mi_int2store(ptr,(ulong) columndef->column_nr); ptr+= 2;
mi_int2store(ptr, low_offset); ptr+= 2;
mi_int2store(ptr,columndef->type); ptr+= 2;
mi_int2store(ptr,columndef->length); ptr+= 2;
mi_int2store(ptr,columndef->fill_length); ptr+= 2;
mi_int2store(ptr,columndef->null_pos); ptr+= 2;
mi_int2store(ptr,columndef->empty_pos); ptr+= 2;
(*ptr++)= columndef->null_bit;
(*ptr++)= columndef->empty_bit;
mi_int2store(ptr, high_offset); ptr+= 2;
ptr[0]= ptr[1]= 0; ptr+= 2; /* For future */
return mysql_file_write(file, buff, (size_t) (ptr-buff), MYF(MY_NABP)) != 0;
} | O3 | c | ma_columndef_write:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x70, %rsp
movl %edi, %ebx
movq %fs:0x28, %rax
movq %rax, -0x18(%rbp)
movl 0x4(%rsi), %eax
movl %eax, %ecx
movzwl 0xa(%rsi), %edx
movb %dl, -0x2f(%rbp)
movb %dh, -0x30(%rbp)
movb %al, -0x2d(%rbp)
movb %ah, -0x2e(%rbp)
movzwl (%rsi), %edx
rolw $0x8, %dx
movw %dx, -0x2c(%rbp)
movzwl 0x8(%rsi), %edx
rolw $0x8, %dx
movw %dx, -0x2a(%rbp)
movzwl 0xc(%rsi), %edx
rolw $0x8, %dx
movw %dx, -0x28(%rbp)
movzwl 0xe(%rsi), %edx
rolw $0x8, %dx
movw %dx, -0x26(%rbp)
movzwl 0x10(%rsi), %edx
rolw $0x8, %dx
shrl $0x10, %ecx
movw %dx, -0x24(%rbp)
movb 0x12(%rsi), %dl
movb %dl, -0x22(%rbp)
movb 0x13(%rsi), %dl
movb %dl, -0x21(%rbp)
movb %cl, -0x1f(%rbp)
shrl $0x18, %eax
movb %al, -0x20(%rbp)
movw $0x0, -0x1e(%rbp)
leaq 0x31a3a7(%rip), %rax # 0x386010
movq (%rax), %rax
leaq -0x80(%rbp), %rdi
movl %ebx, %esi
movl $0x7, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x6bcb5
leaq -0x30(%rbp), %rsi
movl $0x14, %edx
movl $0x4, %ecx
movl %ebx, %edi
callq 0x2efe4
testq %rax, %rax
setne %al
movq %fs:0x28, %rcx
cmpq -0x18(%rbp), %rcx
jne 0x6bccf
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq -0x30(%rbp), %rdx
leaq -0x38(%rbp), %r14
movq %rax, %rdi
movl %ebx, %esi
movq %r14, %rcx
callq 0x2d44c
movq (%r14), %rax
jmp 0x6bc97
callq 0x29250
| _ma_columndef_write:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 70h
mov ebx, edi
mov rax, fs:28h
mov [rbp+var_18], rax
mov eax, [rsi+4]
mov ecx, eax
movzx edx, word ptr [rsi+0Ah]
mov [rbp+var_2F], dl
mov [rbp+var_30], dh
mov [rbp+var_2D], al
mov [rbp+var_2E], ah
movzx edx, word ptr [rsi]
rol dx, 8
mov [rbp+var_2C], dx
movzx edx, word ptr [rsi+8]
rol dx, 8
mov [rbp+var_2A], dx
movzx edx, word ptr [rsi+0Ch]
rol dx, 8
mov [rbp+var_28], dx
movzx edx, word ptr [rsi+0Eh]
rol dx, 8
mov [rbp+var_26], dx
movzx edx, word ptr [rsi+10h]
rol dx, 8
shr ecx, 10h
mov [rbp+var_24], dx
mov dl, [rsi+12h]
mov [rbp+var_22], dl
mov dl, [rsi+13h]
mov [rbp+var_21], dl
mov [rbp+var_1F], cl
shr eax, 18h
mov [rbp+var_20], al
mov [rbp+var_1E], 0
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_80]
mov esi, ebx
mov edx, 7
call qword ptr [rax+158h]
test rax, rax
jnz short loc_6BCB5
lea rsi, [rbp+var_30]
mov edx, 14h
mov ecx, 4
mov edi, ebx
call my_write
loc_6BC97:
test rax, rax
setnz al
mov rcx, fs:28h
cmp rcx, [rbp+var_18]
jnz short loc_6BCCF
add rsp, 70h
pop rbx
pop r14
pop rbp
retn
loc_6BCB5:
lea rdx, [rbp+var_30]
lea r14, [rbp+var_38]
mov rdi, rax
mov esi, ebx
mov rcx, r14
call _ma_columndef_write_cold_1
mov rax, [r14]
jmp short loc_6BC97
loc_6BCCF:
call ___stack_chk_fail
| bool ma_columndef_write(unsigned int a1, long long a2)
{
int v2; // eax
__int16 v3; // kr00_2
long long v4; // rax
long long v5; // rax
_BYTE v7[72]; // [rsp+0h] [rbp-80h] BYREF
long long v8; // [rsp+48h] [rbp-38h] BYREF
_BYTE v9[4]; // [rsp+50h] [rbp-30h] BYREF
__int16 v10; // [rsp+54h] [rbp-2Ch]
__int16 v11; // [rsp+56h] [rbp-2Ah]
__int16 v12; // [rsp+58h] [rbp-28h]
__int16 v13; // [rsp+5Ah] [rbp-26h]
__int16 v14; // [rsp+5Ch] [rbp-24h]
char v15; // [rsp+5Eh] [rbp-22h]
char v16; // [rsp+5Fh] [rbp-21h]
char v17; // [rsp+60h] [rbp-20h]
char v18; // [rsp+61h] [rbp-1Fh]
__int16 v19; // [rsp+62h] [rbp-1Eh]
unsigned long long v20; // [rsp+68h] [rbp-18h]
v20 = __readfsqword(0x28u);
v2 = *(_DWORD *)(a2 + 4);
v3 = *(_WORD *)(a2 + 10);
v9[0] = HIBYTE(v3);
v9[1] = v3;
v9[2] = BYTE1(v2);
v9[3] = v2;
v10 = __ROL2__(*(_WORD *)a2, 8);
v11 = __ROL2__(*(_WORD *)(a2 + 8), 8);
v12 = __ROL2__(*(_WORD *)(a2 + 12), 8);
v13 = __ROL2__(*(_WORD *)(a2 + 14), 8);
v14 = __ROL2__(*(_WORD *)(a2 + 16), 8);
v15 = *(_BYTE *)(a2 + 18);
v16 = *(_BYTE *)(a2 + 19);
v18 = BYTE2(v2);
v17 = HIBYTE(v2);
v19 = 0;
v4 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v7, a1, 7LL);
if ( v4 )
{
ma_columndef_write_cold_1(v4, a1, (long long)v9, &v8);
v5 = v8;
}
else
{
v5 = my_write(a1, (long long)v9, 20LL, 4LL);
}
return v5 != 0;
}
| _ma_columndef_write:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0x70
MOV EBX,EDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x18],RAX
MOV EAX,dword ptr [RSI + 0x4]
MOV ECX,EAX
MOVZX EDX,word ptr [RSI + 0xa]
MOV byte ptr [RBP + -0x2f],DL
MOV byte ptr [RBP + -0x30],DH
MOV byte ptr [RBP + -0x2d],AL
MOV byte ptr [RBP + -0x2e],AH
MOVZX EDX,word ptr [RSI]
ROL DX,0x8
MOV word ptr [RBP + -0x2c],DX
MOVZX EDX,word ptr [RSI + 0x8]
ROL DX,0x8
MOV word ptr [RBP + -0x2a],DX
MOVZX EDX,word ptr [RSI + 0xc]
ROL DX,0x8
MOV word ptr [RBP + -0x28],DX
MOVZX EDX,word ptr [RSI + 0xe]
ROL DX,0x8
MOV word ptr [RBP + -0x26],DX
MOVZX EDX,word ptr [RSI + 0x10]
ROL DX,0x8
SHR ECX,0x10
MOV word ptr [RBP + -0x24],DX
MOV DL,byte ptr [RSI + 0x12]
MOV byte ptr [RBP + -0x22],DL
MOV DL,byte ptr [RSI + 0x13]
MOV byte ptr [RBP + -0x21],DL
MOV byte ptr [RBP + -0x1f],CL
SHR EAX,0x18
MOV byte ptr [RBP + -0x20],AL
MOV word ptr [RBP + -0x1e],0x0
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0x80]
MOV ESI,EBX
MOV EDX,0x7
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x0016bcb5
LEA RSI,[RBP + -0x30]
MOV EDX,0x14
MOV ECX,0x4
MOV EDI,EBX
CALL 0x0012efe4
LAB_0016bc97:
TEST RAX,RAX
SETNZ AL
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x18]
JNZ 0x0016bccf
ADD RSP,0x70
POP RBX
POP R14
POP RBP
RET
LAB_0016bcb5:
LEA RDX,[RBP + -0x30]
LEA R14,[RBP + -0x38]
MOV RDI,RAX
MOV ESI,EBX
MOV RCX,R14
CALL 0x0012d44c
MOV RAX,qword ptr [R14]
JMP 0x0016bc97
LAB_0016bccf:
CALL 0x00129250
|
bool _ma_columndef_write(int4 param_1,ushort *param_2)
{
int4 uVar1;
long lVar2;
long in_FS_OFFSET;
int1 local_88 [72];
long local_40;
int1 local_38;
int1 local_37;
int1 local_36;
int1 local_35;
ushort local_34;
ushort local_32;
ushort local_30;
ushort local_2e;
ushort local_2c;
int1 local_2a;
int1 local_29;
int1 local_28;
int1 local_27;
int2 local_26;
long local_20;
local_20 = *(long *)(in_FS_OFFSET + 0x28);
uVar1 = *(int4 *)(param_2 + 2);
local_37 = (int1)param_2[5];
local_38 = (int1)(param_2[5] >> 8);
local_35 = (int1)uVar1;
local_36 = (int1)((uint)uVar1 >> 8);
local_34 = *param_2 << 8 | *param_2 >> 8;
local_32 = param_2[4] << 8 | param_2[4] >> 8;
local_30 = param_2[6] << 8 | param_2[6] >> 8;
local_2e = param_2[7] << 8 | param_2[7] >> 8;
local_2c = param_2[8] << 8 | param_2[8] >> 8;
local_2a = (int1)param_2[9];
local_29 = *(int1 *)((long)param_2 + 0x13);
local_27 = (int1)((uint)uVar1 >> 0x10);
local_28 = (int1)((uint)uVar1 >> 0x18);
local_26 = 0;
lVar2 = (**(code **)(PSI_server + 0x158))(local_88,param_1,7);
if (lVar2 == 0) {
local_40 = my_write(param_1,&local_38,0x14,4);
}
else {
_ma_columndef_write_cold_1(lVar2,param_1,&local_38,&local_40);
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_20) {
return local_40 != 0;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
27,089 | mj_nc | aimrt_mujoco_sim/_deps/mujoco-src/src/engine/engine_core_constraint.c | static int mj_nc(const mjModel* m, mjData* d, int* nnz) {
int nnzc = 0, nc = 0;
int ispyramid = mj_isPyramidal(m), ncon = d->ncon;
if (mjDISABLED(mjDSBL_CONTACT) || !ncon) {
return 0;
}
mj_markStack(d);
int *chain = mj_stackAllocInt(d, m->nv);
for (int i=0; i < ncon; i++) {
mjContact* con = d->contact + i;
// skip if excluded
if (con->exclude) {
continue;
}
// compute NV only if nnz requested
int NV = 0;
if (nnz) {
// get bodies
int nb = 0, bid[8];
for (int side=0; side < 2; side++) {
// geom
if (con->geom[side] >= 0) {
bid[nb++] = m->geom_bodyid[con->geom[side]];
}
// flex vert
else if (con->vert[side] >= 0) {
bid[nb++] = m->flex_vertbodyid[m->flex_vertadr[con->flex[side]] + con->vert[side]];
}
// flex elem
else {
int f = con->flex[side];
int fdim = m->flex_dim[f];
const int* edata = m->flex_elem + m->flex_elemdataadr[f] + con->elem[side]*(fdim+1);
for (int k=0; k <= fdim; k++) {
bid[nb++] = m->flex_vertbodyid[m->flex_vertadr[f] + edata[k]];
}
}
}
// count non-zeros in merged chain
NV = mj_jacSumCount(m, d, chain, nb, bid);
if (!NV) {
continue;
}
}
// count according to friction type
int dim = con->dim;
if (dim == 1) {
nc++;
nnzc += NV;
} else if (ispyramid) {
nc += 2*(dim-1);
nnzc += 2*(dim-1)*NV;
} else {
nc += dim;
nnzc += dim*NV;
}
}
if (nnz) {
*nnz += nnzc;
}
mj_freeStack(d);
return nc;
} | O0 | c | mj_nc:
subq $0x98, %rsp
movq %rdi, 0x88(%rsp)
movq %rsi, 0x80(%rsp)
movq %rdx, 0x78(%rsp)
movl $0x0, 0x74(%rsp)
movl $0x0, 0x70(%rsp)
movq 0x88(%rsp), %rdi
callq 0x49840
movl %eax, 0x6c(%rsp)
movq 0x80(%rsp), %rax
movl 0x27744(%rax), %eax
movl %eax, 0x68(%rsp)
movq 0x88(%rsp), %rax
movl 0x258(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
jne 0x76cec
cmpl $0x0, 0x68(%rsp)
jne 0x76cfc
movl $0x0, 0x94(%rsp)
jmp 0x7705a
movq 0x80(%rsp), %rdi
callq 0x494c0
movq 0x80(%rsp), %rdi
movq 0x88(%rsp), %rax
movslq 0x4(%rax), %rsi
callq 0x494d0
movq %rax, 0x60(%rsp)
movl $0x0, 0x5c(%rsp)
movl 0x5c(%rsp), %eax
cmpl 0x68(%rsp), %eax
jge 0x7702d
movq 0x80(%rsp), %rax
movq 0x27a58(%rax), %rax
movslq 0x5c(%rsp), %rcx
imulq $0x240, %rcx, %rcx # imm = 0x240
addq %rcx, %rax
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rax
cmpl $0x0, 0x234(%rax)
je 0x76d73
jmp 0x7701d
movl $0x0, 0x4c(%rsp)
cmpq $0x0, 0x78(%rsp)
je 0x76fa3
movl $0x0, 0x48(%rsp)
movl $0x0, 0x1c(%rsp)
cmpl $0x2, 0x1c(%rsp)
jge 0x76f71
movq 0x50(%rsp), %rax
movslq 0x1c(%rsp), %rcx
cmpl $0x0, 0x214(%rax,%rcx,4)
jl 0x76df2
movq 0x88(%rsp), %rax
movq 0x748(%rax), %rax
movq 0x50(%rsp), %rcx
movslq 0x1c(%rsp), %rdx
movslq 0x214(%rcx,%rdx,4), %rcx
movl (%rax,%rcx,4), %ecx
movl 0x48(%rsp), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, 0x48(%rsp)
cltq
movl %ecx, 0x20(%rsp,%rax,4)
jmp 0x76f5f
movq 0x50(%rsp), %rax
movslq 0x1c(%rsp), %rcx
cmpl $0x0, 0x22c(%rax,%rcx,4)
jl 0x76e68
movq 0x88(%rsp), %rax
movq 0xa20(%rax), %rax
movq 0x88(%rsp), %rcx
movq 0x9c0(%rcx), %rcx
movq 0x50(%rsp), %rdx
movslq 0x1c(%rsp), %rsi
movslq 0x21c(%rdx,%rsi,4), %rdx
movl (%rcx,%rdx,4), %ecx
movq 0x50(%rsp), %rdx
movslq 0x1c(%rsp), %rsi
addl 0x22c(%rdx,%rsi,4), %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %ecx
movl 0x48(%rsp), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, 0x48(%rsp)
cltq
movl %ecx, 0x20(%rsp,%rax,4)
jmp 0x76f5d
movq 0x50(%rsp), %rax
movslq 0x1c(%rsp), %rcx
movl 0x21c(%rax,%rcx,4), %eax
movl %eax, 0x18(%rsp)
movq 0x88(%rsp), %rax
movq 0x9a8(%rax), %rax
movslq 0x18(%rsp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, 0x14(%rsp)
movq 0x88(%rsp), %rax
movq 0xa30(%rax), %rax
movq 0x88(%rsp), %rcx
movq 0x9f0(%rcx), %rcx
movslq 0x18(%rsp), %rdx
movslq (%rcx,%rdx,4), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq 0x50(%rsp), %rcx
movslq 0x1c(%rsp), %rdx
movl 0x224(%rcx,%rdx,4), %ecx
movl 0x14(%rsp), %edx
addl $0x1, %edx
imull %edx, %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, 0x8(%rsp)
movl $0x0, 0x4(%rsp)
movl 0x4(%rsp), %eax
cmpl 0x14(%rsp), %eax
jg 0x76f5b
movq 0x88(%rsp), %rax
movq 0xa20(%rax), %rax
movq 0x88(%rsp), %rcx
movq 0x9c0(%rcx), %rcx
movslq 0x18(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
movq 0x8(%rsp), %rdx
movslq 0x4(%rsp), %rsi
addl (%rdx,%rsi,4), %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %ecx
movl 0x48(%rsp), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, 0x48(%rsp)
cltq
movl %ecx, 0x20(%rsp,%rax,4)
movl 0x4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x4(%rsp)
jmp 0x76ef8
jmp 0x76f5d
jmp 0x76f5f
jmp 0x76f61
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x76d97
movq 0x88(%rsp), %rdi
movq 0x80(%rsp), %rsi
movq 0x60(%rsp), %rdx
movl 0x48(%rsp), %ecx
leaq 0x20(%rsp), %r8
callq 0x7a190
movl %eax, 0x4c(%rsp)
cmpl $0x0, 0x4c(%rsp)
jne 0x76fa1
jmp 0x7701d
jmp 0x76fa3
movq 0x50(%rsp), %rax
movl 0x208(%rax), %eax
movl %eax, (%rsp)
cmpl $0x1, (%rsp)
jne 0x76fd0
movl 0x70(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x70(%rsp)
movl 0x4c(%rsp), %eax
addl 0x74(%rsp), %eax
movl %eax, 0x74(%rsp)
jmp 0x7701b
cmpl $0x0, 0x6c(%rsp)
je 0x76ffe
movl (%rsp), %eax
subl $0x1, %eax
shll %eax
addl 0x70(%rsp), %eax
movl %eax, 0x70(%rsp)
movl (%rsp), %eax
subl $0x1, %eax
shll %eax
imull 0x4c(%rsp), %eax
addl 0x74(%rsp), %eax
movl %eax, 0x74(%rsp)
jmp 0x77019
movl (%rsp), %eax
addl 0x70(%rsp), %eax
movl %eax, 0x70(%rsp)
movl (%rsp), %eax
imull 0x4c(%rsp), %eax
addl 0x74(%rsp), %eax
movl %eax, 0x74(%rsp)
jmp 0x7701b
jmp 0x7701d
movl 0x5c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x5c(%rsp)
jmp 0x76d2f
cmpq $0x0, 0x78(%rsp)
je 0x77042
movl 0x74(%rsp), %ecx
movq 0x78(%rsp), %rax
addl (%rax), %ecx
movl %ecx, (%rax)
movq 0x80(%rsp), %rdi
callq 0x49500
movl 0x70(%rsp), %eax
movl %eax, 0x94(%rsp)
movl 0x94(%rsp), %eax
addq $0x98, %rsp
retq
nopl (%rax)
| mj_nc:
sub rsp, 98h
mov [rsp+98h+var_10], rdi
mov [rsp+98h+var_18], rsi
mov [rsp+98h+var_20], rdx
mov [rsp+98h+var_24], 0
mov [rsp+98h+var_28], 0
mov rdi, [rsp+98h+var_10]
call _mj_isPyramidal
mov [rsp+98h+var_2C], eax
mov rax, [rsp+98h+var_18]
mov eax, [rax+27744h]
mov [rsp+98h+var_30], eax
mov rax, [rsp+98h+var_10]
mov eax, [rax+258h]
and eax, 10h
cmp eax, 0
jnz short loc_76CEC
cmp [rsp+98h+var_30], 0
jnz short loc_76CFC
loc_76CEC:
mov [rsp+98h+var_4], 0
jmp loc_7705A
loc_76CFC:
mov rdi, [rsp+98h+var_18]
call _mj_markStack
mov rdi, [rsp+98h+var_18]
mov rax, [rsp+98h+var_10]
movsxd rsi, dword ptr [rax+4]
call _mj_stackAllocInt
mov [rsp+98h+var_38], rax
mov [rsp+98h+var_3C], 0
loc_76D2F:
mov eax, [rsp+98h+var_3C]
cmp eax, [rsp+98h+var_30]
jge loc_7702D
mov rax, [rsp+98h+var_18]
mov rax, [rax+27A58h]
movsxd rcx, [rsp+98h+var_3C]
imul rcx, 240h
add rax, rcx
mov [rsp+98h+var_48], rax
mov rax, [rsp+98h+var_48]
cmp dword ptr [rax+234h], 0
jz short loc_76D73
jmp loc_7701D
loc_76D73:
mov [rsp+98h+var_4C], 0
cmp [rsp+98h+var_20], 0
jz loc_76FA3
mov [rsp+98h+var_50], 0
mov [rsp+98h+var_7C], 0
loc_76D97:
cmp [rsp+98h+var_7C], 2
jge loc_76F71
mov rax, [rsp+98h+var_48]
movsxd rcx, [rsp+98h+var_7C]
cmp dword ptr [rax+rcx*4+214h], 0
jl short loc_76DF2
mov rax, [rsp+98h+var_10]
mov rax, [rax+748h]
mov rcx, [rsp+98h+var_48]
movsxd rdx, [rsp+98h+var_7C]
movsxd rcx, dword ptr [rcx+rdx*4+214h]
mov ecx, [rax+rcx*4]
mov eax, [rsp+98h+var_50]
mov edx, eax
add edx, 1
mov [rsp+98h+var_50], edx
cdqe
mov [rsp+rax*4+98h+var_78], ecx
jmp loc_76F5F
loc_76DF2:
mov rax, [rsp+98h+var_48]
movsxd rcx, [rsp+98h+var_7C]
cmp dword ptr [rax+rcx*4+22Ch], 0
jl short loc_76E68
mov rax, [rsp+98h+var_10]
mov rax, [rax+0A20h]
mov rcx, [rsp+98h+var_10]
mov rcx, [rcx+9C0h]
mov rdx, [rsp+98h+var_48]
movsxd rsi, [rsp+98h+var_7C]
movsxd rdx, dword ptr [rdx+rsi*4+21Ch]
mov ecx, [rcx+rdx*4]
mov rdx, [rsp+98h+var_48]
movsxd rsi, [rsp+98h+var_7C]
add ecx, [rdx+rsi*4+22Ch]
movsxd rcx, ecx
mov ecx, [rax+rcx*4]
mov eax, [rsp+98h+var_50]
mov edx, eax
add edx, 1
mov [rsp+98h+var_50], edx
cdqe
mov [rsp+rax*4+98h+var_78], ecx
jmp loc_76F5D
loc_76E68:
mov rax, [rsp+98h+var_48]
movsxd rcx, [rsp+98h+var_7C]
mov eax, [rax+rcx*4+21Ch]
mov [rsp+98h+var_80], eax
mov rax, [rsp+98h+var_10]
mov rax, [rax+9A8h]
movsxd rcx, [rsp+98h+var_80]
mov eax, [rax+rcx*4]
mov [rsp+98h+var_84], eax
mov rax, [rsp+98h+var_10]
mov rax, [rax+0A30h]
mov rcx, [rsp+98h+var_10]
mov rcx, [rcx+9F0h]
movsxd rdx, [rsp+98h+var_80]
movsxd rcx, dword ptr [rcx+rdx*4]
shl rcx, 2
add rax, rcx
mov rcx, [rsp+98h+var_48]
movsxd rdx, [rsp+98h+var_7C]
mov ecx, [rcx+rdx*4+224h]
mov edx, [rsp+98h+var_84]
add edx, 1
imul ecx, edx
movsxd rcx, ecx
shl rcx, 2
add rax, rcx
mov [rsp+98h+var_90], rax
mov [rsp+98h+var_94], 0
loc_76EF8:
mov eax, [rsp+98h+var_94]
cmp eax, [rsp+98h+var_84]
jg short loc_76F5B
mov rax, [rsp+98h+var_10]
mov rax, [rax+0A20h]
mov rcx, [rsp+98h+var_10]
mov rcx, [rcx+9C0h]
movsxd rdx, [rsp+98h+var_80]
mov ecx, [rcx+rdx*4]
mov rdx, [rsp+98h+var_90]
movsxd rsi, [rsp+98h+var_94]
add ecx, [rdx+rsi*4]
movsxd rcx, ecx
mov ecx, [rax+rcx*4]
mov eax, [rsp+98h+var_50]
mov edx, eax
add edx, 1
mov [rsp+98h+var_50], edx
cdqe
mov [rsp+rax*4+98h+var_78], ecx
mov eax, [rsp+98h+var_94]
add eax, 1
mov [rsp+98h+var_94], eax
jmp short loc_76EF8
loc_76F5B:
jmp short $+2
loc_76F5D:
jmp short $+2
loc_76F5F:
jmp short $+2
loc_76F61:
mov eax, [rsp+98h+var_7C]
add eax, 1
mov [rsp+98h+var_7C], eax
jmp loc_76D97
loc_76F71:
mov rdi, [rsp+98h+var_10]
mov rsi, [rsp+98h+var_18]
mov rdx, [rsp+98h+var_38]
mov ecx, [rsp+98h+var_50]
lea r8, [rsp+98h+var_78]
call mj_jacSumCount
mov [rsp+98h+var_4C], eax
cmp [rsp+98h+var_4C], 0
jnz short loc_76FA1
jmp short loc_7701D
loc_76FA1:
jmp short $+2
loc_76FA3:
mov rax, [rsp+98h+var_48]
mov eax, [rax+208h]
mov [rsp+98h+var_98], eax
cmp [rsp+98h+var_98], 1
jnz short loc_76FD0
mov eax, [rsp+98h+var_28]
add eax, 1
mov [rsp+98h+var_28], eax
mov eax, [rsp+98h+var_4C]
add eax, [rsp+98h+var_24]
mov [rsp+98h+var_24], eax
jmp short loc_7701B
loc_76FD0:
cmp [rsp+98h+var_2C], 0
jz short loc_76FFE
mov eax, [rsp+98h+var_98]
sub eax, 1
shl eax, 1
add eax, [rsp+98h+var_28]
mov [rsp+98h+var_28], eax
mov eax, [rsp+98h+var_98]
sub eax, 1
shl eax, 1
imul eax, [rsp+98h+var_4C]
add eax, [rsp+98h+var_24]
mov [rsp+98h+var_24], eax
jmp short loc_77019
loc_76FFE:
mov eax, [rsp+98h+var_98]
add eax, [rsp+98h+var_28]
mov [rsp+98h+var_28], eax
mov eax, [rsp+98h+var_98]
imul eax, [rsp+98h+var_4C]
add eax, [rsp+98h+var_24]
mov [rsp+98h+var_24], eax
loc_77019:
jmp short $+2
loc_7701B:
jmp short $+2
loc_7701D:
mov eax, [rsp+98h+var_3C]
add eax, 1
mov [rsp+98h+var_3C], eax
jmp loc_76D2F
loc_7702D:
cmp [rsp+98h+var_20], 0
jz short loc_77042
mov ecx, [rsp+98h+var_24]
mov rax, [rsp+98h+var_20]
add ecx, [rax]
mov [rax], ecx
loc_77042:
mov rdi, [rsp+98h+var_18]
call _mj_freeStack
mov eax, [rsp+98h+var_28]
mov [rsp+98h+var_4], eax
loc_7705A:
mov eax, [rsp+98h+var_4]
add rsp, 98h
retn
| long long mj_nc(long long a1, long long a2, _DWORD *a3)
{
long long v3; // rdx
int v4; // ecx
int v5; // eax
int v6; // ecx
int v7; // eax
int v8; // ecx
int v9; // eax
int v11; // [rsp+0h] [rbp-98h]
int k; // [rsp+4h] [rbp-94h]
long long v13; // [rsp+8h] [rbp-90h]
int v14; // [rsp+14h] [rbp-84h]
int v15; // [rsp+18h] [rbp-80h]
int j; // [rsp+1Ch] [rbp-7Ch]
_DWORD v17[10]; // [rsp+20h] [rbp-78h] BYREF
unsigned int v18; // [rsp+48h] [rbp-50h]
int v19; // [rsp+4Ch] [rbp-4Ch]
long long v20; // [rsp+50h] [rbp-48h]
int i; // [rsp+5Ch] [rbp-3Ch]
long long v22; // [rsp+60h] [rbp-38h]
int v23; // [rsp+68h] [rbp-30h]
BOOL isPyramidal; // [rsp+6Ch] [rbp-2Ch]
unsigned int v25; // [rsp+70h] [rbp-28h]
int v26; // [rsp+74h] [rbp-24h]
_DWORD *v27; // [rsp+78h] [rbp-20h]
long long v28; // [rsp+80h] [rbp-18h]
long long v29; // [rsp+88h] [rbp-10h]
v29 = a1;
v28 = a2;
v27 = a3;
v26 = 0;
v25 = 0;
isPyramidal = mj_isPyramidal(a1);
v23 = *(_DWORD *)(a2 + 161604);
if ( (*(_DWORD *)(a1 + 600) & 0x10) == 0 && v23 )
{
mj_markStack(v28);
v22 = mj_stackAllocInt(v28, *(int *)(v29 + 4), v3);
for ( i = 0; i < v23; ++i )
{
v20 = 576LL * i + *(_QWORD *)(v28 + 162392);
if ( !*(_DWORD *)(v20 + 564) )
{
v19 = 0;
if ( !v27 )
goto LABEL_19;
v18 = 0;
for ( j = 0; j < 2; ++j )
{
if ( *(int *)(v20 + 4LL * j + 532) < 0 )
{
if ( *(int *)(v20 + 4LL * j + 556) < 0 )
{
v15 = *(_DWORD *)(v20 + 4LL * j + 540);
v14 = *(_DWORD *)(*(_QWORD *)(v29 + 2472) + 4LL * v15);
v13 = 4LL * (v14 + 1) * *(_DWORD *)(v20 + 4LL * j + 548)
+ 4LL * *(int *)(*(_QWORD *)(v29 + 2544) + 4LL * v15)
+ *(_QWORD *)(v29 + 2608);
for ( k = 0; k <= v14; ++k )
{
v8 = *(_DWORD *)(*(_QWORD *)(v29 + 2592)
+ 4LL * (*(_DWORD *)(v13 + 4LL * k) + *(_DWORD *)(*(_QWORD *)(v29 + 2496) + 4LL * v15)));
v9 = v18++;
v17[v9] = v8;
}
}
else
{
v6 = *(_DWORD *)(*(_QWORD *)(v29 + 2592)
+ 4LL
* (*(_DWORD *)(v20 + 4LL * j + 556)
+ *(_DWORD *)(*(_QWORD *)(v29 + 2496) + 4LL * *(int *)(v20 + 4LL * j + 540))));
v7 = v18++;
v17[v7] = v6;
}
}
else
{
v4 = *(_DWORD *)(*(_QWORD *)(v29 + 1864) + 4LL * *(int *)(v20 + 4LL * j + 532));
v5 = v18++;
v17[v5] = v4;
}
}
v19 = mj_jacSumCount(v29, v28, v22, v18, v17);
if ( v19 )
{
LABEL_19:
v11 = *(_DWORD *)(v20 + 520);
if ( v11 == 1 )
{
++v25;
v26 += v19;
}
else if ( isPyramidal )
{
v25 += 2 * (v11 - 1);
v26 += v19 * 2 * (v11 - 1);
}
else
{
v25 += v11;
v26 += v19 * v11;
}
}
}
}
if ( v27 )
*v27 += v26;
mj_freeStack(v28);
return v25;
}
else
{
return 0;
}
}
| mj_nc:
SUB RSP,0x98
MOV qword ptr [RSP + 0x88],RDI
MOV qword ptr [RSP + 0x80],RSI
MOV qword ptr [RSP + 0x78],RDX
MOV dword ptr [RSP + 0x74],0x0
MOV dword ptr [RSP + 0x70],0x0
MOV RDI,qword ptr [RSP + 0x88]
CALL 0x00149840
MOV dword ptr [RSP + 0x6c],EAX
MOV RAX,qword ptr [RSP + 0x80]
MOV EAX,dword ptr [RAX + 0x27744]
MOV dword ptr [RSP + 0x68],EAX
MOV RAX,qword ptr [RSP + 0x88]
MOV EAX,dword ptr [RAX + 0x258]
AND EAX,0x10
CMP EAX,0x0
JNZ 0x00176cec
CMP dword ptr [RSP + 0x68],0x0
JNZ 0x00176cfc
LAB_00176cec:
MOV dword ptr [RSP + 0x94],0x0
JMP 0x0017705a
LAB_00176cfc:
MOV RDI,qword ptr [RSP + 0x80]
CALL 0x001494c0
MOV RDI,qword ptr [RSP + 0x80]
MOV RAX,qword ptr [RSP + 0x88]
MOVSXD RSI,dword ptr [RAX + 0x4]
CALL 0x001494d0
MOV qword ptr [RSP + 0x60],RAX
MOV dword ptr [RSP + 0x5c],0x0
LAB_00176d2f:
MOV EAX,dword ptr [RSP + 0x5c]
CMP EAX,dword ptr [RSP + 0x68]
JGE 0x0017702d
MOV RAX,qword ptr [RSP + 0x80]
MOV RAX,qword ptr [RAX + 0x27a58]
MOVSXD RCX,dword ptr [RSP + 0x5c]
IMUL RCX,RCX,0x240
ADD RAX,RCX
MOV qword ptr [RSP + 0x50],RAX
MOV RAX,qword ptr [RSP + 0x50]
CMP dword ptr [RAX + 0x234],0x0
JZ 0x00176d73
JMP 0x0017701d
LAB_00176d73:
MOV dword ptr [RSP + 0x4c],0x0
CMP qword ptr [RSP + 0x78],0x0
JZ 0x00176fa3
MOV dword ptr [RSP + 0x48],0x0
MOV dword ptr [RSP + 0x1c],0x0
LAB_00176d97:
CMP dword ptr [RSP + 0x1c],0x2
JGE 0x00176f71
MOV RAX,qword ptr [RSP + 0x50]
MOVSXD RCX,dword ptr [RSP + 0x1c]
CMP dword ptr [RAX + RCX*0x4 + 0x214],0x0
JL 0x00176df2
MOV RAX,qword ptr [RSP + 0x88]
MOV RAX,qword ptr [RAX + 0x748]
MOV RCX,qword ptr [RSP + 0x50]
MOVSXD RDX,dword ptr [RSP + 0x1c]
MOVSXD RCX,dword ptr [RCX + RDX*0x4 + 0x214]
MOV ECX,dword ptr [RAX + RCX*0x4]
MOV EAX,dword ptr [RSP + 0x48]
MOV EDX,EAX
ADD EDX,0x1
MOV dword ptr [RSP + 0x48],EDX
CDQE
MOV dword ptr [RSP + RAX*0x4 + 0x20],ECX
JMP 0x00176f5f
LAB_00176df2:
MOV RAX,qword ptr [RSP + 0x50]
MOVSXD RCX,dword ptr [RSP + 0x1c]
CMP dword ptr [RAX + RCX*0x4 + 0x22c],0x0
JL 0x00176e68
MOV RAX,qword ptr [RSP + 0x88]
MOV RAX,qword ptr [RAX + 0xa20]
MOV RCX,qword ptr [RSP + 0x88]
MOV RCX,qword ptr [RCX + 0x9c0]
MOV RDX,qword ptr [RSP + 0x50]
MOVSXD RSI,dword ptr [RSP + 0x1c]
MOVSXD RDX,dword ptr [RDX + RSI*0x4 + 0x21c]
MOV ECX,dword ptr [RCX + RDX*0x4]
MOV RDX,qword ptr [RSP + 0x50]
MOVSXD RSI,dword ptr [RSP + 0x1c]
ADD ECX,dword ptr [RDX + RSI*0x4 + 0x22c]
MOVSXD RCX,ECX
MOV ECX,dword ptr [RAX + RCX*0x4]
MOV EAX,dword ptr [RSP + 0x48]
MOV EDX,EAX
ADD EDX,0x1
MOV dword ptr [RSP + 0x48],EDX
CDQE
MOV dword ptr [RSP + RAX*0x4 + 0x20],ECX
JMP 0x00176f5d
LAB_00176e68:
MOV RAX,qword ptr [RSP + 0x50]
MOVSXD RCX,dword ptr [RSP + 0x1c]
MOV EAX,dword ptr [RAX + RCX*0x4 + 0x21c]
MOV dword ptr [RSP + 0x18],EAX
MOV RAX,qword ptr [RSP + 0x88]
MOV RAX,qword ptr [RAX + 0x9a8]
MOVSXD RCX,dword ptr [RSP + 0x18]
MOV EAX,dword ptr [RAX + RCX*0x4]
MOV dword ptr [RSP + 0x14],EAX
MOV RAX,qword ptr [RSP + 0x88]
MOV RAX,qword ptr [RAX + 0xa30]
MOV RCX,qword ptr [RSP + 0x88]
MOV RCX,qword ptr [RCX + 0x9f0]
MOVSXD RDX,dword ptr [RSP + 0x18]
MOVSXD RCX,dword ptr [RCX + RDX*0x4]
SHL RCX,0x2
ADD RAX,RCX
MOV RCX,qword ptr [RSP + 0x50]
MOVSXD RDX,dword ptr [RSP + 0x1c]
MOV ECX,dword ptr [RCX + RDX*0x4 + 0x224]
MOV EDX,dword ptr [RSP + 0x14]
ADD EDX,0x1
IMUL ECX,EDX
MOVSXD RCX,ECX
SHL RCX,0x2
ADD RAX,RCX
MOV qword ptr [RSP + 0x8],RAX
MOV dword ptr [RSP + 0x4],0x0
LAB_00176ef8:
MOV EAX,dword ptr [RSP + 0x4]
CMP EAX,dword ptr [RSP + 0x14]
JG 0x00176f5b
MOV RAX,qword ptr [RSP + 0x88]
MOV RAX,qword ptr [RAX + 0xa20]
MOV RCX,qword ptr [RSP + 0x88]
MOV RCX,qword ptr [RCX + 0x9c0]
MOVSXD RDX,dword ptr [RSP + 0x18]
MOV ECX,dword ptr [RCX + RDX*0x4]
MOV RDX,qword ptr [RSP + 0x8]
MOVSXD RSI,dword ptr [RSP + 0x4]
ADD ECX,dword ptr [RDX + RSI*0x4]
MOVSXD RCX,ECX
MOV ECX,dword ptr [RAX + RCX*0x4]
MOV EAX,dword ptr [RSP + 0x48]
MOV EDX,EAX
ADD EDX,0x1
MOV dword ptr [RSP + 0x48],EDX
CDQE
MOV dword ptr [RSP + RAX*0x4 + 0x20],ECX
MOV EAX,dword ptr [RSP + 0x4]
ADD EAX,0x1
MOV dword ptr [RSP + 0x4],EAX
JMP 0x00176ef8
LAB_00176f5b:
JMP 0x00176f5d
LAB_00176f5d:
JMP 0x00176f5f
LAB_00176f5f:
JMP 0x00176f61
LAB_00176f61:
MOV EAX,dword ptr [RSP + 0x1c]
ADD EAX,0x1
MOV dword ptr [RSP + 0x1c],EAX
JMP 0x00176d97
LAB_00176f71:
MOV RDI,qword ptr [RSP + 0x88]
MOV RSI,qword ptr [RSP + 0x80]
MOV RDX,qword ptr [RSP + 0x60]
MOV ECX,dword ptr [RSP + 0x48]
LEA R8,[RSP + 0x20]
CALL 0x0017a190
MOV dword ptr [RSP + 0x4c],EAX
CMP dword ptr [RSP + 0x4c],0x0
JNZ 0x00176fa1
JMP 0x0017701d
LAB_00176fa1:
JMP 0x00176fa3
LAB_00176fa3:
MOV RAX,qword ptr [RSP + 0x50]
MOV EAX,dword ptr [RAX + 0x208]
MOV dword ptr [RSP],EAX
CMP dword ptr [RSP],0x1
JNZ 0x00176fd0
MOV EAX,dword ptr [RSP + 0x70]
ADD EAX,0x1
MOV dword ptr [RSP + 0x70],EAX
MOV EAX,dword ptr [RSP + 0x4c]
ADD EAX,dword ptr [RSP + 0x74]
MOV dword ptr [RSP + 0x74],EAX
JMP 0x0017701b
LAB_00176fd0:
CMP dword ptr [RSP + 0x6c],0x0
JZ 0x00176ffe
MOV EAX,dword ptr [RSP]
SUB EAX,0x1
SHL EAX,0x1
ADD EAX,dword ptr [RSP + 0x70]
MOV dword ptr [RSP + 0x70],EAX
MOV EAX,dword ptr [RSP]
SUB EAX,0x1
SHL EAX,0x1
IMUL EAX,dword ptr [RSP + 0x4c]
ADD EAX,dword ptr [RSP + 0x74]
MOV dword ptr [RSP + 0x74],EAX
JMP 0x00177019
LAB_00176ffe:
MOV EAX,dword ptr [RSP]
ADD EAX,dword ptr [RSP + 0x70]
MOV dword ptr [RSP + 0x70],EAX
MOV EAX,dword ptr [RSP]
IMUL EAX,dword ptr [RSP + 0x4c]
ADD EAX,dword ptr [RSP + 0x74]
MOV dword ptr [RSP + 0x74],EAX
LAB_00177019:
JMP 0x0017701b
LAB_0017701b:
JMP 0x0017701d
LAB_0017701d:
MOV EAX,dword ptr [RSP + 0x5c]
ADD EAX,0x1
MOV dword ptr [RSP + 0x5c],EAX
JMP 0x00176d2f
LAB_0017702d:
CMP qword ptr [RSP + 0x78],0x0
JZ 0x00177042
MOV ECX,dword ptr [RSP + 0x74]
MOV RAX,qword ptr [RSP + 0x78]
ADD ECX,dword ptr [RAX]
MOV dword ptr [RAX],ECX
LAB_00177042:
MOV RDI,qword ptr [RSP + 0x80]
CALL 0x00149500
MOV EAX,dword ptr [RSP + 0x70]
MOV dword ptr [RSP + 0x94],EAX
LAB_0017705a:
MOV EAX,dword ptr [RSP + 0x94]
ADD RSP,0x98
RET
|
int mj_nc(long param_1,long param_2,int *param_3)
{
int iVar1;
int iVar2;
int iVar3;
int iVar4;
long lVar5;
long lVar6;
int local_94;
int local_7c;
int4 local_78 [10];
int local_50;
int local_4c;
long local_48;
int local_3c;
int8 local_38;
int local_30;
int local_2c;
int local_28;
int local_24;
int *local_20;
long local_18;
long local_10;
int local_4;
local_24 = 0;
local_28 = 0;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
local_2c = mj_isPyramidal(param_1);
local_30 = *(int *)(local_18 + 0x27744);
if (((*(uint *)(local_10 + 600) & 0x10) == 0) && (local_30 != 0)) {
mj_markStack(local_18);
local_38 = mj_stackAllocInt(local_18,(long)*(int *)(local_10 + 4));
for (local_3c = 0; local_3c < local_30; local_3c = local_3c + 1) {
local_48 = *(long *)(local_18 + 0x27a58) + (long)local_3c * 0x240;
if (*(int *)(local_48 + 0x234) == 0) {
local_4c = 0;
if (local_20 != (int *)0x0) {
local_50 = 0;
for (local_7c = 0; local_7c < 2; local_7c = local_7c + 1) {
if (*(int *)(local_48 + 0x214 + (long)local_7c * 4) < 0) {
if (*(int *)(local_48 + 0x22c + (long)local_7c * 4) < 0) {
iVar1 = *(int *)(local_48 + 0x21c + (long)local_7c * 4);
iVar4 = *(int *)(*(long *)(local_10 + 0x9a8) + (long)iVar1 * 4);
lVar5 = *(long *)(local_10 + 0xa30);
iVar2 = *(int *)(*(long *)(local_10 + 0x9f0) + (long)iVar1 * 4);
iVar3 = *(int *)(local_48 + 0x224 + (long)local_7c * 4);
for (local_94 = 0; local_94 <= iVar4; local_94 = local_94 + 1) {
lVar6 = (long)local_50;
local_50 = local_50 + 1;
local_78[lVar6] =
*(int4 *)
(*(long *)(local_10 + 0xa20) +
(long)(*(int *)(*(long *)(local_10 + 0x9c0) + (long)iVar1 * 4) +
*(int *)(lVar5 + (long)iVar2 * 4 + (long)(iVar3 * (iVar4 + 1)) * 4 +
(long)local_94 * 4)) * 4);
}
}
else {
lVar5 = (long)local_50;
local_50 = local_50 + 1;
local_78[lVar5] =
*(int4 *)
(*(long *)(local_10 + 0xa20) +
(long)(*(int *)(*(long *)(local_10 + 0x9c0) +
(long)*(int *)(local_48 + 0x21c + (long)local_7c * 4) * 4) +
*(int *)(local_48 + 0x22c + (long)local_7c * 4)) * 4);
}
}
else {
lVar5 = (long)local_50;
local_50 = local_50 + 1;
local_78[lVar5] =
*(int4 *)
(*(long *)(local_10 + 0x748) +
(long)*(int *)(local_48 + 0x214 + (long)local_7c * 4) * 4);
}
}
local_4c = mj_jacSumCount(local_10,local_18,local_38,local_50,local_78);
if (local_4c == 0) goto LAB_0017701d;
}
iVar1 = *(int *)(local_48 + 0x208);
if (iVar1 == 1) {
local_28 = local_28 + 1;
iVar4 = local_4c;
}
else {
iVar4 = iVar1;
if (local_2c != 0) {
iVar4 = iVar1 + -1;
iVar1 = (iVar1 + -1) * 2;
iVar4 = iVar4 * 2;
}
iVar4 = iVar4 * local_4c;
local_28 = iVar1 + local_28;
}
local_24 = iVar4 + local_24;
}
LAB_0017701d:
}
if (local_20 != (int *)0x0) {
*local_20 = local_24 + *local_20;
}
mj_freeStack(local_18);
local_4 = local_28;
}
else {
local_4 = 0;
}
return local_4;
}
| |
27,090 | LefDefParser::lefiVia::lefiVia() | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiVia.cpp | lefiVia::lefiVia()
: name_(NULL),
nameSize_(0),
hasDefault_(0),
hasGenerated_(0),
hasResistance_(0),
hasForeignPnt_(0),
hasTopOfStack_(0),
numProps_(0),
propsAllocated_(0),
propName_(NULL),
propValue_(NULL),
propDValue_(NULL),
propType_(NULL),
numLayers_(0),
layersAllocated_(0),
layers_(NULL),
resistance_(0.0),
foreign_(NULL),
foreignX_(0.0),
foreignY_(0.0),
foreignOrient_(0),
viaRuleName_(NULL),
xSize_(0.0),
ySize_(0.0),
botLayer_(NULL),
cutLayer_(NULL),
topLayer_(NULL),
xSpacing_(0.0),
ySpacing_(0.0),
xBotEnc_(0.0),
yBotEnc_(0.0),
xTopEnc_(0.0),
yTopEnc_(0.0),
numRows_(0),
numCols_(0),
xOffset_(0.0),
yOffset_(0.0),
xBotOs_(0.0),
yBotOs_(0.0),
xTopOs_(0.0),
yTopOs_(0.0),
cutPattern_(NULL)
{
Init();
} | O0 | cpp | LefDefParser::lefiVia::lefiVia():
pushq %rax
movq %rdi, (%rsp)
movq (%rsp), %rdi
movq $0x0, (%rdi)
movl $0x0, 0x8(%rdi)
movl $0x0, 0xc(%rdi)
movl $0x0, 0x10(%rdi)
movl $0x0, 0x14(%rdi)
movl $0x0, 0x18(%rdi)
movl $0x0, 0x1c(%rdi)
movl $0x0, 0x20(%rdi)
movl $0x0, 0x24(%rdi)
movq $0x0, 0x28(%rdi)
movq $0x0, 0x30(%rdi)
movq $0x0, 0x38(%rdi)
movq $0x0, 0x40(%rdi)
movl $0x0, 0x48(%rdi)
movl $0x0, 0x4c(%rdi)
movq $0x0, 0x50(%rdi)
xorps %xmm0, %xmm0
movsd %xmm0, 0x58(%rdi)
movq $0x0, 0x60(%rdi)
xorps %xmm0, %xmm0
movsd %xmm0, 0x68(%rdi)
xorps %xmm0, %xmm0
movsd %xmm0, 0x70(%rdi)
movl $0x0, 0x78(%rdi)
movq $0x0, 0x80(%rdi)
xorps %xmm0, %xmm0
movsd %xmm0, 0x88(%rdi)
xorps %xmm0, %xmm0
movsd %xmm0, 0x90(%rdi)
movq $0x0, 0x98(%rdi)
movq $0x0, 0xa0(%rdi)
movq $0x0, 0xa8(%rdi)
xorps %xmm0, %xmm0
movsd %xmm0, 0xb0(%rdi)
xorps %xmm0, %xmm0
movsd %xmm0, 0xb8(%rdi)
xorps %xmm0, %xmm0
movsd %xmm0, 0xc0(%rdi)
xorps %xmm0, %xmm0
movsd %xmm0, 0xc8(%rdi)
xorps %xmm0, %xmm0
movsd %xmm0, 0xd0(%rdi)
xorps %xmm0, %xmm0
movsd %xmm0, 0xd8(%rdi)
movl $0x0, 0xe0(%rdi)
movl $0x0, 0xe4(%rdi)
xorps %xmm0, %xmm0
movsd %xmm0, 0xe8(%rdi)
xorps %xmm0, %xmm0
movsd %xmm0, 0xf0(%rdi)
xorps %xmm0, %xmm0
movsd %xmm0, 0xf8(%rdi)
xorps %xmm0, %xmm0
movsd %xmm0, 0x100(%rdi)
xorps %xmm0, %xmm0
movsd %xmm0, 0x108(%rdi)
xorps %xmm0, %xmm0
movsd %xmm0, 0x110(%rdi)
movq $0x0, 0x118(%rdi)
callq 0x160e0
popq %rax
retq
nopw %cs:(%rax,%rax)
| _ZN12LefDefParser7lefiViaC2Ev:
push rax
mov [rsp+8+var_8], rdi
mov rdi, [rsp+8+var_8]; this
mov qword ptr [rdi], 0
mov dword ptr [rdi+8], 0
mov dword ptr [rdi+0Ch], 0
mov dword ptr [rdi+10h], 0
mov dword ptr [rdi+14h], 0
mov dword ptr [rdi+18h], 0
mov dword ptr [rdi+1Ch], 0
mov dword ptr [rdi+20h], 0
mov dword ptr [rdi+24h], 0
mov qword ptr [rdi+28h], 0
mov qword ptr [rdi+30h], 0
mov qword ptr [rdi+38h], 0
mov qword ptr [rdi+40h], 0
mov dword ptr [rdi+48h], 0
mov dword ptr [rdi+4Ch], 0
mov qword ptr [rdi+50h], 0
xorps xmm0, xmm0
movsd qword ptr [rdi+58h], xmm0
mov qword ptr [rdi+60h], 0
xorps xmm0, xmm0
movsd qword ptr [rdi+68h], xmm0
xorps xmm0, xmm0
movsd qword ptr [rdi+70h], xmm0
mov dword ptr [rdi+78h], 0
mov qword ptr [rdi+80h], 0
xorps xmm0, xmm0
movsd qword ptr [rdi+88h], xmm0
xorps xmm0, xmm0
movsd qword ptr [rdi+90h], xmm0
mov qword ptr [rdi+98h], 0
mov qword ptr [rdi+0A0h], 0
mov qword ptr [rdi+0A8h], 0
xorps xmm0, xmm0
movsd qword ptr [rdi+0B0h], xmm0
xorps xmm0, xmm0
movsd qword ptr [rdi+0B8h], xmm0
xorps xmm0, xmm0
movsd qword ptr [rdi+0C0h], xmm0
xorps xmm0, xmm0
movsd qword ptr [rdi+0C8h], xmm0
xorps xmm0, xmm0
movsd qword ptr [rdi+0D0h], xmm0
xorps xmm0, xmm0
movsd qword ptr [rdi+0D8h], xmm0
mov dword ptr [rdi+0E0h], 0
mov dword ptr [rdi+0E4h], 0
xorps xmm0, xmm0
movsd qword ptr [rdi+0E8h], xmm0
xorps xmm0, xmm0
movsd qword ptr [rdi+0F0h], xmm0
xorps xmm0, xmm0
movsd qword ptr [rdi+0F8h], xmm0
xorps xmm0, xmm0
movsd qword ptr [rdi+100h], xmm0
xorps xmm0, xmm0
movsd qword ptr [rdi+108h], xmm0
xorps xmm0, xmm0
movsd qword ptr [rdi+110h], xmm0
mov qword ptr [rdi+118h], 0
call _ZN12LefDefParser7lefiVia4InitEv; LefDefParser::lefiVia::Init(void)
pop rax
retn
| LefDefParser::lefiVia * LefDefParser::lefiVia::lefiVia(LefDefParser::lefiVia *this)
{
*(_QWORD *)this = 0LL;
*((_DWORD *)this + 2) = 0;
*((_DWORD *)this + 3) = 0;
*((_DWORD *)this + 4) = 0;
*((_DWORD *)this + 5) = 0;
*((_DWORD *)this + 6) = 0;
*((_DWORD *)this + 7) = 0;
*((_DWORD *)this + 8) = 0;
*((_DWORD *)this + 9) = 0;
*((_QWORD *)this + 5) = 0LL;
*((_QWORD *)this + 6) = 0LL;
*((_QWORD *)this + 7) = 0LL;
*((_QWORD *)this + 8) = 0LL;
*((_DWORD *)this + 18) = 0;
*((_DWORD *)this + 19) = 0;
*((_QWORD *)this + 10) = 0LL;
*((_QWORD *)this + 11) = 0LL;
*((_QWORD *)this + 12) = 0LL;
*((_QWORD *)this + 13) = 0LL;
*((_QWORD *)this + 14) = 0LL;
*((_DWORD *)this + 30) = 0;
*((_QWORD *)this + 16) = 0LL;
*((_QWORD *)this + 17) = 0LL;
*((_QWORD *)this + 18) = 0LL;
*((_QWORD *)this + 19) = 0LL;
*((_QWORD *)this + 20) = 0LL;
*((_QWORD *)this + 21) = 0LL;
*((_QWORD *)this + 22) = 0LL;
*((_QWORD *)this + 23) = 0LL;
*((_QWORD *)this + 24) = 0LL;
*((_QWORD *)this + 25) = 0LL;
*((_QWORD *)this + 26) = 0LL;
*((_QWORD *)this + 27) = 0LL;
*((_DWORD *)this + 56) = 0;
*((_DWORD *)this + 57) = 0;
*((_QWORD *)this + 29) = 0LL;
*((_QWORD *)this + 30) = 0LL;
*((_QWORD *)this + 31) = 0LL;
*((_QWORD *)this + 32) = 0LL;
*((_QWORD *)this + 33) = 0LL;
*((_OWORD *)this + 17) = 0uLL;
LefDefParser::lefiVia::Init(this);
return this;
}
| lefiVia:
PUSH RAX
MOV qword ptr [RSP],RDI
MOV RDI,qword ptr [RSP]
MOV qword ptr [RDI],0x0
MOV dword ptr [RDI + 0x8],0x0
MOV dword ptr [RDI + 0xc],0x0
MOV dword ptr [RDI + 0x10],0x0
MOV dword ptr [RDI + 0x14],0x0
MOV dword ptr [RDI + 0x18],0x0
MOV dword ptr [RDI + 0x1c],0x0
MOV dword ptr [RDI + 0x20],0x0
MOV dword ptr [RDI + 0x24],0x0
MOV qword ptr [RDI + 0x28],0x0
MOV qword ptr [RDI + 0x30],0x0
MOV qword ptr [RDI + 0x38],0x0
MOV qword ptr [RDI + 0x40],0x0
MOV dword ptr [RDI + 0x48],0x0
MOV dword ptr [RDI + 0x4c],0x0
MOV qword ptr [RDI + 0x50],0x0
XORPS XMM0,XMM0
MOVSD qword ptr [RDI + 0x58],XMM0
MOV qword ptr [RDI + 0x60],0x0
XORPS XMM0,XMM0
MOVSD qword ptr [RDI + 0x68],XMM0
XORPS XMM0,XMM0
MOVSD qword ptr [RDI + 0x70],XMM0
MOV dword ptr [RDI + 0x78],0x0
MOV qword ptr [RDI + 0x80],0x0
XORPS XMM0,XMM0
MOVSD qword ptr [RDI + 0x88],XMM0
XORPS XMM0,XMM0
MOVSD qword ptr [RDI + 0x90],XMM0
MOV qword ptr [RDI + 0x98],0x0
MOV qword ptr [RDI + 0xa0],0x0
MOV qword ptr [RDI + 0xa8],0x0
XORPS XMM0,XMM0
MOVSD qword ptr [RDI + 0xb0],XMM0
XORPS XMM0,XMM0
MOVSD qword ptr [RDI + 0xb8],XMM0
XORPS XMM0,XMM0
MOVSD qword ptr [RDI + 0xc0],XMM0
XORPS XMM0,XMM0
MOVSD qword ptr [RDI + 0xc8],XMM0
XORPS XMM0,XMM0
MOVSD qword ptr [RDI + 0xd0],XMM0
XORPS XMM0,XMM0
MOVSD qword ptr [RDI + 0xd8],XMM0
MOV dword ptr [RDI + 0xe0],0x0
MOV dword ptr [RDI + 0xe4],0x0
XORPS XMM0,XMM0
MOVSD qword ptr [RDI + 0xe8],XMM0
XORPS XMM0,XMM0
MOVSD qword ptr [RDI + 0xf0],XMM0
XORPS XMM0,XMM0
MOVSD qword ptr [RDI + 0xf8],XMM0
XORPS XMM0,XMM0
MOVSD qword ptr [RDI + 0x100],XMM0
XORPS XMM0,XMM0
MOVSD qword ptr [RDI + 0x108],XMM0
XORPS XMM0,XMM0
MOVSD qword ptr [RDI + 0x110],XMM0
MOV qword ptr [RDI + 0x118],0x0
CALL 0x001160e0
POP RAX
RET
|
/* LefDefParser::lefiVia::lefiVia() */
lefiVia * __thiscall LefDefParser::lefiVia::lefiVia(lefiVia *this)
{
*(int8 *)this = 0;
*(int4 *)(this + 8) = 0;
*(int4 *)(this + 0xc) = 0;
*(int4 *)(this + 0x10) = 0;
*(int4 *)(this + 0x14) = 0;
*(int4 *)(this + 0x18) = 0;
*(int4 *)(this + 0x1c) = 0;
*(int4 *)(this + 0x20) = 0;
*(int4 *)(this + 0x24) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int8 *)(this + 0x40) = 0;
*(int4 *)(this + 0x48) = 0;
*(int4 *)(this + 0x4c) = 0;
*(int8 *)(this + 0x50) = 0;
*(int8 *)(this + 0x58) = 0;
*(int8 *)(this + 0x60) = 0;
*(int8 *)(this + 0x68) = 0;
*(int8 *)(this + 0x70) = 0;
*(int4 *)(this + 0x78) = 0;
*(int8 *)(this + 0x80) = 0;
*(int8 *)(this + 0x88) = 0;
*(int8 *)(this + 0x90) = 0;
*(int8 *)(this + 0x98) = 0;
*(int8 *)(this + 0xa0) = 0;
*(int8 *)(this + 0xa8) = 0;
*(int8 *)(this + 0xb0) = 0;
*(int8 *)(this + 0xb8) = 0;
*(int8 *)(this + 0xc0) = 0;
*(int8 *)(this + 200) = 0;
*(int8 *)(this + 0xd0) = 0;
*(int8 *)(this + 0xd8) = 0;
*(int4 *)(this + 0xe0) = 0;
*(int4 *)(this + 0xe4) = 0;
*(int8 *)(this + 0xe8) = 0;
*(int8 *)(this + 0xf0) = 0;
*(int8 *)(this + 0xf8) = 0;
*(int8 *)(this + 0x100) = 0;
*(int8 *)(this + 0x108) = 0;
*(int8 *)(this + 0x110) = 0;
*(int8 *)(this + 0x118) = 0;
Init(this);
return this;
}
| |
27,091 | my_rw_rdlock | eloqsql/mysys/thr_rwlock.c | int my_rw_rdlock(my_rw_lock_t *rwp)
{
pthread_mutex_lock(&rwp->lock);
/* active or queued writers */
while (( rwp->state < 0 ) || rwp->waiters)
pthread_cond_wait( &rwp->readers, &rwp->lock);
rwp->state++;
pthread_mutex_unlock(&rwp->lock);
return(0);
} | O3 | c | my_rw_rdlock:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x29210
leaq 0x28(%rbx), %r14
movl 0x88(%rbx), %eax
testl %eax, %eax
js 0xa454e
cmpl $0x0, 0x8c(%rbx)
je 0xa455b
movq %r14, %rdi
movq %rbx, %rsi
callq 0x29430
jmp 0xa453b
incl %eax
movl %eax, 0x88(%rbx)
movq %rbx, %rdi
callq 0x291d0
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
| my_rw_rdlock:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rdi
call _pthread_mutex_lock
lea r14, [rbx+28h]
loc_A453B:
mov eax, [rbx+88h]
test eax, eax
js short loc_A454E
cmp dword ptr [rbx+8Ch], 0
jz short loc_A455B
loc_A454E:
mov rdi, r14
mov rsi, rbx
call _pthread_cond_wait
jmp short loc_A453B
loc_A455B:
inc eax
mov [rbx+88h], eax
mov rdi, rbx
call _pthread_mutex_unlock
xor eax, eax
pop rbx
pop r14
pop rbp
retn
| long long my_rw_rdlock(long long a1)
{
int v1; // eax
pthread_mutex_lock(a1);
while ( 1 )
{
v1 = *(_DWORD *)(a1 + 136);
if ( v1 >= 0 && !*(_DWORD *)(a1 + 140) )
break;
pthread_cond_wait(a1 + 40, a1);
}
*(_DWORD *)(a1 + 136) = v1 + 1;
pthread_mutex_unlock(a1);
return 0LL;
}
| my_rw_rdlock:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RDI
CALL 0x00129210
LEA R14,[RBX + 0x28]
LAB_001a453b:
MOV EAX,dword ptr [RBX + 0x88]
TEST EAX,EAX
JS 0x001a454e
CMP dword ptr [RBX + 0x8c],0x0
JZ 0x001a455b
LAB_001a454e:
MOV RDI,R14
MOV RSI,RBX
CALL 0x00129430
JMP 0x001a453b
LAB_001a455b:
INC EAX
MOV dword ptr [RBX + 0x88],EAX
MOV RDI,RBX
CALL 0x001291d0
XOR EAX,EAX
POP RBX
POP R14
POP RBP
RET
|
int8 my_rw_rdlock(pthread_mutex_t *param_1)
{
pthread_mutex_lock(param_1);
while ((*(int *)((long)param_1 + 0x88) < 0 || (*(int *)((long)param_1 + 0x8c) != 0))) {
pthread_cond_wait((pthread_cond_t *)(param_1 + 1),param_1);
}
*(int *)((long)param_1 + 0x88) = *(int *)((long)param_1 + 0x88) + 1;
pthread_mutex_unlock(param_1);
return 0;
}
| |
27,092 | nglog::LogDestination::LogDestination(nglog::LogSeverity, char const*) | ng-log[P]ng-log/src/logging.cc | LogDestination::LogDestination(LogSeverity severity, const char* base_filename)
: fileobject_(severity, base_filename), logger_(&fileobject_) {} | O2 | cpp | nglog::LogDestination::LogDestination(nglog::LogSeverity, char const*):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x23be0(%rip), %rax # 0x2e800
movq %rax, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movups %xmm0, 0x18(%rdi)
andq $0x0, 0x28(%rdi)
testq %rdx, %rdx
setne 0x30(%rdi)
leaq 0x38(%rdi), %r14
leaq 0x15306(%rip), %rsi # 0x1ff4b
cmovneq %rdx, %rsi
leaq 0xf(%rsp), %rdx
movq %r14, %rdi
callq 0xa494
callq 0x1e381
leaq 0x58(%rbx), %rdi
leaq 0xe(%rsp), %rdx
movq %rax, %rsi
callq 0xa494
leaq 0x88(%rbx), %rax
movq %rax, 0x78(%rbx)
andq $0x0, 0x80(%rbx)
movb $0x0, 0x88(%rbx)
andq $0x0, 0x98(%rbx)
movl %ebp, 0xa0(%rbx)
movaps 0x14b35(%rip), %xmm0 # 0x1f7d0
movups %xmm0, 0xa4(%rbx)
andq $0x0, 0xb8(%rbx)
callq 0x8060
movq %rax, 0xc0(%rbx)
movq %rbx, 0xc8(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0xacc8
movq %rax, %rbx
movq %r14, %rdi
callq 0x8b28
movq %rbx, %rdi
callq 0x89e0
nop
| _ZN5nglog14LogDestinationC2ENS_11LogSeverityEPKc:
push rbp; Alternative name is 'nglog::LogDestination::LogDestination(nglog::LogSeverity, char const*)'
push r14
push rbx
sub rsp, 10h
mov ebp, esi
mov rbx, rdi
lea rax, off_2E800
mov [rdi], rax
xorps xmm0, xmm0
movups xmmword ptr [rdi+8], xmm0
movups xmmword ptr [rdi+18h], xmm0
and qword ptr [rdi+28h], 0
test rdx, rdx
setnz byte ptr [rdi+30h]
lea r14, [rdi+38h]
lea rsi, asc_1FF49+2; ""
cmovnz rsi, rdx
lea rdx, [rsp+28h+var_19]
mov rdi, r14; this
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
call _ZN5nglog5tools26ProgramInvocationShortNameEv; nglog::tools::ProgramInvocationShortName(void)
lea rdi, [rbx+58h]; this
lea rdx, [rsp+28h+var_1A]
mov rsi, rax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rax, [rbx+88h]
mov [rbx+78h], rax
and qword ptr [rbx+80h], 0
mov byte ptr [rbx+88h], 0
and qword ptr [rbx+98h], 0
mov [rbx+0A0h], ebp
movaps xmm0, cs:xmmword_1F7D0
movups xmmword ptr [rbx+0A4h], xmm0
and qword ptr [rbx+0B8h], 0
call __ZNSt6chrono3_V212system_clock3nowEv; std::chrono::_V2::system_clock::now(void)
mov [rbx+0C0h], rax
mov [rbx+0C8h], rbx
add rsp, 10h
pop rbx
pop r14
pop rbp
retn
jmp short $+2
loc_ACC8:
mov rbx, rax
mov rdi, r14; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rbx
call __Unwind_Resume
| long long nglog::LogDestination::LogDestination(long long a1, int a2, char *a3)
{
char *v5; // rsi
nglog::tools *v6; // rdi
long long v7; // rax
long long result; // rax
*(_QWORD *)a1 = off_2E800;
*(_OWORD *)(a1 + 8) = 0LL;
*(_OWORD *)(a1 + 24) = 0LL;
*(_QWORD *)(a1 + 40) = 0LL;
*(_BYTE *)(a1 + 48) = a3 != 0LL;
v5 = "";
if ( a3 )
v5 = a3;
v6 = (nglog::tools *)(a1 + 56);
std::string::basic_string<std::allocator<char>>(v6, (long long)v5);
v7 = nglog::tools::ProgramInvocationShortName(v6);
std::string::basic_string<std::allocator<char>>((_QWORD *)(a1 + 88), v7);
*(_QWORD *)(a1 + 120) = a1 + 136;
*(_QWORD *)(a1 + 128) = 0LL;
*(_BYTE *)(a1 + 136) = 0;
*(_QWORD *)(a1 + 152) = 0LL;
*(_DWORD *)(a1 + 160) = a2;
*(_OWORD *)(a1 + 164) = xmmword_1F7D0;
*(_QWORD *)(a1 + 184) = 0LL;
result = std::chrono::_V2::system_clock::now((std::chrono::_V2::system_clock *)(a1 + 88));
*(_QWORD *)(a1 + 192) = result;
*(_QWORD *)(a1 + 200) = a1;
return result;
}
| LogDestination:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV EBP,ESI
MOV RBX,RDI
LEA RAX,[0x12e800]
MOV qword ptr [RDI],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x8],XMM0
MOVUPS xmmword ptr [RDI + 0x18],XMM0
AND qword ptr [RDI + 0x28],0x0
TEST RDX,RDX
SETNZ byte ptr [RDI + 0x30]
LEA R14,[RDI + 0x38]
LEA RSI,[0x11ff4b]
CMOVNZ RSI,RDX
LEA RDX,[RSP + 0xf]
MOV RDI,R14
CALL 0x0010a494
LAB_0010ac56:
CALL 0x0011e381
LEA RDI,[RBX + 0x58]
LAB_0010ac5f:
LEA RDX,[RSP + 0xe]
MOV RSI,RAX
CALL 0x0010a494
LAB_0010ac6c:
LEA RAX,[RBX + 0x88]
MOV qword ptr [RBX + 0x78],RAX
AND qword ptr [RBX + 0x80],0x0
MOV byte ptr [RBX + 0x88],0x0
AND qword ptr [RBX + 0x98],0x0
MOV dword ptr [RBX + 0xa0],EBP
MOVAPS XMM0,xmmword ptr [0x0011f7d0]
MOVUPS xmmword ptr [RBX + 0xa4],XMM0
AND qword ptr [RBX + 0xb8],0x0
CALL 0x00108060
MOV qword ptr [RBX + 0xc0],RAX
MOV qword ptr [RBX + 0xc8],RBX
ADD RSP,0x10
POP RBX
POP R14
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* nglog::LogDestination::LogDestination(nglog::LogSeverity, char const*) */
void __thiscall
nglog::LogDestination::LogDestination(LogDestination *this,int4 param_2,char *param_3)
{
char *pcVar1;
int8 uVar2;
allocator local_1a;
allocator local_19;
*(int ***)this = &PTR__LogFileObject_0012e800;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
this[0x30] = (LogDestination)(param_3 != (char *)0x0);
pcVar1 = "";
if (param_3 != (char *)0x0) {
pcVar1 = param_3;
}
std::__cxx11::string::string<std::allocator<char>>((string *)(this + 0x38),pcVar1,&local_19);
/* try { // try from 0010ac56 to 0010ac5a has its CatchHandler @ 0010acc8 */
pcVar1 = (char *)tools::ProgramInvocationShortName();
/* try { // try from 0010ac5f to 0010ac6b has its CatchHandler @ 0010acc6 */
std::__cxx11::string::string<std::allocator<char>>((string *)(this + 0x58),pcVar1,&local_1a);
*(LogDestination **)(this + 0x78) = this + 0x88;
*(int8 *)(this + 0x80) = 0;
this[0x88] = (LogDestination)0x0;
*(int8 *)(this + 0x98) = 0;
*(int4 *)(this + 0xa0) = param_2;
uVar2 = _UNK_0011f7d8;
*(int8 *)(this + 0xa4) = _DAT_0011f7d0;
*(int8 *)(this + 0xac) = uVar2;
*(int8 *)(this + 0xb8) = 0;
uVar2 = std::chrono::_V2::system_clock::now();
*(int8 *)(this + 0xc0) = uVar2;
*(LogDestination **)(this + 200) = this;
return;
}
| |
27,093 | nglog::LogDestination::LogDestination(nglog::LogSeverity, char const*) | ng-log[P]ng-log/src/logging.cc | LogDestination::LogDestination(LogSeverity severity, const char* base_filename)
: fileobject_(severity, base_filename), logger_(&fileobject_) {} | O3 | cpp | nglog::LogDestination::LogDestination(nglog::LogSeverity, char const*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x26260(%rip), %rax # 0x307e0
movq %rax, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movups %xmm0, 0x18(%rdi)
movq $0x0, 0x28(%rdi)
leaq 0x38(%rdi), %r14
testq %rdx, %rdx
setne 0x30(%rdi)
leaq 0x199a3(%rip), %r15 # 0x23f4b
cmovneq %rdx, %r15
leaq 0x48(%rdi), %r12
movq %r12, 0x38(%rdi)
movq %r15, %rdi
callq 0x7200
leaq (%rax,%r15), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0xa400
callq 0x21e83
leaq 0x58(%rbx), %rdi
leaq 0xf(%rsp), %rdx
movq %rax, %rsi
callq 0x11fec
leaq 0x88(%rbx), %rax
movq %rax, 0x78(%rbx)
xorl %eax, %eax
movq %rax, 0x80(%rbx)
movb $0x0, 0x88(%rbx)
movq %rax, 0x98(%rbx)
movl %ebp, 0xa0(%rbx)
movaps 0x191c0(%rip), %xmm0 # 0x237d0
movups %xmm0, 0xa4(%rbx)
movq %rax, 0xb8(%rbx)
callq 0x7070
movq %rax, 0xc0(%rbx)
movq %rbx, 0xc8(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa640
movq %rax, %rbx
movq (%r14), %rdi
cmpq %r12, %rdi
je 0xa657
movq (%r12), %rsi
incq %rsi
callq 0x932c
movq %rbx, %rdi
callq 0x7950
nop
| _ZN5nglog14LogDestinationC2ENS_11LogSeverityEPKc:
push rbp; Alternative name is 'nglog::LogDestination::LogDestination(nglog::LogSeverity, char const*)'
push r15
push r14
push r12
push rbx
sub rsp, 10h
mov ebp, esi
mov rbx, rdi
lea rax, off_307E0
mov [rdi], rax
xorps xmm0, xmm0
movups xmmword ptr [rdi+8], xmm0
movups xmmword ptr [rdi+18h], xmm0
mov qword ptr [rdi+28h], 0
lea r14, [rdi+38h]
test rdx, rdx
setnz byte ptr [rdi+30h]
lea r15, asc_23F49+2; ""
cmovnz r15, rdx
lea r12, [rdi+48h]
mov [rdi+38h], r12
mov rdi, r15
call _strlen
lea rdx, [rax+r15]
mov rdi, r14; this
mov rsi, r15
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 _ZN5nglog5tools26ProgramInvocationShortNameEv; nglog::tools::ProgramInvocationShortName(void)
lea rdi, [rbx+58h]; this
lea rdx, [rsp+38h+var_29]
mov rsi, rax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rax, [rbx+88h]
mov [rbx+78h], rax
xor eax, eax
mov [rbx+80h], rax
mov byte ptr [rbx+88h], 0
mov [rbx+98h], rax
mov [rbx+0A0h], ebp
movaps xmm0, cs:xmmword_237D0
movups xmmword ptr [rbx+0A4h], xmm0
mov [rbx+0B8h], rax
call __ZNSt6chrono3_V212system_clock3nowEv; std::chrono::_V2::system_clock::now(void)
mov [rbx+0C0h], rax
mov [rbx+0C8h], rbx
add rsp, 10h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_A640:
mov rbx, rax
mov rdi, [r14]; void *
cmp rdi, r12
jz short loc_A657
mov rsi, [r12]
inc rsi; unsigned __int64
call _ZdlPvm; operator delete(void *,ulong)
loc_A657:
mov rdi, rbx
call __Unwind_Resume
| long long nglog::LogDestination::LogDestination(long long a1, int a2, char *a3)
{
nglog::tools *v3; // r14
char *v4; // r15
long long v5; // rax
long long v6; // rax
long long result; // rax
_BYTE v8[41]; // [rsp+Fh] [rbp-29h] BYREF
*(_QWORD *)a1 = off_307E0;
*(_OWORD *)(a1 + 8) = 0LL;
*(_OWORD *)(a1 + 24) = 0LL;
*(_QWORD *)(a1 + 40) = 0LL;
v3 = (nglog::tools *)(a1 + 56);
*(_BYTE *)(a1 + 48) = a3 != 0LL;
v4 = "";
if ( a3 )
v4 = a3;
*(_QWORD *)(a1 + 56) = a1 + 72;
v5 = strlen(v4);
std::string::_M_construct<char const*>((long long)v3, v4, (long long)&v4[v5]);
v6 = nglog::tools::ProgramInvocationShortName(v3);
std::string::basic_string<std::allocator<char>>(a1 + 88, v6, v8);
*(_QWORD *)(a1 + 120) = a1 + 136;
*(_QWORD *)(a1 + 128) = 0LL;
*(_BYTE *)(a1 + 136) = 0;
*(_QWORD *)(a1 + 152) = 0LL;
*(_DWORD *)(a1 + 160) = a2;
*(_OWORD *)(a1 + 164) = xmmword_237D0;
*(_QWORD *)(a1 + 184) = 0LL;
result = std::chrono::_V2::system_clock::now((std::chrono::_V2::system_clock *)(a1 + 88));
*(_QWORD *)(a1 + 192) = result;
*(_QWORD *)(a1 + 200) = a1;
return result;
}
| LogDestination:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV EBP,ESI
MOV RBX,RDI
LEA RAX,[0x1307e0]
MOV qword ptr [RDI],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x8],XMM0
MOVUPS xmmword ptr [RDI + 0x18],XMM0
MOV qword ptr [RDI + 0x28],0x0
LEA R14,[RDI + 0x38]
TEST RDX,RDX
SETNZ byte ptr [RDI + 0x30]
LEA R15,[0x123f4b]
CMOVNZ R15,RDX
LEA R12,[RDI + 0x48]
MOV qword ptr [RDI + 0x38],R12
MOV RDI,R15
CALL 0x00107200
LEA RDX,[RAX + R15*0x1]
MOV RDI,R14
MOV RSI,R15
CALL 0x0010a400
LAB_0010a5cb:
CALL 0x00121e83
LEA RDI,[RBX + 0x58]
LAB_0010a5d4:
LEA RDX,[RSP + 0xf]
MOV RSI,RAX
CALL 0x00111fec
LAB_0010a5e1:
LEA RAX,[RBX + 0x88]
MOV qword ptr [RBX + 0x78],RAX
XOR EAX,EAX
MOV qword ptr [RBX + 0x80],RAX
MOV byte ptr [RBX + 0x88],0x0
MOV qword ptr [RBX + 0x98],RAX
MOV dword ptr [RBX + 0xa0],EBP
MOVAPS XMM0,xmmword ptr [0x001237d0]
MOVUPS xmmword ptr [RBX + 0xa4],XMM0
MOV qword ptr [RBX + 0xb8],RAX
CALL 0x00107070
MOV qword ptr [RBX + 0xc0],RAX
MOV qword ptr [RBX + 0xc8],RBX
ADD RSP,0x10
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* nglog::LogDestination::LogDestination(nglog::LogSeverity, char const*) */
void __thiscall
nglog::LogDestination::LogDestination(LogDestination *this,int4 param_2,char *param_3)
{
size_t sVar1;
char *pcVar2;
int8 uVar3;
allocator local_29;
*(int ***)this = &PTR__LogFileObject_001307e0;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
this[0x30] = (LogDestination)(param_3 != (char *)0x0);
pcVar2 = "";
if (param_3 != (char *)0x0) {
pcVar2 = param_3;
}
*(LogDestination **)(this + 0x38) = this + 0x48;
sVar1 = strlen(pcVar2);
std::__cxx11::string::_M_construct<char_const*>(this + 0x38,pcVar2,pcVar2 + sVar1);
/* try { // try from 0010a5cb to 0010a5cf has its CatchHandler @ 0010a640 */
pcVar2 = (char *)tools::ProgramInvocationShortName();
/* try { // try from 0010a5d4 to 0010a5e0 has its CatchHandler @ 0010a63e */
std::__cxx11::string::string<std::allocator<char>>((string *)(this + 0x58),pcVar2,&local_29);
*(LogDestination **)(this + 0x78) = this + 0x88;
*(int8 *)(this + 0x80) = 0;
this[0x88] = (LogDestination)0x0;
*(int8 *)(this + 0x98) = 0;
*(int4 *)(this + 0xa0) = param_2;
uVar3 = _UNK_001237d8;
*(int8 *)(this + 0xa4) = _DAT_001237d0;
*(int8 *)(this + 0xac) = uVar3;
*(int8 *)(this + 0xb8) = 0;
uVar3 = std::chrono::_V2::system_clock::now();
*(int8 *)(this + 0xc0) = uVar3;
*(LogDestination **)(this + 200) = this;
return;
}
| |
27,094 | 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));
} | O0 | c | translog_scanner_eol:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x10(%rbp)
jmp 0x5d71e
movq -0x10(%rbp), %rax
movq 0x2008(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x2000(%rcx), %rcx
movq -0x10(%rbp), %rdx
movl 0x2028(%rdx), %edx
addq %rdx, %rcx
cmpq %rcx, %rax
jle 0x5d752
jmp 0x5d748
jmp 0x5d74a
jmp 0x5d74c
movb $0x0, -0x1(%rbp)
jmp 0x5d7b3
movq -0x10(%rbp), %rax
cmpb $0x0, 0x202c(%rax)
je 0x5d76b
jmp 0x5d761
jmp 0x5d763
jmp 0x5d765
movb $0x1, -0x1(%rbp)
jmp 0x5d7b3
callq 0x55f40
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x2008(%rax)
jmp 0x5d780
jmp 0x5d782
movq -0x10(%rbp), %rax
movq 0x2008(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x2000(%rcx), %rcx
movq -0x10(%rbp), %rdx
movl 0x2028(%rdx), %edx
addq %rdx, %rcx
cmpq %rcx, %rax
setle %al
andb $0x1, %al
movzbl %al, %eax
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
| translog_scanner_eol:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_10], rdi
jmp short $+2
loc_5D71E:
mov rax, [rbp+var_10]
mov rax, [rax+2008h]
mov rcx, [rbp+var_10]
mov rcx, [rcx+2000h]
mov rdx, [rbp+var_10]
mov edx, [rdx+2028h]
add rcx, rdx
cmp rax, rcx
jle short loc_5D752
jmp short $+2
loc_5D748:
jmp short $+2
loc_5D74A:
jmp short $+2
loc_5D74C:
mov [rbp+var_1], 0
jmp short loc_5D7B3
loc_5D752:
mov rax, [rbp+var_10]
cmp byte ptr [rax+202Ch], 0
jz short loc_5D76B
jmp short $+2
loc_5D761:
jmp short $+2
loc_5D763:
jmp short $+2
loc_5D765:
mov [rbp+var_1], 1
jmp short loc_5D7B3
loc_5D76B:
call translog_get_horizon
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+2008h], rcx
jmp short $+2
loc_5D780:
jmp short $+2
loc_5D782:
mov rax, [rbp+var_10]
mov rax, [rax+2008h]
mov rcx, [rbp+var_10]
mov rcx, [rcx+2000h]
mov rdx, [rbp+var_10]
mov edx, [rdx+2028h]
add rcx, rdx
cmp rax, rcx
setle al
and al, 1
movzx eax, al
mov [rbp+var_1], al
loc_5D7B3:
mov al, [rbp+var_1]
add rsp, 10h
pop rbp
retn
| bool translog_scanner_eol(long long a1)
{
if ( *(_QWORD *)(a1 + 8200) > (signed long long)(*(unsigned int *)(a1 + 8232) + *(_QWORD *)(a1 + 0x2000)) )
return 0;
if ( *(_BYTE *)(a1 + 8236) )
return 1;
*(_QWORD *)(a1 + 8200) = translog_get_horizon();
return *(_QWORD *)(a1 + 8200) <= (long long)(*(unsigned int *)(a1 + 8232) + *(_QWORD *)(a1 + 0x2000));
}
| translog_scanner_eol:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x10],RDI
JMP 0x0015d71e
LAB_0015d71e:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x2008]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x2000]
MOV RDX,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RDX + 0x2028]
ADD RCX,RDX
CMP RAX,RCX
JLE 0x0015d752
JMP 0x0015d748
LAB_0015d748:
JMP 0x0015d74a
LAB_0015d74a:
JMP 0x0015d74c
LAB_0015d74c:
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0015d7b3
LAB_0015d752:
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX + 0x202c],0x0
JZ 0x0015d76b
JMP 0x0015d761
LAB_0015d761:
JMP 0x0015d763
LAB_0015d763:
JMP 0x0015d765
LAB_0015d765:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0015d7b3
LAB_0015d76b:
CALL 0x00155f40
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x2008],RCX
JMP 0x0015d780
LAB_0015d780:
JMP 0x0015d782
LAB_0015d782:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x2008]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x2000]
MOV RDX,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RDX + 0x2028]
ADD RCX,RDX
CMP RAX,RCX
SETLE AL
AND AL,0x1
MOVZX EAX,AL
MOV byte ptr [RBP + -0x1],AL
LAB_0015d7b3:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x10
POP RBP
RET
|
bool translog_scanner_eol(long param_1)
{
int8 uVar1;
int1 local_9;
if ((long)(*(long *)(param_1 + 0x2000) + (ulong)*(uint *)(param_1 + 0x2028)) <
*(long *)(param_1 + 0x2008)) {
local_9 = false;
}
else if (*(char *)(param_1 + 0x202c) == '\0') {
uVar1 = translog_get_horizon();
*(int8 *)(param_1 + 0x2008) = uVar1;
local_9 = *(long *)(param_1 + 0x2008) <=
(long)(*(long *)(param_1 + 0x2000) + (ulong)*(uint *)(param_1 + 0x2028));
}
else {
local_9 = true;
}
return local_9;
}
| |
27,095 | pocketflow::Node<std::nullptr_t, int>::Node(int, long long) | The-Pocket[P]PocketFlow-CPP/pocketflow.h | Node(int retries = 1, long long waitMilliseconds = 0)
: maxRetries(retries), waitMillis(waitMilliseconds) {
if (maxRetries < 1) throw std::invalid_argument("maxRetries must be at least 1");
if (waitMillis < 0) throw std::invalid_argument("waitMillis cannot be negative");
} | O0 | c | pocketflow::Node<std::nullptr_t, int>::Node(int, long long):
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x30(%rbp)
callq 0x15db0
movq -0x30(%rbp), %rax
leaq 0x1500d(%rip), %rcx # 0x29808
addq $0x10, %rcx
movq %rcx, (%rax)
movl -0xc(%rbp), %ecx
movl %ecx, 0x88(%rax)
movq -0x18(%rbp), %rcx
movq %rcx, 0x90(%rax)
movl $0x0, 0x98(%rax)
cmpl $0x1, 0x88(%rax)
jge 0x1488c
movl $0x10, %edi
callq 0x5110
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x38(%rbp)
leaq 0x7bbe(%rip), %rsi # 0x1c402
callq 0x5430
jmp 0x1484b
movq -0x38(%rbp), %rdi
movq 0x15782(%rip), %rsi # 0x29fd8
movq 0x15763(%rip), %rdx # 0x29fc0
callq 0x53c0
jmp 0x14904
movq -0x38(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0x51a0
jmp 0x148f2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0x148f2
movq -0x30(%rbp), %rax
cmpq $0x0, 0x90(%rax)
jge 0x148ec
movl $0x10, %edi
callq 0x5110
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x40(%rbp)
leaq 0x7b6b(%rip), %rsi # 0x1c420
callq 0x5430
jmp 0x148bc
movq -0x40(%rbp), %rdi
movq 0x15711(%rip), %rsi # 0x29fd8
movq 0x156f2(%rip), %rdx # 0x29fc0
callq 0x53c0
jmp 0x14904
movq -0x40(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0x51a0
jmp 0x148f2
addq $0x40, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x15f10
movq -0x20(%rbp), %rdi
callq 0x53f0
nopw %cs:(%rax,%rax)
nop
| _ZN10pocketflow4NodeIDniEC2Eix:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov rdi, [rbp+var_8]
mov [rbp+var_30], rdi
call _ZN10pocketflow8BaseNodeIDniEC2Ev; pocketflow::BaseNode<decltype(nullptr),int>::BaseNode(void)
mov rax, [rbp+var_30]
lea rcx, _ZTVN10pocketflow4NodeIDniEE; `vtable for'pocketflow::Node<decltype(nullptr),int>
add rcx, 10h
mov [rax], rcx
mov ecx, [rbp+var_C]
mov [rax+88h], ecx
mov rcx, [rbp+var_18]
mov [rax+90h], rcx
mov dword ptr [rax+98h], 0
cmp dword ptr [rax+88h], 1
jge short loc_1488C
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rdi, rax; this
mov rax, rdi
mov [rbp+var_38], rax
lea rsi, aMaxretriesMust; "maxRetries must be at least 1"
call __ZNSt16invalid_argumentC1EPKc; std::invalid_argument::invalid_argument(char const*)
jmp short $+2
loc_1484B:
mov rdi, [rbp+var_38]; void *
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt16invalid_argumentD1Ev_ptr; void (*)(void *)
call ___cxa_throw
jmp loc_14904
mov rdi, [rbp+var_38]; void *
mov rcx, rax
mov eax, edx
mov [rbp+var_20], rcx
mov [rbp+var_24], eax
call ___cxa_free_exception
jmp short loc_148F2
mov rcx, rax
mov eax, edx
mov [rbp+var_20], rcx
mov [rbp+var_24], eax
jmp short loc_148F2
loc_1488C:
mov rax, [rbp+var_30]
cmp qword ptr [rax+90h], 0
jge short loc_148EC
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rdi, rax; this
mov rax, rdi
mov [rbp+var_40], rax
lea rsi, aWaitmillisCann; "waitMillis cannot be negative"
call __ZNSt16invalid_argumentC1EPKc; std::invalid_argument::invalid_argument(char const*)
jmp short $+2
loc_148BC:
mov rdi, [rbp+var_40]; void *
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt16invalid_argumentD1Ev_ptr; void (*)(void *)
call ___cxa_throw
jmp short loc_14904
mov rdi, [rbp+var_40]; void *
mov rcx, rax
mov eax, edx
mov [rbp+var_20], rcx
mov [rbp+var_24], eax
call ___cxa_free_exception
jmp short loc_148F2
loc_148EC:
add rsp, 40h
pop rbp
retn
loc_148F2:
mov rdi, [rbp+var_30]
call _ZN10pocketflow8BaseNodeIDniED2Ev; pocketflow::BaseNode<decltype(nullptr),int>::~BaseNode()
mov rdi, [rbp+var_20]
call __Unwind_Resume
loc_14904:
nop word ptr [rax+rax+00000000h]
xchg ax, ax
| long long pocketflow::Node<decltype(nullptr),int>::Node(long long a1, int a2, long long a3)
{
long long result; // rax
std::invalid_argument *v4; // [rsp+0h] [rbp-40h]
std::invalid_argument *exception; // [rsp+8h] [rbp-38h]
pocketflow::BaseNode<decltype(nullptr),int>::BaseNode();
*(_QWORD *)a1 = &`vtable for'pocketflow::Node<decltype(nullptr),int> + 2;
*(_DWORD *)(a1 + 136) = a2;
*(_QWORD *)(a1 + 144) = a3;
*(_DWORD *)(a1 + 152) = 0;
if ( *(int *)(a1 + 136) < 1 )
{
exception = (std::invalid_argument *)__cxa_allocate_exception(0x10uLL);
std::invalid_argument::invalid_argument(exception, "maxRetries must be at least 1");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::invalid_argument,
(void (*)(void *))&std::invalid_argument::~invalid_argument);
}
result = a1;
if ( *(long long *)(a1 + 144) < 0 )
{
v4 = (std::invalid_argument *)__cxa_allocate_exception(0x10uLL);
std::invalid_argument::invalid_argument(v4, "waitMillis cannot be negative");
__cxa_throw(
v4,
(struct type_info *)&`typeinfo for'std::invalid_argument,
(void (*)(void *))&std::invalid_argument::~invalid_argument);
}
return result;
}
| Node:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV qword ptr [RBP + -0x18],RDX
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x30],RDI
CALL 0x00115db0
MOV RAX,qword ptr [RBP + -0x30]
LEA RCX,[0x129808]
ADD RCX,0x10
MOV qword ptr [RAX],RCX
MOV ECX,dword ptr [RBP + -0xc]
MOV dword ptr [RAX + 0x88],ECX
MOV RCX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x90],RCX
MOV dword ptr [RAX + 0x98],0x0
CMP dword ptr [RAX + 0x88],0x1
JGE 0x0011488c
MOV EDI,0x10
CALL 0x00105110
MOV RDI,RAX
MOV RAX,RDI
MOV qword ptr [RBP + -0x38],RAX
LAB_0011483d:
LEA RSI,[0x11c402]
CALL 0x00105430
JMP 0x0011484b
LAB_0011484b:
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [0x00129fd8]
MOV RDX,qword ptr [0x00129fc0]
CALL 0x001053c0
LAB_0011488c:
MOV RAX,qword ptr [RBP + -0x30]
CMP qword ptr [RAX + 0x90],0x0
JGE 0x001148ec
MOV EDI,0x10
CALL 0x00105110
MOV RDI,RAX
MOV RAX,RDI
MOV qword ptr [RBP + -0x40],RAX
LAB_001148ae:
LEA RSI,[0x11c420]
CALL 0x00105430
JMP 0x001148bc
LAB_001148bc:
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [0x00129fd8]
MOV RDX,qword ptr [0x00129fc0]
CALL 0x001053c0
LAB_001148ec:
ADD RSP,0x40
POP RBP
RET
|
/* pocketflow::Node<decltype(nullptr), int>::Node(int, long long) */
void __thiscall
pocketflow::Node<decltype(nullptr),int>::Node
(Node<decltype(nullptr),int> *this,int param_1,longlong param_2)
{
invalid_argument *piVar1;
BaseNode<decltype(nullptr),int>::BaseNode((BaseNode<decltype(nullptr),int> *)this);
*(int ***)this = &PTR__Node_00129818;
*(int *)(this + 0x88) = param_1;
*(longlong *)(this + 0x90) = param_2;
*(int4 *)(this + 0x98) = 0;
if (*(int *)(this + 0x88) < 1) {
piVar1 = (invalid_argument *)__cxa_allocate_exception(0x10);
/* try { // try from 0011483d to 00114848 has its CatchHandler @ 00114867 */
std::invalid_argument::invalid_argument(piVar1,"maxRetries must be at least 1");
/* try { // try from 0011484b to 00114861 has its CatchHandler @ 0011487e */
/* WARNING: Subroutine does not return */
__cxa_throw(piVar1,PTR_typeinfo_00129fd8,PTR__invalid_argument_00129fc0);
}
if (*(long *)(this + 0x90) < 0) {
piVar1 = (invalid_argument *)__cxa_allocate_exception(0x10);
/* try { // try from 001148ae to 001148b9 has its CatchHandler @ 001148d5 */
std::invalid_argument::invalid_argument(piVar1,"waitMillis cannot be negative");
/* try { // try from 001148bc to 001148d2 has its CatchHandler @ 0011487e */
/* WARNING: Subroutine does not return */
__cxa_throw(piVar1,PTR_typeinfo_00129fd8,PTR__invalid_argument_00129fc0);
}
return;
}
| |
27,096 | pocketflow::Node<std::nullptr_t, int>::Node(int, long long) | The-Pocket[P]PocketFlow-CPP/pocketflow.h | Node(int retries = 1, long long waitMilliseconds = 0)
: maxRetries(retries), waitMillis(waitMilliseconds) {
if (maxRetries < 1) throw std::invalid_argument("maxRetries must be at least 1");
if (waitMillis < 0) throw std::invalid_argument("waitMillis cannot be negative");
} | O1 | c | pocketflow::Node<std::nullptr_t, int>::Node(int, long long):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x82ee(%rip), %rax # 0x17cf8
movq %rax, (%rdi)
leaq 0x10(%rdi), %rax
xorl %ecx, %ecx
movl %ecx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
movq %rax, 0x28(%rdi)
movq %rcx, 0x30(%rdi)
leaq 0x40(%rdi), %rax
movl %ecx, 0x40(%rdi)
movq %rcx, 0x48(%rdi)
movq %rax, 0x50(%rdi)
movq %rax, 0x58(%rdi)
movq %rcx, 0x60(%rdi)
addq $0x68, %rdi
leaq 0x78(%rbx), %rax
movq %rax, 0x68(%rbx)
leaq 0x22be(%rip), %rsi # 0x11d0e
leaq 0x22d3(%rip), %rdx # 0x11d2a
callq 0x90e4
leaq 0x820d(%rip), %rax # 0x17c70
movq %rax, (%rbx)
movl %ebp, 0x88(%rbx)
movq %r14, 0x90(%rbx)
movl $0x0, 0x98(%rbx)
testl %ebp, %ebp
jle 0xfa91
testq %r14, %r14
js 0xfaaf
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x50e0
movq %rax, %r15
leaq 0x1965(%rip), %rsi # 0x1140a
movq %rax, %rdi
callq 0x52c0
jmp 0xfacb
movl $0x10, %edi
callq 0x50e0
movq %rax, %r15
leaq 0x1965(%rip), %rsi # 0x11428
movq %rax, %rdi
callq 0x52c0
movq 0x8506(%rip), %rsi # 0x17fd8
movq 0x84e7(%rip), %rdx # 0x17fc0
movq %r15, %rdi
callq 0x5280
jmp 0xfae3
movq %rax, %r14
movq %r15, %rdi
callq 0x5130
jmp 0xfaf3
movq %rax, %r14
movq %rbx, %rdi
callq 0xfb1e
jmp 0xfb15
movq %rax, %r14
leaq 0x38(%rbx), %rdi
addq $0x8, %rbx
callq 0x7fec
movq %rbx, %rdi
callq 0x90d0
movq %r14, %rdi
callq 0x52a0
nop
| _ZN10pocketflow4NodeIiDnEC2Eix:
push rbp
push r15
push r14
push rbx
push rax
mov r14, rdx
mov ebp, esi
mov rbx, rdi
lea rax, off_17CF8
mov [rdi], rax
lea rax, [rdi+10h]
xor ecx, ecx
mov [rdi+10h], ecx
mov [rdi+18h], rcx
mov [rdi+20h], rax
mov [rdi+28h], rax
mov [rdi+30h], rcx
lea rax, [rdi+40h]
mov [rdi+40h], ecx
mov [rdi+48h], rcx
mov [rdi+50h], rax
mov [rdi+58h], rax
mov [rdi+60h], rcx
add rdi, 68h ; 'h'
lea rax, [rbx+78h]
mov [rbx+68h], rax
lea rsi, _ZTSN10pocketflow8BaseNodeIiDnEE; type descriptor name
lea rdx, _ZTSN10pocketflow8BaseNodeIiDnEE+1Ch; type descriptor name
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)
lea rax, off_17C70
mov [rbx], rax
mov [rbx+88h], ebp
mov [rbx+90h], r14
mov dword ptr [rbx+98h], 0
test ebp, ebp
jle short loc_FA91
test r14, r14
js short loc_FAAF
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_FA91:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r15, rax
lea rsi, aMaxretriesMust; "maxRetries must be at least 1"
mov rdi, rax; this
call __ZNSt16invalid_argumentC1EPKc; std::invalid_argument::invalid_argument(char const*)
jmp short loc_FACB
loc_FAAF:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r15, rax
lea rsi, aWaitmillisCann; "waitMillis cannot be negative"
mov rdi, rax; this
call __ZNSt16invalid_argumentC1EPKc; std::invalid_argument::invalid_argument(char const*)
loc_FACB:
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt16invalid_argumentD1Ev_ptr; void (*)(void *)
mov rdi, r15; void *
call ___cxa_throw
jmp short $+2
loc_FAE3:
mov r14, rax
mov rdi, r15; void *
call ___cxa_free_exception
jmp short loc_FAF3
mov r14, rax
loc_FAF3:
mov rdi, rbx
call _ZN10pocketflow8BaseNodeIiDnED2Ev; pocketflow::BaseNode<int,decltype(nullptr)>::~BaseNode()
jmp short loc_FB15
mov r14, rax
lea rdi, [rbx+38h]
add rbx, 8
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St10shared_ptrIN10pocketflow9IBaseNodeEEESt10_Select1stISC_ESt4lessIS5_ESaISC_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::shared_ptr<pocketflow::IBaseNode>>,std::_Select1st<std::pair<std::string const,std::shared_ptr<pocketflow::IBaseNode>>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::shared_ptr<pocketflow::IBaseNode>>>>::~_Rb_tree()
mov rdi, rbx
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St3anyESt10_Select1stIS9_ESt4lessIS5_ESaIS9_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::any>,std::_Select1st<std::pair<std::string const,std::any>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::any>>>::~_Rb_tree()
loc_FB15:
mov rdi, r14
call __Unwind_Resume
| long long ( ** pocketflow::Node<int,decltype(nullptr)>::Node(long long a1, int a2, long long a3))()
{
long long ( **result)(); // rax
std::invalid_argument *exception; // r15
*(_QWORD *)a1 = &off_17CF8;
*(_DWORD *)(a1 + 16) = 0;
*(_QWORD *)(a1 + 24) = 0LL;
*(_QWORD *)(a1 + 32) = a1 + 16;
*(_QWORD *)(a1 + 40) = a1 + 16;
*(_QWORD *)(a1 + 48) = 0LL;
*(_DWORD *)(a1 + 64) = 0;
*(_QWORD *)(a1 + 72) = 0LL;
*(_QWORD *)(a1 + 80) = a1 + 64;
*(_QWORD *)(a1 + 88) = a1 + 64;
*(_QWORD *)(a1 + 96) = 0LL;
*(_QWORD *)(a1 + 104) = a1 + 120;
std::string::_M_construct<char const*>((_QWORD *)(a1 + 104), "N10pocketflow8BaseNodeIiDnEE", (long long)"");
result = &off_17C70;
*(_QWORD *)a1 = &off_17C70;
*(_DWORD *)(a1 + 136) = a2;
*(_QWORD *)(a1 + 144) = a3;
*(_DWORD *)(a1 + 152) = 0;
if ( a2 <= 0 )
{
exception = (std::invalid_argument *)__cxa_allocate_exception(0x10uLL);
std::invalid_argument::invalid_argument(exception, "maxRetries must be at least 1");
goto LABEL_6;
}
if ( a3 < 0 )
{
exception = (std::invalid_argument *)__cxa_allocate_exception(0x10uLL);
std::invalid_argument::invalid_argument(exception, "waitMillis cannot be negative");
LABEL_6:
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::invalid_argument,
(void (*)(void *))&std::invalid_argument::~invalid_argument);
}
return result;
}
| Node:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
LEA RAX,[0x117cf8]
MOV qword ptr [RDI],RAX
LEA RAX,[RDI + 0x10]
XOR ECX,ECX
MOV dword ptr [RDI + 0x10],ECX
MOV qword ptr [RDI + 0x18],RCX
MOV qword ptr [RDI + 0x20],RAX
MOV qword ptr [RDI + 0x28],RAX
MOV qword ptr [RDI + 0x30],RCX
LEA RAX,[RDI + 0x40]
MOV dword ptr [RDI + 0x40],ECX
MOV qword ptr [RDI + 0x48],RCX
MOV qword ptr [RDI + 0x50],RAX
MOV qword ptr [RDI + 0x58],RAX
MOV qword ptr [RDI + 0x60],RCX
ADD RDI,0x68
LEA RAX,[RBX + 0x78]
MOV qword ptr [RBX + 0x68],RAX
LAB_0010fa49:
LEA RSI,[0x111d0e]
LEA RDX,[0x111d2a]
CALL 0x001090e4
LAB_0010fa5c:
LEA RAX,[0x117c70]
MOV qword ptr [RBX],RAX
MOV dword ptr [RBX + 0x88],EBP
MOV qword ptr [RBX + 0x90],R14
MOV dword ptr [RBX + 0x98],0x0
TEST EBP,EBP
JLE 0x0010fa91
TEST R14,R14
JS 0x0010faaf
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0010fa91:
MOV EDI,0x10
CALL 0x001050e0
MOV R15,RAX
LAB_0010fa9e:
LEA RSI,[0x11140a]
MOV RDI,RAX
CALL 0x001052c0
LAB_0010faad:
JMP 0x0010facb
LAB_0010faaf:
MOV EDI,0x10
CALL 0x001050e0
MOV R15,RAX
LAB_0010fabc:
LEA RSI,[0x111428]
MOV RDI,RAX
CALL 0x001052c0
LAB_0010facb:
MOV RSI,qword ptr [0x00117fd8]
MOV RDX,qword ptr [0x00117fc0]
MOV RDI,R15
CALL 0x00105280
|
/* pocketflow::Node<int, decltype(nullptr)>::Node(int, long long) */
void __thiscall
pocketflow::Node<int,decltype(nullptr)>::Node
(Node<int,decltype(nullptr)> *this,int param_1,longlong param_2)
{
invalid_argument *this_00;
*(int ***)this = &PTR__BaseNode_00117cf8;
*(int4 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(Node<int,decltype(nullptr)> **)(this + 0x20) = this + 0x10;
*(Node<int,decltype(nullptr)> **)(this + 0x28) = this + 0x10;
*(int8 *)(this + 0x30) = 0;
*(int4 *)(this + 0x40) = 0;
*(int8 *)(this + 0x48) = 0;
*(Node<int,decltype(nullptr)> **)(this + 0x50) = this + 0x40;
*(Node<int,decltype(nullptr)> **)(this + 0x58) = this + 0x40;
*(int8 *)(this + 0x60) = 0;
*(Node<int,decltype(nullptr)> **)(this + 0x68) = this + 0x78;
/* try { // try from 0010fa49 to 0010fa5b has its CatchHandler @ 0010fafd */
std::__cxx11::string::_M_construct<char_const*>
((string *)(this + 0x68),"N10pocketflow8BaseNodeIiDnEE","");
*(int ***)this = &PTR__BaseNode_00117c70;
*(int *)(this + 0x88) = param_1;
*(longlong *)(this + 0x90) = param_2;
*(int4 *)(this + 0x98) = 0;
if (param_1 < 1) {
this_00 = (invalid_argument *)__cxa_allocate_exception(0x10);
/* try { // try from 0010fa9e to 0010faac has its CatchHandler @ 0010fae3 */
std::invalid_argument::invalid_argument(this_00,"maxRetries must be at least 1");
}
else {
if (-1 < param_2) {
return;
}
this_00 = (invalid_argument *)__cxa_allocate_exception(0x10);
/* try { // try from 0010fabc to 0010faca has its CatchHandler @ 0010fae1 */
std::invalid_argument::invalid_argument(this_00,"waitMillis cannot be negative");
}
/* try { // try from 0010facb to 0010fae0 has its CatchHandler @ 0010faf0 */
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_00117fd8,PTR__invalid_argument_00117fc0);
}
| |
27,097 | pocketflow::Node<std::nullptr_t, int>::Node(int, long long) | The-Pocket[P]PocketFlow-CPP/pocketflow.h | Node(int retries = 1, long long waitMilliseconds = 0)
: maxRetries(retries), waitMillis(waitMilliseconds) {
if (maxRetries < 1) throw std::invalid_argument("maxRetries must be at least 1");
if (waitMillis < 0) throw std::invalid_argument("waitMillis cannot be negative");
} | O2 | c | pocketflow::Node<std::nullptr_t, int>::Node(int, long long):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
callq 0xd838
leaq 0x9109(%rip), %rax # 0x15c68
movq %rax, (%rbx)
movl %ebp, 0x88(%rbx)
movq %r14, 0x90(%rbx)
andl $0x0, 0x98(%rbx)
testl %ebp, %ebp
jle 0xcb8a
testq %r14, %r14
js 0xcba6
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x5100
movq %rax, %r14
leaq 0x1866(%rip), %rsi # 0xe402
movq %rax, %rdi
callq 0x52f0
jmp 0xcbc0
pushq $0x10
popq %rdi
callq 0x5100
movq %rax, %r14
leaq 0x1868(%rip), %rsi # 0xe420
movq %rax, %rdi
callq 0x52f0
movq 0x9409(%rip), %rsi # 0x15fd0
movq 0x93ea(%rip), %rdx # 0x15fb8
movq %r14, %rdi
callq 0x52b0
jmp 0xcbd8
movq %rax, %r15
movq %r14, %rdi
callq 0x5140
jmp 0xcbe8
movq %rax, %r15
movq %rbx, %rdi
callq 0xcbf8
movq %r15, %rdi
callq 0x52d0
| _ZN10pocketflow4NodeIiDnEC2Eix:
push rbp
push r15
push r14
push rbx
push rax
mov r14, rdx
mov ebp, esi
mov rbx, rdi
call _ZN10pocketflow8BaseNodeIiDnEC2Ev; pocketflow::BaseNode<int,decltype(nullptr)>::BaseNode(void)
lea rax, off_15C68
mov [rbx], rax
mov [rbx+88h], ebp
mov [rbx+90h], r14
and dword ptr [rbx+98h], 0
test ebp, ebp
jle short loc_CB8A
test r14, r14
js short loc_CBA6
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_CB8A:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aMaxretriesMust; "maxRetries must be at least 1"
mov rdi, rax; this
call __ZNSt16invalid_argumentC1EPKc; std::invalid_argument::invalid_argument(char const*)
jmp short loc_CBC0
loc_CBA6:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aWaitmillisCann; "waitMillis cannot be negative"
mov rdi, rax; this
call __ZNSt16invalid_argumentC1EPKc; std::invalid_argument::invalid_argument(char const*)
loc_CBC0:
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt16invalid_argumentD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
jmp short $+2
loc_CBD8:
mov r15, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_CBE8
mov r15, rax
loc_CBE8:
mov rdi, rbx
call _ZN10pocketflow8BaseNodeIiDnED2Ev; pocketflow::BaseNode<int,decltype(nullptr)>::~BaseNode()
mov rdi, r15
call __Unwind_Resume
| long long ( ** pocketflow::Node<int,decltype(nullptr)>::Node(long long a1, int a2, long long a3))()
{
long long ( **result)(); // rax
std::invalid_argument *exception; // r14
pocketflow::BaseNode<int,decltype(nullptr)>::BaseNode(a1);
result = &off_15C68;
*(_QWORD *)a1 = &off_15C68;
*(_DWORD *)(a1 + 136) = a2;
*(_QWORD *)(a1 + 144) = a3;
*(_DWORD *)(a1 + 152) = 0;
if ( a2 <= 0 )
{
exception = (std::invalid_argument *)__cxa_allocate_exception(0x10uLL);
std::invalid_argument::invalid_argument(exception, "maxRetries must be at least 1");
goto LABEL_6;
}
if ( a3 < 0 )
{
exception = (std::invalid_argument *)__cxa_allocate_exception(0x10uLL);
std::invalid_argument::invalid_argument(exception, "waitMillis cannot be negative");
LABEL_6:
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::invalid_argument,
(void (*)(void *))&std::invalid_argument::~invalid_argument);
}
return result;
}
| Node:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
CALL 0x0010d838
LEA RAX,[0x115c68]
MOV qword ptr [RBX],RAX
MOV dword ptr [RBX + 0x88],EBP
MOV qword ptr [RBX + 0x90],R14
AND dword ptr [RBX + 0x98],0x0
TEST EBP,EBP
JLE 0x0010cb8a
TEST R14,R14
JS 0x0010cba6
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0010cb8a:
PUSH 0x10
POP RDI
CALL 0x00105100
MOV R14,RAX
LAB_0010cb95:
LEA RSI,[0x10e402]
MOV RDI,RAX
CALL 0x001052f0
LAB_0010cba4:
JMP 0x0010cbc0
LAB_0010cba6:
PUSH 0x10
POP RDI
CALL 0x00105100
MOV R14,RAX
LAB_0010cbb1:
LEA RSI,[0x10e420]
MOV RDI,RAX
CALL 0x001052f0
LAB_0010cbc0:
MOV RSI,qword ptr [0x00115fd0]
MOV RDX,qword ptr [0x00115fb8]
MOV RDI,R14
CALL 0x001052b0
|
/* pocketflow::Node<int, decltype(nullptr)>::Node(int, long long) */
void __thiscall
pocketflow::Node<int,decltype(nullptr)>::Node
(Node<int,decltype(nullptr)> *this,int param_1,longlong param_2)
{
invalid_argument *this_00;
BaseNode<int,decltype(nullptr)>::BaseNode((BaseNode<int,decltype(nullptr)> *)this);
*(int ***)this = &PTR__BaseNode_00115c68;
*(int *)(this + 0x88) = param_1;
*(longlong *)(this + 0x90) = param_2;
*(int4 *)(this + 0x98) = 0;
if (param_1 < 1) {
this_00 = (invalid_argument *)__cxa_allocate_exception(0x10);
/* try { // try from 0010cb95 to 0010cba3 has its CatchHandler @ 0010cbd8 */
std::invalid_argument::invalid_argument(this_00,"maxRetries must be at least 1");
}
else {
if (-1 < param_2) {
return;
}
this_00 = (invalid_argument *)__cxa_allocate_exception(0x10);
/* try { // try from 0010cbb1 to 0010cbbf has its CatchHandler @ 0010cbd6 */
std::invalid_argument::invalid_argument(this_00,"waitMillis cannot be negative");
}
/* try { // try from 0010cbc0 to 0010cbd5 has its CatchHandler @ 0010cbe5 */
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_00115fd0,PTR__invalid_argument_00115fb8);
}
| |
27,098 | pocketflow::Node<std::nullptr_t, int>::Node(int, long long) | The-Pocket[P]PocketFlow-CPP/pocketflow.h | Node(int retries = 1, long long waitMilliseconds = 0)
: maxRetries(retries), waitMillis(waitMilliseconds) {
if (maxRetries < 1) throw std::invalid_argument("maxRetries must be at least 1");
if (waitMillis < 0) throw std::invalid_argument("waitMillis cannot be negative");
} | O3 | c | pocketflow::Node<std::nullptr_t, int>::Node(int, long long):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x992c(%rip), %rax # 0x17ad0
movq %rax, (%rdi)
leaq 0x10(%rdi), %rax
xorl %ecx, %ecx
movl %ecx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
movq %rax, 0x28(%rdi)
movq %rcx, 0x30(%rdi)
leaq 0x40(%rdi), %rax
movl %ecx, 0x40(%rdi)
movq %rcx, 0x48(%rdi)
movq %rax, 0x50(%rdi)
movq %rax, 0x58(%rdi)
movq %rcx, 0x60(%rdi)
addq $0x68, %rdi
leaq 0x78(%rbx), %rax
movq %rax, 0x68(%rbx)
leaq 0x3a86(%rip), %rsi # 0x11c70
leaq 0x3a9a(%rip), %rdx # 0x11c8b
callq 0x9030
leaq 0x984b(%rip), %rax # 0x17a48
movq %rax, (%rbx)
movl %ebp, 0x88(%rbx)
movq %r14, 0x90(%rbx)
movl $0x0, 0x98(%rbx)
testl %ebp, %ebp
jle 0xe22b
testq %r14, %r14
js 0xe249
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x50e0
movq %rax, %r15
leaq 0x31cb(%rip), %rsi # 0x1140a
movq %rax, %rdi
callq 0x52c0
jmp 0xe265
movl $0x10, %edi
callq 0x50e0
movq %rax, %r15
leaq 0x31cb(%rip), %rsi # 0x11428
movq %rax, %rdi
callq 0x52c0
movq 0x9d6c(%rip), %rsi # 0x17fd8
movq 0x9d4d(%rip), %rdx # 0x17fc0
movq %r15, %rdi
callq 0x5280
jmp 0xe27d
movq %rax, %r14
movq %r15, %rdi
callq 0x5130
jmp 0xe28d
movq %rax, %r14
movq %rbx, %rdi
callq 0xe2b8
jmp 0xe2af
movq %rax, %r14
leaq 0x38(%rbx), %rdi
addq $0x8, %rbx
callq 0x7f36
movq %rbx, %rdi
callq 0x901c
movq %r14, %rdi
callq 0x52a0
nop
| _ZN10pocketflow4NodeIiiEC2Eix:
push rbp
push r15
push r14
push rbx
push rax
mov r14, rdx
mov ebp, esi
mov rbx, rdi
lea rax, off_17AD0
mov [rdi], rax
lea rax, [rdi+10h]
xor ecx, ecx
mov [rdi+10h], ecx
mov [rdi+18h], rcx
mov [rdi+20h], rax
mov [rdi+28h], rax
mov [rdi+30h], rcx
lea rax, [rdi+40h]
mov [rdi+40h], ecx
mov [rdi+48h], rcx
mov [rdi+50h], rax
mov [rdi+58h], rax
mov [rdi+60h], rcx
add rdi, 68h ; 'h'
lea rax, [rbx+78h]
mov [rbx+68h], rax
lea rsi, _ZTSN10pocketflow8BaseNodeIiiEE; type descriptor name
lea rdx, _ZTSN10pocketflow8BaseNodeIiiEE+1Bh; type descriptor name
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)
lea rax, off_17A48
mov [rbx], rax
mov [rbx+88h], ebp
mov [rbx+90h], r14
mov dword ptr [rbx+98h], 0
test ebp, ebp
jle short loc_E22B
test r14, r14
js short loc_E249
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_E22B:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r15, rax
lea rsi, aMaxretriesMust; "maxRetries must be at least 1"
mov rdi, rax; this
call __ZNSt16invalid_argumentC1EPKc; std::invalid_argument::invalid_argument(char const*)
jmp short loc_E265
loc_E249:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r15, rax
lea rsi, aWaitmillisCann; "waitMillis cannot be negative"
mov rdi, rax; this
call __ZNSt16invalid_argumentC1EPKc; std::invalid_argument::invalid_argument(char const*)
loc_E265:
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt16invalid_argumentD1Ev_ptr; void (*)(void *)
mov rdi, r15; void *
call ___cxa_throw
jmp short $+2
loc_E27D:
mov r14, rax
mov rdi, r15; void *
call ___cxa_free_exception
jmp short loc_E28D
mov r14, rax
loc_E28D:
mov rdi, rbx
call _ZN10pocketflow8BaseNodeIiiED2Ev; pocketflow::BaseNode<int,int>::~BaseNode()
jmp short loc_E2AF
mov r14, rax
lea rdi, [rbx+38h]
add rbx, 8
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St10shared_ptrIN10pocketflow9IBaseNodeEEESt10_Select1stISC_ESt4lessIS5_ESaISC_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::shared_ptr<pocketflow::IBaseNode>>,std::_Select1st<std::pair<std::string const,std::shared_ptr<pocketflow::IBaseNode>>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::shared_ptr<pocketflow::IBaseNode>>>>::~_Rb_tree()
mov rdi, rbx
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St3anyESt10_Select1stIS9_ESt4lessIS5_ESaIS9_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::any>,std::_Select1st<std::pair<std::string const,std::any>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::any>>>::~_Rb_tree()
loc_E2AF:
mov rdi, r14
call __Unwind_Resume
| long long ( ** pocketflow::Node<int,int>::Node(long long a1, int a2, long long a3))()
{
long long ( **result)(); // rax
std::invalid_argument *exception; // r15
*(_QWORD *)a1 = &off_17AD0;
*(_DWORD *)(a1 + 16) = 0;
*(_QWORD *)(a1 + 24) = 0LL;
*(_QWORD *)(a1 + 32) = a1 + 16;
*(_QWORD *)(a1 + 40) = a1 + 16;
*(_QWORD *)(a1 + 48) = 0LL;
*(_DWORD *)(a1 + 64) = 0;
*(_QWORD *)(a1 + 72) = 0LL;
*(_QWORD *)(a1 + 80) = a1 + 64;
*(_QWORD *)(a1 + 88) = a1 + 64;
*(_QWORD *)(a1 + 96) = 0LL;
*(_QWORD *)(a1 + 104) = a1 + 120;
std::string::_M_construct<char const*>(a1 + 104, "N10pocketflow8BaseNodeIiiEE", (long long)"");
result = &off_17A48;
*(_QWORD *)a1 = &off_17A48;
*(_DWORD *)(a1 + 136) = a2;
*(_QWORD *)(a1 + 144) = a3;
*(_DWORD *)(a1 + 152) = 0;
if ( a2 <= 0 )
{
exception = (std::invalid_argument *)__cxa_allocate_exception(0x10uLL);
std::invalid_argument::invalid_argument(exception, "maxRetries must be at least 1");
goto LABEL_6;
}
if ( a3 < 0 )
{
exception = (std::invalid_argument *)__cxa_allocate_exception(0x10uLL);
std::invalid_argument::invalid_argument(exception, "waitMillis cannot be negative");
LABEL_6:
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::invalid_argument,
(void (*)(void *))&std::invalid_argument::~invalid_argument);
}
return result;
}
| Node:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
LEA RAX,[0x117ad0]
MOV qword ptr [RDI],RAX
LEA RAX,[RDI + 0x10]
XOR ECX,ECX
MOV dword ptr [RDI + 0x10],ECX
MOV qword ptr [RDI + 0x18],RCX
MOV qword ptr [RDI + 0x20],RAX
MOV qword ptr [RDI + 0x28],RAX
MOV qword ptr [RDI + 0x30],RCX
LEA RAX,[RDI + 0x40]
MOV dword ptr [RDI + 0x40],ECX
MOV qword ptr [RDI + 0x48],RCX
MOV qword ptr [RDI + 0x50],RAX
MOV qword ptr [RDI + 0x58],RAX
MOV qword ptr [RDI + 0x60],RCX
ADD RDI,0x68
LEA RAX,[RBX + 0x78]
MOV qword ptr [RBX + 0x68],RAX
LAB_0010e1e3:
LEA RSI,[0x111c70]
LEA RDX,[0x111c8b]
CALL 0x00109030
LAB_0010e1f6:
LEA RAX,[0x117a48]
MOV qword ptr [RBX],RAX
MOV dword ptr [RBX + 0x88],EBP
MOV qword ptr [RBX + 0x90],R14
MOV dword ptr [RBX + 0x98],0x0
TEST EBP,EBP
JLE 0x0010e22b
TEST R14,R14
JS 0x0010e249
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0010e22b:
MOV EDI,0x10
CALL 0x001050e0
MOV R15,RAX
LAB_0010e238:
LEA RSI,[0x11140a]
MOV RDI,RAX
CALL 0x001052c0
LAB_0010e247:
JMP 0x0010e265
LAB_0010e249:
MOV EDI,0x10
CALL 0x001050e0
MOV R15,RAX
LAB_0010e256:
LEA RSI,[0x111428]
MOV RDI,RAX
CALL 0x001052c0
LAB_0010e265:
MOV RSI,qword ptr [0x00117fd8]
MOV RDX,qword ptr [0x00117fc0]
MOV RDI,R15
CALL 0x00105280
|
/* pocketflow::Node<int, int>::Node(int, long long) */
void __thiscall pocketflow::Node<int,int>::Node(Node<int,int> *this,int param_1,longlong param_2)
{
invalid_argument *this_00;
*(int ***)this = &PTR__BaseNode_00117ad0;
*(int4 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(Node<int,int> **)(this + 0x20) = this + 0x10;
*(Node<int,int> **)(this + 0x28) = this + 0x10;
*(int8 *)(this + 0x30) = 0;
*(int4 *)(this + 0x40) = 0;
*(int8 *)(this + 0x48) = 0;
*(Node<int,int> **)(this + 0x50) = this + 0x40;
*(Node<int,int> **)(this + 0x58) = this + 0x40;
*(int8 *)(this + 0x60) = 0;
*(Node<int,int> **)(this + 0x68) = this + 0x78;
/* try { // try from 0010e1e3 to 0010e1f5 has its CatchHandler @ 0010e297 */
std::__cxx11::string::_M_construct<char_const*>
((string *)(this + 0x68),"N10pocketflow8BaseNodeIiiEE","");
*(int ***)this = &PTR__BaseNode_00117a48;
*(int *)(this + 0x88) = param_1;
*(longlong *)(this + 0x90) = param_2;
*(int4 *)(this + 0x98) = 0;
if (param_1 < 1) {
this_00 = (invalid_argument *)__cxa_allocate_exception(0x10);
/* try { // try from 0010e238 to 0010e246 has its CatchHandler @ 0010e27d */
std::invalid_argument::invalid_argument(this_00,"maxRetries must be at least 1");
}
else {
if (-1 < param_2) {
return;
}
this_00 = (invalid_argument *)__cxa_allocate_exception(0x10);
/* try { // try from 0010e256 to 0010e264 has its CatchHandler @ 0010e27b */
std::invalid_argument::invalid_argument(this_00,"waitMillis cannot be negative");
}
/* try { // try from 0010e265 to 0010e27a has its CatchHandler @ 0010e28a */
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_00117fd8,PTR__invalid_argument_00117fc0);
}
| |
27,099 | 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) | monkey531[P]llama/common/json.hpp | inline void grisu2(char* buf, int& len, int& decimal_exponent,
diyfp m_minus, diyfp v, diyfp m_plus)
{
JSON_ASSERT(m_plus.e == m_minus.e);
JSON_ASSERT(m_plus.e == v.e);
// --------(-----------------------+-----------------------)-------- (A)
// m- v m+
//
// --------------------(-----------+-----------------------)-------- (B)
// m- v m+
//
// First scale v (and m- and m+) such that the exponent is in the range
// [alpha, gamma].
const cached_power cached = get_cached_power_for_binary_exponent(m_plus.e);
const diyfp c_minus_k(cached.f, cached.e); // = c ~= 10^-k
// The exponent of the products is = v.e + c_minus_k.e + q and is in the range [alpha,gamma]
const diyfp w = diyfp::mul(v, c_minus_k);
const diyfp w_minus = diyfp::mul(m_minus, c_minus_k);
const diyfp w_plus = diyfp::mul(m_plus, c_minus_k);
// ----(---+---)---------------(---+---)---------------(---+---)----
// w- w w+
// = c*m- = c*v = c*m+
//
// diyfp::mul rounds its result and c_minus_k is approximated too. w, w- and
// w+ are now off by a small amount.
// In fact:
//
// w - v * 10^k < 1 ulp
//
// To account for this inaccuracy, add resp. subtract 1 ulp.
//
// --------+---[---------------(---+---)---------------]---+--------
// w- M- w M+ w+
//
// Now any number in [M-, M+] (bounds included) will round to w when input,
// regardless of how the input rounding algorithm breaks ties.
//
// And digit_gen generates the shortest possible such number in [M-, M+].
// Note that this does not mean that Grisu2 always generates the shortest
// possible number in the interval (m-, m+).
const diyfp M_minus(w_minus.f + 1, w_minus.e);
const diyfp M_plus (w_plus.f - 1, w_plus.e );
decimal_exponent = -cached.k; // = -(-k) = k
grisu2_digit_gen(buf, len, decimal_exponent, M_minus, w, M_plus);
} | O3 | cpp | 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):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rcx, 0x58(%rsp)
movl %r8d, 0x60(%rsp)
cmpl %r8d, 0xc8(%rsp)
jne 0xb7afa
movq %rdi, 0x20(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
leaq 0xb0(%rsp), %r13
cmpl %r8d, 0x8(%r13)
jne 0xb7b16
movl %r8d, %edi
callq 0xb7bd1
movq %rdx, %r12
leaq 0x68(%rsp), %r14
movq %rax, (%r14)
movl %r12d, 0x8(%r14)
movq %r13, %rdi
movq %r14, %rsi
callq 0xb7d12
movq %rax, %r15
movl %edx, %ebx
leaq 0x58(%rsp), %rdi
movq %r14, %rsi
callq 0xb7d12
movq %rax, %r13
movl %edx, %ebp
leaq 0xc0(%rsp), %rdi
movq %r14, %rsi
callq 0xb7d12
incq %r13
decq %rax
shrq $0x20, %r12
negl %r12d
movq 0x30(%rsp), %rcx
movl %r12d, (%rcx)
movq %r15, 0x48(%rsp)
movl %ebx, 0x50(%rsp)
movq %rax, 0x38(%rsp)
movl %edx, 0x40(%rsp)
movups 0x38(%rsp), %xmm0
movups %xmm0, 0x10(%rsp)
movups 0x48(%rsp), %xmm0
movups %xmm0, (%rsp)
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq %rcx, %rdx
movq %r13, %rcx
movl %ebp, %r8d
callq 0xb7d6e
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x360e2(%rip), %rdi # 0xedbe3
leaq 0x30638(%rip), %rdx # 0xe8140
leaq 0x3b8ca(%rip), %rcx # 0xf33d9
movl $0x454b, %esi # imm = 0x454B
jmp 0xb7b30
leaq 0x360c6(%rip), %rdi # 0xedbe3
leaq 0x3061c(%rip), %rdx # 0xe8140
leaq 0x3b8c4(%rip), %rcx # 0xf33ef
movl $0x454c, %esi # imm = 0x454C
xorl %eax, %eax
callq 0x1be80
nop
| _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl6grisu2EPcRiS4_NS2_5diyfpES5_S5_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov [rsp+0A8h+var_50], rcx
mov [rsp+0A8h+var_48], r8d
cmp [rsp+0A8h+arg_18], r8d
jnz loc_B7AFA
mov [rsp+0A8h+var_88], rdi
mov [rsp+0A8h+var_80], rsi
mov [rsp+0A8h+var_78], rdx
lea r13, [rsp+0A8h+arg_0]
cmp [r13+8], r8d
jnz loc_B7B16
mov edi, r8d; this
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl36get_cached_power_for_binary_exponentEi; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(int)
mov r12, rdx
lea r14, [rsp+0A8h+var_40]
mov [r14], rax
mov [r14+8], r12d
mov rdi, r13
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp3mulERKS3_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&)
mov r15, rax
mov ebx, edx
lea rdi, [rsp+0A8h+var_50]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp3mulERKS3_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&)
mov r13, rax
mov ebp, edx
lea rdi, [rsp+0A8h+arg_10]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp3mulERKS3_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&)
inc r13
dec rax
shr r12, 20h
neg r12d
mov rcx, [rsp+0A8h+var_78]
mov [rcx], r12d
mov qword ptr [rsp+0A8h+var_60], r15
mov dword ptr [rsp+0A8h+var_60+8], ebx
mov qword ptr [rsp+0A8h+var_70], rax
mov dword ptr [rsp+0A8h+var_70+8], edx
movups xmm0, xmmword ptr [rsp+0A8h+var_70]
movups xmmword ptr [rsp+0A8h+var_98], xmm0; char
movups xmm0, xmmword ptr [rsp+0A8h+var_60]
movups xmmword ptr [rsp+0A8h+var_A8], xmm0; char
mov rdi, [rsp+0A8h+var_88]; this
mov rsi, [rsp+0A8h+var_80]
mov rdx, rcx
mov rcx, r13
mov r8d, ebp
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl16grisu2_digit_genEPcRiS4_NS2_5diyfpES5_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_digit_gen(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, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_B7AFA:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aMPlusEMMinusE; "m_plus.e == m_minus.e"
mov esi, 454Bh
jmp short loc_B7B30
loc_B7B16:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aMPlusEVE; "m_plus.e == v.e"
mov esi, 454Ch
loc_B7B30:
xor eax, eax
call _ggml_abort
nop
| long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(
nlohmann::json_abi_v3_11_3::detail::dtoa_impl *a1,
int a2,
_DWORD *a3,
long long a4,
unsigned int a5,
long long a6,
char a7,
int a8,
char a9,
int a10)
{
long long cached_power_for_binary_exponent; // rax
int v11; // rdx^4
int v12; // r12^4
int v13; // edx
char v14; // r15
int v15; // edx
int v16; // ebx
char v17; // al
int v18; // edx
long long v20; // rsi
long long v22; // [rsp+58h] [rbp-50h] BYREF
unsigned int v23; // [rsp+60h] [rbp-48h]
long long v24; // [rsp+68h] [rbp-40h] BYREF
int v25; // [rsp+70h] [rbp-38h]
v22 = a4;
v23 = a5;
if ( a10 == a5 )
{
if ( a8 == a5 )
{
cached_power_for_binary_exponent = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(
(nlohmann::json_abi_v3_11_3::detail::dtoa_impl *)a5,
a2);
v12 = v11;
v24 = cached_power_for_binary_exponent;
v25 = v13;
v14 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(&a7, &v24);
v16 = v15;
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(&v22, &v24);
v17 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(&a9, &v24);
*a3 = -v12;
return nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_digit_gen(a1, v14, v16, v17 - 1, v18);
}
v20 = 17740LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17740LL,
"GGML_ASSERT(%s) failed",
"m_plus.e == v.e");
}
else
{
v20 = 17739LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17739LL,
"GGML_ASSERT(%s) failed",
"m_plus.e == m_minus.e");
}
return nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
v20);
}
| grisu2:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV qword ptr [RSP + 0x58],RCX
MOV dword ptr [RSP + 0x60],R8D
CMP dword ptr [RSP + 0xc8],R8D
JNZ 0x001b7afa
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x28],RSI
MOV qword ptr [RSP + 0x30],RDX
LEA R13,[RSP + 0xb0]
CMP dword ptr [R13 + 0x8],R8D
JNZ 0x001b7b16
MOV EDI,R8D
CALL 0x001b7bd1
MOV R12,RDX
LEA R14,[RSP + 0x68]
MOV qword ptr [R14],RAX
MOV dword ptr [R14 + 0x8],R12D
MOV RDI,R13
MOV RSI,R14
CALL 0x001b7d12
MOV R15,RAX
MOV EBX,EDX
LEA RDI,[RSP + 0x58]
MOV RSI,R14
CALL 0x001b7d12
MOV R13,RAX
MOV EBP,EDX
LEA RDI,[RSP + 0xc0]
MOV RSI,R14
CALL 0x001b7d12
INC R13
DEC RAX
SHR R12,0x20
NEG R12D
MOV RCX,qword ptr [RSP + 0x30]
MOV dword ptr [RCX],R12D
MOV qword ptr [RSP + 0x48],R15
MOV dword ptr [RSP + 0x50],EBX
MOV qword ptr [RSP + 0x38],RAX
MOV dword ptr [RSP + 0x40],EDX
MOVUPS XMM0,xmmword ptr [RSP + 0x38]
MOVUPS xmmword ptr [RSP + 0x10],XMM0
MOVUPS XMM0,xmmword ptr [RSP + 0x48]
MOVUPS xmmword ptr [RSP],XMM0
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RSP + 0x28]
MOV RDX,RCX
MOV RCX,R13
MOV R8D,EBP
CALL 0x001b7d6e
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001b7afa:
LEA RDI,[0x1edbe3]
LEA RDX,[0x1e8140]
LEA RCX,[0x1f33d9]
MOV ESI,0x454b
JMP 0x001b7b30
LAB_001b7b16:
LEA RDI,[0x1edbe3]
LEA RDX,[0x1e8140]
LEA RCX,[0x1f33ef]
MOV ESI,0x454c
LAB_001b7b30:
XOR EAX,EAX
CALL 0x0011be80
|
/* 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) */
void nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2
(int8 param_1,int8 param_2,int *param_3,int8 param_4,int param_5,
int8 param_6,int8 param_7,int param_8,int8 param_9,int param_10)
{
int4 uVar1;
char *pcVar2;
int4 extraout_EDX;
int8 uVar3;
int1 auVar4 [12];
int1 auVar5 [12];
int1 auVar6 [16];
int4 uStack_64;
int8 local_50;
int local_48;
int8 local_40;
int4 local_38;
local_50 = param_4;
local_48 = param_5;
if (param_10 == param_5) {
if (param_8 == param_5) {
auVar6 = get_cached_power_for_binary_exponent(param_5);
local_40 = auVar6._0_8_;
local_38 = auVar6._8_4_;
uVar1 = diyfp::mul((diyfp *)¶m_7,(diyfp *)&local_40);
auVar4 = diyfp::mul((diyfp *)&local_50,(diyfp *)&local_40);
auVar5 = diyfp::mul((diyfp *)¶m_9,(diyfp *)&local_40);
*param_3 = -auVar6._12_4_;
grisu2_digit_gen(param_1,param_2,param_3,auVar4._0_8_ + 1,auVar4._8_4_,param_6,uVar1,
extraout_EDX,auVar5._0_8_ + -1,CONCAT44(uStack_64,auVar5._8_4_));
return;
}
pcVar2 = "m_plus.e == v.e";
uVar3 = 0x454c;
}
else {
pcVar2 = "m_plus.e == m_minus.e";
uVar3 = 0x454b;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar3,
"GGML_ASSERT(%s) failed",pcVar2);
}
|
Subsets and Splits
C++ Functions Using STL
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++ STL Function Queries
Filters C++ code examples that use standard library containers and algorithms, helping identify common programming patterns and library usage in code generation tasks.
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.