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
|
|---|---|---|---|---|---|---|---|---|---|---|---|
16,200
|
JS_EvalObject
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue JS_EvalObject(JSContext *ctx, JSValue this_obj,
JSValue val, int flags, int scope_idx)
{
JSValue ret;
const char *str;
size_t len;
if (!JS_IsString(val))
return js_dup(val);
str = JS_ToCStringLen(ctx, &len, val);
if (!str)
return JS_EXCEPTION;
ret = JS_EvalInternal(ctx, this_obj, str, len, "<input>", flags, scope_idx);
JS_FreeCString(ctx, str);
return ret;
}
|
O2
|
c
|
JS_EvalObject:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %rbx
movq %rcx, %r14
cmpl $-0x7, %ebx
jne 0x3b3d7
movq %rdx, %rbp
movq %rsi, %r12
movq %rdi, %r15
movq %r9, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x3a79e
testq %rax, %rax
je 0x3b404
movq %rax, %r13
movl 0x50(%rsp), %eax
movq 0x10(%rsp), %r8
leaq 0x4e237(%rip), %r9 # 0x895e3
movq %r15, %rdi
movq %r12, %rsi
movq %rbp, %rdx
movq %r13, %rcx
pushq %rax
pushq 0x10(%rsp)
callq 0x2d57d
popq %rcx
popq %rsi
movq %rax, %r14
movq %rdx, %rbx
movq %r15, %rdi
movq %r13, %rsi
callq 0x1ec07
jmp 0x3b3df
cmpl $-0x9, %ebx
jb 0x3b3df
incl (%r14)
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
andq %r14, %rcx
movl %r14d, %eax
orq %rcx, %rax
movq %rbx, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x6
popq %rbx
xorl %r14d, %r14d
xorl %ecx, %ecx
jmp 0x3b3ec
|
JS_EvalObject:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, r8
mov r14, rcx
cmp ebx, 0FFFFFFF9h
jnz short loc_3B3D7
mov rbp, rdx
mov r12, rsi
mov r15, rdi
mov [rsp+48h+var_40], r9
lea rsi, [rsp+48h+var_38]
mov rdx, r14
mov rcx, rbx
call JS_ToCStringLen_0
test rax, rax
jz short loc_3B404
mov r13, rax
mov eax, [rsp+48h+arg_0]
mov r8, [rsp+48h+var_38]
lea r9, aInput; "<input>"
mov rdi, r15
mov rsi, r12
mov rdx, rbp
mov rcx, r13
push rax
push [rsp+50h+var_40]
call JS_EvalInternal
pop rcx
pop rsi
mov r14, rax
mov rbx, rdx
mov rdi, r15
mov rsi, r13
call JS_FreeCString
jmp short loc_3B3DF
loc_3B3D7:
cmp ebx, 0FFFFFFF7h
jb short loc_3B3DF
inc dword ptr [r14]
loc_3B3DF:
mov rcx, 0FFFFFFFF00000000h
and rcx, r14
loc_3B3EC:
mov eax, r14d
or rax, rcx
mov rdx, rbx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3B404:
push 6
pop rbx
xor r14d, r14d
xor ecx, ecx
jmp short loc_3B3EC
|
unsigned long long JS_EvalObject(
long long a1,
long long a2,
long long a3,
_DWORD *a4,
long long a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
double a10,
double a11,
__m128 a12,
__m128 a13)
{
long long v13; // r14
long long v15; // rax
__m128 v16; // xmm4
__m128 v17; // xmm5
long long v18; // r13
unsigned long long v19; // rcx
long long v21[7]; // [rsp+10h] [rbp-38h] BYREF
v13 = (long long)a4;
if ( (_DWORD)a5 == -7 )
{
v15 = JS_ToCStringLen_0(a1, v21, (long long)a4, a5);
if ( !v15 )
{
LODWORD(v13) = 0;
v19 = 0LL;
return v19 | (unsigned int)v13;
}
v18 = v15;
v13 = JS_EvalInternal(a1, a6, a7, a8, a9, v16, v17, a12, a13, a2, a3, v15, v21[0], (long long)"<input>");
JS_FreeCString(a1, v18);
}
else if ( (unsigned int)a5 >= 0xFFFFFFF7 )
{
++*a4;
}
v19 = v13 & 0xFFFFFFFF00000000LL;
return v19 | (unsigned int)v13;
}
|
JS_EvalObject:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,R8
MOV R14,RCX
CMP EBX,-0x7
JNZ 0x0013b3d7
MOV RBP,RDX
MOV R12,RSI
MOV R15,RDI
MOV qword ptr [RSP + 0x8],R9
LEA RSI,[RSP + 0x10]
MOV RDX,R14
MOV RCX,RBX
CALL 0x0013a79e
TEST RAX,RAX
JZ 0x0013b404
MOV R13,RAX
MOV EAX,dword ptr [RSP + 0x50]
MOV R8,qword ptr [RSP + 0x10]
LEA R9,[0x1895e3]
MOV RDI,R15
MOV RSI,R12
MOV RDX,RBP
MOV RCX,R13
PUSH RAX
PUSH qword ptr [RSP + 0x10]
CALL 0x0012d57d
POP RCX
POP RSI
MOV R14,RAX
MOV RBX,RDX
MOV RDI,R15
MOV RSI,R13
CALL 0x0011ec07
JMP 0x0013b3df
LAB_0013b3d7:
CMP EBX,-0x9
JC 0x0013b3df
INC dword ptr [R14]
LAB_0013b3df:
MOV RCX,-0x100000000
AND RCX,R14
LAB_0013b3ec:
MOV EAX,R14D
OR RAX,RCX
MOV RDX,RBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0013b404:
PUSH 0x6
POP RBX
XOR R14D,R14D
XOR ECX,ECX
JMP 0x0013b3ec
|
int1 [16]
JS_EvalObject(int8 param_1,int8 param_2,int8 param_3,int *param_4,
int8 param_5,int8 param_6,int4 param_7)
{
int1 auVar1 [16];
long lVar2;
ulong uVar3;
int1 auVar4 [16];
int1 auVar5 [16];
int8 local_38;
auVar1._8_8_ = param_5;
auVar1._0_8_ = param_4;
auVar4._8_8_ = param_5;
auVar4._0_8_ = param_4;
if ((uint)param_5 == 0xfffffff9) {
lVar2 = JS_ToCStringLen(param_1,&local_38,param_4,param_5);
if (lVar2 == 0) {
auVar4 = ZEXT816(6) << 0x40;
uVar3 = 0;
goto LAB_0013b3ec;
}
auVar4 = JS_EvalInternal(param_1,param_2,param_3,lVar2,local_38,"<input>",param_6,param_7);
JS_FreeCString(param_1,lVar2,auVar4._8_8_,param_6);
}
else if (0xfffffff6 < (uint)param_5) {
*param_4 = *param_4 + 1;
auVar4 = auVar1;
}
uVar3 = auVar4._0_8_ & 0xffffffff00000000;
LAB_0013b3ec:
auVar5._0_8_ = auVar4._0_8_ & 0xffffffff | uVar3;
auVar5._8_8_ = auVar4._8_8_;
return auVar5;
}
|
|
16,201
|
LefDefParser::defiStyles::setPolygon(LefDefParser::defiGeometries*)
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiMisc.cpp
|
void defiStyles::setPolygon(defiGeometries* geom) {
struct defiPoints* p;
int i, x, y;
if (polygon_ == 0) {
p = (struct defiPoints*)malloc(sizeof(struct defiPoints));
p->numPoints = geom->numPoints();
p->x = (int*)malloc(sizeof(int)*p->numPoints);
p->y = (int*)malloc(sizeof(int)*p->numPoints);
numPointAlloc_ = p->numPoints; // keep track the max number pts
} else if (numPointAlloc_ < geom->numPoints()) {
// the incoming polygon has more number then has been allocated,
// need to reallocate more memory
p = polygon_;
free((char*)(p->x));
free((char*)(p->y));
p->numPoints = geom->numPoints();
p->x = (int*)malloc(sizeof(int)*p->numPoints);
p->y = (int*)malloc(sizeof(int)*p->numPoints);
numPointAlloc_ = p->numPoints; // keep track the max number pts
} else {
p = polygon_;
p->numPoints = geom->numPoints();
}
for (i = 0; i < p->numPoints; i++) {
geom->points(i, &x, &y);
p->x[i] = x;
p->y[i] = y;
}
polygon_ = p;
}
|
O0
|
cpp
|
LefDefParser::defiStyles::setPolygon(LefDefParser::defiGeometries*):
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rax)
jne 0x27d6f
movl $0x18, %edi
callq 0x72d0
movq %rax, 0x20(%rsp)
movq 0x28(%rsp), %rdi
callq 0x27b10
movl %eax, %ecx
movq 0x20(%rsp), %rax
movl %ecx, (%rax)
movq 0x20(%rsp), %rax
movslq (%rax), %rdi
shlq $0x2, %rdi
callq 0x72d0
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x20(%rsp), %rax
movslq (%rax), %rdi
shlq $0x2, %rdi
callq 0x72d0
movq %rax, %rdx
movq 0x8(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rdx, 0x10(%rcx)
movq 0x20(%rsp), %rcx
movl (%rcx), %ecx
movl %ecx, 0x10(%rax)
jmp 0x27e3e
movq 0x8(%rsp), %rax
movl 0x10(%rax), %eax
movl %eax, 0x4(%rsp)
movq 0x28(%rsp), %rdi
callq 0x27b10
movl %eax, %ecx
movl 0x4(%rsp), %eax
cmpl %ecx, %eax
jge 0x27e1b
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x72a0
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x72a0
movq 0x28(%rsp), %rdi
callq 0x27b10
movl %eax, %ecx
movq 0x20(%rsp), %rax
movl %ecx, (%rax)
movq 0x20(%rsp), %rax
movslq (%rax), %rdi
shlq $0x2, %rdi
callq 0x72d0
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x20(%rsp), %rax
movslq (%rax), %rdi
shlq $0x2, %rdi
callq 0x72d0
movq %rax, %rdx
movq 0x8(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rdx, 0x10(%rcx)
movq 0x20(%rsp), %rcx
movl (%rcx), %ecx
movl %ecx, 0x10(%rax)
jmp 0x27e3c
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x28(%rsp), %rdi
callq 0x27b10
movl %eax, %ecx
movq 0x20(%rsp), %rax
movl %ecx, (%rax)
jmp 0x27e3e
movl $0x0, 0x1c(%rsp)
movl 0x1c(%rsp), %eax
movq 0x20(%rsp), %rcx
cmpl (%rcx), %eax
jge 0x27ea2
movq 0x28(%rsp), %rdi
movl 0x1c(%rsp), %esi
leaq 0x18(%rsp), %rdx
leaq 0x14(%rsp), %rcx
callq 0x27b20
movl 0x18(%rsp), %edx
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movslq 0x1c(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movl 0x14(%rsp), %edx
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rax
movslq 0x1c(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x27e46
movq 0x8(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x8(%rax)
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
|
_ZN12LefDefParser10defiStyles10setPolygonEPNS_14defiGeometriesE:
sub rsp, 38h
mov [rsp+38h+var_8], rdi
mov [rsp+38h+var_10], rsi
mov rax, [rsp+38h+var_8]
mov [rsp+38h+var_30], rax
cmp qword ptr [rax+8], 0
jnz short loc_27D6F
mov edi, 18h
call _malloc
mov [rsp+38h+var_18], rax
mov rdi, [rsp+38h+var_10]; this
call _ZNK12LefDefParser14defiGeometries9numPointsEv; LefDefParser::defiGeometries::numPoints(void)
mov ecx, eax
mov rax, [rsp+38h+var_18]
mov [rax], ecx
mov rax, [rsp+38h+var_18]
movsxd rdi, dword ptr [rax]
shl rdi, 2
call _malloc
mov rcx, rax
mov rax, [rsp+38h+var_18]
mov [rax+8], rcx
mov rax, [rsp+38h+var_18]
movsxd rdi, dword ptr [rax]
shl rdi, 2
call _malloc
mov rdx, rax
mov rax, [rsp+38h+var_30]
mov rcx, [rsp+38h+var_18]
mov [rcx+10h], rdx
mov rcx, [rsp+38h+var_18]
mov ecx, [rcx]
mov [rax+10h], ecx
jmp loc_27E3E
loc_27D6F:
mov rax, [rsp+38h+var_30]
mov eax, [rax+10h]
mov [rsp+38h+var_34], eax
mov rdi, [rsp+38h+var_10]; this
call _ZNK12LefDefParser14defiGeometries9numPointsEv; LefDefParser::defiGeometries::numPoints(void)
mov ecx, eax
mov eax, [rsp+38h+var_34]
cmp eax, ecx
jge loc_27E1B
mov rax, [rsp+38h+var_30]
mov rax, [rax+8]
mov [rsp+38h+var_18], rax
mov rax, [rsp+38h+var_18]
mov rdi, [rax+8]
call _free
mov rax, [rsp+38h+var_18]
mov rdi, [rax+10h]
call _free
mov rdi, [rsp+38h+var_10]; this
call _ZNK12LefDefParser14defiGeometries9numPointsEv; LefDefParser::defiGeometries::numPoints(void)
mov ecx, eax
mov rax, [rsp+38h+var_18]
mov [rax], ecx
mov rax, [rsp+38h+var_18]
movsxd rdi, dword ptr [rax]
shl rdi, 2
call _malloc
mov rcx, rax
mov rax, [rsp+38h+var_18]
mov [rax+8], rcx
mov rax, [rsp+38h+var_18]
movsxd rdi, dword ptr [rax]
shl rdi, 2
call _malloc
mov rdx, rax
mov rax, [rsp+38h+var_30]
mov rcx, [rsp+38h+var_18]
mov [rcx+10h], rdx
mov rcx, [rsp+38h+var_18]
mov ecx, [rcx]
mov [rax+10h], ecx
jmp short loc_27E3C
loc_27E1B:
mov rax, [rsp+38h+var_30]
mov rax, [rax+8]
mov [rsp+38h+var_18], rax
mov rdi, [rsp+38h+var_10]; this
call _ZNK12LefDefParser14defiGeometries9numPointsEv; LefDefParser::defiGeometries::numPoints(void)
mov ecx, eax
mov rax, [rsp+38h+var_18]
mov [rax], ecx
loc_27E3C:
jmp short $+2
loc_27E3E:
mov [rsp+38h+var_1C], 0
loc_27E46:
mov eax, [rsp+38h+var_1C]
mov rcx, [rsp+38h+var_18]
cmp eax, [rcx]
jge short loc_27EA2
mov rdi, [rsp+38h+var_10]; this
mov esi, [rsp+38h+var_1C]; int
lea rdx, [rsp+38h+var_20]; int *
lea rcx, [rsp+38h+var_24]; int *
call _ZNK12LefDefParser14defiGeometries6pointsEiPiS1_; LefDefParser::defiGeometries::points(int,int *,int *)
mov edx, [rsp+38h+var_20]
mov rax, [rsp+38h+var_18]
mov rax, [rax+8]
movsxd rcx, [rsp+38h+var_1C]
mov [rax+rcx*4], edx
mov edx, [rsp+38h+var_24]
mov rax, [rsp+38h+var_18]
mov rax, [rax+10h]
movsxd rcx, [rsp+38h+var_1C]
mov [rax+rcx*4], edx
mov eax, [rsp+38h+var_1C]
add eax, 1
mov [rsp+38h+var_1C], eax
jmp short loc_27E46
loc_27EA2:
mov rax, [rsp+38h+var_30]
mov rcx, [rsp+38h+var_18]
mov [rax+8], rcx
add rsp, 38h
retn
|
LefDefParser::defiStyles * LefDefParser::defiStyles::setPolygon(
LefDefParser::defiStyles *this,
LefDefParser::defiGeometries *a2)
{
LefDefParser::defiStyles *result; // rax
int v3; // [rsp+4h] [rbp-34h]
int v4; // [rsp+14h] [rbp-24h] BYREF
int v5; // [rsp+18h] [rbp-20h] BYREF
int i; // [rsp+1Ch] [rbp-1Ch]
int *v7; // [rsp+20h] [rbp-18h]
LefDefParser::defiGeometries *v8; // [rsp+28h] [rbp-10h]
LefDefParser::defiStyles *v9; // [rsp+30h] [rbp-8h]
v9 = this;
v8 = a2;
if ( *((_QWORD *)this + 1) )
{
v3 = *((_DWORD *)this + 4);
if ( v3 >= (int)LefDefParser::defiGeometries::numPoints(v8) )
{
v7 = (int *)*((_QWORD *)this + 1);
*v7 = LefDefParser::defiGeometries::numPoints(v8);
}
else
{
v7 = (int *)*((_QWORD *)this + 1);
free(*((_QWORD *)v7 + 1));
free(*((_QWORD *)v7 + 2));
*v7 = LefDefParser::defiGeometries::numPoints(v8);
*((_QWORD *)v7 + 1) = malloc(4LL * *v7);
*((_QWORD *)v7 + 2) = malloc(4LL * *v7);
*((_DWORD *)this + 4) = *v7;
}
}
else
{
v7 = (int *)malloc(24LL);
*v7 = LefDefParser::defiGeometries::numPoints(v8);
*((_QWORD *)v7 + 1) = malloc(4LL * *v7);
*((_QWORD *)v7 + 2) = malloc(4LL * *v7);
*((_DWORD *)this + 4) = *v7;
}
for ( i = 0; i < *v7; ++i )
{
LefDefParser::defiGeometries::points((LefDefParser::defrData **)v8, i, &v5, &v4);
*(_DWORD *)(*((_QWORD *)v7 + 1) + 4LL * i) = v5;
*(_DWORD *)(*((_QWORD *)v7 + 2) + 4LL * i) = v4;
}
result = this;
*((_QWORD *)this + 1) = v7;
return result;
}
|
setPolygon:
SUB RSP,0x38
MOV qword ptr [RSP + 0x30],RDI
MOV qword ptr [RSP + 0x28],RSI
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x8],RAX
CMP qword ptr [RAX + 0x8],0x0
JNZ 0x00127d6f
MOV EDI,0x18
CALL 0x001072d0
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x00127b10
MOV ECX,EAX
MOV RAX,qword ptr [RSP + 0x20]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RSP + 0x20]
MOVSXD RDI,dword ptr [RAX]
SHL RDI,0x2
CALL 0x001072d0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RSP + 0x20]
MOVSXD RDI,dword ptr [RAX]
SHL RDI,0x2
CALL 0x001072d0
MOV RDX,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x20]
MOV qword ptr [RCX + 0x10],RDX
MOV RCX,qword ptr [RSP + 0x20]
MOV ECX,dword ptr [RCX]
MOV dword ptr [RAX + 0x10],ECX
JMP 0x00127e3e
LAB_00127d6f:
MOV RAX,qword ptr [RSP + 0x8]
MOV EAX,dword ptr [RAX + 0x10]
MOV dword ptr [RSP + 0x4],EAX
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x00127b10
MOV ECX,EAX
MOV EAX,dword ptr [RSP + 0x4]
CMP EAX,ECX
JGE 0x00127e1b
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x001072a0
MOV RAX,qword ptr [RSP + 0x20]
MOV RDI,qword ptr [RAX + 0x10]
CALL 0x001072a0
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x00127b10
MOV ECX,EAX
MOV RAX,qword ptr [RSP + 0x20]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RSP + 0x20]
MOVSXD RDI,dword ptr [RAX]
SHL RDI,0x2
CALL 0x001072d0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RSP + 0x20]
MOVSXD RDI,dword ptr [RAX]
SHL RDI,0x2
CALL 0x001072d0
MOV RDX,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x20]
MOV qword ptr [RCX + 0x10],RDX
MOV RCX,qword ptr [RSP + 0x20]
MOV ECX,dword ptr [RCX]
MOV dword ptr [RAX + 0x10],ECX
JMP 0x00127e3c
LAB_00127e1b:
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x00127b10
MOV ECX,EAX
MOV RAX,qword ptr [RSP + 0x20]
MOV dword ptr [RAX],ECX
LAB_00127e3c:
JMP 0x00127e3e
LAB_00127e3e:
MOV dword ptr [RSP + 0x1c],0x0
LAB_00127e46:
MOV EAX,dword ptr [RSP + 0x1c]
MOV RCX,qword ptr [RSP + 0x20]
CMP EAX,dword ptr [RCX]
JGE 0x00127ea2
MOV RDI,qword ptr [RSP + 0x28]
MOV ESI,dword ptr [RSP + 0x1c]
LEA RDX,[RSP + 0x18]
LEA RCX,[RSP + 0x14]
CALL 0x00127b20
MOV EDX,dword ptr [RSP + 0x18]
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX + 0x8]
MOVSXD RCX,dword ptr [RSP + 0x1c]
MOV dword ptr [RAX + RCX*0x4],EDX
MOV EDX,dword ptr [RSP + 0x14]
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX + 0x10]
MOVSXD RCX,dword ptr [RSP + 0x1c]
MOV dword ptr [RAX + RCX*0x4],EDX
MOV EAX,dword ptr [RSP + 0x1c]
ADD EAX,0x1
MOV dword ptr [RSP + 0x1c],EAX
JMP 0x00127e46
LAB_00127ea2:
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x20]
MOV qword ptr [RAX + 0x8],RCX
ADD RSP,0x38
RET
|
/* LefDefParser::defiStyles::setPolygon(LefDefParser::defiGeometries*) */
void __thiscall LefDefParser::defiStyles::setPolygon(defiStyles *this,defiGeometries *param_1)
{
int iVar1;
int iVar2;
void *pvVar3;
int local_24;
int local_20;
int local_1c;
int *local_18;
defiGeometries *local_10;
defiStyles *local_8;
local_10 = param_1;
local_8 = this;
if (*(long *)(this + 8) == 0) {
local_18 = (int *)malloc(0x18);
iVar1 = defiGeometries::numPoints(local_10);
*local_18 = iVar1;
pvVar3 = malloc((long)*local_18 << 2);
*(void **)(local_18 + 2) = pvVar3;
pvVar3 = malloc((long)*local_18 << 2);
*(void **)(local_18 + 4) = pvVar3;
*(int *)(this + 0x10) = *local_18;
}
else {
iVar1 = *(int *)(this + 0x10);
iVar2 = defiGeometries::numPoints(param_1);
if (iVar1 < iVar2) {
local_18 = *(int **)(this + 8);
free(*(void **)(local_18 + 2));
free(*(void **)(local_18 + 4));
iVar1 = defiGeometries::numPoints(local_10);
*local_18 = iVar1;
pvVar3 = malloc((long)*local_18 << 2);
*(void **)(local_18 + 2) = pvVar3;
pvVar3 = malloc((long)*local_18 << 2);
*(void **)(local_18 + 4) = pvVar3;
*(int *)(this + 0x10) = *local_18;
}
else {
local_18 = *(int **)(this + 8);
iVar1 = defiGeometries::numPoints(local_10);
*local_18 = iVar1;
}
}
for (local_1c = 0; local_1c < *local_18; local_1c = local_1c + 1) {
defiGeometries::points(local_10,local_1c,&local_20,&local_24);
*(int *)(*(long *)(local_18 + 2) + (long)local_1c * 4) = local_20;
*(int *)(*(long *)(local_18 + 4) + (long)local_1c * 4) = local_24;
}
*(int **)(this + 8) = local_18;
return;
}
|
|
16,202
|
LefDefParser::defiStyles::setPolygon(LefDefParser::defiGeometries*)
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiMisc.cpp
|
void defiStyles::setPolygon(defiGeometries* geom) {
struct defiPoints* p;
int i, x, y;
if (polygon_ == 0) {
p = (struct defiPoints*)malloc(sizeof(struct defiPoints));
p->numPoints = geom->numPoints();
p->x = (int*)malloc(sizeof(int)*p->numPoints);
p->y = (int*)malloc(sizeof(int)*p->numPoints);
numPointAlloc_ = p->numPoints; // keep track the max number pts
} else if (numPointAlloc_ < geom->numPoints()) {
// the incoming polygon has more number then has been allocated,
// need to reallocate more memory
p = polygon_;
free((char*)(p->x));
free((char*)(p->y));
p->numPoints = geom->numPoints();
p->x = (int*)malloc(sizeof(int)*p->numPoints);
p->y = (int*)malloc(sizeof(int)*p->numPoints);
numPointAlloc_ = p->numPoints; // keep track the max number pts
} else {
p = polygon_;
p->numPoints = geom->numPoints();
}
for (i = 0; i < p->numPoints; i++) {
geom->points(i, &x, &y);
p->x[i] = x;
p->y[i] = y;
}
polygon_ = p;
}
|
O3
|
cpp
|
LefDefParser::defiStyles::setPolygon(LefDefParser::defiGeometries*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rdi), %r15
testq %r15, %r15
je 0x19243
movl (%r14), %r13d
cmpl %r13d, 0x10(%rbx)
jge 0x1927b
movq 0x8(%r15), %rdi
callq 0x6220
movq 0x10(%r15), %rdi
callq 0x6220
movslq (%r14), %r13
movl %r13d, (%r15)
jmp 0x19256
movl $0x18, %edi
callq 0x6270
movq %rax, %r15
movslq (%r14), %r13
movl %r13d, (%rax)
movq %r13, %r12
shlq $0x2, %r12
movq %r12, %rdi
callq 0x6270
movq %rax, 0x8(%r15)
movq %r12, %rdi
callq 0x6270
movq %rax, 0x10(%r15)
movl %r13d, 0x10(%rbx)
jmp 0x1927e
movl %r13d, (%r15)
testl %r13d, %r13d
jle 0x192c1
xorl %r12d, %r12d
leaq 0x4(%rsp), %r13
movq %rsp, %rbp
movq %r14, %rdi
movl %r12d, %esi
movq %r13, %rdx
movq %rbp, %rcx
callq 0x19122
movl 0x4(%rsp), %eax
movq 0x8(%r15), %rcx
movl %eax, (%rcx,%r12,4)
movl (%rsp), %eax
movq 0x10(%r15), %rcx
movl %eax, (%rcx,%r12,4)
incq %r12
movslq (%r15), %rax
cmpq %rax, %r12
jl 0x1928e
movq %r15, 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_ZN12LefDefParser10defiStyles10setPolygonEPNS_14defiGeometriesE:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, rsi
mov rbx, rdi
mov r15, [rdi+8]
test r15, r15
jz short loc_19243
mov r13d, [r14]
cmp [rbx+10h], r13d
jge short loc_1927B
mov rdi, [r15+8]
call _free
mov rdi, [r15+10h]
call _free
movsxd r13, dword ptr [r14]
mov [r15], r13d
jmp short loc_19256
loc_19243:
mov edi, 18h
call _malloc
mov r15, rax
movsxd r13, dword ptr [r14]
mov [rax], r13d
loc_19256:
mov r12, r13
shl r12, 2
mov rdi, r12
call _malloc
mov [r15+8], rax
mov rdi, r12
call _malloc
mov [r15+10h], rax
mov [rbx+10h], r13d
jmp short loc_1927E
loc_1927B:
mov [r15], r13d
loc_1927E:
test r13d, r13d
jle short loc_192C1
xor r12d, r12d
lea r13, [rsp+38h+var_34]
mov rbp, rsp
loc_1928E:
mov rdi, r14; this
mov esi, r12d; int
mov rdx, r13; int *
mov rcx, rbp; int *
call _ZNK12LefDefParser14defiGeometries6pointsEiPiS1_; LefDefParser::defiGeometries::points(int,int *,int *)
mov eax, [rsp+38h+var_34]
mov rcx, [r15+8]
mov [rcx+r12*4], eax
mov eax, [rsp+38h+var_38]
mov rcx, [r15+10h]
mov [rcx+r12*4], eax
inc r12
movsxd rax, dword ptr [r15]
cmp r12, rax
jl short loc_1928E
loc_192C1:
mov [rbx+8], r15
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long LefDefParser::defiStyles::setPolygon(
LefDefParser::defiStyles *this,
LefDefParser::defiGeometries *a2)
{
long long result; // rax
int *v3; // r15
long long v4; // r13
long long v5; // r12
_QWORD v6[7]; // [rsp+0h] [rbp-38h] BYREF
v6[0] = result;
v3 = (int *)*((_QWORD *)this + 1);
if ( !v3 )
{
v3 = (int *)malloc(24LL);
v4 = *(int *)a2;
*v3 = v4;
goto LABEL_5;
}
LODWORD(v4) = *(_DWORD *)a2;
if ( *((_DWORD *)this + 4) < *(_DWORD *)a2 )
{
free(*((_QWORD *)v3 + 1));
free(*((_QWORD *)v3 + 2));
v4 = *(int *)a2;
*v3 = v4;
LABEL_5:
*((_QWORD *)v3 + 1) = malloc(4 * v4);
result = malloc(4 * v4);
*((_QWORD *)v3 + 2) = result;
*((_DWORD *)this + 4) = v4;
goto LABEL_7;
}
*v3 = v4;
LABEL_7:
if ( (int)v4 > 0 )
{
v5 = 0LL;
do
{
LefDefParser::defiGeometries::points(a2, v5, (int *)v6 + 1, (int *)v6);
*(_DWORD *)(*((_QWORD *)v3 + 1) + 4 * v5) = HIDWORD(v6[0]);
*(_DWORD *)(*((_QWORD *)v3 + 2) + 4 * v5++) = v6[0];
result = *v3;
}
while ( v5 < result );
}
*((_QWORD *)this + 1) = v3;
return result;
}
|
setPolygon:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
MOV R15,qword ptr [RDI + 0x8]
TEST R15,R15
JZ 0x00119243
MOV R13D,dword ptr [R14]
CMP dword ptr [RBX + 0x10],R13D
JGE 0x0011927b
MOV RDI,qword ptr [R15 + 0x8]
CALL 0x00106220
MOV RDI,qword ptr [R15 + 0x10]
CALL 0x00106220
MOVSXD R13,dword ptr [R14]
MOV dword ptr [R15],R13D
JMP 0x00119256
LAB_00119243:
MOV EDI,0x18
CALL 0x00106270
MOV R15,RAX
MOVSXD R13,dword ptr [R14]
MOV dword ptr [RAX],R13D
LAB_00119256:
MOV R12,R13
SHL R12,0x2
MOV RDI,R12
CALL 0x00106270
MOV qword ptr [R15 + 0x8],RAX
MOV RDI,R12
CALL 0x00106270
MOV qword ptr [R15 + 0x10],RAX
MOV dword ptr [RBX + 0x10],R13D
JMP 0x0011927e
LAB_0011927b:
MOV dword ptr [R15],R13D
LAB_0011927e:
TEST R13D,R13D
JLE 0x001192c1
XOR R12D,R12D
LEA R13,[RSP + 0x4]
MOV RBP,RSP
LAB_0011928e:
MOV RDI,R14
MOV ESI,R12D
MOV RDX,R13
MOV RCX,RBP
CALL 0x00119122
MOV EAX,dword ptr [RSP + 0x4]
MOV RCX,qword ptr [R15 + 0x8]
MOV dword ptr [RCX + R12*0x4],EAX
MOV EAX,dword ptr [RSP]
MOV RCX,qword ptr [R15 + 0x10]
MOV dword ptr [RCX + R12*0x4],EAX
INC R12
MOVSXD RAX,dword ptr [R15]
CMP R12,RAX
JL 0x0011928e
LAB_001192c1:
MOV qword ptr [RBX + 0x8],R15
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* LefDefParser::defiStyles::setPolygon(LefDefParser::defiGeometries*) */
void __thiscall LefDefParser::defiStyles::setPolygon(defiStyles *this,defiGeometries *param_1)
{
int8 in_RAX;
int *piVar1;
void *pvVar2;
long lVar3;
int iVar4;
int8 local_38;
piVar1 = *(int **)(this + 8);
local_38 = in_RAX;
if (piVar1 == (int *)0x0) {
piVar1 = (int *)malloc(0x18);
iVar4 = *(int *)param_1;
*piVar1 = iVar4;
}
else {
iVar4 = *(int *)param_1;
if (iVar4 <= *(int *)(this + 0x10)) {
*piVar1 = iVar4;
goto LAB_0011927e;
}
free(*(void **)(piVar1 + 2));
free(*(void **)(piVar1 + 4));
iVar4 = *(int *)param_1;
*piVar1 = iVar4;
}
pvVar2 = malloc((long)iVar4 << 2);
*(void **)(piVar1 + 2) = pvVar2;
pvVar2 = malloc((long)iVar4 << 2);
*(void **)(piVar1 + 4) = pvVar2;
*(int *)(this + 0x10) = iVar4;
LAB_0011927e:
if (0 < iVar4) {
lVar3 = 0;
do {
defiGeometries::points(param_1,(int)lVar3,(int *)((long)&local_38 + 4),(int *)&local_38);
*(int4 *)(*(long *)(piVar1 + 2) + lVar3 * 4) = local_38._4_4_;
*(int *)(*(long *)(piVar1 + 4) + lVar3 * 4) = (int)local_38;
lVar3 = lVar3 + 1;
} while (lVar3 < *piVar1);
}
*(int **)(this + 8) = piVar1;
return;
}
|
|
16,203
|
rlGetMatrixProjection
|
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rlgl.h
|
Matrix rlGetMatrixProjection(void)
{
#if defined(GRAPHICS_API_OPENGL_11)
float mat[16];
glGetFloatv(GL_PROJECTION_MATRIX,mat);
Matrix m;
m.m0 = mat[0];
m.m1 = mat[1];
m.m2 = mat[2];
m.m3 = mat[3];
m.m4 = mat[4];
m.m5 = mat[5];
m.m6 = mat[6];
m.m7 = mat[7];
m.m8 = mat[8];
m.m9 = mat[9];
m.m10 = mat[10];
m.m11 = mat[11];
m.m12 = mat[12];
m.m13 = mat[13];
m.m14 = mat[14];
m.m15 = mat[15];
return m;
#else
return RLGL.State.projection;
#endif
}
|
O1
|
c
|
rlGetMatrixProjection:
movq %rdi, %rax
movups 0xd9fad(%rip), %xmm0 # 0x1411c8
movups %xmm0, 0x30(%rdi)
movups 0xd9f92(%rip), %xmm0 # 0x1411b8
movups %xmm0, 0x20(%rdi)
movups 0xd9f77(%rip), %xmm0 # 0x1411a8
movups %xmm0, 0x10(%rdi)
movups 0xd9f5c(%rip), %xmm0 # 0x141198
movups %xmm0, (%rdi)
retq
|
rlGetMatrixProjection:
mov rax, rdi
movups xmm0, cs:xmmword_1411C8
movups xmmword ptr [rdi+30h], xmm0
movups xmm0, cs:xmmword_1411B8
movups xmmword ptr [rdi+20h], xmm0
movups xmm0, cs:xmmword_1411A8
movups xmmword ptr [rdi+10h], xmm0
movups xmm0, cs:xmmword_141198
movups xmmword ptr [rdi], xmm0
retn
|
_OWORD * rlGetMatrixProjection(_OWORD *a1)
{
_OWORD *result; // rax
result = a1;
a1[3] = xmmword_1411C8;
a1[2] = xmmword_1411B8;
a1[1] = xmmword_1411A8;
*a1 = xmmword_141198;
return result;
}
|
rlGetMatrixProjection:
MOV RAX,RDI
MOVUPS XMM0,xmmword ptr [0x002411c8]
MOVUPS xmmword ptr [RDI + 0x30],XMM0
MOVUPS XMM0,xmmword ptr [0x002411b8]
MOVUPS xmmword ptr [RDI + 0x20],XMM0
MOVUPS XMM0,xmmword ptr [0x002411a8]
MOVUPS xmmword ptr [RDI + 0x10],XMM0
MOVUPS XMM0,xmmword ptr [0x00241198]
MOVUPS xmmword ptr [RDI],XMM0
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
int8 * rlGetMatrixProjection(int8 *param_1)
{
int8 uVar1;
uVar1 = _DAT_002411d0;
param_1[6] = _DAT_002411c8;
param_1[7] = uVar1;
uVar1 = _DAT_002411c0;
param_1[4] = _DAT_002411b8;
param_1[5] = uVar1;
uVar1 = _DAT_002411b0;
param_1[2] = _DAT_002411a8;
param_1[3] = uVar1;
uVar1 = _DAT_002411a0;
*param_1 = _DAT_00241198;
param_1[1] = uVar1;
return param_1;
}
|
|
16,204
|
google::protobuf::MapValueConstRef::GetUInt32Value() const
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/map_field.h
|
uint32_t GetUInt32Value() const {
TYPE_CHECK(FieldDescriptor::CPPTYPE_UINT32,
"MapValueConstRef::GetUInt32Value");
return *reinterpret_cast<uint32_t*>(data_);
}
|
O3
|
c
|
google::protobuf::MapValueConstRef::GetUInt32Value() const:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
callq 0x6ef02
cmpl $0x3, %eax
je 0x748fd
leaq 0x45da6(%rip), %rdx # 0xba5ef
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movl $0x3, %esi
movl $0x2d5, %ecx # imm = 0x2D5
callq 0x169ca
leaq 0x45ded(%rip), %rsi # 0xba654
movq %r14, %rdi
callq 0x164c8
leaq 0x468b6(%rip), %rsi # 0xbb12c
movq %rax, %rdi
callq 0x164c8
leaq 0x45e12(%rip), %rsi # 0xba697
movq %rax, %rdi
callq 0x164c8
leaq 0x45e19(%rip), %rsi # 0xba6ad
movq %rax, %rdi
callq 0x164c8
leaq 0x89a4d(%rip), %r15 # 0xfe2f0
movq 0x18(%r15), %rsi
movq %rax, %rdi
callq 0x164c8
leaq 0x41863(%rip), %rsi # 0xb6119
movq %rax, %rdi
callq 0x164c8
leaq 0x45df6(%rip), %rsi # 0xba6bb
movq %rax, %rdi
callq 0x164c8
movq %rax, %r14
movq %rbx, %rdi
callq 0x6ef02
movl %eax, %eax
movq (%r15,%rax,8), %rsi
movq %r14, %rdi
callq 0x164c8
leaq 0x7(%rsp), %rdi
movq %rax, %rsi
callq 0x165a2
leaq 0x8(%rsp), %rdi
callq 0x169e8
movq (%rbx), %rax
movl (%rax), %eax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x7490e
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x169e8
movq %rbx, %rdi
callq 0xf570
nop
|
_ZNK6google8protobuf16MapValueConstRef14GetUInt32ValueEv:
push r15
push r14
push rbx
sub rsp, 40h
mov rbx, rdi
call _ZNK6google8protobuf16MapValueConstRef4typeEv; google::protobuf::MapValueConstRef::type(void)
cmp eax, 3
jz loc_748FD
lea rdx, aWorkspaceLlm4b_10; "/workspace/llm4binary/github2025/aimrt_"...
lea r14, [rsp+58h+var_50]
mov rdi, r14
mov esi, 3
mov ecx, 2D5h
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
lea rsi, aProtocolBuffer_0; "Protocol Buffer map usage error:\n"
mov rdi, r14
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
lea rsi, aMapvalueconstr_2; "MapValueConstRef::GetUInt32Value"
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
lea rsi, aTypeDoesNotMat; " type does not match\n"
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
lea rsi, aExpected; " Expected : "
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
lea r15, _ZN6google8protobuf15FieldDescriptor14kCppTypeToNameE; google::protobuf::FieldDescriptor::kCppTypeToName
mov rsi, [r15+18h]
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
lea rsi, aSyntax0+0Fh; "\n"
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
lea rsi, aActual_0; " Actual : "
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov r14, rax
mov rdi, rbx; this
call _ZNK6google8protobuf16MapValueConstRef4typeEv; google::protobuf::MapValueConstRef::type(void)
mov eax, eax
mov rsi, [r15+rax*8]
mov rdi, r14
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
lea rdi, [rsp+58h+var_51]
mov rsi, rax
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
lea rdi, [rsp+58h+var_50]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_748FD:
mov rax, [rbx]
mov eax, [rax]
add rsp, 40h
pop rbx
pop r14
pop r15
retn
jmp short $+2
loc_7490E:
mov rbx, rax
lea rdi, [rsp+arg_0]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
mov rdi, rbx
call __Unwind_Resume
|
long long google::protobuf::MapValueConstRef::GetUInt32Value(google::protobuf::MapValueConstRef *this)
{
long long v1; // rax
long long v2; // rax
long long v3; // rax
long long v4; // rax
long long v5; // rax
long long v6; // rax
long long v7; // r14
int v8; // eax
google::protobuf::internal::LogMessage *v9; // rax
char v11; // [rsp+7h] [rbp-51h] BYREF
_BYTE v12[80]; // [rsp+8h] [rbp-50h] BYREF
if ( (unsigned int)google::protobuf::MapValueConstRef::type(this) != 3 )
{
google::protobuf::internal::LogMessage::LogMessage(
(long long)v12,
3,
(long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/map_field.h",
725);
v1 = google::protobuf::internal::LogMessage::operator<<((long long)v12, (long long)"Protocol Buffer map usage error:\n");
v2 = google::protobuf::internal::LogMessage::operator<<(v1, (long long)"MapValueConstRef::GetUInt32Value");
v3 = google::protobuf::internal::LogMessage::operator<<(v2, (long long)" type does not match\n");
v4 = google::protobuf::internal::LogMessage::operator<<(v3, (long long)" Expected : ");
v5 = google::protobuf::internal::LogMessage::operator<<(
v4,
(long long)*(&google::protobuf::FieldDescriptor::kCppTypeToName + 3));
v6 = google::protobuf::internal::LogMessage::operator<<(v5, (long long)"\n");
v7 = google::protobuf::internal::LogMessage::operator<<(v6, (long long)" Actual : ");
v8 = google::protobuf::MapValueConstRef::type(this);
v9 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<(
v7,
(long long)(&google::protobuf::FieldDescriptor::kCppTypeToName)[v8]);
google::protobuf::internal::LogFinisher::operator=((long long)&v11, v9);
google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v12);
}
return **(unsigned int **)this;
}
|
GetUInt32Value:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x40
MOV RBX,RDI
CALL 0x0016ef02
CMP EAX,0x3
JZ 0x001748fd
LEA RDX,[0x1ba5ef]
LEA R14,[RSP + 0x8]
MOV RDI,R14
MOV ESI,0x3
MOV ECX,0x2d5
CALL 0x001169ca
LAB_00174860:
LEA RSI,[0x1ba654]
MOV RDI,R14
CALL 0x001164c8
LEA RSI,[0x1bb12c]
MOV RDI,RAX
CALL 0x001164c8
LEA RSI,[0x1ba697]
MOV RDI,RAX
CALL 0x001164c8
LEA RSI,[0x1ba6ad]
MOV RDI,RAX
CALL 0x001164c8
LEA R15,[0x1fe2f0]
MOV RSI,qword ptr [R15 + 0x18]
MOV RDI,RAX
CALL 0x001164c8
LEA RSI,[0x1b6119]
MOV RDI,RAX
CALL 0x001164c8
LEA RSI,[0x1ba6bb]
MOV RDI,RAX
CALL 0x001164c8
MOV R14,RAX
MOV RDI,RBX
CALL 0x0016ef02
MOV EAX,EAX
MOV RSI,qword ptr [R15 + RAX*0x8]
MOV RDI,R14
CALL 0x001164c8
LAB_001748e6:
LEA RDI,[RSP + 0x7]
MOV RSI,RAX
CALL 0x001165a2
LAB_001748f3:
LEA RDI,[RSP + 0x8]
CALL 0x001169e8
LAB_001748fd:
MOV RAX,qword ptr [RBX]
MOV EAX,dword ptr [RAX]
ADD RSP,0x40
POP RBX
POP R14
POP R15
RET
|
/* google::protobuf::MapValueConstRef::GetUInt32Value() const */
int4 __thiscall google::protobuf::MapValueConstRef::GetUInt32Value(MapValueConstRef *this)
{
int iVar1;
uint uVar2;
LogMessage *pLVar3;
LogFinisher local_51;
LogMessage local_50 [56];
iVar1 = type(this);
if (iVar1 != 3) {
internal::LogMessage::LogMessage
(local_50,3,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/map_field.h"
,0x2d5);
/* try { // try from 00174860 to 001748e5 has its CatchHandler @ 0017490e */
pLVar3 = (LogMessage *)
internal::LogMessage::operator<<(local_50,"Protocol Buffer map usage error:\n");
pLVar3 = (LogMessage *)
internal::LogMessage::operator<<(pLVar3,"MapValueConstRef::GetUInt32Value");
pLVar3 = (LogMessage *)internal::LogMessage::operator<<(pLVar3," type does not match\n");
pLVar3 = (LogMessage *)internal::LogMessage::operator<<(pLVar3," Expected : ");
pLVar3 = (LogMessage *)
internal::LogMessage::operator<<(pLVar3,(char *)FieldDescriptor::kCppTypeToName._24_8_)
;
pLVar3 = (LogMessage *)internal::LogMessage::operator<<(pLVar3,"\n");
pLVar3 = (LogMessage *)internal::LogMessage::operator<<(pLVar3," Actual : ");
uVar2 = type(this);
pLVar3 = (LogMessage *)
internal::LogMessage::operator<<
(pLVar3,*(char **)(FieldDescriptor::kCppTypeToName + (ulong)uVar2 * 8));
/* try { // try from 001748e6 to 001748f2 has its CatchHandler @ 0017490c */
internal::LogFinisher::operator=(&local_51,pLVar3);
internal::LogMessage::~LogMessage(local_50);
}
return **(int4 **)this;
}
|
|
16,205
|
lf_alloc_new
|
eloqsql/mysys/lf_alloc-pin.c
|
void *lf_alloc_new(LF_PINS *pins)
{
LF_ALLOCATOR *allocator= (LF_ALLOCATOR *)(pins->pinbox->free_func_arg);
uchar *node;
for (;;)
{
do
{
node= allocator->top;
lf_pin(pins, 0, node);
} while (node != allocator->top && LF_BACKOFF());
if (!node)
{
node= (void *)my_malloc(key_memory_lf_node, allocator->element_size,
MYF(MY_WME));
if (allocator->constructor)
allocator->constructor(node);
#ifdef MY_LF_EXTRA_DEBUG
if (likely(node != 0))
my_atomic_add32(&allocator->mallocs, 1);
#endif
break;
}
if (my_atomic_casptr((void **)(char *)&allocator->top,
(void *)&node, anext_node(node)))
break;
}
lf_unpin(pins, 0);
return node;
}
|
O3
|
c
|
lf_alloc_new:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x20(%rdi), %rax
movq 0x30(%rax), %r15
leaq 0x2d0f3d(%rip), %rcx # 0x317f00
movq 0x48(%r15), %r14
movq %r14, %rax
xchgq %rax, (%rbx)
cmpq 0x48(%r15), %r14
je 0x46fe1
movl (%rcx), %eax
testl %eax, %eax
je 0x46fc3
pause
decl %eax
jne 0x46fd9
jmp 0x46fc3
testq %r14, %r14
je 0x46ffb
movl 0x38(%r15), %eax
movq (%r14,%rax), %rdx
movq %r14, %rax
lock
cmpxchgq %rdx, 0x48(%r15)
jne 0x46fc3
jmp 0x47023
leaq 0x38a7de(%rip), %rax # 0x3d17e0
movl (%rax), %edi
movl 0x50(%r15), %esi
movl $0x10, %edx
callq 0x45319
movq %rax, %r14
movq 0x58(%r15), %rax
testq %rax, %rax
je 0x47023
movq %r14, %rdi
callq *%rax
xorl %eax, %eax
xchgq %rax, (%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
lf_alloc_new:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rdi
mov rax, [rdi+20h]
mov r15, [rax+30h]
lea rcx, my_cpu_relax_multiplier
loc_46FC3:
mov r14, [r15+48h]
mov rax, r14
xchg rax, [rbx]
cmp r14, [r15+48h]
jz short loc_46FE1
mov eax, [rcx]
test eax, eax
jz short loc_46FC3
loc_46FD9:
pause
dec eax
jnz short loc_46FD9
jmp short loc_46FC3
loc_46FE1:
test r14, r14
jz short loc_46FFB
mov eax, [r15+38h]
mov rdx, [r14+rax]
mov rax, r14
lock cmpxchg [r15+48h], rdx
jnz short loc_46FC3
jmp short loc_47023
loc_46FFB:
lea rax, key_memory_lf_node
mov edi, [rax]
mov esi, [r15+50h]
mov edx, 10h
call my_malloc
mov r14, rax
mov rax, [r15+58h]
test rax, rax
jz short loc_47023
mov rdi, r14
call rax
loc_47023:
xor eax, eax
xchg rax, [rbx]
mov rax, r14
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long lf_alloc_new(long long a1)
{
long long v1; // r15
long long v2; // r14
int i; // eax
void ( *v4)(long long); // rax
v1 = *(_QWORD *)(*(_QWORD *)(a1 + 32) + 48LL);
while ( 1 )
{
while ( 1 )
{
v2 = *(_QWORD *)(v1 + 72);
_InterlockedExchange64((volatile long long *)a1, v2);
if ( v2 == *(_QWORD *)(v1 + 72) )
break;
for ( i = my_cpu_relax_multiplier; i; --i )
_mm_pause();
}
if ( !v2 )
break;
if ( v2 == _InterlockedCompareExchange64(
(volatile signed long long *)(v1 + 72),
*(_QWORD *)(v2 + *(unsigned int *)(v1 + 56)),
v2) )
goto LABEL_11;
}
v2 = my_malloc(key_memory_lf_node, *(unsigned int *)(v1 + 80), 16);
v4 = *(void ( **)(long long))(v1 + 88);
if ( v4 )
v4(v2);
LABEL_11:
_InterlockedExchange64((volatile long long *)a1, 0LL);
return v2;
}
|
lf_alloc_new:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x20]
MOV R15,qword ptr [RAX + 0x30]
LEA RCX,[0x417f00]
LAB_00146fc3:
MOV R14,qword ptr [R15 + 0x48]
MOV RAX,R14
XCHG qword ptr [RBX],RAX
CMP R14,qword ptr [R15 + 0x48]
JZ 0x00146fe1
MOV EAX,dword ptr [RCX]
TEST EAX,EAX
JZ 0x00146fc3
LAB_00146fd9:
PAUSE
DEC EAX
JNZ 0x00146fd9
JMP 0x00146fc3
LAB_00146fe1:
TEST R14,R14
JZ 0x00146ffb
MOV EAX,dword ptr [R15 + 0x38]
MOV RDX,qword ptr [R14 + RAX*0x1]
MOV RAX,R14
CMPXCHG.LOCK qword ptr [R15 + 0x48],RDX
JNZ 0x00146fc3
JMP 0x00147023
LAB_00146ffb:
LEA RAX,[0x4d17e0]
MOV EDI,dword ptr [RAX]
MOV ESI,dword ptr [R15 + 0x50]
MOV EDX,0x10
CALL 0x00145319
MOV R14,RAX
MOV RAX,qword ptr [R15 + 0x58]
TEST RAX,RAX
JZ 0x00147023
MOV RDI,R14
CALL RAX
LAB_00147023:
XOR EAX,EAX
XCHG qword ptr [RBX],RAX
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
long lf_alloc_new(long *param_1)
{
long lVar1;
int iVar2;
long lVar3;
bool bVar4;
lVar1 = *(long *)(param_1[4] + 0x30);
do {
while( true ) {
lVar3 = *(long *)(lVar1 + 0x48);
LOCK();
*param_1 = lVar3;
UNLOCK();
iVar2 = my_cpu_relax_multiplier;
if (lVar3 == *(long *)(lVar1 + 0x48)) break;
for (; iVar2 != 0; iVar2 = iVar2 + -1) {
}
}
if (lVar3 == 0) {
lVar3 = my_malloc(key_memory_lf_node,*(int4 *)(lVar1 + 0x50),0x10);
if (*(code **)(lVar1 + 0x58) != (code *)0x0) {
(**(code **)(lVar1 + 0x58))(lVar3);
}
break;
}
LOCK();
bVar4 = lVar3 == *(long *)(lVar1 + 0x48);
if (bVar4) {
*(long *)(lVar1 + 0x48) = *(long *)(lVar3 + (ulong)*(uint *)(lVar1 + 0x38));
}
UNLOCK();
} while (!bVar4);
LOCK();
*param_1 = 0;
UNLOCK();
return lVar3;
}
|
|
16,206
|
google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::FindExtension(google::protobuf::stringpiece_internal::StringPiece, int)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor_database.cc
|
std::pair<const void*, int>
EncodedDescriptorDatabase::DescriptorIndex::FindExtension(
StringPiece containing_type, int field_number) {
EnsureFlat();
auto it = std::lower_bound(
by_extension_flat_.begin(), by_extension_flat_.end(),
std::make_tuple(containing_type, field_number), by_extension_.key_comp());
return it == by_extension_flat_.end() ||
it->extendee(*this) != containing_type ||
it->extension_number != field_number
? std::make_pair(nullptr, 0)
: all_values_[it->data_offset].value();
}
|
O0
|
cpp
|
google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::FindExtension(google::protobuf::stringpiece_internal::StringPiece, int):
subq $0xc8, %rsp
movq %rsi, 0xa8(%rsp)
movq %rdx, 0xb0(%rsp)
movq %rdi, 0xa0(%rsp)
movl %ecx, 0x9c(%rsp)
movq 0xa0(%rsp), %rdi
movq %rdi, (%rsp)
callq 0xe66e0
movq (%rsp), %rdi
addq $0xd8, %rdi
callq 0xe9fe0
movq (%rsp), %rdi
movq %rax, 0x88(%rsp)
addq $0xd8, %rdi
callq 0xea010
movq %rax, 0x80(%rsp)
leaq 0x68(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
leaq 0x9c(%rsp), %rdx
callq 0xea040
movq (%rsp), %rdi
addq $0xa8, %rdi
callq 0xea080
movq %rax, 0x60(%rsp)
movq 0x88(%rsp), %rdi
movq 0x80(%rsp), %rsi
movq 0x60(%rsp), %rcx
leaq 0x68(%rsp), %rdx
callq 0xe9f60
movq (%rsp), %rdi
movq %rax, 0x90(%rsp)
addq $0xd8, %rdi
callq 0xea010
movq %rax, 0x58(%rsp)
leaq 0x90(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0xea0b0
testb $0x1, %al
jne 0xe54eb
leaq 0x90(%rsp), %rdi
callq 0xea160
movq (%rsp), %rsi
movq %rax, %rdi
callq 0xea170
movq %rax, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
movq 0xa8(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq 0x40(%rsp), %rcx
callq 0xea0f0
testb $0x1, %al
jne 0xe54eb
leaq 0x90(%rsp), %rdi
callq 0xea160
movl 0x28(%rax), %eax
cmpl 0x9c(%rsp), %eax
je 0xe5524
movq $0x0, 0x20(%rsp)
movl $0x0, 0x1c(%rsp)
leaq 0x28(%rsp), %rdi
leaq 0x20(%rsp), %rsi
leaq 0x1c(%rsp), %rdx
callq 0xea1e0
leaq 0xb8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0xea210
jmp 0xe5566
leaq 0x90(%rsp), %rdi
callq 0xea160
movq (%rsp), %rdi
movslq (%rax), %rsi
callq 0xea240
movq %rax, %rdi
callq 0xe9f30
movl %edx, 0x10(%rsp)
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0xb8(%rsp)
movl 0x10(%rsp), %eax
movl %eax, 0xc0(%rsp)
movq 0xb8(%rsp), %rax
movl 0xc0(%rsp), %edx
addq $0xc8, %rsp
retq
nopl (%rax)
|
_ZN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex13FindExtensionENS0_20stringpiece_internal11StringPieceEi:
sub rsp, 0C8h
mov [rsp+0C8h+var_20], rsi
mov [rsp+0C8h+var_18], rdx
mov [rsp+0C8h+var_28], rdi
mov [rsp+0C8h+var_2C], ecx
mov rdi, [rsp+0C8h+var_28]; this
mov [rsp+0C8h+var_C8], rdi
call _ZN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex10EnsureFlatEv; google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::EnsureFlat(void)
mov rdi, [rsp+0C8h+var_C8]
add rdi, 0D8h
call _ZNSt6vectorIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryESaIS4_EE5beginEv; std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>::begin(void)
mov rdi, [rsp+0C8h+var_C8]
mov [rsp+0C8h+var_40], rax
add rdi, 0D8h
call _ZNSt6vectorIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryESaIS4_EE3endEv; std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>::end(void)
mov [rsp+0C8h+var_48], rax
lea rdi, [rsp+0C8h+var_60]
lea rsi, [rsp+0C8h+var_20]
lea rdx, [rsp+0C8h+var_2C]
call _ZSt10make_tupleIJRN6google8protobuf20stringpiece_internal11StringPieceERiEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS9_; std::make_tuple<google::protobuf::stringpiece_internal::StringPiece &,int &>(google::protobuf::stringpiece_internal::StringPiece &,int &&&)
mov rdi, [rsp+0C8h+var_C8]
add rdi, 0A8h
call _ZNKSt3setIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS3_16ExtensionCompareESaIS4_EE8key_compEv; std::set<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry,google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionCompare,std::allocator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>::key_comp(void)
mov [rsp+0C8h+var_68], rax
mov rdi, [rsp+0C8h+var_40]
mov rsi, [rsp+0C8h+var_48]
mov rcx, [rsp+0C8h+var_68]
lea rdx, [rsp+0C8h+var_60]
call _ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryESt6vectorIS6_SaIS6_EEEESt5tupleIJNS3_20stringpiece_internal11StringPieceEiEENS5_16ExtensionCompareEET_SH_SH_RKT0_T1_; std::lower_bound<__gnu_cxx::__normal_iterator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry *,std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>,std::tuple<google::protobuf::stringpiece_internal::StringPiece,int>,google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionCompare>(__gnu_cxx::__normal_iterator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry *,std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>,__gnu_cxx::__normal_iterator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry *,std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>,std::tuple<google::protobuf::stringpiece_internal::StringPiece,int> const&,google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionCompare)
mov rdi, [rsp+0C8h+var_C8]
mov [rsp+0C8h+var_38], rax
add rdi, 0D8h
call _ZNSt6vectorIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryESaIS4_EE3endEv; std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>::end(void)
mov [rsp+0C8h+var_70], rax
lea rdi, [rsp+0C8h+var_38]
lea rsi, [rsp+0C8h+var_70]
call _ZN9__gnu_cxxeqIPN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_; __gnu_cxx::operator==<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry *,std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>(__gnu_cxx::__normal_iterator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry *,std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>> const&,__gnu_cxx::__normal_iterator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry *,std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>> const&)
test al, 1
jnz short loc_E54EB
lea rdi, [rsp+0C8h+var_38]
call _ZNK9__gnu_cxx17__normal_iteratorIPN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryESt6vectorIS5_SaIS5_EEEptEv; __gnu_cxx::__normal_iterator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry *,std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>::operator->(void)
mov rsi, [rsp+0C8h+var_C8]
mov rdi, rax
call _ZNK6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntry8extendeeERKS2_; google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry::extendee(google::protobuf::EncodedDescriptorDatabase::DescriptorIndex const&)
mov [rsp+0C8h+var_80], rax
mov [rsp+0C8h+var_78], rdx
mov rax, [rsp+0C8h+var_20]
mov [rsp+0C8h+var_90], rax
mov rax, [rsp+0C8h+var_18]
mov [rsp+0C8h+var_88], rax
mov rdi, [rsp+0C8h+var_80]
mov rsi, [rsp+0C8h+var_78]
mov rdx, [rsp+0C8h+var_90]
mov rcx, [rsp+0C8h+var_88]
call _ZN6google8protobuf20stringpiece_internalneENS1_11StringPieceES2_; google::protobuf::stringpiece_internal::operator!=(google::protobuf::stringpiece_internal::StringPiece,google::protobuf::stringpiece_internal::StringPiece)
test al, 1
jnz short loc_E54EB
lea rdi, [rsp+0C8h+var_38]
call _ZNK9__gnu_cxx17__normal_iteratorIPN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryESt6vectorIS5_SaIS5_EEEptEv; __gnu_cxx::__normal_iterator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry *,std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>::operator->(void)
mov eax, [rax+28h]
cmp eax, [rsp+0C8h+var_2C]
jz short loc_E5524
loc_E54EB:
mov [rsp+0C8h+var_A8], 0
mov [rsp+0C8h+var_AC], 0
lea rdi, [rsp+0C8h+var_A0]
lea rsi, [rsp+0C8h+var_A8]
lea rdx, [rsp+0C8h+var_AC]
call _ZSt9make_pairIDniESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_; std::make_pair<decltype(nullptr),int>(decltype(nullptr)&&,int&&)
lea rdi, [rsp+0C8h+var_10]
lea rsi, [rsp+0C8h+var_A0]
call _ZNSt4pairIPKviEC2IDniTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS5_S6_EEclsr6_PCCFPIS5_S6_EE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS_IS5_S6_E
jmp short loc_E5566
loc_E5524:
lea rdi, [rsp+0C8h+var_38]
call _ZNK9__gnu_cxx17__normal_iteratorIPN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryESt6vectorIS5_SaIS5_EEEptEv; __gnu_cxx::__normal_iterator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry *,std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>::operator->(void)
mov rdi, [rsp+0C8h+var_C8]
movsxd rsi, dword ptr [rax]
call _ZNSt6vectorIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex12EncodedEntryESaIS4_EEixEm; std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::EncodedEntry>::operator[](ulong)
mov rdi, rax; this
call _ZNK6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex12EncodedEntry5valueEv; google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::EncodedEntry::value(void)
mov [rsp+0C8h+var_B8], edx
mov [rsp+0C8h+var_C0], rax
mov rax, [rsp+0C8h+var_C0]
mov [rsp+0C8h+var_10], rax
mov eax, [rsp+0C8h+var_B8]
mov [rsp+0C8h+var_8], eax
loc_E5566:
mov rax, [rsp+0C8h+var_10]
mov edx, [rsp+0C8h+var_8]
add rsp, 0C8h
retn
|
long long google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::FindExtension(
google::protobuf::EncodedDescriptorDatabase::DescriptorIndex *a1,
long long a2,
long long a3,
int a4)
{
google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry *v4; // rax
long long v5; // rdx
long long v6; // rax
int *v7; // rax
google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::EncodedEntry *v8; // rax
int v9; // edx
int v11; // [rsp+1Ch] [rbp-ACh] BYREF
long long v12; // [rsp+20h] [rbp-A8h] BYREF
_BYTE v13[16]; // [rsp+28h] [rbp-A0h] BYREF
long long v14; // [rsp+38h] [rbp-90h]
long long v15; // [rsp+40h] [rbp-88h]
long long v16; // [rsp+48h] [rbp-80h]
long long v17; // [rsp+50h] [rbp-78h]
long long v18; // [rsp+58h] [rbp-70h] BYREF
long long v19; // [rsp+60h] [rbp-68h]
_BYTE v20[24]; // [rsp+68h] [rbp-60h] BYREF
long long v21; // [rsp+80h] [rbp-48h]
long long v22; // [rsp+88h] [rbp-40h]
long long v23; // [rsp+90h] [rbp-38h] BYREF
int v24; // [rsp+9Ch] [rbp-2Ch] BYREF
google::protobuf::EncodedDescriptorDatabase::DescriptorIndex *v25; // [rsp+A0h] [rbp-28h]
long long v26; // [rsp+A8h] [rbp-20h] BYREF
long long v27; // [rsp+B0h] [rbp-18h]
long long v28; // [rsp+B8h] [rbp-10h] BYREF
int v29; // [rsp+C0h] [rbp-8h]
v26 = a2;
v27 = a3;
v25 = a1;
v24 = a4;
google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::EnsureFlat(a1);
v22 = std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>::begin((char *)a1 + 216);
v21 = std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>::end((char *)a1 + 216);
std::make_tuple<google::protobuf::stringpiece_internal::StringPiece &,int &>(v20, &v26, &v24);
v19 = std::set<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry,google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionCompare,std::allocator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>::key_comp((char *)a1 + 168);
v23 = std::lower_bound<__gnu_cxx::__normal_iterator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry *,std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>,std::tuple<google::protobuf::stringpiece_internal::StringPiece,int>,google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionCompare>(
v22,
v21,
v20,
v19);
v18 = std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>::end((char *)a1 + 216);
if ( (__gnu_cxx::operator==<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry *,std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>(
&v23,
&v18) & 1) != 0
|| (v4 = (google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry *)__gnu_cxx::__normal_iterator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry *,std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>::operator->(&v23),
v16 = google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry::extendee(v4, a1),
v17 = v5,
v14 = v26,
v15 = v27,
(google::protobuf::stringpiece_internal::operator!=(v16, v5, v26, v27) & 1) != 0)
|| (v6 = __gnu_cxx::__normal_iterator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry *,std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>::operator->(&v23),
*(_DWORD *)(v6 + 40) != v24) )
{
v12 = 0LL;
v11 = 0;
std::make_pair<decltype(nullptr),int>(v13, &v12, &v11);
ZNSt4pairIPKviEC2IDniTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS5_S6_EEclsr6_PCCFPIS5_S6_EE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS_IS5_S6_E(
&v28,
v13);
}
else
{
v7 = (int *)__gnu_cxx::__normal_iterator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry *,std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>::operator->(&v23);
v8 = (google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::EncodedEntry *)std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::EncodedEntry>::operator[](
a1,
*v7);
v28 = google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::EncodedEntry::value(v8);
v29 = v9;
}
return v28;
}
|
FindExtension:
SUB RSP,0xc8
MOV qword ptr [RSP + 0xa8],RSI
MOV qword ptr [RSP + 0xb0],RDX
MOV qword ptr [RSP + 0xa0],RDI
MOV dword ptr [RSP + 0x9c],ECX
MOV RDI,qword ptr [RSP + 0xa0]
MOV qword ptr [RSP],RDI
CALL 0x001e66e0
MOV RDI,qword ptr [RSP]
ADD RDI,0xd8
CALL 0x001e9fe0
MOV RDI,qword ptr [RSP]
MOV qword ptr [RSP + 0x88],RAX
ADD RDI,0xd8
CALL 0x001ea010
MOV qword ptr [RSP + 0x80],RAX
LEA RDI,[RSP + 0x68]
LEA RSI,[RSP + 0xa8]
LEA RDX,[RSP + 0x9c]
CALL 0x001ea040
MOV RDI,qword ptr [RSP]
ADD RDI,0xa8
CALL 0x001ea080
MOV qword ptr [RSP + 0x60],RAX
MOV RDI,qword ptr [RSP + 0x88]
MOV RSI,qword ptr [RSP + 0x80]
MOV RCX,qword ptr [RSP + 0x60]
LEA RDX,[RSP + 0x68]
CALL 0x001e9f60
MOV RDI,qword ptr [RSP]
MOV qword ptr [RSP + 0x90],RAX
ADD RDI,0xd8
CALL 0x001ea010
MOV qword ptr [RSP + 0x58],RAX
LEA RDI,[RSP + 0x90]
LEA RSI,[RSP + 0x58]
CALL 0x001ea0b0
TEST AL,0x1
JNZ 0x001e54eb
LEA RDI,[RSP + 0x90]
CALL 0x001ea160
MOV RSI,qword ptr [RSP]
MOV RDI,RAX
CALL 0x001ea170
MOV qword ptr [RSP + 0x48],RAX
MOV qword ptr [RSP + 0x50],RDX
MOV RAX,qword ptr [RSP + 0xa8]
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0xb0]
MOV qword ptr [RSP + 0x40],RAX
MOV RDI,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0x38]
MOV RCX,qword ptr [RSP + 0x40]
CALL 0x001ea0f0
TEST AL,0x1
JNZ 0x001e54eb
LEA RDI,[RSP + 0x90]
CALL 0x001ea160
MOV EAX,dword ptr [RAX + 0x28]
CMP EAX,dword ptr [RSP + 0x9c]
JZ 0x001e5524
LAB_001e54eb:
MOV qword ptr [RSP + 0x20],0x0
MOV dword ptr [RSP + 0x1c],0x0
LEA RDI,[RSP + 0x28]
LEA RSI,[RSP + 0x20]
LEA RDX,[RSP + 0x1c]
CALL 0x001ea1e0
LEA RDI,[RSP + 0xb8]
LEA RSI,[RSP + 0x28]
CALL 0x001ea210
JMP 0x001e5566
LAB_001e5524:
LEA RDI,[RSP + 0x90]
CALL 0x001ea160
MOV RDI,qword ptr [RSP]
MOVSXD RSI,dword ptr [RAX]
CALL 0x001ea240
MOV RDI,RAX
CALL 0x001e9f30
MOV dword ptr [RSP + 0x10],EDX
MOV qword ptr [RSP + 0x8],RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0xb8],RAX
MOV EAX,dword ptr [RSP + 0x10]
MOV dword ptr [RSP + 0xc0],EAX
LAB_001e5566:
MOV RAX,qword ptr [RSP + 0xb8]
MOV EDX,dword ptr [RSP + 0xc0]
ADD RSP,0xc8
RET
|
/* google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::FindExtension(google::protobuf::stringpiece_internal::StringPiece,
int) */
int1 [16]
google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::FindExtension
(DescriptorIndex *param_1,int8 param_2,int8 param_3,int param_4)
{
bool bVar1;
ExtensionEntry *this;
ulong uVar2;
long lVar3;
int *piVar4;
EncodedEntry *this_00;
int1 auVar5 [16];
int1 auVar6 [12];
int local_a8 [2];
_func_decltype_nullptr *local_a0 [2];
int8 local_90;
int8 local_88;
int1 local_80 [16];
int8 local_70;
int8 local_68;
StringPiece local_60 [24];
int8 local_48;
int8 local_40;
int8 local_38;
int local_2c;
DescriptorIndex *local_28;
int8 local_20;
int8 local_18;
int8 local_10;
int4 local_8;
local_2c = param_4;
local_28 = param_1;
local_20 = param_2;
local_18 = param_3;
EnsureFlat(param_1);
local_40 = std::
vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry,std::allocator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>
::begin((vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry,std::allocator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>
*)(param_1 + 0xd8));
local_48 = std::
vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry,std::allocator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>
::end((vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry,std::allocator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>
*)(param_1 + 0xd8));
std::make_tuple<google::protobuf::stringpiece_internal::StringPiece&,int&>
(local_60,(int *)&local_20);
local_68 = std::
set<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry,google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionCompare,std::allocator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>
::key_comp((set<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry,google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionCompare,std::allocator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>
*)(param_1 + 0xa8));
local_38 = std::
lower_bound<__gnu_cxx::__normal_iterator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry*,std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry,std::allocator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>>,std::tuple<google::protobuf::stringpiece_internal::StringPiece,int>,google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionCompare>
(local_40,local_48,local_60,local_68);
local_70 = std::
vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry,std::allocator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>
::end((vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry,std::allocator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>
*)(param_1 + 0xd8));
bVar1 = __gnu_cxx::operator==((__normal_iterator *)&local_38,(__normal_iterator *)&local_70);
if (!bVar1) {
this = (ExtensionEntry *)
__gnu_cxx::
__normal_iterator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry*,std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry,std::allocator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>>
::operator->((__normal_iterator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry*,std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry,std::allocator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>>
*)&local_38);
local_80 = ExtensionEntry::extendee(this,param_1);
local_90 = local_20;
local_88 = local_18;
uVar2 = stringpiece_internal::operator!=(local_80._0_8_,local_80._8_8_,local_20,local_18);
if ((uVar2 & 1) == 0) {
lVar3 = __gnu_cxx::
__normal_iterator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry*,std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry,std::allocator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>>
::operator->((__normal_iterator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry*,std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry,std::allocator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>>
*)&local_38);
if (*(int *)(lVar3 + 0x28) == local_2c) {
piVar4 = (int *)__gnu_cxx::
__normal_iterator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry*,std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry,std::allocator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>>
::operator->((__normal_iterator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry*,std::vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry,std::allocator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::ExtensionEntry>>>
*)&local_38);
this_00 = (EncodedEntry *)
std::
vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::EncodedEntry,std::allocator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::EncodedEntry>>
::operator[]((vector<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::EncodedEntry,std::allocator<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::EncodedEntry>>
*)param_1,(long)*piVar4);
auVar6 = EncodedEntry::value(this_00);
goto LAB_001e5566;
}
}
}
local_a8[0] = 0;
local_a8[1] = 0;
std::make_pair<decltype(nullptr),int>(local_a0,local_a8);
_ZNSt4pairIPKviEC2IDniTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS5_S6_EEclsr6_PCCFPIS5_S6_EE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS_IS5_S6_E
(&local_10,local_a0);
auVar6._8_4_ = local_8;
auVar6._0_8_ = local_10;
LAB_001e5566:
auVar5._12_4_ = 0;
auVar5._0_12_ = auVar6;
return auVar5;
}
|
|
16,207
|
my_coll_lexem_num_to_str
|
eloqsql/strings/ctype-uca.c
|
static const char *
my_coll_lexem_num_to_str(my_coll_lexem_num term)
{
switch (term)
{
case MY_COLL_LEXEM_EOF: return "EOF";
case MY_COLL_LEXEM_SHIFT: return "Shift";
case MY_COLL_LEXEM_RESET: return "&";
case MY_COLL_LEXEM_CHAR: return "Character";
case MY_COLL_LEXEM_OPTION: return "Bracket option";
case MY_COLL_LEXEM_EXTEND: return "/";
case MY_COLL_LEXEM_CONTEXT:return "|";
case MY_COLL_LEXEM_ERROR: return "ERROR";
}
return NULL;
}
|
O0
|
c
|
my_coll_lexem_num_to_str:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0xc(%rbp)
movl -0xc(%rbp), %eax
movq %rax, -0x18(%rbp)
subq $0x9, %rax
ja 0x9f8b0
movq -0x18(%rbp), %rax
leaq 0xf6c75(%rip), %rcx # 0x1964b4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x306d0(%rip), %rax # 0xcff1f
movq %rax, -0x8(%rbp)
jmp 0x9f8b8
leaq 0x306c7(%rip), %rax # 0xcff23
movq %rax, -0x8(%rbp)
jmp 0x9f8b8
leaq 0x30841(%rip), %rax # 0xd00aa
movq %rax, -0x8(%rbp)
jmp 0x9f8b8
leaq 0x306b3(%rip), %rax # 0xcff29
movq %rax, -0x8(%rbp)
jmp 0x9f8b8
leaq 0x306b0(%rip), %rax # 0xcff33
movq %rax, -0x8(%rbp)
jmp 0x9f8b8
leaq 0x3011c(%rip), %rax # 0xcf9ac
movq %rax, -0x8(%rbp)
jmp 0x9f8b8
leaq 0x306a5(%rip), %rax # 0xcff42
movq %rax, -0x8(%rbp)
jmp 0x9f8b8
leaq 0x2ee0e(%rip), %rax # 0xce6b8
movq %rax, -0x8(%rbp)
jmp 0x9f8b8
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nop
|
my_coll_lexem_num_to_str:
push rbp
mov rbp, rsp
mov [rbp+var_C], edi
mov eax, [rbp+var_C]
mov [rbp+var_18], rax
sub rax, 9; switch 10 cases
ja short def_9F846; jumptable 000000000009F846 default case, cases 2,3
mov rax, [rbp+var_18]
lea rcx, jpt_9F846
movsxd rax, ds:(jpt_9F846 - 1964B4h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_9F848:
lea rax, aEof; jumptable 000000000009F846 case 0
mov [rbp+var_8], rax
jmp short loc_9F8B8
loc_9F855:
lea rax, aShift; jumptable 000000000009F846 case 1
mov [rbp+var_8], rax
jmp short loc_9F8B8
loc_9F862:
lea rax, asc_D00A9+1; jumptable 000000000009F846 case 4
mov [rbp+var_8], rax
jmp short loc_9F8B8
loc_9F86F:
lea rax, aCharacter; jumptable 000000000009F846 case 5
mov [rbp+var_8], rax
jmp short loc_9F8B8
loc_9F87C:
lea rax, aBracketOption; jumptable 000000000009F846 case 7
mov [rbp+var_8], rax
jmp short loc_9F8B8
loc_9F889:
lea rax, unk_CF9AC; jumptable 000000000009F846 case 8
mov [rbp+var_8], rax
jmp short loc_9F8B8
loc_9F896:
lea rax, asc_CFF42; jumptable 000000000009F846 case 9
mov [rbp+var_8], rax
jmp short loc_9F8B8
loc_9F8A3:
lea rax, aError; jumptable 000000000009F846 case 6
mov [rbp+var_8], rax
jmp short loc_9F8B8
def_9F846:
mov [rbp+var_8], 0; jumptable 000000000009F846 default case, cases 2,3
loc_9F8B8:
mov rax, [rbp+var_8]
pop rbp
retn
|
char * my_coll_lexem_num_to_str(int a1)
{
char *v2; // [rsp+10h] [rbp-8h]
switch ( a1 )
{
case 0:
v2 = "EOF";
break;
case 1:
v2 = "Shift";
break;
case 4:
v2 = "&";
break;
case 5:
v2 = "Character";
break;
case 6:
v2 = "ERROR";
break;
case 7:
v2 = "Bracket option";
break;
case 8:
v2 = (char *)&unk_CF9AC;
break;
case 9:
v2 = "|";
break;
default:
v2 = 0LL;
break;
}
return v2;
}
|
my_coll_lexem_num_to_str:
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RBP + -0xc],EDI
MOV EAX,dword ptr [RBP + -0xc]
MOV qword ptr [RBP + -0x18],RAX
SUB RAX,0x9
JA 0x0019f8b0
MOV RAX,qword ptr [RBP + -0x18]
LEA RCX,[0x2964b4]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_0:
LEA RAX,[0x1cff1f]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0019f8b8
caseD_1:
LEA RAX,[0x1cff23]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0019f8b8
caseD_4:
LEA RAX,[0x1d00aa]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0019f8b8
caseD_5:
LEA RAX,[0x1cff29]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0019f8b8
caseD_7:
LEA RAX,[0x1cff33]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0019f8b8
caseD_8:
LEA RAX,[0x1cf9ac]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0019f8b8
caseD_9:
LEA RAX,[0x1cff42]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0019f8b8
caseD_6:
LEA RAX,[0x1ce6b8]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0019f8b8
caseD_2:
MOV qword ptr [RBP + -0x8],0x0
LAB_0019f8b8:
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
char * my_coll_lexem_num_to_str(int4 param_1)
{
char *local_10;
switch(param_1) {
case 0:
local_10 = "EOF";
break;
case 1:
local_10 = "Shift";
break;
default:
local_10 = (char *)0x0;
break;
case 4:
local_10 = "&";
break;
case 5:
local_10 = "Character";
break;
case 6:
local_10 = "ERROR";
break;
case 7:
local_10 = "Bracket option";
break;
case 8:
local_10 = "/";
break;
case 9:
local_10 = "|";
}
return local_10;
}
|
|
16,208
|
LefDefParser::defiPinPort::bounds(int, int*, int*, int*, int*) const
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiPinCap.cpp
|
void defiPinPort::bounds(int index, int* xl, int* yl, int* xh, int* yh) const {
if (xl) *xl = xl_[index];
if (yl) *yl = yl_[index];
if (xh) *xh = xh_[index];
if (yh) *yh = yh_[index];
}
|
O0
|
cpp
|
LefDefParser::defiPinPort::bounds(int, int*, int*, int*, int*) const:
movq %rdi, -0x8(%rsp)
movl %esi, -0xc(%rsp)
movq %rdx, -0x18(%rsp)
movq %rcx, -0x20(%rsp)
movq %r8, -0x28(%rsp)
movq %r9, -0x30(%rsp)
movq -0x8(%rsp), %rax
movq %rax, -0x38(%rsp)
cmpq $0x0, -0x18(%rsp)
je 0x29e47
movq -0x38(%rsp), %rax
movq 0x20(%rax), %rax
movslq -0xc(%rsp), %rcx
movl (%rax,%rcx,4), %ecx
movq -0x18(%rsp), %rax
movl %ecx, (%rax)
cmpq $0x0, -0x20(%rsp)
je 0x29e67
movq -0x38(%rsp), %rax
movq 0x28(%rax), %rax
movslq -0xc(%rsp), %rcx
movl (%rax,%rcx,4), %ecx
movq -0x20(%rsp), %rax
movl %ecx, (%rax)
cmpq $0x0, -0x28(%rsp)
je 0x29e87
movq -0x38(%rsp), %rax
movq 0x30(%rax), %rax
movslq -0xc(%rsp), %rcx
movl (%rax,%rcx,4), %ecx
movq -0x28(%rsp), %rax
movl %ecx, (%rax)
cmpq $0x0, -0x30(%rsp)
je 0x29ea7
movq -0x38(%rsp), %rax
movq 0x38(%rax), %rax
movslq -0xc(%rsp), %rcx
movl (%rax,%rcx,4), %ecx
movq -0x30(%rsp), %rax
movl %ecx, (%rax)
retq
nopl (%rax,%rax)
|
_ZNK12LefDefParser11defiPinPort6boundsEiPiS1_S1_S1_:
mov [rsp+var_8], rdi
mov [rsp+var_C], esi
mov [rsp+var_18], rdx
mov [rsp+var_20], rcx
mov [rsp+var_28], r8
mov [rsp+var_30], r9
mov rax, [rsp+var_8]
mov [rsp+var_38], rax
cmp [rsp+var_18], 0
jz short loc_29E47
mov rax, [rsp+var_38]
mov rax, [rax+20h]
movsxd rcx, [rsp+var_C]
mov ecx, [rax+rcx*4]
mov rax, [rsp+var_18]
mov [rax], ecx
loc_29E47:
cmp [rsp+var_20], 0
jz short loc_29E67
mov rax, [rsp+var_38]
mov rax, [rax+28h]
movsxd rcx, [rsp+var_C]
mov ecx, [rax+rcx*4]
mov rax, [rsp+var_20]
mov [rax], ecx
loc_29E67:
cmp [rsp+var_28], 0
jz short loc_29E87
mov rax, [rsp+var_38]
mov rax, [rax+30h]
movsxd rcx, [rsp+var_C]
mov ecx, [rax+rcx*4]
mov rax, [rsp+var_28]
mov [rax], ecx
loc_29E87:
cmp [rsp+var_30], 0
jz short locret_29EA7
mov rax, [rsp+var_38]
mov rax, [rax+38h]
movsxd rcx, [rsp+var_C]
mov ecx, [rax+rcx*4]
mov rax, [rsp+var_30]
mov [rax], ecx
locret_29EA7:
retn
|
int * LefDefParser::defiPinPort::bounds(
LefDefParser::defiPinPort *this,
int a2,
int *a3,
int *a4,
int *a5,
int *a6)
{
int *result; // rax
result = (int *)this;
if ( a3 )
{
result = a3;
*a3 = *(_DWORD *)(*((_QWORD *)this + 4) + 4LL * a2);
}
if ( a4 )
{
result = a4;
*a4 = *(_DWORD *)(*((_QWORD *)this + 5) + 4LL * a2);
}
if ( a5 )
{
result = a5;
*a5 = *(_DWORD *)(*((_QWORD *)this + 6) + 4LL * a2);
}
if ( a6 )
{
result = a6;
*a6 = *(_DWORD *)(*((_QWORD *)this + 7) + 4LL * a2);
}
return result;
}
|
bounds:
MOV qword ptr [RSP + -0x8],RDI
MOV dword ptr [RSP + -0xc],ESI
MOV qword ptr [RSP + -0x18],RDX
MOV qword ptr [RSP + -0x20],RCX
MOV qword ptr [RSP + -0x28],R8
MOV qword ptr [RSP + -0x30],R9
MOV RAX,qword ptr [RSP + -0x8]
MOV qword ptr [RSP + -0x38],RAX
CMP qword ptr [RSP + -0x18],0x0
JZ 0x00129e47
MOV RAX,qword ptr [RSP + -0x38]
MOV RAX,qword ptr [RAX + 0x20]
MOVSXD RCX,dword ptr [RSP + -0xc]
MOV ECX,dword ptr [RAX + RCX*0x4]
MOV RAX,qword ptr [RSP + -0x18]
MOV dword ptr [RAX],ECX
LAB_00129e47:
CMP qword ptr [RSP + -0x20],0x0
JZ 0x00129e67
MOV RAX,qword ptr [RSP + -0x38]
MOV RAX,qword ptr [RAX + 0x28]
MOVSXD RCX,dword ptr [RSP + -0xc]
MOV ECX,dword ptr [RAX + RCX*0x4]
MOV RAX,qword ptr [RSP + -0x20]
MOV dword ptr [RAX],ECX
LAB_00129e67:
CMP qword ptr [RSP + -0x28],0x0
JZ 0x00129e87
MOV RAX,qword ptr [RSP + -0x38]
MOV RAX,qword ptr [RAX + 0x30]
MOVSXD RCX,dword ptr [RSP + -0xc]
MOV ECX,dword ptr [RAX + RCX*0x4]
MOV RAX,qword ptr [RSP + -0x28]
MOV dword ptr [RAX],ECX
LAB_00129e87:
CMP qword ptr [RSP + -0x30],0x0
JZ 0x00129ea7
MOV RAX,qword ptr [RSP + -0x38]
MOV RAX,qword ptr [RAX + 0x38]
MOVSXD RCX,dword ptr [RSP + -0xc]
MOV ECX,dword ptr [RAX + RCX*0x4]
MOV RAX,qword ptr [RSP + -0x30]
MOV dword ptr [RAX],ECX
LAB_00129ea7:
RET
|
/* LefDefParser::defiPinPort::bounds(int, int*, int*, int*, int*) const */
void __thiscall
LefDefParser::defiPinPort::bounds
(defiPinPort *this,int param_1,int *param_2,int *param_3,int *param_4,int *param_5)
{
if (param_2 != (int *)0x0) {
*param_2 = *(int *)(*(long *)(this + 0x20) + (long)param_1 * 4);
}
if (param_3 != (int *)0x0) {
*param_3 = *(int *)(*(long *)(this + 0x28) + (long)param_1 * 4);
}
if (param_4 != (int *)0x0) {
*param_4 = *(int *)(*(long *)(this + 0x30) + (long)param_1 * 4);
}
if (param_5 != (int *)0x0) {
*param_5 = *(int *)(*(long *)(this + 0x38) + (long)param_1 * 4);
}
return;
}
|
|
16,209
|
ma_dynstr_realloc
|
eloqsql/libmariadb/libmariadb/ma_string.c
|
my_bool ma_dynstr_realloc(DYNAMIC_STRING *str, size_t additional_size)
{
if (!additional_size) return(FALSE);
if (str->length + additional_size > str->max_length)
{
str->max_length=((str->length + additional_size+str->alloc_increment-1)/
str->alloc_increment)*str->alloc_increment;
if (!(str->str=(char*) realloc(str->str,str->max_length)))
return(TRUE);
}
return(FALSE);
}
|
O0
|
c
|
ma_dynstr_realloc:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0xba14d
movb $0x0, -0x1(%rbp)
jmp 0xba1c6
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
addq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jbe 0xba1c2
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
addq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
addq 0x18(%rcx), %rax
subq $0x1, %rax
movq -0x10(%rbp), %rcx
xorl %edx, %edx
divq 0x18(%rcx)
movq %rax, %rcx
movq -0x10(%rbp), %rax
imulq 0x18(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x3a0c0
movq -0x10(%rbp), %rcx
movq %rax, (%rcx)
cmpq $0x0, %rax
jne 0xba1c0
movb $0x1, -0x1(%rbp)
jmp 0xba1c6
jmp 0xba1c2
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x20, %rsp
popq %rbp
retq
nop
|
ma_dynstr_realloc:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
cmp [rbp+var_18], 0
jnz short loc_BA14D
mov [rbp+var_1], 0
jmp short loc_BA1C6
loc_BA14D:
mov rax, [rbp+var_10]
mov rax, [rax+8]
add rax, [rbp+var_18]
mov rcx, [rbp+var_10]
cmp rax, [rcx+10h]
jbe short loc_BA1C2
mov rax, [rbp+var_10]
mov rax, [rax+8]
add rax, [rbp+var_18]
mov rcx, [rbp+var_10]
add rax, [rcx+18h]
sub rax, 1
mov rcx, [rbp+var_10]
xor edx, edx
div qword ptr [rcx+18h]
mov rcx, rax
mov rax, [rbp+var_10]
imul rcx, [rax+18h]
mov rax, [rbp+var_10]
mov [rax+10h], rcx
mov rax, [rbp+var_10]
mov rdi, [rax]
mov rax, [rbp+var_10]
mov rsi, [rax+10h]
call _realloc
mov rcx, [rbp+var_10]
mov [rcx], rax
cmp rax, 0
jnz short loc_BA1C0
mov [rbp+var_1], 1
jmp short loc_BA1C6
loc_BA1C0:
jmp short $+2
loc_BA1C2:
mov [rbp+var_1], 0
loc_BA1C6:
mov al, [rbp+var_1]
add rsp, 20h
pop rbp
retn
|
bool ma_dynstr_realloc(long long *a1, long long a2)
{
long long v2; // rax
char v4; // [rsp+1Fh] [rbp-1h]
if ( a2 )
{
v4 = 0;
if ( a2 + a1[1] > (unsigned long long)a1[2] )
{
a1[2] = a1[3] * ((a1[3] + a2 + a1[1] - 1) / (unsigned long long)a1[3]);
v2 = realloc(*a1, a1[2]);
*a1 = v2;
if ( !v2 )
return 1;
}
}
else
{
return 0;
}
return v4;
}
|
ma_dynstr_realloc:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
CMP qword ptr [RBP + -0x18],0x0
JNZ 0x001ba14d
MOV byte ptr [RBP + -0x1],0x0
JMP 0x001ba1c6
LAB_001ba14d:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
ADD RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x10]
JBE 0x001ba1c2
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
ADD RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RCX + 0x18]
SUB RAX,0x1
MOV RCX,qword ptr [RBP + -0x10]
XOR EDX,EDX
DIV qword ptr [RCX + 0x18]
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
IMUL RCX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x10]
CALL 0x0013a0c0
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RCX],RAX
CMP RAX,0x0
JNZ 0x001ba1c0
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001ba1c6
LAB_001ba1c0:
JMP 0x001ba1c2
LAB_001ba1c2:
MOV byte ptr [RBP + -0x1],0x0
LAB_001ba1c6:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x20
POP RBP
RET
|
int1 ma_dynstr_realloc(int8 *param_1,long param_2)
{
void *pvVar1;
if ((param_2 != 0) && ((ulong)param_1[2] < (ulong)(param_1[1] + param_2))) {
param_1[2] = (((param_1[1] + param_2 + param_1[3]) - 1U) / (ulong)param_1[3]) * param_1[3];
pvVar1 = realloc((void *)*param_1,param_1[2]);
*param_1 = pvVar1;
if (pvVar1 == (void *)0x0) {
return 1;
}
}
return 0;
}
|
|
16,210
|
ma_dynstr_realloc
|
eloqsql/libmariadb/libmariadb/ma_string.c
|
my_bool ma_dynstr_realloc(DYNAMIC_STRING *str, size_t additional_size)
{
if (!additional_size) return(FALSE);
if (str->length + additional_size > str->max_length)
{
str->max_length=((str->length + additional_size+str->alloc_increment-1)/
str->alloc_increment)*str->alloc_increment;
if (!(str->str=(char*) realloc(str->str,str->max_length)))
return(TRUE);
}
return(FALSE);
}
|
O3
|
c
|
ma_dynstr_realloc:
testq %rsi, %rsi
je 0x95c47
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
addq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
jbe 0x95c3e
movq (%rbx), %rdi
movq 0x18(%rbx), %rcx
addq %rcx, %rsi
decq %rsi
movq %rsi, %rax
xorl %edx, %edx
divq %rcx
subq %rdx, %rsi
movq %rsi, 0x10(%rbx)
callq 0x390b0
movq %rax, (%rbx)
testq %rax, %rax
je 0x95c4a
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
xorl %eax, %eax
retq
movb $0x1, %al
jmp 0x95c40
|
ma_dynstr_realloc:
test rsi, rsi
jz short loc_95C47
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
add rsi, [rdi+8]
cmp rsi, [rdi+10h]
jbe short loc_95C3E
mov rdi, [rbx]
mov rcx, [rbx+18h]
add rsi, rcx
dec rsi
mov rax, rsi
xor edx, edx
div rcx
sub rsi, rdx
mov [rbx+10h], rsi
call _realloc
mov [rbx], rax
test rax, rax
jz short loc_95C4A
loc_95C3E:
xor eax, eax
loc_95C40:
add rsp, 8
pop rbx
pop rbp
retn
loc_95C47:
xor eax, eax
retn
loc_95C4A:
mov al, 1
jmp short loc_95C40
|
_BOOL8 ma_dynstr_realloc(long long *a1, long long a2)
{
unsigned long long v3; // rsi
long long v4; // rdi
unsigned long long v5; // rsi
long long v6; // rax
_BOOL8 result; // rax
if ( !a2 )
return 0LL;
v3 = a1[1] + a2;
result = 0;
if ( v3 > a1[2] )
{
v4 = *a1;
v5 = a1[3] + v3 - 1 - (a1[3] + v3 - 1) % a1[3];
a1[2] = v5;
v6 = realloc(v4, v5);
*a1 = v6;
if ( !v6 )
return 1;
}
return result;
}
|
ma_dynstr_realloc:
TEST RSI,RSI
JZ 0x00195c47
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
ADD RSI,qword ptr [RDI + 0x8]
CMP RSI,qword ptr [RDI + 0x10]
JBE 0x00195c3e
MOV RDI,qword ptr [RBX]
MOV RCX,qword ptr [RBX + 0x18]
ADD RSI,RCX
DEC RSI
MOV RAX,RSI
XOR EDX,EDX
DIV RCX
SUB RSI,RDX
MOV qword ptr [RBX + 0x10],RSI
CALL 0x001390b0
MOV qword ptr [RBX],RAX
TEST RAX,RAX
JZ 0x00195c4a
LAB_00195c3e:
XOR EAX,EAX
LAB_00195c40:
ADD RSP,0x8
POP RBX
POP RBP
RET
LAB_00195c47:
XOR EAX,EAX
RET
LAB_00195c4a:
MOV AL,0x1
JMP 0x00195c40
|
int8 ma_dynstr_realloc(int8 *param_1,long param_2)
{
void *pvVar1;
ulong uVar2;
size_t __size;
if (param_2 == 0) {
return 0;
}
if ((ulong)param_1[2] < (ulong)(param_2 + param_1[1])) {
uVar2 = (param_2 + param_1[1] + param_1[3]) - 1;
__size = uVar2 - uVar2 % (ulong)param_1[3];
param_1[2] = __size;
pvVar1 = realloc((void *)*param_1,__size);
*param_1 = pvVar1;
if (pvVar1 == (void *)0x0) {
return 1;
}
}
return 0;
}
|
|
16,211
|
dbuf_put
|
bluesky950520[P]quickjs/cutils.c
|
int dbuf_put(DynBuf *s, const void *data, size_t len)
{
if (unlikely((s->size + len) > s->allocated_size)) {
if (dbuf_realloc(s, s->size + len))
return -1;
}
if (len > 0) {
memcpy(s->buf + s->size, data, len);
s->size += len;
}
return 0;
}
|
O0
|
c
|
dbuf_put:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdx, 0x8(%rsp)
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rax
addq 0x8(%rsp), %rax
movq 0x18(%rsp), %rcx
cmpq 0x10(%rcx), %rax
seta %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x248a7
movq 0x18(%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rsi
addq 0x8(%rsp), %rsi
callq 0x246e0
cmpl $0x0, %eax
je 0x248a5
movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF
jmp 0x248e9
jmp 0x248a7
cmpq $0x0, 0x8(%rsp)
jbe 0x248e1
movq 0x18(%rsp), %rax
movq (%rax), %rdi
movq 0x18(%rsp), %rax
addq 0x8(%rax), %rdi
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdx
callq 0xe610
movq 0x8(%rsp), %rcx
movq 0x18(%rsp), %rax
addq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
|
dbuf_put:
sub rsp, 28h
mov [rsp+28h+var_10], rdi
mov [rsp+28h+var_18], rsi
mov [rsp+28h+var_20], rdx
mov rax, [rsp+28h+var_10]
mov rax, [rax+8]
add rax, [rsp+28h+var_20]
mov rcx, [rsp+28h+var_10]
cmp rax, [rcx+10h]
setnbe al
xor al, 0FFh
xor al, 0FFh
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_248A7
mov rdi, [rsp+28h+var_10]
mov rax, [rsp+28h+var_10]
mov rsi, [rax+8]
add rsi, [rsp+28h+var_20]
call dbuf_realloc
cmp eax, 0
jz short loc_248A5
mov [rsp+28h+var_4], 0FFFFFFFFh
jmp short loc_248E9
loc_248A5:
jmp short $+2
loc_248A7:
cmp [rsp+28h+var_20], 0
jbe short loc_248E1
mov rax, [rsp+28h+var_10]
mov rdi, [rax]
mov rax, [rsp+28h+var_10]
add rdi, [rax+8]
mov rsi, [rsp+28h+var_18]
mov rdx, [rsp+28h+var_20]
call _memcpy
mov rcx, [rsp+28h+var_20]
mov rax, [rsp+28h+var_10]
add rcx, [rax+8]
mov [rax+8], rcx
loc_248E1:
mov [rsp+28h+var_4], 0
loc_248E9:
mov eax, [rsp+28h+var_4]
add rsp, 28h
retn
|
long long dbuf_put(_QWORD *a1, long long a2, long long a3)
{
if ( (unsigned long long)(a3 + a1[1]) > a1[2] && (unsigned int)dbuf_realloc((long long)a1, a3 + a1[1]) )
{
return (unsigned int)-1;
}
else
{
if ( a3 )
{
memcpy(a1[1] + *a1, a2, a3);
a1[1] += a3;
}
return 0;
}
}
|
dbuf_put:
SUB RSP,0x28
MOV qword ptr [RSP + 0x18],RDI
MOV qword ptr [RSP + 0x10],RSI
MOV qword ptr [RSP + 0x8],RDX
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x8]
ADD RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x18]
CMP RAX,qword ptr [RCX + 0x10]
SETA AL
XOR AL,0xff
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001248a7
MOV RDI,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RAX + 0x8]
ADD RSI,qword ptr [RSP + 0x8]
CALL 0x001246e0
CMP EAX,0x0
JZ 0x001248a5
MOV dword ptr [RSP + 0x24],0xffffffff
JMP 0x001248e9
LAB_001248a5:
JMP 0x001248a7
LAB_001248a7:
CMP qword ptr [RSP + 0x8],0x0
JBE 0x001248e1
MOV RAX,qword ptr [RSP + 0x18]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RSP + 0x18]
ADD RDI,qword ptr [RAX + 0x8]
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x8]
CALL 0x0010e610
MOV RCX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RSP + 0x18]
ADD RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RAX + 0x8],RCX
LAB_001248e1:
MOV dword ptr [RSP + 0x24],0x0
LAB_001248e9:
MOV EAX,dword ptr [RSP + 0x24]
ADD RSP,0x28
RET
|
int4 dbuf_put(long *param_1,void *param_2,size_t param_3)
{
int iVar1;
int4 local_4;
if (((ulong)param_1[2] < param_1[1] + param_3) &&
(iVar1 = dbuf_realloc(param_1,param_1[1] + param_3), iVar1 != 0)) {
local_4 = 0xffffffff;
}
else {
if (param_3 != 0) {
memcpy((void *)(*param_1 + param_1[1]),param_2,param_3);
param_1[1] = param_3 + param_1[1];
}
local_4 = 0;
}
return local_4;
}
|
|
16,212
|
my_caseup_ucs2
|
eloqsql/strings/ctype-ucs2.c
|
static size_t my_caseup_ucs2(CHARSET_INFO *cs, const char *src, size_t srclen,
char *dst, size_t dstlen)
{
my_wc_t wc;
int res;
const char *srcend= src + srclen;
char *dstend= dst + dstlen;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
DBUG_ASSERT(srclen <= dstlen);
while ((src < srcend) &&
(res= my_ucs2_uni(cs, &wc, (uchar *)src, (uchar*) srcend)) > 0)
{
my_toupper_ucs2(uni_plane, &wc);
if (res != my_uni_ucs2(cs, wc, (uchar*) dst, (uchar*) dstend))
break;
src+= res;
dst+= res;
}
return srclen;
}
|
O3
|
c
|
my_caseup_ucs2:
movq %rdx, %rax
cmpq $0x2, %rdx
jl 0xc621b
pushq %rbp
movq %rsp, %rbp
leaq (%rsi,%rax), %rdx
addq %rcx, %r8
movq 0x78(%rdi), %rdi
addq $0x2, %rcx
movzbl (%rsi), %r9d
movzbl 0x1(%rsi), %r10d
movq 0x8(%rdi), %r11
movq (%r11,%r9,8), %r11
testq %r11, %r11
je 0xc61e2
leaq (%r10,%r10,2), %r9
movl (%r11,%r9,4), %r9d
jmp 0xc61e9
shll $0x8, %r9d
orq %r10, %r9
cmpq %r8, %rcx
ja 0xc621a
cmpl $0xffff, %r9d # imm = 0xFFFF
ja 0xc621a
rolw $0x8, %r9w
movw %r9w, -0x2(%rcx)
leaq 0x2(%rsi), %r9
cmpq %rdx, %r9
jae 0xc621a
addq $0x4, %rsi
addq $0x2, %rcx
cmpq %rdx, %rsi
movq %r9, %rsi
jbe 0xc61c2
popq %rbp
retq
|
my_caseup_ucs2:
mov rax, rdx
cmp rdx, 2
jl short locret_C621B
push rbp
mov rbp, rsp
lea rdx, [rsi+rax]
add r8, rcx
mov rdi, [rdi+78h]
add rcx, 2
loc_C61C2:
movzx r9d, byte ptr [rsi]
movzx r10d, byte ptr [rsi+1]
mov r11, [rdi+8]
mov r11, [r11+r9*8]
test r11, r11
jz short loc_C61E2
lea r9, [r10+r10*2]
mov r9d, [r11+r9*4]
jmp short loc_C61E9
loc_C61E2:
shl r9d, 8
or r9, r10
loc_C61E9:
cmp rcx, r8
ja short loc_C621A
cmp r9d, 0FFFFh
ja short loc_C621A
rol r9w, 8
mov [rcx-2], r9w
lea r9, [rsi+2]
cmp r9, rdx
jnb short loc_C621A
add rsi, 4
add rcx, 2
cmp rsi, rdx
mov rsi, r9
jbe short loc_C61C2
loc_C621A:
pop rbp
locret_C621B:
retn
|
long long my_caseup_ucs2(long long a1, unsigned __int8 *a2, long long a3, long long a4, long long a5)
{
long long result; // rax
unsigned long long v6; // rdx
unsigned long long v7; // r8
long long v8; // rdi
unsigned long long v9; // rcx
long long v10; // r9
long long v11; // r10
long long v12; // r11
unsigned int v13; // r9d
bool v14; // cc
result = a3;
if ( a3 >= 2 )
{
v6 = (unsigned long long)&a2[a3];
v7 = a4 + a5;
v8 = *(_QWORD *)(a1 + 120);
v9 = a4 + 2;
do
{
v10 = *a2;
v11 = a2[1];
v12 = *(_QWORD *)(*(_QWORD *)(v8 + 8) + 8 * v10);
if ( v12 )
v13 = *(_DWORD *)(v12 + 12 * v11);
else
v13 = v11 | ((_DWORD)v10 << 8);
if ( v9 > v7 )
break;
if ( v13 > 0xFFFF )
break;
*(_WORD *)(v9 - 2) = __ROL2__(v13, 8);
if ( (unsigned long long)(a2 + 2) >= v6 )
break;
v9 += 2LL;
v14 = (unsigned long long)(a2 + 4) <= v6;
a2 += 2;
}
while ( v14 );
}
return result;
}
|
my_caseup_ucs2:
MOV RAX,RDX
CMP RDX,0x2
JL 0x001c621b
PUSH RBP
MOV RBP,RSP
LEA RDX,[RSI + RAX*0x1]
ADD R8,RCX
MOV RDI,qword ptr [RDI + 0x78]
ADD RCX,0x2
LAB_001c61c2:
MOVZX R9D,byte ptr [RSI]
MOVZX R10D,byte ptr [RSI + 0x1]
MOV R11,qword ptr [RDI + 0x8]
MOV R11,qword ptr [R11 + R9*0x8]
TEST R11,R11
JZ 0x001c61e2
LEA R9,[R10 + R10*0x2]
MOV R9D,dword ptr [R11 + R9*0x4]
JMP 0x001c61e9
LAB_001c61e2:
SHL R9D,0x8
OR R9,R10
LAB_001c61e9:
CMP RCX,R8
JA 0x001c621a
CMP R9D,0xffff
JA 0x001c621a
ROL R9W,0x8
MOV word ptr [RCX + -0x2],R9W
LEA R9,[RSI + 0x2]
CMP R9,RDX
JNC 0x001c621a
ADD RSI,0x4
ADD RCX,0x2
CMP RSI,RDX
MOV RSI,R9
JBE 0x001c61c2
LAB_001c621a:
POP RBP
LAB_001c621b:
RET
|
void my_caseup_ucs2(long param_1,byte *param_2,long param_3,long param_4,long param_5)
{
long lVar1;
long lVar2;
ulong uVar3;
byte *pbVar4;
byte *pbVar5;
uint uVar6;
if (1 < param_3) {
lVar1 = *(long *)(param_1 + 0x78);
uVar3 = param_4 + 2;
pbVar4 = param_2;
while( true ) {
lVar2 = *(long *)(*(long *)(lVar1 + 8) + (ulong)*pbVar4 * 8);
if (lVar2 == 0) {
uVar6 = (uint)CONCAT11(*pbVar4,pbVar4[1]);
}
else {
uVar6 = *(uint *)(lVar2 + (ulong)pbVar4[1] * 0xc);
}
if (((ulong)(param_5 + param_4) < uVar3) || (0xffff < uVar6)) break;
*(ushort *)(uVar3 - 2) = (ushort)uVar6 << 8 | (ushort)uVar6 >> 8;
if (param_2 + param_3 <= pbVar4 + 2) {
return;
}
pbVar5 = pbVar4 + 4;
uVar3 = uVar3 + 2;
pbVar4 = pbVar4 + 2;
if (param_2 + param_3 < pbVar5) {
return;
}
}
}
return;
}
|
|
16,213
|
initialize_segment_integrity
|
seiftnesse[P]memoryallocator/src/custom_alloc_util.c
|
void initialize_segment_integrity(segment_t *s) {
if (!s || integrity_check_level < 2) return;
// Calculate addresses to check if we have enough space for integrity data
uintptr_t segment_addr = (uintptr_t) (s);
uintptr_t user_data_addr = (uintptr_t) (SegmentToPtr(s));
uintptr_t integrity_addr = segment_addr + sizeof(segment_t);
// Check if we have enough space between segment header and user data
if (integrity_addr + sizeof(segment_integrity_t) > user_data_addr) {
HEAP_LOG("Warning: Not enough space for integrity metadata in segment %p\n", s);
return;
}
segment_integrity_t *integrity = (segment_integrity_t *) (integrity_addr);
integrity->header_guard = HEADER_GUARD_VALUE;
integrity->checksum = calculate_segment_checksum(s);
// Set footer guard value if thorough checking is enabled
if (integrity_check_level >= 3) {
set_segment_footer(s);
}
HEAP_LOG("Initialized integrity for segment %p: checksum=0x%08X\n",
s, integrity->checksum);
}
|
O3
|
c
|
initialize_segment_integrity:
pushq %rbx
testq %rdi, %rdi
je 0x27b2
cmpl $0x2, 0x2944(%rip) # 0x50bc
jl 0x27b2
movq %rdi, %rbx
leaq 0x3f(%rdi), %rax
andq $-0x10, %rax
leaq 0x3c(%rdi), %rcx
cmpq %rax, %rcx
ja 0x27b2
movl $0xfeedface, 0x30(%rbx) # imm = 0xFEEDFACE
movq %rbx, %rdi
callq 0x2885
movl %eax, 0x34(%rbx)
cmpl $0x3, 0x2915(%rip) # 0x50bc
jl 0x27b2
movq %rbx, %rdi
popq %rbx
jmp 0x2920
popq %rbx
retq
|
initialize_segment_integrity:
push rbx
test rdi, rdi
jz short loc_27B2
cmp cs:integrity_check_level, 2
jl short loc_27B2
mov rbx, rdi
lea rax, [rdi+3Fh]
and rax, 0FFFFFFFFFFFFFFF0h
lea rcx, [rdi+3Ch]
cmp rcx, rax
ja short loc_27B2
mov dword ptr [rbx+30h], 0FEEDFACEh
mov rdi, rbx
call calculate_segment_checksum
mov [rbx+34h], eax
cmp cs:integrity_check_level, 3
jl short loc_27B2
mov rdi, rbx
pop rbx
jmp set_segment_footer
loc_27B2:
pop rbx
retn
|
void initialize_segment_integrity(long long a1)
{
if ( a1 && integrity_check_level >= 2 && a1 + 60 <= ((a1 + 63) & 0xFFFFFFFFFFFFFFF0LL) )
{
*(_DWORD *)(a1 + 48) = -17958194;
*(_DWORD *)(a1 + 52) = calculate_segment_checksum(a1);
if ( integrity_check_level >= 3 )
set_segment_footer(a1);
}
}
|
initialize_segment_integrity:
PUSH RBX
TEST RDI,RDI
JZ 0x001027b2
CMP dword ptr [0x001050bc],0x2
JL 0x001027b2
MOV RBX,RDI
LEA RAX,[RDI + 0x3f]
AND RAX,-0x10
LEA RCX,[RDI + 0x3c]
CMP RCX,RAX
JA 0x001027b2
MOV dword ptr [RBX + 0x30],0xfeedface
MOV RDI,RBX
CALL 0x00102885
MOV dword ptr [RBX + 0x34],EAX
CMP dword ptr [0x001050bc],0x3
JL 0x001027b2
MOV RDI,RBX
POP RBX
JMP 0x00102920
LAB_001027b2:
POP RBX
RET
|
void initialize_segment_integrity(long param_1)
{
int4 uVar1;
if (((param_1 != 0) && (1 < integrity_check_level)) &&
(param_1 + 0x3cU <= (param_1 + 0x3fU & 0xfffffffffffffff0))) {
*(int4 *)(param_1 + 0x30) = 0xfeedface;
uVar1 = calculate_segment_checksum(param_1);
*(int4 *)(param_1 + 0x34) = uVar1;
if (2 < integrity_check_level) {
set_segment_footer(param_1);
return;
}
}
return;
}
|
|
16,214
|
verify_args
|
corpus-core[P]colibri-stateless/src/chains/eth/verifier/verify_tx_proof.c
|
static bool verify_args(verify_ctx_t* ctx, bytes_t raw, uint32_t tx_index, bytes32_t block_hash) {
if (ctx->method == NULL) return true;
if (strcmp(ctx->method, "eth_getTransactionByHash") == 0) {
if (!c4_tx_verify_tx_hash(ctx, raw)) RETURN_VERIFY_ERROR(ctx, "invalid tx hash!");
}
else if (strcmp(ctx->method, "eth_getTransactionByBlockHashAndIndex") == 0) {
bytes32_t tmp = {0};
buffer_t buf = stack_buffer(tmp);
bytes_t req_block_hash = json_as_bytes(json_at(ctx->args, 0), &buf);
if (req_block_hash.len != 32) RETURN_VERIFY_ERROR(ctx, "invalid block hash!");
if (memcmp(req_block_hash.data, block_hash, 32) != 0) RETURN_VERIFY_ERROR(ctx, "invalid block hash!");
if (json_as_uint32(json_at(ctx->args, 1)) != tx_index) RETURN_VERIFY_ERROR(ctx, "invalid tx index!");
}
else if (strcmp(ctx->method, "eth_getTransactionByBlockNumberAndIndex") == 0) {
uint64_t req_block_num = json_as_uint64(json_at(ctx->args, 0));
if (!req_block_num) RETURN_VERIFY_ERROR(ctx, "invalid block number!");
if (req_block_num != ssz_get_uint64(&ctx->proof, "blockNumber")) RETURN_VERIFY_ERROR(ctx, "invalid block number!");
if (json_as_uint32(json_at(ctx->args, 1)) != tx_index) RETURN_VERIFY_ERROR(ctx, "invalid tx index!");
}
else
RETURN_VERIFY_ERROR(ctx, "invalid method for tx proof!");
return true;
}
|
O0
|
c
|
verify_args:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp # imm = 0x100
movl %esi, -0x18(%rbp)
movq %rdx, -0x10(%rbp)
movq %rdi, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movq %r8, -0x30(%rbp)
movq -0x20(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x26d00
movb $0x1, -0x1(%rbp)
jmp 0x2709e
movq -0x20(%rbp), %rax
movq (%rax), %rdi
leaq 0xb35dd(%rip), %rsi # 0xda2eb
callq 0x23320
cmpl $0x0, %eax
jne 0x26d58
movq -0x20(%rbp), %rdi
movl -0x18(%rbp), %esi
movq -0x10(%rbp), %rdx
callq 0x2f310
testb $0x1, %al
jne 0x26d53
jmp 0x26d2e
movq -0x20(%rbp), %rdi
addq $0x70, %rdi
leaq 0xb411d(%rip), %rsi # 0xdae5a
callq 0xa6370
movq -0x20(%rbp), %rax
movb $0x0, 0x68(%rax)
movb $0x0, -0x1(%rbp)
jmp 0x2709e
jmp 0x2709a
movq -0x20(%rbp), %rax
movq (%rax), %rdi
leaq 0xb359e(%rip), %rsi # 0xda304
callq 0x23320
cmpl $0x0, %eax
jne 0x26eee
leaq -0x50(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x23140
movl $0x0, -0x68(%rbp)
leaq -0x50(%rbp), %rax
movq %rax, -0x60(%rbp)
movl $0xffffffe0, -0x58(%rbp) # imm = 0xFFFFFFE0
movq -0x20(%rbp), %rax
addq $0x8, %rax
leaq -0x90(%rbp), %rdi
xorl %ecx, %ecx
movl %ecx, %esi
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0xa44c0
leaq -0x90(%rbp), %rax
leaq -0x68(%rbp), %rdi
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0xa48c0
movl %eax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
cmpl $0x20, -0x78(%rbp)
je 0x26e28
jmp 0x26e03
movq -0x20(%rbp), %rdi
addq $0x70, %rdi
leaq 0xb4059(%rip), %rsi # 0xdae6b
callq 0xa6370
movq -0x20(%rbp), %rax
movb $0x0, 0x68(%rax)
movb $0x0, -0x1(%rbp)
jmp 0x2709e
movq -0x70(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl $0x20, %edx
callq 0x23100
cmpl $0x0, %eax
je 0x26e66
jmp 0x26e41
movq -0x20(%rbp), %rdi
addq $0x70, %rdi
leaq 0xb401b(%rip), %rsi # 0xdae6b
callq 0xa6370
movq -0x20(%rbp), %rax
movb $0x0, 0x68(%rax)
movb $0x0, -0x1(%rbp)
jmp 0x2709e
movq -0x20(%rbp), %rax
addq $0x8, %rax
leaq -0xa8(%rbp), %rdi
movl $0x1, %esi
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0xa44c0
leaq -0xa8(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0xa4780
cmpl -0x24(%rbp), %eax
je 0x26ee9
jmp 0x26ec4
movq -0x20(%rbp), %rdi
addq $0x70, %rdi
leaq 0xb3fac(%rip), %rsi # 0xdae7f
callq 0xa6370
movq -0x20(%rbp), %rax
movb $0x0, 0x68(%rax)
movb $0x0, -0x1(%rbp)
jmp 0x2709e
jmp 0x27098
movq -0x20(%rbp), %rax
movq (%rax), %rdi
leaq 0xb342e(%rip), %rsi # 0xda32a
callq 0x23320
cmpl $0x0, %eax
jne 0x27072
movq -0x20(%rbp), %rax
addq $0x8, %rax
leaq -0xc8(%rbp), %rdi
xorl %ecx, %ecx
movl %ecx, %esi
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0xa44c0
leaq -0xc8(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0xa4780
movq %rax, -0xb0(%rbp)
cmpq $0x0, -0xb0(%rbp)
jne 0x26f98
jmp 0x26f73
movq -0x20(%rbp), %rdi
addq $0x70, %rdi
leaq 0xb3f0f(%rip), %rsi # 0xdae91
callq 0xa6370
movq -0x20(%rbp), %rax
movb $0x0, 0x68(%rax)
movb $0x0, -0x1(%rbp)
jmp 0x2709e
movq -0xb0(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x20(%rbp), %rdi
addq $0x20, %rdi
leaq 0xb3475(%rip), %rsi # 0xda42a
callq 0x27460
movq %rax, %rcx
movq -0xe8(%rbp), %rax
cmpq %rcx, %rax
je 0x26ff0
jmp 0x26fcb
movq -0x20(%rbp), %rdi
addq $0x70, %rdi
leaq 0xb3eb7(%rip), %rsi # 0xdae91
callq 0xa6370
movq -0x20(%rbp), %rax
movb $0x0, 0x68(%rax)
movb $0x0, -0x1(%rbp)
jmp 0x2709e
movq -0x20(%rbp), %rax
addq $0x8, %rax
leaq -0xe0(%rbp), %rdi
movl $0x1, %esi
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0xa44c0
leaq -0xe0(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0xa4780
cmpl -0x24(%rbp), %eax
je 0x27070
jmp 0x2704e
movq -0x20(%rbp), %rdi
addq $0x70, %rdi
leaq 0xb3e22(%rip), %rsi # 0xdae7f
callq 0xa6370
movq -0x20(%rbp), %rax
movb $0x0, 0x68(%rax)
movb $0x0, -0x1(%rbp)
jmp 0x2709e
jmp 0x27096
jmp 0x27074
movq -0x20(%rbp), %rdi
addq $0x70, %rdi
leaq 0xb3e24(%rip), %rsi # 0xdaea7
callq 0xa6370
movq -0x20(%rbp), %rax
movb $0x0, 0x68(%rax)
movb $0x0, -0x1(%rbp)
jmp 0x2709e
jmp 0x27098
jmp 0x2709a
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x100, %rsp # imm = 0x100
popq %rbp
retq
nopl (%rax)
|
verify_args:
push rbp
mov rbp, rsp
sub rsp, 100h
mov [rbp+var_18], esi
mov [rbp+var_10], rdx
mov [rbp+var_20], rdi
mov [rbp+var_24], ecx
mov [rbp+var_30], r8
mov rax, [rbp+var_20]
cmp qword ptr [rax], 0
jnz short loc_26D00
mov [rbp+var_1], 1
jmp loc_2709E
loc_26D00:
mov rax, [rbp+var_20]
mov rdi, [rax]
lea rsi, aEthGettransact_0; "eth_getTransactionByHash"
call _strcmp
cmp eax, 0
jnz short loc_26D58
mov rdi, [rbp+var_20]
mov esi, [rbp+var_18]
mov rdx, [rbp+var_10]
call c4_tx_verify_tx_hash
test al, 1
jnz short loc_26D53
jmp short $+2
loc_26D2E:
mov rdi, [rbp+var_20]
add rdi, 70h ; 'p'
lea rsi, aInvalidTxHash; "invalid tx hash!"
call c4_state_add_error
mov rax, [rbp+var_20]
mov byte ptr [rax+68h], 0
mov [rbp+var_1], 0
jmp loc_2709E
loc_26D53:
jmp loc_2709A
loc_26D58:
mov rax, [rbp+var_20]
mov rdi, [rax]
lea rsi, aEthGettransact_1; "eth_getTransactionByBlockHashAndIndex"
call _strcmp
cmp eax, 0
jnz loc_26EEE
lea rdi, [rbp+var_50]
xor esi, esi
mov edx, 20h ; ' '
call _memset
mov [rbp+var_68], 0
lea rax, [rbp+var_50]
mov [rbp+var_60], rax
mov [rbp+var_58], 0FFFFFFE0h
mov rax, [rbp+var_20]
add rax, 8
lea rdi, [rbp+var_90]
xor ecx, ecx
mov esi, ecx
mov rcx, [rax]
mov [rsp+100h+var_100], rcx
mov rcx, [rax+8]
mov [rsp+100h+var_F8], rcx
mov rax, [rax+10h]
mov [rsp+100h+var_F0], rax
call json_at
lea rax, [rbp+var_90]
lea rdi, [rbp+var_68]
mov rcx, [rax]
mov [rsp+100h+var_100], rcx
mov rcx, [rax+8]
mov [rsp+100h+var_F8], rcx
mov rax, [rax+10h]
mov [rsp+100h+var_F0], rax
call json_as_bytes
mov [rbp+var_78], eax
mov [rbp+var_70], rdx
cmp [rbp+var_78], 20h ; ' '
jz short loc_26E28
jmp short $+2
loc_26E03:
mov rdi, [rbp+var_20]
add rdi, 70h ; 'p'
lea rsi, aInvalidBlockHa; "invalid block hash!"
call c4_state_add_error
mov rax, [rbp+var_20]
mov byte ptr [rax+68h], 0
mov [rbp+var_1], 0
jmp loc_2709E
loc_26E28:
mov rdi, [rbp+var_70]
mov rsi, [rbp+var_30]
mov edx, 20h ; ' '
call _memcmp
cmp eax, 0
jz short loc_26E66
jmp short $+2
loc_26E41:
mov rdi, [rbp+var_20]
add rdi, 70h ; 'p'
lea rsi, aInvalidBlockHa; "invalid block hash!"
call c4_state_add_error
mov rax, [rbp+var_20]
mov byte ptr [rax+68h], 0
mov [rbp+var_1], 0
jmp loc_2709E
loc_26E66:
mov rax, [rbp+var_20]
add rax, 8
lea rdi, [rbp+var_A8]
mov esi, 1
mov rcx, [rax]
mov [rsp+100h+var_100], rcx
mov rcx, [rax+8]
mov [rsp+100h+var_F8], rcx
mov rax, [rax+10h]
mov [rsp+100h+var_F0], rax
call json_at
lea rax, [rbp+var_A8]
mov rcx, [rax]
mov [rsp+100h+var_100], rcx
mov rcx, [rax+8]
mov [rsp+100h+var_F8], rcx
mov rax, [rax+10h]
mov [rsp+100h+var_F0], rax
call json_as_uint64
cmp eax, [rbp+var_24]
jz short loc_26EE9
jmp short $+2
loc_26EC4:
mov rdi, [rbp+var_20]
add rdi, 70h ; 'p'
lea rsi, aInvalidTxIndex; "invalid tx index!"
call c4_state_add_error
mov rax, [rbp+var_20]
mov byte ptr [rax+68h], 0
mov [rbp+var_1], 0
jmp loc_2709E
loc_26EE9:
jmp loc_27098
loc_26EEE:
mov rax, [rbp+var_20]
mov rdi, [rax]
lea rsi, aEthGettransact_2; "eth_getTransactionByBlockNumberAndIndex"
call _strcmp
cmp eax, 0
jnz loc_27072
mov rax, [rbp+var_20]
add rax, 8
lea rdi, [rbp+var_C8]
xor ecx, ecx
mov esi, ecx
mov rcx, [rax]
mov [rsp+100h+var_100], rcx
mov rcx, [rax+8]
mov [rsp+100h+var_F8], rcx
mov rax, [rax+10h]
mov [rsp+100h+var_F0], rax
call json_at
lea rax, [rbp+var_C8]
mov rcx, [rax]
mov [rsp+100h+var_100], rcx
mov rcx, [rax+8]
mov [rsp+100h+var_F8], rcx
mov rax, [rax+10h]
mov [rsp+100h+var_F0], rax
call json_as_uint64
mov [rbp+var_B0], rax
cmp [rbp+var_B0], 0
jnz short loc_26F98
jmp short $+2
loc_26F73:
mov rdi, [rbp+var_20]
add rdi, 70h ; 'p'
lea rsi, aInvalidBlockNu; "invalid block number!"
call c4_state_add_error
mov rax, [rbp+var_20]
mov byte ptr [rax+68h], 0
mov [rbp+var_1], 0
jmp loc_2709E
loc_26F98:
mov rax, [rbp+var_B0]
mov [rbp+var_E8], rax
mov rdi, [rbp+var_20]
add rdi, 20h ; ' '
lea rsi, aEthBlocknumber+4; "blockNumber"
call ssz_get_uint64
mov rcx, rax
mov rax, [rbp+var_E8]
cmp rax, rcx
jz short loc_26FF0
jmp short $+2
loc_26FCB:
mov rdi, [rbp+var_20]
add rdi, 70h ; 'p'
lea rsi, aInvalidBlockNu; "invalid block number!"
call c4_state_add_error
mov rax, [rbp+var_20]
mov byte ptr [rax+68h], 0
mov [rbp+var_1], 0
jmp loc_2709E
loc_26FF0:
mov rax, [rbp+var_20]
add rax, 8
lea rdi, [rbp+var_E0]
mov esi, 1
mov rcx, [rax]
mov [rsp+100h+var_100], rcx
mov rcx, [rax+8]
mov [rsp+100h+var_F8], rcx
mov rax, [rax+10h]
mov [rsp+100h+var_F0], rax
call json_at
lea rax, [rbp+var_E0]
mov rcx, [rax]
mov [rsp+100h+var_100], rcx
mov rcx, [rax+8]
mov [rsp+100h+var_F8], rcx
mov rax, [rax+10h]
mov [rsp+100h+var_F0], rax
call json_as_uint64
cmp eax, [rbp+var_24]
jz short loc_27070
jmp short $+2
loc_2704E:
mov rdi, [rbp+var_20]
add rdi, 70h ; 'p'
lea rsi, aInvalidTxIndex; "invalid tx index!"
call c4_state_add_error
mov rax, [rbp+var_20]
mov byte ptr [rax+68h], 0
mov [rbp+var_1], 0
jmp short loc_2709E
loc_27070:
jmp short loc_27096
loc_27072:
jmp short $+2
loc_27074:
mov rdi, [rbp+var_20]
add rdi, 70h ; 'p'
lea rsi, aInvalidMethodF; "invalid method for tx proof!"
call c4_state_add_error
mov rax, [rbp+var_20]
mov byte ptr [rax+68h], 0
mov [rbp+var_1], 0
jmp short loc_2709E
loc_27096:
jmp short $+2
loc_27098:
jmp short $+2
loc_2709A:
mov [rbp+var_1], 1
loc_2709E:
mov al, [rbp+var_1]
and al, 1
add rsp, 100h
pop rbp
retn
|
char verify_args(_QWORD *a1, unsigned int a2, long long a3, int a4, long long a5)
{
int v5; // edx
int v6; // r8d
int v7; // r9d
int v8; // edx
int v9; // r8d
int v10; // r9d
long long v11; // rdx
int v12; // edx
int v13; // r8d
int v14; // r9d
int v15; // edx
int v16; // r8d
int v17; // r9d
int v18; // eax
int v19; // edx
int v20; // r8d
int v21; // r9d
int v22; // edx
int v23; // r8d
int v24; // r9d
int v25; // edx
int v26; // r8d
int v27; // r9d
int v28; // edx
int v29; // r8d
int v30; // r9d
int v31; // eax
long long v33; // [rsp+18h] [rbp-E8h]
long long v34; // [rsp+20h] [rbp-E0h] BYREF
long long v35; // [rsp+28h] [rbp-D8h]
long long v36; // [rsp+30h] [rbp-D0h]
long long v37; // [rsp+38h] [rbp-C8h] BYREF
long long v38; // [rsp+40h] [rbp-C0h]
long long v39; // [rsp+48h] [rbp-B8h]
long long v40; // [rsp+50h] [rbp-B0h]
char v41; // [rsp+58h] [rbp-A8h] BYREF
int v42; // [rsp+60h] [rbp-A0h]
long long v43; // [rsp+70h] [rbp-90h] BYREF
long long v44; // [rsp+78h] [rbp-88h]
long long v45; // [rsp+80h] [rbp-80h]
int v46; // [rsp+88h] [rbp-78h]
long long v47; // [rsp+90h] [rbp-70h]
int v48; // [rsp+98h] [rbp-68h] BYREF
_BYTE *v49; // [rsp+A0h] [rbp-60h]
int v50; // [rsp+A8h] [rbp-58h]
_BYTE v51[32]; // [rsp+B0h] [rbp-50h] BYREF
long long v52; // [rsp+D0h] [rbp-30h]
int v53; // [rsp+DCh] [rbp-24h]
_QWORD *v54; // [rsp+E0h] [rbp-20h]
unsigned int v55; // [rsp+E8h] [rbp-18h]
long long v56; // [rsp+F0h] [rbp-10h]
v55 = a2;
v56 = a3;
v54 = a1;
v53 = a4;
v52 = a5;
if ( *a1 )
{
if ( !(unsigned int)strcmp(*v54, "eth_getTransactionByHash") )
{
if ( (c4_tx_verify_tx_hash(v54, v55, v56) & 1) == 0 )
{
c4_state_add_error(v54 + 14, "invalid tx hash!");
*((_BYTE *)v54 + 104) = 0;
return 0;
}
}
else if ( !(unsigned int)strcmp(*v54, "eth_getTransactionByBlockHashAndIndex") )
{
memset(v51, 0LL, sizeof(v51));
v48 = 0;
v49 = v51;
v50 = -32;
json_at((unsigned int)&v43, 0, v5, v54[2], v6, v7, v54[1], v54[2], v54[3]);
v46 = json_as_bytes((unsigned int)&v48, 0, v8, v44, v9, v10, v43, v44, v45);
v47 = v11;
if ( v46 != 32 || (unsigned int)memcmp(v47, v52, 32LL) )
{
c4_state_add_error(v54 + 14, "invalid block hash!");
*((_BYTE *)v54 + 104) = 0;
return 0;
}
json_at((unsigned int)&v41, 1, v12, v54[2], v13, v14, v54[1], v54[2], v54[3]);
v18 = json_as_uint64((unsigned int)&v41, 1, v15, v42, v16, v17, v41);
if ( v18 != v53 )
{
c4_state_add_error(v54 + 14, "invalid tx index!");
*((_BYTE *)v54 + 104) = 0;
return 0;
}
}
else
{
if ( (unsigned int)strcmp(*v54, "eth_getTransactionByBlockNumberAndIndex") )
{
c4_state_add_error(v54 + 14, "invalid method for tx proof!");
*((_BYTE *)v54 + 104) = 0;
return 0;
}
json_at((unsigned int)&v37, 0, v19, v54[2], v20, v21, v54[1], v54[2], v54[3]);
v40 = json_as_uint64((unsigned int)&v37, 0, v22, v38, v23, v24, v37, v38, v39);
if ( !v40 || (v33 = v40, v33 != ssz_get_uint64(v54 + 4, "blockNumber")) )
{
c4_state_add_error(v54 + 14, "invalid block number!");
*((_BYTE *)v54 + 104) = 0;
return 0;
}
json_at((unsigned int)&v34, 1, v25, v54[2], v26, v27, v54[1], v54[2], v54[3]);
v31 = json_as_uint64((unsigned int)&v34, 1, v28, v35, v29, v30, v34, v35, v36);
if ( v31 != v53 )
{
c4_state_add_error(v54 + 14, "invalid tx index!");
*((_BYTE *)v54 + 104) = 0;
return 0;
}
}
return 1;
}
return 1;
}
|
verify_args:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x100
MOV dword ptr [RBP + -0x18],ESI
MOV qword ptr [RBP + -0x10],RDX
MOV qword ptr [RBP + -0x20],RDI
MOV dword ptr [RBP + -0x24],ECX
MOV qword ptr [RBP + -0x30],R8
MOV RAX,qword ptr [RBP + -0x20]
CMP qword ptr [RAX],0x0
JNZ 0x00126d00
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0012709e
LAB_00126d00:
MOV RAX,qword ptr [RBP + -0x20]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x1da2eb]
CALL 0x00123320
CMP EAX,0x0
JNZ 0x00126d58
MOV RDI,qword ptr [RBP + -0x20]
MOV ESI,dword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x10]
CALL 0x0012f310
TEST AL,0x1
JNZ 0x00126d53
JMP 0x00126d2e
LAB_00126d2e:
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x70
LEA RSI,[0x1dae5a]
CALL 0x001a6370
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x68],0x0
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0012709e
LAB_00126d53:
JMP 0x0012709a
LAB_00126d58:
MOV RAX,qword ptr [RBP + -0x20]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x1da304]
CALL 0x00123320
CMP EAX,0x0
JNZ 0x00126eee
LEA RDI,[RBP + -0x50]
XOR ESI,ESI
MOV EDX,0x20
CALL 0x00123140
MOV dword ptr [RBP + -0x68],0x0
LEA RAX,[RBP + -0x50]
MOV qword ptr [RBP + -0x60],RAX
MOV dword ptr [RBP + -0x58],0xffffffe0
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x8
LEA RDI,[RBP + -0x90]
XOR ECX,ECX
MOV ESI,ECX
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x001a44c0
LEA RAX,[RBP + -0x90]
LEA RDI,[RBP + -0x68]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x001a48c0
MOV dword ptr [RBP + -0x78],EAX
MOV qword ptr [RBP + -0x70],RDX
CMP dword ptr [RBP + -0x78],0x20
JZ 0x00126e28
JMP 0x00126e03
LAB_00126e03:
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x70
LEA RSI,[0x1dae6b]
CALL 0x001a6370
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x68],0x0
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0012709e
LAB_00126e28:
MOV RDI,qword ptr [RBP + -0x70]
MOV RSI,qword ptr [RBP + -0x30]
MOV EDX,0x20
CALL 0x00123100
CMP EAX,0x0
JZ 0x00126e66
JMP 0x00126e41
LAB_00126e41:
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x70
LEA RSI,[0x1dae6b]
CALL 0x001a6370
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x68],0x0
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0012709e
LAB_00126e66:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x8
LEA RDI,[RBP + -0xa8]
MOV ESI,0x1
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x001a44c0
LEA RAX,[RBP + -0xa8]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x001a4780
CMP EAX,dword ptr [RBP + -0x24]
JZ 0x00126ee9
JMP 0x00126ec4
LAB_00126ec4:
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x70
LEA RSI,[0x1dae7f]
CALL 0x001a6370
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x68],0x0
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0012709e
LAB_00126ee9:
JMP 0x00127098
LAB_00126eee:
MOV RAX,qword ptr [RBP + -0x20]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x1da32a]
CALL 0x00123320
CMP EAX,0x0
JNZ 0x00127072
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x8
LEA RDI,[RBP + -0xc8]
XOR ECX,ECX
MOV ESI,ECX
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x001a44c0
LEA RAX,[RBP + -0xc8]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x001a4780
MOV qword ptr [RBP + -0xb0],RAX
CMP qword ptr [RBP + -0xb0],0x0
JNZ 0x00126f98
JMP 0x00126f73
LAB_00126f73:
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x70
LEA RSI,[0x1dae91]
CALL 0x001a6370
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x68],0x0
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0012709e
LAB_00126f98:
MOV RAX,qword ptr [RBP + -0xb0]
MOV qword ptr [RBP + -0xe8],RAX
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x20
LEA RSI,[0x1da42a]
CALL 0x00127460
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0xe8]
CMP RAX,RCX
JZ 0x00126ff0
JMP 0x00126fcb
LAB_00126fcb:
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x70
LEA RSI,[0x1dae91]
CALL 0x001a6370
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x68],0x0
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0012709e
LAB_00126ff0:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x8
LEA RDI,[RBP + -0xe0]
MOV ESI,0x1
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x001a44c0
LEA RAX,[RBP + -0xe0]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x001a4780
CMP EAX,dword ptr [RBP + -0x24]
JZ 0x00127070
JMP 0x0012704e
LAB_0012704e:
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x70
LEA RSI,[0x1dae7f]
CALL 0x001a6370
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x68],0x0
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0012709e
LAB_00127070:
JMP 0x00127096
LAB_00127072:
JMP 0x00127074
LAB_00127074:
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x70
LEA RSI,[0x1daea7]
CALL 0x001a6370
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x68],0x0
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0012709e
LAB_00127096:
JMP 0x00127098
LAB_00127098:
JMP 0x0012709a
LAB_0012709a:
MOV byte ptr [RBP + -0x1],0x1
LAB_0012709e:
MOV AL,byte ptr [RBP + -0x1]
AND AL,0x1
ADD RSP,0x100
POP RBP
RET
|
int1
verify_args(long *param_1,int4 param_2,int8 param_3,int param_4,void *param_5)
{
int iVar1;
ulong uVar2;
long lVar3;
long lVar4;
void *__s1;
int1 local_e8 [24];
int1 local_d0 [24];
long local_b8;
int1 local_b0 [24];
int1 local_98 [24];
int local_80;
void *local_78;
int4 local_70 [2];
int1 *local_68;
int4 local_60;
int1 local_58 [32];
void *local_38;
int local_2c;
long *local_28;
int4 local_20;
int8 local_18;
if (*param_1 == 0) {
return 1;
}
local_38 = param_5;
local_2c = param_4;
local_28 = param_1;
local_20 = param_2;
local_18 = param_3;
iVar1 = strcmp((char *)*param_1,"eth_getTransactionByHash");
if (iVar1 == 0) {
uVar2 = c4_tx_verify_tx_hash(local_28,local_20,local_18);
if ((uVar2 & 1) == 0) {
c4_state_add_error(local_28 + 0xe,"invalid tx hash!");
*(int1 *)(local_28 + 0xd) = 0;
return 0;
}
}
else {
iVar1 = strcmp((char *)*local_28,"eth_getTransactionByBlockHashAndIndex");
if (iVar1 == 0) {
memset(local_58,0,0x20);
local_70[0] = 0;
local_68 = local_58;
local_60 = 0xffffffe0;
json_at(local_98,0);
local_80 = json_as_bytes(local_70);
local_78 = __s1;
if (local_80 != 0x20) {
c4_state_add_error(local_28 + 0xe,"invalid block hash!");
*(int1 *)(local_28 + 0xd) = 0;
return 0;
}
iVar1 = memcmp(__s1,local_38,0x20);
if (iVar1 != 0) {
c4_state_add_error(local_28 + 0xe,"invalid block hash!");
*(int1 *)(local_28 + 0xd) = 0;
return 0;
}
json_at(local_b0,1);
iVar1 = json_as_uint64();
if (iVar1 != local_2c) {
c4_state_add_error(local_28 + 0xe,"invalid tx index!");
*(int1 *)(local_28 + 0xd) = 0;
return 0;
}
}
else {
iVar1 = strcmp((char *)*local_28,"eth_getTransactionByBlockNumberAndIndex");
if (iVar1 != 0) {
c4_state_add_error(local_28 + 0xe,"invalid method for tx proof!");
*(int1 *)(local_28 + 0xd) = 0;
return 0;
}
json_at(local_d0,0);
lVar3 = json_as_uint64();
local_b8 = lVar3;
if (lVar3 == 0) {
c4_state_add_error(local_28 + 0xe,"invalid block number!");
*(int1 *)(local_28 + 0xd) = 0;
return 0;
}
lVar4 = ssz_get_uint64(local_28 + 4,"blockNumber");
if (lVar3 != lVar4) {
c4_state_add_error(local_28 + 0xe,"invalid block number!");
*(int1 *)(local_28 + 0xd) = 0;
return 0;
}
json_at(local_e8,1);
iVar1 = json_as_uint64();
if (iVar1 != local_2c) {
c4_state_add_error(local_28 + 0xe,"invalid tx index!");
*(int1 *)(local_28 + 0xd) = 0;
return 0;
}
}
}
return 1;
}
|
|
16,215
|
verify_args
|
corpus-core[P]colibri-stateless/src/chains/eth/verifier/verify_tx_proof.c
|
static bool verify_args(verify_ctx_t* ctx, bytes_t raw, uint32_t tx_index, bytes32_t block_hash) {
if (ctx->method == NULL) return true;
if (strcmp(ctx->method, "eth_getTransactionByHash") == 0) {
if (!c4_tx_verify_tx_hash(ctx, raw)) RETURN_VERIFY_ERROR(ctx, "invalid tx hash!");
}
else if (strcmp(ctx->method, "eth_getTransactionByBlockHashAndIndex") == 0) {
bytes32_t tmp = {0};
buffer_t buf = stack_buffer(tmp);
bytes_t req_block_hash = json_as_bytes(json_at(ctx->args, 0), &buf);
if (req_block_hash.len != 32) RETURN_VERIFY_ERROR(ctx, "invalid block hash!");
if (memcmp(req_block_hash.data, block_hash, 32) != 0) RETURN_VERIFY_ERROR(ctx, "invalid block hash!");
if (json_as_uint32(json_at(ctx->args, 1)) != tx_index) RETURN_VERIFY_ERROR(ctx, "invalid tx index!");
}
else if (strcmp(ctx->method, "eth_getTransactionByBlockNumberAndIndex") == 0) {
uint64_t req_block_num = json_as_uint64(json_at(ctx->args, 0));
if (!req_block_num) RETURN_VERIFY_ERROR(ctx, "invalid block number!");
if (req_block_num != ssz_get_uint64(&ctx->proof, "blockNumber")) RETURN_VERIFY_ERROR(ctx, "invalid block number!");
if (json_as_uint32(json_at(ctx->args, 1)) != tx_index) RETURN_VERIFY_ERROR(ctx, "invalid tx index!");
}
else
RETURN_VERIFY_ERROR(ctx, "invalid method for tx proof!");
return true;
}
|
O3
|
c
|
verify_args:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq (%rdi), %r12
movb $0x1, %bpl
testq %r12, %r12
je 0x24c1d
movq %r8, %r15
movq %rdx, %r13
movl %esi, %r14d
movq %rdi, %rbx
movl %ecx, 0x1c(%rsp)
leaq 0x5a9af(%rip), %rsi # 0x7f397
movq %r12, %rdi
callq 0x212e0
testl %eax, %eax
je 0x24a2e
leaq 0x5a9b5(%rip), %rsi # 0x7f3b0
movq %r12, %rdi
callq 0x212e0
testl %eax, %eax
je 0x24a54
leaq 0x5a9c8(%rip), %rsi # 0x7f3d6
movq %r12, %rdi
callq 0x212e0
testl %eax, %eax
je 0x24b4d
leaq 0x70(%rbx), %rdi
leaq 0x5b55a(%rip), %rsi # 0x7ff83
jmp 0x24c12
movq %rbx, %rdi
movl %r14d, %esi
movq %r13, %rdx
callq 0x29c9f
testb %al, %al
jne 0x24c1d
leaq 0x70(%rbx), %rdi
leaq 0x5b4e7(%rip), %rsi # 0x7ff36
jmp 0x24c12
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rax
movaps %xmm0, 0x10(%rax)
movaps %xmm0, (%rax)
leaq 0xa0(%rsp), %r14
movl $0x0, (%r14)
movq %rax, 0x8(%r14)
movl $0xffffffe0, 0x10(%r14) # imm = 0xFFFFFFE0
movq 0x18(%rbx), %rax
movq %rax, 0x10(%rsp)
movups 0x8(%rbx), %xmm0
movups %xmm0, (%rsp)
leaq 0x88(%rsp), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x557fb
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
movdqu (%r12), %xmm0
movdqu %xmm0, (%rsp)
movq %r14, %rdi
callq 0x55a84
leaq 0x5b482(%rip), %rsi # 0x7ff47
cmpl $0x20, %eax
jne 0x24b44
movdqu (%rdx), %xmm0
movdqu 0x10(%rdx), %xmm1
movdqu (%r15), %xmm2
pcmpeqb %xmm0, %xmm2
movdqu 0x10(%r15), %xmm0
pcmpeqb %xmm1, %xmm0
pand %xmm2, %xmm0
pmovmskb %xmm0, %eax
cmpl $0xffff, %eax # imm = 0xFFFF
jne 0x24b44
leaq 0x8(%rbx), %rax
movq 0x10(%rax), %rcx
movq %rcx, 0x10(%rsp)
movups (%rax), %xmm0
movups %xmm0, (%rsp)
leaq 0x70(%rsp), %r14
movl $0x1, %esi
movq %r14, %rdi
callq 0x557fb
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movdqu (%r14), %xmm0
movdqu %xmm0, (%rsp)
callq 0x559b9
cmpl 0x1c(%rsp), %eax
je 0x24c1d
leaq 0x5b417(%rip), %rsi # 0x7ff5b
leaq 0x70(%rbx), %rdi
jmp 0x24c12
movq 0x18(%rbx), %rax
movq %rax, 0x10(%rsp)
movups 0x8(%rbx), %xmm0
movups %xmm0, (%rsp)
leaq 0x58(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x557fb
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movdqu (%r14), %xmm0
movdqu %xmm0, (%rsp)
callq 0x559b9
testq %rax, %rax
je 0x24c07
movq %rax, %r15
leaq 0x20(%rbx), %rsi
leaq 0x5a93e(%rip), %rdx # 0x7f4d6
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x53211
movl (%r14), %edi
movq 0x8(%r14), %rsi
callq 0x51c2a
cmpq %rax, %r15
jne 0x24c07
leaq 0x8(%rbx), %rax
movq 0x10(%rax), %rcx
movq %rcx, 0x10(%rsp)
movups (%rax), %xmm0
movups %xmm0, (%rsp)
leaq 0x40(%rsp), %r14
movl $0x1, %esi
movq %r14, %rdi
callq 0x557fb
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movdqu (%r14), %xmm0
movdqu %xmm0, (%rsp)
callq 0x559b9
cmpl 0x1c(%rsp), %eax
je 0x24c1d
leaq 0x70(%rbx), %rdi
leaq 0x5b356(%rip), %rsi # 0x7ff5b
jmp 0x24c12
leaq 0x70(%rbx), %rdi
leaq 0x5b35b(%rip), %rsi # 0x7ff6d
callq 0x56981
movb $0x0, 0x68(%rbx)
xorl %ebp, %ebp
movl %ebp, %eax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
verify_args:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0B8h
mov r12, [rdi]
mov bpl, 1
test r12, r12
jz loc_24C1D
mov r15, r8
mov r13, rdx
mov r14d, esi
mov rbx, rdi
mov [rsp+0E8h+var_CC], ecx
lea rsi, aEthGettransact_0; "eth_getTransactionByHash"
mov rdi, r12
call _strcmp
test eax, eax
jz short loc_24A2E
lea rsi, aEthGettransact_1; "eth_getTransactionByBlockHashAndIndex"
mov rdi, r12
call _strcmp
test eax, eax
jz short loc_24A54
lea rsi, aEthGettransact_2; "eth_getTransactionByBlockNumberAndIndex"
mov rdi, r12
call _strcmp
test eax, eax
jz loc_24B4D
lea rdi, [rbx+70h]
lea rsi, aInvalidMethodF; "invalid method for tx proof!"
jmp loc_24C12
loc_24A2E:
mov rdi, rbx
mov esi, r14d
mov rdx, r13
call c4_tx_verify_tx_hash
test al, al
jnz loc_24C1D
lea rdi, [rbx+70h]
lea rsi, aInvalidTxHash; "invalid tx hash!"
jmp loc_24C12
loc_24A54:
xorps xmm0, xmm0
lea rax, [rsp+0E8h+var_C8]
movaps xmmword ptr [rax+10h], xmm0
movaps xmmword ptr [rax], xmm0
lea r14, [rsp+0E8h+var_48]
mov dword ptr [r14], 0
mov [r14+8], rax
mov dword ptr [r14+10h], 0FFFFFFE0h
mov rax, [rbx+18h]
mov [rsp+0E8h+var_D8], rax
movups xmm0, xmmword ptr [rbx+8]
movups [rsp+0E8h+var_E8], xmm0
lea r12, [rsp+0E8h+var_60]
mov rdi, r12
xor esi, esi
call json_at
mov rax, [r12+10h]
mov [rsp+0E8h+var_D8], rax
movdqu xmm0, xmmword ptr [r12]
movdqu [rsp+0E8h+var_E8], xmm0
mov rdi, r14
call json_as_bytes
lea rsi, aInvalidBlockHa; "invalid block hash!"
cmp eax, 20h ; ' '
jnz short loc_24B44
movdqu xmm0, xmmword ptr [rdx]
movdqu xmm1, xmmword ptr [rdx+10h]
movdqu xmm2, xmmword ptr [r15]
pcmpeqb xmm2, xmm0
movdqu xmm0, xmmword ptr [r15+10h]
pcmpeqb xmm0, xmm1
pand xmm0, xmm2
pmovmskb eax, xmm0
cmp eax, 0FFFFh
jnz short loc_24B44
lea rax, [rbx+8]
mov rcx, [rax+10h]
mov [rsp+0E8h+var_D8], rcx
movups xmm0, xmmword ptr [rax]
movups [rsp+0E8h+var_E8], xmm0
lea r14, [rsp+0E8h+var_78]
mov esi, 1
mov rdi, r14
call json_at
mov rax, [r14+10h]
mov [rsp+0E8h+var_D8], rax
movdqu xmm0, xmmword ptr [r14]
movdqu [rsp+0E8h+var_E8], xmm0
call json_as_uint64
cmp eax, [rsp+0E8h+var_CC]
jz loc_24C1D
lea rsi, aInvalidTxIndex; "invalid tx index!"
loc_24B44:
lea rdi, [rbx+70h]
jmp loc_24C12
loc_24B4D:
mov rax, [rbx+18h]
mov [rsp+0E8h+var_D8], rax
movups xmm0, xmmword ptr [rbx+8]
movups [rsp+0E8h+var_E8], xmm0
lea r14, [rsp+0E8h+var_90]
mov rdi, r14
xor esi, esi
call json_at
mov rax, [r14+10h]
mov [rsp+0E8h+var_D8], rax
movdqu xmm0, xmmword ptr [r14]
movdqu [rsp+0E8h+var_E8], xmm0
call json_as_uint64
test rax, rax
jz short loc_24C07
mov r15, rax
lea rsi, [rbx+20h]
lea rdx, aEthBlocknumber+4; "blockNumber"
lea r14, [rsp+0E8h+var_C8]
mov rdi, r14
call ssz_get
mov edi, [r14]
mov rsi, [r14+8]
call bytes_as_le
cmp r15, rax
jnz short loc_24C07
lea rax, [rbx+8]
mov rcx, [rax+10h]
mov [rsp+0E8h+var_D8], rcx
movups xmm0, xmmword ptr [rax]
movups [rsp+0E8h+var_E8], xmm0
lea r14, [rsp+0E8h+var_A8]
mov esi, 1
mov rdi, r14
call json_at
mov rax, [r14+10h]
mov [rsp+0E8h+var_D8], rax
movdqu xmm0, xmmword ptr [r14]
movdqu [rsp+0E8h+var_E8], xmm0
call json_as_uint64
cmp eax, [rsp+0E8h+var_CC]
jz short loc_24C1D
lea rdi, [rbx+70h]
lea rsi, aInvalidTxIndex; "invalid tx index!"
jmp short loc_24C12
loc_24C07:
lea rdi, [rbx+70h]
lea rsi, aInvalidBlockNu; "invalid block number!"
loc_24C12:
call c4_state_add_error
mov byte ptr [rbx+68h], 0
xor ebp, ebp
loc_24C1D:
mov eax, ebp
add rsp, 0B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long verify_args(long long *a1, unsigned int a2, long long a3, int a4, const __m128i *a5)
{
unsigned int v5; // ebp
long long v6; // r12
int v10; // edx
int v11; // ecx
int v12; // r8d
int v13; // r9d
int v14; // edx
int v15; // ecx
int v16; // r8d
int v17; // r9d
long long *v18; // rdi
const char *v19; // rsi
int v20; // edx
int v21; // ecx
int v22; // r8d
int v23; // r9d
const __m128i *v24; // rdx
int v25; // r8d
int v26; // r9d
int v27; // edx
int v28; // ecx
int v29; // r8d
int v30; // r9d
int v31; // edx
int v32; // ecx
int v33; // r8d
int v34; // r9d
long long v35; // rax
long long v36; // r15
int v37; // edx
int v38; // r8d
int v39; // r9d
int v40; // edx
int v41; // ecx
int v42; // r8d
int v43; // r9d
_QWORD v46[4]; // [rsp+20h] [rbp-C8h] BYREF
__m128i v47; // [rsp+40h] [rbp-A8h] BYREF
long long v48; // [rsp+50h] [rbp-98h]
__m128i v49; // [rsp+58h] [rbp-90h] BYREF
long long v50; // [rsp+68h] [rbp-80h]
__m128i v51; // [rsp+70h] [rbp-78h] BYREF
long long v52; // [rsp+80h] [rbp-68h]
__m128i v53; // [rsp+88h] [rbp-60h] BYREF
long long v54; // [rsp+98h] [rbp-50h]
int v55; // [rsp+A0h] [rbp-48h] BYREF
_QWORD *v56; // [rsp+A8h] [rbp-40h]
int v57; // [rsp+B0h] [rbp-38h]
v6 = *a1;
LOBYTE(v5) = 1;
if ( *a1 )
{
if ( !(unsigned int)strcmp(v6, "eth_getTransactionByHash") )
{
if ( !(unsigned __int8)c4_tx_verify_tx_hash(a1, a2, a3) )
{
v18 = a1 + 14;
v19 = "invalid tx hash!";
goto LABEL_18;
}
}
else
{
if ( !(unsigned int)strcmp(v6, "eth_getTransactionByBlockHashAndIndex") )
{
memset(v46, 0, sizeof(v46));
v55 = 0;
v56 = v46;
v57 = -32;
json_at((unsigned int)&v53, 0, v10, v11, v12, v13, a1[1], a1[2], a1[3]);
v19 = "invalid block hash!";
if ( (unsigned int)json_as_bytes((unsigned int)&v55, 0, v20, v21, v22, v23, _mm_loadu_si128(&v53), v54) == 32
&& _mm_movemask_epi8(
_mm_and_si128(
_mm_cmpeq_epi8(_mm_loadu_si128(a5 + 1), _mm_loadu_si128(v24 + 1)),
_mm_cmpeq_epi8(_mm_loadu_si128(a5), _mm_loadu_si128(v24)))) == 0xFFFF )
{
json_at((unsigned int)&v51, 1, (_DWORD)v24, a1[3], v25, v26, a1[1], a1[2], a1[3]);
if ( (unsigned int)json_as_uint64((unsigned int)&v51, 1, v27, v28, v29, v30, _mm_loadu_si128(&v51), v52) == a4 )
return v5;
v19 = "invalid tx index!";
}
v18 = a1 + 14;
goto LABEL_18;
}
if ( (unsigned int)strcmp(v6, "eth_getTransactionByBlockNumberAndIndex") )
{
v18 = a1 + 14;
v19 = "invalid method for tx proof!";
LABEL_18:
c4_state_add_error(v18, v19);
*((_BYTE *)a1 + 104) = 0;
return 0;
}
json_at((unsigned int)&v49, 0, v14, v15, v16, v17, a1[1], a1[2], a1[3]);
v35 = json_as_uint64((unsigned int)&v49, 0, v31, v32, v33, v34, _mm_loadu_si128(&v49), v50);
if ( !v35 || (v36 = v35, ssz_get(v46, a1 + 4), v36 != bytes_as_le(LODWORD(v46[0]), v46[1])) )
{
v18 = a1 + 14;
v19 = "invalid block number!";
goto LABEL_18;
}
json_at((unsigned int)&v47, 1, v37, a1[3], v38, v39, a1[1], a1[2], a1[3]);
if ( (unsigned int)json_as_uint64((unsigned int)&v47, 1, v40, v41, v42, v43, _mm_loadu_si128(&v47), v48) != a4 )
{
v18 = a1 + 14;
v19 = "invalid tx index!";
goto LABEL_18;
}
}
}
return v5;
}
|
verify_args:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xb8
MOV R12,qword ptr [RDI]
MOV BPL,0x1
TEST R12,R12
JZ 0x00124c1d
MOV R15,R8
MOV R13,RDX
MOV R14D,ESI
MOV RBX,RDI
MOV dword ptr [RSP + 0x1c],ECX
LEA RSI,[0x17f397]
MOV RDI,R12
CALL 0x001212e0
TEST EAX,EAX
JZ 0x00124a2e
LEA RSI,[0x17f3b0]
MOV RDI,R12
CALL 0x001212e0
TEST EAX,EAX
JZ 0x00124a54
LEA RSI,[0x17f3d6]
MOV RDI,R12
CALL 0x001212e0
TEST EAX,EAX
JZ 0x00124b4d
LEA RDI,[RBX + 0x70]
LEA RSI,[0x17ff83]
JMP 0x00124c12
LAB_00124a2e:
MOV RDI,RBX
MOV ESI,R14D
MOV RDX,R13
CALL 0x00129c9f
TEST AL,AL
JNZ 0x00124c1d
LEA RDI,[RBX + 0x70]
LEA RSI,[0x17ff36]
JMP 0x00124c12
LAB_00124a54:
XORPS XMM0,XMM0
LEA RAX,[RSP + 0x20]
MOVAPS xmmword ptr [RAX + 0x10],XMM0
MOVAPS xmmword ptr [RAX],XMM0
LEA R14,[RSP + 0xa0]
MOV dword ptr [R14],0x0
MOV qword ptr [R14 + 0x8],RAX
MOV dword ptr [R14 + 0x10],0xffffffe0
MOV RAX,qword ptr [RBX + 0x18]
MOV qword ptr [RSP + 0x10],RAX
MOVUPS XMM0,xmmword ptr [RBX + 0x8]
MOVUPS xmmword ptr [RSP],XMM0
LEA R12,[RSP + 0x88]
MOV RDI,R12
XOR ESI,ESI
CALL 0x001557fb
MOV RAX,qword ptr [R12 + 0x10]
MOV qword ptr [RSP + 0x10],RAX
MOVDQU XMM0,xmmword ptr [R12]
MOVDQU xmmword ptr [RSP],XMM0
MOV RDI,R14
CALL 0x00155a84
LEA RSI,[0x17ff47]
CMP EAX,0x20
JNZ 0x00124b44
MOVDQU XMM0,xmmword ptr [RDX]
MOVDQU XMM1,xmmword ptr [RDX + 0x10]
MOVDQU XMM2,xmmword ptr [R15]
PCMPEQB XMM2,XMM0
MOVDQU XMM0,xmmword ptr [R15 + 0x10]
PCMPEQB XMM0,XMM1
PAND XMM0,XMM2
PMOVMSKB EAX,XMM0
CMP EAX,0xffff
JNZ 0x00124b44
LEA RAX,[RBX + 0x8]
MOV RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RCX
MOVUPS XMM0,xmmword ptr [RAX]
MOVUPS xmmword ptr [RSP],XMM0
LEA R14,[RSP + 0x70]
MOV ESI,0x1
MOV RDI,R14
CALL 0x001557fb
MOV RAX,qword ptr [R14 + 0x10]
MOV qword ptr [RSP + 0x10],RAX
MOVDQU XMM0,xmmword ptr [R14]
MOVDQU xmmword ptr [RSP],XMM0
CALL 0x001559b9
CMP EAX,dword ptr [RSP + 0x1c]
JZ 0x00124c1d
LEA RSI,[0x17ff5b]
LAB_00124b44:
LEA RDI,[RBX + 0x70]
JMP 0x00124c12
LAB_00124b4d:
MOV RAX,qword ptr [RBX + 0x18]
MOV qword ptr [RSP + 0x10],RAX
MOVUPS XMM0,xmmword ptr [RBX + 0x8]
MOVUPS xmmword ptr [RSP],XMM0
LEA R14,[RSP + 0x58]
MOV RDI,R14
XOR ESI,ESI
CALL 0x001557fb
MOV RAX,qword ptr [R14 + 0x10]
MOV qword ptr [RSP + 0x10],RAX
MOVDQU XMM0,xmmword ptr [R14]
MOVDQU xmmword ptr [RSP],XMM0
CALL 0x001559b9
TEST RAX,RAX
JZ 0x00124c07
MOV R15,RAX
LEA RSI,[RBX + 0x20]
LEA RDX,[0x17f4d6]
LEA R14,[RSP + 0x20]
MOV RDI,R14
CALL 0x00153211
MOV EDI,dword ptr [R14]
MOV RSI,qword ptr [R14 + 0x8]
CALL 0x00151c2a
CMP R15,RAX
JNZ 0x00124c07
LEA RAX,[RBX + 0x8]
MOV RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RCX
MOVUPS XMM0,xmmword ptr [RAX]
MOVUPS xmmword ptr [RSP],XMM0
LEA R14,[RSP + 0x40]
MOV ESI,0x1
MOV RDI,R14
CALL 0x001557fb
MOV RAX,qword ptr [R14 + 0x10]
MOV qword ptr [RSP + 0x10],RAX
MOVDQU XMM0,xmmword ptr [R14]
MOVDQU xmmword ptr [RSP],XMM0
CALL 0x001559b9
CMP EAX,dword ptr [RSP + 0x1c]
JZ 0x00124c1d
LEA RDI,[RBX + 0x70]
LEA RSI,[0x17ff5b]
JMP 0x00124c12
LAB_00124c07:
LEA RDI,[RBX + 0x70]
LEA RSI,[0x17ff6d]
LAB_00124c12:
CALL 0x00156981
MOV byte ptr [RBX + 0x68],0x0
XOR EBP,EBP
LAB_00124c1d:
MOV EAX,EBP
ADD RSP,0xb8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong verify_args(int8 *param_1,int4 param_2,int8 param_3,int param_4,
char *param_5)
{
int1 auVar1 [16];
char cVar2;
int iVar3;
long lVar4;
long lVar5;
char *extraout_RDX;
int8 unaff_RBP;
ulong uVar6;
char *pcVar7;
int1 auVar8 [16];
int1 auVar9 [16];
ulong local_c8;
int8 uStack_c0;
int8 local_b8;
int8 uStack_b0;
int1 local_a8 [24];
int1 local_90 [24];
int1 local_78 [24];
int1 local_60 [24];
int4 local_48 [2];
ulong *local_40;
int4 local_38;
pcVar7 = (char *)*param_1;
uVar6 = CONCAT71((int7)((ulong)unaff_RBP >> 8),1);
if (pcVar7 == (char *)0x0) goto LAB_00124c1d;
iVar3 = strcmp(pcVar7,"eth_getTransactionByHash");
if (iVar3 == 0) {
cVar2 = c4_tx_verify_tx_hash(param_1,param_2,param_3);
if (cVar2 != '\0') goto LAB_00124c1d;
pcVar7 = "invalid tx hash!";
}
else {
iVar3 = strcmp(pcVar7,"eth_getTransactionByBlockHashAndIndex");
if (iVar3 == 0) {
local_40 = &local_c8;
local_b8 = 0;
uStack_b0 = 0;
local_c8 = 0;
uStack_c0 = 0;
local_48[0] = 0;
local_38 = 0xffffffe0;
json_at(local_60,0);
iVar3 = json_as_bytes(local_48);
pcVar7 = "invalid block hash!";
if (iVar3 == 0x20) {
auVar1 = *(int1 (*) [16])(extraout_RDX + 0x10);
auVar9[0] = -(*param_5 == *extraout_RDX);
auVar9[1] = -(param_5[1] == extraout_RDX[1]);
auVar9[2] = -(param_5[2] == extraout_RDX[2]);
auVar9[3] = -(param_5[3] == extraout_RDX[3]);
auVar9[4] = -(param_5[4] == extraout_RDX[4]);
auVar9[5] = -(param_5[5] == extraout_RDX[5]);
auVar9[6] = -(param_5[6] == extraout_RDX[6]);
auVar9[7] = -(param_5[7] == extraout_RDX[7]);
auVar9[8] = -(param_5[8] == extraout_RDX[8]);
auVar9[9] = -(param_5[9] == extraout_RDX[9]);
auVar9[10] = -(param_5[10] == extraout_RDX[10]);
auVar9[0xb] = -(param_5[0xb] == extraout_RDX[0xb]);
auVar9[0xc] = -(param_5[0xc] == extraout_RDX[0xc]);
auVar9[0xd] = -(param_5[0xd] == extraout_RDX[0xd]);
auVar9[0xe] = -(param_5[0xe] == extraout_RDX[0xe]);
auVar9[0xf] = -(param_5[0xf] == extraout_RDX[0xf]);
auVar8[0] = -(param_5[0x10] == auVar1[0]);
auVar8[1] = -(param_5[0x11] == auVar1[1]);
auVar8[2] = -(param_5[0x12] == auVar1[2]);
auVar8[3] = -(param_5[0x13] == auVar1[3]);
auVar8[4] = -(param_5[0x14] == auVar1[4]);
auVar8[5] = -(param_5[0x15] == auVar1[5]);
auVar8[6] = -(param_5[0x16] == auVar1[6]);
auVar8[7] = -(param_5[0x17] == auVar1[7]);
auVar8[8] = -(param_5[0x18] == auVar1[8]);
auVar8[9] = -(param_5[0x19] == auVar1[9]);
auVar8[10] = -(param_5[0x1a] == auVar1[10]);
auVar8[0xb] = -(param_5[0x1b] == auVar1[0xb]);
auVar8[0xc] = -(param_5[0x1c] == auVar1[0xc]);
auVar8[0xd] = -(param_5[0x1d] == auVar1[0xd]);
auVar8[0xe] = -(param_5[0x1e] == auVar1[0xe]);
auVar8[0xf] = -(param_5[0x1f] == auVar1[0xf]);
auVar8 = auVar8 & auVar9;
if ((ushort)((ushort)(SUB161(auVar8 >> 7,0) & 1) |
(ushort)(SUB161(auVar8 >> 0xf,0) & 1) << 1 |
(ushort)(SUB161(auVar8 >> 0x17,0) & 1) << 2 |
(ushort)(SUB161(auVar8 >> 0x1f,0) & 1) << 3 |
(ushort)(SUB161(auVar8 >> 0x27,0) & 1) << 4 |
(ushort)(SUB161(auVar8 >> 0x2f,0) & 1) << 5 |
(ushort)(SUB161(auVar8 >> 0x37,0) & 1) << 6 |
(ushort)(SUB161(auVar8 >> 0x3f,0) & 1) << 7 |
(ushort)(SUB161(auVar8 >> 0x47,0) & 1) << 8 |
(ushort)(SUB161(auVar8 >> 0x4f,0) & 1) << 9 |
(ushort)(SUB161(auVar8 >> 0x57,0) & 1) << 10 |
(ushort)(SUB161(auVar8 >> 0x5f,0) & 1) << 0xb |
(ushort)(SUB161(auVar8 >> 0x67,0) & 1) << 0xc |
(ushort)(SUB161(auVar8 >> 0x6f,0) & 1) << 0xd |
(ushort)(SUB161(auVar8 >> 0x77,0) & 1) << 0xe |
(ushort)(byte)(auVar8[0xf] >> 7) << 0xf) == 0xffff) {
json_at(local_78,1);
iVar3 = json_as_uint64();
if (iVar3 == param_4) goto LAB_00124c1d;
pcVar7 = "invalid tx index!";
}
}
}
else {
iVar3 = strcmp(pcVar7,"eth_getTransactionByBlockNumberAndIndex");
if (iVar3 == 0) {
json_at(local_90,0);
lVar4 = json_as_uint64();
if (lVar4 != 0) {
ssz_get(&local_c8,param_1 + 4,"blockNumber");
lVar5 = bytes_as_le(local_c8 & 0xffffffff,uStack_c0);
if (lVar4 == lVar5) {
json_at(local_a8,1);
iVar3 = json_as_uint64();
if (iVar3 == param_4) goto LAB_00124c1d;
pcVar7 = "invalid tx index!";
goto LAB_00124c12;
}
}
pcVar7 = "invalid block number!";
}
else {
pcVar7 = "invalid method for tx proof!";
}
}
}
LAB_00124c12:
c4_state_add_error(param_1 + 0xe,pcVar7);
*(int1 *)(param_1 + 0xd) = 0;
uVar6 = 0;
LAB_00124c1d:
return uVar6 & 0xffffffff;
}
|
|
16,216
|
mthd_my_send_cmd
|
eloqsql/libmariadb/libmariadb/mariadb_lib.c
|
int
mthd_my_send_cmd(MYSQL *mysql,enum enum_server_command command, const char *arg,
size_t length, my_bool skip_check, void *opt_arg)
{
NET *net= &mysql->net;
int result= -1;
if (mysql->net.pvio == 0)
{
/* Do reconnect if possible */
if (mariadb_reconnect(mysql))
return(1);
}
if (mysql->status != MYSQL_STATUS_READY ||
mysql->server_status & SERVER_MORE_RESULTS_EXIST)
{
SET_CLIENT_ERROR(mysql, CR_COMMANDS_OUT_OF_SYNC, SQLSTATE_UNKNOWN, 0);
goto end;
}
if (IS_CONNHDLR_ACTIVE(mysql))
{
result= mysql->extension->conn_hdlr->plugin->set_connection(mysql, command, arg, length, skip_check, opt_arg);
if (result== -1)
return(result);
}
CLEAR_CLIENT_ERROR(mysql);
if (command == COM_QUERY ||
command == COM_STMT_PREPARE)
{
if ((mysql->options.client_flag & CLIENT_LOCAL_FILES) &&
mysql->options.extension && mysql->extension->auto_local_infile == WAIT_FOR_QUERY &&
arg && (*arg == 'l' || *arg == 'L'))
{
if (strncasecmp(arg, "load", 4) == 0)
mysql->extension->auto_local_infile= ACCEPT_FILE_REQUEST;
}
}
mysql->info=0;
mysql->affected_rows= ~(unsigned long long) 0;
ma_net_clear(net); /* Clear receive buffer */
if (!arg)
arg="";
if (net->extension->multi_status== COM_MULTI_ENABLED)
{
return net_add_multi_command(net, command, (const uchar *)arg, length);
}
if (ma_net_write_command(net,(uchar) command,arg,
length ? length : (ulong) strlen(arg), 0))
{
if (net->last_errno == ER_NET_PACKET_TOO_LARGE)
{
my_set_error(mysql, CR_NET_PACKET_TOO_LARGE, SQLSTATE_UNKNOWN, 0);
goto end;
}
end_server(mysql);
if (mariadb_reconnect(mysql))
goto end;
if (ma_net_write_command(net,(uchar) command,arg,
length ? length : (ulong) strlen(arg), 0))
{
my_set_error(mysql, CR_SERVER_GONE_ERROR, SQLSTATE_UNKNOWN, 0);
goto end;
}
}
result=0;
if (net->extension->multi_status > COM_MULTI_OFF)
skip_check= 1;
if (!skip_check)
{
result= ((mysql->packet_length=ma_net_safe_read(mysql)) == packet_error ?
1 : 0);
}
end:
return(result);
}
|
O0
|
c
|
mthd_my_send_cmd:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movb %r8b, %al
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movb %al, -0x29(%rbp)
movq %r9, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
movl $0xffffffff, -0x44(%rbp) # imm = 0xFFFFFFFF
movq -0x10(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x3d378
movq -0x10(%rbp), %rdi
callq 0x3d740
cmpb $0x0, %al
je 0x3d376
movl $0x1, -0x4(%rbp)
jmp 0x3d731
jmp 0x3d378
movq -0x10(%rbp), %rax
cmpl $0x0, 0x488(%rax)
jne 0x3d397
movq -0x10(%rbp), %rax
movl 0x380(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x3d401
jmp 0x3d399
movq -0x10(%rbp), %rax
movl $0x7de, 0x90(%rax) # imm = 0x7DE
movq -0x10(%rbp), %rdi
addq $0x297, %rdi # imm = 0x297
leaq 0x1fa397(%rip), %rax # 0x237750
movq (%rax), %rsi
movl $0x5, %edx
callq 0x37150
movq -0x10(%rbp), %rax
movb $0x0, 0x29c(%rax)
movq -0x10(%rbp), %rdi
addq $0x97, %rdi
leaq 0x1fa37d(%rip), %rax # 0x237760
movq 0x70(%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x37150
movq -0x10(%rbp), %rax
movb $0x0, 0x296(%rax)
jmp 0x3d72b
movq -0x10(%rbp), %rax
cmpq $0x0, 0x4f0(%rax)
je 0x3d468
movq -0x10(%rbp), %rax
movq 0x4f0(%rax), %rax
cmpq $0x0, (%rax)
je 0x3d468
movq -0x10(%rbp), %rax
movq 0x4f0(%rax), %rax
movq (%rax), %rax
movq (%rax), %rax
movq 0x70(%rax), %rax
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movb -0x29(%rbp), %r8b
movq -0x38(%rbp), %r9
movsbl %r8b, %r8d
callq *%rax
movl %eax, -0x44(%rbp)
cmpl $-0x1, -0x44(%rbp)
jne 0x3d466
movl -0x44(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x3d731
jmp 0x3d468
jmp 0x3d46a
movq -0x10(%rbp), %rax
movl $0x0, 0x90(%rax)
movq -0x10(%rbp), %rdi
addq $0x297, %rdi # imm = 0x297
leaq 0x916d3(%rip), %rsi # 0xceb5d
callq 0x37410
movq -0x10(%rbp), %rax
movb $0x0, 0x97(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x2a0(%rax)
je 0x3d4ba
movq -0x10(%rbp), %rax
movq 0x2a0(%rax), %rax
movl $0x0, 0x4(%rax)
jmp 0x3d4bc
cmpl $0x3, -0x14(%rbp)
je 0x3d4cc
cmpl $0x16, -0x14(%rbp)
jne 0x3d551
movq -0x10(%rbp), %rax
movq 0x3a8(%rax), %rax
andq $0x80, %rax
cmpq $0x0, %rax
je 0x3d54f
movq -0x10(%rbp), %rax
cmpq $0x0, 0x480(%rax)
je 0x3d54f
movq -0x10(%rbp), %rax
movq 0x4f0(%rax), %rax
movsbl 0x78(%rax), %eax
cmpl $0x1, %eax
jne 0x3d54f
cmpq $0x0, -0x20(%rbp)
je 0x3d54f
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x6c, %eax
je 0x3d524
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x4c, %eax
jne 0x3d54f
movq -0x20(%rbp), %rdi
leaq 0x91634(%rip), %rsi # 0xceb63
movl $0x4, %edx
callq 0x379d0
cmpl $0x0, %eax
jne 0x3d54d
movq -0x10(%rbp), %rax
movq 0x4f0(%rax), %rax
movb $0x2, 0x78(%rax)
jmp 0x3d54f
jmp 0x3d551
movq -0x10(%rbp), %rax
movq $0x0, 0x2e0(%rax)
movq -0x10(%rbp), %rax
movq $-0x1, 0x338(%rax)
movq -0x40(%rbp), %rdi
callq 0x6c9a0
cmpq $0x0, -0x20(%rbp)
jne 0x3d58a
leaq 0x97720(%rip), %rax # 0xd4ca6
movq %rax, -0x20(%rbp)
movq -0x40(%rbp), %rax
movq 0x2a0(%rax), %rax
cmpl $0x2, (%rax)
jne 0x3d5b9
movq -0x40(%rbp), %rdi
movl -0x14(%rbp), %eax
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movzbl %al, %esi
callq 0x6d9f0
movl %eax, -0x4(%rbp)
jmp 0x3d731
movq -0x40(%rbp), %rax
movq %rax, -0x60(%rbp)
movl -0x14(%rbp), %eax
movb %al, -0x51(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x3d5e0
movq -0x28(%rbp), %rax
movq %rax, -0x68(%rbp)
jmp 0x3d5ed
movq -0x20(%rbp), %rdi
callq 0x37400
movq %rax, -0x68(%rbp)
movq -0x50(%rbp), %rdx
movb -0x51(%rbp), %al
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rcx
xorl %r8d, %r8d
movzbl %al, %esi
callq 0x6d140
cmpl $0x0, %eax
je 0x3d6dc
movq -0x40(%rbp), %rax
cmpl $0x481, 0x90(%rax) # imm = 0x481
jne 0x3d643
movq -0x10(%rbp), %rdi
leaq 0x1fa125(%rip), %rax # 0x237750
movq (%rax), %rdx
movl $0x7e4, %esi # imm = 0x7E4
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq 0x3ce90
jmp 0x3d72b
movq -0x10(%rbp), %rdi
callq 0x3ce40
movq -0x10(%rbp), %rdi
callq 0x3d740
cmpb $0x0, %al
je 0x3d65e
jmp 0x3d72b
movq -0x40(%rbp), %rax
movq %rax, -0x80(%rbp)
movl -0x14(%rbp), %eax
movb %al, -0x71(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x70(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x3d688
movq -0x28(%rbp), %rax
movq %rax, -0x88(%rbp)
jmp 0x3d698
movq -0x20(%rbp), %rdi
callq 0x37400
movq %rax, -0x88(%rbp)
movq -0x70(%rbp), %rdx
movb -0x71(%rbp), %al
movq -0x80(%rbp), %rdi
movq -0x88(%rbp), %rcx
xorl %r8d, %r8d
movzbl %al, %esi
callq 0x6d140
cmpl $0x0, %eax
je 0x3d6da
movq -0x10(%rbp), %rdi
leaq 0x1fa08b(%rip), %rax # 0x237750
movq (%rax), %rdx
movl $0x7d6, %esi # imm = 0x7D6
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq 0x3ce90
jmp 0x3d72b
jmp 0x3d6dc
movl $0x0, -0x44(%rbp)
movq -0x40(%rbp), %rax
movq 0x2a0(%rax), %rax
cmpl $0x0, (%rax)
jbe 0x3d6f7
movb $0x1, -0x29(%rbp)
cmpb $0x0, -0x29(%rbp)
jne 0x3d729
movq -0x10(%rbp), %rdi
callq 0x3cb80
movq %rax, %rdx
movq -0x10(%rbp), %rax
movq %rdx, 0x358(%rax)
movl $0xffffffff, %esi # imm = 0xFFFFFFFF
xorl %eax, %eax
movl $0x1, %ecx
cmpq %rsi, %rdx
cmovel %ecx, %eax
movl %eax, -0x44(%rbp)
jmp 0x3d72b
movl -0x44(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x90, %rsp
popq %rbp
retq
nopl (%rax)
|
mthd_my_send_cmd:
push rbp
mov rbp, rsp
sub rsp, 90h
mov al, r8b
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_29], al
mov [rbp+var_38], r9
mov rax, [rbp+var_10]
mov [rbp+var_40], rax
mov [rbp+var_44], 0FFFFFFFFh
mov rax, [rbp+var_10]
cmp qword ptr [rax], 0
jnz short loc_3D378
mov rdi, [rbp+var_10]
call mariadb_reconnect
cmp al, 0
jz short loc_3D376
mov [rbp+var_4], 1
jmp loc_3D731
loc_3D376:
jmp short $+2
loc_3D378:
mov rax, [rbp+var_10]
cmp dword ptr [rax+488h], 0
jnz short loc_3D397
mov rax, [rbp+var_10]
mov eax, [rax+380h]
and eax, 8
cmp eax, 0
jz short loc_3D401
loc_3D397:
jmp short $+2
loc_3D399:
mov rax, [rbp+var_10]
mov dword ptr [rax+90h], 7DEh
mov rdi, [rbp+var_10]
add rdi, 297h
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
mov rax, [rbp+var_10]
mov byte ptr [rax+29Ch], 0
mov rdi, [rbp+var_10]
add rdi, 97h
lea rax, client_errors
mov rsi, [rax+70h]
mov edx, 1FFh
call _strncpy
mov rax, [rbp+var_10]
mov byte ptr [rax+296h], 0
jmp loc_3D72B
loc_3D401:
mov rax, [rbp+var_10]
cmp qword ptr [rax+4F0h], 0
jz short loc_3D468
mov rax, [rbp+var_10]
mov rax, [rax+4F0h]
cmp qword ptr [rax], 0
jz short loc_3D468
mov rax, [rbp+var_10]
mov rax, [rax+4F0h]
mov rax, [rax]
mov rax, [rax]
mov rax, [rax+70h]
mov rdi, [rbp+var_10]
mov esi, [rbp+var_14]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_28]
mov r8b, [rbp+var_29]
mov r9, [rbp+var_38]
movsx r8d, r8b
call rax
mov [rbp+var_44], eax
cmp [rbp+var_44], 0FFFFFFFFh
jnz short loc_3D466
mov eax, [rbp+var_44]
mov [rbp+var_4], eax
jmp loc_3D731
loc_3D466:
jmp short $+2
loc_3D468:
jmp short $+2
loc_3D46A:
mov rax, [rbp+var_10]
mov dword ptr [rax+90h], 0
mov rdi, [rbp+var_10]
add rdi, 297h
lea rsi, a00000; "00000"
call _strcpy
mov rax, [rbp+var_10]
mov byte ptr [rax+97h], 0
mov rax, [rbp+var_10]
cmp qword ptr [rax+2A0h], 0
jz short loc_3D4BA
mov rax, [rbp+var_10]
mov rax, [rax+2A0h]
mov dword ptr [rax+4], 0
loc_3D4BA:
jmp short $+2
loc_3D4BC:
cmp [rbp+var_14], 3
jz short loc_3D4CC
cmp [rbp+var_14], 16h
jnz loc_3D551
loc_3D4CC:
mov rax, [rbp+var_10]
mov rax, [rax+3A8h]
and rax, 80h
cmp rax, 0
jz short loc_3D54F
mov rax, [rbp+var_10]
cmp qword ptr [rax+480h], 0
jz short loc_3D54F
mov rax, [rbp+var_10]
mov rax, [rax+4F0h]
movsx eax, byte ptr [rax+78h]
cmp eax, 1
jnz short loc_3D54F
cmp [rbp+var_20], 0
jz short loc_3D54F
mov rax, [rbp+var_20]
movsx eax, byte ptr [rax]
cmp eax, 6Ch ; 'l'
jz short loc_3D524
mov rax, [rbp+var_20]
movsx eax, byte ptr [rax]
cmp eax, 4Ch ; 'L'
jnz short loc_3D54F
loc_3D524:
mov rdi, [rbp+var_20]
lea rsi, aLoad; "load"
mov edx, 4
call _strncasecmp
cmp eax, 0
jnz short loc_3D54D
mov rax, [rbp+var_10]
mov rax, [rax+4F0h]
mov byte ptr [rax+78h], 2
loc_3D54D:
jmp short $+2
loc_3D54F:
jmp short $+2
loc_3D551:
mov rax, [rbp+var_10]
mov qword ptr [rax+2E0h], 0
mov rax, [rbp+var_10]
mov qword ptr [rax+338h], 0FFFFFFFFFFFFFFFFh
mov rdi, [rbp+var_40]
call ma_net_clear
cmp [rbp+var_20], 0
jnz short loc_3D58A
lea rax, asc_D4CA2+4; ""
mov [rbp+var_20], rax
loc_3D58A:
mov rax, [rbp+var_40]
mov rax, [rax+2A0h]
cmp dword ptr [rax], 2
jnz short loc_3D5B9
mov rdi, [rbp+var_40]
mov eax, [rbp+var_14]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_28]
movzx esi, al
call net_add_multi_command
mov [rbp+var_4], eax
jmp loc_3D731
loc_3D5B9:
mov rax, [rbp+var_40]
mov [rbp+var_60], rax
mov eax, [rbp+var_14]
mov [rbp+var_51], al
mov rax, [rbp+var_20]
mov [rbp+var_50], rax
cmp [rbp+var_28], 0
jz short loc_3D5E0
mov rax, [rbp+var_28]
mov [rbp+var_68], rax
jmp short loc_3D5ED
loc_3D5E0:
mov rdi, [rbp+var_20]
call _strlen
mov [rbp+var_68], rax
loc_3D5ED:
mov rdx, [rbp+var_50]
mov al, [rbp+var_51]
mov rdi, [rbp+var_60]
mov rcx, [rbp+var_68]
xor r8d, r8d
movzx esi, al
call ma_net_write_command
cmp eax, 0
jz loc_3D6DC
mov rax, [rbp+var_40]
cmp dword ptr [rax+90h], 481h
jnz short loc_3D643
mov rdi, [rbp+var_10]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
mov esi, 7E4h
xor eax, eax
mov ecx, eax
mov al, 0
call my_set_error
jmp loc_3D72B
loc_3D643:
mov rdi, [rbp+var_10]
call end_server
mov rdi, [rbp+var_10]
call mariadb_reconnect
cmp al, 0
jz short loc_3D65E
jmp loc_3D72B
loc_3D65E:
mov rax, [rbp+var_40]
mov [rbp+var_80], rax
mov eax, [rbp+var_14]
mov [rbp+var_71], al
mov rax, [rbp+var_20]
mov [rbp+var_70], rax
cmp [rbp+var_28], 0
jz short loc_3D688
mov rax, [rbp+var_28]
mov [rbp+var_88], rax
jmp short loc_3D698
loc_3D688:
mov rdi, [rbp+var_20]
call _strlen
mov [rbp+var_88], rax
loc_3D698:
mov rdx, [rbp+var_70]
mov al, [rbp+var_71]
mov rdi, [rbp+var_80]
mov rcx, [rbp+var_88]
xor r8d, r8d
movzx esi, al
call ma_net_write_command
cmp eax, 0
jz short loc_3D6DA
mov rdi, [rbp+var_10]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
mov esi, 7D6h
xor eax, eax
mov ecx, eax
mov al, 0
call my_set_error
jmp short loc_3D72B
loc_3D6DA:
jmp short $+2
loc_3D6DC:
mov [rbp+var_44], 0
mov rax, [rbp+var_40]
mov rax, [rax+2A0h]
cmp dword ptr [rax], 0
jbe short loc_3D6F7
mov [rbp+var_29], 1
loc_3D6F7:
cmp [rbp+var_29], 0
jnz short loc_3D729
mov rdi, [rbp+var_10]
call ma_net_safe_read
mov rdx, rax
mov rax, [rbp+var_10]
mov [rax+358h], rdx
mov esi, 0FFFFFFFFh
xor eax, eax
mov ecx, 1
cmp rdx, rsi
cmovz eax, ecx
mov [rbp+var_44], eax
loc_3D729:
jmp short $+2
loc_3D72B:
mov eax, [rbp+var_44]
mov [rbp+var_4], eax
loc_3D731:
mov eax, [rbp+var_4]
add rsp, 90h
pop rbp
retn
|
long long mthd_my_send_cmd(long long a1, long long a2, char *a3, long long a4, char a5, long long a6)
{
long long v6; // rdx
long long v7; // rcx
int v8; // r8d
int v9; // r9d
long long v10; // rdx
long long v12; // [rsp+8h] [rbp-88h]
long long v13; // [rsp+28h] [rbp-68h]
unsigned int v14; // [rsp+4Ch] [rbp-44h]
v14 = -1;
if ( *(_QWORD *)a1 || !(unsigned __int8)mariadb_reconnect(a1) )
{
if ( *(_DWORD *)(a1 + 1160) || (*(_DWORD *)(a1 + 896) & 8) != 0 )
{
*(_DWORD *)(a1 + 144) = 2014;
strncpy(a1 + 663, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(a1 + 668) = 0;
strncpy(a1 + 151, client_errors[14], 511LL);
*(_BYTE *)(a1 + 662) = 0;
return v14;
}
if ( *(_QWORD *)(a1 + 1264) )
{
if ( **(_QWORD **)(a1 + 1264) )
{
v14 = (*(long long ( **)(long long, _QWORD, char *, long long, _QWORD, long long))(***(_QWORD ***)(a1 + 1264)
+ 112LL))(
a1,
(unsigned int)a2,
a3,
a4,
(unsigned int)a5,
a6);
if ( v14 == -1 )
return (unsigned int)-1;
}
}
*(_DWORD *)(a1 + 144) = 0;
strcpy(a1 + 663, "00000");
*(_BYTE *)(a1 + 151) = 0;
if ( *(_QWORD *)(a1 + 672) )
*(_DWORD *)(*(_QWORD *)(a1 + 672) + 4LL) = 0;
if ( ((_DWORD)a2 == 3 || (_DWORD)a2 == 22)
&& (*(_QWORD *)(a1 + 936) & 0x80LL) != 0
&& *(_QWORD *)(a1 + 1152)
&& *(_BYTE *)(*(_QWORD *)(a1 + 1264) + 120LL) == 1
&& a3
&& (*a3 == 108 || *a3 == 76)
&& !(unsigned int)strncasecmp(a3, "load", 4LL) )
{
*(_BYTE *)(*(_QWORD *)(a1 + 1264) + 120LL) = 2;
}
*(_QWORD *)(a1 + 736) = 0LL;
*(_QWORD *)(a1 + 824) = -1LL;
ma_net_clear(a1);
if ( !a3 )
a3 = "";
if ( **(_DWORD **)(a1 + 672) == 2 )
return (unsigned int)net_add_multi_command(a1, (unsigned __int8)a2, a3, a4);
if ( a4 )
v13 = a4;
else
v13 = strlen(a3);
a2 = (unsigned __int8)a2;
if ( (unsigned int)ma_net_write_command(a1, (unsigned __int8)a2, a3, v13, 0LL) )
{
if ( *(_DWORD *)(a1 + 144) == 1153 )
{
my_set_error(a1, 0x7E4u, (long long)SQLSTATE_UNKNOWN, 0LL);
return v14;
}
end_server((_QWORD *)a1);
if ( (unsigned __int8)mariadb_reconnect(a1) )
return v14;
if ( a4 )
v12 = a4;
else
v12 = strlen(a3);
a2 = (unsigned __int8)a2;
if ( (unsigned int)ma_net_write_command(a1, (unsigned __int8)a2, a3, v12, 0LL) )
{
my_set_error(a1, 0x7D6u, (long long)SQLSTATE_UNKNOWN, 0LL);
return v14;
}
}
v14 = 0;
if ( **(_DWORD **)(a1 + 672) )
a5 = 1;
if ( !a5 )
{
v10 = ma_net_safe_read(a1, a2, v6, v7, v8, v9);
*(_QWORD *)(a1 + 856) = v10;
return v10 == 0xFFFFFFFFLL;
}
return v14;
}
return 1;
}
|
mthd_my_send_cmd:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV AL,R8B
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV byte ptr [RBP + -0x29],AL
MOV qword ptr [RBP + -0x38],R9
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x40],RAX
MOV dword ptr [RBP + -0x44],0xffffffff
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX],0x0
JNZ 0x0013d378
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0013d740
CMP AL,0x0
JZ 0x0013d376
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0013d731
LAB_0013d376:
JMP 0x0013d378
LAB_0013d378:
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x488],0x0
JNZ 0x0013d397
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x380]
AND EAX,0x8
CMP EAX,0x0
JZ 0x0013d401
LAB_0013d397:
JMP 0x0013d399
LAB_0013d399:
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x90],0x7de
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x297
LEA RAX,[0x337750]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00137150
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x29c],0x0
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x97
LEA RAX,[0x337760]
MOV RSI,qword ptr [RAX + 0x70]
MOV EDX,0x1ff
CALL 0x00137150
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x296],0x0
JMP 0x0013d72b
LAB_0013d401:
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x4f0],0x0
JZ 0x0013d468
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x4f0]
CMP qword ptr [RAX],0x0
JZ 0x0013d468
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x4f0]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x70]
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x14]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x28]
MOV R8B,byte ptr [RBP + -0x29]
MOV R9,qword ptr [RBP + -0x38]
MOVSX R8D,R8B
CALL RAX
MOV dword ptr [RBP + -0x44],EAX
CMP dword ptr [RBP + -0x44],-0x1
JNZ 0x0013d466
MOV EAX,dword ptr [RBP + -0x44]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0013d731
LAB_0013d466:
JMP 0x0013d468
LAB_0013d468:
JMP 0x0013d46a
LAB_0013d46a:
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x90],0x0
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x297
LEA RSI,[0x1ceb5d]
CALL 0x00137410
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x97],0x0
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x2a0],0x0
JZ 0x0013d4ba
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x2a0]
MOV dword ptr [RAX + 0x4],0x0
LAB_0013d4ba:
JMP 0x0013d4bc
LAB_0013d4bc:
CMP dword ptr [RBP + -0x14],0x3
JZ 0x0013d4cc
CMP dword ptr [RBP + -0x14],0x16
JNZ 0x0013d551
LAB_0013d4cc:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x3a8]
AND RAX,0x80
CMP RAX,0x0
JZ 0x0013d54f
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x480],0x0
JZ 0x0013d54f
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x4f0]
MOVSX EAX,byte ptr [RAX + 0x78]
CMP EAX,0x1
JNZ 0x0013d54f
CMP qword ptr [RBP + -0x20],0x0
JZ 0x0013d54f
MOV RAX,qword ptr [RBP + -0x20]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x6c
JZ 0x0013d524
MOV RAX,qword ptr [RBP + -0x20]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x4c
JNZ 0x0013d54f
LAB_0013d524:
MOV RDI,qword ptr [RBP + -0x20]
LEA RSI,[0x1ceb63]
MOV EDX,0x4
CALL 0x001379d0
CMP EAX,0x0
JNZ 0x0013d54d
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x4f0]
MOV byte ptr [RAX + 0x78],0x2
LAB_0013d54d:
JMP 0x0013d54f
LAB_0013d54f:
JMP 0x0013d551
LAB_0013d551:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x2e0],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x338],-0x1
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x0016c9a0
CMP qword ptr [RBP + -0x20],0x0
JNZ 0x0013d58a
LEA RAX,[0x1d4ca6]
MOV qword ptr [RBP + -0x20],RAX
LAB_0013d58a:
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX + 0x2a0]
CMP dword ptr [RAX],0x2
JNZ 0x0013d5b9
MOV RDI,qword ptr [RBP + -0x40]
MOV EAX,dword ptr [RBP + -0x14]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x28]
MOVZX ESI,AL
CALL 0x0016d9f0
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0013d731
LAB_0013d5b9:
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x60],RAX
MOV EAX,dword ptr [RBP + -0x14]
MOV byte ptr [RBP + -0x51],AL
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x50],RAX
CMP qword ptr [RBP + -0x28],0x0
JZ 0x0013d5e0
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x68],RAX
JMP 0x0013d5ed
LAB_0013d5e0:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00137400
MOV qword ptr [RBP + -0x68],RAX
LAB_0013d5ed:
MOV RDX,qword ptr [RBP + -0x50]
MOV AL,byte ptr [RBP + -0x51]
MOV RDI,qword ptr [RBP + -0x60]
MOV RCX,qword ptr [RBP + -0x68]
XOR R8D,R8D
MOVZX ESI,AL
CALL 0x0016d140
CMP EAX,0x0
JZ 0x0013d6dc
MOV RAX,qword ptr [RBP + -0x40]
CMP dword ptr [RAX + 0x90],0x481
JNZ 0x0013d643
MOV RDI,qword ptr [RBP + -0x10]
LEA RAX,[0x337750]
MOV RDX,qword ptr [RAX]
MOV ESI,0x7e4
XOR EAX,EAX
MOV ECX,EAX
MOV AL,0x0
CALL 0x0013ce90
JMP 0x0013d72b
LAB_0013d643:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0013ce40
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0013d740
CMP AL,0x0
JZ 0x0013d65e
JMP 0x0013d72b
LAB_0013d65e:
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x80],RAX
MOV EAX,dword ptr [RBP + -0x14]
MOV byte ptr [RBP + -0x71],AL
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x70],RAX
CMP qword ptr [RBP + -0x28],0x0
JZ 0x0013d688
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x88],RAX
JMP 0x0013d698
LAB_0013d688:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00137400
MOV qword ptr [RBP + -0x88],RAX
LAB_0013d698:
MOV RDX,qword ptr [RBP + -0x70]
MOV AL,byte ptr [RBP + -0x71]
MOV RDI,qword ptr [RBP + -0x80]
MOV RCX,qword ptr [RBP + -0x88]
XOR R8D,R8D
MOVZX ESI,AL
CALL 0x0016d140
CMP EAX,0x0
JZ 0x0013d6da
MOV RDI,qword ptr [RBP + -0x10]
LEA RAX,[0x337750]
MOV RDX,qword ptr [RAX]
MOV ESI,0x7d6
XOR EAX,EAX
MOV ECX,EAX
MOV AL,0x0
CALL 0x0013ce90
JMP 0x0013d72b
LAB_0013d6da:
JMP 0x0013d6dc
LAB_0013d6dc:
MOV dword ptr [RBP + -0x44],0x0
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX + 0x2a0]
CMP dword ptr [RAX],0x0
JBE 0x0013d6f7
MOV byte ptr [RBP + -0x29],0x1
LAB_0013d6f7:
CMP byte ptr [RBP + -0x29],0x0
JNZ 0x0013d729
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0013cb80
MOV RDX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x358],RDX
MOV ESI,0xffffffff
XOR EAX,EAX
MOV ECX,0x1
CMP RDX,RSI
CMOVZ EAX,ECX
MOV dword ptr [RBP + -0x44],EAX
LAB_0013d729:
JMP 0x0013d72b
LAB_0013d72b:
MOV EAX,dword ptr [RBP + -0x44]
MOV dword ptr [RBP + -0x4],EAX
LAB_0013d731:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x90
POP RBP
RET
|
uint mthd_my_send_cmd(long *param_1,uint param_2,char *param_3,size_t param_4,char param_5,
int8 param_6)
{
char cVar1;
int iVar2;
uint uVar3;
long lVar4;
size_t local_90;
size_t local_70;
uint local_4c;
char local_31;
char *local_28;
local_4c = 0xffffffff;
if ((*param_1 == 0) && (cVar1 = mariadb_reconnect(param_1), cVar1 != '\0')) {
return 1;
}
if (((int)param_1[0x91] != 0) || ((*(uint *)(param_1 + 0x70) & 8) != 0)) {
*(int4 *)(param_1 + 0x12) = 0x7de;
strncpy((char *)((long)param_1 + 0x297),SQLSTATE_UNKNOWN,5);
*(int1 *)((long)param_1 + 0x29c) = 0;
strncpy((char *)((long)param_1 + 0x97),PTR_s_Commands_out_of_sync__you_can_t_r_003377d0,0x1ff);
*(int1 *)((long)param_1 + 0x296) = 0;
return 0xffffffff;
}
if (((param_1[0x9e] != 0) && (*(long *)param_1[0x9e] != 0)) &&
(local_4c = (**(code **)(**(long **)param_1[0x9e] + 0x70))
(param_1,param_2,param_3,param_4,(int)param_5,param_6),
local_4c == 0xffffffff)) {
return 0xffffffff;
}
*(int4 *)(param_1 + 0x12) = 0;
strcpy((char *)((long)param_1 + 0x297),"00000");
*(int1 *)((long)param_1 + 0x97) = 0;
if (param_1[0x54] != 0) {
*(int4 *)(param_1[0x54] + 4) = 0;
}
if (((((param_2 == 3) || (param_2 == 0x16)) &&
(((param_1[0x75] & 0x80U) != 0 &&
((param_1[0x90] != 0 && (*(char *)(param_1[0x9e] + 0x78) == '\x01')))))) &&
(param_3 != (char *)0x0)) &&
(((*param_3 == 'l' || (*param_3 == 'L')) && (iVar2 = strncasecmp(param_3,"load",4), iVar2 == 0)
))) {
*(int1 *)(param_1[0x9e] + 0x78) = 2;
}
param_1[0x5c] = 0;
param_1[0x67] = -1;
ma_net_clear(param_1);
local_28 = param_3;
if (param_3 == (char *)0x0) {
local_28 = &DAT_001d4ca6;
}
if (*(int *)param_1[0x54] != 2) {
local_70 = param_4;
if (param_4 == 0) {
local_70 = strlen(local_28);
}
iVar2 = ma_net_write_command(param_1,(char)param_2,local_28,local_70,0);
if (iVar2 != 0) {
if ((int)param_1[0x12] == 0x481) {
my_set_error(param_1,0x7e4,SQLSTATE_UNKNOWN,0);
return local_4c;
}
end_server(param_1);
cVar1 = mariadb_reconnect(param_1);
if (cVar1 != '\0') {
return local_4c;
}
local_90 = param_4;
if (param_4 == 0) {
local_90 = strlen(local_28);
}
iVar2 = ma_net_write_command(param_1,(char)param_2,local_28,local_90,0);
if (iVar2 != 0) {
my_set_error(param_1,0x7d6,SQLSTATE_UNKNOWN,0);
return local_4c;
}
}
local_4c = 0;
local_31 = param_5;
if (*(int *)param_1[0x54] != 0) {
local_31 = '\x01';
}
if (local_31 == '\0') {
lVar4 = ma_net_safe_read(param_1);
param_1[0x6b] = lVar4;
local_4c = (uint)(lVar4 == 0xffffffff);
}
return local_4c;
}
uVar3 = net_add_multi_command(param_1,param_2 & 0xff,local_28,param_4);
return uVar3;
}
|
|
16,217
|
httplib::detail::write_headers(httplib::Stream&, std::unordered_multimap<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, httplib::detail::case_ignore::hash, httplib::detail::case_ignore::equal_to, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>> const&)
|
monkey531[P]llama/examples/server/httplib.h
|
inline ssize_t write_headers(Stream &strm, const Headers &headers) {
ssize_t write_len = 0;
for (const auto &x : headers) {
std::string s;
s = x.first;
s += ": ";
s += x.second;
s += "\r\n";
auto len = strm.write(s.data(), s.size());
if (len < 0) { return len; }
write_len += len;
}
auto len = strm.write("\r\n");
if (len < 0) { return len; }
write_len += len;
return write_len;
}
|
O2
|
c
|
httplib::detail::write_headers(httplib::Stream&, std::unordered_multimap<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, httplib::detail::case_ignore::hash, httplib::detail::case_ignore::equal_to, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
addq $0x10, %r14
xorl %r12d, %r12d
leaq 0x8(%rsp), %r15
leaq 0xb2fd2(%rip), %r13 # 0xf30db
movq (%r14), %r14
testq %r14, %r14
je 0x40180
leaq 0x8(%r14), %rsi
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
andq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movq %r15, %rdi
callq 0x28600
movq %r15, %rdi
leaq 0xb587a(%rip), %rsi # 0xf59b6
callq 0x29570
leaq 0x28(%r14), %rsi
movq %r15, %rdi
callq 0x295b0
movq %r15, %rdi
movq %r13, %rsi
callq 0x29570
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x28(%rax)
movq %rax, %rbp
movq %r15, %rdi
callq 0x29678
testq %rbp, %rbp
js 0x4019e
addq %rbp, %r12
jmp 0x40109
leaq 0xb2f54(%rip), %rsi # 0xf30db
movq %rbx, %rdi
callq 0x40b08
xorl %ecx, %ecx
testq %rax, %rax
cmovsq %rcx, %r12
addq %rax, %r12
movq %r12, %rbp
movq %rbp, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x401b2
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x29678
movq %rbx, %rdi
callq 0x293c0
nop
|
_ZN7httplib6detail13write_headersERNS_6StreamERKSt18unordered_multimapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_NS0_11case_ignore4hashENSA_8equal_toESaISt4pairIKS9_S9_EEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r14, rsi
mov rbx, rdi
add r14, 10h
xor r12d, r12d
lea r15, [rsp+58h+var_50]
lea r13, a0+1; "\r\n"
loc_40109:
mov r14, [r14]
test r14, r14
jz short loc_40180
lea rsi, [r14+8]
lea rax, [rsp+58h+var_40]
mov [rsp+58h+var_50], rax
and [rsp+58h+var_48], 0
mov [rsp+58h+var_40], 0
mov rdi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
mov rdi, r15
lea rsi, aJsonSchema_0+0Dh; ": "
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea rsi, [r14+28h]
mov rdi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&)
mov rdi, r15
mov rsi, r13
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [rsp+58h+var_50]
mov rdx, [rsp+58h+var_48]
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax+28h]
mov rbp, rax
mov rdi, r15; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test rbp, rbp
js short loc_4019E
add r12, rbp
jmp short loc_40109
loc_40180:
lea rsi, a0+1; char *
mov rdi, rbx; this
call _ZN7httplib6Stream5writeEPKc; httplib::Stream::write(char const*)
xor ecx, ecx
test rax, rax
cmovs r12, rcx
add r12, rax
mov rbp, r12
loc_4019E:
mov rax, rbp
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_401B2:
mov rbx, rax
lea rdi, [rsp+arg_0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rbx
call __Unwind_Resume
|
long long httplib::detail::write_headers(httplib::Stream *this, long long a2)
{
_QWORD *v2; // r14
long long i; // r12
long long v4; // rbp
long long v5; // rax
char *v7; // [rsp+8h] [rbp-50h] BYREF
long long v8; // [rsp+10h] [rbp-48h]
char v9; // [rsp+18h] [rbp-40h] BYREF
v2 = (_QWORD *)(a2 + 16);
for ( i = 0LL; ; i += v4 )
{
v2 = (_QWORD *)*v2;
if ( !v2 )
break;
v7 = &v9;
v8 = 0LL;
v9 = 0;
std::string::_M_assign(&v7, v2 + 1);
std::string::append(&v7, ": ");
std::string::append(&v7, v2 + 5);
std::string::append(&v7, "\r\n");
v4 = (*(long long ( **)(httplib::Stream *, char *, long long))(*(_QWORD *)this + 40LL))(this, v7, v8);
std::string::~string(&v7);
if ( v4 < 0 )
return v4;
}
v5 = httplib::Stream::write(this, "\r\n");
if ( v5 < 0 )
i = 0LL;
return v5 + i;
}
|
write_headers:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R14,RSI
MOV RBX,RDI
ADD R14,0x10
XOR R12D,R12D
LEA R15,[RSP + 0x8]
LEA R13,[0x1f30db]
LAB_00140109:
MOV R14,qword ptr [R14]
TEST R14,R14
JZ 0x00140180
LEA RSI,[R14 + 0x8]
LEA RAX,[RSP + 0x18]
MOV qword ptr [RSP + 0x8],RAX
AND qword ptr [RSP + 0x10],0x0
MOV byte ptr [RSP + 0x18],0x0
LAB_0014012a:
MOV RDI,R15
CALL 0x00128600
MOV RDI,R15
LEA RSI,[0x1f59b6]
CALL 0x00129570
LEA RSI,[R14 + 0x28]
MOV RDI,R15
CALL 0x001295b0
MOV RDI,R15
MOV RSI,R13
CALL 0x00129570
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RBX]
LAB_00140165:
MOV RDI,RBX
CALL qword ptr [RAX + 0x28]
LAB_0014016b:
MOV RBP,RAX
MOV RDI,R15
CALL 0x00129678
TEST RBP,RBP
JS 0x0014019e
ADD R12,RBP
JMP 0x00140109
LAB_00140180:
LEA RSI,[0x1f30db]
MOV RDI,RBX
CALL 0x00140b08
XOR ECX,ECX
TEST RAX,RAX
CMOVS R12,RCX
ADD R12,RAX
MOV RBP,R12
LAB_0014019e:
MOV RAX,RBP
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* httplib::detail::write_headers(httplib::Stream&, std::unordered_multimap<std::__cxx11::string,
std::__cxx11::string, httplib::detail::case_ignore::hash, httplib::detail::case_ignore::equal_to,
std::allocator<std::pair<std::__cxx11::string const, std::__cxx11::string > > > const&) */
long httplib::detail::write_headers(Stream *param_1,unordered_multimap *param_2)
{
long lVar1;
long lVar2;
long *plVar3;
int1 *local_50;
int8 local_48;
int1 local_40 [16];
plVar3 = (long *)(param_2 + 0x10);
lVar2 = 0;
while( true ) {
plVar3 = (long *)*plVar3;
if (plVar3 == (long *)0x0) {
lVar1 = Stream::write(param_1,"\r\n");
if (lVar1 < 0) {
lVar2 = 0;
}
return lVar2 + lVar1;
}
local_50 = local_40;
local_48 = 0;
local_40[0] = 0;
/* try { // try from 0014012a to 00140157 has its CatchHandler @ 001401b2 */
std::__cxx11::string::_M_assign((string *)&local_50);
std::__cxx11::string::append((char *)&local_50);
std::__cxx11::string::append((string *)&local_50);
std::__cxx11::string::append((char *)&local_50);
/* try { // try from 00140165 to 0014016a has its CatchHandler @ 001401b0 */
lVar1 = (**(code **)(*(long *)param_1 + 0x28))(param_1,local_50,local_48);
std::__cxx11::string::~string((string *)&local_50);
if (lVar1 < 0) break;
lVar2 = lVar2 + lVar1;
}
return lVar1;
}
|
|
16,218
|
httplib::detail::write_headers(httplib::Stream&, std::unordered_multimap<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, httplib::detail::case_ignore::hash, httplib::detail::case_ignore::equal_to, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>> const&)
|
monkey531[P]llama/examples/server/httplib.h
|
inline ssize_t write_headers(Stream &strm, const Headers &headers) {
ssize_t write_len = 0;
for (const auto &x : headers) {
std::string s;
s = x.first;
s += ": ";
s += x.second;
s += "\r\n";
auto len = strm.write(s.data(), s.size());
if (len < 0) { return len; }
write_len += len;
}
auto len = strm.write("\r\n");
if (len < 0) { return len; }
write_len += len;
return write_len;
}
|
O3
|
c
|
httplib::detail::write_headers(httplib::Stream&, std::unordered_multimap<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, httplib::detail::case_ignore::hash, httplib::detail::case_ignore::equal_to, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
addq $0x10, %r14
leaq 0x18(%rsp), %r13
xorl %r12d, %r12d
leaq 0x8(%rsp), %r15
movq (%r14), %r14
testq %r14, %r14
je 0x44db4
leaq 0x8(%r14), %rsi
movq %r13, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movq %r15, %rdi
callq 0x1f5d0
movq %r15, %rdi
leaq 0x104c2e(%rip), %rsi # 0x149983
callq 0x20520
movq 0x28(%r14), %rsi
movq 0x30(%r14), %rdx
movq %r15, %rdi
callq 0x1f310
movq %r15, %rdi
leaq 0x102370(%rip), %rsi # 0x1470e4
callq 0x20520
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x28(%rax)
movq %rax, %rbp
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x44da6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1fae0
addq %rbp, %r12
testq %rbp, %rbp
jns 0x44d20
jmp 0x44dd8
movq (%rbx), %rax
leaq 0x102326(%rip), %rsi # 0x1470e4
movl $0x2, %edx
movq %rbx, %rdi
callq *0x28(%rax)
xorl %ecx, %ecx
testq %rax, %rax
cmovsq %rcx, %r12
addq %rax, %r12
movq %r12, %rbp
movq %rbp, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x44dec
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x44e06
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1fae0
movq %rbx, %rdi
callq 0x20380
|
_ZN7httplib6detail13write_headersERNS_6StreamERKSt18unordered_multimapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_NS0_11case_ignore4hashENSA_8equal_toESaISt4pairIKS9_S9_EEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r14, rsi
mov rbx, rdi
add r14, 10h
lea r13, [rsp+58h+var_40]
xor r12d, r12d
lea r15, [rsp+58h+var_50]
loc_44D20:
mov r14, [r14]
test r14, r14
jz loc_44DB4
lea rsi, [r14+8]
mov [rsp+58h+var_50], r13
mov [rsp+58h+var_48], 0
mov byte ptr [rsp+58h+var_40], 0
mov rdi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
mov rdi, r15
lea rsi, aJsonSchema_0+0Dh; ": "
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [r14+28h]
mov rdx, [r14+30h]
mov rdi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, r15
lea rsi, a0+1; "\r\n"
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [rsp+58h+var_50]
mov rdx, [rsp+58h+var_48]
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax+28h]
mov rbp, rax
mov rdi, [rsp+58h+var_50]; void *
cmp rdi, r13
jz short loc_44DA6
mov rsi, [rsp+58h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_44DA6:
add r12, rbp
test rbp, rbp
jns loc_44D20
jmp short loc_44DD8
loc_44DB4:
mov rax, [rbx]
lea rsi, a0+1; "\r\n"
mov edx, 2
mov rdi, rbx
call qword ptr [rax+28h]
xor ecx, ecx
test rax, rax
cmovs r12, rcx
add r12, rax
mov rbp, r12
loc_44DD8:
mov rax, rbp
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_44DEC:
mov rbx, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r13
jz short loc_44E06
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_44E06:
mov rdi, rbx
call __Unwind_Resume
|
long long httplib::detail::write_headers(long long a1, long long a2)
{
_QWORD *v2; // r14
long long v3; // r12
long long v4; // rbp
long long v5; // rax
void *v7; // [rsp+8h] [rbp-50h] BYREF
long long v8; // [rsp+10h] [rbp-48h]
_QWORD v9[8]; // [rsp+18h] [rbp-40h] BYREF
v2 = (_QWORD *)(a2 + 16);
v3 = 0LL;
while ( 1 )
{
v2 = (_QWORD *)*v2;
if ( !v2 )
break;
v7 = v9;
v8 = 0LL;
LOBYTE(v9[0]) = 0;
std::string::_M_assign(&v7, v2 + 1);
std::string::append(&v7, ": ");
std::string::_M_append(&v7, v2[5]);
std::string::append(&v7, "\r\n");
v4 = (*(long long ( **)(long long, void *, long long))(*(_QWORD *)a1 + 40LL))(a1, v7, v8);
if ( v7 != v9 )
operator delete(v7, v9[0] + 1LL);
v3 += v4;
if ( v4 < 0 )
return v4;
}
v5 = (*(long long ( **)(long long, char *, long long))(*(_QWORD *)a1 + 40LL))(a1, "\r\n", 2LL);
if ( v5 < 0 )
v3 = 0LL;
return v5 + v3;
}
|
write_headers:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R14,RSI
MOV RBX,RDI
ADD R14,0x10
LEA R13,[RSP + 0x18]
XOR R12D,R12D
LEA R15,[RSP + 0x8]
LAB_00144d20:
MOV R14,qword ptr [R14]
TEST R14,R14
JZ 0x00144db4
LEA RSI,[R14 + 0x8]
MOV qword ptr [RSP + 0x8],R13
MOV qword ptr [RSP + 0x10],0x0
MOV byte ptr [RSP + 0x18],0x0
LAB_00144d43:
MOV RDI,R15
CALL 0x0011f5d0
MOV RDI,R15
LEA RSI,[0x249983]
CALL 0x00120520
MOV RSI,qword ptr [R14 + 0x28]
MOV RDX,qword ptr [R14 + 0x30]
MOV RDI,R15
CALL 0x0011f310
MOV RDI,R15
LEA RSI,[0x2470e4]
CALL 0x00120520
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RBX]
LAB_00144d86:
MOV RDI,RBX
CALL qword ptr [RAX + 0x28]
LAB_00144d8c:
MOV RBP,RAX
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R13
JZ 0x00144da6
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011fae0
LAB_00144da6:
ADD R12,RBP
TEST RBP,RBP
JNS 0x00144d20
JMP 0x00144dd8
LAB_00144db4:
MOV RAX,qword ptr [RBX]
LEA RSI,[0x2470e4]
MOV EDX,0x2
MOV RDI,RBX
CALL qword ptr [RAX + 0x28]
XOR ECX,ECX
TEST RAX,RAX
CMOVS R12,RCX
ADD R12,RAX
MOV RBP,R12
LAB_00144dd8:
MOV RAX,RBP
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* httplib::detail::write_headers(httplib::Stream&, std::unordered_multimap<std::__cxx11::string,
std::__cxx11::string, httplib::detail::case_ignore::hash, httplib::detail::case_ignore::equal_to,
std::allocator<std::pair<std::__cxx11::string const, std::__cxx11::string > > > const&) */
long httplib::detail::write_headers(Stream *param_1,unordered_multimap *param_2)
{
long lVar1;
long lVar2;
long *plVar3;
int1 *local_50;
int8 local_48;
int1 local_40;
int7 uStack_3f;
plVar3 = (long *)(param_2 + 0x10);
lVar2 = 0;
do {
plVar3 = (long *)*plVar3;
if (plVar3 == (long *)0x0) {
lVar1 = (**(code **)(*(long *)param_1 + 0x28))(param_1,&DAT_002470e4,2);
if (lVar1 < 0) {
lVar2 = 0;
}
return lVar2 + lVar1;
}
local_48 = 0;
local_40 = 0;
local_50 = &local_40;
/* try { // try from 00144d43 to 00144d78 has its CatchHandler @ 00144dec */
std::__cxx11::string::_M_assign((string *)&local_50);
std::__cxx11::string::append((char *)&local_50);
std::__cxx11::string::_M_append((char *)&local_50,plVar3[5]);
std::__cxx11::string::append((char *)&local_50);
/* try { // try from 00144d86 to 00144d8b has its CatchHandler @ 00144dea */
lVar1 = (**(code **)(*(long *)param_1 + 0x28))(param_1,local_50,local_48);
if (local_50 != &local_40) {
operator_delete(local_50,CONCAT71(uStack_3f,local_40) + 1);
}
lVar2 = lVar2 + lVar1;
} while (-1 < lVar1);
return lVar1;
}
|
|
16,219
|
ma_field_extension_init_type_info
|
eloqsql/libmariadb/libmariadb/mariadb_lib.c
|
static void ma_field_extension_init_type_info(MA_MEM_ROOT *memroot,
MA_FIELD_EXTENSION *ext,
const char *ptr, size_t length)
{
const char *end= ptr + length;
for ( ; ptr < end; )
{
uint itype= (uchar) *ptr++;
uint len= (uchar) *ptr++;
if (ptr + len > end || len > 127)
break; /*Badly encoded data*/
if (itype <= 127 && itype <= MARIADB_FIELD_ATTR_LAST)
ext->metadata[itype]= ma_const_string_copy_root(memroot, ptr, len);
ptr+= len;
}
}
|
O0
|
c
|
ma_field_extension_init_type_info:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x18(%rbp), %rax
addq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x28(%rbp), %rax
jae 0x24df7
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
movzbl (%rax), %eax
movl %eax, -0x2c(%rbp)
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
movzbl (%rax), %eax
movl %eax, -0x30(%rbp)
movq -0x18(%rbp), %rax
movl -0x30(%rbp), %ecx
addq %rcx, %rax
cmpq -0x28(%rbp), %rax
ja 0x24d92
cmpl $0x7f, -0x30(%rbp)
jbe 0x24d94
jmp 0x24df7
cmpl $0x7f, -0x2c(%rbp)
ja 0x24de2
cmpl $0x1, -0x2c(%rbp)
ja 0x24de2
movq -0x10(%rbp), %rax
movl -0x2c(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x30(%rbp), %eax
movl %eax, %edx
callq 0x24820
movq %rax, %rcx
movq -0x48(%rbp), %rax
movq %rcx, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
movq -0x40(%rbp), %rcx
movq %rcx, (%rax)
movq -0x38(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl -0x30(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
jmp 0x24d44
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)
|
ma_field_extension_init_type_info:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov rax, [rbp+var_18]
add rax, [rbp+var_20]
mov [rbp+var_28], rax
loc_24D44:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_28]
jnb loc_24DF7
mov rax, [rbp+var_18]
mov rcx, rax
add rcx, 1
mov [rbp+var_18], rcx
movzx eax, byte ptr [rax]
mov [rbp+var_2C], eax
mov rax, [rbp+var_18]
mov rcx, rax
add rcx, 1
mov [rbp+var_18], rcx
movzx eax, byte ptr [rax]
mov [rbp+var_30], eax
mov rax, [rbp+var_18]
mov ecx, [rbp+var_30]
add rax, rcx
cmp rax, [rbp+var_28]
ja short loc_24D92
cmp [rbp+var_30], 7Fh
jbe short loc_24D94
loc_24D92:
jmp short loc_24DF7
loc_24D94:
cmp [rbp+var_2C], 7Fh
ja short loc_24DE2
cmp [rbp+var_2C], 1
ja short loc_24DE2
mov rax, [rbp+var_10]
mov ecx, [rbp+var_2C]
shl rcx, 4
add rax, rcx
mov [rbp+var_48], rax
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_18]
mov eax, [rbp+var_30]
mov edx, eax
call ma_const_string_copy_root
mov rcx, rax
mov rax, [rbp+var_48]
mov [rbp+var_40], rcx
mov [rbp+var_38], rdx
mov rcx, [rbp+var_40]
mov [rax], rcx
mov rcx, [rbp+var_38]
mov [rax+8], rcx
loc_24DE2:
mov ecx, [rbp+var_30]
mov rax, [rbp+var_18]
mov ecx, ecx
add rax, rcx
mov [rbp+var_18], rax
jmp loc_24D44
loc_24DF7:
add rsp, 50h
pop rbp
retn
|
unsigned __int8 * ma_field_extension_init_type_info(long long a1, long long a2, unsigned __int8 *a3, long long a4)
{
unsigned __int8 *result; // rax
unsigned __int8 *v5; // rax
long long v6; // rdx
long long *v7; // [rsp+8h] [rbp-48h]
unsigned int v8; // [rsp+20h] [rbp-30h]
unsigned int v9; // [rsp+24h] [rbp-2Ch]
unsigned long long v10; // [rsp+28h] [rbp-28h]
unsigned __int8 *v11; // [rsp+38h] [rbp-18h]
long long v12; // [rsp+38h] [rbp-18h]
v11 = a3;
v10 = (unsigned long long)&a3[a4];
while ( 1 )
{
result = v11;
if ( (unsigned long long)v11 >= v10 )
break;
v9 = *v11;
v5 = v11 + 1;
v12 = (long long)(v11 + 2);
v8 = *v5;
result = (unsigned __int8 *)(*v5 + v12);
if ( (unsigned long long)result > v10 || v8 > 0x7F )
break;
if ( v9 <= 1 )
{
v7 = (long long *)(16LL * v9 + a2);
*v7 = ma_const_string_copy_root(a1, v12, v8);
v7[1] = v6;
}
v11 = (unsigned __int8 *)(v8 + v12);
}
return result;
}
|
ma_field_extension_init_type_info:
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 qword ptr [RBP + -0x20],RCX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x28],RAX
LAB_00124d44:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x28]
JNC 0x00124df7
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x18],RCX
MOVZX EAX,byte ptr [RAX]
MOV dword ptr [RBP + -0x2c],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x18],RCX
MOVZX EAX,byte ptr [RAX]
MOV dword ptr [RBP + -0x30],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x30]
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x28]
JA 0x00124d92
CMP dword ptr [RBP + -0x30],0x7f
JBE 0x00124d94
LAB_00124d92:
JMP 0x00124df7
LAB_00124d94:
CMP dword ptr [RBP + -0x2c],0x7f
JA 0x00124de2
CMP dword ptr [RBP + -0x2c],0x1
JA 0x00124de2
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x2c]
SHL RCX,0x4
ADD RAX,RCX
MOV qword ptr [RBP + -0x48],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RBP + -0x30]
MOV EDX,EAX
CALL 0x00124820
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x40],RCX
MOV qword ptr [RBP + -0x38],RDX
MOV RCX,qword ptr [RBP + -0x40]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX + 0x8],RCX
LAB_00124de2:
MOV ECX,dword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00124d44
LAB_00124df7:
ADD RSP,0x50
POP RBP
RET
|
void ma_field_extension_init_type_info(int8 param_1,long param_2,byte *param_3,long param_4)
{
uint uVar1;
uint uVar2;
byte *pbVar3;
int1 auVar4 [16];
byte *local_20;
local_20 = param_3;
while( true ) {
if (param_3 + param_4 <= local_20) {
return;
}
uVar1 = (uint)*local_20;
pbVar3 = local_20 + 2;
uVar2 = (uint)local_20[1];
if (param_3 + param_4 < pbVar3 + uVar2) break;
if (0x7f < uVar2) {
return;
}
if ((uVar1 < 0x80) && (uVar1 < 2)) {
auVar4 = ma_const_string_copy_root(param_1,pbVar3,uVar2);
*(int1 (*) [16])(param_2 + (ulong)uVar1 * 0x10) = auVar4;
}
local_20 = pbVar3 + uVar2;
}
return;
}
|
|
16,220
|
my_coll_rule_shift_at_level
|
eloqsql/strings/ctype-uca.c
|
static void
my_coll_rule_shift_at_level(MY_COLL_RULE *r, int level)
{
switch (level)
{
case 4: /* Quaternary difference */
r->diff[3]++;
break;
case 3: /* Tertiary difference */
r->diff[2]++;
r->diff[3]= 0;
break;
case 2: /* Secondary difference */
r->diff[1]++;
r->diff[2]= r->diff[3]= 0;
break;
case 1: /* Primary difference */
r->diff[0]++;
r->diff[1]= r->diff[2]= r->diff[3]= 0;
break;
case 0:
/* Do nothing for '=': use the previous offsets for all levels */
break;
default:
DBUG_ASSERT(0);
}
}
|
O0
|
c
|
my_coll_rule_shift_at_level:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl -0xc(%rbp), %eax
movq %rax, -0x18(%rbp)
subq $0x4, %rax
ja 0x9f80d
movq -0x18(%rbp), %rax
leaq 0xf6d49(%rip), %rcx # 0x1964a0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x8(%rbp), %rax
movl 0x8c(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x8c(%rax)
jmp 0x9f813
movq -0x8(%rbp), %rax
movl 0x88(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x88(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x8c(%rax)
jmp 0x9f813
movq -0x8(%rbp), %rax
movl 0x84(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x84(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x8c(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x88(%rax)
jmp 0x9f813
movq -0x8(%rbp), %rax
movl 0x80(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x80(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x8c(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x88(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x84(%rax)
jmp 0x9f813
jmp 0x9f813
jmp 0x9f80f
jmp 0x9f811
jmp 0x9f813
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_coll_rule_shift_at_level:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov eax, [rbp+var_C]
mov [rbp+var_18], rax
sub rax, 4; switch 5 cases
ja def_9F75E; jumptable 000000000009F75E default case
mov rax, [rbp+var_18]
lea rcx, jpt_9F75E
movsxd rax, ds:(jpt_9F75E - 1964A0h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_9F760:
mov rax, [rbp+var_8]; jumptable 000000000009F75E case 4
mov ecx, [rax+8Ch]
add ecx, 1
mov [rax+8Ch], ecx
jmp loc_9F813
loc_9F778:
mov rax, [rbp+var_8]; jumptable 000000000009F75E case 3
mov ecx, [rax+88h]
add ecx, 1
mov [rax+88h], ecx
mov rax, [rbp+var_8]
mov dword ptr [rax+8Ch], 0
jmp short loc_9F813
loc_9F79B:
mov rax, [rbp+var_8]; jumptable 000000000009F75E case 2
mov ecx, [rax+84h]
add ecx, 1
mov [rax+84h], ecx
mov rax, [rbp+var_8]
mov dword ptr [rax+8Ch], 0
mov rax, [rbp+var_8]
mov dword ptr [rax+88h], 0
jmp short loc_9F813
loc_9F7CC:
mov rax, [rbp+var_8]; jumptable 000000000009F75E case 1
mov ecx, [rax+80h]
add ecx, 1
mov [rax+80h], ecx
mov rax, [rbp+var_8]
mov dword ptr [rax+8Ch], 0
mov rax, [rbp+var_8]
mov dword ptr [rax+88h], 0
mov rax, [rbp+var_8]
mov dword ptr [rax+84h], 0
jmp short loc_9F813
loc_9F80B:
jmp short loc_9F813; jumptable 000000000009F75E case 0
def_9F75E:
jmp short $+2; jumptable 000000000009F75E default case
loc_9F80F:
jmp short $+2
loc_9F811:
jmp short $+2
loc_9F813:
pop rbp
retn
|
unsigned long long my_coll_rule_shift_at_level(_DWORD *a1, unsigned int a2)
{
unsigned long long result; // rax
result = a2;
switch ( a2 )
{
case 1u:
++a1[32];
a1[35] = 0;
a1[34] = 0;
result = (unsigned long long)a1;
a1[33] = 0;
break;
case 2u:
++a1[33];
a1[35] = 0;
result = (unsigned long long)a1;
a1[34] = 0;
break;
case 3u:
++a1[34];
result = (unsigned long long)a1;
a1[35] = 0;
break;
case 4u:
result = (unsigned long long)a1;
++a1[35];
break;
default:
return result;
}
return result;
}
|
my_coll_rule_shift_at_level:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV EAX,dword ptr [RBP + -0xc]
MOV qword ptr [RBP + -0x18],RAX
SUB RAX,0x4
JA 0x0019f80d
MOV RAX,qword ptr [RBP + -0x18]
LEA RCX,[0x2964a0]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_4:
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x8c]
ADD ECX,0x1
MOV dword ptr [RAX + 0x8c],ECX
JMP 0x0019f813
caseD_3:
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x88]
ADD ECX,0x1
MOV dword ptr [RAX + 0x88],ECX
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x8c],0x0
JMP 0x0019f813
caseD_2:
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x84]
ADD ECX,0x1
MOV dword ptr [RAX + 0x84],ECX
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x8c],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x88],0x0
JMP 0x0019f813
caseD_1:
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x80]
ADD ECX,0x1
MOV dword ptr [RAX + 0x80],ECX
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x8c],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x88],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x84],0x0
JMP 0x0019f813
caseD_0:
JMP 0x0019f813
LAB_0019f80d:
JMP 0x0019f80f
LAB_0019f80f:
JMP 0x0019f811
LAB_0019f811:
JMP 0x0019f813
default:
POP RBP
RET
|
void my_coll_rule_shift_at_level(long param_1,int4 param_2)
{
switch(param_2) {
case 0:
break;
case 1:
*(int *)(param_1 + 0x80) = *(int *)(param_1 + 0x80) + 1;
*(int4 *)(param_1 + 0x8c) = 0;
*(int4 *)(param_1 + 0x88) = 0;
*(int4 *)(param_1 + 0x84) = 0;
break;
case 2:
*(int *)(param_1 + 0x84) = *(int *)(param_1 + 0x84) + 1;
*(int4 *)(param_1 + 0x8c) = 0;
*(int4 *)(param_1 + 0x88) = 0;
break;
case 3:
*(int *)(param_1 + 0x88) = *(int *)(param_1 + 0x88) + 1;
*(int4 *)(param_1 + 0x8c) = 0;
break;
case 4:
*(int *)(param_1 + 0x8c) = *(int *)(param_1 + 0x8c) + 1;
}
return;
}
|
|
16,221
|
ac_psr_finish_field
|
alca/libalca/parser.c
|
ac_expr *ac_psr_finish_field(ac_parser *parser, ac_expr *object)
{
ac_token *fieldName;
if ((fieldName = ac_psr_consume(parser,
TOKEN_IDENTIFIER,
ERROR_UNEXPECTED_TOKEN,
"expected identifier")) == NULL)
{
return NULL;
}
return ac_expr_new_field(object, fieldName);
}
|
O0
|
c
|
ac_psr_finish_field:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movl $0x29, %esi
movl $0x3, %edx
leaq 0x542cb(%rip), %rcx # 0x5e540
callq 0x7440
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0xa28e
movq $0x0, -0x8(%rbp)
jmp 0xa29f
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x7560
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
|
ac_psr_finish_field:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rdi, [rbp+var_10]
mov esi, 29h ; ')'
mov edx, 3
lea rcx, aExpectedIdenti; "expected identifier"
call _ac_psr_consume
mov [rbp+var_20], rax
cmp rax, 0
jnz short loc_A28E
mov [rbp+var_8], 0
jmp short loc_A29F
loc_A28E:
mov rdi, [rbp+var_18]
mov rsi, [rbp+var_20]
call _ac_expr_new_field
mov [rbp+var_8], rax
loc_A29F:
mov rax, [rbp+var_8]
add rsp, 20h
pop rbp
retn
|
long long ac_psr_finish_field(const char **a1, long long a2)
{
long long v3; // [rsp+0h] [rbp-20h]
v3 = ac_psr_consume(a1, 41, 3, "expected identifier");
if ( v3 )
return ac_expr_new_field(a2, v3);
else
return 0LL;
}
|
ac_psr_finish_field:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x29
MOV EDX,0x3
LEA RCX,[0x15e540]
CALL 0x00107440
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JNZ 0x0010a28e
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0010a29f
LAB_0010a28e:
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x00107560
MOV qword ptr [RBP + -0x8],RAX
LAB_0010a29f:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x20
POP RBP
RET
|
int8 ac_psr_finish_field(int8 param_1,int8 param_2)
{
long lVar1;
int8 local_10;
lVar1 = ac_psr_consume(param_1,0x29,3,"expected identifier");
if (lVar1 == 0) {
local_10 = 0;
}
else {
local_10 = ac_expr_new_field(param_2,lVar1);
}
return local_10;
}
|
|
16,222
|
my_snprintf_mb2
|
eloqsql/strings/ctype-ucs2.c
|
static size_t
my_snprintf_mb2(CHARSET_INFO *cs __attribute__((unused)),
char* to, size_t n, const char* fmt, ...)
{
size_t ret;
va_list args;
va_start(args,fmt);
ret= my_vsnprintf_mb2(to, n, fmt, args);
va_end(args);
return ret;
}
|
O0
|
c
|
my_snprintf_mb2:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
testb %al, %al
je 0x50d3b
movaps %xmm0, -0xc0(%rbp)
movaps %xmm1, -0xb0(%rbp)
movaps %xmm2, -0xa0(%rbp)
movaps %xmm3, -0x90(%rbp)
movaps %xmm4, -0x80(%rbp)
movaps %xmm5, -0x70(%rbp)
movaps %xmm6, -0x60(%rbp)
movaps %xmm7, -0x50(%rbp)
movq %r9, -0xc8(%rbp)
movq %r8, -0xd0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
leaq -0xf0(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movl $0x30, -0x3c(%rbp)
movl $0x20, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
leaq -0x40(%rbp), %rcx
callq 0x541b0
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
addq $0xf0, %rsp
popq %rbp
retq
|
my_snprintf_mb2:
push rbp
mov rbp, rsp
sub rsp, 0F0h
test al, al
jz short loc_50D3B
movaps [rbp+var_C0], xmm0
movaps [rbp+var_B0], xmm1
movaps [rbp+var_A0], xmm2
movaps [rbp+var_90], xmm3
movaps [rbp+var_80], xmm4
movaps [rbp+var_70], xmm5
movaps [rbp+var_60], xmm6
movaps [rbp+var_50], xmm7
loc_50D3B:
mov [rbp+var_C8], r9
mov [rbp+var_D0], r8
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
lea rax, [rbp+var_F0]
mov [rbp+var_30], rax
lea rax, [rbp+arg_0]
mov [rbp+var_38], rax
mov [rbp+var_3C], 30h ; '0'
mov [rbp+var_40], 20h ; ' '
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
lea rcx, [rbp+var_40]
call my_vsnprintf_mb2
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
add rsp, 0F0h
pop rbp
retn
|
long long my_snprintf_mb2(
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 v16; // [rsp+0h] [rbp-F0h] BYREF
long long v17; // [rsp+20h] [rbp-D0h]
long long v18; // [rsp+28h] [rbp-C8h]
__m128 v19; // [rsp+30h] [rbp-C0h]
__m128 v20; // [rsp+40h] [rbp-B0h]
__m128 v21; // [rsp+50h] [rbp-A0h]
__m128 v22; // [rsp+60h] [rbp-90h]
__m128 v23; // [rsp+70h] [rbp-80h]
__m128 v24; // [rsp+80h] [rbp-70h]
__m128 v25; // [rsp+90h] [rbp-60h]
__m128 v26; // [rsp+A0h] [rbp-50h]
_DWORD v27[2]; // [rsp+B0h] [rbp-40h] BYREF
char *v28; // [rsp+B8h] [rbp-38h]
char *v29; // [rsp+C0h] [rbp-30h]
long long v30; // [rsp+D0h] [rbp-20h]
long long v31; // [rsp+D8h] [rbp-18h]
long long v32; // [rsp+E0h] [rbp-10h]
long long v33; // [rsp+E8h] [rbp-8h]
v19 = a7;
v20 = a8;
v21 = a9;
v22 = a10;
v23 = a11;
v24 = a12;
v25 = a13;
v26 = a14;
v18 = a6;
v17 = a5;
v33 = a1;
v32 = a2;
v31 = a3;
v30 = a4;
v29 = &v16;
v28 = &a15;
v27[1] = 48;
v27[0] = 32;
return my_vsnprintf_mb2(a2, a3, a4, v27);
}
|
my_snprintf_mb2:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xf0
TEST AL,AL
JZ 0x00150d3b
MOVAPS xmmword ptr [RBP + -0xc0],XMM0
MOVAPS xmmword ptr [RBP + -0xb0],XMM1
MOVAPS xmmword ptr [RBP + -0xa0],XMM2
MOVAPS xmmword ptr [RBP + -0x90],XMM3
MOVAPS xmmword ptr [RBP + -0x80],XMM4
MOVAPS xmmword ptr [RBP + -0x70],XMM5
MOVAPS xmmword ptr [RBP + -0x60],XMM6
MOVAPS xmmword ptr [RBP + -0x50],XMM7
LAB_00150d3b:
MOV qword ptr [RBP + -0xc8],R9
MOV qword ptr [RBP + -0xd0],R8
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
LEA RAX,[RBP + -0xf0]
MOV qword ptr [RBP + -0x30],RAX
LEA RAX,[RBP + 0x10]
MOV qword ptr [RBP + -0x38],RAX
MOV dword ptr [RBP + -0x3c],0x30
MOV dword ptr [RBP + -0x40],0x20
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
LEA RCX,[RBP + -0x40]
CALL 0x001541b0
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RSP,0xf0
POP RBP
RET
|
int8
my_snprintf_mb2(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)
{
char in_AL;
int8 uVar1;
int1 local_f8 [32];
int8 local_d8;
int8 local_d0;
int8 local_c8;
int8 local_b8;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
int8 local_68;
int8 local_58;
int4 local_48;
int4 local_44;
int1 *local_40;
int1 *local_38;
int8 local_28;
int8 local_20;
int8 local_18;
int8 local_10;
if (in_AL != '\0') {
local_c8 = param_1;
local_b8 = param_2;
local_a8 = param_3;
local_98 = param_4;
local_88 = param_5;
local_78 = param_6;
local_68 = param_7;
local_58 = param_8;
}
local_38 = local_f8;
local_40 = &stack0x00000008;
local_44 = 0x30;
local_48 = 0x20;
local_d8 = param_13;
local_d0 = param_14;
local_28 = param_12;
local_20 = param_11;
local_18 = param_10;
local_10 = param_9;
uVar1 = my_vsnprintf_mb2(param_10,param_11,param_12,&local_48);
return uVar1;
}
|
|
16,223
|
ftxui::focusCursorBlockBlinking(std::shared_ptr<ftxui::Node>)
|
Andrewchistyakov[P]flashcards_lyc/build_O2/_deps/ftxui-src/src/ftxui/dom/frame.cpp
|
Element focusCursorBlockBlinking(Element child) {
return std::make_shared<FocusCursor>(unpack(std::move(child)),
Screen::Cursor::BlockBlinking);
}
|
O2
|
cpp
|
ftxui::focusCursorBlockBlinking(std::shared_ptr<ftxui::Node>):
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r14
leaq 0x28(%rsp), %rbx
movups (%rsi), %xmm0
andq $0x0, 0x8(%rsi)
movaps %xmm0, -0x8(%rbx)
andq $0x0, (%rsi)
leaq 0x8(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x1d99c
leaq 0x4(%rsp), %rdx
movl $0x1, (%rdx)
leaq 0x30(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2eed6
leaq 0x38(%rsp), %rdi
movaps -0x8(%rdi), %xmm0
andq $0x0, (%rdi)
movups %xmm0, (%r14)
andq $0x0, -0x8(%rdi)
callq 0x13452
leaq 0x8(%rsp), %rdi
callq 0x13b2c
movq %rbx, %rdi
callq 0x13452
movq %r14, %rax
addq $0x48, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x13b2c
jmp 0x2f066
movq %rax, %r14
movq %rbx, %rdi
callq 0x13452
movq %r14, %rdi
callq 0xc7f0
|
_ZN5ftxui24focusCursorBlockBlinkingESt10shared_ptrINS_4NodeEE:
push r14
push rbx
sub rsp, 48h
mov r14, rdi
lea rbx, [rsp+58h+var_30]
movups xmm0, xmmword ptr [rsi]
and qword ptr [rsi+8], 0
movaps xmmword ptr [rbx-8], xmm0
and qword ptr [rsi], 0
lea rdi, [rsp+58h+var_50]
lea rsi, [rsp+58h+var_38]
call _ZN5ftxui6unpackIJSt10shared_ptrINS_4NodeEEEEESt6vectorIS3_SaIS3_EEDpT_; ftxui::unpack<std::shared_ptr<ftxui::Node>>(std::shared_ptr<ftxui::Node>)
lea rdx, [rsp+58h+var_54]
mov dword ptr [rdx], 1
lea rdi, [rsp+58h+var_28]
lea rsi, [rsp+58h+var_50]
call _ZSt11make_sharedIN5ftxui12_GLOBAL__N_111FocusCursorEJSt6vectorISt10shared_ptrINS0_4NodeEESaIS6_EENS0_6Screen6Cursor5ShapeEEES4_IT_EDpOT0_; std::make_shared<ftxui::`anonymous namespace'::FocusCursor,std::vector<std::shared_ptr<ftxui::Node>>,ftxui::Screen::Cursor::Shape>(std::vector<std::shared_ptr<ftxui::Node>>,ftxui::Screen::Cursor::Shape &&)
lea rdi, [rsp+58h+var_20]
movaps xmm0, xmmword ptr [rdi-8]
and qword ptr [rdi], 0
movups xmmword ptr [r14], xmm0
and qword ptr [rdi-8], 0
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rsp+58h+var_50]
call _ZNSt6vectorISt10shared_ptrIN5ftxui4NodeEESaIS3_EED2Ev; std::vector<std::shared_ptr<ftxui::Node>>::~vector()
mov rdi, rbx
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rax, r14
add rsp, 48h
pop rbx
pop r14
retn
mov r14, rax
lea rdi, [rsp+arg_0]
call _ZNSt6vectorISt10shared_ptrIN5ftxui4NodeEESaIS3_EED2Ev; std::vector<std::shared_ptr<ftxui::Node>>::~vector()
jmp short loc_2F066
mov r14, rax
loc_2F066:
mov rdi, rbx
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, r14
call __Unwind_Resume
|
_OWORD * ftxui::focusCursorBlockBlinking(_OWORD *a1, __int128 *a2)
{
__int128 v2; // xmm0
__int128 v3; // xmm0
int v5; // [rsp+4h] [rbp-54h] BYREF
__int128 v6; // [rsp+8h] [rbp-50h] BYREF
__int128 v7; // [rsp+20h] [rbp-38h] BYREF
_OWORD v8[2]; // [rsp+30h] [rbp-28h] BYREF
v2 = *a2;
*((_QWORD *)a2 + 1) = 0LL;
v7 = v2;
*(_QWORD *)a2 = 0LL;
ftxui::unpack<std::shared_ptr<ftxui::Node>>((long long)&v6, (long long)&v7);
v5 = 1;
std::make_shared<ftxui::`anonymous namespace'::FocusCursor,std::vector<std::shared_ptr<ftxui::Node>>,ftxui::Screen::Cursor::Shape>(
v8,
&v6,
&v5);
v3 = v8[0];
*((_QWORD *)&v8[0] + 1) = 0LL;
*a1 = v3;
*(_QWORD *)&v8[0] = 0LL;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)v8 + 1);
std::vector<std::shared_ptr<ftxui::Node>>::~vector(&v6);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)&v7 + 1);
return a1;
}
|
focusCursorBlockBlinking:
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV R14,RDI
LEA RBX,[RSP + 0x28]
MOVUPS XMM0,xmmword ptr [RSI]
AND qword ptr [RSI + 0x8],0x0
MOVAPS xmmword ptr [RBX + -0x8],XMM0
AND qword ptr [RSI],0x0
LAB_0012eff3:
LEA RDI,[RSP + 0x8]
LEA RSI,[RSP + 0x20]
CALL 0x0011d99c
LEA RDX,[RSP + 0x4]
MOV dword ptr [RDX],0x1
LAB_0012f00d:
LEA RDI,[RSP + 0x30]
LEA RSI,[RSP + 0x8]
CALL 0x0012eed6
LAB_0012f01c:
LEA RDI,[RSP + 0x38]
MOVAPS XMM0,xmmword ptr [RDI + -0x8]
AND qword ptr [RDI],0x0
MOVUPS xmmword ptr [R14],XMM0
AND qword ptr [RDI + -0x8],0x0
CALL 0x00113452
LEA RDI,[RSP + 0x8]
CALL 0x00113b2c
MOV RDI,RBX
CALL 0x00113452
MOV RAX,R14
ADD RSP,0x48
POP RBX
POP R14
RET
|
/* ftxui::focusCursorBlockBlinking(std::shared_ptr<ftxui::Node>) */
ftxui * __thiscall ftxui::focusCursorBlockBlinking(ftxui *this,int8 *param_2)
{
int8 uVar1;
ftxui local_50 [24];
int4 local_38;
int4 uStack_34;
int4 uStack_30;
int4 uStack_2c;
int8 local_28;
int8 auStack_20 [2];
local_38 = *(int4 *)param_2;
uStack_34 = *(int4 *)((long)param_2 + 4);
uStack_30 = *(int4 *)(param_2 + 1);
uStack_2c = *(int4 *)((long)param_2 + 0xc);
param_2[1] = 0;
*param_2 = 0;
/* try { // try from 0012eff3 to 0012f001 has its CatchHandler @ 0012f063 */
unpack<std::shared_ptr<ftxui::Node>>(local_50,&local_38);
/* try { // try from 0012f00d to 0012f01b has its CatchHandler @ 0012f054 */
std::
make_shared<ftxui::(anonymous_namespace)::FocusCursor,std::vector<std::shared_ptr<ftxui::Node>,std::allocator<std::shared_ptr<ftxui::Node>>>,ftxui::Screen::Cursor::Shape>
((vector *)&local_28,(Shape *)local_50);
uVar1 = auStack_20[0];
auStack_20[0] = 0;
*(int8 *)this = local_28;
*(int8 *)(this + 8) = uVar1;
local_28 = 0;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)auStack_20);
std::vector<std::shared_ptr<ftxui::Node>,std::allocator<std::shared_ptr<ftxui::Node>>>::~vector
((vector<std::shared_ptr<ftxui::Node>,std::allocator<std::shared_ptr<ftxui::Node>>> *)
local_50);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&uStack_30);
return this;
}
|
|
16,224
|
minja::FilterNode::do_render(std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, std::shared_ptr<minja::Context> const&) const
|
llama.cpp/common/minja/minja.hpp
|
void do_render(std::ostringstream & out, const std::shared_ptr<Context> & context) const override {
if (!filter) throw std::runtime_error("FilterNode.filter is null");
if (!body) throw std::runtime_error("FilterNode.body is null");
auto filter_value = filter->evaluate(context);
if (!filter_value.is_callable()) {
throw std::runtime_error("Filter must be a callable: " + filter_value.dump());
}
std::string rendered_body = body->render(context);
ArgumentsValue filter_args = {{Value(rendered_body)}, {}};
auto result = filter_value.call(context, filter_args);
out << result.to_str();
}
|
O3
|
cpp
|
minja::FilterNode::do_render(std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, std::shared_ptr<minja::Context> const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x110, %rsp # imm = 0x110
movq %rsi, %rbx
movq 0x20(%rdi), %rsi
testq %rsi, %rsi
je 0xf54a3
movq %rdi, %r14
cmpq $0x0, 0x30(%rdi)
je 0xf54c1
movq %rdx, %r15
leaq 0xc0(%rsp), %r12
movq %r12, %rdi
callq 0xe15ec
cmpq $0x0, 0x30(%r12)
je 0xf54f3
movq 0x30(%r14), %rsi
leaq 0xa0(%rsp), %rdi
movq %r15, %rdx
callq 0xbc298
leaq 0x50(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0xbc136
movq %rsp, %rdi
leaq 0x50(%rsp), %rsi
leaq 0x30(%rsp), %rcx
movl $0x1, %edx
callq 0xc2c34
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rsp)
movq $0x0, 0x28(%rsp)
leaq 0x90(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x8538a
movq %r14, %rdi
callq 0x89aa4
leaq 0x88(%rsp), %rdi
callq 0x70a60
leaq 0x78(%rsp), %rdi
callq 0x70a60
leaq 0x68(%rsp), %r14
movq %r14, %rdi
callq 0x70a60
movq -0x10(%r14), %rdi
testq %rdi, %rdi
je 0xf531d
movq 0x6dca0(%rip), %rax # 0x162f98
cmpb $0x0, (%rax)
je 0xf5308
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0xf5312
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0xf531d
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x18(%rsp), %r14
leaq 0x50(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
movq %rsp, %rcx
movq %r15, %rdx
callq 0xca3f0
leaq 0x30(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0xc7354
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq %rbx, %rdi
callq 0x21080
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf5376
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x20180
leaq 0x90(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x8538a
movq %rbx, %rdi
callq 0x89aa4
leaq 0x88(%rsp), %rdi
callq 0x70a60
leaq 0x78(%rsp), %rdi
callq 0x70a60
leaq 0x68(%rsp), %rbx
movq %rbx, %rdi
callq 0x70a60
movq -0x10(%rbx), %rdi
testq %rdi, %rdi
je 0xf53e9
movq 0x6dbd4(%rip), %rax # 0x162f98
cmpb $0x0, (%rax)
je 0xf53d4
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0xf53de
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0xf53e9
movq (%rdi), %rax
callq *0x18(%rax)
movq %r14, %rdi
callq 0xcaaba
movq %rsp, %rdi
callq 0xbe254
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf541a
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x20180
leaq 0x100(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x8538a
movq %rbx, %rdi
callq 0x89aa4
leaq 0xf8(%rsp), %rdi
callq 0x70a60
leaq 0xe8(%rsp), %rdi
callq 0x70a60
leaq 0xd8(%rsp), %rbx
movq %rbx, %rdi
callq 0x70a60
movq -0x10(%rbx), %rdi
testq %rdi, %rdi
je 0xf5493
movq 0x6db2a(%rip), %rax # 0x162f98
cmpb $0x0, (%rax)
je 0xf547e
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0xf5488
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0xf5493
movq (%rdi), %rax
callq *0x18(%rax)
addq $0x110, %rsp # imm = 0x110
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x20650
movq %rax, %r14
leaq 0x2d23f(%rip), %rsi # 0x1226f6
movq %rax, %rdi
callq 0x20430
jmp 0xf54dd
movl $0x10, %edi
callq 0x20650
movq %rax, %r14
leaq 0x2d23b(%rip), %rsi # 0x122710
movq %rax, %rdi
callq 0x20430
movq 0x6dadc(%rip), %rsi # 0x162fc0
movq 0x6da95(%rip), %rdx # 0x162f80
movq %r14, %rdi
callq 0x20a50
movl $0x10, %edi
callq 0x20650
movq %rax, %r14
movq %rsp, %rdi
leaq 0xc0(%rsp), %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0xb6330
leaq 0x2d20a(%rip), %rsi # 0x122728
leaq 0x50(%rsp), %rdi
movq %rsp, %rdx
callq 0xafbd0
movb $0x1, %bpl
leaq 0x50(%rsp), %rsi
movq %r14, %rdi
callq 0x20480
xorl %ebp, %ebp
movq 0x6da7c(%rip), %rsi # 0x162fc0
movq 0x6da35(%rip), %rdx # 0x162f80
movq %r14, %rdi
callq 0x20a50
movq %rax, %rbx
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf5571
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x20180
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf558c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x20180
testb %bpl, %bpl
jne 0xf55b9
jmp 0xf5654
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf55b9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x20180
jmp 0xf55b9
movq %rax, %rbx
movq %r14, %rdi
callq 0x20f00
jmp 0xf5654
jmp 0xf55c8
movq %rax, %rbx
movq %r14, %rdi
callq 0x20f00
jmp 0xf5661
movq %rax, %rbx
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf55fb
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x20180
jmp 0xf55fb
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xb63cc
jmp 0xf560a
movq %rax, %rbx
movq %r14, %rdi
callq 0xcaaba
movq %rsp, %rdi
callq 0xbe254
jmp 0xf562e
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xb63cc
jmp 0xf562e
movq %rax, %rbx
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf5654
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x20180
jmp 0xf5654
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0xb63cc
movq %rbx, %rdi
callq 0x20af0
nop
|
_ZNK5minja10FilterNode9do_renderERNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEERKSt10shared_ptrINS_7ContextEE:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 110h
mov rbx, rsi
mov rsi, [rdi+20h]
test rsi, rsi
jz loc_F54A3
mov r14, rdi
cmp qword ptr [rdi+30h], 0
jz loc_F54C1
mov r15, rdx
lea r12, [rsp+138h+var_78]
mov rdi, r12
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
cmp qword ptr [r12+30h], 0
jz loc_F54F3
mov rsi, [r14+30h]
lea rdi, [rsp+138h+var_98]
mov rdx, r15
call _ZNK5minja12TemplateNode6renderB5cxx11ERKSt10shared_ptrINS_7ContextEE; minja::TemplateNode::render(std::shared_ptr<minja::Context> const&)
lea rdi, [rsp+138h+var_E8]
lea rsi, [rsp+138h+var_98]
call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&)
mov rdi, rsp
lea rsi, [rsp+138h+var_E8]
lea rcx, [rsp+138h+var_108]
mov edx, 1
call _ZNSt6vectorIN5minja5ValueESaIS1_EEC2ESt16initializer_listIS1_ERKS2_; std::vector<minja::Value>::vector(std::initializer_list<minja::Value>,std::allocator<minja::Value> const&)
xorps xmm0, xmm0
movups [rsp+138h+var_120], xmm0
mov [rsp+138h+var_110], 0
lea r14, [rsp+138h+var_A8]
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()
lea rdi, [rsp+138h+var_B0]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rsp+138h+var_C0]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea r14, [rsp+138h+var_D0]
mov rdi, r14
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, [r14-10h]
test rdi, rdi
jz short loc_F531D
mov rax, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag
cmp byte ptr [rax], 0
jz short loc_F5308
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_F5312
loc_F5308:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_F5312:
cmp eax, 1
jnz short loc_F531D
mov rax, [rdi]
call qword ptr [rax+18h]
loc_F531D:
lea r14, [rsp+138h+var_120]
lea rdi, [rsp+138h+var_E8]
lea rsi, [rsp+138h+var_78]
mov rcx, rsp
mov rdx, r15
call _ZNK5minja5Value4callERKSt10shared_ptrINS_7ContextEERNS_14ArgumentsValueE; minja::Value::call(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)
lea rdi, [rsp+138h+var_108]
lea rsi, [rsp+138h+var_E8]
call _ZNK5minja5Value6to_strB5cxx11Ev; minja::Value::to_str(void)
mov rsi, [rsp+138h+var_108]
mov rdx, [rsp+138h+var_100]
mov rdi, rbx
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+138h+var_F8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_F5376
mov rsi, [rsp+138h+var_F8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_F5376:
lea rbx, [rsp+138h+var_A8]
mov rdi, rbx
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, 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()
lea rdi, [rsp+138h+var_B0]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rsp+138h+var_C0]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rbx, [rsp+138h+var_D0]
mov rdi, rbx
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, [rbx-10h]
test rdi, rdi
jz short loc_F53E9
mov rax, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag
cmp byte ptr [rax], 0
jz short loc_F53D4
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_F53DE
loc_F53D4:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_F53DE:
cmp eax, 1
jnz short loc_F53E9
mov rax, [rdi]
call qword ptr [rax+18h]
loc_F53E9:
mov rdi, r14
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5minja5ValueEESaIS9_EED2Ev; std::vector<std::pair<std::string,minja::Value>>::~vector()
mov rdi, rsp
call _ZNSt6vectorIN5minja5ValueESaIS1_EED2Ev; std::vector<minja::Value>::~vector()
lea rax, [rsp+138h+var_88]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_F541A
mov rsi, [rsp+138h+var_88]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_F541A:
lea rbx, [rsp+138h+var_38]
mov rdi, rbx
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, 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()
lea rdi, [rsp+138h+var_40]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rsp+138h+var_50]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rbx, [rsp+138h+var_60]
mov rdi, rbx
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, [rbx-10h]
test rdi, rdi
jz short loc_F5493
mov rax, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag
cmp byte ptr [rax], 0
jz short loc_F547E
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_F5488
loc_F547E:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_F5488:
cmp eax, 1
jnz short loc_F5493
mov rax, [rdi]
call qword ptr [rax+18h]
loc_F5493:
add rsp, 110h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_F54A3:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aFilternodeFilt; "FilterNode.filter is null"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short loc_F54DD
loc_F54C1:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aFilternodeBody; "FilterNode.body is null"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
loc_F54DD:
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
loc_F54F3:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
mov rdi, rsp
lea rsi, [rsp+138h+var_78]
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aFilterMustBeAC; "Filter must be a callable: "
lea rdi, [rsp+138h+var_E8]
mov rdx, rsp
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+138h+var_E8]
mov rdi, r14
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
mov rbx, rax
lea rax, [rsp+138h+var_D8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_F5571
mov rsi, [rsp+138h+var_D8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_F5571:
lea rax, [rsp+138h+var_128]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_F558C
mov rsi, [rsp+138h+var_128]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_F558C:
test bpl, bpl
jnz short loc_F55B9
jmp loc_F5654
mov rbx, rax
lea rax, [rsp+138h+var_128]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_F55B9
mov rsi, [rsp+138h+var_128]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_F55B9
mov rbx, rax
loc_F55B9:
mov rdi, r14; void *
call ___cxa_free_exception
jmp loc_F5654
jmp short $+2
loc_F55C8:
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp loc_F5661
mov rbx, rax
lea rax, [rsp+138h+var_F8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_F55FB
mov rsi, [rsp+138h+var_F8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_F55FB
mov rbx, rax
loc_F55FB:
lea rdi, [rsp+138h+var_E8]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
jmp short loc_F560A
mov rbx, rax
loc_F560A:
mov rdi, r14
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5minja5ValueEESaIS9_EED2Ev; std::vector<std::pair<std::string,minja::Value>>::~vector()
mov rdi, rsp
call _ZNSt6vectorIN5minja5ValueESaIS1_EED2Ev; std::vector<minja::Value>::~vector()
jmp short loc_F562E
mov rbx, rax
lea rdi, [rsp+138h+var_E8]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
jmp short loc_F562E
mov rbx, rax
loc_F562E:
lea rax, [rsp+138h+var_88]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_F5654
mov rsi, [rsp+138h+var_88]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_F5654
mov rbx, rax
loc_F5654:
lea rdi, [rsp+138h+var_78]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
loc_F5661:
mov rdi, rbx
call __Unwind_Resume
|
void minja::FilterNode::do_render(long long a1, long long a2, int a3)
{
void (***v4)(void); // rsi
long long v6; // rdi
signed __int32 v7; // eax
long long v8; // rdi
signed __int32 v9; // eax
long long v10; // rdi
signed __int32 v11; // eax
std::runtime_error *exception; // r14
void *v13; // r14
_QWORD v14[2]; // [rsp+0h] [rbp-138h] BYREF
__int128 v15; // [rsp+18h] [rbp-120h] BYREF
long long v16; // [rsp+28h] [rbp-110h]
void *v17[2]; // [rsp+30h] [rbp-108h] BYREF
long long v18; // [rsp+40h] [rbp-F8h] BYREF
long long v19; // [rsp+50h] [rbp-E8h] BYREF
long long v20; // [rsp+58h] [rbp-E0h]
volatile signed __int32 *v21[2]; // [rsp+68h] [rbp-D0h] BYREF
volatile signed __int32 *v22[2]; // [rsp+78h] [rbp-C0h] BYREF
volatile signed __int32 *v23; // [rsp+88h] [rbp-B0h] BYREF
char v24[16]; // [rsp+90h] [rbp-A8h] BYREF
void *v25[2]; // [rsp+A0h] [rbp-98h] BYREF
long long v26; // [rsp+B0h] [rbp-88h] BYREF
_BYTE v27[8]; // [rsp+C0h] [rbp-78h] BYREF
long long v28; // [rsp+C8h] [rbp-70h]
volatile signed __int32 *v29; // [rsp+D8h] [rbp-60h] BYREF
volatile signed __int32 *v30[2]; // [rsp+E8h] [rbp-50h] BYREF
volatile signed __int32 *v31; // [rsp+F8h] [rbp-40h] BYREF
char v32[56]; // [rsp+100h] [rbp-38h] BYREF
v4 = *(void (****)(void))(a1 + 32);
if ( !v4 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "FilterNode.filter is null");
goto LABEL_29;
}
if ( !*(_QWORD *)(a1 + 48) )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "FilterNode.body is null");
LABEL_29:
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
minja::Expression::evaluate((long long)v27, v4);
if ( !v30[1] )
{
v13 = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v14, (long long)v27, 0xFFFFFFFF, 0);
std::operator+<char>(&v19, (long long)"Filter must be a callable: ", (long long)v14);
std::runtime_error::runtime_error(v13, &v19);
__cxa_throw(
v13,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
minja::TemplateNode::render[abi:cxx11]((long long)v25, *(_QWORD *)(a1 + 48), a3);
minja::Value::Value((long long)&v19, (long long)v25);
std::vector<minja::Value>::vector((long long)v14, (long long)&v19, 1LL);
v15 = 0LL;
v16 = 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(v24);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v24);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v23);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v22);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v21);
v6 = v20;
if ( v20 )
{
if ( _libc_single_threaded )
{
v7 = *(_DWORD *)(v20 + 12);
*(_DWORD *)(v20 + 12) = v7 - 1;
}
else
{
v7 = _InterlockedExchangeAdd((volatile signed __int32 *)(v20 + 12), 0xFFFFFFFF);
}
if ( v7 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v6 + 24LL))(v6, 0LL);
}
minja::Value::call((long long)&v19, (long long)v27);
minja::Value::to_str[abi:cxx11](v17, (long long)&v19);
std::__ostream_insert<char,std::char_traits<char>>(a2, v17[0], v17[1]);
if ( v17[0] != &v18 )
operator delete(v17[0], v18 + 1);
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(v24);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v24);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v23);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v22);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v21);
v8 = v20;
if ( v20 )
{
if ( _libc_single_threaded )
{
v9 = *(_DWORD *)(v20 + 12);
*(_DWORD *)(v20 + 12) = v9 - 1;
}
else
{
v9 = _InterlockedExchangeAdd((volatile signed __int32 *)(v20 + 12), 0xFFFFFFFF);
}
if ( v9 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v8 + 24LL))(v8, 0LL);
}
std::vector<std::pair<std::string,minja::Value>>::~vector(&v15);
std::vector<minja::Value>::~vector(v14);
if ( v25[0] != &v26 )
operator delete(v25[0], v26 + 1);
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(v32);
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(v32);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v31);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v30);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v29);
v10 = v28;
if ( v28 )
{
if ( _libc_single_threaded )
{
v11 = *(_DWORD *)(v28 + 12);
*(_DWORD *)(v28 + 12) = v11 - 1;
}
else
{
v11 = _InterlockedExchangeAdd((volatile signed __int32 *)(v28 + 12), 0xFFFFFFFF);
}
if ( v11 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v10 + 24LL))(v10, 0LL);
}
}
|
do_render:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x110
MOV RBX,RSI
MOV RSI,qword ptr [RDI + 0x20]
TEST RSI,RSI
JZ 0x001f54a3
MOV R14,RDI
CMP qword ptr [RDI + 0x30],0x0
JZ 0x001f54c1
MOV R15,RDX
LEA R12,[RSP + 0xc0]
MOV RDI,R12
CALL 0x001e15ec
CMP qword ptr [R12 + 0x30],0x0
JZ 0x001f54f3
MOV RSI,qword ptr [R14 + 0x30]
LAB_001f5260:
LEA RDI,[RSP + 0xa0]
MOV RDX,R15
CALL 0x001bc298
LAB_001f5270:
LEA RDI,[RSP + 0x50]
LEA RSI,[RSP + 0xa0]
CALL 0x001bc136
LAB_001f5282:
MOV RDI,RSP
LEA RSI,[RSP + 0x50]
LEA RCX,[RSP + 0x30]
MOV EDX,0x1
CALL 0x001c2c34
LAB_001f5299:
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSP + 0x18],XMM0
MOV qword ptr [RSP + 0x28],0x0
LEA R14,[RSP + 0x90]
MOV RDI,R14
XOR ESI,ESI
CALL 0x0018538a
MOV RDI,R14
CALL 0x00189aa4
LEA RDI,[RSP + 0x88]
CALL 0x00170a60
LEA RDI,[RSP + 0x78]
CALL 0x00170a60
LEA R14,[RSP + 0x68]
MOV RDI,R14
CALL 0x00170a60
MOV RDI,qword ptr [R14 + -0x10]
TEST RDI,RDI
JZ 0x001f531d
MOV RAX,qword ptr [0x00262f98]
CMP byte ptr [RAX],0x0
JZ 0x001f5308
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x001f5312
LAB_001f5308:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_001f5312:
CMP EAX,0x1
JNZ 0x001f531d
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_001f531d:
LEA R14,[RSP + 0x18]
LEA RDI,[RSP + 0x50]
LEA RSI,[RSP + 0xc0]
MOV RCX,RSP
MOV RDX,R15
CALL 0x001ca3f0
LAB_001f533a:
LEA RDI,[RSP + 0x30]
LEA RSI,[RSP + 0x50]
CALL 0x001c7354
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RSP + 0x38]
LAB_001f5353:
MOV RDI,RBX
CALL 0x00121080
LAB_001f535b:
LEA RAX,[RSP + 0x40]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001f5376
MOV RSI,qword ptr [RSP + 0x40]
INC RSI
CALL 0x00120180
LAB_001f5376:
LEA RBX,[RSP + 0x90]
MOV RDI,RBX
XOR ESI,ESI
CALL 0x0018538a
MOV RDI,RBX
CALL 0x00189aa4
LEA RDI,[RSP + 0x88]
CALL 0x00170a60
LEA RDI,[RSP + 0x78]
CALL 0x00170a60
LEA RBX,[RSP + 0x68]
MOV RDI,RBX
CALL 0x00170a60
MOV RDI,qword ptr [RBX + -0x10]
TEST RDI,RDI
JZ 0x001f53e9
MOV RAX,qword ptr [0x00262f98]
CMP byte ptr [RAX],0x0
JZ 0x001f53d4
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x001f53de
LAB_001f53d4:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_001f53de:
CMP EAX,0x1
JNZ 0x001f53e9
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_001f53e9:
MOV RDI,R14
CALL 0x001caaba
MOV RDI,RSP
CALL 0x001be254
LEA RAX,[RSP + 0xb0]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001f541a
MOV RSI,qword ptr [RSP + 0xb0]
INC RSI
CALL 0x00120180
LAB_001f541a:
LEA RBX,[RSP + 0x100]
MOV RDI,RBX
XOR ESI,ESI
CALL 0x0018538a
MOV RDI,RBX
CALL 0x00189aa4
LEA RDI,[RSP + 0xf8]
CALL 0x00170a60
LEA RDI,[RSP + 0xe8]
CALL 0x00170a60
LEA RBX,[RSP + 0xd8]
MOV RDI,RBX
CALL 0x00170a60
MOV RDI,qword ptr [RBX + -0x10]
TEST RDI,RDI
JZ 0x001f5493
MOV RAX,qword ptr [0x00262f98]
CMP byte ptr [RAX],0x0
JZ 0x001f547e
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x001f5488
LAB_001f547e:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_001f5488:
CMP EAX,0x1
JNZ 0x001f5493
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_001f5493:
ADD RSP,0x110
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_001f54a3:
MOV EDI,0x10
CALL 0x00120650
MOV R14,RAX
LAB_001f54b0:
LEA RSI,[0x2226f6]
MOV RDI,RAX
CALL 0x00120430
LAB_001f54bf:
JMP 0x001f54dd
LAB_001f54c1:
MOV EDI,0x10
CALL 0x00120650
MOV R14,RAX
LAB_001f54ce:
LEA RSI,[0x222710]
MOV RDI,RAX
CALL 0x00120430
LAB_001f54dd:
MOV RSI,qword ptr [0x00262fc0]
MOV RDX,qword ptr [0x00262f80]
MOV RDI,R14
CALL 0x00120a50
LAB_001f54f3:
MOV EDI,0x10
CALL 0x00120650
MOV R14,RAX
LAB_001f5500:
MOV RDI,RSP
LEA RSI,[RSP + 0xc0]
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x001b6330
LAB_001f5517:
LEA RSI,[0x222728]
LEA RDI,[RSP + 0x50]
MOV RDX,RSP
CALL 0x001afbd0
MOV BPL,0x1
LAB_001f552e:
LEA RSI,[RSP + 0x50]
MOV RDI,R14
CALL 0x00120480
XOR EBP,EBP
MOV RSI,qword ptr [0x00262fc0]
MOV RDX,qword ptr [0x00262f80]
MOV RDI,R14
CALL 0x00120a50
|
/* minja::FilterNode::do_render(std::__cxx11::ostringstream&, std::shared_ptr<minja::Context>
const&) const */
void minja::FilterNode::do_render(ostringstream *param_1,shared_ptr *param_2)
{
int *piVar1;
int iVar2;
runtime_error *prVar3;
vector<minja::Value,std::allocator<minja::Value>> avStack_138 [24];
int8 local_120;
int8 uStack_118;
int8 local_110;
long *local_108;
long local_100;
long local_f8 [2];
Value local_e8 [8];
long *local_e0;
__shared_count<(__gnu_cxx::_Lock_policy)2> local_d0 [16];
__shared_count<(__gnu_cxx::_Lock_policy)2> local_c0 [16];
__shared_count<(__gnu_cxx::_Lock_policy)2> local_b0 [8];
data local_a8 [16];
long *local_98 [2];
long local_88 [2];
Expression local_78 [8];
long *local_70;
__shared_count<(__gnu_cxx::_Lock_policy)2> local_60 [16];
__shared_count<(__gnu_cxx::_Lock_policy)2> local_50 [8];
long local_48;
__shared_count<(__gnu_cxx::_Lock_policy)2> local_40 [8];
data local_38 [16];
if (*(shared_ptr **)(param_1 + 0x20) == (shared_ptr *)0x0) {
prVar3 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001f54b0 to 001f54be has its CatchHandler @ 001f55c8 */
std::runtime_error::runtime_error(prVar3,"FilterNode.filter is null");
}
else {
if (*(long *)(param_1 + 0x30) != 0) {
Expression::evaluate(local_78,*(shared_ptr **)(param_1 + 0x20));
if (local_48 != 0) {
/* try { // try from 001f5260 to 001f526f has its CatchHandler @ 001f5651 */
TemplateNode::render_abi_cxx11_((TemplateNode *)local_98,*(shared_ptr **)(param_1 + 0x30));
/* try { // try from 001f5270 to 001f5281 has its CatchHandler @ 001f562b */
Value::Value(local_e8,(string *)local_98);
/* try { // try from 001f5282 to 001f5298 has its CatchHandler @ 001f561c */
std::vector<minja::Value,std::allocator<minja::Value>>::vector
(avStack_138,local_e8,1,&local_108);
local_120 = 0;
uStack_118 = 0;
local_110 = 0;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_a8,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_a8);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_b0);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_c0);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_d0);
if (local_e0 != (long *)0x0) {
if (*PTR___libc_single_threaded_00262f98 == '\0') {
LOCK();
piVar1 = (int *)((long)local_e0 + 0xc);
iVar2 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar2 = *(int *)((long)local_e0 + 0xc);
*(int *)((long)local_e0 + 0xc) = iVar2 + -1;
}
if (iVar2 == 1) {
(**(code **)(*local_e0 + 0x18))();
}
}
/* try { // try from 001f531d to 001f5339 has its CatchHandler @ 001f5607 */
Value::call(local_e8,(ArgumentsValue *)local_78);
/* try { // try from 001f533a to 001f5348 has its CatchHandler @ 001f55f8 */
Value::to_str_abi_cxx11_();
/* try { // try from 001f5353 to 001f535a has its CatchHandler @ 001f55d8 */
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)param_2,(char *)local_108,local_100);
if (local_108 != local_f8) {
operator_delete(local_108,local_f8[0] + 1);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_a8,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_a8);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_b0);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_c0);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_d0);
if (local_e0 != (long *)0x0) {
if (*PTR___libc_single_threaded_00262f98 == '\0') {
LOCK();
piVar1 = (int *)((long)local_e0 + 0xc);
iVar2 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar2 = *(int *)((long)local_e0 + 0xc);
*(int *)((long)local_e0 + 0xc) = iVar2 + -1;
}
if (iVar2 == 1) {
(**(code **)(*local_e0 + 0x18))();
}
}
std::
vector<std::pair<std::__cxx11::string,minja::Value>,std::allocator<std::pair<std::__cxx11::string,minja::Value>>>
::~vector((vector<std::pair<std::__cxx11::string,minja::Value>,std::allocator<std::pair<std::__cxx11::string,minja::Value>>>
*)&local_120);
std::vector<minja::Value,std::allocator<minja::Value>>::~vector(avStack_138);
if (local_98[0] != local_88) {
operator_delete(local_98[0],local_88[0] + 1);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_38,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_38);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_40);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_50);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_60);
if (local_70 != (long *)0x0) {
if (*PTR___libc_single_threaded_00262f98 == '\0') {
LOCK();
piVar1 = (int *)((long)local_70 + 0xc);
iVar2 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar2 = *(int *)((long)local_70 + 0xc);
*(int *)((long)local_70 + 0xc) = iVar2 + -1;
}
if (iVar2 == 1) {
(**(code **)(*local_70 + 0x18))();
}
}
return;
}
prVar3 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001f5500 to 001f5516 has its CatchHandler @ 001f55b6 */
Value::dump_abi_cxx11_((int)avStack_138,SUB81(local_78,0));
/* try { // try from 001f5517 to 001f552a has its CatchHandler @ 001f5596 */
std::operator+((char *)local_e8,(string *)"Filter must be a callable: ");
/* try { // try from 001f552e to 001f5552 has its CatchHandler @ 001f5553 */
std::runtime_error::runtime_error(prVar3,(string *)local_e8);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar3,PTR_typeinfo_00262fc0,PTR__runtime_error_00262f80);
}
prVar3 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001f54ce to 001f54dc has its CatchHandler @ 001f55c6 */
std::runtime_error::runtime_error(prVar3,"FilterNode.body is null");
}
/* WARNING: Subroutine does not return */
__cxa_throw(prVar3,PTR_typeinfo_00262fc0,PTR__runtime_error_00262f80);
}
|
|
16,225
|
evmone::baseline::execute(evmone::VM&, evmc_host_interface const&, evmc_host_context*, evmc_revision, evmc_message const&, evmone::baseline::CodeAnalysis const&)
|
corpus-core[P]colibri-stateless/build_O0/_deps/evmone_external-src/lib/evmone/baseline_execution.cpp
|
evmc_result execute(VM& vm, const evmc_host_interface& host, evmc_host_context* ctx,
evmc_revision rev, const evmc_message& msg, const CodeAnalysis& analysis) noexcept
{
const auto code = analysis.executable_code();
const auto code_begin = code.data();
auto gas = msg.gas;
auto& state = vm.get_execution_state(static_cast<size_t>(msg.depth));
state.reset(msg, rev, host, ctx, analysis.raw_code());
state.analysis.baseline = &analysis; // Assign code analysis for instruction implementations.
const auto& cost_table = get_baseline_cost_table(state.rev, analysis.eof_header().version);
auto* tracer = vm.get_tracer();
if (INTX_UNLIKELY(tracer != nullptr))
{
tracer->notify_execution_start(state.rev, *state.msg, code);
gas = dispatch<true>(cost_table, state, gas, code_begin, tracer);
}
else
{
#if EVMONE_CGOTO_SUPPORTED
if (vm.cgoto)
gas = dispatch_cgoto(cost_table, state, gas, code_begin);
else
#endif
gas = dispatch<false>(cost_table, state, gas, code_begin);
}
const auto gas_left = (state.status == EVMC_SUCCESS || state.status == EVMC_REVERT) ? gas : 0;
const auto gas_refund = (state.status == EVMC_SUCCESS) ? state.gas_refund : 0;
assert(state.output_size != 0 || state.output_offset == 0);
const auto result =
(state.deploy_container.has_value() ?
evmc::make_result(state.status, gas_left, gas_refund,
state.deploy_container->data(), state.deploy_container->size()) :
evmc::make_result(state.status, gas_left, gas_refund,
state.output_size != 0 ? &state.memory[state.output_offset] : nullptr,
state.output_size));
if (INTX_UNLIKELY(tracer != nullptr))
tracer->notify_execution_end(result);
return result;
}
|
O0
|
cpp
|
evmone::baseline::execute(evmone::VM&, evmc_host_interface const&, evmc_host_context*, evmc_revision, evmc_message const&, evmone::baseline::CodeAnalysis const&):
pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp # imm = 0x130
movq %rdi, -0xc8(%rbp)
movq %rdi, -0xc0(%rbp)
movq 0x10(%rbp), %rax
movq %rsi, -0x8(%rbp)
movq %rdx, -0x10(%rbp)
movq %rcx, -0x18(%rbp)
movl %r8d, -0x1c(%rbp)
movq %r9, -0x28(%rbp)
movq 0x10(%rbp), %rdi
callq 0x5fd60
movq %rax, -0x38(%rbp)
movq %rdx, -0x30(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x5fd80
movq %rax, -0x40(%rbp)
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rax
movslq 0x8(%rax), %rsi
callq 0x38b90
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0xb0(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x98(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq 0x10(%rbp), %rdi
callq 0x5ffa0
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rcx
movq -0xa0(%rbp), %r8
movq %rax, %r9
movq %rdx, %rax
movl -0x98(%rbp), %edx
movq %r9, -0x60(%rbp)
movq %rax, -0x58(%rbp)
leaq -0x60(%rbp), %rax
movq (%rax), %r9
movq %r9, (%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x8(%rsp)
callq 0x5fda0
movq 0x10(%rbp), %rcx
movq -0x50(%rbp), %rax
movq %rcx, 0x1f8(%rax)
movq -0x50(%rbp), %rax
movl 0x40(%rax), %eax
movl %eax, -0x94(%rbp)
movq 0x10(%rbp), %rdi
callq 0x5ffc0
movl -0x94(%rbp), %edi
movzbl (%rax), %esi
callq 0x71fd0
movq %rax, -0x68(%rbp)
movq -0x8(%rbp), %rdi
callq 0x5ffe0
movq %rax, -0x70(%rbp)
cmpq $0x0, -0x70(%rbp)
je 0x401d1
movq -0x70(%rbp), %rdi
movq -0x50(%rbp), %rax
movl 0x40(%rax), %esi
movq -0x50(%rbp), %rax
movq 0x20(%rax), %rdx
movq -0x38(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x80(%rbp), %rcx
movq -0x78(%rbp), %r8
callq 0x60000
movq -0x68(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq -0x40(%rbp), %rcx
movq -0x70(%rbp), %r8
callq 0x40450
movq %rax, -0x48(%rbp)
jmp 0x40216
movq -0x8(%rbp), %rax
testb $0x1, 0x38(%rax)
je 0x401f6
movq -0x68(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq -0x40(%rbp), %rcx
callq 0x45510
movq %rax, -0x48(%rbp)
jmp 0x40214
movq -0x68(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq -0x40(%rbp), %rcx
xorl %eax, %eax
movl %eax, %r8d
callq 0x4b710
movq %rax, -0x48(%rbp)
jmp 0x40216
movq -0x50(%rbp), %rax
cmpl $0x0, 0x78(%rax)
je 0x4022a
movq -0x50(%rbp), %rax
cmpl $0x2, 0x78(%rax)
jne 0x40237
movq -0x48(%rbp), %rax
movq %rax, -0xd0(%rbp)
jmp 0x40242
xorl %eax, %eax
movq %rax, -0xd0(%rbp)
jmp 0x40242
movq -0xd0(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x50(%rbp), %rax
cmpl $0x0, 0x78(%rax)
jne 0x4026a
movq -0x50(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xd8(%rbp)
jmp 0x40275
xorl %eax, %eax
movq %rax, -0xd8(%rbp)
jmp 0x40275
movq -0xd8(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x50(%rbp), %rcx
movb $0x1, %al
cmpq $0x0, 0x88(%rcx)
movb %al, -0xd9(%rbp)
jne 0x402ae
movq -0x50(%rbp), %rax
cmpq $0x0, 0x80(%rax)
sete %al
movb %al, -0xd9(%rbp)
movb -0xd9(%rbp), %al
testb $0x1, %al
jne 0x402ba
jmp 0x402bc
jmp 0x402db
leaq 0x9e075(%rip), %rdi # 0xde338
leaq 0x9ee5a(%rip), %rsi # 0xdf124
movl $0x144, %edx # imm = 0x144
leaq 0x9eedb(%rip), %rcx # 0xdf1b1
callq 0x23120
movq -0x50(%rbp), %rdi
addq $0x90, %rdi
callq 0x600a0
testb $0x1, %al
jne 0x402f4
jmp 0x40381
movq -0x50(%rbp), %rdi
movl 0x78(%rdi), %eax
movl %eax, -0xfc(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0xf0(%rbp)
addq $0x90, %rdi
callq 0x600c0
movq %rax, %rdi
callq 0x600e0
movq %rax, -0xe8(%rbp)
movq -0x50(%rbp), %rdi
addq $0x90, %rdi
callq 0x600c0
movq %rax, %rdi
callq 0x60100
movq -0xc8(%rbp), %rdi
movl -0xfc(%rbp), %esi
movq -0xf8(%rbp), %rdx
movq -0xf0(%rbp), %rcx
movq -0xe8(%rbp), %r8
movq %rax, %r9
callq 0x50770
jmp 0x4037c
jmp 0x4041a
movq -0x50(%rbp), %rax
movl 0x78(%rax), %eax
movl %eax, -0x114(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x50(%rbp), %rax
cmpq $0x0, 0x88(%rax)
je 0x403d9
movq -0x50(%rbp), %rdi
addq $0x8, %rdi
movq -0x50(%rbp), %rax
movq 0x80(%rax), %rsi
callq 0x60120
movq %rax, -0x120(%rbp)
jmp 0x403e4
xorl %eax, %eax
movq %rax, -0x120(%rbp)
jmp 0x403e4
movq -0x108(%rbp), %rcx
movq -0x110(%rbp), %rdx
movl -0x114(%rbp), %esi
movq -0xc8(%rbp), %rdi
movq -0x120(%rbp), %r8
movq -0x50(%rbp), %rax
movq 0x88(%rax), %r9
callq 0x50770
jmp 0x40418
jmp 0x4041a
cmpq $0x0, -0x70(%rbp)
je 0x40431
movq -0xc8(%rbp), %rsi
movq -0x70(%rbp), %rdi
callq 0x60150
movq -0xc0(%rbp), %rax
addq $0x130, %rsp # imm = 0x130
popq %rbp
retq
movq %rax, %rdi
callq 0x37a70
nopl (%rax)
|
_ZN6evmone8baseline7executeERNS_2VMERK19evmc_host_interfaceP17evmc_host_context13evmc_revisionRK12evmc_messageRKNS0_12CodeAnalysisE:
push rbp
mov rbp, rsp
sub rsp, 130h
mov [rbp+var_C8], rdi
mov [rbp+var_C0], rdi
mov rax, [rbp+arg_0]
mov [rbp+var_8], rsi
mov [rbp+var_10], rdx
mov [rbp+var_18], rcx
mov [rbp+var_1C], r8d
mov [rbp+var_28], r9
mov rdi, [rbp+arg_0]; this
call _ZNK6evmone8baseline12CodeAnalysis15executable_codeEv; evmone::baseline::CodeAnalysis::executable_code(void)
mov [rbp+var_38], rax
mov [rbp+var_30], rdx
lea rdi, [rbp+var_38]
call _ZNKSt17basic_string_viewIhN4evmc11byte_traitsIhEEE4dataEv; std::basic_string_view<uchar,evmc::byte_traits<uchar>>::data(void)
mov [rbp+var_40], rax
mov rax, [rbp+var_28]
mov rax, [rax+10h]
mov [rbp+var_48], rax
mov rdi, [rbp+var_8]; this
mov rax, [rbp+var_28]
movsxd rsi, dword ptr [rax+8]; unsigned __int64
call _ZN6evmone2VM19get_execution_stateEm; evmone::VM::get_execution_state(ulong)
mov [rbp+var_50], rax
mov rax, [rbp+var_50]
mov [rbp+var_B8], rax
mov rax, [rbp+var_28]
mov [rbp+var_B0], rax
mov eax, [rbp+var_1C]
mov [rbp+var_98], eax
mov rax, [rbp+var_10]
mov [rbp+var_A8], rax
mov rax, [rbp+var_18]
mov [rbp+var_A0], rax
mov rdi, [rbp+arg_0]; this
call _ZNK6evmone8baseline12CodeAnalysis8raw_codeEv; evmone::baseline::CodeAnalysis::raw_code(void)
mov rdi, [rbp+var_B8]
mov rsi, [rbp+var_B0]
mov rcx, [rbp+var_A8]
mov r8, [rbp+var_A0]
mov r9, rax
mov rax, rdx
mov edx, [rbp+var_98]
mov [rbp+var_60], r9
mov [rbp+var_58], rax
lea rax, [rbp+var_60]
mov r9, [rax]
mov [rsp+130h+var_130], r9
mov rax, [rax+8]
mov [rsp+130h+var_128], rax
call _ZN6evmone14ExecutionState5resetERK12evmc_message13evmc_revisionRK19evmc_host_interfaceP17evmc_host_contextSt17basic_string_viewIhN4evmc11byte_traitsIhEEE; evmone::ExecutionState::reset(evmc_message const&,evmc_revision,evmc_host_interface const&,evmc_host_context *,std::basic_string_view<uchar,evmc::byte_traits<uchar>>)
mov rcx, [rbp+arg_0]
mov rax, [rbp+var_50]
mov [rax+1F8h], rcx
mov rax, [rbp+var_50]
mov eax, [rax+40h]
mov [rbp+var_94], eax
mov rdi, [rbp+arg_0]; this
call _ZNK6evmone8baseline12CodeAnalysis10eof_headerEv; evmone::baseline::CodeAnalysis::eof_header(void)
mov edi, [rbp+var_94]
movzx esi, byte ptr [rax]
call _ZN6evmone8baseline23get_baseline_cost_tableE13evmc_revisionh; evmone::baseline::get_baseline_cost_table(evmc_revision,uchar)
mov [rbp+var_68], rax
mov rdi, [rbp+var_8]; this
call _ZNK6evmone2VM10get_tracerEv; evmone::VM::get_tracer(void)
mov [rbp+var_70], rax
cmp [rbp+var_70], 0
jz short loc_401D1
mov rdi, [rbp+var_70]
mov rax, [rbp+var_50]
mov esi, [rax+40h]
mov rax, [rbp+var_50]
mov rdx, [rax+20h]
mov rax, [rbp+var_38]
mov [rbp+var_80], rax
mov rax, [rbp+var_30]
mov [rbp+var_78], rax
mov rcx, [rbp+var_80]
mov r8, [rbp+var_78]
call _ZN6evmone6Tracer22notify_execution_startE13evmc_revisionRK12evmc_messageSt17basic_string_viewIhN4evmc11byte_traitsIhEEE; evmone::Tracer::notify_execution_start(evmc_revision,evmc_message const&,std::basic_string_view<uchar,evmc::byte_traits<uchar>>)
mov rdi, [rbp+var_68]
mov rsi, [rbp+var_50]
mov rdx, [rbp+var_48]
mov rcx, [rbp+var_40]
mov r8, [rbp+var_70]
call _ZN6evmone8baseline12_GLOBAL__N_18dispatchILb1EEElRKSt5arrayIsLm256EERNS_14ExecutionStateElPKhPNS_6TracerE; evmone::baseline::`anonymous namespace'::dispatch<true>(std::array<short,256ul> const&,evmone::ExecutionState &,long,uchar const*,evmone::Tracer *)
mov [rbp+var_48], rax
jmp short loc_40216
loc_401D1:
mov rax, [rbp+var_8]
test byte ptr [rax+38h], 1
jz short loc_401F6
mov rdi, [rbp+var_68]
mov rsi, [rbp+var_50]
mov rdx, [rbp+var_48]
mov rcx, [rbp+var_40]
call _ZN6evmone8baseline12_GLOBAL__N_114dispatch_cgotoERKSt5arrayIsLm256EERNS_14ExecutionStateElPKh; evmone::baseline::`anonymous namespace'::dispatch_cgoto(std::array<short,256ul> const&,evmone::ExecutionState &,long,uchar const*)
mov [rbp+var_48], rax
jmp short loc_40214
loc_401F6:
mov rdi, [rbp+var_68]
mov rsi, [rbp+var_50]
mov rdx, [rbp+var_48]
mov rcx, [rbp+var_40]
xor eax, eax
mov r8d, eax
call _ZN6evmone8baseline12_GLOBAL__N_18dispatchILb0EEElRKSt5arrayIsLm256EERNS_14ExecutionStateElPKhPNS_6TracerE; evmone::baseline::`anonymous namespace'::dispatch<false>(std::array<short,256ul> const&,evmone::ExecutionState &,long,uchar const*,evmone::Tracer *)
mov [rbp+var_48], rax
loc_40214:
jmp short $+2
loc_40216:
mov rax, [rbp+var_50]
cmp dword ptr [rax+78h], 0
jz short loc_4022A
mov rax, [rbp+var_50]
cmp dword ptr [rax+78h], 2
jnz short loc_40237
loc_4022A:
mov rax, [rbp+var_48]
mov [rbp+var_D0], rax
jmp short loc_40242
loc_40237:
xor eax, eax
mov [rbp+var_D0], rax
jmp short $+2
loc_40242:
mov rax, [rbp+var_D0]
mov [rbp+var_88], rax
mov rax, [rbp+var_50]
cmp dword ptr [rax+78h], 0
jnz short loc_4026A
mov rax, [rbp+var_50]
mov rax, [rax]
mov [rbp+var_D8], rax
jmp short loc_40275
loc_4026A:
xor eax, eax
mov [rbp+var_D8], rax
jmp short $+2
loc_40275:
mov rax, [rbp+var_D8]
mov [rbp+var_90], rax
mov rcx, [rbp+var_50]
mov al, 1
cmp qword ptr [rcx+88h], 0
mov [rbp+var_D9], al
jnz short loc_402AE
mov rax, [rbp+var_50]
cmp qword ptr [rax+80h], 0
setz al
mov [rbp+var_D9], al
loc_402AE:
mov al, [rbp+var_D9]
test al, 1
jnz short loc_402BA
jmp short loc_402BC
loc_402BA:
jmp short loc_402DB
loc_402BC:
lea rdi, aStateOutputSiz; "state.output_size != 0 || state.output_"...
lea rsi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
mov edx, 144h
lea rcx, aEvmcResultEvmo_0; "evmc_result evmone::baseline::execute(V"...
call ___assert_fail
loc_402DB:
mov rdi, [rbp+var_50]
add rdi, 90h
call _ZNKSt8optionalINSt7__cxx1112basic_stringIhN4evmc11byte_traitsIhEESaIhEEEE9has_valueEv; std::optional<std::basic_string<uchar,evmc::byte_traits<uchar>,std::allocator<uchar>>>::has_value(void)
test al, 1
jnz short loc_402F4
jmp loc_40381
loc_402F4:
mov rdi, [rbp+var_50]
mov eax, [rdi+78h]
mov [rbp+var_FC], eax
mov rax, [rbp+var_88]
mov [rbp+var_F8], rax
mov rax, [rbp+var_90]
mov [rbp+var_F0], rax
add rdi, 90h
call _ZNSt8optionalINSt7__cxx1112basic_stringIhN4evmc11byte_traitsIhEESaIhEEEEptEv; std::optional<std::basic_string<uchar,evmc::byte_traits<uchar>,std::allocator<uchar>>>::operator->(void)
mov rdi, rax
call _ZNSt7__cxx1112basic_stringIhN4evmc11byte_traitsIhEESaIhEE4dataEv; std::basic_string<uchar,evmc::byte_traits<uchar>,std::allocator<uchar>>::data(void)
mov [rbp+var_E8], rax
mov rdi, [rbp+var_50]
add rdi, 90h
call _ZNSt8optionalINSt7__cxx1112basic_stringIhN4evmc11byte_traitsIhEESaIhEEEEptEv; std::optional<std::basic_string<uchar,evmc::byte_traits<uchar>,std::allocator<uchar>>>::operator->(void)
mov rdi, rax
call _ZNKSt7__cxx1112basic_stringIhN4evmc11byte_traitsIhEESaIhEE4sizeEv; std::basic_string<uchar,evmc::byte_traits<uchar>,std::allocator<uchar>>::size(void)
mov rdi, [rbp+var_C8]
mov esi, [rbp+var_FC]
mov rdx, [rbp+var_F8]
mov rcx, [rbp+var_F0]
mov r8, [rbp+var_E8]
mov r9, rax
call _ZL16evmc_make_result16evmc_status_codellPKhm_1; evmc_make_result(evmc_status_code,long,long,uchar const*,ulong)
jmp short $+2
loc_4037C:
jmp loc_4041A
loc_40381:
mov rax, [rbp+var_50]
mov eax, [rax+78h]
mov [rbp+var_114], eax
mov rax, [rbp+var_88]
mov [rbp+var_110], rax
mov rax, [rbp+var_90]
mov [rbp+var_108], rax
mov rax, [rbp+var_50]
cmp qword ptr [rax+88h], 0
jz short loc_403D9
mov rdi, [rbp+var_50]
add rdi, 8
mov rax, [rbp+var_50]
mov rsi, [rax+80h]
call _ZN6evmone6MemoryixEm; evmone::Memory::operator[](ulong)
mov [rbp+var_120], rax
jmp short loc_403E4
loc_403D9:
xor eax, eax
mov [rbp+var_120], rax
jmp short $+2
loc_403E4:
mov rcx, [rbp+var_108]
mov rdx, [rbp+var_110]
mov esi, [rbp+var_114]
mov rdi, [rbp+var_C8]
mov r8, [rbp+var_120]
mov rax, [rbp+var_50]
mov r9, [rax+88h]
call _ZL16evmc_make_result16evmc_status_codellPKhm_1; evmc_make_result(evmc_status_code,long,long,uchar const*,ulong)
jmp short $+2
loc_40418:
jmp short $+2
loc_4041A:
cmp [rbp+var_70], 0
jz short loc_40431
mov rsi, [rbp+var_C8]
mov rdi, [rbp+var_70]
call _ZN6evmone6Tracer20notify_execution_endERK11evmc_result; evmone::Tracer::notify_execution_end(evmc_result const&)
loc_40431:
mov rax, [rbp+var_C0]
add rsp, 130h
pop rbp
retn
mov rdi, rax
call __clang_call_terminate
|
long long evmone::baseline::execute(
long long a1,
evmone::VM *a2,
long long a3,
long long a4,
int a5,
long long a6,
evmone::baseline::CodeAnalysis *a7)
{
long long v7; // rdx
long long v8; // rdx
unsigned __int8 *v9; // rax
char has_value; // al
long long v11; // rax
long long v12; // rax
long long v13; // rax
long long v15; // [rsp+10h] [rbp-120h]
unsigned int v16; // [rsp+1Ch] [rbp-114h]
unsigned int v17; // [rsp+34h] [rbp-FCh]
long long v18; // [rsp+48h] [rbp-E8h]
bool v19; // [rsp+57h] [rbp-D9h]
long long v20; // [rsp+58h] [rbp-D8h]
long long v21; // [rsp+60h] [rbp-D0h]
int v22; // [rsp+80h] [rbp-B0h]
int v23; // [rsp+88h] [rbp-A8h]
int v24; // [rsp+90h] [rbp-A0h]
int v25; // [rsp+98h] [rbp-98h]
unsigned int v26; // [rsp+9Ch] [rbp-94h]
long long tracer; // [rsp+C0h] [rbp-70h]
long long baseline_cost_table; // [rsp+C8h] [rbp-68h]
long long v29; // [rsp+D0h] [rbp-60h]
long long execution_state; // [rsp+E0h] [rbp-50h]
long long v31; // [rsp+E8h] [rbp-48h]
long long v32; // [rsp+E8h] [rbp-48h]
long long v33; // [rsp+F0h] [rbp-40h]
long long v34; // [rsp+F8h] [rbp-38h] BYREF
long long v35; // [rsp+100h] [rbp-30h]
long long v36; // [rsp+108h] [rbp-28h]
int v37; // [rsp+114h] [rbp-1Ch]
long long v38; // [rsp+118h] [rbp-18h]
long long v39; // [rsp+120h] [rbp-10h]
evmone::VM *v40; // [rsp+128h] [rbp-8h]
v40 = a2;
v39 = a3;
v38 = a4;
v37 = a5;
v36 = a6;
v34 = evmone::baseline::CodeAnalysis::executable_code(a7);
v35 = v7;
v33 = std::basic_string_view<unsigned char,evmc::byte_traits<unsigned char>>::data(&v34);
v31 = *(_QWORD *)(v36 + 16);
execution_state = evmone::VM::get_execution_state(v40, *(int *)(v36 + 8));
v22 = v36;
v25 = v37;
v23 = v39;
v24 = v38;
v29 = evmone::baseline::CodeAnalysis::raw_code(a7);
evmone::ExecutionState::reset(execution_state, v22, v25, v23, v24, v29, v29, v8);
*(_QWORD *)(execution_state + 504) = a7;
v26 = *(_DWORD *)(execution_state + 64);
v9 = (unsigned __int8 *)evmone::baseline::CodeAnalysis::eof_header(a7);
baseline_cost_table = evmone::baseline::get_baseline_cost_table(v26, *v9);
tracer = evmone::VM::get_tracer(v40);
if ( tracer )
{
evmone::Tracer::notify_execution_start(
tracer,
*(unsigned int *)(execution_state + 64),
*(_QWORD *)(execution_state + 32),
v34,
v35);
v32 = evmone::baseline::`anonymous namespace'::dispatch<true>(
baseline_cost_table,
execution_state,
v31,
v33,
tracer);
}
else if ( (*((_BYTE *)v40 + 56) & 1) != 0 )
{
v32 = evmone::baseline::`anonymous namespace'::dispatch_cgoto(baseline_cost_table, execution_state, v31, v33);
}
else
{
v32 = evmone::baseline::`anonymous namespace'::dispatch<false>(baseline_cost_table, execution_state, v31, v33, 0LL);
}
if ( *(_DWORD *)(execution_state + 120) && *(_DWORD *)(execution_state + 120) != 2 )
v21 = 0LL;
else
v21 = v32;
if ( *(_DWORD *)(execution_state + 120) )
v20 = 0LL;
else
v20 = *(_QWORD *)execution_state;
v19 = 1;
if ( !*(_QWORD *)(execution_state + 136) )
v19 = *(_QWORD *)(execution_state + 128) == 0LL;
if ( !v19 )
__assert_fail(
"state.output_size != 0 || state.output_offset == 0",
"/workspace/llm4binary/github/2025_star3/corpus-core[P]colibri-stateless/build_O0/_deps/evmone_external-src/lib/evm"
"one/baseline_execution.cpp",
324LL,
"evmc_result evmone::baseline::execute(VM &, const evmc_host_interface &, evmc_host_context *, evmc_revision, const"
" evmc_message &, const CodeAnalysis &)");
has_value = std::optional<std::basic_string<unsigned char,evmc::byte_traits<unsigned char>,std::allocator<unsigned char>>>::has_value(execution_state + 144);
if ( (has_value & 1) != 0 )
{
v17 = *(_DWORD *)(execution_state + 120);
v11 = std::optional<std::basic_string<unsigned char,evmc::byte_traits<unsigned char>,std::allocator<unsigned char>>>::operator->(execution_state + 144);
v18 = std::basic_string<unsigned char,evmc::byte_traits<unsigned char>,std::allocator<unsigned char>>::data(v11);
v12 = std::optional<std::basic_string<unsigned char,evmc::byte_traits<unsigned char>,std::allocator<unsigned char>>>::operator->(execution_state + 144);
v13 = std::basic_string<unsigned char,evmc::byte_traits<unsigned char>,std::allocator<unsigned char>>::size(v12);
evmc_make_result(a1, v17, v21, v20, v18, v13);
}
else
{
v16 = *(_DWORD *)(execution_state + 120);
if ( *(_QWORD *)(execution_state + 136) )
{
v15 = evmone::Memory::operator[](execution_state + 8, *(_QWORD *)(execution_state + 128));
evmc_make_result(a1, v16, v21, v20, v15, *(_QWORD *)(execution_state + 136));
}
else
{
evmc_make_result(a1, v16, v21, v20, 0LL, *(_QWORD *)(execution_state + 136));
}
}
if ( tracer )
evmone::Tracer::notify_execution_end(tracer, a1);
return a1;
}
|
execute:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x130
MOV qword ptr [RBP + -0xc8],RDI
MOV qword ptr [RBP + -0xc0],RDI
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x8],RSI
MOV qword ptr [RBP + -0x10],RDX
MOV qword ptr [RBP + -0x18],RCX
MOV dword ptr [RBP + -0x1c],R8D
MOV qword ptr [RBP + -0x28],R9
MOV RDI,qword ptr [RBP + 0x10]
CALL 0x0015fd60
MOV qword ptr [RBP + -0x38],RAX
MOV qword ptr [RBP + -0x30],RDX
LEA RDI,[RBP + -0x38]
CALL 0x0015fd80
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x48],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x28]
MOVSXD RSI,dword ptr [RAX + 0x8]
CALL 0x00138b90
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0xb8],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0xb0],RAX
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x98],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0xa8],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0xa0],RAX
MOV RDI,qword ptr [RBP + 0x10]
CALL 0x0015ffa0
MOV RDI,qword ptr [RBP + -0xb8]
MOV RSI,qword ptr [RBP + -0xb0]
MOV RCX,qword ptr [RBP + -0xa8]
MOV R8,qword ptr [RBP + -0xa0]
MOV R9,RAX
MOV RAX,RDX
MOV EDX,dword ptr [RBP + -0x98]
MOV qword ptr [RBP + -0x60],R9
MOV qword ptr [RBP + -0x58],RAX
LEA RAX,[RBP + -0x60]
MOV R9,qword ptr [RAX]
MOV qword ptr [RSP],R9
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RAX
CALL 0x0015fda0
MOV RCX,qword ptr [RBP + 0x10]
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RAX + 0x1f8],RCX
MOV RAX,qword ptr [RBP + -0x50]
MOV EAX,dword ptr [RAX + 0x40]
MOV dword ptr [RBP + -0x94],EAX
MOV RDI,qword ptr [RBP + 0x10]
CALL 0x0015ffc0
MOV EDI,dword ptr [RBP + -0x94]
MOVZX ESI,byte ptr [RAX]
CALL 0x00171fd0
MOV qword ptr [RBP + -0x68],RAX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0015ffe0
MOV qword ptr [RBP + -0x70],RAX
CMP qword ptr [RBP + -0x70],0x0
JZ 0x001401d1
MOV RDI,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RBP + -0x50]
MOV ESI,dword ptr [RAX + 0x40]
MOV RAX,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RAX + 0x20]
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x80],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x78],RAX
MOV RCX,qword ptr [RBP + -0x80]
MOV R8,qword ptr [RBP + -0x78]
CALL 0x00160000
MOV RDI,qword ptr [RBP + -0x68]
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x40]
MOV R8,qword ptr [RBP + -0x70]
CALL 0x00140450
MOV qword ptr [RBP + -0x48],RAX
JMP 0x00140216
LAB_001401d1:
MOV RAX,qword ptr [RBP + -0x8]
TEST byte ptr [RAX + 0x38],0x1
JZ 0x001401f6
MOV RDI,qword ptr [RBP + -0x68]
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x40]
CALL 0x00145510
MOV qword ptr [RBP + -0x48],RAX
JMP 0x00140214
LAB_001401f6:
MOV RDI,qword ptr [RBP + -0x68]
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x40]
XOR EAX,EAX
MOV R8D,EAX
CALL 0x0014b710
MOV qword ptr [RBP + -0x48],RAX
LAB_00140214:
JMP 0x00140216
LAB_00140216:
MOV RAX,qword ptr [RBP + -0x50]
CMP dword ptr [RAX + 0x78],0x0
JZ 0x0014022a
MOV RAX,qword ptr [RBP + -0x50]
CMP dword ptr [RAX + 0x78],0x2
JNZ 0x00140237
LAB_0014022a:
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0xd0],RAX
JMP 0x00140242
LAB_00140237:
XOR EAX,EAX
MOV qword ptr [RBP + -0xd0],RAX
JMP 0x00140242
LAB_00140242:
MOV RAX,qword ptr [RBP + -0xd0]
MOV qword ptr [RBP + -0x88],RAX
MOV RAX,qword ptr [RBP + -0x50]
CMP dword ptr [RAX + 0x78],0x0
JNZ 0x0014026a
MOV RAX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0xd8],RAX
JMP 0x00140275
LAB_0014026a:
XOR EAX,EAX
MOV qword ptr [RBP + -0xd8],RAX
JMP 0x00140275
LAB_00140275:
MOV RAX,qword ptr [RBP + -0xd8]
MOV qword ptr [RBP + -0x90],RAX
MOV RCX,qword ptr [RBP + -0x50]
MOV AL,0x1
CMP qword ptr [RCX + 0x88],0x0
MOV byte ptr [RBP + -0xd9],AL
JNZ 0x001402ae
MOV RAX,qword ptr [RBP + -0x50]
CMP qword ptr [RAX + 0x80],0x0
SETZ AL
MOV byte ptr [RBP + -0xd9],AL
LAB_001402ae:
MOV AL,byte ptr [RBP + -0xd9]
TEST AL,0x1
JNZ 0x001402ba
JMP 0x001402bc
LAB_001402ba:
JMP 0x001402db
LAB_001402bc:
LEA RDI,[0x1de338]
LEA RSI,[0x1df124]
MOV EDX,0x144
LEA RCX,[0x1df1b1]
CALL 0x00123120
LAB_001402db:
MOV RDI,qword ptr [RBP + -0x50]
ADD RDI,0x90
CALL 0x001600a0
TEST AL,0x1
JNZ 0x001402f4
JMP 0x00140381
LAB_001402f4:
MOV RDI,qword ptr [RBP + -0x50]
MOV EAX,dword ptr [RDI + 0x78]
MOV dword ptr [RBP + -0xfc],EAX
MOV RAX,qword ptr [RBP + -0x88]
MOV qword ptr [RBP + -0xf8],RAX
MOV RAX,qword ptr [RBP + -0x90]
MOV qword ptr [RBP + -0xf0],RAX
ADD RDI,0x90
CALL 0x001600c0
MOV RDI,RAX
CALL 0x001600e0
MOV qword ptr [RBP + -0xe8],RAX
MOV RDI,qword ptr [RBP + -0x50]
ADD RDI,0x90
CALL 0x001600c0
MOV RDI,RAX
CALL 0x00160100
MOV RDI,qword ptr [RBP + -0xc8]
MOV ESI,dword ptr [RBP + -0xfc]
MOV RDX,qword ptr [RBP + -0xf8]
MOV RCX,qword ptr [RBP + -0xf0]
MOV R8,qword ptr [RBP + -0xe8]
MOV R9,RAX
LAB_00140375:
CALL 0x00150770
JMP 0x0014037c
LAB_0014037c:
JMP 0x0014041a
LAB_00140381:
MOV RAX,qword ptr [RBP + -0x50]
MOV EAX,dword ptr [RAX + 0x78]
MOV dword ptr [RBP + -0x114],EAX
MOV RAX,qword ptr [RBP + -0x88]
MOV qword ptr [RBP + -0x110],RAX
MOV RAX,qword ptr [RBP + -0x90]
MOV qword ptr [RBP + -0x108],RAX
MOV RAX,qword ptr [RBP + -0x50]
CMP qword ptr [RAX + 0x88],0x0
JZ 0x001403d9
MOV RDI,qword ptr [RBP + -0x50]
ADD RDI,0x8
MOV RAX,qword ptr [RBP + -0x50]
MOV RSI,qword ptr [RAX + 0x80]
CALL 0x00160120
MOV qword ptr [RBP + -0x120],RAX
JMP 0x001403e4
LAB_001403d9:
XOR EAX,EAX
MOV qword ptr [RBP + -0x120],RAX
JMP 0x001403e4
LAB_001403e4:
MOV RCX,qword ptr [RBP + -0x108]
MOV RDX,qword ptr [RBP + -0x110]
MOV ESI,dword ptr [RBP + -0x114]
MOV RDI,qword ptr [RBP + -0xc8]
MOV R8,qword ptr [RBP + -0x120]
MOV RAX,qword ptr [RBP + -0x50]
MOV R9,qword ptr [RAX + 0x88]
CALL 0x00150770
JMP 0x00140418
LAB_00140418:
JMP 0x0014041a
LAB_0014041a:
CMP qword ptr [RBP + -0x70],0x0
JZ 0x00140431
MOV RSI,qword ptr [RBP + -0xc8]
MOV RDI,qword ptr [RBP + -0x70]
CALL 0x00160150
LAB_00140431:
MOV RAX,qword ptr [RBP + -0xc0]
ADD RSP,0x130
POP RBP
RET
|
/* evmone::baseline::execute(evmone::VM&, evmc_host_interface const&, evmc_host_context*,
evmc_revision, evmc_message const&, evmone::baseline::CodeAnalysis const&) */
baseline * __thiscall
evmone::baseline::execute
(baseline *this,VM *param_1,int8 param_2,int8 param_3,int4 param_5,
long param_6,CodeAnalysis *param_7)
{
int4 uVar1;
long lVar2;
long lVar3;
uchar *puVar4;
ExecutionState *pEVar5;
int1 *puVar6;
array *paVar7;
Tracer *this_00;
ulong uVar8;
basic_string<unsigned_char,evmc::byte_traits<unsigned_char>,std::allocator<unsigned_char>> *pbVar9
;
int8 uVar10;
int8 uVar11;
bool bVar12;
int1 auVar13 [16];
int8 local_128;
int8 local_e0;
long local_d8;
long local_50;
int1 local_40 [16];
long local_30;
int4 local_24;
int8 local_20;
int8 local_18;
VM *local_10;
local_30 = param_6;
local_24 = param_5;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
local_40 = CodeAnalysis::executable_code(param_7);
puVar4 = (uchar *)std::basic_string_view<unsigned_char,evmc::byte_traits<unsigned_char>>::data
((basic_string_view<unsigned_char,evmc::byte_traits<unsigned_char>> *)
local_40);
lVar2 = *(long *)(local_30 + 0x10);
pEVar5 = (ExecutionState *)VM::get_execution_state(local_10,(long)*(int *)(local_30 + 8));
uVar11 = local_18;
uVar10 = local_20;
uVar1 = local_24;
lVar3 = local_30;
auVar13 = CodeAnalysis::raw_code(param_7);
ExecutionState::reset(pEVar5,lVar3,uVar1,uVar11,uVar10,auVar13._0_8_,auVar13);
*(CodeAnalysis **)(pEVar5 + 0x1f8) = param_7;
uVar1 = *(int4 *)(pEVar5 + 0x40);
puVar6 = (int1 *)CodeAnalysis::eof_header(param_7);
paVar7 = (array *)get_baseline_cost_table(uVar1,*puVar6);
this_00 = (Tracer *)VM::get_tracer(local_10);
if (this_00 == (Tracer *)0x0) {
if (((byte)local_10[0x38] & 1) == 0) {
local_50 = (anonymous_namespace)::dispatch<false>(paVar7,pEVar5,lVar2,puVar4,(Tracer *)0x0);
}
else {
local_50 = (anonymous_namespace)::dispatch_cgoto(paVar7,pEVar5,lVar2,puVar4);
}
}
else {
Tracer::notify_execution_start
(this_00,*(int4 *)(pEVar5 + 0x40),*(int8 *)(pEVar5 + 0x20),local_40._0_8_,
local_40._8_8_);
local_50 = (anonymous_namespace)::dispatch<true>(paVar7,pEVar5,lVar2,puVar4,this_00);
}
if ((*(int *)(pEVar5 + 0x78) == 0) || (*(int *)(pEVar5 + 0x78) == 2)) {
local_d8 = local_50;
}
else {
local_d8 = 0;
}
if (*(int *)(pEVar5 + 0x78) == 0) {
local_e0 = *(int8 *)pEVar5;
}
else {
local_e0 = 0;
}
bVar12 = true;
if (*(long *)(pEVar5 + 0x88) == 0) {
bVar12 = *(long *)(pEVar5 + 0x80) == 0;
}
if (bVar12) {
uVar8 = std::
optional<std::__cxx11::basic_string<unsigned_char,evmc::byte_traits<unsigned_char>,std::allocator<unsigned_char>>>
::has_value((optional<std::__cxx11::basic_string<unsigned_char,evmc::byte_traits<unsigned_char>,std::allocator<unsigned_char>>>
*)(pEVar5 + 0x90));
if ((uVar8 & 1) == 0) {
uVar1 = *(int4 *)(pEVar5 + 0x78);
if (*(long *)(pEVar5 + 0x88) == 0) {
local_128 = 0;
}
else {
local_128 = Memory::operator[]((Memory *)(pEVar5 + 8),*(ulong *)(pEVar5 + 0x80));
}
evmc_make_result(this,uVar1,local_d8,local_e0,local_128,*(int8 *)(pEVar5 + 0x88));
}
else {
uVar1 = *(int4 *)(pEVar5 + 0x78);
pbVar9 = (basic_string<unsigned_char,evmc::byte_traits<unsigned_char>,std::allocator<unsigned_char>>
*)std::
optional<std::__cxx11::basic_string<unsigned_char,evmc::byte_traits<unsigned_char>,std::allocator<unsigned_char>>>
::operator->((optional<std::__cxx11::basic_string<unsigned_char,evmc::byte_traits<unsigned_char>,std::allocator<unsigned_char>>>
*)(pEVar5 + 0x90));
uVar10 = std::__cxx11::
basic_string<unsigned_char,evmc::byte_traits<unsigned_char>,std::allocator<unsigned_char>>
::data(pbVar9);
pbVar9 = (basic_string<unsigned_char,evmc::byte_traits<unsigned_char>,std::allocator<unsigned_char>>
*)std::
optional<std::__cxx11::basic_string<unsigned_char,evmc::byte_traits<unsigned_char>,std::allocator<unsigned_char>>>
::operator->((optional<std::__cxx11::basic_string<unsigned_char,evmc::byte_traits<unsigned_char>,std::allocator<unsigned_char>>>
*)(pEVar5 + 0x90));
uVar11 = std::__cxx11::
basic_string<unsigned_char,evmc::byte_traits<unsigned_char>,std::allocator<unsigned_char>>
::size(pbVar9);
/* try { // try from 00140375 to 00140415 has its CatchHandler @ 00140441 */
evmc_make_result(this,uVar1,local_d8,local_e0,uVar10,uVar11);
}
if (this_00 != (Tracer *)0x0) {
Tracer::notify_execution_end(this_00,(evmc_result *)this);
}
return this;
}
/* WARNING: Subroutine does not return */
__assert_fail("state.output_size != 0 || state.output_offset == 0",
"/workspace/llm4binary/github/2025_star3/corpus-core[P]colibri-stateless/build_O0/_deps/evmone_external-src/lib/evmone/baseline_execution.cpp"
,0x144,
"evmc_result evmone::baseline::execute(VM &, const evmc_host_interface &, evmc_host_context *, evmc_revision, const evmc_message &, const CodeAnalysis &)"
);
}
|
|
16,226
|
translog_buffer_lock
|
eloqsql/storage/maria/ma_loghandler.c
|
static void translog_buffer_lock(struct st_translog_buffer *buffer)
{
DBUG_ENTER("translog_buffer_lock");
DBUG_PRINT("enter",
("Lock buffer #%u: %p", buffer->buffer_no,
buffer));
mysql_mutex_lock(&buffer->mutex);
DBUG_VOID_RETURN;
}
|
O3
|
c
|
translog_buffer_lock:
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rax
addq $0x100090, %rdi # imm = 0x100090
cmpq $0x0, 0x1000d0(%rax)
jne 0x69c21
popq %rbp
jmp 0x2a200
leaq 0x7bda9(%rip), %rsi # 0xe59d1
movl $0x6cb, %edx # imm = 0x6CB
popq %rbp
jmp 0x308cf
|
translog_buffer_lock:
push rbp
mov rbp, rsp
mov rax, rdi
add rdi, 100090h
cmp ds:qword_1000D0[rax], 0
jnz short loc_69C21
pop rbp
jmp _pthread_mutex_lock
loc_69C21:
lea rsi, aWorkspaceLlm4b_10; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 6CBh
pop rbp
jmp psi_mutex_lock
|
long long translog_buffer_lock(long long a1)
{
long long v2; // rdi
v2 = a1 + 1048720;
if ( *(long long *)((char *)&qword_1000D0 + a1) )
return psi_mutex_lock(v2, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c", 0x6CBu);
else
return pthread_mutex_lock(v2);
}
|
translog_buffer_lock:
PUSH RBP
MOV RBP,RSP
MOV RAX,RDI
ADD RDI,0x100090
CMP qword ptr [RAX + 0x1000d0],0x0
JNZ 0x00169c21
POP RBP
JMP 0x0012a200
LAB_00169c21:
LEA RSI,[0x1e59d1]
MOV EDX,0x6cb
POP RBP
JMP 0x001308cf
|
void translog_buffer_lock(long param_1)
{
pthread_mutex_t *__mutex;
__mutex = (pthread_mutex_t *)((long)&Elf64_Phdr_ARRAY_00100040[1].p_paddr + param_1);
if (*(long *)((long)&Elf64_Phdr_ARRAY_00100040[2].p_filesz + param_1) == 0) {
pthread_mutex_lock(__mutex);
return;
}
psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
0x6cb);
return;
}
|
|
16,227
|
minja::Parser::parseExpression(bool)
|
monkey531[P]llama/common/minja.hpp
|
std::shared_ptr<Expression> parseExpression(bool allow_if_expr = true) {
auto left = parseLogicalOr();
if (it == end) return left;
if (!allow_if_expr) return left;
static std::regex if_tok(R"(if\b)");
if (consumeToken(if_tok).empty()) {
return left;
}
auto location = get_location();
auto [condition, else_expr] = parseIfExpression();
return std::make_shared<IfExpr>(location, std::move(condition), std::move(left), std::move(else_expr));
}
|
O1
|
cpp
|
minja::Parser::parseExpression(bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsp, %rdi
callq 0x854b8
movq 0x20(%r14), %rax
cmpq 0x18(%r14), %rax
je 0x841da
testb %bpl, %bpl
je 0x841da
leaq 0xaae24(%rip), %rax # 0x12ef90
movb (%rax), %al
testb %al, %al
je 0x842b7
leaq 0xaadf3(%rip), %rdx # 0x12ef70
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
movl $0x1, %ecx
callq 0x8435c
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
movq -0x8(%rax), %r15
cmpq %rax, %rdi
je 0x841ae
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x1b8e0
testq %r15, %r15
je 0x841da
movq (%r14), %rax
movq %rax, 0x18(%rsp)
movq 0x8(%r14), %rax
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0x84213
movq 0xa9db8(%rip), %rcx # 0x12df88
cmpb $0x0, (%rcx)
je 0x8420f
incl 0x8(%rax)
jmp 0x84213
xorl %eax, %eax
movq %rax, 0x8(%rbx)
movaps (%rsp), %xmm0
movq %rax, 0x8(%rsp)
movups %xmm0, (%rbx)
movq %rax, (%rsp)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x841ff
callq 0x6d4ee
movq %rbx, %rax
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
lock
incl 0x8(%rax)
movq 0x20(%r14), %rax
subq 0x10(%r14), %rax
movq %rax, 0x28(%rsp)
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
callq 0x85746
movl $0x60, %edi
callq 0x1b8c0
movq %rax, %r14
leaq 0x40(%rsp), %r8
movabsq $0x100000001, %rax # imm = 0x100000001
movq %rax, 0x8(%r14)
leaq 0xa8824(%rip), %rax # 0x12ca78
addq $0x10, %rax
movq %rax, (%r14)
movq %r14, %r15
addq $0x10, %r15
leaq 0x18(%rsp), %rsi
leaq 0x30(%rsp), %r12
movq %rsp, %rcx
movq %r15, %rdi
movq %r12, %rdx
callq 0x98856
movq %r15, (%rbx)
movq %r14, 0x8(%rbx)
movq 0x18(%r12), %rdi
testq %rdi, %rdi
je 0x84290
callq 0x6d4ee
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x8429f
callq 0x6d4ee
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x841f0
callq 0x6d4ee
jmp 0x841f0
leaq 0xaacd2(%rip), %rdi # 0x12ef90
callq 0x1c000
testl %eax, %eax
je 0x84176
leaq 0xaac9e(%rip), %rdi # 0x12ef70
leaq 0x6d626(%rip), %rsi # 0xf18ff
movl $0x10, %edx
callq 0x6251e
leaq -0x21ac4(%rip), %rdi # 0x62826
leaq 0xaac7f(%rip), %rsi # 0x12ef70
leaq 0xaa5d0(%rip), %rdx # 0x12e8c8
callq 0x1b7c0
leaq 0xaac8c(%rip), %rdi # 0x12ef90
callq 0x1b5c0
jmp 0x84176
movq %rax, %rbx
leaq 0xaac78(%rip), %rdi # 0x12ef90
callq 0x1b5b0
jmp 0x84345
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x8594e
jmp 0x84331
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x84345
callq 0x6d4ee
jmp 0x84345
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x84354
callq 0x6d4ee
movq %rbx, %rdi
callq 0x1bfa0
|
_ZN5minja6Parser15parseExpressionEb:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 50h
mov ebp, edx
mov r14, rsi
mov rbx, rdi
mov rdi, rsp; this
call _ZN5minja6Parser14parseLogicalOrEv; minja::Parser::parseLogicalOr(void)
mov rax, [r14+20h]
cmp rax, [r14+18h]
jz short loc_841DA
test bpl, bpl
jz short loc_841DA
lea rax, _ZGVZN5minja6Parser15parseExpressionEbE6if_tokB5cxx11; `guard variable for'minja::Parser::parseExpression(bool)::if_tok
mov al, [rax]
test al, al
jz loc_842B7
loc_84176:
lea rdx, _ZZN5minja6Parser15parseExpressionEbE6if_tokB5cxx11; minja::Parser::parseExpression(bool)::if_tok
lea rdi, [rsp+78h+var_48]
mov rsi, r14
mov ecx, 1
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling)
lea rax, [rsp+78h+var_38]
mov rdi, [rax-10h]; void *
mov r15, [rax-8]
cmp rdi, rax
jz short loc_841AE
mov rsi, [rsp+78h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_841AE:
test r15, r15
jz short loc_841DA
mov rax, [r14]
mov [rsp+78h+var_60], rax
mov rax, [r14+8]
mov [rsp+78h+var_58], rax
test rax, rax
jz short loc_84213
mov rcx, cs:__libc_single_threaded_ptr
cmp byte ptr [rcx], 0
jz short loc_8420F
inc dword ptr [rax+8]
jmp short loc_84213
loc_841DA:
xor eax, eax
mov [rbx+8], rax
movaps xmm0, [rsp+78h+var_78]
mov qword ptr [rsp+78h+var_78+8], rax
movups xmmword ptr [rbx], xmm0
mov qword ptr [rsp+78h+var_78], rax
loc_841F0:
mov rdi, qword ptr [rsp+78h+var_78+8]
test rdi, rdi
jz short loc_841FF
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_841FF:
mov rax, rbx
add rsp, 50h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_8420F:
lock inc dword ptr [rax+8]
loc_84213:
mov rax, [r14+20h]
sub rax, [r14+10h]
mov [rsp+78h+var_50], rax
lea rdi, [rsp+78h+var_48]; this
mov rsi, r14
call _ZN5minja6Parser17parseIfExpressionEv; minja::Parser::parseIfExpression(void)
mov edi, 60h ; '`'; unsigned __int64
call __Znwm; operator new(ulong)
mov r14, rax
lea r8, [rsp+78h+var_38]
mov rax, 100000001h
mov [r14+8], rax
lea rax, _ZTVSt23_Sp_counted_ptr_inplaceIN5minja6IfExprESaIS1_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<minja::IfExpr,std::allocator<minja::IfExpr>,(__gnu_cxx::_Lock_policy)2>
add rax, 10h
mov [r14], rax
mov r15, r14
add r15, 10h
lea rsi, [rsp+78h+var_60]
lea r12, [rsp+78h+var_48]
mov rcx, rsp
mov rdi, r15
mov rdx, r12
call _ZN5minja6IfExprC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEES7_S7_; minja::IfExpr::IfExpr(minja::Location const&,std::shared_ptr<minja::Expression> &&,std::shared_ptr<minja::Expression> &,std::shared_ptr<minja::Expression> &)
mov [rbx], r15
mov [rbx+8], r14
mov rdi, [r12+18h]
test rdi, rdi
jz short loc_84290
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_84290:
mov rdi, [rsp+78h+var_40]
test rdi, rdi
jz short loc_8429F
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8429F:
mov rdi, [rsp+78h+var_58]
test rdi, rdi
jz loc_841F0
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
jmp loc_841F0
loc_842B7:
lea rdi, _ZGVZN5minja6Parser15parseExpressionEbE6if_tokB5cxx11; __guard *
call ___cxa_guard_acquire
test eax, eax
jz loc_84176
lea rdi, _ZZN5minja6Parser15parseExpressionEbE6if_tokB5cxx11; minja::Parser::parseExpression(bool)::if_tok
lea rsi, aIfB; "if\\b"
mov edx, 10h
call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type)
lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc
lea rsi, _ZZN5minja6Parser15parseExpressionEbE6if_tokB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN5minja6Parser15parseExpressionEbE6if_tokB5cxx11; __guard *
call ___cxa_guard_release
jmp loc_84176
mov rbx, rax
lea rdi, _ZGVZN5minja6Parser15parseExpressionEbE6if_tokB5cxx11; __guard *
call ___cxa_guard_abort
jmp short loc_84345
mov rbx, rax
lea rdi, [rsp+arg_28]
call _ZNSt4pairISt10shared_ptrIN5minja10ExpressionEES3_ED2Ev; std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>::~pair()
jmp short loc_84331
mov rbx, rax
loc_84331:
mov rdi, [rsp+arg_18]
test rdi, rdi
jz short loc_84345
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
jmp short loc_84345
mov rbx, rax
loc_84345:
mov rdi, [rsp+arg_0]
test rdi, rdi
jz short loc_84354
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_84354:
mov rdi, rbx
call __Unwind_Resume
|
minja::Parser * minja::Parser::parseExpression(minja::Parser *this, long long *a2, char a3)
{
int v4; // r8d
int v5; // r9d
volatile signed __int32 *v6; // r15
volatile signed __int32 *v7; // rax
__int128 v8; // xmm0
_QWORD *v10; // r14
__int128 v11; // [rsp+0h] [rbp-78h] BYREF
long long v12; // [rsp+18h] [rbp-60h] BYREF
volatile signed __int32 *v13; // [rsp+20h] [rbp-58h]
long long v14; // [rsp+28h] [rbp-50h]
long long *v15; // [rsp+30h] [rbp-48h] BYREF
volatile signed __int32 *v16; // [rsp+38h] [rbp-40h]
long long v17; // [rsp+40h] [rbp-38h] BYREF
volatile signed __int32 *v18; // [rsp+48h] [rbp-30h]
minja::Parser::parseLogicalOr((minja::Parser *)&v11);
if ( a2[4] == a2[3] || !a3 )
goto LABEL_10;
if ( !(_BYTE)`guard variable for'minja::Parser::parseExpression(bool)::if_tok[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'minja::Parser::parseExpression(bool)::if_tok[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
(long long)&minja::Parser::parseExpression(bool)::if_tok[abi:cxx11],
(long long)"if\\b",
0x10u);
__cxa_atexit(
(void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&minja::Parser::parseExpression(bool)::if_tok[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'minja::Parser::parseExpression(bool)::if_tok[abi:cxx11]);
}
minja::Parser::consumeToken(
(unsigned int)&v15,
(_DWORD)a2,
(unsigned int)&minja::Parser::parseExpression(bool)::if_tok[abi:cxx11],
1,
v4,
v5,
v11,
*((long long *)&v11 + 1));
v6 = v16;
if ( v15 != &v17 )
operator delete(v15, v17 + 1);
if ( v6 )
{
v12 = *a2;
v7 = (volatile signed __int32 *)a2[1];
v13 = v7;
if ( v7 )
{
if ( _libc_single_threaded )
++*((_DWORD *)v7 + 2);
else
_InterlockedIncrement(v7 + 2);
}
v14 = a2[4] - a2[2];
minja::Parser::parseIfExpression((minja::Parser *)&v15);
v10 = (_QWORD *)operator new(0x60uLL);
v10[1] = 0x100000001LL;
*v10 = &`vtable for'std::_Sp_counted_ptr_inplace<minja::IfExpr,std::allocator<minja::IfExpr>,(__gnu_cxx::_Lock_policy)2>
+ 2;
minja::IfExpr::IfExpr(v10 + 2, &v12, &v15, &v11, &v17);
*(_QWORD *)this = v10 + 2;
*((_QWORD *)this + 1) = v10;
if ( v18 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v18);
if ( v16 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v16);
if ( v13 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v13);
}
else
{
LABEL_10:
*((_QWORD *)this + 1) = 0LL;
v8 = v11;
*((_QWORD *)&v11 + 1) = 0LL;
*(_OWORD *)this = v8;
*(_QWORD *)&v11 = 0LL;
}
if ( *((_QWORD *)&v11 + 1) )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v11 + 1));
return this;
}
|
parseExpression:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x50
MOV EBP,EDX
MOV R14,RSI
MOV RBX,RDI
MOV RDI,RSP
CALL 0x001854b8
MOV RAX,qword ptr [R14 + 0x20]
CMP RAX,qword ptr [R14 + 0x18]
JZ 0x001841da
TEST BPL,BPL
JZ 0x001841da
LEA RAX,[0x22ef90]
MOV AL,byte ptr [RAX]
TEST AL,AL
JZ 0x001842b7
LAB_00184176:
LEA RDX,[0x22ef70]
LEA RDI,[RSP + 0x30]
MOV RSI,R14
MOV ECX,0x1
CALL 0x0018435c
LEA RAX,[RSP + 0x40]
MOV RDI,qword ptr [RAX + -0x10]
MOV R15,qword ptr [RAX + -0x8]
CMP RDI,RAX
JZ 0x001841ae
MOV RSI,qword ptr [RSP + 0x40]
INC RSI
CALL 0x0011b8e0
LAB_001841ae:
TEST R15,R15
JZ 0x001841da
MOV RAX,qword ptr [R14]
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [R14 + 0x8]
MOV qword ptr [RSP + 0x20],RAX
TEST RAX,RAX
JZ 0x00184213
MOV RCX,qword ptr [0x0022df88]
CMP byte ptr [RCX],0x0
JZ 0x0018420f
INC dword ptr [RAX + 0x8]
JMP 0x00184213
LAB_001841da:
XOR EAX,EAX
MOV qword ptr [RBX + 0x8],RAX
MOVAPS XMM0,xmmword ptr [RSP]
MOV qword ptr [RSP + 0x8],RAX
MOVUPS xmmword ptr [RBX],XMM0
MOV qword ptr [RSP],RAX
LAB_001841f0:
MOV RDI,qword ptr [RSP + 0x8]
TEST RDI,RDI
JZ 0x001841ff
CALL 0x0016d4ee
LAB_001841ff:
MOV RAX,RBX
ADD RSP,0x50
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0018420f:
INC.LOCK dword ptr [RAX + 0x8]
LAB_00184213:
MOV RAX,qword ptr [R14 + 0x20]
SUB RAX,qword ptr [R14 + 0x10]
MOV qword ptr [RSP + 0x28],RAX
LAB_00184220:
LEA RDI,[RSP + 0x30]
MOV RSI,R14
CALL 0x00185746
LAB_0018422d:
MOV EDI,0x60
CALL 0x0011b8c0
MOV R14,RAX
LEA R8,[RSP + 0x40]
MOV RAX,0x100000001
MOV qword ptr [R14 + 0x8],RAX
LEA RAX,[0x22ca78]
ADD RAX,0x10
MOV qword ptr [R14],RAX
MOV R15,R14
ADD R15,0x10
LEA RSI,[RSP + 0x18]
LEA R12,[RSP + 0x30]
MOV RCX,RSP
MOV RDI,R15
MOV RDX,R12
CALL 0x00198856
MOV qword ptr [RBX],R15
MOV qword ptr [RBX + 0x8],R14
MOV RDI,qword ptr [R12 + 0x18]
TEST RDI,RDI
JZ 0x00184290
CALL 0x0016d4ee
LAB_00184290:
MOV RDI,qword ptr [RSP + 0x38]
TEST RDI,RDI
JZ 0x0018429f
CALL 0x0016d4ee
LAB_0018429f:
MOV RDI,qword ptr [RSP + 0x20]
TEST RDI,RDI
JZ 0x001841f0
CALL 0x0016d4ee
JMP 0x001841f0
LAB_001842b7:
LEA RDI,[0x22ef90]
CALL 0x0011c000
TEST EAX,EAX
JZ 0x00184176
LAB_001842cb:
LEA RDI,[0x22ef70]
LEA RSI,[0x1f18ff]
MOV EDX,0x10
CALL 0x0016251e
LAB_001842e3:
LEA RDI,[0x162826]
LEA RSI,[0x22ef70]
LEA RDX,[0x22e8c8]
CALL 0x0011b7c0
LEA RDI,[0x22ef90]
CALL 0x0011b5c0
JMP 0x00184176
|
/* minja::Parser::parseExpression(bool) */
int8 * minja::Parser::parseExpression(bool param_1)
{
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Var1;
int iVar2;
int8 *puVar3;
char in_DL;
int8 *in_RSI;
int7 in_register_00000039;
int8 *puVar4;
int8 local_78;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_70;
int8 local_60;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_58;
long local_50;
long *local_48;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_40;
long local_38;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_30;
puVar4 = (int8 *)CONCAT71(in_register_00000039,param_1);
parseLogicalOr();
if ((in_RSI[4] != in_RSI[3]) && (in_DL != '\0')) {
if (parseExpression(bool)::if_tok_abi_cxx11_ == '\0') {
iVar2 = __cxa_guard_acquire(&parseExpression(bool)::if_tok_abi_cxx11_);
if (iVar2 != 0) {
/* try { // try from 001842cb to 001842e2 has its CatchHandler @ 0018430e */
std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex
((basic_regex<char,std::__cxx11::regex_traits<char>> *)
parseExpression(bool)::if_tok_abi_cxx11_,&DAT_001f18ff,0x10);
__cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex,
parseExpression(bool)::if_tok_abi_cxx11_,&__dso_handle);
__cxa_guard_release(&parseExpression(bool)::if_tok_abi_cxx11_);
}
}
/* try { // try from 00184176 to 0018418e has its CatchHandler @ 00184342 */
consumeToken(&local_48);
p_Var1 = local_40;
if (local_48 != &local_38) {
operator_delete(local_48,local_38 + 1);
}
if (p_Var1 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
local_60 = *in_RSI;
local_58 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)in_RSI[1];
if (local_58 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
if (*PTR___libc_single_threaded_0022df88 == '\0') {
LOCK();
*(int *)(local_58 + 8) = *(int *)(local_58 + 8) + 1;
UNLOCK();
}
else {
*(int *)(local_58 + 8) = *(int *)(local_58 + 8) + 1;
}
}
local_50 = in_RSI[4] - in_RSI[2];
/* try { // try from 00184220 to 0018422c has its CatchHandler @ 0018432e */
parseIfExpression();
/* try { // try from 0018422d to 00184236 has its CatchHandler @ 0018431f */
puVar3 = (int8 *)operator_new(0x60);
puVar3[1] = 0x100000001;
*puVar3 = &PTR___Sp_counted_ptr_inplace_0022ca88;
IfExpr::IfExpr((IfExpr *)(puVar3 + 2),(Location *)&local_60,(shared_ptr *)&local_48,
(shared_ptr *)&local_78,(shared_ptr *)&local_38);
*puVar4 = (IfExpr *)(puVar3 + 2);
puVar4[1] = puVar3;
if (local_30 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_30);
}
if (local_40 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_40);
}
if (local_58 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_58);
}
goto LAB_001841f0;
}
}
p_Var1 = p_Stack_70;
puVar4[1] = 0;
p_Stack_70 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
*puVar4 = local_78;
puVar4[1] = p_Var1;
local_78 = 0;
LAB_001841f0:
if (p_Stack_70 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_70);
}
return puVar4;
}
|
|
16,228
|
google::protobuf::compiler::csharp::PrimitiveFieldGenerator::GenerateMembers(google::protobuf::io::Printer*)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/csharp/csharp_primitive_field.cc
|
void PrimitiveFieldGenerator::GenerateMembers(io::Printer* printer) {
// Note: in multiple places, this code assumes that all fields
// that support presence are either nullable, or use a presence field bit.
// Fields which are oneof members are not generated here; they're generated in PrimitiveOneofFieldGenerator below.
// Extensions are not generated here either.
// Proto2 allows different default values to be specified. These are retained
// via static fields. They don't particularly need to be, but we don't need
// to change that. In Proto3 the default value we don't generate these
// fields, just using the literal instead.
if (IsProto2(descriptor_->file())) {
// Note: "private readonly static" isn't as idiomatic as
// "private static readonly", but changing this now would create a lot of
// churn in generated code with near-to-zero benefit.
printer->Print(
variables_,
"private readonly static $type_name$ $property_name$DefaultValue = $default_value$;\n\n");
variables_["default_value_access"] =
variables_["property_name"] + "DefaultValue";
} else {
variables_["default_value_access"] = variables_["default_value"];
}
// Declare the field itself.
printer->Print(
variables_,
"private $type_name$ $name_def_message$;\n");
WritePropertyDocComment(printer, descriptor_);
AddPublicMemberAttributes(printer);
// Most of the work is done in the property:
// Declare the property itself (the same for all options)
printer->Print(variables_, "$access_level$ $type_name$ $property_name$ {\n");
// Specify the "getter", which may need to check for a presence field.
if (SupportsPresenceApi(descriptor_)) {
if (IsNullable(descriptor_)) {
printer->Print(
variables_,
" get { return $name$_ ?? $default_value_access$; }\n");
} else {
printer->Print(
variables_,
// Note: it's possible that this could be rewritten as a
// conditional ?: expression, but there's no significant benefit
// to changing it.
" get { if ($has_field_check$) { return $name$_; } else { return $default_value_access$; } }\n");
}
} else {
printer->Print(
variables_,
" get { return $name$_; }\n");
}
// Specify the "setter", which may need to set a field bit as well as the
// value.
printer->Print(" set {\n");
if (presenceIndex_ != -1) {
printer->Print(
variables_,
" $set_has_field$;\n");
}
if (is_value_type) {
printer->Print(
variables_,
" $name$_ = value;\n");
} else {
printer->Print(
variables_,
" $name$_ = pb::ProtoPreconditions.CheckNotNull(value, \"value\");\n");
}
printer->Print(
" }\n"
"}\n");
// The "HasFoo" property, where required.
if (SupportsPresenceApi(descriptor_)) {
printer->Print(variables_,
"/// <summary>Gets whether the \"$descriptor_name$\" field is set</summary>\n");
AddPublicMemberAttributes(printer);
printer->Print(
variables_,
"$access_level$ bool Has$property_name$ {\n"
" get { return ");
if (IsNullable(descriptor_)) {
printer->Print(
variables_,
"$name$_ != null; }\n}\n");
} else {
printer->Print(
variables_,
"$has_field_check$; }\n}\n");
}
}
// The "ClearFoo" method, where required.
if (SupportsPresenceApi(descriptor_)) {
printer->Print(variables_,
"/// <summary>Clears the value of the \"$descriptor_name$\" field</summary>\n");
AddPublicMemberAttributes(printer);
printer->Print(
variables_,
"$access_level$ void Clear$property_name$() {\n");
if (IsNullable(descriptor_)) {
printer->Print(variables_, " $name$_ = null;\n");
} else {
printer->Print(variables_, " $clear_has_field$;\n");
}
printer->Print("}\n");
}
}
|
O3
|
cpp
|
google::protobuf::compiler::csharp::PrimitiveFieldGenerator::GenerateMembers(google::protobuf::io::Printer*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r15
movq 0x10(%rdi), %rax
movq 0x10(%rax), %rax
leaq 0x20(%rdi), %r14
cmpb $0x2, 0x3(%rax)
jne 0x3f26b
leaq 0x160220(%rip), %rdx # 0x19f3b7
movq %rbx, %rdi
movq %r14, %rsi
callq 0x16cd32
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x179494(%rip), %rsi # 0x1b8647
leaq 0x17949a(%rip), %rdx # 0x1b8654
leaq 0x28(%rsp), %rdi
callq 0x250b2
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
callq 0x2e310
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x2586a
leaq 0x1a772b(%rip), %rsi # 0x1e6920
leaq 0x8(%rsp), %rdi
callq 0x1f8e0
leaq 0x58(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x1601fd(%rip), %rsi # 0x19f40c
leaq 0x16020a(%rip), %rdx # 0x19f420
leaq 0x48(%rsp), %rdi
callq 0x250b2
leaq 0x48(%rsp), %rsi
movq %r14, %rdi
callq 0x2e310
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x1f5d0
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x3f249
callq 0x1f4a0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x3f258
callq 0x1f4a0
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
jne 0x3f2ee
jmp 0x3f2f3
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x197029(%rip), %rsi # 0x1d62a4
leaq 0x19702f(%rip), %rdx # 0x1d62b1
leaq 0x8(%rsp), %rdi
callq 0x250b2
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x2e310
movq %rax, %r12
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x160160(%rip), %rsi # 0x19f40c
leaq 0x16016d(%rip), %rdx # 0x19f420
leaq 0x28(%rsp), %rdi
callq 0x250b2
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
callq 0x2e310
movq %rax, %rdi
movq %r12, %rsi
callq 0x1f260
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x3f2e4
callq 0x1f4a0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x3f2f3
callq 0x1f4a0
leaq 0x160127(%rip), %rdx # 0x19f421
movq %rbx, %rdi
movq %r14, %rsi
callq 0x16cd32
movq 0x10(%r15), %rsi
movq %rbx, %rdi
callq 0x9d827
movq %r15, %rdi
movq %rbx, %rsi
callq 0xa130c
leaq 0x160127(%rip), %rdx # 0x19f44a
movq %rbx, %rdi
movq %r14, %rsi
callq 0x16cd32
movq 0x10(%r15), %r13
movb 0x1(%r13), %al
notb %al
leaq 0x1601cc(%rip), %r12 # 0x19f50b
testb $0x60, %al
je 0x3f39d
movq 0x18(%r13), %rdi
testq %rdi, %rdi
je 0x3f368
leaq 0xfa8e1(%rip), %rax # 0x139c34
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x28(%rsp), %rdx
movq %r13, (%rdx)
callq 0x2f19d
cmpb $0xb, 0x2(%r13)
je 0x3f39d
movq 0x10(%r13), %rax
cmpb $0x2, 0x3(%rax)
je 0x3f380
testb $0x2, 0x1(%r13)
je 0x3f39d
movq 0x10(%r15), %rdi
callq 0x3e0c7
leaq 0x1600e8(%rip), %rcx # 0x19f478
leaq 0x160116(%rip), %r12 # 0x19f4ad
testb %al, %al
cmovneq %rcx, %r12
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x16cd32
leaq 0x1607d6(%rip), %rsi # 0x19fb88
movq %rbx, %rdi
callq 0x2e40a
cmpl $-0x1, 0x18(%r15)
je 0x3f3d3
leaq 0x16015e(%rip), %rdx # 0x19f526
movq %rbx, %rdi
movq %r14, %rsi
callq 0x16cd32
leaq 0x160162(%rip), %rax # 0x19f53c
leaq 0x160171(%rip), %rdx # 0x19f552
cmpb $0x0, 0x50(%r15)
cmovneq %rax, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x16cd32
leaq 0x161ff9(%rip), %rsi # 0x1a13f5
movq %rbx, %rdi
callq 0x2e40a
movq 0x10(%r15), %r12
movb 0x1(%r12), %al
notb %al
testb $0x60, %al
je 0x3f4af
movq 0x18(%r12), %rdi
testq %rdi, %rdi
je 0x3f43d
leaq 0xfa80c(%rip), %rax # 0x139c34
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x28(%rsp), %rdx
movq %r12, (%rdx)
callq 0x2f19d
cmpb $0xb, 0x2(%r12)
je 0x3f4af
movq 0x10(%r12), %rax
cmpb $0x2, 0x3(%rax)
je 0x3f458
testb $0x2, 0x1(%r12)
je 0x3f4af
leaq 0x15fb44(%rip), %rdx # 0x19efa3
movq %rbx, %rdi
movq %r14, %rsi
callq 0x16cd32
movq %r15, %rdi
movq %rbx, %rsi
callq 0xa130c
leaq 0x16011a(%rip), %rdx # 0x19f596
movq %rbx, %rdi
movq %r14, %rsi
callq 0x16cd32
movq 0x10(%r15), %rdi
callq 0x3e0c7
leaq 0x15f414(%rip), %rcx # 0x19e8ab
leaq 0x160131(%rip), %rdx # 0x19f5cf
testb %al, %al
cmovneq %rcx, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x16cd32
movq 0x10(%r15), %r12
movb 0x1(%r12), %al
notb %al
testb $0x60, %al
je 0x3f569
movq 0x18(%r12), %rdi
testq %rdi, %rdi
je 0x3f4e8
leaq 0xfa761(%rip), %rax # 0x139c34
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x28(%rsp), %rdx
movq %r12, (%rdx)
callq 0x2f19d
cmpb $0xb, 0x2(%r12)
je 0x3f569
movq 0x10(%r12), %rax
cmpb $0x2, 0x3(%rax)
je 0x3f503
testb $0x2, 0x1(%r12)
je 0x3f569
leaq 0x1600dd(%rip), %rdx # 0x19f5e7
movq %rbx, %rdi
movq %r14, %rsi
callq 0x16cd32
movq %r15, %rdi
movq %rbx, %rsi
callq 0xa130c
leaq 0x16010a(%rip), %rdx # 0x19f631
movq %rbx, %rdi
movq %r14, %rsi
callq 0x16cd32
movq 0x10(%r15), %rdi
callq 0x3e0c7
leaq 0x16011d(%rip), %rcx # 0x19f65f
leaq 0x160129(%rip), %rdx # 0x19f672
testb %al, %al
cmovneq %rcx, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x16cd32
leaq 0x1a2bb6(%rip), %rsi # 0x1e2117
movq %rbx, %rdi
callq 0x2e40a
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x3f591
callq 0x1f4a0
jmp 0x3f591
jmp 0x3f58e
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x3f5d1
callq 0x1f4a0
jmp 0x3f5d1
jmp 0x3f5a4
movq %rax, %rbx
jmp 0x3f5c2
jmp 0x3f5ab
movq %rax, %rbx
jmp 0x3f5e0
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x3f5c2
callq 0x1f4a0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
jne 0x3f5db
jmp 0x3f5e0
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x3f5e0
callq 0x1f4a0
movq %rbx, %rdi
callq 0x1f860
|
_ZN6google8protobuf8compiler6csharp23PrimitiveFieldGenerator15GenerateMembersEPNS0_2io7PrinterE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov rbx, rsi
mov r15, rdi
mov rax, [rdi+10h]
mov rax, [rax+10h]
lea r14, [rdi+20h]
cmp byte ptr [rax+3], 2
jnz loc_3F26B
lea rdx, aPrivateReadonl; "private readonly static $type_name$ $pr"...
mov rdi, rbx; this
mov rsi, r14
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
lea r12, [rsp+98h+var_60]
mov [r12-10h], r12
lea rsi, aOneofPropertyN+6; "property_name"
lea rdx, aOneofPropertyN+13h; ""
lea rdi, [rsp+98h+var_70]
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 rsi, [rsp+98h+var_70]
mov rdi, r14
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixEOS5_; std::map<std::string,std::string>::operator[](std::string&&)
lea r13, [rsp+98h+var_80]
mov [r13-10h], r13
mov rsi, [rax]
mov rdx, [rax+8]
add rdx, rsi
lea rdi, [rsp+98h+var_90]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rsi, aGpbfieldhasdef+0Bh; "DefaultValue"
lea rdi, [rsp+98h+var_90]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea rbp, [rsp+98h+var_40]
mov [rbp-10h], rbp
lea rsi, aDefaultValueAc; "default_value_access"
lea rdx, aDefaultValueAc+14h; ""
lea rdi, [rsp+98h+var_50]
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 rsi, [rsp+98h+var_50]
mov rdi, r14
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixEOS5_; std::map<std::string,std::string>::operator[](std::string&&)
lea rsi, [rsp+98h+var_90]
mov rdi, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [rsp+98h+var_50]; void *
cmp rdi, rbp
jz short loc_3F249
call __ZdlPv; operator delete(void *)
loc_3F249:
mov rdi, [rsp+98h+var_90]; void *
cmp rdi, r13
jz short loc_3F258
call __ZdlPv; operator delete(void *)
loc_3F258:
mov rdi, [rsp+98h+var_70]
cmp rdi, r12
jnz loc_3F2EE
jmp loc_3F2F3
loc_3F26B:
lea r13, [rsp+98h+var_80]
mov [r13-10h], r13
lea rsi, aValueDefaultVa+6; "default_value"
lea rdx, aValueDefaultVa+13h; ""
lea rdi, [rsp+98h+var_90]
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 rsi, [rsp+98h+var_90]
mov rdi, r14
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixEOS5_; std::map<std::string,std::string>::operator[](std::string&&)
mov r12, rax
lea rbp, [rsp+98h+var_60]
mov [rbp-10h], rbp
lea rsi, aDefaultValueAc; "default_value_access"
lea rdx, aDefaultValueAc+14h; ""
lea rdi, [rsp+98h+var_70]
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 rsi, [rsp+98h+var_70]
mov rdi, r14
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixEOS5_; std::map<std::string,std::string>::operator[](std::string&&)
mov rdi, rax
mov rsi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
mov rdi, [rsp+98h+var_70]; void *
cmp rdi, rbp
jz short loc_3F2E4
call __ZdlPv; operator delete(void *)
loc_3F2E4:
mov rdi, [rsp+98h+var_90]; void *
cmp rdi, r13
jz short loc_3F2F3
loc_3F2EE:
call __ZdlPv; operator delete(void *)
loc_3F2F3:
lea rdx, aPrivateTypeNam_0; "private $type_name$ $name_def_message$;"...
mov rdi, rbx; this
mov rsi, r14
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
mov rsi, [r15+10h]; google::protobuf::io::Printer *
mov rdi, rbx; this
call _ZN6google8protobuf8compiler6csharp23WritePropertyDocCommentEPNS0_2io7PrinterEPKNS0_15FieldDescriptorE; google::protobuf::compiler::csharp::WritePropertyDocComment(google::protobuf::io::Printer *,google::protobuf::FieldDescriptor const*)
mov rdi, r15; this
mov rsi, rbx; google::protobuf::io::Printer *
call _ZN6google8protobuf8compiler6csharp18FieldGeneratorBase25AddPublicMemberAttributesEPNS0_2io7PrinterE; google::protobuf::compiler::csharp::FieldGeneratorBase::AddPublicMemberAttributes(google::protobuf::io::Printer *)
lea rdx, aAccessLevelTyp_1; "$access_level$ $type_name$ $property_na"...
mov rdi, rbx; this
mov rsi, r14
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
mov r13, [r15+10h]
mov al, [r13+1]
not al
lea r12, aGetReturnName; " get { return $name$_; }\n"
test al, 60h
jz short loc_3F39D
mov rdi, [r13+18h]
test rdi, rdi
jz short loc_3F368
lea rax, _ZN6google8protobuf15FieldDescriptor12TypeOnceInitEPKS1_; google::protobuf::FieldDescriptor::TypeOnceInit(google::protobuf::FieldDescriptor const*)
lea rsi, [rsp+98h+var_90]; google::protobuf::FieldDescriptor *
mov [rsi], rax
lea rdx, [rsp+98h+var_70]
mov [rdx], r13
call _ZSt9call_onceIPFvPKN6google8protobuf15FieldDescriptorEEJS4_EEvRSt9once_flagOT_DpOT0_; std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(std::once_flag &,void (*)(google::protobuf::FieldDescriptor const*) &&,google::protobuf::FieldDescriptor const* &&)
loc_3F368:
cmp byte ptr [r13+2], 0Bh
jz short loc_3F39D
mov rax, [r13+10h]
cmp byte ptr [rax+3], 2
jz short loc_3F380
test byte ptr [r13+1], 2
jz short loc_3F39D
loc_3F380:
mov rdi, [r15+10h]; this
call _ZN6google8protobuf8compiler6csharp10IsNullableEPKNS0_15FieldDescriptorE; google::protobuf::compiler::csharp::IsNullable(google::protobuf::FieldDescriptor const*)
lea rcx, aGetReturnNameD; " get { return $name$_ ?? $default_valu"...
lea r12, aGetIfHasFieldC; " get { if ($has_field_check$) { return"...
test al, al
cmovnz r12, rcx
loc_3F39D:
mov rdi, rbx; this
mov rsi, r14
mov rdx, r12
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
lea rsi, aAccessLevelTyp_2+84h; " set {\n"
mov rdi, rbx
call _ZN6google8protobuf2io7Printer5PrintIJEEEvPKcDpRKT_
cmp dword ptr [r15+18h], 0FFFFFFFFh
jz short loc_3F3D3
lea rdx, aSetHasField; " $set_has_field$;\n"
mov rdi, rbx; this
mov rsi, r14
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
loc_3F3D3:
lea rax, aNameValue; " $name$_ = value;\n"
lea rdx, aNamePbProtopre; " $name$_ = pb::ProtoPreconditions.Ch"...
cmp byte ptr [r15+50h], 0
cmovnz rdx, rax
mov rdi, rbx; this
mov rsi, r14
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
lea rsi, aAccessLevelTyp_4+12Ah; " }\n}\n"
mov rdi, rbx
call _ZN6google8protobuf2io7Printer5PrintIJEEEvPKcDpRKT_
mov r12, [r15+10h]
mov al, [r12+1]
not al
test al, 60h
jz loc_3F4AF
mov rdi, [r12+18h]
test rdi, rdi
jz short loc_3F43D
lea rax, _ZN6google8protobuf15FieldDescriptor12TypeOnceInitEPKS1_; google::protobuf::FieldDescriptor::TypeOnceInit(google::protobuf::FieldDescriptor const*)
lea rsi, [rsp+98h+var_90]
mov [rsi], rax
lea rdx, [rsp+98h+var_70]
mov [rdx], r12
call _ZSt9call_onceIPFvPKN6google8protobuf15FieldDescriptorEEJS4_EEvRSt9once_flagOT_DpOT0_; std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(std::once_flag &,void (*)(google::protobuf::FieldDescriptor const*) &&,google::protobuf::FieldDescriptor const* &&)
loc_3F43D:
cmp byte ptr [r12+2], 0Bh
jz short loc_3F4AF
mov rax, [r12+10h]
cmp byte ptr [rax+3], 2
jz short loc_3F458
test byte ptr [r12+1], 2
jz short loc_3F4AF
loc_3F458:
lea rdx, aSummaryGetsWhe_0; "/// <summary>Gets whether the \"$descri"...
mov rdi, rbx; this
mov rsi, r14
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
mov rdi, r15; this
mov rsi, rbx; google::protobuf::io::Printer *
call _ZN6google8protobuf8compiler6csharp18FieldGeneratorBase25AddPublicMemberAttributesEPNS0_2io7PrinterE; google::protobuf::compiler::csharp::FieldGeneratorBase::AddPublicMemberAttributes(google::protobuf::io::Printer *)
lea rdx, aAccessLevelBoo_1; "$access_level$ bool Has$property_name$ "...
mov rdi, rbx; this
mov rsi, r14; google::protobuf::FieldDescriptor *
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
mov rdi, [r15+10h]; this
call _ZN6google8protobuf8compiler6csharp10IsNullableEPKNS0_15FieldDescriptorE; google::protobuf::compiler::csharp::IsNullable(google::protobuf::FieldDescriptor const*)
lea rcx, aAccessLevelBoo+38h; "$name$_ != null; }\n}\n"
lea rdx, aHasFieldCheck; "$has_field_check$; }\n}\n"
test al, al
cmovnz rdx, rcx
mov rdi, rbx; this
mov rsi, r14
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
loc_3F4AF:
mov r12, [r15+10h]
mov al, [r12+1]
not al
test al, 60h
jz loc_3F569
mov rdi, [r12+18h]
test rdi, rdi
jz short loc_3F4E8
lea rax, _ZN6google8protobuf15FieldDescriptor12TypeOnceInitEPKS1_; google::protobuf::FieldDescriptor::TypeOnceInit(google::protobuf::FieldDescriptor const*)
lea rsi, [rsp+98h+var_90]
mov [rsi], rax
lea rdx, [rsp+98h+var_70]
mov [rdx], r12
call _ZSt9call_onceIPFvPKN6google8protobuf15FieldDescriptorEEJS4_EEvRSt9once_flagOT_DpOT0_; std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(std::once_flag &,void (*)(google::protobuf::FieldDescriptor const*) &&,google::protobuf::FieldDescriptor const* &&)
loc_3F4E8:
cmp byte ptr [r12+2], 0Bh
jz short loc_3F569
mov rax, [r12+10h]
cmp byte ptr [rax+3], 2
jz short loc_3F503
test byte ptr [r12+1], 2
jz short loc_3F569
loc_3F503:
lea rdx, aSummaryClearsT_1; "/// <summary>Clears the value of the \""...
mov rdi, rbx; this
mov rsi, r14
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
mov rdi, r15; this
mov rsi, rbx; google::protobuf::io::Printer *
call _ZN6google8protobuf8compiler6csharp18FieldGeneratorBase25AddPublicMemberAttributesEPNS0_2io7PrinterE; google::protobuf::compiler::csharp::FieldGeneratorBase::AddPublicMemberAttributes(google::protobuf::io::Printer *)
lea rdx, aAccessLevelVoi_1; "$access_level$ void Clear$property_name"...
mov rdi, rbx; this
mov rsi, r14; google::protobuf::FieldDescriptor *
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
mov rdi, [r15+10h]; this
call _ZN6google8protobuf8compiler6csharp10IsNullableEPKNS0_15FieldDescriptorE; google::protobuf::compiler::csharp::IsNullable(google::protobuf::FieldDescriptor const*)
lea rcx, aNameNull; " $name$_ = null;\n"
lea rdx, aClearHasField; " $clear_has_field$;\n"
test al, al
cmovnz rdx, rcx
mov rdi, rbx; this
mov rsi, r14
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
lea rsi, aIfOtherHasCapi_1+6Dh; "}\n"
mov rdi, rbx
call _ZN6google8protobuf2io7Printer5PrintIJEEEvPKcDpRKT_
loc_3F569:
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, [rsp+arg_40]; void *
cmp rdi, rbp
jz short loc_3F591
call __ZdlPv; operator delete(void *)
jmp short loc_3F591
jmp short $+2
loc_3F58E:
mov rbx, rax
loc_3F591:
mov rdi, [rsp+arg_0]; void *
cmp rdi, r13
jz short loc_3F5D1
call __ZdlPv; operator delete(void *)
jmp short loc_3F5D1
jmp short $+2
loc_3F5A4:
mov rbx, rax
jmp short loc_3F5C2
jmp short $+2
loc_3F5AB:
mov rbx, rax
jmp short loc_3F5E0
mov rbx, rax
mov rdi, [rsp+arg_20]; void *
cmp rdi, rbp
jz short loc_3F5C2
call __ZdlPv; operator delete(void *)
loc_3F5C2:
mov rdi, [rsp+arg_0]
cmp rdi, r13
jnz short loc_3F5DB
jmp short loc_3F5E0
mov rbx, rax
loc_3F5D1:
mov rdi, [rsp+arg_20]; void *
cmp rdi, r12
jz short loc_3F5E0
loc_3F5DB:
call __ZdlPv; operator delete(void *)
loc_3F5E0:
mov rdi, rbx
call __Unwind_Resume
|
char google::protobuf::compiler::csharp::PrimitiveFieldGenerator::GenerateMembers(
google::protobuf::compiler::csharp::PrimitiveFieldGenerator *this,
google::protobuf::io::Printer *a2)
{
const google::protobuf::FieldDescriptor *v4; // r14
long long v5; // rax
long long v6; // rax
void *v7; // rdi
long long v8; // r12
long long v9; // rax
const google::protobuf::FieldDescriptor *v10; // rdx
void **v11; // rsi
long long v12; // r13
long long v13; // rdi
long long v14; // r12
long long v15; // rdi
long long v16; // r12
long long v17; // rax
long long v18; // rdi
void *v20; // [rsp+0h] [rbp-98h]
void *v21; // [rsp+0h] [rbp-98h]
void *v22; // [rsp+0h] [rbp-98h]
void *v23; // [rsp+0h] [rbp-98h]
void *v24; // [rsp+0h] [rbp-98h]
void *v25; // [rsp+0h] [rbp-98h]
void *v26; // [rsp+0h] [rbp-98h]
void *v27; // [rsp+0h] [rbp-98h]
void *v28; // [rsp+0h] [rbp-98h]
void *v29; // [rsp+8h] [rbp-90h] BYREF
char v30; // [rsp+10h] [rbp-88h]
int v31; // [rsp+18h] [rbp-80h] BYREF
int v32; // [rsp+20h] [rbp-78h]
void *v33; // [rsp+28h] [rbp-70h] BYREF
int v34; // [rsp+30h] [rbp-68h]
int v35; // [rsp+38h] [rbp-60h] BYREF
int v36; // [rsp+40h] [rbp-58h]
void *v37; // [rsp+48h] [rbp-50h] BYREF
int v38; // [rsp+50h] [rbp-48h]
char v39[64]; // [rsp+58h] [rbp-40h] BYREF
v4 = (google::protobuf::compiler::csharp::PrimitiveFieldGenerator *)((char *)this + 32);
if ( *(_BYTE *)(*(_QWORD *)(*((_QWORD *)this + 2) + 16LL) + 3LL) == 2 )
{
google::protobuf::io::Printer::Print(a2, v20, (int)v29, v30, v31, v32, (int)v33, v34, v35, v36, v37, v38, v39[0]);
v33 = &v35;
std::string::_M_construct<char const*>((long long)&v33, "property_name", (long long)"");
v5 = std::map<std::string,std::string>::operator[]((long long)v4, (long long)&v33);
v29 = &v31;
std::string::_M_construct<char *>((long long)&v29, *(_BYTE **)v5, *(_QWORD *)v5 + *(_QWORD *)(v5 + 8));
std::string::append(&v29, "DefaultValue");
v37 = v39;
std::string::_M_construct<char const*>((long long)&v37, "default_value_access", (long long)"");
v6 = std::map<std::string,std::string>::operator[]((long long)v4, (long long)&v37);
std::string::operator=(v6, &v29);
if ( v37 != v39 )
operator delete(v37);
if ( v29 != &v31 )
operator delete(v29);
v7 = v33;
if ( v33 == &v35 )
goto LABEL_12;
LABEL_11:
operator delete(v7);
goto LABEL_12;
}
v29 = &v31;
std::string::_M_construct<char const*>((long long)&v29, "default_value", (long long)"");
v8 = std::map<std::string,std::string>::operator[]((long long)v4, (long long)&v29);
v33 = &v35;
std::string::_M_construct<char const*>((long long)&v33, "default_value_access", (long long)"");
v9 = std::map<std::string,std::string>::operator[]((long long)v4, (long long)&v33);
std::string::_M_assign(v9, v8);
if ( v33 != &v35 )
operator delete(v33);
v7 = v29;
if ( v29 != &v31 )
goto LABEL_11;
LABEL_12:
google::protobuf::io::Printer::Print(a2, v20, (int)v29, v30, v31, v32, (int)v33, v34, v35, v36, v37, v38, v39[0]);
google::protobuf::compiler::csharp::WritePropertyDocComment(a2, *((google::protobuf::io::Printer **)this + 2), v10);
google::protobuf::compiler::csharp::FieldGeneratorBase::AddPublicMemberAttributes(this, a2);
v11 = (void **)v4;
google::protobuf::io::Printer::Print(a2, v21, (int)v29, v30, v31, v32, (int)v33, v34, v35, v36, v37, v38, v39[0]);
v12 = *((_QWORD *)this + 2);
if ( (~*(_BYTE *)(v12 + 1) & 0x60) != 0 )
{
v13 = *(_QWORD *)(v12 + 24);
if ( v13 )
{
v11 = &v29;
v29 = google::protobuf::FieldDescriptor::TypeOnceInit;
v33 = (void *)v12;
std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(
v13,
(long long)&v29,
(long long)&v33);
}
if ( *(_BYTE *)(v12 + 2) != 11 && (*(_BYTE *)(*(_QWORD *)(v12 + 16) + 3LL) == 2 || (*(_BYTE *)(v12 + 1) & 2) != 0) )
google::protobuf::compiler::csharp::IsNullable(
*((google::protobuf::compiler::csharp **)this + 2),
(const google::protobuf::FieldDescriptor *)v11);
}
google::protobuf::io::Printer::Print(a2, v22, (int)v29, v30, v31, v32, (int)v33, v34, v35, v36, v37, v38, v39[0]);
google::protobuf::io::Printer::Print<>(a2, " set {\n");
if ( *((_DWORD *)this + 6) != -1 )
google::protobuf::io::Printer::Print(a2, v23, (int)v29, v30, v31, v32, (int)v33, v34, v35, v36, v37, v38, v39[0]);
google::protobuf::io::Printer::Print(a2, v23, (int)v29, v30, v31, v32, (int)v33, v34, v35, v36, v37, v38, v39[0]);
google::protobuf::io::Printer::Print<>(a2, " }\n}\n");
v14 = *((_QWORD *)this + 2);
if ( (~*(_BYTE *)(v14 + 1) & 0x60) != 0 )
{
v15 = *(_QWORD *)(v14 + 24);
if ( v15 )
{
v29 = google::protobuf::FieldDescriptor::TypeOnceInit;
v33 = (void *)v14;
std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(
v15,
(long long)&v29,
(long long)&v33);
}
if ( *(_BYTE *)(v14 + 2) != 11 && (*(_BYTE *)(*(_QWORD *)(v14 + 16) + 3LL) == 2 || (*(_BYTE *)(v14 + 1) & 2) != 0) )
{
google::protobuf::io::Printer::Print(a2, v24, (int)v29, v30, v31, v32, (int)v33, v34, v35, v36, v37, v38, v39[0]);
google::protobuf::compiler::csharp::FieldGeneratorBase::AddPublicMemberAttributes(this, a2);
google::protobuf::io::Printer::Print(a2, v25, (int)v29, v30, v31, v32, (int)v33, v34, v35, v36, v37, v38, v39[0]);
google::protobuf::compiler::csharp::IsNullable(*((google::protobuf::compiler::csharp **)this + 2), v4);
google::protobuf::io::Printer::Print(a2, v26, (int)v29, v30, v31, v32, (int)v33, v34, v35, v36, v37, v38, v39[0]);
}
}
v16 = *((_QWORD *)this + 2);
LOBYTE(v17) = ~*(_BYTE *)(v16 + 1);
if ( (v17 & 0x60) != 0 )
{
v18 = *(_QWORD *)(v16 + 24);
if ( v18 )
{
v29 = google::protobuf::FieldDescriptor::TypeOnceInit;
v33 = (void *)v16;
LOBYTE(v17) = std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(
v18,
(long long)&v29,
(long long)&v33);
}
if ( *(_BYTE *)(v16 + 2) != 11 )
{
v17 = *(_QWORD *)(v16 + 16);
if ( *(_BYTE *)(v17 + 3) == 2 || (*(_BYTE *)(v16 + 1) & 2) != 0 )
{
google::protobuf::io::Printer::Print(
a2,
v24,
(int)v29,
v30,
v31,
v32,
(int)v33,
v34,
v35,
v36,
v37,
v38,
v39[0]);
google::protobuf::compiler::csharp::FieldGeneratorBase::AddPublicMemberAttributes(this, a2);
google::protobuf::io::Printer::Print(
a2,
v27,
(int)v29,
v30,
v31,
v32,
(int)v33,
v34,
v35,
v36,
v37,
v38,
v39[0]);
google::protobuf::compiler::csharp::IsNullable(*((google::protobuf::compiler::csharp **)this + 2), v4);
google::protobuf::io::Printer::Print(
a2,
v28,
(int)v29,
v30,
v31,
v32,
(int)v33,
v34,
v35,
v36,
v37,
v38,
v39[0]);
LOBYTE(v17) = google::protobuf::io::Printer::Print<>(a2, "}\n");
}
}
}
return v17;
}
|
GenerateMembers:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV RBX,RSI
MOV R15,RDI
MOV RAX,qword ptr [RDI + 0x10]
MOV RAX,qword ptr [RAX + 0x10]
LEA R14,[RDI + 0x20]
CMP byte ptr [RAX + 0x3],0x2
JNZ 0x0013f26b
LEA RDX,[0x29f3b7]
MOV RDI,RBX
MOV RSI,R14
CALL 0x0026cd32
LEA R12,[RSP + 0x38]
MOV qword ptr [R12 + -0x10],R12
LAB_0013f1ac:
LEA RSI,[0x2b8647]
LEA RDX,[0x2b8654]
LEA RDI,[RSP + 0x28]
CALL 0x001250b2
LAB_0013f1c4:
LEA RSI,[RSP + 0x28]
MOV RDI,R14
CALL 0x0012e310
LEA R13,[RSP + 0x18]
MOV qword ptr [R13 + -0x10],R13
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
ADD RDX,RSI
LEA RDI,[RSP + 0x8]
CALL 0x0012586a
LAB_0013f1ee:
LEA RSI,[0x2e6920]
LEA RDI,[RSP + 0x8]
CALL 0x0011f8e0
LEA RBP,[RSP + 0x58]
MOV qword ptr [RBP + -0x10],RBP
LAB_0013f208:
LEA RSI,[0x29f40c]
LEA RDX,[0x29f420]
LEA RDI,[RSP + 0x48]
CALL 0x001250b2
LAB_0013f220:
LEA RSI,[RSP + 0x48]
MOV RDI,R14
CALL 0x0012e310
LEA RSI,[RSP + 0x8]
MOV RDI,RAX
CALL 0x0011f5d0
MOV RDI,qword ptr [RSP + 0x48]
CMP RDI,RBP
JZ 0x0013f249
CALL 0x0011f4a0
LAB_0013f249:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R13
JZ 0x0013f258
CALL 0x0011f4a0
LAB_0013f258:
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R12
JNZ 0x0013f2ee
JMP 0x0013f2f3
LAB_0013f26b:
LEA R13,[RSP + 0x18]
MOV qword ptr [R13 + -0x10],R13
LAB_0013f274:
LEA RSI,[0x2d62a4]
LEA RDX,[0x2d62b1]
LEA RDI,[RSP + 0x8]
CALL 0x001250b2
LAB_0013f28c:
LEA RSI,[RSP + 0x8]
MOV RDI,R14
CALL 0x0012e310
MOV R12,RAX
LEA RBP,[RSP + 0x38]
MOV qword ptr [RBP + -0x10],RBP
LAB_0013f2a5:
LEA RSI,[0x29f40c]
LEA RDX,[0x29f420]
LEA RDI,[RSP + 0x28]
CALL 0x001250b2
LAB_0013f2bd:
LEA RSI,[RSP + 0x28]
MOV RDI,R14
CALL 0x0012e310
MOV RDI,RAX
MOV RSI,R12
CALL 0x0011f260
LAB_0013f2d5:
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,RBP
JZ 0x0013f2e4
CALL 0x0011f4a0
LAB_0013f2e4:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R13
JZ 0x0013f2f3
LAB_0013f2ee:
CALL 0x0011f4a0
LAB_0013f2f3:
LEA RDX,[0x29f421]
MOV RDI,RBX
MOV RSI,R14
CALL 0x0026cd32
MOV RSI,qword ptr [R15 + 0x10]
MOV RDI,RBX
CALL 0x0019d827
MOV RDI,R15
MOV RSI,RBX
CALL 0x001a130c
LEA RDX,[0x29f44a]
MOV RDI,RBX
MOV RSI,R14
CALL 0x0026cd32
MOV R13,qword ptr [R15 + 0x10]
MOV AL,byte ptr [R13 + 0x1]
NOT AL
LEA R12,[0x29f50b]
TEST AL,0x60
JZ 0x0013f39d
MOV RDI,qword ptr [R13 + 0x18]
TEST RDI,RDI
JZ 0x0013f368
LEA RAX,[0x239c34]
LEA RSI,[RSP + 0x8]
MOV qword ptr [RSI],RAX
LEA RDX,[RSP + 0x28]
MOV qword ptr [RDX],R13
CALL 0x0012f19d
LAB_0013f368:
CMP byte ptr [R13 + 0x2],0xb
JZ 0x0013f39d
MOV RAX,qword ptr [R13 + 0x10]
CMP byte ptr [RAX + 0x3],0x2
JZ 0x0013f380
TEST byte ptr [R13 + 0x1],0x2
JZ 0x0013f39d
LAB_0013f380:
MOV RDI,qword ptr [R15 + 0x10]
CALL 0x0013e0c7
LEA RCX,[0x29f478]
LEA R12,[0x29f4ad]
TEST AL,AL
CMOVNZ R12,RCX
LAB_0013f39d:
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R12
CALL 0x0026cd32
LEA RSI,[0x29fb88]
MOV RDI,RBX
CALL 0x0012e40a
CMP dword ptr [R15 + 0x18],-0x1
JZ 0x0013f3d3
LEA RDX,[0x29f526]
MOV RDI,RBX
MOV RSI,R14
CALL 0x0026cd32
LAB_0013f3d3:
LEA RAX,[0x29f53c]
LEA RDX,[0x29f552]
CMP byte ptr [R15 + 0x50],0x0
CMOVNZ RDX,RAX
MOV RDI,RBX
MOV RSI,R14
CALL 0x0026cd32
LEA RSI,[0x2a13f5]
MOV RDI,RBX
CALL 0x0012e40a
MOV R12,qword ptr [R15 + 0x10]
MOV AL,byte ptr [R12 + 0x1]
NOT AL
TEST AL,0x60
JZ 0x0013f4af
MOV RDI,qword ptr [R12 + 0x18]
TEST RDI,RDI
JZ 0x0013f43d
LEA RAX,[0x239c34]
LEA RSI,[RSP + 0x8]
MOV qword ptr [RSI],RAX
LEA RDX,[RSP + 0x28]
MOV qword ptr [RDX],R12
CALL 0x0012f19d
LAB_0013f43d:
CMP byte ptr [R12 + 0x2],0xb
JZ 0x0013f4af
MOV RAX,qword ptr [R12 + 0x10]
CMP byte ptr [RAX + 0x3],0x2
JZ 0x0013f458
TEST byte ptr [R12 + 0x1],0x2
JZ 0x0013f4af
LAB_0013f458:
LEA RDX,[0x29efa3]
MOV RDI,RBX
MOV RSI,R14
CALL 0x0026cd32
MOV RDI,R15
MOV RSI,RBX
CALL 0x001a130c
LEA RDX,[0x29f596]
MOV RDI,RBX
MOV RSI,R14
CALL 0x0026cd32
MOV RDI,qword ptr [R15 + 0x10]
CALL 0x0013e0c7
LEA RCX,[0x29e8ab]
LEA RDX,[0x29f5cf]
TEST AL,AL
CMOVNZ RDX,RCX
MOV RDI,RBX
MOV RSI,R14
CALL 0x0026cd32
LAB_0013f4af:
MOV R12,qword ptr [R15 + 0x10]
MOV AL,byte ptr [R12 + 0x1]
NOT AL
TEST AL,0x60
JZ 0x0013f569
MOV RDI,qword ptr [R12 + 0x18]
TEST RDI,RDI
JZ 0x0013f4e8
LEA RAX,[0x239c34]
LEA RSI,[RSP + 0x8]
MOV qword ptr [RSI],RAX
LEA RDX,[RSP + 0x28]
MOV qword ptr [RDX],R12
CALL 0x0012f19d
LAB_0013f4e8:
CMP byte ptr [R12 + 0x2],0xb
JZ 0x0013f569
MOV RAX,qword ptr [R12 + 0x10]
CMP byte ptr [RAX + 0x3],0x2
JZ 0x0013f503
TEST byte ptr [R12 + 0x1],0x2
JZ 0x0013f569
LAB_0013f503:
LEA RDX,[0x29f5e7]
MOV RDI,RBX
MOV RSI,R14
CALL 0x0026cd32
MOV RDI,R15
MOV RSI,RBX
CALL 0x001a130c
LEA RDX,[0x29f631]
MOV RDI,RBX
MOV RSI,R14
CALL 0x0026cd32
MOV RDI,qword ptr [R15 + 0x10]
CALL 0x0013e0c7
LEA RCX,[0x29f65f]
LEA RDX,[0x29f672]
TEST AL,AL
CMOVNZ RDX,RCX
MOV RDI,RBX
MOV RSI,R14
CALL 0x0026cd32
LEA RSI,[0x2e2117]
MOV RDI,RBX
CALL 0x0012e40a
LAB_0013f569:
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* google::protobuf::compiler::csharp::PrimitiveFieldGenerator::GenerateMembers(google::protobuf::io::Printer*)
*/
void __thiscall
google::protobuf::compiler::csharp::PrimitiveFieldGenerator::GenerateMembers
(PrimitiveFieldGenerator *this,Printer *param_1)
{
map<std::__cxx11::string,std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
*this_00;
char cVar1;
long *plVar2;
string *psVar3;
FieldDescriptor *pFVar4;
char *pcVar5;
FieldDescriptor *local_90 [2];
FieldDescriptor local_80 [16];
FieldDescriptor *local_70 [2];
FieldDescriptor local_60 [16];
int1 *local_50 [2];
int1 local_40 [16];
this_00 = (map<std::__cxx11::string,std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
*)(this + 0x20);
if (*(char *)(*(long *)(*(long *)(this + 0x10) + 0x10) + 3) == '\x02') {
io::Printer::Print(param_1,(map *)this_00,
"private readonly static $type_name$ $property_name$DefaultValue = $default_value$;\n\n"
);
/* try { // try from 0013f1ac to 0013f1c3 has its CatchHandler @ 0013f5ab */
local_70[0] = local_60;
std::__cxx11::string::_M_construct<char_const*>(local_70,"property_name","");
/* try { // try from 0013f1c4 to 0013f1ed has its CatchHandler @ 0013f5ce */
plVar2 = (long *)std::
map<std::__cxx11::string,std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::operator[](this_00,(string *)local_70);
local_90[0] = local_80;
std::__cxx11::string::_M_construct<char*>(local_90,*plVar2,plVar2[1] + *plVar2);
/* try { // try from 0013f1ee to 0013f1fe has its CatchHandler @ 0013f58e */
std::__cxx11::string::append((char *)local_90);
/* try { // try from 0013f208 to 0013f21f has its CatchHandler @ 0013f58c */
local_50[0] = local_40;
std::__cxx11::string::_M_construct<char_const*>(local_50,"default_value_access","");
/* try { // try from 0013f220 to 0013f22c has its CatchHandler @ 0013f578 */
psVar3 = (string *)
std::
map<std::__cxx11::string,std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::operator[](this_00,(string *)local_50);
std::__cxx11::string::operator=(psVar3,(string *)local_90);
if (local_50[0] != local_40) {
operator_delete(local_50[0]);
}
if (local_90[0] != local_80) {
operator_delete(local_90[0]);
}
pFVar4 = local_70[0];
if (local_70[0] == local_60) goto LAB_0013f2f3;
}
else {
/* try { // try from 0013f274 to 0013f28b has its CatchHandler @ 0013f5a9 */
local_90[0] = local_80;
std::__cxx11::string::_M_construct<char_const*>(local_90,"default_value","");
/* try { // try from 0013f28c to 0013f298 has its CatchHandler @ 0013f5a4 */
std::
map<std::__cxx11::string,std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::operator[](this_00,(string *)local_90);
/* try { // try from 0013f2a5 to 0013f2bc has its CatchHandler @ 0013f5a2 */
local_70[0] = local_60;
std::__cxx11::string::_M_construct<char_const*>(local_70,"default_value_access","");
/* try { // try from 0013f2bd to 0013f2d4 has its CatchHandler @ 0013f5b0 */
psVar3 = (string *)
std::
map<std::__cxx11::string,std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::operator[](this_00,(string *)local_70);
std::__cxx11::string::_M_assign(psVar3);
if (local_70[0] != local_60) {
operator_delete(local_70[0]);
}
pFVar4 = local_90[0];
if (local_90[0] == local_80) goto LAB_0013f2f3;
}
operator_delete(pFVar4);
LAB_0013f2f3:
io::Printer::Print(param_1,(map *)this_00,"private $type_name$ $name_def_message$;\n");
WritePropertyDocComment(param_1,*(FieldDescriptor **)(this + 0x10));
FieldGeneratorBase::AddPublicMemberAttributes((FieldGeneratorBase *)this,param_1);
io::Printer::Print(param_1,(map *)this_00,"$access_level$ $type_name$ $property_name$ {\n");
pFVar4 = *(FieldDescriptor **)(this + 0x10);
pcVar5 = " get { return $name$_; }\n";
if ((~(byte)pFVar4[1] & 0x60) != 0) {
if (*(once_flag **)(pFVar4 + 0x18) != (once_flag *)0x0) {
local_90[0] = (FieldDescriptor *)FieldDescriptor::TypeOnceInit;
local_70[0] = pFVar4;
std::
call_once<void(*)(google::protobuf::FieldDescriptor_const*),google::protobuf::FieldDescriptor_const*>
(*(once_flag **)(pFVar4 + 0x18),(_func_void_FieldDescriptor_ptr *)local_90,local_70)
;
}
if ((pFVar4[2] != (FieldDescriptor)0xb) &&
((*(char *)(*(long *)(pFVar4 + 0x10) + 3) == '\x02' || (((byte)pFVar4[1] & 2) != 0)))) {
cVar1 = IsNullable(*(FieldDescriptor **)(this + 0x10));
pcVar5 =
" get { if ($has_field_check$) { return $name$_; } else { return $default_value_access$; } }\n"
;
if (cVar1 != '\0') {
pcVar5 = " get { return $name$_ ?? $default_value_access$; }\n";
}
}
}
io::Printer::Print(param_1,(map *)this_00,pcVar5);
io::Printer::Print<>(param_1," set {\n");
if (*(int *)(this + 0x18) != -1) {
io::Printer::Print(param_1,(map *)this_00," $set_has_field$;\n");
}
pcVar5 = " $name$_ = pb::ProtoPreconditions.CheckNotNull(value, \"value\");\n";
if (this[0x50] != (PrimitiveFieldGenerator)0x0) {
pcVar5 = " $name$_ = value;\n";
}
io::Printer::Print(param_1,(map *)this_00,pcVar5);
io::Printer::Print<>(param_1," }\n}\n");
pFVar4 = *(FieldDescriptor **)(this + 0x10);
if ((~(byte)pFVar4[1] & 0x60) != 0) {
if (*(once_flag **)(pFVar4 + 0x18) != (once_flag *)0x0) {
local_90[0] = (FieldDescriptor *)FieldDescriptor::TypeOnceInit;
local_70[0] = pFVar4;
std::
call_once<void(*)(google::protobuf::FieldDescriptor_const*),google::protobuf::FieldDescriptor_const*>
(*(once_flag **)(pFVar4 + 0x18),(_func_void_FieldDescriptor_ptr *)local_90,local_70)
;
}
if ((pFVar4[2] != (FieldDescriptor)0xb) &&
((*(char *)(*(long *)(pFVar4 + 0x10) + 3) == '\x02' || (((byte)pFVar4[1] & 2) != 0)))) {
io::Printer::Print(param_1,(map *)this_00,
"/// <summary>Gets whether the \"$descriptor_name$\" field is set</summary>\n"
);
FieldGeneratorBase::AddPublicMemberAttributes((FieldGeneratorBase *)this,param_1);
io::Printer::Print(param_1,(map *)this_00,
"$access_level$ bool Has$property_name$ {\n get { return ");
cVar1 = IsNullable(*(FieldDescriptor **)(this + 0x10));
pcVar5 = "$has_field_check$; }\n}\n";
if (cVar1 != '\0') {
pcVar5 = "$name$_ != null; }\n}\n";
}
io::Printer::Print(param_1,(map *)this_00,pcVar5);
}
}
pFVar4 = *(FieldDescriptor **)(this + 0x10);
if ((~(byte)pFVar4[1] & 0x60) != 0) {
if (*(once_flag **)(pFVar4 + 0x18) != (once_flag *)0x0) {
local_90[0] = (FieldDescriptor *)FieldDescriptor::TypeOnceInit;
local_70[0] = pFVar4;
std::
call_once<void(*)(google::protobuf::FieldDescriptor_const*),google::protobuf::FieldDescriptor_const*>
(*(once_flag **)(pFVar4 + 0x18),(_func_void_FieldDescriptor_ptr *)local_90,local_70)
;
}
if ((pFVar4[2] != (FieldDescriptor)0xb) &&
((*(char *)(*(long *)(pFVar4 + 0x10) + 3) == '\x02' || (((byte)pFVar4[1] & 2) != 0)))) {
io::Printer::Print(param_1,(map *)this_00,
"/// <summary>Clears the value of the \"$descriptor_name$\" field</summary>\n"
);
FieldGeneratorBase::AddPublicMemberAttributes((FieldGeneratorBase *)this,param_1);
io::Printer::Print(param_1,(map *)this_00,"$access_level$ void Clear$property_name$() {\n");
cVar1 = IsNullable(*(FieldDescriptor **)(this + 0x10));
pcVar5 = " $clear_has_field$;\n";
if (cVar1 != '\0') {
pcVar5 = " $name$_ = null;\n";
}
io::Printer::Print(param_1,(map *)this_00,pcVar5);
io::Printer::Print<>(param_1,"}\n");
}
}
return;
}
|
|
16,229
|
utf8uprcodepoint
|
xtate/src/util-data/../util-data/utf8.h
|
utf8_constexpr14_impl utf8_int32_t utf8uprcodepoint(utf8_int32_t cp) {
if (((0x0061 <= cp) && (0x007a >= cp)) ||
((0x00e0 <= cp) && (0x00f6 >= cp)) ||
((0x00f8 <= cp) && (0x00fe >= cp)) ||
((0x03b1 <= cp) && (0x03c1 >= cp)) ||
((0x03c3 <= cp) && (0x03cb >= cp)) ||
((0x0430 <= cp) && (0x044f >= cp))) {
cp -= 32;
} else if ((0x0450 <= cp) && (0x045f >= cp)) {
cp -= 80;
} else if (((0x0100 <= cp) && (0x012f >= cp)) ||
((0x0132 <= cp) && (0x0137 >= cp)) ||
((0x014a <= cp) && (0x0177 >= cp)) ||
((0x0182 <= cp) && (0x0185 >= cp)) ||
((0x01a0 <= cp) && (0x01a5 >= cp)) ||
((0x01de <= cp) && (0x01ef >= cp)) ||
((0x01f8 <= cp) && (0x021f >= cp)) ||
((0x0222 <= cp) && (0x0233 >= cp)) ||
((0x0246 <= cp) && (0x024f >= cp)) ||
((0x03d8 <= cp) && (0x03ef >= cp)) ||
((0x0460 <= cp) && (0x0481 >= cp)) ||
((0x048a <= cp) && (0x04ff >= cp))) {
cp &= ~0x1;
} else if (((0x0139 <= cp) && (0x0148 >= cp)) ||
((0x0179 <= cp) && (0x017e >= cp)) ||
((0x01af <= cp) && (0x01b0 >= cp)) ||
((0x01b3 <= cp) && (0x01b6 >= cp)) ||
((0x01cd <= cp) && (0x01dc >= cp))) {
cp -= 1;
cp |= 0x1;
} else {
switch (cp) {
default:
break;
case 0x00ff:
cp = 0x0178;
break;
case 0x0180:
cp = 0x0243;
break;
case 0x01dd:
cp = 0x018e;
break;
case 0x019a:
cp = 0x023d;
break;
case 0x019e:
cp = 0x0220;
break;
case 0x0292:
cp = 0x01b7;
break;
case 0x01c6:
cp = 0x01c4;
break;
case 0x01c9:
cp = 0x01c7;
break;
case 0x01cc:
cp = 0x01ca;
break;
case 0x01f3:
cp = 0x01f1;
break;
case 0x01bf:
cp = 0x01f7;
break;
case 0x0188:
cp = 0x0187;
break;
case 0x018c:
cp = 0x018b;
break;
case 0x0192:
cp = 0x0191;
break;
case 0x0199:
cp = 0x0198;
break;
case 0x01a8:
cp = 0x01a7;
break;
case 0x01ad:
cp = 0x01ac;
break;
case 0x01b9:
cp = 0x01b8;
break;
case 0x01bd:
cp = 0x01bc;
break;
case 0x01f5:
cp = 0x01f4;
break;
case 0x023c:
cp = 0x023b;
break;
case 0x0242:
cp = 0x0241;
break;
case 0x037b:
cp = 0x03fd;
break;
case 0x037c:
cp = 0x03fe;
break;
case 0x037d:
cp = 0x03ff;
break;
case 0x03f3:
cp = 0x037f;
break;
case 0x03ac:
cp = 0x0386;
break;
case 0x03ad:
cp = 0x0388;
break;
case 0x03ae:
cp = 0x0389;
break;
case 0x03af:
cp = 0x038a;
break;
case 0x03cc:
cp = 0x038c;
break;
case 0x03cd:
cp = 0x038e;
break;
case 0x03ce:
cp = 0x038f;
break;
case 0x0371:
cp = 0x0370;
break;
case 0x0373:
cp = 0x0372;
break;
case 0x0377:
cp = 0x0376;
break;
case 0x03d1:
cp = 0x0398;
break;
case 0x03d7:
cp = 0x03cf;
break;
case 0x03f2:
cp = 0x03f9;
break;
case 0x03f8:
cp = 0x03f7;
break;
case 0x03fb:
cp = 0x03fa;
break;
}
}
return cp;
}
|
O3
|
c
|
utf8uprcodepoint:
movl %edi, %eax
movd %edi, %xmm0
pshufd $0x0, %xmm0, %xmm0 # xmm0 = xmm0[0,0,0,0]
movdqa 0x2616f(%rip), %xmm1 # 0x73cf0
paddd %xmm0, %xmm1
leal -0x3c3(%rax), %ecx
cmpl $0x9, %ecx
setae %cl
leal -0x430(%rax), %edx
cmpl $0x20, %edx
pxor 0x260ae(%rip), %xmm1 # 0x73c50
setae %dl
pcmpgtd 0x260b3(%rip), %xmm1 # 0x73c60
movmskps %xmm1, %esi
cmpl $0xf, %esi
sete %sil
andb %cl, %dl
testb %sil, %dl
jne 0x4dbc2
addl $-0x20, %eax
retq
movl %eax, %ecx
andl $-0x10, %ecx
cmpl $0x450, %ecx # imm = 0x450
jne 0x4dbd3
addl $-0x50, %eax
retq
movdqa 0x26095(%rip), %xmm2 # 0x73c70
movdqa 0x2609d(%rip), %xmm3 # 0x73c80
paddd %xmm0, %xmm3
movdqa 0x26061(%rip), %xmm1 # 0x73c50
pxor %xmm1, %xmm3
pcmpgtd 0x260a5(%rip), %xmm3 # 0x73ca0
paddd %xmm0, %xmm2
pxor %xmm1, %xmm2
pcmpgtd 0x260a5(%rip), %xmm2 # 0x73cb0
packssdw %xmm3, %xmm2
packsswb %xmm2, %xmm2
pmovmskb %xmm2, %ecx
xorb $-0x1, %cl
jne 0x4dc75
movdqa 0x2606c(%rip), %xmm2 # 0x73c90
paddd %xmm0, %xmm2
pxor %xmm1, %xmm2
pcmpgtd 0x2608c(%rip), %xmm2 # 0x73cc0
movmskps %xmm2, %ecx
xorl $0xf, %ecx
testb %cl, %cl
jne 0x4dc75
paddd 0x2608a(%rip), %xmm0 # 0x73cd0
leal -0x1cd(%rax), %ecx
cmpl $0x10, %ecx
setae %cl
pxor 0x25ff6(%rip), %xmm0 # 0x73c50
pcmpgtd 0x2607e(%rip), %xmm0 # 0x73ce0
movmskps %xmm0, %edx
cmpl $0xf, %edx
sete %dl
testb %cl, %dl
jne 0x4dc79
decl %eax
orl $0x1, %eax
retq
andl $-0x2, %eax
retq
cmpl $0x291, %eax # imm = 0x291
jg 0x4dcc4
cmpl $0x1b8, %eax # imm = 0x1B8
jle 0x4dcf0
cmpl $0x1cb, %eax # imm = 0x1CB
jle 0x4dd80
cmpl $0x1f4, %eax # imm = 0x1F4
jg 0x4ddfc
cmpl $0x1cc, %eax # imm = 0x1CC
je 0x4def2
cmpl $0x1dd, %eax # imm = 0x1DD
je 0x4dece
cmpl $0x1f3, %eax # imm = 0x1F3
jne 0x4dbc1
movl $0x1f1, %eax # imm = 0x1F1
retq
cmpl $0x3cb, %eax # imm = 0x3CB
jg 0x4dd29
leal -0x371(%rax), %ecx
cmpl $0xc, %ecx
ja 0x4ddb2
leaq 0x260d7(%rip), %rdx # 0x73db8
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movl $0x370, %eax # imm = 0x370
retq
cmpl $0x198, %eax # imm = 0x198
jg 0x4dd4e
cmpl $0x187, %eax # imm = 0x187
jle 0x4de23
cmpl $0x188, %eax # imm = 0x188
je 0x4dee0
cmpl $0x18c, %eax # imm = 0x18C
je 0x4dec2
cmpl $0x192, %eax # imm = 0x192
jne 0x4dbc1
movl $0x191, %eax # imm = 0x191
retq
leal -0x3cc(%rax), %ecx
cmpl $0xb, %ecx
ja 0x4ddd7
leaq 0x260bd(%rip), %rdx # 0x73dfc
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movl $0x38c, %eax # imm = 0x38C
retq
cmpl $0x19d, %eax # imm = 0x19D
jle 0x4de3f
cmpl $0x19e, %eax # imm = 0x19E
je 0x4dee6
cmpl $0x1a8, %eax # imm = 0x1A8
je 0x4dec8
cmpl $0x1ad, %eax # imm = 0x1AD
jne 0x4dbc1
movl $0x1ac, %eax # imm = 0x1AC
retq
cmpl $0x1be, %eax # imm = 0x1BE
jle 0x4de57
cmpl $0x1bf, %eax # imm = 0x1BF
je 0x4defe
cmpl $0x1c6, %eax # imm = 0x1C6
je 0x4deec
cmpl $0x1c9, %eax # imm = 0x1C9
jne 0x4dbc1
movl $0x1c7, %eax # imm = 0x1C7
retq
leal -0x3ac(%rax), %ecx
cmpl $0x3, %ecx
ja 0x4de6f
leaq 0x26024(%rip), %rax # 0x73dec
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movl $0x386, %eax # imm = 0x386
retq
leal -0x3f2(%rax), %ecx
cmpl $0x9, %ecx
ja 0x4dbc1
leaq 0x2603f(%rip), %rdx # 0x73e2c
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movl $0x3f9, %eax # imm = 0x3F9
retq
cmpl $0x1f5, %eax # imm = 0x1F5
je 0x4def8
cmpl $0x23c, %eax # imm = 0x23C
je 0x4ded4
cmpl $0x242, %eax # imm = 0x242
jne 0x4dbc1
movl $0x241, %eax # imm = 0x241
retq
cmpl $0xff, %eax
je 0x4deb6
cmpl $0x180, %eax # imm = 0x180
jne 0x4dbc1
movl $0x243, %eax # imm = 0x243
retq
cmpl $0x199, %eax # imm = 0x199
je 0x4debc
cmpl $0x19a, %eax # imm = 0x19A
jne 0x4dbc1
movl $0x23d, %eax # imm = 0x23D
retq
cmpl $0x1b9, %eax # imm = 0x1B9
je 0x4deda
cmpl $0x1bd, %eax # imm = 0x1BD
jne 0x4dbc1
movl $0x1bc, %eax # imm = 0x1BC
retq
cmpl $0x292, %eax # imm = 0x292
jne 0x4dbc1
movl $0x1b7, %eax # imm = 0x1B7
retq
movl $0x3cf, %eax # imm = 0x3CF
retq
movl $0x38e, %eax # imm = 0x38E
retq
movl $0x38f, %eax # imm = 0x38F
retq
movl $0x398, %eax # imm = 0x398
retq
movl $0x3fe, %eax # imm = 0x3FE
retq
movl $0x3fd, %eax # imm = 0x3FD
retq
movl $0x3ff, %eax # imm = 0x3FF
retq
movl $0x376, %eax # imm = 0x376
retq
movl $0x372, %eax # imm = 0x372
retq
movl $0x178, %eax # imm = 0x178
retq
movl $0x198, %eax # imm = 0x198
retq
movl $0x18b, %eax # imm = 0x18B
retq
movl $0x1a7, %eax # imm = 0x1A7
retq
movl $0x18e, %eax # imm = 0x18E
retq
movl $0x23b, %eax # imm = 0x23B
retq
movl $0x1b8, %eax # imm = 0x1B8
retq
movl $0x187, %eax # imm = 0x187
retq
movl $0x220, %eax # imm = 0x220
retq
movl $0x1c4, %eax # imm = 0x1C4
retq
movl $0x1ca, %eax # imm = 0x1CA
retq
movl $0x1f4, %eax # imm = 0x1F4
retq
movl $0x1f7, %eax # imm = 0x1F7
retq
movl $0x37f, %eax # imm = 0x37F
retq
movl $0x3f7, %eax # imm = 0x3F7
retq
movl $0x3fa, %eax # imm = 0x3FA
retq
movl $0x389, %eax # imm = 0x389
retq
movl $0x38a, %eax # imm = 0x38A
retq
movl $0x388, %eax # imm = 0x388
retq
|
utf8uprcodepoint:
mov eax, edi
movd xmm0, edi
pshufd xmm0, xmm0, 0
movdqa xmm1, cs:xmmword_73CF0
paddd xmm1, xmm0
lea ecx, [rax-3C3h]
cmp ecx, 9
setnb cl
lea edx, [rax-430h]
cmp edx, 20h ; ' '
pxor xmm1, cs:xmmword_73C50
setnb dl
pcmpgtd xmm1, cs:xmmword_73C60
movmskps esi, xmm1
cmp esi, 0Fh
setz sil
and dl, cl
test dl, sil
jnz short loc_4DBC2
add eax, 0FFFFFFE0h
def_4DDF4:
retn; jumptable 000000000004DCE8 cases 882,884-886,888-890
loc_4DBC2:
mov ecx, eax
and ecx, 0FFFFFFF0h
cmp ecx, 450h
jnz short loc_4DBD3
add eax, 0FFFFFFB0h
retn
loc_4DBD3:
movdqa xmm2, cs:xmmword_73C70
movdqa xmm3, cs:xmmword_73C80
paddd xmm3, xmm0
movdqa xmm1, cs:xmmword_73C50
pxor xmm3, xmm1
pcmpgtd xmm3, cs:xmmword_73CA0
paddd xmm2, xmm0
pxor xmm2, xmm1
pcmpgtd xmm2, cs:xmmword_73CB0
packssdw xmm2, xmm3
packsswb xmm2, xmm2
pmovmskb ecx, xmm2
xor cl, 0FFh
jnz short loc_4DC75
movdqa xmm2, cs:xmmword_73C90
paddd xmm2, xmm0
pxor xmm2, xmm1
pcmpgtd xmm2, cs:xmmword_73CC0
movmskps ecx, xmm2
xor ecx, 0Fh
test cl, cl
jnz short loc_4DC75
paddd xmm0, cs:xmmword_73CD0
lea ecx, [rax-1CDh]
cmp ecx, 10h
setnb cl
pxor xmm0, cs:xmmword_73C50
pcmpgtd xmm0, cs:xmmword_73CE0
movmskps edx, xmm0
cmp edx, 0Fh
setz dl
test dl, cl
jnz short loc_4DC79
dec eax
or eax, 1
retn
loc_4DC75:
and eax, 0FFFFFFFEh
retn
loc_4DC79:
cmp eax, 291h
jg short loc_4DCC4
cmp eax, 1B8h
jle short loc_4DCF0
cmp eax, 1CBh
jle loc_4DD80
cmp eax, 1F4h
jg loc_4DDFC
cmp eax, 1CCh
jz loc_4DEF2
cmp eax, 1DDh
jz loc_4DECE
cmp eax, 1F3h
jnz def_4DDF4; jumptable 000000000004DCE8 cases 882,884-886,888-890
mov eax, 1F1h
retn
loc_4DCC4:
cmp eax, 3CBh
jg short loc_4DD29
lea ecx, [rax-371h]; switch 13 cases
cmp ecx, 0Ch
ja def_4DCE8; jumptable 000000000004DCE8 default case
lea rdx, jpt_4DCE8
movsxd rcx, ds:(jpt_4DCE8 - 73DB8h)[rdx+rcx*4]
add rcx, rdx
jmp rcx; switch jump
loc_4DCEA:
mov eax, 370h; jumptable 000000000004DCE8 case 881
retn
loc_4DCF0:
cmp eax, 198h
jg short loc_4DD4E
cmp eax, 187h
jle loc_4DE23
cmp eax, 188h
jz loc_4DEE0
cmp eax, 18Ch
jz loc_4DEC2
cmp eax, 192h
jnz def_4DDF4; jumptable 000000000004DCE8 cases 882,884-886,888-890
mov eax, 191h
retn
loc_4DD29:
lea ecx, [rax-3CCh]; switch 12 cases
cmp ecx, 0Bh
ja def_4DD46; jumptable 000000000004DD46 default case
lea rdx, jpt_4DD46
movsxd rcx, ds:(jpt_4DD46 - 73DFCh)[rdx+rcx*4]
add rcx, rdx
jmp rcx; switch jump
loc_4DD48:
mov eax, 38Ch; jumptable 000000000004DD46 case 972
retn
loc_4DD4E:
cmp eax, 19Dh
jle loc_4DE3F
cmp eax, 19Eh
jz loc_4DEE6
cmp eax, 1A8h
jz loc_4DEC8
cmp eax, 1ADh
jnz def_4DDF4; jumptable 000000000004DCE8 cases 882,884-886,888-890
mov eax, 1ACh
retn
loc_4DD80:
cmp eax, 1BEh
jle loc_4DE57
cmp eax, 1BFh
jz loc_4DEFE
cmp eax, 1C6h
jz loc_4DEEC
cmp eax, 1C9h
jnz def_4DDF4; jumptable 000000000004DCE8 cases 882,884-886,888-890
mov eax, 1C7h
retn
def_4DCE8:
lea ecx, [rax-3ACh]; jumptable 000000000004DCE8 default case
cmp ecx, 3
ja def_4DDCF; jumptable 000000000004DDCF default case
lea rax, jpt_4DDCF
movsxd rcx, ds:(jpt_4DDCF - 73DECh)[rax+rcx*4]
add rcx, rax
jmp rcx; switch jump
loc_4DDD1:
mov eax, 386h; jumptable 000000000004DDCF case 940
retn
def_4DD46:
lea ecx, [rax-3F2h]; jumptable 000000000004DD46 default case
cmp ecx, 9
ja def_4DDF4; jumptable 000000000004DCE8 cases 882,884-886,888-890
lea rdx, jpt_4DDF4
movsxd rcx, ds:(jpt_4DDF4 - 73E2Ch)[rdx+rcx*4]
add rcx, rdx
jmp rcx; switch jump
loc_4DDF6:
mov eax, 3F9h; jumptable 000000000004DDF4 case 1010
retn
loc_4DDFC:
cmp eax, 1F5h
jz loc_4DEF8
cmp eax, 23Ch
jz loc_4DED4
cmp eax, 242h
jnz def_4DDF4; jumptable 000000000004DCE8 cases 882,884-886,888-890
mov eax, 241h
retn
loc_4DE23:
cmp eax, 0FFh
jz loc_4DEB6
cmp eax, 180h
jnz def_4DDF4; jumptable 000000000004DCE8 cases 882,884-886,888-890
mov eax, 243h
retn
loc_4DE3F:
cmp eax, 199h
jz short loc_4DEBC
cmp eax, 19Ah
jnz def_4DDF4; jumptable 000000000004DCE8 cases 882,884-886,888-890
mov eax, 23Dh
retn
loc_4DE57:
cmp eax, 1B9h
jz short loc_4DEDA
cmp eax, 1BDh
jnz def_4DDF4; jumptable 000000000004DCE8 cases 882,884-886,888-890
mov eax, 1BCh
retn
def_4DDCF:
cmp eax, 292h; jumptable 000000000004DDCF default case
jnz def_4DDF4; jumptable 000000000004DCE8 cases 882,884-886,888-890
mov eax, 1B7h
retn
loc_4DE80:
mov eax, 3CFh; jumptable 000000000004DD46 case 983
retn
loc_4DE86:
mov eax, 38Eh; jumptable 000000000004DD46 case 973
retn
loc_4DE8C:
mov eax, 38Fh; jumptable 000000000004DD46 case 974
retn
loc_4DE92:
mov eax, 398h; jumptable 000000000004DD46 case 977
retn
loc_4DE98:
mov eax, 3FEh; jumptable 000000000004DCE8 case 892
retn
loc_4DE9E:
mov eax, 3FDh; jumptable 000000000004DCE8 case 891
retn
loc_4DEA4:
mov eax, 3FFh; jumptable 000000000004DCE8 case 893
retn
loc_4DEAA:
mov eax, 376h; jumptable 000000000004DCE8 case 887
retn
loc_4DEB0:
mov eax, 372h; jumptable 000000000004DCE8 case 883
retn
loc_4DEB6:
mov eax, 178h
retn
loc_4DEBC:
mov eax, 198h
retn
loc_4DEC2:
mov eax, 18Bh
retn
loc_4DEC8:
mov eax, 1A7h
retn
loc_4DECE:
mov eax, 18Eh
retn
loc_4DED4:
mov eax, 23Bh
retn
loc_4DEDA:
mov eax, 1B8h
retn
loc_4DEE0:
mov eax, 187h
retn
loc_4DEE6:
mov eax, 220h
retn
loc_4DEEC:
mov eax, 1C4h
retn
loc_4DEF2:
mov eax, 1CAh
retn
loc_4DEF8:
mov eax, 1F4h
retn
loc_4DEFE:
mov eax, 1F7h
retn
loc_4DF04:
mov eax, 37Fh; jumptable 000000000004DDF4 case 1011
retn
loc_4DF0A:
mov eax, 3F7h; jumptable 000000000004DDF4 case 1016
retn
loc_4DF10:
mov eax, 3FAh; jumptable 000000000004DDF4 case 1019
retn
loc_4DF16:
mov eax, 389h; jumptable 000000000004DDCF case 942
retn
loc_4DF1C:
mov eax, 38Ah; jumptable 000000000004DDCF case 943
retn
loc_4DF22:
mov eax, 388h; jumptable 000000000004DDCF case 941
retn
|
long long utf8uprcodepoint(signed int a1)
{
long long result; // rax
__m128i v2; // xmm0
__m128i si128; // xmm1
__m128i v4; // xmm2
result = (unsigned int)a1;
v2 = _mm_shuffle_epi32(_mm_cvtsi32_si128(a1), 0);
if ( _mm_movemask_ps((__m128)_mm_cmpgt_epi32(
_mm_xor_si128(
_mm_add_epi32(_mm_load_si128((const __m128i *)&xmmword_73CF0), v2),
(__m128i)xmmword_73C50),
(__m128i)xmmword_73C60)) != 15
|| (unsigned int)(a1 - 963) < 9
|| (unsigned int)(a1 - 1072) < 0x20 )
{
return (unsigned int)(a1 - 32);
}
if ( (a1 & 0xFFFFFFF0) == 0x450 )
return (unsigned int)(a1 - 80);
si128 = _mm_load_si128((const __m128i *)&xmmword_73C50);
v4 = _mm_packs_epi32(
_mm_cmpgt_epi32(
_mm_xor_si128(_mm_add_epi32(_mm_load_si128((const __m128i *)&xmmword_73C70), v2), si128),
(__m128i)xmmword_73CB0),
_mm_cmpgt_epi32(
_mm_xor_si128(_mm_add_epi32(_mm_load_si128((const __m128i *)&xmmword_73C80), v2), si128),
(__m128i)xmmword_73CA0));
if ( (unsigned __int8)_mm_movemask_epi8(_mm_packs_epi16(v4, v4)) != 0xFF
|| (unsigned __int8)_mm_movemask_ps((__m128)_mm_cmpgt_epi32(
_mm_xor_si128(
_mm_add_epi32(_mm_load_si128((const __m128i *)&xmmword_73C90), v2),
si128),
(__m128i)xmmword_73CC0)) != 0xF )
{
return a1 & 0xFFFFFFFE;
}
if ( (((unsigned int)(a1 - 461) >= 0x10) & (_mm_movemask_ps((__m128)_mm_cmpgt_epi32(
_mm_xor_si128(
_mm_add_epi32(v2, (__m128i)xmmword_73CD0),
(__m128i)xmmword_73C50),
(__m128i)xmmword_73CE0)) == 15)) == 0 )
return (a1 - 1) | 1u;
if ( a1 > 657 )
{
if ( a1 > 971 )
{
switch ( a1 )
{
case 972:
result = 908LL;
break;
case 973:
result = 910LL;
break;
case 974:
result = 911LL;
break;
case 975:
case 976:
case 978:
case 979:
case 980:
case 981:
case 982:
return result;
case 977:
result = 920LL;
break;
case 983:
result = 975LL;
break;
default:
switch ( a1 )
{
case 1010:
result = 1017LL;
break;
case 1011:
result = 895LL;
break;
case 1016:
result = 1015LL;
break;
case 1019:
result = 1018LL;
break;
default:
return result;
}
break;
}
}
else
{
switch ( a1 )
{
case 881:
result = 880LL;
break;
case 882:
case 884:
case 885:
case 886:
case 888:
case 889:
case 890:
return result;
case 883:
result = 882LL;
break;
case 887:
result = 886LL;
break;
case 891:
result = 1021LL;
break;
case 892:
result = 1022LL;
break;
case 893:
result = 1023LL;
break;
default:
switch ( a1 )
{
case 940:
result = 902LL;
break;
case 941:
result = 904LL;
break;
case 942:
result = 905LL;
break;
case 943:
result = 906LL;
break;
default:
if ( a1 == 658 )
result = 439LL;
break;
}
break;
}
}
}
else if ( a1 <= 440 )
{
if ( a1 > 408 )
{
if ( a1 <= 413 )
{
if ( a1 == 409 )
{
return 408LL;
}
else if ( a1 == 410 )
{
return 573LL;
}
}
else
{
switch ( a1 )
{
case 414:
return 544LL;
case 424:
return 423LL;
case 429:
return 428LL;
}
}
}
else if ( a1 <= 391 )
{
if ( a1 == 255 )
{
return 376LL;
}
else if ( a1 == 384 )
{
return 579LL;
}
}
else
{
switch ( a1 )
{
case 392:
return 391LL;
case 396:
return 395LL;
case 402:
return 401LL;
}
}
}
else if ( a1 <= 459 )
{
if ( a1 <= 446 )
{
if ( a1 == 441 )
{
return 440LL;
}
else if ( a1 == 445 )
{
return 444LL;
}
}
else
{
switch ( a1 )
{
case 447:
return 503LL;
case 454:
return 452LL;
case 457:
return 455LL;
}
}
}
else if ( a1 > 500 )
{
switch ( a1 )
{
case 501:
return 500LL;
case 572:
return 571LL;
case 578:
return 577LL;
}
}
else
{
switch ( a1 )
{
case 460:
return 458LL;
case 477:
return 398LL;
case 499:
return 497LL;
}
}
return result;
}
|
utf8uprcodepoint:
MOV EAX,EDI
MOVD XMM0,EDI
PSHUFD XMM0,XMM0,0x0
MOVDQA XMM1,xmmword ptr [0x00173cf0]
PADDD XMM1,XMM0
LEA ECX,[RAX + -0x3c3]
CMP ECX,0x9
SETNC CL
LEA EDX,[RAX + -0x430]
CMP EDX,0x20
PXOR XMM1,xmmword ptr [0x00173c50]
SETNC DL
PCMPGTD XMM1,xmmword ptr [0x00173c60]
MOVMSKPS ESI,XMM1
CMP ESI,0xf
SETZ SIL
AND DL,CL
TEST DL,SIL
JNZ 0x0014dbc2
ADD EAX,-0x20
caseD_372:
RET
LAB_0014dbc2:
MOV ECX,EAX
AND ECX,0xfffffff0
CMP ECX,0x450
JNZ 0x0014dbd3
ADD EAX,-0x50
RET
LAB_0014dbd3:
MOVDQA XMM2,xmmword ptr [0x00173c70]
MOVDQA XMM3,xmmword ptr [0x00173c80]
PADDD XMM3,XMM0
MOVDQA XMM1,xmmword ptr [0x00173c50]
PXOR XMM3,XMM1
PCMPGTD XMM3,xmmword ptr [0x00173ca0]
PADDD XMM2,XMM0
PXOR XMM2,XMM1
PCMPGTD XMM2,xmmword ptr [0x00173cb0]
PACKSSDW XMM2,XMM3
PACKSSWB XMM2,XMM2
PMOVMSKB ECX,XMM2
XOR CL,0xff
JNZ 0x0014dc75
MOVDQA XMM2,xmmword ptr [0x00173c90]
PADDD XMM2,XMM0
PXOR XMM2,XMM1
PCMPGTD XMM2,xmmword ptr [0x00173cc0]
MOVMSKPS ECX,XMM2
XOR ECX,0xf
TEST CL,CL
JNZ 0x0014dc75
PADDD XMM0,xmmword ptr [0x00173cd0]
LEA ECX,[RAX + -0x1cd]
CMP ECX,0x10
SETNC CL
PXOR XMM0,xmmword ptr [0x00173c50]
PCMPGTD XMM0,xmmword ptr [0x00173ce0]
MOVMSKPS EDX,XMM0
CMP EDX,0xf
SETZ DL
TEST DL,CL
JNZ 0x0014dc79
DEC EAX
OR EAX,0x1
RET
LAB_0014dc75:
AND EAX,0xfffffffe
RET
LAB_0014dc79:
CMP EAX,0x291
JG 0x0014dcc4
CMP EAX,0x1b8
JLE 0x0014dcf0
CMP EAX,0x1cb
JLE 0x0014dd80
CMP EAX,0x1f4
JG 0x0014ddfc
CMP EAX,0x1cc
JZ 0x0014def2
CMP EAX,0x1dd
JZ 0x0014dece
CMP EAX,0x1f3
JNZ 0x0014dbc1
MOV EAX,0x1f1
RET
LAB_0014dcc4:
CMP EAX,0x3cb
JG 0x0014dd29
LEA ECX,[RAX + -0x371]
CMP ECX,0xc
JA 0x0014ddb2
LEA RDX,[0x173db8]
MOVSXD RCX,dword ptr [RDX + RCX*0x4]
ADD RCX,RDX
switchD:
JMP RCX
caseD_371:
MOV EAX,0x370
RET
LAB_0014dcf0:
CMP EAX,0x198
JG 0x0014dd4e
CMP EAX,0x187
JLE 0x0014de23
CMP EAX,0x188
JZ 0x0014dee0
CMP EAX,0x18c
JZ 0x0014dec2
CMP EAX,0x192
JNZ 0x0014dbc1
MOV EAX,0x191
RET
LAB_0014dd29:
LEA ECX,[RAX + -0x3cc]
CMP ECX,0xb
JA 0x0014ddd7
LEA RDX,[0x173dfc]
MOVSXD RCX,dword ptr [RDX + RCX*0x4]
ADD RCX,RDX
switchD:
JMP RCX
caseD_3cc:
MOV EAX,0x38c
RET
LAB_0014dd4e:
CMP EAX,0x19d
JLE 0x0014de3f
CMP EAX,0x19e
JZ 0x0014dee6
CMP EAX,0x1a8
JZ 0x0014dec8
CMP EAX,0x1ad
JNZ 0x0014dbc1
MOV EAX,0x1ac
RET
LAB_0014dd80:
CMP EAX,0x1be
JLE 0x0014de57
CMP EAX,0x1bf
JZ 0x0014defe
CMP EAX,0x1c6
JZ 0x0014deec
CMP EAX,0x1c9
JNZ 0x0014dbc1
MOV EAX,0x1c7
RET
default:
LEA ECX,[RAX + -0x3ac]
CMP ECX,0x3
JA 0x0014de6f
LEA RAX,[0x173dec]
MOVSXD RCX,dword ptr [RAX + RCX*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_3ac:
MOV EAX,0x386
RET
default:
LEA ECX,[RAX + -0x3f2]
CMP ECX,0x9
JA 0x0014dbc1
LEA RDX,[0x173e2c]
MOVSXD RCX,dword ptr [RDX + RCX*0x4]
ADD RCX,RDX
switchD:
JMP RCX
caseD_3f2:
MOV EAX,0x3f9
RET
LAB_0014ddfc:
CMP EAX,0x1f5
JZ 0x0014def8
CMP EAX,0x23c
JZ 0x0014ded4
CMP EAX,0x242
JNZ 0x0014dbc1
MOV EAX,0x241
RET
LAB_0014de23:
CMP EAX,0xff
JZ 0x0014deb6
CMP EAX,0x180
JNZ 0x0014dbc1
MOV EAX,0x243
RET
LAB_0014de3f:
CMP EAX,0x199
JZ 0x0014debc
CMP EAX,0x19a
JNZ 0x0014dbc1
MOV EAX,0x23d
RET
LAB_0014de57:
CMP EAX,0x1b9
JZ 0x0014deda
CMP EAX,0x1bd
JNZ 0x0014dbc1
MOV EAX,0x1bc
RET
default:
CMP EAX,0x292
JNZ 0x0014dbc1
MOV EAX,0x1b7
RET
caseD_3d7:
MOV EAX,0x3cf
RET
caseD_3cd:
MOV EAX,0x38e
RET
caseD_3ce:
MOV EAX,0x38f
RET
caseD_3d1:
MOV EAX,0x398
RET
caseD_37c:
MOV EAX,0x3fe
RET
caseD_37b:
MOV EAX,0x3fd
RET
caseD_37d:
MOV EAX,0x3ff
RET
caseD_377:
MOV EAX,0x376
RET
caseD_373:
MOV EAX,0x372
RET
LAB_0014deb6:
MOV EAX,0x178
RET
LAB_0014debc:
MOV EAX,0x198
RET
LAB_0014dec2:
MOV EAX,0x18b
RET
LAB_0014dec8:
MOV EAX,0x1a7
RET
LAB_0014dece:
MOV EAX,0x18e
RET
LAB_0014ded4:
MOV EAX,0x23b
RET
LAB_0014deda:
MOV EAX,0x1b8
RET
LAB_0014dee0:
MOV EAX,0x187
RET
LAB_0014dee6:
MOV EAX,0x220
RET
LAB_0014deec:
MOV EAX,0x1c4
RET
LAB_0014def2:
MOV EAX,0x1ca
RET
LAB_0014def8:
MOV EAX,0x1f4
RET
LAB_0014defe:
MOV EAX,0x1f7
RET
caseD_3f3:
MOV EAX,0x37f
RET
caseD_3f8:
MOV EAX,0x3f7
RET
caseD_3fb:
MOV EAX,0x3fa
RET
caseD_3ae:
MOV EAX,0x389
RET
caseD_3af:
MOV EAX,0x38a
RET
caseD_3ad:
MOV EAX,0x388
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
uint utf8uprcodepoint(uint param_1,int4 param_2)
{
ushort uVar1;
int4 uVar2;
bool bVar3;
int iVar4;
int1 auVar5 [16];
int1 auVar6 [16];
int1 auVar7 [16];
int1 auVar8 [16];
int1 auVar9 [16];
auVar7._0_4_ = -(uint)(_DAT_00173c60 < (int)(_DAT_00173cf0 + param_1 ^ _DAT_00173c50));
auVar7._4_4_ = -(uint)(_UNK_00173c64 < (int)(_UNK_00173cf4 + param_1 ^ _UNK_00173c54));
auVar7._8_4_ = -(uint)(_UNK_00173c68 < (int)(_UNK_00173cf8 + param_1 ^ _UNK_00173c58));
auVar7._12_4_ = -(uint)(_UNK_00173c6c < (int)(_UNK_00173cfc + param_1 ^ _UNK_00173c5c));
iVar4 = movmskps(param_2,auVar7);
bVar3 = 0x1f < param_1 - 0x430 && 8 < param_1 - 0x3c3;
if (bVar3 && iVar4 == 0xf) {
if ((param_1 & 0xfffffff0) == 0x450) {
return param_1 - 0x50;
}
auVar9._0_4_ = -(uint)(_DAT_00173ca0 < (int)(_DAT_00173c80 + param_1 ^ _DAT_00173c50));
auVar9._4_4_ = -(uint)(_UNK_00173ca4 < (int)(_UNK_00173c84 + param_1 ^ _UNK_00173c54));
auVar9._8_4_ = -(uint)(_UNK_00173ca8 < (int)(_UNK_00173c88 + param_1 ^ _UNK_00173c58));
auVar9._12_4_ = -(uint)(_UNK_00173cac < (int)(_UNK_00173c8c + param_1 ^ _UNK_00173c5c));
auVar6._0_4_ = -(uint)(_DAT_00173cb0 < (int)(_DAT_00173c70 + param_1 ^ _DAT_00173c50));
auVar6._4_4_ = -(uint)(_UNK_00173cb4 < (int)(_UNK_00173c74 + param_1 ^ _UNK_00173c54));
auVar6._8_4_ = -(uint)(_UNK_00173cb8 < (int)(_UNK_00173c78 + param_1 ^ _UNK_00173c58));
auVar6._12_4_ = -(uint)(_UNK_00173cbc < (int)(_UNK_00173c7c + param_1 ^ _UNK_00173c5c));
auVar7 = packssdw(auVar6,auVar9);
auVar7 = packsswb(auVar7,auVar7);
uVar1 = (ushort)(SUB161(auVar7 >> 7,0) & 1) | (ushort)(SUB161(auVar7 >> 0xf,0) & 1) << 1 |
(ushort)(SUB161(auVar7 >> 0x17,0) & 1) << 2 |
(ushort)(SUB161(auVar7 >> 0x1f,0) & 1) << 3 |
(ushort)(SUB161(auVar7 >> 0x27,0) & 1) << 4 |
(ushort)(SUB161(auVar7 >> 0x2f,0) & 1) << 5 |
(ushort)(SUB161(auVar7 >> 0x37,0) & 1) << 6 |
(ushort)(SUB161(auVar7 >> 0x3f,0) & 1) << 7;
if (((char)uVar1 != -1) ||
(auVar8._0_4_ = -(uint)(_DAT_00173cc0 < (int)(_DAT_00173c90 + param_1 ^ _DAT_00173c50)),
auVar8._4_4_ = -(uint)(_UNK_00173cc4 < (int)(_UNK_00173c94 + param_1 ^ _UNK_00173c54)),
auVar8._8_4_ = -(uint)(_UNK_00173cc8 < (int)(_UNK_00173c98 + param_1 ^ _UNK_00173c58)),
auVar8._12_4_ = -(uint)(_UNK_00173ccc < (int)(_UNK_00173c9c + param_1 ^ _UNK_00173c5c)),
uVar2 = movmskps((ushort)(uVar1 | (ushort)(SUB161(auVar7 >> 0x47,0) & 1) << 8 |
(ushort)(SUB161(auVar7 >> 0x4f,0) & 1) << 9 |
(ushort)(SUB161(auVar7 >> 0x57,0) & 1) << 10 |
(ushort)(SUB161(auVar7 >> 0x5f,0) & 1) << 0xb |
(ushort)(SUB161(auVar7 >> 0x67,0) & 1) << 0xc |
(ushort)(SUB161(auVar7 >> 0x6f,0) & 1) << 0xd |
(ushort)(SUB161(auVar7 >> 0x77,0) & 1) << 0xe |
(ushort)(byte)(auVar7[0xf] >> 7) << 0xf) ^ 0xff,auVar8),
(char)uVar2 != '\x0f')) {
return param_1 & 0xfffffffe;
}
auVar5._0_4_ = -(uint)(_DAT_00173ce0 < (int)(param_1 + _DAT_00173cd0 ^ _DAT_00173c50));
auVar5._4_4_ = -(uint)(_UNK_00173ce4 < (int)(param_1 + _UNK_00173cd4 ^ _UNK_00173c54));
auVar5._8_4_ = -(uint)(_UNK_00173ce8 < (int)(param_1 + _UNK_00173cd8 ^ _UNK_00173c58));
auVar5._12_4_ = -(uint)(_UNK_00173cec < (int)(param_1 + _UNK_00173cdc ^ _UNK_00173c5c));
iVar4 = movmskps(CONCAT31((int3)(param_1 - 0x430 >> 8),bVar3),auVar5);
if (iVar4 != 0xf || param_1 - 0x1cd < 0x10) {
return param_1 - 1 | 1;
}
if ((int)param_1 < 0x292) {
if ((int)param_1 < 0x1b9) {
if ((int)param_1 < 0x199) {
if ((int)param_1 < 0x188) {
if (param_1 == 0xff) {
return 0x178;
}
if (param_1 == 0x180) {
return 0x243;
}
}
else {
if (param_1 == 0x188) {
return 0x187;
}
if (param_1 == 0x18c) {
return 0x18b;
}
if (param_1 == 0x192) {
return 0x191;
}
}
}
else if ((int)param_1 < 0x19e) {
if (param_1 == 0x199) {
return 0x198;
}
if (param_1 == 0x19a) {
return 0x23d;
}
}
else {
if (param_1 == 0x19e) {
return 0x220;
}
if (param_1 == 0x1a8) {
return 0x1a7;
}
if (param_1 == 0x1ad) {
return 0x1ac;
}
}
}
else if ((int)param_1 < 0x1cc) {
if ((int)param_1 < 0x1bf) {
if (param_1 == 0x1b9) {
return 0x1b8;
}
if (param_1 == 0x1bd) {
return 0x1bc;
}
}
else {
if (param_1 == 0x1bf) {
return 0x1f7;
}
if (param_1 == 0x1c6) {
return 0x1c4;
}
if (param_1 == 0x1c9) {
return 0x1c7;
}
}
}
else if ((int)param_1 < 0x1f5) {
if (param_1 == 0x1cc) {
return 0x1ca;
}
if (param_1 == 0x1dd) {
return 0x18e;
}
if (param_1 == 499) {
return 0x1f1;
}
}
else {
if (param_1 == 0x1f5) {
return 500;
}
if (param_1 == 0x23c) {
return 0x23b;
}
if (param_1 == 0x242) {
return 0x241;
}
}
}
else if ((int)param_1 < 0x3cc) {
switch(param_1) {
case 0x371:
return 0x370;
case 0x372:
case 0x374:
case 0x375:
case 0x376:
case 0x378:
case 0x379:
case 0x37a:
break;
case 0x373:
return 0x372;
case 0x377:
return 0x376;
case 0x37b:
return 0x3fd;
case 0x37c:
return 0x3fe;
case 0x37d:
return 0x3ff;
default:
switch(param_1) {
case 0x3ac:
return 0x386;
case 0x3ad:
return 0x388;
case 0x3ae:
return 0x389;
case 0x3af:
return 0x38a;
}
if (param_1 == 0x292) {
return 0x1b7;
}
}
}
else {
switch(param_1) {
case 0x3cc:
return 0x38c;
case 0x3cd:
return 0x38e;
case 0x3ce:
return 0x38f;
case 0x3cf:
case 0x3d0:
case 0x3d2:
case 0x3d3:
case 0x3d4:
case 0x3d5:
case 0x3d6:
break;
case 0x3d1:
return 0x398;
case 0x3d7:
return 0x3cf;
default:
switch(param_1) {
case 0x3f2:
return 0x3f9;
case 0x3f3:
return 0x37f;
case 0x3f8:
return 0x3f7;
case 0x3fb:
return 0x3fa;
}
}
}
}
else {
param_1 = param_1 - 0x20;
}
return param_1;
}
|
|
16,230
|
chess::attacks::bishopAttacks(chess::Square, chess::Bitboard)
|
Razamindset[P]pawnstar-chess-engine/src/./engine/../chess-library/include/chess.hpp
|
[[nodiscard]] inline Bitboard attacks::bishopAttacks(Square sq, Bitboard occupied) {
Bitboard attacks = 0ULL;
int r, f;
int br = sq.rank();
int bf = sq.file();
for (r = br + 1, f = bf + 1; Square::is_valid(static_cast<Rank>(r), static_cast<File>(f)); r++, f++) {
auto s = Square(static_cast<Rank>(r), static_cast<File>(f)).index();
attacks.set(s);
if (occupied.check(s)) break;
}
for (r = br - 1, f = bf + 1; Square::is_valid(static_cast<Rank>(r), static_cast<File>(f)); r--, f++) {
auto s = Square(static_cast<Rank>(r), static_cast<File>(f)).index();
attacks.set(s);
if (occupied.check(s)) break;
}
for (r = br + 1, f = bf - 1; Square::is_valid(static_cast<Rank>(r), static_cast<File>(f)); r++, f--) {
auto s = Square(static_cast<Rank>(r), static_cast<File>(f)).index();
attacks.set(s);
if (occupied.check(s)) break;
}
for (r = br - 1, f = bf - 1; Square::is_valid(static_cast<Rank>(r), static_cast<File>(f)); r--, f--) {
auto s = Square(static_cast<Rank>(r), static_cast<File>(f)).index();
attacks.set(s);
if (occupied.check(s)) break;
}
return attacks;
}
|
O0
|
cpp
|
chess::attacks::bishopAttacks(chess::Square, chess::Bitboard):
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movl %edi, -0xc(%rbp)
movq %rsi, -0x18(%rbp)
leaq -0x8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x4da0
leaq -0xc(%rbp), %rdi
callq 0x4bd0
movl %eax, -0x28(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x4fd0
movl %eax, -0x24(%rbp)
leaq -0xc(%rbp), %rdi
callq 0x4d00
movb %al, -0x2d(%rbp)
leaq -0x2d(%rbp), %rdi
callq 0x4fe0
movl %eax, -0x2c(%rbp)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
movl -0x1c(%rbp), %esi
leaq -0x34(%rbp), %rdi
callq 0x4f00
movl -0x20(%rbp), %esi
leaq -0x35(%rbp), %rdi
callq 0x4f50
movl -0x34(%rbp), %edi
movzbl -0x35(%rbp), %esi
callq 0x5000
testb $0x1, %al
jne 0x448b
jmp 0x44f8
movl -0x1c(%rbp), %esi
leaq -0x44(%rbp), %rdi
callq 0x4f00
movl -0x20(%rbp), %esi
leaq -0x45(%rbp), %rdi
callq 0x4f50
movl -0x44(%rbp), %esi
leaq -0x40(%rbp), %rdi
movzbl -0x45(%rbp), %edx
callq 0x50c0
leaq -0x40(%rbp), %rdi
callq 0x4d40
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %esi
leaq -0x8(%rbp), %rdi
callq 0x5110
movl -0x3c(%rbp), %esi
leaq -0x18(%rbp), %rdi
callq 0x5190
testb $0x1, %al
jne 0x44dd
jmp 0x44df
jmp 0x44f8
jmp 0x44e1
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x4461
movl -0x24(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x1c(%rbp)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
movl -0x1c(%rbp), %esi
leaq -0x4c(%rbp), %rdi
callq 0x4f00
movl -0x20(%rbp), %esi
leaq -0x4d(%rbp), %rdi
callq 0x4f50
movl -0x4c(%rbp), %edi
movzbl -0x4d(%rbp), %esi
callq 0x5000
testb $0x1, %al
jne 0x4534
jmp 0x45a1
movl -0x1c(%rbp), %esi
leaq -0x5c(%rbp), %rdi
callq 0x4f00
movl -0x20(%rbp), %esi
leaq -0x5d(%rbp), %rdi
callq 0x4f50
movl -0x5c(%rbp), %esi
leaq -0x58(%rbp), %rdi
movzbl -0x5d(%rbp), %edx
callq 0x50c0
leaq -0x58(%rbp), %rdi
callq 0x4d40
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %esi
leaq -0x8(%rbp), %rdi
callq 0x5110
movl -0x54(%rbp), %esi
leaq -0x18(%rbp), %rdi
callq 0x5190
testb $0x1, %al
jne 0x4586
jmp 0x4588
jmp 0x45a1
jmp 0x458a
movl -0x1c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x1c(%rbp)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x450a
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
movl -0x2c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x20(%rbp)
movl -0x1c(%rbp), %esi
leaq -0x64(%rbp), %rdi
callq 0x4f00
movl -0x20(%rbp), %esi
leaq -0x65(%rbp), %rdi
callq 0x4f50
movl -0x64(%rbp), %edi
movzbl -0x65(%rbp), %esi
callq 0x5000
testb $0x1, %al
jne 0x45dd
jmp 0x464a
movl -0x1c(%rbp), %esi
leaq -0x74(%rbp), %rdi
callq 0x4f00
movl -0x20(%rbp), %esi
leaq -0x75(%rbp), %rdi
callq 0x4f50
movl -0x74(%rbp), %esi
leaq -0x70(%rbp), %rdi
movzbl -0x75(%rbp), %edx
callq 0x50c0
leaq -0x70(%rbp), %rdi
callq 0x4d40
movl %eax, -0x6c(%rbp)
movl -0x6c(%rbp), %esi
leaq -0x8(%rbp), %rdi
callq 0x5110
movl -0x6c(%rbp), %esi
leaq -0x18(%rbp), %rdi
callq 0x5190
testb $0x1, %al
jne 0x462f
jmp 0x4631
jmp 0x464a
jmp 0x4633
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
movl -0x20(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x45b3
movl -0x24(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x1c(%rbp)
movl -0x2c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x20(%rbp)
movl -0x1c(%rbp), %esi
leaq -0x7c(%rbp), %rdi
callq 0x4f00
movl -0x20(%rbp), %esi
leaq -0x7d(%rbp), %rdi
callq 0x4f50
movl -0x7c(%rbp), %edi
movzbl -0x7d(%rbp), %esi
callq 0x5000
testb $0x1, %al
jne 0x4689
jmp 0x4711
movl -0x1c(%rbp), %esi
leaq -0x8c(%rbp), %rdi
callq 0x4f00
movl -0x20(%rbp), %esi
leaq -0x8d(%rbp), %rdi
callq 0x4f50
movl -0x8c(%rbp), %esi
leaq -0x88(%rbp), %rdi
movzbl -0x8d(%rbp), %edx
callq 0x50c0
leaq -0x88(%rbp), %rdi
callq 0x4d40
movl %eax, -0x84(%rbp)
movl -0x84(%rbp), %esi
leaq -0x8(%rbp), %rdi
callq 0x5110
movl -0x84(%rbp), %esi
leaq -0x18(%rbp), %rdi
callq 0x5190
testb $0x1, %al
jne 0x46f6
jmp 0x46f8
jmp 0x4711
jmp 0x46fa
movl -0x1c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x1c(%rbp)
movl -0x20(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x465c
movq -0x8(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
nop
|
_ZN5chess7attacks13bishopAttacksENS_6SquareENS_8BitboardE:
push rbp
mov rbp, rsp
sub rsp, 90h
mov [rbp+var_C], edi
mov [rbp+var_18], rsi
lea rdi, [rbp+var_8]; this
xor eax, eax
mov esi, eax; unsigned __int64
call _ZN5chess8BitboardC2Em; chess::Bitboard::Bitboard(ulong)
lea rdi, [rbp+var_C]; this
call _ZNK5chess6Square4rankEv; chess::Square::rank(void)
mov [rbp+var_28], eax
lea rdi, [rbp+var_28]
call _ZNK5chess4RankcviEv; chess::Rank::operator int(void)
mov [rbp+var_24], eax
lea rdi, [rbp+var_C]; this
call _ZNK5chess6Square4fileEv; chess::Square::file(void)
mov [rbp+var_2D], al
lea rdi, [rbp+var_2D]
call _ZNK5chess4FilecviEv; chess::File::operator int(void)
mov [rbp+var_2C], eax
mov eax, [rbp+var_24]
add eax, 1
mov [rbp+var_1C], eax
mov eax, [rbp+var_2C]
add eax, 1
mov [rbp+var_20], eax
loc_4461:
mov esi, [rbp+var_1C]; int
lea rdi, [rbp+var_34]; this
call _ZN5chess4RankC2Ei; chess::Rank::Rank(int)
mov esi, [rbp+var_20]; int
lea rdi, [rbp+var_35]; this
call _ZN5chess4FileC2Ei; chess::File::File(int)
mov edi, [rbp+var_34]
movzx esi, [rbp+var_35]
call _ZN5chess6Square8is_validENS_4RankENS_4FileE; chess::Square::is_valid(chess::Rank,chess::File)
test al, 1
jnz short loc_448B
jmp short loc_44F8
loc_448B:
mov esi, [rbp+var_1C]; int
lea rdi, [rbp+var_44]; this
call _ZN5chess4RankC2Ei; chess::Rank::Rank(int)
mov esi, [rbp+var_20]; int
lea rdi, [rbp+var_45]; this
call _ZN5chess4FileC2Ei; chess::File::File(int)
mov esi, [rbp+var_44]
lea rdi, [rbp+var_40]
movzx edx, [rbp+var_45]
call _ZN5chess6SquareC2ENS_4RankENS_4FileE; chess::Square::Square(chess::Rank,chess::File)
lea rdi, [rbp+var_40]; this
call _ZNK5chess6Square5indexEv; chess::Square::index(void)
mov [rbp+var_3C], eax
mov esi, [rbp+var_3C]; int
lea rdi, [rbp+var_8]; this
call _ZN5chess8Bitboard3setEi; chess::Bitboard::set(int)
mov esi, [rbp+var_3C]; int
lea rdi, [rbp+var_18]; this
call _ZNK5chess8Bitboard5checkEi; chess::Bitboard::check(int)
test al, 1
jnz short loc_44DD
jmp short loc_44DF
loc_44DD:
jmp short loc_44F8
loc_44DF:
jmp short $+2
loc_44E1:
mov eax, [rbp+var_1C]
add eax, 1
mov [rbp+var_1C], eax
mov eax, [rbp+var_20]
add eax, 1
mov [rbp+var_20], eax
jmp loc_4461
loc_44F8:
mov eax, [rbp+var_24]
sub eax, 1
mov [rbp+var_1C], eax
mov eax, [rbp+var_2C]
add eax, 1
mov [rbp+var_20], eax
loc_450A:
mov esi, [rbp+var_1C]; int
lea rdi, [rbp+var_4C]; this
call _ZN5chess4RankC2Ei; chess::Rank::Rank(int)
mov esi, [rbp+var_20]; int
lea rdi, [rbp+var_4D]; this
call _ZN5chess4FileC2Ei; chess::File::File(int)
mov edi, [rbp+var_4C]
movzx esi, [rbp+var_4D]
call _ZN5chess6Square8is_validENS_4RankENS_4FileE; chess::Square::is_valid(chess::Rank,chess::File)
test al, 1
jnz short loc_4534
jmp short loc_45A1
loc_4534:
mov esi, [rbp+var_1C]; int
lea rdi, [rbp+var_5C]; this
call _ZN5chess4RankC2Ei; chess::Rank::Rank(int)
mov esi, [rbp+var_20]; int
lea rdi, [rbp+var_5D]; this
call _ZN5chess4FileC2Ei; chess::File::File(int)
mov esi, [rbp+var_5C]
lea rdi, [rbp+var_58]
movzx edx, [rbp+var_5D]
call _ZN5chess6SquareC2ENS_4RankENS_4FileE; chess::Square::Square(chess::Rank,chess::File)
lea rdi, [rbp+var_58]; this
call _ZNK5chess6Square5indexEv; chess::Square::index(void)
mov [rbp+var_54], eax
mov esi, [rbp+var_54]; int
lea rdi, [rbp+var_8]; this
call _ZN5chess8Bitboard3setEi; chess::Bitboard::set(int)
mov esi, [rbp+var_54]; int
lea rdi, [rbp+var_18]; this
call _ZNK5chess8Bitboard5checkEi; chess::Bitboard::check(int)
test al, 1
jnz short loc_4586
jmp short loc_4588
loc_4586:
jmp short loc_45A1
loc_4588:
jmp short $+2
loc_458A:
mov eax, [rbp+var_1C]
add eax, 0FFFFFFFFh
mov [rbp+var_1C], eax
mov eax, [rbp+var_20]
add eax, 1
mov [rbp+var_20], eax
jmp loc_450A
loc_45A1:
mov eax, [rbp+var_24]
add eax, 1
mov [rbp+var_1C], eax
mov eax, [rbp+var_2C]
sub eax, 1
mov [rbp+var_20], eax
loc_45B3:
mov esi, [rbp+var_1C]; int
lea rdi, [rbp+var_64]; this
call _ZN5chess4RankC2Ei; chess::Rank::Rank(int)
mov esi, [rbp+var_20]; int
lea rdi, [rbp+var_65]; this
call _ZN5chess4FileC2Ei; chess::File::File(int)
mov edi, [rbp+var_64]
movzx esi, [rbp+var_65]
call _ZN5chess6Square8is_validENS_4RankENS_4FileE; chess::Square::is_valid(chess::Rank,chess::File)
test al, 1
jnz short loc_45DD
jmp short loc_464A
loc_45DD:
mov esi, [rbp+var_1C]; int
lea rdi, [rbp+var_74]; this
call _ZN5chess4RankC2Ei; chess::Rank::Rank(int)
mov esi, [rbp+var_20]; int
lea rdi, [rbp+var_75]; this
call _ZN5chess4FileC2Ei; chess::File::File(int)
mov esi, [rbp+var_74]
lea rdi, [rbp+var_70]
movzx edx, [rbp+var_75]
call _ZN5chess6SquareC2ENS_4RankENS_4FileE; chess::Square::Square(chess::Rank,chess::File)
lea rdi, [rbp+var_70]; this
call _ZNK5chess6Square5indexEv; chess::Square::index(void)
mov [rbp+var_6C], eax
mov esi, [rbp+var_6C]; int
lea rdi, [rbp+var_8]; this
call _ZN5chess8Bitboard3setEi; chess::Bitboard::set(int)
mov esi, [rbp+var_6C]; int
lea rdi, [rbp+var_18]; this
call _ZNK5chess8Bitboard5checkEi; chess::Bitboard::check(int)
test al, 1
jnz short loc_462F
jmp short loc_4631
loc_462F:
jmp short loc_464A
loc_4631:
jmp short $+2
loc_4633:
mov eax, [rbp+var_1C]
add eax, 1
mov [rbp+var_1C], eax
mov eax, [rbp+var_20]
add eax, 0FFFFFFFFh
mov [rbp+var_20], eax
jmp loc_45B3
loc_464A:
mov eax, [rbp+var_24]
sub eax, 1
mov [rbp+var_1C], eax
mov eax, [rbp+var_2C]
sub eax, 1
mov [rbp+var_20], eax
loc_465C:
mov esi, [rbp+var_1C]; int
lea rdi, [rbp+var_7C]; this
call _ZN5chess4RankC2Ei; chess::Rank::Rank(int)
mov esi, [rbp+var_20]; int
lea rdi, [rbp+var_7D]; this
call _ZN5chess4FileC2Ei; chess::File::File(int)
mov edi, [rbp+var_7C]
movzx esi, [rbp+var_7D]
call _ZN5chess6Square8is_validENS_4RankENS_4FileE; chess::Square::is_valid(chess::Rank,chess::File)
test al, 1
jnz short loc_4689
jmp loc_4711
loc_4689:
mov esi, [rbp+var_1C]; int
lea rdi, [rbp+var_8C]; this
call _ZN5chess4RankC2Ei; chess::Rank::Rank(int)
mov esi, [rbp+var_20]; int
lea rdi, [rbp+var_8D]; this
call _ZN5chess4FileC2Ei; chess::File::File(int)
mov esi, [rbp+var_8C]
lea rdi, [rbp+var_88]
movzx edx, [rbp+var_8D]
call _ZN5chess6SquareC2ENS_4RankENS_4FileE; chess::Square::Square(chess::Rank,chess::File)
lea rdi, [rbp+var_88]; this
call _ZNK5chess6Square5indexEv; chess::Square::index(void)
mov [rbp+var_84], eax
mov esi, [rbp+var_84]; int
lea rdi, [rbp+var_8]; this
call _ZN5chess8Bitboard3setEi; chess::Bitboard::set(int)
mov esi, [rbp+var_84]; int
lea rdi, [rbp+var_18]; this
call _ZNK5chess8Bitboard5checkEi; chess::Bitboard::check(int)
test al, 1
jnz short loc_46F6
jmp short loc_46F8
loc_46F6:
jmp short loc_4711
loc_46F8:
jmp short $+2
loc_46FA:
mov eax, [rbp+var_1C]
add eax, 0FFFFFFFFh
mov [rbp+var_1C], eax
mov eax, [rbp+var_20]
add eax, 0FFFFFFFFh
mov [rbp+var_20], eax
jmp loc_465C
loc_4711:
mov rax, [rbp+var_8]
add rsp, 90h
pop rbp
retn
|
long long chess::attacks::bishopAttacks(int a1, long long a2)
{
unsigned __int8 v3; // [rsp+3h] [rbp-8Dh] BYREF
unsigned int v4; // [rsp+4h] [rbp-8Ch] BYREF
_BYTE v5[4]; // [rsp+8h] [rbp-88h] BYREF
int v6; // [rsp+Ch] [rbp-84h]
unsigned __int8 v7; // [rsp+13h] [rbp-7Dh] BYREF
unsigned int v8; // [rsp+14h] [rbp-7Ch] BYREF
unsigned __int8 v9; // [rsp+1Bh] [rbp-75h] BYREF
unsigned int v10; // [rsp+1Ch] [rbp-74h] BYREF
_BYTE v11[4]; // [rsp+20h] [rbp-70h] BYREF
int v12; // [rsp+24h] [rbp-6Ch]
unsigned __int8 v13; // [rsp+2Bh] [rbp-65h] BYREF
unsigned int v14; // [rsp+2Ch] [rbp-64h] BYREF
unsigned __int8 v15; // [rsp+33h] [rbp-5Dh] BYREF
unsigned int v16; // [rsp+34h] [rbp-5Ch] BYREF
_BYTE v17[4]; // [rsp+38h] [rbp-58h] BYREF
int v18; // [rsp+3Ch] [rbp-54h]
unsigned __int8 v19; // [rsp+43h] [rbp-4Dh] BYREF
unsigned int v20; // [rsp+44h] [rbp-4Ch] BYREF
unsigned __int8 v21; // [rsp+4Bh] [rbp-45h] BYREF
unsigned int v22; // [rsp+4Ch] [rbp-44h] BYREF
_BYTE v23[4]; // [rsp+50h] [rbp-40h] BYREF
int v24; // [rsp+54h] [rbp-3Ch]
unsigned __int8 v25; // [rsp+5Bh] [rbp-35h] BYREF
unsigned int v26; // [rsp+5Ch] [rbp-34h] BYREF
char v27; // [rsp+63h] [rbp-2Dh] BYREF
int v28; // [rsp+64h] [rbp-2Ch]
int v29; // [rsp+68h] [rbp-28h] BYREF
int v30; // [rsp+6Ch] [rbp-24h]
int i; // [rsp+70h] [rbp-20h]
int v32; // [rsp+74h] [rbp-1Ch]
long long v33; // [rsp+78h] [rbp-18h] BYREF
int v34; // [rsp+84h] [rbp-Ch] BYREF
long long v35; // [rsp+88h] [rbp-8h] BYREF
v34 = a1;
v33 = a2;
chess::Bitboard::Bitboard((chess::Bitboard *)&v35, 0LL);
v29 = chess::Square::rank((chess::Square *)&v34);
v30 = chess::Rank::operator int(&v29);
v27 = chess::Square::file((chess::Square *)&v34);
v28 = chess::File::operator int(&v27);
v32 = v30 + 1;
for ( i = v28 + 1; ; ++i )
{
chess::Rank::Rank((chess::Rank *)&v26, v32);
chess::File::File((chess::File *)&v25, i);
if ( (chess::Square::is_valid(v26, v25) & 1) == 0 )
break;
chess::Rank::Rank((chess::Rank *)&v22, v32);
chess::File::File((chess::File *)&v21, i);
chess::Square::Square(v23, v22, v21);
v24 = chess::Square::index((chess::Square *)v23);
chess::Bitboard::set((chess::Bitboard *)&v35, v24);
if ( (chess::Bitboard::check((chess::Bitboard *)&v33, v24) & 1) != 0 )
break;
++v32;
}
v32 = v30 - 1;
for ( i = v28 + 1; ; ++i )
{
chess::Rank::Rank((chess::Rank *)&v20, v32);
chess::File::File((chess::File *)&v19, i);
if ( (chess::Square::is_valid(v20, v19) & 1) == 0 )
break;
chess::Rank::Rank((chess::Rank *)&v16, v32);
chess::File::File((chess::File *)&v15, i);
chess::Square::Square(v17, v16, v15);
v18 = chess::Square::index((chess::Square *)v17);
chess::Bitboard::set((chess::Bitboard *)&v35, v18);
if ( (chess::Bitboard::check((chess::Bitboard *)&v33, v18) & 1) != 0 )
break;
--v32;
}
v32 = v30 + 1;
for ( i = v28 - 1; ; --i )
{
chess::Rank::Rank((chess::Rank *)&v14, v32);
chess::File::File((chess::File *)&v13, i);
if ( (chess::Square::is_valid(v14, v13) & 1) == 0 )
break;
chess::Rank::Rank((chess::Rank *)&v10, v32);
chess::File::File((chess::File *)&v9, i);
chess::Square::Square(v11, v10, v9);
v12 = chess::Square::index((chess::Square *)v11);
chess::Bitboard::set((chess::Bitboard *)&v35, v12);
if ( (chess::Bitboard::check((chess::Bitboard *)&v33, v12) & 1) != 0 )
break;
++v32;
}
v32 = v30 - 1;
for ( i = v28 - 1; ; --i )
{
chess::Rank::Rank((chess::Rank *)&v8, v32);
chess::File::File((chess::File *)&v7, i);
if ( (chess::Square::is_valid(v8, v7) & 1) == 0 )
break;
chess::Rank::Rank((chess::Rank *)&v4, v32);
chess::File::File((chess::File *)&v3, i);
chess::Square::Square(v5, v4, v3);
v6 = chess::Square::index((chess::Square *)v5);
chess::Bitboard::set((chess::Bitboard *)&v35, v6);
if ( (chess::Bitboard::check((chess::Bitboard *)&v33, v6) & 1) != 0 )
break;
--v32;
}
return v35;
}
|
bishopAttacks:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV dword ptr [RBP + -0xc],EDI
MOV qword ptr [RBP + -0x18],RSI
LEA RDI,[RBP + -0x8]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x00104da0
LEA RDI,[RBP + -0xc]
CALL 0x00104bd0
MOV dword ptr [RBP + -0x28],EAX
LEA RDI,[RBP + -0x28]
CALL 0x00104fd0
MOV dword ptr [RBP + -0x24],EAX
LEA RDI,[RBP + -0xc]
CALL 0x00104d00
MOV byte ptr [RBP + -0x2d],AL
LEA RDI,[RBP + -0x2d]
CALL 0x00104fe0
MOV dword ptr [RBP + -0x2c],EAX
MOV EAX,dword ptr [RBP + -0x24]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x2c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x20],EAX
LAB_00104461:
MOV ESI,dword ptr [RBP + -0x1c]
LEA RDI,[RBP + -0x34]
CALL 0x00104f00
MOV ESI,dword ptr [RBP + -0x20]
LEA RDI,[RBP + -0x35]
CALL 0x00104f50
MOV EDI,dword ptr [RBP + -0x34]
MOVZX ESI,byte ptr [RBP + -0x35]
CALL 0x00105000
TEST AL,0x1
JNZ 0x0010448b
JMP 0x001044f8
LAB_0010448b:
MOV ESI,dword ptr [RBP + -0x1c]
LEA RDI,[RBP + -0x44]
CALL 0x00104f00
MOV ESI,dword ptr [RBP + -0x20]
LEA RDI,[RBP + -0x45]
CALL 0x00104f50
MOV ESI,dword ptr [RBP + -0x44]
LEA RDI,[RBP + -0x40]
MOVZX EDX,byte ptr [RBP + -0x45]
CALL 0x001050c0
LEA RDI,[RBP + -0x40]
CALL 0x00104d40
MOV dword ptr [RBP + -0x3c],EAX
MOV ESI,dword ptr [RBP + -0x3c]
LEA RDI,[RBP + -0x8]
CALL 0x00105110
MOV ESI,dword ptr [RBP + -0x3c]
LEA RDI,[RBP + -0x18]
CALL 0x00105190
TEST AL,0x1
JNZ 0x001044dd
JMP 0x001044df
LAB_001044dd:
JMP 0x001044f8
LAB_001044df:
JMP 0x001044e1
LAB_001044e1:
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x20]
ADD EAX,0x1
MOV dword ptr [RBP + -0x20],EAX
JMP 0x00104461
LAB_001044f8:
MOV EAX,dword ptr [RBP + -0x24]
SUB EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x2c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x20],EAX
LAB_0010450a:
MOV ESI,dword ptr [RBP + -0x1c]
LEA RDI,[RBP + -0x4c]
CALL 0x00104f00
MOV ESI,dword ptr [RBP + -0x20]
LEA RDI,[RBP + -0x4d]
CALL 0x00104f50
MOV EDI,dword ptr [RBP + -0x4c]
MOVZX ESI,byte ptr [RBP + -0x4d]
CALL 0x00105000
TEST AL,0x1
JNZ 0x00104534
JMP 0x001045a1
LAB_00104534:
MOV ESI,dword ptr [RBP + -0x1c]
LEA RDI,[RBP + -0x5c]
CALL 0x00104f00
MOV ESI,dword ptr [RBP + -0x20]
LEA RDI,[RBP + -0x5d]
CALL 0x00104f50
MOV ESI,dword ptr [RBP + -0x5c]
LEA RDI,[RBP + -0x58]
MOVZX EDX,byte ptr [RBP + -0x5d]
CALL 0x001050c0
LEA RDI,[RBP + -0x58]
CALL 0x00104d40
MOV dword ptr [RBP + -0x54],EAX
MOV ESI,dword ptr [RBP + -0x54]
LEA RDI,[RBP + -0x8]
CALL 0x00105110
MOV ESI,dword ptr [RBP + -0x54]
LEA RDI,[RBP + -0x18]
CALL 0x00105190
TEST AL,0x1
JNZ 0x00104586
JMP 0x00104588
LAB_00104586:
JMP 0x001045a1
LAB_00104588:
JMP 0x0010458a
LAB_0010458a:
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x20]
ADD EAX,0x1
MOV dword ptr [RBP + -0x20],EAX
JMP 0x0010450a
LAB_001045a1:
MOV EAX,dword ptr [RBP + -0x24]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x2c]
SUB EAX,0x1
MOV dword ptr [RBP + -0x20],EAX
LAB_001045b3:
MOV ESI,dword ptr [RBP + -0x1c]
LEA RDI,[RBP + -0x64]
CALL 0x00104f00
MOV ESI,dword ptr [RBP + -0x20]
LEA RDI,[RBP + -0x65]
CALL 0x00104f50
MOV EDI,dword ptr [RBP + -0x64]
MOVZX ESI,byte ptr [RBP + -0x65]
CALL 0x00105000
TEST AL,0x1
JNZ 0x001045dd
JMP 0x0010464a
LAB_001045dd:
MOV ESI,dword ptr [RBP + -0x1c]
LEA RDI,[RBP + -0x74]
CALL 0x00104f00
MOV ESI,dword ptr [RBP + -0x20]
LEA RDI,[RBP + -0x75]
CALL 0x00104f50
MOV ESI,dword ptr [RBP + -0x74]
LEA RDI,[RBP + -0x70]
MOVZX EDX,byte ptr [RBP + -0x75]
CALL 0x001050c0
LEA RDI,[RBP + -0x70]
CALL 0x00104d40
MOV dword ptr [RBP + -0x6c],EAX
MOV ESI,dword ptr [RBP + -0x6c]
LEA RDI,[RBP + -0x8]
CALL 0x00105110
MOV ESI,dword ptr [RBP + -0x6c]
LEA RDI,[RBP + -0x18]
CALL 0x00105190
TEST AL,0x1
JNZ 0x0010462f
JMP 0x00104631
LAB_0010462f:
JMP 0x0010464a
LAB_00104631:
JMP 0x00104633
LAB_00104633:
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x20]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x20],EAX
JMP 0x001045b3
LAB_0010464a:
MOV EAX,dword ptr [RBP + -0x24]
SUB EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x2c]
SUB EAX,0x1
MOV dword ptr [RBP + -0x20],EAX
LAB_0010465c:
MOV ESI,dword ptr [RBP + -0x1c]
LEA RDI,[RBP + -0x7c]
CALL 0x00104f00
MOV ESI,dword ptr [RBP + -0x20]
LEA RDI,[RBP + -0x7d]
CALL 0x00104f50
MOV EDI,dword ptr [RBP + -0x7c]
MOVZX ESI,byte ptr [RBP + -0x7d]
CALL 0x00105000
TEST AL,0x1
JNZ 0x00104689
JMP 0x00104711
LAB_00104689:
MOV ESI,dword ptr [RBP + -0x1c]
LEA RDI,[RBP + -0x8c]
CALL 0x00104f00
MOV ESI,dword ptr [RBP + -0x20]
LEA RDI,[RBP + -0x8d]
CALL 0x00104f50
MOV ESI,dword ptr [RBP + -0x8c]
LEA RDI,[RBP + -0x88]
MOVZX EDX,byte ptr [RBP + -0x8d]
CALL 0x001050c0
LEA RDI,[RBP + -0x88]
CALL 0x00104d40
MOV dword ptr [RBP + -0x84],EAX
MOV ESI,dword ptr [RBP + -0x84]
LEA RDI,[RBP + -0x8]
CALL 0x00105110
MOV ESI,dword ptr [RBP + -0x84]
LEA RDI,[RBP + -0x18]
CALL 0x00105190
TEST AL,0x1
JNZ 0x001046f6
JMP 0x001046f8
LAB_001046f6:
JMP 0x00104711
LAB_001046f8:
JMP 0x001046fa
LAB_001046fa:
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x20]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x20],EAX
JMP 0x0010465c
LAB_00104711:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x90
POP RBP
RET
|
/* chess::attacks::bishopAttacks(chess::Square, chess::Bitboard) */
int8 chess::attacks::bishopAttacks(int4 param_1,int8 param_2)
{
int iVar1;
int iVar2;
int iVar3;
int iVar4;
ulong uVar5;
File local_95;
int4 local_94;
Square local_90 [4];
int local_8c;
File local_85;
int4 local_84;
File local_7d;
int4 local_7c;
Square local_78 [4];
int local_74;
File local_6d;
int4 local_6c;
File local_65;
int4 local_64;
Square local_60 [4];
int local_5c;
File local_55;
int4 local_54;
File local_4d;
int4 local_4c;
Square local_48 [4];
int local_44;
File local_3d;
int4 local_3c;
File local_35;
int local_34;
int4 local_30;
int local_2c;
int local_28;
int local_24;
int8 local_20;
int4 local_14;
int8 local_10;
local_20 = param_2;
local_14 = param_1;
Bitboard::Bitboard((Bitboard *)&local_10,0);
local_30 = Square::rank((Square *)&local_14);
local_2c = Rank::operator_cast_to_int((Rank *)&local_30);
local_35 = (File)Square::file((Square *)&local_14);
local_34 = File::operator_cast_to_int(&local_35);
local_28 = local_34;
local_24 = local_2c;
do {
local_24 = local_24 + 1;
local_28 = local_28 + 1;
Rank::Rank((Rank *)&local_3c,local_24);
File::File(&local_3d,local_28);
uVar5 = Square::is_valid(local_3c,local_3d);
iVar1 = local_34;
iVar2 = local_2c;
if ((uVar5 & 1) == 0) break;
Rank::Rank((Rank *)&local_4c,local_24);
File::File(&local_4d,local_28);
Square::Square(local_48,local_4c,local_4d);
local_44 = Square::index(local_48);
Bitboard::set((Bitboard *)&local_10,local_44);
uVar5 = Bitboard::check((Bitboard *)&local_20,local_44);
iVar1 = local_34;
iVar2 = local_2c;
} while ((uVar5 & 1) == 0);
do {
local_24 = iVar2 + -1;
local_28 = iVar1 + 1;
Rank::Rank((Rank *)&local_54,local_24);
File::File(&local_55,local_28);
uVar5 = Square::is_valid(local_54,local_55);
iVar3 = local_34;
iVar4 = local_2c;
if ((uVar5 & 1) == 0) break;
Rank::Rank((Rank *)&local_64,local_24);
File::File(&local_65,local_28);
Square::Square(local_60,local_64,local_65);
local_5c = Square::index(local_60);
Bitboard::set((Bitboard *)&local_10,local_5c);
uVar5 = Bitboard::check((Bitboard *)&local_20,local_5c);
iVar1 = local_28;
iVar2 = local_24;
iVar3 = local_34;
iVar4 = local_2c;
} while ((uVar5 & 1) == 0);
do {
local_24 = iVar4 + 1;
local_28 = iVar3 + -1;
Rank::Rank((Rank *)&local_6c,local_24);
File::File(&local_6d,local_28);
uVar5 = Square::is_valid(local_6c,local_6d);
iVar1 = local_34;
iVar2 = local_2c;
if ((uVar5 & 1) == 0) break;
Rank::Rank((Rank *)&local_7c,local_24);
File::File(&local_7d,local_28);
Square::Square(local_78,local_7c,local_7d);
local_74 = Square::index(local_78);
Bitboard::set((Bitboard *)&local_10,local_74);
uVar5 = Bitboard::check((Bitboard *)&local_20,local_74);
iVar3 = local_28;
iVar4 = local_24;
iVar1 = local_34;
iVar2 = local_2c;
} while ((uVar5 & 1) == 0);
do {
local_24 = iVar2 + -1;
local_28 = iVar1 + -1;
Rank::Rank((Rank *)&local_84,local_24);
File::File(&local_85,local_28);
uVar5 = Square::is_valid(local_84,local_85);
if ((uVar5 & 1) == 0) {
return local_10;
}
Rank::Rank((Rank *)&local_94,local_24);
File::File(&local_95,local_28);
Square::Square(local_90,local_94,local_95);
local_8c = Square::index(local_90);
Bitboard::set((Bitboard *)&local_10,local_8c);
uVar5 = Bitboard::check((Bitboard *)&local_20,local_8c);
iVar1 = local_28;
iVar2 = local_24;
} while ((uVar5 & 1) == 0);
return local_10;
}
|
|
16,231
|
unicode_general_category
|
bluesky950520[P]quickjs/libunicode.c
|
int unicode_general_category(CharRange *cr, const char *gc_name)
{
int gc_idx;
uint32_t gc_mask;
gc_idx = unicode_find_name(unicode_gc_name_table, gc_name);
if (gc_idx < 0)
return -2;
if (gc_idx <= UNICODE_GC_Co) {
gc_mask = (uint64_t)1 << gc_idx;
} else {
gc_mask = unicode_gc_mask_table[gc_idx - UNICODE_GC_LC];
}
return unicode_general_category1(cr, gc_mask);
}
|
O1
|
c
|
unicode_general_category:
pushq %rbx
movq %rdi, %rbx
leaq 0xc8bd(%rip), %rdi # 0xa6420
callq 0x993d1
testl %eax, %eax
js 0x99b7d
cmpl $0x1d, %eax
jg 0x99b84
movl $0x1, %esi
movl %eax, %ecx
shlq %cl, %rsi
jmp 0x99b91
movl $0xfffffffe, %eax # imm = 0xFFFFFFFE
popq %rbx
retq
addl $-0x1e, %eax
leaq 0x13392(%rip), %rcx # 0xacf20
movl (%rcx,%rax,4), %esi
movq %rbx, %rdi
popq %rbx
jmp 0x99b97
|
unicode_general_category:
push rbx
mov rbx, rdi
lea rdi, unicode_gc_name_table; "Cn,Unassigned"
call unicode_find_name
test eax, eax
js short loc_99B7D
cmp eax, 1Dh
jg short loc_99B84
mov esi, 1
mov ecx, eax
shl rsi, cl
jmp short loc_99B91
loc_99B7D:
mov eax, 0FFFFFFFEh
pop rbx
retn
loc_99B84:
add eax, 0FFFFFFE2h
lea rcx, unicode_gc_mask_table
mov esi, [rcx+rax*4]
loc_99B91:
mov rdi, rbx
pop rbx
jmp short $+2
|
long long unicode_general_category(long long a1, long long a2)
{
int name; // eax
long long v3; // rsi
name = unicode_find_name("Cn,Unassigned", a2);
if ( name < 0 )
return 4294967294LL;
if ( name > 29 )
v3 = unicode_gc_mask_table[name - 30];
else
v3 = 1LL << name;
return unicode_general_category1(a1, v3);
}
|
unicode_general_category:
PUSH RBX
MOV RBX,RDI
LEA RDI,[0x1a6420]
CALL 0x001993d1
TEST EAX,EAX
JS 0x00199b7d
CMP EAX,0x1d
JG 0x00199b84
MOV ESI,0x1
MOV ECX,EAX
SHL RSI,CL
JMP 0x00199b91
LAB_00199b7d:
MOV EAX,0xfffffffe
POP RBX
RET
LAB_00199b84:
ADD EAX,-0x1e
LEA RCX,[0x1acf20]
MOV ESI,dword ptr [RCX + RAX*0x4]
LAB_00199b91:
MOV RDI,RBX
POP RBX
JMP 0x00199b97
|
int8 unicode_general_category(int8 param_1)
{
int iVar1;
int8 uVar2;
ulong uVar3;
iVar1 = unicode_find_name("Cn,Unassigned");
if (-1 < iVar1) {
if (iVar1 < 0x1e) {
uVar3 = 1L << ((byte)iVar1 & 0x3f);
}
else {
uVar3 = (ulong)*(uint *)(unicode_gc_mask_table + (ulong)(iVar1 - 0x1e) * 4);
}
uVar2 = unicode_general_category1(param_1,uVar3);
return uVar2;
}
return 0xfffffffe;
}
|
|
16,232
|
show_warnings_before_error(st_mysql*)
|
eloqsql/client/mysqltest.cc
|
static void show_warnings_before_error(MYSQL* mysql)
{
MYSQL_RES* res;
const char* query= "SHOW WARNINGS";
DBUG_ENTER("show_warnings_before_error");
if (!mysql)
DBUG_VOID_RETURN;
if (mysql_query(mysql, query))
{
log_msg("Error running query '%s': %d %s",
query, mysql_errno(mysql), mysql_error(mysql));
DBUG_VOID_RETURN;
}
if ((res= mysql_store_result(mysql)) == NULL)
{
/* No result set returned */
DBUG_VOID_RETURN;
}
if (mysql_num_rows(res) <= 1)
{
/* Don't display the last row, it's "last error" */
}
else
{
MYSQL_ROW row;
unsigned int row_num= 0;
unsigned int num_fields= mysql_num_fields(res);
fprintf(stderr, "\nWarnings from just before the error:\n");
while ((row= mysql_fetch_row(res)))
{
unsigned int i;
unsigned long *lengths= mysql_fetch_lengths(res);
if (++row_num >= mysql_num_rows(res))
{
/* Don't display the last row, it's "last error" */
break;
}
for(i= 0; i < num_fields; i++)
{
fprintf(stderr, "%.*s ", (int)lengths[i],
row[i] ? row[i] : "NULL");
}
fprintf(stderr, "\n");
}
}
mysql_free_result(res);
DBUG_VOID_RETURN;
}
|
O0
|
cpp
|
show_warnings_before_error(st_mysql*):
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
leaq 0xe06bb(%rip), %rax # 0x156a7e
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x763d5
jmp 0x763d0
jmp 0x7656c
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x61670
cmpl $0x0, %eax
je 0x76421
movq -0x18(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rdi
callq 0x86630
movl %eax, -0x3c(%rbp)
movq -0x8(%rbp), %rdi
callq 0x86660
movq -0x48(%rbp), %rsi
movl -0x3c(%rbp), %edx
movq %rax, %rcx
leaq 0xd7d1a(%rip), %rdi # 0x14e12f
movb $0x0, %al
callq 0x63a90
jmp 0x7656c
movq -0x8(%rbp), %rdi
callq 0x614b0
movq %rax, -0x10(%rbp)
cmpq $0x0, %rax
jne 0x7643b
jmp 0x76436
jmp 0x7656c
movq -0x10(%rbp), %rdi
callq 0x86450
cmpq $0x1, %rax
ja 0x7644f
jmp 0x76561
movl $0x0, -0x24(%rbp)
movq -0x10(%rbp), %rdi
callq 0x86470
movl %eax, -0x28(%rbp)
movq 0x27fb6f(%rip), %rax # 0x2f5fd8
movq (%rax), %rdi
leaq 0xd7cdc(%rip), %rsi # 0x14e14f
movb $0x0, %al
callq 0x60200
movq -0x10(%rbp), %rdi
callq 0x612a0
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
je 0x7655f
movq -0x10(%rbp), %rdi
callq 0x847f0
movq %rax, -0x38(%rbp)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
movl %eax, %eax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rdi
callq 0x86450
movq %rax, %rcx
movq -0x50(%rbp), %rax
cmpq %rcx, %rax
jb 0x764c7
jmp 0x7655f
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
cmpl -0x28(%rbp), %eax
jae 0x76542
movq 0x27fafb(%rip), %rax # 0x2f5fd8
movq (%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x54(%rbp)
movq -0x20(%rbp), %rax
movl -0x2c(%rbp), %ecx
cmpq $0x0, (%rax,%rcx,8)
je 0x76511
movq -0x20(%rbp), %rax
movl -0x2c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, -0x68(%rbp)
jmp 0x7651e
leaq 0xe7c80(%rip), %rax # 0x15e198
movq %rax, -0x68(%rbp)
jmp 0x7651e
movl -0x54(%rbp), %edx
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rcx
leaq 0xd7c46(%rip), %rsi # 0x14e176
movb $0x0, %al
callq 0x60200
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x764ce
movq 0x27fa8f(%rip), %rax # 0x2f5fd8
movq (%rax), %rdi
leaq 0xd6d5c(%rip), %rsi # 0x14d2af
movb $0x0, %al
callq 0x60200
jmp 0x7647a
jmp 0x76561
movq -0x10(%rbp), %rdi
callq 0x61520
jmp 0x7656c
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_ZL26show_warnings_before_errorP8st_mysql:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_8], rdi
lea rax, aFailedToLoadRo+49h; "SHOW WARNINGS"
mov [rbp+var_18], rax
cmp [rbp+var_8], 0
jnz short loc_763D5
jmp short $+2
loc_763D0:
jmp loc_7656C
loc_763D5:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_18]
call _Z16wrap_mysql_queryP8st_mysqlPKc; wrap_mysql_query(st_mysql *,char const*)
cmp eax, 0
jz short loc_76421
mov rax, [rbp+var_18]
mov [rbp+var_48], rax
mov rdi, [rbp+var_8]
call mysql_errno
mov [rbp+var_3C], eax
mov rdi, [rbp+var_8]
call mysql_error
mov rsi, [rbp+var_48]
mov edx, [rbp+var_3C]
mov rcx, rax
lea rdi, aErrorRunningQu_0; "Error running query '%s': %d %s"
mov al, 0
call _Z7log_msgPKcz; log_msg(char const*,...)
jmp loc_7656C
loc_76421:
mov rdi, [rbp+var_8]
call _Z23wrap_mysql_store_resultP8st_mysql; wrap_mysql_store_result(st_mysql *)
mov [rbp+var_10], rax
cmp rax, 0
jnz short loc_7643B
jmp short $+2
loc_76436:
jmp loc_7656C
loc_7643B:
mov rdi, [rbp+var_10]
call mysql_num_rows
cmp rax, 1
ja short loc_7644F
jmp loc_76561
loc_7644F:
mov [rbp+var_24], 0
mov rdi, [rbp+var_10]
call mysql_num_fields
mov [rbp+var_28], eax
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aWarningsFromJu; "\nWarnings from just before the error:"...
mov al, 0
call _fprintf
loc_7647A:
mov rdi, [rbp+var_10]
call _Z20wrap_mysql_fetch_rowP12st_mysql_res; wrap_mysql_fetch_row(st_mysql_res *)
mov [rbp+var_20], rax
cmp rax, 0
jz loc_7655F
mov rdi, [rbp+var_10]
call mysql_fetch_lengths
mov [rbp+var_38], rax
mov eax, [rbp+var_24]
add eax, 1
mov [rbp+var_24], eax
mov eax, eax
mov [rbp+var_50], rax
mov rdi, [rbp+var_10]
call mysql_num_rows
mov rcx, rax
mov rax, [rbp+var_50]
cmp rax, rcx
jb short loc_764C7
jmp loc_7655F
loc_764C7:
mov [rbp+var_2C], 0
loc_764CE:
mov eax, [rbp+var_2C]
cmp eax, [rbp+var_28]
jnb short loc_76542
mov rax, cs:stderr_ptr
mov rax, [rax]
mov [rbp+var_60], rax
mov rax, [rbp+var_38]
mov ecx, [rbp+var_2C]
mov rax, [rax+rcx*8]
mov [rbp+var_54], eax
mov rax, [rbp+var_20]
mov ecx, [rbp+var_2C]
cmp qword ptr [rax+rcx*8], 0
jz short loc_76511
mov rax, [rbp+var_20]
mov ecx, [rbp+var_2C]
mov rax, [rax+rcx*8]
mov [rbp+var_68], rax
jmp short loc_7651E
loc_76511:
lea rax, aCannotExecuteS_6+75h; "NULL"
mov [rbp+var_68], rax
jmp short $+2
loc_7651E:
mov edx, [rbp+var_54]
mov rdi, [rbp+var_60]
mov rcx, [rbp+var_68]
lea rsi, aS; "%.*s "
mov al, 0
call _fprintf
mov eax, [rbp+var_2C]
add eax, 1
mov [rbp+var_2C], eax
jmp short loc_764CE
loc_76542:
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aRunsATestAgain+50h; "\n"
mov al, 0
call _fprintf
jmp loc_7647A
loc_7655F:
jmp short $+2
loc_76561:
mov rdi, [rbp+var_10]
call _Z22wrap_mysql_free_resultP12st_mysql_res; wrap_mysql_free_result(st_mysql_res *)
jmp short $+2
loc_7656C:
add rsp, 70h
pop rbp
retn
|
char * show_warnings_before_error(long long a1)
{
char *result; // rax
const char *v2; // rax
int v3; // [rsp+1Ch] [rbp-54h]
int v4; // [rsp+34h] [rbp-3Ch]
long long lengths; // [rsp+38h] [rbp-38h]
unsigned int i; // [rsp+44h] [rbp-2Ch]
unsigned int v7; // [rsp+48h] [rbp-28h]
int v8; // [rsp+4Ch] [rbp-24h]
long long row; // [rsp+50h] [rbp-20h]
long long v10; // [rsp+60h] [rbp-10h]
result = "SHOW WARNINGS";
if ( a1 )
{
if ( (unsigned int)wrap_mysql_query(a1, (long long)"SHOW WARNINGS") )
{
v4 = mysql_errno(a1);
v2 = (const char *)mysql_error(a1);
return (char *)log_msg("Error running query '%s': %d %s", "SHOW WARNINGS", v4, v2);
}
else
{
result = (char *)wrap_mysql_store_result(a1);
v10 = (long long)result;
if ( result )
{
if ( (unsigned long long)mysql_num_rows(result) > 1 )
{
v8 = 0;
v7 = mysql_num_fields(v10);
fprintf(stderr, "\nWarnings from just before the error:\n");
while ( 1 )
{
row = wrap_mysql_fetch_row(v10);
if ( !row )
break;
lengths = mysql_fetch_lengths(v10);
if ( (unsigned int)++v8 >= (unsigned long long)mysql_num_rows(v10) )
break;
for ( i = 0; i < v7; ++i )
{
v3 = *(_QWORD *)(lengths + 8LL * i);
if ( *(_QWORD *)(row + 8LL * i) )
fprintf(stderr, "%.*s ", v3, *(const char **)(row + 8LL * i));
else
fprintf(stderr, "%.*s ", v3, "NULL");
}
fprintf(stderr, "\n");
}
}
return (char *)wrap_mysql_free_result(v10);
}
}
}
return result;
}
|
show_warnings_before_error:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x8],RDI
LEA RAX,[0x256a7e]
MOV qword ptr [RBP + -0x18],RAX
CMP qword ptr [RBP + -0x8],0x0
JNZ 0x001763d5
JMP 0x001763d0
LAB_001763d0:
JMP 0x0017656c
LAB_001763d5:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x00161670
CMP EAX,0x0
JZ 0x00176421
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x48],RAX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00186630
MOV dword ptr [RBP + -0x3c],EAX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00186660
MOV RSI,qword ptr [RBP + -0x48]
MOV EDX,dword ptr [RBP + -0x3c]
MOV RCX,RAX
LEA RDI,[0x24e12f]
MOV AL,0x0
CALL 0x00163a90
JMP 0x0017656c
LAB_00176421:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001614b0
MOV qword ptr [RBP + -0x10],RAX
CMP RAX,0x0
JNZ 0x0017643b
JMP 0x00176436
LAB_00176436:
JMP 0x0017656c
LAB_0017643b:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00186450
CMP RAX,0x1
JA 0x0017644f
JMP 0x00176561
LAB_0017644f:
MOV dword ptr [RBP + -0x24],0x0
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00186470
MOV dword ptr [RBP + -0x28],EAX
MOV RAX,qword ptr [0x003f5fd8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x24e14f]
MOV AL,0x0
CALL 0x00160200
LAB_0017647a:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001612a0
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JZ 0x0017655f
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001847f0
MOV qword ptr [RBP + -0x38],RAX
MOV EAX,dword ptr [RBP + -0x24]
ADD EAX,0x1
MOV dword ptr [RBP + -0x24],EAX
MOV EAX,EAX
MOV qword ptr [RBP + -0x50],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00186450
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x50]
CMP RAX,RCX
JC 0x001764c7
JMP 0x0017655f
LAB_001764c7:
MOV dword ptr [RBP + -0x2c],0x0
LAB_001764ce:
MOV EAX,dword ptr [RBP + -0x2c]
CMP EAX,dword ptr [RBP + -0x28]
JNC 0x00176542
MOV RAX,qword ptr [0x003f5fd8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RBP + -0x2c]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV dword ptr [RBP + -0x54],EAX
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x2c]
CMP qword ptr [RAX + RCX*0x8],0x0
JZ 0x00176511
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x2c]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x68],RAX
JMP 0x0017651e
LAB_00176511:
LEA RAX,[0x25e198]
MOV qword ptr [RBP + -0x68],RAX
JMP 0x0017651e
LAB_0017651e:
MOV EDX,dword ptr [RBP + -0x54]
MOV RDI,qword ptr [RBP + -0x60]
MOV RCX,qword ptr [RBP + -0x68]
LEA RSI,[0x24e176]
MOV AL,0x0
CALL 0x00160200
MOV EAX,dword ptr [RBP + -0x2c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x2c],EAX
JMP 0x001764ce
LAB_00176542:
MOV RAX,qword ptr [0x003f5fd8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x24d2af]
MOV AL,0x0
CALL 0x00160200
JMP 0x0017647a
LAB_0017655f:
JMP 0x00176561
LAB_00176561:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00161520
JMP 0x0017656c
LAB_0017656c:
ADD RSP,0x70
POP RBP
RET
|
/* show_warnings_before_error(st_mysql*) */
void show_warnings_before_error(st_mysql *param_1)
{
int iVar1;
uint uVar2;
int8 uVar3;
st_mysql_res *psVar4;
ulong uVar5;
long lVar6;
long lVar7;
char *local_70;
uint local_34;
uint local_2c;
if (param_1 != (st_mysql *)0x0) {
iVar1 = wrap_mysql_query(param_1,"SHOW WARNINGS");
if (iVar1 == 0) {
psVar4 = (st_mysql_res *)wrap_mysql_store_result(param_1);
if (psVar4 != (st_mysql_res *)0x0) {
uVar5 = mysql_num_rows(psVar4);
if (1 < uVar5) {
local_2c = 0;
uVar2 = mysql_num_fields(psVar4);
fprintf(*(FILE **)PTR_stderr_003f5fd8,"\nWarnings from just before the error:\n");
while (lVar6 = wrap_mysql_fetch_row(psVar4), lVar6 != 0) {
lVar7 = mysql_fetch_lengths(psVar4);
local_2c = local_2c + 1;
uVar5 = mysql_num_rows(psVar4);
if (uVar5 <= local_2c) break;
for (local_34 = 0; local_34 < uVar2; local_34 = local_34 + 1) {
if (*(long *)(lVar6 + (ulong)local_34 * 8) == 0) {
local_70 = "NULL";
}
else {
local_70 = *(char **)(lVar6 + (ulong)local_34 * 8);
}
fprintf(*(FILE **)PTR_stderr_003f5fd8,"%.*s ",
*(ulong *)(lVar7 + (ulong)local_34 * 8) & 0xffffffff,local_70);
}
fprintf(*(FILE **)PTR_stderr_003f5fd8,"\n");
}
}
wrap_mysql_free_result(psVar4);
}
}
else {
uVar2 = mysql_errno(param_1);
uVar3 = mysql_error(param_1);
log_msg("Error running query \'%s\': %d %s","SHOW WARNINGS",(ulong)uVar2,uVar3);
}
}
return;
}
|
|
16,233
|
my_hash_sort_simple
|
eloqsql/strings/ctype-simple.c
|
void my_hash_sort_simple(CHARSET_INFO *cs,
const uchar *key, size_t len,
ulong *nr1, ulong *nr2)
{
register const uchar *sort_order=cs->sort_order;
const uchar *end;
uint16 space_weight= sort_order[' '];
/*
Remove all trailing characters that are equal to space.
We have to do this to be able to compare 'A ' and 'A' as identical.
If the key is long enough, cut the trailing spaces (0x20) using an
optimized function implemented in skip_trailing_spaces().
"len > 16" is just some heuristic here.
Calling skip_triling_space() for short values is not desirable,
because its initialization block may be more expensive than the
performance gained.
*/
end= len > 16 ? skip_trailing_space(key, len) : key + len;
/*
We removed all trailing characters that are binary equal to space 0x20.
Now remove all trailing characters that have weights equal to space.
Some 8bit simple collations may have such characters:
- cp1250_general_ci 0xA0 NO-BREAK SPACE == 0x20 SPACE
- cp1251_ukrainian_ci 0x60 GRAVE ACCENT == 0x20 SPACE
- koi8u_general_ci 0x60 GRAVE ACCENT == 0x20 SPACE
*/
for ( ; key < end ; )
{
if (sort_order[*--end] != space_weight)
{
end++;
break;
}
}
my_hash_sort_simple_nopad(cs, key, end - key, nr1, nr2);
}
|
O3
|
c
|
my_hash_sort_simple:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
movq 0x58(%rdi), %rax
leaq (%rsi,%rdx), %rdi
cmpq $0x11, %rdx
jb 0x3cd79
cmpq $0x15, %rdx
jb 0x3cd64
movq %rdi, %r10
andq $-0x4, %r10
cmpq %rsi, %r10
jbe 0x3cd64
leaq 0x3(%rsi), %r9
andq $-0x4, %r9
movq %rdi, %rdx
movb -0x1(%rdi), %r11b
cmpq %r10, %rdi
jbe 0x3cde4
leaq -0x1(%rdx), %rdi
cmpb $0x20, %r11b
je 0x3cd48
jmp 0x3cd67
movq %rdi, %rdx
movq %rdx, %rdi
cmpq %rsi, %rdx
jbe 0x3cd79
leaq -0x1(%rdi), %rdx
cmpb $0x20, -0x1(%rdi)
je 0x3cd67
movb 0x20(%rax), %r9b
movq %rdi, %r11
subq %rsi, %r11
movq %rdi, %rdx
movq %r11, %r10
cmpq %rsi, %rdi
jbe 0x3cda0
leaq -0x1(%rdx), %rdi
movzbl -0x1(%rdx), %ebx
leaq -0x1(%r10), %r11
cmpb %r9b, (%rax,%rbx)
je 0x3cd83
movq (%rcx), %rdi
movq (%r8), %r9
testq %r10, %r10
jle 0x3cddb
movl %edi, %r10d
andl $0x3f, %r10d
addq %r9, %r10
movzbl (%rsi), %r11d
movzbl (%rax,%r11), %r11d
imulq %r10, %r11
movq %rdi, %r10
shlq $0x8, %r10
addq %r11, %r10
xorq %r10, %rdi
addq $0x3, %r9
incq %rsi
cmpq %rdx, %rsi
jb 0x3cdab
movq %rdi, (%rcx)
movq %r9, (%r8)
popq %rbx
popq %rbp
retq
cmpb $0x20, %r11b
setne %dil
cmpq %r10, %r9
setae %r10b
orb %dil, %r10b
jne 0x3cd67
movq %rdx, %rdi
movq %rdi, %rdx
cmpq %r9, %rdi
jbe 0x3cd67
leaq -0x4(%rdx), %rdi
cmpl $0x20202020, -0x4(%rdx) # imm = 0x20202020
je 0x3cdff
jmp 0x3cd67
|
my_hash_sort_simple:
push rbp
mov rbp, rsp
push rbx
mov rax, [rdi+58h]
lea rdi, [rsi+rdx]
cmp rdx, 11h
jb short loc_3CD79
cmp rdx, 15h
jb short loc_3CD64
mov r10, rdi
and r10, 0FFFFFFFFFFFFFFFCh
cmp r10, rsi
jbe short loc_3CD64
lea r9, [rsi+3]
and r9, 0FFFFFFFFFFFFFFFCh
loc_3CD48:
mov rdx, rdi
mov r11b, [rdi-1]
cmp rdi, r10
jbe loc_3CDE4
lea rdi, [rdx-1]
cmp r11b, 20h ; ' '
jz short loc_3CD48
jmp short loc_3CD67
loc_3CD64:
mov rdx, rdi
loc_3CD67:
mov rdi, rdx
cmp rdx, rsi
jbe short loc_3CD79
lea rdx, [rdi-1]
cmp byte ptr [rdi-1], 20h ; ' '
jz short loc_3CD67
loc_3CD79:
mov r9b, [rax+20h]
mov r11, rdi
sub r11, rsi
loc_3CD83:
mov rdx, rdi
mov r10, r11
cmp rdi, rsi
jbe short loc_3CDA0
lea rdi, [rdx-1]
movzx ebx, byte ptr [rdx-1]
lea r11, [r10-1]
cmp [rax+rbx], r9b
jz short loc_3CD83
loc_3CDA0:
mov rdi, [rcx]
mov r9, [r8]
test r10, r10
jle short loc_3CDDB
loc_3CDAB:
mov r10d, edi
and r10d, 3Fh
add r10, r9
movzx r11d, byte ptr [rsi]
movzx r11d, byte ptr [rax+r11]
imul r11, r10
mov r10, rdi
shl r10, 8
add r10, r11
xor rdi, r10
add r9, 3
inc rsi
cmp rsi, rdx
jb short loc_3CDAB
loc_3CDDB:
mov [rcx], rdi
mov [r8], r9
pop rbx
pop rbp
retn
loc_3CDE4:
cmp r11b, 20h ; ' '
setnz dil
cmp r9, r10
setnb r10b
or r10b, dil
jnz loc_3CD67
mov rdi, rdx
loc_3CDFF:
mov rdx, rdi
cmp rdi, r9
jbe loc_3CD67
lea rdi, [rdx-4]
cmp dword ptr [rdx-4], 20202020h
jz short loc_3CDFF
jmp loc_3CD67
|
long long my_hash_sort_simple(long long a1, unsigned __int8 *a2, unsigned long long a3, long long *a4, long long *a5)
{
long long result; // rax
unsigned long long v6; // rdi
unsigned long long v7; // r10
unsigned long long v8; // r9
unsigned __int8 *v9; // rdx
char v10; // r11
long long v11; // r11
unsigned long long v12; // rdx
long long v13; // r10
long long v14; // rdi
long long v15; // r9
result = *(_QWORD *)(a1 + 88);
v6 = (unsigned long long)&a2[a3];
if ( a3 >= 0x11 )
{
if ( a3 < 0x15 || (v7 = v6 & 0xFFFFFFFFFFFFFFFCLL, (v6 & 0xFFFFFFFFFFFFFFFCLL) <= (unsigned long long)a2) )
{
v9 = &a2[a3];
}
else
{
v8 = (unsigned long long)(a2 + 3) & 0xFFFFFFFFFFFFFFFCLL;
while ( 1 )
{
v9 = (unsigned __int8 *)v6;
v10 = *(_BYTE *)(v6 - 1);
if ( v6 <= v7 )
break;
--v6;
if ( v10 != 32 )
goto LABEL_9;
}
if ( v10 == 32 && v8 < v7 )
{
do
{
v9 = (unsigned __int8 *)v6;
if ( v6 <= v8 )
break;
v6 -= 4LL;
}
while ( *((_DWORD *)v9 - 1) == 538976288 );
}
}
do
{
LABEL_9:
v6 = (unsigned long long)v9;
if ( v9 <= a2 )
break;
--v9;
}
while ( *(_BYTE *)(v6 - 1) == 32 );
}
v11 = v6 - (_QWORD)a2;
do
{
v12 = v6;
v13 = v11;
if ( v6 <= (unsigned long long)a2 )
break;
--v6;
--v11;
}
while ( *(_BYTE *)(result + *(unsigned __int8 *)(v12 - 1)) == *(_BYTE *)(result + 32) );
v14 = *a4;
v15 = *a5;
if ( v13 > 0 )
{
do
{
v14 ^= (v15 + (v14 & 0x3F)) * *(unsigned __int8 *)(result + *a2) + (v14 << 8);
v15 += 3LL;
++a2;
}
while ( (unsigned long long)a2 < v12 );
}
*a4 = v14;
*a5 = v15;
return result;
}
|
my_hash_sort_simple:
PUSH RBP
MOV RBP,RSP
PUSH RBX
MOV RAX,qword ptr [RDI + 0x58]
LEA RDI,[RSI + RDX*0x1]
CMP RDX,0x11
JC 0x0013cd79
CMP RDX,0x15
JC 0x0013cd64
MOV R10,RDI
AND R10,-0x4
CMP R10,RSI
JBE 0x0013cd64
LEA R9,[RSI + 0x3]
AND R9,-0x4
LAB_0013cd48:
MOV RDX,RDI
MOV R11B,byte ptr [RDI + -0x1]
CMP RDI,R10
JBE 0x0013cde4
LEA RDI,[RDX + -0x1]
CMP R11B,0x20
JZ 0x0013cd48
JMP 0x0013cd67
LAB_0013cd64:
MOV RDX,RDI
LAB_0013cd67:
MOV RDI,RDX
CMP RDX,RSI
JBE 0x0013cd79
LEA RDX,[RDI + -0x1]
CMP byte ptr [RDI + -0x1],0x20
JZ 0x0013cd67
LAB_0013cd79:
MOV R9B,byte ptr [RAX + 0x20]
MOV R11,RDI
SUB R11,RSI
LAB_0013cd83:
MOV RDX,RDI
MOV R10,R11
CMP RDI,RSI
JBE 0x0013cda0
LEA RDI,[RDX + -0x1]
MOVZX EBX,byte ptr [RDX + -0x1]
LEA R11,[R10 + -0x1]
CMP byte ptr [RAX + RBX*0x1],R9B
JZ 0x0013cd83
LAB_0013cda0:
MOV RDI,qword ptr [RCX]
MOV R9,qword ptr [R8]
TEST R10,R10
JLE 0x0013cddb
LAB_0013cdab:
MOV R10D,EDI
AND R10D,0x3f
ADD R10,R9
MOVZX R11D,byte ptr [RSI]
MOVZX R11D,byte ptr [RAX + R11*0x1]
IMUL R11,R10
MOV R10,RDI
SHL R10,0x8
ADD R10,R11
XOR RDI,R10
ADD R9,0x3
INC RSI
CMP RSI,RDX
JC 0x0013cdab
LAB_0013cddb:
MOV qword ptr [RCX],RDI
MOV qword ptr [R8],R9
POP RBX
POP RBP
RET
LAB_0013cde4:
CMP R11B,0x20
SETNZ DIL
CMP R9,R10
SETNC R10B
OR R10B,DIL
JNZ 0x0013cd67
MOV RDI,RDX
LAB_0013cdff:
MOV RDX,RDI
CMP RDI,R9
JBE 0x0013cd67
LEA RDI,[RDX + -0x4]
CMP dword ptr [RDX + -0x4],0x20202020
JZ 0x0013cdff
JMP 0x0013cd67
|
void my_hash_sort_simple(long param_1,byte *param_2,ulong param_3,ulong *param_4,long *param_5)
{
byte *pbVar1;
long lVar2;
byte *pbVar3;
ulong uVar4;
byte *pbVar5;
long lVar6;
byte *pbVar7;
long lVar8;
lVar2 = *(long *)(param_1 + 0x58);
pbVar5 = param_2 + param_3;
if (param_3 < 0x11) goto LAB_0013cd79;
pbVar3 = pbVar5;
if ((0x14 < param_3) && (pbVar7 = (byte *)((ulong)pbVar5 & 0xfffffffffffffffc), param_2 < pbVar7))
{
do {
pbVar1 = pbVar5 + -1;
pbVar3 = pbVar5;
if (pbVar5 <= pbVar7) {
if ((byte *)((ulong)(param_2 + 3) & 0xfffffffffffffffc) < pbVar7 && *pbVar1 == 0x20)
goto LAB_0013cdff;
break;
}
pbVar5 = pbVar5 + -1;
} while (*pbVar1 == 0x20);
}
goto LAB_0013cd67;
while (pbVar7 = pbVar5 + -4, pbVar5 = pbVar5 + -4, *(int *)pbVar7 == 0x20202020) {
LAB_0013cdff:
pbVar3 = pbVar5;
if (pbVar5 <= (byte *)((ulong)(param_2 + 3) & 0xfffffffffffffffc)) break;
}
LAB_0013cd67:
do {
pbVar5 = pbVar3;
if (pbVar5 <= param_2) break;
pbVar3 = pbVar5 + -1;
} while (pbVar5[-1] == 0x20);
LAB_0013cd79:
lVar6 = (long)pbVar5 - (long)param_2;
do {
lVar8 = lVar6;
pbVar3 = pbVar5;
if (pbVar3 <= param_2) break;
pbVar5 = pbVar3 + -1;
lVar6 = lVar8 + -1;
} while (*(char *)(lVar2 + (ulong)pbVar3[-1]) == *(char *)(lVar2 + 0x20));
uVar4 = *param_4;
lVar6 = *param_5;
if (0 < lVar8) {
do {
uVar4 = uVar4 ^ uVar4 * 0x100 +
(ulong)*(byte *)(lVar2 + (ulong)*param_2) *
((ulong)((uint)uVar4 & 0x3f) + lVar6);
lVar6 = lVar6 + 3;
param_2 = param_2 + 1;
} while (param_2 < pbVar3);
}
*param_4 = uVar4;
*param_5 = lVar6;
return;
}
|
|
16,234
|
ggml_fp32_to_fp16_row
|
monkey531[P]llama/ggml/src/ggml.c
|
void ggml_fp32_to_fp16_row(const float * x, ggml_fp16_t * y, int64_t n) {
int64_t i = 0;
#if defined(__F16C__)
//if (ggml_cpu_has_f16c()) {
for (; i + 7 < n; i += 8) {
__m256 x_vec = _mm256_loadu_ps(x + i);
__m128i y_vec = _mm256_cvtps_ph(x_vec, _MM_FROUND_TO_NEAREST_INT);
_mm_storeu_si128((__m128i *)(y + i), y_vec);
}
for(; i + 3 < n; i += 4) {
__m128 x_vec = _mm_loadu_ps(x + i);
__m128i y_vec = _mm_cvtps_ph(x_vec, _MM_FROUND_TO_NEAREST_INT);
_mm_storel_epi64((__m128i *)(y + i), y_vec);
}
//}
#endif
for (; i < n; i++) {
y[i] = GGML_FP32_TO_FP16(x[i]);
}
}
|
O1
|
c
|
ggml_fp32_to_fp16_row:
testq %rdx, %rdx
jle 0x19244
pushq %rbx
xorl %eax, %eax
movdqa 0x30e78(%rip), %xmm0 # 0x4a020
movss 0x30f38(%rip), %xmm1 # 0x4a0e8
movss 0x30f34(%rip), %xmm2 # 0x4a0ec
movl $0x40000000, %ecx # imm = 0x40000000
movl $0x7e00, %r8d # imm = 0x7E00
movd (%rdi,%rax,4), %xmm3
movd %xmm3, %r9d
pand %xmm0, %xmm3
mulss %xmm1, %xmm3
mulss %xmm2, %xmm3
leal (%r9,%r9), %r10d
movl %r9d, %r11d
andl $0x7f800000, %r11d # imm = 0x7F800000
addl $0x7800000, %r11d # imm = 0x7800000
cmpl $0x71000000, %r10d # imm = 0x71000000
cmovbl %ecx, %r11d
movd %r11d, %xmm4
addss %xmm3, %xmm4
movd %xmm4, %r11d
movl %r11d, %ebx
shrl $0xd, %ebx
andl $0x7c00, %ebx # imm = 0x7C00
andl $0xfff, %r11d # imm = 0xFFF
addl %ebx, %r11d
shrl $0x10, %r9d
andl $0x8000, %r9d # imm = 0x8000
cmpl $0xff000001, %r10d # imm = 0xFF000001
cmovael %r8d, %r11d
orl %r9d, %r11d
movw %r11w, (%rsi,%rax,2)
incq %rax
cmpq %rax, %rdx
jne 0x191c3
popq %rbx
retq
|
ggml_fp32_to_fp16_row:
test rdx, rdx
jle locret_19244
push rbx
xor eax, eax
movdqa xmm0, cs:xmmword_4A020
movss xmm1, cs:dword_4A0E8
movss xmm2, cs:dword_4A0EC
mov ecx, 40000000h
mov r8d, 7E00h
loc_191C3:
movd xmm3, dword ptr [rdi+rax*4]
movd r9d, xmm3
pand xmm3, xmm0
mulss xmm3, xmm1
mulss xmm3, xmm2
lea r10d, [r9+r9]
mov r11d, r9d
and r11d, 7F800000h
add r11d, 7800000h
cmp r10d, 71000000h
cmovb r11d, ecx
movd xmm4, r11d
addss xmm4, xmm3
movd r11d, xmm4
mov ebx, r11d
shr ebx, 0Dh
and ebx, 7C00h
and r11d, 0FFFh
add r11d, ebx
shr r9d, 10h
and r9d, 8000h
cmp r10d, 0FF000001h
cmovnb r11d, r8d
or r11d, r9d
mov [rsi+rax*2], r11w
inc rax
cmp rdx, rax
jnz short loc_191C3
pop rbx
locret_19244:
retn
|
void ggml_fp32_to_fp16_row(long long a1, long long a2, long long a3)
{
long long v3; // rax
__m128i si128; // xmm0
__m128i v5; // xmm3
unsigned int v6; // r9d
float v7; // xmm3_4
unsigned int v8; // r10d
unsigned int v9; // r11d
__m128i v10; // xmm4
unsigned int v11; // r11d
int v12; // r11d
int v13; // r9d
if ( a3 > 0 )
{
v3 = 0LL;
si128 = _mm_load_si128((const __m128i *)&xmmword_4A020);
do
{
v5 = _mm_cvtsi32_si128(*(_DWORD *)(a1 + 4 * v3));
v6 = _mm_cvtsi128_si32(v5);
v7 = (float)(*(float *)_mm_and_si128(v5, si128).m128i_i32 * 5.1922969e33) * 7.7037198e-34;
v8 = 2 * v6;
v9 = (v6 & 0x7F800000) + 125829120;
if ( 2 * v6 < 0x71000000 )
v9 = 0x40000000;
v10 = _mm_cvtsi32_si128(v9);
*(float *)v10.m128i_i32 = *(float *)v10.m128i_i32 + v7;
v11 = _mm_cvtsi128_si32(v10);
v12 = ((v11 >> 13) & 0x7C00) + (v11 & 0xFFF);
v13 = HIWORD(v6) & 0x8000;
if ( v8 >= 0xFF000001 )
LOWORD(v12) = 32256;
*(_WORD *)(a2 + 2 * v3++) = v13 | v12;
}
while ( a3 != v3 );
}
}
|
ggml_fp32_to_fp16_row:
TEST RDX,RDX
JLE 0x00119244
PUSH RBX
XOR EAX,EAX
MOVDQA XMM0,xmmword ptr [0x0014a020]
MOVSS XMM1,dword ptr [0x0014a0e8]
MOVSS XMM2,dword ptr [0x0014a0ec]
MOV ECX,0x40000000
MOV R8D,0x7e00
LAB_001191c3:
MOVD XMM3,dword ptr [RDI + RAX*0x4]
MOVD R9D,XMM3
PAND XMM3,XMM0
MULSS XMM3,XMM1
MULSS XMM3,XMM2
LEA R10D,[R9 + R9*0x1]
MOV R11D,R9D
AND R11D,0x7f800000
ADD R11D,0x7800000
CMP R10D,0x71000000
CMOVC R11D,ECX
MOVD XMM4,R11D
ADDSS XMM4,XMM3
MOVD R11D,XMM4
MOV EBX,R11D
SHR EBX,0xd
AND EBX,0x7c00
AND R11D,0xfff
ADD R11D,EBX
SHR R9D,0x10
AND R9D,0x8000
CMP R10D,0xff000001
CMOVNC R11D,R8D
OR R11D,R9D
MOV word ptr [RSI + RAX*0x2],R11W
INC RAX
CMP RDX,RAX
JNZ 0x001191c3
POP RBX
LAB_00119244:
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void ggml_fp32_to_fp16_row(long param_1,long param_2,long param_3)
{
uint uVar1;
uint uVar2;
float fVar3;
float fVar4;
long lVar5;
ushort uVar6;
float fVar7;
fVar4 = DAT_0014a0ec;
fVar3 = DAT_0014a0e8;
uVar2 = _DAT_0014a020;
if (0 < param_3) {
lVar5 = 0;
do {
uVar1 = *(uint *)(param_1 + lVar5 * 4);
fVar7 = (float)((uVar1 & 0x7f800000) + 0x7800000);
if (uVar1 * 2 < 0x71000000) {
fVar7 = 2.0;
}
fVar7 = fVar7 + (float)(uVar1 & uVar2) * fVar3 * fVar4;
uVar6 = (SUB42(fVar7,0) & 0xfff) + ((ushort)((uint)fVar7 >> 0xd) & 0x7c00);
if (0xff000000 < uVar1 * 2) {
uVar6 = 0x7e00;
}
*(ushort *)(param_2 + lVar5 * 2) = uVar6 | (ushort)(uVar1 >> 0x10) & 0x8000;
lVar5 = lVar5 + 1;
} while (param_3 != lVar5);
}
return;
}
|
|
16,235
|
thr_lock_data_init
|
eloqsql/mysys/thr_lock.c
|
void thr_lock_data_init(THR_LOCK *lock,THR_LOCK_DATA *data, void *param)
{
data->lock=lock;
data->type=TL_UNLOCK;
data->owner= 0; /* no owner yet */
data->status_param=param;
data->cond=0;
data->priority= 0;
data->debug_print_param= 0;
}
|
O3
|
c
|
thr_lock_data_init:
pushq %rbp
movq %rsp, %rbp
movq %rdi, 0x18(%rsi)
xorl %eax, %eax
movl %eax, 0x40(%rsi)
movq %rax, (%rsi)
movq %rdx, 0x28(%rsi)
movq %rax, 0x20(%rsi)
movl %eax, 0x48(%rsi)
movq %rax, 0x30(%rsi)
popq %rbp
retq
|
thr_lock_data_init:
push rbp
mov rbp, rsp
mov [rsi+18h], rdi
xor eax, eax
mov [rsi+40h], eax
mov [rsi], rax
mov [rsi+28h], rdx
mov [rsi+20h], rax
mov [rsi+48h], eax
mov [rsi+30h], rax
pop rbp
retn
|
long long thr_lock_data_init(long long a1, long long a2, long long a3)
{
long long result; // rax
*(_QWORD *)(a2 + 24) = a1;
result = 0LL;
*(_DWORD *)(a2 + 64) = 0;
*(_QWORD *)a2 = 0LL;
*(_QWORD *)(a2 + 40) = a3;
*(_QWORD *)(a2 + 32) = 0LL;
*(_DWORD *)(a2 + 72) = 0;
*(_QWORD *)(a2 + 48) = 0LL;
return result;
}
|
thr_lock_data_init:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RSI + 0x18],RDI
XOR EAX,EAX
MOV dword ptr [RSI + 0x40],EAX
MOV qword ptr [RSI],RAX
MOV qword ptr [RSI + 0x28],RDX
MOV qword ptr [RSI + 0x20],RAX
MOV dword ptr [RSI + 0x48],EAX
MOV qword ptr [RSI + 0x30],RAX
POP RBP
RET
|
void thr_lock_data_init(int8 param_1,int8 *param_2,int8 param_3)
{
param_2[3] = param_1;
*(int4 *)(param_2 + 8) = 0;
*param_2 = 0;
param_2[5] = param_3;
param_2[4] = 0;
*(int4 *)(param_2 + 9) = 0;
param_2[6] = 0;
return;
}
|
|
16,236
|
convert_from_long
|
eloqsql/libmariadb/libmariadb/ma_stmt_codec.c
|
static void convert_from_long(MYSQL_BIND *r_param, const MYSQL_FIELD *field, longlong val, my_bool is_unsigned)
{
switch (r_param->buffer_type) {
case MYSQL_TYPE_TINY:
*(uchar *)r_param->buffer= (uchar)val;
*r_param->error= r_param->is_unsigned ? NUMERIC_TRUNCATION(val, 0, UINT_MAX8) : NUMERIC_TRUNCATION(val, INT_MIN8, INT_MAX8);
r_param->buffer_length= 1;
break;
case MYSQL_TYPE_SHORT:
case MYSQL_TYPE_YEAR:
shortstore(r_param->buffer, (short)val);
*r_param->error= r_param->is_unsigned ? NUMERIC_TRUNCATION(val, 0, UINT_MAX16) : NUMERIC_TRUNCATION(val, INT_MIN16, INT_MAX16);
r_param->buffer_length= 2;
break;
case MYSQL_TYPE_LONG:
longstore(r_param->buffer, (int32)val);
*r_param->error= r_param->is_unsigned ? NUMERIC_TRUNCATION(val, 0, UINT_MAX32) : NUMERIC_TRUNCATION(val, INT_MIN32, INT_MAX32);
r_param->buffer_length= 4;
break;
case MYSQL_TYPE_LONGLONG:
*r_param->error= (val < 0 && r_param->is_unsigned != is_unsigned);
longlongstore(r_param->buffer, val);
r_param->buffer_length= 8;
break;
case MYSQL_TYPE_DOUBLE:
{
volatile double dbl;
dbl= (is_unsigned) ? ulonglong2double((ulonglong)val) : (double)val;
doublestore(r_param->buffer, dbl);
*r_param->error = (dbl != ceil(dbl)) ||
(is_unsigned ? (ulonglong )dbl != (ulonglong)val :
(longlong)dbl != (longlong)val);
r_param->buffer_length= 8;
break;
}
case MYSQL_TYPE_FLOAT:
{
volatile float fval;
fval= is_unsigned ? (float)(ulonglong)(val) : (float)val;
floatstore((uchar *)r_param->buffer, fval);
*r_param->error= (fval != ceilf(fval)) ||
(is_unsigned ? (ulonglong)fval != (ulonglong)val :
(longlong)fval != val);
r_param->buffer_length= 4;
}
break;
default:
{
char *buffer;
char *endptr;
uint len;
my_bool zf_truncated= 0;
buffer= alloca(MAX(field->length, 22));
endptr= ma_ll2str(val, buffer, is_unsigned ? 10 : -10);
len= (uint)(endptr - buffer);
/* check if field flag is zerofill */
if (field->flags & ZEROFILL_FLAG)
{
uint display_width= MAX(field->length, len);
if (display_width < r_param->buffer_length)
{
ma_bmove_upp(buffer + display_width, buffer + len, len);
/* coverity[bad_memset] */
memset((void*) buffer, (int) '0', display_width - len);
len= display_width;
}
else
zf_truncated= 1;
}
convert_froma_string(r_param, buffer, len);
*r_param->error+= zf_truncated;
}
break;
}
}
|
O3
|
c
|
convert_from_long:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %r15d
movq %rdx, %rbx
movq %rsi, %r13
movq %rdi, %r14
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movl 0x60(%rdi), %eax
decl %eax
cmpl $0xc, %eax
ja 0x27237
leaq 0x14f0e(%rip), %rcx # 0x3c0fc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%r14), %rax
movb %bl, (%rax)
movq 0x10(%r14), %rax
movb %bh, 0x1(%rax)
xorl %eax, %eax
cmpq $0x10000, %rbx # imm = 0x10000
setae %al
movswq %bx, %rcx
xorl %edx, %edx
cmpq %rbx, %rcx
setne %dl
cmpb $0x0, 0x65(%r14)
cmovel %edx, %eax
movq 0x18(%r14), %rcx
movb %al, (%rcx)
movq $0x2, 0x40(%r14)
jmp 0x27502
movq 0x38(%r13), %rax
cmpq $0x17, %rax
movl $0x16, %ecx
cmovaeq %rax, %rcx
addq $0xf, %rcx
andq $-0x10, %rcx
movq %rsp, %r12
subq %rcx, %r12
movq %r12, %rsp
testb %r15b, %r15b
movl $0xfffffff6, %eax # imm = 0xFFFFFFF6
movl $0xa, %edx
cmovel %eax, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x356d0
subq %r12, %rax
testb $0x40, 0x64(%r13)
jne 0x27366
movl %eax, %ebx
jmp 0x273ba
testb %r15b, %r15b
je 0x273c2
movq %rbx, %xmm1
punpckldq 0x14f11(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x14f19(%rip), %xmm1 # 0x3c1c0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0 # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
jmp 0x273c7
testq %rbx, %rbx
js 0x274cc
xorl %eax, %eax
jmp 0x274d3
movq 0x10(%r14), %rax
movb %bl, (%rax)
xorl %eax, %eax
cmpq $0x100, %rbx # imm = 0x100
setae %al
movsbq %bl, %rcx
xorl %edx, %edx
cmpq %rbx, %rcx
setne %dl
cmpb $0x0, 0x65(%r14)
cmovel %edx, %eax
movq 0x18(%r14), %rcx
movb %al, (%rcx)
movq $0x1, 0x40(%r14)
jmp 0x27502
movq 0x10(%r14), %rax
movb %bl, (%rax)
movq 0x10(%r14), %rax
movb %bh, 0x1(%rax)
movl %ebx, %eax
shrl $0x10, %eax
movq 0x10(%r14), %rcx
movb %al, 0x2(%rcx)
movslq %ebx, %rax
movl %ebx, %ecx
shrl $0x18, %ecx
movq 0x10(%r14), %rdx
movb %cl, 0x3(%rdx)
xorl %ecx, %ecx
movq %rbx, %rdx
shrq $0x20, %rdx
setne %cl
xorl %edx, %edx
cmpq %rbx, %rax
setne %dl
cmpb $0x0, 0x65(%r14)
cmovel %edx, %ecx
movq 0x18(%r14), %rax
movb %cl, (%rax)
jmp 0x274c2
cvtsi2ss %rbx, %xmm0
testq %rbx, %rbx
js 0x27438
movaps %xmm0, %xmm1
jmp 0x2744f
movq 0x38(%r13), %rdx
movl %eax, %ecx
cmpq %rcx, %rdx
cmovbeq %rcx, %rdx
movl %edx, %ebx
movb $0x1, %r15b
cmpq 0x40(%r14), %rbx
jae 0x274ea
testq %rcx, %rcx
je 0x273ab
leaq (%rcx,%r12), %rsi
decq %rsi
negq %rcx
leaq (%rbx,%r12), %rdi
decq %rdi
xorl %r8d, %r8d
movb (%rsi,%r8), %r9b
movb %r9b, (%rdi,%r8)
decq %r8
cmpq %r8, %rcx
jne 0x2739b
subl %eax, %edx
movq %r12, %rdi
movl $0x30, %esi
callq 0x13260
xorl %r15d, %r15d
jmp 0x274ed
cvtsi2sd %rbx, %xmm0
movsd %xmm0, -0x38(%rbp)
movq 0x10(%r14), %rax
movsd %xmm0, (%rax)
movsd -0x38(%rbp), %xmm0
movsd %xmm0, -0x40(%rbp)
movsd -0x38(%rbp), %xmm0
callq 0x130e0
movb $0x1, %al
movsd -0x40(%rbp), %xmm1
ucomisd %xmm0, %xmm1
jne 0x2742d
jp 0x2742d
movsd -0x38(%rbp), %xmm0
cvttsd2si %xmm0, %rax
movq %rax, %rcx
cvttsd2si %xmm0, %rdx
subsd 0x146b7(%rip), %xmm0 # 0x3bac8
cvttsd2si %xmm0, %rsi
sarq $0x3f, %rcx
andq %rcx, %rsi
orq %rax, %rsi
testb %r15b, %r15b
cmoveq %rdx, %rsi
cmpq %rbx, %rsi
setne %al
movq 0x18(%r14), %rcx
movb %al, (%rcx)
jmp 0x274e0
movq %rbx, %rax
shrq %rax
movl %ebx, %ecx
andl $0x1, %ecx
orq %rax, %rcx
cvtsi2ss %rcx, %xmm1
addss %xmm1, %xmm1
testb %r15b, %r15b
je 0x27457
movaps %xmm1, %xmm0
movss %xmm0, -0x38(%rbp)
movq 0x10(%r14), %rax
movss %xmm0, (%rax)
movss -0x38(%rbp), %xmm0
movss %xmm0, -0x40(%rbp)
movss -0x38(%rbp), %xmm0
callq 0x13270
movb $0x1, %al
movss -0x40(%rbp), %xmm1
ucomiss %xmm0, %xmm1
jne 0x274bc
jp 0x274bc
movss -0x38(%rbp), %xmm0
cvttss2si %xmm0, %rax
movq %rax, %rcx
cvttss2si %xmm0, %rdx
subss 0xfb64(%rip), %xmm0 # 0x37004
cvttss2si %xmm0, %rsi
sarq $0x3f, %rcx
andq %rcx, %rsi
orq %rax, %rsi
testb %r15b, %r15b
cmoveq %rdx, %rsi
cmpq %rbx, %rsi
setne %al
movq 0x18(%r14), %rcx
movb %al, (%rcx)
movq $0x4, 0x40(%r14)
jmp 0x27502
cmpb %r15b, 0x65(%r14)
setne %al
movq 0x18(%r14), %rcx
movb %al, (%rcx)
movq 0x10(%r14), %rax
movq %rbx, (%rax)
movq $0x8, 0x40(%r14)
jmp 0x27502
movq %rcx, %rbx
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x27525
movq 0x18(%r14), %rax
addb %r15b, (%rax)
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x27520
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x13500
|
convert_from_long:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r15d, ecx
mov rbx, rdx
mov r13, rsi
mov r14, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov eax, [rdi+60h]
dec eax; switch 13 cases
cmp eax, 0Ch
ja short def_271F5; jumptable 00000000000271F5 default case, cases 6,7,9-12
lea rcx, jpt_271F5
movsxd rax, ds:(jpt_271F5 - 3C0FCh)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_271F7:
mov rax, [r14+10h]; jumptable 00000000000271F5 cases 2,13
mov [rax], bl
mov rax, [r14+10h]
mov [rax+1], bh
xor eax, eax
cmp rbx, 10000h
setnb al
movsx rcx, bx
xor edx, edx
cmp rcx, rbx
setnz dl
cmp byte ptr [r14+65h], 0
cmovz eax, edx
mov rcx, [r14+18h]
mov [rcx], al
mov qword ptr [r14+40h], 2
jmp loc_27502
def_271F5:
mov rax, [r13+38h]; jumptable 00000000000271F5 default case, cases 6,7,9-12
cmp rax, 17h
mov ecx, 16h
cmovnb rcx, rax
add rcx, 0Fh
and rcx, 0FFFFFFFFFFFFFFF0h
mov r12, rsp
sub r12, rcx
mov rsp, r12
test r15b, r15b
mov eax, 0FFFFFFF6h
mov edx, 0Ah
cmovz edx, eax
mov rdi, rbx
mov rsi, r12
call ma_ll2str
sub rax, r12
test byte ptr [r13+64h], 40h
jnz loc_27366
mov ebx, eax
jmp loc_273BA
loc_27289:
test r15b, r15b; jumptable 00000000000271F5 case 5
jz loc_273C2
movq xmm1, rbx
punpckldq xmm1, cs:xmmword_3C1B0
subpd xmm1, cs:xmmword_3C1C0
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
jmp loc_273C7
loc_272B8:
test rbx, rbx; jumptable 00000000000271F5 case 8
js loc_274CC
xor eax, eax
jmp loc_274D3
loc_272C8:
mov rax, [r14+10h]; jumptable 00000000000271F5 case 1
mov [rax], bl
xor eax, eax
cmp rbx, 100h
setnb al
movsx rcx, bl
xor edx, edx
cmp rcx, rbx
setnz dl
cmp byte ptr [r14+65h], 0
cmovz eax, edx
mov rcx, [r14+18h]
mov [rcx], al
mov qword ptr [r14+40h], 1
jmp loc_27502
loc_27301:
mov rax, [r14+10h]; jumptable 00000000000271F5 case 3
mov [rax], bl
mov rax, [r14+10h]
mov [rax+1], bh
mov eax, ebx
shr eax, 10h
mov rcx, [r14+10h]
mov [rcx+2], al
movsxd rax, ebx
mov ecx, ebx
shr ecx, 18h
mov rdx, [r14+10h]
mov [rdx+3], cl
xor ecx, ecx
mov rdx, rbx
shr rdx, 20h
setnz cl
xor edx, edx
cmp rax, rbx
setnz dl
cmp byte ptr [r14+65h], 0
cmovz ecx, edx
mov rax, [r14+18h]
mov [rax], cl
jmp loc_274C2
loc_27350:
cvtsi2ss xmm0, rbx; jumptable 00000000000271F5 case 4
test rbx, rbx
js loc_27438
movaps xmm1, xmm0
jmp loc_2744F
loc_27366:
mov rdx, [r13+38h]
mov ecx, eax
cmp rdx, rcx
cmovbe rdx, rcx
mov ebx, edx
mov r15b, 1
cmp rbx, [r14+40h]
jnb loc_274EA
test rcx, rcx
jz short loc_273AB
lea rsi, [rcx+r12]
dec rsi
neg rcx
lea rdi, [rbx+r12]
dec rdi
xor r8d, r8d
loc_2739B:
mov r9b, [rsi+r8]
mov [rdi+r8], r9b
dec r8
cmp rcx, r8
jnz short loc_2739B
loc_273AB:
sub edx, eax
mov rdi, r12
mov esi, 30h ; '0'
call _memset
loc_273BA:
xor r15d, r15d
jmp loc_274ED
loc_273C2:
cvtsi2sd xmm0, rbx
loc_273C7:
movsd [rbp+var_38], xmm0
mov rax, [r14+10h]
movsd qword ptr [rax], xmm0
movsd xmm0, [rbp+var_38]
movsd [rbp+var_40], xmm0
movsd xmm0, [rbp+var_38]
call _ceil
mov al, 1
movsd xmm1, [rbp+var_40]
ucomisd xmm1, xmm0
jnz short loc_2742D
jp short loc_2742D
movsd xmm0, [rbp+var_38]
cvttsd2si rax, xmm0
mov rcx, rax
cvttsd2si rdx, xmm0
subsd xmm0, cs:qword_3BAC8
cvttsd2si rsi, xmm0
sar rcx, 3Fh
and rsi, rcx
or rsi, rax
test r15b, r15b
cmovz rsi, rdx
cmp rsi, rbx
setnz al
loc_2742D:
mov rcx, [r14+18h]
mov [rcx], al
jmp loc_274E0
loc_27438:
mov rax, rbx
shr rax, 1
mov ecx, ebx
and ecx, 1
or rcx, rax
cvtsi2ss xmm1, rcx
addss xmm1, xmm1
loc_2744F:
test r15b, r15b
jz short loc_27457
movaps xmm0, xmm1
loc_27457:
movss dword ptr [rbp+var_38], xmm0
mov rax, [r14+10h]
movss dword ptr [rax], xmm0
movss xmm0, dword ptr [rbp+var_38]
movss dword ptr [rbp+var_40], xmm0
movss xmm0, dword ptr [rbp+var_38]
call _ceilf
mov al, 1
movss xmm1, dword ptr [rbp+var_40]
ucomiss xmm1, xmm0
jnz short loc_274BC
jp short loc_274BC
movss xmm0, dword ptr [rbp+var_38]
cvttss2si rax, xmm0
mov rcx, rax
cvttss2si rdx, xmm0
subss xmm0, cs:dword_37004
cvttss2si rsi, xmm0
sar rcx, 3Fh
and rsi, rcx
or rsi, rax
test r15b, r15b
cmovz rsi, rdx
cmp rsi, rbx
setnz al
loc_274BC:
mov rcx, [r14+18h]
mov [rcx], al
loc_274C2:
mov qword ptr [r14+40h], 4
jmp short loc_27502
loc_274CC:
cmp [r14+65h], r15b
setnz al
loc_274D3:
mov rcx, [r14+18h]
mov [rcx], al
mov rax, [r14+10h]
mov [rax], rbx
loc_274E0:
mov qword ptr [r14+40h], 8
jmp short loc_27502
loc_274EA:
mov rbx, rcx
loc_274ED:
mov rdi, r14
mov rsi, r12
mov rdx, rbx
call convert_froma_string
mov rax, [r14+18h]
add [rax], r15b
loc_27502:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_27520
lea rsp, [rbp-28h]
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_27520:
call ___stack_chk_fail
|
unsigned long long convert_from_long(
long long a1,
long long a2,
unsigned long long a3,
unsigned __int8 a4,
double a5,
double a6)
{
bool v8; // al
bool v9; // dl
long long v10; // rcx
unsigned long long v11; // rcx
char *v12; // r12
long long v13; // rdx
unsigned int v14; // eax
long long v15; // rbx
__m128d v16; // xmm1
double v17; // xmm0_8
bool v18; // al
bool v19; // al
bool v20; // dl
bool v21; // cl
bool v22; // dl
unsigned long long v23; // rdx
char v24; // r15
long long v25; // r8
double v26; // xmm0_8
bool v27; // al
long long v28; // rsi
float v29; // xmm0_4
bool v30; // al
long long v31; // rsi
double v33; // [rsp+0h] [rbp-40h] BYREF
double v34; // [rsp+8h] [rbp-38h]
unsigned long long v35; // [rsp+10h] [rbp-30h]
v35 = __readfsqword(0x28u);
switch ( *(_DWORD *)(a1 + 96) )
{
case 1:
**(_BYTE **)(a1 + 16) = a3;
v19 = a3 >= 0x100;
v20 = (char)a3 != a3;
if ( !*(_BYTE *)(a1 + 101) )
v19 = v20;
**(_BYTE **)(a1 + 24) = v19;
*(_QWORD *)(a1 + 64) = 1LL;
return __readfsqword(0x28u);
case 2:
case 0xD:
**(_WORD **)(a1 + 16) = a3;
v8 = a3 >= 0x10000;
v9 = (__int16)a3 != a3;
if ( !*(_BYTE *)(a1 + 101) )
v8 = v9;
**(_BYTE **)(a1 + 24) = v8;
*(_QWORD *)(a1 + 64) = 2LL;
return __readfsqword(0x28u);
case 3:
**(_WORD **)(a1 + 16) = a3;
*(_BYTE *)(*(_QWORD *)(a1 + 16) + 2LL) = BYTE2(a3);
*(_BYTE *)(*(_QWORD *)(a1 + 16) + 3LL) = BYTE3(a3);
v21 = HIDWORD(a3) != 0;
v22 = (int)a3 != a3;
if ( !*(_BYTE *)(a1 + 101) )
v21 = v22;
**(_BYTE **)(a1 + 24) = v21;
goto LABEL_45;
case 4:
*(float *)&a5 = (float)(int)a3;
if ( (a3 & 0x8000000000000000LL) != 0LL )
*(float *)&a6 = (float)(int)((a3 >> 1) | a3 & 1) + (float)(int)((a3 >> 1) | a3 & 1);
else
a6 = a5;
if ( a4 )
LODWORD(a5) = LODWORD(a6);
LODWORD(v34) = LODWORD(a5);
**(_DWORD **)(a1 + 16) = LODWORD(a5);
LODWORD(v33) = LODWORD(v34);
v29 = ceilf(*(float *)&v34, a6);
v30 = 1;
if ( *(float *)&v34 == v29 )
{
v31 = (unsigned int)(int)*(float *)&v34;
if ( !a4 )
v31 = (unsigned int)(int)*(float *)&v34;
v30 = v31 != a3;
}
**(_BYTE **)(a1 + 24) = v30;
LABEL_45:
*(_QWORD *)(a1 + 64) = 4LL;
return __readfsqword(0x28u);
case 5:
if ( a4 )
{
v16 = _mm_sub_pd((__m128d)_mm_unpacklo_epi32((__m128i)a3, (__m128i)xmmword_3C1B0), (__m128d)xmmword_3C1C0);
v17 = _mm_unpackhi_pd(v16, v16).m128d_f64[0] + v16.m128d_f64[0];
}
else
{
v17 = (double)(int)a3;
}
v34 = v17;
**(double **)(a1 + 16) = v17;
v33 = v34;
v26 = ceil(v34);
v27 = 1;
if ( v34 == v26 )
{
v28 = (unsigned int)(int)v34;
if ( !a4 )
v28 = (unsigned int)(int)v34;
v27 = v28 != a3;
}
**(_BYTE **)(a1 + 24) = v27;
goto LABEL_48;
case 8:
v18 = (a3 & 0x8000000000000000LL) != 0LL && *(_BYTE *)(a1 + 101) != a4;
**(_BYTE **)(a1 + 24) = v18;
**(_QWORD **)(a1 + 16) = a3;
LABEL_48:
*(_QWORD *)(a1 + 64) = 8LL;
return __readfsqword(0x28u);
default:
v10 = 22LL;
if ( *(_QWORD *)(a2 + 56) >= 0x17uLL )
v10 = *(_QWORD *)(a2 + 56);
v11 = (v10 + 15) & 0xFFFFFFFFFFFFFFF0LL;
v12 = (char *)&v33 - v11;
v13 = 10LL;
if ( !a4 )
v13 = 4294967286LL;
v14 = ma_ll2str(a3, (char *)&v33 - v11, v13) - (_DWORD)v12;
if ( (*(_BYTE *)(a2 + 100) & 0x40) == 0 )
{
v15 = v14;
LABEL_30:
v24 = 0;
goto LABEL_50;
}
v23 = *(_QWORD *)(a2 + 56);
if ( v23 <= v14 )
LODWORD(v23) = v14;
v15 = (unsigned int)v23;
v24 = 1;
if ( (unsigned long long)(unsigned int)v23 < *(_QWORD *)(a1 + 64) )
{
if ( v14 )
{
v25 = 0LL;
do
{
v12[(unsigned int)v23 - 1 + v25] = v12[v14 - 1 + v25];
--v25;
}
while ( -(long long)v14 != v25 );
}
memset(v12, 48LL, (unsigned int)v23 - v14);
goto LABEL_30;
}
v15 = v14;
LABEL_50:
convert_froma_string(a1, v12, v15);
**(_BYTE **)(a1 + 24) += v24;
return __readfsqword(0x28u);
}
}
|
convert_from_long:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R15D,ECX
MOV RBX,RDX
MOV R13,RSI
MOV R14,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV EAX,dword ptr [RDI + 0x60]
DEC EAX
CMP EAX,0xc
JA 0x00127237
LEA RCX,[0x13c0fc]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_2:
MOV RAX,qword ptr [R14 + 0x10]
MOV byte ptr [RAX],BL
MOV RAX,qword ptr [R14 + 0x10]
MOV byte ptr [RAX + 0x1],BH
XOR EAX,EAX
CMP RBX,0x10000
SETNC AL
MOVSX RCX,BX
XOR EDX,EDX
CMP RCX,RBX
SETNZ DL
CMP byte ptr [R14 + 0x65],0x0
CMOVZ EAX,EDX
MOV RCX,qword ptr [R14 + 0x18]
MOV byte ptr [RCX],AL
MOV qword ptr [R14 + 0x40],0x2
JMP 0x00127502
caseD_6:
MOV RAX,qword ptr [R13 + 0x38]
CMP RAX,0x17
MOV ECX,0x16
CMOVNC RCX,RAX
ADD RCX,0xf
AND RCX,-0x10
MOV R12,RSP
SUB R12,RCX
MOV RSP,R12
TEST R15B,R15B
MOV EAX,0xfffffff6
MOV EDX,0xa
CMOVZ EDX,EAX
MOV RDI,RBX
MOV RSI,R12
CALL 0x001356d0
SUB RAX,R12
TEST byte ptr [R13 + 0x64],0x40
JNZ 0x00127366
MOV EBX,EAX
JMP 0x001273ba
caseD_5:
TEST R15B,R15B
JZ 0x001273c2
MOVQ XMM1,RBX
PUNPCKLDQ XMM1,xmmword ptr [0x0013c1b0]
SUBPD XMM1,xmmword ptr [0x0013c1c0]
MOVAPD XMM0,XMM1
UNPCKHPD XMM0,XMM1
ADDSD XMM0,XMM1
JMP 0x001273c7
caseD_8:
TEST RBX,RBX
JS 0x001274cc
XOR EAX,EAX
JMP 0x001274d3
caseD_1:
MOV RAX,qword ptr [R14 + 0x10]
MOV byte ptr [RAX],BL
XOR EAX,EAX
CMP RBX,0x100
SETNC AL
MOVSX RCX,BL
XOR EDX,EDX
CMP RCX,RBX
SETNZ DL
CMP byte ptr [R14 + 0x65],0x0
CMOVZ EAX,EDX
MOV RCX,qword ptr [R14 + 0x18]
MOV byte ptr [RCX],AL
MOV qword ptr [R14 + 0x40],0x1
JMP 0x00127502
caseD_3:
MOV RAX,qword ptr [R14 + 0x10]
MOV byte ptr [RAX],BL
MOV RAX,qword ptr [R14 + 0x10]
MOV byte ptr [RAX + 0x1],BH
MOV EAX,EBX
SHR EAX,0x10
MOV RCX,qword ptr [R14 + 0x10]
MOV byte ptr [RCX + 0x2],AL
MOVSXD RAX,EBX
MOV ECX,EBX
SHR ECX,0x18
MOV RDX,qword ptr [R14 + 0x10]
MOV byte ptr [RDX + 0x3],CL
XOR ECX,ECX
MOV RDX,RBX
SHR RDX,0x20
SETNZ CL
XOR EDX,EDX
CMP RAX,RBX
SETNZ DL
CMP byte ptr [R14 + 0x65],0x0
CMOVZ ECX,EDX
MOV RAX,qword ptr [R14 + 0x18]
MOV byte ptr [RAX],CL
JMP 0x001274c2
caseD_4:
CVTSI2SS XMM0,RBX
TEST RBX,RBX
JS 0x00127438
MOVAPS XMM1,XMM0
JMP 0x0012744f
LAB_00127366:
MOV RDX,qword ptr [R13 + 0x38]
MOV ECX,EAX
CMP RDX,RCX
CMOVBE RDX,RCX
MOV EBX,EDX
MOV R15B,0x1
CMP RBX,qword ptr [R14 + 0x40]
JNC 0x001274ea
TEST RCX,RCX
JZ 0x001273ab
LEA RSI,[RCX + R12*0x1]
DEC RSI
NEG RCX
LEA RDI,[RBX + R12*0x1]
DEC RDI
XOR R8D,R8D
LAB_0012739b:
MOV R9B,byte ptr [RSI + R8*0x1]
MOV byte ptr [RDI + R8*0x1],R9B
DEC R8
CMP RCX,R8
JNZ 0x0012739b
LAB_001273ab:
SUB EDX,EAX
MOV RDI,R12
MOV ESI,0x30
CALL 0x00113260
LAB_001273ba:
XOR R15D,R15D
JMP 0x001274ed
LAB_001273c2:
CVTSI2SD XMM0,RBX
LAB_001273c7:
MOVSD qword ptr [RBP + -0x38],XMM0
MOV RAX,qword ptr [R14 + 0x10]
MOVSD qword ptr [RAX],XMM0
MOVSD XMM0,qword ptr [RBP + -0x38]
MOVSD qword ptr [RBP + -0x40],XMM0
MOVSD XMM0,qword ptr [RBP + -0x38]
CALL 0x001130e0
MOV AL,0x1
MOVSD XMM1,qword ptr [RBP + -0x40]
UCOMISD XMM1,XMM0
JNZ 0x0012742d
JP 0x0012742d
MOVSD XMM0,qword ptr [RBP + -0x38]
CVTTSD2SI RAX,XMM0
MOV RCX,RAX
CVTTSD2SI RDX,XMM0
SUBSD XMM0,qword ptr [0x0013bac8]
CVTTSD2SI RSI,XMM0
SAR RCX,0x3f
AND RSI,RCX
OR RSI,RAX
TEST R15B,R15B
CMOVZ RSI,RDX
CMP RSI,RBX
SETNZ AL
LAB_0012742d:
MOV RCX,qword ptr [R14 + 0x18]
MOV byte ptr [RCX],AL
JMP 0x001274e0
LAB_00127438:
MOV RAX,RBX
SHR RAX,0x1
MOV ECX,EBX
AND ECX,0x1
OR RCX,RAX
CVTSI2SS XMM1,RCX
ADDSS XMM1,XMM1
LAB_0012744f:
TEST R15B,R15B
JZ 0x00127457
MOVAPS XMM0,XMM1
LAB_00127457:
MOVSS dword ptr [RBP + -0x38],XMM0
MOV RAX,qword ptr [R14 + 0x10]
MOVSS dword ptr [RAX],XMM0
MOVSS XMM0,dword ptr [RBP + -0x38]
MOVSS dword ptr [RBP + -0x40],XMM0
MOVSS XMM0,dword ptr [RBP + -0x38]
CALL 0x00113270
MOV AL,0x1
MOVSS XMM1,dword ptr [RBP + -0x40]
UCOMISS XMM1,XMM0
JNZ 0x001274bc
JP 0x001274bc
MOVSS XMM0,dword ptr [RBP + -0x38]
CVTTSS2SI RAX,XMM0
MOV RCX,RAX
CVTTSS2SI RDX,XMM0
SUBSS XMM0,dword ptr [0x00137004]
CVTTSS2SI RSI,XMM0
SAR RCX,0x3f
AND RSI,RCX
OR RSI,RAX
TEST R15B,R15B
CMOVZ RSI,RDX
CMP RSI,RBX
SETNZ AL
LAB_001274bc:
MOV RCX,qword ptr [R14 + 0x18]
MOV byte ptr [RCX],AL
LAB_001274c2:
MOV qword ptr [R14 + 0x40],0x4
JMP 0x00127502
LAB_001274cc:
CMP byte ptr [R14 + 0x65],R15B
SETNZ AL
LAB_001274d3:
MOV RCX,qword ptr [R14 + 0x18]
MOV byte ptr [RCX],AL
MOV RAX,qword ptr [R14 + 0x10]
MOV qword ptr [RAX],RBX
LAB_001274e0:
MOV qword ptr [R14 + 0x40],0x8
JMP 0x00127502
LAB_001274ea:
MOV RBX,RCX
LAB_001274ed:
MOV RDI,R14
MOV RSI,R12
MOV RDX,RBX
CALL 0x00127525
MOV RAX,qword ptr [R14 + 0x18]
ADD byte ptr [RAX],R15B
LAB_00127502:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00127520
LEA RSP,[RBP + -0x28]
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00127520:
CALL 0x00113500
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void convert_from_long(long param_1,long param_2,ulong param_3,char param_4)
{
long lVar1;
long lVar2;
ulong uVar3;
ulong uVar4;
int8 uVar5;
ulong uVar6;
char cVar7;
int1 uVar9;
ulong uVar8;
double *__s;
long in_FS_OFFSET;
bool bVar10;
float fVar11;
double dVar12;
int1 auVar13 [16];
int8 uStack_50;
double local_48;
double local_40;
long local_38;
__s = &local_48;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
cVar7 = (char)param_3;
uVar9 = (int1)(param_3 >> 8);
switch(*(int4 *)(param_1 + 0x60)) {
case 1:
**(char **)(param_1 + 0x10) = cVar7;
bVar10 = 0xff < param_3;
if (*(char *)(param_1 + 0x65) == '\0') {
bVar10 = (long)cVar7 != param_3;
}
**(int1 **)(param_1 + 0x18) = bVar10;
*(int8 *)(param_1 + 0x40) = 1;
break;
case 2:
case 0xd:
**(char **)(param_1 + 0x10) = cVar7;
*(int1 *)(*(long *)(param_1 + 0x10) + 1) = uVar9;
bVar10 = 0xffff < param_3;
if (*(char *)(param_1 + 0x65) == '\0') {
bVar10 = (long)(short)param_3 != param_3;
}
**(int1 **)(param_1 + 0x18) = bVar10;
*(int8 *)(param_1 + 0x40) = 2;
__s = &local_48;
break;
case 3:
**(char **)(param_1 + 0x10) = cVar7;
*(int1 *)(*(long *)(param_1 + 0x10) + 1) = uVar9;
*(char *)(*(long *)(param_1 + 0x10) + 2) = (char)(param_3 >> 0x10);
*(char *)(*(long *)(param_1 + 0x10) + 3) = (char)(param_3 >> 0x18);
bVar10 = param_3 >> 0x20 != 0;
if (*(char *)(param_1 + 0x65) == '\0') {
bVar10 = (long)(int)param_3 != param_3;
}
*(bool *)*(int8 *)(param_1 + 0x18) = bVar10;
goto LAB_001274c2;
case 4:
fVar11 = (float)(long)param_3;
if (param_4 != '\0') {
fVar11 = (float)param_3;
}
local_40 = (double)CONCAT44(local_40._4_4_,fVar11);
**(float **)(param_1 + 0x10) = fVar11;
local_48 = (double)CONCAT44(local_48._4_4_,fVar11);
uStack_50 = 0x127478;
fVar11 = ceilf(fVar11);
bVar10 = true;
if ((local_48._0_4_ == fVar11) && (!NAN(local_48._0_4_) && !NAN(fVar11))) {
uVar3 = (long)(local_40._0_4_ - _DAT_00137004) & (long)local_40._0_4_ >> 0x3f |
(long)local_40._0_4_;
if (param_4 == '\0') {
uVar3 = (long)local_40._0_4_;
}
bVar10 = uVar3 != param_3;
}
**(int1 **)(param_1 + 0x18) = bVar10;
LAB_001274c2:
*(int8 *)(param_1 + 0x40) = 4;
__s = &local_48;
break;
case 5:
if (param_4 == '\0') {
local_48 = (double)(long)param_3;
}
else {
auVar13._8_4_ = (int)(param_3 >> 0x20);
auVar13._0_8_ = param_3;
auVar13._12_4_ = _UNK_0013c1b4;
local_48 = (auVar13._8_8_ - _UNK_0013c1c8) +
((double)CONCAT44(_DAT_0013c1b0,(int)param_3) - _DAT_0013c1c0);
}
**(double **)(param_1 + 0x10) = local_48;
uStack_50 = 0x1273e8;
local_40 = local_48;
dVar12 = ceil(local_48);
bVar10 = true;
if ((local_48 == dVar12) && (!NAN(local_48) && !NAN(dVar12))) {
uVar3 = (long)(local_40 - _DAT_0013bac8) & (long)local_40 >> 0x3f | (long)local_40;
if (param_4 == '\0') {
uVar3 = (long)local_40;
}
bVar10 = uVar3 != param_3;
}
**(int1 **)(param_1 + 0x18) = bVar10;
goto LAB_001274e0;
default:
uVar3 = 0x16;
if (0x16 < *(ulong *)(param_2 + 0x38)) {
uVar3 = *(ulong *)(param_2 + 0x38);
}
lVar1 = -(uVar3 + 0xf & 0xfffffffffffffff0);
__s = (double *)((long)&local_48 + lVar1);
uVar5 = 10;
if (param_4 == '\0') {
uVar5 = 0xfffffff6;
}
*(int8 *)((long)&uStack_50 + lVar1) = 0x127274;
lVar2 = ma_ll2str(param_3,__s,uVar5);
uVar3 = lVar2 - (long)__s;
if ((*(byte *)(param_2 + 100) & 0x40) == 0) {
uVar4 = uVar3 & 0xffffffff;
LAB_001273ba:
cVar7 = '\0';
}
else {
uVar4 = uVar3 & 0xffffffff;
uVar6 = *(ulong *)(param_2 + 0x38);
if (*(ulong *)(param_2 + 0x38) <= uVar4) {
uVar6 = uVar4;
}
uVar8 = uVar6 & 0xffffffff;
cVar7 = '\x01';
if (uVar8 < *(ulong *)(param_1 + 0x40)) {
if (uVar4 != 0) {
lVar2 = 0;
do {
*(int1 *)((long)__s + lVar2 + (uVar8 - 1)) =
*(int1 *)((long)__s + lVar2 + (uVar4 - 1));
lVar2 = lVar2 + -1;
} while (-lVar2 != uVar4);
}
*(int8 *)((long)&uStack_50 + lVar1) = 0x1273ba;
memset(__s,0x30,(ulong)(uint)((int)uVar6 - (int)uVar3));
uVar4 = uVar8;
goto LAB_001273ba;
}
}
*(int8 *)((long)&uStack_50 + lVar1) = 0x1274fb;
convert_froma_string(param_1,__s,uVar4);
**(char **)(param_1 + 0x18) = **(char **)(param_1 + 0x18) + cVar7;
break;
case 8:
if ((long)param_3 < 0) {
bVar10 = *(char *)(param_1 + 0x65) != param_4;
}
else {
bVar10 = false;
}
**(int1 **)(param_1 + 0x18) = bVar10;
**(ulong **)(param_1 + 0x10) = param_3;
LAB_001274e0:
*(int8 *)(param_1 + 0x40) = 8;
__s = &local_48;
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return;
}
/* WARNING: Subroutine does not return */
*(code **)((long)__s + -8) = convert_froma_string;
__stack_chk_fail();
}
|
|
16,237
|
my_like_range_win1250ch
|
eloqsql/strings/ctype-win1250ch.c
|
static my_bool
my_like_range_win1250ch(CHARSET_INFO *cs __attribute__((unused)),
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)
{
int only_min_found= 1;
const char *end = ptr + ptr_length;
char *min_org = min_str;
char *min_end = min_str + res_length;
/* return 1; */
for (; ptr != end && min_str != min_end ; ptr++)
{
if (*ptr == escape && ptr+1 != end)
ptr++; /* Skip escape */
else if (*ptr == w_one || *ptr == w_many) /* '_' or '%' in SQL */
break;
*min_str= like_range_prefix_min_win1250ch[(uint) (uchar) (*ptr)];
if (*min_str != min_sort_char)
only_min_found= 0;
min_str++;
*max_str++= like_range_prefix_max_win1250ch[(uint) (uchar) (*ptr)];
}
if (cs->state & MY_CS_BINSORT)
*min_length= (size_t) (min_str - min_org);
else
{
/* 'a\0\0... is the smallest possible string */
*min_length= res_length;
}
/* a\ff\ff... is the biggest possible string */
*max_length= res_length;
while (min_str != min_end)
{
*min_str++ = min_sort_char;
*max_str++ = max_sort_char;
}
return (only_min_found);
}
|
O3
|
c
|
my_like_range_win1250ch:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %r9d, -0x2c(%rbp)
movl %r8d, -0x30(%rbp)
movq %rdi, -0x38(%rbp)
movq 0x20(%rbp), %r10
movq 0x18(%rbp), %r13
movq 0x10(%rbp), %r8
leaq (%r8,%r13), %r11
testq %rdx, %rdx
sete %al
testq %r8, %r8
sete %dil
orb %al, %dil
movb $0x1, %al
jne 0xdb90e
addq %rsi, %rdx
leaq -0x1(%r8), %rbx
movb $0x1, %al
leaq 0x28bb49(%rip), %r12 # 0x3673e0
leaq 0x28bc42(%rip), %rdi # 0x3674e0
movb (%rsi), %r14b
cmpb %cl, %r14b
setne %r9b
leaq 0x1(%rsi), %r15
cmpq %rdx, %r15
sete %r8b
orb %r9b, %r8b
cmpb $0x1, %r8b
jne 0xdb8cb
cmpb -0x30(%rbp), %r14b
je 0xdb90e
movq %rsi, %r15
cmpb -0x2c(%rbp), %r14b
je 0xdb90e
movzbl (%r15), %esi
cmpq $0x20, %rsi
movb (%rsi,%r12), %sil
movb %sil, (%r13)
movzbl %al, %eax
movl $0x0, %esi
cmovnel %esi, %eax
incq %r13
movzbl (%r15), %esi
movb (%rsi,%rdi), %sil
movb %sil, (%r10)
incq %r10
movq %r15, %rsi
incq %rsi
cmpq %rdx, %rsi
je 0xdb90e
leaq -0x1(%rbx), %r8
testq %rbx, %rbx
movq %r8, %rbx
jne 0xdb89e
movq %r13, %rcx
subq 0x18(%rbp), %rcx
movq -0x38(%rbp), %rdx
testb $0x10, 0xc(%rdx)
movq 0x10(%rbp), %rsi
cmoveq %rsi, %rcx
movq 0x28(%rbp), %rdx
movq %rcx, (%rdx)
movq 0x30(%rbp), %rcx
movq %rsi, (%rcx)
cmpq %r11, %r13
je 0xdb949
movb $0x20, (%r13)
incq %r13
movb $-0x1, (%r10)
incq %r10
jmp 0xdb933
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
my_like_range_win1250ch:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
mov [rbp+var_2C], r9d
mov [rbp+var_30], r8d
mov [rbp+var_38], rdi
mov r10, [rbp+arg_10]
mov r13, [rbp+arg_8]
mov r8, [rbp+arg_0]
lea r11, [r8+r13]
test rdx, rdx
setz al
test r8, r8
setz dil
or dil, al
mov al, 1
jnz loc_DB90E
add rdx, rsi
lea rbx, [r8-1]
mov al, 1
lea r12, like_range_prefix_min_win1250ch
lea rdi, like_range_prefix_max_win1250ch
loc_DB89E:
mov r14b, [rsi]
cmp r14b, cl
setnz r9b
lea r15, [rsi+1]
cmp r15, rdx
setz r8b
or r8b, r9b
cmp r8b, 1
jnz short loc_DB8CB
cmp r14b, byte ptr [rbp+var_30]
jz short loc_DB90E
mov r15, rsi
cmp r14b, byte ptr [rbp+var_2C]
jz short loc_DB90E
loc_DB8CB:
movzx esi, byte ptr [r15]
cmp rsi, 20h ; ' '
mov sil, [rsi+r12]
mov [r13+0], sil
movzx eax, al
mov esi, 0
cmovnz eax, esi
inc r13
movzx esi, byte ptr [r15]
mov sil, [rsi+rdi]
mov [r10], sil
inc r10
mov rsi, r15
inc rsi
cmp rsi, rdx
jz short loc_DB90E
lea r8, [rbx-1]
test rbx, rbx
mov rbx, r8
jnz short loc_DB89E
loc_DB90E:
mov rcx, r13
sub rcx, [rbp+arg_8]
mov rdx, [rbp+var_38]
test byte ptr [rdx+0Ch], 10h
mov rsi, [rbp+arg_0]
cmovz rcx, rsi
mov rdx, [rbp+arg_18]
mov [rdx], rcx
mov rcx, [rbp+arg_20]
mov [rcx], rsi
loc_DB933:
cmp r13, r11
jz short loc_DB949
mov byte ptr [r13+0], 20h ; ' '
inc r13
mov byte ptr [r10], 0FFh
inc r10
jmp short loc_DB933
loc_DB949:
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
char my_like_range_win1250ch(
long long a1,
unsigned __int8 *a2,
long long a3,
unsigned __int8 a4,
char a5,
char a6,
long long a7,
long long a8,
_BYTE *a9,
long long *a10,
_QWORD *a11)
{
_BYTE *v12; // r13
char result; // al
unsigned __int8 *v14; // rdx
long long v15; // rbx
unsigned __int8 v16; // r14
unsigned __int8 *v17; // r15
long long v18; // rsi
long long v20; // rcx
v12 = (_BYTE *)a8;
result = 1;
if ( a3 != 0 && a7 != 0 )
{
v14 = &a2[a3];
v15 = a7 - 1;
result = 1;
do
{
v16 = *a2;
v17 = a2 + 1;
if ( *a2 != a4 || a2 + 1 == v14 )
{
if ( v16 == a5 )
break;
v17 = a2;
if ( v16 == a6 )
break;
}
v18 = *v17;
*v12 = like_range_prefix_min_win1250ch[v18];
if ( v18 != 32 )
result = 0;
++v12;
*a9++ = like_range_prefix_max_win1250ch[*v17];
a2 = v17 + 1;
if ( v17 + 1 == v14 )
break;
}
while ( v15-- != 0 );
}
v20 = (long long)&v12[-a8];
if ( (*(_BYTE *)(a1 + 12) & 0x10) == 0 )
v20 = a7;
*a10 = v20;
*a11 = a7;
while ( v12 != (_BYTE *)(a7 + a8) )
{
*v12++ = 32;
*a9++ = -1;
}
return result;
}
|
my_like_range_win1250ch:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV dword ptr [RBP + -0x2c],R9D
MOV dword ptr [RBP + -0x30],R8D
MOV qword ptr [RBP + -0x38],RDI
MOV R10,qword ptr [RBP + 0x20]
MOV R13,qword ptr [RBP + 0x18]
MOV R8,qword ptr [RBP + 0x10]
LEA R11,[R8 + R13*0x1]
TEST RDX,RDX
SETZ AL
TEST R8,R8
SETZ DIL
OR DIL,AL
MOV AL,0x1
JNZ 0x001db90e
ADD RDX,RSI
LEA RBX,[R8 + -0x1]
MOV AL,0x1
LEA R12,[0x4673e0]
LEA RDI,[0x4674e0]
LAB_001db89e:
MOV R14B,byte ptr [RSI]
CMP R14B,CL
SETNZ R9B
LEA R15,[RSI + 0x1]
CMP R15,RDX
SETZ R8B
OR R8B,R9B
CMP R8B,0x1
JNZ 0x001db8cb
CMP R14B,byte ptr [RBP + -0x30]
JZ 0x001db90e
MOV R15,RSI
CMP R14B,byte ptr [RBP + -0x2c]
JZ 0x001db90e
LAB_001db8cb:
MOVZX ESI,byte ptr [R15]
CMP RSI,0x20
MOV SIL,byte ptr [RSI + R12*0x1]
MOV byte ptr [R13],SIL
MOVZX EAX,AL
MOV ESI,0x0
CMOVNZ EAX,ESI
INC R13
MOVZX ESI,byte ptr [R15]
MOV SIL,byte ptr [RSI + RDI*0x1]
MOV byte ptr [R10],SIL
INC R10
MOV RSI,R15
INC RSI
CMP RSI,RDX
JZ 0x001db90e
LEA R8,[RBX + -0x1]
TEST RBX,RBX
MOV RBX,R8
JNZ 0x001db89e
LAB_001db90e:
MOV RCX,R13
SUB RCX,qword ptr [RBP + 0x18]
MOV RDX,qword ptr [RBP + -0x38]
TEST byte ptr [RDX + 0xc],0x10
MOV RSI,qword ptr [RBP + 0x10]
CMOVZ RCX,RSI
MOV RDX,qword ptr [RBP + 0x28]
MOV qword ptr [RDX],RCX
MOV RCX,qword ptr [RBP + 0x30]
MOV qword ptr [RCX],RSI
LAB_001db933:
CMP R13,R11
JZ 0x001db949
MOV byte ptr [R13],0x20
INC R13
MOV byte ptr [R10],0xff
INC R10
JMP 0x001db933
LAB_001db949:
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8
my_like_range_win1250ch
(long param_1,byte *param_2,long param_3,byte param_4,byte param_5,byte param_6,
long param_7,int1 *param_8,int1 *param_9,long *param_10,long *param_11)
{
byte bVar1;
int8 uVar2;
byte *pbVar3;
long lVar4;
int1 *puVar5;
byte *pbVar6;
uVar2 = 1;
puVar5 = param_8;
if (param_7 != 0 && param_3 != 0) {
pbVar3 = param_2 + param_3;
uVar2 = 1;
lVar4 = param_7;
while( true ) {
lVar4 = lVar4 + -1;
bVar1 = *param_2;
pbVar6 = param_2 + 1;
if ((param_2 + 1 == pbVar3 || bVar1 != param_4) &&
((bVar1 == param_5 || (pbVar6 = param_2, bVar1 == param_6)))) break;
bVar1 = *pbVar6;
*puVar5 = like_range_prefix_min_win1250ch[bVar1];
if ((ulong)bVar1 != 0x20) {
uVar2 = 0;
}
puVar5 = puVar5 + 1;
*param_9 = like_range_prefix_max_win1250ch[*pbVar6];
param_9 = param_9 + 1;
param_2 = pbVar6 + 1;
if ((param_2 == pbVar3) || (lVar4 == 0)) break;
}
}
lVar4 = (long)puVar5 - (long)param_8;
if ((*(byte *)(param_1 + 0xc) & 0x10) == 0) {
lVar4 = param_7;
}
*param_10 = lVar4;
*param_11 = param_7;
for (; puVar5 != param_8 + param_7; puVar5 = puVar5 + 1) {
*puVar5 = 0x20;
*param_9 = 0xff;
param_9 = param_9 + 1;
}
return uVar2;
}
|
|
16,238
|
create_reverse_sorted_array
|
davidesantangelo[P]vsort/tests/test_basic.c
|
static int *create_reverse_sorted_array(int n)
{
int *arr = (int *)malloc(n * sizeof(int));
if (!arr)
return NULL;
for (int i = 0; i < n; i++)
{
arr[i] = n - i - 1;
}
return arr;
}
|
O0
|
c
|
create_reverse_sorted_array:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0xc(%rbp)
movslq -0xc(%rbp), %rdi
shlq $0x2, %rdi
callq 0x1130
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x17ad
movq $0x0, -0x8(%rbp)
jmp 0x17e3
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x17db
movl -0xc(%rbp), %edx
subl -0x1c(%rbp), %edx
subl $0x1, %edx
movq -0x18(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x17b4
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
|
create_reverse_sorted_array:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_C], edi
movsxd rdi, [rbp+var_C]
shl rdi, 2
call _malloc
mov [rbp+var_18], rax
cmp [rbp+var_18], 0
jnz short loc_17AD
mov [rbp+var_8], 0
jmp short loc_17E3
loc_17AD:
mov [rbp+var_1C], 0
loc_17B4:
mov eax, [rbp+var_1C]
cmp eax, [rbp+var_C]
jge short loc_17DB
mov edx, [rbp+var_C]
sub edx, [rbp+var_1C]
sub edx, 1
mov rax, [rbp+var_18]
movsxd rcx, [rbp+var_1C]
mov [rax+rcx*4], edx
mov eax, [rbp+var_1C]
add eax, 1
mov [rbp+var_1C], eax
jmp short loc_17B4
loc_17DB:
mov rax, [rbp+var_18]
mov [rbp+var_8], rax
loc_17E3:
mov rax, [rbp+var_8]
add rsp, 20h
pop rbp
retn
|
long long create_reverse_sorted_array(int a1)
{
int i; // [rsp+4h] [rbp-1Ch]
long long v3; // [rsp+8h] [rbp-18h]
v3 = malloc(4LL * a1);
if ( !v3 )
return 0LL;
for ( i = 0; i < a1; ++i )
*(_DWORD *)(v3 + 4LL * i) = a1 - i - 1;
return v3;
}
|
create_reverse_sorted_array:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0xc],EDI
MOVSXD RDI,dword ptr [RBP + -0xc]
SHL RDI,0x2
CALL 0x00101130
MOV qword ptr [RBP + -0x18],RAX
CMP qword ptr [RBP + -0x18],0x0
JNZ 0x001017ad
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001017e3
LAB_001017ad:
MOV dword ptr [RBP + -0x1c],0x0
LAB_001017b4:
MOV EAX,dword ptr [RBP + -0x1c]
CMP EAX,dword ptr [RBP + -0xc]
JGE 0x001017db
MOV EDX,dword ptr [RBP + -0xc]
SUB EDX,dword ptr [RBP + -0x1c]
SUB EDX,0x1
MOV RAX,qword ptr [RBP + -0x18]
MOVSXD RCX,dword ptr [RBP + -0x1c]
MOV dword ptr [RAX + RCX*0x4],EDX
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x001017b4
LAB_001017db:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x8],RAX
LAB_001017e3:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x20
POP RBP
RET
|
void * create_reverse_sorted_array(int param_1)
{
int4 local_24;
int8 local_10;
local_10 = malloc((long)param_1 << 2);
if (local_10 == (void *)0x0) {
local_10 = (void *)0x0;
}
else {
for (local_24 = 0; local_24 < param_1; local_24 = local_24 + 1) {
*(int *)((long)local_10 + (long)local_24 * 4) = (param_1 - local_24) + -1;
}
}
return local_10;
}
|
|
16,239
|
ma_tls_set_error
|
eloqsql/libmariadb/libmariadb/secure/openssl.c
|
static void ma_tls_set_error(MYSQL *mysql)
{
ulong ssl_errno= ERR_get_error();
char ssl_error[MAX_SSL_ERR_LEN];
const char *ssl_error_reason;
MARIADB_PVIO *pvio= mysql->net.pvio;
int save_errno= errno;
if (ssl_errno && (ssl_error_reason= ERR_reason_error_string(ssl_errno)))
{
pvio->set_error(mysql, CR_SSL_CONNECTION_ERROR, SQLSTATE_UNKNOWN,
0, ssl_error_reason);
return;
}
strerror_r(save_errno, ssl_error, MAX_SSL_ERR_LEN);
pvio->set_error(mysql, CR_SSL_CONNECTION_ERROR, SQLSTATE_UNKNOWN, "TLS/SSL error: %s (%d)",
ssl_error, save_errno);
return;
}
|
O0
|
c
|
ma_tls_set_error:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x78(%rbp)
callq 0x135a0
movq %rax, -0x80(%rbp)
movq -0x78(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x90(%rbp)
callq 0x13050
movl (%rax), %eax
movl %eax, -0x94(%rbp)
cmpq $0x0, -0x80(%rbp)
je 0x3734d
movq -0x80(%rbp), %rdi
callq 0x137e0
movq %rax, -0x88(%rbp)
cmpq $0x0, %rax
je 0x3734d
movq -0x90(%rbp), %rax
movq 0x50(%rax), %r9
movq -0x78(%rbp), %rdi
leaq 0x28bdd(%rip), %rax # 0x5ff10
movq (%rax), %rdx
movq -0x88(%rbp), %r8
movl $0x7ea, %esi # imm = 0x7EA
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq *%r9
jmp 0x37396
movl -0x94(%rbp), %edi
leaq -0x70(%rbp), %rsi
movl $0x64, %edx
callq 0x131d0
movq -0x90(%rbp), %rax
movq 0x50(%rax), %r10
movq -0x78(%rbp), %rdi
leaq 0x28b99(%rip), %rax # 0x5ff10
movq (%rax), %rdx
leaq -0x70(%rbp), %r8
movl -0x94(%rbp), %r9d
movl $0x7ea, %esi # imm = 0x7EA
leaq 0x14d90(%rip), %rcx # 0x4c121
movb $0x0, %al
callq *%r10
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x373b1
addq $0xa0, %rsp
popq %rbp
retq
callq 0x134b0
nopw %cs:(%rax,%rax)
|
ma_tls_set_error:
push rbp
mov rbp, rsp
sub rsp, 0A0h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_78], rdi
call _ERR_get_error
mov [rbp+var_80], rax
mov rax, [rbp+var_78]
mov rax, [rax]
mov [rbp+var_90], rax
call ___errno_location
mov eax, [rax]
mov [rbp+var_94], eax
cmp [rbp+var_80], 0
jz short loc_3734D
mov rdi, [rbp+var_80]
call _ERR_reason_error_string
mov [rbp+var_88], rax
cmp rax, 0
jz short loc_3734D
mov rax, [rbp+var_90]
mov r9, [rax+50h]
mov rdi, [rbp+var_78]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
mov r8, [rbp+var_88]
mov esi, 7EAh
xor eax, eax
mov ecx, eax
mov al, 0
call r9
jmp short loc_37396
loc_3734D:
mov edi, [rbp+var_94]
lea rsi, [rbp+var_70]
mov edx, 64h ; 'd'
call ___xpg_strerror_r
mov rax, [rbp+var_90]
mov r10, [rax+50h]
mov rdi, [rbp+var_78]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
lea r8, [rbp+var_70]
mov r9d, [rbp+var_94]
mov esi, 7EAh
lea rcx, aTlsSslErrorSD; "TLS/SSL error: %s (%d)"
mov al, 0
call r10
loc_37396:
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_373B1
add rsp, 0A0h
pop rbp
retn
loc_373B1:
call ___stack_chk_fail
|
unsigned long long ma_tls_set_error(long long *a1)
{
unsigned int v2; // [rsp+Ch] [rbp-94h]
long long v3; // [rsp+10h] [rbp-90h]
long long v4; // [rsp+18h] [rbp-88h]
long long error; // [rsp+20h] [rbp-80h]
char v6[104]; // [rsp+30h] [rbp-70h] BYREF
unsigned long long v7; // [rsp+98h] [rbp-8h]
v7 = __readfsqword(0x28u);
error = ERR_get_error();
v3 = *a1;
v2 = *(_DWORD *)__errno_location();
if ( error && (v4 = ERR_reason_error_string(error)) != 0 )
{
(*(void ( **)(long long *, long long, char *, _QWORD, long long))(v3 + 80))(
a1,
2026LL,
SQLSTATE_UNKNOWN,
0LL,
v4);
}
else
{
__xpg_strerror_r(v2, v6, 100LL);
(*(void (**)(long long *, long long, char *, const char *, ...))(v3 + 80))(
a1,
2026LL,
SQLSTATE_UNKNOWN,
"TLS/SSL error: %s (%d)",
v6,
v2);
}
return __readfsqword(0x28u);
}
|
ma_tls_set_error:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xa0
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x78],RDI
CALL 0x001135a0
MOV qword ptr [RBP + -0x80],RAX
MOV RAX,qword ptr [RBP + -0x78]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x90],RAX
CALL 0x00113050
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x94],EAX
CMP qword ptr [RBP + -0x80],0x0
JZ 0x0013734d
MOV RDI,qword ptr [RBP + -0x80]
CALL 0x001137e0
MOV qword ptr [RBP + -0x88],RAX
CMP RAX,0x0
JZ 0x0013734d
MOV RAX,qword ptr [RBP + -0x90]
MOV R9,qword ptr [RAX + 0x50]
MOV RDI,qword ptr [RBP + -0x78]
LEA RAX,[0x15ff10]
MOV RDX,qword ptr [RAX]
MOV R8,qword ptr [RBP + -0x88]
MOV ESI,0x7ea
XOR EAX,EAX
MOV ECX,EAX
MOV AL,0x0
CALL R9
JMP 0x00137396
LAB_0013734d:
MOV EDI,dword ptr [RBP + -0x94]
LEA RSI,[RBP + -0x70]
MOV EDX,0x64
CALL 0x001131d0
MOV RAX,qword ptr [RBP + -0x90]
MOV R10,qword ptr [RAX + 0x50]
MOV RDI,qword ptr [RBP + -0x78]
LEA RAX,[0x15ff10]
MOV RDX,qword ptr [RAX]
LEA R8,[RBP + -0x70]
MOV R9D,dword ptr [RBP + -0x94]
MOV ESI,0x7ea
LEA RCX,[0x14c121]
MOV AL,0x0
CALL R10
LAB_00137396:
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001373b1
ADD RSP,0xa0
POP RBP
RET
LAB_001373b1:
CALL 0x001134b0
|
void ma_tls_set_error(long *param_1)
{
int iVar1;
long lVar2;
ulong e;
int *piVar3;
char *pcVar4;
long in_FS_OFFSET;
int1 local_78 [104];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
e = ERR_get_error();
lVar2 = *param_1;
piVar3 = __errno_location();
iVar1 = *piVar3;
if (e != 0) {
pcVar4 = ERR_reason_error_string(e);
if (pcVar4 != (char *)0x0) {
(**(code **)(lVar2 + 0x50))(param_1,0x7ea,SQLSTATE_UNKNOWN,0,pcVar4);
goto LAB_00137396;
}
}
__xpg_strerror_r(iVar1,local_78,100);
(**(code **)(lVar2 + 0x50))
(param_1,0x7ea,SQLSTATE_UNKNOWN,"TLS/SSL error: %s (%d)",local_78,iVar1);
LAB_00137396:
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
16,240
|
FTB_WORD_cmp_list
|
eloqsql/storage/myisam/ft_boolean_search.c
|
static int FTB_WORD_cmp_list(CHARSET_INFO *cs, FTB_WORD **a, FTB_WORD **b)
{
/* ORDER BY word, ndepth */
int i= ha_compare_text(cs, (uchar*) (*a)->word + 1, (*a)->len - 1,
(uchar*) (*b)->word + 1, (*b)->len - 1, 0);
if (!i)
i= CMP_NUM((*a)->ndepth, (*b)->ndepth);
return i;
}
|
O3
|
c
|
FTB_WORD_cmp_list:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq (%rsi), %rsi
movl 0x48(%rsi), %edx
addq $0x4e, %rsi
decl %edx
movq (%rbx), %rcx
movl 0x48(%rcx), %r8d
addq $0x4e, %rcx
decl %r8d
xorl %r9d, %r9d
callq 0xa4e34
testl %eax, %eax
jne 0x749e6
movq (%r14), %rax
movl 0x44(%rax), %eax
movq (%rbx), %rcx
xorl %edx, %edx
cmpl 0x44(%rcx), %eax
setne %dl
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
cmovael %edx, %eax
popq %rbx
popq %r14
popq %rbp
retq
|
FTB_WORD_cmp_list:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rdx
mov r14, rsi
mov rsi, [rsi]
mov edx, [rsi+48h]
add rsi, 4Eh ; 'N'
dec edx
mov rcx, [rbx]
mov r8d, [rcx+48h]
add rcx, 4Eh ; 'N'
dec r8d
xor r9d, r9d
call ha_compare_text
test eax, eax
jnz short loc_749E6
mov rax, [r14]
mov eax, [rax+44h]
mov rcx, [rbx]
xor edx, edx
cmp eax, [rcx+44h]
setnz dl
mov eax, 0FFFFFFFFh
cmovnb eax, edx
loc_749E6:
pop rbx
pop r14
pop rbp
retn
|
long long FTB_WORD_cmp_list(long long a1, long long a2, long long a3)
{
long long result; // rax
unsigned int v5; // eax
bool v6; // cf
BOOL v7; // edx
result = ha_compare_text(
a1,
*(_QWORD *)a2 + 78LL,
(unsigned int)(*(_DWORD *)(*(_QWORD *)a2 + 72LL) - 1),
*(_QWORD *)a3 + 78LL,
(unsigned int)(*(_DWORD *)(*(_QWORD *)a3 + 72LL) - 1),
0LL);
if ( !(_DWORD)result )
{
v5 = *(_DWORD *)(*(_QWORD *)a2 + 68LL);
v6 = v5 < *(_DWORD *)(*(_QWORD *)a3 + 68LL);
v7 = v5 != *(_DWORD *)(*(_QWORD *)a3 + 68LL);
result = 0xFFFFFFFFLL;
if ( !v6 )
return v7;
}
return result;
}
|
FTB_WORD_cmp_list:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RDX
MOV R14,RSI
MOV RSI,qword ptr [RSI]
MOV EDX,dword ptr [RSI + 0x48]
ADD RSI,0x4e
DEC EDX
MOV RCX,qword ptr [RBX]
MOV R8D,dword ptr [RCX + 0x48]
ADD RCX,0x4e
DEC R8D
XOR R9D,R9D
CALL 0x001a4e34
TEST EAX,EAX
JNZ 0x001749e6
MOV RAX,qword ptr [R14]
MOV EAX,dword ptr [RAX + 0x44]
MOV RCX,qword ptr [RBX]
XOR EDX,EDX
CMP EAX,dword ptr [RCX + 0x44]
SETNZ DL
MOV EAX,0xffffffff
CMOVNC EAX,EDX
LAB_001749e6:
POP RBX
POP R14
POP RBP
RET
|
ulong FTB_WORD_cmp_list(int8 param_1,long *param_2,long *param_3)
{
ulong uVar1;
uVar1 = ha_compare_text(param_1,*param_2 + 0x4e,*(int *)(*param_2 + 0x48) + -1,*param_3 + 0x4e,
*(int *)(*param_3 + 0x48) + -1,0);
if ((int)uVar1 == 0) {
uVar1 = 0xffffffff;
if (*(uint *)(*param_3 + 0x44) <= *(uint *)(*param_2 + 0x44)) {
uVar1 = (ulong)(*(uint *)(*param_2 + 0x44) != *(uint *)(*param_3 + 0x44));
}
}
return uVar1;
}
|
|
16,241
|
load_env_plugins
|
eloqsql/build_O0/libmariadb/libmariadb/ma_client_plugin.c
|
static void load_env_plugins(MYSQL *mysql)
{
char *plugs, *free_env, *s= getenv("LIBMYSQL_PLUGINS");
if (ma_check_env_str(s))
return;
free_env= strdup(s);
plugs= s= free_env;
do {
if ((s= strchr(plugs, ';')))
*s= '\0';
mysql_load_plugin(mysql, plugs, -1, 0);
plugs= s + 1;
} while (s);
free(free_env);
}
|
O0
|
c
|
load_env_plugins:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
leaq 0x88ea6(%rip), %rdi # 0x146f39
callq 0x3a7a0
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0xbe9c0
cmpb $0x0, %al
je 0xbe0ab
jmp 0xbe115
movq -0x20(%rbp), %rdi
callq 0x3a030
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movl $0x3b, %esi
callq 0x3a4e0
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
je 0xbe0e3
movq -0x20(%rbp), %rax
movb $0x0, (%rax)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
movb $0x0, %al
callq 0xbe7b0
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0xbe0c4
movq -0x18(%rbp), %rdi
callq 0x3a1a0
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
load_env_plugins:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
lea rdi, aLibmysqlPlugin; "LIBMYSQL_PLUGINS"
call _getenv
mov [rbp+var_20], rax
mov rdi, [rbp+var_20]
call ma_check_env_str
cmp al, 0
jz short loc_BE0AB
jmp short loc_BE115
loc_BE0AB:
mov rdi, [rbp+var_20]
call _strdup
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov [rbp+var_20], rax
mov [rbp+var_10], rax
loc_BE0C4:
mov rdi, [rbp+var_10]
mov esi, 3Bh ; ';'
call _strchr
mov [rbp+var_20], rax
cmp rax, 0
jz short loc_BE0E3
mov rax, [rbp+var_20]
mov byte ptr [rax], 0
loc_BE0E3:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov edx, 0FFFFFFFFh
xor ecx, ecx
mov al, 0
call mysql_load_plugin
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_10], rax
cmp [rbp+var_20], 0
jnz short loc_BE0C4
mov rdi, [rbp+var_18]
call _free
loc_BE115:
add rsp, 20h
pop rbp
retn
|
long long load_env_plugins(int a1)
{
long long result; // rax
int v2; // r8d
int v3; // r9d
long long v4; // [rsp+0h] [rbp-20h]
_BYTE *v5; // [rsp+0h] [rbp-20h]
long long v6; // [rsp+8h] [rbp-18h]
_BYTE *v7; // [rsp+10h] [rbp-10h]
v4 = getenv("LIBMYSQL_PLUGINS");
result = ma_check_env_str(v4);
if ( !(_BYTE)result )
{
v6 = strdup(v4);
v7 = (_BYTE *)v6;
do
{
v5 = (_BYTE *)strchr(v7, 59LL);
if ( v5 )
*v5 = 0;
mysql_load_plugin(a1, (_DWORD)v7, -1, 0, v2, v3);
v7 = v5 + 1;
}
while ( v5 );
return free(v6);
}
return result;
}
|
load_env_plugins:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
LEA RDI,[0x246f39]
CALL 0x0013a7a0
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001be9c0
CMP AL,0x0
JZ 0x001be0ab
JMP 0x001be115
LAB_001be0ab:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0013a030
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x20],RAX
MOV qword ptr [RBP + -0x10],RAX
LAB_001be0c4:
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x3b
CALL 0x0013a4e0
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JZ 0x001be0e3
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],0x0
LAB_001be0e3:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,0xffffffff
XOR ECX,ECX
MOV AL,0x0
CALL 0x001be7b0
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x10],RAX
CMP qword ptr [RBP + -0x20],0x0
JNZ 0x001be0c4
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x0013a1a0
LAB_001be115:
ADD RSP,0x20
POP RBP
RET
|
void load_env_plugins(int8 param_1)
{
char cVar1;
char *pcVar2;
char *pcVar3;
char *local_18;
pcVar2 = getenv("LIBMYSQL_PLUGINS");
cVar1 = ma_check_env_str(pcVar2);
if (cVar1 == '\0') {
pcVar2 = strdup(pcVar2);
local_18 = pcVar2;
do {
pcVar3 = strchr(local_18,0x3b);
if (pcVar3 != (char *)0x0) {
*pcVar3 = '\0';
}
mysql_load_plugin(param_1,local_18,0xffffffff,0);
local_18 = pcVar3 + 1;
} while (pcVar3 != (char *)0x0);
free(pcVar2);
}
return;
}
|
|
16,242
|
char const* fmt::v10::detail::parse_format_specs<char>(char const*, char const*, fmt::v10::detail::dynamic_format_specs<char>&, fmt::v10::basic_format_parse_context<char>&, fmt::v10::detail::type)::'unnamed0'::operator()(fmt::v10::presentation_type, int)
|
AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/fmt/bundled/core.h
|
FMT_CONSTEXPR auto operator()(pres pres_type, int set) -> const Char* {
if (!in(arg_type, set)) {
if (arg_type == type::none_type) return begin;
throw_format_error("invalid format specifier");
}
specs.type = pres_type;
return begin + 1;
}
|
O0
|
c
|
char const* fmt::v10::detail::parse_format_specs<char>(char const*, char const*, fmt::v10::detail::dynamic_format_specs<char>&, fmt::v10::basic_format_parse_context<char>&, fmt::v10::detail::type)::'unnamed0'::operator()(fmt::v10::presentation_type, int):
subq $0x28, %rsp
movb %sil, %al
movq %rdi, 0x18(%rsp)
movb %al, 0x17(%rsp)
movl %edx, 0x10(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movl 0x10(%rax), %edi
movl 0x10(%rsp), %esi
callq 0xe2ae0
testb $0x1, %al
jne 0xe2dd7
movq 0x8(%rsp), %rax
cmpl $0x0, 0x10(%rax)
jne 0xe2dcb
movq 0x8(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rax
movq %rax, 0x20(%rsp)
jmp 0xe2df6
leaq 0x6f72b(%rip), %rdi # 0x1524fd
callq 0xc62f0
movq 0x8(%rsp), %rax
movb 0x17(%rsp), %dl
movq 0x8(%rax), %rcx
movb %dl, 0x8(%rcx)
movq (%rax), %rax
movq (%rax), %rax
addq $0x1, %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
addq $0x28, %rsp
retq
|
_ZZN3fmt3v106detail18parse_format_specsIcEEPKT_S5_S5_RNS1_20dynamic_format_specsIS3_EERNS0_26basic_format_parse_contextIS3_EENS1_4typeEENUt0_clENS0_17presentation_typeEi:
sub rsp, 28h
mov al, sil
mov [rsp+28h+var_10], rdi
mov byte ptr [rsp+28h+var_18+7], al
mov dword ptr [rsp+28h+var_18], edx
mov rax, [rsp+28h+var_10]
mov [rsp+28h+var_20], rax
mov edi, [rax+10h]
mov esi, dword ptr [rsp+28h+var_18]; char *
call _ZN3fmt3v106detail2inENS1_4typeEi; fmt::v10::detail::in(fmt::v10::detail::type,int)
test al, 1
jnz short loc_E2DD7
mov rax, [rsp+28h+var_20]
cmp dword ptr [rax+10h], 0
jnz short loc_E2DCB
mov rax, [rsp+28h+var_20]
mov rax, [rax]
mov rax, [rax]
mov [rsp+28h+var_8], rax
jmp short loc_E2DF6
loc_E2DCB:
lea rdi, aInvalidFormatS; "invalid format specifier"
call _ZN3fmt3v106detail18throw_format_errorEPKc; fmt::v10::detail::throw_format_error(char const*)
loc_E2DD7:
mov rax, [rsp+28h+var_20]
mov dl, byte ptr [rsp+28h+var_18+7]
mov rcx, [rax+8]
mov [rcx+8], dl
mov rax, [rax]
mov rax, [rax]
add rax, 1
mov [rsp+28h+var_8], rax
loc_E2DF6:
mov rax, [rsp+28h+var_8]
add rsp, 28h
retn
|
long long fmt::v10::detail::parse_format_specs<char>(char const*,char const*,fmt::v10::detail::dynamic_format_specs<char> &,fmt::v10::basic_format_parse_context<char> &,fmt::v10::detail::type)::{unnamed type#2}::operator()(
long long a1,
char a2,
unsigned int a3)
{
const char *v3; // rsi
v3 = (const char *)a3;
if ( fmt::v10::detail::in(*(_DWORD *)(a1 + 16), a3) )
{
*(_BYTE *)(*(_QWORD *)(a1 + 8) + 8LL) = a2;
return **(_QWORD **)a1 + 1LL;
}
else
{
if ( *(_DWORD *)(a1 + 16) )
fmt::v10::detail::throw_format_error((fmt::v10::detail *)"invalid format specifier", v3);
return **(_QWORD **)a1;
}
}
|
operator():
SUB RSP,0x28
MOV AL,SIL
MOV qword ptr [RSP + 0x18],RDI
MOV byte ptr [RSP + 0x17],AL
MOV dword ptr [RSP + 0x10],EDX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x8],RAX
MOV EDI,dword ptr [RAX + 0x10]
MOV ESI,dword ptr [RSP + 0x10]
CALL 0x001e2ae0
TEST AL,0x1
JNZ 0x001e2dd7
MOV RAX,qword ptr [RSP + 0x8]
CMP dword ptr [RAX + 0x10],0x0
JNZ 0x001e2dcb
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x20],RAX
JMP 0x001e2df6
LAB_001e2dcb:
LEA RDI,[0x2524fd]
CALL 0x001c62f0
LAB_001e2dd7:
MOV RAX,qword ptr [RSP + 0x8]
MOV DL,byte ptr [RSP + 0x17]
MOV RCX,qword ptr [RAX + 0x8]
MOV byte ptr [RCX + 0x8],DL
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX]
ADD RAX,0x1
MOV qword ptr [RSP + 0x20],RAX
LAB_001e2df6:
MOV RAX,qword ptr [RSP + 0x20]
ADD RSP,0x28
RET
|
/* fmt::v10::detail::parse_format_specs<char>(char const*, char const*,
fmt::v10::detail::dynamic_format_specs<char>&, fmt::v10::basic_format_parse_context<char>&,
fmt::v10::detail::type)::{unnamed type#2}::TEMPNAMEPLACEHOLDERVALUE(fmt::v10::presentation_type,
int) */
long __thiscall
fmt::v10::detail::
parse_format_specs<char>(char_const*,char_const*,fmt::v10::detail::dynamic_format_specs<char>&,fmt::v10::basic_format_parse_context<char>&,fmt::v10::detail::type)
::{unnamed_type#2}::operator()(_unnamed_type_2_ *this,int1 param_2,int4 param_3)
{
ulong uVar1;
long local_8;
uVar1 = in(*(int4 *)(this + 0x10),param_3);
if ((uVar1 & 1) == 0) {
if (*(int *)(this + 0x10) != 0) {
/* WARNING: Subroutine does not return */
throw_format_error("invalid format specifier");
}
local_8 = **(long **)this;
}
else {
*(int1 *)(*(long *)(this + 8) + 8) = param_2;
local_8 = **(long **)this + 1;
}
return local_8;
}
|
|
16,243
|
my_fstat
|
eloqsql/mysys/my_lib.c
|
int my_fstat(File Filedes, MY_STAT *stat_area,
myf MyFlags __attribute__((unused)))
{
DBUG_ENTER("my_fstat");
DBUG_PRINT("my",("fd: %d MyFlags: %lu", Filedes, MyFlags));
#ifdef _WIN32
DBUG_RETURN(my_win_fstat(Filedes, stat_area));
#elif defined HAVE_valgrind
{
int s= fstat(Filedes, stat_area);
if (!s)
MSAN_STAT_WORKAROUND(stat_area);
DBUG_RETURN(s);
}
#else
DBUG_RETURN(fstat(Filedes, (struct stat *) stat_area));
#endif
}
|
O0
|
c
|
my_fstat:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
jmp 0x69d35
jmp 0x69d37
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x265e0
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nop
|
my_fstat:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
jmp short $+2
loc_69D35:
jmp short $+2
loc_69D37:
mov edi, [rbp+var_4]
mov rsi, [rbp+var_10]
call _fstat64
mov [rbp+var_1C], eax
mov eax, [rbp+var_1C]
add rsp, 20h
pop rbp
retn
|
long long my_fstat(unsigned int a1, long long a2)
{
return (unsigned int)fstat64(a1, a2);
}
|
my_fstat:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
JMP 0x00169d35
LAB_00169d35:
JMP 0x00169d37
LAB_00169d37:
MOV EDI,dword ptr [RBP + -0x4]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x001265e0
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x1c]
ADD RSP,0x20
POP RBP
RET
|
int my_fstat(int param_1,stat64 *param_2)
{
int iVar1;
iVar1 = fstat64(param_1,param_2);
return iVar1;
}
|
|
16,244
|
minja::VariableExpr::~VariableExpr()
|
monkey531[P]llama/common/minja.hpp
|
VariableExpr(const Location & location, const std::string& n)
: Expression(location), name(n) {}
|
O1
|
cpp
|
minja::VariableExpr::~VariableExpr():
pushq %rbx
movq %rdi, %rbx
leaq 0x95749(%rip), %rax # 0x12eda0
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x20(%rdi), %rdi
leaq 0x30(%rbx), %rax
cmpq %rax, %rdi
je 0x99676
movq (%rax), %rsi
incq %rsi
callq 0x1b8c0
leaq 0x94d1b(%rip), %rax # 0x12e398
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x99693
popq %rbx
jmp 0x6d7f6
popq %rbx
retq
nop
|
_ZN5minja12VariableExprD2Ev:
push rbx
mov rbx, rdi
lea rax, _ZTVN5minja12VariableExprE; `vtable for'minja::VariableExpr
add rax, 10h
mov [rdi], rax
mov rdi, [rdi+20h]; void *
lea rax, [rbx+30h]
cmp rdi, rax
jz short loc_99676
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_99676:
lea rax, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression
add rax, 10h
mov [rbx], rax
mov rdi, [rbx+10h]
test rdi, rdi
jz short loc_99693
pop rbx
jmp _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_99693:
pop rbx
retn
|
void minja::VariableExpr::~VariableExpr(minja::VariableExpr *this)
{
char *v2; // rdi
volatile signed __int32 *v3; // rdi
*(_QWORD *)this = &`vtable for'minja::VariableExpr + 2;
v2 = (char *)*((_QWORD *)this + 4);
if ( v2 != (char *)this + 48 )
operator delete(v2, *((_QWORD *)this + 6) + 1LL);
*(_QWORD *)this = &`vtable for'minja::Expression + 2;
v3 = (volatile signed __int32 *)*((_QWORD *)this + 2);
if ( v3 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3);
}
|
~VariableExpr:
PUSH RBX
MOV RBX,RDI
LEA RAX,[0x22eda0]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RDI,qword ptr [RDI + 0x20]
LEA RAX,[RBX + 0x30]
CMP RDI,RAX
JZ 0x00199676
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x0011b8c0
LAB_00199676:
LEA RAX,[0x22e398]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RBX + 0x10]
TEST RDI,RDI
JZ 0x00199693
POP RBX
JMP 0x0016d7f6
LAB_00199693:
POP RBX
RET
|
/* minja::VariableExpr::~VariableExpr() */
void __thiscall minja::VariableExpr::~VariableExpr(VariableExpr *this)
{
*(int ***)this = &PTR_do_evaluate_0022edb0;
if (*(VariableExpr **)(this + 0x20) != this + 0x30) {
operator_delete(*(VariableExpr **)(this + 0x20),*(long *)(this + 0x30) + 1);
}
*(int ***)this = &PTR___cxa_pure_virtual_0022e3a8;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10));
return;
}
return;
}
|
|
16,245
|
minja::VariableExpr::~VariableExpr()
|
monkey531[P]llama/common/minja.hpp
|
VariableExpr(const Location & location, const std::string& n)
: Expression(location), name(n) {}
|
O3
|
cpp
|
minja::VariableExpr::~VariableExpr():
pushq %rbx
movq %rdi, %rbx
leaq 0x93e6b(%rip), %rax # 0x12cda0
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x20(%rdi), %rdi
leaq 0x30(%rbx), %rax
cmpq %rax, %rdi
je 0x98f54
movq (%rax), %rsi
incq %rsi
callq 0x1b8c0
leaq 0x9343d(%rip), %rax # 0x12c398
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x98f71
popq %rbx
jmp 0x6dfc6
popq %rbx
retq
nop
|
_ZN5minja12VariableExprD2Ev:
push rbx
mov rbx, rdi
lea rax, _ZTVN5minja12VariableExprE; `vtable for'minja::VariableExpr
add rax, 10h
mov [rdi], rax
mov rdi, [rdi+20h]; void *
lea rax, [rbx+30h]
cmp rdi, rax
jz short loc_98F54
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_98F54:
lea rax, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression
add rax, 10h
mov [rbx], rax
mov rdi, [rbx+10h]
test rdi, rdi
jz short loc_98F71
pop rbx
jmp _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_98F71:
pop rbx
retn
|
void minja::VariableExpr::~VariableExpr(minja::VariableExpr *this)
{
char *v2; // rdi
volatile signed __int32 *v3; // rdi
*(_QWORD *)this = &`vtable for'minja::VariableExpr + 2;
v2 = (char *)*((_QWORD *)this + 4);
if ( v2 != (char *)this + 48 )
operator delete(v2, *((_QWORD *)this + 6) + 1LL);
*(_QWORD *)this = &`vtable for'minja::Expression + 2;
v3 = (volatile signed __int32 *)*((_QWORD *)this + 2);
if ( v3 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3);
}
|
~VariableExpr:
PUSH RBX
MOV RBX,RDI
LEA RAX,[0x22cda0]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RDI,qword ptr [RDI + 0x20]
LEA RAX,[RBX + 0x30]
CMP RDI,RAX
JZ 0x00198f54
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x0011b8c0
LAB_00198f54:
LEA RAX,[0x22c398]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RBX + 0x10]
TEST RDI,RDI
JZ 0x00198f71
POP RBX
JMP 0x0016dfc6
LAB_00198f71:
POP RBX
RET
|
/* minja::VariableExpr::~VariableExpr() */
void __thiscall minja::VariableExpr::~VariableExpr(VariableExpr *this)
{
*(int ***)this = &PTR_do_evaluate_0022cdb0;
if (*(VariableExpr **)(this + 0x20) != this + 0x30) {
operator_delete(*(VariableExpr **)(this + 0x20),*(long *)(this + 0x30) + 1);
}
*(int ***)this = &PTR___cxa_pure_virtual_0022c3a8;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10));
return;
}
return;
}
|
|
16,246
|
mbedtls_sha256_ret
|
msxemulator/build_O3/_deps/pico_sdk-src/lib/mbedtls/library/sha256.c
|
int mbedtls_sha256_ret(const unsigned char *input,
size_t ilen,
unsigned char output[32],
int is224)
{
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
mbedtls_sha256_context ctx;
SHA256_VALIDATE_RET(is224 == 0 || is224 == 1);
SHA256_VALIDATE_RET(ilen == 0 || input != NULL);
SHA256_VALIDATE_RET((unsigned char *) output != NULL);
mbedtls_sha256_init(&ctx);
if ((ret = mbedtls_sha256_starts_ret(&ctx, is224)) != 0) {
goto exit;
}
if ((ret = mbedtls_sha256_update_ret(&ctx, input, ilen)) != 0) {
goto exit;
}
if ((ret = mbedtls_sha256_finish_ret(&ctx, output)) != 0) {
goto exit;
}
exit:
mbedtls_sha256_free(&ctx);
return ret;
}
|
O3
|
c
|
mbedtls_sha256_ret:
pushq %r14
pushq %rbx
subq $0x78, %rsp
movq %rdx, %rbx
movq %rsi, %rdx
movq %rdi, %rsi
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x60(%rsp)
testl %ecx, %ecx
je 0x95330
movaps 0x1bebb(%rip), %xmm0 # 0xb11e0
jne 0x95339
movaps 0x1bec2(%rip), %xmm1 # 0xb11f0
jmp 0x95340
movaps 0x1be99(%rip), %xmm0 # 0xb11d0
je 0x95327
movaps 0x1bec0(%rip), %xmm1 # 0xb1200
movq %rsp, %r14
movups %xmm0, 0x8(%r14)
movups %xmm1, 0x18(%r14)
movl %ecx, 0x68(%r14)
movq %r14, %rdi
callq 0x950a7
movq %r14, %rdi
movq %rbx, %rsi
callq 0x9515f
movl $0x6c, %esi
movq %r14, %rdi
callq 0x8db8c
xorl %eax, %eax
addq $0x78, %rsp
popq %rbx
popq %r14
retq
|
mbedtls_sha256_ret:
push r14
push rbx
sub rsp, 78h
mov rbx, rdx
mov rdx, rsi
mov rsi, rdi
xorps xmm0, xmm0
movaps [rsp+88h+var_78], xmm0
movaps [rsp+88h+var_88], xmm0
movaps [rsp+88h+var_68], xmm0
movaps [rsp+88h+var_38], xmm0
movaps [rsp+88h+var_48], xmm0
movaps [rsp+88h+var_58], xmm0
mov [rsp+88h+var_28], 0
test ecx, ecx
jz short loc_95330
movaps xmm0, cs:xmmword_B11E0
jnz short loc_95339
loc_95327:
movaps xmm1, cs:xmmword_B11F0
jmp short loc_95340
loc_95330:
movaps xmm0, cs:xmmword_B11D0
jz short loc_95327
loc_95339:
movaps xmm1, cs:xmmword_B1200
loc_95340:
mov r14, rsp
movups xmmword ptr [r14+8], xmm0
movups xmmword ptr [r14+18h], xmm1
mov [r14+68h], ecx
mov rdi, r14
call mbedtls_sha256_update_ret
mov rdi, r14
mov rsi, rbx
call mbedtls_sha256_finish_ret
mov esi, 6Ch ; 'l'
mov rdi, r14
call mbedtls_platform_zeroize
xor eax, eax
add rsp, 78h
pop rbx
pop r14
retn
|
long long mbedtls_sha256_ret(long long a1, unsigned long long a2, _BYTE *a3, int a4)
{
__int128 v5; // xmm0
__int128 v6; // xmm1
_OWORD v8[6]; // [rsp+0h] [rbp-88h] BYREF
long long v9; // [rsp+60h] [rbp-28h]
int v10; // [rsp+68h] [rbp-20h]
memset(v8, 0, sizeof(v8));
v9 = 0LL;
if ( a4 )
{
v5 = xmmword_B11E0;
v6 = xmmword_B1200;
}
else
{
v5 = xmmword_B11D0;
v6 = xmmword_B11F0;
}
*(_OWORD *)((char *)v8 + 8) = v5;
*(_OWORD *)((char *)&v8[1] + 8) = v6;
v10 = a4;
mbedtls_sha256_update_ret((int *)v8, a1, a2);
mbedtls_sha256_finish_ret((long long)v8, a3);
mbedtls_platform_zeroize((long long)v8, 108LL);
return 0LL;
}
|
mbedtls_sha256_ret:
PUSH R14
PUSH RBX
SUB RSP,0x78
MOV RBX,RDX
MOV RDX,RSI
MOV RSI,RDI
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x10],XMM0
MOVAPS xmmword ptr [RSP],XMM0
MOVAPS xmmword ptr [RSP + 0x20],XMM0
MOVAPS xmmword ptr [RSP + 0x50],XMM0
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOVAPS xmmword ptr [RSP + 0x30],XMM0
MOV qword ptr [RSP + 0x60],0x0
TEST ECX,ECX
JZ 0x00195330
MOVAPS XMM0,xmmword ptr [0x001b11e0]
JNZ 0x00195339
LAB_00195327:
MOVAPS XMM1,xmmword ptr [0x001b11f0]
JMP 0x00195340
LAB_00195330:
MOVAPS XMM0,xmmword ptr [0x001b11d0]
JZ 0x00195327
LAB_00195339:
MOVAPS XMM1,xmmword ptr [0x001b1200]
LAB_00195340:
MOV R14,RSP
MOVUPS xmmword ptr [R14 + 0x8],XMM0
MOVUPS xmmword ptr [R14 + 0x18],XMM1
MOV dword ptr [R14 + 0x68],ECX
MOV RDI,R14
CALL 0x001950a7
MOV RDI,R14
MOV RSI,RBX
CALL 0x0019515f
MOV ESI,0x6c
MOV RDI,R14
CALL 0x0018db8c
XOR EAX,EAX
ADD RSP,0x78
POP RBX
POP R14
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
int8 mbedtls_sha256_ret(int8 param_1,int8 param_2,int8 param_3,int param_4)
{
int4 uVar1;
int4 uVar2;
int4 uVar3;
int4 uVar4;
int4 uVar5;
int4 uVar6;
int4 uVar7;
int4 uVar8;
int8 local_88;
int4 uStack_80;
int4 uStack_7c;
int4 local_78;
int4 uStack_74;
int4 uStack_70;
int4 uStack_6c;
int4 local_68;
int4 uStack_64;
int8 uStack_60;
int8 local_58;
int8 uStack_50;
int8 local_48;
int8 uStack_40;
int8 local_38;
int8 uStack_30;
int8 local_28;
int local_20;
local_88 = 0;
uStack_60 = 0;
local_38 = 0;
uStack_30 = 0;
local_48 = 0;
uStack_40 = 0;
local_58 = 0;
uStack_50 = 0;
local_28 = 0;
uVar5 = _DAT_001b11f0;
uVar6 = _UNK_001b11f4;
uVar7 = _UNK_001b11f8;
uVar8 = _UNK_001b11fc;
uVar1 = _DAT_001b11d0;
uVar2 = _UNK_001b11d4;
uVar3 = _UNK_001b11d8;
uVar4 = _UNK_001b11dc;
if (param_4 != 0) {
uVar5 = _DAT_001b1200;
uVar6 = _UNK_001b1204;
uVar7 = _UNK_001b1208;
uVar8 = _UNK_001b120c;
uVar1 = _DAT_001b11e0;
uVar2 = _UNK_001b11e4;
uVar3 = _UNK_001b11e8;
uVar4 = _UNK_001b11ec;
}
_uStack_80 = CONCAT44(uVar2,uVar1);
_local_78 = CONCAT44(uVar4,uVar3);
_uStack_70 = CONCAT44(uVar6,uVar5);
_local_68 = CONCAT44(uVar8,uVar7);
local_20 = param_4;
mbedtls_sha256_update_ret(&local_88,param_1,param_2);
mbedtls_sha256_finish_ret(&local_88,param_3);
mbedtls_platform_zeroize(&local_88,0x6c);
return 0;
}
|
|
16,247
|
ha_find_null
|
eloqsql/mysys/my_compare.c
|
HA_KEYSEG *ha_find_null(HA_KEYSEG *keyseg, const uchar *a)
{
for (; (enum ha_base_keytype) keyseg->type != HA_KEYTYPE_END; keyseg++)
{
const uchar *end;
if (keyseg->null_bit)
{
if (!*a++)
return keyseg;
}
end= a+ keyseg->length;
switch ((enum ha_base_keytype) keyseg->type) {
case HA_KEYTYPE_TEXT:
case HA_KEYTYPE_BINARY:
case HA_KEYTYPE_BIT:
if (keyseg->flag & HA_SPACE_PACK)
{
int a_length;
get_key_length(a_length, a);
a += a_length;
break;
}
else
a= end;
break;
case HA_KEYTYPE_VARTEXT1:
case HA_KEYTYPE_VARTEXT2:
case HA_KEYTYPE_VARBINARY1:
case HA_KEYTYPE_VARBINARY2:
{
int a_length;
get_key_length(a_length, a);
a+= a_length;
break;
}
case HA_KEYTYPE_NUM:
if (keyseg->flag & HA_SPACE_PACK)
{
int alength= *a++;
end= a+alength;
}
a= end;
break;
case HA_KEYTYPE_INT8:
case HA_KEYTYPE_SHORT_INT:
case HA_KEYTYPE_USHORT_INT:
case HA_KEYTYPE_LONG_INT:
case HA_KEYTYPE_ULONG_INT:
case HA_KEYTYPE_INT24:
case HA_KEYTYPE_UINT24:
#ifdef HAVE_LONG_LONG
case HA_KEYTYPE_LONGLONG:
case HA_KEYTYPE_ULONGLONG:
#endif
case HA_KEYTYPE_FLOAT:
case HA_KEYTYPE_DOUBLE:
a= end;
break;
case HA_KEYTYPE_END: /* purecov: inspected */
/* keep compiler happy */
DBUG_ASSERT(0);
break;
}
}
return keyseg;
}
|
O3
|
c
|
ha_find_null:
movq %rdi, %rax
movb 0x18(%rdi), %dl
testb %dl, %dl
je 0xa021b
pushq %rbp
movq %rsp, %rbp
leaq 0x42f3e(%rip), %rcx # 0xe30dc
cmpb $0x0, 0x19(%rax)
je 0xa01ac
cmpb $0x0, (%rsi)
je 0xa021a
incq %rsi
movzbl %dl, %edx
decl %edx
cmpl $0x12, %edx
ja 0xa01f5
movzwl 0x14(%rax), %edi
addq %rsi, %rdi
movslq (%rcx,%rdx,4), %rdx
addq %rcx, %rdx
jmpq *%rdx
testb $0x1, 0x12(%rax)
je 0xa01f8
movzbl (%rsi), %edx
cmpq $0xff, %rdx
je 0xa01df
movl $0x1, %edi
jmp 0xa01ef
movzwl 0x1(%rsi), %edx
rolw $0x8, %dx
movzwl %dx, %edx
movl $0x3, %edi
addq %rdi, %rsi
addq %rdx, %rsi
movq %rsi, %rdi
movb 0x38(%rax), %dl
addq $0x20, %rax
movq %rdi, %rsi
testb %dl, %dl
jne 0xa019e
jmp 0xa021a
testb $0x1, 0x12(%rax)
je 0xa01f8
movzbl (%rsi), %edx
leaq (%rsi,%rdx), %rdi
incq %rdi
jmp 0xa01f8
popq %rbp
retq
|
ha_find_null:
mov rax, rdi
mov dl, [rdi+18h]
test dl, dl
jz locret_A021B
push rbp
mov rbp, rsp
lea rcx, jpt_A01C4
loc_A019E:
cmp byte ptr [rax+19h], 0
jz short loc_A01AC
cmp byte ptr [rsi], 0
jz short loc_A021A
inc rsi
loc_A01AC:
movzx edx, dl
dec edx; switch 19 cases
cmp edx, 12h
ja short def_A01C4; jumptable 00000000000A01C4 default case
movzx edi, word ptr [rax+14h]
add rdi, rsi
movsxd rdx, ds:(jpt_A01C4 - 0E30DCh)[rcx+rdx*4]
add rdx, rcx
jmp rdx; switch jump
loc_A01C6:
test byte ptr [rax+12h], 1; jumptable 00000000000A01C4 cases 1,2,19
jz short loc_A01F8; jumptable 00000000000A01C4 cases 3-6,8-14
loc_A01CC:
movzx edx, byte ptr [rsi]; jumptable 00000000000A01C4 cases 15-18
cmp rdx, 0FFh
jz short loc_A01DF
mov edi, 1
jmp short loc_A01EF
loc_A01DF:
movzx edx, word ptr [rsi+1]
rol dx, 8
movzx edx, dx
mov edi, 3
loc_A01EF:
add rsi, rdi
add rsi, rdx
def_A01C4:
mov rdi, rsi; jumptable 00000000000A01C4 default case
loc_A01F8:
mov dl, [rax+38h]; jumptable 00000000000A01C4 cases 3-6,8-14
add rax, 20h ; ' '
mov rsi, rdi
test dl, dl
jnz short loc_A019E
jmp short loc_A021A
loc_A0208:
test byte ptr [rax+12h], 1; jumptable 00000000000A01C4 case 7
jz short loc_A01F8; jumptable 00000000000A01C4 cases 3-6,8-14
movzx edx, byte ptr [rsi]
lea rdi, [rsi+rdx]
inc rdi
jmp short loc_A01F8; jumptable 00000000000A01C4 cases 3-6,8-14
loc_A021A:
pop rbp
locret_A021B:
retn
|
long long ha_find_null(long long a1, unsigned __int8 *a2)
{
long long result; // rax
char i; // dl
long long v4; // rdi
long long v5; // rdx
long long v6; // rdi
result = a1;
for ( i = *(_BYTE *)(a1 + 24); i; a2 = (unsigned __int8 *)v4 )
{
if ( *(_BYTE *)(result + 25) )
{
if ( !*a2 )
return result;
++a2;
}
v4 = (long long)&a2[*(unsigned __int16 *)(result + 20)];
switch ( i )
{
case 1:
case 2:
case 19:
if ( (*(_BYTE *)(result + 18) & 1) != 0 )
goto LABEL_7;
break;
case 3:
case 4:
case 5:
case 6:
case 8:
case 9:
case 10:
case 11:
case 12:
case 13:
case 14:
break;
case 7:
if ( (*(_BYTE *)(result + 18) & 1) != 0 )
v4 = (long long)&a2[*a2 + 1];
break;
case 15:
case 16:
case 17:
case 18:
LABEL_7:
v5 = *a2;
if ( v5 == 255 )
{
v5 = (unsigned __int16)__ROL2__(*(_WORD *)(a2 + 1), 8);
v6 = 3LL;
}
else
{
v6 = 1LL;
}
a2 += v5 + v6;
goto LABEL_11;
default:
LABEL_11:
v4 = (long long)a2;
break;
}
i = *(_BYTE *)(result + 56);
result += 32LL;
}
return result;
}
|
ha_find_null:
MOV RAX,RDI
MOV DL,byte ptr [RDI + 0x18]
TEST DL,DL
JZ 0x001a021b
PUSH RBP
MOV RBP,RSP
LEA RCX,[0x1e30dc]
LAB_001a019e:
CMP byte ptr [RAX + 0x19],0x0
JZ 0x001a01ac
CMP byte ptr [RSI],0x0
JZ 0x001a021a
INC RSI
LAB_001a01ac:
MOVZX EDX,DL
DEC EDX
CMP EDX,0x12
JA 0x001a01f5
MOVZX EDI,word ptr [RAX + 0x14]
ADD RDI,RSI
MOVSXD RDX,dword ptr [RCX + RDX*0x4]
ADD RDX,RCX
switchD:
JMP RDX
caseD_1:
TEST byte ptr [RAX + 0x12],0x1
JZ 0x001a01f8
caseD_f:
MOVZX EDX,byte ptr [RSI]
CMP RDX,0xff
JZ 0x001a01df
MOV EDI,0x1
JMP 0x001a01ef
LAB_001a01df:
MOVZX EDX,word ptr [RSI + 0x1]
ROL DX,0x8
MOVZX EDX,DX
MOV EDI,0x3
LAB_001a01ef:
ADD RSI,RDI
ADD RSI,RDX
LAB_001a01f5:
MOV RDI,RSI
caseD_3:
MOV DL,byte ptr [RAX + 0x38]
ADD RAX,0x20
MOV RSI,RDI
TEST DL,DL
JNZ 0x001a019e
JMP 0x001a021a
caseD_7:
TEST byte ptr [RAX + 0x12],0x1
JZ 0x001a01f8
MOVZX EDX,byte ptr [RSI]
LEA RDI,[RSI + RDX*0x1]
INC RDI
JMP 0x001a01f8
LAB_001a021a:
POP RBP
LAB_001a021b:
RET
|
void ha_find_null(long param_1,byte *param_2)
{
byte bVar1;
ulong uVar2;
byte *pbVar3;
long lVar4;
bVar1 = *(byte *)(param_1 + 0x18);
do {
if (bVar1 == 0) {
return;
}
if (*(char *)(param_1 + 0x19) != '\0') {
if (*param_2 == 0) {
return;
}
param_2 = param_2 + 1;
}
pbVar3 = param_2;
if (bVar1 - 1 < 0x13) {
pbVar3 = param_2 + *(ushort *)(param_1 + 0x14);
switch((uint)bVar1) {
case 1:
case 2:
case 0x13:
if ((*(byte *)(param_1 + 0x12) & 1) != 0) goto switchD_001a01c4_caseD_f;
break;
case 7:
if ((*(byte *)(param_1 + 0x12) & 1) != 0) {
pbVar3 = param_2 + (ulong)*param_2 + 1;
}
break;
case 0xf:
case 0x10:
case 0x11:
case 0x12:
switchD_001a01c4_caseD_f:
uVar2 = (ulong)*param_2;
if (uVar2 == 0xff) {
uVar2 = (ulong)(ushort)(*(ushort *)(param_2 + 1) << 8 | *(ushort *)(param_2 + 1) >> 8);
lVar4 = 3;
}
else {
lVar4 = 1;
}
pbVar3 = param_2 + uVar2 + lVar4;
}
}
bVar1 = *(byte *)(param_1 + 0x38);
param_1 = param_1 + 0x20;
param_2 = pbVar3;
} while( true );
}
|
|
16,248
|
my_uuid
|
eloqsql/mysys/my_uuid.c
|
void my_uuid(uchar *to)
{
ulonglong tv;
uint32 time_low;
uint16 time_mid, time_hi_and_version;
DBUG_ASSERT(my_uuid_inited);
mysql_mutex_lock(&LOCK_uuid_generator);
tv= my_interval_timer()/100 + interval_timer_offset + nanoseq;
if (likely(tv > uuid_time))
{
/*
Current time is ahead of last timestamp, as it should be.
If we "borrowed time", give it back, just as long as we
stay ahead of the previous timestamp.
*/
if (nanoseq)
{
ulong delta;
DBUG_ASSERT((tv > uuid_time) && (nanoseq > 0));
/*
-1 so we won't make tv= uuid_time for nanoseq >= (tv - uuid_time)
*/
delta= MY_MIN(nanoseq, (ulong)(tv - uuid_time -1));
tv-= delta;
nanoseq-= delta;
}
}
else
{
if (unlikely(tv == uuid_time))
{
/*
For low-res system clocks. If several requests for UUIDs
end up on the same tick, we add a nano-second to make them
different.
( current_timestamp + nanoseq * calls_in_this_period )
may end up > next_timestamp; this is OK. Nonetheless, we'll
try to unwind nanoseq when we get a chance to.
If nanoseq overflows, we'll start over with a new numberspace
(so the if() below is needed so we can avoid the ++tv and thus
match the follow-up if() if nanoseq overflows!).
*/
if (likely(++nanoseq))
++tv;
}
if (unlikely(tv <= uuid_time))
{
/*
If the admin changes the system clock (or due to Daylight
Saving Time), the system clock may be turned *back* so we
go through a period once more for which we already gave out
UUIDs. To avoid duplicate UUIDs despite potentially identical
times, we make a new random component.
We also come here if the nanoseq "borrowing" overflows.
In either case, we throw away any nanoseq borrowing since it's
irrelevant in the new numberspace.
*/
set_clock_seq();
tv= my_interval_timer()/100 + interval_timer_offset;
nanoseq= 0;
DBUG_PRINT("uuid",("making new numberspace"));
}
}
uuid_time=tv;
mysql_mutex_unlock(&LOCK_uuid_generator);
time_low= (uint32) (tv & 0xFFFFFFFF);
time_mid= (uint16) ((tv >> 32) & 0xFFFF);
time_hi_and_version= (uint16) ((tv >> 48) | UUID_VERSION);
/*
Note, that the standard does NOT specify byte ordering in
multi-byte fields. it's implementation defined (but must be
the same for all fields).
We use big-endian, so we can use memcmp() to compare UUIDs
and for straightforward UUID to string conversion.
*/
mi_int4store(to, time_low);
mi_int2store(to+4, time_mid);
mi_int2store(to+6, time_hi_and_version);
bmove(to+8, uuid_suffix, sizeof(uuid_suffix));
}
|
O3
|
c
|
my_uuid:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, 0xb62507(%rip) # 0xc0b808
jne 0xa93ec
leaq 0xb624ba(%rip), %rdi # 0xc0b7c8
callq 0x291d0
callq 0xa141c
shrq $0x2, %rax
movabsq $0x28f5c28f5c28f5c3, %r15 # imm = 0x28F5C28F5C28F5C3
mulq %r15
movq %rdx, %r14
shrq $0x2, %r14
addq 0xb62461(%rip), %r14 # 0xc0b798
movl 0xb62463(%rip), %eax # 0xc0b7a0
addq %rax, %r14
movq 0xb624c9(%rip), %rcx # 0xc0b810
cmpq %rcx, %r14
jbe 0xa93f6
testq %rax, %rax
je 0xa936d
notq %rcx
addq %r14, %rcx
cmpq %rax, %rcx
cmovaeq %rax, %rcx
subq %rcx, %r14
subl %ecx, %eax
movl %eax, 0xb62433(%rip) # 0xc0b7a0
movq %r14, 0xb6249c(%rip) # 0xc0b810
movq 0xb6248d(%rip), %rdi # 0xc0b808
testq %rdi, %rdi
jne 0xa9427
leaq 0xb6243d(%rip), %rdi # 0xc0b7c8
callq 0x291a0
movq %r14, %rax
shrq $0x20, %rax
movq %r14, %rcx
shrq $0x30, %rcx
movl %r14d, %edx
rolw $0x8, %dx
movw %dx, 0x2(%rbx)
movl %r14d, %edx
shrl $0x10, %edx
movb %dl, 0x1(%rbx)
movl %r14d, %edx
shrl $0x18, %edx
movb %dl, (%rbx)
movb %al, 0x5(%rbx)
movq %r14, %rax
shrq $0x28, %rax
movb %al, 0x4(%rbx)
movb %cl, 0x7(%rbx)
shrq $0x38, %r14
orb $0x10, %r14b
movb %r14b, 0x6(%rbx)
movq 0xb623ab(%rip), %rax # 0xc0b788
movq %rax, 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x2ff25
jmp 0xa9313
je 0xa943c
cmpq %rcx, %r14
ja 0xa936d
callq 0xa9518
callq 0xa141c
shrq $0x2, %rax
mulq %r15
movq %rdx, %r14
shrq $0x2, %r14
addq 0xb62378(%rip), %r14 # 0xc0b798
xorl %eax, %eax
jmp 0xa9367
leaq 0x2dfc22(%rip), %rax # 0x389050
movq (%rax), %rax
callq *0x160(%rax)
jmp 0xa9384
xorl %edx, %edx
incl %eax
movl %eax, 0xb6235a(%rip) # 0xc0b7a0
setne %dl
addq %rdx, %r14
jmp 0xa93f8
|
my_uuid:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rdi
cmp cs:qword_C0B808, 0
jnz loc_A93EC
lea rdi, LOCK_uuid_generator
call _pthread_mutex_lock
loc_A9313:
call my_interval_timer
shr rax, 2
mov r15, 28F5C28F5C28F5C3h
mul r15
mov r14, rdx
shr r14, 2
add r14, cs:interval_timer_offset
mov eax, cs:nanoseq
add r14, rax
mov rcx, cs:uuid_time
cmp r14, rcx
jbe loc_A93F6
test rax, rax
jz short loc_A936D
not rcx
add rcx, r14
cmp rcx, rax
cmovnb rcx, rax
sub r14, rcx
sub eax, ecx
loc_A9367:
mov cs:nanoseq, eax
loc_A936D:
mov cs:uuid_time, r14
mov rdi, cs:qword_C0B808
test rdi, rdi
jnz loc_A9427
loc_A9384:
lea rdi, LOCK_uuid_generator
call _pthread_mutex_unlock
mov rax, r14
shr rax, 20h
mov rcx, r14
shr rcx, 30h
mov edx, r14d
rol dx, 8
mov [rbx+2], dx
mov edx, r14d
shr edx, 10h
mov [rbx+1], dl
mov edx, r14d
shr edx, 18h
mov [rbx], dl
mov [rbx+5], al
mov rax, r14
shr rax, 28h
mov [rbx+4], al
mov [rbx+7], cl
shr r14, 38h
or r14b, 10h
mov [rbx+6], r14b
mov rax, cs:uuid_suffix
mov [rbx+8], rax
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_A93EC:
call my_uuid_cold_1
jmp loc_A9313
loc_A93F6:
jz short loc_A943C
loc_A93F8:
cmp r14, rcx
ja loc_A936D
call set_clock_seq
call my_interval_timer
shr rax, 2
mul r15
mov r14, rdx
shr r14, 2
add r14, cs:interval_timer_offset
xor eax, eax
jmp loc_A9367
loc_A9427:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp loc_A9384
loc_A943C:
xor edx, edx
inc eax
mov cs:nanoseq, eax
setnz dl
add r14, rdx
jmp short loc_A93F8
|
long long my_uuid(_WORD *a1)
{
_WORD *v1; // rbx
unsigned long long v2; // r14
int v3; // eax
unsigned long long v4; // r14
unsigned long long v5; // rcx
int v6; // eax
long long result; // rax
v1 = a1;
if ( qword_C0B808 )
{
my_uuid_cold_1(a1);
}
else
{
a1 = &LOCK_uuid_generator;
pthread_mutex_lock(&LOCK_uuid_generator);
}
v2 = interval_timer_offset + my_interval_timer() / 0x64uLL;
v3 = nanoseq;
v4 = (unsigned int)nanoseq + v2;
if ( v4 > uuid_time )
{
if ( !nanoseq )
goto LABEL_9;
v5 = v4 + ~uuid_time;
if ( v5 >= (unsigned int)nanoseq )
v5 = (unsigned int)nanoseq;
v4 -= v5;
v6 = nanoseq - v5;
goto LABEL_8;
}
if ( v4 == uuid_time )
{
++nanoseq;
v4 += v3 != -1;
}
if ( v4 <= uuid_time )
{
set_clock_seq(a1);
v4 = interval_timer_offset + my_interval_timer() / 0x64uLL;
v6 = 0;
LABEL_8:
nanoseq = v6;
}
LABEL_9:
uuid_time = v4;
if ( qword_C0B808 )
((void ( *)(long long))PSI_server[44])(qword_C0B808);
pthread_mutex_unlock(&LOCK_uuid_generator);
v1[1] = __ROL2__(v4, 8);
*((_BYTE *)v1 + 1) = BYTE2(v4);
*(_BYTE *)v1 = BYTE3(v4);
*((_BYTE *)v1 + 5) = BYTE4(v4);
*((_BYTE *)v1 + 4) = BYTE5(v4);
*((_BYTE *)v1 + 7) = BYTE6(v4);
*((_BYTE *)v1 + 6) = HIBYTE(v4) | 0x10;
result = uuid_suffix;
*((_QWORD *)v1 + 1) = uuid_suffix;
return result;
}
|
my_uuid:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
CMP qword ptr [0x00d0b808],0x0
JNZ 0x001a93ec
LEA RDI,[0xd0b7c8]
CALL 0x001291d0
LAB_001a9313:
CALL 0x001a141c
SHR RAX,0x2
MOV R15,0x28f5c28f5c28f5c3
MUL R15
MOV R14,RDX
SHR R14,0x2
ADD R14,qword ptr [0x00d0b798]
MOV EAX,dword ptr [0x00d0b7a0]
ADD R14,RAX
MOV RCX,qword ptr [0x00d0b810]
CMP R14,RCX
JBE 0x001a93f6
TEST RAX,RAX
JZ 0x001a936d
NOT RCX
ADD RCX,R14
CMP RCX,RAX
CMOVNC RCX,RAX
SUB R14,RCX
SUB EAX,ECX
LAB_001a9367:
MOV dword ptr [0x00d0b7a0],EAX
LAB_001a936d:
MOV qword ptr [0x00d0b810],R14
MOV RDI,qword ptr [0x00d0b808]
TEST RDI,RDI
JNZ 0x001a9427
LAB_001a9384:
LEA RDI,[0xd0b7c8]
CALL 0x001291a0
MOV RAX,R14
SHR RAX,0x20
MOV RCX,R14
SHR RCX,0x30
MOV EDX,R14D
ROL DX,0x8
MOV word ptr [RBX + 0x2],DX
MOV EDX,R14D
SHR EDX,0x10
MOV byte ptr [RBX + 0x1],DL
MOV EDX,R14D
SHR EDX,0x18
MOV byte ptr [RBX],DL
MOV byte ptr [RBX + 0x5],AL
MOV RAX,R14
SHR RAX,0x28
MOV byte ptr [RBX + 0x4],AL
MOV byte ptr [RBX + 0x7],CL
SHR R14,0x38
OR R14B,0x10
MOV byte ptr [RBX + 0x6],R14B
MOV RAX,qword ptr [0x00d0b788]
MOV qword ptr [RBX + 0x8],RAX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_001a93ec:
CALL 0x0012ff25
JMP 0x001a9313
LAB_001a93f6:
JZ 0x001a943c
LAB_001a93f8:
CMP R14,RCX
JA 0x001a936d
CALL 0x001a9518
CALL 0x001a141c
SHR RAX,0x2
MUL R15
MOV R14,RDX
SHR R14,0x2
ADD R14,qword ptr [0x00d0b798]
XOR EAX,EAX
JMP 0x001a9367
LAB_001a9427:
LEA RAX,[0x489050]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x001a9384
LAB_001a943c:
XOR EDX,EDX
INC EAX
MOV dword ptr [0x00d0b7a0],EAX
SETNZ DL
ADD R14,RDX
JMP 0x001a93f8
|
void my_uuid(int1 *param_1)
{
ulong uVar1;
ulong uVar2;
ulong uVar3;
if (LOCK_uuid_generator._64_8_ == 0) {
pthread_mutex_lock((pthread_mutex_t *)LOCK_uuid_generator);
}
else {
my_uuid_cold_1();
}
uVar1 = my_interval_timer();
uVar2 = (ulong)nanoseq;
uVar1 = uVar1 / 100 + interval_timer_offset + uVar2;
if (uuid_time < uVar1) {
if (uVar2 != 0) {
uVar3 = ~uuid_time + uVar1;
if (uVar2 <= ~uuid_time + uVar1) {
uVar3 = uVar2;
}
uVar1 = uVar1 - uVar3;
nanoseq = nanoseq - (int)uVar3;
}
}
else {
if (uVar1 == uuid_time) {
nanoseq = nanoseq + 1;
uVar1 = uVar1 + (nanoseq != 0);
}
if (uVar1 <= uuid_time) {
set_clock_seq();
uVar1 = my_interval_timer();
uVar1 = uVar1 / 100 + interval_timer_offset;
nanoseq = 0;
}
}
uuid_time = uVar1;
if (LOCK_uuid_generator._64_8_ != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock((pthread_mutex_t *)LOCK_uuid_generator);
*(ushort *)(param_1 + 2) = (ushort)uVar1 << 8 | (ushort)uVar1 >> 8;
param_1[1] = (char)(uVar1 >> 0x10);
*param_1 = (char)(uVar1 >> 0x18);
param_1[5] = (char)(uVar1 >> 0x20);
param_1[4] = (char)(uVar1 >> 0x28);
param_1[7] = (char)(uVar1 >> 0x30);
param_1[6] = (byte)(uVar1 >> 0x38) | 0x10;
*(int8 *)(param_1 + 8) = uuid_suffix;
return;
}
|
|
16,249
|
google::protobuf::Map<google::protobuf::MapKey, google::protobuf::MapValueRef>::InnerMap::iterator_base<google::protobuf::MapPair<google::protobuf::MapKey, google::protobuf::MapValueRef> const>::operator++()
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/map.h
|
iterator_base& operator++() {
if (node_->next == nullptr) {
TreeIterator tree_it;
const bool is_list = revalidate_if_necessary(&tree_it);
if (is_list) {
SearchFrom(bucket_index_ + 1);
} else {
GOOGLE_DCHECK_EQ(bucket_index_ & 1, 0u);
Tree* tree = static_cast<Tree*>(m_->table_[bucket_index_]);
if (++tree_it == tree->end()) {
SearchFrom(bucket_index_ + 2);
} else {
node_ = NodeFromTreeIterator(tree_it);
}
}
} else {
node_ = node_->next;
}
return *this;
}
|
O3
|
c
|
google::protobuf::Map<google::protobuf::MapKey, google::protobuf::MapValueRef>::InnerMap::iterator_base<google::protobuf::MapPair<google::protobuf::MapKey, google::protobuf::MapValueRef> const>::operator++():
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x38(%rax), %rax
testq %rax, %rax
je 0x9e871
movq %rax, (%rbx)
jmp 0x9e8d2
leaq 0x8(%rsp), %rsi
movq $0x0, (%rsi)
movq %rbx, %rdi
callq 0x9e8e0
testb %al, %al
je 0x9e895
movq 0x10(%rbx), %rsi
incq %rsi
movq %rbx, %rdi
jmp 0x9e8cd
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %r14
movq 0x20(%rax), %rax
movq (%rax,%r14,8), %r15
movq 0x8(%rsp), %rdi
callq 0x2cc10
movq %rax, 0x8(%rsp)
addq $0x10, %r15
cmpq %r15, %rax
je 0x9e8c3
movq 0x28(%rax), %rax
jmp 0x9e86c
addq $0x2, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9e802
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
|
_ZN6google8protobuf3MapINS0_6MapKeyENS0_11MapValueRefEE8InnerMap13iterator_baseIKNS0_7MapPairIS2_S3_EEEppEv:
push r15
push r14
push rbx
sub rsp, 10h
mov rbx, rdi
mov rax, [rdi]
mov rax, [rax+38h]
test rax, rax
jz short loc_9E871
loc_9E86C:
mov [rbx], rax
jmp short loc_9E8D2
loc_9E871:
lea rsi, [rsp+28h+var_20]
mov qword ptr [rsi], 0
mov rdi, rbx
call _ZN6google8protobuf3MapINS0_6MapKeyENS0_11MapValueRefEE8InnerMap13iterator_baseIKNS0_7MapPairIS2_S3_EEE23revalidate_if_necessaryEPSt17_Rb_tree_iteratorISt4pairIKSt17reference_wrapperIKS2_EPvEE; google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::iterator_base<google::protobuf::MapPair<google::protobuf::MapKey,google::protobuf::MapValueRef> const>::revalidate_if_necessary(std::_Rb_tree_iterator<std::pair<std::reference_wrapper<google::protobuf::MapKey const> const,void *>> *)
test al, al
jz short loc_9E895
mov rsi, [rbx+10h]
inc rsi
mov rdi, rbx
jmp short loc_9E8CD
loc_9E895:
mov rax, [rbx+8]
mov r14, [rbx+10h]
mov rax, [rax+20h]
mov r15, [rax+r14*8]
mov rdi, [rsp+28h+var_20]
call __ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base; std::_Rb_tree_increment(std::_Rb_tree_node_base *)
mov [rsp+28h+var_20], rax
add r15, 10h
cmp rax, r15
jz short loc_9E8C3
mov rax, [rax+28h]
jmp short loc_9E86C
loc_9E8C3:
add r14, 2
mov rdi, rbx
mov rsi, r14
loc_9E8CD:
call _ZN6google8protobuf3MapINS0_6MapKeyENS0_11MapValueRefEE8InnerMap13iterator_baseIKNS0_7MapPairIS2_S3_EEE10SearchFromEm; google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::iterator_base<google::protobuf::MapPair<google::protobuf::MapKey,google::protobuf::MapValueRef> const>::SearchFrom(ulong)
loc_9E8D2:
mov rax, rbx
add rsp, 10h
pop rbx
pop r14
pop r15
retn
|
unsigned long long * google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::iterator_base<google::protobuf::MapPair<google::protobuf::MapKey,google::protobuf::MapValueRef> const>::operator++(
unsigned long long *a1)
{
unsigned long long v1; // rax
unsigned long long v2; // rsi
unsigned long long v3; // r14
long long v4; // r15
long long v5; // rax
long long v7[4]; // [rsp+8h] [rbp-20h] BYREF
v1 = *(_QWORD *)(*a1 + 56);
if ( v1 )
goto LABEL_2;
v7[0] = 0LL;
if ( (unsigned __int8)google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::iterator_base<google::protobuf::MapPair<google::protobuf::MapKey,google::protobuf::MapValueRef> const>::revalidate_if_necessary(
a1,
v7) )
{
v2 = a1[2] + 1;
LABEL_8:
google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::iterator_base<google::protobuf::MapPair<google::protobuf::MapKey,google::protobuf::MapValueRef> const>::SearchFrom(
a1,
v2);
return a1;
}
v3 = a1[2];
v4 = *(_QWORD *)(*(_QWORD *)(a1[1] + 32) + 8 * v3);
v5 = std::_Rb_tree_increment(v7[0]);
v7[0] = v5;
if ( v5 == v4 + 16 )
{
v2 = v3 + 2;
goto LABEL_8;
}
v1 = *(_QWORD *)(v5 + 40);
LABEL_2:
*a1 = v1;
return a1;
}
|
operator++:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV RBX,RDI
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0x38]
TEST RAX,RAX
JZ 0x0019e871
LAB_0019e86c:
MOV qword ptr [RBX],RAX
JMP 0x0019e8d2
LAB_0019e871:
LEA RSI,[RSP + 0x8]
MOV qword ptr [RSI],0x0
MOV RDI,RBX
CALL 0x0019e8e0
TEST AL,AL
JZ 0x0019e895
MOV RSI,qword ptr [RBX + 0x10]
INC RSI
MOV RDI,RBX
JMP 0x0019e8cd
LAB_0019e895:
MOV RAX,qword ptr [RBX + 0x8]
MOV R14,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOV R15,qword ptr [RAX + R14*0x8]
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x0012cc10
MOV qword ptr [RSP + 0x8],RAX
ADD R15,0x10
CMP RAX,R15
JZ 0x0019e8c3
MOV RAX,qword ptr [RAX + 0x28]
JMP 0x0019e86c
LAB_0019e8c3:
ADD R14,0x2
MOV RDI,RBX
MOV RSI,R14
LAB_0019e8cd:
CALL 0x0019e802
LAB_0019e8d2:
MOV RAX,RBX
ADD RSP,0x10
POP RBX
POP R14
POP R15
RET
|
/* google::protobuf::Map<google::protobuf::MapKey,
google::protobuf::MapValueRef>::InnerMap::iterator_base<google::protobuf::MapPair<google::protobuf::MapKey,
google::protobuf::MapValueRef> const>::TEMPNAMEPLACEHOLDERVALUE() */
iterator_base<google::protobuf::MapPair<google::protobuf::MapKey,google::protobuf::MapValueRef>const>
* __thiscall
google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::
iterator_base<google::protobuf::MapPair<google::protobuf::MapKey,google::protobuf::MapValueRef>const>
::operator++(iterator_base<google::protobuf::MapPair<google::protobuf::MapKey,google::protobuf::MapValueRef>const>
*this)
{
long lVar1;
char cVar2;
long lVar3;
long lVar4;
ulong uVar5;
lVar3 = *(long *)(*(long *)this + 0x38);
if (lVar3 == 0) {
cVar2 = revalidate_if_necessary(this);
if (cVar2 == '\0') {
lVar3 = *(long *)(this + 0x10);
lVar1 = *(long *)(*(long *)(*(long *)(this + 8) + 0x20) + lVar3 * 8);
lVar4 = std::_Rb_tree_increment((_Rb_tree_node_base *)0x0);
if (lVar4 != lVar1 + 0x10) {
lVar3 = *(long *)(lVar4 + 0x28);
goto LAB_0019e86c;
}
uVar5 = lVar3 + 2;
}
else {
uVar5 = *(long *)(this + 0x10) + 1;
}
SearchFrom(this,uVar5);
}
else {
LAB_0019e86c:
*(long *)this = lVar3;
}
return this;
}
|
|
16,250
|
fmt::v8::detail::count_digits(unsigned int)
|
aimrt_mujoco_sim/_deps/spdlog_lib-src/include/spdlog/fmt/bundled/format.h
|
FMT_CONSTEXPR20 inline auto count_digits(uint32_t n) -> int {
#ifdef FMT_BUILTIN_CLZ
if (!is_constant_evaluated()) {
auto inc = count_digits_inc(FMT_BUILTIN_CLZ(n | 1) ^ 31);
return static_cast<int>((n + inc) >> 32);
}
#endif
return count_digits_fallback(n);
}
|
O0
|
c
|
fmt::v8::detail::count_digits(unsigned int):
movl %edi, -0x8(%rsp)
movl -0x8(%rsp), %eax
orl $0x1, %eax
bsrl %eax, %eax
xorl $0x1f, %eax
xorl $0x1f, %eax
movl %eax, -0x4(%rsp)
movslq -0x4(%rsp), %rcx
leaq 0x7992c(%rip), %rax # 0x113b50
movq (%rax,%rcx,8), %rax
movq %rax, -0x10(%rsp)
movl -0x8(%rsp), %eax
addq -0x10(%rsp), %rax
shrq $0x20, %rax
retq
nopl (%rax,%rax)
|
_ZN3fmt2v86detail12count_digitsEj:
mov [rsp+var_8], edi
mov eax, [rsp+var_8]
or eax, 1
bsr eax, eax
xor eax, 1Fh
xor eax, 1Fh
mov [rsp+var_4], eax
movsxd rcx, [rsp+var_4]
lea rax, _ZZN3fmt2v86detail16count_digits_incEiE5table; fmt::v8::detail::count_digits_inc(int)::table
mov rax, [rax+rcx*8]
mov [rsp+var_10], rax
mov eax, [rsp+var_8]
add rax, [rsp+var_10]
shr rax, 20h
retn
|
unsigned long long fmt::v8::detail::count_digits(fmt::v8::detail *this)
{
int v1; // eax
_BitScanReverse((unsigned int *)&v1, (unsigned int)this | 1);
return (fmt::v8::detail::count_digits_inc(int)::table[v1] + (unsigned long long)(unsigned int)this) >> 32;
}
|
count_digits:
MOV dword ptr [RSP + -0x8],EDI
MOV EAX,dword ptr [RSP + -0x8]
OR EAX,0x1
BSR EAX,EAX
XOR EAX,0x1f
XOR EAX,0x1f
MOV dword ptr [RSP + -0x4],EAX
MOVSXD RCX,dword ptr [RSP + -0x4]
LEA RAX,[0x213b50]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RSP + -0x10],RAX
MOV EAX,dword ptr [RSP + -0x8]
ADD RAX,qword ptr [RSP + -0x10]
SHR RAX,0x20
RET
|
/* fmt::v8::detail::count_digits(unsigned int) */
ulong fmt::v8::detail::count_digits(uint param_1)
{
int iVar1;
iVar1 = 0x1f;
if ((param_1 | 1) != 0) {
for (; (param_1 | 1) >> iVar1 == 0; iVar1 = iVar1 + -1) {
}
}
return (ulong)param_1 + *(long *)(count_digits_inc(int)::table + (long)iVar1 * 8) >> 0x20;
}
|
|
16,251
|
start_timer
|
eloqsql/unittest/mytap/tap.c
|
static ulong start_timer(void)
{
#if defined(_WIN32)
return clock();
#else
struct tms tms_tmp;
return times(&tms_tmp);
#endif
}
|
O0
|
c
|
start_timer:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
leaq -0x20(%rbp), %rdi
callq 0x10d0
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
start_timer:
push rbp
mov rbp, rsp
sub rsp, 20h
lea rdi, [rbp+var_20]
call _times
add rsp, 20h
pop rbp
retn
|
long long start_timer()
{
_BYTE v1[32]; // [rsp+0h] [rbp-20h] BYREF
return times(v1);
}
|
start_timer:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
LEA RDI,[RBP + -0x20]
CALL 0x001010d0
ADD RSP,0x20
POP RBP
RET
|
void start_timer(void)
{
tms local_28;
times(&local_28);
return;
}
|
|
16,252
|
ma_set_index_pagecache_callbacks
|
eloqsql/storage/maria/ma_open.c
|
void _ma_set_index_pagecache_callbacks(PAGECACHE_FILE *file,
MARIA_SHARE *share)
{
pagecache_file_set_null_hooks(file);
file->callback_data= (uchar*) share;
file->flush_log_callback= &maria_flush_log_for_page_none; /* Do nothing */
file->post_write_hook= maria_page_write_failure;
if (share->temporary)
{
file->post_read_hook= &maria_page_crc_check_none;
file->pre_write_hook= &maria_page_filler_set_none;
}
else
{
file->post_read_hook= &maria_page_crc_check_index;
if (share->options & HA_OPTION_PAGE_CHECKSUM)
file->pre_write_hook= &maria_page_crc_set_index;
else
file->pre_write_hook= &maria_page_filler_set_normal;
if (share->now_transactional)
file->flush_log_callback= maria_flush_log_for_page;
}
if (MY_TEST(share->base.extra_options & MA_EXTRA_OPTIONS_ENCRYPTED))
{
ma_crypt_set_index_pagecache_callbacks(file, share);
}
}
|
O3
|
c
|
ma_set_index_pagecache_callbacks:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x34a0b
movq %rbx, 0x40(%r14)
leaq -0x43a1(%rip), %rax # 0x50504
movq %rax, 0x38(%r14)
leaq -0x4412(%rip), %rax # 0x5049e
movq %rax, 0x30(%r14)
cmpb $0x0, 0x7d9(%rbx)
je 0x548d5
leaq -0x4473(%rip), %rax # 0x50451
movq %rax, 0x20(%r14)
leaq -0x4439(%rip), %rax # 0x50496
movq %rax, 0x28(%r14)
jmp 0x54912
leaq -0x44d7(%rip), %rax # 0x50405
movq %rax, 0x20(%r14)
btl $0xb, 0x720(%rbx)
jb 0x548f3
leaq -0x4495(%rip), %rax # 0x5045c
jmp 0x548fa
leaq -0x459e(%rip), %rax # 0x5035c
movq %rax, 0x28(%r14)
cmpb $0x0, 0x7e7(%rbx)
je 0x54912
leaq -0x445b(%rip), %rax # 0x504b3
movq %rax, 0x38(%r14)
testb $0x1, 0x428(%rbx)
jne 0x54920
popq %rbx
popq %r14
popq %rbp
retq
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x51129
|
_ma_set_index_pagecache_callbacks:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rsi
mov r14, rdi
call pagecache_file_set_null_hooks
mov [r14+40h], rbx
lea rax, maria_flush_log_for_page_none
mov [r14+38h], rax
lea rax, maria_page_write_failure
mov [r14+30h], rax
cmp byte ptr [rbx+7D9h], 0
jz short loc_548D5
lea rax, maria_page_crc_check_none
mov [r14+20h], rax
lea rax, maria_page_filler_set_none
mov [r14+28h], rax
jmp short loc_54912
loc_548D5:
lea rax, maria_page_crc_check_index
mov [r14+20h], rax
bt dword ptr [rbx+720h], 0Bh
jb short loc_548F3
lea rax, maria_page_filler_set_normal
jmp short loc_548FA
loc_548F3:
lea rax, maria_page_crc_set_index
loc_548FA:
mov [r14+28h], rax
cmp byte ptr [rbx+7E7h], 0
jz short loc_54912
lea rax, maria_flush_log_for_page
mov [r14+38h], rax
loc_54912:
test byte ptr [rbx+428h], 1
jnz short loc_54920
pop rbx
pop r14
pop rbp
retn
loc_54920:
mov rdi, r14
mov rsi, rbx
pop rbx
pop r14
pop rbp
jmp ma_crypt_set_index_pagecache_callbacks
|
long long ( * ma_set_index_pagecache_callbacks(_QWORD *a1, long long a2))(int a1, long long *a2)
{
long long ( *result)(int, long long *); // rax
pagecache_file_set_null_hooks((long long)a1);
a1[8] = a2;
a1[7] = maria_flush_log_for_page_none;
a1[6] = maria_page_write_failure;
if ( *(_BYTE *)(a2 + 2009) )
{
a1[4] = maria_page_crc_check_none;
result = (long long ( *)(int, long long *))maria_page_filler_set_none;
a1[5] = maria_page_filler_set_none;
}
else
{
a1[4] = maria_page_crc_check_index;
if ( _bittest((const signed __int32 *)(a2 + 1824), 0xBu) )
result = (long long ( *)(int, long long *))maria_page_crc_set_index;
else
result = (long long ( *)(int, long long *))maria_page_filler_set_normal;
a1[5] = result;
if ( *(_BYTE *)(a2 + 2023) )
{
result = (long long ( *)(int, long long *))maria_flush_log_for_page;
a1[7] = maria_flush_log_for_page;
}
}
if ( (*(_BYTE *)(a2 + 1064) & 1) != 0 )
return ma_crypt_set_index_pagecache_callbacks(a1);
return result;
}
|
_ma_set_index_pagecache_callbacks:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RSI
MOV R14,RDI
CALL 0x00134a0b
MOV qword ptr [R14 + 0x40],RBX
LEA RAX,[0x150504]
MOV qword ptr [R14 + 0x38],RAX
LEA RAX,[0x15049e]
MOV qword ptr [R14 + 0x30],RAX
CMP byte ptr [RBX + 0x7d9],0x0
JZ 0x001548d5
LEA RAX,[0x150451]
MOV qword ptr [R14 + 0x20],RAX
LEA RAX,[0x150496]
MOV qword ptr [R14 + 0x28],RAX
JMP 0x00154912
LAB_001548d5:
LEA RAX,[0x150405]
MOV qword ptr [R14 + 0x20],RAX
BT dword ptr [RBX + 0x720],0xb
JC 0x001548f3
LEA RAX,[0x15045c]
JMP 0x001548fa
LAB_001548f3:
LEA RAX,[0x15035c]
LAB_001548fa:
MOV qword ptr [R14 + 0x28],RAX
CMP byte ptr [RBX + 0x7e7],0x0
JZ 0x00154912
LEA RAX,[0x1504b3]
MOV qword ptr [R14 + 0x38],RAX
LAB_00154912:
TEST byte ptr [RBX + 0x428],0x1
JNZ 0x00154920
POP RBX
POP R14
POP RBP
RET
LAB_00154920:
MOV RDI,R14
MOV RSI,RBX
POP RBX
POP R14
POP RBP
JMP 0x00151129
|
void _ma_set_index_pagecache_callbacks(long param_1,long param_2)
{
code *pcVar1;
pagecache_file_set_null_hooks();
*(long *)(param_1 + 0x40) = param_2;
*(code **)(param_1 + 0x38) = maria_flush_log_for_page_none;
*(code **)(param_1 + 0x30) = maria_page_write_failure;
if (*(char *)(param_2 + 0x7d9) == '\0') {
*(code **)(param_1 + 0x20) = maria_page_crc_check_index;
if ((*(uint *)(param_2 + 0x720) >> 0xb & 1) == 0) {
pcVar1 = maria_page_filler_set_normal;
}
else {
pcVar1 = maria_page_crc_set_index;
}
*(code **)(param_1 + 0x28) = pcVar1;
if (*(char *)(param_2 + 0x7e7) != '\0') {
*(code **)(param_1 + 0x38) = maria_flush_log_for_page;
}
}
else {
*(code **)(param_1 + 0x20) = maria_page_crc_check_none;
*(code **)(param_1 + 0x28) = maria_page_filler_set_none;
}
if ((*(byte *)(param_2 + 0x428) & 1) == 0) {
return;
}
ma_crypt_set_index_pagecache_callbacks(param_1,param_2);
return;
}
|
|
16,253
|
lunasvg::SVGElement::getAttribute[abi:cxx11](std::basic_string_view<char, std::char_traits<char>> const&) const
|
dmazzella[P]pylunasvg/lunasvg/source/svgelement.cpp
|
const std::string& SVGElement::getAttribute(const std::string_view& name) const
{
auto id = propertyid(name);
if(id == PropertyID::Unknown)
return emptyString;
return getAttribute(id);
}
|
O1
|
cpp
|
lunasvg::SVGElement::getAttribute[abi:cxx11](std::basic_string_view<char, std::char_traits<char>> const&) const:
pushq %rbx
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x1f1ec
leaq 0x4d18b(%rip), %rdx # 0x5c380
testb %al, %al
je 0xf214
addq $0x48, %rbx
movq (%rbx), %rbx
testq %rbx, %rbx
je 0xf214
leaq 0x10(%rbx), %rsi
cmpb %al, 0xc(%rbx)
cmoveq %rsi, %rcx
jne 0xf1fd
jmp 0xf217
movq %rdx, %rcx
movq %rcx, %rax
popq %rbx
retq
|
_ZNK7lunasvg10SVGElement12getAttributeB5cxx11ERKSt17basic_string_viewIcSt11char_traitsIcEE:
push rbx
mov rbx, rdi
mov rdi, rsi
call _ZN7lunasvg10propertyidERKSt17basic_string_viewIcSt11char_traitsIcEE; lunasvg::propertyid(std::string_view const&)
lea rdx, _ZN7lunasvg11emptyStringB5cxx11E; lunasvg::emptyString
test al, al
jz short loc_F214
add rbx, 48h ; 'H'
loc_F1FD:
mov rbx, [rbx]
test rbx, rbx
jz short loc_F214
lea rsi, [rbx+10h]
cmp [rbx+0Ch], al
cmovz rcx, rsi
jnz short loc_F1FD
jmp short loc_F217
loc_F214:
mov rcx, rdx
loc_F217:
mov rax, rcx
pop rbx
retn
|
long long * lunasvg::SVGElement::getAttribute[abi:cxx11](long long a1, long long a2)
{
char v2; // al
long long *v3; // rbx
v2 = lunasvg::propertyid(a2);
if ( v2 )
{
v3 = (long long *)(a1 + 72);
while ( 1 )
{
v3 = (long long *)*v3;
if ( !v3 )
break;
if ( *((_BYTE *)v3 + 12) == v2 )
return v3 + 2;
}
}
return &lunasvg::emptyString[abi:cxx11];
}
|
getAttribute[abi:cxx11]:
PUSH RBX
MOV RBX,RDI
MOV RDI,RSI
CALL 0x0011f1ec
LEA RDX,[0x15c380]
TEST AL,AL
JZ 0x0010f214
ADD RBX,0x48
LAB_0010f1fd:
MOV RBX,qword ptr [RBX]
TEST RBX,RBX
JZ 0x0010f214
LEA RSI,[RBX + 0x10]
CMP byte ptr [RBX + 0xc],AL
CMOVZ RCX,RSI
JNZ 0x0010f1fd
JMP 0x0010f217
LAB_0010f214:
MOV RCX,RDX
LAB_0010f217:
MOV RAX,RCX
POP RBX
RET
|
/* lunasvg::SVGElement::getAttribute[abi:cxx11](std::basic_string_view<char, std::char_traits<char>
> const&) const */
SVGElement * __thiscall
lunasvg::SVGElement::getAttribute_abi_cxx11_(SVGElement *this,basic_string_view *param_1)
{
SVGElement SVar1;
SVGElement *pSVar2;
SVGElement *pSVar3;
SVar1 = (SVGElement)propertyid(param_1);
if (SVar1 == (SVGElement)0x0) {
LAB_0010f214:
pSVar2 = (SVGElement *)&emptyString_abi_cxx11_;
}
else {
pSVar3 = this + 0x48;
do {
pSVar3 = *(SVGElement **)pSVar3;
if (pSVar3 == (SVGElement *)0x0) goto LAB_0010f214;
pSVar2 = pSVar3 + 0x10;
} while (pSVar3[0xc] != SVar1);
}
return pSVar2;
}
|
|
16,254
|
inline_mysql_file_seek
|
eloqsql/include/mysql/psi/mysql_file.h
|
static inline my_off_t
inline_mysql_file_seek(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
File file, my_off_t pos, int whence, myf flags)
{
my_off_t result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_SEEK);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_wait)(locker, (size_t) 0, src_file, src_line);
result= my_seek(file, pos, whence, flags);
PSI_FILE_CALL(end_file_wait)(locker, (size_t) 0);
return result;
}
#endif
result= my_seek(file, pos, whence, flags);
return result;
}
|
O0
|
c
|
inline_mysql_file_seek:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movq %r9, -0x30(%rbp)
leaq 0x25dd98(%rip), %rax # 0x2f5a60
movq (%rax), %rax
movq 0x158(%rax), %rax
movl -0x18(%rbp), %esi
leaq -0x88(%rbp), %rdi
movl $0x8, %edx
callq *%rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x97d63
leaq 0x25dd52(%rip), %rax # 0x2f5a60
movq (%rax), %rax
movq 0x210(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rdx
movl -0x14(%rbp), %ecx
xorl %esi, %esi
callq *%rax
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movl -0x24(%rbp), %edx
movq -0x30(%rbp), %rcx
callq 0x121100
movq %rax, -0x38(%rbp)
leaq 0x25dd1b(%rip), %rax # 0x2f5a60
movq (%rax), %rax
movq 0x218(%rax), %rax
movq -0x40(%rbp), %rdi
xorl %ecx, %ecx
movl %ecx, %esi
callq *%rax
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x97d82
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movl -0x24(%rbp), %edx
movq -0x30(%rbp), %rcx
callq 0x121100
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
nop
|
inline_mysql_file_seek_4:
push rbp
mov rbp, rsp
sub rsp, 90h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_20], rcx
mov [rbp+var_24], r8d
mov [rbp+var_30], r9
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+158h]
mov esi, [rbp+var_18]
lea rdi, [rbp+var_88]
mov edx, 8
call rax
mov [rbp+var_40], rax
cmp [rbp+var_40], 0
setnz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_97D63
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+210h]
mov rdi, [rbp+var_40]
mov rdx, [rbp+var_10]
mov ecx, [rbp+var_14]
xor esi, esi
call rax
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov edx, [rbp+var_24]
mov rcx, [rbp+var_30]
call my_seek
mov [rbp+var_38], rax
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+218h]
mov rdi, [rbp+var_40]
xor ecx, ecx
mov esi, ecx
call rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
jmp short loc_97D82
loc_97D63:
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov edx, [rbp+var_24]
mov rcx, [rbp+var_30]
call my_seek
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
loc_97D82:
mov rax, [rbp+var_8]
add rsp, 90h
pop rbp
retn
|
long long inline_mysql_file_seek_4(
long long a1,
unsigned int a2,
unsigned int a3,
long long a4,
unsigned int a5,
long long a6)
{
_BYTE v7[72]; // [rsp+8h] [rbp-88h] BYREF
long long v8; // [rsp+50h] [rbp-40h]
long long v9; // [rsp+58h] [rbp-38h]
long long v10; // [rsp+60h] [rbp-30h]
unsigned int v11; // [rsp+6Ch] [rbp-24h]
long long v12; // [rsp+70h] [rbp-20h]
unsigned int v13; // [rsp+78h] [rbp-18h]
unsigned int v14; // [rsp+7Ch] [rbp-14h]
long long v15; // [rsp+80h] [rbp-10h]
v15 = a1;
v14 = a2;
v13 = a3;
v12 = a4;
v11 = a5;
v10 = a6;
v8 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v7, a3, 8LL);
if ( !v8 )
return my_seek(v13, v12, v11, v10);
((void ( *)(long long, _QWORD, long long, _QWORD))PSI_server[66])(v8, 0LL, v15, v14);
v9 = my_seek(v13, v12, v11, v10);
((void ( *)(long long, _QWORD))PSI_server[67])(v8, 0LL);
return v9;
}
|
inline_mysql_file_seek:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV qword ptr [RBP + -0x20],RCX
MOV dword ptr [RBP + -0x24],R8D
MOV qword ptr [RBP + -0x30],R9
LEA RAX,[0x3f5a60]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x158]
MOV ESI,dword ptr [RBP + -0x18]
LEA RDI,[RBP + -0x88]
MOV EDX,0x8
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 0x00197d63
LEA RAX,[0x3f5a60]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x210]
MOV RDI,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x14]
XOR ESI,ESI
CALL RAX
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV EDX,dword ptr [RBP + -0x24]
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x00221100
MOV qword ptr [RBP + -0x38],RAX
LEA RAX,[0x3f5a60]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x218]
MOV RDI,qword ptr [RBP + -0x40]
XOR ECX,ECX
MOV ESI,ECX
CALL RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00197d82
LAB_00197d63:
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV EDX,dword ptr [RBP + -0x24]
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x00221100
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
LAB_00197d82:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x90
POP RBP
RET
|
int8
inline_mysql_file_seek
(int8 param_1,int4 param_2,int4 param_3,int8 param_4,
int4 param_5,int8 param_6)
{
int1 local_90 [72];
long local_48;
int8 local_40;
int8 local_38;
int4 local_2c;
int8 local_28;
int4 local_20;
int4 local_1c;
int8 local_18;
int8 local_10;
local_38 = param_6;
local_2c = param_5;
local_28 = param_4;
local_20 = param_3;
local_1c = param_2;
local_18 = param_1;
local_48 = (**(code **)(PSI_server + 0x158))(local_90,param_3,8);
if (local_48 == 0) {
local_10 = my_seek(local_20,local_28,local_2c,local_38);
}
else {
(**(code **)(PSI_server + 0x210))(local_48,0,local_18,local_1c);
local_40 = my_seek(local_20,local_28,local_2c,local_38);
(**(code **)(PSI_server + 0x218))(local_48,0);
local_10 = local_40;
}
return local_10;
}
|
|
16,255
|
inline_mysql_file_seek
|
eloqsql/include/mysql/psi/mysql_file.h
|
static inline my_off_t
inline_mysql_file_seek(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
File file, my_off_t pos, int whence, myf flags)
{
my_off_t result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_SEEK);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_wait)(locker, (size_t) 0, src_file, src_line);
result= my_seek(file, pos, whence, flags);
PSI_FILE_CALL(end_file_wait)(locker, (size_t) 0);
return result;
}
#endif
result= my_seek(file, pos, whence, flags);
return result;
}
|
O3
|
c
|
inline_mysql_file_seek:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x58, %rsp
movl %esi, %ebx
movl %edi, %r14d
leaq 0x369e87(%rip), %rax # 0x3aea18
movq (%rax), %rax
leaq -0x68(%rbp), %rdi
movl $0x8, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x44bc3
movl %ebx, %edi
xorl %esi, %esi
movl $0x2, %edx
xorl %ecx, %ecx
callq 0xc056c
addq $0x58, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq -0x20(%rbp), %r15
movq %rax, %rdi
movl %r14d, %esi
movl %ebx, %edx
movq %r15, %rcx
callq 0x2d11a
movq (%r15), %rax
jmp 0x44bb8
|
inline_mysql_file_seek:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
sub rsp, 58h
mov ebx, esi
mov r14d, edi
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_68]
mov edx, 8
call qword ptr [rax+158h]
test rax, rax
jnz short loc_44BC3
mov edi, ebx
xor esi, esi
mov edx, 2
xor ecx, ecx
call my_seek
loc_44BB8:
add rsp, 58h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_44BC3:
lea r15, [rbp+var_20]
mov rdi, rax
mov esi, r14d
mov edx, ebx
mov rcx, r15
call inline_mysql_file_seek_cold_1
mov rax, [r15]
jmp short loc_44BB8
|
long long inline_mysql_file_seek(unsigned int a1, long long a2)
{
long long v2; // rax
_BYTE v4[72]; // [rsp+8h] [rbp-68h] BYREF
_QWORD v5[4]; // [rsp+50h] [rbp-20h] BYREF
v2 = ((long long ( *)(_BYTE *, long long, long long))PSI_server[43])(v4, a2, 8LL);
if ( !v2 )
return my_seek((unsigned int)a2, 0LL, 2LL, 0LL);
inline_mysql_file_seek_cold_1(v2, a1, a2, v5);
return v5[0];
}
|
inline_mysql_file_seek:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x58
MOV EBX,ESI
MOV R14D,EDI
LEA RAX,[0x4aea18]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0x68]
MOV EDX,0x8
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x00144bc3
MOV EDI,EBX
XOR ESI,ESI
MOV EDX,0x2
XOR ECX,ECX
CALL 0x001c056c
LAB_00144bb8:
ADD RSP,0x58
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_00144bc3:
LEA R15,[RBP + -0x20]
MOV RDI,RAX
MOV ESI,R14D
MOV EDX,EBX
MOV RCX,R15
CALL 0x0012d11a
MOV RAX,qword ptr [R15]
JMP 0x00144bb8
|
int8 inline_mysql_file_seek(int4 param_1,ulong param_2)
{
long lVar1;
int1 local_70 [72];
int8 local_28;
lVar1 = (**(code **)(PSI_server + 0x158))(local_70,param_2,8);
if (lVar1 == 0) {
local_28 = my_seek(param_2 & 0xffffffff,0,2,0);
}
else {
inline_mysql_file_seek_cold_1(lVar1,param_1,param_2 & 0xffffffff,&local_28);
}
return local_28;
}
|
|
16,256
|
ma_SHA1Update
|
eloqsql/libmariadb/libmariadb/ma_sha1.c
|
void ma_SHA1Update(_MA_SHA1_CTX * context, const unsigned char *input,
size_t inputLen)
{
unsigned int i, index, partLen;
/* Compute number of bytes mod 64 */
index = (unsigned int) ((context->count[0] >> 3) & 0x3F);
/* Update number of bits */
if ((context->count[0] += ((uint32) inputLen << 3))
< ((uint32) inputLen << 3))
context->count[1]++;
context->count[1] += ((uint32) inputLen >> 29);
partLen = 64 - index;
/* Transform as many times as possible.
*/
if (inputLen >= partLen) {
memcpy
((unsigned char*) & context->buffer[index], (unsigned char*) input, partLen);
ma_SHA1Transform(context->state, context->buffer);
for (i = partLen; i + 63 < inputLen; i += 64)
ma_SHA1Transform(context->state, &input[i]);
index = 0;
} else
i = 0;
/* Buffer remaining input */
memcpy
((unsigned char*) & context->buffer[index], (unsigned char*) & input[i],
inputLen - i);
}
|
O3
|
c
|
ma_SHA1Update:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
movl 0x14(%rdi), %eax
movl %eax, %r12d
shrl $0x3, %r12d
andl $0x3f, %r12d
leal (,%rdx,8), %ecx
shrl $0x1d, %edx
addl %eax, %ecx
movl %ecx, 0x14(%rdi)
adcl %edx, 0x18(%rdi)
movq %rsi, %r15
movl $0x40, %r13d
subq %r12, %r13
cmpq %rbx, %r13
jbe 0x34541
movl %r12d, %eax
xorl %r13d, %r13d
jmp 0x345a6
leaq 0x1c(%r14), %rax
movq %rax, -0x30(%rbp)
movl %r12d, %eax
leaq (%r14,%rax), %rdi
addq $0x1c, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x13390
movq %r14, %rdi
movq -0x30(%rbp), %rsi
callq 0x345cd
movl %r12d, %eax
xorl $0x7f, %eax
cmpq %rbx, %rax
jae 0x345a4
xorl $0xbf, %r12d
leal -0x7f(%r12), %esi
addq %r15, %rsi
movq %r14, %rdi
callq 0x345cd
movl %r12d, %eax
addl $0x40, %r12d
cmpq %rbx, %rax
jb 0x3457d
addl $-0x7f, %r12d
xorl %eax, %eax
movq %r12, %r13
jmp 0x345a6
xorl %eax, %eax
leaq (%r14,%rax), %rdi
addq $0x1c, %rdi
addq %r13, %r15
subq %r13, %rbx
movq %r15, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x13390
|
ma_SHA1Update:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdx
mov r14, rdi
mov eax, [rdi+14h]
mov r12d, eax
shr r12d, 3
and r12d, 3Fh
lea ecx, ds:0[rdx*8]
shr edx, 1Dh
add ecx, eax
mov [rdi+14h], ecx
adc [rdi+18h], edx
mov r15, rsi
mov r13d, 40h ; '@'
sub r13, r12
cmp r13, rbx
jbe short loc_34541
mov eax, r12d
xor r13d, r13d
jmp short loc_345A6
loc_34541:
lea rax, [r14+1Ch]
mov [rbp+var_30], rax
mov eax, r12d
lea rdi, [r14+rax]
add rdi, 1Ch
mov rsi, r15
mov rdx, r13
call _memcpy
mov rdi, r14
mov rsi, [rbp+var_30]
call ma_SHA1Transform
mov eax, r12d
xor eax, 7Fh
cmp rax, rbx
jnb short loc_345A4
xor r12d, 0BFh
loc_3457D:
lea esi, [r12-7Fh]
add rsi, r15
mov rdi, r14
call ma_SHA1Transform
mov eax, r12d
add r12d, 40h ; '@'
cmp rax, rbx
jb short loc_3457D
add r12d, 0FFFFFF81h
xor eax, eax
mov r13, r12
jmp short loc_345A6
loc_345A4:
xor eax, eax
loc_345A6:
lea rdi, [r14+rax]
add rdi, 1Ch
add r15, r13
sub rbx, r13
mov rsi, r15
mov rdx, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _memcpy
|
long long ma_SHA1Update(long long a1, long long a2, unsigned long long a3)
{
unsigned int v4; // eax
long long v5; // r12
long long v6; // r13
long long v7; // rax
unsigned int v8; // r12d
unsigned long long v9; // rax
v4 = *(_DWORD *)(a1 + 20);
v5 = (v4 >> 3) & 0x3F;
*(_DWORD *)(a1 + 20) = v4 + 8 * a3;
*(_DWORD *)(a1 + 24) += ((unsigned int)a3 >> 29) + __CFADD__(v4, 8 * a3);
v6 = 64 - v5;
if ( 64 - v5 <= a3 )
{
memcpy(a1 + (unsigned int)v5 + 28, a2, 64 - v5);
ma_SHA1Transform(a1, a1 + 28);
if ( ((unsigned int)v5 ^ 0x7F) >= a3 )
{
v7 = 0LL;
}
else
{
v8 = v5 ^ 0xBF;
do
{
ma_SHA1Transform(a1, a2 + v8 - 127);
v9 = v8;
v8 += 64;
}
while ( v9 < a3 );
v7 = 0LL;
v6 = v8 - 127;
}
}
else
{
v7 = (unsigned int)v5;
v6 = 0LL;
}
return memcpy(a1 + v7 + 28, v6 + a2, a3 - v6);
}
|
ma_SHA1Update:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV R14,RDI
MOV EAX,dword ptr [RDI + 0x14]
MOV R12D,EAX
SHR R12D,0x3
AND R12D,0x3f
LEA ECX,[RDX*0x8]
SHR EDX,0x1d
ADD ECX,EAX
MOV dword ptr [RDI + 0x14],ECX
ADC dword ptr [RDI + 0x18],EDX
MOV R15,RSI
MOV R13D,0x40
SUB R13,R12
CMP R13,RBX
JBE 0x00134541
MOV EAX,R12D
XOR R13D,R13D
JMP 0x001345a6
LAB_00134541:
LEA RAX,[R14 + 0x1c]
MOV qword ptr [RBP + -0x30],RAX
MOV EAX,R12D
LEA RDI,[R14 + RAX*0x1]
ADD RDI,0x1c
MOV RSI,R15
MOV RDX,R13
CALL 0x00113390
MOV RDI,R14
MOV RSI,qword ptr [RBP + -0x30]
CALL 0x001345cd
MOV EAX,R12D
XOR EAX,0x7f
CMP RAX,RBX
JNC 0x001345a4
XOR R12D,0xbf
LAB_0013457d:
LEA ESI,[R12 + -0x7f]
ADD RSI,R15
MOV RDI,R14
CALL 0x001345cd
MOV EAX,R12D
ADD R12D,0x40
CMP RAX,RBX
JC 0x0013457d
ADD R12D,-0x7f
XOR EAX,EAX
MOV R13,R12
JMP 0x001345a6
LAB_001345a4:
XOR EAX,EAX
LAB_001345a6:
LEA RDI,[R14 + RAX*0x1]
ADD RDI,0x1c
ADD R15,R13
SUB RBX,R13
MOV RSI,R15
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00113390
|
void ma_SHA1Update(long param_1,void *param_2,ulong param_3)
{
uint uVar1;
ulong uVar2;
uint uVar3;
uint uVar4;
ulong __n;
uVar1 = *(uint *)(param_1 + 0x14);
uVar4 = uVar1 >> 3 & 0x3f;
uVar2 = (ulong)uVar4;
uVar3 = (int)param_3 * 8;
*(uint *)(param_1 + 0x14) = uVar3 + uVar1;
*(int *)(param_1 + 0x18) =
*(int *)(param_1 + 0x18) + ((uint)(param_3 >> 0x1d) & 7) + (uint)CARRY4(uVar3,uVar1);
__n = 0x40 - uVar2;
if (param_3 < __n) {
__n = 0;
}
else {
memcpy((void *)(param_1 + uVar2 + 0x1c),param_2,__n);
ma_SHA1Transform(param_1,param_1 + 0x1c);
if ((uVar4 ^ 0x7f) < param_3) {
uVar1 = uVar4 ^ 0xbf;
do {
uVar3 = uVar1;
ma_SHA1Transform(param_1,(ulong)(uVar3 - 0x7f) + (long)param_2);
uVar1 = uVar3 + 0x40;
} while (uVar3 < param_3);
__n = (ulong)(uVar3 - 0x3f);
uVar2 = 0;
}
else {
uVar2 = 0;
}
}
memcpy((void *)(param_1 + uVar2 + 0x1c),(void *)((long)param_2 + __n),param_3 - __n);
return;
}
|
|
16,257
|
mysql_stmt_store_result_start
|
eloqsql/libmariadb/libmariadb/mariadb_async.c
|
int STDCALL
mysql_stmt_store_result_start(int *ret, MYSQL_STMT *stmt)
{
MK_ASYNC_START_BODY(
mysql_stmt_store_result,
stmt->mysql,
{
WIN_SET_NONBLOCKING(stmt->mysql)
parms.stmt= stmt;
},
1,
r_int,
/* If stmt->mysql==NULL then we will not block so can call directly. */
if (!stmt->mysql)
{
*ret= mysql_stmt_store_result(stmt);
return 0;
})
}
|
O3
|
c
|
mysql_stmt_store_result_start:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x38(%rsi), %rax
testq %rax, %rax
je 0x2c54b
movq 0x480(%rax), %rax
movq 0x28(%rax), %r15
leaq -0x20(%rbp), %rdx
movq %r14, (%rdx)
movb $0x1, 0x14(%r15)
leaq 0x38(%r15), %rdi
leaq 0xa2(%rip), %rsi # 0x2c5d3
callq 0x2da54
movw $0x0, 0x14(%r15)
testl %eax, %eax
jle 0x2c555
movb $0x1, 0x15(%r15)
movl (%r15), %eax
jmp 0x2c5c8
movq %r14, %rdi
callq 0x21422
jmp 0x2c5c4
js 0x2c55d
movl 0x8(%r15), %eax
jmp 0x2c5c4
movq 0x38(%r14), %rax
movl $0x7d8, 0x90(%rax) # imm = 0x7D8
movl $0x297, %edi # imm = 0x297
addq 0x38(%r14), %rdi
leaq 0x1c545(%rip), %rax # 0x48ac0
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13220
movq 0x38(%r14), %rax
xorl %r15d, %r15d
movb %r15b, 0x29c(%rax)
movl $0x97, %edi
addq 0x38(%r14), %rdi
leaq 0x1c52a(%rip), %rax # 0x48ad0
movq 0x40(%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x13220
movq 0x38(%r14), %rax
movb %r15b, 0x296(%rax)
movl $0x1, %eax
movl %eax, (%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
mysql_stmt_store_result_start:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
mov rax, [rsi+38h]
test rax, rax
jz short loc_2C54B
mov rax, [rax+480h]
mov r15, [rax+28h]
lea rdx, [rbp+var_20]
mov [rdx], r14
mov byte ptr [r15+14h], 1
lea rdi, [r15+38h]
lea rsi, mysql_stmt_store_result_start_internal
call my_context_spawn
mov word ptr [r15+14h], 0
test eax, eax
jle short loc_2C555
mov byte ptr [r15+15h], 1
mov eax, [r15]
jmp short loc_2C5C8
loc_2C54B:
mov rdi, r14
call mysql_stmt_store_result
jmp short loc_2C5C4
loc_2C555:
js short loc_2C55D
mov eax, [r15+8]
jmp short loc_2C5C4
loc_2C55D:
mov rax, [r14+38h]
mov dword ptr [rax+90h], 7D8h
mov edi, 297h
add rdi, [r14+38h]
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
mov rax, [r14+38h]
xor r15d, r15d
mov [rax+29Ch], r15b
mov edi, 97h
add rdi, [r14+38h]
lea rax, client_errors
mov rsi, [rax+40h]
mov edx, 1FFh
call _strncpy
mov rax, [r14+38h]
mov [rax+296h], r15b
mov eax, 1
loc_2C5C4:
mov [rbx], eax
xor eax, eax
loc_2C5C8:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long mysql_stmt_store_result_start(int *a1, long long a2)
{
long long v2; // rax
long long v3; // rax
unsigned int *v4; // r15
int v5; // eax
int v7; // eax
long long v8[4]; // [rsp+0h] [rbp-20h] BYREF
v8[0] = v2;
v3 = *(_QWORD *)(a2 + 56);
if ( v3 )
{
v4 = *(unsigned int **)(*(_QWORD *)(v3 + 1152) + 40LL);
v8[0] = a2;
*((_BYTE *)v4 + 20) = 1;
v5 = my_context_spawn(v4 + 14, mysql_stmt_store_result_start_internal, v8);
*((_WORD *)v4 + 10) = 0;
if ( v5 > 0 )
{
*((_BYTE *)v4 + 21) = 1;
return *v4;
}
if ( v5 < 0 )
{
*(_DWORD *)(*(_QWORD *)(a2 + 56) + 144LL) = 2008;
strncpy(*(_QWORD *)(a2 + 56) + 663LL, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(*(_QWORD *)(a2 + 56) + 668LL) = 0;
strncpy(*(_QWORD *)(a2 + 56) + 151LL, client_errors[8], 511LL);
*(_BYTE *)(*(_QWORD *)(a2 + 56) + 662LL) = 0;
v7 = 1;
}
else
{
v7 = v4[2];
}
}
else
{
v7 = mysql_stmt_store_result(a2);
}
*a1 = v7;
return 0LL;
}
|
mysql_stmt_store_result_start:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RSI + 0x38]
TEST RAX,RAX
JZ 0x0012c54b
MOV RAX,qword ptr [RAX + 0x480]
MOV R15,qword ptr [RAX + 0x28]
LEA RDX,[RBP + -0x20]
MOV qword ptr [RDX],R14
MOV byte ptr [R15 + 0x14],0x1
LEA RDI,[R15 + 0x38]
LEA RSI,[0x12c5d3]
CALL 0x0012da54
MOV word ptr [R15 + 0x14],0x0
TEST EAX,EAX
JLE 0x0012c555
MOV byte ptr [R15 + 0x15],0x1
MOV EAX,dword ptr [R15]
JMP 0x0012c5c8
LAB_0012c54b:
MOV RDI,R14
CALL 0x00121422
JMP 0x0012c5c4
LAB_0012c555:
JS 0x0012c55d
MOV EAX,dword ptr [R15 + 0x8]
JMP 0x0012c5c4
LAB_0012c55d:
MOV RAX,qword ptr [R14 + 0x38]
MOV dword ptr [RAX + 0x90],0x7d8
MOV EDI,0x297
ADD RDI,qword ptr [R14 + 0x38]
LEA RAX,[0x148ac0]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113220
MOV RAX,qword ptr [R14 + 0x38]
XOR R15D,R15D
MOV byte ptr [RAX + 0x29c],R15B
MOV EDI,0x97
ADD RDI,qword ptr [R14 + 0x38]
LEA RAX,[0x148ad0]
MOV RSI,qword ptr [RAX + 0x40]
MOV EDX,0x1ff
CALL 0x00113220
MOV RAX,qword ptr [R14 + 0x38]
MOV byte ptr [RAX + 0x296],R15B
MOV EAX,0x1
LAB_0012c5c4:
MOV dword ptr [RBX],EAX
XOR EAX,EAX
LAB_0012c5c8:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
int4 mysql_stmt_store_result_start(int4 *param_1,long param_2)
{
int4 *puVar1;
int iVar2;
int4 uVar3;
if (*(long *)(param_2 + 0x38) == 0) {
uVar3 = mysql_stmt_store_result(param_2);
}
else {
puVar1 = *(int4 **)(*(long *)(*(long *)(param_2 + 0x38) + 0x480) + 0x28);
*(int1 *)(puVar1 + 5) = 1;
iVar2 = my_context_spawn(puVar1 + 0xe,mysql_stmt_store_result_start_internal);
*(int2 *)(puVar1 + 5) = 0;
if (0 < iVar2) {
*(int1 *)((long)puVar1 + 0x15) = 1;
return *puVar1;
}
if (iVar2 < 0) {
*(int4 *)(*(long *)(param_2 + 0x38) + 0x90) = 0x7d8;
strncpy((char *)(*(long *)(param_2 + 0x38) + 0x297),SQLSTATE_UNKNOWN,5);
*(int1 *)(*(long *)(param_2 + 0x38) + 0x29c) = 0;
strncpy((char *)(*(long *)(param_2 + 0x38) + 0x97),PTR_s_Client_run_out_of_memory_00148b10,
0x1ff);
*(int1 *)(*(long *)(param_2 + 0x38) + 0x296) = 0;
uVar3 = 1;
}
else {
uVar3 = puVar1[2];
}
}
*param_1 = uVar3;
return 0;
}
|
|
16,258
|
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 0xb7028
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
xorl %edx, %edx
cmpw $0x80, (%rcx,%rdx,2)
jae 0xb700f
incq %rdx
cmpq $0x100, %rdx # imm = 0x100
jne 0xb6ff6
movl $0x1000, %eax # imm = 0x1000
xorl %edx, %edx
movzwl (%rcx,%rdx,2), %esi
cmpq %rsi, %rdx
jne 0xb702b
incq %rdx
cmpq $0x80, %rdx
jne 0xb7011
jmp 0xb7030
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_B7028
push rbp
mov rbp, rsp
xor eax, eax
xor edx, edx
loc_B6FF6:
cmp word ptr [rcx+rdx*2], 80h
jnb short loc_B700F
inc rdx
cmp rdx, 100h
jnz short loc_B6FF6
mov eax, 1000h
loc_B700F:
xor edx, edx
loc_B7011:
movzx esi, word ptr [rcx+rdx*2]
cmp rdx, rsi
jnz short loc_B702B
inc rdx
cmp rdx, 80h
jnz short loc_B7011
jmp short loc_B7030
loc_B7028:
xor eax, eax
retn
loc_B702B:
or eax, 2000h
loc_B7030:
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 0x001b7028
PUSH RBP
MOV RBP,RSP
XOR EAX,EAX
XOR EDX,EDX
LAB_001b6ff6:
CMP word ptr [RCX + RDX*0x2],0x80
JNC 0x001b700f
INC RDX
CMP RDX,0x100
JNZ 0x001b6ff6
MOV EAX,0x1000
LAB_001b700f:
XOR EDX,EDX
LAB_001b7011:
MOVZX ESI,word ptr [RCX + RDX*0x2]
CMP RDX,RSI
JNZ 0x001b702b
INC RDX
CMP RDX,0x80
JNZ 0x001b7011
JMP 0x001b7030
LAB_001b7028:
XOR EAX,EAX
RET
LAB_001b702b:
OR EAX,0x2000
LAB_001b7030:
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_001b700f;
lVar3 = lVar3 + 1;
} while (lVar3 != 0x100);
uVar2 = 0x1000;
LAB_001b700f:
uVar4 = 0;
do {
if (uVar4 != *(ushort *)(lVar1 + uVar4 * 2)) {
return uVar2 | 0x2000;
}
uVar4 = uVar4 + 1;
} while (uVar4 != 0x80);
return uVar2;
}
|
|
16,259
|
string_buffer_concat_value_free
|
bluesky950520[P]quickjs/quickjs.c
|
static int string_buffer_concat_value_free(StringBuffer *s, JSValue v)
{
JSString *p;
int res;
if (s->error_status) {
/* prevent exception overload */
JS_FreeValue(s->ctx, v);
return -1;
}
if (unlikely(JS_VALUE_GET_TAG(v) != JS_TAG_STRING)) {
v = JS_ToStringFree(s->ctx, v);
if (JS_IsException(v))
return string_buffer_set_error(s);
}
p = JS_VALUE_GET_STRING(v);
res = string_buffer_concat(s, p, 0, p->len);
JS_FreeValue(s->ctx, v);
return res;
}
|
O0
|
c
|
string_buffer_concat_value_free:
subq $0x48, %rsp
movq %rsi, 0x30(%rsp)
movq %rdx, 0x38(%rsp)
movq %rdi, 0x28(%rsp)
movq 0x28(%rsp), %rax
cmpl $0x0, 0x1c(%rax)
je 0x83392
movq 0x28(%rsp), %rax
movq (%rax), %rdi
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
callq 0x229d0
movl $0xffffffff, 0x44(%rsp) # imm = 0xFFFFFFFF
jmp 0x83458
movq 0x38(%rsp), %rax
cmpl $-0x7, %eax
setne %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x83409
movq 0x28(%rsp), %rax
movq (%rax), %rdi
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
callq 0x4f3b0
movq %rax, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x22a00
cmpl $0x0, %eax
je 0x83407
movq 0x28(%rsp), %rdi
callq 0x6eb90
movl %eax, 0x44(%rsp)
jmp 0x83458
jmp 0x83409
movq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x20(%rsp), %rax
movq 0x4(%rax), %rax
andq $0x7fffffff, %rax # imm = 0x7FFFFFFF
movl %eax, %ecx
xorl %edx, %edx
callq 0x6e970
movl %eax, 0x1c(%rsp)
movq 0x28(%rsp), %rax
movq (%rax), %rdi
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
callq 0x229d0
movl 0x1c(%rsp), %eax
movl %eax, 0x44(%rsp)
movl 0x44(%rsp), %eax
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)
|
string_buffer_concat_value_free:
sub rsp, 48h
mov [rsp+48h+var_18], rsi
mov [rsp+48h+var_10], rdx
mov [rsp+48h+var_20], rdi
mov rax, [rsp+48h+var_20]
cmp dword ptr [rax+1Ch], 0
jz short loc_83392
mov rax, [rsp+48h+var_20]
mov rdi, [rax]
mov rsi, [rsp+48h+var_18]
mov rdx, [rsp+48h+var_10]
call JS_FreeValue
mov [rsp+48h+var_4], 0FFFFFFFFh
jmp loc_83458
loc_83392:
mov rax, [rsp+48h+var_10]
cmp eax, 0FFFFFFF9h
setnz al
xor al, 0FFh
xor al, 0FFh
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_83409
mov rax, [rsp+48h+var_20]
mov rdi, [rax]
mov rsi, [rsp+48h+var_18]
mov rdx, [rsp+48h+var_10]
call JS_ToStringFree
mov [rsp+48h+var_40], rax
mov [rsp+48h+var_38], rdx
mov rax, [rsp+48h+var_40]
mov [rsp+48h+var_18], rax
mov rax, [rsp+48h+var_38]
mov [rsp+48h+var_10], rax
mov rdi, [rsp+48h+var_18]
mov rsi, [rsp+48h+var_10]
call JS_IsException_1
cmp eax, 0
jz short loc_83407
mov rdi, [rsp+48h+var_20]
call string_buffer_set_error
mov [rsp+48h+var_4], eax
jmp short loc_83458
loc_83407:
jmp short $+2
loc_83409:
mov rax, [rsp+48h+var_18]
mov [rsp+48h+var_28], rax
mov rdi, [rsp+48h+var_20]
mov rsi, [rsp+48h+var_28]
mov rax, [rsp+48h+var_28]
mov rax, [rax+4]
and rax, 7FFFFFFFh
mov ecx, eax
xor edx, edx
call string_buffer_concat
mov [rsp+48h+var_2C], eax
mov rax, [rsp+48h+var_20]
mov rdi, [rax]
mov rsi, [rsp+48h+var_18]
mov rdx, [rsp+48h+var_10]
call JS_FreeValue
mov eax, [rsp+48h+var_2C]
mov [rsp+48h+var_4], eax
loc_83458:
mov eax, [rsp+48h+var_4]
add rsp, 48h
retn
|
long long string_buffer_concat_value_free(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6)
{
long long v6; // rdx
unsigned int v8; // [rsp+1Ch] [rbp-2Ch]
long long v9; // [rsp+30h] [rbp-18h]
long long v10; // [rsp+38h] [rbp-10h]
v9 = a2;
v10 = a3;
if ( *(_DWORD *)(a1 + 28) )
{
JS_FreeValue(*(_QWORD *)a1, a2, a3);
return (unsigned int)-1;
}
else if ( (_DWORD)a3 == -7
|| (v9 = JS_ToStringFree(*(_QWORD *)a1, a2, a3, a4, a5, a6), v10 = v6, !JS_IsException_1(v9, v6)) )
{
v8 = string_buffer_concat(a1, v9, 0, *(_DWORD *)(v9 + 4) & 0x7FFFFFFF);
JS_FreeValue(*(_QWORD *)a1, v9, v10);
return v8;
}
else
{
return (unsigned int)string_buffer_set_error(a1);
}
}
|
string_buffer_concat_value_free:
SUB RSP,0x48
MOV qword ptr [RSP + 0x30],RSI
MOV qword ptr [RSP + 0x38],RDX
MOV qword ptr [RSP + 0x28],RDI
MOV RAX,qword ptr [RSP + 0x28]
CMP dword ptr [RAX + 0x1c],0x0
JZ 0x00183392
MOV RAX,qword ptr [RSP + 0x28]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RSP + 0x38]
CALL 0x001229d0
MOV dword ptr [RSP + 0x44],0xffffffff
JMP 0x00183458
LAB_00183392:
MOV RAX,qword ptr [RSP + 0x38]
CMP EAX,-0x7
SETNZ AL
XOR AL,0xff
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x00183409
MOV RAX,qword ptr [RSP + 0x28]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RSP + 0x38]
CALL 0x0014f3b0
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP + 0x10],RDX
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x38],RAX
MOV RDI,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RSP + 0x38]
CALL 0x00122a00
CMP EAX,0x0
JZ 0x00183407
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x0016eb90
MOV dword ptr [RSP + 0x44],EAX
JMP 0x00183458
LAB_00183407:
JMP 0x00183409
LAB_00183409:
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX + 0x4]
AND RAX,0x7fffffff
MOV ECX,EAX
XOR EDX,EDX
CALL 0x0016e970
MOV dword ptr [RSP + 0x1c],EAX
MOV RAX,qword ptr [RSP + 0x28]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RSP + 0x38]
CALL 0x001229d0
MOV EAX,dword ptr [RSP + 0x1c]
MOV dword ptr [RSP + 0x44],EAX
LAB_00183458:
MOV EAX,dword ptr [RSP + 0x44]
ADD RSP,0x48
RET
|
int4
string_buffer_concat_value_free(int8 *param_1,int8 param_2,int8 param_3)
{
int iVar1;
int4 uVar2;
int1 auVar3 [16];
long local_18;
int8 local_10;
int4 local_4;
auVar3._8_8_ = param_3;
auVar3._0_8_ = param_2;
if (*(int *)((long)param_1 + 0x1c) == 0) {
if ((int)param_3 != -7) {
auVar3 = JS_ToStringFree(*param_1,param_2,param_3);
iVar1 = JS_IsException(auVar3._0_8_,auVar3._8_8_);
if (iVar1 != 0) {
uVar2 = string_buffer_set_error(param_1);
return uVar2;
}
}
local_10 = auVar3._8_8_;
local_18 = auVar3._0_8_;
local_4 = string_buffer_concat
(param_1,local_18,0,(uint)*(int8 *)(local_18 + 4) & 0x7fffffff);
JS_FreeValue(*param_1,local_18,local_10);
}
else {
JS_FreeValue(*param_1,param_2,param_3);
local_4 = 0xffffffff;
}
return local_4;
}
|
|
16,260
|
string_buffer_concat_value_free
|
bluesky950520[P]quickjs/quickjs.c
|
static int string_buffer_concat_value_free(StringBuffer *s, JSValue v)
{
JSString *p;
int res;
if (s->error_status) {
/* prevent exception overload */
JS_FreeValue(s->ctx, v);
return -1;
}
if (unlikely(JS_VALUE_GET_TAG(v) != JS_TAG_STRING)) {
v = JS_ToStringFree(s->ctx, v);
if (JS_IsException(v))
return string_buffer_set_error(s);
}
p = JS_VALUE_GET_STRING(v);
res = string_buffer_concat(s, p, 0, p->len);
JS_FreeValue(s->ctx, v);
return res;
}
|
O1
|
c
|
string_buffer_concat_value_free:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r14
movq %rdi, %rbx
movq %rsi, 0x8(%rsp)
cmpl $0x0, 0x1c(%rdi)
je 0x4acd1
movq (%rbx), %rax
movq 0x18(%rax), %rdi
movq %r14, %rdx
callq 0x1ccb2
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
jmp 0x4ad06
cmpl $-0x7, %r14d
jne 0x4ad0f
movq 0x8(%rsp), %rsi
movl $0x7fffffff, %ecx # imm = 0x7FFFFFFF
andl 0x4(%rsi), %ecx
movq %rbx, %rdi
xorl %edx, %edx
callq 0x414a5
movl %eax, %ebp
movq (%rbx), %rax
movq 0x8(%rsp), %rsi
movq 0x18(%rax), %rdi
movq %r14, %rdx
callq 0x1ccb2
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq (%rbx), %rdi
movq %r14, %rdx
callq 0x33970
movq %rdx, %r14
movq %rax, 0x8(%rsp)
cmpl $0x6, %r14d
jne 0x4acd7
movq (%rbx), %rdi
movq 0x8(%rbx), %rsi
callq 0x1bf85
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movl $0xffffffff, 0x1c(%rbx) # imm = 0xFFFFFFFF
jmp 0x4acca
|
string_buffer_concat_value_free:
push rbp
push r14
push rbx
sub rsp, 10h
mov r14, rdx
mov rbx, rdi
mov [rsp+28h+var_20], rsi
cmp dword ptr [rdi+1Ch], 0
jz short loc_4ACD1
mov rax, [rbx]
mov rdi, [rax+18h]
mov rdx, r14
call JS_FreeValueRT
loc_4ACCA:
mov eax, 0FFFFFFFFh
jmp short loc_4AD06
loc_4ACD1:
cmp r14d, 0FFFFFFF9h
jnz short loc_4AD0F
loc_4ACD7:
mov rsi, [rsp+28h+var_20]
mov ecx, 7FFFFFFFh
and ecx, [rsi+4]
mov rdi, rbx
xor edx, edx
call string_buffer_concat
mov ebp, eax
mov rax, [rbx]
mov rsi, [rsp+28h+var_20]
mov rdi, [rax+18h]
mov rdx, r14
call JS_FreeValueRT
mov eax, ebp
loc_4AD06:
add rsp, 10h
pop rbx
pop r14
pop rbp
retn
loc_4AD0F:
mov rdi, [rbx]
mov rdx, r14
call JS_ToStringFree
mov r14, rdx
mov [rsp+28h+var_20], rax
cmp r14d, 6
jnz short loc_4ACD7
mov rdi, [rbx]
mov rsi, [rbx+8]
call js_free
xorps xmm0, xmm0
movups xmmword ptr [rbx+8], xmm0
mov dword ptr [rbx+1Ch], 0FFFFFFFFh
jmp short loc_4ACCA
|
long long string_buffer_concat_value_free(
long long *a1,
_DWORD *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)
{
long long v14; // r14
unsigned int v16; // ebp
unsigned long long v17; // rax
long long v18; // rdx
_DWORD *v19; // [rsp+8h] [rbp-20h]
v14 = a3;
v19 = a2;
if ( *((_DWORD *)a1 + 7) )
{
JS_FreeValueRT(*(_QWORD *)(*a1 + 24), a2, a3);
return 0xFFFFFFFFLL;
}
if ( (_DWORD)a3 != -7 )
{
v17 = JS_ToStringFree(*a1, a2, a3, a7, a8, a9, a10, a11, a12, a13, a14, a4, a5, a6);
v14 = v18;
v19 = (_DWORD *)v17;
if ( (_DWORD)v18 == 6 )
{
js_free(*a1, a1[1]);
*(_OWORD *)(a1 + 1) = 0LL;
*((_DWORD *)a1 + 7) = -1;
return 0xFFFFFFFFLL;
}
}
v16 = string_buffer_concat((long long)a1, (long long)v19, 0, v19[1] & 0x7FFFFFFF);
JS_FreeValueRT(*(_QWORD *)(*a1 + 24), v19, v14);
return v16;
}
|
string_buffer_concat_value_free:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV R14,RDX
MOV RBX,RDI
MOV qword ptr [RSP + 0x8],RSI
CMP dword ptr [RDI + 0x1c],0x0
JZ 0x0014acd1
MOV RAX,qword ptr [RBX]
MOV RDI,qword ptr [RAX + 0x18]
MOV RDX,R14
CALL 0x0011ccb2
LAB_0014acca:
MOV EAX,0xffffffff
JMP 0x0014ad06
LAB_0014acd1:
CMP R14D,-0x7
JNZ 0x0014ad0f
LAB_0014acd7:
MOV RSI,qword ptr [RSP + 0x8]
MOV ECX,0x7fffffff
AND ECX,dword ptr [RSI + 0x4]
MOV RDI,RBX
XOR EDX,EDX
CALL 0x001414a5
MOV EBP,EAX
MOV RAX,qword ptr [RBX]
MOV RSI,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x18]
MOV RDX,R14
CALL 0x0011ccb2
MOV EAX,EBP
LAB_0014ad06:
ADD RSP,0x10
POP RBX
POP R14
POP RBP
RET
LAB_0014ad0f:
MOV RDI,qword ptr [RBX]
MOV RDX,R14
CALL 0x00133970
MOV R14,RDX
MOV qword ptr [RSP + 0x8],RAX
CMP R14D,0x6
JNZ 0x0014acd7
MOV RDI,qword ptr [RBX]
MOV RSI,qword ptr [RBX + 0x8]
CALL 0x0011bf85
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x8],XMM0
MOV dword ptr [RBX + 0x1c],0xffffffff
JMP 0x0014acca
|
int4 string_buffer_concat_value_free(long *param_1,int8 param_2,int8 param_3)
{
int4 uVar1;
int1 auVar2 [16];
long local_20;
auVar2._8_8_ = param_3;
auVar2._0_8_ = param_2;
if (*(int *)((long)param_1 + 0x1c) == 0) {
if ((int)param_3 != -7) {
auVar2 = JS_ToStringFree(*param_1,param_2,param_3);
if (auVar2._8_4_ == 6) {
js_free(*param_1,param_1[1]);
param_1[1] = 0;
param_1[2] = 0;
*(int4 *)((long)param_1 + 0x1c) = 0xffffffff;
goto LAB_0014acca;
}
}
local_20 = auVar2._0_8_;
uVar1 = string_buffer_concat(param_1,local_20,0,*(uint *)(local_20 + 4) & 0x7fffffff);
JS_FreeValueRT(*(int8 *)(*param_1 + 0x18),local_20,auVar2._8_8_);
}
else {
JS_FreeValueRT(*(int8 *)(*param_1 + 0x18),param_2,param_3);
LAB_0014acca:
uVar1 = 0xffffffff;
}
return uVar1;
}
|
|
16,261
|
string_buffer_concat_value_free
|
bluesky950520[P]quickjs/quickjs.c
|
static int string_buffer_concat_value_free(StringBuffer *s, JSValue v)
{
JSString *p;
int res;
if (s->error_status) {
/* prevent exception overload */
JS_FreeValue(s->ctx, v);
return -1;
}
if (unlikely(JS_VALUE_GET_TAG(v) != JS_TAG_STRING)) {
v = JS_ToStringFree(s->ctx, v);
if (JS_IsException(v))
return string_buffer_set_error(s);
}
p = JS_VALUE_GET_STRING(v);
res = string_buffer_concat(s, p, 0, p->len);
JS_FreeValue(s->ctx, v);
return res;
}
|
O3
|
c
|
string_buffer_concat_value_free:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
cmpl $0x0, 0x1c(%rdi)
je 0x4cc02
movl $0xffffffff, %ebp # imm = 0xFFFFFFFF
jmp 0x4cc1f
cmpl $-0x7, %ebx
jne 0x4cc51
movl $0x7fffffff, %ecx # imm = 0x7FFFFFFF
andl 0x4(%r14), %ecx
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x42f71
movl %eax, %ebp
cmpl $-0x9, %ebx
jb 0x4cc44
movq (%r15), %rax
movq 0x18(%rax), %rdi
movl (%r14), %eax
leal -0x1(%rax), %ecx
movl %ecx, (%r14)
cmpl $0x1, %eax
jg 0x4cc44
movq %r14, %rsi
movq %rbx, %rdx
callq 0x20d90
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq (%r15), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x3479d
movq %rdx, %rbx
cmpl $0x6, %ebx
jne 0x4cc8a
movq (%r15), %rdi
movq 0x8(%r15), %rsi
callq 0x1c845
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r15)
movl $0xffffffff, 0x1c(%r15) # imm = 0xFFFFFFFF
movl $0xffffffff, %ebp # imm = 0xFFFFFFFF
jmp 0x4cc44
movq %rax, %r14
jmp 0x4cc07
|
string_buffer_concat_value_free:
push rbp
push r15
push r14
push rbx
push rax
mov rbx, rdx
mov r14, rsi
mov r15, rdi
cmp dword ptr [rdi+1Ch], 0
jz short loc_4CC02
mov ebp, 0FFFFFFFFh
jmp short loc_4CC1F
loc_4CC02:
cmp ebx, 0FFFFFFF9h
jnz short loc_4CC51
loc_4CC07:
mov ecx, 7FFFFFFFh
and ecx, [r14+4]
mov rdi, r15
mov rsi, r14
xor edx, edx
call string_buffer_concat
mov ebp, eax
loc_4CC1F:
cmp ebx, 0FFFFFFF7h
jb short loc_4CC44
mov rax, [r15]
mov rdi, [rax+18h]
mov eax, [r14]
lea ecx, [rax-1]
mov [r14], ecx
cmp eax, 1
jg short loc_4CC44
mov rsi, r14
mov rdx, rbx
call js_free_value_rt
loc_4CC44:
mov eax, ebp
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_4CC51:
mov rdi, [r15]
mov rsi, r14
mov rdx, rbx
call JS_ToStringFree
mov rbx, rdx
cmp ebx, 6
jnz short loc_4CC8A
mov rdi, [r15]
mov rsi, [r15+8]
call js_free
xorps xmm0, xmm0
movups xmmword ptr [r15+8], xmm0
mov dword ptr [r15+1Ch], 0FFFFFFFFh
mov ebp, 0FFFFFFFFh
jmp short loc_4CC44
loc_4CC8A:
mov r14, rax
jmp loc_4CC07
|
long long string_buffer_concat_value_free(
long long a1,
int *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)
{
long long v14; // rbx
long long v15; // r14
unsigned int v16; // ebp
long long v17; // rdi
int v18; // eax
long long v19; // rcx
unsigned long long v21; // rax
long long v22; // rdx
v14 = a3;
v15 = (long long)a2;
if ( *(_DWORD *)(a1 + 28) )
{
v16 = -1;
}
else
{
if ( (_DWORD)a3 != -7 )
{
v21 = JS_ToStringFree(*(_QWORD *)a1, a2, a3, a7, a8, a9, a10, a11, a12, a13, a14, a4, a5, a6);
v14 = v22;
if ( (_DWORD)v22 == 6 )
{
js_free(*(_QWORD *)a1, *(_QWORD *)(a1 + 8));
*(_OWORD *)(a1 + 8) = 0LL;
*(_DWORD *)(a1 + 28) = -1;
return (unsigned int)-1;
}
v15 = v21;
}
v16 = string_buffer_concat(a1, v15, 0, *(_DWORD *)(v15 + 4) & 0x7FFFFFFF);
}
if ( (unsigned int)v14 >= 0xFFFFFFF7 )
{
v17 = *(_QWORD *)(*(_QWORD *)a1 + 24LL);
v18 = *(_DWORD *)v15;
v19 = (unsigned int)(*(_DWORD *)v15 - 1);
*(_DWORD *)v15 = v19;
if ( v18 <= 1 )
js_free_value_rt(v17, (_QWORD *)v15, v14, v19, a5, a6);
}
return v16;
}
|
string_buffer_concat_value_free:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
CMP dword ptr [RDI + 0x1c],0x0
JZ 0x0014cc02
MOV EBP,0xffffffff
JMP 0x0014cc1f
LAB_0014cc02:
CMP EBX,-0x7
JNZ 0x0014cc51
LAB_0014cc07:
MOV ECX,0x7fffffff
AND ECX,dword ptr [R14 + 0x4]
MOV RDI,R15
MOV RSI,R14
XOR EDX,EDX
CALL 0x00142f71
MOV EBP,EAX
LAB_0014cc1f:
CMP EBX,-0x9
JC 0x0014cc44
MOV RAX,qword ptr [R15]
MOV RDI,qword ptr [RAX + 0x18]
MOV EAX,dword ptr [R14]
LEA ECX,[RAX + -0x1]
MOV dword ptr [R14],ECX
CMP EAX,0x1
JG 0x0014cc44
MOV RSI,R14
MOV RDX,RBX
CALL 0x00120d90
LAB_0014cc44:
MOV EAX,EBP
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0014cc51:
MOV RDI,qword ptr [R15]
MOV RSI,R14
MOV RDX,RBX
CALL 0x0013479d
MOV RBX,RDX
CMP EBX,0x6
JNZ 0x0014cc8a
MOV RDI,qword ptr [R15]
MOV RSI,qword ptr [R15 + 0x8]
CALL 0x0011c845
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R15 + 0x8],XMM0
MOV dword ptr [R15 + 0x1c],0xffffffff
MOV EBP,0xffffffff
JMP 0x0014cc44
LAB_0014cc8a:
MOV R14,RAX
JMP 0x0014cc07
|
int4 string_buffer_concat_value_free(long *param_1,int8 param_2,int8 param_3)
{
int iVar1;
int8 uVar2;
int4 uVar3;
int *piVar4;
int1 auVar5 [16];
auVar5._8_8_ = param_3;
auVar5._0_8_ = param_2;
if (*(int *)((long)param_1 + 0x1c) == 0) {
if (((int)param_3 != -7) &&
(auVar5 = JS_ToStringFree(*param_1,param_2,param_3), auVar5._8_4_ == 6)) {
js_free(*param_1,param_1[1]);
param_1[1] = 0;
param_1[2] = 0;
*(int4 *)((long)param_1 + 0x1c) = 0xffffffff;
return 0xffffffff;
}
uVar3 = string_buffer_concat(param_1,auVar5._0_8_,0,*(uint *)(auVar5._0_8_ + 4) & 0x7fffffff);
}
else {
uVar3 = 0xffffffff;
}
piVar4 = auVar5._0_8_;
if (0xfffffff6 < auVar5._8_4_) {
uVar2 = *(int8 *)(*param_1 + 0x18);
iVar1 = *piVar4;
*piVar4 = iVar1 + -1;
if (iVar1 < 2) {
js_free_value_rt(uVar2,piVar4,auVar5._8_8_);
}
}
return uVar3;
}
|
|
16,262
|
maria_ft_add_word
|
eloqsql/storage/maria/ma_ft_parser.c
|
static int maria_ft_add_word(MYSQL_FTPARSER_PARAM *param,
const char *word, int word_len,
MYSQL_FTPARSER_BOOLEAN_INFO *boolean_info
__attribute__((unused)))
{
TREE *wtree;
FT_WORD w;
MY_FT_PARSER_PARAM *ft_param=param->mysql_ftparam;
DBUG_ENTER("maria_ft_add_word");
wtree= ft_param->wtree;
if (param->flags & MYSQL_FTFLAGS_NEED_COPY)
{
uchar *ptr;
DBUG_ASSERT(wtree->with_delete == 0);
ptr= (uchar *)alloc_root(ft_param->mem_root, word_len);
memcpy(ptr, word, word_len);
w.pos= ptr;
}
else
w.pos= (uchar*) word;
w.len= word_len;
if (!tree_insert(wtree, &w, 0, wtree->custom_arg))
{
delete_tree(wtree, 0);
DBUG_RETURN(1);
}
DBUG_RETURN(0);
}
|
O3
|
c
|
maria_ft_add_word:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %r14d
movq %rsi, %r15
movq 0x18(%rdi), %rax
movq (%rax), %rbx
testb $0x1, 0x34(%rdi)
je 0x475eb
movq 0x8(%rax), %rdi
movslq %r14d, %r12
movq %r12, %rsi
callq 0x9db77
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x29080
movq %r13, %r15
leaq -0x40(%rbp), %rsi
movq %r15, (%rsi)
movl %r14d, 0x8(%rsi)
movq 0x230(%rbx), %rcx
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %edx, %edx
callq 0xa572e
testq %rax, %rax
jne 0x4761f
movq %rbx, %rdi
xorl %esi, %esi
callq 0xa5646
movl $0x1, %r14d
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
maria_ft_add_word:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r14d, edx
mov r15, rsi
mov rax, [rdi+18h]
mov rbx, [rax]
test byte ptr [rdi+34h], 1
jz short loc_475EB
mov rdi, [rax+8]
movsxd r12, r14d
mov rsi, r12
call alloc_root
mov r13, rax
mov rdi, rax
mov rsi, r15
mov rdx, r12
call _memcpy
mov r15, r13
loc_475EB:
lea rsi, [rbp+var_40]
mov [rsi], r15
mov [rsi+8], r14d
mov rcx, [rbx+230h]
xor r14d, r14d
mov rdi, rbx
xor edx, edx
call tree_insert
test rax, rax
jnz short loc_4761F
mov rdi, rbx
xor esi, esi
call delete_tree
mov r14d, 1
loc_4761F:
mov eax, r14d
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long maria_ft_add_word(long long a1, long long a2, int a3)
{
long long v4; // r15
long long *v5; // rax
long long v6; // rbx
long long v7; // r13
unsigned int v8; // r14d
long long v10; // [rsp+0h] [rbp-40h] BYREF
int v11; // [rsp+8h] [rbp-38h]
v4 = a2;
v5 = *(long long **)(a1 + 24);
v6 = *v5;
if ( (*(_BYTE *)(a1 + 52) & 1) != 0 )
{
v7 = alloc_root(v5[1], a3);
memcpy(v7, a2, a3);
v4 = v7;
}
v10 = v4;
v11 = a3;
v8 = 0;
if ( !tree_insert(v6, &v10, 0LL, *(_QWORD *)(v6 + 560)) )
{
delete_tree(v6, 0LL);
return 1;
}
return v8;
}
|
maria_ft_add_word:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R14D,EDX
MOV R15,RSI
MOV RAX,qword ptr [RDI + 0x18]
MOV RBX,qword ptr [RAX]
TEST byte ptr [RDI + 0x34],0x1
JZ 0x001475eb
MOV RDI,qword ptr [RAX + 0x8]
MOVSXD R12,R14D
MOV RSI,R12
CALL 0x0019db77
MOV R13,RAX
MOV RDI,RAX
MOV RSI,R15
MOV RDX,R12
CALL 0x00129080
MOV R15,R13
LAB_001475eb:
LEA RSI,[RBP + -0x40]
MOV qword ptr [RSI],R15
MOV dword ptr [RSI + 0x8],R14D
MOV RCX,qword ptr [RBX + 0x230]
XOR R14D,R14D
MOV RDI,RBX
XOR EDX,EDX
CALL 0x001a572e
TEST RAX,RAX
JNZ 0x0014761f
MOV RDI,RBX
XOR ESI,ESI
CALL 0x001a5646
MOV R14D,0x1
LAB_0014761f:
MOV EAX,R14D
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
bool maria_ft_add_word(long param_1,void *param_2,int param_3)
{
long lVar1;
void *__dest;
long lVar2;
void *local_48;
int local_40;
lVar1 = **(long **)(param_1 + 0x18);
__dest = param_2;
if ((*(byte *)(param_1 + 0x34) & 1) != 0) {
__dest = (void *)alloc_root((*(long **)(param_1 + 0x18))[1],(long)param_3);
memcpy(__dest,param_2,(long)param_3);
}
local_48 = __dest;
local_40 = param_3;
lVar2 = tree_insert(lVar1,&local_48,0,*(int8 *)(lVar1 + 0x230));
if (lVar2 == 0) {
delete_tree(lVar1,0);
}
return lVar2 == 0;
}
|
|
16,263
|
npc_massive_jormungar::npc_massive_jormungarAI::DoAction(int)
|
SylCore-WoTLK/src/server/scripts/Northrend/UtgardeKeep/UtgardePinnacle/boss_palehoof.cpp
|
void DoAction(int32 param) override
{
if (param == ACTION_UNFREEZE)
{
me->RemoveUnitFlag(UNIT_FLAG_NON_ATTACKABLE);
}
else if (param == ACTION_UNFREEZE2)
{
me->RemoveAurasDueToSpell(SPELL_FREEZE);
me->RemoveUnitFlag(UNIT_FLAG_NOT_SELECTABLE);
me->SetInCombatWithZone();
events.ScheduleEvent(EVENT_JORMUNGAR_ACID_SPIT, 3s);
events.ScheduleEvent(EVENT_JORMUNGAR_ACID_SPLATTER, 12s);
events.ScheduleEvent(EVENT_JORMUNGAR_POISON_BREATH, 10s);
}
else if (param == ACTION_DESPAWN_ADDS)
summons.DespawnAll();
}
|
O3
|
cpp
|
npc_massive_jormungar::npc_massive_jormungarAI::DoAction(int):
pushq %rbx
movq %rdi, %rbx
cmpl $0x5, %esi
je 0x72a3b0
cmpl $0x3, %esi
je 0x72a39e
cmpl $0x2, %esi
jne 0x72a442
movq 0x120(%rbx), %rdi
movl $0x3b, %esi
movl $0x2, %edx
popq %rbx
jmp 0xa996e0
addq $0x1b0, %rbx # imm = 0x1B0
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
jmp 0x9243f6
movq 0x120(%rbx), %rdi
leaq 0xb55a22(%rip), %rax # 0x127fde0
movq (%rax), %rdx
movl $0x3f75, %esi # imm = 0x3F75
xorl %ecx, %ecx
movl $0x1, %r8d
callq 0xb5eb20
movq 0x120(%rbx), %rdi
movl $0x3b, %esi
movl $0x2000000, %edx # imm = 0x2000000
callq 0xa996e0
movq 0x120(%rbx), %rdi
callq 0xa67232
addq $0x170, %rbx # imm = 0x170
movl $0xbb8, %edx # imm = 0xBB8
movq %rbx, %rdi
movl $0xa, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x10834aa
movl $0x2ee0, %edx # imm = 0x2EE0
movq %rbx, %rdi
movl $0xb, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x10834aa
movl $0x2710, %edx # imm = 0x2710
movq %rbx, %rdi
movl $0xc, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
popq %rbx
jmp 0x10834aa
popq %rbx
retq
|
_ZN21npc_massive_jormungar23npc_massive_jormungarAI8DoActionEi:
push rbx
mov rbx, rdi
cmp esi, 5
jz short loc_72A3B0
cmp esi, 3
jz short loc_72A39E
cmp esi, 2
jnz loc_72A442
mov rdi, [rbx+120h]; this
mov esi, 3Bh ; ';'; unsigned __int16
mov edx, 2; unsigned int
pop rbx
jmp _ZN6Object10RemoveFlagEtj; Object::RemoveFlag(ushort,uint)
loc_72A39E:
add rbx, 1B0h
mov rdi, rbx; this
xor esi, esi; unsigned int
pop rbx
jmp _ZN10SummonList10DespawnAllEj; SummonList::DespawnAll(uint)
loc_72A3B0:
mov rdi, [rbx+120h]
lea rax, _ZN10ObjectGuid5EmptyE; ObjectGuid::Empty
mov rdx, [rax]
mov esi, 3F75h
xor ecx, ecx
mov r8d, 1
call _ZN4Unit21RemoveAurasDueToSpellEj10ObjectGuidh14AuraRemoveMode; Unit::RemoveAurasDueToSpell(uint,ObjectGuid,uchar,AuraRemoveMode)
mov rdi, [rbx+120h]; this
mov esi, 3Bh ; ';'; unsigned __int16
mov edx, 2000000h; unsigned int
call _ZN6Object10RemoveFlagEtj; Object::RemoveFlag(ushort,uint)
mov rdi, [rbx+120h]; this
call _ZN8Creature19SetInCombatWithZoneEv; Creature::SetInCombatWithZone(void)
add rbx, 170h
mov edx, 0BB8h
mov rdi, rbx
mov esi, 0Ah
xor ecx, ecx
xor r8d, r8d
call _ZN8EventMap13ScheduleEventEjNSt6chrono8durationIlSt5ratioILl1ELl1000EEEEjh; EventMap::ScheduleEvent(uint,std::chrono::duration<long,std::ratio<1l,1000l>>,uint,uchar)
mov edx, 2EE0h
mov rdi, rbx
mov esi, 0Bh
xor ecx, ecx
xor r8d, r8d
call _ZN8EventMap13ScheduleEventEjNSt6chrono8durationIlSt5ratioILl1ELl1000EEEEjh; EventMap::ScheduleEvent(uint,std::chrono::duration<long,std::ratio<1l,1000l>>,uint,uchar)
mov edx, 2710h
mov rdi, rbx
mov esi, 0Ch
xor ecx, ecx
xor r8d, r8d
pop rbx
jmp _ZN8EventMap13ScheduleEventEjNSt6chrono8durationIlSt5ratioILl1ELl1000EEEEjh; EventMap::ScheduleEvent(uint,std::chrono::duration<long,std::ratio<1l,1000l>>,uint,uchar)
loc_72A442:
pop rbx
retn
|
long long npc_massive_jormungar::npc_massive_jormungarAI::DoAction(
npc_massive_jormungar::npc_massive_jormungarAI *this,
int a2)
{
long long result; // rax
switch ( a2 )
{
case 5:
Unit::RemoveAurasDueToSpell(*((_QWORD *)this + 36), 16245LL, ObjectGuid::Empty, 0LL, 1LL);
Object::RemoveFlag(*((Object **)this + 36), 0x3Bu, 0x2000000u);
Creature::SetInCombatWithZone(*((Creature **)this + 36));
EventMap::ScheduleEvent((char *)this + 368, 10LL, 3000LL, 0LL, 0LL);
EventMap::ScheduleEvent((char *)this + 368, 11LL, 12000LL, 0LL, 0LL);
return EventMap::ScheduleEvent((char *)this + 368, 12LL, 10000LL, 0LL, 0LL);
case 3:
return SummonList::DespawnAll((npc_massive_jormungar::npc_massive_jormungarAI *)((char *)this + 432), 0);
case 2:
return Object::RemoveFlag(*((Object **)this + 36), 0x3Bu, 2u);
}
return result;
}
|
npc_toc_druidAI:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV EDX,0x2
CALL 0x0072a520
LEA RAX,[0x1894f68]
MOV qword ptr [RBX],RAX
XOR EAX,EAX
MOV qword ptr [RBX + 0x180],RAX
MOV dword ptr [RBX + 0x188],EAX
LEA RCX,[RBX + 0x198]
MOV dword ptr [RBX + 0x198],EAX
MOV qword ptr [RBX + 0x1a0],RAX
MOV qword ptr [RBX + 0x1a8],RCX
MOV qword ptr [RBX + 0x1b0],RCX
MOV qword ptr [RBX + 0x1b8],RAX
LAB_0072a3c3:
MOV RDI,RBX
XOR ESI,ESI
MOV EDX,0xca57
MOV ECX,0xffffffff
MOV R8D,0xffffffff
CALL 0x00a26080
LEA R14,[RBX + 0x180]
MOV RDI,R14
CALL 0x011833fc
LAB_0072a3ec:
MOV EDX,0x1388
MOV ECX,0x3a98
MOV RDI,R14
MOV ESI,0x1
XOR R8D,R8D
XOR R9D,R9D
CALL 0x011836ac
LAB_0072a409:
MOV EDX,0x1388
MOV ECX,0x3a98
MOV RDI,R14
MOV ESI,0x2
XOR R8D,R8D
XOR R9D,R9D
CALL 0x011836ac
LAB_0072a426:
MOV EDX,0x1388
MOV ECX,0x3a98
MOV RDI,R14
MOV ESI,0x3
XOR R8D,R8D
XOR R9D,R9D
CALL 0x011836ac
LAB_0072a443:
MOV EDX,0x1388
MOV ECX,0x3a98
MOV RDI,R14
MOV ESI,0x4
XOR R8D,R8D
XOR R9D,R9D
CALL 0x011836ac
LAB_0072a460:
MOV EDX,0x61a8
MOV ECX,0x9c40
MOV RDI,R14
MOV ESI,0x6
XOR R8D,R8D
XOR R9D,R9D
CALL 0x011836ac
LAB_0072a47d:
MOV EDX,0x2710
MOV RDI,R14
MOV ESI,0x65
XOR ECX,ECX
XOR R8D,R8D
CALL 0x01183632
LAB_0072a494:
MOV EDX,0x1388
MOV ECX,0x3a98
MOV RDI,R14
MOV ESI,0x5
XOR R8D,R8D
XOR R9D,R9D
CALL 0x011836ac
LAB_0072a4b1:
MOV EDX,0x1388
MOV ECX,0x3a98
MOV RDI,R14
MOV ESI,0x7
XOR R8D,R8D
XOR R9D,R9D
CALL 0x011836ac
LAB_0072a4ce:
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* npc_toc_druid::npc_toc_druidAI::npc_toc_druidAI(Creature*) */
void __thiscall
npc_toc_druid::npc_toc_druidAI::npc_toc_druidAI(npc_toc_druidAI *this,Creature *param_1)
{
EventMap *this_00;
boss_faction_championsAI::boss_faction_championsAI((boss_faction_championsAI *)this,param_1,2);
*(int ***)this = &PTR__npc_toc_druidAI_01894f68;
*(int8 *)(this + 0x180) = 0;
*(int4 *)(this + 0x188) = 0;
*(int4 *)(this + 0x198) = 0;
*(int8 *)(this + 0x1a0) = 0;
*(npc_toc_druidAI **)(this + 0x1a8) = this + 0x198;
*(npc_toc_druidAI **)(this + 0x1b0) = this + 0x198;
*(int8 *)(this + 0x1b8) = 0;
/* try { // try from 0072a3c3 to 0072a3eb has its CatchHandler @ 0072a4e6 */
ScriptedAI::SetEquipmentSlots((ScriptedAI *)this,false,0xca57,-1,-1);
this_00 = (EventMap *)(this + 0x180);
EventMap::Reset(this_00);
/* try { // try from 0072a3ec to 0072a408 has its CatchHandler @ 0072a4e4 */
EventMap::RescheduleEvent(this_00,1,5000,15000,0,0);
/* try { // try from 0072a409 to 0072a425 has its CatchHandler @ 0072a4e2 */
EventMap::RescheduleEvent(this_00,2,5000,15000,0,0);
/* try { // try from 0072a426 to 0072a442 has its CatchHandler @ 0072a4e0 */
EventMap::RescheduleEvent(this_00,3,5000,15000,0,0);
/* try { // try from 0072a443 to 0072a45f has its CatchHandler @ 0072a4de */
EventMap::RescheduleEvent(this_00,4,5000,15000,0,0);
/* try { // try from 0072a460 to 0072a47c has its CatchHandler @ 0072a4dc */
EventMap::RescheduleEvent(this_00,6,25000,40000,0,0);
/* try { // try from 0072a47d to 0072a493 has its CatchHandler @ 0072a4da */
EventMap::RescheduleEvent(this_00,0x65,10000,0,0);
/* try { // try from 0072a494 to 0072a4b0 has its CatchHandler @ 0072a4d8 */
EventMap::RescheduleEvent(this_00,5,5000,15000,0,0);
/* try { // try from 0072a4b1 to 0072a4cd has its CatchHandler @ 0072a4d6 */
EventMap::RescheduleEvent(this_00,7,5000,15000,0,0);
return;
}
|
|
16,264
|
DecompressData
|
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rcore.c
|
unsigned char *DecompressData(const unsigned char *compData, int compDataSize, int *dataSize)
{
unsigned char *data = NULL;
#if defined(SUPPORT_COMPRESSION_API)
// Decompress data from a valid DEFLATE stream
data = (unsigned char *)RL_CALLOC(MAX_DECOMPRESSION_SIZE*1024*1024, 1);
int length = sinflate(data, MAX_DECOMPRESSION_SIZE*1024*1024, compData, compDataSize);
// WARNING: RL_REALLOC can make (and leave) data copies in memory, be careful with sensitive compressed data!
// TODO: Use a different approach, create another buffer, copy data manually to it and wipe original buffer memory
unsigned char *temp = (unsigned char *)RL_REALLOC(data, length);
if (temp != NULL) data = temp;
else TRACELOG(LOG_WARNING, "SYSTEM: Failed to re-allocate required decompression memory");
*dataSize = length;
TRACELOG(LOG_INFO, "SYSTEM: Decompress data: Comp. size: %i -> Original size: %i", compDataSize, *dataSize);
#endif
return data;
}
|
O0
|
c
|
DecompressData:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
movl $0x4000000, %edi # imm = 0x4000000
movl $0x1, %esi
callq 0xa340
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movq -0x8(%rbp), %rdx
movl -0xc(%rbp), %ecx
movl $0x4000000, %esi # imm = 0x4000000
callq 0xc72c0
movl %eax, -0x24(%rbp)
movq -0x20(%rbp), %rdi
movslq -0x24(%rbp), %rsi
callq 0xa950
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0xd2328
movq -0x30(%rbp), %rax
movq %rax, -0x20(%rbp)
jmp 0xd233b
movl $0x4, %edi
leaq 0xe3a5e(%rip), %rsi # 0x1b5d92
movb $0x0, %al
callq 0x182c40
movl -0x24(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movl -0xc(%rbp), %edx
movq -0x18(%rbp), %rax
movl (%rax), %ecx
movl $0x3, %edi
leaq 0xe3a75(%rip), %rsi # 0x1b5dce
movb $0x0, %al
callq 0x182c40
movq -0x20(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
DecompressData:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov [rbp+var_20], 0
mov edi, 4000000h
mov esi, 1
call _calloc
mov [rbp+var_20], rax
mov rdi, [rbp+var_20]
mov rdx, [rbp+var_8]
mov ecx, [rbp+var_C]
mov esi, 4000000h
call sinflate
mov [rbp+var_24], eax
mov rdi, [rbp+var_20]
movsxd rsi, [rbp+var_24]
call _realloc
mov [rbp+var_30], rax
cmp [rbp+var_30], 0
jz short loc_D2328
mov rax, [rbp+var_30]
mov [rbp+var_20], rax
jmp short loc_D233B
loc_D2328:
mov edi, 4
lea rsi, aSystemFailedTo_0; "SYSTEM: Failed to re-allocate required "...
mov al, 0
call TraceLog
loc_D233B:
mov ecx, [rbp+var_24]
mov rax, [rbp+var_18]
mov [rax], ecx
mov edx, [rbp+var_C]
mov rax, [rbp+var_18]
mov ecx, [rax]
mov edi, 3
lea rsi, aSystemDecompre; "SYSTEM: Decompress data: Comp. size: %i"...
mov al, 0
call TraceLog
mov rax, [rbp+var_20]
add rsp, 30h
pop rbp
retn
|
long long DecompressData(long long a1, unsigned int a2, _DWORD *a3)
{
int v3; // edx
int v4; // ecx
int v5; // r8d
int v6; // r9d
long long v8; // [rsp+0h] [rbp-30h]
int v9; // [rsp+Ch] [rbp-24h]
long long v10; // [rsp+10h] [rbp-20h]
v10 = calloc(0x4000000LL, 1LL);
v9 = sinflate(v10, 0x4000000u, a1, a2);
v8 = realloc(v10, v9);
if ( v8 )
v10 = v8;
else
TraceLog(4, (unsigned int)"SYSTEM: Failed to re-allocate required decompression memory", v3, v4, v5, v6);
*a3 = v9;
TraceLog(3, (unsigned int)"SYSTEM: Decompress data: Comp. size: %i -> Original size: %i", a2, *a3, v5, v6);
return v10;
}
|
DecompressData:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],0x0
MOV EDI,0x4000000
MOV ESI,0x1
CALL 0x0010a340
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0xc]
MOV ESI,0x4000000
CALL 0x001c72c0
MOV dword ptr [RBP + -0x24],EAX
MOV RDI,qword ptr [RBP + -0x20]
MOVSXD RSI,dword ptr [RBP + -0x24]
CALL 0x0010a950
MOV qword ptr [RBP + -0x30],RAX
CMP qword ptr [RBP + -0x30],0x0
JZ 0x001d2328
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x20],RAX
JMP 0x001d233b
LAB_001d2328:
MOV EDI,0x4
LEA RSI,[0x2b5d92]
MOV AL,0x0
CALL 0x00282c40
LAB_001d233b:
MOV ECX,dword ptr [RBP + -0x24]
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX],ECX
MOV EDX,dword ptr [RBP + -0xc]
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RAX]
MOV EDI,0x3
LEA RSI,[0x2b5dce]
MOV AL,0x0
CALL 0x00282c40
MOV RAX,qword ptr [RBP + -0x20]
ADD RSP,0x30
POP RBP
RET
|
void * DecompressData(int8 param_1,int4 param_2,int *param_3)
{
int iVar1;
void *__ptr;
void *local_28;
__ptr = calloc(0x4000000,1);
iVar1 = sinflate(__ptr,0x4000000,param_1,param_2);
local_28 = realloc(__ptr,(long)iVar1);
if (local_28 == (void *)0x0) {
TraceLog(4,"SYSTEM: Failed to re-allocate required decompression memory");
local_28 = __ptr;
}
*param_3 = iVar1;
TraceLog(3,"SYSTEM: Decompress data: Comp. size: %i -> Original size: %i",param_2,*param_3);
return local_28;
}
|
|
16,265
|
coro::detail::sync_wait_task_promise_base::unhandled_exception()
|
AlayaLite/build_O3/_deps/libcoro-src/include/coro/sync_wait.hpp
|
auto unhandled_exception() -> void { m_exception = std::current_exception(); }
|
O3
|
cpp
|
coro::detail::sync_wait_task_promise_base::unhandled_exception():
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x21c0
movq (%r14), %rax
movq $0x0, (%r14)
movq 0x8(%rbx), %rcx
movq %rcx, 0x10(%rsp)
movq %rax, 0x8(%rbx)
testq %rcx, %rcx
je 0x2fd1
leaq 0x10(%rsp), %rdi
callq 0x2150
cmpq $0x0, 0x8(%rsp)
je 0x2fd1
leaq 0x8(%rsp), %rdi
callq 0x2150
addq $0x18, %rsp
popq %rbx
popq %r14
retq
nop
|
_ZN4coro6detail27sync_wait_task_promise_base19unhandled_exceptionEv:
push r14
push rbx
sub rsp, 18h
mov rbx, rdi
lea r14, [rsp+28h+var_20]
mov rdi, r14
call __ZSt17current_exceptionv; std::current_exception(void)
mov rax, [r14]
mov qword ptr [r14], 0
mov rcx, [rbx+8]
mov [rsp+28h+var_18], rcx
mov [rbx+8], rax
test rcx, rcx
jz short loc_2FD1
lea rdi, [rsp+28h+var_18]; this
call __ZNSt15__exception_ptr13exception_ptr10_M_releaseEv; std::__exception_ptr::exception_ptr::_M_release(void)
cmp [rsp+28h+var_20], 0
jz short loc_2FD1
lea rdi, [rsp+28h+var_20]; this
call __ZNSt15__exception_ptr13exception_ptr10_M_releaseEv; std::__exception_ptr::exception_ptr::_M_release(void)
loc_2FD1:
add rsp, 18h
pop rbx
pop r14
retn
|
long long coro::detail::sync_wait_task_promise_base::unhandled_exception(
coro::detail::sync_wait_task_promise_base *this)
{
long long result; // rax
long long v2; // rcx
long long v3; // [rsp+8h] [rbp-20h] BYREF
_QWORD v4[3]; // [rsp+10h] [rbp-18h] BYREF
std::current_exception();
result = v3;
v3 = 0LL;
v4[0] = *((_QWORD *)this + 1);
v2 = v4[0];
*((_QWORD *)this + 1) = result;
if ( v2 )
{
result = std::__exception_ptr::exception_ptr::_M_release((std::__exception_ptr::exception_ptr *)v4);
if ( v3 )
return std::__exception_ptr::exception_ptr::_M_release((std::__exception_ptr::exception_ptr *)&v3);
}
return result;
}
|
unhandled_exception:
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x001021c0
MOV RAX,qword ptr [R14]
MOV qword ptr [R14],0x0
MOV RCX,qword ptr [RBX + 0x8]
MOV qword ptr [RSP + 0x10],RCX
MOV qword ptr [RBX + 0x8],RAX
TEST RCX,RCX
JZ 0x00102fd1
LEA RDI,[RSP + 0x10]
CALL 0x00102150
CMP qword ptr [RSP + 0x8],0x0
JZ 0x00102fd1
LEA RDI,[RSP + 0x8]
CALL 0x00102150
LAB_00102fd1:
ADD RSP,0x18
POP RBX
POP R14
RET
|
/* WARNING: Removing unreachable block (ram,0x00102fc7) */
/* coro::detail::sync_wait_task_promise_base::unhandled_exception() */
void __thiscall
coro::detail::sync_wait_task_promise_base::unhandled_exception(sync_wait_task_promise_base *this)
{
long lVar1;
int8 local_20;
std::current_exception();
lVar1 = *(long *)(this + 8);
*(int8 *)(this + 8) = local_20;
if (lVar1 != 0) {
std::__exception_ptr::exception_ptr::_M_release();
}
return;
}
|
|
16,266
|
my_strnncollsp_latin1_de
|
eloqsql/strings/ctype-latin1.c
|
static int my_strnncollsp_latin1_de(CHARSET_INFO *cs __attribute__((unused)),
const uchar *a, size_t a_length,
const uchar *b, size_t b_length)
{
const uchar *a_end= a + a_length, *b_end= b + b_length;
uchar a_char, a_extend= 0, b_char, b_extend= 0;
while ((a < a_end || a_extend) && (b < b_end || b_extend))
{
if (a_extend)
{
a_char=a_extend;
a_extend= 0;
}
else
{
a_extend= combo2map[*a];
a_char= combo1map[*a++];
}
if (b_extend)
{
b_char= b_extend;
b_extend= 0;
}
else
{
b_extend= combo2map[*b];
b_char= combo1map[*b++];
}
if (a_char != b_char)
return (int) a_char - (int) b_char;
}
/* Check if double character last */
if (a_extend)
return 1;
if (b_extend)
return -1;
if (a < a_end)
return my_strnncollsp_padspace_bin(a, a_end - a);
if (b < b_end)
return -my_strnncollsp_padspace_bin(b, b_end - b);
return 0;
}
|
O0
|
c
|
my_strnncollsp_latin1_de:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq -0x18(%rbp), %rax
addq -0x20(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rax
addq -0x30(%rbp), %rax
movq %rax, -0x40(%rbp)
movb $0x0, -0x42(%rbp)
movb $0x0, -0x44(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x38(%rbp), %rax
jb 0xe3924
movzbl -0x42(%rbp), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x45(%rbp)
je 0xe3946
movq -0x28(%rbp), %rcx
movb $0x1, %al
cmpq -0x40(%rbp), %rcx
movb %al, -0x46(%rbp)
jb 0xe3940
movzbl -0x44(%rbp), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x46(%rbp)
movb -0x46(%rbp), %al
movb %al, -0x45(%rbp)
movb -0x45(%rbp), %al
testb $0x1, %al
jne 0xe3952
jmp 0xe3a04
cmpb $0x0, -0x42(%rbp)
je 0xe3964
movb -0x42(%rbp), %al
movb %al, -0x41(%rbp)
movb $0x0, -0x42(%rbp)
jmp 0xe399b
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x10586c(%rip), %rax # 0x1e91e0
movb (%rax,%rcx), %al
movb %al, -0x42(%rbp)
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x10574b(%rip), %rax # 0x1e90e0
movb (%rax,%rcx), %al
movb %al, -0x41(%rbp)
cmpb $0x0, -0x44(%rbp)
je 0xe39ad
movb -0x44(%rbp), %al
movb %al, -0x43(%rbp)
movb $0x0, -0x44(%rbp)
jmp 0xe39e4
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x105823(%rip), %rax # 0x1e91e0
movb (%rax,%rcx), %al
movb %al, -0x44(%rbp)
movq -0x28(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x28(%rbp)
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x105702(%rip), %rax # 0x1e90e0
movb (%rax,%rcx), %al
movb %al, -0x43(%rbp)
movzbl -0x41(%rbp), %eax
movzbl -0x43(%rbp), %ecx
cmpl %ecx, %eax
je 0xe39ff
movzbl -0x41(%rbp), %eax
movzbl -0x43(%rbp), %ecx
subl %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0xe3a75
jmp 0xe390c
cmpb $0x0, -0x42(%rbp)
je 0xe3a13
movl $0x1, -0x4(%rbp)
jmp 0xe3a75
cmpb $0x0, -0x44(%rbp)
je 0xe3a22
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xe3a75
movq -0x18(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0xe3a45
movq -0x18(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x18(%rbp), %rax
subq %rax, %rsi
callq 0xda4d0
movl %eax, -0x4(%rbp)
jmp 0xe3a75
movq -0x28(%rbp), %rax
cmpq -0x40(%rbp), %rax
jae 0xe3a6e
movq -0x28(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq -0x28(%rbp), %rax
subq %rax, %rsi
callq 0xda4d0
movl %eax, %ecx
xorl %eax, %eax
subl %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0xe3a75
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nop
|
my_strnncollsp_latin1_de:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov rax, [rbp+var_18]
add rax, [rbp+var_20]
mov [rbp+var_38], rax
mov rax, [rbp+var_28]
add rax, [rbp+var_30]
mov [rbp+var_40], rax
mov [rbp+var_42], 0
mov [rbp+var_44], 0
loc_E390C:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_38]
jb short loc_E3924
movzx ecx, [rbp+var_42]
xor eax, eax
cmp ecx, 0
mov [rbp+var_45], al
jz short loc_E3946
loc_E3924:
mov rcx, [rbp+var_28]
mov al, 1
cmp rcx, [rbp+var_40]
mov [rbp+var_46], al
jb short loc_E3940
movzx eax, [rbp+var_44]
cmp eax, 0
setnz al
mov [rbp+var_46], al
loc_E3940:
mov al, [rbp+var_46]
mov [rbp+var_45], al
loc_E3946:
mov al, [rbp+var_45]
test al, 1
jnz short loc_E3952
jmp loc_E3A04
loc_E3952:
cmp [rbp+var_42], 0
jz short loc_E3964
mov al, [rbp+var_42]
mov [rbp+var_41], al
mov [rbp+var_42], 0
jmp short loc_E399B
loc_E3964:
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax]
mov ecx, eax
lea rax, combo2map
mov al, [rax+rcx]
mov [rbp+var_42], al
mov rax, [rbp+var_18]
mov rcx, rax
add rcx, 1
mov [rbp+var_18], rcx
movzx eax, byte ptr [rax]
mov ecx, eax
lea rax, combo1map
mov al, [rax+rcx]
mov [rbp+var_41], al
loc_E399B:
cmp [rbp+var_44], 0
jz short loc_E39AD
mov al, [rbp+var_44]
mov [rbp+var_43], al
mov [rbp+var_44], 0
jmp short loc_E39E4
loc_E39AD:
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
mov ecx, eax
lea rax, combo2map
mov al, [rax+rcx]
mov [rbp+var_44], al
mov rax, [rbp+var_28]
mov rcx, rax
add rcx, 1
mov [rbp+var_28], rcx
movzx eax, byte ptr [rax]
mov ecx, eax
lea rax, combo1map
mov al, [rax+rcx]
mov [rbp+var_43], al
loc_E39E4:
movzx eax, [rbp+var_41]
movzx ecx, [rbp+var_43]
cmp eax, ecx
jz short loc_E39FF
movzx eax, [rbp+var_41]
movzx ecx, [rbp+var_43]
sub eax, ecx
mov [rbp+var_4], eax
jmp short loc_E3A75
loc_E39FF:
jmp loc_E390C
loc_E3A04:
cmp [rbp+var_42], 0
jz short loc_E3A13
mov [rbp+var_4], 1
jmp short loc_E3A75
loc_E3A13:
cmp [rbp+var_44], 0
jz short loc_E3A22
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_E3A75
loc_E3A22:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_38]
jnb short loc_E3A45
mov rdi, [rbp+var_18]
mov rsi, [rbp+var_38]
mov rax, [rbp+var_18]
sub rsi, rax
call my_strnncollsp_padspace_bin
mov [rbp+var_4], eax
jmp short loc_E3A75
loc_E3A45:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_40]
jnb short loc_E3A6E
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_40]
mov rax, [rbp+var_28]
sub rsi, rax
call my_strnncollsp_padspace_bin
mov ecx, eax
xor eax, eax
sub eax, ecx
mov [rbp+var_4], eax
jmp short loc_E3A75
loc_E3A6E:
mov [rbp+var_4], 0
loc_E3A75:
mov eax, [rbp+var_4]
add rsp, 50h
pop rbp
retn
|
long long my_strnncollsp_latin1_de(
long long a1,
unsigned __int8 *a2,
long long a3,
unsigned __int8 *a4,
long long a5)
{
unsigned __int8 *v5; // rax
unsigned __int8 *v6; // rax
bool v8; // [rsp+Ah] [rbp-46h]
bool v9; // [rsp+Bh] [rbp-45h]
unsigned __int8 v10; // [rsp+Ch] [rbp-44h]
unsigned __int8 v11; // [rsp+Dh] [rbp-43h]
unsigned __int8 v12; // [rsp+Eh] [rbp-42h]
unsigned __int8 v13; // [rsp+Fh] [rbp-41h]
unsigned long long v14; // [rsp+10h] [rbp-40h]
unsigned long long v15; // [rsp+18h] [rbp-38h]
unsigned __int8 *v16; // [rsp+28h] [rbp-28h]
unsigned __int8 *v17; // [rsp+38h] [rbp-18h]
v17 = a2;
v16 = a4;
v15 = (unsigned long long)&a2[a3];
v14 = (unsigned long long)&a4[a5];
v12 = 0;
v10 = 0;
while ( 1 )
{
if ( (unsigned long long)v17 < v15 || (v9 = 0, v12) )
{
v8 = 1;
if ( (unsigned long long)v16 >= v14 )
v8 = v10 != 0;
v9 = v8;
}
if ( !v9 )
break;
if ( v12 )
{
v13 = v12;
v12 = 0;
}
else
{
v12 = combo2map[*v17];
v5 = v17++;
v13 = combo1map[*v5];
}
if ( v10 )
{
v11 = v10;
v10 = 0;
}
else
{
v10 = combo2map[*v16];
v6 = v16++;
v11 = combo1map[*v6];
}
if ( v13 != v11 )
return (unsigned int)(v13 - v11);
}
if ( v12 )
{
return 1;
}
else if ( v10 )
{
return (unsigned int)-1;
}
else if ( (unsigned long long)v17 >= v15 )
{
if ( (unsigned long long)v16 >= v14 )
return 0;
else
return (unsigned int)-(int)my_strnncollsp_padspace_bin(v16, v14 - (_QWORD)v16);
}
else
{
return (unsigned int)my_strnncollsp_padspace_bin(v17, v15 - (_QWORD)v17);
}
}
|
my_strnncollsp_latin1_de:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x40],RAX
MOV byte ptr [RBP + -0x42],0x0
MOV byte ptr [RBP + -0x44],0x0
LAB_001e390c:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x38]
JC 0x001e3924
MOVZX ECX,byte ptr [RBP + -0x42]
XOR EAX,EAX
CMP ECX,0x0
MOV byte ptr [RBP + -0x45],AL
JZ 0x001e3946
LAB_001e3924:
MOV RCX,qword ptr [RBP + -0x28]
MOV AL,0x1
CMP RCX,qword ptr [RBP + -0x40]
MOV byte ptr [RBP + -0x46],AL
JC 0x001e3940
MOVZX EAX,byte ptr [RBP + -0x44]
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x46],AL
LAB_001e3940:
MOV AL,byte ptr [RBP + -0x46]
MOV byte ptr [RBP + -0x45],AL
LAB_001e3946:
MOV AL,byte ptr [RBP + -0x45]
TEST AL,0x1
JNZ 0x001e3952
JMP 0x001e3a04
LAB_001e3952:
CMP byte ptr [RBP + -0x42],0x0
JZ 0x001e3964
MOV AL,byte ptr [RBP + -0x42]
MOV byte ptr [RBP + -0x41],AL
MOV byte ptr [RBP + -0x42],0x0
JMP 0x001e399b
LAB_001e3964:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x2e91e0]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RBP + -0x42],AL
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x18],RCX
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x2e90e0]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RBP + -0x41],AL
LAB_001e399b:
CMP byte ptr [RBP + -0x44],0x0
JZ 0x001e39ad
MOV AL,byte ptr [RBP + -0x44]
MOV byte ptr [RBP + -0x43],AL
MOV byte ptr [RBP + -0x44],0x0
JMP 0x001e39e4
LAB_001e39ad:
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x2e91e0]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RBP + -0x44],AL
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x28],RCX
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x2e90e0]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RBP + -0x43],AL
LAB_001e39e4:
MOVZX EAX,byte ptr [RBP + -0x41]
MOVZX ECX,byte ptr [RBP + -0x43]
CMP EAX,ECX
JZ 0x001e39ff
MOVZX EAX,byte ptr [RBP + -0x41]
MOVZX ECX,byte ptr [RBP + -0x43]
SUB EAX,ECX
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001e3a75
LAB_001e39ff:
JMP 0x001e390c
LAB_001e3a04:
CMP byte ptr [RBP + -0x42],0x0
JZ 0x001e3a13
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001e3a75
LAB_001e3a13:
CMP byte ptr [RBP + -0x44],0x0
JZ 0x001e3a22
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x001e3a75
LAB_001e3a22:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x38]
JNC 0x001e3a45
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x18]
SUB RSI,RAX
CALL 0x001da4d0
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001e3a75
LAB_001e3a45:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x40]
JNC 0x001e3a6e
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x28]
SUB RSI,RAX
CALL 0x001da4d0
MOV ECX,EAX
XOR EAX,EAX
SUB EAX,ECX
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001e3a75
LAB_001e3a6e:
MOV dword ptr [RBP + -0x4],0x0
LAB_001e3a75:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x50
POP RBP
RET
|
int my_strnncollsp_latin1_de
(int8 param_1,byte *param_2,long param_3,byte *param_4,long param_5)
{
int iVar1;
byte *pbVar2;
byte *pbVar3;
bool local_4e;
byte local_4c;
byte local_4b;
byte local_4a;
byte local_49;
byte *local_30;
byte *local_20;
pbVar2 = param_2 + param_3;
pbVar3 = param_4 + param_5;
local_4a = 0;
local_4c = 0;
local_30 = param_4;
local_20 = param_2;
while( true ) {
if ((local_20 < pbVar2) || (local_4e = false, local_4a != 0)) {
local_4e = local_30 < pbVar3 || local_4c != 0;
}
if (!local_4e) break;
if (local_4a == 0) {
local_4a = combo2map[*local_20];
local_49 = combo1map[*local_20];
local_20 = local_20 + 1;
}
else {
local_49 = local_4a;
local_4a = 0;
}
if (local_4c == 0) {
local_4c = combo2map[*local_30];
local_4b = combo1map[*local_30];
local_30 = local_30 + 1;
}
else {
local_4b = local_4c;
local_4c = 0;
}
if (local_49 != local_4b) {
return (uint)local_49 - (uint)local_4b;
}
}
if (local_4a != 0) {
return 1;
}
if (local_4c != 0) {
return -1;
}
if (local_20 < pbVar2) {
iVar1 = my_strnncollsp_padspace_bin(local_20,(long)pbVar2 - (long)local_20);
return iVar1;
}
if (local_30 < pbVar3) {
iVar1 = my_strnncollsp_padspace_bin(local_30,(long)pbVar3 - (long)local_30);
return -iVar1;
}
return 0;
}
|
|
16,267
|
ftxui::ConstRef<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::~ConstRef()
|
Andrewchistyakov[P]flashcards_lyc/build_O1/_deps/ftxui-src/include/ftxui/util/ref.hpp
|
ConstRef() = default;
|
O1
|
cpp
|
ftxui::ConstRef<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::~ConstRef():
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movzbl 0x20(%rdi), %eax
leaq 0x22331(%rip), %rcx # 0x59580
leaq 0xf(%rsp), %rdi
movq %rbx, %rsi
callq *(%rcx,%rax,8)
movb $-0x1, 0x20(%rbx)
addq $0x10, %rsp
popq %rbx
retq
movq %rax, %rdi
callq 0x106a9
|
_ZN5ftxui8ConstRefINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev:
push rbx
sub rsp, 10h
mov rbx, rdi
movzx eax, byte ptr [rdi+20h]
lea rcx, _ZNSt8__detail9__variant12__gen_vtableIvOZNS0_16_Variant_storageILb0EJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKS8_EE8_M_resetEvEUlOT_E_JRSt7variantIJS8_SA_EEEE9_S_vtableE; std::__detail::__variant::__gen_vtable<void,std::__detail::__variant::_Variant_storage<false,std::string,std::string const*>::_M_reset(void)::{lambda(void &&)#1} &&,std::variant<std::string,std::string const*> &>::_S_vtable
lea rdi, [rsp+18h+var_9]
mov rsi, rbx
call ds:(_ZNSt8__detail9__variant12__gen_vtableIvOZNS0_16_Variant_storageILb0EJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKS8_EE8_M_resetEvEUlOT_E_JRSt7variantIJS8_SA_EEEE9_S_vtableE - 59580h)[rcx+rax*8]; std::__throw_logic_error(char const*)
mov byte ptr [rbx+20h], 0FFh
add rsp, 10h
pop rbx
retn
mov rdi, rax
call __clang_call_terminate
|
long long ftxui::ConstRef<std::string>::~ConstRef(long long a1)
{
long long result; // rax
_BYTE v2[9]; // [rsp+Fh] [rbp-9h] BYREF
result = ((long long ( *)(_BYTE *, long long))std::__detail::__variant::__gen_vtable<void,std::__detail::__variant::_Variant_storage<false,std::string,std::string const*>::_M_reset(void)::{lambda(void &&)#1} &&,std::variant<std::string,std::string const*> &>::_S_vtable[*(unsigned __int8 *)(a1 + 32)])(
v2,
a1);
*(_BYTE *)(a1 + 32) = -1;
return result;
}
|
~ConstRef:
PUSH RBX
SUB RSP,0x10
MOV RBX,RDI
MOVZX EAX,byte ptr [RDI + 0x20]
LEA RCX,[0x159580]
LAB_0013724f:
LEA RDI,[RSP + 0xf]
MOV RSI,RBX
CALL qword ptr [RCX + RAX*0x8]
MOV byte ptr [RBX + 0x20],0xff
ADD RSP,0x10
POP RBX
RET
|
/* ftxui::ConstRef<std::__cxx11::string >::~ConstRef() */
void __thiscall
ftxui::ConstRef<std::__cxx11::string>::~ConstRef(ConstRef<std::__cxx11::string> *this)
{
int1 local_9;
/* try { // try from 0013724f to 00137259 has its CatchHandler @ 00137264 */
(**(code **)(std::__detail::__variant::
__gen_vtable<void,std::__detail::__variant::_Variant_storage<false,std::__cxx11::string,std::__cxx11::string_const*>::_M_reset()::{lambda(auto:1&&)#1}&&,std::variant<std::__cxx11::string,std::__cxx11::string_const*>&>
::_S_vtable + (ulong)(byte)this[0x20] * 8))(&local_9,this);
this[0x20] = (ConstRef<std::__cxx11::string>)0xff;
return;
}
|
|
16,268
|
check_lookbehinds
|
eloqsql/build_O3/extra/pcre2/src/pcre2/src/pcre2_compile.c
|
static int
check_lookbehinds(uint32_t *pptr, uint32_t **retptr,
parsed_recurse_check *recurses, compile_block *cb, int *lcptr)
{
int errorcode = 0;
int nestlevel = 0;
cb->erroroffset = PCRE2_UNSET;
for (; *pptr != META_END; pptr++)
{
if (*pptr < META_END) continue; /* Literal */
switch (META_CODE(*pptr))
{
default:
return ERR70; /* Unrecognized meta code */
case META_ESCAPE:
if (*pptr - META_ESCAPE == ESC_P || *pptr - META_ESCAPE == ESC_p)
pptr += 1;
break;
case META_KET:
if (--nestlevel < 0)
{
if (retptr != NULL) *retptr = pptr;
return 0;
}
break;
case META_ATOMIC:
case META_CAPTURE:
case META_COND_ASSERT:
case META_LOOKAHEAD:
case META_LOOKAHEADNOT:
case META_LOOKAHEAD_NA:
case META_NOCAPTURE:
case META_SCRIPT_RUN:
nestlevel++;
break;
case META_ACCEPT:
case META_ALT:
case META_ASTERISK:
case META_ASTERISK_PLUS:
case META_ASTERISK_QUERY:
case META_BACKREF:
case META_CIRCUMFLEX:
case META_CLASS:
case META_CLASS_EMPTY:
case META_CLASS_EMPTY_NOT:
case META_CLASS_END:
case META_CLASS_NOT:
case META_COMMIT:
case META_DOLLAR:
case META_DOT:
case META_FAIL:
case META_PLUS:
case META_PLUS_PLUS:
case META_PLUS_QUERY:
case META_PRUNE:
case META_QUERY:
case META_QUERY_PLUS:
case META_QUERY_QUERY:
case META_RANGE_ESCAPED:
case META_RANGE_LITERAL:
case META_SKIP:
case META_THEN:
break;
case META_RECURSE:
pptr += SIZEOFFSET;
break;
case META_BACKREF_BYNAME:
case META_RECURSE_BYNAME:
pptr += 1 + SIZEOFFSET;
break;
case META_COND_DEFINE:
pptr += SIZEOFFSET;
nestlevel++;
break;
case META_COND_NAME:
case META_COND_NUMBER:
case META_COND_RNAME:
case META_COND_RNUMBER:
pptr += 1 + SIZEOFFSET;
nestlevel++;
break;
case META_COND_VERSION:
pptr += 3;
nestlevel++;
break;
case META_CALLOUT_STRING:
pptr += 3 + SIZEOFFSET;
break;
case META_BIGVALUE:
case META_OPTIONS:
case META_POSIX:
case META_POSIX_NEG:
pptr += 1;
break;
case META_MINMAX:
case META_MINMAX_QUERY:
case META_MINMAX_PLUS:
pptr += 2;
break;
case META_CALLOUT_NUMBER:
pptr += 3;
break;
case META_MARK:
case META_COMMIT_ARG:
case META_PRUNE_ARG:
case META_SKIP_ARG:
case META_THEN_ARG:
pptr += 1 + pptr[1];
break;
case META_LOOKBEHIND:
case META_LOOKBEHINDNOT:
case META_LOOKBEHIND_NA:
if (!set_lookbehind_lengths(&pptr, &errorcode, lcptr, recurses, cb))
return errorcode;
break;
}
}
return 0;
}
|
O3
|
c
|
check_lookbehinds:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %r10
movq %rdi, -0x38(%rbp)
movl $0x0, -0x2c(%rbp)
movq $-0x1, 0xa8(%rcx)
movl (%rdi), %eax
movl %eax, %ecx
negl %ecx
jo 0xa7066
movq %rdx, %r9
movq %rsi, -0x48(%rbp)
xorl %r11d, %r11d
leaq 0x701ff(%rip), %rbx # 0x11719c
leaq -0x38(%rbp), %r14
leaq -0x2c(%rbp), %rsi
testl %eax, %eax
jns 0xa704e
leal 0x7fff0000(%rax), %ecx
shrl $0x10, %ecx
cmpl $0x3e, %ecx
ja 0xa707c
movslq (%rbx,%rcx,4), %rcx
addq %rbx, %rcx
jmpq *%rcx
addq $0xc, %rdi
incl %r11d
jmp 0xa704e
movl 0x4(%rdi), %eax
incl %eax
leaq (%rdi,%rax,4), %rdi
jmp 0xa704e
addq $0x8, %rdi
jmp 0xa704e
addq $0x4, %rdi
jmp 0xa704e
addq $0xc, %rdi
jmp 0xa704e
movl %r11d, -0x3c(%rbp)
movq %r14, %rdi
movq %r8, %r12
movq %r8, %rdx
movq %r9, %r15
movq %r9, %rcx
movq %r10, %r13
movq %r10, %r8
callq 0xab4b1
testl %eax, %eax
je 0xa7077
movq -0x38(%rbp), %rdi
movq %r12, %r8
movq %r15, %r9
movq %r13, %r10
movl -0x3c(%rbp), %r11d
leaq -0x2c(%rbp), %rsi
jmp 0xa704e
addq $0x8, %rdi
jmp 0xa6fcc
addl $0x7fe7fff1, %eax # imm = 0x7FE7FFF1
xorl %ecx, %ecx
cmpl $0x2, %eax
setb %cl
leaq (%rdi,%rcx,4), %rdi
jmp 0xa704e
addq $0x14, %rdi
jmp 0xa704e
testl %r11d, %r11d
jle 0xa7083
decl %r11d
leaq 0x4(%rdi), %rcx
movq %rcx, -0x38(%rbp)
movl 0x4(%rdi), %eax
movl %eax, %edx
negl %edx
movq %rcx, %rdi
jno 0xa6fa5
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl -0x2c(%rbp), %eax
jmp 0xa7068
movl $0xaa, %eax
jmp 0xa7068
xorl %eax, %eax
movq -0x48(%rbp), %rcx
testq %rcx, %rcx
je 0xa7068
movq %rdi, (%rcx)
jmp 0xa7068
|
check_lookbehinds:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r10, rcx
mov [rbp+var_38], rdi
mov [rbp+var_2C], 0
mov qword ptr [rcx+0A8h], 0FFFFFFFFFFFFFFFFh
mov eax, [rdi]
mov ecx, eax
neg ecx
jo loc_A7066
mov r9, rdx
mov [rbp+var_48], rsi
xor r11d, r11d
lea rbx, jpt_A6FC6
lea r14, [rbp+var_38]
lea rsi, [rbp+var_2C]
loc_A6FA5:
test eax, eax
jns loc_A704E; jumptable 00000000000A6FC6 cases 0,2,8-13,21,22,29,30,41-43,45,47,49,51-59
lea ecx, [rax+7FFF0000h]
shr ecx, 10h
cmp ecx, 3Eh; switch 63 cases
ja def_A6FC6; jumptable 00000000000A6FC6 default case
movsxd rcx, ds:(jpt_A6FC6 - 11719Ch)[rbx+rcx*4]
add rcx, rbx
jmp rcx; switch jump
loc_A6FC8:
add rdi, 0Ch; jumptable 00000000000A6FC6 cases 16-20
loc_A6FCC:
inc r11d; jumptable 00000000000A6FC6 cases 1,7,14,25,33-35,38
jmp short loc_A704E; jumptable 00000000000A6FC6 cases 0,2,8-13,21,22,29,30,41-43,45,47,49,51-59
loc_A6FD1:
mov eax, [rdi+4]; jumptable 00000000000A6FC6 cases 40,44,46,48,50
inc eax
lea rdi, [rdi+rax*4]
jmp short loc_A704E; jumptable 00000000000A6FC6 cases 0,2,8-13,21,22,29,30,41-43,45,47,49,51-59
loc_A6FDC:
add rdi, 8; jumptable 00000000000A6FC6 cases 31,60-62
jmp short loc_A704E; jumptable 00000000000A6FC6 cases 0,2,8-13,21,22,29,30,41-43,45,47,49,51-59
loc_A6FE2:
add rdi, 4; jumptable 00000000000A6FC6 cases 4,26-28
jmp short loc_A704E; jumptable 00000000000A6FC6 cases 0,2,8-13,21,22,29,30,41-43,45,47,49,51-59
loc_A6FE8:
add rdi, 0Ch; jumptable 00000000000A6FC6 cases 3,5,32
jmp short loc_A704E; jumptable 00000000000A6FC6 cases 0,2,8-13,21,22,29,30,41-43,45,47,49,51-59
loc_A6FEE:
mov [rbp+var_3C], r11d; jumptable 00000000000A6FC6 cases 36,37,39
mov rdi, r14
mov r12, r8
mov rdx, r8
mov r15, r9
mov rcx, r9
mov r13, r10
mov r8, r10
call set_lookbehind_lengths
test eax, eax
jz short loc_A7077
mov rdi, [rbp+var_38]
mov r8, r12
mov r9, r15
mov r10, r13
mov r11d, [rbp+var_3C]
lea rsi, [rbp+var_2C]
jmp short loc_A704E; jumptable 00000000000A6FC6 cases 0,2,8-13,21,22,29,30,41-43,45,47,49,51-59
loc_A7027:
add rdi, 8; jumptable 00000000000A6FC6 case 15
jmp short loc_A6FCC; jumptable 00000000000A6FC6 cases 1,7,14,25,33-35,38
loc_A702D:
add eax, 7FE7FFF1h; jumptable 00000000000A6FC6 case 23
xor ecx, ecx
cmp eax, 2
setb cl
lea rdi, [rdi+rcx*4]
jmp short loc_A704E; jumptable 00000000000A6FC6 cases 0,2,8-13,21,22,29,30,41-43,45,47,49,51-59
loc_A7040:
add rdi, 14h; jumptable 00000000000A6FC6 case 6
jmp short loc_A704E; jumptable 00000000000A6FC6 cases 0,2,8-13,21,22,29,30,41-43,45,47,49,51-59
loc_A7046:
test r11d, r11d; jumptable 00000000000A6FC6 case 24
jle short loc_A7083
dec r11d
loc_A704E:
lea rcx, [rdi+4]; jumptable 00000000000A6FC6 cases 0,2,8-13,21,22,29,30,41-43,45,47,49,51-59
mov [rbp+var_38], rcx
mov eax, [rdi+4]
mov edx, eax
neg edx
mov rdi, rcx
jno loc_A6FA5
loc_A7066:
xor eax, eax
loc_A7068:
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_A7077:
mov eax, [rbp+var_2C]
jmp short loc_A7068
def_A6FC6:
mov eax, 0AAh; jumptable 00000000000A6FC6 default case
jmp short loc_A7068
loc_A7083:
xor eax, eax
mov rcx, [rbp+var_48]
test rcx, rcx
jz short loc_A7068
mov [rcx], rdi
jmp short loc_A7068
|
long long check_lookbehinds(int *a1, int **a2, long long a3, long long a4, long long a5)
{
long long v5; // r10
int v6; // eax
int v8; // r11d
long long v9; // r12
long long v10; // r15
long long v11; // r13
long long result; // rax
int v13; // [rsp+14h] [rbp-3Ch]
int *v14; // [rsp+18h] [rbp-38h] BYREF
unsigned int v15[11]; // [rsp+24h] [rbp-2Ch] BYREF
v5 = a4;
v14 = a1;
v15[0] = 0;
*(_QWORD *)(a4 + 168) = -1LL;
v6 = *a1;
if ( __OFSUB__(-*a1, 1) )
return 0LL;
v8 = 0;
while ( v6 >= 0 )
{
LABEL_18:
v14 = a1 + 1;
v6 = a1[1];
++a1;
if ( __OFSUB__(-v6, 1) )
return 0LL;
}
switch ( (unsigned int)(v6 + 2147418112) >> 16 )
{
case 0u:
case 2u:
case 8u:
case 9u:
case 0xAu:
case 0xBu:
case 0xCu:
case 0xDu:
case 0x15u:
case 0x16u:
case 0x1Du:
case 0x1Eu:
case 0x29u:
case 0x2Au:
case 0x2Bu:
case 0x2Du:
case 0x2Fu:
case 0x31u:
case 0x33u:
case 0x34u:
case 0x35u:
case 0x36u:
case 0x37u:
case 0x38u:
case 0x39u:
case 0x3Au:
case 0x3Bu:
goto LABEL_18;
case 1u:
case 7u:
case 0xEu:
case 0x19u:
case 0x21u:
case 0x22u:
case 0x23u:
case 0x26u:
goto LABEL_6;
case 3u:
case 5u:
case 0x20u:
a1 += 3;
goto LABEL_18;
case 4u:
case 0x1Au:
case 0x1Bu:
case 0x1Cu:
++a1;
goto LABEL_18;
case 6u:
a1 += 5;
goto LABEL_18;
case 0xFu:
a1 += 2;
goto LABEL_6;
case 0x10u:
case 0x11u:
case 0x12u:
case 0x13u:
case 0x14u:
a1 += 3;
LABEL_6:
++v8;
goto LABEL_18;
case 0x17u:
a1 += (unsigned int)(v6 + 2145910769) < 2;
goto LABEL_18;
case 0x18u:
if ( v8 > 0 )
{
--v8;
goto LABEL_18;
}
result = 0LL;
if ( a2 )
*a2 = a1;
return result;
case 0x1Fu:
case 0x3Cu:
case 0x3Du:
case 0x3Eu:
a1 += 2;
goto LABEL_18;
case 0x24u:
case 0x25u:
case 0x27u:
v13 = v8;
v9 = a5;
v10 = a3;
v11 = v5;
if ( !(unsigned int)set_lookbehind_lengths(&v14, v15, a5, a3, v5) )
return v15[0];
a1 = v14;
a5 = v9;
a3 = v10;
v5 = v11;
v8 = v13;
goto LABEL_18;
case 0x28u:
case 0x2Cu:
case 0x2Eu:
case 0x30u:
case 0x32u:
a1 += (unsigned int)(a1[1] + 1);
goto LABEL_18;
default:
return 170LL;
}
}
|
check_lookbehinds:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R10,RCX
MOV qword ptr [RBP + -0x38],RDI
MOV dword ptr [RBP + -0x2c],0x0
MOV qword ptr [RCX + 0xa8],-0x1
MOV EAX,dword ptr [RDI]
MOV ECX,EAX
NEG ECX
JO 0x001a7066
MOV R9,RDX
MOV qword ptr [RBP + -0x48],RSI
XOR R11D,R11D
LEA RBX,[0x21719c]
LEA R14,[RBP + -0x38]
LEA RSI,[RBP + -0x2c]
LAB_001a6fa5:
TEST EAX,EAX
JNS 0x001a704e
LEA ECX,[RAX + 0x7fff0000]
SHR ECX,0x10
CMP ECX,0x3e
JA 0x001a707c
MOVSXD RCX,dword ptr [RBX + RCX*0x4]
ADD RCX,RBX
switchD:
JMP RCX
caseD_10:
ADD RDI,0xc
caseD_1:
INC R11D
JMP 0x001a704e
caseD_28:
MOV EAX,dword ptr [RDI + 0x4]
INC EAX
LEA RDI,[RDI + RAX*0x4]
JMP 0x001a704e
caseD_1f:
ADD RDI,0x8
JMP 0x001a704e
caseD_4:
ADD RDI,0x4
JMP 0x001a704e
caseD_3:
ADD RDI,0xc
JMP 0x001a704e
caseD_24:
MOV dword ptr [RBP + -0x3c],R11D
MOV RDI,R14
MOV R12,R8
MOV RDX,R8
MOV R15,R9
MOV RCX,R9
MOV R13,R10
MOV R8,R10
CALL 0x001ab4b1
TEST EAX,EAX
JZ 0x001a7077
MOV RDI,qword ptr [RBP + -0x38]
MOV R8,R12
MOV R9,R15
MOV R10,R13
MOV R11D,dword ptr [RBP + -0x3c]
LEA RSI,[RBP + -0x2c]
JMP 0x001a704e
caseD_f:
ADD RDI,0x8
JMP 0x001a6fcc
caseD_17:
ADD EAX,0x7fe7fff1
XOR ECX,ECX
CMP EAX,0x2
SETC CL
LEA RDI,[RDI + RCX*0x4]
JMP 0x001a704e
caseD_6:
ADD RDI,0x14
JMP 0x001a704e
caseD_18:
TEST R11D,R11D
JLE 0x001a7083
DEC R11D
caseD_0:
LEA RCX,[RDI + 0x4]
MOV qword ptr [RBP + -0x38],RCX
MOV EAX,dword ptr [RDI + 0x4]
MOV EDX,EAX
NEG EDX
MOV RDI,RCX
JNO 0x001a6fa5
LAB_001a7066:
XOR EAX,EAX
LAB_001a7068:
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001a7077:
MOV EAX,dword ptr [RBP + -0x2c]
JMP 0x001a7068
default:
MOV EAX,0xaa
JMP 0x001a7068
LAB_001a7083:
XOR EAX,EAX
MOV RCX,qword ptr [RBP + -0x48]
TEST RCX,RCX
JZ 0x001a7068
MOV qword ptr [RCX],RDI
JMP 0x001a7068
|
/* WARNING: Removing unreachable block (ram,0x001a7066) */
int4
check_lookbehinds(int *param_1,int8 *param_2,int8 param_3,long param_4,
int8 param_5)
{
int iVar1;
int iVar2;
int *local_40;
int4 local_34;
local_34 = 0;
*(int8 *)(param_4 + 0xa8) = 0xffffffffffffffff;
iVar1 = *param_1;
iVar2 = 0;
local_40 = param_1;
do {
if (-1 < iVar1) goto switchD_001a6fc6_caseD_0;
switch(iVar1 + 0x7fff0000U >> 0x10) {
case 0:
case 2:
case 8:
case 9:
case 10:
case 0xb:
case 0xc:
case 0xd:
case 0x15:
case 0x16:
case 0x1d:
case 0x1e:
case 0x29:
case 0x2a:
case 0x2b:
case 0x2d:
case 0x2f:
case 0x31:
case 0x33:
case 0x34:
case 0x35:
case 0x36:
case 0x37:
case 0x38:
case 0x39:
case 0x3a:
case 0x3b:
break;
case 1:
case 7:
case 0xe:
case 0x19:
case 0x21:
case 0x22:
case 0x23:
case 0x26:
goto switchD_001a6fc6_caseD_1;
case 3:
case 5:
case 0x20:
local_40 = local_40 + 3;
break;
case 4:
case 0x1a:
case 0x1b:
case 0x1c:
local_40 = local_40 + 1;
break;
case 6:
local_40 = local_40 + 5;
break;
case 0xf:
local_40 = local_40 + 2;
goto switchD_001a6fc6_caseD_1;
case 0x10:
case 0x11:
case 0x12:
case 0x13:
case 0x14:
local_40 = local_40 + 3;
switchD_001a6fc6_caseD_1:
iVar2 = iVar2 + 1;
break;
case 0x17:
local_40 = local_40 + (iVar1 + 0x7fe7fff1U < 2);
break;
case 0x18:
if (iVar2 < 1) {
if (param_2 == (int8 *)0x0) {
return 0;
}
*param_2 = local_40;
return 0;
}
iVar2 = iVar2 + -1;
break;
case 0x1f:
case 0x3c:
case 0x3d:
case 0x3e:
local_40 = local_40 + 2;
break;
case 0x24:
case 0x25:
case 0x27:
iVar1 = set_lookbehind_lengths(&local_40,&local_34,param_5,param_3,param_4);
if (iVar1 == 0) {
return local_34;
}
break;
case 0x28:
case 0x2c:
case 0x2e:
case 0x30:
case 0x32:
local_40 = local_40 + (local_40[1] + 1);
break;
default:
return 0xaa;
}
switchD_001a6fc6_caseD_0:
iVar1 = local_40[1];
local_40 = local_40 + 1;
} while( true );
}
|
|
16,269
|
HUDButton::handleEvents(SDL_Event&)
|
GhostEscape/src/screen/hud_button.cpp
|
bool HUDButton::handleEvents(SDL_Event &event)
{
if (event.type == SDL_EVENT_MOUSE_BUTTON_DOWN) {
if (event.button.button == SDL_BUTTON_LEFT) {
if (is_hover_){
is_press_ = true;
game_.playSound("assets/sound/UI_button08.wav");
return true;
}
}
} else if (event.type == SDL_EVENT_MOUSE_BUTTON_UP) {
if (event.button.button == SDL_BUTTON_LEFT) {
is_press_ = false;
if (is_hover_){
is_trigger_ = true;
return true;
}
}
}
return false;
}
|
O0
|
cpp
|
HUDButton::handleEvents(SDL_Event&):
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x30(%rbp)
movq %rsi, -0x38(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x38(%rbp), %rax
cmpl $0x401, (%rax) # imm = 0x401
jne 0x17255
movq -0x38(%rbp), %rax
movzbl 0x18(%rax), %eax
cmpl $0x1, %eax
jne 0x17253
movq -0x78(%rbp), %rax
testb $0x1, 0x70(%rax)
je 0x17251
movq -0x78(%rbp), %rax
movb $0x1, 0x71(%rax)
movq 0x10(%rax), %rax
movq %rax, -0x80(%rbp)
leaq -0x59(%rbp), %rdx
movq %rdx, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
leaq 0xb126(%rip), %rsi # 0x22307
leaq -0x58(%rbp), %rdi
callq 0x7b70
jmp 0x171ec
movq -0x80(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x17670
jmp 0x171fb
leaq -0x58(%rbp), %rdi
callq 0x62c0
leaq -0x59(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
callq 0x9fa0
movb $0x1, -0x21(%rbp)
jmp 0x17294
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x1723e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x62c0
leaq -0x59(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x9fa0
jmp 0x172a2
jmp 0x17253
jmp 0x17290
movq -0x38(%rbp), %rax
cmpl $0x402, (%rax) # imm = 0x402
jne 0x1728e
movq -0x38(%rbp), %rax
movzbl 0x18(%rax), %eax
cmpl $0x1, %eax
jne 0x1728c
movq -0x78(%rbp), %rax
movb $0x0, 0x71(%rax)
testb $0x1, 0x70(%rax)
je 0x1728a
movq -0x78(%rbp), %rax
movb $0x1, 0x72(%rax)
movb $0x1, -0x21(%rbp)
jmp 0x17294
jmp 0x1728c
jmp 0x1728e
jmp 0x17290
movb $0x0, -0x21(%rbp)
movb -0x21(%rbp), %al
andb $0x1, %al
addq $0x80, %rsp
popq %rbp
retq
movq -0x68(%rbp), %rdi
callq 0x6750
nopl (%rax,%rax)
|
_ZN9HUDButton12handleEventsER9SDL_Event:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_30], rdi
mov [rbp+var_38], rsi
mov rax, [rbp+var_30]
mov [rbp+var_78], rax
mov rax, [rbp+var_38]
cmp dword ptr [rax], 401h
jnz loc_17255
mov rax, [rbp+var_38]
movzx eax, byte ptr [rax+18h]
cmp eax, 1
jnz loc_17253
mov rax, [rbp+var_78]
test byte ptr [rax+70h], 1
jz loc_17251
mov rax, [rbp+var_78]
mov byte ptr [rax+71h], 1
mov rax, [rax+10h]
mov [rbp+var_80], rax
lea rdx, [rbp+var_59]
mov [rbp+var_20], rdx
mov rax, [rbp+var_20]
mov [rbp+var_8], rax
lea rsi, aAssetsSoundUiB; "assets/sound/UI_button08.wav"
lea rdi, [rbp+var_58]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_171EC:
mov rdi, [rbp+var_80]
lea rsi, [rbp+var_58]
call _ZN4Game9playSoundERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; Game::playSound(std::string const&)
jmp short $+2
loc_171FB:
lea rdi, [rbp+var_58]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rax, [rbp+var_59]
mov [rbp+var_18], rax
mov rdi, [rbp+var_18]
call _ZNSt15__new_allocatorIcED2Ev; std::__new_allocator<char>::~__new_allocator()
mov [rbp+var_21], 1
jmp short loc_17294
mov rcx, rax
mov eax, edx
mov [rbp+var_68], rcx
mov [rbp+var_6C], eax
jmp short loc_1723E
mov rcx, rax
mov eax, edx
mov [rbp+var_68], rcx
mov [rbp+var_6C], eax
lea rdi, [rbp+var_58]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_1723E:
lea rax, [rbp+var_59]
mov [rbp+var_10], rax
mov rdi, [rbp+var_10]
call _ZNSt15__new_allocatorIcED2Ev; std::__new_allocator<char>::~__new_allocator()
jmp short loc_172A2
loc_17251:
jmp short $+2
loc_17253:
jmp short loc_17290
loc_17255:
mov rax, [rbp+var_38]
cmp dword ptr [rax], 402h
jnz short loc_1728E
mov rax, [rbp+var_38]
movzx eax, byte ptr [rax+18h]
cmp eax, 1
jnz short loc_1728C
mov rax, [rbp+var_78]
mov byte ptr [rax+71h], 0
test byte ptr [rax+70h], 1
jz short loc_1728A
mov rax, [rbp+var_78]
mov byte ptr [rax+72h], 1
mov [rbp+var_21], 1
jmp short loc_17294
loc_1728A:
jmp short $+2
loc_1728C:
jmp short $+2
loc_1728E:
jmp short $+2
loc_17290:
mov [rbp+var_21], 0
loc_17294:
mov al, [rbp+var_21]
and al, 1
add rsp, 80h
pop rbp
retn
loc_172A2:
mov rdi, [rbp+var_68]
call __Unwind_Resume
|
char HUDButton::handleEvents(long long a1, _DWORD *a2)
{
long long v3; // [rsp+0h] [rbp-80h]
char v4; // [rsp+27h] [rbp-59h] BYREF
_BYTE v5[32]; // [rsp+28h] [rbp-58h] BYREF
_DWORD *v6; // [rsp+48h] [rbp-38h]
long long v7; // [rsp+50h] [rbp-30h]
char *v9; // [rsp+60h] [rbp-20h]
char *v10; // [rsp+68h] [rbp-18h]
char *v11; // [rsp+78h] [rbp-8h]
v7 = a1;
v6 = a2;
if ( *a2 != 1025 )
{
if ( *v6 == 1026 && *((_BYTE *)v6 + 24) == 1 )
{
*(_BYTE *)(a1 + 113) = 0;
if ( (*(_BYTE *)(a1 + 112) & 1) != 0 )
{
*(_BYTE *)(a1 + 114) = 1;
return 1;
}
}
return 0;
}
if ( *((_BYTE *)v6 + 24) != 1 || (*(_BYTE *)(a1 + 112) & 1) == 0 )
return 0;
*(_BYTE *)(a1 + 113) = 1;
v3 = *(_QWORD *)(a1 + 16);
v9 = &v4;
v11 = &v4;
std::string::basic_string<std::allocator<char>>((long long)v5, (long long)"assets/sound/UI_button08.wav", (long long)&v4);
Game::playSound(v3, v5);
std::string::~string(v5);
v10 = &v4;
std::__new_allocator<char>::~__new_allocator();
return 1;
}
|
handleEvents:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV qword ptr [RBP + -0x30],RDI
MOV qword ptr [RBP + -0x38],RSI
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x78],RAX
MOV RAX,qword ptr [RBP + -0x38]
CMP dword ptr [RAX],0x401
JNZ 0x00117255
MOV RAX,qword ptr [RBP + -0x38]
MOVZX EAX,byte ptr [RAX + 0x18]
CMP EAX,0x1
JNZ 0x00117253
MOV RAX,qword ptr [RBP + -0x78]
TEST byte ptr [RAX + 0x70],0x1
JZ 0x00117251
MOV RAX,qword ptr [RBP + -0x78]
MOV byte ptr [RAX + 0x71],0x1
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x80],RAX
LEA RDX,[RBP + -0x59]
MOV qword ptr [RBP + -0x20],RDX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x8],RAX
LAB_001171da:
LEA RSI,[0x122307]
LEA RDI,[RBP + -0x58]
CALL 0x00107b70
JMP 0x001171ec
LAB_001171ec:
MOV RDI,qword ptr [RBP + -0x80]
LEA RSI,[RBP + -0x58]
CALL 0x00117670
LAB_001171f9:
JMP 0x001171fb
LAB_001171fb:
LEA RDI,[RBP + -0x58]
CALL 0x001062c0
LEA RAX,[RBP + -0x59]
MOV qword ptr [RBP + -0x18],RAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00109fa0
MOV byte ptr [RBP + -0x21],0x1
JMP 0x00117294
LAB_00117251:
JMP 0x00117253
LAB_00117253:
JMP 0x00117290
LAB_00117255:
MOV RAX,qword ptr [RBP + -0x38]
CMP dword ptr [RAX],0x402
JNZ 0x0011728e
MOV RAX,qword ptr [RBP + -0x38]
MOVZX EAX,byte ptr [RAX + 0x18]
CMP EAX,0x1
JNZ 0x0011728c
MOV RAX,qword ptr [RBP + -0x78]
MOV byte ptr [RAX + 0x71],0x0
TEST byte ptr [RAX + 0x70],0x1
JZ 0x0011728a
MOV RAX,qword ptr [RBP + -0x78]
MOV byte ptr [RAX + 0x72],0x1
MOV byte ptr [RBP + -0x21],0x1
JMP 0x00117294
LAB_0011728a:
JMP 0x0011728c
LAB_0011728c:
JMP 0x0011728e
LAB_0011728e:
JMP 0x00117290
LAB_00117290:
MOV byte ptr [RBP + -0x21],0x0
LAB_00117294:
MOV AL,byte ptr [RBP + -0x21]
AND AL,0x1
ADD RSP,0x80
POP RBP
RET
|
/* HUDButton::handleEvents(SDL_Event&) */
int1 __thiscall HUDButton::handleEvents(HUDButton *this,SDL_Event *param_1)
{
Game *this_00;
allocator local_61;
string local_60 [32];
SDL_Event *local_40;
HUDButton *local_38;
allocator *local_28;
__new_allocator<char> *local_20;
allocator *local_10;
if (*(int *)param_1 == 0x401) {
if ((param_1[0x18] == (SDL_Event)0x1) && (((byte)this[0x70] & 1) != 0)) {
this[0x71] = (HUDButton)0x1;
this_00 = *(Game **)(this + 0x10);
local_28 = &local_61;
/* try { // try from 001171da to 001171e9 has its CatchHandler @ 0011721b */
local_40 = param_1;
local_38 = this;
local_10 = local_28;
std::__cxx11::string::string<std::allocator<char>>
(local_60,"assets/sound/UI_button08.wav",local_28);
/* try { // try from 001171ec to 001171f8 has its CatchHandler @ 00117229 */
Game::playSound(this_00,local_60);
std::__cxx11::string::~string(local_60);
local_20 = (__new_allocator<char> *)&local_61;
std::__new_allocator<char>::~__new_allocator(local_20);
return 1;
}
}
else if (((*(int *)param_1 == 0x402) && (param_1[0x18] == (SDL_Event)0x1)) &&
(this[0x71] = (HUDButton)0x0, ((byte)this[0x70] & 1) != 0)) {
this[0x72] = (HUDButton)0x1;
return 1;
}
return 0;
}
|
|
16,270
|
blst_pairing_raw_aggregate
|
corpus-core[P]colibri-stateless/build_O1/_deps/blst-src/src/aggregate.c
|
void blst_pairing_raw_aggregate(PAIRING *ctx, const POINTonE2_affine *q,
const POINTonE1_affine *p)
{
unsigned int n;
if (vec_is_zero(q, sizeof(*q)) & vec_is_zero(p, sizeof(*p)))
return;
n = ctx->nelems;
vec_copy(ctx->Q + n, q, sizeof(*q));
vec_copy(ctx->P + n, p, sizeof(*p));
if (++n == N_MAX) {
if (ctx->ctrl & AGGR_GT_SET) {
vec384fp12 GT;
miller_loop_n(GT, ctx->Q, ctx->P, n);
mul_fp12(ctx->GT, ctx->GT, GT);
} else {
miller_loop_n(ctx->GT, ctx->Q, ctx->P, n);
ctx->ctrl |= AGGR_GT_SET;
}
n = 0;
}
ctx->nelems = n;
}
|
O1
|
c
|
blst_pairing_raw_aggregate:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp # imm = 0x248
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movl $0xc0, %esi
movq %r15, %rdi
callq 0x30680
movq %rax, %r12
movl $0x60, %esi
movq %r14, %rdi
callq 0x30680
testq %r12, %rax
jne 0x21d6c
movl 0x4(%rbx), %r12d
leaq (%r12,%r12,2), %r13
movq %r13, %rax
shlq $0x6, %rax
leaq (%rbx,%rax), %rdi
addq $0x378, %rdi # imm = 0x378
movl $0xc0, %edx
movq %r15, %rsi
callq 0x5060
shlq $0x5, %r13
leaq (%rbx,%r13), %rdi
addq $0x978, %rdi # imm = 0x978
movl $0xc, %ecx
movq %r14, %rsi
rep movsq (%rsi), %es:(%rdi)
leal 0x1(%r12), %eax
cmpl $0x8, %eax
jne 0x21d69
leaq 0x378(%rbx), %rsi
leaq 0x978(%rbx), %rdx
testb $0x20, (%rbx)
jne 0x21d44
leaq 0x18(%rbx), %rdi
movl $0x8, %ecx
callq 0x2043d
orb $0x20, (%rbx)
jmp 0x21d67
leaq -0x270(%rbp), %r14
movl $0x8, %ecx
movq %r14, %rdi
callq 0x2043d
leaq 0x18(%rbx), %rdi
movq %rdi, %rsi
movq %r14, %rdx
callq 0x1f662
xorl %eax, %eax
movl %eax, 0x4(%rbx)
addq $0x248, %rsp # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
blst_pairing_raw_aggregate:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 248h
mov r14, rdx
mov r15, rsi
mov rbx, rdi
mov esi, 0C0h
mov rdi, r15
call vec_is_zero_16x
mov r12, rax
mov esi, 60h ; '`'
mov rdi, r14
call vec_is_zero_16x
test rax, r12
jnz loc_21D6C
mov r12d, [rbx+4]
lea r13, [r12+r12*2]
mov rax, r13
shl rax, 6
lea rdi, [rbx+rax]
add rdi, 378h
mov edx, 0C0h
mov rsi, r15
call _memcpy
shl r13, 5
lea rdi, [rbx+r13]
add rdi, 978h
mov ecx, 0Ch
mov rsi, r14
rep movsq
lea eax, [r12+1]
cmp eax, 8
jnz short loc_21D69
lea rsi, [rbx+378h]
lea rdx, [rbx+978h]
test byte ptr [rbx], 20h
jnz short loc_21D44
lea rdi, [rbx+18h]
mov ecx, 8
call miller_loop_n
or byte ptr [rbx], 20h
jmp short loc_21D67
loc_21D44:
lea r14, [rbp+var_270]
mov ecx, 8
mov rdi, r14
call miller_loop_n
lea rdi, [rbx+18h]
mov rsi, rdi
mov rdx, r14
call mul_fp12
loc_21D67:
xor eax, eax
loc_21D69:
mov [rbx+4], eax
loc_21D6C:
add rsp, 248h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long blst_pairing_raw_aggregate(long long a1, long long a2, const void *a3)
{
long long is_zero_16x; // r12
long long result; // rax
long long v6; // r12
long long v7; // rsi
long long v8; // rdx
_BYTE v9[624]; // [rsp+0h] [rbp-270h] BYREF
is_zero_16x = vec_is_zero_16x(a2, 192LL);
result = vec_is_zero_16x(a3, 96LL);
if ( (is_zero_16x & result) == 0 )
{
v6 = *(unsigned int *)(a1 + 4);
memcpy(a1 + 192 * v6 + 888, a2, 192LL);
qmemcpy((void *)(a1 + 96 * v6 + 2424), a3, 0x60uLL);
result = (unsigned int)(v6 + 1);
if ( (_DWORD)v6 == 7 )
{
v7 = a1 + 888;
v8 = a1 + 2424;
if ( (*(_BYTE *)a1 & 0x20) != 0 )
{
miller_loop_n((long long)v9, v7, v8, 8LL);
mul_fp12(a1 + 24, a1 + 24, (long long)v9);
}
else
{
miller_loop_n(a1 + 24, v7, v8, 8LL);
*(_BYTE *)a1 |= 0x20u;
}
result = 0LL;
}
*(_DWORD *)(a1 + 4) = result;
}
return result;
}
|
blst_pairing_raw_aggregate:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x248
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
MOV ESI,0xc0
MOV RDI,R15
CALL 0x00130680
MOV R12,RAX
MOV ESI,0x60
MOV RDI,R14
CALL 0x00130680
TEST RAX,R12
JNZ 0x00121d6c
MOV R12D,dword ptr [RBX + 0x4]
LEA R13,[R12 + R12*0x2]
MOV RAX,R13
SHL RAX,0x6
LEA RDI,[RBX + RAX*0x1]
ADD RDI,0x378
MOV EDX,0xc0
MOV RSI,R15
CALL 0x00105060
SHL R13,0x5
LEA RDI,[RBX + R13*0x1]
ADD RDI,0x978
MOV ECX,0xc
MOV RSI,R14
MOVSQ.REP RDI,RSI
LEA EAX,[R12 + 0x1]
CMP EAX,0x8
JNZ 0x00121d69
LEA RSI,[RBX + 0x378]
LEA RDX,[RBX + 0x978]
TEST byte ptr [RBX],0x20
JNZ 0x00121d44
LEA RDI,[RBX + 0x18]
MOV ECX,0x8
CALL 0x0012043d
OR byte ptr [RBX],0x20
JMP 0x00121d67
LAB_00121d44:
LEA R14,[RBP + -0x270]
MOV ECX,0x8
MOV RDI,R14
CALL 0x0012043d
LEA RDI,[RBX + 0x18]
MOV RSI,RDI
MOV RDX,R14
CALL 0x0011f662
LAB_00121d67:
XOR EAX,EAX
LAB_00121d69:
MOV dword ptr [RBX + 0x4],EAX
LAB_00121d6c:
ADD RSP,0x248
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void blst_pairing_raw_aggregate(byte *param_1,void *param_2,int8 *param_3)
{
uint uVar1;
int iVar2;
ulong uVar3;
ulong uVar4;
long lVar5;
byte *pbVar6;
byte bVar7;
int1 local_278 [584];
bVar7 = 0;
uVar3 = vec_is_zero_16x(param_2,0xc0);
uVar4 = vec_is_zero_16x(param_3,0x60);
if ((uVar4 & uVar3) == 0) {
uVar1 = *(uint *)(param_1 + 4);
memcpy(param_1 + (ulong)uVar1 * 0xc0 + 0x378,param_2,0xc0);
pbVar6 = param_1 + (ulong)uVar1 * 0x60 + 0x978;
for (lVar5 = 0xc; lVar5 != 0; lVar5 = lVar5 + -1) {
*(int8 *)pbVar6 = *param_3;
param_3 = param_3 + (ulong)bVar7 * -2 + 1;
pbVar6 = pbVar6 + (ulong)bVar7 * -0x10 + 8;
}
iVar2 = uVar1 + 1;
if (iVar2 == 8) {
if ((*param_1 & 0x20) == 0) {
miller_loop_n(param_1 + 0x18,param_1 + 0x378,param_1 + 0x978,8);
*param_1 = *param_1 | 0x20;
}
else {
miller_loop_n(local_278,param_1 + 0x378,param_1 + 0x978,8);
mul_fp12(param_1 + 0x18,param_1 + 0x18,local_278);
}
iVar2 = 0;
}
*(int *)(param_1 + 4) = iVar2;
}
return;
}
|
|
16,271
|
mi_check_index_tuple
|
eloqsql/storage/myisam/mi_key.c
|
check_result_t mi_check_index_tuple(MI_INFO *info, uint keynr, uchar *record)
{
int need_unpack= TRUE;
check_result_t res= CHECK_POS;
if (info->index_cond_func)
{
if (mi_unpack_index_tuple(info, keynr, record))
res= CHECK_ERROR;
else if ((res= info->index_cond_func(info->index_cond_func_arg)) ==
CHECK_OUT_OF_RANGE)
{
/* We got beyond the end of scanned range */
info->lastpos= HA_OFFSET_ERROR; /* No active record */
my_errno= HA_ERR_END_OF_FILE;
}
/*
If we got an error, out-of-range condition, or ICP condition computed to
FALSE - we don't need to check the Rowid Filter.
*/
if (res != CHECK_POS)
return res;
need_unpack= FALSE;
}
/* Check the Rowid Filter, if present */
if (mi_check_rowid_filter_is_active(info))
{
/* Unpack the index tuple if we haven't done it already */
if (need_unpack && mi_unpack_index_tuple(info, keynr, record))
res= CHECK_ERROR;
else
{
if ((res= info->rowid_filter_func(info->rowid_filter_func_arg)) ==
CHECK_OUT_OF_RANGE)
{
/* We got beyond the end of scanned range */
info->lastpos= HA_OFFSET_ERROR; /* No active record */
my_errno= HA_ERR_END_OF_FILE;
}
}
}
return res;
}
|
O3
|
c
|
mi_check_index_tuple:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %rbx
movq 0x340(%rdi), %r13
testq %r13, %r13
je 0x7d57b
movq %rbx, %rdi
movl %r15d, %esi
movq %r14, %rdx
callq 0x7d5fe
movl $0xffffffff, %r12d # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x7d5ec
movq 0x348(%rbx), %rdi
callq *0x340(%rbx)
cmpl $0x2, %eax
je 0x7d5b1
movl %eax, %r12d
cmpl $0x1, %eax
jne 0x7d5ec
movq 0x358(%rbx), %rax
movl $0x1, %r12d
testq %rax, %rax
je 0x7d5ec
movq 0x360(%rbx), %rdi
callq *%rax
testl %eax, %eax
je 0x7d5ec
testq %r13, %r13
je 0x7d5d4
movq 0x360(%rbx), %rdi
callq *0x350(%rbx)
cmpl $0x2, %eax
jne 0x7d5cf
movq $-0x1, 0x170(%rbx)
callq 0xa319a
movl $0x89, (%rax)
movl $0x2, %r12d
jmp 0x7d5ec
movl %eax, %r12d
jmp 0x7d5ec
movq %rbx, %rdi
movl %r15d, %esi
movq %r14, %rdx
callq 0x7d5fe
movl $0xffffffff, %r12d # imm = 0xFFFFFFFF
testl %eax, %eax
je 0x7d59f
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
mi_check_index_tuple:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, rdx
mov r15d, esi
mov rbx, rdi
mov r13, [rdi+340h]
test r13, r13
jz short loc_7D57B
mov rdi, rbx
mov esi, r15d
mov rdx, r14
call mi_unpack_index_tuple
mov r12d, 0FFFFFFFFh
test eax, eax
jnz loc_7D5EC
mov rdi, [rbx+348h]
call qword ptr [rbx+340h]
cmp eax, 2
jz short loc_7D5B1
mov r12d, eax
cmp eax, 1
jnz short loc_7D5EC
loc_7D57B:
mov rax, [rbx+358h]
mov r12d, 1
test rax, rax
jz short loc_7D5EC
mov rdi, [rbx+360h]
call rax
test eax, eax
jz short loc_7D5EC
test r13, r13
jz short loc_7D5D4
loc_7D59F:
mov rdi, [rbx+360h]
call qword ptr [rbx+350h]
cmp eax, 2
jnz short loc_7D5CF
loc_7D5B1:
mov qword ptr [rbx+170h], 0FFFFFFFFFFFFFFFFh
call _my_thread_var
mov dword ptr [rax], 89h
mov r12d, 2
jmp short loc_7D5EC
loc_7D5CF:
mov r12d, eax
jmp short loc_7D5EC
loc_7D5D4:
mov rdi, rbx
mov esi, r15d
mov rdx, r14
call mi_unpack_index_tuple
mov r12d, 0FFFFFFFFh
test eax, eax
jz short loc_7D59F
loc_7D5EC:
mov eax, r12d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long mi_check_index_tuple(long long a1, unsigned int a2, long long a3)
{
long long v5; // r13
unsigned int v6; // r12d
long long v7; // rdi
unsigned int v8; // eax
unsigned int ( *v9)(_QWORD); // rax
unsigned int v10; // eax
v5 = *(_QWORD *)(a1 + 832);
if ( v5 )
{
v6 = -1;
if ( (unsigned int)mi_unpack_index_tuple(a1, a2, a3) )
return v6;
v7 = *(_QWORD *)(a1 + 840);
v8 = (*(long long ( **)(long long))(a1 + 832))(v7);
if ( v8 == 2 )
{
LABEL_9:
*(_QWORD *)(a1 + 368) = -1LL;
*(_DWORD *)my_thread_var(v7) = 137;
return 2;
}
v6 = v8;
if ( v8 != 1 )
return v6;
}
v9 = *(unsigned int ( **)(_QWORD))(a1 + 856);
v6 = 1;
if ( v9 )
{
if ( v9(*(_QWORD *)(a1 + 864)) )
{
if ( v5 || (v6 = -1, !(unsigned int)mi_unpack_index_tuple(a1, a2, a3)) )
{
v7 = *(_QWORD *)(a1 + 864);
v10 = (*(long long ( **)(long long))(a1 + 848))(v7);
if ( v10 != 2 )
return v10;
goto LABEL_9;
}
}
}
return v6;
}
|
mi_check_index_tuple:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RDX
MOV R15D,ESI
MOV RBX,RDI
MOV R13,qword ptr [RDI + 0x340]
TEST R13,R13
JZ 0x0017d57b
MOV RDI,RBX
MOV ESI,R15D
MOV RDX,R14
CALL 0x0017d5fe
MOV R12D,0xffffffff
TEST EAX,EAX
JNZ 0x0017d5ec
MOV RDI,qword ptr [RBX + 0x348]
CALL qword ptr [RBX + 0x340]
CMP EAX,0x2
JZ 0x0017d5b1
MOV R12D,EAX
CMP EAX,0x1
JNZ 0x0017d5ec
LAB_0017d57b:
MOV RAX,qword ptr [RBX + 0x358]
MOV R12D,0x1
TEST RAX,RAX
JZ 0x0017d5ec
MOV RDI,qword ptr [RBX + 0x360]
CALL RAX
TEST EAX,EAX
JZ 0x0017d5ec
TEST R13,R13
JZ 0x0017d5d4
LAB_0017d59f:
MOV RDI,qword ptr [RBX + 0x360]
CALL qword ptr [RBX + 0x350]
CMP EAX,0x2
JNZ 0x0017d5cf
LAB_0017d5b1:
MOV qword ptr [RBX + 0x170],-0x1
CALL 0x001a319a
MOV dword ptr [RAX],0x89
MOV R12D,0x2
JMP 0x0017d5ec
LAB_0017d5cf:
MOV R12D,EAX
JMP 0x0017d5ec
LAB_0017d5d4:
MOV RDI,RBX
MOV ESI,R15D
MOV RDX,R14
CALL 0x0017d5fe
MOV R12D,0xffffffff
TEST EAX,EAX
JZ 0x0017d59f
LAB_0017d5ec:
MOV EAX,R12D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int mi_check_index_tuple(long param_1,int4 param_2,int8 param_3)
{
long lVar1;
int iVar2;
int4 *puVar3;
lVar1 = *(long *)(param_1 + 0x340);
if (lVar1 != 0) {
iVar2 = mi_unpack_index_tuple(param_1,param_2,param_3);
if (iVar2 != 0) {
return -1;
}
iVar2 = (**(code **)(param_1 + 0x340))(*(int8 *)(param_1 + 0x348));
if (iVar2 == 2) goto LAB_0017d5b1;
if (iVar2 != 1) {
return iVar2;
}
}
if (*(code **)(param_1 + 0x358) == (code *)0x0) {
return 1;
}
iVar2 = (**(code **)(param_1 + 0x358))(*(int8 *)(param_1 + 0x360));
if (iVar2 == 0) {
return 1;
}
if ((lVar1 == 0) && (iVar2 = mi_unpack_index_tuple(param_1,param_2,param_3), iVar2 != 0)) {
return -1;
}
iVar2 = (**(code **)(param_1 + 0x350))(*(int8 *)(param_1 + 0x360));
if (iVar2 != 2) {
return iVar2;
}
LAB_0017d5b1:
*(int8 *)(param_1 + 0x170) = 0xffffffffffffffff;
puVar3 = (int4 *)_my_thread_var();
*puVar3 = 0x89;
return 2;
}
|
|
16,272
|
testing::internal::edit_distance::(anonymous namespace)::Hunk::~Hunk()
|
AlayaLite/build_O3/_deps/googletest-src/googletest/src/gtest.cc
|
Hunk(size_t left_start, size_t right_start)
: left_start_(left_start),
right_start_(right_start),
adds_(),
removes_(),
common_() {}
|
O3
|
cpp
|
testing::internal::edit_distance::(anonymous namespace)::Hunk::~Hunk():
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x58(%rdi), %r14
movq 0x58(%rdi), %rdi
cmpq %r14, %rdi
je 0x5f40c
movq (%rdi), %r15
movl $0x20, %esi
callq 0x11120
movq %r15, %rdi
cmpq %r14, %r15
jne 0x5f3f7
leaq 0x40(%rbx), %r14
movq 0x40(%rbx), %rdi
cmpq %r14, %rdi
je 0x5f42e
movq (%rdi), %r15
movl $0x20, %esi
callq 0x11120
movq %r15, %rdi
cmpq %r14, %r15
jne 0x5f419
movq 0x28(%rbx), %rdi
addq $0x28, %rbx
cmpq %rbx, %rdi
je 0x5f450
movq (%rdi), %r14
movl $0x20, %esi
callq 0x11120
movq %r14, %rdi
cmpq %rbx, %r14
jne 0x5f43b
popq %rbx
popq %r14
popq %r15
retq
|
_ZN7testing8internal13edit_distance12_GLOBAL__N_14HunkD2Ev:
push r15
push r14
push rbx
mov rbx, rdi
lea r14, [rdi+58h]
mov rdi, [rdi+58h]; void *
cmp rdi, r14
jz short loc_5F40C
loc_5F3F7:
mov r15, [rdi]
mov esi, 20h ; ' '; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
mov rdi, r15
cmp r15, r14
jnz short loc_5F3F7
loc_5F40C:
lea r14, [rbx+40h]
mov rdi, [rbx+40h]; void *
cmp rdi, r14
jz short loc_5F42E
loc_5F419:
mov r15, [rdi]
mov esi, 20h ; ' '; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
mov rdi, r15
cmp r15, r14
jnz short loc_5F419
loc_5F42E:
mov rdi, [rbx+28h]; void *
add rbx, 28h ; '('
cmp rdi, rbx
jz short loc_5F450
loc_5F43B:
mov r14, [rdi]
mov esi, 20h ; ' '; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
mov rdi, r14
cmp r14, rbx
jnz short loc_5F43B
loc_5F450:
pop rbx
pop r14
pop r15
retn
|
void testing::internal::edit_distance::`anonymous namespace'::Hunk::~Hunk(
testing::internal::edit_distance::_anonymous_namespace_::Hunk *this)
{
char *v2; // r14
char *v3; // rdi
char *v4; // r15
testing::internal::edit_distance::_anonymous_namespace_::Hunk **v5; // rdi
testing::internal::edit_distance::_anonymous_namespace_::Hunk *v6; // r15
char *v7; // rdi
char *v8; // rbx
char *v9; // r14
v2 = (char *)this + 88;
v3 = (char *)*((_QWORD *)this + 11);
if ( v3 != v2 )
{
do
{
v4 = *(char **)v3;
operator delete(v3, 0x20uLL);
v3 = v4;
}
while ( v4 != v2 );
}
v5 = (testing::internal::edit_distance::_anonymous_namespace_::Hunk **)*((_QWORD *)this + 8);
if ( v5 != (testing::internal::edit_distance::_anonymous_namespace_::Hunk **)((char *)this + 64) )
{
do
{
v6 = *v5;
operator delete(v5, 0x20uLL);
v5 = (testing::internal::edit_distance::_anonymous_namespace_::Hunk **)v6;
}
while ( v6 != (testing::internal::edit_distance::_anonymous_namespace_::Hunk *)((char *)this + 64) );
}
v7 = (char *)*((_QWORD *)this + 5);
v8 = (char *)this + 40;
if ( v7 != v8 )
{
do
{
v9 = *(char **)v7;
operator delete(v7, 0x20uLL);
v7 = v9;
}
while ( v9 != v8 );
}
}
|
~Hunk:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RDI
LEA R14,[RDI + 0x58]
MOV RDI,qword ptr [RDI + 0x58]
CMP RDI,R14
JZ 0x0015f40c
LAB_0015f3f7:
MOV R15,qword ptr [RDI]
MOV ESI,0x20
CALL 0x00111120
MOV RDI,R15
CMP R15,R14
JNZ 0x0015f3f7
LAB_0015f40c:
LEA R14,[RBX + 0x40]
MOV RDI,qword ptr [RBX + 0x40]
CMP RDI,R14
JZ 0x0015f42e
LAB_0015f419:
MOV R15,qword ptr [RDI]
MOV ESI,0x20
CALL 0x00111120
MOV RDI,R15
CMP R15,R14
JNZ 0x0015f419
LAB_0015f42e:
MOV RDI,qword ptr [RBX + 0x28]
ADD RBX,0x28
CMP RDI,RBX
JZ 0x0015f450
LAB_0015f43b:
MOV R14,qword ptr [RDI]
MOV ESI,0x20
CALL 0x00111120
MOV RDI,R14
CMP R14,RBX
JNZ 0x0015f43b
LAB_0015f450:
POP RBX
POP R14
POP R15
RET
|
/* testing::internal::edit_distance::(anonymous namespace)::Hunk::~Hunk() */
void __thiscall testing::internal::edit_distance::(anonymous_namespace)::Hunk::~Hunk(Hunk *this)
{
Hunk *pHVar1;
Hunk *pHVar2;
pHVar2 = *(Hunk **)(this + 0x58);
while (pHVar2 != this + 0x58) {
pHVar1 = *(Hunk **)pHVar2;
operator_delete(pHVar2,0x20);
pHVar2 = pHVar1;
}
pHVar2 = *(Hunk **)(this + 0x40);
while (pHVar2 != this + 0x40) {
pHVar1 = *(Hunk **)pHVar2;
operator_delete(pHVar2,0x20);
pHVar2 = pHVar1;
}
pHVar2 = *(Hunk **)(this + 0x28);
while (pHVar2 != this + 0x28) {
pHVar1 = *(Hunk **)pHVar2;
operator_delete(pHVar2,0x20);
pHVar2 = pHVar1;
}
return;
}
|
|
16,273
|
check_mb_ujis
|
eloqsql/libmariadb/libmariadb/ma_charset.c
|
static unsigned int check_mb_ujis(const char *start, const char *end)
{
if (*(uchar*)start < 0x80) {
return 0; /* invalid ujis character */
}
if (valid_ujis(*(start)) && valid_ujis(*((start)+1))) {
return 2;
}
if (valid_ujis_ss2(*(start)) && valid_ujis_kata(*((start)+1))) {
return 2;
}
if (valid_ujis_ss3(*(start)) && (end-start) > 2 && valid_ujis(*((start)+1)) && valid_ujis(*((start)+2))) {
return 3;
}
return 0;
}
|
O3
|
c
|
check_mb_ujis:
pushq %rbp
movq %rsp, %rbp
movb (%rdi), %cl
xorl %eax, %eax
testb %cl, %cl
jns 0x3161e
leal 0x1(%rcx), %eax
cmpb $-0x5e, %al
jae 0x315df
cmpb $-0x72, %cl
jne 0x315f0
movb 0x1(%rdi), %cl
addb $0x5f, %cl
movl $0x2, %eax
cmpb $0x3f, %cl
jae 0x3161c
jmp 0x3161e
movb 0x1(%rdi), %cl
incb %cl
movl $0x2, %eax
cmpb $-0x5e, %cl
jb 0x3161c
jmp 0x3161e
cmpb $-0x71, %cl
setne %al
subq %rdi, %rsi
cmpq $0x3, %rsi
setl %cl
orb %al, %cl
jne 0x3161c
movb 0x1(%rdi), %al
incb %al
cmpb $-0x5e, %al
jb 0x3161c
movb 0x2(%rdi), %cl
incb %cl
movl $0x3, %eax
cmpb $-0x5f, %cl
ja 0x3161e
xorl %eax, %eax
popq %rbp
retq
|
check_mb_ujis:
push rbp
mov rbp, rsp
mov cl, [rdi]
xor eax, eax
test cl, cl
jns short loc_3161E
lea eax, [rcx+1]
cmp al, 0A2h
jnb short loc_315DF
cmp cl, 8Eh
jnz short loc_315F0
mov cl, [rdi+1]
add cl, 5Fh ; '_'
mov eax, 2
cmp cl, 3Fh ; '?'
jnb short loc_3161C
jmp short loc_3161E
loc_315DF:
mov cl, [rdi+1]
inc cl
mov eax, 2
cmp cl, 0A2h
jb short loc_3161C
jmp short loc_3161E
loc_315F0:
cmp cl, 8Fh
setnz al
sub rsi, rdi
cmp rsi, 3
setl cl
or cl, al
jnz short loc_3161C
mov al, [rdi+1]
inc al
cmp al, 0A2h
jb short loc_3161C
mov cl, [rdi+2]
inc cl
mov eax, 3
cmp cl, 0A1h
ja short loc_3161E
loc_3161C:
xor eax, eax
loc_3161E:
pop rbp
retn
|
long long check_mb_ujis(char *a1, long long a2)
{
char v2; // cl
long long result; // rax
v2 = *a1;
result = 0LL;
if ( *a1 < 0 )
{
if ( (unsigned __int8)(v2 + 1) >= 0xA2u )
{
result = 2LL;
if ( (unsigned __int8)(a1[1] + 1) < 0xA2u )
return 0LL;
}
else
{
if ( v2 == -114 )
{
result = 2LL;
if ( (unsigned __int8)(a1[1] + 95) < 0x3Fu )
return result;
return 0LL;
}
if ( v2 != -113 || a2 - (long long)a1 < 3 )
return 0LL;
if ( (unsigned __int8)(a1[1] + 1) < 0xA2u )
return 0LL;
result = 3LL;
if ( (unsigned __int8)(a1[2] + 1) <= 0xA1u )
return 0LL;
}
}
return result;
}
|
check_mb_ujis:
PUSH RBP
MOV RBP,RSP
MOV CL,byte ptr [RDI]
XOR EAX,EAX
TEST CL,CL
JNS 0x0013161e
LEA EAX,[RCX + 0x1]
CMP AL,0xa2
JNC 0x001315df
CMP CL,0x8e
JNZ 0x001315f0
MOV CL,byte ptr [RDI + 0x1]
ADD CL,0x5f
MOV EAX,0x2
CMP CL,0x3f
JNC 0x0013161c
JMP 0x0013161e
LAB_001315df:
MOV CL,byte ptr [RDI + 0x1]
INC CL
MOV EAX,0x2
CMP CL,0xa2
JC 0x0013161c
JMP 0x0013161e
LAB_001315f0:
CMP CL,0x8f
SETNZ AL
SUB RSI,RDI
CMP RSI,0x3
SETL CL
OR CL,AL
JNZ 0x0013161c
MOV AL,byte ptr [RDI + 0x1]
INC AL
CMP AL,0xa2
JC 0x0013161c
MOV CL,byte ptr [RDI + 0x2]
INC CL
MOV EAX,0x3
CMP CL,0xa1
JA 0x0013161e
LAB_0013161c:
XOR EAX,EAX
LAB_0013161e:
POP RBP
RET
|
int8 check_mb_ujis(char *param_1,long param_2)
{
char cVar1;
int8 uVar2;
cVar1 = *param_1;
if (-1 < cVar1) {
return 0;
}
if ((byte)(cVar1 + 1U) < 0xa2) {
if (cVar1 == -0x72) {
if (0x3e < (byte)(param_1[1] + 0x5fU)) {
return 0;
}
return 2;
}
if (param_2 - (long)param_1 < 3 || cVar1 != -0x71) {
return 0;
}
if ((byte)(param_1[1] + 1U) < 0xa2) {
return 0;
}
cVar1 = param_1[2];
uVar2 = 3;
}
else {
cVar1 = param_1[1];
uVar2 = 2;
}
if ((byte)(cVar1 + 1U) < 0xa2) {
return 0;
}
return uVar2;
}
|
|
16,274
|
ma_net_read
|
eloqsql/libmariadb/libmariadb/ma_net.c
|
ulong ma_net_read(NET *net)
{
size_t len,complen;
#ifdef HAVE_COMPRESS
if (!net->compress)
{
#endif
len = ma_real_read (net,(size_t *)&complen);
if (len == MAX_PACKET_LENGTH)
{
/* multi packet read */
size_t length= 0;
ulong last_pos= net->where_b;
do
{
length+= len;
net->where_b+= (unsigned long)len;
len= ma_real_read(net, &complen);
} while (len == MAX_PACKET_LENGTH);
net->where_b= last_pos;
if (len != packet_error)
len+= length;
}
net->read_pos = net->buff + net->where_b;
if (len != packet_error)
net->read_pos[len]=0; /* Safeguard for mysql_use_result */
return (ulong)len;
#ifdef HAVE_COMPRESS
}
else
{
/*
compressed protocol:
--------------------------------------
packet_length 3
sequence_id 1
uncompressed_length 3
--------------------------------------
compressed data packet_length - 7
--------------------------------------
Another packet will follow if:
packet_length == MAX_PACKET_LENGTH
Last package will be identified by
- packet_length is zero (special case)
- packet_length < MAX_PACKET_LENGTH
*/
size_t packet_length,
buffer_length;
size_t current= 0, start= 0;
my_bool is_multi_packet= 0;
/* check if buffer is empty */
if (!net->remain_in_buf)
{
buffer_length= 0;
}
else
{
/* save position and restore \0 character */
buffer_length= net->buf_length;
current= net->buf_length - net->remain_in_buf;
start= current;
net->buff[net->buf_length - net->remain_in_buf]=net->save_char;
}
for (;;)
{
if (buffer_length - current >= 4)
{
uchar *pos= net->buff + current;
packet_length= uint3korr(pos);
/* check if we have last package (special case: zero length) */
if (!packet_length)
{
current+= 4; /* length + sequence_id,
no more data will follow */
break;
}
if (packet_length + 4 <= buffer_length - current)
{
if (!is_multi_packet)
{
current= current + packet_length + 4;
}
else
{
/* remove packet_header */
memmove(net->buff + current,
net->buff + current + 4,
buffer_length - current);
buffer_length-= 4;
current+= packet_length;
}
/* do we have last packet ? */
if (packet_length != MAX_PACKET_LENGTH)
{
is_multi_packet= 0;
break;
}
else
is_multi_packet= 1;
if (start)
{
memmove(net->buff, net->buff + start,
buffer_length - start);
/* decrease buflen*/
buffer_length-= start;
start= 0;
}
continue;
}
}
if (start)
{
memmove(net->buff, net->buff + start, buffer_length - start);
/* decrease buflen and current */
current -= start;
buffer_length-= start;
start= 0;
}
net->where_b=(unsigned long)buffer_length;
if ((packet_length = ma_real_read(net,(size_t *)&complen)) == packet_error)
return packet_error;
if (_mariadb_uncompress(net, (unsigned char*) net->buff + net->where_b, &packet_length, &complen))
{
net->error=2; /* caller will close socket */
net->pvio->set_error(net->pvio->mysql, CR_ERR_NET_UNCOMPRESS, SQLSTATE_UNKNOWN, 0);
return packet_error;
}
buffer_length+= complen;
}
/* set values */
net->buf_length= (unsigned long)buffer_length;
net->remain_in_buf= (unsigned long)(buffer_length - current);
net->read_pos= net->buff + start + 4;
len= current - start - 4;
if (is_multi_packet)
len-= 4;
net->save_char= net->read_pos[len]; /* Must be saved */
net->read_pos[len]=0; /* Safeguard for mysql_use_result */
}
#endif
return (ulong)len;
}
|
O3
|
c
|
ma_net_read:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
cmpb $0x0, 0x84(%rdi)
je 0x5790c
movq 0x30(%rbx), %rax
testq %rax, %rax
je 0x5796c
movq 0x8(%rbx), %rcx
movq 0x40(%rbx), %r15
movq %r15, %r14
subq %rax, %r14
movb 0x81(%rbx), %al
movb %al, (%rcx,%r14)
jmp 0x57972
leaq -0x38(%rbp), %rsi
movq %rbx, %rdi
callq 0x57b1e
movq 0x48(%rbx), %r15
cmpq $0xffffff, %rax # imm = 0xFFFFFF
jne 0x57ae4
xorl %r12d, %r12d
movl $0xffffff, %r13d # imm = 0xFFFFFF
leaq -0x38(%rbp), %r14
addq %r13, %r12
addq %r13, 0x48(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x57b1e
cmpq %r13, %rax
je 0x57935
movq %r15, 0x48(%rbx)
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
cmpq %r14, %rax
jne 0x57ae1
addq 0x8(%rbx), %r15
movq %r15, 0x20(%rbx)
jmp 0x57aff
xorl %r15d, %r15d
xorl %r14d, %r14d
movb $0x1, %cl
leaq -0x38(%rbp), %r12
movq %r14, %rax
movq %rcx, -0x40(%rbp)
movq %rax, %r13
movq %r15, %rdx
subq %r14, %rdx
cmpq $0x4, %rdx
jb 0x579b6
movq 0x8(%rbx), %rdi
movzwl (%rdi,%r14), %ecx
movzbl 0x2(%rdi,%r14), %eax
shll $0x10, %eax
orq %rcx, %rax
movq %rax, -0x30(%rbp)
je 0x57aa4
leaq 0x4(%rax), %rcx
cmpq %rdx, %rcx
jbe 0x57a19
testq %r13, %r13
je 0x579d1
movq 0x8(%rbx), %rdi
leaq (%rdi,%r13), %rsi
subq %r13, %r15
movq %r15, %rdx
callq 0x36150
subq %r13, %r14
movq %r15, 0x48(%rbx)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x57b1e
movq %rax, -0x30(%rbp)
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
cmpq %rcx, %rax
je 0x57a9c
movq 0x8(%rbx), %rsi
addq 0x48(%rbx), %rsi
movq %rbx, %rdi
leaq -0x30(%rbp), %rdx
movq %r12, %rcx
callq 0x44349
testb %al, %al
jne 0x57a77
addq -0x38(%rbp), %r15
xorl %r13d, %r13d
jmp 0x57982
testb $0x1, -0x40(%rbp)
je 0x57a28
addq %rax, %r14
addq $0x4, %r14
jmp 0x57a3f
addq %r14, %rdi
leaq 0x4(%rdi), %rsi
callq 0x36150
addq $-0x4, %r15
movq -0x30(%rbp), %rax
addq %rax, %r14
cmpq $0xffffff, %rax # imm = 0xFFFFFF
jne 0x57b11
xorl %eax, %eax
movl $0x0, %ecx
testq %r13, %r13
je 0x5797b
movq 0x8(%rbx), %rdi
leaq (%rdi,%r13), %rsi
subq %r13, %r15
movq %r15, %rdx
callq 0x36150
xorl %eax, %eax
xorl %ecx, %ecx
jmp 0x5797b
movb $0x2, 0x94(%rbx)
movq (%rbx), %r8
movq 0x40(%r8), %rdi
leaq 0x2e5884(%rip), %rax # 0x33d310
movq (%rax), %rdx
movl $0x1397, %esi # imm = 0x1397
xorl %ecx, %ecx
xorl %eax, %eax
callq *0x50(%r8)
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
jmp 0x57aff
addq $0x4, %r14
movzbl -0x40(%rbp), %eax
shll $0x2, %eax
orq $-0x8, %rax
movq %r15, 0x40(%rbx)
subq %r14, %r15
movq %r15, 0x30(%rbx)
leaq (%rdi,%r13), %rcx
addq $0x4, %rcx
movq %rcx, 0x20(%rbx)
subq %r13, %r14
addq %rax, %r14
movb (%rcx,%r14), %al
movb %al, 0x81(%rbx)
movb $0x0, (%rcx,%r14)
jmp 0x57aff
addq %r12, %rax
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
addq 0x8(%rbx), %r15
movq %r15, 0x20(%rbx)
cmpq %r14, %rax
je 0x57aff
movb $0x0, (%r15,%rax)
movq %rax, %r14
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rbx), %rdi
movq $-0x4, %rax
jmp 0x57ab3
|
ma_net_read:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, rdi
cmp byte ptr [rdi+84h], 0
jz short loc_5790C
mov rax, [rbx+30h]
test rax, rax
jz short loc_5796C
mov rcx, [rbx+8]
mov r15, [rbx+40h]
mov r14, r15
sub r14, rax
mov al, [rbx+81h]
mov [rcx+r14], al
jmp short loc_57972
loc_5790C:
lea rsi, [rbp+var_38]
mov rdi, rbx
call ma_real_read
mov r15, [rbx+48h]
cmp rax, 0FFFFFFh
jnz loc_57AE4
xor r12d, r12d
mov r13d, 0FFFFFFh
lea r14, [rbp+var_38]
loc_57935:
add r12, r13
add [rbx+48h], r13
mov rdi, rbx
mov rsi, r14
call ma_real_read
cmp rax, r13
jz short loc_57935
mov [rbx+48h], r15
mov r14d, 0FFFFFFFFh
cmp rax, r14
jnz loc_57AE1
add r15, [rbx+8]
mov [rbx+20h], r15
jmp loc_57AFF
loc_5796C:
xor r15d, r15d
xor r14d, r14d
loc_57972:
mov cl, 1
lea r12, [rbp+var_38]
mov rax, r14
loc_5797B:
mov [rbp+var_40], rcx
mov r13, rax
loc_57982:
mov rdx, r15
sub rdx, r14
cmp rdx, 4
jb short loc_579B6
mov rdi, [rbx+8]
movzx ecx, word ptr [rdi+r14]
movzx eax, byte ptr [rdi+r14+2]
shl eax, 10h
or rax, rcx
mov [rbp+var_30], rax
jz loc_57AA4
lea rcx, [rax+4]
cmp rcx, rdx
jbe short loc_57A19
loc_579B6:
test r13, r13
jz short loc_579D1
mov rdi, [rbx+8]
lea rsi, [rdi+r13]
sub r15, r13
mov rdx, r15
call _memmove
sub r14, r13
loc_579D1:
mov [rbx+48h], r15
mov rdi, rbx
mov rsi, r12
call ma_real_read
mov [rbp+var_30], rax
mov ecx, 0FFFFFFFFh
cmp rax, rcx
jz loc_57A9C
mov rsi, [rbx+8]
add rsi, [rbx+48h]
mov rdi, rbx
lea rdx, [rbp+var_30]
mov rcx, r12
call _mariadb_uncompress
test al, al
jnz short loc_57A77
add r15, [rbp+var_38]
xor r13d, r13d
jmp loc_57982
loc_57A19:
test byte ptr [rbp+var_40], 1
jz short loc_57A28
add r14, rax
add r14, 4
jmp short loc_57A3F
loc_57A28:
add rdi, r14
lea rsi, [rdi+4]
call _memmove
add r15, 0FFFFFFFFFFFFFFFCh
mov rax, [rbp+var_30]
add r14, rax
loc_57A3F:
cmp rax, 0FFFFFFh
jnz loc_57B11
xor eax, eax
mov ecx, 0
test r13, r13
jz loc_5797B
mov rdi, [rbx+8]
lea rsi, [rdi+r13]
sub r15, r13
mov rdx, r15
call _memmove
xor eax, eax
xor ecx, ecx
jmp loc_5797B
loc_57A77:
mov byte ptr [rbx+94h], 2
mov r8, [rbx]
mov rdi, [r8+40h]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
mov esi, 1397h
xor ecx, ecx
xor eax, eax
call qword ptr [r8+50h]
loc_57A9C:
mov r14d, 0FFFFFFFFh
jmp short loc_57AFF
loc_57AA4:
add r14, 4
movzx eax, byte ptr [rbp+var_40]
shl eax, 2
or rax, 0FFFFFFFFFFFFFFF8h
loc_57AB3:
mov [rbx+40h], r15
sub r15, r14
mov [rbx+30h], r15
lea rcx, [rdi+r13]
add rcx, 4
mov [rbx+20h], rcx
sub r14, r13
add r14, rax
mov al, [rcx+r14]
mov [rbx+81h], al
mov byte ptr [rcx+r14], 0
jmp short loc_57AFF
loc_57AE1:
add rax, r12
loc_57AE4:
mov r14d, 0FFFFFFFFh
add r15, [rbx+8]
mov [rbx+20h], r15
cmp rax, r14
jz short loc_57AFF
mov byte ptr [r15+rax], 0
mov r14, rax
loc_57AFF:
mov rax, r14
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_57B11:
mov rdi, [rbx+8]
mov rax, 0FFFFFFFFFFFFFFFCh
jmp short loc_57AB3
|
long long ma_net_read(long long a1)
{
long long v2; // rax
long long v3; // r15
long long v4; // r14
long long v5; // rax
long long v6; // r15
long long v7; // r12
long long v8; // rax
long long v9; // r14
char v10; // cl
long long v11; // rax
long long i; // r13
unsigned long long v13; // rdx
long long v14; // rdi
unsigned long long v15; // rax
unsigned long long v16; // rax
long long v17; // rcx
long long v18; // r15
char v20; // [rsp+0h] [rbp-40h]
long long v21; // [rsp+8h] [rbp-38h] BYREF
long long v22[6]; // [rsp+10h] [rbp-30h] BYREF
if ( *(_BYTE *)(a1 + 132) )
{
v2 = *(_QWORD *)(a1 + 48);
if ( v2 )
{
v3 = *(_QWORD *)(a1 + 64);
v4 = v3 - v2;
*(_BYTE *)(*(_QWORD *)(a1 + 8) + v3 - v2) = *(_BYTE *)(a1 + 129);
}
else
{
v3 = 0LL;
v4 = 0LL;
}
v10 = 1;
v11 = v4;
while ( 1 )
{
v20 = v10;
for ( i = v11; ; i = 0LL )
{
v13 = v3 - v4;
if ( (unsigned long long)(v3 - v4) >= 4 )
{
v14 = *(_QWORD *)(a1 + 8);
v15 = *(unsigned __int16 *)(v14 + v4) | (unsigned long long)(*(unsigned __int8 *)(v14 + v4 + 2) << 16);
v22[0] = v15;
if ( !v15 )
{
v4 += 4LL;
v16 = (4 * v20) | 0xFFFFFFFFFFFFFFF8LL;
goto LABEL_29;
}
if ( v15 + 4 <= v13 )
break;
}
if ( i )
{
v3 -= i;
memmove(*(_QWORD *)(a1 + 8), *(_QWORD *)(a1 + 8) + i, v3);
v4 -= i;
}
*(_QWORD *)(a1 + 72) = v3;
v22[0] = ma_real_read(a1, &v21);
if ( v22[0] == 0xFFFFFFFFLL )
return 0xFFFFFFFFLL;
if ( (unsigned __int8)mariadb_uncompress(a1, *(_QWORD *)(a1 + 72) + *(_QWORD *)(a1 + 8), v22, &v21) )
{
*(_BYTE *)(a1 + 148) = 2;
(*(void ( **)(_QWORD, long long, char *, _QWORD))(*(_QWORD *)a1 + 80LL))(
*(_QWORD *)(*(_QWORD *)a1 + 64LL),
5015LL,
SQLSTATE_UNKNOWN,
0LL);
return 0xFFFFFFFFLL;
}
v3 += v21;
}
if ( (v20 & 1) != 0 )
{
v4 += v15 + 4;
}
else
{
memmove(v4 + v14, v4 + v14 + 4, v13);
v3 -= 4LL;
v15 = v22[0];
v4 += v22[0];
}
if ( v15 != 0xFFFFFF )
break;
v11 = 0LL;
v10 = 0;
if ( i )
{
v3 -= i;
memmove(*(_QWORD *)(a1 + 8), *(_QWORD *)(a1 + 8) + i, v3);
v11 = 0LL;
v10 = 0;
}
}
v14 = *(_QWORD *)(a1 + 8);
v16 = -4LL;
LABEL_29:
*(_QWORD *)(a1 + 64) = v3;
*(_QWORD *)(a1 + 48) = v3 - v4;
v17 = v14 + i + 4;
*(_QWORD *)(a1 + 32) = v17;
v9 = v16 + v4 - i;
*(_BYTE *)(a1 + 129) = *(_BYTE *)(v17 + v9);
*(_BYTE *)(v17 + v9) = 0;
}
else
{
v5 = ma_real_read(a1, &v21);
v6 = *(_QWORD *)(a1 + 72);
if ( v5 == 0xFFFFFF )
{
v7 = 0LL;
do
{
v7 += 0xFFFFFFLL;
*(_QWORD *)(a1 + 72) += 0xFFFFFFLL;
v8 = ma_real_read(a1, &v21);
}
while ( v8 == 0xFFFFFF );
*(_QWORD *)(a1 + 72) = v6;
v9 = 0xFFFFFFFFLL;
if ( v8 == 0xFFFFFFFFLL )
{
*(_QWORD *)(a1 + 32) = *(_QWORD *)(a1 + 8) + v6;
return v9;
}
v5 = v7 + v8;
}
v9 = 0xFFFFFFFFLL;
v18 = *(_QWORD *)(a1 + 8) + v6;
*(_QWORD *)(a1 + 32) = v18;
if ( v5 != 0xFFFFFFFFLL )
{
*(_BYTE *)(v18 + v5) = 0;
return v5;
}
}
return v9;
}
|
ma_net_read:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
CMP byte ptr [RDI + 0x84],0x0
JZ 0x0015790c
MOV RAX,qword ptr [RBX + 0x30]
TEST RAX,RAX
JZ 0x0015796c
MOV RCX,qword ptr [RBX + 0x8]
MOV R15,qword ptr [RBX + 0x40]
MOV R14,R15
SUB R14,RAX
MOV AL,byte ptr [RBX + 0x81]
MOV byte ptr [RCX + R14*0x1],AL
JMP 0x00157972
LAB_0015790c:
LEA RSI,[RBP + -0x38]
MOV RDI,RBX
CALL 0x00157b1e
MOV R15,qword ptr [RBX + 0x48]
CMP RAX,0xffffff
JNZ 0x00157ae4
XOR R12D,R12D
MOV R13D,0xffffff
LEA R14,[RBP + -0x38]
LAB_00157935:
ADD R12,R13
ADD qword ptr [RBX + 0x48],R13
MOV RDI,RBX
MOV RSI,R14
CALL 0x00157b1e
CMP RAX,R13
JZ 0x00157935
MOV qword ptr [RBX + 0x48],R15
MOV R14D,0xffffffff
CMP RAX,R14
JNZ 0x00157ae1
ADD R15,qword ptr [RBX + 0x8]
MOV qword ptr [RBX + 0x20],R15
JMP 0x00157aff
LAB_0015796c:
XOR R15D,R15D
XOR R14D,R14D
LAB_00157972:
MOV CL,0x1
LEA R12,[RBP + -0x38]
MOV RAX,R14
LAB_0015797b:
MOV qword ptr [RBP + -0x40],RCX
MOV R13,RAX
LAB_00157982:
MOV RDX,R15
SUB RDX,R14
CMP RDX,0x4
JC 0x001579b6
MOV RDI,qword ptr [RBX + 0x8]
MOVZX ECX,word ptr [RDI + R14*0x1]
MOVZX EAX,byte ptr [RDI + R14*0x1 + 0x2]
SHL EAX,0x10
OR RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
JZ 0x00157aa4
LEA RCX,[RAX + 0x4]
CMP RCX,RDX
JBE 0x00157a19
LAB_001579b6:
TEST R13,R13
JZ 0x001579d1
MOV RDI,qword ptr [RBX + 0x8]
LEA RSI,[RDI + R13*0x1]
SUB R15,R13
MOV RDX,R15
CALL 0x00136150
SUB R14,R13
LAB_001579d1:
MOV qword ptr [RBX + 0x48],R15
MOV RDI,RBX
MOV RSI,R12
CALL 0x00157b1e
MOV qword ptr [RBP + -0x30],RAX
MOV ECX,0xffffffff
CMP RAX,RCX
JZ 0x00157a9c
MOV RSI,qword ptr [RBX + 0x8]
ADD RSI,qword ptr [RBX + 0x48]
MOV RDI,RBX
LEA RDX,[RBP + -0x30]
MOV RCX,R12
CALL 0x00144349
TEST AL,AL
JNZ 0x00157a77
ADD R15,qword ptr [RBP + -0x38]
XOR R13D,R13D
JMP 0x00157982
LAB_00157a19:
TEST byte ptr [RBP + -0x40],0x1
JZ 0x00157a28
ADD R14,RAX
ADD R14,0x4
JMP 0x00157a3f
LAB_00157a28:
ADD RDI,R14
LEA RSI,[RDI + 0x4]
CALL 0x00136150
ADD R15,-0x4
MOV RAX,qword ptr [RBP + -0x30]
ADD R14,RAX
LAB_00157a3f:
CMP RAX,0xffffff
JNZ 0x00157b11
XOR EAX,EAX
MOV ECX,0x0
TEST R13,R13
JZ 0x0015797b
MOV RDI,qword ptr [RBX + 0x8]
LEA RSI,[RDI + R13*0x1]
SUB R15,R13
MOV RDX,R15
CALL 0x00136150
XOR EAX,EAX
XOR ECX,ECX
JMP 0x0015797b
LAB_00157a77:
MOV byte ptr [RBX + 0x94],0x2
MOV R8,qword ptr [RBX]
MOV RDI,qword ptr [R8 + 0x40]
LEA RAX,[0x43d310]
MOV RDX,qword ptr [RAX]
MOV ESI,0x1397
XOR ECX,ECX
XOR EAX,EAX
CALL qword ptr [R8 + 0x50]
LAB_00157a9c:
MOV R14D,0xffffffff
JMP 0x00157aff
LAB_00157aa4:
ADD R14,0x4
MOVZX EAX,byte ptr [RBP + -0x40]
SHL EAX,0x2
OR RAX,-0x8
LAB_00157ab3:
MOV qword ptr [RBX + 0x40],R15
SUB R15,R14
MOV qword ptr [RBX + 0x30],R15
LEA RCX,[RDI + R13*0x1]
ADD RCX,0x4
MOV qword ptr [RBX + 0x20],RCX
SUB R14,R13
ADD R14,RAX
MOV AL,byte ptr [RCX + R14*0x1]
MOV byte ptr [RBX + 0x81],AL
MOV byte ptr [RCX + R14*0x1],0x0
JMP 0x00157aff
LAB_00157ae1:
ADD RAX,R12
LAB_00157ae4:
MOV R14D,0xffffffff
ADD R15,qword ptr [RBX + 0x8]
MOV qword ptr [RBX + 0x20],R15
CMP RAX,R14
JZ 0x00157aff
MOV byte ptr [R15 + RAX*0x1],0x0
MOV R14,RAX
LAB_00157aff:
MOV RAX,R14
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00157b11:
MOV RDI,qword ptr [RBX + 0x8]
MOV RAX,-0x4
JMP 0x00157ab3
|
long ma_net_read(long *param_1)
{
char cVar1;
ulong uVar2;
long lVar3;
long lVar4;
size_t __n;
long lVar5;
long lVar6;
size_t __n_00;
long local_40;
ulong local_38;
if (*(char *)((long)param_1 + 0x84) == '\0') {
lVar4 = ma_real_read(param_1,&local_40);
lVar6 = param_1[9];
if (lVar4 == 0xffffff) {
lVar3 = 0;
do {
lVar3 = lVar3 + 0xffffff;
param_1[9] = param_1[9] + 0xffffff;
lVar4 = ma_real_read(param_1,&local_40);
} while (lVar4 == 0xffffff);
param_1[9] = lVar6;
if (lVar4 == 0xffffffff) {
param_1[4] = lVar6 + param_1[1];
return 0xffffffff;
}
lVar4 = lVar4 + lVar3;
}
param_1[4] = lVar6 + param_1[1];
lVar3 = 0xffffffff;
if (lVar4 != 0xffffffff) {
*(int1 *)(lVar6 + param_1[1] + lVar4) = 0;
lVar3 = lVar4;
}
return lVar3;
}
if (param_1[6] == 0) {
__n_00 = 0;
lVar6 = 0;
}
else {
__n_00 = param_1[8];
lVar6 = __n_00 - param_1[6];
*(int1 *)(param_1[1] + lVar6) = *(int1 *)((long)param_1 + 0x81);
}
lVar3 = 1;
lVar4 = lVar6;
LAB_00157982:
do {
lVar5 = lVar4;
__n = __n_00 - lVar6;
if (3 < __n) {
lVar4 = param_1[1];
local_38 = (ulong)CONCAT12(*(int1 *)(lVar4 + 2 + lVar6),*(int2 *)(lVar4 + lVar6));
if (local_38 == 0) {
lVar6 = lVar6 + 4;
uVar2 = lVar3 << 2 | 0xfffffffffffffff8;
LAB_00157ab3:
param_1[8] = __n_00;
param_1[6] = __n_00 - lVar6;
lVar4 = lVar4 + lVar5 + 4;
param_1[4] = lVar4;
lVar6 = (lVar6 - lVar5) + uVar2;
*(int1 *)((long)param_1 + 0x81) = *(int1 *)(lVar4 + lVar6);
*(int1 *)(lVar4 + lVar6) = 0;
return lVar6;
}
if (local_38 + 4 <= __n) {
if (lVar3 == 0) {
memmove((void *)(lVar4 + lVar6),(void *)(lVar4 + lVar6 + 4),__n);
__n_00 = __n_00 - 4;
lVar6 = lVar6 + local_38;
}
else {
lVar6 = lVar6 + local_38 + 4;
}
if (local_38 != 0xffffff) {
lVar4 = param_1[1];
uVar2 = 0xfffffffffffffffc;
goto LAB_00157ab3;
}
lVar3 = 0;
lVar4 = 0;
if (lVar5 != 0) {
__n_00 = __n_00 - lVar5;
memmove((void *)param_1[1],(void *)(param_1[1] + lVar5),__n_00);
lVar3 = 0;
lVar4 = 0;
}
goto LAB_00157982;
}
}
if (lVar5 != 0) {
__n_00 = __n_00 - lVar5;
memmove((void *)param_1[1],(void *)(param_1[1] + lVar5),__n_00);
lVar6 = lVar6 - lVar5;
}
param_1[9] = __n_00;
local_38 = ma_real_read(param_1,&local_40);
if (local_38 == 0xffffffff) {
return 0xffffffff;
}
cVar1 = _mariadb_uncompress(param_1,param_1[1] + param_1[9],&local_38,&local_40);
if (cVar1 != '\0') {
*(int1 *)((long)param_1 + 0x94) = 2;
(**(code **)(*param_1 + 0x50))(*(int8 *)(*param_1 + 0x40),0x1397,SQLSTATE_UNKNOWN,0);
return 0xffffffff;
}
__n_00 = __n_00 + local_40;
lVar4 = 0;
} while( true );
}
|
|
16,275
|
minja::CallExpr::CallExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, minja::ArgumentsExpression&&)
|
monkey531[P]llama/common/minja.hpp
|
Expression(const Location & location) : location(location) {}
|
O1
|
cpp
|
minja::CallExpr::CallExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, minja::ArgumentsExpression&&):
leaq 0x85371(%rip), %rax # 0xe4288
addq $0x10, %rax
movq %rax, (%rdi)
movq (%rsi), %rax
movq %rax, 0x8(%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x10(%rdi)
testq %rax, %rax
je 0x5ef48
movq 0x8705f(%rip), %r9 # 0xe5f98
cmpb $0x0, (%r9)
je 0x5ef44
incl 0x8(%rax)
jmp 0x5ef48
lock
incl 0x8(%rax)
movq 0x10(%rsi), %rax
movq %rax, 0x18(%rdi)
leaq 0x85b81(%rip), %rax # 0xe4ad8
addq $0x10, %rax
movq %rax, (%rdi)
xorl %eax, %eax
movq %rax, 0x28(%rdi)
movups (%rdx), %xmm0
movq %rax, 0x8(%rdx)
movups %xmm0, 0x20(%rdi)
movq %rax, (%rdx)
movq %rax, 0x38(%rdi)
movups (%rcx), %xmm0
movq %rax, 0x8(%rcx)
movups %xmm0, 0x30(%rdi)
movq %rax, (%rcx)
movq %rax, 0x48(%rdi)
movups (%r8), %xmm0
movq %rax, 0x8(%r8)
movups %xmm0, 0x40(%rdi)
movq %rax, (%r8)
retq
|
_ZN5minja6IfExprC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEES7_S7_:
lea rax, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression
add rax, 10h
mov [rdi], rax
mov rax, [rsi]
mov [rdi+8], rax
mov rax, [rsi+8]
mov [rdi+10h], rax
test rax, rax
jz short loc_5EF48
mov r9, cs:__libc_single_threaded_ptr
cmp byte ptr [r9], 0
jz short loc_5EF44
inc dword ptr [rax+8]
jmp short loc_5EF48
loc_5EF44:
lock inc dword ptr [rax+8]
loc_5EF48:
mov rax, [rsi+10h]
mov [rdi+18h], rax
lea rax, _ZTVN5minja6IfExprE; `vtable for'minja::IfExpr
add rax, 10h
mov [rdi], rax
xor eax, eax
mov [rdi+28h], rax
movups xmm0, xmmword ptr [rdx]
mov [rdx+8], rax
movups xmmword ptr [rdi+20h], xmm0
mov [rdx], rax
mov [rdi+38h], rax
movups xmm0, xmmword ptr [rcx]
mov [rcx+8], rax
movups xmmword ptr [rdi+30h], xmm0
mov [rcx], rax
mov [rdi+48h], rax
movups xmm0, xmmword ptr [r8]
mov [r8+8], rax
movups xmmword ptr [rdi+40h], xmm0
mov [r8], rax
retn
|
long long minja::IfExpr::IfExpr(long long a1, _QWORD *a2, __int128 *a3, __int128 *a4, __int128 *a5)
{
long long v5; // rax
long long result; // rax
__int128 v7; // xmm0
__int128 v8; // xmm0
__int128 v9; // xmm0
*(_QWORD *)a1 = &`vtable for'minja::Expression + 2;
*(_QWORD *)(a1 + 8) = *a2;
v5 = a2[1];
*(_QWORD *)(a1 + 16) = v5;
if ( v5 )
{
if ( _libc_single_threaded )
++*(_DWORD *)(v5 + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(v5 + 8));
}
*(_QWORD *)(a1 + 24) = a2[2];
*(_QWORD *)a1 = &`vtable for'minja::IfExpr + 2;
result = 0LL;
*(_QWORD *)(a1 + 40) = 0LL;
v7 = *a3;
*((_QWORD *)a3 + 1) = 0LL;
*(_OWORD *)(a1 + 32) = v7;
*(_QWORD *)a3 = 0LL;
*(_QWORD *)(a1 + 56) = 0LL;
v8 = *a4;
*((_QWORD *)a4 + 1) = 0LL;
*(_OWORD *)(a1 + 48) = v8;
*(_QWORD *)a4 = 0LL;
*(_QWORD *)(a1 + 72) = 0LL;
v9 = *a5;
*((_QWORD *)a5 + 1) = 0LL;
*(_OWORD *)(a1 + 64) = v9;
*(_QWORD *)a5 = 0LL;
return result;
}
|
IfExpr:
LEA RAX,[0x1e4288]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RAX,qword ptr [RSI]
MOV qword ptr [RDI + 0x8],RAX
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RDI + 0x10],RAX
TEST RAX,RAX
JZ 0x0015ef48
MOV R9,qword ptr [0x001e5f98]
CMP byte ptr [R9],0x0
JZ 0x0015ef44
INC dword ptr [RAX + 0x8]
JMP 0x0015ef48
LAB_0015ef44:
INC.LOCK dword ptr [RAX + 0x8]
LAB_0015ef48:
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RDI + 0x18],RAX
LEA RAX,[0x1e4ad8]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
XOR EAX,EAX
MOV qword ptr [RDI + 0x28],RAX
MOVUPS XMM0,xmmword ptr [RDX]
MOV qword ptr [RDX + 0x8],RAX
MOVUPS xmmword ptr [RDI + 0x20],XMM0
MOV qword ptr [RDX],RAX
MOV qword ptr [RDI + 0x38],RAX
MOVUPS XMM0,xmmword ptr [RCX]
MOV qword ptr [RCX + 0x8],RAX
MOVUPS xmmword ptr [RDI + 0x30],XMM0
MOV qword ptr [RCX],RAX
MOV qword ptr [RDI + 0x48],RAX
MOVUPS XMM0,xmmword ptr [R8]
MOV qword ptr [R8 + 0x8],RAX
MOVUPS xmmword ptr [RDI + 0x40],XMM0
MOV qword ptr [R8],RAX
RET
|
/* minja::IfExpr::IfExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&,
std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&) */
void __thiscall
minja::IfExpr::IfExpr
(IfExpr *this,Location *param_1,shared_ptr *param_2,shared_ptr *param_3,
shared_ptr *param_4)
{
long lVar1;
int8 uVar2;
*(int ***)this = &PTR___cxa_pure_virtual_001e4298;
*(int8 *)(this + 8) = *(int8 *)param_1;
lVar1 = *(long *)(param_1 + 8);
*(long *)(this + 0x10) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_001e5f98 == '\0') {
LOCK();
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
}
}
*(int8 *)(this + 0x18) = *(int8 *)(param_1 + 0x10);
*(int ***)this = &PTR_do_evaluate_001e4ae8;
*(int8 *)(this + 0x28) = 0;
uVar2 = *(int8 *)(param_2 + 8);
*(int8 *)(param_2 + 8) = 0;
*(int8 *)(this + 0x20) = *(int8 *)param_2;
*(int8 *)(this + 0x28) = uVar2;
*(int8 *)param_2 = 0;
*(int8 *)(this + 0x38) = 0;
uVar2 = *(int8 *)(param_3 + 8);
*(int8 *)(param_3 + 8) = 0;
*(int8 *)(this + 0x30) = *(int8 *)param_3;
*(int8 *)(this + 0x38) = uVar2;
*(int8 *)param_3 = 0;
*(int8 *)(this + 0x48) = 0;
uVar2 = *(int8 *)(param_4 + 8);
*(int8 *)(param_4 + 8) = 0;
*(int8 *)(this + 0x40) = *(int8 *)param_4;
*(int8 *)(this + 0x48) = uVar2;
*(int8 *)param_4 = 0;
return;
}
|
|
16,276
|
minja::CallExpr::CallExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, minja::ArgumentsExpression&&)
|
monkey531[P]llama/common/minja.hpp
|
Expression(const Location & location) : location(location) {}
|
O3
|
cpp
|
minja::CallExpr::CallExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, minja::ArgumentsExpression&&):
leaq 0x86237(%rip), %rax # 0xe1288
addq $0x10, %rax
movq %rax, (%rdi)
movq (%rsi), %rax
movq %rax, 0x8(%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x10(%rdi)
testq %rax, %rax
je 0x5b082
movq 0x87f25(%rip), %r8 # 0xe2f98
cmpb $0x0, (%r8)
je 0x5b07e
incl 0x8(%rax)
jmp 0x5b082
lock
incl 0x8(%rax)
movq 0x10(%rsi), %rax
movq %rax, 0x18(%rdi)
leaq 0x8684f(%rip), %rax # 0xe18e0
addq $0x10, %rax
movq %rax, (%rdi)
xorl %eax, %eax
movq %rax, 0x28(%rdi)
movups (%rdx), %xmm0
movq %rax, 0x8(%rdx)
movups %xmm0, 0x20(%rdi)
movq %rax, (%rdx)
movups (%rcx), %xmm0
movups %xmm0, 0x30(%rdi)
movq 0x10(%rcx), %rdx
movq %rdx, 0x40(%rdi)
movq %rax, 0x10(%rcx)
xorps %xmm0, %xmm0
movups %xmm0, (%rcx)
movups 0x18(%rcx), %xmm1
movups %xmm1, 0x48(%rdi)
movq 0x28(%rcx), %rdx
movq %rdx, 0x58(%rdi)
movq %rax, 0x28(%rcx)
movups %xmm0, 0x18(%rcx)
retq
|
_ZN5minja8CallExprC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEEONS_19ArgumentsExpressionE:
lea rax, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression
add rax, 10h
mov [rdi], rax
mov rax, [rsi]
mov [rdi+8], rax
mov rax, [rsi+8]
mov [rdi+10h], rax
test rax, rax
jz short loc_5B082
mov r8, cs:__libc_single_threaded_ptr
cmp byte ptr [r8], 0
jz short loc_5B07E
inc dword ptr [rax+8]
jmp short loc_5B082
loc_5B07E:
lock inc dword ptr [rax+8]
loc_5B082:
mov rax, [rsi+10h]
mov [rdi+18h], rax
lea rax, _ZTVN5minja8CallExprE; `vtable for'minja::CallExpr
add rax, 10h
mov [rdi], rax
xor eax, eax
mov [rdi+28h], rax
movups xmm0, xmmword ptr [rdx]
mov [rdx+8], rax
movups xmmword ptr [rdi+20h], xmm0
mov [rdx], rax
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rdi+30h], xmm0
mov rdx, [rcx+10h]
mov [rdi+40h], rdx
mov [rcx+10h], rax
xorps xmm0, xmm0
movups xmmword ptr [rcx], xmm0
movups xmm1, xmmword ptr [rcx+18h]
movups xmmword ptr [rdi+48h], xmm1
mov rdx, [rcx+28h]
mov [rdi+58h], rdx
mov [rcx+28h], rax
movups xmmword ptr [rcx+18h], xmm0
retn
|
long long minja::CallExpr::CallExpr(long long a1, _QWORD *a2, __int128 *a3, long long a4)
{
long long v4; // rax
long long result; // rax
__int128 v6; // xmm0
*(_QWORD *)a1 = &`vtable for'minja::Expression + 2;
*(_QWORD *)(a1 + 8) = *a2;
v4 = a2[1];
*(_QWORD *)(a1 + 16) = v4;
if ( v4 )
{
if ( _libc_single_threaded )
++*(_DWORD *)(v4 + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(v4 + 8));
}
*(_QWORD *)(a1 + 24) = a2[2];
*(_QWORD *)a1 = &`vtable for'minja::CallExpr + 2;
result = 0LL;
*(_QWORD *)(a1 + 40) = 0LL;
v6 = *a3;
*((_QWORD *)a3 + 1) = 0LL;
*(_OWORD *)(a1 + 32) = v6;
*(_QWORD *)a3 = 0LL;
*(_OWORD *)(a1 + 48) = *(_OWORD *)a4;
*(_QWORD *)(a1 + 64) = *(_QWORD *)(a4 + 16);
*(_QWORD *)(a4 + 16) = 0LL;
*(_OWORD *)a4 = 0LL;
*(_OWORD *)(a1 + 72) = *(_OWORD *)(a4 + 24);
*(_QWORD *)(a1 + 88) = *(_QWORD *)(a4 + 40);
*(_QWORD *)(a4 + 40) = 0LL;
*(_OWORD *)(a4 + 24) = 0LL;
return result;
}
|
CallExpr:
LEA RAX,[0x1e1288]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RAX,qword ptr [RSI]
MOV qword ptr [RDI + 0x8],RAX
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RDI + 0x10],RAX
TEST RAX,RAX
JZ 0x0015b082
MOV R8,qword ptr [0x001e2f98]
CMP byte ptr [R8],0x0
JZ 0x0015b07e
INC dword ptr [RAX + 0x8]
JMP 0x0015b082
LAB_0015b07e:
INC.LOCK dword ptr [RAX + 0x8]
LAB_0015b082:
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RDI + 0x18],RAX
LEA RAX,[0x1e18e0]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
XOR EAX,EAX
MOV qword ptr [RDI + 0x28],RAX
MOVUPS XMM0,xmmword ptr [RDX]
MOV qword ptr [RDX + 0x8],RAX
MOVUPS xmmword ptr [RDI + 0x20],XMM0
MOV qword ptr [RDX],RAX
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RDI + 0x30],XMM0
MOV RDX,qword ptr [RCX + 0x10]
MOV qword ptr [RDI + 0x40],RDX
MOV qword ptr [RCX + 0x10],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RCX],XMM0
MOVUPS XMM1,xmmword ptr [RCX + 0x18]
MOVUPS xmmword ptr [RDI + 0x48],XMM1
MOV RDX,qword ptr [RCX + 0x28]
MOV qword ptr [RDI + 0x58],RDX
MOV qword ptr [RCX + 0x28],RAX
MOVUPS xmmword ptr [RCX + 0x18],XMM0
RET
|
/* minja::CallExpr::CallExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&,
minja::ArgumentsExpression&&) */
void __thiscall
minja::CallExpr::CallExpr
(CallExpr *this,Location *param_1,shared_ptr *param_2,ArgumentsExpression *param_3)
{
long lVar1;
int8 uVar2;
*(int ***)this = &PTR___cxa_pure_virtual_001e1298;
*(int8 *)(this + 8) = *(int8 *)param_1;
lVar1 = *(long *)(param_1 + 8);
*(long *)(this + 0x10) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_001e2f98 == '\0') {
LOCK();
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
}
}
*(int8 *)(this + 0x18) = *(int8 *)(param_1 + 0x10);
*(int ***)this = &PTR_do_evaluate_001e18f0;
*(int8 *)(this + 0x28) = 0;
uVar2 = *(int8 *)(param_2 + 8);
*(int8 *)(param_2 + 8) = 0;
*(int8 *)(this + 0x20) = *(int8 *)param_2;
*(int8 *)(this + 0x28) = uVar2;
*(int8 *)param_2 = 0;
uVar2 = *(int8 *)(param_3 + 8);
*(int8 *)(this + 0x30) = *(int8 *)param_3;
*(int8 *)(this + 0x38) = uVar2;
*(int8 *)(this + 0x40) = *(int8 *)(param_3 + 0x10);
*(int8 *)(param_3 + 0x10) = 0;
*(int8 *)param_3 = 0;
*(int8 *)(param_3 + 8) = 0;
uVar2 = *(int8 *)(param_3 + 0x20);
*(int8 *)(this + 0x48) = *(int8 *)(param_3 + 0x18);
*(int8 *)(this + 0x50) = uVar2;
*(int8 *)(this + 0x58) = *(int8 *)(param_3 + 0x28);
*(int8 *)(param_3 + 0x28) = 0;
*(int8 *)(param_3 + 0x18) = 0;
*(int8 *)(param_3 + 0x20) = 0;
return;
}
|
|
16,277
|
resolve_charset
|
eloqsql/mysys/charset.c
|
my_bool resolve_charset(const char *cs_name,
CHARSET_INFO *default_cs,
CHARSET_INFO **cs,
myf flags)
{
*cs= get_charset_by_csname(cs_name, MY_CS_PRIMARY, flags);
if (*cs == NULL)
{
*cs= default_cs;
return TRUE;
}
return FALSE;
}
|
O3
|
c
|
resolve_charset:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0xc0, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %rsi
movq %fs:0x28, %rax
movq %rax, -0x18(%rbp)
leaq -0xc8(%rbp), %rdi
movb $0x0, (%rdi)
leaq -0x12f0(%rip), %rax # 0x4dbd6
movq %rax, 0x80(%rdi)
leaq -0x12ef(%rip), %rax # 0x4dbe5
movq %rax, 0x88(%rdi)
leaq -0x12e2(%rip), %rax # 0x4dc00
movq %rax, 0x90(%rdi)
leaq 0xe3da(%rip), %rax # 0x5d2ca
movq %rax, 0x98(%rdi)
leaq 0x2e7042(%rip), %rax # 0x335f40
movq (%rax), %rax
movq %rax, 0xa0(%rdi)
leaq -0x12f1(%rip), %rax # 0x4dc1e
movq %rax, 0xa8(%rdi)
movl $0x20, %edx
callq 0x4ed18
movq %rax, %rcx
testq %rax, %rax
sete %al
cmovneq %rcx, %r14
movq %r14, (%rbx)
movq %fs:0x28, %rcx
cmpq -0x18(%rbp), %rcx
jne 0x4ef4b
addq $0xc0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
callq 0x28430
|
resolve_charset:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 0C0h
mov rbx, rdx
mov r14, rsi
mov rsi, rdi
mov rax, fs:28h
mov [rbp+var_18], rax
lea rdi, [rbp+var_C8]
mov byte ptr [rdi], 0
lea rax, my_once_alloc_c
mov [rdi+80h], rax
lea rax, my_malloc_c
mov [rdi+88h], rax
lea rax, my_realloc_c
mov [rdi+90h], rax
lea rax, my_free
mov [rdi+98h], rax
lea rax, my_charset_error_reporter
mov rax, [rax]
mov [rdi+0A0h], rax
lea rax, add_collation
mov [rdi+0A8h], rax
mov edx, 20h ; ' '
call my_charset_get_by_name
mov rcx, rax
test rax, rax
setz al
cmovnz r14, rcx
mov [rbx], r14
mov rcx, fs:28h
cmp rcx, [rbp+var_18]
jnz short loc_4EF4B
add rsp, 0C0h
pop rbx
pop r14
pop rbp
retn
loc_4EF4B:
call ___stack_chk_fail
|
bool resolve_charset(long long a1, long long a2, long long *a3, long long a4)
{
long long v6; // rcx
bool result; // al
char v8[128]; // [rsp+8h] [rbp-C8h] BYREF
long long ( *v9)(long long); // [rsp+88h] [rbp-48h]
long long ( *v10)(long long); // [rsp+90h] [rbp-40h]
long long ( *v11)(long long, long long); // [rsp+98h] [rbp-38h]
long long ( *v12)(_QWORD); // [rsp+A0h] [rbp-30h]
long long ( *v13)(); // [rsp+A8h] [rbp-28h]
long long ( *v14)(unsigned int *); // [rsp+B0h] [rbp-20h]
unsigned long long v15; // [rsp+B8h] [rbp-18h]
v15 = __readfsqword(0x28u);
v8[0] = 0;
v9 = my_once_alloc_c;
v10 = my_malloc_c;
v11 = my_realloc_c;
v12 = my_free;
v13 = my_charset_error_reporter;
v14 = add_collation;
v6 = my_charset_get_by_name((long long)v8, a1, 0x20u, a4);
result = v6 == 0;
if ( v6 )
a2 = v6;
*a3 = a2;
return result;
}
|
resolve_charset:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0xc0
MOV RBX,RDX
MOV R14,RSI
MOV RSI,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x18],RAX
LEA RDI,[RBP + -0xc8]
MOV byte ptr [RDI],0x0
LEA RAX,[0x14dbd6]
MOV qword ptr [RDI + 0x80],RAX
LEA RAX,[0x14dbe5]
MOV qword ptr [RDI + 0x88],RAX
LEA RAX,[0x14dc00]
MOV qword ptr [RDI + 0x90],RAX
LEA RAX,[0x15d2ca]
MOV qword ptr [RDI + 0x98],RAX
LEA RAX,[0x435f40]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RDI + 0xa0],RAX
LEA RAX,[0x14dc1e]
MOV qword ptr [RDI + 0xa8],RAX
MOV EDX,0x20
CALL 0x0014ed18
MOV RCX,RAX
TEST RAX,RAX
SETZ AL
CMOVNZ R14,RCX
MOV qword ptr [RBX],R14
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x18]
JNZ 0x0014ef4b
ADD RSP,0xc0
POP RBX
POP R14
POP RBP
RET
LAB_0014ef4b:
CALL 0x00128430
|
bool resolve_charset(int8 param_1,long param_2,long *param_3)
{
long lVar1;
long in_FS_OFFSET;
int1 local_d0 [128];
code *local_50;
code *local_48;
code *local_40;
code *local_38;
int *local_30;
code *local_28;
long local_20;
local_20 = *(long *)(in_FS_OFFSET + 0x28);
local_d0[0] = 0;
local_50 = my_once_alloc_c;
local_48 = my_malloc_c;
local_40 = my_realloc_c;
local_38 = my_free;
local_30 = my_charset_error_reporter;
local_28 = add_collation;
lVar1 = my_charset_get_by_name(local_d0,param_1,0x20);
if (lVar1 != 0) {
param_2 = lVar1;
}
*param_3 = param_2;
if (*(long *)(in_FS_OFFSET + 0x28) == local_20) {
return lVar1 == 0;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
16,278
|
ma_get_host_list
|
eloqsql/libmariadb/libmariadb/mariadb_lib.c
|
static void ma_get_host_list(char *host_list, struct st_host *host_info, int default_port)
{
char *token, *start, *save;
int host_nr= 0;
start= host_list;
while ((token= strtok_r(start, ",", &save)))
{
char *p;
/* ipv6 hostname */
if ((p= strchr(token, ']')))
{
host_info[host_nr].host= token + 1;
*p++= 0;
token= p;
}
else
host_info[host_nr].host= token;
/* check if port was specified */
if ((p= strchr(token, ':')))
{
*p++= 0;
host_info[host_nr].port= atoi(p);
}
else
host_info[host_nr].port= default_port;
host_nr++;
start= NULL;
}
return;
}
|
O0
|
c
|
ma_get_host_list:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl $0x0, -0x34(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
leaq 0x8fb2e(%rip), %rsi # 0xde2ab
leaq -0x30(%rbp), %rdx
callq 0x382f0
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
je 0x4e86c
movq -0x20(%rbp), %rdi
movl $0x5d, %esi
callq 0x38500
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
je 0x4e7e2
movq -0x20(%rbp), %rcx
addq $0x1, %rcx
movq -0x10(%rbp), %rax
movslq -0x34(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
movq -0x40(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x40(%rbp)
movb $0x0, (%rax)
movq -0x40(%rbp), %rax
movq %rax, -0x20(%rbp)
jmp 0x4e7f8
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movslq -0x34(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
movq -0x20(%rbp), %rdi
movl $0x3a, %esi
callq 0x38500
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
je 0x4e841
movq -0x40(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x40(%rbp)
movb $0x0, (%rax)
movq -0x40(%rbp), %rdi
callq 0x38330
movl %eax, %ecx
movq -0x10(%rbp), %rax
movslq -0x34(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movl %ecx, 0x8(%rax)
jmp 0x4e856
movl -0x14(%rbp), %ecx
movq -0x10(%rbp), %rax
movslq -0x34(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movl %ecx, 0x8(%rax)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
movq $0x0, -0x28(%rbp)
jmp 0x4e772
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
ma_get_host_list:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov [rbp+var_34], 0
mov rax, [rbp+var_8]
mov [rbp+var_28], rax
loc_4E772:
mov rdi, [rbp+var_28]
lea rsi, asc_DE2AA+1; ","
lea rdx, [rbp+var_30]
call _strtok_r
mov [rbp+var_20], rax
cmp rax, 0
jz loc_4E86C
mov rdi, [rbp+var_20]
mov esi, 5Dh ; ']'
call _strchr
mov [rbp+var_40], rax
cmp rax, 0
jz short loc_4E7E2
mov rcx, [rbp+var_20]
add rcx, 1
mov rax, [rbp+var_10]
movsxd rdx, [rbp+var_34]
shl rdx, 4
add rax, rdx
mov [rax], rcx
mov rax, [rbp+var_40]
mov rcx, rax
add rcx, 1
mov [rbp+var_40], rcx
mov byte ptr [rax], 0
mov rax, [rbp+var_40]
mov [rbp+var_20], rax
jmp short loc_4E7F8
loc_4E7E2:
mov rcx, [rbp+var_20]
mov rax, [rbp+var_10]
movsxd rdx, [rbp+var_34]
shl rdx, 4
add rax, rdx
mov [rax], rcx
loc_4E7F8:
mov rdi, [rbp+var_20]
mov esi, 3Ah ; ':'
call _strchr
mov [rbp+var_40], rax
cmp rax, 0
jz short loc_4E841
mov rax, [rbp+var_40]
mov rcx, rax
add rcx, 1
mov [rbp+var_40], rcx
mov byte ptr [rax], 0
mov rdi, [rbp+var_40]
call _atoi
mov ecx, eax
mov rax, [rbp+var_10]
movsxd rdx, [rbp+var_34]
shl rdx, 4
add rax, rdx
mov [rax+8], ecx
jmp short loc_4E856
loc_4E841:
mov ecx, [rbp+var_14]
mov rax, [rbp+var_10]
movsxd rdx, [rbp+var_34]
shl rdx, 4
add rax, rdx
mov [rax+8], ecx
loc_4E856:
mov eax, [rbp+var_34]
add eax, 1
mov [rbp+var_34], eax
mov [rbp+var_28], 0
jmp loc_4E772
loc_4E86C:
add rsp, 40h
pop rbp
retn
|
long long ma_get_host_list(long long a1, long long a2, int a3)
{
long long result; // rax
int v4; // eax
_BYTE *v5; // [rsp+0h] [rbp-40h]
_BYTE *v6; // [rsp+0h] [rbp-40h]
int v7; // [rsp+Ch] [rbp-34h]
_BYTE v8[8]; // [rsp+10h] [rbp-30h] BYREF
long long i; // [rsp+18h] [rbp-28h]
_BYTE *v10; // [rsp+20h] [rbp-20h]
int v11; // [rsp+2Ch] [rbp-14h]
long long v12; // [rsp+30h] [rbp-10h]
long long v13; // [rsp+38h] [rbp-8h]
v13 = a1;
v12 = a2;
v11 = a3;
v7 = 0;
for ( i = a1; ; i = 0LL )
{
result = strtok_r(i, ",", v8);
v10 = (_BYTE *)result;
if ( !result )
break;
v5 = (_BYTE *)strchr(v10, 93LL);
if ( v5 )
{
*(_QWORD *)(16LL * v7 + v12) = v10 + 1;
*v5 = 0;
v10 = v5 + 1;
}
else
{
*(_QWORD *)(16LL * v7 + v12) = v10;
}
v6 = (_BYTE *)strchr(v10, 58LL);
if ( v6 )
{
*v6 = 0;
v4 = atoi(v6 + 1);
*(_DWORD *)(16LL * v7 + v12 + 8) = v4;
}
else
{
*(_DWORD *)(16LL * v7 + v12 + 8) = v11;
}
++v7;
}
return result;
}
|
ma_get_host_list:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV dword ptr [RBP + -0x34],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x28],RAX
LAB_0014e772:
MOV RDI,qword ptr [RBP + -0x28]
LEA RSI,[0x1de2ab]
LEA RDX,[RBP + -0x30]
CALL 0x001382f0
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JZ 0x0014e86c
MOV RDI,qword ptr [RBP + -0x20]
MOV ESI,0x5d
CALL 0x00138500
MOV qword ptr [RBP + -0x40],RAX
CMP RAX,0x0
JZ 0x0014e7e2
MOV RCX,qword ptr [RBP + -0x20]
ADD RCX,0x1
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RDX,dword ptr [RBP + -0x34]
SHL RDX,0x4
ADD RAX,RDX
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x40],RCX
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x20],RAX
JMP 0x0014e7f8
LAB_0014e7e2:
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RDX,dword ptr [RBP + -0x34]
SHL RDX,0x4
ADD RAX,RDX
MOV qword ptr [RAX],RCX
LAB_0014e7f8:
MOV RDI,qword ptr [RBP + -0x20]
MOV ESI,0x3a
CALL 0x00138500
MOV qword ptr [RBP + -0x40],RAX
CMP RAX,0x0
JZ 0x0014e841
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x40],RCX
MOV byte ptr [RAX],0x0
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x00138330
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RDX,dword ptr [RBP + -0x34]
SHL RDX,0x4
ADD RAX,RDX
MOV dword ptr [RAX + 0x8],ECX
JMP 0x0014e856
LAB_0014e841:
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RDX,dword ptr [RBP + -0x34]
SHL RDX,0x4
ADD RAX,RDX
MOV dword ptr [RAX + 0x8],ECX
LAB_0014e856:
MOV EAX,dword ptr [RBP + -0x34]
ADD EAX,0x1
MOV dword ptr [RBP + -0x34],EAX
MOV qword ptr [RBP + -0x28],0x0
JMP 0x0014e772
LAB_0014e86c:
ADD RSP,0x40
POP RBP
RET
|
void ma_get_host_list(char *param_1,long param_2,int4 param_3)
{
int iVar1;
char *pcVar2;
int local_3c;
char *local_38;
char *local_30;
char *local_28;
int4 local_1c;
long local_18;
char *local_10;
local_3c = 0;
local_30 = param_1;
local_1c = param_3;
local_18 = param_2;
local_10 = param_1;
while( true ) {
local_28 = strtok_r(local_30,",",&local_38);
if (local_28 == (char *)0x0) break;
pcVar2 = strchr(local_28,0x5d);
if (pcVar2 == (char *)0x0) {
*(char **)(local_18 + (long)local_3c * 0x10) = local_28;
}
else {
*(char **)(local_18 + (long)local_3c * 0x10) = local_28 + 1;
local_28 = pcVar2 + 1;
*pcVar2 = '\0';
}
pcVar2 = strchr(local_28,0x3a);
if (pcVar2 == (char *)0x0) {
*(int4 *)(local_18 + (long)local_3c * 0x10 + 8) = local_1c;
}
else {
*pcVar2 = '\0';
iVar1 = atoi(pcVar2 + 1);
*(int *)(local_18 + (long)local_3c * 0x10 + 8) = iVar1;
}
local_3c = local_3c + 1;
local_30 = (char *)0x0;
}
return;
}
|
|
16,279
|
mysql_stmt_fetch_column
|
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
|
int STDCALL mysql_stmt_fetch_column(MYSQL_STMT *stmt, MYSQL_BIND *bind, unsigned int column, unsigned long offset)
{
if (stmt->state < MYSQL_STMT_USER_FETCHING || column >= stmt->field_count ||
stmt->state == MYSQL_STMT_FETCH_DONE) {
SET_CLIENT_STMT_ERROR(stmt, CR_NO_DATA, SQLSTATE_UNKNOWN, 0);
return(1);
}
if (!stmt->bind[column].u.row_ptr)
{
/* we set row_ptr only for columns which contain data, so this must be a NULL column */
if (bind[0].is_null)
*bind[0].is_null= 1;
}
else
{
unsigned char *save_ptr;
if (bind[0].length)
*bind[0].length= *stmt->bind[column].length;
else
bind[0].length= &stmt->bind[column].length_value;
if (bind[0].is_null)
*bind[0].is_null= 0;
else
bind[0].is_null= &bind[0].is_null_value;
if (!bind[0].error)
bind[0].error= &bind[0].error_value;
*bind[0].error= 0;
bind[0].offset= offset;
save_ptr= stmt->bind[column].u.row_ptr;
mysql_ps_fetch_functions[stmt->fields[column].type].func(&bind[0], &stmt->fields[column], &stmt->bind[column].u.row_ptr);
stmt->bind[column].u.row_ptr= save_ptr;
}
return(0);
}
|
O3
|
c
|
mysql_stmt_fetch_column:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x50(%rdi), %eax
cmpl $0x5, %eax
jae 0x21224
movl $0x803, 0x108(%rbx) # imm = 0x803
leaq 0x30d(%rbx), %rdi
leaq 0x29949(%rip), %rax # 0x4ab20
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13220
xorl %r14d, %r14d
movb %r14b, 0x312(%rbx)
leaq 0x10c(%rbx), %rdi
leaq 0x29934(%rip), %rax # 0x4ab30
movq 0x198(%rax), %rsi
movl $0x200, %edx # imm = 0x200
callq 0x13220
movb %r14b, 0x30b(%rbx)
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x6, %eax
je 0x211bf
cmpl %edx, 0x60(%rbx)
jbe 0x211bf
movq 0x78(%rbx), %rax
movl %edx, %edi
imulq $0x70, %rdi, %r14
cmpq $0x0, 0x20(%rax,%r14)
je 0x21256
addq %r14, %rax
movq (%rsi), %rdx
testq %rdx, %rdx
je 0x21266
movq (%rax), %rax
movq (%rax), %rax
movq %rax, (%rdx)
jmp 0x2126d
movq 0x8(%rsi), %rcx
xorl %eax, %eax
testq %rcx, %rcx
je 0x21219
movb $0x1, (%rcx)
jmp 0x21219
addq $0x50, %rax
movq %rax, (%rsi)
movq 0x8(%rsi), %rax
testq %rax, %rax
je 0x2127b
movb $0x0, (%rax)
jmp 0x21283
leaq 0x67(%rsi), %rax
movq %rax, 0x8(%rsi)
movq 0x18(%rsi), %rax
testq %rax, %rax
jne 0x21294
leaq 0x64(%rsi), %rax
movq %rax, 0x18(%rsi)
movb $0x0, (%rax)
movq %rcx, 0x48(%rsi)
movq 0x58(%rbx), %rcx
movq 0x78(%rbx), %rax
leaq (%rax,%r14), %rdx
addq $0x20, %rdx
movq (%rdx), %r15
shlq $0x7, %rdi
leaq (%rcx,%rdi), %rax
movl 0x70(%rcx,%rdi), %ecx
leaq (%rcx,%rcx,2), %rcx
leaq 0x29d9b(%rip), %r8 # 0x4b060
movq %rsi, %rdi
movq %rax, %rsi
callq *(%r8,%rcx,8)
movq 0x78(%rbx), %rax
movq %r15, 0x20(%rax,%r14)
xorl %eax, %eax
jmp 0x21219
|
mysql_stmt_fetch_column:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rdi
mov eax, [rdi+50h]
cmp eax, 5
jnb short loc_21224
loc_211BF:
mov dword ptr [rbx+108h], 803h
lea rdi, [rbx+30Dh]
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
xor r14d, r14d
mov [rbx+312h], r14b
lea rdi, [rbx+10Ch]
lea rax, client_errors
mov rsi, [rax+198h]
mov edx, 200h
call _strncpy
mov [rbx+30Bh], r14b
mov eax, 1
loc_21219:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_21224:
cmp eax, 6
jz short loc_211BF
cmp [rbx+60h], edx
jbe short loc_211BF
mov rax, [rbx+78h]
mov edi, edx
imul r14, rdi, 70h ; 'p'
cmp qword ptr [rax+r14+20h], 0
jz short loc_21256
add rax, r14
mov rdx, [rsi]
test rdx, rdx
jz short loc_21266
mov rax, [rax]
mov rax, [rax]
mov [rdx], rax
jmp short loc_2126D
loc_21256:
mov rcx, [rsi+8]
xor eax, eax
test rcx, rcx
jz short loc_21219
mov byte ptr [rcx], 1
jmp short loc_21219
loc_21266:
add rax, 50h ; 'P'
mov [rsi], rax
loc_2126D:
mov rax, [rsi+8]
test rax, rax
jz short loc_2127B
mov byte ptr [rax], 0
jmp short loc_21283
loc_2127B:
lea rax, [rsi+67h]
mov [rsi+8], rax
loc_21283:
mov rax, [rsi+18h]
test rax, rax
jnz short loc_21294
lea rax, [rsi+64h]
mov [rsi+18h], rax
loc_21294:
mov byte ptr [rax], 0
mov [rsi+48h], rcx
mov rcx, [rbx+58h]
mov rax, [rbx+78h]
lea rdx, [rax+r14]
add rdx, 20h ; ' '
mov r15, [rdx]
shl rdi, 7
lea rax, [rcx+rdi]
mov ecx, [rcx+rdi+70h]
lea rcx, [rcx+rcx*2]
lea r8, mysql_ps_fetch_functions
mov rdi, rsi
mov rsi, rax
call qword ptr [r8+rcx*8]
mov rax, [rbx+78h]
mov [rax+r14+20h], r15
xor eax, eax
jmp loc_21219
|
long long mysql_stmt_fetch_column(long long a1, long long a2, unsigned int a3, long long a4)
{
unsigned int v4; // eax
long long result; // rax
long long v6; // rax
long long v7; // r14
_QWORD **v8; // rax
_BYTE *v9; // rcx
_BYTE *v10; // rax
_BYTE *v11; // rax
long long v12; // r15
v4 = *(_DWORD *)(a1 + 80);
if ( v4 < 5 || v4 == 6 || *(_DWORD *)(a1 + 96) <= a3 )
{
*(_DWORD *)(a1 + 264) = 2051;
strncpy(a1 + 781, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(a1 + 786) = 0;
strncpy(a1 + 268, client_errors[51], 512LL);
*(_BYTE *)(a1 + 779) = 0;
return 1LL;
}
else
{
v6 = *(_QWORD *)(a1 + 120);
v7 = 112LL * a3;
if ( *(_QWORD *)(v6 + v7 + 32) )
{
v8 = (_QWORD **)(v7 + v6);
if ( *(_QWORD *)a2 )
**(_QWORD **)a2 = **v8;
else
*(_QWORD *)a2 = v8 + 10;
v10 = *(_BYTE **)(a2 + 8);
if ( v10 )
*v10 = 0;
else
*(_QWORD *)(a2 + 8) = a2 + 103;
v11 = *(_BYTE **)(a2 + 24);
if ( !v11 )
{
v11 = (_BYTE *)(a2 + 100);
*(_QWORD *)(a2 + 24) = a2 + 100;
}
*v11 = 0;
*(_QWORD *)(a2 + 72) = a4;
v12 = *(_QWORD *)(*(_QWORD *)(a1 + 120) + v7 + 32);
(*(void ( **)(long long, unsigned long long))&mysql_ps_fetch_functions[6
* *(unsigned int *)(*(_QWORD *)(a1 + 88) + ((unsigned long long)a3 << 7) + 112)])(
a2,
*(_QWORD *)(a1 + 88) + ((unsigned long long)a3 << 7));
*(_QWORD *)(*(_QWORD *)(a1 + 120) + v7 + 32) = v12;
return 0LL;
}
else
{
v9 = *(_BYTE **)(a2 + 8);
result = 0LL;
if ( v9 )
*v9 = 1;
}
}
return result;
}
|
mysql_stmt_fetch_column:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV EAX,dword ptr [RDI + 0x50]
CMP EAX,0x5
JNC 0x00121224
LAB_001211bf:
MOV dword ptr [RBX + 0x108],0x803
LEA RDI,[RBX + 0x30d]
LEA RAX,[0x14ab20]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113220
XOR R14D,R14D
MOV byte ptr [RBX + 0x312],R14B
LEA RDI,[RBX + 0x10c]
LEA RAX,[0x14ab30]
MOV RSI,qword ptr [RAX + 0x198]
MOV EDX,0x200
CALL 0x00113220
MOV byte ptr [RBX + 0x30b],R14B
MOV EAX,0x1
LAB_00121219:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_00121224:
CMP EAX,0x6
JZ 0x001211bf
CMP dword ptr [RBX + 0x60],EDX
JBE 0x001211bf
MOV RAX,qword ptr [RBX + 0x78]
MOV EDI,EDX
IMUL R14,RDI,0x70
CMP qword ptr [RAX + R14*0x1 + 0x20],0x0
JZ 0x00121256
ADD RAX,R14
MOV RDX,qword ptr [RSI]
TEST RDX,RDX
JZ 0x00121266
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RDX],RAX
JMP 0x0012126d
LAB_00121256:
MOV RCX,qword ptr [RSI + 0x8]
XOR EAX,EAX
TEST RCX,RCX
JZ 0x00121219
MOV byte ptr [RCX],0x1
JMP 0x00121219
LAB_00121266:
ADD RAX,0x50
MOV qword ptr [RSI],RAX
LAB_0012126d:
MOV RAX,qword ptr [RSI + 0x8]
TEST RAX,RAX
JZ 0x0012127b
MOV byte ptr [RAX],0x0
JMP 0x00121283
LAB_0012127b:
LEA RAX,[RSI + 0x67]
MOV qword ptr [RSI + 0x8],RAX
LAB_00121283:
MOV RAX,qword ptr [RSI + 0x18]
TEST RAX,RAX
JNZ 0x00121294
LEA RAX,[RSI + 0x64]
MOV qword ptr [RSI + 0x18],RAX
LAB_00121294:
MOV byte ptr [RAX],0x0
MOV qword ptr [RSI + 0x48],RCX
MOV RCX,qword ptr [RBX + 0x58]
MOV RAX,qword ptr [RBX + 0x78]
LEA RDX,[RAX + R14*0x1]
ADD RDX,0x20
MOV R15,qword ptr [RDX]
SHL RDI,0x7
LEA RAX,[RCX + RDI*0x1]
MOV ECX,dword ptr [RCX + RDI*0x1 + 0x70]
LEA RCX,[RCX + RCX*0x2]
LEA R8,[0x14b060]
MOV RDI,RSI
MOV RSI,RAX
CALL qword ptr [R8 + RCX*0x8]
MOV RAX,qword ptr [RBX + 0x78]
MOV qword ptr [RAX + R14*0x1 + 0x20],R15
XOR EAX,EAX
JMP 0x00121219
|
int8 mysql_stmt_fetch_column(long param_1,long *param_2,uint param_3,long param_4)
{
int8 uVar1;
int8 *puVar2;
int1 *puVar3;
long lVar4;
long lVar5;
if (((*(uint *)(param_1 + 0x50) < 5) || (*(uint *)(param_1 + 0x50) == 6)) ||
(*(uint *)(param_1 + 0x60) <= param_3)) {
*(int4 *)(param_1 + 0x108) = 0x803;
strncpy((char *)(param_1 + 0x30d),SQLSTATE_UNKNOWN,5);
*(int1 *)(param_1 + 0x312) = 0;
strncpy((char *)(param_1 + 0x10c),PTR_s__0014acc8,0x200);
*(int1 *)(param_1 + 0x30b) = 0;
uVar1 = 1;
}
else {
lVar5 = (ulong)param_3 * 0x70;
if (*(long *)(*(long *)(param_1 + 0x78) + 0x20 + lVar5) == 0) {
uVar1 = 0;
if ((int1 *)param_2[1] != (int1 *)0x0) {
*(int1 *)param_2[1] = 1;
}
}
else {
puVar2 = (int8 *)(*(long *)(param_1 + 0x78) + lVar5);
if ((int8 *)*param_2 == (int8 *)0x0) {
*param_2 = (long)(puVar2 + 10);
}
else {
*(int8 *)*param_2 = *(int8 *)*puVar2;
}
if ((int1 *)param_2[1] == (int1 *)0x0) {
param_2[1] = (long)param_2 + 0x67;
}
else {
*(int1 *)param_2[1] = 0;
}
puVar3 = (int1 *)param_2[3];
if (puVar3 == (int1 *)0x0) {
puVar3 = (int1 *)((long)param_2 + 100);
param_2[3] = (long)puVar3;
}
*puVar3 = 0;
param_2[9] = param_4;
uVar1 = *(int8 *)(*(long *)(param_1 + 0x78) + lVar5 + 0x20);
lVar4 = (ulong)param_3 * 0x80;
(*(code *)(&mysql_ps_fetch_functions)
[(ulong)*(uint *)(*(long *)(param_1 + 0x58) + 0x70 + lVar4) * 3])
(param_2,*(long *)(param_1 + 0x58) + lVar4);
*(int8 *)(*(long *)(param_1 + 0x78) + 0x20 + lVar5) = uVar1;
uVar1 = 0;
}
}
return uVar1;
}
|
|
16,280
|
THD::sql_parser(LEX*, LEX*, char*, unsigned int, bool)
|
eloqsql/sql/sql_class.cc
|
bool THD::sql_parser(LEX *old_lex, LEX *lex,
char *str, uint str_len, bool stmt_prepare_mode)
{
extern int MYSQLparse(THD * thd);
extern int ORAparse(THD * thd);
bool parse_status= false;
Parser_state parser_state;
Parser_state *old_parser_state= m_parser_state;
if (parser_state.init(this, str, str_len))
return true;
m_parser_state= &parser_state;
parser_state.m_lip.stmt_prepare_mode= stmt_prepare_mode;
parser_state.m_lip.multi_statements= false;
parser_state.m_lip.m_digest= NULL;
lex->param_list= old_lex->param_list;
lex->sphead= old_lex->sphead;
lex->spname= old_lex->spname;
lex->spcont= old_lex->spcont;
lex->sp_chistics= old_lex->sp_chistics;
lex->trg_chistics= old_lex->trg_chistics;
parse_status= (variables.sql_mode & MODE_ORACLE) ?
ORAparse(this) : MYSQLparse(this) != 0;
m_parser_state= old_parser_state;
return parse_status;
}
|
O0
|
cpp
|
THD::sql_parser(LEX*, LEX*, char*, unsigned int, bool):
pushq %rbp
movq %rsp, %rbp
subq $0x1d0, %rsp # imm = 0x1D0
movb %r9b, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
andb $0x1, %al
movb %al, -0x2d(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x1b0(%rbp)
movb $0x0, -0x2e(%rbp)
leaq -0x188(%rbp), %rdi
movq %rdi, -0x1b8(%rbp)
callq 0x811ec0
movq -0x1b8(%rbp), %rdi
movq -0x1b0(%rbp), %rsi
movq 0x4038(%rsi), %rax
movq %rax, -0x190(%rbp)
movq -0x28(%rbp), %rdx
movl -0x2c(%rbp), %eax
movl %eax, %ecx
callq 0x811f10
movb %al, -0x1a1(%rbp)
jmp 0x88460b
movb -0x1a1(%rbp), %al
testb $0x1, %al
jne 0x884617
jmp 0x88464d
movb $0x1, -0x1(%rbp)
movl $0x1, -0x1a0(%rbp)
jmp 0x8847f2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x198(%rbp)
movl %eax, -0x19c(%rbp)
leaq -0x188(%rbp), %rdi
callq 0x811f90
jmp 0x88480c
movq -0x1b0(%rbp), %rax
leaq -0x188(%rbp), %rcx
movq %rcx, 0x4038(%rax)
movb -0x2d(%rbp), %cl
andb $0x1, %cl
movb -0xe0(%rbp), %al
addb %cl, %cl
andb $-0x3, %al
orb %cl, %al
movb %al, -0xe0(%rbp)
movb -0xe0(%rbp), %al
andb $-0x5, %al
movb %al, -0xe0(%rbp)
movq $0x0, -0xd8(%rbp)
movq -0x18(%rbp), %rsi
addq $0x1040, %rsi # imm = 0x1040
movq -0x20(%rbp), %rdi
addq $0x1040, %rdi # imm = 0x1040
callq 0x891d40
jmp 0x8846b0
movq -0x18(%rbp), %rax
movq 0x1960(%rax), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x1960(%rax)
movq -0x18(%rbp), %rax
movq 0x1968(%rax), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x1968(%rax)
movq -0x18(%rbp), %rax
movq 0x1970(%rax), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x1970(%rax)
movq -0x18(%rbp), %rcx
movq -0x20(%rbp), %rax
movq 0x1978(%rcx), %rdx
movq %rdx, 0x1978(%rax)
movq 0x1980(%rcx), %rdx
movq %rdx, 0x1980(%rax)
movq 0x1988(%rcx), %rdx
movq %rdx, 0x1988(%rax)
movq 0x1990(%rcx), %rcx
movq %rcx, 0x1990(%rax)
movq -0x18(%rbp), %rsi
addq $0x19a0, %rsi # imm = 0x19A0
movq -0x20(%rbp), %rdi
addq $0x19a0, %rdi # imm = 0x19A0
movl $0x30, %edx
callq 0x759350
movq -0x1b0(%rbp), %rax
movq 0x898(%rax), %rax
andq $0x200, %rax # imm = 0x200
cmpq $0x0, %rax
je 0x88478e
movq -0x1b0(%rbp), %rdi
callq 0xb9f640
movl %eax, -0x1bc(%rbp)
jmp 0x884780
movl -0x1bc(%rbp), %eax
movl %eax, -0x1c0(%rbp)
jmp 0x8847b9
movq -0x1b0(%rbp), %rdi
callq 0xb59600
movl %eax, -0x1c4(%rbp)
jmp 0x8847a2
movl -0x1c4(%rbp), %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x1c0(%rbp)
movq -0x1b0(%rbp), %rax
movl -0x1c0(%rbp), %ecx
cmpl $0x0, %ecx
setne %cl
andb $0x1, %cl
movb %cl, -0x2e(%rbp)
movq -0x190(%rbp), %rcx
movq %rcx, 0x4038(%rax)
movb -0x2e(%rbp), %al
andb $0x1, %al
movb %al, -0x1(%rbp)
movl $0x1, -0x1a0(%rbp)
leaq -0x188(%rbp), %rdi
callq 0x811f90
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x1d0, %rsp # imm = 0x1D0
popq %rbp
retq
movq -0x198(%rbp), %rdi
callq 0x7589b0
nopl (%rax,%rax)
|
_ZN3THD10sql_parserEP3LEXS1_Pcjb:
push rbp
mov rbp, rsp
sub rsp, 1D0h
mov al, r9b
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_2C+4], rcx
mov dword ptr [rbp+var_2C], r8d
and al, 1
mov [rbp+var_2D], al
mov rax, [rbp+var_10]
mov [rbp+var_1B0], rax
mov [rbp+var_2E], 0
lea rdi, [rbp+var_188]; this
mov [rbp+var_1B8], rdi
call _ZN12Parser_stateC2Ev; Parser_state::Parser_state(void)
mov rdi, [rbp+var_1B8]; this
mov rsi, [rbp+var_1B0]; THD *
mov rax, [rsi+4038h]
mov [rbp+var_190], rax
mov rdx, [rbp+var_2C+4]; char *
mov eax, dword ptr [rbp+var_2C]
mov ecx, eax; unsigned __int64
call _ZN12Parser_state4initEP3THDPcm; Parser_state::init(THD *,char *,ulong)
mov [rbp+var_1A1], al
jmp short $+2
loc_88460B:
mov al, [rbp+var_1A1]
test al, 1
jnz short loc_884617
jmp short loc_88464D
loc_884617:
mov [rbp+var_1], 1
mov [rbp+var_1A0], 1
jmp loc_8847F2
mov rcx, rax
mov eax, edx
mov [rbp+var_198], rcx
mov [rbp+var_19C], eax
lea rdi, [rbp+var_188]; this
call _ZN12Parser_stateD2Ev; Parser_state::~Parser_state()
jmp loc_88480C
loc_88464D:
mov rax, [rbp+var_1B0]
lea rcx, [rbp+var_188]
mov [rax+4038h], rcx
mov cl, [rbp+var_2D]
and cl, 1
mov al, [rbp+var_E0]
add cl, cl
and al, 0FDh
or al, cl
mov [rbp+var_E0], al
mov al, [rbp+var_E0]
and al, 0FBh
mov [rbp+var_E0], al
mov [rbp+var_D8], 0
mov rsi, [rbp+var_18]
add rsi, 1040h
mov rdi, [rbp+var_20]
add rdi, 1040h
call _ZN4ListI10Item_paramEaSERKS1_; List<Item_param>::operator=(List<Item_param> const&)
jmp short $+2
loc_8846B0:
mov rax, [rbp+var_18]
mov rcx, [rax+1960h]
mov rax, [rbp+var_20]
mov [rax+1960h], rcx
mov rax, [rbp+var_18]
mov rcx, [rax+1968h]
mov rax, [rbp+var_20]
mov [rax+1968h], rcx
mov rax, [rbp+var_18]
mov rcx, [rax+1970h]
mov rax, [rbp+var_20]
mov [rax+1970h], rcx
mov rcx, [rbp+var_18]
mov rax, [rbp+var_20]
mov rdx, [rcx+1978h]
mov [rax+1978h], rdx
mov rdx, [rcx+1980h]
mov [rax+1980h], rdx
mov rdx, [rcx+1988h]
mov [rax+1988h], rdx
mov rcx, [rcx+1990h]
mov [rax+1990h], rcx
mov rsi, [rbp+var_18]
add rsi, 19A0h
mov rdi, [rbp+var_20]
add rdi, 19A0h
mov edx, 30h ; '0'
call _memcpy
mov rax, [rbp+var_1B0]
mov rax, [rax+898h]
and rax, 200h
cmp rax, 0
jz short loc_88478E
mov rdi, [rbp+var_1B0]; THD *
call _Z8ORAparseP3THD; ORAparse(THD *)
mov [rbp+var_1BC], eax
jmp short $+2
loc_884780:
mov eax, [rbp+var_1BC]
mov [rbp+var_1C0], eax
jmp short loc_8847B9
loc_88478E:
mov rdi, [rbp+var_1B0]; THD *
call _Z10MYSQLparseP3THD; MYSQLparse(THD *)
mov [rbp+var_1C4], eax
jmp short $+2
loc_8847A2:
mov eax, [rbp+var_1C4]
cmp eax, 0
setnz al
and al, 1
movzx eax, al
mov [rbp+var_1C0], eax
loc_8847B9:
mov rax, [rbp+var_1B0]
mov ecx, [rbp+var_1C0]
cmp ecx, 0
setnz cl
and cl, 1
mov [rbp+var_2E], cl
mov rcx, [rbp+var_190]
mov [rax+4038h], rcx
mov al, [rbp+var_2E]
and al, 1
mov [rbp+var_1], al
mov [rbp+var_1A0], 1
loc_8847F2:
lea rdi, [rbp+var_188]; this
call _ZN12Parser_stateD2Ev; Parser_state::~Parser_state()
mov al, [rbp+var_1]
and al, 1
add rsp, 1D0h
pop rbp
retn
loc_88480C:
mov rdi, [rbp+var_198]
call __Unwind_Resume
|
char THD::sql_parser(THD *this, LEX *a2, LEX *a3, char *a4, int a5, char a6)
{
LEX *v6; // rcx
LEX *v7; // rax
int v9; // [rsp+10h] [rbp-1C0h]
long long v10; // [rsp+40h] [rbp-190h]
_BYTE v11[168]; // [rsp+48h] [rbp-188h] BYREF
char v12; // [rsp+F0h] [rbp-E0h]
long long v13; // [rsp+F8h] [rbp-D8h]
bool v14; // [rsp+1A2h] [rbp-2Eh]
char v15; // [rsp+1A3h] [rbp-2Dh]
_DWORD v16[3]; // [rsp+1A4h] [rbp-2Ch]
LEX *v17; // [rsp+1B0h] [rbp-20h]
LEX *v18; // [rsp+1B8h] [rbp-18h]
THD *v19; // [rsp+1C0h] [rbp-10h]
char v20; // [rsp+1CFh] [rbp-1h]
v19 = this;
v18 = a2;
v17 = a3;
*(_QWORD *)&v16[1] = a4;
v16[0] = a5;
v15 = a6 & 1;
v14 = 0;
Parser_state::Parser_state((Parser_state *)v11);
v10 = *((_QWORD *)this + 2055);
if ( (Parser_state::init((Parser_state *)v11, this, *(char **)&v16[1], v16[0]) & 1) != 0 )
{
v20 = 1;
}
else
{
*((_QWORD *)this + 2055) = v11;
v12 = (2 * (v15 & 1)) | v12 & 0xFD;
v12 &= ~4u;
v13 = 0LL;
List<Item_param>::operator=((char *)v17 + 4160, (char *)v18 + 4160);
*((_QWORD *)v17 + 812) = *((_QWORD *)v18 + 812);
*((_QWORD *)v17 + 813) = *((_QWORD *)v18 + 813);
*((_QWORD *)v17 + 814) = *((_QWORD *)v18 + 814);
v6 = v18;
v7 = v17;
*((_QWORD *)v17 + 815) = *((_QWORD *)v18 + 815);
*((_QWORD *)v7 + 816) = *((_QWORD *)v6 + 816);
*((_QWORD *)v7 + 817) = *((_QWORD *)v6 + 817);
*((_QWORD *)v7 + 818) = *((_QWORD *)v6 + 818);
memcpy((char *)v17 + 6560, (char *)v18 + 6560, 48LL);
if ( (*((_QWORD *)this + 275) & 0x200LL) != 0 )
v9 = ORAparse(this);
else
v9 = MYSQLparse(this) != 0;
v14 = v9 != 0;
*((_QWORD *)this + 2055) = v10;
v20 = v14;
}
Parser_state::~Parser_state((Parser_state *)v11);
return v20 & 1;
}
|
__cxx_global_var_init.823:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
LEA RDI,[RBP + -0x8]
MOV ESI,0x2
XOR EDX,EDX
CALL 0x00b74e50
MOV R10,qword ptr [RBP + -0x8]
LEA RDI,[0x1ded190]
LEA RSI,[0x14adb2d]
LEA RDX,[0x14adb3e]
XOR ECX,ECX
LEA R8,[0x1dfbf18]
LEA RAX,[0x1dc9580]
SUB R8,RAX
MOV R9D,0x8
XOR EAX,EAX
LEA RAX,[0xb72560]
MOV qword ptr [RSP],R10
MOV qword ptr [RSP + 0x8],0xa
MOV qword ptr [RSP + 0x10],0x100000
MOV qword ptr [RSP + 0x18],0x7d0
MOV dword ptr [RSP + 0x20],0x1
MOV qword ptr [RSP + 0x28],0x0
MOV dword ptr [RSP + 0x30],0x0
MOV qword ptr [RSP + 0x38],0x0
MOV qword ptr [RSP + 0x40],RAX
MOV qword ptr [RSP + 0x48],0x0
CALL 0x00b753a0
LEA RDI,[0xb75690]
LEA RSI,[0x1ded190]
LEA RDX,[0x1bc5008]
CALL 0x00858cf0
ADD RSP,0x60
POP RBP
RET
|
void __cxx_global_var_init_823(void)
{
int8 local_10;
CMD_LINE::CMD_LINE((CMD_LINE *)&local_10,2,0);
Sys_var_integer<unsigned_long,6ul,(enum_mysql_show_type)3>::Sys_var_integer
(Sys_table_cache_size,"table_open_cache","The number of cached open tables",0,0x32998,8,
local_10,10,0x100000,2000,1,0,0,0,fix_table_open_cache,0);
__cxa_atexit(Sys_var_integer<unsigned_long,6ul,(enum_mysql_show_type)3>::~Sys_var_integer,
Sys_table_cache_size,&__dso_handle);
return;
}
|
|
16,281
|
THD::sql_parser(LEX*, LEX*, char*, unsigned int, bool)
|
eloqsql/sql/sql_class.cc
|
bool THD::sql_parser(LEX *old_lex, LEX *lex,
char *str, uint str_len, bool stmt_prepare_mode)
{
extern int MYSQLparse(THD * thd);
extern int ORAparse(THD * thd);
bool parse_status= false;
Parser_state parser_state;
Parser_state *old_parser_state= m_parser_state;
if (parser_state.init(this, str, str_len))
return true;
m_parser_state= &parser_state;
parser_state.m_lip.stmt_prepare_mode= stmt_prepare_mode;
parser_state.m_lip.multi_statements= false;
parser_state.m_lip.m_digest= NULL;
lex->param_list= old_lex->param_list;
lex->sphead= old_lex->sphead;
lex->spname= old_lex->spname;
lex->spcont= old_lex->spcont;
lex->sp_chistics= old_lex->sp_chistics;
lex->trg_chistics= old_lex->trg_chistics;
parse_status= (variables.sql_mode & MODE_ORACLE) ?
ORAparse(this) : MYSQLparse(this) != 0;
m_parser_state= old_parser_state;
return parse_status;
}
|
O3
|
cpp
|
THD::sql_parser(LEX*, LEX*, char*, unsigned int, bool):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x168, %rsp # imm = 0x168
movl %r9d, -0x2c(%rbp)
movl %r8d, %ebx
movq %rcx, %r13
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
leaq -0xb8(%rbp), %rdi
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
callq 0x6e28a0
movq 0x4038(%r14), %rax
movq %rax, -0x38(%rbp)
movl %ebx, %ecx
leaq -0x190(%rbp), %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x73fdc0
movb $0x1, %bl
testb %al, %al
jne 0x723173
leaq -0x190(%rbp), %rax
movq %rax, 0x4038(%r14)
movb -0xe8(%rbp), %al
movl -0x2c(%rbp), %ecx
addb %cl, %cl
andb $-0x7, %al
orb %cl, %al
movb %al, -0xe8(%rbp)
movq $0x0, -0xe0(%rbp)
movl 0x1050(%r12), %eax
movl %eax, 0x1050(%r15)
movq 0x1040(%r12), %rcx
movq %rcx, 0x1040(%r15)
testl %eax, %eax
je 0x7230ae
movq 0x1048(%r12), %rax
jmp 0x7230b5
leaq 0x1040(%r15), %rax
movq %rax, 0x1048(%r15)
movq 0x1960(%r12), %rax
movq %rax, 0x1960(%r15)
movq 0x1968(%r12), %rax
movq %rax, 0x1968(%r15)
movq 0x1970(%r12), %rax
movq %rax, 0x1970(%r15)
movups 0x1978(%r12), %xmm0
movups 0x1988(%r12), %xmm1
movups %xmm1, 0x1988(%r15)
movups %xmm0, 0x1978(%r15)
movups 0x19a0(%r12), %xmm0
movups 0x19b0(%r12), %xmm1
movups 0x19c0(%r12), %xmm2
movups %xmm2, 0x19c0(%r15)
movups %xmm1, 0x19b0(%r15)
movups %xmm0, 0x19a0(%r15)
testb $0x2, 0x899(%r14)
jne 0x72315b
movq %r14, %rdi
callq 0x8ae764
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
setne %al
jmp 0x723163
movq %r14, %rdi
callq 0x8ce198
testl %eax, %eax
setne %bl
movq -0x38(%rbp), %rax
movq %rax, 0x4038(%r14)
leaq -0xb8(%rbp), %rdi
callq 0x740c96
movl %ebx, %eax
addq $0x168, %rsp # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0xb8(%rbp), %rdi
callq 0x740c96
movq %rbx, %rdi
callq 0x61c170
|
_ZN3THD10sql_parserEP3LEXS1_Pcjb:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 168h
mov [rbp+var_2C], r9d
mov ebx, r8d
mov r13, rcx
mov r15, rdx
mov r12, rsi
mov r14, rdi
lea rdi, [rbp+var_B8]; this
xorps xmm0, xmm0
movups xmmword ptr [rdi], xmm0
call _ZN10Yacc_state5resetEv; Yacc_state::reset(void)
mov rax, [r14+4038h]
mov [rbp+var_38], rax
mov ecx, ebx; unsigned __int64
lea rdi, [rbp+var_190]; this
mov rsi, r14; THD *
mov rdx, r13; char *
call _ZN16Lex_input_stream4initEP3THDPcm; Lex_input_stream::init(THD *,char *,ulong)
mov bl, 1
test al, al
jnz loc_723173
lea rax, [rbp+var_190]
mov [r14+4038h], rax
mov al, [rbp+var_E8]
mov ecx, [rbp+var_2C]
add cl, cl
and al, 0F9h
or al, cl
mov [rbp+var_E8], al
mov [rbp+var_E0], 0
mov eax, [r12+1050h]
mov [r15+1050h], eax
mov rcx, [r12+1040h]
mov [r15+1040h], rcx
test eax, eax
jz short loc_7230AE
mov rax, [r12+1048h]
jmp short loc_7230B5
loc_7230AE:
lea rax, [r15+1040h]
loc_7230B5:
mov [r15+1048h], rax
mov rax, [r12+1960h]
mov [r15+1960h], rax
mov rax, [r12+1968h]
mov [r15+1968h], rax
mov rax, [r12+1970h]
mov [r15+1970h], rax
movups xmm0, xmmword ptr [r12+1978h]
movups xmm1, xmmword ptr [r12+1988h]
movups xmmword ptr [r15+1988h], xmm1
movups xmmword ptr [r15+1978h], xmm0
movups xmm0, xmmword ptr [r12+19A0h]
movups xmm1, xmmword ptr [r12+19B0h]
movups xmm2, xmmword ptr [r12+19C0h]
movups xmmword ptr [r15+19C0h], xmm2
movups xmmword ptr [r15+19B0h], xmm1
movups xmmword ptr [r15+19A0h], xmm0
test byte ptr [r14+899h], 2
jnz short loc_72315B
mov rdi, r14; THD *
call _Z10MYSQLparseP3THD; MYSQLparse(THD *)
mov ecx, eax
xor eax, eax
test ecx, ecx
setnz al
jmp short loc_723163
loc_72315B:
mov rdi, r14; THD *
call _Z8ORAparseP3THD; ORAparse(THD *)
loc_723163:
test eax, eax
setnz bl
mov rax, [rbp+var_38]
mov [r14+4038h], rax
loc_723173:
lea rdi, [rbp+var_B8]; this
call _ZN10Yacc_stateD2Ev; Yacc_state::~Yacc_state()
mov eax, ebx
add rsp, 168h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rdi, [rbp+var_B8]; this
call _ZN10Yacc_stateD2Ev; Yacc_state::~Yacc_state()
mov rdi, rbx
call __Unwind_Resume
|
long long THD::sql_parser(THD *this, LEX *a2, LEX *a3, char *a4, unsigned int a5, int a6)
{
char v8; // al
int v10; // eax
char *v11; // rax
__int128 v12; // xmm0
__int128 v13; // xmm0
__int128 v14; // xmm1
int v15; // eax
_BYTE v17[168]; // [rsp+0h] [rbp-190h] BYREF
char v18; // [rsp+A8h] [rbp-E8h]
long long v19; // [rsp+B0h] [rbp-E0h]
_OWORD v20[8]; // [rsp+D8h] [rbp-B8h] BYREF
long long v21; // [rsp+158h] [rbp-38h]
int v22; // [rsp+164h] [rbp-2Ch]
v22 = a6;
v20[0] = 0LL;
Yacc_state::reset((Yacc_state *)v20);
v21 = *((_QWORD *)this + 2055);
v8 = Lex_input_stream::init((Lex_input_stream *)v17, this, a4, a5);
LOBYTE(a5) = 1;
if ( !v8 )
{
*((_QWORD *)this + 2055) = v17;
v18 = (2 * v22) | v18 & 0xF9;
v19 = 0LL;
v10 = *((_DWORD *)a2 + 1044);
*((_DWORD *)a3 + 1044) = v10;
*((_QWORD *)a3 + 520) = *((_QWORD *)a2 + 520);
if ( v10 )
v11 = (char *)*((_QWORD *)a2 + 521);
else
v11 = (char *)a3 + 4160;
*((_QWORD *)a3 + 521) = v11;
*((_QWORD *)a3 + 812) = *((_QWORD *)a2 + 812);
*((_QWORD *)a3 + 813) = *((_QWORD *)a2 + 813);
*((_QWORD *)a3 + 814) = *((_QWORD *)a2 + 814);
v12 = *(_OWORD *)((char *)a2 + 6520);
*(_OWORD *)((char *)a3 + 6536) = *(_OWORD *)((char *)a2 + 6536);
*(_OWORD *)((char *)a3 + 6520) = v12;
v13 = *((_OWORD *)a2 + 410);
v14 = *((_OWORD *)a2 + 411);
*((_OWORD *)a3 + 412) = *((_OWORD *)a2 + 412);
*((_OWORD *)a3 + 411) = v14;
*((_OWORD *)a3 + 410) = v13;
if ( (*((_BYTE *)this + 2201) & 2) != 0 )
v15 = ORAparse(this);
else
v15 = MYSQLparse(this) != 0;
LOBYTE(a5) = v15 != 0;
*((_QWORD *)this + 2055) = v21;
}
Yacc_state::~Yacc_state((Yacc_state *)v20);
return a5;
}
| |||
16,282
|
js_map_forEach
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_map_forEach(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv, int magic)
{
JSMapState *s = JS_GetOpaque2(ctx, this_val, JS_CLASS_MAP + magic);
JSValue func, this_arg;
JSValue ret, args[3];
struct list_head *el;
JSMapRecord *mr;
if (!s)
return JS_EXCEPTION;
func = argv[0];
if (argc > 1)
this_arg = argv[1];
else
this_arg = JS_UNDEFINED;
if (check_function(ctx, func))
return JS_EXCEPTION;
/* Note: the list can be modified while traversing it, but the
current element is locked */
el = s->records.next;
while (el != &s->records) {
mr = list_entry(el, JSMapRecord, link);
if (!mr->empty) {
mr->ref_count++;
/* must duplicate in case the record is deleted */
args[1] = js_dup(mr->key);
if (magic)
args[0] = args[1];
else
args[0] = js_dup(mr->value);
args[2] = this_val;
ret = JS_Call(ctx, func, this_arg, 3, args);
JS_FreeValue(ctx, args[0]);
if (!magic)
JS_FreeValue(ctx, args[1]);
el = el->next;
map_decref_record(ctx->rt, mr);
if (JS_IsException(ret))
return ret;
JS_FreeValue(ctx, ret);
} else {
el = el->next;
}
}
return JS_UNDEFINED;
}
|
O0
|
c
|
js_map_forEach:
subq $0x108, %rsp # imm = 0x108
movq %rsi, 0xe8(%rsp)
movq %rdx, 0xf0(%rsp)
movq %rdi, 0xe0(%rsp)
movl %ecx, 0xdc(%rsp)
movq %r8, 0xd0(%rsp)
movl %r9d, 0xcc(%rsp)
movq 0xe0(%rsp), %rdi
movl 0xcc(%rsp), %ecx
addl $0x23, %ecx
movq 0xe8(%rsp), %rsi
movq 0xf0(%rsp), %rdx
callq 0x383b0
movq %rax, 0xc0(%rsp)
cmpq $0x0, 0xc0(%rsp)
jne 0x8cabc
movl $0x0, 0xf8(%rsp)
movq $0x6, 0x100(%rsp)
jmp 0x8cda5
movq 0xd0(%rsp), %rax
movq (%rax), %rcx
movq %rcx, 0xb0(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0xb8(%rsp)
cmpl $0x1, 0xdc(%rsp)
jle 0x8cb07
movq 0xd0(%rsp), %rax
movq 0x10(%rax), %rcx
movq %rcx, 0xa0(%rsp)
movq 0x18(%rax), %rax
movq %rax, 0xa8(%rsp)
jmp 0x8cb32
movl $0x0, 0x40(%rsp)
movq $0x3, 0x48(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0xe0(%rsp), %rdi
movq 0xb0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
callq 0x6da80
cmpl $0x0, %eax
je 0x8cb70
movl $0x0, 0xf8(%rsp)
movq $0x6, 0x100(%rsp)
jmp 0x8cda5
movq 0xc0(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
movq 0xc0(%rsp), %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
je 0x8cd8e
movq 0x58(%rsp), %rax
addq $-0x10, %rax
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rax
cmpl $0x0, 0x4(%rax)
jne 0x8cd7b
movq 0x50(%rsp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
movq 0x50(%rsp), %rax
movq 0x30(%rax), %rdi
movq 0x38(%rax), %rsi
callq 0x216d0
movq %rax, 0x30(%rsp)
movq %rdx, 0x38(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x78(%rsp)
cmpl $0x0, 0xcc(%rsp)
je 0x8cc14
movq 0x70(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x68(%rsp)
jmp 0x8cc44
movq 0x50(%rsp), %rax
movq 0x40(%rax), %rdi
movq 0x48(%rax), %rsi
callq 0x216d0
movq %rax, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0xe8(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0xe0(%rsp), %rdi
leaq 0x60(%rsp), %rax
movq 0xb0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
movq 0xa0(%rsp), %rcx
movq 0xa8(%rsp), %r8
movl $0x3, %r9d
movq %rax, (%rsp)
callq 0x3a050
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0xe0(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
callq 0x23c90
cmpl $0x0, 0xcc(%rsp)
jne 0x8ccfc
movq 0xe0(%rsp), %rdi
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rdx
callq 0x23c90
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x58(%rsp)
movq 0xe0(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x50(%rsp), %rsi
callq 0x5c180
movq 0x90(%rsp), %rdi
movq 0x98(%rsp), %rsi
callq 0x23cc0
cmpl $0x0, %eax
je 0x8cd5c
movq 0x90(%rsp), %rax
movq %rax, 0xf8(%rsp)
movq 0x98(%rsp), %rax
movq %rax, 0x100(%rsp)
jmp 0x8cda5
movq 0xe0(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
callq 0x23c90
jmp 0x8cd89
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x58(%rsp)
jmp 0x8cb81
movl $0x0, 0xf8(%rsp)
movq $0x3, 0x100(%rsp)
movq 0xf8(%rsp), %rax
movq 0x100(%rsp), %rdx
addq $0x108, %rsp # imm = 0x108
retq
nopl (%rax)
|
js_map_forEach:
sub rsp, 108h
mov [rsp+108h+var_20], rsi
mov [rsp+108h+var_18], rdx
mov [rsp+108h+var_28], rdi
mov [rsp+108h+var_2C], ecx
mov [rsp+108h+var_38], r8
mov [rsp+108h+var_3C], r9d
mov rdi, [rsp+108h+var_28]
mov ecx, [rsp+108h+var_3C]
add ecx, 23h ; '#'
mov rsi, [rsp+108h+var_20]
mov rdx, [rsp+108h+var_18]
call JS_GetOpaque2
mov [rsp+108h+var_48], rax
cmp [rsp+108h+var_48], 0
jnz short loc_8CABC
mov dword ptr [rsp+108h+var_10], 0
mov [rsp+108h+var_8], 6
jmp loc_8CDA5
loc_8CABC:
mov rax, [rsp+108h+var_38]
mov rcx, [rax]
mov [rsp+108h+var_58], rcx
mov rax, [rax+8]
mov [rsp+108h+var_50], rax
cmp [rsp+108h+var_2C], 1
jle short loc_8CB07
mov rax, [rsp+108h+var_38]
mov rcx, [rax+10h]
mov [rsp+108h+var_68], rcx
mov rax, [rax+18h]
mov [rsp+108h+var_60], rax
jmp short loc_8CB32
loc_8CB07:
mov dword ptr [rsp+108h+var_C8], 0
mov [rsp+108h+var_C0], 3
mov rax, [rsp+108h+var_C8]
mov [rsp+108h+var_68], rax
mov rax, [rsp+108h+var_C0]
mov [rsp+108h+var_60], rax
loc_8CB32:
mov rdi, [rsp+108h+var_28]
mov rsi, [rsp+108h+var_58]
mov rdx, [rsp+108h+var_50]
call check_function
cmp eax, 0
jz short loc_8CB70
mov dword ptr [rsp+108h+var_10], 0
mov [rsp+108h+var_8], 6
jmp loc_8CDA5
loc_8CB70:
mov rax, [rsp+108h+var_48]
mov rax, [rax+10h]
mov [rsp+108h+var_B0], rax
loc_8CB81:
mov rax, [rsp+108h+var_B0]
mov rcx, [rsp+108h+var_48]
add rcx, 8
cmp rax, rcx
jz loc_8CD8E
mov rax, [rsp+108h+var_B0]
add rax, 0FFFFFFFFFFFFFFF0h
mov [rsp+108h+var_B8], rax
mov rax, [rsp+108h+var_B8]
cmp dword ptr [rax+4], 0
jnz loc_8CD7B
mov rax, [rsp+108h+var_B8]
mov ecx, [rax]
add ecx, 1
mov [rax], ecx
mov rax, [rsp+108h+var_B8]
mov rdi, [rax+30h]
mov rsi, [rax+38h]
call js_dup
mov [rsp+108h+var_D8], rax
mov [rsp+108h+var_D0], rdx
mov rax, [rsp+108h+var_D8]
mov [rsp+108h+var_98], rax
mov rax, [rsp+108h+var_D0]
mov [rsp+108h+var_90], rax
cmp [rsp+108h+var_3C], 0
jz short loc_8CC14
mov rax, [rsp+108h+var_98]
mov [rsp+108h+var_A8], rax
mov rax, [rsp+108h+var_90]
mov [rsp+108h+var_A0], rax
jmp short loc_8CC44
loc_8CC14:
mov rax, [rsp+108h+var_B8]
mov rdi, [rax+40h]
mov rsi, [rax+48h]
call js_dup
mov [rsp+108h+var_E8], rax
mov [rsp+108h+var_E0], rdx
mov rax, [rsp+108h+var_E8]
mov [rsp+108h+var_A8], rax
mov rax, [rsp+108h+var_E0]
mov [rsp+108h+var_A0], rax
loc_8CC44:
mov rax, [rsp+108h+var_20]
mov [rsp+108h+var_88], rax
mov rax, [rsp+108h+var_18]
mov [rsp+108h+var_80], rax
mov rdi, [rsp+108h+var_28]
lea rax, [rsp+108h+var_A8]
mov rsi, [rsp+108h+var_58]
mov rdx, [rsp+108h+var_50]
mov rcx, [rsp+108h+var_68]
mov r8, [rsp+108h+var_60]
mov r9d, 3
mov [rsp+108h+var_108], rax
call JS_Call
mov [rsp+108h+var_F8], rax
mov [rsp+108h+var_F0], rdx
mov rax, [rsp+108h+var_F8]
mov [rsp+108h+var_78], rax
mov rax, [rsp+108h+var_F0]
mov [rsp+108h+var_70], rax
mov rdi, [rsp+108h+var_28]
mov rsi, [rsp+108h+var_A8]
mov rdx, [rsp+108h+var_A0]
call JS_FreeValue
cmp [rsp+108h+var_3C], 0
jnz short loc_8CCFC
mov rdi, [rsp+108h+var_28]
mov rsi, [rsp+108h+var_98]
mov rdx, [rsp+108h+var_90]
call JS_FreeValue
loc_8CCFC:
mov rax, [rsp+108h+var_B0]
mov rax, [rax+8]
mov [rsp+108h+var_B0], rax
mov rax, [rsp+108h+var_28]
mov rdi, [rax+18h]
mov rsi, [rsp+108h+var_B8]
call map_decref_record
mov rdi, [rsp+108h+var_78]
mov rsi, [rsp+108h+var_70]
call JS_IsException_1
cmp eax, 0
jz short loc_8CD5C
mov rax, [rsp+108h+var_78]
mov [rsp+108h+var_10], rax
mov rax, [rsp+108h+var_70]
mov [rsp+108h+var_8], rax
jmp short loc_8CDA5
loc_8CD5C:
mov rdi, [rsp+108h+var_28]
mov rsi, [rsp+108h+var_78]
mov rdx, [rsp+108h+var_70]
call JS_FreeValue
jmp short loc_8CD89
loc_8CD7B:
mov rax, [rsp+108h+var_B0]
mov rax, [rax+8]
mov [rsp+108h+var_B0], rax
loc_8CD89:
jmp loc_8CB81
loc_8CD8E:
mov dword ptr [rsp+108h+var_10], 0
mov [rsp+108h+var_8], 3
loc_8CDA5:
mov rax, [rsp+108h+var_10]
mov rdx, [rsp+108h+var_8]
add rsp, 108h
retn
|
long long js_map_forEach(
long long a1,
long long a2,
long long a3,
int a4,
long long *a5,
int a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
double a11,
double a12,
__m128 a13,
__m128 a14)
{
double v14; // xmm4_8
double v15; // xmm5_8
long long v16; // rdx
long long v17; // rdx
long long v18; // rdx
long long v20; // [rsp+40h] [rbp-C8h]
long long v21; // [rsp+50h] [rbp-B8h]
long long v22; // [rsp+58h] [rbp-B0h]
_DWORD *v23; // [rsp+60h] [rbp-A8h] BYREF
long long v24; // [rsp+68h] [rbp-A0h]
_DWORD *v25; // [rsp+70h] [rbp-98h]
long long v26; // [rsp+78h] [rbp-90h]
long long v27; // [rsp+80h] [rbp-88h]
long long v28; // [rsp+88h] [rbp-80h]
long long v29; // [rsp+90h] [rbp-78h]
long long v30; // [rsp+98h] [rbp-70h]
long long v31; // [rsp+A0h] [rbp-68h]
long long v32; // [rsp+A8h] [rbp-60h]
long long v33; // [rsp+B0h] [rbp-58h]
long long v34; // [rsp+B8h] [rbp-50h]
long long Opaque2; // [rsp+C0h] [rbp-48h]
int v36; // [rsp+CCh] [rbp-3Ch]
long long *v37; // [rsp+D0h] [rbp-38h]
int v38; // [rsp+DCh] [rbp-2Ch]
long long v39; // [rsp+E0h] [rbp-28h]
long long v40; // [rsp+E8h] [rbp-20h]
long long v41; // [rsp+F0h] [rbp-18h]
long long v42; // [rsp+F8h] [rbp-10h]
long long v43; // [rsp+100h] [rbp-8h]
v40 = a2;
v41 = a3;
v39 = a1;
v38 = a4;
v37 = a5;
v36 = a6;
Opaque2 = JS_GetOpaque2(a1, a2, a3, a6 + 35);
if ( Opaque2 )
{
v33 = *v37;
v34 = v37[1];
if ( v38 <= 1 )
{
LODWORD(v20) = 0;
v31 = v20;
v32 = 3LL;
}
else
{
v31 = v37[2];
v32 = v37[3];
}
if ( (unsigned int)check_function(v39, v33, v34, a7, a8, a9, a10, v14, v15, a13, a14) )
{
LODWORD(v42) = 0;
v43 = 6LL;
}
else
{
v22 = *(_QWORD *)(Opaque2 + 16);
while ( v22 != Opaque2 + 8 )
{
v21 = v22 - 16;
if ( *(_DWORD *)(v22 - 16 + 4) )
{
v22 = *(_QWORD *)(v22 + 8);
}
else
{
++*(_DWORD *)v21;
v25 = js_dup(*(_DWORD **)(v21 + 48), *(_QWORD *)(v21 + 56));
v26 = v16;
if ( v36 )
{
v23 = v25;
v24 = v26;
}
else
{
v23 = js_dup(*(_DWORD **)(v21 + 64), *(_QWORD *)(v21 + 72));
v24 = v17;
}
v27 = v40;
v28 = v41;
v29 = JS_Call(v39, v33, v34, v31, v32, 3, (long long)&v23);
v30 = v18;
JS_FreeValue(v39, (long long)v23, v24);
if ( !v36 )
JS_FreeValue(v39, (long long)v25, v26);
v22 = *(_QWORD *)(v22 + 8);
map_decref_record(*(_QWORD *)(v39 + 24), v21);
if ( JS_IsException_1(v29, v30) )
{
v42 = v29;
v43 = v30;
return v42;
}
JS_FreeValue(v39, v29, v30);
}
}
LODWORD(v42) = 0;
v43 = 3LL;
}
}
else
{
LODWORD(v42) = 0;
v43 = 6LL;
}
return v42;
}
|
js_map_forEach:
SUB RSP,0x108
MOV qword ptr [RSP + 0xe8],RSI
MOV qword ptr [RSP + 0xf0],RDX
MOV qword ptr [RSP + 0xe0],RDI
MOV dword ptr [RSP + 0xdc],ECX
MOV qword ptr [RSP + 0xd0],R8
MOV dword ptr [RSP + 0xcc],R9D
MOV RDI,qword ptr [RSP + 0xe0]
MOV ECX,dword ptr [RSP + 0xcc]
ADD ECX,0x23
MOV RSI,qword ptr [RSP + 0xe8]
MOV RDX,qword ptr [RSP + 0xf0]
CALL 0x001383b0
MOV qword ptr [RSP + 0xc0],RAX
CMP qword ptr [RSP + 0xc0],0x0
JNZ 0x0018cabc
MOV dword ptr [RSP + 0xf8],0x0
MOV qword ptr [RSP + 0x100],0x6
JMP 0x0018cda5
LAB_0018cabc:
MOV RAX,qword ptr [RSP + 0xd0]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP + 0xb0],RCX
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0xb8],RAX
CMP dword ptr [RSP + 0xdc],0x1
JLE 0x0018cb07
MOV RAX,qword ptr [RSP + 0xd0]
MOV RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0xa0],RCX
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP + 0xa8],RAX
JMP 0x0018cb32
LAB_0018cb07:
MOV dword ptr [RSP + 0x40],0x0
MOV qword ptr [RSP + 0x48],0x3
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0xa0],RAX
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0xa8],RAX
LAB_0018cb32:
MOV RDI,qword ptr [RSP + 0xe0]
MOV RSI,qword ptr [RSP + 0xb0]
MOV RDX,qword ptr [RSP + 0xb8]
CALL 0x0016da80
CMP EAX,0x0
JZ 0x0018cb70
MOV dword ptr [RSP + 0xf8],0x0
MOV qword ptr [RSP + 0x100],0x6
JMP 0x0018cda5
LAB_0018cb70:
MOV RAX,qword ptr [RSP + 0xc0]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x58],RAX
LAB_0018cb81:
MOV RAX,qword ptr [RSP + 0x58]
MOV RCX,qword ptr [RSP + 0xc0]
ADD RCX,0x8
CMP RAX,RCX
JZ 0x0018cd8e
MOV RAX,qword ptr [RSP + 0x58]
ADD RAX,-0x10
MOV qword ptr [RSP + 0x50],RAX
MOV RAX,qword ptr [RSP + 0x50]
CMP dword ptr [RAX + 0x4],0x0
JNZ 0x0018cd7b
MOV RAX,qword ptr [RSP + 0x50]
MOV ECX,dword ptr [RAX]
ADD ECX,0x1
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RAX + 0x30]
MOV RSI,qword ptr [RAX + 0x38]
CALL 0x001216d0
MOV qword ptr [RSP + 0x30],RAX
MOV qword ptr [RSP + 0x38],RDX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x70],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x78],RAX
CMP dword ptr [RSP + 0xcc],0x0
JZ 0x0018cc14
MOV RAX,qword ptr [RSP + 0x70]
MOV qword ptr [RSP + 0x60],RAX
MOV RAX,qword ptr [RSP + 0x78]
MOV qword ptr [RSP + 0x68],RAX
JMP 0x0018cc44
LAB_0018cc14:
MOV RAX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RAX + 0x40]
MOV RSI,qword ptr [RAX + 0x48]
CALL 0x001216d0
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x28],RDX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x60],RAX
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x68],RAX
LAB_0018cc44:
MOV RAX,qword ptr [RSP + 0xe8]
MOV qword ptr [RSP + 0x80],RAX
MOV RAX,qword ptr [RSP + 0xf0]
MOV qword ptr [RSP + 0x88],RAX
MOV RDI,qword ptr [RSP + 0xe0]
LEA RAX,[RSP + 0x60]
MOV RSI,qword ptr [RSP + 0xb0]
MOV RDX,qword ptr [RSP + 0xb8]
MOV RCX,qword ptr [RSP + 0xa0]
MOV R8,qword ptr [RSP + 0xa8]
MOV R9D,0x3
MOV qword ptr [RSP],RAX
CALL 0x0013a050
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x18],RDX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x90],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x98],RAX
MOV RDI,qword ptr [RSP + 0xe0]
MOV RSI,qword ptr [RSP + 0x60]
MOV RDX,qword ptr [RSP + 0x68]
CALL 0x00123c90
CMP dword ptr [RSP + 0xcc],0x0
JNZ 0x0018ccfc
MOV RDI,qword ptr [RSP + 0xe0]
MOV RSI,qword ptr [RSP + 0x70]
MOV RDX,qword ptr [RSP + 0x78]
CALL 0x00123c90
LAB_0018ccfc:
MOV RAX,qword ptr [RSP + 0x58]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x58],RAX
MOV RAX,qword ptr [RSP + 0xe0]
MOV RDI,qword ptr [RAX + 0x18]
MOV RSI,qword ptr [RSP + 0x50]
CALL 0x0015c180
MOV RDI,qword ptr [RSP + 0x90]
MOV RSI,qword ptr [RSP + 0x98]
CALL 0x00123cc0
CMP EAX,0x0
JZ 0x0018cd5c
MOV RAX,qword ptr [RSP + 0x90]
MOV qword ptr [RSP + 0xf8],RAX
MOV RAX,qword ptr [RSP + 0x98]
MOV qword ptr [RSP + 0x100],RAX
JMP 0x0018cda5
LAB_0018cd5c:
MOV RDI,qword ptr [RSP + 0xe0]
MOV RSI,qword ptr [RSP + 0x90]
MOV RDX,qword ptr [RSP + 0x98]
CALL 0x00123c90
JMP 0x0018cd89
LAB_0018cd7b:
MOV RAX,qword ptr [RSP + 0x58]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x58],RAX
LAB_0018cd89:
JMP 0x0018cb81
LAB_0018cd8e:
MOV dword ptr [RSP + 0xf8],0x0
MOV qword ptr [RSP + 0x100],0x3
LAB_0018cda5:
MOV RAX,qword ptr [RSP + 0xf8]
MOV RDX,qword ptr [RSP + 0x100]
ADD RSP,0x108
RET
|
int1 [16]
js_map_forEach(long param_1,int8 param_2,int8 param_3,int param_4,int8 *param_5,
int param_6)
{
int iVar1;
int *piVar2;
int1 auVar3 [16];
int1 auVar4 [16];
uint uStack_c4;
long local_b0;
int1 local_a8 [16];
int1 local_98 [16];
int8 local_88;
int8 local_80;
int1 local_78 [16];
long local_68;
int8 local_60;
int8 local_58;
int8 local_50;
long local_48;
int local_3c;
int8 *local_38;
int local_2c;
long local_28;
int8 local_20;
int8 local_18;
int4 local_10;
int4 uStack_c;
int8 local_8;
local_3c = param_6;
local_38 = param_5;
local_2c = param_4;
local_28 = param_1;
local_20 = param_2;
local_18 = param_3;
local_48 = JS_GetOpaque2(param_1,param_2,param_3,param_6 + 0x23);
if (local_48 == 0) {
local_10 = 0;
local_8 = 6;
}
else {
local_58 = *local_38;
local_50 = local_38[1];
if (local_2c < 2) {
local_68 = (ulong)uStack_c4 << 0x20;
local_60 = 3;
}
else {
local_68 = local_38[2];
local_60 = local_38[3];
}
iVar1 = check_function(local_28,local_58,local_50);
if (iVar1 == 0) {
local_b0 = *(long *)(local_48 + 0x10);
while (local_b0 != local_48 + 8) {
piVar2 = (int *)(local_b0 + -0x10);
if (*(int *)(local_b0 + -0xc) == 0) {
*piVar2 = *piVar2 + 1;
auVar3 = js_dup(*(int8 *)(local_b0 + 0x20),*(int8 *)(local_b0 + 0x28));
auVar4 = auVar3;
if (local_3c == 0) {
local_98 = auVar3;
auVar4 = js_dup(*(int8 *)(local_b0 + 0x30),*(int8 *)(local_b0 + 0x38));
auVar3 = local_98;
}
local_88 = local_20;
local_80 = local_18;
local_a8 = auVar4;
local_98 = auVar3;
auVar3 = JS_Call(local_28,local_58,local_50,local_68,local_60,3,local_a8);
local_78 = auVar3;
JS_FreeValue(local_28,local_a8._0_8_,local_a8._8_8_);
if (local_3c == 0) {
JS_FreeValue(local_28,local_98._0_8_,local_98._8_8_);
}
local_b0 = *(long *)(local_b0 + 8);
map_decref_record(*(int8 *)(local_28 + 0x18),piVar2);
iVar1 = JS_IsException(local_78._0_8_,local_78._8_8_);
if (iVar1 != 0) {
local_10 = local_78._0_4_;
uStack_c = local_78._4_4_;
local_8 = local_78._8_8_;
goto LAB_0018cda5;
}
JS_FreeValue(local_28,local_78._0_8_,local_78._8_8_);
}
else {
local_b0 = *(long *)(local_b0 + 8);
}
}
local_10 = 0;
local_8 = 3;
}
else {
local_10 = 0;
local_8 = 6;
}
}
LAB_0018cda5:
auVar3._4_4_ = uStack_c;
auVar3._0_4_ = local_10;
auVar3._8_8_ = local_8;
return auVar3;
}
|
|
16,283
|
js_map_forEach
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_map_forEach(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv, int magic)
{
JSMapState *s = JS_GetOpaque2(ctx, this_val, JS_CLASS_MAP + magic);
JSValue func, this_arg;
JSValue ret, args[3];
struct list_head *el;
JSMapRecord *mr;
if (!s)
return JS_EXCEPTION;
func = argv[0];
if (argc > 1)
this_arg = argv[1];
else
this_arg = JS_UNDEFINED;
if (check_function(ctx, func))
return JS_EXCEPTION;
/* Note: the list can be modified while traversing it, but the
current element is locked */
el = s->records.next;
while (el != &s->records) {
mr = list_entry(el, JSMapRecord, link);
if (!mr->empty) {
mr->ref_count++;
/* must duplicate in case the record is deleted */
args[1] = js_dup(mr->key);
if (magic)
args[0] = args[1];
else
args[0] = js_dup(mr->value);
args[2] = this_val;
ret = JS_Call(ctx, func, this_arg, 3, args);
JS_FreeValue(ctx, args[0]);
if (!magic)
JS_FreeValue(ctx, args[1]);
el = el->next;
map_decref_record(ctx->rt, mr);
if (JS_IsException(ret))
return ret;
JS_FreeValue(ctx, ret);
} else {
el = el->next;
}
}
return JS_UNDEFINED;
}
|
O1
|
c
|
js_map_forEach:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %r8, %rbx
movl %ecx, %r14d
movq %rdi, %r13
movq %r9, 0x48(%rsp)
leal 0x23(%r9), %ecx
movq %rsi, 0x98(%rsp)
movq %rdx, 0xa0(%rsp)
callq 0x275b5
movl $0x6, %r12d
testq %rax, %rax
je 0x4fde8
movq %rax, %rbp
movq (%rbx), %r15
movq 0x8(%rbx), %rdx
cmpl $0x2, %r14d
jl 0x4fdc0
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rcx
movq %rcx, 0x40(%rsp)
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
andq %rax, %rcx
movq %rcx, 0x28(%rsp)
movl %eax, %r14d
jmp 0x4fdd6
movl $0x3, %eax
movq %rax, 0x40(%rsp)
xorl %r14d, %r14d
movq $0x0, 0x28(%rsp)
movq %r13, %rdi
movq %r15, %rsi
movq %rdx, %rbx
callq 0x415b1
testl %eax, %eax
je 0x4fe04
xorl %eax, %eax
xorl %edx, %edx
orq %rdx, %rax
movq %r12, %rdx
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, 0x88(%rsp)
movq %r15, 0x90(%rsp)
movq %rbp, %rax
addq $0x8, %rbp
movq 0x10(%rax), %r15
cmpq %rbp, %r15
je 0x4ff82
orq %r14, 0x28(%rsp)
cmpl $0x0, -0xc(%r15)
je 0x4fe3d
movq 0x8(%r15), %rbx
jmp 0x4ff67
incl -0x10(%r15)
movq 0x20(%r15), %rax
movq 0x28(%r15), %rcx
movq %rax, 0x30(%rsp)
cmpl $-0x9, %ecx
jb 0x4fe5a
movq 0x30(%rsp), %rdx
incl (%rdx)
movq %rax, 0x60(%rsp)
movq %rcx, 0x68(%rsp)
cmpl $0x0, 0x48(%rsp)
je 0x4fe7a
leaq 0x60(%rsp), %rax
movaps (%rax), %xmm0
movaps %xmm0, 0x50(%rsp)
jmp 0x4fe9d
movq 0x30(%r15), %rax
movq 0x38(%r15), %rcx
movq %rax, 0x30(%rsp)
cmpl $-0x9, %ecx
jb 0x4fe93
movq 0x30(%rsp), %rdx
incl (%rdx)
movq %rax, 0x50(%rsp)
movq %rcx, 0x58(%rsp)
movq 0x98(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0xa0(%rsp), %rax
movq %rax, 0x78(%rsp)
movl $0x0, 0x30(%rsp)
movq $0x3, 0x38(%rsp)
movups 0x30(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x50(%rsp), %rax
movq %rax, 0x10(%rsp)
movl $0x2, 0x18(%rsp)
movq %r13, %rdi
movq 0x90(%rsp), %rsi
movq 0x88(%rsp), %rdx
movq 0x28(%rsp), %rcx
movq 0x40(%rsp), %r8
movl $0x3, %r9d
callq 0x284ca
movq %rax, %r14
movq %rdx, %r12
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq 0x18(%r13), %rdi
callq 0x1d8c6
cmpl $0x0, 0x48(%rsp)
jne 0x4ff3e
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0x18(%r13), %rdi
callq 0x1d8c6
movq 0x8(%r15), %rbx
addq $-0x10, %r15
movq 0x18(%r13), %rdi
movq %r15, %rsi
callq 0x3b477
cmpl $0x6, %r12d
je 0x4ff91
movq 0x18(%r13), %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x1d8c6
movq %rbx, %r15
cmpq %rbp, %rbx
jne 0x4fe2d
xorl %edx, %edx
movl $0x3, %r12d
xorl %eax, %eax
jmp 0x4fdec
xorl %eax, %eax
xorl %edx, %edx
movl $0x3, %r12d
jmp 0x4fdec
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
movq %r14, %rdx
andq %rcx, %rdx
movl %r14d, %eax
jmp 0x4fdec
|
js_map_forEach:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0A8h
mov rbx, r8
mov r14d, ecx
mov r13, rdi
mov [rsp+0D8h+var_90], r9
lea ecx, [r9+23h]
mov [rsp+0D8h+var_40], rsi
mov [rsp+0D8h+var_38], rdx
call JS_GetOpaque2
mov r12d, 6
test rax, rax
jz short loc_4FDE8
mov rbp, rax
mov r15, [rbx]
mov rdx, [rbx+8]
cmp r14d, 2
jl short loc_4FDC0
mov rax, [rbx+10h]
mov rcx, [rbx+18h]
mov [rsp+0D8h+var_98], rcx
mov rcx, 0FFFFFFFF00000000h
and rcx, rax
mov [rsp+0D8h+var_B0], rcx
mov r14d, eax
jmp short loc_4FDD6
loc_4FDC0:
mov eax, 3
mov [rsp+0D8h+var_98], rax
xor r14d, r14d
mov [rsp+0D8h+var_B0], 0
loc_4FDD6:
mov rdi, r13
mov rsi, r15
mov rbx, rdx
call check_function
test eax, eax
jz short loc_4FE04
loc_4FDE8:
xor eax, eax
xor edx, edx
loc_4FDEC:
or rax, rdx
mov rdx, r12
add rsp, 0A8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_4FE04:
mov [rsp+0D8h+var_50], rbx
mov [rsp+0D8h+var_48], r15
mov rax, rbp
add rbp, 8
mov r15, [rax+10h]
cmp r15, rbp
jz loc_4FF82
or [rsp+0D8h+var_B0], r14
loc_4FE2D:
cmp dword ptr [r15-0Ch], 0
jz short loc_4FE3D
mov rbx, [r15+8]
jmp loc_4FF67
loc_4FE3D:
inc dword ptr [r15-10h]
mov rax, [r15+20h]
mov rcx, [r15+28h]
mov qword ptr [rsp+0D8h+var_A8], rax
cmp ecx, 0FFFFFFF7h
jb short loc_4FE5A
mov rdx, qword ptr [rsp+0D8h+var_A8]
inc dword ptr [rdx]
loc_4FE5A:
mov [rsp+0D8h+var_78], rax
mov [rsp+0D8h+var_70], rcx
cmp dword ptr [rsp+0D8h+var_90], 0
jz short loc_4FE7A
lea rax, [rsp+0D8h+var_78]
movaps xmm0, xmmword ptr [rax]
movaps [rsp+0D8h+var_88], xmm0
jmp short loc_4FE9D
loc_4FE7A:
mov rax, [r15+30h]
mov rcx, [r15+38h]
mov qword ptr [rsp+0D8h+var_A8], rax
cmp ecx, 0FFFFFFF7h
jb short loc_4FE93
mov rdx, qword ptr [rsp+0D8h+var_A8]
inc dword ptr [rdx]
loc_4FE93:
mov qword ptr [rsp+0D8h+var_88], rax
mov qword ptr [rsp+0D8h+var_88+8], rcx
loc_4FE9D:
mov rax, [rsp+0D8h+var_40]
mov [rsp+0D8h+var_68], rax
mov rax, [rsp+0D8h+var_38]
mov [rsp+0D8h+var_60], rax
mov dword ptr [rsp+0D8h+var_A8], 0
mov qword ptr [rsp+0D8h+var_A8+8], 3
movups xmm0, [rsp+0D8h+var_A8]
movups [rsp+0D8h+var_D8], xmm0
lea rax, [rsp+0D8h+var_88]
mov [rsp+0D8h+var_C8], rax
mov [rsp+0D8h+var_C0], 2
mov rdi, r13
mov rsi, [rsp+0D8h+var_48]
mov rdx, [rsp+0D8h+var_50]
mov rcx, [rsp+0D8h+var_B0]
mov r8, [rsp+0D8h+var_98]
mov r9d, 3
call JS_CallInternal
mov r14, rax
mov r12, rdx
mov rsi, qword ptr [rsp+0D8h+var_88]
mov rdx, qword ptr [rsp+0D8h+var_88+8]
mov rdi, [r13+18h]
call JS_FreeValueRT
cmp dword ptr [rsp+0D8h+var_90], 0
jnz short loc_4FF3E
mov rsi, [rsp+0D8h+var_78]
mov rdx, [rsp+0D8h+var_70]
mov rdi, [r13+18h]
call JS_FreeValueRT
loc_4FF3E:
mov rbx, [r15+8]
add r15, 0FFFFFFFFFFFFFFF0h
mov rdi, [r13+18h]
mov rsi, r15
call map_decref_record
cmp r12d, 6
jz short loc_4FF91
mov rdi, [r13+18h]
mov rsi, r14
mov rdx, r12
call JS_FreeValueRT
loc_4FF67:
mov r15, rbx
cmp rbx, rbp
jnz loc_4FE2D
xor edx, edx
mov r12d, 3
xor eax, eax
jmp loc_4FDEC
loc_4FF82:
xor eax, eax
xor edx, edx
mov r12d, 3
jmp loc_4FDEC
loc_4FF91:
mov rcx, 0FFFFFFFF00000000h
mov rdx, r14
and rdx, rcx
mov eax, r14d
jmp loc_4FDEC
|
unsigned long long js_map_forEach(
long long a1,
long long a2,
long long a3,
int a4,
long long *a5,
int a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
double a11,
double a12,
__m128 a13,
__m128 a14)
{
long long Opaque2; // rax
double v17; // xmm4_8
double v18; // xmm5_8
long long v19; // rbp
long long v20; // r15
long long v21; // rdx
long long v22; // rax
long long v23; // r14
long long v24; // rbx
__m128 v25; // xmm4
__m128 v26; // xmm5
long long v27; // rax
unsigned long long v28; // rdx
long long v30; // rax
_QWORD *v31; // rbp
_QWORD *v32; // r15
_QWORD *v33; // rbx
_DWORD *v34; // rax
long long v35; // rcx
_DWORD *v36; // rax
long long v37; // rcx
unsigned long long v38; // r14
long long v39; // rdx
long long v40; // r12
unsigned long long v41; // [rsp+28h] [rbp-B0h]
long long v42; // [rsp+28h] [rbp-B0h]
__m128 v43; // [rsp+30h] [rbp-A8h]
long long v44; // [rsp+40h] [rbp-98h]
__int128 v46; // [rsp+50h] [rbp-88h] BYREF
__int128 v47; // [rsp+60h] [rbp-78h]
long long v48; // [rsp+70h] [rbp-68h]
long long v49; // [rsp+78h] [rbp-60h]
long long v50; // [rsp+88h] [rbp-50h]
long long v51; // [rsp+90h] [rbp-48h]
long long v52; // [rsp+98h] [rbp-40h]
long long v53; // [rsp+A0h] [rbp-38h]
v52 = a2;
v53 = a3;
Opaque2 = JS_GetOpaque2(a1, a2, a3, a6 + 35);
if ( !Opaque2 )
goto LABEL_6;
v19 = Opaque2;
v20 = *a5;
v21 = a5[1];
if ( a4 < 2 )
{
v44 = 3LL;
v23 = 0LL;
v41 = 0LL;
}
else
{
v22 = a5[2];
v44 = a5[3];
v41 = v22 & 0xFFFFFFFF00000000LL;
v23 = (unsigned int)v22;
}
v24 = a5[1];
if ( !(unsigned int)check_function(a1, v20, v21, a7, a8, a9, a10, v17, v18, a13, a14) )
{
v50 = v24;
v51 = v20;
v30 = v19;
v31 = (_QWORD *)(v19 + 8);
v32 = *(_QWORD **)(v30 + 16);
if ( v32 != v31 )
{
v42 = v23 | v41;
while ( 1 )
{
if ( *((_DWORD *)v32 - 3) )
{
v33 = (_QWORD *)v32[1];
}
else
{
++*((_DWORD *)v32 - 4);
v34 = (_DWORD *)v32[4];
v35 = v32[5];
v43.m128_i32[1] = HIDWORD(v34);
if ( (unsigned int)v35 >= 0xFFFFFFF7 )
++*v34;
*(_QWORD *)&v47 = v34;
*((_QWORD *)&v47 + 1) = v35;
if ( a6 )
{
v46 = v47;
}
else
{
v36 = (_DWORD *)v32[6];
v37 = v32[7];
v43.m128_i32[1] = HIDWORD(v36);
if ( (unsigned int)v37 >= 0xFFFFFFF7 )
++*v36;
*(_QWORD *)&v46 = v36;
*((_QWORD *)&v46 + 1) = v37;
}
v48 = v52;
v49 = v53;
v43.m128_i32[0] = 0;
v43.m128_u64[1] = 3LL;
v38 = JS_CallInternal(
a1,
v51,
v50,
v42,
v44,
3LL,
v43,
a8,
a9,
a10,
v25,
v26,
a13,
a14,
v43.m128_i8[0],
3,
(long long)&v46,
2u);
v40 = v39;
JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)v46, *((long long *)&v46 + 1));
if ( !a6 )
JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)v47, *((long long *)&v47 + 1));
v33 = (_QWORD *)v32[1];
map_decref_record(*(_QWORD *)(a1 + 24), (long long)(v32 - 2));
if ( (_DWORD)v40 == 6 )
{
v28 = v38 & 0xFFFFFFFF00000000LL;
v27 = (unsigned int)v38;
return v28 | v27;
}
JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)v38, v40);
}
v32 = v33;
if ( v33 == v31 )
{
v28 = 0LL;
v27 = 0LL;
return v28 | v27;
}
}
}
v27 = 0LL;
v28 = 0LL;
}
else
{
LABEL_6:
v27 = 0LL;
v28 = 0LL;
}
return v28 | v27;
}
|
js_map_forEach:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xa8
MOV RBX,R8
MOV R14D,ECX
MOV R13,RDI
MOV qword ptr [RSP + 0x48],R9
LEA ECX,[R9 + 0x23]
MOV qword ptr [RSP + 0x98],RSI
MOV qword ptr [RSP + 0xa0],RDX
CALL 0x001275b5
MOV R12D,0x6
TEST RAX,RAX
JZ 0x0014fde8
MOV RBP,RAX
MOV R15,qword ptr [RBX]
MOV RDX,qword ptr [RBX + 0x8]
CMP R14D,0x2
JL 0x0014fdc0
MOV RAX,qword ptr [RBX + 0x10]
MOV RCX,qword ptr [RBX + 0x18]
MOV qword ptr [RSP + 0x40],RCX
MOV RCX,-0x100000000
AND RCX,RAX
MOV qword ptr [RSP + 0x28],RCX
MOV R14D,EAX
JMP 0x0014fdd6
LAB_0014fdc0:
MOV EAX,0x3
MOV qword ptr [RSP + 0x40],RAX
XOR R14D,R14D
MOV qword ptr [RSP + 0x28],0x0
LAB_0014fdd6:
MOV RDI,R13
MOV RSI,R15
MOV RBX,RDX
CALL 0x001415b1
TEST EAX,EAX
JZ 0x0014fe04
LAB_0014fde8:
XOR EAX,EAX
XOR EDX,EDX
LAB_0014fdec:
OR RAX,RDX
MOV RDX,R12
ADD RSP,0xa8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0014fe04:
MOV qword ptr [RSP + 0x88],RBX
MOV qword ptr [RSP + 0x90],R15
MOV RAX,RBP
ADD RBP,0x8
MOV R15,qword ptr [RAX + 0x10]
CMP R15,RBP
JZ 0x0014ff82
OR qword ptr [RSP + 0x28],R14
LAB_0014fe2d:
CMP dword ptr [R15 + -0xc],0x0
JZ 0x0014fe3d
MOV RBX,qword ptr [R15 + 0x8]
JMP 0x0014ff67
LAB_0014fe3d:
INC dword ptr [R15 + -0x10]
MOV RAX,qword ptr [R15 + 0x20]
MOV RCX,qword ptr [R15 + 0x28]
MOV qword ptr [RSP + 0x30],RAX
CMP ECX,-0x9
JC 0x0014fe5a
MOV RDX,qword ptr [RSP + 0x30]
INC dword ptr [RDX]
LAB_0014fe5a:
MOV qword ptr [RSP + 0x60],RAX
MOV qword ptr [RSP + 0x68],RCX
CMP dword ptr [RSP + 0x48],0x0
JZ 0x0014fe7a
LEA RAX,[RSP + 0x60]
MOVAPS XMM0,xmmword ptr [RAX]
MOVAPS xmmword ptr [RSP + 0x50],XMM0
JMP 0x0014fe9d
LAB_0014fe7a:
MOV RAX,qword ptr [R15 + 0x30]
MOV RCX,qword ptr [R15 + 0x38]
MOV qword ptr [RSP + 0x30],RAX
CMP ECX,-0x9
JC 0x0014fe93
MOV RDX,qword ptr [RSP + 0x30]
INC dword ptr [RDX]
LAB_0014fe93:
MOV qword ptr [RSP + 0x50],RAX
MOV qword ptr [RSP + 0x58],RCX
LAB_0014fe9d:
MOV RAX,qword ptr [RSP + 0x98]
MOV qword ptr [RSP + 0x70],RAX
MOV RAX,qword ptr [RSP + 0xa0]
MOV qword ptr [RSP + 0x78],RAX
MOV dword ptr [RSP + 0x30],0x0
MOV qword ptr [RSP + 0x38],0x3
MOVUPS XMM0,xmmword ptr [RSP + 0x30]
MOVUPS xmmword ptr [RSP],XMM0
LEA RAX,[RSP + 0x50]
MOV qword ptr [RSP + 0x10],RAX
MOV dword ptr [RSP + 0x18],0x2
MOV RDI,R13
MOV RSI,qword ptr [RSP + 0x90]
MOV RDX,qword ptr [RSP + 0x88]
MOV RCX,qword ptr [RSP + 0x28]
MOV R8,qword ptr [RSP + 0x40]
MOV R9D,0x3
CALL 0x001284ca
MOV R14,RAX
MOV R12,RDX
MOV RSI,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0x58]
MOV RDI,qword ptr [R13 + 0x18]
CALL 0x0011d8c6
CMP dword ptr [RSP + 0x48],0x0
JNZ 0x0014ff3e
MOV RSI,qword ptr [RSP + 0x60]
MOV RDX,qword ptr [RSP + 0x68]
MOV RDI,qword ptr [R13 + 0x18]
CALL 0x0011d8c6
LAB_0014ff3e:
MOV RBX,qword ptr [R15 + 0x8]
ADD R15,-0x10
MOV RDI,qword ptr [R13 + 0x18]
MOV RSI,R15
CALL 0x0013b477
CMP R12D,0x6
JZ 0x0014ff91
MOV RDI,qword ptr [R13 + 0x18]
MOV RSI,R14
MOV RDX,R12
CALL 0x0011d8c6
LAB_0014ff67:
MOV R15,RBX
CMP RBX,RBP
JNZ 0x0014fe2d
XOR EDX,EDX
MOV R12D,0x3
XOR EAX,EAX
JMP 0x0014fdec
LAB_0014ff82:
XOR EAX,EAX
XOR EDX,EDX
MOV R12D,0x3
JMP 0x0014fdec
LAB_0014ff91:
MOV RCX,-0x100000000
MOV RDX,R14
AND RDX,RCX
MOV EAX,R14D
JMP 0x0014fdec
|
int1 [16]
js_map_forEach(long param_1,int8 param_2,int8 param_3,int param_4,int8 *param_5,
int param_6)
{
int8 uVar1;
int8 uVar2;
int iVar3;
long lVar4;
ulong uVar5;
ulong uVar6;
long lVar7;
int8 uVar8;
long lVar9;
int1 auVar10 [16];
ulong local_b0;
int8 local_98;
int *local_88;
int8 uStack_80;
int *local_78;
int8 uStack_70;
int8 local_68;
int8 local_60;
int8 local_50;
int8 local_48;
int8 local_40;
int8 local_38;
local_40 = param_2;
local_38 = param_3;
lVar4 = JS_GetOpaque2();
uVar8 = 6;
if (lVar4 != 0) {
uVar1 = *param_5;
uVar2 = param_5[1];
if (param_4 < 2) {
local_98 = 3;
uVar6 = 0;
local_b0 = 0;
}
else {
local_98 = param_5[3];
local_b0 = param_5[2] & 0xffffffff00000000;
uVar6 = param_5[2] & 0xffffffff;
}
iVar3 = check_function(param_1,uVar1);
if (iVar3 == 0) {
if (*(long *)(lVar4 + 0x10) == lVar4 + 8) {
uVar5 = 0;
uVar6 = 0;
uVar8 = 3;
}
else {
lVar9 = *(long *)(lVar4 + 0x10);
local_50 = uVar2;
local_48 = uVar1;
do {
if (*(int *)(lVar9 + -0xc) == 0) {
*(int *)(lVar9 + -0x10) = *(int *)(lVar9 + -0x10) + 1;
local_78 = *(int **)(lVar9 + 0x20);
uStack_70 = *(int8 *)(lVar9 + 0x28);
if (0xfffffff6 < (uint)uStack_70) {
*local_78 = *local_78 + 1;
}
local_88 = local_78;
uStack_80 = uStack_70;
if (param_6 == 0) {
local_88 = *(int **)(lVar9 + 0x30);
uStack_80 = *(int8 *)(lVar9 + 0x38);
if (0xfffffff6 < (uint)uStack_80) {
*local_88 = *local_88 + 1;
}
}
local_68 = local_40;
local_60 = local_38;
auVar10 = JS_CallInternal(param_1,local_48,local_50,local_b0 | uVar6,local_98,3,0,3,
&local_88,2);
uVar8 = auVar10._8_8_;
uVar5 = auVar10._0_8_;
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),local_88,uStack_80);
if (param_6 == 0) {
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),local_78,uStack_70);
}
lVar7 = *(long *)(lVar9 + 8);
map_decref_record(*(int8 *)(param_1 + 0x18),lVar9 + -0x10);
if (auVar10._8_4_ == 6) {
uVar6 = uVar5 & 0xffffffff00000000;
uVar5 = uVar5 & 0xffffffff;
goto LAB_0014fdec;
}
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar5,uVar8);
}
else {
lVar7 = *(long *)(lVar9 + 8);
}
lVar9 = lVar7;
} while (lVar7 != lVar4 + 8);
uVar6 = 0;
uVar8 = 3;
uVar5 = 0;
}
goto LAB_0014fdec;
}
}
uVar5 = 0;
uVar6 = 0;
LAB_0014fdec:
auVar10._0_8_ = uVar5 | uVar6;
auVar10._8_8_ = uVar8;
return auVar10;
}
|
|
16,284
|
js_map_forEach
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_map_forEach(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv, int magic)
{
JSMapState *s = JS_GetOpaque2(ctx, this_val, JS_CLASS_MAP + magic);
JSValue func, this_arg;
JSValue ret, args[3];
struct list_head *el;
JSMapRecord *mr;
if (!s)
return JS_EXCEPTION;
func = argv[0];
if (argc > 1)
this_arg = argv[1];
else
this_arg = JS_UNDEFINED;
if (check_function(ctx, func))
return JS_EXCEPTION;
/* Note: the list can be modified while traversing it, but the
current element is locked */
el = s->records.next;
while (el != &s->records) {
mr = list_entry(el, JSMapRecord, link);
if (!mr->empty) {
mr->ref_count++;
/* must duplicate in case the record is deleted */
args[1] = js_dup(mr->key);
if (magic)
args[0] = args[1];
else
args[0] = js_dup(mr->value);
args[2] = this_val;
ret = JS_Call(ctx, func, this_arg, 3, args);
JS_FreeValue(ctx, args[0]);
if (!magic)
JS_FreeValue(ctx, args[1]);
el = el->next;
map_decref_record(ctx->rt, mr);
if (JS_IsException(ret))
return ret;
JS_FreeValue(ctx, ret);
} else {
el = el->next;
}
}
return JS_UNDEFINED;
}
|
O2
|
c
|
js_map_forEach:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r8, %rbx
movl %ecx, %r15d
movq %rdi, %r13
movq %r9, 0x18(%rsp)
leal 0x23(%r9), %ecx
movq %rsi, 0x68(%rsp)
movq %rdx, 0x70(%rsp)
callq 0x21207
pushq $0x6
popq %r14
testq %rax, %rax
je 0x44947
movq %rax, %rbp
movq (%rbx), %r12
movq 0x8(%rbx), %rdx
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
cmpl $0x2, %r15d
jl 0x44922
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rsi
movq %rsi, 0x10(%rsp)
movl %eax, %ebx
andq %rcx, %rax
movq %rax, 0x8(%rsp)
jmp 0x44935
pushq $0x3
popq %rax
movq %rax, 0x10(%rsp)
xorl %ebx, %ebx
movq $0x0, 0x8(%rsp)
movq %r13, %rdi
movq %r12, %rsi
movq %rdx, %r15
callq 0x3949a
testl %eax, %eax
je 0x44960
xorl %eax, %eax
xorl %edx, %edx
orq %rdx, %rax
movq %r14, %rdx
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, 0x60(%rsp)
movq %rbp, %rax
addq $0x8, %rbp
movq 0x10(%rax), %r12
orq %rbx, 0x8(%rsp)
movq %r15, %rdx
movq %rbp, 0x58(%rsp)
cmpq %rbp, %r12
je 0x44a8a
cmpl $0x0, -0xc(%r12)
je 0x44995
movq 0x8(%r12), %r12
jmp 0x4497d
incl -0x10(%r12)
movq 0x20(%r12), %rax
movq 0x28(%r12), %rcx
cmpl $-0x9, %ecx
jb 0x449ab
incl (%rax)
movq %rax, 0x30(%rsp)
movq %rcx, 0x38(%rsp)
cmpl $0x0, 0x18(%rsp)
je 0x449cb
leaq 0x30(%rsp), %rax
movaps (%rax), %xmm0
movaps %xmm0, 0x20(%rsp)
jmp 0x449e6
movq 0x30(%r12), %rax
movq 0x38(%r12), %rcx
cmpl $-0x9, %ecx
jb 0x449dc
incl (%rax)
movq %rax, 0x20(%rsp)
movq %rcx, 0x28(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x48(%rsp)
leaq 0x20(%rsp), %rax
movq %rax, (%rsp)
movq %r13, %rdi
movq 0x60(%rsp), %rsi
movq %rdx, %rbp
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
pushq $0x3
popq %r9
callq 0x21eb6
movq %rax, %r15
movq %rdx, %rbx
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %r13, %rdi
callq 0x1801e
cmpl $0x0, 0x18(%rsp)
jne 0x44a52
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq %r13, %rdi
callq 0x1801e
movq 0x8(%r12), %r14
addq $-0x10, %r12
movq 0x18(%r13), %rdi
movq %r12, %rsi
callq 0x34237
cmpl $0x6, %ebx
je 0x44a97
movq %r13, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x1801e
movq %r14, %r12
movq %rbp, %rdx
movq 0x58(%rsp), %rbp
jmp 0x4497d
xorl %edx, %edx
pushq $0x3
popq %r14
xorl %eax, %eax
jmp 0x4494b
movq %r15, %rdx
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
andq %rcx, %rdx
movl %r15d, %eax
movq %rbx, %r14
jmp 0x4494b
|
js_map_forEach:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov rbx, r8
mov r15d, ecx
mov r13, rdi
mov [rsp+0A8h+var_90], r9
lea ecx, [r9+23h]
mov [rsp+0A8h+var_40], rsi
mov [rsp+0A8h+var_38], rdx
call JS_GetOpaque2
push 6
pop r14
test rax, rax
jz short loc_44947
mov rbp, rax
mov r12, [rbx]
mov rdx, [rbx+8]
mov rcx, 0FFFFFFFF00000000h
cmp r15d, 2
jl short loc_44922
mov rax, [rbx+10h]
mov rsi, [rbx+18h]
mov [rsp+0A8h+var_98], rsi
mov ebx, eax
and rax, rcx
mov [rsp+0A8h+var_A0], rax
jmp short loc_44935
loc_44922:
push 3
pop rax
mov [rsp+0A8h+var_98], rax
xor ebx, ebx
mov [rsp+0A8h+var_A0], 0
loc_44935:
mov rdi, r13
mov rsi, r12
mov r15, rdx
call check_function
test eax, eax
jz short loc_44960
loc_44947:
xor eax, eax
xor edx, edx
loc_4494B:
or rax, rdx
mov rdx, r14
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_44960:
mov [rsp+0A8h+var_48], r12
mov rax, rbp
add rbp, 8
mov r12, [rax+10h]
or [rsp+0A8h+var_A0], rbx
mov rdx, r15
mov [rsp+0A8h+var_50], rbp
loc_4497D:
cmp r12, rbp
jz loc_44A8A
cmp dword ptr [r12-0Ch], 0
jz short loc_44995
mov r12, [r12+8]
jmp short loc_4497D
loc_44995:
inc dword ptr [r12-10h]
mov rax, [r12+20h]
mov rcx, [r12+28h]
cmp ecx, 0FFFFFFF7h
jb short loc_449AB
inc dword ptr [rax]
loc_449AB:
mov [rsp+0A8h+var_78], rax
mov [rsp+0A8h+var_70], rcx
cmp dword ptr [rsp+0A8h+var_90], 0
jz short loc_449CB
lea rax, [rsp+0A8h+var_78]
movaps xmm0, xmmword ptr [rax]
movaps [rsp+0A8h+var_88], xmm0
jmp short loc_449E6
loc_449CB:
mov rax, [r12+30h]
mov rcx, [r12+38h]
cmp ecx, 0FFFFFFF7h
jb short loc_449DC
inc dword ptr [rax]
loc_449DC:
mov qword ptr [rsp+0A8h+var_88], rax
mov qword ptr [rsp+0A8h+var_88+8], rcx
loc_449E6:
mov rax, [rsp+0A8h+var_40]
mov [rsp+0A8h+var_68], rax
mov rax, [rsp+0A8h+var_38]
mov [rsp+0A8h+var_60], rax
lea rax, [rsp+0A8h+var_88]
mov [rsp+0A8h+var_A8], rax
mov rdi, r13
mov rsi, [rsp+0A8h+var_48]
mov rbp, rdx
mov rcx, [rsp+0A8h+var_A0]
mov r8, [rsp+0A8h+var_98]
push 3
pop r9
call JS_Call
mov r15, rax
mov rbx, rdx
mov rsi, qword ptr [rsp+0A8h+var_88]
mov rdx, qword ptr [rsp+0A8h+var_88+8]
mov rdi, r13
call JS_FreeValue
cmp dword ptr [rsp+0A8h+var_90], 0
jnz short loc_44A52
mov rsi, [rsp+0A8h+var_78]
mov rdx, [rsp+0A8h+var_70]
mov rdi, r13
call JS_FreeValue
loc_44A52:
mov r14, [r12+8]
add r12, 0FFFFFFFFFFFFFFF0h
mov rdi, [r13+18h]
mov rsi, r12
call map_decref_record
cmp ebx, 6
jz short loc_44A97
mov rdi, r13
mov rsi, r15
mov rdx, rbx
call JS_FreeValue
mov r12, r14
mov rdx, rbp
mov rbp, [rsp+0A8h+var_50]
jmp loc_4497D
loc_44A8A:
xor edx, edx
push 3
pop r14
xor eax, eax
jmp loc_4494B
loc_44A97:
mov rdx, r15
mov rcx, 0FFFFFFFF00000000h
and rdx, rcx
mov eax, r15d
mov r14, rbx
jmp loc_4494B
|
unsigned long long js_map_forEach(
long long a1,
long long a2,
long long a3,
int a4,
long long *a5,
int a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
double a11,
double a12,
__m128 a13,
__m128 a14)
{
long long Opaque2; // rax
double v17; // xmm4_8
double v18; // xmm5_8
long long v19; // rbp
long long v20; // r12
long long v21; // rdx
int v22; // ebx
long long v23; // r15
long long v24; // rax
unsigned long long v25; // rdx
long long v27; // rax
_QWORD *v28; // rbp
_QWORD *v29; // r12
long long v30; // rdx
_DWORD *v31; // rax
long long v32; // rcx
_DWORD *v33; // rax
long long v34; // rcx
long long v35; // rbp
long long v36; // r15
long long v37; // rdx
long long v38; // rbx
_QWORD *v39; // r14
int v40; // [rsp+8h] [rbp-A0h]
long long v41; // [rsp+10h] [rbp-98h]
__int128 v43; // [rsp+20h] [rbp-88h] BYREF
__int128 v44; // [rsp+30h] [rbp-78h]
long long v45; // [rsp+40h] [rbp-68h]
long long v46; // [rsp+48h] [rbp-60h]
_QWORD *i; // [rsp+58h] [rbp-50h]
long long v48; // [rsp+60h] [rbp-48h]
long long v49; // [rsp+68h] [rbp-40h]
long long v50; // [rsp+70h] [rbp-38h]
v49 = a2;
v50 = a3;
Opaque2 = JS_GetOpaque2(a1, a2, a3, a6 + 35);
if ( Opaque2
&& ((v19 = Opaque2, v20 = *a5, v21 = a5[1], a4 < 2) ? (LODWORD(v41) = 3, v22 = 0) : (v41 = a5[3], v22 = a5[2]),
v23 = v21,
!(unsigned int)check_function(a1, v20, v21, a7, a8, a9, a10, v17, v18, a13, a14)) )
{
v48 = v20;
v27 = v19;
v28 = (_QWORD *)(v19 + 8);
v29 = *(_QWORD **)(v27 + 16);
v40 = v22;
v30 = v23;
for ( i = v28; ; v28 = i )
{
while ( 1 )
{
if ( v29 == v28 )
{
v25 = 0LL;
v24 = 0LL;
return v25 | v24;
}
if ( !*((_DWORD *)v29 - 3) )
break;
v29 = (_QWORD *)v29[1];
}
++*((_DWORD *)v29 - 4);
v31 = (_DWORD *)v29[4];
v32 = v29[5];
if ( (unsigned int)v32 >= 0xFFFFFFF7 )
++*v31;
*(_QWORD *)&v44 = v31;
*((_QWORD *)&v44 + 1) = v32;
if ( a6 )
{
v43 = v44;
}
else
{
v33 = (_DWORD *)v29[6];
v34 = v29[7];
if ( (unsigned int)v34 >= 0xFFFFFFF7 )
++*v33;
*(_QWORD *)&v43 = v33;
*((_QWORD *)&v43 + 1) = v34;
}
v45 = v49;
v46 = v50;
v35 = v30;
v36 = JS_Call(a1, v48, v30, v40, v41, 3, (long long)&v43);
v38 = v37;
JS_FreeValue(a1, v43, *((long long *)&v43 + 1));
if ( !a6 )
JS_FreeValue(a1, v44, *((long long *)&v44 + 1));
v39 = (_QWORD *)v29[1];
map_decref_record(*(_QWORD *)(a1 + 24), (long long)(v29 - 2));
if ( (_DWORD)v38 == 6 )
break;
JS_FreeValue(a1, v36, v38);
v29 = v39;
v30 = v35;
}
v25 = v36 & 0xFFFFFFFF00000000LL;
v24 = (unsigned int)v36;
}
else
{
v24 = 0LL;
v25 = 0LL;
}
return v25 | v24;
}
|
js_map_forEach:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV RBX,R8
MOV R15D,ECX
MOV R13,RDI
MOV qword ptr [RSP + 0x18],R9
LEA ECX,[R9 + 0x23]
MOV qword ptr [RSP + 0x68],RSI
MOV qword ptr [RSP + 0x70],RDX
CALL 0x00121207
PUSH 0x6
POP R14
TEST RAX,RAX
JZ 0x00144947
MOV RBP,RAX
MOV R12,qword ptr [RBX]
MOV RDX,qword ptr [RBX + 0x8]
MOV RCX,-0x100000000
CMP R15D,0x2
JL 0x00144922
MOV RAX,qword ptr [RBX + 0x10]
MOV RSI,qword ptr [RBX + 0x18]
MOV qword ptr [RSP + 0x10],RSI
MOV EBX,EAX
AND RAX,RCX
MOV qword ptr [RSP + 0x8],RAX
JMP 0x00144935
LAB_00144922:
PUSH 0x3
POP RAX
MOV qword ptr [RSP + 0x10],RAX
XOR EBX,EBX
MOV qword ptr [RSP + 0x8],0x0
LAB_00144935:
MOV RDI,R13
MOV RSI,R12
MOV R15,RDX
CALL 0x0013949a
TEST EAX,EAX
JZ 0x00144960
LAB_00144947:
XOR EAX,EAX
XOR EDX,EDX
LAB_0014494b:
OR RAX,RDX
MOV RDX,R14
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00144960:
MOV qword ptr [RSP + 0x60],R12
MOV RAX,RBP
ADD RBP,0x8
MOV R12,qword ptr [RAX + 0x10]
OR qword ptr [RSP + 0x8],RBX
MOV RDX,R15
MOV qword ptr [RSP + 0x58],RBP
LAB_0014497d:
CMP R12,RBP
JZ 0x00144a8a
CMP dword ptr [R12 + -0xc],0x0
JZ 0x00144995
MOV R12,qword ptr [R12 + 0x8]
JMP 0x0014497d
LAB_00144995:
INC dword ptr [R12 + -0x10]
MOV RAX,qword ptr [R12 + 0x20]
MOV RCX,qword ptr [R12 + 0x28]
CMP ECX,-0x9
JC 0x001449ab
INC dword ptr [RAX]
LAB_001449ab:
MOV qword ptr [RSP + 0x30],RAX
MOV qword ptr [RSP + 0x38],RCX
CMP dword ptr [RSP + 0x18],0x0
JZ 0x001449cb
LEA RAX,[RSP + 0x30]
MOVAPS XMM0,xmmword ptr [RAX]
MOVAPS xmmword ptr [RSP + 0x20],XMM0
JMP 0x001449e6
LAB_001449cb:
MOV RAX,qword ptr [R12 + 0x30]
MOV RCX,qword ptr [R12 + 0x38]
CMP ECX,-0x9
JC 0x001449dc
INC dword ptr [RAX]
LAB_001449dc:
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x28],RCX
LAB_001449e6:
MOV RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0x40],RAX
MOV RAX,qword ptr [RSP + 0x70]
MOV qword ptr [RSP + 0x48],RAX
LEA RAX,[RSP + 0x20]
MOV qword ptr [RSP],RAX
MOV RDI,R13
MOV RSI,qword ptr [RSP + 0x60]
MOV RBP,RDX
MOV RCX,qword ptr [RSP + 0x8]
MOV R8,qword ptr [RSP + 0x10]
PUSH 0x3
POP R9
CALL 0x00121eb6
MOV R15,RAX
MOV RBX,RDX
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x28]
MOV RDI,R13
CALL 0x0011801e
CMP dword ptr [RSP + 0x18],0x0
JNZ 0x00144a52
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RSP + 0x38]
MOV RDI,R13
CALL 0x0011801e
LAB_00144a52:
MOV R14,qword ptr [R12 + 0x8]
ADD R12,-0x10
MOV RDI,qword ptr [R13 + 0x18]
MOV RSI,R12
CALL 0x00134237
CMP EBX,0x6
JZ 0x00144a97
MOV RDI,R13
MOV RSI,R15
MOV RDX,RBX
CALL 0x0011801e
MOV R12,R14
MOV RDX,RBP
MOV RBP,qword ptr [RSP + 0x58]
JMP 0x0014497d
LAB_00144a8a:
XOR EDX,EDX
PUSH 0x3
POP R14
XOR EAX,EAX
JMP 0x0014494b
LAB_00144a97:
MOV RDX,R15
MOV RCX,-0x100000000
AND RDX,RCX
MOV EAX,R15D
MOV R14,RBX
JMP 0x0014494b
|
int1 [16]
js_map_forEach(long param_1,int8 param_2,int8 param_3,int param_4,int8 *param_5,
int param_6)
{
int8 uVar1;
int8 uVar2;
long lVar3;
int iVar4;
long lVar5;
ulong uVar6;
ulong uVar7;
long lVar8;
int1 auVar9 [16];
int8 uStackY_b0;
ulong local_a0;
int8 local_98;
int *local_88;
int8 uStack_80;
int *local_78;
int8 uStack_70;
int8 local_68;
int8 local_60;
long local_50;
int8 local_48;
int8 local_40;
int8 local_38;
local_40 = param_2;
local_38 = param_3;
lVar5 = JS_GetOpaque2();
uStackY_b0 = 6;
if (lVar5 != 0) {
uVar1 = *param_5;
uVar2 = param_5[1];
if (param_4 < 2) {
local_98 = 3;
uVar7 = 0;
local_a0 = 0;
}
else {
local_98 = param_5[3];
uVar7 = param_5[2] & 0xffffffff;
local_a0 = param_5[2] & 0xffffffff00000000;
}
iVar4 = check_function(param_1,uVar1);
if (iVar4 == 0) {
local_50 = lVar5 + 8;
lVar8 = local_50;
lVar5 = *(long *)(lVar5 + 0x10);
local_48 = uVar1;
while (lVar5 != lVar8) {
if (*(int *)(lVar5 + -0xc) == 0) {
*(int *)(lVar5 + -0x10) = *(int *)(lVar5 + -0x10) + 1;
local_78 = *(int **)(lVar5 + 0x20);
uStack_70 = *(int8 *)(lVar5 + 0x28);
if (0xfffffff6 < (uint)uStack_70) {
*local_78 = *local_78 + 1;
}
local_88 = local_78;
uStack_80 = uStack_70;
if (param_6 == 0) {
local_88 = *(int **)(lVar5 + 0x30);
uStack_80 = *(int8 *)(lVar5 + 0x38);
if (0xfffffff6 < (uint)uStack_80) {
*local_88 = *local_88 + 1;
}
}
local_68 = local_40;
local_60 = local_38;
auVar9 = JS_Call(param_1,local_48,uVar2,local_a0 | uVar7,local_98,3,&local_88);
uStackY_b0 = auVar9._8_8_;
uVar6 = auVar9._0_8_;
JS_FreeValue(param_1,local_88,uStack_80);
if (param_6 == 0) {
JS_FreeValue(param_1,local_78,uStack_70);
}
lVar3 = *(long *)(lVar5 + 8);
map_decref_record(*(int8 *)(param_1 + 0x18),lVar5 + -0x10);
if (auVar9._8_4_ == 6) {
uVar7 = uVar6 & 0xffffffff00000000;
uVar6 = uVar6 & 0xffffffff;
goto LAB_0014494b;
}
JS_FreeValue(param_1,uVar6,uStackY_b0);
lVar8 = local_50;
lVar5 = lVar3;
}
else {
lVar5 = *(long *)(lVar5 + 8);
}
}
uVar7 = 0;
uStackY_b0 = 3;
uVar6 = 0;
goto LAB_0014494b;
}
}
uVar6 = 0;
uVar7 = 0;
LAB_0014494b:
auVar9._0_8_ = uVar6 | uVar7;
auVar9._8_8_ = uStackY_b0;
return auVar9;
}
|
|
16,285
|
evmone::get_error_message(evmone::EOFValidationError)
|
corpus-core[P]colibri-stateless/build_O3/_deps/evmone_external-src/lib/evmone/eof.cpp
|
std::string_view get_error_message(EOFValidationError err) noexcept
{
switch (err)
{
case EOFValidationError::success:
return "success";
case EOFValidationError::invalid_prefix:
return "invalid_prefix";
case EOFValidationError::eof_version_unknown:
return "eof_version_unknown";
case EOFValidationError::incomplete_section_size:
return "incomplete_section_size";
case EOFValidationError::incomplete_section_number:
return "incomplete_section_number";
case EOFValidationError::header_terminator_missing:
return "header_terminator_missing";
case EOFValidationError::type_section_missing:
return "type_section_missing";
case EOFValidationError::code_section_missing:
return "code_section_missing";
case EOFValidationError::data_section_missing:
return "data_section_missing";
case EOFValidationError::zero_section_size:
return "zero_section_size";
case EOFValidationError::section_headers_not_terminated:
return "section_headers_not_terminated";
case EOFValidationError::invalid_section_bodies_size:
return "invalid_section_bodies_size";
case EOFValidationError::unreachable_code_sections:
return "unreachable_code_sections";
case EOFValidationError::undefined_instruction:
return "undefined_instruction";
case EOFValidationError::truncated_instruction:
return "truncated_instruction";
case EOFValidationError::invalid_rjump_destination:
return "invalid_rjump_destination";
case EOFValidationError::too_many_code_sections:
return "too_many_code_sections";
case EOFValidationError::invalid_type_section_size:
return "invalid_type_section_size";
case EOFValidationError::invalid_first_section_type:
return "invalid_first_section_type";
case EOFValidationError::invalid_max_stack_increase:
return "invalid_max_stack_increase";
case EOFValidationError::max_stack_increase_above_limit:
return "max_stack_increase_above_limit";
case EOFValidationError::inputs_outputs_num_above_limit:
return "inputs_outputs_num_above_limit";
case EOFValidationError::no_terminating_instruction:
return "no_terminating_instruction";
case EOFValidationError::stack_height_mismatch:
return "stack_height_mismatch";
case EOFValidationError::stack_higher_than_outputs_required:
return "stack_higher_than_outputs_required";
case EOFValidationError::unreachable_instructions:
return "unreachable_instructions";
case EOFValidationError::stack_underflow:
return "stack_underflow";
case EOFValidationError::stack_overflow:
return "stack_overflow";
case EOFValidationError::invalid_code_section_index:
return "invalid_code_section_index";
case EOFValidationError::invalid_dataloadn_index:
return "invalid_dataloadn_index";
case EOFValidationError::jumpf_destination_incompatible_outputs:
return "jumpf_destination_incompatible_outputs";
case EOFValidationError::invalid_non_returning_flag:
return "invalid_non_returning_flag";
case EOFValidationError::callf_to_non_returning_function:
return "callf_to_non_returning_function";
case EOFValidationError::too_many_container_sections:
return "too_many_container_sections";
case EOFValidationError::invalid_container_section_index:
return "invalid_container_section_index";
case EOFValidationError::eofcreate_with_truncated_container:
return "eofcreate_with_truncated_container";
case EOFValidationError::toplevel_container_truncated:
return "toplevel_container_truncated";
case EOFValidationError::ambiguous_container_kind:
return "ambiguous_container_kind";
case EOFValidationError::incompatible_container_kind:
return "incompatible_container_kind";
case EOFValidationError::container_size_above_limit:
return "container_size_above_limit";
case EOFValidationError::unreferenced_subcontainer:
return "unreferenced_subcontainer";
}
return "<unknown>";
}
|
O3
|
cpp
|
evmone::get_error_message(evmone::EOFValidationError):
cmpl $0x28, %edi
ja 0x45883
movl %edi, %eax
leaq 0x42b68(%rip), %rcx # 0x883d8
movslq (%rcx,%rax,4), %rdx
addq %rcx, %rdx
leaq 0x42c02(%rip), %rcx # 0x88480
movq (%rcx,%rax,8), %rax
retq
movl $0x9, %eax
leaq 0x432bb(%rip), %rdx # 0x88b4a
retq
|
_ZN6evmone17get_error_messageENS_18EOFValidationErrorE:
cmp edi, 28h ; '('
ja short loc_45883
mov eax, edi
lea rcx, unk_883D8
movsxd rdx, dword ptr [rcx+rax*4]
add rdx, rcx
lea rcx, unk_88480
mov rax, [rcx+rax*8]
retn
loc_45883:
mov eax, 9
lea rdx, aUnknown; "<unknown>"
retn
|
long long evmone::get_error_message(unsigned int a1)
{
if ( a1 > 0x28 )
return 9LL;
else
return qword_88480[a1];
}
|
get_error_message:
CMP EDI,0x28
JA 0x00145883
MOV EAX,EDI
LEA RCX,[0x1883d8]
MOVSXD RDX,dword ptr [RCX + RAX*0x4]
ADD RDX,RCX
LEA RCX,[0x188480]
MOV RAX,qword ptr [RCX + RAX*0x8]
RET
LAB_00145883:
MOV EAX,0x9
LEA RDX,[0x188b4a]
RET
|
/* evmone::get_error_message(evmone::EOFValidationError) */
int1 [16] evmone::get_error_message(uint param_1)
{
int1 auVar1 [16];
int1 auVar2 [16];
if (param_1 < 0x29) {
auVar1._8_8_ = &DAT_001883d8 + *(int *)(&DAT_001883d8 + (ulong)param_1 * 4);
auVar1._0_8_ = *(int8 *)(&DAT_00188480 + (ulong)param_1 * 8);
return auVar1;
}
auVar2._8_8_ = "<unknown>";
auVar2._0_8_ = 9;
return auVar2;
}
|
|
16,286
|
ma_tls_start
|
eloqsql/libmariadb/libmariadb/secure/openssl.c
|
int ma_tls_start(char *errmsg __attribute__((unused)), size_t errmsg_len __attribute__((unused)))
{
int rc= 1;
char *p;
if (ma_tls_initialized)
return 0;
/* lock mutex to prevent multiple initialization */
pthread_mutex_init(&LOCK_openssl_config, NULL);
pthread_mutex_lock(&LOCK_openssl_config);
#ifdef HAVE_OPENSSL_1_1_API
if (!OPENSSL_init_ssl(OPENSSL_INIT_LOAD_CONFIG, NULL))
goto end;
#else
if (ssl_thread_init())
{
strncpy(errmsg, "Not enough memory", errmsg_len);
goto end;
}
SSL_library_init();
#if SSLEAY_VERSION_NUMBER >= 0x00907000L
OPENSSL_config(NULL);
#endif
#endif
#ifndef HAVE_OPENSSL_1_1_API
/* load errors */
SSL_load_error_strings();
/* digests and ciphers */
OpenSSL_add_all_algorithms();
#endif
disable_sigpipe();
#ifdef OPENSSL_USE_BIOMETHOD
memcpy(&ma_BIO_method, BIO_s_socket(), sizeof(BIO_METHOD));
ma_BIO_method.bread= ma_bio_read;
ma_BIO_method.bwrite= ma_bio_write;
#endif
snprintf(tls_library_version, TLS_VERSION_LENGTH - 1, "%s",
#if defined(LIBRESSL_VERSION_NUMBER) || !defined(HAVE_OPENSSL_1_1_API)
SSLeay_version(SSLEAY_VERSION));
#else
OpenSSL_version(OPENSSL_VERSION));
#endif
/* remove date from version */
if ((p= strstr(tls_library_version, " ")))
*p= 0;
rc= 0;
ma_tls_initialized= TRUE;
end:
pthread_mutex_unlock(&LOCK_openssl_config);
return rc;
}
|
O0
|
c
|
ma_tls_start:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl $0x1, -0x1c(%rbp)
leaq 0x3ae752(%rip), %rax # 0x46d5f0
cmpb $0x0, (%rax)
je 0xbeeaf
movl $0x0, -0x4(%rbp)
jmp 0xbef4b
leaq 0x3b001a(%rip), %rdi # 0x46eed0
xorl %eax, %eax
movl %eax, %esi
callq 0x3a3f0
leaq 0x3b000a(%rip), %rdi # 0x46eed0
callq 0x3a270
movl $0x40, %edi
xorl %eax, %eax
movl %eax, %esi
callq 0x3a0e0
cmpl $0x0, %eax
jne 0xbeee0
jmp 0xbef39
xorl %edi, %edi
callq 0x3aa70
movq %rax, %rcx
leaq 0x3b000f(%rip), %rdi # 0x46ef00
movl $0x3f, %esi
leaq 0x6ea29(%rip), %rdx # 0x12d926
movb $0x0, %al
callq 0x3a4c0
leaq 0x3afff5(%rip), %rdi # 0x46ef00
leaq 0x88048(%rip), %rsi # 0x146f5a
callq 0x3a470
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
je 0xbef28
movq -0x28(%rbp), %rax
movb $0x0, (%rax)
movl $0x0, -0x1c(%rbp)
leaq 0x3ae6ba(%rip), %rax # 0x46d5f0
movb $0x1, (%rax)
leaq 0x3aff90(%rip), %rdi # 0x46eed0
callq 0x3a240
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
ma_tls_start:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], 1
lea rax, ma_tls_initialized
cmp byte ptr [rax], 0
jz short loc_BEEAF
mov [rbp+var_4], 0
jmp loc_BEF4B
loc_BEEAF:
lea rdi, LOCK_openssl_config
xor eax, eax
mov esi, eax
call _pthread_mutex_init
lea rdi, LOCK_openssl_config
call _pthread_mutex_lock
mov edi, 40h ; '@'
xor eax, eax
mov esi, eax
call _OPENSSL_init_ssl
cmp eax, 0
jnz short loc_BEEE0
jmp short loc_BEF39
loc_BEEE0:
xor edi, edi
call _OpenSSL_version
mov rcx, rax
lea rdi, tls_library_version
mov esi, 3Fh ; '?'
lea rdx, aS+3; "%s"
mov al, 0
call _snprintf
lea rdi, tls_library_version
lea rsi, asc_146F5A; " "
call _strstr
mov [rbp+var_28], rax
cmp rax, 0
jz short loc_BEF28
mov rax, [rbp+var_28]
mov byte ptr [rax], 0
loc_BEF28:
mov [rbp+var_1C], 0
lea rax, ma_tls_initialized
mov byte ptr [rax], 1
loc_BEF39:
lea rdi, LOCK_openssl_config
call _pthread_mutex_unlock
mov eax, [rbp+var_1C]
mov [rbp+var_4], eax
loc_BEF4B:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
|
long long ma_tls_start()
{
const char *v0; // rax
_BYTE *v2; // [rsp+8h] [rbp-28h]
unsigned int v3; // [rsp+14h] [rbp-1Ch]
v3 = 1;
if ( ma_tls_initialized )
{
return 0;
}
else
{
pthread_mutex_init(&LOCK_openssl_config, 0LL);
pthread_mutex_lock(&LOCK_openssl_config);
if ( (unsigned int)OPENSSL_init_ssl(64LL, 0LL) )
{
v0 = (const char *)OpenSSL_version(0LL);
snprintf(&tls_library_version, 63LL, "%s", v0);
v2 = (_BYTE *)strstr(&tls_library_version, " ");
if ( v2 )
*v2 = 0;
v3 = 0;
ma_tls_initialized = 1;
}
pthread_mutex_unlock(&LOCK_openssl_config);
return v3;
}
}
|
ma_tls_start:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],0x1
LEA RAX,[0x56d5f0]
CMP byte ptr [RAX],0x0
JZ 0x001beeaf
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001bef4b
LAB_001beeaf:
LEA RDI,[0x56eed0]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x0013a3f0
LEA RDI,[0x56eed0]
CALL 0x0013a270
MOV EDI,0x40
XOR EAX,EAX
MOV ESI,EAX
CALL 0x0013a0e0
CMP EAX,0x0
JNZ 0x001beee0
JMP 0x001bef39
LAB_001beee0:
XOR EDI,EDI
CALL 0x0013aa70
MOV RCX,RAX
LEA RDI,[0x56ef00]
MOV ESI,0x3f
LEA RDX,[0x22d926]
MOV AL,0x0
CALL 0x0013a4c0
LEA RDI,[0x56ef00]
LEA RSI,[0x246f5a]
CALL 0x0013a470
MOV qword ptr [RBP + -0x28],RAX
CMP RAX,0x0
JZ 0x001bef28
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX],0x0
LAB_001bef28:
MOV dword ptr [RBP + -0x1c],0x0
LEA RAX,[0x56d5f0]
MOV byte ptr [RAX],0x1
LAB_001bef39:
LEA RDI,[0x56eed0]
CALL 0x0013a240
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x4],EAX
LAB_001bef4b:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4 ma_tls_start(void)
{
int iVar1;
int8 uVar2;
char *pcVar3;
int4 local_24;
int4 local_c;
local_24 = 1;
if (ma_tls_initialized == '\0') {
pthread_mutex_init((pthread_mutex_t *)LOCK_openssl_config,(pthread_mutexattr_t *)0x0);
pthread_mutex_lock((pthread_mutex_t *)LOCK_openssl_config);
iVar1 = OPENSSL_init_ssl(0x40,0);
if (iVar1 != 0) {
uVar2 = OpenSSL_version(0);
snprintf(tls_library_version,0x3f,"%s",uVar2);
pcVar3 = strstr(tls_library_version,&DAT_00246f5a);
if (pcVar3 != (char *)0x0) {
*pcVar3 = '\0';
}
local_24 = 0;
ma_tls_initialized = '\x01';
}
pthread_mutex_unlock((pthread_mutex_t *)LOCK_openssl_config);
local_c = local_24;
}
else {
local_c = 0;
}
return local_c;
}
|
|
16,287
|
nlohmann::json_abi_v3_12_0::detail::iter_impl<nlohmann::json_abi_v3_12_0::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_12_0::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const> nlohmann::json_abi_v3_12_0::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_12_0::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::find<char const (&) [6], 0>(char const (&) [6]) const
|
shubhamoy[P]dir2txt/include/nlohmann/json.hpp
|
const_iterator find(KeyType && key) const
{
auto result = cend();
if (is_object())
{
result.m_it.object_iterator = m_data.m_value.object->find(std::forward<KeyType>(key));
}
return result;
}
|
O1
|
cpp
|
nlohmann::json_abi_v3_12_0::detail::iter_impl<nlohmann::json_abi_v3_12_0::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_12_0::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const> nlohmann::json_abi_v3_12_0::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_12_0::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::find<char const (&) [6], 0>(char const (&) [6]) const:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
callq 0x2e704
cmpb $0x1, (%r15)
jne 0x2f73d
movq 0x8(%r15), %rdi
movq %r14, %rsi
callq 0x2d22a
movq %rax, 0x8(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
|
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4findIRA6_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEENS0_6detail9iter_implIKSD_EEOSJ_:
push r15
push r14
push rbx
mov r14, rdx
mov r15, rsi
mov rbx, rdi
call _ZNK8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4cendEv; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::cend(void)
cmp byte ptr [r15], 1
jnz short loc_2F73D
mov rdi, [r15+8]
mov rsi, r14
call _ZNKSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorS5_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEESt10_Select1stISH_ESt4lessIvESaISH_EE10_M_find_trIA6_cvEESt23_Rb_tree_const_iteratorISH_ERKT_; std::_Rb_tree<std::string,std::pair<std::string const,nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>>,std::_Select1st<std::pair<std::string const,nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>>>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>>>>::_M_find_tr<char [6],void>(char [6] const&)
mov [rbx+8], rax
loc_2F73D:
mov rax, rbx
pop rbx
pop r14
pop r15
retn
|
long long ZNK8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4findIRA6_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEENS0_6detail9iter_implIKSD_EEOSJ_(
long long a1,
long long a2,
long long a3)
{
nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>::cend(
a1,
(unsigned __int8 *)a2);
if ( *(_BYTE *)a2 == 1 )
*(_QWORD *)(a1 + 8) = std::_Rb_tree<std::string,std::pair<std::string const,nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>>,std::_Select1st<std::pair<std::string const,nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>>>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>>>>::_M_find_tr<char [6],void>(
*(_QWORD *)(a2 + 8),
a3);
return a1;
}
|
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4findIRA6_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEENS0_6detail9iter_implIKSD_EEOSJ_:
PUSH R15
PUSH R14
PUSH RBX
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
CALL 0x0012e704
CMP byte ptr [R15],0x1
JNZ 0x0012f73d
MOV RDI,qword ptr [R15 + 0x8]
MOV RSI,R14
CALL 0x0012d22a
MOV qword ptr [RBX + 0x8],RAX
LAB_0012f73d:
MOV RAX,RBX
POP RBX
POP R14
POP R15
RET
|
long _ZNK8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4findIRA6_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEENS0_6detail9iter_implIKSD_EEOSJ_
(long param_1,char *param_2,char *param_3)
{
int8 uVar1;
nlohmann::json_abi_v3_12_0::
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::cend();
if (*param_2 == '\x01') {
uVar1 = std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::_Select1st<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::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_12_0::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::_M_find_tr<char[6],void>
(*(_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::_Select1st<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::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_12_0::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
**)(param_2 + 8),param_3);
*(int8 *)(param_1 + 8) = uVar1;
}
return param_1;
}
|
|
16,288
|
nlohmann::json_abi_v3_12_0::detail::iter_impl<nlohmann::json_abi_v3_12_0::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_12_0::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const> nlohmann::json_abi_v3_12_0::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_12_0::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::find<char const (&) [6], 0>(char const (&) [6]) const
|
shubhamoy[P]dir2txt/include/nlohmann/json.hpp
|
const_iterator find(KeyType && key) const
{
auto result = cend();
if (is_object())
{
result.m_it.object_iterator = m_data.m_value.object->find(std::forward<KeyType>(key));
}
return result;
}
|
O2
|
cpp
|
nlohmann::json_abi_v3_12_0::detail::iter_impl<nlohmann::json_abi_v3_12_0::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_12_0::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const> nlohmann::json_abi_v3_12_0::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_12_0::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::find<char const (&) [6], 0>(char const (&) [6]) const:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
callq 0x294a6
cmpb $0x1, (%r15)
jne 0x29303
movq 0x8(%r15), %rdi
movq %r14, %rsi
callq 0x255de
movq %rax, 0x8(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
|
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4findIRA5_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEENS0_6detail9iter_implIKSD_EEOSJ_:
push r15
push r14
push rbx
mov r14, rdx
mov r15, rsi
mov rbx, rdi
call _ZNK8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4cendEv; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::cend(void)
cmp byte ptr [r15], 1
jnz short loc_29303
mov rdi, [r15+8]
mov rsi, r14
call _ZNKSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorS5_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEESt10_Select1stISH_ESt4lessIvESaISH_EE10_M_find_trIA5_cvEESt23_Rb_tree_const_iteratorISH_ERKT_; std::_Rb_tree<std::string,std::pair<std::string const,nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>>,std::_Select1st<std::pair<std::string const,nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>>>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>>>>::_M_find_tr<char [5],void>(char [5] const&)
mov [rbx+8], rax
loc_29303:
mov rax, rbx
pop rbx
pop r14
pop r15
retn
|
long long ZNK8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4findIRA5_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEENS0_6detail9iter_implIKSD_EEOSJ_(
long long a1,
long long a2,
long long a3)
{
nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>::cend(
a1,
a2);
if ( *(_BYTE *)a2 == 1 )
*(_QWORD *)(a1 + 8) = std::_Rb_tree<std::string,std::pair<std::string const,nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>>,std::_Select1st<std::pair<std::string const,nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>>>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>>>>::_M_find_tr<char [5],void>(
*(_QWORD *)(a2 + 8),
a3);
return a1;
}
|
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4findIRA5_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEENS0_6detail9iter_implIKSD_EEOSJ_:
PUSH R15
PUSH R14
PUSH RBX
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
CALL 0x001294a6
CMP byte ptr [R15],0x1
JNZ 0x00129303
MOV RDI,qword ptr [R15 + 0x8]
MOV RSI,R14
CALL 0x001255de
MOV qword ptr [RBX + 0x8],RAX
LAB_00129303:
MOV RAX,RBX
POP RBX
POP R14
POP R15
RET
|
long _ZNK8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4findIRA5_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEENS0_6detail9iter_implIKSD_EEOSJ_
(long param_1,char *param_2,char *param_3)
{
int8 uVar1;
nlohmann::json_abi_v3_12_0::
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::cend();
if (*param_2 == '\x01') {
uVar1 = std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::_Select1st<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::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_12_0::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::_M_find_tr<char[5],void>
(*(_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::_Select1st<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::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_12_0::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
**)(param_2 + 8),param_3);
*(int8 *)(param_1 + 8) = uVar1;
}
return param_1;
}
|
|
16,289
|
my_wc_to_printable_ex
|
eloqsql/strings/ctype.c
|
int
my_wc_to_printable_ex(CHARSET_INFO *cs, my_wc_t wc,
uchar *str, uchar *end,
uint bs, uint bslen, uint diglen)
{
uchar *str0;
uint i, length;
uchar tmp[MY_CS_PRINTABLE_CHAR_LENGTH * MY_CS_MBMAXLEN];
if (my_is_printable(wc))
{
int mblen= my_ci_wc_mb(cs, wc, str, end);
if (mblen > 0)
return mblen;
}
if (str + my_printable_length(bslen, diglen) > end)
return MY_CS_TOOSMALLN(my_printable_length(bslen, diglen));
if ((cs->state & MY_CS_NONASCII) == 0)
return to_printable_8bit(str, wc, bs);
length= to_printable_8bit(tmp, wc, bs);
str0= str;
for (i= 0; i < length; i++)
{
uint expected_length= i == 0 ? bslen : diglen;
if (my_ci_wc_mb(cs, tmp[i], str, end) != (int) expected_length)
{
DBUG_ASSERT(0);
return MY_CS_ILSEQ;
}
str+= expected_length;
}
return (int) (str - str0);
}
|
O0
|
c
|
my_wc_to_printable_ex:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movl 0x10(%rbp), %eax
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x40(%rbp)
movq %rsi, -0x48(%rbp)
movq %rdx, -0x50(%rbp)
movq %rcx, -0x58(%rbp)
movl %r8d, -0x5c(%rbp)
movl %r9d, -0x60(%rbp)
movq -0x48(%rbp), %rdi
callq 0xcb740
cmpb $0x0, %al
je 0xcb5f7
movq -0x40(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x30(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq -0x50(%rbp), %rdx
movq -0x58(%rbp), %rcx
callq *%rax
movl %eax, -0x74(%rbp)
cmpl $0x0, -0x74(%rbp)
jle 0xcb5f5
movl -0x74(%rbp), %eax
movl %eax, -0x34(%rbp)
jmp 0xcb70f
jmp 0xcb5f7
movq -0x50(%rbp), %rax
movq %rax, -0x80(%rbp)
movl -0x60(%rbp), %edi
movl 0x10(%rbp), %esi
callq 0xcb7c0
movl %eax, %ecx
movq -0x80(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
cmpq -0x58(%rbp), %rax
jbe 0xcb637
movl -0x60(%rbp), %edi
movl 0x10(%rbp), %esi
callq 0xcb7c0
movl %eax, %ecx
movl $0xffffff9c, %eax # imm = 0xFFFFFF9C
subl %ecx, %eax
movl %eax, -0x34(%rbp)
jmp 0xcb70f
movq -0x40(%rbp), %rax
movl 0xc(%rax), %eax
andl $0x2000, %eax # imm = 0x2000
cmpl $0x0, %eax
jne 0xcb660
movq -0x50(%rbp), %rdi
movq -0x48(%rbp), %rsi
movl -0x5c(%rbp), %edx
callq 0xcb7e0
movl %eax, -0x34(%rbp)
jmp 0xcb70f
leaq -0x30(%rbp), %rdi
movq -0x48(%rbp), %rsi
movl -0x5c(%rbp), %edx
callq 0xcb7e0
movl %eax, -0x70(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x68(%rbp)
movl $0x0, -0x6c(%rbp)
movl -0x6c(%rbp), %eax
cmpl -0x70(%rbp), %eax
jae 0xcb701
cmpl $0x0, -0x6c(%rbp)
jne 0xcb69b
movl -0x60(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0xcb6a4
movl 0x10(%rbp), %eax
movl %eax, -0x84(%rbp)
movl -0x84(%rbp), %eax
movl %eax, -0x78(%rbp)
movq -0x40(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x30(%rax), %rax
movq -0x40(%rbp), %rdi
movl -0x6c(%rbp), %ecx
movzbl -0x30(%rbp,%rcx), %ecx
movl %ecx, %esi
movq -0x50(%rbp), %rdx
movq -0x58(%rbp), %rcx
callq *%rax
cmpl -0x78(%rbp), %eax
je 0xcb6e6
jmp 0xcb6db
jmp 0xcb6dd
movl $0x0, -0x34(%rbp)
jmp 0xcb70f
movl -0x78(%rbp), %ecx
movq -0x50(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movl -0x6c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x6c(%rbp)
jmp 0xcb682
movq -0x50(%rbp), %rax
movq -0x68(%rbp), %rcx
subq %rcx, %rax
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
movl %eax, -0x88(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xcb739
movl -0x88(%rbp), %eax
addq $0x90, %rsp
popq %rbp
retq
callq 0x283b0
nop
|
my_wc_to_printable_ex:
push rbp
mov rbp, rsp
sub rsp, 90h
mov eax, [rbp+arg_0]
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_40], rdi
mov [rbp+var_48], rsi
mov [rbp+var_50], rdx
mov [rbp+var_58], rcx
mov [rbp+var_5C], r8d
mov [rbp+var_60], r9d
mov rdi, [rbp+var_48]
call my_is_printable
cmp al, 0
jz short loc_CB5F7
mov rax, [rbp+var_40]
mov rax, [rax+0B8h]
mov rax, [rax+30h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_48]
mov rdx, [rbp+var_50]
mov rcx, [rbp+var_58]
call rax
mov [rbp+var_74], eax
cmp [rbp+var_74], 0
jle short loc_CB5F5
mov eax, [rbp+var_74]
mov [rbp+var_34], eax
jmp loc_CB70F
loc_CB5F5:
jmp short $+2
loc_CB5F7:
mov rax, [rbp+var_50]
mov [rbp+var_80], rax
mov edi, [rbp+var_60]
mov esi, [rbp+arg_0]
call my_printable_length
mov ecx, eax
mov rax, [rbp+var_80]
mov ecx, ecx
add rax, rcx
cmp rax, [rbp+var_58]
jbe short loc_CB637
mov edi, [rbp+var_60]
mov esi, [rbp+arg_0]
call my_printable_length
mov ecx, eax
mov eax, 0FFFFFF9Ch
sub eax, ecx
mov [rbp+var_34], eax
jmp loc_CB70F
loc_CB637:
mov rax, [rbp+var_40]
mov eax, [rax+0Ch]
and eax, 2000h
cmp eax, 0
jnz short loc_CB660
mov rdi, [rbp+var_50]
mov rsi, [rbp+var_48]
mov edx, [rbp+var_5C]
call to_printable_8bit
mov [rbp+var_34], eax
jmp loc_CB70F
loc_CB660:
lea rdi, [rbp+var_30]
mov rsi, [rbp+var_48]
mov edx, [rbp+var_5C]
call to_printable_8bit
mov [rbp+var_70], eax
mov rax, [rbp+var_50]
mov [rbp+var_68], rax
mov [rbp+var_6C], 0
loc_CB682:
mov eax, [rbp+var_6C]
cmp eax, [rbp+var_70]
jnb short loc_CB701
cmp [rbp+var_6C], 0
jnz short loc_CB69B
mov eax, [rbp+var_60]
mov [rbp+var_84], eax
jmp short loc_CB6A4
loc_CB69B:
mov eax, [rbp+arg_0]
mov [rbp+var_84], eax
loc_CB6A4:
mov eax, [rbp+var_84]
mov [rbp+var_78], eax
mov rax, [rbp+var_40]
mov rax, [rax+0B8h]
mov rax, [rax+30h]
mov rdi, [rbp+var_40]
mov ecx, [rbp+var_6C]
movzx ecx, [rbp+rcx+var_30]
mov esi, ecx
mov rdx, [rbp+var_50]
mov rcx, [rbp+var_58]
call rax
cmp eax, [rbp+var_78]
jz short loc_CB6E6
jmp short $+2
loc_CB6DB:
jmp short $+2
loc_CB6DD:
mov [rbp+var_34], 0
jmp short loc_CB70F
loc_CB6E6:
mov ecx, [rbp+var_78]
mov rax, [rbp+var_50]
mov ecx, ecx
add rax, rcx
mov [rbp+var_50], rax
mov eax, [rbp+var_6C]
add eax, 1
mov [rbp+var_6C], eax
jmp short loc_CB682
loc_CB701:
mov rax, [rbp+var_50]
mov rcx, [rbp+var_68]
sub rax, rcx
mov [rbp+var_34], eax
loc_CB70F:
mov eax, [rbp+var_34]
mov [rbp+var_88], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_CB739
mov eax, [rbp+var_88]
add rsp, 90h
pop rbp
retn
loc_CB739:
call ___stack_chk_fail
|
long long my_wc_to_printable_ex(
long long a1,
long long a2,
long long a3,
unsigned long long a4,
unsigned int a5,
unsigned int a6,
unsigned int a7)
{
unsigned int v8; // [rsp+Ch] [rbp-84h]
int v9; // [rsp+1Ch] [rbp-74h]
unsigned int v10; // [rsp+20h] [rbp-70h]
unsigned int i; // [rsp+24h] [rbp-6Ch]
int v12; // [rsp+28h] [rbp-68h]
_BYTE v18[40]; // [rsp+60h] [rbp-30h] BYREF
unsigned long long v19; // [rsp+88h] [rbp-8h]
v19 = __readfsqword(0x28u);
if ( (unsigned __int8)my_is_printable(a2)
&& (v9 = (*(long long ( **)(long long, long long, long long, unsigned long long))(*(_QWORD *)(a1 + 184) + 48LL))(
a1,
a2,
a3,
a4),
v9 > 0) )
{
return (unsigned int)v9;
}
else if ( (unsigned long long)(unsigned int)my_printable_length(a6, a7) + a3 <= a4 )
{
if ( (*(_DWORD *)(a1 + 12) & 0x2000) != 0 )
{
v10 = to_printable_8bit(v18, a2, a5);
v12 = a3;
for ( i = 0; i < v10; ++i )
{
if ( i )
v8 = a7;
else
v8 = a6;
if ( (*(unsigned int ( **)(long long, _QWORD, long long, unsigned long long))(*(_QWORD *)(a1 + 184) + 48LL))(
a1,
(unsigned __int8)v18[i],
a3,
a4) != v8 )
return 0;
a3 += v8;
}
return (unsigned int)(a3 - v12);
}
else
{
return (unsigned int)to_printable_8bit(a3, a2, a5);
}
}
else
{
return (unsigned int)(-100 - my_printable_length(a6, a7));
}
}
|
my_wc_to_printable_ex:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV EAX,dword ptr [RBP + 0x10]
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x40],RDI
MOV qword ptr [RBP + -0x48],RSI
MOV qword ptr [RBP + -0x50],RDX
MOV qword ptr [RBP + -0x58],RCX
MOV dword ptr [RBP + -0x5c],R8D
MOV dword ptr [RBP + -0x60],R9D
MOV RDI,qword ptr [RBP + -0x48]
CALL 0x001cb740
CMP AL,0x0
JZ 0x001cb5f7
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX + 0xb8]
MOV RAX,qword ptr [RAX + 0x30]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x50]
MOV RCX,qword ptr [RBP + -0x58]
CALL RAX
MOV dword ptr [RBP + -0x74],EAX
CMP dword ptr [RBP + -0x74],0x0
JLE 0x001cb5f5
MOV EAX,dword ptr [RBP + -0x74]
MOV dword ptr [RBP + -0x34],EAX
JMP 0x001cb70f
LAB_001cb5f5:
JMP 0x001cb5f7
LAB_001cb5f7:
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x80],RAX
MOV EDI,dword ptr [RBP + -0x60]
MOV ESI,dword ptr [RBP + 0x10]
CALL 0x001cb7c0
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x80]
MOV ECX,ECX
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x58]
JBE 0x001cb637
MOV EDI,dword ptr [RBP + -0x60]
MOV ESI,dword ptr [RBP + 0x10]
CALL 0x001cb7c0
MOV ECX,EAX
MOV EAX,0xffffff9c
SUB EAX,ECX
MOV dword ptr [RBP + -0x34],EAX
JMP 0x001cb70f
LAB_001cb637:
MOV RAX,qword ptr [RBP + -0x40]
MOV EAX,dword ptr [RAX + 0xc]
AND EAX,0x2000
CMP EAX,0x0
JNZ 0x001cb660
MOV RDI,qword ptr [RBP + -0x50]
MOV RSI,qword ptr [RBP + -0x48]
MOV EDX,dword ptr [RBP + -0x5c]
CALL 0x001cb7e0
MOV dword ptr [RBP + -0x34],EAX
JMP 0x001cb70f
LAB_001cb660:
LEA RDI,[RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x48]
MOV EDX,dword ptr [RBP + -0x5c]
CALL 0x001cb7e0
MOV dword ptr [RBP + -0x70],EAX
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x68],RAX
MOV dword ptr [RBP + -0x6c],0x0
LAB_001cb682:
MOV EAX,dword ptr [RBP + -0x6c]
CMP EAX,dword ptr [RBP + -0x70]
JNC 0x001cb701
CMP dword ptr [RBP + -0x6c],0x0
JNZ 0x001cb69b
MOV EAX,dword ptr [RBP + -0x60]
MOV dword ptr [RBP + -0x84],EAX
JMP 0x001cb6a4
LAB_001cb69b:
MOV EAX,dword ptr [RBP + 0x10]
MOV dword ptr [RBP + -0x84],EAX
LAB_001cb6a4:
MOV EAX,dword ptr [RBP + -0x84]
MOV dword ptr [RBP + -0x78],EAX
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX + 0xb8]
MOV RAX,qword ptr [RAX + 0x30]
MOV RDI,qword ptr [RBP + -0x40]
MOV ECX,dword ptr [RBP + -0x6c]
MOVZX ECX,byte ptr [RBP + RCX*0x1 + -0x30]
MOV ESI,ECX
MOV RDX,qword ptr [RBP + -0x50]
MOV RCX,qword ptr [RBP + -0x58]
CALL RAX
CMP EAX,dword ptr [RBP + -0x78]
JZ 0x001cb6e6
JMP 0x001cb6db
LAB_001cb6db:
JMP 0x001cb6dd
LAB_001cb6dd:
MOV dword ptr [RBP + -0x34],0x0
JMP 0x001cb70f
LAB_001cb6e6:
MOV ECX,dword ptr [RBP + -0x78]
MOV RAX,qword ptr [RBP + -0x50]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x50],RAX
MOV EAX,dword ptr [RBP + -0x6c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x6c],EAX
JMP 0x001cb682
LAB_001cb701:
MOV RAX,qword ptr [RBP + -0x50]
MOV RCX,qword ptr [RBP + -0x68]
SUB RAX,RCX
MOV dword ptr [RBP + -0x34],EAX
LAB_001cb70f:
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x88],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001cb739
MOV EAX,dword ptr [RBP + -0x88]
ADD RSP,0x90
POP RBP
RET
LAB_001cb739:
CALL 0x001283b0
|
int my_wc_to_printable_ex
(long param_1,int8 param_2,long param_3,ulong param_4,int4 param_5,
uint param_6,uint param_7)
{
char cVar1;
uint uVar2;
uint uVar3;
long in_FS_OFFSET;
uint local_8c;
uint local_74;
long local_58;
int local_3c;
int1 local_38 [40];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
cVar1 = my_is_printable(param_2);
if ((cVar1 == '\0') ||
(local_3c = (**(code **)(*(long *)(param_1 + 0xb8) + 0x30))(param_1,param_2,param_3,param_4),
local_3c < 1)) {
uVar2 = my_printable_length(param_6,param_7);
if (param_4 < param_3 + (ulong)uVar2) {
local_3c = my_printable_length(param_6,param_7);
local_3c = -100 - local_3c;
}
else if ((*(uint *)(param_1 + 0xc) & 0x2000) == 0) {
local_3c = to_printable_8bit(param_3,param_2,param_5);
}
else {
uVar2 = to_printable_8bit(local_38,param_2,param_5);
local_58 = param_3;
for (local_74 = 0; local_74 < uVar2; local_74 = local_74 + 1) {
local_8c = param_6;
if (local_74 != 0) {
local_8c = param_7;
}
uVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x30))
(param_1,local_38[local_74],local_58,param_4);
if (uVar3 != local_8c) {
local_3c = 0;
goto LAB_001cb70f;
}
local_58 = local_58 + (ulong)local_8c;
}
local_3c = (int)local_58 - (int)param_3;
}
}
LAB_001cb70f:
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_3c;
}
|
|
16,290
|
ma_encrypt
|
eloqsql/storage/maria/ma_crypt.c
|
static int ma_encrypt(MARIA_SHARE *share, MARIA_CRYPT_DATA *crypt_data,
const uchar *src, uchar *dst, uint size,
uint pageno, LSN lsn,
uint *key_version)
{
int rc;
uint32 dstlen= 0; /* Must be set because of error message */
*key_version = encryption_key_get_latest_version(crypt_data->scheme.key_id);
if (*key_version == ENCRYPTION_KEY_VERSION_INVALID)
{
/*
We use this error for both encryption and decryption, as in normal
cases it should be impossible to get an error here.
*/
my_errno= HA_ERR_DECRYPTION_FAILED;
my_printf_error(HA_ERR_DECRYPTION_FAILED,
"Unknown key id %u for %s. Can't continue!",
MYF(ME_FATAL|ME_ERROR_LOG),
crypt_data->scheme.key_id,
share->open_file_name.str);
return 1;
}
rc= encryption_scheme_encrypt(src, size, dst, &dstlen,
&crypt_data->scheme, *key_version,
crypt_data->space, pageno, lsn);
/* The following can only fail if the encryption key is wrong */
DBUG_ASSERT(!my_assert_on_error || rc == MY_AES_OK);
DBUG_ASSERT(!my_assert_on_error || dstlen == size);
if (! (rc == MY_AES_OK && dstlen == size))
{
my_errno= HA_ERR_DECRYPTION_FAILED;
my_printf_error(HA_ERR_DECRYPTION_FAILED,
"failed to encrypt '%s' rc: %d dstlen: %u size: %u\n",
MYF(ME_FATAL|ME_ERROR_LOG),
share->open_file_name.str, rc, dstlen, size);
return 1;
}
return 0;
}
|
O0
|
c
|
ma_encrypt:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movl %r9d, -0x30(%rbp)
movl $0x0, -0x38(%rbp)
leaq 0x25d4da(%rip), %rax # 0x2bc010
movq (%rax), %rax
movq -0x18(%rbp), %rcx
movl 0x50(%rcx), %edi
callq *%rax
movl %eax, %ecx
movq 0x18(%rbp), %rax
movl %ecx, (%rax)
movq 0x18(%rbp), %rax
cmpl $-0x1, (%rax)
jne 0x5eb94
callq 0xf55f0
movl $0xc0, (%rax)
movq -0x18(%rbp), %rax
movl 0x50(%rax), %ecx
movq -0x10(%rbp), %rax
movq 0x5e0(%rax), %r8
movl $0xc0, %edi
leaq 0xf2bb5(%rip), %rsi # 0x151731
movl $0x1040, %edx # imm = 0x1040
movb $0x0, %al
callq 0xef290
movl $0x1, -0x4(%rbp)
jmp 0x5ec34
movq -0x20(%rbp), %rdi
movl -0x2c(%rbp), %esi
movq -0x28(%rbp), %rdx
movq -0x18(%rbp), %r8
movq 0x18(%rbp), %rax
movl (%rax), %r9d
movq -0x18(%rbp), %rax
movl 0x60(%rax), %r11d
movl -0x30(%rbp), %r10d
movq 0x10(%rbp), %rax
leaq -0x38(%rbp), %rcx
movl %r11d, (%rsp)
movl %r10d, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x2b1a0
movl %eax, -0x34(%rbp)
jmp 0x5ebd6
jmp 0x5ebd8
jmp 0x5ebda
cmpl $0x0, -0x34(%rbp)
jne 0x5ebe8
movl -0x38(%rbp), %eax
cmpl -0x2c(%rbp), %eax
je 0x5ec2d
callq 0xf55f0
movl $0xc0, (%rax)
movq -0x10(%rbp), %rax
movq 0x5e0(%rax), %rcx
movl -0x34(%rbp), %r8d
movl -0x38(%rbp), %r9d
movl -0x2c(%rbp), %eax
movl $0xc0, %edi
leaq 0xf2b46(%rip), %rsi # 0x15175b
movl $0x1040, %edx # imm = 0x1040
movl %eax, (%rsp)
movb $0x0, %al
callq 0xef290
movl $0x1, -0x4(%rbp)
jmp 0x5ec34
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)
|
ma_encrypt:
push rbp
mov rbp, rsp
sub rsp, 50h
mov rax, [rbp+arg_8]
mov rax, [rbp+arg_0]
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
mov [rbp+var_30], r9d
mov [rbp+var_38], 0
lea rax, encryption_handler
mov rax, [rax]
mov rcx, [rbp+var_18]
mov edi, [rcx+50h]
call rax
mov ecx, eax
mov rax, [rbp+arg_8]
mov [rax], ecx
mov rax, [rbp+arg_8]
cmp dword ptr [rax], 0FFFFFFFFh
jnz short loc_5EB94
call _my_thread_var
mov dword ptr [rax], 0C0h
mov rax, [rbp+var_18]
mov ecx, [rax+50h]
mov rax, [rbp+var_10]
mov r8, [rax+5E0h]
mov edi, 0C0h
lea rsi, aUnknownKeyIdUF; "Unknown key id %u for %s. Can't continu"...
mov edx, 1040h
mov al, 0
call my_printf_error
mov [rbp+var_4], 1
jmp loc_5EC34
loc_5EB94:
mov rdi, [rbp+var_20]
mov esi, [rbp+var_2C]
mov rdx, [rbp+var_28]
mov r8, [rbp+var_18]
mov rax, [rbp+arg_8]
mov r9d, [rax]
mov rax, [rbp+var_18]
mov r11d, [rax+60h]
mov r10d, [rbp+var_30]
mov rax, [rbp+arg_0]
lea rcx, [rbp+var_38]
mov [rsp+50h+var_50], r11d
mov [rsp+50h+var_48], r10d
mov [rsp+50h+var_40], rax
call encryption_scheme_encrypt
mov [rbp+var_34], eax
jmp short $+2
loc_5EBD6:
jmp short $+2
loc_5EBD8:
jmp short $+2
loc_5EBDA:
cmp [rbp+var_34], 0
jnz short loc_5EBE8
mov eax, [rbp+var_38]
cmp eax, [rbp+var_2C]
jz short loc_5EC2D
loc_5EBE8:
call _my_thread_var
mov dword ptr [rax], 0C0h
mov rax, [rbp+var_10]
mov rcx, [rax+5E0h]
mov r8d, [rbp+var_34]
mov r9d, [rbp+var_38]
mov eax, [rbp+var_2C]
mov edi, 0C0h
lea rsi, aFailedToEncryp; "failed to encrypt '%s' rc: %d dstlen:"...
mov edx, 1040h
mov [rsp+50h+var_50], eax
mov al, 0
call my_printf_error
mov [rbp+var_4], 1
jmp short loc_5EC34
loc_5EC2D:
mov [rbp+var_4], 0
loc_5EC34:
mov eax, [rbp+var_4]
add rsp, 50h
pop rbp
retn
|
long long ma_encrypt(
long long a1,
long long a2,
double a3,
long long a4,
long long a5,
int a6,
long long a7,
long long a8,
_DWORD *a9)
{
int v9; // r9d
int v11; // [rsp+1Ch] [rbp-34h]
*a9 = encryption_handler();
if ( *a9 == -1 )
{
*(_DWORD *)my_thread_var(a3) = 192;
my_printf_error(
192,
(unsigned int)"Unknown key id %u for %s. Can't continue!",
4160,
*(_DWORD *)(a2 + 80),
*(_QWORD *)(a1 + 1504),
v9);
return 1;
}
else
{
v11 = encryption_scheme_encrypt();
if ( v11 || a6 )
{
*(_DWORD *)my_thread_var(a3) = 192;
my_printf_error(
192,
(unsigned int)"failed to encrypt '%s' rc: %d dstlen: %u size: %u\n",
4160,
*(_QWORD *)(a1 + 1504),
v11,
0);
return 1;
}
else
{
return 0;
}
}
}
|
ma_encrypt:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV RAX,qword ptr [RBP + 0x18]
MOV RAX,qword ptr [RBP + 0x10]
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
MOV dword ptr [RBP + -0x30],R9D
MOV dword ptr [RBP + -0x38],0x0
LEA RAX,[0x3bc010]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x18]
MOV EDI,dword ptr [RCX + 0x50]
CALL RAX
MOV ECX,EAX
MOV RAX,qword ptr [RBP + 0x18]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + 0x18]
CMP dword ptr [RAX],-0x1
JNZ 0x0015eb94
CALL 0x001f55f0
MOV dword ptr [RAX],0xc0
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RAX + 0x50]
MOV RAX,qword ptr [RBP + -0x10]
MOV R8,qword ptr [RAX + 0x5e0]
MOV EDI,0xc0
LEA RSI,[0x251731]
MOV EDX,0x1040
MOV AL,0x0
CALL 0x001ef290
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0015ec34
LAB_0015eb94:
MOV RDI,qword ptr [RBP + -0x20]
MOV ESI,dword ptr [RBP + -0x2c]
MOV RDX,qword ptr [RBP + -0x28]
MOV R8,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + 0x18]
MOV R9D,dword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x18]
MOV R11D,dword ptr [RAX + 0x60]
MOV R10D,dword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + 0x10]
LEA RCX,[RBP + -0x38]
MOV dword ptr [RSP],R11D
MOV dword ptr [RSP + 0x8],R10D
MOV qword ptr [RSP + 0x10],RAX
CALL 0x0012b1a0
MOV dword ptr [RBP + -0x34],EAX
JMP 0x0015ebd6
LAB_0015ebd6:
JMP 0x0015ebd8
LAB_0015ebd8:
JMP 0x0015ebda
LAB_0015ebda:
CMP dword ptr [RBP + -0x34],0x0
JNZ 0x0015ebe8
MOV EAX,dword ptr [RBP + -0x38]
CMP EAX,dword ptr [RBP + -0x2c]
JZ 0x0015ec2d
LAB_0015ebe8:
CALL 0x001f55f0
MOV dword ptr [RAX],0xc0
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x5e0]
MOV R8D,dword ptr [RBP + -0x34]
MOV R9D,dword ptr [RBP + -0x38]
MOV EAX,dword ptr [RBP + -0x2c]
MOV EDI,0xc0
LEA RSI,[0x25175b]
MOV EDX,0x1040
MOV dword ptr [RSP],EAX
MOV AL,0x0
CALL 0x001ef290
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0015ec34
LAB_0015ec2d:
MOV dword ptr [RBP + -0x4],0x0
LAB_0015ec34:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x50
POP RBP
RET
|
int4
ma_encrypt(long param_1,long param_2,int8 param_3,int8 param_4,int param_5,
int4 param_6,int8 param_7,int *param_8)
{
int iVar1;
int4 *puVar2;
int local_40;
int local_3c;
int4 local_38;
int local_34;
int8 local_30;
int8 local_28;
long local_20;
long local_18;
int4 local_c;
local_40 = 0;
local_38 = param_6;
local_34 = param_5;
local_30 = param_4;
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
iVar1 = (*(code *)encryption_handler)(*(int4 *)(param_2 + 0x50));
*param_8 = iVar1;
if (*param_8 == -1) {
puVar2 = (int4 *)_my_thread_var();
*puVar2 = 0xc0;
my_printf_error(0xc0,"Unknown key id %u for %s. Can\'t continue!",0x1040,
*(int4 *)(local_20 + 0x50),*(int8 *)(local_18 + 0x5e0));
local_c = 1;
}
else {
local_3c = encryption_scheme_encrypt
(local_28,local_34,local_30,&local_40,local_20,*param_8,
*(int4 *)(local_20 + 0x60),local_38,param_7);
if ((local_3c == 0) && (local_40 == local_34)) {
local_c = 0;
}
else {
puVar2 = (int4 *)_my_thread_var();
*puVar2 = 0xc0;
my_printf_error(0xc0,"failed to encrypt \'%s\' rc: %d dstlen: %u size: %u\n",0x1040,
*(int8 *)(local_18 + 0x5e0),local_3c,local_40,local_34);
local_c = 1;
}
}
return local_c;
}
|
|
16,291
|
ma_encrypt
|
eloqsql/storage/maria/ma_crypt.c
|
static int ma_encrypt(MARIA_SHARE *share, MARIA_CRYPT_DATA *crypt_data,
const uchar *src, uchar *dst, uint size,
uint pageno, LSN lsn,
uint *key_version)
{
int rc;
uint32 dstlen= 0; /* Must be set because of error message */
*key_version = encryption_key_get_latest_version(crypt_data->scheme.key_id);
if (*key_version == ENCRYPTION_KEY_VERSION_INVALID)
{
/*
We use this error for both encryption and decryption, as in normal
cases it should be impossible to get an error here.
*/
my_errno= HA_ERR_DECRYPTION_FAILED;
my_printf_error(HA_ERR_DECRYPTION_FAILED,
"Unknown key id %u for %s. Can't continue!",
MYF(ME_FATAL|ME_ERROR_LOG),
crypt_data->scheme.key_id,
share->open_file_name.str);
return 1;
}
rc= encryption_scheme_encrypt(src, size, dst, &dstlen,
&crypt_data->scheme, *key_version,
crypt_data->space, pageno, lsn);
/* The following can only fail if the encryption key is wrong */
DBUG_ASSERT(!my_assert_on_error || rc == MY_AES_OK);
DBUG_ASSERT(!my_assert_on_error || dstlen == size);
if (! (rc == MY_AES_OK && dstlen == size))
{
my_errno= HA_ERR_DECRYPTION_FAILED;
my_printf_error(HA_ERR_DECRYPTION_FAILED,
"failed to encrypt '%s' rc: %d dstlen: %u size: %u\n",
MYF(ME_FATAL|ME_ERROR_LOG),
share->open_file_name.str, rc, dstlen, size);
return 1;
}
return 0;
}
|
O3
|
c
|
ma_encrypt:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, -0x40(%rbp)
movl %r8d, %ebx
movq %rcx, %r13
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %r15
movl $0x0, -0x2c(%rbp)
leaq 0x3320cb(%rip), %rax # 0x383010
movl 0x50(%rsi), %edi
callq *(%rax)
movq 0x18(%rbp), %rcx
movl %eax, (%rcx)
cmpl $-0x1, %eax
je 0x50fd3
movq %r15, -0x38(%rbp)
movl 0x60(%r12), %r10d
subq $0x8, %rsp
leaq -0x2c(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
movq %r13, %rdx
movq %r12, %r8
movl %eax, %r9d
pushq 0x10(%rbp)
pushq -0x40(%rbp)
pushq %r10
callq 0x30722
addq $0x20, %rsp
movl %eax, %r15d
testl %eax, %eax
jne 0x50f93
xorl %eax, %eax
cmpl %ebx, -0x2c(%rbp)
je 0x51007
callq 0xa13e6
movl $0xc0, (%rax)
movq -0x38(%rbp), %rax
movq 0x5e0(%rax), %rcx
movl -0x2c(%rbp), %r9d
subq $0x8, %rsp
leaq 0x88913(%rip), %rsi # 0xd98cb
movl $0x1040, %edx # imm = 0x1040
movl $0xc0, %edi
movl %r15d, %r8d
xorl %eax, %eax
pushq %rbx
callq 0x9dc21
addq $0x10, %rsp
jmp 0x51002
callq 0xa13e6
movl $0xc0, (%rax)
movl 0x50(%r12), %ecx
movq 0x5e0(%r15), %r8
leaq 0x888b0(%rip), %rsi # 0xd98a1
movl $0x1040, %edx # imm = 0x1040
movl $0xc0, %edi
xorl %eax, %eax
callq 0x9dc21
movl $0x1, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
|
ma_encrypt:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rbp+var_40], r9
mov ebx, r8d
mov r13, rcx
mov r14, rdx
mov r12, rsi
mov r15, rdi
mov [rbp+var_2C], 0
lea rax, encryption_handler
mov edi, [rsi+50h]
call qword ptr [rax]
mov rcx, [rbp+arg_8]
mov [rcx], eax
cmp eax, 0FFFFFFFFh
jz short loc_50FD3
mov [rbp+var_38], r15
mov r10d, [r12+60h]
sub rsp, 8
lea rcx, [rbp+var_2C]
mov rdi, r14
mov esi, ebx
mov rdx, r13
mov r8, r12
mov r9d, eax
push [rbp+arg_0]
push [rbp+var_40]
push r10
call encryption_scheme_encrypt
add rsp, 20h
mov r15d, eax
test eax, eax
jnz short loc_50F93
xor eax, eax
cmp [rbp+var_2C], ebx
jz short loc_51007
loc_50F93:
call _my_thread_var
mov dword ptr [rax], 0C0h
mov rax, [rbp+var_38]
mov rcx, [rax+5E0h]
mov r9d, [rbp+var_2C]
sub rsp, 8
lea rsi, aFailedToEncryp; "failed to encrypt '%s' rc: %d dstlen:"...
mov edx, 1040h
mov edi, 0C0h
mov r8d, r15d
xor eax, eax
push rbx
call my_printf_error
add rsp, 10h
jmp short loc_51002
loc_50FD3:
call _my_thread_var
mov dword ptr [rax], 0C0h
mov ecx, [r12+50h]
mov r8, [r15+5E0h]
lea rsi, aUnknownKeyIdUF; "Unknown key id %u for %s. Can't continu"...
mov edx, 1040h
mov edi, 0C0h
xor eax, eax
call my_printf_error
loc_51002:
mov eax, 1
loc_51007:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long ma_encrypt(
long long a1,
long long a2,
long long a3,
long long a4,
unsigned int a5,
long long a6,
long long a7,
unsigned int *a8)
{
long long v12; // rdi
unsigned int v13; // eax
int v14; // r15d
long long result; // rax
int v16; // r9d
long long v18; // [rsp+8h] [rbp-38h]
_DWORD v19[11]; // [rsp+14h] [rbp-2Ch] BYREF
v19[0] = 0;
v12 = *(unsigned int *)(a2 + 80);
v13 = encryption_handler();
*a8 = v13;
if ( v13 == -1 )
{
*(_DWORD *)my_thread_var(v12) = 192;
my_printf_error(
192,
(unsigned int)"Unknown key id %u for %s. Can't continue!",
4160,
*(_DWORD *)(a2 + 80),
*(_QWORD *)(a1 + 1504),
v16);
return 1LL;
}
v18 = a1;
v14 = encryption_scheme_encrypt(a3, a5, a4, v19, a2, v13, *(unsigned int *)(a2 + 96), a6, a7);
if ( v14 || (result = 0LL, v19[0] != a5) )
{
*(_DWORD *)my_thread_var(a3) = 192;
my_printf_error(
192,
(unsigned int)"failed to encrypt '%s' rc: %d dstlen: %u size: %u\n",
4160,
*(_QWORD *)(v18 + 1504),
v14,
v19[0]);
return 1LL;
}
return result;
}
|
ma_encrypt:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV qword ptr [RBP + -0x40],R9
MOV EBX,R8D
MOV R13,RCX
MOV R14,RDX
MOV R12,RSI
MOV R15,RDI
MOV dword ptr [RBP + -0x2c],0x0
LEA RAX,[0x483010]
MOV EDI,dword ptr [RSI + 0x50]
CALL qword ptr [RAX]
MOV RCX,qword ptr [RBP + 0x18]
MOV dword ptr [RCX],EAX
CMP EAX,-0x1
JZ 0x00150fd3
MOV qword ptr [RBP + -0x38],R15
MOV R10D,dword ptr [R12 + 0x60]
SUB RSP,0x8
LEA RCX,[RBP + -0x2c]
MOV RDI,R14
MOV ESI,EBX
MOV RDX,R13
MOV R8,R12
MOV R9D,EAX
PUSH qword ptr [RBP + 0x10]
PUSH qword ptr [RBP + -0x40]
PUSH R10
CALL 0x00130722
ADD RSP,0x20
MOV R15D,EAX
TEST EAX,EAX
JNZ 0x00150f93
XOR EAX,EAX
CMP dword ptr [RBP + -0x2c],EBX
JZ 0x00151007
LAB_00150f93:
CALL 0x001a13e6
MOV dword ptr [RAX],0xc0
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RAX + 0x5e0]
MOV R9D,dword ptr [RBP + -0x2c]
SUB RSP,0x8
LEA RSI,[0x1d98cb]
MOV EDX,0x1040
MOV EDI,0xc0
MOV R8D,R15D
XOR EAX,EAX
PUSH RBX
CALL 0x0019dc21
ADD RSP,0x10
JMP 0x00151002
LAB_00150fd3:
CALL 0x001a13e6
MOV dword ptr [RAX],0xc0
MOV ECX,dword ptr [R12 + 0x50]
MOV R8,qword ptr [R15 + 0x5e0]
LEA RSI,[0x1d98a1]
MOV EDX,0x1040
MOV EDI,0xc0
XOR EAX,EAX
CALL 0x0019dc21
LAB_00151002:
MOV EAX,0x1
LAB_00151007:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8
ma_encrypt(long param_1,long param_2,int8 param_3,int8 param_4,int param_5,
int8 param_6,int8 param_7,int *param_8)
{
int iVar1;
int4 *puVar2;
int local_34;
local_34 = 0;
iVar1 = (*(code *)encryption_handler)(*(int4 *)(param_2 + 0x50));
*param_8 = iVar1;
if (iVar1 == -1) {
puVar2 = (int4 *)_my_thread_var();
*puVar2 = 0xc0;
my_printf_error(0xc0,"Unknown key id %u for %s. Can\'t continue!",0x1040,
*(int4 *)(param_2 + 0x50),*(int8 *)(param_1 + 0x5e0));
}
else {
iVar1 = encryption_scheme_encrypt
(param_3,param_5,param_4,&local_34,param_2,iVar1,
*(int4 *)(param_2 + 0x60),param_6,param_7);
if ((iVar1 == 0) && (local_34 == param_5)) {
return 0;
}
puVar2 = (int4 *)_my_thread_var();
*puVar2 = 0xc0;
my_printf_error(0xc0,"failed to encrypt \'%s\' rc: %d dstlen: %u size: %u\n",0x1040,
*(int8 *)(param_1 + 0x5e0),iVar1,local_34,param_5);
}
return 1;
}
|
|
16,292
|
my_weight_utf32_general_ci
|
eloqsql/strings/ctype-ucs2.c
|
static inline int my_weight_utf32_general_ci(uchar b0, uchar b1,
uchar b2, uchar b3)
{
my_wc_t wc= MY_UTF32_WC4(b0, b1, b2, b3);
if (wc <= 0xFFFF)
{
MY_UNICASE_CHARACTER *page= my_unicase_default_pages[wc >> 8];
return (int) (page ? page[wc & 0xFF].sort : wc);
}
return MY_CS_REPLACEMENT_CHARACTER;
}
|
O0
|
c
|
my_weight_utf32_general_ci:
pushq %rbp
movq %rsp, %rbp
movb %cl, %al
movb %dl, %cl
movb %sil, %dl
movb %dil, %sil
movb %sil, -0x5(%rbp)
movb %dl, -0x6(%rbp)
movb %cl, -0x7(%rbp)
movb %al, -0x8(%rbp)
movzbl -0x5(%rbp), %eax
shlq $0x18, %rax
movzbl -0x6(%rbp), %ecx
shll $0x10, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movzbl -0x7(%rbp), %ecx
shll $0x8, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movzbl -0x8(%rbp), %ecx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
cmpq $0xffff, -0x10(%rbp) # imm = 0xFFFF
ja 0x60b60
movq -0x10(%rbp), %rcx
shrq $0x8, %rcx
leaq 0x309b6f(%rip), %rax # 0x36a690
movq (%rax,%rcx,8), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x60b4f
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
andq $0xff, %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movq %rax, -0x20(%rbp)
jmp 0x60b57
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movl %eax, -0x4(%rbp)
jmp 0x60b67
movl $0xfffd, -0x4(%rbp) # imm = 0xFFFD
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax)
|
my_weight_utf32_general_ci:
push rbp
mov rbp, rsp
mov al, cl
mov cl, dl
mov dl, sil
mov sil, dil
mov [rbp+var_5], sil
mov [rbp+var_6], dl
mov [rbp+var_7], cl
mov [rbp+var_8], al
movzx eax, [rbp+var_5]
shl rax, 18h
movzx ecx, [rbp+var_6]
shl ecx, 10h
movsxd rcx, ecx
add rax, rcx
movzx ecx, [rbp+var_7]
shl ecx, 8
movsxd rcx, ecx
add rax, rcx
movzx ecx, [rbp+var_8]
add rax, rcx
mov [rbp+var_10], rax
cmp [rbp+var_10], 0FFFFh
ja short loc_60B60
mov rcx, [rbp+var_10]
shr rcx, 8
lea rax, my_unicase_default_pages
mov rax, [rax+rcx*8]
mov [rbp+var_18], rax
cmp [rbp+var_18], 0
jz short loc_60B4F
mov rax, [rbp+var_18]
mov rcx, [rbp+var_10]
and rcx, 0FFh
imul rcx, 0Ch
add rax, rcx
mov eax, [rax+8]
mov [rbp+var_20], rax
jmp short loc_60B57
loc_60B4F:
mov rax, [rbp+var_10]
mov [rbp+var_20], rax
loc_60B57:
mov rax, [rbp+var_20]
mov [rbp+var_4], eax
jmp short loc_60B67
loc_60B60:
mov [rbp+var_4], 0FFFDh
loc_60B67:
mov eax, [rbp+var_4]
pop rbp
retn
|
long long my_weight_utf32_general_ci(
unsigned __int8 a1,
unsigned __int8 a2,
unsigned __int8 a3,
unsigned __int8 a4)
{
long long v6; // [rsp+8h] [rbp-18h]
unsigned long long v7; // [rsp+10h] [rbp-10h]
v7 = a4 + (a3 << 8) + (a2 << 16) + ((unsigned long long)a1 << 24);
if ( v7 > 0xFFFF )
{
return 65533;
}
else
{
v6 = (long long)*(&my_unicase_default_pages + (v7 >> 8));
if ( v6 )
return *(unsigned int *)(12LL * a4 + v6 + 8);
else
return (unsigned int)(a4 + (a3 << 8) + (a2 << 16) + (a1 << 24));
}
}
|
my_weight_utf32_general_ci:
PUSH RBP
MOV RBP,RSP
MOV AL,CL
MOV CL,DL
MOV DL,SIL
MOV SIL,DIL
MOV byte ptr [RBP + -0x5],SIL
MOV byte ptr [RBP + -0x6],DL
MOV byte ptr [RBP + -0x7],CL
MOV byte ptr [RBP + -0x8],AL
MOVZX EAX,byte ptr [RBP + -0x5]
SHL RAX,0x18
MOVZX ECX,byte ptr [RBP + -0x6]
SHL ECX,0x10
MOVSXD RCX,ECX
ADD RAX,RCX
MOVZX ECX,byte ptr [RBP + -0x7]
SHL ECX,0x8
MOVSXD RCX,ECX
ADD RAX,RCX
MOVZX ECX,byte ptr [RBP + -0x8]
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
CMP qword ptr [RBP + -0x10],0xffff
JA 0x00160b60
MOV RCX,qword ptr [RBP + -0x10]
SHR RCX,0x8
LEA RAX,[0x46a690]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x18],RAX
CMP qword ptr [RBP + -0x18],0x0
JZ 0x00160b4f
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
AND RCX,0xff
IMUL RCX,RCX,0xc
ADD RAX,RCX
MOV EAX,dword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x20],RAX
JMP 0x00160b57
LAB_00160b4f:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x20],RAX
LAB_00160b57:
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00160b67
LAB_00160b60:
MOV dword ptr [RBP + -0x4],0xfffd
LAB_00160b67:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4 my_weight_utf32_general_ci(byte param_1,byte param_2,byte param_3,byte param_4)
{
ulong local_28;
int4 local_c;
local_28 = (ulong)param_1 * 0x1000000 + (long)(int)((uint)param_2 << 0x10) +
(long)(int)((uint)param_3 << 8) + (ulong)param_4;
if (local_28 < 0x10000) {
if (*(long *)(my_unicase_default_pages + (local_28 >> 8) * 8) != 0) {
local_28 = (ulong)*(uint *)(*(long *)(my_unicase_default_pages + (local_28 >> 8) * 8) +
(local_28 & 0xff) * 0xc + 8);
}
local_c = (int4)local_28;
}
else {
local_c = 0xfffd;
}
return local_c;
}
|
|
16,293
|
google::protobuf::StrCat[abi:cxx11](google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/stubs/strutil.cc
|
std::string StrCat(const AlphaNum &a, const AlphaNum &b, const AlphaNum &c) {
std::string result;
result.resize(a.size() + b.size() + c.size());
char *const begin = &*result.begin();
char *out = Append2(begin, a, b);
out = Append1(out, c);
GOOGLE_DCHECK_EQ(out, begin + result.size());
return result;
}
|
O3
|
cpp
|
google::protobuf::StrCat[abi:cxx11](google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq 0x8(%rdx), %rsi
addq 0x8(%r13), %rsi
addq 0x8(%rcx), %rsi
xorl %edx, %edx
callq 0xf0f0
movq (%rbx), %r12
movq 0x8(%r13), %rdx
testq %rdx, %rdx
je 0x1999d
movq (%r13), %rsi
movq %r12, %rdi
callq 0xf2f0
addq 0x8(%r13), %r12
movq 0x8(%r15), %rdx
testq %rdx, %rdx
je 0x199b5
movq (%r15), %rsi
movq %r12, %rdi
callq 0xf2f0
addq 0x8(%r15), %r12
movq 0x8(%r14), %rdx
testq %rdx, %rdx
je 0x199c9
movq (%r14), %rsi
movq %r12, %rdi
callq 0xf2f0
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x199e6
callq 0xf330
movq %r14, %rdi
callq 0xf570
|
_ZN6google8protobuf6StrCatB5cxx11ERKNS0_7strings8AlphaNumES4_S4_:
push r15
push r14
push r13
push r12
push rbx
mov r14, rcx
mov r15, rdx
mov r13, rsi
mov rbx, rdi
lea r12, [rdi+10h]
mov [rdi], r12
mov qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov rsi, [rdx+8]
add rsi, [r13+8]
add rsi, [rcx+8]
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc; std::string::resize(ulong,char)
mov r12, [rbx]
mov rdx, [r13+8]
test rdx, rdx
jz short loc_1999D
mov rsi, [r13+0]
mov rdi, r12
call _memcpy
add r12, [r13+8]
loc_1999D:
mov rdx, [r15+8]
test rdx, rdx
jz short loc_199B5
mov rsi, [r15]
mov rdi, r12
call _memcpy
add r12, [r15+8]
loc_199B5:
mov rdx, [r14+8]
test rdx, rdx
jz short loc_199C9
mov rsi, [r14]
mov rdi, r12
call _memcpy
loc_199C9:
mov rax, rbx
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov r14, rax
mov rdi, [rbx]; void *
cmp rdi, r12
jz short loc_199E6
call __ZdlPv; operator delete(void *)
loc_199E6:
mov rdi, r14
call __Unwind_Resume
|
long long * google::protobuf::StrCat[abi:cxx11](long long *a1, long long a2, long long a3, long long a4)
{
long long v6; // r12
*a1 = (long long)(a1 + 2);
a1[1] = 0LL;
*((_BYTE *)a1 + 16) = 0;
std::string::resize(a1, *(_QWORD *)(a4 + 8) + *(_QWORD *)(a2 + 8) + *(_QWORD *)(a3 + 8), 0LL);
v6 = *a1;
if ( *(_QWORD *)(a2 + 8) )
{
memcpy(*a1);
v6 += *(_QWORD *)(a2 + 8);
}
if ( *(_QWORD *)(a3 + 8) )
{
memcpy(v6);
v6 += *(_QWORD *)(a3 + 8);
}
if ( *(_QWORD *)(a4 + 8) )
memcpy(v6);
return a1;
}
|
StrCat[abi:cxx11]:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV R14,RCX
MOV R15,RDX
MOV R13,RSI
MOV RBX,RDI
LEA R12,[RDI + 0x10]
MOV qword ptr [RDI],R12
MOV qword ptr [RDI + 0x8],0x0
MOV byte ptr [RDI + 0x10],0x0
MOV RSI,qword ptr [RDX + 0x8]
ADD RSI,qword ptr [R13 + 0x8]
ADD RSI,qword ptr [RCX + 0x8]
LAB_0011997a:
XOR EDX,EDX
CALL 0x0010f0f0
LAB_00119981:
MOV R12,qword ptr [RBX]
MOV RDX,qword ptr [R13 + 0x8]
TEST RDX,RDX
JZ 0x0011999d
MOV RSI,qword ptr [R13]
MOV RDI,R12
CALL 0x0010f2f0
ADD R12,qword ptr [R13 + 0x8]
LAB_0011999d:
MOV RDX,qword ptr [R15 + 0x8]
TEST RDX,RDX
JZ 0x001199b5
MOV RSI,qword ptr [R15]
MOV RDI,R12
CALL 0x0010f2f0
ADD R12,qword ptr [R15 + 0x8]
LAB_001199b5:
MOV RDX,qword ptr [R14 + 0x8]
TEST RDX,RDX
JZ 0x001199c9
MOV RSI,qword ptr [R14]
MOV RDI,R12
CALL 0x0010f2f0
LAB_001199c9:
MOV RAX,RBX
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* google::protobuf::StrCat[abi:cxx11](google::protobuf::strings::AlphaNum const&,
google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&) */
protobuf * __thiscall
google::protobuf::StrCat_abi_cxx11_
(protobuf *this,AlphaNum *param_1,AlphaNum *param_2,AlphaNum *param_3)
{
void *__dest;
*(protobuf **)this = this + 0x10;
*(int8 *)(this + 8) = 0;
this[0x10] = (protobuf)0x0;
/* try { // try from 0011997a to 00119980 has its CatchHandler @ 001199d6 */
std::__cxx11::string::resize
((ulong)this,
(char)*(int8 *)(param_2 + 8) + (char)*(int8 *)(param_1 + 8) +
(char)*(int8 *)(param_3 + 8));
__dest = *(void **)this;
if (*(size_t *)(param_1 + 8) != 0) {
memcpy(__dest,*(void **)param_1,*(size_t *)(param_1 + 8));
__dest = (void *)((long)__dest + *(long *)(param_1 + 8));
}
if (*(size_t *)(param_2 + 8) != 0) {
memcpy(__dest,*(void **)param_2,*(size_t *)(param_2 + 8));
__dest = (void *)((long)__dest + *(long *)(param_2 + 8));
}
if (*(size_t *)(param_3 + 8) != 0) {
memcpy(__dest,*(void **)param_3,*(size_t *)(param_3 + 8));
}
return this;
}
|
|
16,294
|
CLI::App::_parse(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&&)
|
MikePodsytnik[P]TCRtrie/build_O0/_deps/cli11-src/include/CLI/impl/App_inl.hpp
|
CLI11_INLINE void App::_parse(std::vector<std::string> &&args) {
// this can only be called by the top level in which case parent == nullptr by definition
// operation is simplified
increment_parsed();
_trigger_pre_parse(args.size());
bool positional_only = false;
while(!args.empty()) {
_parse_single(args, positional_only);
}
_process();
// Throw error if any items are left over (depending on settings)
_process_extras();
}
|
O0
|
cpp
|
CLI::App::_parse(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&&):
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x20(%rbp)
callq 0x344a0
movq -0x10(%rbp), %rdi
callq 0x18430
movq -0x20(%rbp), %rdi
movq %rax, %rsi
callq 0x34550
movb $0x0, -0x11(%rbp)
movq -0x10(%rbp), %rdi
callq 0xe8d0
xorb $-0x1, %al
testb $0x1, %al
jne 0x33a37
jmp 0x33a4a
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x11(%rbp), %rdx
callq 0x34640
jmp 0x33a26
movq -0x20(%rbp), %rdi
callq 0x348f0
movq -0x20(%rbp), %rdi
callq 0x349b0
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
|
_ZN3CLI3App6_parseEOSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rdi, [rbp+var_8]; this
mov [rbp+var_20], rdi
call _ZN3CLI3App16increment_parsedEv; CLI::App::increment_parsed(void)
mov rdi, [rbp+var_10]
call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv; std::vector<std::string>::size(void)
mov rdi, [rbp+var_20]; this
mov rsi, rax; unsigned __int64
call _ZN3CLI3App18_trigger_pre_parseEm; CLI::App::_trigger_pre_parse(ulong)
mov [rbp+var_11], 0
loc_33A26:
mov rdi, [rbp+var_10]
call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5emptyEv; std::vector<std::string>::empty(void)
xor al, 0FFh
test al, 1
jnz short loc_33A37
jmp short loc_33A4A
loc_33A37:
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_10]
lea rdx, [rbp+var_11]
call _ZN3CLI3App13_parse_singleERSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EERb; CLI::App::_parse_single(std::vector<std::string> &,bool &)
jmp short loc_33A26
loc_33A4A:
mov rdi, [rbp+var_20]; this
call _ZN3CLI3App8_processEv; CLI::App::_process(void)
mov rdi, [rbp+var_20]; this
call _ZN3CLI3App15_process_extrasEv; CLI::App::_process_extras(void)
add rsp, 20h
pop rbp
retn
|
long long CLI::App::_parse(CLI::App *a1, _QWORD *a2)
{
unsigned long long v2; // rax
char v4; // [rsp+Fh] [rbp-11h] BYREF
_QWORD *v5; // [rsp+10h] [rbp-10h]
CLI::App *v6; // [rsp+18h] [rbp-8h]
v6 = a1;
v5 = a2;
CLI::App::increment_parsed(a1);
v2 = std::vector<std::string>::size(a2);
CLI::App::_trigger_pre_parse(a1, v2);
v4 = 0;
while ( (std::vector<std::string>::empty((long long)v5) & 1) == 0 )
CLI::App::_parse_single(a1, v5, &v4);
CLI::App::_process(a1);
return CLI::App::_process_extras(a1);
}
|
_parse:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x20],RDI
CALL 0x001344a0
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00118430
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,RAX
CALL 0x00134550
MOV byte ptr [RBP + -0x11],0x0
LAB_00133a26:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0010e8d0
XOR AL,0xff
TEST AL,0x1
JNZ 0x00133a37
JMP 0x00133a4a
LAB_00133a37:
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x10]
LEA RDX,[RBP + -0x11]
CALL 0x00134640
JMP 0x00133a26
LAB_00133a4a:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001348f0
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001349b0
ADD RSP,0x20
POP RBP
RET
|
/* CLI::App::_parse(std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > >&&) */
void __thiscall CLI::App::_parse(App *this,vector *param_1)
{
ulong uVar1;
byte bVar2;
bool local_19;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_18;
App *local_10;
local_18 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)param_1;
local_10 = this;
increment_parsed(this);
uVar1 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::size(local_18);
_trigger_pre_parse(this,uVar1);
local_19 = false;
while( true ) {
bVar2 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::empty(local_18);
if (((bVar2 ^ 0xff) & 1) == 0) break;
_parse_single(this,(vector *)local_18,&local_19);
}
_process(this);
_process_extras(this);
return;
}
|
|
16,295
|
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>::at(unsigned long)
|
monkey531[P]llama/common/json.hpp
|
reference at(size_type idx)
{
// at only works for arrays
if (JSON_HEDLEY_LIKELY(is_array()))
{
JSON_TRY
{
return set_parent(m_data.m_value.array->at(idx));
}
JSON_CATCH (std::out_of_range&)
{
// create better exception explanation
JSON_THROW(out_of_range::create(401, detail::concat("array index ", std::to_string(idx), " is out of range"), this));
}
}
|
O2
|
cpp
|
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at(unsigned long):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
cmpb $0x2, (%rdi)
jne 0x7da7b
movq %rsi, %r12
movq 0x8(%rbx), %rdi
callq 0x7dd44
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
pushq $0x20
popq %rdi
callq 0x24460
movq %rax, %r14
movq %rbx, %rdi
callq 0x434f0
leaq 0x20(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x39285(%rip), %rsi # 0xb6d22
movq %rsp, %rdi
callq 0x7ddd5
movb $0x1, %bpl
movq %rsp, %rdx
movq %r14, %rdi
movl $0x130, %esi # imm = 0x130
movq %rbx, %rcx
callq 0x433a4
xorl %ebp, %ebp
leaq 0x80474(%rip), %rsi # 0xfdf38
leaq -0x3da4b(%rip), %rdx # 0x40080
movq %r14, %rdi
callq 0x24ee0
jmp 0x7db4a
movq %rax, %r15
cmpl $0x1, %edx
jne 0x7dba5
movq %r15, %rdi
callq 0x24380
pushq $0x20
popq %rdi
callq 0x24460
movq %rax, %r14
leaq 0x20(%rsp), %rdi
movq %r12, %rsi
callq 0x41d9b
leaq 0x391fc(%rip), %rsi # 0xb6d04
leaq 0x39202(%rip), %rcx # 0xb6d11
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x7dd65
movb $0x1, %bpl
movq %rsp, %rdx
movq %r14, %rdi
movl $0x191, %esi # imm = 0x191
movq %rbx, %rcx
callq 0x41c50
xorl %ebp, %ebp
leaq 0x8037d(%rip), %rsi # 0xfdeb8
leaq -0x3dac2(%rip), %rdx # 0x40080
movq %r14, %rdi
callq 0x24ee0
movq %rax, %r15
movq %rsp, %rdi
callq 0x251b8
jmp 0x7db5d
movq %rax, %r15
movb $0x1, %bpl
leaq 0x20(%rsp), %rdi
callq 0x251b8
testb %bpl, %bpl
jne 0x7db71
jmp 0x7db79
movq %rax, %r15
movq %r14, %rdi
callq 0x24670
callq 0x24e30
jmp 0x7dba5
movq %rax, %rdi
callq 0x27af1
movq %rax, %r15
movq %rsp, %rdi
callq 0x251b8
testb %bpl, %bpl
jne 0x7db9d
jmp 0x7dba5
movq %rax, %r15
movq %r14, %rdi
callq 0x24670
movq %r15, %rdi
callq 0x24f60
nop
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atEm:
push rbp; char
push r15; int
push r14; int
push r12; int
push rbx; char
sub rsp, 40h
mov rbx, rdi
cmp byte ptr [rdi], 2
jnz short loc_7DA7B
mov r12, rsi
mov rdi, [rbx+8]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE2atEm; 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>>::at(ulong)
add rsp, 40h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_7DA7B:
push 20h ; ' '
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
mov rdi, rbx
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; 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>::type_name(void)
lea rdx, [rsp+68h+var_48]
mov [rdx], rax
lea rsi, aCannotUseAtWit; "cannot use at() with "
mov rdi, rsp
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(char const(&)[22],char const* &&)
mov bpl, 1
mov rdx, rsp
mov rdi, r14; this
mov esi, 130h; int
mov rcx, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
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
|
long long 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>::at(
long long a1)
{
nlohmann::json_abi_v3_11_3::detail::type_error *exception; // r14
_QWORD v3[13]; // [rsp+0h] [rbp-68h] BYREF
if ( *(_BYTE *)a1 != 2 )
{
exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL);
v3[4] = 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>::type_name((unsigned __int8 *)a1);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(v3, "cannot use at() with ");
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
exception,
304,
(long long)v3);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
return std::vector<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>>::at(*(_QWORD *)(a1 + 8));
}
|
at:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x40
MOV RBX,RDI
CMP byte ptr [RDI],0x2
JNZ 0x0017da7b
MOV R12,RSI
MOV RDI,qword ptr [RBX + 0x8]
LAB_0017da69:
CALL 0x0017dd44
LAB_0017da6e:
ADD RSP,0x40
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0017da7b:
PUSH 0x20
POP RDI
CALL 0x00124460
MOV R14,RAX
MOV RDI,RBX
CALL 0x001434f0
LEA RDX,[RSP + 0x20]
MOV qword ptr [RDX],RAX
LAB_0017da96:
LEA RSI,[0x1b6d22]
MOV RDI,RSP
CALL 0x0017ddd5
MOV BPL,0x1
LAB_0017daa8:
MOV RDX,RSP
MOV RDI,R14
MOV ESI,0x130
MOV RCX,RBX
CALL 0x001433a4
XOR EBP,EBP
LEA RSI,[0x1fdf38]
LEA RDX,[0x140080]
MOV RDI,R14
CALL 0x00124ee0
|
/* 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>::at(unsigned long) */
void __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::at(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,ulong param_1)
{
int8 uVar1;
detail adStack_68 [32];
char *local_48 [4];
if (*this == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x2) {
/* try { // try from 0017da69 to 0017da6d has its CatchHandler @ 0017dad5 */
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>>>
::at(*(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>>>
**)(this + 8),param_1);
return;
}
uVar1 = __cxa_allocate_exception(0x20);
local_48[0] = (char *)type_name(this);
/* try { // try from 0017da96 to 0017daa4 has its CatchHandler @ 0017db9a */
detail::concat<std::__cxx11::string,char_const(&)[22],char_const*>
(adStack_68,"cannot use at() with ",local_48);
/* try { // try from 0017daa8 to 0017dad2 has its CatchHandler @ 0017db88 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar1,0x130,adStack_68,this);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar1,&detail::type_error::typeinfo,detail::exception::~exception);
}
|
|
16,296
|
update_backward_delete_link
|
eloqsql/storage/myisam/mi_dynrec.c
|
static int update_backward_delete_link(MI_INFO *info, my_off_t delete_block,
my_off_t filepos)
{
MI_BLOCK_INFO block_info;
DBUG_ENTER("update_backward_delete_link");
if (delete_block != HA_OFFSET_ERROR)
{
block_info.second_read=0;
if (_mi_get_block_info(&block_info,info->dfile,delete_block)
& BLOCK_DELETED)
{
uchar buff[8];
mi_sizestore(buff,filepos);
if (info->s->file_write(info,buff, 8, delete_block+12, MYF(MY_NABP)))
DBUG_RETURN(1); /* Error on write */
}
else
{
my_errno=HA_ERR_WRONG_IN_RECORD;
DBUG_RETURN(1); /* Wrong delete link */
}
}
DBUG_RETURN(0);
}
|
O3
|
c
|
update_backward_delete_link:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %fs:0x28, %rax
movq %rax, -0x20(%rbp)
cmpq $-0x1, %rsi
je 0x7b6ec
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x78(%rbp), %rdi
movl $0x0, 0x50(%rdi)
movl 0x1c0(%r14), %esi
movq %rbx, %rdx
callq 0x7b157
testb $0x4, %al
jne 0x7b6b7
callq 0xa813e
movl $0x7f, (%rax)
movl $0x1, %eax
jmp 0x7b6ee
bswapq %r15
leaq -0x80(%rbp), %rsi
movq %r15, (%rsi)
movq (%r14), %rax
addq $0xc, %rbx
movl $0x8, %edx
movl $0x4, %r8d
movq %r14, %rdi
movq %rbx, %rcx
callq *0x2e8(%rax)
movq %rax, %rcx
movl $0x1, %eax
testq %rcx, %rcx
jne 0x7b6ee
xorl %eax, %eax
movq %fs:0x28, %rcx
cmpq -0x20(%rbp), %rcx
jne 0x7b708
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x2a270
|
update_backward_delete_link_0:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
sub rsp, 68h
mov rax, fs:28h
mov [rbp+var_20], rax
cmp rsi, 0FFFFFFFFFFFFFFFFh
jz short loc_7B6EC
mov r15, rdx
mov rbx, rsi
mov r14, rdi
lea rdi, [rbp+var_78]
mov dword ptr [rdi+50h], 0
mov esi, [r14+1C0h]
mov rdx, rbx
call _mi_get_block_info
test al, 4
jnz short loc_7B6B7
call _my_thread_var
mov dword ptr [rax], 7Fh
mov eax, 1
jmp short loc_7B6EE
loc_7B6B7:
bswap r15
lea rsi, [rbp+var_80]
mov [rsi], r15
mov rax, [r14]
add rbx, 0Ch
mov edx, 8
mov r8d, 4
mov rdi, r14
mov rcx, rbx
call qword ptr [rax+2E8h]
mov rcx, rax
mov eax, 1
test rcx, rcx
jnz short loc_7B6EE
loc_7B6EC:
xor eax, eax
loc_7B6EE:
mov rcx, fs:28h
cmp rcx, [rbp+var_20]
jnz short loc_7B708
add rsp, 68h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_7B708:
call ___stack_chk_fail
|
long long update_backward_delete_link_0(unsigned int *a1, long long a2, unsigned long long a3)
{
long long result; // rax
long long v5; // rcx
unsigned long long v6; // [rsp+0h] [rbp-80h] BYREF
_BYTE v7[80]; // [rsp+8h] [rbp-78h] BYREF
int v8; // [rsp+58h] [rbp-28h]
unsigned long long v9; // [rsp+60h] [rbp-20h]
v9 = __readfsqword(0x28u);
if ( a2 == -1 )
return 0LL;
v8 = 0;
if ( (mi_get_block_info((long long)v7, a1[112], a2) & 4) == 0 )
{
*(_DWORD *)my_thread_var(v7) = 127;
return 1LL;
}
v6 = _byteswap_uint64(a3);
v5 = (*(long long ( **)(unsigned int *, unsigned long long *, long long, long long, long long))(*(_QWORD *)a1 + 744LL))(
a1,
&v6,
8LL,
a2 + 12,
4LL);
result = 1LL;
if ( !v5 )
return 0LL;
return result;
}
|
update_backward_delete_link:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x68
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x20],RAX
CMP RSI,-0x1
JZ 0x0017b6ec
MOV R15,RDX
MOV RBX,RSI
MOV R14,RDI
LEA RDI,[RBP + -0x78]
MOV dword ptr [RDI + 0x50],0x0
MOV ESI,dword ptr [R14 + 0x1c0]
MOV RDX,RBX
CALL 0x0017b157
TEST AL,0x4
JNZ 0x0017b6b7
CALL 0x001a813e
MOV dword ptr [RAX],0x7f
MOV EAX,0x1
JMP 0x0017b6ee
LAB_0017b6b7:
BSWAP R15
LEA RSI,[RBP + -0x80]
MOV qword ptr [RSI],R15
MOV RAX,qword ptr [R14]
ADD RBX,0xc
MOV EDX,0x8
MOV R8D,0x4
MOV RDI,R14
MOV RCX,RBX
CALL qword ptr [RAX + 0x2e8]
MOV RCX,RAX
MOV EAX,0x1
TEST RCX,RCX
JNZ 0x0017b6ee
LAB_0017b6ec:
XOR EAX,EAX
LAB_0017b6ee:
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x20]
JNZ 0x0017b708
ADD RSP,0x68
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0017b708:
CALL 0x0012a270
|
int8 update_backward_delete_link(long *param_1,long param_2,ulong param_3)
{
ulong uVar1;
int4 *puVar2;
int8 uVar3;
long lVar4;
long in_FS_OFFSET;
ulong local_88;
int1 local_80 [80];
int4 local_30;
long local_28;
local_28 = *(long *)(in_FS_OFFSET + 0x28);
if (param_2 != -1) {
local_30 = 0;
uVar1 = _mi_get_block_info(local_80,(int)param_1[0x38],param_2);
if ((uVar1 & 4) == 0) {
puVar2 = (int4 *)_my_thread_var();
*puVar2 = 0x7f;
uVar3 = 1;
goto LAB_0017b6ee;
}
local_88 = param_3 >> 0x38 | (param_3 & 0xff000000000000) >> 0x28 |
(param_3 & 0xff0000000000) >> 0x18 | (param_3 & 0xff00000000) >> 8 |
(param_3 & 0xff000000) << 8 | (param_3 & 0xff0000) << 0x18 |
(param_3 & 0xff00) << 0x28 | param_3 << 0x38;
lVar4 = (**(code **)(*param_1 + 0x2e8))(param_1,&local_88,8,param_2 + 0xc,4);
uVar3 = 1;
if (lVar4 != 0) goto LAB_0017b6ee;
}
uVar3 = 0;
LAB_0017b6ee:
if (*(long *)(in_FS_OFFSET + 0x28) == local_28) {
return uVar3;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
16,297
|
fmt::v10::detail::dragonbox::cache_accessor<float>::get_cached_power(int)
|
aimrt_mujoco_sim/_deps/fmt-src/include/fmt/format-inl.h
|
static auto get_cached_power(int k) noexcept -> uint64_t {
FMT_ASSERT(k >= float_info<float>::min_k && k <= float_info<float>::max_k,
"k is out of range");
static constexpr const uint64_t pow10_significands[] = {
0x81ceb32c4b43fcf5, 0xa2425ff75e14fc32, 0xcad2f7f5359a3b3f,
0xfd87b5f28300ca0e, 0x9e74d1b791e07e49, 0xc612062576589ddb,
0xf79687aed3eec552, 0x9abe14cd44753b53, 0xc16d9a0095928a28,
0xf1c90080baf72cb2, 0x971da05074da7bef, 0xbce5086492111aeb,
0xec1e4a7db69561a6, 0x9392ee8e921d5d08, 0xb877aa3236a4b44a,
0xe69594bec44de15c, 0x901d7cf73ab0acda, 0xb424dc35095cd810,
0xe12e13424bb40e14, 0x8cbccc096f5088cc, 0xafebff0bcb24aaff,
0xdbe6fecebdedd5bf, 0x89705f4136b4a598, 0xabcc77118461cefd,
0xd6bf94d5e57a42bd, 0x8637bd05af6c69b6, 0xa7c5ac471b478424,
0xd1b71758e219652c, 0x83126e978d4fdf3c, 0xa3d70a3d70a3d70b,
0xcccccccccccccccd, 0x8000000000000000, 0xa000000000000000,
0xc800000000000000, 0xfa00000000000000, 0x9c40000000000000,
0xc350000000000000, 0xf424000000000000, 0x9896800000000000,
0xbebc200000000000, 0xee6b280000000000, 0x9502f90000000000,
0xba43b74000000000, 0xe8d4a51000000000, 0x9184e72a00000000,
0xb5e620f480000000, 0xe35fa931a0000000, 0x8e1bc9bf04000000,
0xb1a2bc2ec5000000, 0xde0b6b3a76400000, 0x8ac7230489e80000,
0xad78ebc5ac620000, 0xd8d726b7177a8000, 0x878678326eac9000,
0xa968163f0a57b400, 0xd3c21bcecceda100, 0x84595161401484a0,
0xa56fa5b99019a5c8, 0xcecb8f27f4200f3a, 0x813f3978f8940985,
0xa18f07d736b90be6, 0xc9f2c9cd04674edf, 0xfc6f7c4045812297,
0x9dc5ada82b70b59e, 0xc5371912364ce306, 0xf684df56c3e01bc7,
0x9a130b963a6c115d, 0xc097ce7bc90715b4, 0xf0bdc21abb48db21,
0x96769950b50d88f5, 0xbc143fa4e250eb32, 0xeb194f8e1ae525fe,
0x92efd1b8d0cf37bf, 0xb7abc627050305ae, 0xe596b7b0c643c71a,
0x8f7e32ce7bea5c70, 0xb35dbf821ae4f38c, 0xe0352f62a19e306f};
return pow10_significands[k - float_info<float>::min_k];
}
|
O0
|
c
|
fmt::v10::detail::dragonbox::cache_accessor<float>::get_cached_power(int):
pushq %rax
movl %edi, 0x4(%rsp)
xorl %eax, %eax
cmpl $-0x1f, 0x4(%rsp)
movb %al, 0x2(%rsp)
jl 0xabc8e
cmpl $0x2e, 0x4(%rsp)
setle %al
movb %al, 0x2(%rsp)
movb 0x2(%rsp), %al
andb $0x1, %al
movb %al, 0x3(%rsp)
leaq 0x331bf4(%rip), %rsi # 0x3dd893
leaq 0x3(%rsp), %rdi
callq 0xac0e0
jmp 0xabcab
movl 0x4(%rsp), %eax
subl $-0x1f, %eax
movslq %eax, %rcx
leaq 0x332784(%rip), %rax # 0x3de440
movq (%rax,%rcx,8), %rax
popq %rcx
retq
movq %rax, %rdi
callq 0x9cf00
nopw (%rax,%rax)
|
_ZN3fmt3v106detail9dragonbox14cache_accessorIfE16get_cached_powerEi:
push rax
mov [rsp+8+var_4], edi
xor eax, eax
cmp [rsp+8+var_4], 0FFFFFFE1h
mov [rsp+8+var_6], al
jl short loc_ABC8E
cmp [rsp+8+var_4], 2Eh ; '.'
setle al
mov [rsp+8+var_6], al
loc_ABC8E:
mov al, [rsp+8+var_6]
and al, 1
mov [rsp+8+var_5], al
lea rsi, aKIsOutOfRange; "k is out of range"
lea rdi, [rsp+8+var_5]
call _ZN3fmt3v106detail13ignore_unusedIJbA18_cEEEvDpRKT_; fmt::v10::detail::ignore_unused<bool,char [18]>(bool,char [18] const&)
jmp short $+2
loc_ABCAB:
mov eax, [rsp+8+var_4]
sub eax, 0FFFFFFE1h
movsxd rcx, eax
lea rax, _ZZN3fmt3v106detail9dragonbox14cache_accessorIfE16get_cached_powerEiE18pow10_significands; fmt::v10::detail::dragonbox::cache_accessor<float>::get_cached_power(int)::pow10_significands
mov rax, [rax+rcx*8]
pop rcx
retn
mov rdi, rax
call __clang_call_terminate
|
long long fmt::v10::detail::dragonbox::cache_accessor<float>::get_cached_power(int a1)
{
int v1; // eax
bool v3; // [rsp+0h] [rbp-6h]
char v4; // [rsp+1h] [rbp-5h] BYREF
int v5; // [rsp+2h] [rbp-4h]
v4 = HIBYTE(v1);
v5 = a1;
v3 = 0;
if ( a1 >= -31 )
v3 = v5 <= 46;
v4 = v3;
fmt::v10::detail::ignore_unused<bool,char [18]>(&v4, "k is out of range");
return fmt::v10::detail::dragonbox::cache_accessor<float>::get_cached_power(int)::pow10_significands[v5 + 31];
}
|
get_cached_power:
PUSH RAX
MOV dword ptr [RSP + 0x4],EDI
XOR EAX,EAX
CMP dword ptr [RSP + 0x4],-0x1f
MOV byte ptr [RSP + 0x2],AL
JL 0x001abc8e
CMP dword ptr [RSP + 0x4],0x2e
SETLE AL
MOV byte ptr [RSP + 0x2],AL
LAB_001abc8e:
MOV AL,byte ptr [RSP + 0x2]
AND AL,0x1
MOV byte ptr [RSP + 0x3],AL
LAB_001abc98:
LEA RSI,[0x4dd893]
LEA RDI,[RSP + 0x3]
CALL 0x001ac0e0
JMP 0x001abcab
LAB_001abcab:
MOV EAX,dword ptr [RSP + 0x4]
SUB EAX,-0x1f
MOVSXD RCX,EAX
LEA RAX,[0x4de440]
MOV RAX,qword ptr [RAX + RCX*0x8]
POP RCX
RET
|
/* fmt::v10::detail::dragonbox::cache_accessor<float>::get_cached_power(int) */
int8 fmt::v10::detail::dragonbox::cache_accessor<float>::get_cached_power(int param_1)
{
bool local_5;
int local_4;
/* try { // try from 001abc98 to 001abca8 has its CatchHandler @ 001abcc2 */
local_4 = param_1;
ignore_unused<bool,char[18]>(&local_5,"k is out of range");
return *(int8 *)(get_cached_power(int)::pow10_significands + (long)(local_4 + 0x1f) * 8);
}
|
|
16,298
|
my_multi_malloc_large
|
eloqsql/mysys/mulalloc.c
|
void *my_multi_malloc_large(PSI_memory_key key, myf myFlags, ...)
{
va_list args;
char **ptr,*start,*res;
ulonglong tot_length,length;
DBUG_ENTER("my_multi_malloc");
va_start(args,myFlags);
tot_length=0;
while ((ptr=va_arg(args, char **)))
{
length=va_arg(args,ulonglong);
tot_length+=ALIGN_SIZE(length);
}
va_end(args);
if (!(start=(char *) my_malloc(key, (size_t) tot_length, myFlags)))
DBUG_RETURN(0); /* purecov: inspected */
va_start(args,myFlags);
res=start;
while ((ptr=va_arg(args, char **)))
{
*ptr=res;
length=va_arg(args,ulonglong);
res+=ALIGN_SIZE(length);
}
va_end(args);
DBUG_RETURN((void*) start);
}
|
O0
|
c
|
my_multi_malloc_large:
pushq %rbp
movq %rsp, %rbp
subq $0x170, %rsp # imm = 0x170
testb %al, %al
je 0x7aa11
movaps %xmm0, -0xe0(%rbp)
movaps %xmm1, -0xd0(%rbp)
movaps %xmm2, -0xc0(%rbp)
movaps %xmm3, -0xb0(%rbp)
movaps %xmm4, -0xa0(%rbp)
movaps %xmm5, -0x90(%rbp)
movaps %xmm6, -0x80(%rbp)
movaps %xmm7, -0x70(%rbp)
movq %r9, -0xe8(%rbp)
movq %r8, -0xf0(%rbp)
movq %rcx, -0xf8(%rbp)
movq %rdx, -0x100(%rbp)
movl %edi, -0xc(%rbp)
movq %rsi, -0x18(%rbp)
leaq -0x30(%rbp), %rax
leaq -0x110(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x10, (%rax)
movq $0x0, -0x50(%rbp)
leaq -0x30(%rbp), %rax
movq %rax, -0x120(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x114(%rbp)
cmpl $0x28, %eax
ja 0x7aa9b
movq -0x120(%rbp), %rcx
movl -0x114(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x128(%rbp)
jmp 0x7aab8
movq -0x120(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x128(%rbp)
movq -0x128(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
je 0x7ab53
leaq -0x30(%rbp), %rax
movq %rax, -0x138(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x12c(%rbp)
cmpl $0x28, %eax
ja 0x7ab0b
movq -0x138(%rbp), %rcx
movl -0x12c(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x140(%rbp)
jmp 0x7ab28
movq -0x138(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x140(%rbp)
movq -0x140(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
addq $0x8, %rax
subq $0x1, %rax
andq $-0x8, %rax
addq -0x50(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x7aa60
leaq -0x30(%rbp), %rax
movl -0xc(%rbp), %edi
movq -0x50(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x7fbf0
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
jne 0x7ab80
jmp 0x7ab73
movq $0x0, -0x8(%rbp)
jmp 0x7acb6
leaq -0x30(%rbp), %rax
leaq -0x110(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x10, (%rax)
movq -0x40(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq -0x30(%rbp), %rax
movq %rax, -0x150(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x144(%rbp)
cmpl $0x28, %eax
ja 0x7abe7
movq -0x150(%rbp), %rcx
movl -0x144(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x158(%rbp)
jmp 0x7ac04
movq -0x150(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x158(%rbp)
movq -0x158(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
je 0x7acaa
movq -0x48(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
leaq -0x30(%rbp), %rax
movq %rax, -0x168(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x15c(%rbp)
cmpl $0x28, %eax
ja 0x7ac62
movq -0x168(%rbp), %rcx
movl -0x15c(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x170(%rbp)
jmp 0x7ac7f
movq -0x168(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x170(%rbp)
movq -0x170(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
addq $0x8, %rax
subq $0x1, %rax
andq $-0x8, %rax
addq -0x48(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x7abac
leaq -0x30(%rbp), %rax
movq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x170, %rsp # imm = 0x170
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
|
my_multi_malloc_large:
push rbp
mov rbp, rsp
sub rsp, 170h
test al, al
jz short loc_7AA11
movaps [rbp+var_E0], xmm0
movaps [rbp+var_D0], xmm1
movaps [rbp+var_C0], xmm2
movaps [rbp+var_B0], xmm3
movaps [rbp+var_A0], xmm4
movaps [rbp+var_90], xmm5
movaps [rbp+var_80], xmm6
movaps [rbp+var_70], xmm7
loc_7AA11:
mov [rbp+var_E8], r9
mov [rbp+var_F0], r8
mov [rbp+var_F8], rcx
mov [rbp+var_100], rdx
mov [rbp+var_C], edi
mov [rbp+var_18], rsi
lea rax, [rbp+var_30]
lea rcx, [rbp+var_110]
mov [rax+10h], rcx
lea rcx, [rbp+arg_0]
mov [rax+8], rcx
mov dword ptr [rax+4], 30h ; '0'
mov dword ptr [rax], 10h
mov [rbp+var_50], 0
loc_7AA60:
lea rax, [rbp+var_30]
mov [rbp+var_120], rax
mov eax, [rbp+var_30]
mov [rbp+var_114], eax
cmp eax, 28h ; '('
ja short loc_7AA9B
mov rcx, [rbp+var_120]
mov edx, [rbp+var_114]
movsxd rax, edx
add rax, [rcx+10h]
add edx, 8
mov [rcx], edx
mov [rbp+var_128], rax
jmp short loc_7AAB8
loc_7AA9B:
mov rcx, [rbp+var_120]
mov rax, [rcx+8]
mov rdx, rax
add rdx, 8
mov [rcx+8], rdx
mov [rbp+var_128], rax
loc_7AAB8:
mov rax, [rbp+var_128]
mov rax, [rax]
mov [rbp+var_38], rax
cmp rax, 0
jz loc_7AB53
lea rax, [rbp+var_30]
mov [rbp+var_138], rax
mov eax, [rbp+var_30]
mov [rbp+var_12C], eax
cmp eax, 28h ; '('
ja short loc_7AB0B
mov rcx, [rbp+var_138]
mov edx, [rbp+var_12C]
movsxd rax, edx
add rax, [rcx+10h]
add edx, 8
mov [rcx], edx
mov [rbp+var_140], rax
jmp short loc_7AB28
loc_7AB0B:
mov rcx, [rbp+var_138]
mov rax, [rcx+8]
mov rdx, rax
add rdx, 8
mov [rcx+8], rdx
mov [rbp+var_140], rax
loc_7AB28:
mov rax, [rbp+var_140]
mov rax, [rax]
mov [rbp+var_58], rax
mov rax, [rbp+var_58]
add rax, 8
sub rax, 1
and rax, 0FFFFFFFFFFFFFFF8h
add rax, [rbp+var_50]
mov [rbp+var_50], rax
jmp loc_7AA60
loc_7AB53:
lea rax, [rbp+var_30]
mov edi, [rbp+var_C]
mov rsi, [rbp+var_50]
mov rdx, [rbp+var_18]
call my_malloc
mov [rbp+var_40], rax
cmp rax, 0
jnz short loc_7AB80
jmp short $+2
loc_7AB73:
mov [rbp+var_8], 0
jmp loc_7ACB6
loc_7AB80:
lea rax, [rbp+var_30]
lea rcx, [rbp+var_110]
mov [rax+10h], rcx
lea rcx, [rbp+arg_0]
mov [rax+8], rcx
mov dword ptr [rax+4], 30h ; '0'
mov dword ptr [rax], 10h
mov rax, [rbp+var_40]
mov [rbp+var_48], rax
loc_7ABAC:
lea rax, [rbp+var_30]
mov [rbp+var_150], rax
mov eax, [rbp+var_30]
mov [rbp+var_144], eax
cmp eax, 28h ; '('
ja short loc_7ABE7
mov rcx, [rbp+var_150]
mov edx, [rbp+var_144]
movsxd rax, edx
add rax, [rcx+10h]
add edx, 8
mov [rcx], edx
mov [rbp+var_158], rax
jmp short loc_7AC04
loc_7ABE7:
mov rcx, [rbp+var_150]
mov rax, [rcx+8]
mov rdx, rax
add rdx, 8
mov [rcx+8], rdx
mov [rbp+var_158], rax
loc_7AC04:
mov rax, [rbp+var_158]
mov rax, [rax]
mov [rbp+var_38], rax
cmp rax, 0
jz loc_7ACAA
mov rcx, [rbp+var_48]
mov rax, [rbp+var_38]
mov [rax], rcx
lea rax, [rbp+var_30]
mov [rbp+var_168], rax
mov eax, [rbp+var_30]
mov [rbp+var_15C], eax
cmp eax, 28h ; '('
ja short loc_7AC62
mov rcx, [rbp+var_168]
mov edx, [rbp+var_15C]
movsxd rax, edx
add rax, [rcx+10h]
add edx, 8
mov [rcx], edx
mov [rbp+var_170], rax
jmp short loc_7AC7F
loc_7AC62:
mov rcx, [rbp+var_168]
mov rax, [rcx+8]
mov rdx, rax
add rdx, 8
mov [rcx+8], rdx
mov [rbp+var_170], rax
loc_7AC7F:
mov rax, [rbp+var_170]
mov rax, [rax]
mov [rbp+var_58], rax
mov rax, [rbp+var_58]
add rax, 8
sub rax, 1
and rax, 0FFFFFFFFFFFFFFF8h
add rax, [rbp+var_48]
mov [rbp+var_48], rax
jmp loc_7ABAC
loc_7ACAA:
lea rax, [rbp+var_30]
mov rax, [rbp+var_40]
mov [rbp+var_8], rax
loc_7ACB6:
mov rax, [rbp+var_8]
add rsp, 170h
pop rbp
retn
|
long long my_multi_malloc_large(unsigned int a1, long long a2, ...)
{
_QWORD *overflow_arg_area; // rax
_QWORD *v3; // rax
_QWORD *v4; // rax
_QWORD *v5; // rax
long long i; // [rsp+120h] [rbp-50h]
long long j; // [rsp+128h] [rbp-48h]
long long v9; // [rsp+130h] [rbp-40h]
va_list va; // [rsp+140h] [rbp-30h] BYREF
long long v11; // [rsp+158h] [rbp-18h]
unsigned int v12; // [rsp+164h] [rbp-Ch]
va_start(va, a2);
v12 = a1;
v11 = a2;
for ( i = 0LL; ; i += (*v3 + 7LL) & 0xFFFFFFFFFFFFFFF8LL )
{
if ( va[0].gp_offset > 0x28 )
{
overflow_arg_area = va[0].overflow_arg_area;
va[0].overflow_arg_area = (char *)va[0].overflow_arg_area + 8;
}
else
{
overflow_arg_area = (char *)va[0].reg_save_area + (int)va[0].gp_offset;
va[0].gp_offset += 8;
}
if ( !*overflow_arg_area )
break;
if ( va[0].gp_offset > 0x28 )
{
v3 = va[0].overflow_arg_area;
va[0].overflow_arg_area = (char *)va[0].overflow_arg_area + 8;
}
else
{
v3 = (char *)va[0].reg_save_area + (int)va[0].gp_offset;
va[0].gp_offset += 8;
}
}
v9 = my_malloc(v12, i, v11);
if ( !v9 )
return 0LL;
va_end(va);
va_start(va, a2);
for ( j = v9; ; j += (*v5 + 7LL) & 0xFFFFFFFFFFFFFFF8LL )
{
if ( va[0].gp_offset > 0x28 )
{
v4 = va[0].overflow_arg_area;
va[0].overflow_arg_area = (char *)va[0].overflow_arg_area + 8;
}
else
{
v4 = (char *)va[0].reg_save_area + (int)va[0].gp_offset;
va[0].gp_offset += 8;
}
if ( !*v4 )
break;
*(_QWORD *)*v4 = j;
if ( va[0].gp_offset > 0x28 )
{
v5 = va[0].overflow_arg_area;
va[0].overflow_arg_area = (char *)va[0].overflow_arg_area + 8;
}
else
{
v5 = (char *)va[0].reg_save_area + (int)va[0].gp_offset;
va[0].gp_offset += 8;
}
}
return v9;
}
|
my_multi_malloc_large:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x170
TEST AL,AL
JZ 0x0017aa11
MOVAPS xmmword ptr [RBP + -0xe0],XMM0
MOVAPS xmmword ptr [RBP + -0xd0],XMM1
MOVAPS xmmword ptr [RBP + -0xc0],XMM2
MOVAPS xmmword ptr [RBP + -0xb0],XMM3
MOVAPS xmmword ptr [RBP + -0xa0],XMM4
MOVAPS xmmword ptr [RBP + -0x90],XMM5
MOVAPS xmmword ptr [RBP + -0x80],XMM6
MOVAPS xmmword ptr [RBP + -0x70],XMM7
LAB_0017aa11:
MOV qword ptr [RBP + -0xe8],R9
MOV qword ptr [RBP + -0xf0],R8
MOV qword ptr [RBP + -0xf8],RCX
MOV qword ptr [RBP + -0x100],RDX
MOV dword ptr [RBP + -0xc],EDI
MOV qword ptr [RBP + -0x18],RSI
LEA RAX,[RBP + -0x30]
LEA RCX,[RBP + -0x110]
MOV qword ptr [RAX + 0x10],RCX
LEA RCX,[RBP + 0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV dword ptr [RAX + 0x4],0x30
MOV dword ptr [RAX],0x10
MOV qword ptr [RBP + -0x50],0x0
LAB_0017aa60:
LEA RAX,[RBP + -0x30]
MOV qword ptr [RBP + -0x120],RAX
MOV EAX,dword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0x114],EAX
CMP EAX,0x28
JA 0x0017aa9b
MOV RCX,qword ptr [RBP + -0x120]
MOV EDX,dword ptr [RBP + -0x114]
MOVSXD RAX,EDX
ADD RAX,qword ptr [RCX + 0x10]
ADD EDX,0x8
MOV dword ptr [RCX],EDX
MOV qword ptr [RBP + -0x128],RAX
JMP 0x0017aab8
LAB_0017aa9b:
MOV RCX,qword ptr [RBP + -0x120]
MOV RAX,qword ptr [RCX + 0x8]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RBP + -0x128],RAX
LAB_0017aab8:
MOV RAX,qword ptr [RBP + -0x128]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
CMP RAX,0x0
JZ 0x0017ab53
LEA RAX,[RBP + -0x30]
MOV qword ptr [RBP + -0x138],RAX
MOV EAX,dword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0x12c],EAX
CMP EAX,0x28
JA 0x0017ab0b
MOV RCX,qword ptr [RBP + -0x138]
MOV EDX,dword ptr [RBP + -0x12c]
MOVSXD RAX,EDX
ADD RAX,qword ptr [RCX + 0x10]
ADD EDX,0x8
MOV dword ptr [RCX],EDX
MOV qword ptr [RBP + -0x140],RAX
JMP 0x0017ab28
LAB_0017ab0b:
MOV RCX,qword ptr [RBP + -0x138]
MOV RAX,qword ptr [RCX + 0x8]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RBP + -0x140],RAX
LAB_0017ab28:
MOV RAX,qword ptr [RBP + -0x140]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x58]
ADD RAX,0x8
SUB RAX,0x1
AND RAX,-0x8
ADD RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x50],RAX
JMP 0x0017aa60
LAB_0017ab53:
LEA RAX,[RBP + -0x30]
MOV EDI,dword ptr [RBP + -0xc]
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x0017fbf0
MOV qword ptr [RBP + -0x40],RAX
CMP RAX,0x0
JNZ 0x0017ab80
JMP 0x0017ab73
LAB_0017ab73:
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0017acb6
LAB_0017ab80:
LEA RAX,[RBP + -0x30]
LEA RCX,[RBP + -0x110]
MOV qword ptr [RAX + 0x10],RCX
LEA RCX,[RBP + 0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV dword ptr [RAX + 0x4],0x30
MOV dword ptr [RAX],0x10
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x48],RAX
LAB_0017abac:
LEA RAX,[RBP + -0x30]
MOV qword ptr [RBP + -0x150],RAX
MOV EAX,dword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0x144],EAX
CMP EAX,0x28
JA 0x0017abe7
MOV RCX,qword ptr [RBP + -0x150]
MOV EDX,dword ptr [RBP + -0x144]
MOVSXD RAX,EDX
ADD RAX,qword ptr [RCX + 0x10]
ADD EDX,0x8
MOV dword ptr [RCX],EDX
MOV qword ptr [RBP + -0x158],RAX
JMP 0x0017ac04
LAB_0017abe7:
MOV RCX,qword ptr [RBP + -0x150]
MOV RAX,qword ptr [RCX + 0x8]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RBP + -0x158],RAX
LAB_0017ac04:
MOV RAX,qword ptr [RBP + -0x158]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
CMP RAX,0x0
JZ 0x0017acaa
MOV RCX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX],RCX
LEA RAX,[RBP + -0x30]
MOV qword ptr [RBP + -0x168],RAX
MOV EAX,dword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0x15c],EAX
CMP EAX,0x28
JA 0x0017ac62
MOV RCX,qword ptr [RBP + -0x168]
MOV EDX,dword ptr [RBP + -0x15c]
MOVSXD RAX,EDX
ADD RAX,qword ptr [RCX + 0x10]
ADD EDX,0x8
MOV dword ptr [RCX],EDX
MOV qword ptr [RBP + -0x170],RAX
JMP 0x0017ac7f
LAB_0017ac62:
MOV RCX,qword ptr [RBP + -0x168]
MOV RAX,qword ptr [RCX + 0x8]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RBP + -0x170],RAX
LAB_0017ac7f:
MOV RAX,qword ptr [RBP + -0x170]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x58]
ADD RAX,0x8
SUB RAX,0x1
AND RAX,-0x8
ADD RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x48],RAX
JMP 0x0017abac
LAB_0017acaa:
LEA RAX,[RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x8],RAX
LAB_0017acb6:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x170
POP RBP
RET
|
/* WARNING: Restarted to delay deadcode elimination for space: stack */
long my_multi_malloc_large
(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,
int4 param_9,int8 param_10,int8 param_11,int8 param_12,
int8 param_13,int8 param_14)
{
char in_AL;
long *local_178;
long *local_160;
long *local_148;
long *local_130;
long local_118 [4];
int8 local_f8;
int8 local_f0;
int8 local_e8;
int8 local_d8;
int8 local_c8;
int8 local_b8;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
long local_60;
long local_58;
long local_50;
long local_40;
uint local_38;
int4 local_34;
long *local_30;
long *local_28;
int8 local_20;
int4 local_14;
long local_10;
if (in_AL != '\0') {
local_e8 = param_1;
local_d8 = param_2;
local_c8 = param_3;
local_b8 = param_4;
local_a8 = param_5;
local_98 = param_6;
local_88 = param_7;
local_78 = param_8;
}
local_28 = local_118;
local_30 = (long *)&stack0x00000008;
local_34 = 0x30;
local_38 = 0x10;
local_58 = 0;
while( true ) {
if (local_38 < 0x29) {
local_130 = (long *)((long)local_28 + (long)(int)local_38);
local_38 = local_38 + 8;
}
else {
local_130 = local_30;
local_30 = local_30 + 1;
}
local_40 = *local_130;
if (local_40 == 0) break;
if (local_38 < 0x29) {
local_148 = (long *)((long)local_28 + (long)(int)local_38);
local_38 = local_38 + 8;
}
else {
local_148 = local_30;
local_30 = local_30 + 1;
}
local_60 = *local_148;
local_58 = (local_60 + 7U & 0xfffffffffffffff8) + local_58;
}
local_118[2] = param_11;
local_118[3] = param_12;
local_f8 = param_13;
local_f0 = param_14;
local_20 = param_10;
local_14 = param_9;
local_10 = my_malloc(param_9,local_58,param_10);
if (local_10 == 0) {
local_10 = 0;
}
else {
local_30 = (long *)&stack0x00000008;
local_38 = 0x10;
local_50 = local_10;
while( true ) {
if (local_38 < 0x29) {
local_160 = (long *)((long)local_118 + (long)(int)local_38);
local_38 = local_38 + 8;
}
else {
local_160 = local_30;
local_30 = local_30 + 1;
}
if ((long *)*local_160 == (long *)0x0) break;
*(long *)*local_160 = local_50;
if (local_38 < 0x29) {
local_178 = (long *)((long)local_118 + (long)(int)local_38);
local_38 = local_38 + 8;
}
else {
local_178 = local_30;
local_30 = local_30 + 1;
}
local_50 = (*local_178 + 7U & 0xfffffffffffffff8) + local_50;
}
}
return local_10;
}
|
|
16,299
|
thr_abort_locks
|
eloqsql/mysys/thr_lock.c
|
void thr_abort_locks(THR_LOCK *lock, my_bool upgrade_lock)
{
THR_LOCK_DATA *data;
DBUG_ENTER("thr_abort_locks");
mysql_mutex_lock(&lock->mutex);
for (data=lock->read_wait.data; data ; data=data->next)
{
data->type=TL_UNLOCK; /* Mark killed */
/* It's safe to signal the cond first: we're still holding the mutex. */
mysql_cond_signal(data->cond);
data->cond=0; /* Removed from list */
}
for (data=lock->write_wait.data; data ; data=data->next)
{
data->type=TL_UNLOCK;
mysql_cond_signal(data->cond);
data->cond=0;
}
lock->read_wait.last= &lock->read_wait.data;
lock->write_wait.last= &lock->write_wait.data;
lock->read_wait.data=lock->write_wait.data=0;
if (upgrade_lock && lock->write.data)
lock->write.data->type=TL_WRITE_ONLY;
mysql_mutex_unlock(&lock->mutex);
DBUG_VOID_RETURN;
}
|
O0
|
c
|
thr_abort_locks:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %sil, %al
movq %rdi, -0x8(%rbp)
movb %al, -0x9(%rbp)
movq -0x8(%rbp), %rdi
addq $0x18, %rdi
leaq 0x5510e(%rip), %rsi # 0xda05f
movl $0x520, %edx # imm = 0x520
callq 0x83ba0
movq -0x8(%rbp), %rax
movq 0x60(%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x84fa0
movq -0x18(%rbp), %rax
movl $0x0, 0x40(%rax)
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x85070
movq -0x18(%rbp), %rax
movq $0x0, 0x20(%rax)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x84f67
movq -0x8(%rbp), %rax
movq 0x80(%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x84fe8
movq -0x18(%rbp), %rax
movl $0x0, 0x40(%rax)
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x85070
movq -0x18(%rbp), %rax
movq $0x0, 0x20(%rax)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x84faf
movq -0x8(%rbp), %rcx
addq $0x60, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x68(%rax)
movq -0x8(%rbp), %rcx
addq $0x80, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x88(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x80(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x60(%rax)
movsbl -0x9(%rbp), %eax
cmpl $0x0, %eax
je 0x85052
movq -0x8(%rbp), %rax
cmpq $0x0, 0x90(%rax)
je 0x85052
movq -0x8(%rbp), %rax
movq 0x90(%rax), %rax
movl $0xe, 0x40(%rax)
movq -0x8(%rbp), %rdi
addq $0x18, %rdi
callq 0x83c10
jmp 0x85061
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
thr_abort_locks:
push rbp
mov rbp, rsp
sub rsp, 20h
mov al, sil
mov [rbp+var_8], rdi
mov [rbp+var_9], al
mov rdi, [rbp+var_8]
add rdi, 18h
lea rsi, aWorkspaceLlm4b_21; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 520h
call inline_mysql_mutex_lock_11
mov rax, [rbp+var_8]
mov rax, [rax+60h]
mov [rbp+var_18], rax
loc_84F67:
cmp [rbp+var_18], 0
jz short loc_84FA0
mov rax, [rbp+var_18]
mov dword ptr [rax+40h], 0
mov rax, [rbp+var_18]
mov rdi, [rax+20h]
call inline_mysql_cond_signal_2
mov rax, [rbp+var_18]
mov qword ptr [rax+20h], 0
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov [rbp+var_18], rax
jmp short loc_84F67
loc_84FA0:
mov rax, [rbp+var_8]
mov rax, [rax+80h]
mov [rbp+var_18], rax
loc_84FAF:
cmp [rbp+var_18], 0
jz short loc_84FE8
mov rax, [rbp+var_18]
mov dword ptr [rax+40h], 0
mov rax, [rbp+var_18]
mov rdi, [rax+20h]
call inline_mysql_cond_signal_2
mov rax, [rbp+var_18]
mov qword ptr [rax+20h], 0
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov [rbp+var_18], rax
jmp short loc_84FAF
loc_84FE8:
mov rcx, [rbp+var_8]
add rcx, 60h ; '`'
mov rax, [rbp+var_8]
mov [rax+68h], rcx
mov rcx, [rbp+var_8]
add rcx, 80h
mov rax, [rbp+var_8]
mov [rax+88h], rcx
mov rax, [rbp+var_8]
mov qword ptr [rax+80h], 0
mov rax, [rbp+var_8]
mov qword ptr [rax+60h], 0
movsx eax, [rbp+var_9]
cmp eax, 0
jz short loc_85052
mov rax, [rbp+var_8]
cmp qword ptr [rax+90h], 0
jz short loc_85052
mov rax, [rbp+var_8]
mov rax, [rax+90h]
mov dword ptr [rax+40h], 0Eh
loc_85052:
mov rdi, [rbp+var_8]
add rdi, 18h
call inline_mysql_mutex_unlock_11
jmp short $+2
loc_85061:
add rsp, 20h
pop rbp
retn
|
long long thr_abort_locks(_QWORD *a1, char a2)
{
long long i; // [rsp+8h] [rbp-18h]
long long j; // [rsp+8h] [rbp-18h]
inline_mysql_mutex_lock_11(
(long long)(a1 + 3),
(long long)"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c",
0x520u);
for ( i = a1[12]; i; i = *(_QWORD *)(i + 8) )
{
*(_DWORD *)(i + 64) = 0;
inline_mysql_cond_signal_2(*(_QWORD *)(i + 32));
*(_QWORD *)(i + 32) = 0LL;
}
for ( j = a1[16]; j; j = *(_QWORD *)(j + 8) )
{
*(_DWORD *)(j + 64) = 0;
inline_mysql_cond_signal_2(*(_QWORD *)(j + 32));
*(_QWORD *)(j + 32) = 0LL;
}
a1[13] = a1 + 12;
a1[17] = a1 + 16;
a1[16] = 0LL;
a1[12] = 0LL;
if ( a2 && a1[18] )
*(_DWORD *)(a1[18] + 64LL) = 14;
return inline_mysql_mutex_unlock_11((long long)(a1 + 3));
}
|
thr_abort_locks:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV AL,SIL
MOV qword ptr [RBP + -0x8],RDI
MOV byte ptr [RBP + -0x9],AL
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x18
LEA RSI,[0x1da05f]
MOV EDX,0x520
CALL 0x00183ba0
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x60]
MOV qword ptr [RBP + -0x18],RAX
LAB_00184f67:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x00184fa0
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x40],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX + 0x20]
CALL 0x00185070
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x20],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00184f67
LAB_00184fa0:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x80]
MOV qword ptr [RBP + -0x18],RAX
LAB_00184faf:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x00184fe8
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x40],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX + 0x20]
CALL 0x00185070
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x20],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00184faf
LAB_00184fe8:
MOV RCX,qword ptr [RBP + -0x8]
ADD RCX,0x60
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x68],RCX
MOV RCX,qword ptr [RBP + -0x8]
ADD RCX,0x80
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x88],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x80],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x60],0x0
MOVSX EAX,byte ptr [RBP + -0x9]
CMP EAX,0x0
JZ 0x00185052
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x90],0x0
JZ 0x00185052
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x90]
MOV dword ptr [RAX + 0x40],0xe
LAB_00185052:
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x18
CALL 0x00183c10
JMP 0x00185061
LAB_00185061:
ADD RSP,0x20
POP RBP
RET
|
void thr_abort_locks(long param_1,char param_2)
{
long local_20;
inline_mysql_mutex_lock
(param_1 + 0x18,"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c",0x520);
for (local_20 = *(long *)(param_1 + 0x60); local_20 != 0; local_20 = *(long *)(local_20 + 8)) {
*(int4 *)(local_20 + 0x40) = 0;
inline_mysql_cond_signal(*(int8 *)(local_20 + 0x20));
*(int8 *)(local_20 + 0x20) = 0;
}
for (local_20 = *(long *)(param_1 + 0x80); local_20 != 0; local_20 = *(long *)(local_20 + 8)) {
*(int4 *)(local_20 + 0x40) = 0;
inline_mysql_cond_signal(*(int8 *)(local_20 + 0x20));
*(int8 *)(local_20 + 0x20) = 0;
}
*(long *)(param_1 + 0x68) = param_1 + 0x60;
*(long *)(param_1 + 0x88) = param_1 + 0x80;
*(int8 *)(param_1 + 0x80) = 0;
*(int8 *)(param_1 + 0x60) = 0;
if ((param_2 != '\0') && (*(long *)(param_1 + 0x90) != 0)) {
*(int4 *)(*(long *)(param_1 + 0x90) + 0x40) = 0xe;
}
inline_mysql_mutex_unlock(param_1 + 0x18);
return;
}
|
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.