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
|
|---|---|---|---|---|---|---|---|---|---|---|---|
59,600
|
POINTonE2_on_curve
|
corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/e2.c
|
static bool_t POINTonE2_on_curve(const POINTonE2 *p)
{
vec384x XXX, YY, BZ6;
limb_t inf = vec_is_zero(p->Z, sizeof(p->Z));
sqr_fp2(BZ6, p->Z);
mul_fp2(BZ6, BZ6, p->Z);
sqr_fp2(XXX, BZ6); /* Z^6 */
mul_by_b_onE2(BZ6, XXX); /* B*Z^6 */
sqr_fp2(XXX, p->X);
mul_fp2(XXX, XXX, p->X); /* X^3 */
add_fp2(XXX, XXX, BZ6); /* X^3 + B*Z^6 */
sqr_fp2(YY, p->Y); /* Y^2 */
return vec_is_equal(XXX, YY, sizeof(XXX)) | inf;
}
|
O0
|
c
|
POINTonE2_on_curve:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp # imm = 0x140
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
addq $0xc0, %rdi
movl $0x60, %esi
callq 0xa8cd0
movq %rax, -0x138(%rbp)
leaq -0x130(%rbp), %rdi
movq -0x8(%rbp), %rsi
addq $0xc0, %rsi
callq 0xb6750
leaq -0x130(%rbp), %rdi
leaq -0x130(%rbp), %rsi
movq -0x8(%rbp), %rdx
addq $0xc0, %rdx
callq 0xb66e0
leaq -0x70(%rbp), %rdi
leaq -0x130(%rbp), %rsi
callq 0xb6750
leaq -0x130(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0xbb770
leaq -0x70(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0xb6750
leaq -0x70(%rbp), %rdi
leaq -0x70(%rbp), %rsi
movq -0x8(%rbp), %rdx
callq 0xb66e0
leaq -0x70(%rbp), %rdi
leaq -0x70(%rbp), %rsi
leaq -0x130(%rbp), %rdx
callq 0xb64b0
leaq -0xd0(%rbp), %rdi
movq -0x8(%rbp), %rsi
addq $0x60, %rsi
callq 0xb6750
leaq -0x70(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
movl $0x60, %edx
callq 0xab4c0
orq -0x138(%rbp), %rax
addq $0x140, %rsp # imm = 0x140
popq %rbp
retq
nopl (%rax,%rax)
|
POINTonE2_on_curve:
push rbp
mov rbp, rsp
sub rsp, 140h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]
add rdi, 0C0h
mov esi, 60h ; '`'
call vec_is_zero
mov [rbp+var_138], rax
lea rdi, [rbp+var_130]
mov rsi, [rbp+var_8]
add rsi, 0C0h
call sqr_fp2
lea rdi, [rbp+var_130]
lea rsi, [rbp+var_130]
mov rdx, [rbp+var_8]
add rdx, 0C0h
call mul_fp2
lea rdi, [rbp+var_70]
lea rsi, [rbp+var_130]
call sqr_fp2
lea rdi, [rbp+var_130]
lea rsi, [rbp+var_70]
call mul_by_b_onE2
lea rdi, [rbp+var_70]
mov rsi, [rbp+var_8]
call sqr_fp2
lea rdi, [rbp+var_70]
lea rsi, [rbp+var_70]
mov rdx, [rbp+var_8]
call mul_fp2
lea rdi, [rbp+var_70]
lea rsi, [rbp+var_70]
lea rdx, [rbp+var_130]
call add_fp2
lea rdi, [rbp+var_D0]
mov rsi, [rbp+var_8]
add rsi, 60h ; '`'
call sqr_fp2
lea rdi, [rbp+var_70]
lea rsi, [rbp+var_D0]
mov edx, 60h ; '`'
call vec_is_equal
or rax, [rbp+var_138]
add rsp, 140h
pop rbp
retn
|
unsigned long long POINTonE2_on_curve(long long a1)
{
unsigned long long is_zero; // [rsp+8h] [rbp-138h]
_BYTE v3[96]; // [rsp+10h] [rbp-130h] BYREF
_BYTE v4[96]; // [rsp+70h] [rbp-D0h] BYREF
_BYTE v5[104]; // [rsp+D0h] [rbp-70h] BYREF
long long v6; // [rsp+138h] [rbp-8h]
v6 = a1;
is_zero = vec_is_zero(a1 + 192, 0x60uLL);
sqr_fp2(v3, a1 + 192);
mul_fp2(v3, v3, v6 + 192);
sqr_fp2(v5, v3);
mul_by_b_onE2(v3, v5);
sqr_fp2(v5, v6);
mul_fp2(v5, v5, v6);
add_fp2(v5, v5, v3);
sqr_fp2(v4, v6 + 96);
return is_zero | vec_is_equal((long long)v5, (long long)v4, 0x60uLL);
}
|
POINTonE2_on_curve:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x140
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0xc0
MOV ESI,0x60
CALL 0x001a8cd0
MOV qword ptr [RBP + -0x138],RAX
LEA RDI,[RBP + -0x130]
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0xc0
CALL 0x001b6750
LEA RDI,[RBP + -0x130]
LEA RSI,[RBP + -0x130]
MOV RDX,qword ptr [RBP + -0x8]
ADD RDX,0xc0
CALL 0x001b66e0
LEA RDI,[RBP + -0x70]
LEA RSI,[RBP + -0x130]
CALL 0x001b6750
LEA RDI,[RBP + -0x130]
LEA RSI,[RBP + -0x70]
CALL 0x001bb770
LEA RDI,[RBP + -0x70]
MOV RSI,qword ptr [RBP + -0x8]
CALL 0x001b6750
LEA RDI,[RBP + -0x70]
LEA RSI,[RBP + -0x70]
MOV RDX,qword ptr [RBP + -0x8]
CALL 0x001b66e0
LEA RDI,[RBP + -0x70]
LEA RSI,[RBP + -0x70]
LEA RDX,[RBP + -0x130]
CALL 0x001b64b0
LEA RDI,[RBP + -0xd0]
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0x60
CALL 0x001b6750
LEA RDI,[RBP + -0x70]
LEA RSI,[RBP + -0xd0]
MOV EDX,0x60
CALL 0x001ab4c0
OR RAX,qword ptr [RBP + -0x138]
ADD RSP,0x140
POP RBP
RET
|
ulong POINTonE2_on_curve(long param_1)
{
ulong uVar1;
ulong uVar2;
int1 local_138 [96];
int1 local_d8 [96];
int1 local_78 [104];
long local_10;
local_10 = param_1;
uVar1 = vec_is_zero(param_1 + 0xc0,0x60);
sqr_fp2(local_138,local_10 + 0xc0);
mul_fp2(local_138,local_138,local_10 + 0xc0);
sqr_fp2(local_78,local_138);
mul_by_b_onE2(local_138,local_78);
sqr_fp2(local_78,local_10);
mul_fp2(local_78,local_78,local_10);
add_fp2(local_78,local_78,local_138);
sqr_fp2(local_d8,local_10 + 0x60);
uVar2 = vec_is_equal(local_78,local_d8,0x60);
return uVar2 | uVar1;
}
|
|
59,601
|
my_strntod_mb2_or_mb4
|
eloqsql/strings/ctype-ucs2.c
|
static double
my_strntod_mb2_or_mb4(CHARSET_INFO *cs,
char *nptr, size_t length,
char **endptr, int *err)
{
char buf[256];
double res;
register char *b= buf;
register const uchar *s= (const uchar*) nptr;
const uchar *end;
my_wc_t wc;
my_charset_conv_mb_wc mb_wc= cs->cset->mb_wc;
int cnv;
*err= 0;
/* Cut too long strings */
if (length >= sizeof(buf))
length= sizeof(buf) - 1;
end= s + length;
while ((cnv= mb_wc(cs, &wc, s, end)) > 0)
{
s+= cnv;
if (wc > (int) (uchar) 'e' || !wc)
break; /* Can't be part of double */
*b++= (char) wc;
}
*endptr= b;
res= my_strtod(buf, endptr, err);
*endptr= nptr + cs->mbminlen * (size_t) (*endptr - buf);
return res;
}
|
O3
|
c
|
my_strntod_mb2_or_mb4:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp # imm = 0x128
movq %rcx, -0x150(%rbp)
movq %rsi, %rcx
movq %rdi, %r15
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq 0xb8(%rdi), %rax
movq 0x28(%rax), %rbx
movq %r8, -0x148(%rbp)
movl $0x0, (%r8)
movl $0xff, %r13d
cmpq %r13, %rdx
cmovbq %rdx, %r13
addq %rsi, %r13
leaq -0x140(%rbp), %rsi
movq %rcx, -0x138(%rbp)
movq %rcx, %rdx
movq %r13, %rcx
callq *%rbx
leaq -0x130(%rbp), %r12
testl %eax, %eax
jle 0x4ff4d
movq -0x138(%rbp), %r14
movq -0x140(%rbp), %rcx
leaq -0x1(%rcx), %rdx
cmpq $0x64, %rdx
ja 0x4ff4d
movl %eax, %eax
addq %rax, %r14
movb %cl, (%r12)
incq %r12
movq %r15, %rdi
leaq -0x140(%rbp), %rsi
movq %r14, %rdx
movq %r13, %rcx
callq *%rbx
testl %eax, %eax
jg 0x4ff1a
movq -0x150(%rbp), %rbx
movq %r12, (%rbx)
leaq -0x130(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
movq -0x148(%rbp), %rdx
callq 0x5fac8
movl 0x98(%r15), %eax
movq (%rbx), %rcx
subq %r14, %rcx
imulq %rax, %rcx
movq -0x138(%rbp), %rax
addq %rcx, %rax
movq %rax, (%rbx)
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x4ffaf
addq $0x128, %rsp # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x243e0
|
my_strntod_mb2_or_mb4:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 128h
mov [rbp+var_150], rcx
mov rcx, rsi
mov r15, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov rax, [rdi+0B8h]
mov rbx, [rax+28h]
mov [rbp+var_148], r8
mov dword ptr [r8], 0
mov r13d, 0FFh
cmp rdx, r13
cmovb r13, rdx
add r13, rsi
lea rsi, [rbp+var_140]
mov [rbp+var_138], rcx
mov rdx, rcx
mov rcx, r13
call rbx
lea r12, [rbp+var_130]
test eax, eax
jle short loc_4FF4D
mov r14, [rbp+var_138]
loc_4FF1A:
mov rcx, [rbp+var_140]
lea rdx, [rcx-1]
cmp rdx, 64h ; 'd'
ja short loc_4FF4D
mov eax, eax
add r14, rax
mov [r12], cl
inc r12
mov rdi, r15
lea rsi, [rbp+var_140]
mov rdx, r14
mov rcx, r13
call rbx
test eax, eax
jg short loc_4FF1A
loc_4FF4D:
mov rbx, [rbp+var_150]
mov [rbx], r12
lea r14, [rbp+var_130]
mov rdi, r14
mov rsi, rbx
mov rdx, [rbp+var_148]
call my_strtod
mov eax, [r15+98h]
mov rcx, [rbx]
sub rcx, r14
imul rcx, rax
mov rax, [rbp+var_138]
add rax, rcx
mov [rbx], rax
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_4FFAF
add rsp, 128h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_4FFAF:
call ___stack_chk_fail
|
unsigned long long my_strntod_mb2_or_mb4(long long a1, long long a2, unsigned long long a3, _QWORD *a4, _DWORD *a5)
{
long long ( *v5)(long long, long long *, long long, long long); // rbx
long long v6; // r13
long long v7; // r13
int v8; // eax
_BYTE *v9; // r12
long long v10; // r14
long long v14; // [rsp+10h] [rbp-140h] BYREF
long long v15; // [rsp+18h] [rbp-138h]
_BYTE v16[256]; // [rsp+20h] [rbp-130h] BYREF
unsigned long long v17; // [rsp+120h] [rbp-30h]
v17 = __readfsqword(0x28u);
v5 = *(long long ( **)(long long, long long *, long long, long long))(*(_QWORD *)(a1 + 184) + 40LL);
*a5 = 0;
v6 = 255LL;
if ( a3 < 0xFF )
v6 = a3;
v7 = a2 + v6;
v15 = a2;
v8 = v5(a1, &v14, a2, v7);
v9 = v16;
if ( v8 > 0 )
{
v10 = v15;
do
{
if ( (unsigned long long)(v14 - 1) > 0x64 )
break;
v10 += (unsigned int)v8;
*v9++ = v14;
v8 = v5(a1, &v14, v10, v7);
}
while ( v8 > 0 );
}
*a4 = v9;
my_strtod(v16, a4, a5);
*a4 = *(unsigned int *)(a1 + 152) * (*a4 - (_QWORD)v16) + v15;
return __readfsqword(0x28u);
}
|
my_strntod_mb2_or_mb4:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x128
MOV qword ptr [RBP + -0x150],RCX
MOV RCX,RSI
MOV R15,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RDI + 0xb8]
MOV RBX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x148],R8
MOV dword ptr [R8],0x0
MOV R13D,0xff
CMP RDX,R13
CMOVC R13,RDX
ADD R13,RSI
LEA RSI,[RBP + -0x140]
MOV qword ptr [RBP + -0x138],RCX
MOV RDX,RCX
MOV RCX,R13
CALL RBX
LEA R12,[RBP + -0x130]
TEST EAX,EAX
JLE 0x0014ff4d
MOV R14,qword ptr [RBP + -0x138]
LAB_0014ff1a:
MOV RCX,qword ptr [RBP + -0x140]
LEA RDX,[RCX + -0x1]
CMP RDX,0x64
JA 0x0014ff4d
MOV EAX,EAX
ADD R14,RAX
MOV byte ptr [R12],CL
INC R12
MOV RDI,R15
LEA RSI,[RBP + -0x140]
MOV RDX,R14
MOV RCX,R13
CALL RBX
TEST EAX,EAX
JG 0x0014ff1a
LAB_0014ff4d:
MOV RBX,qword ptr [RBP + -0x150]
MOV qword ptr [RBX],R12
LEA R14,[RBP + -0x130]
MOV RDI,R14
MOV RSI,RBX
MOV RDX,qword ptr [RBP + -0x148]
CALL 0x0015fac8
MOV EAX,dword ptr [R15 + 0x98]
MOV RCX,qword ptr [RBX]
SUB RCX,R14
IMUL RCX,RAX
MOV RAX,qword ptr [RBP + -0x138]
ADD RAX,RCX
MOV qword ptr [RBX],RAX
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x0014ffaf
ADD RSP,0x128
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0014ffaf:
CALL 0x001243e0
|
void my_strntod_mb2_or_mb4
(long param_1,long param_2,ulong param_3,long *param_4,int4 *param_5)
{
code *pcVar1;
uint uVar2;
int1 *puVar3;
ulong uVar4;
long lVar5;
long in_FS_OFFSET;
long local_148;
long local_140;
int1 local_138 [256];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
pcVar1 = *(code **)(*(long *)(param_1 + 0xb8) + 0x28);
*param_5 = 0;
uVar4 = 0xff;
if (param_3 < 0xff) {
uVar4 = param_3;
}
local_140 = param_2;
uVar2 = (*pcVar1)(param_1,&local_148,param_2,uVar4 + param_2);
puVar3 = local_138;
lVar5 = local_140;
while ((0 < (int)uVar2 && (local_148 - 1U < 0x65))) {
lVar5 = lVar5 + (ulong)uVar2;
*puVar3 = (char)local_148;
puVar3 = puVar3 + 1;
uVar2 = (*pcVar1)(param_1,&local_148,lVar5,uVar4 + param_2);
}
*param_4 = (long)puVar3;
my_strtod(local_138,param_4,param_5);
*param_4 = local_140 + (*param_4 - (long)local_138) * (ulong)*(uint *)(param_1 + 0x98);
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
59,602
|
spell_pal_blessing_of_faith::Validate(SpellInfo const*)
|
SylCore-WoTLK/src/server/scripts/Spells/spell_paladin.cpp
|
bool Validate(SpellInfo const* /*spellInfo*/) override
{
return ValidateSpellInfo(
{
SPELL_PALADIN_BLESSING_OF_LOWER_CITY_DRUID,
SPELL_PALADIN_BLESSING_OF_LOWER_CITY_PALADIN,
SPELL_PALADIN_BLESSING_OF_LOWER_CITY_PRIEST,
SPELL_PALADIN_BLESSING_OF_LOWER_CITY_SHAMAN
});
}
|
O3
|
cpp
|
spell_pal_blessing_of_faith::Validate(SpellInfo const*):
pushq %r14
pushq %rbx
subq $0x18, %rsp
movaps 0x8492f6(%rip), %xmm0 # 0x1121010
movaps %xmm0, (%rsp)
movb $0x1, %bl
xorl %r14d, %r14d
movl (%rsp,%r14), %edi
callq 0xedb700
andb %al, %bl
addq $0x4, %r14
cmpq $0x10, %r14
jne 0x8d7d23
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
|
_ZN27spell_pal_blessing_of_faith8ValidateEPK9SpellInfo:
push r14
push rbx
sub rsp, 18h
movaps xmm0, cs:xmmword_1121010
movaps xmmword ptr [rsp+28h+var_28], xmm0
mov bl, 1
xor r14d, r14d
loc_8D7D23:
mov edi, dword ptr [rsp+r14+28h+var_28]; this
call _ZN12_SpellScript18_ValidateSpellInfoEj; _SpellScript::_ValidateSpellInfo(uint)
and bl, al
add r14, 4
cmp r14, 10h
jnz short loc_8D7D23
mov eax, ebx
add rsp, 18h
pop rbx
pop r14
retn
|
long long spell_pal_blessing_of_faith::Validate(spell_pal_blessing_of_faith *this, const SpellInfo *a2)
{
unsigned int v2; // ebx
long long i; // r14
_SpellScript *v5[2]; // [rsp+0h] [rbp-28h]
*(_OWORD *)v5 = xmmword_1121010;
LOBYTE(v2) = 1;
for ( i = 0LL; i != 16; i += 4LL )
LOBYTE(v2) = _SpellScript::_ValidateSpellInfo((_SpellScript *)*(unsigned int *)((char *)v5 + i), (unsigned int)a2) & v2;
return v2;
}
|
Query<unsigned_int&,unsigned_int>:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x60
MOV RBX,RDI
TEST RDX,RDX
JZ 0x008d7d7d
MOV R12,RCX
MOV R15,RDX
MOV R14,RSI
MOV EAX,dword ptr [R8]
MOV ECX,dword ptr [R9]
LEA R8,[RSP + 0x40]
MOV qword ptr [R8],RAX
MOV qword ptr [R8 + 0x10],RCX
LAB_008d7d3c:
MOV RDI,RSP
MOV ECX,0x22
MOV RSI,R12
CALL 0x011b97cb
LAB_008d7d4c:
MOV RCX,qword ptr [RSP]
MOV RDX,qword ptr [RSP + 0x8]
LAB_008d7d55:
MOV RDI,RBX
MOV RSI,R14
CALL 0x0110dd2e
LAB_008d7d60:
LEA RAX,[RSP + 0x10]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x008d7d83
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x011a22f0
LAB_008d7d7d:
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
LAB_008d7d83:
MOV RAX,RBX
ADD RSP,0x60
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* std::shared_ptr<ResultSet> DatabaseWorkerPool<CharacterDatabaseConnection>::Query<unsigned int&,
unsigned int>(std::basic_string_view<char, std::char_traits<char> >, unsigned int&, unsigned
int&&) */
int8 *
DatabaseWorkerPool<CharacterDatabaseConnection>::Query<unsigned_int&,unsigned_int>
(int8 *param_1,int8 param_2,long param_3,int8 param_4,uint *param_5,
uint *param_6)
{
long *local_88;
int8 local_80;
long local_78 [6];
ulong local_48;
ulong local_38;
if (param_3 == 0) {
*param_1 = 0;
param_1[1] = 0;
}
else {
local_48 = (ulong)*param_5;
local_38 = (ulong)*param_6;
/* try { // try from 008d7d3c to 008d7d4b has its CatchHandler @ 008d7dba */
fmt::v10::vformat_abi_cxx11_(&local_88,param_4,param_3,0x22);
/* try { // try from 008d7d55 to 008d7d5f has its CatchHandler @ 008d7d94 */
Query(param_1,param_2,local_80,local_88);
if (local_88 != local_78) {
/* WARNING: Subroutine does not return */
operator_delete(local_88,local_78[0] + 1);
}
}
return param_1;
}
|
|
59,603
|
precompute_lines
|
corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/pairing.c
|
static void precompute_lines(vec384fp6 Qlines[68], const POINTonE2_affine *Q)
{
POINTonE2 T[1];
vec_copy(T->X, Q->X, 2*sizeof(T->X));
vec_copy(T->Z, BLS12_381_Rx.p2, sizeof(T->Z));
line_dbl(Qlines[0], T, T); /* 0x2 */
pre_add_n_dbl(&Qlines[1], T, Q, 2); /* ..0xc */
pre_add_n_dbl(&Qlines[4], T, Q, 3); /* ..0x68 */
pre_add_n_dbl(&Qlines[8], T, Q, 9); /* ..0xd200 */
pre_add_n_dbl(&Qlines[18], T, Q, 32); /* ..0xd20100000000 */
pre_add_n_dbl(&Qlines[51], T, Q, 16); /* ..0xd201000000010000 */
}
|
O0
|
c
|
precompute_lines:
pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp # imm = 0x130
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq -0x130(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl $0xc0, %edx
callq 0x23620
leaq -0x130(%rbp), %rdi
addq $0xc0, %rdi
leaq 0x29dcb(%rip), %rsi # 0x54d28
movl $0x60, %edx
callq 0x23620
movq -0x8(%rbp), %rdi
leaq -0x130(%rbp), %rsi
leaq -0x130(%rbp), %rdx
callq 0x390b0
movq -0x8(%rbp), %rdi
addq $0x120, %rdi # imm = 0x120
leaq -0x130(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl $0x2, %ecx
callq 0x39750
movq -0x8(%rbp), %rdi
addq $0x480, %rdi # imm = 0x480
leaq -0x130(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl $0x3, %ecx
callq 0x39750
movq -0x8(%rbp), %rdi
addq $0x900, %rdi # imm = 0x900
leaq -0x130(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl $0x9, %ecx
callq 0x39750
movq -0x8(%rbp), %rdi
addq $0x1440, %rdi # imm = 0x1440
leaq -0x130(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl $0x20, %ecx
callq 0x39750
movq -0x8(%rbp), %rdi
addq $0x3960, %rdi # imm = 0x3960
leaq -0x130(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl $0x10, %ecx
callq 0x39750
addq $0x130, %rsp # imm = 0x130
popq %rbp
retq
nopw (%rax,%rax)
|
precompute_lines:
push rbp
mov rbp, rsp
sub rsp, 130h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
lea rdi, [rbp+var_130]
mov rsi, [rbp+var_10]
mov edx, 0C0h
call vec_copy
lea rdi, [rbp+var_130]
add rdi, 0C0h
lea rsi, BLS12_381_Rx
mov edx, 60h ; '`'
call vec_copy
mov rdi, [rbp+var_8]
lea rsi, [rbp+var_130]
lea rdx, [rbp+var_130]
call line_dbl
mov rdi, [rbp+var_8]
add rdi, 120h
lea rsi, [rbp+var_130]
mov rdx, [rbp+var_10]
mov ecx, 2
call pre_add_n_dbl
mov rdi, [rbp+var_8]
add rdi, 480h
lea rsi, [rbp+var_130]
mov rdx, [rbp+var_10]
mov ecx, 3
call pre_add_n_dbl
mov rdi, [rbp+var_8]
add rdi, 900h
lea rsi, [rbp+var_130]
mov rdx, [rbp+var_10]
mov ecx, 9
call pre_add_n_dbl
mov rdi, [rbp+var_8]
add rdi, 1440h
lea rsi, [rbp+var_130]
mov rdx, [rbp+var_10]
mov ecx, 20h ; ' '
call pre_add_n_dbl
mov rdi, [rbp+var_8]
add rdi, 3960h
lea rsi, [rbp+var_130]
mov rdx, [rbp+var_10]
mov ecx, 10h
call pre_add_n_dbl
add rsp, 130h
pop rbp
retn
|
long long precompute_lines(long long a1, long long a2)
{
_BYTE v3[192]; // [rsp+0h] [rbp-130h] BYREF
long long v4; // [rsp+C0h] [rbp-70h] BYREF
long long v5; // [rsp+120h] [rbp-10h]
long long v6; // [rsp+128h] [rbp-8h]
v6 = a1;
v5 = a2;
vec_copy((long long)v3, a2, 0xC0uLL);
vec_copy((long long)&v4, (long long)&BLS12_381_Rx, 0x60uLL);
line_dbl(v6, v3, v3);
pre_add_n_dbl(v6 + 288, v3, v5, 2LL);
pre_add_n_dbl(v6 + 1152, v3, v5, 3LL);
pre_add_n_dbl(v6 + 2304, v3, v5, 9LL);
pre_add_n_dbl(v6 + 5184, v3, v5, 32LL);
return pre_add_n_dbl(v6 + 14688, v3, v5, 16LL);
}
|
precompute_lines:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x130
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
LEA RDI,[RBP + -0x130]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,0xc0
CALL 0x00123620
LEA RDI,[RBP + -0x130]
ADD RDI,0xc0
LEA RSI,[0x154d28]
MOV EDX,0x60
CALL 0x00123620
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[RBP + -0x130]
LEA RDX,[RBP + -0x130]
CALL 0x001390b0
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x120
LEA RSI,[RBP + -0x130]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,0x2
CALL 0x00139750
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x480
LEA RSI,[RBP + -0x130]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,0x3
CALL 0x00139750
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x900
LEA RSI,[RBP + -0x130]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,0x9
CALL 0x00139750
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x1440
LEA RSI,[RBP + -0x130]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,0x20
CALL 0x00139750
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x3960
LEA RSI,[RBP + -0x130]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,0x10
CALL 0x00139750
ADD RSP,0x130
POP RBP
RET
|
void precompute_lines(long param_1,int8 param_2)
{
int1 local_138 [192];
int1 auStack_78 [96];
int8 local_18;
long local_10;
local_18 = param_2;
local_10 = param_1;
vec_copy(local_138,param_2,0xc0);
vec_copy(auStack_78,BLS12_381_Rx,0x60);
line_dbl(local_10,local_138,local_138);
pre_add_n_dbl(local_10 + 0x120,local_138,local_18,2);
pre_add_n_dbl(local_10 + 0x480,local_138,local_18,3);
pre_add_n_dbl(local_10 + 0x900,local_138,local_18,9);
pre_add_n_dbl(local_10 + 0x1440,local_138,local_18,0x20);
pre_add_n_dbl(local_10 + 0x3960,local_138,local_18,0x10);
return;
}
|
|
59,604
|
my_hash_first
|
eloqsql/mysys/hash.c
|
uchar* my_hash_first(const HASH *hash, const uchar *key, size_t length,
HASH_SEARCH_STATE *current_record)
{
uchar *res;
DBUG_ASSERT(my_hash_inited(hash));
res= my_hash_first_from_hash_value(hash,
hash->hash_function(hash->charset, key,
length ? length :
hash->key_length),
key, length, current_record);
return res;
}
|
O3
|
c
|
my_hash_first:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x58(%rdi), %rax
movq 0x68(%rdi), %rdi
movq %rdx, %r12
testq %rdx, %rdx
jne 0xaf430
movq 0x8(%r15), %rdx
xorl %r12d, %r12d
movq %r14, %rsi
callq *%rax
movq %r15, %rdi
movl %eax, %esi
movq %r14, %rdx
movq %r12, %rcx
movq %rbx, %r8
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xaf467
|
my_hash_first:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov rbx, rcx
mov r14, rsi
mov r15, rdi
mov rax, [rdi+58h]
mov rdi, [rdi+68h]
mov r12, rdx
test rdx, rdx
jnz short loc_AF430
mov rdx, [r15+8]
xor r12d, r12d
loc_AF430:
mov rsi, r14
call rax
mov rdi, r15
mov esi, eax
mov rdx, r14
mov rcx, r12
mov r8, rbx
pop rbx
pop r12
pop r14
pop r15
pop rbp
jmp my_hash_first_from_hash_value
|
long long my_hash_first(_QWORD *a1, long long a2, long long a3, long long a4)
{
long long ( *v6)(long long, long long, long long); // rax
long long v7; // rdi
long long v8; // r12
unsigned int v9; // eax
v6 = (long long ( *)(long long, long long, long long))a1[11];
v7 = a1[13];
v8 = a3;
if ( !a3 )
{
a3 = a1[1];
v8 = 0LL;
}
v9 = v6(v7, a2, a3);
return my_hash_first_from_hash_value(a1, v9, a2, v8, a4);
}
|
my_hash_first:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV RBX,RCX
MOV R14,RSI
MOV R15,RDI
MOV RAX,qword ptr [RDI + 0x58]
MOV RDI,qword ptr [RDI + 0x68]
MOV R12,RDX
TEST RDX,RDX
JNZ 0x001af430
MOV RDX,qword ptr [R15 + 0x8]
XOR R12D,R12D
LAB_001af430:
MOV RSI,R14
CALL RAX
MOV RDI,R15
MOV ESI,EAX
MOV RDX,R14
MOV RCX,R12
MOV R8,RBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
JMP 0x001af467
|
void my_hash_first(long param_1,int8 param_2,long param_3,int8 param_4)
{
int4 uVar1;
long lVar2;
lVar2 = param_3;
if (param_3 == 0) {
param_3 = *(long *)(param_1 + 8);
lVar2 = 0;
}
uVar1 = (**(code **)(param_1 + 0x58))(*(int8 *)(param_1 + 0x68),param_2,param_3);
my_hash_first_from_hash_value(param_1,uVar1,param_2,lVar2,param_4);
return;
}
|
|
59,605
|
common_log::common_log(unsigned long)
|
monkey531[P]llama/common/log.cpp
|
common_log(size_t capacity) {
file = nullptr;
prefix = false;
timestamps = false;
running = false;
t_start = t_us();
// initial message size - will be expanded if longer messages arrive
entries.resize(capacity);
for (auto & entry : entries) {
entry.msg.resize(256);
}
head = 0;
tail = 0;
resume();
}
|
O3
|
cpp
|
common_log::common_log(unsigned long):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r12
movq %rdi, %rbx
leaq 0x30(%rdi), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movq %r14, %rdi
callq 0x1bc20
leaq 0x78(%rbx), %r15
xorl %eax, %eax
movq %rax, 0x88(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x78(%rbx)
movups %xmm0, 0xb0(%rbx)
movq %rax, 0xc0(%rbx)
movq %rax, 0x60(%rbx)
movl $0x0, 0x67(%rbx)
callq 0x1b090
movabsq $0x20c49ba5e353f7cf, %rcx # imm = 0x20C49BA5E353F7CF
imulq %rcx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x7, %rdx
addq %rax, %rdx
movq %rdx, 0x70(%rbx)
movq %r15, %rdi
movq %r12, %rsi
callq 0xcc394
movq 0x78(%rbx), %r12
movq 0x80(%rbx), %r13
cmpq %r13, %r12
je 0xcc330
leaq 0x10(%r12), %rdi
movl $0x100, %esi # imm = 0x100
callq 0x7e710
addq $0x30, %r12
jmp 0xcc316
xorps %xmm0, %xmm0
movups %xmm0, 0x90(%rbx)
movq %rbx, %rdi
callq 0xcbdb2
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0xcc34e
movq %rax, %r12
leaq 0xb0(%rbx), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xcc36f
movq 0xc0(%rbx), %rsi
subq %rdi, %rsi
callq 0x1b8b0
movq %r15, %rdi
callq 0xcc3d6
movq %r14, %rdi
callq 0x1bfe0
cmpq $0x0, 0x28(%rbx)
jne 0xcc38e
movq %r12, %rdi
callq 0x1bf70
callq 0x1b210
nop
|
_ZN10common_logC2Em:
push r15
push r14
push r13
push r12
push rbx
mov r12, rsi
mov rbx, rdi
lea r14, [rdi+30h]
xorps xmm0, xmm0
movups xmmword ptr [rdi+20h], xmm0
movups xmmword ptr [rdi+10h], xmm0
movups xmmword ptr [rdi], xmm0
mov rdi, r14; this
call __ZNSt18condition_variableC1Ev; std::condition_variable::condition_variable(void)
lea r15, [rbx+78h]
xor eax, eax
mov [rbx+88h], rax
xorps xmm0, xmm0
movups xmmword ptr [rbx+78h], xmm0
movups xmmword ptr [rbx+0B0h], xmm0
mov [rbx+0C0h], rax
mov [rbx+60h], rax
mov dword ptr [rbx+67h], 0
call __ZNSt6chrono3_V212system_clock3nowEv; std::chrono::_V2::system_clock::now(void)
mov rcx, 20C49BA5E353F7CFh
imul rcx
mov rax, rdx
shr rax, 3Fh
sar rdx, 7
add rdx, rax
mov [rbx+70h], rdx
mov rdi, r15
mov rsi, r12
call _ZNSt6vectorI16common_log_entrySaIS0_EE6resizeEm; std::vector<common_log_entry>::resize(ulong)
mov r12, [rbx+78h]
mov r13, [rbx+80h]
loc_CC316:
cmp r12, r13
jz short loc_CC330
lea rdi, [r12+10h]
mov esi, 100h
call _ZNSt6vectorIcSaIcEE6resizeEm; std::vector<char>::resize(ulong)
add r12, 30h ; '0'
jmp short loc_CC316
loc_CC330:
xorps xmm0, xmm0
movups xmmword ptr [rbx+90h], xmm0
mov rdi, rbx; this
call _ZN10common_log6resumeEv; common_log::resume(void)
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
jmp short $+2
loc_CC34E:
mov r12, rax
lea rax, [rbx+0B0h]
mov rdi, [rax]; void *
test rdi, rdi
jz short loc_CC36F
mov rsi, [rbx+0C0h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_CC36F:
mov rdi, r15
call _ZNSt6vectorI16common_log_entrySaIS0_EED2Ev; std::vector<common_log_entry>::~vector()
mov rdi, r14; this
call __ZNSt18condition_variableD1Ev; std::condition_variable::~condition_variable()
cmp qword ptr [rbx+28h], 0
jnz short loc_CC38E
mov rdi, r12
call __Unwind_Resume
loc_CC38E:
call __ZSt9terminatev; std::terminate(void)
|
void common_log::common_log(common_log *this, long long a2)
{
std::condition_variable *v3; // rdi
long long v4; // r12
long long v5; // r13
*((_OWORD *)this + 2) = 0LL;
*((_OWORD *)this + 1) = 0LL;
*(_OWORD *)this = 0LL;
v3 = (common_log *)((char *)this + 48);
std::condition_variable::condition_variable(v3);
*((_QWORD *)this + 17) = 0LL;
*(_OWORD *)((char *)this + 120) = 0LL;
*((_OWORD *)this + 11) = 0LL;
*((_QWORD *)this + 24) = 0LL;
*((_QWORD *)this + 12) = 0LL;
*(_DWORD *)((char *)this + 103) = 0;
*((_QWORD *)this + 14) = std::chrono::_V2::system_clock::now(v3) / 1000LL;
std::vector<common_log_entry>::resize((char *)this + 120, a2);
v4 = *((_QWORD *)this + 15);
v5 = *((_QWORD *)this + 16);
while ( v4 != v5 )
{
std::vector<char>::resize((_QWORD *)(v4 + 16), 0x100uLL);
v4 += 48LL;
}
*((_OWORD *)this + 9) = 0LL;
common_log::resume(this);
}
|
common_log:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV R12,RSI
MOV RBX,RDI
LEA R14,[RDI + 0x30]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x20],XMM0
MOVUPS xmmword ptr [RDI + 0x10],XMM0
MOVUPS xmmword ptr [RDI],XMM0
MOV RDI,R14
CALL 0x0011bc20
LEA R15,[RBX + 0x78]
XOR EAX,EAX
MOV qword ptr [RBX + 0x88],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x78],XMM0
MOVUPS xmmword ptr [RBX + 0xb0],XMM0
MOV qword ptr [RBX + 0xc0],RAX
MOV qword ptr [RBX + 0x60],RAX
MOV dword ptr [RBX + 0x67],0x0
CALL 0x0011b090
MOV RCX,0x20c49ba5e353f7cf
IMUL RCX
MOV RAX,RDX
SHR RAX,0x3f
SAR RDX,0x7
ADD RDX,RAX
MOV qword ptr [RBX + 0x70],RDX
LAB_001cc300:
MOV RDI,R15
MOV RSI,R12
CALL 0x001cc394
MOV R12,qword ptr [RBX + 0x78]
MOV R13,qword ptr [RBX + 0x80]
LAB_001cc316:
CMP R12,R13
JZ 0x001cc330
LEA RDI,[R12 + 0x10]
LAB_001cc320:
MOV ESI,0x100
CALL 0x0017e710
ADD R12,0x30
JMP 0x001cc316
LAB_001cc330:
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x90],XMM0
LAB_001cc33a:
MOV RDI,RBX
CALL 0x001cbdb2
LAB_001cc342:
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* common_log::common_log(unsigned long) */
void __thiscall common_log::common_log(common_log *this,ulong param_1)
{
long lVar1;
long lVar2;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
std::condition_variable::condition_variable((condition_variable *)(this + 0x30));
*(int8 *)(this + 0x88) = 0;
*(int8 *)(this + 0x78) = 0;
*(int8 *)(this + 0x80) = 0;
*(int8 *)(this + 0xb0) = 0;
*(int8 *)(this + 0xb8) = 0;
*(int8 *)(this + 0xc0) = 0;
*(int8 *)(this + 0x60) = 0;
*(int4 *)(this + 0x67) = 0;
lVar2 = std::chrono::_V2::system_clock::now();
*(long *)(this + 0x70) = lVar2 / 1000;
/* try { // try from 001cc300 to 001cc30a has its CatchHandler @ 001cc34c */
std::vector<common_log_entry,std::allocator<common_log_entry>>::resize
((vector<common_log_entry,std::allocator<common_log_entry>> *)(this + 0x78),param_1);
lVar1 = *(long *)(this + 0x80);
for (lVar2 = *(long *)(this + 0x78); lVar2 != lVar1; lVar2 = lVar2 + 0x30) {
/* try { // try from 001cc320 to 001cc329 has its CatchHandler @ 001cc34e */
std::vector<char,std::allocator<char>>::resize
((vector<char,std::allocator<char>> *)(lVar2 + 0x10),0x100);
}
*(int8 *)(this + 0x90) = 0;
*(int8 *)(this + 0x98) = 0;
/* try { // try from 001cc33a to 001cc341 has its CatchHandler @ 001cc34c */
resume(this);
return;
}
|
|
59,606
|
void nlohmann::json_abi_v3_11_3::detail::int_to_string<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, unsigned long)
|
monkey531[P]llama/common/json.hpp
|
void int_to_string( string_type& target, std::size_t value )
{
// For ADL
using std::to_string;
target = to_string(value);
}
|
O3
|
cpp
|
void nlohmann::json_abi_v3_11_3::detail::int_to_string<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, unsigned long):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movl $0x1, %esi
cmpq $0xa, %r14
jb 0xad066
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r14, %rcx
cmpq $0x63, %rcx
jbe 0xad05f
cmpq $0x3e7, %rcx # imm = 0x3E7
jbe 0xad064
cmpq $0x2710, %rcx # imm = 0x2710
jb 0xad066
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx # imm = 0x1869F
movq %rdx, %rcx
ja 0xad029
addl $-0x3, %esi
jmp 0xad066
addl $-0x2, %esi
jmp 0xad066
decl %esi
movl %esi, %esi
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x8(%rsp), %r15
movq %r15, %rdi
xorl %edx, %edx
callq 0x1aa40
movq (%r15), %rdi
movl 0x8(%r15), %esi
movq %r14, %rdx
callq 0x5d425
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1aac0
movq (%r15), %rdi
cmpq %r12, %rdi
je 0xad0b0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8f0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
|
_ZN8nlohmann16json_abi_v3_11_36detail13int_to_stringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRT_m:
push r15
push r14
push r12
push rbx
sub rsp, 28h
mov r14, rsi
mov rbx, rdi
mov esi, 1
cmp r14, 0Ah
jb short loc_AD066
mov esi, 4
mov rdi, 346DC5D63886594Bh
mov rcx, r14
loc_AD029:
cmp rcx, 63h ; 'c'
jbe short loc_AD05F
cmp rcx, 3E7h
jbe short loc_AD064
cmp rcx, 2710h
jb short loc_AD066
mov rax, rcx
mul rdi
shr rdx, 0Bh
add esi, 4
cmp rcx, 1869Fh
mov rcx, rdx
ja short loc_AD029
add esi, 0FFFFFFFDh
jmp short loc_AD066
loc_AD05F:
add esi, 0FFFFFFFEh
jmp short loc_AD066
loc_AD064:
dec esi
loc_AD066:
mov esi, esi
lea r12, [rsp+48h+var_30]
mov [r12-10h], r12
lea r15, [rsp+48h+var_40]
mov rdi, r15
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char)
mov rdi, [r15]
mov esi, [r15+8]
mov rdx, r14
call _ZNSt8__detail18__to_chars_10_implImEEvPcjT_; std::__detail::__to_chars_10_impl<ulong>(char *,uint,ulong)
mov rdi, rbx
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [r15]; void *
cmp rdi, r12
jz short loc_AD0B0
mov rsi, [rsp+48h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AD0B0:
add rsp, 28h
pop rbx
pop r12
pop r14
pop r15
retn
|
void nlohmann::json_abi_v3_11_3::detail::int_to_string<std::string>(long long a1, unsigned long long a2)
{
unsigned int v3; // esi
unsigned long long v4; // rcx
bool v5; // cc
char *v6; // [rsp+8h] [rbp-40h] BYREF
int v7; // [rsp+10h] [rbp-38h]
_QWORD v8[6]; // [rsp+18h] [rbp-30h] BYREF
v3 = 1;
if ( a2 >= 0xA )
{
v3 = 4;
v4 = a2;
while ( 1 )
{
if ( v4 <= 0x63 )
{
v3 -= 2;
goto LABEL_10;
}
if ( v4 <= 0x3E7 )
break;
if ( v4 < 0x2710 )
goto LABEL_10;
v3 += 4;
v5 = v4 <= 0x1869F;
v4 /= 0x2710uLL;
if ( v5 )
{
v3 -= 3;
goto LABEL_10;
}
}
--v3;
}
LABEL_10:
v6 = (char *)v8;
std::string::_M_construct(&v6, v3, 0LL);
std::__detail::__to_chars_10_impl<unsigned long>(v6, v7, a2);
std::string::operator=(a1, &v6);
if ( v6 != (char *)v8 )
operator delete(v6, v8[0] + 1LL);
}
|
int_to_string<std::__cxx11::string>:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R14,RSI
MOV RBX,RDI
MOV ESI,0x1
CMP R14,0xa
JC 0x001ad066
MOV ESI,0x4
MOV RDI,0x346dc5d63886594b
MOV RCX,R14
LAB_001ad029:
CMP RCX,0x63
JBE 0x001ad05f
CMP RCX,0x3e7
JBE 0x001ad064
CMP RCX,0x2710
JC 0x001ad066
MOV RAX,RCX
MUL RDI
SHR RDX,0xb
ADD ESI,0x4
CMP RCX,0x1869f
MOV RCX,RDX
JA 0x001ad029
ADD ESI,-0x3
JMP 0x001ad066
LAB_001ad05f:
ADD ESI,-0x2
JMP 0x001ad066
LAB_001ad064:
DEC ESI
LAB_001ad066:
MOV ESI,ESI
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
LEA R15,[RSP + 0x8]
MOV RDI,R15
XOR EDX,EDX
CALL 0x0011aa40
MOV RDI,qword ptr [R15]
MOV ESI,dword ptr [R15 + 0x8]
MOV RDX,R14
CALL 0x0015d425
MOV RDI,RBX
MOV RSI,R15
CALL 0x0011aac0
MOV RDI,qword ptr [R15]
CMP RDI,R12
JZ 0x001ad0b0
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011a8f0
LAB_001ad0b0:
ADD RSP,0x28
POP RBX
POP R12
POP R14
POP R15
RET
|
/* void nlohmann::json_abi_v3_11_3::detail::int_to_string<std::__cxx11::string
>(std::__cxx11::string&, unsigned long) */
void nlohmann::json_abi_v3_11_3::detail::int_to_string<std::__cxx11::string>
(string *param_1,ulong param_2)
{
bool bVar1;
char cVar2;
ulong uVar3;
char cVar4;
long *local_40;
uint local_38;
long local_30 [2];
cVar4 = '\x01';
if (9 < param_2) {
uVar3 = param_2;
cVar2 = '\x04';
do {
cVar4 = cVar2;
if (uVar3 < 100) {
cVar4 = cVar4 + -2;
goto LAB_001ad066;
}
if (uVar3 < 1000) {
cVar4 = cVar4 + -1;
goto LAB_001ad066;
}
if (uVar3 < 10000) goto LAB_001ad066;
bVar1 = 99999 < uVar3;
uVar3 = uVar3 / 10000;
cVar2 = cVar4 + '\x04';
} while (bVar1);
cVar4 = cVar4 + '\x01';
}
LAB_001ad066:
local_40 = local_30;
std::__cxx11::string::_M_construct((ulong)&local_40,cVar4);
std::__detail::__to_chars_10_impl<unsigned_long>((char *)local_40,local_38,param_2);
std::__cxx11::string::operator=(param_1,(string *)&local_40);
if (local_40 != local_30) {
operator_delete(local_40,local_30[0] + 1);
}
return;
}
|
|
59,607
|
google::protobuf::compiler::java::ImmutableEnumOneofFieldGenerator::GenerateBuilderMembers(google::protobuf::io::Printer*) const
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/java/enum_field.cc
|
void ImmutableEnumOneofFieldGenerator::GenerateBuilderMembers(
io::Printer* printer) const {
GOOGLE_DCHECK(HasHazzer(descriptor_));
WriteFieldAccessorDocComment(printer, descriptor_, HAZZER);
printer->Print(variables_,
"@java.lang.Override\n"
"$deprecation$public boolean ${$has$capitalized_name$$}$() {\n"
" return $has_oneof_case_message$;\n"
"}\n");
printer->Annotate("{", "}", descriptor_);
if (SupportUnknownEnumValue(descriptor_->file())) {
WriteFieldEnumValueAccessorDocComment(printer, descriptor_, GETTER);
printer->Print(
variables_,
"@java.lang.Override\n"
"$deprecation$public int ${$get$capitalized_name$Value$}$() {\n"
" if ($has_oneof_case_message$) {\n"
" return ((java.lang.Integer) $oneof_name$_).intValue();\n"
" }\n"
" return $default_number$;\n"
"}\n");
printer->Annotate("{", "}", descriptor_);
WriteFieldEnumValueAccessorDocComment(printer, descriptor_, SETTER,
/* builder */ true);
printer->Print(variables_,
"$deprecation$public Builder "
"${$set$capitalized_name$Value$}$(int value) {\n"
" $set_oneof_case_message$;\n"
" $oneof_name$_ = value;\n"
" onChanged();\n"
" return this;\n"
"}\n");
printer->Annotate("{", "}", descriptor_);
}
WriteFieldAccessorDocComment(printer, descriptor_, GETTER);
printer->Print(variables_,
"@java.lang.Override\n"
"$deprecation$public $type$ ${$get$capitalized_name$$}$() {\n"
" if ($has_oneof_case_message$) {\n"
" $type$ result = $type$.forNumber(\n"
" (java.lang.Integer) $oneof_name$_);\n"
" return result == null ? $unknown$ : result;\n"
" }\n"
" return $default$;\n"
"}\n");
printer->Annotate("{", "}", descriptor_);
WriteFieldAccessorDocComment(printer, descriptor_, SETTER,
/* builder */ true);
printer->Print(variables_,
"$deprecation$public Builder "
"${$set$capitalized_name$$}$($type$ value) {\n"
" if (value == null) {\n"
" throw new NullPointerException();\n"
" }\n"
" $set_oneof_case_message$;\n"
" $oneof_name$_ = value.getNumber();\n"
" onChanged();\n"
" return this;\n"
"}\n");
printer->Annotate("{", "}", descriptor_);
WriteFieldAccessorDocComment(printer, descriptor_, CLEARER,
/* builder */ true);
printer->Print(
variables_,
"$deprecation$public Builder ${$clear$capitalized_name$$}$() {\n"
" if ($has_oneof_case_message$) {\n"
" $clear_oneof_case_message$;\n"
" $oneof_name$_ = null;\n"
" onChanged();\n"
" }\n"
" return this;\n"
"}\n");
printer->Annotate("{", "}", descriptor_);
}
|
O3
|
cpp
|
google::protobuf::compiler::java::ImmutableEnumOneofFieldGenerator::GenerateBuilderMembers(google::protobuf::io::Printer*) const:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rsi
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xcff9a
leaq 0x18(%r14), %r15
leaq 0xe55ac(%rip), %rdx # 0x1da2c8
movq %rbx, %rdi
movq %r15, %rsi
callq 0x16cd32
movq 0x8(%r14), %rcx
leaq 0xfb3a7(%rip), %rsi # 0x1f00d9
leaq 0xeb994(%rip), %rdx # 0x1e06cd
movq %rbx, %rdi
callq 0xafc7e
movq 0x8(%r14), %rsi
movq 0x10(%rsi), %rax
cmpb $0x3, 0x3(%rax)
jne 0xf4dce
movq %rbx, %rdi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0xd0175
leaq 0xf3a1c(%rip), %rdx # 0x1e8781
movq %rbx, %rdi
movq %r15, %rsi
callq 0x16cd32
movq 0x8(%r14), %rcx
leaq 0xfb35e(%rip), %r12 # 0x1f00d9
leaq 0xeb94b(%rip), %r13 # 0x1e06cd
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0xafc7e
movq 0x8(%r14), %rsi
movq %rbx, %rdi
movl $0x2, %edx
movl $0x1, %ecx
callq 0xd0175
leaq 0xf3aa4(%rip), %rdx # 0x1e8851
movq %rbx, %rdi
movq %r15, %rsi
callq 0x16cd32
movq 0x8(%r14), %rcx
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0xafc7e
movq 0x8(%r14), %rsi
movq %rbx, %rdi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0xcff9a
leaq 0xf3b0d(%rip), %rdx # 0x1e88f1
movq %rbx, %rdi
movq %r15, %rsi
callq 0x16cd32
movq 0x8(%r14), %rcx
leaq 0xfb2df(%rip), %r12 # 0x1f00d9
leaq 0xeb8cc(%rip), %r13 # 0x1e06cd
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0xafc7e
movq 0x8(%r14), %rsi
movq %rbx, %rdi
movl $0x2, %edx
movl $0x1, %ecx
callq 0xcff9a
leaq 0xf3bd3(%rip), %rdx # 0x1e89ff
movq %rbx, %rdi
movq %r15, %rsi
callq 0x16cd32
movq 0x8(%r14), %rcx
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0xafc7e
movq 0x8(%r14), %rsi
movq %rbx, %rdi
movl $0x3, %edx
movl $0x1, %ecx
callq 0xcff9a
leaq 0xf3c84(%rip), %rdx # 0x1e8aea
movq %rbx, %rdi
movq %r15, %rsi
callq 0x16cd32
movq 0x8(%r14), %rcx
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xafc7e
|
_ZNK6google8protobuf8compiler4java32ImmutableEnumOneofFieldGenerator22GenerateBuilderMembersEPNS0_2io7PrinterE:
push r15; int
push r14; int
push r13; char
push r12; int
push rbx; void *
mov rbx, rsi
mov r14, rdi
mov rsi, [rdi+8]; google::protobuf::FieldDescriptor *
mov rdi, rbx; this
xor edx, edx
xor ecx, ecx
call _ZN6google8protobuf8compiler4java28WriteFieldAccessorDocCommentEPNS0_2io7PrinterEPKNS0_15FieldDescriptorENS2_17FieldAccessorTypeEb; google::protobuf::compiler::java::WriteFieldAccessorDocComment(google::protobuf::io::Printer *,google::protobuf::FieldDescriptor const*,google::protobuf::compiler::java::FieldAccessorType,bool)
lea r15, [r14+18h]
lea rdx, aJavaLangOverri_61; "@java.lang.Override\n$deprecation$publi"...
mov rdi, rbx; this
mov rsi, r15
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
mov rcx, [r14+8]
lea rsi, a0oneof1+0Bh; "{"
lea rdx, aKotlinJvmJvmsy_32+0E3h; "}"
mov rdi, rbx
call _ZN6google8protobuf2io7Printer8AnnotateINS0_15FieldDescriptorEEEvPKcS6_PKT_; google::protobuf::io::Printer::Annotate<google::protobuf::FieldDescriptor>(char const*,char const*,google::protobuf::FieldDescriptor const*)
mov rsi, [r14+8]; google::protobuf::FieldDescriptor *
mov rax, [rsi+10h]
cmp byte ptr [rax+3], 3
jnz short loc_F4DCE
mov rdi, rbx; this
mov edx, 1
xor ecx, ecx
call _ZN6google8protobuf8compiler4java37WriteFieldEnumValueAccessorDocCommentEPNS0_2io7PrinterEPKNS0_15FieldDescriptorENS2_17FieldAccessorTypeEb; google::protobuf::compiler::java::WriteFieldEnumValueAccessorDocComment(google::protobuf::io::Printer *,google::protobuf::FieldDescriptor const*,google::protobuf::compiler::java::FieldAccessorType,bool)
lea rdx, aJavaLangOverri_104; "@java.lang.Override\n$deprecation$publi"...
mov rdi, rbx; this
mov rsi, r15
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
mov rcx, [r14+8]
lea r12, a0oneof1+0Bh; "{"
lea r13, aKotlinJvmJvmsy_32+0E3h; "}"
mov rdi, rbx
mov rsi, r12
mov rdx, r13
call _ZN6google8protobuf2io7Printer8AnnotateINS0_15FieldDescriptorEEEvPKcS6_PKT_; google::protobuf::io::Printer::Annotate<google::protobuf::FieldDescriptor>(char const*,char const*,google::protobuf::FieldDescriptor const*)
mov rsi, [r14+8]; google::protobuf::FieldDescriptor *
mov rdi, rbx; this
mov edx, 2
mov ecx, 1
call _ZN6google8protobuf8compiler4java37WriteFieldEnumValueAccessorDocCommentEPNS0_2io7PrinterEPKNS0_15FieldDescriptorENS2_17FieldAccessorTypeEb; google::protobuf::compiler::java::WriteFieldEnumValueAccessorDocComment(google::protobuf::io::Printer *,google::protobuf::FieldDescriptor const*,google::protobuf::compiler::java::FieldAccessorType,bool)
lea rdx, aDeprecationPub_102; "$deprecation$public Builder ${$set$capi"...
mov rdi, rbx; this
mov rsi, r15
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
mov rcx, [r14+8]
mov rdi, rbx
mov rsi, r12
mov rdx, r13
call _ZN6google8protobuf2io7Printer8AnnotateINS0_15FieldDescriptorEEEvPKcS6_PKT_; google::protobuf::io::Printer::Annotate<google::protobuf::FieldDescriptor>(char const*,char const*,google::protobuf::FieldDescriptor const*)
mov rsi, [r14+8]; google::protobuf::FieldDescriptor *
loc_F4DCE:
mov rdi, rbx; this
mov edx, 1
xor ecx, ecx
call _ZN6google8protobuf8compiler4java28WriteFieldAccessorDocCommentEPNS0_2io7PrinterEPKNS0_15FieldDescriptorENS2_17FieldAccessorTypeEb; google::protobuf::compiler::java::WriteFieldAccessorDocComment(google::protobuf::io::Printer *,google::protobuf::FieldDescriptor const*,google::protobuf::compiler::java::FieldAccessorType,bool)
lea rdx, aJavaLangOverri_105; "@java.lang.Override\n$deprecation$publi"...
mov rdi, rbx; this
mov rsi, r15
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
mov rcx, [r14+8]
lea r12, a0oneof1+0Bh; "{"
lea r13, aKotlinJvmJvmsy_32+0E3h; "}"
mov rdi, rbx
mov rsi, r12
mov rdx, r13
call _ZN6google8protobuf2io7Printer8AnnotateINS0_15FieldDescriptorEEEvPKcS6_PKT_; google::protobuf::io::Printer::Annotate<google::protobuf::FieldDescriptor>(char const*,char const*,google::protobuf::FieldDescriptor const*)
mov rsi, [r14+8]; google::protobuf::FieldDescriptor *
mov rdi, rbx; this
mov edx, 2
mov ecx, 1
call _ZN6google8protobuf8compiler4java28WriteFieldAccessorDocCommentEPNS0_2io7PrinterEPKNS0_15FieldDescriptorENS2_17FieldAccessorTypeEb; google::protobuf::compiler::java::WriteFieldAccessorDocComment(google::protobuf::io::Printer *,google::protobuf::FieldDescriptor const*,google::protobuf::compiler::java::FieldAccessorType,bool)
lea rdx, aDeprecationPub_101; "$deprecation$public Builder ${$set$capi"...
mov rdi, rbx; this
mov rsi, r15
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
mov rcx, [r14+8]
mov rdi, rbx
mov rsi, r12
mov rdx, r13
call _ZN6google8protobuf2io7Printer8AnnotateINS0_15FieldDescriptorEEEvPKcS6_PKT_; google::protobuf::io::Printer::Annotate<google::protobuf::FieldDescriptor>(char const*,char const*,google::protobuf::FieldDescriptor const*)
mov rsi, [r14+8]; google::protobuf::FieldDescriptor *
mov rdi, rbx; this
mov edx, 3
mov ecx, 1
call _ZN6google8protobuf8compiler4java28WriteFieldAccessorDocCommentEPNS0_2io7PrinterEPKNS0_15FieldDescriptorENS2_17FieldAccessorTypeEb; google::protobuf::compiler::java::WriteFieldAccessorDocComment(google::protobuf::io::Printer *,google::protobuf::FieldDescriptor const*,google::protobuf::compiler::java::FieldAccessorType,bool)
lea rdx, aDeprecationPub_103; "$deprecation$public Builder ${$clear$ca"...
mov rdi, rbx; this
mov rsi, r15
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
mov rcx, [r14+8]
mov rdi, rbx
mov rsi, r12
mov rdx, r13
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp _ZN6google8protobuf2io7Printer8AnnotateINS0_15FieldDescriptorEEEvPKcS6_PKT_; google::protobuf::io::Printer::Annotate<google::protobuf::FieldDescriptor>(char const*,char const*,google::protobuf::FieldDescriptor const*)
|
GenerateBuilderMembers:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV RBX,RSI
MOV R14,RDI
MOV RSI,qword ptr [RDI + 0x8]
MOV RDI,RBX
XOR EDX,EDX
XOR ECX,ECX
CALL 0x001cff9a
LEA R15,[R14 + 0x18]
LEA RDX,[0x2da2c8]
MOV RDI,RBX
MOV RSI,R15
CALL 0x0026cd32
MOV RCX,qword ptr [R14 + 0x8]
LEA RSI,[0x2f00d9]
LEA RDX,[0x2e06cd]
MOV RDI,RBX
CALL 0x001afc7e
MOV RSI,qword ptr [R14 + 0x8]
MOV RAX,qword ptr [RSI + 0x10]
CMP byte ptr [RAX + 0x3],0x3
JNZ 0x001f4dce
MOV RDI,RBX
MOV EDX,0x1
XOR ECX,ECX
CALL 0x001d0175
LEA RDX,[0x2e8781]
MOV RDI,RBX
MOV RSI,R15
CALL 0x0026cd32
MOV RCX,qword ptr [R14 + 0x8]
LEA R12,[0x2f00d9]
LEA R13,[0x2e06cd]
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R13
CALL 0x001afc7e
MOV RSI,qword ptr [R14 + 0x8]
MOV RDI,RBX
MOV EDX,0x2
MOV ECX,0x1
CALL 0x001d0175
LEA RDX,[0x2e8851]
MOV RDI,RBX
MOV RSI,R15
CALL 0x0026cd32
MOV RCX,qword ptr [R14 + 0x8]
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R13
CALL 0x001afc7e
MOV RSI,qword ptr [R14 + 0x8]
LAB_001f4dce:
MOV RDI,RBX
MOV EDX,0x1
XOR ECX,ECX
CALL 0x001cff9a
LEA RDX,[0x2e88f1]
MOV RDI,RBX
MOV RSI,R15
CALL 0x0026cd32
MOV RCX,qword ptr [R14 + 0x8]
LEA R12,[0x2f00d9]
LEA R13,[0x2e06cd]
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R13
CALL 0x001afc7e
MOV RSI,qword ptr [R14 + 0x8]
MOV RDI,RBX
MOV EDX,0x2
MOV ECX,0x1
CALL 0x001cff9a
LEA RDX,[0x2e89ff]
MOV RDI,RBX
MOV RSI,R15
CALL 0x0026cd32
MOV RCX,qword ptr [R14 + 0x8]
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R13
CALL 0x001afc7e
MOV RSI,qword ptr [R14 + 0x8]
MOV RDI,RBX
MOV EDX,0x3
MOV ECX,0x1
CALL 0x001cff9a
LEA RDX,[0x2e8aea]
MOV RDI,RBX
MOV RSI,R15
CALL 0x0026cd32
MOV RCX,qword ptr [R14 + 0x8]
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R13
POP RBX
POP R12
POP R13
POP R14
POP R15
JMP 0x001afc7e
|
/* google::protobuf::compiler::java::ImmutableEnumOneofFieldGenerator::GenerateBuilderMembers(google::protobuf::io::Printer*)
const */
void __thiscall
google::protobuf::compiler::java::ImmutableEnumOneofFieldGenerator::GenerateBuilderMembers
(ImmutableEnumOneofFieldGenerator *this,Printer *param_1)
{
map *pmVar1;
long lVar2;
WriteFieldAccessorDocComment(param_1,*(int8 *)(this + 8),0,0);
pmVar1 = (map *)(this + 0x18);
io::Printer::Print(param_1,pmVar1,
"@java.lang.Override\n$deprecation$public boolean ${$has$capitalized_name$$}$() {\n return $has_oneof_case_message$;\n}\n"
);
io::Printer::Annotate<google::protobuf::FieldDescriptor>
(param_1,"{","}",*(FieldDescriptor **)(this + 8));
lVar2 = *(long *)(this + 8);
if (*(char *)(*(long *)(lVar2 + 0x10) + 3) == '\x03') {
WriteFieldEnumValueAccessorDocComment(param_1,lVar2,1,0);
io::Printer::Print(param_1,pmVar1,
"@java.lang.Override\n$deprecation$public int ${$get$capitalized_name$Value$}$() {\n if ($has_oneof_case_message$) {\n return ((java.lang.Integer) $oneof_name$_).intValue();\n }\n return $default_number$;\n}\n"
);
io::Printer::Annotate<google::protobuf::FieldDescriptor>
(param_1,"{","}",*(FieldDescriptor **)(this + 8));
WriteFieldEnumValueAccessorDocComment(param_1,*(int8 *)(this + 8),2,1);
io::Printer::Print(param_1,pmVar1,
"$deprecation$public Builder ${$set$capitalized_name$Value$}$(int value) {\n $set_oneof_case_message$;\n $oneof_name$_ = value;\n onChanged();\n return this;\n}\n"
);
io::Printer::Annotate<google::protobuf::FieldDescriptor>
(param_1,"{","}",*(FieldDescriptor **)(this + 8));
lVar2 = *(long *)(this + 8);
}
WriteFieldAccessorDocComment(param_1,lVar2,1,0);
io::Printer::Print(param_1,pmVar1,
"@java.lang.Override\n$deprecation$public $type$ ${$get$capitalized_name$$}$() {\n if ($has_oneof_case_message$) {\n $type$ result = $type$.forNumber(\n (java.lang.Integer) $oneof_name$_);\n return result == null ? $unknown$ : result;\n }\n return $default$;\n}\n"
);
io::Printer::Annotate<google::protobuf::FieldDescriptor>
(param_1,"{","}",*(FieldDescriptor **)(this + 8));
WriteFieldAccessorDocComment(param_1,*(int8 *)(this + 8),2,1);
io::Printer::Print(param_1,pmVar1,
"$deprecation$public Builder ${$set$capitalized_name$$}$($type$ value) {\n if (value == null) {\n throw new NullPointerException();\n }\n $set_oneof_case_message$;\n $oneof_name$_ = value.getNumber();\n onChanged();\n return this;\n}\n"
);
io::Printer::Annotate<google::protobuf::FieldDescriptor>
(param_1,"{","}",*(FieldDescriptor **)(this + 8));
WriteFieldAccessorDocComment(param_1,*(int8 *)(this + 8),3,1);
io::Printer::Print(param_1,pmVar1,
"$deprecation$public Builder ${$clear$capitalized_name$$}$() {\n if ($has_oneof_case_message$) {\n $clear_oneof_case_message$;\n $oneof_name$_ = null;\n onChanged();\n }\n return this;\n}\n"
);
io::Printer::Annotate<google::protobuf::FieldDescriptor>
(param_1,"{","}",*(FieldDescriptor **)(this + 8));
return;
}
|
||
59,608
|
plutovg_matrix_invert
|
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-matrix.c
|
bool plutovg_matrix_invert(const plutovg_matrix_t* matrix, plutovg_matrix_t* inverse)
{
float det = (matrix->a * matrix->d - matrix->b * matrix->c);
if(det == 0.f)
return false;
if(inverse) {
float inv_det = 1.f / det;
float a = matrix->a * inv_det;
float b = matrix->b * inv_det;
float c = matrix->c * inv_det;
float d = matrix->d * inv_det;
float e = (matrix->c * matrix->f - matrix->d * matrix->e) * inv_det;
float f = (matrix->b * matrix->e - matrix->a * matrix->f) * inv_det;
plutovg_matrix_init(inverse, d, -b, -c, a, e, f);
}
return true;
}
|
O1
|
c
|
plutovg_matrix_invert:
movss (%rdi), %xmm2
movss 0x4(%rdi), %xmm0
movss 0xc(%rdi), %xmm4
movss 0x8(%rdi), %xmm3
movaps %xmm3, %xmm5
mulss %xmm0, %xmm5
movaps %xmm2, %xmm1
mulss %xmm4, %xmm1
subss %xmm5, %xmm1
testq %rsi, %rsi
je 0x8081
xorps %xmm5, %xmm5
ucomiss %xmm5, %xmm1
jne 0x8002
jnp 0x8081
movaps 0x1b277(%rip), %xmm5 # 0x23280
xorps %xmm0, %xmm5
movss 0x1affc(%rip), %xmm6 # 0x23010
divss %xmm1, %xmm6
movss 0x10(%rdi), %xmm7
movss 0x14(%rdi), %xmm8
mulss %xmm7, %xmm0
mulss %xmm4, %xmm7
mulss %xmm6, %xmm4
movaps %xmm3, %xmm9
mulss %xmm8, %xmm9
subss %xmm7, %xmm9
mulss %xmm6, %xmm9
mulss %xmm2, %xmm8
mulss %xmm6, %xmm2
subss %xmm8, %xmm0
mulss %xmm6, %xmm0
xorps 0x1b225(%rip), %xmm3 # 0x23280
mulss %xmm6, %xmm5
mulss %xmm6, %xmm3
movss %xmm4, (%rsi)
movss %xmm5, 0x4(%rsi)
movss %xmm3, 0x8(%rsi)
movss %xmm2, 0xc(%rsi)
movss %xmm9, 0x10(%rsi)
movss %xmm0, 0x14(%rsi)
xorps %xmm0, %xmm0
cmpneqss %xmm0, %xmm1
movd %xmm1, %eax
andl $0x1, %eax
retq
|
plutovg_matrix_invert:
movss xmm2, dword ptr [rdi]
movss xmm0, dword ptr [rdi+4]
movss xmm4, dword ptr [rdi+0Ch]
movss xmm3, dword ptr [rdi+8]
movaps xmm5, xmm3
mulss xmm5, xmm0
movaps xmm1, xmm2
mulss xmm1, xmm4
subss xmm1, xmm5
test rsi, rsi
jz loc_8081
xorps xmm5, xmm5
ucomiss xmm1, xmm5
jnz short loc_8002
loc_8000:
jnp short loc_8081
loc_8002:
movaps xmm5, cs:xmmword_23280
xorps xmm5, xmm0
movss xmm6, cs:dword_23010
divss xmm6, xmm1
movss xmm7, dword ptr [rdi+10h]
movss xmm8, dword ptr [rdi+14h]
mulss xmm0, xmm7
mulss xmm7, xmm4
mulss xmm4, xmm6
movaps xmm9, xmm3
mulss xmm9, xmm8
subss xmm9, xmm7
mulss xmm9, xmm6
mulss xmm8, xmm2
mulss xmm2, xmm6
subss xmm0, xmm8
mulss xmm0, xmm6
xorps xmm3, cs:xmmword_23280
mulss xmm5, xmm6
mulss xmm3, xmm6
movss dword ptr [rsi], xmm4
movss dword ptr [rsi+4], xmm5
movss dword ptr [rsi+8], xmm3
movss dword ptr [rsi+0Ch], xmm2
movss dword ptr [rsi+10h], xmm9
movss dword ptr [rsi+14h], xmm0
loc_8081:
xorps xmm0, xmm0
cmpneqss xmm1, xmm0
movd eax, xmm1
and eax, 1
retn
|
long long plutovg_matrix_invert(float *a1, float *a2)
{
float v2; // xmm2_4
float v3; // xmm0_4
float v4; // xmm4_4
float v5; // xmm3_4
__m128 v6; // xmm1
float v7; // xmm7_4
float v8; // xmm8_4
v2 = *a1;
v3 = a1[1];
v4 = a1[3];
v5 = a1[2];
v6 = (__m128)*(unsigned int *)a1;
v6.m128_f32[0] = (float)(v6.m128_f32[0] * v4) - (float)(v5 * v3);
if ( a2 && v6.m128_f32[0] != 0.0 )
{
v7 = a1[4];
v8 = a1[5];
*a2 = v4 * (float)(1.0 / v6.m128_f32[0]);
a2[1] = (float)-v3 * (float)(1.0 / v6.m128_f32[0]);
a2[2] = (float)-v5 * (float)(1.0 / v6.m128_f32[0]);
a2[3] = v2 * (float)(1.0 / v6.m128_f32[0]);
a2[4] = (float)((float)(v5 * v8) - (float)(v7 * v4)) * (float)(1.0 / v6.m128_f32[0]);
a2[5] = (float)((float)(v3 * v7) - (float)(v8 * v2)) * (float)(1.0 / v6.m128_f32[0]);
}
return _mm_cvtsi128_si32((__m128i)_mm_cmpneq_ss(v6, (__m128)0LL)) & 1;
}
|
plutovg_matrix_invert:
MOVSS XMM2,dword ptr [RDI]
MOVSS XMM0,dword ptr [RDI + 0x4]
MOVSS XMM4,dword ptr [RDI + 0xc]
MOVSS XMM3,dword ptr [RDI + 0x8]
MOVAPS XMM5,XMM3
MULSS XMM5,XMM0
MOVAPS XMM1,XMM2
MULSS XMM1,XMM4
SUBSS XMM1,XMM5
TEST RSI,RSI
JZ 0x00108081
XORPS XMM5,XMM5
UCOMISS XMM1,XMM5
JNZ 0x00108002
JNP 0x00108081
LAB_00108002:
MOVAPS XMM5,xmmword ptr [0x00123280]
XORPS XMM5,XMM0
MOVSS XMM6,dword ptr [0x00123010]
DIVSS XMM6,XMM1
MOVSS XMM7,dword ptr [RDI + 0x10]
MOVSS XMM8,dword ptr [RDI + 0x14]
MULSS XMM0,XMM7
MULSS XMM7,XMM4
MULSS XMM4,XMM6
MOVAPS XMM9,XMM3
MULSS XMM9,XMM8
SUBSS XMM9,XMM7
MULSS XMM9,XMM6
MULSS XMM8,XMM2
MULSS XMM2,XMM6
SUBSS XMM0,XMM8
MULSS XMM0,XMM6
XORPS XMM3,xmmword ptr [0x00123280]
MULSS XMM5,XMM6
MULSS XMM3,XMM6
MOVSS dword ptr [RSI],XMM4
MOVSS dword ptr [RSI + 0x4],XMM5
MOVSS dword ptr [RSI + 0x8],XMM3
MOVSS dword ptr [RSI + 0xc],XMM2
MOVSS dword ptr [RSI + 0x10],XMM9
MOVSS dword ptr [RSI + 0x14],XMM0
LAB_00108081:
XORPS XMM0,XMM0
CMPNEQSS XMM1,XMM0
MOVD EAX,XMM1
AND EAX,0x1
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
byte plutovg_matrix_invert(float *param_1,float *param_2)
{
float fVar1;
float fVar2;
float fVar3;
float fVar4;
float fVar5;
float fVar6;
float fVar7;
float fVar8;
float fVar9;
float fVar10;
fVar1 = *param_1;
fVar2 = param_1[1];
fVar3 = param_1[3];
fVar4 = param_1[2];
fVar7 = fVar1 * fVar3 - fVar4 * fVar2;
if ((param_2 != (float *)0x0) && ((fVar7 != 0.0 || (NAN(fVar7))))) {
fVar9 = (float)(_DAT_00123280 ^ (uint)fVar2);
fVar10 = DAT_00123010 / fVar7;
fVar5 = param_1[4];
fVar6 = param_1[5];
fVar8 = (float)((uint)fVar4 ^ _DAT_00123280);
*param_2 = fVar3 * fVar10;
param_2[1] = fVar9 * fVar10;
param_2[2] = fVar8 * fVar10;
param_2[3] = fVar1 * fVar10;
param_2[4] = (fVar4 * fVar6 - fVar5 * fVar3) * fVar10;
param_2[5] = (fVar2 * fVar5 - fVar6 * fVar1) * fVar10;
}
return -(fVar7 != 0.0) & 1;
}
|
|
59,609
|
ggml_rwkv_wkv6
|
monkey531[P]llama/ggml/src/ggml.c
|
struct ggml_tensor * ggml_rwkv_wkv6(
struct ggml_context * ctx,
struct ggml_tensor * k,
struct ggml_tensor * v,
struct ggml_tensor * r,
struct ggml_tensor * tf,
struct ggml_tensor * td,
struct ggml_tensor * state) {
GGML_ASSERT(ggml_is_contiguous(k));
GGML_ASSERT(ggml_is_contiguous(v));
GGML_ASSERT(ggml_is_contiguous(r));
GGML_ASSERT(ggml_is_contiguous(tf));
GGML_ASSERT(ggml_is_contiguous(td));
GGML_ASSERT(ggml_is_contiguous(state));
const int64_t S = k->ne[0];
const int64_t H = k->ne[1];
const int64_t n_tokens = k->ne[2];
const int64_t n_seqs = state->ne[1];
{
GGML_ASSERT(v->ne[0] == S && v->ne[1] == H && v->ne[2] == n_tokens);
GGML_ASSERT(r->ne[0] == S && r->ne[1] == H && r->ne[2] == n_tokens);
GGML_ASSERT(td->ne[0] == S && td->ne[1] == H && td->ne[2] == n_tokens);
GGML_ASSERT(ggml_nelements(state) == S * S * H * n_seqs);
}
// concat output and new_state
const int64_t ne[4] = { S * H, n_tokens + S * n_seqs, 1, 1 };
struct ggml_tensor * result = ggml_new_tensor(ctx, GGML_TYPE_F32, 4, ne);
result->op = GGML_OP_RWKV_WKV6;
result->src[0] = k;
result->src[1] = v;
result->src[2] = r;
result->src[3] = tf;
result->src[4] = td;
result->src[5] = state;
return result;
}
|
O1
|
c
|
ggml_rwkv_wkv6:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbp
movq %rsi, %rdi
xorl %esi, %esi
callq 0x197c2
testb %al, %al
je 0x1ee12
movq %r12, %rdi
xorl %esi, %esi
callq 0x197c2
testb %al, %al
je 0x1ee31
movq %r15, %rdi
xorl %esi, %esi
callq 0x197c2
testb %al, %al
je 0x1ee50
movq %r14, %rdi
xorl %esi, %esi
callq 0x197c2
testb %al, %al
je 0x1ee6c
movq %rbp, 0x8(%rsp)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x197c2
testb %al, %al
je 0x1ee88
movq 0x70(%rsp), %rbp
movq %rbp, %rdi
xorl %esi, %esi
callq 0x197c2
testb %al, %al
je 0x1eea4
movq 0x10(%r13), %rax
cmpq %rax, 0x10(%r12)
jne 0x1edb5
movq 0x18(%r13), %rdx
cmpq %rdx, 0x18(%r12)
jne 0x1edb5
movq 0x20(%r13), %rsi
cmpq %rsi, 0x20(%r12)
jne 0x1edb5
cmpq %rax, 0x10(%r15)
jne 0x1edd4
cmpq %rdx, 0x18(%r15)
jne 0x1edd4
cmpq %rsi, 0x20(%r15)
jne 0x1edd4
cmpq %rax, 0x10(%rbx)
jne 0x1edf3
cmpq %rdx, 0x18(%rbx)
jne 0x1edf3
cmpq %rsi, 0x20(%rbx)
jne 0x1edf3
movq 0x18(%rbp), %rdi
movq 0x10(%rbp), %rcx
imulq %rdi, %rcx
imulq 0x20(%rbp), %rcx
imulq 0x28(%rbp), %rcx
imulq %rax, %rdx
movq %rdx, %r8
imulq %rax, %r8
imulq %rdi, %r8
cmpq %r8, %rcx
jne 0x1eec0
leaq 0x10(%rsp), %rcx
movq %rdx, (%rcx)
imulq %rax, %rdi
addq %rsi, %rdi
movq %rdi, 0x8(%rcx)
movl $0x1, %eax
movq %rax, 0x10(%rcx)
movq %rax, 0x18(%rcx)
movq 0x8(%rsp), %rdi
xorl %esi, %esi
movl $0x4, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x19c80
movl $0x45, 0x50(%rax)
movq %r13, 0x98(%rax)
movq %r12, 0xa0(%rax)
movq %r15, 0xa8(%rax)
movq %r14, 0xb0(%rax)
movq %rbx, 0xb8(%rax)
movq %rbp, 0xc0(%rax)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2b853(%rip), %rdi # 0x4a60f
leaq 0x2b896(%rip), %rdx # 0x4a659
leaq 0x2c37d(%rip), %rcx # 0x4b147
movl $0x122e, %esi # imm = 0x122E
jmp 0x1eeda
leaq 0x2b834(%rip), %rdi # 0x4a60f
leaq 0x2b877(%rip), %rdx # 0x4a659
leaq 0x2c395(%rip), %rcx # 0x4b17e
movl $0x122f, %esi # imm = 0x122F
jmp 0x1eeda
leaq 0x2b815(%rip), %rdi # 0x4a60f
leaq 0x2b858(%rip), %rdx # 0x4a659
leaq 0x2c3ad(%rip), %rcx # 0x4b1b5
movl $0x1230, %esi # imm = 0x1230
jmp 0x1eeda
leaq 0x2b7f6(%rip), %rdi # 0x4a60f
leaq 0x2b839(%rip), %rdx # 0x4a659
leaq 0x2c296(%rip), %rcx # 0x4b0bd
movl $0x1222, %esi # imm = 0x1222
jmp 0x1eeda
leaq 0x2b7d7(%rip), %rdi # 0x4a60f
leaq 0x2b81a(%rip), %rdx # 0x4a659
leaq 0x2c28d(%rip), %rcx # 0x4b0d3
movl $0x1223, %esi # imm = 0x1223
jmp 0x1eeda
leaq 0x2b7b8(%rip), %rdi # 0x4a60f
leaq 0x2b7fb(%rip), %rdx # 0x4a659
leaq 0x2c284(%rip), %rcx # 0x4b0e9
movl $0x1224, %esi # imm = 0x1224
jmp 0x1eeda
leaq 0x2b79c(%rip), %rdi # 0x4a60f
leaq 0x2b7df(%rip), %rdx # 0x4a659
leaq 0x2c27e(%rip), %rcx # 0x4b0ff
movl $0x1225, %esi # imm = 0x1225
jmp 0x1eeda
leaq 0x2b780(%rip), %rdi # 0x4a60f
leaq 0x2b7c3(%rip), %rdx # 0x4a659
leaq 0x2c279(%rip), %rcx # 0x4b116
movl $0x1226, %esi # imm = 0x1226
jmp 0x1eeda
leaq 0x2b764(%rip), %rdi # 0x4a60f
leaq 0x2b7a7(%rip), %rdx # 0x4a659
leaq 0x2c274(%rip), %rcx # 0x4b12d
movl $0x1227, %esi # imm = 0x1227
jmp 0x1eeda
leaq 0x2b748(%rip), %rdi # 0x4a60f
leaq 0x2b78b(%rip), %rdx # 0x4a659
leaq 0x2c31a(%rip), %rcx # 0x4b1ef
movl $0x1231, %esi # imm = 0x1231
xorl %eax, %eax
callq 0x17c70
|
ggml_rwkv_wkv6:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov rbx, r9
mov r14, r8
mov r15, rcx
mov r12, rdx
mov r13, rsi
mov rbp, rdi
mov rdi, rsi
xor esi, esi
call ggml_is_contiguous_n
test al, al
jz loc_1EE12
mov rdi, r12
xor esi, esi
call ggml_is_contiguous_n
test al, al
jz loc_1EE31
mov rdi, r15
xor esi, esi
call ggml_is_contiguous_n
test al, al
jz loc_1EE50
mov rdi, r14
xor esi, esi
call ggml_is_contiguous_n
test al, al
jz loc_1EE6C
mov [rsp+68h+var_60], rbp
mov rdi, rbx
xor esi, esi
call ggml_is_contiguous_n
test al, al
jz loc_1EE88
mov rbp, [rsp+68h+arg_0]
mov rdi, rbp
xor esi, esi
call ggml_is_contiguous_n
test al, al
jz loc_1EEA4
mov rax, [r13+10h]
cmp [r12+10h], rax
jnz loc_1EDB5
mov rdx, [r13+18h]
cmp [r12+18h], rdx
jnz loc_1EDB5
mov rsi, [r13+20h]
cmp [r12+20h], rsi
jnz loc_1EDB5
cmp [r15+10h], rax
jnz loc_1EDD4
cmp [r15+18h], rdx
jnz loc_1EDD4
cmp [r15+20h], rsi
jnz loc_1EDD4
cmp [rbx+10h], rax
jnz loc_1EDF3
cmp [rbx+18h], rdx
jnz loc_1EDF3
cmp [rbx+20h], rsi
jnz loc_1EDF3
mov rdi, [rbp+18h]
mov rcx, [rbp+10h]
imul rcx, rdi
imul rcx, [rbp+20h]
imul rcx, [rbp+28h]
imul rdx, rax
mov r8, rdx
imul r8, rax
imul r8, rdi
cmp rcx, r8
jnz loc_1EEC0
lea rcx, [rsp+68h+var_58]
mov [rcx], rdx
imul rdi, rax
add rdi, rsi
mov [rcx+8], rdi
mov eax, 1
mov [rcx+10h], rax
mov [rcx+18h], rax
mov rdi, [rsp+68h+var_60]
xor esi, esi
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
mov dword ptr [rax+50h], 45h ; 'E'
mov [rax+98h], r13
mov [rax+0A0h], r12
mov [rax+0A8h], r15
mov [rax+0B0h], r14
mov [rax+0B8h], rbx
mov [rax+0C0h], rbp
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_1EDB5:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aVNe0SVNe1HVNe2; "v->ne[0] == S && v->ne[1] == H && v->ne"...
mov esi, 122Eh
jmp loc_1EEDA
loc_1EDD4:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aRNe0SRNe1HRNe2; "r->ne[0] == S && r->ne[1] == H && r->ne"...
mov esi, 122Fh
jmp loc_1EEDA
loc_1EDF3:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTdNe0STdNe1HTd; "td->ne[0] == S && td->ne[1] == H && td-"...
mov esi, 1230h
jmp loc_1EEDA
loc_1EE12:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlIsContiguo_11; "ggml_is_contiguous(k)"
mov esi, 1222h
jmp loc_1EEDA
loc_1EE31:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlIsContiguo_12; "ggml_is_contiguous(v)"
mov esi, 1223h
jmp loc_1EEDA
loc_1EE50:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlIsContiguo_13; "ggml_is_contiguous(r)"
mov esi, 1224h
jmp short loc_1EEDA
loc_1EE6C:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlIsContiguo_14; "ggml_is_contiguous(tf)"
mov esi, 1225h
jmp short loc_1EEDA
loc_1EE88:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlIsContiguo_15; "ggml_is_contiguous(td)"
mov esi, 1226h
jmp short loc_1EEDA
loc_1EEA4:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlIsContiguo_16; "ggml_is_contiguous(state)"
mov esi, 1227h
jmp short loc_1EEDA
loc_1EEC0:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlNelementsS; "ggml_nelements(state) == S * S * H * n_"...
mov esi, 1231h
loc_1EEDA:
xor eax, eax
call _ggml_abort
|
long long ggml_rwkv_wkv6(
long long a1,
long long a2,
long long a3,
long long a4,
unsigned int *a5,
long long a6,
long long a7)
{
long long v12; // r8
int v13; // r9d
long long v14; // rax
long long v15; // rdx
long long v16; // rsi
long long v17; // rdi
long long v18; // rdx
long long result; // rax
const char *v20; // rcx
int v21; // esi
_QWORD v23[11]; // [rsp+10h] [rbp-58h] BYREF
if ( !(unsigned __int8)ggml_is_contiguous_n((unsigned int *)a2, 0) )
{
v20 = "ggml_is_contiguous(k)";
v21 = 4642;
goto LABEL_28;
}
if ( !(unsigned __int8)ggml_is_contiguous_n((unsigned int *)a3, 0) )
{
v20 = "ggml_is_contiguous(v)";
v21 = 4643;
goto LABEL_28;
}
if ( !(unsigned __int8)ggml_is_contiguous_n((unsigned int *)a4, 0) )
{
v20 = "ggml_is_contiguous(r)";
v21 = 4644;
goto LABEL_28;
}
if ( !(unsigned __int8)ggml_is_contiguous_n(a5, 0) )
{
v20 = "ggml_is_contiguous(tf)";
v21 = 4645;
goto LABEL_28;
}
if ( !(unsigned __int8)ggml_is_contiguous_n((unsigned int *)a6, 0) )
{
v20 = "ggml_is_contiguous(td)";
v21 = 4646;
goto LABEL_28;
}
if ( !(unsigned __int8)ggml_is_contiguous_n((unsigned int *)a7, 0) )
{
v20 = "ggml_is_contiguous(state)";
v21 = 4647;
goto LABEL_28;
}
v14 = *(_QWORD *)(a2 + 16);
if ( *(_QWORD *)(a3 + 16) != v14
|| (v15 = *(_QWORD *)(a2 + 24), *(_QWORD *)(a3 + 24) != v15)
|| (v16 = *(_QWORD *)(a2 + 32), *(_QWORD *)(a3 + 32) != v16) )
{
v20 = "v->ne[0] == S && v->ne[1] == H && v->ne[2] == n_tokens";
v21 = 4654;
goto LABEL_28;
}
if ( *(_QWORD *)(a4 + 16) != v14 || *(_QWORD *)(a4 + 24) != v15 || *(_QWORD *)(a4 + 32) != v16 )
{
v20 = "r->ne[0] == S && r->ne[1] == H && r->ne[2] == n_tokens";
v21 = 4655;
goto LABEL_28;
}
if ( *(_QWORD *)(a6 + 16) != v14 || *(_QWORD *)(a6 + 24) != v15 || *(_QWORD *)(a6 + 32) != v16 )
{
v20 = "td->ne[0] == S && td->ne[1] == H && td->ne[2] == n_tokens";
v21 = 4656;
goto LABEL_28;
}
v17 = *(_QWORD *)(a7 + 24);
v18 = v14 * v15;
v12 = v17 * v14 * v18;
if ( *(_QWORD *)(a7 + 40) * *(_QWORD *)(a7 + 32) * v17 * *(_QWORD *)(a7 + 16) != v12 )
{
v20 = "ggml_nelements(state) == S * S * H * n_seqs";
v21 = 4657;
LABEL_28:
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/ggml.c",
v21,
(unsigned int)"GGML_ASSERT(%s) failed",
(_DWORD)v20,
v12,
v13);
}
v23[0] = v18;
v23[1] = v16 + v14 * v17;
v23[2] = 1LL;
v23[3] = 1LL;
result = ggml_new_tensor_impl(a1, 0, 4, v23, 0LL, 0LL);
*(_DWORD *)(result + 80) = 69;
*(_QWORD *)(result + 152) = a2;
*(_QWORD *)(result + 160) = a3;
*(_QWORD *)(result + 168) = a4;
*(_QWORD *)(result + 176) = a5;
*(_QWORD *)(result + 184) = a6;
*(_QWORD *)(result + 192) = a7;
return result;
}
|
ggml_rwkv_wkv6:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV RBX,R9
MOV R14,R8
MOV R15,RCX
MOV R12,RDX
MOV R13,RSI
MOV RBP,RDI
MOV RDI,RSI
XOR ESI,ESI
CALL 0x001197c2
TEST AL,AL
JZ 0x0011ee12
MOV RDI,R12
XOR ESI,ESI
CALL 0x001197c2
TEST AL,AL
JZ 0x0011ee31
MOV RDI,R15
XOR ESI,ESI
CALL 0x001197c2
TEST AL,AL
JZ 0x0011ee50
MOV RDI,R14
XOR ESI,ESI
CALL 0x001197c2
TEST AL,AL
JZ 0x0011ee6c
MOV qword ptr [RSP + 0x8],RBP
MOV RDI,RBX
XOR ESI,ESI
CALL 0x001197c2
TEST AL,AL
JZ 0x0011ee88
MOV RBP,qword ptr [RSP + 0x70]
MOV RDI,RBP
XOR ESI,ESI
CALL 0x001197c2
TEST AL,AL
JZ 0x0011eea4
MOV RAX,qword ptr [R13 + 0x10]
CMP qword ptr [R12 + 0x10],RAX
JNZ 0x0011edb5
MOV RDX,qword ptr [R13 + 0x18]
CMP qword ptr [R12 + 0x18],RDX
JNZ 0x0011edb5
MOV RSI,qword ptr [R13 + 0x20]
CMP qword ptr [R12 + 0x20],RSI
JNZ 0x0011edb5
CMP qword ptr [R15 + 0x10],RAX
JNZ 0x0011edd4
CMP qword ptr [R15 + 0x18],RDX
JNZ 0x0011edd4
CMP qword ptr [R15 + 0x20],RSI
JNZ 0x0011edd4
CMP qword ptr [RBX + 0x10],RAX
JNZ 0x0011edf3
CMP qword ptr [RBX + 0x18],RDX
JNZ 0x0011edf3
CMP qword ptr [RBX + 0x20],RSI
JNZ 0x0011edf3
MOV RDI,qword ptr [RBP + 0x18]
MOV RCX,qword ptr [RBP + 0x10]
IMUL RCX,RDI
IMUL RCX,qword ptr [RBP + 0x20]
IMUL RCX,qword ptr [RBP + 0x28]
IMUL RDX,RAX
MOV R8,RDX
IMUL R8,RAX
IMUL R8,RDI
CMP RCX,R8
JNZ 0x0011eec0
LEA RCX,[RSP + 0x10]
MOV qword ptr [RCX],RDX
IMUL RDI,RAX
ADD RDI,RSI
MOV qword ptr [RCX + 0x8],RDI
MOV EAX,0x1
MOV qword ptr [RCX + 0x10],RAX
MOV qword ptr [RCX + 0x18],RAX
MOV RDI,qword ptr [RSP + 0x8]
XOR ESI,ESI
MOV EDX,0x4
XOR R8D,R8D
XOR R9D,R9D
CALL 0x00119c80
MOV dword ptr [RAX + 0x50],0x45
MOV qword ptr [RAX + 0x98],R13
MOV qword ptr [RAX + 0xa0],R12
MOV qword ptr [RAX + 0xa8],R15
MOV qword ptr [RAX + 0xb0],R14
MOV qword ptr [RAX + 0xb8],RBX
MOV qword ptr [RAX + 0xc0],RBP
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0011edb5:
LEA RDI,[0x14a60f]
LEA RDX,[0x14a659]
LEA RCX,[0x14b147]
MOV ESI,0x122e
JMP 0x0011eeda
LAB_0011edd4:
LEA RDI,[0x14a60f]
LEA RDX,[0x14a659]
LEA RCX,[0x14b17e]
MOV ESI,0x122f
JMP 0x0011eeda
LAB_0011edf3:
LEA RDI,[0x14a60f]
LEA RDX,[0x14a659]
LEA RCX,[0x14b1b5]
MOV ESI,0x1230
JMP 0x0011eeda
LAB_0011ee12:
LEA RDI,[0x14a60f]
LEA RDX,[0x14a659]
LEA RCX,[0x14b0bd]
MOV ESI,0x1222
JMP 0x0011eeda
LAB_0011ee31:
LEA RDI,[0x14a60f]
LEA RDX,[0x14a659]
LEA RCX,[0x14b0d3]
MOV ESI,0x1223
JMP 0x0011eeda
LAB_0011ee50:
LEA RDI,[0x14a60f]
LEA RDX,[0x14a659]
LEA RCX,[0x14b0e9]
MOV ESI,0x1224
JMP 0x0011eeda
LAB_0011ee6c:
LEA RDI,[0x14a60f]
LEA RDX,[0x14a659]
LEA RCX,[0x14b0ff]
MOV ESI,0x1225
JMP 0x0011eeda
LAB_0011ee88:
LEA RDI,[0x14a60f]
LEA RDX,[0x14a659]
LEA RCX,[0x14b116]
MOV ESI,0x1226
JMP 0x0011eeda
LAB_0011eea4:
LEA RDI,[0x14a60f]
LEA RDX,[0x14a659]
LEA RCX,[0x14b12d]
MOV ESI,0x1227
JMP 0x0011eeda
LAB_0011eec0:
LEA RDI,[0x14a60f]
LEA RDX,[0x14a659]
LEA RCX,[0x14b1ef]
MOV ESI,0x1231
LAB_0011eeda:
XOR EAX,EAX
CALL 0x00117c70
|
void ggml_rwkv_wkv6(int8 param_1,long param_2,long param_3,long param_4,int8 param_5,
long param_6,long param_7)
{
long lVar1;
char cVar2;
long lVar3;
char *pcVar4;
int8 uVar5;
long local_58;
long local_50;
int8 local_48;
int8 local_40;
cVar2 = ggml_is_contiguous_n(param_2,0);
if (cVar2 == '\0') {
pcVar4 = "ggml_is_contiguous(k)";
uVar5 = 0x1222;
}
else {
cVar2 = ggml_is_contiguous_n(param_3,0);
if (cVar2 == '\0') {
pcVar4 = "ggml_is_contiguous(v)";
uVar5 = 0x1223;
}
else {
cVar2 = ggml_is_contiguous_n(param_4,0);
if (cVar2 == '\0') {
pcVar4 = "ggml_is_contiguous(r)";
uVar5 = 0x1224;
}
else {
cVar2 = ggml_is_contiguous_n(param_5,0);
if (cVar2 == '\0') {
pcVar4 = "ggml_is_contiguous(tf)";
uVar5 = 0x1225;
}
else {
cVar2 = ggml_is_contiguous_n(param_6,0);
if (cVar2 == '\0') {
pcVar4 = "ggml_is_contiguous(td)";
uVar5 = 0x1226;
}
else {
cVar2 = ggml_is_contiguous_n(param_7,0);
if (cVar2 == '\0') {
pcVar4 = "ggml_is_contiguous(state)";
uVar5 = 0x1227;
}
else {
lVar3 = *(long *)(param_2 + 0x10);
if (((*(long *)(param_3 + 0x10) == lVar3) &&
(local_58 = *(long *)(param_2 + 0x18), *(long *)(param_3 + 0x18) == local_58)) &&
(local_50 = *(long *)(param_2 + 0x20), *(long *)(param_3 + 0x20) == local_50)) {
if (((*(long *)(param_4 + 0x10) == lVar3) && (*(long *)(param_4 + 0x18) == local_58)
) && (*(long *)(param_4 + 0x20) == local_50)) {
if (((*(long *)(param_6 + 0x10) == lVar3) &&
(*(long *)(param_6 + 0x18) == local_58)) &&
(*(long *)(param_6 + 0x20) == local_50)) {
lVar1 = *(long *)(param_7 + 0x18);
local_58 = local_58 * lVar3;
if (*(long *)(param_7 + 0x10) * lVar1 * *(long *)(param_7 + 0x20) *
*(long *)(param_7 + 0x28) - local_58 * lVar3 * lVar1 == 0) {
local_50 = lVar1 * lVar3 + local_50;
local_48 = 1;
local_40 = 1;
lVar3 = ggml_new_tensor_impl(param_1,0,4,&local_58,0,0);
*(int4 *)(lVar3 + 0x50) = 0x45;
*(long *)(lVar3 + 0x98) = param_2;
*(long *)(lVar3 + 0xa0) = param_3;
*(long *)(lVar3 + 0xa8) = param_4;
*(int8 *)(lVar3 + 0xb0) = param_5;
*(long *)(lVar3 + 0xb8) = param_6;
*(long *)(lVar3 + 0xc0) = param_7;
return;
}
pcVar4 = "ggml_nelements(state) == S * S * H * n_seqs";
uVar5 = 0x1231;
}
else {
pcVar4 = "td->ne[0] == S && td->ne[1] == H && td->ne[2] == n_tokens";
uVar5 = 0x1230;
}
}
else {
pcVar4 = "r->ne[0] == S && r->ne[1] == H && r->ne[2] == n_tokens";
uVar5 = 0x122f;
}
}
else {
pcVar4 = "v->ne[0] == S && v->ne[1] == H && v->ne[2] == n_tokens";
uVar5 = 0x122e;
}
}
}
}
}
}
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/ggml.c",uVar5,
"GGML_ASSERT(%s) failed",pcVar4);
}
|
|
59,610
|
js_init_module_std
|
bluesky950520[P]quickjs/quickjs-libc.c
|
JSModuleDef *js_init_module_std(JSContext *ctx, const char *module_name)
{
JSModuleDef *m;
m = JS_NewCModule(ctx, module_name, js_std_init);
if (!m)
return NULL;
JS_AddModuleExportList(ctx, m, js_std_funcs, countof(js_std_funcs));
JS_AddModuleExport(ctx, m, "in");
JS_AddModuleExport(ctx, m, "out");
JS_AddModuleExport(ctx, m, "err");
return m;
}
|
O0
|
c
|
js_init_module_std:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
leaq 0x91(%rip), %rdx # 0xf530
callq 0x48260
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0xf4bc
movq $0x0, 0x20(%rsp)
jmp 0xf523
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rsi
leaq 0x11e3e3(%rip), %rdx # 0x12d8b0
movl $0x16, %ecx
callq 0x4c040
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rsi
leaq 0xfd3ac(%rip), %rdx # 0x10c894
callq 0x484c0
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rsi
leaq 0xf9574(%rip), %rdx # 0x108a72
callq 0x484c0
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rsi
leaq 0xf9565(%rip), %rdx # 0x108a79
callq 0x484c0
movq 0x8(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
addq $0x28, %rsp
retq
nopl (%rax)
|
js_init_module_std:
sub rsp, 28h
mov [rsp+28h+var_10], rdi
mov [rsp+28h+var_18], rsi
mov rdi, [rsp+28h+var_10]
mov rsi, [rsp+28h+var_18]
lea rdx, js_std_init
call JS_NewCModule
mov [rsp+28h+var_20], rax
cmp [rsp+28h+var_20], 0
jnz short loc_F4BC
mov [rsp+28h+var_8], 0
jmp short loc_F523
loc_F4BC:
mov rdi, [rsp+28h+var_10]
mov rsi, [rsp+28h+var_20]
lea rdx, js_std_funcs
mov ecx, 16h
call JS_AddModuleExportList
mov rdi, [rsp+28h+var_10]
mov rsi, [rsp+28h+var_20]
lea rdx, aCircularProtot+16h; "in"
call JS_AddModuleExport
mov rdi, [rsp+28h+var_10]
mov rsi, [rsp+28h+var_20]
lea rdx, aStdout_0+3; "out"
call JS_AddModuleExport
mov rdi, [rsp+28h+var_10]
mov rsi, [rsp+28h+var_20]
lea rdx, aStderr_0+3; "err"
call JS_AddModuleExport
mov rax, [rsp+28h+var_20]
mov [rsp+28h+var_8], rax
loc_F523:
mov rax, [rsp+28h+var_8]
add rsp, 28h
retn
|
long long js_init_module_std(long long a1, long long a2)
{
long long v3; // [rsp+8h] [rbp-20h]
v3 = JS_NewCModule(a1, a2, js_std_init);
if ( !v3 )
return 0LL;
JS_AddModuleExportList(a1, v3, &js_std_funcs, 22LL);
JS_AddModuleExport(a1, v3, "in");
JS_AddModuleExport(a1, v3, "out");
JS_AddModuleExport(a1, v3, "err");
return v3;
}
|
js_init_module_std:
SUB RSP,0x28
MOV qword ptr [RSP + 0x18],RDI
MOV qword ptr [RSP + 0x10],RSI
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x10]
LEA RDX,[0x10f530]
CALL 0x00148260
MOV qword ptr [RSP + 0x8],RAX
CMP qword ptr [RSP + 0x8],0x0
JNZ 0x0010f4bc
MOV qword ptr [RSP + 0x20],0x0
JMP 0x0010f523
LAB_0010f4bc:
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x8]
LEA RDX,[0x22d8b0]
MOV ECX,0x16
CALL 0x0014c040
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x8]
LEA RDX,[0x20c894]
CALL 0x001484c0
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x8]
LEA RDX,[0x208a72]
CALL 0x001484c0
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x8]
LEA RDX,[0x208a79]
CALL 0x001484c0
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x20],RAX
LAB_0010f523:
MOV RAX,qword ptr [RSP + 0x20]
ADD RSP,0x28
RET
|
long js_init_module_std(int8 param_1,int8 param_2)
{
long local_8;
local_8 = JS_NewCModule(param_1,param_2,js_std_init);
if (local_8 == 0) {
local_8 = 0;
}
else {
JS_AddModuleExportList(param_1,local_8,js_std_funcs,0x16);
JS_AddModuleExport(param_1,local_8,"in");
JS_AddModuleExport(param_1,local_8,"out");
JS_AddModuleExport(param_1,local_8,"err");
}
return local_8;
}
|
|
59,611
|
js_init_module_std
|
bluesky950520[P]quickjs/quickjs-libc.c
|
JSModuleDef *js_init_module_std(JSContext *ctx, const char *module_name)
{
JSModuleDef *m;
m = JS_NewCModule(ctx, module_name, js_std_init);
if (!m)
return NULL;
JS_AddModuleExportList(ctx, m, js_std_funcs, countof(js_std_funcs));
JS_AddModuleExport(ctx, m, "in");
JS_AddModuleExport(ctx, m, "out");
JS_AddModuleExport(ctx, m, "err");
return m;
}
|
O1
|
c
|
js_init_module_std:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x69(%rip), %rdx # 0x13feb
callq 0x2fc3f
testq %rax, %rax
je 0x13fde
movq %rax, %rbx
leaq 0xb07ca(%rip), %rdx # 0xc4760
movq %r14, %rdi
movq %rax, %rsi
movl $0x16, %ecx
callq 0x3243c
leaq 0x898eb(%rip), %rdx # 0x9d898
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2fc7f
leaq 0x86a1b(%rip), %rdx # 0x9a9da
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2fc7f
leaq 0x86a10(%rip), %rdx # 0x9a9e1
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2fc7f
jmp 0x13fe0
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
js_init_module_std:
push r14
push rbx
push rax
mov r14, rdi
lea rdx, js_std_init
call JS_NewCModule
test rax, rax
jz short loc_13FDE
mov rbx, rax
lea rdx, js_std_funcs
mov rdi, r14
mov rsi, rax
mov ecx, 16h
call JS_AddModuleExportList
lea rdx, aCircularProtot+16h; "in"
mov rdi, r14
mov rsi, rbx
call JS_AddModuleExport
lea rdx, aStdout_0+3; "out"
mov rdi, r14
mov rsi, rbx
call JS_AddModuleExport
lea rdx, aStderr_0+3; "err"
mov rdi, r14
mov rsi, rbx
call JS_AddModuleExport
jmp short loc_13FE0
loc_13FDE:
xor ebx, ebx
loc_13FE0:
mov rax, rbx
add rsp, 8
pop rbx
pop r14
retn
|
long long js_init_module_std(long long a1, long long a2)
{
long long v2; // rax
long long v3; // rbx
v2 = JS_NewCModule(a1, a2, js_std_init);
if ( !v2 )
return 0LL;
v3 = v2;
JS_AddModuleExportList(a1, v2, &js_std_funcs, 22LL);
JS_AddModuleExport(a1, v3, "in");
JS_AddModuleExport(a1, v3, "out");
JS_AddModuleExport(a1, v3, "err");
return v3;
}
|
js_init_module_std:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RDI
LEA RDX,[0x113feb]
CALL 0x0012fc3f
TEST RAX,RAX
JZ 0x00113fde
MOV RBX,RAX
LEA RDX,[0x1c4760]
MOV RDI,R14
MOV RSI,RAX
MOV ECX,0x16
CALL 0x0013243c
LEA RDX,[0x19d898]
MOV RDI,R14
MOV RSI,RBX
CALL 0x0012fc7f
LEA RDX,[0x19a9da]
MOV RDI,R14
MOV RSI,RBX
CALL 0x0012fc7f
LEA RDX,[0x19a9e1]
MOV RDI,R14
MOV RSI,RBX
CALL 0x0012fc7f
JMP 0x00113fe0
LAB_00113fde:
XOR EBX,EBX
LAB_00113fe0:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R14
RET
|
long js_init_module_std(int8 param_1,int8 param_2)
{
long lVar1;
lVar1 = JS_NewCModule(param_1,param_2,js_std_init);
if (lVar1 == 0) {
lVar1 = 0;
}
else {
JS_AddModuleExportList(param_1,lVar1,js_std_funcs,0x16);
JS_AddModuleExport(param_1,lVar1,"in");
JS_AddModuleExport(param_1,lVar1,"out");
JS_AddModuleExport(param_1,lVar1,"err");
}
return lVar1;
}
|
|
59,612
|
js_init_module_std
|
bluesky950520[P]quickjs/quickjs-libc.c
|
JSModuleDef *js_init_module_std(JSContext *ctx, const char *module_name)
{
JSModuleDef *m;
m = JS_NewCModule(ctx, module_name, js_std_init);
if (!m)
return NULL;
JS_AddModuleExportList(ctx, m, js_std_funcs, countof(js_std_funcs));
JS_AddModuleExport(ctx, m, "in");
JS_AddModuleExport(ctx, m, "out");
JS_AddModuleExport(ctx, m, "err");
return m;
}
|
O3
|
c
|
js_init_module_std:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x65(%rip), %rdx # 0x14a3c
callq 0x30bf6
movq %rax, %r14
testq %rax, %rax
je 0x14a31
leaq 0xb2df5(%rip), %rdx # 0xc77e0
movq %rbx, %rdi
movq %r14, %rsi
movl $0x16, %ecx
callq 0x333ed
leaq 0x8be66(%rip), %rdx # 0xa0868
movq %rbx, %rdi
movq %r14, %rsi
callq 0x30c36
leaq 0x88f6f(%rip), %rdx # 0x9d983
movq %rbx, %rdi
movq %r14, %rsi
callq 0x30c36
leaq 0x88f64(%rip), %rdx # 0x9d98a
movq %rbx, %rdi
movq %r14, %rsi
callq 0x30c36
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
js_init_module_std:
push r14
push rbx
push rax
mov rbx, rdi
lea rdx, js_std_init
call JS_NewCModule
mov r14, rax
test rax, rax
jz short loc_14A31
lea rdx, js_std_funcs
mov rdi, rbx
mov rsi, r14
mov ecx, 16h
call JS_AddModuleExportList
lea rdx, aCircularProtot+16h; "in"
mov rdi, rbx
mov rsi, r14
call JS_AddModuleExport
lea rdx, aStdout_0+3; "out"
mov rdi, rbx
mov rsi, r14
call JS_AddModuleExport
lea rdx, aStderr_0+3; "err"
mov rdi, rbx
mov rsi, r14
call JS_AddModuleExport
loc_14A31:
mov rax, r14
add rsp, 8
pop rbx
pop r14
retn
|
long long js_init_module_std(long long a1, long long a2)
{
long long v2; // rax
long long v3; // r14
v2 = JS_NewCModule(a1, a2, js_std_init);
v3 = v2;
if ( v2 )
{
JS_AddModuleExportList(a1, v2, &js_std_funcs, 22LL);
JS_AddModuleExport(a1, v3, "in");
JS_AddModuleExport(a1, v3, "out");
JS_AddModuleExport(a1, v3, "err");
}
return v3;
}
|
js_init_module_std:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA RDX,[0x114a3c]
CALL 0x00130bf6
MOV R14,RAX
TEST RAX,RAX
JZ 0x00114a31
LEA RDX,[0x1c77e0]
MOV RDI,RBX
MOV RSI,R14
MOV ECX,0x16
CALL 0x001333ed
LEA RDX,[0x1a0868]
MOV RDI,RBX
MOV RSI,R14
CALL 0x00130c36
LEA RDX,[0x19d983]
MOV RDI,RBX
MOV RSI,R14
CALL 0x00130c36
LEA RDX,[0x19d98a]
MOV RDI,RBX
MOV RSI,R14
CALL 0x00130c36
LAB_00114a31:
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R14
RET
|
long js_init_module_std(int8 param_1,int8 param_2)
{
long lVar1;
lVar1 = JS_NewCModule(param_1,param_2,js_std_init);
if (lVar1 != 0) {
JS_AddModuleExportList(param_1,lVar1,js_std_funcs,0x16);
JS_AddModuleExport(param_1,lVar1,"in");
JS_AddModuleExport(param_1,lVar1,"out");
JS_AddModuleExport(param_1,lVar1,"err");
}
return lVar1;
}
|
|
59,613
|
my_mb_wc_latin1
|
eloqsql/strings/ctype-latin1.c
|
static
int my_mb_wc_latin1(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t *wc,
const uchar *str,
const uchar *end __attribute__((unused)))
{
if (str >= end)
return MY_CS_TOOSMALL;
/*
There are no unassigned characters in latin1.
Every code point in latin1 is mapped to some Unicode code point.
We can always return 1, no needs to check the value of cs_to_uni[*str].
*/
*wc= cs_to_uni[*str];
DBUG_ASSERT(wc[0] || !str[0]);
return 1;
}
|
O0
|
c
|
my_mb_wc_latin1:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jb 0x741d7
movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B
jmp 0x741fd
movq -0x20(%rbp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x100ab9(%rip), %rax # 0x174ca0
movzwl (%rax,%rcx,2), %eax
movl %eax, %ecx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
jmp 0x741f6
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_mb_wc_latin1:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_20]
cmp rax, [rbp+var_28]
jb short loc_741D7
mov [rbp+var_4], 0FFFFFF9Bh
jmp short loc_741FD
loc_741D7:
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax]
mov ecx, eax
lea rax, cs_to_uni
movzx eax, word ptr [rax+rcx*2]
mov ecx, eax
mov rax, [rbp+var_18]
mov [rax], rcx
jmp short $+2
loc_741F6:
mov [rbp+var_4], 1
loc_741FD:
mov eax, [rbp+var_4]
pop rbp
retn
|
long long my_mb_wc_latin1(long long a1, _QWORD *a2, unsigned __int8 *a3, unsigned long long a4)
{
if ( (unsigned long long)a3 < a4 )
{
*a2 = cs_to_uni[*a3];
return 1;
}
else
{
return (unsigned int)-101;
}
}
|
my_mb_wc_latin1:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x28]
JC 0x001741d7
MOV dword ptr [RBP + -0x4],0xffffff9b
JMP 0x001741fd
LAB_001741d7:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x274ca0]
MOVZX EAX,word ptr [RAX + RCX*0x2]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
JMP 0x001741f6
LAB_001741f6:
MOV dword ptr [RBP + -0x4],0x1
LAB_001741fd:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4 my_mb_wc_latin1(int8 param_1,ulong *param_2,byte *param_3,byte *param_4)
{
int4 local_c;
if (param_3 < param_4) {
*param_2 = (ulong)*(ushort *)(cs_to_uni + (ulong)*param_3 * 2);
local_c = 1;
}
else {
local_c = 0xffffff9b;
}
return local_c;
}
|
|
59,614
|
maria_rtree_get_next
|
eloqsql/storage/maria/ma_rt_index.c
|
int maria_rtree_get_next(MARIA_HA *info, uint keynr, uint key_length)
{
my_off_t root;
MARIA_KEYDEF *keyinfo= info->s->keyinfo + keynr;
uchar *keyread_buff= info->keyread_buff;
if (!info->keyread_buff_used)
{
uint key_data_length= keyinfo->keylength - info->s->base.rec_reflength;
/* rt_PAGE_NEXT_KEY(*info->last_rtree_keypos) */
uchar *key= keyread_buff + *info->last_rtree_keypos + keyinfo->keylength;
/* rt_PAGE_NEXT_KEY(key) */
uchar *after_key= key + keyinfo->keylength;
MARIA_KEY tmp_key;
tmp_key.keyinfo= keyinfo;
tmp_key.data= key;
tmp_key.data_length= key_data_length;
tmp_key.ref_length= info->s->base.rec_reflength;
tmp_key.flag= 0;
info->cur_row.lastpos= _ma_row_pos_from_key(&tmp_key);
_ma_copy_key(&info->last_key, &tmp_key);
*info->last_rtree_keypos= (uint) (key - keyread_buff);
if (after_key >= info->int_maxpos)
{
info->keyread_buff_used= 1;
}
return 0;
}
else
{
if ((root= info->s->state.key_root[keynr]) == HA_OFFSET_ERROR)
{
my_errno= HA_ERR_END_OF_FILE;
return -1;
}
return maria_rtree_get_req(info, &keyinfo[keynr], key_length, root, 0);
}
}
|
O3
|
c
|
maria_rtree_get_next:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq (%rdi), %rax
movl %esi, %edx
imulq $0x118, %rdx, %rcx # imm = 0x118
movq 0x570(%rax), %rsi
addq %rcx, %rsi
cmpb $0x0, 0x685(%rdi)
je 0x61b80
movq 0x118(%rax), %rax
movq (%rax,%rdx,8), %rdx
cmpq $-0x1, %rdx
je 0x61c07
addq %rcx, %rsi
movq %rbx, %rdi
xorl %ecx, %ecx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x617e9
movq 0x380(%rbx), %r12
movzwl 0xaa(%rsi), %r15d
movl 0x3e0(%rax), %eax
movl %r15d, %ecx
subl %eax, %ecx
movq 0x638(%rbx), %rdx
movl (%rdx), %r13d
addq %r12, %r13
addq %r15, %r13
addq %r13, %r15
leaq -0x48(%rbp), %r14
movq %rsi, 0x8(%r14)
movq %r13, (%r14)
movl %ecx, 0x10(%r14)
movl %eax, 0x14(%r14)
movl $0x0, 0x18(%r14)
movq %r14, %rdi
callq 0x6d338
movq %rax, 0x98(%rbx)
leaq 0x200(%rbx), %rdi
movq %r14, %rsi
callq 0x41d78
subl %r12d, %r13d
movq 0x638(%rbx), %rax
movl %r13d, (%rax)
cmpq 0x3b8(%rbx), %r15
jb 0x61c03
movb $0x1, 0x685(%rbx)
xorl %eax, %eax
jmp 0x61c17
callq 0xa1b26
movl $0x89, (%rax)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
maria_rtree_get_next:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov rbx, rdi
mov rax, [rdi]
mov edx, esi
imul rcx, rdx, 118h
mov rsi, [rax+570h]
add rsi, rcx
cmp byte ptr [rdi+685h], 0
jz short loc_61B80
mov rax, [rax+118h]
mov rdx, [rax+rdx*8]
cmp rdx, 0FFFFFFFFFFFFFFFFh
jz loc_61C07
add rsi, rcx
mov rdi, rbx
xor ecx, ecx
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp maria_rtree_get_req
loc_61B80:
mov r12, [rbx+380h]
movzx r15d, word ptr [rsi+0AAh]
mov eax, [rax+3E0h]
mov ecx, r15d
sub ecx, eax
mov rdx, [rbx+638h]
mov r13d, [rdx]
add r13, r12
add r13, r15
add r15, r13
lea r14, [rbp+var_48]
mov [r14+8], rsi
mov [r14], r13
mov [r14+10h], ecx
mov [r14+14h], eax
mov dword ptr [r14+18h], 0
mov rdi, r14
call _ma_row_pos_from_key
mov [rbx+98h], rax
lea rdi, [rbx+200h]
mov rsi, r14
call _ma_copy_key
sub r13d, r12d
mov rax, [rbx+638h]
mov [rax], r13d
cmp r15, [rbx+3B8h]
jb short loc_61C03
mov byte ptr [rbx+685h], 1
loc_61C03:
xor eax, eax
jmp short loc_61C17
loc_61C07:
call _my_thread_var
mov dword ptr [rax], 89h
mov eax, 0FFFFFFFFh
loc_61C17:
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long maria_rtree_get_next(long long *a1, unsigned int a2)
{
long long v2; // rax
long long v3; // rdx
long long v4; // rcx
long long v5; // rsi
long long v6; // rdx
long long v8; // r12
long long v9; // r15
unsigned int v10; // eax
unsigned int v11; // ecx
long long v12; // r13
_QWORD v13[2]; // [rsp+8h] [rbp-48h] BYREF
unsigned int v14; // [rsp+18h] [rbp-38h]
long long v15; // [rsp+1Ch] [rbp-34h]
v2 = *a1;
v3 = a2;
v4 = 280LL * a2;
v5 = v4 + *(_QWORD *)(*a1 + 1392);
if ( *((_BYTE *)a1 + 1669) )
{
v6 = *(_QWORD *)(*(_QWORD *)(v2 + 280) + 8 * v3);
if ( v6 == -1 )
{
*(_DWORD *)my_thread_var(a1) = 137;
return 0xFFFFFFFFLL;
}
else
{
return maria_rtree_get_req(a1, v4 + v5, v6, 0LL);
}
}
else
{
v8 = a1[112];
v9 = *(unsigned __int16 *)(v5 + 170);
v10 = *(_DWORD *)(v2 + 992);
v11 = *(unsigned __int16 *)(v5 + 170) - v10;
v12 = v9 + v8 + *(unsigned int *)a1[199];
v13[1] = v5;
v13[0] = v12;
v14 = v11;
v15 = v10;
a1[19] = ma_row_pos_from_key(v13);
ma_copy_key((long long)(a1 + 64), (long long)v13);
*(_DWORD *)a1[199] = v12 - v8;
if ( v12 + v9 >= (unsigned long long)a1[119] )
*((_BYTE *)a1 + 1669) = 1;
return 0LL;
}
}
|
maria_rtree_get_next:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
MOV RAX,qword ptr [RDI]
MOV EDX,ESI
IMUL RCX,RDX,0x118
MOV RSI,qword ptr [RAX + 0x570]
ADD RSI,RCX
CMP byte ptr [RDI + 0x685],0x0
JZ 0x00161b80
MOV RAX,qword ptr [RAX + 0x118]
MOV RDX,qword ptr [RAX + RDX*0x8]
CMP RDX,-0x1
JZ 0x00161c07
ADD RSI,RCX
MOV RDI,RBX
XOR ECX,ECX
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001617e9
LAB_00161b80:
MOV R12,qword ptr [RBX + 0x380]
MOVZX R15D,word ptr [RSI + 0xaa]
MOV EAX,dword ptr [RAX + 0x3e0]
MOV ECX,R15D
SUB ECX,EAX
MOV RDX,qword ptr [RBX + 0x638]
MOV R13D,dword ptr [RDX]
ADD R13,R12
ADD R13,R15
ADD R15,R13
LEA R14,[RBP + -0x48]
MOV qword ptr [R14 + 0x8],RSI
MOV qword ptr [R14],R13
MOV dword ptr [R14 + 0x10],ECX
MOV dword ptr [R14 + 0x14],EAX
MOV dword ptr [R14 + 0x18],0x0
MOV RDI,R14
CALL 0x0016d338
MOV qword ptr [RBX + 0x98],RAX
LEA RDI,[RBX + 0x200]
MOV RSI,R14
CALL 0x00141d78
SUB R13D,R12D
MOV RAX,qword ptr [RBX + 0x638]
MOV dword ptr [RAX],R13D
CMP R15,qword ptr [RBX + 0x3b8]
JC 0x00161c03
MOV byte ptr [RBX + 0x685],0x1
LAB_00161c03:
XOR EAX,EAX
JMP 0x00161c17
LAB_00161c07:
CALL 0x001a1b26
MOV dword ptr [RAX],0x89
MOV EAX,0xffffffff
LAB_00161c17:
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 maria_rtree_get_next(long *param_1,ulong param_2)
{
ushort uVar1;
int8 uVar2;
long lVar3;
int4 *puVar4;
long lVar5;
long lVar6;
long local_50;
long local_48;
int local_40;
int local_3c;
int4 local_38;
lVar3 = *param_1;
lVar5 = (param_2 & 0xffffffff) * 0x118;
local_48 = *(long *)(lVar3 + 0x570) + lVar5;
if (*(char *)((long)param_1 + 0x685) == '\0') {
lVar5 = param_1[0x70];
uVar1 = *(ushort *)(local_48 + 0xaa);
local_3c = *(int *)(lVar3 + 0x3e0);
local_40 = (uint)uVar1 - local_3c;
lVar6 = (ulong)*(uint *)param_1[199] + lVar5 + (ulong)uVar1;
local_38 = 0;
local_50 = lVar6;
lVar3 = _ma_row_pos_from_key(&local_50);
param_1[0x13] = lVar3;
_ma_copy_key(param_1 + 0x40,&local_50);
*(int *)param_1[199] = (int)lVar6 - (int)lVar5;
if ((ulong)param_1[0x77] <= (ulong)uVar1 + lVar6) {
*(int1 *)((long)param_1 + 0x685) = 1;
}
uVar2 = 0;
}
else {
lVar3 = *(long *)(*(long *)(lVar3 + 0x118) + (param_2 & 0xffffffff) * 8);
if (lVar3 != -1) {
uVar2 = maria_rtree_get_req(param_1,local_48 + lVar5,lVar3,0);
return uVar2;
}
puVar4 = (int4 *)_my_thread_var();
*puVar4 = 0x89;
uVar2 = 0xffffffff;
}
return uVar2;
}
|
|
59,615
|
my_strxfrm_pad_desc_and_reverse_nopad
|
eloqsql/strings/ctype-simple.c
|
size_t
my_strxfrm_pad_desc_and_reverse_nopad(CHARSET_INFO *cs,
uchar *str, uchar *frmend, uchar *strend,
uint nweights, uint flags, uint level)
{
if (nweights && frmend < strend && (flags & MY_STRXFRM_PAD_WITH_SPACE))
{
uint fill_length= MY_MIN((uint) (strend - frmend), nweights * cs->mbminlen);
memset(frmend, 0x00, fill_length);
frmend+= fill_length;
}
my_strxfrm_desc_and_reverse(str, frmend, flags, level);
if ((flags & MY_STRXFRM_PAD_TO_MAXLEN) && frmend < strend)
{
size_t fill_length= strend - frmend;
memset(frmend, 0x00, fill_length);
frmend= strend;
}
return frmend - str;
}
|
O0
|
c
|
my_strxfrm_pad_desc_and_reverse_nopad:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movl %r9d, -0x28(%rbp)
cmpl $0x0, -0x24(%rbp)
je 0x421c2
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0x421c2
movl -0x28(%rbp), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x421c2
movq -0x20(%rbp), %rax
movq -0x18(%rbp), %rcx
subq %rcx, %rax
movl -0x24(%rbp), %ecx
movq -0x8(%rbp), %rdx
imull 0x98(%rdx), %ecx
cmpl %ecx, %eax
jae 0x4218b
movq -0x20(%rbp), %rax
movq -0x18(%rbp), %rcx
subq %rcx, %rax
movl %eax, -0x3c(%rbp)
jmp 0x4219c
movl -0x24(%rbp), %eax
movq -0x8(%rbp), %rcx
imull 0x98(%rcx), %eax
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movl %eax, -0x2c(%rbp)
movq -0x18(%rbp), %rdi
movl -0x2c(%rbp), %eax
movl %eax, %edx
xorl %esi, %esi
callq 0x24170
movl -0x2c(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x28(%rbp), %edx
movl 0x10(%rbp), %ecx
callq 0x453c0
movl -0x28(%rbp), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x42212
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0x42212
movq -0x20(%rbp), %rax
movq -0x18(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rdi
movq -0x38(%rbp), %rdx
xorl %esi, %esi
callq 0x24170
movq -0x20(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
subq %rcx, %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_strxfrm_pad_desc_and_reverse_nopad:
push rbp
mov rbp, rsp
sub rsp, 40h
mov eax, [rbp+arg_0]
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_24], r8d
mov [rbp+var_28], r9d
cmp [rbp+var_24], 0
jz short loc_421C2
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jnb short loc_421C2
mov eax, [rbp+var_28]
and eax, 40h
cmp eax, 0
jz short loc_421C2
mov rax, [rbp+var_20]
mov rcx, [rbp+var_18]
sub rax, rcx
mov ecx, [rbp+var_24]
mov rdx, [rbp+var_8]
imul ecx, [rdx+98h]
cmp eax, ecx
jnb short loc_4218B
mov rax, [rbp+var_20]
mov rcx, [rbp+var_18]
sub rax, rcx
mov [rbp+var_3C], eax
jmp short loc_4219C
loc_4218B:
mov eax, [rbp+var_24]
mov rcx, [rbp+var_8]
imul eax, [rcx+98h]
mov [rbp+var_3C], eax
loc_4219C:
mov eax, [rbp+var_3C]
mov [rbp+var_2C], eax
mov rdi, [rbp+var_18]
mov eax, [rbp+var_2C]
mov edx, eax
xor esi, esi
call _memset
mov ecx, [rbp+var_2C]
mov rax, [rbp+var_18]
mov ecx, ecx
add rax, rcx
mov [rbp+var_18], rax
loc_421C2:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov edx, [rbp+var_28]
mov ecx, [rbp+arg_0]
call my_strxfrm_desc_and_reverse
mov eax, [rbp+var_28]
and eax, 80h
cmp eax, 0
jz short loc_42212
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jnb short loc_42212
mov rax, [rbp+var_20]
mov rcx, [rbp+var_18]
sub rax, rcx
mov [rbp+var_38], rax
mov rdi, [rbp+var_18]
mov rdx, [rbp+var_38]
xor esi, esi
call _memset
mov rax, [rbp+var_20]
mov [rbp+var_18], rax
loc_42212:
mov rax, [rbp+var_18]
mov rcx, [rbp+var_10]
sub rax, rcx
add rsp, 40h
pop rbp
retn
|
long long my_strxfrm_pad_desc_and_reverse_nopad(
long long a1,
long long a2,
unsigned long long a3,
unsigned long long a4,
int a5,
unsigned int a6,
unsigned int a7)
{
unsigned int v8; // [rsp+4h] [rbp-3Ch]
unsigned long long v11; // [rsp+28h] [rbp-18h]
v11 = a3;
if ( a5 && a3 < a4 && (a6 & 0x40) != 0 )
{
if ( (int)a4 - (int)a3 >= (unsigned int)(*(_DWORD *)(a1 + 152) * a5) )
v8 = *(_DWORD *)(a1 + 152) * a5;
else
v8 = a4 - a3;
memset(a3, 0LL, v8);
v11 += v8;
}
my_strxfrm_desc_and_reverse(a2, v11, a6, a7);
if ( (a6 & 0x80) != 0 && v11 < a4 )
{
memset(v11, 0LL, a4 - v11);
v11 = a4;
}
return v11 - a2;
}
|
my_strxfrm_pad_desc_and_reverse_nopad:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV EAX,dword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV dword ptr [RBP + -0x24],R8D
MOV dword ptr [RBP + -0x28],R9D
CMP dword ptr [RBP + -0x24],0x0
JZ 0x001421c2
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x001421c2
MOV EAX,dword ptr [RBP + -0x28]
AND EAX,0x40
CMP EAX,0x0
JZ 0x001421c2
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x18]
SUB RAX,RCX
MOV ECX,dword ptr [RBP + -0x24]
MOV RDX,qword ptr [RBP + -0x8]
IMUL ECX,dword ptr [RDX + 0x98]
CMP EAX,ECX
JNC 0x0014218b
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x18]
SUB RAX,RCX
MOV dword ptr [RBP + -0x3c],EAX
JMP 0x0014219c
LAB_0014218b:
MOV EAX,dword ptr [RBP + -0x24]
MOV RCX,qword ptr [RBP + -0x8]
IMUL EAX,dword ptr [RCX + 0x98]
MOV dword ptr [RBP + -0x3c],EAX
LAB_0014219c:
MOV EAX,dword ptr [RBP + -0x3c]
MOV dword ptr [RBP + -0x2c],EAX
MOV RDI,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RBP + -0x2c]
MOV EDX,EAX
XOR ESI,ESI
CALL 0x00124170
MOV ECX,dword ptr [RBP + -0x2c]
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
LAB_001421c2:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV EDX,dword ptr [RBP + -0x28]
MOV ECX,dword ptr [RBP + 0x10]
CALL 0x001453c0
MOV EAX,dword ptr [RBP + -0x28]
AND EAX,0x80
CMP EAX,0x0
JZ 0x00142212
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x00142212
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x18]
SUB RAX,RCX
MOV qword ptr [RBP + -0x38],RAX
MOV RDI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x38]
XOR ESI,ESI
CALL 0x00124170
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x18],RAX
LAB_00142212:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
SUB RAX,RCX
ADD RSP,0x40
POP RBP
RET
|
long my_strxfrm_pad_desc_and_reverse_nopad
(long param_1,long param_2,void *param_3,void *param_4,int param_5,uint param_6,
int4 param_7)
{
int4 local_44;
int8 local_20;
local_20 = param_3;
if (((param_5 != 0) && (param_3 < param_4)) && ((param_6 & 0x40) != 0)) {
if ((uint)((int)param_4 - (int)param_3) < (uint)(param_5 * *(int *)(param_1 + 0x98))) {
local_44 = (int)param_4 - (int)param_3;
}
else {
local_44 = param_5 * *(int *)(param_1 + 0x98);
}
memset(param_3,0,(ulong)local_44);
local_20 = (void *)((long)param_3 + (ulong)local_44);
}
my_strxfrm_desc_and_reverse(param_2,local_20,param_6,param_7);
if (((param_6 & 0x80) != 0) && (local_20 < param_4)) {
memset(local_20,0,(long)param_4 - (long)local_20);
local_20 = param_4;
}
return (long)local_20 - param_2;
}
|
|
59,616
|
ssz_get
|
corpus-core[P]colibri-stateless/src/util/ssz_merkle.c
|
ssz_ob_t ssz_get(ssz_ob_t* ob, const char* name) {
if (ob->def->type != SSZ_TYPE_CONTAINER) return (ssz_ob_t) {0};
for (int i = 0; i < ob->def->def.container.len; i++) {
if (strcmp(ob->def->def.container.elements[i].name, name) == 0) return ssz_get_field(ob, i);
}
log_error("ssz_get: %s not found in %s", name, ob->def->name);
return (ssz_ob_t) {0};
}
|
O0
|
c
|
ssz_get:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x40(%rbp)
movq %rdi, -0x38(%rbp)
movq %rsi, -0x8(%rbp)
movq %rdx, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
cmpl $0x2, 0x8(%rax)
je 0x1c79b
movq -0x40(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x5110
jmp 0x1c886
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
movq 0x10(%rcx), %rcx
cmpl 0x18(%rcx), %eax
jae 0x1c7fc
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movslq -0x14(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x5250
cmpl $0x0, %eax
jne 0x1c7ef
movq -0x40(%rbp), %rdi
movq -0x8(%rbp), %rsi
movl -0x14(%rbp), %edx
callq 0x1c890
jmp 0x1c886
jmp 0x1c7f1
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x1c7a2
jmp 0x1c7fe
movb $0x0, %al
callq 0x220e0
cmpl $0x1, %eax
jb 0x1c874
leaq -0x30(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x5110
movq -0x10(%rbp), %rdx
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rcx
leaq -0x30(%rbp), %rdi
leaq 0x37b5c(%rip), %rsi # 0x54390
movb $0x0, %al
callq 0x19740
movq 0x5279e(%rip), %rax # 0x6efe0
movq (%rax), %rdi
movq -0x28(%rbp), %r9
leaq 0x35b28(%rip), %rsi # 0x52378
leaq 0x37b55(%rip), %rdx # 0x543ac
leaq 0x37b59(%rip), %rcx # 0x543b7
movl $0xd1, %r8d
movb $0x0, %al
callq 0x50d0
leaq -0x30(%rbp), %rdi
callq 0x18d90
jmp 0x1c876
movq -0x40(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x5110
movq -0x38(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
|
ssz_get:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_40], rdi
mov [rbp+var_38], rdi
mov [rbp+var_8], rsi
mov [rbp+var_10], rdx
mov rax, [rbp+var_8]
mov rax, [rax+10h]
cmp dword ptr [rax+8], 2
jz short loc_1C79B
mov rdi, [rbp+var_40]
xor esi, esi
mov edx, 18h
call _memset
jmp loc_1C886
loc_1C79B:
mov [rbp+var_14], 0
loc_1C7A2:
mov eax, [rbp+var_14]
mov rcx, [rbp+var_8]
mov rcx, [rcx+10h]
cmp eax, [rcx+18h]
jnb short loc_1C7FC
mov rax, [rbp+var_8]
mov rax, [rax+10h]
mov rax, [rax+10h]
movsxd rcx, [rbp+var_14]
shl rcx, 5
add rax, rcx
mov rdi, [rax]
mov rsi, [rbp+var_10]
call _strcmp
cmp eax, 0
jnz short loc_1C7EF
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_8]
mov edx, [rbp+var_14]
call ssz_get_field
jmp loc_1C886
loc_1C7EF:
jmp short $+2
loc_1C7F1:
mov eax, [rbp+var_14]
add eax, 1
mov [rbp+var_14], eax
jmp short loc_1C7A2
loc_1C7FC:
jmp short $+2
loc_1C7FE:
mov al, 0
call c4_get_log_level
cmp eax, 1
jb short loc_1C874
lea rdi, [rbp+var_30]
xor esi, esi
mov edx, 18h
call _memset
mov rdx, [rbp+var_10]
mov rax, [rbp+var_8]
mov rax, [rax+10h]
mov rcx, [rax]
lea rdi, [rbp+var_30]
lea rsi, aSszGetSNotFoun; "ssz_get: %s not found in %s"
mov al, 0
call bprintf
mov rax, cs:stderr_ptr
mov rdi, [rax]
mov r9, [rbp+var_28]
lea rsi, aS0m32mSD0mS; "%s\x1B[0m\x1B[32m %s:%d\x1B[0m %s\n"
lea rdx, a31merror; "\x1B[31mERROR"
lea rcx, aSszGet; "ssz_get"
mov r8d, 0D1h
mov al, 0
call _fprintf
lea rdi, [rbp+var_30]
call buffer_free
loc_1C874:
jmp short $+2
loc_1C876:
mov rdi, [rbp+var_40]
xor esi, esi
mov edx, 18h
call _memset
loc_1C886:
mov rax, [rbp+var_38]
add rsp, 40h
pop rbp
retn
|
long long ssz_get(
long long a1,
long long a2,
long long a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11)
{
long long v11; // r8
long long v12; // r9
__m128 v13; // xmm4
__m128 v14; // xmm5
long long v16; // [rsp+0h] [rbp-40h]
unsigned int v17; // [rsp+10h] [rbp-30h] BYREF
const char *v18; // [rsp+18h] [rbp-28h]
unsigned int i; // [rsp+2Ch] [rbp-14h]
long long v20; // [rsp+30h] [rbp-10h]
long long v21; // [rsp+38h] [rbp-8h]
v16 = a1;
v21 = a2;
v20 = a3;
if ( *(_DWORD *)(*(_QWORD *)(a2 + 16) + 8LL) == 2 )
{
for ( i = 0; i < *(_DWORD *)(*(_QWORD *)(v21 + 16) + 24LL); ++i )
{
if ( !(unsigned int)strcmp(*(_QWORD *)(32LL * (int)i + *(_QWORD *)(*(_QWORD *)(v21 + 16) + 16LL)), v20) )
{
ssz_get_field(a1, v21, i);
return a1;
}
}
if ( (unsigned int)c4_get_log_level() )
{
memset(&v17, 0LL, 24LL);
bprintf(
&v17,
(long long)"ssz_get: %s not found in %s",
v20,
**(_QWORD **)(v21 + 16),
v11,
v12,
a4,
a5,
a6,
a7,
v13,
v14,
a10,
a11,
a1);
fprintf(stderr, "%s\x1B[0m\x1B[32m %s:%d\x1B[0m %s\n", "\x1B[31mERROR", "ssz_get", 209, v18);
buffer_free((long long)&v17);
}
memset(v16, 0LL, 24LL);
}
else
{
memset(a1, 0LL, 24LL);
}
return a1;
}
|
ssz_get:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x40],RDI
MOV qword ptr [RBP + -0x38],RDI
MOV qword ptr [RBP + -0x8],RSI
MOV qword ptr [RBP + -0x10],RDX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
CMP dword ptr [RAX + 0x8],0x2
JZ 0x0011c79b
MOV RDI,qword ptr [RBP + -0x40]
XOR ESI,ESI
MOV EDX,0x18
CALL 0x00105110
JMP 0x0011c886
LAB_0011c79b:
MOV dword ptr [RBP + -0x14],0x0
LAB_0011c7a2:
MOV EAX,dword ptr [RBP + -0x14]
MOV RCX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RCX + 0x10]
CMP EAX,dword ptr [RCX + 0x18]
JNC 0x0011c7fc
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RAX + 0x10]
MOVSXD RCX,dword ptr [RBP + -0x14]
SHL RCX,0x5
ADD RAX,RCX
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x00105250
CMP EAX,0x0
JNZ 0x0011c7ef
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x8]
MOV EDX,dword ptr [RBP + -0x14]
CALL 0x0011c890
JMP 0x0011c886
LAB_0011c7ef:
JMP 0x0011c7f1
LAB_0011c7f1:
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x1
MOV dword ptr [RBP + -0x14],EAX
JMP 0x0011c7a2
LAB_0011c7fc:
JMP 0x0011c7fe
LAB_0011c7fe:
MOV AL,0x0
CALL 0x001220e0
CMP EAX,0x1
JC 0x0011c874
LEA RDI,[RBP + -0x30]
XOR ESI,ESI
MOV EDX,0x18
CALL 0x00105110
MOV RDX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RAX]
LEA RDI,[RBP + -0x30]
LEA RSI,[0x154390]
MOV AL,0x0
CALL 0x00119740
MOV RAX,qword ptr [0x0016efe0]
MOV RDI,qword ptr [RAX]
MOV R9,qword ptr [RBP + -0x28]
LEA RSI,[0x152378]
LEA RDX,[0x1543ac]
LEA RCX,[0x1543b7]
MOV R8D,0xd1
MOV AL,0x0
CALL 0x001050d0
LEA RDI,[RBP + -0x30]
CALL 0x00118d90
LAB_0011c874:
JMP 0x0011c876
LAB_0011c876:
MOV RDI,qword ptr [RBP + -0x40]
XOR ESI,ESI
MOV EDX,0x18
CALL 0x00105110
LAB_0011c886:
MOV RAX,qword ptr [RBP + -0x38]
ADD RSP,0x40
POP RBP
RET
|
void * ssz_get(void *param_1,long param_2,char *param_3)
{
int iVar1;
int1 local_38 [8];
int8 local_30;
uint local_1c;
char *local_18;
long local_10;
local_18 = param_3;
local_10 = param_2;
if (*(int *)(*(long *)(param_2 + 0x10) + 8) == 2) {
for (local_1c = 0; local_1c < *(uint *)(*(long *)(local_10 + 0x10) + 0x18);
local_1c = local_1c + 1) {
iVar1 = strcmp(*(char **)(*(long *)(*(long *)(local_10 + 0x10) + 0x10) +
(long)(int)local_1c * 0x20),local_18);
if (iVar1 == 0) {
ssz_get_field(param_1,local_10,local_1c);
return param_1;
}
}
iVar1 = c4_get_log_level();
if (iVar1 != 0) {
memset(local_38,0,0x18);
bprintf(local_38,"ssz_get: %s not found in %s",local_18,**(int8 **)(local_10 + 0x10));
fprintf(*(FILE **)PTR_stderr_0016efe0,"%s\x1b[0m\x1b[32m %s:%d\x1b[0m %s\n",&DAT_001543ac,
"ssz_get",0xd1,local_30);
buffer_free(local_38);
}
memset(param_1,0,0x18);
}
else {
memset(param_1,0,0x18);
}
return param_1;
}
|
|
59,617
|
ssz_get
|
corpus-core[P]colibri-stateless/src/util/ssz_merkle.c
|
ssz_ob_t ssz_get(ssz_ob_t* ob, const char* name) {
if (ob->def->type != SSZ_TYPE_CONTAINER) return (ssz_ob_t) {0};
for (int i = 0; i < ob->def->def.container.len; i++) {
if (strcmp(ob->def->def.container.elements[i].name, name) == 0) return ssz_get_field(ob, i);
}
log_error("ssz_get: %s not found in %s", name, ob->def->name);
return (ssz_ob_t) {0};
}
|
O1
|
c
|
ssz_get:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, 0x38(%rsp)
movq %rdi, %rbx
movq 0x10(%rsi), %rbp
movl 0x8(%rbp), %r14d
cmpl $0x2, %r14d
movq %rdi, 0x28(%rsp)
jne 0x151b2
movq %rsi, 0x50(%rsp)
leaq 0x10(%rsi), %rax
movq %rax, 0x30(%rsp)
movl 0x18(%rbp), %r12d
testq %r12, %r12
setne %r13b
je 0x151a2
movq 0x10(%rbp), %rbx
movq (%rbx), %rdi
movq 0x38(%rsp), %rsi
callq 0x5280
testl %eax, %eax
je 0x14e74
addq $0x20, %rbx
leaq -0x1(%r12), %r13
xorl %r15d, %r15d
cmpq %r15, %r13
je 0x151a2
movq (%rbx), %rdi
movq 0x38(%rsp), %rsi
callq 0x5280
addq $0x20, %rbx
incq %r15
testl %eax, %eax
jne 0x14e4a
cmpq %r12, %r15
setb %r13b
jmp 0x14e77
xorl %r15d, %r15d
cmpl $0x2, %r14d
setne %al
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
sete %cl
testq %rbp, %rbp
sete %dl
orb %cl, %dl
orb %al, %dl
jne 0x1518a
cmpq $0x0, 0x8(%rdi)
je 0x1518a
cmpl $0x0, (%rdi)
je 0x1518a
movb %r13b, 0xf(%rsp)
xorl %r12d, %r12d
movb $0x1, 0x7(%rsp)
movl $0x1, %eax
movq %rax, 0x48(%rsp)
movl $0x20, %eax
movq %rax, 0x40(%rsp)
movl $0x0, 0x8(%rsp)
movq $0x0, 0x20(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movq %r12, %r13
shlq $0x5, %r13
addq 0x10(%rbp), %r13
movq %rdi, %rbx
movq %r13, %rdi
callq 0x13690
movq %rbx, %rdi
movq %rax, %rbp
movq 0x20(%rsp), %rax
leaq (%rax,%rbp), %r14
movl (%rbx), %eax
cmpq %rax, %r14
jbe 0x14f48
movq 0x28(%rsp), %rcx
movl 0x8(%rsp), %eax
movl %eax, (%rcx)
movl $0x0, 0x4(%rcx)
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rcx)
movq 0x10(%rsp), %rax
movq %rax, 0x10(%rcx)
xorl %eax, %eax
jmp 0x1512d
movb $0x1, %al
cmpq %r15, %r12
jne 0x14fa5
movq %r12, 0x10(%rsp)
movq %r13, %rdi
callq 0x135f8
testb %al, %al
je 0x14faf
movq 0x8(%rbx), %rdi
addq 0x20(%rsp), %rdi
callq 0x128bd
movq %rbx, %rdi
movl (%rbx), %r9d
subl %eax, %r9d
jae 0x14fcc
movq 0x28(%rsp), %rcx
movl 0x8(%rsp), %edx
movl %edx, (%rcx)
movl $0x0, 0x4(%rcx)
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rcx)
movq %r13, 0x10(%rcx)
xorl %r8d, %r8d
movq 0x10(%rsp), %r12
jmp 0x150b9
movq %r14, 0x20(%rsp)
jmp 0x1512d
movq %rbx, %rdi
movq 0x8(%rbx), %rax
addq 0x20(%rsp), %rax
movq %rax, 0x18(%rsp)
movl %ebp, %edx
movq 0x10(%rsp), %r12
jmp 0x150be
movl %eax, %eax
addq 0x8(%rdi), %rax
movq %rax, 0x18(%rsp)
movq 0x10(%rsp), %r12
leaq 0x1(%r12), %rcx
movq 0x10(%rdi), %rax
movl 0x18(%rax), %edx
movb $0x1, %r8b
cmpq %rdx, %rcx
jae 0x15044
movl %r9d, 0x8(%rsp)
movq 0x40(%rsp), %rbp
movq 0x48(%rsp), %rbx
movq %rdi, %r12
movq 0x10(%rax), %rdi
addq %rbp, %rdi
callq 0x135f8
testb %al, %al
jne 0x1504e
movq 0x30(%rsp), %r12
movq (%r12), %rax
movq 0x10(%rax), %rdi
addq %rbp, %rdi
callq 0x13690
addq %rax, %r14
incq %rbx
movq (%r12), %rax
movq 0x50(%rsp), %rdi
movl 0x18(%rax), %ecx
addq $0x20, %rbp
cmpq %rcx, %rbx
jb 0x14fff
jmp 0x150a8
movq %r14, 0x20(%rsp)
movl %r9d, %edx
jmp 0x150b9
leaq 0x4(%r14), %rax
movl (%r12), %ecx
cmpq %rcx, %rax
jbe 0x15082
movq %r12, %rdi
movq 0x28(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
xorl %r8d, %r8d
movq %r14, 0x20(%rsp)
movl 0x8(%rsp), %edx
jmp 0x14f9b
movq 0x8(%r12), %rdi
addq %r14, %rdi
callq 0x128bd
movq %r12, %rdi
cmpl (%r12), %eax
jae 0x150a8
movl %eax, %edx
addl 0x8(%rdi), %edx
subl 0x18(%rsp), %edx
movq %r14, 0x20(%rsp)
jmp 0x150b1
movq %r14, 0x20(%rsp)
movl 0x8(%rsp), %edx
movq 0x10(%rsp), %r12
movb $0x1, %r8b
testb %r8b, %r8b
je 0x15122
cmpl $0x7, 0x8(%r13)
jne 0x150e8
testl %edx, %edx
je 0x15109
movq 0x18(%rsp), %rax
movzbl (%rax), %eax
cmpl %eax, 0x18(%r13)
jbe 0x15109
shll $0x5, %eax
addq 0x10(%r13), %rax
decl %edx
incq 0x18(%rsp)
movq %rax, %r13
movq 0x28(%rsp), %rcx
movl %edx, 0x8(%rsp)
movl %edx, (%rcx)
movl $0x0, 0x4(%rcx)
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rcx)
movq %r13, 0x10(%rcx)
jmp 0x15126
movl %edx, 0x8(%rsp)
xorps %xmm0, %xmm0
movq 0x28(%rsp), %rax
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
jmp 0x15126
movl %edx, 0x8(%rsp)
xorl %eax, %eax
movq %r13, 0x10(%rsp)
testb %al, %al
je 0x15158
incq %r12
movq 0x30(%rsp), %rax
movq (%rax), %rbp
movl 0x18(%rbp), %eax
incq 0x48(%rsp)
addq $0x20, 0x40(%rsp)
cmpq %rax, %r12
setb 0x7(%rsp)
jb 0x14ef1
testb $0x1, 0x7(%rsp)
movb 0xf(%rsp), %r13b
jne 0x1519d
movq 0x28(%rsp), %rcx
movl 0x8(%rsp), %eax
movl %eax, (%rcx)
movl $0x0, 0x4(%rcx)
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rcx)
movq 0x10(%rsp), %rax
movq %rax, 0x10(%rcx)
jmp 0x1519d
xorps %xmm0, %xmm0
movq 0x28(%rsp), %rax
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
testb %r13b, %r13b
jne 0x151c0
xorl %eax, %eax
callq 0x1869f
testl %eax, %eax
movq 0x28(%rsp), %rbx
jne 0x151d4
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq 0x28(%rsp), %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x5546
jmp 0x151b2
|
ssz_get:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov [rsp+88h+var_50], rdx
mov rbx, rdi
mov rbp, [rsi+10h]
mov r14d, [rbp+8]
cmp r14d, 2
mov [rsp+88h+var_60], rdi
jnz loc_151B2
mov [rsp+88h+var_38], rsi
lea rax, [rsi+10h]
mov [rsp+88h+var_58], rax
mov r12d, [rbp+18h]
test r12, r12
setnz r13b
jz loc_151A2
mov rbx, [rbp+10h]
mov rdi, [rbx]
mov rsi, [rsp+88h+var_50]
call _strcmp
test eax, eax
jz short loc_14E74
add rbx, 20h ; ' '
lea r13, [r12-1]
xor r15d, r15d
loc_14E4A:
cmp r13, r15
jz loc_151A2
mov rdi, [rbx]
mov rsi, [rsp+88h+var_50]
call _strcmp
add rbx, 20h ; ' '
inc r15
test eax, eax
jnz short loc_14E4A
cmp r15, r12
setb r13b
jmp short loc_14E77
loc_14E74:
xor r15d, r15d
loc_14E77:
cmp r14d, 2
setnz al
mov rdi, [rsp+88h+var_38]
test rdi, rdi
setz cl
test rbp, rbp
setz dl
or dl, cl
or dl, al
jnz loc_1518A
cmp qword ptr [rdi+8], 0
jz loc_1518A
cmp dword ptr [rdi], 0
jz loc_1518A
mov [rsp+88h+var_79], r13b
xor r12d, r12d
mov [rsp+88h+var_81], 1
mov eax, 1
mov [rsp+88h+var_40], rax
mov eax, 20h ; ' '
mov [rsp+88h+var_48], rax
mov [rsp+88h+var_80], 0
mov [rsp+88h+var_68], 0
mov [rsp+88h+var_78], 0
mov [rsp+88h+var_70], 0
loc_14EF1:
mov r13, r12
shl r13, 5
add r13, [rbp+10h]
mov rbx, rdi
mov rdi, r13
call ssz_fixed_length
mov rdi, rbx
mov rbp, rax
mov rax, [rsp+88h+var_68]
lea r14, [rax+rbp]
mov eax, [rbx]
cmp r14, rax
jbe short loc_14F48
mov rcx, [rsp+88h+var_60]
mov eax, [rsp+88h+var_80]
mov [rcx], eax
mov dword ptr [rcx+4], 0
mov rax, [rsp+88h+var_70]
mov [rcx+8], rax
mov rax, [rsp+88h+var_78]
mov [rcx+10h], rax
xor eax, eax
jmp loc_1512D
loc_14F48:
mov al, 1
cmp r12, r15
jnz short loc_14FA5
mov [rsp+88h+var_78], r12
mov rdi, r13
call ssz_is_dynamic
test al, al
jz short loc_14FAF
mov rdi, [rbx+8]
add rdi, [rsp+88h+var_68]
call uint32_from_le
mov rdi, rbx
mov r9d, [rbx]
sub r9d, eax
jnb short loc_14FCC
mov rcx, [rsp+88h+var_60]
mov edx, [rsp+88h+var_80]
mov [rcx], edx
mov dword ptr [rcx+4], 0
mov rax, [rsp+88h+var_70]
mov [rcx+8], rax
mov [rcx+10h], r13
xor r8d, r8d
loc_14F9B:
mov r12, [rsp+88h+var_78]
jmp loc_150B9
loc_14FA5:
mov [rsp+88h+var_68], r14
jmp loc_1512D
loc_14FAF:
mov rdi, rbx
mov rax, [rbx+8]
add rax, [rsp+88h+var_68]
mov [rsp+88h+var_70], rax
mov edx, ebp
mov r12, [rsp+88h+var_78]
jmp loc_150BE
loc_14FCC:
mov eax, eax
add rax, [rdi+8]
mov [rsp+88h+var_70], rax
mov r12, [rsp+88h+var_78]
lea rcx, [r12+1]
mov rax, [rdi+10h]
mov edx, [rax+18h]
mov r8b, 1
cmp rcx, rdx
jnb short loc_15044
mov [rsp+88h+var_80], r9d
mov rbp, [rsp+88h+var_48]
mov rbx, [rsp+88h+var_40]
loc_14FFF:
mov r12, rdi
mov rdi, [rax+10h]
add rdi, rbp
call ssz_is_dynamic
test al, al
jnz short loc_1504E
mov r12, [rsp+88h+var_58]
mov rax, [r12]
mov rdi, [rax+10h]
add rdi, rbp
call ssz_fixed_length
add r14, rax
inc rbx
mov rax, [r12]
mov rdi, [rsp+88h+var_38]
mov ecx, [rax+18h]
add rbp, 20h ; ' '
cmp rbx, rcx
jb short loc_14FFF
jmp short loc_150A8
loc_15044:
mov [rsp+88h+var_68], r14
mov edx, r9d
jmp short loc_150B9
loc_1504E:
lea rax, [r14+4]
mov ecx, [r12]
cmp rax, rcx
jbe short loc_15082
mov rdi, r12
mov rax, [rsp+88h+var_60]
xorps xmm0, xmm0
movups xmmword ptr [rax], xmm0
mov qword ptr [rax+10h], 0
xor r8d, r8d
mov [rsp+88h+var_68], r14
mov edx, [rsp+88h+var_80]
jmp loc_14F9B
loc_15082:
mov rdi, [r12+8]
add rdi, r14
call uint32_from_le
mov rdi, r12
cmp eax, [r12]
jnb short loc_150A8
mov edx, eax
add edx, [rdi+8]
sub edx, dword ptr [rsp+88h+var_70]
mov [rsp+88h+var_68], r14
jmp short loc_150B1
loc_150A8:
mov [rsp+88h+var_68], r14
mov edx, [rsp+88h+var_80]
loc_150B1:
mov r12, [rsp+88h+var_78]
mov r8b, 1
loc_150B9:
test r8b, r8b
jz short loc_15122
loc_150BE:
cmp dword ptr [r13+8], 7
jnz short loc_150E8
test edx, edx
jz short loc_15109
mov rax, [rsp+88h+var_70]
movzx eax, byte ptr [rax]
cmp [r13+18h], eax
jbe short loc_15109
shl eax, 5
add rax, [r13+10h]
dec edx
inc [rsp+88h+var_70]
mov r13, rax
loc_150E8:
mov rcx, [rsp+88h+var_60]
mov [rsp+88h+var_80], edx
mov [rcx], edx
mov dword ptr [rcx+4], 0
mov rax, [rsp+88h+var_70]
mov [rcx+8], rax
mov [rcx+10h], r13
jmp short loc_15126
loc_15109:
mov [rsp+88h+var_80], edx
xorps xmm0, xmm0
mov rax, [rsp+88h+var_60]
movups xmmword ptr [rax], xmm0
mov qword ptr [rax+10h], 0
jmp short loc_15126
loc_15122:
mov [rsp+88h+var_80], edx
loc_15126:
xor eax, eax
mov [rsp+88h+var_78], r13
loc_1512D:
test al, al
jz short loc_15158
inc r12
mov rax, [rsp+88h+var_58]
mov rbp, [rax]
mov eax, [rbp+18h]
inc [rsp+88h+var_40]
add [rsp+88h+var_48], 20h ; ' '
cmp r12, rax
setb [rsp+88h+var_81]
jb loc_14EF1
loc_15158:
test [rsp+88h+var_81], 1
mov r13b, [rsp+88h+var_79]
jnz short loc_1519D
mov rcx, [rsp+88h+var_60]
mov eax, [rsp+88h+var_80]
mov [rcx], eax
mov dword ptr [rcx+4], 0
mov rax, [rsp+88h+var_70]
mov [rcx+8], rax
mov rax, [rsp+88h+var_78]
mov [rcx+10h], rax
jmp short loc_1519D
loc_1518A:
xorps xmm0, xmm0
mov rax, [rsp+88h+var_60]
movups xmmword ptr [rax], xmm0
mov qword ptr [rax+10h], 0
loc_1519D:
test r13b, r13b
jnz short loc_151C0
loc_151A2:
xor eax, eax
call c4_get_log_level
test eax, eax
mov rbx, [rsp+88h+var_60]
jnz short loc_151D4
loc_151B2:
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
mov qword ptr [rbx+10h], 0
loc_151C0:
mov rax, [rsp+88h+var_60]
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_151D4:
mov rdi, [rsp+88h+var_58]
mov rsi, [rsp+88h+var_50]
call ssz_get_cold_1
jmp short loc_151B2
|
long long ssz_get(long long a1, unsigned int *a2, long long a3)
{
long long v3; // rbx
long long v4; // rbp
unsigned long long v5; // r12
bool v6; // r13
_QWORD *v7; // rbx
_QWORD *v8; // rbx
unsigned long long v9; // r15
int v10; // eax
unsigned int *v11; // rdi
unsigned long long v12; // r12
long long v13; // r13
long long v14; // rbp
long long v15; // r14
char v16; // al
unsigned int v17; // eax
unsigned int v18; // r9d
unsigned int v19; // edx
char v20; // r8
unsigned int *v21; // rax
long long v22; // rbp
unsigned long long v23; // rbx
unsigned int v24; // eax
unsigned int v25; // eax
unsigned long long v26; // rax
long long v27; // rdx
long long v28; // rcx
int v29; // r8d
int v30; // r9d
bool v32; // [rsp+7h] [rbp-81h]
unsigned int v33; // [rsp+8h] [rbp-80h]
unsigned int v34; // [rsp+8h] [rbp-80h]
bool v35; // [rsp+Fh] [rbp-79h]
long long v36; // [rsp+10h] [rbp-78h]
unsigned __int8 *v37; // [rsp+18h] [rbp-70h]
long long v38; // [rsp+20h] [rbp-68h]
long long *v40; // [rsp+30h] [rbp-58h]
long long v42; // [rsp+40h] [rbp-48h]
long long v43; // [rsp+48h] [rbp-40h]
v3 = a1;
v4 = *((_QWORD *)a2 + 2);
if ( *(_DWORD *)(v4 + 8) != 2 )
goto LABEL_50;
v40 = (long long *)(a2 + 4);
v5 = *(unsigned int *)(v4 + 24);
v6 = v5 != 0;
if ( !*(_DWORD *)(v4 + 24) )
goto LABEL_48;
v7 = *(_QWORD **)(v4 + 16);
if ( !(unsigned int)strcmp(*v7, a3) )
{
v9 = 0LL;
}
else
{
v8 = v7 + 4;
v9 = 0LL;
do
{
if ( v5 - 1 == v9 )
goto LABEL_48;
v10 = strcmp(*v8, a3);
v8 += 4;
++v9;
}
while ( v10 );
v6 = v9 < v5;
}
v11 = a2;
if ( a2 == 0LL || v4 == 0 || !*((_QWORD *)a2 + 1) || !*a2 )
{
*(_OWORD *)a1 = 0LL;
*(_QWORD *)(a1 + 16) = 0LL;
goto LABEL_47;
}
v35 = v6;
v12 = 0LL;
v32 = 1;
v43 = 1LL;
v42 = 32LL;
v33 = 0;
v38 = 0LL;
v36 = 0LL;
v37 = 0LL;
do
{
v13 = *(_QWORD *)(v4 + 16) + 32 * v12;
v14 = ssz_fixed_length(v13);
v15 = v38 + v14;
if ( v38 + v14 <= (unsigned long long)*v11 )
{
v16 = 1;
if ( v12 != v9 )
{
v38 += v14;
goto LABEL_42;
}
if ( (unsigned __int8)ssz_is_dynamic(v13) )
{
v17 = uint32_from_le((unsigned int *)(v38 + *((_QWORD *)v11 + 1)));
v18 = *v11 - v17;
if ( *v11 >= v17 )
{
v37 = (unsigned __int8 *)(*((_QWORD *)v11 + 1) + v17);
v21 = (unsigned int *)*((_QWORD *)v11 + 2);
v20 = 1;
if ( v12 + 1 >= v21[6] )
{
v38 += v14;
v19 = v18;
}
else
{
v34 = v18;
v22 = v42;
v23 = v43;
while ( !(unsigned __int8)ssz_is_dynamic(v22 + *((_QWORD *)v21 + 2)) )
{
v15 += ssz_fixed_length(v22 + *(_QWORD *)(*v40 + 16));
++v23;
v21 = (unsigned int *)*v40;
v11 = a2;
v22 += 32LL;
if ( v23 >= *(unsigned int *)(*v40 + 24) )
goto LABEL_31;
}
if ( v15 + 4 > (unsigned long long)*v11 )
{
*(_OWORD *)a1 = 0LL;
*(_QWORD *)(a1 + 16) = 0LL;
v20 = 0;
v38 = v15;
v19 = v34;
goto LABEL_33;
}
v24 = uint32_from_le((unsigned int *)(v15 + *((_QWORD *)v11 + 1)));
if ( v24 < *v11 )
{
v19 = v11[2] + v24 - (_DWORD)v37;
v38 = v15;
goto LABEL_32;
}
LABEL_31:
v38 = v15;
v19 = v34;
LABEL_32:
v20 = 1;
}
}
else
{
v19 = v33;
*(_QWORD *)a1 = v33;
*(_QWORD *)(a1 + 8) = v37;
*(_QWORD *)(a1 + 16) = v13;
v20 = 0;
}
LABEL_33:
if ( !v20 )
{
v33 = v19;
goto LABEL_41;
}
}
else
{
v37 = (unsigned __int8 *)(v38 + *((_QWORD *)v11 + 1));
v19 = v14;
}
if ( *(_DWORD *)(v13 + 8) == 7 )
{
if ( !v19 || (v25 = *v37, *(_DWORD *)(v13 + 24) <= v25) )
{
v33 = v19;
*(_OWORD *)a1 = 0LL;
*(_QWORD *)(a1 + 16) = 0LL;
goto LABEL_41;
}
--v19;
++v37;
v13 = *(_QWORD *)(v13 + 16) + 32 * v25;
}
v33 = v19;
*(_DWORD *)a1 = v19;
*(_DWORD *)(a1 + 4) = 0;
*(_QWORD *)(a1 + 8) = v37;
*(_QWORD *)(a1 + 16) = v13;
LABEL_41:
v16 = 0;
v36 = v13;
goto LABEL_42;
}
*(_DWORD *)a1 = v33;
*(_DWORD *)(a1 + 4) = 0;
*(_QWORD *)(a1 + 8) = v37;
*(_QWORD *)(a1 + 16) = v36;
v16 = 0;
LABEL_42:
if ( !v16 )
break;
++v12;
v4 = *v40;
v26 = *(unsigned int *)(*v40 + 24);
++v43;
v42 += 32LL;
v32 = v12 < v26;
}
while ( v12 < v26 );
v6 = v35;
if ( !v32 )
{
*(_DWORD *)a1 = v33;
*(_DWORD *)(a1 + 4) = 0;
*(_QWORD *)(a1 + 8) = v37;
*(_QWORD *)(a1 + 16) = v36;
}
LABEL_47:
if ( !v6 )
{
LABEL_48:
v3 = a1;
if ( (unsigned int)c4_get_log_level() )
ssz_get_cold_1((_QWORD **)v40, a3, v27, v28, v29, v30);
LABEL_50:
*(_OWORD *)v3 = 0LL;
*(_QWORD *)(v3 + 16) = 0LL;
}
return a1;
}
|
ssz_get:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV qword ptr [RSP + 0x38],RDX
MOV RBX,RDI
MOV RBP,qword ptr [RSI + 0x10]
MOV R14D,dword ptr [RBP + 0x8]
CMP R14D,0x2
MOV qword ptr [RSP + 0x28],RDI
JNZ 0x001151b2
MOV qword ptr [RSP + 0x50],RSI
LEA RAX,[RSI + 0x10]
MOV qword ptr [RSP + 0x30],RAX
MOV R12D,dword ptr [RBP + 0x18]
TEST R12,R12
SETNZ R13B
JZ 0x001151a2
MOV RBX,qword ptr [RBP + 0x10]
MOV RDI,qword ptr [RBX]
MOV RSI,qword ptr [RSP + 0x38]
CALL 0x00105280
TEST EAX,EAX
JZ 0x00114e74
ADD RBX,0x20
LEA R13,[R12 + -0x1]
XOR R15D,R15D
LAB_00114e4a:
CMP R13,R15
JZ 0x001151a2
MOV RDI,qword ptr [RBX]
MOV RSI,qword ptr [RSP + 0x38]
CALL 0x00105280
ADD RBX,0x20
INC R15
TEST EAX,EAX
JNZ 0x00114e4a
CMP R15,R12
SETC R13B
JMP 0x00114e77
LAB_00114e74:
XOR R15D,R15D
LAB_00114e77:
CMP R14D,0x2
SETNZ AL
MOV RDI,qword ptr [RSP + 0x50]
TEST RDI,RDI
SETZ CL
TEST RBP,RBP
SETZ DL
OR DL,CL
OR DL,AL
JNZ 0x0011518a
CMP qword ptr [RDI + 0x8],0x0
JZ 0x0011518a
CMP dword ptr [RDI],0x0
JZ 0x0011518a
MOV byte ptr [RSP + 0xf],R13B
XOR R12D,R12D
MOV byte ptr [RSP + 0x7],0x1
MOV EAX,0x1
MOV qword ptr [RSP + 0x48],RAX
MOV EAX,0x20
MOV qword ptr [RSP + 0x40],RAX
MOV dword ptr [RSP + 0x8],0x0
MOV qword ptr [RSP + 0x20],0x0
MOV qword ptr [RSP + 0x10],0x0
MOV qword ptr [RSP + 0x18],0x0
LAB_00114ef1:
MOV R13,R12
SHL R13,0x5
ADD R13,qword ptr [RBP + 0x10]
MOV RBX,RDI
MOV RDI,R13
CALL 0x00113690
MOV RDI,RBX
MOV RBP,RAX
MOV RAX,qword ptr [RSP + 0x20]
LEA R14,[RAX + RBP*0x1]
MOV EAX,dword ptr [RBX]
CMP R14,RAX
JBE 0x00114f48
MOV RCX,qword ptr [RSP + 0x28]
MOV EAX,dword ptr [RSP + 0x8]
MOV dword ptr [RCX],EAX
MOV dword ptr [RCX + 0x4],0x0
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RCX + 0x8],RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RCX + 0x10],RAX
XOR EAX,EAX
JMP 0x0011512d
LAB_00114f48:
MOV AL,0x1
CMP R12,R15
JNZ 0x00114fa5
MOV qword ptr [RSP + 0x10],R12
MOV RDI,R13
CALL 0x001135f8
TEST AL,AL
JZ 0x00114faf
MOV RDI,qword ptr [RBX + 0x8]
ADD RDI,qword ptr [RSP + 0x20]
CALL 0x001128bd
MOV RDI,RBX
MOV R9D,dword ptr [RBX]
SUB R9D,EAX
JNC 0x00114fcc
MOV RCX,qword ptr [RSP + 0x28]
MOV EDX,dword ptr [RSP + 0x8]
MOV dword ptr [RCX],EDX
MOV dword ptr [RCX + 0x4],0x0
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RCX + 0x8],RAX
MOV qword ptr [RCX + 0x10],R13
XOR R8D,R8D
LAB_00114f9b:
MOV R12,qword ptr [RSP + 0x10]
JMP 0x001150b9
LAB_00114fa5:
MOV qword ptr [RSP + 0x20],R14
JMP 0x0011512d
LAB_00114faf:
MOV RDI,RBX
MOV RAX,qword ptr [RBX + 0x8]
ADD RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x18],RAX
MOV EDX,EBP
MOV R12,qword ptr [RSP + 0x10]
JMP 0x001150be
LAB_00114fcc:
MOV EAX,EAX
ADD RAX,qword ptr [RDI + 0x8]
MOV qword ptr [RSP + 0x18],RAX
MOV R12,qword ptr [RSP + 0x10]
LEA RCX,[R12 + 0x1]
MOV RAX,qword ptr [RDI + 0x10]
MOV EDX,dword ptr [RAX + 0x18]
MOV R8B,0x1
CMP RCX,RDX
JNC 0x00115044
MOV dword ptr [RSP + 0x8],R9D
MOV RBP,qword ptr [RSP + 0x40]
MOV RBX,qword ptr [RSP + 0x48]
LAB_00114fff:
MOV R12,RDI
MOV RDI,qword ptr [RAX + 0x10]
ADD RDI,RBP
CALL 0x001135f8
TEST AL,AL
JNZ 0x0011504e
MOV R12,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [R12]
MOV RDI,qword ptr [RAX + 0x10]
ADD RDI,RBP
CALL 0x00113690
ADD R14,RAX
INC RBX
MOV RAX,qword ptr [R12]
MOV RDI,qword ptr [RSP + 0x50]
MOV ECX,dword ptr [RAX + 0x18]
ADD RBP,0x20
CMP RBX,RCX
JC 0x00114fff
JMP 0x001150a8
LAB_00115044:
MOV qword ptr [RSP + 0x20],R14
MOV EDX,R9D
JMP 0x001150b9
LAB_0011504e:
LEA RAX,[R14 + 0x4]
MOV ECX,dword ptr [R12]
CMP RAX,RCX
JBE 0x00115082
MOV RDI,R12
MOV RAX,qword ptr [RSP + 0x28]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX],XMM0
MOV qword ptr [RAX + 0x10],0x0
XOR R8D,R8D
MOV qword ptr [RSP + 0x20],R14
MOV EDX,dword ptr [RSP + 0x8]
JMP 0x00114f9b
LAB_00115082:
MOV RDI,qword ptr [R12 + 0x8]
ADD RDI,R14
CALL 0x001128bd
MOV RDI,R12
CMP EAX,dword ptr [R12]
JNC 0x001150a8
MOV EDX,EAX
ADD EDX,dword ptr [RDI + 0x8]
SUB EDX,dword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x20],R14
JMP 0x001150b1
LAB_001150a8:
MOV qword ptr [RSP + 0x20],R14
MOV EDX,dword ptr [RSP + 0x8]
LAB_001150b1:
MOV R12,qword ptr [RSP + 0x10]
MOV R8B,0x1
LAB_001150b9:
TEST R8B,R8B
JZ 0x00115122
LAB_001150be:
CMP dword ptr [R13 + 0x8],0x7
JNZ 0x001150e8
TEST EDX,EDX
JZ 0x00115109
MOV RAX,qword ptr [RSP + 0x18]
MOVZX EAX,byte ptr [RAX]
CMP dword ptr [R13 + 0x18],EAX
JBE 0x00115109
SHL EAX,0x5
ADD RAX,qword ptr [R13 + 0x10]
DEC EDX
INC qword ptr [RSP + 0x18]
MOV R13,RAX
LAB_001150e8:
MOV RCX,qword ptr [RSP + 0x28]
MOV dword ptr [RSP + 0x8],EDX
MOV dword ptr [RCX],EDX
MOV dword ptr [RCX + 0x4],0x0
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RCX + 0x8],RAX
MOV qword ptr [RCX + 0x10],R13
JMP 0x00115126
LAB_00115109:
MOV dword ptr [RSP + 0x8],EDX
XORPS XMM0,XMM0
MOV RAX,qword ptr [RSP + 0x28]
MOVUPS xmmword ptr [RAX],XMM0
MOV qword ptr [RAX + 0x10],0x0
JMP 0x00115126
LAB_00115122:
MOV dword ptr [RSP + 0x8],EDX
LAB_00115126:
XOR EAX,EAX
MOV qword ptr [RSP + 0x10],R13
LAB_0011512d:
TEST AL,AL
JZ 0x00115158
INC R12
MOV RAX,qword ptr [RSP + 0x30]
MOV RBP,qword ptr [RAX]
MOV EAX,dword ptr [RBP + 0x18]
INC qword ptr [RSP + 0x48]
ADD qword ptr [RSP + 0x40],0x20
CMP R12,RAX
SETC byte ptr [RSP + 0x7]
JC 0x00114ef1
LAB_00115158:
TEST byte ptr [RSP + 0x7],0x1
MOV R13B,byte ptr [RSP + 0xf]
JNZ 0x0011519d
MOV RCX,qword ptr [RSP + 0x28]
MOV EAX,dword ptr [RSP + 0x8]
MOV dword ptr [RCX],EAX
MOV dword ptr [RCX + 0x4],0x0
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RCX + 0x8],RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RCX + 0x10],RAX
JMP 0x0011519d
LAB_0011518a:
XORPS XMM0,XMM0
MOV RAX,qword ptr [RSP + 0x28]
MOVUPS xmmword ptr [RAX],XMM0
MOV qword ptr [RAX + 0x10],0x0
LAB_0011519d:
TEST R13B,R13B
JNZ 0x001151c0
LAB_001151a2:
XOR EAX,EAX
CALL 0x0011869f
TEST EAX,EAX
MOV RBX,qword ptr [RSP + 0x28]
JNZ 0x001151d4
LAB_001151b2:
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
MOV qword ptr [RBX + 0x10],0x0
LAB_001151c0:
MOV RAX,qword ptr [RSP + 0x28]
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001151d4:
MOV RDI,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RSP + 0x38]
CALL 0x00105546
JMP 0x001151b2
|
int * ssz_get(int *param_1,uint *param_2,char *param_3)
{
uint *puVar1;
bool bVar2;
char cVar3;
int iVar4;
uint uVar5;
long lVar6;
int8 *puVar7;
ulong uVar8;
long lVar9;
ulong uVar10;
long lVar11;
ulong uVar12;
ulong uVar13;
bool bVar14;
bool bVar15;
int local_80;
long local_78;
byte *local_70;
ulong local_68;
long local_48;
ulong local_40;
lVar6 = *(long *)(param_2 + 4);
if (*(int *)(lVar6 + 8) == 2) {
puVar1 = param_2 + 4;
uVar10 = (ulong)*(uint *)(lVar6 + 0x18);
bVar15 = uVar10 != 0;
if (bVar15) {
puVar7 = *(int8 **)(lVar6 + 0x10);
iVar4 = strcmp((char *)*puVar7,param_3);
if (iVar4 == 0) {
uVar13 = 0;
}
else {
uVar13 = 0;
do {
puVar7 = puVar7 + 4;
if (uVar10 - 1 == uVar13) goto LAB_001151a2;
iVar4 = strcmp((char *)*puVar7,param_3);
uVar13 = uVar13 + 1;
} while (iVar4 != 0);
bVar15 = uVar13 < uVar10;
}
if (((lVar6 == 0 || param_2 == (uint *)0x0) || (*(long *)(param_2 + 2) == 0)) ||
(*param_2 == 0)) {
param_1[0] = 0;
param_1[1] = 0;
param_1[2] = 0;
param_1[3] = 0;
param_1[4] = 0;
param_1[5] = 0;
}
else {
uVar10 = 0;
bVar14 = true;
local_40 = 1;
local_48 = 0x20;
local_80 = 0;
local_68 = 0;
local_78 = 0;
local_70 = (byte *)0x0;
do {
lVar11 = uVar10 * 0x20 + *(long *)(lVar6 + 0x10);
lVar6 = ssz_fixed_length(lVar11);
uVar12 = local_68 + lVar6;
if (*param_2 < uVar12) {
*param_1 = local_80;
param_1[1] = 0;
*(byte **)(param_1 + 2) = local_70;
*(long *)(param_1 + 4) = local_78;
bVar2 = false;
uVar12 = local_68;
}
else {
bVar2 = true;
if (uVar10 == uVar13) {
cVar3 = ssz_is_dynamic(lVar11);
if (cVar3 == '\0') {
local_70 = (byte *)(*(long *)(param_2 + 2) + local_68);
local_80 = (int)lVar6;
LAB_001150be:
if (*(int *)(lVar11 + 8) == 7) {
if ((local_80 == 0) || (*(uint *)(lVar11 + 0x18) <= (uint)*local_70)) {
param_1[0] = 0;
param_1[1] = 0;
param_1[2] = 0;
param_1[3] = 0;
param_1[4] = 0;
param_1[5] = 0;
goto LAB_00115126;
}
lVar11 = (ulong)*local_70 * 0x20 + *(long *)(lVar11 + 0x10);
local_80 = local_80 + -1;
local_70 = local_70 + 1;
}
*param_1 = local_80;
param_1[1] = 0;
*(byte **)(param_1 + 2) = local_70;
*(long *)(param_1 + 4) = lVar11;
}
else {
uVar5 = uint32_from_le(*(long *)(param_2 + 2) + local_68);
iVar4 = *param_2 - uVar5;
if (*param_2 < uVar5) {
*param_1 = local_80;
param_1[1] = 0;
*(byte **)(param_1 + 2) = local_70;
*(long *)(param_1 + 4) = lVar11;
iVar4 = local_80;
LAB_00114f9b:
bVar2 = false;
local_80 = iVar4;
}
else {
local_70 = (byte *)((ulong)uVar5 + *(long *)(param_2 + 2));
lVar6 = *(long *)(param_2 + 4);
bVar2 = true;
uVar8 = local_40;
lVar9 = local_48;
local_68 = uVar12;
local_80 = iVar4;
if (uVar10 + 1 < (ulong)*(uint *)(lVar6 + 0x18)) {
do {
cVar3 = ssz_is_dynamic(*(long *)(lVar6 + 0x10) + lVar9);
if (cVar3 != '\0') {
local_68 = uVar12;
if ((ulong)*param_2 < uVar12 + 4) {
param_1[0] = 0;
param_1[1] = 0;
param_1[2] = 0;
param_1[3] = 0;
param_1[4] = 0;
param_1[5] = 0;
goto LAB_00114f9b;
}
uVar5 = uint32_from_le(*(long *)(param_2 + 2) + uVar12);
if (uVar5 < *param_2) {
iVar4 = (uVar5 + param_2[2]) - (int)local_70;
}
break;
}
lVar6 = ssz_fixed_length(*(long *)(*(long *)puVar1 + 0x10) + lVar9);
uVar12 = uVar12 + lVar6;
uVar8 = uVar8 + 1;
lVar6 = *(long *)puVar1;
lVar9 = lVar9 + 0x20;
local_68 = uVar12;
} while (uVar8 < *(uint *)(lVar6 + 0x18));
bVar2 = true;
local_80 = iVar4;
}
}
if (bVar2) goto LAB_001150be;
}
LAB_00115126:
bVar2 = false;
local_78 = lVar11;
uVar12 = local_68;
}
}
local_68 = uVar12;
if (!bVar2) break;
uVar10 = uVar10 + 1;
lVar6 = *(long *)puVar1;
local_40 = local_40 + 1;
local_48 = local_48 + 0x20;
bVar14 = uVar10 < *(uint *)(lVar6 + 0x18);
} while (bVar14);
if (!bVar14) {
*param_1 = local_80;
param_1[1] = 0;
*(byte **)(param_1 + 2) = local_70;
*(long *)(param_1 + 4) = local_78;
}
}
if (bVar15) {
return param_1;
}
}
LAB_001151a2:
iVar4 = c4_get_log_level();
if (iVar4 != 0) {
ssz_get_cold_1(puVar1,param_3);
}
}
param_1[0] = 0;
param_1[1] = 0;
param_1[2] = 0;
param_1[3] = 0;
param_1[4] = 0;
param_1[5] = 0;
return param_1;
}
|
|
59,618
|
minja::Context::get(minja::Value const&)
|
monkey531[P]llama/common/minja.hpp
|
virtual Value get(const Value & key) {
if (values_.contains(key)) return values_.at(key);
if (parent_) return parent_->get(key);
return Value();
}
|
O3
|
cpp
|
minja::Context::get(minja::Value const&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x18(%rsi), %r12
movq %r12, %rdi
movq %rdx, %rsi
callq 0x5484e
testb %al, %al
je 0x601ee
movq %r12, %rdi
movq %r14, %rsi
callq 0x5463c
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4eb90
jmp 0x60241
movq 0x68(%r15), %rsi
testq %rsi, %rsi
je 0x60205
movq (%rsi), %rax
movq %rbx, %rdi
movq %r14, %rdx
callq *0x10(%rax)
jmp 0x60241
leaq 0x40(%rbx), %r14
movq $0x0, 0x48(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x30(%rbx)
movb $0x0, 0x40(%rbx)
movq %r14, %rdi
movl $0x1, %esi
callq 0x3d7c0
movq %r14, %rdi
movl $0x1, %esi
callq 0x3d7c0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
|
_ZN5minja7Context3getERKNS_5ValueE:
push r15
push r14
push r12
push rbx
push rax
mov r14, rdx
mov r15, rsi
mov rbx, rdi
lea r12, [rsi+18h]
mov rdi, r12; this
mov rsi, rdx; minja::Value *
call _ZNK5minja5Value8containsERKS0_; minja::Value::contains(minja::Value const&)
test al, al
jz short loc_601EE
mov rdi, r12; this
mov rsi, r14; minja::Value *
call _ZN5minja5Value2atERKS0_; minja::Value::at(minja::Value const&)
mov rdi, rbx; this
mov rsi, rax; minja::Value *
call _ZN5minja5ValueC2ERKS0_; minja::Value::Value(minja::Value const&)
jmp short loc_60241
loc_601EE:
mov rsi, [r15+68h]
test rsi, rsi
jz short loc_60205
mov rax, [rsi]
mov rdi, rbx
mov rdx, r14
call qword ptr [rax+10h]
jmp short loc_60241
loc_60205:
lea r14, [rbx+40h]
mov qword ptr [rbx+48h], 0
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
movups xmmword ptr [rbx+10h], xmm0
movups xmmword ptr [rbx+20h], xmm0
movups xmmword ptr [rbx+30h], xmm0
mov byte ptr [rbx+40h], 0
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
loc_60241:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
|
minja::Context * minja::Context::get(
minja::Context *this,
const minja::Value *a2,
const minja::Value *a3,
__m128d a4)
{
const minja::Value *v5; // rax
long long v6; // rsi
if ( minja::Value::contains((const minja::Value *)((char *)a2 + 24), a3, a4) )
{
v5 = (const minja::Value *)minja::Value::at((const minja::Value *)((char *)a2 + 24), a3);
minja::Value::Value(this, v5);
}
else
{
v6 = *((_QWORD *)a2 + 13);
if ( v6 )
{
(*(void ( **)(minja::Context *, long long, const minja::Value *))(*(_QWORD *)v6 + 16LL))(this, v6, a3);
}
else
{
*((_QWORD *)this + 9) = 0LL;
*(_OWORD *)this = 0LL;
*((_OWORD *)this + 1) = 0LL;
*((_OWORD *)this + 2) = 0LL;
*((_OWORD *)this + 3) = 0LL;
*((_BYTE *)this + 64) = 0;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)this + 64);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)this + 64);
}
}
return this;
}
|
get:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
LEA R12,[RSI + 0x18]
MOV RDI,R12
MOV RSI,RDX
CALL 0x0015484e
TEST AL,AL
JZ 0x001601ee
MOV RDI,R12
MOV RSI,R14
CALL 0x0015463c
MOV RDI,RBX
MOV RSI,RAX
CALL 0x0014eb90
JMP 0x00160241
LAB_001601ee:
MOV RSI,qword ptr [R15 + 0x68]
TEST RSI,RSI
JZ 0x00160205
MOV RAX,qword ptr [RSI]
MOV RDI,RBX
MOV RDX,R14
CALL qword ptr [RAX + 0x10]
JMP 0x00160241
LAB_00160205:
LEA R14,[RBX + 0x40]
MOV qword ptr [RBX + 0x48],0x0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
MOVUPS xmmword ptr [RBX + 0x10],XMM0
MOVUPS xmmword ptr [RBX + 0x20],XMM0
MOVUPS xmmword ptr [RBX + 0x30],XMM0
MOV byte ptr [RBX + 0x40],0x0
MOV RDI,R14
MOV ESI,0x1
CALL 0x0013d7c0
MOV RDI,R14
MOV ESI,0x1
CALL 0x0013d7c0
LAB_00160241:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* minja::Context::get(minja::Value const&) */
Value * minja::Context::get(Value *param_1)
{
char cVar1;
Value *pVVar2;
Value *in_RDX;
long in_RSI;
bool bVar3;
cVar1 = Value::contains((Value *)(in_RSI + 0x18),in_RDX);
if (cVar1 == '\0') {
if (*(long **)(in_RSI + 0x68) == (long *)0x0) {
bVar3 = (bool)((char)param_1 + '@');
*(int8 *)(param_1 + 0x48) = 0;
*(int8 *)param_1 = 0;
*(int8 *)(param_1 + 8) = 0;
*(int8 *)(param_1 + 0x10) = 0;
*(int8 *)(param_1 + 0x18) = 0;
*(int8 *)(param_1 + 0x20) = 0;
*(int8 *)(param_1 + 0x28) = 0;
*(int8 *)(param_1 + 0x30) = 0;
*(int8 *)(param_1 + 0x38) = 0;
param_1[0x40] = (Value)0x0;
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(bVar3);
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(bVar3);
}
else {
(**(code **)(**(long **)(in_RSI + 0x68) + 0x10))(param_1);
}
}
else {
pVVar2 = (Value *)Value::at((Value *)(in_RSI + 0x18),in_RDX);
Value::Value(param_1,pVVar2);
}
return param_1;
}
|
|
59,619
|
print_comment
|
eloqsql/mysys/my_getopt.c
|
static uint print_comment(const char *comment,
int curpos, int startpos, int width)
{
const char *end= strend(comment);
int endpos= startpos + width;
for (; curpos < startpos; curpos++)
putchar(' ');
if (*comment == '.' || *comment == ',')
{
putchar(*comment);
comment++;
curpos++;
}
while (end - comment > endpos - curpos)
{
const char *line_end;
for (line_end= comment + endpos - curpos;
line_end > comment && *line_end != ' ';
line_end--);
for (; comment < line_end; comment++)
putchar(*comment);
while (*comment == ' ')
comment++; /* skip the space, as a newline will take it's place now */
putchar('\n');
for (curpos= 0; curpos < startpos; curpos++)
putchar(' ');
}
printf("%s", comment);
return curpos + (int)(end - comment);
}
|
O0
|
c
|
print_comment:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movq -0x8(%rbp), %rdi
callq 0x7daf0
movq %rax, -0x20(%rbp)
movl -0x10(%rbp), %eax
addl -0x14(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0xc(%rbp), %eax
cmpl -0x10(%rbp), %eax
jge 0x28ef8
movl $0x20, %edi
callq 0x24400
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x28edb
movq -0x8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2e, %eax
je 0x28f10
movq -0x8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2c, %eax
jne 0x28f31
movq -0x8(%rbp), %rax
movsbl (%rax), %edi
callq 0x24400
movq -0x8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x8(%rbp)
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x28f33
movq -0x20(%rbp), %rax
movq -0x8(%rbp), %rcx
subq %rcx, %rax
movl -0x24(%rbp), %ecx
subl -0xc(%rbp), %ecx
movslq %ecx, %rcx
cmpq %rcx, %rax
jle 0x29018
movq -0x8(%rbp), %rax
movslq -0x24(%rbp), %rcx
addq %rcx, %rax
movslq -0xc(%rbp), %rdx
xorl %ecx, %ecx
subq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rcx
xorl %eax, %eax
cmpq -0x8(%rbp), %rcx
movb %al, -0x31(%rbp)
jbe 0x28f8a
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x20, %eax
setne %al
movb %al, -0x31(%rbp)
movb -0x31(%rbp), %al
testb $0x1, %al
jne 0x28f93
jmp 0x28fa3
jmp 0x28f95
movq -0x30(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x28f6b
jmp 0x28fa5
movq -0x8(%rbp), %rax
cmpq -0x30(%rbp), %rax
jae 0x28fc9
movq -0x8(%rbp), %rax
movsbl (%rax), %edi
callq 0x24400
movq -0x8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x8(%rbp)
jmp 0x28fa5
jmp 0x28fcb
movq -0x8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x20, %eax
jne 0x28fe5
movq -0x8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x8(%rbp)
jmp 0x28fcb
movl $0xa, %edi
callq 0x24400
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
cmpl -0x10(%rbp), %eax
jge 0x29013
movl $0x20, %edi
callq 0x24400
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x28ff6
jmp 0x28f33
movq -0x8(%rbp), %rsi
leaq 0x5ade0(%rip), %rdi # 0x83e03
movb $0x0, %al
callq 0x24050
movl -0xc(%rbp), %eax
movq -0x20(%rbp), %rcx
movq -0x8(%rbp), %rdx
subq %rdx, %rcx
addl %ecx, %eax
addq $0x40, %rsp
popq %rbp
retq
|
print_comment:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_10], edx
mov [rbp+var_14], ecx
mov rdi, [rbp+var_8]
call strend
mov [rbp+var_20], rax
mov eax, [rbp+var_10]
add eax, [rbp+var_14]
mov [rbp+var_24], eax
loc_28EDB:
mov eax, [rbp+var_C]
cmp eax, [rbp+var_10]
jge short loc_28EF8
mov edi, 20h ; ' '
call _putchar
mov eax, [rbp+var_C]
add eax, 1
mov [rbp+var_C], eax
jmp short loc_28EDB
loc_28EF8:
mov rax, [rbp+var_8]
movsx eax, byte ptr [rax]
cmp eax, 2Eh ; '.'
jz short loc_28F10
mov rax, [rbp+var_8]
movsx eax, byte ptr [rax]
cmp eax, 2Ch ; ','
jnz short loc_28F31
loc_28F10:
mov rax, [rbp+var_8]
movsx edi, byte ptr [rax]
call _putchar
mov rax, [rbp+var_8]
add rax, 1
mov [rbp+var_8], rax
mov eax, [rbp+var_C]
add eax, 1
mov [rbp+var_C], eax
loc_28F31:
jmp short $+2
loc_28F33:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_8]
sub rax, rcx
mov ecx, [rbp+var_24]
sub ecx, [rbp+var_C]
movsxd rcx, ecx
cmp rax, rcx
jle loc_29018
mov rax, [rbp+var_8]
movsxd rcx, [rbp+var_24]
add rax, rcx
movsxd rdx, [rbp+var_C]
xor ecx, ecx
sub rcx, rdx
add rax, rcx
mov [rbp+var_30], rax
loc_28F6B:
mov rcx, [rbp+var_30]
xor eax, eax
cmp rcx, [rbp+var_8]
mov [rbp+var_31], al
jbe short loc_28F8A
mov rax, [rbp+var_30]
movsx eax, byte ptr [rax]
cmp eax, 20h ; ' '
setnz al
mov [rbp+var_31], al
loc_28F8A:
mov al, [rbp+var_31]
test al, 1
jnz short loc_28F93
jmp short loc_28FA3
loc_28F93:
jmp short $+2
loc_28F95:
mov rax, [rbp+var_30]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_30], rax
jmp short loc_28F6B
loc_28FA3:
jmp short $+2
loc_28FA5:
mov rax, [rbp+var_8]
cmp rax, [rbp+var_30]
jnb short loc_28FC9
mov rax, [rbp+var_8]
movsx edi, byte ptr [rax]
call _putchar
mov rax, [rbp+var_8]
add rax, 1
mov [rbp+var_8], rax
jmp short loc_28FA5
loc_28FC9:
jmp short $+2
loc_28FCB:
mov rax, [rbp+var_8]
movsx eax, byte ptr [rax]
cmp eax, 20h ; ' '
jnz short loc_28FE5
mov rax, [rbp+var_8]
add rax, 1
mov [rbp+var_8], rax
jmp short loc_28FCB
loc_28FE5:
mov edi, 0Ah
call _putchar
mov [rbp+var_C], 0
loc_28FF6:
mov eax, [rbp+var_C]
cmp eax, [rbp+var_10]
jge short loc_29013
mov edi, 20h ; ' '
call _putchar
mov eax, [rbp+var_C]
add eax, 1
mov [rbp+var_C], eax
jmp short loc_28FF6
loc_29013:
jmp loc_28F33
loc_29018:
mov rsi, [rbp+var_8]
lea rdi, aAtLineDPosDS+13h; "%s"
mov al, 0
call _printf
mov eax, [rbp+var_C]
mov rcx, [rbp+var_20]
mov rdx, [rbp+var_8]
sub rcx, rdx
add eax, ecx
add rsp, 40h
pop rbp
retn
|
long long print_comment(const char *a1, int j, int a3, int a4)
{
bool v5; // [rsp+Fh] [rbp-31h]
const char *i; // [rsp+10h] [rbp-30h]
int v7; // [rsp+1Ch] [rbp-24h]
long long v8; // [rsp+20h] [rbp-20h]
const char *v12; // [rsp+38h] [rbp-8h]
v12 = a1;
v8 = strend(a1);
v7 = a4 + a3;
while ( j < a3 )
{
putchar(32LL);
++j;
}
if ( *a1 == 46 || *a1 == 44 )
{
putchar((unsigned int)*a1);
v12 = a1 + 1;
++j;
}
while ( v8 - (long long)v12 > v7 - j )
{
for ( i = &v12[v7 - j]; ; --i )
{
v5 = 0;
if ( i > v12 )
v5 = *i != 32;
if ( !v5 )
break;
}
while ( v12 < i )
putchar((unsigned int)*v12++);
while ( *v12 == 32 )
++v12;
putchar(10LL);
for ( j = 0; j < a3; ++j )
putchar(32LL);
}
printf("%s", v12);
return (unsigned int)(v8 - (_DWORD)v12 + j);
}
|
print_comment:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV dword ptr [RBP + -0x10],EDX
MOV dword ptr [RBP + -0x14],ECX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0017daf0
MOV qword ptr [RBP + -0x20],RAX
MOV EAX,dword ptr [RBP + -0x10]
ADD EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x24],EAX
LAB_00128edb:
MOV EAX,dword ptr [RBP + -0xc]
CMP EAX,dword ptr [RBP + -0x10]
JGE 0x00128ef8
MOV EDI,0x20
CALL 0x00124400
MOV EAX,dword ptr [RBP + -0xc]
ADD EAX,0x1
MOV dword ptr [RBP + -0xc],EAX
JMP 0x00128edb
LAB_00128ef8:
MOV RAX,qword ptr [RBP + -0x8]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x2e
JZ 0x00128f10
MOV RAX,qword ptr [RBP + -0x8]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x2c
JNZ 0x00128f31
LAB_00128f10:
MOV RAX,qword ptr [RBP + -0x8]
MOVSX EDI,byte ptr [RAX]
CALL 0x00124400
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x1
MOV qword ptr [RBP + -0x8],RAX
MOV EAX,dword ptr [RBP + -0xc]
ADD EAX,0x1
MOV dword ptr [RBP + -0xc],EAX
LAB_00128f31:
JMP 0x00128f33
LAB_00128f33:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x8]
SUB RAX,RCX
MOV ECX,dword ptr [RBP + -0x24]
SUB ECX,dword ptr [RBP + -0xc]
MOVSXD RCX,ECX
CMP RAX,RCX
JLE 0x00129018
MOV RAX,qword ptr [RBP + -0x8]
MOVSXD RCX,dword ptr [RBP + -0x24]
ADD RAX,RCX
MOVSXD RDX,dword ptr [RBP + -0xc]
XOR ECX,ECX
SUB RCX,RDX
ADD RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
LAB_00128f6b:
MOV RCX,qword ptr [RBP + -0x30]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x8]
MOV byte ptr [RBP + -0x31],AL
JBE 0x00128f8a
MOV RAX,qword ptr [RBP + -0x30]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x20
SETNZ AL
MOV byte ptr [RBP + -0x31],AL
LAB_00128f8a:
MOV AL,byte ptr [RBP + -0x31]
TEST AL,0x1
JNZ 0x00128f93
JMP 0x00128fa3
LAB_00128f93:
JMP 0x00128f95
LAB_00128f95:
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x30],RAX
JMP 0x00128f6b
LAB_00128fa3:
JMP 0x00128fa5
LAB_00128fa5:
MOV RAX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RBP + -0x30]
JNC 0x00128fc9
MOV RAX,qword ptr [RBP + -0x8]
MOVSX EDI,byte ptr [RAX]
CALL 0x00124400
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x1
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00128fa5
LAB_00128fc9:
JMP 0x00128fcb
LAB_00128fcb:
MOV RAX,qword ptr [RBP + -0x8]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x20
JNZ 0x00128fe5
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x1
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00128fcb
LAB_00128fe5:
MOV EDI,0xa
CALL 0x00124400
MOV dword ptr [RBP + -0xc],0x0
LAB_00128ff6:
MOV EAX,dword ptr [RBP + -0xc]
CMP EAX,dword ptr [RBP + -0x10]
JGE 0x00129013
MOV EDI,0x20
CALL 0x00124400
MOV EAX,dword ptr [RBP + -0xc]
ADD EAX,0x1
MOV dword ptr [RBP + -0xc],EAX
JMP 0x00128ff6
LAB_00129013:
JMP 0x00128f33
LAB_00129018:
MOV RSI,qword ptr [RBP + -0x8]
LEA RDI,[0x183e03]
MOV AL,0x0
CALL 0x00124050
MOV EAX,dword ptr [RBP + -0xc]
MOV RCX,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x8]
SUB RCX,RDX
ADD EAX,ECX
ADD RSP,0x40
POP RBP
RET
|
int print_comment(char *param_1,int param_2,int param_3,int param_4)
{
long lVar1;
bool bVar2;
char *local_38;
int local_14;
char *local_10;
lVar1 = strend(param_1);
for (local_14 = param_2; local_14 < param_3; local_14 = local_14 + 1) {
putchar(0x20);
}
if ((*param_1 == '.') || (local_10 = param_1, *param_1 == ',')) {
putchar((int)*param_1);
local_10 = param_1 + 1;
local_14 = local_14 + 1;
}
while ((long)((param_3 + param_4) - local_14) < lVar1 - (long)local_10) {
local_38 = local_10 + ((long)(param_3 + param_4) - (long)local_14);
while( true ) {
bVar2 = false;
if (local_10 < local_38) {
bVar2 = *local_38 != ' ';
}
if (!bVar2) break;
local_38 = local_38 + -1;
}
for (; local_10 < local_38; local_10 = local_10 + 1) {
putchar((int)*local_10);
}
for (; *local_10 == ' '; local_10 = local_10 + 1) {
}
putchar(10);
for (local_14 = 0; local_14 < param_3; local_14 = local_14 + 1) {
putchar(0x20);
}
}
printf("%s",local_10);
return local_14 + ((int)lVar1 - (int)local_10);
}
|
|
59,620
|
lf_alloc_init
|
eloqsql/mysys/lf_alloc-pin.c
|
void lf_alloc_init(LF_ALLOCATOR *allocator, uint size, uint free_ptr_offset)
{
lf_pinbox_init(&allocator->pinbox, free_ptr_offset,
(lf_pinbox_free_func *)alloc_free, allocator);
allocator->top= 0;
allocator->mallocs= 0;
allocator->element_size= size;
allocator->constructor= 0;
allocator->destructor= 0;
DBUG_ASSERT(size >= sizeof(void*) + free_ptr_offset);
}
|
O0
|
c
|
lf_alloc_init:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movl -0x10(%rbp), %esi
movq -0x8(%rbp), %rcx
leaq 0x4c(%rip), %rdx # 0xfc820
callq 0xfc110
movq -0x8(%rbp), %rax
movq $0x0, 0x48(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x54(%rax)
movl -0xc(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x50(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x58(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x60(%rax)
jmp 0xfc814
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
lf_alloc_init:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_10], edx
mov rdi, [rbp+var_8]
mov esi, [rbp+var_10]
mov rcx, [rbp+var_8]
lea rdx, alloc_free
call lf_pinbox_init
mov rax, [rbp+var_8]
mov qword ptr [rax+48h], 0
mov rax, [rbp+var_8]
mov dword ptr [rax+54h], 0
mov ecx, [rbp+var_C]
mov rax, [rbp+var_8]
mov [rax+50h], ecx
mov rax, [rbp+var_8]
mov qword ptr [rax+58h], 0
mov rax, [rbp+var_8]
mov qword ptr [rax+60h], 0
jmp short $+2
loc_FC814:
add rsp, 10h
pop rbp
retn
|
long long lf_alloc_init(long long a1, int a2, int a3)
{
long long result; // rax
lf_pinbox_init(a1, a3, (long long)alloc_free, a1);
*(_QWORD *)(a1 + 72) = 0LL;
*(_DWORD *)(a1 + 84) = 0;
*(_DWORD *)(a1 + 80) = a2;
*(_QWORD *)(a1 + 88) = 0LL;
result = a1;
*(_QWORD *)(a1 + 96) = 0LL;
return result;
}
|
lf_alloc_init:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV dword ptr [RBP + -0x10],EDX
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x8]
LEA RDX,[0x1fc820]
CALL 0x001fc110
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x48],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x54],0x0
MOV ECX,dword ptr [RBP + -0xc]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x50],ECX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x58],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x60],0x0
JMP 0x001fc814
LAB_001fc814:
ADD RSP,0x10
POP RBP
RET
|
void lf_alloc_init(long param_1,int4 param_2,int4 param_3)
{
lf_pinbox_init(param_1,param_3,alloc_free,param_1);
*(int8 *)(param_1 + 0x48) = 0;
*(int4 *)(param_1 + 0x54) = 0;
*(int4 *)(param_1 + 0x50) = param_2;
*(int8 *)(param_1 + 0x58) = 0;
*(int8 *)(param_1 + 0x60) = 0;
return;
}
|
|
59,621
|
init_available_charsets
|
eloqsql/mysys/charset.c
|
static void init_available_charsets(void)
{
char fname[FN_REFLEN + sizeof(MY_CHARSET_INDEX)];
struct charset_info_st **cs;
MY_CHARSET_LOADER loader;
DBUG_ENTER("init_available_charsets");
bzero((char*) &all_charsets,sizeof(all_charsets));
bzero((char*) &my_collation_statistics, sizeof(my_collation_statistics));
my_hash_init2(key_memory_charsets, &charset_name_hash, 16,
&my_charset_latin1, 64, 0, 0, get_charset_key,
0, 0, HASH_UNIQUE);
init_compiled_charsets(MYF(0));
/* Copy compiled charsets */
for (cs= (struct charset_info_st**) all_charsets;
cs < (struct charset_info_st**) all_charsets +
array_elements(all_charsets)-1 ;
cs++)
{
if (*cs)
{
DBUG_ASSERT(cs[0]->mbmaxlen <= MY_CS_MBMAXLEN);
if (cs[0]->m_ctype)
if (init_state_maps(*cs))
*cs= NULL;
}
}
my_charset_loader_init_mysys(&loader);
strmov(get_charsets_dir(fname), MY_CHARSET_INDEX);
my_read_charset_file(&loader, fname, MYF(0));
DBUG_VOID_RETURN;
}
|
O3
|
c
|
init_available_charsets:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x300, %rsp # imm = 0x300
movq %fs:0x28, %rax
movq %rax, -0x18(%rbp)
leaq 0x3890d3(%rip), %rbx # 0x3d1b20
movl $0x4000, %edx # imm = 0x4000
movq %rbx, %rdi
xorl %esi, %esi
callq 0x261c0
leaq 0x38d12d(%rip), %rdi # 0x3d5b90
movl $0x4000, %edx # imm = 0x4000
xorl %esi, %esi
callq 0x261c0
leaq 0x388d86(%rip), %rax # 0x3d17fc
movl (%rax), %edi
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
leaq 0x10fc(%rip), %rax # 0x49b83
movq %rax, 0x8(%rsp)
movl $0x1, 0x20(%rsp)
movq $0x0, (%rsp)
leaq 0x38d07d(%rip), %rsi # 0x3d5b20
leaq 0x2f5396(%rip), %rcx # 0x33de40
movl $0x40, %r8d
movl $0x10, %edx
xorl %r9d, %r9d
callq 0x49ee1
xorl %edi, %edi
callq 0x4c238
movq $-0x8, %r14
movq 0x8(%rbx,%r14), %rdi
testq %rdi, %rdi
je 0x48aee
cmpq $0x0, 0x40(%rdi)
je 0x48aee
callq 0x499ce
testb %al, %al
je 0x48aee
movq $0x0, 0x8(%rbx,%r14)
addq $0x8, %r14
cmpq $0x3ff0, %r14 # imm = 0x3FF0
jb 0x48acb
leaq -0x2e0(%rbp), %rbx
movb $0x0, (%rbx)
leaq -0x8ae(%rip), %rax # 0x4825e
movq %rax, 0x80(%rbx)
leaq -0x8ad(%rip), %rax # 0x4826d
movq %rax, 0x88(%rbx)
leaq -0x8a0(%rip), %rax # 0x48288
movq %rax, 0x90(%rbx)
leaq -0x35f0(%rip), %rax # 0x45546
movq %rax, 0x98(%rbx)
leaq 0x2cf3c4(%rip), %rax # 0x317f08
movq (%rax), %rax
movq %rax, 0xa0(%rbx)
leaq -0x8af(%rip), %rax # 0x482a6
movq %rax, 0xa8(%rbx)
leaq -0x230(%rbp), %r14
movq %r14, %rdi
callq 0x487eb
movabsq $0x6d782e7865646e49, %rcx # imm = 0x6D782E7865646E49
movq %rcx, (%rax)
movw $0x6c, 0x8(%rax)
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x49b94
movq %fs:0x28, %rax
cmpq -0x18(%rbp), %rax
jne 0x48ba6
addq $0x300, %rsp # imm = 0x300
popq %rbx
popq %r14
popq %rbp
retq
callq 0x263a0
|
init_available_charsets:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 300h
mov rax, fs:28h
mov [rbp+var_18], rax
lea rbx, all_charsets
mov edx, 4000h
mov rdi, rbx
xor esi, esi
call _memset
lea rdi, my_collation_statistics
mov edx, 4000h
xor esi, esi
call _memset
lea rax, key_memory_charsets
mov edi, [rax]
xorps xmm0, xmm0
movups [rsp+310h+var_300], xmm0
lea rax, get_charset_key
mov [rsp+310h+var_308], rax
mov [rsp+310h+var_2F0], 1
mov [rsp+310h+var_310], 0
lea rsi, charset_name_hash
lea rcx, my_charset_latin1
mov r8d, 40h ; '@'
mov edx, 10h
xor r9d, r9d
call my_hash_init2
xor edi, edi
call init_compiled_charsets
mov r14, 0FFFFFFFFFFFFFFF8h
loc_48ACB:
mov rdi, [rbx+r14+8]
test rdi, rdi
jz short loc_48AEE
cmp qword ptr [rdi+40h], 0
jz short loc_48AEE
call init_state_maps
test al, al
jz short loc_48AEE
mov qword ptr [rbx+r14+8], 0
loc_48AEE:
add r14, 8
cmp r14, 3FF0h
jb short loc_48ACB
lea rbx, [rbp+var_2E0]
mov byte ptr [rbx], 0
lea rax, my_once_alloc_c
mov [rbx+80h], rax
lea rax, my_malloc_c
mov [rbx+88h], rax
lea rax, my_realloc_c
mov [rbx+90h], rax
lea rax, my_free
mov [rbx+98h], rax
lea rax, my_charset_error_reporter
mov rax, [rax]
mov [rbx+0A0h], rax
lea rax, add_collation
mov [rbx+0A8h], rax
lea r14, [rbp+var_230]
mov rdi, r14
call get_charsets_dir
mov rcx, 6D782E7865646E49h
mov [rax], rcx
mov word ptr [rax+8], 6Ch ; 'l'
mov rdi, rbx
mov rsi, r14
xor edx, edx
call my_read_charset_file
mov rax, fs:28h
cmp rax, [rbp+var_18]
jnz short loc_48BA6
add rsp, 300h
pop rbx
pop r14
pop rbp
retn
loc_48BA6:
call ___stack_chk_fail
|
unsigned long long init_available_charsets()
{
unsigned long long v0; // r14
long long v1; // rdi
_BYTE v3[128]; // [rsp+30h] [rbp-2E0h] BYREF
long long ( *v4)(long long); // [rsp+B0h] [rbp-260h]
long long ( *v5)(unsigned long long); // [rsp+B8h] [rbp-258h]
long long ( *v6)(long long, unsigned long long); // [rsp+C0h] [rbp-250h]
long long ( *v7)(long long); // [rsp+C8h] [rbp-248h]
long long ( *v8)(); // [rsp+D0h] [rbp-240h]
long long ( *v9)(unsigned int *); // [rsp+D8h] [rbp-238h]
_WORD v10[268]; // [rsp+E0h] [rbp-230h] BYREF
unsigned long long v11; // [rsp+2F8h] [rbp-18h]
v11 = __readfsqword(0x28u);
memset(all_charsets, 0LL, sizeof(all_charsets));
memset(my_collation_statistics, 0LL, sizeof(my_collation_statistics));
my_hash_init2(
key_memory_charsets,
(unsigned int)&charset_name_hash,
16,
(unsigned int)&my_charset_latin1,
64,
0,
0LL,
(long long)get_charset_key,
0LL,
0LL,
1);
init_compiled_charsets(0LL);
v0 = 0x1FFFFFFFFFFFFFFFLL;
do
{
v1 = all_charsets[v0 + 1];
if ( v1 && *(_QWORD *)(v1 + 64) && (unsigned __int8)init_state_maps(v1) )
all_charsets[v0 + 1] = 0LL;
++v0;
}
while ( v0 < 2046 );
v3[0] = 0;
v4 = my_once_alloc_c;
v5 = my_malloc_c;
v6 = my_realloc_c;
v7 = my_free;
v8 = my_charset_error_reporter;
v9 = add_collation;
strcpy((char *)get_charsets_dir(v10), "Index.xml");
my_read_charset_file(v3, v10, 0LL);
return __readfsqword(0x28u);
}
|
init_available_charsets:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0x300
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x18],RAX
LEA RBX,[0x4d1b20]
MOV EDX,0x4000
MOV RDI,RBX
XOR ESI,ESI
CALL 0x001261c0
LEA RDI,[0x4d5b90]
MOV EDX,0x4000
XOR ESI,ESI
CALL 0x001261c0
LEA RAX,[0x4d17fc]
MOV EDI,dword ptr [RAX]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSP + 0x10],XMM0
LEA RAX,[0x149b83]
MOV qword ptr [RSP + 0x8],RAX
MOV dword ptr [RSP + 0x20],0x1
MOV qword ptr [RSP],0x0
LEA RSI,[0x4d5b20]
LEA RCX,[0x43de40]
MOV R8D,0x40
MOV EDX,0x10
XOR R9D,R9D
CALL 0x00149ee1
XOR EDI,EDI
CALL 0x0014c238
MOV R14,-0x8
LAB_00148acb:
MOV RDI,qword ptr [RBX + R14*0x1 + 0x8]
TEST RDI,RDI
JZ 0x00148aee
CMP qword ptr [RDI + 0x40],0x0
JZ 0x00148aee
CALL 0x001499ce
TEST AL,AL
JZ 0x00148aee
MOV qword ptr [RBX + R14*0x1 + 0x8],0x0
LAB_00148aee:
ADD R14,0x8
CMP R14,0x3ff0
JC 0x00148acb
LEA RBX,[RBP + -0x2e0]
MOV byte ptr [RBX],0x0
LEA RAX,[0x14825e]
MOV qword ptr [RBX + 0x80],RAX
LEA RAX,[0x14826d]
MOV qword ptr [RBX + 0x88],RAX
LEA RAX,[0x148288]
MOV qword ptr [RBX + 0x90],RAX
LEA RAX,[0x145546]
MOV qword ptr [RBX + 0x98],RAX
LEA RAX,[0x417f08]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBX + 0xa0],RAX
LEA RAX,[0x1482a6]
MOV qword ptr [RBX + 0xa8],RAX
LEA R14,[RBP + -0x230]
MOV RDI,R14
CALL 0x001487eb
MOV RCX,0x6d782e7865646e49
MOV qword ptr [RAX],RCX
MOV word ptr [RAX + 0x8],0x6c
MOV RDI,RBX
MOV RSI,R14
XOR EDX,EDX
CALL 0x00149b94
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x18]
JNZ 0x00148ba6
ADD RSP,0x300
POP RBX
POP R14
POP RBP
RET
LAB_00148ba6:
CALL 0x001263a0
|
void init_available_charsets(void)
{
char cVar1;
int8 *puVar2;
ulong uVar3;
long in_FS_OFFSET;
int1 local_2e8 [128];
code *local_268;
code *local_260;
code *local_258;
code *local_250;
int *local_248;
code *local_240;
int1 local_238 [536];
long local_20;
local_20 = *(long *)(in_FS_OFFSET + 0x28);
memset(&all_charsets,0,0x4000);
memset(my_collation_statistics,0,0x4000);
my_hash_init2(key_memory_charsets,charset_name_hash,0x10,&my_charset_latin1,0x40,0,0,
get_charset_key,0,0,1);
init_compiled_charsets(0);
uVar3 = 0xfffffffffffffff8;
do {
if ((*(long *)((long)&DAT_004d1b28 + uVar3) != 0) &&
(*(long *)(*(long *)((long)&DAT_004d1b28 + uVar3) + 0x40) != 0)) {
cVar1 = init_state_maps();
if (cVar1 != '\0') {
*(int8 *)((long)&DAT_004d1b28 + uVar3) = 0;
}
}
uVar3 = uVar3 + 8;
} while (uVar3 < 0x3ff0);
local_2e8[0] = 0;
local_268 = my_once_alloc_c;
local_260 = my_malloc_c;
local_258 = my_realloc_c;
local_250 = my_free;
local_248 = my_charset_error_reporter;
local_240 = add_collation;
puVar2 = (int8 *)get_charsets_dir(local_238);
*puVar2 = 0x6d782e7865646e49;
*(int2 *)(puVar2 + 1) = 0x6c;
my_read_charset_file(local_2e8,local_238,0);
if (*(long *)(in_FS_OFFSET + 0x28) == local_20) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
59,622
|
my_strxfrm_desc_and_reverse
|
eloqsql/strings/ctype-simple.c
|
void
my_strxfrm_desc_and_reverse(uchar *str, uchar *strend,
uint flags, uint level)
{
if (flags & (MY_STRXFRM_DESC_LEVEL1 << level))
{
if (flags & (MY_STRXFRM_REVERSE_LEVEL1 << level))
{
for (strend--; str <= strend;)
{
uchar tmp= *str;
*str++= ~*strend;
*strend--= ~tmp;
}
}
else
{
for (; str < strend; str++)
*str= ~*str;
}
}
else if (flags & (MY_STRXFRM_REVERSE_LEVEL1 << level))
{
for (strend--; str < strend;)
{
uchar tmp= *str;
*str++= *strend;
*strend--= tmp;
}
}
}
|
O3
|
c
|
my_strxfrm_desc_and_reverse:
pushq %rbp
movq %rsp, %rbp
movl %edx, %r8d
shrl %cl, %r8d
movl $0x10000, %eax # imm = 0x10000
shll %cl, %eax
btl $0x8, %r8d
jae 0x59458
testl %edx, %eax
je 0x5948b
decq %rsi
cmpq %rdi, %rsi
jb 0x5949a
incq %rdi
movb -0x1(%rdi), %al
movb (%rsi), %cl
notb %cl
movb %cl, -0x1(%rdi)
notb %al
movb %al, (%rsi)
decq %rsi
leaq 0x1(%rdi), %rax
cmpq %rsi, %rdi
movq %rax, %rdi
jbe 0x59439
jmp 0x5949a
testl %edx, %eax
setne %al
decq %rsi
cmpq %rdi, %rsi
seta %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x5949a
incq %rdi
movb -0x1(%rdi), %al
movb (%rsi), %cl
movb %cl, -0x1(%rdi)
movb %al, (%rsi)
decq %rsi
leaq 0x1(%rdi), %rax
cmpq %rsi, %rdi
movq %rax, %rdi
jb 0x59470
jmp 0x5949a
cmpq %rsi, %rdi
jae 0x5949a
notb (%rdi)
incq %rdi
cmpq %rsi, %rdi
jne 0x59490
popq %rbp
retq
|
my_strxfrm_desc_and_reverse:
push rbp
mov rbp, rsp
mov r8d, edx
shr r8d, cl
mov eax, 10000h
shl eax, cl
bt r8d, 8
jnb short loc_59458
test eax, edx
jz short loc_5948B
dec rsi
cmp rsi, rdi
jb short loc_5949A
inc rdi
loc_59439:
mov al, [rdi-1]
mov cl, [rsi]
not cl
mov [rdi-1], cl
not al
mov [rsi], al
dec rsi
lea rax, [rdi+1]
cmp rdi, rsi
mov rdi, rax
jbe short loc_59439
jmp short loc_5949A
loc_59458:
test eax, edx
setnz al
dec rsi
cmp rsi, rdi
setnbe cl
and cl, al
cmp cl, 1
jnz short loc_5949A
inc rdi
loc_59470:
mov al, [rdi-1]
mov cl, [rsi]
mov [rdi-1], cl
mov [rsi], al
dec rsi
lea rax, [rdi+1]
cmp rdi, rsi
mov rdi, rax
jb short loc_59470
jmp short loc_5949A
loc_5948B:
cmp rdi, rsi
jnb short loc_5949A
loc_59490:
not byte ptr [rdi]
inc rdi
cmp rdi, rsi
jnz short loc_59490
loc_5949A:
pop rbp
retn
|
char my_strxfrm_desc_and_reverse(_BYTE *a1, _BYTE *a2, unsigned int a3, char a4)
{
int v4; // eax
_BYTE *v5; // rsi
_BYTE *v6; // rdi
char v7; // al
_BYTE *v9; // rsi
_BYTE *v10; // rdi
char v11; // al
v4 = 0x10000 << a4;
if ( ((a3 >> a4) & 0x100) != 0 )
{
if ( (a3 & v4) != 0 )
{
v5 = a2 - 1;
if ( v5 >= a1 )
{
v6 = a1 + 1;
do
{
v7 = *(v6 - 1);
*(v6 - 1) = ~*v5;
*v5-- = ~v7;
LOBYTE(v4) = (_BYTE)v6 + 1;
}
while ( v6++ <= v5 );
}
}
else if ( a1 < a2 )
{
do
{
*a1 = ~*a1;
++a1;
}
while ( a1 != a2 );
}
}
else
{
LOBYTE(v4) = (a3 & v4) != 0;
v9 = a2 - 1;
if ( ((unsigned __int8)v4 & (v9 > a1)) == 1 )
{
v10 = a1 + 1;
do
{
v11 = *(v10 - 1);
*(v10 - 1) = *v9;
*v9-- = v11;
LOBYTE(v4) = (_BYTE)v10 + 1;
}
while ( v10++ < v9 );
}
}
return v4;
}
|
my_strxfrm_desc_and_reverse:
PUSH RBP
MOV RBP,RSP
MOV R8D,EDX
SHR R8D,CL
MOV EAX,0x10000
SHL EAX,CL
BT R8D,0x8
JNC 0x00159458
TEST EAX,EDX
JZ 0x0015948b
DEC RSI
CMP RSI,RDI
JC 0x0015949a
INC RDI
LAB_00159439:
MOV AL,byte ptr [RDI + -0x1]
MOV CL,byte ptr [RSI]
NOT CL
MOV byte ptr [RDI + -0x1],CL
NOT AL
MOV byte ptr [RSI],AL
DEC RSI
LEA RAX,[RDI + 0x1]
CMP RDI,RSI
MOV RDI,RAX
JBE 0x00159439
JMP 0x0015949a
LAB_00159458:
TEST EAX,EDX
SETNZ AL
DEC RSI
CMP RSI,RDI
SETA CL
AND CL,AL
CMP CL,0x1
JNZ 0x0015949a
INC RDI
LAB_00159470:
MOV AL,byte ptr [RDI + -0x1]
MOV CL,byte ptr [RSI]
MOV byte ptr [RDI + -0x1],CL
MOV byte ptr [RSI],AL
DEC RSI
LEA RAX,[RDI + 0x1]
CMP RDI,RSI
MOV RDI,RAX
JC 0x00159470
JMP 0x0015949a
LAB_0015948b:
CMP RDI,RSI
JNC 0x0015949a
LAB_00159490:
NOT byte ptr [RDI]
INC RDI
CMP RDI,RSI
JNZ 0x00159490
LAB_0015949a:
POP RBP
RET
|
void my_strxfrm_desc_and_reverse(byte *param_1,byte *param_2,uint param_3,byte param_4)
{
byte bVar1;
uint uVar2;
byte *pbVar3;
bool bVar4;
uVar2 = 0x10000 << (param_4 & 0x1f);
if (((param_3 >> (param_4 & 0x1f)) >> 8 & 1) == 0) {
param_2 = param_2 + -1;
if (param_1 < param_2 && (uVar2 & param_3) != 0) {
pbVar3 = param_1 + 1;
do {
bVar1 = pbVar3[-1];
pbVar3[-1] = *param_2;
*param_2 = bVar1;
param_2 = param_2 + -1;
bVar4 = pbVar3 < param_2;
pbVar3 = pbVar3 + 1;
} while (bVar4);
}
}
else if ((uVar2 & param_3) == 0) {
if (param_1 < param_2) {
do {
*param_1 = ~*param_1;
param_1 = param_1 + 1;
} while (param_1 != param_2);
}
}
else {
param_2 = param_2 + -1;
if (param_1 <= param_2) {
pbVar3 = param_1 + 1;
do {
bVar1 = pbVar3[-1];
pbVar3[-1] = ~*param_2;
*param_2 = ~bVar1;
param_2 = param_2 + -1;
bVar4 = pbVar3 <= param_2;
pbVar3 = pbVar3 + 1;
} while (bVar4);
}
}
return;
}
|
|
59,623
|
testing::Message& testing::Message::operator<<<char const>(char const* const&)
|
AlayaLite/build_O0/_deps/googletest-src/googletest/include/gtest/gtest-message.h
|
inline Message& operator<<(T* const& pointer) { // NOLINT
if (pointer == nullptr) {
*ss_ << "(null)";
} else {
*ss_ << pointer;
}
return *this;
}
|
O0
|
c
|
testing::Message& testing::Message::operator<<<char const>(char const* const&):
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq 0x8(%rsp), %rax
cmpq $0x0, (%rax)
jne 0x11e70
movq (%rsp), %rdi
callq 0x11d70
movq %rax, %rdi
addq $0x10, %rdi
leaq 0x60550(%rip), %rsi # 0x723b9
callq 0xb460
jmp 0x11e8d
movq (%rsp), %rdi
callq 0x11d70
movq %rax, %rdi
addq $0x10, %rdi
movq 0x8(%rsp), %rax
movq (%rax), %rsi
callq 0xb460
movq (%rsp), %rax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
|
_ZN7testing7MessagelsIKcEERS0_RKPT_:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov [rsp+18h+var_10], rsi
mov rax, [rsp+18h+var_8]
mov [rsp+18h+var_18], rax
mov rax, [rsp+18h+var_10]
cmp qword ptr [rax], 0
jnz short loc_11E70
mov rdi, [rsp+18h+var_18]
call _ZNKSt10unique_ptrINSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEdeEv; std::unique_ptr<std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>>::operator*(void)
mov rdi, rax
add rdi, 10h
lea rsi, aNull; "(null)"
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
jmp short loc_11E8D
loc_11E70:
mov rdi, [rsp+18h+var_18]
call _ZNKSt10unique_ptrINSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEdeEv; std::unique_ptr<std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>>::operator*(void)
mov rdi, rax
add rdi, 10h
mov rax, [rsp+18h+var_10]
mov rsi, [rax]
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
loc_11E8D:
mov rax, [rsp+18h+var_18]
add rsp, 18h
retn
|
long long testing::Message::operator<<<char const>(long long a1, _QWORD *a2)
{
long long v2; // rax
long long v3; // rax
if ( *a2 )
{
v3 = std::unique_ptr<std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>>::operator*(a1);
std::operator<<<std::char_traits<char>>(v3 + 16, *a2);
}
else
{
v2 = std::unique_ptr<std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>>::operator*(a1);
std::operator<<<std::char_traits<char>>(v2 + 16, "(null)");
}
return a1;
}
|
operator<<:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV qword ptr [RSP + 0x8],RSI
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP],RAX
MOV RAX,qword ptr [RSP + 0x8]
CMP qword ptr [RAX],0x0
JNZ 0x00111e70
MOV RDI,qword ptr [RSP]
CALL 0x00111d70
MOV RDI,RAX
ADD RDI,0x10
LEA RSI,[0x1723b9]
CALL 0x0010b460
JMP 0x00111e8d
LAB_00111e70:
MOV RDI,qword ptr [RSP]
CALL 0x00111d70
MOV RDI,RAX
ADD RDI,0x10
MOV RAX,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RAX]
CALL 0x0010b460
LAB_00111e8d:
MOV RAX,qword ptr [RSP]
ADD RSP,0x18
RET
|
/* testing::Message& testing::Message::TEMPNAMEPLACEHOLDERVALUE(char const* const&) */
Message * __thiscall testing::Message::operator<<(Message *this,char **param_1)
{
long lVar1;
if (*param_1 == (char *)0x0) {
lVar1 = std::
unique_ptr<std::__cxx11::stringstream,std::default_delete<std::__cxx11::stringstream>>::
operator*((unique_ptr<std::__cxx11::stringstream,std::default_delete<std::__cxx11::stringstream>>
*)this);
std::operator<<((ostream *)(lVar1 + 0x10),"(null)");
}
else {
lVar1 = std::
unique_ptr<std::__cxx11::stringstream,std::default_delete<std::__cxx11::stringstream>>::
operator*((unique_ptr<std::__cxx11::stringstream,std::default_delete<std::__cxx11::stringstream>>
*)this);
std::operator<<((ostream *)(lVar1 + 0x10),*param_1);
}
return this;
}
|
|
59,624
|
my_thread_global_end
|
eloqsql/mysys/my_thr_init.c
|
void my_thread_global_end(void)
{
struct timespec abstime;
my_bool all_threads_killed= 1;
set_timespec(abstime, my_thread_end_wait_time);
mysql_mutex_lock(&THR_LOCK_threads);
while (THR_thread_count > 0)
{
int error= mysql_cond_timedwait(&THR_COND_threads, &THR_LOCK_threads,
&abstime);
if (error == ETIMEDOUT || error == ETIME)
{
#ifdef HAVE_PTHREAD_KILL
/*
We shouldn't give an error here, because if we don't have
pthread_kill(), programs like mysqld can't ensure that all threads
are killed when we enter here.
*/
if (THR_thread_count)
fprintf(stderr,
"Error in my_thread_global_end(): %d threads didn't exit\n",
THR_thread_count);
#endif
all_threads_killed= 0;
break;
}
}
mysql_mutex_unlock(&THR_LOCK_threads);
my_thread_destroy_common_mutex();
/*
Only destroy the mutex & conditions if we don't have other threads around
that could use them.
*/
if (all_threads_killed)
{
my_thread_destroy_internal_mutex();
}
my_thread_global_init_done= 0;
}
|
O3
|
c
|
my_thread_global_end:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
callq 0x9e0d8
imulq $0x3e8, %rax, %rax # imm = 0x3E8
leaq 0x2e428d(%rip), %rcx # 0x385ba8
movl (%rcx), %ecx
imulq $0x3b9aca00, %rcx, %rcx # imm = 0x3B9ACA00
addq %rax, %rcx
movq %rcx, %rax
shrq $0x9, %rax
movabsq $0x44b82fa09b5a53, %rdx # imm = 0x44B82FA09B5A53
mulq %rdx
shrq $0xb, %rdx
movq %rdx, -0x38(%rbp)
imulq $0x3b9aca00, %rdx, %rax # imm = 0x3B9ACA00
subq %rax, %rcx
movq %rcx, -0x30(%rbp)
leaq 0xb66fd0(%rip), %rax # 0xc08928
cmpq $0x0, 0x40(%rax)
jne 0xa1a2e
leaq 0xb66fbe(%rip), %rdi # 0xc08928
callq 0x29220
leaq 0xb66db2(%rip), %r12 # 0xc08728
leaq 0xb6703b(%rip), %r14 # 0xc089b8
leaq 0xb66fa4(%rip), %rbx # 0xc08928
leaq -0x38(%rbp), %r15
movl (%r12), %r13d
testl %r13d, %r13d
je 0xa19f4
cmpq $0x0, 0x30(%r14)
jne 0xa19b2
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x29680
cmpl $0x6e, %eax
je 0xa19cf
cmpl $0x3e, %eax
jne 0xa1988
jmp 0xa19cf
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
leaq 0x3aac2(%rip), %rcx # 0xdc484
movl $0xd2, %r8d
callq 0x2ef10
jmp 0xa19a6
movl (%r12), %ecx
testl %ecx, %ecx
je 0xa19f4
movq 0x2e25d2(%rip), %rax # 0x383fb0
movq (%rax), %rdi
leaq 0x3aad9(%rip), %rdx # 0xdc4c1
movl $0x1, %esi
xorl %eax, %eax
callq 0x29200
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
jne 0xa1a38
leaq 0xb66f24(%rip), %rdi # 0xc08928
callq 0x291e0
callq 0xa11fc
testl %r13d, %r13d
jne 0xa1a18
callq 0xa135f
movb $0x0, 0xb66fd1(%rip) # 0xc089f0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2efca
jmp 0xa196f
leaq 0x2e45d1(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0xa19fd
|
my_thread_global_end:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
call my_hrtime
imul rax, 3E8h
lea rcx, my_thread_end_wait_time
mov ecx, [rcx]
imul rcx, 3B9ACA00h
add rcx, rax
mov rax, rcx
shr rax, 9
mov rdx, 44B82FA09B5A53h
mul rdx
shr rdx, 0Bh
mov [rbp+var_38], rdx
imul rax, rdx, 3B9ACA00h
sub rcx, rax
mov [rbp+var_30], rcx
lea rax, THR_LOCK_threads
cmp qword ptr [rax+40h], 0
jnz loc_A1A2E
lea rdi, THR_LOCK_threads
call _pthread_mutex_lock
loc_A196F:
lea r12, THR_thread_count
lea r14, THR_COND_threads
lea rbx, THR_LOCK_threads
lea r15, [rbp+var_38]
loc_A1988:
mov r13d, [r12]
test r13d, r13d
jz short loc_A19F4
cmp qword ptr [r14+30h], 0
jnz short loc_A19B2
mov rdi, r14
mov rsi, rbx
mov rdx, r15
call _pthread_cond_timedwait
loc_A19A6:
cmp eax, 6Eh ; 'n'
jz short loc_A19CF
cmp eax, 3Eh ; '>'
jnz short loc_A1988
jmp short loc_A19CF
loc_A19B2:
mov rdi, r14
mov rsi, rbx
mov rdx, r15
lea rcx, aWorkspaceLlm4b_22; "/workspace/llm4binary/github2025/eloqsq"...
mov r8d, 0D2h
call psi_cond_timedwait
jmp short loc_A19A6
loc_A19CF:
mov ecx, [r12]
test ecx, ecx
jz short loc_A19F4
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rdx, aErrorInMyThrea; "Error in my_thread_global_end(): %d thr"...
mov esi, 1
xor eax, eax
call ___fprintf_chk
loc_A19F4:
mov rdi, [rbx+40h]
test rdi, rdi
jnz short loc_A1A38
loc_A19FD:
lea rdi, THR_LOCK_threads
call _pthread_mutex_unlock
call my_thread_destroy_common_mutex
test r13d, r13d
jnz short loc_A1A18
call my_thread_destroy_internal_mutex
loc_A1A18:
mov cs:my_thread_global_init_done, 0
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_A1A2E:
call my_thread_global_end_cold_1
jmp loc_A196F
loc_A1A38:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_A19FD
|
long long my_thread_global_end()
{
unsigned long long v0; // rax
int v1; // r13d
int v2; // eax
long long result; // rax
_QWORD v4[7]; // [rsp+8h] [rbp-38h] BYREF
v0 = my_hrtime();
v4[0] = (1000 * v0 + 1000000000LL * my_thread_end_wait_time) / 0x3B9ACA00;
v4[1] = (1000 * v0 + 1000000000LL * my_thread_end_wait_time) % 0x3B9ACA00;
if ( THR_LOCK_threads[8] )
my_thread_global_end_cold_1();
else
pthread_mutex_lock(THR_LOCK_threads);
while ( 1 )
{
v1 = THR_thread_count;
if ( !THR_thread_count )
break;
if ( THR_COND_threads[6] )
v2 = psi_cond_timedwait(
(long long)THR_COND_threads,
(long long)THR_LOCK_threads,
(long long)v4,
(long long)"/workspace/llm4binary/github2025/eloqsql/mysys/my_thr_init.c",
0xD2u);
else
v2 = pthread_cond_timedwait(THR_COND_threads, THR_LOCK_threads, v4);
if ( v2 == 110 || v2 == 62 )
{
if ( THR_thread_count )
__fprintf_chk(stderr, 1LL, "Error in my_thread_global_end(): %d threads didn't exit\n", THR_thread_count);
break;
}
}
if ( THR_LOCK_threads[8] )
PSI_server[44]();
pthread_mutex_unlock(THR_LOCK_threads);
result = my_thread_destroy_common_mutex();
if ( !v1 )
result = my_thread_destroy_internal_mutex();
my_thread_global_init_done = 0;
return result;
}
|
my_thread_global_end:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
CALL 0x0019e0d8
IMUL RAX,RAX,0x3e8
LEA RCX,[0x485ba8]
MOV ECX,dword ptr [RCX]
IMUL RCX,RCX,0x3b9aca00
ADD RCX,RAX
MOV RAX,RCX
SHR RAX,0x9
MOV RDX,0x44b82fa09b5a53
MUL RDX
SHR RDX,0xb
MOV qword ptr [RBP + -0x38],RDX
IMUL RAX,RDX,0x3b9aca00
SUB RCX,RAX
MOV qword ptr [RBP + -0x30],RCX
LEA RAX,[0xd08928]
CMP qword ptr [RAX + 0x40],0x0
JNZ 0x001a1a2e
LEA RDI,[0xd08928]
CALL 0x00129220
LAB_001a196f:
LEA R12,[0xd08728]
LEA R14,[0xd089b8]
LEA RBX,[0xd08928]
LEA R15,[RBP + -0x38]
LAB_001a1988:
MOV R13D,dword ptr [R12]
TEST R13D,R13D
JZ 0x001a19f4
CMP qword ptr [R14 + 0x30],0x0
JNZ 0x001a19b2
MOV RDI,R14
MOV RSI,RBX
MOV RDX,R15
CALL 0x00129680
LAB_001a19a6:
CMP EAX,0x6e
JZ 0x001a19cf
CMP EAX,0x3e
JNZ 0x001a1988
JMP 0x001a19cf
LAB_001a19b2:
MOV RDI,R14
MOV RSI,RBX
MOV RDX,R15
LEA RCX,[0x1dc484]
MOV R8D,0xd2
CALL 0x0012ef10
JMP 0x001a19a6
LAB_001a19cf:
MOV ECX,dword ptr [R12]
TEST ECX,ECX
JZ 0x001a19f4
MOV RAX,qword ptr [0x00483fb0]
MOV RDI,qword ptr [RAX]
LEA RDX,[0x1dc4c1]
MOV ESI,0x1
XOR EAX,EAX
CALL 0x00129200
LAB_001a19f4:
MOV RDI,qword ptr [RBX + 0x40]
TEST RDI,RDI
JNZ 0x001a1a38
LAB_001a19fd:
LEA RDI,[0xd08928]
CALL 0x001291e0
CALL 0x001a11fc
TEST R13D,R13D
JNZ 0x001a1a18
CALL 0x001a135f
LAB_001a1a18:
MOV byte ptr [0x00d089f0],0x0
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001a1a2e:
CALL 0x0012efca
JMP 0x001a196f
LAB_001a1a38:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x001a19fd
|
void my_thread_global_end(void)
{
int iVar1;
int iVar2;
long lVar3;
timespec local_40;
lVar3 = my_hrtime();
local_40.tv_nsec = (ulong)my_thread_end_wait_time * 1000000000 + lVar3 * 1000;
local_40.tv_sec = (ulong)local_40.tv_nsec / 1000000000;
local_40.tv_nsec = (ulong)local_40.tv_nsec % 1000000000;
if (THR_LOCK_threads._64_8_ == 0) {
pthread_mutex_lock((pthread_mutex_t *)THR_LOCK_threads);
}
else {
my_thread_global_end_cold_1();
}
do {
iVar1 = THR_thread_count;
if (THR_thread_count == 0) goto LAB_001a19f4;
if (THR_COND_threads._48_8_ == 0) {
iVar2 = pthread_cond_timedwait
((pthread_cond_t *)THR_COND_threads,(pthread_mutex_t *)THR_LOCK_threads,
&local_40);
}
else {
iVar2 = psi_cond_timedwait(THR_COND_threads,THR_LOCK_threads,&local_40,
"/workspace/llm4binary/github2025/eloqsql/mysys/my_thr_init.c",0xd2
);
}
} while ((iVar2 != 0x6e) && (iVar2 != 0x3e));
if (THR_thread_count != 0) {
__fprintf_chk(*(int8 *)PTR_stderr_00483fb0,1,
"Error in my_thread_global_end(): %d threads didn\'t exit\n");
}
LAB_001a19f4:
if (THR_LOCK_threads._64_8_ != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock((pthread_mutex_t *)THR_LOCK_threads);
my_thread_destroy_common_mutex();
if (iVar1 == 0) {
my_thread_destroy_internal_mutex();
}
my_thread_global_init_done = 0;
return;
}
|
|
59,625
|
binding_system_get_definition
|
tsotchke[P]eshkol/src/frontend/binding/core/binding_management.c
|
AstNode* binding_system_get_definition(BindingSystem* system, uint64_t bind_id) {
assert(system != NULL);
assert(bind_id != 0);
// Search for binding
for(size_t i = 0; i < system->def_table.count; i++) {
if(system->def_table.binding_ids[i] == bind_id) {
// Found binding
return system->def_table.nodes[i];
}
}
// Binding not found
return NULL;
}
|
O3
|
c
|
binding_system_get_definition:
pushq %rax
testq %rdi, %rdi
je 0x8769
testq %rsi, %rsi
je 0x8788
movq 0x70(%rdi), %rcx
testq %rcx, %rcx
je 0x875b
movq 0x60(%rdi), %rdx
xorl %eax, %eax
xorl %r8d, %r8d
cmpq %rsi, (%rdx,%r8,8)
je 0x875f
incq %r8
cmpq %r8, %rcx
jne 0x874b
jmp 0x8767
xorl %eax, %eax
jmp 0x8767
movq 0x68(%rdi), %rax
movq (%rax,%r8,8), %rax
popq %rcx
retq
leaq 0x12cc1(%rip), %rdi # 0x1b431
leaq 0x12ead(%rip), %rsi # 0x1b624
leaq 0x1316b(%rip), %rcx # 0x1b8e9
movl $0x122, %edx # imm = 0x122
callq 0x2180
leaq 0x1314d(%rip), %rdi # 0x1b8dc
leaq 0x12e8e(%rip), %rsi # 0x1b624
leaq 0x1314c(%rip), %rcx # 0x1b8e9
movl $0x123, %edx # imm = 0x123
callq 0x2180
nop
|
binding_system_get_definition:
push rax
test rdi, rdi
jz short loc_8769
test rsi, rsi
jz short loc_8788
mov rcx, [rdi+70h]
test rcx, rcx
jz short loc_875B
mov rdx, [rdi+60h]
xor eax, eax
xor r8d, r8d
loc_874B:
cmp [rdx+r8*8], rsi
jz short loc_875F
inc r8
cmp rcx, r8
jnz short loc_874B
jmp short loc_8767
loc_875B:
xor eax, eax
jmp short loc_8767
loc_875F:
mov rax, [rdi+68h]
mov rax, [rax+r8*8]
loc_8767:
pop rcx
retn
loc_8769:
lea rdi, aSystemNull; "system != NULL"
lea rsi, aWorkspaceLlm4b_6; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aAstnodeBinding; "AstNode *binding_system_get_definition("...
mov edx, 122h
call ___assert_fail
loc_8788:
lea rdi, aBindId0; "bind_id != 0"
lea rsi, aWorkspaceLlm4b_6; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aAstnodeBinding; "AstNode *binding_system_get_definition("...
mov edx, 123h
call ___assert_fail
|
long long binding_system_get_definition(_QWORD *a1, long long a2)
{
long long v2; // rcx
long long result; // rax
long long v4; // r8
if ( !a1 )
__assert_fail(
"system != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/core/binding_management.c",
290LL,
"AstNode *binding_system_get_definition(BindingSystem *, uint64_t)");
if ( !a2 )
__assert_fail(
"bind_id != 0",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/core/binding_management.c",
291LL,
"AstNode *binding_system_get_definition(BindingSystem *, uint64_t)");
v2 = a1[14];
if ( !v2 )
return 0LL;
result = 0LL;
v4 = 0LL;
while ( *(_QWORD *)(a1[12] + 8 * v4) != a2 )
{
if ( v2 == ++v4 )
return result;
}
return *(_QWORD *)(a1[13] + 8 * v4);
}
|
binding_system_get_definition:
PUSH RAX
TEST RDI,RDI
JZ 0x00108769
TEST RSI,RSI
JZ 0x00108788
MOV RCX,qword ptr [RDI + 0x70]
TEST RCX,RCX
JZ 0x0010875b
MOV RDX,qword ptr [RDI + 0x60]
XOR EAX,EAX
XOR R8D,R8D
LAB_0010874b:
CMP qword ptr [RDX + R8*0x8],RSI
JZ 0x0010875f
INC R8
CMP RCX,R8
JNZ 0x0010874b
JMP 0x00108767
LAB_0010875b:
XOR EAX,EAX
JMP 0x00108767
LAB_0010875f:
MOV RAX,qword ptr [RDI + 0x68]
MOV RAX,qword ptr [RAX + R8*0x8]
LAB_00108767:
POP RCX
RET
LAB_00108769:
LEA RDI,[0x11b431]
LEA RSI,[0x11b624]
LEA RCX,[0x11b8e9]
MOV EDX,0x122
CALL 0x00102180
LAB_00108788:
LEA RDI,[0x11b8dc]
LEA RSI,[0x11b624]
LEA RCX,[0x11b8e9]
MOV EDX,0x123
CALL 0x00102180
|
int8 binding_system_get_definition(long param_1,long param_2)
{
long lVar1;
if (param_1 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("system != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/core/binding_management.c"
,0x122,"AstNode *binding_system_get_definition(BindingSystem *, uint64_t)");
}
if (param_2 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("bind_id != 0",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/core/binding_management.c"
,0x123,"AstNode *binding_system_get_definition(BindingSystem *, uint64_t)");
}
if (*(long *)(param_1 + 0x70) != 0) {
lVar1 = 0;
do {
if (*(long *)(*(long *)(param_1 + 0x60) + lVar1 * 8) == param_2) {
return *(int8 *)(*(long *)(param_1 + 0x68) + lVar1 * 8);
}
lVar1 = lVar1 + 1;
} while (*(long *)(param_1 + 0x70) != lVar1);
}
return 0;
}
|
|
59,626
|
my_context_yield
|
eloqsql/libmariadb/libmariadb/ma_context.c
|
int
my_context_yield(struct my_context *c)
{
uint64_t *save= &c->save[0];
__asm__ __volatile__
(
"movq (%[save]), %%rax\n\t"
"movq %%rsp, (%[save])\n\t"
"movq %%rax, %%rsp\n\t"
"movq 8(%[save]), %%rax\n\t"
"movq %%rbp, 8(%[save])\n\t"
"movq %%rax, %%rbp\n\t"
"movq 16(%[save]), %%rax\n\t"
"movq %%rbx, 16(%[save])\n\t"
"movq %%rax, %%rbx\n\t"
"movq 24(%[save]), %%rax\n\t"
"movq %%r12, 24(%[save])\n\t"
"movq %%rax, %%r12\n\t"
"movq 32(%[save]), %%rax\n\t"
"movq %%r13, 32(%[save])\n\t"
"movq %%rax, %%r13\n\t"
"movq 40(%[save]), %%rax\n\t"
"movq %%r14, 40(%[save])\n\t"
"movq %%rax, %%r14\n\t"
"movq 48(%[save]), %%rax\n\t"
"movq %%r15, 48(%[save])\n\t"
"movq %%rax, %%r15\n\t"
"movq 64(%[save]), %%rax\n\t"
"leaq 1f(%%rip), %%rcx\n\t"
"movq %%rcx, 64(%[save])\n\t"
"jmpq *%%rax\n"
"1:\n"
: [save] "+D" (save)
:
: "rax", "rcx", "rdx", "rsi", "r8", "r9", "r10", "r11", "memory", "cc"
);
return 0;
}
|
O3
|
c
|
my_context_yield:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rax
movq %rsp, (%rdi)
movq %rax, %rsp
movq 0x8(%rdi), %rax
movq %rbp, 0x8(%rdi)
movq %rax, %rbp
movq 0x10(%rdi), %rax
movq %rbx, 0x10(%rdi)
movq %rax, %rbx
movq 0x18(%rdi), %rax
movq %r12, 0x18(%rdi)
movq %rax, %r12
movq 0x20(%rdi), %rax
movq %r13, 0x20(%rdi)
movq %rax, %r13
movq 0x28(%rdi), %rax
movq %r14, 0x28(%rdi)
movq %rax, %r14
movq 0x30(%rdi), %rax
movq %r15, 0x30(%rdi)
movq %rax, %r15
movq 0x40(%rdi), %rax
leaq 0x6(%rip), %rcx # 0x2d7b1
movq %rcx, 0x40(%rdi)
jmpq *%rax
xorl %eax, %eax
popq %rbp
retq
|
my_context_yield:
push rbp
mov rbp, rsp
mov rax, [rdi]
mov [rdi], rsp
mov rsp, rax
mov rax, [rdi+8]
mov [rdi+8], rbp
mov rbp, rax
mov rax, [rdi+10h]
mov [rdi+10h], rbx
mov rbx, rax
mov rax, [rdi+18h]
mov [rdi+18h], r12
mov r12, rax
mov rax, [rdi+20h]
mov [rdi+20h], r13
mov r13, rax
mov rax, [rdi+28h]
mov [rdi+28h], r14
mov r14, rax
mov rax, [rdi+30h]
mov [rdi+30h], r15
mov r15, rax
mov rax, [rdi+40h]
lea rcx, sub_2D7B1
mov [rdi+40h], rcx
jmp rax
|
long long my_context_yield(_QWORD *a1)
{
long long v1; // rbx
long long v2; // r12
long long v3; // r13
long long v4; // r14
long long v5; // r15
long long (*v6)(void); // rax
long long savedregs; // [rsp+0h] [rbp+0h] BYREF
*a1 = &savedregs;
a1[1] = &savedregs;
a1[2] = v1;
a1[3] = v2;
a1[4] = v3;
a1[5] = v4;
a1[6] = v5;
v6 = (long long (*)(void))a1[8];
a1[8] = sub_2D7B1;
return v6();
}
|
my_context_yield:
PUSH RBP
MOV RBP,RSP
MOV RAX,qword ptr [RDI]
MOV qword ptr [RDI],RSP
MOV RSP,RAX
MOV RAX,qword ptr [RDI + 0x8]
MOV qword ptr [RDI + 0x8],RBP
MOV RBP,RAX
MOV RAX,qword ptr [RDI + 0x10]
MOV qword ptr [RDI + 0x10],RBX
MOV RBX,RAX
MOV RAX,qword ptr [RDI + 0x18]
MOV qword ptr [RDI + 0x18],R12
MOV R12,RAX
MOV RAX,qword ptr [RDI + 0x20]
MOV qword ptr [RDI + 0x20],R13
MOV R13,RAX
MOV RAX,qword ptr [RDI + 0x28]
MOV qword ptr [RDI + 0x28],R14
MOV R14,RAX
MOV RAX,qword ptr [RDI + 0x30]
MOV qword ptr [RDI + 0x30],R15
MOV R15,RAX
MOV RAX,qword ptr [RDI + 0x40]
LEA RCX,[0x12d7b1]
MOV qword ptr [RDI + 0x40],RCX
JMP RAX
|
void my_context_yield(long param_1)
{
code *UNRECOVERED_JUMPTABLE;
int8 unaff_RBX;
int8 unaff_R12;
int8 unaff_R13;
int8 unaff_R14;
int8 unaff_R15;
*(int1 **)param_1 = &stack0xfffffffffffffff8;
*(int1 **)(param_1 + 8) = &stack0xfffffffffffffff8;
*(int8 *)(param_1 + 0x10) = unaff_RBX;
*(int8 *)(param_1 + 0x18) = unaff_R12;
*(int8 *)(param_1 + 0x20) = unaff_R13;
*(int8 *)(param_1 + 0x28) = unaff_R14;
*(int8 *)(param_1 + 0x30) = unaff_R15;
UNRECOVERED_JUMPTABLE = *(code **)(param_1 + 0x40);
*(int1 **)(param_1 + 0x40) = &LAB_0012d7b1;
/* WARNING: Could not recover jumptable at 0x0012d7af. Too many branches */
/* WARNING: Treating indirect jump as call */
(*UNRECOVERED_JUMPTABLE)();
return;
}
|
|
59,627
|
ma_state_info_write
|
eloqsql/storage/maria/ma_open.c
|
uint _ma_state_info_write(MARIA_SHARE *share, uint pWrite)
{
uint res;
if (share->options & HA_OPTION_READ_ONLY_DATA)
return 0;
if (pWrite & MA_STATE_INFO_WRITE_LOCK)
mysql_mutex_lock(&share->intern_lock);
else if (maria_multi_threaded && !share->temporary)
mysql_mutex_assert_owner(&share->intern_lock);
if (share->base.born_transactional && translog_status == TRANSLOG_OK &&
!maria_in_recovery)
{
/*
In a recovery, we want to set is_of_horizon to the LSN of the last
record executed by Recovery, not the current EOF of the log (which
is too new). Recovery does it by itself.
*/
share->state.is_of_horizon= translog_get_horizon();
DBUG_PRINT("info", ("is_of_horizon set to LSN " LSN_FMT "",
LSN_IN_PARTS(share->state.is_of_horizon)));
}
res= _ma_state_info_write_sub(share->kfile.file, &share->state, pWrite);
if (pWrite & MA_STATE_INFO_WRITE_LOCK)
mysql_mutex_unlock(&share->intern_lock);
/* If open_count != 0 we have to write the state again at close */
share->changed= share->state.open_count != 0;
return res;
}
|
O0
|
c
|
ma_state_info_write:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq 0x720(%rax), %rax
andq $0x10000, %rax # imm = 0x10000
cmpq $0x0, %rax
je 0x6ff02
movl $0x0, -0x4(%rbp)
jmp 0x6ffe9
movl -0x14(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x6ff2b
movq -0x10(%rbp), %rdi
addq $0x8f0, %rdi # imm = 0x8F0
leaq 0xaffa9(%rip), %rsi # 0x11fec8
movl $0x5e3, %edx # imm = 0x5E3
callq 0x6d030
jmp 0x6ff4f
leaq 0x3d0e2f(%rip), %rax # 0x440d61
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x6ff4d
movq -0x10(%rbp), %rax
cmpb $0x0, 0x7d9(%rax)
jne 0x6ff4d
jmp 0x6ff49
jmp 0x6ff4b
jmp 0x6ff4d
jmp 0x6ff4f
movq -0x10(%rbp), %rax
movsbl 0x44c(%rax), %eax
cmpl $0x0, %eax
je 0x6ff90
leaq 0x3d0e2a(%rip), %rax # 0x440d90
cmpl $0x1, (%rax)
jne 0x6ff90
leaq 0x3d0df0(%rip), %rax # 0x440d62
cmpb $0x0, (%rax)
jne 0x6ff90
movb $0x0, %al
callq 0x59d50
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x180(%rax)
jmp 0x6ff8e
jmp 0x6ff90
movq -0x10(%rbp), %rax
movl 0x760(%rax), %edi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
callq 0x70000
movl %eax, -0x18(%rbp)
movl -0x14(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x6ffc4
movq -0x10(%rbp), %rdi
addq $0x8f0, %rdi # imm = 0x8F0
callq 0x6fce0
movq -0x10(%rbp), %rax
cmpl $0x0, 0x16c(%rax)
setne %al
andb $0x1, %al
movzbl %al, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x7de(%rax)
movl -0x18(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_ma_state_info_write:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov rax, [rbp+var_10]
mov rax, [rax+720h]
and rax, 10000h
cmp rax, 0
jz short loc_6FF02
mov [rbp+var_4], 0
jmp loc_6FFE9
loc_6FF02:
mov eax, [rbp+var_14]
and eax, 4
cmp eax, 0
jz short loc_6FF2B
mov rdi, [rbp+var_10]
add rdi, 8F0h
lea rsi, aWorkspaceLlm4b_18; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 5E3h
call inline_mysql_mutex_lock_11
jmp short loc_6FF4F
loc_6FF2B:
lea rax, maria_multi_threaded
movsx eax, byte ptr [rax]
cmp eax, 0
jz short loc_6FF4D
mov rax, [rbp+var_10]
cmp byte ptr [rax+7D9h], 0
jnz short loc_6FF4D
jmp short $+2
loc_6FF49:
jmp short $+2
loc_6FF4B:
jmp short $+2
loc_6FF4D:
jmp short $+2
loc_6FF4F:
mov rax, [rbp+var_10]
movsx eax, byte ptr [rax+44Ch]
cmp eax, 0
jz short loc_6FF90
lea rax, translog_status
cmp dword ptr [rax], 1
jnz short loc_6FF90
lea rax, maria_in_recovery
cmp byte ptr [rax], 0
jnz short loc_6FF90
mov al, 0
call translog_get_horizon
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+180h], rcx
jmp short $+2
loc_6FF8E:
jmp short $+2
loc_6FF90:
mov rax, [rbp+var_10]
mov edi, [rax+760h]
mov rsi, [rbp+var_10]
mov edx, [rbp+var_14]
call _ma_state_info_write_sub
mov [rbp+var_18], eax
mov eax, [rbp+var_14]
and eax, 4
cmp eax, 0
jz short loc_6FFC4
mov rdi, [rbp+var_10]
add rdi, 8F0h
call inline_mysql_mutex_unlock_11
loc_6FFC4:
mov rax, [rbp+var_10]
cmp dword ptr [rax+16Ch], 0
setnz al
and al, 1
movzx eax, al
mov cl, al
mov rax, [rbp+var_10]
mov [rax+7DEh], cl
mov eax, [rbp+var_18]
mov [rbp+var_4], eax
loc_6FFE9:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
|
long long ma_state_info_write(long long a1, unsigned int a2)
{
unsigned int v3; // [rsp+8h] [rbp-18h]
if ( (*(_QWORD *)(a1 + 1824) & 0x10000LL) != 0 )
{
return 0;
}
else
{
if ( (a2 & 4) != 0 )
inline_mysql_mutex_lock_11(
a1 + 2288,
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_open.c",
0x5E3u);
if ( *(_BYTE *)(a1 + 1100) && translog_status == 1 && !maria_in_recovery )
*(_QWORD *)(a1 + 384) = translog_get_horizon();
v3 = ma_state_info_write_sub(*(unsigned int *)(a1 + 1888), a1, a2);
if ( (a2 & 4) != 0 )
inline_mysql_mutex_unlock_11(a1 + 2288);
*(_BYTE *)(a1 + 2014) = *(_DWORD *)(a1 + 364) != 0;
return v3;
}
}
|
_ma_state_info_write:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x720]
AND RAX,0x10000
CMP RAX,0x0
JZ 0x0016ff02
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0016ffe9
LAB_0016ff02:
MOV EAX,dword ptr [RBP + -0x14]
AND EAX,0x4
CMP EAX,0x0
JZ 0x0016ff2b
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x8f0
LEA RSI,[0x21fec8]
MOV EDX,0x5e3
CALL 0x0016d030
JMP 0x0016ff4f
LAB_0016ff2b:
LEA RAX,[0x540d61]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
JZ 0x0016ff4d
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX + 0x7d9],0x0
JNZ 0x0016ff4d
JMP 0x0016ff49
LAB_0016ff49:
JMP 0x0016ff4b
LAB_0016ff4b:
JMP 0x0016ff4d
LAB_0016ff4d:
JMP 0x0016ff4f
LAB_0016ff4f:
MOV RAX,qword ptr [RBP + -0x10]
MOVSX EAX,byte ptr [RAX + 0x44c]
CMP EAX,0x0
JZ 0x0016ff90
LEA RAX,[0x540d90]
CMP dword ptr [RAX],0x1
JNZ 0x0016ff90
LEA RAX,[0x540d62]
CMP byte ptr [RAX],0x0
JNZ 0x0016ff90
MOV AL,0x0
CALL 0x00159d50
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x180],RCX
JMP 0x0016ff8e
LAB_0016ff8e:
JMP 0x0016ff90
LAB_0016ff90:
MOV RAX,qword ptr [RBP + -0x10]
MOV EDI,dword ptr [RAX + 0x760]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RBP + -0x14]
CALL 0x00170000
MOV dword ptr [RBP + -0x18],EAX
MOV EAX,dword ptr [RBP + -0x14]
AND EAX,0x4
CMP EAX,0x0
JZ 0x0016ffc4
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x8f0
CALL 0x0016fce0
LAB_0016ffc4:
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x16c],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x7de],CL
MOV EAX,dword ptr [RBP + -0x18]
MOV dword ptr [RBP + -0x4],EAX
LAB_0016ffe9:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int4 _ma_state_info_write(long param_1,uint param_2)
{
int8 uVar1;
int4 local_c;
if ((*(ulong *)(param_1 + 0x720) & 0x10000) == 0) {
if ((param_2 & 4) != 0) {
inline_mysql_mutex_lock
(param_1 + 0x8f0,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_open.c",
0x5e3);
}
if (((*(char *)(param_1 + 0x44c) != '\0') && (translog_status == 1)) &&
(maria_in_recovery == '\0')) {
uVar1 = translog_get_horizon();
*(int8 *)(param_1 + 0x180) = uVar1;
}
local_c = _ma_state_info_write_sub(*(int4 *)(param_1 + 0x760),param_1,param_2);
if ((param_2 & 4) != 0) {
inline_mysql_mutex_unlock(param_1 + 0x8f0);
}
*(bool *)(param_1 + 0x7de) = *(int *)(param_1 + 0x16c) != 0;
}
else {
local_c = 0;
}
return local_c;
}
|
|
59,628
|
add_compiled_extra_collation
|
eloqsql/mysys/charset.c
|
void add_compiled_extra_collation(struct charset_info_st *cs)
{
DBUG_ASSERT(cs->number < array_elements(all_charsets));
all_charsets[cs->number]= cs;
cs->state|= MY_CS_AVAILABLE;
if ((my_hash_insert(&charset_name_hash, (uchar*) cs)))
{
CHARSET_INFO *org= (CHARSET_INFO*) my_hash_search(&charset_name_hash,
(uchar*) cs->cs_name.str,
cs->cs_name.length);
cs->cs_name= org->cs_name;
}
}
|
O0
|
c
|
add_compiled_extra_collation:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
jmp 0x2e09e
movq -0x8(%rbp), %rdx
movq -0x8(%rbp), %rax
movl (%rax), %eax
movl %eax, %ecx
leaq 0x3606cf(%rip), %rax # 0x38e780
movq %rdx, (%rax,%rcx,8)
movq -0x8(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x200, %ecx # imm = 0x200
movl %ecx, 0xc(%rax)
movq -0x8(%rbp), %rsi
leaq 0x3646b0(%rip), %rdi # 0x392780
callq 0x332b0
cmpb $0x0, %al
je 0x2e111
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rsi
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdx
leaq 0x364690(%rip), %rdi # 0x392780
callq 0x32ec0
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0x10(%rcx), %rdx
movq %rdx, 0x10(%rax)
movq 0x18(%rcx), %rcx
movq %rcx, 0x18(%rax)
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
add_compiled_extra_collation:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
jmp short $+2
loc_2E09E:
mov rdx, [rbp+var_8]
mov rax, [rbp+var_8]
mov eax, [rax]
mov ecx, eax
lea rax, all_charsets
mov [rax+rcx*8], rdx
mov rax, [rbp+var_8]
mov ecx, [rax+0Ch]
or ecx, 200h
mov [rax+0Ch], ecx
mov rsi, [rbp+var_8]
lea rdi, charset_name_hash
call my_hash_insert
cmp al, 0
jz short loc_2E111
mov rax, [rbp+var_8]
mov rsi, [rax+10h]
mov rax, [rbp+var_8]
mov rdx, [rax+18h]
lea rdi, charset_name_hash
call my_hash_search
mov [rbp+var_10], rax
mov rax, [rbp+var_8]
mov rcx, [rbp+var_10]
mov rdx, [rcx+10h]
mov [rax+10h], rdx
mov rcx, [rcx+18h]
mov [rax+18h], rcx
loc_2E111:
add rsp, 10h
pop rbp
retn
|
long long add_compiled_extra_collation(unsigned int *a1)
{
long long result; // rax
long long v2; // [rsp+0h] [rbp-10h]
all_charsets[*a1] = a1;
a1[3] |= 0x200u;
result = my_hash_insert(&charset_name_hash, a1);
if ( (_BYTE)result )
{
v2 = my_hash_search(&charset_name_hash, *((_QWORD *)a1 + 2), *((_QWORD *)a1 + 3));
result = (long long)a1;
*((_QWORD *)a1 + 2) = *(_QWORD *)(v2 + 16);
*((_QWORD *)a1 + 3) = *(_QWORD *)(v2 + 24);
}
return result;
}
|
add_compiled_extra_collation:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
JMP 0x0012e09e
LAB_0012e09e:
MOV RDX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x48e780]
MOV qword ptr [RAX + RCX*0x8],RDX
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0xc]
OR ECX,0x200
MOV dword ptr [RAX + 0xc],ECX
MOV RSI,qword ptr [RBP + -0x8]
LEA RDI,[0x492780]
CALL 0x001332b0
CMP AL,0x0
JZ 0x0012e111
MOV RAX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RAX + 0x18]
LEA RDI,[0x492780]
CALL 0x00132ec0
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RCX + 0x10]
MOV qword ptr [RAX + 0x10],RDX
MOV RCX,qword ptr [RCX + 0x18]
MOV qword ptr [RAX + 0x18],RCX
LAB_0012e111:
ADD RSP,0x10
POP RBP
RET
|
void add_compiled_extra_collation(uint *param_1)
{
char cVar1;
long lVar2;
(&all_charsets)[*param_1] = param_1;
param_1[3] = param_1[3] | 0x200;
cVar1 = my_hash_insert(charset_name_hash,param_1);
if (cVar1 != '\0') {
lVar2 = my_hash_search(charset_name_hash,*(int8 *)(param_1 + 4),
*(int8 *)(param_1 + 6));
*(int8 *)(param_1 + 4) = *(int8 *)(lVar2 + 0x10);
*(int8 *)(param_1 + 6) = *(int8 *)(lVar2 + 0x18);
}
return;
}
|
|
59,629
|
lf_hash_insert
|
eloqsql/mysys/lf_hash.cc
|
int lf_hash_insert(LF_HASH *hash, LF_PINS *pins, const void *data)
{
int csize, bucket, hashnr;
LF_SLIST *node, **el;
node= (LF_SLIST *)lf_alloc_new(pins);
if (unlikely(!node))
return -1;
hash->initializer(hash, node + 1, data);
node->key= hash_key(hash, (uchar *)(node+1), &node->keylen);
hashnr= hash->hash_function(hash->charset, node->key, node->keylen) & INT_MAX32;
bucket= hashnr % hash->size;
el= (LF_SLIST **)lf_dynarray_lvalue(&hash->array, bucket);
if (unlikely(!el))
return -1;
if (*el == NULL && unlikely(initialize_bucket(hash, el, bucket, pins)))
return -1;
node->hashnr= my_reverse_bits(hashnr) | 1; /* normal node */
if (l_insert(el, hash->charset, node, pins, hash->flags))
{
lf_alloc_free(pins, node);
return 1;
}
csize= hash->size;
if ((my_atomic_add32(&hash->count, 1)+1.0) / csize > MAX_LOAD)
my_atomic_cas32(&hash->size, &csize, csize*2);
return 0;
}
|
O0
|
cpp
|
lf_hash_insert:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x18(%rbp), %rdi
callq 0x60470
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x610a1
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x6126d
movq -0x10(%rbp), %rax
movq 0x98(%rax), %rax
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
addq $0x20, %rsi
movq -0x20(%rbp), %rdx
callq *%rax
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
addq $0x20, %rsi
movq -0x38(%rbp), %rdx
addq $0x10, %rdx
callq 0x61280
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
movq 0xa0(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0xa8(%rcx), %rdi
movq -0x38(%rbp), %rcx
movq 0x8(%rcx), %rsi
movq -0x38(%rbp), %rcx
movq 0x10(%rcx), %rdx
callq *%rax
movl %eax, %eax
andq $0x7fffffff, %rax # imm = 0x7FFFFFFF
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movq -0x10(%rbp), %rcx
movl 0xc0(%rcx), %ecx
cltd
idivl %ecx
movl %edx, -0x28(%rbp)
movq -0x10(%rbp), %rdi
movl -0x28(%rbp), %esi
callq 0x608c0
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x61158
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x6126d
movq -0x40(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x61187
movq -0x10(%rbp), %rdi
movq -0x40(%rbp), %rsi
movl -0x28(%rbp), %edx
movq -0x18(%rbp), %rcx
callq 0x61300
cmpl $0x0, %eax
je 0x61187
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x6126d
movl -0x2c(%rbp), %edi
callq 0x61480
movl %eax, %ecx
orl $0x1, %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x18(%rax)
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0xa8(%rax), %rsi
movq -0x38(%rbp), %rdx
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movl 0xbc(%rax), %r8d
callq 0x61500
cmpq $0x0, %rax
je 0x611e1
movq -0x18(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x60270
movl $0x1, -0x4(%rbp)
jmp 0x6126d
movq -0x10(%rbp), %rax
movl 0xc0(%rax), %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rcx
movl $0x1, -0x44(%rbp)
movl -0x44(%rbp), %eax
lock
xaddl %eax, 0xc4(%rcx)
movl %eax, -0x48(%rbp)
cvtsi2sdl -0x48(%rbp), %xmm0
movsd 0x5747c(%rip), %xmm1 # 0xb8690
addsd %xmm1, %xmm0
cvtsi2sdl -0x24(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd 0x57467(%rip), %xmm1 # 0xb8690
ucomisd %xmm1, %xmm0
jbe 0x61266
movq -0x10(%rbp), %rcx
movl -0x24(%rbp), %eax
addl %eax, %eax
movl %eax, -0x4c(%rbp)
movl -0x24(%rbp), %eax
movl -0x4c(%rbp), %edx
lock
cmpxchgl %edx, 0xc0(%rcx)
movl %eax, %ecx
sete %al
movb %al, -0x55(%rbp)
movl %ecx, -0x54(%rbp)
testb $0x1, %al
jne 0x6125e
movl -0x54(%rbp), %eax
movl %eax, -0x24(%rbp)
movb -0x55(%rbp), %al
andb $0x1, %al
movb %al, -0x4d(%rbp)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
lf_hash_insert:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rdi, [rbp+var_18]
call lf_alloc_new
mov [rbp+var_38], rax
cmp [rbp+var_38], 0
setnz al
xor al, 0FFh
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_610A1
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_6126D
loc_610A1:
mov rax, [rbp+var_10]
mov rax, [rax+98h]
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_38]
add rsi, 20h ; ' '
mov rdx, [rbp+var_20]
call rax
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_38]
add rsi, 20h ; ' '
mov rdx, [rbp+var_38]
add rdx, 10h
call _ZL8hash_keyPK10st_lf_hashPKhPm; hash_key(st_lf_hash const*,uchar const*,ulong *)
mov rcx, rax
mov rax, [rbp+var_38]
mov [rax+8], rcx
mov rax, [rbp+var_10]
mov rax, [rax+0A0h]
mov rcx, [rbp+var_10]
mov rdi, [rcx+0A8h]
mov rcx, [rbp+var_38]
mov rsi, [rcx+8]
mov rcx, [rbp+var_38]
mov rdx, [rcx+10h]
call rax
mov eax, eax
and rax, 7FFFFFFFh
mov [rbp+var_2C], eax
mov eax, [rbp+var_2C]
mov rcx, [rbp+var_10]
mov ecx, [rcx+0C0h]
cdq
idiv ecx
mov [rbp+var_28], edx
mov rdi, [rbp+var_10]
mov esi, [rbp+var_28]
call lf_dynarray_lvalue
mov [rbp+var_40], rax
cmp [rbp+var_40], 0
setnz al
xor al, 0FFh
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_61158
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_6126D
loc_61158:
mov rax, [rbp+var_40]
cmp qword ptr [rax], 0
jnz short loc_61187
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_40]
mov edx, [rbp+var_28]
mov rcx, [rbp+var_18]
call _ZL17initialize_bucketP10st_lf_hashPP8LF_SLISTjP7LF_PINS; initialize_bucket(st_lf_hash *,LF_SLIST **,uint,LF_PINS *)
cmp eax, 0
jz short loc_61187
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_6126D
loc_61187:
mov edi, [rbp+var_2C]; unsigned int
call _ZL15my_reverse_bitsj; my_reverse_bits(uint)
mov ecx, eax
or ecx, 1
mov rax, [rbp+var_38]
mov [rax+18h], ecx
mov rdi, [rbp+var_40]
mov rax, [rbp+var_10]
mov rsi, [rax+0A8h]
mov rdx, [rbp+var_38]
mov rcx, [rbp+var_18]
mov rax, [rbp+var_10]
mov r8d, [rax+0BCh]
call _ZL8l_insertPP8LF_SLISTPK15charset_info_stS0_P7LF_PINSj; l_insert(LF_SLIST **,charset_info_st const*,LF_SLIST *,LF_PINS *,uint)
cmp rax, 0
jz short loc_611E1
mov rdi, [rbp+var_18]
mov rsi, [rbp+var_38]
call lf_pinbox_free
mov [rbp+var_4], 1
jmp loc_6126D
loc_611E1:
mov rax, [rbp+var_10]
mov eax, [rax+0C0h]
mov [rbp+var_24], eax
mov rcx, [rbp+var_10]
mov [rbp+var_44], 1
mov eax, [rbp+var_44]
lock xadd [rcx+0C4h], eax
mov [rbp+var_48], eax
cvtsi2sd xmm0, [rbp+var_48]
movsd xmm1, cs:qword_B8690
addsd xmm0, xmm1
cvtsi2sd xmm1, [rbp+var_24]
divsd xmm0, xmm1
movsd xmm1, cs:qword_B8690
ucomisd xmm0, xmm1
jbe short loc_61266
mov rcx, [rbp+var_10]
mov eax, [rbp+var_24]
add eax, eax
mov [rbp+var_4C], eax
mov eax, [rbp+var_24]
mov edx, [rbp+var_4C]
lock cmpxchg [rcx+0C0h], edx
mov ecx, eax
setz al
mov [rbp+var_55], al
mov [rbp+var_54], ecx
test al, 1
jnz short loc_6125E
mov eax, [rbp+var_54]
mov [rbp+var_24], eax
loc_6125E:
mov al, [rbp+var_55]
and al, 1
mov [rbp+var_4D], al
loc_61266:
mov [rbp+var_4], 0
loc_6126D:
mov eax, [rbp+var_4]
add rsp, 60h
pop rbp
retn
|
long long lf_hash_insert(long long a1, long long a2, long long a3)
{
_QWORD *v4; // [rsp+20h] [rbp-40h]
long long v5; // [rsp+28h] [rbp-38h]
signed int v6; // [rsp+34h] [rbp-2Ch]
unsigned int v7; // [rsp+38h] [rbp-28h]
signed __int32 v8; // [rsp+3Ch] [rbp-24h]
v5 = lf_alloc_new(a2);
if ( v5 )
{
(*(void ( **)(long long, long long, long long))(a1 + 152))(a1, v5 + 32, a3);
*(_QWORD *)(v5 + 8) = hash_key(a1, v5 + 32, v5 + 16);
v6 = (*(long long ( **)(_QWORD, _QWORD, _QWORD))(a1 + 160))(
*(_QWORD *)(a1 + 168),
*(_QWORD *)(v5 + 8),
*(_QWORD *)(v5 + 16)) & 0x7FFFFFFF;
v7 = v6 % *(_DWORD *)(a1 + 192);
v4 = (_QWORD *)lf_dynarray_lvalue(a1, v7);
if ( v4 )
{
if ( *v4 || !(unsigned int)initialize_bucket(a1, v4, v7, a2) )
{
*(_DWORD *)(v5 + 24) = my_reverse_bits(v6) | 1;
if ( l_insert(v4, *(_QWORD *)(a1 + 168), v5, a2, *(unsigned int *)(a1 + 188)) )
{
lf_pinbox_free(a2, v5);
return 1;
}
else
{
v8 = *(_DWORD *)(a1 + 192);
if ( ((double)_InterlockedExchangeAdd((volatile signed __int32 *)(a1 + 196), 1u) + 1.0) / (double)v8 > 1.0 )
_InterlockedCompareExchange((volatile signed __int32 *)(a1 + 192), 2 * v8, v8);
return 0;
}
}
else
{
return (unsigned int)-1;
}
}
else
{
return (unsigned int)-1;
}
}
else
{
return (unsigned int)-1;
}
}
|
lf_hash_insert:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00160470
MOV qword ptr [RBP + -0x38],RAX
CMP qword ptr [RBP + -0x38],0x0
SETNZ AL
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x001610a1
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x0016126d
LAB_001610a1:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x98]
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x38]
ADD RSI,0x20
MOV RDX,qword ptr [RBP + -0x20]
CALL RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x38]
ADD RSI,0x20
MOV RDX,qword ptr [RBP + -0x38]
ADD RDX,0x10
CALL 0x00161280
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xa0]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RCX + 0xa8]
MOV RCX,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RCX + 0x8]
MOV RCX,qword ptr [RBP + -0x38]
MOV RDX,qword ptr [RCX + 0x10]
CALL RAX
MOV EAX,EAX
AND RAX,0x7fffffff
MOV dword ptr [RBP + -0x2c],EAX
MOV EAX,dword ptr [RBP + -0x2c]
MOV RCX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RCX + 0xc0]
CDQ
IDIV ECX
MOV dword ptr [RBP + -0x28],EDX
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x28]
CALL 0x001608c0
MOV qword ptr [RBP + -0x40],RAX
CMP qword ptr [RBP + -0x40],0x0
SETNZ AL
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x00161158
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x0016126d
LAB_00161158:
MOV RAX,qword ptr [RBP + -0x40]
CMP qword ptr [RAX],0x0
JNZ 0x00161187
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x40]
MOV EDX,dword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x18]
CALL 0x00161300
CMP EAX,0x0
JZ 0x00161187
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x0016126d
LAB_00161187:
MOV EDI,dword ptr [RBP + -0x2c]
CALL 0x00161480
MOV ECX,EAX
OR ECX,0x1
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x18],ECX
MOV RDI,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0xa8]
MOV RDX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV R8D,dword ptr [RAX + 0xbc]
CALL 0x00161500
CMP RAX,0x0
JZ 0x001611e1
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x38]
CALL 0x00160270
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0016126d
LAB_001611e1:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0xc0]
MOV dword ptr [RBP + -0x24],EAX
MOV RCX,qword ptr [RBP + -0x10]
MOV dword ptr [RBP + -0x44],0x1
MOV EAX,dword ptr [RBP + -0x44]
XADD.LOCK dword ptr [RCX + 0xc4],EAX
MOV dword ptr [RBP + -0x48],EAX
CVTSI2SD XMM0,dword ptr [RBP + -0x48]
MOVSD XMM1,qword ptr [0x001b8690]
ADDSD XMM0,XMM1
CVTSI2SD XMM1,dword ptr [RBP + -0x24]
DIVSD XMM0,XMM1
MOVSD XMM1,qword ptr [0x001b8690]
UCOMISD XMM0,XMM1
JBE 0x00161266
MOV RCX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RBP + -0x24]
ADD EAX,EAX
MOV dword ptr [RBP + -0x4c],EAX
MOV EAX,dword ptr [RBP + -0x24]
MOV EDX,dword ptr [RBP + -0x4c]
CMPXCHG.LOCK dword ptr [RCX + 0xc0],EDX
MOV ECX,EAX
SETZ AL
MOV byte ptr [RBP + -0x55],AL
MOV dword ptr [RBP + -0x54],ECX
TEST AL,0x1
JNZ 0x0016125e
MOV EAX,dword ptr [RBP + -0x54]
MOV dword ptr [RBP + -0x24],EAX
LAB_0016125e:
MOV AL,byte ptr [RBP + -0x55]
AND AL,0x1
MOV byte ptr [RBP + -0x4d],AL
LAB_00161266:
MOV dword ptr [RBP + -0x4],0x0
LAB_0016126d:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x60
POP RBP
RET
|
int4 lf_hash_insert(st_lf_hash *param_1,LF_PINS *param_2,int8 param_3)
{
st_lf_hash *psVar1;
int iVar2;
uint uVar3;
int iVar4;
LF_SLIST *pLVar5;
int8 uVar6;
LF_SLIST **ppLVar7;
long lVar8;
uint uVar9;
int4 local_c;
pLVar5 = (LF_SLIST *)lf_alloc_new(param_2);
if (pLVar5 == (LF_SLIST *)0x0) {
local_c = 0xffffffff;
}
else {
(**(code **)(param_1 + 0x98))(param_1,pLVar5 + 0x20,param_3);
uVar6 = hash_key(param_1,(uchar *)(pLVar5 + 0x20),(ulong *)(pLVar5 + 0x10));
*(int8 *)(pLVar5 + 8) = uVar6;
uVar3 = (**(code **)(param_1 + 0xa0))
(*(int8 *)(param_1 + 0xa8),*(int8 *)(pLVar5 + 8),
*(int8 *)(pLVar5 + 0x10));
uVar9 = (int)(uVar3 & 0x7fffffff) % *(int *)(param_1 + 0xc0);
ppLVar7 = (LF_SLIST **)lf_dynarray_lvalue(param_1,uVar9);
if (ppLVar7 == (LF_SLIST **)0x0) {
local_c = 0xffffffff;
}
else if ((*ppLVar7 == (LF_SLIST *)0x0) &&
(iVar4 = initialize_bucket(param_1,ppLVar7,uVar9,param_2), iVar4 != 0)) {
local_c = 0xffffffff;
}
else {
uVar3 = my_reverse_bits(uVar3 & 0x7fffffff);
*(uint *)(pLVar5 + 0x18) = uVar3 | 1;
lVar8 = l_insert(ppLVar7,*(charset_info_st **)(param_1 + 0xa8),pLVar5,param_2,
*(uint *)(param_1 + 0xbc));
if (lVar8 == 0) {
iVar2 = *(int *)(param_1 + 0xc0);
LOCK();
psVar1 = param_1 + 0xc4;
iVar4 = *(int *)psVar1;
*(int *)psVar1 = *(int *)psVar1 + 1;
UNLOCK();
if (DAT_001b8690 < ((double)iVar4 + DAT_001b8690) / (double)iVar2) {
LOCK();
if (iVar2 == *(int *)(param_1 + 0xc0)) {
*(int *)(param_1 + 0xc0) = iVar2 * 2;
}
UNLOCK();
}
local_c = 0;
}
else {
lf_pinbox_free(param_2,pLVar5);
local_c = 1;
}
}
}
return local_c;
}
|
|
59,630
|
JS_IsExtensible
|
bluesky950520[P]quickjs/quickjs.c
|
int JS_IsExtensible(JSContext *ctx, JSValue obj)
{
JSObject *p;
if (unlikely(JS_VALUE_GET_TAG(obj) != JS_TAG_OBJECT))
return FALSE;
p = JS_VALUE_GET_OBJ(obj);
if (unlikely(p->class_id == JS_CLASS_PROXY))
return js_proxy_isExtensible(ctx, obj);
else
return p->extensible;
}
|
O2
|
c
|
JS_IsExtensible:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rcx
cmpl $-0x1, %ecx
jne 0x219ea
movq %rsi, %rdx
cmpw $0x30, 0x6(%rsi)
je 0x219ee
movzbl 0x5(%rdx), %ebp
andl $0x1, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
xorl %ebp, %ebp
jmp 0x219dd
movq %rdi, %rbx
leaq 0x8(%rsp), %rsi
pushq $0x62
popq %r8
callq 0x398b1
pushq $-0x1
popq %r15
testq %rax, %rax
je 0x21a83
movq %rax, %r14
movq 0x10(%rsp), %rdx
cmpl $0x3, %edx
jne 0x21a28
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x219ba
movl %eax, %ebp
jmp 0x219dd
movq 0x8(%rsp), %rsi
movq 0x10(%r14), %rcx
movq 0x18(%r14), %r8
movq %r14, (%rsp)
pushq $0x1
popq %r9
movq %rbx, %rdi
callq 0x2093e
cmpl $0x6, %edx
je 0x21a83
movq %rbx, %rdi
movq %rax, %rsi
callq 0x209aa
movl %eax, %ebp
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x219ba
testl %eax, %eax
js 0x21a83
cmpl %eax, %ebp
je 0x219dd
leaq 0x685eb(%rip), %rsi # 0x8a064
movq %rbx, %rdi
xorl %eax, %eax
callq 0x201fd
movl %r15d, %ebp
jmp 0x219dd
|
JS_IsExtensible:
push rbp
push r15
push r14
push rbx
sub rsp, 18h
mov rcx, rdx
cmp ecx, 0FFFFFFFFh
jnz short loc_219EA
mov rdx, rsi
cmp word ptr [rsi+6], 30h ; '0'
jz short loc_219EE
movzx ebp, byte ptr [rdx+5]
and ebp, 1
loc_219DD:
mov eax, ebp
add rsp, 18h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_219EA:
xor ebp, ebp
jmp short loc_219DD
loc_219EE:
mov rbx, rdi
lea rsi, [rsp+38h+var_30]
push 62h ; 'b'
pop r8
call get_proxy_method
push 0FFFFFFFFFFFFFFFFh
pop r15
test rax, rax
jz short loc_21A83
mov r14, rax
mov rdx, [rsp+38h+var_28]
cmp edx, 3
jnz short loc_21A28
mov rsi, [r14]
mov rdx, [r14+8]
mov rdi, rbx
call JS_IsExtensible
mov ebp, eax
jmp short loc_219DD
loc_21A28:
mov rsi, [rsp+38h+var_30]
mov rcx, [r14+10h]
mov r8, [r14+18h]
mov [rsp+38h+var_38], r14
push 1
pop r9
mov rdi, rbx
call JS_CallFree
cmp edx, 6
jz short loc_21A83
mov rdi, rbx
mov rsi, rax
call JS_ToBoolFree
mov ebp, eax
mov rsi, [r14]
mov rdx, [r14+8]
mov rdi, rbx
call JS_IsExtensible
test eax, eax
js short loc_21A83
cmp ebp, eax
jz loc_219DD
lea rsi, aProxyInconsist_0; "proxy: inconsistent isExtensible"
mov rdi, rbx
xor eax, eax
call JS_ThrowTypeError
loc_21A83:
mov ebp, r15d
jmp loc_219DD
|
long long JS_IsExtensible(
long long a1,
long long a2,
long long a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11)
{
unsigned int v11; // ebp
_QWORD *proxy_method; // rax
_QWORD *v14; // r14
long long v15; // rax
long long v16; // rdx
int IsExtensible; // eax
long long v18; // rdx
long long v19; // rcx
long long v20; // r8
long long v21; // r9
__m128 v22; // xmm4
__m128 v23; // xmm5
char v24; // [rsp+0h] [rbp-38h]
long long v25; // [rsp+8h] [rbp-30h] BYREF
long long v26; // [rsp+10h] [rbp-28h]
if ( (_DWORD)a3 == -1 )
{
if ( *(_WORD *)(a2 + 6) == 48 )
{
proxy_method = (_QWORD *)get_proxy_method(a1, &v25, a2, a3, 98LL);
if ( proxy_method )
{
v14 = proxy_method;
if ( (_DWORD)v26 == 3 )
return (unsigned int)JS_IsExtensible(a1, *proxy_method, proxy_method[1]);
v15 = JS_CallFree(a1, v25, v26, proxy_method[2], proxy_method[3], 1, (long long)proxy_method);
if ( (_DWORD)v16 != 6 )
{
v11 = JS_ToBoolFree(a1, v15, v16);
IsExtensible = JS_IsExtensible(a1, *v14, v14[1]);
if ( IsExtensible >= 0 )
{
if ( v11 == IsExtensible )
return v11;
JS_ThrowTypeError(
a1,
(long long)"proxy: inconsistent isExtensible",
v18,
v19,
v20,
v21,
a4,
a5,
a6,
a7,
v22,
v23,
a10,
a11,
v24);
}
}
}
return (unsigned int)-1;
}
return *(_BYTE *)(a2 + 5) & 1;
}
else
{
return 0;
}
}
|
JS_IsExtensible:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV RCX,RDX
CMP ECX,-0x1
JNZ 0x001219ea
MOV RDX,RSI
CMP word ptr [RSI + 0x6],0x30
JZ 0x001219ee
MOVZX EBP,byte ptr [RDX + 0x5]
AND EBP,0x1
LAB_001219dd:
MOV EAX,EBP
ADD RSP,0x18
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_001219ea:
XOR EBP,EBP
JMP 0x001219dd
LAB_001219ee:
MOV RBX,RDI
LEA RSI,[RSP + 0x8]
PUSH 0x62
POP R8
CALL 0x001398b1
PUSH -0x1
POP R15
TEST RAX,RAX
JZ 0x00121a83
MOV R14,RAX
MOV RDX,qword ptr [RSP + 0x10]
CMP EDX,0x3
JNZ 0x00121a28
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
MOV RDI,RBX
CALL 0x001219ba
MOV EBP,EAX
JMP 0x001219dd
LAB_00121a28:
MOV RSI,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [R14 + 0x10]
MOV R8,qword ptr [R14 + 0x18]
MOV qword ptr [RSP],R14
PUSH 0x1
POP R9
MOV RDI,RBX
CALL 0x0012093e
CMP EDX,0x6
JZ 0x00121a83
MOV RDI,RBX
MOV RSI,RAX
CALL 0x001209aa
MOV EBP,EAX
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
MOV RDI,RBX
CALL 0x001219ba
TEST EAX,EAX
JS 0x00121a83
CMP EBP,EAX
JZ 0x001219dd
LEA RSI,[0x18a064]
MOV RDI,RBX
XOR EAX,EAX
CALL 0x001201fd
LAB_00121a83:
MOV EBP,R15D
JMP 0x001219dd
|
uint JS_IsExtensible(int8 param_1,long param_2,int8 param_3)
{
uint uVar1;
int8 *puVar2;
uint uVar3;
int1 auVar4 [12];
int8 local_30;
int8 local_28;
if ((int)param_3 == -1) {
if (*(short *)(param_2 + 6) == 0x30) {
puVar2 = (int8 *)get_proxy_method(param_1,&local_30,param_2,param_3,0x62);
if (puVar2 != (int8 *)0x0) {
if ((int)local_28 == 3) {
uVar3 = JS_IsExtensible(param_1,*puVar2,puVar2[1]);
return uVar3;
}
auVar4 = JS_CallFree(param_1,local_30,local_28,puVar2[2],puVar2[3],1,puVar2);
if (auVar4._8_4_ != 6) {
uVar3 = JS_ToBoolFree(param_1,auVar4._0_8_);
uVar1 = JS_IsExtensible(param_1,*puVar2,puVar2[1]);
if (-1 < (int)uVar1) {
if (uVar3 == uVar1) {
return uVar3;
}
JS_ThrowTypeError(param_1,"proxy: inconsistent isExtensible");
}
}
}
uVar3 = 0xffffffff;
}
else {
uVar3 = *(byte *)(param_2 + 5) & 1;
}
}
else {
uVar3 = 0;
}
return uVar3;
}
|
|
59,631
|
common_params_handle_model_default(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, 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>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, 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/common/arg.cpp
|
static void common_params_handle_model_default(
std::string & model,
const std::string & model_url,
std::string & hf_repo,
std::string & hf_file,
const std::string & hf_token,
const std::string & model_default) {
if (!hf_repo.empty()) {
// short-hand to avoid specifying --hf-file -> default it to --model
if (hf_file.empty()) {
if (model.empty()) {
auto auto_detected = common_get_hf_file(hf_repo, hf_token);
if (auto_detected.first.empty() || auto_detected.second.empty()) {
exit(1); // built without CURL, error message already printed
}
hf_repo = auto_detected.first;
hf_file = auto_detected.second;
} else {
hf_file = model;
}
}
// make sure model path is present (for caching purposes)
if (model.empty()) {
// this is to avoid different repo having same file name, or same file name in different subdirs
std::string filename = hf_repo + "_" + hf_file;
// to make sure we don't have any slashes in the filename
string_replace_all(filename, "/", "_");
model = fs_get_cache_file(filename);
}
} else if (!model_url.empty()) {
if (model.empty()) {
auto f = string_split<std::string>(model_url, '#').front();
f = string_split<std::string>(f, '?').front();
model = fs_get_cache_file(string_split<std::string>(f, '/').back());
}
} else if (model.empty()) {
model = model_default;
}
}
|
O0
|
cpp
|
common_params_handle_model_default(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, 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>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, 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&):
subq $0x1d8, %rsp # imm = 0x1D8
movq %rdi, 0x1d0(%rsp)
movq %rsi, 0x1c8(%rsp)
movq %rdx, 0x1c0(%rsp)
movq %rcx, 0x1b8(%rsp)
movq %r8, 0x1b0(%rsp)
movq %r9, 0x1a8(%rsp)
movq 0x1c0(%rsp), %rdi
callq 0x5a500
testb $0x1, %al
jne 0x826d0
movq 0x1b8(%rsp), %rdi
callq 0x5a500
testb $0x1, %al
jne 0x823d2
jmp 0x824b1
movq 0x1d0(%rsp), %rdi
callq 0x5a500
testb $0x1, %al
jne 0x823e8
jmp 0x8249a
movq 0x1c0(%rsp), %rsi
movq 0x1b0(%rsp), %rdx
leaq 0x168(%rsp), %rdi
callq 0xf1570
leaq 0x168(%rsp), %rdi
callq 0x5a500
testb $0x1, %al
jne 0x8242d
leaq 0x168(%rsp), %rdi
addq $0x20, %rdi
callq 0x5a500
testb $0x1, %al
jne 0x8242d
jmp 0x82437
movl $0x1, %edi
callq 0x5ac50
movq 0x1c0(%rsp), %rdi
leaq 0x168(%rsp), %rsi
callq 0x5b430
jmp 0x8244e
leaq 0x188(%rsp), %rsi
movq 0x1b8(%rsp), %rdi
callq 0x5b430
jmp 0x82465
leaq 0x168(%rsp), %rdi
callq 0x94260
jmp 0x824af
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
leaq 0x168(%rsp), %rdi
callq 0x94260
jmp 0x828a0
movq 0x1d0(%rsp), %rsi
movq 0x1b8(%rsp), %rdi
callq 0x5b430
jmp 0x824b1
movq 0x1d0(%rsp), %rdi
callq 0x5a500
testb $0x1, %al
jne 0x824c7
jmp 0x826cb
movq 0x1c0(%rsp), %rsi
leaq 0x18ecee(%rip), %rdx # 0x2111c4
leaq 0x118(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x8abc0
movq 0x18(%rsp), %rsi
movq 0x1b8(%rsp), %rdx
leaq 0x138(%rsp), %rdi
callq 0x94290
jmp 0x82504
leaq 0x118(%rsp), %rdi
callq 0x5b588
leaq 0xf7(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x5b0f0
movq 0x10(%rsp), %rdx
leaq 0x194059(%rip), %rsi # 0x216588
leaq 0xf8(%rsp), %rdi
callq 0x63270
jmp 0x8253e
leaq 0xcf(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x5b0f0
movq 0x8(%rsp), %rdx
leaq 0x18ec68(%rip), %rsi # 0x2111c4
leaq 0xd0(%rsp), %rdi
callq 0x63270
jmp 0x8256b
leaq 0x138(%rsp), %rdi
leaq 0xf8(%rsp), %rsi
leaq 0xd0(%rsp), %rdx
callq 0xed7b0
jmp 0x8258a
leaq 0xd0(%rsp), %rdi
callq 0x5b588
leaq 0xcf(%rsp), %rdi
callq 0x5b560
leaq 0xf8(%rsp), %rdi
callq 0x5b588
leaq 0xf7(%rsp), %rdi
callq 0x5b560
leaq 0xa8(%rsp), %rdi
leaq 0x138(%rsp), %rsi
callq 0xef880
jmp 0x825d5
movq 0x1d0(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x5a960
leaq 0xa8(%rsp), %rdi
callq 0x5b588
leaq 0x138(%rsp), %rdi
callq 0x5b588
jmp 0x826cb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
leaq 0x118(%rsp), %rdi
callq 0x5b588
jmp 0x828a0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
jmp 0x82696
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
jmp 0x8267c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
leaq 0xd0(%rsp), %rdi
callq 0x5b588
leaq 0xcf(%rsp), %rdi
callq 0x5b560
leaq 0xf8(%rsp), %rdi
callq 0x5b588
leaq 0xf7(%rsp), %rdi
callq 0x5b560
jmp 0x826b9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
leaq 0x138(%rsp), %rdi
callq 0x5b588
jmp 0x828a0
jmp 0x82898
movq 0x1c8(%rsp), %rdi
callq 0x5a500
testb $0x1, %al
jne 0x8286c
movq 0x1d0(%rsp), %rdi
callq 0x5a500
testb $0x1, %al
jne 0x826fb
jmp 0x8286a
movq 0x1c8(%rsp), %rsi
leaq 0x70(%rsp), %rdi
movq %rdi, (%rsp)
movl $0x23, %edx
callq 0x828b0
movq (%rsp), %rdi
callq 0x942e0
movq %rax, %rsi
leaq 0x88(%rsp), %rdi
callq 0x5a200
jmp 0x82731
leaq 0x70(%rsp), %rdi
callq 0x63380
leaq 0x58(%rsp), %rdi
leaq 0x88(%rsp), %rsi
movl $0x3f, %edx
callq 0x828b0
jmp 0x82754
leaq 0x58(%rsp), %rdi
callq 0x942e0
movq %rax, %rsi
leaq 0x88(%rsp), %rdi
callq 0x5b430
jmp 0x82770
leaq 0x58(%rsp), %rdi
callq 0x63380
leaq 0x20(%rsp), %rdi
leaq 0x88(%rsp), %rsi
movl $0x2f, %edx
callq 0x828b0
jmp 0x82793
leaq 0x20(%rsp), %rdi
callq 0x94310
movq %rax, %rsi
leaq 0x38(%rsp), %rdi
callq 0xef880
jmp 0x827ac
movq 0x1d0(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x5a960
leaq 0x38(%rsp), %rdi
callq 0x5b588
leaq 0x20(%rsp), %rdi
callq 0x63380
leaq 0x88(%rsp), %rdi
callq 0x5b588
jmp 0x8286a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x63380
jmp 0x828a0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
jmp 0x8285b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
leaq 0x58(%rsp), %rdi
callq 0x63380
jmp 0x8285b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x63380
leaq 0x88(%rsp), %rdi
callq 0x5b588
jmp 0x828a0
jmp 0x82896
movq 0x1d0(%rsp), %rdi
callq 0x5a500
testb $0x1, %al
jne 0x8287f
jmp 0x82894
movq 0x1a8(%rsp), %rsi
movq 0x1d0(%rsp), %rdi
callq 0x5b430
jmp 0x82896
jmp 0x82898
addq $0x1d8, %rsp # imm = 0x1D8
retq
movq 0x160(%rsp), %rdi
callq 0x5abf0
nopl (%rax)
|
_ZL34common_params_handle_model_defaultRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS4_S5_S5_S7_S7_:
sub rsp, 1D8h
mov [rsp+1D8h+var_8], rdi
mov [rsp+1D8h+var_10], rsi
mov qword ptr [rsp+1D8h+var_18], rdx
mov [rsp+1D8h+var_20], rcx
mov [rsp+1D8h+var_28], r8
mov [rsp+1D8h+var_30], r9
mov rdi, qword ptr [rsp+1D8h+var_18]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz loc_826D0
mov rdi, [rsp+1D8h+var_20]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_823D2
jmp loc_824B1
loc_823D2:
mov rdi, [rsp+1D8h+var_8]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_823E8
jmp loc_8249A
loc_823E8:
mov rsi, qword ptr [rsp+1D8h+var_18]; int
mov rdx, [rsp+1D8h+var_28]; void *
lea rdi, [rsp+1D8h+var_70]; int
call _Z18common_get_hf_fileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_; common_get_hf_file(std::string const&,std::string const&)
lea rdi, [rsp+1D8h+var_70]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_8242D
lea rdi, [rsp+1D8h+var_70]
add rdi, 20h ; ' '
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_8242D
jmp short loc_82437
loc_8242D:
mov edi, 1
call _exit
loc_82437:
mov rdi, qword ptr [rsp+1D8h+var_18]
lea rsi, [rsp+1D8h+var_70]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
jmp short $+2
loc_8244E:
lea rsi, [rsp+1D8h+var_50]
mov rdi, [rsp+1D8h+var_20]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
jmp short $+2
loc_82465:
lea rdi, [rsp+1D8h+var_70]
call _ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ED2Ev; std::pair<std::string,std::string>::~pair()
jmp short loc_824AF
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
lea rdi, [rsp+arg_160]
call _ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ED2Ev; std::pair<std::string,std::string>::~pair()
jmp loc_828A0
loc_8249A:
mov rsi, [rsp+1D8h+var_8]
mov rdi, [rsp+1D8h+var_20]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
loc_824AF:
jmp short $+2
loc_824B1:
mov rdi, [rsp+1D8h+var_8]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_824C7
jmp loc_826CB
loc_824C7:
mov rsi, qword ptr [rsp+1D8h+var_18]; int
lea rdx, aCall911+8; int
lea rdi, [rsp+1D8h+var_C0]; int
mov [rsp+1D8h+var_1C0], rdi; int
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_; std::operator+<char>(std::string const&,char const*)
mov rsi, [rsp+1D8h+var_1C0]
mov rdx, [rsp+1D8h+var_20]
lea rdi, [rsp+1D8h+var_A0]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_; std::operator+<char>(std::string&&,std::string const&)
jmp short $+2
loc_82504:
lea rdi, [rsp+1D8h+var_C0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+1D8h+var_E1]
mov qword ptr [rsp+1D8h+var_1C8], rdi; int
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, qword ptr [rsp+1D8h+var_1C8]
lea rsi, asc_216587+1; "/"
lea rdi, [rsp+1D8h+var_E1+1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_8253E:
lea rdi, [rsp+1D8h+var_109]
mov qword ptr [rsp+1D8h+var_1D0], rdi; int
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, qword ptr [rsp+1D8h+var_1D0]
lea rsi, aCall911+8; "_"
lea rdi, [rsp+1D8h+var_109+1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_8256B:
lea rdi, [rsp+1D8h+var_A0]
lea rsi, [rsp+1D8h+var_E1+1]
lea rdx, [rsp+1D8h+var_109+1]
call _Z18string_replace_allRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS4_S7_; string_replace_all(std::string &,std::string const&,std::string const&)
jmp short $+2
loc_8258A:
lea rdi, [rsp+1D8h+var_109+1]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+1D8h+var_109]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
lea rdi, [rsp+1D8h+var_E1+1]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+1D8h+var_E1]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
lea rdi, [rsp+1D8h+var_130]; int
lea rsi, [rsp+1D8h+var_A0]
call _Z17fs_get_cache_fileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; fs_get_cache_file(std::string const&)
jmp short $+2
loc_825D5:
mov rdi, [rsp+1D8h+var_8]
lea rsi, [rsp+1D8h+var_130]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
lea rdi, [rsp+1D8h+var_130]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+1D8h+var_A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_826CB
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
lea rdi, [rsp+arg_110]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_828A0
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
jmp short loc_82696
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
jmp short loc_8267C
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
lea rdi, [rsp+arg_C8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_8267C:
lea rdi, [rsp+arg_C7]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
lea rdi, [rsp+arg_F0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_82696:
lea rdi, [rsp+arg_EF]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_826B9
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
loc_826B9:
lea rdi, [rsp+arg_130]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_828A0
loc_826CB:
jmp loc_82898
loc_826D0:
mov rdi, [rsp+1D8h+var_10]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz loc_8286C
mov rdi, [rsp+1D8h+var_8]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_826FB
jmp loc_8286A
loc_826FB:
mov rsi, [rsp+1D8h+var_10]
lea rdi, [rsp+1D8h+var_168]
mov qword ptr [rsp+1D8h+var_1D8], rdi; int
mov edx, 23h ; '#'
call _ZL12string_splitINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIT_SaIS7_EERKS5_c; string_split<std::string>(std::string const&,char)
mov rdi, qword ptr [rsp+1D8h+var_1D8]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5frontEv; std::vector<std::string>::front(void)
mov rsi, rax
lea rdi, [rsp+1D8h+var_150]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&)
jmp short $+2
loc_82731:
lea rdi, [rsp+1D8h+var_168]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rsp+1D8h+var_180]
lea rsi, [rsp+1D8h+var_150]
mov edx, 3Fh ; '?'
call _ZL12string_splitINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIT_SaIS7_EERKS5_c; string_split<std::string>(std::string const&,char)
jmp short $+2
loc_82754:
lea rdi, [rsp+1D8h+var_180]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5frontEv; std::vector<std::string>::front(void)
mov rsi, rax
lea rdi, [rsp+1D8h+var_150]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
jmp short $+2
loc_82770:
lea rdi, [rsp+1D8h+var_180]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rsp+1D8h+var_1B8]
lea rsi, [rsp+1D8h+var_150]
mov edx, 2Fh ; '/'
call _ZL12string_splitINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIT_SaIS7_EERKS5_c; string_split<std::string>(std::string const&,char)
jmp short $+2
loc_82793:
lea rdi, [rsp+1D8h+var_1B8]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4backEv; std::vector<std::string>::back(void)
mov rsi, rax
lea rdi, [rsp+1D8h+var_1A0]; int
call _Z17fs_get_cache_fileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; fs_get_cache_file(std::string const&)
jmp short $+2
loc_827AC:
mov rdi, [rsp+1D8h+var_8]
lea rsi, [rsp+1D8h+var_1A0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
lea rdi, [rsp+1D8h+var_1A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+1D8h+var_1B8]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rsp+1D8h+var_150]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_8286A
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
lea rdi, [rsp+arg_68]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp loc_828A0
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
jmp short loc_8285B
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
lea rdi, [rsp+arg_50]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp short loc_8285B
mov rcx, rax
mov eax, edx
mov [rsp+arg_158], rcx
mov [rsp+arg_154], eax
lea rdi, [rsp+arg_18]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
loc_8285B:
lea rdi, [rsp+arg_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_828A0
loc_8286A:
jmp short loc_82896
loc_8286C:
mov rdi, [rsp+1D8h+var_8]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_8287F
jmp short loc_82894
loc_8287F:
mov rsi, [rsp+1D8h+var_30]
mov rdi, [rsp+1D8h+var_8]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
loc_82894:
jmp short $+2
loc_82896:
jmp short $+2
loc_82898:
add rsp, 1D8h
retn
loc_828A0:
mov rdi, [rsp+arg_158]
call __Unwind_Resume
|
void common_params_handle_model_default(
long long a1,
long long a2,
long long a3,
long long a4,
void *a5,
long long a6)
{
int v6; // ecx
int v7; // r8d
int v8; // r9d
int v9; // ecx
int v10; // r8d
int v11; // r9d
int v12; // ecx
int v13; // r8d
int v14; // r9d
long long v15; // rax
int v16; // ecx
int v17; // r8d
int v18; // r9d
long long v19; // rax
int v20; // ecx
int v21; // r8d
int v22; // r9d
int v23; // [rsp+0h] [rbp-1D8h]
int v24; // [rsp+0h] [rbp-1D8h]
int v25; // [rsp+0h] [rbp-1D8h]
int v26[2]; // [rsp+0h] [rbp-1D8h]
int v27; // [rsp+0h] [rbp-1D8h]
int v28; // [rsp+0h] [rbp-1D8h]
void *v29; // [rsp+8h] [rbp-1D0h]
int v30; // [rsp+8h] [rbp-1D0h]
int v31; // [rsp+10h] [rbp-1C8h]
int v32; // [rsp+10h] [rbp-1C8h]
int v33; // [rsp+18h] [rbp-1C0h]
long long v34; // [rsp+18h] [rbp-1C0h]
int v35; // [rsp+18h] [rbp-1C0h]
long long v36; // [rsp+20h] [rbp-1B8h] BYREF
char v37; // [rsp+28h] [rbp-1B0h]
int v38; // [rsp+30h] [rbp-1A8h]
int v39; // [rsp+38h] [rbp-1A0h] BYREF
int v40; // [rsp+40h] [rbp-198h]
int v41; // [rsp+48h] [rbp-190h]
long long v42; // [rsp+50h] [rbp-188h]
long long v43; // [rsp+58h] [rbp-180h] BYREF
char v44; // [rsp+60h] [rbp-178h]
long long v45[3]; // [rsp+70h] [rbp-168h] BYREF
_BYTE v46[32]; // [rsp+88h] [rbp-150h] BYREF
int v47[9]; // [rsp+A8h] [rbp-130h] BYREF
char v48; // [rsp+CFh] [rbp-109h] BYREF
_BYTE v49[39]; // [rsp+D0h] [rbp-108h] BYREF
char v50; // [rsp+F7h] [rbp-E1h] BYREF
_BYTE v51[32]; // [rsp+F8h] [rbp-E0h] BYREF
long long v52[4]; // [rsp+118h] [rbp-C0h] BYREF
_BYTE v53[48]; // [rsp+138h] [rbp-A0h] BYREF
int v54[8]; // [rsp+168h] [rbp-70h] BYREF
_BYTE v55[32]; // [rsp+188h] [rbp-50h] BYREF
long long v56; // [rsp+1A8h] [rbp-30h]
void *v57; // [rsp+1B0h] [rbp-28h]
long long v58; // [rsp+1B8h] [rbp-20h]
int v59[2]; // [rsp+1C0h] [rbp-18h]
long long v60; // [rsp+1C8h] [rbp-10h]
long long v61; // [rsp+1D0h] [rbp-8h]
v61 = a1;
v60 = a2;
*(_QWORD *)v59 = a3;
v58 = a4;
v57 = a5;
v56 = a6;
if ( (std::string::empty(a3) & 1) != 0 )
{
if ( (std::string::empty(v60) & 1) != 0 )
{
if ( (std::string::empty(v61) & 1) != 0 )
std::string::operator=(v61, v56);
}
else if ( (std::string::empty(v61) & 1) != 0 )
{
string_split<std::string>((unsigned int)v45, v60, 35, v12, v13, v14, (unsigned int)v45);
v15 = std::vector<std::string>::front(*(_QWORD *)v26);
std::string::basic_string(v46, v15);
std::vector<std::string>::~vector(v45);
string_split<std::string>((unsigned int)&v43, (unsigned int)v46, 63, v16, v17, v18, v26[0]);
v19 = std::vector<std::string>::front(&v43);
std::string::operator=(v46, v19);
std::vector<std::string>::~vector(&v43);
string_split<std::string>((unsigned int)&v36, (unsigned int)v46, 47, v20, v21, v22, v27);
std::vector<std::string>::back(&v36);
fs_get_cache_file((int)&v39, v28, (int)v29, v31, v33, v36, v37, v38, v39, v40, v41, v42, v43, v44);
std::string::operator=(v61, &v39);
std::string::~string(&v39);
std::vector<std::string>::~vector(&v36);
std::string::~string(v46);
}
}
else
{
if ( (std::string::empty(v58) & 1) != 0 )
{
if ( (std::string::empty(v61) & 1) != 0 )
{
common_get_hf_file((int)v54, v59[0], v57);
if ( (std::string::empty(v54) & 1) != 0 || (std::string::empty(v55) & 1) != 0 )
exit(1LL);
std::string::operator=(*(_QWORD *)v59, v54);
std::string::operator=(v58, v55);
std::pair<std::string,std::string>::~pair(v54);
}
else
{
std::string::operator=(v58, v61);
}
}
if ( (std::string::empty(v61) & 1) != 0 )
{
std::operator+<char>((int)v52, v59[0], (int)"_", v6, v7, v8, v23, v29, v31, (long long)v52);
std::operator+<char>(v53, v34, v58);
std::string::~string(v52);
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>((long long)v51, (long long)"/", (long long)&v50);
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>((long long)v49, (long long)"_", (long long)&v48);
string_replace_all(
(unsigned int)v53,
(unsigned int)v51,
(unsigned int)v49,
v9,
v10,
v11,
v24,
(unsigned int)&v48,
(unsigned int)&v50,
v34,
v36,
v37);
std::string::~string(v49);
std::allocator<char>::~allocator(&v48);
std::string::~string(v51);
std::allocator<char>::~allocator(&v50);
fs_get_cache_file((int)v47, v25, v30, v32, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44);
std::string::operator=(v61, v47);
std::string::~string(v47);
std::string::~string(v53);
}
}
}
|
common_params_handle_model_default:
SUB RSP,0x1d8
MOV qword ptr [RSP + 0x1d0],RDI
MOV qword ptr [RSP + 0x1c8],RSI
MOV qword ptr [RSP + 0x1c0],RDX
MOV qword ptr [RSP + 0x1b8],RCX
MOV qword ptr [RSP + 0x1b0],R8
MOV qword ptr [RSP + 0x1a8],R9
MOV RDI,qword ptr [RSP + 0x1c0]
CALL 0x0015a500
TEST AL,0x1
JNZ 0x001826d0
MOV RDI,qword ptr [RSP + 0x1b8]
CALL 0x0015a500
TEST AL,0x1
JNZ 0x001823d2
JMP 0x001824b1
LAB_001823d2:
MOV RDI,qword ptr [RSP + 0x1d0]
CALL 0x0015a500
TEST AL,0x1
JNZ 0x001823e8
JMP 0x0018249a
LAB_001823e8:
MOV RSI,qword ptr [RSP + 0x1c0]
MOV RDX,qword ptr [RSP + 0x1b0]
LEA RDI,[RSP + 0x168]
CALL 0x001f1570
LEA RDI,[RSP + 0x168]
CALL 0x0015a500
TEST AL,0x1
JNZ 0x0018242d
LEA RDI,[RSP + 0x168]
ADD RDI,0x20
CALL 0x0015a500
TEST AL,0x1
JNZ 0x0018242d
JMP 0x00182437
LAB_0018242d:
MOV EDI,0x1
CALL 0x0015ac50
LAB_00182437:
MOV RDI,qword ptr [RSP + 0x1c0]
LAB_0018243f:
LEA RSI,[RSP + 0x168]
CALL 0x0015b430
JMP 0x0018244e
LAB_0018244e:
LEA RSI,[RSP + 0x188]
MOV RDI,qword ptr [RSP + 0x1b8]
CALL 0x0015b430
LAB_00182463:
JMP 0x00182465
LAB_00182465:
LEA RDI,[RSP + 0x168]
CALL 0x00194260
JMP 0x001824af
LAB_0018249a:
MOV RSI,qword ptr [RSP + 0x1d0]
MOV RDI,qword ptr [RSP + 0x1b8]
CALL 0x0015b430
LAB_001824af:
JMP 0x001824b1
LAB_001824b1:
MOV RDI,qword ptr [RSP + 0x1d0]
CALL 0x0015a500
TEST AL,0x1
JNZ 0x001824c7
JMP 0x001826cb
LAB_001824c7:
MOV RSI,qword ptr [RSP + 0x1c0]
LEA RDX,[0x3111c4]
LEA RDI,[RSP + 0x118]
MOV qword ptr [RSP + 0x18],RDI
CALL 0x0018abc0
MOV RSI,qword ptr [RSP + 0x18]
MOV RDX,qword ptr [RSP + 0x1b8]
LAB_001824f5:
LEA RDI,[RSP + 0x138]
CALL 0x00194290
JMP 0x00182504
LAB_00182504:
LEA RDI,[RSP + 0x118]
CALL 0x0015b588
LEA RDI,[RSP + 0xf7]
MOV qword ptr [RSP + 0x10],RDI
CALL 0x0015b0f0
MOV RDX,qword ptr [RSP + 0x10]
LAB_00182528:
LEA RSI,[0x316588]
LEA RDI,[RSP + 0xf8]
CALL 0x00163270
JMP 0x0018253e
LAB_0018253e:
LEA RDI,[RSP + 0xcf]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x0015b0f0
MOV RDX,qword ptr [RSP + 0x8]
LAB_00182555:
LEA RSI,[0x3111c4]
LEA RDI,[RSP + 0xd0]
CALL 0x00163270
JMP 0x0018256b
LAB_0018256b:
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0xf8]
LEA RDX,[RSP + 0xd0]
CALL 0x001ed7b0
JMP 0x0018258a
LAB_0018258a:
LEA RDI,[RSP + 0xd0]
CALL 0x0015b588
LEA RDI,[RSP + 0xcf]
CALL 0x0015b560
LEA RDI,[RSP + 0xf8]
CALL 0x0015b588
LEA RDI,[RSP + 0xf7]
CALL 0x0015b560
LAB_001825be:
LEA RDI,[RSP + 0xa8]
LEA RSI,[RSP + 0x138]
CALL 0x001ef880
LAB_001825d3:
JMP 0x001825d5
LAB_001825d5:
MOV RDI,qword ptr [RSP + 0x1d0]
LEA RSI,[RSP + 0xa8]
CALL 0x0015a960
LEA RDI,[RSP + 0xa8]
CALL 0x0015b588
LEA RDI,[RSP + 0x138]
CALL 0x0015b588
JMP 0x001826cb
LAB_001826cb:
JMP 0x00182898
LAB_001826d0:
MOV RDI,qword ptr [RSP + 0x1c8]
CALL 0x0015a500
TEST AL,0x1
JNZ 0x0018286c
MOV RDI,qword ptr [RSP + 0x1d0]
CALL 0x0015a500
TEST AL,0x1
JNZ 0x001826fb
JMP 0x0018286a
LAB_001826fb:
MOV RSI,qword ptr [RSP + 0x1c8]
LEA RDI,[RSP + 0x70]
MOV qword ptr [RSP],RDI
MOV EDX,0x23
CALL 0x001828b0
MOV RDI,qword ptr [RSP]
CALL 0x001942e0
MOV RSI,RAX
LAB_00182722:
LEA RDI,[RSP + 0x88]
CALL 0x0015a200
JMP 0x00182731
LAB_00182731:
LEA RDI,[RSP + 0x70]
CALL 0x00163380
LAB_0018273b:
LEA RDI,[RSP + 0x58]
LEA RSI,[RSP + 0x88]
MOV EDX,0x3f
CALL 0x001828b0
JMP 0x00182754
LAB_00182754:
LEA RDI,[RSP + 0x58]
CALL 0x001942e0
MOV RSI,RAX
LAB_00182761:
LEA RDI,[RSP + 0x88]
CALL 0x0015b430
JMP 0x00182770
LAB_00182770:
LEA RDI,[RSP + 0x58]
CALL 0x00163380
LAB_0018277a:
LEA RDI,[RSP + 0x20]
LEA RSI,[RSP + 0x88]
MOV EDX,0x2f
CALL 0x001828b0
JMP 0x00182793
LAB_00182793:
LEA RDI,[RSP + 0x20]
CALL 0x00194310
MOV RSI,RAX
LAB_001827a0:
LEA RDI,[RSP + 0x38]
CALL 0x001ef880
LAB_001827aa:
JMP 0x001827ac
LAB_001827ac:
MOV RDI,qword ptr [RSP + 0x1d0]
LEA RSI,[RSP + 0x38]
CALL 0x0015a960
LEA RDI,[RSP + 0x38]
CALL 0x0015b588
LEA RDI,[RSP + 0x20]
CALL 0x00163380
LEA RDI,[RSP + 0x88]
CALL 0x0015b588
JMP 0x0018286a
LAB_0018286a:
JMP 0x00182896
LAB_0018286c:
MOV RDI,qword ptr [RSP + 0x1d0]
CALL 0x0015a500
TEST AL,0x1
JNZ 0x0018287f
JMP 0x00182894
LAB_0018287f:
MOV RSI,qword ptr [RSP + 0x1a8]
MOV RDI,qword ptr [RSP + 0x1d0]
CALL 0x0015b430
LAB_00182894:
JMP 0x00182896
LAB_00182896:
JMP 0x00182898
LAB_00182898:
ADD RSP,0x1d8
RET
|
/* common_params_handle_model_default(std::__cxx11::string&, std::__cxx11::string const&,
std::__cxx11::string&, std::__cxx11::string&, std::__cxx11::string const&, std::__cxx11::string
const&) */
void common_params_handle_model_default
(string *param_1,string *param_2,string *param_3,string *param_4,string *param_5,
string *param_6)
{
string *psVar1;
byte bVar2;
string local_1b8 [24];
string local_1a0 [32];
string local_180 [24];
string local_168 [24];
string local_150 [32];
string local_130 [39];
allocator local_109;
string local_108 [39];
allocator local_e1;
string local_e0 [32];
string local_c0 [32];
string local_a0 [48];
string local_70 [32];
string local_50 [32];
string *local_30;
string *local_28;
string *local_20;
string *local_18;
string *local_10;
string *local_8;
local_30 = param_6;
local_28 = param_5;
local_20 = param_4;
local_18 = param_3;
local_10 = param_2;
local_8 = param_1;
bVar2 = std::__cxx11::string::empty();
if ((bVar2 & 1) == 0) {
bVar2 = std::__cxx11::string::empty();
if ((bVar2 & 1) != 0) {
bVar2 = std::__cxx11::string::empty();
if ((bVar2 & 1) == 0) {
std::__cxx11::string::operator=(local_20,local_8);
}
else {
common_get_hf_file(local_70,local_18);
bVar2 = std::__cxx11::string::empty();
if (((bVar2 & 1) != 0) || (bVar2 = std::__cxx11::string::empty(), (bVar2 & 1) != 0)) {
/* WARNING: Subroutine does not return */
exit(1);
}
/* try { // try from 0018243f to 00182462 has its CatchHandler @ 00182474 */
std::__cxx11::string::operator=(local_18,local_70);
std::__cxx11::string::operator=(local_20,local_50);
std::pair<std::__cxx11::string,std::__cxx11::string>::~pair
((pair<std::__cxx11::string,std::__cxx11::string> *)local_70);
}
}
bVar2 = std::__cxx11::string::empty();
if ((bVar2 & 1) != 0) {
std::operator+(local_c0,(char *)local_18);
/* try { // try from 001824f5 to 00182501 has its CatchHandler @ 00182609 */
std::operator+(local_a0,local_c0);
std::__cxx11::string::~string(local_c0);
std::allocator<char>::allocator();
/* try { // try from 00182528 to 0018253b has its CatchHandler @ 0018262f */
std::__cxx11::string::string<std::allocator<char>>(local_e0,"/",&local_e1);
std::allocator<char>::allocator();
/* try { // try from 00182555 to 00182568 has its CatchHandler @ 00182645 */
std::__cxx11::string::string<std::allocator<char>>(local_108,"_",&local_109);
/* try { // try from 0018256b to 00182587 has its CatchHandler @ 0018265b */
string_replace_all(local_a0,local_e0,local_108);
std::__cxx11::string::~string(local_108);
std::allocator<char>::~allocator((allocator<char> *)&local_109);
std::__cxx11::string::~string(local_e0);
std::allocator<char>::~allocator((allocator<char> *)&local_e1);
/* try { // try from 001825be to 001825d2 has its CatchHandler @ 001826a5 */
fs_get_cache_file(local_130);
std::__cxx11::string::operator=(local_8,local_130);
std::__cxx11::string::~string(local_130);
std::__cxx11::string::~string(local_a0);
}
}
else {
bVar2 = std::__cxx11::string::empty();
if ((bVar2 & 1) == 0) {
bVar2 = std::__cxx11::string::empty();
if ((bVar2 & 1) != 0) {
string_split<std::__cxx11::string>(local_168,(char)local_10);
psVar1 = (string *)
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::front
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)
local_168);
/* try { // try from 00182722 to 0018272e has its CatchHandler @ 001827e4 */
std::__cxx11::string::string(local_150,psVar1);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_168);
/* try { // try from 0018273b to 00182751 has its CatchHandler @ 00182807 */
string_split<std::__cxx11::string>(local_180,(char)local_150);
psVar1 = (string *)
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::front
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)
local_180);
/* try { // try from 00182761 to 0018276d has its CatchHandler @ 0018281d */
std::__cxx11::string::operator=(local_150,psVar1);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_180);
/* try { // try from 0018277a to 00182790 has its CatchHandler @ 00182807 */
string_split<std::__cxx11::string>(local_1b8,(char)local_150);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::back
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_1b8);
/* try { // try from 001827a0 to 001827a9 has its CatchHandler @ 0018283d */
fs_get_cache_file(local_1a0);
std::__cxx11::string::operator=(local_8,local_1a0);
std::__cxx11::string::~string(local_1a0);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_1b8);
std::__cxx11::string::~string(local_150);
}
}
else {
bVar2 = std::__cxx11::string::empty();
if ((bVar2 & 1) != 0) {
std::__cxx11::string::operator=(local_8,local_30);
}
}
}
return;
}
|
|
59,632
|
common_params_handle_model_default(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, 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>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, 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/common/arg.cpp
|
static void common_params_handle_model_default(
std::string & model,
const std::string & model_url,
std::string & hf_repo,
std::string & hf_file,
const std::string & hf_token,
const std::string & model_default) {
if (!hf_repo.empty()) {
// short-hand to avoid specifying --hf-file -> default it to --model
if (hf_file.empty()) {
if (model.empty()) {
auto auto_detected = common_get_hf_file(hf_repo, hf_token);
if (auto_detected.first.empty() || auto_detected.second.empty()) {
exit(1); // built without CURL, error message already printed
}
hf_repo = auto_detected.first;
hf_file = auto_detected.second;
} else {
hf_file = model;
}
}
// make sure model path is present (for caching purposes)
if (model.empty()) {
// this is to avoid different repo having same file name, or same file name in different subdirs
std::string filename = hf_repo + "_" + hf_file;
// to make sure we don't have any slashes in the filename
string_replace_all(filename, "/", "_");
model = fs_get_cache_file(filename);
}
} else if (!model_url.empty()) {
if (model.empty()) {
auto f = string_split<std::string>(model_url, '#').front();
f = string_split<std::string>(f, '?').front();
model = fs_get_cache_file(string_split<std::string>(f, '/').back());
}
} else if (model.empty()) {
model = model_default;
}
}
|
O2
|
cpp
|
common_params_handle_model_default(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, 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>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, 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 %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
cmpq $0x0, 0x8(%rdx)
je 0x355e0
movq %rcx, %r14
movq %rdx, %r15
cmpq $0x0, 0x8(%rcx)
jne 0x35707
cmpq $0x0, 0x8(%rbx)
je 0x356b8
movq %r14, %rdi
movq %rbx, %rsi
callq 0x234e0
jmp 0x35707
cmpq $0x0, 0x8(%rsi)
movq 0x8(%rbx), %rax
je 0x35696
testq %rax, %rax
jne 0x357c8
leaq 0x8(%rsp), %r14
pushq $0x23
popq %rdx
movq %r14, %rdi
callq 0x35859
movq (%r14), %rsi
leaq 0x28(%rsp), %rdi
callq 0x23c30
leaq 0x8(%rsp), %rdi
callq 0x276c2
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
pushq $0x3f
popq %rdx
callq 0x35859
movq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x234e0
leaq 0x8(%rsp), %rdi
callq 0x276c2
leaq 0x68(%rsp), %rdi
leaq 0x28(%rsp), %rsi
pushq $0x2f
popq %rdx
callq 0x35859
movq 0x70(%rsp), %rsi
addq $-0x20, %rsi
leaq 0x8(%rsp), %rdi
callq 0x5503b
leaq 0x8(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x23ae0
movq %r14, %rdi
callq 0x241f8
leaq 0x68(%rsp), %rdi
callq 0x276c2
jmp 0x357be
testq %rax, %rax
jne 0x357c8
movq %rbx, %rdi
movq %r9, %rsi
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x234e0
leaq 0x28(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
movq %r8, %rdx
callq 0x5631e
cmpq $0x0, 0x8(%r12)
je 0x357d7
cmpq $0x0, 0x50(%rsp)
je 0x357d7
leaq 0x28(%rsp), %rsi
movq %r15, %rdi
callq 0x234e0
leaq 0x48(%rsp), %rsi
movq %r14, %rdi
callq 0x234e0
leaq 0x28(%rsp), %rdi
callq 0x3acde
cmpq $0x0, 0x8(%rbx)
jne 0x357c8
leaq 0x7e0d4(%rip), %rdx # 0xb37ed
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x384fb
leaq 0x28(%rsp), %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x3acf4
leaq 0x8(%rsp), %rdi
callq 0x241f8
leaq 0x83472(%rip), %rsi # 0xb8bbc
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x27686
leaq 0x7e08d(%rip), %rsi # 0xb37ed
leaq 0x68(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0x27686
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x68(%rsp), %rdx
callq 0x53cff
leaq 0x68(%rsp), %rdi
callq 0x241f8
leaq 0x8(%rsp), %rdi
callq 0x241f8
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x5503b
leaq 0x8(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x23ae0
movq %r14, %rdi
callq 0x241f8
leaq 0x28(%rsp), %rdi
callq 0x241f8
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
pushq $0x1
popq %rdi
callq 0x23ab0
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
jmp 0x357f3
jmp 0x3583a
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x276c2
jmp 0x3583d
jmp 0x3583a
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x276c2
jmp 0x35847
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x3acde
jmp 0x35847
jmp 0x3583a
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x241f8
jmp 0x3582e
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x241f8
jmp 0x3583d
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x241f8
movq %rbx, %rdi
callq 0x23fc0
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
jmp 0x35842
|
_ZL34common_params_handle_model_defaultRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS4_S5_S5_S7_S7_:
push r15
push r14
push r12
push rbx
sub rsp, 88h
mov rbx, rdi
cmp qword ptr [rdx+8], 0
jz short loc_355E0
mov r14, rcx
mov r15, rdx
cmp qword ptr [rcx+8], 0
jnz loc_35707
cmp qword ptr [rbx+8], 0
jz loc_356B8
mov rdi, r14
mov rsi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
jmp loc_35707
loc_355E0:
cmp qword ptr [rsi+8], 0
mov rax, [rbx+8]
jz loc_35696
test rax, rax
jnz loc_357C8
lea r14, [rsp+0A8h+var_A0]
push 23h ; '#'
pop rdx
mov rdi, r14
call _ZL12string_splitINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIT_SaIS7_EERKS5_c; string_split<std::string>(std::string const&,char)
mov rsi, [r14]
lea rdi, [rsp+0A8h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&)
lea rdi, [rsp+0A8h+var_A0]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rsp+0A8h+var_A0]
lea rsi, [rsp+0A8h+var_80]
push 3Fh ; '?'
pop rdx
call _ZL12string_splitINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIT_SaIS7_EERKS5_c; string_split<std::string>(std::string const&,char)
mov rsi, [rsp+0A8h+var_A0]
lea rdi, [rsp+0A8h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
lea rdi, [rsp+0A8h+var_A0]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rsp+0A8h+var_40]
lea rsi, [rsp+0A8h+var_80]
push 2Fh ; '/'
pop rdx
call _ZL12string_splitINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIT_SaIS7_EERKS5_c; string_split<std::string>(std::string const&,char)
mov rsi, [rsp+0A8h+var_38]
add rsi, 0FFFFFFFFFFFFFFE0h
lea rdi, [rsp+0A8h+var_A0]
call _Z17fs_get_cache_fileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; fs_get_cache_file(std::string const&)
lea r14, [rsp+0A8h+var_A0]
mov rdi, rbx
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, r14; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_40]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp loc_357BE
loc_35696:
test rax, rax
jnz loc_357C8
mov rdi, rbx
mov rsi, r9
add rsp, 88h
pop rbx
pop r12
pop r14
pop r15
jmp __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
loc_356B8:
lea r12, [rsp+0A8h+var_80]
mov rdi, r12
mov rsi, r15
mov rdx, r8
call _Z18common_get_hf_fileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_; common_get_hf_file(std::string const&,std::string const&)
cmp qword ptr [r12+8], 0
jz loc_357D7
cmp [rsp+0A8h+var_58], 0
jz loc_357D7
lea rsi, [rsp+0A8h+var_80]
mov rdi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
lea rsi, [rsp+0A8h+var_60]
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
lea rdi, [rsp+0A8h+var_80]; void *
call _ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ED2Ev; std::pair<std::string,std::string>::~pair()
loc_35707:
cmp qword ptr [rbx+8], 0
jnz loc_357C8
lea rdx, aCall911+8; "_"
lea r12, [rsp+0A8h+var_A0]
mov rdi, r12
mov rsi, r15
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_; std::operator+<char>(std::string const&,char const*)
lea rdi, [rsp+0A8h+var_80]
mov rsi, r12
mov rdx, r14
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_; std::operator+<char>(std::string&&,std::string const&)
lea rdi, [rsp+0A8h+var_A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rsi, asc_B8BBB+1; "/"
lea rdi, [rsp+0A8h+var_A0]
lea rdx, [rsp+0A8h+var_A1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rsi, aCall911+8; "_"
lea rdi, [rsp+0A8h+var_40]
lea rdx, [rsp+0A8h+var_A2]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+0A8h+var_80]
lea rsi, [rsp+0A8h+var_A0]
lea rdx, [rsp+0A8h+var_40]
call _Z18string_replace_allRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS4_S7_; string_replace_all(std::string &,std::string const&,std::string const&)
lea rdi, [rsp+0A8h+var_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_A0]
lea rsi, [rsp+0A8h+var_80]
call _Z17fs_get_cache_fileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; fs_get_cache_file(std::string const&)
lea r14, [rsp+0A8h+var_A0]
mov rdi, rbx
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, r14; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_357BE:
lea rdi, [rsp+0A8h+var_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_357C8:
add rsp, 88h
pop rbx
pop r12
pop r14
pop r15
retn
loc_357D7:
push 1
pop rdi
call _exit
mov rbx, rax
lea rdi, [rsp+0A8h+var_40]
jmp short loc_357F3
jmp short loc_3583A
mov rbx, rax
lea rdi, [rsp+0A8h+var_A0]
loc_357F3:
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp short loc_3583D
jmp short loc_3583A
mov rbx, rax
lea rdi, [rsp+0A8h+var_A0]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp short loc_35847
mov rbx, rax
lea rdi, [rsp+0A8h+var_80]; void *
call _ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ED2Ev; std::pair<std::string,std::string>::~pair()
jmp short loc_35847
jmp short loc_3583A
mov rbx, rax
lea rdi, [rsp+0A8h+var_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_3582E
mov rbx, rax
loc_3582E:
lea rdi, [rsp+0A8h+var_A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_3583D
loc_3583A:
mov rbx, rax
loc_3583D:
lea rdi, [rsp+0A8h+var_80]; void *
loc_35842:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_35847:
mov rdi, rbx
call __Unwind_Resume
mov rbx, rax
lea rdi, [rsp+0A8h+var_A0]
jmp short loc_35842
|
void common_params_handle_model_default(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6)
{
long long v8; // rax
int v9; // ecx
int v10; // r8d
int v11; // r9d
int v12; // ecx
int v13; // r8d
int v14; // r9d
int v15; // ecx
int v16; // r8d
int v17; // r9d
_QWORD v18[4]; // [rsp+8h] [rbp-A0h] BYREF
_BYTE v19[8]; // [rsp+28h] [rbp-80h] BYREF
long long v20; // [rsp+30h] [rbp-78h]
_BYTE v21[8]; // [rsp+48h] [rbp-60h] BYREF
long long v22; // [rsp+50h] [rbp-58h]
_QWORD v23[8]; // [rsp+68h] [rbp-40h] BYREF
if ( *(_QWORD *)(a3 + 8) )
{
if ( !*(_QWORD *)(a4 + 8) )
{
if ( *(_QWORD *)(a1 + 8) )
{
std::string::_M_assign(a4, a1);
}
else
{
common_get_hf_file(v19, a3, a5);
if ( !v20 || !v22 )
exit(1LL);
std::string::_M_assign(a3, v19);
std::string::_M_assign(a4, v21);
std::pair<std::string,std::string>::~pair(v19);
}
}
if ( !*(_QWORD *)(a1 + 8) )
{
std::operator+<char>(v18, a3, "_");
std::operator+<char>(v19, v18, a4);
std::string::~string(v18);
std::string::basic_string<std::allocator<char>>(v18, (long long)"/");
std::string::basic_string<std::allocator<char>>(v23, (long long)"_");
string_replace_all((unsigned int)v19, (unsigned int)v18, (unsigned int)v23, v15, v16, v17);
std::string::~string(v23);
std::string::~string(v18);
fs_get_cache_file(v18, v19);
std::string::operator=(a1, v18);
std::string::~string(v18);
LABEL_15:
std::string::~string(v19);
}
}
else
{
v8 = *(_QWORD *)(a1 + 8);
if ( *(_QWORD *)(a2 + 8) )
{
if ( v8 )
return;
string_split<std::string>((unsigned int)v18, a2, 35, a4, a5, a6);
std::string::basic_string(v19, v18[0]);
std::vector<std::string>::~vector((long long)v18);
string_split<std::string>((unsigned int)v18, (unsigned int)v19, 63, v9, v10, v11);
std::string::_M_assign(v19, v18[0]);
std::vector<std::string>::~vector((long long)v18);
string_split<std::string>((unsigned int)v23, (unsigned int)v19, 47, v12, v13, v14);
fs_get_cache_file(v18, v23[1] - 32LL);
std::string::operator=(a1, v18);
std::string::~string(v18);
std::vector<std::string>::~vector((long long)v23);
goto LABEL_15;
}
if ( !v8 )
std::string::_M_assign(a1, a6);
}
}
|
common_params_handle_model_default:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV RBX,RDI
CMP qword ptr [RDX + 0x8],0x0
JZ 0x001355e0
MOV R14,RCX
MOV R15,RDX
CMP qword ptr [RCX + 0x8],0x0
JNZ 0x00135707
CMP qword ptr [RBX + 0x8],0x0
JZ 0x001356b8
MOV RDI,R14
MOV RSI,RBX
CALL 0x001234e0
JMP 0x00135707
LAB_001355e0:
CMP qword ptr [RSI + 0x8],0x0
MOV RAX,qword ptr [RBX + 0x8]
JZ 0x00135696
TEST RAX,RAX
JNZ 0x001357c8
LEA R14,[RSP + 0x8]
PUSH 0x23
POP RDX
MOV RDI,R14
CALL 0x00135859
MOV RSI,qword ptr [R14]
LAB_0013560b:
LEA RDI,[RSP + 0x28]
CALL 0x00123c30
LEA RDI,[RSP + 0x8]
CALL 0x001276c2
LAB_0013561f:
LEA RDI,[RSP + 0x8]
LEA RSI,[RSP + 0x28]
PUSH 0x3f
POP RDX
CALL 0x00135859
MOV RSI,qword ptr [RSP + 0x8]
LAB_00135636:
LEA RDI,[RSP + 0x28]
CALL 0x001234e0
LEA RDI,[RSP + 0x8]
CALL 0x001276c2
LAB_0013564a:
LEA RDI,[RSP + 0x68]
LEA RSI,[RSP + 0x28]
PUSH 0x2f
POP RDX
CALL 0x00135859
MOV RSI,qword ptr [RSP + 0x70]
ADD RSI,-0x20
LAB_00135665:
LEA RDI,[RSP + 0x8]
CALL 0x0015503b
LAB_0013566f:
LEA R14,[RSP + 0x8]
MOV RDI,RBX
MOV RSI,R14
CALL 0x00123ae0
MOV RDI,R14
CALL 0x001241f8
LEA RDI,[RSP + 0x68]
CALL 0x001276c2
JMP 0x001357be
LAB_00135696:
TEST RAX,RAX
JNZ 0x001357c8
MOV RDI,RBX
MOV RSI,R9
ADD RSP,0x88
POP RBX
POP R12
POP R14
POP R15
JMP 0x001234e0
LAB_001356b8:
LEA R12,[RSP + 0x28]
MOV RDI,R12
MOV RSI,R15
MOV RDX,R8
CALL 0x0015631e
CMP qword ptr [R12 + 0x8],0x0
JZ 0x001357d7
CMP qword ptr [RSP + 0x50],0x0
JZ 0x001357d7
LAB_001356e3:
LEA RSI,[RSP + 0x28]
MOV RDI,R15
CALL 0x001234e0
LEA RSI,[RSP + 0x48]
MOV RDI,R14
CALL 0x001234e0
LAB_001356fd:
LEA RDI,[RSP + 0x28]
CALL 0x0013acde
LAB_00135707:
CMP qword ptr [RBX + 0x8],0x0
JNZ 0x001357c8
LEA RDX,[0x1b37ed]
LEA R12,[RSP + 0x8]
MOV RDI,R12
MOV RSI,R15
CALL 0x001384fb
LAB_00135729:
LEA RDI,[RSP + 0x28]
MOV RSI,R12
MOV RDX,R14
CALL 0x0013acf4
LEA RDI,[RSP + 0x8]
CALL 0x001241f8
LAB_00135743:
LEA RSI,[0x1b8bbc]
LEA RDI,[RSP + 0x8]
LEA RDX,[RSP + 0x7]
CALL 0x00127686
LAB_00135759:
LEA RSI,[0x1b37ed]
LEA RDI,[RSP + 0x68]
LEA RDX,[RSP + 0x6]
CALL 0x00127686
LAB_0013576f:
LEA RDI,[RSP + 0x28]
LEA RSI,[RSP + 0x8]
LEA RDX,[RSP + 0x68]
CALL 0x00153cff
LEA RDI,[RSP + 0x68]
CALL 0x001241f8
LEA RDI,[RSP + 0x8]
CALL 0x001241f8
LAB_00135797:
LEA RDI,[RSP + 0x8]
LEA RSI,[RSP + 0x28]
CALL 0x0015503b
LAB_001357a6:
LEA R14,[RSP + 0x8]
MOV RDI,RBX
MOV RSI,R14
CALL 0x00123ae0
MOV RDI,R14
CALL 0x001241f8
LAB_001357be:
LEA RDI,[RSP + 0x28]
CALL 0x001241f8
LAB_001357c8:
ADD RSP,0x88
POP RBX
POP R12
POP R14
POP R15
RET
LAB_001357d7:
PUSH 0x1
POP RDI
CALL 0x00123ab0
|
/* common_params_handle_model_default(std::__cxx11::string&, std::__cxx11::string const&,
std::__cxx11::string&, std::__cxx11::string&, std::__cxx11::string const&, std::__cxx11::string
const&) */
void common_params_handle_model_default
(string *param_1,string *param_2,string *param_3,string *param_4,string *param_5,
string *param_6)
{
allocator local_a2;
allocator local_a1;
string *local_a0 [4];
string local_80 [8];
long local_78;
long local_58;
string local_40 [32];
if (*(long *)(param_3 + 8) == 0) {
if (*(long *)(param_2 + 8) == 0) {
if (*(long *)(param_1 + 8) != 0) {
return;
}
std::__cxx11::string::_M_assign(param_1);
return;
}
if (*(long *)(param_1 + 8) != 0) {
return;
}
string_split<std::__cxx11::string>((string *)local_a0,(char)param_2);
/* try { // try from 0013560b to 00135614 has its CatchHandler @ 001357fc */
std::__cxx11::string::string(local_80,local_a0[0]);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_a0);
/* try { // try from 0013561f to 00135630 has its CatchHandler @ 001357fa */
string_split<std::__cxx11::string>((string *)local_a0,(char)local_80);
/* try { // try from 00135636 to 0013563f has its CatchHandler @ 001357eb */
std::__cxx11::string::_M_assign(local_80);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_a0);
/* try { // try from 0013564a to 0013565b has its CatchHandler @ 001357e9 */
string_split<std::__cxx11::string>(local_40,(char)local_80);
/* try { // try from 00135665 to 0013566e has its CatchHandler @ 001357df */
fs_get_cache_file((string *)local_a0);
std::__cxx11::string::operator=(param_1,(string *)local_a0);
std::__cxx11::string::~string((string *)local_a0);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_40);
}
else {
if (*(long *)(param_4 + 8) == 0) {
if (*(long *)(param_1 + 8) == 0) {
common_get_hf_file(local_80,param_3);
if ((local_78 == 0) || (local_58 == 0)) {
/* WARNING: Subroutine does not return */
exit(1);
}
/* try { // try from 001356e3 to 001356fc has its CatchHandler @ 0013580b */
std::__cxx11::string::_M_assign(param_3);
std::__cxx11::string::_M_assign(param_4);
std::pair<std::__cxx11::string,std::__cxx11::string>::~pair
((pair<std::__cxx11::string,std::__cxx11::string> *)local_80);
}
else {
std::__cxx11::string::_M_assign(param_4);
}
}
if (*(long *)(param_1 + 8) != 0) {
return;
}
std::operator+((string *)local_a0,(char *)param_3);
/* try { // try from 00135729 to 00135738 has its CatchHandler @ 0013584f */
std::operator+(local_80,(string *)local_a0);
std::__cxx11::string::~string((string *)local_a0);
/* try { // try from 00135743 to 00135758 has its CatchHandler @ 0013583a */
std::__cxx11::string::string<std::allocator<char>>((string *)local_a0,"/",&local_a1);
/* try { // try from 00135759 to 0013576e has its CatchHandler @ 0013582b */
std::__cxx11::string::string<std::allocator<char>>(local_40,"_",&local_a2);
/* try { // try from 0013576f to 00135782 has its CatchHandler @ 0013581c */
string_replace_all(local_80,(string *)local_a0,local_40);
std::__cxx11::string::~string(local_40);
std::__cxx11::string::~string((string *)local_a0);
/* try { // try from 00135797 to 001357a5 has its CatchHandler @ 0013581a */
fs_get_cache_file((string *)local_a0);
std::__cxx11::string::operator=(param_1,(string *)local_a0);
std::__cxx11::string::~string((string *)local_a0);
}
std::__cxx11::string::~string(local_80);
return;
}
|
|
59,633
|
mysql_set_character_set
|
eloqsql/libmariadb/libmariadb/mariadb_lib.c
|
int STDCALL mysql_set_character_set(MYSQL *mysql, const char *csname)
{
const MARIADB_CHARSET_INFO *cs;
if (!csname)
goto error;
if ((cs= mysql_find_charset_name(csname)))
{
char buff[64];
snprintf(buff, 63, "SET NAMES %s", cs->csname);
if (!mysql_real_query(mysql, buff, (unsigned long)strlen(buff)))
{
mysql->charset= cs;
return(0);
}
return(mysql->net.last_errno);
}
error:
my_set_error(mysql, CR_CANT_READ_CHARSET, SQLSTATE_UNKNOWN,
0, csname, "compiled_in");
return(mysql->net.last_errno);
}
|
O0
|
c
|
mysql_set_character_set:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x60(%rbp)
movq %rsi, -0x68(%rbp)
cmpq $0x0, -0x68(%rbp)
jne 0x380fc
jmp 0x38185
movq -0x68(%rbp), %rdi
callq 0x5e740
movq %rax, -0x70(%rbp)
cmpq $0x0, %rax
je 0x38183
leaq -0x50(%rbp), %rdi
movq -0x70(%rbp), %rax
movq 0x8(%rax), %rcx
movl $0x3f, %esi
leaq 0x32eb5(%rip), %rdx # 0x6afdc
movb $0x0, %al
callq 0x146e0
movq -0x60(%rbp), %rax
movq %rax, -0x80(%rbp)
leaq -0x50(%rbp), %rax
movq %rax, -0x78(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x141a0
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rsi
movq %rax, %rdx
callq 0x377f0
cmpl $0x0, %eax
jne 0x38174
movq -0x70(%rbp), %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x2f0(%rax)
movl $0x0, -0x54(%rbp)
jmp 0x381bb
movq -0x60(%rbp), %rax
movl 0x90(%rax), %eax
movl %eax, -0x54(%rbp)
jmp 0x381bb
jmp 0x38185
movq -0x60(%rbp), %rdi
leaq 0x48d10(%rip), %rax # 0x80ea0
movq (%rax), %rdx
movq -0x68(%rbp), %r8
movl $0x7e3, %esi # imm = 0x7E3
xorl %eax, %eax
movl %eax, %ecx
leaq 0x32d69(%rip), %r9 # 0x6af10
movb $0x0, %al
callq 0x307d0
movq -0x60(%rbp), %rax
movl 0x90(%rax), %eax
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %eax
movl %eax, -0x84(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x381e5
movl -0x84(%rbp), %eax
addq $0x90, %rsp
popq %rbp
retq
callq 0x144c0
nopw (%rax,%rax)
|
mysql_set_character_set:
push rbp
mov rbp, rsp
sub rsp, 90h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_60], rdi
mov [rbp+var_68], rsi
cmp [rbp+var_68], 0
jnz short loc_380FC
jmp loc_38185
loc_380FC:
mov rdi, [rbp+var_68]
call mysql_find_charset_name
mov [rbp+var_70], rax
cmp rax, 0
jz short loc_38183
lea rdi, [rbp+var_50]
mov rax, [rbp+var_70]
mov rcx, [rax+8]
mov esi, 3Fh ; '?'
lea rdx, aSetNamesS; "SET NAMES %s"
mov al, 0
call _snprintf
mov rax, [rbp+var_60]
mov [rbp+var_80], rax
lea rax, [rbp+var_50]
mov [rbp+var_78], rax
lea rdi, [rbp+var_50]
call _strlen
mov rdi, [rbp+var_80]
mov rsi, [rbp+var_78]
mov rdx, rax
call mysql_real_query
cmp eax, 0
jnz short loc_38174
mov rcx, [rbp+var_70]
mov rax, [rbp+var_60]
mov [rax+2F0h], rcx
mov [rbp+var_54], 0
jmp short loc_381BB
loc_38174:
mov rax, [rbp+var_60]
mov eax, [rax+90h]
mov [rbp+var_54], eax
jmp short loc_381BB
loc_38183:
jmp short $+2
loc_38185:
mov rdi, [rbp+var_60]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
mov r8, [rbp+var_68]
mov esi, 7E3h
xor eax, eax
mov ecx, eax
lea r9, aCompiledIn; "compiled_in"
mov al, 0
call my_set_error
mov rax, [rbp+var_60]
mov eax, [rax+90h]
mov [rbp+var_54], eax
loc_381BB:
mov eax, [rbp+var_54]
mov [rbp+var_84], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_381E5
mov eax, [rbp+var_84]
add rsp, 90h
pop rbp
retn
loc_381E5:
call ___stack_chk_fail
|
long long mysql_set_character_set(long long a1, long long a2)
{
long long v2; // rax
long long charset_name; // [rsp+20h] [rbp-70h]
_BYTE v6[72]; // [rsp+40h] [rbp-50h] BYREF
unsigned long long v7; // [rsp+88h] [rbp-8h]
v7 = __readfsqword(0x28u);
if ( a2 && (charset_name = mysql_find_charset_name(a2)) != 0 )
{
snprintf(v6, 63LL, "SET NAMES %s", *(const char **)(charset_name + 8));
v2 = strlen(v6);
if ( (unsigned int)mysql_real_query(a1, (long long)v6, v2) )
{
return *(unsigned int *)(a1 + 144);
}
else
{
*(_QWORD *)(a1 + 752) = charset_name;
return 0;
}
}
else
{
my_set_error(a1, 0x7E3u, (long long)SQLSTATE_UNKNOWN, 0LL, a2, "compiled_in");
return *(unsigned int *)(a1 + 144);
}
}
|
mysql_set_character_set:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x60],RDI
MOV qword ptr [RBP + -0x68],RSI
CMP qword ptr [RBP + -0x68],0x0
JNZ 0x001380fc
JMP 0x00138185
LAB_001380fc:
MOV RDI,qword ptr [RBP + -0x68]
CALL 0x0015e740
MOV qword ptr [RBP + -0x70],RAX
CMP RAX,0x0
JZ 0x00138183
LEA RDI,[RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x70]
MOV RCX,qword ptr [RAX + 0x8]
MOV ESI,0x3f
LEA RDX,[0x16afdc]
MOV AL,0x0
CALL 0x001146e0
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RBP + -0x80],RAX
LEA RAX,[RBP + -0x50]
MOV qword ptr [RBP + -0x78],RAX
LEA RDI,[RBP + -0x50]
CALL 0x001141a0
MOV RDI,qword ptr [RBP + -0x80]
MOV RSI,qword ptr [RBP + -0x78]
MOV RDX,RAX
CALL 0x001377f0
CMP EAX,0x0
JNZ 0x00138174
MOV RCX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0x2f0],RCX
MOV dword ptr [RBP + -0x54],0x0
JMP 0x001381bb
LAB_00138174:
MOV RAX,qword ptr [RBP + -0x60]
MOV EAX,dword ptr [RAX + 0x90]
MOV dword ptr [RBP + -0x54],EAX
JMP 0x001381bb
LAB_00138183:
JMP 0x00138185
LAB_00138185:
MOV RDI,qword ptr [RBP + -0x60]
LEA RAX,[0x180ea0]
MOV RDX,qword ptr [RAX]
MOV R8,qword ptr [RBP + -0x68]
MOV ESI,0x7e3
XOR EAX,EAX
MOV ECX,EAX
LEA R9,[0x16af10]
MOV AL,0x0
CALL 0x001307d0
MOV RAX,qword ptr [RBP + -0x60]
MOV EAX,dword ptr [RAX + 0x90]
MOV dword ptr [RBP + -0x54],EAX
LAB_001381bb:
MOV EAX,dword ptr [RBP + -0x54]
MOV dword ptr [RBP + -0x84],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001381e5
MOV EAX,dword ptr [RBP + -0x84]
ADD RSP,0x90
POP RBP
RET
LAB_001381e5:
CALL 0x001144c0
|
int4 mysql_set_character_set(long param_1,long param_2)
{
int iVar1;
long lVar2;
size_t sVar3;
long in_FS_OFFSET;
int4 local_5c;
char local_58 [72];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
if ((param_2 == 0) || (lVar2 = mysql_find_charset_name(param_2), lVar2 == 0)) {
my_set_error(param_1,0x7e3,SQLSTATE_UNKNOWN,0,param_2,"compiled_in");
local_5c = *(int4 *)(param_1 + 0x90);
}
else {
snprintf(local_58,0x3f,"SET NAMES %s",*(int8 *)(lVar2 + 8));
sVar3 = strlen(local_58);
iVar1 = mysql_real_query(param_1,local_58,sVar3);
if (iVar1 == 0) {
*(long *)(param_1 + 0x2f0) = lVar2;
local_5c = 0;
}
else {
local_5c = *(int4 *)(param_1 + 0x90);
}
}
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_5c;
}
|
|
59,634
|
wt_resource_init
|
eloqsql/mysys/waiting_threads.c
|
static void wt_resource_init(LF_HASH *hash __attribute__((unused)),
WT_RESOURCE *rc, WT_RESOURCE_ID *id)
{
DBUG_ENTER("wt_resource_init");
rc->id= *id;
rc->waiter_count= 0;
rc->state= ACTIVE;
#ifndef DBUG_OFF
rc->cond_mutex= 0;
#endif
DBUG_VOID_RETURN;
}
|
O3
|
c
|
wt_resource_init:
pushq %rbp
movq %rsp, %rbp
movups (%rdx), %xmm0
movups %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
popq %rbp
retq
|
wt_resource_init:
push rbp
mov rbp, rsp
movups xmm0, xmmword ptr [rdx]
movups xmmword ptr [rsi], xmm0
mov qword ptr [rsi+10h], 0
pop rbp
retn
|
void wt_resource_init(long long a1, long long a2, _OWORD *a3)
{
*(_OWORD *)a2 = *a3;
*(_QWORD *)(a2 + 16) = 0LL;
}
|
wt_resource_init:
PUSH RBP
MOV RBP,RSP
MOVUPS XMM0,xmmword ptr [RDX]
MOVUPS xmmword ptr [RSI],XMM0
MOV qword ptr [RSI + 0x10],0x0
POP RBP
RET
|
void wt_resource_init(int8 param_1,int8 *param_2,int8 *param_3)
{
int8 uVar1;
uVar1 = param_3[1];
*param_2 = *param_3;
param_2[1] = uVar1;
param_2[2] = 0;
return;
}
|
|
59,635
|
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;
}
|
O0
|
c
|
mi_check_index_tuple:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movl $0x1, -0x24(%rbp)
movl $0x1, -0x28(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x340(%rax)
je 0xafb1e
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movq -0x20(%rbp), %rdx
callq 0xafba0
cmpl $0x0, %eax
je 0xafacd
movl $0xffffffff, -0x28(%rbp) # imm = 0xFFFFFFFF
jmp 0xafb09
movq -0x10(%rbp), %rax
movq 0x340(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x348(%rcx), %rdi
callq *%rax
movl %eax, -0x28(%rbp)
cmpl $0x2, %eax
jne 0xafb07
movq -0x10(%rbp), %rax
movq $-0x1, 0x170(%rax)
callq 0xf6090
movl $0x89, (%rax)
jmp 0xafb09
cmpl $0x1, -0x28(%rbp)
je 0xafb17
movl -0x28(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0xafb94
movl $0x0, -0x24(%rbp)
movq -0x10(%rbp), %rdi
callq 0xafc20
cmpl $0x0, %eax
je 0xafb8e
cmpl $0x0, -0x24(%rbp)
je 0xafb50
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movq -0x20(%rbp), %rdx
callq 0xafba0
cmpl $0x0, %eax
je 0xafb50
movl $0xffffffff, -0x28(%rbp) # imm = 0xFFFFFFFF
jmp 0xafb8c
movq -0x10(%rbp), %rax
movq 0x350(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x360(%rcx), %rdi
callq *%rax
movl %eax, -0x28(%rbp)
cmpl $0x2, %eax
jne 0xafb8a
movq -0x10(%rbp), %rax
movq $-0x1, 0x170(%rax)
callq 0xf6090
movl $0x89, (%rax)
jmp 0xafb8c
jmp 0xafb8e
movl -0x28(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
|
mi_check_index_tuple:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_20], rdx
mov [rbp+var_24], 1
mov [rbp+var_28], 1
mov rax, [rbp+var_10]
cmp qword ptr [rax+340h], 0
jz short loc_AFB1E
mov rdi, [rbp+var_10]
mov esi, [rbp+var_14]
mov rdx, [rbp+var_20]
call mi_unpack_index_tuple
cmp eax, 0
jz short loc_AFACD
mov [rbp+var_28], 0FFFFFFFFh
jmp short loc_AFB09
loc_AFACD:
mov rax, [rbp+var_10]
mov rax, [rax+340h]
mov rcx, [rbp+var_10]
mov rdi, [rcx+348h]
call rax
mov [rbp+var_28], eax
cmp eax, 2
jnz short loc_AFB07
mov rax, [rbp+var_10]
mov qword ptr [rax+170h], 0FFFFFFFFFFFFFFFFh
call _my_thread_var
mov dword ptr [rax], 89h
loc_AFB07:
jmp short $+2
loc_AFB09:
cmp [rbp+var_28], 1
jz short loc_AFB17
mov eax, [rbp+var_28]
mov [rbp+var_4], eax
jmp short loc_AFB94
loc_AFB17:
mov [rbp+var_24], 0
loc_AFB1E:
mov rdi, [rbp+var_10]
call mi_check_rowid_filter_is_active
cmp eax, 0
jz short loc_AFB8E
cmp [rbp+var_24], 0
jz short loc_AFB50
mov rdi, [rbp+var_10]
mov esi, [rbp+var_14]
mov rdx, [rbp+var_20]
call mi_unpack_index_tuple
cmp eax, 0
jz short loc_AFB50
mov [rbp+var_28], 0FFFFFFFFh
jmp short loc_AFB8C
loc_AFB50:
mov rax, [rbp+var_10]
mov rax, [rax+350h]
mov rcx, [rbp+var_10]
mov rdi, [rcx+360h]
call rax
mov [rbp+var_28], eax
cmp eax, 2
jnz short loc_AFB8A
mov rax, [rbp+var_10]
mov qword ptr [rax+170h], 0FFFFFFFFFFFFFFFFh
call _my_thread_var
mov dword ptr [rax], 89h
loc_AFB8A:
jmp short $+2
loc_AFB8C:
jmp short $+2
loc_AFB8E:
mov eax, [rbp+var_28]
mov [rbp+var_4], eax
loc_AFB94:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
|
long long mi_check_index_tuple(long long a1, const char *a2, long long a3)
{
long long v3; // rdi
long long v4; // rdi
unsigned int v6; // [rsp+8h] [rbp-28h]
int v7; // [rsp+Ch] [rbp-24h]
v7 = 1;
v6 = 1;
if ( *(_QWORD *)(a1 + 832) )
{
a2 = (const char *)(unsigned int)a2;
if ( (unsigned int)mi_unpack_index_tuple(a1, (unsigned int)a2, a3) )
{
v6 = -1;
}
else
{
v3 = *(_QWORD *)(a1 + 840);
v6 = (*(long long ( **)(long long))(a1 + 832))(v3);
if ( v6 == 2 )
{
*(_QWORD *)(a1 + 368) = -1LL;
*(_DWORD *)my_thread_var(v3, (const char *)(unsigned int)a2) = 137;
}
}
if ( v6 != 1 )
return v6;
v7 = 0;
}
if ( (unsigned int)mi_check_rowid_filter_is_active(a1) )
{
if ( v7 && (a2 = (const char *)(unsigned int)a2, (unsigned int)mi_unpack_index_tuple(a1, (unsigned int)a2, a3)) )
{
return (unsigned int)-1;
}
else
{
v4 = *(_QWORD *)(a1 + 864);
v6 = (*(long long ( **)(long long))(a1 + 848))(v4);
if ( v6 == 2 )
{
*(_QWORD *)(a1 + 368) = -1LL;
*(_DWORD *)my_thread_var(v4, a2) = 137;
}
}
}
return v6;
}
|
mi_check_index_tuple:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV qword ptr [RBP + -0x20],RDX
MOV dword ptr [RBP + -0x24],0x1
MOV dword ptr [RBP + -0x28],0x1
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x340],0x0
JZ 0x001afb1e
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x14]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x001afba0
CMP EAX,0x0
JZ 0x001afacd
MOV dword ptr [RBP + -0x28],0xffffffff
JMP 0x001afb09
LAB_001afacd:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x340]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RCX + 0x348]
CALL RAX
MOV dword ptr [RBP + -0x28],EAX
CMP EAX,0x2
JNZ 0x001afb07
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x170],-0x1
CALL 0x001f6090
MOV dword ptr [RAX],0x89
LAB_001afb07:
JMP 0x001afb09
LAB_001afb09:
CMP dword ptr [RBP + -0x28],0x1
JZ 0x001afb17
MOV EAX,dword ptr [RBP + -0x28]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001afb94
LAB_001afb17:
MOV dword ptr [RBP + -0x24],0x0
LAB_001afb1e:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001afc20
CMP EAX,0x0
JZ 0x001afb8e
CMP dword ptr [RBP + -0x24],0x0
JZ 0x001afb50
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x14]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x001afba0
CMP EAX,0x0
JZ 0x001afb50
MOV dword ptr [RBP + -0x28],0xffffffff
JMP 0x001afb8c
LAB_001afb50:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x350]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RCX + 0x360]
CALL RAX
MOV dword ptr [RBP + -0x28],EAX
CMP EAX,0x2
JNZ 0x001afb8a
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x170],-0x1
CALL 0x001f6090
MOV dword ptr [RAX],0x89
LAB_001afb8a:
JMP 0x001afb8c
LAB_001afb8c:
JMP 0x001afb8e
LAB_001afb8e:
MOV EAX,dword ptr [RBP + -0x28]
MOV dword ptr [RBP + -0x4],EAX
LAB_001afb94:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int mi_check_index_tuple(long param_1,int4 param_2,int8 param_3)
{
bool bVar1;
int iVar2;
int4 *puVar3;
int local_30;
bVar1 = true;
local_30 = 1;
if (*(long *)(param_1 + 0x340) != 0) {
iVar2 = mi_unpack_index_tuple(param_1,param_2,param_3);
if (iVar2 == 0) {
local_30 = (**(code **)(param_1 + 0x340))(*(int8 *)(param_1 + 0x348));
if (local_30 == 2) {
*(int8 *)(param_1 + 0x170) = 0xffffffffffffffff;
puVar3 = (int4 *)_my_thread_var();
*puVar3 = 0x89;
}
}
else {
local_30 = -1;
}
if (local_30 != 1) {
return local_30;
}
bVar1 = false;
}
iVar2 = mi_check_rowid_filter_is_active(param_1);
if (iVar2 != 0) {
if ((bVar1) && (iVar2 = mi_unpack_index_tuple(param_1,param_2,param_3), iVar2 != 0)) {
local_30 = -1;
}
else {
local_30 = (**(code **)(param_1 + 0x350))(*(int8 *)(param_1 + 0x360));
if (local_30 == 2) {
*(int8 *)(param_1 + 0x170) = 0xffffffffffffffff;
puVar3 = (int4 *)_my_thread_var();
*puVar3 = 0x89;
}
}
}
return local_30;
}
|
|
59,636
|
get_digit
|
bluesky950520[P]quickjs/libbf.c
|
static limb_t get_digit(const limb_t *tab, limb_t len, slimb_t pos)
{
slimb_t i;
int shift;
i = floor_div(pos, LIMB_DIGITS);
if (i < 0 || i >= len)
return 0;
shift = pos - i * LIMB_DIGITS;
return fast_shr_dec(tab[i], shift) % 10;
}
|
O1
|
c
|
get_digit:
movq %rdx, %rcx
testq %rdx, %rdx
js 0x8eee8
movabsq $-0x286bca1af286bca1, %rdx # imm = 0xD79435E50D79435F
movq %rcx, %rax
mulq %rdx
shrq $0x4, %rdx
jmp 0x8ef03
leaq -0x12(%rcx), %rax
movabsq $0xd79435e50d79436, %rdx # imm = 0xD79435E50D79436
imulq %rdx
movq %rdx, %rax
shrq $0x3f, %rdx
addq %rax, %rdx
testq %rdx, %rdx
sets %al
cmpq %rsi, %rdx
setae %sil
orb %al, %sil
jne 0x8ef6a
imull $-0x13, %edx, %eax
addl %eax, %ecx
movq (%rdi,%rdx,8), %rsi
movslq %ecx, %rdi
shlq $0x4, %rdi
leaq 0x128f4(%rip), %r8 # 0xa1820
movq %rsi, %rax
mulq (%rdi,%r8)
subq %rdx, %rsi
movb 0x8(%rdi,%r8), %cl
shrq %cl, %rsi
movb 0x9(%rdi,%r8), %cl
addq %rdx, %rsi
shrq %cl, %rsi
movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD
movq %rsi, %rax
mulq %rcx
shrq $0x2, %rdx
andq $-0x2, %rdx
leaq (%rdx,%rdx,4), %rax
subq %rax, %rsi
jmp 0x8ef6c
xorl %esi, %esi
movq %rsi, %rax
retq
|
get_digit:
mov rcx, rdx
test rdx, rdx
js short loc_8EEE8
mov rdx, 0D79435E50D79435Fh
mov rax, rcx
mul rdx
shr rdx, 4
jmp short loc_8EF03
loc_8EEE8:
lea rax, [rcx-12h]
mov rdx, 0D79435E50D79436h
imul rdx
mov rax, rdx
shr rdx, 3Fh
add rdx, rax
loc_8EF03:
test rdx, rdx
sets al
cmp rdx, rsi
setnb sil
or sil, al
jnz short loc_8EF6A
imul eax, edx, -13h
add ecx, eax
mov rsi, [rdi+rdx*8]
movsxd rdi, ecx
shl rdi, 4
lea r8, mp_pow_div
mov rax, rsi
mul qword ptr [rdi+r8]
sub rsi, rdx
mov cl, [rdi+r8+8]
shr rsi, cl
mov cl, [rdi+r8+9]
add rsi, rdx
shr rsi, cl
mov rcx, 0CCCCCCCCCCCCCCCDh
mov rax, rsi
mul rcx
shr rdx, 2
and rdx, 0FFFFFFFFFFFFFFFEh
lea rax, [rdx+rdx*4]
sub rsi, rax
jmp short loc_8EF6C
loc_8EF6A:
xor esi, esi
loc_8EF6C:
mov rax, rsi
retn
|
unsigned long long get_digit(long long a1, unsigned long long a2, long long a3)
{
int v3; // ecx
long long v4; // rdx
unsigned long long v5; // rsi
long long v6; // rdi
long long v7; // rdx
unsigned long long v8; // rsi
v3 = a3;
if ( a3 < 0 )
v4 = (a3 - 18) / 19;
else
v4 = a3 / 0x13uLL;
if ( v4 < 0 || v4 >= a2 )
return 0LL;
v5 = *(_QWORD *)(a1 + 8 * v4);
v6 = 16LL * (-19 * (int)v4 + v3);
v7 = (*(unsigned long long *)&mp_pow_div[v6] * (unsigned __int128)v5) >> 64;
v8 = (v7 + ((v5 - v7) >> mp_pow_div[v6 + 8])) >> mp_pow_div[v6 + 9];
return v8 - 5 * ((v8 / 5) & 0xFFFFFFFFFFFFFFFELL);
}
|
get_digit:
MOV RCX,RDX
TEST RDX,RDX
JS 0x0018eee8
MOV RDX,-0x286bca1af286bca1
MOV RAX,RCX
MUL RDX
SHR RDX,0x4
JMP 0x0018ef03
LAB_0018eee8:
LEA RAX,[RCX + -0x12]
MOV RDX,0xd79435e50d79436
IMUL RDX
MOV RAX,RDX
SHR RDX,0x3f
ADD RDX,RAX
LAB_0018ef03:
TEST RDX,RDX
SETS AL
CMP RDX,RSI
SETNC SIL
OR SIL,AL
JNZ 0x0018ef6a
IMUL EAX,EDX,-0x13
ADD ECX,EAX
MOV RSI,qword ptr [RDI + RDX*0x8]
MOVSXD RDI,ECX
SHL RDI,0x4
LEA R8,[0x1a1820]
MOV RAX,RSI
MUL qword ptr [RDI + R8*0x1]
SUB RSI,RDX
MOV CL,byte ptr [RDI + R8*0x1 + 0x8]
SHR RSI,CL
MOV CL,byte ptr [RDI + R8*0x1 + 0x9]
ADD RSI,RDX
SHR RSI,CL
MOV RCX,-0x3333333333333333
MOV RAX,RSI
MUL RCX
SHR RDX,0x2
AND RDX,-0x2
LEA RAX,[RDX + RDX*0x4]
SUB RSI,RAX
JMP 0x0018ef6c
LAB_0018ef6a:
XOR ESI,ESI
LAB_0018ef6c:
MOV RAX,RSI
RET
|
long get_digit(long param_1,ulong param_2,ulong param_3)
{
ulong uVar1;
int1 auVar2 [16];
int1 auVar3 [16];
ulong uVar4;
long lVar5;
long lVar6;
if ((long)param_3 < 0) {
uVar4 = (long)(param_3 - 0x12) / 0x13;
}
else {
uVar4 = param_3 / 0x13;
}
if (uVar4 < param_2 && -1 < (long)uVar4) {
uVar1 = *(ulong *)(param_1 + uVar4 * 8);
lVar6 = (long)((int)param_3 + (int)uVar4 * -0x13) * 0x10;
auVar2._8_8_ = 0;
auVar2._0_8_ = uVar1;
auVar3._8_8_ = 0;
auVar3._0_8_ = *(ulong *)(mp_pow_div + lVar6);
lVar5 = SUB168(auVar2 * auVar3,8);
uVar4 = (uVar1 - lVar5 >> (mp_pow_div[lVar6 + 8] & 0x3f)) + lVar5 >>
(mp_pow_div[lVar6 + 9] & 0x3f);
lVar5 = uVar4 + (uVar4 / 5 & 0xfffffffffffffffe) * -5;
}
else {
lVar5 = 0;
}
return lVar5;
}
|
|
59,637
|
my_strdup
|
eloqsql/mysys/my_malloc.c
|
char *my_strdup(PSI_memory_key key, const char *from, myf my_flags)
{
char *ptr;
size_t length= strlen(from)+1;
DBUG_ENTER("my_strdup");
if ((ptr= (char*) my_malloc(key, length, my_flags)))
memcpy(ptr, from, length);
DBUG_RETURN(ptr);
}
|
O3
|
c
|
my_strdup:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r15
movq %rsi, %rbx
movl %edi, %r12d
movq %rsi, %rdi
callq 0x37410
movq %rax, %r14
incq %r14
movl %r12d, %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0x6b029
testq %rax, %rax
je 0x6b337
movq %rax, %rdi
movq %rbx, %rsi
movq %r14, %rdx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x370a0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
my_strdup:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov r15, rdx
mov rbx, rsi
mov r12d, edi
mov rdi, rsi
call _strlen
mov r14, rax
inc r14
mov edi, r12d
mov rsi, r14
mov rdx, r15
call my_malloc
test rax, rax
jz short loc_6B337
mov rdi, rax
mov rsi, rbx
mov rdx, r14
pop rbx
pop r12
pop r14
pop r15
pop rbp
jmp _memcpy
loc_6B337:
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
|
void my_strdup(unsigned int a1, long long a2, int a3)
{
unsigned long long v4; // r14
long long v5; // rax
v4 = strlen(a2) + 1;
my_malloc(a1, v4, a3);
if ( v5 )
memcpy(v5, a2, v4);
}
|
my_strdup:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R15,RDX
MOV RBX,RSI
MOV R12D,EDI
MOV RDI,RSI
CALL 0x00137410
MOV R14,RAX
INC R14
MOV EDI,R12D
MOV RSI,R14
MOV RDX,R15
CALL 0x0016b029
TEST RAX,RAX
JZ 0x0016b337
MOV RDI,RAX
MOV RSI,RBX
MOV RDX,R14
POP RBX
POP R12
POP R14
POP R15
POP RBP
JMP 0x001370a0
LAB_0016b337:
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
void my_strdup(int4 param_1,char *param_2,int8 param_3)
{
size_t sVar1;
void *__dest;
sVar1 = strlen(param_2);
__dest = (void *)my_malloc(param_1,sVar1 + 1,param_3);
if (__dest != (void *)0x0) {
memcpy(__dest,param_2,sVar1 + 1);
return;
}
return;
}
|
|
59,638
|
ma_ft_segiterator_dummy_init
|
eloqsql/storage/maria/ma_ft_update.c
|
void _ma_ft_segiterator_dummy_init(const uchar *record, uint len,
FT_SEG_ITERATOR *ftsi)
{
DBUG_ENTER("_ma_ft_segiterator_dummy_init");
ftsi->num=1;
ftsi->seg=0;
ftsi->pos=record;
ftsi->len=len;
DBUG_VOID_RETURN;
}
|
O3
|
c
|
ma_ft_segiterator_dummy_init:
pushq %rbp
movq %rsp, %rbp
movl $0x1, (%rdx)
movq $0x0, 0x8(%rdx)
movq %rdi, 0x18(%rdx)
movl %esi, 0x4(%rdx)
popq %rbp
retq
|
_ma_ft_segiterator_dummy_init:
push rbp
mov rbp, rsp
mov dword ptr [rdx], 1
mov qword ptr [rdx+8], 0
mov [rdx+18h], rdi
mov [rdx+4], esi
pop rbp
retn
|
void ma_ft_segiterator_dummy_init(long long a1, int a2, long long a3)
{
*(_DWORD *)a3 = 1;
*(_QWORD *)(a3 + 8) = 0LL;
*(_QWORD *)(a3 + 24) = a1;
*(_DWORD *)(a3 + 4) = a2;
}
|
_ma_ft_segiterator_dummy_init:
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RDX],0x1
MOV qword ptr [RDX + 0x8],0x0
MOV qword ptr [RDX + 0x18],RDI
MOV dword ptr [RDX + 0x4],ESI
POP RBP
RET
|
void _ma_ft_segiterator_dummy_init(int8 param_1,int4 param_2,int4 *param_3)
{
*param_3 = 1;
*(int8 *)(param_3 + 2) = 0;
*(int8 *)(param_3 + 6) = param_1;
param_3[1] = param_2;
return;
}
|
|
59,639
|
maria_rtree_pick_key
|
eloqsql/storage/maria/ma_rt_index.c
|
static const uchar *maria_rtree_pick_key(const MARIA_KEY *key,
const MARIA_PAGE *page)
{
const MARIA_HA *info= page->info;
MARIA_SHARE *share= info->s;
double increase;
double best_incr= DBL_MAX;
double area;
double UNINIT_VAR(best_area);
const uchar *best_key= NULL;
const uchar *k= rt_PAGE_FIRST_KEY(share, page->buff, page->node);
const uchar *last= rt_PAGE_END(page);
for (; k < last;
k= rt_PAGE_NEXT_KEY(share, k, key->data_length, page->node))
{
/* The following is safe as -1.0 is an exact number */
if ((increase= maria_rtree_area_increase(key->keyinfo->seg, k, key->data,
key->data_length +
key->ref_length,
&area)) == -1.0)
return NULL;
/* The following should be safe, even if we compare doubles */
if (!best_key || increase < best_incr ||
((increase == best_incr) && (area < best_area)))
{
best_key= k;
best_area= area;
best_incr= increase;
}
}
return best_key;
}
|
O0
|
c
|
maria_rtree_pick_key:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movsd 0xc88ba(%rip), %xmm0 # 0x159f58
movsd %xmm0, -0x38(%rbp)
movsd -0x48(%rbp), %xmm0
movsd %xmm0, -0x48(%rbp)
movq $0x0, -0x50(%rbp)
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x28(%rbp), %rcx
movl 0x744(%rcx), %ecx
addq %rcx, %rax
movq -0x18(%rbp), %rcx
movl 0x28(%rcx), %ecx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x18(%rbp), %rcx
movl 0x20(%rcx), %ecx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
movq -0x58(%rbp), %rax
cmpq -0x60(%rbp), %rax
jae 0x917ec
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0xc0(%rax), %rdi
movq -0x58(%rbp), %rsi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
movq -0x10(%rbp), %rax
movl 0x10(%rax), %ecx
movq -0x10(%rbp), %rax
addl 0x14(%rax), %ecx
leaq -0x40(%rbp), %r8
callq 0x97260
movsd %xmm0, -0x30(%rbp)
movsd 0xc8826(%rip), %xmm1 # 0x159f60
ucomisd %xmm1, %xmm0
jne 0x9174f
jp 0x9174f
movq $0x0, -0x8(%rbp)
jmp 0x917f4
cmpq $0x0, -0x50(%rbp)
je 0x91784
movsd -0x30(%rbp), %xmm1
movsd -0x38(%rbp), %xmm0
ucomisd %xmm1, %xmm0
ja 0x91784
movsd -0x30(%rbp), %xmm0
ucomisd -0x38(%rbp), %xmm0
jne 0x917a0
jp 0x917a0
movsd -0x40(%rbp), %xmm1
movsd -0x48(%rbp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x917a0
movq -0x58(%rbp), %rax
movq %rax, -0x50(%rbp)
movsd -0x40(%rbp), %xmm0
movsd %xmm0, -0x48(%rbp)
movsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
jmp 0x917a2
movq -0x58(%rbp), %rax
movq -0x10(%rbp), %rcx
movl 0x10(%rcx), %ecx
addq %rcx, %rax
movq %rax, -0x68(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x0, 0x28(%rax)
je 0x917ca
movq -0x18(%rbp), %rax
movl 0x28(%rax), %eax
movl %eax, -0x6c(%rbp)
jmp 0x917d7
movq -0x28(%rbp), %rax
movl 0x3e0(%rax), %eax
movl %eax, -0x6c(%rbp)
movq -0x68(%rbp), %rax
movl -0x6c(%rbp), %ecx
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
jmp 0x916ee
movq -0x50(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
nop
|
maria_rtree_pick_key:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_18]
mov rax, [rax]
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
mov rax, [rax]
mov [rbp+var_28], rax
movsd xmm0, cs:qword_159F58
movsd [rbp+var_38], xmm0
movsd xmm0, [rbp+var_48]
movsd [rbp+var_48], xmm0
mov [rbp+var_50], 0
mov rax, [rbp+var_18]
mov rax, [rax+10h]
mov rcx, [rbp+var_28]
mov ecx, [rcx+744h]
add rax, rcx
mov rcx, [rbp+var_18]
mov ecx, [rcx+28h]
add rax, rcx
mov [rbp+var_58], rax
mov rax, [rbp+var_18]
mov rax, [rax+10h]
mov rcx, [rbp+var_18]
mov ecx, [rcx+20h]
add rax, rcx
mov [rbp+var_60], rax
loc_916EE:
mov rax, [rbp+var_58]
cmp rax, [rbp+var_60]
jnb loc_917EC
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rdi, [rax+0C0h]
mov rsi, [rbp+var_58]
mov rax, [rbp+var_10]
mov rdx, [rax]
mov rax, [rbp+var_10]
mov ecx, [rax+10h]
mov rax, [rbp+var_10]
add ecx, [rax+14h]
lea r8, [rbp+var_40]
call maria_rtree_area_increase
movsd [rbp+var_30], xmm0
movsd xmm1, cs:qword_159F60
ucomisd xmm0, xmm1
jnz short loc_9174F
jp short loc_9174F
mov [rbp+var_8], 0
jmp loc_917F4
loc_9174F:
cmp [rbp+var_50], 0
jz short loc_91784
movsd xmm1, [rbp+var_30]
movsd xmm0, [rbp+var_38]
ucomisd xmm0, xmm1
ja short loc_91784
movsd xmm0, [rbp+var_30]
ucomisd xmm0, [rbp+var_38]
jnz short loc_917A0
jp short loc_917A0
movsd xmm1, [rbp+var_40]
movsd xmm0, [rbp+var_48]
ucomisd xmm0, xmm1
jbe short loc_917A0
loc_91784:
mov rax, [rbp+var_58]
mov [rbp+var_50], rax
movsd xmm0, [rbp+var_40]
movsd [rbp+var_48], xmm0
movsd xmm0, [rbp+var_30]
movsd [rbp+var_38], xmm0
loc_917A0:
jmp short $+2
loc_917A2:
mov rax, [rbp+var_58]
mov rcx, [rbp+var_10]
mov ecx, [rcx+10h]
add rax, rcx
mov [rbp+var_68], rax
mov rax, [rbp+var_18]
cmp dword ptr [rax+28h], 0
jz short loc_917CA
mov rax, [rbp+var_18]
mov eax, [rax+28h]
mov [rbp+var_6C], eax
jmp short loc_917D7
loc_917CA:
mov rax, [rbp+var_28]
mov eax, [rax+3E0h]
mov [rbp+var_6C], eax
loc_917D7:
mov rax, [rbp+var_68]
mov ecx, [rbp+var_6C]
mov ecx, ecx
add rax, rcx
mov [rbp+var_58], rax
jmp loc_916EE
loc_917EC:
mov rax, [rbp+var_50]
mov [rbp+var_8], rax
loc_917F4:
mov rax, [rbp+var_8]
add rsp, 70h
pop rbp
retn
|
unsigned long long maria_rtree_pick_key(long long a1, long long a2)
{
unsigned int v3; // [rsp+4h] [rbp-6Ch]
unsigned long long v4; // [rsp+10h] [rbp-60h]
unsigned long long v5; // [rsp+18h] [rbp-58h]
unsigned long long v6; // [rsp+20h] [rbp-50h]
double v7; // [rsp+28h] [rbp-48h]
double v8; // [rsp+30h] [rbp-40h] BYREF
double v9; // [rsp+38h] [rbp-38h]
double v10; // [rsp+40h] [rbp-30h]
long long v11; // [rsp+48h] [rbp-28h]
long long *v12; // [rsp+50h] [rbp-20h]
long long v13; // [rsp+58h] [rbp-18h]
long long v14; // [rsp+60h] [rbp-10h]
v14 = a1;
v13 = a2;
v12 = *(long long **)a2;
v11 = *v12;
v9 = 1.797693134862316e308;
v6 = 0LL;
v5 = *(unsigned int *)(a2 + 40) + *(unsigned int *)(v11 + 1860) + *(_QWORD *)(a2 + 16);
v4 = *(unsigned int *)(a2 + 32) + *(_QWORD *)(a2 + 16);
while ( v5 < v4 )
{
v10 = maria_rtree_area_increase(
*(_QWORD *)(*(_QWORD *)(v14 + 8) + 192LL),
v5,
*(_QWORD *)v14,
(unsigned int)(*(_DWORD *)(v14 + 20) + *(_DWORD *)(v14 + 16)),
&v8);
if ( v10 == -1.0 )
return 0LL;
if ( !v6 || v9 > v10 || v10 == v9 && v7 > v8 )
{
v6 = v5;
v7 = v8;
v9 = v10;
}
if ( *(_DWORD *)(v13 + 40) )
v3 = *(_DWORD *)(v13 + 40);
else
v3 = *(_DWORD *)(v11 + 992);
v5 += v3 + (unsigned long long)*(unsigned int *)(v14 + 16);
}
return v6;
}
|
maria_rtree_pick_key:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x28],RAX
MOVSD XMM0,qword ptr [0x00259f58]
MOVSD qword ptr [RBP + -0x38],XMM0
MOVSD XMM0,qword ptr [RBP + -0x48]
MOVSD qword ptr [RBP + -0x48],XMM0
MOV qword ptr [RBP + -0x50],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RBP + -0x28]
MOV ECX,dword ptr [RCX + 0x744]
ADD RAX,RCX
MOV RCX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RCX + 0x28]
ADD RAX,RCX
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RCX + 0x20]
ADD RAX,RCX
MOV qword ptr [RBP + -0x60],RAX
LAB_001916ee:
MOV RAX,qword ptr [RBP + -0x58]
CMP RAX,qword ptr [RBP + -0x60]
JNC 0x001917ec
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RDI,qword ptr [RAX + 0xc0]
MOV RSI,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x10]
ADD ECX,dword ptr [RAX + 0x14]
LEA R8,[RBP + -0x40]
CALL 0x00197260
MOVSD qword ptr [RBP + -0x30],XMM0
MOVSD XMM1,qword ptr [0x00259f60]
UCOMISD XMM0,XMM1
JNZ 0x0019174f
JP 0x0019174f
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001917f4
LAB_0019174f:
CMP qword ptr [RBP + -0x50],0x0
JZ 0x00191784
MOVSD XMM1,qword ptr [RBP + -0x30]
MOVSD XMM0,qword ptr [RBP + -0x38]
UCOMISD XMM0,XMM1
JA 0x00191784
MOVSD XMM0,qword ptr [RBP + -0x30]
UCOMISD XMM0,qword ptr [RBP + -0x38]
JNZ 0x001917a0
JP 0x001917a0
MOVSD XMM1,qword ptr [RBP + -0x40]
MOVSD XMM0,qword ptr [RBP + -0x48]
UCOMISD XMM0,XMM1
JBE 0x001917a0
LAB_00191784:
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RBP + -0x50],RAX
MOVSD XMM0,qword ptr [RBP + -0x40]
MOVSD qword ptr [RBP + -0x48],XMM0
MOVSD XMM0,qword ptr [RBP + -0x30]
MOVSD qword ptr [RBP + -0x38],XMM0
LAB_001917a0:
JMP 0x001917a2
LAB_001917a2:
MOV RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RCX + 0x10]
ADD RAX,RCX
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,qword ptr [RBP + -0x18]
CMP dword ptr [RAX + 0x28],0x0
JZ 0x001917ca
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x28]
MOV dword ptr [RBP + -0x6c],EAX
JMP 0x001917d7
LAB_001917ca:
MOV RAX,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RAX + 0x3e0]
MOV dword ptr [RBP + -0x6c],EAX
LAB_001917d7:
MOV RAX,qword ptr [RBP + -0x68]
MOV ECX,dword ptr [RBP + -0x6c]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x58],RAX
JMP 0x001916ee
LAB_001917ec:
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x8],RAX
LAB_001917f4:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x70
POP RBP
RET
|
ulong maria_rtree_pick_key(int8 *param_1,int8 *param_2)
{
uint uVar1;
long lVar2;
uint local_74;
ulong local_60;
ulong local_58;
double local_50;
double local_48;
double local_40;
double local_38;
long local_30;
long *local_28;
int8 *local_20;
int8 *local_18;
local_28 = (long *)*param_2;
local_30 = *local_28;
local_40 = DAT_00259f58;
local_58 = 0;
local_60 = param_2[2] + (ulong)*(uint *)(local_30 + 0x744) + (ulong)*(uint *)(param_2 + 5);
lVar2 = param_2[2];
uVar1 = *(uint *)(param_2 + 4);
local_20 = param_2;
local_18 = param_1;
do {
if (lVar2 + (ulong)uVar1 <= local_60) {
return local_58;
}
local_38 = (double)maria_rtree_area_increase
(*(int8 *)(local_18[1] + 0xc0),local_60,*local_18,
*(int *)(local_18 + 2) + *(int *)((long)local_18 + 0x14),&local_48
);
if ((local_38 == DAT_00259f60) && (!NAN(local_38) && !NAN(DAT_00259f60))) {
return 0;
}
if ((local_58 == 0) || (local_38 < local_40)) {
LAB_00191784:
local_58 = local_60;
local_50 = local_48;
local_40 = local_38;
}
else if ((local_38 == local_40) && ((!NAN(local_38) && !NAN(local_40) && (local_48 < local_50)))
) goto LAB_00191784;
if (*(int *)(local_20 + 5) == 0) {
local_74 = *(uint *)(local_30 + 0x3e0);
}
else {
local_74 = *(uint *)(local_20 + 5);
}
local_60 = local_60 + *(uint *)(local_18 + 2) + (ulong)local_74;
} while( true );
}
|
|
59,640
|
ma_apply_redo_purge_row_head_or_tail
|
eloqsql/storage/maria/ma_blockrec.c
|
uint _ma_apply_redo_purge_row_head_or_tail(MARIA_HA *info, LSN lsn,
uint page_type,
const uchar *header)
{
MARIA_SHARE *share= info->s;
pgcache_page_no_t page;
uint rownr, empty_space;
uchar *buff;
int result;
uint error;
MARIA_PINNED_PAGE page_link;
DBUG_ENTER("_ma_apply_redo_purge_row_head_or_tail");
page= page_korr(header);
rownr= dirpos_korr(header+PAGE_STORE_SIZE);
DBUG_PRINT("enter", ("rowid: %lu page: %lu rownr: %u",
(ulong) ma_recordpos(page, rownr),
(ulong) page, rownr));
share->state.changed|= (STATE_CHANGED | STATE_NOT_ZEROFILLED |
STATE_NOT_MOVABLE);
if (!(buff= pagecache_read(share->pagecache, &info->dfile,
page, 0, 0,
PAGECACHE_PLAIN_PAGE, PAGECACHE_LOCK_WRITE,
&page_link.link)))
goto err;
if (lsn_korr(buff) >= lsn)
{
/*
Already applied
Note that in case the page is not anymore a head or tail page
a future redo will fix the bitmap.
*/
check_skipped_lsn(info, lsn_korr(buff), 1, page);
if ((uint) (buff[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK) == page_type)
{
empty_space= uint2korr(buff+EMPTY_SPACE_OFFSET);
if (!enough_free_entries_on_page(share, buff))
empty_space= 0; /* Page is full */
if (_ma_bitmap_set(info, page, page_type == HEAD_PAGE,
empty_space))
goto err;
}
pagecache_unlock_by_link(share->pagecache, page_link.link,
PAGECACHE_LOCK_WRITE_UNLOCK,
PAGECACHE_UNPIN, LSN_IMPOSSIBLE,
LSN_IMPOSSIBLE, 0, FALSE);
DBUG_RETURN(0);
}
DBUG_ASSERT((buff[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK) == (uchar) page_type);
if (delete_dir_entry(share, buff, rownr, &empty_space) < 0)
{
_ma_set_fatal_error(info, HA_ERR_WRONG_IN_RECORD);
goto err;
}
page_link.unlock= PAGECACHE_LOCK_WRITE_UNLOCK;
page_link.changed= 1;
push_dynamic(&info->pinned_pages, (void*) &page_link);
result= 0;
if (!enough_free_entries_on_page(share, buff))
empty_space= 0; /* Page is full */
/* This will work even if the page was marked as UNALLOCATED_PAGE */
if (_ma_bitmap_set(info, page, page_type == HEAD_PAGE, empty_space))
result= my_errno;
DBUG_RETURN(result);
err:
error= my_errno;
pagecache_unlock_by_link(share->pagecache, page_link.link,
PAGECACHE_LOCK_WRITE_UNLOCK,
PAGECACHE_UNPIN, LSN_IMPOSSIBLE,
LSN_IMPOSSIBLE, 0, FALSE);
_ma_mark_file_crashed(share);
DBUG_ASSERT(!maria_assert_if_crashed_table);
DBUG_RETURN((my_errno= error));
}
|
O0
|
c
|
ma_apply_redo_purge_row_head_or_tail:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rdi
callq 0x84990
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rax
movzbl 0x5(%rax), %eax
movl %eax, -0x3c(%rbp)
jmp 0x84fef
movq -0x30(%rbp), %rax
movl 0x170(%rax), %ecx
orl $0x181, %ecx # imm = 0x181
movl %ecx, 0x170(%rax)
movq -0x30(%rbp), %rax
movq 0x600(%rax), %rdi
movq -0x10(%rbp), %rsi
addq $0x470, %rsi # imm = 0x470
movq -0x38(%rbp), %rdx
leaq -0x68(%rbp), %rax
xorl %ecx, %ecx
xorl %r8d, %r8d
movl $0x1, %r9d
movl $0x4, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x64330
movq %rax, -0x48(%rbp)
cmpq $0x0, %rax
jne 0x8504e
jmp 0x85210
movq -0x48(%rbp), %rax
movzbl (%rax), %eax
movq -0x48(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movq -0x48(%rbp), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x10, %ecx
orl %ecx, %eax
movl %eax, %eax
shlq $0x20, %rax
movq -0x48(%rbp), %rcx
movl 0x3(%rcx), %ecx
orq %rcx, %rax
cmpq -0x18(%rbp), %rax
jl 0x8516e
movq -0x10(%rbp), %rdi
movq -0x48(%rbp), %rax
movzbl (%rax), %eax
movq -0x48(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movq -0x48(%rbp), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x10, %ecx
orl %ecx, %eax
movl %eax, %eax
movl %eax, %esi
shlq $0x20, %rsi
movq -0x48(%rbp), %rax
movl 0x3(%rax), %eax
orq %rax, %rsi
movq -0x38(%rbp), %rcx
movl $0x1, %edx
callq 0x5b190
movq -0x48(%rbp), %rax
movzbl 0x7(%rax), %eax
andl $0x7, %eax
cmpl -0x1c(%rbp), %eax
jne 0x8512b
movq -0x48(%rbp), %rax
movzwl 0xa(%rax), %eax
movl %eax, -0x40(%rbp)
movq -0x30(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x7efc0
cmpb $0x0, %al
jne 0x85101
movl $0x0, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
cmpl $0x1, -0x1c(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
movl -0x40(%rbp), %ecx
movsbl %al, %edx
callq 0x491d0
cmpb $0x0, %al
je 0x85129
jmp 0x85210
jmp 0x8512b
movq -0x30(%rbp), %rax
movq 0x600(%rax), %rdi
movq -0x68(%rbp), %rsi
movl $0x6, %edx
movl $0x3, %ecx
xorl %eax, %eax
movl %eax, %r9d
xorl %eax, %eax
movq %r9, %r8
movl $0x0, (%rsp)
movl $0x0, 0x8(%rsp)
callq 0x640d0
movl $0x0, -0x4(%rbp)
jmp 0x85274
jmp 0x85170
jmp 0x85172
movq -0x30(%rbp), %rdi
movq -0x48(%rbp), %rsi
movl -0x3c(%rbp), %edx
leaq -0x40(%rbp), %rcx
callq 0x85280
cmpl $0x0, %eax
jge 0x8519b
movq -0x10(%rbp), %rdi
movl $0x7f, %esi
callq 0x38a40
jmp 0x85210
movl $0x6, -0x60(%rbp)
movb $0x1, -0x58(%rbp)
movq -0x10(%rbp), %rdi
addq $0x2e8, %rdi # imm = 0x2E8
leaq -0x68(%rbp), %rsi
callq 0xa7550
movl $0x0, -0x4c(%rbp)
movq -0x30(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x7efc0
cmpb $0x0, %al
jne 0x851d9
movl $0x0, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
cmpl $0x1, -0x1c(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
movl -0x40(%rbp), %ecx
movsbl %al, %edx
callq 0x491d0
cmpb $0x0, %al
je 0x85206
callq 0xc0d80
movl (%rax), %eax
movl %eax, -0x4c(%rbp)
jmp 0x85208
movl -0x4c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x85274
callq 0xc0d80
movl (%rax), %eax
movl %eax, -0x50(%rbp)
movq -0x30(%rbp), %rax
movq 0x600(%rax), %rdi
movq -0x68(%rbp), %rsi
movl $0x6, %edx
movl $0x3, %ecx
xorl %eax, %eax
movl %eax, %r9d
xorl %eax, %eax
movq %r9, %r8
movl $0x0, (%rsp)
movl $0x0, 0x8(%rsp)
callq 0x640d0
movq -0x30(%rbp), %rdi
callq 0x3b3e0
jmp 0x8525c
jmp 0x8525e
movl -0x50(%rbp), %eax
movl %eax, -0x6c(%rbp)
callq 0xc0d80
movq %rax, %rcx
movl -0x6c(%rbp), %eax
movl %eax, (%rcx)
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x80, %rsp
popq %rbp
retq
|
_ma_apply_redo_purge_row_head_or_tail:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov [rbp+var_28], rcx
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_30], rax
mov rdi, [rbp+var_28]
call uint5korr_1
mov [rbp+var_38], rax
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax+5]
mov [rbp+var_3C], eax
jmp short $+2
loc_84FEF:
mov rax, [rbp+var_30]
mov ecx, [rax+170h]
or ecx, 181h
mov [rax+170h], ecx
mov rax, [rbp+var_30]
mov rdi, [rax+600h]
mov rsi, [rbp+var_10]
add rsi, 470h
mov rdx, [rbp+var_38]
lea rax, [rbp+var_68]
xor ecx, ecx
xor r8d, r8d
mov r9d, 1
mov [rsp+80h+var_80], 4
mov [rsp+80h+var_78], rax
call pagecache_read
mov [rbp+var_48], rax
cmp rax, 0
jnz short loc_8504E
jmp loc_85210
loc_8504E:
mov rax, [rbp+var_48]
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_48]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
or eax, ecx
mov rcx, [rbp+var_48]
movzx ecx, byte ptr [rcx+2]
shl ecx, 10h
or eax, ecx
mov eax, eax
shl rax, 20h
mov rcx, [rbp+var_48]
mov ecx, [rcx+3]
or rax, rcx
cmp rax, [rbp+var_18]
jl loc_8516E
mov rdi, [rbp+var_10]
mov rax, [rbp+var_48]
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_48]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
or eax, ecx
mov rcx, [rbp+var_48]
movzx ecx, byte ptr [rcx+2]
shl ecx, 10h
or eax, ecx
mov eax, eax
mov esi, eax
shl rsi, 20h
mov rax, [rbp+var_48]
mov eax, [rax+3]
or rsi, rax
mov rcx, [rbp+var_38]
mov edx, 1
call check_skipped_lsn
mov rax, [rbp+var_48]
movzx eax, byte ptr [rax+7]
and eax, 7
cmp eax, [rbp+var_1C]
jnz short loc_8512B
mov rax, [rbp+var_48]
movzx eax, word ptr [rax+0Ah]
mov [rbp+var_40], eax
mov rdi, [rbp+var_30]
mov rsi, [rbp+var_48]
call enough_free_entries_on_page
cmp al, 0
jnz short loc_85101
mov [rbp+var_40], 0
loc_85101:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_38]
cmp [rbp+var_1C], 1
setz al
and al, 1
movzx eax, al
mov ecx, [rbp+var_40]
movsx edx, al
call _ma_bitmap_set
cmp al, 0
jz short loc_85129
jmp loc_85210
loc_85129:
jmp short $+2
loc_8512B:
mov rax, [rbp+var_30]
mov rdi, [rax+600h]
mov rsi, [rbp+var_68]
mov edx, 6
mov ecx, 3
xor eax, eax
mov r9d, eax
xor eax, eax
mov r8, r9
mov [rsp+80h+var_80], 0
mov dword ptr [rsp+80h+var_78], 0
call pagecache_unlock_by_link
mov [rbp+var_4], 0
jmp loc_85274
loc_8516E:
jmp short $+2
loc_85170:
jmp short $+2
loc_85172:
mov rdi, [rbp+var_30]
mov rsi, [rbp+var_48]
mov edx, [rbp+var_3C]
lea rcx, [rbp+var_40]
call delete_dir_entry
cmp eax, 0
jge short loc_8519B
mov rdi, [rbp+var_10]
mov esi, 7Fh
call _ma_set_fatal_error
jmp short loc_85210
loc_8519B:
mov [rbp+var_60], 6
mov [rbp+var_58], 1
mov rdi, [rbp+var_10]
add rdi, 2E8h
lea rsi, [rbp+var_68]
call insert_dynamic
mov [rbp+var_4C], 0
mov rdi, [rbp+var_30]
mov rsi, [rbp+var_48]
call enough_free_entries_on_page
cmp al, 0
jnz short loc_851D9
mov [rbp+var_40], 0
loc_851D9:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_38]
cmp [rbp+var_1C], 1
setz al
and al, 1
movzx eax, al
mov ecx, [rbp+var_40]
movsx edx, al
call _ma_bitmap_set
cmp al, 0
jz short loc_85206
call _my_thread_var
mov eax, [rax]
mov [rbp+var_4C], eax
loc_85206:
jmp short $+2
loc_85208:
mov eax, [rbp+var_4C]
mov [rbp+var_4], eax
jmp short loc_85274
loc_85210:
call _my_thread_var
mov eax, [rax]
mov [rbp+var_50], eax
mov rax, [rbp+var_30]
mov rdi, [rax+600h]
mov rsi, [rbp+var_68]
mov edx, 6
mov ecx, 3
xor eax, eax
mov r9d, eax
xor eax, eax
mov r8, r9
mov [rsp+80h+var_80], 0
mov dword ptr [rsp+80h+var_78], 0
call pagecache_unlock_by_link
mov rdi, [rbp+var_30]
call _ma_mark_file_crashed
jmp short $+2
loc_8525C:
jmp short $+2
loc_8525E:
mov eax, [rbp+var_50]
mov [rbp+var_6C], eax
call _my_thread_var
mov rcx, rax
mov eax, [rbp+var_6C]
mov [rcx], eax
mov [rbp+var_4], eax
loc_85274:
mov eax, [rbp+var_4]
add rsp, 80h
pop rbp
retn
|
long long ma_apply_redo_purge_row_head_or_tail(long long *a1, signed long long a2, int a3, unsigned int *a4)
{
long long *v4; // rdi
const char *v5; // rsi
long long v6; // rdx
long long v7; // rcx
long long v8; // r8
int v9; // r9d
long long *v10; // rdi
const char *v11; // rsi
const char *v12; // rsi
long long v13; // rdi
unsigned int v15; // [rsp+14h] [rbp-6Ch]
const char *v16; // [rsp+18h] [rbp-68h] BYREF
int v17; // [rsp+20h] [rbp-60h]
char v18; // [rsp+28h] [rbp-58h]
unsigned int v19; // [rsp+30h] [rbp-50h]
unsigned int v20; // [rsp+34h] [rbp-4Ch]
_BYTE *v21; // [rsp+38h] [rbp-48h]
unsigned int v22; // [rsp+40h] [rbp-40h] BYREF
unsigned int v23; // [rsp+44h] [rbp-3Ch]
unsigned long long v24; // [rsp+48h] [rbp-38h]
long long v25; // [rsp+50h] [rbp-30h]
unsigned int *v26; // [rsp+58h] [rbp-28h]
int v27; // [rsp+64h] [rbp-1Ch]
signed long long v28; // [rsp+68h] [rbp-18h]
long long *v29; // [rsp+70h] [rbp-10h]
v29 = a1;
v28 = a2;
v27 = a3;
v26 = a4;
v25 = *a1;
v24 = uint5korr_1(a4);
v23 = *((unsigned __int8 *)v26 + 5);
*(_DWORD *)(v25 + 368) |= 0x181u;
v4 = *(long long **)(v25 + 1536);
v5 = (const char *)(v29 + 142);
v21 = (_BYTE *)pagecache_read(v4, (long long)(v29 + 142), v24, 0, 0LL, 1, 4u, (char *)&v16);
if ( !v21 )
goto LABEL_15;
if ( (long long)(*(unsigned int *)(v21 + 3) | ((unsigned long long)(((unsigned __int8)v21[2] << 16) | (unsigned int)*(unsigned __int16 *)v21) << 32)) >= v28 )
{
check_skipped_lsn(
(long long)v29,
*(unsigned int *)(v21 + 3) | ((unsigned long long)(((unsigned __int8)v21[2] << 16) | (unsigned int)*(unsigned __int16 *)v21) << 32),
1,
v24);
if ( (v21[7] & 7) != v27 )
goto LABEL_7;
v22 = *((unsigned __int16 *)v21 + 5);
if ( !enough_free_entries_on_page(v25, v21) )
v22 = 0;
v4 = v29;
v5 = (const char *)v24;
if ( !ma_bitmap_set(v29, v24, v27 == 1, v22) )
{
LABEL_7:
pagecache_unlock_by_link(*(_QWORD **)(v25 + 1536), (long long)v16, 6, 3, 0LL, 0LL, 0, 0);
return 0;
}
LABEL_15:
v19 = *(_DWORD *)my_thread_var(v4, v5);
v12 = v16;
pagecache_unlock_by_link(*(_QWORD **)(v25 + 1536), (long long)v16, 6, 3, 0LL, 0LL, 0, 0);
v13 = v25;
ma_mark_file_crashed(v25);
v15 = v19;
*(_DWORD *)my_thread_var(v13, v12) = v15;
return v15;
}
if ( (int)delete_dir_entry(v25, v21, v23, &v22) < 0 )
{
v4 = v29;
v5 = (_BYTE *)(&dword_7C + 3);
ma_set_fatal_error(v29, 127, v6, v7, v8, v9);
goto LABEL_15;
}
v17 = 6;
v18 = 1;
insert_dynamic(v29 + 93, &v16);
v20 = 0;
if ( !enough_free_entries_on_page(v25, v21) )
v22 = 0;
v10 = v29;
v11 = (const char *)v24;
if ( ma_bitmap_set(v29, v24, v27 == 1, v22) )
return *(unsigned int *)my_thread_var(v10, v11);
return v20;
}
|
_ma_apply_redo_purge_row_head_or_tail:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,qword ptr [RBP + -0x28]
CALL 0x00184990
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX + 0x5]
MOV dword ptr [RBP + -0x3c],EAX
JMP 0x00184fef
LAB_00184fef:
MOV RAX,qword ptr [RBP + -0x30]
MOV ECX,dword ptr [RAX + 0x170]
OR ECX,0x181
MOV dword ptr [RAX + 0x170],ECX
MOV RAX,qword ptr [RBP + -0x30]
MOV RDI,qword ptr [RAX + 0x600]
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0x470
MOV RDX,qword ptr [RBP + -0x38]
LEA RAX,[RBP + -0x68]
XOR ECX,ECX
XOR R8D,R8D
MOV R9D,0x1
MOV dword ptr [RSP],0x4
MOV qword ptr [RSP + 0x8],RAX
CALL 0x00164330
MOV qword ptr [RBP + -0x48],RAX
CMP RAX,0x0
JNZ 0x0018504e
JMP 0x00185210
LAB_0018504e:
MOV RAX,qword ptr [RBP + -0x48]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x48]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x48]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x10
OR EAX,ECX
MOV EAX,EAX
SHL RAX,0x20
MOV RCX,qword ptr [RBP + -0x48]
MOV ECX,dword ptr [RCX + 0x3]
OR RAX,RCX
CMP RAX,qword ptr [RBP + -0x18]
JL 0x0018516e
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x48]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x48]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x48]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x10
OR EAX,ECX
MOV EAX,EAX
MOV ESI,EAX
SHL RSI,0x20
MOV RAX,qword ptr [RBP + -0x48]
MOV EAX,dword ptr [RAX + 0x3]
OR RSI,RAX
MOV RCX,qword ptr [RBP + -0x38]
MOV EDX,0x1
CALL 0x0015b190
MOV RAX,qword ptr [RBP + -0x48]
MOVZX EAX,byte ptr [RAX + 0x7]
AND EAX,0x7
CMP EAX,dword ptr [RBP + -0x1c]
JNZ 0x0018512b
MOV RAX,qword ptr [RBP + -0x48]
MOVZX EAX,word ptr [RAX + 0xa]
MOV dword ptr [RBP + -0x40],EAX
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x48]
CALL 0x0017efc0
CMP AL,0x0
JNZ 0x00185101
MOV dword ptr [RBP + -0x40],0x0
LAB_00185101:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x38]
CMP dword ptr [RBP + -0x1c],0x1
SETZ AL
AND AL,0x1
MOVZX EAX,AL
MOV ECX,dword ptr [RBP + -0x40]
MOVSX EDX,AL
CALL 0x001491d0
CMP AL,0x0
JZ 0x00185129
JMP 0x00185210
LAB_00185129:
JMP 0x0018512b
LAB_0018512b:
MOV RAX,qword ptr [RBP + -0x30]
MOV RDI,qword ptr [RAX + 0x600]
MOV RSI,qword ptr [RBP + -0x68]
MOV EDX,0x6
MOV ECX,0x3
XOR EAX,EAX
MOV R9D,EAX
XOR EAX,EAX
MOV R8,R9
MOV dword ptr [RSP],0x0
MOV dword ptr [RSP + 0x8],0x0
CALL 0x001640d0
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00185274
LAB_0018516e:
JMP 0x00185170
LAB_00185170:
JMP 0x00185172
LAB_00185172:
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x48]
MOV EDX,dword ptr [RBP + -0x3c]
LEA RCX,[RBP + -0x40]
CALL 0x00185280
CMP EAX,0x0
JGE 0x0018519b
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x7f
CALL 0x00138a40
JMP 0x00185210
LAB_0018519b:
MOV dword ptr [RBP + -0x60],0x6
MOV byte ptr [RBP + -0x58],0x1
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x2e8
LEA RSI,[RBP + -0x68]
CALL 0x001a7550
MOV dword ptr [RBP + -0x4c],0x0
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x48]
CALL 0x0017efc0
CMP AL,0x0
JNZ 0x001851d9
MOV dword ptr [RBP + -0x40],0x0
LAB_001851d9:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x38]
CMP dword ptr [RBP + -0x1c],0x1
SETZ AL
AND AL,0x1
MOVZX EAX,AL
MOV ECX,dword ptr [RBP + -0x40]
MOVSX EDX,AL
CALL 0x001491d0
CMP AL,0x0
JZ 0x00185206
CALL 0x001c0d80
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x4c],EAX
LAB_00185206:
JMP 0x00185208
LAB_00185208:
MOV EAX,dword ptr [RBP + -0x4c]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00185274
LAB_00185210:
CALL 0x001c0d80
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x50],EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV RDI,qword ptr [RAX + 0x600]
MOV RSI,qword ptr [RBP + -0x68]
MOV EDX,0x6
MOV ECX,0x3
XOR EAX,EAX
MOV R9D,EAX
XOR EAX,EAX
MOV R8,R9
MOV dword ptr [RSP],0x0
MOV dword ptr [RSP + 0x8],0x0
CALL 0x001640d0
MOV RDI,qword ptr [RBP + -0x30]
CALL 0x0013b3e0
JMP 0x0018525c
LAB_0018525c:
JMP 0x0018525e
LAB_0018525e:
MOV EAX,dword ptr [RBP + -0x50]
MOV dword ptr [RBP + -0x6c],EAX
CALL 0x001c0d80
MOV RCX,RAX
MOV EAX,dword ptr [RBP + -0x6c]
MOV dword ptr [RCX],EAX
MOV dword ptr [RBP + -0x4],EAX
LAB_00185274:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x80
POP RBP
RET
|
int4
_ma_apply_redo_purge_row_head_or_tail(long *param_1,long param_2,uint param_3,long param_4)
{
int4 uVar1;
char cVar2;
int iVar3;
int4 *puVar4;
int8 *puVar5;
int8 local_70;
int4 local_68;
int1 local_60;
int4 local_58;
int4 local_54;
int3 *local_50;
uint local_48;
uint local_44;
int8 local_40;
long local_38;
long local_30;
uint local_24;
long local_20;
long *local_18;
local_38 = *param_1;
local_30 = param_4;
local_24 = param_3;
local_20 = param_2;
local_18 = param_1;
local_40 = uint5korr(param_4);
local_44 = (uint)*(byte *)(local_30 + 5);
*(uint *)(local_38 + 0x170) = *(uint *)(local_38 + 0x170) | 0x181;
puVar5 = &local_70;
local_50 = (int3 *)
pagecache_read(*(int8 *)(local_38 + 0x600),local_18 + 0x8e,local_40,0,0,1,4,
puVar5);
if (local_50 != (int3 *)0x0) {
if (local_20 <= (long)(ulong)CONCAT34(*local_50,*(int4 *)((long)local_50 + 3))) {
check_skipped_lsn(local_18,(ulong)CONCAT34(*local_50,*(int4 *)((long)local_50 + 3)),1,
local_40);
if ((*(byte *)((long)local_50 + 7) & 7) == local_24) {
local_48 = (uint)*(ushort *)((long)local_50 + 10);
cVar2 = enough_free_entries_on_page(local_38,local_50);
if (cVar2 == '\0') {
local_48 = 0;
}
cVar2 = _ma_bitmap_set(local_18,local_40,local_24 == 1,local_48);
if (cVar2 != '\0') goto LAB_00185210;
}
pagecache_unlock_by_link
(*(int8 *)(local_38 + 0x600),local_70,6,3,0,0,0,
(ulong)puVar5 & 0xffffffff00000000);
return 0;
}
iVar3 = delete_dir_entry(local_38,local_50,local_44,&local_48);
if (-1 < iVar3) {
local_68 = 6;
local_60 = 1;
insert_dynamic(local_18 + 0x5d,&local_70);
local_54 = 0;
cVar2 = enough_free_entries_on_page(local_38,local_50);
if (cVar2 == '\0') {
local_48 = 0;
}
cVar2 = _ma_bitmap_set(local_18,local_40,local_24 == 1,local_48);
if (cVar2 != '\0') {
puVar4 = (int4 *)_my_thread_var();
local_54 = *puVar4;
}
return local_54;
}
_ma_set_fatal_error(local_18,0x7f);
}
LAB_00185210:
puVar4 = (int4 *)_my_thread_var();
local_58 = *puVar4;
pagecache_unlock_by_link
(*(int8 *)(local_38 + 0x600),local_70,6,3,0,0,0,(ulong)puVar5 & 0xffffffff00000000
);
_ma_mark_file_crashed(local_38);
uVar1 = local_58;
puVar4 = (int4 *)_my_thread_var();
*puVar4 = uVar1;
return uVar1;
}
|
|
59,641
|
Utils::getRelativePath(std::filesystem::__cxx11::path const&, std::filesystem::__cxx11::path const&)
|
shubhamoy[P]dir2txt/src/Utils.cpp
|
std::string getRelativePath(const std::filesystem::path& path,
const std::filesystem::path& root) {
try {
return std::filesystem::relative(path, root).string();
} catch (...) {
return path.filename().string(); // fallback
}
}
|
O3
|
cpp
|
Utils::getRelativePath(std::filesystem::__cxx11::path const&, std::filesystem::__cxx11::path const&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
callq 0x8320
movq 0x8(%rsp), %rsi
leaq 0x10(%rbx), %rax
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
movq %rax, (%rbx)
movq %rbx, %rdi
callq 0x9a9e
leaq 0x8(%rsp), %rdi
callq 0x99aa
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r15
leaq 0x8(%rsp), %rdi
callq 0x99aa
jmp 0x3222e
movq %rax, %r15
movq %r15, %rdi
callq 0x8160
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x26d5a
movq 0x8(%rsp), %rsi
leaq 0x10(%rbx), %rax
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
movq %rax, (%rbx)
movq %rbx, %rdi
callq 0x9a9e
leaq 0x8(%rsp), %rdi
callq 0x99aa
callq 0x8570
jmp 0x3220f
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x99aa
jmp 0x32282
movq %rax, %rbx
callq 0x8570
movq %rbx, %rdi
callq 0x85d0
movq %rax, %rdi
callq 0x999f
|
_ZN5Utils15getRelativePathERKNSt10filesystem7__cxx114pathES4_:
push r15
push r14
push rbx
sub rsp, 30h
mov r14, rsi
mov rbx, rdi
lea rdi, [rsp+48h+var_40]; this
call __ZNSt10filesystem8relativeERKNS_7__cxx114pathES3_; std::filesystem::relative(std::filesystem::__cxx11::path const&,std::filesystem::__cxx11::path const&)
mov rsi, [rsp+48h+var_40]
lea rax, [rbx+10h]
mov rdx, [rsp+48h+var_38]
add rdx, rsi
mov [rbx], rax
mov rdi, rbx
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 rdi, [rsp+48h+var_40]; this
call _ZNSt10filesystem7__cxx114pathD2Ev; std::filesystem::__cxx11::path::~path()
loc_3220F:
mov rax, rbx
add rsp, 30h
pop rbx
pop r14
pop r15
retn
mov r15, rax
lea rdi, [rsp+48h+var_40]; this
call _ZNSt10filesystem7__cxx114pathD2Ev; std::filesystem::__cxx11::path::~path()
jmp short loc_3222E
mov r15, rax
loc_3222E:
mov rdi, r15; void *
call ___cxa_begin_catch
lea rdi, [rsp+48h+var_40]; this
mov rsi, r14
call _ZNKSt10filesystem7__cxx114path8filenameEv; std::filesystem::__cxx11::path::filename(void)
mov rsi, [rsp+48h+var_40]
lea rax, [rbx+10h]
mov rdx, [rsp+48h+var_38]
add rdx, rsi
mov [rbx], rax
mov rdi, rbx
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 rdi, [rsp+48h+var_40]; this
call _ZNSt10filesystem7__cxx114pathD2Ev; std::filesystem::__cxx11::path::~path()
call ___cxa_end_catch
jmp short loc_3220F
mov rbx, rax
lea rdi, [rsp+arg_0]; this
call _ZNSt10filesystem7__cxx114pathD2Ev; std::filesystem::__cxx11::path::~path()
jmp short loc_32282
mov rbx, rax
loc_32282:
call ___cxa_end_catch
mov rdi, rbx
call __Unwind_Resume
mov rdi, rax
call __clang_call_terminate
|
Utils * Utils::getRelativePath(
Utils *this,
const std::filesystem::__cxx11::path *a2,
const std::filesystem::__cxx11::path *a3)
{
_BYTE *v3; // rsi
long long v4; // rdx
_QWORD v6[8]; // [rsp+8h] [rbp-40h] BYREF
std::filesystem::relative((std::filesystem *)v6, a2, a3);
v3 = (_BYTE *)v6[0];
v4 = v6[0] + v6[1];
*(_QWORD *)this = (char *)this + 16;
std::string::_M_construct<char const*>((long long)this, v3, v4);
std::filesystem::__cxx11::path::~path((std::filesystem::__cxx11::path *)v6);
return this;
}
|
getRelativePath:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R14,RSI
MOV RBX,RDI
LAB_001321df:
LEA RDI,[RSP + 0x8]
CALL 0x00108320
MOV RSI,qword ptr [RSP + 0x8]
LEA RAX,[RBX + 0x10]
MOV RDX,qword ptr [RSP + 0x10]
ADD RDX,RSI
MOV qword ptr [RBX],RAX
LAB_001321fd:
MOV RDI,RBX
CALL 0x00109a9e
LAB_00132205:
LEA RDI,[RSP + 0x8]
CALL 0x001099aa
LAB_0013220f:
MOV RAX,RBX
ADD RSP,0x30
POP RBX
POP R14
POP R15
RET
|
/* Utils::getRelativePath(std::filesystem::__cxx11::path const&, std::filesystem::__cxx11::path
const&) */
path * Utils::getRelativePath(path *param_1,path *param_2)
{
long local_40;
long local_38;
/* try { // try from 001321df to 001321e8 has its CatchHandler @ 0013222b */
std::filesystem::relative((path *)&local_40,param_2);
*(path **)param_1 = param_1 + 0x10;
/* try { // try from 001321fd to 00132204 has its CatchHandler @ 0013221c */
std::__cxx11::string::_M_construct<char_const*>(param_1,local_40,local_38 + local_40);
std::filesystem::__cxx11::path::~path((path *)&local_40);
return param_1;
}
|
|
59,642
|
PAIRING_FinalVerify
|
corpus-core[P]colibri-stateless/build_O1/_deps/blst-src/src/aggregate.c
|
static bool_t PAIRING_FinalVerify(const PAIRING *ctx, const vec384fp12 GTsig)
{
vec384fp12 GT;
if (!(ctx->ctrl & AGGR_GT_SET))
return 0;
if (GTsig != NULL) {
vec_copy(GT, GTsig, sizeof(GT));
} else if (ctx->ctrl & AGGR_SIGN_SET) {
AggregatedSignature AggrSign;
switch (ctx->ctrl & MIN_SIG_OR_PK) {
case AGGR_MIN_SIG:
POINTonE1_from_Jacobian(&AggrSign.e1, &ctx->AggrSign.e1);
miller_loop_n(GT, (const POINTonE2_affine *)&BLS12_381_G2,
(const POINTonE1_affine *)&AggrSign.e1, 1);
break;
case AGGR_MIN_PK:
POINTonE2_from_Jacobian(&AggrSign.e2, &ctx->AggrSign.e2);
miller_loop_n(GT, (const POINTonE2_affine *)&AggrSign.e2,
(const POINTonE1_affine *)&BLS12_381_G1, 1);
break;
default:
return 0;
}
} else {
/*
* The aggregated signature was infinite, relation between the
* hashes and the public keys has to be VERY special...
*/
vec_copy(GT, BLS12_381_Rx.p12, sizeof(GT));
}
conjugate_fp12(GT);
mul_fp12(GT, GT, ctx->GT);
final_exp(GT, GT);
/* return GT==1 */
return vec_is_equal(GT[0][0], BLS12_381_Rx.p2, sizeof(GT[0][0])) &
vec_is_zero(GT[0][1], sizeof(GT) - sizeof(GT[0][0]));
}
|
O1
|
c
|
PAIRING_FinalVerify:
movl (%rdi), %eax
testb $0x20, %al
jne 0x661c6
xorl %eax, %eax
retq
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x360, %rsp # imm = 0x360
movq %rdi, %rbx
testq %rsi, %rsi
jne 0x661eb
testb $0x10, %al
jne 0x66266
leaq 0x2aa8d(%rip), %rsi # 0x90c78
leaq -0x250(%rbp), %rdi
movl $0x240, %edx # imm = 0x240
callq 0x22090
leaq -0x130(%rbp), %rdi
movq %rdi, %rsi
callq 0x6c80d
addq $0x18, %rbx
leaq -0x250(%rbp), %r14
movq %r14, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x63d36
movq %r14, %rdi
movq %r14, %rsi
callq 0x651ac
leaq 0x2aa42(%rip), %rsi # 0x90c78
movl $0x60, %edx
movq %r14, %rdi
callq 0x74d80
movq %rax, %rbx
leaq -0x1f0(%rbp), %rdi
movl $0x1e0, %esi # imm = 0x1E0
callq 0x74d40
andq %rbx, %rax
addq $0x360, %rsp # imm = 0x360
popq %rbx
popq %r14
popq %rbp
retq
andl $0x3, %eax
cmpl $0x2, %eax
je 0x662a1
cmpl $0x1, %eax
jne 0x662d7
leaq 0x258(%rbx), %rsi
leaq -0x370(%rbp), %r14
movq %r14, %rdi
callq 0x5d998
leaq 0x2a770(%rip), %rsi # 0x90a00
leaq -0x250(%rbp), %rdi
movl $0x1, %ecx
movq %r14, %rdx
jmp 0x662cd
leaq 0x258(%rbx), %rsi
leaq -0x370(%rbp), %r14
movq %r14, %rdi
callq 0x6073e
leaq 0x2a602(%rip), %rdx # 0x908c0
leaq -0x250(%rbp), %rdi
movl $0x1, %ecx
movq %r14, %rsi
callq 0x64b11
jmp 0x661fc
xorl %eax, %eax
jmp 0x6625a
|
PAIRING_FinalVerify:
mov eax, [rdi]
test al, 20h
jnz short loc_661C6
xor eax, eax
retn
loc_661C6:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 360h
mov rbx, rdi
test rsi, rsi
jnz short loc_661EB
test al, 10h
jnz loc_66266
lea rsi, BLS12_381_Rx
loc_661EB:
lea rdi, [rbp-250h]
mov edx, 240h
call _memcpy
loc_661FC:
lea rdi, [rbp-130h]
mov rsi, rdi
call neg_fp6
add rbx, 18h
lea r14, [rbp-250h]
mov rdi, r14
mov rsi, r14
mov rdx, rbx
call mul_fp12
mov rdi, r14
mov rsi, r14
call final_exp
lea rsi, BLS12_381_Rx
mov edx, 60h ; '`'
mov rdi, r14
call vec_is_equal_16x
mov rbx, rax
lea rdi, [rbp-1F0h]
mov esi, 1E0h
call vec_is_zero_16x
and rax, rbx
loc_6625A:
add rsp, 360h
pop rbx
pop r14
pop rbp
retn
loc_66266:
and eax, 3
cmp eax, 2
jz short loc_662A1
cmp eax, 1
jnz short loc_662D7
lea rsi, [rbx+258h]
lea r14, [rbp-370h]
mov rdi, r14
call POINTonE1_from_Jacobian
lea rsi, BLS12_381_G2
lea rdi, [rbp-250h]
mov ecx, 1
mov rdx, r14
jmp short loc_662CD
loc_662A1:
lea rsi, [rbx+258h]
lea r14, [rbp-370h]
mov rdi, r14
call POINTonE2_from_Jacobian
lea rdx, BLS12_381_G1
lea rdi, [rbp-250h]
mov ecx, 1
mov rsi, r14
loc_662CD:
call miller_loop_n
jmp loc_661FC
loc_662D7:
xor eax, eax
jmp loc_6625A
|
long long PAIRING_FinalVerify(_DWORD *a1, long long a2)
{
long long is_equal_16x; // rbx
int v4; // eax
_BYTE *v5; // rsi
_BYTE *v6; // rdx
_BYTE v7[288]; // [rsp-378h] [rbp-378h] BYREF
_BYTE v8[96]; // [rsp-258h] [rbp-258h] BYREF
long long v9; // [rsp-1F8h] [rbp-1F8h] BYREF
_BYTE v10[312]; // [rsp-138h] [rbp-138h] BYREF
if ( (*a1 & 0x20) == 0 )
return 0LL;
if ( !a2 && (*a1 & 0x10) != 0 )
{
v4 = *a1 & 3;
if ( v4 == 2 )
{
POINTonE2_from_Jacobian((long long)v7, (long long)(a1 + 150));
v6 = &BLS12_381_G1;
v5 = v7;
}
else
{
if ( v4 != 1 )
return 0LL;
POINTonE1_from_Jacobian((long long)v7, (long long)(a1 + 150));
v5 = &BLS12_381_G2;
v6 = v7;
}
miller_loop_n((long long)v8, (long long)v5, (long long)v6, 1LL);
}
else
{
memcpy(v8);
}
neg_fp6(v10, v10);
mul_fp12((long long)v8, (long long)v8, (long long)(a1 + 6));
final_exp((long long)v8, (long long)v8);
is_equal_16x = vec_is_equal_16x(v8, &BLS12_381_Rx, 96LL);
return is_equal_16x & vec_is_zero_16x(&v9, 480LL);
}
|
PAIRING_FinalVerify:
MOV EAX,dword ptr [RDI]
TEST AL,0x20
JNZ 0x001661c6
XOR EAX,EAX
RET
LAB_001661c6:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0x360
MOV RBX,RDI
TEST RSI,RSI
JNZ 0x001661eb
TEST AL,0x10
JNZ 0x00166266
LEA RSI,[0x190c78]
LAB_001661eb:
LEA RDI,[RBP + -0x250]
MOV EDX,0x240
CALL 0x00122090
LAB_001661fc:
LEA RDI,[RBP + -0x130]
MOV RSI,RDI
CALL 0x0016c80d
ADD RBX,0x18
LEA R14,[RBP + -0x250]
MOV RDI,R14
MOV RSI,R14
MOV RDX,RBX
CALL 0x00163d36
MOV RDI,R14
MOV RSI,R14
CALL 0x001651ac
LEA RSI,[0x190c78]
MOV EDX,0x60
MOV RDI,R14
CALL 0x00174d80
MOV RBX,RAX
LEA RDI,[RBP + -0x1f0]
MOV ESI,0x1e0
CALL 0x00174d40
AND RAX,RBX
LAB_0016625a:
ADD RSP,0x360
POP RBX
POP R14
POP RBP
RET
LAB_00166266:
AND EAX,0x3
CMP EAX,0x2
JZ 0x001662a1
CMP EAX,0x1
JNZ 0x001662d7
LEA RSI,[RBX + 0x258]
LEA R14,[RBP + -0x370]
MOV RDI,R14
CALL 0x0015d998
LEA RSI,[0x190a00]
LEA RDI,[RBP + -0x250]
MOV ECX,0x1
MOV RDX,R14
JMP 0x001662cd
LAB_001662a1:
LEA RSI,[RBX + 0x258]
LEA R14,[RBP + -0x370]
MOV RDI,R14
CALL 0x0016073e
LEA RDX,[0x1908c0]
LEA RDI,[RBP + -0x250]
MOV ECX,0x1
MOV RSI,R14
LAB_001662cd:
CALL 0x00164b11
JMP 0x001661fc
LAB_001662d7:
XOR EAX,EAX
JMP 0x0016625a
|
ulong PAIRING_FinalVerify(uint *param_1,int8 *param_2)
{
uint uVar1;
ulong uVar2;
ulong uVar3;
int1 *puVar4;
int1 *puVar5;
int1 local_378 [288];
int1 local_258 [96];
int1 local_1f8 [192];
int1 local_138 [288];
uVar1 = *param_1;
if ((uVar1 & 0x20) == 0) {
return 0;
}
if (param_2 == (int8 *)0x0) {
if ((uVar1 & 0x10) != 0) {
if ((uVar1 & 3) == 2) {
puVar5 = local_378;
POINTonE2_from_Jacobian(puVar5,param_1 + 0x96);
puVar4 = BLS12_381_G1;
}
else {
if ((uVar1 & 3) != 1) {
return 0;
}
puVar4 = local_378;
POINTonE1_from_Jacobian(puVar4,param_1 + 0x96);
puVar5 = BLS12_381_G2;
}
miller_loop_n(local_258,puVar5,puVar4,1);
goto LAB_001661fc;
}
param_2 = &BLS12_381_Rx;
}
memcpy(local_258,param_2,0x240);
LAB_001661fc:
neg_fp6(local_138,local_138);
mul_fp12(local_258,local_258,param_1 + 6);
final_exp(local_258,local_258);
uVar2 = vec_is_equal_16x(local_258,&BLS12_381_Rx,0x60);
uVar3 = vec_is_zero_16x(local_1f8,0x1e0);
return uVar3 & uVar2;
}
|
|
59,643
|
fmt::v10::basic_memory_buffer<char, 500ul, std::allocator<char>>::grow(unsigned long)
|
AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/fmt/bundled/format.h
|
FMT_CONSTEXPR20 void grow(size_t size) override {
detail::abort_fuzzing_if(size > 5000);
const size_t max_size = std::allocator_traits<Allocator>::max_size(alloc_);
size_t old_capacity = this->capacity();
size_t new_capacity = old_capacity + old_capacity / 2;
if (size > new_capacity)
new_capacity = size;
else if (new_capacity > max_size)
new_capacity = size > max_size ? size : max_size;
T* old_data = this->data();
T* new_data =
std::allocator_traits<Allocator>::allocate(alloc_, new_capacity);
// Suppress a bogus -Wstringop-overflow in gcc 13.1 (#3481).
detail::assume(this->size() <= new_capacity);
// The following code doesn't throw, so the raw pointer above doesn't leak.
std::uninitialized_copy_n(old_data, this->size(), new_data);
this->set(new_data, new_capacity);
// deallocate must not throw according to the standard, but even if it does,
// the buffer already uses the new storage and will deallocate it in
// destructor.
if (old_data != store_) alloc_.deallocate(old_data, old_capacity);
}
|
O0
|
c
|
fmt::v10::basic_memory_buffer<char, 500ul, std::allocator<char>>::grow(unsigned long):
subq $0x78, %rsp
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x18(%rsp)
cmpq $0x1388, 0x48(%rsp) # imm = 0x1388
seta %al
movzbl %al, %edi
andl $0x1, %edi
callq 0x24680
movq 0x18(%rsp), %rdi
callq 0x2e6a0
movq 0x18(%rsp), %rdi
movq %rax, 0x40(%rsp)
callq 0xd4da0
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq 0x38(%rsp), %rcx
shrq %rcx
addq %rcx, %rax
movq %rax, 0x30(%rsp)
movq 0x48(%rsp), %rax
cmpq 0x30(%rsp), %rax
jbe 0xd4c9a
movq 0x48(%rsp), %rax
movq %rax, 0x30(%rsp)
jmp 0xd4cd4
movq 0x30(%rsp), %rax
cmpq 0x40(%rsp), %rax
jbe 0xd4cd2
movq 0x48(%rsp), %rax
cmpq 0x40(%rsp), %rax
jbe 0xd4cbe
movq 0x48(%rsp), %rax
movq %rax, 0x10(%rsp)
jmp 0xd4cc8
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x30(%rsp)
jmp 0xd4cd4
movq 0x18(%rsp), %rdi
callq 0xd4db0
movq 0x18(%rsp), %rdi
movq %rax, 0x28(%rsp)
movq 0x30(%rsp), %rsi
callq 0x2e7d0
movq 0x18(%rsp), %rdi
movq %rax, 0x20(%rsp)
callq 0xd4b10
movq 0x18(%rsp), %rdi
cmpq 0x30(%rsp), %rax
setbe %al
andb $0x1, %al
movb %al, 0x5f(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x8(%rsp)
callq 0xd4b10
movq 0x8(%rsp), %rdi
movq %rax, %rsi
movq 0x20(%rsp), %rdx
callq 0xd4dc0
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq 0xd4bf0
movq 0x18(%rsp), %rcx
movq 0x28(%rsp), %rax
addq $0x20, %rcx
cmpq %rcx, %rax
je 0xd4d8e
movq 0x18(%rsp), %rdx
movq 0x28(%rsp), %rcx
movq 0x38(%rsp), %rax
movq %rdx, 0x70(%rsp)
movq %rcx, 0x68(%rsp)
movq %rax, 0x60(%rsp)
movq 0x70(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq 0x60(%rsp), %rdx
callq 0x2eb70
addq $0x78, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
|
_ZN3fmt3v1019basic_memory_bufferIiLm500ESaIiEE4growEm:
sub rsp, 78h
mov [rsp+78h+var_28], rdi
mov [rsp+78h+var_30], rsi
mov rax, [rsp+78h+var_28]
mov [rsp+78h+var_60], rax
cmp [rsp+78h+var_30], 1388h
setnbe al
movzx edi, al
and edi, 1; this
call _ZN3fmt3v106detail16abort_fuzzing_ifEb; fmt::v10::detail::abort_fuzzing_if(bool)
mov rdi, [rsp+78h+var_60]
call _ZNSt16allocator_traitsISaIiEE8max_sizeERKS0_; std::allocator_traits<std::allocator<int>>::max_size(std::allocator<int> const&)
mov rdi, [rsp+78h+var_60]
mov [rsp+78h+var_38], rax
call _ZNK3fmt3v106detail6bufferIiE8capacityEv; fmt::v10::detail::buffer<int>::capacity(void)
mov [rsp+78h+var_40], rax
mov rax, [rsp+78h+var_40]
mov rcx, [rsp+78h+var_40]
shr rcx, 1
add rax, rcx
mov [rsp+78h+var_48], rax
mov rax, [rsp+78h+var_30]
cmp rax, [rsp+78h+var_48]
jbe short loc_D4C9A
mov rax, [rsp+78h+var_30]
mov [rsp+78h+var_48], rax
jmp short loc_D4CD4
loc_D4C9A:
mov rax, [rsp+78h+var_48]
cmp rax, [rsp+78h+var_38]
jbe short loc_D4CD2
mov rax, [rsp+78h+var_30]
cmp rax, [rsp+78h+var_38]
jbe short loc_D4CBE
mov rax, [rsp+78h+var_30]
mov [rsp+78h+var_68], rax
jmp short loc_D4CC8
loc_D4CBE:
mov rax, [rsp+78h+var_38]
mov [rsp+78h+var_68], rax
loc_D4CC8:
mov rax, [rsp+78h+var_68]
mov [rsp+78h+var_48], rax
loc_D4CD2:
jmp short $+2
loc_D4CD4:
mov rdi, [rsp+78h+var_60]
call _ZN3fmt3v106detail6bufferIiE4dataEv; fmt::v10::detail::buffer<int>::data(void)
mov rdi, [rsp+78h+var_60]
mov [rsp+78h+var_50], rax
mov rsi, [rsp+78h+var_48]
call _ZNSt16allocator_traitsISaIiEE8allocateERS0_m; std::allocator_traits<std::allocator<int>>::allocate(std::allocator<int>&,ulong)
mov rdi, [rsp+78h+var_60]
mov [rsp+78h+var_58], rax
call _ZNK3fmt3v106detail6bufferIiE4sizeEv; fmt::v10::detail::buffer<int>::size(void)
mov rdi, [rsp+78h+var_60]
cmp rax, [rsp+78h+var_48]
setbe al
and al, 1
mov [rsp+78h+var_19], al
mov rax, [rsp+78h+var_50]
mov [rsp+78h+var_70], rax
call _ZNK3fmt3v106detail6bufferIiE4sizeEv; fmt::v10::detail::buffer<int>::size(void)
mov rdi, [rsp+78h+var_70]
mov rsi, rax
mov rdx, [rsp+78h+var_58]
call _ZSt20uninitialized_copy_nIPimS0_ET1_T_T0_S1_; std::uninitialized_copy_n<int *,ulong,int *>(int *,ulong,int *)
mov rdi, [rsp+78h+var_60]
mov rsi, [rsp+78h+var_58]
mov rdx, [rsp+78h+var_48]
call _ZN3fmt3v106detail6bufferIiE3setEPim; fmt::v10::detail::buffer<int>::set(int *,ulong)
mov rcx, [rsp+78h+var_60]
mov rax, [rsp+78h+var_50]
add rcx, 20h ; ' '
cmp rax, rcx
jz short loc_D4D8E
mov rdx, [rsp+78h+var_60]
mov rcx, [rsp+78h+var_50]
mov rax, [rsp+78h+var_40]
mov [rsp+78h+var_8], rdx
mov [rsp+78h+var_10], rcx
mov [rsp+78h+var_18], rax
mov rdi, [rsp+78h+var_8]
mov rsi, [rsp+78h+var_10]
mov rdx, [rsp+78h+var_18]
call _ZN9__gnu_cxx13new_allocatorIiE10deallocateEPim; __gnu_cxx::new_allocator<int>::deallocate(int *,ulong)
loc_D4D8E:
add rsp, 78h
retn
|
void fmt::v10::basic_memory_buffer<int,500ul,std::allocator<int>>::grow(long long a1, unsigned long long a2)
{
long long v2; // rax
unsigned long long v3; // [rsp+10h] [rbp-68h]
long long v4; // [rsp+20h] [rbp-58h]
void *v5; // [rsp+28h] [rbp-50h]
unsigned long long v6; // [rsp+30h] [rbp-48h]
unsigned long long v7; // [rsp+38h] [rbp-40h]
unsigned long long v8; // [rsp+40h] [rbp-38h]
fmt::v10::detail::abort_fuzzing_if((fmt::v10::detail *)(a2 > 0x1388));
v8 = std::allocator_traits<std::allocator<int>>::max_size();
v7 = fmt::v10::detail::buffer<int>::capacity(a1);
v6 = (v7 >> 1) + v7;
if ( a2 <= v6 )
{
if ( v6 > v8 )
{
if ( a2 <= v8 )
v3 = v8;
else
v3 = a2;
v6 = v3;
}
}
else
{
v6 = a2;
}
v5 = (void *)fmt::v10::detail::buffer<int>::data(a1);
v4 = std::allocator_traits<std::allocator<int>>::allocate(a1, v6);
fmt::v10::detail::buffer<int>::size(a1);
v2 = fmt::v10::detail::buffer<int>::size(a1);
std::uninitialized_copy_n<int *,unsigned long,int *>(v5, v2, v4);
fmt::v10::detail::buffer<int>::set(a1, v4, v6);
if ( v5 != (void *)(a1 + 32) )
__gnu_cxx::new_allocator<int>::deallocate(a1, v5, v7);
}
|
grow:
SUB RSP,0x78
MOV qword ptr [RSP + 0x50],RDI
MOV qword ptr [RSP + 0x48],RSI
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x18],RAX
CMP qword ptr [RSP + 0x48],0x1388
SETA AL
MOVZX EDI,AL
AND EDI,0x1
CALL 0x00124680
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x0012e6a0
MOV RDI,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x40],RAX
CALL 0x001d4da0
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV RCX,qword ptr [RSP + 0x38]
SHR RCX,0x1
ADD RAX,RCX
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0x48]
CMP RAX,qword ptr [RSP + 0x30]
JBE 0x001d4c9a
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x30],RAX
JMP 0x001d4cd4
LAB_001d4c9a:
MOV RAX,qword ptr [RSP + 0x30]
CMP RAX,qword ptr [RSP + 0x40]
JBE 0x001d4cd2
MOV RAX,qword ptr [RSP + 0x48]
CMP RAX,qword ptr [RSP + 0x40]
JBE 0x001d4cbe
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x10],RAX
JMP 0x001d4cc8
LAB_001d4cbe:
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x10],RAX
LAB_001d4cc8:
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x30],RAX
LAB_001d4cd2:
JMP 0x001d4cd4
LAB_001d4cd4:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001d4db0
MOV RDI,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x28],RAX
MOV RSI,qword ptr [RSP + 0x30]
CALL 0x0012e7d0
MOV RDI,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x20],RAX
CALL 0x001d4b10
MOV RDI,qword ptr [RSP + 0x18]
CMP RAX,qword ptr [RSP + 0x30]
SETBE AL
AND AL,0x1
MOV byte ptr [RSP + 0x5f],AL
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x8],RAX
CALL 0x001d4b10
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,RAX
MOV RDX,qword ptr [RSP + 0x20]
CALL 0x001d4dc0
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x30]
CALL 0x001d4bf0
MOV RCX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RSP + 0x28]
ADD RCX,0x20
CMP RAX,RCX
JZ 0x001d4d8e
MOV RDX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x70],RDX
MOV qword ptr [RSP + 0x68],RCX
MOV qword ptr [RSP + 0x60],RAX
MOV RDI,qword ptr [RSP + 0x70]
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x60]
CALL 0x0012eb70
LAB_001d4d8e:
ADD RSP,0x78
RET
|
/* fmt::v10::basic_memory_buffer<int, 500ul, std::allocator<int> >::grow(unsigned long) */
void __thiscall
fmt::v10::basic_memory_buffer<int,500ul,std::allocator<int>>::grow
(basic_memory_buffer<int,500ul,std::allocator<int>> *this,ulong param_1)
{
ulong uVar1;
ulong uVar2;
basic_memory_buffer<int,500ul,std::allocator<int>> *pbVar3;
int *piVar4;
ulong local_68;
ulong local_48;
v10::detail::abort_fuzzing_if(5000 < param_1);
local_68 = std::allocator_traits<std::allocator<int>>::max_size((allocator *)this);
uVar1 = v10::detail::buffer<int>::capacity((buffer<int> *)this);
uVar2 = uVar1 + (uVar1 >> 1);
local_48 = param_1;
if ((param_1 <= uVar2) && (local_48 = uVar2, local_68 < uVar2)) {
if (local_68 < param_1) {
local_68 = param_1;
}
local_48 = local_68;
}
pbVar3 = (basic_memory_buffer<int,500ul,std::allocator<int>> *)
v10::detail::buffer<int>::data((buffer<int> *)this);
piVar4 = (int *)std::allocator_traits<std::allocator<int>>::allocate((allocator *)this,local_48);
v10::detail::buffer<int>::size((buffer<int> *)this);
uVar2 = v10::detail::buffer<int>::size((buffer<int> *)this);
std::uninitialized_copy_n<int*,unsigned_long,int*>((int *)pbVar3,uVar2,piVar4);
v10::detail::buffer<int>::set((buffer<int> *)this,piVar4,local_48);
if (pbVar3 != this + 0x20) {
__gnu_cxx::new_allocator<int>::deallocate((new_allocator<int> *)this,(int *)pbVar3,uVar1);
}
return;
}
|
|
59,644
|
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;
}
|
O0
|
c
|
ha_find_null:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movzbl 0x18(%rax), %eax
cmpl $0x0, %eax
je 0xf2702
movq -0x10(%rbp), %rax
cmpb $0x0, 0x19(%rax)
je 0xf257a
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
cmpb $0x0, (%rax)
jne 0xf2578
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xf270a
jmp 0xf257a
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movzwl 0x14(%rcx), %ecx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movzbl 0x18(%rax), %eax
movq %rax, -0x38(%rbp)
subq $0x13, %rax
ja 0xf26ef
movq -0x38(%rbp), %rax
leaq 0x67282(%rip), %rcx # 0x159830
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x10(%rbp), %rax
movzwl 0x12(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0xf262f
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xff, %eax
je 0xf25ec
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
movzbl (%rax), %eax
movl %eax, -0x24(%rbp)
jmp 0xf2619
movq -0x18(%rbp), %rax
movzbl 0x2(%rax), %eax
movzwl %ax, %eax
movq -0x18(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movzwl %ax, %eax
movl %eax, -0x24(%rbp)
movq -0x18(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x18(%rbp)
movl -0x24(%rbp), %ecx
movq -0x18(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
jmp 0xf26ef
movq -0x20(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0xf26ef
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xff, %eax
je 0xf2661
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
movzbl (%rax), %eax
movl %eax, -0x28(%rbp)
jmp 0xf268e
movq -0x18(%rbp), %rax
movzbl 0x2(%rax), %eax
movzwl %ax, %eax
movq -0x18(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movzwl %ax, %eax
movl %eax, -0x28(%rbp)
movq -0x18(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x18(%rbp)
movl -0x28(%rbp), %ecx
movq -0x18(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
jmp 0xf26ef
movq -0x10(%rbp), %rax
movzwl 0x12(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0xf26d5
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
movslq -0x2c(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0xf26ef
movq -0x20(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0xf26ef
jmp 0xf26eb
jmp 0xf26ed
jmp 0xf26ef
jmp 0xf26f1
movq -0x10(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x10(%rbp)
jmp 0xf253c
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
|
ha_find_null:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
loc_F253C:
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax+18h]
cmp eax, 0
jz loc_F2702
mov rax, [rbp+var_10]
cmp byte ptr [rax+19h], 0
jz short loc_F257A
mov rax, [rbp+var_18]
mov rcx, rax
add rcx, 1
mov [rbp+var_18], rcx
cmp byte ptr [rax], 0
jnz short loc_F2578
mov rax, [rbp+var_10]
mov [rbp+var_8], rax
jmp loc_F270A
loc_F2578:
jmp short $+2
loc_F257A:
mov rax, [rbp+var_18]
mov rcx, [rbp+var_10]
movzx ecx, word ptr [rcx+14h]
add rax, rcx
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax+18h]
mov [rbp+var_38], rax
sub rax, 13h; switch 20 cases
ja def_F25B5; jumptable 00000000000F25B5 default case
mov rax, [rbp+var_38]
lea rcx, jpt_F25B5
movsxd rax, ds:(jpt_F25B5 - 159830h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_F25B7:
mov rax, [rbp+var_10]; jumptable 00000000000F25B5 cases 1,2,19
movzx eax, word ptr [rax+12h]
and eax, 1
cmp eax, 0
jz short loc_F262F
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax]
cmp eax, 0FFh
jz short loc_F25EC
mov rax, [rbp+var_18]
mov rcx, rax
add rcx, 1
mov [rbp+var_18], rcx
movzx eax, byte ptr [rax]
mov [rbp+var_24], eax
jmp short loc_F2619
loc_F25EC:
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+2]
movzx eax, ax
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+1]
movzx ecx, cx
shl ecx, 8
or eax, ecx
movzx eax, ax
mov [rbp+var_24], eax
mov rax, [rbp+var_18]
add rax, 3
mov [rbp+var_18], rax
loc_F2619:
mov ecx, [rbp+var_24]
mov rax, [rbp+var_18]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_18], rax
jmp def_F25B5; jumptable 00000000000F25B5 default case
loc_F262F:
mov rax, [rbp+var_20]
mov [rbp+var_18], rax
jmp def_F25B5; jumptable 00000000000F25B5 default case
loc_F263C:
mov rax, [rbp+var_18]; jumptable 00000000000F25B5 cases 15-18
movzx eax, byte ptr [rax]
cmp eax, 0FFh
jz short loc_F2661
mov rax, [rbp+var_18]
mov rcx, rax
add rcx, 1
mov [rbp+var_18], rcx
movzx eax, byte ptr [rax]
mov [rbp+var_28], eax
jmp short loc_F268E
loc_F2661:
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+2]
movzx eax, ax
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+1]
movzx ecx, cx
shl ecx, 8
or eax, ecx
movzx eax, ax
mov [rbp+var_28], eax
mov rax, [rbp+var_18]
add rax, 3
mov [rbp+var_18], rax
loc_F268E:
mov ecx, [rbp+var_28]
mov rax, [rbp+var_18]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_18], rax
jmp short def_F25B5; jumptable 00000000000F25B5 default case
loc_F26A1:
mov rax, [rbp+var_10]; jumptable 00000000000F25B5 case 7
movzx eax, word ptr [rax+12h]
and eax, 1
cmp eax, 0
jz short loc_F26D5
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]
movsxd rcx, [rbp+var_2C]
add rax, rcx
mov [rbp+var_20], rax
loc_F26D5:
mov rax, [rbp+var_20]
mov [rbp+var_18], rax
jmp short def_F25B5; jumptable 00000000000F25B5 default case
loc_F26DF:
mov rax, [rbp+var_20]; jumptable 00000000000F25B5 cases 3-6,8-14
mov [rbp+var_18], rax
jmp short def_F25B5; jumptable 00000000000F25B5 default case
loc_F26E9:
jmp short $+2; jumptable 00000000000F25B5 case 0
loc_F26EB:
jmp short $+2
loc_F26ED:
jmp short $+2; jumptable 00000000000F25B5 default case
def_F25B5:
jmp short $+2; jumptable 00000000000F25B5 default case
loc_F26F1:
mov rax, [rbp+var_10]
add rax, 20h ; ' '
mov [rbp+var_10], rax
jmp loc_F253C
loc_F2702:
mov rax, [rbp+var_10]
mov [rbp+var_8], rax
loc_F270A:
mov rax, [rbp+var_8]
pop rbp
retn
|
long long ha_find_null(long long a1, unsigned __int8 *a2)
{
unsigned __int8 *v2; // rax
unsigned __int8 *v3; // rax
unsigned __int8 *v4; // rax
int v6; // [rsp+10h] [rbp-28h]
int v7; // [rsp+14h] [rbp-24h]
long long v8; // [rsp+18h] [rbp-20h]
unsigned __int8 *v10; // [rsp+20h] [rbp-18h]
unsigned __int8 *v11; // [rsp+20h] [rbp-18h]
while ( *(_BYTE *)(a1 + 24) )
{
if ( *(_BYTE *)(a1 + 25) )
{
v2 = a2++;
if ( !*v2 )
return a1;
}
v8 = (long long)&a2[*(unsigned __int16 *)(a1 + 20)];
switch ( *(_BYTE *)(a1 + 24) )
{
case 1:
case 2:
case 0x13:
if ( (*(_WORD *)(a1 + 18) & 1) != 0 )
{
if ( *a2 == 255 )
{
v7 = _byteswap_ushort(*(_WORD *)(a2 + 1));
v10 = a2 + 3;
}
else
{
v3 = a2;
v10 = a2 + 1;
v7 = *v3;
}
a2 = &v10[v7];
}
else
{
a2 += *(unsigned __int16 *)(a1 + 20);
}
break;
case 3:
case 4:
case 5:
case 6:
case 8:
case 9:
case 0xA:
case 0xB:
case 0xC:
case 0xD:
case 0xE:
a2 += *(unsigned __int16 *)(a1 + 20);
break;
case 7:
if ( (*(_WORD *)(a1 + 18) & 1) != 0 )
v8 = (long long)&a2[*a2 + 1];
a2 = (unsigned __int8 *)v8;
break;
case 0xF:
case 0x10:
case 0x11:
case 0x12:
if ( *a2 == 255 )
{
v6 = _byteswap_ushort(*(_WORD *)(a2 + 1));
v11 = a2 + 3;
}
else
{
v4 = a2;
v11 = a2 + 1;
v6 = *v4;
}
a2 = &v11[v6];
break;
default:
break;
}
a1 += 32LL;
}
return a1;
}
|
ha_find_null:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
LAB_001f253c:
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX + 0x18]
CMP EAX,0x0
JZ 0x001f2702
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX + 0x19],0x0
JZ 0x001f257a
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x18],RCX
CMP byte ptr [RAX],0x0
JNZ 0x001f2578
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001f270a
LAB_001f2578:
JMP 0x001f257a
LAB_001f257a:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
MOVZX ECX,word ptr [RCX + 0x14]
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x38],RAX
SUB RAX,0x13
JA 0x001f26ef
MOV RAX,qword ptr [RBP + -0x38]
LEA RCX,[0x259830]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_1:
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,word ptr [RAX + 0x12]
AND EAX,0x1
CMP EAX,0x0
JZ 0x001f262f
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xff
JZ 0x001f25ec
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 + -0x24],EAX
JMP 0x001f2619
LAB_001f25ec:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x2]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x1]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOVZX EAX,AX
MOV dword ptr [RBP + -0x24],EAX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x3
MOV qword ptr [RBP + -0x18],RAX
LAB_001f2619:
MOV ECX,dword ptr [RBP + -0x24]
MOV RAX,qword ptr [RBP + -0x18]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001f26ef
LAB_001f262f:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001f26ef
caseD_f:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xff
JZ 0x001f2661
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 + -0x28],EAX
JMP 0x001f268e
LAB_001f2661:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x2]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x1]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOVZX EAX,AX
MOV dword ptr [RBP + -0x28],EAX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x3
MOV qword ptr [RBP + -0x18],RAX
LAB_001f268e:
MOV ECX,dword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x18]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001f26ef
caseD_7:
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,word ptr [RAX + 0x12]
AND EAX,0x1
CMP EAX,0x0
JZ 0x001f26d5
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]
MOVSXD RCX,dword ptr [RBP + -0x2c]
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
LAB_001f26d5:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001f26ef
caseD_3:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001f26ef
caseD_0:
JMP 0x001f26eb
LAB_001f26eb:
JMP 0x001f26ed
LAB_001f26ed:
JMP 0x001f26ef
default:
JMP 0x001f26f1
LAB_001f26f1:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x20
MOV qword ptr [RBP + -0x10],RAX
JMP 0x001f253c
LAB_001f2702:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x8],RAX
LAB_001f270a:
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
long ha_find_null(long param_1,byte *param_2)
{
byte bVar1;
byte *pbVar2;
uint local_30;
uint local_2c;
byte *local_28;
byte *local_20;
long local_18;
local_20 = param_2;
local_18 = param_1;
while ((*(char *)(local_18 + 0x18) != '\0' &&
((*(char *)(local_18 + 0x19) == '\0' ||
(bVar1 = *local_20, local_20 = local_20 + 1, bVar1 != 0))))) {
local_28 = local_20 + *(ushort *)(local_18 + 0x14);
pbVar2 = local_20;
switch(*(int1 *)(local_18 + 0x18)) {
case 0:
break;
case 1:
case 2:
case 0x13:
pbVar2 = local_28;
if ((*(ushort *)(local_18 + 0x12) & 1) != 0) {
if (*local_20 == 0xff) {
local_2c = (uint)CONCAT11(local_20[1],local_20[2]);
local_20 = local_20 + 3;
}
else {
local_2c = (uint)*local_20;
local_20 = local_20 + 1;
}
pbVar2 = local_20 + (int)local_2c;
}
break;
case 3:
case 4:
case 5:
case 6:
case 8:
case 9:
case 10:
case 0xb:
case 0xc:
case 0xd:
case 0xe:
pbVar2 = local_28;
break;
case 7:
if ((*(ushort *)(local_18 + 0x12) & 1) != 0) {
local_28 = local_20 + (long)(int)(uint)*local_20 + 1;
}
local_20 = local_28;
pbVar2 = local_20;
break;
case 0xf:
case 0x10:
case 0x11:
case 0x12:
if (*local_20 == 0xff) {
local_30 = (uint)CONCAT11(local_20[1],local_20[2]);
local_20 = local_20 + 3;
}
else {
local_30 = (uint)*local_20;
local_20 = local_20 + 1;
}
pbVar2 = local_20 + (int)local_30;
}
local_20 = pbVar2;
local_18 = local_18 + 0x20;
}
return local_18;
}
|
|
59,645
|
LefDefParser::defwBlockagesLayerFills()
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defwWriter.cpp
|
int
defwBlockagesLayerFills()
{
defwFunc = DEFW_BLOCKAGE_LAYER; // Current function of writer
if (!defwFile)
return DEFW_UNINITIALIZED;
if ((defwState != DEFW_BLOCKAGE_LAYER) && (defwState != DEFW_BLOCKAGE_RECT))
return DEFW_BAD_ORDER;
if (defwBlockageHasSF)
return DEFW_BAD_DATA;
if (defwState == DEFW_BLOCKAGE_RECT)
fprintf(defwFile, " ;\n"); // end the previous rectangle
fprintf(defwFile, " + FILLS\n");
defwLines++;
defwState = DEFW_BLOCKAGE_LAYER;
defwBlockageHasSF = 1;
return DEFW_OK;
}
|
O0
|
cpp
|
LefDefParser::defwBlockagesLayerFills():
pushq %rax
leaq 0xcba0(%rip), %rax # 0x2b168
movl $0x2c, (%rax)
leaq 0xcb83(%rip), %rax # 0x2b158
cmpq $0x0, (%rax)
jne 0x1e5e8
movl $0x1, 0x4(%rsp)
jmp 0x1e690
leaq 0xcb75(%rip), %rax # 0x2b164
cmpl $0x2c, (%rax)
je 0x1e60d
leaq 0xcb69(%rip), %rax # 0x2b164
cmpl $0x2e, (%rax)
je 0x1e60d
movl $0x2, 0x4(%rsp)
jmp 0x1e690
cmpl $0x0, 0xcb88(%rip) # 0x2b19c
je 0x1e620
movl $0x3, 0x4(%rsp)
jmp 0x1e690
leaq 0xcb3d(%rip), %rax # 0x2b164
cmpl $0x2e, (%rax)
jne 0x1e644
leaq 0xcb25(%rip), %rax # 0x2b158
movq (%rax), %rdi
leaq 0x5815(%rip), %rsi # 0x23e52
movb $0x0, %al
callq 0x10f0
leaq 0xcb0d(%rip), %rax # 0x2b158
movq (%rax), %rdi
leaq 0x69d6(%rip), %rsi # 0x2502b
movb $0x0, %al
callq 0x10f0
leaq 0xcafd(%rip), %rax # 0x2b160
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0xcaf1(%rip), %rax # 0x2b160
movl %ecx, (%rax)
leaq 0xcaec(%rip), %rax # 0x2b164
movl $0x2c, (%rax)
movl $0x1, 0xcb14(%rip) # 0x2b19c
movl $0x0, 0x4(%rsp)
movl 0x4(%rsp), %eax
popq %rcx
retq
nopw %cs:(%rax,%rax)
|
_ZN12LefDefParser23defwBlockagesLayerFillsEv:
push rax
lea rax, _ZN12LefDefParser8defwFuncE; LefDefParser::defwFunc
mov dword ptr [rax], 2Ch ; ','
lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile
cmp qword ptr [rax], 0
jnz short loc_1E5E8
mov [rsp+8+var_4], 1
jmp loc_1E690
loc_1E5E8:
lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState
cmp dword ptr [rax], 2Ch ; ','
jz short loc_1E60D
lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState
cmp dword ptr [rax], 2Eh ; '.'
jz short loc_1E60D
mov [rsp+8+var_4], 2
jmp loc_1E690
loc_1E60D:
cmp cs:_ZN12LefDefParserL17defwBlockageHasSFE, 0; LefDefParser::defwBlockageHasSF
jz short loc_1E620
mov [rsp+8+var_4], 3
jmp short loc_1E690
loc_1E620:
lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState
cmp dword ptr [rax], 2Eh ; '.'
jnz short loc_1E644
lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile
mov rdi, [rax]
lea rsi, aDividercharS+10h; " ;\n"
mov al, 0
call _fprintf
loc_1E644:
lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile
mov rdi, [rax]
lea rsi, aFills; " + FILLS\n"
mov al, 0
call _fprintf
lea rax, _ZN12LefDefParser9defwLinesE; LefDefParser::defwLines
mov ecx, [rax]
add ecx, 1
lea rax, _ZN12LefDefParser9defwLinesE; LefDefParser::defwLines
mov [rax], ecx
lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState
mov dword ptr [rax], 2Ch ; ','
mov cs:_ZN12LefDefParserL17defwBlockageHasSFE, 1; LefDefParser::defwBlockageHasSF
mov [rsp+8+var_4], 0
loc_1E690:
mov eax, [rsp+8+var_4]
pop rcx
retn
|
long long LefDefParser::defwBlockagesLayerFills(LefDefParser *this)
{
LefDefParser::defwFunc = 44;
if ( LefDefParser::defwFile )
{
if ( LefDefParser::defwState == 44 || LefDefParser::defwState == 46 )
{
if ( LefDefParser::defwBlockageHasSF )
{
return 3;
}
else
{
if ( LefDefParser::defwState == 46 )
fprintf(LefDefParser::defwFile, " ;\n");
fprintf(LefDefParser::defwFile, " + FILLS\n");
++LefDefParser::defwLines;
LefDefParser::defwState = 44;
LefDefParser::defwBlockageHasSF = 1;
return 0;
}
}
else
{
return 2;
}
}
else
{
return 1;
}
}
|
defwBlockagesLayerFills:
PUSH RAX
LEA RAX,[0x12b168]
MOV dword ptr [RAX],0x2c
LEA RAX,[0x12b158]
CMP qword ptr [RAX],0x0
JNZ 0x0011e5e8
MOV dword ptr [RSP + 0x4],0x1
JMP 0x0011e690
LAB_0011e5e8:
LEA RAX,[0x12b164]
CMP dword ptr [RAX],0x2c
JZ 0x0011e60d
LEA RAX,[0x12b164]
CMP dword ptr [RAX],0x2e
JZ 0x0011e60d
MOV dword ptr [RSP + 0x4],0x2
JMP 0x0011e690
LAB_0011e60d:
CMP dword ptr [0x0012b19c],0x0
JZ 0x0011e620
MOV dword ptr [RSP + 0x4],0x3
JMP 0x0011e690
LAB_0011e620:
LEA RAX,[0x12b164]
CMP dword ptr [RAX],0x2e
JNZ 0x0011e644
LEA RAX,[0x12b158]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x123e52]
MOV AL,0x0
CALL 0x001010f0
LAB_0011e644:
LEA RAX,[0x12b158]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x12502b]
MOV AL,0x0
CALL 0x001010f0
LEA RAX,[0x12b160]
MOV ECX,dword ptr [RAX]
ADD ECX,0x1
LEA RAX,[0x12b160]
MOV dword ptr [RAX],ECX
LEA RAX,[0x12b164]
MOV dword ptr [RAX],0x2c
MOV dword ptr [0x0012b19c],0x1
MOV dword ptr [RSP + 0x4],0x0
LAB_0011e690:
MOV EAX,dword ptr [RSP + 0x4]
POP RCX
RET
|
/* LefDefParser::defwBlockagesLayerFills() */
int4 LefDefParser::defwBlockagesLayerFills(void)
{
int4 local_4;
defwFunc = 0x2c;
if (defwFile == (FILE *)0x0) {
local_4 = 1;
}
else if ((defwState == 0x2c) || (defwState == 0x2e)) {
if (defwBlockageHasSF == 0) {
if (defwState == 0x2e) {
fprintf(defwFile," ;\n");
}
fprintf(defwFile," + FILLS\n");
defwLines = defwLines + 1;
defwState = 0x2c;
defwBlockageHasSF = 1;
local_4 = 0;
}
else {
local_4 = 3;
}
}
else {
local_4 = 2;
}
return local_4;
}
|
|
59,646
|
OpenSubdiv::v3_6_0::Vtr::internal::(anonymous namespace)::sequenceSparseIndexVector(std::vector<int, std::allocator<int>>&, int)
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/refinement.cpp
|
inline int
sequenceSparseIndexVector(IndexVector& indexVector, int baseValue = 0) {
int validCount = 0;
for (int i = 0; i < (int) indexVector.size(); ++i) {
indexVector[i] = isSparseIndexMarked(indexVector[i])
? (baseValue + validCount++) : INDEX_INVALID;
}
return validCount;
}
|
O0
|
cpp
|
OpenSubdiv::v3_6_0::Vtr::internal::(anonymous namespace)::sequenceSparseIndexVector(std::vector<int, std::allocator<int>>&, int):
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl $0x0, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x18(%rbp)
movq -0x8(%rbp), %rdi
callq 0xd7ae0
movq %rax, %rcx
movl -0x18(%rbp), %eax
cmpl %ecx, %eax
jge 0xfef42
movq -0x8(%rbp), %rdi
movslq -0x14(%rbp), %rsi
callq 0xc7140
movl (%rax), %edi
callq 0x1028f0
testb $0x1, %al
jne 0xfef00
jmp 0xfef15
movl -0xc(%rbp), %eax
movl -0x10(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x10(%rbp)
addl %ecx, %eax
movl %eax, -0x1c(%rbp)
jmp 0xfef1f
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
movl %eax, -0x1c(%rbp)
jmp 0xfef1f
movl -0x1c(%rbp), %eax
movl %eax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movslq -0x14(%rbp), %rsi
callq 0xc7140
movl -0x20(%rbp), %ecx
movl %ecx, (%rax)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xfeecd
movl -0x10(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
_ZN10OpenSubdiv6v3_6_03Vtr8internal12_GLOBAL__N_125sequenceSparseIndexVectorERSt6vectorIiSaIiEEi:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_10], 0
mov [rbp+var_14], 0
loc_FEECD:
mov eax, [rbp+var_14]
mov [rbp+var_18], eax
mov rdi, [rbp+var_8]
call __ZNKSt6vectorIiSaIiEE4sizeEv; std::vector<int>::size(void)
mov rcx, rax
mov eax, [rbp+var_18]
cmp eax, ecx
jge short loc_FEF42
mov rdi, [rbp+var_8]
movsxd rsi, [rbp+var_14]; int
call __ZNSt6vectorIiSaIiEEixEm; std::vector<int>::operator[](ulong)
mov edi, [rax]; this
call _ZN10OpenSubdiv6v3_6_03Vtr8internal12_GLOBAL__N_119isSparseIndexMarkedEi; OpenSubdiv::v3_6_0::Vtr::internal::`anonymous namespace'::isSparseIndexMarked(int)
test al, 1
jnz short loc_FEF00
jmp short loc_FEF15
loc_FEF00:
mov eax, [rbp+var_C]
mov ecx, [rbp+var_10]
mov edx, ecx
add edx, 1
mov [rbp+var_10], edx
add eax, ecx
mov [rbp+var_1C], eax
jmp short loc_FEF1F
loc_FEF15:
mov eax, 0FFFFFFFFh
mov [rbp+var_1C], eax
jmp short $+2
loc_FEF1F:
mov eax, [rbp+var_1C]
mov [rbp+var_20], eax
mov rdi, [rbp+var_8]
movsxd rsi, [rbp+var_14]
call __ZNSt6vectorIiSaIiEEixEm; std::vector<int>::operator[](ulong)
mov ecx, [rbp+var_20]
mov [rax], ecx
mov eax, [rbp+var_14]
add eax, 1
mov [rbp+var_14], eax
jmp short loc_FEECD
loc_FEF42:
mov eax, [rbp+var_10]
add rsp, 20h
pop rbp
retn
|
long long OpenSubdiv::v3_6_0::Vtr::internal::`anonymous namespace'::sequenceSparseIndexVector(
long long a1,
int a2)
{
unsigned int *v2; // rax
int v3; // ecx
int v5; // [rsp+4h] [rbp-1Ch]
int i; // [rsp+Ch] [rbp-14h]
unsigned int v7; // [rsp+10h] [rbp-10h]
v7 = 0;
for ( i = 0; i < (int)std::vector<int>::size(a1); ++i )
{
v2 = (unsigned int *)std::vector<int>::operator[](a1, i);
if ( (OpenSubdiv::v3_6_0::Vtr::internal::`anonymous namespace'::isSparseIndexMarked(
(OpenSubdiv::v3_6_0::Vtr::internal::_anonymous_namespace_ *)*v2,
i) & 1) != 0 )
{
v3 = v7++;
v5 = v3 + a2;
}
else
{
v5 = -1;
}
*(_DWORD *)std::vector<int>::operator[](a1, i) = v5;
}
return v7;
}
|
sequenceSparseIndexVector:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV dword ptr [RBP + -0x10],0x0
MOV dword ptr [RBP + -0x14],0x0
LAB_001feecd:
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x18],EAX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001d7ae0
MOV RCX,RAX
MOV EAX,dword ptr [RBP + -0x18]
CMP EAX,ECX
JGE 0x001fef42
MOV RDI,qword ptr [RBP + -0x8]
MOVSXD RSI,dword ptr [RBP + -0x14]
CALL 0x001c7140
MOV EDI,dword ptr [RAX]
CALL 0x002028f0
TEST AL,0x1
JNZ 0x001fef00
JMP 0x001fef15
LAB_001fef00:
MOV EAX,dword ptr [RBP + -0xc]
MOV ECX,dword ptr [RBP + -0x10]
MOV EDX,ECX
ADD EDX,0x1
MOV dword ptr [RBP + -0x10],EDX
ADD EAX,ECX
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x001fef1f
LAB_001fef15:
MOV EAX,0xffffffff
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x001fef1f
LAB_001fef1f:
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x20],EAX
MOV RDI,qword ptr [RBP + -0x8]
MOVSXD RSI,dword ptr [RBP + -0x14]
CALL 0x001c7140
MOV ECX,dword ptr [RBP + -0x20]
MOV dword ptr [RAX],ECX
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x1
MOV dword ptr [RBP + -0x14],EAX
JMP 0x001feecd
LAB_001fef42:
MOV EAX,dword ptr [RBP + -0x10]
ADD RSP,0x20
POP RBP
RET
|
/* OpenSubdiv::v3_6_0::Vtr::internal::(anonymous
namespace)::sequenceSparseIndexVector(std::vector<int, std::allocator<int> >&, int) */
int OpenSubdiv::v3_6_0::Vtr::internal::(anonymous_namespace)::sequenceSparseIndexVector
(vector *param_1,int param_2)
{
int iVar1;
int *piVar2;
ulong uVar3;
int4 local_24;
int4 local_1c;
int4 local_18;
local_18 = 0;
local_1c = 0;
while( true ) {
iVar1 = std::vector<int,std::allocator<int>>::size((vector<int,std::allocator<int>> *)param_1);
if (iVar1 <= local_1c) break;
piVar2 = (int *)std::vector<int,std::allocator<int>>::operator[]
((vector<int,std::allocator<int>> *)param_1,(long)local_1c);
uVar3 = isSparseIndexMarked(*piVar2);
if ((uVar3 & 1) == 0) {
local_24 = -1;
}
else {
local_24 = param_2 + local_18;
local_18 = local_18 + 1;
}
piVar2 = (int *)std::vector<int,std::allocator<int>>::operator[]
((vector<int,std::allocator<int>> *)param_1,(long)local_1c);
*piVar2 = local_24;
local_1c = local_1c + 1;
}
return local_18;
}
|
|
59,647
|
mysql_mbcharlen_gb18030
|
eloqsql/libmariadb/libmariadb/ma_charset.c
|
static unsigned int mysql_mbcharlen_gb18030(unsigned int c)
{
if (c <= 0xFF) {
return !is_gb18030_odd(c);
}
if (c > 0xFFFF || !is_gb18030_odd((c >> 8) & 0xFF)) {
return 0;
}
if (is_gb18030_even_2((c & 0xFF))) {
return 2;
}
if (is_gb18030_even_4((c & 0xFF))) {
return 4;
}
return 0;
}
|
O0
|
c
|
mysql_mbcharlen_gb18030:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x8(%rbp)
cmpl $0xff, -0x8(%rbp)
ja 0x43a47
movl -0x8(%rbp), %eax
movzbl %al, %edx
xorl %eax, %eax
movl $0x81, %ecx
cmpl %edx, %ecx
movb %al, -0x9(%rbp)
jg 0x43a35
movl -0x8(%rbp), %eax
movzbl %al, %eax
cmpl $0xfe, %eax
setle %al
movb %al, -0x9(%rbp)
movb -0x9(%rbp), %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x4(%rbp)
jmp 0x43b0f
cmpl $0xffff, -0x8(%rbp) # imm = 0xFFFF
ja 0x43a7c
movl -0x8(%rbp), %eax
shrl $0x8, %eax
andl $0xff, %eax
movzbl %al, %ecx
movl $0x81, %eax
cmpl %ecx, %eax
jg 0x43a7c
movl -0x8(%rbp), %eax
shrl $0x8, %eax
andl $0xff, %eax
movzbl %al, %eax
cmpl $0xfe, %eax
jle 0x43a88
movl $0x0, -0x4(%rbp)
jmp 0x43b0f
movl -0x8(%rbp), %eax
andl $0xff, %eax
movzbl %al, %ecx
movl $0x40, %eax
cmpl %ecx, %eax
jg 0x43aac
movl -0x8(%rbp), %eax
andl $0xff, %eax
movzbl %al, %eax
cmpl $0x7e, %eax
jle 0x43ad2
movl -0x8(%rbp), %eax
andl $0xff, %eax
movzbl %al, %ecx
movl $0x80, %eax
cmpl %ecx, %eax
jg 0x43adb
movl -0x8(%rbp), %eax
andl $0xff, %eax
movzbl %al, %eax
cmpl $0xfe, %eax
jg 0x43adb
movl $0x2, -0x4(%rbp)
jmp 0x43b0f
movl -0x8(%rbp), %eax
andl $0xff, %eax
movzbl %al, %ecx
movl $0x30, %eax
cmpl %ecx, %eax
jg 0x43b08
movl -0x8(%rbp), %eax
andl $0xff, %eax
movzbl %al, %eax
cmpl $0x39, %eax
jg 0x43b08
movl $0x4, -0x4(%rbp)
jmp 0x43b0f
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
mysql_mbcharlen_gb18030:
push rbp
mov rbp, rsp
mov [rbp+var_8], edi
cmp [rbp+var_8], 0FFh
ja short loc_43A47
mov eax, [rbp+var_8]
movzx edx, al
xor eax, eax
mov ecx, 81h
cmp ecx, edx
mov [rbp+var_9], al
jg short loc_43A35
mov eax, [rbp+var_8]
movzx eax, al
cmp eax, 0FEh
setle al
mov [rbp+var_9], al
loc_43A35:
mov al, [rbp+var_9]
xor al, 0FFh
and al, 1
movzx eax, al
mov [rbp+var_4], eax
jmp loc_43B0F
loc_43A47:
cmp [rbp+var_8], 0FFFFh
ja short loc_43A7C
mov eax, [rbp+var_8]
shr eax, 8
and eax, 0FFh
movzx ecx, al
mov eax, 81h
cmp eax, ecx
jg short loc_43A7C
mov eax, [rbp+var_8]
shr eax, 8
and eax, 0FFh
movzx eax, al
cmp eax, 0FEh
jle short loc_43A88
loc_43A7C:
mov [rbp+var_4], 0
jmp loc_43B0F
loc_43A88:
mov eax, [rbp+var_8]
and eax, 0FFh
movzx ecx, al
mov eax, 40h ; '@'
cmp eax, ecx
jg short loc_43AAC
mov eax, [rbp+var_8]
and eax, 0FFh
movzx eax, al
cmp eax, 7Eh ; '~'
jle short loc_43AD2
loc_43AAC:
mov eax, [rbp+var_8]
and eax, 0FFh
movzx ecx, al
mov eax, 80h
cmp eax, ecx
jg short loc_43ADB
mov eax, [rbp+var_8]
and eax, 0FFh
movzx eax, al
cmp eax, 0FEh
jg short loc_43ADB
loc_43AD2:
mov [rbp+var_4], 2
jmp short loc_43B0F
loc_43ADB:
mov eax, [rbp+var_8]
and eax, 0FFh
movzx ecx, al
mov eax, 30h ; '0'
cmp eax, ecx
jg short loc_43B08
mov eax, [rbp+var_8]
and eax, 0FFh
movzx eax, al
cmp eax, 39h ; '9'
jg short loc_43B08
mov [rbp+var_4], 4
jmp short loc_43B0F
loc_43B08:
mov [rbp+var_4], 0
loc_43B0F:
mov eax, [rbp+var_4]
pop rbp
retn
|
long long mysql_mbcharlen_gb18030(unsigned int a1)
{
bool v2; // [rsp+1h] [rbp-9h]
if ( a1 > 0xFF )
{
if ( a1 > 0xFFFF || BYTE1(a1) < 0x81u || BYTE1(a1) == 255 )
{
return 0;
}
else if ( ((unsigned __int8)a1 < 0x40u || (unsigned __int8)a1 > 0x7Eu)
&& ((unsigned __int8)a1 < 0x80u || (unsigned __int8)a1 == 255) )
{
if ( (unsigned __int8)a1 < 0x30u || (unsigned __int8)a1 > 0x39u )
return 0;
else
return 4;
}
else
{
return 2;
}
}
else
{
v2 = 0;
if ( (unsigned __int8)a1 >= 0x81u )
v2 = (unsigned __int8)a1 != 255;
return !v2;
}
}
|
mysql_mbcharlen_gb18030:
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RBP + -0x8],EDI
CMP dword ptr [RBP + -0x8],0xff
JA 0x00143a47
MOV EAX,dword ptr [RBP + -0x8]
MOVZX EDX,AL
XOR EAX,EAX
MOV ECX,0x81
CMP ECX,EDX
MOV byte ptr [RBP + -0x9],AL
JG 0x00143a35
MOV EAX,dword ptr [RBP + -0x8]
MOVZX EAX,AL
CMP EAX,0xfe
SETLE AL
MOV byte ptr [RBP + -0x9],AL
LAB_00143a35:
MOV AL,byte ptr [RBP + -0x9]
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00143b0f
LAB_00143a47:
CMP dword ptr [RBP + -0x8],0xffff
JA 0x00143a7c
MOV EAX,dword ptr [RBP + -0x8]
SHR EAX,0x8
AND EAX,0xff
MOVZX ECX,AL
MOV EAX,0x81
CMP EAX,ECX
JG 0x00143a7c
MOV EAX,dword ptr [RBP + -0x8]
SHR EAX,0x8
AND EAX,0xff
MOVZX EAX,AL
CMP EAX,0xfe
JLE 0x00143a88
LAB_00143a7c:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00143b0f
LAB_00143a88:
MOV EAX,dword ptr [RBP + -0x8]
AND EAX,0xff
MOVZX ECX,AL
MOV EAX,0x40
CMP EAX,ECX
JG 0x00143aac
MOV EAX,dword ptr [RBP + -0x8]
AND EAX,0xff
MOVZX EAX,AL
CMP EAX,0x7e
JLE 0x00143ad2
LAB_00143aac:
MOV EAX,dword ptr [RBP + -0x8]
AND EAX,0xff
MOVZX ECX,AL
MOV EAX,0x80
CMP EAX,ECX
JG 0x00143adb
MOV EAX,dword ptr [RBP + -0x8]
AND EAX,0xff
MOVZX EAX,AL
CMP EAX,0xfe
JG 0x00143adb
LAB_00143ad2:
MOV dword ptr [RBP + -0x4],0x2
JMP 0x00143b0f
LAB_00143adb:
MOV EAX,dword ptr [RBP + -0x8]
AND EAX,0xff
MOVZX ECX,AL
MOV EAX,0x30
CMP EAX,ECX
JG 0x00143b08
MOV EAX,dword ptr [RBP + -0x8]
AND EAX,0xff
MOVZX EAX,AL
CMP EAX,0x39
JG 0x00143b08
MOV dword ptr [RBP + -0x4],0x4
JMP 0x00143b0f
LAB_00143b08:
MOV dword ptr [RBP + -0x4],0x0
LAB_00143b0f:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
byte mysql_mbcharlen_gb18030(uint param_1)
{
byte bVar1;
bool local_11;
if (param_1 < 0x100) {
local_11 = 0x80 < (param_1 & 0xff) && (param_1 & 0xff) < 0xff;
bVar1 = (local_11 ^ 0xffU) & 1;
}
else if (((param_1 < 0x10000) && (0x80 < (param_1 >> 8 & 0xff))) && ((param_1 >> 8 & 0xff) < 0xff)
) {
if ((((param_1 & 0xff) < 0x40) || (0x7e < (param_1 & 0xff))) &&
(((param_1 & 0xff) < 0x80 || (0xfe < (param_1 & 0xff))))) {
if (((param_1 & 0xff) < 0x30) || (0x39 < (param_1 & 0xff))) {
bVar1 = 0;
}
else {
bVar1 = 4;
}
}
else {
bVar1 = 2;
}
}
else {
bVar1 = 0;
}
return bVar1;
}
|
|
59,648
|
stbi_zlib_decode_malloc_guesssize_headerflag
|
mnn-tts/MNN/3rd_party/imageHelper/stb_image.h
|
STBIDEF char *stbi_zlib_decode_malloc_guesssize_headerflag(const char *buffer, int len, int initial_size, int *outlen, int parse_header)
{
stbi__zbuf a;
char *p = (char *) stbi__malloc(initial_size);
if (p == NULL) return NULL;
a.zbuffer = (stbi_uc *) buffer;
a.zbuffer_end = (stbi_uc *) buffer + len;
if (stbi__do_zlib(&a, p, initial_size, 1, parse_header)) {
if (outlen) *outlen = (int) (a.zout - a.zout_start);
return a.zout_start;
} else {
STBI_FREE(a.zout_start);
return NULL;
}
}
|
O0
|
c
|
stbi_zlib_decode_malloc_guesssize_headerflag:
subq $0x1038, %rsp # imm = 0x1038
movq %rdi, 0x1028(%rsp)
movl %esi, 0x1024(%rsp)
movl %edx, 0x1020(%rsp)
movq %rcx, 0x1018(%rsp)
movl %r8d, 0x1014(%rsp)
movslq 0x1020(%rsp), %rdi
callq 0x39b0
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x3ab8
movq $0x0, 0x1030(%rsp)
jmp 0x3b4e
movq 0x1028(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x1028(%rsp), %rax
movslq 0x1024(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0x18(%rsp)
movq 0x8(%rsp), %rsi
movl 0x1020(%rsp), %edx
movl 0x1014(%rsp), %r8d
leaq 0x10(%rsp), %rdi
movl $0x1, %ecx
callq 0x39c0
cmpl $0x0, %eax
je 0x3b38
cmpq $0x0, 0x1018(%rsp)
je 0x3b29
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rcx
subq %rcx, %rax
movl %eax, %ecx
movq 0x1018(%rsp), %rax
movl %ecx, (%rax)
movq 0x30(%rsp), %rax
movq %rax, 0x1030(%rsp)
jmp 0x3b4e
movq 0x30(%rsp), %rdi
callq 0x21d0
movq $0x0, 0x1030(%rsp)
movq 0x1030(%rsp), %rax
addq $0x1038, %rsp # imm = 0x1038
retq
nop
|
stbi_zlib_decode_malloc_guesssize_headerflag:
sub rsp, 1038h
mov [rsp+1038h+var_10], rdi
mov [rsp+1038h+var_14], esi
mov [rsp+1038h+var_18], edx
mov [rsp+1038h+var_20], rcx
mov [rsp+1038h+var_24], r8d
movsxd rdi, [rsp+1038h+var_18]; unsigned __int64
call _ZL12stbi__mallocm; stbi__malloc(ulong)
mov [rsp+1038h+var_1030], rax
cmp [rsp+1038h+var_1030], 0
jnz short loc_3AB8
mov [rsp+1038h+var_8], 0
jmp loc_3B4E
loc_3AB8:
mov rax, [rsp+1038h+var_10]
mov [rsp+1038h+var_1028], rax
mov rax, [rsp+1038h+var_10]
movsxd rcx, [rsp+1038h+var_14]
add rax, rcx
mov [rsp+1038h+var_1020], rax
mov rsi, [rsp+1038h+var_1030]
mov edx, [rsp+1038h+var_18]
mov r8d, [rsp+1038h+var_24]
lea rdi, [rsp+1038h+var_1028]
mov ecx, 1
call _ZL13stbi__do_zlibP10stbi__zbufPciii; stbi__do_zlib(stbi__zbuf *,char *,int,int,int)
cmp eax, 0
jz short loc_3B38
cmp [rsp+1038h+var_20], 0
jz short loc_3B29
mov rax, [rsp+1038h+var_1010]
mov rcx, [rsp+1038h+var_1008]
sub rax, rcx
mov ecx, eax
mov rax, [rsp+1038h+var_20]
mov [rax], ecx
loc_3B29:
mov rax, [rsp+1038h+var_1008]
mov [rsp+1038h+var_8], rax
jmp short loc_3B4E
loc_3B38:
mov rdi, [rsp+1038h+var_1008]
call _free
mov [rsp+1038h+var_8], 0
loc_3B4E:
mov rax, [rsp+1038h+var_8]
add rsp, 1038h
retn
|
long long stbi_zlib_decode_malloc_guesssize_headerflag(
long long a1,
int a2,
int a3,
_DWORD *a4,
unsigned int a5)
{
long long v6; // [rsp+8h] [rbp-1030h]
_QWORD v7[3]; // [rsp+10h] [rbp-1028h] BYREF
long long v8; // [rsp+28h] [rbp-1010h]
long long v9; // [rsp+30h] [rbp-1008h]
unsigned int v10; // [rsp+1014h] [rbp-24h]
_DWORD *v11; // [rsp+1018h] [rbp-20h]
int v12; // [rsp+1020h] [rbp-18h]
int v13; // [rsp+1024h] [rbp-14h]
long long v14; // [rsp+1028h] [rbp-10h]
v14 = a1;
v13 = a2;
v12 = a3;
v11 = a4;
v10 = a5;
v6 = stbi__malloc(a3);
if ( !v6 )
return 0LL;
v7[0] = v14;
v7[1] = v13 + v14;
if ( (unsigned int)stbi__do_zlib((long long)v7, v6, v12, 1, v10) )
{
if ( v11 )
*v11 = v8 - v9;
return v9;
}
else
{
free(v9);
return 0LL;
}
}
|
stbi_zlib_decode_malloc_guesssize_headerflag:
SUB RSP,0x1038
MOV qword ptr [RSP + 0x1028],RDI
MOV dword ptr [RSP + 0x1024],ESI
MOV dword ptr [RSP + 0x1020],EDX
MOV qword ptr [RSP + 0x1018],RCX
MOV dword ptr [RSP + 0x1014],R8D
MOVSXD RDI,dword ptr [RSP + 0x1020]
CALL 0x001039b0
MOV qword ptr [RSP + 0x8],RAX
CMP qword ptr [RSP + 0x8],0x0
JNZ 0x00103ab8
MOV qword ptr [RSP + 0x1030],0x0
JMP 0x00103b4e
LAB_00103ab8:
MOV RAX,qword ptr [RSP + 0x1028]
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [RSP + 0x1028]
MOVSXD RCX,dword ptr [RSP + 0x1024]
ADD RAX,RCX
MOV qword ptr [RSP + 0x18],RAX
MOV RSI,qword ptr [RSP + 0x8]
MOV EDX,dword ptr [RSP + 0x1020]
MOV R8D,dword ptr [RSP + 0x1014]
LEA RDI,[RSP + 0x10]
MOV ECX,0x1
CALL 0x001039c0
CMP EAX,0x0
JZ 0x00103b38
CMP qword ptr [RSP + 0x1018],0x0
JZ 0x00103b29
MOV RAX,qword ptr [RSP + 0x28]
MOV RCX,qword ptr [RSP + 0x30]
SUB RAX,RCX
MOV ECX,EAX
MOV RAX,qword ptr [RSP + 0x1018]
MOV dword ptr [RAX],ECX
LAB_00103b29:
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x1030],RAX
JMP 0x00103b4e
LAB_00103b38:
MOV RDI,qword ptr [RSP + 0x30]
CALL 0x001021d0
MOV qword ptr [RSP + 0x1030],0x0
LAB_00103b4e:
MOV RAX,qword ptr [RSP + 0x1030]
ADD RSP,0x1038
RET
|
void * stbi_zlib_decode_malloc_guesssize_headerflag
(long param_1,int param_2,int param_3,int *param_4,int param_5)
{
int iVar1;
char *pcVar2;
long local_1028;
long local_1020;
int local_1010;
void *local_1008;
int local_24;
int *local_20;
int local_18;
int local_14;
long local_10;
void *local_8;
local_24 = param_5;
local_20 = param_4;
local_18 = param_3;
local_14 = param_2;
local_10 = param_1;
pcVar2 = (char *)stbi__malloc((long)param_3);
if (pcVar2 == (char *)0x0) {
local_8 = (void *)0x0;
}
else {
local_1028 = local_10;
local_1020 = local_10 + local_14;
iVar1 = stbi__do_zlib((stbi__zbuf *)&local_1028,pcVar2,local_18,1,local_24);
if (iVar1 == 0) {
free(local_1008);
local_8 = (void *)0x0;
}
else {
if (local_20 != (int *)0x0) {
*local_20 = local_1010 - (int)local_1008;
}
local_8 = local_1008;
}
}
return local_8;
}
|
|
59,649
|
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>::push_back(std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&)
|
monkey531[P]llama/common/json.hpp
|
void push_back(const typename object_t::value_type& val)
{
// push_back only works for null objects or objects
if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_object())))
{
JSON_THROW(type_error::create(308, detail::concat("cannot use push_back() with ", type_name()), this));
}
// transform null object into an object
if (is_null())
{
m_data.m_type = value_t::object;
m_data.m_value = value_t::object;
assert_invariant();
}
// add element to object
auto res = m_data.m_value.object->insert(val);
set_parent(res.first->second);
}
|
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>::push_back(std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movzbl (%rdi), %eax
testl %eax, %eax
jne 0x728cf
movb $0x1, (%r14)
callq 0x4d1da
movq %rax, 0x8(%r14)
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0x418da
jmp 0x728d4
cmpl $0x1, %eax
jne 0x728e8
movq 0x8(%r14), %rdi
movq %rbx, %rsi
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x72a5e
pushq $0x20
popq %rdi
callq 0x223c0
movq %rax, %rbx
movq %r14, %rdi
callq 0x41dd0
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x2420c(%rip), %rsi # 0x96b16
leaq 0x10(%rsp), %rdi
callq 0x41d71
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x134, %esi # imm = 0x134
movq %r14, %rcx
callq 0x4b35e
xorl %ebp, %ebp
leaq 0x629a3(%rip), %rsi # 0xd52d8
leaq -0x2560a(%rip), %rdx # 0x4d332
movq %rbx, %rdi
callq 0x22cd0
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x22f48
testb %bpl, %bpl
jne 0x7295b
jmp 0x72963
movq %rax, %r14
movq %rbx, %rdi
callq 0x22550
movq %r14, %rdi
callq 0x22d30
nop
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backERKSt4pairIKS9_SD_E:
push rbp; char
push r14; int
push rbx; int
sub rsp, 30h
mov rbx, rsi
mov r14, rdi
movzx eax, byte ptr [rdi]
test eax, eax
jnz short loc_728CF
mov byte ptr [r14], 1
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createINS2_IS9_SD_St4lessIvESaISt4pairIKS9_SD_EEEEJEEEPT_DpOT0_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::create<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>()
mov [r14+8], rax
push 1
pop rsi
mov rdi, r14
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)
jmp short loc_728D4
loc_728CF:
cmp eax, 1
jnz short loc_728E8
loc_728D4:
mov rdi, [r14+8]
mov rsi, rbx
add rsp, 30h
pop rbx
pop r14
pop rbp
jmp _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE6insertERKSI_; nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::insert(std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const&)
loc_728E8:
push 20h ; ' '
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
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+48h+var_40]
mov [rdx], rax
lea rsi, aCannotUsePushB; "cannot use push_back() with "
lea rdi, [rsp+48h+var_38]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&)
mov bpl, 1
lea rdx, [rsp+48h+var_38]
mov rdi, rbx; this
mov esi, 134h; int
mov rcx, r14
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, rbx; void *
call ___cxa_throw
mov r14, rax
lea rdi, [rsp+48h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_7295B
jmp short loc_72963
mov r14, rax
loc_7295B:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_72963:
mov rdi, r14
call __Unwind_Resume
|
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>::push_back(
long long a1,
long long a2)
{
nlohmann::json_abi_v3_11_3::detail::type_error *exception; // rbx
char *v4; // [rsp+8h] [rbp-40h] BYREF
_BYTE v5[56]; // [rsp+10h] [rbp-38h] BYREF
if ( *(_BYTE *)a1 )
{
if ( *(_BYTE *)a1 != 1 )
{
exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL);
v4 = 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(&)[29],char const*>(
(long long)v5,
(long long)"cannot use push_back() with ",
(long long)&v4);
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
exception,
308,
(long long)v5);
__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);
}
}
else
{
*(_BYTE *)a1 = 1;
*(_QWORD *)(a1 + 8) = 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>::create<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>>();
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1);
}
return nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::insert(
*(_QWORD *)(a1 + 8),
a2);
}
|
push_back:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV RBX,RSI
MOV R14,RDI
MOVZX EAX,byte ptr [RDI]
TEST EAX,EAX
JNZ 0x001728cf
MOV byte ptr [R14],0x1
CALL 0x0014d1da
MOV qword ptr [R14 + 0x8],RAX
PUSH 0x1
POP RSI
MOV RDI,R14
CALL 0x001418da
JMP 0x001728d4
LAB_001728cf:
CMP EAX,0x1
JNZ 0x001728e8
LAB_001728d4:
MOV RDI,qword ptr [R14 + 0x8]
MOV RSI,RBX
ADD RSP,0x30
POP RBX
POP R14
POP RBP
JMP 0x00172a5e
LAB_001728e8:
PUSH 0x20
POP RDI
CALL 0x001223c0
MOV RBX,RAX
MOV RDI,R14
CALL 0x00141dd0
LEA RDX,[RSP + 0x8]
MOV qword ptr [RDX],RAX
LAB_00172903:
LEA RSI,[0x196b16]
LEA RDI,[RSP + 0x10]
CALL 0x00141d71
MOV BPL,0x1
LAB_00172917:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0x134
MOV RCX,R14
CALL 0x0014b35e
XOR EBP,EBP
LEA RSI,[0x1d52d8]
LEA RDX,[0x14d332]
MOV RDI,RBX
CALL 0x00122cd0
|
/* 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>::push_back(std::pair<std::__cxx11::string const,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> > const&) */
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>
::push_back(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,pair *param_1)
{
ordered_map *poVar1;
int8 uVar2;
char *local_40;
detail local_38 [32];
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>
)0x0) {
*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>
)0x1;
poVar1 = create<nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
();
*(ordered_map **)(this + 8) = poVar1;
assert_invariant(SUB81(this,0));
}
else 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>
)0x1) {
uVar2 = __cxa_allocate_exception(0x20);
local_40 = (char *)type_name(this);
/* try { // try from 00172903 to 00172913 has its CatchHandler @ 00172958 */
detail::concat<std::__cxx11::string,char_const(&)[29],char_const*>
(local_38,"cannot use push_back() with ",&local_40);
/* try { // try from 00172917 to 00172943 has its CatchHandler @ 00172944 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar2,0x134,local_38,this);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,&detail::type_error::typeinfo,detail::exception::~exception);
}
ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::insert(*(ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
**)(this + 8),param_1);
return;
}
|
|
59,650
|
my_mb_wc_gb2312
|
eloqsql/strings/ctype-gb2312.c
|
static int
my_mb_wc_gb2312(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t *pwc, const uchar *s, const uchar *e){
int hi;
if (s >= e)
return MY_CS_TOOSMALL;
if ((hi= s[0]) < 0x80)
{
pwc[0]=hi;
return 1;
}
if (s+2>e)
return MY_CS_TOOSMALL2;
if (!IS_MB2_CHAR(hi, s[1]))
return MY_CS_ILSEQ;
if (!(pwc[0]=func_gb2312_uni_onechar(((hi<<8)+s[1])&0x7F7F)))
return -2;
return 2;
}
|
O0
|
c
|
my_mb_wc_gb2312:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jb 0x3425e
movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B
jmp 0x3431c
movq -0x20(%rbp), %rax
movzbl (%rax), %eax
movl %eax, -0x2c(%rbp)
cmpl $0x80, %eax
jge 0x34286
movslq -0x2c(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x3431c
movq -0x20(%rbp), %rax
addq $0x2, %rax
cmpq -0x28(%rbp), %rax
jbe 0x3429d
movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A
jmp 0x3431c
movl -0x2c(%rbp), %eax
movzbl %al, %ecx
movl $0xa1, %eax
cmpl %ecx, %eax
jg 0x342d9
movl -0x2c(%rbp), %eax
movzbl %al, %eax
cmpl $0xf7, %eax
jg 0x342d9
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %ecx
movl $0xa1, %eax
cmpl %ecx, %eax
jg 0x342d9
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0xfe, %eax
jle 0x342e2
movl $0x0, -0x4(%rbp)
jmp 0x3431c
movl -0x2c(%rbp), %edi
shll $0x8, %edi
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
addl %eax, %edi
andl $0x7f7f, %edi # imm = 0x7F7F
callq 0x34630
cltq
movq -0x18(%rbp), %rcx
movq %rax, (%rcx)
cmpq $0x0, %rax
jne 0x34315
movl $0xfffffffe, -0x4(%rbp) # imm = 0xFFFFFFFE
jmp 0x3431c
movl $0x2, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_mb_wc_gb2312:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_20]
cmp rax, [rbp+var_28]
jb short loc_3425E
mov [rbp+var_4], 0FFFFFF9Bh
jmp loc_3431C
loc_3425E:
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax]
mov [rbp+var_2C], eax
cmp eax, 80h
jge short loc_34286
movsxd rcx, [rbp+var_2C]
mov rax, [rbp+var_18]
mov [rax], rcx
mov [rbp+var_4], 1
jmp loc_3431C
loc_34286:
mov rax, [rbp+var_20]
add rax, 2
cmp rax, [rbp+var_28]
jbe short loc_3429D
mov [rbp+var_4], 0FFFFFF9Ah
jmp short loc_3431C
loc_3429D:
mov eax, [rbp+var_2C]
movzx ecx, al
mov eax, 0A1h
cmp eax, ecx
jg short loc_342D9
mov eax, [rbp+var_2C]
movzx eax, al
cmp eax, 0F7h
jg short loc_342D9
mov rax, [rbp+var_20]
movzx ecx, byte ptr [rax+1]
mov eax, 0A1h
cmp eax, ecx
jg short loc_342D9
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
cmp eax, 0FEh
jle short loc_342E2
loc_342D9:
mov [rbp+var_4], 0
jmp short loc_3431C
loc_342E2:
mov edi, [rbp+var_2C]
shl edi, 8
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
add edi, eax
and edi, 7F7Fh
call func_gb2312_uni_onechar
cdqe
mov rcx, [rbp+var_18]
mov [rcx], rax
cmp rax, 0
jnz short loc_34315
mov [rbp+var_4], 0FFFFFFFEh
jmp short loc_3431C
loc_34315:
mov [rbp+var_4], 2
loc_3431C:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
|
long long my_mb_wc_gb2312(long long a1, _QWORD *a2, unsigned __int8 *a3, unsigned long long a4)
{
int v4; // eax
__int16 v6; // [rsp+4h] [rbp-2Ch]
if ( (unsigned long long)a3 < a4 )
{
v6 = *a3;
if ( *a3 >= 0x80u )
{
if ( (unsigned long long)(a3 + 2) <= a4 )
{
if ( (unsigned __int8)v6 < 0xA1u || (unsigned __int8)v6 > 0xF7u || a3[1] < 0xA1u || a3[1] == 255 )
{
return 0;
}
else
{
v4 = func_gb2312_uni_onechar((a3[1] + (v6 << 8)) & 0x7F7F);
*a2 = v4;
if ( v4 )
return 2;
else
return (unsigned int)-2;
}
}
else
{
return (unsigned int)-102;
}
}
else
{
*a2 = *a3;
return 1;
}
}
else
{
return (unsigned int)-101;
}
}
|
my_mb_wc_gb2312:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x28]
JC 0x0013425e
MOV dword ptr [RBP + -0x4],0xffffff9b
JMP 0x0013431c
LAB_0013425e:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX]
MOV dword ptr [RBP + -0x2c],EAX
CMP EAX,0x80
JGE 0x00134286
MOVSXD RCX,dword ptr [RBP + -0x2c]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0013431c
LAB_00134286:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x0013429d
MOV dword ptr [RBP + -0x4],0xffffff9a
JMP 0x0013431c
LAB_0013429d:
MOV EAX,dword ptr [RBP + -0x2c]
MOVZX ECX,AL
MOV EAX,0xa1
CMP EAX,ECX
JG 0x001342d9
MOV EAX,dword ptr [RBP + -0x2c]
MOVZX EAX,AL
CMP EAX,0xf7
JG 0x001342d9
MOV RAX,qword ptr [RBP + -0x20]
MOVZX ECX,byte ptr [RAX + 0x1]
MOV EAX,0xa1
CMP EAX,ECX
JG 0x001342d9
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
CMP EAX,0xfe
JLE 0x001342e2
LAB_001342d9:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0013431c
LAB_001342e2:
MOV EDI,dword ptr [RBP + -0x2c]
SHL EDI,0x8
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
ADD EDI,EAX
AND EDI,0x7f7f
CALL 0x00134630
CDQE
MOV RCX,qword ptr [RBP + -0x18]
MOV qword ptr [RCX],RAX
CMP RAX,0x0
JNZ 0x00134315
MOV dword ptr [RBP + -0x4],0xfffffffe
JMP 0x0013431c
LAB_00134315:
MOV dword ptr [RBP + -0x4],0x2
LAB_0013431c:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4 my_mb_wc_gb2312(int8 param_1,long *param_2,byte *param_3,byte *param_4)
{
uint uVar1;
int iVar2;
int4 local_c;
if (param_3 < param_4) {
uVar1 = (uint)*param_3;
if (uVar1 < 0x80) {
*param_2 = (long)(int)uVar1;
local_c = 1;
}
else if (param_4 < param_3 + 2) {
local_c = 0xffffff9a;
}
else if ((((uVar1 < 0xa1) || (0xf7 < uVar1)) || (param_3[1] < 0xa1)) || (param_3[1] == 0xff)) {
local_c = 0;
}
else {
iVar2 = func_gb2312_uni_onechar(uVar1 * 0x100 + (uint)param_3[1] & 0x7f7f);
*param_2 = (long)iVar2;
if ((long)iVar2 == 0) {
local_c = 0xfffffffe;
}
else {
local_c = 2;
}
}
}
else {
local_c = 0xffffff9b;
}
return local_c;
}
|
|
59,651
|
mp_mul1_dec
|
bluesky950520[P]quickjs/libbf.c
|
limb_t mp_mul1_dec(limb_t *tabr, const limb_t *taba, mp_size_t n,
limb_t b, limb_t l)
{
mp_size_t i;
limb_t t0, t1, r;
for(i = 0; i < n; i++) {
muldq(t1, t0, taba[i], b);
adddq(t1, t0, 0, l);
divdq_base(l, r, t1, t0);
tabr[i] = r;
}
return l;
}
|
O1
|
c
|
mp_mul1_dec:
movq %r8, %r9
testq %rdx, %rdx
jle 0x8da1b
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r8
movabsq $-0x7538dcfb76180000, %rbx # imm = 0x8AC7230489E80000
xorl %r14d, %r14d
movabsq $-0x13e1b582496a9e5b, %r15 # imm = 0xEC1E4A7DB69561A5
movabsq $0x158e460913d00000, %r12 # imm = 0x158E460913D00000
movq %rcx, %rax
mulq (%rsi,%r14,8)
movq %rdx, %r10
movq %rax, %r11
addq %r9, %r11
adcq $0x0, %r10
movq %r10, %rax
shldq $0x1, %r11, %rax
mulq %r15
movq %rdx, %r9
movq %rdx, %rax
mulq %rbx
subq %rax, %r11
sbbq %rdx, %r10
subq %r12, %r11
movq $-0x1, %rax
sbbq $0x0, %rax
leaq (%r10,%rax), %rdx
sarq %rdx
addq %rdx, %r9
andq %rbx, %rdx
addq %r11, %rdx
adcq %r10, %rax
addq %rax, %r9
addq $0x2, %r9
andq %rbx, %rax
addq %rdx, %rax
movq %rax, (%rdi,%r14,8)
incq %r14
cmpq %r14, %r8
jne 0x8d9ac
popq %rbx
popq %r12
popq %r14
popq %r15
movq %r9, %rax
retq
|
mp_mul1_dec:
mov r9, r8
test rdx, rdx
jle loc_8DA1B
push r15
push r14
push r12
push rbx
mov r8, rdx
mov rbx, 8AC7230489E80000h
xor r14d, r14d
mov r15, 0EC1E4A7DB69561A5h
mov r12, 158E460913D00000h
loc_8D9AC:
mov rax, rcx
mul qword ptr [rsi+r14*8]
mov r10, rdx
mov r11, rax
add r11, r9
adc r10, 0
mov rax, r10
shld rax, r11, 1
mul r15
mov r9, rdx
mov rax, rdx
mul rbx
sub r11, rax
sbb r10, rdx
sub r11, r12
mov rax, 0FFFFFFFFFFFFFFFFh
sbb rax, 0
lea rdx, [r10+rax]
sar rdx, 1
add r9, rdx
and rdx, rbx
add rdx, r11
adc rax, r10
add r9, rax
add r9, 2
and rax, rbx
add rax, rdx
mov [rdi+r14*8], rax
inc r14
cmp r8, r14
jnz short loc_8D9AC
pop rbx
pop r12
pop r14
pop r15
loc_8DA1B:
mov rax, r9
retn
|
unsigned long long mp_mul1_dec(long long a1, long long a2, long long a3, unsigned long long a4, unsigned long long a5)
{
long long i; // r14
signed __int128 v8; // kr00_16
unsigned long long v9; // r9
unsigned long long v10; // r10
unsigned __int128 v11; // kr20_16
long long v12; // rdx
if ( a3 > 0 )
{
for ( i = 0LL; i != a3; ++i )
{
v8 = a5 + *(unsigned long long *)(a2 + 8 * i) * (unsigned __int128)a4;
v9 = (0xEC1E4A7DB69561A5LL * (unsigned __int128)(unsigned long long)(v8 >> 63)) >> 64;
v10 = (v8 - 0x8AC7230489E80000LL * (unsigned __int128)v9) >> 64;
v11 = __PAIR128__(-1LL, (unsigned long long)v8 - 0x8AC7230489E80000LL * v9) - 0x158E460913D00000LL;
v12 = (long long)(v10 + *((_QWORD *)&v11 + 1)) >> 1;
a5 = ((v11 + __PAIR128__(v10, v12 & 0x8AC7230489E80000LL)) >> 64) + v12 + v9 + 2;
*(_QWORD *)(a1 + 8 * i) = v11
+ (v12 & 0x8AC7230489E80000LL)
+ (((v11 + __PAIR128__(v10, v12 & 0x8AC7230489E80000LL)) >> 64) & 0x8AC7230489E80000LL);
}
}
return a5;
}
|
mp_mul1_dec:
MOV R9,R8
TEST RDX,RDX
JLE 0x0018da1b
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R8,RDX
MOV RBX,-0x7538dcfb76180000
XOR R14D,R14D
MOV R15,-0x13e1b582496a9e5b
MOV R12,0x158e460913d00000
LAB_0018d9ac:
MOV RAX,RCX
MUL qword ptr [RSI + R14*0x8]
MOV R10,RDX
MOV R11,RAX
ADD R11,R9
ADC R10,0x0
MOV RAX,R10
SHLD RAX,R11,0x1
MUL R15
MOV R9,RDX
MOV RAX,RDX
MUL RBX
SUB R11,RAX
SBB R10,RDX
SUB R11,R12
MOV RAX,-0x1
SBB RAX,0x0
LEA RDX,[R10 + RAX*0x1]
SAR RDX,0x1
ADD R9,RDX
AND RDX,RBX
ADD RDX,R11
ADC RAX,R10
ADD R9,RAX
ADD R9,0x2
AND RAX,RBX
ADD RAX,RDX
MOV qword ptr [RDI + R14*0x8],RAX
INC R14
CMP R8,R14
JNZ 0x0018d9ac
POP RBX
POP R12
POP R14
POP R15
LAB_0018da1b:
MOV RAX,R9
RET
|
ulong mp_mul1_dec(long param_1,long param_2,long param_3,ulong param_4,ulong param_5)
{
int1 auVar1 [16];
int1 auVar2 [16];
int1 auVar3 [16];
int1 auVar4 [16];
int1 auVar5 [16];
long lVar6;
ulong uVar7;
ulong uVar8;
ulong uVar9;
long lVar10;
ulong uVar11;
ulong uVar12;
long lVar13;
if (0 < param_3) {
lVar13 = 0;
do {
auVar5._8_8_ = 0;
auVar5._0_8_ = param_5;
auVar1._8_8_ = 0;
auVar1._0_8_ = param_4;
auVar4._8_8_ = 0;
auVar4._0_8_ = *(ulong *)(param_2 + lVar13 * 8);
auVar5 = auVar1 * auVar4 + auVar5;
auVar2._8_8_ = 0;
auVar2._0_8_ = auVar5._8_8_ << 1 | auVar5._0_8_ >> 0x3f;
uVar7 = SUB168(auVar2 * ZEXT816(0xec1e4a7db69561a5),8);
auVar3._8_8_ = 0;
auVar3._0_8_ = uVar7;
auVar5 = auVar5 - auVar3 * ZEXT816(10000000000000000000);
uVar11 = auVar5._0_8_;
lVar10 = auVar5._8_8_;
uVar12 = uVar11 + 0xea71b9f6ec300000;
lVar6 = -1 - (ulong)(uVar11 < 0x158e460913d00000);
uVar8 = lVar10 + lVar6 >> 1;
uVar9 = uVar8 & 10000000000000000000;
uVar11 = lVar6 + lVar10 + (ulong)CARRY8(uVar9,uVar12);
param_5 = uVar7 + uVar8 + uVar11 + 2;
*(ulong *)(param_1 + lVar13 * 8) = (uVar11 & 10000000000000000000) + uVar9 + uVar12;
lVar13 = lVar13 + 1;
} while (param_3 != lVar13);
}
return param_5;
}
|
|
59,652
|
mp_mul1_dec
|
bluesky950520[P]quickjs/libbf.c
|
limb_t mp_mul1_dec(limb_t *tabr, const limb_t *taba, mp_size_t n,
limb_t b, limb_t l)
{
mp_size_t i;
limb_t t0, t1, r;
for(i = 0; i < n; i++) {
muldq(t1, t0, taba[i], b);
adddq(t1, t0, 0, l);
divdq_base(l, r, t1, t0);
tabr[i] = r;
}
return l;
}
|
O2
|
c
|
mp_mul1_dec:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r9
xorl %ebx, %ebx
testq %rdx, %rdx
cmovleq %rbx, %r9
movabsq $-0x7538dcfb76180000, %r14 # imm = 0x8AC7230489E80000
movabsq $-0x13e1b582496a9e5b, %r15 # imm = 0xEC1E4A7DB69561A5
movabsq $0x158e460913d00000, %r12 # imm = 0x158E460913D00000
movabsq $-0x1, %r13
cmpq %rbx, %r9
je 0x76497
movq %rcx, %rax
mulq (%rsi,%rbx,8)
movq %rdx, %r10
addq %rax, %r8
adcq $0x0, %r10
movq %r10, %rax
shldq $0x1, %r8, %rax
mulq %r15
movq %rdx, %r11
movq %rdx, %rax
mulq %r14
subq %rax, %r8
sbbq %rdx, %r10
subq %r12, %r8
movq %r13, %rax
sbbq $0x0, %rax
leaq (%r10,%rax), %rdx
sarq %rdx
addq %rdx, %r11
andq %r14, %rdx
addq %r8, %rdx
adcq %r10, %rax
leaq (%rax,%r11), %r8
addq $0x2, %r8
andq %r14, %rax
addq %rdx, %rax
movq %rax, (%rdi,%rbx,8)
incq %rbx
jmp 0x76433
movq %r8, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
|
mp_mul1_dec:
push r15
push r14
push r13
push r12
push rbx
mov r9, rdx
xor ebx, ebx
test rdx, rdx
cmovle r9, rbx
mov r14, 8AC7230489E80000h
mov r15, 0EC1E4A7DB69561A5h
mov r12, 158E460913D00000h
mov r13, 0FFFFFFFFFFFFFFFFh
loc_76433:
cmp r9, rbx
jz short loc_76497
mov rax, rcx
mul qword ptr [rsi+rbx*8]
mov r10, rdx
add r8, rax
adc r10, 0
mov rax, r10
shld rax, r8, 1
mul r15
mov r11, rdx
mov rax, rdx
mul r14
sub r8, rax
sbb r10, rdx
sub r8, r12
mov rax, r13
sbb rax, 0
lea rdx, [r10+rax]
sar rdx, 1
add r11, rdx
and rdx, r14
add rdx, r8
adc rax, r10
lea r8, [rax+r11]
add r8, 2
and rax, r14
add rax, rdx
mov [rdi+rbx*8], rax
inc rbx
jmp short loc_76433
loc_76497:
mov rax, r8
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
|
long long mp_mul1_dec(long long a1, long long a2, long long a3, unsigned long long a4, long long a5)
{
long long v5; // r9
long long v6; // rbx
long long v7; // r8
unsigned long long v8; // r10
unsigned long long v9; // r11
unsigned __int128 v10; // kr10_16
long long v11; // rax
unsigned __int128 v12; // kr30_16
v5 = a3;
v6 = 0LL;
if ( a3 <= 0 )
v5 = 0LL;
while ( v5 != v6 )
{
v8 = (*(unsigned long long *)(a2 + 8 * v6) * (unsigned __int128)a4 + (unsigned long long)a5) >> 64;
v7 = *(_QWORD *)(a2 + 8 * v6) * a4 + a5;
v9 = (0xEC1E4A7DB69561A5LL * (unsigned __int128)(unsigned long long)((__int128)__PAIR128__(v8, v7) >> 63)) >> 64;
v10 = __PAIR128__(v8, v7) - 0x8AC7230489E80000LL * (unsigned __int128)v9;
v11 = (__PAIR128__(-1LL, v10) - 0x158E460913D00000LL) >> 64;
v12 = __PAIR128__(-1LL, v10)
- 0x158E460913D00000LL
+ __PAIR128__(*((unsigned long long *)&v10 + 1), ((*((_QWORD *)&v10 + 1) + v11) >> 1) & 0x8AC7230489E80000LL);
a5 = *((_QWORD *)&v12 + 1) + ((*((_QWORD *)&v10 + 1) + v11) >> 1) + v9 + 2;
*(_QWORD *)(a1 + 8 * v6++) = v12 + (*((_QWORD *)&v12 + 1) & 0x8AC7230489E80000LL);
}
return a5;
}
|
mp_mul1_dec:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV R9,RDX
XOR EBX,EBX
TEST RDX,RDX
CMOVLE R9,RBX
MOV R14,-0x7538dcfb76180000
MOV R15,-0x13e1b582496a9e5b
MOV R12,0x158e460913d00000
MOV R13,-0x1
LAB_00176433:
CMP R9,RBX
JZ 0x00176497
MOV RAX,RCX
MUL qword ptr [RSI + RBX*0x8]
MOV R10,RDX
ADD R8,RAX
ADC R10,0x0
MOV RAX,R10
SHLD RAX,R8,0x1
MUL R15
MOV R11,RDX
MOV RAX,RDX
MUL R14
SUB R8,RAX
SBB R10,RDX
SUB R8,R12
MOV RAX,R13
SBB RAX,0x0
LEA RDX,[R10 + RAX*0x1]
SAR RDX,0x1
ADD R11,RDX
AND RDX,R14
ADD RDX,R8
ADC RAX,R10
LEA R8,[RAX + R11*0x1]
ADD R8,0x2
AND RAX,R14
ADD RAX,RDX
MOV qword ptr [RDI + RBX*0x8],RAX
INC RBX
JMP 0x00176433
LAB_00176497:
MOV RAX,R8
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
ulong mp_mul1_dec(long param_1,long param_2,long param_3,ulong param_4,ulong param_5)
{
int1 auVar1 [16];
int1 auVar2 [16];
int1 auVar3 [16];
int1 auVar4 [16];
int1 auVar5 [16];
long lVar6;
ulong uVar7;
ulong uVar8;
ulong uVar9;
long lVar10;
ulong uVar11;
ulong uVar12;
long lVar13;
lVar10 = 0;
if (param_3 < 1) {
param_3 = lVar10;
}
for (; auVar5._8_8_ = 0, auVar5._0_8_ = param_5, param_3 != lVar10; lVar10 = lVar10 + 1) {
auVar1._8_8_ = 0;
auVar1._0_8_ = param_4;
auVar4._8_8_ = 0;
auVar4._0_8_ = *(ulong *)(param_2 + lVar10 * 8);
auVar5 = auVar1 * auVar4 + auVar5;
auVar2._8_8_ = 0;
auVar2._0_8_ = auVar5._8_8_ << 1 | auVar5._0_8_ >> 0x3f;
uVar7 = SUB168(auVar2 * ZEXT816(0xec1e4a7db69561a5),8);
auVar3._8_8_ = 0;
auVar3._0_8_ = uVar7;
auVar5 = auVar5 - auVar3 * ZEXT816(10000000000000000000);
uVar11 = auVar5._0_8_;
lVar13 = auVar5._8_8_;
uVar12 = uVar11 + 0xea71b9f6ec300000;
lVar6 = -1 - (ulong)(uVar11 < 0x158e460913d00000);
uVar8 = lVar13 + lVar6 >> 1;
uVar9 = uVar8 & 10000000000000000000;
uVar11 = lVar6 + lVar13 + (ulong)CARRY8(uVar9,uVar12);
param_5 = uVar11 + uVar7 + uVar8 + 2;
*(ulong *)(param_1 + lVar10 * 8) = (uVar11 & 10000000000000000000) + uVar9 + uVar12;
}
return param_5;
}
|
|
59,653
|
mp_mul1_dec
|
bluesky950520[P]quickjs/libbf.c
|
limb_t mp_mul1_dec(limb_t *tabr, const limb_t *taba, mp_size_t n,
limb_t b, limb_t l)
{
mp_size_t i;
limb_t t0, t1, r;
for(i = 0; i < n; i++) {
muldq(t1, t0, taba[i], b);
adddq(t1, t0, 0, l);
divdq_base(l, r, t1, t0);
tabr[i] = r;
}
return l;
}
|
O3
|
c
|
mp_mul1_dec:
movq %r8, %r9
testq %rdx, %rdx
jle 0x90471
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r8
movabsq $-0x7538dcfb76180000, %rbx # imm = 0x8AC7230489E80000
xorl %r14d, %r14d
movabsq $-0x13e1b582496a9e5b, %r15 # imm = 0xEC1E4A7DB69561A5
movabsq $0x158e460913d00000, %r12 # imm = 0x158E460913D00000
movq %rcx, %rax
mulq (%rsi,%r14,8)
movq %rdx, %r10
movq %rax, %r11
addq %r9, %r11
adcq $0x0, %r10
movq %r10, %rax
shldq $0x1, %r11, %rax
mulq %r15
movq %rdx, %r9
movq %rdx, %rax
mulq %rbx
subq %rax, %r11
sbbq %rdx, %r10
subq %r12, %r11
movq $-0x1, %rax
sbbq $0x0, %rax
leaq (%r10,%rax), %rdx
sarq %rdx
addq %rdx, %r9
andq %rbx, %rdx
addq %r11, %rdx
adcq %r10, %rax
addq %rax, %r9
addq $0x2, %r9
andq %rbx, %rax
addq %rdx, %rax
movq %rax, (%rdi,%r14,8)
incq %r14
cmpq %r14, %r8
jne 0x90402
popq %rbx
popq %r12
popq %r14
popq %r15
movq %r9, %rax
retq
|
mp_mul1_dec:
mov r9, r8
test rdx, rdx
jle loc_90471
push r15
push r14
push r12
push rbx
mov r8, rdx
mov rbx, 8AC7230489E80000h
xor r14d, r14d
mov r15, 0EC1E4A7DB69561A5h
mov r12, 158E460913D00000h
loc_90402:
mov rax, rcx
mul qword ptr [rsi+r14*8]
mov r10, rdx
mov r11, rax
add r11, r9
adc r10, 0
mov rax, r10
shld rax, r11, 1
mul r15
mov r9, rdx
mov rax, rdx
mul rbx
sub r11, rax
sbb r10, rdx
sub r11, r12
mov rax, 0FFFFFFFFFFFFFFFFh
sbb rax, 0
lea rdx, [r10+rax]
sar rdx, 1
add r9, rdx
and rdx, rbx
add rdx, r11
adc rax, r10
add r9, rax
add r9, 2
and rax, rbx
add rax, rdx
mov [rdi+r14*8], rax
inc r14
cmp r8, r14
jnz short loc_90402
pop rbx
pop r12
pop r14
pop r15
loc_90471:
mov rax, r9
retn
|
unsigned long long mp_mul1_dec(long long a1, long long a2, long long a3, unsigned long long a4, unsigned long long a5)
{
long long i; // r14
signed __int128 v8; // kr00_16
unsigned long long v9; // r9
unsigned long long v10; // r10
unsigned __int128 v11; // kr20_16
long long v12; // rdx
if ( a3 > 0 )
{
for ( i = 0LL; i != a3; ++i )
{
v8 = a5 + *(unsigned long long *)(a2 + 8 * i) * (unsigned __int128)a4;
v9 = (0xEC1E4A7DB69561A5LL * (unsigned __int128)(unsigned long long)(v8 >> 63)) >> 64;
v10 = (v8 - 0x8AC7230489E80000LL * (unsigned __int128)v9) >> 64;
v11 = __PAIR128__(-1LL, (unsigned long long)v8 - 0x8AC7230489E80000LL * v9) - 0x158E460913D00000LL;
v12 = (long long)(v10 + *((_QWORD *)&v11 + 1)) >> 1;
a5 = ((v11 + __PAIR128__(v10, v12 & 0x8AC7230489E80000LL)) >> 64) + v12 + v9 + 2;
*(_QWORD *)(a1 + 8 * i) = v11
+ (v12 & 0x8AC7230489E80000LL)
+ (((v11 + __PAIR128__(v10, v12 & 0x8AC7230489E80000LL)) >> 64) & 0x8AC7230489E80000LL);
}
}
return a5;
}
|
mp_mul1_dec:
MOV R9,R8
TEST RDX,RDX
JLE 0x00190471
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R8,RDX
MOV RBX,-0x7538dcfb76180000
XOR R14D,R14D
MOV R15,-0x13e1b582496a9e5b
MOV R12,0x158e460913d00000
LAB_00190402:
MOV RAX,RCX
MUL qword ptr [RSI + R14*0x8]
MOV R10,RDX
MOV R11,RAX
ADD R11,R9
ADC R10,0x0
MOV RAX,R10
SHLD RAX,R11,0x1
MUL R15
MOV R9,RDX
MOV RAX,RDX
MUL RBX
SUB R11,RAX
SBB R10,RDX
SUB R11,R12
MOV RAX,-0x1
SBB RAX,0x0
LEA RDX,[R10 + RAX*0x1]
SAR RDX,0x1
ADD R9,RDX
AND RDX,RBX
ADD RDX,R11
ADC RAX,R10
ADD R9,RAX
ADD R9,0x2
AND RAX,RBX
ADD RAX,RDX
MOV qword ptr [RDI + R14*0x8],RAX
INC R14
CMP R8,R14
JNZ 0x00190402
POP RBX
POP R12
POP R14
POP R15
LAB_00190471:
MOV RAX,R9
RET
|
ulong mp_mul1_dec(long param_1,long param_2,long param_3,ulong param_4,ulong param_5)
{
int1 auVar1 [16];
int1 auVar2 [16];
int1 auVar3 [16];
int1 auVar4 [16];
int1 auVar5 [16];
long lVar6;
ulong uVar7;
ulong uVar8;
ulong uVar9;
long lVar10;
ulong uVar11;
ulong uVar12;
long lVar13;
if (0 < param_3) {
lVar13 = 0;
do {
auVar5._8_8_ = 0;
auVar5._0_8_ = param_5;
auVar1._8_8_ = 0;
auVar1._0_8_ = param_4;
auVar4._8_8_ = 0;
auVar4._0_8_ = *(ulong *)(param_2 + lVar13 * 8);
auVar5 = auVar1 * auVar4 + auVar5;
auVar2._8_8_ = 0;
auVar2._0_8_ = auVar5._8_8_ << 1 | auVar5._0_8_ >> 0x3f;
uVar7 = SUB168(auVar2 * ZEXT816(0xec1e4a7db69561a5),8);
auVar3._8_8_ = 0;
auVar3._0_8_ = uVar7;
auVar5 = auVar5 - auVar3 * ZEXT816(10000000000000000000);
uVar11 = auVar5._0_8_;
lVar10 = auVar5._8_8_;
uVar12 = uVar11 + 0xea71b9f6ec300000;
lVar6 = -1 - (ulong)(uVar11 < 0x158e460913d00000);
uVar8 = lVar10 + lVar6 >> 1;
uVar9 = uVar8 & 10000000000000000000;
uVar11 = lVar6 + lVar10 + (ulong)CARRY8(uVar9,uVar12);
param_5 = uVar7 + uVar8 + uVar11 + 2;
*(ulong *)(param_1 + lVar13 * 8) = (uVar11 & 10000000000000000000) + uVar9 + uVar12;
lVar13 = lVar13 + 1;
} while (param_3 != lVar13);
}
return param_5;
}
|
|
59,654
|
common_log::set_file(char const*)
|
monkey531[P]llama/common/log.cpp
|
void set_file(const char * path) {
pause();
if (file) {
fclose(file);
}
if (path) {
file = fopen(path, "w");
} else {
file = nullptr;
}
resume();
}
|
O1
|
cpp
|
common_log::set_file(char const*):
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
callq 0xcd85c
movq 0x60(%rbx), %rdi
testq %rdi, %rdi
je 0xcdc6b
callq 0x1b8a0
testq %r14, %r14
je 0xcdc81
leaq 0x1dde3(%rip), %rsi # 0xeba5a
movq %r14, %rdi
callq 0x1ba50
jmp 0xcdc83
xorl %eax, %eax
movq %rax, 0x60(%rbx)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xcd8e4
|
_ZN10common_log8set_fileEPKc:
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
call _ZN10common_log5pauseEv; common_log::pause(void)
mov rdi, [rbx+60h]
test rdi, rdi
jz short loc_CDC6B
call _fclose
loc_CDC6B:
test r14, r14
jz short loc_CDC81
lea rsi, aGrpAttnW+0Bh; "w"
mov rdi, r14
call _fopen
jmp short loc_CDC83
loc_CDC81:
xor eax, eax
loc_CDC83:
mov [rbx+60h], rax
mov rdi, rbx; this
add rsp, 8
pop rbx
pop r14
jmp _ZN10common_log6resumeEv; common_log::resume(void)
|
long long common_log::set_file(common_log *this, const char *a2)
{
long long v3; // rdi
long long v4; // rax
common_log::pause(this);
v3 = *((_QWORD *)this + 12);
if ( v3 )
fclose(v3);
if ( a2 )
v4 = fopen(a2, "w");
else
v4 = 0LL;
*((_QWORD *)this + 12) = v4;
return common_log::resume(this);
}
|
set_file:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
CALL 0x001cd85c
MOV RDI,qword ptr [RBX + 0x60]
TEST RDI,RDI
JZ 0x001cdc6b
CALL 0x0011b8a0
LAB_001cdc6b:
TEST R14,R14
JZ 0x001cdc81
LEA RSI,[0x1eba5a]
MOV RDI,R14
CALL 0x0011ba50
JMP 0x001cdc83
LAB_001cdc81:
XOR EAX,EAX
LAB_001cdc83:
MOV qword ptr [RBX + 0x60],RAX
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP 0x001cd8e4
|
/* common_log::set_file(char const*) */
void __thiscall common_log::set_file(common_log *this,char *param_1)
{
FILE *pFVar1;
pause(this);
if (*(FILE **)(this + 0x60) != (FILE *)0x0) {
fclose(*(FILE **)(this + 0x60));
}
if (param_1 == (char *)0x0) {
pFVar1 = (FILE *)0x0;
}
else {
pFVar1 = fopen(param_1,"w");
}
*(FILE **)(this + 0x60) = pFVar1;
resume(this);
return;
}
|
|
59,655
|
common_log::set_file(char const*)
|
monkey531[P]llama/common/log.cpp
|
void set_file(const char * path) {
pause();
if (file) {
fclose(file);
}
if (path) {
file = fopen(path, "w");
} else {
file = nullptr;
}
resume();
}
|
O3
|
cpp
|
common_log::set_file(char const*):
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
callq 0xcbd6e
movq 0x60(%rbx), %rdi
testq %rdi, %rdi
je 0xcc17f
callq 0x1a8a0
testq %r14, %r14
je 0xcc195
leaq 0x1c8cf(%rip), %rsi # 0xe8a5a
movq %r14, %rdi
callq 0x1aa50
jmp 0xcc197
xorl %eax, %eax
movq %rax, 0x60(%rbx)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xcbdf6
|
_ZN10common_log8set_fileEPKc:
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
call _ZN10common_log5pauseEv; common_log::pause(void)
mov rdi, [rbx+60h]
test rdi, rdi
jz short loc_CC17F
call _fclose
loc_CC17F:
test r14, r14
jz short loc_CC195
lea rsi, aGrpAttnW+0Bh; "w"
mov rdi, r14
call _fopen
jmp short loc_CC197
loc_CC195:
xor eax, eax
loc_CC197:
mov [rbx+60h], rax
mov rdi, rbx; this
add rsp, 8
pop rbx
pop r14
jmp _ZN10common_log6resumeEv; common_log::resume(void)
|
long long common_log::set_file(common_log *this, const char *a2)
{
long long v3; // rdi
long long v4; // rax
common_log::pause(this);
v3 = *((_QWORD *)this + 12);
if ( v3 )
fclose(v3);
if ( a2 )
v4 = fopen(a2, "w");
else
v4 = 0LL;
*((_QWORD *)this + 12) = v4;
return common_log::resume(this);
}
|
set_file:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
CALL 0x001cbd6e
MOV RDI,qword ptr [RBX + 0x60]
TEST RDI,RDI
JZ 0x001cc17f
CALL 0x0011a8a0
LAB_001cc17f:
TEST R14,R14
JZ 0x001cc195
LEA RSI,[0x1e8a5a]
MOV RDI,R14
CALL 0x0011aa50
JMP 0x001cc197
LAB_001cc195:
XOR EAX,EAX
LAB_001cc197:
MOV qword ptr [RBX + 0x60],RAX
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP 0x001cbdf6
|
/* common_log::set_file(char const*) */
void __thiscall common_log::set_file(common_log *this,char *param_1)
{
FILE *pFVar1;
pause(this);
if (*(FILE **)(this + 0x60) != (FILE *)0x0) {
fclose(*(FILE **)(this + 0x60));
}
if (param_1 == (char *)0x0) {
pFVar1 = (FILE *)0x0;
}
else {
pFVar1 = fopen(param_1,"w");
}
*(FILE **)(this + 0x60) = pFVar1;
resume(this);
return;
}
|
|
59,656
|
sapphire_plugins::get_factory(char const*)
|
sapphire-plugins/src/clap/sapphire-clap-entry-impl.cpp
|
const void *get_factory(const char *factory_id)
{
SPLLOG("Asking for factory [" << factory_id << "]");
if (strcmp(factory_id, CLAP_PLUGIN_FACTORY_ID) == 0)
{
static const struct clap_plugin_factory six_sines_clap_factory = {
clap_get_plugin_count,
clap_get_plugin_descriptor,
clap_create_plugin,
};
return &six_sines_clap_factory;
}
if (strcmp(factory_id, CLAP_PLUGIN_FACTORY_INFO_AUV2) == 0)
{
static const struct clap_plugin_factory_as_auv2 six_sines_auv2_factory = {
"SPhR", // manu
"Saphire", // manu name
clap_get_auv2_info};
return &six_sines_auv2_factory;
}
if (strcmp(factory_id, CLAP_PLUGIN_FACTORY_INFO_VST3) == 0)
{
static const struct clap_plugin_factory_as_vst3 six_sines_vst3_factory = {
"Sapphire", "", "", clap_get_vst3_info};
return &six_sines_vst3_factory;
}
return nullptr;
}
|
O3
|
cpp
|
sapphire_plugins::get_factory(char const*):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x2ae62e(%rip), %rsi # 0x371093
leaq 0x2ae67e(%rip), %rdx # 0x3710ea
movq %rsp, %r14
movq %r14, %rdi
callq 0x79380
leaq 0x4eaf5a(%rip), %r13 # 0x5ad9d8
movq (%r13), %r15
movq %r15, %rdi
callq 0x79950
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x79870
cmpq $-0x1, %rax
je 0xc2ac7
movq %rax, %r14
movq (%r13), %rdi
callq 0x79950
leaq 0x1(%r14,%rax), %rdx
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
movq $-0x1, %rcx
callq 0x7aa40
jmp 0xc2ae6
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0x790c0
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x4e9419(%rip), %rdi # 0x5abf10
callq 0x7a9e0
movq %rax, %r14
leaq 0x2e3413(%rip), %rsi # 0x3a5f19
movl $0x1, %edx
movq %rax, %rdi
callq 0x7a9e0
movq %r14, %rdi
movl $0x83, %esi
callq 0x79700
movq %rax, %r14
leaq 0x2ba581(%rip), %rsi # 0x37d0ab
movl $0x1, %edx
movq %rax, %rdi
callq 0x7a9e0
leaq 0x2ae5ad(%rip), %rsi # 0x3710eb
movl $0x14, %edx
movq %r14, %rdi
callq 0x7a9e0
testq %rbx, %rbx
je 0xc2b68
movq %rbx, %rdi
callq 0x79950
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x7a9e0
jmp 0xc2b82
movq (%r14), %rax
movq -0x18(%rax), %rax
movq %r14, %rdi
addq %rax, %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x7ad10
leaq 0x2b97f8(%rip), %rsi # 0x37c381
movl $0x1, %edx
movq %r14, %rdi
callq 0x7a9e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x7ab70
movsbl %al, %esi
movq %r14, %rdi
callq 0x79d20
movq %rax, %rdi
callq 0x79bf0
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc2bd8
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x79200
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0xc2bee
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x79200
leaq 0x2ae42b(%rip), %rsi # 0x371020
movq %rbx, %rdi
callq 0x7a580
testl %eax, %eax
je 0xc2c36
leaq 0x2ae438(%rip), %rsi # 0x371040
movq %rbx, %rdi
callq 0x7a580
testl %eax, %eax
je 0xc2c3f
leaq 0x2ae455(%rip), %rsi # 0x371070
movq %rbx, %rdi
callq 0x7a580
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
leaq 0x4c2f08(%rip), %rcx # 0x585b38
cmoveq %rcx, %rax
jmp 0xc2c46
leaq 0x4c2ecb(%rip), %rax # 0x585b08
jmp 0xc2c46
leaq 0x4c2eda(%rip), %rax # 0x585b20
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
jmp 0xc2c77
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc2c77
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x79200
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0xc2c8d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x79200
movq %rbx, %rdi
callq 0x79f90
|
_ZN16sapphire_plugins11get_factoryEPKc:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 40h
mov rbx, rdi
lea r12, [rsp+68h+var_58]
mov [r12-10h], r12
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/sapphi"...
lea rdx, aWorkspaceLlm4b+57h; ""
mov r14, rsp
mov rdi, r14
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 r13, _ZN3sst11plugininfra18VersionInformation16cmake_source_dirE; sst::plugininfra::VersionInformation::cmake_source_dir
mov r15, [r13+0]
mov rdi, r15
call _strlen
mov rdi, r14
mov rsi, r15
xor edx, edx
mov rcx, rax
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm; std::string::find(char const*,ulong,ulong)
cmp rax, 0FFFFFFFFFFFFFFFFh
jz short loc_C2AC7
mov r14, rax
mov rdi, [r13+0]
call _strlen
lea rdx, [r14+rax+1]
lea rdi, [rsp+68h+var_48]
mov rsi, rsp
mov rcx, 0FFFFFFFFFFFFFFFFh
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
jmp short loc_C2AE6
loc_C2AC7:
lea rax, [rsp+68h+var_38]
mov [rax-10h], rax
mov rsi, [rsp+68h+var_68]
mov rdx, [rsp+68h+var_60]
add rdx, rsi
lea rdi, [rsp+68h+var_48]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
loc_C2AE6:
mov rsi, [rsp+68h+var_48]
mov rdx, [rsp+68h+var_40]
mov rdi, cs:_ZSt4cout_ptr
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov r14, rax
lea rsi, aG_5+3; ":"
mov edx, 1
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, r14
mov esi, 83h
call __ZNSolsEi; std::ostream::operator<<(int)
mov r14, rax
lea rsi, asc_37D0A8+3; " "
mov edx, 1
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, aAskingForFacto; "Asking for factory ["
mov edx, 14h
mov rdi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
test rbx, rbx
jz short loc_C2B68
mov rdi, rbx
call _strlen
mov rdi, r14
mov rsi, rbx
mov rdx, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
jmp short loc_C2B82
loc_C2B68:
mov rax, [r14]
mov rax, [rax-18h]
mov rdi, r14
add rdi, rax
mov esi, [r14+rax+20h]
or esi, 1
call __ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate; std::ios::clear(std::_Ios_Iostate)
loc_C2B82:
lea rsi, asc_37C380+1; "]"
mov edx, 1
mov rdi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rax, [r14]
mov rdi, [rax-18h]
add rdi, r14
mov esi, 0Ah
call __ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc; std::ios::widen(char)
movsx esi, al; char
mov rdi, r14; this
call __ZNSo3putEc; std::ostream::put(char)
mov rdi, rax; this
call __ZNSo5flushEv; std::ostream::flush(void)
lea rax, [rsp+68h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_C2BD8
mov rsi, [rsp+68h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C2BD8:
mov rdi, [rsp+68h+var_68]; void *
cmp rdi, r12
jz short loc_C2BEE
mov rsi, [rsp+68h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C2BEE:
lea rsi, _ZL22CLAP_PLUGIN_FACTORY_ID; "clap.plugin-factory"
mov rdi, rbx
call _strcmp
test eax, eax
jz short loc_C2C36
lea rsi, _ZL29CLAP_PLUGIN_FACTORY_INFO_AUV2; "clap.plugin-factory-info-as-auv2.draft0"
mov rdi, rbx
call _strcmp
test eax, eax
jz short loc_C2C3F
lea rsi, _ZL29CLAP_PLUGIN_FACTORY_INFO_VST3; "clap.plugin-factory-info-as-vst3/0"
mov rdi, rbx
call _strcmp
mov ecx, eax
xor eax, eax
test ecx, ecx
lea rcx, _ZZN16sapphire_plugins11get_factoryEPKcE22six_sines_vst3_factory; sapphire_plugins::get_factory(char const*)::six_sines_vst3_factory
cmovz rax, rcx
jmp short loc_C2C46
loc_C2C36:
lea rax, _ZZN16sapphire_plugins11get_factoryEPKcE22six_sines_clap_factory; sapphire_plugins::get_factory(char const*)::six_sines_clap_factory
jmp short loc_C2C46
loc_C2C3F:
lea rax, _ZZN16sapphire_plugins11get_factoryEPKcE22six_sines_auv2_factory; sapphire_plugins::get_factory(char const*)::six_sines_auv2_factory
loc_C2C46:
add rsp, 40h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov rbx, rax
jmp short loc_C2C77
mov rbx, rax
lea rax, [rsp+arg_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_C2C77
mov rsi, [rsp+arg_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C2C77:
mov rdi, [rsp+0]; void *
cmp rdi, r12
jz short loc_C2C8D
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C2C8D:
mov rdi, rbx
call __Unwind_Resume
|
char ** sapphire_plugins::get_factory(sapphire_plugins *this, const char *a2)
{
char *v2; // r15
long long v3; // rax
long long v4; // rax
long long v5; // r14
long long v6; // rax
long long v7; // r14
std::ostream *v8; // r14
long long v9; // rax
char v10; // al
std::ostream *v11; // rax
int v12; // ecx
char **result; // rax
void *v14[2]; // [rsp+0h] [rbp-68h] BYREF
_QWORD v15[2]; // [rsp+10h] [rbp-58h] BYREF
void *v16[2]; // [rsp+20h] [rbp-48h] BYREF
_QWORD v17[7]; // [rsp+30h] [rbp-38h] BYREF
v14[0] = v15;
std::string::_M_construct<char const*>(
v14,
"/workspace/llm4binary/github2025/sapphire-plugins/src/clap/sapphire-clap-entry-impl.cpp",
"");
v2 = sst::plugininfra::VersionInformation::cmake_source_dir[0];
v3 = strlen(sst::plugininfra::VersionInformation::cmake_source_dir[0]);
v4 = std::string::find(v14, v2, 0LL, v3);
if ( v4 == -1 )
{
v16[0] = v17;
std::string::_M_construct<char *>(v16, v14[0], (char *)v14[0] + (unsigned long long)v14[1]);
}
else
{
v5 = v4;
v6 = strlen(sst::plugininfra::VersionInformation::cmake_source_dir[0]);
std::string::substr(v16, v14, v5 + v6 + 1, -1LL);
}
v7 = std::__ostream_insert<char,std::char_traits<char>>(&std::cout, v16[0], v16[1]);
std::__ostream_insert<char,std::char_traits<char>>(v7, ":", 1LL);
v8 = (std::ostream *)std::ostream::operator<<(v7, 131LL);
std::__ostream_insert<char,std::char_traits<char>>(v8, " ", 1LL);
std::__ostream_insert<char,std::char_traits<char>>(v8, "Asking for factory [", 20LL);
if ( this )
{
v9 = strlen(this);
std::__ostream_insert<char,std::char_traits<char>>(v8, this, v9);
}
else
{
std::ios::clear(
(char *)v8 + *(_QWORD *)(*(_QWORD *)v8 - 24LL),
*(_DWORD *)((char *)v8 + *(_QWORD *)(*(_QWORD *)v8 - 24LL) + 32) | 1u);
}
std::__ostream_insert<char,std::char_traits<char>>(v8, "]", 1LL);
v10 = std::ios::widen((char *)v8 + *(_QWORD *)(*(_QWORD *)v8 - 24LL), 10LL);
v11 = (std::ostream *)std::ostream::put(v8, v10);
std::ostream::flush(v11);
if ( v16[0] != v17 )
operator delete(v16[0], v17[0] + 1LL);
if ( v14[0] != v15 )
operator delete(v14[0], v15[0] + 1LL);
if ( !(unsigned int)strcmp(this, "clap.plugin-factory") )
return (char **)sapphire_plugins::get_factory(char const*)::six_sines_clap_factory;
if ( !(unsigned int)strcmp(this, "clap.plugin-factory-info-as-auv2.draft0") )
return sapphire_plugins::get_factory(char const*)::six_sines_auv2_factory;
v12 = strcmp(this, "clap.plugin-factory-info-as-vst3/0");
result = 0LL;
if ( !v12 )
return (char **)&sapphire_plugins::get_factory(char const*)::six_sines_vst3_factory;
return result;
}
|
get_factory:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x40
MOV RBX,RDI
LEA R12,[RSP + 0x10]
MOV qword ptr [R12 + -0x10],R12
LEA RSI,[0x471093]
LEA RDX,[0x4710ea]
MOV R14,RSP
MOV RDI,R14
CALL 0x00179380
LEA R13,[0x6ad9d8]
MOV R15,qword ptr [R13]
MOV RDI,R15
CALL 0x00179950
MOV RDI,R14
MOV RSI,R15
XOR EDX,EDX
MOV RCX,RAX
CALL 0x00179870
CMP RAX,-0x1
JZ 0x001c2ac7
MOV R14,RAX
MOV RDI,qword ptr [R13]
CALL 0x00179950
LEA RDX,[R14 + RAX*0x1 + 0x1]
LAB_001c2ab1:
LEA RDI,[RSP + 0x20]
MOV RSI,RSP
MOV RCX,-0x1
CALL 0x0017aa40
JMP 0x001c2ae6
LAB_001c2ac7:
LEA RAX,[RSP + 0x30]
MOV qword ptr [RAX + -0x10],RAX
MOV RSI,qword ptr [RSP]
MOV RDX,qword ptr [RSP + 0x8]
ADD RDX,RSI
LEA RDI,[RSP + 0x20]
CALL 0x001790c0
LAB_001c2ae6:
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x28]
LAB_001c2af0:
MOV RDI,qword ptr [0x006abf10]
CALL 0x0017a9e0
MOV R14,RAX
LEA RSI,[0x4a5f19]
MOV EDX,0x1
MOV RDI,RAX
CALL 0x0017a9e0
MOV RDI,R14
MOV ESI,0x83
CALL 0x00179700
MOV R14,RAX
LEA RSI,[0x47d0ab]
MOV EDX,0x1
MOV RDI,RAX
CALL 0x0017a9e0
LEA RSI,[0x4710eb]
MOV EDX,0x14
MOV RDI,R14
CALL 0x0017a9e0
TEST RBX,RBX
JZ 0x001c2b68
MOV RDI,RBX
CALL 0x00179950
MOV RDI,R14
MOV RSI,RBX
MOV RDX,RAX
CALL 0x0017a9e0
JMP 0x001c2b82
LAB_001c2b68:
MOV RAX,qword ptr [R14]
MOV RAX,qword ptr [RAX + -0x18]
MOV RDI,R14
ADD RDI,RAX
MOV ESI,dword ptr [R14 + RAX*0x1 + 0x20]
OR ESI,0x1
CALL 0x0017ad10
LAB_001c2b82:
LEA RSI,[0x47c381]
MOV EDX,0x1
MOV RDI,R14
CALL 0x0017a9e0
MOV RAX,qword ptr [R14]
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,R14
MOV ESI,0xa
CALL 0x0017ab70
MOVSX ESI,AL
MOV RDI,R14
CALL 0x00179d20
MOV RDI,RAX
CALL 0x00179bf0
LAB_001c2bbd:
LEA RAX,[RSP + 0x30]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001c2bd8
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x00179200
LAB_001c2bd8:
MOV RDI,qword ptr [RSP]
CMP RDI,R12
JZ 0x001c2bee
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x00179200
LAB_001c2bee:
LEA RSI,[0x471020]
MOV RDI,RBX
CALL 0x0017a580
TEST EAX,EAX
JZ 0x001c2c36
LEA RSI,[0x471040]
MOV RDI,RBX
CALL 0x0017a580
TEST EAX,EAX
JZ 0x001c2c3f
LEA RSI,[0x471070]
MOV RDI,RBX
CALL 0x0017a580
MOV ECX,EAX
XOR EAX,EAX
TEST ECX,ECX
LEA RCX,[0x685b38]
CMOVZ RAX,RCX
JMP 0x001c2c46
LAB_001c2c36:
LEA RAX,[0x685b08]
JMP 0x001c2c46
LAB_001c2c3f:
LEA RAX,[0x685b20]
LAB_001c2c46:
ADD RSP,0x40
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* sapphire_plugins::get_factory(char const*) */
int1 * sapphire_plugins::get_factory(char *param_1)
{
int *puVar1;
int iVar2;
long lVar3;
ostream *poVar4;
size_t sVar5;
int1 *puVar6;
long *local_68;
long local_60;
long local_58 [2];
long *local_48;
long local_40;
long local_38 [2];
local_68 = local_58;
std::__cxx11::string::_M_construct<char_const*>
(&local_68,
"/workspace/llm4binary/github2025/sapphire-plugins/src/clap/sapphire-clap-entry-impl.cpp"
,"");
puVar1 = sst::plugininfra::VersionInformation::cmake_source_dir;
strlen(sst::plugininfra::VersionInformation::cmake_source_dir);
lVar3 = std::__cxx11::string::find((char *)&local_68,(ulong)puVar1,0);
if (lVar3 == -1) {
local_48 = local_38;
std::__cxx11::string::_M_construct<char*>(&local_48,local_68,local_60 + (long)local_68);
}
else {
strlen(sst::plugininfra::VersionInformation::cmake_source_dir);
/* try { // try from 001c2ab1 to 001c2ae5 has its CatchHandler @ 001c2c54 */
std::__cxx11::string::substr((ulong)&local_48,(ulong)&local_68);
}
/* try { // try from 001c2af0 to 001c2bbc has its CatchHandler @ 001c2c59 */
poVar4 = std::__ostream_insert<char,std::char_traits<char>>
((ostream *)PTR_cout_006abf10,(char *)local_48,local_40);
std::__ostream_insert<char,std::char_traits<char>>(poVar4,":",1);
poVar4 = (ostream *)std::ostream::operator<<(poVar4,0x83);
std::__ostream_insert<char,std::char_traits<char>>(poVar4," ",1);
std::__ostream_insert<char,std::char_traits<char>>(poVar4,"Asking for factory [",0x14);
if (param_1 == (char *)0x0) {
std::ios::clear(poVar4 + *(long *)(*(long *)poVar4 + -0x18),
*(uint *)(poVar4 + *(long *)(*(long *)poVar4 + -0x18) + 0x20) | 1);
}
else {
sVar5 = strlen(param_1);
std::__ostream_insert<char,std::char_traits<char>>(poVar4,param_1,sVar5);
}
std::__ostream_insert<char,std::char_traits<char>>(poVar4,"]",1);
std::ios::widen((char)*(int8 *)(*(long *)poVar4 + -0x18) + (char)poVar4);
std::ostream::put((char)poVar4);
std::ostream::flush();
if (local_48 != local_38) {
operator_delete(local_48,local_38[0] + 1);
}
if (local_68 != local_58) {
operator_delete(local_68,local_58[0] + 1);
}
iVar2 = strcmp(param_1,"clap.plugin-factory");
if (iVar2 == 0) {
puVar6 = get_factory(char_const*)::six_sines_clap_factory;
}
else {
iVar2 = strcmp(param_1,"clap.plugin-factory-info-as-auv2.draft0");
if (iVar2 == 0) {
puVar6 = get_factory(char_const*)::six_sines_auv2_factory;
}
else {
iVar2 = strcmp(param_1,"clap.plugin-factory-info-as-vst3/0");
puVar6 = (int1 *)0x0;
if (iVar2 == 0) {
puVar6 = get_factory(char_const*)::six_sines_vst3_factory;
}
}
}
return puVar6;
}
|
|
59,657
|
blst_bendian_from_fp12
|
corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/fp12_tower.c
|
void blst_bendian_from_fp12(unsigned char ret[48*12], const vec384fp12 a)
{
size_t i, j;
vec384 out;
for (i = 0; i < 3; i++) {
for (j = 0; j < 2; j++) {
from_fp(out, a[j][i][0]);
be_bytes_from_limbs(ret, out, sizeof(vec384)); ret += 48;
from_fp(out, a[j][i][1]);
be_bytes_from_limbs(ret, out, sizeof(vec384)); ret += 48;
}
}
}
|
O3
|
c
|
blst_bendian_from_fp12:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, -0x38(%rbp)
movq %rdi, %r14
xorl %eax, %eax
movb $0x1, %r15b
movq %rax, -0x30(%rbp)
leaq (%rax,%rax,2), %r12
shlq $0x5, %r12
xorl %eax, %eax
leaq (%rax,%rax,8), %rbx
shlq $0x5, %rbx
addq -0x38(%rbp), %rbx
addq %r12, %rbx
leaq -0x70(%rbp), %rdi
movq %rbx, %rsi
leaq 0x2c7ea(%rip), %rdx # 0x8cca0
movabsq $-0x760c000300030003, %rcx # imm = 0x89F3FFFCFFFCFFFD
callq 0x74800
movl $0x2f, %eax
movl $0x178, %edx # imm = 0x178
movq %r14, %rsi
movq %rax, %rcx
andq $-0x8, %rcx
movq -0x70(%rbp,%rcx), %rdi
movl %edx, %ecx
andb $0x38, %cl
shrq %cl, %rdi
movb %dil, (%rsi)
incq %rsi
addq $-0x8, %rdx
addq $-0x1, %rax
jb 0x604d2
leaq 0x30(%r14), %r13
addq $0x30, %rbx
leaq -0x70(%rbp), %rdi
movq %rbx, %rsi
leaq 0x2c794(%rip), %rdx # 0x8cca0
movabsq $-0x760c000300030003, %rcx # imm = 0x89F3FFFCFFFCFFFD
callq 0x74800
movl $0x2f, %eax
movl $0x178, %edx # imm = 0x178
movq %rax, %rcx
andq $-0x8, %rcx
movq -0x70(%rbp,%rcx), %rsi
movl %edx, %ecx
andb $0x38, %cl
shrq %cl, %rsi
movb %sil, (%r13)
incq %r13
addq $-0x8, %rdx
addq $-0x1, %rax
jb 0x60525
addq $0x60, %r14
movl $0x1, %eax
testb $0x1, %r15b
movl $0x0, %r15d
jne 0x60499
movq -0x30(%rbp), %rax
incq %rax
cmpq $0x3, %rax
jne 0x60488
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
blst_bendian_from_fp12:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov [rbp+var_38], rsi
mov r14, rdi
xor eax, eax
loc_60488:
mov r15b, 1
mov [rbp+var_30], rax
lea r12, [rax+rax*2]
shl r12, 5
xor eax, eax
loc_60499:
lea rbx, [rax+rax*8]
shl rbx, 5
add rbx, [rbp+var_38]
add rbx, r12
lea rdi, [rbp+var_70]
mov rsi, rbx
lea rdx, BLS12_381_P
mov rcx, 89F3FFFCFFFCFFFDh
call from_mont_384
mov eax, 2Fh ; '/'
mov edx, 178h
mov rsi, r14
loc_604D2:
mov rcx, rax
and rcx, 0FFFFFFFFFFFFFFF8h
mov rdi, [rbp+rcx+var_70]
mov ecx, edx
and cl, 38h
shr rdi, cl
mov [rsi], dil
inc rsi
add rdx, 0FFFFFFFFFFFFFFF8h
add rax, 0FFFFFFFFFFFFFFFFh
jb short loc_604D2
lea r13, [r14+30h]
add rbx, 30h ; '0'
lea rdi, [rbp+var_70]
mov rsi, rbx
lea rdx, BLS12_381_P
mov rcx, 89F3FFFCFFFCFFFDh
call from_mont_384
mov eax, 2Fh ; '/'
mov edx, 178h
loc_60525:
mov rcx, rax
and rcx, 0FFFFFFFFFFFFFFF8h
mov rsi, [rbp+rcx+var_70]
mov ecx, edx
and cl, 38h
shr rsi, cl
mov [r13+0], sil
inc r13
add rdx, 0FFFFFFFFFFFFFFF8h
add rax, 0FFFFFFFFFFFFFFFFh
jb short loc_60525
add r14, 60h ; '`'
mov eax, 1
test r15b, 1
mov r15d, 0
jnz loc_60499
mov rax, [rbp+var_30]
inc rax
cmp rax, 3
jnz loc_60488
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long blst_bendian_from_fp12(_BYTE *a1, long long a2)
{
long long result; // rax
char v4; // r15
long long v5; // r12
long long v6; // rax
long long v7; // rbx
long long v8; // rax
long long v9; // rdx
_BYTE *v10; // rsi
bool v11; // cf
_BYTE *v12; // r13
long long v13; // rax
long long v14; // rdx
bool v15; // zf
_QWORD v16[7]; // [rsp+0h] [rbp-70h] BYREF
long long v17; // [rsp+38h] [rbp-38h]
long long v18; // [rsp+40h] [rbp-30h]
v17 = a2;
result = 0LL;
do
{
v4 = 1;
v18 = result;
v5 = 96 * result;
v6 = 0LL;
do
{
v7 = v5 + v17 + 288 * v6;
from_mont_384(v16, v7, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
v8 = 47LL;
v9 = 376LL;
v10 = a1;
do
{
*v10++ = *(_QWORD *)((char *)v16 + (v8 & 0xFFFFFFFFFFFFFFF8LL)) >> (v9 & 0x38);
v9 -= 8LL;
v11 = v8-- != 0;
}
while ( v11 );
v12 = a1 + 48;
from_mont_384(v16, v7 + 48, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
v13 = 47LL;
v14 = 376LL;
do
{
*v12++ = *(_QWORD *)((char *)v16 + (v13 & 0xFFFFFFFFFFFFFFF8LL)) >> (v14 & 0x38);
v14 -= 8LL;
v11 = v13-- != 0;
}
while ( v11 );
a1 += 96;
v6 = 1LL;
v15 = (v4 & 1) == 0;
v4 = 0;
}
while ( !v15 );
result = v18 + 1;
}
while ( v18 != 2 );
return result;
}
|
blst_bendian_from_fp12:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV qword ptr [RBP + -0x38],RSI
MOV R14,RDI
XOR EAX,EAX
LAB_00160488:
MOV R15B,0x1
MOV qword ptr [RBP + -0x30],RAX
LEA R12,[RAX + RAX*0x2]
SHL R12,0x5
XOR EAX,EAX
LAB_00160499:
LEA RBX,[RAX + RAX*0x8]
SHL RBX,0x5
ADD RBX,qword ptr [RBP + -0x38]
ADD RBX,R12
LEA RDI,[RBP + -0x70]
MOV RSI,RBX
LEA RDX,[0x18cca0]
MOV RCX,-0x760c000300030003
CALL 0x00174800
MOV EAX,0x2f
MOV EDX,0x178
MOV RSI,R14
LAB_001604d2:
MOV RCX,RAX
AND RCX,-0x8
MOV RDI,qword ptr [RBP + RCX*0x1 + -0x70]
MOV ECX,EDX
AND CL,0x38
SHR RDI,CL
MOV byte ptr [RSI],DIL
INC RSI
ADD RDX,-0x8
ADD RAX,-0x1
JC 0x001604d2
LEA R13,[R14 + 0x30]
ADD RBX,0x30
LEA RDI,[RBP + -0x70]
MOV RSI,RBX
LEA RDX,[0x18cca0]
MOV RCX,-0x760c000300030003
CALL 0x00174800
MOV EAX,0x2f
MOV EDX,0x178
LAB_00160525:
MOV RCX,RAX
AND RCX,-0x8
MOV RSI,qword ptr [RBP + RCX*0x1 + -0x70]
MOV ECX,EDX
AND CL,0x38
SHR RSI,CL
MOV byte ptr [R13],SIL
INC R13
ADD RDX,-0x8
ADD RAX,-0x1
JC 0x00160525
ADD R14,0x60
MOV EAX,0x1
TEST R15B,0x1
MOV R15D,0x0
JNZ 0x00160499
MOV RAX,qword ptr [RBP + -0x30]
INC RAX
CMP RAX,0x3
JNZ 0x00160488
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void blst_bendian_from_fp12(int1 *param_1,long param_2)
{
ulong uVar1;
byte bVar2;
long lVar3;
int1 *puVar4;
long lVar5;
bool bVar6;
bool bVar7;
ulong local_78 [7];
long local_40;
long local_38;
local_38 = 0;
local_40 = param_2;
do {
lVar5 = local_38 * 0x60;
lVar3 = 0;
bVar7 = true;
do {
bVar6 = bVar7;
lVar3 = lVar3 * 0x120 + local_40 + lVar5;
from_mont_384(local_78,lVar3,BLS12_381_P,0x89f3fffcfffcfffd);
uVar1 = 0x2f;
bVar2 = 0x78;
puVar4 = param_1;
do {
*puVar4 = (char)(*(ulong *)((long)local_78 + (uVar1 & 0xfffffffffffffff8)) >> (bVar2 & 0x38)
);
puVar4 = puVar4 + 1;
bVar2 = bVar2 - 8;
bVar7 = uVar1 != 0;
uVar1 = uVar1 - 1;
} while (bVar7);
puVar4 = param_1 + 0x30;
from_mont_384(local_78,lVar3 + 0x30,BLS12_381_P,0x89f3fffcfffcfffd);
uVar1 = 0x2f;
bVar2 = 0x78;
do {
*puVar4 = (char)(*(ulong *)((long)local_78 + (uVar1 & 0xfffffffffffffff8)) >> (bVar2 & 0x38)
);
puVar4 = puVar4 + 1;
bVar2 = bVar2 - 8;
bVar7 = uVar1 != 0;
uVar1 = uVar1 - 1;
} while (bVar7);
param_1 = param_1 + 0x60;
lVar3 = 1;
bVar7 = false;
} while (bVar6);
local_38 = local_38 + 1;
} while (local_38 != 3);
return;
}
|
|
59,658
|
google::protobuf::compiler::java::(anonymous namespace)::ReportUnexpectedPackedFieldsCall(google::protobuf::io::Printer*)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/java/field.cc
|
static inline void ReportUnexpectedPackedFieldsCall(io::Printer* printer) {
// Reaching here indicates a bug. Cases are:
// - This FieldGenerator should support packing,
// but this method should be overridden.
// - This FieldGenerator doesn't support packing, and this method
// should never have been called.
GOOGLE_LOG(FATAL) << "GenerateBuilderParsingCodeFromPacked() "
<< "called on field generator that does not support packing.";
}
|
O0
|
cpp
|
google::protobuf::compiler::java::(anonymous namespace)::ReportUnexpectedPackedFieldsCall(google::protobuf::io::Printer*):
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
leaq 0x23dcdd(%rip), %rdx # 0x3e18ad
leaq 0x28(%rsp), %rdi
movq %rdi, 0x8(%rsp)
movl $0x3, %esi
movl $0xbc, %ecx
callq 0x219560
movq 0x8(%rsp), %rdi
leaq 0x23dd28(%rip), %rsi # 0x3e191d
callq 0x218e20
movq %rax, 0x10(%rsp)
jmp 0x1a3c01
movq 0x10(%rsp), %rdi
leaq 0x23dd38(%rip), %rsi # 0x3e1945
callq 0x218e20
movq %rax, (%rsp)
jmp 0x1a3c18
movq (%rsp), %rsi
leaq 0x1b(%rsp), %rdi
callq 0x218fd0
jmp 0x1a3c28
leaq 0x28(%rsp), %rdi
callq 0x2195a0
addq $0x68, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x2195a0
movq 0x20(%rsp), %rdi
callq 0x21700
nopl (%rax)
|
_ZN6google8protobuf8compiler4java12_GLOBAL__N_132ReportUnexpectedPackedFieldsCallEPNS0_2io7PrinterE:
sub rsp, 68h
mov [rsp+68h+var_8], rdi
lea rdx, aWorkspaceLlm4b_44; "/workspace/llm4binary/github2025/aimrt_"...
lea rdi, [rsp+68h+var_40]
mov [rsp+68h+var_60], rdi
mov esi, 3
mov ecx, 0BCh
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
mov rdi, [rsp+68h+var_60]
lea rsi, aGeneratebuilde; "GenerateBuilderParsingCodeFromPacked() "
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+68h+var_58], rax
jmp short $+2
loc_1A3C01:
mov rdi, [rsp+68h+var_58]
lea rsi, aCalledOnFieldG; "called on field generator that does not"...
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+68h+var_68], rax
jmp short $+2
loc_1A3C18:
mov rsi, [rsp+68h+var_68]
lea rdi, [rsp+68h+var_4D]
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
jmp short $+2
loc_1A3C28:
lea rdi, [rsp+68h+var_40]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
add rsp, 68h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_18], rcx
mov [rsp+arg_14], eax
lea rdi, [rsp+arg_20]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
mov rdi, [rsp+arg_18]
call __Unwind_Resume
|
void google::protobuf::compiler::java::`anonymous namespace'::ReportUnexpectedPackedFieldsCall(
google::protobuf::compiler::java::_anonymous_namespace_ *this,
google::protobuf::io::Printer *a2)
{
long long v2; // [rsp+0h] [rbp-68h]
long long v3; // [rsp+10h] [rbp-58h]
_BYTE v4[13]; // [rsp+1Bh] [rbp-4Dh] BYREF
_BYTE v5[56]; // [rsp+28h] [rbp-40h] BYREF
google::protobuf::compiler::java::_anonymous_namespace_ *v6; // [rsp+60h] [rbp-8h]
v6 = this;
google::protobuf::internal::LogMessage::LogMessage(
v5,
3LL,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/java/field.cc",
188LL);
v3 = google::protobuf::internal::LogMessage::operator<<(v5, "GenerateBuilderParsingCodeFromPacked() ");
v2 = google::protobuf::internal::LogMessage::operator<<(
v3,
"called on field generator that does not support packing.");
google::protobuf::internal::LogFinisher::operator=(v4, v2);
google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v5);
}
|
type_name:
PUSH RAX
MOV qword ptr [RSP],RDI
MOV RDI,qword ptr [RSP]
CALL 0x0013d920
MOV EAX,EAX
MOV ECX,EAX
LEA RAX,[0x5ee720]
MOV RAX,qword ptr [RAX + RCX*0x8]
POP RCX
RET
|
/* google::protobuf::FieldDescriptor::type_name() const */
int8 __thiscall google::protobuf::FieldDescriptor::type_name(FieldDescriptor *this)
{
uint uVar1;
uVar1 = type(this);
return *(int8 *)(kTypeToName + (ulong)uVar1 * 8);
}
|
|
59,659
|
my_string_repertoire
|
eloqsql/strings/ctype.c
|
my_repertoire_t
my_string_repertoire(CHARSET_INFO *cs, const char *str, size_t length)
{
if (cs->mbminlen == 1 && !(cs->state & MY_CS_NONASCII))
{
return my_string_repertoire_8bit(cs, str, length);
}
else
{
const char *strend= str + length;
my_wc_t wc;
int chlen;
for (;
(chlen= my_ci_mb_wc(cs, &wc, (uchar*) str, (uchar*) strend)) > 0;
str+= chlen)
{
if (wc > 0x7F)
return MY_REPERTOIRE_UNICODE30;
}
}
return MY_REPERTOIRE_ASCII;
}
|
O3
|
c
|
my_string_repertoire:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
cmpl $0x1, 0x98(%rdi)
jne 0x585ff
testb $0x20, 0xd(%r15)
jne 0x585ff
movl $0x1, %eax
testq %rbx, %rbx
jle 0x58665
addq %r14, %rbx
cmpb $0x0, (%r14)
js 0x58672
incq %r14
cmpq %rbx, %r14
jb 0x585ef
jmp 0x58665
addq %r14, %rbx
movq 0xb8(%r15), %rax
leaq -0x28(%rbp), %rsi
movq %r15, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq *0x28(%rax)
testl %eax, %eax
setg %cl
jle 0x5865b
cmpq $0x7f, -0x28(%rbp)
ja 0x5865b
leaq -0x28(%rbp), %r12
movq %r14, %rcx
movl %eax, %r14d
addq %rcx, %r14
movq 0xb8(%r15), %rax
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq *0x28(%rax)
testl %eax, %eax
setg %cl
jle 0x5865b
cmpq $0x80, -0x28(%rbp)
jb 0x5862b
movzbl %cl, %eax
leal 0x1(,%rax,2), %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x3, %eax
jmp 0x58665
|
my_string_repertoire:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 10h
mov rbx, rdx
mov r14, rsi
mov r15, rdi
cmp dword ptr [rdi+98h], 1
jnz short loc_585FF
test byte ptr [r15+0Dh], 20h
jnz short loc_585FF
mov eax, 1
test rbx, rbx
jle short loc_58665
add rbx, r14
loc_585EF:
cmp byte ptr [r14], 0
js short loc_58672
inc r14
cmp r14, rbx
jb short loc_585EF
jmp short loc_58665
loc_585FF:
add rbx, r14
mov rax, [r15+0B8h]
lea rsi, [rbp+var_28]
mov rdi, r15
mov rdx, r14
mov rcx, rbx
call qword ptr [rax+28h]
test eax, eax
setnle cl
jle short loc_5865B
cmp [rbp+var_28], 7Fh
ja short loc_5865B
lea r12, [rbp+var_28]
loc_5862B:
mov rcx, r14
mov r14d, eax
add r14, rcx
mov rax, [r15+0B8h]
mov rdi, r15
mov rsi, r12
mov rdx, r14
mov rcx, rbx
call qword ptr [rax+28h]
test eax, eax
setnle cl
jle short loc_5865B
cmp [rbp+var_28], 80h
jb short loc_5862B
loc_5865B:
movzx eax, cl
lea eax, ds:1[rax*2]
loc_58665:
add rsp, 10h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_58672:
mov eax, 3
jmp short loc_58665
|
long long my_string_repertoire(long long a1, char *a2, long long a3)
{
char *v3; // r14
long long result; // rax
char *v5; // rbx
int v6; // eax
bool v7; // cl
_QWORD v8[5]; // [rsp+8h] [rbp-28h] BYREF
v3 = a2;
if ( *(_DWORD *)(a1 + 152) != 1 || (*(_BYTE *)(a1 + 13) & 0x20) != 0 )
{
v5 = &a2[a3];
v6 = (*(long long ( **)(long long, _QWORD *, char *, char *))(*(_QWORD *)(a1 + 184) + 40LL))(
a1,
v8,
a2,
&a2[a3]);
v7 = v6 > 0;
if ( v6 > 0 && v8[0] <= 0x7FuLL )
{
do
{
v3 += (unsigned int)v6;
v6 = (*(long long ( **)(long long, _QWORD *, char *, char *))(*(_QWORD *)(a1 + 184) + 40LL))(
a1,
v8,
v3,
v5);
v7 = v6 > 0;
}
while ( v6 > 0 && v8[0] < 0x80uLL );
}
return 2 * (unsigned int)v7 + 1;
}
else
{
result = 1LL;
if ( a3 > 0 )
{
while ( *v3 >= 0 )
{
if ( ++v3 >= &a2[a3] )
return result;
}
return 3LL;
}
}
return result;
}
|
my_string_repertoire:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
CMP dword ptr [RDI + 0x98],0x1
JNZ 0x001585ff
TEST byte ptr [R15 + 0xd],0x20
JNZ 0x001585ff
MOV EAX,0x1
TEST RBX,RBX
JLE 0x00158665
ADD RBX,R14
LAB_001585ef:
CMP byte ptr [R14],0x0
JS 0x00158672
INC R14
CMP R14,RBX
JC 0x001585ef
JMP 0x00158665
LAB_001585ff:
ADD RBX,R14
MOV RAX,qword ptr [R15 + 0xb8]
LEA RSI,[RBP + -0x28]
MOV RDI,R15
MOV RDX,R14
MOV RCX,RBX
CALL qword ptr [RAX + 0x28]
TEST EAX,EAX
SETG CL
JLE 0x0015865b
CMP qword ptr [RBP + -0x28],0x7f
JA 0x0015865b
LEA R12,[RBP + -0x28]
LAB_0015862b:
MOV RCX,R14
MOV R14D,EAX
ADD R14,RCX
MOV RAX,qword ptr [R15 + 0xb8]
MOV RDI,R15
MOV RSI,R12
MOV RDX,R14
MOV RCX,RBX
CALL qword ptr [RAX + 0x28]
TEST EAX,EAX
SETG CL
JLE 0x0015865b
CMP qword ptr [RBP + -0x28],0x80
JC 0x0015862b
LAB_0015865b:
MOVZX EAX,CL
LEA EAX,[0x1 + RAX*0x2]
LAB_00158665:
ADD RSP,0x10
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_00158672:
MOV EAX,0x3
JMP 0x00158665
|
char my_string_repertoire(long param_1,char *param_2,long param_3)
{
char cVar1;
uint uVar2;
bool bVar3;
char *pcVar4;
ulong local_30;
if ((*(int *)(param_1 + 0x98) == 1) && ((*(byte *)(param_1 + 0xd) & 0x20) == 0)) {
cVar1 = '\x01';
if (0 < param_3) {
pcVar4 = param_2 + param_3;
do {
if (*param_2 < '\0') {
return '\x03';
}
param_2 = param_2 + 1;
} while (param_2 < pcVar4);
}
}
else {
pcVar4 = param_2 + param_3;
uVar2 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x28))(param_1,&local_30,param_2,pcVar4);
bVar3 = 0 < (int)uVar2;
if ((0 < (int)uVar2) && (local_30 < 0x80)) {
do {
param_2 = param_2 + uVar2;
uVar2 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x28))(param_1,&local_30,param_2,pcVar4);
bVar3 = 0 < (int)uVar2;
if ((int)uVar2 < 1) break;
} while (local_30 < 0x80);
}
cVar1 = bVar3 * '\x02' + '\x01';
}
return cVar1;
}
|
|
59,660
|
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::vector<char, std::allocator<char>>>>>::unget()
|
monkey531[P]llama/common/./json.hpp
|
void unget()
{
next_unget = true;
--position.chars_read_total;
// in case we "unget" a newline, we have to also decrement the lines_read
if (position.chars_read_current_line == 0)
{
if (position.lines_read > 0)
{
--position.lines_read;
}
}
else
{
--position.chars_read_current_line;
}
if (JSON_HEDLEY_LIKELY(current != char_traits<char_type>::eof()))
{
JSON_ASSERT(!token_string.empty());
token_string.pop_back();
}
}
|
O0
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::vector<char, std::allocator<char>>>>>::unget():
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
movb $0x1, 0x18(%rax)
movq 0x20(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x20(%rax)
cmpq $0x0, 0x28(%rax)
jne 0x19f919
movq 0x8(%rsp), %rax
cmpq $0x0, 0x30(%rax)
jbe 0x19f917
movq 0x8(%rsp), %rax
movq 0x30(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x30(%rax)
jmp 0x19f92a
movq 0x8(%rsp), %rax
movq 0x28(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x28(%rax)
movq 0x8(%rsp), %rax
movl 0x14(%rax), %eax
movl %eax, 0x4(%rsp)
callq 0xaf170
movl %eax, %ecx
movl 0x4(%rsp), %eax
cmpl %ecx, %eax
setne %al
xorb $-0x1, %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x19f950
jmp 0x19f95e
movq 0x8(%rsp), %rdi
addq $0x38, %rdi
callq 0xb0d00
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
|
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS5_IcSA_EEEEEE5ungetEv:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov rax, [rsp+18h+var_8]
mov [rsp+18h+var_10], rax
mov byte ptr [rax+18h], 1
mov rcx, [rax+20h]
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rax+20h], rcx
cmp qword ptr [rax+28h], 0
jnz short loc_19F919
mov rax, [rsp+18h+var_10]
cmp qword ptr [rax+30h], 0
jbe short loc_19F917
mov rax, [rsp+18h+var_10]
mov rcx, [rax+30h]
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rax+30h], rcx
loc_19F917:
jmp short loc_19F92A
loc_19F919:
mov rax, [rsp+18h+var_10]
mov rcx, [rax+28h]
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rax+28h], rcx
loc_19F92A:
mov rax, [rsp+18h+var_10]
mov eax, [rax+14h]
mov [rsp+18h+var_14], eax
call _ZNSt11char_traitsIcE3eofEv; std::char_traits<char>::eof(void)
mov ecx, eax
mov eax, [rsp+18h+var_14]
cmp eax, ecx
setnz al
xor al, 0FFh
xor al, 0FFh
test al, 1
jnz short loc_19F950
jmp short loc_19F95E
loc_19F950:
mov rdi, [rsp+18h+var_10]
add rdi, 38h ; '8'
call _ZNSt6vectorIcSaIcEE8pop_backEv; std::vector<char>::pop_back(void)
loc_19F95E:
add rsp, 18h
retn
|
char nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::vector<char>>>>::unget(
long long a1)
{
int v1; // ecx
char result; // al
int v3; // [rsp+4h] [rbp-14h]
*(_BYTE *)(a1 + 24) = 1;
--*(_QWORD *)(a1 + 32);
if ( *(_QWORD *)(a1 + 40) )
{
--*(_QWORD *)(a1 + 40);
}
else if ( *(_QWORD *)(a1 + 48) )
{
--*(_QWORD *)(a1 + 48);
}
v3 = *(_DWORD *)(a1 + 20);
v1 = std::char_traits<char>::eof();
result = v3 != v1;
if ( v3 != v1 )
return std::vector<char>::pop_back(a1 + 56);
return result;
}
|
basic_json:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x18],RSI
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x8],RAX
MOV RCX,qword ptr [RSP + 0x18]
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RAX],XMM0
MOV RDI,qword ptr [RSP + 0x18]
XOR ESI,ESI
CALL 0x0019f9a0
MOV RDI,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RSP + 0x18]
MOV byte ptr [RAX],0x0
MOV qword ptr [RSP + 0x10],0x0
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x10]
MOV qword ptr [RAX + 0x8],RCX
LAB_0019f923:
CALL 0x0019faf0
JMP 0x0019f92a
LAB_0019f92a:
MOV RDI,qword ptr [RSP + 0x8]
MOV ESI,0x1
CALL 0x0019f9a0
ADD RSP,0x28
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >,
void>::basic_json(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>&&) */
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>
::basic_json(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this,basic_json *param_1)
{
int8 uVar1;
uVar1 = *(int8 *)(param_1 + 8);
*(int8 *)this = *(int8 *)param_1;
*(int8 *)(this + 8) = uVar1;
assert_invariant(SUB81(param_1,0));
*param_1 = (basic_json)0x0;
*(int8 *)(param_1 + 8) = 0;
/* try { // try from 0019f923 to 0019f927 has its CatchHandler @ 0019f93e */
set_parents();
assert_invariant(SUB81(this,0));
return;
}
|
|
59,661
|
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::vector<char, std::allocator<char>>>>>::unget()
|
monkey531[P]llama/common/./json.hpp
|
void unget()
{
next_unget = true;
--position.chars_read_total;
// in case we "unget" a newline, we have to also decrement the lines_read
if (position.chars_read_current_line == 0)
{
if (position.lines_read > 0)
{
--position.lines_read;
}
}
else
{
--position.chars_read_current_line;
}
if (JSON_HEDLEY_LIKELY(current != char_traits<char_type>::eof()))
{
JSON_ASSERT(!token_string.empty());
token_string.pop_back();
}
}
|
O2
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::vector<char, std::allocator<char>>>>>::unget():
movb $0x1, 0x18(%rdi)
decq 0x20(%rdi)
movq 0x28(%rdi), %rax
testq %rax, %rax
je 0x41851
leaq 0x28(%rdi), %rcx
jmp 0x4185e
movq 0x30(%rdi), %rax
testq %rax, %rax
je 0x41864
leaq 0x30(%rdi), %rcx
decq %rax
movq %rax, (%rcx)
cmpl $-0x1, 0x14(%rdi)
je 0x4187b
movq 0x40(%rdi), %rax
cmpq %rax, 0x38(%rdi)
je 0x4187c
decq %rax
movq %rax, 0x40(%rdi)
retq
pushq %rax
leaq 0x58f8c(%rip), %rdi # 0x9a810
leaq 0x585a3(%rip), %rsi # 0x99e2e
leaq 0x58f94(%rip), %rcx # 0x9a826
movl $0x2240, %edx # imm = 0x2240
callq 0x204a0
|
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5ungetEv:
mov byte ptr [rdi+18h], 1
dec qword ptr [rdi+20h]
mov rax, [rdi+28h]
test rax, rax
jz short loc_41851
lea rcx, [rdi+28h]
jmp short loc_4185E
loc_41851:
mov rax, [rdi+30h]
test rax, rax
jz short loc_41864
lea rcx, [rdi+30h]
loc_4185E:
dec rax
mov [rcx], rax
loc_41864:
cmp dword ptr [rdi+14h], 0FFFFFFFFh
jz short locret_4187B
mov rax, [rdi+40h]
cmp [rdi+38h], rax
jz short loc_4187C
dec rax
mov [rdi+40h], rax
locret_4187B:
retn
loc_4187C:
push rax
lea rdi, aTokenStringEmp; "!token_string.empty()"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidNlohmannDe; "void nlohmann::detail::lexer<nlohmann::"...
mov edx, 2240h
call ___assert_fail
|
long long nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget(
long long a1)
{
long long result; // rax
_QWORD *v2; // rcx
long long v3; // rax
*(_BYTE *)(a1 + 24) = 1;
--*(_QWORD *)(a1 + 32);
result = *(_QWORD *)(a1 + 40);
if ( result )
{
v2 = (_QWORD *)(a1 + 40);
}
else
{
result = *(_QWORD *)(a1 + 48);
if ( !result )
goto LABEL_6;
v2 = (_QWORD *)(a1 + 48);
}
*v2 = --result;
LABEL_6:
if ( *(_DWORD *)(a1 + 20) != -1 )
{
v3 = *(_QWORD *)(a1 + 64);
if ( *(_QWORD *)(a1 + 56) == v3 )
__assert_fail(
"!token_string.empty()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
8768LL,
"void nlohmann::detail::lexer<nlohmann::basic_json<nlohmann::ordered_map>, nlohmann::detail::iterator_input_adapt"
"er<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>>::unget() [BasicJsonType = nlohmann::bas"
"ic_json<nlohmann::ordered_map>, InputAdapterType = nlohmann::detail::iterator_input_adapter<__gnu_cxx::__normal_"
"iterator<const char *, std::basic_string<char>>>]");
result = v3 - 1;
*(_QWORD *)(a1 + 64) = result;
}
return result;
}
| |||
59,662
|
ma_save_session_track_info
|
eloqsql/libmariadb/libmariadb/mariadb_lib.c
|
void ma_save_session_track_info(void *ptr, enum enum_mariadb_status_info type, ...)
{
MYSQL *mysql= (MYSQL *)ptr;
enum enum_session_state_type track_type;
va_list ap;
DBUG_ASSERT(mysql != NULL);
/* We only handle SESSION_TRACK_TYPE here */
if (type != SESSION_TRACK_TYPE)
return;
va_start(ap, type);
track_type= va_arg(ap, enum enum_session_state_type);
switch (track_type) {
case SESSION_TRACK_SCHEMA:
case SESSION_TRACK_STATE_CHANGE:
case SESSION_TRACK_TRANSACTION_CHARACTERISTICS:
case SESSION_TRACK_TRANSACTION_STATE:
case SESSION_TRACK_GTIDS:
case SESSION_TRACK_SYSTEM_VARIABLES:
{
LIST *session_item;
MYSQL_LEX_STRING *str;
char *tmp;
MARIADB_CONST_STRING *data1= va_arg(ap, MARIADB_CONST_STRING *);
if (!(session_item= ma_multi_malloc(0,
&session_item, sizeof(LIST),
&str, sizeof(MYSQL_LEX_STRING),
&tmp, data1->length,
NULL)))
goto mem_error;
str->str= tmp;
memcpy(str->str, data1->str, data1->length);
str->length= data1->length;
session_item->data= str;
mysql->extension->session_state[track_type].list= list_add(mysql->extension->session_state[track_type].list,
session_item);
if (track_type == SESSION_TRACK_SYSTEM_VARIABLES)
{
MARIADB_CONST_STRING *data2= va_arg(ap, MARIADB_CONST_STRING *);
if (!(session_item= ma_multi_malloc(0,
&session_item, sizeof(LIST),
&str, sizeof(MYSQL_LEX_STRING),
&tmp, data2->length,
NULL)))
goto mem_error;
str->str= tmp;
memcpy(str->str, data2->str, data2->length);
str->length= data2->length;
session_item->data= str;
mysql->extension->session_state[track_type].list= list_add(mysql->extension->session_state[track_type].list,
session_item);
}
}
break;
}
return;
mem_error:
SET_CLIENT_ERROR(mysql, CR_OUT_OF_MEMORY, SQLSTATE_UNKNOWN, 0);
return;
}
|
O0
|
c
|
ma_save_session_track_info:
pushq %rbp
movq %rsp, %rbp
subq $0x180, %rsp # imm = 0x180
testb %al, %al
je 0x1e7a4
movaps %xmm0, -0xf0(%rbp)
movaps %xmm1, -0xe0(%rbp)
movaps %xmm2, -0xd0(%rbp)
movaps %xmm3, -0xc0(%rbp)
movaps %xmm4, -0xb0(%rbp)
movaps %xmm5, -0xa0(%rbp)
movaps %xmm6, -0x90(%rbp)
movaps %xmm7, -0x80(%rbp)
movq %r9, -0xf8(%rbp)
movq %r8, -0x100(%rbp)
movq %rcx, -0x108(%rbp)
movq %rdx, -0x110(%rbp)
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
cmpl $0x1, -0xc(%rbp)
je 0x1e7da
jmp 0x1eb4b
leaq -0x40(%rbp), %rax
leaq -0x120(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x10, (%rax)
leaq -0x40(%rbp), %rax
movq %rax, -0x130(%rbp)
movl -0x40(%rbp), %eax
movl %eax, -0x124(%rbp)
cmpl $0x28, %eax
ja 0x1e839
movq -0x130(%rbp), %rcx
movl -0x124(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x138(%rbp)
jmp 0x1e856
movq -0x130(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x138(%rbp)
movq -0x138(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
subl $0x5, %eax
ja 0x1eae2
jmp 0x1e870
leaq -0x40(%rbp), %rax
movq %rax, -0x148(%rbp)
movl -0x40(%rbp), %eax
movl %eax, -0x13c(%rbp)
cmpl $0x28, %eax
ja 0x1e8ab
movq -0x148(%rbp), %rcx
movl -0x13c(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x150(%rbp)
jmp 0x1e8c8
movq -0x148(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x150(%rbp)
movq -0x150(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rax
xorl %edi, %edi
leaq -0x48(%rbp), %rsi
movl $0x18, %edx
leaq -0x50(%rbp), %rcx
movl $0x10, %r8d
leaq -0x58(%rbp), %r9
xorl %r10d, %r10d
movq %rax, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, %al
callq 0x25250
movq %rax, -0x48(%rbp)
cmpq $0x0, %rax
jne 0x1e91d
jmp 0x1eae4
movq -0x58(%rbp), %rcx
movq -0x50(%rbp), %rax
movq %rcx, (%rax)
movq -0x50(%rbp), %rax
movq (%rax), %rdi
movq -0x60(%rbp), %rax
movq (%rax), %rsi
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rdx
callq 0x13360
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x50(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x50(%rbp), %rcx
movq -0x48(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rax
movq 0x4f0(%rax), %rax
addq $0x8, %rax
movl -0x1c(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq -0x48(%rbp), %rsi
callq 0x231a0
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq 0x4f0(%rax), %rax
addq $0x8, %rax
movl -0x1c(%rbp), %edx
shlq $0x4, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
cmpl $0x0, -0x1c(%rbp)
jne 0x1eae0
leaq -0x40(%rbp), %rax
movq %rax, -0x160(%rbp)
movl -0x40(%rbp), %eax
movl %eax, -0x154(%rbp)
cmpl $0x28, %eax
ja 0x1e9e8
movq -0x160(%rbp), %rcx
movl -0x154(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x168(%rbp)
jmp 0x1ea05
movq -0x160(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x168(%rbp)
movq -0x168(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
movq 0x8(%rax), %rax
xorl %edi, %edi
leaq -0x48(%rbp), %rsi
movl $0x18, %edx
leaq -0x50(%rbp), %rcx
movl $0x10, %r8d
leaq -0x58(%rbp), %r9
xorl %r10d, %r10d
movq %rax, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, %al
callq 0x25250
movq %rax, -0x48(%rbp)
cmpq $0x0, %rax
jne 0x1ea5a
jmp 0x1eae4
movq -0x58(%rbp), %rcx
movq -0x50(%rbp), %rax
movq %rcx, (%rax)
movq -0x50(%rbp), %rax
movq (%rax), %rdi
movq -0x68(%rbp), %rax
movq (%rax), %rsi
movq -0x68(%rbp), %rax
movq 0x8(%rax), %rdx
callq 0x13360
movq -0x68(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x50(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x50(%rbp), %rcx
movq -0x48(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rax
movq 0x4f0(%rax), %rax
addq $0x8, %rax
movl -0x1c(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq -0x48(%rbp), %rsi
callq 0x231a0
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq 0x4f0(%rax), %rax
addq $0x8, %rax
movl -0x1c(%rbp), %edx
shlq $0x4, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
jmp 0x1eae2
jmp 0x1eb4b
jmp 0x1eae6
movq -0x18(%rbp), %rax
movl $0x7d8, 0x90(%rax) # imm = 0x7D8
movq -0x18(%rbp), %rdi
addq $0x297, %rdi # imm = 0x297
leaq 0x4146a(%rip), %rax # 0x5ff70
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13210
movq -0x18(%rbp), %rax
movb $0x0, 0x29c(%rax)
movq -0x18(%rbp), %rdi
addq $0x97, %rdi
leaq 0x41450(%rip), %rax # 0x5ff80
movq 0x40(%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x13210
movq -0x18(%rbp), %rax
movb $0x0, 0x296(%rax)
jmp 0x1eb4b
addq $0x180, %rsp # imm = 0x180
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
ma_save_session_track_info:
push rbp
mov rbp, rsp
sub rsp, 180h
test al, al
jz short loc_1E7A4
movaps [rbp+var_F0], xmm0
movaps [rbp+var_E0], xmm1
movaps [rbp+var_D0], xmm2
movaps [rbp+var_C0], xmm3
movaps [rbp+var_B0], xmm4
movaps [rbp+var_A0], xmm5
movaps [rbp+var_90], xmm6
movaps [rbp+var_80], xmm7
loc_1E7A4:
mov [rbp+var_F8], r9
mov [rbp+var_100], r8
mov [rbp+var_108], rcx
mov [rbp+var_110], rdx
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov rax, [rbp+var_8]
mov [rbp+var_18], rax
cmp [rbp+var_C], 1
jz short loc_1E7DA
jmp loc_1EB4B
loc_1E7DA:
lea rax, [rbp+var_40]
lea rcx, [rbp+var_120]
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
lea rax, [rbp+var_40]
mov [rbp+var_130], rax
mov eax, [rbp+var_40]
mov [rbp+var_124], eax
cmp eax, 28h ; '('
ja short loc_1E839
mov rcx, [rbp+var_130]
mov edx, [rbp+var_124]
movsxd rax, edx
add rax, [rcx+10h]
add edx, 8
mov [rcx], edx
mov [rbp+var_138], rax
jmp short loc_1E856
loc_1E839:
mov rcx, [rbp+var_130]
mov rax, [rcx+8]
mov rdx, rax
add rdx, 8
mov [rcx+8], rdx
mov [rbp+var_138], rax
loc_1E856:
mov rax, [rbp+var_138]
mov eax, [rax]
mov [rbp+var_1C], eax
mov eax, [rbp+var_1C]
sub eax, 5
ja loc_1EAE2
jmp short $+2
loc_1E870:
lea rax, [rbp+var_40]
mov [rbp+var_148], rax
mov eax, [rbp+var_40]
mov [rbp+var_13C], eax
cmp eax, 28h ; '('
ja short loc_1E8AB
mov rcx, [rbp+var_148]
mov edx, [rbp+var_13C]
movsxd rax, edx
add rax, [rcx+10h]
add edx, 8
mov [rcx], edx
mov [rbp+var_150], rax
jmp short loc_1E8C8
loc_1E8AB:
mov rcx, [rbp+var_148]
mov rax, [rcx+8]
mov rdx, rax
add rdx, 8
mov [rcx+8], rdx
mov [rbp+var_150], rax
loc_1E8C8:
mov rax, [rbp+var_150]
mov rax, [rax]
mov [rbp+var_60], rax
mov rax, [rbp+var_60]
mov rax, [rax+8]
xor edi, edi
lea rsi, [rbp+var_48]
mov edx, 18h
lea rcx, [rbp+var_50]
mov r8d, 10h
lea r9, [rbp+var_58]
xor r10d, r10d
mov [rsp+180h+var_180], rax
mov [rsp+180h+var_178], 0
mov al, 0
call ma_multi_malloc
mov [rbp+var_48], rax
cmp rax, 0
jnz short loc_1E91D
jmp loc_1EAE4
loc_1E91D:
mov rcx, [rbp+var_58]
mov rax, [rbp+var_50]
mov [rax], rcx
mov rax, [rbp+var_50]
mov rdi, [rax]
mov rax, [rbp+var_60]
mov rsi, [rax]
mov rax, [rbp+var_60]
mov rdx, [rax+8]
call _memcpy
mov rax, [rbp+var_60]
mov rcx, [rax+8]
mov rax, [rbp+var_50]
mov [rax+8], rcx
mov rcx, [rbp+var_50]
mov rax, [rbp+var_48]
mov [rax+10h], rcx
mov rax, [rbp+var_18]
mov rax, [rax+4F0h]
add rax, 8
mov ecx, [rbp+var_1C]
shl rcx, 4
add rax, rcx
mov rdi, [rax]
mov rsi, [rbp+var_48]
call list_add
mov rcx, rax
mov rax, [rbp+var_18]
mov rax, [rax+4F0h]
add rax, 8
mov edx, [rbp+var_1C]
shl rdx, 4
add rax, rdx
mov [rax], rcx
cmp [rbp+var_1C], 0
jnz loc_1EAE0
lea rax, [rbp+var_40]
mov [rbp+var_160], rax
mov eax, [rbp+var_40]
mov [rbp+var_154], eax
cmp eax, 28h ; '('
ja short loc_1E9E8
mov rcx, [rbp+var_160]
mov edx, [rbp+var_154]
movsxd rax, edx
add rax, [rcx+10h]
add edx, 8
mov [rcx], edx
mov [rbp+var_168], rax
jmp short loc_1EA05
loc_1E9E8:
mov rcx, [rbp+var_160]
mov rax, [rcx+8]
mov rdx, rax
add rdx, 8
mov [rcx+8], rdx
mov [rbp+var_168], rax
loc_1EA05:
mov rax, [rbp+var_168]
mov rax, [rax]
mov [rbp+var_68], rax
mov rax, [rbp+var_68]
mov rax, [rax+8]
xor edi, edi
lea rsi, [rbp+var_48]
mov edx, 18h
lea rcx, [rbp+var_50]
mov r8d, 10h
lea r9, [rbp+var_58]
xor r10d, r10d
mov [rsp+180h+var_180], rax
mov [rsp+180h+var_178], 0
mov al, 0
call ma_multi_malloc
mov [rbp+var_48], rax
cmp rax, 0
jnz short loc_1EA5A
jmp loc_1EAE4
loc_1EA5A:
mov rcx, [rbp+var_58]
mov rax, [rbp+var_50]
mov [rax], rcx
mov rax, [rbp+var_50]
mov rdi, [rax]
mov rax, [rbp+var_68]
mov rsi, [rax]
mov rax, [rbp+var_68]
mov rdx, [rax+8]
call _memcpy
mov rax, [rbp+var_68]
mov rcx, [rax+8]
mov rax, [rbp+var_50]
mov [rax+8], rcx
mov rcx, [rbp+var_50]
mov rax, [rbp+var_48]
mov [rax+10h], rcx
mov rax, [rbp+var_18]
mov rax, [rax+4F0h]
add rax, 8
mov ecx, [rbp+var_1C]
shl rcx, 4
add rax, rcx
mov rdi, [rax]
mov rsi, [rbp+var_48]
call list_add
mov rcx, rax
mov rax, [rbp+var_18]
mov rax, [rax+4F0h]
add rax, 8
mov edx, [rbp+var_1C]
shl rdx, 4
add rax, rdx
mov [rax], rcx
loc_1EAE0:
jmp short $+2
loc_1EAE2:
jmp short loc_1EB4B
loc_1EAE4:
jmp short $+2
loc_1EAE6:
mov rax, [rbp+var_18]
mov dword ptr [rax+90h], 7D8h
mov rdi, [rbp+var_18]
add rdi, 297h
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
mov rax, [rbp+var_18]
mov byte ptr [rax+29Ch], 0
mov rdi, [rbp+var_18]
add rdi, 97h
lea rax, client_errors
mov rsi, [rax+40h]
mov edx, 1FFh
call _strncpy
mov rax, [rbp+var_18]
mov byte ptr [rax+296h], 0
jmp short $+2
loc_1EB4B:
add rsp, 180h
pop rbp
retn
|
long long ma_save_session_track_info(long long a1, int a2, unsigned int a3, ...)
{
long long result; // rax
char *v4; // rax
long long v5; // rcx
char *overflow_arg_area; // rax
long long v7; // rcx
_QWORD *v8; // [rsp+118h] [rbp-68h]
_QWORD *v9; // [rsp+120h] [rbp-60h]
long long v10; // [rsp+128h] [rbp-58h] BYREF
_QWORD *v11; // [rsp+130h] [rbp-50h] BYREF
long long v12; // [rsp+138h] [rbp-48h] BYREF
va_list va; // [rsp+140h] [rbp-40h] BYREF
unsigned int v14; // [rsp+164h] [rbp-1Ch]
long long v15; // [rsp+168h] [rbp-18h]
int v16; // [rsp+174h] [rbp-Ch]
long long v17; // [rsp+178h] [rbp-8h]
v17 = a1;
v16 = a2;
result = a1;
v15 = a1;
if ( a2 == 1 )
{
va_start(va, a3);
v14 = a3;
result = a3 - 5;
if ( a3 <= 5 )
{
v4 = (char *)va[0].reg_save_area + (int)va[0].gp_offset;
va[0].gp_offset += 8;
v9 = *(_QWORD **)v4;
v12 = ma_multi_malloc(
0,
(unsigned int)&v12,
24,
(unsigned int)&v11,
16,
(unsigned int)&v10,
*(_QWORD *)(*(_QWORD *)v4 + 8LL),
0LL);
if ( !v12 )
goto LABEL_11;
*v11 = v10;
memcpy(*v11, *v9, v9[1]);
v11[1] = v9[1];
*(_QWORD *)(v12 + 16) = v11;
v5 = list_add(*(_QWORD *)(16LL * v14 + *(_QWORD *)(v15 + 1264) + 8LL), v12);
result = 16LL * v14 + *(_QWORD *)(v15 + 1264) + 8LL;
*(_QWORD *)result = v5;
if ( v14 )
return result;
if ( va[0].gp_offset > 0x28 )
{
overflow_arg_area = (char *)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;
}
v8 = *(_QWORD **)overflow_arg_area;
v12 = ma_multi_malloc(
0,
(unsigned int)&v12,
24,
(unsigned int)&v11,
16,
(unsigned int)&v10,
*(_QWORD *)(*(_QWORD *)overflow_arg_area + 8LL),
0LL);
if ( !v12 )
{
LABEL_11:
*(_DWORD *)(v15 + 144) = 2008;
strncpy(v15 + 663, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(v15 + 668) = 0;
strncpy(v15 + 151, client_errors[8], 511LL);
result = v15;
*(_BYTE *)(v15 + 662) = 0;
return result;
}
*v11 = v10;
memcpy(*v11, *v8, v8[1]);
v11[1] = v8[1];
*(_QWORD *)(v12 + 16) = v11;
v7 = list_add(*(_QWORD *)(16LL * v14 + *(_QWORD *)(v15 + 1264) + 8LL), v12);
result = 16LL * v14 + *(_QWORD *)(v15 + 1264) + 8LL;
*(_QWORD *)result = v7;
}
}
return result;
}
|
ma_save_session_track_info:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x180
TEST AL,AL
JZ 0x0011e7a4
MOVAPS xmmword ptr [RBP + -0xf0],XMM0
MOVAPS xmmword ptr [RBP + -0xe0],XMM1
MOVAPS xmmword ptr [RBP + -0xd0],XMM2
MOVAPS xmmword ptr [RBP + -0xc0],XMM3
MOVAPS xmmword ptr [RBP + -0xb0],XMM4
MOVAPS xmmword ptr [RBP + -0xa0],XMM5
MOVAPS xmmword ptr [RBP + -0x90],XMM6
MOVAPS xmmword ptr [RBP + -0x80],XMM7
LAB_0011e7a4:
MOV qword ptr [RBP + -0xf8],R9
MOV qword ptr [RBP + -0x100],R8
MOV qword ptr [RBP + -0x108],RCX
MOV qword ptr [RBP + -0x110],RDX
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RAX
CMP dword ptr [RBP + -0xc],0x1
JZ 0x0011e7da
JMP 0x0011eb4b
LAB_0011e7da:
LEA RAX,[RBP + -0x40]
LEA RCX,[RBP + -0x120]
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
LEA RAX,[RBP + -0x40]
MOV qword ptr [RBP + -0x130],RAX
MOV EAX,dword ptr [RBP + -0x40]
MOV dword ptr [RBP + -0x124],EAX
CMP EAX,0x28
JA 0x0011e839
MOV RCX,qword ptr [RBP + -0x130]
MOV EDX,dword ptr [RBP + -0x124]
MOVSXD RAX,EDX
ADD RAX,qword ptr [RCX + 0x10]
ADD EDX,0x8
MOV dword ptr [RCX],EDX
MOV qword ptr [RBP + -0x138],RAX
JMP 0x0011e856
LAB_0011e839:
MOV RCX,qword ptr [RBP + -0x130]
MOV RAX,qword ptr [RCX + 0x8]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RBP + -0x138],RAX
LAB_0011e856:
MOV RAX,qword ptr [RBP + -0x138]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x1c]
SUB EAX,0x5
JA 0x0011eae2
JMP 0x0011e870
LAB_0011e870:
LEA RAX,[RBP + -0x40]
MOV qword ptr [RBP + -0x148],RAX
MOV EAX,dword ptr [RBP + -0x40]
MOV dword ptr [RBP + -0x13c],EAX
CMP EAX,0x28
JA 0x0011e8ab
MOV RCX,qword ptr [RBP + -0x148]
MOV EDX,dword ptr [RBP + -0x13c]
MOVSXD RAX,EDX
ADD RAX,qword ptr [RCX + 0x10]
ADD EDX,0x8
MOV dword ptr [RCX],EDX
MOV qword ptr [RBP + -0x150],RAX
JMP 0x0011e8c8
LAB_0011e8ab:
MOV RCX,qword ptr [RBP + -0x148]
MOV RAX,qword ptr [RCX + 0x8]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RBP + -0x150],RAX
LAB_0011e8c8:
MOV RAX,qword ptr [RBP + -0x150]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x60]
MOV RAX,qword ptr [RAX + 0x8]
XOR EDI,EDI
LEA RSI,[RBP + -0x48]
MOV EDX,0x18
LEA RCX,[RBP + -0x50]
MOV R8D,0x10
LEA R9,[RBP + -0x58]
XOR R10D,R10D
MOV qword ptr [RSP],RAX
MOV qword ptr [RSP + 0x8],0x0
MOV AL,0x0
CALL 0x00125250
MOV qword ptr [RBP + -0x48],RAX
CMP RAX,0x0
JNZ 0x0011e91d
JMP 0x0011eae4
LAB_0011e91d:
MOV RCX,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x50]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x60]
MOV RSI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x60]
MOV RDX,qword ptr [RAX + 0x8]
CALL 0x00113360
MOV RAX,qword ptr [RBP + -0x60]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RAX + 0x8],RCX
MOV RCX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x4f0]
ADD RAX,0x8
MOV ECX,dword ptr [RBP + -0x1c]
SHL RCX,0x4
ADD RAX,RCX
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x48]
CALL 0x001231a0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x4f0]
ADD RAX,0x8
MOV EDX,dword ptr [RBP + -0x1c]
SHL RDX,0x4
ADD RAX,RDX
MOV qword ptr [RAX],RCX
CMP dword ptr [RBP + -0x1c],0x0
JNZ 0x0011eae0
LEA RAX,[RBP + -0x40]
MOV qword ptr [RBP + -0x160],RAX
MOV EAX,dword ptr [RBP + -0x40]
MOV dword ptr [RBP + -0x154],EAX
CMP EAX,0x28
JA 0x0011e9e8
MOV RCX,qword ptr [RBP + -0x160]
MOV EDX,dword ptr [RBP + -0x154]
MOVSXD RAX,EDX
ADD RAX,qword ptr [RCX + 0x10]
ADD EDX,0x8
MOV dword ptr [RCX],EDX
MOV qword ptr [RBP + -0x168],RAX
JMP 0x0011ea05
LAB_0011e9e8:
MOV RCX,qword ptr [RBP + -0x160]
MOV RAX,qword ptr [RCX + 0x8]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RBP + -0x168],RAX
LAB_0011ea05:
MOV RAX,qword ptr [RBP + -0x168]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,qword ptr [RBP + -0x68]
MOV RAX,qword ptr [RAX + 0x8]
XOR EDI,EDI
LEA RSI,[RBP + -0x48]
MOV EDX,0x18
LEA RCX,[RBP + -0x50]
MOV R8D,0x10
LEA R9,[RBP + -0x58]
XOR R10D,R10D
MOV qword ptr [RSP],RAX
MOV qword ptr [RSP + 0x8],0x0
MOV AL,0x0
CALL 0x00125250
MOV qword ptr [RBP + -0x48],RAX
CMP RAX,0x0
JNZ 0x0011ea5a
JMP 0x0011eae4
LAB_0011ea5a:
MOV RCX,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x50]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x68]
MOV RSI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x68]
MOV RDX,qword ptr [RAX + 0x8]
CALL 0x00113360
MOV RAX,qword ptr [RBP + -0x68]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RAX + 0x8],RCX
MOV RCX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x4f0]
ADD RAX,0x8
MOV ECX,dword ptr [RBP + -0x1c]
SHL RCX,0x4
ADD RAX,RCX
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x48]
CALL 0x001231a0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x4f0]
ADD RAX,0x8
MOV EDX,dword ptr [RBP + -0x1c]
SHL RDX,0x4
ADD RAX,RDX
MOV qword ptr [RAX],RCX
LAB_0011eae0:
JMP 0x0011eae2
LAB_0011eae2:
JMP 0x0011eb4b
LAB_0011eae4:
JMP 0x0011eae6
LAB_0011eae6:
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x90],0x7d8
MOV RDI,qword ptr [RBP + -0x18]
ADD RDI,0x297
LEA RAX,[0x15ff70]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113210
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX + 0x29c],0x0
MOV RDI,qword ptr [RBP + -0x18]
ADD RDI,0x97
LEA RAX,[0x15ff80]
MOV RSI,qword ptr [RAX + 0x40]
MOV EDX,0x1ff
CALL 0x00113210
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX + 0x296],0x0
JMP 0x0011eb4b
LAB_0011eb4b:
ADD RSP,0x180
POP RBP
RET
|
/* WARNING: Removing unreachable block (ram,0x0011e839) */
/* WARNING: Removing unreachable block (ram,0x0011e8ab) */
/* WARNING: Heritage AFTER dead removal. Example location: s0xfffffffffffffee8 : 0x0011e85d */
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void ma_save_session_track_info
(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,
long param_9,int param_10,int8 param_11,int8 param_12,int8 param_13
,int8 param_14)
{
int8 *puVar1;
char in_AL;
int8 uVar2;
long *local_170;
int1 local_128 [16];
int8 local_118;
int8 *local_110;
int8 local_108;
int8 local_100;
int8 local_f8;
int8 local_e8;
int8 local_d8;
int8 local_c8;
int8 local_b8;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 *local_70;
int8 *local_68;
int8 local_60;
int8 *local_58;
long local_50;
uint local_48;
int4 local_44;
long *local_40;
int1 *local_38;
uint local_24;
long local_20;
int local_14;
long local_10;
if (in_AL != '\0') {
local_f8 = param_1;
local_e8 = param_2;
local_d8 = param_3;
local_c8 = param_4;
local_b8 = param_5;
local_a8 = param_6;
local_98 = param_7;
local_88 = param_8;
}
if (param_10 == 1) {
local_38 = local_128;
local_40 = (long *)&stack0x00000008;
local_44 = 0x30;
local_24 = (uint)local_118;
if ((uint)local_118 < 6) {
local_48 = 0x20;
local_68 = local_110;
puVar1 = local_110 + 1;
local_118 = param_11;
local_110 = (int8 *)param_12;
local_108 = param_13;
local_100 = param_14;
local_20 = param_9;
local_14 = param_10;
local_10 = param_9;
local_50 = ma_multi_malloc(0,&local_50,0x18,&local_58,0x10,&local_60,*puVar1,0);
if (local_50 != 0) {
*local_58 = local_60;
memcpy((void *)*local_58,(void *)*local_68,local_68[1]);
local_58[1] = local_68[1];
*(int8 **)(local_50 + 0x10) = local_58;
uVar2 = list_add(*(int8 *)(*(long *)(local_20 + 0x4f0) + 8 + (ulong)local_24 * 0x10),
local_50);
*(int8 *)(*(long *)(local_20 + 0x4f0) + 8 + (ulong)local_24 * 0x10) = uVar2;
if (local_24 != 0) {
return;
}
if (local_48 < 0x29) {
local_170 = (long *)(local_38 + (int)local_48);
local_48 = local_48 + 8;
}
else {
local_170 = local_40;
local_40 = local_40 + 1;
}
local_70 = (int8 *)*local_170;
local_50 = ma_multi_malloc(0,&local_50,0x18,&local_58,0x10,&local_60,local_70[1],0);
if (local_50 != 0) {
*local_58 = local_60;
memcpy((void *)*local_58,(void *)*local_70,local_70[1]);
local_58[1] = local_70[1];
*(int8 **)(local_50 + 0x10) = local_58;
uVar2 = list_add(*(int8 *)(*(long *)(local_20 + 0x4f0) + 8 + (ulong)local_24 * 0x10)
,local_50);
*(int8 *)(*(long *)(local_20 + 0x4f0) + 8 + (ulong)local_24 * 0x10) = uVar2;
return;
}
}
local_50 = 0;
*(int4 *)(local_20 + 0x90) = 0x7d8;
strncpy((char *)(local_20 + 0x297),SQLSTATE_UNKNOWN,5);
*(int1 *)(local_20 + 0x29c) = 0;
strncpy((char *)(local_20 + 0x97),PTR_s_Client_run_out_of_memory_0015ffc0,0x1ff);
*(int1 *)(local_20 + 0x296) = 0;
}
}
return;
}
|
|
59,663
|
process_bin_arg
|
eloqsql/strings/my_vsnprintf.c
|
static char *process_bin_arg(char *to, char *end, size_t width, char *par)
{
DBUG_ASSERT(to <= end);
if (to + width + 1 > end)
width= end - to - 1; /* sign doesn't matter */
memmove(to, par, width);
to+= width;
return to;
}
|
O0
|
c
|
process_bin_arg:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
jmp 0xc5d5a
movq -0x8(%rbp), %rax
addq -0x18(%rbp), %rax
addq $0x1, %rax
cmpq -0x10(%rbp), %rax
jbe 0xc5d7f
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
subq %rcx, %rax
subq $0x1, %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x36150
movq -0x18(%rbp), %rax
addq -0x8(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
process_bin_arg:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
jmp short $+2
loc_C5D5A:
mov rax, [rbp+var_8]
add rax, [rbp+var_18]
add rax, 1
cmp rax, [rbp+var_10]
jbe short loc_C5D7F
mov rax, [rbp+var_10]
mov rcx, [rbp+var_8]
sub rax, rcx
sub rax, 1
mov [rbp+var_18], rax
loc_C5D7F:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_18]
call _memmove
mov rax, [rbp+var_18]
add rax, [rbp+var_8]
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
add rsp, 20h
pop rbp
retn
|
long long process_bin_arg(long long a1, unsigned long long a2, long long a3, long long a4)
{
long long v5; // [rsp+8h] [rbp-18h]
v5 = a3;
if ( a3 + a1 + 1 > a2 )
v5 = a2 - a1 - 1;
memmove(a1, a4, v5);
return a1 + v5;
}
|
process_bin_arg:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
JMP 0x001c5d5a
LAB_001c5d5a:
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
CMP RAX,qword ptr [RBP + -0x10]
JBE 0x001c5d7f
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x8]
SUB RAX,RCX
SUB RAX,0x1
MOV qword ptr [RBP + -0x18],RAX
LAB_001c5d7f:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x00136150
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x20
POP RBP
RET
|
long process_bin_arg(void *param_1,ulong param_2,size_t param_3,void *param_4)
{
size_t local_20;
local_20 = param_3;
if (param_2 < (long)param_1 + param_3 + 1) {
local_20 = (param_2 - (long)param_1) - 1;
}
memmove(param_1,param_4,local_20);
return local_20 + (long)param_1;
}
|
|
59,664
|
minja::SetTemplateNode::SetTemplateNode(minja::Location const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::shared_ptr<minja::TemplateNode>&&)
|
monkey531[P]llama/common/minja.hpp
|
SetTemplateNode(const Location & location, const std::string & name, std::shared_ptr<TemplateNode> && tv)
: TemplateNode(location), name(name), template_value(std::move(tv)) {}
|
O3
|
cpp
|
minja::SetTemplateNode::SetTemplateNode(minja::Location const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::shared_ptr<minja::TemplateNode>&&):
pushq %r15
pushq %r14
pushq %rbx
movq %rcx, %r14
movq %rdi, %rbx
leaq 0x8be0e(%rip), %r15 # 0x12afd8
addq $0x10, %r15
movq %r15, (%rdi)
movq (%rsi), %rax
movq %rax, 0x8(%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x10(%rdi)
testq %rax, %rax
je 0x9f1fa
movq 0x8cd9c(%rip), %rcx # 0x12bf88
cmpb $0x0, (%rcx)
je 0x9f1f6
incl 0x8(%rax)
jmp 0x9f1fa
lock
incl 0x8(%rax)
movq 0x10(%rsi), %rax
movq %rax, 0x18(%rbx)
leaq 0x8c1cf(%rip), %rax # 0x12b3d8
addq $0x10, %rax
movq %rax, (%rbx)
leaq 0x20(%rbx), %rdi
leaq 0x30(%rbx), %rax
movq %rax, 0x20(%rbx)
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
addq %rsi, %rdx
callq 0x22374
xorl %eax, %eax
movq %rax, 0x48(%rbx)
movups (%r14), %xmm0
movq %rax, 0x8(%r14)
movups %xmm0, 0x40(%rbx)
movq %rax, (%r14)
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq %r15, (%rbx)
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x9f25a
callq 0x6e096
movq %r14, %rdi
callq 0x1afb0
|
_ZN5minja15SetTemplateNodeC2ERKNS_8LocationERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEOSt10shared_ptrINS_12TemplateNodeEE:
push r15
push r14
push rbx
mov r14, rcx
mov rbx, rdi
lea r15, _ZTVN5minja12TemplateNodeE; `vtable for'minja::TemplateNode
add r15, 10h
mov [rdi], r15
mov rax, [rsi]
mov [rdi+8], rax
mov rax, [rsi+8]
mov [rdi+10h], rax
test rax, rax
jz short loc_9F1FA
mov rcx, cs:__libc_single_threaded_ptr
cmp byte ptr [rcx], 0
jz short loc_9F1F6
inc dword ptr [rax+8]
jmp short loc_9F1FA
loc_9F1F6:
lock inc dword ptr [rax+8]
loc_9F1FA:
mov rax, [rsi+10h]
mov [rbx+18h], rax
lea rax, _ZTVN5minja15SetTemplateNodeE; `vtable for'minja::SetTemplateNode
add rax, 10h
mov [rbx], rax
lea rdi, [rbx+20h]
lea rax, [rbx+30h]
mov [rbx+20h], rax
mov rsi, [rdx]
mov rdx, [rdx+8]
add rdx, rsi
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
xor eax, eax
mov [rbx+48h], rax
movups xmm0, xmmword ptr [r14]
mov [r14+8], rax
movups xmmword ptr [rbx+40h], xmm0
mov [r14], rax
pop rbx
pop r14
pop r15
retn
mov r14, rax
mov [rbx], r15
mov rdi, [rbx+10h]
test rdi, rdi
jz short loc_9F25A
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9F25A:
mov rdi, r14
call __Unwind_Resume
|
long long minja::SetTemplateNode::SetTemplateNode(long long a1, _QWORD *a2, long long a3, __int128 *a4)
{
long long v5; // rax
long long result; // rax
__int128 v7; // xmm0
*(_QWORD *)a1 = &`vtable for'minja::TemplateNode + 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::SetTemplateNode + 2;
*(_QWORD *)(a1 + 32) = a1 + 48;
std::string::_M_construct<char *>(a1 + 32, *(_BYTE **)a3, *(_QWORD *)a3 + *(_QWORD *)(a3 + 8));
result = 0LL;
*(_QWORD *)(a1 + 72) = 0LL;
v7 = *a4;
*((_QWORD *)a4 + 1) = 0LL;
*(_OWORD *)(a1 + 64) = v7;
*(_QWORD *)a4 = 0LL;
return result;
}
|
SetTemplateNode:
PUSH R15
PUSH R14
PUSH RBX
MOV R14,RCX
MOV RBX,RDI
LEA R15,[0x22afd8]
ADD R15,0x10
MOV qword ptr [RDI],R15
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 0x0019f1fa
MOV RCX,qword ptr [0x0022bf88]
CMP byte ptr [RCX],0x0
JZ 0x0019f1f6
INC dword ptr [RAX + 0x8]
JMP 0x0019f1fa
LAB_0019f1f6:
INC.LOCK dword ptr [RAX + 0x8]
LAB_0019f1fa:
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RBX + 0x18],RAX
LEA RAX,[0x22b3d8]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
LEA RDI,[RBX + 0x20]
LEA RAX,[RBX + 0x30]
MOV qword ptr [RBX + 0x20],RAX
MOV RSI,qword ptr [RDX]
MOV RDX,qword ptr [RDX + 0x8]
ADD RDX,RSI
LAB_0019f226:
CALL 0x00122374
LAB_0019f22b:
XOR EAX,EAX
MOV qword ptr [RBX + 0x48],RAX
MOVUPS XMM0,xmmword ptr [R14]
MOV qword ptr [R14 + 0x8],RAX
MOVUPS xmmword ptr [RBX + 0x40],XMM0
MOV qword ptr [R14],RAX
POP RBX
POP R14
POP R15
RET
|
/* minja::SetTemplateNode::SetTemplateNode(minja::Location const&, std::__cxx11::string const&,
std::shared_ptr<minja::TemplateNode>&&) */
void __thiscall
minja::SetTemplateNode::SetTemplateNode
(SetTemplateNode *this,Location *param_1,string *param_2,shared_ptr *param_3)
{
long lVar1;
int8 uVar2;
*(int ***)this = &PTR___cxa_pure_virtual_0022afe8;
*(int8 *)(this + 8) = *(int8 *)param_1;
lVar1 = *(long *)(param_1 + 8);
*(long *)(this + 0x10) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_0022bf88 == '\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_render_0022b3e8;
*(SetTemplateNode **)(this + 0x20) = this + 0x30;
/* try { // try from 0019f226 to 0019f22a has its CatchHandler @ 0019f246 */
std::__cxx11::string::_M_construct<char*>
(this + 0x20,*(long *)param_2,*(long *)(param_2 + 8) + *(long *)param_2);
*(int8 *)(this + 0x48) = 0;
uVar2 = *(int8 *)(param_3 + 8);
*(int8 *)(param_3 + 8) = 0;
*(int8 *)(this + 0x40) = *(int8 *)param_3;
*(int8 *)(this + 0x48) = uVar2;
*(int8 *)param_3 = 0;
return;
}
|
|
59,665
|
smart_read_value
|
eloqsql/strings/json_lib.c
|
static enum json_types smart_read_value(json_engine_t *je,
const char **value, int *value_len)
{
if (json_read_value(je))
goto err_return;
*value= (char *) je->value;
if (json_value_scalar(je))
*value_len= je->value_len;
else
{
if (json_skip_level(je))
goto err_return;
*value_len= (int) ((char *) je->s.c_str - *value);
}
compile_time_assert((int) JSON_VALUE_OBJECT == (int) JSV_OBJECT);
compile_time_assert((int) JSON_VALUE_ARRAY == (int) JSV_ARRAY);
compile_time_assert((int) JSON_VALUE_STRING == (int) JSV_STRING);
compile_time_assert((int) JSON_VALUE_NUMBER == (int) JSV_NUMBER);
compile_time_assert((int) JSON_VALUE_TRUE == (int) JSV_TRUE);
compile_time_assert((int) JSON_VALUE_FALSE == (int) JSV_FALSE);
compile_time_assert((int) JSON_VALUE_NULL == (int) JSV_NULL);
return (enum json_types) je->value_type;
err_return:
return JSV_BAD_JSON;
}
|
O0
|
c
|
smart_read_value:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
callq 0x32050
cmpl $0x0, %eax
je 0x339a7
jmp 0x33a2a
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
cmpl $0x2, 0x38(%rax)
jbe 0x339cf
movq -0x10(%rbp), %rax
movl 0x60(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, (%rax)
jmp 0x33a02
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0xe4(%rax), %esi
callq 0x327d0
cmpl $0x0, %eax
je 0x339e9
jmp 0x33a2a
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
subq %rcx, %rax
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, (%rax)
jmp 0x33a04
jmp 0x33a06
jmp 0x33a08
jmp 0x33a0a
jmp 0x33a0c
jmp 0x33a0e
jmp 0x33a10
jmp 0x33a12
jmp 0x33a14
jmp 0x33a16
jmp 0x33a18
jmp 0x33a1a
jmp 0x33a1c
jmp 0x33a1e
movq -0x10(%rbp), %rax
movl 0x38(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x33a31
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
smart_read_value:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rdi, [rbp+var_10]
call json_read_value
cmp eax, 0
jz short loc_339A7
jmp loc_33A2A
loc_339A7:
mov rax, [rbp+var_10]
mov rcx, [rax+40h]
mov rax, [rbp+var_18]
mov [rax], rcx
mov rax, [rbp+var_10]
cmp dword ptr [rax+38h], 2
jbe short loc_339CF
mov rax, [rbp+var_10]
mov ecx, [rax+60h]
mov rax, [rbp+var_20]
mov [rax], ecx
jmp short loc_33A02
loc_339CF:
mov rdi, [rbp+var_10]
mov rax, [rbp+var_10]
mov esi, [rax+0E4h]
call json_skip_to_level
cmp eax, 0
jz short loc_339E9
jmp short loc_33A2A
loc_339E9:
mov rax, [rbp+var_10]
mov rax, [rax]
mov rcx, [rbp+var_18]
mov rcx, [rcx]
sub rax, rcx
mov ecx, eax
mov rax, [rbp+var_20]
mov [rax], ecx
loc_33A02:
jmp short $+2
loc_33A04:
jmp short $+2
loc_33A06:
jmp short $+2
loc_33A08:
jmp short $+2
loc_33A0A:
jmp short $+2
loc_33A0C:
jmp short $+2
loc_33A0E:
jmp short $+2
loc_33A10:
jmp short $+2
loc_33A12:
jmp short $+2
loc_33A14:
jmp short $+2
loc_33A16:
jmp short $+2
loc_33A18:
jmp short $+2
loc_33A1A:
jmp short $+2
loc_33A1C:
jmp short $+2
loc_33A1E:
mov rax, [rbp+var_10]
mov eax, [rax+38h]
mov [rbp+var_4], eax
jmp short loc_33A31
loc_33A2A:
mov [rbp+var_4], 0FFFFFFFFh
loc_33A31:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
|
long long smart_read_value(long long a1, _QWORD *a2, _DWORD *a3)
{
if ( (unsigned int)json_read_value(a1) )
return (unsigned int)-1;
*a2 = *(_QWORD *)(a1 + 64);
if ( *(_DWORD *)(a1 + 56) <= 2u )
{
if ( !(unsigned int)json_skip_to_level(a1, *(_DWORD *)(a1 + 228)) )
{
*a3 = *(_DWORD *)a1 - *(_DWORD *)a2;
return *(unsigned int *)(a1 + 56);
}
return (unsigned int)-1;
}
*a3 = *(_DWORD *)(a1 + 96);
return *(unsigned int *)(a1 + 56);
}
|
smart_read_value:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00132050
CMP EAX,0x0
JZ 0x001339a7
JMP 0x00133a2a
LAB_001339a7:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x40]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x38],0x2
JBE 0x001339cf
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x60]
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX],ECX
JMP 0x00133a02
LAB_001339cf:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RAX + 0xe4]
CALL 0x001327d0
CMP EAX,0x0
JZ 0x001339e9
JMP 0x00133a2a
LAB_001339e9:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
SUB RAX,RCX
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX],ECX
LAB_00133a02:
JMP 0x00133a04
LAB_00133a04:
JMP 0x00133a06
LAB_00133a06:
JMP 0x00133a08
LAB_00133a08:
JMP 0x00133a0a
LAB_00133a0a:
JMP 0x00133a0c
LAB_00133a0c:
JMP 0x00133a0e
LAB_00133a0e:
JMP 0x00133a10
LAB_00133a10:
JMP 0x00133a12
LAB_00133a12:
JMP 0x00133a14
LAB_00133a14:
JMP 0x00133a16
LAB_00133a16:
JMP 0x00133a18
LAB_00133a18:
JMP 0x00133a1a
LAB_00133a1a:
JMP 0x00133a1c
LAB_00133a1c:
JMP 0x00133a1e
LAB_00133a1e:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x38]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00133a31
LAB_00133a2a:
MOV dword ptr [RBP + -0x4],0xffffffff
LAB_00133a31:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int4 smart_read_value(int8 *param_1,int8 *param_2,int *param_3)
{
int iVar1;
int4 local_c;
iVar1 = json_read_value(param_1);
if (iVar1 == 0) {
*param_2 = param_1[8];
if (*(uint *)(param_1 + 7) < 3) {
iVar1 = json_skip_to_level(param_1,*(int4 *)((long)param_1 + 0xe4));
if (iVar1 != 0) goto LAB_00133a2a;
*param_3 = (int)*param_1 - (int)*param_2;
}
else {
*param_3 = *(int *)(param_1 + 0xc);
}
local_c = *(int4 *)(param_1 + 7);
}
else {
LAB_00133a2a:
local_c = 0xffffffff;
}
return local_c;
}
|
|
59,666
|
string_view::operator[](unsigned long) const
|
monkey531[P]llama/common/json-schema-to-grammar.cpp
|
char operator[](size_t pos) const {
auto index = _start + pos;
if (index >= _end) {
throw std::out_of_range("string_view index out of range");
}
return _str[_start + pos];
}
|
O1
|
cpp
|
string_view::operator[](unsigned long) const:
pushq %r14
pushq %rbx
pushq %rax
addq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
jae 0xf00f9
movq (%rdi), %rax
movq (%rax), %rax
movb (%rax,%rsi), %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl $0x10, %edi
callq 0x1d5b0
movq %rax, %rbx
leaq 0x2d05d(%rip), %rsi # 0x11d16a
movq %rax, %rdi
callq 0x1d130
movq 0x68e94(%rip), %rsi # 0x158fb0
movq 0x68e6d(%rip), %rdx # 0x158f90
movq %rbx, %rdi
callq 0x1e5a0
movq %rax, %r14
movq %rbx, %rdi
callq 0x1d8b0
movq %r14, %rdi
callq 0x1e650
|
_ZNK11string_viewixEm:
push r14
push rbx
push rax
add rsi, [rdi+8]
cmp rsi, [rdi+10h]
jnb short loc_F00F9
mov rax, [rdi]
mov rax, [rax]
mov al, [rax+rsi]
add rsp, 8
pop rbx
pop r14
retn
loc_F00F9:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aStringViewInde; "string_view index out of range"
mov rdi, rax; this
call __ZNSt12out_of_rangeC1EPKc; std::out_of_range::out_of_range(char const*)
mov rsi, cs:_ZTISt12out_of_range_ptr; lptinfo
mov rdx, cs:_ZNSt12out_of_rangeD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
mov rdi, rbx; void *
call ___cxa_free_exception
mov rdi, r14
call __Unwind_Resume
|
char string_view::operator[](long long a1, long long a2)
{
unsigned long long v2; // rsi
std::out_of_range *exception; // rbx
v2 = *(_QWORD *)(a1 + 8) + a2;
if ( v2 >= *(_QWORD *)(a1 + 16) )
{
exception = (std::out_of_range *)__cxa_allocate_exception(0x10uLL);
std::out_of_range::out_of_range(exception, "string_view index out of range");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::out_of_range,
(void (*)(void *))&std::out_of_range::~out_of_range);
}
return *(_BYTE *)(**(_QWORD **)a1 + v2);
}
|
operator[]:
PUSH R14
PUSH RBX
PUSH RAX
ADD RSI,qword ptr [RDI + 0x8]
CMP RSI,qword ptr [RDI + 0x10]
JNC 0x001f00f9
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX]
MOV AL,byte ptr [RAX + RSI*0x1]
ADD RSP,0x8
POP RBX
POP R14
RET
LAB_001f00f9:
MOV EDI,0x10
CALL 0x0011d5b0
MOV RBX,RAX
LAB_001f0106:
LEA RSI,[0x21d16a]
MOV RDI,RAX
CALL 0x0011d130
LAB_001f0115:
MOV RSI,qword ptr [0x00258fb0]
MOV RDX,qword ptr [0x00258f90]
MOV RDI,RBX
CALL 0x0011e5a0
|
/* string_view::operator[](unsigned long) const */
int8 __thiscall string_view::operator[](string_view *this,ulong param_1)
{
out_of_range *this_00;
if (param_1 + *(long *)(this + 8) < *(ulong *)(this + 0x10)) {
return CONCAT71((int7)((ulong)**(long **)this >> 8),
*(int1 *)(**(long **)this + param_1 + *(long *)(this + 8)));
}
this_00 = (out_of_range *)__cxa_allocate_exception(0x10);
/* try { // try from 001f0106 to 001f0114 has its CatchHandler @ 001f012b */
std::out_of_range::out_of_range(this_00,"string_view index out of range");
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_00258fb0,PTR__out_of_range_00258f90);
}
|
|
59,667
|
string_view::operator[](unsigned long) const
|
monkey531[P]llama/common/json-schema-to-grammar.cpp
|
char operator[](size_t pos) const {
auto index = _start + pos;
if (index >= _end) {
throw std::out_of_range("string_view index out of range");
}
return _str[_start + pos];
}
|
O2
|
cpp
|
string_view::operator[](unsigned long) const:
pushq %r14
pushq %rbx
pushq %rax
addq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
jae 0xb1e55
movq (%rdi), %rax
movq (%rax), %rax
movb (%rax,%rsi), %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
pushq $0x10
popq %rdi
callq 0x265e0
movq %rax, %rbx
leaq 0x251f6(%rip), %rsi # 0xd705d
movq %rax, %rdi
callq 0x26130
movq 0x70142(%rip), %rsi # 0x121fb8
movq 0x7011b(%rip), %rdx # 0x121f98
movq %rbx, %rdi
callq 0x275b0
movq %rax, %r14
movq %rbx, %rdi
callq 0x268f0
movq %r14, %rdi
callq 0x27660
|
_ZNK11string_viewixEm:
push r14
push rbx
push rax
add rsi, [rdi+8]
cmp rsi, [rdi+10h]
jnb short loc_B1E55
mov rax, [rdi]
mov rax, [rax]
mov al, [rax+rsi]
add rsp, 8
pop rbx
pop r14
retn
loc_B1E55:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aStringViewInde; "string_view index out of range"
mov rdi, rax; this
call __ZNSt12out_of_rangeC1EPKc; std::out_of_range::out_of_range(char const*)
mov rsi, cs:_ZTISt12out_of_range_ptr; lptinfo
mov rdx, cs:_ZNSt12out_of_rangeD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
mov rdi, rbx; void *
call ___cxa_free_exception
mov rdi, r14
call __Unwind_Resume
|
char string_view::operator[](long long a1, long long a2)
{
unsigned long long v2; // rsi
std::out_of_range *exception; // rbx
v2 = *(_QWORD *)(a1 + 8) + a2;
if ( v2 >= *(_QWORD *)(a1 + 16) )
{
exception = (std::out_of_range *)__cxa_allocate_exception(0x10uLL);
std::out_of_range::out_of_range(exception, "string_view index out of range");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::out_of_range,
(void (*)(void *))&std::out_of_range::~out_of_range);
}
return *(_BYTE *)(**(_QWORD **)a1 + v2);
}
|
operator[]:
PUSH R14
PUSH RBX
PUSH RAX
ADD RSI,qword ptr [RDI + 0x8]
CMP RSI,qword ptr [RDI + 0x10]
JNC 0x001b1e55
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX]
MOV AL,byte ptr [RAX + RSI*0x1]
ADD RSP,0x8
POP RBX
POP R14
RET
LAB_001b1e55:
PUSH 0x10
POP RDI
CALL 0x001265e0
MOV RBX,RAX
LAB_001b1e60:
LEA RSI,[0x1d705d]
MOV RDI,RAX
CALL 0x00126130
LAB_001b1e6f:
MOV RSI,qword ptr [0x00221fb8]
MOV RDX,qword ptr [0x00221f98]
MOV RDI,RBX
CALL 0x001275b0
|
/* string_view::operator[](unsigned long) const */
int8 __thiscall string_view::operator[](string_view *this,ulong param_1)
{
out_of_range *this_00;
if (param_1 + *(long *)(this + 8) < *(ulong *)(this + 0x10)) {
return CONCAT71((int7)((ulong)**(long **)this >> 8),
*(int1 *)(**(long **)this + param_1 + *(long *)(this + 8)));
}
this_00 = (out_of_range *)__cxa_allocate_exception(0x10);
/* try { // try from 001b1e60 to 001b1e6e has its CatchHandler @ 001b1e85 */
std::out_of_range::out_of_range(this_00,"string_view index out of range");
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_00221fb8,PTR__out_of_range_00221f98);
}
|
|
59,668
|
add_n_dbl_n
|
corpus-core[P]colibri-stateless/build_O1/_deps/blst-src/src/pairing.c
|
static void add_n_dbl_n(vec384fp12 ret, POINTonE2 T[],
const POINTonE2_affine Q[],
const POINTonE1_affine Px2[],
size_t n, size_t k)
{
size_t i;
vec384fp6 line; /* it's not actual fp6, but 3 packed fp2, "xy00z0" */
for (i = 0; i < n; i++) {
line_add(line, T+i, T+i, Q+i); line_by_Px2(line, Px2+i);
mul_by_xy00z0_fp12(ret, ret, line);
}
while (k--) {
sqr_fp12(ret, ret);
for (i = 0; i < n; i++) {
line_dbl(line, T+i, T+i); line_by_Px2(line, Px2+i);
mul_by_xy00z0_fp12(ret, ret, line);
}
}
}
|
O1
|
c
|
add_n_dbl_n:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp # imm = 0x148
movq %r9, -0x48(%rbp)
movq %rcx, -0x40(%rbp)
movq %rsi, -0x38(%rbp)
movq %rdi, %r13
movq %r8, -0x30(%rbp)
testq %r8, %r8
je 0x20a53
movq %rdx, %r15
movq -0x38(%rbp), %r14
movq -0x40(%rbp), %r12
movq -0x30(%rbp), %rbx
leaq -0x170(%rbp), %rdi
movq %r14, %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x289ed
leaq -0x170(%rbp), %rdi
movq %r12, %rsi
callq 0x2895f
movq %r13, %rdi
movq %r13, %rsi
leaq -0x170(%rbp), %rdx
callq 0x1fa62
addq $0x60, %r12
addq $0xc0, %r15
addq $0x120, %r14 # imm = 0x120
decq %rbx
jne 0x20a06
cmpq $0x0, -0x48(%rbp)
je 0x20abc
leaq -0x170(%rbp), %r15
movq %r13, %rdi
movq %r13, %rsi
callq 0x1f280
cmpq $0x0, -0x30(%rbp)
je 0x20ab6
movq -0x38(%rbp), %r14
movq -0x40(%rbp), %r12
movq -0x30(%rbp), %rbx
movq %r15, %rdi
movq %r14, %rsi
movq %r14, %rdx
callq 0x28668
movq %r15, %rdi
movq %r12, %rsi
callq 0x2895f
movq %r13, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x1fa62
addq $0x60, %r12
addq $0x120, %r14 # imm = 0x120
decq %rbx
jne 0x20a7f
decq -0x48(%rbp)
jne 0x20a61
addq $0x148, %rsp # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
add_n_dbl_n:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 148h
mov [rbp+var_48], r9
mov [rbp+var_40], rcx
mov [rbp+var_38], rsi
mov r13, rdi
mov [rbp+var_30], r8
test r8, r8
jz short loc_20A53
mov r15, rdx
mov r14, [rbp+var_38]
mov r12, [rbp+var_40]
mov rbx, [rbp+var_30]
loc_20A06:
lea rdi, [rbp+var_170]
mov rsi, r14
mov rdx, r14
mov rcx, r15
call line_add
lea rdi, [rbp+var_170]
mov rsi, r12
call line_by_Px2
mov rdi, r13
mov rsi, r13
lea rdx, [rbp+var_170]
call mul_by_xy00z0_fp12
add r12, 60h ; '`'
add r15, 0C0h
add r14, 120h
dec rbx
jnz short loc_20A06
loc_20A53:
cmp [rbp+var_48], 0
jz short loc_20ABC
lea r15, [rbp+var_170]
loc_20A61:
mov rdi, r13
mov rsi, r13
call sqr_fp12
cmp [rbp+var_30], 0
jz short loc_20AB6
mov r14, [rbp+var_38]
mov r12, [rbp+var_40]
mov rbx, [rbp+var_30]
loc_20A7F:
mov rdi, r15
mov rsi, r14
mov rdx, r14
call line_dbl
mov rdi, r15
mov rsi, r12
call line_by_Px2
mov rdi, r13
mov rsi, r13
mov rdx, r15
call mul_by_xy00z0_fp12
add r12, 60h ; '`'
add r14, 120h
dec rbx
jnz short loc_20A7F
loc_20AB6:
dec [rbp+var_48]
jnz short loc_20A61
loc_20ABC:
add rsp, 148h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long add_n_dbl_n(long long a1, long long a2, long long a3, long long a4, long long a5, long long a6)
{
long long v7; // r14
long long v8; // r12
long long v9; // rbx
long long result; // rax
long long v11; // r14
long long v12; // r12
long long v13; // rbx
char v14[296]; // [rsp+0h] [rbp-170h] BYREF
long long v15; // [rsp+128h] [rbp-48h]
long long v16; // [rsp+130h] [rbp-40h]
long long v17; // [rsp+138h] [rbp-38h]
long long v18; // [rsp+140h] [rbp-30h]
v15 = a6;
v16 = a4;
v17 = a2;
v18 = a5;
if ( a5 )
{
v7 = v17;
v8 = v16;
v9 = v18;
do
{
line_add(v14, v7, v7, a3);
line_by_Px2(v14, v8);
result = mul_by_xy00z0_fp12(a1, a1, v14);
v8 += 96LL;
a3 += 192LL;
v7 += 288LL;
--v9;
}
while ( v9 );
}
for ( ; v15; --v15 )
{
result = sqr_fp12(a1, a1);
if ( v18 )
{
v11 = v17;
v12 = v16;
v13 = v18;
do
{
line_dbl(v14, v11, v11);
line_by_Px2(v14, v12);
result = mul_by_xy00z0_fp12(a1, a1, v14);
v12 += 96LL;
v11 += 288LL;
--v13;
}
while ( v13 );
}
}
return result;
}
|
add_n_dbl_n:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x148
MOV qword ptr [RBP + -0x48],R9
MOV qword ptr [RBP + -0x40],RCX
MOV qword ptr [RBP + -0x38],RSI
MOV R13,RDI
MOV qword ptr [RBP + -0x30],R8
TEST R8,R8
JZ 0x00120a53
MOV R15,RDX
MOV R14,qword ptr [RBP + -0x38]
MOV R12,qword ptr [RBP + -0x40]
MOV RBX,qword ptr [RBP + -0x30]
LAB_00120a06:
LEA RDI,[RBP + -0x170]
MOV RSI,R14
MOV RDX,R14
MOV RCX,R15
CALL 0x001289ed
LEA RDI,[RBP + -0x170]
MOV RSI,R12
CALL 0x0012895f
MOV RDI,R13
MOV RSI,R13
LEA RDX,[RBP + -0x170]
CALL 0x0011fa62
ADD R12,0x60
ADD R15,0xc0
ADD R14,0x120
DEC RBX
JNZ 0x00120a06
LAB_00120a53:
CMP qword ptr [RBP + -0x48],0x0
JZ 0x00120abc
LEA R15,[RBP + -0x170]
LAB_00120a61:
MOV RDI,R13
MOV RSI,R13
CALL 0x0011f280
CMP qword ptr [RBP + -0x30],0x0
JZ 0x00120ab6
MOV R14,qword ptr [RBP + -0x38]
MOV R12,qword ptr [RBP + -0x40]
MOV RBX,qword ptr [RBP + -0x30]
LAB_00120a7f:
MOV RDI,R15
MOV RSI,R14
MOV RDX,R14
CALL 0x00128668
MOV RDI,R15
MOV RSI,R12
CALL 0x0012895f
MOV RDI,R13
MOV RSI,R13
MOV RDX,R15
CALL 0x0011fa62
ADD R12,0x60
ADD R14,0x120
DEC RBX
JNZ 0x00120a7f
LAB_00120ab6:
DEC qword ptr [RBP + -0x48]
JNZ 0x00120a61
LAB_00120abc:
ADD RSP,0x148
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void add_n_dbl_n(int8 param_1,long param_2,long param_3,long param_4,long param_5,long param_6
)
{
long lVar1;
long lVar2;
long lVar3;
int1 local_178 [296];
long local_50;
long local_48;
long local_40;
long local_38;
local_50 = param_6;
local_48 = param_4;
local_40 = param_2;
local_38 = param_5;
if (param_5 != 0) {
do {
line_add(local_178,param_2,param_2,param_3);
line_by_Px2(local_178,param_4);
mul_by_xy00z0_fp12(param_1,param_1,local_178);
param_4 = param_4 + 0x60;
param_3 = param_3 + 0xc0;
param_2 = param_2 + 0x120;
param_5 = param_5 + -1;
} while (param_5 != 0);
}
if (local_50 != 0) {
do {
sqr_fp12(param_1,param_1);
lVar2 = local_48;
lVar3 = local_40;
for (lVar1 = local_38; lVar1 != 0; lVar1 = lVar1 + -1) {
line_dbl(local_178,lVar3,lVar3);
line_by_Px2(local_178,lVar2);
mul_by_xy00z0_fp12(param_1,param_1,local_178);
lVar2 = lVar2 + 0x60;
lVar3 = lVar3 + 0x120;
}
local_50 = local_50 + -1;
} while (local_50 != 0);
}
return;
}
|
|
59,669
|
minja::Parser::parseIfExpression()
|
monkey531[P]llama/common/./minja.hpp
|
std::pair<std::shared_ptr<Expression>, std::shared_ptr<Expression>> parseIfExpression() {
auto condition = parseLogicalOr();
if (!condition) throw std::runtime_error("Expected condition expression");
static std::regex else_tok(R"(else\b)");
std::shared_ptr<Expression> else_expr;
if (!consumeToken(else_tok).empty()) {
else_expr = parseExpression();
if (!else_expr) throw std::runtime_error("Expected 'else' expression");
}
return std::pair(std::move(condition), std::move(else_expr));
}
|
O2
|
cpp
|
minja::Parser::parseIfExpression():
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x39e4e
cmpq $0x0, (%r15)
je 0x3a164
movb 0xa8f06(%rip), %al # 0xe2f80
testb %al, %al
je 0x3a194
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
leaq 0xa8ed0(%rip), %rdx # 0xe2f60
leaq 0x20(%rsp), %rdi
pushq $0x1
popq %rcx
movq %r14, %rsi
callq 0x2f3f2
leaq 0x20(%rsp), %rdi
movq 0x8(%rdi), %r15
callq 0x20d78
testq %r15, %r15
je 0x3a117
leaq 0x20(%rsp), %rdi
pushq $0x1
popq %rdx
movq %r14, %rsi
callq 0x2f20e
movq %rsp, %r14
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x524c4
leaq 0x28(%rsp), %rdi
callq 0x2eeb2
movq (%r14), %rax
testq %rax, %rax
jne 0x3a11b
pushq $0x10
popq %rdi
callq 0x20390
movq %rax, %r14
leaq 0x6474a(%rip), %rsi # 0x9e841
movq %rax, %rdi
callq 0x20280
movq 0xa7ee2(%rip), %rsi # 0xe1fe8
movq 0xa7e63(%rip), %rdx # 0xe1f70
movq %r14, %rdi
callq 0x20b30
jmp 0x3a194
movq (%rsp), %rax
leaq 0x18(%rsp), %r14
movaps -0x8(%r14), %xmm0
andq $0x0, (%r14)
andq $0x0, -0x8(%r14)
movups %xmm0, (%rbx)
movq %rax, 0x10(%rbx)
leaq 0x8(%rsp), %rdi
movq (%rdi), %rax
andq $0x0, (%rdi)
movq %rax, 0x18(%rbx)
andq $0x0, -0x8(%rdi)
callq 0x2eeb2
movq %r14, %rdi
callq 0x2eeb2
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
pushq $0x10
popq %rdi
callq 0x20390
movq %rax, %r14
leaq 0x646a6(%rip), %rsi # 0x9e81c
movq %rax, %rdi
callq 0x20280
movq 0xa7e63(%rip), %rsi # 0xe1fe8
movq 0xa7de4(%rip), %rdx # 0xe1f70
movq %r14, %rdi
callq 0x20b30
leaq 0xa8de5(%rip), %rdi # 0xe2f80
callq 0x20bf0
testl %eax, %eax
je 0x3a082
leaq 0xa8db1(%rip), %rdi # 0xe2f60
leaq 0x64684(%rip), %rsi # 0x9e83a
pushq $0x10
popq %rdx
callq 0x2ef2e
leaq -0xb231(%rip), %rdi # 0x2ef94
leaq 0xa8d94(%rip), %rsi # 0xe2f60
leaq 0xa84f5(%rip), %rdx # 0xe26c8
callq 0x205f0
leaq 0xa8da1(%rip), %rdi # 0xe2f80
callq 0x20480
jmp 0x3a082
movq %rax, %rbx
leaq 0xa8d8d(%rip), %rdi # 0xe2f80
callq 0x20470
jmp 0x3a22a
jmp 0x3a21d
movq %rax, %rbx
movq %r14, %rdi
callq 0x20520
jmp 0x3a220
movq %rax, %rbx
jmp 0x3a22a
movq %rax, %rbx
movq %r14, %rdi
callq 0x20520
jmp 0x3a22a
jmp 0x3a21d
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2eeb2
leaq 0x18(%rsp), %rdi
callq 0x2eeb2
movq %rbx, %rdi
callq 0x20b90
|
_ZN5minja6Parser17parseIfExpressionEv:
push r15
push r14
push rbx
sub rsp, 40h
mov r14, rsi
mov rbx, rdi
lea r15, [rsp+58h+var_48]
mov rdi, r15; this
call _ZN5minja6Parser14parseLogicalOrEv; minja::Parser::parseLogicalOr(void)
cmp qword ptr [r15], 0
jz loc_3A164
mov al, cs:_ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; `guard variable for'minja::Parser::parseIfExpression(void)::else_tok
test al, al
jz loc_3A194
loc_3A082:
xorps xmm0, xmm0
movaps [rsp+58h+var_58], xmm0
lea rdx, _ZZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; minja::Parser::parseIfExpression(void)::else_tok
lea rdi, [rsp+58h+var_38]
push 1
pop rcx
mov rsi, r14
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling)
lea rdi, [rsp+58h+var_38]; void *
mov r15, [rdi+8]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test r15, r15
jz short loc_3A117
lea rdi, [rsp+58h+var_38]; this
push 1
pop rdx
mov rsi, r14; bool
call _ZN5minja6Parser15parseExpressionEb; minja::Parser::parseExpression(bool)
mov r14, rsp
lea rsi, [rsp+58h+var_38]
mov rdi, r14
call _ZNSt12__shared_ptrIN5minja10ExpressionELN9__gnu_cxx12_Lock_policyE2EEaSEOS4_; std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>&&)
lea rdi, [rsp+58h+var_30]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rax, [r14]
test rax, rax
jnz short loc_3A11B
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedElseEx; "Expected 'else' expression"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
jmp short loc_3A194
loc_3A117:
mov rax, qword ptr [rsp+58h+var_58]
loc_3A11B:
lea r14, [rsp+58h+var_40]
movaps xmm0, xmmword ptr [r14-8]
and qword ptr [r14], 0
and qword ptr [r14-8], 0
movups xmmword ptr [rbx], xmm0
mov [rbx+10h], rax
lea rdi, [rsp+58h+var_58+8]
mov rax, [rdi]
and qword ptr [rdi], 0
mov [rbx+18h], rax
and qword ptr [rdi-8], 0
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, r14
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rax, rbx
add rsp, 40h
pop rbx
pop r14
pop r15
retn
loc_3A164:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedCondit_1; "Expected condition expression"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
loc_3A194:
lea rdi, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; __guard *
call ___cxa_guard_acquire
test eax, eax
jz loc_3A082
lea rdi, _ZZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; minja::Parser::parseIfExpression(void)::else_tok
lea rsi, aElseB; "else\\b"
push 10h
pop rdx
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, _ZZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; __guard *
call ___cxa_guard_release
jmp loc_3A082
mov rbx, rax
lea rdi, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; __guard *
call ___cxa_guard_abort
jmp short loc_3A22A
jmp short loc_3A21D
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_3A220
mov rbx, rax
jmp short loc_3A22A
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_3A22A
jmp short $+2
loc_3A21D:
mov rbx, rax
loc_3A220:
lea rdi, [rsp+arg_0]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
loc_3A22A:
lea rdi, [rsp+arg_10]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, rbx
call __Unwind_Resume
|
minja::Parser * minja::Parser::parseIfExpression(minja::Parser *this, _QWORD *a2)
{
long long v2; // r15
long long v3; // rax
std::runtime_error *v4; // r14
__int128 v5; // xmm0
long long v6; // rax
std::runtime_error *exception; // r14
__int128 v9; // [rsp+0h] [rbp-58h] BYREF
__int128 v10; // [rsp+10h] [rbp-48h] BYREF
long long v11; // [rsp+20h] [rbp-38h] BYREF
_QWORD v12[6]; // [rsp+28h] [rbp-30h] BYREF
minja::Parser::parseLogicalOr((minja::Parser *)&v10, a2);
if ( !(_QWORD)v10 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected condition expression");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( !(_BYTE)`guard variable for'minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
(long long)&minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11],
"else\\b",
0x10u);
__cxa_atexit(
(void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11]);
}
v9 = 0LL;
minja::Parser::consumeToken(&v11, (long long)a2, (int)&minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11], 1u);
v2 = v12[0];
std::string::~string(&v11);
if ( v2 )
{
minja::Parser::parseExpression((minja::Parser *)&v11, a2, 1);
std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator=(&v9, &v11);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v12);
v3 = v9;
if ( !(_QWORD)v9 )
{
v4 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v4, "Expected 'else' expression");
__cxa_throw(
v4,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
}
else
{
v3 = v9;
}
v5 = v10;
v10 = 0uLL;
*(_OWORD *)this = v5;
*((_QWORD *)this + 2) = v3;
v6 = *((_QWORD *)&v9 + 1);
*((_QWORD *)&v9 + 1) = 0LL;
*((_QWORD *)this + 3) = v6;
*(_QWORD *)&v9 = 0LL;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)&v9 + 1);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)&v10 + 1);
return this;
}
| |||
59,670
|
minja::Parser::parseIfExpression()
|
monkey531[P]llama/common/./minja.hpp
|
std::pair<std::shared_ptr<Expression>, std::shared_ptr<Expression>> parseIfExpression() {
auto condition = parseLogicalOr();
if (!condition) throw std::runtime_error("Expected condition expression");
static std::regex else_tok(R"(else\b)");
std::shared_ptr<Expression> else_expr;
if (!consumeToken(else_tok).empty()) {
else_expr = parseExpression();
if (!else_expr) throw std::runtime_error("Expected 'else' expression");
}
return std::pair(std::move(condition), std::move(else_expr));
}
|
O3
|
cpp
|
minja::Parser::parseIfExpression():
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsp, %r15
movq %r15, %rdi
callq 0x3c238
cmpq $0x0, (%r15)
je 0x3c5a5
movb 0xb4a66(%rip), %al # 0xf0f50
testb %al, %al
je 0x3c5d7
leaq 0xb4a37(%rip), %rdx # 0xf0f30
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
movl $0x1, %ecx
callq 0x2fd6a
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
movq -0x8(%rax), %r15
cmpq %rax, %rdi
je 0x3c52a
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x186a0
testq %r15, %r15
je 0x3c584
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x2fb5e
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %r14
testq %rax, %rax
jne 0x3c589
movl $0x10, %edi
callq 0x18360
movq %rax, %r15
leaq 0x7ef67(%rip), %rsi # 0xbb4cb
movq %rax, %rdi
callq 0x18270
movq 0xb3a7d(%rip), %rsi # 0xefff0
movq 0xb3a06(%rip), %rdx # 0xeff80
movq %r15, %rdi
callq 0x18b30
jmp 0x3c5d7
xorl %eax, %eax
xorl %r14d, %r14d
movaps (%rsp), %xmm0
movups %xmm0, (%rbx)
movq %rax, 0x10(%rbx)
movq %r14, 0x18(%rbx)
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
movl $0x10, %edi
callq 0x18360
movq %rax, %r14
leaq 0x7eeed(%rip), %rsi # 0xbb4a6
movq %rax, %rdi
callq 0x18270
movq 0xb3a28(%rip), %rsi # 0xefff0
movq 0xb39b1(%rip), %rdx # 0xeff80
movq %r14, %rdi
callq 0x18b30
leaq 0xb4972(%rip), %rdi # 0xf0f50
callq 0x18be0
testl %eax, %eax
je 0x3c4f2
leaq 0xb493e(%rip), %rdi # 0xf0f30
leaq 0x7eecb(%rip), %rsi # 0xbb4c4
movl $0x10, %edx
callq 0x2f87e
leaq -0xcd24(%rip), %rdi # 0x2f8e6
leaq 0xb491f(%rip), %rsi # 0xf0f30
leaq 0xb4080(%rip), %rdx # 0xf0698
callq 0x185d0
leaq 0xb492c(%rip), %rdi # 0xf0f50
callq 0x18450
jmp 0x3c4f2
movq %rax, %rbx
leaq 0xb4918(%rip), %rdi # 0xf0f50
callq 0x18440
jmp 0x3c672
movq %rax, %rbx
jmp 0x3c64f
movq %rax, %rbx
movq %r15, %rdi
callq 0x18500
testq %r14, %r14
je 0x3c672
movq %r14, %rdi
callq 0x2f80e
jmp 0x3c672
jmp 0x3c66f
movq %rax, %rbx
movq %r14, %rdi
callq 0x18500
jmp 0x3c672
jmp 0x3c66f
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x3c681
callq 0x2f80e
movq %rbx, %rdi
callq 0x18b90
nop
|
_ZN5minja6Parser17parseIfExpressionEv:
push r15
push r14
push rbx
sub rsp, 30h
mov r14, rsi
mov rbx, rdi
mov r15, rsp
mov rdi, r15; this
call _ZN5minja6Parser14parseLogicalOrEv; minja::Parser::parseLogicalOr(void)
cmp qword ptr [r15], 0
jz loc_3C5A5
mov al, cs:_ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; `guard variable for'minja::Parser::parseIfExpression(void)::else_tok
test al, al
jz loc_3C5D7
loc_3C4F2:
lea rdx, _ZZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; minja::Parser::parseIfExpression(void)::else_tok
lea rdi, [rsp+48h+var_38]
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+48h+var_28]
mov rdi, [rax-10h]; void *
mov r15, [rax-8]
cmp rdi, rax
jz short loc_3C52A
mov rsi, [rsp+48h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3C52A:
test r15, r15
jz short loc_3C584
lea rdi, [rsp+48h+var_38]; this
mov rsi, r14; bool
mov edx, 1
call _ZN5minja6Parser15parseExpressionEb; minja::Parser::parseExpression(bool)
mov rax, [rsp+48h+var_38]
mov r14, [rsp+48h+var_30]
test rax, rax
jnz short loc_3C589
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r15, rax
lea rsi, aExpectedElseEx; "Expected 'else' expression"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r15; void *
call ___cxa_throw
jmp short loc_3C5D7
loc_3C584:
xor eax, eax
xor r14d, r14d
loc_3C589:
movaps xmm0, [rsp+48h+var_48]
movups xmmword ptr [rbx], xmm0
mov [rbx+10h], rax
mov [rbx+18h], r14
mov rax, rbx
add rsp, 30h
pop rbx
pop r14
pop r15
retn
loc_3C5A5:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedCondit_1; "Expected condition expression"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
loc_3C5D7:
lea rdi, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; __guard *
call ___cxa_guard_acquire
test eax, eax
jz loc_3C4F2
lea rdi, _ZZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; minja::Parser::parseIfExpression(void)::else_tok
lea rsi, aElseB; "else\\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, _ZZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; __guard *
call ___cxa_guard_release
jmp loc_3C4F2
mov rbx, rax
lea rdi, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; __guard *
call ___cxa_guard_abort
jmp short loc_3C672
mov rbx, rax
jmp short loc_3C64F
mov rbx, rax
mov rdi, r15; void *
call ___cxa_free_exception
loc_3C64F:
test r14, r14
jz short loc_3C672
mov rdi, r14
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
jmp short loc_3C672
jmp short loc_3C66F
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_3C672
jmp short $+2
loc_3C66F:
mov rbx, rax
loc_3C672:
mov rdi, [rsp+arg_0]
test rdi, rdi
jz short loc_3C681
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_3C681:
mov rdi, rbx
call __Unwind_Resume
|
minja::Parser * minja::Parser::parseIfExpression(minja::Parser *this, long long *a2)
{
long long v2; // r15
long long *v3; // rax
long long v4; // r14
std::runtime_error *v5; // r15
std::runtime_error *exception; // r14
__int128 v8; // [rsp+0h] [rbp-48h] BYREF
long long *v9; // [rsp+10h] [rbp-38h] BYREF
long long v10; // [rsp+18h] [rbp-30h]
long long v11; // [rsp+20h] [rbp-28h] BYREF
minja::Parser::parseLogicalOr((volatile signed __int32 **)&v8, a2);
if ( !(_QWORD)v8 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected condition expression");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( !(_BYTE)`guard variable for'minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
(long long)&minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11],
"else\\b",
0x10u);
__cxa_atexit(
(void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11]);
}
minja::Parser::consumeToken(
(long long)&v9,
(long long)a2,
(long long)&minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11],
1u);
v2 = v10;
if ( v9 != &v11 )
operator delete(v9, v11 + 1);
if ( v2 )
{
minja::Parser::parseExpression((minja::Parser *)&v9, a2, 1);
v3 = v9;
v4 = v10;
if ( !v9 )
{
v5 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v5, "Expected 'else' expression");
__cxa_throw(
v5,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
}
else
{
v3 = 0LL;
v4 = 0LL;
}
*(_OWORD *)this = v8;
*((_QWORD *)this + 2) = v3;
*((_QWORD *)this + 3) = v4;
return this;
}
|
parseIfExpression:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R14,RSI
MOV RBX,RDI
MOV R15,RSP
MOV RDI,R15
CALL 0x0013c238
CMP qword ptr [R15],0x0
JZ 0x0013c5a5
MOV AL,byte ptr [0x001f0f50]
TEST AL,AL
JZ 0x0013c5d7
LAB_0013c4f2:
LEA RDX,[0x1f0f30]
LEA RDI,[RSP + 0x10]
MOV RSI,R14
MOV ECX,0x1
CALL 0x0012fd6a
LEA RAX,[RSP + 0x20]
MOV RDI,qword ptr [RAX + -0x10]
MOV R15,qword ptr [RAX + -0x8]
CMP RDI,RAX
JZ 0x0013c52a
MOV RSI,qword ptr [RSP + 0x20]
INC RSI
CALL 0x001186a0
LAB_0013c52a:
TEST R15,R15
JZ 0x0013c584
LAB_0013c52f:
LEA RDI,[RSP + 0x10]
MOV RSI,R14
MOV EDX,0x1
CALL 0x0012fb5e
LAB_0013c541:
MOV RAX,qword ptr [RSP + 0x10]
MOV R14,qword ptr [RSP + 0x18]
TEST RAX,RAX
JNZ 0x0013c589
MOV EDI,0x10
CALL 0x00118360
MOV R15,RAX
LAB_0013c55d:
LEA RSI,[0x1bb4cb]
MOV RDI,RAX
CALL 0x00118270
LAB_0013c56c:
MOV RSI,qword ptr [0x001efff0]
MOV RDX,qword ptr [0x001eff80]
MOV RDI,R15
CALL 0x00118b30
LAB_0013c584:
XOR EAX,EAX
XOR R14D,R14D
LAB_0013c589:
MOVAPS XMM0,xmmword ptr [RSP]
MOVUPS xmmword ptr [RBX],XMM0
MOV qword ptr [RBX + 0x10],RAX
MOV qword ptr [RBX + 0x18],R14
MOV RAX,RBX
ADD RSP,0x30
POP RBX
POP R14
POP R15
RET
LAB_0013c5a5:
MOV EDI,0x10
CALL 0x00118360
MOV R14,RAX
LAB_0013c5b2:
LEA RSI,[0x1bb4a6]
MOV RDI,RAX
CALL 0x00118270
LAB_0013c5c1:
MOV RSI,qword ptr [0x001efff0]
MOV RDX,qword ptr [0x001eff80]
MOV RDI,R14
CALL 0x00118b30
LAB_0013c5d7:
LEA RDI,[0x1f0f50]
CALL 0x00118be0
TEST EAX,EAX
JZ 0x0013c4f2
LAB_0013c5eb:
LEA RDI,[0x1f0f30]
LEA RSI,[0x1bb4c4]
MOV EDX,0x10
CALL 0x0012f87e
LAB_0013c603:
LEA RDI,[0x12f8e6]
LEA RSI,[0x1f0f30]
LEA RDX,[0x1f0698]
CALL 0x001185d0
LEA RDI,[0x1f0f50]
CALL 0x00118450
JMP 0x0013c4f2
|
/* minja::Parser::parseIfExpression() */
void minja::Parser::parseIfExpression(void)
{
long lVar1;
int iVar2;
runtime_error *prVar3;
long *in_RDI;
long local_48;
long lStack_40;
long *local_38;
long local_30;
long local_28 [2];
parseLogicalOr();
if (local_48 == 0) {
prVar3 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0013c5b2 to 0013c5c0 has its CatchHandler @ 0013c660 */
std::runtime_error::runtime_error(prVar3,"Expected condition expression");
/* try { // try from 0013c5c1 to 0013c5d6 has its CatchHandler @ 0013c65e */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar3,PTR_typeinfo_001efff0,PTR__runtime_error_001eff80);
}
if (parseIfExpression()::else_tok_abi_cxx11_ == '\0') {
iVar2 = __cxa_guard_acquire(&parseIfExpression()::else_tok_abi_cxx11_);
if (iVar2 != 0) {
/* try { // try from 0013c5eb to 0013c602 has its CatchHandler @ 0013c62e */
std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex
((basic_regex<char,std::__cxx11::regex_traits<char>> *)
parseIfExpression()::else_tok_abi_cxx11_,"else\\b",0x10);
__cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex,
parseIfExpression()::else_tok_abi_cxx11_,&__dso_handle);
__cxa_guard_release(&parseIfExpression()::else_tok_abi_cxx11_);
}
}
/* try { // try from 0013c4f2 to 0013c50a has its CatchHandler @ 0013c66f */
consumeToken(&local_38);
lVar1 = local_30;
if (local_38 != local_28) {
operator_delete(local_38,local_28[0] + 1);
}
if (lVar1 == 0) {
local_38 = (long *)0x0;
local_30 = 0;
}
else {
/* try { // try from 0013c52f to 0013c540 has its CatchHandler @ 0013c66d */
parseExpression(SUB81(&local_38,0));
if (local_38 == (long *)0x0) {
prVar3 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0013c55d to 0013c56b has its CatchHandler @ 0013c644 */
std::runtime_error::runtime_error(prVar3,"Expected \'else\' expression");
/* try { // try from 0013c56c to 0013c581 has its CatchHandler @ 0013c63f */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar3,PTR_typeinfo_001efff0,PTR__runtime_error_001eff80);
}
}
*in_RDI = local_48;
in_RDI[1] = lStack_40;
in_RDI[2] = (long)local_38;
in_RDI[3] = local_30;
return;
}
|
|
59,671
|
rlp_get_uint64
|
corpus-core[P]colibri-stateless/src/chains/eth/verifier/rlp.c
|
INTERNAL uint64_t rlp_get_uint64(bytes_t data, int index) {
uint64_t value = 0;
rlp_decode(&data, index, &data);
if (data.len > 8 || !data.len) return 0;
for (int i = 0; i < data.len; i++)
value |= ((uint64_t) data.data[i]) << ((data.len - i - 1) << 3);
return value;
}
|
O3
|
c
|
rlp_get_uint64:
pushq %rbx
subq $0x10, %rsp
movq %rsp, %rbx
movl %edi, (%rbx)
movq %rsi, 0x8(%rbx)
movq %rbx, %rdi
movl %edx, %esi
movq %rbx, %rdx
callq 0x2d520
movl (%rbx), %edx
leal -0x1(%rdx), %eax
cmpl $0x7, %eax
ja 0x2da01
movq 0x8(%rsp), %rsi
leal -0x8(,%rdx,8), %ecx
xorl %edi, %edi
xorl %eax, %eax
movzbl (%rsi,%rdi), %r8d
shlq %cl, %r8
orq %r8, %rax
incq %rdi
addl $-0x8, %ecx
cmpq %rdi, %rdx
jne 0x2d9e9
jmp 0x2da03
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
retq
nopl (%rax)
|
rlp_get_uint64:
push rbx
sub rsp, 10h
mov rbx, rsp
mov [rbx], edi
mov [rbx+8], rsi
mov rdi, rbx
mov esi, edx
mov rdx, rbx
call rlp_decode
mov edx, [rbx]
lea eax, [rdx-1]
cmp eax, 7
ja short loc_2DA01
mov rsi, [rsp+18h+var_10]
lea ecx, ds:0FFFFFFFFFFFFFFF8h[rdx*8]
xor edi, edi
xor eax, eax
loc_2D9E9:
movzx r8d, byte ptr [rsi+rdi]
shl r8, cl
or rax, r8
inc rdi
add ecx, 0FFFFFFF8h
cmp rdx, rdi
jnz short loc_2D9E9
jmp short loc_2DA03
loc_2DA01:
xor eax, eax
loc_2DA03:
add rsp, 10h
pop rbx
retn
|
long long rlp_get_uint64(unsigned int a1, long long a2, int a3)
{
unsigned int v3; // ecx
long long v4; // rdi
long long result; // rax
unsigned int v6; // [rsp+0h] [rbp-18h] BYREF
long long v7; // [rsp+8h] [rbp-10h]
v6 = a1;
v7 = a2;
rlp_decode(&v6, a3, (long long)&v6);
if ( v6 - 1 > 7 )
return 0LL;
v3 = 8 * v6 - 8;
v4 = 0LL;
result = 0LL;
do
{
result |= (unsigned long long)*(unsigned __int8 *)(v7 + v4++) << v3;
v3 -= 8;
}
while ( v6 != v4 );
return result;
}
|
rlp_get_uint64:
PUSH RBX
SUB RSP,0x10
MOV RBX,RSP
MOV dword ptr [RBX],EDI
MOV qword ptr [RBX + 0x8],RSI
MOV RDI,RBX
MOV ESI,EDX
MOV RDX,RBX
CALL 0x0012d520
MOV EDX,dword ptr [RBX]
LEA EAX,[RDX + -0x1]
CMP EAX,0x7
JA 0x0012da01
MOV RSI,qword ptr [RSP + 0x8]
LEA ECX,[-0x8 + RDX*0x8]
XOR EDI,EDI
XOR EAX,EAX
LAB_0012d9e9:
MOVZX R8D,byte ptr [RSI + RDI*0x1]
SHL R8,CL
OR RAX,R8
INC RDI
ADD ECX,-0x8
CMP RDX,RDI
JNZ 0x0012d9e9
JMP 0x0012da03
LAB_0012da01:
XOR EAX,EAX
LAB_0012da03:
ADD RSP,0x10
POP RBX
RET
|
ulong rlp_get_uint64(uint param_1,long param_2,int4 param_3)
{
ulong uVar1;
int iVar2;
ulong uVar3;
uint local_18 [2];
long local_10;
local_18[0] = param_1;
local_10 = param_2;
rlp_decode(local_18,param_3,local_18);
if (local_18[0] - 1 < 8) {
iVar2 = local_18[0] * 8;
uVar3 = 0;
uVar1 = 0;
do {
iVar2 = iVar2 + -8;
uVar1 = uVar1 | (ulong)*(byte *)(local_10 + uVar3) << ((byte)iVar2 & 0x3f);
uVar3 = uVar3 + 1;
} while (local_18[0] != uVar3);
}
else {
uVar1 = 0;
}
return uVar1;
}
|
|
59,672
|
my_strxfrm_pad_unicode
|
eloqsql/strings/ctype-utf8.c
|
size_t
my_strxfrm_pad_unicode(uchar *str, uchar *strend)
{
uchar *str0= str;
DBUG_ASSERT(str && str <= strend);
for ( ; str < strend ; )
{
*str++= 0x00;
if (str < strend)
*str++= 0x20;
}
return str - str0;
}
|
O0
|
c
|
my_strxfrm_pad_unicode:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0x63426
jmp 0x63428
movq -0x8(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0x63462
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movb $0x0, (%rax)
movq -0x8(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0x63460
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movb $0x20, (%rax)
jmp 0x63428
movq -0x8(%rbp), %rax
movq -0x18(%rbp), %rcx
subq %rcx, %rax
popq %rbp
retq
nop
|
my_strxfrm_pad_unicode:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
mov [rbp+var_18], rax
jmp short $+2
loc_63426:
jmp short $+2
loc_63428:
mov rax, [rbp+var_8]
cmp rax, [rbp+var_10]
jnb short loc_63462
mov rax, [rbp+var_8]
mov rcx, rax
add rcx, 1
mov [rbp+var_8], rcx
mov byte ptr [rax], 0
mov rax, [rbp+var_8]
cmp rax, [rbp+var_10]
jnb short loc_63460
mov rax, [rbp+var_8]
mov rcx, rax
add rcx, 1
mov [rbp+var_8], rcx
mov byte ptr [rax], 20h ; ' '
loc_63460:
jmp short loc_63428
loc_63462:
mov rax, [rbp+var_8]
mov rcx, [rbp+var_18]
sub rax, rcx
pop rbp
retn
|
_BYTE * my_strxfrm_pad_unicode(_BYTE *a1, unsigned long long a2)
{
_BYTE *v2; // rax
_BYTE *v3; // rax
_BYTE *v5; // [rsp+10h] [rbp-8h]
v5 = a1;
while ( (unsigned long long)v5 < a2 )
{
v2 = v5++;
*v2 = 0;
if ( (unsigned long long)v5 < a2 )
{
v3 = v5++;
*v3 = 32;
}
}
return (_BYTE *)(v5 - a1);
}
|
my_strxfrm_pad_unicode:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00163426
LAB_00163426:
JMP 0x00163428
LAB_00163428:
MOV RAX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RBP + -0x10]
JNC 0x00163462
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x8],RCX
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RBP + -0x10]
JNC 0x00163460
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x8],RCX
MOV byte ptr [RAX],0x20
LAB_00163460:
JMP 0x00163428
LAB_00163462:
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP + -0x18]
SUB RAX,RCX
POP RBP
RET
|
long my_strxfrm_pad_unicode(int1 *param_1,int1 *param_2)
{
int1 *puVar1;
int1 *local_10;
puVar1 = param_1;
while (local_10 = puVar1, local_10 < param_2) {
puVar1 = local_10 + 1;
*local_10 = 0;
if (puVar1 < param_2) {
*puVar1 = 0x20;
puVar1 = local_10 + 2;
}
}
return (long)local_10 - (long)param_1;
}
|
|
59,673
|
js_object_isExtensible
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_object_isExtensible(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv, int reflect)
{
JSValue obj;
int ret;
obj = argv[0];
if (JS_VALUE_GET_TAG(obj) != JS_TAG_OBJECT) {
if (reflect)
return JS_ThrowTypeErrorNotAnObject(ctx);
else
return JS_FALSE;
}
ret = JS_IsExtensible(ctx, obj);
if (ret < 0)
return JS_EXCEPTION;
else
return js_bool(ret);
}
|
O2
|
c
|
js_object_isExtensible:
pushq %rax
movq 0x8(%r8), %rdx
cmpl $-0x1, %edx
jne 0x62339
movq (%r8), %rsi
callq 0x219ba
testl %eax, %eax
js 0x62343
setne %al
movzbl %al, %eax
pushq $0x1
popq %rdx
jmp 0x6234c
testl %r9d, %r9d
je 0x62347
callq 0x21191
pushq $0x6
jmp 0x62349
pushq $0x1
popq %rdx
xorl %eax, %eax
popq %rcx
retq
|
js_object_isExtensible:
push rax
mov rdx, [r8+8]
cmp edx, 0FFFFFFFFh
jnz short loc_62339
mov rsi, [r8]
call JS_IsExtensible
test eax, eax
js short loc_62343
setnz al
movzx eax, al
push 1
pop rdx
jmp short loc_6234C
loc_62339:
test r9d, r9d
jz short loc_62347
call JS_ThrowTypeErrorNotAnObject
loc_62343:
push 6
jmp short loc_62349
loc_62347:
push 1
loc_62349:
pop rdx
xor eax, eax
loc_6234C:
pop rcx
retn
|
_BOOL8 js_object_isExtensible(
long long a1,
long long a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
long long a11,
long long a12,
long long *a13,
long long a14)
{
char v14; // al
long long v15; // rdx
int IsExtensible; // eax
v15 = a13[1];
if ( (_DWORD)v15 == -1 )
{
IsExtensible = JS_IsExtensible(
a1,
*a13,
v15,
a3,
a4,
a5,
a6,
*(double *)a7.m128_u64,
*(double *)a8.m128_u64,
a9,
a10);
if ( IsExtensible >= 0 )
return IsExtensible != 0;
}
else if ( (_DWORD)a14 )
{
JS_ThrowTypeErrorNotAnObject(a1, a3, a4, a5, a6, a7, a8, a9, a10, a2, v15, a12, (long long)a13, a14, v14);
}
return 0LL;
}
|
js_object_isExtensible:
PUSH RAX
MOV RDX,qword ptr [R8 + 0x8]
CMP EDX,-0x1
JNZ 0x00162339
MOV RSI,qword ptr [R8]
CALL 0x001219ba
TEST EAX,EAX
JS 0x00162343
SETNZ AL
MOVZX EAX,AL
PUSH 0x1
POP RDX
JMP 0x0016234c
LAB_00162339:
TEST R9D,R9D
JZ 0x00162347
CALL 0x00121191
LAB_00162343:
PUSH 0x6
JMP 0x00162349
LAB_00162347:
PUSH 0x1
LAB_00162349:
POP RDX
XOR EAX,EAX
LAB_0016234c:
POP RCX
RET
|
bool js_object_isExtensible(int8 param_1)
{
int iVar1;
int8 *in_R8;
int in_R9D;
if ((int)in_R8[1] == -1) {
iVar1 = JS_IsExtensible(param_1,*in_R8);
if (-1 < iVar1) {
return iVar1 != 0;
}
}
else if (in_R9D != 0) {
JS_ThrowTypeErrorNotAnObject();
}
return false;
}
|
|
59,674
|
memcmp16_8
|
bluesky950520[P]quickjs/quickjs.c
|
static int memcmp16_8(const uint16_t *src1, const uint8_t *src2, int len)
{
int c, i;
for(i = 0; i < len; i++) {
c = src1[i] - src2[i];
if (c != 0)
return c;
}
return 0;
}
|
O2
|
c
|
memcmp16_8:
xorl %ecx, %ecx
testl %edx, %edx
cmovlel %ecx, %edx
cmpq %rcx, %rdx
je 0x34a27
movzwl (%rdi,%rcx,2), %eax
movzbl (%rsi,%rcx), %r8d
incq %rcx
subl %r8d, %eax
je 0x34a10
retq
xorl %eax, %eax
retq
|
memcmp16_8:
xor ecx, ecx
test edx, edx
cmovle edx, ecx
loc_34A10:
cmp rdx, rcx
jz short loc_34A27
movzx eax, word ptr [rdi+rcx*2]
movzx r8d, byte ptr [rsi+rcx]
inc rcx
sub eax, r8d
jz short loc_34A10
retn
loc_34A27:
xor eax, eax
retn
|
long long memcmp16_8(long long a1, long long a2, long long a3)
{
long long v3; // rcx
int v4; // eax
int v5; // r8d
long long result; // rax
v3 = 0LL;
if ( (int)a3 <= 0 )
a3 = 0LL;
while ( a3 != v3 )
{
v4 = *(unsigned __int16 *)(a1 + 2 * v3);
v5 = *(unsigned __int8 *)(a2 + v3++);
result = (unsigned int)(v4 - v5);
if ( (_DWORD)result )
return result;
}
return 0LL;
}
|
memcmp16_8:
XOR ECX,ECX
TEST EDX,EDX
CMOVLE EDX,ECX
LAB_00134a10:
CMP RDX,RCX
JZ 0x00134a27
MOVZX EAX,word ptr [RDI + RCX*0x2]
MOVZX R8D,byte ptr [RSI + RCX*0x1]
INC RCX
SUB EAX,R8D
JZ 0x00134a10
RET
LAB_00134a27:
XOR EAX,EAX
RET
|
int memcmp16_8(long param_1,long param_2,uint param_3)
{
long lVar1;
byte *pbVar2;
int iVar3;
ulong uVar4;
ulong uVar5;
uVar4 = 0;
uVar5 = (ulong)param_3;
if ((int)param_3 < 1) {
uVar5 = uVar4;
}
do {
if (uVar5 == uVar4) {
return 0;
}
lVar1 = uVar4 * 2;
pbVar2 = (byte *)(param_2 + uVar4);
uVar4 = uVar4 + 1;
iVar3 = (uint)*(ushort *)(param_1 + lVar1) - (uint)*pbVar2;
} while (iVar3 == 0);
return iVar3;
}
|
|
59,675
|
c4_eth_verify
|
corpus-core[P]colibri-stateless/src/chains/eth/verifier/eth_verify.c
|
bool c4_eth_verify(verify_ctx_t* ctx) {
if (ctx->chain_id != C4_CHAIN_MAINNET) return false;
if (!c4_update_from_sync_data(ctx)) return true;
#ifdef ETH_TX
if (ssz_is_type(&ctx->proof, eth_ssz_verification_type(ETH_SSZ_VERIFY_TRANSACTION_PROOF)))
verify_tx_proof(ctx);
else
#endif
#ifdef ETH_RECEIPT
if (ssz_is_type(&ctx->proof, eth_ssz_verification_type(ETH_SSZ_VERIFY_RECEIPT_PROOF)))
verify_receipt_proof(ctx);
else
#endif
#ifdef ETH_LOGS
if (ssz_is_type(&ctx->proof, eth_ssz_verification_type(ETH_SSZ_VERIFY_LOGS_PROOF)))
verify_logs_proof(ctx);
else
#endif
#ifdef ETH_ACCOUNT
if (ssz_is_type(&ctx->proof, eth_ssz_verification_type(ETH_SSZ_VERIFY_ACCOUNT_PROOF)))
verify_account_proof(ctx);
else
#endif
#ifdef ETH_CALL
if (ssz_is_type(&ctx->proof, eth_ssz_verification_type(ETH_SSZ_VERIFY_CALL_PROOF)))
verify_call_proof(ctx);
else
#endif
#ifdef ETH_BLOCK
if (ssz_is_type(&ctx->proof, eth_ssz_verification_type(ETH_SSZ_VERIFY_BLOCK_PROOF)))
verify_block_proof(ctx);
else
#endif
#ifdef ETH_UTIL
if (c4_eth_get_method_type(ctx->chain_id, ctx->method) == METHOD_LOCAL)
verify_eth_local(ctx);
else
#endif
if (ctx->method == NULL && ctx->proof.def->type == SSZ_TYPE_NONE && ctx->sync_data.def->type != SSZ_TYPE_NONE && ctx->data.def->type == SSZ_TYPE_NONE)
ctx->success = true; // if you only verify the sync data, this is ok
else {
ctx->state.error = strdup("proof is not a supported proof type or not enabled");
ctx->success = false;
}
return true;
}
|
O0
|
c
|
c4_eth_verify:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x1, 0x80(%rax)
je 0x27be2
movb $0x0, -0x1(%rbp)
jmp 0x27dd1
movq -0x10(%rbp), %rdi
callq 0x2f5b0
testb $0x1, %al
jne 0x27bf8
movb $0x1, -0x1(%rbp)
jmp 0x27dd1
movq -0x10(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x18(%rbp)
movl $0x7, %edi
callq 0x27de0
movq -0x18(%rbp), %rdi
movq %rax, %rsi
callq 0xa09a0
testb $0x1, %al
jne 0x27c20
jmp 0x27c2e
movq -0x10(%rbp), %rdi
callq 0x28fe0
jmp 0x27dcd
movq -0x10(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x20(%rbp)
movl $0x8, %edi
callq 0x27de0
movq -0x20(%rbp), %rdi
movq %rax, %rsi
callq 0xa09a0
testb $0x1, %al
jne 0x27c56
jmp 0x27c64
movq -0x10(%rbp), %rdi
callq 0x2af50
jmp 0x27dcb
movq -0x10(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x28(%rbp)
movl $0x9, %edi
callq 0x27de0
movq -0x28(%rbp), %rdi
movq %rax, %rsi
callq 0xa09a0
testb $0x1, %al
jne 0x27c8c
jmp 0x27c9a
movq -0x10(%rbp), %rdi
callq 0x2b790
jmp 0x27dc9
movq -0x10(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x30(%rbp)
movl $0x6, %edi
callq 0x27de0
movq -0x30(%rbp), %rdi
movq %rax, %rsi
callq 0xa09a0
testb $0x1, %al
jne 0x27cc2
jmp 0x27cd0
movq -0x10(%rbp), %rdi
callq 0x28180
jmp 0x27dc7
movq -0x10(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x38(%rbp)
movl $0xd, %edi
callq 0x27de0
movq -0x38(%rbp), %rdi
movq %rax, %rsi
callq 0xa09a0
testb $0x1, %al
jne 0x27cf8
jmp 0x27d06
movq -0x10(%rbp), %rdi
callq 0x2c600
jmp 0x27dc5
movq -0x10(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x40(%rbp)
movl $0xf, %edi
callq 0x27de0
movq -0x40(%rbp), %rdi
movq %rax, %rsi
callq 0xa09a0
testb $0x1, %al
jne 0x27d2e
jmp 0x27d3c
movq -0x10(%rbp), %rdi
callq 0x29d80
jmp 0x27dc3
movq -0x10(%rbp), %rax
movl 0x80(%rax), %edi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
callq 0x27a80
cmpl $0x4, %eax
jne 0x27d62
movq -0x10(%rbp), %rdi
callq 0x2eef0
jmp 0x27dc1
movq -0x10(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x27da0
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rax
cmpl $0x8, 0x8(%rax)
jne 0x27da0
movq -0x10(%rbp), %rax
movq 0x60(%rax), %rax
cmpl $0x8, 0x8(%rax)
je 0x27da0
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
cmpl $0x8, 0x8(%rax)
jne 0x27da0
movq -0x10(%rbp), %rax
movb $0x1, 0x68(%rax)
jmp 0x27dbf
leaq 0xb4991(%rip), %rdi # 0xdc738
callq 0x23030
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x78(%rax)
movq -0x10(%rbp), %rax
movb $0x0, 0x68(%rax)
jmp 0x27dc1
jmp 0x27dc3
jmp 0x27dc5
jmp 0x27dc7
jmp 0x27dc9
jmp 0x27dcb
jmp 0x27dcd
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
|
c4_eth_verify:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
cmp dword ptr [rax+80h], 1
jz short loc_27BE2
mov [rbp+var_1], 0
jmp loc_27DD1
loc_27BE2:
mov rdi, [rbp+var_10]
call c4_update_from_sync_data
test al, 1
jnz short loc_27BF8
mov [rbp+var_1], 1
jmp loc_27DD1
loc_27BF8:
mov rax, [rbp+var_10]
add rax, 20h ; ' '
mov [rbp+var_18], rax
mov edi, 7
call eth_ssz_verification_type
mov rdi, [rbp+var_18]
mov rsi, rax
call ssz_is_type
test al, 1
jnz short loc_27C20
jmp short loc_27C2E
loc_27C20:
mov rdi, [rbp+var_10]
call verify_tx_proof
jmp loc_27DCD
loc_27C2E:
mov rax, [rbp+var_10]
add rax, 20h ; ' '
mov [rbp+var_20], rax
mov edi, 8
call eth_ssz_verification_type
mov rdi, [rbp+var_20]
mov rsi, rax
call ssz_is_type
test al, 1
jnz short loc_27C56
jmp short loc_27C64
loc_27C56:
mov rdi, [rbp+var_10]
call verify_receipt_proof
jmp loc_27DCB
loc_27C64:
mov rax, [rbp+var_10]
add rax, 20h ; ' '
mov [rbp+var_28], rax
mov edi, 9
call eth_ssz_verification_type
mov rdi, [rbp+var_28]
mov rsi, rax
call ssz_is_type
test al, 1
jnz short loc_27C8C
jmp short loc_27C9A
loc_27C8C:
mov rdi, [rbp+var_10]
call verify_logs_proof
jmp loc_27DC9
loc_27C9A:
mov rax, [rbp+var_10]
add rax, 20h ; ' '
mov [rbp+var_30], rax
mov edi, 6
call eth_ssz_verification_type
mov rdi, [rbp+var_30]
mov rsi, rax
call ssz_is_type
test al, 1
jnz short loc_27CC2
jmp short loc_27CD0
loc_27CC2:
mov rdi, [rbp+var_10]
call verify_account_proof
jmp loc_27DC7
loc_27CD0:
mov rax, [rbp+var_10]
add rax, 20h ; ' '
mov [rbp+var_38], rax
mov edi, 0Dh
call eth_ssz_verification_type
mov rdi, [rbp+var_38]
mov rsi, rax
call ssz_is_type
test al, 1
jnz short loc_27CF8
jmp short loc_27D06
loc_27CF8:
mov rdi, [rbp+var_10]
call verify_call_proof
jmp loc_27DC5
loc_27D06:
mov rax, [rbp+var_10]
add rax, 20h ; ' '
mov [rbp+var_40], rax
mov edi, 0Fh
call eth_ssz_verification_type
mov rdi, [rbp+var_40]
mov rsi, rax
call ssz_is_type
test al, 1
jnz short loc_27D2E
jmp short loc_27D3C
loc_27D2E:
mov rdi, [rbp+var_10]
call verify_block_proof
jmp loc_27DC3
loc_27D3C:
mov rax, [rbp+var_10]
mov edi, [rax+80h]
mov rax, [rbp+var_10]
mov rsi, [rax]
call c4_eth_get_method_type
cmp eax, 4
jnz short loc_27D62
mov rdi, [rbp+var_10]
call verify_eth_local
jmp short loc_27DC1
loc_27D62:
mov rax, [rbp+var_10]
cmp qword ptr [rax], 0
jnz short loc_27DA0
mov rax, [rbp+var_10]
mov rax, [rax+30h]
cmp dword ptr [rax+8], 8
jnz short loc_27DA0
mov rax, [rbp+var_10]
mov rax, [rax+60h]
cmp dword ptr [rax+8], 8
jz short loc_27DA0
mov rax, [rbp+var_10]
mov rax, [rax+48h]
cmp dword ptr [rax+8], 8
jnz short loc_27DA0
mov rax, [rbp+var_10]
mov byte ptr [rax+68h], 1
jmp short loc_27DBF
loc_27DA0:
lea rdi, aProofIsNotASup; "proof is not a supported proof type or "...
call _strdup
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+78h], rcx
mov rax, [rbp+var_10]
mov byte ptr [rax+68h], 0
loc_27DBF:
jmp short $+2
loc_27DC1:
jmp short $+2
loc_27DC3:
jmp short $+2
loc_27DC5:
jmp short $+2
loc_27DC7:
jmp short $+2
loc_27DC9:
jmp short $+2
loc_27DCB:
jmp short $+2
loc_27DCD:
mov [rbp+var_1], 1
loc_27DD1:
mov al, [rbp+var_1]
and al, 1
add rsp, 40h
pop rbp
retn
|
char c4_eth_verify(long long a1)
{
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; // rdx
if ( *(_DWORD *)(a1 + 128) != 1 )
return 0;
if ( (c4_update_from_sync_data(a1) & 1) == 0 )
return 1;
v1 = eth_ssz_verification_type(7LL);
if ( (ssz_is_type(a1 + 32, v1) & 1) != 0 )
{
verify_tx_proof(a1);
}
else
{
v2 = eth_ssz_verification_type(8LL);
if ( (ssz_is_type(a1 + 32, v2) & 1) != 0 )
{
verify_receipt_proof(a1);
}
else
{
v3 = eth_ssz_verification_type(9LL);
if ( (ssz_is_type(a1 + 32, v3) & 1) != 0 )
{
verify_logs_proof(a1);
}
else
{
v4 = eth_ssz_verification_type(6LL);
if ( (ssz_is_type(a1 + 32, v4) & 1) != 0 )
{
verify_account_proof(a1);
}
else
{
v5 = eth_ssz_verification_type(13LL);
if ( (ssz_is_type(a1 + 32, v5) & 1) != 0 )
{
verify_call_proof(a1);
}
else
{
v6 = eth_ssz_verification_type(15LL);
if ( (ssz_is_type(a1 + 32, v6) & 1) != 0 )
{
verify_block_proof(a1);
}
else if ( (unsigned int)c4_eth_get_method_type(*(_DWORD *)(a1 + 128), *(_QWORD *)a1, v7) == 4 )
{
verify_eth_local(a1);
}
else if ( *(_QWORD *)a1
|| *(_DWORD *)(*(_QWORD *)(a1 + 48) + 8LL) != 8
|| *(_DWORD *)(*(_QWORD *)(a1 + 96) + 8LL) == 8
|| *(_DWORD *)(*(_QWORD *)(a1 + 72) + 8LL) != 8 )
{
*(_QWORD *)(a1 + 120) = strdup("proof is not a supported proof type or not enabled");
*(_BYTE *)(a1 + 104) = 0;
}
else
{
*(_BYTE *)(a1 + 104) = 1;
}
}
}
}
}
}
return 1;
}
|
c4_eth_verify:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x80],0x1
JZ 0x00127be2
MOV byte ptr [RBP + -0x1],0x0
JMP 0x00127dd1
LAB_00127be2:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0012f5b0
TEST AL,0x1
JNZ 0x00127bf8
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00127dd1
LAB_00127bf8:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x20
MOV qword ptr [RBP + -0x18],RAX
MOV EDI,0x7
CALL 0x00127de0
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,RAX
CALL 0x001a09a0
TEST AL,0x1
JNZ 0x00127c20
JMP 0x00127c2e
LAB_00127c20:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00128fe0
JMP 0x00127dcd
LAB_00127c2e:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x20
MOV qword ptr [RBP + -0x20],RAX
MOV EDI,0x8
CALL 0x00127de0
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,RAX
CALL 0x001a09a0
TEST AL,0x1
JNZ 0x00127c56
JMP 0x00127c64
LAB_00127c56:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0012af50
JMP 0x00127dcb
LAB_00127c64:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x20
MOV qword ptr [RBP + -0x28],RAX
MOV EDI,0x9
CALL 0x00127de0
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,RAX
CALL 0x001a09a0
TEST AL,0x1
JNZ 0x00127c8c
JMP 0x00127c9a
LAB_00127c8c:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0012b790
JMP 0x00127dc9
LAB_00127c9a:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x20
MOV qword ptr [RBP + -0x30],RAX
MOV EDI,0x6
CALL 0x00127de0
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,RAX
CALL 0x001a09a0
TEST AL,0x1
JNZ 0x00127cc2
JMP 0x00127cd0
LAB_00127cc2:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00128180
JMP 0x00127dc7
LAB_00127cd0:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x20
MOV qword ptr [RBP + -0x38],RAX
MOV EDI,0xd
CALL 0x00127de0
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,RAX
CALL 0x001a09a0
TEST AL,0x1
JNZ 0x00127cf8
JMP 0x00127d06
LAB_00127cf8:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0012c600
JMP 0x00127dc5
LAB_00127d06:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x20
MOV qword ptr [RBP + -0x40],RAX
MOV EDI,0xf
CALL 0x00127de0
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,RAX
CALL 0x001a09a0
TEST AL,0x1
JNZ 0x00127d2e
JMP 0x00127d3c
LAB_00127d2e:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00129d80
JMP 0x00127dc3
LAB_00127d3c:
MOV RAX,qword ptr [RBP + -0x10]
MOV EDI,dword ptr [RAX + 0x80]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX]
CALL 0x00127a80
CMP EAX,0x4
JNZ 0x00127d62
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0012eef0
JMP 0x00127dc1
LAB_00127d62:
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX],0x0
JNZ 0x00127da0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x30]
CMP dword ptr [RAX + 0x8],0x8
JNZ 0x00127da0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x60]
CMP dword ptr [RAX + 0x8],0x8
JZ 0x00127da0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x48]
CMP dword ptr [RAX + 0x8],0x8
JNZ 0x00127da0
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x68],0x1
JMP 0x00127dbf
LAB_00127da0:
LEA RDI,[0x1dc738]
CALL 0x00123030
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x78],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x68],0x0
LAB_00127dbf:
JMP 0x00127dc1
LAB_00127dc1:
JMP 0x00127dc3
LAB_00127dc3:
JMP 0x00127dc5
LAB_00127dc5:
JMP 0x00127dc7
LAB_00127dc7:
JMP 0x00127dc9
LAB_00127dc9:
JMP 0x00127dcb
LAB_00127dcb:
JMP 0x00127dcd
LAB_00127dcd:
MOV byte ptr [RBP + -0x1],0x1
LAB_00127dd1:
MOV AL,byte ptr [RBP + -0x1]
AND AL,0x1
ADD RSP,0x40
POP RBP
RET
|
int1 c4_eth_verify(long *param_1)
{
int iVar1;
ulong uVar2;
int8 uVar3;
char *pcVar4;
int1 local_9;
if ((int)param_1[0x10] == 1) {
uVar2 = c4_update_from_sync_data(param_1);
if ((uVar2 & 1) == 0) {
local_9 = 1;
}
else {
uVar3 = eth_ssz_verification_type(7);
uVar2 = ssz_is_type(param_1 + 4,uVar3);
if ((uVar2 & 1) == 0) {
uVar3 = eth_ssz_verification_type(8);
uVar2 = ssz_is_type(param_1 + 4,uVar3);
if ((uVar2 & 1) == 0) {
uVar3 = eth_ssz_verification_type(9);
uVar2 = ssz_is_type(param_1 + 4,uVar3);
if ((uVar2 & 1) == 0) {
uVar3 = eth_ssz_verification_type(6);
uVar2 = ssz_is_type(param_1 + 4,uVar3);
if ((uVar2 & 1) == 0) {
uVar3 = eth_ssz_verification_type(0xd);
uVar2 = ssz_is_type(param_1 + 4,uVar3);
if ((uVar2 & 1) == 0) {
uVar3 = eth_ssz_verification_type(0xf);
uVar2 = ssz_is_type(param_1 + 4,uVar3);
if ((uVar2 & 1) == 0) {
iVar1 = c4_eth_get_method_type((int)param_1[0x10],*param_1);
if (iVar1 == 4) {
verify_eth_local(param_1);
}
else if ((((*param_1 == 0) && (*(int *)(param_1[6] + 8) == 8)) &&
(*(int *)(param_1[0xc] + 8) != 8)) && (*(int *)(param_1[9] + 8) == 8)) {
*(int1 *)(param_1 + 0xd) = 1;
}
else {
pcVar4 = strdup("proof is not a supported proof type or not enabled");
param_1[0xf] = (long)pcVar4;
*(int1 *)(param_1 + 0xd) = 0;
}
}
else {
verify_block_proof(param_1);
}
}
else {
verify_call_proof(param_1);
}
}
else {
verify_account_proof(param_1);
}
}
else {
verify_logs_proof(param_1);
}
}
else {
verify_receipt_proof(param_1);
}
}
else {
verify_tx_proof(param_1);
}
local_9 = 1;
}
}
else {
local_9 = 0;
}
return local_9;
}
|
|
59,676
|
c4_eth_verify
|
corpus-core[P]colibri-stateless/src/chains/eth/verifier/eth_verify.c
|
bool c4_eth_verify(verify_ctx_t* ctx) {
if (ctx->chain_id != C4_CHAIN_MAINNET) return false;
if (!c4_update_from_sync_data(ctx)) return true;
#ifdef ETH_TX
if (ssz_is_type(&ctx->proof, eth_ssz_verification_type(ETH_SSZ_VERIFY_TRANSACTION_PROOF)))
verify_tx_proof(ctx);
else
#endif
#ifdef ETH_RECEIPT
if (ssz_is_type(&ctx->proof, eth_ssz_verification_type(ETH_SSZ_VERIFY_RECEIPT_PROOF)))
verify_receipt_proof(ctx);
else
#endif
#ifdef ETH_LOGS
if (ssz_is_type(&ctx->proof, eth_ssz_verification_type(ETH_SSZ_VERIFY_LOGS_PROOF)))
verify_logs_proof(ctx);
else
#endif
#ifdef ETH_ACCOUNT
if (ssz_is_type(&ctx->proof, eth_ssz_verification_type(ETH_SSZ_VERIFY_ACCOUNT_PROOF)))
verify_account_proof(ctx);
else
#endif
#ifdef ETH_CALL
if (ssz_is_type(&ctx->proof, eth_ssz_verification_type(ETH_SSZ_VERIFY_CALL_PROOF)))
verify_call_proof(ctx);
else
#endif
#ifdef ETH_BLOCK
if (ssz_is_type(&ctx->proof, eth_ssz_verification_type(ETH_SSZ_VERIFY_BLOCK_PROOF)))
verify_block_proof(ctx);
else
#endif
#ifdef ETH_UTIL
if (c4_eth_get_method_type(ctx->chain_id, ctx->method) == METHOD_LOCAL)
verify_eth_local(ctx);
else
#endif
if (ctx->method == NULL && ctx->proof.def->type == SSZ_TYPE_NONE && ctx->sync_data.def->type != SSZ_TYPE_NONE && ctx->data.def->type == SSZ_TYPE_NONE)
ctx->success = true; // if you only verify the sync data, this is ok
else {
ctx->state.error = strdup("proof is not a supported proof type or not enabled");
ctx->success = false;
}
return true;
}
|
O3
|
c
|
c4_eth_verify:
pushq %rbp
pushq %r14
pushq %rbx
movl 0x80(%rdi), %ebp
cmpl $0x1, %ebp
jne 0x26675
movq %rdi, %rbx
callq 0x2b05c
testb %al, %al
je 0x26675
leaq 0x20(%rbx), %r14
movl $0x7, %edi
callq 0x26680
movq %r14, %rdi
movq %rax, %rsi
callq 0x5488d
testb %al, %al
je 0x2655d
movq %rbx, %rdi
callq 0x272f0
jmp 0x26675
movl $0x8, %edi
callq 0x26680
movq %r14, %rdi
movq %rax, %rsi
callq 0x5488d
testb %al, %al
je 0x26583
movq %rbx, %rdi
callq 0x286f0
jmp 0x26675
movl $0x9, %edi
callq 0x26680
movq %r14, %rdi
movq %rax, %rsi
callq 0x5488d
testb %al, %al
je 0x265a9
movq %rbx, %rdi
callq 0x28c24
jmp 0x26675
movl $0x6, %edi
callq 0x26680
movq %r14, %rdi
movq %rax, %rsi
callq 0x5488d
testb %al, %al
je 0x265cf
movq %rbx, %rdi
callq 0x268a8
jmp 0x26675
movl $0xd, %edi
callq 0x26680
movq %r14, %rdi
movq %rax, %rsi
callq 0x5488d
testb %al, %al
je 0x265f5
movq %rbx, %rdi
callq 0x29770
jmp 0x26675
movl $0xf, %edi
callq 0x26680
movq %r14, %rdi
movq %rax, %rsi
callq 0x5488d
testb %al, %al
je 0x26618
movq %rbx, %rdi
callq 0x27b98
jmp 0x26675
movl 0x80(%rbx), %edi
movq (%rbx), %r14
movq %r14, %rsi
callq 0x26458
cmpl $0x4, %eax
jne 0x26638
movq %rbx, %rdi
callq 0x2adf0
jmp 0x26675
testq %r14, %r14
jne 0x26661
movq 0x30(%rbx), %rax
cmpl $0x8, 0x8(%rax)
jne 0x26661
movq 0x60(%rbx), %rax
cmpl $0x8, 0x8(%rax)
je 0x26661
movq 0x48(%rbx), %rax
cmpl $0x8, 0x8(%rax)
jne 0x26661
movb $0x1, 0x68(%rbx)
jmp 0x26675
leaq 0x5b0f4(%rip), %rdi # 0x8175c
callq 0x22030
movq %rax, 0x78(%rbx)
movb $0x0, 0x68(%rbx)
cmpl $0x1, %ebp
sete %al
popq %rbx
popq %r14
popq %rbp
retq
|
c4_eth_verify:
push rbp
push r14
push rbx
mov ebp, [rdi+80h]
cmp ebp, 1
jnz loc_26675
mov rbx, rdi
call c4_update_from_sync_data
test al, al
jz loc_26675
lea r14, [rbx+20h]
mov edi, 7
call eth_ssz_verification_type
mov rdi, r14
mov rsi, rax
call ssz_is_type
test al, al
jz short loc_2655D
mov rdi, rbx
call verify_tx_proof
jmp loc_26675
loc_2655D:
mov edi, 8
call eth_ssz_verification_type
mov rdi, r14
mov rsi, rax
call ssz_is_type
test al, al
jz short loc_26583
mov rdi, rbx
call verify_receipt_proof
jmp loc_26675
loc_26583:
mov edi, 9
call eth_ssz_verification_type
mov rdi, r14
mov rsi, rax
call ssz_is_type
test al, al
jz short loc_265A9
mov rdi, rbx
call verify_logs_proof
jmp loc_26675
loc_265A9:
mov edi, 6
call eth_ssz_verification_type
mov rdi, r14
mov rsi, rax
call ssz_is_type
test al, al
jz short loc_265CF
mov rdi, rbx
call verify_account_proof
jmp loc_26675
loc_265CF:
mov edi, 0Dh
call eth_ssz_verification_type
mov rdi, r14
mov rsi, rax
call ssz_is_type
test al, al
jz short loc_265F5
mov rdi, rbx
call verify_call_proof
jmp loc_26675
loc_265F5:
mov edi, 0Fh
call eth_ssz_verification_type
mov rdi, r14
mov rsi, rax
call ssz_is_type
test al, al
jz short loc_26618
mov rdi, rbx
call verify_block_proof
jmp short loc_26675
loc_26618:
mov edi, [rbx+80h]
mov r14, [rbx]
mov rsi, r14
call c4_eth_get_method_type
cmp eax, 4
jnz short loc_26638
mov rdi, rbx
call verify_eth_local
jmp short loc_26675
loc_26638:
test r14, r14
jnz short loc_26661
mov rax, [rbx+30h]
cmp dword ptr [rax+8], 8
jnz short loc_26661
mov rax, [rbx+60h]
cmp dword ptr [rax+8], 8
jz short loc_26661
mov rax, [rbx+48h]
cmp dword ptr [rax+8], 8
jnz short loc_26661
mov byte ptr [rbx+68h], 1
jmp short loc_26675
loc_26661:
lea rdi, aProofIsNotASup; "proof is not a supported proof type or "...
call _strdup
mov [rbx+78h], rax
mov byte ptr [rbx+68h], 0
loc_26675:
cmp ebp, 1
setz al
pop rbx
pop r14
pop rbp
retn
|
bool c4_eth_verify(long long a1)
{
int v1; // ebp
long long v2; // rax
long long v3; // rax
long long v4; // rax
long long v5; // rax
long long v6; // rax
long long v7; // rax
long long v8; // r14
v1 = *(_DWORD *)(a1 + 128);
if ( v1 == 1 && (unsigned __int8)c4_update_from_sync_data() )
{
v2 = eth_ssz_verification_type(7LL);
if ( (unsigned __int8)ssz_is_type(a1 + 32, v2) )
{
verify_tx_proof(a1);
}
else
{
v3 = eth_ssz_verification_type(8LL);
if ( (unsigned __int8)ssz_is_type(a1 + 32, v3) )
{
verify_receipt_proof(a1);
}
else
{
v4 = eth_ssz_verification_type(9LL);
if ( (unsigned __int8)ssz_is_type(a1 + 32, v4) )
{
verify_logs_proof(a1);
}
else
{
v5 = eth_ssz_verification_type(6LL);
if ( (unsigned __int8)ssz_is_type(a1 + 32, v5) )
{
verify_account_proof(a1);
}
else
{
v6 = eth_ssz_verification_type(13LL);
if ( (unsigned __int8)ssz_is_type(a1 + 32, v6) )
{
verify_call_proof(a1);
}
else
{
v7 = eth_ssz_verification_type(15LL);
if ( (unsigned __int8)ssz_is_type(a1 + 32, v7) )
{
verify_block_proof(a1);
}
else
{
v8 = *(_QWORD *)a1;
if ( (unsigned int)c4_eth_get_method_type(*(_DWORD *)(a1 + 128), *(_QWORD *)a1) == 4 )
{
verify_eth_local(a1);
}
else if ( v8
|| *(_DWORD *)(*(_QWORD *)(a1 + 48) + 8LL) != 8
|| *(_DWORD *)(*(_QWORD *)(a1 + 96) + 8LL) == 8
|| *(_DWORD *)(*(_QWORD *)(a1 + 72) + 8LL) != 8 )
{
*(_QWORD *)(a1 + 120) = strdup("proof is not a supported proof type or not enabled");
*(_BYTE *)(a1 + 104) = 0;
}
else
{
*(_BYTE *)(a1 + 104) = 1;
}
}
}
}
}
}
}
}
return v1 == 1;
}
|
c4_eth_verify:
PUSH RBP
PUSH R14
PUSH RBX
MOV EBP,dword ptr [RDI + 0x80]
CMP EBP,0x1
JNZ 0x00126675
MOV RBX,RDI
CALL 0x0012b05c
TEST AL,AL
JZ 0x00126675
LEA R14,[RBX + 0x20]
MOV EDI,0x7
CALL 0x00126680
MOV RDI,R14
MOV RSI,RAX
CALL 0x0015488d
TEST AL,AL
JZ 0x0012655d
MOV RDI,RBX
CALL 0x001272f0
JMP 0x00126675
LAB_0012655d:
MOV EDI,0x8
CALL 0x00126680
MOV RDI,R14
MOV RSI,RAX
CALL 0x0015488d
TEST AL,AL
JZ 0x00126583
MOV RDI,RBX
CALL 0x001286f0
JMP 0x00126675
LAB_00126583:
MOV EDI,0x9
CALL 0x00126680
MOV RDI,R14
MOV RSI,RAX
CALL 0x0015488d
TEST AL,AL
JZ 0x001265a9
MOV RDI,RBX
CALL 0x00128c24
JMP 0x00126675
LAB_001265a9:
MOV EDI,0x6
CALL 0x00126680
MOV RDI,R14
MOV RSI,RAX
CALL 0x0015488d
TEST AL,AL
JZ 0x001265cf
MOV RDI,RBX
CALL 0x001268a8
JMP 0x00126675
LAB_001265cf:
MOV EDI,0xd
CALL 0x00126680
MOV RDI,R14
MOV RSI,RAX
CALL 0x0015488d
TEST AL,AL
JZ 0x001265f5
MOV RDI,RBX
CALL 0x00129770
JMP 0x00126675
LAB_001265f5:
MOV EDI,0xf
CALL 0x00126680
MOV RDI,R14
MOV RSI,RAX
CALL 0x0015488d
TEST AL,AL
JZ 0x00126618
MOV RDI,RBX
CALL 0x00127b98
JMP 0x00126675
LAB_00126618:
MOV EDI,dword ptr [RBX + 0x80]
MOV R14,qword ptr [RBX]
MOV RSI,R14
CALL 0x00126458
CMP EAX,0x4
JNZ 0x00126638
MOV RDI,RBX
CALL 0x0012adf0
JMP 0x00126675
LAB_00126638:
TEST R14,R14
JNZ 0x00126661
MOV RAX,qword ptr [RBX + 0x30]
CMP dword ptr [RAX + 0x8],0x8
JNZ 0x00126661
MOV RAX,qword ptr [RBX + 0x60]
CMP dword ptr [RAX + 0x8],0x8
JZ 0x00126661
MOV RAX,qword ptr [RBX + 0x48]
CMP dword ptr [RAX + 0x8],0x8
JNZ 0x00126661
MOV byte ptr [RBX + 0x68],0x1
JMP 0x00126675
LAB_00126661:
LEA RDI,[0x18175c]
CALL 0x00122030
MOV qword ptr [RBX + 0x78],RAX
MOV byte ptr [RBX + 0x68],0x0
LAB_00126675:
CMP EBP,0x1
SETZ AL
POP RBX
POP R14
POP RBP
RET
|
bool c4_eth_verify(long *param_1)
{
long *plVar1;
long lVar2;
long lVar3;
char cVar4;
int iVar5;
int8 uVar6;
char *pcVar7;
lVar3 = param_1[0x10];
if ((int)lVar3 == 1) {
cVar4 = c4_update_from_sync_data();
if (cVar4 != '\0') {
plVar1 = param_1 + 4;
uVar6 = eth_ssz_verification_type(7);
cVar4 = ssz_is_type(plVar1,uVar6);
if (cVar4 == '\0') {
uVar6 = eth_ssz_verification_type(8);
cVar4 = ssz_is_type(plVar1,uVar6);
if (cVar4 == '\0') {
uVar6 = eth_ssz_verification_type(9);
cVar4 = ssz_is_type(plVar1,uVar6);
if (cVar4 == '\0') {
uVar6 = eth_ssz_verification_type(6);
cVar4 = ssz_is_type(plVar1,uVar6);
if (cVar4 == '\0') {
uVar6 = eth_ssz_verification_type(0xd);
cVar4 = ssz_is_type(plVar1,uVar6);
if (cVar4 == '\0') {
uVar6 = eth_ssz_verification_type(0xf);
cVar4 = ssz_is_type(plVar1,uVar6);
if (cVar4 == '\0') {
lVar2 = *param_1;
iVar5 = c4_eth_get_method_type((int)param_1[0x10],lVar2);
if (iVar5 == 4) {
verify_eth_local(param_1);
}
else if ((((lVar2 == 0) && (*(int *)(param_1[6] + 8) == 8)) &&
(*(int *)(param_1[0xc] + 8) != 8)) && (*(int *)(param_1[9] + 8) == 8)) {
*(int1 *)(param_1 + 0xd) = 1;
}
else {
pcVar7 = strdup("proof is not a supported proof type or not enabled");
param_1[0xf] = (long)pcVar7;
*(int1 *)(param_1 + 0xd) = 0;
}
}
else {
verify_block_proof(param_1);
}
}
else {
verify_call_proof(param_1);
}
}
else {
verify_account_proof(param_1);
}
}
else {
verify_logs_proof(param_1);
}
}
else {
verify_receipt_proof(param_1);
}
}
else {
verify_tx_proof(param_1);
}
}
}
return (int)lVar3 == 1;
}
|
|
59,677
|
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 0x92b3d(%rip), %rax # 0x12fdb0
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x20(%rdi), %rdi
leaq 0x30(%rbx), %rax
cmpq %rax, %rdi
je 0x9d292
movq (%rax), %rsi
incq %rsi
callq 0x1b930
leaq 0x9210f(%rip), %rax # 0x12f3a8
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x9d2af
popq %rbx
jmp 0x267a6
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_9D292
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_9D292:
lea rax, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression
add rax, 10h
mov [rbx], rax
mov rdi, [rbx+10h]
test rdi, rdi
jz short loc_9D2AF
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_9D2AF:
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,[0x22fdb0]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RDI,qword ptr [RDI + 0x20]
LEA RAX,[RBX + 0x30]
CMP RDI,RAX
JZ 0x0019d292
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x0011b930
LAB_0019d292:
LEA RAX,[0x22f3a8]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RBX + 0x10]
TEST RDI,RDI
JZ 0x0019d2af
POP RBX
JMP 0x001267a6
LAB_0019d2af:
POP RBX
RET
|
/* minja::VariableExpr::~VariableExpr() */
void __thiscall minja::VariableExpr::~VariableExpr(VariableExpr *this)
{
*(int ***)this = &PTR_do_evaluate_0022fdc0;
if (*(VariableExpr **)(this + 0x20) != this + 0x30) {
operator_delete(*(VariableExpr **)(this + 0x20),*(long *)(this + 0x30) + 1);
}
*(int ***)this = &PTR___cxa_pure_virtual_0022f3b8;
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;
}
|
|
59,678
|
Rpl_filter::free_string_list(I_List<i_string>*)
|
eloqsql/sql/rpl_filter.cc
|
void
Rpl_filter::free_string_list(I_List<i_string> *l)
{
void *ptr;
i_string *tmp;
while ((tmp= l->get()))
{
ptr= (void *) tmp->ptr;
my_free(ptr);
delete tmp;
}
l->empty();
}
|
O3
|
cpp
|
Rpl_filter::free_string_list(I_List<i_string>*):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
leaq 0x8(%rsi), %r15
movq (%rsi), %r14
cmpq %r15, %r14
je 0x549e4
movq 0x8(%r14), %rcx
movq 0x10(%r14), %rax
testq %rcx, %rcx
je 0x549b7
movq %rax, (%rcx)
leaq 0x8(%r14), %rcx
testq %rax, %rax
je 0x549c7
movq (%rcx), %rdx
movq %rdx, 0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%rcx)
movq 0x18(%r14), %rdi
callq 0x84732
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
movq (%rbx), %r14
jmp 0x549a2
movq %r15, (%rbx)
movq %rbx, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
_ZN10Rpl_filter16free_string_listEP6I_ListI8i_stringE:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rsi
lea r15, [rsi+8]
mov r14, [rsi]
loc_549A2:
cmp r14, r15
jz short loc_549E4
mov rcx, [r14+8]
mov rax, [r14+10h]
test rcx, rcx
jz short loc_549B7
mov [rcx], rax
loc_549B7:
lea rcx, [r14+8]
test rax, rax
jz short loc_549C7
mov rdx, [rcx]
mov [rax+8], rdx
loc_549C7:
xorps xmm0, xmm0
movups xmmword ptr [rcx], xmm0
mov rdi, [r14+18h]
call my_free
mov rax, [r14]
mov rdi, r14
call qword ptr [rax+8]
mov r14, [rbx]
jmp short loc_549A2
loc_549E4:
mov [rbx], r15
mov [rbx+10h], rbx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long Rpl_filter::free_string_list(long long a1, long long a2)
{
long long result; // rax
_QWORD *v3; // r15
_QWORD *i; // r14
_QWORD *v5; // rcx
long long v6; // rax
_QWORD *v7; // rcx
v3 = (_QWORD *)(a2 + 8);
for ( i = *(_QWORD **)a2; i != v3; i = *(_QWORD **)a2 )
{
v5 = (_QWORD *)i[1];
v6 = i[2];
if ( v5 )
*v5 = v6;
v7 = i + 1;
if ( v6 )
*(_QWORD *)(v6 + 8) = *v7;
*(_OWORD *)v7 = 0LL;
my_free(i[3]);
result = (*(long long ( **)(_QWORD *))(*i + 8LL))(i);
}
*(_QWORD *)a2 = v3;
*(_QWORD *)(a2 + 16) = a2;
return result;
}
|
free_string_list:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
LEA R15,[RSI + 0x8]
MOV R14,qword ptr [RSI]
LAB_001549a2:
CMP R14,R15
JZ 0x001549e4
MOV RCX,qword ptr [R14 + 0x8]
MOV RAX,qword ptr [R14 + 0x10]
TEST RCX,RCX
JZ 0x001549b7
MOV qword ptr [RCX],RAX
LAB_001549b7:
LEA RCX,[R14 + 0x8]
TEST RAX,RAX
JZ 0x001549c7
MOV RDX,qword ptr [RCX]
MOV qword ptr [RAX + 0x8],RDX
LAB_001549c7:
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RCX],XMM0
MOV RDI,qword ptr [R14 + 0x18]
CALL 0x00184732
MOV RAX,qword ptr [R14]
MOV RDI,R14
CALL qword ptr [RAX + 0x8]
MOV R14,qword ptr [RBX]
JMP 0x001549a2
LAB_001549e4:
MOV qword ptr [RBX],R15
MOV qword ptr [RBX + 0x10],RBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* Rpl_filter::free_string_list(I_List<i_string>*) */
void __thiscall Rpl_filter::free_string_list(Rpl_filter *this,I_List *param_1)
{
long lVar1;
I_List *pIVar2;
pIVar2 = *(I_List **)param_1;
while (pIVar2 != param_1 + 8) {
lVar1 = *(long *)(pIVar2 + 0x10);
if (*(long **)(pIVar2 + 8) != (long *)0x0) {
**(long **)(pIVar2 + 8) = lVar1;
}
if (lVar1 != 0) {
*(long *)(lVar1 + 8) = *(long *)(pIVar2 + 8);
}
*(long *)(pIVar2 + 8) = 0;
*(long *)(pIVar2 + 0x10) = 0;
my_free(*(long *)(pIVar2 + 0x18));
(**(code **)(*(long *)pIVar2 + 8))(pIVar2);
pIVar2 = *(I_List **)param_1;
}
*(I_List **)param_1 = param_1 + 8;
*(I_List **)(param_1 + 0x10) = param_1;
return;
}
|
|
59,679
|
unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<void>::type>::type, unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<void>::type>::type>::type>::type>::type>::type>::type unifex::_await_cpo::_fn::connect_impl<unifex::_task::_task<void>::type, unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<void>::type>::type, unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<void>::type>::type>::type>::type>::type>::type>(unifex::_task::_task<void>::type, unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<void>::type>::type, unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<void>::type>::type>::type>::type>::type>::type) (.destroy)
|
aimrt_mujoco_sim/_deps/libunifex-src/include/unifex/connect_awaitable.hpp
|
static auto connect_impl(Awaitable awaitable, Receiver receiver)
-> _await::sender_task<Receiver> {
#if !UNIFEX_NO_EXCEPTIONS
std::exception_ptr ex;
try {
#endif // !UNIFEX_NO_EXCEPTIONS
using result_type = sender_single_value_result_t<Awaitable>;
// This is a bit mind bending control-flow wise.
// We are first evaluating the co_await expression.
// Then the result of that is passed into std::invoke
// which curries a reference to the result into another
// lambda which is then returned to 'co_yield'.
// The 'co_yield' expression then invokes this lambda
// after the coroutine is suspended so that it is safe
// for the receiver to destroy the coroutine.
co_yield [&](result_type&& result) {
return [&] {
constexpr size_t valueOverloadCount =
sender_value_types_t<Awaitable, count_types, single_value_type>::value;
static_assert(valueOverloadCount <= 1);
if constexpr (valueOverloadCount == 1) {
constexpr size_t valueCount =
sender_value_types_t<Awaitable, type_identity_t, count_types>::value;
if constexpr (valueCount == 0) {
unifex::set_value(std::move(receiver));
} else if constexpr (valueCount == 1) {
unifex::set_value(std::move(receiver), static_cast<result_type&&>(result));
} else {
std::apply(set_value_applicator<Receiver>{receiver}, (result_type&&)result);
}
} else {
// Shouldn't complete with a value if there are no value_types
// specified.
std::terminate();
}
};
// The _comma_hack here makes this well-formed when the co_await
// expression has type void. This could potentially run into trouble
// if the type of the co_await expression itself overloads operator
// comma, but that's pretty unlikely.
}((co_await (Awaitable &&)awaitable, _comma_hack{}));
#if !UNIFEX_NO_EXCEPTIONS
} catch (...) {
ex = std::current_exception();
}
co_yield[&] {
unifex::set_error(std::move(receiver), std::move(ex));
};
#endif // !UNIFEX_NO_EXCEPTIONS
}
|
O0
|
cpp
|
unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<void>::type>::type, unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<void>::type>::type>::type>::type>::type>::type>::type unifex::_await_cpo::_fn::connect_impl<unifex::_task::_task<void>::type, unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<void>::type>::type, unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<void>::type>::type>::type>::type>::type>::type>(unifex::_task::_task<void>::type, unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<void>::type>::type, unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task, unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler, unifex::_task::_task<void>::type>::type>::type>::type>::type>::type) (.destroy):
subq $0x1a8, %rsp # imm = 0x1A8
movq %rdx, 0xd0(%rsp)
movq %rsi, 0xd8(%rsp)
movq %rdi, 0xe0(%rsp)
movq %rdi, %rax
movq %rax, 0xe8(%rsp)
movq %rdi, 0x1a0(%rsp)
movq %rsi, 0x198(%rsp)
movq %rdx, 0x190(%rsp)
xorl %eax, %eax
movb $0x1, %cl
testb $0x1, %cl
movq %rax, 0xf0(%rsp)
jne 0xf1b55
movq 0xf0(%rsp), %rax
movq %rax, 0xc8(%rsp)
jmp 0xf1b77
movl $0x88, %edi
callq 0x8c1d0
movq %rax, 0xc0(%rsp)
movq 0xc0(%rsp), %rax
movq %rax, 0xc8(%rsp)
movq 0xc8(%rsp), %rax
movq %rax, 0xb8(%rsp)
leaq -0x1f29e(%rip), %rcx # 0xd28f0
movq %rcx, (%rax)
movb $0x1, %sil
leaq -0x1e8cb(%rip), %rcx # 0xd32d0
leaq -0x1edc2(%rip), %rdx # 0xd2de0
testb $0x1, %sil
cmovneq %rdx, %rcx
movq %rcx, 0x8(%rax)
movq 0xb8(%rsp), %rax
movq %rax, %rcx
addq $0x48, %rcx
movq %rcx, 0x40(%rsp)
movq %rax, %rcx
addq $0x18, %rcx
movq %rcx, 0x48(%rsp)
movq %rax, %rcx
addq $0x85, %rcx
movq %rcx, 0x50(%rsp)
movq %rax, %rcx
addq $0x50, %rcx
movq %rcx, 0x58(%rsp)
movq %rax, %rcx
addq $0x58, %rcx
movq %rcx, 0x60(%rsp)
movq %rax, %rcx
addq $0x60, %rcx
movq %rcx, 0x68(%rsp)
movq %rax, %rcx
addq $0x68, %rcx
movq %rcx, 0x70(%rsp)
movq %rax, %rcx
addq $0x86, %rcx
movq %rcx, 0x78(%rsp)
movq %rax, %rcx
addq $0x28, %rcx
movq %rcx, 0x80(%rsp)
movq %rax, %rcx
addq $0x70, %rcx
movq %rcx, 0x88(%rsp)
movq %rax, %rcx
addq $0x80, %rcx
movq %rcx, 0x90(%rsp)
movq %rax, %rcx
addq $0x87, %rcx
movq %rcx, 0x98(%rsp)
movq %rax, %rcx
addq $0x78, %rcx
movq %rcx, 0xa0(%rsp)
movq %rax, %rcx
addq $0x38, %rcx
movq %rcx, 0xa8(%rsp)
addq $0x10, %rax
movq %rax, 0xb0(%rsp)
movq 0x40(%rsp), %rdi
movq 0xd8(%rsp), %rsi
callq 0xdaa00
movq 0xd0(%rsp), %rsi
movq 0x48(%rsp), %rdi
callq 0xf20c0
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq 0xb0(%rsp), %rdi
callq 0xf2100
movq 0xe0(%rsp), %rdi
movq 0xb0(%rsp), %rsi
callq 0xf2120
movq 0xb0(%rsp), %rdi
callq 0xf2180
movq 0x50(%rsp), %rdi
callq 0x942d0
testb $0x1, %al
jne 0xf1d41
movq 0xb8(%rsp), %rax
movb $0x0, 0x84(%rax)
movq 0xb8(%rsp), %rsi
movq 0x50(%rsp), %rdi
callq 0xd0970
jmp 0xf1d16
jmp 0xf1d18
xorl %eax, %eax
testb %al, %al
jne 0xf1d41
jmp 0xf1d20
movb $0x1, %al
testb %al, %al
jne 0xf20a6
jmp 0xf1d2c
movl $0x2, %eax
movl %eax, 0x3c(%rsp)
jmp 0xf1d37
movl 0x3c(%rsp), %eax
movl %eax, 0x38(%rsp)
jmp 0xf1d59
movq 0x50(%rsp), %rdi
callq 0x91ef0
xorl %eax, %eax
movl %eax, 0x34(%rsp)
movl 0x34(%rsp), %eax
movl %eax, 0x38(%rsp)
movl 0x38(%rsp), %eax
cmpl $0x0, %eax
movl %eax, 0x30(%rsp)
je 0xf1d73
movl 0x30(%rsp), %eax
movl %eax, 0x2c(%rsp)
jmp 0xf2066
movq 0x58(%rsp), %rdi
callq 0x924b0
movq 0x48(%rsp), %rcx
movq 0x70(%rsp), %rax
movq 0x80(%rsp), %rdi
movq 0xb0(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq %rcx, (%rax)
callq 0xf2250
movq 0x80(%rsp), %rdi
callq 0xf2290
testb $0x1, %al
jne 0xf1e27
movq 0xb8(%rsp), %rax
movb $0x1, 0x84(%rax)
movq 0xb8(%rsp), %rsi
movq 0x80(%rsp), %rdi
callq 0xd09c0
movq %rax, 0x20(%rsp)
jmp 0xf1de0
movq 0x20(%rsp), %rax
movq %rax, %rdi
callq *(%rax)
jmp 0xf1dec
jmp 0xf1dee
xorl %eax, %eax
testb %al, %al
jne 0xf1e27
jmp 0xf1df6
movb $0x1, %al
testb %al, %al
jne 0xf20a6
jmp 0xf1e02
jmp 0xf1ee8
movq %rdx, %rcx
movq 0x88(%rsp), %rdx
movq %rax, %rsi
movq 0x90(%rsp), %rax
movq %rsi, (%rdx)
movl %ecx, (%rax)
jmp 0xf1efa
movq 0x80(%rsp), %rdi
callq 0xf2370
jmp 0xf1e36
movq 0x98(%rsp), %rdi
callq 0xf23f0
movq 0x70(%rsp), %rdi
movq 0x78(%rsp), %rsi
callq 0xf2230
movq %rax, 0x18(%rsp)
movq 0x68(%rsp), %rsi
movq 0xb0(%rsp), %rdi
movq 0x18(%rsp), %rax
movq %rax, (%rsi)
callq 0xf2210
movq 0x60(%rsp), %rdi
movq %rax, (%rdi)
callq 0xf2400
testb $0x1, %al
jne 0xf1edc
movq 0xb8(%rsp), %rax
movb $0x2, 0x84(%rax)
movq 0xb8(%rsp), %rsi
movq 0x60(%rsp), %rdi
callq 0xd0a10
jmp 0xf1ea5
jmp 0xf1ea7
jmp 0xf1ea9
xorl %eax, %eax
testb %al, %al
jne 0xf1edc
jmp 0xf1eb1
movb $0x1, %al
testb %al, %al
jne 0xf20a6
jmp 0xf1ebd
jmp 0xf1ee6
movq %rdx, %rcx
movq 0x88(%rsp), %rdx
movq %rax, %rsi
movq 0x90(%rsp), %rax
movq %rsi, (%rdx)
movl %ecx, (%rax)
jmp 0xf1efa
movq 0x60(%rsp), %rdi
callq 0xf2430
jmp 0xf1ee8
movq 0x80(%rsp), %rdi
callq 0xf2440
jmp 0xf2010
movq 0x80(%rsp), %rdi
callq 0xf2440
jmp 0xf1f09
movq 0x88(%rsp), %rax
movq (%rax), %rdi
callq 0x8b640
leaq 0x118(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x8e270
movq 0x58(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x8db00
movq 0x10(%rsp), %rdi
callq 0x8d3f0
callq 0x92480
jmp 0xf1f4b
jmp 0xf1f4d
movq 0xa8(%rsp), %rsi
movq 0xb0(%rsp), %rdi
movq 0x58(%rsp), %rax
movq 0x48(%rsp), %rcx
movq %rcx, (%rsi)
movq %rax, 0x8(%rsi)
callq 0xf24e0
movq 0xa0(%rsp), %rdi
movq %rax, (%rdi)
callq 0xf2500
testb $0x1, %al
jne 0xf2001
movq 0xb8(%rsp), %rax
movb $0x3, 0x84(%rax)
movq 0xb8(%rsp), %rsi
movq 0xa0(%rsp), %rdi
callq 0xd0a50
jmp 0xf1fad
jmp 0xf1faf
jmp 0xf1fb1
xorl %eax, %eax
testb %al, %al
jne 0xf2001
jmp 0xf1fb9
movb $0x1, %al
testb %al, %al
jne 0xf20a6
jmp 0xf1fc5
jmp 0xf200e
movq %rdx, %rcx
movq 0x88(%rsp), %rdx
movq %rax, %rsi
movq 0x90(%rsp), %rax
movq %rsi, (%rdx)
movl %ecx, (%rax)
jmp 0xf203f
movq %rdx, %rcx
movq 0x88(%rsp), %rdx
movq %rax, %rsi
movq 0x90(%rsp), %rax
movq %rsi, (%rdx)
movl %ecx, (%rax)
jmp 0xf203f
movq 0xa0(%rsp), %rdi
callq 0xf2530
jmp 0xf2010
movq 0x58(%rsp), %rdi
callq 0x8d3f0
movl $0x2, %eax
cmpl $0x0, %eax
movl %eax, 0xc(%rsp)
je 0xf2032
movl 0xc(%rsp), %eax
movl %eax, 0x2c(%rsp)
jmp 0xf2066
movq 0xb0(%rsp), %rdi
callq 0xf2540
movq 0x58(%rsp), %rdi
callq 0x8d3f0
movq 0x88(%rsp), %rax
movq (%rax), %rdi
callq 0x8b640
movq 0xb0(%rsp), %rdi
callq 0xf2550
movq 0x40(%rsp), %rdi
movl 0x2c(%rsp), %eax
movl %eax, 0x8(%rsp)
callq 0xd8bb0
movq 0xb8(%rsp), %rax
cmpq $0x0, %rax
je 0xf2098
movq 0xb8(%rsp), %rdi
movl $0x88, %esi
callq 0x8bbd0
movl 0x8(%rsp), %eax
testl %eax, %eax
je 0xf20a4
jmp 0xf20a2
jmp 0xf20a6
jmp 0xf20a6
jmp 0xf20a8
jmp 0xf20aa
movq 0xe8(%rsp), %rax
addq $0x1a8, %rsp # imm = 0x1A8
retq
nopw (%rax,%rax)
|
_ZN6unifex10_await_cpo3_fn12connect_implINS_5_task5_taskIvE4typeENS_17_with_query_value17_receiver_wrapperINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_4_seq19_successor_receiverIONSC_13schedule_taskENS7_7_senderISA_SC_S6_E4typeENS_12_async_scope9_receiverINSD_7_senderISF_SJ_E4typeEE4typeEE4typeEE4typeEEENS_6_await12_sender_taskIT0_E4typeET_SX_:
sub rsp, 1A8h
mov [rsp+1A8h+var_D8], rdx
mov [rsp+1A8h+var_D0], rsi
mov [rsp+1A8h+var_C8], rdi
mov rax, rdi
mov [rsp+1A8h+var_C0], rax
mov [rsp+1A8h+var_8], rdi
mov [rsp+1A8h+var_10], rsi
mov [rsp+1A8h+var_18], rdx
xor eax, eax
mov cl, 1
test cl, 1
mov [rsp+1A8h+var_B8], rax
jnz short loc_F1B55
mov rax, [rsp+1A8h+var_B8]
mov [rsp+1A8h+var_E0], rax
jmp short loc_F1B77
loc_F1B55:
mov edi, 88h; unsigned __int64
call __Znwm; operator new(ulong)
mov [rsp+1A8h+var_E8], rax
mov rax, [rsp+1A8h+var_E8]
mov [rsp+1A8h+var_E0], rax
loc_F1B77:
mov rax, [rsp+1A8h+var_E0]
mov [rsp+1A8h+var_F0], rax
lea rcx, _ZN6unifex10_await_cpo3_fn12connect_implINS_5_task5_taskIvE4typeENS_17_with_query_value17_receiver_wrapperINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_4_seq19_successor_receiverIONSC_13schedule_taskENS7_7_senderISA_SC_S6_E4typeENS_12_async_scope9_receiverINSD_7_senderISF_SJ_E4typeEE4typeEE4typeEE4typeEEENS_6_await12_sender_taskIT0_E4typeET_SX__resume; unifex::_await_cpo::_fn::connect_impl<unifex::_task::_task<void>::type,unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type>(unifex::_task::_task<void>::type,unifex::_await::_sender_task) [clone]
mov [rax], rcx
mov sil, 1
lea rcx, _ZN6unifex10_await_cpo3_fn12connect_implINS_5_task5_taskIvE4typeENS_17_with_query_value17_receiver_wrapperINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_4_seq19_successor_receiverIONSC_13schedule_taskENS7_7_senderISA_SC_S6_E4typeENS_12_async_scope9_receiverINSD_7_senderISF_SJ_E4typeEE4typeEE4typeEE4typeEEENS_6_await12_sender_taskIT0_E4typeET_SX__cleanup; unifex::_await_cpo::_fn::connect_impl<unifex::_task::_task<void>::type,unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type>(unifex::_task::_task<void>::type,unifex::_await::_sender_task) [clone]
lea rdx, _ZN6unifex10_await_cpo3_fn12connect_implINS_5_task5_taskIvE4typeENS_17_with_query_value17_receiver_wrapperINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_4_seq19_successor_receiverIONSC_13schedule_taskENS7_7_senderISA_SC_S6_E4typeENS_12_async_scope9_receiverINSD_7_senderISF_SJ_E4typeEE4typeEE4typeEE4typeEEENS_6_await12_sender_taskIT0_E4typeET_SX__destroy; unifex::_await_cpo::_fn::connect_impl<unifex::_task::_task<void>::type,unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type>(unifex::_task::_task<void>::type,unifex::_await::_sender_task) [clone]
test sil, 1
cmovnz rcx, rdx
mov [rax+8], rcx
mov rax, [rsp+1A8h+var_F0]
mov rcx, rax
add rcx, 48h ; 'H'
mov [rsp+1A8h+var_168], rcx
mov rcx, rax
add rcx, 18h
mov [rsp+1A8h+var_160], rcx
mov rcx, rax
add rcx, 85h
mov [rsp+1A8h+var_158], rcx
mov rcx, rax
add rcx, 50h ; 'P'
mov [rsp+1A8h+var_150], rcx
mov rcx, rax
add rcx, 58h ; 'X'
mov [rsp+1A8h+var_148], rcx
mov rcx, rax
add rcx, 60h ; '`'
mov [rsp+1A8h+var_140], rcx
mov rcx, rax
add rcx, 68h ; 'h'
mov [rsp+1A8h+var_138], rcx
mov rcx, rax
add rcx, 86h
mov [rsp+1A8h+var_130], rcx
mov rcx, rax
add rcx, 28h ; '('
mov [rsp+1A8h+var_128], rcx
mov rcx, rax
add rcx, 70h ; 'p'
mov [rsp+1A8h+var_120], rcx
mov rcx, rax
add rcx, 80h
mov [rsp+1A8h+var_118], rcx
mov rcx, rax
add rcx, 87h
mov [rsp+1A8h+var_110], rcx
mov rcx, rax
add rcx, 78h ; 'x'
mov [rsp+1A8h+var_108], rcx
mov rcx, rax
add rcx, 38h ; '8'
mov [rsp+1A8h+var_100], rcx
add rax, 10h
mov [rsp+1A8h+var_F8], rax
mov rdi, [rsp+1A8h+var_168]
mov rsi, [rsp+1A8h+var_D0]
call _ZN6unifex5_task5_taskIvE4typeC2EOS3_; unifex::_task::_task<void>::type::type(unifex::_task::_task<void>::type&&)
mov rsi, [rsp+1A8h+var_D8]
mov rdi, [rsp+1A8h+var_160]
call _ZN6unifex17_with_query_value17_receiver_wrapperINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_4_seq19_successor_receiverIONS5_13schedule_taskENS0_7_senderIS3_S5_NS_5_task5_taskIvE4typeEE4typeENS_12_async_scope9_receiverINS6_7_senderIS8_SG_E4typeEE4typeEE4typeEE4typeC2EOSR_; unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type::type(unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>&&)
mov rsi, [rsp+1A8h+var_168]
mov rdx, [rsp+1A8h+var_160]
mov rdi, [rsp+1A8h+var_F8]
call _ZN6unifex6_await12_sender_taskINS_17_with_query_value17_receiver_wrapperINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_4_seq19_successor_receiverIONS7_13schedule_taskENS2_7_senderIS5_S7_NS_5_task5_taskIvE4typeEE4typeENS_12_async_scope9_receiverINS8_7_senderISA_SI_E4typeEE4typeEE4typeEE4typeEE4type12promise_typeC2ISG_EERT_RST_; unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type>::type::promise_type::promise_type<unifex::_task::_task<void>>(unifex::_task::_task<void> &,unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>&)
mov rdi, [rsp+1A8h+var_C8]
mov rsi, [rsp+1A8h+var_F8]
call _ZN6unifex6_await12_sender_taskINS_17_with_query_value17_receiver_wrapperINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_4_seq19_successor_receiverIONS7_13schedule_taskENS2_7_senderIS5_S7_NS_5_task5_taskIvE4typeEE4typeENS_12_async_scope9_receiverINS8_7_senderISA_SI_E4typeEE4typeEE4typeEE4typeEE4type12promise_type17get_return_objectEv; unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type>::type::promise_type::get_return_object(void)
mov rdi, [rsp+1A8h+var_F8]
call _ZN6unifex6_await12_sender_taskINS_17_with_query_value17_receiver_wrapperINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_4_seq19_successor_receiverIONS7_13schedule_taskENS2_7_senderIS5_S7_NS_5_task5_taskIvE4typeEE4typeENS_12_async_scope9_receiverINS8_7_senderISA_SI_E4typeEE4typeEE4typeEE4typeEE4type12promise_type15initial_suspendEv; unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type>::type::promise_type::initial_suspend(void)
mov rdi, [rsp+1A8h+var_158]; this
call __ZNKSt7__n486114suspend_always11await_readyEv; std::__n4861::suspend_always::await_ready(void)
test al, 1
jnz short loc_F1D41
mov rax, [rsp+1A8h+var_F0]
mov byte ptr [rax+84h], 0
mov rsi, [rsp+1A8h+var_F0]
mov rdi, [rsp+1A8h+var_158]
call sub_D0970
jmp short $+2
loc_F1D16:
jmp short $+2
loc_F1D18:
xor eax, eax
test al, al
jnz short loc_F1D41
jmp short $+2
loc_F1D20:
mov al, 1
test al, al
jnz loc_F20A6
jmp short $+2
loc_F1D2C:
mov eax, 2
mov [rsp+1A8h+var_16C], eax
jmp short $+2
loc_F1D37:
mov eax, [rsp+1A8h+var_16C]
mov [rsp+1A8h+var_170], eax
jmp short loc_F1D59
loc_F1D41:
mov rdi, [rsp+1A8h+var_158]; this
call __ZNKSt7__n486114suspend_always12await_resumeEv; std::__n4861::suspend_always::await_resume(void)
xor eax, eax
mov [rsp+1A8h+var_174], eax
mov eax, [rsp+1A8h+var_174]
mov [rsp+1A8h+var_170], eax
loc_F1D59:
mov eax, [rsp+1A8h+var_170]
cmp eax, 0
mov [rsp+1A8h+var_178], eax
jz short loc_F1D73
mov eax, [rsp+1A8h+var_178]
mov [rsp+1A8h+var_17C], eax
jmp loc_F2066
loc_F1D73:
mov rdi, [rsp+1A8h+var_150]; this
call __ZNSt15__exception_ptr13exception_ptrC2Ev; std::__exception_ptr::exception_ptr::exception_ptr(void)
mov rcx, [rsp+1A8h+var_160]
mov rax, [rsp+1A8h+var_138]
mov rdi, [rsp+1A8h+var_128]
mov rsi, [rsp+1A8h+var_F8]
mov rdx, [rsp+1A8h+var_168]
mov [rax], rcx
call _ZN6unifex6_await12_sender_taskINS_17_with_query_value17_receiver_wrapperINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_4_seq19_successor_receiverIONS7_13schedule_taskENS2_7_senderIS5_S7_NS_5_task5_taskIvE4typeEE4typeENS_12_async_scope9_receiverINS8_7_senderISA_SI_E4typeEE4typeEE4typeEE4typeEE4type12promise_type15await_transformISG_EEDcOT_
mov rdi, [rsp+1A8h+var_128]
call _ZN6unifex5_task8_awaiterINS0_8_promiseIvE4typeENS_6_await12_sender_taskINS_17_with_query_value17_receiver_wrapperINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_4_seq19_successor_receiverIONSC_13schedule_taskENS7_7_senderISA_SC_NS0_5_taskIvE4typeEE4typeENS_12_async_scope9_receiverINSD_7_senderISF_SM_E4typeEE4typeEE4typeEE4typeEE4type12promise_typeEE4type11await_readyEv; unifex::_task::_awaiter<unifex::_task::_promise<void>::type,unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type>::type::promise_type>::type::await_ready(void)
test al, 1
jnz short loc_F1E27
mov rax, [rsp+1A8h+var_F0]
mov byte ptr [rax+84h], 1
mov rsi, [rsp+1A8h+var_F0]
mov rdi, [rsp+1A8h+var_128]
call sub_D09C0
mov [rsp+1A8h+var_188], rax
jmp short $+2
loc_F1DE0:
mov rax, [rsp+1A8h+var_188]
mov rdi, rax
call qword ptr [rax]
jmp short $+2
loc_F1DEC:
jmp short $+2
loc_F1DEE:
xor eax, eax
test al, al
jnz short loc_F1E27
jmp short $+2
loc_F1DF6:
mov al, 1
test al, al
jnz loc_F20A6
jmp short $+2
loc_F1E02:
jmp loc_F1EE8
mov rcx, rdx
mov rdx, [rsp+1A8h+var_120]
mov rsi, rax
mov rax, [rsp+1A8h+var_118]
mov [rdx], rsi
mov [rax], ecx
jmp loc_F1EFA
loc_F1E27:
mov rdi, [rsp+1A8h+var_128]
call _ZN6unifex5_task8_awaiterINS0_8_promiseIvE4typeENS_6_await12_sender_taskINS_17_with_query_value17_receiver_wrapperINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_4_seq19_successor_receiverIONSC_13schedule_taskENS7_7_senderISA_SC_NS0_5_taskIvE4typeEE4typeENS_12_async_scope9_receiverINSD_7_senderISF_SM_E4typeEE4typeEE4typeEE4typeEE4type12promise_typeEE4type12await_resumeEv; unifex::_task::_awaiter<unifex::_task::_promise<void>::type,unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type>::type::promise_type>::type::await_resume(void)
jmp short $+2
loc_F1E36:
mov rdi, [rsp+1A8h+var_110]
call _ZNK6unifex10_await_cpo3_fn11_comma_hackcvNS_5_unit4unitEEv; unifex::_await_cpo::_fn::_comma_hack::operator unifex::_unit::unit(void)
mov rdi, [rsp+1A8h+var_138]
mov rsi, [rsp+1A8h+var_130]
call _ZZN6unifex10_await_cpo3_fn12connect_implINS_5_task5_taskIvE4typeENS_17_with_query_value17_receiver_wrapperINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_4_seq19_successor_receiverIONSC_13schedule_taskENS7_7_senderISA_SC_S6_E4typeENS_12_async_scope9_receiverINSD_7_senderISF_SJ_E4typeEE4typeEE4typeEE4typeEEENS_6_await12_sender_taskIT0_E4typeET_SX_ENKUlONS_5_unit4unitEE_clES13_; unifex::_await_cpo::_fn::connect_impl<unifex::_task::_task<void>::type,unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type>(unifex::_task::_task<void>::type,unifex::_await::_sender_task)::{lambda(unifex::_unit::unit &&)#1}::operator()(unifex::_unit::unit)
mov [rsp+1A8h+var_190], rax
mov rsi, [rsp+1A8h+var_140]
mov rdi, [rsp+1A8h+var_F8]
mov rax, [rsp+1A8h+var_190]
mov [rsi], rax
call _ZN6unifex6_await12_sender_taskINS_17_with_query_value17_receiver_wrapperINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_4_seq19_successor_receiverIONS7_13schedule_taskENS2_7_senderIS5_S7_NS_5_task5_taskIvE4typeEE4typeENS_12_async_scope9_receiverINS8_7_senderISA_SI_E4typeEE4typeEE4typeEE4typeEE4type12promise_type11yield_valueIZZNS_10_await_cpo3_fn12connect_implISG_ST_EENS1_IT0_E4typeET_S11_ENKUlONS_5_unit4unitEE_clES17_EUlvE_EEDaOS14_
mov rdi, [rsp+1A8h+var_148]
mov [rdi], rax
call _ZZN6unifex6_await12_sender_taskINS_17_with_query_value17_receiver_wrapperINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_4_seq19_successor_receiverIONS7_13schedule_taskENS2_7_senderIS5_S7_NS_5_task5_taskIvE4typeEE4typeENS_12_async_scope9_receiverINS8_7_senderISA_SI_E4typeEE4typeEE4typeEE4typeEE4type12promise_type11yield_valueIZZNS_10_await_cpo3_fn12connect_implISG_ST_EENS1_IT0_E4typeET_S11_ENKUlONS_5_unit4unitEE_clES17_EUlvE_EEDaOS14_EN7awaiter11await_readyEv
test al, 1
jnz short loc_F1EDC
mov rax, [rsp+1A8h+var_F0]
mov byte ptr [rax+84h], 2
mov rsi, [rsp+1A8h+var_F0]
mov rdi, [rsp+1A8h+var_148]
call sub_D0A10
jmp short $+2
loc_F1EA5:
jmp short $+2
loc_F1EA7:
jmp short $+2
loc_F1EA9:
xor eax, eax
test al, al
jnz short loc_F1EDC
jmp short $+2
loc_F1EB1:
mov al, 1
test al, al
jnz loc_F20A6
jmp short $+2
loc_F1EBD:
jmp short loc_F1EE6
mov rcx, rdx
mov rdx, [rsp+1A8h+var_120]
mov rsi, rax
mov rax, [rsp+1A8h+var_118]
mov [rdx], rsi
mov [rax], ecx
jmp short loc_F1EFA
loc_F1EDC:
mov rdi, [rsp+1A8h+var_148]
call _ZZN6unifex6_await12_sender_taskINS_17_with_query_value17_receiver_wrapperINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_4_seq19_successor_receiverIONS7_13schedule_taskENS2_7_senderIS5_S7_NS_5_task5_taskIvE4typeEE4typeENS_12_async_scope9_receiverINS8_7_senderISA_SI_E4typeEE4typeEE4typeEE4typeEE4type12promise_type11yield_valueIZZNS_10_await_cpo3_fn12connect_implISG_ST_EENS1_IT0_E4typeET_S11_ENKUlONS_5_unit4unitEE_clES17_EUlvE_EEDaOS14_EN7awaiter12await_resumeEv
loc_F1EE6:
jmp short $+2
loc_F1EE8:
mov rdi, [rsp+1A8h+var_128]
call _ZN6unifex5_task8_awaiterINS0_8_promiseIvE4typeENS_6_await12_sender_taskINS_17_with_query_value17_receiver_wrapperINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_4_seq19_successor_receiverIONSC_13schedule_taskENS7_7_senderISA_SC_NS0_5_taskIvE4typeEE4typeENS_12_async_scope9_receiverINSD_7_senderISF_SM_E4typeEE4typeEE4typeEE4typeEE4type12promise_typeEE4typeD2Ev; unifex::_task::_awaiter<unifex::_task::_promise<void>::type,unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type>::type::promise_type>::type::~type()
jmp loc_F2010
loc_F1EFA:
mov rdi, [rsp+1A8h+var_128]
call _ZN6unifex5_task8_awaiterINS0_8_promiseIvE4typeENS_6_await12_sender_taskINS_17_with_query_value17_receiver_wrapperINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_4_seq19_successor_receiverIONSC_13schedule_taskENS7_7_senderISA_SC_NS0_5_taskIvE4typeEE4typeENS_12_async_scope9_receiverINSD_7_senderISF_SM_E4typeEE4typeEE4typeEE4typeEE4type12promise_typeEE4typeD2Ev; unifex::_task::_awaiter<unifex::_task::_promise<void>::type,unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type>::type::promise_type>::type::~type()
jmp short $+2
loc_F1F09:
mov rax, [rsp+1A8h+var_120]
mov rdi, [rax]; void *
call ___cxa_begin_catch
lea rdi, [rsp+1A8h+var_90]
mov [rsp+1A8h+var_198], rdi
call __ZSt17current_exceptionv; std::current_exception(void)
mov rdi, [rsp+1A8h+var_150]
mov rsi, [rsp+1A8h+var_198]
call __ZNSt15__exception_ptr13exception_ptraSEOS0_; std::__exception_ptr::exception_ptr::operator=(std::__exception_ptr::exception_ptr&&)
mov rdi, [rsp+1A8h+var_198]; this
call __ZNSt15__exception_ptr13exception_ptrD2Ev; std::__exception_ptr::exception_ptr::~exception_ptr()
call ___cxa_end_catch
jmp short $+2
loc_F1F4B:
jmp short $+2
loc_F1F4D:
mov rsi, [rsp+1A8h+var_100]
mov rdi, [rsp+1A8h+var_F8]
mov rax, [rsp+1A8h+var_150]
mov rcx, [rsp+1A8h+var_160]
mov [rsi], rcx
mov [rsi+8], rax
call _ZN6unifex6_await12_sender_taskINS_17_with_query_value17_receiver_wrapperINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_4_seq19_successor_receiverIONS7_13schedule_taskENS2_7_senderIS5_S7_NS_5_task5_taskIvE4typeEE4typeENS_12_async_scope9_receiverINS8_7_senderISA_SI_E4typeEE4typeEE4typeEE4typeEE4type12promise_type11yield_valueIZNS_10_await_cpo3_fn12connect_implISG_ST_EENS1_IT0_E4typeET_S11_EUlvE_EEDaOS14_
mov rdi, [rsp+1A8h+var_108]
mov [rdi], rax
call _ZZN6unifex6_await12_sender_taskINS_17_with_query_value17_receiver_wrapperINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_4_seq19_successor_receiverIONS7_13schedule_taskENS2_7_senderIS5_S7_NS_5_task5_taskIvE4typeEE4typeENS_12_async_scope9_receiverINS8_7_senderISA_SI_E4typeEE4typeEE4typeEE4typeEE4type12promise_type11yield_valueIZNS_10_await_cpo3_fn12connect_implISG_ST_EENS1_IT0_E4typeET_S11_EUlvE_EEDaOS14_EN7awaiter11await_readyEv
test al, 1
jnz short loc_F2001
mov rax, [rsp+1A8h+var_F0]
mov byte ptr [rax+84h], 3
mov rsi, [rsp+1A8h+var_F0]
mov rdi, [rsp+1A8h+var_108]
call sub_D0A50
jmp short $+2
loc_F1FAD:
jmp short $+2
loc_F1FAF:
jmp short $+2
loc_F1FB1:
xor eax, eax
test al, al
jnz short loc_F2001
jmp short $+2
loc_F1FB9:
mov al, 1
test al, al
jnz loc_F20A6
jmp short $+2
loc_F1FC5:
jmp short loc_F200E
mov rcx, rdx
mov rdx, [rsp+1A8h+var_120]
mov rsi, rax
mov rax, [rsp+1A8h+var_118]
mov [rdx], rsi
mov [rax], ecx
jmp short loc_F203F
mov rcx, rdx
mov rdx, [rsp+1A8h+var_120]
mov rsi, rax
mov rax, [rsp+1A8h+var_118]
mov [rdx], rsi
mov [rax], ecx
jmp short loc_F203F
loc_F2001:
mov rdi, [rsp+1A8h+var_108]
call _ZZN6unifex6_await12_sender_taskINS_17_with_query_value17_receiver_wrapperINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_4_seq19_successor_receiverIONS7_13schedule_taskENS2_7_senderIS5_S7_NS_5_task5_taskIvE4typeEE4typeENS_12_async_scope9_receiverINS8_7_senderISA_SI_E4typeEE4typeEE4typeEE4typeEE4type12promise_type11yield_valueIZNS_10_await_cpo3_fn12connect_implISG_ST_EENS1_IT0_E4typeET_S11_EUlvE_EEDaOS14_EN7awaiter12await_resumeEv
loc_F200E:
jmp short $+2
loc_F2010:
mov rdi, [rsp+1A8h+var_150]; this
call __ZNSt15__exception_ptr13exception_ptrD2Ev; std::__exception_ptr::exception_ptr::~exception_ptr()
mov eax, 2
cmp eax, 0
mov [rsp+1A8h+var_19C], eax
jz short loc_F2032
mov eax, [rsp+1A8h+var_19C]
mov [rsp+1A8h+var_17C], eax
jmp short loc_F2066
loc_F2032:
mov rdi, [rsp+1A8h+var_F8]
call _ZN6unifex6_await12_sender_taskINS_17_with_query_value17_receiver_wrapperINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_4_seq19_successor_receiverIONS7_13schedule_taskENS2_7_senderIS5_S7_NS_5_task5_taskIvE4typeEE4typeENS_12_async_scope9_receiverINS8_7_senderISA_SI_E4typeEE4typeEE4typeEE4typeEE4type12promise_type11return_voidEv; unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type>::type::promise_type::return_void(void)
loc_F203F:
mov rdi, [rsp+1A8h+var_150]; this
call __ZNSt15__exception_ptr13exception_ptrD2Ev; std::__exception_ptr::exception_ptr::~exception_ptr()
mov rax, [rsp+1A8h+var_120]
mov rdi, [rax]; void *
call ___cxa_begin_catch
mov rdi, [rsp+1A8h+var_F8]
call _ZN6unifex6_await12_sender_taskINS_17_with_query_value17_receiver_wrapperINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_4_seq19_successor_receiverIONS7_13schedule_taskENS2_7_senderIS5_S7_NS_5_task5_taskIvE4typeEE4typeENS_12_async_scope9_receiverINS8_7_senderISA_SI_E4typeEE4typeEE4typeEE4typeEE4type12promise_type19unhandled_exceptionEv; unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type>::type::promise_type::unhandled_exception(void)
loc_F2066:
mov rdi, [rsp+1A8h+var_168]
mov eax, [rsp+1A8h+var_17C]
mov [rsp+1A8h+var_1A0], eax
call _ZN6unifex5_task5_taskIvE4typeD2Ev; unifex::_task::_task<void>::type::~type()
mov rax, [rsp+1A8h+var_F0]
cmp rax, 0
jz short loc_F2098
mov rdi, [rsp+1A8h+var_F0]; void *
mov esi, 88h; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_F2098:
mov eax, [rsp+1A8h+var_1A0]
test eax, eax
jz short loc_F20A4
jmp short $+2
loc_F20A2:
jmp short loc_F20A6
loc_F20A4:
jmp short $+2
loc_F20A6:
jmp short $+2
loc_F20A8:
jmp short $+2
loc_F20AA:
mov rax, [rsp+1A8h+var_C0]
add rsp, 1A8h
retn
|
long long unifex::_await_cpo::_fn::connect_impl<unifex::_task::_task<void>::type,unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type>(
long long a1,
long long a2,
long long a3)
{
int v3; // edx
int v4; // ecx
int v5; // r8d
int v6; // r9d
int v8; // [rsp+0h] [rbp-1A8h]
void ( **v9)(_QWORD); // [rsp+20h] [rbp-188h]
std::__n4861::suspend_always *v10; // [rsp+50h] [rbp-158h]
_QWORD *v11; // [rsp+60h] [rbp-148h]
_QWORD *v12; // [rsp+70h] [rbp-138h]
long long v13; // [rsp+80h] [rbp-128h]
char *v14; // [rsp+B0h] [rbp-F8h]
char ( **v15)(long long, int, int, int, int, int); // [rsp+B8h] [rbp-F0h]
v15 = (char ( **)(long long, int, int, int, int, int))operator new(0x88uLL);
*v15 = unifex::_await_cpo::_fn::connect_impl<unifex::_task::_task<void>::type,unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type>;
v15[1] = (char ( *)(long long, int, int, int, int, int))unifex::_await_cpo::_fn::connect_impl<unifex::_task::_task<void>::type,unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type>;
v10 = (std::__n4861::suspend_always *)((char *)v15 + 133);
v11 = v15 + 11;
v12 = v15 + 13;
v13 = (long long)(v15 + 5);
v14 = (char *)(v15 + 2);
unifex::_task::_task<void>::type::type((long long *)v15 + 9, a2);
unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type::type(
v15 + 3,
a3);
unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type>::type::promise_type::promise_type<unifex::_task::_task<void>>(
v15 + 2,
v15 + 9,
v15 + 3);
unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type>::type::promise_type::get_return_object(
a1,
v15 + 2);
unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type>::type::promise_type::initial_suspend(v15 + 2);
if ( (std::__n4861::suspend_always::await_ready((std::__n4861::suspend_always *)((char *)v15 + 133)) & 1) != 0 )
{
std::__n4861::suspend_always::await_resume(v10);
std::__exception_ptr::exception_ptr::exception_ptr((std::__exception_ptr::exception_ptr *)(v15 + 10));
*v12 = v15 + 3;
unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type>::type::promise_type::await_transform<unifex::_task::_task<void>>(
v13,
v14,
v15 + 9);
if ( (unifex::_task::_awaiter<unifex::_task::_promise<void>::type,unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type>::type::promise_type>::type::await_ready(v13) & 1) != 0 )
{
unifex::_task::_awaiter<unifex::_task::_promise<void>::type,unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type>::type::promise_type>::type::await_resume(
v13,
(_DWORD)v14,
v3,
v4,
v5,
v6,
v8);
unifex::_await_cpo::_fn::_comma_hack::operator unifex::_unit::unit((char *)v15 + 135);
v15[12] = (char ( *)(long long, int, int, int, int, int))unifex::_await_cpo::_fn::connect_impl<unifex::_task::_task<void>::type,unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type>(unifex::_task::_task<void>::type,unifex::_await::_sender_task)::{lambda(unifex::_unit::unit &&)#1}::operator()(
v12,
(char *)v15 + 134);
*v11 = unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>::type>::type::promise_type::yield_value<unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>>::type unifex::_await_cpo::_fn::connect_impl<unifex::_task::_task<void>,unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task &&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>>::type>::type>::type>>(unifex::_task::_task<void>,unifex::_await_cpo::_fn::connect_impl)::{lambda(unifex::_unit::unit &&)#1}::operator() const(unifex::_unit::unit &)::{lambda(void)#1}>(v14);
if ( (ZZN6unifex6_await12_sender_taskINS_17_with_query_value17_receiver_wrapperINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_4_seq19_successor_receiverIONS7_13schedule_taskENS2_7_senderIS5_S7_NS_5_task5_taskIvE4typeEE4typeENS_12_async_scope9_receiverINS8_7_senderISA_SI_E4typeEE4typeEE4typeEE4typeEE4type12promise_type11yield_valueIZZNS_10_await_cpo3_fn12connect_implISG_ST_EENS1_IT0_E4typeET_S11_ENKUlONS_5_unit4unitEE_clES17_EUlvE_EEDaOS14_EN7awaiter11await_readyEv() & 1) != 0 )
ZZN6unifex6_await12_sender_taskINS_17_with_query_value17_receiver_wrapperINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_4_seq19_successor_receiverIONS7_13schedule_taskENS2_7_senderIS5_S7_NS_5_task5_taskIvE4typeEE4typeENS_12_async_scope9_receiverINS8_7_senderISA_SI_E4typeEE4typeEE4typeEE4typeEE4type12promise_type11yield_valueIZZNS_10_await_cpo3_fn12connect_implISG_ST_EENS1_IT0_E4typeET_S11_ENKUlONS_5_unit4unitEE_clES17_EUlvE_EEDaOS14_EN7awaiter12await_resumeEv(v11);
*((_BYTE *)v15 + 132) = 2;
sub_D0A10((long long)v11, (long long)v15);
}
else
{
*((_BYTE *)v15 + 132) = 1;
v9 = (void ( **)(_QWORD))sub_D09C0(v13, (long long)v15);
(*v9)(v9);
}
}
else
{
*((_BYTE *)v15 + 132) = 0;
sub_D0970((long long)v10, (long long)v15);
}
return a1;
}
|
connect_impl<unifex::_task::_task<void>::type,unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type>::type>::type>::type>::type>:
SUB RSP,0x1a8
MOV qword ptr [RSP + 0xd0],RDX
MOV qword ptr [RSP + 0xd8],RSI
MOV qword ptr [RSP + 0xe0],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0xe8],RAX
MOV qword ptr [RSP + 0x1a0],RDI
MOV qword ptr [RSP + 0x198],RSI
MOV qword ptr [RSP + 0x190],RDX
XOR EAX,EAX
MOV CL,0x1
TEST CL,0x1
MOV qword ptr [RSP + 0xf0],RAX
JNZ 0x001f1b55
MOV RAX,qword ptr [RSP + 0xf0]
MOV qword ptr [RSP + 0xc8],RAX
JMP 0x001f1b77
LAB_001f1b55:
MOV EDI,0x88
CALL 0x0018c1d0
MOV qword ptr [RSP + 0xc0],RAX
MOV RAX,qword ptr [RSP + 0xc0]
MOV qword ptr [RSP + 0xc8],RAX
LAB_001f1b77:
MOV RAX,qword ptr [RSP + 0xc8]
MOV qword ptr [RSP + 0xb8],RAX
LEA RCX,[0x1d28f0]
MOV qword ptr [RAX],RCX
MOV SIL,0x1
LEA RCX,[0x1d32d0]
LEA RDX,[0x1d2de0]
TEST SIL,0x1
CMOVNZ RCX,RDX
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RSP + 0xb8]
MOV RCX,RAX
ADD RCX,0x48
MOV qword ptr [RSP + 0x40],RCX
MOV RCX,RAX
ADD RCX,0x18
MOV qword ptr [RSP + 0x48],RCX
MOV RCX,RAX
ADD RCX,0x85
MOV qword ptr [RSP + 0x50],RCX
MOV RCX,RAX
ADD RCX,0x50
MOV qword ptr [RSP + 0x58],RCX
MOV RCX,RAX
ADD RCX,0x58
MOV qword ptr [RSP + 0x60],RCX
MOV RCX,RAX
ADD RCX,0x60
MOV qword ptr [RSP + 0x68],RCX
MOV RCX,RAX
ADD RCX,0x68
MOV qword ptr [RSP + 0x70],RCX
MOV RCX,RAX
ADD RCX,0x86
MOV qword ptr [RSP + 0x78],RCX
MOV RCX,RAX
ADD RCX,0x28
MOV qword ptr [RSP + 0x80],RCX
MOV RCX,RAX
ADD RCX,0x70
MOV qword ptr [RSP + 0x88],RCX
MOV RCX,RAX
ADD RCX,0x80
MOV qword ptr [RSP + 0x90],RCX
MOV RCX,RAX
ADD RCX,0x87
MOV qword ptr [RSP + 0x98],RCX
MOV RCX,RAX
ADD RCX,0x78
MOV qword ptr [RSP + 0xa0],RCX
MOV RCX,RAX
ADD RCX,0x38
MOV qword ptr [RSP + 0xa8],RCX
ADD RAX,0x10
MOV qword ptr [RSP + 0xb0],RAX
MOV RDI,qword ptr [RSP + 0x40]
MOV RSI,qword ptr [RSP + 0xd8]
CALL 0x001daa00
MOV RSI,qword ptr [RSP + 0xd0]
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x001f20c0
MOV RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x48]
MOV RDI,qword ptr [RSP + 0xb0]
CALL 0x001f2100
MOV RDI,qword ptr [RSP + 0xe0]
MOV RSI,qword ptr [RSP + 0xb0]
CALL 0x001f2120
MOV RDI,qword ptr [RSP + 0xb0]
CALL 0x001f2180
MOV RDI,qword ptr [RSP + 0x50]
CALL 0x001942d0
TEST AL,0x1
JNZ 0x001f1d41
MOV RAX,qword ptr [RSP + 0xb8]
MOV byte ptr [RAX + 0x84],0x0
MOV RSI,qword ptr [RSP + 0xb8]
MOV RDI,qword ptr [RSP + 0x50]
CALL 0x001d0970
JMP 0x001f1d16
LAB_001f1d16:
JMP 0x001f1d18
LAB_001f1d18:
XOR EAX,EAX
TEST AL,AL
JNZ 0x001f1d41
JMP 0x001f1d20
LAB_001f1d20:
MOV AL,0x1
TEST AL,AL
JNZ 0x001f20a6
JMP 0x001f1d2c
LAB_001f1d2c:
MOV EAX,0x2
MOV dword ptr [RSP + 0x3c],EAX
JMP 0x001f1d37
LAB_001f1d37:
MOV EAX,dword ptr [RSP + 0x3c]
MOV dword ptr [RSP + 0x38],EAX
JMP 0x001f1d59
LAB_001f1d41:
MOV RDI,qword ptr [RSP + 0x50]
CALL 0x00191ef0
XOR EAX,EAX
MOV dword ptr [RSP + 0x34],EAX
MOV EAX,dword ptr [RSP + 0x34]
MOV dword ptr [RSP + 0x38],EAX
LAB_001f1d59:
MOV EAX,dword ptr [RSP + 0x38]
CMP EAX,0x0
MOV dword ptr [RSP + 0x30],EAX
JZ 0x001f1d73
MOV EAX,dword ptr [RSP + 0x30]
MOV dword ptr [RSP + 0x2c],EAX
JMP 0x001f2066
LAB_001f1d73:
MOV RDI,qword ptr [RSP + 0x58]
CALL 0x001924b0
MOV RCX,qword ptr [RSP + 0x48]
MOV RAX,qword ptr [RSP + 0x70]
MOV RDI,qword ptr [RSP + 0x80]
MOV RSI,qword ptr [RSP + 0xb0]
MOV RDX,qword ptr [RSP + 0x40]
MOV qword ptr [RAX],RCX
CALL 0x001f2250
MOV RDI,qword ptr [RSP + 0x80]
CALL 0x001f2290
TEST AL,0x1
JNZ 0x001f1e27
MOV RAX,qword ptr [RSP + 0xb8]
MOV byte ptr [RAX + 0x84],0x1
LAB_001f1dc4:
MOV RSI,qword ptr [RSP + 0xb8]
MOV RDI,qword ptr [RSP + 0x80]
CALL 0x001d09c0
LAB_001f1dd9:
MOV qword ptr [RSP + 0x20],RAX
JMP 0x001f1de0
LAB_001f1de0:
MOV RAX,qword ptr [RSP + 0x20]
MOV RDI,RAX
CALL qword ptr [RAX]
JMP 0x001f1dec
LAB_001f1dec:
JMP 0x001f1dee
LAB_001f1dee:
XOR EAX,EAX
TEST AL,AL
JNZ 0x001f1e27
JMP 0x001f1df6
LAB_001f1df6:
MOV AL,0x1
TEST AL,AL
JNZ 0x001f20a6
JMP 0x001f1e02
LAB_001f1e02:
JMP 0x001f1ee8
LAB_001f1e27:
MOV RDI,qword ptr [RSP + 0x80]
CALL 0x001f2370
JMP 0x001f1e36
LAB_001f1e36:
MOV RDI,qword ptr [RSP + 0x98]
CALL 0x001f23f0
MOV RDI,qword ptr [RSP + 0x70]
MOV RSI,qword ptr [RSP + 0x78]
CALL 0x001f2230
MOV qword ptr [RSP + 0x18],RAX
MOV RSI,qword ptr [RSP + 0x68]
MOV RDI,qword ptr [RSP + 0xb0]
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSI],RAX
CALL 0x001f2210
MOV RDI,qword ptr [RSP + 0x60]
MOV qword ptr [RDI],RAX
CALL 0x001f2400
TEST AL,0x1
JNZ 0x001f1edc
MOV RAX,qword ptr [RSP + 0xb8]
MOV byte ptr [RAX + 0x84],0x2
LAB_001f1e91:
MOV RSI,qword ptr [RSP + 0xb8]
MOV RDI,qword ptr [RSP + 0x60]
CALL 0x001d0a10
LAB_001f1ea3:
JMP 0x001f1ea5
LAB_001f1ea5:
JMP 0x001f1ea7
LAB_001f1ea7:
JMP 0x001f1ea9
LAB_001f1ea9:
XOR EAX,EAX
TEST AL,AL
JNZ 0x001f1edc
JMP 0x001f1eb1
LAB_001f1eb1:
MOV AL,0x1
TEST AL,AL
JNZ 0x001f20a6
JMP 0x001f1ebd
LAB_001f1ebd:
JMP 0x001f1ee6
LAB_001f1edc:
MOV RDI,qword ptr [RSP + 0x60]
CALL 0x001f2430
LAB_001f1ee6:
JMP 0x001f1ee8
LAB_001f1ee8:
MOV RDI,qword ptr [RSP + 0x80]
CALL 0x001f2440
JMP 0x001f2010
LAB_001f2010:
MOV RDI,qword ptr [RSP + 0x58]
CALL 0x0018d3f0
MOV EAX,0x2
CMP EAX,0x0
MOV dword ptr [RSP + 0xc],EAX
JZ 0x001f2032
MOV EAX,dword ptr [RSP + 0xc]
MOV dword ptr [RSP + 0x2c],EAX
JMP 0x001f2066
LAB_001f2032:
MOV RDI,qword ptr [RSP + 0xb0]
CALL 0x001f2540
LAB_001f203f:
MOV RDI,qword ptr [RSP + 0x58]
CALL 0x0018d3f0
MOV RAX,qword ptr [RSP + 0x88]
MOV RDI,qword ptr [RAX]
CALL 0x0018b640
MOV RDI,qword ptr [RSP + 0xb0]
CALL 0x001f2550
LAB_001f2066:
MOV RDI,qword ptr [RSP + 0x40]
MOV EAX,dword ptr [RSP + 0x2c]
MOV dword ptr [RSP + 0x8],EAX
CALL 0x001d8bb0
MOV RAX,qword ptr [RSP + 0xb8]
CMP RAX,0x0
JZ 0x001f2098
MOV RDI,qword ptr [RSP + 0xb8]
MOV ESI,0x88
CALL 0x0018bbd0
LAB_001f2098:
MOV EAX,dword ptr [RSP + 0x8]
TEST EAX,EAX
JZ 0x001f20a4
JMP 0x001f20a2
LAB_001f20a2:
JMP 0x001f20a6
LAB_001f20a4:
JMP 0x001f20a6
LAB_001f20a6:
JMP 0x001f20a8
LAB_001f20a8:
JMP 0x001f20aa
LAB_001f20aa:
MOV RAX,qword ptr [RSP + 0xe8]
ADD RSP,0x1a8
RET
|
/* WARNING: Removing unreachable block (ram,0x001f1ebb) */
/* WARNING: Removing unreachable block (ram,0x001f1b43) */
/* WARNING: Removing unreachable block (ram,0x001f1d2a) */
/* WARNING: Removing unreachable block (ram,0x001f2032) */
/* WARNING: Removing unreachable block (ram,0x001f1e00) */
/* WARNING: Removing unreachable block (ram,0x001f1d66) */
/* WARNING: Removing unreachable block (ram,0x001f20a4) */
/* unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,
unifex::_inline_sched::scheduler,
unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&,
unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler,
unifex::_task::_task<void>::type>::type,
unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,
unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler,
unifex::_task::_task<void>::type>::type>::type>::type>::type>::type>::type
unifex::_await_cpo::_fn::connect_impl<unifex::_task::_task<void>::type,
unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,
unifex::_inline_sched::scheduler,
unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&,
unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler,
unifex::_task::_task<void>::type>::type,
unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,
unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler,
unifex::_task::_task<void>::type>::type>::type>::type>::type>::type>(unifex::_task::_task<void>::type,
unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,
unifex::_inline_sched::scheduler,
unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&,
unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler,
unifex::_task::_task<void>::type>::type,
unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,
unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler,
unifex::_task::_task<void>::type>::type>::type>::type>::type>::type) */
_fn * __thiscall
unifex::_await_cpo::_fn::
connect_impl<unifex::_task::_task<void>::type,unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type>::type>::type>::type>::type>
(_fn *this,type *param_2,type *param_3)
{
ulong uVar1;
int8 *puVar2;
int8 uVar3;
type *this_00;
type *this_01;
type *this_02;
puVar2 = (int8 *)operator_new(0x88);
*puVar2 =
connect_impl<unifex::_task::_task<void>::type,unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type>::type>::type>::type>::type>
;
puVar2[1] =
connect_impl<unifex::_task::_task<void>::type,unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type>::type>::type>::type>::type>
;
this_00 = (type *)(puVar2 + 9);
this_01 = (type *)(puVar2 + 3);
this_02 = (type *)(puVar2 + 5);
unifex::_task::_task<void>::type::type(this_00,param_2);
unifex::_with_query_value::
_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type>::type>::type>::type>
::type::type(this_01,param_3);
_await::
_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type>::type>::type>::type>::type>
::type::promise_type::promise_type<unifex::_task::_task<void>::type>
((promise_type *)(puVar2 + 2),this_00,this_01);
_await::
_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type>::type>::type>::type>::type>
::type::promise_type::get_return_object();
_await::
_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type>::type>::type>::type>::type>
::type::promise_type::initial_suspend();
uVar1 = std::__n4861::suspend_always::await_ready();
if ((uVar1 & 1) == 0) {
*(int1 *)((long)puVar2 + 0x84) = 0;
FUN_001d0970((long)puVar2 + 0x85,puVar2);
}
else {
std::__n4861::suspend_always::await_resume();
std::__exception_ptr::exception_ptr::exception_ptr((exception_ptr *)(puVar2 + 10));
*(type **)(puVar2 + 0xd) = this_01;
_await::
_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type>::type>::type>::type>::type>
::type::promise_type::await_transform<unifex::_task::_task<void>::type>(this_02);
uVar1 = unifex::_task::
_awaiter<unifex::_task::_promise<void>::type,unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type>::type>::type>::type>::type>::type::promise_type>
::type::await_ready();
if ((uVar1 & 1) == 0) {
*(int1 *)((long)puVar2 + 0x84) = 1;
/* try { // try from 001f1dc4 to 001f1dd8 has its CatchHandler @ 001f1e07 */
puVar2 = (int8 *)FUN_001d09c0(this_02,puVar2);
(*(code *)*puVar2)(puVar2);
}
else {
/* try { // try from 001f1e27 to 001f1e33 has its CatchHandler @ 001f1e07 */
unifex::_task::
_awaiter<unifex::_task::_promise<void>::type,unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type>::type>::type>::type>::type>::type::promise_type>
::type::await_resume((type *)this_02);
_comma_hack::operator_cast_to_unit((_comma_hack *)((long)puVar2 + 0x87));
uVar3 = connect_impl<unifex::_task::_task<void>::type,unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type>::type>::type>::type>::type>(unifex::_task::_task<void>::type,unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type>::type>::type>::type>::type)
::{lambda(unifex::_unit::unit&&)#1}::operator()
((_lambda_unifex___unit__unit____1_ *)(puVar2 + 0xd),
(unit *)((long)puVar2 + 0x86));
puVar2[0xc] = uVar3;
uVar3 = _await::
_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type>::type>::type>::type>::type>
::type::promise_type::operator()
((promise_type *)(puVar2 + 2),(_lambda___1_ *)(puVar2 + 0xc));
puVar2[0xb] = uVar3;
uVar1 = _await::
_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type>::type>::type>::type>::type>
::type::promise_type::
yield_value<unifex::_await_cpo::_fn::connect_impl<unifex::_task::_task<void>::type,unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type>::type>::type>::type>::type>(unifex::_task::_task<void>::type,unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unife...>::type)::{lambda(unifex::_unit::unit&&)#1}::operator()(unifex::_unit::unit&&)const::{lambda()#1}&&)
::awaiter::await_ready();
if ((uVar1 & 1) == 0) {
*(int1 *)((long)puVar2 + 0x84) = 2;
/* try { // try from 001f1e91 to 001f1ea2 has its CatchHandler @ 001f1ebf */
FUN_001d0a10(puVar2 + 0xb,puVar2);
}
else {
_await::
_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type>::type>::type>::type>::type>
::type::promise_type::
yield_value<unifex::_await_cpo::_fn::connect_impl<unifex::_task::_task<void>::type,unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type>::type>::type>::type>::type>(unifex::_task::_task<void>::type,unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unife...>::type)::{lambda(unifex::_unit::unit&&)#1}::operator()(unifex::_unit::unit&&)const::{lambda()#1}&&)
::awaiter::await_resume();
unifex::_task::
_awaiter<unifex::_task::_promise<void>::type,unifex::_await::_sender_task<unifex::_with_query_value::_receiver_wrapper<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_seq::_successor_receiver<unifex::_inline_sched::scheduler::schedule_task&&,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type,unifex::_async_scope::_receiver<unifex::_seq::_sender<unifex::_inline_sched::scheduler::schedule_task,unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type>::type>::type>::type>::type>::type::promise_type>
::type::~type((type *)this_02);
std::__exception_ptr::exception_ptr::~exception_ptr((exception_ptr *)(puVar2 + 10));
unifex::_task::_task<void>::type::~type(this_00);
if (puVar2 != (int8 *)0x0) {
operator_delete(puVar2,0x88);
}
}
}
}
return this;
}
|
|
59,680
|
coro::detail::sync_wait_event::set()
|
AlayaLite/build_O3/_deps/libcoro-src/src/sync_wait.cpp
|
auto sync_wait_event::set() noexcept -> void
{
// issue-270 100~ task's on a thread_pool within sync_wait(when_all(tasks)) can cause a deadlock/hang if using
// release/acquire or even seq_cst.
m_set.exchange(true, std::memory_order::seq_cst);
std::unique_lock<std::mutex> lk{m_mutex};
m_cv.notify_all();
}
|
O3
|
cpp
|
coro::detail::sync_wait_event::set():
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movb $0x1, %al
xchgb %al, 0x58(%rdi)
leaq 0x8(%rsp), %rdi
movq %rbx, (%rdi)
movb $0x0, 0x8(%rdi)
callq 0x5a64
leaq 0x8(%rsp), %r14
movb $0x1, 0x8(%r14)
addq $0x28, %rbx
movq %rbx, %rdi
callq 0x33f0
movq %r14, %rdi
callq 0x5a4e
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rdi
callq 0x4bee
|
_ZN4coro6detail15sync_wait_event3setEv:
push r14
push rbx
sub rsp, 18h
mov rbx, rdi
mov al, 1
xchg al, [rdi+58h]
lea rdi, [rsp+28h+var_20]
mov [rdi], rbx
mov byte ptr [rdi+8], 0
call _ZNSt11unique_lockISt5mutexE4lockEv; std::unique_lock<std::mutex>::lock(void)
lea r14, [rsp+28h+var_20]
mov byte ptr [r14+8], 1
add rbx, 28h ; '('
mov rdi, rbx; this
call __ZNSt18condition_variable10notify_allEv; std::condition_variable::notify_all(void)
mov rdi, r14
call _ZNSt11unique_lockISt5mutexED2Ev; std::unique_lock<std::mutex>::~unique_lock()
add rsp, 18h
pop rbx
pop r14
retn
mov rdi, rax
call __clang_call_terminate
|
long long coro::detail::sync_wait_event::set(coro::detail::sync_wait_event *this)
{
coro::detail::sync_wait_event *v2; // [rsp+8h] [rbp-20h] BYREF
char v3; // [rsp+10h] [rbp-18h]
*((_BYTE *)this + 88) = 1;
v2 = this;
v3 = 0;
std::unique_lock<std::mutex>::lock();
v3 = 1;
std::condition_variable::notify_all((coro::detail::sync_wait_event *)((char *)this + 40));
return std::unique_lock<std::mutex>::~unique_lock(&v2);
}
|
set:
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
MOV AL,0x1
XCHG byte ptr [RDI + 0x58],AL
LEA RDI,[RSP + 0x8]
MOV qword ptr [RDI],RBX
MOV byte ptr [RDI + 0x8],0x0
LAB_001059bb:
CALL 0x00105a64
LEA R14,[RSP + 0x8]
MOV byte ptr [R14 + 0x8],0x1
ADD RBX,0x28
MOV RDI,RBX
CALL 0x001033f0
MOV RDI,R14
CALL 0x00105a4e
ADD RSP,0x18
POP RBX
POP R14
RET
|
/* coro::detail::sync_wait_event::set() */
void __thiscall coro::detail::sync_wait_event::set(sync_wait_event *this)
{
sync_wait_event *local_20;
int1 local_18;
LOCK();
this[0x58] = (sync_wait_event)0x1;
UNLOCK();
local_18 = 0;
local_20 = this;
/* try { // try from 001059bb to 001059bf has its CatchHandler @ 001059e6 */
std::unique_lock<std::mutex>::lock();
local_18 = 1;
std::condition_variable::notify_all();
std::unique_lock<std::mutex>::~unique_lock((unique_lock<std::mutex> *)&local_20);
return;
}
|
|
59,681
|
my_rw_unlock
|
eloqsql/mysys/thr_rwlock.c
|
int my_rw_unlock(my_rw_lock_t *rwp)
{
DBUG_PRINT("rw_unlock",
("state: %d waiters: %d", rwp->state, rwp->waiters));
pthread_mutex_lock(&rwp->lock);
DBUG_ASSERT(rwp->state != 0);
if (rwp->state == -1) /* writer releasing */
{
my_rw_lock_assert_write_owner(rwp);
rwp->state= 0; /* mark as available */
#ifdef SAFE_MUTEX
rwp->write_thread= 0;
#endif
if ( rwp->waiters ) /* writers queued */
pthread_cond_signal( &rwp->writers );
else
pthread_cond_broadcast( &rwp->readers );
}
else
{
if ( --rwp->state == 0 && /* no more readers */
rwp->waiters)
pthread_cond_signal( &rwp->writers );
}
pthread_mutex_unlock( &rwp->lock );
return(0);
}
|
O3
|
c
|
my_rw_unlock:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x29220
movl 0x88(%rbx), %eax
cmpl $-0x1, %eax
je 0xa4514
decl %eax
movl %eax, 0x88(%rbx)
jne 0xa453b
cmpl $0x0, 0x8c(%rbx)
jne 0xa4527
jmp 0xa453b
movl $0x0, 0x88(%rbx)
cmpl $0x0, 0x8c(%rbx)
je 0xa4532
leaq 0x58(%rbx), %rdi
callq 0x295c0
jmp 0xa453b
leaq 0x28(%rbx), %rdi
callq 0x296f0
movq %rbx, %rdi
callq 0x291e0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
|
my_rw_unlock:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
call _pthread_mutex_lock
mov eax, [rbx+88h]
cmp eax, 0FFFFFFFFh
jz short loc_A4514
dec eax
mov [rbx+88h], eax
jnz short loc_A453B
cmp dword ptr [rbx+8Ch], 0
jnz short loc_A4527
jmp short loc_A453B
loc_A4514:
mov dword ptr [rbx+88h], 0
cmp dword ptr [rbx+8Ch], 0
jz short loc_A4532
loc_A4527:
lea rdi, [rbx+58h]
call _pthread_cond_signal
jmp short loc_A453B
loc_A4532:
lea rdi, [rbx+28h]
call _pthread_cond_broadcast
loc_A453B:
mov rdi, rbx
call _pthread_mutex_unlock
xor eax, eax
add rsp, 8
pop rbx
pop rbp
retn
|
long long my_rw_unlock(long long a1)
{
int v1; // eax
int v2; // eax
pthread_mutex_lock(a1);
v1 = *(_DWORD *)(a1 + 136);
if ( v1 == -1 )
{
*(_DWORD *)(a1 + 136) = 0;
if ( !*(_DWORD *)(a1 + 140) )
{
pthread_cond_broadcast(a1 + 40);
goto LABEL_8;
}
goto LABEL_6;
}
v2 = v1 - 1;
*(_DWORD *)(a1 + 136) = v2;
if ( !v2 && *(_DWORD *)(a1 + 140) )
LABEL_6:
pthread_cond_signal(a1 + 88);
LABEL_8:
pthread_mutex_unlock(a1);
return 0LL;
}
|
my_rw_unlock:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
CALL 0x00129220
MOV EAX,dword ptr [RBX + 0x88]
CMP EAX,-0x1
JZ 0x001a4514
DEC EAX
MOV dword ptr [RBX + 0x88],EAX
JNZ 0x001a453b
CMP dword ptr [RBX + 0x8c],0x0
JNZ 0x001a4527
JMP 0x001a453b
LAB_001a4514:
MOV dword ptr [RBX + 0x88],0x0
CMP dword ptr [RBX + 0x8c],0x0
JZ 0x001a4532
LAB_001a4527:
LEA RDI,[RBX + 0x58]
CALL 0x001295c0
JMP 0x001a453b
LAB_001a4532:
LEA RDI,[RBX + 0x28]
CALL 0x001296f0
LAB_001a453b:
MOV RDI,RBX
CALL 0x001291e0
XOR EAX,EAX
ADD RSP,0x8
POP RBX
POP RBP
RET
|
int8 my_rw_unlock(pthread_mutex_t *param_1)
{
int iVar1;
pthread_mutex_lock(param_1);
if (*(int *)((long)param_1 + 0x88) == -1) {
*(int4 *)((long)param_1 + 0x88) = 0;
if (*(int *)((long)param_1 + 0x8c) == 0) {
pthread_cond_broadcast((pthread_cond_t *)(param_1 + 1));
goto LAB_001a453b;
}
}
else {
iVar1 = *(int *)((long)param_1 + 0x88) + -1;
*(int *)((long)param_1 + 0x88) = iVar1;
if ((iVar1 != 0) || (*(int *)((long)param_1 + 0x8c) == 0)) goto LAB_001a453b;
}
pthread_cond_signal((pthread_cond_t *)((long)param_1 + 0x58));
LAB_001a453b:
pthread_mutex_unlock(param_1);
return 0;
}
|
|
59,682
|
hash_to_field
|
corpus-core[P]colibri-stateless/build_O2/_deps/blst-src/src/hash_to_field.c
|
static void hash_to_field(vec384 elems[], size_t nelems,
const unsigned char *aug, size_t aug_len,
const unsigned char *msg, size_t msg_len,
const unsigned char *DST, size_t DST_len)
{
size_t L = sizeof(vec384) + 128/8; /* ceil((ceil(log2(p)) + k) / 8) */
size_t len_in_bytes = L * nelems; /* divisible by 64, hurray! */
#if !defined(__STDC_VERSION__) || __STDC_VERSION__<199901 \
|| defined(__STDC_NO_VLA__)
limb_t *pseudo_random = alloca(len_in_bytes);
#else
limb_t pseudo_random[len_in_bytes/sizeof(limb_t)];
#endif
unsigned char *bytes;
vec768 elem;
aug_len = aug!=NULL ? aug_len : 0;
DST_len = DST!=NULL ? DST_len : 0;
expand_message_xmd((unsigned char *)pseudo_random, len_in_bytes,
aug, aug_len, msg, msg_len, DST, DST_len);
vec_zero(elem, sizeof(elem));
bytes = (unsigned char *)pseudo_random;
while (nelems--) {
limbs_from_be_bytes(elem, bytes, L);
bytes += L;
/*
* L-bytes block % P, output is in Montgomery domain...
*/
redc_mont_384(elems[0], elem, BLS12_381_P, p0);
mul_mont_384(elems[0], elems[0], BLS12_381_RRRR, BLS12_381_P, p0);
elems++;
}
}
|
O2
|
c
|
hash_to_field:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10(%rbp), %rax
shlq $0x6, %rsi
movq %rsp, %r15
subq %rsi, %r15
movq %r15, %rsp
testq %rdx, %rdx
cmoveq %rdx, %rcx
movq %rax, %r10
testq %rax, %rax
je 0x5c1bb
movq 0x18(%rbp), %r10
movq %r15, %rdi
pushq %r10
pushq %rax
callq 0x50c49
popq %rax
popq %rcx
leaq -0x90(%rbp), %rdi
pushq $0x60
popq %rsi
callq 0x50ea6
leaq 0x23ad2(%rip), %r12 # 0x7fcb0
subq $0x1, %rbx
jb 0x5c236
leaq -0x90(%rbp), %r13
movq %r13, %rdi
movq %r15, %rsi
pushq $0x40
popq %rdx
callq 0x5abe7
addq $0x40, %r15
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
movabsq $-0x760c000300030003, %r13 # imm = 0x89F3FFFCFFFCFFFD
movq %r13, %rcx
callq 0x68a20
movq %r14, %rdi
movq %r14, %rsi
leaq 0x2497b(%rip), %rdx # 0x80ba0
movq %r12, %rcx
movq %r13, %r8
callq 0x69120
addq $0x30, %r14
jmp 0x5c1de
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
hash_to_field:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov rbx, rsi
mov r14, rdi
mov rax, [rbp+arg_0]
shl rsi, 6
mov r15, rsp
sub r15, rsi
mov rsp, r15
test rdx, rdx
cmovz rcx, rdx
mov r10, rax
test rax, rax
jz short loc_5C1BB
mov r10, [rbp+arg_8]
loc_5C1BB:
mov rdi, r15
push r10
push rax
call expand_message_xmd
pop rax
pop rcx
lea rdi, [rbp+var_90]
push 60h ; '`'
pop rsi
call vec_zero
lea r12, BLS12_381_P
loc_5C1DE:
sub rbx, 1
jb short loc_5C236
lea r13, [rbp+var_90]
mov rdi, r13
mov rsi, r15
push 40h ; '@'
pop rdx
call limbs_from_be_bytes
add r15, 40h ; '@'
mov rdi, r14
mov rsi, r13
mov rdx, r12
mov r13, 89F3FFFCFFFCFFFDh
mov rcx, r13
call redc_mont_384
mov rdi, r14
mov rsi, r14
lea rdx, BLS12_381_RRRR
mov rcx, r12
mov r8, r13
call mul_mont_384
add r14, 30h ; '0'
jmp short loc_5C1DE
loc_5C236:
lea rsp, [rbp-28h]
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
// bad sp value at call has been detected, the output may be wrong!
long long hash_to_field(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
_QWORD *a7,
unsigned long long a8)
{
long long v8; // rbx
long long v10; // rsi
unsigned __int8 *v11; // r15
unsigned long long v12; // r10
long long result; // rax
_BYTE v15[144]; // [rsp+0h] [rbp-90h] BYREF
v8 = a2;
v10 = a2 << 6;
v11 = &v15[-v10];
if ( !a3 )
a4 = 0LL;
v12 = (unsigned long long)a7;
if ( a7 )
v12 = a8;
expand_message_xmd((long long)&v15[-v10], v10, a3, a4, a5, a6, a7, v12);
result = vec_zero((long long)v15, 0x60uLL);
while ( v8-- != 0 )
{
limbs_from_be_bytes((long long)v15, v11, 64LL);
v11 += 64;
redc_mont_384(a1, v15, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
result = mul_mont_384(a1, a1, &BLS12_381_RRRR, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
a1 += 48LL;
}
return result;
}
|
hash_to_field:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV RBX,RSI
MOV R14,RDI
MOV RAX,qword ptr [RBP + 0x10]
SHL RSI,0x6
MOV R15,RSP
SUB R15,RSI
MOV RSP,R15
TEST RDX,RDX
CMOVZ RCX,RDX
MOV R10,RAX
TEST RAX,RAX
JZ 0x0015c1bb
MOV R10,qword ptr [RBP + 0x18]
LAB_0015c1bb:
MOV RDI,R15
PUSH R10
PUSH RAX
CALL 0x00150c49
POP RAX
POP RCX
LEA RDI,[RBP + -0x90]
PUSH 0x60
POP RSI
CALL 0x00150ea6
LEA R12,[0x17fcb0]
LAB_0015c1de:
SUB RBX,0x1
JC 0x0015c236
LEA R13,[RBP + -0x90]
MOV RDI,R13
MOV RSI,R15
PUSH 0x40
POP RDX
CALL 0x0015abe7
ADD R15,0x40
MOV RDI,R14
MOV RSI,R13
MOV RDX,R12
MOV R13,-0x760c000300030003
MOV RCX,R13
CALL 0x00168a20
MOV RDI,R14
MOV RSI,R14
LEA RDX,[0x180ba0]
MOV RCX,R12
MOV R8,R13
CALL 0x00169120
ADD R14,0x30
JMP 0x0015c1de
LAB_0015c236:
LEA RSP,[RBP + -0x28]
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void hash_to_field(long param_1,long param_2,long param_3,int8 param_4,int8 param_5,
int8 param_6,long param_7,long param_8)
{
int8 uVar1;
int8 uVar2;
long lVar3;
int8 extraout_RDX;
long lVar4;
int1 *puVar5;
bool bVar6;
long alStack_b0 [3];
int1 local_98 [104];
lVar3 = param_2 * -0x40;
puVar5 = local_98 + lVar3;
if (param_3 == 0) {
param_4 = 0;
}
lVar4 = param_7;
if (param_7 != 0) {
lVar4 = param_8;
}
*(long *)(local_98 + lVar3 + -8) = lVar4;
alStack_b0[param_2 * -8 + 1] = param_7;
alStack_b0[param_2 * -8] = 0x15c1c6;
expand_message_xmd(puVar5,param_2 * 0x40,param_3,param_4);
uVar1 = *(int8 *)(local_98 + lVar3 + -8);
*(int8 *)(local_98 + lVar3 + -8) = 0x60;
uVar2 = *(int8 *)(local_98 + lVar3 + -8);
*(int8 *)(local_98 + lVar3 + -8) = 0x15c1d7;
vec_zero(local_98,uVar2,extraout_RDX,uVar1);
while (bVar6 = param_2 != 0, param_2 = param_2 + -1, bVar6) {
*(int8 *)(local_98 + lVar3 + -8) = 0x40;
uVar1 = *(int8 *)(local_98 + lVar3 + -8);
*(int8 *)(local_98 + lVar3 + -8) = 0x15c1f9;
limbs_from_be_bytes(local_98,puVar5,uVar1);
puVar5 = puVar5 + 0x40;
*(int8 *)(local_98 + lVar3 + -8) = 0x15c218;
redc_mont_384(param_1,local_98,BLS12_381_P,0x89f3fffcfffcfffd);
*(int8 *)(local_98 + lVar3 + -8) = 0x15c230;
mul_mont_384(param_1,param_1,BLS12_381_RRRR,BLS12_381_P,0x89f3fffcfffcfffd);
param_1 = param_1 + 0x30;
}
return;
}
|
|
59,683
|
js_parse_logical_and_or
|
bluesky950520[P]quickjs/quickjs.c
|
static __exception int js_parse_logical_and_or(JSParseState *s, int op,
int parse_flags)
{
int label1;
if (op == TOK_LAND) {
if (js_parse_expr_binary(s, 8, parse_flags))
return -1;
} else {
if (js_parse_logical_and_or(s, TOK_LAND, parse_flags))
return -1;
}
if (s->token.val == op) {
label1 = new_label(s);
for(;;) {
if (next_token(s))
return -1;
emit_op(s, OP_dup);
emit_goto(s, op == TOK_LAND ? OP_if_false : OP_if_true, label1);
emit_op(s, OP_drop);
if (op == TOK_LAND) {
if (js_parse_expr_binary(s, 8, parse_flags))
return -1;
} else {
if (js_parse_logical_and_or(s, TOK_LAND, parse_flags))
return -1;
}
if (s->token.val != op) {
if (s->token.val == TOK_DOUBLE_QUESTION_MARK)
return js_parse_error(s, "cannot mix ?? with && or ||");
break;
}
}
emit_label(s, label1);
}
return 0;
}
|
O1
|
c
|
js_parse_logical_and_or:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r14d
movl %esi, %r15d
movq %rdi, %rbx
cmpl $-0x5f, %esi
jne 0x6af75
movl $0x8, %esi
movl %r14d, %edx
callq 0x6b093
jmp 0x6af82
movl $0xffffffa1, %esi # imm = 0xFFFFFFA1
movl %r14d, %edx
callq 0x6af4d
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x6b073
xorl %ecx, %ecx
cmpl %r15d, 0x20(%rbx)
jne 0x6b073
movq 0x90(%rbx), %rdi
movl $0xffffffff, %esi # imm = 0xFFFFFFFF
callq 0x6bba5
movl %eax, %r12d
xorl %r13d, %r13d
cmpl $-0x5f, %r15d
setne %r13b
addl $0x69, %r13d
movl $0x138, %ebp # imm = 0x138
movq %rbx, %rdi
callq 0x5c5bb
testl %eax, %eax
jne 0x6b06e
movq 0x90(%rbx), %rax
leaq (%rax,%rbp), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0x11, %esi
callq 0x1a8bc
movq %rbx, %rdi
movl %r13d, %esi
movl %r12d, %edx
callq 0x6416f
movq 0x90(%rbx), %rax
leaq (%rax,%rbp), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0xe, %esi
callq 0x1a8bc
movq %rbx, %rdi
cmpl $-0x5f, %r15d
jne 0x6b03b
movl $0x8, %esi
movl %r14d, %edx
callq 0x6b093
jmp 0x6b048
movl $0xffffffa1, %esi # imm = 0xFFFFFFA1
movl %r14d, %edx
callq 0x6af4d
testl %eax, %eax
jne 0x6b06e
movl 0x20(%rbx), %eax
cmpl %r15d, %eax
je 0x6afc3
cmpl $-0x5a, %eax
jne 0x6b084
leaq 0x34869(%rip), %rsi # 0x9f8cd
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2f0d5
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
movl %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movl %r12d, %esi
callq 0x642dd
xorl %ecx, %ecx
jmp 0x6b073
|
js_parse_logical_and_or:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14d, edx
mov r15d, esi
mov rbx, rdi
cmp esi, 0FFFFFFA1h
jnz short loc_6AF75
mov esi, 8
mov edx, r14d
call js_parse_expr_binary
jmp short loc_6AF82
loc_6AF75:
mov esi, 0FFFFFFA1h
mov edx, r14d
call js_parse_logical_and_or
loc_6AF82:
mov ecx, 0FFFFFFFFh
test eax, eax
jnz loc_6B073
xor ecx, ecx
cmp [rbx+20h], r15d
jnz loc_6B073
mov rdi, [rbx+90h]
mov esi, 0FFFFFFFFh
call new_label_fd
mov r12d, eax
xor r13d, r13d
cmp r15d, 0FFFFFFA1h
setnz r13b
add r13d, 69h ; 'i'
mov ebp, 138h
loc_6AFC3:
mov rdi, rbx
call next_token
test eax, eax
jnz loc_6B06E
mov rax, [rbx+90h]
lea rdi, [rax+rbp]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 11h
call dbuf_putc
mov rdi, rbx
mov esi, r13d
mov edx, r12d
call emit_goto
mov rax, [rbx+90h]
lea rdi, [rax+rbp]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 0Eh
call dbuf_putc
mov rdi, rbx
cmp r15d, 0FFFFFFA1h
jnz short loc_6B03B
mov esi, 8
mov edx, r14d
call js_parse_expr_binary
jmp short loc_6B048
loc_6B03B:
mov esi, 0FFFFFFA1h
mov edx, r14d
call js_parse_logical_and_or
loc_6B048:
test eax, eax
jnz short loc_6B06E
mov eax, [rbx+20h]
cmp eax, r15d
jz loc_6AFC3
cmp eax, 0FFFFFFA6h
jnz short loc_6B084
lea rsi, aCannotMixWithO; "cannot mix ?? with && or ||"
mov rdi, rbx
xor eax, eax
call js_parse_error
loc_6B06E:
mov ecx, 0FFFFFFFFh
loc_6B073:
mov eax, ecx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_6B084:
mov rdi, rbx
mov esi, r12d
call emit_label
xor ecx, ecx
jmp short loc_6B073
|
long long js_parse_logical_and_or(
long long a1,
int a2,
unsigned int a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11)
{
char v11; // al
int v14; // eax
unsigned int v15; // ecx
long long v16; // rsi
long long v17; // rdx
long long v18; // rcx
long long v19; // r8
long long v20; // r9
int v21; // r12d
__m128 v22; // xmm4
__m128 v23; // xmm5
long long v24; // rax
long long v25; // rax
int v26; // eax
int v27; // eax
char v29; // [rsp-8h] [rbp-38h]
v29 = v11;
if ( a2 == -95 )
v14 = js_parse_expr_binary(a1, 8LL, a3);
else
v14 = js_parse_logical_and_or(a1, 4294967201LL, a3);
v15 = -1;
if ( !v14 )
{
v15 = 0;
if ( *(_DWORD *)(a1 + 32) == a2 )
{
v16 = 0xFFFFFFFFLL;
v21 = new_label_fd(*(_QWORD *)(a1 + 144), 0xFFFFFFFFLL);
do
{
if ( (unsigned int)next_token(a1, a4, a5, a6, a7, v22, v23, a10, a11, v16, v17, v18, v19, v20) )
return (unsigned int)-1;
v24 = *(_QWORD *)(a1 + 144);
*(_DWORD *)(v24 + 360) = *(_DWORD *)(v24 + 320);
dbuf_putc((_QWORD *)(v24 + 312), 17);
emit_goto(a1, (a2 != -95) + 105, v21);
v25 = *(_QWORD *)(a1 + 144);
*(_DWORD *)(v25 + 360) = *(_DWORD *)(v25 + 320);
dbuf_putc((_QWORD *)(v25 + 312), 14);
if ( a2 == -95 )
{
v16 = 8LL;
v26 = js_parse_expr_binary(a1, 8LL, a3);
}
else
{
v16 = 4294967201LL;
v26 = js_parse_logical_and_or(a1, 4294967201LL, a3);
}
if ( v26 )
return (unsigned int)-1;
v27 = *(_DWORD *)(a1 + 32);
}
while ( v27 == a2 );
if ( v27 == -90 )
{
js_parse_error(
(long long *)a1,
(long long)"cannot mix ?? with && or ||",
v17,
v18,
v19,
v20,
a4,
a5,
a6,
a7,
v22,
v23,
a10,
a11,
v29);
return (unsigned int)-1;
}
emit_label(a1, v21);
return 0;
}
}
return v15;
}
|
js_parse_logical_and_or:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14D,EDX
MOV R15D,ESI
MOV RBX,RDI
CMP ESI,-0x5f
JNZ 0x0016af75
MOV ESI,0x8
MOV EDX,R14D
CALL 0x0016b093
JMP 0x0016af82
LAB_0016af75:
MOV ESI,0xffffffa1
MOV EDX,R14D
CALL 0x0016af4d
LAB_0016af82:
MOV ECX,0xffffffff
TEST EAX,EAX
JNZ 0x0016b073
XOR ECX,ECX
CMP dword ptr [RBX + 0x20],R15D
JNZ 0x0016b073
MOV RDI,qword ptr [RBX + 0x90]
MOV ESI,0xffffffff
CALL 0x0016bba5
MOV R12D,EAX
XOR R13D,R13D
CMP R15D,-0x5f
SETNZ R13B
ADD R13D,0x69
MOV EBP,0x138
LAB_0016afc3:
MOV RDI,RBX
CALL 0x0015c5bb
TEST EAX,EAX
JNZ 0x0016b06e
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + RBP*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0x11
CALL 0x0011a8bc
MOV RDI,RBX
MOV ESI,R13D
MOV EDX,R12D
CALL 0x0016416f
MOV RAX,qword ptr [RBX + 0x90]
LEA RDI,[RAX + RBP*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0xe
CALL 0x0011a8bc
MOV RDI,RBX
CMP R15D,-0x5f
JNZ 0x0016b03b
MOV ESI,0x8
MOV EDX,R14D
CALL 0x0016b093
JMP 0x0016b048
LAB_0016b03b:
MOV ESI,0xffffffa1
MOV EDX,R14D
CALL 0x0016af4d
LAB_0016b048:
TEST EAX,EAX
JNZ 0x0016b06e
MOV EAX,dword ptr [RBX + 0x20]
CMP EAX,R15D
JZ 0x0016afc3
CMP EAX,-0x5a
JNZ 0x0016b084
LEA RSI,[0x19f8cd]
MOV RDI,RBX
XOR EAX,EAX
CALL 0x0012f0d5
LAB_0016b06e:
MOV ECX,0xffffffff
LAB_0016b073:
MOV EAX,ECX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0016b084:
MOV RDI,RBX
MOV ESI,R12D
CALL 0x001642dd
XOR ECX,ECX
JMP 0x0016b073
|
int8 js_parse_logical_and_or(long param_1,int param_2,int4 param_3)
{
long lVar1;
int iVar2;
int4 uVar3;
int8 uVar4;
if (param_2 == -0x5f) {
iVar2 = js_parse_expr_binary(param_1,8,param_3);
}
else {
iVar2 = js_parse_logical_and_or(param_1,0xffffffa1,param_3);
}
uVar4 = 0xffffffff;
if ((iVar2 == 0) && (uVar4 = 0, *(int *)(param_1 + 0x20) == param_2)) {
uVar3 = new_label_fd(*(int8 *)(param_1 + 0x90),0xffffffff);
do {
iVar2 = next_token(param_1);
if (iVar2 != 0) goto LAB_0016b06e;
lVar1 = *(long *)(param_1 + 0x90);
*(int4 *)(lVar1 + 0x168) = *(int4 *)(lVar1 + 0x140);
dbuf_putc(lVar1 + 0x138,0x11);
emit_goto(param_1,(param_2 != -0x5f) + 'i',uVar3);
lVar1 = *(long *)(param_1 + 0x90);
*(int4 *)(lVar1 + 0x168) = *(int4 *)(lVar1 + 0x140);
dbuf_putc(lVar1 + 0x138,0xe);
if (param_2 == -0x5f) {
iVar2 = js_parse_expr_binary(param_1,8,param_3);
}
else {
iVar2 = js_parse_logical_and_or(param_1,0xffffffa1,param_3);
}
if (iVar2 != 0) goto LAB_0016b06e;
} while (*(int *)(param_1 + 0x20) == param_2);
if (*(int *)(param_1 + 0x20) == -0x5a) {
js_parse_error(param_1,"cannot mix ?? with && or ||");
LAB_0016b06e:
uVar4 = 0xffffffff;
}
else {
emit_label(param_1,uVar3);
uVar4 = 0;
}
}
return uVar4;
}
|
|
59,684
|
evmc::Host::get_interface()
|
corpus-core[P]colibri-stateless/build_O0/_deps/evmone_external-src/evmc/include/evmc/evmc.hpp
|
inline const evmc_host_interface& Host::get_interface() noexcept
{
static constexpr evmc_host_interface interface = {
::evmc::internal::account_exists,
::evmc::internal::get_storage,
::evmc::internal::set_storage,
::evmc::internal::get_balance,
::evmc::internal::get_code_size,
::evmc::internal::get_code_hash,
::evmc::internal::copy_code,
::evmc::internal::selfdestruct,
::evmc::internal::call,
::evmc::internal::get_tx_context,
::evmc::internal::get_block_hash,
::evmc::internal::emit_log,
::evmc::internal::access_account,
::evmc::internal::access_storage,
::evmc::internal::get_transient_storage,
::evmc::internal::set_transient_storage,
};
return interface;
}
|
O0
|
cpp
|
evmc::Host::get_interface():
pushq %rbp
movq %rsp, %rbp
leaq 0xee815(%rip), %rax # 0x124120
popq %rbp
retq
nopl (%rax)
|
_ZN4evmc4Host13get_interfaceEv:
push rbp
mov rbp, rsp
lea rax, _ZZN4evmc4Host13get_interfaceEvE9interface; evmc::Host::get_interface(void)::interface
pop rbp
retn
|
long long ( ** evmc::Host::get_interface(evmc::Host *this))()
{
return evmc::Host::get_interface(void)::interface;
}
|
get_interface:
PUSH RBP
MOV RBP,RSP
LEA RAX,[0x224120]
POP RBP
RET
|
/* evmc::Host::get_interface() */
int1 * evmc::Host::get_interface(void)
{
return get_interface()::interface;
}
|
|
59,685
|
js_os_cputime
|
bluesky950520[P]quickjs/quickjs-libc.c
|
static JSValue js_os_cputime(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
struct rusage ru;
int64_t cputime;
cputime = 0;
if (!getrusage(RUSAGE_SELF, &ru))
cputime = (int64_t)ru.ru_utime.tv_sec * 1000000 + ru.ru_utime.tv_usec;
return JS_NewInt64(ctx, cputime);
}
|
O2
|
c
|
js_os_cputime:
pushq %rbx
subq $0x90, %rsp
xorl %ebx, %ebx
movq %rsp, %rsi
xorl %edi, %edi
callq 0xe800
testl %eax, %eax
jne 0x13d97
imulq $0xf4240, (%rsp), %rbx # imm = 0xF4240
addq 0x8(%rsp), %rbx
movslq %ebx, %rax
cmpq %rbx, %rax
jne 0x13da4
movl %ebx, %eax
xorl %edx, %edx
addq $0x90, %rsp
popq %rbx
retq
cvtsi2sd %rbx, %xmm0
movq %xmm0, %rax
pushq $0x7
popq %rdx
jmp 0x13d9b
|
js_os_cputime:
push rbx
sub rsp, 90h
xor ebx, ebx
mov rsi, rsp
xor edi, edi
call _getrusage
test eax, eax
jnz short loc_13D97
imul rbx, [rsp+98h+var_98], 0F4240h
add rbx, [rsp+98h+var_90]
movsxd rax, ebx
cmp rax, rbx
jnz short loc_13DA4
loc_13D97:
mov eax, ebx
xor edx, edx
loc_13D9B:
add rsp, 90h
pop rbx
retn
loc_13DA4:
cvtsi2sd xmm0, rbx
movq rax, xmm0
push 7
pop rdx
jmp short loc_13D9B
|
long long js_os_cputime()
{
long long v0; // rbx
long long result; // rax
_QWORD v2[19]; // [rsp+0h] [rbp-98h] BYREF
LODWORD(v0) = 0;
if ( (unsigned int)getrusage(0LL, v2) )
return (unsigned int)v0;
v0 = v2[1] + 1000000LL * v2[0];
if ( (int)v0 == v0 )
return (unsigned int)v0;
*(double *)&result = (double)(int)v0;
return result;
}
|
js_os_cputime:
PUSH RBX
SUB RSP,0x90
XOR EBX,EBX
MOV RSI,RSP
XOR EDI,EDI
CALL 0x0010e800
TEST EAX,EAX
JNZ 0x00113d97
IMUL RBX,qword ptr [RSP],0xf4240
ADD RBX,qword ptr [RSP + 0x8]
MOVSXD RAX,EBX
CMP RAX,RBX
JNZ 0x00113da4
LAB_00113d97:
MOV EAX,EBX
XOR EDX,EDX
LAB_00113d9b:
ADD RSP,0x90
POP RBX
RET
LAB_00113da4:
CVTSI2SD XMM0,RBX
MOVQ RAX,XMM0
PUSH 0x7
POP RDX
JMP 0x00113d9b
|
int1 [16] js_os_cputime(void)
{
int iVar1;
ulong uVar2;
double dVar3;
int1 auVar4 [16];
int8 uStack_a0;
rusage local_98;
uVar2 = 0;
iVar1 = getrusage(RUSAGE_SELF,&local_98);
if ((iVar1 == 0) &&
(uVar2 = local_98.ru_utime.tv_sec * 1000000 + local_98.ru_utime.tv_usec,
(long)(int)uVar2 != uVar2)) {
dVar3 = (double)(long)uVar2;
uStack_a0 = 7;
}
else {
dVar3 = (double)(uVar2 & 0xffffffff);
uStack_a0 = 0;
}
auVar4._8_8_ = uStack_a0;
auVar4._0_8_ = dVar3;
return auVar4;
}
|
|
59,686
|
js_os_cputime
|
bluesky950520[P]quickjs/quickjs-libc.c
|
static JSValue js_os_cputime(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
struct rusage ru;
int64_t cputime;
cputime = 0;
if (!getrusage(RUSAGE_SELF, &ru))
cputime = (int64_t)ru.ru_utime.tv_sec * 1000000 + ru.ru_utime.tv_usec;
return JS_NewInt64(ctx, cputime);
}
|
O3
|
c
|
js_os_cputime:
pushq %rbx
subq $0x90, %rsp
xorl %ebx, %ebx
movq %rsp, %rsi
xorl %edi, %edi
callq 0xe7e0
testl %eax, %eax
jne 0x19bc4
imulq $0xf4240, (%rsp), %rbx # imm = 0xF4240
addq 0x8(%rsp), %rbx
movslq %ebx, %rax
cmpq %rbx, %rax
jne 0x19bd1
movl %ebx, %eax
xorl %edx, %edx
addq $0x90, %rsp
popq %rbx
retq
cvtsi2sd %rbx, %xmm0
movq %xmm0, %rax
movl $0x7, %edx
jmp 0x19bc8
|
js_os_cputime:
push rbx
sub rsp, 90h
xor ebx, ebx
mov rsi, rsp
xor edi, edi
call _getrusage
test eax, eax
jnz short loc_19BC4
imul rbx, [rsp+98h+var_98], 0F4240h
add rbx, [rsp+98h+var_90]
movsxd rax, ebx
cmp rax, rbx
jnz short loc_19BD1
loc_19BC4:
mov eax, ebx
xor edx, edx
loc_19BC8:
add rsp, 90h
pop rbx
retn
loc_19BD1:
cvtsi2sd xmm0, rbx
movq rax, xmm0
mov edx, 7
jmp short loc_19BC8
|
long long js_os_cputime()
{
long long v0; // rbx
long long result; // rax
_QWORD v2[19]; // [rsp+0h] [rbp-98h] BYREF
LODWORD(v0) = 0;
if ( (unsigned int)getrusage(0LL, v2) )
return (unsigned int)v0;
v0 = v2[1] + 1000000LL * v2[0];
if ( (int)v0 == v0 )
return (unsigned int)v0;
*(double *)&result = (double)(int)v0;
return result;
}
|
js_os_cputime:
PUSH RBX
SUB RSP,0x90
XOR EBX,EBX
MOV RSI,RSP
XOR EDI,EDI
CALL 0x0010e7e0
TEST EAX,EAX
JNZ 0x00119bc4
IMUL RBX,qword ptr [RSP],0xf4240
ADD RBX,qword ptr [RSP + 0x8]
MOVSXD RAX,EBX
CMP RAX,RBX
JNZ 0x00119bd1
LAB_00119bc4:
MOV EAX,EBX
XOR EDX,EDX
LAB_00119bc8:
ADD RSP,0x90
POP RBX
RET
LAB_00119bd1:
CVTSI2SD XMM0,RBX
MOVQ RAX,XMM0
MOV EDX,0x7
JMP 0x00119bc8
|
int1 [16] js_os_cputime(void)
{
int iVar1;
int8 uVar2;
ulong uVar3;
double dVar4;
int1 auVar5 [16];
rusage local_98;
uVar3 = 0;
iVar1 = getrusage(RUSAGE_SELF,&local_98);
if ((iVar1 == 0) &&
(uVar3 = local_98.ru_utime.tv_sec * 1000000 + local_98.ru_utime.tv_usec,
(long)(int)uVar3 != uVar3)) {
dVar4 = (double)(long)uVar3;
uVar2 = 7;
}
else {
dVar4 = (double)(uVar3 & 0xffffffff);
uVar2 = 0;
}
auVar5._8_8_ = uVar2;
auVar5._0_8_ = dVar4;
return auVar5;
}
|
|
59,687
|
ma_bitmap_init
|
eloqsql/storage/maria/ma_bitmap.c
|
my_bool _ma_bitmap_init(MARIA_SHARE *share, File file,
pgcache_page_no_t *last_page)
{
uint aligned_bit_blocks;
uint max_page_size;
MARIA_FILE_BITMAP *bitmap= &share->bitmap;
uint size= share->block_size;
myf flag= MY_WME | (share->temporary ? MY_THREAD_SPECIFIC : 0);
pgcache_page_no_t first_bitmap_with_space;
#ifndef DBUG_OFF
/* We want to have a copy of the bitmap to be able to print differences */
size*= 2;
#endif
if (!((bitmap->map= (uchar*) my_malloc(PSI_INSTRUMENT_ME, size, flag))) ||
my_init_dynamic_array(PSI_INSTRUMENT_ME, &bitmap->pinned_pages,
sizeof(MARIA_PINNED_PAGE), 1, 1, flag))
return 1;
bitmap->share= share;
bitmap->block_size= share->block_size;
bitmap->file.file= file;
_ma_bitmap_set_pagecache_callbacks(&bitmap->file, share);
/* Size needs to be aligned on 6 */
aligned_bit_blocks= (share->block_size - PAGE_SUFFIX_SIZE) / 6;
bitmap->max_total_size= bitmap->total_size= aligned_bit_blocks * 6;
/*
In each 6 bytes, we have 6*8/3 = 16 pages covered
The +1 is to add the bitmap page, as this doesn't have to be covered
*/
bitmap->pages_covered= aligned_bit_blocks * 16 + 1;
bitmap->flush_all_requested= bitmap->waiting_for_flush_all_requested=
bitmap->waiting_for_non_flushable= 0;
bitmap->non_flushable= 0;
/* Update size for bits */
/* TODO; Make this dependent of the row size */
max_page_size= share->block_size - PAGE_OVERHEAD_SIZE(share) + DIR_ENTRY_SIZE;
bitmap->sizes[0]= max_page_size; /* Empty page */
bitmap->sizes[1]= max_page_size - max_page_size * 30 / 100;
bitmap->sizes[2]= max_page_size - max_page_size * 60 / 100;
bitmap->sizes[3]= max_page_size - max_page_size * 90 / 100;
bitmap->sizes[4]= 0; /* Full page */
bitmap->sizes[5]= max_page_size - max_page_size * 40 / 100;
bitmap->sizes[6]= max_page_size - max_page_size * 80 / 100;
bitmap->sizes[7]= 0;
/*
If a record size will fit into the smallest empty page, return first
found page in find_head()
*/
if (bitmap->sizes[3] >= share->base.max_pack_length)
bitmap->return_first_match= 1;
mysql_mutex_init(key_SHARE_BITMAP_lock,
&share->bitmap.bitmap_lock, MY_MUTEX_INIT_SLOW);
mysql_cond_init(key_SHARE_BITMAP_cond,
&share->bitmap.bitmap_cond, 0);
first_bitmap_with_space= share->state.first_bitmap_with_space;
_ma_bitmap_reset_cache(share);
/*
The bitmap used to map the file are aligned on 6 bytes. We now
calculate the max file size that can be used by the bitmap. This
is needed to get ma_info() give a true file size so that the user can
estimate if there is still space free for records in the file.
*/
{
pgcache_page_no_t last_bitmap_page;
ulong blocks, bytes;
last_bitmap_page= *last_page - *last_page % bitmap->pages_covered;
blocks= (ulong) (*last_page - last_bitmap_page);
bytes= (blocks * 3) / 8; /* 3 bit per page / 8 bits per byte */
/* Size needs to be aligned on 6 */
bytes/= 6;
bytes*= 6;
bitmap->last_bitmap_page= last_bitmap_page;
bitmap->last_total_size= (uint)bytes;
*last_page= ((last_bitmap_page + bytes*8/3));
}
/* Restore first_bitmap_with_space if it's resonable */
if (first_bitmap_with_space <= (share->state.state.data_file_length /
share->block_size))
share->state.first_bitmap_with_space= first_bitmap_with_space;
return 0;
}
|
O3
|
c
|
ma_bitmap_init:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %r12d
movq %rdi, %rbx
xorl %r13d, %r13d
cmpb $0x0, 0x7d9(%rdi)
movl 0x7bc(%rdi), %esi
setne %r13b
shll $0x10, %r13d
orq $0x10, %r13
xorl %edi, %edi
movq %r13, %rdx
callq 0xa11e5
movq %rax, 0xa18(%rbx)
movb $0x1, %r15b
testq %rax, %rax
je 0x538cf
leaq 0xb50(%rbx), %rsi
movq %r13, (%rsp)
xorl %r13d, %r13d
xorl %edi, %edi
movl $0x18, %edx
xorl %ecx, %ecx
movl $0x1, %r8d
movl $0x1, %r9d
callq 0x92db8
testb %al, %al
jne 0x538cf
movq %rbx, 0xa10(%rbx)
movl 0x7bc(%rbx), %eax
movl %eax, 0xb44(%rbx)
leaq 0xa50(%rbx), %rdi
movl %r12d, 0xa60(%rbx)
movq %rbx, %rsi
callq 0x538e1
movl 0x7bc(%rbx), %eax
leal -0x4(%rax), %ecx
movl $0xaaaaaaab, %edx # imm = 0xAAAAAAAB
imulq %rcx, %rdx
shrq $0x22, %rdx
leal (%rdx,%rdx), %ecx
leal (%rcx,%rcx,2), %ecx
movl %ecx, 0xb38(%rbx)
movl %ecx, 0xb3c(%rbx)
shll $0x4, %edx
incl %edx
movq %rdx, 0xb48(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0xa40(%rbx)
subl 0xc18(%rbx), %eax
leal -0x10(%rax), %ecx
movl %ecx, 0xb18(%rbx)
leal -0x20(,%rax,2), %edx
movl %ecx, %esi
shll $0x5, %esi
subl %edx, %esi
imulq $0x51eb851f, %rsi, %rdx # imm = 0x51EB851F
shrq $0x25, %rdx
movl %ecx, %esi
subl %edx, %esi
movl %esi, 0xb1c(%rbx)
imull $0x3c, %ecx, %edx
imulq $0x51eb851f, %rdx, %rdx # imm = 0x51EB851F
shrq $0x25, %rdx
movl %ecx, %esi
subl %edx, %esi
movl %esi, 0xb20(%rbx)
imull $0x5a, %ecx, %edx
imulq $0x51eb851f, %rdx, %rsi # imm = 0x51EB851F
shrq $0x25, %rsi
movl %ecx, %edx
subl %esi, %edx
movl %edx, 0xb24(%rbx)
movl %r13d, 0xb28(%rbx)
leal -0x80(,%rax,8), %eax
leal (%rax,%rax,4), %eax
imulq $0x51eb851f, %rax, %rax # imm = 0x51EB851F
shrq $0x25, %rax
movl %ecx, %esi
subl %eax, %esi
movl %esi, 0xb2c(%rbx)
movl %ecx, %eax
shll $0x4, %eax
leal (%rax,%rax,4), %eax
imulq $0x51eb851f, %rax, %rax # imm = 0x51EB851F
shrq $0x25, %rax
subl %eax, %ecx
movl %ecx, 0xb30(%rbx)
movl %r13d, 0xb34(%rbx)
cmpq %rdx, 0x3b0(%rbx)
ja 0x537ed
movb $0x1, 0xa32(%rbx)
leaq 0x3ab3bc(%rip), %rax # 0x3febb0
movl (%rax), %edi
leaq 0xa98(%rbx), %r12
leaq 0x33480c(%rip), %r13 # 0x388010
movq (%r13), %rax
movq %r12, %rsi
callq *0x40(%rax)
movq %rax, 0xad8(%rbx)
movq %r12, 0xad0(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0xac0(%rbx)
xorl %r15d, %r15d
movq %r12, %rdi
xorl %esi, %esi
callq 0x29320
leaq 0x3ab3ca(%rip), %rax # 0x3fec04
movl (%rax), %edi
leaq 0xae0(%rbx), %r12
movq (%r13), %rax
movq %r12, %rsi
callq *0x60(%rax)
movq %rax, 0xb10(%rbx)
movq %r12, %rdi
xorl %esi, %esi
callq 0x29370
movq 0xd0(%rbx), %r12
movq %rbx, %rdi
callq 0x53973
movq (%r14), %rcx
movq %rcx, %rax
xorl %edx, %edx
divq 0xb48(%rbx)
subq %rdx, %rcx
leaq (%rdx,%rdx,2), %rax
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
mulq %rdx
shrq $0x5, %rdx
movq %rcx, 0xa28(%rbx)
leal (%rdx,%rdx), %eax
leal (%rax,%rax,2), %eax
movl %eax, 0xb40(%rbx)
shlq $0x4, %rdx
addq %rcx, %rdx
movq %rdx, (%r14)
movq 0x40(%rbx), %rax
movl 0x7bc(%rbx), %ecx
xorl %edx, %edx
divq %rcx
cmpq %rax, %r12
ja 0x538cf
movq %r12, 0xd0(%rbx)
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_ma_bitmap_init:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, rdx
mov r12d, esi
mov rbx, rdi
xor r13d, r13d
cmp byte ptr [rdi+7D9h], 0
mov esi, [rdi+7BCh]
setnz r13b
shl r13d, 10h
or r13, 10h
xor edi, edi
mov rdx, r13
call my_malloc
mov [rbx+0A18h], rax
mov r15b, 1
test rax, rax
jz loc_538CF
lea rsi, [rbx+0B50h]
mov [rsp+30h+var_30], r13
xor r13d, r13d
xor edi, edi
mov edx, 18h
xor ecx, ecx
mov r8d, 1
mov r9d, 1
call init_dynamic_array2
test al, al
jnz loc_538CF
mov [rbx+0A10h], rbx
mov eax, [rbx+7BCh]
mov [rbx+0B44h], eax
lea rdi, [rbx+0A50h]
mov [rbx+0A60h], r12d
mov rsi, rbx
call _ma_bitmap_set_pagecache_callbacks
mov eax, [rbx+7BCh]
lea ecx, [rax-4]
mov edx, 0AAAAAAABh
imul rdx, rcx
shr rdx, 22h
lea ecx, [rdx+rdx]
lea ecx, [rcx+rcx*2]
mov [rbx+0B38h], ecx
mov [rbx+0B3Ch], ecx
shl edx, 4
inc edx
mov [rbx+0B48h], rdx
xorps xmm0, xmm0
movups xmmword ptr [rbx+0A40h], xmm0
sub eax, [rbx+0C18h]
lea ecx, [rax-10h]
mov [rbx+0B18h], ecx
lea edx, ds:0FFFFFFFFFFFFFFE0h[rax*2]
mov esi, ecx
shl esi, 5
sub esi, edx
imul rdx, rsi, 51EB851Fh
shr rdx, 25h
mov esi, ecx
sub esi, edx
mov [rbx+0B1Ch], esi
imul edx, ecx, 3Ch ; '<'
imul rdx, 51EB851Fh
shr rdx, 25h
mov esi, ecx
sub esi, edx
mov [rbx+0B20h], esi
imul edx, ecx, 5Ah ; 'Z'
imul rsi, rdx, 51EB851Fh
shr rsi, 25h
mov edx, ecx
sub edx, esi
mov [rbx+0B24h], edx
mov [rbx+0B28h], r13d
lea eax, ds:0FFFFFFFFFFFFFF80h[rax*8]
lea eax, [rax+rax*4]
imul rax, 51EB851Fh
shr rax, 25h
mov esi, ecx
sub esi, eax
mov [rbx+0B2Ch], esi
mov eax, ecx
shl eax, 4
lea eax, [rax+rax*4]
imul rax, 51EB851Fh
shr rax, 25h
sub ecx, eax
mov [rbx+0B30h], ecx
mov [rbx+0B34h], r13d
cmp [rbx+3B0h], rdx
ja short loc_537ED
mov byte ptr [rbx+0A32h], 1
loc_537ED:
lea rax, key_SHARE_BITMAP_lock
mov edi, [rax]
lea r12, [rbx+0A98h]
lea r13, PSI_server
mov rax, [r13+0]
mov rsi, r12
call qword ptr [rax+40h]
mov [rbx+0AD8h], rax
mov [rbx+0AD0h], r12
xorps xmm0, xmm0
movups xmmword ptr [rbx+0AC0h], xmm0
xor r15d, r15d
mov rdi, r12
xor esi, esi
call _pthread_mutex_init
lea rax, key_SHARE_BITMAP_cond
mov edi, [rax]
lea r12, [rbx+0AE0h]
mov rax, [r13+0]
mov rsi, r12
call qword ptr [rax+60h]
mov [rbx+0B10h], rax
mov rdi, r12
xor esi, esi
call _pthread_cond_init
mov r12, [rbx+0D0h]
mov rdi, rbx
call _ma_bitmap_reset_cache
mov rcx, [r14]
mov rax, rcx
xor edx, edx
div qword ptr [rbx+0B48h]
sub rcx, rdx
lea rax, [rdx+rdx*2]
mov rdx, 0AAAAAAAAAAAAAAABh
mul rdx
shr rdx, 5
mov [rbx+0A28h], rcx
lea eax, [rdx+rdx]
lea eax, [rax+rax*2]
mov [rbx+0B40h], eax
shl rdx, 4
add rdx, rcx
mov [r14], rdx
mov rax, [rbx+40h]
mov ecx, [rbx+7BCh]
xor edx, edx
div rcx
cmp r12, rax
ja short loc_538CF
mov [rbx+0D0h], r12
xor r15d, r15d
loc_538CF:
mov eax, r15d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long ma_bitmap_init(long long a1, int a2, _QWORD *a3)
{
unsigned int v3; // r15d
long long v5; // r13
long long v6; // rax
int v7; // eax
unsigned int v8; // edx
int v9; // eax
unsigned long long v10; // rdx
unsigned long long v11; // r12
long long v12; // rdx
long long v13; // rcx
unsigned long long v14; // rdx
v5 = ((unsigned __int8)(*(_BYTE *)(a1 + 2009) != 0) << 16) | 0x10LL;
v6 = my_malloc(0LL, *(unsigned int *)(a1 + 1980), v5);
*(_QWORD *)(a1 + 2584) = v6;
LOBYTE(v3) = 1;
if ( v6 && !(unsigned __int8)init_dynamic_array2(0, (int)a1 + 2896, 24, 0, 1, 1, v5) )
{
*(_QWORD *)(a1 + 2576) = a1;
*(_DWORD *)(a1 + 2884) = *(_DWORD *)(a1 + 1980);
*(_DWORD *)(a1 + 2656) = a2;
ma_bitmap_set_pagecache_callbacks(a1 + 2640, a1);
v7 = *(_DWORD *)(a1 + 1980);
v8 = (v7 - 4) / 6u;
*(_DWORD *)(a1 + 2872) = 6 * v8;
*(_DWORD *)(a1 + 2876) = 6 * v8;
*(_QWORD *)(a1 + 2888) = 16 * v8 + 1;
*(_OWORD *)(a1 + 2624) = 0LL;
v9 = v7 - *(_DWORD *)(a1 + 3096);
*(_DWORD *)(a1 + 2840) = v9 - 16;
*(_DWORD *)(a1 + 2844) = v9 - 16 - (32 * (v9 - 16) - (2 * v9 - 32)) / 0x64u;
*(_DWORD *)(a1 + 2848) = v9 - 16 - 60 * (v9 - 16) / 0x64u;
v10 = v9 - 16 - 90 * (v9 - 16) / 0x64u;
*(_QWORD *)(a1 + 2852) = (unsigned int)v10;
*(_DWORD *)(a1 + 2860) = v9 - 16 - 5 * (8 * v9 - 128) / 0x64u;
*(_QWORD *)(a1 + 2864) = v9 - 16 - 80 * (v9 - 16) / 0x64u;
if ( *(_QWORD *)(a1 + 944) <= v10 )
*(_BYTE *)(a1 + 2610) = 1;
*(_QWORD *)(a1 + 2776) = ((long long ( *)(_QWORD, long long))PSI_server[8])(key_SHARE_BITMAP_lock, a1 + 2712);
*(_QWORD *)(a1 + 2768) = a1 + 2712;
*(_OWORD *)(a1 + 2752) = 0LL;
v3 = 0;
pthread_mutex_init(a1 + 2712, 0LL);
*(_QWORD *)(a1 + 2832) = ((long long ( *)(_QWORD, long long))PSI_server[12])(key_SHARE_BITMAP_cond, a1 + 2784);
pthread_cond_init(a1 + 2784, 0LL);
v11 = *(_QWORD *)(a1 + 208);
ma_bitmap_reset_cache(a1);
v12 = *a3 % *(_QWORD *)(a1 + 2888);
v13 = *a3 - v12;
v14 = 3 * v12 / 0x30uLL;
*(_QWORD *)(a1 + 2600) = v13;
*(_DWORD *)(a1 + 2880) = 6 * v14;
*a3 = v13 + 16 * v14;
if ( v11 <= *(_QWORD *)(a1 + 64) / (unsigned long long)*(unsigned int *)(a1 + 1980) )
{
*(_QWORD *)(a1 + 208) = v11;
return 0;
}
}
return v3;
}
|
_ma_bitmap_init:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RDX
MOV R12D,ESI
MOV RBX,RDI
XOR R13D,R13D
CMP byte ptr [RDI + 0x7d9],0x0
MOV ESI,dword ptr [RDI + 0x7bc]
SETNZ R13B
SHL R13D,0x10
OR R13,0x10
XOR EDI,EDI
MOV RDX,R13
CALL 0x001a11e5
MOV qword ptr [RBX + 0xa18],RAX
MOV R15B,0x1
TEST RAX,RAX
JZ 0x001538cf
LEA RSI,[RBX + 0xb50]
MOV qword ptr [RSP],R13
XOR R13D,R13D
XOR EDI,EDI
MOV EDX,0x18
XOR ECX,ECX
MOV R8D,0x1
MOV R9D,0x1
CALL 0x00192db8
TEST AL,AL
JNZ 0x001538cf
MOV qword ptr [RBX + 0xa10],RBX
MOV EAX,dword ptr [RBX + 0x7bc]
MOV dword ptr [RBX + 0xb44],EAX
LEA RDI,[RBX + 0xa50]
MOV dword ptr [RBX + 0xa60],R12D
MOV RSI,RBX
CALL 0x001538e1
MOV EAX,dword ptr [RBX + 0x7bc]
LEA ECX,[RAX + -0x4]
MOV EDX,0xaaaaaaab
IMUL RDX,RCX
SHR RDX,0x22
LEA ECX,[RDX + RDX*0x1]
LEA ECX,[RCX + RCX*0x2]
MOV dword ptr [RBX + 0xb38],ECX
MOV dword ptr [RBX + 0xb3c],ECX
SHL EDX,0x4
INC EDX
MOV qword ptr [RBX + 0xb48],RDX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0xa40],XMM0
SUB EAX,dword ptr [RBX + 0xc18]
LEA ECX,[RAX + -0x10]
MOV dword ptr [RBX + 0xb18],ECX
LEA EDX,[-0x20 + RAX*0x2]
MOV ESI,ECX
SHL ESI,0x5
SUB ESI,EDX
IMUL RDX,RSI,0x51eb851f
SHR RDX,0x25
MOV ESI,ECX
SUB ESI,EDX
MOV dword ptr [RBX + 0xb1c],ESI
IMUL EDX,ECX,0x3c
IMUL RDX,RDX,0x51eb851f
SHR RDX,0x25
MOV ESI,ECX
SUB ESI,EDX
MOV dword ptr [RBX + 0xb20],ESI
IMUL EDX,ECX,0x5a
IMUL RSI,RDX,0x51eb851f
SHR RSI,0x25
MOV EDX,ECX
SUB EDX,ESI
MOV dword ptr [RBX + 0xb24],EDX
MOV dword ptr [RBX + 0xb28],R13D
LEA EAX,[-0x80 + RAX*0x8]
LEA EAX,[RAX + RAX*0x4]
IMUL RAX,RAX,0x51eb851f
SHR RAX,0x25
MOV ESI,ECX
SUB ESI,EAX
MOV dword ptr [RBX + 0xb2c],ESI
MOV EAX,ECX
SHL EAX,0x4
LEA EAX,[RAX + RAX*0x4]
IMUL RAX,RAX,0x51eb851f
SHR RAX,0x25
SUB ECX,EAX
MOV dword ptr [RBX + 0xb30],ECX
MOV dword ptr [RBX + 0xb34],R13D
CMP qword ptr [RBX + 0x3b0],RDX
JA 0x001537ed
MOV byte ptr [RBX + 0xa32],0x1
LAB_001537ed:
LEA RAX,[0x4febb0]
MOV EDI,dword ptr [RAX]
LEA R12,[RBX + 0xa98]
LEA R13,[0x488010]
MOV RAX,qword ptr [R13]
MOV RSI,R12
CALL qword ptr [RAX + 0x40]
MOV qword ptr [RBX + 0xad8],RAX
MOV qword ptr [RBX + 0xad0],R12
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0xac0],XMM0
XOR R15D,R15D
MOV RDI,R12
XOR ESI,ESI
CALL 0x00129320
LEA RAX,[0x4fec04]
MOV EDI,dword ptr [RAX]
LEA R12,[RBX + 0xae0]
MOV RAX,qword ptr [R13]
MOV RSI,R12
CALL qword ptr [RAX + 0x60]
MOV qword ptr [RBX + 0xb10],RAX
MOV RDI,R12
XOR ESI,ESI
CALL 0x00129370
MOV R12,qword ptr [RBX + 0xd0]
MOV RDI,RBX
CALL 0x00153973
MOV RCX,qword ptr [R14]
MOV RAX,RCX
XOR EDX,EDX
DIV qword ptr [RBX + 0xb48]
SUB RCX,RDX
LEA RAX,[RDX + RDX*0x2]
MOV RDX,-0x5555555555555555
MUL RDX
SHR RDX,0x5
MOV qword ptr [RBX + 0xa28],RCX
LEA EAX,[RDX + RDX*0x1]
LEA EAX,[RAX + RAX*0x2]
MOV dword ptr [RBX + 0xb40],EAX
SHL RDX,0x4
ADD RDX,RCX
MOV qword ptr [R14],RDX
MOV RAX,qword ptr [RBX + 0x40]
MOV ECX,dword ptr [RBX + 0x7bc]
XOR EDX,EDX
DIV RCX
CMP R12,RAX
JA 0x001538cf
MOV qword ptr [RBX + 0xd0],R12
XOR R15D,R15D
LAB_001538cf:
MOV EAX,R15D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong _ma_bitmap_init(long param_1,int4 param_2,ulong *param_3)
{
int iVar1;
char cVar2;
int iVar3;
long lVar4;
int8 uVar5;
uint uVar6;
ulong uVar7;
ulong uVar8;
int8 unaff_R15;
ulong uVar9;
uVar8 = (ulong)(*(char *)(param_1 + 0x7d9) != '\0') << 0x10 | 0x10;
lVar4 = my_malloc(0,*(int4 *)(param_1 + 0x7bc),uVar8);
*(long *)(param_1 + 0xa18) = lVar4;
uVar9 = CONCAT71((int7)((ulong)unaff_R15 >> 8),1);
if (lVar4 != 0) {
cVar2 = init_dynamic_array2(0,param_1 + 0xb50,0x18,0,1,1,uVar8);
if (cVar2 == '\0') {
*(long *)(param_1 + 0xa10) = param_1;
*(int4 *)(param_1 + 0xb44) = *(int4 *)(param_1 + 0x7bc);
*(int4 *)(param_1 + 0xa60) = param_2;
_ma_bitmap_set_pagecache_callbacks(param_1 + 0xa50,param_1);
uVar6 = *(int *)(param_1 + 0x7bc) - 4;
iVar1 = (uVar6 / 6) * 6;
*(int *)(param_1 + 0xb38) = iVar1;
*(int *)(param_1 + 0xb3c) = iVar1;
*(ulong *)(param_1 + 0xb48) = (ulong)((uVar6 / 6) * 0x10 + 1);
*(int8 *)(param_1 + 0xa40) = 0;
*(int8 *)(param_1 + 0xa48) = 0;
iVar3 = *(int *)(param_1 + 0x7bc) - *(int *)(param_1 + 0xc18);
iVar1 = iVar3 + -0x10;
*(int *)(param_1 + 0xb18) = iVar1;
*(uint *)(param_1 + 0xb1c) = iVar1 - (uint)(iVar1 * 0x20 - (iVar3 * 2 + -0x20)) / 100;
*(uint *)(param_1 + 0xb20) = iVar1 - (uint)(iVar1 * 0x3c) / 100;
uVar6 = iVar1 - (uint)(iVar1 * 0x5a) / 100;
*(uint *)(param_1 + 0xb24) = uVar6;
*(int4 *)(param_1 + 0xb28) = 0;
*(uint *)(param_1 + 0xb2c) = iVar1 - (uint)((iVar3 * 8 + -0x80) * 5) / 100;
*(uint *)(param_1 + 0xb30) = iVar1 - (uint)(iVar1 * 0x50) / 100;
*(int4 *)(param_1 + 0xb34) = 0;
if (*(ulong *)(param_1 + 0x3b0) <= (ulong)uVar6) {
*(int1 *)(param_1 + 0xa32) = 1;
}
uVar5 = (**(code **)(PSI_server + 0x40))(key_SHARE_BITMAP_lock);
*(int8 *)(param_1 + 0xad8) = uVar5;
*(pthread_mutex_t **)(param_1 + 0xad0) = (pthread_mutex_t *)(param_1 + 0xa98);
*(int8 *)(param_1 + 0xac0) = 0;
*(int8 *)(param_1 + 0xac8) = 0;
uVar9 = 0;
pthread_mutex_init((pthread_mutex_t *)(param_1 + 0xa98),(pthread_mutexattr_t *)0x0);
uVar5 = (**(code **)(PSI_server + 0x60))(key_SHARE_BITMAP_cond);
*(int8 *)(param_1 + 0xb10) = uVar5;
pthread_cond_init((pthread_cond_t *)(param_1 + 0xae0),(pthread_condattr_t *)0x0);
uVar8 = *(ulong *)(param_1 + 0xd0);
_ma_bitmap_reset_cache(param_1);
uVar7 = *param_3 % *(ulong *)(param_1 + 0xb48);
lVar4 = *param_3 - uVar7;
uVar7 = (uVar7 * 3) / 0x30;
*(long *)(param_1 + 0xa28) = lVar4;
*(int *)(param_1 + 0xb40) = (int)uVar7 * 6;
*param_3 = uVar7 * 0x10 + lVar4;
if (uVar8 <= *(ulong *)(param_1 + 0x40) / (ulong)*(uint *)(param_1 + 0x7bc)) {
*(ulong *)(param_1 + 0xd0) = uVar8;
uVar9 = 0;
}
}
}
return uVar9 & 0xffffffff;
}
|
|
59,688
|
rw_pr_wrlock
|
eloqsql/mysys/thr_rwlock.c
|
int rw_pr_wrlock(rw_pr_lock_t *rwlock)
{
pthread_mutex_lock(&rwlock->lock);
if (rwlock->active_readers != 0)
{
/* There are active readers. We have to wait until they are gone. */
rwlock->writers_waiting_readers++;
while (rwlock->active_readers != 0)
pthread_cond_wait(&rwlock->no_active_readers, &rwlock->lock);
rwlock->writers_waiting_readers--;
}
/*
We own 'lock' mutex so there is no active writers.
Also there are no active readers.
This means that we can grant wr-lock.
Not releasing 'lock' mutex until unlock will block
both requests for rd and wr-locks.
Set 'active_writer' flag to simplify unlock.
Thanks to the fact wr-lock/unlock in the absence of
contention from readers is essentially mutex lock/unlock
with a few simple checks make this rwlock implementation
wr-lock optimized.
*/
rwlock->active_writer= TRUE;
#ifdef SAFE_MUTEX
rwlock->writer_thread= pthread_self();
#endif
return 0;
}
|
O0
|
c
|
rw_pr_wrlock:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x2a220
movq -0x8(%rbp), %rax
cmpl $0x0, 0x58(%rax)
je 0xfb696
movq -0x8(%rbp), %rax
movl 0x5c(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x5c(%rax)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x58(%rax)
je 0xfb689
movq -0x8(%rbp), %rdi
addq $0x28, %rdi
movq -0x8(%rbp), %rsi
callq 0x2a400
jmp 0xfb66c
movq -0x8(%rbp), %rax
movl 0x5c(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x5c(%rax)
movq -0x8(%rbp), %rax
movb $0x1, 0x60(%rax)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
rw_pr_wrlock:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]
call _pthread_mutex_lock
mov rax, [rbp+var_8]
cmp dword ptr [rax+58h], 0
jz short loc_FB696
mov rax, [rbp+var_8]
mov ecx, [rax+5Ch]
add ecx, 1
mov [rax+5Ch], ecx
loc_FB66C:
mov rax, [rbp+var_8]
cmp dword ptr [rax+58h], 0
jz short loc_FB689
mov rdi, [rbp+var_8]
add rdi, 28h ; '('
mov rsi, [rbp+var_8]
call _pthread_cond_wait
jmp short loc_FB66C
loc_FB689:
mov rax, [rbp+var_8]
mov ecx, [rax+5Ch]
add ecx, 0FFFFFFFFh
mov [rax+5Ch], ecx
loc_FB696:
mov rax, [rbp+var_8]
mov byte ptr [rax+60h], 1
xor eax, eax
add rsp, 10h
pop rbp
retn
|
long long rw_pr_wrlock(long long a1)
{
pthread_mutex_lock(a1);
if ( *(_DWORD *)(a1 + 88) )
{
++*(_DWORD *)(a1 + 92);
while ( *(_DWORD *)(a1 + 88) )
pthread_cond_wait(a1 + 40, a1);
--*(_DWORD *)(a1 + 92);
}
*(_BYTE *)(a1 + 96) = 1;
return 0LL;
}
|
rw_pr_wrlock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0012a220
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x58],0x0
JZ 0x001fb696
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x5c]
ADD ECX,0x1
MOV dword ptr [RAX + 0x5c],ECX
LAB_001fb66c:
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x58],0x0
JZ 0x001fb689
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x28
MOV RSI,qword ptr [RBP + -0x8]
CALL 0x0012a400
JMP 0x001fb66c
LAB_001fb689:
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x5c]
ADD ECX,-0x1
MOV dword ptr [RAX + 0x5c],ECX
LAB_001fb696:
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x60],0x1
XOR EAX,EAX
ADD RSP,0x10
POP RBP
RET
|
int8 rw_pr_wrlock(pthread_mutex_t *param_1)
{
pthread_mutex_lock(param_1);
if (*(int *)((long)param_1 + 0x58) != 0) {
*(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;
while (*(int *)((long)param_1 + 0x58) != 0) {
pthread_cond_wait((pthread_cond_t *)(param_1 + 1),param_1);
}
*(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + -1;
}
*(int1 *)((long)param_1 + 0x60) = 1;
return 0;
}
|
|
59,689
|
append_replace_regex(char*, char*, st_replace_regex*, char**)
|
eloqsql/client/mysqltest.cc
|
void append_replace_regex(char* expr, char *expr_end, struct st_replace_regex* res,
char **buf_p)
{
char* p, start_re, end_re= 1;
struct st_regex reg;
p= expr;
/* for each regexp substitution statement */
while (p < expr_end)
{
bzero(®,sizeof(reg));
/* find the start of the statement */
while (my_isspace(charset_info, *p) && p < expr_end)
p++;
if (p >= expr_end)
{
if (res->regex_arr.elements)
break;
else
goto err;
}
start_re= 0;
reg.pattern= *buf_p;
/* Allow variable for the *entire* list of replacements */
if (*p == '$')
{
const char *v_end= 0;
VAR *val= var_get(p, &v_end, 0, 1);
if (val)
{
char *expr, *expr_end;
expr= val->str_val;
expr_end= expr + val->str_val_len;
append_replace_regex(expr, expr_end, res, buf_p);
}
p= (char *) v_end + 1;
continue;
}
else
{
if (parse_re_part(&start_re, &end_re, &p, expr_end, buf_p))
goto err;
reg.replace= *buf_p;
if (parse_re_part(&start_re, &end_re, &p, expr_end, buf_p))
goto err;
}
/* Check if we should do matching case insensitive */
if (p < expr_end && *p == 'i')
{
p++;
reg.icase= 1;
}
/* done parsing the statement, now place it in regex_arr */
if (insert_dynamic(&res->regex_arr, ®))
die("Out of memory");
}
return;
err:
my_free(res->regex_arr.buffer);
my_free(res);
die("Error parsing replace_regex \"%s\"", expr);
}
|
O0
|
cpp
|
append_replace_regex(char*, char*, st_replace_regex*, char**):
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movb $0x1, -0x2a(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0x7535c
leaq -0x48(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x60350
movq 0x2811af(%rip), %rax # 0x2f6388
movq 0x40(%rax), %rax
movq -0x28(%rbp), %rcx
movzbl (%rcx), %ecx
movzbl 0x1(%rax,%rcx), %ecx
andl $0x8, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x69(%rbp)
je 0x75204
movq -0x28(%rbp), %rax
cmpq -0x10(%rbp), %rax
setb %al
movb %al, -0x69(%rbp)
movb -0x69(%rbp), %al
testb $0x1, %al
jne 0x7520d
jmp 0x7521b
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x751d2
movq -0x28(%rbp), %rax
cmpq -0x10(%rbp), %rax
jb 0x75239
movq -0x18(%rbp), %rax
cmpl $0x0, 0x8(%rax)
je 0x75234
jmp 0x7535c
jmp 0x75362
movb $0x0, -0x29(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x24, %eax
jne 0x752bd
movq $0x0, -0x50(%rbp)
movq -0x28(%rbp), %rdi
leaq -0x50(%rbp), %rsi
xorl %edx, %edx
movl $0x1, %ecx
callq 0x62320
movq %rax, -0x58(%rbp)
cmpq $0x0, -0x58(%rbp)
je 0x752ac
movq -0x58(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq -0x58(%rbp), %rcx
addq 0x18(%rcx), %rax
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0x75190
movq -0x50(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x751b4
movq -0x10(%rbp), %rcx
movq -0x20(%rbp), %r8
leaq -0x29(%rbp), %rdi
leaq -0x2a(%rbp), %rsi
leaq -0x28(%rbp), %rdx
callq 0x74f20
testb $0x1, %al
jne 0x752dc
jmp 0x752e1
jmp 0x75362
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rcx
movq -0x20(%rbp), %r8
leaq -0x29(%rbp), %rdi
leaq -0x2a(%rbp), %rsi
leaq -0x28(%rbp), %rdx
callq 0x74f20
testb $0x1, %al
jne 0x7530b
jmp 0x7530d
jmp 0x75362
jmp 0x7530f
movq -0x28(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0x75338
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x69, %eax
jne 0x75338
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movl $0x1, -0x38(%rbp)
movq -0x18(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0xaf1b0
cmpb $0x0, %al
je 0x75357
leaq 0xd66b0(%rip), %rdi # 0x14ba00
movb $0x0, %al
callq 0x62b40
jmp 0x751b4
addq $0x70, %rsp
popq %rbp
retq
movq -0x18(%rbp), %rax
movq (%rax), %rdi
callq 0xc26d0
movq -0x18(%rbp), %rdi
callq 0xc26d0
movq -0x8(%rbp), %rsi
leaq 0xd8b28(%rip), %rdi # 0x14deaa
movb $0x0, %al
callq 0x62b40
nopl (%rax)
|
_Z20append_replace_regexPcS_P16st_replace_regexPS_:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_2A], 1
mov rax, [rbp+var_8]
mov [rbp+var_28], rax
loc_751B4:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_10]
jnb loc_7535C
lea rdi, [rbp+var_48]
xor esi, esi
mov edx, 18h
call _memset
loc_751D2:
mov rax, cs:_ZL12charset_info; charset_info
mov rax, [rax+40h]
mov rcx, [rbp+var_28]
movzx ecx, byte ptr [rcx]
movzx ecx, byte ptr [rax+rcx+1]
and ecx, 8
xor eax, eax
cmp ecx, 0
mov [rbp+var_69], al
jz short loc_75204
mov rax, [rbp+var_28]
cmp rax, [rbp+var_10]
setb al
mov [rbp+var_69], al
loc_75204:
mov al, [rbp+var_69]
test al, 1
jnz short loc_7520D
jmp short loc_7521B
loc_7520D:
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
jmp short loc_751D2
loc_7521B:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_10]
jb short loc_75239
mov rax, [rbp+var_18]
cmp dword ptr [rax+8], 0
jz short loc_75234
jmp loc_7535C
loc_75234:
jmp loc_75362
loc_75239:
mov [rbp+var_29], 0
mov rax, [rbp+var_20]
mov rax, [rax]
mov [rbp+var_48], rax
mov rax, [rbp+var_28]
movsx eax, byte ptr [rax]
cmp eax, 24h ; '$'
jnz short loc_752BD
mov [rbp+var_50], 0
mov rdi, [rbp+var_28]; char *
lea rsi, [rbp+var_50]; char **
xor edx, edx; char
mov ecx, 1; char
call _Z7var_getPKcPS0_cc; var_get(char const*,char const**,char,char)
mov [rbp+var_58], rax
cmp [rbp+var_58], 0
jz short loc_752AC
mov rax, [rbp+var_58]
mov rax, [rax+10h]
mov [rbp+var_60], rax
mov rax, [rbp+var_60]
mov rcx, [rbp+var_58]
add rax, [rcx+18h]
mov [rbp+var_68], rax
mov rdi, [rbp+var_60]
mov rsi, [rbp+var_68]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
call _Z20append_replace_regexPcS_P16st_replace_regexPS_; append_replace_regex(char *,char *,st_replace_regex *,char **)
loc_752AC:
mov rax, [rbp+var_50]
add rax, 1
mov [rbp+var_28], rax
jmp loc_751B4
loc_752BD:
mov rcx, [rbp+var_10]; char *
mov r8, [rbp+var_20]; char **
lea rdi, [rbp+var_29]; char *
lea rsi, [rbp+var_2A]; char *
lea rdx, [rbp+var_28]; char **
call _Z13parse_re_partPcS_PS_S_S0_; parse_re_part(char *,char *,char **,char *,char **)
test al, 1
jnz short loc_752DC
jmp short loc_752E1
loc_752DC:
jmp loc_75362
loc_752E1:
mov rax, [rbp+var_20]
mov rax, [rax]
mov [rbp+var_40], rax
mov rcx, [rbp+var_10]; char *
mov r8, [rbp+var_20]; char **
lea rdi, [rbp+var_29]; char *
lea rsi, [rbp+var_2A]; char *
lea rdx, [rbp+var_28]; char **
call _Z13parse_re_partPcS_PS_S_S0_; parse_re_part(char *,char *,char **,char *,char **)
test al, 1
jnz short loc_7530B
jmp short loc_7530D
loc_7530B:
jmp short loc_75362
loc_7530D:
jmp short $+2
loc_7530F:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_10]
jnb short loc_75338
mov rax, [rbp+var_28]
movsx eax, byte ptr [rax]
cmp eax, 69h ; 'i'
jnz short loc_75338
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
mov [rbp+var_38], 1
loc_75338:
mov rdi, [rbp+var_18]
lea rsi, [rbp+var_48]
call insert_dynamic
cmp al, 0
jz short loc_75357
lea rdi, aOutOfMemory; "Out of memory"
mov al, 0
call _ZL3diePKcz; die(char const*,...)
loc_75357:
jmp loc_751B4
loc_7535C:
add rsp, 70h
pop rbp
retn
loc_75362:
mov rax, [rbp+var_18]
mov rdi, [rax]
call my_free
mov rdi, [rbp+var_18]
call my_free
mov rsi, [rbp+var_8]
lea rdi, aErrorParsingRe; "Error parsing replace_regex \"%s\""
mov al, 0
call _ZL3diePKcz; die(char const*,...)
|
char * append_replace_regex(char *a1, char *a2, char *a3, char **a4)
{
char *result; // rax
bool v5; // [rsp+7h] [rbp-69h]
char *v6; // [rsp+18h] [rbp-58h]
char *v7; // [rsp+20h] [rbp-50h] BYREF
_QWORD v8[2]; // [rsp+28h] [rbp-48h] BYREF
int v9; // [rsp+38h] [rbp-38h]
char v10; // [rsp+46h] [rbp-2Ah] BYREF
char v11; // [rsp+47h] [rbp-29h] BYREF
char *v12; // [rsp+48h] [rbp-28h] BYREF
char **v13; // [rsp+50h] [rbp-20h]
char *v14; // [rsp+58h] [rbp-18h]
char *v15; // [rsp+60h] [rbp-10h]
char *v16; // [rsp+68h] [rbp-8h]
v16 = a1;
v15 = a2;
v14 = a3;
v13 = a4;
v10 = 1;
v12 = a1;
while ( 1 )
{
result = v12;
if ( v12 >= v15 )
return result;
memset(v8, 0LL, 24LL);
while ( 1 )
{
v5 = 0;
if ( (*(_BYTE *)(*((_QWORD *)charset_info + 8) + (unsigned __int8)*v12 + 1LL) & 8) != 0 )
v5 = v12 < v15;
if ( !v5 )
break;
++v12;
}
if ( v12 >= v15 )
{
result = v14;
if ( !*((_DWORD *)v14 + 2) )
{
LABEL_24:
my_free(*(_QWORD *)v14);
my_free(v14);
die("Error parsing replace_regex \"%s\"", v16);
}
return result;
}
v11 = 0;
v8[0] = *v13;
if ( *v12 == 36 )
{
v7 = 0LL;
v6 = var_get(v12, (const char **)&v7, 0, 1);
if ( v6 )
append_replace_regex(*((_QWORD *)v6 + 2), *((_QWORD *)v6 + 3) + *((_QWORD *)v6 + 2), v14, v13);
v12 = v7 + 1;
}
else
{
if ( parse_re_part(&v11, &v10, &v12, v15, v13) )
goto LABEL_24;
v8[1] = *v13;
if ( parse_re_part(&v11, &v10, &v12, v15, v13) )
goto LABEL_24;
if ( v12 < v15 && *v12 == 105 )
{
++v12;
v9 = 1;
}
if ( (unsigned __int8)insert_dynamic(v14, v8) )
die("Out of memory");
}
}
}
|
append_replace_regex:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV byte ptr [RBP + -0x2a],0x1
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x28],RAX
LAB_001751b4:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x10]
JNC 0x0017535c
LEA RDI,[RBP + -0x48]
XOR ESI,ESI
MOV EDX,0x18
CALL 0x00160350
LAB_001751d2:
MOV RAX,qword ptr [0x003f6388]
MOV RAX,qword ptr [RAX + 0x40]
MOV RCX,qword ptr [RBP + -0x28]
MOVZX ECX,byte ptr [RCX]
MOVZX ECX,byte ptr [RAX + RCX*0x1 + 0x1]
AND ECX,0x8
XOR EAX,EAX
CMP ECX,0x0
MOV byte ptr [RBP + -0x69],AL
JZ 0x00175204
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x10]
SETC AL
MOV byte ptr [RBP + -0x69],AL
LAB_00175204:
MOV AL,byte ptr [RBP + -0x69]
TEST AL,0x1
JNZ 0x0017520d
JMP 0x0017521b
LAB_0017520d:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
JMP 0x001751d2
LAB_0017521b:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x10]
JC 0x00175239
MOV RAX,qword ptr [RBP + -0x18]
CMP dword ptr [RAX + 0x8],0x0
JZ 0x00175234
JMP 0x0017535c
LAB_00175234:
JMP 0x00175362
LAB_00175239:
MOV byte ptr [RBP + -0x29],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x24
JNZ 0x001752bd
MOV qword ptr [RBP + -0x50],0x0
MOV RDI,qword ptr [RBP + -0x28]
LEA RSI,[RBP + -0x50]
XOR EDX,EDX
MOV ECX,0x1
CALL 0x00162320
MOV qword ptr [RBP + -0x58],RAX
CMP qword ptr [RBP + -0x58],0x0
JZ 0x001752ac
MOV RAX,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x60]
MOV RCX,qword ptr [RBP + -0x58]
ADD RAX,qword ptr [RCX + 0x18]
MOV qword ptr [RBP + -0x68],RAX
MOV RDI,qword ptr [RBP + -0x60]
MOV RSI,qword ptr [RBP + -0x68]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
CALL 0x00175190
LAB_001752ac:
MOV RAX,qword ptr [RBP + -0x50]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
JMP 0x001751b4
LAB_001752bd:
MOV RCX,qword ptr [RBP + -0x10]
MOV R8,qword ptr [RBP + -0x20]
LEA RDI,[RBP + -0x29]
LEA RSI,[RBP + -0x2a]
LEA RDX,[RBP + -0x28]
CALL 0x00174f20
TEST AL,0x1
JNZ 0x001752dc
JMP 0x001752e1
LAB_001752dc:
JMP 0x00175362
LAB_001752e1:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x40],RAX
MOV RCX,qword ptr [RBP + -0x10]
MOV R8,qword ptr [RBP + -0x20]
LEA RDI,[RBP + -0x29]
LEA RSI,[RBP + -0x2a]
LEA RDX,[RBP + -0x28]
CALL 0x00174f20
TEST AL,0x1
JNZ 0x0017530b
JMP 0x0017530d
LAB_0017530b:
JMP 0x00175362
LAB_0017530d:
JMP 0x0017530f
LAB_0017530f:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x10]
JNC 0x00175338
MOV RAX,qword ptr [RBP + -0x28]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x69
JNZ 0x00175338
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
MOV dword ptr [RBP + -0x38],0x1
LAB_00175338:
MOV RDI,qword ptr [RBP + -0x18]
LEA RSI,[RBP + -0x48]
CALL 0x001af1b0
CMP AL,0x0
JZ 0x00175357
LEA RDI,[0x24ba00]
MOV AL,0x0
CALL 0x00162b40
LAB_00175357:
JMP 0x001751b4
LAB_0017535c:
ADD RSP,0x70
POP RBP
RET
LAB_00175362:
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX]
CALL 0x001c26d0
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001c26d0
MOV RSI,qword ptr [RBP + -0x8]
LEA RDI,[0x24deaa]
MOV AL,0x0
CALL 0x00162b40
NOP dword ptr [RAX]
|
/* append_replace_regex(char*, char*, st_replace_regex*, char**) */
st_replace_regex *
append_replace_regex(char *param_1,char *param_2,st_replace_regex *param_3,char **param_4)
{
byte bVar1;
char cVar2;
int iVar3;
int iVar4;
ulong uVar5;
size_t sVar6;
st_replace_regex *psVar7;
st_replace_regex *psVar8;
int *piVar9;
long lVar10;
st_replace_regex *psVar11;
int8 extraout_RDX;
char *pcVar12;
st_replace_regex *in_R8;
int8 uVar13;
int8 in_R9;
bool bVar14;
int iStack_164;
int iStack_150;
st_replace_regex *psStack_148;
st_replace_regex *psStack_130;
st_replace_regex *psStack_128;
int iStack_120;
int4 uStack_11c;
st_replace_regex *psStack_118;
st_replace_regex *psStack_110;
st_replace_regex *psStack_100;
regex_t arStack_e8 [24];
long lStack_d0;
int iStack_b4;
st_replace_regex *psStack_b0;
st_replace_regex *psStack_a8;
int8 uStack_a0;
int *piStack_98;
char *pcStack_90;
uint uStack_84;
int1 *puStack_80;
bool local_71;
char *local_70;
char *local_68;
long local_60;
char *local_58;
char *local_50;
char *local_48;
int4 local_40;
char local_32 [2];
st_replace_regex *local_30;
st_replace_regex *local_28;
st_replace_regex *local_20;
st_replace_regex *local_18;
int *local_10;
local_32[0] = '\x01';
local_30 = (st_replace_regex *)param_1;
local_28 = (st_replace_regex *)param_4;
local_20 = param_3;
local_18 = (st_replace_regex *)param_2;
local_10 = (int *)param_1;
while( true ) {
if (local_18 <= local_30) {
return local_30;
}
puStack_80 = (int1 *)0x1751d2;
memset(&local_50,0,0x18);
iStack_b4 = (int)in_R9;
while( true ) {
bVar1 = *(byte *)(*(long *)(charset_info + 0x40) + 1 + (ulong)(byte)*local_30);
psVar7 = (st_replace_regex *)(ulong)(bVar1 & 8);
bVar14 = (bVar1 & 8) != 0;
local_71 = bVar14 && local_30 < local_18;
if (!bVar14 || local_30 >= local_18) break;
local_30 = local_30 + 1;
}
if (local_18 <= local_30) break;
local_32[1] = 0;
local_50 = *(char **)local_28;
if (*local_30 == (st_replace_regex)0x24) {
local_58 = (char *)0x0;
puStack_80 = (int1 *)0x175270;
local_60 = var_get((char *)local_30,&local_58,'\0','\x01');
if (local_60 != 0) {
local_68 = *(char **)(local_60 + 0x10);
local_70 = local_68 + *(long *)(local_60 + 0x18);
puStack_80 = (int1 *)0x1752ac;
append_replace_regex(local_68,local_70,local_20,(char **)local_28);
}
local_30 = (st_replace_regex *)(local_58 + 1);
}
else {
puStack_80 = (int1 *)0x1752d6;
psVar7 = local_18;
in_R8 = local_28;
uVar5 = parse_re_part(local_32 + 1,local_32,(char **)&local_30,(char *)local_18,
(char **)local_28);
iStack_b4 = (int)in_R9;
if ((uVar5 & 1) != 0) goto LAB_00175362;
local_48 = *(char **)local_28;
puStack_80 = (int1 *)0x175305;
psVar7 = local_18;
in_R8 = local_28;
uVar5 = parse_re_part(local_32 + 1,local_32,(char **)&local_30,(char *)local_18,
(char **)local_28);
iStack_b4 = (int)in_R9;
if ((uVar5 & 1) != 0) goto LAB_00175362;
if ((local_30 < local_18) && (*local_30 == (st_replace_regex)0x69)) {
local_30 = local_30 + 1;
local_40 = 1;
}
puStack_80 = (int1 *)0x175345;
cVar2 = insert_dynamic(local_20);
if (cVar2 != '\0') {
puStack_80 = (int1 *)0x175357;
die("Out of memory");
}
}
}
if (*(int *)(local_20 + 8) != 0) {
return local_20;
}
LAB_00175362:
puStack_80 = (int1 *)0x17536e;
my_free(*(int8 *)local_20);
puStack_80 = (int1 *)0x175377;
my_free(local_20);
pcVar12 = "Error parsing replace_regex \"%s\"";
puStack_80 = (int1 *)0x175389;
piVar9 = local_10;
die("Error parsing replace_regex \"%s\"");
psStack_100 = *(st_replace_regex **)pcVar12;
uStack_11c = 0x10;
iVar3 = *piVar9;
psStack_b0 = in_R8;
psStack_a8 = psVar7;
uStack_a0 = extraout_RDX;
piStack_98 = piVar9;
pcStack_90 = pcVar12;
puStack_80 = &stack0xfffffffffffffff8;
sVar6 = strlen((char *)in_R8);
psVar7 = psStack_b0 + sVar6;
psVar8 = (st_replace_regex *)(sVar6 * 2 + 1);
psStack_110 = (st_replace_regex *)(long)iVar3;
if ((st_replace_regex *)(long)iVar3 < psVar8) {
psStack_100 = (st_replace_regex *)my_realloc(0,psStack_100,psVar8,0x18);
psStack_110 = psVar8;
}
if (iStack_b4 != 0) {
uStack_11c = 0x11;
}
iVar3 = pcre2_regcomp(arStack_e8,uStack_a0,uStack_11c);
if (iVar3 == 0) {
piVar9 = (int *)my_malloc(0,(lStack_d0 + 1) * 8,0x18);
psVar8 = psStack_a8;
*psStack_100 = (st_replace_regex)0x0;
psStack_130 = psStack_b0;
sVar6 = strlen((char *)psStack_a8);
psVar8 = psVar8 + sVar6;
iStack_120 = 0;
psStack_128 = psStack_100;
while (iStack_120 == 0) {
uVar13 = 4;
if (psStack_130 == psStack_b0) {
uVar13 = 0;
}
iStack_120 = pcre2_regexec(arStack_e8,psStack_130,lStack_d0 + 1,piVar9,uVar13);
if ((iStack_120 != 0) && (iStack_120 != 0x11)) {
check_regerr(arStack_e8,iStack_120);
pcre2_regfree(arStack_e8);
uStack_84 = 1;
goto LAB_00175a80;
}
if (iStack_120 == 0) {
psStack_148 = psStack_a8;
psStack_118 = psStack_128 + ((long)*piVar9 - (long)psStack_100);
while (psStack_148 < psVar8) {
iStack_150 = -1;
if ((*psStack_148 == (st_replace_regex)0x5c) && (psStack_148 + 1 < psVar8)) {
iStack_150 = (char)psStack_148[1] + -0x30;
}
if ((iStack_150 < 0) || ((int)lStack_d0 < iStack_150)) {
psStack_148 = psStack_148 + 1;
psStack_118 = psStack_118 + 1;
}
else {
if ((-1 < piVar9[(long)iStack_150 * 2]) && (-1 < piVar9[(long)iStack_150 * 2 + 1])) {
psStack_118 = psStack_118 +
(piVar9[(long)iStack_150 * 2 + 1] - piVar9[(long)iStack_150 * 2]);
}
psStack_148 = psStack_148 + 2;
}
}
psStack_118 = psStack_118 + 1;
if (psStack_110 < psStack_118) {
lVar10 = (long)psStack_128 - (long)psStack_100;
psStack_100 = (st_replace_regex *)my_realloc(0,psStack_100,psStack_118,0x18);
psStack_128 = psStack_100 + lVar10;
psStack_110 = psStack_118;
}
if (*piVar9 != 0) {
memcpy(psStack_128,psStack_130,(long)*piVar9);
psStack_128 = psStack_128 + *piVar9;
}
psStack_148 = psStack_a8;
while (psStack_148 < psVar8) {
iStack_164 = -1;
if ((*psStack_148 == (st_replace_regex)0x5c) && (psStack_148 + 1 < psVar8)) {
iStack_164 = (char)psStack_148[1] + -0x30;
}
if ((iStack_164 < 0) || ((int)lStack_d0 < iStack_164)) {
*psStack_128 = *psStack_148;
psStack_148 = psStack_148 + 1;
psStack_128 = psStack_128 + 1;
}
else {
iVar3 = piVar9[(long)iStack_164 * 2];
if ((-1 < iVar3) && (-1 < piVar9[(long)iStack_164 * 2 + 1])) {
iVar4 = piVar9[(long)iStack_164 * 2 + 1] - iVar3;
memcpy(psStack_128,psStack_130 + iVar3,(long)iVar4);
psStack_128 = psStack_128 + iVar4;
}
psStack_148 = psStack_148 + 2;
}
}
if (*piVar9 == piVar9[1]) {
if (psVar7 <= psStack_130 + *piVar9) break;
psVar11 = psStack_130 + piVar9[1];
psStack_130 = psVar11 + 1;
*psStack_128 = *psVar11;
psStack_128 = psStack_128 + 1;
}
else {
psStack_130 = psStack_130 + piVar9[1];
}
}
else {
sVar6 = (long)psVar7 - (long)psStack_130;
psVar11 = psStack_128 + (sVar6 - (long)psStack_100);
if (psStack_110 < psVar11) {
lVar10 = (long)psStack_128 - (long)psStack_100;
psStack_100 = (st_replace_regex *)my_realloc(0,psStack_100,psVar11,0x18);
psStack_128 = psStack_100 + lVar10;
psStack_110 = psVar11;
}
memcpy(psStack_128,psStack_130,sVar6);
psStack_130 = psVar7;
psStack_128 = psStack_128 + sVar6;
}
}
my_free(piVar9);
pcre2_regfree(arStack_e8);
*psStack_128 = (st_replace_regex)0x0;
*(st_replace_regex **)pcStack_90 = psStack_100;
*piStack_98 = (int)psStack_110;
uStack_84 = 0;
}
else {
check_regerr(arStack_e8,iVar3);
uStack_84 = 1;
}
LAB_00175a80:
return (st_replace_regex *)(ulong)uStack_84;
}
|
|
59,690
|
CLI::detail::generate_parents(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>>&, char)
|
MikePodsytnik[P]TCRtrie/build_O3/_deps/cli11-src/include/CLI/impl/Config_inl.hpp
|
CLI11_INLINE std::vector<std::string>
generate_parents(const std::string §ion, std::string &name, char parentSeparator) {
std::vector<std::string> parents;
if(detail::to_lower(section) != "default") {
if(section.find(parentSeparator) != std::string::npos) {
parents = detail::split(section, parentSeparator);
} else {
parents = {section};
}
}
if(name.find(parentSeparator) != std::string::npos) {
std::vector<std::string> plist = detail::split(name, parentSeparator);
name = plist.back();
detail::remove_quotes(name);
plist.pop_back();
parents.insert(parents.end(), plist.begin(), plist.end());
}
// clean up quotes on the parents
for(auto &parent : parents) {
detail::remove_quotes(parent);
}
return parents;
}
|
O3
|
cpp
|
CLI::detail::generate_parents(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>>&, char):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, 0x48(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%rsi), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0x177be
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
addq %rdi, %rsi
movq %rdi, %rdx
callq 0x1550a
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x28(%rsp), %rax
leaq 0x38(%rsp), %rcx
cmpq %rcx, %rax
je 0x2a3f3
movq %rax, (%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x10(%rsp)
jmp 0x2a3fb
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x30(%rsp), %rax
movq %rsp, %rbx
movq %rax, 0x8(%rbx)
movq %rcx, 0x28(%rsp)
movq $0x0, 0x30(%rsp)
movb $0x0, 0x38(%rsp)
leaq 0xd917(%rip), %rsi # 0x37d38
movq %rbx, %rdi
callq 0x7130
movl %eax, %r12d
movq (%rbx), %rdi
cmpq %r13, %rdi
je 0x2a441
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x7430
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
movq 0x48(%rsp), %rbx
je 0x2a462
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x7430
movsbl %bpl, %ebp
testl %r12d, %r12d
je 0x2a50e
movq %r15, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x7540
cmpq $-0x1, %rax
je 0x2a4d3
leaq 0x50(%rsp), %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x1282a
movq 0x10(%rbx), %rax
leaq 0x50(%rsp), %r15
movaps (%r15), %xmm0
movq 0x10(%r15), %rcx
movq %rcx, 0x10(%rbx)
movups (%rbx), %xmm1
movups %xmm0, (%rbx)
movq %rsp, %rdi
movaps %xmm1, (%rdi)
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%r15)
movq $0x0, 0x10(%r15)
callq 0xb00e
movq %r15, %rdi
callq 0xb00e
jmp 0x2a50e
movq %rsp, %rdi
movq %r13, (%rdi)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
callq 0x177be
leaq 0x20(%rsp), %rdx
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x2b886
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x2a50e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x7430
movq %r14, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x7540
cmpq $-0x1, %rax
je 0x2a5d3
movq %rsp, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x1282a
movq 0x8(%rsp), %rsi
addq $-0x20, %rsi
movq %r14, %rdi
callq 0x7210
movq 0x8(%r14), %rax
cmpq $0x2, %rax
jb 0x2a590
movq (%r14), %rcx
movzbl (%rcx), %edx
cmpl $0x27, %edx
je 0x2a55c
cmpl $0x22, %edx
jne 0x2a590
cmpb -0x1(%rcx,%rax), %dl
jne 0x2a590
movq %r14, %rdi
callq 0x7500
cmpq $0x1, 0x8(%r14)
jne 0x2a581
movq (%r14), %rax
movq $0x0, 0x8(%r14)
movb $0x0, (%rax)
jmp 0x2a590
movl $0x1, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x74e0
movq 0x8(%rsp), %rax
leaq -0x20(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq -0x20(%rax), %rdi
addq $-0x10, %rax
cmpq %rax, %rdi
je 0x2a5bb
movq (%rax), %rsi
incq %rsi
callq 0x7430
movq 0x8(%rsp), %rcx
movq 0x8(%rbx), %rsi
movq (%rsp), %rdx
movq %rbx, %rdi
callq 0x2bbb8
movq %rsp, %rdi
callq 0xb00e
movq (%rbx), %r14
movq 0x8(%rbx), %r15
cmpq %r15, %r14
je 0x2a633
movq 0x8(%r14), %rax
cmpq $0x2, %rax
jb 0x2a62d
movq (%r14), %rcx
movzbl (%rcx), %edx
cmpl $0x27, %edx
je 0x2a5f9
cmpl $0x22, %edx
jne 0x2a62d
cmpb -0x1(%rcx,%rax), %dl
jne 0x2a62d
movq %r14, %rdi
callq 0x7500
cmpq $0x1, 0x8(%r14)
jne 0x2a61e
movq (%r14), %rax
movq $0x0, 0x8(%r14)
movb $0x0, (%rax)
jmp 0x2a62d
movl $0x1, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x74e0
addq $0x20, %r14
jmp 0x2a5da
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x2a693
movq 0x10(%rsp), %rsi
jmp 0x2a684
jmp 0x2a690
jmp 0x2a690
jmp 0x2a660
jmp 0x2a690
movq %rax, %r15
movq %rsp, %rdi
callq 0xb00e
jmp 0x2a693
movq %rax, %r15
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2a693
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x7430
jmp 0x2a693
jmp 0x2a690
movq %rax, %r15
movq 0x48(%rsp), %rdi
callq 0xb00e
movq %r15, %rdi
callq 0x7780
|
_ZN3CLI6detail16generate_parentsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERS6_c:
push rbp; int
push r15; int
push r14; int
push r13; int
push r12; int
push rbx; int
sub rsp, 68h
mov ebp, ecx
mov r14, rdx
mov r15, rsi
mov qword ptr [rsp+98h+var_50], rdi; int
xorps xmm0, xmm0
movups xmmword ptr [rdi], xmm0
mov qword ptr [rdi+10h], 0
lea rax, [rsp+98h+var_60]
mov [rax-10h], rax
mov rsi, [rsi]
mov rdx, [r15+8]
add rdx, rsi
lea rdi, [rsp+98h+var_70]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
mov rdi, [rsp+98h+var_70]
mov rsi, qword ptr [rsp+98h+var_68]
add rsi, rdi
mov rdx, rdi
call _ZSt9transformIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEES9_ZN3CLI6detail8to_lowerES8_EUlRKcE_ET0_T_SG_SF_T1_; std::transform<__gnu_cxx::__normal_iterator<char *,std::string>,__gnu_cxx::__normal_iterator<char *,std::string>,CLI::detail::to_lower(std::string)::{lambda(char const&)#1}>(__gnu_cxx::__normal_iterator<char *,std::string>,__gnu_cxx::__normal_iterator<char *,std::string>,__gnu_cxx::__normal_iterator<char *,std::string>,CLI::detail::to_lower(std::string)::{lambda(char const&)#1})
lea r13, [rsp+98h+var_88]
mov [r13-10h], r13
mov rax, [rsp+98h+var_70]
lea rcx, [rsp+98h+var_60]
cmp rax, rcx
jz short loc_2A3F3
mov [rsp+98h+var_98], rax
mov rax, qword ptr [rsp+98h+var_60]
mov [rsp+98h+var_88], rax
jmp short loc_2A3FB
loc_2A3F3:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r13+0], xmm0
loc_2A3FB:
mov rax, qword ptr [rsp+98h+var_68]
mov rbx, rsp
mov [rbx+8], rax
mov [rsp+98h+var_70], rcx; int
mov qword ptr [rsp+98h+var_68], 0; int
mov byte ptr [rsp+98h+var_60], 0; int
lea rsi, aDefault; "default"
mov rdi, rbx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
mov r12d, eax
mov rdi, [rbx]; void *
cmp rdi, r13
jz short loc_2A441
mov rsi, [rsp+98h+var_88]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2A441:
mov rdi, [rsp+98h+var_70]; void *
lea rax, [rsp+98h+var_60]
cmp rdi, rax
mov rbx, qword ptr [rsp+98h+var_50]
jz short loc_2A462
mov rsi, qword ptr [rsp+98h+var_60]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2A462:
movsx ebp, bpl
test r12d, r12d
jz loc_2A50E
mov rdi, r15
mov esi, ebp
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm; std::string::find(char,ulong)
cmp rax, 0FFFFFFFFFFFFFFFFh
jz short loc_2A4D3
lea rdi, [rsp+98h+var_48]; int
mov rsi, r15; int
mov edx, ebp; int
call _ZN3CLI6detail5splitERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEc; CLI::detail::split(std::string const&,char)
mov rax, [rbx+10h]
lea r15, [rsp+98h+var_48]
movaps xmm0, xmmword ptr [r15]
mov rcx, [r15+10h]
mov [rbx+10h], rcx
movups xmm1, xmmword ptr [rbx]
movups xmmword ptr [rbx], xmm0
mov rdi, rsp
movaps xmmword ptr [rdi], xmm1
mov [rdi+10h], rax
xorps xmm0, xmm0
movaps xmmword ptr [r15], xmm0
mov qword ptr [r15+10h], 0
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, r15
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp short loc_2A50E
loc_2A4D3:
mov rdi, rsp
mov [rdi], r13
mov rsi, [r15]
mov rdx, [r15+8]
add rdx, rsi
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rdx, [rsp+98h+var_78]
mov rsi, rsp
mov rdi, rbx
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE13_M_assign_auxIPKS5_EEvT_SB_St20forward_iterator_tag; std::vector<std::string>::_M_assign_aux<std::string const*>(std::string const*,std::string const*,std::forward_iterator_tag)
mov rdi, [rsp+98h+var_98]; void *
cmp rdi, r13
jz short loc_2A50E
mov rsi, [rsp+98h+var_88]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2A50E:
mov rdi, r14
mov esi, ebp
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm; std::string::find(char,ulong)
cmp rax, 0FFFFFFFFFFFFFFFFh
jz loc_2A5D3
mov rdi, rsp; int
mov rsi, r14; int
mov edx, ebp; int
call _ZN3CLI6detail5splitERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEc; CLI::detail::split(std::string const&,char)
mov rsi, [rsp+98h+var_90]
add rsi, 0FFFFFFFFFFFFFFE0h
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
mov rax, [r14+8]
cmp rax, 2
jb short loc_2A590
mov rcx, [r14]
movzx edx, byte ptr [rcx]
cmp edx, 27h ; '''
jz short loc_2A55C
cmp edx, 22h ; '"'
jnz short loc_2A590
loc_2A55C:
cmp dl, [rcx+rax-1]
jnz short loc_2A590
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8pop_backEv; std::string::pop_back(void)
cmp qword ptr [r14+8], 1
jnz short loc_2A581
mov rax, [r14]
mov qword ptr [r14+8], 0
mov byte ptr [rax], 0
jmp short loc_2A590
loc_2A581:
mov edx, 1
mov rdi, r14
xor esi, esi
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8_M_eraseEmm; std::string::_M_erase(ulong,ulong)
loc_2A590:
mov rax, [rsp+98h+var_90]
lea rcx, [rax-20h]
mov [rsp+98h+var_90], rcx
mov rdi, [rax-20h]; void *
add rax, 0FFFFFFFFFFFFFFF0h
cmp rdi, rax
jz short loc_2A5BB
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
mov rcx, [rsp+98h+var_90]
loc_2A5BB:
mov rsi, [rbx+8]
mov rdx, [rsp+98h+var_98]
mov rdi, rbx
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE15_M_range_insertIN9__gnu_cxx17__normal_iteratorIPS5_S7_EEEEvSC_T_SD_St20forward_iterator_tag; std::vector<std::string>::_M_range_insert<__gnu_cxx::__normal_iterator<std::string*,std::vector<std::string>>>(__gnu_cxx::__normal_iterator<std::string*,std::vector<std::string>>,__gnu_cxx::__normal_iterator<std::string*,std::vector<std::string>>,__gnu_cxx::__normal_iterator<std::string*,std::vector<std::string>>,std::forward_iterator_tag)
mov rdi, rsp
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
loc_2A5D3:
mov r14, [rbx]
mov r15, [rbx+8]
loc_2A5DA:
cmp r14, r15
jz short loc_2A633
mov rax, [r14+8]
cmp rax, 2
jb short loc_2A62D
mov rcx, [r14]
movzx edx, byte ptr [rcx]
cmp edx, 27h ; '''
jz short loc_2A5F9
cmp edx, 22h ; '"'
jnz short loc_2A62D
loc_2A5F9:
cmp dl, [rcx+rax-1]
jnz short loc_2A62D
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8pop_backEv; std::string::pop_back(void)
cmp qword ptr [r14+8], 1
jnz short loc_2A61E
mov rax, [r14]
mov qword ptr [r14+8], 0
mov byte ptr [rax], 0
jmp short loc_2A62D
loc_2A61E:
mov edx, 1
mov rdi, r14
xor esi, esi
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8_M_eraseEmm; std::string::_M_erase(ulong,ulong)
loc_2A62D:
add r14, 20h ; ' '
jmp short loc_2A5DA
loc_2A633:
mov rax, rbx
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r15, rax
mov rdi, [rsp+0]
cmp rdi, r13
jz short loc_2A693
mov rsi, [rsp+arg_8]
jmp short loc_2A684
jmp short loc_2A690
jmp short loc_2A690
jmp short loc_2A660
jmp short loc_2A690
loc_2A660:
mov r15, rax
mov rdi, rsp
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp short loc_2A693
mov r15, rax
mov rdi, [rsp+arg_20]; void *
lea rax, [rsp+arg_30]
cmp rdi, rax
jz short loc_2A693
mov rsi, [rsp+arg_30]
loc_2A684:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_2A693
jmp short $+2
loc_2A690:
mov r15, rax
loc_2A693:
mov rdi, [rsp+arg_40]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, r15
call __Unwind_Resume
|
unsigned __int8 *** CLI::detail::generate_parents(long long a1, _BYTE **a2, unsigned __int8 **a3, char a4)
{
int v6; // r12d
unsigned __int8 ***v7; // rbx
unsigned __int8 **v8; // rax
__int128 v9; // xmm0
__int128 v10; // xmm1
unsigned long long v11; // rax
int v12; // edx
unsigned __int8 *v13; // rax
long long v14; // rax
void **v15; // rcx
_QWORD *v16; // rax
unsigned __int8 **v17; // r14
unsigned __int8 **v18; // r15
unsigned long long v19; // rax
int v20; // edx
unsigned __int8 *v21; // rax
__int128 v23; // [rsp+0h] [rbp-98h] BYREF
__int128 v24; // [rsp+10h] [rbp-88h] BYREF
char v25[8]; // [rsp+20h] [rbp-78h] BYREF
void *v26; // [rsp+28h] [rbp-70h] BYREF
int v27[2]; // [rsp+30h] [rbp-68h]
__int128 v28; // [rsp+38h] [rbp-60h] BYREF
int v29[2]; // [rsp+48h] [rbp-50h]
__int128 v30; // [rsp+50h] [rbp-48h] BYREF
unsigned __int8 **v31; // [rsp+60h] [rbp-38h]
*(_QWORD *)v29 = a1;
*(_OWORD *)a1 = 0LL;
*(_QWORD *)(a1 + 16) = 0LL;
v26 = &v28;
std::string::_M_construct<char *>((long long)&v26, *a2, (long long)&a2[1][(_QWORD)*a2]);
std::transform<__gnu_cxx::__normal_iterator<char *,std::string>,__gnu_cxx::__normal_iterator<char *,std::string>,CLI::detail::to_lower(std::string)::{lambda(char const&)#1}>(
(char *)v26,
(char *)v26 + *(_QWORD *)v27,
v26);
*(_QWORD *)&v23 = &v24;
if ( v26 == &v28 )
{
v24 = v28;
}
else
{
*(_QWORD *)&v23 = v26;
*(_QWORD *)&v24 = v28;
}
*((_QWORD *)&v23 + 1) = *(_QWORD *)v27;
v26 = &v28;
*(_QWORD *)v27 = 0LL;
LOBYTE(v28) = 0;
v6 = std::string::compare(&v23, "default");
if ( (__int128 *)v23 != &v24 )
operator delete((void *)v23, v24 + 1);
v7 = *(unsigned __int8 ****)v29;
if ( v26 != &v28 )
operator delete(v26, v28 + 1);
if ( v6 )
{
if ( std::string::find(a2, (unsigned int)a4, 0LL) == -1 )
{
*(_QWORD *)&v23 = &v24;
std::string::_M_construct<char *>((long long)&v23, *a2, (long long)&a2[1][(_QWORD)*a2]);
std::vector<std::string>::_M_assign_aux<std::string const*>(v7, &v23, v25);
if ( (__int128 *)v23 != &v24 )
operator delete((void *)v23, v24 + 1);
}
else
{
CLI::detail::split((long long)&v30, (long long)a2, a4);
v8 = v7[2];
v9 = v30;
v7[2] = v31;
v10 = *(_OWORD *)v7;
*(_OWORD *)v7 = v9;
v23 = v10;
*(_QWORD *)&v24 = v8;
v30 = 0LL;
v31 = 0LL;
std::vector<std::string>::~vector((long long)&v23);
std::vector<std::string>::~vector((long long)&v30);
}
}
if ( std::string::find(a3, (unsigned int)a4, 0LL) != -1 )
{
CLI::detail::split((long long)&v23, (long long)a3, a4);
std::string::_M_assign(a3, *((_QWORD *)&v23 + 1) - 32LL);
v11 = (unsigned long long)a3[1];
if ( v11 >= 2 )
{
v12 = **a3;
if ( (v12 == 39 || v12 == 34) && (_BYTE)v12 == (*a3)[v11 - 1] )
{
std::string::pop_back(a3);
if ( a3[1] == (_BYTE *)&dword_0 + 1 )
{
v13 = *a3;
a3[1] = 0LL;
*v13 = 0;
}
else
{
std::string::_M_erase(a3, 0LL, 1LL);
}
}
}
v14 = *((_QWORD *)&v23 + 1);
v15 = (void **)(*((_QWORD *)&v23 + 1) - 32LL);
*((_QWORD *)&v23 + 1) = v15;
v16 = (_QWORD *)(v14 - 16);
if ( *v15 != v16 )
{
operator delete(*v15, *v16 + 1LL);
v15 = (void **)*((_QWORD *)&v23 + 1);
}
std::vector<std::string>::_M_range_insert<__gnu_cxx::__normal_iterator<std::string*,std::vector<std::string>>>(
v7,
v7[1],
v23,
v15);
std::vector<std::string>::~vector((long long)&v23);
}
v17 = *v7;
v18 = v7[1];
while ( v17 != v18 )
{
v19 = (unsigned long long)v17[1];
if ( v19 >= 2 )
{
v20 = **v17;
if ( (v20 == 39 || v20 == 34) && (_BYTE)v20 == (*v17)[v19 - 1] )
{
std::string::pop_back(v17);
if ( v17[1] == (_BYTE *)&dword_0 + 1 )
{
v21 = *v17;
v17[1] = 0LL;
*v21 = 0;
}
else
{
std::string::_M_erase(v17, 0LL, 1LL);
}
}
}
v17 += 4;
}
return v7;
}
|
generate_parents:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV EBP,ECX
MOV R14,RDX
MOV R15,RSI
MOV qword ptr [RSP + 0x48],RDI
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI],XMM0
MOV qword ptr [RDI + 0x10],0x0
LEA RAX,[RSP + 0x38]
MOV qword ptr [RAX + -0x10],RAX
MOV RSI,qword ptr [RSI]
MOV RDX,qword ptr [R15 + 0x8]
ADD RDX,RSI
LAB_0012a3ac:
LEA RDI,[RSP + 0x28]
CALL 0x001177be
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x30]
ADD RSI,RDI
LAB_0012a3c3:
MOV RDX,RDI
CALL 0x0011550a
LEA R13,[RSP + 0x10]
MOV qword ptr [R13 + -0x10],R13
MOV RAX,qword ptr [RSP + 0x28]
LEA RCX,[RSP + 0x38]
CMP RAX,RCX
JZ 0x0012a3f3
MOV qword ptr [RSP],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x10],RAX
JMP 0x0012a3fb
LAB_0012a3f3:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R13],XMM0
LAB_0012a3fb:
MOV RAX,qword ptr [RSP + 0x30]
MOV RBX,RSP
MOV qword ptr [RBX + 0x8],RAX
MOV qword ptr [RSP + 0x28],RCX
MOV qword ptr [RSP + 0x30],0x0
MOV byte ptr [RSP + 0x38],0x0
LEA RSI,[0x137d38]
MOV RDI,RBX
CALL 0x00107130
MOV R12D,EAX
MOV RDI,qword ptr [RBX]
CMP RDI,R13
JZ 0x0012a441
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x00107430
LAB_0012a441:
MOV RDI,qword ptr [RSP + 0x28]
LEA RAX,[RSP + 0x38]
CMP RDI,RAX
MOV RBX,qword ptr [RSP + 0x48]
JZ 0x0012a462
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x00107430
LAB_0012a462:
MOVSX EBP,BPL
TEST R12D,R12D
JZ 0x0012a50e
MOV RDI,R15
MOV ESI,EBP
XOR EDX,EDX
CALL 0x00107540
CMP RAX,-0x1
JZ 0x0012a4d3
LAB_0012a481:
LEA RDI,[RSP + 0x50]
MOV RSI,R15
MOV EDX,EBP
CALL 0x0011282a
MOV RAX,qword ptr [RBX + 0x10]
LEA R15,[RSP + 0x50]
MOVAPS XMM0,xmmword ptr [R15]
MOV RCX,qword ptr [R15 + 0x10]
MOV qword ptr [RBX + 0x10],RCX
MOVUPS XMM1,xmmword ptr [RBX]
MOVUPS xmmword ptr [RBX],XMM0
MOV RDI,RSP
MOVAPS xmmword ptr [RDI],XMM1
MOV qword ptr [RDI + 0x10],RAX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [R15],XMM0
MOV qword ptr [R15 + 0x10],0x0
CALL 0x0010b00e
MOV RDI,R15
CALL 0x0010b00e
JMP 0x0012a50e
LAB_0012a4d3:
MOV RDI,RSP
MOV qword ptr [RDI],R13
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
ADD RDX,RSI
LAB_0012a4e3:
CALL 0x001177be
LEA RDX,[RSP + 0x20]
LAB_0012a4ed:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x0012b886
MOV RDI,qword ptr [RSP]
CMP RDI,R13
JZ 0x0012a50e
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x00107430
LAB_0012a50e:
MOV RDI,R14
MOV ESI,EBP
XOR EDX,EDX
CALL 0x00107540
CMP RAX,-0x1
JZ 0x0012a5d3
LAB_0012a524:
MOV RDI,RSP
MOV RSI,R14
MOV EDX,EBP
CALL 0x0011282a
MOV RSI,qword ptr [RSP + 0x8]
ADD RSI,-0x20
LAB_0012a53a:
MOV RDI,R14
CALL 0x00107210
MOV RAX,qword ptr [R14 + 0x8]
CMP RAX,0x2
JC 0x0012a590
MOV RCX,qword ptr [R14]
MOVZX EDX,byte ptr [RCX]
CMP EDX,0x27
JZ 0x0012a55c
CMP EDX,0x22
JNZ 0x0012a590
LAB_0012a55c:
CMP DL,byte ptr [RCX + RAX*0x1 + -0x1]
JNZ 0x0012a590
MOV RDI,R14
CALL 0x00107500
CMP qword ptr [R14 + 0x8],0x1
JNZ 0x0012a581
MOV RAX,qword ptr [R14]
MOV qword ptr [R14 + 0x8],0x0
MOV byte ptr [RAX],0x0
JMP 0x0012a590
LAB_0012a581:
MOV EDX,0x1
MOV RDI,R14
XOR ESI,ESI
CALL 0x001074e0
LAB_0012a590:
MOV RAX,qword ptr [RSP + 0x8]
LEA RCX,[RAX + -0x20]
MOV qword ptr [RSP + 0x8],RCX
MOV RDI,qword ptr [RAX + -0x20]
ADD RAX,-0x10
CMP RDI,RAX
JZ 0x0012a5bb
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x00107430
MOV RCX,qword ptr [RSP + 0x8]
LAB_0012a5bb:
MOV RSI,qword ptr [RBX + 0x8]
MOV RDX,qword ptr [RSP]
LAB_0012a5c3:
MOV RDI,RBX
CALL 0x0012bbb8
MOV RDI,RSP
CALL 0x0010b00e
LAB_0012a5d3:
MOV R14,qword ptr [RBX]
MOV R15,qword ptr [RBX + 0x8]
LAB_0012a5da:
CMP R14,R15
JZ 0x0012a633
MOV RAX,qword ptr [R14 + 0x8]
CMP RAX,0x2
JC 0x0012a62d
MOV RCX,qword ptr [R14]
MOVZX EDX,byte ptr [RCX]
CMP EDX,0x27
JZ 0x0012a5f9
CMP EDX,0x22
JNZ 0x0012a62d
LAB_0012a5f9:
CMP DL,byte ptr [RCX + RAX*0x1 + -0x1]
JNZ 0x0012a62d
MOV RDI,R14
CALL 0x00107500
CMP qword ptr [R14 + 0x8],0x1
JNZ 0x0012a61e
MOV RAX,qword ptr [R14]
MOV qword ptr [R14 + 0x8],0x0
MOV byte ptr [RAX],0x0
JMP 0x0012a62d
LAB_0012a61e:
MOV EDX,0x1
MOV RDI,R14
XOR ESI,ESI
CALL 0x001074e0
LAB_0012a62d:
ADD R14,0x20
JMP 0x0012a5da
LAB_0012a633:
MOV RAX,RBX
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* CLI::detail::generate_parents(std::__cxx11::string const&, std::__cxx11::string&, char) */
detail * __thiscall
CLI::detail::generate_parents(detail *this,string *param_1,string *param_2,char param_3)
{
char cVar1;
int8 *puVar2;
detail *pdVar3;
int iVar4;
long lVar5;
long *plVar6;
int8 *puVar7;
long *local_98;
long lStack_90;
long local_88;
int8 uStack_80;
int1 local_78 [8];
long *local_70;
long local_68;
int1 local_60;
int7 uStack_5f;
int8 uStack_58;
detail *local_50;
int8 local_48;
int8 uStack_40;
int8 local_38;
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
local_70 = (long *)&local_60;
/* try { // try from 0012a3ac to 0012a3b5 has its CatchHandler @ 0012a68e */
local_50 = this;
std::__cxx11::string::_M_construct<char*>
(&local_70,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1);
/* try { // try from 0012a3c3 to 0012a3ca has its CatchHandler @ 0012a66d */
std::
transform<__gnu_cxx::__normal_iterator<char*,std::__cxx11::string>,__gnu_cxx::__normal_iterator<char*,std::__cxx11::string>,CLI::detail::to_lower(std::__cxx11::string)::_lambda(char_const&)_1_>
(local_70,(int1 *)(local_68 + (long)local_70),local_70);
if (local_70 == (long *)&local_60) {
uStack_80 = uStack_58;
local_98 = &local_88;
}
else {
local_98 = local_70;
}
local_88 = CONCAT71(uStack_5f,local_60);
lStack_90 = local_68;
local_68 = 0;
local_60 = 0;
local_70 = (long *)&local_60;
iVar4 = std::__cxx11::string::compare((char *)&local_98);
if (local_98 != &local_88) {
operator_delete(local_98,local_88 + 1);
}
pdVar3 = local_50;
if (local_70 != (long *)&local_60) {
operator_delete(local_70,CONCAT71(uStack_5f,local_60) + 1);
}
if (iVar4 != 0) {
lVar5 = std::__cxx11::string::find((char)param_1,(ulong)(uint)(int)param_3);
if (lVar5 == -1) {
local_98 = &local_88;
/* try { // try from 0012a4e3 to 0012a4e7 has its CatchHandler @ 0012a658 */
std::__cxx11::string::_M_construct<char*>
(&local_98,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1);
/* try { // try from 0012a4ed to 0012a4f7 has its CatchHandler @ 0012a645 */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::
_M_assign_aux<std::__cxx11::string_const*>(pdVar3,&local_98,local_78);
if (local_98 != &local_88) {
operator_delete(local_98,local_88 + 1);
}
}
else {
/* try { // try from 0012a481 to 0012a48f has its CatchHandler @ 0012a65a */
split((detail *)&local_48,param_1,param_3);
local_88 = *(long *)(pdVar3 + 0x10);
*(int8 *)(pdVar3 + 0x10) = local_38;
local_98 = *(long **)pdVar3;
lStack_90 = *(long *)(pdVar3 + 8);
*(int8 *)pdVar3 = local_48;
*(int8 *)(pdVar3 + 8) = uStack_40;
local_48 = 0;
uStack_40 = 0;
local_38 = 0;
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_98);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_48);
}
}
lVar5 = std::__cxx11::string::find((char)param_2,(ulong)(uint)(int)param_3);
if (lVar5 != -1) {
/* try { // try from 0012a524 to 0012a530 has its CatchHandler @ 0012a65e */
split((detail *)&local_98,param_2,param_3);
/* try { // try from 0012a53a to 0012a58f has its CatchHandler @ 0012a660 */
std::__cxx11::string::_M_assign(param_2);
if (1 < *(ulong *)(param_2 + 8)) {
cVar1 = **(char **)param_2;
if (((cVar1 == '\'') || (cVar1 == '\"')) &&
(cVar1 == (*(char **)param_2)[*(ulong *)(param_2 + 8) - 1])) {
std::__cxx11::string::pop_back();
if (*(long *)(param_2 + 8) == 1) {
*(int8 *)(param_2 + 8) = 0;
**(int1 **)param_2 = 0;
}
else {
std::__cxx11::string::_M_erase((ulong)param_2,0);
}
}
}
lVar5 = lStack_90 + -0x20;
puVar7 = (int8 *)(lStack_90 + -0x20);
plVar6 = (long *)(lStack_90 + -0x10);
lStack_90 = lVar5;
if ((long *)*puVar7 != plVar6) {
operator_delete((long *)*puVar7,*plVar6 + 1);
}
/* try { // try from 0012a5c3 to 0012a5ca has its CatchHandler @ 0012a65c */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::
_M_range_insert<__gnu_cxx::__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>>
(pdVar3,*(int8 *)(pdVar3 + 8),local_98,lStack_90);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_98);
}
puVar2 = *(int8 **)(pdVar3 + 8);
for (puVar7 = *(int8 **)pdVar3; puVar7 != puVar2; puVar7 = puVar7 + 4) {
if (1 < (ulong)puVar7[1]) {
cVar1 = *(char *)*puVar7;
if (((cVar1 == '\'') || (cVar1 == '\"')) && (cVar1 == ((char *)*puVar7)[puVar7[1] - 1])) {
std::__cxx11::string::pop_back();
if (puVar7[1] == 1) {
puVar7[1] = 0;
*(int1 *)*puVar7 = 0;
}
else {
/* try { // try from 0012a61e to 0012a62c has its CatchHandler @ 0012a690 */
std::__cxx11::string::_M_erase((ulong)puVar7,0);
}
}
}
}
return pdVar3;
}
|
|
59,691
|
js_module_ns_has
|
bluesky950520[P]quickjs/quickjs.c
|
static int js_module_ns_has(JSContext *ctx, JSValue obj, JSAtom atom)
{
return (find_own_property1(JS_VALUE_GET_OBJ(obj), atom) != NULL);
}
|
O0
|
c
|
js_module_ns_has:
subq $0x58, %rsp
movq %rsi, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq %rdi, 0x8(%rsp)
movl %ecx, 0x4(%rsp)
movq 0x10(%rsp), %rcx
movl 0x4(%rsp), %eax
movq %rcx, 0x48(%rsp)
movl %eax, 0x44(%rsp)
movq 0x48(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x38(%rsp)
movl 0x44(%rsp), %eax
movq 0x38(%rsp), %rcx
movl 0x20(%rcx), %ecx
andq %rcx, %rax
movq %rax, 0x20(%rsp)
movq 0x38(%rsp), %rdi
callq 0x5d8b0
xorl %ecx, %ecx
subq 0x20(%rsp), %rcx
subq $0x1, %rcx
movl (%rax,%rcx,4), %eax
movq %rax, 0x20(%rsp)
movq 0x38(%rsp), %rdi
callq 0x2c280
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x7333f
movq 0x28(%rsp), %rax
movq 0x20(%rsp), %rcx
subq $0x1, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
movl 0x4(%rax), %eax
cmpl 0x44(%rsp), %eax
sete %al
testb $0x1, %al
jne 0x7331e
jmp 0x7332a
movq 0x30(%rsp), %rax
movq %rax, 0x50(%rsp)
jmp 0x73348
movq 0x30(%rsp), %rax
movl (%rax), %eax
andl $0x3ffffff, %eax # imm = 0x3FFFFFF
movl %eax, %eax
movq %rax, 0x20(%rsp)
jmp 0x732e7
movq $0x0, 0x50(%rsp)
cmpq $0x0, 0x50(%rsp)
setne %al
andb $0x1, %al
movzbl %al, %eax
addq $0x58, %rsp
retq
nopl (%rax,%rax)
|
js_module_ns_has:
sub rsp, 58h
mov [rsp+58h+var_48], rsi
mov [rsp+58h+var_40], rdx
mov [rsp+58h+var_50], rdi
mov [rsp+58h+var_54], ecx
mov rcx, [rsp+58h+var_48]
mov eax, [rsp+58h+var_54]
mov [rsp+58h+var_10], rcx
mov [rsp+58h+var_14], eax
mov rax, [rsp+58h+var_10]
mov rax, [rax+18h]
mov [rsp+58h+var_20], rax
mov eax, [rsp+58h+var_14]
mov rcx, [rsp+58h+var_20]
mov ecx, [rcx+20h]
and rax, rcx
mov [rsp+58h+var_38], rax
mov rdi, [rsp+58h+var_20]
call prop_hash_end
xor ecx, ecx
sub rcx, [rsp+58h+var_38]
sub rcx, 1
mov eax, [rax+rcx*4]
mov [rsp+58h+var_38], rax
mov rdi, [rsp+58h+var_20]
call get_shape_prop
mov [rsp+58h+var_30], rax
loc_732E7:
cmp [rsp+58h+var_38], 0
jz short loc_7333F
mov rax, [rsp+58h+var_30]
mov rcx, [rsp+58h+var_38]
sub rcx, 1
shl rcx, 3
add rax, rcx
mov [rsp+58h+var_28], rax
mov rax, [rsp+58h+var_28]
mov eax, [rax+4]
cmp eax, [rsp+58h+var_14]
setz al
test al, 1
jnz short loc_7331E
jmp short loc_7332A
loc_7331E:
mov rax, [rsp+58h+var_28]
mov [rsp+58h+var_8], rax
jmp short loc_73348
loc_7332A:
mov rax, [rsp+58h+var_28]
mov eax, [rax]
and eax, 3FFFFFFh
mov eax, eax
mov [rsp+58h+var_38], rax
jmp short loc_732E7
loc_7333F:
mov [rsp+58h+var_8], 0
loc_73348:
cmp [rsp+58h+var_8], 0
setnz al
and al, 1
movzx eax, al
add rsp, 58h
retn
|
_BOOL8 js_module_ns_has(long long a1, long long a2, long long a3, unsigned int a4)
{
long long v5; // [rsp+20h] [rbp-38h]
long long v6; // [rsp+20h] [rbp-38h]
long long shape_prop; // [rsp+28h] [rbp-30h]
_DWORD *v8; // [rsp+30h] [rbp-28h]
long long v9; // [rsp+38h] [rbp-20h]
long long v11; // [rsp+50h] [rbp-8h]
v9 = *(_QWORD *)(a2 + 24);
v5 = *(_DWORD *)(v9 + 32) & a4;
v6 = *(unsigned int *)(prop_hash_end(v9) + 4 * (-v5 - 1));
shape_prop = get_shape_prop(v9);
while ( v6 )
{
v8 = (_DWORD *)(8 * (v6 - 1) + shape_prop);
if ( v8[1] == a4 )
{
v11 = 8 * (v6 - 1) + shape_prop;
return v11 != 0;
}
v6 = *v8 & 0x3FFFFFF;
}
v11 = 0LL;
return v11 != 0;
}
|
js_module_ns_has:
SUB RSP,0x58
MOV qword ptr [RSP + 0x10],RSI
MOV qword ptr [RSP + 0x18],RDX
MOV qword ptr [RSP + 0x8],RDI
MOV dword ptr [RSP + 0x4],ECX
MOV RCX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RSP + 0x4]
MOV qword ptr [RSP + 0x48],RCX
MOV dword ptr [RSP + 0x44],EAX
MOV RAX,qword ptr [RSP + 0x48]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP + 0x38],RAX
MOV EAX,dword ptr [RSP + 0x44]
MOV RCX,qword ptr [RSP + 0x38]
MOV ECX,dword ptr [RCX + 0x20]
AND RAX,RCX
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,qword ptr [RSP + 0x38]
CALL 0x0015d8b0
XOR ECX,ECX
SUB RCX,qword ptr [RSP + 0x20]
SUB RCX,0x1
MOV EAX,dword ptr [RAX + RCX*0x4]
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,qword ptr [RSP + 0x38]
CALL 0x0012c280
MOV qword ptr [RSP + 0x28],RAX
LAB_001732e7:
CMP qword ptr [RSP + 0x20],0x0
JZ 0x0017333f
MOV RAX,qword ptr [RSP + 0x28]
MOV RCX,qword ptr [RSP + 0x20]
SUB RCX,0x1
SHL RCX,0x3
ADD RAX,RCX
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0x30]
MOV EAX,dword ptr [RAX + 0x4]
CMP EAX,dword ptr [RSP + 0x44]
SETZ AL
TEST AL,0x1
JNZ 0x0017331e
JMP 0x0017332a
LAB_0017331e:
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x50],RAX
JMP 0x00173348
LAB_0017332a:
MOV RAX,qword ptr [RSP + 0x30]
MOV EAX,dword ptr [RAX]
AND EAX,0x3ffffff
MOV EAX,EAX
MOV qword ptr [RSP + 0x20],RAX
JMP 0x001732e7
LAB_0017333f:
MOV qword ptr [RSP + 0x50],0x0
LAB_00173348:
CMP qword ptr [RSP + 0x50],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
ADD RSP,0x58
RET
|
bool js_module_ns_has(int8 param_1,long param_2,int8 param_3,uint param_4)
{
uint uVar1;
long lVar2;
long lVar3;
ulong local_38;
uint *local_8;
lVar3 = *(long *)(param_2 + 0x18);
uVar1 = *(uint *)(lVar3 + 0x20);
lVar2 = prop_hash_end(lVar3);
uVar1 = *(uint *)(lVar2 + (-1 - (ulong)(param_4 & uVar1)) * 4);
lVar3 = get_shape_prop(lVar3);
while (local_38 = (ulong)uVar1, local_38 != 0) {
local_8 = (uint *)(lVar3 + (local_38 - 1) * 8);
if (local_8[1] == param_4) goto LAB_00173348;
uVar1 = *local_8 & 0x3ffffff;
}
local_8 = (uint *)0x0;
LAB_00173348:
return local_8 != (uint *)0x0;
}
|
|
59,692
|
ggml_compute_forward_pool_2d
|
monkey531[P]llama/ggml/src/ggml-cpu/ggml-cpu.c
|
static void ggml_compute_forward_pool_2d(
const struct ggml_compute_params * params,
struct ggml_tensor * dst) {
const struct ggml_tensor * src = dst->src[0];
assert(src->type == GGML_TYPE_F32 || src->type == GGML_TYPE_F16);
if (params->ith != 0) {
return;
}
const int32_t * opts = (const int32_t *)dst->op_params;
enum ggml_op_pool op = opts[0];
const int k0 = opts[1];
const int k1 = opts[2];
const int s0 = opts[3];
const int s1 = opts[4];
const int p0 = opts[5];
const int p1 = opts[6];
const char * cdata = (const char*)src->data;
const char * const data_end = cdata + ggml_nbytes(src);
const int64_t px = dst->ne[0];
const int64_t py = dst->ne[1];
const int64_t pa = px * py;
float * dplane = (float *)dst->data;
const int ka = k0 * k1;
const int offset0 = -p0;
const int offset1 = -p1;
while (cdata < data_end) {
for (int oy = 0; oy < py; ++oy) {
float * const drow = dplane + oy * px;
for (int ox = 0; ox < px; ++ox) {
float * const out = drow + ox;
switch (op) {
case GGML_OP_POOL_AVG: *out = 0; break;
case GGML_OP_POOL_MAX: *out = -FLT_MAX; break;
case GGML_OP_POOL_COUNT: GGML_ABORT("fatal error");
}
const int ix = offset0 + ox * s0;
const int iy = offset1 + oy * s1;
for (int ky = 0; ky < k1; ++ky) {
if (iy + ky < 0 || iy + ky >= src->ne[1]) continue;
const void * srow = (const void *)(cdata + src->nb[1] * (iy + ky));
for (int kx = 0; kx < k0; ++kx) {
int j = ix + kx;
if (j < 0 || j >= src->ne[0]) continue;
const float srow_j = (src->type == GGML_TYPE_F32) ? ((const float*)srow)[j] : GGML_FP16_TO_FP32(((const ggml_fp16_t*)srow)[j]);
switch (op) {
case GGML_OP_POOL_AVG: *out += srow_j; break;
case GGML_OP_POOL_MAX: if (srow_j > *out) *out = srow_j; break;
case GGML_OP_POOL_COUNT: GGML_ABORT("fatal error");
}
}
}
switch (op) {
case GGML_OP_POOL_AVG: *out /= ka; break;
case GGML_OP_POOL_MAX: break;
case GGML_OP_POOL_COUNT: GGML_ABORT("fatal error");
}
}
}
cdata += src->nb[2];
dplane += pa;
}
}
|
O0
|
c
|
ggml_compute_forward_pool_2d:
subq $0xd8, %rsp
movq %rdi, 0xd0(%rsp)
movq %rsi, 0xc8(%rsp)
movq 0xc8(%rsp), %rax
movq 0x98(%rax), %rax
movq %rax, 0xc0(%rsp)
movq 0xd0(%rsp), %rax
cmpl $0x0, (%rax)
je 0x17c40
jmp 0x180e0
movq 0xc8(%rsp), %rax
addq $0x54, %rax
movq %rax, 0xb8(%rsp)
movq 0xb8(%rsp), %rax
movl (%rax), %eax
movl %eax, 0xb4(%rsp)
movq 0xb8(%rsp), %rax
movl 0x4(%rax), %eax
movl %eax, 0xb0(%rsp)
movq 0xb8(%rsp), %rax
movl 0x8(%rax), %eax
movl %eax, 0xac(%rsp)
movq 0xb8(%rsp), %rax
movl 0xc(%rax), %eax
movl %eax, 0xa8(%rsp)
movq 0xb8(%rsp), %rax
movl 0x10(%rax), %eax
movl %eax, 0xa4(%rsp)
movq 0xb8(%rsp), %rax
movl 0x14(%rax), %eax
movl %eax, 0xa0(%rsp)
movq 0xb8(%rsp), %rax
movl 0x18(%rax), %eax
movl %eax, 0x9c(%rsp)
movq 0xc0(%rsp), %rax
movq 0xf8(%rax), %rax
movq %rax, 0x90(%rsp)
movq 0x90(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0xc0(%rsp), %rdi
callq 0xc0b0
movq %rax, %rcx
movq 0x10(%rsp), %rax
addq %rcx, %rax
movq %rax, 0x88(%rsp)
movq 0xc8(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x80(%rsp)
movq 0xc8(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x78(%rsp)
movq 0x80(%rsp), %rax
imulq 0x78(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0xc8(%rsp), %rax
movq 0xf8(%rax), %rax
movq %rax, 0x68(%rsp)
movl 0xb0(%rsp), %eax
imull 0xac(%rsp), %eax
movl %eax, 0x64(%rsp)
xorl %eax, %eax
subl 0xa0(%rsp), %eax
movl %eax, 0x60(%rsp)
xorl %eax, %eax
subl 0x9c(%rsp), %eax
movl %eax, 0x5c(%rsp)
movq 0x90(%rsp), %rax
cmpq 0x88(%rsp), %rax
jae 0x180e0
movl $0x0, 0x58(%rsp)
movslq 0x58(%rsp), %rax
cmpq 0x78(%rsp), %rax
jge 0x180ac
movq 0x68(%rsp), %rax
movslq 0x58(%rsp), %rcx
imulq 0x80(%rsp), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, 0x50(%rsp)
movl $0x0, 0x4c(%rsp)
movslq 0x4c(%rsp), %rax
cmpq 0x80(%rsp), %rax
jge 0x1809a
movq 0x50(%rsp), %rax
movslq 0x4c(%rsp), %rcx
leaq (%rax,%rcx,4), %rax
movq %rax, 0x40(%rsp)
movl 0xb4(%rsp), %eax
movl %eax, 0xc(%rsp)
testl %eax, %eax
je 0x17e3f
jmp 0x17e1a
movl 0xc(%rsp), %eax
subl $0x1, %eax
je 0x17e30
jmp 0x17e25
movl 0xc(%rsp), %eax
subl $0x2, %eax
je 0x17e52
jmp 0x17e6c
movq 0x40(%rsp), %rax
vpxor %xmm0, %xmm0, %xmm0
vmovss %xmm0, (%rax)
jmp 0x17e6c
movq 0x40(%rsp), %rax
vmovss 0x99c8c(%rip), %xmm0 # 0xb1ad8
vmovss %xmm0, (%rax)
jmp 0x17e6c
leaq 0x99d01(%rip), %rdi # 0xb1b5a
movl $0x2874, %esi # imm = 0x2874
leaq 0x99e62(%rip), %rdx # 0xb1cc7
movb $0x0, %al
callq 0xd030
movl 0x60(%rsp), %eax
movl 0x4c(%rsp), %ecx
imull 0xa8(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x3c(%rsp)
movl 0x5c(%rsp), %eax
movl 0x58(%rsp), %ecx
imull 0xa4(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x38(%rsp)
movl $0x0, 0x34(%rsp)
movl 0x34(%rsp), %eax
cmpl 0xac(%rsp), %eax
jge 0x1802f
movl 0x38(%rsp), %eax
addl 0x34(%rsp), %eax
cmpl $0x0, %eax
jl 0x17ed6
movl 0x38(%rsp), %eax
addl 0x34(%rsp), %eax
cltq
movq 0xc0(%rsp), %rcx
cmpq 0x18(%rcx), %rax
jl 0x17edb
jmp 0x1801f
movq 0x90(%rsp), %rax
movq 0xc0(%rsp), %rcx
movq 0x38(%rcx), %rcx
movl 0x38(%rsp), %edx
addl 0x34(%rsp), %edx
movslq %edx, %rdx
imulq %rdx, %rcx
addq %rcx, %rax
movq %rax, 0x28(%rsp)
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
cmpl 0xb0(%rsp), %eax
jge 0x1801d
movl 0x3c(%rsp), %eax
addl 0x24(%rsp), %eax
movl %eax, 0x20(%rsp)
cmpl $0x0, 0x20(%rsp)
jl 0x17f45
movslq 0x20(%rsp), %rax
movq 0xc0(%rsp), %rcx
cmpq 0x10(%rcx), %rax
jl 0x17f4a
jmp 0x1800d
movq 0xc0(%rsp), %rax
cmpl $0x0, (%rax)
jne 0x17f6e
movq 0x28(%rsp), %rax
movslq 0x20(%rsp), %rcx
vmovss (%rax,%rcx,4), %xmm0
vmovss %xmm0, 0x8(%rsp)
jmp 0x17f87
movq 0x28(%rsp), %rax
movslq 0x20(%rsp), %rcx
movzwl (%rax,%rcx,2), %edi
callq 0xe720
vmovss %xmm0, 0x8(%rsp)
vmovss 0x8(%rsp), %xmm0
vmovss %xmm0, 0x1c(%rsp)
movl 0xb4(%rsp), %eax
movl %eax, 0x4(%rsp)
testl %eax, %eax
je 0x17fcf
jmp 0x17fa4
movl 0x4(%rsp), %eax
subl $0x1, %eax
je 0x17fba
jmp 0x17faf
movl 0x4(%rsp), %eax
subl $0x2, %eax
je 0x17ff1
jmp 0x1800b
vmovss 0x1c(%rsp), %xmm0
movq 0x40(%rsp), %rax
vaddss (%rax), %xmm0, %xmm0
vmovss %xmm0, (%rax)
jmp 0x1800b
vmovss 0x1c(%rsp), %xmm0
movq 0x40(%rsp), %rax
vucomiss (%rax), %xmm0
jbe 0x17fef
vmovss 0x1c(%rsp), %xmm0
movq 0x40(%rsp), %rax
vmovss %xmm0, (%rax)
jmp 0x1800b
leaq 0x99b62(%rip), %rdi # 0xb1b5a
movl $0x2884, %esi # imm = 0x2884
leaq 0x99cc3(%rip), %rdx # 0xb1cc7
movb $0x0, %al
callq 0xd030
jmp 0x1800d
movl 0x24(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x24(%rsp)
jmp 0x17f0e
jmp 0x1801f
movl 0x34(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x34(%rsp)
jmp 0x17ea0
movl 0xb4(%rsp), %eax
movl %eax, (%rsp)
testl %eax, %eax
je 0x1806c
jmp 0x1803f
movl (%rsp), %eax
subl $0x1, %eax
je 0x18053
jmp 0x18049
movl (%rsp), %eax
subl $0x2, %eax
je 0x1806e
jmp 0x18088
vcvtsi2ssl 0x64(%rsp), %xmm0, %xmm1
movq 0x40(%rsp), %rax
vmovss (%rax), %xmm0
vdivss %xmm1, %xmm0, %xmm0
vmovss %xmm0, (%rax)
jmp 0x18088
jmp 0x18088
leaq 0x99ae5(%rip), %rdi # 0xb1b5a
movl $0x288b, %esi # imm = 0x288B
leaq 0x99c46(%rip), %rdx # 0xb1cc7
movb $0x0, %al
callq 0xd030
jmp 0x1808a
movl 0x4c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x4c(%rsp)
jmp 0x17de3
jmp 0x1809c
movl 0x58(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x58(%rsp)
jmp 0x17dac
movq 0xc0(%rsp), %rax
movq 0x40(%rax), %rax
addq 0x90(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x70(%rsp), %rax
shlq $0x2, %rax
addq 0x68(%rsp), %rax
movq %rax, 0x68(%rsp)
jmp 0x17d8e
addq $0xd8, %rsp
retq
nopl (%rax,%rax)
|
ggml_compute_forward_pool_2d:
sub rsp, 0D8h
mov [rsp+0D8h+var_8], rdi
mov [rsp+0D8h+var_10], rsi
mov rax, [rsp+0D8h+var_10]
mov rax, [rax+98h]
mov [rsp+0D8h+var_18], rax
mov rax, [rsp+0D8h+var_8]
cmp dword ptr [rax], 0
jz short loc_17C40
jmp loc_180E0
loc_17C40:
mov rax, [rsp+0D8h+var_10]
add rax, 54h ; 'T'
mov [rsp+0D8h+var_20], rax
mov rax, [rsp+0D8h+var_20]
mov eax, [rax]
mov [rsp+0D8h+var_24], eax
mov rax, [rsp+0D8h+var_20]
mov eax, [rax+4]
mov [rsp+0D8h+var_28], eax
mov rax, [rsp+0D8h+var_20]
mov eax, [rax+8]
mov [rsp+0D8h+var_2C], eax
mov rax, [rsp+0D8h+var_20]
mov eax, [rax+0Ch]
mov [rsp+0D8h+var_30], eax
mov rax, [rsp+0D8h+var_20]
mov eax, [rax+10h]
mov [rsp+0D8h+var_34], eax
mov rax, [rsp+0D8h+var_20]
mov eax, [rax+14h]
mov [rsp+0D8h+var_38], eax
mov rax, [rsp+0D8h+var_20]
mov eax, [rax+18h]
mov [rsp+0D8h+var_3C], eax
mov rax, [rsp+0D8h+var_18]
mov rax, [rax+0F8h]
mov [rsp+0D8h+var_48], rax
mov rax, [rsp+0D8h+var_48]
mov [rsp+0D8h+var_C8], rax
mov rdi, [rsp+0D8h+var_18]
call _ggml_nbytes
mov rcx, rax
mov rax, [rsp+0D8h+var_C8]
add rax, rcx
mov [rsp+0D8h+var_50], rax
mov rax, [rsp+0D8h+var_10]
mov rax, [rax+10h]
mov [rsp+0D8h+var_58], rax
mov rax, [rsp+0D8h+var_10]
mov rax, [rax+18h]
mov [rsp+0D8h+var_60], rax
mov rax, [rsp+0D8h+var_58]
imul rax, [rsp+0D8h+var_60]
mov [rsp+0D8h+var_68], rax
mov rax, [rsp+0D8h+var_10]
mov rax, [rax+0F8h]
mov [rsp+0D8h+var_70], rax
mov eax, [rsp+0D8h+var_28]
imul eax, [rsp+0D8h+var_2C]
mov [rsp+0D8h+var_74], eax
xor eax, eax
sub eax, [rsp+0D8h+var_38]
mov [rsp+0D8h+var_78], eax
xor eax, eax
sub eax, [rsp+0D8h+var_3C]
mov [rsp+0D8h+var_7C], eax
loc_17D8E:
mov rax, [rsp+0D8h+var_48]
cmp rax, [rsp+0D8h+var_50]
jnb loc_180E0
mov [rsp+0D8h+var_80], 0
loc_17DAC:
movsxd rax, [rsp+0D8h+var_80]
cmp rax, [rsp+0D8h+var_60]
jge loc_180AC
mov rax, [rsp+0D8h+var_70]
movsxd rcx, [rsp+0D8h+var_80]
imul rcx, [rsp+0D8h+var_58]
shl rcx, 2
add rax, rcx
mov [rsp+0D8h+var_88], rax
mov [rsp+0D8h+var_8C], 0
loc_17DE3:
movsxd rax, [rsp+0D8h+var_8C]
cmp rax, [rsp+0D8h+var_58]
jge loc_1809A
mov rax, [rsp+0D8h+var_88]
movsxd rcx, [rsp+0D8h+var_8C]
lea rax, [rax+rcx*4]
mov [rsp+0D8h+var_98], rax
mov eax, [rsp+0D8h+var_24]
mov [rsp+0D8h+var_CC], eax
test eax, eax
jz short loc_17E3F
jmp short $+2
loc_17E1A:
mov eax, [rsp+0D8h+var_CC]
sub eax, 1
jz short loc_17E30
jmp short $+2
loc_17E25:
mov eax, [rsp+0D8h+var_CC]
sub eax, 2
jz short loc_17E52
jmp short loc_17E6C
loc_17E30:
mov rax, [rsp+0D8h+var_98]
vpxor xmm0, xmm0, xmm0
vmovss dword ptr [rax], xmm0
jmp short loc_17E6C
loc_17E3F:
mov rax, [rsp+0D8h+var_98]
vmovss xmm0, cs:dword_B1AD8
vmovss dword ptr [rax], xmm0
jmp short loc_17E6C
loc_17E52:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 2874h
lea rdx, aFatalError; "fatal error"
mov al, 0
call _ggml_abort
loc_17E6C:
mov eax, [rsp+0D8h+var_78]
mov ecx, [rsp+0D8h+var_8C]
imul ecx, [rsp+0D8h+var_30]
add eax, ecx
mov [rsp+0D8h+var_9C], eax
mov eax, [rsp+0D8h+var_7C]
mov ecx, [rsp+0D8h+var_80]
imul ecx, [rsp+0D8h+var_34]
add eax, ecx
mov [rsp+0D8h+var_A0], eax
mov [rsp+0D8h+var_A4], 0
loc_17EA0:
mov eax, [rsp+0D8h+var_A4]
cmp eax, [rsp+0D8h+var_2C]
jge loc_1802F
mov eax, [rsp+0D8h+var_A0]
add eax, [rsp+0D8h+var_A4]
cmp eax, 0
jl short loc_17ED6
mov eax, [rsp+0D8h+var_A0]
add eax, [rsp+0D8h+var_A4]
cdqe
mov rcx, [rsp+0D8h+var_18]
cmp rax, [rcx+18h]
jl short loc_17EDB
loc_17ED6:
jmp loc_1801F
loc_17EDB:
mov rax, [rsp+0D8h+var_48]
mov rcx, [rsp+0D8h+var_18]
mov rcx, [rcx+38h]
mov edx, [rsp+0D8h+var_A0]
add edx, [rsp+0D8h+var_A4]
movsxd rdx, edx
imul rcx, rdx
add rax, rcx
mov [rsp+0D8h+var_B0], rax
mov [rsp+0D8h+var_B4], 0
loc_17F0E:
mov eax, [rsp+0D8h+var_B4]
cmp eax, [rsp+0D8h+var_28]
jge loc_1801D
mov eax, [rsp+0D8h+var_9C]
add eax, [rsp+0D8h+var_B4]
mov [rsp+0D8h+var_B8], eax
cmp [rsp+0D8h+var_B8], 0
jl short loc_17F45
movsxd rax, [rsp+0D8h+var_B8]
mov rcx, [rsp+0D8h+var_18]
cmp rax, [rcx+10h]
jl short loc_17F4A
loc_17F45:
jmp loc_1800D
loc_17F4A:
mov rax, [rsp+0D8h+var_18]
cmp dword ptr [rax], 0
jnz short loc_17F6E
mov rax, [rsp+0D8h+var_B0]
movsxd rcx, [rsp+0D8h+var_B8]
vmovss xmm0, dword ptr [rax+rcx*4]
vmovss [rsp+0D8h+var_D0], xmm0
jmp short loc_17F87
loc_17F6E:
mov rax, [rsp+0D8h+var_B0]
movsxd rcx, [rsp+0D8h+var_B8]
movzx edi, word ptr [rax+rcx*2]
call ggml_lookup_fp16_to_fp32
vmovss [rsp+0D8h+var_D0], xmm0
loc_17F87:
vmovss xmm0, [rsp+0D8h+var_D0]
vmovss [rsp+0D8h+var_BC], xmm0
mov eax, [rsp+0D8h+var_24]
mov [rsp+0D8h+var_D4], eax
test eax, eax
jz short loc_17FCF
jmp short $+2
loc_17FA4:
mov eax, [rsp+0D8h+var_D4]
sub eax, 1
jz short loc_17FBA
jmp short $+2
loc_17FAF:
mov eax, [rsp+0D8h+var_D4]
sub eax, 2
jz short loc_17FF1
jmp short loc_1800B
loc_17FBA:
vmovss xmm0, [rsp+0D8h+var_BC]
mov rax, [rsp+0D8h+var_98]
vaddss xmm0, xmm0, dword ptr [rax]
vmovss dword ptr [rax], xmm0
jmp short loc_1800B
loc_17FCF:
vmovss xmm0, [rsp+0D8h+var_BC]
mov rax, [rsp+0D8h+var_98]
vucomiss xmm0, dword ptr [rax]
jbe short loc_17FEF
vmovss xmm0, [rsp+0D8h+var_BC]
mov rax, [rsp+0D8h+var_98]
vmovss dword ptr [rax], xmm0
loc_17FEF:
jmp short loc_1800B
loc_17FF1:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 2884h
lea rdx, aFatalError; "fatal error"
mov al, 0
call _ggml_abort
loc_1800B:
jmp short $+2
loc_1800D:
mov eax, [rsp+0D8h+var_B4]
add eax, 1
mov [rsp+0D8h+var_B4], eax
jmp loc_17F0E
loc_1801D:
jmp short $+2
loc_1801F:
mov eax, [rsp+0D8h+var_A4]
add eax, 1
mov [rsp+0D8h+var_A4], eax
jmp loc_17EA0
loc_1802F:
mov eax, [rsp+0D8h+var_24]
mov [rsp+0D8h+var_D8], eax
test eax, eax
jz short loc_1806C
jmp short $+2
loc_1803F:
mov eax, [rsp+0D8h+var_D8]
sub eax, 1
jz short loc_18053
jmp short $+2
loc_18049:
mov eax, [rsp+0D8h+var_D8]
sub eax, 2
jz short loc_1806E
jmp short loc_18088
loc_18053:
vcvtsi2ss xmm1, xmm0, [rsp+0D8h+var_74]
mov rax, [rsp+0D8h+var_98]
vmovss xmm0, dword ptr [rax]
vdivss xmm0, xmm0, xmm1
vmovss dword ptr [rax], xmm0
jmp short loc_18088
loc_1806C:
jmp short loc_18088
loc_1806E:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 288Bh
lea rdx, aFatalError; "fatal error"
mov al, 0
call _ggml_abort
loc_18088:
jmp short $+2
loc_1808A:
mov eax, [rsp+0D8h+var_8C]
add eax, 1
mov [rsp+0D8h+var_8C], eax
jmp loc_17DE3
loc_1809A:
jmp short $+2
loc_1809C:
mov eax, [rsp+0D8h+var_80]
add eax, 1
mov [rsp+0D8h+var_80], eax
jmp loc_17DAC
loc_180AC:
mov rax, [rsp+0D8h+var_18]
mov rax, [rax+40h]
add rax, [rsp+0D8h+var_48]
mov [rsp+0D8h+var_48], rax
mov rax, [rsp+0D8h+var_68]
shl rax, 2
add rax, [rsp+0D8h+var_70]
mov [rsp+0D8h+var_70], rax
jmp loc_17D8E
loc_180E0:
add rsp, 0D8h
retn
|
_DWORD * ggml_compute_forward_pool_2d(_DWORD *a1, long long a2, __m128 _XMM0)
{
_DWORD *result; // rax
int v18; // [rsp+20h] [rbp-B8h]
int n; // [rsp+24h] [rbp-B4h]
long long v20; // [rsp+28h] [rbp-B0h]
int m; // [rsp+34h] [rbp-A4h]
int v22; // [rsp+38h] [rbp-A0h]
int v23; // [rsp+3Ch] [rbp-9Ch]
int k; // [rsp+4Ch] [rbp-8Ch]
long long v25; // [rsp+50h] [rbp-88h]
int j; // [rsp+58h] [rbp-80h]
long long i; // [rsp+68h] [rbp-70h]
long long v28; // [rsp+78h] [rbp-60h]
long long v29; // [rsp+80h] [rbp-58h]
unsigned long long v30; // [rsp+88h] [rbp-50h]
_DWORD *v31; // [rsp+90h] [rbp-48h]
int v32; // [rsp+9Ch] [rbp-3Ch]
int v33; // [rsp+A0h] [rbp-38h]
int v34; // [rsp+A4h] [rbp-34h]
int v35; // [rsp+A8h] [rbp-30h]
int v36; // [rsp+ACh] [rbp-2Ch]
int v37; // [rsp+B0h] [rbp-28h]
int v38; // [rsp+B4h] [rbp-24h]
long long v39; // [rsp+C0h] [rbp-18h]
v39 = *(_QWORD *)(a2 + 152);
result = a1;
if ( !*a1 )
{
v38 = *(_DWORD *)(a2 + 84);
v37 = *(_DWORD *)(a2 + 88);
v36 = *(_DWORD *)(a2 + 92);
v35 = *(_DWORD *)(a2 + 96);
v34 = *(_DWORD *)(a2 + 100);
v33 = *(_DWORD *)(a2 + 104);
v32 = *(_DWORD *)(a2 + 108);
v31 = *(_DWORD **)(v39 + 248);
v30 = (unsigned long long)v31 + ggml_nbytes(v39);
v29 = *(_QWORD *)(a2 + 16);
v28 = *(_QWORD *)(a2 + 24);
for ( i = *(_QWORD *)(a2 + 248); ; i += 4 * v28 * v29 )
{
result = v31;
if ( (unsigned long long)v31 >= v30 )
break;
for ( j = 0; j < v28; ++j )
{
v25 = 4 * v29 * j + i;
for ( k = 0; k < v29; ++k )
{
if ( v38 )
{
if ( v38 == 1 )
{
_RAX = v25 + 4LL * k;
__asm
{
vpxor xmm0, xmm0, xmm0
vmovss dword ptr [rax], xmm0
}
}
else if ( v38 == 2 )
{
*(double *)_XMM0.m128_u64 = ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/ggml-cpu/ggml-cpu.c",
10356LL,
"fatal error");
}
}
else
{
_RAX = v25 + 4LL * k;
__asm
{
vmovss xmm0, cs:dword_B1AD8
vmovss dword ptr [rax], xmm0
}
}
v23 = v35 * k - v33;
v22 = v34 * j - v32;
for ( m = 0; m < v36; ++m )
{
if ( m + v22 >= 0 && m + v22 < *(_QWORD *)(v39 + 24) )
{
v20 = (long long)v31 + (m + v22) * *(_QWORD *)(v39 + 56);
for ( n = 0; n < v37; ++n )
{
v18 = n + v23;
if ( n + v23 >= 0 && v18 < *(_QWORD *)(v39 + 16) )
{
if ( *(_DWORD *)v39 )
{
_XMM0 = ggml_lookup_fp16_to_fp32(*(_WORD *)(v20 + 2LL * v18));
__asm { vmovss [rsp+0D8h+var_D0], xmm0 }
}
else
{
_RAX = v20;
_RCX = v18;
__asm
{
vmovss xmm0, dword ptr [rax+rcx*4]
vmovss [rsp+0D8h+var_D0], xmm0
}
}
__asm
{
vmovss xmm0, [rsp+0D8h+var_D0]
vmovss [rsp+0D8h+var_BC], xmm0
}
if ( v38 )
{
if ( v38 == 1 )
{
__asm { vmovss xmm0, [rsp+0D8h+var_BC] }
_RAX = v25 + 4LL * k;
__asm
{
vaddss xmm0, xmm0, dword ptr [rax]
vmovss dword ptr [rax], xmm0
}
}
else if ( v38 == 2 )
{
*(double *)_XMM0.m128_u64 = ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/g"
"gml-cpu/ggml-cpu.c",
10372LL,
"fatal error");
}
}
else
{
__asm { vmovss xmm0, [rsp+0D8h+var_BC] }
_RAX = v25 + 4LL * k;
__asm { vucomiss xmm0, dword ptr [rax] }
}
}
}
}
}
if ( v38 )
{
if ( v38 == 1 )
{
__asm { vcvtsi2ss xmm1, xmm0, [rsp+0D8h+var_74] }
_RAX = v25 + 4LL * k;
__asm
{
vmovss xmm0, dword ptr [rax]
vdivss xmm0, xmm0, xmm1
vmovss dword ptr [rax], xmm0
}
}
else if ( v38 == 2 )
{
*(double *)_XMM0.m128_u64 = ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/ggml-cpu/ggml-cpu.c",
10379LL,
"fatal error");
}
}
}
}
v31 = (_DWORD *)((char *)v31 + *(_QWORD *)(v39 + 64));
}
}
return result;
}
|
ggml_compute_forward_pool_2d:
SUB RSP,0xd8
MOV qword ptr [RSP + 0xd0],RDI
MOV qword ptr [RSP + 0xc8],RSI
MOV RAX,qword ptr [RSP + 0xc8]
MOV RAX,qword ptr [RAX + 0x98]
MOV qword ptr [RSP + 0xc0],RAX
MOV RAX,qword ptr [RSP + 0xd0]
CMP dword ptr [RAX],0x0
JZ 0x00117c40
JMP 0x001180e0
LAB_00117c40:
MOV RAX,qword ptr [RSP + 0xc8]
ADD RAX,0x54
MOV qword ptr [RSP + 0xb8],RAX
MOV RAX,qword ptr [RSP + 0xb8]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RSP + 0xb4],EAX
MOV RAX,qword ptr [RSP + 0xb8]
MOV EAX,dword ptr [RAX + 0x4]
MOV dword ptr [RSP + 0xb0],EAX
MOV RAX,qword ptr [RSP + 0xb8]
MOV EAX,dword ptr [RAX + 0x8]
MOV dword ptr [RSP + 0xac],EAX
MOV RAX,qword ptr [RSP + 0xb8]
MOV EAX,dword ptr [RAX + 0xc]
MOV dword ptr [RSP + 0xa8],EAX
MOV RAX,qword ptr [RSP + 0xb8]
MOV EAX,dword ptr [RAX + 0x10]
MOV dword ptr [RSP + 0xa4],EAX
MOV RAX,qword ptr [RSP + 0xb8]
MOV EAX,dword ptr [RAX + 0x14]
MOV dword ptr [RSP + 0xa0],EAX
MOV RAX,qword ptr [RSP + 0xb8]
MOV EAX,dword ptr [RAX + 0x18]
MOV dword ptr [RSP + 0x9c],EAX
MOV RAX,qword ptr [RSP + 0xc0]
MOV RAX,qword ptr [RAX + 0xf8]
MOV qword ptr [RSP + 0x90],RAX
MOV RAX,qword ptr [RSP + 0x90]
MOV qword ptr [RSP + 0x10],RAX
MOV RDI,qword ptr [RSP + 0xc0]
CALL 0x0010c0b0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x10]
ADD RAX,RCX
MOV qword ptr [RSP + 0x88],RAX
MOV RAX,qword ptr [RSP + 0xc8]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x80],RAX
MOV RAX,qword ptr [RSP + 0xc8]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP + 0x78],RAX
MOV RAX,qword ptr [RSP + 0x80]
IMUL RAX,qword ptr [RSP + 0x78]
MOV qword ptr [RSP + 0x70],RAX
MOV RAX,qword ptr [RSP + 0xc8]
MOV RAX,qword ptr [RAX + 0xf8]
MOV qword ptr [RSP + 0x68],RAX
MOV EAX,dword ptr [RSP + 0xb0]
IMUL EAX,dword ptr [RSP + 0xac]
MOV dword ptr [RSP + 0x64],EAX
XOR EAX,EAX
SUB EAX,dword ptr [RSP + 0xa0]
MOV dword ptr [RSP + 0x60],EAX
XOR EAX,EAX
SUB EAX,dword ptr [RSP + 0x9c]
MOV dword ptr [RSP + 0x5c],EAX
LAB_00117d8e:
MOV RAX,qword ptr [RSP + 0x90]
CMP RAX,qword ptr [RSP + 0x88]
JNC 0x001180e0
MOV dword ptr [RSP + 0x58],0x0
LAB_00117dac:
MOVSXD RAX,dword ptr [RSP + 0x58]
CMP RAX,qword ptr [RSP + 0x78]
JGE 0x001180ac
MOV RAX,qword ptr [RSP + 0x68]
MOVSXD RCX,dword ptr [RSP + 0x58]
IMUL RCX,qword ptr [RSP + 0x80]
SHL RCX,0x2
ADD RAX,RCX
MOV qword ptr [RSP + 0x50],RAX
MOV dword ptr [RSP + 0x4c],0x0
LAB_00117de3:
MOVSXD RAX,dword ptr [RSP + 0x4c]
CMP RAX,qword ptr [RSP + 0x80]
JGE 0x0011809a
MOV RAX,qword ptr [RSP + 0x50]
MOVSXD RCX,dword ptr [RSP + 0x4c]
LEA RAX,[RAX + RCX*0x4]
MOV qword ptr [RSP + 0x40],RAX
MOV EAX,dword ptr [RSP + 0xb4]
MOV dword ptr [RSP + 0xc],EAX
TEST EAX,EAX
JZ 0x00117e3f
JMP 0x00117e1a
LAB_00117e1a:
MOV EAX,dword ptr [RSP + 0xc]
SUB EAX,0x1
JZ 0x00117e30
JMP 0x00117e25
LAB_00117e25:
MOV EAX,dword ptr [RSP + 0xc]
SUB EAX,0x2
JZ 0x00117e52
JMP 0x00117e6c
LAB_00117e30:
MOV RAX,qword ptr [RSP + 0x40]
VPXOR XMM0,XMM0,XMM0
VMOVSS dword ptr [RAX],XMM0
JMP 0x00117e6c
LAB_00117e3f:
MOV RAX,qword ptr [RSP + 0x40]
VMOVSS XMM0,dword ptr [0x001b1ad8]
VMOVSS dword ptr [RAX],XMM0
JMP 0x00117e6c
LAB_00117e52:
LEA RDI,[0x1b1b5a]
MOV ESI,0x2874
LEA RDX,[0x1b1cc7]
MOV AL,0x0
CALL 0x0010d030
LAB_00117e6c:
MOV EAX,dword ptr [RSP + 0x60]
MOV ECX,dword ptr [RSP + 0x4c]
IMUL ECX,dword ptr [RSP + 0xa8]
ADD EAX,ECX
MOV dword ptr [RSP + 0x3c],EAX
MOV EAX,dword ptr [RSP + 0x5c]
MOV ECX,dword ptr [RSP + 0x58]
IMUL ECX,dword ptr [RSP + 0xa4]
ADD EAX,ECX
MOV dword ptr [RSP + 0x38],EAX
MOV dword ptr [RSP + 0x34],0x0
LAB_00117ea0:
MOV EAX,dword ptr [RSP + 0x34]
CMP EAX,dword ptr [RSP + 0xac]
JGE 0x0011802f
MOV EAX,dword ptr [RSP + 0x38]
ADD EAX,dword ptr [RSP + 0x34]
CMP EAX,0x0
JL 0x00117ed6
MOV EAX,dword ptr [RSP + 0x38]
ADD EAX,dword ptr [RSP + 0x34]
CDQE
MOV RCX,qword ptr [RSP + 0xc0]
CMP RAX,qword ptr [RCX + 0x18]
JL 0x00117edb
LAB_00117ed6:
JMP 0x0011801f
LAB_00117edb:
MOV RAX,qword ptr [RSP + 0x90]
MOV RCX,qword ptr [RSP + 0xc0]
MOV RCX,qword ptr [RCX + 0x38]
MOV EDX,dword ptr [RSP + 0x38]
ADD EDX,dword ptr [RSP + 0x34]
MOVSXD RDX,EDX
IMUL RCX,RDX
ADD RAX,RCX
MOV qword ptr [RSP + 0x28],RAX
MOV dword ptr [RSP + 0x24],0x0
LAB_00117f0e:
MOV EAX,dword ptr [RSP + 0x24]
CMP EAX,dword ptr [RSP + 0xb0]
JGE 0x0011801d
MOV EAX,dword ptr [RSP + 0x3c]
ADD EAX,dword ptr [RSP + 0x24]
MOV dword ptr [RSP + 0x20],EAX
CMP dword ptr [RSP + 0x20],0x0
JL 0x00117f45
MOVSXD RAX,dword ptr [RSP + 0x20]
MOV RCX,qword ptr [RSP + 0xc0]
CMP RAX,qword ptr [RCX + 0x10]
JL 0x00117f4a
LAB_00117f45:
JMP 0x0011800d
LAB_00117f4a:
MOV RAX,qword ptr [RSP + 0xc0]
CMP dword ptr [RAX],0x0
JNZ 0x00117f6e
MOV RAX,qword ptr [RSP + 0x28]
MOVSXD RCX,dword ptr [RSP + 0x20]
VMOVSS XMM0,dword ptr [RAX + RCX*0x4]
VMOVSS dword ptr [RSP + 0x8],XMM0
JMP 0x00117f87
LAB_00117f6e:
MOV RAX,qword ptr [RSP + 0x28]
MOVSXD RCX,dword ptr [RSP + 0x20]
MOVZX EDI,word ptr [RAX + RCX*0x2]
CALL 0x0010e720
VMOVSS dword ptr [RSP + 0x8],XMM0
LAB_00117f87:
VMOVSS XMM0,dword ptr [RSP + 0x8]
VMOVSS dword ptr [RSP + 0x1c],XMM0
MOV EAX,dword ptr [RSP + 0xb4]
MOV dword ptr [RSP + 0x4],EAX
TEST EAX,EAX
JZ 0x00117fcf
JMP 0x00117fa4
LAB_00117fa4:
MOV EAX,dword ptr [RSP + 0x4]
SUB EAX,0x1
JZ 0x00117fba
JMP 0x00117faf
LAB_00117faf:
MOV EAX,dword ptr [RSP + 0x4]
SUB EAX,0x2
JZ 0x00117ff1
JMP 0x0011800b
LAB_00117fba:
VMOVSS XMM0,dword ptr [RSP + 0x1c]
MOV RAX,qword ptr [RSP + 0x40]
VADDSS XMM0,XMM0,dword ptr [RAX]
VMOVSS dword ptr [RAX],XMM0
JMP 0x0011800b
LAB_00117fcf:
VMOVSS XMM0,dword ptr [RSP + 0x1c]
MOV RAX,qword ptr [RSP + 0x40]
VUCOMISS XMM0,dword ptr [RAX]
JBE 0x00117fef
VMOVSS XMM0,dword ptr [RSP + 0x1c]
MOV RAX,qword ptr [RSP + 0x40]
VMOVSS dword ptr [RAX],XMM0
LAB_00117fef:
JMP 0x0011800b
LAB_00117ff1:
LEA RDI,[0x1b1b5a]
MOV ESI,0x2884
LEA RDX,[0x1b1cc7]
MOV AL,0x0
CALL 0x0010d030
LAB_0011800b:
JMP 0x0011800d
LAB_0011800d:
MOV EAX,dword ptr [RSP + 0x24]
ADD EAX,0x1
MOV dword ptr [RSP + 0x24],EAX
JMP 0x00117f0e
LAB_0011801d:
JMP 0x0011801f
LAB_0011801f:
MOV EAX,dword ptr [RSP + 0x34]
ADD EAX,0x1
MOV dword ptr [RSP + 0x34],EAX
JMP 0x00117ea0
LAB_0011802f:
MOV EAX,dword ptr [RSP + 0xb4]
MOV dword ptr [RSP],EAX
TEST EAX,EAX
JZ 0x0011806c
JMP 0x0011803f
LAB_0011803f:
MOV EAX,dword ptr [RSP]
SUB EAX,0x1
JZ 0x00118053
JMP 0x00118049
LAB_00118049:
MOV EAX,dword ptr [RSP]
SUB EAX,0x2
JZ 0x0011806e
JMP 0x00118088
LAB_00118053:
VCVTSI2SS XMM1,XMM0,dword ptr [RSP + 0x64]
MOV RAX,qword ptr [RSP + 0x40]
VMOVSS XMM0,dword ptr [RAX]
VDIVSS XMM0,XMM0,XMM1
VMOVSS dword ptr [RAX],XMM0
JMP 0x00118088
LAB_0011806c:
JMP 0x00118088
LAB_0011806e:
LEA RDI,[0x1b1b5a]
MOV ESI,0x288b
LEA RDX,[0x1b1cc7]
MOV AL,0x0
CALL 0x0010d030
LAB_00118088:
JMP 0x0011808a
LAB_0011808a:
MOV EAX,dword ptr [RSP + 0x4c]
ADD EAX,0x1
MOV dword ptr [RSP + 0x4c],EAX
JMP 0x00117de3
LAB_0011809a:
JMP 0x0011809c
LAB_0011809c:
MOV EAX,dword ptr [RSP + 0x58]
ADD EAX,0x1
MOV dword ptr [RSP + 0x58],EAX
JMP 0x00117dac
LAB_001180ac:
MOV RAX,qword ptr [RSP + 0xc0]
MOV RAX,qword ptr [RAX + 0x40]
ADD RAX,qword ptr [RSP + 0x90]
MOV qword ptr [RSP + 0x90],RAX
MOV RAX,qword ptr [RSP + 0x70]
SHL RAX,0x2
ADD RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0x68],RAX
JMP 0x00117d8e
LAB_001180e0:
ADD RSP,0xd8
RET
|
void ggml_compute_forward_pool_2d(int *param_1,long param_2)
{
float *pfVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int *piVar9;
long lVar10;
int iVar11;
int iVar12;
long lVar13;
ulong uVar14;
long lVar15;
float local_d0;
int local_b4;
int local_a4;
int local_8c;
int local_80;
long local_70;
ulong local_48;
piVar9 = *(int **)(param_2 + 0x98);
if (*param_1 == 0) {
iVar2 = *(int *)(param_2 + 0x54);
iVar3 = *(int *)(param_2 + 0x58);
iVar4 = *(int *)(param_2 + 0x5c);
iVar5 = *(int *)(param_2 + 0x60);
iVar6 = *(int *)(param_2 + 100);
iVar7 = *(int *)(param_2 + 0x68);
iVar8 = *(int *)(param_2 + 0x6c);
local_48 = *(ulong *)(piVar9 + 0x3e);
lVar13 = ggml_nbytes(piVar9);
uVar14 = local_48 + lVar13;
lVar13 = *(long *)(param_2 + 0x10);
lVar10 = *(long *)(param_2 + 0x18);
local_70 = *(long *)(param_2 + 0xf8);
for (; local_48 < uVar14; local_48 = *(long *)(piVar9 + 0x10) + local_48) {
for (local_80 = 0; local_80 < lVar10; local_80 = local_80 + 1) {
for (local_8c = 0; local_8c < lVar13; local_8c = local_8c + 1) {
pfVar1 = (float *)(local_70 + local_80 * lVar13 * 4 + (long)local_8c * 4);
if (iVar2 == 0) {
*pfVar1 = DAT_001b1ad8;
}
else if (iVar2 == 1) {
*pfVar1 = 0.0;
}
else if (iVar2 == 2) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/ggml-cpu/ggml-cpu.c"
,0x2874,"fatal error");
}
iVar11 = local_80 * iVar6 - iVar8;
for (local_a4 = 0; local_a4 < iVar4; local_a4 = local_a4 + 1) {
if ((-1 < iVar11 + local_a4) && ((long)(iVar11 + local_a4) < *(long *)(piVar9 + 6))) {
lVar15 = local_48 + *(long *)(piVar9 + 0xe) * (long)(iVar11 + local_a4);
for (local_b4 = 0; local_b4 < iVar3; local_b4 = local_b4 + 1) {
iVar12 = (local_8c * iVar5 - iVar7) + local_b4;
if ((-1 < iVar12) && ((long)iVar12 < *(long *)(piVar9 + 4))) {
if (*piVar9 == 0) {
local_d0 = *(float *)(lVar15 + (long)iVar12 * 4);
}
else {
local_d0 = (float)ggml_lookup_fp16_to_fp32
(*(int2 *)(lVar15 + (long)iVar12 * 2));
}
if (iVar2 == 0) {
if (*pfVar1 < local_d0) {
*pfVar1 = local_d0;
}
}
else if (iVar2 == 1) {
*pfVar1 = local_d0 + *pfVar1;
}
else if (iVar2 == 2) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/ggml-cpu/ggml-cpu.c"
,0x2884,"fatal error");
}
}
}
}
}
if (iVar2 != 0) {
if (iVar2 == 1) {
*pfVar1 = *pfVar1 / (float)(iVar3 * iVar4);
}
else if (iVar2 == 2) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/ggml-cpu/ggml-cpu.c"
,0x288b,"fatal error");
}
}
}
}
local_70 = lVar13 * lVar10 * 4 + local_70;
}
}
return;
}
|
|
59,693
|
mysql_commit_start_internal
|
eloqsql/libmariadb/libmariadb/mariadb_async.c
|
static void
mysql_commit_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_commit,
(parms->mysql),
parms->mysql,
my_bool,
r_my_bool)
}
|
O0
|
c
|
mysql_commit_start_internal:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x22ee0
movb %al, -0x11(%rbp)
movb -0x11(%rbp), %cl
movq -0x20(%rbp), %rax
movb %cl, 0x8(%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
mysql_commit_start_internal:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rdi, [rax]
call mysql_commit
mov [rbp+var_11], al
mov cl, [rbp+var_11]
mov rax, [rbp+var_20]
mov [rax+8], cl
mov rax, [rbp+var_20]
mov dword ptr [rax], 0
add rsp, 20h
pop rbp
retn
|
long long mysql_commit_start_internal(long long *a1)
{
long long result; // rax
long long v2; // [rsp+0h] [rbp-20h]
v2 = *(_QWORD *)(*(_QWORD *)(*a1 + 1152) + 40LL);
*(_BYTE *)(v2 + 8) = mysql_commit(*a1);
result = v2;
*(_DWORD *)v2 = 0;
return result;
}
|
mysql_commit_start_internal:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
CALL 0x00122ee0
MOV byte ptr [RBP + -0x11],AL
MOV CL,byte ptr [RBP + -0x11]
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x8],CL
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX],0x0
ADD RSP,0x20
POP RBP
RET
|
void mysql_commit_start_internal(long *param_1)
{
int4 *puVar1;
int1 uVar2;
puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28);
uVar2 = mysql_commit(*param_1);
*(int1 *)(puVar1 + 2) = uVar2;
*puVar1 = 0;
return;
}
|
|
59,694
|
get_charset_by_name
|
eloqsql/mysys/charset.c
|
CHARSET_INFO *get_charset_by_name(const char *cs_name, myf flags)
{
MY_CHARSET_LOADER loader;
my_charset_loader_init_mysys(&loader);
return my_collation_get_by_name(&loader, cs_name, flags);
}
|
O3
|
c
|
get_charset_by_name:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rsi, %rdx
movq %rdi, %rsi
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
leaq -0xb8(%rbp), %rdi
movb $0x0, (%rdi)
leaq -0x10d0(%rip), %rax # 0x94c62
movq %rax, 0x80(%rdi)
leaq -0x10cf(%rip), %rax # 0x94c71
movq %rax, 0x88(%rdi)
leaq -0x10c2(%rip), %rax # 0x94c8c
movq %rax, 0x90(%rdi)
leaq 0xcf66(%rip), %rax # 0xa2cc2
movq %rax, 0x98(%rdi)
leaq 0x2f29de(%rip), %rax # 0x388748
movq (%rax), %rax
movq %rax, 0xa0(%rdi)
leaq -0x10d1(%rip), %rax # 0x94caa
movq %rax, 0xa8(%rdi)
callq 0x95bdc
movq %fs:0x28, %rcx
cmpq -0x8(%rbp), %rcx
jne 0x95d9f
addq $0xc0, %rsp
popq %rbp
retq
callq 0x29240
|
get_charset_by_name:
push rbp
mov rbp, rsp
sub rsp, 0C0h
mov rdx, rsi
mov rsi, rdi
mov rax, fs:28h
mov [rbp+var_8], rax
lea rdi, [rbp+var_B8]
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
call my_collation_get_by_name
mov rcx, fs:28h
cmp rcx, [rbp+var_8]
jnz short loc_95D9F
add rsp, 0C0h
pop rbp
retn
loc_95D9F:
call ___stack_chk_fail
|
long long get_charset_by_name(long long a1, long long a2)
{
_BYTE v3[128]; // [rsp+8h] [rbp-B8h] BYREF
long long ( *v4)(long long); // [rsp+88h] [rbp-38h]
long long ( *v5)(long long); // [rsp+90h] [rbp-30h]
long long ( *v6)(long long, long long); // [rsp+98h] [rbp-28h]
long long ( *v7)(_QWORD); // [rsp+A0h] [rbp-20h]
long long ( *v8)(); // [rsp+A8h] [rbp-18h]
long long ( *v9)(unsigned int *); // [rsp+B0h] [rbp-10h]
unsigned long long v10; // [rsp+B8h] [rbp-8h]
v10 = __readfsqword(0x28u);
v3[0] = 0;
v4 = my_once_alloc_c;
v5 = my_malloc_c;
v6 = my_realloc_c;
v7 = my_free;
v8 = my_charset_error_reporter;
v9 = add_collation;
return my_collation_get_by_name((long long)v3, a1, a2);
}
|
get_charset_by_name:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xc0
MOV RDX,RSI
MOV RSI,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
LEA RDI,[RBP + -0xb8]
MOV byte ptr [RDI],0x0
LEA RAX,[0x194c62]
MOV qword ptr [RDI + 0x80],RAX
LEA RAX,[0x194c71]
MOV qword ptr [RDI + 0x88],RAX
LEA RAX,[0x194c8c]
MOV qword ptr [RDI + 0x90],RAX
LEA RAX,[0x1a2cc2]
MOV qword ptr [RDI + 0x98],RAX
LEA RAX,[0x488748]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RDI + 0xa0],RAX
LEA RAX,[0x194caa]
MOV qword ptr [RDI + 0xa8],RAX
CALL 0x00195bdc
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x8]
JNZ 0x00195d9f
ADD RSP,0xc0
POP RBP
RET
LAB_00195d9f:
CALL 0x00129240
|
void get_charset_by_name(int8 param_1,int8 param_2)
{
long in_FS_OFFSET;
int1 local_c0 [128];
code *local_40;
code *local_38;
code *local_30;
code *local_28;
int *local_20;
code *local_18;
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_c0[0] = 0;
local_40 = my_once_alloc_c;
local_38 = my_malloc_c;
local_30 = my_realloc_c;
local_28 = my_free;
local_20 = my_charset_error_reporter;
local_18 = add_collation;
my_collation_get_by_name(local_c0,param_1,param_2);
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
59,695
|
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::reset()
|
monkey531[P]llama/common/./json.hpp
|
void reset() noexcept
{
token_buffer.clear();
token_string.clear();
token_string.push_back(char_traits<char_type>::to_char_type(current));
}
|
O1
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::reset():
pushq %rax
movq %rdi, %rax
movq $0x0, 0x58(%rdi)
movq 0x50(%rdi), %rcx
movb $0x0, (%rcx)
addq $0x38, %rdi
movq 0x38(%rax), %rcx
cmpq %rcx, 0x40(%rax)
je 0x470f3
movq %rcx, 0x40(%rax)
movb 0x14(%rax), %al
leaq 0x7(%rsp), %rsi
movb %al, (%rsi)
callq 0x3a8ea
popq %rax
retq
movq %rax, %rdi
callq 0x2c043
|
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5resetEv:
push rax
mov rax, rdi
mov qword ptr [rdi+58h], 0
mov rcx, [rdi+50h]
mov byte ptr [rcx], 0
add rdi, 38h ; '8'
mov rcx, [rax+38h]
cmp [rax+40h], rcx
jz short loc_470F3
mov [rax+40h], rcx
loc_470F3:
mov al, [rax+14h]
lea rsi, [rsp+8+var_1]
mov [rsi], al
call _ZNSt6vectorIcSaIcEE12emplace_backIJcEEERcDpOT_; std::vector<char>::emplace_back<char>(char &&)
pop rax
retn
mov rdi, rax
call __clang_call_terminate
|
void __spoils<rdx,rcx,r8,r9,r10,r11,xmm4,xmm5> nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::reset(
long long a1)
{
long long v2; // rdi
long long v3; // rcx
char v4; // [rsp+1h] [rbp-1h] BYREF
*(_QWORD *)(a1 + 88) = 0LL;
**(_BYTE **)(a1 + 80) = 0;
v2 = a1 + 56;
v3 = *(_QWORD *)(a1 + 56);
if ( *(_QWORD *)(a1 + 64) != v3 )
*(_QWORD *)(a1 + 64) = v3;
v4 = *(_BYTE *)(a1 + 20);
std::vector<char>::emplace_back<char>(v2, &v4);
}
|
reset:
PUSH RAX
MOV RAX,RDI
MOV qword ptr [RDI + 0x58],0x0
MOV RCX,qword ptr [RDI + 0x50]
MOV byte ptr [RCX],0x0
ADD RDI,0x38
MOV RCX,qword ptr [RAX + 0x38]
CMP qword ptr [RAX + 0x40],RCX
JZ 0x001470f3
MOV qword ptr [RAX + 0x40],RCX
LAB_001470f3:
MOV AL,byte ptr [RAX + 0x14]
LEA RSI,[RSP + 0x7]
MOV byte ptr [RSI],AL
LAB_001470fd:
CALL 0x0013a8ea
POP RAX
RET
|
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > > >::reset() */
int8 __thiscall
nlohmann::json_abi_v3_11_3::detail::
lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::reset(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*this)
{
int8 in_RAX;
int8 uStack_8;
*(int8 *)(this + 0x58) = 0;
**(int1 **)(this + 0x50) = 0;
if (*(long *)(this + 0x40) != *(long *)(this + 0x38)) {
*(long *)(this + 0x40) = *(long *)(this + 0x38);
}
uStack_8 = CONCAT17(this[0x14],(int7)in_RAX);
/* try { // try from 001470fd to 00147101 has its CatchHandler @ 00147104 */
std::vector<char,std::allocator<char>>::emplace_back<char>
((vector<char,std::allocator<char>> *)(this + 0x38),(char *)((long)&uStack_8 + 7));
return uStack_8;
}
|
|
59,696
|
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::reset()
|
monkey531[P]llama/common/./json.hpp
|
void reset() noexcept
{
token_buffer.clear();
token_string.clear();
token_string.push_back(char_traits<char_type>::to_char_type(current));
}
|
O2
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::reset():
pushq %rax
movq %rdi, %rax
andq $0x0, 0x58(%rdi)
movq 0x50(%rdi), %rcx
movb $0x0, (%rcx)
addq $0x38, %rdi
movq 0x38(%rax), %rcx
cmpq %rcx, 0x40(%rax)
je 0x418be
movq %rcx, 0x40(%rax)
movb 0x14(%rax), %al
leaq 0x7(%rsp), %rsi
movb %al, (%rsi)
callq 0x375c8
popq %rax
retq
movq %rax, %rdi
callq 0x2b230
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5resetEv:
push rax
mov rax, rdi
and qword ptr [rdi+58h], 0
mov rcx, [rdi+50h]
mov byte ptr [rcx], 0
add rdi, 38h ; '8'
mov rcx, [rax+38h]
cmp [rax+40h], rcx
jz short loc_418BE
mov [rax+40h], rcx
loc_418BE:
mov al, [rax+14h]
lea rsi, [rsp+8+var_1]
mov [rsi], al
call _ZNSt6vectorIcSaIcEE12emplace_backIJcEEERcDpOT_; std::vector<char>::emplace_back<char>(char &&)
pop rax
retn
mov rdi, rax
call __clang_call_terminate
|
void __spoils<rdx,rcx,r8,r9,r10,r11,xmm4,xmm5> nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::reset(
long long a1)
{
long long v2; // rdi
long long v3; // rcx
char v4; // [rsp+1h] [rbp-1h] BYREF
*(_QWORD *)(a1 + 88) = 0LL;
**(_BYTE **)(a1 + 80) = 0;
v2 = a1 + 56;
v3 = *(_QWORD *)(a1 + 56);
if ( *(_QWORD *)(a1 + 64) != v3 )
*(_QWORD *)(a1 + 64) = v3;
v4 = *(_BYTE *)(a1 + 20);
std::vector<char>::emplace_back<char>(v2, &v4);
}
| |||
59,697
|
bitmap_set_prefix
|
eloqsql/mysys/my_bitmap.c
|
void bitmap_set_prefix(MY_BITMAP *map, uint prefix_size)
{
uint prefix_bytes, prefix_bits, d;
uchar *m= (uchar *)map->bitmap;
DBUG_ASSERT(map->bitmap);
DBUG_ASSERT(prefix_size <= map->n_bits || prefix_size == (uint) ~0);
set_if_smaller(prefix_size, map->n_bits);
if ((prefix_bytes= prefix_size / 8))
memset(m, 0xff, prefix_bytes);
m+= prefix_bytes;
if ((prefix_bits= prefix_size & 7))
{
*(m++)= (1 << prefix_bits)-1;
// As the prefix bits are set, lets count this byte too as a prefix byte.
prefix_bytes ++;
}
if ((d= no_bytes_in_map(map)-prefix_bytes))
memset(m, 0, d);
}
|
O0
|
c
|
bitmap_set_prefix:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0xf3d2c
jmp 0xf3d2e
jmp 0xf3d30
jmp 0xf3d32
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x1c(%rcx), %eax
jbe 0xf3d48
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %eax
movl %eax, -0xc(%rbp)
jmp 0xf3d4a
movl -0xc(%rbp), %eax
shrl $0x3, %eax
movl %eax, -0x10(%rbp)
cmpl $0x0, %eax
je 0xf3d6b
movq -0x20(%rbp), %rdi
movl -0x10(%rbp), %eax
movl %eax, %edx
movl $0xff, %esi
callq 0x2a2a0
movl -0x10(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movl -0xc(%rbp), %eax
andl $0x7, %eax
movl %eax, -0x14(%rbp)
cmpl $0x0, %eax
je 0xf3db2
movl -0x14(%rbp), %ecx
movl $0x1, %eax
shll %cl, %eax
subl $0x1, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %eax
addl $0x7, %eax
shrl $0x3, %eax
subl -0x10(%rbp), %eax
movl %eax, -0x18(%rbp)
cmpl $0x0, %eax
je 0xf3dda
movq -0x20(%rbp), %rdi
movl -0x18(%rbp), %eax
movl %eax, %edx
xorl %esi, %esi
callq 0x2a2a0
addq $0x20, %rsp
popq %rbp
retq
|
bitmap_set_prefix:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rbp+var_20], rax
jmp short $+2
loc_F3D2C:
jmp short $+2
loc_F3D2E:
jmp short $+2
loc_F3D30:
jmp short $+2
loc_F3D32:
mov eax, [rbp+var_C]
mov rcx, [rbp+var_8]
cmp eax, [rcx+1Ch]
jbe short loc_F3D48
mov rax, [rbp+var_8]
mov eax, [rax+1Ch]
mov [rbp+var_C], eax
loc_F3D48:
jmp short $+2
loc_F3D4A:
mov eax, [rbp+var_C]
shr eax, 3
mov [rbp+var_10], eax
cmp eax, 0
jz short loc_F3D6B
mov rdi, [rbp+var_20]
mov eax, [rbp+var_10]
mov edx, eax
mov esi, 0FFh
call _memset
loc_F3D6B:
mov ecx, [rbp+var_10]
mov rax, [rbp+var_20]
mov ecx, ecx
add rax, rcx
mov [rbp+var_20], rax
mov eax, [rbp+var_C]
and eax, 7
mov [rbp+var_14], eax
cmp eax, 0
jz short loc_F3DB2
mov ecx, [rbp+var_14]
mov eax, 1
shl eax, cl
sub eax, 1
mov cl, al
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
mov eax, [rbp+var_10]
add eax, 1
mov [rbp+var_10], eax
loc_F3DB2:
mov rax, [rbp+var_8]
mov eax, [rax+1Ch]
add eax, 7
shr eax, 3
sub eax, [rbp+var_10]
mov [rbp+var_18], eax
cmp eax, 0
jz short loc_F3DDA
mov rdi, [rbp+var_20]
mov eax, [rbp+var_18]
mov edx, eax
xor esi, esi
call _memset
loc_F3DDA:
add rsp, 20h
pop rbp
retn
|
long long bitmap_set_prefix(long long *a1, unsigned int a2)
{
_BYTE *v2; // rax
long long result; // rax
long long v4; // [rsp+0h] [rbp-20h]
_BYTE *v5; // [rsp+0h] [rbp-20h]
unsigned int v6; // [rsp+10h] [rbp-10h]
unsigned int v7; // [rsp+14h] [rbp-Ch]
v7 = a2;
v4 = *a1;
if ( a2 > *((_DWORD *)a1 + 7) )
v7 = *((_DWORD *)a1 + 7);
v6 = v7 >> 3;
if ( v7 >> 3 )
memset(v4, 255LL, v6);
v5 = (_BYTE *)(v6 + v4);
if ( (v7 & 7) != 0 )
{
v2 = v5++;
*v2 = (1 << (v7 & 7)) - 1;
++v6;
}
result = ((unsigned int)(*((_DWORD *)a1 + 7) + 7) >> 3) - v6;
if ( (_DWORD)result )
return memset(v5, 0LL, (unsigned int)result);
return result;
}
|
bitmap_set_prefix:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
JMP 0x001f3d2c
LAB_001f3d2c:
JMP 0x001f3d2e
LAB_001f3d2e:
JMP 0x001f3d30
LAB_001f3d30:
JMP 0x001f3d32
LAB_001f3d32:
MOV EAX,dword ptr [RBP + -0xc]
MOV RCX,qword ptr [RBP + -0x8]
CMP EAX,dword ptr [RCX + 0x1c]
JBE 0x001f3d48
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x1c]
MOV dword ptr [RBP + -0xc],EAX
LAB_001f3d48:
JMP 0x001f3d4a
LAB_001f3d4a:
MOV EAX,dword ptr [RBP + -0xc]
SHR EAX,0x3
MOV dword ptr [RBP + -0x10],EAX
CMP EAX,0x0
JZ 0x001f3d6b
MOV RDI,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RBP + -0x10]
MOV EDX,EAX
MOV ESI,0xff
CALL 0x0012a2a0
LAB_001f3d6b:
MOV ECX,dword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV EAX,dword ptr [RBP + -0xc]
AND EAX,0x7
MOV dword ptr [RBP + -0x14],EAX
CMP EAX,0x0
JZ 0x001f3db2
MOV ECX,dword ptr [RBP + -0x14]
MOV EAX,0x1
SHL EAX,CL
SUB EAX,0x1
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
MOV EAX,dword ptr [RBP + -0x10]
ADD EAX,0x1
MOV dword ptr [RBP + -0x10],EAX
LAB_001f3db2:
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x1c]
ADD EAX,0x7
SHR EAX,0x3
SUB EAX,dword ptr [RBP + -0x10]
MOV dword ptr [RBP + -0x18],EAX
CMP EAX,0x0
JZ 0x001f3dda
MOV RDI,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RBP + -0x18]
MOV EDX,EAX
XOR ESI,ESI
CALL 0x0012a2a0
LAB_001f3dda:
ADD RSP,0x20
POP RBP
RET
|
void bitmap_set_prefix(int8 *param_1,uint param_2)
{
void *__s;
char *pcVar1;
char *local_28;
uint local_18;
uint local_14;
__s = (void *)*param_1;
local_14 = param_2;
if (*(uint *)((long)param_1 + 0x1c) < param_2) {
local_14 = *(uint *)((long)param_1 + 0x1c);
}
local_18 = local_14 >> 3;
if (local_18 != 0) {
memset(__s,0xff,(ulong)local_18);
}
pcVar1 = (char *)((long)__s + (ulong)local_18);
local_28 = pcVar1;
if ((local_14 & 7) != 0) {
local_28 = pcVar1 + 1;
*pcVar1 = (char)(1 << (sbyte)(local_14 & 7)) + -1;
local_18 = local_18 + 1;
}
local_18 = (*(int *)((long)param_1 + 0x1c) + 7U >> 3) - local_18;
if (local_18 != 0) {
memset(local_28,0,(ulong)local_18);
}
return;
}
|
|
59,698
|
my_strnncoll_simple
|
eloqsql/strings/ctype-simple.c
|
int my_strnncoll_simple(CHARSET_INFO * cs, const uchar *s, size_t slen,
const uchar *t, size_t tlen,
my_bool t_is_prefix)
{
size_t len = ( slen > tlen ) ? tlen : slen;
const uchar *map= cs->sort_order;
if (t_is_prefix && slen > tlen)
slen=tlen;
while (len--)
{
if (map[*s++] != map[*t++])
return ((int) map[s[-1]] - (int) map[t[-1]]);
}
/*
We can't use (slen - tlen) here as the result may be outside of the
precision of a signed int
*/
return slen > tlen ? 1 : slen < tlen ? -1 : 0 ;
}
|
O0
|
c
|
my_strnncoll_simple:
pushq %rbp
movq %rsp, %rbp
movb %r9b, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movb %al, -0x31(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x30(%rbp), %rax
jbe 0x421a2
movq -0x30(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x421aa
movq -0x20(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rax
movq %rax, -0x48(%rbp)
movsbl -0x31(%rbp), %eax
cmpl $0x0, %eax
je 0x421d9
movq -0x20(%rbp), %rax
cmpq -0x30(%rbp), %rax
jbe 0x421d9
movq -0x30(%rbp), %rax
movq %rax, -0x20(%rbp)
jmp 0x421db
movq -0x40(%rbp), %rax
movq %rax, %rcx
addq $-0x1, %rcx
movq %rcx, -0x40(%rbp)
cmpq $0x0, %rax
je 0x42251
movq -0x48(%rbp), %rax
movq -0x18(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x18(%rbp)
movzbl (%rcx), %ecx
movzbl (%rax,%rcx), %eax
movq -0x48(%rbp), %rcx
movq -0x28(%rbp), %rdx
movq %rdx, %rsi
addq $0x1, %rsi
movq %rsi, -0x28(%rbp)
movzbl (%rdx), %edx
movzbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
je 0x4224f
movq -0x48(%rbp), %rax
movq -0x18(%rbp), %rcx
movzbl -0x1(%rcx), %ecx
movzbl (%rax,%rcx), %eax
movq -0x48(%rbp), %rcx
movq -0x28(%rbp), %rdx
movzbl -0x1(%rdx), %edx
movzbl (%rcx,%rdx), %ecx
subl %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x42283
jmp 0x421db
movq -0x20(%rbp), %rax
cmpq -0x30(%rbp), %rax
jbe 0x42265
movl $0x1, %eax
movl %eax, -0x54(%rbp)
jmp 0x4227d
movq -0x20(%rbp), %rdx
movq -0x30(%rbp), %rsi
xorl %eax, %eax
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
cmpq %rsi, %rdx
cmovbl %ecx, %eax
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax,%rax)
|
my_strnncoll_simple:
push rbp
mov rbp, rsp
mov al, r9b
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov [rbp+var_31], al
mov rax, [rbp+var_20]
cmp rax, [rbp+var_30]
jbe short loc_421A2
mov rax, [rbp+var_30]
mov [rbp+var_50], rax
jmp short loc_421AA
loc_421A2:
mov rax, [rbp+var_20]
mov [rbp+var_50], rax
loc_421AA:
mov rax, [rbp+var_50]
mov [rbp+var_40], rax
mov rax, [rbp+var_10]
mov rax, [rax+58h]
mov [rbp+var_48], rax
movsx eax, [rbp+var_31]
cmp eax, 0
jz short loc_421D9
mov rax, [rbp+var_20]
cmp rax, [rbp+var_30]
jbe short loc_421D9
mov rax, [rbp+var_30]
mov [rbp+var_20], rax
loc_421D9:
jmp short $+2
loc_421DB:
mov rax, [rbp+var_40]
mov rcx, rax
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_40], rcx
cmp rax, 0
jz short loc_42251
mov rax, [rbp+var_48]
mov rcx, [rbp+var_18]
mov rdx, rcx
add rdx, 1
mov [rbp+var_18], rdx
movzx ecx, byte ptr [rcx]
movzx eax, byte ptr [rax+rcx]
mov rcx, [rbp+var_48]
mov rdx, [rbp+var_28]
mov rsi, rdx
add rsi, 1
mov [rbp+var_28], rsi
movzx edx, byte ptr [rdx]
movzx ecx, byte ptr [rcx+rdx]
cmp eax, ecx
jz short loc_4224F
mov rax, [rbp+var_48]
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx-1]
movzx eax, byte ptr [rax+rcx]
mov rcx, [rbp+var_48]
mov rdx, [rbp+var_28]
movzx edx, byte ptr [rdx-1]
movzx ecx, byte ptr [rcx+rdx]
sub eax, ecx
mov [rbp+var_4], eax
jmp short loc_42283
loc_4224F:
jmp short loc_421DB
loc_42251:
mov rax, [rbp+var_20]
cmp rax, [rbp+var_30]
jbe short loc_42265
mov eax, 1
mov [rbp+var_54], eax
jmp short loc_4227D
loc_42265:
mov rdx, [rbp+var_20]
mov rsi, [rbp+var_30]
xor eax, eax
mov ecx, 0FFFFFFFFh
cmp rdx, rsi
cmovb eax, ecx
mov [rbp+var_54], eax
loc_4227D:
mov eax, [rbp+var_54]
mov [rbp+var_4], eax
loc_42283:
mov eax, [rbp+var_4]
pop rbp
retn
|
long long my_strnncoll_simple(
long long a1,
unsigned __int8 *a2,
unsigned long long a3,
unsigned __int8 *a4,
unsigned long long a5,
char a6)
{
unsigned __int8 *v7; // rcx
unsigned __int8 *v8; // rdx
unsigned int v9; // eax
unsigned long long v12; // [rsp+4h] [rbp-50h]
long long v13; // [rsp+Ch] [rbp-48h]
unsigned long long v14; // [rsp+14h] [rbp-40h]
unsigned long long v16; // [rsp+34h] [rbp-20h]
v16 = a3;
if ( a3 <= a5 )
v12 = a3;
else
v12 = a5;
v14 = v12;
v13 = *(_QWORD *)(a1 + 88);
if ( a6 && a3 > a5 )
v16 = a5;
while ( v14-- )
{
v7 = a2++;
v8 = a4++;
if ( *(unsigned __int8 *)(v13 + *v7) != *(unsigned __int8 *)(v13 + *v8) )
return (unsigned int)(*(unsigned __int8 *)(v13 + *(a2 - 1)) - *(unsigned __int8 *)(v13 + *(a4 - 1)));
}
if ( v16 <= a5 )
{
v9 = 0;
if ( v16 < a5 )
v9 = -1;
return v9;
}
else
{
return 1;
}
}
|
my_strnncoll_simple:
PUSH RBP
MOV RBP,RSP
MOV AL,R9B
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 byte ptr [RBP + -0x31],AL
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x30]
JBE 0x001421a2
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x50],RAX
JMP 0x001421aa
LAB_001421a2:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x50],RAX
LAB_001421aa:
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x58]
MOV qword ptr [RBP + -0x48],RAX
MOVSX EAX,byte ptr [RBP + -0x31]
CMP EAX,0x0
JZ 0x001421d9
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x30]
JBE 0x001421d9
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x20],RAX
LAB_001421d9:
JMP 0x001421db
LAB_001421db:
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,RAX
ADD RCX,-0x1
MOV qword ptr [RBP + -0x40],RCX
CMP RAX,0x0
JZ 0x00142251
MOV RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x18]
MOV RDX,RCX
ADD RDX,0x1
MOV qword ptr [RBP + -0x18],RDX
MOVZX ECX,byte ptr [RCX]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV RCX,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x28]
MOV RSI,RDX
ADD RSI,0x1
MOV qword ptr [RBP + -0x28],RSI
MOVZX EDX,byte ptr [RDX]
MOVZX ECX,byte ptr [RCX + RDX*0x1]
CMP EAX,ECX
JZ 0x0014224f
MOV RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + -0x1]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV RCX,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x28]
MOVZX EDX,byte ptr [RDX + -0x1]
MOVZX ECX,byte ptr [RCX + RDX*0x1]
SUB EAX,ECX
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00142283
LAB_0014224f:
JMP 0x001421db
LAB_00142251:
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x30]
JBE 0x00142265
MOV EAX,0x1
MOV dword ptr [RBP + -0x54],EAX
JMP 0x0014227d
LAB_00142265:
MOV RDX,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x30]
XOR EAX,EAX
MOV ECX,0xffffffff
CMP RDX,RSI
CMOVC EAX,ECX
MOV dword ptr [RBP + -0x54],EAX
LAB_0014227d:
MOV EAX,dword ptr [RBP + -0x54]
MOV dword ptr [RBP + -0x4],EAX
LAB_00142283:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int my_strnncoll_simple(long param_1,byte *param_2,ulong param_3,byte *param_4,ulong param_5,
char param_6)
{
long lVar1;
byte *pbVar2;
byte *pbVar3;
int local_5c;
ulong local_58;
ulong local_48;
byte *local_30;
ulong local_28;
byte *local_20;
local_58 = param_3;
if (param_5 < param_3) {
local_58 = param_5;
}
local_48 = local_58;
lVar1 = *(long *)(param_1 + 0x58);
pbVar2 = param_4;
pbVar3 = param_2;
local_28 = param_3;
if ((param_6 != '\0') && (pbVar2 = param_4, pbVar3 = param_2, param_5 < param_3)) {
pbVar2 = param_4;
pbVar3 = param_2;
local_28 = param_5;
}
do {
local_20 = pbVar3;
local_30 = pbVar2;
if (local_48 == 0) {
if (param_5 < local_28) {
local_5c = 1;
}
else {
local_5c = 0;
if (local_28 < param_5) {
local_5c = -1;
}
}
return local_5c;
}
local_48 = local_48 - 1;
pbVar2 = local_30 + 1;
pbVar3 = local_20 + 1;
} while (*(char *)(lVar1 + (ulong)*local_20) == *(char *)(lVar1 + (ulong)*local_30));
return (uint)*(byte *)(lVar1 + (ulong)*local_20) - (uint)*(byte *)(lVar1 + (ulong)*local_30);
}
|
|
59,699
|
unsigned char const* evmone::instr::core::push<1ul>(evmone::StackTop, evmone::ExecutionState&, unsigned char const*)
|
corpus-core[P]colibri-stateless/build_O0/_deps/evmone_external-src/lib/evmone/instructions.hpp
|
inline code_iterator push(StackTop stack, ExecutionState& /*state*/, code_iterator pos) noexcept
{
constexpr auto num_full_words = Len / sizeof(uint64_t);
constexpr auto num_partial_bytes = Len % sizeof(uint64_t);
auto data = pos + 1;
stack.push(0);
auto& r = stack.top();
// Load top partial word.
if constexpr (num_partial_bytes != 0)
{
r[num_full_words] = load_partial_push_data<num_partial_bytes>(data);
data += num_partial_bytes;
}
// Load full words.
for (size_t i = 0; i < num_full_words; ++i)
{
r[num_full_words - 1 - i] = intx::be::unsafe::load<uint64_t>(data);
data += sizeof(uint64_t);
}
return pos + (Len + 1);
}
|
O0
|
cpp
|
unsigned char const* evmone::instr::core::push<1ul>(evmone::StackTop, evmone::ExecutionState&, unsigned char const*):
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq $0x4, -0x20(%rbp)
movq $0x0, -0x28(%rbp)
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
leaq -0x50(%rbp), %rdi
xorl %esi, %esi
callq 0x61cc0
leaq -0x8(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x68af0
leaq -0x8(%rbp), %rdi
callq 0x611d0
movq %rax, -0x58(%rbp)
movq $0x0, -0x60(%rbp)
cmpq $0x4, -0x60(%rbp)
jae 0x6d054
movq -0x30(%rbp), %rdi
callq 0x6b3b0
movq %rax, -0x68(%rbp)
movq -0x58(%rbp), %rdi
movl $0x3, %esi
subq -0x60(%rbp), %rsi
callq 0x61450
movq -0x68(%rbp), %rcx
movq %rcx, (%rax)
movq -0x30(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x30(%rbp)
movq -0x60(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x60(%rbp)
jmp 0x6d00d
movq -0x18(%rbp), %rax
addq $0x21, %rax
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
|
_ZN6evmone5instr4core4pushILm32EEEPKhNS_8StackTopERNS_14ExecutionStateES4_:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], 4
mov [rbp+var_28], 0
mov rax, [rbp+var_18]
add rax, 1
mov [rbp+var_30], rax
lea rdi, [rbp+var_50]
xor esi, esi
call _ZN4intx4uintILj256EEC2IJiEvEEDpT_; intx::uint<256u>::uint<int,void>(int)
lea rdi, [rbp+var_8]
lea rsi, [rbp+var_50]
call _ZN6evmone8StackTop4pushERKN4intx4uintILj256EEE; evmone::StackTop::push(intx::uint<256u> const&)
lea rdi, [rbp+var_8]; this
call _ZN6evmone8StackTop3topEv; evmone::StackTop::top(void)
mov [rbp+var_58], rax
mov [rbp+var_60], 0
loc_6D00D:
cmp [rbp+var_60], 4
jnb short loc_6D054
mov rdi, [rbp+var_30]
call _ZN4intx2be6unsafe4loadImEET_PKh; intx::be::unsafe::load<ulong>(uchar const*)
mov [rbp+var_68], rax
mov rdi, [rbp+var_58]
mov esi, 3
sub rsi, [rbp+var_60]
call _ZN4intx4uintILj256EEixEm; intx::uint<256u>::operator[](ulong)
mov rcx, [rbp+var_68]
mov [rax], rcx
mov rax, [rbp+var_30]
add rax, 8
mov [rbp+var_30], rax
mov rax, [rbp+var_60]
add rax, 1
mov [rbp+var_60], rax
jmp short loc_6D00D
loc_6D054:
mov rax, [rbp+var_18]
add rax, 21h ; '!'
add rsp, 70h
pop rbp
retn
|
long long evmone::instr::core::push<32ul>(long long a1, long long a2, long long a3)
{
unsigned long long v4; // [rsp+8h] [rbp-68h]
unsigned long long i; // [rsp+10h] [rbp-60h]
long long v6; // [rsp+18h] [rbp-58h]
_QWORD v7[4]; // [rsp+20h] [rbp-50h] BYREF
intx *v8; // [rsp+40h] [rbp-30h]
long long v9; // [rsp+48h] [rbp-28h]
long long v10; // [rsp+50h] [rbp-20h]
long long v11; // [rsp+58h] [rbp-18h]
long long v12; // [rsp+60h] [rbp-10h]
long long v13; // [rsp+68h] [rbp-8h] BYREF
v13 = a1;
v12 = a2;
v11 = a3;
v10 = 4LL;
v9 = 0LL;
v8 = (intx *)(a3 + 1);
intx::uint<256u>::uint<int,void>(v7, 0);
evmone::StackTop::push(&v13, v7);
v6 = evmone::StackTop::top((evmone::StackTop *)&v13);
for ( i = 0LL; i < 4; ++i )
{
v4 = intx::be::unsafe::load<unsigned long>(v8);
*(_QWORD *)intx::uint<256u>::operator[](v6, 3 - i) = v4;
v8 = (intx *)((char *)v8 + 8);
}
return v11 + 33;
}
|
push<32ul>:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],0x4
MOV qword ptr [RBP + -0x28],0x0
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
MOV qword ptr [RBP + -0x30],RAX
LEA RDI,[RBP + -0x50]
XOR ESI,ESI
CALL 0x00161cc0
LEA RDI,[RBP + -0x8]
LEA RSI,[RBP + -0x50]
CALL 0x00168af0
LEA RDI,[RBP + -0x8]
CALL 0x001611d0
MOV qword ptr [RBP + -0x58],RAX
MOV qword ptr [RBP + -0x60],0x0
LAB_0016d00d:
CMP qword ptr [RBP + -0x60],0x4
JNC 0x0016d054
MOV RDI,qword ptr [RBP + -0x30]
CALL 0x0016b3b0
MOV qword ptr [RBP + -0x68],RAX
MOV RDI,qword ptr [RBP + -0x58]
MOV ESI,0x3
SUB RSI,qword ptr [RBP + -0x60]
CALL 0x00161450
MOV RCX,qword ptr [RBP + -0x68]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,0x8
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x60]
ADD RAX,0x1
MOV qword ptr [RBP + -0x60],RAX
JMP 0x0016d00d
LAB_0016d054:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x21
ADD RSP,0x70
POP RBP
RET
|
/* unsigned char const* evmone::instr::core::push<32ul>(evmone::StackTop, evmone::ExecutionState&,
unsigned char const*) */
uchar * evmone::instr::core::push<32ul>(int8 param_1,int8 param_2,long param_3)
{
uint<256u> *this;
ulong uVar1;
ulong *puVar2;
ulong local_68;
uint<256u> local_58 [32];
uchar *local_38;
int8 local_30;
int8 local_28;
long local_20;
int8 local_18;
int8 local_10;
local_28 = 4;
local_30 = 0;
local_38 = (uchar *)(param_3 + 1);
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
intx::uint<256u>::uint<int,void>(local_58,0);
StackTop::push((StackTop *)&local_10,(uint *)local_58);
this = (uint<256u> *)StackTop::top((StackTop *)&local_10);
for (local_68 = 0; local_68 < 4; local_68 = local_68 + 1) {
uVar1 = intx::be::unsafe::load<unsigned_long>(local_38);
puVar2 = (ulong *)intx::uint<256u>::operator[](this,3 - local_68);
*puVar2 = uVar1;
local_38 = local_38 + 8;
}
return (uchar *)(local_20 + 0x21);
}
|
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.