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
|
---|---|---|---|---|---|---|---|---|---|---|---|
64,500 |
get_charsets_dir
|
eloqsql/mysys/charset.c
|
char *get_charsets_dir(char *buf)
{
const char *sharedir= SHAREDIR;
char *res;
DBUG_ENTER("get_charsets_dir");
if (charsets_dir != NULL)
strmake(buf, charsets_dir, FN_REFLEN-1);
else
{
if (test_if_hard_path(sharedir) ||
is_prefix(sharedir, DEFAULT_CHARSET_HOME))
strxmov(buf, sharedir, "/", CHARSET_DIR, NullS);
else
strxmov(buf, DEFAULT_CHARSET_HOME, "/", sharedir, "/", CHARSET_DIR,
NullS);
}
res= convert_dirname(buf,buf,NullS);
DBUG_PRINT("info",("charsets dir: '%s'", buf));
DBUG_RETURN(res);
}
|
O0
|
c
|
get_charsets_dir:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
leaq 0x6026e(%rip), %rax # 0xd1e01
movq %rax, -0x10(%rbp)
leaq 0x37f6f2(%rip), %rax # 0x3f1290
cmpq $0x0, (%rax)
je 0x71bbe
movq -0x8(%rbp), %rdi
leaq 0x37f6e1(%rip), %rax # 0x3f1290
movq (%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0xca8c0
jmp 0x71c38
movq -0x10(%rbp), %rdi
callq 0x7ebc0
cmpl $0x0, %eax
jne 0x71be1
movq -0x10(%rbp), %rdi
leaq 0x60243(%rip), %rsi # 0xd1e1a
callq 0xc70b0
cmpl $0x0, %eax
je 0x71c05
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq 0x61cd7(%rip), %rdx # 0xd38c7
leaq 0x60236(%rip), %rcx # 0xd1e2d
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0xca9a0
jmp 0x71c36
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rcx
leaq 0x60206(%rip), %rsi # 0xd1e1a
leaq 0x61cac(%rip), %r8 # 0xd38c7
leaq 0x6020b(%rip), %r9 # 0xd1e2d
xorl %eax, %eax
movq %r8, %rdx
movq $0x0, (%rsp)
movb $0x0, %al
callq 0xca9a0
jmp 0x71c38
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x77ec0
movq %rax, -0x18(%rbp)
jmp 0x71c4f
jmp 0x71c51
movq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
get_charsets_dir:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
lea rax, aHomeMonoInstal_0; "/home/mono/install/share"
mov [rbp+var_10], rax
lea rax, charsets_dir
cmp qword ptr [rax], 0
jz short loc_71BBE
mov rdi, [rbp+var_8]
lea rax, charsets_dir
mov rsi, [rax]
mov edx, 1FFh
call strmake
jmp short loc_71C38
loc_71BBE:
mov rdi, [rbp+var_10]
call test_if_hard_path
cmp eax, 0
jnz short loc_71BE1
mov rdi, [rbp+var_10]
lea rsi, aHomeMonoInstal_1; "/home/mono/install"
call is_prefix
cmp eax, 0
jz short loc_71C05
loc_71BE1:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
lea rdx, unk_D38C7
lea rcx, aCharsets; "charsets/"
xor eax, eax
mov r8d, eax
mov al, 0
call strxmov
jmp short loc_71C36
loc_71C05:
mov rdi, [rbp+var_8]
mov rcx, [rbp+var_10]
lea rsi, aHomeMonoInstal_1; "/home/mono/install"
lea r8, unk_D38C7
lea r9, aCharsets; "charsets/"
xor eax, eax
mov rdx, r8
mov [rsp+30h+var_30], 0
mov al, 0
call strxmov
loc_71C36:
jmp short $+2
loc_71C38:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_8]
xor eax, eax
mov edx, eax
call convert_dirname
mov [rbp+var_18], rax
jmp short $+2
loc_71C4F:
jmp short $+2
loc_71C51:
mov rax, [rbp+var_18]
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
add rsp, 30h
pop rbp
retn
|
long long get_charsets_dir(long long a1)
{
int v1; // r9d
if ( charsets_dir )
{
strmake(a1, charsets_dir, 511LL);
}
else if ( (unsigned int)test_if_hard_path("/home/mono/install/share")
|| (unsigned int)is_prefix("/home/mono/install/share", "/home/mono/install") )
{
strxmov(a1, (unsigned int)"/home/mono/install/share", (unsigned int)&unk_D38C7, (unsigned int)"charsets/", 0, v1);
}
else
{
strxmov(
a1,
(unsigned int)"/home/mono/install",
(unsigned int)&unk_D38C7,
(unsigned int)"/home/mono/install/share",
(unsigned int)&unk_D38C7,
(unsigned int)"charsets/");
}
return convert_dirname(a1, a1, 0LL);
}
|
get_charsets_dir:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
LEA RAX,[0x1d1e01]
MOV qword ptr [RBP + -0x10],RAX
LEA RAX,[0x4f1290]
CMP qword ptr [RAX],0x0
JZ 0x00171bbe
MOV RDI,qword ptr [RBP + -0x8]
LEA RAX,[0x4f1290]
MOV RSI,qword ptr [RAX]
MOV EDX,0x1ff
CALL 0x001ca8c0
JMP 0x00171c38
LAB_00171bbe:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0017ebc0
CMP EAX,0x0
JNZ 0x00171be1
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x1d1e1a]
CALL 0x001c70b0
CMP EAX,0x0
JZ 0x00171c05
LAB_00171be1:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
LEA RDX,[0x1d38c7]
LEA RCX,[0x1d1e2d]
XOR EAX,EAX
MOV R8D,EAX
MOV AL,0x0
CALL 0x001ca9a0
JMP 0x00171c36
LAB_00171c05:
MOV RDI,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP + -0x10]
LEA RSI,[0x1d1e1a]
LEA R8,[0x1d38c7]
LEA R9,[0x1d1e2d]
XOR EAX,EAX
MOV RDX,R8
MOV qword ptr [RSP],0x0
MOV AL,0x0
CALL 0x001ca9a0
LAB_00171c36:
JMP 0x00171c38
LAB_00171c38:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x8]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x00177ec0
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00171c4f
LAB_00171c4f:
JMP 0x00171c51
LAB_00171c51:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
ADD RSP,0x30
POP RBP
RET
|
int8 get_charsets_dir(int8 param_1)
{
int iVar1;
int8 uVar2;
if (charsets_dir == 0) {
iVar1 = test_if_hard_path("/home/mono/install/share");
if ((iVar1 == 0) &&
(iVar1 = is_prefix("/home/mono/install/share","/home/mono/install"), iVar1 == 0)) {
strxmov(param_1,"/home/mono/install",&DAT_001d38c7,"/home/mono/install/share",&DAT_001d38c7,
"charsets/",0);
}
else {
strxmov(param_1,"/home/mono/install/share",&DAT_001d38c7,"charsets/",0);
}
}
else {
strmake(param_1,charsets_dir,0x1ff);
}
uVar2 = convert_dirname(param_1,param_1,0);
return uVar2;
}
|
|
64,501 |
set_setup_object_key(PFS_setup_object_key*, enum_object_type, char const*, unsigned int, char const*, unsigned int)
|
eloqsql/storage/perfschema/pfs_setup_object.cc
|
static void set_setup_object_key(PFS_setup_object_key *key,
enum_object_type object_type,
const char *schema, uint schema_length,
const char *object, uint object_length)
{
assert(schema_length <= NAME_LEN);
assert(object_length <= NAME_LEN);
char *ptr= &key->m_hash_key[0];
ptr[0]= (char) object_type;
ptr++;
if (schema_length)
{
memcpy(ptr, schema, schema_length);
ptr+= schema_length;
}
ptr[0]= 0;
ptr++;
if (object_length)
{
memcpy(ptr, object, object_length);
ptr+= object_length;
}
ptr[0]= 0;
ptr++;
key->m_key_length= (uint)(ptr - &key->m_hash_key[0]);
}
|
O3
|
cpp
|
set_setup_object_key(PFS_setup_object_key*, enum_object_type, char const*, unsigned int, char const*, unsigned int):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %r12d
movq %r8, %r15
movq %rdi, %rbx
movb %sil, (%rdi)
leaq 0x1(%rdi), %r14
testl %ecx, %ecx
je 0x3fbb7
movl %ecx, %r13d
movq %r14, %rdi
movq %rdx, %rsi
movq %r13, %rdx
callq 0x26290
addq %r13, %r14
movb $0x0, (%r14)
incq %r14
testl %r12d, %r12d
je 0x3fbd7
movl %r12d, %r12d
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x26290
addq %r12, %r14
movb $0x0, (%r14)
subl %ebx, %r14d
incl %r14d
movl %r14d, 0x184(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_ZL20set_setup_object_keyP20PFS_setup_object_key16enum_object_typePKcjS3_j:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r12d, r9d
mov r15, r8
mov rbx, rdi
mov [rdi], sil
lea r14, [rdi+1]
test ecx, ecx
jz short loc_3FBB7
mov r13d, ecx
mov rdi, r14
mov rsi, rdx
mov rdx, r13
call _memcpy
add r14, r13
loc_3FBB7:
mov byte ptr [r14], 0
inc r14
test r12d, r12d
jz short loc_3FBD7
mov r12d, r12d
mov rdi, r14
mov rsi, r15
mov rdx, r12
call _memcpy
add r14, r12
loc_3FBD7:
mov byte ptr [r14], 0
sub r14d, ebx
inc r14d
mov [rbx+184h], r14d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long set_setup_object_key(long long a1, char a2, long long a3, unsigned int a4, long long a5, unsigned int a6)
{
_BYTE *v8; // r14
long long v9; // r13
long long result; // rax
_BYTE *v11; // r14
*(_BYTE *)a1 = a2;
v8 = (_BYTE *)(a1 + 1);
if ( a4 )
{
v9 = a4;
result = memcpy(a1 + 1, a3, a4);
v8 += v9;
}
*v8 = 0;
v11 = v8 + 1;
if ( a6 )
{
result = memcpy(v11, a5, a6);
v11 += a6;
}
*v11 = 0;
*(_DWORD *)(a1 + 388) = (_DWORD)v11 - a1 + 1;
return result;
}
|
set_setup_object_key:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R12D,R9D
MOV R15,R8
MOV RBX,RDI
MOV byte ptr [RDI],SIL
LEA R14,[RDI + 0x1]
TEST ECX,ECX
JZ 0x0013fbb7
MOV R13D,ECX
MOV RDI,R14
MOV RSI,RDX
MOV RDX,R13
CALL 0x00126290
ADD R14,R13
LAB_0013fbb7:
MOV byte ptr [R14],0x0
INC R14
TEST R12D,R12D
JZ 0x0013fbd7
MOV R12D,R12D
MOV RDI,R14
MOV RSI,R15
MOV RDX,R12
CALL 0x00126290
ADD R14,R12
LAB_0013fbd7:
MOV byte ptr [R14],0x0
SUB R14D,EBX
INC R14D
MOV dword ptr [RBX + 0x184],R14D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* set_setup_object_key(PFS_setup_object_key*, enum_object_type, char const*, unsigned int, char
const*, unsigned int) */
void set_setup_object_key
(int1 *param_1,int1 param_2,void *param_3,uint param_4,void *param_5,
uint param_6)
{
int1 *puVar1;
*param_1 = param_2;
puVar1 = param_1 + 1;
if (param_4 != 0) {
memcpy(puVar1,param_3,(ulong)param_4);
puVar1 = puVar1 + param_4;
}
*puVar1 = 0;
puVar1 = puVar1 + 1;
if (param_6 != 0) {
memcpy(puVar1,param_5,(ulong)param_6);
puVar1 = puVar1 + param_6;
}
*puVar1 = 0;
*(int *)(param_1 + 0x184) = ((int)puVar1 - (int)param_1) + 1;
return;
}
|
|
64,502 |
set_prealloc_root
|
eloqsql/mysys/my_alloc.c
|
void set_prealloc_root(MEM_ROOT *root, char *ptr)
{
USED_MEM *next;
for (next=root->used; next ; next=next->next)
{
if ((char*) next <= ptr && (char*) next + next->size > ptr)
{
root->pre_alloc=next;
return;
}
}
for (next=root->free ; next ; next=next->next)
{
if ((char*) next <= ptr && (char*) next + next->size > ptr)
{
root->pre_alloc=next;
return;
}
}
}
|
O3
|
c
|
set_prealloc_root:
pushq %rbp
movq %rsp, %rbp
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x50cfa
cmpq %rsi, %rax
ja 0x50cf5
movq 0x10(%rax), %rcx
addq %rax, %rcx
cmpq %rsi, %rcx
ja 0x50d18
movq (%rax), %rax
jmp 0x50cdf
movq (%rdi), %rax
testq %rax, %rax
je 0x50d1c
cmpq %rsi, %rax
ja 0x50d13
movq 0x10(%rax), %rcx
addq %rax, %rcx
cmpq %rsi, %rcx
ja 0x50d18
movq (%rax), %rax
jmp 0x50cfd
movq %rax, 0x10(%rdi)
popq %rbp
retq
|
set_prealloc_root:
push rbp
mov rbp, rsp
mov rax, [rdi+8]
loc_50CDF:
test rax, rax
jz short loc_50CFA
cmp rax, rsi
ja short loc_50CF5
mov rcx, [rax+10h]
add rcx, rax
cmp rcx, rsi
ja short loc_50D18
loc_50CF5:
mov rax, [rax]
jmp short loc_50CDF
loc_50CFA:
mov rax, [rdi]
loc_50CFD:
test rax, rax
jz short loc_50D1C
cmp rax, rsi
ja short loc_50D13
mov rcx, [rax+10h]
add rcx, rax
cmp rcx, rsi
ja short loc_50D18
loc_50D13:
mov rax, [rax]
jmp short loc_50CFD
loc_50D18:
mov [rdi+10h], rax
loc_50D1C:
pop rbp
retn
|
_QWORD * set_prealloc_root(_QWORD *a1, unsigned long long a2)
{
_QWORD *result; // rax
for ( result = (_QWORD *)a1[1]; result; result = (_QWORD *)*result )
{
if ( (unsigned long long)result <= a2 && (unsigned long long)result + result[2] > a2 )
{
LABEL_11:
a1[2] = result;
return result;
}
}
for ( result = (_QWORD *)*a1; result; result = (_QWORD *)*result )
{
if ( (unsigned long long)result <= a2 && (unsigned long long)result + result[2] > a2 )
goto LABEL_11;
}
return result;
}
|
set_prealloc_root:
PUSH RBP
MOV RBP,RSP
MOV RAX,qword ptr [RDI + 0x8]
LAB_00150cdf:
TEST RAX,RAX
JZ 0x00150cfa
CMP RAX,RSI
JA 0x00150cf5
MOV RCX,qword ptr [RAX + 0x10]
ADD RCX,RAX
CMP RCX,RSI
JA 0x00150d18
LAB_00150cf5:
MOV RAX,qword ptr [RAX]
JMP 0x00150cdf
LAB_00150cfa:
MOV RAX,qword ptr [RDI]
LAB_00150cfd:
TEST RAX,RAX
JZ 0x00150d1c
CMP RAX,RSI
JA 0x00150d13
MOV RCX,qword ptr [RAX + 0x10]
ADD RCX,RAX
CMP RCX,RSI
JA 0x00150d18
LAB_00150d13:
MOV RAX,qword ptr [RAX]
JMP 0x00150cfd
LAB_00150d18:
MOV qword ptr [RDI + 0x10],RAX
LAB_00150d1c:
POP RBP
RET
|
void set_prealloc_root(int8 *param_1,int8 *param_2)
{
int8 *puVar1;
for (puVar1 = (int8 *)param_1[1]; puVar1 != (int8 *)0x0;
puVar1 = (int8 *)*puVar1) {
if ((puVar1 <= param_2) && (param_2 < (int8 *)(puVar1[2] + (long)puVar1)))
goto LAB_00150d18;
}
puVar1 = (int8 *)*param_1;
while( true ) {
if (puVar1 == (int8 *)0x0) {
return;
}
if ((puVar1 <= param_2) && (param_2 < (int8 *)(puVar1[2] + (long)puVar1))) break;
puVar1 = (int8 *)*puVar1;
}
LAB_00150d18:
param_1[2] = puVar1;
return;
}
|
|
64,503 |
nglog::LogMessageTime::LogMessageTime(std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l>>>)
|
ng-log[P]ng-log/src/logging.cc
|
LogMessageTime::LogMessageTime(std::chrono::system_clock::time_point now)
: timestamp_{now} {
std::time_t timestamp;
std::tie(tm_, timestamp, gmtoffset_) = Breakdown(now);
usecs_ = std::chrono::duration_cast<std::chrono::microseconds>(
now - std::chrono::system_clock::from_time_t(timestamp));
}
|
O3
|
cpp
|
nglog::LogMessageTime::LogMessageTime(std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l>>>):
pushq %r14
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movl $0x0, 0x20(%rdi)
movups %xmm0, 0x28(%rdi)
movq %rsi, 0x38(%rdi)
movabsq $0x112e0be826d694b3, %rcx # imm = 0x112E0BE826D694B3
movq %rsi, %rax
imulq %rcx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x1a, %rdx
addq %rax, %rdx
movq %rdx, (%rsp)
movq 0x20911(%rip), %rax # 0x38fc8
cmpb $0x1, (%rax)
jne 0x186cb
movq %rsp, %rdi
leaq 0x8(%rsp), %rsi
callq 0x12350
jmp 0x186d8
movq %rsp, %rdi
leaq 0x8(%rsp), %rsi
callq 0x11410
movq 0x30(%rsp), %rax
movups 0x8(%rsp), %xmm0
movups 0x18(%rsp), %xmm1
movups 0x28(%rsp), %xmm2
movaps %xmm0, 0x40(%rsp)
movaps %xmm1, 0x50(%rsp)
movaps %xmm2, 0x60(%rsp)
movq 0x38(%rsp), %rdx
movq %rdx, 0x70(%rsp)
imulq $-0x3b9aca00, (%rsp), %rcx # imm = 0xC4653600
movq %rdx, 0x30(%rbx)
movups %xmm2, 0x20(%rbx)
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
movabsq $0x48d159e26af37c05, %rdx # imm = 0x48D159E26AF37C05
imulq %rdx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0xa, %rdx
addq %rax, %rdx
imulq $0xe10, %rdx, %rax # imm = 0xE10
movq %rax, 0x48(%rbx)
addq %r14, %rcx
movabsq $0x20c49ba5e353f7cf, %rdx # imm = 0x20C49BA5E353F7CF
movq %rcx, %rax
imulq %rdx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x7, %rdx
addq %rax, %rdx
movq %rdx, 0x40(%rbx)
addq $0x78, %rsp
popq %rbx
popq %r14
retq
nop
|
_ZN5nglog14LogMessageTimeC2ENSt6chrono10time_pointINS1_3_V212system_clockENS1_8durationIlSt5ratioILl1ELl1000000000EEEEEE:
push r14; Alternative name is 'nglog::LogMessageTime::LogMessageTime(std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l>>>)'
push rbx
sub rsp, 78h
mov r14, rsi
mov rbx, rdi
xorps xmm0, xmm0
movups xmmword ptr [rdi+10h], xmm0
movups xmmword ptr [rdi], xmm0
mov dword ptr [rdi+20h], 0
movups xmmword ptr [rdi+28h], xmm0
mov [rdi+38h], rsi
mov rcx, 112E0BE826D694B3h
mov rax, rsi
imul rcx
mov rax, rdx
loc_186A1:
shr rax, 3Fh
sar rdx, 1Ah
add rdx, rax
mov [rsp+88h+var_88], rdx
mov rax, cs:_ZN3fLB18FLAGS_log_utc_timeE_ptr
cmp byte ptr [rax], 1
jnz short loc_186CB
mov rdi, rsp
lea rsi, [rsp+88h+var_80]
call _gmtime_r
jmp short loc_186D8
loc_186CB:
mov rdi, rsp
lea rsi, [rsp+88h+var_80]
call _localtime_r
loc_186D8:
mov rax, [rsp+88h+var_58]
movups xmm0, [rsp+88h+var_80]
movups xmm1, [rsp+88h+var_70]
movups xmm2, xmmword ptr [rsp+28h]
movaps [rsp+88h+var_48], xmm0
movaps [rsp+88h+var_38], xmm1
movaps [rsp+88h+var_28], xmm2
mov rdx, [rsp+88h+var_50]
mov [rsp+88h+var_18], rdx
imul rcx, [rsp+88h+var_88], 0FFFFFFFFC4653600h
mov [rbx+30h], rdx
movups xmmword ptr [rbx+20h], xmm2
movups xmmword ptr [rbx+10h], xmm1
movups xmmword ptr [rbx], xmm0
mov rdx, 48D159E26AF37C05h
imul rdx
mov rax, rdx
shr rax, 3Fh
sar rdx, 0Ah
add rdx, rax
imul rax, rdx, 0E10h
mov [rbx+48h], rax
add rcx, r14
mov rdx, 20C49BA5E353F7CFh
mov rax, rcx
imul rdx
mov rax, rdx
shr rax, 3Fh
sar rdx, 7
add rdx, rax
mov [rbx+40h], rdx
add rsp, 78h
pop rbx
pop r14
retn
|
unsigned long long nglog::LogMessageTime::LogMessageTime(long long a1, long long a2)
{
long long v2; // rdx
long long v3; // rax
__int128 v4; // xmm0
__int128 v5; // xmm1
__int128 v6; // xmm2
long long v7; // rcx
long long v8; // rcx
unsigned long long result; // rax
long long v10; // [rsp+0h] [rbp-88h] BYREF
_OWORD v11[2]; // [rsp+8h] [rbp-80h] BYREF
__int128 v12; // [rsp+28h] [rbp-60h]
long long v13; // [rsp+38h] [rbp-50h]
*(_OWORD *)(a1 + 16) = 0LL;
*(_OWORD *)a1 = 0LL;
*(_DWORD *)(a1 + 32) = 0;
*(_OWORD *)(a1 + 40) = 0LL;
*(_QWORD *)(a1 + 56) = a2;
v2 = a2 / 1000000000;
v10 = a2 / 1000000000;
if ( fLB::FLAGS_log_utc_time == 1 )
gmtime_r(&v10, v11, v2, 0x112E0BE826D694B3LL);
else
localtime_r(&v10, v11, v2, 0x112E0BE826D694B3LL);
v3 = *((_QWORD *)&v12 + 1);
v4 = v11[0];
v5 = v11[1];
v6 = v12;
v7 = -1000000000 * v10;
*(_QWORD *)(a1 + 48) = v13;
*(_OWORD *)(a1 + 32) = v6;
*(_OWORD *)(a1 + 16) = v5;
*(_OWORD *)a1 = v4;
*(_QWORD *)(a1 + 72) = 3600 * (v3 / 3600);
v8 = a2 + v7;
result = (unsigned long long)((unsigned __int128)(0x20C49BA5E353F7CFLL * (__int128)v8) >> 64) >> 63;
*(_QWORD *)(a1 + 64) = v8 / 1000;
return result;
}
|
LogMessageTime:
PUSH R14
PUSH RBX
SUB RSP,0x78
MOV R14,RSI
MOV RBX,RDI
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x10],XMM0
MOVUPS xmmword ptr [RDI],XMM0
MOV dword ptr [RDI + 0x20],0x0
MOVUPS xmmword ptr [RDI + 0x28],XMM0
MOV qword ptr [RDI + 0x38],RSI
MOV RCX,0x112e0be826d694b3
MOV RAX,RSI
IMUL RCX
MOV RAX,RDX
SHR RAX,0x3f
SAR RDX,0x1a
ADD RDX,RAX
MOV qword ptr [RSP],RDX
MOV RAX,qword ptr [0x00138fc8]
CMP byte ptr [RAX],0x1
JNZ 0x001186cb
MOV RDI,RSP
LEA RSI,[RSP + 0x8]
CALL 0x00112350
JMP 0x001186d8
LAB_001186cb:
MOV RDI,RSP
LEA RSI,[RSP + 0x8]
CALL 0x00111410
LAB_001186d8:
MOV RAX,qword ptr [RSP + 0x30]
MOVUPS XMM0,xmmword ptr [RSP + 0x8]
MOVUPS XMM1,xmmword ptr [RSP + 0x18]
MOVUPS XMM2,xmmword ptr [RSP + 0x28]
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOVAPS xmmword ptr [RSP + 0x50],XMM1
MOVAPS xmmword ptr [RSP + 0x60],XMM2
MOV RDX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x70],RDX
IMUL RCX,qword ptr [RSP],-0x3b9aca00
MOV qword ptr [RBX + 0x30],RDX
MOVUPS xmmword ptr [RBX + 0x20],XMM2
MOVUPS xmmword ptr [RBX + 0x10],XMM1
MOVUPS xmmword ptr [RBX],XMM0
MOV RDX,0x48d159e26af37c05
IMUL RDX
MOV RAX,RDX
SHR RAX,0x3f
SAR RDX,0xa
ADD RDX,RAX
IMUL RAX,RDX,0xe10
MOV qword ptr [RBX + 0x48],RAX
ADD RCX,R14
MOV RDX,0x20c49ba5e353f7cf
MOV RAX,RCX
IMUL RDX
MOV RAX,RDX
SHR RAX,0x3f
SAR RDX,0x7
ADD RDX,RAX
MOV qword ptr [RBX + 0x40],RDX
ADD RSP,0x78
POP RBX
POP R14
RET
|
/* nglog::LogMessageTime::LogMessageTime(std::chrono::time_point<std::chrono::_V2::system_clock,
std::chrono::duration<long, std::ratio<1l, 1000000000l> > >) */
void __thiscall nglog::LogMessageTime::LogMessageTime(LogMessageTime *this,long param_2)
{
long local_88;
tm local_80 [2];
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
*(int4 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
*(long *)(this + 0x38) = param_2;
local_88 = param_2 / 1000000000;
if (*PTR_FLAGS_log_utc_time_00138fc8 == '\x01') {
gmtime_r(&local_88,local_80);
}
else {
localtime_r(&local_88,local_80);
}
*(char **)(this + 0x30) = local_80[0].tm_zone;
*(int8 *)(this + 0x20) = local_80[0]._32_8_;
*(long *)(this + 0x28) = local_80[0].tm_gmtoff;
*(int8 *)(this + 0x10) = local_80[0]._16_8_;
*(int8 *)(this + 0x18) = local_80[0]._24_8_;
*(int8 *)this = local_80[0]._0_8_;
*(int8 *)(this + 8) = local_80[0]._8_8_;
*(long *)(this + 0x48) = (local_80[0].tm_gmtoff / 0xe10) * 0xe10;
*(long *)(this + 0x40) = (local_88 * -1000000000 + param_2) / 1000;
return;
}
|
|
64,504 |
unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, std::decay<unifex::_inline_sched::scheduler>::type, unifex::remove_cvref<unifex::_task::_task<void>::type>::type>::type unifex::_with_query_value_cpo::_fn::operator()<unifex::_task::_task<void>::type, unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler>(unifex::_task::_task<void>::type&&, unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler&&) const
|
aimrt_mujoco_sim/_deps/libunifex-src/include/unifex/with_query_value.hpp
|
_with_query_value::sender<CPO, Value, Sender>
operator()(Sender &&sender, CPO, Value &&value) const {
static_assert(
std::is_empty_v<CPO>,
"with_query_value() does not support stateful CPOs");
return _with_query_value::sender<CPO, Value, Sender>{
(Sender &&) sender,
(Value &&) value};
}
|
O0
|
cpp
|
unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn, std::decay<unifex::_inline_sched::scheduler>::type, unifex::remove_cvref<unifex::_task::_task<void>::type>::type>::type unifex::_with_query_value_cpo::_fn::operator()<unifex::_task::_task<void>::type, unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler>(unifex::_task::_task<void>::type&&, unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler&&) const:
subq $0x38, %rsp
movq %rdi, %rax
movq %rax, 0x8(%rsp)
movq %rdi, 0x30(%rsp)
movq %rsi, 0x20(%rsp)
movq %rdx, 0x18(%rsp)
movq %rcx, 0x10(%rsp)
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0xdaae0
movq 0x8(%rsp), %rax
addq $0x38, %rsp
retq
nopl (%rax)
|
_ZNK6unifex21_with_query_value_cpo3_fnclINS_5_task5_taskIvE4typeENS_14_get_scheduler3_fnENS_13_inline_sched9schedulerEEENS_17_with_query_value7_senderIT0_NSt5decayIT1_E4typeENS_12remove_cvrefIT_E4typeEE4typeEOSJ_SD_OSF_:
sub rsp, 38h
mov rax, rdi
mov [rsp+38h+var_30], rax
mov [rsp+38h+var_8], rdi
mov [rsp+38h+var_18], rsi
mov [rsp+38h+var_20], rdx
mov [rsp+38h+var_28], rcx
mov rsi, [rsp+38h+var_20]
mov rdx, [rsp+38h+var_28]
call _ZN6unifex17_with_query_value7_senderINS_14_get_scheduler3_fnENS_13_inline_sched9schedulerENS_5_task5_taskIvE4typeEE4typeC2IS9_S5_EEOT_OT0_; unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type::type<unifex::_task::_task<void>::type,unifex::_inline_sched::scheduler>(unifex::_task::_task<void>::type &&,unifex::_inline_sched::scheduler &&)
mov rax, [rsp+38h+var_30]
add rsp, 38h
retn
|
long long unifex::_with_query_value_cpo::_fn::operator()<unifex::_task::_task<void>::type,unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler>(
long long a1,
long long a2,
long long a3,
long long a4)
{
unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>::type::type<unifex::_task::_task<void>::type,unifex::_inline_sched::scheduler>(
a1,
a3,
a4);
return a1;
}
|
operator():
SUB RSP,0x38
MOV RAX,RDI
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP + 0x30],RDI
MOV qword ptr [RSP + 0x20],RSI
MOV qword ptr [RSP + 0x18],RDX
MOV qword ptr [RSP + 0x10],RCX
MOV RSI,qword ptr [RSP + 0x18]
MOV RDX,qword ptr [RSP + 0x10]
CALL 0x001daae0
MOV RAX,qword ptr [RSP + 0x8]
ADD RSP,0x38
RET
|
/* unifex::_with_query_value::_sender<unifex::_get_scheduler::_fn,
std::decay<unifex::_inline_sched::scheduler>::type,
unifex::remove_cvref<unifex::_task::_task<void>::type>::type>::type
unifex::_with_query_value_cpo::_fn::TEMPNAMEPLACEHOLDERVALUE(unifex::_task::_task<void>::type&&,
unifex::_get_scheduler::_fn, unifex::_inline_sched::scheduler&&) const */
_fn * __thiscall
unifex::_with_query_value_cpo::_fn::operator()
(_fn *this,int8 param_2,type *param_3,scheduler *param_4)
{
unifex::_with_query_value::
_sender<unifex::_get_scheduler::_fn,unifex::_inline_sched::scheduler,unifex::_task::_task<void>::type>
::type::type<unifex::_task::_task<void>::type,unifex::_inline_sched::scheduler>
((type *)this,param_3,param_4);
return this;
}
|
|
64,505 |
my_seek
|
eloqsql/mysys/my_seek.c
|
my_off_t my_seek(File fd, my_off_t pos, int whence, myf MyFlags)
{
os_off_t newpos= -1;
DBUG_ENTER("my_seek");
DBUG_PRINT("my",("fd: %d Pos: %llu Whence: %d MyFlags: %lu",
fd, (ulonglong) pos, whence, MyFlags));
DBUG_ASSERT(pos != MY_FILEPOS_ERROR); /* safety check */
/*
Make sure we are using a valid file descriptor!
*/
DBUG_ASSERT(fd != -1);
#ifdef _WIN32
newpos= my_win_lseek(fd, pos, whence);
#else
newpos= lseek(fd, pos, whence);
#endif
if (newpos == (os_off_t) -1)
{
my_errno= errno;
if (MyFlags & MY_WME)
my_error(EE_CANT_SEEK, MYF(0), my_filename(fd), my_errno);
DBUG_PRINT("error", ("lseek: %llu errno: %d", (ulonglong) newpos, errno));
DBUG_RETURN(MY_FILEPOS_ERROR);
}
if ((my_off_t) newpos != pos)
{
DBUG_PRINT("exit",("pos: %llu", (ulonglong) newpos));
}
DBUG_RETURN((my_off_t) newpos);
}
|
O0
|
c
|
my_seek:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl %edi, -0xc(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq $-0x1, -0x30(%rbp)
jmp 0xfc930
jmp 0xfc932
jmp 0xfc934
jmp 0xfc936
jmp 0xfc938
movl -0xc(%rbp), %edi
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
callq 0x296b0
movq %rax, -0x30(%rbp)
cmpq $-0x1, -0x30(%rbp)
jne 0xfc9ab
callq 0x29700
movl (%rax), %eax
movl %eax, -0x34(%rbp)
callq 0xfdd30
movl -0x34(%rbp), %ecx
movl %ecx, (%rax)
movq -0x28(%rbp), %rax
andq $0x10, %rax
cmpq $0x0, %rax
je 0xfc99b
movl -0xc(%rbp), %edi
callq 0x10b180
movq %rax, -0x40(%rbp)
callq 0xfdd30
movq -0x40(%rbp), %rdx
movl (%rax), %ecx
movl $0x21, %edi
xorl %eax, %eax
movl %eax, %esi
movb $0x0, %al
callq 0xf76a0
jmp 0xfc99d
jmp 0xfc99f
jmp 0xfc9a1
movq $-0x1, -0x8(%rbp)
jmp 0xfc9c5
movq -0x30(%rbp), %rax
cmpq -0x18(%rbp), %rax
je 0xfc9bb
jmp 0xfc9b7
jmp 0xfc9b9
jmp 0xfc9bb
jmp 0xfc9bd
movq -0x30(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nop
|
my_seek:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_C], edi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov [rbp+var_28], rcx
mov [rbp+var_30], 0FFFFFFFFFFFFFFFFh
jmp short $+2
loc_FC930:
jmp short $+2
loc_FC932:
jmp short $+2
loc_FC934:
jmp short $+2
loc_FC936:
jmp short $+2
loc_FC938:
mov edi, [rbp+var_C]
mov rsi, [rbp+var_18]
mov edx, [rbp+var_1C]
call _lseek64
mov [rbp+var_30], rax
cmp [rbp+var_30], 0FFFFFFFFFFFFFFFFh
jnz short loc_FC9AB
call ___errno_location
mov eax, [rax]
mov [rbp+var_34], eax
call _my_thread_var
mov ecx, [rbp+var_34]
mov [rax], ecx
mov rax, [rbp+var_28]
and rax, 10h
cmp rax, 0
jz short loc_FC99B
mov edi, [rbp+var_C]
call my_filename
mov [rbp+var_40], rax
call _my_thread_var
mov rdx, [rbp+var_40]
mov ecx, [rax]
mov edi, 21h ; '!'
xor eax, eax
mov esi, eax
mov al, 0
call my_error
loc_FC99B:
jmp short $+2
loc_FC99D:
jmp short $+2
loc_FC99F:
jmp short $+2
loc_FC9A1:
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
jmp short loc_FC9C5
loc_FC9AB:
mov rax, [rbp+var_30]
cmp rax, [rbp+var_18]
jz short loc_FC9BB
jmp short $+2
loc_FC9B7:
jmp short $+2
loc_FC9B9:
jmp short $+2
loc_FC9BB:
jmp short $+2
loc_FC9BD:
mov rax, [rbp+var_30]
mov [rbp+var_8], rax
loc_FC9C5:
mov rax, [rbp+var_8]
add rsp, 40h
pop rbp
retn
|
long long my_seek(unsigned int a1, const char *a2, unsigned int a3, char a4)
{
unsigned int *v4; // rax
long long v6; // [rsp+0h] [rbp-40h]
int v7; // [rsp+Ch] [rbp-34h]
long long v8; // [rsp+10h] [rbp-30h]
v8 = lseek64(a1, a2, a3);
if ( v8 != -1 )
return v8;
v7 = *(_DWORD *)__errno_location();
*(_DWORD *)my_thread_var(a1, a2) = v7;
if ( (a4 & 0x10) != 0 )
{
v6 = my_filename(a1);
v4 = (unsigned int *)my_thread_var(a1, a2);
my_error(0x21u, 0LL, v6, *v4);
}
return -1LL;
}
|
my_seek:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV dword ptr [RBP + -0xc],EDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],-0x1
JMP 0x001fc930
LAB_001fc930:
JMP 0x001fc932
LAB_001fc932:
JMP 0x001fc934
LAB_001fc934:
JMP 0x001fc936
LAB_001fc936:
JMP 0x001fc938
LAB_001fc938:
MOV EDI,dword ptr [RBP + -0xc]
MOV RSI,qword ptr [RBP + -0x18]
MOV EDX,dword ptr [RBP + -0x1c]
CALL 0x001296b0
MOV qword ptr [RBP + -0x30],RAX
CMP qword ptr [RBP + -0x30],-0x1
JNZ 0x001fc9ab
CALL 0x00129700
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x34],EAX
CALL 0x001fdd30
MOV ECX,dword ptr [RBP + -0x34]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x28]
AND RAX,0x10
CMP RAX,0x0
JZ 0x001fc99b
MOV EDI,dword ptr [RBP + -0xc]
CALL 0x0020b180
MOV qword ptr [RBP + -0x40],RAX
CALL 0x001fdd30
MOV RDX,qword ptr [RBP + -0x40]
MOV ECX,dword ptr [RAX]
MOV EDI,0x21
XOR EAX,EAX
MOV ESI,EAX
MOV AL,0x0
CALL 0x001f76a0
LAB_001fc99b:
JMP 0x001fc99d
LAB_001fc99d:
JMP 0x001fc99f
LAB_001fc99f:
JMP 0x001fc9a1
LAB_001fc9a1:
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x001fc9c5
LAB_001fc9ab:
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x18]
JZ 0x001fc9bb
JMP 0x001fc9b7
LAB_001fc9b7:
JMP 0x001fc9b9
LAB_001fc9b9:
JMP 0x001fc9bb
LAB_001fc9bb:
JMP 0x001fc9bd
LAB_001fc9bd:
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x8],RAX
LAB_001fc9c5:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x40
POP RBP
RET
|
__off64_t my_seek(int param_1,__off64_t param_2,int param_3,ulong param_4)
{
int iVar1;
int *piVar2;
int8 uVar3;
int4 *puVar4;
__off64_t local_10;
local_10 = lseek64(param_1,param_2,param_3);
if (local_10 == -1) {
piVar2 = __errno_location();
iVar1 = *piVar2;
piVar2 = (int *)_my_thread_var();
*piVar2 = iVar1;
if ((param_4 & 0x10) != 0) {
uVar3 = my_filename(param_1);
puVar4 = (int4 *)_my_thread_var();
my_error(0x21,0,uVar3,*puVar4);
}
local_10 = -1;
}
return local_10;
}
|
|
64,506 |
mi_cmp_dynamic_record
|
eloqsql/storage/myisam/mi_dynrec.c
|
int _mi_cmp_dynamic_record(register MI_INFO *info, register const uchar *record)
{
uint flag,reclength,b_type;
my_off_t filepos;
uchar *buffer;
MI_BLOCK_INFO block_info;
DBUG_ENTER("_mi_cmp_dynamic_record");
if (info->opt_flag & WRITE_CACHE_USED)
{
info->update&= ~(HA_STATE_WRITE_AT_END | HA_STATE_EXTEND_BLOCK);
if (flush_io_cache(&info->rec_cache))
DBUG_RETURN(-1);
}
info->rec_cache.seek_not_done=1;
/* If nobody have touched the database we don't have to test rec */
buffer=info->rec_buff;
if ((info->opt_flag & READ_CHECK_USED))
{ /* If check isn't disabled */
if (info->s->base.blobs)
{
if (!(buffer=(uchar*) my_alloca(info->s->base.pack_reclength+
_mi_calc_total_blob_length(info,record))))
DBUG_RETURN(-1);
}
reclength=_mi_rec_pack(info,buffer,record);
record= buffer;
filepos=info->lastpos;
flag=block_info.second_read=0;
block_info.next_filepos=filepos;
while (reclength > 0)
{
if ((b_type=_mi_get_block_info(&block_info,info->dfile,
block_info.next_filepos))
& (BLOCK_DELETED | BLOCK_ERROR | BLOCK_SYNC_ERROR |
BLOCK_FATAL_ERROR))
{
if (b_type & (BLOCK_SYNC_ERROR | BLOCK_DELETED))
my_errno=HA_ERR_RECORD_CHANGED;
goto err;
}
if (flag == 0) /* First block */
{
flag=1;
if (reclength != block_info.rec_len)
{
my_errno=HA_ERR_RECORD_CHANGED;
goto err;
}
} else if (reclength < block_info.data_len)
{
my_errno=HA_ERR_WRONG_IN_RECORD;
goto err;
}
reclength-=block_info.data_len;
if (_mi_cmp_buffer(info->dfile,record,block_info.filepos,
block_info.data_len))
{
my_errno=HA_ERR_RECORD_CHANGED;
goto err;
}
flag=1;
record+=block_info.data_len;
}
}
my_errno=0;
err:
if (buffer != info->rec_buff)
my_afree((uchar*) buffer);
DBUG_RETURN(my_errno);
}
|
O3
|
c
|
mi_cmp_dynamic_record:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20e8, %rsp # imm = 0x20E8
movq %rsi, %r14
movq %rdi, %r12
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movl 0x1c8(%rdi), %eax
testb $0x10, %al
je 0x31ff8
andb $-0xa, 0x1d1(%r12)
leaq 0x220(%r12), %rdi
movl $0x1, %esi
callq 0x508d5
movl %eax, %ecx
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
testl %ecx, %ecx
jne 0x32376
movl 0x1c8(%r12), %eax
movl $0x1, 0x300(%r12)
movq 0x120(%r12), %rbx
xorl %r15d, %r15d
testb $0x4, %al
je 0x32355
movq (%r12), %rax
cmpl $0x0, 0x188(%rax)
je 0x32051
movq 0x148(%rax), %rbx
movq %r12, %rdi
movq %r14, %rsi
callq 0x304f4
addq %rax, %rbx
xorl %edi, %edi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x5a3c5
movq %rax, %rbx
testq %rax, %rax
je 0x32397
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x2fbba
movl %eax, %r14d
movq 0x170(%r12), %rax
movl $0x0, -0x2038(%rbp)
movq %rax, -0x2048(%rbp)
testl %r14d, %r14d
je 0x32355
movb $0x1, %r15b
leaq -0x2088(%rbp), %rdi
movq %rbx, %r13
movq %r12, -0x2098(%rbp)
movq %rbx, -0x2090(%rbp)
movl 0x1c0(%r12), %esi
movq -0x2048(%rbp), %rdx
callq 0x30edb
cmpl $0x4, %eax
jae 0x3239e
movl %r14d, %eax
testb $0x1, %r15b
je 0x320db
cmpq %rax, -0x2070(%rbp)
jne 0x323b2
movq -0x2068(%rbp), %rdx
jmp 0x320eb
movq -0x2068(%rbp), %rdx
cmpq %rax, %rdx
ja 0x323aa
movl %r14d, -0x209c(%rbp)
movl 0x1c0(%r12), %ebx
movq -0x2050(%rbp), %r14
cmpl $0x2001, %edx # imm = 0x2001
movq %r13, -0x20b8(%rbp)
movq %rdx, -0x20b0(%rbp)
jb 0x32233
movl %r14d, %ecx
andl $0xfff, %ecx # imm = 0xFFF
movl $0x2000, %eax # imm = 0x2000
subl %ecx, %eax
movq %r13, %r15
movl %edx, %r13d
movq %r15, -0x20c0(%rbp)
movl %eax, %r12d
leaq 0x2fe20e(%rip), %rax # 0x330350
movq (%rax), %rax
leaq -0x2108(%rbp), %rdi
movl %ebx, %esi
movl $0x6, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x321c2
movl $0x4, %r8d
movl %ebx, %edi
leaq -0x2030(%rbp), %rsi
movq %r12, %rdx
movq %r14, %rcx
callq 0x5ac08
movq %rax, %r15
testq %r15, %r15
movq -0x20c0(%rbp), %r15
jne 0x32341
movq %r15, %rdi
leaq -0x2030(%rbp), %rsi
movq %r12, %rdx
callq 0x28370
testl %eax, %eax
jne 0x32341
addq %r12, %r14
addq %r12, %r15
subl %r12d, %r13d
movl $0x2000, %eax # imm = 0x2000
cmpl $0x2000, %r13d # imm = 0x2000
ja 0x32131
jmp 0x32239
movq %rax, %rcx
leaq 0x2fe184(%rip), %rax # 0x330350
movq (%rax), %rax
movq %rcx, -0x20a8(%rbp)
movq %rcx, %rdi
movq %r12, %rsi
leaq 0x5f270(%rip), %rdx # 0x91453
movl $0x67e, %ecx # imm = 0x67E
callq *0x210(%rax)
movl $0x4, %r8d
movl %ebx, %edi
leaq -0x2030(%rbp), %rsi
movq %r12, %rdx
movq %r14, %rcx
callq 0x5ac08
movq %rax, %r15
testq %rax, %rax
movl $0x0, %esi
cmoveq %r12, %rsi
leaq 0x2fe132(%rip), %rax # 0x330350
movq (%rax), %rax
movq -0x20a8(%rbp), %rdi
callq *0x218(%rax)
jmp 0x3217b
movq %r13, %r15
movl %edx, %r13d
movl %r13d, %r13d
leaq 0x2fe10d(%rip), %rax # 0x330350
movq (%rax), %rax
leaq -0x2108(%rbp), %rdi
movl %ebx, %esi
movl $0x6, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x322db
movl $0x4, %r8d
movl %ebx, %edi
leaq -0x2030(%rbp), %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x5ac08
movq %rax, %rbx
testq %rbx, %rbx
jne 0x32341
movq %r15, %rdi
leaq -0x2030(%rbp), %rsi
movq %r13, %rdx
callq 0x28370
testl %eax, %eax
jne 0x32341
movq -0x20b8(%rbp), %r13
addq -0x2068(%rbp), %r13
xorl %r15d, %r15d
movl -0x209c(%rbp), %r14d
subl -0x20b0(%rbp), %r14d
movq -0x2098(%rbp), %r12
movq -0x2090(%rbp), %rbx
leaq -0x2088(%rbp), %rdi
jne 0x3209f
jmp 0x32355
movq %rax, %r12
leaq 0x2fe06b(%rip), %rax # 0x330350
movq (%rax), %rax
movq %r12, %rdi
movq %r13, %rsi
leaq 0x5f15e(%rip), %rdx # 0x91453
movl $0x686, %ecx # imm = 0x686
callq *0x210(%rax)
movl $0x4, %r8d
movl %ebx, %edi
leaq -0x2030(%rbp), %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x5ac08
movq %rax, %rbx
testq %rax, %rax
movl $0x0, %esi
cmoveq %r13, %rsi
leaq 0x2fe020(%rip), %rax # 0x330350
movq (%rax), %rax
movq %r12, %rdi
callq *0x218(%rax)
jmp 0x3227c
movl $0x7b, %r15d
movq -0x2098(%rbp), %r12
movq -0x2090(%rbp), %rbx
callq 0x5c086
movl %r15d, (%rax)
cmpq 0x120(%r12), %rbx
je 0x3236f
movq %rbx, %rdi
callq 0x5a5f2
callq 0x5c086
movl (%rax), %eax
movq %fs:0x28, %rcx
cmpq -0x30(%rbp), %rcx
jne 0x323ba
addq $0x20e8, %rsp # imm = 0x20E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
jmp 0x32376
movl $0x7b, %r15d
testb $0x14, %al
jne 0x32355
jmp 0x3235d
movl $0x7f, %r15d
jmp 0x32355
movl $0x7b, %r15d
jmp 0x32355
callq 0x283d0
|
_mi_cmp_dynamic_record:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 20E8h
mov r14, rsi
mov r12, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov eax, [rdi+1C8h]
test al, 10h
jz short loc_31FF8
and byte ptr [r12+1D1h], 0F6h
lea rdi, [r12+220h]
mov esi, 1
call my_b_flush_io_cache
mov ecx, eax
mov eax, 0FFFFFFFFh
test ecx, ecx
jnz loc_32376
mov eax, [r12+1C8h]
loc_31FF8:
mov dword ptr [r12+300h], 1
mov rbx, [r12+120h]
xor r15d, r15d
test al, 4
jz loc_32355
mov rax, [r12]
cmp dword ptr [rax+188h], 0
jz short loc_32051
mov rbx, [rax+148h]
mov rdi, r12
mov rsi, r14
call _mi_calc_total_blob_length
add rbx, rax
xor edi, edi
mov rsi, rbx
xor edx, edx
call my_malloc
mov rbx, rax
test rax, rax
jz loc_32397
loc_32051:
mov rdi, r12
mov rsi, rbx
mov rdx, r14
call _mi_rec_pack
mov r14d, eax
mov rax, [r12+170h]
mov [rbp+var_2038], 0
mov [rbp+var_2048], rax
test r14d, r14d
jz loc_32355
mov r15b, 1
lea rdi, [rbp+var_2088]
mov r13, rbx
mov [rbp+var_2098], r12
mov [rbp+var_2090], rbx
loc_3209F:
mov esi, [r12+1C0h]
mov rdx, [rbp+var_2048]
call _mi_get_block_info
cmp eax, 4
jnb loc_3239E
mov eax, r14d
test r15b, 1
jz short loc_320DB
cmp [rbp+var_2070], rax
jnz loc_323B2
mov rdx, [rbp+var_2068]
jmp short loc_320EB
loc_320DB:
mov rdx, [rbp+var_2068]
cmp rdx, rax
ja loc_323AA
loc_320EB:
mov [rbp+var_209C], r14d
mov ebx, [r12+1C0h]
mov r14, [rbp+var_2050]
cmp edx, 2001h
mov [rbp+var_20B8], r13
mov [rbp+var_20B0], rdx
jb loc_32233
mov ecx, r14d
and ecx, 0FFFh
mov eax, 2000h
sub eax, ecx
mov r15, r13
mov r13d, edx
loc_32131:
mov [rbp+var_20C0], r15
mov r12d, eax
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_2108]
mov esi, ebx
mov edx, 6
call qword ptr [rax+158h]
test rax, rax
jnz short loc_321C2
mov r8d, 4
mov edi, ebx
lea rsi, [rbp+var_2030]
mov rdx, r12
mov rcx, r14
call my_pread
mov r15, rax
loc_3217B:
test r15, r15
mov r15, [rbp+var_20C0]
jnz loc_32341
mov rdi, r15
lea rsi, [rbp+var_2030]
mov rdx, r12
call _bcmp
test eax, eax
jnz loc_32341
add r14, r12
add r15, r12
sub r13d, r12d
mov eax, 2000h
cmp r13d, 2000h
ja loc_32131
jmp short loc_32239
loc_321C2:
mov rcx, rax
lea rax, PSI_server
mov rax, [rax]
mov [rbp+var_20A8], rcx
mov rdi, rcx
mov rsi, r12
lea rdx, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 67Eh
call qword ptr [rax+210h]
mov r8d, 4
mov edi, ebx
lea rsi, [rbp+var_2030]
mov rdx, r12
mov rcx, r14
call my_pread
mov r15, rax
test rax, rax
mov esi, 0
cmovz rsi, r12
lea rax, PSI_server
mov rax, [rax]
mov rdi, [rbp+var_20A8]
call qword ptr [rax+218h]
jmp loc_3217B
loc_32233:
mov r15, r13
mov r13d, edx
loc_32239:
mov r13d, r13d
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_2108]
mov esi, ebx
mov edx, 6
call qword ptr [rax+158h]
test rax, rax
jnz short loc_322DB
mov r8d, 4
mov edi, ebx
lea rsi, [rbp+var_2030]
mov rdx, r13
mov rcx, r14
call my_pread
mov rbx, rax
loc_3227C:
test rbx, rbx
jnz loc_32341
mov rdi, r15
lea rsi, [rbp+var_2030]
mov rdx, r13
call _bcmp
test eax, eax
jnz loc_32341
mov r13, [rbp+var_20B8]
add r13, [rbp+var_2068]
xor r15d, r15d
mov r14d, [rbp+var_209C]
sub r14d, dword ptr [rbp+var_20B0]
mov r12, [rbp+var_2098]
mov rbx, [rbp+var_2090]
lea rdi, [rbp+var_2088]
jnz loc_3209F
jmp short loc_32355
loc_322DB:
mov r12, rax
lea rax, PSI_server
mov rax, [rax]
mov rdi, r12
mov rsi, r13
lea rdx, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 686h
call qword ptr [rax+210h]
mov r8d, 4
mov edi, ebx
lea rsi, [rbp+var_2030]
mov rdx, r13
mov rcx, r14
call my_pread
mov rbx, rax
test rax, rax
mov esi, 0
cmovz rsi, r13
lea rax, PSI_server
mov rax, [rax]
mov rdi, r12
call qword ptr [rax+218h]
jmp loc_3227C
loc_32341:
mov r15d, 7Bh ; '{'
mov r12, [rbp+var_2098]
mov rbx, [rbp+var_2090]
loc_32355:
call _my_thread_var
mov [rax], r15d
loc_3235D:
cmp rbx, [r12+120h]
jz short loc_3236F
mov rdi, rbx
call my_free
loc_3236F:
call _my_thread_var
mov eax, [rax]
loc_32376:
mov rcx, fs:28h
cmp rcx, [rbp+var_30]
jnz short loc_323BA
add rsp, 20E8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_32397:
mov eax, 0FFFFFFFFh
jmp short loc_32376
loc_3239E:
mov r15d, 7Bh ; '{'
test al, 14h
jnz short loc_32355
jmp short loc_3235D
loc_323AA:
mov r15d, 7Fh
jmp short loc_32355
loc_323B2:
mov r15d, 7Bh ; '{'
jmp short loc_32355
loc_323BA:
call ___stack_chk_fail
|
long long mi_cmp_dynamic_record(unsigned long long a1, unsigned long long a2)
{
char *v2; // r14
long long v3; // r12
int v4; // eax
int v5; // ecx
long long result; // rax
_BYTE *v7; // rbx
int v8; // r15d
long long v9; // rbx
long long v10; // rax
long long v11; // rcx
unsigned int v12; // r14d
long long v13; // rax
_BYTE *v14; // r13
unsigned int block_info; // eax
unsigned long long v16; // rdx
unsigned int v17; // ebx
long long v18; // r14
unsigned int v19; // eax
_BYTE *v20; // r15
unsigned int v21; // r13d
unsigned long long v22; // r12
long long v23; // rax
long long v24; // r15
bool v25; // zf
_BYTE *v26; // r15
long long v27; // rax
long long v28; // rbx
_BYTE *v29; // r12
_BYTE v30[72]; // [rsp+8h] [rbp-2108h] BYREF
_BYTE *v31; // [rsp+50h] [rbp-20C0h]
_BYTE *v32; // [rsp+58h] [rbp-20B8h]
unsigned long long v33; // [rsp+60h] [rbp-20B0h]
_BYTE *v34; // [rsp+68h] [rbp-20A8h]
unsigned int v35; // [rsp+74h] [rbp-209Ch]
long long v36; // [rsp+78h] [rbp-2098h]
_BYTE *v37; // [rsp+80h] [rbp-2090h]
_BYTE v38[24]; // [rsp+88h] [rbp-2088h] BYREF
long long v39; // [rsp+A0h] [rbp-2070h]
unsigned long long v40; // [rsp+A8h] [rbp-2068h]
long long v41; // [rsp+C0h] [rbp-2050h]
long long v42; // [rsp+C8h] [rbp-2048h]
int v43; // [rsp+D8h] [rbp-2038h]
_BYTE v44[8192]; // [rsp+E0h] [rbp-2030h] BYREF
unsigned long long v45; // [rsp+20E0h] [rbp-30h]
v2 = (char *)a2;
v3 = a1;
v45 = __readfsqword(0x28u);
v4 = *(_DWORD *)(a1 + 456);
if ( (v4 & 0x10) != 0 )
{
*(_BYTE *)(a1 + 465) &= 0xF6u;
a1 += 544LL;
a2 = 1LL;
v5 = my_b_flush_io_cache(a1, 1LL);
result = 0xFFFFFFFFLL;
if ( v5 )
return result;
v4 = *(_DWORD *)(v3 + 456);
}
*(_DWORD *)(v3 + 768) = 1;
v7 = *(_BYTE **)(v3 + 288);
v8 = 0;
if ( (v4 & 4) == 0 )
goto LABEL_36;
if ( *(_DWORD *)(*(_QWORD *)v3 + 392LL) )
{
v9 = *(_QWORD *)(*(_QWORD *)v3 + 328LL);
v10 = mi_calc_total_blob_length((_QWORD *)v3, (long long)v2);
v7 = (_BYTE *)my_malloc(0LL, v10 + v9, 0LL, v11);
if ( !v7 )
return 0xFFFFFFFFLL;
}
a1 = v3;
a2 = (unsigned long long)v7;
v12 = mi_rec_pack(v3, v7, v2);
v13 = *(_QWORD *)(v3 + 368);
v43 = 0;
v42 = v13;
if ( v12 )
{
LOBYTE(v8) = 1;
a1 = (unsigned long long)v38;
v14 = v7;
v36 = v3;
v37 = v7;
while ( 1 )
{
a2 = *(unsigned int *)(v3 + 448);
block_info = mi_get_block_info((long long)v38, a2, v42);
if ( block_info >= 4 )
break;
if ( (v8 & 1) != 0 )
{
if ( v39 != v12 )
{
v8 = 123;
goto LABEL_36;
}
v16 = v40;
}
else
{
v16 = v40;
if ( v40 > v12 )
{
v8 = 127;
goto LABEL_36;
}
}
v35 = v12;
v17 = *(_DWORD *)(v3 + 448);
v18 = v41;
v32 = v14;
v33 = v16;
if ( (unsigned int)v16 >= 0x2001 )
{
v19 = 0x2000 - (v41 & 0xFFF);
v20 = v14;
v21 = v16;
while ( 1 )
{
v31 = v20;
v22 = v19;
v23 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v30, v17, 6LL);
if ( v23 )
{
v34 = (_BYTE *)v23;
((void ( *)(long long, unsigned long long, const char *, long long))PSI_server[66])(
v23,
v22,
"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_dynrec.c",
1662LL);
v24 = my_pread(v17, v44, v22, v18, 4LL);
a2 = 0LL;
if ( !v24 )
a2 = v22;
a1 = (unsigned long long)v34;
((void ( *)(_BYTE *, unsigned long long))PSI_server[67])(v34, a2);
}
else
{
a1 = v17;
a2 = (unsigned long long)v44;
v24 = my_pread(v17, v44, v22, v18, 4LL);
}
v25 = v24 == 0;
v26 = v31;
if ( !v25 )
break;
a1 = (unsigned long long)v31;
a2 = (unsigned long long)v44;
if ( (unsigned int)bcmp(v31, v44, v22) )
break;
v18 += v22;
v20 = &v26[v22];
v21 -= v22;
v19 = 0x2000;
if ( v21 <= 0x2000 )
goto LABEL_26;
}
LABEL_35:
v8 = 123;
v3 = v36;
v7 = v37;
goto LABEL_36;
}
v20 = v14;
v21 = v16;
LABEL_26:
v27 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v30, v17, 6LL);
if ( v27 )
{
v29 = (_BYTE *)v27;
((void ( *)(long long, _QWORD, const char *, long long))PSI_server[66])(
v27,
v21,
"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_dynrec.c",
1670LL);
v28 = my_pread(v17, v44, v21, v18, 4LL);
a2 = 0LL;
if ( !v28 )
a2 = v21;
a1 = (unsigned long long)v29;
((void ( *)(_BYTE *, unsigned long long))PSI_server[67])(v29, a2);
}
else
{
a1 = v17;
a2 = (unsigned long long)v44;
v28 = my_pread(v17, v44, v21, v18, 4LL);
}
if ( v28 )
goto LABEL_35;
a1 = (unsigned long long)v20;
a2 = (unsigned long long)v44;
if ( (unsigned int)bcmp(v20, v44, v21) )
goto LABEL_35;
v14 = &v32[v40];
v8 = 0;
v12 = v35 - v33;
v3 = v36;
v7 = v37;
a1 = (unsigned long long)v38;
if ( v35 == (_DWORD)v33 )
goto LABEL_36;
}
v8 = 123;
if ( (block_info & 0x14) != 0 )
goto LABEL_36;
}
else
{
LABEL_36:
*(_DWORD *)my_thread_var(a1, (const char *)a2) = v8;
}
if ( v7 != *(_BYTE **)(v3 + 288) )
{
a1 = (unsigned long long)v7;
my_free(v7);
}
return *(unsigned int *)my_thread_var(a1, (const char *)a2);
}
|
_mi_cmp_dynamic_record:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x20e8
MOV R14,RSI
MOV R12,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV EAX,dword ptr [RDI + 0x1c8]
TEST AL,0x10
JZ 0x00131ff8
AND byte ptr [R12 + 0x1d1],0xf6
LEA RDI,[R12 + 0x220]
MOV ESI,0x1
CALL 0x001508d5
MOV ECX,EAX
MOV EAX,0xffffffff
TEST ECX,ECX
JNZ 0x00132376
MOV EAX,dword ptr [R12 + 0x1c8]
LAB_00131ff8:
MOV dword ptr [R12 + 0x300],0x1
MOV RBX,qword ptr [R12 + 0x120]
XOR R15D,R15D
TEST AL,0x4
JZ 0x00132355
MOV RAX,qword ptr [R12]
CMP dword ptr [RAX + 0x188],0x0
JZ 0x00132051
MOV RBX,qword ptr [RAX + 0x148]
MOV RDI,R12
MOV RSI,R14
CALL 0x001304f4
ADD RBX,RAX
XOR EDI,EDI
MOV RSI,RBX
XOR EDX,EDX
CALL 0x0015a3c5
MOV RBX,RAX
TEST RAX,RAX
JZ 0x00132397
LAB_00132051:
MOV RDI,R12
MOV RSI,RBX
MOV RDX,R14
CALL 0x0012fbba
MOV R14D,EAX
MOV RAX,qword ptr [R12 + 0x170]
MOV dword ptr [RBP + -0x2038],0x0
MOV qword ptr [RBP + -0x2048],RAX
TEST R14D,R14D
JZ 0x00132355
MOV R15B,0x1
LEA RDI,[RBP + -0x2088]
MOV R13,RBX
MOV qword ptr [RBP + -0x2098],R12
MOV qword ptr [RBP + -0x2090],RBX
LAB_0013209f:
MOV ESI,dword ptr [R12 + 0x1c0]
MOV RDX,qword ptr [RBP + -0x2048]
CALL 0x00130edb
CMP EAX,0x4
JNC 0x0013239e
MOV EAX,R14D
TEST R15B,0x1
JZ 0x001320db
CMP qword ptr [RBP + -0x2070],RAX
JNZ 0x001323b2
MOV RDX,qword ptr [RBP + -0x2068]
JMP 0x001320eb
LAB_001320db:
MOV RDX,qword ptr [RBP + -0x2068]
CMP RDX,RAX
JA 0x001323aa
LAB_001320eb:
MOV dword ptr [RBP + -0x209c],R14D
MOV EBX,dword ptr [R12 + 0x1c0]
MOV R14,qword ptr [RBP + -0x2050]
CMP EDX,0x2001
MOV qword ptr [RBP + -0x20b8],R13
MOV qword ptr [RBP + -0x20b0],RDX
JC 0x00132233
MOV ECX,R14D
AND ECX,0xfff
MOV EAX,0x2000
SUB EAX,ECX
MOV R15,R13
MOV R13D,EDX
LAB_00132131:
MOV qword ptr [RBP + -0x20c0],R15
MOV R12D,EAX
LEA RAX,[0x430350]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0x2108]
MOV ESI,EBX
MOV EDX,0x6
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x001321c2
MOV R8D,0x4
MOV EDI,EBX
LEA RSI,[RBP + -0x2030]
MOV RDX,R12
MOV RCX,R14
CALL 0x0015ac08
MOV R15,RAX
LAB_0013217b:
TEST R15,R15
MOV R15,qword ptr [RBP + -0x20c0]
JNZ 0x00132341
MOV RDI,R15
LEA RSI,[RBP + -0x2030]
MOV RDX,R12
CALL 0x00128370
TEST EAX,EAX
JNZ 0x00132341
ADD R14,R12
ADD R15,R12
SUB R13D,R12D
MOV EAX,0x2000
CMP R13D,0x2000
JA 0x00132131
JMP 0x00132239
LAB_001321c2:
MOV RCX,RAX
LEA RAX,[0x430350]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20a8],RCX
MOV RDI,RCX
MOV RSI,R12
LEA RDX,[0x191453]
MOV ECX,0x67e
CALL qword ptr [RAX + 0x210]
MOV R8D,0x4
MOV EDI,EBX
LEA RSI,[RBP + -0x2030]
MOV RDX,R12
MOV RCX,R14
CALL 0x0015ac08
MOV R15,RAX
TEST RAX,RAX
MOV ESI,0x0
CMOVZ RSI,R12
LEA RAX,[0x430350]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RBP + -0x20a8]
CALL qword ptr [RAX + 0x218]
JMP 0x0013217b
LAB_00132233:
MOV R15,R13
MOV R13D,EDX
LAB_00132239:
MOV R13D,R13D
LEA RAX,[0x430350]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0x2108]
MOV ESI,EBX
MOV EDX,0x6
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x001322db
MOV R8D,0x4
MOV EDI,EBX
LEA RSI,[RBP + -0x2030]
MOV RDX,R13
MOV RCX,R14
CALL 0x0015ac08
MOV RBX,RAX
LAB_0013227c:
TEST RBX,RBX
JNZ 0x00132341
MOV RDI,R15
LEA RSI,[RBP + -0x2030]
MOV RDX,R13
CALL 0x00128370
TEST EAX,EAX
JNZ 0x00132341
MOV R13,qword ptr [RBP + -0x20b8]
ADD R13,qword ptr [RBP + -0x2068]
XOR R15D,R15D
MOV R14D,dword ptr [RBP + -0x209c]
SUB R14D,dword ptr [RBP + -0x20b0]
MOV R12,qword ptr [RBP + -0x2098]
MOV RBX,qword ptr [RBP + -0x2090]
LEA RDI,[RBP + -0x2088]
JNZ 0x0013209f
JMP 0x00132355
LAB_001322db:
MOV R12,RAX
LEA RAX,[0x430350]
MOV RAX,qword ptr [RAX]
MOV RDI,R12
MOV RSI,R13
LEA RDX,[0x191453]
MOV ECX,0x686
CALL qword ptr [RAX + 0x210]
MOV R8D,0x4
MOV EDI,EBX
LEA RSI,[RBP + -0x2030]
MOV RDX,R13
MOV RCX,R14
CALL 0x0015ac08
MOV RBX,RAX
TEST RAX,RAX
MOV ESI,0x0
CMOVZ RSI,R13
LEA RAX,[0x430350]
MOV RAX,qword ptr [RAX]
MOV RDI,R12
CALL qword ptr [RAX + 0x218]
JMP 0x0013227c
LAB_00132341:
MOV R15D,0x7b
MOV R12,qword ptr [RBP + -0x2098]
MOV RBX,qword ptr [RBP + -0x2090]
LAB_00132355:
CALL 0x0015c086
MOV dword ptr [RAX],R15D
LAB_0013235d:
CMP RBX,qword ptr [R12 + 0x120]
JZ 0x0013236f
MOV RDI,RBX
CALL 0x0015a5f2
LAB_0013236f:
CALL 0x0015c086
MOV EAX,dword ptr [RAX]
LAB_00132376:
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x30]
JNZ 0x001323ba
ADD RSP,0x20e8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00132397:
MOV EAX,0xffffffff
JMP 0x00132376
LAB_0013239e:
MOV R15D,0x7b
TEST AL,0x14
JNZ 0x00132355
JMP 0x0013235d
LAB_001323aa:
MOV R15D,0x7f
JMP 0x00132355
LAB_001323b2:
MOV R15D,0x7b
JMP 0x00132355
LAB_001323ba:
CALL 0x001283d0
|
int4 _mi_cmp_dynamic_record(long *param_1,int8 param_2)
{
int iVar1;
uint uVar2;
uint uVar3;
long lVar4;
void *pvVar5;
int4 *puVar6;
void *pvVar7;
ulong uVar8;
ulong uVar9;
ulong uVar10;
long lVar11;
bool bVar12;
int4 uVar13;
long in_FS_OFFSET;
int1 local_2110 [72];
void *local_20c8;
void *local_20c0;
ulong local_20b8;
long local_20b0;
uint local_20a4;
long *local_20a0;
void *local_2098;
int1 local_2090 [24];
ulong local_2078;
ulong local_2070;
long local_2058;
long local_2050;
int4 local_2040;
int1 local_2038 [8192];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
uVar2 = *(uint *)(param_1 + 0x39);
if ((uVar2 & 0x10) != 0) {
*(byte *)((long)param_1 + 0x1d1) = *(byte *)((long)param_1 + 0x1d1) & 0xf6;
iVar1 = my_b_flush_io_cache(param_1 + 0x44,1);
uVar13 = 0xffffffff;
if (iVar1 != 0) goto LAB_00132376;
uVar2 = *(uint *)(param_1 + 0x39);
}
*(int4 *)(param_1 + 0x60) = 1;
pvVar5 = (void *)param_1[0x24];
uVar13 = 0;
pvVar7 = pvVar5;
if ((uVar2 & 4) != 0) {
if (*(int *)(*param_1 + 0x188) != 0) {
lVar11 = *(long *)(*param_1 + 0x148);
lVar4 = _mi_calc_total_blob_length(param_1,param_2);
pvVar5 = (void *)my_malloc(0,lVar11 + lVar4,0);
if (pvVar5 == (void *)0x0) {
uVar13 = 0xffffffff;
goto LAB_00132376;
}
}
uVar2 = _mi_rec_pack(param_1,pvVar5,param_2);
local_2050 = param_1[0x2e];
local_2040 = 0;
pvVar7 = pvVar5;
if (uVar2 != 0) {
bVar12 = true;
local_20a0 = param_1;
local_2098 = pvVar5;
do {
pvVar7 = local_2098;
param_1 = local_20a0;
uVar3 = _mi_get_block_info(local_2090,(int)local_20a0[0x38],local_2050);
if (3 < uVar3) {
uVar13 = 0x7b;
if ((uVar3 & 0x14) == 0) goto LAB_0013235d;
break;
}
if (bVar12) {
if (local_2078 != uVar2) {
uVar13 = 0x7b;
break;
}
}
else if (uVar2 < local_2070) {
uVar13 = 0x7f;
break;
}
uVar13 = (int4)param_1[0x38];
uVar3 = (uint)local_2070;
local_20b8 = local_2070;
lVar11 = local_2058;
local_20c0 = pvVar5;
local_20a4 = uVar2;
if (0x2000 < uVar3) {
uVar2 = 0x2000 - ((uint)local_2058 & 0xfff);
uVar10 = local_2070 & 0xffffffff;
do {
uVar9 = (ulong)uVar2;
local_20c8 = pvVar5;
lVar4 = (**(code **)(PSI_server + 0x158))(local_2110,uVar13,6);
if (lVar4 == 0) {
lVar4 = my_pread(uVar13,local_2038,uVar9,lVar11,4);
}
else {
local_20b0 = lVar4;
(**(code **)(PSI_server + 0x210))
(lVar4,uVar9,
"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_dynrec.c",0x67e
);
lVar4 = my_pread(uVar13,local_2038,uVar9,lVar11,4);
uVar8 = 0;
if (lVar4 == 0) {
uVar8 = uVar9;
}
(**(code **)(PSI_server + 0x218))(local_20b0,uVar8);
}
pvVar5 = local_20c8;
if ((lVar4 != 0) || (iVar1 = bcmp(local_20c8,local_2038,uVar9), iVar1 != 0))
goto LAB_00132341;
lVar11 = lVar11 + uVar9;
pvVar5 = (void *)((long)pvVar5 + uVar9);
uVar3 = (int)uVar10 - uVar2;
uVar10 = (ulong)uVar3;
uVar2 = 0x2000;
} while (0x2000 < uVar3);
}
uVar10 = (ulong)uVar3;
lVar4 = (**(code **)(PSI_server + 0x158))(local_2110,uVar13,6);
if (lVar4 == 0) {
lVar11 = my_pread(uVar13,local_2038,uVar10,lVar11,4);
}
else {
(**(code **)(PSI_server + 0x210))
(lVar4,uVar10,
"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_dynrec.c",0x686);
lVar11 = my_pread(uVar13,local_2038,uVar10,lVar11,4);
uVar9 = 0;
if (lVar11 == 0) {
uVar9 = uVar10;
}
(**(code **)(PSI_server + 0x218))(lVar4,uVar9);
}
if ((lVar11 != 0) || (iVar1 = bcmp(pvVar5,local_2038,uVar10), iVar1 != 0)) {
LAB_00132341:
uVar13 = 0x7b;
pvVar7 = local_2098;
param_1 = local_20a0;
break;
}
pvVar5 = (void *)((long)local_20c0 + local_2070);
bVar12 = false;
uVar13 = 0;
uVar2 = local_20a4 - (int)local_20b8;
pvVar7 = local_2098;
param_1 = local_20a0;
} while (uVar2 != 0);
}
}
puVar6 = (int4 *)_my_thread_var();
*puVar6 = uVar13;
LAB_0013235d:
if (pvVar7 != (void *)param_1[0x24]) {
my_free(pvVar7);
}
puVar6 = (int4 *)_my_thread_var();
uVar13 = *puVar6;
LAB_00132376:
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return uVar13;
}
|
|
64,507 |
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 0xaf44e
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movq -0x20(%rbp), %rdx
callq 0xaf4d0
cmpl $0x0, %eax
je 0xaf3fd
movl $0xffffffff, -0x28(%rbp) # imm = 0xFFFFFFFF
jmp 0xaf439
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 0xaf437
movq -0x10(%rbp), %rax
movq $-0x1, 0x170(%rax)
callq 0xfc1b0
movl $0x89, (%rax)
jmp 0xaf439
cmpl $0x1, -0x28(%rbp)
je 0xaf447
movl -0x28(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0xaf4c4
movl $0x0, -0x24(%rbp)
movq -0x10(%rbp), %rdi
callq 0xaf550
cmpl $0x0, %eax
je 0xaf4be
cmpl $0x0, -0x24(%rbp)
je 0xaf480
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movq -0x20(%rbp), %rdx
callq 0xaf4d0
cmpl $0x0, %eax
je 0xaf480
movl $0xffffffff, -0x28(%rbp) # imm = 0xFFFFFFFF
jmp 0xaf4bc
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 0xaf4ba
movq -0x10(%rbp), %rax
movq $-0x1, 0x170(%rax)
callq 0xfc1b0
movl $0x89, (%rax)
jmp 0xaf4bc
jmp 0xaf4be
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_AF44E
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_AF3FD
mov [rbp+var_28], 0FFFFFFFFh
jmp short loc_AF439
loc_AF3FD:
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_AF437
mov rax, [rbp+var_10]
mov qword ptr [rax+170h], 0FFFFFFFFFFFFFFFFh
call _my_thread_var
mov dword ptr [rax], 89h
loc_AF437:
jmp short $+2
loc_AF439:
cmp [rbp+var_28], 1
jz short loc_AF447
mov eax, [rbp+var_28]
mov [rbp+var_4], eax
jmp short loc_AF4C4
loc_AF447:
mov [rbp+var_24], 0
loc_AF44E:
mov rdi, [rbp+var_10]
call mi_check_rowid_filter_is_active
cmp eax, 0
jz short loc_AF4BE
cmp [rbp+var_24], 0
jz short loc_AF480
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_AF480
mov [rbp+var_28], 0FFFFFFFFh
jmp short loc_AF4BC
loc_AF480:
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_AF4BA
mov rax, [rbp+var_10]
mov qword ptr [rax+170h], 0FFFFFFFFFFFFFFFFh
call _my_thread_var
mov dword ptr [rax], 89h
loc_AF4BA:
jmp short $+2
loc_AF4BC:
jmp short $+2
loc_AF4BE:
mov eax, [rbp+var_28]
mov [rbp+var_4], eax
loc_AF4C4:
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 0x001af44e
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x14]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x001af4d0
CMP EAX,0x0
JZ 0x001af3fd
MOV dword ptr [RBP + -0x28],0xffffffff
JMP 0x001af439
LAB_001af3fd:
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 0x001af437
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x170],-0x1
CALL 0x001fc1b0
MOV dword ptr [RAX],0x89
LAB_001af437:
JMP 0x001af439
LAB_001af439:
CMP dword ptr [RBP + -0x28],0x1
JZ 0x001af447
MOV EAX,dword ptr [RBP + -0x28]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001af4c4
LAB_001af447:
MOV dword ptr [RBP + -0x24],0x0
LAB_001af44e:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001af550
CMP EAX,0x0
JZ 0x001af4be
CMP dword ptr [RBP + -0x24],0x0
JZ 0x001af480
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x14]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x001af4d0
CMP EAX,0x0
JZ 0x001af480
MOV dword ptr [RBP + -0x28],0xffffffff
JMP 0x001af4bc
LAB_001af480:
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 0x001af4ba
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x170],-0x1
CALL 0x001fc1b0
MOV dword ptr [RAX],0x89
LAB_001af4ba:
JMP 0x001af4bc
LAB_001af4bc:
JMP 0x001af4be
LAB_001af4be:
MOV EAX,dword ptr [RBP + -0x28]
MOV dword ptr [RBP + -0x4],EAX
LAB_001af4c4:
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;
}
|
|
64,508 |
mariadb_set_conf_option
|
eloqsql/libmariadb/libmariadb/mariadb_lib.c
|
my_bool _mariadb_set_conf_option(MYSQL *mysql, const char *config_option, const char *config_value)
{
if (config_option)
{
int i;
char *c;
/* CONC-395: replace underscore "_" by dash "-" */
while ((c= strchr(config_option, '_')))
*c= '-';
for (i=0; mariadb_defaults[i].conf_key; i++)
{
if (!strcmp(mariadb_defaults[i].conf_key, config_option))
{
my_bool val_bool;
int val_int;
size_t val_sizet;
int rc;
void *option_val= NULL;
switch (mariadb_defaults[i].type) {
case MARIADB_OPTION_FUNC:
return mariadb_defaults[i].u.option_func(mysql, config_option, config_value, -1);
break;
case MARIADB_OPTION_BOOL:
val_bool= 0;
if (config_value)
val_bool= atoi(config_value);
option_val= &val_bool;
break;
case MARIADB_OPTION_INT:
val_int= 0;
if (config_value)
val_int= atoi(config_value);
option_val= &val_int;
break;
case MARIADB_OPTION_SIZET:
val_sizet= 0;
if (config_value)
val_sizet= strtol(config_value, NULL, 10);
option_val= &val_sizet;
break;
case MARIADB_OPTION_STR:
option_val= (void*)config_value;
break;
case MARIADB_OPTION_NONE:
break;
}
rc= mysql_optionsv(mysql, mariadb_defaults[i].u.option, option_val);
return(test(rc));
}
}
}
/* unknown key */
return 1;
}
|
O0
|
c
|
mariadb_set_conf_option:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x31eca
jmp 0x31d21
movq -0x18(%rbp), %rdi
movl $0x5f, %esi
callq 0x14170
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
je 0x31d42
movq -0x30(%rbp), %rax
movb $0x2d, (%rax)
jmp 0x31d21
movl $0x0, -0x24(%rbp)
movslq -0x24(%rbp), %rcx
leaq 0x4d38c(%rip), %rax # 0x7f0e0
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
cmpq $0x0, 0x10(%rax)
je 0x31ec8
movslq -0x24(%rbp), %rcx
leaq 0x4d36f(%rip), %rax # 0x7f0e0
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rdi
movq -0x18(%rbp), %rsi
callq 0x14600
cmpl $0x0, %eax
jne 0x31eb8
movq $0x0, -0x50(%rbp)
movslq -0x24(%rbp), %rax
leaq (%rax,%rax,2), %rcx
leaq 0x4d33b(%rip), %rax # 0x7f0e0
movl 0x8(%rax,%rcx,8), %eax
movq %rax, -0x58(%rbp)
subq $0x5, %rax
ja 0x31e7d
movq -0x58(%rbp), %rax
leaq 0x3c1e6(%rip), %rcx # 0x6dfa8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movslq -0x24(%rbp), %rcx
leaq 0x4d30a(%rip), %rax # 0x7f0e0
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq $-0x1, %rcx
callq *%rax
movb %al, -0x1(%rbp)
jmp 0x31ece
movb $0x0, -0x31(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x31e14
movq -0x20(%rbp), %rdi
callq 0x146c0
movb %al, -0x31(%rbp)
leaq -0x31(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x31e7d
movl $0x0, -0x38(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x31e38
movq -0x20(%rbp), %rdi
callq 0x146c0
movl %eax, -0x38(%rbp)
leaq -0x38(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x31e7d
movq $0x0, -0x40(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x31e67
movq -0x20(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0xa, %edx
callq 0x14610
movq %rax, -0x40(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x31e7d
movq -0x20(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x31e7d
jmp 0x31e7d
movq -0x10(%rbp), %rdi
movslq -0x24(%rbp), %rcx
leaq 0x4d254(%rip), %rax # 0x7f0e0
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %esi
movq -0x50(%rbp), %rdx
movb $0x0, %al
callq 0x31ee0
movl %eax, -0x44(%rbp)
movl -0x44(%rbp), %edx
xorl %eax, %eax
movl $0x1, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movb %al, -0x1(%rbp)
jmp 0x31ece
jmp 0x31eba
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x31d49
jmp 0x31eca
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x60, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
_mariadb_set_conf_option:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
cmp [rbp+var_18], 0
jz loc_31ECA
jmp short $+2
loc_31D21:
mov rdi, [rbp+var_18]
mov esi, 5Fh ; '_'
call _strchr
mov [rbp+var_30], rax
cmp rax, 0
jz short loc_31D42
mov rax, [rbp+var_30]
mov byte ptr [rax], 2Dh ; '-'
jmp short loc_31D21
loc_31D42:
mov [rbp+var_24], 0
loc_31D49:
movsxd rcx, [rbp+var_24]
lea rax, mariadb_defaults
imul rcx, 18h
add rax, rcx
cmp qword ptr [rax+10h], 0
jz loc_31EC8
movsxd rcx, [rbp+var_24]
lea rax, mariadb_defaults
imul rcx, 18h
add rax, rcx
mov rdi, [rax+10h]
mov rsi, [rbp+var_18]
call _strcmp
cmp eax, 0
jnz loc_31EB8
mov [rbp+var_50], 0
movsxd rax, [rbp+var_24]
lea rcx, [rax+rax*2]
lea rax, mariadb_defaults
mov eax, [rax+rcx*8+8]
mov [rbp+var_58], rax
sub rax, 5; switch 6 cases
ja def_31DC9; jumptable 0000000000031DC9 default case
mov rax, [rbp+var_58]
lea rcx, jpt_31DC9
movsxd rax, ds:(jpt_31DC9 - 6DFA8h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_31DCB:
movsxd rcx, [rbp+var_24]; jumptable 0000000000031DC9 case 5
lea rax, mariadb_defaults
imul rcx, 18h
add rax, rcx
mov rax, [rax]
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
mov rcx, 0FFFFFFFFFFFFFFFFh
call rax
mov [rbp+var_1], al
jmp loc_31ECE
loc_31DFD:
mov [rbp+var_31], 0; jumptable 0000000000031DC9 case 1
cmp [rbp+var_20], 0
jz short loc_31E14
mov rdi, [rbp+var_20]
call _atoi
mov [rbp+var_31], al
loc_31E14:
lea rax, [rbp+var_31]
mov [rbp+var_50], rax
jmp short def_31DC9; jumptable 0000000000031DC9 default case
loc_31E1E:
mov [rbp+var_38], 0; jumptable 0000000000031DC9 case 2
cmp [rbp+var_20], 0
jz short loc_31E38
mov rdi, [rbp+var_20]
call _atoi
mov [rbp+var_38], eax
loc_31E38:
lea rax, [rbp+var_38]
mov [rbp+var_50], rax
jmp short def_31DC9; jumptable 0000000000031DC9 default case
loc_31E42:
mov [rbp+var_40], 0; jumptable 0000000000031DC9 case 3
cmp [rbp+var_20], 0
jz short loc_31E67
mov rdi, [rbp+var_20]
xor eax, eax
mov esi, eax
mov edx, 0Ah
call _strtol
mov [rbp+var_40], rax
loc_31E67:
lea rax, [rbp+var_40]
mov [rbp+var_50], rax
jmp short def_31DC9; jumptable 0000000000031DC9 default case
loc_31E71:
mov rax, [rbp+var_20]; jumptable 0000000000031DC9 case 4
mov [rbp+var_50], rax
jmp short def_31DC9; jumptable 0000000000031DC9 default case
loc_31E7B:
jmp short $+2; jumptable 0000000000031DC9 case 0
def_31DC9:
mov rdi, [rbp+var_10]; jumptable 0000000000031DC9 default case
movsxd rcx, [rbp+var_24]
lea rax, mariadb_defaults
imul rcx, 18h
add rax, rcx
mov esi, [rax]
mov rdx, [rbp+var_50]
mov al, 0
call mysql_optionsv
mov [rbp+var_44], eax
mov edx, [rbp+var_44]
xor eax, eax
mov ecx, 1
cmp edx, 0
cmovnz eax, ecx
mov [rbp+var_1], al
jmp short loc_31ECE
loc_31EB8:
jmp short $+2
loc_31EBA:
mov eax, [rbp+var_24]
add eax, 1
mov [rbp+var_24], eax
jmp loc_31D49
loc_31EC8:
jmp short $+2
loc_31ECA:
mov [rbp+var_1], 1
loc_31ECE:
mov al, [rbp+var_1]
add rsp, 60h
pop rbp
retn
|
char mariadb_set_conf_option(long long a1, long long a2, long long a3)
{
int v3; // r8d
int v4; // r9d
int v5; // eax
int v7; // [rsp+10h] [rbp-50h]
long long v8; // [rsp+20h] [rbp-40h] BYREF
int v9; // [rsp+28h] [rbp-38h] BYREF
char v10; // [rsp+2Fh] [rbp-31h] BYREF
_BYTE *v11; // [rsp+30h] [rbp-30h]
int i; // [rsp+3Ch] [rbp-24h]
long long v13; // [rsp+40h] [rbp-20h]
long long v14; // [rsp+48h] [rbp-18h]
long long v15; // [rsp+50h] [rbp-10h]
bool v16; // [rsp+5Fh] [rbp-1h]
v15 = a1;
v14 = a2;
v13 = a3;
if ( a2 )
{
while ( 1 )
{
v11 = (_BYTE *)strchr(v14, 95LL);
if ( !v11 )
break;
*v11 = 45;
}
for ( i = 0; *((_QWORD *)&mariadb_defaults + 3 * i + 2); ++i )
{
if ( !(unsigned int)strcmp(*((_QWORD *)&mariadb_defaults + 3 * i + 2), v14) )
{
v7 = 0;
switch ( *((_DWORD *)&mariadb_defaults + 6 * i + 2) )
{
case 1:
v10 = 0;
if ( v13 )
v10 = atoi(v13);
v5 = mysql_optionsv(v15, *((_DWORD *)&mariadb_defaults + 6 * i), (unsigned int)&v10, 24 * i, v3, v4);
goto LABEL_20;
case 2:
v9 = 0;
if ( v13 )
v9 = atoi(v13);
v5 = mysql_optionsv(v15, *((_DWORD *)&mariadb_defaults + 6 * i), (unsigned int)&v9, 24 * i, v3, v4);
goto LABEL_20;
case 3:
v8 = 0LL;
if ( v13 )
v8 = strtol(v13, 0LL, 10LL);
v5 = mysql_optionsv(v15, *((_DWORD *)&mariadb_defaults + 6 * i), (unsigned int)&v8, 24 * i, v3, v4);
goto LABEL_20;
case 4:
v7 = v13;
goto LABEL_19;
case 5:
return (*((long long ( **)(long long, long long, long long, long long))&mariadb_defaults + 3 * i))(
v15,
v14,
v13,
-1LL);
default:
LABEL_19:
v5 = mysql_optionsv(v15, *((_DWORD *)&mariadb_defaults + 6 * i), v7, 24 * i, v3, v4);
LABEL_20:
v16 = v5 != 0;
break;
}
return v16;
}
}
}
return 1;
}
|
_mariadb_set_conf_option:
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
CMP qword ptr [RBP + -0x18],0x0
JZ 0x00131eca
JMP 0x00131d21
LAB_00131d21:
MOV RDI,qword ptr [RBP + -0x18]
MOV ESI,0x5f
CALL 0x00114170
MOV qword ptr [RBP + -0x30],RAX
CMP RAX,0x0
JZ 0x00131d42
MOV RAX,qword ptr [RBP + -0x30]
MOV byte ptr [RAX],0x2d
JMP 0x00131d21
LAB_00131d42:
MOV dword ptr [RBP + -0x24],0x0
LAB_00131d49:
MOVSXD RCX,dword ptr [RBP + -0x24]
LEA RAX,[0x17f0e0]
IMUL RCX,RCX,0x18
ADD RAX,RCX
CMP qword ptr [RAX + 0x10],0x0
JZ 0x00131ec8
MOVSXD RCX,dword ptr [RBP + -0x24]
LEA RAX,[0x17f0e0]
IMUL RCX,RCX,0x18
ADD RAX,RCX
MOV RDI,qword ptr [RAX + 0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x00114600
CMP EAX,0x0
JNZ 0x00131eb8
MOV qword ptr [RBP + -0x50],0x0
MOVSXD RAX,dword ptr [RBP + -0x24]
LEA RCX,[RAX + RAX*0x2]
LEA RAX,[0x17f0e0]
MOV EAX,dword ptr [RAX + RCX*0x8 + 0x8]
MOV qword ptr [RBP + -0x58],RAX
SUB RAX,0x5
JA 0x00131e7d
MOV RAX,qword ptr [RBP + -0x58]
LEA RCX,[0x16dfa8]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_5:
MOVSXD RCX,dword ptr [RBP + -0x24]
LEA RAX,[0x17f0e0]
IMUL RCX,RCX,0x18
ADD RAX,RCX
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,-0x1
CALL RAX
MOV byte ptr [RBP + -0x1],AL
JMP 0x00131ece
caseD_1:
MOV byte ptr [RBP + -0x31],0x0
CMP qword ptr [RBP + -0x20],0x0
JZ 0x00131e14
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001146c0
MOV byte ptr [RBP + -0x31],AL
LAB_00131e14:
LEA RAX,[RBP + -0x31]
MOV qword ptr [RBP + -0x50],RAX
JMP 0x00131e7d
caseD_2:
MOV dword ptr [RBP + -0x38],0x0
CMP qword ptr [RBP + -0x20],0x0
JZ 0x00131e38
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001146c0
MOV dword ptr [RBP + -0x38],EAX
LAB_00131e38:
LEA RAX,[RBP + -0x38]
MOV qword ptr [RBP + -0x50],RAX
JMP 0x00131e7d
caseD_3:
MOV qword ptr [RBP + -0x40],0x0
CMP qword ptr [RBP + -0x20],0x0
JZ 0x00131e67
MOV RDI,qword ptr [RBP + -0x20]
XOR EAX,EAX
MOV ESI,EAX
MOV EDX,0xa
CALL 0x00114610
MOV qword ptr [RBP + -0x40],RAX
LAB_00131e67:
LEA RAX,[RBP + -0x40]
MOV qword ptr [RBP + -0x50],RAX
JMP 0x00131e7d
caseD_4:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x50],RAX
JMP 0x00131e7d
caseD_0:
JMP 0x00131e7d
default:
MOV RDI,qword ptr [RBP + -0x10]
MOVSXD RCX,dword ptr [RBP + -0x24]
LEA RAX,[0x17f0e0]
IMUL RCX,RCX,0x18
ADD RAX,RCX
MOV ESI,dword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x50]
MOV AL,0x0
CALL 0x00131ee0
MOV dword ptr [RBP + -0x44],EAX
MOV EDX,dword ptr [RBP + -0x44]
XOR EAX,EAX
MOV ECX,0x1
CMP EDX,0x0
CMOVNZ EAX,ECX
MOV byte ptr [RBP + -0x1],AL
JMP 0x00131ece
LAB_00131eb8:
JMP 0x00131eba
LAB_00131eba:
MOV EAX,dword ptr [RBP + -0x24]
ADD EAX,0x1
MOV dword ptr [RBP + -0x24],EAX
JMP 0x00131d49
LAB_00131ec8:
JMP 0x00131eca
LAB_00131eca:
MOV byte ptr [RBP + -0x1],0x1
LAB_00131ece:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x60
POP RBP
RET
|
bool _mariadb_set_conf_option(int8 param_1,char *param_2,long *param_3)
{
int1 uVar1;
int iVar2;
long *local_58;
long local_48;
int local_40;
int1 local_39;
char *local_38;
int local_2c;
long *local_28;
char *local_20;
int8 local_18;
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
if (param_2 != (char *)0x0) {
while (local_38 = strchr(local_20,0x5f), local_38 != (char *)0x0) {
*local_38 = '-';
}
local_2c = 0;
local_38 = (char *)0x0;
while (*(long *)(mariadb_defaults + (long)local_2c * 0x18 + 0x10) != 0) {
iVar2 = strcmp(*(char **)(mariadb_defaults + (long)local_2c * 0x18 + 0x10),local_20);
if (iVar2 == 0) {
local_58 = (long *)0x0;
switch(*(int4 *)(mariadb_defaults + (long)local_2c * 0x18 + 8)) {
case 0:
break;
case 1:
local_39 = 0;
if (local_28 != (long *)0x0) {
iVar2 = atoi((char *)local_28);
local_39 = (int1)iVar2;
}
local_58 = (long *)&local_39;
break;
case 2:
local_40 = 0;
if (local_28 != (long *)0x0) {
local_40 = atoi((char *)local_28);
}
local_58 = (long *)&local_40;
break;
case 3:
local_48 = 0;
if (local_28 != (long *)0x0) {
local_48 = strtol((char *)local_28,(char **)0x0,10);
}
local_58 = &local_48;
break;
case 4:
local_58 = local_28;
break;
case 5:
uVar1 = (**(code **)(mariadb_defaults + (long)local_2c * 0x18))
(local_18,local_20,local_28,0xffffffffffffffff);
return (bool)uVar1;
}
iVar2 = mysql_optionsv(local_18,*(int4 *)(mariadb_defaults + (long)local_2c * 0x18),
local_58);
return iVar2 != 0;
}
local_2c = local_2c + 1;
}
}
return true;
}
|
|
64,509 |
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::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>::parse<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&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool)
|
monkey531[P]llama/common/./json.hpp
|
JSON_HEDLEY_WARN_UNUSED_RESULT
static basic_json parse(InputType&& i,
const parser_callback_t cb = nullptr,
const bool allow_exceptions = true,
const bool ignore_comments = false)
{
basic_json result;
parser(detail::input_adapter(std::forward<InputType>(i)), cb, allow_exceptions, ignore_comments).parse(true, result);
return result;
}
|
O1
|
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> 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>::parse<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&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xf0, %rsp
movl %r8d, %ebp
movl %ecx, %r14d
movq %rdi, %rbx
movb $0x0, (%rdi)
movq $0x0, 0x8(%rdi)
movq (%rsi), %r15
movq 0x8(%rsi), %r12
leaq 0x8(%rsp), %rdi
movq %rdx, %rsi
callq 0x447de
addq %r15, %r12
movzbl %r14b, %r8d
movzbl %bpl, %r9d
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rcx
movq %r15, %rsi
movq %r12, %rdx
callq 0x44732
leaq 0x28(%rsp), %rdi
movl $0x1, %esi
movq %rbx, %rdx
callq 0x4483c
leaq 0x50(%rsp), %r14
movq %r14, %rdi
callq 0x44ee4
movq -0x18(%r14), %rax
testq %rax, %rax
je 0x97a76
leaq 0x28(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x97a8f
leaq 0x8(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rax
addq $0xf0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x97ad3
jmp 0x97ad3
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x44dda
jmp 0x97ab8
movq %rax, %r14
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x97ade
leaq 0x8(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x97ade
movq %rax, %rdi
callq 0x2a807
movq %rax, %r14
movq %rbx, %rdi
callq 0x4a9be
movq %r14, %rdi
callq 0x18ba0
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5parseIRKS9_EESD_OT_St8functionIFbiNS0_6detail13parse_event_tERSD_EEbb:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 0F0h
mov ebp, r8d
mov r14d, ecx
mov rbx, rdi
mov byte ptr [rdi], 0
mov qword ptr [rdi+8], 0
mov r15, [rsi]
mov r12, [rsi+8]
lea rdi, [rsp+118h+var_110]
mov rsi, rdx
call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEC2ERKSJ_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,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> &)>::function(std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,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&)
add r12, r15
movzx r8d, r14b
movzx r9d, bpl
lea rdi, [rsp+118h+var_F0]
lea rcx, [rsp+118h+var_110]
mov rsi, r15
mov rdx, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6parserINS0_6detail22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS9_EEEEEENSF_6parserISD_T_EESO_St8functionIFbiNSF_13parse_event_tERSD_EEbb; 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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool,bool)
lea rdi, [rsp+118h+var_F0]; int
mov esi, 1
mov rdx, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5parseEbRSF_; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parse(bool,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)
lea r14, [rsp+118h+var_C8]
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~lexer()
mov rax, [r14-18h]
test rax, rax
jz short loc_97A76
lea rdi, [rsp+118h+var_F0]
mov rsi, rdi
mov edx, 3
call rax
loc_97A76:
mov rax, [rsp+118h+var_100]
test rax, rax
jz short loc_97A8F
lea rdi, [rsp+118h+var_110]
mov rsi, rdi
mov edx, 3
call rax
loc_97A8F:
mov rax, rbx
add rsp, 0F0h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
jmp short loc_97AD3
jmp short loc_97AD3
mov r14, rax
lea rdi, [rsp+118h+var_F0]
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~parser()
jmp short loc_97AB8
mov r14, rax
loc_97AB8:
mov rax, [rsp+118h+var_100]
test rax, rax
jz short loc_97ADE
lea rdi, [rsp+118h+var_110]
mov rsi, rdi
mov edx, 3
call rax
jmp short loc_97ADE
loc_97AD3:
mov rdi, rax
call __clang_call_terminate
mov r14, rax
loc_97ADE:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, 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>::parse<std::string const&>(
long long a1,
long long *a2,
long long a3,
unsigned __int8 a4,
unsigned __int8 a5)
{
long long v7; // r15
long long v8; // r12
__int128 v10; // [rsp+8h] [rbp-110h] BYREF
void ( *v11)(__int128 *, __int128 *, long long); // [rsp+18h] [rbp-100h]
int v12[4]; // [rsp+28h] [rbp-F0h] BYREF
void ( *v13)(int *, int *, long long); // [rsp+38h] [rbp-E0h]
_QWORD v14[25]; // [rsp+50h] [rbp-C8h] BYREF
*(_BYTE *)a1 = 0;
*(_QWORD *)(a1 + 8) = 0LL;
v7 = *a2;
v8 = a2[1];
std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,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> &)>::function(
&v10,
a3);
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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(
(long long)v12,
v7,
v7 + v8,
&v10,
a4,
a5);
nlohmann::json_abi_v3_11_3::detail::parser<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>>>::parse(
(long long)v12,
1,
(char *)a1);
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>>>::~lexer(v14);
if ( v13 )
v13(v12, v12, 3LL);
if ( v11 )
v11(&v10, &v10, 3LL);
return a1;
}
|
parse<std::__cxx11::string_const&>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0xf0
MOV EBP,R8D
MOV R14D,ECX
MOV RBX,RDI
MOV byte ptr [RDI],0x0
MOV qword ptr [RDI + 0x8],0x0
MOV R15,qword ptr [RSI]
MOV R12,qword ptr [RSI + 0x8]
LAB_00197a12:
LEA RDI,[RSP + 0x8]
MOV RSI,RDX
CALL 0x001447de
ADD R12,R15
LAB_00197a22:
MOVZX R8D,R14B
MOVZX R9D,BPL
LEA RDI,[RSP + 0x28]
LEA RCX,[RSP + 0x8]
MOV RSI,R15
MOV RDX,R12
CALL 0x00144732
LAB_00197a3f:
LEA RDI,[RSP + 0x28]
MOV ESI,0x1
MOV RDX,RBX
CALL 0x0014483c
LEA R14,[RSP + 0x50]
MOV RDI,R14
CALL 0x00144ee4
MOV RAX,qword ptr [R14 + -0x18]
TEST RAX,RAX
JZ 0x00197a76
LAB_00197a67:
LEA RDI,[RSP + 0x28]
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_00197a76:
MOV RAX,qword ptr [RSP + 0x18]
TEST RAX,RAX
JZ 0x00197a8f
LAB_00197a80:
LEA RDI,[RSP + 0x8]
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_00197a8f:
MOV RAX,RBX
ADD RSP,0xf0
POP RBX
POP R12
POP R14
POP R15
POP RBP
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> 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>::parse<std::__cxx11::string const&>(std::__cxx11::string const&,
std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>&)>, bool, bool) */
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>
* __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>
::parse<std::__cxx11::string_const&>
(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,long *param_1,function *param_3,int1 param_4,int1 param_5)
{
long lVar1;
long lVar2;
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,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>&)>
local_110 [16];
code *local_100;
parser<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>>>
local_f0 [16];
code *local_e0;
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>>>
local_c8 [160];
*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;
*(int8 *)(this + 8) = 0;
lVar1 = *param_1;
lVar2 = param_1[1];
/* try { // try from 00197a12 to 00197a1e has its CatchHandler @ 00197adb */
std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,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>&)>
::function(local_110,param_3);
/* try { // try from 00197a22 to 00197a3e has its CatchHandler @ 00197ab5 */
parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
(local_f0,lVar1,lVar2 + lVar1,local_110,param_4,param_5);
/* try { // try from 00197a3f to 00197a50 has its CatchHandler @ 00197aa6 */
detail::
parser<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>>>
::parse(local_f0,true,(basic_json *)this);
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>>>
::~lexer(local_c8);
if (local_e0 != (code *)0x0) {
/* try { // try from 00197a67 to 00197a75 has its CatchHandler @ 00197aa4 */
(*local_e0)(local_f0,local_f0,3);
}
if (local_100 != (code *)0x0) {
/* try { // try from 00197a80 to 00197a8e has its CatchHandler @ 00197aa2 */
(*local_100)(local_110,local_110,3);
}
return this;
}
|
|
64,510 |
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::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>::parse<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&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool)
|
monkey531[P]llama/common/./json.hpp
|
JSON_HEDLEY_WARN_UNUSED_RESULT
static basic_json parse(InputType&& i,
const parser_callback_t cb = nullptr,
const bool allow_exceptions = true,
const bool ignore_comments = false)
{
basic_json result;
parser(detail::input_adapter(std::forward<InputType>(i)), cb, allow_exceptions, ignore_comments).parse(true, result);
return result;
}
|
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> 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>::parse<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&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movl %r8d, %ebp
movl %ecx, %r14d
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, %rbx
xorl %esi, %esi
callq 0x2caa4
movq (%r12), %r15
movq 0x8(%r12), %r12
movq %rsp, %rdi
movq %r13, %rsi
callq 0x41922
addq %r15, %r12
movzbl %r14b, %r8d
movzbl %bpl, %r9d
leaq 0x20(%rsp), %rdi
movq %rsp, %rcx
movq %r15, %rsi
movq %r12, %rdx
callq 0x418a2
leaq 0x20(%rsp), %rdi
pushq $0x1
popq %rsi
movq %rbx, %rdx
callq 0x41968
leaq 0x20(%rsp), %rdi
callq 0x41d32
movq %rsp, %rdi
callq 0x633c0
movq %rbx, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x41d32
jmp 0x80216
movq %rax, %r14
movq %rsp, %rdi
callq 0x633c0
jmp 0x80223
movq %rax, %r14
movq %rbx, %rdi
callq 0x466b8
movq %r14, %rdi
callq 0x20ba0
nop
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5parseIRKS9_EESD_OT_St8functionIFbiNS0_6detail13parse_event_tERSD_EEbb:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0E8h
mov ebp, r8d
mov r14d, ecx
mov r13, rdx
mov r12, rsi
mov rbx, rdi
xor esi, esi
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; 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>::basic_json(decltype(nullptr))
mov r15, [r12]
mov r12, [r12+8]
mov rdi, rsp
mov rsi, r13
call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEC2ERKSJ_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,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> &)>::function(std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,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&)
add r12, r15
movzx r8d, r14b
movzx r9d, bpl
lea rdi, [rsp+118h+var_F8]
mov rcx, rsp
mov rsi, r15
mov rdx, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6parserINS0_6detail22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS9_EEEEEENSF_6parserISD_T_EESO_St8functionIFbiNSF_13parse_event_tERSD_EEbb; 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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool,bool)
lea rdi, [rsp+118h+var_F8]
push 1
pop rsi
mov rdx, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5parseEbRSF_; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parse(bool,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)
lea rdi, [rsp+118h+var_F8]; this
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~parser()
mov rdi, rsp; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
mov rax, rbx
add rsp, 0E8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
lea rdi, [rsp+arg_18]; this
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~parser()
jmp short loc_80216
mov r14, rax
loc_80216:
mov rdi, rsp; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
jmp short loc_80223
mov r14, rax
loc_80223:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, r14
call __Unwind_Resume
|
char * 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>::parse<std::string const&>(
char *a1,
long long *a2,
long long a3,
unsigned __int8 a4,
unsigned __int8 a5)
{
long long v8; // r15
long long v9; // r12
int v10; // ecx
int v11; // r8d
int v12; // r9d
__int128 v14[2]; // [rsp+0h] [rbp-118h] BYREF
_BYTE v15[248]; // [rsp+20h] [rbp-F8h] BYREF
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>::basic_json((long long)a1);
v8 = *a2;
v9 = a2[1];
std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,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> &)>::function(
v14,
a3);
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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(
(long long)v15,
v8,
v8 + v9,
v14,
a4,
a5);
nlohmann::json_abi_v3_11_3::detail::parser<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>>>::parse(
(long long)v15,
1,
a1,
v10,
v11,
v12);
nlohmann::json_abi_v3_11_3::detail::parser<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>>>::~parser((std::_Function_base *)v15);
std::_Function_base::~_Function_base((std::_Function_base *)v14);
return a1;
}
|
parse<std::__cxx11::string_const&>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xe8
MOV EBP,R8D
MOV R14D,ECX
MOV R13,RDX
MOV R12,RSI
MOV RBX,RDI
XOR ESI,ESI
CALL 0x0012caa4
MOV R15,qword ptr [R12]
MOV R12,qword ptr [R12 + 0x8]
LAB_001801a4:
MOV RDI,RSP
MOV RSI,R13
CALL 0x00141922
ADD R12,R15
LAB_001801b2:
MOVZX R8D,R14B
MOVZX R9D,BPL
LEA RDI,[RSP + 0x20]
MOV RCX,RSP
MOV RSI,R15
MOV RDX,R12
CALL 0x001418a2
LAB_001801cd:
LEA RDI,[RSP + 0x20]
PUSH 0x1
POP RSI
MOV RDX,RBX
CALL 0x00141968
LAB_001801dd:
LEA RDI,[RSP + 0x20]
CALL 0x00141d32
MOV RDI,RSP
CALL 0x001633c0
MOV RAX,RBX
ADD RSP,0xe8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
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> 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>::parse<std::__cxx11::string const&>(std::__cxx11::string const&,
std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>&)>, bool, bool) */
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>
* __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>
::parse<std::__cxx11::string_const&>
(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,long *param_1,function *param_3,int1 param_4,int1 param_5)
{
long lVar1;
long lVar2;
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,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>&)>
afStack_118 [32];
parser<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>>>
local_f8 [200];
basic_json((_func_decltype_nullptr *)this);
lVar1 = *param_1;
lVar2 = param_1[1];
/* try { // try from 001801a4 to 001801ae has its CatchHandler @ 00180220 */
std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,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>&)>
::function(afStack_118,param_3);
/* try { // try from 001801b2 to 001801cc has its CatchHandler @ 00180213 */
parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
(local_f8,lVar1,lVar2 + lVar1,afStack_118,param_4,param_5);
/* try { // try from 001801cd to 001801dc has its CatchHandler @ 00180204 */
detail::
parser<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>>>
::parse(local_f8,true,this);
detail::
parser<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>>>
::~parser(local_f8);
std::_Function_base::~_Function_base((_Function_base *)afStack_118);
return this;
}
|
|
64,511 |
stbi__out_gif_code(stbi__gif*, unsigned short)
|
monkey531[P]llama/examples/llava/../../common/stb_image.h
|
static void stbi__out_gif_code(stbi__gif *g, stbi__uint16 code)
{
stbi_uc *p, *c;
int idx;
// recurse to decode the prefixes, since the linked-list is backwards,
// and working backwards through an interleaved image would be nasty
if (g->codes[code].prefix >= 0)
stbi__out_gif_code(g, g->codes[code].prefix);
if (g->cur_y >= g->max_y) return;
idx = g->cur_x + g->cur_y;
p = &g->out[idx];
g->history[idx / 4] = 1;
c = &g->color_table[g->codes[code].suffix * 4];
if (c[3] > 128) { // don't render transparent pixels;
p[0] = c[2];
p[1] = c[1];
p[2] = c[0];
p[3] = c[3];
}
g->cur_x += 4;
if (g->cur_x >= g->max_x) {
g->cur_x = g->start_x;
g->cur_y += g->step;
while (g->cur_y >= g->max_y && g->parse > 0) {
g->step = (1 << g->parse) * g->line_size;
g->cur_y = g->start_y + (g->step >> 1);
--g->parse;
}
}
}
|
O3
|
c
|
stbi__out_gif_code(stbi__gif*, unsigned short):
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl %esi, %r14d
movzwl 0x834(%rdi,%r14,4), %eax
testw %ax, %ax
js 0x3efdd
movzwl %ax, %esi
movq %rbx, %rdi
callq 0x3efba
movslq 0x8860(%rbx), %rcx
cmpl 0x8858(%rbx), %ecx
jge 0x3f0c0
movslq 0x885c(%rbx), %rax
addq %rcx, %rax
movq 0x8(%rbx), %rcx
leal 0x3(%rax), %edx
testl %eax, %eax
cmovnsl %eax, %edx
movq 0x18(%rbx), %rsi
sarl $0x2, %edx
movslq %edx, %rdx
movb $0x1, (%rsi,%rdx)
movq 0x8838(%rbx), %rdx
movzbl 0x837(%rbx,%r14,4), %esi
cmpb $-0x7f, 0x3(%rdx,%rsi,4)
jb 0x3f04f
movb 0x2(%rdx,%rsi,4), %dil
movb %dil, (%rcx,%rax)
movb 0x1(%rdx,%rsi,4), %dil
movb %dil, 0x1(%rcx,%rax)
movb (%rdx,%rsi,4), %dil
movb %dil, 0x2(%rcx,%rax)
movb 0x3(%rdx,%rsi,4), %dl
movb %dl, 0x3(%rcx,%rax)
movl 0x885c(%rbx), %eax
addl $0x4, %eax
movl %eax, 0x885c(%rbx)
cmpl 0x8854(%rbx), %eax
jl 0x3f0c0
movl 0x884c(%rbx), %ecx
movl 0x8858(%rbx), %eax
movl %ecx, 0x885c(%rbx)
movl 0x8860(%rbx), %ecx
addl 0x8844(%rbx), %ecx
movl %ecx, 0x8860(%rbx)
cmpl %eax, %ecx
jl 0x3f0c0
movl 0x8840(%rbx), %ecx
testl %ecx, %ecx
jle 0x3f0c0
movl 0x8864(%rbx), %edx
shll %cl, %edx
movl %edx, 0x8844(%rbx)
sarl %edx
addl 0x8850(%rbx), %edx
movl %edx, 0x8860(%rbx)
decl %ecx
movl %ecx, 0x8840(%rbx)
cmpl %eax, %edx
jge 0x3f094
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
_ZL18stbi__out_gif_codeP9stbi__gift:
push r14
push rbx
push rax
mov rbx, rdi
mov r14d, esi
movzx eax, word ptr [rdi+r14*4+834h]
test ax, ax
js short loc_3EFDD
movzx esi, ax
mov rdi, rbx
call _ZL18stbi__out_gif_codeP9stbi__gift; stbi__out_gif_code(stbi__gif *,ushort)
loc_3EFDD:
movsxd rcx, dword ptr [rbx+8860h]
cmp ecx, [rbx+8858h]
jge loc_3F0C0
movsxd rax, dword ptr [rbx+885Ch]
add rax, rcx
mov rcx, [rbx+8]
lea edx, [rax+3]
test eax, eax
cmovns edx, eax
mov rsi, [rbx+18h]
sar edx, 2
movsxd rdx, edx
mov byte ptr [rsi+rdx], 1
mov rdx, [rbx+8838h]
movzx esi, byte ptr [rbx+r14*4+837h]
cmp byte ptr [rdx+rsi*4+3], 81h
jb short loc_3F04F
mov dil, [rdx+rsi*4+2]
mov [rcx+rax], dil
mov dil, [rdx+rsi*4+1]
mov [rcx+rax+1], dil
mov dil, [rdx+rsi*4]
mov [rcx+rax+2], dil
mov dl, [rdx+rsi*4+3]
mov [rcx+rax+3], dl
loc_3F04F:
mov eax, [rbx+885Ch]
add eax, 4
mov [rbx+885Ch], eax
cmp eax, [rbx+8854h]
jl short loc_3F0C0
mov ecx, [rbx+884Ch]
mov eax, [rbx+8858h]
mov [rbx+885Ch], ecx
mov ecx, [rbx+8860h]
add ecx, [rbx+8844h]
mov [rbx+8860h], ecx
cmp ecx, eax
jl short loc_3F0C0
mov ecx, [rbx+8840h]
loc_3F094:
test ecx, ecx
jle short loc_3F0C0
mov edx, [rbx+8864h]
shl edx, cl
mov [rbx+8844h], edx
sar edx, 1
add edx, [rbx+8850h]
mov [rbx+8860h], edx
dec ecx
mov [rbx+8840h], ecx
cmp edx, eax
jge short loc_3F094
loc_3F0C0:
add rsp, 8
pop rbx
pop r14
retn
|
long long stbi__out_gif_code(long long a1, unsigned int a2, long long a3, long long a4, long long a5, long long a6)
{
long long result; // rax
long long v7; // rcx
long long v8; // rax
long long v9; // rcx
long long v10; // rdx
long long v11; // rsi
int v12; // ecx
int v13; // ecx
int v14; // edx
int v15; // edx
result = *(unsigned __int16 *)(a1 + 4LL * a2 + 2100);
if ( (result & 0x8000u) == 0LL )
result = stbi__out_gif_code(a1, (unsigned __int16)result, a3, a4, a5, a6);
v7 = *(int *)(a1 + 34912);
if ( (int)v7 < *(_DWORD *)(a1 + 34904) )
{
v8 = v7 + *(int *)(a1 + 34908);
v9 = *(_QWORD *)(a1 + 8);
*(_BYTE *)(*(_QWORD *)(a1 + 24) + (int)v8 / 4) = 1;
v10 = *(_QWORD *)(a1 + 34872);
v11 = *(unsigned __int8 *)(a1 + 4LL * a2 + 2103);
if ( *(_BYTE *)(v10 + 4 * v11 + 3) >= 0x81u )
{
*(_BYTE *)(v9 + v8) = *(_BYTE *)(v10 + 4 * v11 + 2);
*(_BYTE *)(v9 + v8 + 1) = *(_BYTE *)(v10 + 4 * v11 + 1);
*(_BYTE *)(v9 + v8 + 2) = *(_BYTE *)(v10 + 4 * v11);
*(_BYTE *)(v9 + v8 + 3) = *(_BYTE *)(v10 + 4 * v11 + 3);
}
result = (unsigned int)(*(_DWORD *)(a1 + 34908) + 4);
*(_DWORD *)(a1 + 34908) = result;
if ( (int)result >= *(_DWORD *)(a1 + 34900) )
{
result = *(unsigned int *)(a1 + 34904);
*(_DWORD *)(a1 + 34908) = *(_DWORD *)(a1 + 34892);
v12 = *(_DWORD *)(a1 + 34884) + *(_DWORD *)(a1 + 34912);
*(_DWORD *)(a1 + 34912) = v12;
if ( v12 >= (int)result )
{
v13 = *(_DWORD *)(a1 + 34880);
do
{
if ( v13 <= 0 )
break;
v14 = *(_DWORD *)(a1 + 34916) << v13;
*(_DWORD *)(a1 + 34884) = v14;
v15 = *(_DWORD *)(a1 + 34896) + (v14 >> 1);
*(_DWORD *)(a1 + 34912) = v15;
*(_DWORD *)(a1 + 34880) = --v13;
}
while ( v15 >= (int)result );
}
}
}
return result;
}
|
stbi__out_gif_code:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV R14D,ESI
MOVZX EAX,word ptr [RDI + R14*0x4 + 0x834]
TEST AX,AX
JS 0x0013efdd
MOVZX ESI,AX
MOV RDI,RBX
CALL 0x0013efba
LAB_0013efdd:
MOVSXD RCX,dword ptr [RBX + 0x8860]
CMP ECX,dword ptr [RBX + 0x8858]
JGE 0x0013f0c0
MOVSXD RAX,dword ptr [RBX + 0x885c]
ADD RAX,RCX
MOV RCX,qword ptr [RBX + 0x8]
LEA EDX,[RAX + 0x3]
TEST EAX,EAX
CMOVNS EDX,EAX
MOV RSI,qword ptr [RBX + 0x18]
SAR EDX,0x2
MOVSXD RDX,EDX
MOV byte ptr [RSI + RDX*0x1],0x1
MOV RDX,qword ptr [RBX + 0x8838]
MOVZX ESI,byte ptr [RBX + R14*0x4 + 0x837]
CMP byte ptr [RDX + RSI*0x4 + 0x3],0x81
JC 0x0013f04f
MOV DIL,byte ptr [RDX + RSI*0x4 + 0x2]
MOV byte ptr [RCX + RAX*0x1],DIL
MOV DIL,byte ptr [RDX + RSI*0x4 + 0x1]
MOV byte ptr [RCX + RAX*0x1 + 0x1],DIL
MOV DIL,byte ptr [RDX + RSI*0x4]
MOV byte ptr [RCX + RAX*0x1 + 0x2],DIL
MOV DL,byte ptr [RDX + RSI*0x4 + 0x3]
MOV byte ptr [RCX + RAX*0x1 + 0x3],DL
LAB_0013f04f:
MOV EAX,dword ptr [RBX + 0x885c]
ADD EAX,0x4
MOV dword ptr [RBX + 0x885c],EAX
CMP EAX,dword ptr [RBX + 0x8854]
JL 0x0013f0c0
MOV ECX,dword ptr [RBX + 0x884c]
MOV EAX,dword ptr [RBX + 0x8858]
MOV dword ptr [RBX + 0x885c],ECX
MOV ECX,dword ptr [RBX + 0x8860]
ADD ECX,dword ptr [RBX + 0x8844]
MOV dword ptr [RBX + 0x8860],ECX
CMP ECX,EAX
JL 0x0013f0c0
MOV ECX,dword ptr [RBX + 0x8840]
LAB_0013f094:
TEST ECX,ECX
JLE 0x0013f0c0
MOV EDX,dword ptr [RBX + 0x8864]
SHL EDX,CL
MOV dword ptr [RBX + 0x8844],EDX
SAR EDX,0x1
ADD EDX,dword ptr [RBX + 0x8850]
MOV dword ptr [RBX + 0x8860],EDX
DEC ECX
MOV dword ptr [RBX + 0x8840],ECX
CMP EDX,EAX
JGE 0x0013f094
LAB_0013f0c0:
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* stbi__out_gif_code(stbi__gif*, unsigned short) */
void stbi__out_gif_code(stbi__gif *param_1,ushort param_2)
{
long lVar1;
long lVar2;
long lVar3;
int iVar4;
int iVar5;
int6 in_register_00000032;
ulong uVar6;
uVar6 = CONCAT62(in_register_00000032,param_2) & 0xffffffff;
if (-1 < (short)*(ushort *)(param_1 + uVar6 * 4 + 0x834)) {
stbi__out_gif_code(param_1,*(ushort *)(param_1 + uVar6 * 4 + 0x834));
}
if (*(int *)(param_1 + 0x8860) < *(int *)(param_1 + 0x8858)) {
lVar3 = (long)*(int *)(param_1 + 0x885c) + (long)*(int *)(param_1 + 0x8860);
lVar1 = *(long *)(param_1 + 8);
iVar4 = (int)lVar3;
iVar5 = iVar4 + 3;
if (-1 < iVar4) {
iVar5 = iVar4;
}
*(int1 *)(*(long *)(param_1 + 0x18) + (long)(iVar5 >> 2)) = 1;
lVar2 = *(long *)(param_1 + 0x8838);
uVar6 = (ulong)(byte)param_1[uVar6 * 4 + 0x837];
if (0x80 < *(byte *)(lVar2 + 3 + uVar6 * 4)) {
*(int1 *)(lVar1 + lVar3) = *(int1 *)(lVar2 + 2 + uVar6 * 4);
*(int1 *)(lVar1 + 1 + lVar3) = *(int1 *)(lVar2 + 1 + uVar6 * 4);
*(int1 *)(lVar1 + 2 + lVar3) = *(int1 *)(lVar2 + uVar6 * 4);
*(int1 *)(lVar1 + 3 + lVar3) = *(int1 *)(lVar2 + 3 + uVar6 * 4);
}
iVar4 = *(int *)(param_1 + 0x885c);
*(int *)(param_1 + 0x885c) = iVar4 + 4;
if (*(int *)(param_1 + 0x8854) <= iVar4 + 4) {
*(int4 *)(param_1 + 0x885c) = *(int4 *)(param_1 + 0x884c);
iVar4 = *(int *)(param_1 + 0x8860);
*(int *)(param_1 + 0x8860) = iVar4 + *(int *)(param_1 + 0x8844);
if (*(int *)(param_1 + 0x8858) <= iVar4 + *(int *)(param_1 + 0x8844)) {
iVar4 = *(int *)(param_1 + 0x8840);
do {
if (iVar4 < 1) {
return;
}
iVar5 = *(int *)(param_1 + 0x8864) << ((byte)iVar4 & 0x1f);
*(int *)(param_1 + 0x8844) = iVar5;
iVar5 = (iVar5 >> 1) + *(int *)(param_1 + 0x8850);
*(int *)(param_1 + 0x8860) = iVar5;
iVar4 = iVar4 + -1;
*(int *)(param_1 + 0x8840) = iVar4;
} while (*(int *)(param_1 + 0x8858) <= iVar5);
}
}
}
return;
}
|
|
64,512 |
my_b_write
|
eloqsql/include/my_sys.h
|
static inline int my_b_write(IO_CACHE *info, const uchar *Buffer, size_t Count)
{
MEM_CHECK_DEFINED(Buffer, Count);
if (info->write_pos + Count <= info->write_end)
{
if (Count)
{
memcpy(info->write_pos, Buffer, Count);
info->write_pos+= Count;
}
return 0;
}
return _my_b_write(info, Buffer, Count);
}
|
O0
|
c
|
my_b_write:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
addq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x48(%rcx), %rax
ja 0xe31bf
cmpq $0x0, -0x20(%rbp)
je 0xe31b6
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x2a090
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
addq 0x40(%rax), %rcx
movq %rcx, 0x40(%rax)
movl $0x0, -0x4(%rbp)
jmp 0xe31d3
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0xe2280
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
|
my_b_write_3:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rax, [rbp+var_10]
mov rax, [rax+40h]
add rax, [rbp+var_20]
mov rcx, [rbp+var_10]
cmp rax, [rcx+48h]
ja short loc_E31BF
cmp [rbp+var_20], 0
jz short loc_E31B6
mov rax, [rbp+var_10]
mov rdi, [rax+40h]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call _memcpy
mov rcx, [rbp+var_20]
mov rax, [rbp+var_10]
add rcx, [rax+40h]
mov [rax+40h], rcx
loc_E31B6:
mov [rbp+var_4], 0
jmp short loc_E31D3
loc_E31BF:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call _my_b_write
mov [rbp+var_4], eax
loc_E31D3:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
|
long long my_b_write_3(long long a1, const char *a2, long long a3)
{
if ( (unsigned long long)(a3 + *(_QWORD *)(a1 + 64)) > *(_QWORD *)(a1 + 72) )
{
return (unsigned int)my_b_write(a1, a2, a3);
}
else
{
if ( a3 )
{
memcpy(*(_QWORD *)(a1 + 64), a2, a3);
*(_QWORD *)(a1 + 64) += a3;
}
return 0;
}
}
|
my_b_write:
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 RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
ADD RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x48]
JA 0x001e31bf
CMP qword ptr [RBP + -0x20],0x0
JZ 0x001e31b6
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x40]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x0012a090
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
ADD RCX,qword ptr [RAX + 0x40]
MOV qword ptr [RAX + 0x40],RCX
LAB_001e31b6:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001e31d3
LAB_001e31bf:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x001e2280
MOV dword ptr [RBP + -0x4],EAX
LAB_001e31d3:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int4 my_b_write(long param_1,void *param_2,size_t param_3)
{
int4 local_c;
if (*(ulong *)(param_1 + 0x48) < *(long *)(param_1 + 0x40) + param_3) {
local_c = _my_b_write(param_1,param_2,param_3);
}
else {
if (param_3 != 0) {
memcpy(*(void **)(param_1 + 0x40),param_2,param_3);
*(size_t *)(param_1 + 0x40) = param_3 + *(long *)(param_1 + 0x40);
}
local_c = 0;
}
return local_c;
}
|
|
64,513 |
testing::TestInfo* testing::RegisterTest<testing::internal::InsertSyntheticTestCase(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, testing::internal::CodeLocation, bool)::$_0>(char const*, char const*, char const*, char const*, char const*, int, testing::internal::InsertSyntheticTestCase(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, testing::internal::CodeLocation, bool)::$_0)
|
seiftnesse[P]memoryallocator/build_O0/_deps/googletest-src/googletest/include/gtest/gtest.h
|
TestInfo* RegisterTest(const char* test_suite_name, const char* test_name,
const char* type_param, const char* value_param,
const char* file, int line, Factory factory) {
using TestT = typename std::remove_pointer<decltype(factory())>::type;
class FactoryImpl : public internal::TestFactoryBase {
public:
explicit FactoryImpl(Factory f) : factory_(std::move(f)) {}
Test* CreateTest() override { return factory_(); }
private:
Factory factory_;
};
return internal::MakeAndRegisterTestInfo(
test_suite_name, test_name, type_param, value_param,
internal::CodeLocation(file, line), internal::GetTypeId<TestT>(),
internal::SuiteApiResolver<TestT>::GetSetUpCaseOrSuite(file, line),
internal::SuiteApiResolver<TestT>::GetTearDownCaseOrSuite(file, line),
new FactoryImpl{std::move(factory)});
}
|
O0
|
c
|
testing::TestInfo* testing::RegisterTest<testing::internal::InsertSyntheticTestCase(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, testing::internal::CodeLocation, bool)::$_0>(char const*, char const*, char const*, char const*, char const*, int, testing::internal::InsertSyntheticTestCase(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, testing::internal::CodeLocation, bool)::$_0):
pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp # imm = 0x160
movq 0x10(%rbp), %rax
movq %rax, -0x118(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0xf0(%rbp)
leaq -0x79(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
callq 0xbce0
movq -0xf0(%rbp), %rsi
movq -0xe8(%rbp), %rdx
leaq -0x78(%rbp), %rdi
callq 0x13a30
jmp 0x2aa5e
movl -0x2c(%rbp), %edx
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x13ae0
jmp 0x2aa70
callq 0x48d40
movq %rax, -0x120(%rbp)
jmp 0x2aa7e
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
callq 0x48d50
movq %rax, -0x128(%rbp)
jmp 0x2aa93
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
callq 0x48e90
movq %rax, -0x130(%rbp)
jmp 0x2aaa8
movl $0x50, %edi
callq 0xb660
movq %rax, -0x138(%rbp)
jmp 0x2aabb
movq -0x118(%rbp), %rsi
movb $0x1, -0xd9(%rbp)
leaq -0xd8(%rbp), %rdi
movq %rdi, -0x140(%rbp)
callq 0x48fd0
movq -0x138(%rbp), %rdi
movq -0x140(%rbp), %rsi
callq 0x49010
jmp 0x2aaf1
movq -0x120(%rbp), %r9
movq -0xf8(%rbp), %rcx
movq -0x100(%rbp), %rdx
movq -0x108(%rbp), %rsi
movq -0x110(%rbp), %rdi
movq -0x128(%rbp), %r8
movq -0x130(%rbp), %r10
movq -0x138(%rbp), %r11
movb $0x0, -0xd9(%rbp)
movq %rsp, %rax
movq %r11, 0x10(%rax)
movq %r10, 0x8(%rax)
movq %r8, (%rax)
leaq -0x58(%rbp), %r8
callq 0x337e0
movq %rax, -0x148(%rbp)
jmp 0x2ab50
leaq -0xd8(%rbp), %rdi
callq 0x2ac30
leaq -0x58(%rbp), %rdi
callq 0x13e00
leaq -0x78(%rbp), %rdi
callq 0xbe58
leaq -0x79(%rbp), %rdi
callq 0xb730
movq -0x148(%rbp), %rax
addq $0x160, %rsp # imm = 0x160
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
jmp 0x2ac11
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
jmp 0x2ac08
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
jmp 0x2abff
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
leaq -0xd8(%rbp), %rdi
callq 0x2ac30
testb $0x1, -0xd9(%rbp)
jne 0x2abec
jmp 0x2abfd
movq -0x138(%rbp), %rdi
movl $0x50, %esi
callq 0xb690
jmp 0x2abff
leaq -0x58(%rbp), %rdi
callq 0x13e00
leaq -0x78(%rbp), %rdi
callq 0xbe58
leaq -0x79(%rbp), %rdi
callq 0xb730
movq -0x88(%rbp), %rdi
callq 0xbcd0
nopw %cs:(%rax,%rax)
|
_ZN7testing12RegisterTestITpTnRiJEZNS_8internal23InsertSyntheticTestCaseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS2_12CodeLocationEbE3$_0EEPNS_8TestInfoEPKcSG_SG_SG_SG_iT0_:
push rbp
mov rbp, rsp
sub rsp, 160h
mov rax, [rbp+arg_0]
mov [rbp+var_118], rax
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_2C], r9d
mov rax, [rbp+var_8]
mov [rbp+var_110], rax
mov rax, [rbp+var_10]
mov [rbp+var_108], rax
mov rax, [rbp+var_18]
mov [rbp+var_100], rax
mov rax, [rbp+var_20]
mov [rbp+var_F8], rax
mov rax, [rbp+var_28]
mov [rbp+var_F0], rax
lea rdi, [rbp+var_79]
mov [rbp+var_E8], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rsi, [rbp+var_F0]
mov rdx, [rbp+var_E8]
lea rdi, [rbp+var_78]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_2AA5E:
mov edx, [rbp+var_2C]
lea rdi, [rbp+var_58]
lea rsi, [rbp+var_78]
call _ZN7testing8internal12CodeLocationC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; testing::internal::CodeLocation::CodeLocation(std::string const&,int)
jmp short $+2
loc_2AA70:
call _ZN7testing8internal9GetTypeIdINS0_12_GLOBAL__N_111FailureTestEEEPKvv; testing::internal::GetTypeId<testing::internal::`anonymous namespace'::FailureTest>(void)
mov [rbp+var_120], rax
jmp short $+2
loc_2AA7E:
mov rdi, [rbp+var_28]
mov esi, [rbp+var_2C]
call _ZN7testing8internal16SuiteApiResolverINS0_12_GLOBAL__N_111FailureTestEE19GetSetUpCaseOrSuiteEPKci; testing::internal::SuiteApiResolver<testing::internal::`anonymous namespace'::FailureTest>::GetSetUpCaseOrSuite(char const*,int)
mov [rbp+var_128], rax
jmp short $+2
loc_2AA93:
mov rdi, [rbp+var_28]
mov esi, [rbp+var_2C]
call _ZN7testing8internal16SuiteApiResolverINS0_12_GLOBAL__N_111FailureTestEE22GetTearDownCaseOrSuiteEPKci; testing::internal::SuiteApiResolver<testing::internal::`anonymous namespace'::FailureTest>::GetTearDownCaseOrSuite(char const*,int)
mov [rbp+var_130], rax
jmp short $+2
loc_2AAA8:
mov edi, 50h ; 'P'; unsigned __int64
call __Znwm; operator new(ulong)
mov [rbp+var_138], rax
jmp short $+2
loc_2AABB:
mov rsi, [rbp+var_118]
mov [rbp+var_D9], 1
lea rdi, [rbp+var_D8]
mov [rbp+var_140], rdi
call _ZZN7testing8internal23InsertSyntheticTestCaseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_12CodeLocationEbEN3$_0C2EOSA_; testing::internal::InsertSyntheticTestCase(std::string const&,testing::internal::CodeLocation,bool)::$_0::$_0($_0&&)
mov rdi, [rbp+var_138]
mov rsi, [rbp+var_140]
call _ZZN7testing12RegisterTestITpTnRiJEZNS_8internal23InsertSyntheticTestCaseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS2_12CodeLocationEbE3$_0EEPNS_8TestInfoEPKcSG_SG_SG_SG_iT0_EN11FactoryImplC2ESC_
jmp short $+2
loc_2AAF1:
mov r9, [rbp+var_120]
mov rcx, [rbp+var_F8]
mov rdx, [rbp+var_100]
mov rsi, [rbp+var_108]
mov rdi, [rbp+var_110]
mov r8, [rbp+var_128]
mov r10, [rbp+var_130]
mov r11, [rbp+var_138]
mov [rbp+var_D9], 0
mov rax, rsp
mov [rax+10h], r11
mov [rax+8], r10
mov [rax], r8
lea r8, [rbp+var_58]
call _ZN7testing8internal23MakeAndRegisterTestInfoEPKcS2_S2_S2_NS0_12CodeLocationEPKvPFvvES7_PNS0_15TestFactoryBaseE; testing::internal::MakeAndRegisterTestInfo(char const*,char const*,char const*,char const*,testing::internal::CodeLocation,void const*,void (*)(void),void (*)(void),testing::internal::TestFactoryBase *)
mov [rbp+var_148], rax
jmp short $+2
loc_2AB50:
lea rdi, [rbp+var_D8]
call _ZZN7testing8internal23InsertSyntheticTestCaseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_12CodeLocationEbEN3$_0D2Ev; testing::internal::InsertSyntheticTestCase(std::string const&,testing::internal::CodeLocation,bool)::$_0::~$_0()
lea rdi, [rbp+var_58]; this
call _ZN7testing8internal12CodeLocationD2Ev; testing::internal::CodeLocation::~CodeLocation()
lea rdi, [rbp+var_78]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rbp+var_79]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
mov rax, [rbp+var_148]
add rsp, 160h
pop rbp
retn
mov rcx, rax
mov eax, edx
mov [rbp+var_88], rcx
mov [rbp+var_8C], eax
jmp short loc_2AC11
mov rcx, rax
mov eax, edx
mov [rbp+var_88], rcx
mov [rbp+var_8C], eax
jmp short loc_2AC08
mov rcx, rax
mov eax, edx
mov [rbp+var_88], rcx
mov [rbp+var_8C], eax
jmp short loc_2ABFF
mov rcx, rax
mov eax, edx
mov [rbp+var_88], rcx
mov [rbp+var_8C], eax
lea rdi, [rbp+var_D8]
call _ZZN7testing8internal23InsertSyntheticTestCaseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_12CodeLocationEbEN3$_0D2Ev; testing::internal::InsertSyntheticTestCase(std::string const&,testing::internal::CodeLocation,bool)::$_0::~$_0()
test [rbp+var_D9], 1
jnz short loc_2ABEC
jmp short loc_2ABFD
loc_2ABEC:
mov rdi, [rbp+var_138]; void *
mov esi, 50h ; 'P'; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2ABFD:
jmp short $+2
loc_2ABFF:
lea rdi, [rbp+var_58]; this
call _ZN7testing8internal12CodeLocationD2Ev; testing::internal::CodeLocation::~CodeLocation()
loc_2AC08:
lea rdi, [rbp+var_78]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_2AC11:
lea rdi, [rbp+var_79]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
mov rdi, [rbp+var_88]
call __Unwind_Resume
|
long long ZN7testing12RegisterTestITpTnRiJEZNS_8internal23InsertSyntheticTestCaseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS2_12CodeLocationEbE3__0EEPNS_8TestInfoEPKcSG_SG_SG_SG_iT0_(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
unsigned int a6,
long long a7)
{
long long v8; // [rsp+18h] [rbp-148h]
void *v9; // [rsp+28h] [rbp-138h]
long long TearDownCaseOrSuite; // [rsp+30h] [rbp-130h]
long long SetUpCaseOrSuite; // [rsp+38h] [rbp-128h]
long long v12; // [rsp+40h] [rbp-120h]
_BYTE v16[76]; // [rsp+88h] [rbp-D8h] BYREF
char v17; // [rsp+E7h] [rbp-79h] BYREF
_BYTE v18[32]; // [rsp+E8h] [rbp-78h] BYREF
_BYTE v19[44]; // [rsp+108h] [rbp-58h] BYREF
unsigned int v20; // [rsp+134h] [rbp-2Ch]
long long v21; // [rsp+138h] [rbp-28h]
long long v22; // [rsp+140h] [rbp-20h]
long long v23; // [rsp+148h] [rbp-18h]
long long v24; // [rsp+150h] [rbp-10h]
long long v25; // [rsp+158h] [rbp-8h]
v25 = a1;
v24 = a2;
v23 = a3;
v22 = a4;
v21 = a5;
v20 = a6;
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>((long long)v18, a5, (long long)&v17);
testing::internal::CodeLocation::CodeLocation((long long)v19, (long long)v18, v20);
v12 = testing::internal::GetTypeId<testing::internal::`anonymous namespace'::FailureTest>();
SetUpCaseOrSuite = testing::internal::SuiteApiResolver<testing::internal::`anonymous namespace'::FailureTest>::GetSetUpCaseOrSuite(
v21,
v20);
TearDownCaseOrSuite = testing::internal::SuiteApiResolver<testing::internal::`anonymous namespace'::FailureTest>::GetTearDownCaseOrSuite(
v21,
v20);
v9 = (void *)operator new(0x50uLL);
testing::internal::InsertSyntheticTestCase(std::string const&,testing::internal::CodeLocation,bool)::$_0::$_0(v16, a7);
ZZN7testing12RegisterTestITpTnRiJEZNS_8internal23InsertSyntheticTestCaseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS2_12CodeLocationEbE3__0EEPNS_8TestInfoEPKcSG_SG_SG_SG_iT0_EN11FactoryImplC2ESC_(
v9,
v16);
v8 = testing::internal::MakeAndRegisterTestInfo(a1, a2, a3, a4, v19, v12, SetUpCaseOrSuite, TearDownCaseOrSuite, v9);
testing::internal::InsertSyntheticTestCase(std::string const&,testing::internal::CodeLocation,bool)::$_0::~$_0(v16);
testing::internal::CodeLocation::~CodeLocation((testing::internal::CodeLocation *)v19);
std::string::~string(v18);
std::allocator<char>::~allocator(&v17);
return v8;
}
|
_ZN7testing12RegisterTestITpTnRiJEZNS_8internal23InsertSyntheticTestCaseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS2_12CodeLocationEbE3$_0EEPNS_8TestInfoEPKcSG_SG_SG_SG_iT0_:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x160
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x118],RAX
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV dword ptr [RBP + -0x2c],R9D
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x110],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x108],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x100],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0xf8],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0xf0],RAX
LEA RDI,[RBP + -0x79]
MOV qword ptr [RBP + -0xe8],RDI
CALL 0x0010bce0
MOV RSI,qword ptr [RBP + -0xf0]
MOV RDX,qword ptr [RBP + -0xe8]
LAB_0012aa53:
LEA RDI,[RBP + -0x78]
CALL 0x00113a30
JMP 0x0012aa5e
LAB_0012aa5e:
MOV EDX,dword ptr [RBP + -0x2c]
LAB_0012aa61:
LEA RDI,[RBP + -0x58]
LEA RSI,[RBP + -0x78]
CALL 0x00113ae0
JMP 0x0012aa70
LAB_0012aa70:
CALL 0x00148d40
MOV qword ptr [RBP + -0x120],RAX
JMP 0x0012aa7e
LAB_0012aa7e:
MOV RDI,qword ptr [RBP + -0x28]
MOV ESI,dword ptr [RBP + -0x2c]
CALL 0x00148d50
MOV qword ptr [RBP + -0x128],RAX
JMP 0x0012aa93
LAB_0012aa93:
MOV RDI,qword ptr [RBP + -0x28]
MOV ESI,dword ptr [RBP + -0x2c]
CALL 0x00148e90
MOV qword ptr [RBP + -0x130],RAX
JMP 0x0012aaa8
LAB_0012aaa8:
MOV EDI,0x50
CALL 0x0010b660
MOV qword ptr [RBP + -0x138],RAX
JMP 0x0012aabb
LAB_0012aabb:
MOV RSI,qword ptr [RBP + -0x118]
MOV byte ptr [RBP + -0xd9],0x1
LEA RDI,[RBP + -0xd8]
MOV qword ptr [RBP + -0x140],RDI
CALL 0x00148fd0
MOV RDI,qword ptr [RBP + -0x138]
MOV RSI,qword ptr [RBP + -0x140]
LAB_0012aaea:
CALL 0x00149010
JMP 0x0012aaf1
LAB_0012aaf1:
MOV R9,qword ptr [RBP + -0x120]
MOV RCX,qword ptr [RBP + -0xf8]
MOV RDX,qword ptr [RBP + -0x100]
MOV RSI,qword ptr [RBP + -0x108]
MOV RDI,qword ptr [RBP + -0x110]
MOV R8,qword ptr [RBP + -0x128]
MOV R10,qword ptr [RBP + -0x130]
MOV R11,qword ptr [RBP + -0x138]
MOV byte ptr [RBP + -0xd9],0x0
MOV RAX,RSP
MOV qword ptr [RAX + 0x10],R11
MOV qword ptr [RAX + 0x8],R10
MOV qword ptr [RAX],R8
LEA R8,[RBP + -0x58]
CALL 0x001337e0
LAB_0012ab47:
MOV qword ptr [RBP + -0x148],RAX
JMP 0x0012ab50
LAB_0012ab50:
LEA RDI,[RBP + -0xd8]
CALL 0x0012ac30
LEA RDI,[RBP + -0x58]
CALL 0x00113e00
LEA RDI,[RBP + -0x78]
CALL 0x0010be58
LEA RDI,[RBP + -0x79]
CALL 0x0010b730
MOV RAX,qword ptr [RBP + -0x148]
ADD RSP,0x160
POP RBP
RET
|
int8
_ZN7testing12RegisterTestITpTnRiJEZNS_8internal23InsertSyntheticTestCaseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS2_12CodeLocationEbE3__0EEPNS_8TestInfoEPKcSG_SG_SG_SG_iT0_
(int8 param_1,int8 param_2,int8 param_3,int8 param_4,char *param_5
,int param_6,__0 *param_7)
{
void *pvVar1;
int8 uVar2;
int8 uVar3;
void *pvVar4;
__0 local_e0 [95];
allocator local_81;
string local_80 [32];
CodeLocation local_60 [44];
int local_34;
char *local_30;
int8 local_28;
int8 local_20;
int8 local_18;
int8 local_10;
local_34 = param_6;
local_30 = param_5;
local_28 = param_4;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
std::allocator<char>::allocator();
/* try { // try from 0012aa53 to 0012aa5b has its CatchHandler @ 0012ab87 */
std::__cxx11::string::string<std::allocator<char>>(local_80,param_5,&local_81);
/* try { // try from 0012aa61 to 0012aa6d has its CatchHandler @ 0012ab9b */
testing::internal::CodeLocation::CodeLocation(local_60,local_80,local_34);
/* try { // try from 0012aa70 to 0012aab1 has its CatchHandler @ 0012abaf */
pvVar1 = testing::internal::GetTypeId<testing::internal::(anonymous_namespace)::FailureTest>();
uVar2 = testing::internal::SuiteApiResolver<testing::internal::(anonymous_namespace)::FailureTest>
::GetSetUpCaseOrSuite(local_30,local_34);
uVar3 = testing::internal::SuiteApiResolver<testing::internal::(anonymous_namespace)::FailureTest>
::GetTearDownCaseOrSuite(local_30,local_34);
pvVar4 = operator_new(0x50);
testing::internal::
InsertSyntheticTestCase(std::__cxx11::string_const&,testing::internal::CodeLocation,bool)::$_0::
__0(local_e0,param_7);
/* try { // try from 0012aaea to 0012ab46 has its CatchHandler @ 0012abc3 */
_ZZN7testing12RegisterTestITpTnRiJEZNS_8internal23InsertSyntheticTestCaseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS2_12CodeLocationEbE3__0EEPNS_8TestInfoEPKcSG_SG_SG_SG_iT0_EN11FactoryImplC2ESC_
(pvVar4,local_e0);
uVar2 = testing::internal::MakeAndRegisterTestInfo
(param_1,param_2,param_3,param_4,local_60,pvVar1,uVar2,uVar3,pvVar4);
testing::internal::
InsertSyntheticTestCase(std::__cxx11::string_const&,testing::internal::CodeLocation,bool)::$_0::
~__0(local_e0);
testing::internal::CodeLocation::~CodeLocation(local_60);
std::__cxx11::string::~string(local_80);
std::allocator<char>::~allocator((allocator<char> *)&local_81);
return uVar2;
}
|
|
64,514 |
clip_image_encode
|
llama.cpp/examples/llava/clip.cpp
|
bool clip_image_encode(struct clip_ctx * ctx, const int n_threads, clip_image_f32 * img, float * vec) {
if (!ctx->has_vision_encoder) {
LOG_ERR("%s: This gguf file seems to have no vision encoder\n", __func__);
return false;
}
clip_image_f32_batch imgs{};
imgs.size = 1;
imgs.data = img;
return clip_image_batch_encode(ctx, n_threads, &imgs, vec);
}
|
O3
|
cpp
|
clip_image_encode:
pushq %rbx
subq $0x10, %rsp
cmpb $0x0, 0x1(%rdi)
je 0x1d377
movq %rsp, %rax
movq $0x1, 0x8(%rax)
movq %rdx, (%rax)
movq %rax, %rdx
callq 0x1d3ab
movl %eax, %ebx
jmp 0x1d3a3
leaq 0x383b2(%rip), %rax # 0x55730
cmpl $0x4, (%rax)
jg 0x1d3a1
leaq 0x28e35(%rip), %rsi # 0x461bf
leaq 0x28e67(%rip), %rdx # 0x461f8
xorl %ebx, %ebx
movl $0x4, %edi
xorl %eax, %eax
callq 0x1ad43
jmp 0x1d3a3
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
retq
|
clip_image_encode:
push rbx
sub rsp, 10h
cmp byte ptr [rdi+1], 0
jz short loc_1D377
mov rax, rsp
mov qword ptr [rax+8], 1
mov [rax], rdx
mov rdx, rax
call clip_image_batch_encode
mov ebx, eax
jmp short loc_1D3A3
loc_1D377:
lea rax, g_logger_state
cmp dword ptr [rax], 4
jg short loc_1D3A1
lea rsi, aSThisGgufFileS; "%s: This gguf file seems to have no vis"...
lea rdx, aClipImageEncod; "clip_image_encode"
xor ebx, ebx
mov edi, 4
xor eax, eax
call _ZL17clip_log_internal14ggml_log_levelPKcz; clip_log_internal(ggml_log_level,char const*,...)
jmp short loc_1D3A3
loc_1D3A1:
xor ebx, ebx
loc_1D3A3:
mov eax, ebx
add rsp, 10h
pop rbx
retn
|
long long clip_image_encode(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
unsigned int v14; // ebx
_QWORD v16[3]; // [rsp+0h] [rbp-18h] BYREF
if ( *(_BYTE *)(a1 + 1) )
{
v16[1] = 1LL;
v16[0] = a3;
return (unsigned int)clip_image_batch_encode(a1, a2, v16);
}
else
{
v14 = 0;
if ( g_logger_state <= 4 )
clip_log_internal(
4u,
(long long)"%s: This gguf file seems to have no vision encoder\n",
(long long)"clip_image_encode",
a4,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
a12,
a13,
a14);
}
return v14;
}
|
clip_image_encode:
PUSH RBX
SUB RSP,0x10
CMP byte ptr [RDI + 0x1],0x0
JZ 0x0011d377
MOV RAX,RSP
MOV qword ptr [RAX + 0x8],0x1
MOV qword ptr [RAX],RDX
MOV RDX,RAX
CALL 0x0011d3ab
MOV EBX,EAX
JMP 0x0011d3a3
LAB_0011d377:
LEA RAX,[0x155730]
CMP dword ptr [RAX],0x4
JG 0x0011d3a1
LEA RSI,[0x1461bf]
LEA RDX,[0x1461f8]
XOR EBX,EBX
MOV EDI,0x4
XOR EAX,EAX
CALL 0x0011ad43
JMP 0x0011d3a3
LAB_0011d3a1:
XOR EBX,EBX
LAB_0011d3a3:
MOV EAX,EBX
ADD RSP,0x10
POP RBX
RET
|
int4 clip_image_encode(long param_1,int8 param_2,int8 param_3)
{
int4 uVar1;
int8 local_18;
int8 local_10;
if (*(char *)(param_1 + 1) == '\0') {
if (g_logger_state < 5) {
uVar1 = 0;
clip_log_internal(4,"%s: This gguf file seems to have no vision encoder\n","clip_image_encode"
);
}
else {
uVar1 = 0;
}
}
else {
local_10 = 1;
local_18 = param_3;
uVar1 = clip_image_batch_encode(param_1,param_2,&local_18);
}
return uVar1;
}
|
|
64,515 |
mpvio_info
|
eloqsql/libmariadb/plugins/auth/my_auth.c
|
void mpvio_info(MARIADB_PVIO *pvio, MYSQL_PLUGIN_VIO_INFO *info)
{
memset(info, 0, sizeof(*info));
switch (pvio->type) {
case PVIO_TYPE_SOCKET:
info->protocol= MYSQL_VIO_TCP;
ma_pvio_get_handle(pvio, &info->socket);
return;
case PVIO_TYPE_UNIXSOCKET:
info->protocol= MYSQL_VIO_SOCKET;
ma_pvio_get_handle(pvio, &info->socket);
return;
/*
case VIO_TYPE_SSL:
{
struct sockaddr addr;
SOCKET_SIZE_TYPE addrlen= sizeof(addr);
if (getsockname(vio->sd, &addr, &addrlen))
return;
info->protocol= addr.sa_family == AF_UNIX ?
MYSQL_VIO_SOCKET : MYSQL_VIO_TCP;
info->socket= vio->sd;
return;
}
*/
#ifdef _WIN32
/*
case VIO_TYPE_NAMEDPIPE:
info->protocol= MYSQL_VIO_PIPE;
info->handle= vio->hPipe;
return;
*/
/* not supported yet
case VIO_TYPE_SHARED_MEMORY:
info->protocol= MYSQL_VIO_MEMORY;
info->handle= vio->handle_file_map;
return;
*/
#endif
default: DBUG_ASSERT(0);
}
}
|
O3
|
c
|
mpvio_info:
pushq %rbp
movq %rsp, %rbp
movq $0x0, (%rsi)
movl 0x20(%rdi), %eax
cmpl $0x1, %eax
je 0x2e5d3
testl %eax, %eax
jne 0x2e5df
movl $0x2, %eax
movl %eax, (%rsi)
addq $0x4, %rsi
popq %rbp
jmp 0x1e073
popq %rbp
retq
|
mpvio_info:
push rbp
mov rbp, rsp
mov qword ptr [rsi], 0
mov eax, [rdi+20h]
cmp eax, 1
jz short loc_2E5D3
test eax, eax
jnz short loc_2E5DF
mov eax, 2
loc_2E5D3:
mov [rsi], eax
add rsi, 4
pop rbp
jmp ma_pvio_get_handle
loc_2E5DF:
pop rbp
retn
|
char mpvio_info(long long a1, _QWORD *a2)
{
int v2; // eax
*a2 = 0LL;
v2 = *(_DWORD *)(a1 + 32);
if ( v2 == 1 )
goto LABEL_4;
if ( !v2 )
{
v2 = 2;
LABEL_4:
*(_DWORD *)a2 = v2;
LOBYTE(v2) = ma_pvio_get_handle(a1);
}
return v2;
}
|
mpvio_info:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RSI],0x0
MOV EAX,dword ptr [RDI + 0x20]
CMP EAX,0x1
JZ 0x0012e5d3
TEST EAX,EAX
JNZ 0x0012e5df
MOV EAX,0x2
LAB_0012e5d3:
MOV dword ptr [RSI],EAX
ADD RSI,0x4
POP RBP
JMP 0x0011e073
LAB_0012e5df:
POP RBP
RET
|
void mpvio_info(long param_1,int *param_2)
{
int iVar1;
param_2[0] = 0;
param_2[1] = 0;
iVar1 = *(int *)(param_1 + 0x20);
if (iVar1 != 1) {
if (iVar1 != 0) {
return;
}
iVar1 = 2;
}
*param_2 = iVar1;
ma_pvio_get_handle(param_1,param_2 + 1);
return;
}
|
|
64,516 |
lock_flags_to_lock_type(unsigned int)
|
eloqsql/storage/perfschema/pfs.cc
|
static inline PFS_TL_LOCK_TYPE lock_flags_to_lock_type(uint flags)
{
enum thr_lock_type value= static_cast<enum thr_lock_type> (flags);
switch (value)
{
case TL_READ:
return PFS_TL_READ;
case TL_READ_WITH_SHARED_LOCKS:
return PFS_TL_READ_WITH_SHARED_LOCKS;
case TL_READ_HIGH_PRIORITY:
return PFS_TL_READ_HIGH_PRIORITY;
case TL_READ_NO_INSERT:
return PFS_TL_READ_NO_INSERT;
case TL_WRITE_ALLOW_WRITE:
return PFS_TL_WRITE_ALLOW_WRITE;
case TL_WRITE_CONCURRENT_INSERT:
return PFS_TL_WRITE_CONCURRENT_INSERT;
case TL_WRITE_DELAYED:
return PFS_TL_WRITE_DELAYED;
case TL_WRITE_LOW_PRIORITY:
return PFS_TL_WRITE_LOW_PRIORITY;
case TL_WRITE:
return PFS_TL_WRITE;
case TL_WRITE_ONLY:
case TL_IGNORE:
case TL_UNLOCK:
case TL_READ_DEFAULT:
case TL_WRITE_DEFAULT:
default:
assert(false);
}
/* Dead code */
return PFS_TL_READ;
}
|
O0
|
cpp
|
lock_flags_to_lock_type(unsigned int):
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x8(%rbp)
movl -0x8(%rbp), %eax
movl %eax, -0xc(%rbp)
movl -0xc(%rbp), %eax
incl %eax
movl %eax, %ecx
movq %rcx, -0x18(%rbp)
subl $0xf, %eax
ja 0x479a4
movq -0x18(%rbp), %rax
leaq 0x6c564(%rip), %rcx # 0xb3eac
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x0, -0x4(%rbp)
jmp 0x479ad
movl $0x1, -0x4(%rbp)
jmp 0x479ad
movl $0x2, -0x4(%rbp)
jmp 0x479ad
movl $0x3, -0x4(%rbp)
jmp 0x479ad
movl $0x4, -0x4(%rbp)
jmp 0x479ad
movl $0x5, -0x4(%rbp)
jmp 0x479ad
movl $0x6, -0x4(%rbp)
jmp 0x479ad
movl $0x7, -0x4(%rbp)
jmp 0x479ad
movl $0x8, -0x4(%rbp)
jmp 0x479ad
jmp 0x479a4
jmp 0x479a6
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_ZL23lock_flags_to_lock_typej:
push rbp
mov rbp, rsp
mov [rbp+var_8], edi
mov eax, [rbp+var_8]
mov [rbp+var_C], eax
mov eax, [rbp+var_C]
inc eax; switch 16 cases
mov ecx, eax
mov [rbp+var_18], rcx
sub eax, 0Fh
ja short def_4794F; jumptable 000000000004794F default case, cases 6,12
mov rax, [rbp+var_18]
lea rcx, jpt_4794F
movsxd rax, ds:(jpt_4794F - 0B3EACh)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_47951:
mov [rbp+var_4], 0; jumptable 000000000004794F case 2
jmp short loc_479AD
loc_4795A:
mov [rbp+var_4], 1; jumptable 000000000004794F case 3
jmp short loc_479AD
loc_47963:
mov [rbp+var_4], 2; jumptable 000000000004794F case 4
jmp short loc_479AD
loc_4796C:
mov [rbp+var_4], 3; jumptable 000000000004794F case 5
jmp short loc_479AD
loc_47975:
mov [rbp+var_4], 4; jumptable 000000000004794F case 7
jmp short loc_479AD
loc_4797E:
mov [rbp+var_4], 5; jumptable 000000000004794F case 8
jmp short loc_479AD
loc_47987:
mov [rbp+var_4], 6; jumptable 000000000004794F case 9
jmp short loc_479AD
loc_47990:
mov [rbp+var_4], 7; jumptable 000000000004794F case 11
jmp short loc_479AD
loc_47999:
mov [rbp+var_4], 8; jumptable 000000000004794F case 13
jmp short loc_479AD
loc_479A2:
jmp short $+2; jumptable 000000000004794F cases -1-1,10,14
def_4794F:
jmp short $+2; jumptable 000000000004794F default case, cases 6,12
loc_479A6:
mov [rbp+var_4], 0
loc_479AD:
mov eax, [rbp+var_4]
pop rbp
retn
|
long long lock_flags_to_lock_type(int a1)
{
unsigned int v2; // [rsp+14h] [rbp-4h]
switch ( a1 )
{
case 2:
v2 = 0;
break;
case 3:
v2 = 1;
break;
case 4:
v2 = 2;
break;
case 5:
v2 = 3;
break;
case 7:
v2 = 4;
break;
case 8:
v2 = 5;
break;
case 9:
v2 = 6;
break;
case 11:
v2 = 7;
break;
case 13:
v2 = 8;
break;
default:
v2 = 0;
break;
}
return v2;
}
|
lock_flags_to_lock_type:
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RBP + -0x8],EDI
MOV EAX,dword ptr [RBP + -0x8]
MOV dword ptr [RBP + -0xc],EAX
MOV EAX,dword ptr [RBP + -0xc]
INC EAX
MOV ECX,EAX
MOV qword ptr [RBP + -0x18],RCX
SUB EAX,0xf
JA 0x001479a4
MOV RAX,qword ptr [RBP + -0x18]
LEA RCX,[0x1b3eac]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_2:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001479ad
caseD_3:
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001479ad
caseD_4:
MOV dword ptr [RBP + -0x4],0x2
JMP 0x001479ad
caseD_5:
MOV dword ptr [RBP + -0x4],0x3
JMP 0x001479ad
caseD_7:
MOV dword ptr [RBP + -0x4],0x4
JMP 0x001479ad
caseD_8:
MOV dword ptr [RBP + -0x4],0x5
JMP 0x001479ad
caseD_9:
MOV dword ptr [RBP + -0x4],0x6
JMP 0x001479ad
caseD_b:
MOV dword ptr [RBP + -0x4],0x7
JMP 0x001479ad
caseD_d:
MOV dword ptr [RBP + -0x4],0x8
JMP 0x001479ad
caseD_ffffffff:
JMP 0x001479a4
caseD_6:
JMP 0x001479a6
LAB_001479a6:
MOV dword ptr [RBP + -0x4],0x0
LAB_001479ad:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
/* lock_flags_to_lock_type(unsigned int) */
int4 lock_flags_to_lock_type(uint param_1)
{
int4 local_c;
switch(param_1) {
case 2:
local_c = 0;
break;
case 3:
local_c = 1;
break;
case 4:
local_c = 2;
break;
case 5:
local_c = 3;
break;
case 7:
local_c = 4;
break;
case 8:
local_c = 5;
break;
case 9:
local_c = 6;
break;
case 0xb:
local_c = 7;
break;
case 0xd:
local_c = 8;
break;
case 0xffffffff:
case 0:
case 1:
case 10:
case 0xe:
default:
local_c = 0;
}
return local_c;
}
|
|
64,517 |
coro::net::tcp_accept_awaiter::tcp_accept_awaiter(int, int)
|
tinyCoroLab/src/net/io_awaiter.cpp
|
tcp_accept_awaiter::tcp_accept_awaiter(int listenfd, int flags) noexcept
{
m_info.type = io_type::tcp_accept;
m_info.cb = &tcp_accept_awaiter::callback;
// FIXME: this isn't atomic, maybe cause bug?
io_uring_prep_accept(m_urs, listenfd, nullptr, &len, flags);
io_uring_sqe_set_data(m_urs, &m_info); // old uring version need set data after prep
local_engine().add_io_submit();
}
|
O3
|
cpp
|
coro::net::tcp_accept_awaiter::tcp_accept_awaiter(int, int):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movq $0x0, (%rdi)
leaq 0x18(%rdi), %r15
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x28(%rdi)
movq %fs:-0x38, %rdi
callq 0x23040
movq %rax, 0x38(%rbx)
movl $0x1, 0xc(%rbx)
leaq 0x5b(%rip), %rax # 0x21dca
movq %rsp, %rsi
movq %rax, (%rsi)
movq %r15, %rdi
callq 0x22186
movq 0x38(%rbx), %rax
movl $0xd, (%rax)
movl %r14d, 0x4(%rax)
leaq 0x1152e(%rip), %rcx # 0x332c0
movq %rcx, 0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x30(%rax)
movl %ebp, 0x1c(%rax)
movq 0x38(%rbx), %rax
movq %rbx, 0x20(%rax)
movq %fs:-0x38, %rdi
callq 0x2308e
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
|
_ZN4coro3net18tcp_accept_awaiterC2Eii:
push rbp
push r15
push r14
push rbx
push rax
mov ebp, edx
mov r14d, esi
mov rbx, rdi
mov qword ptr [rdi], 0
lea r15, [rdi+18h]
xorps xmm0, xmm0
movups xmmword ptr [rdi+18h], xmm0
movups xmmword ptr [rdi+28h], xmm0
mov rdi, fs:0FFFFFFFFFFFFFFC8h; this
call _ZN4coro6detail6engine12get_free_ursEv; coro::detail::engine::get_free_urs(void)
mov [rbx+38h], rax
mov dword ptr [rbx+0Ch], 1
lea rax, _ZN4coro3net18tcp_accept_awaiter8callbackEPNS0_6detail7io_infoEi; coro::net::tcp_accept_awaiter::callback(coro::net::detail::io_info *,int)
mov rsi, rsp
mov [rsi], rax
mov rdi, r15
call _ZNSt8functionIFvPN4coro3net6detail7io_infoEiEEaSIPDoFvS4_iEEENSt9enable_ifIXsrNS6_9_CallableIT_NSA_IXntsr7is_sameINSt9remove_cvINSt16remove_referenceISC_E4typeEE4typeES6_EE5valueESt5decayISC_EE4type4typeESt15__invoke_resultIRSN_JS4_iEEEE5valueERS6_E4typeEOSC_
mov rax, [rbx+38h]
mov dword ptr [rax], 0Dh
mov [rax+4], r14d
lea rcx, _ZN4coro3net18tcp_accept_awaiter3lenE; coro::net::tcp_accept_awaiter::len
mov [rax+8], rcx
xorps xmm0, xmm0
movups xmmword ptr [rax+10h], xmm0
movups xmmword ptr [rax+20h], xmm0
movups xmmword ptr [rax+30h], xmm0
mov [rax+1Ch], ebp
mov rax, [rbx+38h]
mov [rax+20h], rbx
mov rdi, fs:0FFFFFFFFFFFFFFC8h; this
call _ZN4coro6detail6engine13add_io_submitEv; coro::detail::engine::add_io_submit(void)
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long coro::net::tcp_accept_awaiter::tcp_accept_awaiter(
coro::net::tcp_accept_awaiter *this,
int a2,
int a3)
{
long long v4; // rax
*(_QWORD *)this = 0LL;
*(_OWORD *)((char *)this + 24) = 0LL;
*(_OWORD *)((char *)this + 40) = 0LL;
*((_QWORD *)this + 7) = coro::detail::engine::get_free_urs((coro::detail::engine *)__readfsqword(0xFFFFFFC8));
*((_DWORD *)this + 3) = 1;
ZNSt8functionIFvPN4coro3net6detail7io_infoEiEEaSIPDoFvS4_iEEENSt9enable_ifIXsrNS6_9_CallableIT_NSA_IXntsr7is_sameINSt9remove_cvINSt16remove_referenceISC_E4typeEE4typeES6_EE5valueESt5decayISC_EE4type4typeESt15__invoke_resultIRSN_JS4_iEEEE5valueERS6_E4typeEOSC_((char *)this + 24);
v4 = *((_QWORD *)this + 7);
*(_DWORD *)v4 = 13;
*(_DWORD *)(v4 + 4) = a2;
*(_QWORD *)(v4 + 8) = &coro::net::tcp_accept_awaiter::len;
*(_OWORD *)(v4 + 16) = 0LL;
*(_OWORD *)(v4 + 32) = 0LL;
*(_OWORD *)(v4 + 48) = 0LL;
*(_DWORD *)(v4 + 28) = a3;
*(_QWORD *)(*((_QWORD *)this + 7) + 32LL) = this;
return coro::detail::engine::add_io_submit((coro::detail::engine *)__readfsqword(0xFFFFFFC8));
}
|
tcp_accept_awaiter:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV EBP,EDX
MOV R14D,ESI
MOV RBX,RDI
MOV qword ptr [RDI],0x0
LEA R15,[RDI + 0x18]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x18],XMM0
MOVUPS xmmword ptr [RDI + 0x28],XMM0
MOV RDI,qword ptr FS:[-0x38]
CALL 0x00123040
MOV qword ptr [RBX + 0x38],RAX
MOV dword ptr [RBX + 0xc],0x1
LEA RAX,[0x121dca]
MOV RSI,RSP
MOV qword ptr [RSI],RAX
MOV RDI,R15
CALL 0x00122186
MOV RAX,qword ptr [RBX + 0x38]
MOV dword ptr [RAX],0xd
MOV dword ptr [RAX + 0x4],R14D
LEA RCX,[0x1332c0]
MOV qword ptr [RAX + 0x8],RCX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX + 0x10],XMM0
MOVUPS xmmword ptr [RAX + 0x20],XMM0
MOVUPS xmmword ptr [RAX + 0x30],XMM0
MOV dword ptr [RAX + 0x1c],EBP
MOV RAX,qword ptr [RBX + 0x38]
MOV qword ptr [RAX + 0x20],RBX
MOV RDI,qword ptr FS:[-0x38]
CALL 0x0012308e
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* coro::net::tcp_accept_awaiter::tcp_accept_awaiter(int, int) */
void __thiscall
coro::net::tcp_accept_awaiter::tcp_accept_awaiter(tcp_accept_awaiter *this,int param_1,int param_2)
{
int4 *puVar1;
int8 uVar2;
code *local_28;
*(int8 *)this = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
uVar2 = detail::engine::get_free_urs();
*(int8 *)(this + 0x38) = uVar2;
*(int4 *)(this + 0xc) = 1;
local_28 = callback;
std::function<void(coro::net::detail::io_info*,int)>::operator=
((function<void(coro::net::detail::io_info*,int)> *)(this + 0x18),
(_func_void_io_info_ptr_int *)&local_28);
puVar1 = *(int4 **)(this + 0x38);
*puVar1 = 0xd;
puVar1[1] = param_1;
*(int4 **)(puVar1 + 2) = &len;
*(int8 *)(puVar1 + 4) = 0;
*(int8 *)(puVar1 + 6) = 0;
*(int8 *)(puVar1 + 8) = 0;
*(int8 *)(puVar1 + 10) = 0;
*(int8 *)(puVar1 + 0xc) = 0;
*(int8 *)(puVar1 + 0xe) = 0;
puVar1[7] = param_2;
*(tcp_accept_awaiter **)(*(long *)(this + 0x38) + 0x20) = this;
detail::engine::add_io_submit();
return;
}
|
|
64,518 |
common_arg::common_arg(std::initializer_list<char const*> const&, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, void (*)(common_params&, 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.h
|
common_arg(
const std::initializer_list<const char *> & args,
const char * value_hint,
const char * value_hint_2,
const std::string & help,
void (*handler)(common_params & params, const std::string &, const std::string &)
) : args(args), value_hint(value_hint), value_hint_2(value_hint_2), help(help), handler_str_str(handler) {}
|
O2
|
c
|
common_arg::common_arg(std::initializer_list<char const*> const&, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, void (*)(common_params&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, 0x8(%rsp)
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x14(%rsp), %rsi
andl $0x0, (%rsi)
pushq $0x1
popq %rdx
leaq 0x7(%rsp), %rcx
leaq 0x6(%rsp), %r8
callq 0x3d040
leaq 0x38(%rbx), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rbx)
andq $0x0, 0x40(%rbx)
movq %rax, 0x48(%rbx)
movq %rax, 0x50(%rbx)
andq $0x0, 0x58(%rbx)
leaq 0x60(%rbx), %rbp
movq (%r14), %rsi
movq 0x8(%r14), %rdx
leaq 0x5(%rsp), %rcx
movq %rbp, %rdi
callq 0x3d086
movq %r13, 0x78(%rbx)
movq %r12, 0x80(%rbx)
andq $0x0, 0x88(%rbx)
leaq 0x90(%rbx), %rdi
movq %r15, %rsi
callq 0x23c20
movb $0x0, 0xb0(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0xb8(%rbx)
movq 0x8(%rsp), %rax
movq %rax, 0xc8(%rbx)
andq $0x0, 0xd0(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbp, %rdi
callq 0x3d3c2
jmp 0x39fed
movq %rax, %r14
leaq 0x30(%rbx), %rdi
callq 0x3d10a
movq %rbx, %rdi
callq 0x3d10a
movq %r14, %rdi
callq 0x23f90
|
_ZN10common_argC2ERKSt16initializer_listIPKcES2_S2_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPFvR13common_paramsSD_SD_E:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rsp+48h+var_40], r9
mov r15, r8
mov r12, rcx
mov r13, rdx
mov r14, rsi
mov rbx, rdi
lea rsi, [rsp+48h+var_34]
and dword ptr [rsi], 0
push 1
pop rdx
lea rcx, [rsp+48h+var_41]
lea r8, [rsp+48h+var_42]
call _ZNSt3setI13llama_exampleSt4lessIS0_ESaIS0_EEC2ESt16initializer_listIS0_ERKS2_RKS3_; std::set<llama_example>::set(std::initializer_list<llama_example>,std::less<llama_example> const&,std::allocator<llama_example> const&)
lea rax, [rbx+38h]
xorps xmm0, xmm0
movups xmmword ptr [rbx+30h], xmm0
and qword ptr [rbx+40h], 0
mov [rbx+48h], rax
mov [rbx+50h], rax
and qword ptr [rbx+58h], 0
lea rbp, [rbx+60h]
mov rsi, [r14]
mov rdx, [r14+8]
lea rcx, [rsp+48h+var_43]
mov rdi, rbp
call _ZNSt6vectorIPKcSaIS1_EEC2ESt16initializer_listIS1_ERKS2_; std::vector<char const*>::vector(std::initializer_list<char const*>,std::allocator<char const*> const&)
mov [rbx+78h], r13
mov [rbx+80h], r12
and qword ptr [rbx+88h], 0
lea rdi, [rbx+90h]
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&)
mov byte ptr [rbx+0B0h], 0
xorps xmm0, xmm0
movups xmmword ptr [rbx+0B8h], xmm0
mov rax, [rsp+48h+var_40]
mov [rbx+0C8h], rax
and qword ptr [rbx+0D0h], 0
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
mov rdi, rbp
call _ZNSt12_Vector_baseIPKcSaIS1_EED2Ev; std::_Vector_base<char const*>::~_Vector_base()
jmp short loc_39FED
mov r14, rax
loc_39FED:
lea rdi, [rbx+30h]
call _ZNSt8_Rb_treeI13llama_exampleS0_St9_IdentityIS0_ESt4lessIS0_ESaIS0_EED2Ev; std::_Rb_tree<llama_example,llama_example,std::_Identity<llama_example>,std::less<llama_example>,std::allocator<llama_example>>::~_Rb_tree()
mov rdi, rbx
call _ZNSt8_Rb_treeI13llama_exampleS0_St9_IdentityIS0_ESt4lessIS0_ESaIS0_EED2Ev; std::_Rb_tree<llama_example,llama_example,std::_Identity<llama_example>,std::less<llama_example>,std::allocator<llama_example>>::~_Rb_tree()
mov rdi, r14
call __Unwind_Resume
|
long long common_arg::common_arg(long long a1, _QWORD *a2, long long a3, long long a4, long long a5, long long a6)
{
long long result; // rax
char v10; // [rsp+5h] [rbp-43h] BYREF
char v11; // [rsp+6h] [rbp-42h] BYREF
char v12; // [rsp+7h] [rbp-41h] BYREF
long long v13; // [rsp+8h] [rbp-40h]
_DWORD v14[13]; // [rsp+14h] [rbp-34h] BYREF
v13 = a6;
v14[0] = 0;
std::set<llama_example>::set(a1, v14, 1LL, &v12, &v11);
*(_OWORD *)(a1 + 48) = 0LL;
*(_QWORD *)(a1 + 64) = 0LL;
*(_QWORD *)(a1 + 72) = a1 + 56;
*(_QWORD *)(a1 + 80) = a1 + 56;
*(_QWORD *)(a1 + 88) = 0LL;
std::vector<char const*>::vector(a1 + 96, *a2, a2[1], &v10);
*(_QWORD *)(a1 + 120) = a3;
*(_QWORD *)(a1 + 128) = a4;
*(_QWORD *)(a1 + 136) = 0LL;
std::string::basic_string(a1 + 144, a5);
*(_BYTE *)(a1 + 176) = 0;
*(_OWORD *)(a1 + 184) = 0LL;
result = v13;
*(_QWORD *)(a1 + 200) = v13;
*(_QWORD *)(a1 + 208) = 0LL;
return result;
}
|
common_arg:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV qword ptr [RSP + 0x8],R9
MOV R15,R8
MOV R12,RCX
MOV R13,RDX
MOV R14,RSI
MOV RBX,RDI
LEA RSI,[RSP + 0x14]
AND dword ptr [RSI],0x0
PUSH 0x1
POP RDX
LEA RCX,[RSP + 0x7]
LEA R8,[RSP + 0x6]
CALL 0x0013d040
LEA RAX,[RBX + 0x38]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x30],XMM0
AND qword ptr [RBX + 0x40],0x0
MOV qword ptr [RBX + 0x48],RAX
MOV qword ptr [RBX + 0x50],RAX
AND qword ptr [RBX + 0x58],0x0
LEA RBP,[RBX + 0x60]
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
LAB_00139f7a:
LEA RCX,[RSP + 0x5]
MOV RDI,RBP
CALL 0x0013d086
MOV qword ptr [RBX + 0x78],R13
MOV qword ptr [RBX + 0x80],R12
AND qword ptr [RBX + 0x88],0x0
LEA RDI,[RBX + 0x90]
LAB_00139fa1:
MOV RSI,R15
CALL 0x00123c20
LAB_00139fa9:
MOV byte ptr [RBX + 0xb0],0x0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0xb8],XMM0
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RBX + 0xc8],RAX
AND qword ptr [RBX + 0xd0],0x0
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* common_arg::common_arg(std::initializer_list<char const*> const&, char const*, char const*,
std::__cxx11::string const&, void (*)(common_params&, std::__cxx11::string const&,
std::__cxx11::string const&)) */
void __thiscall
common_arg::common_arg
(common_arg *this,initializer_list *param_1,char *param_2,char *param_3,string *param_4,
_func_void_common_params_ptr_string_ptr_string_ptr *param_5)
{
int1 local_43;
int1 local_42;
int1 local_41;
_func_void_common_params_ptr_string_ptr_string_ptr *local_40;
int4 local_34;
local_34 = 0;
local_40 = param_5;
std::set<llama_example,std::less<llama_example>,std::allocator<llama_example>>::set
(this,&local_34,1,&local_41,&local_42);
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int8 *)(this + 0x40) = 0;
*(common_arg **)(this + 0x48) = this + 0x38;
*(common_arg **)(this + 0x50) = this + 0x38;
*(int8 *)(this + 0x58) = 0;
/* try { // try from 00139f7a to 00139f86 has its CatchHandler @ 00139fea */
std::vector<char_const*,std::allocator<char_const*>>::vector
((vector<char_const*,std::allocator<char_const*>> *)(this + 0x60),*(int8 *)param_1
,*(int8 *)(param_1 + 8),&local_43);
*(char **)(this + 0x78) = param_2;
*(char **)(this + 0x80) = param_3;
*(int8 *)(this + 0x88) = 0;
/* try { // try from 00139fa1 to 00139fa8 has its CatchHandler @ 00139fdd */
std::__cxx11::string::string((string *)(this + 0x90),param_4);
this[0xb0] = (common_arg)0x0;
*(int8 *)(this + 0xb8) = 0;
*(int8 *)(this + 0xc0) = 0;
*(_func_void_common_params_ptr_string_ptr_string_ptr **)(this + 200) = local_40;
*(int8 *)(this + 0xd0) = 0;
return;
}
|
|
64,519 |
get_present_hash_link
|
eloqsql/storage/maria/ma_pagecache.c
|
static PAGECACHE_HASH_LINK *get_present_hash_link(PAGECACHE *pagecache,
PAGECACHE_FILE *file,
pgcache_page_no_t pageno,
PAGECACHE_HASH_LINK ***start)
{
reg1 PAGECACHE_HASH_LINK *hash_link;
#if defined(PAGECACHE_DEBUG)
int cnt;
#endif
DBUG_ENTER("get_present_hash_link");
DBUG_PRINT("enter", ("fd: %u pos: %lu", (uint) file->file, (ulong) pageno));
/*
Find the bucket in the hash table for the pair (file, pageno);
start contains the head of the bucket list,
hash_link points to the first member of the list
*/
hash_link= *(*start= &pagecache->hash_root[PAGECACHE_HASH(pagecache,
*file, pageno)]);
#if defined(PAGECACHE_DEBUG)
cnt= 0;
#endif
/* Look for an element for the pair (file, pageno) in the bucket chain */
while (hash_link &&
(hash_link->pageno != pageno ||
hash_link->file.file != file->file))
{
hash_link= hash_link->next;
#if defined(PAGECACHE_DEBUG)
cnt++;
if (! (cnt <= pagecache->hash_links_used))
{
int i;
for (i=0, hash_link= **start ;
i < cnt ; i++, hash_link= hash_link->next)
{
KEYCACHE_DBUG_PRINT("get_present_hash_link", ("fd: %u pos: %lu",
(uint) hash_link->file.file, (ulong) hash_link->pageno));
}
}
KEYCACHE_DBUG_ASSERT(cnt <= pagecache->hash_links_used);
#endif
}
if (hash_link)
{
DBUG_PRINT("exit", ("hash_link: %p", hash_link));
/* Register the request for the page */
hash_link->requests++;
}
/*
As soon as the caller will release the page cache's lock, "hash_link"
will be potentially obsolete (unusable) information.
*/
DBUG_RETURN(hash_link);
}
|
O0
|
c
|
get_present_hash_link:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
jmp 0x3e6f6
movq -0x8(%rbp), %rax
movq 0x88(%rax), %rax
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rdx
movslq 0x10(%rdx), %rdx
addq %rdx, %rcx
movq -0x8(%rbp), %rdx
movq 0x20(%rdx), %rdx
subq $0x1, %rdx
andq %rdx, %rcx
movq %rcx, %rdx
shlq $0x3, %rdx
movq %rax, %rsi
addq %rdx, %rsi
movq -0x20(%rbp), %rdx
movq %rsi, (%rdx)
movq (%rax,%rcx,8), %rax
movq %rax, -0x28(%rbp)
xorl %eax, %eax
cmpq $0x0, -0x28(%rbp)
movb %al, -0x29(%rbp)
je 0x3e774
movq -0x28(%rbp), %rax
movq 0x60(%rax), %rcx
movb $0x1, %al
cmpq -0x18(%rbp), %rcx
movb %al, -0x2a(%rbp)
jne 0x3e76e
movq -0x28(%rbp), %rax
movl 0x28(%rax), %eax
movq -0x10(%rbp), %rcx
cmpl 0x10(%rcx), %eax
setne %al
movb %al, -0x2a(%rbp)
movb -0x2a(%rbp), %al
movb %al, -0x29(%rbp)
movb -0x29(%rbp), %al
testb $0x1, %al
jne 0x3e77d
jmp 0x3e78a
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
jmp 0x3e73b
cmpq $0x0, -0x28(%rbp)
je 0x3e7a2
jmp 0x3e793
jmp 0x3e795
movq -0x28(%rbp), %rax
movl 0x68(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x68(%rax)
jmp 0x3e7a4
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
get_present_hash_link:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
jmp short $+2
loc_3E6F6:
mov rax, [rbp+var_8]
mov rax, [rax+88h]
mov rcx, [rbp+var_18]
mov rdx, [rbp+var_10]
movsxd rdx, dword ptr [rdx+10h]
add rcx, rdx
mov rdx, [rbp+var_8]
mov rdx, [rdx+20h]
sub rdx, 1
and rcx, rdx
mov rdx, rcx
shl rdx, 3
mov rsi, rax
add rsi, rdx
mov rdx, [rbp+var_20]
mov [rdx], rsi
mov rax, [rax+rcx*8]
mov [rbp+var_28], rax
loc_3E73B:
xor eax, eax
cmp [rbp+var_28], 0
mov [rbp+var_29], al
jz short loc_3E774
mov rax, [rbp+var_28]
mov rcx, [rax+60h]
mov al, 1
cmp rcx, [rbp+var_18]
mov [rbp+var_2A], al
jnz short loc_3E76E
mov rax, [rbp+var_28]
mov eax, [rax+28h]
mov rcx, [rbp+var_10]
cmp eax, [rcx+10h]
setnz al
mov [rbp+var_2A], al
loc_3E76E:
mov al, [rbp+var_2A]
mov [rbp+var_29], al
loc_3E774:
mov al, [rbp+var_29]
test al, 1
jnz short loc_3E77D
jmp short loc_3E78A
loc_3E77D:
mov rax, [rbp+var_28]
mov rax, [rax]
mov [rbp+var_28], rax
jmp short loc_3E73B
loc_3E78A:
cmp [rbp+var_28], 0
jz short loc_3E7A2
jmp short $+2
loc_3E793:
jmp short $+2
loc_3E795:
mov rax, [rbp+var_28]
mov ecx, [rax+68h]
add ecx, 1
mov [rax+68h], ecx
loc_3E7A2:
jmp short $+2
loc_3E7A4:
mov rax, [rbp+var_28]
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
pop rbp
retn
|
long long * get_present_hash_link(long long a1, long long a2, long long a3, _QWORD *a4)
{
long long v4; // rax
long long v5; // rcx
bool v7; // [rsp+Eh] [rbp-2Ah]
bool v8; // [rsp+Fh] [rbp-29h]
long long *i; // [rsp+10h] [rbp-28h]
v4 = *(_QWORD *)(a1 + 136);
v5 = (*(_QWORD *)(a1 + 32) - 1LL) & (*(int *)(a2 + 16) + a3);
*a4 = 8 * v5 + v4;
for ( i = *(long long **)(v4 + 8 * v5); ; i = (long long *)*i )
{
v8 = 0;
if ( i )
{
v7 = 1;
if ( i[12] == a3 )
v7 = *((_DWORD *)i + 10) != *(_DWORD *)(a2 + 16);
v8 = v7;
}
if ( !v8 )
break;
}
if ( i )
++*((_DWORD *)i + 26);
return i;
}
|
get_present_hash_link:
PUSH RBP
MOV RBP,RSP
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 0x0013e6f6
LAB_0013e6f6:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x88]
MOV RCX,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x10]
MOVSXD RDX,dword ptr [RDX + 0x10]
ADD RCX,RDX
MOV RDX,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RDX + 0x20]
SUB RDX,0x1
AND RCX,RDX
MOV RDX,RCX
SHL RDX,0x3
MOV RSI,RAX
ADD RSI,RDX
MOV RDX,qword ptr [RBP + -0x20]
MOV qword ptr [RDX],RSI
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x28],RAX
LAB_0013e73b:
XOR EAX,EAX
CMP qword ptr [RBP + -0x28],0x0
MOV byte ptr [RBP + -0x29],AL
JZ 0x0013e774
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RAX + 0x60]
MOV AL,0x1
CMP RCX,qword ptr [RBP + -0x18]
MOV byte ptr [RBP + -0x2a],AL
JNZ 0x0013e76e
MOV RAX,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RAX + 0x28]
MOV RCX,qword ptr [RBP + -0x10]
CMP EAX,dword ptr [RCX + 0x10]
SETNZ AL
MOV byte ptr [RBP + -0x2a],AL
LAB_0013e76e:
MOV AL,byte ptr [RBP + -0x2a]
MOV byte ptr [RBP + -0x29],AL
LAB_0013e774:
MOV AL,byte ptr [RBP + -0x29]
TEST AL,0x1
JNZ 0x0013e77d
JMP 0x0013e78a
LAB_0013e77d:
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0013e73b
LAB_0013e78a:
CMP qword ptr [RBP + -0x28],0x0
JZ 0x0013e7a2
JMP 0x0013e793
LAB_0013e793:
JMP 0x0013e795
LAB_0013e795:
MOV RAX,qword ptr [RBP + -0x28]
MOV ECX,dword ptr [RAX + 0x68]
ADD ECX,0x1
MOV dword ptr [RAX + 0x68],ECX
LAB_0013e7a2:
JMP 0x0013e7a4
LAB_0013e7a4:
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
POP RBP
RET
|
int8 * get_present_hash_link(long param_1,long param_2,long param_3,long *param_4)
{
long lVar1;
ulong uVar2;
bool bVar3;
int8 *local_30;
lVar1 = *(long *)(param_1 + 0x88);
uVar2 = param_3 + *(int *)(param_2 + 0x10) & *(long *)(param_1 + 0x20) - 1U;
*param_4 = lVar1 + uVar2 * 8;
local_30 = *(int8 **)(lVar1 + uVar2 * 8);
while( true ) {
bVar3 = false;
if ((local_30 != (int8 *)0x0) && (bVar3 = true, local_30[0xc] == param_3)) {
bVar3 = *(int *)(local_30 + 5) != *(int *)(param_2 + 0x10);
}
if (!bVar3) break;
local_30 = (int8 *)*local_30;
}
if (local_30 != (int8 *)0x0) {
*(int *)(local_30 + 0xd) = *(int *)(local_30 + 0xd) + 1;
}
return local_30;
}
|
|
64,520 |
nglog::internal::CheckOpMessageBuilder::CheckOpMessageBuilder(char const*)
|
ng-log[P]ng-log/src/logging.cc
|
CheckOpMessageBuilder::CheckOpMessageBuilder(const char* exprtext)
: stream_(new ostringstream) {
*stream_ << exprtext << " (";
}
|
O3
|
cpp
|
nglog::internal::CheckOpMessageBuilder::CheckOpMessageBuilder(char const*):
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
movl $0x178, %edi # imm = 0x178
callq 0x8e60
movq %rax, %rbx
movq %rax, %rdi
callq 0x7710
movq %rbx, (%r15)
testq %r14, %r14
je 0xe13c
movq %r14, %rdi
callq 0x71f0
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x75d0
jmp 0xe155
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq %rbx, %rdi
addq %rax, %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x78f0
leaq 0x146a8(%rip), %rsi # 0x22804
movl $0x2, %edx
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x75d0
movq %rax, %r14
movl $0x178, %esi # imm = 0x178
movq %rbx, %rdi
callq 0x8eac
movq %r14, %rdi
callq 0x7930
|
_ZN5nglog8internal21CheckOpMessageBuilderC2EPKc:
push r15; Alternative name is 'nglog::internal::CheckOpMessageBuilder::CheckOpMessageBuilder(char const*)'
push r14
push rbx
mov r14, rsi
mov r15, rdi
mov edi, 178h; unsigned __int64
call _Znwm; operator new(ulong)
mov rbx, rax
mov rdi, rax
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void)
mov [r15], rbx
test r14, r14
jz short loc_E13C
mov rdi, r14
call _strlen
mov rdi, rbx
mov rsi, r14
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_E155
loc_E13C:
mov rax, [rbx]
mov rax, [rax-18h]
mov rdi, rbx
add rdi, rax
mov esi, [rbx+rax+20h]
or esi, 1
call __ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate; std::ios::clear(std::_Ios_Iostate)
loc_E155:
lea rsi, asc_22804; " ("
mov edx, 2
mov rdi, rbx
pop rbx
pop r14
pop r15
jmp __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
mov esi, 178h; unsigned __int64
mov rdi, rbx; void *
call _ZdlPvm; operator delete(void *,ulong)
mov rdi, r14
call __Unwind_Resume
|
long long nglog::internal::CheckOpMessageBuilder::CheckOpMessageBuilder(
nglog::internal::CheckOpMessageBuilder *this,
const char *a2)
{
_QWORD *v2; // rbx
long long v3; // rax
v2 = (_QWORD *)operator new(376LL);
std::ostringstream::basic_ostringstream(v2);
*(_QWORD *)this = v2;
if ( a2 )
{
v3 = strlen(a2);
std::__ostream_insert<char,std::char_traits<char>>(v2, a2, v3);
}
else
{
std::ios::clear((char *)v2 + *(_QWORD *)(*v2 - 24LL), *(_DWORD *)((char *)v2 + *(_QWORD *)(*v2 - 24LL) + 32) | 1u);
}
return std::__ostream_insert<char,std::char_traits<char>>(v2, " (", 2LL);
}
|
CheckOpMessageBuilder:
PUSH R15
PUSH R14
PUSH RBX
MOV R14,RSI
MOV R15,RDI
MOV EDI,0x178
CALL 0x00108e60
MOV RBX,RAX
LAB_0010e114:
MOV RDI,RAX
CALL 0x00107710
LAB_0010e11c:
MOV qword ptr [R15],RBX
TEST R14,R14
JZ 0x0010e13c
MOV RDI,R14
CALL 0x001071f0
MOV RDI,RBX
MOV RSI,R14
MOV RDX,RAX
CALL 0x001075d0
JMP 0x0010e155
LAB_0010e13c:
MOV RAX,qword ptr [RBX]
MOV RAX,qword ptr [RAX + -0x18]
MOV RDI,RBX
ADD RDI,RAX
MOV ESI,dword ptr [RBX + RAX*0x1 + 0x20]
OR ESI,0x1
CALL 0x001078f0
LAB_0010e155:
LEA RSI,[0x122804]
MOV EDX,0x2
MOV RDI,RBX
POP RBX
POP R14
POP R15
JMP 0x001075d0
|
/* nglog::internal::CheckOpMessageBuilder::CheckOpMessageBuilder(char const*) */
void __thiscall
nglog::internal::CheckOpMessageBuilder::CheckOpMessageBuilder
(CheckOpMessageBuilder *this,char *param_1)
{
ostringstream *this_00;
size_t sVar1;
this_00 = (ostringstream *)operator_new(0x178);
/* try { // try from 0010e114 to 0010e11b has its CatchHandler @ 0010e16e */
std::__cxx11::ostringstream::ostringstream(this_00);
*(ostringstream **)this = this_00;
if (param_1 == (char *)0x0) {
std::ios::clear(this_00 + *(long *)(*(long *)this_00 + -0x18),
*(uint *)(this_00 + *(long *)(*(long *)this_00 + -0x18) + 0x20) | 1);
}
else {
sVar1 = strlen(param_1);
std::__ostream_insert<char,std::char_traits<char>>((ostream *)this_00,param_1,sVar1);
}
std::__ostream_insert<char,std::char_traits<char>>((ostream *)this_00," (",2);
return;
}
|
|
64,521 |
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::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>)
|
monkey531[P]llama/common/json.hpp
|
void push_back(initializer_list_t init)
{
if (is_object() && init.size() == 2 && (*init.begin())->is_string())
{
basic_json&& key = init.begin()->moved_or_copied();
push_back(typename object_t::value_type(
std::move(key.get_ref<string_t&>()), (init.begin() + 1)->moved_or_copied()));
}
else
{
push_back(basic_json(init));
}
}
|
O0
|
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::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>):
subq $0xc8, %rsp
movq %rsi, 0xb8(%rsp)
movq %rdx, 0xc0(%rsp)
movq %rdi, 0xb0(%rsp)
movq 0xb0(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0xafad0
testb $0x1, %al
jne 0x1026ca
jmp 0x102808
leaq 0xb8(%rsp), %rdi
callq 0x15d2c0
cmpq $0x2, %rax
jne 0x102808
leaq 0xb8(%rsp), %rdi
callq 0x15c960
movq %rax, %rdi
callq 0x15d060
movq %rax, %rdi
callq 0xb60a0
testb $0x1, %al
jne 0x102707
jmp 0x102808
leaq 0xb8(%rsp), %rdi
callq 0x15c960
movq %rax, %rsi
leaq 0x98(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x15cb50
movq 0x8(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0xa8(%rsp), %rdi
callq 0x1936f0
movq %rax, 0x10(%rsp)
jmp 0x10274a
leaq 0xb8(%rsp), %rdi
callq 0x15c960
movq %rax, %rsi
addq $0x18, %rsi
leaq 0x48(%rsp), %rdi
callq 0x15cb50
jmp 0x10276a
movq 0x10(%rsp), %rsi
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0x193700
jmp 0x102780
movq 0x18(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x193540
jmp 0x102791
leaq 0x68(%rsp), %rdi
callq 0xb2980
leaq 0x48(%rsp), %rdi
callq 0xa0850
leaq 0x98(%rsp), %rdi
callq 0xa0850
jmp 0x10286e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
jmp 0x1027f9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
jmp 0x1027ef
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
leaq 0x68(%rsp), %rdi
callq 0xb2980
leaq 0x48(%rsp), %rdi
callq 0xa0850
leaq 0x98(%rsp), %rdi
callq 0xa0850
jmp 0x102876
movups 0xb8(%rsp), %xmm0
movaps %xmm0, 0x20(%rsp)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq 0x38(%rsp), %rdi
movq %rdi, (%rsp)
movl $0x1, %ecx
movl $0x2, %r8d
callq 0x104370
movq 0x18(%rsp), %rdi
movq (%rsp), %rsi
callq 0x193740
jmp 0x102848
leaq 0x38(%rsp), %rdi
callq 0xa0850
jmp 0x10286e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
leaq 0x38(%rsp), %rdi
callq 0xa0850
jmp 0x102876
addq $0xc8, %rsp
retq
movq 0x60(%rsp), %rdi
callq 0x5abf0
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backESt16initializer_listINS0_6detail8json_refISD_EEE:
sub rsp, 0C8h
mov qword ptr [rsp+0C8h+var_10], rsi; int
mov qword ptr [rsp+0C8h+var_10+8], rdx; int
mov qword ptr [rsp+0C8h+var_18], rdi; int
mov rdi, qword ptr [rsp+0C8h+var_18]
mov qword ptr [rsp+0C8h+var_B0], rdi; int
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; 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>::is_object(void)
test al, 1
jnz short loc_1026CA
jmp loc_102808
loc_1026CA:
lea rdi, [rsp+0C8h+var_10]
call _ZNKSt16initializer_listIN8nlohmann16json_abi_v3_11_36detail8json_refINS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEE4sizeEv; std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::size(void)
cmp rax, 2
jnz loc_102808
lea rdi, [rsp+0C8h+var_10]
call _ZNKSt16initializer_listIN8nlohmann16json_abi_v3_11_36detail8json_refINS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEE5beginEv; std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::begin(void)
mov rdi, rax
call _ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEptEv; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::operator->(void)
mov rdi, rax
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_stringEv; 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>::is_string(void)
test al, 1
jnz short loc_102707
jmp loc_102808
loc_102707:
lea rdi, [rsp+0C8h+var_10]
call _ZNKSt16initializer_listIN8nlohmann16json_abi_v3_11_36detail8json_refINS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEE5beginEv; std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::begin(void)
mov rsi, rax
lea rdi, [rsp+0C8h+var_30]
mov qword ptr [rsp+0C8h+var_C0], rdi; int
call _ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15moved_or_copiedEv; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::moved_or_copied(void)
mov rax, qword ptr [rsp+0C8h+var_C0]
mov [rsp+0C8h+var_20], rax
mov rdi, [rsp+0C8h+var_20]; void *
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE7get_refIRS9_TnNSt9enable_ifIXsr3std12is_referenceIT_EE5valueEiE4typeELi0EEESH_v
mov qword ptr [rsp+0C8h+var_B8], rax; int
jmp short $+2
loc_10274A:
lea rdi, [rsp+0C8h+var_10]
call _ZNKSt16initializer_listIN8nlohmann16json_abi_v3_11_36detail8json_refINS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEE5beginEv; std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::begin(void)
mov rsi, rax
add rsi, 18h
lea rdi, [rsp+0C8h+var_80]
call _ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15moved_or_copiedEv; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::moved_or_copied(void)
jmp short $+2
loc_10276A:
mov rsi, qword ptr [rsp+0C8h+var_B8]
lea rdi, [rsp+0C8h+var_60]
lea rdx, [rsp+0C8h+var_80]
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEEC2IS5_SF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_102780:
mov rdi, qword ptr [rsp+0C8h+var_B0]; int
lea rsi, [rsp+0C8h+var_60]; int
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backERKSt4pairIKS9_SD_E; 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>::push_back(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&)
jmp short $+2
loc_102791:
lea rdi, [rsp+0C8h+var_60]
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEED2Ev; 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>>::~pair()
lea rdi, [rsp+0C8h+var_80]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json()
lea rdi, [rsp+0C8h+var_30]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json()
jmp loc_10286E
mov rcx, rax
mov eax, edx
mov [rsp+arg_58], rcx
mov [rsp+arg_54], eax
jmp short loc_1027F9
mov rcx, rax
mov eax, edx
mov [rsp+arg_58], rcx
mov [rsp+arg_54], eax
jmp short loc_1027EF
mov rcx, rax
mov eax, edx
mov [rsp+arg_58], rcx
mov [rsp+arg_54], eax
lea rdi, [rsp+arg_60]
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEED2Ev; 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>>::~pair()
loc_1027EF:
lea rdi, [rsp+arg_40]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json()
loc_1027F9:
lea rdi, [rsp+arg_90]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json()
jmp short loc_102876
loc_102808:
movups xmm0, xmmword ptr [rsp+0C8h+var_10]
movaps xmmword ptr [rsp+0C8h+var_A8], xmm0; int
mov rsi, qword ptr [rsp+0C8h+var_A8]; int
mov rdx, qword ptr [rsp+0C8h+var_A8+8]; int
lea rdi, [rsp+0C8h+var_90]; int
mov [rsp+0C8h+var_C8], rdi; void *
mov ecx, 1; int
mov r8d, 2; int
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; 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>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)
mov rdi, qword ptr [rsp+0C8h+var_B0]; char
mov rsi, [rsp+0C8h+var_C8]; int
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backEOSD_; 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>::push_back(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>&&)
jmp short $+2
loc_102848:
lea rdi, [rsp+0C8h+var_90]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json()
jmp short loc_10286E
mov rcx, rax
mov eax, edx
mov [rsp+arg_58], rcx
mov [rsp+arg_54], eax
lea rdi, [rsp+arg_30]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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>::~basic_json()
jmp short loc_102876
loc_10286E:
add rsp, 0C8h
retn
loc_102876:
mov rdi, [rsp+arg_58]
call __Unwind_Resume
| ||||
64,522 |
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::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>)
|
monkey531[P]llama/common/json.hpp
|
void push_back(initializer_list_t init)
{
if (is_object() && init.size() == 2 && (*init.begin())->is_string())
{
basic_json&& key = init.begin()->moved_or_copied();
push_back(typename object_t::value_type(
std::move(key.get_ref<string_t&>()), (init.begin() + 1)->moved_or_copied()));
}
else
{
push_back(basic_json(init));
}
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::push_back(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>):
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rsi, %r14
movq %rdi, %rbx
cmpb $0x1, (%rdi)
sete %al
cmpq $0x2, %rdx
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x7e6bb
movq 0x10(%r14), %rax
testq %rax, %rax
cmoveq %r14, %rax
cmpb $0x3, (%rax)
jne 0x7e6bb
leaq 0x10(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0xa1140
movq %r15, %rdi
callq 0xb89d0
movq %rax, %r15
addq $0x18, %r14
movq %rsp, %rdi
movq %r14, %rsi
callq 0xa1140
leaq 0x20(%rsp), %r14
movq %rsp, %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0xb8610
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb851c
leaq 0x40(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x586c0
movq %rbx, %rdi
callq 0x5dbae
movq -0x20(%rbx), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x7e69f
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1a8d0
movq %rsp, %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x586c0
movq %rbx, %rdi
callq 0x5dbae
leaq 0x10(%rsp), %rbx
jmp 0x7e6e6
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movl $0x1, %ecx
movl $0x2, %r8d
callq 0x7ebb2
movq %rbx, %rdi
movq %r15, %rsi
callq 0xb8686
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x586c0
movq %rbx, %rdi
callq 0x5dbae
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x86f82
movq %rsp, %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x586c0
movq %r14, %rdi
callq 0x5dbae
jmp 0x7e72b
jmp 0x7e728
movq %rax, %rbx
leaq 0x10(%rsp), %r14
jmp 0x7e73a
movq %rax, %rbx
leaq 0x20(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x586c0
movq %r14, %rdi
callq 0x5dbae
movq %rbx, %rdi
callq 0x1afc0
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backESt16initializer_listINS0_6detail8json_refISD_EEE:
push r15
push r14
push rbx
sub rsp, 50h
mov r14, rsi
mov rbx, rdi
cmp byte ptr [rdi], 1
setz al
cmp rdx, 2
setz cl
and cl, al
cmp cl, 1
jnz loc_7E6BB
mov rax, [r14+10h]
test rax, rax
cmovz rax, r14
cmp byte ptr [rax], 3
jnz loc_7E6BB
lea r15, [rsp+68h+var_58]
mov rdi, r15
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15moved_or_copiedEv; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::moved_or_copied(void)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE12get_ref_implIRS9_SD_EET_RT0_; 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>::get_ref_impl<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>>(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 r15, rax
add r14, 18h
mov rdi, rsp
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15moved_or_copiedEv; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::moved_or_copied(void)
lea r14, [rsp+68h+var_48]
mov rdx, rsp
mov rdi, r14
mov rsi, r15
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEEC2IS5_SF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
mov rdi, rbx
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backERKSt4pairIKS9_SD_E; 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>::push_back(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&)
lea rbx, [rsp+68h+var_28]
mov rdi, rbx
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [rbx-20h]; void *
lea rax, [rsp+68h+var_38]
cmp rdi, rax
jz short loc_7E69F
mov rsi, [rsp+68h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_7E69F:
mov rbx, rsp
mov rdi, rbx
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
lea rbx, [rsp+68h+var_58]
jmp short loc_7E6E6
loc_7E6BB:
lea r15, [rsp+68h+var_48]
mov rdi, r15
mov rsi, r14
mov ecx, 1
mov r8d, 2
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; 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>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)
mov rdi, rbx
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backEOSD_; 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>::push_back(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>&&)
lea rbx, [rsp+68h+var_48]
loc_7E6E6:
mov rdi, rbx
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
add rsp, 50h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
lea rdi, [rsp+arg_18]
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEED2Ev; 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>>::~pair()
mov r14, rsp
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
jmp short loc_7E72B
jmp short $+2
loc_7E728:
mov rbx, rax
loc_7E72B:
lea r14, [rsp+arg_8]
jmp short loc_7E73A
mov rbx, rax
lea r14, [rsp+arg_18]
loc_7E73A:
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, rbx
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(
_BYTE *a1,
long long a2,
long long a3)
{
_BYTE *v3; // rax
long long v4; // r15
char *v5; // rbx
char v7[16]; // [rsp+0h] [rbp-68h] BYREF
_BYTE v8[16]; // [rsp+10h] [rbp-58h] BYREF
void *v9[2]; // [rsp+20h] [rbp-48h] BYREF
long long v10; // [rsp+30h] [rbp-38h] BYREF
char v11[40]; // [rsp+40h] [rbp-28h] BYREF
if ( *a1 != 1 || a3 != 2 )
goto LABEL_8;
v3 = *(_BYTE **)(a2 + 16);
if ( !v3 )
v3 = (_BYTE *)a2;
if ( *v3 == 3 )
{
nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::moved_or_copied(
v8,
a2);
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>::get_ref_impl<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>>(v8);
nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::moved_or_copied(
v7,
a2 + 24);
ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEEC2IS5_SF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
v9,
v4,
v7);
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(
a1,
v9);
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(v11);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v11);
if ( v9[0] != &v10 )
operator delete(v9[0], v10 + 1);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v7);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v7);
v5 = v8;
}
else
{
LABEL_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>::basic_json(
v9,
a2,
a3,
1LL,
2LL);
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(
a1,
v9);
v5 = (char *)v9;
}
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(v5);
return nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v5);
}
|
push_back:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x50
MOV R14,RSI
MOV RBX,RDI
CMP byte ptr [RDI],0x1
SETZ AL
CMP RDX,0x2
SETZ CL
AND CL,AL
CMP CL,0x1
JNZ 0x0017e6bb
MOV RAX,qword ptr [R14 + 0x10]
TEST RAX,RAX
CMOVZ RAX,R14
CMP byte ptr [RAX],0x3
JNZ 0x0017e6bb
LEA R15,[RSP + 0x10]
MOV RDI,R15
MOV RSI,R14
CALL 0x001a1140
LAB_0017e635:
MOV RDI,R15
CALL 0x001b89d0
MOV R15,RAX
ADD R14,0x18
LAB_0017e644:
MOV RDI,RSP
MOV RSI,R14
CALL 0x001a1140
LEA R14,[RSP + 0x20]
MOV RDX,RSP
MOV RDI,R14
MOV RSI,R15
CALL 0x001b8610
LAB_0017e662:
MOV RDI,RBX
MOV RSI,R14
CALL 0x001b851c
LAB_0017e66d:
LEA RBX,[RSP + 0x40]
MOV RDI,RBX
XOR ESI,ESI
CALL 0x001586c0
MOV RDI,RBX
CALL 0x0015dbae
MOV RDI,qword ptr [RBX + -0x20]
LEA RAX,[RSP + 0x30]
CMP RDI,RAX
JZ 0x0017e69f
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x0011a8d0
LAB_0017e69f:
MOV RBX,RSP
MOV RDI,RBX
XOR ESI,ESI
CALL 0x001586c0
MOV RDI,RBX
CALL 0x0015dbae
LEA RBX,[RSP + 0x10]
JMP 0x0017e6e6
LAB_0017e6bb:
LEA R15,[RSP + 0x20]
MOV RDI,R15
MOV RSI,R14
MOV ECX,0x1
MOV R8D,0x2
CALL 0x0017ebb2
LAB_0017e6d6:
MOV RDI,RBX
MOV RSI,R15
CALL 0x001b8686
LAB_0017e6e1:
LEA RBX,[RSP + 0x20]
LAB_0017e6e6:
MOV RDI,RBX
XOR ESI,ESI
CALL 0x001586c0
MOV RDI,RBX
CALL 0x0015dbae
ADD RSP,0x50
POP RBX
POP R14
POP R15
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>::push_back(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> > >) */
void nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::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>
*param_1,char *param_2,long param_3)
{
char *pcVar1;
string *psVar2;
data *this;
data adStack_68 [16];
basic_json local_58 [16];
long *local_48 [2];
long local_38 [2];
data local_28 [16];
if (param_3 == 2 &&
*param_1 ==
(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) {
pcVar1 = *(char **)(param_2 + 0x10);
if (*(char **)(param_2 + 0x10) == (char *)0x0) {
pcVar1 = param_2;
}
if (*pcVar1 == '\x03') {
detail::
json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::moved_or_copied();
/* try { // try from 0017e635 to 0017e63c has its CatchHandler @ 0017e728 */
psVar2 = get_ref_impl<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>>
(local_58);
/* try { // try from 0017e644 to 0017e64e has its CatchHandler @ 0017e726 */
detail::
json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::moved_or_copied();
_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEEC2IS5_SF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_48,psVar2,adStack_68);
/* try { // try from 0017e662 to 0017e66c has its CatchHandler @ 0017e702 */
push_back(param_1,(pair *)local_48);
assert_invariant(SUB81(local_28,0));
data::~data(local_28);
if (local_48[0] != local_38) {
operator_delete(local_48[0],local_38[0] + 1);
}
assert_invariant(SUB81(adStack_68,0));
data::~data(adStack_68);
this = (data *)local_58;
goto LAB_0017e6e6;
}
}
basic_json((basic_json *)local_48,param_2,param_3,1,2);
/* try { // try from 0017e6d6 to 0017e6e0 has its CatchHandler @ 0017e732 */
push_back(param_1,(basic_json *)local_48);
this = (data *)local_48;
LAB_0017e6e6:
assert_invariant(SUB81(this,0));
data::~data(this);
return;
}
|
|
64,523 |
mysql_close_slow_part
|
eloqsql/libmariadb/libmariadb/mariadb_lib.c
|
void mysql_close_slow_part(MYSQL *mysql)
{
if (mysql->net.pvio)
{
free_old_query(mysql);
mysql->status=MYSQL_STATUS_READY; /* Force command */
mysql->options.reconnect=0;
if (mysql->net.pvio && mysql->net.buff)
ma_simple_command(mysql, COM_QUIT,NullS,0,1,0);
end_server(mysql);
}
/* there is an ongoing async operation */
else if (mysql->options.extension && mysql->options.extension->async_context)
{
if (mysql->options.extension->async_context->pending_gai_res)
{
freeaddrinfo(mysql->options.extension->async_context->pending_gai_res);
mysql->options.extension->async_context->pending_gai_res = 0;
}
if (mysql->options.extension->async_context->pvio)
{
ma_pvio_close(mysql->options.extension->async_context->pvio);
mysql->options.extension->async_context->pvio = 0;
}
}
}
|
O3
|
c
|
mysql_close_slow_part:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, (%rdi)
je 0x1d421
movq %rbx, %rdi
callq 0x1d48a
movl $0x0, 0x488(%rbx)
movb $0x0, 0x43b(%rbx)
cmpq $0x0, (%rbx)
je 0x1d413
cmpq $0x0, 0x8(%rbx)
je 0x1d413
movq 0x4d0(%rbx), %rax
movq %rbx, %rdi
movl $0x1, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
callq *0x10(%rax)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x1879a
movq 0x480(%rbx), %rax
testq %rax, %rax
je 0x1d483
movq 0x28(%rax), %rax
testq %rax, %rax
je 0x1d483
movq 0x30(%rax), %rdi
testq %rdi, %rdi
je 0x1d462
callq 0x135e0
movq 0x480(%rbx), %rax
movq 0x28(%rax), %rax
movq $0x0, 0x30(%rax)
movq 0x480(%rbx), %rax
movq 0x28(%rax), %rax
movq 0x18(%rax), %rdi
testq %rdi, %rdi
je 0x1d483
callq 0x20687
movq 0x480(%rbx), %rax
movq 0x28(%rax), %rax
movq $0x0, 0x18(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
|
mysql_close_slow_part:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
cmp qword ptr [rdi], 0
jz short loc_1D421
mov rdi, rbx
call free_old_query
mov dword ptr [rbx+488h], 0
mov byte ptr [rbx+43Bh], 0
cmp qword ptr [rbx], 0
jz short loc_1D413
cmp qword ptr [rbx+8], 0
jz short loc_1D413
mov rax, [rbx+4D0h]
mov rdi, rbx
mov esi, 1
xor edx, edx
xor ecx, ecx
mov r8d, 1
xor r9d, r9d
call qword ptr [rax+10h]
loc_1D413:
mov rdi, rbx
add rsp, 8
pop rbx
pop rbp
jmp end_server
loc_1D421:
mov rax, [rbx+480h]
test rax, rax
jz short loc_1D483
mov rax, [rax+28h]
test rax, rax
jz short loc_1D483
mov rdi, [rax+30h]
test rdi, rdi
jz short loc_1D462
call _freeaddrinfo
mov rax, [rbx+480h]
mov rax, [rax+28h]
mov qword ptr [rax+30h], 0
mov rax, [rbx+480h]
mov rax, [rax+28h]
loc_1D462:
mov rdi, [rax+18h]
test rdi, rdi
jz short loc_1D483
call ma_pvio_close
mov rax, [rbx+480h]
mov rax, [rax+28h]
mov qword ptr [rax+18h], 0
loc_1D483:
add rsp, 8
pop rbx
pop rbp
retn
|
_QWORD * mysql_close_slow_part(long long a1)
{
long long v1; // rax
_QWORD *result; // rax
long long v4; // rdi
long long v5; // rdi
long long v6; // [rsp-8h] [rbp-10h]
v6 = v1;
if ( *(_QWORD *)a1 )
{
free_old_query(a1);
*(_DWORD *)(a1 + 1160) = 0;
*(_BYTE *)(a1 + 1083) = 0;
if ( *(_QWORD *)a1 )
{
if ( *(_QWORD *)(a1 + 8) )
(*(void ( **)(long long, long long, _QWORD, _QWORD, long long, _QWORD, long long))(*(_QWORD *)(a1 + 1232)
+ 16LL))(
a1,
1LL,
0LL,
0LL,
1LL,
0LL,
v6);
}
return (_QWORD *)end_server((long long *)a1);
}
else
{
result = *(_QWORD **)(a1 + 1152);
if ( result )
{
result = (_QWORD *)result[5];
if ( result )
{
v4 = result[6];
if ( v4 )
{
freeaddrinfo(v4);
*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 40LL) + 48LL) = 0LL;
result = *(_QWORD **)(*(_QWORD *)(a1 + 1152) + 40LL);
}
v5 = result[3];
if ( v5 )
{
ma_pvio_close(v5);
result = *(_QWORD **)(*(_QWORD *)(a1 + 1152) + 40LL);
result[3] = 0LL;
}
}
}
}
return result;
}
|
mysql_close_slow_part:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
CMP qword ptr [RDI],0x0
JZ 0x0011d421
MOV RDI,RBX
CALL 0x0011d48a
MOV dword ptr [RBX + 0x488],0x0
MOV byte ptr [RBX + 0x43b],0x0
CMP qword ptr [RBX],0x0
JZ 0x0011d413
CMP qword ptr [RBX + 0x8],0x0
JZ 0x0011d413
MOV RAX,qword ptr [RBX + 0x4d0]
MOV RDI,RBX
MOV ESI,0x1
XOR EDX,EDX
XOR ECX,ECX
MOV R8D,0x1
XOR R9D,R9D
CALL qword ptr [RAX + 0x10]
LAB_0011d413:
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x0011879a
LAB_0011d421:
MOV RAX,qword ptr [RBX + 0x480]
TEST RAX,RAX
JZ 0x0011d483
MOV RAX,qword ptr [RAX + 0x28]
TEST RAX,RAX
JZ 0x0011d483
MOV RDI,qword ptr [RAX + 0x30]
TEST RDI,RDI
JZ 0x0011d462
CALL 0x001135e0
MOV RAX,qword ptr [RBX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RAX + 0x30],0x0
MOV RAX,qword ptr [RBX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
LAB_0011d462:
MOV RDI,qword ptr [RAX + 0x18]
TEST RDI,RDI
JZ 0x0011d483
CALL 0x00120687
MOV RAX,qword ptr [RBX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RAX + 0x18],0x0
LAB_0011d483:
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void mysql_close_slow_part(long *param_1)
{
long lVar1;
if (*param_1 != 0) {
free_old_query(param_1);
*(int4 *)(param_1 + 0x91) = 0;
*(int1 *)((long)param_1 + 0x43b) = 0;
if ((*param_1 != 0) && (param_1[1] != 0)) {
(**(code **)(param_1[0x9a] + 0x10))(param_1,1,0,0,1,0);
}
end_server(param_1);
return;
}
if ((param_1[0x90] != 0) && (lVar1 = *(long *)(param_1[0x90] + 0x28), lVar1 != 0)) {
if (*(addrinfo **)(lVar1 + 0x30) != (addrinfo *)0x0) {
freeaddrinfo(*(addrinfo **)(lVar1 + 0x30));
*(int8 *)(*(long *)(param_1[0x90] + 0x28) + 0x30) = 0;
lVar1 = *(long *)(param_1[0x90] + 0x28);
}
if (*(long *)(lVar1 + 0x18) != 0) {
ma_pvio_close();
*(int8 *)(*(long *)(param_1[0x90] + 0x28) + 0x18) = 0;
}
}
return;
}
|
|
64,524 |
void testing::internal::InitGoogleTestImpl<wchar_t>(int*, wchar_t**)
|
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest.cc
|
void InitGoogleTestImpl(int* argc, CharType** argv) {
// We don't want to run the initialization code twice.
if (GTestIsInitialized()) return;
if (*argc <= 0) return;
g_argvs.clear();
for (int i = 0; i != *argc; i++) {
g_argvs.push_back(StreamableToString(argv[i]));
}
#ifdef GTEST_HAS_ABSL
absl::InitializeSymbolizer(g_argvs[0].c_str());
#ifdef GTEST_HAS_ABSL_FLAGS
// When using the Abseil Flags library, set the program usage message to the
// help message, but remove the color-encoding from the message first.
absl::SetProgramUsageMessage(absl::StrReplaceAll(
kColorEncodedHelpMessage,
{{"@D", ""}, {"@R", ""}, {"@G", ""}, {"@Y", ""}, {"@@", "@"}}));
#endif // GTEST_HAS_ABSL_FLAGS
#endif // GTEST_HAS_ABSL
ParseGoogleTestFlagsOnly(argc, argv);
GetUnitTestImpl()->PostFlagParsingInit();
}
|
O0
|
cpp
|
void testing::internal::InitGoogleTestImpl<wchar_t>(int*, wchar_t**):
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
callq 0xdaf40
testb $0x1, %al
jne 0xec159
jmp 0xec15e
jmp 0xec20b
movq 0x50(%rsp), %rax
cmpl $0x0, (%rax)
jg 0xec16d
jmp 0xec20b
leaq 0x8caac(%rip), %rdi # 0x178c20
callq 0x10b190
movl $0x0, 0x44(%rsp)
movl 0x44(%rsp), %eax
movq 0x50(%rsp), %rcx
cmpl (%rcx), %eax
je 0xec1ef
movq 0x48(%rsp), %rax
movslq 0x44(%rsp), %rcx
leaq (%rax,%rcx,8), %rsi
leaq 0x20(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x10b100
movq 0x8(%rsp), %rsi
leaq 0x8ca69(%rip), %rdi # 0x178c20
callq 0xe5450
jmp 0xec1be
leaq 0x20(%rsp), %rdi
callq 0x1aac0
movl 0x44(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x44(%rsp)
jmp 0xec181
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x1aac0
jmp 0xec210
movq 0x50(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0xdc1b0
callq 0xe2720
movq %rax, %rdi
callq 0xdaad0
addq $0x58, %rsp
retq
movq 0x18(%rsp), %rdi
callq 0x14c80
nopw (%rax,%rax)
|
_ZN7testing8internal18InitGoogleTestImplIwEEvPiPPT_:
sub rsp, 58h
mov [rsp+58h+var_8], rdi
mov [rsp+58h+var_10], rsi
call _ZN7testing8internalL18GTestIsInitializedEv; testing::internal::GTestIsInitialized(void)
test al, 1
jnz short loc_EC159
jmp short loc_EC15E
loc_EC159:
jmp loc_EC20B
loc_EC15E:
mov rax, [rsp+58h+var_8]
cmp dword ptr [rax], 0
jg short loc_EC16D
jmp loc_EC20B
loc_EC16D:
lea rdi, _ZN7testing8internalL7g_argvsB5cxx11E; testing::internal::g_argvs
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5clearEv; std::vector<std::string>::clear(void)
mov [rsp+58h+var_14], 0
loc_EC181:
mov eax, [rsp+58h+var_14]
mov rcx, [rsp+58h+var_8]
cmp eax, [rcx]
jz short loc_EC1EF
mov rax, [rsp+58h+var_10]
movsxd rcx, [rsp+58h+var_14]
lea rsi, [rax+rcx*8]
lea rdi, [rsp+58h+var_38]
mov [rsp+58h+var_50], rdi
call _ZN7testing8internal18StreamableToStringIPwEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_; testing::internal::StreamableToString<wchar_t *>(wchar_t * const&)
mov rsi, [rsp+58h+var_50]
lea rdi, _ZN7testing8internalL7g_argvsB5cxx11E; testing::internal::g_argvs
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_; std::vector<std::string>::push_back(std::string&&)
jmp short $+2
loc_EC1BE:
lea rdi, [rsp+58h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov eax, [rsp+58h+var_14]
add eax, 1
mov [rsp+58h+var_14], eax
jmp short loc_EC181
mov rcx, rax
mov eax, edx
mov [rsp+arg_10], rcx
mov [rsp+arg_C], eax
lea rdi, [rsp+arg_18]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_EC210
loc_EC1EF:
mov rdi, [rsp+58h+var_8]; this
mov rsi, [rsp+58h+var_10]
call _ZN7testing8internal24ParseGoogleTestFlagsOnlyEPiPPw; testing::internal::ParseGoogleTestFlagsOnly(int *,wchar_t **)
call _ZN7testing8internal15GetUnitTestImplEv; testing::internal::GetUnitTestImpl(void)
mov rdi, rax; this
call _ZN7testing8internal12UnitTestImpl19PostFlagParsingInitEv; testing::internal::UnitTestImpl::PostFlagParsingInit(void)
loc_EC20B:
add rsp, 58h
retn
loc_EC210:
mov rdi, [rsp+arg_10]
call __Unwind_Resume
|
void testing::internal::InitGoogleTestImpl<wchar_t>(testing::internal *a1, long long a2)
{
int v2; // edx
int v3; // r8d
int v4; // r9d
testing::internal *v5; // rdi
testing::internal::UnitTestImpl *UnitTestImpl; // rax
int v7; // [rsp+0h] [rbp-58h]
long long v8; // [rsp+8h] [rbp-50h]
int v9; // [rsp+10h] [rbp-48h]
int v10; // [rsp+18h] [rbp-40h]
long long v11; // [rsp+20h] [rbp-38h] BYREF
char v12; // [rsp+28h] [rbp-30h]
int i; // [rsp+44h] [rbp-14h]
long long v14; // [rsp+48h] [rbp-10h]
testing::internal *v15; // [rsp+50h] [rbp-8h]
v15 = a1;
v14 = a2;
if ( (testing::internal::GTestIsInitialized(a1) & 1) == 0 && *(int *)v15 > 0 )
{
std::vector<std::string>::clear(&testing::internal::g_argvs[abi:cxx11]);
for ( i = 0; i != *(_DWORD *)v15; ++i )
{
testing::internal::StreamableToString<wchar_t *>(
(unsigned int)&v11,
v14 + 8 * i,
v2,
i,
v3,
v4,
v7,
(unsigned int)&v11,
v9,
v10,
v11,
v12);
std::vector<std::string>::push_back((long long)&testing::internal::g_argvs[abi:cxx11], v8);
std::string::~string(&v11);
}
v5 = v15;
testing::internal::ParseGoogleTestFlagsOnly(v15, v14);
UnitTestImpl = (testing::internal::UnitTestImpl *)testing::internal::GetUnitTestImpl(v5);
testing::internal::UnitTestImpl::PostFlagParsingInit(UnitTestImpl);
}
}
|
InitGoogleTestImpl<wchar_t>:
SUB RSP,0x58
MOV qword ptr [RSP + 0x50],RDI
MOV qword ptr [RSP + 0x48],RSI
CALL 0x001daf40
TEST AL,0x1
JNZ 0x001ec159
JMP 0x001ec15e
LAB_001ec159:
JMP 0x001ec20b
LAB_001ec15e:
MOV RAX,qword ptr [RSP + 0x50]
CMP dword ptr [RAX],0x0
JG 0x001ec16d
JMP 0x001ec20b
LAB_001ec16d:
LEA RDI,[0x278c20]
CALL 0x0020b190
MOV dword ptr [RSP + 0x44],0x0
LAB_001ec181:
MOV EAX,dword ptr [RSP + 0x44]
MOV RCX,qword ptr [RSP + 0x50]
CMP EAX,dword ptr [RCX]
JZ 0x001ec1ef
MOV RAX,qword ptr [RSP + 0x48]
MOVSXD RCX,dword ptr [RSP + 0x44]
LEA RSI,[RAX + RCX*0x8]
LEA RDI,[RSP + 0x20]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x0020b100
MOV RSI,qword ptr [RSP + 0x8]
LAB_001ec1b0:
LEA RDI,[0x278c20]
CALL 0x001e5450
LAB_001ec1bc:
JMP 0x001ec1be
LAB_001ec1be:
LEA RDI,[RSP + 0x20]
CALL 0x0011aac0
MOV EAX,dword ptr [RSP + 0x44]
ADD EAX,0x1
MOV dword ptr [RSP + 0x44],EAX
JMP 0x001ec181
LAB_001ec1ef:
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x48]
CALL 0x001dc1b0
CALL 0x001e2720
MOV RDI,RAX
CALL 0x001daad0
LAB_001ec20b:
ADD RSP,0x58
RET
|
/* void testing::internal::InitGoogleTestImpl<wchar_t>(int*, wchar_t**) */
void testing::internal::InitGoogleTestImpl<wchar_t>(int *param_1,wchar_t **param_2)
{
ulong uVar1;
UnitTestImpl *this;
internal local_38 [36];
int local_14;
wchar_t **local_10;
int *local_8;
local_10 = param_2;
local_8 = param_1;
uVar1 = GTestIsInitialized();
if (((uVar1 & 1) == 0) && (0 < *local_8)) {
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::clear
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)
g_argvs_abi_cxx11_);
for (local_14 = 0; local_14 != *local_8; local_14 = local_14 + 1) {
StreamableToString<wchar_t*>(local_38,local_10 + local_14);
/* try { // try from 001ec1b0 to 001ec1bb has its CatchHandler @ 001ec1d5 */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::push_back
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)
g_argvs_abi_cxx11_,(string *)local_38);
std::__cxx11::string::~string((string *)local_38);
}
ParseGoogleTestFlagsOnly(local_8,local_10);
this = (UnitTestImpl *)GetUnitTestImpl();
UnitTestImpl::PostFlagParsingInit(this);
}
return;
}
|
|
64,525 |
int ggml::cpu::aarch64::repack<block_q4_0, 8l, 8l>(ggml_tensor*, void const*, unsigned long)
|
ngxson[P]ggml-easy/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp
|
static int repack_q4_0_to_q4_0_8_bl(struct ggml_tensor * t, int interleave_block, const void * GGML_RESTRICT data, size_t data_size) {
GGML_ASSERT(t->type == GGML_TYPE_Q4_0);
GGML_ASSERT(interleave_block == 8);
constexpr int nrows_interleaved = 8;
block_q4_0x8 * dst = (block_q4_0x8*)t->data;
const block_q4_0 * src = (const block_q4_0*) data;
block_q4_0 dst_tmp[8];
int nrow = ggml_nrows(t);
int nblocks = t->ne[0] / QK4_0;
GGML_ASSERT(data_size == nrow * nblocks * sizeof(block_q4_0));
if (t->ne[1] % nrows_interleaved != 0 || t->ne[0] % 8 != 0) {
return -1;
}
for (int b = 0; b < nrow; b += nrows_interleaved) {
for (int64_t x = 0; x < nblocks; x++) {
for (int i = 0; i < nrows_interleaved; i++ ) {
dst_tmp[i] = src[x + i * nblocks];
}
*dst++ = make_block_q4_0x8(dst_tmp, interleave_block);
}
src += nrows_interleaved * nblocks;
}
return 0;
GGML_UNUSED(data_size);
}
|
O3
|
cpp
|
int ggml::cpu::aarch64::repack<block_q4_0, 8l, 8l>(ggml_tensor*, void const*, unsigned long):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x168, %rsp # imm = 0x168
cmpl $0x2, (%rdi)
jne 0x12d8d
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %rbx
movq 0xf8(%rdi), %r12
callq 0xaa40
movq 0x10(%rbx), %rdx
leaq 0x1f(%rdx), %rcx
testq %rdx, %rdx
cmovnsq %rdx, %rcx
sarq $0x5, %rcx
movq %rax, (%rsp)
imull %ecx, %eax
cltq
addq %rax, %rax
leaq (%rax,%rax,8), %rax
cmpq %r13, %rax
jne 0x12da9
orl 0x18(%rbx), %edx
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
testb $0x7, %dl
jne 0x12d78
cmpl $0x0, (%rsp)
jle 0x12d76
movslq %ecx, %r13
leal (,%rcx,8), %eax
cltq
addq %rax, %rax
leaq (%rax,%rax,8), %rax
movq %rax, 0x8(%rsp)
leaq (,%r13,2), %rax
leaq (%rax,%rax,8), %rbp
xorl %ecx, %ecx
leaq 0x20(%rsp), %rax
vpbroadcastq %rax, %ymm0
vmovdqu %ymm0, 0xb0(%rsp)
movq %rcx, 0x10(%rsp)
testq %r13, %r13
movq %r14, 0x18(%rsp)
jle 0x12d55
movq %r14, %rbx
xorl %r14d, %r14d
movq %rbx, %rax
xorl %ecx, %ecx
movzwl 0x10(%rax), %edx
movw %dx, 0x30(%rsp,%rcx)
vmovdqu (%rax), %xmm0
vmovdqu %xmm0, 0x20(%rsp,%rcx)
addq $0x12, %rcx
addq %rbp, %rax
cmpq $0x90, %rcx
jne 0x12c30
vmovdqa 0x20(%rsp), %xmm0
vpinsrw $0x1, 0x32(%rsp), %xmm0, %xmm0
vpinsrw $0x2, 0x44(%rsp), %xmm0, %xmm0
vpinsrw $0x3, 0x56(%rsp), %xmm0, %xmm0
vpinsrw $0x4, 0x68(%rsp), %xmm0, %xmm0
vpinsrw $0x5, 0x7a(%rsp), %xmm0, %xmm0
vpinsrw $0x6, 0x8c(%rsp), %xmm0, %xmm0
vpinsrw $0x7, 0x9e(%rsp), %xmm0, %xmm0
vmovdqa %xmm0, 0xd0(%rsp)
movl $0x2, %eax
vpmovsxbq 0x353dd(%rip), %ymm0 # 0x48084
vpbroadcastq 0x362b0(%rip), %ymm3 # 0x48f60
vpbroadcastq 0x36297(%rip), %ymm4 # 0x48f50
vpbroadcastq 0x36286(%rip), %ymm5 # 0x48f48
vmovdqu 0xb0(%rsp), %ymm6
vpbroadcastq 0x36284(%rip), %ymm7 # 0x48f58
vpbroadcastq 0x357e3(%rip), %ymm8 # 0x484c0
vpand %ymm3, %ymm0, %ymm1
vpmuldq %ymm5, %ymm1, %ymm1
vpand %ymm4, %ymm0, %ymm2
vpaddq %ymm2, %ymm6, %ymm2
vpaddq %ymm1, %ymm2, %ymm1
kxnorw %k0, %k0, %k1
vpxor %xmm2, %xmm2, %xmm2
vpgatherqq 0x2(,%ymm1), %ymm2 {%k1}
vpxor %ymm7, %ymm2, %ymm1
vmovdqu %ymm1, 0xd0(%rsp,%rax,8)
vpaddq %ymm0, %ymm8, %ymm0
addq $0x4, %rax
cmpq $0x12, %rax
jne 0x12cdd
leaq 0x90(%r12), %r15
movl $0x90, %edx
movq %r12, %rdi
leaq 0xd0(%rsp), %rsi
vzeroupper
callq 0xa700
incq %r14
addq $0x12, %rbx
movq %r15, %r12
cmpq %r13, %r14
jne 0x12c2b
jmp 0x12d58
movq %r12, %r15
movq 0x10(%rsp), %rcx
addl $0x8, %ecx
movq 0x18(%rsp), %r14
addq 0x8(%rsp), %r14
movq %r15, %r12
cmpl (%rsp), %ecx
jl 0x12c12
xorl %eax, %eax
addq $0x168, %rsp # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
vzeroupper
retq
leaq 0x364f5(%rip), %rdi # 0x49289
leaq 0x357cf(%rip), %rdx # 0x4856a
leaq 0x36549(%rip), %rcx # 0x492eb
movl $0x13fd, %esi # imm = 0x13FD
jmp 0x12dc3
leaq 0x364d9(%rip), %rdi # 0x49289
leaq 0x357b3(%rip), %rdx # 0x4856a
leaq 0x36576(%rip), %rcx # 0x49334
movl $0x1407, %esi # imm = 0x1407
xorl %eax, %eax
callq 0xaf40
|
_ZN4ggml3cpu7aarch646repackI10block_q4_0Ll8ELl8EEEiP11ggml_tensorPKvm:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 168h
cmp dword ptr [rdi], 2
jnz loc_12D8D
mov r13, rdx
mov r14, rsi
mov rbx, rdi
mov r12, [rdi+0F8h]
call _ggml_nrows
mov rdx, [rbx+10h]
lea rcx, [rdx+1Fh]
test rdx, rdx
cmovns rcx, rdx
sar rcx, 5
mov [rsp+198h+var_198], rax
imul eax, ecx
cdqe
add rax, rax
lea rax, [rax+rax*8]
cmp rax, r13
jnz loc_12DA9
or edx, [rbx+18h]
mov eax, 0FFFFFFFFh
test dl, 7
jnz loc_12D78
cmp dword ptr [rsp+198h+var_198], 0
jle loc_12D76
movsxd r13, ecx
lea eax, ds:0[rcx*8]
cdqe
add rax, rax
lea rax, [rax+rax*8]
mov [rsp+198h+var_190], rax
lea rax, ds:0[r13*2]
lea rbp, [rax+rax*8]
xor ecx, ecx
lea rax, [rsp+198h+var_178]
vpbroadcastq ymm0, rax
vmovdqu [rsp+198h+var_E8], ymm0
loc_12C12:
mov [rsp+198h+var_188], rcx
test r13, r13
mov [rsp+198h+var_180], r14
jle loc_12D55
mov rbx, r14
xor r14d, r14d
loc_12C2B:
mov rax, rbx
xor ecx, ecx
loc_12C30:
movzx edx, word ptr [rax+10h]
mov [rsp+rcx+198h+var_168], dx
vmovdqu xmm0, xmmword ptr [rax]
vmovdqu [rsp+rcx+198h+var_178], xmm0
add rcx, 12h
add rax, rbp
cmp rcx, 90h
jnz short loc_12C30
vmovdqa xmm0, [rsp+198h+var_178]
vpinsrw xmm0, xmm0, [rsp+198h+var_166], 1
vpinsrw xmm0, xmm0, [rsp+198h+var_154], 2
vpinsrw xmm0, xmm0, [rsp+198h+var_142], 3
vpinsrw xmm0, xmm0, [rsp+198h+var_130], 4
vpinsrw xmm0, xmm0, [rsp+198h+var_11E], 5
vpinsrw xmm0, xmm0, [rsp+198h+var_10C], 6
vpinsrw xmm0, xmm0, [rsp+198h+var_FA], 7
vmovdqa xmmword ptr [rsp+198h+var_C8], xmm0
mov eax, 2
vpmovsxbq ymm0, cs:dword_48084
vpbroadcastq ymm3, cs:qword_48F60
vpbroadcastq ymm4, cs:qword_48F50
vpbroadcastq ymm5, cs:qword_48F48
vmovdqu ymm6, [rsp+198h+var_E8]
vpbroadcastq ymm7, cs:qword_48F58
vpbroadcastq ymm8, cs:qword_484C0
loc_12CDD:
vpand ymm1, ymm0, ymm3
vpmuldq ymm1, ymm1, ymm5
vpand ymm2, ymm0, ymm4
vpaddq ymm2, ymm6, ymm2
vpaddq ymm1, ymm2, ymm1
kxnorw k1, k0, k0
vpxor xmm2, xmm2, xmm2
vpgatherqq ymm2{k1}, ymmword ptr ds:dword_0+2[ymm1]
vpxor ymm1, ymm2, ymm7
vmovdqu [rsp+rax*8+198h+var_C8], ymm1
vpaddq ymm0, ymm8, ymm0
add rax, 4
cmp rax, 12h
jnz short loc_12CDD
lea r15, [r12+90h]
mov edx, 90h
mov rdi, r12
lea rsi, [rsp+198h+var_C8]
vzeroupper
call _memcpy
inc r14
add rbx, 12h
mov r12, r15
cmp r14, r13
jnz loc_12C2B
jmp short loc_12D58
loc_12D55:
mov r15, r12
loc_12D58:
mov rcx, [rsp+198h+var_188]
add ecx, 8
mov r14, [rsp+198h+var_180]
add r14, [rsp+198h+var_190]
mov r12, r15
cmp ecx, dword ptr [rsp+198h+var_198]
jl loc_12C12
loc_12D76:
xor eax, eax
loc_12D78:
add rsp, 168h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
vzeroupper
retn
loc_12D8D:
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTTypeGgmlTypeQ; "t->type == GGML_TYPE_Q4_0"
mov esi, 13FDh
jmp short loc_12DC3
loc_12DA9:
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aDataSizeNrowNb; "data_size == nrow * nblocks * sizeof(bl"...
mov esi, 1407h
loc_12DC3:
xor eax, eax
call _ggml_abort
|
long long ggml::cpu::aarch64::repack<block_q4_0,8l,8l>(
long long a1,
long long a2,
long long a3,
double a4,
double a5,
__m128 _XMM2)
{
long long v8; // r12
int v9; // eax
long long v10; // rdx
long long v11; // rcx
long long v12; // rcx
long long result; // rax
long long v14; // r13
long long v15; // rbp
int v16; // ecx
long long v19; // rbx
long long i; // r14
long long v47; // r15
int v48; // [rsp+0h] [rbp-198h]
long long v49; // [rsp+8h] [rbp-190h]
int v50; // [rsp+10h] [rbp-188h]
long long v51; // [rsp+18h] [rbp-180h]
_WORD v52[9]; // [rsp+20h] [rbp-178h] BYREF
__m256 v54; // [rsp+D0h] [rbp-C8h] BYREF
if ( *(_DWORD *)a1 != 2 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp",
5117LL,
"GGML_ASSERT(%s) failed",
"t->type == GGML_TYPE_Q4_0");
return ggml::cpu::aarch64::repack<block_q4_K,8l,8l>();
}
v8 = *(_QWORD *)(a1 + 248);
v9 = ggml_nrows(a1);
v10 = *(_QWORD *)(a1 + 16);
v11 = v10 + 31;
if ( v10 >= 0 )
v11 = *(_QWORD *)(a1 + 16);
v12 = v11 >> 5;
v48 = v9;
if ( 18LL * (int)v12 * v9 != a3 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp",
5127LL,
"GGML_ASSERT(%s) failed",
"data_size == nrow * nblocks * sizeof(block_q4_0)");
return ggml::cpu::aarch64::repack<block_q4_K,8l,8l>();
}
result = 0xFFFFFFFFLL;
if ( ((*(_BYTE *)(a1 + 24) | (unsigned __int8)v10) & 7) == 0 )
{
if ( v48 > 0 )
{
v14 = (int)v12;
v49 = 144LL * (_DWORD)v12;
v15 = 18LL * (int)v12;
v16 = 0;
_RAX = v52;
__asm
{
vpbroadcastq ymm0, rax
vmovdqu [rsp+198h+var_E8], ymm0
}
do
{
v50 = v16;
v51 = a2;
if ( v14 <= 0 )
{
v47 = v8;
}
else
{
v19 = a2;
for ( i = 0LL; i != v14; ++i )
{
_RAX = v19;
for ( _RCX = 0LL; _RCX != 72; _RCX += 9LL )
{
v52[_RCX + 8] = *(_WORD *)(_RAX + 16);
__asm
{
vmovdqu xmm0, xmmword ptr [rax]
vmovdqu [rsp+rcx+198h+var_178], xmm0
}
_RAX += v15;
}
__asm
{
vmovdqa xmm0, [rsp+198h+var_178]
vpinsrw xmm0, xmm0, [rsp+198h+var_166], 1
vpinsrw xmm0, xmm0, [rsp+198h+var_154], 2
vpinsrw xmm0, xmm0, [rsp+198h+var_142], 3
vpinsrw xmm0, xmm0, [rsp+198h+var_130], 4
vpinsrw xmm0, xmm0, [rsp+198h+var_11E], 5
vpinsrw xmm0, xmm0, [rsp+198h+var_10C], 6
vpinsrw xmm0, xmm0, [rsp+198h+var_FA], 7
vmovdqa xmmword ptr [rsp+198h+var_C8], xmm0
}
_RAX = 2LL;
__asm
{
vpmovsxbq ymm0, cs:dword_48084
vpbroadcastq ymm3, cs:qword_48F60
vpbroadcastq ymm4, cs:qword_48F50
vpbroadcastq ymm5, cs:qword_48F48
vmovdqu ymm6, [rsp+198h+var_E8]
vpbroadcastq ymm7, cs:qword_48F58
vpbroadcastq ymm8, cs:qword_484C0
}
do
{
__asm
{
vpand ymm1, ymm0, ymm3
vpmuldq ymm1, ymm1, ymm5
vpand ymm2, ymm0, ymm4
vpaddq ymm2, ymm6, ymm2
vpaddq ymm1, ymm2, ymm1
kxnorw k1, k0, k0
vpxor xmm2, xmm2, xmm2
vpgatherqq ymm2{k1}, ymmword ptr ds:dword_0+2[ymm1]
vpxor ymm1, ymm2, ymm7
vmovdqu [rsp+rax*8+198h+var_C8], ymm1
vpaddq ymm0, ymm8, ymm0
}
_RAX += 4LL;
}
while ( _RAX != 18 );
v47 = v8 + 144;
__asm { vzeroupper }
memcpy(v8, &v54, 144LL);
v19 += 18LL;
v8 += 144LL;
}
}
v16 = v50 + 8;
a2 = v49 + v51;
v8 = v47;
}
while ( v50 + 8 < v48 );
}
result = 0LL;
}
__asm { vzeroupper }
return result;
}
|
repack<block_q4_0,8l,8l>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x168
CMP dword ptr [RDI],0x2
JNZ 0x00112d8d
MOV R13,RDX
MOV R14,RSI
MOV RBX,RDI
MOV R12,qword ptr [RDI + 0xf8]
CALL 0x0010aa40
MOV RDX,qword ptr [RBX + 0x10]
LEA RCX,[RDX + 0x1f]
TEST RDX,RDX
CMOVNS RCX,RDX
SAR RCX,0x5
MOV qword ptr [RSP],RAX
IMUL EAX,ECX
CDQE
ADD RAX,RAX
LEA RAX,[RAX + RAX*0x8]
CMP RAX,R13
JNZ 0x00112da9
OR EDX,dword ptr [RBX + 0x18]
MOV EAX,0xffffffff
TEST DL,0x7
JNZ 0x00112d78
CMP dword ptr [RSP],0x0
JLE 0x00112d76
MOVSXD R13,ECX
LEA EAX,[RCX*0x8]
CDQE
ADD RAX,RAX
LEA RAX,[RAX + RAX*0x8]
MOV qword ptr [RSP + 0x8],RAX
LEA RAX,[R13*0x2]
LEA RBP,[RAX + RAX*0x8]
XOR ECX,ECX
LEA RAX,[RSP + 0x20]
VPBROADCASTQ YMM0
VMOVDQU ymmword ptr [RSP + 0xb0],YMM0
LAB_00112c12:
MOV qword ptr [RSP + 0x10],RCX
TEST R13,R13
MOV qword ptr [RSP + 0x18],R14
JLE 0x00112d55
MOV RBX,R14
XOR R14D,R14D
MOV RAX,RBX
XOR ECX,ECX
LAB_00112c30:
MOVZX EDX,word ptr [RAX + 0x10]
MOV word ptr [RSP + RCX*0x1 + 0x30],DX
VMOVDQU XMM0,xmmword ptr [RAX]
VMOVDQU xmmword ptr [RSP + RCX*0x1 + 0x20],XMM0
ADD RCX,0x12
ADD RAX,RBP
CMP RCX,0x90
JNZ 0x00112c30
VMOVDQA XMM0,xmmword ptr [RSP + 0x20]
VPINSRW XMM0,XMM0,word ptr [RSP + 0x32],0x1
VPINSRW XMM0,XMM0,word ptr [RSP + 0x44],0x2
VPINSRW XMM0,XMM0,word ptr [RSP + 0x56],0x3
VPINSRW XMM0,XMM0,word ptr [RSP + 0x68],0x4
VPINSRW XMM0,XMM0,word ptr [RSP + 0x7a],0x5
VPINSRW XMM0,XMM0,word ptr [RSP + 0x8c],0x6
VPINSRW XMM0,XMM0,word ptr [RSP + 0x9e],0x7
VMOVDQA xmmword ptr [RSP + 0xd0],XMM0
MOV EAX,0x2
VPMOVSXBQ YMM0,dword ptr [0x00148084]
VPBROADCASTQ YMM3,qword ptr [0x00148f60]
VPBROADCASTQ YMM4,qword ptr [0x00148f50]
VPBROADCASTQ YMM5,qword ptr [0x00148f48]
VMOVDQU YMM6,ymmword ptr [RSP + 0xb0]
VPBROADCASTQ YMM7,qword ptr [0x00148f58]
VPBROADCASTQ YMM8,qword ptr [0x001484c0]
VPAND YMM1,YMM0,YMM3
VPMULDQ YMM1,YMM1,YMM5
VPAND YMM2,YMM0,YMM4
VPADDQ YMM2,YMM6,YMM2
VPADDQ YMM1,YMM2,YMM1
LAB_00112d55:
MOV R15,R12
MOV RCX,qword ptr [RSP + 0x10]
ADD ECX,0x8
MOV R14,qword ptr [RSP + 0x18]
ADD R14,qword ptr [RSP + 0x8]
MOV R12,R15
CMP ECX,dword ptr [RSP]
JL 0x00112c12
LAB_00112d76:
XOR EAX,EAX
LAB_00112d78:
ADD RSP,0x168
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
VZEROUPPER
RET
LAB_00112d8d:
LEA RDI,[0x149289]
LEA RDX,[0x14856a]
LEA RCX,[0x1492eb]
MOV ESI,0x13fd
JMP 0x00112dc3
LAB_00112da9:
LEA RDI,[0x149289]
LEA RDX,[0x14856a]
LEA RCX,[0x149334]
MOV ESI,0x1407
LAB_00112dc3:
XOR EAX,EAX
CALL 0x0010af40
|
/* WARNING: Control flow encountered bad instruction data */
/* int ggml::cpu::aarch64::repack<block_q4_0, 8l, 8l>(ggml_tensor*, void const*, unsigned long) */
int ggml::cpu::aarch64::repack<block_q4_0,8l,8l>(ggml_tensor *param_1,void *param_2,ulong param_3)
{
int1 auVar1 [16];
int1 auVar2 [32];
int iVar3;
int iVar4;
int iVar5;
long lVar6;
long lVar7;
char *pcVar8;
int8 uVar9;
int1 auVar10 [32];
int1 auVar11 [32];
int1 auVar12 [32];
int1 local_178 [16];
ushort auStack_168 [10];
ushort local_154;
ushort local_142;
ushort local_130;
ushort local_11e;
ushort local_10c;
ushort local_fa;
int1 local_e8 [32];
if (*(int *)param_1 == 2) {
iVar3 = ggml_nrows();
lVar7 = *(long *)(param_1 + 0x10);
lVar6 = lVar7 + 0x1f;
if (-1 < lVar7) {
lVar6 = lVar7;
}
iVar4 = (int)(lVar6 >> 5);
if ((long)(iVar3 * iVar4) * 0x12 == param_3) {
iVar5 = -1;
if ((((uint)lVar7 | *(uint *)(param_1 + 0x18)) & 7) == 0) {
if (0 < iVar3) {
iVar5 = 0;
local_e8 = vpbroadcastq_avx512vl();
do {
if (0 < (long)iVar4) {
lVar7 = 0;
do {
*(int2 *)((long)auStack_168 + lVar7) = *(int2 *)((long)param_2 + 0x10);
/* WARNING: Load size is inaccurate */
uVar9 = *(int8 *)((long)param_2 + 8);
*(int8 *)(local_178 + lVar7) = *param_2;
*(int8 *)(local_178 + lVar7 + 8) = uVar9;
lVar7 = lVar7 + 0x12;
param_2 = (void *)((long)param_2 + (long)iVar4 * 0x12);
} while (lVar7 != 0x90);
auVar1 = vpinsrw_avx(local_178,(uint)auStack_168[1],1);
auVar1 = vpinsrw_avx(auVar1,(uint)local_154,2);
auVar1 = vpinsrw_avx(auVar1,(uint)local_142,3);
auVar1 = vpinsrw_avx(auVar1,(uint)local_130,4);
auVar1 = vpinsrw_avx(auVar1,(uint)local_11e,5);
auVar1 = vpinsrw_avx(auVar1,(uint)local_10c,6);
vpinsrw_avx(auVar1,(uint)local_fa,7);
auVar2 = vpmovsxbq_avx2(ZEXT416(DAT_00148084));
auVar10._8_8_ = DAT_00148f60;
auVar10._0_8_ = DAT_00148f60;
auVar10._16_8_ = DAT_00148f60;
auVar10._24_8_ = DAT_00148f60;
auVar11._8_8_ = DAT_00148f50;
auVar11._0_8_ = DAT_00148f50;
auVar11._16_8_ = DAT_00148f50;
auVar11._24_8_ = DAT_00148f50;
auVar12._8_8_ = DAT_00148f48;
auVar12._0_8_ = DAT_00148f48;
auVar12._16_8_ = DAT_00148f48;
auVar12._24_8_ = DAT_00148f48;
auVar10 = vpand_avx2(auVar2,auVar10);
auVar12 = vpmuldq_avx2(auVar10,auVar12);
auVar10 = vpand_avx2(auVar2,auVar11);
auVar10 = vpaddq_avx2(local_e8,auVar10);
vpaddq_avx2(auVar10,auVar12);
/* WARNING: Bad instruction - Truncating control flow here */
halt_baddata();
}
iVar5 = iVar5 + 8;
param_2 = (void *)((long)param_2 + (long)(iVar4 * 8) * 0x12);
} while (iVar5 < iVar3);
}
iVar5 = 0;
}
return iVar5;
}
pcVar8 = "data_size == nrow * nblocks * sizeof(block_q4_0)";
uVar9 = 0x1407;
}
else {
pcVar8 = "t->type == GGML_TYPE_Q4_0";
uVar9 = 0x13fd;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp"
,uVar9,"GGML_ASSERT(%s) failed",pcVar8);
}
|
|
64,526 |
ftxui::operator|=(std::shared_ptr<ftxui::Node>&, std::function<std::shared_ptr<ftxui::Node> (std::shared_ptr<ftxui::Node>)>)
|
Andrewchistyakov[P]flashcards_lyc/build_O2/_deps/ftxui-src/src/ftxui/dom/util.cpp
|
Element& operator|=(Element& e, Decorator d) {
e = e | std::move(d);
return e;
}
|
O2
|
cpp
|
ftxui::operator|=(std::shared_ptr<ftxui::Node>&, std::function<std::shared_ptr<ftxui::Node> (std::shared_ptr<ftxui::Node>)>):
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x28(%rsp), %rdi
movq %rbx, %rsi
callq 0x13f32
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
movq 0x18(%r14), %rax
movq %rax, 0x18(%rsp)
movq 0x10(%r14), %rax
testq %rax, %rax
je 0x20934
movups (%r14), %xmm1
addq $0x10, %r14
movaps %xmm1, (%rsp)
movq %rax, 0x10(%rsp)
movups %xmm0, (%r14)
leaq 0x38(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movq %rsp, %rdx
callq 0x20893
leaq 0x38(%rsp), %rsi
movq %rbx, %rdi
callq 0x20e28
leaq 0x40(%rsp), %rdi
callq 0x13452
movq %rsp, %rdi
callq 0x13b10
leaq 0x30(%rsp), %rdi
callq 0x13452
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x13b10
leaq 0x30(%rsp), %rdi
callq 0x13452
movq %rbx, %rdi
callq 0xc7f0
|
_ZN5ftxuioRERSt10shared_ptrINS_4NodeEESt8functionIFS2_S2_EE:
push r14
push rbx
sub rsp, 48h
mov r14, rsi
mov rbx, rdi
lea rdi, [rsp+58h+var_30]
mov rsi, rbx
call _ZNSt12__shared_ptrIN5ftxui4NodeELN9__gnu_cxx12_Lock_policyE2EEC2ERKS4_; std::__shared_ptr<ftxui::Node,(__gnu_cxx::_Lock_policy)2>::__shared_ptr(std::__shared_ptr<ftxui::Node,(__gnu_cxx::_Lock_policy)2> const&)
xorps xmm0, xmm0
movaps [rsp+58h+var_58], xmm0
and [rsp+58h+var_48], 0
mov rax, [r14+18h]
mov [rsp+58h+var_40], rax
mov rax, [r14+10h]
test rax, rax
jz short loc_20934
movups xmm1, xmmword ptr [r14]
add r14, 10h
movaps [rsp+58h+var_58], xmm1
mov [rsp+58h+var_48], rax
movups xmmword ptr [r14], xmm0
loc_20934:
lea rdi, [rsp+58h+var_20]
lea rsi, [rsp+58h+var_30]
mov rdx, rsp
call _ZN5ftxuiorESt10shared_ptrINS_4NodeEESt8functionIFS2_S2_EE; ftxui::operator|(std::shared_ptr<ftxui::Node>,std::function<std::shared_ptr<ftxui::Node> ()(std::shared_ptr<ftxui::Node>)>)
lea rsi, [rsp+58h+var_20]
mov rdi, rbx
call _ZNSt12__shared_ptrIN5ftxui4NodeELN9__gnu_cxx12_Lock_policyE2EEaSEOS4_; std::__shared_ptr<ftxui::Node,(__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_ptr<ftxui::Node,(__gnu_cxx::_Lock_policy)2>&&)
lea rdi, [rsp+58h+var_18]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, rsp; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
lea rdi, [rsp+58h+var_28]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rax, rbx
add rsp, 48h
pop rbx
pop r14
retn
mov rbx, rax
mov rdi, rsp; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
lea rdi, [rsp+arg_28]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, rbx
call __Unwind_Resume
|
_QWORD * ftxui::operator|=(_QWORD *a1, __int128 *a2)
{
long long v2; // rax
long long v3; // rdx
long long v4; // rcx
long long v5; // r8
long long v6; // r9
__int128 v8; // [rsp+0h] [rbp-58h] BYREF
long long v9; // [rsp+10h] [rbp-48h]
long long v10; // [rsp+18h] [rbp-40h]
__int128 v11; // [rsp+28h] [rbp-30h] BYREF
_BYTE v12[8]; // [rsp+38h] [rbp-20h] BYREF
_QWORD v13[3]; // [rsp+40h] [rbp-18h] BYREF
std::__shared_ptr<ftxui::Node,(__gnu_cxx::_Lock_policy)2>::__shared_ptr(&v11, a1);
v8 = 0LL;
v9 = 0LL;
v10 = *((_QWORD *)a2 + 3);
v2 = *((_QWORD *)a2 + 2);
if ( v2 )
{
v8 = *a2;
v9 = v2;
a2[1] = 0LL;
}
ftxui::operator|((long long)v12, &v11, (long long)&v8);
std::__shared_ptr<ftxui::Node,(__gnu_cxx::_Lock_policy)2>::operator=(
a1,
v12,
v3,
v4,
v5,
v6,
v8,
*((_QWORD *)&v8 + 1),
v9,
v10);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v13);
std::_Function_base::~_Function_base((std::_Function_base *)&v8);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)&v11 + 1);
return a1;
}
|
operator|=:
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV R14,RSI
MOV RBX,RDI
LEA RDI,[RSP + 0x28]
MOV RSI,RBX
CALL 0x00113f32
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
AND qword ptr [RSP + 0x10],0x0
MOV RAX,qword ptr [R14 + 0x18]
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [R14 + 0x10]
TEST RAX,RAX
JZ 0x00120934
MOVUPS XMM1,xmmword ptr [R14]
ADD R14,0x10
MOVAPS xmmword ptr [RSP],XMM1
MOV qword ptr [RSP + 0x10],RAX
MOVUPS xmmword ptr [R14],XMM0
LAB_00120934:
LEA RDI,[RSP + 0x38]
LEA RSI,[RSP + 0x28]
MOV RDX,RSP
CALL 0x00120893
LAB_00120946:
LEA RSI,[RSP + 0x38]
MOV RDI,RBX
CALL 0x00120e28
LEA RDI,[RSP + 0x40]
CALL 0x00113452
MOV RDI,RSP
CALL 0x00113b10
LEA RDI,[RSP + 0x30]
CALL 0x00113452
MOV RAX,RBX
ADD RSP,0x48
POP RBX
POP R14
RET
|
/* ftxui::TEMPNAMEPLACEHOLDERVALUE(std::shared_ptr<ftxui::Node>&,
std::function<std::shared_ptr<ftxui::Node> (std::shared_ptr<ftxui::Node>)>) */
__shared_ptr<ftxui::Node,(__gnu_cxx::_Lock_policy)2> *
ftxui::operator|=(__shared_ptr<ftxui::Node,(__gnu_cxx::_Lock_policy)2> *param_1,int8 *param_2)
{
long lVar1;
int8 local_58;
int8 uStack_50;
long local_48;
int8 local_40;
__shared_ptr<ftxui::Node,(__gnu_cxx::_Lock_policy)2> local_30 [8];
__shared_count<(__gnu_cxx::_Lock_policy)2> local_28 [8];
ftxui local_20 [8];
__shared_count<(__gnu_cxx::_Lock_policy)2> local_18 [8];
std::__shared_ptr<ftxui::Node,(__gnu_cxx::_Lock_policy)2>::__shared_ptr
(local_30,(__shared_ptr *)param_1);
local_58 = 0;
uStack_50 = 0;
local_48 = 0;
local_40 = param_2[3];
lVar1 = param_2[2];
if (lVar1 != 0) {
local_58 = *param_2;
uStack_50 = param_2[1];
param_2[2] = 0;
param_2[3] = 0;
local_48 = lVar1;
}
/* try { // try from 00120934 to 00120945 has its CatchHandler @ 0012097a */
operator|(local_20,local_30,&local_58);
std::__shared_ptr<ftxui::Node,(__gnu_cxx::_Lock_policy)2>::operator=
(param_1,(__shared_ptr *)local_20);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_18);
std::_Function_base::~_Function_base((_Function_base *)&local_58);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_28);
return param_1;
}
|
|
64,527 |
inline_mysql_file_read
|
eloqsql/include/mysql/psi/mysql_file.h
|
static inline size_t
inline_mysql_file_read(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
File file, uchar *buffer, size_t count, myf flags)
{
size_t result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
size_t bytes_read;
locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_READ);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_wait)(locker, count, src_file, src_line);
result= my_read(file, buffer, count, flags);
if (flags & (MY_NABP | MY_FNABP))
bytes_read= (result == 0) ? count : 0;
else
bytes_read= (result != MY_FILE_ERROR) ? result : 0;
PSI_FILE_CALL(end_file_wait)(locker, bytes_read);
return result;
}
#endif
result= my_read(file, buffer, count, flags);
return result;
}
|
O0
|
c
|
inline_mysql_file_read:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
leaq 0x205730(%rip), %rax # 0x2c00b8
movq (%rax), %rax
movq 0x158(%rax), %rax
movl -0x18(%rbp), %esi
leaq -0x88(%rbp), %rdi
movl $0x6, %edx
callq *%rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0xbaa97
leaq 0x2056e6(%rip), %rax # 0x2c00b8
movq (%rax), %rax
movq 0x210(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl -0x14(%rbp), %ecx
callq *%rax
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
callq 0xf4a80
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
andq $0x6, %rax
cmpq $0x0, %rax
je 0xbaa42
cmpq $0x0, -0x38(%rbp)
jne 0xbaa27
movq -0x28(%rbp), %rax
movq %rax, -0x98(%rbp)
jmp 0xbaa32
xorl %eax, %eax
movq %rax, -0x98(%rbp)
jmp 0xbaa32
movq -0x98(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0xbaa6f
cmpq $-0x1, -0x38(%rbp)
je 0xbaa56
movq -0x38(%rbp), %rax
movq %rax, -0xa0(%rbp)
jmp 0xbaa61
xorl %eax, %eax
movq %rax, -0xa0(%rbp)
jmp 0xbaa61
movq -0xa0(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq 0x205642(%rip), %rax # 0x2c00b8
movq (%rax), %rax
movq 0x218(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x90(%rbp), %rsi
callq *%rax
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xbaab7
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
callq 0xf4a80
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xa0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
inline_mysql_file_read_3:
push rbp
mov rbp, rsp
sub rsp, 0A0h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+158h]
mov esi, [rbp+var_18]
lea rdi, [rbp+var_88]
mov edx, 6
call rax
mov [rbp+var_40], rax
cmp [rbp+var_40], 0
setnz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz loc_BAA97
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+210h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_10]
mov ecx, [rbp+var_14]
call rax
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_30]
call my_read
mov [rbp+var_38], rax
mov rax, [rbp+var_30]
and rax, 6
cmp rax, 0
jz short loc_BAA42
cmp [rbp+var_38], 0
jnz short loc_BAA27
mov rax, [rbp+var_28]
mov [rbp+var_98], rax
jmp short loc_BAA32
loc_BAA27:
xor eax, eax
mov [rbp+var_98], rax
jmp short $+2
loc_BAA32:
mov rax, [rbp+var_98]
mov [rbp+var_90], rax
jmp short loc_BAA6F
loc_BAA42:
cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh
jz short loc_BAA56
mov rax, [rbp+var_38]
mov [rbp+var_A0], rax
jmp short loc_BAA61
loc_BAA56:
xor eax, eax
mov [rbp+var_A0], rax
jmp short $+2
loc_BAA61:
mov rax, [rbp+var_A0]
mov [rbp+var_90], rax
loc_BAA6F:
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+218h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_90]
call rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
jmp short loc_BAAB7
loc_BAA97:
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_30]
call my_read
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
loc_BAAB7:
mov rax, [rbp+var_8]
add rsp, 0A0h
pop rbp
retn
|
long long inline_mysql_file_read_3(
long long a1,
unsigned int a2,
unsigned int a3,
long long a4,
long long a5,
long long a6)
{
long long v7; // [rsp+0h] [rbp-A0h]
long long v8; // [rsp+8h] [rbp-98h]
_BYTE v9[72]; // [rsp+18h] [rbp-88h] BYREF
long long v10; // [rsp+60h] [rbp-40h]
long long v11; // [rsp+68h] [rbp-38h]
long long v12; // [rsp+70h] [rbp-30h]
long long v13; // [rsp+78h] [rbp-28h]
long long v14; // [rsp+80h] [rbp-20h]
unsigned int v15; // [rsp+88h] [rbp-18h]
unsigned int v16; // [rsp+8Ch] [rbp-14h]
long long v17; // [rsp+90h] [rbp-10h]
v17 = a1;
v16 = a2;
v15 = a3;
v14 = a4;
v13 = a5;
v12 = a6;
v10 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v9, a3, 6LL);
if ( v10 )
{
((void ( *)(long long, long long, long long, _QWORD))PSI_server[66])(v10, v13, v17, v16);
v11 = my_read(v15, v14, v13, v12);
if ( (v12 & 6) != 0 )
{
if ( v11 )
v8 = 0LL;
else
v8 = v13;
((void ( *)(long long, long long))PSI_server[67])(v10, v8);
}
else
{
if ( v11 == -1 )
v7 = 0LL;
else
v7 = v11;
((void ( *)(long long, long long))PSI_server[67])(v10, v7);
}
return v11;
}
else
{
return my_read(v15, v14, v13, v12);
}
}
|
inline_mysql_file_read:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xa0
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
LEA RAX,[0x3c00b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x158]
MOV ESI,dword ptr [RBP + -0x18]
LEA RDI,[RBP + -0x88]
MOV EDX,0x6
CALL RAX
MOV qword ptr [RBP + -0x40],RAX
CMP qword ptr [RBP + -0x40],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001baa97
LEA RAX,[0x3c00b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x210]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x14]
CALL RAX
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x001f4a80
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x30]
AND RAX,0x6
CMP RAX,0x0
JZ 0x001baa42
CMP qword ptr [RBP + -0x38],0x0
JNZ 0x001baa27
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x98],RAX
JMP 0x001baa32
LAB_001baa27:
XOR EAX,EAX
MOV qword ptr [RBP + -0x98],RAX
JMP 0x001baa32
LAB_001baa32:
MOV RAX,qword ptr [RBP + -0x98]
MOV qword ptr [RBP + -0x90],RAX
JMP 0x001baa6f
LAB_001baa42:
CMP qword ptr [RBP + -0x38],-0x1
JZ 0x001baa56
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x001baa61
LAB_001baa56:
XOR EAX,EAX
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x001baa61
LAB_001baa61:
MOV RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0x90],RAX
LAB_001baa6f:
LEA RAX,[0x3c00b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x218]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x90]
CALL RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001baab7
LAB_001baa97:
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x001f4a80
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
LAB_001baab7:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0xa0
POP RBP
RET
|
long inline_mysql_file_read
(int8 param_1,int4 param_2,int4 param_3,int8 param_4,
long param_5,ulong param_6)
{
long local_a8;
long local_a0;
long local_98;
int1 local_90 [72];
long local_48;
long local_40;
ulong local_38;
long local_30;
int8 local_28;
int4 local_20;
int4 local_1c;
int8 local_18;
long local_10;
local_38 = param_6;
local_30 = param_5;
local_28 = param_4;
local_20 = param_3;
local_1c = param_2;
local_18 = param_1;
local_48 = (**(code **)(PSI_server + 0x158))(local_90,param_3,6);
if (local_48 == 0) {
local_10 = my_read(local_20,local_28,local_30,local_38);
}
else {
(**(code **)(PSI_server + 0x210))(local_48,local_30,local_18,local_1c);
local_40 = my_read(local_20,local_28,local_30,local_38);
if ((local_38 & 6) == 0) {
local_a8 = local_40;
if (local_40 == -1) {
local_a8 = 0;
}
local_98 = local_a8;
}
else {
if (local_40 == 0) {
local_a0 = local_30;
}
else {
local_a0 = 0;
}
local_98 = local_a0;
}
(**(code **)(PSI_server + 0x218))(local_48,local_98);
local_10 = local_40;
}
return local_10;
}
|
|
64,528 |
my_hash_sort_utf32_nopad
|
eloqsql/strings/ctype-ucs2.c
|
static void
my_hash_sort_utf32_nopad(CHARSET_INFO *cs, const uchar *s, size_t slen,
ulong *nr1, ulong *nr2)
{
my_wc_t wc;
int res;
const uchar *e= s + slen;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
register ulong m1= *nr1, m2= *nr2;
while ((res= my_utf32_uni(cs, &wc, (uchar*) s, (uchar*) e)) > 0)
{
my_tosort_utf32(uni_plane, &wc);
MY_HASH_ADD(m1, m2, (uint) (wc >> 24));
MY_HASH_ADD(m1, m2, (uint) (wc >> 16) & 0xFF);
MY_HASH_ADD(m1, m2, (uint) (wc >> 8) & 0xFF);
MY_HASH_ADD(m1, m2, (uint) (wc & 0xFF));
s+= res;
}
*nr1= m1;
*nr2= m2;
}
|
O0
|
c
|
my_hash_sort_utf32_nopad:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rdx
movq -0x40(%rbp), %rcx
leaq -0x30(%rbp), %rsi
callq 0x131d20
movl %eax, -0x34(%rbp)
cmpl $0x0, %eax
jle 0x136e17
movq -0x48(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x136e40
movq -0x50(%rbp), %rax
andq $0x3f, %rax
addq -0x58(%rbp), %rax
movq -0x30(%rbp), %rcx
shrq $0x18, %rcx
movl %ecx, %ecx
imulq %rcx, %rax
movq -0x50(%rbp), %rcx
shlq $0x8, %rcx
addq %rcx, %rax
xorq -0x50(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x58(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x58(%rbp)
jmp 0x136d43
movq -0x50(%rbp), %rax
andq $0x3f, %rax
addq -0x58(%rbp), %rax
movq -0x30(%rbp), %rcx
shrq $0x10, %rcx
andl $0xff, %ecx
movl %ecx, %ecx
imulq %rcx, %rax
movq -0x50(%rbp), %rcx
shlq $0x8, %rcx
addq %rcx, %rax
xorq -0x50(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x58(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x58(%rbp)
jmp 0x136d84
movq -0x50(%rbp), %rax
andq $0x3f, %rax
addq -0x58(%rbp), %rax
movq -0x30(%rbp), %rcx
shrq $0x8, %rcx
andl $0xff, %ecx
movl %ecx, %ecx
imulq %rcx, %rax
movq -0x50(%rbp), %rcx
shlq $0x8, %rcx
addq %rcx, %rax
xorq -0x50(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x58(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x58(%rbp)
jmp 0x136dc5
movq -0x50(%rbp), %rax
andq $0x3f, %rax
addq -0x58(%rbp), %rax
movq -0x30(%rbp), %rcx
andq $0xff, %rcx
movl %ecx, %ecx
imulq %rcx, %rax
movq -0x50(%rbp), %rcx
shlq $0x8, %rcx
addq %rcx, %rax
xorq -0x50(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x58(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x58(%rbp)
movl -0x34(%rbp), %ecx
movq -0x10(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
jmp 0x136cda
movq -0x50(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x58(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_hash_sort_utf32_nopad:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov rax, [rbp+var_10]
add rax, [rbp+var_18]
mov [rbp+var_40], rax
mov rax, [rbp+var_8]
mov rax, [rax+78h]
mov [rbp+var_48], rax
mov rax, [rbp+var_20]
mov rax, [rax]
mov [rbp+var_50], rax
mov rax, [rbp+var_28]
mov rax, [rax]
mov [rbp+var_58], rax
loc_136CDA:
mov rdi, [rbp+var_8]
mov rdx, [rbp+var_10]
mov rcx, [rbp+var_40]
lea rsi, [rbp+var_30]
call my_utf32_uni
mov [rbp+var_34], eax
cmp eax, 0
jle loc_136E17
mov rdi, [rbp+var_48]
lea rsi, [rbp+var_30]
call my_tosort_utf32
mov rax, [rbp+var_50]
and rax, 3Fh
add rax, [rbp+var_58]
mov rcx, [rbp+var_30]
shr rcx, 18h
mov ecx, ecx
imul rax, rcx
mov rcx, [rbp+var_50]
shl rcx, 8
add rax, rcx
xor rax, [rbp+var_50]
mov [rbp+var_50], rax
mov rax, [rbp+var_58]
add rax, 3
mov [rbp+var_58], rax
jmp short $+2
loc_136D43:
mov rax, [rbp+var_50]
and rax, 3Fh
add rax, [rbp+var_58]
mov rcx, [rbp+var_30]
shr rcx, 10h
and ecx, 0FFh
mov ecx, ecx
imul rax, rcx
mov rcx, [rbp+var_50]
shl rcx, 8
add rax, rcx
xor rax, [rbp+var_50]
mov [rbp+var_50], rax
mov rax, [rbp+var_58]
add rax, 3
mov [rbp+var_58], rax
jmp short $+2
loc_136D84:
mov rax, [rbp+var_50]
and rax, 3Fh
add rax, [rbp+var_58]
mov rcx, [rbp+var_30]
shr rcx, 8
and ecx, 0FFh
mov ecx, ecx
imul rax, rcx
mov rcx, [rbp+var_50]
shl rcx, 8
add rax, rcx
xor rax, [rbp+var_50]
mov [rbp+var_50], rax
mov rax, [rbp+var_58]
add rax, 3
mov [rbp+var_58], rax
jmp short $+2
loc_136DC5:
mov rax, [rbp+var_50]
and rax, 3Fh
add rax, [rbp+var_58]
mov rcx, [rbp+var_30]
and rcx, 0FFh
mov ecx, ecx
imul rax, rcx
mov rcx, [rbp+var_50]
shl rcx, 8
add rax, rcx
xor rax, [rbp+var_50]
mov [rbp+var_50], rax
mov rax, [rbp+var_58]
add rax, 3
mov [rbp+var_58], rax
mov ecx, [rbp+var_34]
mov rax, [rbp+var_10]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_10], rax
jmp loc_136CDA
loc_136E17:
mov rcx, [rbp+var_50]
mov rax, [rbp+var_20]
mov [rax], rcx
mov rcx, [rbp+var_58]
mov rax, [rbp+var_28]
mov [rax], rcx
add rsp, 60h
pop rbp
retn
|
_QWORD * my_hash_sort_utf32_nopad(long long a1, long long a2, long long a3, long long *a4, _QWORD *a5, long long a6)
{
_QWORD *result; // rax
long long v7; // [rsp+8h] [rbp-58h]
long long v8; // [rsp+8h] [rbp-58h]
long long v9; // [rsp+10h] [rbp-50h]
long long v10; // [rsp+10h] [rbp-50h]
long long v11; // [rsp+10h] [rbp-50h]
long long v12; // [rsp+10h] [rbp-50h]
long long v13; // [rsp+18h] [rbp-48h]
long long v14; // [rsp+20h] [rbp-40h]
int v15; // [rsp+2Ch] [rbp-34h]
unsigned long long v16; // [rsp+30h] [rbp-30h] BYREF
_QWORD *v17; // [rsp+38h] [rbp-28h]
long long *v18; // [rsp+40h] [rbp-20h]
long long v19; // [rsp+48h] [rbp-18h]
long long v20; // [rsp+50h] [rbp-10h]
long long v21; // [rsp+58h] [rbp-8h]
v21 = a1;
v20 = a2;
v19 = a3;
v18 = a4;
v17 = a5;
v14 = a3 + a2;
v13 = *(_QWORD *)(a1 + 120);
v9 = *a4;
v7 = *a5;
while ( 1 )
{
v15 = my_utf32_uni(v21, (long long)&v16, v20, v14, (long long)a5, a6);
if ( v15 <= 0 )
break;
my_tosort_utf32(v13, &v16);
v10 = v9 ^ ((v9 << 8) + (unsigned int)(v16 >> 24) * (v7 + (v9 & 0x3F)));
v8 = v7 + 3;
v11 = v10 ^ ((v10 << 8) + BYTE2(v16) * (v8 + (v10 & 0x3F)));
v8 += 3LL;
v12 = v11 ^ ((v11 << 8) + BYTE1(v16) * (v8 + (v11 & 0x3F)));
v8 += 3LL;
v9 = v12 ^ ((v12 << 8) + (unsigned __int8)v16 * (v8 + (v12 & 0x3F)));
v7 = v8 + 3;
v20 += v15;
}
*v18 = v9;
result = v17;
*v17 = v7;
return result;
}
| |||
64,529 |
my_hash_sort_utf32_nopad
|
eloqsql/strings/ctype-ucs2.c
|
static void
my_hash_sort_utf32_nopad(CHARSET_INFO *cs, const uchar *s, size_t slen,
ulong *nr1, ulong *nr2)
{
my_wc_t wc;
int res;
const uchar *e= s + slen;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
register ulong m1= *nr1, m2= *nr2;
while ((res= my_utf32_uni(cs, &wc, (uchar*) s, (uchar*) e)) > 0)
{
my_tosort_utf32(uni_plane, &wc);
MY_HASH_ADD(m1, m2, (uint) (wc >> 24));
MY_HASH_ADD(m1, m2, (uint) (wc >> 16) & 0xFF);
MY_HASH_ADD(m1, m2, (uint) (wc >> 8) & 0xFF);
MY_HASH_ADD(m1, m2, (uint) (wc & 0xFF));
s+= res;
}
*nr1= m1;
*nr2= m2;
}
|
O3
|
c
|
my_hash_sort_utf32_nopad:
movq (%rcx), %r10
movq (%r8), %rax
cmpq $0x4, %rdx
jl 0xc81fd
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
addq %rsi, %rdx
movq 0x78(%rdi), %rdi
movl $0xff, %r9d
movzbl (%rsi), %ebx
shll $0x18, %ebx
movzbl 0x1(%rsi), %r11d
shll $0x10, %r11d
orl %ebx, %r11d
cmpl $0x10ffff, %r11d # imm = 0x10FFFF
ja 0xc81f7
movzbl 0x2(%rsi), %r14d
shll $0x8, %r14d
movzbl 0x3(%rsi), %ebx
orq %rbx, %r14
orq %r11, %r14
movl $0xfffd, %r11d # imm = 0xFFFD
cmpq (%rdi), %r14
ja 0xc814d
movq 0x8(%rdi), %r11
movl %r14d, %r15d
shrl $0x8, %r15d
movq (%r11,%r15,8), %r15
movq %r14, %r11
testq %r15, %r15
je 0xc814d
leaq (%rbx,%rbx,2), %r11
movl 0x8(%r15,%r11,4), %r11d
movl %r10d, %ebx
andl $0x3f, %ebx
addq %rax, %rbx
movl %r11d, %r14d
shrl $0x18, %r14d
imulq %rbx, %r14
movq %r10, %rbx
shlq $0x8, %rbx
addq %r14, %rbx
xorq %r10, %rbx
movl %ebx, %r10d
andl $0x3f, %r10d
addq %rax, %r10
addq $0x3, %r10
movl %r11d, %r14d
shrl $0x10, %r14d
andl %r9d, %r14d
imulq %r10, %r14
movq %rbx, %r10
shlq $0x8, %r10
addq %r14, %r10
xorq %rbx, %r10
movl %r10d, %ebx
andl $0x3f, %ebx
addq %rax, %rbx
addq $0x6, %rbx
movl %r11d, %r14d
shrl $0x8, %r14d
andl %r9d, %r14d
imulq %rbx, %r14
movq %r10, %rbx
shlq $0x8, %rbx
addq %r14, %rbx
xorq %r10, %rbx
movl %ebx, %r10d
andl $0x3f, %r10d
addq %rax, %r10
addq $0x9, %r10
movzbl %r11b, %r11d
imulq %r10, %r11
movq %rbx, %r10
shlq $0x8, %r10
addq %r11, %r10
xorq %rbx, %r10
addq $0xc, %rax
leaq 0x8(%rsi), %r11
addq $0x4, %rsi
cmpq %rdx, %r11
jbe 0xc80f0
popq %rbx
popq %r14
popq %r15
popq %rbp
movq %r10, (%rcx)
movq %rax, (%r8)
retq
|
my_hash_sort_utf32_nopad:
mov r10, [rcx]
mov rax, [r8]
cmp rdx, 4
jl loc_C81FD
push rbp
mov rbp, rsp
push r15
push r14
push rbx
add rdx, rsi
mov rdi, [rdi+78h]
mov r9d, 0FFh
loc_C80F0:
movzx ebx, byte ptr [rsi]
shl ebx, 18h
movzx r11d, byte ptr [rsi+1]
shl r11d, 10h
or r11d, ebx
cmp r11d, offset unk_10FFFF
ja loc_C81F7
movzx r14d, byte ptr [rsi+2]
shl r14d, 8
movzx ebx, byte ptr [rsi+3]
or r14, rbx
or r14, r11
mov r11d, 0FFFDh
cmp r14, [rdi]
ja short loc_C814D
mov r11, [rdi+8]
mov r15d, r14d
shr r15d, 8
mov r15, [r11+r15*8]
mov r11, r14
test r15, r15
jz short loc_C814D
lea r11, [rbx+rbx*2]
mov r11d, [r15+r11*4+8]
loc_C814D:
mov ebx, r10d
and ebx, 3Fh
add rbx, rax
mov r14d, r11d
shr r14d, 18h
imul r14, rbx
mov rbx, r10
shl rbx, 8
add rbx, r14
xor rbx, r10
mov r10d, ebx
and r10d, 3Fh
add r10, rax
add r10, 3
mov r14d, r11d
shr r14d, 10h
and r14d, r9d
imul r14, r10
mov r10, rbx
shl r10, 8
add r10, r14
xor r10, rbx
mov ebx, r10d
and ebx, 3Fh
add rbx, rax
add rbx, 6
mov r14d, r11d
shr r14d, 8
and r14d, r9d
imul r14, rbx
mov rbx, r10
shl rbx, 8
add rbx, r14
xor rbx, r10
mov r10d, ebx
and r10d, 3Fh
add r10, rax
add r10, 9
movzx r11d, r11b
imul r11, r10
mov r10, rbx
shl r10, 8
add r10, r11
xor r10, rbx
add rax, 0Ch
lea r11, [rsi+8]
add rsi, 4
cmp r11, rdx
jbe loc_C80F0
loc_C81F7:
pop rbx
pop r14
pop r15
pop rbp
loc_C81FD:
mov [rcx], r10
mov [r8], rax
retn
|
long long my_hash_sort_utf32_nopad(long long a1, unsigned __int8 *a2, long long a3, long long *a4, long long *a5)
{
long long v5; // r10
long long result; // rax
unsigned __int8 *v7; // rdx
unsigned long long *v8; // rdi
long long v9; // r11
long long v10; // rbx
unsigned long long v11; // r14
unsigned int v12; // r11d
long long v13; // r15
long long v14; // r10
long long v15; // r14
unsigned __int8 *v16; // r11
v5 = *a4;
result = *a5;
if ( a3 >= 4 )
{
v7 = &a2[a3];
v8 = *(unsigned long long **)(a1 + 120);
do
{
v9 = (*a2 << 24) | (a2[1] << 16);
if ( (unsigned int)v9 > (unsigned int)&unk_10FFFF )
break;
v10 = a2[3];
v11 = v9 | v10 | (a2[2] << 8);
v12 = 65533;
if ( v11 <= *v8 )
{
v13 = *(_QWORD *)(v8[1] + 8LL * ((unsigned int)v11 >> 8));
v12 = v11;
if ( v13 )
v12 = *(_DWORD *)(v13 + 12 * v10 + 8);
}
v14 = v5 ^ ((result + (v5 & 0x3F)) * HIBYTE(v12) + (v5 << 8)) ^ ((result
+ (((unsigned __int8)v5 ^ (unsigned __int8)((result + (v5 & 0x3F)) * HIBYTE(v12))) & 0x3F)
+ 3)
* BYTE2(v12)
+ ((v5 ^ ((result + (v5 & 0x3F)) * HIBYTE(v12)
+ (v5 << 8))) << 8));
v15 = (result + (v14 & 0x3F) + 6) * BYTE1(v12);
v5 = v14 ^ (v15 + (v14 << 8)) ^ ((result + (((unsigned __int8)v14 ^ (unsigned __int8)v15) & 0x3F) + 9)
* (unsigned __int8)v12
+ ((v14 ^ (v15 + (v14 << 8))) << 8));
result += 12LL;
v16 = a2 + 8;
a2 += 4;
}
while ( v16 <= v7 );
}
*a4 = v5;
*a5 = result;
return result;
}
|
my_hash_sort_utf32_nopad:
MOV R10,qword ptr [RCX]
MOV RAX,qword ptr [R8]
CMP RDX,0x4
JL 0x001c81fd
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
ADD RDX,RSI
MOV RDI,qword ptr [RDI + 0x78]
MOV R9D,0xff
LAB_001c80f0:
MOVZX EBX,byte ptr [RSI]
SHL EBX,0x18
MOVZX R11D,byte ptr [RSI + 0x1]
SHL R11D,0x10
OR R11D,EBX
CMP R11D,0x10ffff
JA 0x001c81f7
MOVZX R14D,byte ptr [RSI + 0x2]
SHL R14D,0x8
MOVZX EBX,byte ptr [RSI + 0x3]
OR R14,RBX
OR R14,R11
MOV R11D,0xfffd
CMP R14,qword ptr [RDI]
JA 0x001c814d
MOV R11,qword ptr [RDI + 0x8]
MOV R15D,R14D
SHR R15D,0x8
MOV R15,qword ptr [R11 + R15*0x8]
MOV R11,R14
TEST R15,R15
JZ 0x001c814d
LEA R11,[RBX + RBX*0x2]
MOV R11D,dword ptr [R15 + R11*0x4 + 0x8]
LAB_001c814d:
MOV EBX,R10D
AND EBX,0x3f
ADD RBX,RAX
MOV R14D,R11D
SHR R14D,0x18
IMUL R14,RBX
MOV RBX,R10
SHL RBX,0x8
ADD RBX,R14
XOR RBX,R10
MOV R10D,EBX
AND R10D,0x3f
ADD R10,RAX
ADD R10,0x3
MOV R14D,R11D
SHR R14D,0x10
AND R14D,R9D
IMUL R14,R10
MOV R10,RBX
SHL R10,0x8
ADD R10,R14
XOR R10,RBX
MOV EBX,R10D
AND EBX,0x3f
ADD RBX,RAX
ADD RBX,0x6
MOV R14D,R11D
SHR R14D,0x8
AND R14D,R9D
IMUL R14,RBX
MOV RBX,R10
SHL RBX,0x8
ADD RBX,R14
XOR RBX,R10
MOV R10D,EBX
AND R10D,0x3f
ADD R10,RAX
ADD R10,0x9
MOVZX R11D,R11B
IMUL R11,R10
MOV R10,RBX
SHL R10,0x8
ADD R10,R11
XOR R10,RBX
ADD RAX,0xc
LEA R11,[RSI + 0x8]
ADD RSI,0x4
CMP R11,RDX
JBE 0x001c80f0
LAB_001c81f7:
POP RBX
POP R14
POP R15
POP RBP
LAB_001c81fd:
MOV qword ptr [RCX],R10
MOV qword ptr [R8],RAX
RET
|
void my_hash_sort_utf32_nopad(long param_1,byte *param_2,long param_3,ulong *param_4,long *param_5)
{
byte *pbVar1;
long lVar2;
long lVar3;
byte *pbVar4;
ulong uVar5;
uint uVar6;
ulong uVar7;
ulong uVar8;
uVar5 = *param_4;
lVar3 = *param_5;
if (3 < param_3) {
pbVar4 = param_2 + param_3;
do {
uVar6 = (uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18;
if (0x10ffff < uVar6) break;
uVar8 = (ulong)CONCAT11(param_2[2],param_2[3]) | (ulong)uVar6;
uVar7 = 0xfffd;
if ((uVar8 <= **(ulong **)(param_1 + 0x78)) &&
(lVar2 = *(long *)((*(ulong **)(param_1 + 0x78))[1] + (uVar8 >> 8) * 8), uVar7 = uVar8,
lVar2 != 0)) {
uVar7 = (ulong)*(uint *)(lVar2 + 8 + (ulong)param_2[3] * 0xc);
}
uVar5 = uVar5 * 0x100 + (uVar7 >> 0x18) * ((ulong)((uint)uVar5 & 0x3f) + lVar3) ^ uVar5;
uVar5 = uVar5 * 0x100 +
(ulong)((uint)(uVar7 >> 0x10) & 0xff) * ((ulong)((uint)uVar5 & 0x3f) + lVar3 + 3) ^
uVar5;
uVar5 = uVar5 * 0x100 +
(ulong)((uint)(uVar7 >> 8) & 0xff) * ((ulong)((uint)uVar5 & 0x3f) + lVar3 + 6) ^ uVar5
;
uVar5 = uVar5 * 0x100 + (uVar7 & 0xff) * ((ulong)((uint)uVar5 & 0x3f) + lVar3 + 9) ^ uVar5;
lVar3 = lVar3 + 0xc;
pbVar1 = param_2 + 8;
param_2 = param_2 + 4;
} while (pbVar1 <= pbVar4);
}
*param_4 = uVar5;
*param_5 = lVar3;
return;
}
|
|
64,530 |
my_tosort_utf32
|
eloqsql/strings/ctype-ucs2.c
|
static inline void
my_tosort_utf32(MY_UNICASE_INFO *uni_plane, my_wc_t *wc)
{
if (*wc <= uni_plane->maxchar)
{
MY_UNICASE_CHARACTER *page;
if ((page= uni_plane->page[*wc >> 8]))
*wc= page[*wc & 0xFF].sort;
}
else
{
*wc= MY_CS_REPLACEMENT_CHARACTER;
}
}
|
O0
|
c
|
my_tosort_utf32:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rbp), %rcx
cmpq (%rcx), %rax
ja 0xb17f4
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
shrq $0x8, %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
je 0xb17f2
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
andq $0xff, %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
jmp 0xb17ff
movq -0x10(%rbp), %rax
movq $0xfffd, (%rax) # imm = 0xFFFD
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_tosort_utf32:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_10]
mov rax, [rax]
mov rcx, [rbp+var_8]
cmp rax, [rcx]
ja short loc_B17F4
mov rax, [rbp+var_8]
mov rax, [rax+8]
mov rcx, [rbp+var_10]
mov rcx, [rcx]
shr rcx, 8
mov rax, [rax+rcx*8]
mov [rbp+var_18], rax
cmp rax, 0
jz short loc_B17F2
mov rax, [rbp+var_18]
mov rcx, [rbp+var_10]
mov rcx, [rcx]
and rcx, 0FFh
imul rcx, 0Ch
add rax, rcx
mov eax, [rax+8]
mov ecx, eax
mov rax, [rbp+var_10]
mov [rax], rcx
loc_B17F2:
jmp short loc_B17FF
loc_B17F4:
mov rax, [rbp+var_10]
mov qword ptr [rax], 0FFFDh
loc_B17FF:
pop rbp
retn
|
_QWORD * my_tosort_utf32(_QWORD *a1, _QWORD *a2)
{
_QWORD *result; // rax
_QWORD *v3; // [rsp+0h] [rbp-18h]
if ( *a2 > *a1 )
{
result = a2;
*a2 = 65533LL;
}
else
{
result = *(_QWORD **)(a1[1] + 8LL * (*a2 >> 8));
v3 = result;
if ( result )
{
result = a2;
*a2 = *((unsigned int *)v3 + 3 * (unsigned __int8)*a2 + 2);
}
}
return result;
}
|
my_tosort_utf32:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RCX]
JA 0x001b17f4
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
SHR RCX,0x8
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x18],RAX
CMP RAX,0x0
JZ 0x001b17f2
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
AND RCX,0xff
IMUL RCX,RCX,0xc
ADD RAX,RCX
MOV EAX,dword ptr [RAX + 0x8]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
LAB_001b17f2:
JMP 0x001b17ff
LAB_001b17f4:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],0xfffd
LAB_001b17ff:
POP RBP
RET
|
void my_tosort_utf32(ulong *param_1,ulong *param_2)
{
long lVar1;
if (*param_1 < *param_2) {
*param_2 = 0xfffd;
}
else {
lVar1 = *(long *)(param_1[1] + (*param_2 >> 8) * 8);
if (lVar1 != 0) {
*param_2 = (ulong)*(uint *)(lVar1 + (*param_2 & 0xff) * 0xc + 8);
}
}
return;
}
|
|
64,531 |
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(char*, int&, int&, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp)
|
monkey531[P]llama/common/./json.hpp
|
inline void grisu2(char* buf, int& len, int& decimal_exponent,
diyfp m_minus, diyfp v, diyfp m_plus)
{
JSON_ASSERT(m_plus.e == m_minus.e);
JSON_ASSERT(m_plus.e == v.e);
// --------(-----------------------+-----------------------)-------- (A)
// m- v m+
//
// --------------------(-----------+-----------------------)-------- (B)
// m- v m+
//
// First scale v (and m- and m+) such that the exponent is in the range
// [alpha, gamma].
const cached_power cached = get_cached_power_for_binary_exponent(m_plus.e);
const diyfp c_minus_k(cached.f, cached.e); // = c ~= 10^-k
// The exponent of the products is = v.e + c_minus_k.e + q and is in the range [alpha,gamma]
const diyfp w = diyfp::mul(v, c_minus_k);
const diyfp w_minus = diyfp::mul(m_minus, c_minus_k);
const diyfp w_plus = diyfp::mul(m_plus, c_minus_k);
// ----(---+---)---------------(---+---)---------------(---+---)----
// w- w w+
// = c*m- = c*v = c*m+
//
// diyfp::mul rounds its result and c_minus_k is approximated too. w, w- and
// w+ are now off by a small amount.
// In fact:
//
// w - v * 10^k < 1 ulp
//
// To account for this inaccuracy, add resp. subtract 1 ulp.
//
// --------+---[---------------(---+---)---------------]---+--------
// w- M- w M+ w+
//
// Now any number in [M-, M+] (bounds included) will round to w when input,
// regardless of how the input rounding algorithm breaks ties.
//
// And digit_gen generates the shortest possible such number in [M-, M+].
// Note that this does not mean that Grisu2 always generates the shortest
// possible number in the interval (m-, m+).
const diyfp M_minus(w_minus.f + 1, w_minus.e);
const diyfp M_plus (w_plus.f - 1, w_plus.e );
decimal_exponent = -cached.k; // = -(-k) = k
grisu2_digit_gen(buf, len, decimal_exponent, M_minus, w, M_plus);
}
|
O1
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(char*, int&, int&, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, %rax
movq %rcx, 0x58(%rsp)
movl %r8d, 0x60(%rsp)
movl 0xc8(%rsp), %edi
cmpl %r8d, %edi
jne 0x766d6
movq %rax, 0x20(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
leaq 0xb0(%rsp), %r13
cmpl 0x8(%r13), %edi
jne 0x766f2
callq 0x767ad
movq %rdx, %r12
leaq 0x68(%rsp), %r14
movq %rax, (%r14)
movl %r12d, 0x8(%r14)
movq %r13, %rdi
movq %r14, %rsi
callq 0x768ee
movq %rax, %r15
movl %edx, %ebx
leaq 0x58(%rsp), %rdi
movq %r14, %rsi
callq 0x768ee
movq %rax, %r13
movl %edx, %ebp
leaq 0xc0(%rsp), %rdi
movq %r14, %rsi
callq 0x768ee
incq %r13
decq %rax
shrq $0x20, %r12
negl %r12d
movq 0x30(%rsp), %rcx
movl %r12d, (%rcx)
movq %r15, 0x48(%rsp)
movl %ebx, 0x50(%rsp)
movq %rax, 0x38(%rsp)
movl %edx, 0x40(%rsp)
movups 0x38(%rsp), %xmm0
movups %xmm0, 0x10(%rsp)
movups 0x48(%rsp), %xmm0
movups %xmm0, (%rsp)
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq %rcx, %rdx
movq %r13, %rcx
movl %ebp, %r8d
callq 0x7694a
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xd56b1(%rip), %rdi # 0x14bd8e
leaq 0xd56f6(%rip), %rdx # 0x14bdda
leaq 0xd74e8(%rip), %rcx # 0x14dbd3
movl $0x454b, %esi # imm = 0x454B
jmp 0x7670c
leaq 0xd5695(%rip), %rdi # 0x14bd8e
leaq 0xd56da(%rip), %rdx # 0x14bdda
leaq 0xd74e2(%rip), %rcx # 0x14dbe9
movl $0x454c, %esi # imm = 0x454C
xorl %eax, %eax
callq 0x20250
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl6grisu2EPcRiS4_NS2_5diyfpES5_S5_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov rax, rdi
mov [rsp+0A8h+var_50], rcx
mov [rsp+0A8h+var_48], r8d
mov edi, dword ptr [rsp+0A8h+arg_18]; this
cmp edi, r8d
jnz loc_766D6
mov [rsp+0A8h+var_88], rax
mov [rsp+0A8h+var_80], rsi
mov [rsp+0A8h+var_78], rdx
lea r13, [rsp+0A8h+arg_0]
cmp edi, [r13+8]
jnz loc_766F2
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl36get_cached_power_for_binary_exponentEi; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(int)
mov r12, rdx
lea r14, [rsp+0A8h+var_40]
mov [r14], rax
mov [r14+8], r12d
mov rdi, r13
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp3mulERKS3_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&)
mov r15, rax
mov ebx, edx
lea rdi, [rsp+0A8h+var_50]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp3mulERKS3_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&)
mov r13, rax
mov ebp, edx
lea rdi, [rsp+0A8h+arg_10]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp3mulERKS3_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&)
inc r13
dec rax
shr r12, 20h
neg r12d
mov rcx, [rsp+0A8h+var_78]
mov [rcx], r12d
mov qword ptr [rsp+0A8h+var_60], r15
mov dword ptr [rsp+0A8h+var_60+8], ebx
mov qword ptr [rsp+0A8h+var_70], rax
mov dword ptr [rsp+0A8h+var_70+8], edx
movups xmm0, [rsp+0A8h+var_70]
movups [rsp+0A8h+var_98], xmm0
movups xmm0, [rsp+0A8h+var_60]
movups [rsp+0A8h+var_A8], xmm0
mov rdi, [rsp+0A8h+var_88]
mov rsi, [rsp+0A8h+var_80]
mov rdx, rcx
mov rcx, r13
mov r8d, ebp
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl16grisu2_digit_genEPcRiS4_NS2_5diyfpES5_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_digit_gen(char *,int &,int &,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp)
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_766D6:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aMPlusEMMinusE; "m_plus.e == m_minus.e"
mov esi, 454Bh
jmp short loc_7670C
loc_766F2:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aMPlusEVE; "m_plus.e == v.e"
mov esi, 454Ch
loc_7670C:
xor eax, eax
call _ggml_abort
nop
|
long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(
int a1,
int a2,
_DWORD *a3,
long long a4,
int a5,
int a6,
char a7,
int a8,
char a9,
nlohmann::json_abi_v3_11_3::detail::dtoa_impl *a10)
{
long long cached_power_for_binary_exponent; // rax
int v11; // rdx^4
int v12; // r12^4
int v13; // edx
char v14; // r15
int v15; // edx
int v16; // ebx
int v17; // r13d
int v18; // edx
int v19; // ebp
char v20; // al
int v21; // edx
int v22; // r9d
long long v24; // rsi
long long v26; // [rsp+58h] [rbp-50h] BYREF
int v27; // [rsp+60h] [rbp-48h]
long long v28; // [rsp+68h] [rbp-40h] BYREF
int v29; // [rsp+70h] [rbp-38h]
v26 = a4;
v27 = a5;
if ( (_DWORD)a10 == a5 )
{
if ( (_DWORD)a10 == a8 )
{
cached_power_for_binary_exponent = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(
(nlohmann::json_abi_v3_11_3::detail::dtoa_impl *)(unsigned int)a10,
a2);
v12 = v11;
v28 = cached_power_for_binary_exponent;
v29 = v13;
v14 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(&a7, &v28);
v16 = v15;
v17 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(&v26, &v28);
v19 = v18;
v20 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(&a9, &v28);
*a3 = -v12;
return nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_digit_gen(
a1,
a2,
(_DWORD)a3,
v17 + 1,
v19,
v22,
v14,
v16,
v20 - 1,
v21);
}
v24 = 17740LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
17740LL,
"GGML_ASSERT(%s) failed",
"m_plus.e == v.e");
}
else
{
v24 = 17739LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
17739LL,
"GGML_ASSERT(%s) failed",
"m_plus.e == m_minus.e");
}
return nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
v24);
}
|
grisu2:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV RAX,RDI
MOV qword ptr [RSP + 0x58],RCX
MOV dword ptr [RSP + 0x60],R8D
MOV EDI,dword ptr [RSP + 0xc8]
CMP EDI,R8D
JNZ 0x001766d6
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x28],RSI
MOV qword ptr [RSP + 0x30],RDX
LEA R13,[RSP + 0xb0]
CMP EDI,dword ptr [R13 + 0x8]
JNZ 0x001766f2
CALL 0x001767ad
MOV R12,RDX
LEA R14,[RSP + 0x68]
MOV qword ptr [R14],RAX
MOV dword ptr [R14 + 0x8],R12D
MOV RDI,R13
MOV RSI,R14
CALL 0x001768ee
MOV R15,RAX
MOV EBX,EDX
LEA RDI,[RSP + 0x58]
MOV RSI,R14
CALL 0x001768ee
MOV R13,RAX
MOV EBP,EDX
LEA RDI,[RSP + 0xc0]
MOV RSI,R14
CALL 0x001768ee
INC R13
DEC RAX
SHR R12,0x20
NEG R12D
MOV RCX,qword ptr [RSP + 0x30]
MOV dword ptr [RCX],R12D
MOV qword ptr [RSP + 0x48],R15
MOV dword ptr [RSP + 0x50],EBX
MOV qword ptr [RSP + 0x38],RAX
MOV dword ptr [RSP + 0x40],EDX
MOVUPS XMM0,xmmword ptr [RSP + 0x38]
MOVUPS xmmword ptr [RSP + 0x10],XMM0
MOVUPS XMM0,xmmword ptr [RSP + 0x48]
MOVUPS xmmword ptr [RSP],XMM0
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RSP + 0x28]
MOV RDX,RCX
MOV RCX,R13
MOV R8D,EBP
CALL 0x0017694a
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001766d6:
LEA RDI,[0x24bd8e]
LEA RDX,[0x24bdda]
LEA RCX,[0x24dbd3]
MOV ESI,0x454b
JMP 0x0017670c
LAB_001766f2:
LEA RDI,[0x24bd8e]
LEA RDX,[0x24bdda]
LEA RCX,[0x24dbe9]
MOV ESI,0x454c
LAB_0017670c:
XOR EAX,EAX
CALL 0x00120250
|
/* nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(char*, int&, int&,
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp,
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp,
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp) */
void nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2
(int8 param_1,int8 param_2,int *param_3,int8 param_4,int param_5,
int8 param_6,int8 param_7,int param_8,int8 param_9,int param_10)
{
int4 uVar1;
char *pcVar2;
int4 extraout_EDX;
int8 uVar3;
int1 auVar4 [12];
int1 auVar5 [12];
int1 auVar6 [16];
int4 uStack_64;
int8 local_50;
int local_48;
int8 local_40;
int4 local_38;
local_50 = param_4;
local_48 = param_5;
if (param_10 == param_5) {
if (param_10 == param_8) {
auVar6 = get_cached_power_for_binary_exponent(param_10);
local_40 = auVar6._0_8_;
local_38 = auVar6._8_4_;
uVar1 = diyfp::mul((diyfp *)¶m_7,(diyfp *)&local_40);
auVar4 = diyfp::mul((diyfp *)&local_50,(diyfp *)&local_40);
auVar5 = diyfp::mul((diyfp *)¶m_9,(diyfp *)&local_40);
*param_3 = -auVar6._12_4_;
grisu2_digit_gen(param_1,param_2,param_3,auVar4._0_8_ + 1,auVar4._8_4_,param_6,uVar1,
extraout_EDX,auVar5._0_8_ + -1,CONCAT44(uStack_64,auVar5._8_4_));
return;
}
pcVar2 = "m_plus.e == v.e";
uVar3 = 0x454c;
}
else {
pcVar2 = "m_plus.e == m_minus.e";
uVar3 = 0x454b;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",uVar3,
"GGML_ASSERT(%s) failed",pcVar2);
}
|
|
64,532 |
test_conc181
|
eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c
|
static int test_conc181(MYSQL *mysql)
{
MYSQL_STMT *stmt;
int rc;
MYSQL_BIND bind;
const char *stmt_str= "SELECT a FROM t1";
float f=1;
my_bool err= 0;
rc= mysql_query(mysql, "DROP TABLE IF EXISTS t1");
check_mysql_rc(rc, mysql);
rc= mysql_query(mysql, "CREATE TABLE t1 (a int)");
check_mysql_rc(rc, mysql);
rc= mysql_query(mysql, "INSERT INTO t1 VALUES(1073741825)");
check_mysql_rc(rc, mysql);
stmt= mysql_stmt_init(mysql);
rc= mysql_stmt_prepare(stmt, SL(stmt_str));
check_stmt_rc(rc, stmt);
rc= mysql_stmt_execute(stmt);
check_stmt_rc(rc, stmt);
memset(&bind, 0, sizeof(MYSQL_BIND));
bind.buffer= &f;
bind.error= &err;
bind.buffer_type= MYSQL_TYPE_FLOAT;
rc= mysql_stmt_bind_result(stmt, &bind);
check_stmt_rc(rc, stmt);
rc= mysql_stmt_fetch(stmt);
diag("rc=%d err=%d float=%f, %d", rc, err, f, MYSQL_DATA_TRUNCATED);
rc= mysql_stmt_close(stmt);
rc= mysql_query(mysql, "DROP TABLE IF EXISTS t1");
check_mysql_rc(rc, mysql);
return OK;
}
|
O0
|
c
|
test_conc181:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0x10(%rbp)
leaq 0x4c23f(%rip), %rax # 0x66525
movq %rax, -0x98(%rbp)
movss 0x4ad0f(%rip), %xmm0 # 0x65004
movss %xmm0, -0x9c(%rbp)
movb $0x0, -0x9d(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x4c327(%rip), %rsi # 0x66636
callq 0x38a70
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x1a375
movl -0x1c(%rbp), %eax
movl %eax, -0xac(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3c3f0
movq %rax, -0xa8(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3c3c0
movl -0xac(%rbp), %esi
movq -0xa8(%rbp), %rdx
movl %eax, %ecx
leaq 0x4b380(%rip), %rdi # 0x656d5
leaq 0x4bd11(%rip), %r8 # 0x6606d
movl $0x1127, %r9d # imm = 0x1127
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x4(%rbp)
jmp 0x1a663
jmp 0x1a377
movq -0x10(%rbp), %rdi
leaq 0x4c168(%rip), %rsi # 0x664ea
callq 0x38a70
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x1a3e8
movl -0x1c(%rbp), %eax
movl %eax, -0xbc(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3c3f0
movq %rax, -0xb8(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3c3c0
movl -0xbc(%rbp), %esi
movq -0xb8(%rbp), %rdx
movl %eax, %ecx
leaq 0x4b30d(%rip), %rdi # 0x656d5
leaq 0x4bc9e(%rip), %r8 # 0x6606d
movl $0x1129, %r9d # imm = 0x1129
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x4(%rbp)
jmp 0x1a663
jmp 0x1a3ea
movq -0x10(%rbp), %rdi
leaq 0x4ce4d(%rip), %rsi # 0x67242
callq 0x38a70
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x1a45b
movl -0x1c(%rbp), %eax
movl %eax, -0xcc(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3c3f0
movq %rax, -0xc8(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3c3c0
movl -0xcc(%rbp), %esi
movq -0xc8(%rbp), %rdx
movl %eax, %ecx
leaq 0x4b29a(%rip), %rdi # 0x656d5
leaq 0x4bc2b(%rip), %r8 # 0x6606d
movl $0x112b, %r9d # imm = 0x112B
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x4(%rbp)
jmp 0x1a663
jmp 0x1a45d
movq -0x10(%rbp), %rdi
callq 0x44950
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x98(%rbp), %rdi
callq 0x141a0
movq -0xe0(%rbp), %rdi
movq -0xd8(%rbp), %rsi
movq %rax, %rdx
callq 0x45070
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x1a4e0
movq -0x18(%rbp), %rdi
callq 0x43fd0
movq %rax, %rsi
leaq 0x4b0cf(%rip), %rdi # 0x65590
leaq 0x4bba5(%rip), %rdx # 0x6606d
movl $0x112f, %ecx # imm = 0x112F
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x4(%rbp)
jmp 0x1a663
jmp 0x1a4e2
movq -0x18(%rbp), %rdi
callq 0x46580
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x1a526
movq -0x18(%rbp), %rdi
callq 0x43fd0
movq %rax, %rsi
leaq 0x4b089(%rip), %rdi # 0x65590
leaq 0x4bb5f(%rip), %rdx # 0x6606d
movl $0x1132, %ecx # imm = 0x1132
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x4(%rbp)
jmp 0x1a663
jmp 0x1a528
leaq -0x90(%rbp), %rdi
xorl %esi, %esi
movl $0x70, %edx
callq 0x14260
leaq -0x9c(%rbp), %rax
movq %rax, -0x80(%rbp)
leaq -0x9d(%rbp), %rax
movq %rax, -0x78(%rbp)
movl $0x4, -0x30(%rbp)
movq -0x18(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x43940
movsbl %al, %eax
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x1a5a6
movq -0x18(%rbp), %rdi
callq 0x43fd0
movq %rax, %rsi
leaq 0x4b009(%rip), %rdi # 0x65590
leaq 0x4badf(%rip), %rdx # 0x6606d
movl $0x1139, %ecx # imm = 0x1139
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x4(%rbp)
jmp 0x1a663
jmp 0x1a5a8
movq -0x18(%rbp), %rdi
callq 0x44020
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %esi
movsbl -0x9d(%rbp), %edx
movss -0x9c(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x4cc93(%rip), %rdi # 0x67264
movl $0x65, %ecx
movb $0x1, %al
callq 0x2fc40
movq -0x18(%rbp), %rdi
callq 0x43eb0
movsbl %al, %eax
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x4c03f(%rip), %rsi # 0x66636
callq 0x38a70
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x1a65a
movl -0x1c(%rbp), %eax
movl %eax, -0xec(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3c3f0
movq %rax, -0xe8(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3c3c0
movl -0xec(%rbp), %esi
movq -0xe8(%rbp), %rdx
movl %eax, %ecx
leaq 0x4b098(%rip), %rdi # 0x656d5
leaq 0x4ba29(%rip), %r8 # 0x6606d
movl $0x1140, %r9d # imm = 0x1140
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x4(%rbp)
jmp 0x1a663
jmp 0x1a65c
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xf0, %rsp
popq %rbp
retq
nop
|
test_conc181:
push rbp
mov rbp, rsp
sub rsp, 0F0h
mov [rbp+var_10], rdi
lea rax, aSelectAFromT1; "SELECT a FROM t1"
mov [rbp+var_98], rax
movss xmm0, cs:dword_65004
movss [rbp+var_9C], xmm0
mov [rbp+var_9D], 0
mov rdi, [rbp+var_10]
lea rsi, aDropTableIfExi_0; "DROP TABLE IF EXISTS t1"
call mysql_query
mov [rbp+var_1C], eax
cmp [rbp+var_1C], 0
jz short loc_1A375
mov eax, [rbp+var_1C]
mov [rbp+var_AC], eax
mov rdi, [rbp+var_10]
call mysql_error
mov [rbp+var_A8], rax
mov rdi, [rbp+var_10]
call mysql_errno
mov esi, [rbp+var_AC]
mov rdx, [rbp+var_A8]
mov ecx, eax
lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d"
lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov r9d, 1127h
mov al, 0
call diag
mov [rbp+var_4], 1
jmp loc_1A663
loc_1A375:
jmp short $+2
loc_1A377:
mov rdi, [rbp+var_10]
lea rsi, aCreateTableT1A; "CREATE TABLE t1 (a int)"
call mysql_query
mov [rbp+var_1C], eax
cmp [rbp+var_1C], 0
jz short loc_1A3E8
mov eax, [rbp+var_1C]
mov [rbp+var_BC], eax
mov rdi, [rbp+var_10]
call mysql_error
mov [rbp+var_B8], rax
mov rdi, [rbp+var_10]
call mysql_errno
mov esi, [rbp+var_BC]
mov rdx, [rbp+var_B8]
mov ecx, eax
lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d"
lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov r9d, 1129h
mov al, 0
call diag
mov [rbp+var_4], 1
jmp loc_1A663
loc_1A3E8:
jmp short $+2
loc_1A3EA:
mov rdi, [rbp+var_10]
lea rsi, aInsertIntoT1Va_4; "INSERT INTO t1 VALUES(1073741825)"
call mysql_query
mov [rbp+var_1C], eax
cmp [rbp+var_1C], 0
jz short loc_1A45B
mov eax, [rbp+var_1C]
mov [rbp+var_CC], eax
mov rdi, [rbp+var_10]
call mysql_error
mov [rbp+var_C8], rax
mov rdi, [rbp+var_10]
call mysql_errno
mov esi, [rbp+var_CC]
mov rdx, [rbp+var_C8]
mov ecx, eax
lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d"
lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov r9d, 112Bh
mov al, 0
call diag
mov [rbp+var_4], 1
jmp loc_1A663
loc_1A45B:
jmp short $+2
loc_1A45D:
mov rdi, [rbp+var_10]
call mysql_stmt_init
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov [rbp+var_E0], rax
mov rax, [rbp+var_98]
mov [rbp+var_D8], rax
mov rdi, [rbp+var_98]
call _strlen
mov rdi, [rbp+var_E0]
mov rsi, [rbp+var_D8]
mov rdx, rax
call mysql_stmt_prepare
mov [rbp+var_1C], eax
cmp [rbp+var_1C], 0
jz short loc_1A4E0
mov rdi, [rbp+var_18]
call mysql_stmt_error
mov rsi, rax
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 112Fh
mov al, 0
call diag
mov [rbp+var_4], 1
jmp loc_1A663
loc_1A4E0:
jmp short $+2
loc_1A4E2:
mov rdi, [rbp+var_18]
call mysql_stmt_execute
mov [rbp+var_1C], eax
cmp [rbp+var_1C], 0
jz short loc_1A526
mov rdi, [rbp+var_18]
call mysql_stmt_error
mov rsi, rax
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 1132h
mov al, 0
call diag
mov [rbp+var_4], 1
jmp loc_1A663
loc_1A526:
jmp short $+2
loc_1A528:
lea rdi, [rbp+var_90]
xor esi, esi
mov edx, 70h ; 'p'
call _memset
lea rax, [rbp+var_9C]
mov [rbp+var_80], rax
lea rax, [rbp+var_9D]
mov [rbp+var_78], rax
mov [rbp+var_30], 4
mov rdi, [rbp+var_18]
lea rsi, [rbp+var_90]
call mysql_stmt_bind_result
movsx eax, al
mov [rbp+var_1C], eax
cmp [rbp+var_1C], 0
jz short loc_1A5A6
mov rdi, [rbp+var_18]
call mysql_stmt_error
mov rsi, rax
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 1139h
mov al, 0
call diag
mov [rbp+var_4], 1
jmp loc_1A663
loc_1A5A6:
jmp short $+2
loc_1A5A8:
mov rdi, [rbp+var_18]
call mysql_stmt_fetch
mov [rbp+var_1C], eax
mov esi, [rbp+var_1C]
movsx edx, [rbp+var_9D]
movss xmm0, [rbp+var_9C]
cvtss2sd xmm0, xmm0
lea rdi, aRcDErrDFloatFD; "rc=%d err=%d float=%f, %d"
mov ecx, 65h ; 'e'
mov al, 1
call diag
mov rdi, [rbp+var_18]
call mysql_stmt_close
movsx eax, al
mov [rbp+var_1C], eax
mov rdi, [rbp+var_10]
lea rsi, aDropTableIfExi_0; "DROP TABLE IF EXISTS t1"
call mysql_query
mov [rbp+var_1C], eax
cmp [rbp+var_1C], 0
jz short loc_1A65A
mov eax, [rbp+var_1C]
mov [rbp+var_EC], eax
mov rdi, [rbp+var_10]
call mysql_error
mov [rbp+var_E8], rax
mov rdi, [rbp+var_10]
call mysql_errno
mov esi, [rbp+var_EC]
mov rdx, [rbp+var_E8]
mov ecx, eax
lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d"
lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov r9d, 1140h
mov al, 0
call diag
mov [rbp+var_4], 1
jmp short loc_1A663
loc_1A65A:
jmp short $+2
loc_1A65C:
mov [rbp+var_4], 0
loc_1A663:
mov eax, [rbp+var_4]
add rsp, 0F0h
pop rbp
retn
|
long long test_conc181(long long a1)
{
int v1; // eax
int v2; // eax
int v3; // eax
long long v4; // rax
int v5; // eax
int v6; // r8d
int v7; // r9d
int v8; // eax
int v9; // r8d
int v10; // r9d
char v11; // al
int v12; // eax
int v13; // r8d
int v14; // r9d
double v15; // xmm0_8
int v16; // r8d
int v17; // r9d
int v18; // eax
int v20; // [rsp+4h] [rbp-ECh]
int v21; // [rsp+8h] [rbp-E8h]
int v22; // [rsp+28h] [rbp-C8h]
int v23; // [rsp+38h] [rbp-B8h]
int v24; // [rsp+48h] [rbp-A8h]
char v25; // [rsp+53h] [rbp-9Dh] BYREF
float v26; // [rsp+54h] [rbp-9Ch] BYREF
const char *v27; // [rsp+58h] [rbp-98h]
_BYTE v28[16]; // [rsp+60h] [rbp-90h] BYREF
float *v29; // [rsp+70h] [rbp-80h]
char *v30; // [rsp+78h] [rbp-78h]
int v31; // [rsp+C0h] [rbp-30h]
int v32; // [rsp+D4h] [rbp-1Ch]
long long v33; // [rsp+D8h] [rbp-18h]
long long v34; // [rsp+E0h] [rbp-10h]
v34 = a1;
v27 = "SELECT a FROM t1";
v26 = 1.0;
v25 = 0;
v32 = mysql_query(a1, "DROP TABLE IF EXISTS t1");
if ( v32 )
{
v24 = mysql_error(v34);
v1 = mysql_errno(v34);
diag(
(unsigned int)"Error (%d): %s (%d) in %s line %d",
v32,
v24,
v1,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
4391);
return 1;
}
else
{
v32 = mysql_query(v34, "CREATE TABLE t1 (a int)");
if ( v32 )
{
v23 = mysql_error(v34);
v2 = mysql_errno(v34);
diag(
(unsigned int)"Error (%d): %s (%d) in %s line %d",
v32,
v23,
v2,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
4393);
return 1;
}
else
{
v32 = mysql_query(v34, "INSERT INTO t1 VALUES(1073741825)");
if ( v32 )
{
v22 = mysql_error(v34);
v3 = mysql_errno(v34);
diag(
(unsigned int)"Error (%d): %s (%d) in %s line %d",
v32,
v22,
v3,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
4395);
return 1;
}
else
{
v33 = mysql_stmt_init(v34);
v4 = strlen(v27);
if ( (unsigned int)mysql_stmt_prepare(v33, v27, v4) )
{
v5 = mysql_stmt_error(v33);
diag(
(unsigned int)"Error: %s (%s: %d)",
v5,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
4399,
v6,
v7);
return 1;
}
else
{
v32 = mysql_stmt_execute(v33);
if ( v32 )
{
v8 = mysql_stmt_error(v33);
diag(
(unsigned int)"Error: %s (%s: %d)",
v8,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
4402,
v9,
v10);
return 1;
}
else
{
memset(v28, 0LL, 112LL);
v29 = &v26;
v30 = &v25;
v31 = 4;
v11 = mysql_stmt_bind_result(v33, v28);
v32 = v11;
if ( v11 )
{
v12 = mysql_stmt_error(v33);
diag(
(unsigned int)"Error: %s (%s: %d)",
v12,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
4409,
v13,
v14);
return 1;
}
else
{
v32 = mysql_stmt_fetch(v33);
v15 = v26;
diag((unsigned int)"rc=%d err=%d float=%f, %d", v32, v25, 101, v16, v17);
v32 = (char)mysql_stmt_close(v33);
v32 = mysql_query(v34, "DROP TABLE IF EXISTS t1", v15);
if ( v32 )
{
v20 = v32;
v21 = mysql_error(v34);
v18 = mysql_errno(v34);
diag(
(unsigned int)"Error (%d): %s (%d) in %s line %d",
v20,
v21,
v18,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
4416);
return 1;
}
else
{
return 0;
}
}
}
}
}
}
}
}
|
test_conc181:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xf0
MOV qword ptr [RBP + -0x10],RDI
LEA RAX,[0x166525]
MOV qword ptr [RBP + -0x98],RAX
MOVSS XMM0,dword ptr [0x00165004]
MOVSS dword ptr [RBP + -0x9c],XMM0
MOV byte ptr [RBP + -0x9d],0x0
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x166636]
CALL 0x00138a70
MOV dword ptr [RBP + -0x1c],EAX
CMP dword ptr [RBP + -0x1c],0x0
JZ 0x0011a375
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0xac],EAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0013c3f0
MOV qword ptr [RBP + -0xa8],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0013c3c0
MOV ESI,dword ptr [RBP + -0xac]
MOV RDX,qword ptr [RBP + -0xa8]
MOV ECX,EAX
LEA RDI,[0x1656d5]
LEA R8,[0x16606d]
MOV R9D,0x1127
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0011a663
LAB_0011a375:
JMP 0x0011a377
LAB_0011a377:
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x1664ea]
CALL 0x00138a70
MOV dword ptr [RBP + -0x1c],EAX
CMP dword ptr [RBP + -0x1c],0x0
JZ 0x0011a3e8
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0xbc],EAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0013c3f0
MOV qword ptr [RBP + -0xb8],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0013c3c0
MOV ESI,dword ptr [RBP + -0xbc]
MOV RDX,qword ptr [RBP + -0xb8]
MOV ECX,EAX
LEA RDI,[0x1656d5]
LEA R8,[0x16606d]
MOV R9D,0x1129
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0011a663
LAB_0011a3e8:
JMP 0x0011a3ea
LAB_0011a3ea:
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x167242]
CALL 0x00138a70
MOV dword ptr [RBP + -0x1c],EAX
CMP dword ptr [RBP + -0x1c],0x0
JZ 0x0011a45b
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0xcc],EAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0013c3f0
MOV qword ptr [RBP + -0xc8],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0013c3c0
MOV ESI,dword ptr [RBP + -0xcc]
MOV RDX,qword ptr [RBP + -0xc8]
MOV ECX,EAX
LEA RDI,[0x1656d5]
LEA R8,[0x16606d]
MOV R9D,0x112b
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0011a663
LAB_0011a45b:
JMP 0x0011a45d
LAB_0011a45d:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00144950
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0xe0],RAX
MOV RAX,qword ptr [RBP + -0x98]
MOV qword ptr [RBP + -0xd8],RAX
MOV RDI,qword ptr [RBP + -0x98]
CALL 0x001141a0
MOV RDI,qword ptr [RBP + -0xe0]
MOV RSI,qword ptr [RBP + -0xd8]
MOV RDX,RAX
CALL 0x00145070
MOV dword ptr [RBP + -0x1c],EAX
CMP dword ptr [RBP + -0x1c],0x0
JZ 0x0011a4e0
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00143fd0
MOV RSI,RAX
LEA RDI,[0x165590]
LEA RDX,[0x16606d]
MOV ECX,0x112f
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0011a663
LAB_0011a4e0:
JMP 0x0011a4e2
LAB_0011a4e2:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00146580
MOV dword ptr [RBP + -0x1c],EAX
CMP dword ptr [RBP + -0x1c],0x0
JZ 0x0011a526
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00143fd0
MOV RSI,RAX
LEA RDI,[0x165590]
LEA RDX,[0x16606d]
MOV ECX,0x1132
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0011a663
LAB_0011a526:
JMP 0x0011a528
LAB_0011a528:
LEA RDI,[RBP + -0x90]
XOR ESI,ESI
MOV EDX,0x70
CALL 0x00114260
LEA RAX,[RBP + -0x9c]
MOV qword ptr [RBP + -0x80],RAX
LEA RAX,[RBP + -0x9d]
MOV qword ptr [RBP + -0x78],RAX
MOV dword ptr [RBP + -0x30],0x4
MOV RDI,qword ptr [RBP + -0x18]
LEA RSI,[RBP + -0x90]
CALL 0x00143940
MOVSX EAX,AL
MOV dword ptr [RBP + -0x1c],EAX
CMP dword ptr [RBP + -0x1c],0x0
JZ 0x0011a5a6
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00143fd0
MOV RSI,RAX
LEA RDI,[0x165590]
LEA RDX,[0x16606d]
MOV ECX,0x1139
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0011a663
LAB_0011a5a6:
JMP 0x0011a5a8
LAB_0011a5a8:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00144020
MOV dword ptr [RBP + -0x1c],EAX
MOV ESI,dword ptr [RBP + -0x1c]
MOVSX EDX,byte ptr [RBP + -0x9d]
MOVSS XMM0,dword ptr [RBP + -0x9c]
CVTSS2SD XMM0,XMM0
LEA RDI,[0x167264]
MOV ECX,0x65
MOV AL,0x1
CALL 0x0012fc40
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00143eb0
MOVSX EAX,AL
MOV dword ptr [RBP + -0x1c],EAX
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x166636]
CALL 0x00138a70
MOV dword ptr [RBP + -0x1c],EAX
CMP dword ptr [RBP + -0x1c],0x0
JZ 0x0011a65a
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0xec],EAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0013c3f0
MOV qword ptr [RBP + -0xe8],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0013c3c0
MOV ESI,dword ptr [RBP + -0xec]
MOV RDX,qword ptr [RBP + -0xe8]
MOV ECX,EAX
LEA RDI,[0x1656d5]
LEA R8,[0x16606d]
MOV R9D,0x1140
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0011a663
LAB_0011a65a:
JMP 0x0011a65c
LAB_0011a65c:
MOV dword ptr [RBP + -0x4],0x0
LAB_0011a663:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0xf0
POP RBP
RET
|
int4 test_conc181(int8 param_1)
{
char *pcVar1;
char cVar2;
int iVar3;
int4 uVar4;
int8 uVar5;
size_t sVar6;
char local_a5;
float local_a4;
char *local_a0;
int1 local_98 [16];
float *local_88;
char *local_80;
int4 local_38;
int local_24;
int8 local_20;
int8 local_18;
int4 local_c;
local_a0 = "SELECT a FROM t1";
local_a4 = DAT_00165004;
local_a5 = '\0';
local_18 = param_1;
iVar3 = mysql_query(param_1,"DROP TABLE IF EXISTS t1");
local_24 = iVar3;
if (iVar3 == 0) {
iVar3 = mysql_query(local_18,"CREATE TABLE t1 (a int)");
local_24 = iVar3;
if (iVar3 == 0) {
iVar3 = mysql_query(local_18,"INSERT INTO t1 VALUES(1073741825)");
local_24 = iVar3;
if (iVar3 == 0) {
uVar5 = mysql_stmt_init(local_18);
pcVar1 = local_a0;
local_20 = uVar5;
sVar6 = strlen(local_a0);
local_24 = mysql_stmt_prepare(uVar5,pcVar1,sVar6);
if (local_24 == 0) {
local_24 = mysql_stmt_execute(local_20);
if (local_24 == 0) {
memset(local_98,0,0x70);
local_88 = &local_a4;
local_80 = &local_a5;
local_38 = 4;
cVar2 = mysql_stmt_bind_result(local_20,local_98);
local_24 = (int)cVar2;
if (local_24 == 0) {
local_24 = mysql_stmt_fetch(local_20);
diag((double)local_a4,"rc=%d err=%d float=%f, %d",local_24,(int)local_a5,0x65);
cVar2 = mysql_stmt_close(local_20);
local_24 = (int)cVar2;
iVar3 = mysql_query(local_18,"DROP TABLE IF EXISTS t1");
if (iVar3 == 0) {
local_c = 0;
}
else {
local_24 = iVar3;
uVar5 = mysql_error(local_18);
uVar4 = mysql_errno(local_18);
diag("Error (%d): %s (%d) in %s line %d",iVar3,uVar5,uVar4,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c"
,0x1140);
local_c = 1;
}
}
else {
uVar5 = mysql_stmt_error(local_20);
diag("Error: %s (%s: %d)",uVar5,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c"
,0x1139);
local_c = 1;
}
}
else {
uVar5 = mysql_stmt_error(local_20);
diag("Error: %s (%s: %d)",uVar5,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c"
,0x1132);
local_c = 1;
}
}
else {
uVar5 = mysql_stmt_error(local_20);
diag("Error: %s (%s: %d)",uVar5,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
0x112f);
local_c = 1;
}
}
else {
uVar5 = mysql_error(local_18);
uVar4 = mysql_errno(local_18);
diag("Error (%d): %s (%d) in %s line %d",iVar3,uVar5,uVar4,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
0x112b);
local_c = 1;
}
}
else {
uVar5 = mysql_error(local_18);
uVar4 = mysql_errno(local_18);
diag("Error (%d): %s (%d) in %s line %d",iVar3,uVar5,uVar4,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
0x1129);
local_c = 1;
}
}
else {
uVar5 = mysql_error(local_18);
uVar4 = mysql_errno(local_18);
diag("Error (%d): %s (%d) in %s line %d",iVar3,uVar5,uVar4,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",0x1127)
;
local_c = 1;
}
return local_c;
}
|
|
64,533 |
ggml_easy::ctx::build_graph(std::function<void (ggml_context*, ggml_cgraph*, ggml_easy::ctx::build_utils&)>)
|
ngxson[P]ggml-easy/ggml-easy.h
|
void build_graph(std::function<void(ggml_context *, ggml_cgraph *, build_utils &)> builder_fn) {
ggml_free(ctx_gf);
struct ggml_init_params params = {
/*.mem_size =*/ buf_compute_meta.size(),
/*.mem_buffer =*/ buf_compute_meta.data(),
/*.no_alloc =*/ true,
};
ctx_gf = ggml_init(params);
ggml_backend_sched_reset(sched.get());
gf = ggml_new_graph_custom(ctx_gf, max_nodes, false);
build_utils utils(ctx_gf, gf);
builder_fn(ctx_gf, gf, utils);
ggml_backend_sched_alloc_graph(sched.get(), gf);
dbg_printed_tensors = std::move(utils.printed_tensors);
}
|
O0
|
c
|
ggml_easy::ctx::build_graph(std::function<void (ggml_context*, ggml_cgraph*, ggml_easy::ctx::build_utils&)>):
subq $0xb8, %rsp
movq %rsi, 0x28(%rsp)
movq %rdi, 0xb0(%rsp)
movq %rsi, 0xa8(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x48(%rax), %rdi
callq 0x90c0
movq 0x20(%rsp), %rdi
addq $0x50, %rdi
movq %rdi, 0x18(%rsp)
callq 0x10cb0
movq 0x18(%rsp), %rdi
movq %rax, 0x90(%rsp)
callq 0xe010
movq %rax, 0x98(%rsp)
movb $0x1, 0xa0(%rsp)
movq 0xa0(%rsp), %rax
movq %rax, 0x80(%rsp)
movups 0x90(%rsp), %xmm0
movaps %xmm0, 0x70(%rsp)
movq 0x80(%rsp), %rcx
movq %rsp, %rax
movq %rcx, 0x10(%rax)
movaps 0x70(%rsp), %xmm0
movups %xmm0, (%rax)
callq 0x9340
movq 0x20(%rsp), %rdi
movq %rax, 0x48(%rdi)
addq $0xb8, %rdi
callq 0x12460
movq %rax, %rdi
callq 0x9290
movq 0x20(%rsp), %rax
movq 0x48(%rax), %rdi
movslq 0x68(%rax), %rsi
xorl %edx, %edx
callq 0x95f0
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x40(%rax)
movq 0x40(%rax), %rdx
movq 0x48(%rax), %rsi
leaq 0x48(%rsp), %rdi
movq %rdi, 0x30(%rsp)
callq 0x12490
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rcx
movq 0x40(%rax), %rdx
movq 0x48(%rax), %rsi
callq 0x124d0
jmp 0xd462
movq 0x20(%rsp), %rdi
addq $0xb8, %rdi
callq 0x12460
movq %rax, %rdi
movq 0x20(%rsp), %rax
movq 0x40(%rax), %rsi
callq 0x9100
jmp 0xd486
movq 0x20(%rsp), %rdi
leaq 0x48(%rsp), %rsi
addq $0x10, %rsi
addq $0xd8, %rdi
callq 0x12520
leaq 0x48(%rsp), %rdi
callq 0x12560
addq $0xb8, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x40(%rsp)
movl %eax, 0x3c(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x12560
movq 0x40(%rsp), %rdi
callq 0x9610
nopw %cs:(%rax,%rax)
nop
|
_ZN9ggml_easy3ctx11build_graphESt8functionIFvP12ggml_contextP11ggml_cgraphRNS0_11build_utilsEEE:
sub rsp, 0B8h
mov [rsp+0B8h+var_90], rsi
mov [rsp+0B8h+var_8], rdi
mov [rsp+0B8h+var_10], rsi
mov rax, [rsp+0B8h+var_8]
mov [rsp+0B8h+var_98], rax
mov rdi, [rax+48h]
call _ggml_free
mov rdi, [rsp+0B8h+var_98]
add rdi, 50h ; 'P'
mov [rsp+0B8h+var_A0], rdi
call _ZNKSt6vectorIhSaIhEE4sizeEv; std::vector<uchar>::size(void)
mov rdi, [rsp+0B8h+var_A0]
mov qword ptr [rsp+0B8h+var_28], rax
call _ZNSt6vectorIhSaIhEE4dataEv; std::vector<uchar>::data(void)
mov qword ptr [rsp+0B8h+var_28+8], rax
mov byte ptr [rsp+0B8h+var_18], 1
mov rax, [rsp+0B8h+var_18]
mov [rsp+0B8h+var_38], rax
movups xmm0, [rsp+0B8h+var_28]
movaps [rsp+0B8h+var_48], xmm0
mov rcx, [rsp+0B8h+var_38]
mov rax, rsp
mov [rax+10h], rcx
movaps xmm0, [rsp+0B8h+var_48]
movups xmmword ptr [rax], xmm0
call _ggml_init
mov rdi, [rsp+0B8h+var_98]
mov [rdi+48h], rax
add rdi, 0B8h
call _ZNKSt10unique_ptrI18ggml_backend_sched26ggml_backend_sched_deleterE3getEv; std::unique_ptr<ggml_backend_sched,ggml_backend_sched_deleter>::get(void)
mov rdi, rax
call _ggml_backend_sched_reset
mov rax, [rsp+0B8h+var_98]
mov rdi, [rax+48h]
movsxd rsi, dword ptr [rax+68h]
xor edx, edx
call _ggml_new_graph_custom
mov rcx, rax
mov rax, [rsp+0B8h+var_98]
mov [rax+40h], rcx
mov rdx, [rax+40h]
mov rsi, [rax+48h]
lea rdi, [rsp+0B8h+var_70]
mov [rsp+0B8h+var_88], rdi
call _ZN9ggml_easy3ctx11build_utilsC2EP12ggml_contextP11ggml_cgraph; ggml_easy::ctx::build_utils::build_utils(ggml_context *,ggml_cgraph *)
mov rax, [rsp+0B8h+var_98]
mov rdi, [rsp+0B8h+var_90]
mov rcx, [rsp+0B8h+var_88]
mov rdx, [rax+40h]
mov rsi, [rax+48h]
call _ZNKSt8functionIFvP12ggml_contextP11ggml_cgraphRN9ggml_easy3ctx11build_utilsEEEclES1_S3_S7_; std::function<void ()(ggml_context *,ggml_cgraph *,ggml_easy::ctx::build_utils &)>::operator()(ggml_context *,ggml_cgraph *,ggml_easy::ctx::build_utils &)
jmp short $+2
loc_D462:
mov rdi, [rsp+0B8h+var_98]
add rdi, 0B8h
call _ZNKSt10unique_ptrI18ggml_backend_sched26ggml_backend_sched_deleterE3getEv; std::unique_ptr<ggml_backend_sched,ggml_backend_sched_deleter>::get(void)
mov rdi, rax
mov rax, [rsp+0B8h+var_98]
mov rsi, [rax+40h]
call _ggml_backend_sched_alloc_graph
jmp short $+2
loc_D486:
mov rdi, [rsp+0B8h+var_98]
lea rsi, [rsp+0B8h+var_70]
add rsi, 10h
add rdi, 0D8h
call _ZNSt6vectorIN9ggml_easy3ctx14printed_tensorESaIS2_EEaSEOS4_; std::vector<ggml_easy::ctx::printed_tensor>::operator=(std::vector<ggml_easy::ctx::printed_tensor>&&)
lea rdi, [rsp+0B8h+var_70]; this
call _ZN9ggml_easy3ctx11build_utilsD2Ev; ggml_easy::ctx::build_utils::~build_utils()
add rsp, 0B8h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_38], rcx
mov [rsp+arg_34], eax
lea rdi, [rsp+arg_40]; this
call _ZN9ggml_easy3ctx11build_utilsD2Ev; ggml_easy::ctx::build_utils::~build_utils()
mov rdi, [rsp+arg_38]
call __Unwind_Resume
|
void ggml_easy::ctx::build_graph(long long a1, long long a2)
{
long long v2; // rdx
long long v3; // rax
long long v4; // rax
_BYTE v5[16]; // [rsp+48h] [rbp-70h] BYREF
_BYTE v6[40]; // [rsp+58h] [rbp-60h] BYREF
long long v7; // [rsp+80h] [rbp-38h]
__int128 v8; // [rsp+90h] [rbp-28h]
long long v9; // [rsp+A0h] [rbp-18h]
long long v10; // [rsp+A8h] [rbp-10h]
long long v11; // [rsp+B0h] [rbp-8h]
v11 = a1;
v10 = a2;
ggml_free(*(_QWORD *)(a1 + 72));
*(_QWORD *)&v8 = std::vector<unsigned char>::size();
*((_QWORD *)&v8 + 1) = std::vector<unsigned char>::data(a1 + 80);
LOBYTE(v9) = 1;
v7 = v9;
*(_OWORD *)&v6[24] = v8;
*(_QWORD *)(a1 + 72) = ggml_init(a1 + 80, a2, v2);
v3 = std::unique_ptr<ggml_backend_sched,ggml_backend_sched_deleter>::get(a1 + 184);
ggml_backend_sched_reset(v3);
*(_QWORD *)(a1 + 64) = ggml_new_graph_custom(*(_QWORD *)(a1 + 72), *(int *)(a1 + 104), 0LL);
ggml_easy::ctx::build_utils::build_utils(v5, *(_QWORD *)(a1 + 72), *(_QWORD *)(a1 + 64));
std::function<void ()(ggml_context *,ggml_cgraph *,ggml_easy::ctx::build_utils &)>::operator()(
a2,
*(_QWORD *)(a1 + 72),
*(_QWORD *)(a1 + 64),
v5);
v4 = std::unique_ptr<ggml_backend_sched,ggml_backend_sched_deleter>::get(a1 + 184);
ggml_backend_sched_alloc_graph(v4, *(_QWORD *)(a1 + 64));
std::vector<ggml_easy::ctx::printed_tensor>::operator=(a1 + 216, v6);
ggml_easy::ctx::build_utils::~build_utils((ggml_easy::ctx::build_utils *)v5);
}
|
build_graph:
SUB RSP,0xb8
MOV qword ptr [RSP + 0x28],RSI
MOV qword ptr [RSP + 0xb0],RDI
MOV qword ptr [RSP + 0xa8],RSI
MOV RAX,qword ptr [RSP + 0xb0]
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,qword ptr [RAX + 0x48]
CALL 0x001090c0
MOV RDI,qword ptr [RSP + 0x20]
ADD RDI,0x50
MOV qword ptr [RSP + 0x18],RDI
CALL 0x00110cb0
MOV RDI,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x90],RAX
CALL 0x0010e010
MOV qword ptr [RSP + 0x98],RAX
MOV byte ptr [RSP + 0xa0],0x1
MOV RAX,qword ptr [RSP + 0xa0]
MOV qword ptr [RSP + 0x80],RAX
MOVUPS XMM0,xmmword ptr [RSP + 0x90]
MOVAPS xmmword ptr [RSP + 0x70],XMM0
MOV RCX,qword ptr [RSP + 0x80]
MOV RAX,RSP
MOV qword ptr [RAX + 0x10],RCX
MOVAPS XMM0,xmmword ptr [RSP + 0x70]
MOVUPS xmmword ptr [RAX],XMM0
CALL 0x00109340
MOV RDI,qword ptr [RSP + 0x20]
MOV qword ptr [RDI + 0x48],RAX
ADD RDI,0xb8
CALL 0x00112460
MOV RDI,RAX
CALL 0x00109290
MOV RAX,qword ptr [RSP + 0x20]
MOV RDI,qword ptr [RAX + 0x48]
MOVSXD RSI,dword ptr [RAX + 0x68]
XOR EDX,EDX
CALL 0x001095f0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RAX + 0x40],RCX
MOV RDX,qword ptr [RAX + 0x40]
MOV RSI,qword ptr [RAX + 0x48]
LEA RDI,[RSP + 0x48]
MOV qword ptr [RSP + 0x30],RDI
CALL 0x00112490
MOV RAX,qword ptr [RSP + 0x20]
MOV RDI,qword ptr [RSP + 0x28]
MOV RCX,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RAX + 0x40]
MOV RSI,qword ptr [RAX + 0x48]
LAB_0010d45b:
CALL 0x001124d0
JMP 0x0010d462
LAB_0010d462:
MOV RDI,qword ptr [RSP + 0x20]
ADD RDI,0xb8
CALL 0x00112460
MOV RDI,RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RAX + 0x40]
CALL 0x00109100
LAB_0010d484:
JMP 0x0010d486
LAB_0010d486:
MOV RDI,qword ptr [RSP + 0x20]
LEA RSI,[RSP + 0x48]
ADD RSI,0x10
ADD RDI,0xd8
CALL 0x00112520
LEA RDI,[RSP + 0x48]
CALL 0x00112560
ADD RSP,0xb8
RET
|
/* ggml_easy::ctx::build_graph(std::function<void (ggml_context*, ggml_cgraph*,
ggml_easy::ctx::build_utils&)>) */
void __thiscall
ggml_easy::ctx::build_graph
(ctx *this,
function<void(ggml_context*,ggml_cgraph*,ggml_easy::ctx::build_utils&)> *param_2)
{
int8 uVar1;
build_utils local_70 [16];
vector avStack_60 [24];
int8 local_48;
int8 uStack_40;
int8 local_38;
int8 local_28;
int8 uStack_20;
int1 local_18;
int7 uStack_17;
function<void(ggml_context*,ggml_cgraph*,ggml_easy::ctx::build_utils&)> *local_10;
ctx *local_8;
local_10 = param_2;
local_8 = this;
ggml_free(*(int8 *)(this + 0x48));
local_28 = std::vector<unsigned_char,std::allocator<unsigned_char>>::size
((vector<unsigned_char,std::allocator<unsigned_char>> *)(this + 0x50));
uStack_40 = std::vector<unsigned_char,std::allocator<unsigned_char>>::data
((vector<unsigned_char,std::allocator<unsigned_char>> *)(this + 0x50));
local_18 = 1;
local_38 = CONCAT71(uStack_17,1);
local_48 = local_28;
uStack_20 = uStack_40;
uVar1 = ggml_init();
*(int8 *)(this + 0x48) = uVar1;
uVar1 = std::unique_ptr<ggml_backend_sched,ggml_backend_sched_deleter>::get
((unique_ptr<ggml_backend_sched,ggml_backend_sched_deleter> *)(this + 0xb8));
ggml_backend_sched_reset(uVar1);
uVar1 = ggml_new_graph_custom(*(int8 *)(this + 0x48),(long)*(int *)(this + 0x68),0);
*(int8 *)(this + 0x40) = uVar1;
build_utils::build_utils(local_70,*(ggml_context **)(this + 0x48),*(ggml_cgraph **)(this + 0x40));
/* try { // try from 0010d45b to 0010d483 has its CatchHandler @ 0010d4b2 */
std::function<void(ggml_context*,ggml_cgraph*,ggml_easy::ctx::build_utils&)>::operator()
(param_2,*(ggml_context **)(this + 0x48),*(ggml_cgraph **)(this + 0x40),local_70);
uVar1 = std::unique_ptr<ggml_backend_sched,ggml_backend_sched_deleter>::get
((unique_ptr<ggml_backend_sched,ggml_backend_sched_deleter> *)(this + 0xb8));
ggml_backend_sched_alloc_graph(uVar1,*(int8 *)(this + 0x40));
std::vector<ggml_easy::ctx::printed_tensor,std::allocator<ggml_easy::ctx::printed_tensor>>::
operator=((vector<ggml_easy::ctx::printed_tensor,std::allocator<ggml_easy::ctx::printed_tensor>> *
)(this + 0xd8),avStack_60);
build_utils::~build_utils(local_70);
return;
}
|
|
64,534 |
js_thisNumberValue
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_thisNumberValue(JSContext *ctx, JSValue this_val)
{
if (JS_IsNumber(this_val))
return js_dup(this_val);
if (JS_VALUE_GET_TAG(this_val) == JS_TAG_OBJECT) {
JSObject *p = JS_VALUE_GET_OBJ(this_val);
if (p->class_id == JS_CLASS_NUMBER) {
if (JS_IsNumber(p->u.object_data))
return js_dup(p->u.object_data);
}
}
return JS_ThrowTypeError(ctx, "not a number");
}
|
O0
|
c
|
js_thisNumberValue:
subq $0x38, %rsp
movq %rsi, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq %rdi, 0x10(%rsp)
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x569c0
cmpl $0x0, %eax
je 0xd7e12
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x279c0
movq %rax, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
jmp 0xd7e8a
movq 0x20(%rsp), %rax
cmpl $-0x1, %eax
jne 0xd7e6d
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movzwl 0x6(%rax), %eax
cmpl $0x4, %eax
jne 0xd7e6b
movq 0x8(%rsp), %rax
movq 0x30(%rax), %rdi
movq 0x38(%rax), %rsi
callq 0x569c0
cmpl $0x0, %eax
je 0xd7e69
movq 0x8(%rsp), %rax
movq 0x30(%rax), %rdi
movq 0x38(%rax), %rsi
callq 0x279c0
movq %rax, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
jmp 0xd7e8a
jmp 0xd7e6b
jmp 0xd7e6d
movq 0x10(%rsp), %rdi
leaq 0x3d61b(%rip), %rsi # 0x115494
movb $0x0, %al
callq 0x335f0
movq %rax, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rdx
addq $0x38, %rsp
retq
nopl (%rax)
|
js_thisNumberValue:
sub rsp, 38h
mov [rsp+38h+var_20], rsi
mov [rsp+38h+var_18], rdx
mov [rsp+38h+var_28], rdi
mov rdi, [rsp+38h+var_20]
mov rsi, [rsp+38h+var_18]
call JS_IsNumber
cmp eax, 0
jz short loc_D7E12
mov rdi, [rsp+38h+var_20]
mov rsi, [rsp+38h+var_18]
call js_dup
mov [rsp+38h+var_10], rax
mov [rsp+38h+var_8], rdx
jmp short loc_D7E8A
loc_D7E12:
mov rax, [rsp+38h+var_18]
cmp eax, 0FFFFFFFFh
jnz short loc_D7E6D
mov rax, [rsp+38h+var_20]
mov [rsp+38h+var_30], rax
mov rax, [rsp+38h+var_30]
movzx eax, word ptr [rax+6]
cmp eax, 4
jnz short loc_D7E6B
mov rax, [rsp+38h+var_30]
mov rdi, [rax+30h]
mov rsi, [rax+38h]
call JS_IsNumber
cmp eax, 0
jz short loc_D7E69
mov rax, [rsp+38h+var_30]
mov rdi, [rax+30h]
mov rsi, [rax+38h]
call js_dup
mov [rsp+38h+var_10], rax
mov [rsp+38h+var_8], rdx
jmp short loc_D7E8A
loc_D7E69:
jmp short $+2
loc_D7E6B:
jmp short $+2
loc_D7E6D:
mov rdi, [rsp+38h+var_28]
lea rsi, aSizeIsNotANumb+9; "not a number"
mov al, 0
call JS_ThrowTypeError
mov [rsp+38h+var_10], rax
mov [rsp+38h+var_8], rdx
loc_D7E8A:
mov rax, [rsp+38h+var_10]
mov rdx, [rsp+38h+var_8]
add rsp, 38h
retn
|
_DWORD * js_thisNumberValue(
long long a1,
long long a2,
unsigned int a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11)
{
long long v11; // rdx
long long v12; // rcx
long long v13; // r8
long long v14; // r9
__m128 v15; // xmm4
__m128 v16; // xmm5
char v18; // [rsp+0h] [rbp-38h]
if ( JS_IsNumber(a2, a3) )
return js_dup((_DWORD *)a2, a3);
if ( a3 == -1 && *(_WORD *)(a2 + 6) == 4 && JS_IsNumber(*(_QWORD *)(a2 + 48), *(_QWORD *)(a2 + 56)) )
return js_dup(*(_DWORD **)(a2 + 48), *(_QWORD *)(a2 + 56));
return (_DWORD *)JS_ThrowTypeError(
a1,
(long long)"not a number",
v11,
v12,
v13,
v14,
a4,
a5,
a6,
a7,
v15,
v16,
a10,
a11,
v18);
}
|
js_thisNumberValue:
SUB RSP,0x38
MOV qword ptr [RSP + 0x18],RSI
MOV qword ptr [RSP + 0x20],RDX
MOV qword ptr [RSP + 0x10],RDI
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x20]
CALL 0x001569c0
CMP EAX,0x0
JZ 0x001d7e12
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x20]
CALL 0x001279c0
MOV qword ptr [RSP + 0x28],RAX
MOV qword ptr [RSP + 0x30],RDX
JMP 0x001d7e8a
LAB_001d7e12:
MOV RAX,qword ptr [RSP + 0x20]
CMP EAX,-0x1
JNZ 0x001d7e6d
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x8],RAX
MOV RAX,qword ptr [RSP + 0x8]
MOVZX EAX,word ptr [RAX + 0x6]
CMP EAX,0x4
JNZ 0x001d7e6b
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x30]
MOV RSI,qword ptr [RAX + 0x38]
CALL 0x001569c0
CMP EAX,0x0
JZ 0x001d7e69
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x30]
MOV RSI,qword ptr [RAX + 0x38]
CALL 0x001279c0
MOV qword ptr [RSP + 0x28],RAX
MOV qword ptr [RSP + 0x30],RDX
JMP 0x001d7e8a
LAB_001d7e69:
JMP 0x001d7e6b
LAB_001d7e6b:
JMP 0x001d7e6d
LAB_001d7e6d:
MOV RDI,qword ptr [RSP + 0x10]
LEA RSI,[0x215494]
MOV AL,0x0
CALL 0x001335f0
MOV qword ptr [RSP + 0x28],RAX
MOV qword ptr [RSP + 0x30],RDX
LAB_001d7e8a:
MOV RAX,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RSP + 0x30]
ADD RSP,0x38
RET
|
int1 [16] js_thisNumberValue(int8 param_1,long param_2,int8 param_3)
{
int iVar1;
int1 auVar2 [16];
iVar1 = JS_IsNumber(param_2,param_3);
if (iVar1 == 0) {
if ((((int)param_3 == -1) && (*(short *)(param_2 + 6) == 4)) &&
(iVar1 = JS_IsNumber(*(int8 *)(param_2 + 0x30),*(int8 *)(param_2 + 0x38)),
iVar1 != 0)) {
auVar2 = js_dup(*(int8 *)(param_2 + 0x30),*(int8 *)(param_2 + 0x38));
}
else {
auVar2 = JS_ThrowTypeError(param_1,"not a number");
}
}
else {
auVar2 = js_dup(param_2,param_3);
}
return auVar2;
}
|
|
64,535 |
js_thisNumberValue
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_thisNumberValue(JSContext *ctx, JSValue this_val)
{
if (JS_IsNumber(this_val))
return js_dup(this_val);
if (JS_VALUE_GET_TAG(this_val) == JS_TAG_OBJECT) {
JSObject *p = JS_VALUE_GET_OBJ(this_val);
if (p->class_id == JS_CLASS_NUMBER) {
if (JS_IsNumber(p->u.object_data))
return js_dup(p->u.object_data);
}
}
return JS_ThrowTypeError(ctx, "not a number");
}
|
O2
|
c
|
js_thisNumberValue:
pushq %rbx
movq %rsi, %rbx
testl %edx, %edx
je 0x6aa6f
cmpl $0x7, %edx
je 0x6aa6f
cmpl $-0x1, %edx
jne 0x6aa5c
cmpw $0x4, 0x6(%rbx)
jne 0x6aa5c
movq 0x38(%rbx), %rdx
cmpl $0x7, %edx
je 0x6aa56
testl %edx, %edx
jne 0x6aa5c
movq 0x30(%rbx), %rbx
jmp 0x6aa6f
leaq 0x1f97f(%rip), %rsi # 0x8a3e2
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x201fd
pushq $0x6
popq %rdx
movq %rbx, %rax
popq %rbx
retq
|
js_thisNumberValue:
push rbx
mov rbx, rsi
test edx, edx
jz short loc_6AA6F
cmp edx, 7
jz short loc_6AA6F
cmp edx, 0FFFFFFFFh
jnz short loc_6AA5C
cmp word ptr [rbx+6], 4
jnz short loc_6AA5C
mov rdx, [rbx+38h]
cmp edx, 7
jz short loc_6AA56
test edx, edx
jnz short loc_6AA5C
loc_6AA56:
mov rbx, [rbx+30h]
jmp short loc_6AA6F
loc_6AA5C:
lea rsi, aSizeIsNotANumb+9; "not a number"
xor ebx, ebx
xor eax, eax
call JS_ThrowTypeError
push 6
pop rdx
loc_6AA6F:
mov rax, rbx
pop rbx
retn
|
long long js_thisNumberValue(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
long long v14; // rbx
char v16; // [rsp+0h] [rbp-8h]
v14 = a2;
if ( (_DWORD)a3 && (_DWORD)a3 != 7 )
{
if ( (_DWORD)a3 == -1 && *(_WORD *)(a2 + 6) == 4 && ((a3 = *(_QWORD *)(a2 + 56), (_DWORD)a3 == 7) || !(_DWORD)a3) )
{
return *(_QWORD *)(a2 + 48);
}
else
{
v14 = 0LL;
JS_ThrowTypeError(a1, (long long)"not a number", a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v16);
}
}
return v14;
}
|
js_thisNumberValue:
PUSH RBX
MOV RBX,RSI
TEST EDX,EDX
JZ 0x0016aa6f
CMP EDX,0x7
JZ 0x0016aa6f
CMP EDX,-0x1
JNZ 0x0016aa5c
CMP word ptr [RBX + 0x6],0x4
JNZ 0x0016aa5c
MOV RDX,qword ptr [RBX + 0x38]
CMP EDX,0x7
JZ 0x0016aa56
TEST EDX,EDX
JNZ 0x0016aa5c
LAB_0016aa56:
MOV RBX,qword ptr [RBX + 0x30]
JMP 0x0016aa6f
LAB_0016aa5c:
LEA RSI,[0x18a3e2]
XOR EBX,EBX
XOR EAX,EAX
CALL 0x001201fd
PUSH 0x6
POP RDX
LAB_0016aa6f:
MOV RAX,RBX
POP RBX
RET
|
int1 [16] js_thisNumberValue(int8 param_1,long param_2,int8 param_3)
{
int iVar1;
int1 auVar2 [16];
iVar1 = (int)param_3;
if ((iVar1 != 0) && (iVar1 != 7)) {
if ((iVar1 == -1) && (*(short *)(param_2 + 6) == 4)) {
param_3 = *(int8 *)(param_2 + 0x38);
if (((int)param_3 == 7) || ((int)param_3 == 0)) {
param_2 = *(long *)(param_2 + 0x30);
goto LAB_0016aa6f;
}
}
param_2 = 0;
JS_ThrowTypeError(param_1,"not a number");
param_3 = 6;
}
LAB_0016aa6f:
auVar2._8_8_ = param_3;
auVar2._0_8_ = param_2;
return auVar2;
}
|
|
64,536 |
my_caseup_utf8mb3
|
eloqsql/strings/ctype-utf8.c
|
static size_t my_caseup_utf8mb3(CHARSET_INFO *cs,
const char *src, size_t srclen,
char *dst, size_t dstlen)
{
my_wc_t wc;
int srcres, dstres;
const char *srcend= src + srclen;
char *dstend= dst + dstlen, *dst0= dst;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
DBUG_ASSERT(src != dst || cs->caseup_multiply == 1);
while ((src < srcend) &&
(srcres= my_utf8mb3_uni(cs, &wc, (uchar *) src, (uchar*) srcend)) > 0)
{
my_toupper_utf8mb3(uni_plane, &wc);
if ((dstres= my_uni_utf8mb3(cs, wc, (uchar*) dst, (uchar*) dstend)) <= 0)
break;
src+= srcres;
dst+= dstres;
}
return (size_t) (dst - dst0);
}
|
O0
|
c
|
my_caseup_utf8mb3:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x20(%rbp), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movq %rax, -0x58(%rbp)
jmp 0x9c01a
jmp 0x9c01c
movq -0x10(%rbp), %rcx
xorl %eax, %eax
cmpq -0x40(%rbp), %rcx
movb %al, -0x59(%rbp)
jae 0x9c04c
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rdx
movq -0x40(%rbp), %rcx
leaq -0x30(%rbp), %rsi
callq 0x9bcb0
movl %eax, -0x34(%rbp)
cmpl $0x0, %eax
setg %al
movb %al, -0x59(%rbp)
movb -0x59(%rbp), %al
testb $0x1, %al
jne 0x9c055
jmp 0x9c0a8
movq -0x58(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x9ce20
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x48(%rbp), %rcx
callq 0x9bce0
movl %eax, -0x38(%rbp)
cmpl $0x0, %eax
jg 0x9c081
jmp 0x9c0a8
movl -0x34(%rbp), %ecx
movq -0x10(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movl -0x38(%rbp), %ecx
movq -0x20(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
jmp 0x9c01c
movq -0x20(%rbp), %rax
movq -0x50(%rbp), %rcx
subq %rcx, %rax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)
|
my_caseup_utf8mb3:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov rax, [rbp+var_10]
add rax, [rbp+var_18]
mov [rbp+var_40], rax
mov rax, [rbp+var_20]
add rax, [rbp+var_28]
mov [rbp+var_48], rax
mov rax, [rbp+var_20]
mov [rbp+var_50], rax
mov rax, [rbp+var_8]
mov rax, [rax+78h]
mov [rbp+var_58], rax
jmp short $+2
loc_9C01A:
jmp short $+2
loc_9C01C:
mov rcx, [rbp+var_10]
xor eax, eax
cmp rcx, [rbp+var_40]
mov [rbp+var_59], al
jnb short loc_9C04C
mov rdi, [rbp+var_8]
mov rdx, [rbp+var_10]
mov rcx, [rbp+var_40]
lea rsi, [rbp+var_30]
call my_utf8mb3_uni
mov [rbp+var_34], eax
cmp eax, 0
setnle al
mov [rbp+var_59], al
loc_9C04C:
mov al, [rbp+var_59]
test al, 1
jnz short loc_9C055
jmp short loc_9C0A8
loc_9C055:
mov rdi, [rbp+var_58]
lea rsi, [rbp+var_30]
call my_toupper_utf8mb3
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_30]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_48]
call my_uni_utf8mb3
mov [rbp+var_38], eax
cmp eax, 0
jg short loc_9C081
jmp short loc_9C0A8
loc_9C081:
mov ecx, [rbp+var_34]
mov rax, [rbp+var_10]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_10], rax
mov ecx, [rbp+var_38]
mov rax, [rbp+var_20]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_20], rax
jmp loc_9C01C
loc_9C0A8:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_50]
sub rax, rcx
add rsp, 60h
pop rbp
retn
|
_BYTE * my_caseup_utf8mb3(long long a1, unsigned long long a2, long long a3, _BYTE *a4, long long a5, long long a6)
{
bool v7; // [rsp+7h] [rbp-59h]
long long v8; // [rsp+8h] [rbp-58h]
unsigned long long v10; // [rsp+18h] [rbp-48h]
unsigned long long v11; // [rsp+20h] [rbp-40h]
int v12; // [rsp+28h] [rbp-38h]
int v13; // [rsp+2Ch] [rbp-34h]
unsigned long long v14[2]; // [rsp+30h] [rbp-30h] BYREF
_BYTE *v15; // [rsp+40h] [rbp-20h]
long long v16; // [rsp+48h] [rbp-18h]
unsigned long long v17; // [rsp+50h] [rbp-10h]
long long v18; // [rsp+58h] [rbp-8h]
v18 = a1;
v17 = a2;
v16 = a3;
v15 = a4;
v14[1] = a5;
v11 = a3 + a2;
v10 = (unsigned long long)&a4[a5];
v8 = *(_QWORD *)(a1 + 120);
while ( 1 )
{
v7 = 0;
if ( v17 < v11 )
{
v13 = my_utf8mb3_uni(v18, (long long)v14, v17, v11, a5, a6);
v7 = v13 > 0;
}
if ( !v7 )
break;
my_toupper_utf8mb3(v8, v14);
v12 = my_uni_utf8mb3(v18, v14[0], v15, v10);
if ( v12 <= 0 )
break;
v17 += v13;
v15 += v12;
}
return (_BYTE *)(v15 - a4);
}
|
my_caseup_utf8mb3:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV qword ptr [RBP + -0x58],RAX
JMP 0x0019c01a
LAB_0019c01a:
JMP 0x0019c01c
LAB_0019c01c:
MOV RCX,qword ptr [RBP + -0x10]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x40]
MOV byte ptr [RBP + -0x59],AL
JNC 0x0019c04c
MOV RDI,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x40]
LEA RSI,[RBP + -0x30]
CALL 0x0019bcb0
MOV dword ptr [RBP + -0x34],EAX
CMP EAX,0x0
SETG AL
MOV byte ptr [RBP + -0x59],AL
LAB_0019c04c:
MOV AL,byte ptr [RBP + -0x59]
TEST AL,0x1
JNZ 0x0019c055
JMP 0x0019c0a8
LAB_0019c055:
MOV RDI,qword ptr [RBP + -0x58]
LEA RSI,[RBP + -0x30]
CALL 0x0019ce20
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x48]
CALL 0x0019bce0
MOV dword ptr [RBP + -0x38],EAX
CMP EAX,0x0
JG 0x0019c081
JMP 0x0019c0a8
LAB_0019c081:
MOV ECX,dword ptr [RBP + -0x34]
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
MOV ECX,dword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x20]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
JMP 0x0019c01c
LAB_0019c0a8:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x50]
SUB RAX,RCX
ADD RSP,0x60
POP RBP
RET
|
long my_caseup_utf8mb3(long param_1,ulong param_2,long param_3,long param_4,long param_5)
{
int8 uVar1;
bool bVar2;
int iVar3;
int local_3c;
int8 local_38;
long local_30;
long local_28;
long local_20;
ulong local_18;
long local_10;
uVar1 = *(int8 *)(param_1 + 0x78);
local_30 = param_5;
local_28 = param_4;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
while( true ) {
bVar2 = false;
if (local_18 < param_2 + param_3) {
local_3c = my_utf8mb3_uni(local_10,&local_38,local_18,param_2 + param_3);
bVar2 = 0 < local_3c;
}
if (!bVar2) break;
my_toupper_utf8mb3(uVar1,&local_38);
iVar3 = my_uni_utf8mb3(local_10,local_38,local_28,param_4 + param_5);
if (iVar3 < 1) break;
local_18 = local_18 + (long)local_3c;
local_28 = local_28 + iVar3;
}
return local_28 - param_4;
}
|
|
64,537 |
stop_waiting_locked
|
eloqsql/mysys/waiting_threads.c
|
static int stop_waiting_locked(WT_THD *thd)
{
int ret;
WT_RESOURCE *rc= thd->waiting_for;
DBUG_ENTER("stop_waiting_locked");
DBUG_ASSERT(rc->waiter_count);
DBUG_ASSERT(rc->state == ACTIVE);
rc->waiter_count--;
thd->waiting_for= 0;
ret= unlock_lock_and_free_resource(thd, rc);
DBUG_RETURN((thd->killed || ret) ? WT_DEADLOCK : WT_OK);
}
|
O3
|
c
|
stop_waiting_locked:
pushq %rbp
movq %rsp, %rbp
movq 0x28(%rdi), %rsi
decl 0x10(%rsi)
movq $0x0, 0x28(%rdi)
popq %rbp
jmp 0xb2035
|
stop_waiting_locked:
push rbp
mov rbp, rsp
mov rsi, [rdi+28h]
dec dword ptr [rsi+10h]
mov qword ptr [rdi+28h], 0
pop rbp
jmp unlock_lock_and_free_resource
|
long long stop_waiting_locked(long long a1)
{
--*(_DWORD *)(*(_QWORD *)(a1 + 40) + 16LL);
*(_QWORD *)(a1 + 40) = 0LL;
return unlock_lock_and_free_resource(a1);
}
|
stop_waiting_locked:
PUSH RBP
MOV RBP,RSP
MOV RSI,qword ptr [RDI + 0x28]
DEC dword ptr [RSI + 0x10]
MOV qword ptr [RDI + 0x28],0x0
POP RBP
JMP 0x001b2035
|
void stop_waiting_locked(long param_1)
{
int *piVar1;
piVar1 = (int *)(*(long *)(param_1 + 0x28) + 0x10);
*piVar1 = *piVar1 + -1;
*(int8 *)(param_1 + 0x28) = 0;
unlock_lock_and_free_resource();
return;
}
|
|
64,538 |
my_wc_mb_gb2312
|
eloqsql/strings/ctype-gb2312.c
|
static int
my_wc_mb_gb2312(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *s, uchar *e)
{
int code;
if (s >= e)
return MY_CS_TOOSMALL;
if ((uint) wc < 0x80)
{
s[0]= (uchar) wc;
return 1;
}
if (!(code=func_uni_gb2312_onechar(wc)))
return MY_CS_ILUNI;
if (s+2>e)
return MY_CS_TOOSMALL2;
code|=0x8080;
s[0]=code>>8;
s[1]=code&0xFF;
return 2;
}
|
O3
|
c
|
my_wc_mb_gb2312:
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0x37e38
cmpl $0x7f, %esi
ja 0x37e39
movb %sil, (%rdx)
movl $0x1, %eax
retq
leal -0xa4(%rsi), %eax
cmpl $0x138, %eax # imm = 0x138
ja 0x37e54
movl %eax, %eax
leaq 0x13bc51(%rip), %rsi # 0x173aa0
jmp 0x37f2f
leal -0x2c7(%rsi), %eax
cmpl $0x18a, %eax # imm = 0x18A
ja 0x37e6f
movl %eax, %eax
leaq 0x13beb6(%rip), %rsi # 0x173d20
jmp 0x37f2f
leal -0x2015(%rsi), %eax
cmpl $0x2fd, %eax # imm = 0x2FD
ja 0x37e8a
movl %eax, %eax
leaq 0x13c1bb(%rip), %rsi # 0x174040
jmp 0x37f2f
leal -0x2460(%rsi), %eax
cmpl $0x1e2, %eax # imm = 0x1E2
ja 0x37ea5
movl %eax, %eax
leaq 0x13c7a0(%rip), %rsi # 0x174640
jmp 0x37f2f
leal -0x3000(%rsi), %eax
cmpl $0x129, %eax # imm = 0x129
ja 0x37ebd
movl %eax, %eax
leaq 0x13cb55(%rip), %rsi # 0x174a10
jmp 0x37f2f
leal -0x3220(%rsi), %eax
cmpl $0x9, %eax
ja 0x37ed3
movl %eax, %eax
leaq 0x13cd9f(%rip), %rsi # 0x174c70
jmp 0x37f2f
leal -0x4e00(%rsi), %eax
cmpl $0x4d54, %eax # imm = 0x4D54
ja 0x37eeb
movl %eax, %eax
leaq 0x13cda7(%rip), %rsi # 0x174c90
jmp 0x37f2f
leal -0x9c7c(%rsi), %eax
cmpl $0x66, %eax
ja 0x37f01
movl %eax, %eax
leaq 0x146841(%rip), %rsi # 0x17e740
jmp 0x37f2f
leal -0x9e1f(%rsi), %eax
cmpl $0x181, %eax # imm = 0x181
ja 0x37f19
movl %eax, %eax
leaq 0x1468f9(%rip), %rsi # 0x17e810
jmp 0x37f2f
leal -0xff01(%rsi), %eax
cmpl $0xe4, %eax
ja 0x37f65
movl %eax, %eax
leaq 0x146bf1(%rip), %rsi # 0x17eb20
leaq (%rsi,%rax,2), %rax
pushq %rbp
movq %rsp, %rbp
movzwl (%rax), %esi
testw %si, %si
je 0x37f61
leaq 0x2(%rdx), %rdi
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rcx, %rdi
ja 0x37f63
orl $0x8080, %esi # imm = 0x8080
rolw $0x8, %si
movw %si, (%rdx)
movl $0x2, %eax
jmp 0x37f63
xorl %eax, %eax
popq %rbp
retq
xorl %eax, %eax
retq
|
my_wc_mb_gb2312:
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb short locret_37E38
cmp esi, 7Fh
ja short loc_37E39
mov [rdx], sil
mov eax, 1
locret_37E38:
retn
loc_37E39:
lea eax, [rsi-0A4h]
cmp eax, 138h
ja short loc_37E54
mov eax, eax
lea rsi, tab_uni_gb23120
jmp loc_37F2F
loc_37E54:
lea eax, [rsi-2C7h]
cmp eax, 18Ah
ja short loc_37E6F
mov eax, eax
lea rsi, tab_uni_gb23121
jmp loc_37F2F
loc_37E6F:
lea eax, [rsi-2015h]
cmp eax, 2FDh
ja short loc_37E8A
mov eax, eax
lea rsi, tab_uni_gb23122; "*!,!"
jmp loc_37F2F
loc_37E8A:
lea eax, [rsi-2460h]
cmp eax, 1E2h
ja short loc_37EA5
mov eax, eax
lea rsi, tab_uni_gb23123; "Y\"Z\"[\"\\\"]\"^\"_\"`\"a\"b\""
jmp loc_37F2F
loc_37EA5:
lea eax, [rsi-3000h]
cmp eax, 129h
ja short loc_37EBD
mov eax, eax
lea rsi, tab_uni_gb23124; "!!\"!#!(!"
jmp short loc_37F2F
loc_37EBD:
lea eax, [rsi-3220h]
cmp eax, 9
ja short loc_37ED3
mov eax, eax
lea rsi, tab_uni_gb23125; "e\"f\"g\"h\"i\"j\"k\"l\"m\"n\""
jmp short loc_37F2F
loc_37ED3:
lea eax, [rsi-4E00h]
cmp eax, 4D54h
ja short loc_37EEB
mov eax, eax
lea rsi, tab_uni_gb23126; ";R!6"
jmp short loc_37F2F
loc_37EEB:
lea eax, [rsi-9C7Ch]
cmp eax, 66h ; 'f'
ja short loc_37F01
mov eax, eax
lea rsi, tab_uni_gb23127
jmp short loc_37F2F
loc_37F01:
lea eax, [rsi-9E1Fh]
cmp eax, 181h
ja short loc_37F19
mov eax, eax
lea rsi, tab_uni_gb23128; "qD/p&<0pyC"
jmp short loc_37F2F
loc_37F19:
lea eax, [rsi-0FF01h]
cmp eax, 0E4h
ja short loc_37F65
mov eax, eax
lea rsi, tab_uni_gb23129; "!#\"###g!%#&#'#(#)#*#+#,#-#.#/#0#1#2#3#"...
loc_37F2F:
lea rax, [rsi+rax*2]
push rbp
mov rbp, rsp
movzx esi, word ptr [rax]
test si, si
jz short loc_37F61
lea rdi, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp rdi, rcx
ja short loc_37F63
or esi, 8080h
rol si, 8
mov [rdx], si
mov eax, 2
jmp short loc_37F63
loc_37F61:
xor eax, eax
loc_37F63:
pop rbp
retn
loc_37F65:
xor eax, eax
retn
|
long long my_wc_mb_gb2312(long long a1, unsigned int a2, _WORD *a3, unsigned long long a4)
{
long long result; // rax
long long v5; // rax
const char *v6; // rsi
__int16 v7; // si
result = 4294967195LL;
if ( (unsigned long long)a3 < a4 )
{
if ( a2 > 0x7F )
{
LODWORD(v5) = a2 - 164;
if ( a2 - 164 > 0x138 )
{
LODWORD(v5) = a2 - 711;
if ( a2 - 711 > 0x18A )
{
LODWORD(v5) = a2 - 8213;
if ( a2 - 8213 > 0x2FD )
{
LODWORD(v5) = a2 - 9312;
if ( a2 - 9312 > 0x1E2 )
{
LODWORD(v5) = a2 - 12288;
if ( a2 - 12288 > 0x129 )
{
LODWORD(v5) = a2 - 12832;
if ( a2 - 12832 > 9 )
{
LODWORD(v5) = a2 - 19968;
if ( a2 - 19968 > 0x4D54 )
{
LODWORD(v5) = a2 - 40060;
if ( a2 - 40060 > 0x66 )
{
LODWORD(v5) = a2 - 40479;
if ( a2 - 40479 > 0x181 )
{
LODWORD(v5) = a2 - 65281;
if ( a2 - 65281 > 0xE4 )
return 0LL;
v5 = (unsigned int)v5;
v6 = "!#\"###g!%#&#'#(#)#*#+#,#-#.#/#0#1#2#3#4#5#6#7#8#9#:#;#<#=#>#?#@#A#B#C#D#E#F#G#H#I#J#K#L#M#"
"N#O#P#Q#R#S#T#U#V#W#X#Y#Z#[#\\#]#^#_#`#a#b#c#d#e#f#g#h#i#j#k#l#m#n#o#p#q#r#s#t#u#v#w#x#y#z#{#|#}#+!";
}
else
{
v5 = (unsigned int)v5;
v6 = "qD/p&<0pyC";
}
}
else
{
v5 = (unsigned int)v5;
v6 = (const char *)&tab_uni_gb23127;
}
}
else
{
v5 = (unsigned int)v5;
v6 = ";R!6";
}
}
else
{
v5 = (unsigned int)v5;
v6 = "e\"f\"g\"h\"i\"j\"k\"l\"m\"n\"";
}
}
else
{
v5 = (unsigned int)v5;
v6 = "!!\"!#!(!";
}
}
else
{
v5 = (unsigned int)v5;
v6 = "Y\"Z\"[\"\\\"]\"^\"_\"`\"a\"b\"";
}
}
else
{
v5 = (unsigned int)v5;
v6 = "*!,!";
}
}
else
{
v5 = (unsigned int)v5;
v6 = (const char *)&tab_uni_gb23121;
}
}
else
{
v5 = (unsigned int)v5;
v6 = (const char *)&tab_uni_gb23120;
}
v7 = *(_WORD *)&v6[2 * v5];
if ( v7 )
{
result = 4294967194LL;
if ( (unsigned long long)(a3 + 1) <= a4 )
{
*a3 = __ROL2__(v7 | 0x8080, 8);
return 2LL;
}
}
else
{
return 0LL;
}
}
else
{
*(_BYTE *)a3 = a2;
return 1LL;
}
}
return result;
}
|
my_wc_mb_gb2312:
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x00137e38
CMP ESI,0x7f
JA 0x00137e39
MOV byte ptr [RDX],SIL
MOV EAX,0x1
LAB_00137e38:
RET
LAB_00137e39:
LEA EAX,[RSI + -0xa4]
CMP EAX,0x138
JA 0x00137e54
MOV EAX,EAX
LEA RSI,[0x273aa0]
JMP 0x00137f2f
LAB_00137e54:
LEA EAX,[RSI + -0x2c7]
CMP EAX,0x18a
JA 0x00137e6f
MOV EAX,EAX
LEA RSI,[0x273d20]
JMP 0x00137f2f
LAB_00137e6f:
LEA EAX,[RSI + -0x2015]
CMP EAX,0x2fd
JA 0x00137e8a
MOV EAX,EAX
LEA RSI,[0x274040]
JMP 0x00137f2f
LAB_00137e8a:
LEA EAX,[RSI + -0x2460]
CMP EAX,0x1e2
JA 0x00137ea5
MOV EAX,EAX
LEA RSI,[0x274640]
JMP 0x00137f2f
LAB_00137ea5:
LEA EAX,[RSI + -0x3000]
CMP EAX,0x129
JA 0x00137ebd
MOV EAX,EAX
LEA RSI,[0x274a10]
JMP 0x00137f2f
LAB_00137ebd:
LEA EAX,[RSI + -0x3220]
CMP EAX,0x9
JA 0x00137ed3
MOV EAX,EAX
LEA RSI,[0x274c70]
JMP 0x00137f2f
LAB_00137ed3:
LEA EAX,[RSI + -0x4e00]
CMP EAX,0x4d54
JA 0x00137eeb
MOV EAX,EAX
LEA RSI,[0x274c90]
JMP 0x00137f2f
LAB_00137eeb:
LEA EAX,[RSI + -0x9c7c]
CMP EAX,0x66
JA 0x00137f01
MOV EAX,EAX
LEA RSI,[0x27e740]
JMP 0x00137f2f
LAB_00137f01:
LEA EAX,[RSI + -0x9e1f]
CMP EAX,0x181
JA 0x00137f19
MOV EAX,EAX
LEA RSI,[0x27e810]
JMP 0x00137f2f
LAB_00137f19:
LEA EAX,[RSI + -0xff01]
CMP EAX,0xe4
JA 0x00137f65
MOV EAX,EAX
LEA RSI,[0x27eb20]
LAB_00137f2f:
LEA RAX,[RSI + RAX*0x2]
PUSH RBP
MOV RBP,RSP
MOVZX ESI,word ptr [RAX]
TEST SI,SI
JZ 0x00137f61
LEA RDI,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP RDI,RCX
JA 0x00137f63
OR ESI,0x8080
ROL SI,0x8
MOV word ptr [RDX],SI
MOV EAX,0x2
JMP 0x00137f63
LAB_00137f61:
XOR EAX,EAX
LAB_00137f63:
POP RBP
RET
LAB_00137f65:
XOR EAX,EAX
RET
|
int8 my_wc_mb_gb2312(int8 param_1,uint param_2,ushort *param_3,ushort *param_4)
{
int8 uVar1;
ulong uVar2;
ushort uVar3;
int1 *puVar4;
uVar1 = 0xffffff9b;
if (param_3 < param_4) {
if (0x7f < param_2) {
if (param_2 - 0xa4 < 0x139) {
uVar2 = (ulong)(param_2 - 0xa4);
puVar4 = tab_uni_gb23120;
}
else if (param_2 - 0x2c7 < 0x18b) {
uVar2 = (ulong)(param_2 - 0x2c7);
puVar4 = tab_uni_gb23121;
}
else if (param_2 - 0x2015 < 0x2fe) {
uVar2 = (ulong)(param_2 - 0x2015);
puVar4 = tab_uni_gb23122;
}
else if (param_2 - 0x2460 < 0x1e3) {
uVar2 = (ulong)(param_2 - 0x2460);
puVar4 = tab_uni_gb23123;
}
else if (param_2 - 0x3000 < 0x12a) {
uVar2 = (ulong)(param_2 - 0x3000);
puVar4 = tab_uni_gb23124;
}
else if (param_2 - 0x3220 < 10) {
uVar2 = (ulong)(param_2 - 0x3220);
puVar4 = tab_uni_gb23125;
}
else if (param_2 - 0x4e00 < 0x4d55) {
uVar2 = (ulong)(param_2 - 0x4e00);
puVar4 = &tab_uni_gb23126;
}
else if (param_2 - 0x9c7c < 0x67) {
uVar2 = (ulong)(param_2 - 0x9c7c);
puVar4 = tab_uni_gb23127;
}
else if (param_2 - 0x9e1f < 0x182) {
uVar2 = (ulong)(param_2 - 0x9e1f);
puVar4 = tab_uni_gb23128;
}
else {
uVar2 = (ulong)(param_2 - 0xff01);
if (0xe4 < param_2 - 0xff01) {
return 0;
}
puVar4 = tab_uni_gb23129;
}
if (*(ushort *)(puVar4 + uVar2 * 2) == 0) {
uVar1 = 0;
}
else {
uVar1 = 0xffffff9a;
if (param_3 + 1 <= param_4) {
uVar3 = *(ushort *)(puVar4 + uVar2 * 2) | 0x8080;
*param_3 = uVar3 << 8 | uVar3 >> 8;
uVar1 = 2;
}
}
return uVar1;
}
*(char *)param_3 = (char)param_2;
uVar1 = 1;
}
return uVar1;
}
|
|
64,539 |
my_casedn_ucs2
|
eloqsql/strings/ctype-ucs2.c
|
static size_t my_casedn_ucs2(CHARSET_INFO *cs, const char *src, size_t srclen,
char *dst, size_t dstlen)
{
my_wc_t wc;
int res;
const char *srcend= src + srclen;
char *dstend= dst + dstlen;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
DBUG_ASSERT(srclen <= dstlen);
while ((src < srcend) &&
(res= my_ucs2_uni(cs, &wc, (uchar*) src, (uchar*) srcend)) > 0)
{
my_tolower_ucs2(uni_plane, &wc);
if (res != my_uni_ucs2(cs, wc, (uchar*) dst, (uchar*) dstend))
break;
src+= res;
dst+= res;
}
return srclen;
}
|
O3
|
c
|
my_casedn_ucs2:
movq %rdx, %rax
cmpq $0x2, %rdx
jl 0x486f6
pushq %rbp
movq %rsp, %rbp
leaq (%rsi,%rax), %rdx
addq %rcx, %r8
movq 0x78(%rdi), %rdi
addq $0x2, %rcx
movzbl (%rsi), %r9d
movzbl 0x1(%rsi), %r10d
movq 0x8(%rdi), %r11
movq (%r11,%r9,8), %r11
testq %r11, %r11
je 0x486bd
leaq (%r10,%r10,2), %r9
movl 0x4(%r11,%r9,4), %r9d
jmp 0x486c4
shll $0x8, %r9d
orq %r10, %r9
cmpq %r8, %rcx
ja 0x486f5
cmpl $0xffff, %r9d # imm = 0xFFFF
ja 0x486f5
rolw $0x8, %r9w
movw %r9w, -0x2(%rcx)
leaq 0x2(%rsi), %r9
cmpq %rdx, %r9
jae 0x486f5
addq $0x4, %rsi
addq $0x2, %rcx
cmpq %rdx, %rsi
movq %r9, %rsi
jbe 0x4869c
popq %rbp
retq
|
my_casedn_ucs2:
mov rax, rdx
cmp rdx, 2
jl short locret_486F6
push rbp
mov rbp, rsp
lea rdx, [rsi+rax]
add r8, rcx
mov rdi, [rdi+78h]
add rcx, 2
loc_4869C:
movzx r9d, byte ptr [rsi]
movzx r10d, byte ptr [rsi+1]
mov r11, [rdi+8]
mov r11, [r11+r9*8]
test r11, r11
jz short loc_486BD
lea r9, [r10+r10*2]
mov r9d, [r11+r9*4+4]
jmp short loc_486C4
loc_486BD:
shl r9d, 8
or r9, r10
loc_486C4:
cmp rcx, r8
ja short loc_486F5
cmp r9d, 0FFFFh
ja short loc_486F5
rol r9w, 8
mov [rcx-2], r9w
lea r9, [rsi+2]
cmp r9, rdx
jnb short loc_486F5
add rsi, 4
add rcx, 2
cmp rsi, rdx
mov rsi, r9
jbe short loc_4869C
loc_486F5:
pop rbp
locret_486F6:
retn
|
long long my_casedn_ucs2(long long a1, unsigned __int8 *a2, long long a3, long long a4, long long a5)
{
long long result; // rax
unsigned long long v6; // rdx
unsigned long long v7; // r8
long long v8; // rdi
unsigned long long v9; // rcx
long long v10; // r9
long long v11; // r10
long long v12; // r11
unsigned int v13; // r9d
bool v14; // cc
result = a3;
if ( a3 >= 2 )
{
v6 = (unsigned long long)&a2[a3];
v7 = a4 + a5;
v8 = *(_QWORD *)(a1 + 120);
v9 = a4 + 2;
do
{
v10 = *a2;
v11 = a2[1];
v12 = *(_QWORD *)(*(_QWORD *)(v8 + 8) + 8 * v10);
if ( v12 )
v13 = *(_DWORD *)(v12 + 12 * v11 + 4);
else
v13 = v11 | ((_DWORD)v10 << 8);
if ( v9 > v7 )
break;
if ( v13 > 0xFFFF )
break;
*(_WORD *)(v9 - 2) = __ROL2__(v13, 8);
if ( (unsigned long long)(a2 + 2) >= v6 )
break;
v9 += 2LL;
v14 = (unsigned long long)(a2 + 4) <= v6;
a2 += 2;
}
while ( v14 );
}
return result;
}
|
my_casedn_ucs2:
MOV RAX,RDX
CMP RDX,0x2
JL 0x001486f6
PUSH RBP
MOV RBP,RSP
LEA RDX,[RSI + RAX*0x1]
ADD R8,RCX
MOV RDI,qword ptr [RDI + 0x78]
ADD RCX,0x2
LAB_0014869c:
MOVZX R9D,byte ptr [RSI]
MOVZX R10D,byte ptr [RSI + 0x1]
MOV R11,qword ptr [RDI + 0x8]
MOV R11,qword ptr [R11 + R9*0x8]
TEST R11,R11
JZ 0x001486bd
LEA R9,[R10 + R10*0x2]
MOV R9D,dword ptr [R11 + R9*0x4 + 0x4]
JMP 0x001486c4
LAB_001486bd:
SHL R9D,0x8
OR R9,R10
LAB_001486c4:
CMP RCX,R8
JA 0x001486f5
CMP R9D,0xffff
JA 0x001486f5
ROL R9W,0x8
MOV word ptr [RCX + -0x2],R9W
LEA R9,[RSI + 0x2]
CMP R9,RDX
JNC 0x001486f5
ADD RSI,0x4
ADD RCX,0x2
CMP RSI,RDX
MOV RSI,R9
JBE 0x0014869c
LAB_001486f5:
POP RBP
LAB_001486f6:
RET
|
void my_casedn_ucs2(long param_1,byte *param_2,long param_3,long param_4,long param_5)
{
long lVar1;
long lVar2;
ulong uVar3;
byte *pbVar4;
byte *pbVar5;
uint uVar6;
if (1 < param_3) {
lVar1 = *(long *)(param_1 + 0x78);
uVar3 = param_4 + 2;
pbVar4 = param_2;
while( true ) {
lVar2 = *(long *)(*(long *)(lVar1 + 8) + (ulong)*pbVar4 * 8);
if (lVar2 == 0) {
uVar6 = (uint)CONCAT11(*pbVar4,pbVar4[1]);
}
else {
uVar6 = *(uint *)(lVar2 + 4 + (ulong)pbVar4[1] * 0xc);
}
if (((ulong)(param_5 + param_4) < uVar3) || (0xffff < uVar6)) break;
*(ushort *)(uVar3 - 2) = (ushort)uVar6 << 8 | (ushort)uVar6 >> 8;
if (param_2 + param_3 <= pbVar4 + 2) {
return;
}
pbVar5 = pbVar4 + 4;
uVar3 = uVar3 + 2;
pbVar4 = pbVar4 + 2;
if (param_2 + param_3 < pbVar5) {
return;
}
}
}
return;
}
|
|
64,540 |
my_l10tostr_mb2_or_mb4
|
eloqsql/strings/ctype-ucs2.c
|
static size_t
my_l10tostr_mb2_or_mb4(CHARSET_INFO *cs,
char *dst, size_t len, int radix, long int val)
{
char buffer[66];
register char *p, *db, *de;
long int new_val;
int sl= 0;
unsigned long int uval = (unsigned long int) val;
p= &buffer[sizeof(buffer) - 1];
*p= '\0';
if (radix < 0)
{
if (val < 0)
{
sl= 1;
/* Avoid integer overflow in (-val) for LONGLONG_MIN (BUG#31799). */
uval = (unsigned long int)0 - uval;
}
}
new_val = (long) (uval / 10);
*--p = '0'+ (char) (uval - (unsigned long) new_val * 10);
val= new_val;
while (val != 0)
{
new_val= val / 10;
*--p= '0' + (char) (val - new_val * 10);
val= new_val;
}
if (sl)
{
*--p= '-';
}
for ( db= dst, de= dst + len ; (dst < de) && *p ; p++)
{
int cnvres= my_ci_wc_mb(cs, (my_wc_t) p[0], (uchar*) dst, (uchar*) de);
if (cnvres > 0)
dst+= cnvres;
else
break;
}
return (int) (dst - db);
}
|
O3
|
c
|
my_l10tostr_mb2_or_mb4:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
leaq -0x40(%rbp), %r13
testl %ecx, %ecx
setns %al
testq %r8, %r8
setns %dil
orb %al, %dil
movq %r8, %rsi
negq %rsi
testb %dil, %dil
cmovneq %r8, %rsi
movabsq $-0x3333333333333333, %r8 # imm = 0xCCCCCCCCCCCCCCCD
movq %rsi, %rax
mulq %r8
movq %rdx, %rcx
movb $0x0, 0x1(%r13)
shrq $0x3, %rcx
imull $0xf6, %ecx, %eax
addl %esi, %eax
addb $0x30, %al
movb %al, (%r13)
cmpq $0xa, %rsi
jb 0x4794e
movq %rcx, %rax
mulq %r8
shrq $0x3, %rdx
imull $0xf6, %edx, %eax
addl %ecx, %eax
addb $0x30, %al
movb %al, -0x1(%r13)
decq %r13
cmpq $0x9, %rcx
movq %rdx, %rcx
ja 0x4792a
testb %dil, %dil
jne 0x4795b
movb $0x2d, -0x1(%r13)
decq %r13
movq %rbx, %r12
testq %r14, %r14
jle 0x47997
addq %rbx, %r14
movq %rbx, %r12
movsbq (%r13), %rsi
testq %rsi, %rsi
je 0x47997
movq 0xb8(%r15), %rax
movq %r15, %rdi
movq %r12, %rdx
movq %r14, %rcx
callq *0x30(%rax)
testl %eax, %eax
jle 0x47997
movl %eax, %eax
addq %rax, %r12
incq %r13
cmpq %r14, %r12
jb 0x47969
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x479bb
subl %ebx, %r12d
movslq %r12d, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x242f0
|
my_l10tostr_mb2_or_mb4:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov r14, rdx
mov rbx, rsi
mov r15, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
lea r13, [rbp+var_40]
test ecx, ecx
setns al
test r8, r8
setns dil
or dil, al
mov rsi, r8
neg rsi
test dil, dil
cmovnz rsi, r8
mov r8, 0CCCCCCCCCCCCCCCDh
mov rax, rsi
mul r8
mov rcx, rdx
mov byte ptr [r13+1], 0
shr rcx, 3
imul eax, ecx, 0F6h
add eax, esi
add al, 30h ; '0'
mov [r13+0], al
cmp rsi, 0Ah
jb short loc_4794E
loc_4792A:
mov rax, rcx
mul r8
shr rdx, 3
imul eax, edx, 0F6h
add eax, ecx
add al, 30h ; '0'
mov [r13-1], al
dec r13
cmp rcx, 9
mov rcx, rdx
ja short loc_4792A
loc_4794E:
test dil, dil
jnz short loc_4795B
mov byte ptr [r13-1], 2Dh ; '-'
dec r13
loc_4795B:
mov r12, rbx
test r14, r14
jle short loc_47997
add r14, rbx
mov r12, rbx
loc_47969:
movsx rsi, byte ptr [r13+0]
test rsi, rsi
jz short loc_47997
mov rax, [r15+0B8h]
mov rdi, r15
mov rdx, r12
mov rcx, r14
call qword ptr [rax+30h]
test eax, eax
jle short loc_47997
mov eax, eax
add r12, rax
inc r13
cmp r12, r14
jb short loc_47969
loc_47997:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_479BB
sub r12d, ebx
movsxd rax, r12d
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_479BB:
call ___stack_chk_fail
|
long long my_l10tostr_mb2_or_mb4(long long a1, unsigned long long a2, long long a3, int a4, signed long long a5)
{
_BYTE *v7; // r13
bool v8; // di
unsigned long long v9; // rsi
unsigned long long v10; // rcx
bool v11; // cc
unsigned long long v12; // r12
unsigned long long v13; // r14
int v14; // eax
_BYTE v16[16]; // [rsp+40h] [rbp-40h] BYREF
unsigned long long v17; // [rsp+50h] [rbp-30h]
v17 = __readfsqword(0x28u);
v7 = v16;
v8 = a4 >= 0 || a5 >= 0;
v9 = -a5;
if ( v8 )
v9 = a5;
v16[1] = 0;
v10 = v9 / 0xA;
v16[0] = v9 % 0xA + 48;
if ( v9 >= 0xA )
{
do
{
*--v7 = v10 % 0xA + 48;
v11 = v10 <= 9;
v10 /= 0xAuLL;
}
while ( !v11 );
}
if ( !v8 )
*--v7 = 45;
LODWORD(v12) = a2;
if ( a3 > 0 )
{
v13 = a2 + a3;
v12 = a2;
do
{
if ( !*v7 )
break;
v14 = (*(long long ( **)(long long, _QWORD, unsigned long long, unsigned long long))(*(_QWORD *)(a1 + 184) + 48LL))(
a1,
(char)*v7,
v12,
v13);
if ( v14 <= 0 )
break;
v12 += (unsigned int)v14;
++v7;
}
while ( v12 < v13 );
}
return (int)v12 - (int)a2;
}
|
my_l10tostr_mb2_or_mb4:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV R14,RDX
MOV RBX,RSI
MOV R15,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
LEA R13,[RBP + -0x40]
TEST ECX,ECX
SETNS AL
TEST R8,R8
SETNS DIL
OR DIL,AL
MOV RSI,R8
NEG RSI
TEST DIL,DIL
CMOVNZ RSI,R8
MOV R8,-0x3333333333333333
MOV RAX,RSI
MUL R8
MOV RCX,RDX
MOV byte ptr [R13 + 0x1],0x0
SHR RCX,0x3
IMUL EAX,ECX,0xf6
ADD EAX,ESI
ADD AL,0x30
MOV byte ptr [R13],AL
CMP RSI,0xa
JC 0x0014794e
LAB_0014792a:
MOV RAX,RCX
MUL R8
SHR RDX,0x3
IMUL EAX,EDX,0xf6
ADD EAX,ECX
ADD AL,0x30
MOV byte ptr [R13 + -0x1],AL
DEC R13
CMP RCX,0x9
MOV RCX,RDX
JA 0x0014792a
LAB_0014794e:
TEST DIL,DIL
JNZ 0x0014795b
MOV byte ptr [R13 + -0x1],0x2d
DEC R13
LAB_0014795b:
MOV R12,RBX
TEST R14,R14
JLE 0x00147997
ADD R14,RBX
MOV R12,RBX
LAB_00147969:
MOVSX RSI,byte ptr [R13]
TEST RSI,RSI
JZ 0x00147997
MOV RAX,qword ptr [R15 + 0xb8]
MOV RDI,R15
MOV RDX,R12
MOV RCX,R14
CALL qword ptr [RAX + 0x30]
TEST EAX,EAX
JLE 0x00147997
MOV EAX,EAX
ADD R12,RAX
INC R13
CMP R12,R14
JC 0x00147969
LAB_00147997:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x001479bb
SUB R12D,EBX
MOVSXD RAX,R12D
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001479bb:
CALL 0x001242f0
|
long my_l10tostr_mb2_or_mb4(long param_1,ulong param_2,long param_3,int param_4,ulong param_5)
{
ulong uVar1;
ulong uVar2;
uint uVar3;
ulong uVar4;
char *pcVar5;
long in_FS_OFFSET;
char local_49 [17];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
pcVar5 = local_49 + 1;
uVar4 = -param_5;
if ((long)param_5 >= 0 || param_4 >= 0) {
uVar4 = param_5;
}
local_49[2] = 0;
local_49[1] = (char)(uVar4 / 10) * -10 + (char)uVar4 + '0';
uVar2 = uVar4 / 10;
while (uVar1 = uVar2, 9 < uVar4) {
pcVar5[-1] = (char)(uVar1 / 10) * -10 + (char)uVar1 + '0';
pcVar5 = pcVar5 + -1;
uVar2 = uVar1 / 10;
uVar4 = uVar1;
}
if ((long)param_5 < 0 && param_4 < 0) {
pcVar5[-1] = '-';
pcVar5 = pcVar5 + -1;
}
uVar4 = param_2;
if (0 < param_3) {
do {
if (((long)*pcVar5 == 0) ||
(uVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x30))
(param_1,(long)*pcVar5,uVar4,param_3 + param_2), (int)uVar3 < 1)) break;
uVar4 = uVar4 + uVar3;
pcVar5 = pcVar5 + 1;
} while (uVar4 < param_3 + param_2);
}
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return (long)((int)uVar4 - (int)param_2);
}
|
|
64,541 |
inline_mysql_file_delete
|
eloqsql/include/mysql/psi/mysql_file.h
|
static inline int
inline_mysql_file_delete(
#ifdef HAVE_PSI_FILE_INTERFACE
PSI_file_key key, const char *src_file, uint src_line,
#endif
const char *name, myf flags)
{
int result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
locker= PSI_FILE_CALL(get_thread_file_name_locker)(&state, key, PSI_FILE_DELETE, name, &locker);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_close_wait)(locker, src_file, src_line);
result= my_delete(name, flags);
PSI_FILE_CALL(end_file_close_wait)(locker, result);
return result;
}
#endif
result= my_delete(name, flags);
return result;
}
|
O0
|
c
|
inline_mysql_file_delete:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
leaq 0x1e6654(%rip), %rax # 0x2c00b8
movq (%rax), %rax
movq 0x148(%rax), %rax
movl -0x8(%rbp), %esi
movq -0x20(%rbp), %rcx
leaq -0x80(%rbp), %rdi
movl $0xe, %edx
leaq -0x38(%rbp), %r8
callq *%rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0xd9af8
leaq 0x1e6609(%rip), %rax # 0x2c00b8
movq (%rax), %rax
movq 0x220(%rax), %rax
movq -0x38(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
callq *%rax
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0xef780
movl %eax, -0x2c(%rbp)
leaq 0x1e65db(%rip), %rax # 0x2c00b8
movq (%rax), %rax
movq 0x228(%rax), %rax
movq -0x38(%rbp), %rdi
movl -0x2c(%rbp), %esi
callq *%rax
movl -0x2c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0xd9b0e
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0xef780
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x80, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
inline_mysql_file_delete_1:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_8], edi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+148h]
mov esi, [rbp+var_8]
mov rcx, [rbp+var_20]
lea rdi, [rbp+var_80]
mov edx, 0Eh
lea r8, [rbp+var_38]
call rax
mov [rbp+var_38], rax
cmp [rbp+var_38], 0
setnz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_D9AF8
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+220h]
mov rdi, [rbp+var_38]
mov rsi, [rbp+var_10]
mov edx, [rbp+var_14]
call rax
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_28]
call my_delete
mov [rbp+var_2C], eax
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+228h]
mov rdi, [rbp+var_38]
mov esi, [rbp+var_2C]
call rax
mov eax, [rbp+var_2C]
mov [rbp+var_4], eax
jmp short loc_D9B0E
loc_D9AF8:
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_28]
call my_delete
mov [rbp+var_2C], eax
mov eax, [rbp+var_2C]
mov [rbp+var_4], eax
loc_D9B0E:
mov eax, [rbp+var_4]
add rsp, 80h
pop rbp
retn
|
long long inline_mysql_file_delete_1(unsigned int a1, long long a2, unsigned int a3, long long a4, long long a5)
{
_BYTE v6[72]; // [rsp+0h] [rbp-80h] BYREF
long long v7; // [rsp+48h] [rbp-38h] BYREF
unsigned int v8; // [rsp+54h] [rbp-2Ch]
long long v9; // [rsp+58h] [rbp-28h]
long long v10; // [rsp+60h] [rbp-20h]
unsigned int v11; // [rsp+6Ch] [rbp-14h]
long long v12; // [rsp+70h] [rbp-10h]
unsigned int v13; // [rsp+78h] [rbp-8h]
v13 = a1;
v12 = a2;
v11 = a3;
v10 = a4;
v9 = a5;
v7 = ((long long ( *)(_BYTE *, _QWORD, long long, long long, long long *))PSI_server[41])(v6, a1, 14LL, a4, &v7);
if ( v7 )
{
((void ( *)(long long, long long, _QWORD))PSI_server[68])(v7, v12, v11);
v8 = my_delete(v10, v9);
((void ( *)(long long, _QWORD))PSI_server[69])(v7, v8);
}
else
{
return (unsigned int)my_delete(v10, v9);
}
return v8;
}
|
inline_mysql_file_delete:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV dword ptr [RBP + -0x8],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
LEA RAX,[0x3c00b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x148]
MOV ESI,dword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP + -0x20]
LEA RDI,[RBP + -0x80]
MOV EDX,0xe
LEA R8,[RBP + -0x38]
CALL RAX
MOV qword ptr [RBP + -0x38],RAX
CMP qword ptr [RBP + -0x38],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001d9af8
LEA RAX,[0x3c00b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x220]
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RBP + -0x14]
CALL RAX
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x28]
CALL 0x001ef780
MOV dword ptr [RBP + -0x2c],EAX
LEA RAX,[0x3c00b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x228]
MOV RDI,qword ptr [RBP + -0x38]
MOV ESI,dword ptr [RBP + -0x2c]
CALL RAX
MOV EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001d9b0e
LAB_001d9af8:
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x28]
CALL 0x001ef780
MOV dword ptr [RBP + -0x2c],EAX
MOV EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x4],EAX
LAB_001d9b0e:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x80
POP RBP
RET
|
int4
inline_mysql_file_delete
(int4 param_1,int8 param_2,int4 param_3,int8 param_4,
int8 param_5)
{
int1 local_88 [72];
long local_40;
int4 local_34;
int8 local_30;
int8 local_28;
int4 local_1c;
int8 local_18;
int4 local_10;
int4 local_c;
local_30 = param_5;
local_28 = param_4;
local_1c = param_3;
local_18 = param_2;
local_10 = param_1;
local_40 = (**(code **)(PSI_server + 0x148))(local_88,param_1,0xe,param_4,&local_40);
if (local_40 == 0) {
local_c = my_delete(local_28,local_30);
}
else {
(**(code **)(PSI_server + 0x220))(local_40,local_18,local_1c);
local_34 = my_delete(local_28,local_30);
(**(code **)(PSI_server + 0x228))(local_40,local_34);
local_c = local_34;
}
return local_c;
}
|
|
64,542 |
safe_realloc
|
corpus-core[P]colibri-stateless/src/util/bytes.c
|
void* safe_realloc(void* ptr, size_t new_size) {
void* new_ptr = realloc(ptr, new_size);
// Note:safe_realloc(NULL, size) is equivalent tosafe_malloc(size)
// safe_realloc(ptr, 0) is equivalent tosafe_free(ptr) and may return NULL
if (new_size > 0 && new_ptr == NULL) {
fprintf(stderr, "Error: Memory allocation failed (realloc) for new size %zu bytes: %s. Exiting.\\n", new_size, strerror(errno));
// Important: The original block ptr is NOT freed by realloc if it fails
exit(EXIT_FAILURE);
}
return new_ptr;
}
|
O3
|
c
|
safe_realloc:
pushq %rbx
movq %rsi, %rbx
callq 0x21380
testq %rbx, %rbx
sete %cl
testq %rax, %rax
setne %dl
orb %cl, %dl
je 0x50f44
popq %rbx
retq
movq %rbx, %rdi
callq 0x21dcc
|
safe_realloc:
push rbx
mov rbx, rsi
call _realloc
test rbx, rbx
setz cl
test rax, rax
setnz dl
or dl, cl
jz short loc_50F44
pop rbx
retn
loc_50F44:
mov rdi, rbx
call safe_realloc_cold_1
|
long long safe_realloc(long long a1, long long a2)
{
long long result; // rax
result = realloc(a1, a2);
if ( a2 != 0 && result == 0 )
safe_realloc_cold_1(a2);
return result;
}
|
safe_realloc:
PUSH RBX
MOV RBX,RSI
CALL 0x00121380
TEST RBX,RBX
SETZ CL
TEST RAX,RAX
SETNZ DL
OR DL,CL
JZ 0x00150f44
POP RBX
RET
LAB_00150f44:
MOV RDI,RBX
CALL 0x00121dcc
|
void safe_realloc(void *param_1,size_t param_2)
{
void *pvVar1;
pvVar1 = realloc(param_1,param_2);
if (pvVar1 != (void *)0x0 || param_2 == 0) {
return;
}
safe_realloc_cold_1(param_2);
(*(code *)PTR_free_001be130)();
return;
}
|
|
64,543 |
client_mpvio_read_packet
|
eloqsql/libmariadb/plugins/auth/my_auth.c
|
static int client_mpvio_read_packet(struct st_plugin_vio *mpv, uchar **buf)
{
MCPVIO_EXT *mpvio= (MCPVIO_EXT*)mpv;
MYSQL *mysql= mpvio->mysql;
ulong pkt_len;
/* there are cached data left, feed it to a plugin */
if (mpvio->cached_server_reply.pkt)
{
*buf= mpvio->cached_server_reply.pkt;
mpvio->cached_server_reply.pkt= 0;
mpvio->packets_read++;
return mpvio->cached_server_reply.pkt_len;
}
if (mpvio->packets_read == 0)
{
/*
the server handshake packet came from the wrong plugin,
or it's mysql_change_user(). Either way, there is no data
for a plugin to read. send a dummy packet to the server
to initiate a dialog.
*/
if (client_mpvio_write_packet(mpv, 0, 0))
return (int)packet_error;
}
/* otherwise read the data */
if ((pkt_len= ma_net_safe_read(mysql)) == packet_error)
return (int)packet_error;
mpvio->last_read_packet_len= pkt_len;
*buf= mysql->net.read_pos;
/* was it a request to change plugins ? */
if (pkt_len && **buf == 254)
return (int)packet_error; /* if yes, this plugin shan't continue */
/*
the server sends \1\255 or \1\254 instead of just \255 or \254 -
for us to not confuse it with an error or "change plugin" packets.
We remove this escaping \1 here.
See also server_mpvio_write_packet() where the escaping is done.
*/
if (pkt_len && **buf == 1)
{
(*buf)++;
pkt_len--;
}
mpvio->packets_read++;
return pkt_len;
}
|
O3
|
c
|
client_mpvio_read_packet:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x30(%rdi), %rax
testq %rax, %rax
je 0x3043d
movq %rax, (%r14)
movq $0x0, 0x30(%rbx)
incl 0x40(%rbx)
movl 0x38(%rbx), %ecx
movl %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x18(%rbx), %r15
cmpl $0x0, 0x40(%rbx)
je 0x30488
movq %r15, %rdi
callq 0x179f7
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
cmpq %rdx, %rax
je 0x30430
movl %eax, 0x4c(%rbx)
movq 0x20(%r15), %rdx
movq %rdx, (%r14)
testq %rax, %rax
je 0x3049f
movzbl (%rdx), %esi
cmpl $0xfe, %esi
je 0x30430
cmpl $0x1, %esi
jne 0x304a1
incq %rdx
movq %rdx, (%r14)
decq %rax
jmp 0x304a1
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x304a8
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x30430
jmp 0x30447
xorl %eax, %eax
incl 0x40(%rbx)
movl %eax, %ecx
jmp 0x30430
|
client_mpvio_read_packet:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
mov rax, [rdi+30h]
test rax, rax
jz short loc_3043D
mov [r14], rax
mov qword ptr [rbx+30h], 0
inc dword ptr [rbx+40h]
mov ecx, [rbx+38h]
loc_30430:
mov eax, ecx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_3043D:
mov r15, [rbx+18h]
cmp dword ptr [rbx+40h], 0
jz short loc_30488
loc_30447:
mov rdi, r15
call ma_net_safe_read
mov ecx, 0FFFFFFFFh
mov edx, 0FFFFFFFFh
cmp rax, rdx
jz short loc_30430
mov [rbx+4Ch], eax
mov rdx, [r15+20h]
mov [r14], rdx
test rax, rax
jz short loc_3049F
movzx esi, byte ptr [rdx]
cmp esi, 0FEh
jz short loc_30430
cmp esi, 1
jnz short loc_304A1
inc rdx
mov [r14], rdx
dec rax
jmp short loc_304A1
loc_30488:
mov rdi, rbx
xor esi, esi
xor edx, edx
call client_mpvio_write_packet
mov ecx, 0FFFFFFFFh
test eax, eax
jnz short loc_30430
jmp short loc_30447
loc_3049F:
xor eax, eax
loc_304A1:
inc dword ptr [rbx+40h]
mov ecx, eax
jmp short loc_30430
|
long long client_mpvio_read_packet(
long long a1,
_QWORD *a2,
long long a3,
long long a4,
unsigned long long a5,
int a6)
{
_QWORD *v6; // r14
long long v7; // rax
long long v9; // r15
unsigned long long v10; // rax
unsigned __int8 *v11; // rdx
int v12; // esi
int v13; // eax
v6 = a2;
v7 = *(_QWORD *)(a1 + 48);
if ( v7 )
{
*a2 = v7;
*(_QWORD *)(a1 + 48) = 0LL;
++*(_DWORD *)(a1 + 64);
LODWORD(a4) = *(_DWORD *)(a1 + 56);
}
else
{
v9 = *(_QWORD *)(a1 + 24);
if ( *(_DWORD *)(a1 + 64) || (a2 = 0LL, v13 = client_mpvio_write_packet(a1, 0LL, 0LL), a4 = 0xFFFFFFFFLL, !v13) )
{
v10 = ma_net_safe_read(v9, (long long)a2, a3, a4, a5, a6);
LODWORD(a4) = -1;
if ( v10 != 0xFFFFFFFF )
{
*(_DWORD *)(a1 + 76) = v10;
v11 = *(unsigned __int8 **)(v9 + 32);
*v6 = v11;
if ( v10 )
{
v12 = *v11;
if ( v12 == 254 )
return (unsigned int)a4;
if ( v12 == 1 )
{
*v6 = v11 + 1;
LODWORD(v10) = v10 - 1;
}
}
else
{
LODWORD(v10) = 0;
}
++*(_DWORD *)(a1 + 64);
LODWORD(a4) = v10;
}
}
}
return (unsigned int)a4;
}
|
client_mpvio_read_packet:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x30]
TEST RAX,RAX
JZ 0x0013043d
MOV qword ptr [R14],RAX
MOV qword ptr [RBX + 0x30],0x0
INC dword ptr [RBX + 0x40]
MOV ECX,dword ptr [RBX + 0x38]
LAB_00130430:
MOV EAX,ECX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0013043d:
MOV R15,qword ptr [RBX + 0x18]
CMP dword ptr [RBX + 0x40],0x0
JZ 0x00130488
LAB_00130447:
MOV RDI,R15
CALL 0x001179f7
MOV ECX,0xffffffff
MOV EDX,0xffffffff
CMP RAX,RDX
JZ 0x00130430
MOV dword ptr [RBX + 0x4c],EAX
MOV RDX,qword ptr [R15 + 0x20]
MOV qword ptr [R14],RDX
TEST RAX,RAX
JZ 0x0013049f
MOVZX ESI,byte ptr [RDX]
CMP ESI,0xfe
JZ 0x00130430
CMP ESI,0x1
JNZ 0x001304a1
INC RDX
MOV qword ptr [R14],RDX
DEC RAX
JMP 0x001304a1
LAB_00130488:
MOV RDI,RBX
XOR ESI,ESI
XOR EDX,EDX
CALL 0x001304a8
MOV ECX,0xffffffff
TEST EAX,EAX
JNZ 0x00130430
JMP 0x00130447
LAB_0013049f:
XOR EAX,EAX
LAB_001304a1:
INC dword ptr [RBX + 0x40]
MOV ECX,EAX
JMP 0x00130430
|
ulong client_mpvio_read_packet(long param_1,long *param_2)
{
long lVar1;
char *pcVar2;
int iVar3;
ulong uVar4;
ulong uVar5;
if (*(long *)(param_1 + 0x30) == 0) {
lVar1 = *(long *)(param_1 + 0x18);
if ((*(int *)(param_1 + 0x40) == 0) &&
(iVar3 = client_mpvio_write_packet(param_1,0,0), iVar3 != 0)) {
return 0xffffffff;
}
uVar4 = ma_net_safe_read(lVar1);
uVar5 = 0xffffffff;
if (uVar4 != 0xffffffff) {
*(int *)(param_1 + 0x4c) = (int)uVar4;
pcVar2 = *(char **)(lVar1 + 0x20);
*param_2 = (long)pcVar2;
if (uVar4 == 0) {
uVar4 = 0;
}
else {
if (*pcVar2 == -2) {
return 0xffffffff;
}
if (*pcVar2 == '\x01') {
*param_2 = (long)(pcVar2 + 1);
uVar4 = uVar4 - 1;
}
}
*(int *)(param_1 + 0x40) = *(int *)(param_1 + 0x40) + 1;
uVar5 = uVar4 & 0xffffffff;
}
}
else {
*param_2 = *(long *)(param_1 + 0x30);
*(int8 *)(param_1 + 0x30) = 0;
*(int *)(param_1 + 0x40) = *(int *)(param_1 + 0x40) + 1;
uVar5 = (ulong)*(uint *)(param_1 + 0x38);
}
return uVar5;
}
|
|
64,544 |
LefDefParser::defiSite::print(_IO_FILE*) const
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiSite.cpp
|
void defiSite::print(FILE* f) const {
fprintf(f, "Site '%p' %s\n", name(),
orientStr());
fprintf(f, " DO X %g %g BY %g\n",
x_orig(),
x_num(),
x_step());
fprintf(f, " DO Y %g %g BY %g\n",
y_orig(),
y_num(),
y_step());
}
|
O3
|
cpp
|
LefDefParser::defiSite::print(_IO_FILE*) const:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %r15
movl 0x40(%rdi), %edi
callq 0x1d75c
leaq 0x1964f(%rip), %rsi # 0x43840
movq %rbx, %rdi
movq %r15, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x6290
movsd 0x30(%r14), %xmm1
movsd 0x10(%r14), %xmm0
movsd 0x20(%r14), %xmm2
leaq 0x19634(%rip), %rsi # 0x4384e
movq %rbx, %rdi
movb $0x3, %al
callq 0x6290
movsd 0x38(%r14), %xmm1
movsd 0x18(%r14), %xmm0
movsd 0x28(%r14), %xmm2
leaq 0x19625(%rip), %rsi # 0x43862
movq %rbx, %rdi
movb $0x3, %al
popq %rbx
popq %r14
popq %r15
jmp 0x6290
|
_ZNK12LefDefParser8defiSite5printEP8_IO_FILE:
push r15
push r14
push rbx
mov rbx, rsi
mov r14, rdi
mov r15, [rdi]
mov edi, [rdi+40h]; this
call _ZN12LefDefParser13defiOrientStrEi; LefDefParser::defiOrientStr(int)
lea rsi, aSitePS; "Site '%p' %s\n"
mov rdi, rbx
mov rdx, r15
mov rcx, rax
xor eax, eax
call _fprintf
movsd xmm1, qword ptr [r14+30h]
movsd xmm0, qword ptr [r14+10h]
movsd xmm2, qword ptr [r14+20h]
lea rsi, aDoXGGByG; " DO X %g %g BY %g\n"
mov rdi, rbx
mov al, 3
call _fprintf
movsd xmm1, qword ptr [r14+38h]
movsd xmm0, qword ptr [r14+18h]
movsd xmm2, qword ptr [r14+28h]
lea rsi, aDoYGGByG; " DO Y %g %g BY %g\n"
mov rdi, rbx
mov al, 3
pop rbx
pop r14
pop r15
jmp _fprintf
|
long long LefDefParser::defiSite::print(long long a1, long long a2)
{
const void *v3; // r15
char *v4; // rax
v3 = *(const void **)a1;
v4 = LefDefParser::defiOrientStr((LefDefParser *)*(unsigned int *)(a1 + 64));
fprintf(a2, "Site '%p' %s\n", v3, v4);
fprintf(a2, " DO X %g %g BY %g\n", *(double *)(a1 + 16), *(double *)(a1 + 48), *(double *)(a1 + 32));
return fprintf(a2, " DO Y %g %g BY %g\n", *(double *)(a1 + 24), *(double *)(a1 + 56), *(double *)(a1 + 40));
}
|
print:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RSI
MOV R14,RDI
MOV R15,qword ptr [RDI]
MOV EDI,dword ptr [RDI + 0x40]
CALL 0x0011d75c
LEA RSI,[0x143840]
MOV RDI,RBX
MOV RDX,R15
MOV RCX,RAX
XOR EAX,EAX
CALL 0x00106290
MOVSD XMM1,qword ptr [R14 + 0x30]
MOVSD XMM0,qword ptr [R14 + 0x10]
MOVSD XMM2,qword ptr [R14 + 0x20]
LEA RSI,[0x14384e]
MOV RDI,RBX
MOV AL,0x3
CALL 0x00106290
MOVSD XMM1,qword ptr [R14 + 0x38]
MOVSD XMM0,qword ptr [R14 + 0x18]
MOVSD XMM2,qword ptr [R14 + 0x28]
LEA RSI,[0x143862]
MOV RDI,RBX
MOV AL,0x3
POP RBX
POP R14
POP R15
JMP 0x00106290
|
/* LefDefParser::defiSite::print(_IO_FILE*) const */
void __thiscall LefDefParser::defiSite::print(defiSite *this,_IO_FILE *param_1)
{
int8 uVar1;
int8 uVar2;
uVar1 = *(int8 *)this;
uVar2 = defiOrientStr(*(int *)(this + 0x40));
fprintf(param_1,"Site \'%p\' %s\n",uVar1,uVar2);
fprintf(param_1," DO X %g %g BY %g\n",*(int8 *)(this + 0x10),*(int8 *)(this + 0x30),
*(int8 *)(this + 0x20));
fprintf(param_1," DO Y %g %g BY %g\n",*(int8 *)(this + 0x18),*(int8 *)(this + 0x38),
*(int8 *)(this + 0x28));
return;
}
|
|
64,545 |
LefDefParser::defwConstraintOperandSumEnd()
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defwWriter.cpp
|
int
defwConstraintOperandSumEnd()
{
defwFunc = DEFW_FPC_OPER; // Current function of writer
if (!defwFile)
return DEFW_UNINITIALIZED;
if (defwState != DEFW_FPC_OPER_SUM)
return DEFW_BAD_ORDER;
fprintf(defwFile, " )");
defwState = DEFW_FPC_OPER;
defwFPC = 0;
return DEFW_OK;
}
|
O3
|
cpp
|
LefDefParser::defwConstraintOperandSumEnd():
pushq %rbx
leaq 0xdc9b(%rip), %rax # 0x1e178
movl $0x4a, (%rax)
leaq 0xdc7e(%rip), %rax # 0x1e168
movq (%rax), %rcx
testq %rcx, %rcx
je 0x10530
leaq 0xdc7b(%rip), %rbx # 0x1e174
movl $0x2, %eax
cmpl $0x4b, (%rbx)
jne 0x10535
leaq 0x60da(%rip), %rdi # 0x165e4
movl $0x2, %esi
movl $0x1, %edx
callq 0x1110
movl $0x4a, (%rbx)
leaq 0xdc6a(%rip), %rax # 0x1e190
movl $0x0, (%rax)
xorl %eax, %eax
jmp 0x10535
movl $0x1, %eax
popq %rbx
retq
|
_ZN12LefDefParser27defwConstraintOperandSumEndEv:
push rbx
lea rax, _ZN12LefDefParser8defwFuncE; LefDefParser::defwFunc
mov dword ptr [rax], 4Ah ; 'J'
lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile
mov rcx, [rax]
test rcx, rcx
jz short loc_10530
lea rbx, _ZN12LefDefParser9defwStateE; LefDefParser::defwState
mov eax, 2
cmp dword ptr [rbx], 4Bh ; 'K'
jnz short loc_10535
lea rdi, asc_165DF+5; " )"
mov esi, 2
mov edx, 1
call _fwrite
mov dword ptr [rbx], 4Ah ; 'J'
lea rax, _ZN12LefDefParser7defwFPCE; LefDefParser::defwFPC
mov dword ptr [rax], 0
xor eax, eax
jmp short loc_10535
loc_10530:
mov eax, 1
loc_10535:
pop rbx
retn
|
long long LefDefParser::defwConstraintOperandSumEnd(LefDefParser *this)
{
long long result; // rax
LefDefParser::defwFunc = 74;
if ( !LefDefParser::defwFile )
return 1LL;
result = 2LL;
if ( LefDefParser::defwState == 75 )
{
fwrite(" )", 2LL, 1LL, LefDefParser::defwFile);
LefDefParser::defwState = 74;
LefDefParser::defwFPC = 0;
return 0LL;
}
return result;
}
|
defwConstraintOperandSumEnd:
PUSH RBX
LEA RAX,[0x11e178]
MOV dword ptr [RAX],0x4a
LEA RAX,[0x11e168]
MOV RCX,qword ptr [RAX]
TEST RCX,RCX
JZ 0x00110530
LEA RBX,[0x11e174]
MOV EAX,0x2
CMP dword ptr [RBX],0x4b
JNZ 0x00110535
LEA RDI,[0x1165e4]
MOV ESI,0x2
MOV EDX,0x1
CALL 0x00101110
MOV dword ptr [RBX],0x4a
LEA RAX,[0x11e190]
MOV dword ptr [RAX],0x0
XOR EAX,EAX
JMP 0x00110535
LAB_00110530:
MOV EAX,0x1
LAB_00110535:
POP RBX
RET
|
/* LefDefParser::defwConstraintOperandSumEnd() */
int8 LefDefParser::defwConstraintOperandSumEnd(void)
{
int8 uVar1;
defwFunc = 0x4a;
if (defwFile == (FILE *)0x0) {
uVar1 = 1;
}
else {
uVar1 = 2;
if (defwState == 0x4b) {
fwrite(&DAT_001165e4,2,1,defwFile);
defwState = 0x4a;
defwFPC = 0;
uVar1 = 0;
}
}
return uVar1;
}
|
|
64,546 |
CLI::App::set_help_flag(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&)
|
MikePodsytnik[P]TCRtrie/build_O0/_deps/cli11-src/include/CLI/impl/App_inl.hpp
|
CLI11_INLINE Option *App::set_help_flag(std::string flag_name, const std::string &help_description) {
// take flag_description by const reference otherwise add_flag tries to assign to help_description
if(help_ptr_ != nullptr) {
remove_option(help_ptr_);
help_ptr_ = nullptr;
}
// Empty name will simply remove the help flag
if(!flag_name.empty()) {
help_ptr_ = add_flag(flag_name, help_description);
help_ptr_->configurable(false);
}
return help_ptr_;
}
|
O0
|
cpp
|
CLI::App::set_help_flag(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&):
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rsi, -0x58(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x50(%rbp)
cmpq $0x0, 0x130(%rax)
je 0x25b09
movq -0x50(%rbp), %rdi
movq 0x130(%rdi), %rsi
callq 0x27e60
movq -0x50(%rbp), %rax
movq $0x0, 0x130(%rax)
movq -0x58(%rbp), %rdi
callq 0x99c0
testb $0x1, %al
jne 0x25b81
movq -0x58(%rbp), %rsi
leaq -0x38(%rbp), %rdi
movq %rdi, -0x68(%rbp)
callq 0x9250
movq -0x50(%rbp), %rdi
movq -0x68(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x27ff0
movq %rax, -0x60(%rbp)
jmp 0x25b3e
movq -0x50(%rbp), %rax
movq -0x60(%rbp), %rcx
movq %rcx, 0x130(%rax)
leaq -0x38(%rbp), %rdi
callq 0x9b90
movq -0x50(%rbp), %rax
movq 0x130(%rax), %rdi
xorl %esi, %esi
callq 0x280d0
jmp 0x25b81
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x9b90
jmp 0x25b92
movq -0x50(%rbp), %rax
movq 0x130(%rax), %rax
addq $0x70, %rsp
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0x9a70
nopl (%rax,%rax)
|
_ZN3CLI3App13set_help_flagENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS6_:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_58], rsi
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_8]
mov [rbp+var_50], rax
cmp qword ptr [rax+130h], 0
jz short loc_25B09
mov rdi, [rbp+var_50]; this
mov rsi, [rdi+130h]; CLI::Option *
call _ZN3CLI3App13remove_optionEPNS_6OptionE; CLI::App::remove_option(CLI::Option *)
mov rax, [rbp+var_50]
mov qword ptr [rax+130h], 0
loc_25B09:
mov rdi, [rbp+var_58]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_25B81
mov rsi, [rbp+var_58]
lea rdi, [rbp+var_38]
mov [rbp+var_68], rdi
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&)
mov rdi, [rbp+var_50]
mov rsi, [rbp+var_68]
mov rdx, [rbp+var_18]
call _ZN3CLI3App8add_flagIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEETnNSt9enable_ifIXaasr3std8is_constIT_EE5valuesr3std16is_constructibleIS7_SA_EE5valueENS_6detail7enablerEE4typeELSC_0EEEPNS_6OptionES7_RSA_
mov [rbp+var_60], rax
jmp short $+2
loc_25B3E:
mov rax, [rbp+var_50]
mov rcx, [rbp+var_60]
mov [rax+130h], rcx
lea rdi, [rbp+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov rax, [rbp+var_50]
mov rdi, [rax+130h]
xor esi, esi
call _ZN3CLI10OptionBaseINS_6OptionEE12configurableEb; CLI::OptionBase<CLI::Option>::configurable(bool)
jmp short loc_25B81
mov rcx, rax
mov eax, edx
mov [rbp+var_40], rcx
mov [rbp+var_44], eax
lea rdi, [rbp+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_25B92
loc_25B81:
mov rax, [rbp+var_50]
mov rax, [rax+130h]
add rsp, 70h
pop rbp
retn
loc_25B92:
mov rdi, [rbp+var_40]
call __Unwind_Resume
|
CLI::Option * CLI::App::set_help_flag(CLI::Option **a1, long long a2, long long a3)
{
_BYTE v4[32]; // [rsp+38h] [rbp-38h] BYREF
long long v5; // [rsp+58h] [rbp-18h]
long long v6; // [rsp+60h] [rbp-10h]
CLI::Option **v7; // [rsp+68h] [rbp-8h]
v7 = a1;
v6 = a2;
v5 = a3;
if ( a1[38] )
{
CLI::App::remove_option((CLI::App *)a1, a1[38]);
a1[38] = 0LL;
}
if ( (std::string::empty(a2) & 1) == 0 )
{
std::string::basic_string(v4, a2);
a1[38] = (CLI::Option *)ZN3CLI3App8add_flagIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEETnNSt9enable_ifIXaasr3std8is_constIT_EE5valuesr3std16is_constructibleIS7_SA_EE5valueENS_6detail7enablerEE4typeELSC_0EEEPNS_6OptionES7_RSA_(
a1,
v4,
v5);
std::string::~string(v4);
CLI::OptionBase<CLI::Option>::configurable(a1[38], 0LL);
}
return a1[38];
}
|
set_help_flag:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x58],RSI
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x50],RAX
CMP qword ptr [RAX + 0x130],0x0
JZ 0x00125b09
MOV RDI,qword ptr [RBP + -0x50]
MOV RSI,qword ptr [RDI + 0x130]
CALL 0x00127e60
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RAX + 0x130],0x0
LAB_00125b09:
MOV RDI,qword ptr [RBP + -0x58]
CALL 0x001099c0
TEST AL,0x1
JNZ 0x00125b81
MOV RSI,qword ptr [RBP + -0x58]
LEA RDI,[RBP + -0x38]
MOV qword ptr [RBP + -0x68],RDI
CALL 0x00109250
MOV RDI,qword ptr [RBP + -0x50]
MOV RSI,qword ptr [RBP + -0x68]
MOV RDX,qword ptr [RBP + -0x18]
LAB_00125b33:
CALL 0x00127ff0
LAB_00125b38:
MOV qword ptr [RBP + -0x60],RAX
JMP 0x00125b3e
LAB_00125b3e:
MOV RAX,qword ptr [RBP + -0x50]
MOV RCX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0x130],RCX
LEA RDI,[RBP + -0x38]
CALL 0x00109b90
MOV RAX,qword ptr [RBP + -0x50]
MOV RDI,qword ptr [RAX + 0x130]
XOR ESI,ESI
CALL 0x001280d0
JMP 0x00125b81
LAB_00125b81:
MOV RAX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RAX + 0x130]
ADD RSP,0x70
POP RBP
RET
|
/* CLI::App::set_help_flag(std::__cxx11::string, std::__cxx11::string const&) */
int8 __thiscall CLI::App::set_help_flag(App *this,string *param_2,int8 param_3)
{
ulong uVar1;
int8 uVar2;
string local_40 [32];
int8 local_20;
string *local_18;
App *local_10;
local_20 = param_3;
local_18 = param_2;
local_10 = this;
if (*(long *)(this + 0x130) != 0) {
remove_option(this,*(Option **)(this + 0x130));
*(int8 *)(this + 0x130) = 0;
}
uVar1 = std::__cxx11::string::empty();
if ((uVar1 & 1) == 0) {
std::__cxx11::string::string(local_40,param_2);
/* try { // try from 00125b33 to 00125b37 has its CatchHandler @ 00125b6a */
uVar2 = _ZN3CLI3App8add_flagIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEETnNSt9enable_ifIXaasr3std8is_constIT_EE5valuesr3std16is_constructibleIS7_SA_EE5valueENS_6detail7enablerEE4typeELSC_0EEEPNS_6OptionES7_RSA_
(this,local_40,local_20);
*(int8 *)(this + 0x130) = uVar2;
std::__cxx11::string::~string(local_40);
OptionBase<CLI::Option>::configurable(*(OptionBase<CLI::Option> **)(this + 0x130),false);
}
return *(int8 *)(this + 0x130);
}
|
|
64,547 |
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> minja::Value::get<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
|
llama.cpp/common/minja/minja.hpp
|
inline json Value::get<json>() const {
if (is_primitive()) return primitive_;
if (is_null()) return json();
if (array_) {
std::vector<json> res;
for (const auto& item : *array_) {
res.push_back(item.get<json>());
}
return res;
}
if (object_) {
json res = json::object();
for (const auto& [key, value] : *object_) {
if (key.is_string()) {
res[key.get<std::string>()] = value.get<json>();
} else if (key.is_primitive()) {
res[key.dump()] = value.get<json>();
} else {
throw std::runtime_error("Invalid key type for conversion to JSON: " + key.dump());
}
}
if (is_callable()) {
res["__callable__"] = true;
}
return res;
}
throw std::runtime_error("get<json> not defined for this value type: " + dump());
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> minja::Value::get<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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x10(%rsi), %rax
movq 0x20(%rsi), %rcx
movq %rax, %rsi
orq %rcx, %rsi
movq 0x30(%r14), %rdx
orq %rdx, %rsi
jne 0x7574a
addq $0x40, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x56230
jmp 0x759aa
testq %rdx, %rdx
sete %dl
movq %rax, %rsi
orq %rcx, %rsi
sete %sil
cmpb $0x0, 0x40(%r14)
sete %dil
andb %sil, %dil
andb %dl, %dil
cmpb $0x1, %dil
jne 0x75799
movb $0x0, (%rbx)
movq $0x0, 0x8(%rbx)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x60b38
movq %rbx, %rdi
movl $0x1, %esi
callq 0x60b38
jmp 0x759aa
testq %rax, %rax
je 0x7580b
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq (%rax), %r14
movq 0x8(%rax), %r13
cmpq %r13, %r14
je 0x757f3
leaq 0x20(%rsp), %r15
movq %rsp, %r12
movq %r15, %rdi
movq %r14, %rsi
callq 0x75708
movq %r12, %rdi
movq %r15, %rsi
callq 0x6112a
movq %r15, %rdi
xorl %esi, %esi
callq 0x60b38
movq %r15, %rdi
callq 0x60bd8
addq $0x50, %r14
cmpq %r13, %r14
jne 0x757c2
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x7638a
movq %rsp, %rdi
callq 0x61056
jmp 0x759aa
testq %rcx, %rcx
je 0x75a25
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x1, %r8d
callq 0x55646
movq 0x20(%r14), %rax
movq (%rax), %r15
movq 0x8(%rax), %r13
cmpq %r13, %r15
je 0x75946
leaq 0xa8(%rsp), %rbp
leaq 0x40(%rsp), %r12
leaq 0x10(%r15), %rsi
movzbl (%r15), %eax
testl %eax, %eax
je 0x758c7
cmpl $0x4, %eax
je 0x758c7
cmpl $0x3, %eax
jne 0x758bd
leaq 0x60(%rsp), %rdi
callq 0x75708
leaq 0x70(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x6c468
movq %rbx, %rdi
movq %r12, %rsi
callq 0x763c4
movq %rax, %rdi
leaq 0x60(%rsp), %r12
movq %r12, %rsi
callq 0x558ba
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x75922
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x1d160
leaq 0x60(%rsp), %r12
jmp 0x75922
addb $-0x5, %al
cmpb $0x3, %al
ja 0x759bf
movq %rbp, %rdi
callq 0x75708
movq %r12, %rdi
movq %r15, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
movl $0x20, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x53f1a
movq %rbx, %rdi
movq %r12, %rsi
callq 0x763c4
movq %rax, %rdi
movq %rbp, %rsi
callq 0x558ba
movq 0x40(%rsp), %rdi
movq %rbp, %r12
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x75922
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x1d160
movq %rbp, %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x60b38
movq %r12, %rdi
callq 0x60bd8
addq $0x60, %r15
cmpq %r13, %r15
leaq 0x40(%rsp), %r12
jne 0x75849
cmpq $0x0, 0x30(%r14)
je 0x759aa
xorps %xmm0, %xmm0
leaq 0x90(%rsp), %r14
movaps %xmm0, (%r14)
movq %r14, %rdi
movl $0x1, %esi
callq 0x6a26a
movq %r14, %rdi
movl $0x1, %esi
callq 0x60b38
leaq 0x5d649(%rip), %rsi # 0xd2fc6
movq %rbx, %rdi
callq 0x55844
leaq 0x90(%rsp), %r14
movq %rax, %rdi
movq %r14, %rsi
callq 0x558ba
movq %r14, %rdi
xorl %esi, %esi
callq 0x60b38
movq %r14, %rdi
callq 0x60bd8
movq %rbx, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x1d520
movq %rax, %r12
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
movl $0x20, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x53f1a
leaq 0x5d5ac(%rip), %rsi # 0xd2f9c
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x53e90
movb $0x1, %bpl
movq %rsp, %rsi
movq %r12, %rdi
callq 0x1d380
xorl %ebp, %ebp
movq 0x955a4(%rip), %rsi # 0x10afb8
movq 0x95555(%rip), %rdx # 0x10af70
movq %r12, %rdi
callq 0x1d890
jmp 0x75a80
movl $0x10, %edi
callq 0x1d520
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x5a4a4
leaq 0x5d586(%rip), %rsi # 0xd2fd3
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x53e90
movb $0x1, %bpl
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x1d380
xorl %ebp, %ebp
movq 0x95547(%rip), %rsi # 0x10afb8
movq 0x954f8(%rip), %rdx # 0x10af70
movq %rbx, %rdi
callq 0x1d890
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x75a9e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1d160
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x75ab9
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1d160
testb %bpl, %bpl
jne 0x75ae6
jmp 0x75c27
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x75ae6
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1d160
jmp 0x75ae6
movq %rax, %r14
movq %rbx, %rdi
callq 0x1dc90
jmp 0x75c27
movq %rax, %r14
leaq 0x90(%rsp), %r15
jmp 0x75bd5
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x75b21
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1d160
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x75b3c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1d160
testb %bpl, %bpl
jne 0x75b6e
jmp 0x75bec
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x75b6e
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1d160
jmp 0x75b6e
jmp 0x75c00
movq %rax, %r14
movq %r12, %rdi
callq 0x1dc90
jmp 0x75bec
movq %rax, %r14
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x75ba2
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x1d160
jmp 0x75ba2
movq %rax, %r14
leaq 0x60(%rsp), %r15
jmp 0x75bd5
movq %rax, %r14
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x75bcd
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x1d160
jmp 0x75bcd
movq %rax, %r14
leaq 0xa8(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x60b38
movq %r15, %rdi
callq 0x60bd8
jmp 0x75bec
movq %rax, %r14
movq %rbx, %rdi
xorl %esi, %esi
callq 0x60b38
movq %rbx, %rdi
callq 0x60bd8
jmp 0x75c27
movq %rax, %r14
jmp 0x75c1f
movq %rax, %r14
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x60b38
movq %rbx, %rdi
callq 0x60bd8
movq %rsp, %rdi
callq 0x61056
movq %r14, %rdi
callq 0x1d8e0
|
_ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0B8h
mov r14, rsi
mov rbx, rdi
mov rax, [rsi+10h]
mov rcx, [rsi+20h]
mov rsi, rax
or rsi, rcx
mov rdx, [r14+30h]
or rsi, rdx
jnz short loc_7574A
add r14, 40h ; '@'
mov rdi, rbx
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; 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>::basic_json(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&)
jmp loc_759AA
loc_7574A:
test rdx, rdx
setz dl
mov rsi, rax
or rsi, rcx
setz sil
cmp byte ptr [r14+40h], 0
setz dil
and dil, sil
and dil, dl
cmp dil, 1
jnz short loc_75799
mov byte ptr [rbx], 0
mov qword ptr [rbx+8], 0
mov rdi, rbx
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
jmp loc_759AA
loc_75799:
test rax, rax
jz short loc_7580B
xorps xmm0, xmm0
movaps [rsp+0E8h+var_E8], xmm0
mov [rsp+0E8h+var_D8], 0
mov r14, [rax]
mov r13, [rax+8]
cmp r14, r13
jz short loc_757F3
lea r15, [rsp+0E8h+var_C8]
mov r12, rsp
loc_757C2:
mov rdi, r15
mov rsi, r14
call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<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>>(void)
mov rdi, r12
mov rsi, r15
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
add r14, 50h ; 'P'
cmp r14, r13
jnz short loc_757C2
loc_757F3:
mov rsi, rsp
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS3_ISD_SaISD_EESG_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector()
jmp loc_759AA
loc_7580B:
test rcx, rcx
jz loc_75A25
mov rdi, rbx
xor esi, esi
xor edx, edx
xor ecx, ecx
mov r8d, 1
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; 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>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)
mov rax, [r14+20h]
mov r15, [rax]
mov r13, [rax+8]
cmp r15, r13
jz loc_75946
lea rbp, [rsp+0E8h+var_40]
lea r12, [rsp+0E8h+var_A8]
loc_75849:
lea rsi, [r15+10h]
movzx eax, byte ptr [r15]
test eax, eax
jz short loc_758C7
cmp eax, 4
jz short loc_758C7
cmp eax, 3
jnz short loc_758BD
lea rdi, [rsp+0E8h+var_88]
call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<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>>(void)
lea r12, [rsp+0E8h+var_78]
mov rdi, r12
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
mov rdi, rbx
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixES9_; 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>::operator[](std::string)
mov rdi, rax
lea r12, [rsp+0E8h+var_88]
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; 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>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, [rsp+0E8h+var_78]; void *
lea rax, [rsp+0E8h+var_68]
cmp rdi, rax
jz short loc_75922
mov rsi, [rsp+0E8h+var_68]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
lea r12, [rsp+0E8h+var_88]
jmp short loc_75922
loc_758BD:
add al, 0FBh
cmp al, 3
ja loc_759BF
loc_758C7:
mov rdi, rbp
call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<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>>(void)
mov rdi, r12
mov rsi, r15
mov edx, 0FFFFFFFFh
mov ecx, 20h ; ' '
xor r8d, r8d
xor r9d, r9d
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t)
mov rdi, rbx
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixES9_; 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>::operator[](std::string)
mov rdi, rax
mov rsi, rbp
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; 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>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, [rsp+0E8h+var_A8]; void *
mov r12, rbp
lea rax, [rsp+0E8h+var_98]
cmp rdi, rax
jz short loc_75922
mov rsi, [rsp+0E8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
mov r12, rbp
loc_75922:
mov rdi, r12
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
add r15, 60h ; '`'
cmp r15, r13
lea r12, [rsp+0E8h+var_A8]
jnz loc_75849
loc_75946:
cmp qword ptr [r14+30h], 0
jz short loc_759AA
xorps xmm0, xmm0
lea r14, [rsp+0E8h+var_58]
movaps xmmword ptr [r14], xmm0
mov rdi, r14
mov esi, 1
call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE4EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_9boolean_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::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>::boolean_t)
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)
lea rsi, aCallable; "__callable__"
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERSD_PT_; 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>::operator[]<char const>(char const *)
lea r14, [rsp+0E8h+var_58]
mov rdi, rax
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; 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>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_759AA:
mov rax, rbx
add rsp, 0B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_759BF:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r12, rax
lea rdi, [rsp+0E8h+var_C8]
mov rsi, r15
mov edx, 0FFFFFFFFh
mov ecx, 20h ; ' '
xor r8d, r8d
xor r9d, r9d
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t)
lea rsi, aInvalidKeyType; "Invalid key type for conversion to JSON"...
mov rdi, rsp
lea rdx, [rsp+0E8h+var_C8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
mov rsi, rsp
mov rdi, r12
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r12; void *
call ___cxa_throw
jmp short loc_75A80
loc_75A25:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+0E8h+var_C8]
mov rsi, r14
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aGetJsonNotDefi; "get<json> not defined for this value ty"...
mov rdi, rsp
lea rdx, [rsp+0E8h+var_C8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
mov rsi, rsp
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_75A80:
mov r14, rax
lea rax, [rsp+0E8h+var_D8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_75A9E
mov rsi, [rsp+0E8h+var_D8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_75A9E:
lea rax, [rsp+0E8h+var_B8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_75AB9
mov rsi, [rsp+0E8h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_75AB9:
test bpl, bpl
jnz short loc_75AE6
jmp loc_75C27
mov r14, rax
lea rax, [rsp+0E8h+var_B8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_75AE6
mov rsi, [rsp+0E8h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_75AE6
mov r14, rax
loc_75AE6:
mov rdi, rbx; void *
call ___cxa_free_exception
jmp loc_75C27
mov r14, rax
lea r15, [rsp+0E8h+var_58]
jmp loc_75BD5
mov r14, rax
lea rax, [rsp+0E8h+var_D8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_75B21
mov rsi, [rsp+0E8h+var_D8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_75B21:
lea rax, [rsp+0E8h+var_B8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_75B3C
mov rsi, [rsp+0E8h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_75B3C:
test bpl, bpl
jnz short loc_75B6E
jmp loc_75BEC
mov r14, rax
lea rax, [rsp+0E8h+var_B8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_75B6E
mov rsi, [rsp+0E8h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_75B6E
jmp loc_75C00
mov r14, rax
loc_75B6E:
mov rdi, r12; void *
call ___cxa_free_exception
jmp short loc_75BEC
mov r14, rax
mov rdi, [rsp+0E8h+var_78]; void *
lea rax, [rsp+0E8h+var_68]
cmp rdi, rax
jz short loc_75BA2
mov rsi, [rsp+0E8h+var_68]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_75BA2
mov r14, rax
loc_75BA2:
lea r15, [rsp+0E8h+var_88]
jmp short loc_75BD5
mov r14, rax
mov rdi, [rsp+0E8h+var_A8]; void *
lea rax, [rsp+0E8h+var_98]
cmp rdi, rax
jz short loc_75BCD
mov rsi, [rsp+0E8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_75BCD
mov r14, rax
loc_75BCD:
lea r15, [rsp+0E8h+var_40]
loc_75BD5:
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
jmp short loc_75BEC
mov r14, rax
loc_75BEC:
mov rdi, rbx
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
jmp short loc_75C27
loc_75C00:
mov r14, rax
jmp short loc_75C1F
mov r14, rax
lea rbx, [rsp+0E8h+var_C8]
mov rdi, rbx
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_75C1F:
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector()
loc_75C27:
mov rdi, r14
call __Unwind_Resume
|
long long minja::Value::get<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>>(
long long a1,
long long a2)
{
unsigned long long v3; // rax
long long v4; // rcx
long long v5; // rdx
long long v6; // r14
long long v7; // r13
long long v8; // rax
_BYTE *v9; // r15
_BYTE *v10; // r13
_BYTE *v11; // rsi
int v12; // eax
char *v13; // rax
char *v14; // r12
char *v15; // rax
char *v16; // rax
void *v18; // r12
void *exception; // rbx
__int128 v20; // [rsp+0h] [rbp-E8h] BYREF
long long v21; // [rsp+10h] [rbp-D8h]
char v22[16]; // [rsp+20h] [rbp-C8h] BYREF
void *v23[2]; // [rsp+40h] [rbp-A8h] BYREF
long long v24; // [rsp+50h] [rbp-98h] BYREF
char v25[16]; // [rsp+60h] [rbp-88h] BYREF
void *v26[2]; // [rsp+70h] [rbp-78h] BYREF
long long v27; // [rsp+80h] [rbp-68h] BYREF
char v28[24]; // [rsp+90h] [rbp-58h] BYREF
char v29[64]; // [rsp+A8h] [rbp-40h] BYREF
v3 = *(_QWORD *)(a2 + 16);
v4 = *(_QWORD *)(a2 + 32);
v5 = *(_QWORD *)(a2 + 48);
if ( !(v5 | v4 | v3) )
{
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>::basic_json(
a1,
a2 + 64);
return a1;
}
if ( v5 == 0 && (v4 | v3) == 0 && *(_BYTE *)(a2 + 64) == 0 )
{
*(_BYTE *)a1 = 0;
*(_QWORD *)(a1 + 8) = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1);
return a1;
}
if ( v3 )
{
v20 = 0LL;
v21 = 0LL;
v6 = *(_QWORD *)v3;
v7 = *(_QWORD *)(v3 + 8);
if ( *(_QWORD *)v3 != v7 )
{
do
{
minja::Value::get<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>>(
v22,
v6);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<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>>(
(long long)&v20,
(long long)v22);
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(v22);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v22);
v6 += 80LL;
}
while ( v6 != v7 );
}
((void ( *)(long long, __int128 *))ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS3_ISD_SaISD_EESG_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_)(
a1,
&v20);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~vector((long long)&v20);
return a1;
}
if ( !v4 )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v22, a2, 0xFFFFFFFF, 0);
std::operator+<char>(&v20, (long long)"get<json> not defined for this value type: ", (long long)v22);
std::runtime_error::runtime_error(exception, &v20);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
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>::basic_json(
a1,
0LL,
0LL,
0LL,
1LL);
v8 = *(_QWORD *)(a2 + 32);
v9 = *(_BYTE **)v8;
v10 = *(_BYTE **)(v8 + 8);
if ( *(_BYTE **)v8 != v10 )
{
while ( 1 )
{
v11 = v9 + 16;
v12 = (unsigned __int8)*v9;
if ( !*v9 || v12 == 4 )
goto LABEL_17;
if ( v12 != 3 )
break;
minja::Value::get<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>>(
v25,
v11);
ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(
(long long)v26,
(long long)v9);
v13 = (char *)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>::operator[](
a1,
v26);
v14 = v25;
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>::operator=(
v13,
v25);
if ( v26[0] != &v27 )
{
operator delete(v26[0], v27 + 1);
v14 = v25;
}
LABEL_19:
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(v14);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v14);
v9 += 96;
if ( v9 == v10 )
goto LABEL_20;
}
if ( (unsigned __int8)(v12 - 5) > 3u )
{
v18 = __cxa_allocate_exception(0x10uLL);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump(
(long long)v22,
(long long)v9,
-1,
32,
0,
0);
std::operator+<char>(&v20, (long long)"Invalid key type for conversion to JSON: ", (long long)v22);
std::runtime_error::runtime_error(v18, &v20);
__cxa_throw(
v18,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
LABEL_17:
minja::Value::get<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>>(
v29,
v11);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump(
(long long)v23,
(long long)v9,
-1,
32,
0,
0);
v15 = (char *)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>::operator[](
a1,
v23);
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>::operator=(
v15,
v29);
v14 = v29;
if ( v23[0] != &v24 )
{
operator delete(v23[0], v24 + 1);
v14 = v29;
}
goto LABEL_19;
}
LABEL_20:
if ( *(_QWORD *)(a2 + 48) )
{
*(_OWORD *)v28 = 0LL;
nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>::construct<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>>(
(unsigned __int8 *)v28,
1u);
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(v28);
v16 = (char *)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>::operator[]<char const>(
a1,
(long long)"__callable__");
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>::operator=(
v16,
v28);
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(v28);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v28);
}
return a1;
}
|
get<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 RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xb8
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RSI + 0x10]
MOV RCX,qword ptr [RSI + 0x20]
MOV RSI,RAX
OR RSI,RCX
MOV RDX,qword ptr [R14 + 0x30]
OR RSI,RDX
JNZ 0x0017574a
ADD R14,0x40
MOV RDI,RBX
MOV RSI,R14
CALL 0x00156230
JMP 0x001759aa
LAB_0017574a:
TEST RDX,RDX
SETZ DL
MOV RSI,RAX
OR RSI,RCX
SETZ SIL
CMP byte ptr [R14 + 0x40],0x0
SETZ DIL
AND DIL,SIL
AND DIL,DL
CMP DIL,0x1
JNZ 0x00175799
MOV byte ptr [RBX],0x0
MOV qword ptr [RBX + 0x8],0x0
MOV RDI,RBX
MOV ESI,0x1
CALL 0x00160b38
MOV RDI,RBX
MOV ESI,0x1
CALL 0x00160b38
JMP 0x001759aa
LAB_00175799:
TEST RAX,RAX
JZ 0x0017580b
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x10],0x0
MOV R14,qword ptr [RAX]
MOV R13,qword ptr [RAX + 0x8]
CMP R14,R13
JZ 0x001757f3
LEA R15,[RSP + 0x20]
MOV R12,RSP
LAB_001757c2:
MOV RDI,R15
MOV RSI,R14
CALL 0x00175708
LAB_001757cd:
MOV RDI,R12
MOV RSI,R15
CALL 0x0016112a
MOV RDI,R15
XOR ESI,ESI
CALL 0x00160b38
MOV RDI,R15
CALL 0x00160bd8
ADD R14,0x50
CMP R14,R13
JNZ 0x001757c2
LAB_001757f3:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x0017638a
LAB_001757fe:
MOV RDI,RSP
CALL 0x00161056
JMP 0x001759aa
LAB_0017580b:
TEST RCX,RCX
JZ 0x00175a25
MOV RDI,RBX
XOR ESI,ESI
XOR EDX,EDX
XOR ECX,ECX
MOV R8D,0x1
CALL 0x00155646
MOV RAX,qword ptr [R14 + 0x20]
MOV R15,qword ptr [RAX]
MOV R13,qword ptr [RAX + 0x8]
CMP R15,R13
JZ 0x00175946
LEA RBP,[RSP + 0xa8]
LEA R12,[RSP + 0x40]
LAB_00175849:
LEA RSI,[R15 + 0x10]
MOVZX EAX,byte ptr [R15]
TEST EAX,EAX
JZ 0x001758c7
CMP EAX,0x4
JZ 0x001758c7
CMP EAX,0x3
JNZ 0x001758bd
LAB_0017585f:
LEA RDI,[RSP + 0x60]
CALL 0x00175708
LAB_00175869:
LEA R12,[RSP + 0x70]
MOV RDI,R12
MOV RSI,R15
CALL 0x0016c468
LAB_00175879:
MOV RDI,RBX
MOV RSI,R12
CALL 0x001763c4
MOV RDI,RAX
LEA R12,[RSP + 0x60]
MOV RSI,R12
CALL 0x001558ba
MOV RDI,qword ptr [RSP + 0x70]
LEA RAX,[RSP + 0x80]
CMP RDI,RAX
JZ 0x00175922
MOV RSI,qword ptr [RSP + 0x80]
INC RSI
CALL 0x0011d160
LEA R12,[RSP + 0x60]
JMP 0x00175922
LAB_001758bd:
ADD AL,0xfb
CMP AL,0x3
JA 0x001759bf
LAB_001758c7:
MOV RDI,RBP
CALL 0x00175708
LAB_001758cf:
MOV RDI,R12
MOV RSI,R15
MOV EDX,0xffffffff
MOV ECX,0x20
XOR R8D,R8D
XOR R9D,R9D
CALL 0x00153f1a
LAB_001758ea:
MOV RDI,RBX
MOV RSI,R12
CALL 0x001763c4
MOV RDI,RAX
MOV RSI,RBP
CALL 0x001558ba
MOV RDI,qword ptr [RSP + 0x40]
MOV R12,RBP
LEA RAX,[RSP + 0x50]
CMP RDI,RAX
JZ 0x00175922
MOV RSI,qword ptr [RSP + 0x50]
INC RSI
CALL 0x0011d160
MOV R12,RBP
LAB_00175922:
MOV RDI,R12
XOR ESI,ESI
CALL 0x00160b38
MOV RDI,R12
CALL 0x00160bd8
ADD R15,0x60
CMP R15,R13
LEA R12,[RSP + 0x40]
JNZ 0x00175849
LAB_00175946:
CMP qword ptr [R14 + 0x30],0x0
JZ 0x001759aa
XORPS XMM0,XMM0
LEA R14,[RSP + 0x90]
MOVAPS xmmword ptr [R14],XMM0
MOV RDI,R14
MOV ESI,0x1
CALL 0x0016a26a
MOV RDI,R14
MOV ESI,0x1
CALL 0x00160b38
LAB_00175976:
LEA RSI,[0x1d2fc6]
MOV RDI,RBX
CALL 0x00155844
LAB_00175985:
LEA R14,[RSP + 0x90]
MOV RDI,RAX
MOV RSI,R14
CALL 0x001558ba
MOV RDI,R14
XOR ESI,ESI
CALL 0x00160b38
MOV RDI,R14
CALL 0x00160bd8
LAB_001759aa:
MOV RAX,RBX
ADD RSP,0xb8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001759bf:
MOV EDI,0x10
CALL 0x0011d520
MOV R12,RAX
LAB_001759cc:
LEA RDI,[RSP + 0x20]
MOV RSI,R15
MOV EDX,0xffffffff
MOV ECX,0x20
XOR R8D,R8D
XOR R9D,R9D
CALL 0x00153f1a
LAB_001759e9:
LEA RSI,[0x1d2f9c]
MOV RDI,RSP
LEA RDX,[RSP + 0x20]
CALL 0x00153e90
MOV BPL,0x1
LAB_00175a00:
MOV RSI,RSP
MOV RDI,R12
CALL 0x0011d380
XOR EBP,EBP
MOV RSI,qword ptr [0x0020afb8]
MOV RDX,qword ptr [0x0020af70]
MOV RDI,R12
CALL 0x0011d890
LAB_00175a25:
MOV EDI,0x10
CALL 0x0011d520
MOV RBX,RAX
LAB_00175a32:
LEA RDI,[RSP + 0x20]
MOV RSI,R14
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x0015a4a4
LAB_00175a46:
LEA RSI,[0x1d2fd3]
MOV RDI,RSP
LEA RDX,[RSP + 0x20]
CALL 0x00153e90
MOV BPL,0x1
LAB_00175a5d:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x0011d380
XOR EBP,EBP
MOV RSI,qword ptr [0x0020afb8]
MOV RDX,qword ptr [0x0020af70]
MOV RDI,RBX
CALL 0x0011d890
|
/* 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>
minja::Value::get<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 minja::Value::
get<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)
{
char cVar1;
long *plVar2;
long lVar3;
char *pcVar4;
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>
*pbVar5;
basic_json *pbVar6;
runtime_error *prVar7;
long in_RSI;
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>
*in_RDI;
data *this;
long lVar8;
char *pcVar9;
int8 local_e8;
int8 uStack_e0;
int8 local_d8;
data local_c8 [32];
long *local_a8 [2];
long local_98 [2];
data local_88 [16];
long *local_78 [2];
long local_68 [2];
int8 local_58;
int8 uStack_50;
data local_40 [16];
plVar2 = *(long **)(in_RSI + 0x10);
lVar8 = *(long *)(in_RSI + 0x20);
if ((plVar2 == (long *)0x0 && lVar8 == 0) && *(long *)(in_RSI + 0x30) == 0) {
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(in_RDI,(basic_json *)(in_RSI + 0x40));
}
else if ((*(char *)(in_RSI + 0x40) == '\0' && (plVar2 == (long *)0x0 && lVar8 == 0)) &&
*(long *)(in_RSI + 0x30) == 0) {
*in_RDI = (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;
*(int8 *)(in_RDI + 8) = 0;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(in_RDI,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(in_RDI,0));
}
else if (plVar2 == (long *)0x0) {
if (lVar8 == 0) {
prVar7 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00175a32 to 00175a45 has its CatchHandler @ 00175ae3 */
dump_abi_cxx11_((int)local_c8,SUB81(in_RSI,0));
/* try { // try from 00175a46 to 00175a59 has its CatchHandler @ 00175ac3 */
std::operator+((char *)&local_e8,(string *)"get<json> not defined for this value type: ");
/* try { // try from 00175a5d to 00175a7f has its CatchHandler @ 00175a80 */
std::runtime_error::runtime_error(prVar7,(string *)&local_e8);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar7,PTR_typeinfo_0020afb8,PTR__runtime_error_0020af70);
}
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();
pcVar9 = (char *)**(int8 **)(in_RSI + 0x20);
pcVar4 = (char *)(*(int8 **)(in_RSI + 0x20))[1];
if (pcVar9 != pcVar4) {
do {
cVar1 = *pcVar9;
if ((cVar1 == '\0') || (cVar1 == '\x04')) {
LAB_001758c7:
/* try { // try from 001758c7 to 001758ce has its CatchHandler @ 00175be9 */
get<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>>
();
/* try { // try from 001758cf to 001758e9 has its CatchHandler @ 00175bca */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::dump(local_a8,pcVar9,0xffffffff,0x20,0,0);
/* try { // try from 001758ea to 001758f4 has its CatchHandler @ 00175ba9 */
pbVar5 = (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::
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>
::operator[]();
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>
::operator=(pbVar5,local_40);
this = local_40;
if (local_a8[0] != local_98) {
operator_delete(local_a8[0],local_98[0] + 1);
}
}
else {
if (cVar1 != '\x03') {
if (3 < (byte)(cVar1 - 5U)) {
prVar7 = (runtime_error *)__cxa_allocate_exception(0x10,pcVar9 + 0x10);
/* try { // try from 001759cc to 001759e8 has its CatchHandler @ 00175b6b */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::dump(local_c8,pcVar9,0xffffffff,0x20,0,0);
/* try { // try from 001759e9 to 001759fc has its CatchHandler @ 00175b46 */
std::operator+((char *)&local_e8,(string *)"Invalid key type for conversion to JSON: "
);
/* try { // try from 00175a00 to 00175a22 has its CatchHandler @ 00175b03 */
std::runtime_error::runtime_error(prVar7,(string *)&local_e8);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar7,PTR_typeinfo_0020afb8,PTR__runtime_error_0020af70);
}
goto LAB_001758c7;
}
/* try { // try from 0017585f to 00175868 has its CatchHandler @ 00175be9 */
get<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>>
();
/* try { // try from 00175869 to 00175878 has its CatchHandler @ 00175b9f */
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
(local_78,pcVar9);
/* try { // try from 00175879 to 00175883 has its CatchHandler @ 00175b78 */
pbVar5 = (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::
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>
::operator[]();
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>
::operator=(pbVar5,local_88);
this = local_88;
if (local_78[0] != local_68) {
operator_delete(local_78[0],local_68[0] + 1);
this = local_88;
}
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(this,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(this);
pcVar9 = pcVar9 + 0x60;
} while (pcVar9 != pcVar4);
}
if (*(long *)(in_RSI + 0x30) != 0) {
local_58 = 0;
uStack_50 = 0;
nlohmann::json_abi_v3_11_3::detail::
external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>::
construct<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>>
(&local_58,1);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(&local_58,0));
/* try { // try from 00175976 to 00175984 has its CatchHandler @ 00175af3 */
pbVar6 = 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>
::operator[]<char_const>(in_RDI,"__callable__");
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>
::operator=((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>
*)pbVar6,(data *)&local_58);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81((data *)&local_58,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)&local_58);
}
}
else {
local_e8 = 0;
uStack_e0 = 0;
local_d8 = 0;
lVar8 = *plVar2;
lVar3 = plVar2[1];
if (lVar8 != lVar3) {
do {
/* try { // try from 001757c2 to 001757cc has its CatchHandler @ 00175c00 */
get<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>>
();
/* try { // try from 001757cd to 001757d7 has its CatchHandler @ 00175c05 */
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<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>>
((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_e8,(basic_json *)local_c8);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_c8,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_c8);
lVar8 = lVar8 + 0x50;
} while (lVar8 != lVar3);
}
/* try { // try from 001757f3 to 001757fd has its CatchHandler @ 00175b66 */
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS3_ISD_SaISD_EESG_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_
();
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::~vector((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_e8);
}
return;
}
|
|
64,548 |
run_thread_benchmark
|
eloqsql/mysys/thr_timer.c
|
static void run_thread_benchmark(int param)
{
int i;
struct st_my_thread_var *current_my_thread_var;
thr_timer_t timer_data;
DBUG_ENTER("run_thread_benchmark");
current_my_thread_var= my_thread_var;
thr_timer_init(&timer_data, send_signal, current_my_thread_var);
for (i=1 ; i <= param ; i++)
{
if (thr_timer_settime(&timer_data, 1000000))
{
printf("Thread: %s timers aborted\n",my_thread_name());
break;
}
thr_timer_end(&timer_data);
}
DBUG_VOID_RETURN;
}
|
O0
|
c
|
run_thread_benchmark:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl %edi, -0x4(%rbp)
callq 0x26ab0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdx
leaq -0x40(%rbp), %rdi
leaq 0x5d(%rip), %rsi # 0x259d0
callq 0x24e50
movl $0x1, -0x8(%rbp)
movl -0x8(%rbp), %eax
cmpl -0x4(%rbp), %eax
jg 0x259c5
leaq -0x40(%rbp), %rdi
movl $0xf4240, %esi # imm = 0xF4240
callq 0x24ec0
cmpb $0x0, %al
je 0x259b1
callq 0x270f0
movq %rax, %rsi
leaq 0x5381b(%rip), %rdi # 0x791c3
movb $0x0, %al
callq 0x24050
jmp 0x259c5
leaq -0x40(%rbp), %rdi
callq 0x25080
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x2597f
jmp 0x259c7
jmp 0x259c9
addq $0x40, %rsp
popq %rbp
retq
nop
|
run_thread_benchmark:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_4], edi
call _my_thread_var
mov [rbp+var_10], rax
mov rdx, [rbp+var_10]
lea rdi, [rbp+var_40]
lea rsi, send_signal
call thr_timer_init
mov [rbp+var_8], 1
loc_2597F:
mov eax, [rbp+var_8]
cmp eax, [rbp+var_4]
jg short loc_259C5
lea rdi, [rbp+var_40]
mov esi, offset unk_F4240
call thr_timer_settime
cmp al, 0
jz short loc_259B1
call my_thread_name
mov rsi, rax
lea rdi, aThreadSTimersA; "Thread: %s timers aborted\n"
mov al, 0
call _printf
jmp short loc_259C5
loc_259B1:
lea rdi, [rbp+var_40]
call thr_timer_end
mov eax, [rbp+var_8]
add eax, 1
mov [rbp+var_8], eax
jmp short loc_2597F
loc_259C5:
jmp short $+2
loc_259C7:
jmp short $+2
loc_259C9:
add rsp, 40h
pop rbp
retn
|
long long run_thread_benchmark(int a1)
{
long long result; // rax
const char *v2; // rax
_BYTE v3[48]; // [rsp+0h] [rbp-40h] BYREF
long long v4; // [rsp+30h] [rbp-10h]
int i; // [rsp+38h] [rbp-8h]
int v6; // [rsp+3Ch] [rbp-4h]
v6 = a1;
v4 = my_thread_var();
thr_timer_init((long long)v3, (long long)send_signal, v4);
for ( i = 1; ; ++i )
{
result = (unsigned int)i;
if ( i > v6 )
break;
if ( thr_timer_settime((long long)v3, (long long)&unk_F4240) )
{
v2 = (const char *)my_thread_name();
return printf("Thread: %s timers aborted\n", v2);
}
thr_timer_end((long long)v3);
}
return result;
}
|
run_thread_benchmark:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV dword ptr [RBP + -0x4],EDI
CALL 0x00126ab0
MOV qword ptr [RBP + -0x10],RAX
MOV RDX,qword ptr [RBP + -0x10]
LEA RDI,[RBP + -0x40]
LEA RSI,[0x1259d0]
CALL 0x00124e50
MOV dword ptr [RBP + -0x8],0x1
LAB_0012597f:
MOV EAX,dword ptr [RBP + -0x8]
CMP EAX,dword ptr [RBP + -0x4]
JG 0x001259c5
LEA RDI,[RBP + -0x40]
MOV ESI,0xf4240
CALL 0x00124ec0
CMP AL,0x0
JZ 0x001259b1
CALL 0x001270f0
MOV RSI,RAX
LEA RDI,[0x1791c3]
MOV AL,0x0
CALL 0x00124050
JMP 0x001259c5
LAB_001259b1:
LEA RDI,[RBP + -0x40]
CALL 0x00125080
MOV EAX,dword ptr [RBP + -0x8]
ADD EAX,0x1
MOV dword ptr [RBP + -0x8],EAX
JMP 0x0012597f
LAB_001259c5:
JMP 0x001259c7
LAB_001259c7:
JMP 0x001259c9
LAB_001259c9:
ADD RSP,0x40
POP RBP
RET
|
void run_thread_benchmark(int param_1)
{
char cVar1;
int8 uVar2;
int1 local_48 [48];
int8 local_18;
int local_10;
int local_c;
local_c = param_1;
local_18 = _my_thread_var();
thr_timer_init(local_48,send_signal,local_18);
local_10 = 1;
while( true ) {
if (local_c < local_10) {
return;
}
cVar1 = thr_timer_settime(local_48,1000000);
if (cVar1 != '\0') break;
thr_timer_end(local_48);
local_10 = local_10 + 1;
}
uVar2 = my_thread_name();
printf("Thread: %s timers aborted\n",uVar2);
return;
}
|
|
64,549 |
Acore::Impl::StringConvertImpl::For<unsigned short, void>::ToString[abi:cxx11](unsigned short)
|
SylCore-WoTLK/src/common/Utilities/StringConvert.h
|
static std::string ToString(T val)
{
std::string buf(20, '\0'); /* 2^64 is 20 decimal characters, -(2^63) is 20 including the sign */
char* const start = buf.data();
char* const end = (start + buf.length());
std::to_chars_result const res = std::to_chars(start, end, val);
ASSERT(res.ec == std::errc());
buf.resize(res.ptr - start);
return buf;
}
|
O0
|
c
|
Acore::Impl::StringConvertImpl::For<unsigned short, void>::ToString[abi:cxx11](unsigned short):
subq $0x138, %rsp # imm = 0x138
movq %rdi, 0x50(%rsp)
movq %rdi, %rax
movq %rax, 0x58(%rsp)
movq %rdi, 0x110(%rsp)
movq %rsi, 0x108(%rsp)
movb $0x0, 0x107(%rsp)
leaq 0x106(%rsp), %rcx
movq %rcx, 0x118(%rsp)
movq 0x118(%rsp), %rax
movq %rax, 0x130(%rsp)
movl $0x14, %esi
xorl %edx, %edx
callq 0x1a5e90
jmp 0x1a894a
movq 0x50(%rsp), %rdi
leaq 0x106(%rsp), %rax
movq %rax, 0x120(%rsp)
callq 0x1a5f10
movq 0x50(%rsp), %rdi
movq %rax, 0xe8(%rsp)
movq 0xe8(%rsp), %rax
movq %rax, 0x38(%rsp)
callq 0x309b0
movq %rax, %rcx
movq 0x38(%rsp), %rax
addq %rcx, %rax
movq %rax, 0xe0(%rsp)
movq 0xe8(%rsp), %rdi
movq 0xe0(%rsp), %rsi
movq 0x108(%rsp), %rdx
movl $0xa, %ecx
callq 0x1a8b70
movl %edx, 0x44(%rsp)
movq %rax, 0x48(%rsp)
jmp 0x1a89c3
movl 0x44(%rsp), %eax
movq 0x48(%rsp), %rcx
movq %rcx, 0xd0(%rsp)
movl %eax, 0xd8(%rsp)
cmpl $0x0, 0xd8(%rsp)
je 0x1a8b06
leaq 0x180f6a(%rip), %rsi # 0x32995a
leaq 0xc0(%rsp), %rdi
callq 0x2e0e0
leaq 0x180faa(%rip), %rsi # 0x3299ae
leaq 0xb0(%rsp), %rdi
callq 0x2e0e0
leaq 0x80(%rsp), %rdi
callq 0x1fdd10
jmp 0x1a8a20
leaq 0x80(%rsp), %rdi
callq 0x31010
movq %rax, 0xa0(%rsp)
movq %rdx, 0xa8(%rsp)
leaq 0x180f73(%rip), %rsi # 0x3299b7
leaq 0x70(%rsp), %rdi
callq 0x2e0e0
leaq 0x60(%rsp), %rdi
callq 0x2e030
movq 0xc0(%rsp), %rdi
movq 0xc8(%rsp), %rsi
movq 0xb0(%rsp), %rcx
movq 0xb8(%rsp), %r8
movups 0x60(%rsp), %xmm0
movq %rsp, %rax
movups %xmm0, 0x20(%rax)
movups 0x70(%rsp), %xmm0
movups %xmm0, 0x10(%rax)
movups 0xa0(%rsp), %xmm0
movups %xmm0, (%rax)
movl $0x57, %edx
callq 0x1fbfe0
jmp 0x1a8aa4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
leaq 0x106(%rsp), %rax
movq %rax, 0x128(%rsp)
jmp 0x1a8b5c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
jmp 0x1a8b52
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
leaq 0x80(%rsp), %rdi
callq 0x2de90
jmp 0x1a8b52
jmp 0x1a8b08
jmp 0x1a8b0a
movq 0x50(%rsp), %rdi
movq 0xd0(%rsp), %rsi
movq 0xe8(%rsp), %rax
subq %rax, %rsi
callq 0x83880
jmp 0x1a8b29
movb $0x1, 0x107(%rsp)
testb $0x1, 0x107(%rsp)
jne 0x1a8b45
movq 0x50(%rsp), %rdi
callq 0x2de90
movq 0x58(%rsp), %rax
addq $0x138, %rsp # imm = 0x138
retq
movq 0x50(%rsp), %rdi
callq 0x2de90
movq 0xf8(%rsp), %rdi
callq 0x21d50
nopl (%rax)
|
_ZN5Acore4Impl17StringConvertImpl3ForIlvE8ToStringB5cxx11El:
sub rsp, 138h
mov [rsp+138h+var_E8], rdi
mov rax, rdi
mov [rsp+138h+var_E0], rax
mov [rsp+138h+var_28], rdi
mov [rsp+138h+var_30], rsi
mov [rsp+138h+var_31], 0
lea rcx, [rsp+138h+var_32]
mov [rsp+138h+var_20], rcx
mov rax, [rsp+138h+var_20]
mov [rsp+138h+var_8], rax
mov esi, 14h
xor edx, edx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEmcRKS3_; std::string::basic_string<std::allocator<char>>(ulong,char,std::allocator<char> const&)
jmp short $+2
loc_1A894A:
mov rdi, [rsp+138h+var_E8]
lea rax, [rsp+138h+var_32]
mov [rsp+138h+var_18], rax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv; std::string::data(void)
mov rdi, [rsp+138h+var_E8]
mov [rsp+138h+var_50], rax
mov rax, [rsp+138h+var_50]
mov [rsp+138h+var_100], rax
call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv; std::string::length(void)
mov rcx, rax
mov rax, [rsp+138h+var_100]
add rax, rcx
mov [rsp+138h+var_58], rax
mov rdi, [rsp+138h+var_50]; char *
mov rsi, [rsp+138h+var_58]; char *
mov rdx, [rsp+138h+var_30]; __int64
mov ecx, 0Ah; int
call _ZSt8to_charsPcS_li; std::to_chars(char *,char *,long,int)
mov [rsp+138h+var_F4], edx
mov [rsp+138h+var_F0], rax
jmp short $+2
loc_1A89C3:
mov eax, [rsp+138h+var_F4]
mov rcx, [rsp+138h+var_F0]
mov [rsp+138h+var_68], rcx
mov [rsp+138h+var_60], eax
cmp [rsp+138h+var_60], 0
jz loc_1A8B06
lea rsi, aWorkspaceLlm4b_25; "/workspace/llm4binary/github2025/SylCor"...
lea rdi, [rsp+138h+var_78]
call _ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc; std::string_view::basic_string_view(char const*)
lea rsi, aTostring; "ToString"
lea rdi, [rsp+138h+var_88]
call _ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc; std::string_view::basic_string_view(char const*)
lea rdi, [rsp+138h+var_B8]
call _Z12GetDebugInfoB5cxx11v; GetDebugInfo(void)
jmp short $+2
loc_1A8A20:
lea rdi, [rsp+138h+var_B8]
call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv; std::string::operator std::string_view(void)
mov qword ptr [rsp+138h+var_98], rax
mov qword ptr [rsp+138h+var_98+8], rdx
lea rsi, aResEcStdErrc; "res.ec == std::errc()"
lea rdi, [rsp+138h+var_C8]
call _ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc; std::string_view::basic_string_view(char const*)
lea rdi, [rsp+138h+var_D8]
call _ZNSt17basic_string_viewIcSt11char_traitsIcEEC2Ev; std::string_view::basic_string_view(void)
mov rdi, [rsp+138h+var_78]
mov rsi, [rsp+138h+var_70]
mov rcx, [rsp+138h+var_88]
mov r8, [rsp+138h+var_80]
movups xmm0, [rsp+138h+var_D8]
mov rax, rsp
movups xmmword ptr [rax+20h], xmm0
movups xmm0, [rsp+138h+var_C8]
movups xmmword ptr [rax+10h], xmm0
movups xmm0, [rsp+138h+var_98]
movups xmmword ptr [rax], xmm0
mov edx, 57h ; 'W'
call _ZN5Acore6AssertESt17basic_string_viewIcSt11char_traitsIcEEjS3_S3_S3_S3_; Acore::Assert(std::string_view,uint,std::string_view,std::string_view,std::string_view,std::string_view)
jmp short $+2
loc_1A8AA4:
mov rcx, rax
mov eax, edx
mov [rsp+0F8h], rcx
mov [rsp+0F4h], eax
lea rax, [rsp+138h+var_32]
mov [rsp+128h], rax
jmp loc_1A8B5C
mov rcx, rax
mov eax, edx
mov [rsp+0F8h], rcx
mov [rsp+0F4h], eax
jmp short loc_1A8B52
mov rcx, rax
mov eax, edx
mov [rsp+0F8h], rcx
mov [rsp+0F4h], eax
lea rdi, [rsp+138h+var_B8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_1A8B52
loc_1A8B06:
jmp short $+2
loc_1A8B08:
jmp short $+2
loc_1A8B0A:
mov rdi, [rsp+138h+var_E8]
mov rsi, [rsp+138h+var_68]
mov rax, [rsp+138h+var_50]
sub rsi, rax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm; std::string::resize(ulong)
jmp short $+2
loc_1A8B29:
mov [rsp+138h+var_31], 1
test [rsp+138h+var_31], 1
jnz short loc_1A8B45
mov rdi, [rsp+138h+var_E8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_1A8B45:
mov rax, [rsp+138h+var_E0]
add rsp, 138h
retn
loc_1A8B52:
mov rdi, [rsp+138h+var_E8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_1A8B5C:
mov rdi, [rsp+0F8h]
call __Unwind_Resume
|
_QWORD * Acore::Impl::StringConvertImpl::For<long,void>::ToString[abi:cxx11](_QWORD *a1, long long a2)
{
int v2; // edx
int v3; // edx
int v4; // ecx
int v5; // r8d
int v6; // r9d
__int128 v7; // rax
int v8; // r9d
__int128 v10; // [rsp+60h] [rbp-D8h] BYREF
long long v11; // [rsp+70h] [rbp-C8h] BYREF
int v12; // [rsp+78h] [rbp-C0h]
_BYTE v13[32]; // [rsp+80h] [rbp-B8h] BYREF
__int128 v14; // [rsp+A0h] [rbp-98h]
long long v15; // [rsp+B0h] [rbp-88h] BYREF
long long v16; // [rsp+B8h] [rbp-80h]
long long v17; // [rsp+C0h] [rbp-78h] BYREF
long long v18; // [rsp+C8h] [rbp-70h]
long long v19; // [rsp+D0h] [rbp-68h]
int v20; // [rsp+D8h] [rbp-60h]
char *v21; // [rsp+E0h] [rbp-58h]
char *v22; // [rsp+E8h] [rbp-50h]
_BYTE v23[2]; // [rsp+106h] [rbp-32h] BYREF
long long v24; // [rsp+108h] [rbp-30h]
_QWORD *v25; // [rsp+110h] [rbp-28h]
_BYTE *v26; // [rsp+118h] [rbp-20h]
_BYTE *v27; // [rsp+120h] [rbp-18h]
_BYTE *v28; // [rsp+130h] [rbp-8h]
v25 = a1;
v24 = a2;
v23[1] = 0;
v26 = v23;
v28 = v23;
std::string::basic_string<std::allocator<char>>(a1, 20LL, 0);
v27 = v23;
v22 = (char *)std::string::data((long long)a1);
v21 = &v22[std::string::length((long long)a1)];
v19 = std::to_chars(v22, v21, v24, 10);
v20 = v2;
if ( v2 )
{
std::string_view::basic_string_view(
&v17,
(long long)"/workspace/llm4binary/github2025/SylCore-WoTLK/src/common/Utilities/StringConvert.h");
std::string_view::basic_string_view(&v15, (long long)"ToString");
GetDebugInfo[abi:cxx11]((unsigned int)v13, (unsigned int)"ToString", v3, v4, v5, v6);
*(_QWORD *)&v7 = std::string::operator std::string_view((long long)v13);
v14 = v7;
std::string_view::basic_string_view(&v11, (long long)"res.ec == std::errc()");
std::string_view::basic_string_view(&v10);
Acore::Assert(v17, v18, 87, v15, v16, v8, v14, DWORD2(v14), v11, v12, v10);
}
std::string::resize((long long)a1, v19 - (_QWORD)v22);
return a1;
}
|
_M_insert_node:
SUB RSP,0x48
MOV qword ptr [RSP + 0x38],RDI
MOV qword ptr [RSP + 0x30],RSI
MOV qword ptr [RSP + 0x28],RDX
MOV qword ptr [RSP + 0x20],RCX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x10],RAX
MOV AL,0x1
CMP qword ptr [RSP + 0x30],0x0
MOV byte ptr [RSP + 0x1e],AL
JNZ 0x001a8974
MOV RDI,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x8],RAX
CALL 0x001a7c60
MOV RCX,qword ptr [RSP + 0x8]
MOV RDX,RAX
MOV AL,0x1
CMP RCX,RDX
MOV byte ptr [RSP + 0x1e],AL
JZ 0x001a8974
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x001a7c70
MOV qword ptr [RSP],RAX
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x001a86a0
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP]
MOV RDX,RAX
CALL 0x001a79a0
MOV byte ptr [RSP + 0x1e],AL
LAB_001a8974:
MOV RCX,qword ptr [RSP + 0x10]
MOV AL,byte ptr [RSP + 0x1e]
AND AL,0x1
MOV byte ptr [RSP + 0x1f],AL
MOV AL,byte ptr [RSP + 0x1f]
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x28]
ADD RCX,0x8
AND AL,0x1
MOVZX EDI,AL
CALL 0x00122860
MOV RAX,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RAX + 0x28]
ADD RCX,0x1
MOV qword ptr [RAX + 0x28],RCX
MOV RSI,qword ptr [RSP + 0x20]
LEA RDI,[RSP + 0x40]
CALL 0x001a7ca0
MOV RAX,qword ptr [RSP + 0x40]
ADD RSP,0x48
RET
|
/* std::_Rb_tree<RealmHandle, std::pair<RealmHandle const, Realm>,
std::_Select1st<std::pair<RealmHandle const, Realm> >, std::less<RealmHandle>,
std::allocator<std::pair<RealmHandle const, Realm> > >::_M_insert_node(std::_Rb_tree_node_base*,
std::_Rb_tree_node_base*, std::_Rb_tree_node<std::pair<RealmHandle const, Realm> >*) */
int8 __thiscall
std::
_Rb_tree<RealmHandle,std::pair<RealmHandle_const,Realm>,std::_Select1st<std::pair<RealmHandle_const,Realm>>,std::less<RealmHandle>,std::allocator<std::pair<RealmHandle_const,Realm>>>
::_M_insert_node(_Rb_tree<RealmHandle,std::pair<RealmHandle_const,Realm>,std::_Select1st<std::pair<RealmHandle_const,Realm>>,std::less<RealmHandle>,std::allocator<std::pair<RealmHandle_const,Realm>>>
*this,_Rb_tree_node_base *param_1,_Rb_tree_node_base *param_2,
_Rb_tree_node *param_3)
{
_Rb_tree_node_base *p_Var1;
RealmHandle *pRVar2;
RealmHandle *pRVar3;
byte local_2a;
int8 local_8;
local_2a = 1;
if (param_1 == (_Rb_tree_node_base *)0x0) {
p_Var1 = (_Rb_tree_node_base *)_M_end(this);
local_2a = 1;
if (param_2 != p_Var1) {
pRVar2 = (RealmHandle *)_S_key(param_3);
pRVar3 = (RealmHandle *)_S_key(param_2);
local_2a = less<RealmHandle>::operator()((less<RealmHandle> *)this,pRVar2,pRVar3);
}
}
std::_Rb_tree_insert_and_rebalance
((bool)(local_2a & 1),(_Rb_tree_node_base *)param_3,param_2,
(_Rb_tree_node_base *)(this + 8));
*(long *)(this + 0x28) = *(long *)(this + 0x28) + 1;
_Rb_tree_iterator<std::pair<RealmHandle_const,Realm>>::_Rb_tree_iterator
((_Rb_tree_iterator<std::pair<RealmHandle_const,Realm>> *)&local_8,
(_Rb_tree_node_base *)param_3);
return local_8;
}
|
|
64,550 |
Acore::Impl::StringConvertImpl::For<unsigned short, void>::ToString[abi:cxx11](unsigned short)
|
SylCore-WoTLK/src/common/Utilities/StringConvert.h
|
static std::string ToString(T val)
{
std::string buf(20, '\0'); /* 2^64 is 20 decimal characters, -(2^63) is 20 including the sign */
char* const start = buf.data();
char* const end = (start + buf.length());
std::to_chars_result const res = std::to_chars(start, end, val);
ASSERT(res.ec == std::errc());
buf.resize(res.ptr - start);
return buf;
}
|
O3
|
c
|
Acore::Impl::StringConvertImpl::For<unsigned short, void>::ToString[abi:cxx11](unsigned short):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x88, %rsp
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
movq %r15, (%rdi)
movl $0x14, %esi
xorl %edx, %edx
callq 0xadbc8
movq 0x8(%rbx), %rsi
testq %rsi, %rsi
je 0xadb0e
movq (%rbx), %r14
testb %bpl, %bpl
jne 0xadaf8
movb $0x30, (%r14)
leaq 0x1(%r14), %rsi
subq %r14, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x47778
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
addq %r14, %rsi
movq %r14, %rdi
movl %ebp, %edx
callq 0x1d989
testl %edx, %edx
jne 0xadb0e
movq %rax, %rsi
jmp 0xadada
leaq 0x50(%rsp), %rdi
callq 0xc7c65
movq 0x50(%rsp), %rax
movq 0x58(%rsp), %rcx
movq %rcx, 0x40(%rsp)
movq %rax, 0x48(%rsp)
movq $0x15, 0x30(%rsp)
leaq 0x60cb8(%rip), %rax # 0x10e7f4
movq %rax, 0x38(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
movaps 0x70(%rsp), %xmm0
movups %xmm0, 0x20(%rsp)
movups 0x30(%rsp), %xmm0
movups %xmm0, 0x10(%rsp)
movups 0x40(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x60c2a(%rip), %rsi # 0x10e797
leaq 0x60c77(%rip), %r8 # 0x10e7eb
movl $0x53, %edi
movl $0x8, %ecx
movl $0x57, %edx
callq 0xc7130
jmp 0xadbaa
movq %rax, %r14
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xadbad
movq 0x60(%rsp), %rsi
incq %rsi
callq 0xd32e8
jmp 0xadbad
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0xadbc0
movq (%r15), %rsi
incq %rsi
callq 0xd32e8
movq %r14, %rdi
callq 0x1bba0
|
_ZN5Acore4Impl17StringConvertImpl3ForIhvE8ToStringB5cxx11Eh:
push rbp
push r15
push r14
push rbx
sub rsp, 88h
mov ebp, esi
mov rbx, rdi
lea r15, [rdi+10h]
mov [rdi], r15
mov esi, 14h
xor edx, edx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char)
mov rsi, [rbx+8]
test rsi, rsi
jz short loc_ADB0E
mov r14, [rbx]
test bpl, bpl
jnz short loc_ADAF8
mov byte ptr [r14], 30h ; '0'
lea rsi, [r14+1]
loc_ADADA:
sub rsi, r14
mov rdi, rbx
xor edx, edx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc; std::string::resize(ulong,char)
mov rax, rbx
add rsp, 88h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_ADAF8:
add rsi, r14
mov rdi, r14
mov edx, ebp
call _ZNSt8__detail13__to_chars_10IjEESt15to_chars_resultPcS2_T_; std::__detail::__to_chars_10<uint>(char *,char *,uint)
test edx, edx
jnz short loc_ADB0E
mov rsi, rax
jmp short loc_ADADA
loc_ADB0E:
lea rdi, [rsp+0A8h+var_58]
call _Z12GetDebugInfoB5cxx11v; GetDebugInfo(void)
mov rax, [rsp+0A8h+var_58]
mov rcx, [rsp+0A8h+var_50]
mov qword ptr [rsp+0A8h+var_68], rcx
mov qword ptr [rsp+0A8h+var_68+8], rax
mov qword ptr [rsp+0A8h+var_78], 15h
lea rax, aResEcStdErrc; "res.ec == std::errc()"
mov qword ptr [rsp+0A8h+var_78+8], rax
xorps xmm0, xmm0
movaps [rsp+0A8h+var_38], xmm0
movaps xmm0, [rsp+0A8h+var_38]
movups [rsp+0A8h+var_88], xmm0
movups xmm0, [rsp+0A8h+var_78]
movups [rsp+0A8h+var_98], xmm0
movups xmm0, [rsp+0A8h+var_68]
movups [rsp+0A8h+var_A8], xmm0
lea rsi, aWorkspaceLlm4b_25; "/workspace/llm4binary/github2025/SylCor"...
lea r8, aTostring; "ToString"
mov edi, 53h ; 'S'
mov ecx, 8
mov edx, 57h ; 'W'
call _ZN5Acore6AssertESt17basic_string_viewIcSt11char_traitsIcEEjS3_S3_S3_S3_; Acore::Assert(std::string_view,uint,std::string_view,std::string_view,std::string_view,std::string_view)
jmp short loc_ADBAA
mov r14, rax
lea rax, [rsp+0A8h+var_48]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_ADBAD
mov rsi, [rsp+0A8h+var_48]
inc rsi; unsigned __int64
call _ZdlPvm; operator delete(void *,ulong)
jmp short loc_ADBAD
loc_ADBAA:
mov r14, rax
loc_ADBAD:
mov rdi, [rbx]; void *
cmp rdi, r15
jz short loc_ADBC0
mov rsi, [r15]
inc rsi; unsigned __int64
call _ZdlPvm; operator delete(void *,ulong)
loc_ADBC0:
mov rdi, r14
call __Unwind_Resume
|
long long * Acore::Impl::StringConvertImpl::For<unsigned char,void>::ToString[abi:cxx11](
long long *a1,
unsigned int a2)
{
long long v3; // rsi
_BYTE *v4; // r14
_BYTE *v5; // rsi
long long v7; // rax
int v8; // edx
long long v9; // r9
_QWORD v10[2]; // [rsp+50h] [rbp-58h] BYREF
__int128 v11; // [rsp+70h] [rbp-38h]
*a1 = (long long)(a1 + 2);
std::string::_M_construct(a1, 20LL, 0LL);
v3 = a1[1];
if ( !v3 )
goto LABEL_7;
v4 = (_BYTE *)*a1;
if ( (_BYTE)a2 )
{
v7 = std::__detail::__to_chars_10<unsigned int>(*a1, (long long)&v4[v3], a2);
if ( !v8 )
{
v5 = (_BYTE *)v7;
goto LABEL_4;
}
LABEL_7:
GetDebugInfo[abi:cxx11](v10);
v11 = 0LL;
Acore::Assert(
83LL,
"/workspace/llm4binary/github2025/SylCore-WoTLK/src/common/Utilities/StringConvert.h",
87LL,
8LL,
"ToString",
v9,
v10[1],
v10[0],
21LL,
"res.ec == std::errc()",
0LL,
0LL);
}
*v4 = 48;
v5 = v4 + 1;
LABEL_4:
std::string::resize(a1, v5 - v4, 0);
return a1;
}
|
ToString[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x88
MOV EBP,ESI
MOV RBX,RDI
LEA R15,[RDI + 0x10]
MOV qword ptr [RDI],R15
MOV ESI,0x14
XOR EDX,EDX
CALL 0x001adbc8
MOV RSI,qword ptr [RBX + 0x8]
TEST RSI,RSI
JZ 0x001adb0e
MOV R14,qword ptr [RBX]
TEST BPL,BPL
JNZ 0x001adaf8
MOV byte ptr [R14],0x30
LEA RSI,[R14 + 0x1]
LAB_001adada:
SUB RSI,R14
LAB_001adadd:
MOV RDI,RBX
XOR EDX,EDX
CALL 0x00147778
MOV RAX,RBX
ADD RSP,0x88
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_001adaf8:
ADD RSI,R14
MOV RDI,R14
MOV EDX,EBP
CALL 0x0011d989
TEST EDX,EDX
JNZ 0x001adb0e
MOV RSI,RAX
JMP 0x001adada
LAB_001adb0e:
LEA RDI,[RSP + 0x50]
CALL 0x001c7c65
MOV RAX,qword ptr [RSP + 0x50]
MOV RCX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x40],RCX
MOV qword ptr [RSP + 0x48],RAX
MOV qword ptr [RSP + 0x30],0x15
LEA RAX,[0x20e7f4]
MOV qword ptr [RSP + 0x38],RAX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x70],XMM0
LAB_001adb49:
MOVAPS XMM0,xmmword ptr [RSP + 0x70]
MOVUPS xmmword ptr [RSP + 0x20],XMM0
MOVUPS XMM0,xmmword ptr [RSP + 0x30]
MOVUPS xmmword ptr [RSP + 0x10],XMM0
MOVUPS XMM0,xmmword ptr [RSP + 0x40]
MOVUPS xmmword ptr [RSP],XMM0
LEA RSI,[0x20e797]
LEA R8,[0x20e7eb]
MOV EDI,0x53
MOV ECX,0x8
MOV EDX,0x57
CALL 0x001c7130
LAB_001adb88:
JMP 0x001adbaa
LAB_001adbaa:
MOV R14,RAX
LAB_001adbad:
MOV RDI,qword ptr [RBX]
CMP RDI,R15
JZ 0x001adbc0
MOV RSI,qword ptr [R15]
INC RSI
CALL 0x001d32e8
LAB_001adbc0:
MOV RDI,R14
CALL 0x0011bba0
|
/* Acore::Impl::StringConvertImpl::For<unsigned char, void>::ToString[abi:cxx11](unsigned char) */
For<unsigned_char,void> * __thiscall
Acore::Impl::StringConvertImpl::For<unsigned_char,void>::ToString_abi_cxx11_
(For<unsigned_char,void> *this,uchar param_1)
{
For<unsigned_char,void> *pFVar1;
char *pcVar2;
int8 uVar3;
int7 in_register_00000031;
char *pcVar4;
int8 in_R9;
int1 auVar5 [12];
int4 local_58;
int4 local_50;
pFVar1 = this + 0x10;
*(For<unsigned_char,void> **)this = pFVar1;
std::__cxx11::string::_M_construct((string *)this,0x14,'\0');
if (*(long *)(this + 8) == 0) {
LAB_001adb0e:
/* try { // try from 001adb0e to 001adb17 has its CatchHandler @ 001adbaa */
GetDebugInfo_abi_cxx11_();
/* try { // try from 001adb49 to 001adb87 has its CatchHandler @ 001adb8a */
uVar3 = Assert(0x53,
"/workspace/llm4binary/github2025/SylCore-WoTLK/src/common/Utilities/StringConvert.h"
,0x57,8,"ToString",in_R9,local_50,local_58,0x15,"res.ec == std::errc()",0,0);
/* catch() { ... } // from try @ 001adadd with catch @ 001adb88 */
/* catch() { ... } // from try @ 001adb0e with catch @ 001adbaa */
if (*(For<unsigned_char,void> **)this != pFVar1) {
operator_delete(*(For<unsigned_char,void> **)this,*(long *)pFVar1 + 1);
}
/* WARNING: Subroutine does not return */
_Unwind_Resume(uVar3);
}
pcVar2 = *(char **)this;
if (param_1 == '\0') {
*pcVar2 = '0';
pcVar4 = pcVar2 + 1;
}
else {
auVar5 = std::__detail::__to_chars_10<unsigned_int>
(pcVar2,pcVar2 + *(long *)(this + 8),
(uint)CONCAT71(in_register_00000031,param_1));
pcVar4 = auVar5._0_8_;
if (auVar5._8_4_ != 0) goto LAB_001adb0e;
}
/* try { // try from 001adadd to 001adae6 has its CatchHandler @ 001adb88 */
std::__cxx11::string::resize((string *)this,(long)pcVar4 - (long)pcVar2,'\0');
return this;
}
|
|
64,551 |
my_xml_attr_ensure_space
|
eloqsql/strings/xml.c
|
static int my_xml_attr_ensure_space(MY_XML_PARSER *st, size_t len)
{
size_t ofs= st->attr.end - st->attr.start;
len++; // Add terminating zero.
if (ofs + len > st->attr.buffer_size)
{
st->attr.buffer_size= (SIZE_T_MAX - len) / 2 > st->attr.buffer_size ?
st->attr.buffer_size * 2 + len : SIZE_T_MAX;
if (!st->attr.buffer)
{
st->attr.buffer= (char *) my_malloc(PSI_INSTRUMENT_ME, st->attr.buffer_size, MYF(0));
if (st->attr.buffer)
memcpy(st->attr.buffer, st->attr.static_buffer, ofs + 1 /*term. zero */);
}
else
st->attr.buffer= (char *) my_realloc(PSI_INSTRUMENT_ME, st->attr.buffer,
st->attr.buffer_size, MYF(0));
st->attr.start= st->attr.buffer;
st->attr.end= st->attr.start + ofs;
return st->attr.buffer ? MY_XML_OK : MY_XML_ERROR;
}
return MY_XML_OK;
}
|
O0
|
c
|
my_xml_attr_ensure_space:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x120(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x118(%rcx), %rcx
subq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
addq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x110(%rcx), %rax
jbe 0x7b5d3
movq $-0x1, %rax
subq -0x18(%rbp), %rax
shrq %rax
movq -0x10(%rbp), %rcx
cmpq 0x110(%rcx), %rax
jbe 0x7b4d5
movq -0x10(%rbp), %rax
movq 0x110(%rax), %rax
shlq %rax
addq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x7b4e2
movq $-0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x7b4e2
movq -0x28(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x110(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x108(%rax)
jne 0x7b556
movq -0x10(%rbp), %rax
movq 0x110(%rax), %rsi
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %edx
callq 0x29a30
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x108(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x108(%rax)
je 0x7b554
movq -0x10(%rbp), %rax
movq 0x108(%rax), %rdi
movq -0x10(%rbp), %rsi
addq $0x88, %rsi
movq -0x20(%rbp), %rdx
addq $0x1, %rdx
callq 0x24260
jmp 0x7b585
movq -0x10(%rbp), %rax
movq 0x108(%rax), %rsi
movq -0x10(%rbp), %rax
movq 0x110(%rax), %rdx
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %ecx
callq 0x29c00
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x108(%rax)
movq -0x10(%rbp), %rax
movq 0x108(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x118(%rax)
movq -0x10(%rbp), %rax
movq 0x118(%rax), %rcx
addq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x120(%rax)
movq -0x10(%rbp), %rax
movq 0x108(%rax), %rdx
movl $0x1, %eax
xorl %ecx, %ecx
cmpq $0x0, %rdx
cmovnel %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x7b5da
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
|
my_xml_attr_ensure_space:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
mov rax, [rax+120h]
mov rcx, [rbp+var_10]
mov rcx, [rcx+118h]
sub rax, rcx
mov [rbp+var_20], rax
mov rax, [rbp+var_18]
add rax, 1
mov [rbp+var_18], rax
mov rax, [rbp+var_20]
add rax, [rbp+var_18]
mov rcx, [rbp+var_10]
cmp rax, [rcx+110h]
jbe loc_7B5D3
mov rax, 0FFFFFFFFFFFFFFFFh
sub rax, [rbp+var_18]
shr rax, 1
mov rcx, [rbp+var_10]
cmp rax, [rcx+110h]
jbe short loc_7B4D5
mov rax, [rbp+var_10]
mov rax, [rax+110h]
shl rax, 1
add rax, [rbp+var_18]
mov [rbp+var_28], rax
jmp short loc_7B4E2
loc_7B4D5:
mov rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_28], rax
jmp short $+2
loc_7B4E2:
mov rcx, [rbp+var_28]
mov rax, [rbp+var_10]
mov [rax+110h], rcx
mov rax, [rbp+var_10]
cmp qword ptr [rax+108h], 0
jnz short loc_7B556
mov rax, [rbp+var_10]
mov rsi, [rax+110h]
xor edi, edi
xor eax, eax
mov edx, eax
call my_malloc
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+108h], rcx
mov rax, [rbp+var_10]
cmp qword ptr [rax+108h], 0
jz short loc_7B554
mov rax, [rbp+var_10]
mov rdi, [rax+108h]
mov rsi, [rbp+var_10]
add rsi, 88h
mov rdx, [rbp+var_20]
add rdx, 1
call _memcpy
loc_7B554:
jmp short loc_7B585
loc_7B556:
mov rax, [rbp+var_10]
mov rsi, [rax+108h]
mov rax, [rbp+var_10]
mov rdx, [rax+110h]
xor edi, edi
xor eax, eax
mov ecx, eax
call my_realloc
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+108h], rcx
loc_7B585:
mov rax, [rbp+var_10]
mov rcx, [rax+108h]
mov rax, [rbp+var_10]
mov [rax+118h], rcx
mov rax, [rbp+var_10]
mov rcx, [rax+118h]
add rcx, [rbp+var_20]
mov rax, [rbp+var_10]
mov [rax+120h], rcx
mov rax, [rbp+var_10]
mov rdx, [rax+108h]
mov eax, 1
xor ecx, ecx
cmp rdx, 0
cmovnz eax, ecx
mov [rbp+var_4], eax
jmp short loc_7B5DA
loc_7B5D3:
mov [rbp+var_4], 0
loc_7B5DA:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
|
_BOOL8 my_xml_attr_ensure_space(_QWORD *a1, long long a2)
{
long long v3; // [rsp+8h] [rbp-28h]
long long v4; // [rsp+10h] [rbp-20h]
long long v5; // [rsp+18h] [rbp-18h]
v4 = a1[36] - a1[35];
v5 = a2 + 1;
if ( (unsigned long long)(a2 + 1 + v4) <= a1[34] )
{
return 0;
}
else
{
if ( (unsigned long long)(-1 - v5) >> 1 <= a1[34] )
v3 = -1LL;
else
v3 = v5 + 2LL * a1[34];
a1[34] = v3;
if ( a1[33] )
{
a1[33] = my_realloc(0, a1[33], a1[34], 0);
}
else
{
a1[33] = my_malloc(0, a1[34], 0);
if ( a1[33] )
memcpy(a1[33], a1 + 17, v4 + 1);
}
a1[35] = a1[33];
a1[36] = v4 + a1[35];
return a1[33] == 0LL;
}
}
|
my_xml_attr_ensure_space:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x120]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x118]
SUB RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x110]
JBE 0x0017b5d3
MOV RAX,-0x1
SUB RAX,qword ptr [RBP + -0x18]
SHR RAX,0x1
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x110]
JBE 0x0017b4d5
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x110]
SHL RAX,0x1
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0017b4e2
LAB_0017b4d5:
MOV RAX,-0x1
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0017b4e2
LAB_0017b4e2:
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x110],RCX
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x108],0x0
JNZ 0x0017b556
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x110]
XOR EDI,EDI
XOR EAX,EAX
MOV EDX,EAX
CALL 0x00129a30
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x108],RCX
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x108],0x0
JZ 0x0017b554
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x108]
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0x88
MOV RDX,qword ptr [RBP + -0x20]
ADD RDX,0x1
CALL 0x00124260
LAB_0017b554:
JMP 0x0017b585
LAB_0017b556:
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x108]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x110]
XOR EDI,EDI
XOR EAX,EAX
MOV ECX,EAX
CALL 0x00129c00
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x108],RCX
LAB_0017b585:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x108]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x118],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x118]
ADD RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x120],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x108]
MOV EAX,0x1
XOR ECX,ECX
CMP RDX,0x0
CMOVNZ EAX,ECX
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0017b5da
LAB_0017b5d3:
MOV dword ptr [RBP + -0x4],0x0
LAB_0017b5da:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
bool my_xml_attr_ensure_space(long param_1,long param_2)
{
long lVar1;
int8 uVar2;
bool bVar3;
long local_30;
lVar1 = *(long *)(param_1 + 0x120) - *(long *)(param_1 + 0x118);
param_2 = param_2 + 1;
if (*(ulong *)(param_1 + 0x110) < (ulong)(lVar1 + param_2)) {
if (*(ulong *)(param_1 + 0x110) < -param_2 - 1U >> 1) {
local_30 = *(long *)(param_1 + 0x110) * 2 + param_2;
}
else {
local_30 = -1;
}
*(long *)(param_1 + 0x110) = local_30;
if (*(long *)(param_1 + 0x108) == 0) {
uVar2 = my_malloc(0,*(int8 *)(param_1 + 0x110),0);
*(int8 *)(param_1 + 0x108) = uVar2;
if (*(long *)(param_1 + 0x108) != 0) {
memcpy(*(void **)(param_1 + 0x108),(void *)(param_1 + 0x88),lVar1 + 1);
}
}
else {
uVar2 = my_realloc(0,*(int8 *)(param_1 + 0x108),*(int8 *)(param_1 + 0x110),0);
*(int8 *)(param_1 + 0x108) = uVar2;
}
*(int8 *)(param_1 + 0x118) = *(int8 *)(param_1 + 0x108);
*(long *)(param_1 + 0x120) = *(long *)(param_1 + 0x118) + lVar1;
bVar3 = *(long *)(param_1 + 0x108) == 0;
}
else {
bVar3 = false;
}
return bVar3;
}
|
|
64,552 |
google::protobuf::Arena::AllocateAlignedWithHook(unsigned long, unsigned long, std::type_info const*)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/arena.h
|
void* AllocateAlignedWithHook(size_t n, size_t align,
const std::type_info* type) {
if (align <= 8) {
return AllocateAlignedWithHook(internal::AlignUpTo8(n), type);
} else {
// We are wasting space by over allocating align - 8 bytes. Compared
// to a dedicated function that takes current alignment in consideration.
// Such a scheme would only waste (align - 8)/2 bytes on average, but
// requires a dedicated function in the outline arena allocation
// functions. Possibly re-evaluate tradeoffs later.
return internal::AlignTo(AllocateAlignedWithHook(n + align - 8, type),
align);
}
}
|
O0
|
c
|
google::protobuf::Arena::AllocateAlignedWithHook(unsigned long, unsigned long, std::type_info const*):
subq $0x48, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq %rdx, 0x18(%rsp)
movq %rcx, 0x10(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x8(%rsp)
cmpq $0x8, 0x18(%rsp)
ja 0xb22ad
movq 0x20(%rsp), %rdi
callq 0xb2310
movq 0x8(%rsp), %rdi
movq %rax, %rsi
movq 0x10(%rsp), %rdx
callq 0x1e5020
movq %rax, 0x30(%rsp)
jmp 0xb22ff
movq 0x8(%rsp), %rdi
movq 0x20(%rsp), %rsi
addq 0x18(%rsp), %rsi
subq $0x8, %rsi
movq 0x10(%rsp), %rdx
callq 0x1e5020
movq %rax, %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x40(%rsp)
movq %rax, 0x38(%rsp)
movq 0x40(%rsp), %rax
addq 0x38(%rsp), %rax
subq $0x1, %rax
movq 0x38(%rsp), %rcx
xorq $-0x1, %rcx
addq $0x1, %rcx
andq %rcx, %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
addq $0x48, %rsp
retq
nopl (%rax)
|
_ZN6google8protobuf5Arena23AllocateAlignedWithHookEmmPKSt9type_info:
sub rsp, 48h
mov [rsp+48h+var_20], rdi
mov [rsp+48h+var_28], rsi
mov [rsp+48h+var_30], rdx
mov [rsp+48h+var_38], rcx
mov rax, [rsp+48h+var_20]
mov [rsp+48h+var_40], rax
cmp [rsp+48h+var_30], 8
ja short loc_B22AD
mov rdi, [rsp+48h+var_28]; this
call _ZN6google8protobuf8internal10AlignUpTo8Em; google::protobuf::internal::AlignUpTo8(ulong)
mov rdi, [rsp+48h+var_40]; this
mov rsi, rax; unsigned __int64
mov rdx, [rsp+48h+var_38]; type_info *
call _ZN6google8protobuf5Arena23AllocateAlignedWithHookEmPKSt9type_info; google::protobuf::Arena::AllocateAlignedWithHook(ulong,std::type_info const*)
mov [rsp+48h+var_18], rax
jmp short loc_B22FF
loc_B22AD:
mov rdi, [rsp+48h+var_40]; this
mov rsi, [rsp+48h+var_28]
add rsi, [rsp+48h+var_30]
sub rsi, 8; unsigned __int64
mov rdx, [rsp+48h+var_38]; type_info *
call _ZN6google8protobuf5Arena23AllocateAlignedWithHookEmPKSt9type_info; google::protobuf::Arena::AllocateAlignedWithHook(ulong,std::type_info const*)
mov rcx, rax
mov rax, [rsp+48h+var_30]
mov [rsp+48h+var_8], rcx
mov [rsp+48h+var_10], rax
mov rax, [rsp+48h+var_8]
add rax, [rsp+48h+var_10]
sub rax, 1
mov rcx, [rsp+48h+var_10]
xor rcx, 0FFFFFFFFFFFFFFFFh
add rcx, 1
and rax, rcx
mov [rsp+48h+var_18], rax
loc_B22FF:
mov rax, [rsp+48h+var_18]
add rsp, 48h
retn
|
unsigned long long google::protobuf::Arena::AllocateAlignedWithHook(
google::protobuf::Arena *this,
google::protobuf::internal *a2,
unsigned long long a3,
const type_info *a4)
{
unsigned long long v4; // rax
if ( a3 > 8 )
return -(long long)a3 & (a3
+ google::protobuf::Arena::AllocateAlignedWithHook(this, (unsigned long long)a2 + a3 - 8, a4)
- 1);
v4 = google::protobuf::internal::AlignUpTo8(a2, (unsigned long long)a2);
return google::protobuf::Arena::AllocateAlignedWithHook(this, v4, a4);
}
|
AllocateAlignedWithHook:
SUB RSP,0x48
MOV qword ptr [RSP + 0x28],RDI
MOV qword ptr [RSP + 0x20],RSI
MOV qword ptr [RSP + 0x18],RDX
MOV qword ptr [RSP + 0x10],RCX
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x8],RAX
CMP qword ptr [RSP + 0x18],0x8
JA 0x001b22ad
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x001b2310
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,RAX
MOV RDX,qword ptr [RSP + 0x10]
CALL 0x002e5020
MOV qword ptr [RSP + 0x30],RAX
JMP 0x001b22ff
LAB_001b22ad:
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x20]
ADD RSI,qword ptr [RSP + 0x18]
SUB RSI,0x8
MOV RDX,qword ptr [RSP + 0x10]
CALL 0x002e5020
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x40],RCX
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x40]
ADD RAX,qword ptr [RSP + 0x38]
SUB RAX,0x1
MOV RCX,qword ptr [RSP + 0x38]
XOR RCX,-0x1
ADD RCX,0x1
AND RAX,RCX
MOV qword ptr [RSP + 0x30],RAX
LAB_001b22ff:
MOV RAX,qword ptr [RSP + 0x30]
ADD RSP,0x48
RET
|
/* google::protobuf::Arena::AllocateAlignedWithHook(unsigned long, unsigned long, std::type_info
const*) */
ulong __thiscall
google::protobuf::Arena::AllocateAlignedWithHook
(Arena *this,ulong param_1,ulong param_2,type_info *param_3)
{
ulong uVar1;
long lVar2;
int8 local_18;
if (param_2 < 9) {
uVar1 = internal::AlignUpTo8(param_1);
local_18 = AllocateAlignedWithHook(this,uVar1,param_3);
}
else {
lVar2 = AllocateAlignedWithHook(this,(param_1 + param_2) - 8,param_3);
local_18 = (lVar2 + param_2) - 1 & (param_2 ^ 0xffffffffffffffff) + 1;
}
return local_18;
}
|
|
64,553 |
my_numcells_sjis
|
eloqsql/strings/ctype-sjis.c
|
static
size_t my_numcells_sjis(CHARSET_INFO *cs __attribute__((unused)),
const char *str, const char *str_end)
{
size_t clen;
const uchar *b= (const uchar *) str;
const uchar *e= (const uchar *) str_end;
for (clen= 0; b < e; )
{
if (*b >= 0xA1 && *b <= 0xDF)
{
clen++;
b++;
}
else if (*b > 0x7F)
{
clen+= 2;
b+= 2;
}
else
{
clen++;
b++;
}
}
return clen;
}
|
O0
|
c
|
my_numcells_sjis:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jae 0x5220d
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xa1, %eax
jl 0x521c8
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xdf, %eax
jg 0x521c8
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x52208
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x7f, %eax
jle 0x521ee
movq -0x20(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x28(%rbp)
jmp 0x52206
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x52208
jmp 0x52188
movq -0x20(%rbp), %rax
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_numcells_sjis:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
mov rax, [rbp+var_18]
mov [rbp+var_30], rax
mov [rbp+var_20], 0
loc_52188:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_30]
jnb short loc_5220D
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
cmp eax, 0A1h
jl short loc_521C8
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
cmp eax, 0DFh
jg short loc_521C8
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
jmp short loc_52208
loc_521C8:
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
cmp eax, 7Fh
jle short loc_521EE
mov rax, [rbp+var_20]
add rax, 2
mov [rbp+var_20], rax
mov rax, [rbp+var_28]
add rax, 2
mov [rbp+var_28], rax
jmp short loc_52206
loc_521EE:
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
loc_52206:
jmp short $+2
loc_52208:
jmp loc_52188
loc_5220D:
mov rax, [rbp+var_20]
pop rbp
retn
|
long long my_numcells_sjis(long long a1, unsigned __int8 *a2, unsigned long long a3)
{
long long v5; // [rsp+10h] [rbp-20h]
v5 = 0LL;
while ( (unsigned long long)a2 < a3 )
{
if ( *a2 < 0xA1u || *a2 > 0xDFu )
{
if ( *a2 <= 0x7Fu )
{
++v5;
++a2;
}
else
{
v5 += 2LL;
a2 += 2;
}
}
else
{
++v5;
++a2;
}
}
return v5;
}
|
my_numcells_sjis:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV qword ptr [RBP + -0x20],0x0
LAB_00152188:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNC 0x0015220d
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xa1
JL 0x001521c8
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xdf
JG 0x001521c8
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
JMP 0x00152208
LAB_001521c8:
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x7f
JLE 0x001521ee
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x2
MOV qword ptr [RBP + -0x28],RAX
JMP 0x00152206
LAB_001521ee:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
LAB_00152206:
JMP 0x00152208
LAB_00152208:
JMP 0x00152188
LAB_0015220d:
MOV RAX,qword ptr [RBP + -0x20]
POP RBP
RET
|
long my_numcells_sjis(int8 param_1,byte *param_2,byte *param_3)
{
byte *local_30;
long local_28;
local_28 = 0;
local_30 = param_2;
while (local_30 < param_3) {
if ((*local_30 < 0xa1) || (0xdf < *local_30)) {
if (*local_30 < 0x80) {
local_28 = local_28 + 1;
local_30 = local_30 + 1;
}
else {
local_28 = local_28 + 2;
local_30 = local_30 + 2;
}
}
else {
local_28 = local_28 + 1;
local_30 = local_30 + 1;
}
}
return local_28;
}
|
|
64,554 |
pfs_spawn_thread
|
eloqsql/storage/perfschema/pfs.cc
|
void* pfs_spawn_thread(void *arg)
{
PFS_spawn_thread_arg *typed_arg= (PFS_spawn_thread_arg*) arg;
void *user_arg;
void *(*user_start_routine)(void*);
PFS_thread *pfs;
/* First, attach instrumentation to this newly created pthread. */
PFS_thread_class *klass= find_thread_class(typed_arg->m_child_key);
if (likely(klass != NULL))
{
pfs= create_thread(klass, typed_arg->m_child_identity, 0);
if (likely(pfs != NULL))
{
clear_thread_account(pfs);
pfs->m_parent_thread_internal_id= typed_arg->m_thread_internal_id;
memcpy(pfs->m_username, typed_arg->m_username, sizeof(pfs->m_username));
pfs->m_username_length= typed_arg->m_username_length;
memcpy(pfs->m_hostname, typed_arg->m_hostname, sizeof(pfs->m_hostname));
pfs->m_hostname_length= typed_arg->m_hostname_length;
set_thread_account(pfs);
}
}
else
{
pfs= NULL;
}
my_thread_set_THR_PFS(pfs);
/*
Secondly, free the memory allocated in spawn_thread_v1().
It is preferable to do this before invoking the user
routine, to avoid memory leaks at shutdown, in case
the server exits without waiting for this thread.
*/
user_start_routine= typed_arg->m_user_start_routine;
user_arg= typed_arg->m_user_arg;
my_free(typed_arg);
/* Then, execute the user code for this thread. */
(*user_start_routine)(user_arg);
return NULL;
}
|
O3
|
cpp
|
pfs_spawn_thread:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x290(%rdi), %edi
callq 0x3bc1e
testq %rax, %rax
je 0x28b46
movq 0x298(%rbx), %rsi
xorl %r15d, %r15d
movq %rax, %rdi
xorl %edx, %edx
callq 0x35c63
testq %rax, %rax
je 0x28b0f
movq %rax, %r14
movq %rax, %rdi
callq 0x38285
movq (%rbx), %rax
movq %rax, 0x858(%r14)
leaq 0xcdc(%r14), %rdi
leaq 0x8(%rbx), %rsi
movl $0x180, %edx # imm = 0x180
callq 0x26290
movl 0x188(%rbx), %eax
movl %eax, 0xe5c(%r14)
movq %r14, %rdi
addq $0xe60, %rdi # imm = 0xE60
leaq 0x18c(%rbx), %rsi
movl $0xff, %edx
callq 0x26290
movl 0x28c(%rbx), %eax
movl %eax, 0xf60(%r14)
movq %r14, %rdi
callq 0x35e2a
movq %r14, %r15
movl 0x3acf17(%rip), %edi # 0x3d5a2c
movq %r15, %rsi
callq 0x260c0
movq 0x2a0(%rbx), %r15
movq 0x2a8(%rbx), %r14
movq %rbx, %rdi
callq 0x488c2
movq %r14, %rdi
callq *%r15
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
xorl %r15d, %r15d
jmp 0x28b0f
|
pfs_spawn_thread:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rdi
mov edi, [rdi+290h]; unsigned int
call _Z17find_thread_classj; find_thread_class(uint)
test rax, rax
jz loc_28B46
mov rsi, [rbx+298h]
xor r15d, r15d
mov rdi, rax
xor edx, edx
call _Z13create_threadP16PFS_thread_classPKvy; create_thread(PFS_thread_class *,void const*,ulong long)
test rax, rax
jz short loc_28B0F
mov r14, rax
mov rdi, rax; PFS_thread *
call _Z20clear_thread_accountP10PFS_thread; clear_thread_account(PFS_thread *)
mov rax, [rbx]
mov [r14+858h], rax
lea rdi, [r14+0CDCh]
lea rsi, [rbx+8]
mov edx, 180h
call _memcpy
mov eax, [rbx+188h]
mov [r14+0E5Ch], eax
mov rdi, r14
add rdi, 0E60h
lea rsi, [rbx+18Ch]
mov edx, 0FFh
call _memcpy
mov eax, [rbx+28Ch]
mov [r14+0F60h], eax
mov rdi, r14; PFS_thread *
call _Z18set_thread_accountP10PFS_thread; set_thread_account(PFS_thread *)
mov r15, r14
loc_28B0F:
mov edi, cs:THR_PFS
mov rsi, r15
call _pthread_setspecific
mov r15, [rbx+2A0h]
mov r14, [rbx+2A8h]
mov rdi, rbx
call my_free
mov rdi, r14
call r15
xor eax, eax
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_28B46:
xor r15d, r15d
jmp short loc_28B0F
|
long long pfs_spawn_thread(long long a1)
{
long long thread_class; // rax
PFS_thread *v2; // r15
PFS_thread *thread; // rax
PFS_thread *v4; // r14
void ( *v5)(long long); // r15
long long v6; // r14
thread_class = find_thread_class(*(_DWORD *)(a1 + 656));
if ( thread_class )
{
v2 = 0LL;
thread = (PFS_thread *)create_thread(thread_class, *(_QWORD *)(a1 + 664), 0LL);
if ( thread )
{
v4 = thread;
clear_thread_account(thread);
*((_QWORD *)v4 + 267) = *(_QWORD *)a1;
memcpy((char *)v4 + 3292, a1 + 8, 384LL);
*((_DWORD *)v4 + 919) = *(_DWORD *)(a1 + 392);
memcpy((char *)v4 + 3680, a1 + 396, 255LL);
*((_DWORD *)v4 + 984) = *(_DWORD *)(a1 + 652);
set_thread_account(v4);
v2 = v4;
}
}
else
{
v2 = 0LL;
}
pthread_setspecific((unsigned int)THR_PFS, v2);
v5 = *(void ( **)(long long))(a1 + 672);
v6 = *(_QWORD *)(a1 + 680);
my_free(a1);
v5(v6);
return 0LL;
}
|
pfs_spawn_thread:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV EDI,dword ptr [RDI + 0x290]
CALL 0x0013bc1e
TEST RAX,RAX
JZ 0x00128b46
MOV RSI,qword ptr [RBX + 0x298]
XOR R15D,R15D
MOV RDI,RAX
XOR EDX,EDX
CALL 0x00135c63
TEST RAX,RAX
JZ 0x00128b0f
MOV R14,RAX
MOV RDI,RAX
CALL 0x00138285
MOV RAX,qword ptr [RBX]
MOV qword ptr [R14 + 0x858],RAX
LEA RDI,[R14 + 0xcdc]
LEA RSI,[RBX + 0x8]
MOV EDX,0x180
CALL 0x00126290
MOV EAX,dword ptr [RBX + 0x188]
MOV dword ptr [R14 + 0xe5c],EAX
MOV RDI,R14
ADD RDI,0xe60
LEA RSI,[RBX + 0x18c]
MOV EDX,0xff
CALL 0x00126290
MOV EAX,dword ptr [RBX + 0x28c]
MOV dword ptr [R14 + 0xf60],EAX
MOV RDI,R14
CALL 0x00135e2a
MOV R15,R14
LAB_00128b0f:
MOV EDI,dword ptr [0x004d5a2c]
MOV RSI,R15
CALL 0x001260c0
MOV R15,qword ptr [RBX + 0x2a0]
MOV R14,qword ptr [RBX + 0x2a8]
MOV RDI,RBX
CALL 0x001488c2
MOV RDI,R14
CALL R15
XOR EAX,EAX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_00128b46:
XOR R15D,R15D
JMP 0x00128b0f
|
int8 pfs_spawn_thread(int8 *param_1)
{
code *pcVar1;
int8 uVar2;
PFS_thread_class *pPVar3;
PFS_thread *pPVar4;
PFS_thread *__pointer;
pPVar3 = (PFS_thread_class *)find_thread_class(*(uint *)(param_1 + 0x52));
if (pPVar3 == (PFS_thread_class *)0x0) {
__pointer = (PFS_thread *)0x0;
}
else {
pPVar4 = (PFS_thread *)create_thread(pPVar3,(void *)param_1[0x53],0);
__pointer = (PFS_thread *)0x0;
if (pPVar4 != (PFS_thread *)0x0) {
clear_thread_account(pPVar4);
*(int8 *)(pPVar4 + 0x858) = *param_1;
memcpy(pPVar4 + 0xcdc,param_1 + 1,0x180);
*(int4 *)(pPVar4 + 0xe5c) = *(int4 *)(param_1 + 0x31);
memcpy(pPVar4 + 0xe60,(void *)((long)param_1 + 0x18c),0xff);
*(int4 *)(pPVar4 + 0xf60) = *(int4 *)((long)param_1 + 0x28c);
set_thread_account(pPVar4);
__pointer = pPVar4;
}
}
pthread_setspecific(THR_PFS,__pointer);
pcVar1 = (code *)param_1[0x54];
uVar2 = param_1[0x55];
my_free(param_1);
(*pcVar1)(uVar2);
return 0;
}
|
|
64,555 |
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> minja::Value::get<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/minja.hpp
|
T get(const std::string & key, T default_value) const {
if (!contains(key)) return default_value;
return at(key).get<T>();
}
|
O1
|
cpp
|
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> minja::Value::get<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 $0x58, %rsp
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x5a940
testb %al, %al
je 0x7815e
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x47f4c
movq %r15, %rdi
movq %r14, %rsi
callq 0x5a504
movq %rbx, %rdi
movq %rax, %rsi
callq 0x44eb0
leaq 0x48(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x4326e
movq %r14, %rdi
callq 0x501da
movq -0x8(%r14), %rdi
testq %rdi, %rdi
je 0x7811f
callq 0x35448
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x7812e
callq 0x35448
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x7813d
callq 0x35448
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x781b2
movq 0x6de4a(%rip), %rax # 0xe5f98
cmpb $0x0, (%rax)
je 0x7819d
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x781a7
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq (%r14), %rdx
leaq 0x10(%r14), %rax
cmpq %rax, %rdx
je 0x7817d
movq %rdx, (%rbx)
movq (%rax), %rcx
movq %rcx, 0x10(%rbx)
jmp 0x78183
movups (%rax), %xmm0
movups %xmm0, (%rcx)
movq 0x8(%r14), %rcx
movq %rcx, 0x8(%rbx)
movq %rax, (%r14)
movq $0x0, 0x8(%r14)
movb $0x0, 0x10(%r14)
jmp 0x781b2
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x781b2
movq (%rdi), %rax
callq *0x18(%rax)
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x431e2
movq %rbx, %rdi
callq 0x1ad30
|
_ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_RKS7_S8_:
push r15
push r14
push r12
push rbx
sub rsp, 58h
mov r14, rcx
mov r12, rdx
mov r15, rsi
mov rbx, rdi
mov rdi, rsi
mov rsi, rdx
call _ZNK5minja5Value8containsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::contains(std::string const&)
test al, al
jz loc_7815E
lea r14, [rsp+78h+var_70]
mov rdi, r14
mov rsi, r12
call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&)
mov rdi, r15; this
mov rsi, r14; minja::Value *
call _ZN5minja5Value2atERKS0_; minja::Value::at(minja::Value const&)
mov rdi, rbx
mov rsi, rax
call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void)
lea r14, [rsp+78h+var_30]
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [r14-8]
test rdi, rdi
jz short loc_7811F
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_7811F:
mov rdi, [rsp+78h+var_48]
test rdi, rdi
jz short loc_7812E
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_7812E:
mov rdi, [rsp+78h+var_58]
test rdi, rdi
jz short loc_7813D
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_7813D:
mov rdi, [rsp+78h+var_68]
test rdi, rdi
jz short loc_781B2
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_7819D
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_781A7
loc_7815E:
lea rcx, [rbx+10h]
mov [rbx], rcx
mov rdx, [r14]
lea rax, [r14+10h]
cmp rdx, rax
jz short loc_7817D
mov [rbx], rdx
mov rcx, [rax]
mov [rbx+10h], rcx
jmp short loc_78183
loc_7817D:
movups xmm0, xmmword ptr [rax]
movups xmmword ptr [rcx], xmm0
loc_78183:
mov rcx, [r14+8]
mov [rbx+8], rcx
mov [r14], rax
mov qword ptr [r14+8], 0
mov byte ptr [r14+10h], 0
jmp short loc_781B2
loc_7819D:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_781A7:
cmp eax, 1
jnz short loc_781B2
mov rax, [rdi]
call qword ptr [rax+18h]
loc_781B2:
mov rax, rbx
add rsp, 58h
pop rbx
pop r12
pop r14
pop r15
retn
mov rbx, rax
lea rdi, [rsp+arg_0]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov rdi, rbx
call __Unwind_Resume
|
long long minja::Value::get<std::string>(long long a1, minja::Value *a2, long long a3, long long a4)
{
_QWORD *v6; // rax
long long v7; // rdi
signed __int32 v8; // eax
_OWORD *v9; // rax
__int128 v11; // [rsp+8h] [rbp-70h] BYREF
volatile signed __int32 *v12; // [rsp+20h] [rbp-58h]
volatile signed __int32 *v13; // [rsp+30h] [rbp-48h]
volatile signed __int32 *v14; // [rsp+40h] [rbp-38h]
void *v15[6]; // [rsp+48h] [rbp-30h] BYREF
if ( minja::Value::contains((long long)a2) )
{
minja::Value::Value(&v11);
v6 = (_QWORD *)minja::Value::at(a2, (const minja::Value *)&v11);
minja::Value::get<std::string>(a1, v6);
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 *)v15);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v15);
if ( v14 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v14);
if ( v13 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v13);
if ( v12 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v12);
v7 = *((_QWORD *)&v11 + 1);
if ( *((_QWORD *)&v11 + 1) )
{
if ( _libc_single_threaded )
{
v8 = *(_DWORD *)(*((_QWORD *)&v11 + 1) + 12LL);
*(_DWORD *)(*((_QWORD *)&v11 + 1) + 12LL) = v8 - 1;
}
else
{
v8 = _InterlockedExchangeAdd((volatile signed __int32 *)(*((_QWORD *)&v11 + 1) + 12LL), 0xFFFFFFFF);
}
if ( v8 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v7 + 24LL))(v7, 0LL);
}
}
else
{
*(_QWORD *)a1 = a1 + 16;
v9 = (_OWORD *)(a4 + 16);
if ( *(_QWORD *)a4 == a4 + 16 )
{
*(_OWORD *)(a1 + 16) = *v9;
}
else
{
*(_QWORD *)a1 = *(_QWORD *)a4;
*(_QWORD *)(a1 + 16) = *(_QWORD *)v9;
}
*(_QWORD *)(a1 + 8) = *(_QWORD *)(a4 + 8);
*(_QWORD *)a4 = v9;
*(_QWORD *)(a4 + 8) = 0LL;
*(_BYTE *)(a4 + 16) = 0;
}
return a1;
}
|
get<std::__cxx11::string>:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV R14,RCX
MOV R12,RDX
MOV R15,RSI
MOV RBX,RDI
MOV RDI,RSI
MOV RSI,RDX
CALL 0x0015a940
TEST AL,AL
JZ 0x0017815e
LEA R14,[RSP + 0x8]
MOV RDI,R14
MOV RSI,R12
CALL 0x00147f4c
LAB_001780e4:
MOV RDI,R15
MOV RSI,R14
CALL 0x0015a504
MOV RDI,RBX
MOV RSI,RAX
CALL 0x00144eb0
LAB_001780fa:
LEA R14,[RSP + 0x48]
MOV RDI,R14
XOR ESI,ESI
CALL 0x0014326e
MOV RDI,R14
CALL 0x001501da
MOV RDI,qword ptr [R14 + -0x8]
TEST RDI,RDI
JZ 0x0017811f
CALL 0x00135448
LAB_0017811f:
MOV RDI,qword ptr [RSP + 0x30]
TEST RDI,RDI
JZ 0x0017812e
CALL 0x00135448
LAB_0017812e:
MOV RDI,qword ptr [RSP + 0x20]
TEST RDI,RDI
JZ 0x0017813d
CALL 0x00135448
LAB_0017813d:
MOV RDI,qword ptr [RSP + 0x10]
TEST RDI,RDI
JZ 0x001781b2
MOV RAX,qword ptr [0x001e5f98]
CMP byte ptr [RAX],0x0
JZ 0x0017819d
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x001781a7
LAB_0017815e:
LEA RCX,[RBX + 0x10]
MOV qword ptr [RBX],RCX
MOV RDX,qword ptr [R14]
LEA RAX,[R14 + 0x10]
CMP RDX,RAX
JZ 0x0017817d
MOV qword ptr [RBX],RDX
MOV RCX,qword ptr [RAX]
MOV qword ptr [RBX + 0x10],RCX
JMP 0x00178183
LAB_0017817d:
MOVUPS XMM0,xmmword ptr [RAX]
MOVUPS xmmword ptr [RCX],XMM0
LAB_00178183:
MOV RCX,qword ptr [R14 + 0x8]
MOV qword ptr [RBX + 0x8],RCX
MOV qword ptr [R14],RAX
MOV qword ptr [R14 + 0x8],0x0
MOV byte ptr [R14 + 0x10],0x0
JMP 0x001781b2
LAB_0017819d:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_001781a7:
CMP EAX,0x1
JNZ 0x001781b2
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_001781b2:
MOV RAX,RBX
ADD RSP,0x58
POP RBX
POP R12
POP R14
POP R15
RET
|
/* std::__cxx11::string minja::Value::get<std::__cxx11::string >(std::__cxx11::string const&,
std::__cxx11::string) const */
long * minja::Value::get<std::__cxx11::string>
(long *param_1,Value *param_2,string *param_3,int8 *param_4)
{
long *plVar1;
int *piVar2;
long lVar3;
char cVar4;
int iVar5;
Value local_70 [8];
long *local_68;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_58;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_48;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_38;
data local_30 [16];
cVar4 = contains(param_2,param_3);
if (cVar4 == '\0') {
*param_1 = (long)(param_1 + 2);
plVar1 = param_4 + 2;
if ((long *)*param_4 == plVar1) {
lVar3 = param_4[3];
param_1[2] = *plVar1;
param_1[3] = lVar3;
}
else {
*param_1 = (long)*param_4;
param_1[2] = *plVar1;
}
param_1[1] = param_4[1];
*param_4 = plVar1;
param_4[1] = 0;
*(int1 *)(param_4 + 2) = 0;
}
else {
Value(local_70,param_3);
/* try { // try from 001780e4 to 001780f9 has its CatchHandler @ 001781c1 */
at(param_2,local_70);
get<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>
::assert_invariant(SUB81(local_30,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_30);
if (local_38 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_38);
}
if (local_48 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_48);
}
if (local_58 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_58);
}
if (local_68 != (long *)0x0) {
if (*PTR___libc_single_threaded_001e5f98 == '\0') {
LOCK();
piVar2 = (int *)((long)local_68 + 0xc);
iVar5 = *piVar2;
*piVar2 = *piVar2 + -1;
UNLOCK();
}
else {
iVar5 = *(int *)((long)local_68 + 0xc);
*(int *)((long)local_68 + 0xc) = iVar5 + -1;
}
if (iVar5 == 1) {
(**(code **)(*local_68 + 0x18))();
}
}
}
return param_1;
}
|
|
64,556 |
ma_pvio_cache_read
|
eloqsql/libmariadb/libmariadb/ma_pvio.c
|
ssize_t ma_pvio_cache_read(MARIADB_PVIO *pvio, uchar *buffer, size_t length)
{
ssize_t r;
if (!pvio)
return -1;
if (!pvio->cache)
return ma_pvio_read(pvio, buffer, length);
if (pvio->cache + pvio->cache_size > pvio->cache_pos)
{
ssize_t remaining = pvio->cache + pvio->cache_size - pvio->cache_pos;
assert(remaining > 0);
r= MIN((ssize_t)length, remaining);
memcpy(buffer, pvio->cache_pos, r);
pvio->cache_pos+= r;
}
else if (length >= PVIO_READ_AHEAD_CACHE_MIN_SIZE)
{
r= ma_pvio_read(pvio, buffer, length);
}
else
{
r= ma_pvio_read(pvio, pvio->cache, PVIO_READ_AHEAD_CACHE_SIZE);
if (r > 0)
{
if (length < (size_t)r)
{
pvio->cache_size= r;
pvio->cache_pos= pvio->cache + length;
r= length;
}
memcpy(buffer, pvio->cache, r);
}
}
return r;
}
|
O0
|
c
|
ma_pvio_cache_read:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x23578
movq $-0x1, -0x8(%rbp)
jmp 0x236b9
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x2359d
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x23170
movq %rax, -0x8(%rbp)
jmp 0x236b9
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
addq 0x18(%rcx), %rax
movq -0x10(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jbe 0x23624
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
addq 0x18(%rcx), %rax
movq -0x10(%rbp), %rcx
movq 0x10(%rcx), %rcx
subq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x30(%rbp), %rax
jge 0x235ea
movq -0x20(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x235f2
movq -0x30(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
movq -0x28(%rbp), %rdx
callq 0x13360
movq -0x28(%rbp), %rcx
movq -0x10(%rbp), %rax
addq 0x10(%rax), %rcx
movq %rcx, 0x10(%rax)
jmp 0x236b1
cmpq $0x800, -0x20(%rbp) # imm = 0x800
jb 0x23645
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x23170
movq %rax, -0x28(%rbp)
jmp 0x236af
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
movl $0x4000, %edx # imm = 0x4000
callq 0x23170
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jle 0x236ad
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jae 0x23698
movq -0x28(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
addq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
movq -0x28(%rbp), %rdx
callq 0x13360
jmp 0x236af
jmp 0x236b1
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
ma_pvio_cache_read:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
cmp [rbp+var_10], 0
jnz short loc_23578
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
jmp loc_236B9
loc_23578:
mov rax, [rbp+var_10]
cmp qword ptr [rax+8], 0
jnz short loc_2359D
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call ma_pvio_read
mov [rbp+var_8], rax
jmp loc_236B9
loc_2359D:
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rcx, [rbp+var_10]
add rax, [rcx+18h]
mov rcx, [rbp+var_10]
cmp rax, [rcx+10h]
jbe short loc_23624
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rcx, [rbp+var_10]
add rax, [rcx+18h]
mov rcx, [rbp+var_10]
mov rcx, [rcx+10h]
sub rax, rcx
mov [rbp+var_30], rax
mov rax, [rbp+var_20]
cmp rax, [rbp+var_30]
jge short loc_235EA
mov rax, [rbp+var_20]
mov [rbp+var_38], rax
jmp short loc_235F2
loc_235EA:
mov rax, [rbp+var_30]
mov [rbp+var_38], rax
loc_235F2:
mov rax, [rbp+var_38]
mov [rbp+var_28], rax
mov rdi, [rbp+var_18]
mov rax, [rbp+var_10]
mov rsi, [rax+10h]
mov rdx, [rbp+var_28]
call _memcpy
mov rcx, [rbp+var_28]
mov rax, [rbp+var_10]
add rcx, [rax+10h]
mov [rax+10h], rcx
jmp loc_236B1
loc_23624:
cmp [rbp+var_20], 800h
jb short loc_23645
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call ma_pvio_read
mov [rbp+var_28], rax
jmp short loc_236AF
loc_23645:
mov rdi, [rbp+var_10]
mov rax, [rbp+var_10]
mov rsi, [rax+8]
mov edx, 4000h
call ma_pvio_read
mov [rbp+var_28], rax
cmp [rbp+var_28], 0
jle short loc_236AD
mov rax, [rbp+var_20]
cmp rax, [rbp+var_28]
jnb short loc_23698
mov rcx, [rbp+var_28]
mov rax, [rbp+var_10]
mov [rax+18h], rcx
mov rax, [rbp+var_10]
mov rcx, [rax+8]
add rcx, [rbp+var_20]
mov rax, [rbp+var_10]
mov [rax+10h], rcx
mov rax, [rbp+var_20]
mov [rbp+var_28], rax
loc_23698:
mov rdi, [rbp+var_18]
mov rax, [rbp+var_10]
mov rsi, [rax+8]
mov rdx, [rbp+var_28]
call _memcpy
loc_236AD:
jmp short $+2
loc_236AF:
jmp short $+2
loc_236B1:
mov rax, [rbp+var_28]
mov [rbp+var_8], rax
loc_236B9:
mov rax, [rbp+var_8]
add rsp, 40h
pop rbp
retn
|
long long ma_pvio_cache_read(_QWORD *a1, long long a2, unsigned long long a3)
{
unsigned long long v4; // [rsp+8h] [rbp-38h]
long long v5; // [rsp+18h] [rbp-28h]
if ( !a1 )
return -1LL;
if ( !a1[1] )
return ma_pvio_read(a1, a2, a3);
if ( a1[3] + a1[1] <= a1[2] )
{
if ( a3 < 0x800 )
{
v5 = ma_pvio_read(a1, a1[1], 0x4000LL);
if ( v5 > 0 )
{
if ( a3 < v5 )
{
a1[3] = v5;
a1[2] = a3 + a1[1];
v5 = a3;
}
memcpy(a2, a1[1], v5);
}
}
else
{
return ma_pvio_read(a1, a2, a3);
}
}
else
{
if ( (signed long long)a3 >= a1[3] + a1[1] - a1[2] )
v4 = a1[3] + a1[1] - a1[2];
else
v4 = a3;
v5 = v4;
memcpy(a2, a1[2], v4);
a1[2] += v4;
}
return v5;
}
|
ma_pvio_cache_read:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
CMP qword ptr [RBP + -0x10],0x0
JNZ 0x00123578
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x001236b9
LAB_00123578:
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x8],0x0
JNZ 0x0012359d
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x00123170
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001236b9
LAB_0012359d:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RCX + 0x18]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x10]
JBE 0x00123624
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RCX + 0x18]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x10]
SUB RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x30]
JGE 0x001235ea
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x38],RAX
JMP 0x001235f2
LAB_001235ea:
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x38],RAX
LAB_001235f2:
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x28],RAX
MOV RDI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x10]
MOV RDX,qword ptr [RBP + -0x28]
CALL 0x00113360
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x10]
ADD RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RAX + 0x10],RCX
JMP 0x001236b1
LAB_00123624:
CMP qword ptr [RBP + -0x20],0x800
JC 0x00123645
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x00123170
MOV qword ptr [RBP + -0x28],RAX
JMP 0x001236af
LAB_00123645:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x8]
MOV EDX,0x4000
CALL 0x00123170
MOV qword ptr [RBP + -0x28],RAX
CMP qword ptr [RBP + -0x28],0x0
JLE 0x001236ad
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x28]
JNC 0x00123698
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x8]
ADD RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x28],RAX
LAB_00123698:
MOV RDI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x8]
MOV RDX,qword ptr [RBP + -0x28]
CALL 0x00113360
LAB_001236ad:
JMP 0x001236af
LAB_001236af:
JMP 0x001236b1
LAB_001236b1:
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x8],RAX
LAB_001236b9:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x40
POP RBP
RET
|
ulong ma_pvio_cache_read(long param_1,void *param_2,ulong param_3)
{
size_t local_40;
ulong local_30;
ulong local_10;
if (param_1 == 0) {
local_10 = 0xffffffffffffffff;
}
else if (*(long *)(param_1 + 8) == 0) {
local_10 = ma_pvio_read(param_1,param_2,param_3);
}
else {
if (*(ulong *)(param_1 + 0x10) < (ulong)(*(long *)(param_1 + 8) + *(long *)(param_1 + 0x18))) {
local_40 = (*(long *)(param_1 + 8) + *(long *)(param_1 + 0x18)) - *(long *)(param_1 + 0x10);
if ((long)param_3 < (long)local_40) {
local_40 = param_3;
}
local_30 = local_40;
memcpy(param_2,*(void **)(param_1 + 0x10),local_40);
*(size_t *)(param_1 + 0x10) = local_40 + *(long *)(param_1 + 0x10);
}
else if (param_3 < 0x800) {
local_30 = ma_pvio_read(param_1,*(int8 *)(param_1 + 8),0x4000);
if (0 < (long)local_30) {
if (param_3 < local_30) {
*(ulong *)(param_1 + 0x18) = local_30;
*(ulong *)(param_1 + 0x10) = *(long *)(param_1 + 8) + param_3;
local_30 = param_3;
}
memcpy(param_2,*(void **)(param_1 + 8),local_30);
}
}
else {
local_30 = ma_pvio_read(param_1,param_2,param_3);
}
local_10 = local_30;
}
return local_10;
}
|
|
64,557 |
dirname_part
|
eloqsql/mysys/mf_dirname.c
|
size_t dirname_part(char *to, const char *name, size_t *to_res_length)
{
size_t length;
DBUG_ENTER("dirname_part");
DBUG_PRINT("enter",("'%s'",name));
length=dirname_length(name);
*to_res_length= (size_t) (convert_dirname(to, name, name+length) - to);
DBUG_RETURN(length);
}
|
O3
|
c
|
dirname_part:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
leaq -0x1(%rsi), %rdx
movq %rsi, %rax
movzbl (%rax), %ecx
cmpl $0x2f, %ecx
je 0x9494e
testl %ecx, %ecx
jne 0x94951
jmp 0x94956
movq %rax, %rdx
incq %rax
jmp 0x94940
incq %rdx
movq %rdx, %r15
subq %rsi, %r15
movq %r14, %rdi
callq 0x9497b
subq %r14, %rax
movq %rax, (%rbx)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
dirname_part:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rdx
mov r14, rdi
lea rdx, [rsi-1]
mov rax, rsi
loc_94940:
movzx ecx, byte ptr [rax]
cmp ecx, 2Fh ; '/'
jz short loc_9494E
test ecx, ecx
jnz short loc_94951
jmp short loc_94956
loc_9494E:
mov rdx, rax
loc_94951:
inc rax
jmp short loc_94940
loc_94956:
inc rdx
mov r15, rdx
sub r15, rsi
mov rdi, r14
call convert_dirname
sub rax, r14
mov [rbx], rax
mov rax, r15
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long dirname_part(long long a1, _BYTE *a2, _QWORD *a3)
{
_BYTE *v4; // rdx
_BYTE *i; // rax
_BYTE *v6; // rdx
long long v7; // r15
v4 = a2 - 1;
for ( i = a2; *i == 47; ++i )
{
v4 = i;
LABEL_6:
;
}
if ( *i )
goto LABEL_6;
v6 = v4 + 1;
v7 = v6 - a2;
*a3 = convert_dirname(a1, a2, v6) - a1;
return v7;
}
|
dirname_part:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV R14,RDI
LEA RDX,[RSI + -0x1]
MOV RAX,RSI
LAB_00194940:
MOVZX ECX,byte ptr [RAX]
CMP ECX,0x2f
JZ 0x0019494e
TEST ECX,ECX
JNZ 0x00194951
JMP 0x00194956
LAB_0019494e:
MOV RDX,RAX
LAB_00194951:
INC RAX
JMP 0x00194940
LAB_00194956:
INC RDX
MOV R15,RDX
SUB R15,RSI
MOV RDI,R14
CALL 0x0019497b
SUB RAX,R14
MOV qword ptr [RBX],RAX
MOV RAX,R15
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
char * dirname_part(long param_1,char *param_2,long *param_3)
{
char *pcVar1;
long lVar2;
char *pcVar3;
char *pcVar4;
pcVar3 = param_2 + -1;
for (pcVar1 = param_2; (pcVar4 = pcVar1, *pcVar1 == '/' || (pcVar4 = pcVar3, *pcVar1 != '\0'));
pcVar1 = pcVar1 + 1) {
pcVar3 = pcVar4;
}
lVar2 = convert_dirname(param_1);
*param_3 = lVar2 - param_1;
return pcVar3 + (1 - (long)param_2);
}
|
|
64,558 |
pfs_start_table_io_wait_v1
|
eloqsql/storage/perfschema/pfs.cc
|
PSI_table_locker*
pfs_start_table_io_wait_v1(PSI_table_locker_state *state,
PSI_table *table,
PSI_table_io_operation op,
uint index,
const char *src_file, uint src_line)
{
assert(static_cast<int> (op) >= 0);
assert(static_cast<uint> (op) < array_elements(table_io_operation_map));
assert(state != NULL);
PFS_table *pfs_table= reinterpret_cast<PFS_table*> (table);
assert(pfs_table != NULL);
assert(pfs_table->m_share != NULL);
if (! pfs_table->m_io_enabled)
return NULL;
PFS_thread *pfs_thread= my_thread_get_THR_PFS();
uint flags;
ulonglong timer_start= 0;
if (flag_thread_instrumentation)
{
if (pfs_thread == NULL)
return NULL;
if (! pfs_thread->m_enabled)
return NULL;
state->m_thread= reinterpret_cast<PSI_thread *> (pfs_thread);
flags= STATE_FLAG_THREAD;
if (pfs_table->m_io_timed)
{
timer_start= get_timer_raw_value_and_function(wait_timer, & state->m_timer);
state->m_timer_start= timer_start;
flags|= STATE_FLAG_TIMED;
}
if (flag_events_waits_current)
{
if (unlikely(pfs_thread->m_events_waits_current >=
& pfs_thread->m_events_waits_stack[WAIT_STACK_SIZE]))
{
locker_lost++;
return NULL;
}
PFS_events_waits *wait= pfs_thread->m_events_waits_current;
state->m_wait= wait;
flags|= STATE_FLAG_EVENT;
PFS_events_waits *parent_event= wait - 1;
wait->m_event_type= EVENT_TYPE_WAIT;
wait->m_nesting_event_id= parent_event->m_event_id;
wait->m_nesting_event_type= parent_event->m_event_type;
PFS_table_share *share= pfs_table->m_share;
wait->m_thread_internal_id= pfs_thread->m_thread_internal_id;
wait->m_class= &global_table_io_class;
wait->m_timer_start= timer_start;
wait->m_timer_end= 0;
wait->m_object_instance_addr= pfs_table->m_identity;
wait->m_event_id= pfs_thread->m_event_id++;
wait->m_end_event_id= 0;
wait->m_operation= table_io_operation_map[static_cast<int> (op)];
wait->m_flags= 0;
wait->m_object_type= share->get_object_type();
wait->m_weak_table_share= share;
wait->m_weak_version= share->get_version();
wait->m_index= index;
wait->m_source_file= src_file;
wait->m_source_line= src_line;
wait->m_wait_class= WAIT_CLASS_TABLE;
pfs_thread->m_events_waits_current++;
}
}
else
{
if (pfs_table->m_io_timed)
{
timer_start= get_timer_raw_value_and_function(wait_timer, & state->m_timer);
state->m_timer_start= timer_start;
flags= STATE_FLAG_TIMED;
}
else
{
/* TODO: consider a shortcut here */
flags= 0;
}
}
state->m_flags= flags;
state->m_table= table;
state->m_io_operation= op;
state->m_index= index;
return reinterpret_cast<PSI_table_locker*> (state);
}
|
O0
|
cpp
|
pfs_start_table_io_wait_v1:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movl %ecx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
testb $0x1, (%rax)
jne 0x4b64c
movq $0x0, -0x8(%rbp)
jmp 0x4b93f
callq 0x49af0
movq %rax, -0x40(%rbp)
movq $0x0, -0x50(%rbp)
leaq 0x3c0a5c(%rip), %rax # 0x40c0c0
testb $0x1, (%rax)
je 0x4b8cc
cmpq $0x0, -0x40(%rbp)
jne 0x4b681
movq $0x0, -0x8(%rbp)
jmp 0x4b93f
movq -0x40(%rbp), %rax
testb $0x1, 0x7e0(%rax)
jne 0x4b69b
movq $0x0, -0x8(%rbp)
jmp 0x4b93f
movq -0x40(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
movl $0x2, -0x44(%rbp)
movq -0x38(%rbp), %rax
testb $0x1, 0x2(%rax)
je 0x4b6e7
leaq 0x1c9ced(%rip), %rax # 0x2153ac
movl (%rax), %edi
movq -0x10(%rbp), %rsi
addq $0x28, %rsi
callq 0x47130
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x20(%rax)
movl -0x44(%rbp), %eax
orl $0x1, %eax
movl %eax, -0x44(%rbp)
leaq 0x3c08d2(%rip), %rax # 0x40bfc0
testb $0x1, (%rax)
je 0x4b8ca
movq -0x40(%rbp), %rax
movq 0x7f0(%rax), %rax
movq -0x40(%rbp), %rcx
addq $0x878, %rcx # imm = 0x878
addq $0x420, %rcx # imm = 0x420
cmpq %rcx, %rax
setae %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x4b749
leaq 0x3c0cdd(%rip), %rax # 0x40c408
movq (%rax), %rcx
addq $0x1, %rcx
leaq 0x3c0ccf(%rip), %rax # 0x40c408
movq %rcx, (%rax)
movq $0x0, -0x8(%rbp)
jmp 0x4b93f
movq -0x40(%rbp), %rax
movq 0x7f0(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x30(%rax)
movl -0x44(%rbp), %eax
orl $0x4, %eax
movl %eax, -0x44(%rbp)
movq -0x58(%rbp), %rax
addq $-0xb0, %rax
movq %rax, -0x60(%rbp)
movq -0x58(%rbp), %rax
movl $0x4, 0x18(%rax)
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x58(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x60(%rbp), %rax
movl 0x18(%rax), %ecx
movq -0x58(%rbp), %rax
movl %ecx, 0x28(%rax)
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x40(%rbp), %rax
movq 0x850(%rax), %rcx
movq -0x58(%rbp), %rax
movq %rcx, (%rax)
movq -0x58(%rbp), %rax
leaq 0x3c1233(%rip), %rcx # 0x40ca00
movq %rcx, 0x30(%rax)
movq -0x50(%rbp), %rcx
movq -0x58(%rbp), %rax
movq %rcx, 0x38(%rax)
movq -0x58(%rbp), %rax
movq $0x0, 0x40(%rax)
movq -0x38(%rbp), %rax
movq 0x28(%rax), %rcx
movq -0x58(%rbp), %rax
movq %rcx, 0x88(%rax)
movq -0x40(%rbp), %rax
movq 0x7f8(%rax), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, 0x7f8(%rax)
movq -0x58(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x58(%rbp), %rax
movq $0x0, 0x10(%rax)
movslq -0x1c(%rbp), %rcx
leaq 0x1c9bcc(%rip), %rax # 0x215400
movl (%rax,%rcx,4), %ecx
movq -0x58(%rbp), %rax
movl %ecx, 0x90(%rax)
movq -0x58(%rbp), %rax
movq $0x0, 0xa8(%rax)
movq -0x68(%rbp), %rdi
callq 0x527d0
movl %eax, %ecx
movq -0x58(%rbp), %rax
movl %ecx, 0x5c(%rax)
movq -0x68(%rbp), %rcx
movq -0x58(%rbp), %rax
movq %rcx, 0x60(%rax)
movq -0x68(%rbp), %rdi
callq 0x527f0
movl %eax, %ecx
movq -0x58(%rbp), %rax
movl %ecx, 0x80(%rax)
movl -0x20(%rbp), %ecx
movq -0x58(%rbp), %rax
movl %ecx, 0xa0(%rax)
movq -0x28(%rbp), %rcx
movq -0x58(%rbp), %rax
movq %rcx, 0x48(%rax)
movl -0x2c(%rbp), %ecx
movq -0x58(%rbp), %rax
movl %ecx, 0x50(%rax)
movq -0x58(%rbp), %rax
movl $0x4, 0x58(%rax)
movq -0x40(%rbp), %rax
movq 0x7f0(%rax), %rcx
addq $0xb0, %rcx
movq %rcx, 0x7f0(%rax)
jmp 0x4b90e
movq -0x38(%rbp), %rax
testb $0x1, 0x2(%rax)
je 0x4b905
leaq 0x1c9acf(%rip), %rax # 0x2153ac
movl (%rax), %edi
movq -0x10(%rbp), %rsi
addq $0x28, %rsi
callq 0x47130
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x20(%rax)
movl $0x1, -0x44(%rbp)
jmp 0x4b90c
movl $0x0, -0x44(%rbp)
jmp 0x4b90e
movl -0x44(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movl -0x1c(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x4(%rax)
movl -0x20(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x38(%rax)
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax)
|
pfs_start_table_io_wait_v1:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov [rbp+var_20], ecx
mov [rbp+var_28], r8
mov [rbp+var_2C], r9d
mov rax, [rbp+var_18]
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
test byte ptr [rax], 1
jnz short loc_4B64C
mov [rbp+var_8], 0
jmp loc_4B93F
loc_4B64C:
call _ZL21my_thread_get_THR_PFSv; my_thread_get_THR_PFS(void)
mov [rbp+var_40], rax
mov [rbp+var_50], 0
lea rax, flag_thread_instrumentation
test byte ptr [rax], 1
jz loc_4B8CC
cmp [rbp+var_40], 0
jnz short loc_4B681
mov [rbp+var_8], 0
jmp loc_4B93F
loc_4B681:
mov rax, [rbp+var_40]
test byte ptr [rax+7E0h], 1
jnz short loc_4B69B
mov [rbp+var_8], 0
jmp loc_4B93F
loc_4B69B:
mov rcx, [rbp+var_40]
mov rax, [rbp+var_10]
mov [rax+18h], rcx
mov [rbp+var_44], 2
mov rax, [rbp+var_38]
test byte ptr [rax+2], 1
jz short loc_4B6E7
lea rax, wait_timer
mov edi, [rax]
mov rsi, [rbp+var_10]
add rsi, 28h ; '('
call _Z32get_timer_raw_value_and_function15enum_timer_namePPFyvE; get_timer_raw_value_and_function(enum_timer_name,ulong long (**)(void))
mov [rbp+var_50], rax
mov rcx, [rbp+var_50]
mov rax, [rbp+var_10]
mov [rax+20h], rcx
mov eax, [rbp+var_44]
or eax, 1
mov [rbp+var_44], eax
loc_4B6E7:
lea rax, flag_events_waits_current
test byte ptr [rax], 1
jz loc_4B8CA
mov rax, [rbp+var_40]
mov rax, [rax+7F0h]
mov rcx, [rbp+var_40]
add rcx, 878h
add rcx, 420h
cmp rax, rcx
setnb al
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_4B749
lea rax, locker_lost
mov rcx, [rax]
add rcx, 1
lea rax, locker_lost
mov [rax], rcx
mov [rbp+var_8], 0
jmp loc_4B93F
loc_4B749:
mov rax, [rbp+var_40]
mov rax, [rax+7F0h]
mov [rbp+var_58], rax
mov rcx, [rbp+var_58]
mov rax, [rbp+var_10]
mov [rax+30h], rcx
mov eax, [rbp+var_44]
or eax, 4
mov [rbp+var_44], eax
mov rax, [rbp+var_58]
add rax, 0FFFFFFFFFFFFFF50h
mov [rbp+var_60], rax
mov rax, [rbp+var_58]
mov dword ptr [rax+18h], 4
mov rax, [rbp+var_60]
mov rcx, [rax+8]
mov rax, [rbp+var_58]
mov [rax+20h], rcx
mov rax, [rbp+var_60]
mov ecx, [rax+18h]
mov rax, [rbp+var_58]
mov [rax+28h], ecx
mov rax, [rbp+var_38]
mov rax, [rax+20h]
mov [rbp+var_68], rax
mov rax, [rbp+var_40]
mov rcx, [rax+850h]
mov rax, [rbp+var_58]
mov [rax], rcx
mov rax, [rbp+var_58]
lea rcx, global_table_io_class
mov [rax+30h], rcx
mov rcx, [rbp+var_50]
mov rax, [rbp+var_58]
mov [rax+38h], rcx
mov rax, [rbp+var_58]
mov qword ptr [rax+40h], 0
mov rax, [rbp+var_38]
mov rcx, [rax+28h]
mov rax, [rbp+var_58]
mov [rax+88h], rcx
mov rax, [rbp+var_40]
mov rcx, [rax+7F8h]
mov rdx, rcx
add rdx, 1
mov [rax+7F8h], rdx
mov rax, [rbp+var_58]
mov [rax+8], rcx
mov rax, [rbp+var_58]
mov qword ptr [rax+10h], 0
movsxd rcx, [rbp+var_1C]
lea rax, _ZL22table_io_operation_map; table_io_operation_map
mov ecx, [rax+rcx*4]
mov rax, [rbp+var_58]
mov [rax+90h], ecx
mov rax, [rbp+var_58]
mov qword ptr [rax+0A8h], 0
mov rdi, [rbp+var_68]; this
call _ZN15PFS_table_share15get_object_typeEv; PFS_table_share::get_object_type(void)
mov ecx, eax
mov rax, [rbp+var_58]
mov [rax+5Ch], ecx
mov rcx, [rbp+var_68]
mov rax, [rbp+var_58]
mov [rax+60h], rcx
mov rdi, [rbp+var_68]; this
call _ZN15PFS_table_share11get_versionEv; PFS_table_share::get_version(void)
mov ecx, eax
mov rax, [rbp+var_58]
mov [rax+80h], ecx
mov ecx, [rbp+var_20]
mov rax, [rbp+var_58]
mov [rax+0A0h], ecx
mov rcx, [rbp+var_28]
mov rax, [rbp+var_58]
mov [rax+48h], rcx
mov ecx, [rbp+var_2C]
mov rax, [rbp+var_58]
mov [rax+50h], ecx
mov rax, [rbp+var_58]
mov dword ptr [rax+58h], 4
mov rax, [rbp+var_40]
mov rcx, [rax+7F0h]
add rcx, 0B0h
mov [rax+7F0h], rcx
loc_4B8CA:
jmp short loc_4B90E
loc_4B8CC:
mov rax, [rbp+var_38]
test byte ptr [rax+2], 1
jz short loc_4B905
lea rax, wait_timer
mov edi, [rax]
mov rsi, [rbp+var_10]
add rsi, 28h ; '('
call _Z32get_timer_raw_value_and_function15enum_timer_namePPFyvE; get_timer_raw_value_and_function(enum_timer_name,ulong long (**)(void))
mov [rbp+var_50], rax
mov rcx, [rbp+var_50]
mov rax, [rbp+var_10]
mov [rax+20h], rcx
mov [rbp+var_44], 1
jmp short loc_4B90C
loc_4B905:
mov [rbp+var_44], 0
loc_4B90C:
jmp short $+2
loc_4B90E:
mov ecx, [rbp+var_44]
mov rax, [rbp+var_10]
mov [rax], ecx
mov rcx, [rbp+var_18]
mov rax, [rbp+var_10]
mov [rax+8], rcx
mov ecx, [rbp+var_1C]
mov rax, [rbp+var_10]
mov [rax+4], ecx
mov ecx, [rbp+var_20]
mov rax, [rbp+var_10]
mov [rax+38h], ecx
mov rax, [rbp+var_10]
mov [rbp+var_8], rax
loc_4B93F:
mov rax, [rbp+var_8]
add rsp, 70h
pop rbp
retn
|
long long pfs_start_table_io_wait_v1(long long a1, long long a2, int a3, int a4, long long a5, int a6)
{
long long v6; // rcx
PFS_table_share *v8; // [rsp+8h] [rbp-68h]
long long v9; // [rsp+18h] [rbp-58h]
unsigned long long timer_raw_value_and_function; // [rsp+20h] [rbp-50h]
int v11; // [rsp+2Ch] [rbp-44h]
long long THR_PFS; // [rsp+30h] [rbp-40h]
if ( (*(_BYTE *)a2 & 1) != 0 )
{
THR_PFS = my_thread_get_THR_PFS();
timer_raw_value_and_function = 0LL;
if ( (flag_thread_instrumentation & 1) != 0 )
{
if ( !THR_PFS )
return 0LL;
if ( (*(_BYTE *)(THR_PFS + 2016) & 1) == 0 )
return 0LL;
*(_QWORD *)(a1 + 24) = THR_PFS;
v11 = 2;
if ( (*(_BYTE *)(a2 + 2) & 1) != 0 )
{
timer_raw_value_and_function = get_timer_raw_value_and_function(
(unsigned int)wait_timer,
(unsigned long long (**)(void))(a1 + 40));
*(_QWORD *)(a1 + 32) = timer_raw_value_and_function;
v11 = 3;
}
if ( (flag_events_waits_current & 1) != 0 )
{
if ( *(_QWORD *)(THR_PFS + 2032) >= (unsigned long long)(THR_PFS + 3224) )
{
++locker_lost;
return 0LL;
}
v9 = *(_QWORD *)(THR_PFS + 2032);
*(_QWORD *)(a1 + 48) = v9;
v11 |= 4u;
*(_DWORD *)(v9 + 24) = 4;
*(_QWORD *)(v9 + 32) = *(_QWORD *)(v9 - 176 + 8);
*(_DWORD *)(v9 + 40) = *(_DWORD *)(v9 - 176 + 24);
v8 = *(PFS_table_share **)(a2 + 32);
*(_QWORD *)v9 = *(_QWORD *)(THR_PFS + 2128);
*(_QWORD *)(v9 + 48) = global_table_io_class;
*(_QWORD *)(v9 + 56) = timer_raw_value_and_function;
*(_QWORD *)(v9 + 64) = 0LL;
*(_QWORD *)(v9 + 136) = *(_QWORD *)(a2 + 40);
v6 = *(_QWORD *)(THR_PFS + 2040);
*(_QWORD *)(THR_PFS + 2040) = v6 + 1;
*(_QWORD *)(v9 + 8) = v6;
*(_QWORD *)(v9 + 16) = 0LL;
*(_DWORD *)(v9 + 144) = table_io_operation_map[a3];
*(_QWORD *)(v9 + 168) = 0LL;
*(_DWORD *)(v9 + 92) = PFS_table_share::get_object_type(v8);
*(_QWORD *)(v9 + 96) = v8;
*(_DWORD *)(v9 + 128) = PFS_table_share::get_version(v8);
*(_DWORD *)(v9 + 160) = a4;
*(_QWORD *)(v9 + 72) = a5;
*(_DWORD *)(v9 + 80) = a6;
*(_DWORD *)(v9 + 88) = 4;
*(_QWORD *)(THR_PFS + 2032) += 176LL;
}
}
else if ( (*(_BYTE *)(a2 + 2) & 1) != 0 )
{
*(_QWORD *)(a1 + 32) = get_timer_raw_value_and_function(
(unsigned int)wait_timer,
(unsigned long long (**)(void))(a1 + 40));
v11 = 1;
}
else
{
v11 = 0;
}
*(_DWORD *)a1 = v11;
*(_QWORD *)(a1 + 8) = a2;
*(_DWORD *)(a1 + 4) = a3;
*(_DWORD *)(a1 + 56) = a4;
return a1;
}
return 0LL;
}
|
pfs_start_table_io_wait_v1:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV dword ptr [RBP + -0x20],ECX
MOV qword ptr [RBP + -0x28],R8
MOV dword ptr [RBP + -0x2c],R9D
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
TEST byte ptr [RAX],0x1
JNZ 0x0014b64c
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0014b93f
LAB_0014b64c:
CALL 0x00149af0
MOV qword ptr [RBP + -0x40],RAX
MOV qword ptr [RBP + -0x50],0x0
LEA RAX,[0x50c0c0]
TEST byte ptr [RAX],0x1
JZ 0x0014b8cc
CMP qword ptr [RBP + -0x40],0x0
JNZ 0x0014b681
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0014b93f
LAB_0014b681:
MOV RAX,qword ptr [RBP + -0x40]
TEST byte ptr [RAX + 0x7e0],0x1
JNZ 0x0014b69b
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0014b93f
LAB_0014b69b:
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],RCX
MOV dword ptr [RBP + -0x44],0x2
MOV RAX,qword ptr [RBP + -0x38]
TEST byte ptr [RAX + 0x2],0x1
JZ 0x0014b6e7
LEA RAX,[0x3153ac]
MOV EDI,dword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0x28
CALL 0x00147130
MOV qword ptr [RBP + -0x50],RAX
MOV RCX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x20],RCX
MOV EAX,dword ptr [RBP + -0x44]
OR EAX,0x1
MOV dword ptr [RBP + -0x44],EAX
LAB_0014b6e7:
LEA RAX,[0x50bfc0]
TEST byte ptr [RAX],0x1
JZ 0x0014b8ca
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX + 0x7f0]
MOV RCX,qword ptr [RBP + -0x40]
ADD RCX,0x878
ADD RCX,0x420
CMP RAX,RCX
SETNC AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x0014b749
LEA RAX,[0x50c408]
MOV RCX,qword ptr [RAX]
ADD RCX,0x1
LEA RAX,[0x50c408]
MOV qword ptr [RAX],RCX
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0014b93f
LAB_0014b749:
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX + 0x7f0]
MOV qword ptr [RBP + -0x58],RAX
MOV RCX,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x30],RCX
MOV EAX,dword ptr [RBP + -0x44]
OR EAX,0x4
MOV dword ptr [RBP + -0x44],EAX
MOV RAX,qword ptr [RBP + -0x58]
ADD RAX,-0xb0
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x58]
MOV dword ptr [RAX + 0x18],0x4
MOV RAX,qword ptr [RBP + -0x60]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RAX + 0x20],RCX
MOV RAX,qword ptr [RBP + -0x60]
MOV ECX,dword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x58]
MOV dword ptr [RAX + 0x28],ECX
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x20]
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RAX + 0x850]
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x58]
LEA RCX,[0x50ca00]
MOV qword ptr [RAX + 0x30],RCX
MOV RCX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RAX + 0x38],RCX
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RAX + 0x40],0x0
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RAX + 0x28]
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RAX + 0x88],RCX
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RAX + 0x7f8]
MOV RDX,RCX
ADD RDX,0x1
MOV qword ptr [RAX + 0x7f8],RDX
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RAX + 0x10],0x0
MOVSXD RCX,dword ptr [RBP + -0x1c]
LEA RAX,[0x315400]
MOV ECX,dword ptr [RAX + RCX*0x4]
MOV RAX,qword ptr [RBP + -0x58]
MOV dword ptr [RAX + 0x90],ECX
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RAX + 0xa8],0x0
MOV RDI,qword ptr [RBP + -0x68]
CALL 0x001527d0
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x58]
MOV dword ptr [RAX + 0x5c],ECX
MOV RCX,qword ptr [RBP + -0x68]
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RAX + 0x60],RCX
MOV RDI,qword ptr [RBP + -0x68]
CALL 0x001527f0
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x58]
MOV dword ptr [RAX + 0x80],ECX
MOV ECX,dword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x58]
MOV dword ptr [RAX + 0xa0],ECX
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RAX + 0x48],RCX
MOV ECX,dword ptr [RBP + -0x2c]
MOV RAX,qword ptr [RBP + -0x58]
MOV dword ptr [RAX + 0x50],ECX
MOV RAX,qword ptr [RBP + -0x58]
MOV dword ptr [RAX + 0x58],0x4
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RAX + 0x7f0]
ADD RCX,0xb0
MOV qword ptr [RAX + 0x7f0],RCX
LAB_0014b8ca:
JMP 0x0014b90e
LAB_0014b8cc:
MOV RAX,qword ptr [RBP + -0x38]
TEST byte ptr [RAX + 0x2],0x1
JZ 0x0014b905
LEA RAX,[0x3153ac]
MOV EDI,dword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0x28
CALL 0x00147130
MOV qword ptr [RBP + -0x50],RAX
MOV RCX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x20],RCX
MOV dword ptr [RBP + -0x44],0x1
JMP 0x0014b90c
LAB_0014b905:
MOV dword ptr [RBP + -0x44],0x0
LAB_0014b90c:
JMP 0x0014b90e
LAB_0014b90e:
MOV ECX,dword ptr [RBP + -0x44]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX],ECX
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV ECX,dword ptr [RBP + -0x1c]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x4],ECX
MOV ECX,dword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x38],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x8],RAX
LAB_0014b93f:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x70
POP RBP
RET
|
uint * pfs_start_table_io_wait_v1
(uint *param_1,byte *param_2,uint param_3,uint param_4,int8 param_5,
int4 param_6)
{
int8 *puVar1;
PFS_table_share *this;
long lVar2;
int4 uVar3;
long lVar4;
int8 uVar5;
bool bVar6;
int8 local_58;
uint local_4c;
if ((*param_2 & 1) == 0) {
return (uint *)0x0;
}
lVar4 = my_thread_get_THR_PFS();
local_58 = 0;
if ((flag_thread_instrumentation & 1) == 0) {
bVar6 = (param_2[2] & 1) != 0;
if (bVar6) {
uVar5 = get_timer_raw_value_and_function(wait_timer,param_1 + 10);
*(int8 *)(param_1 + 8) = uVar5;
}
local_4c = (uint)bVar6;
}
else {
if (lVar4 == 0) {
return (uint *)0x0;
}
if ((*(byte *)(lVar4 + 0x7e0) & 1) == 0) {
return (uint *)0x0;
}
*(long *)(param_1 + 6) = lVar4;
local_4c = 2;
if ((param_2[2] & 1) != 0) {
local_58 = get_timer_raw_value_and_function(wait_timer,param_1 + 10);
*(int8 *)(param_1 + 8) = local_58;
local_4c = 3;
}
if ((flag_events_waits_current & 1) != 0) {
if (lVar4 + 0xc98U <= *(ulong *)(lVar4 + 0x7f0)) {
locker_lost = locker_lost + 1;
return (uint *)0x0;
}
puVar1 = *(int8 **)(lVar4 + 0x7f0);
*(int8 **)(param_1 + 0xc) = puVar1;
local_4c = local_4c | 4;
*(int4 *)(puVar1 + 3) = 4;
puVar1[4] = puVar1[-0x15];
*(int4 *)(puVar1 + 5) = *(int4 *)(puVar1 + -0x13);
this = *(PFS_table_share **)(param_2 + 0x20);
*puVar1 = *(int8 *)(lVar4 + 0x850);
puVar1[6] = global_table_io_class;
puVar1[7] = local_58;
puVar1[8] = 0;
puVar1[0x11] = *(int8 *)(param_2 + 0x28);
lVar2 = *(long *)(lVar4 + 0x7f8);
*(long *)(lVar4 + 0x7f8) = lVar2 + 1;
puVar1[1] = lVar2;
puVar1[2] = 0;
*(int4 *)(puVar1 + 0x12) =
*(int4 *)(table_io_operation_map + (long)(int)param_3 * 4);
puVar1[0x15] = 0;
uVar3 = PFS_table_share::get_object_type(this);
*(int4 *)((long)puVar1 + 0x5c) = uVar3;
puVar1[0xc] = this;
uVar3 = PFS_table_share::get_version(this);
*(int4 *)(puVar1 + 0x10) = uVar3;
*(uint *)(puVar1 + 0x14) = param_4;
puVar1[9] = param_5;
*(int4 *)(puVar1 + 10) = param_6;
*(int4 *)(puVar1 + 0xb) = 4;
*(long *)(lVar4 + 0x7f0) = *(long *)(lVar4 + 0x7f0) + 0xb0;
}
}
*param_1 = local_4c;
*(byte **)(param_1 + 2) = param_2;
param_1[1] = param_3;
param_1[0xe] = param_4;
return param_1;
}
|
|
64,559 |
my_snprintf_mb2
|
eloqsql/strings/ctype-ucs2.c
|
static size_t
my_snprintf_mb2(CHARSET_INFO *cs __attribute__((unused)),
char* to, size_t n, const char* fmt, ...)
{
size_t ret;
va_list args;
va_start(args,fmt);
ret= my_vsnprintf_mb2(to, n, fmt, args);
va_end(args);
return ret;
}
|
O0
|
c
|
my_snprintf_mb2:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
testb %al, %al
je 0xee8eb
movaps %xmm0, -0xc0(%rbp)
movaps %xmm1, -0xb0(%rbp)
movaps %xmm2, -0xa0(%rbp)
movaps %xmm3, -0x90(%rbp)
movaps %xmm4, -0x80(%rbp)
movaps %xmm5, -0x70(%rbp)
movaps %xmm6, -0x60(%rbp)
movaps %xmm7, -0x50(%rbp)
movq %r9, -0xc8(%rbp)
movq %r8, -0xd0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
leaq -0xf0(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movl $0x30, -0x3c(%rbp)
movl $0x20, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
leaq -0x40(%rbp), %rcx
callq 0xf1d60
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
addq $0xf0, %rsp
popq %rbp
retq
|
my_snprintf_mb2:
push rbp
mov rbp, rsp
sub rsp, 0F0h
test al, al
jz short loc_EE8EB
movaps [rbp+var_C0], xmm0
movaps [rbp+var_B0], xmm1
movaps [rbp+var_A0], xmm2
movaps [rbp+var_90], xmm3
movaps [rbp+var_80], xmm4
movaps [rbp+var_70], xmm5
movaps [rbp+var_60], xmm6
movaps [rbp+var_50], xmm7
loc_EE8EB:
mov [rbp+var_C8], r9
mov [rbp+var_D0], r8
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
lea rax, [rbp+var_F0]
mov [rbp+var_30], rax
lea rax, [rbp+arg_0]
mov [rbp+var_38], rax
mov [rbp+var_3C], 30h ; '0'
mov [rbp+var_40], 20h ; ' '
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
lea rcx, [rbp+var_40]
call my_vsnprintf_mb2
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
add rsp, 0F0h
pop rbp
retn
|
long long my_snprintf_mb2(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14,
char a15)
{
char v16; // [rsp+0h] [rbp-F0h] BYREF
long long v17; // [rsp+20h] [rbp-D0h]
long long v18; // [rsp+28h] [rbp-C8h]
__m128 v19; // [rsp+30h] [rbp-C0h]
__m128 v20; // [rsp+40h] [rbp-B0h]
__m128 v21; // [rsp+50h] [rbp-A0h]
__m128 v22; // [rsp+60h] [rbp-90h]
__m128 v23; // [rsp+70h] [rbp-80h]
__m128 v24; // [rsp+80h] [rbp-70h]
__m128 v25; // [rsp+90h] [rbp-60h]
__m128 v26; // [rsp+A0h] [rbp-50h]
_DWORD v27[2]; // [rsp+B0h] [rbp-40h] BYREF
char *v28; // [rsp+B8h] [rbp-38h]
char *v29; // [rsp+C0h] [rbp-30h]
long long v30; // [rsp+D0h] [rbp-20h]
long long v31; // [rsp+D8h] [rbp-18h]
long long v32; // [rsp+E0h] [rbp-10h]
long long v33; // [rsp+E8h] [rbp-8h]
v19 = a7;
v20 = a8;
v21 = a9;
v22 = a10;
v23 = a11;
v24 = a12;
v25 = a13;
v26 = a14;
v18 = a6;
v17 = a5;
v33 = a1;
v32 = a2;
v31 = a3;
v30 = a4;
v29 = &v16;
v28 = &a15;
v27[1] = 48;
v27[0] = 32;
return my_vsnprintf_mb2(a2, a3, a4, v27);
}
|
my_snprintf_mb2:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xf0
TEST AL,AL
JZ 0x001ee8eb
MOVAPS xmmword ptr [RBP + -0xc0],XMM0
MOVAPS xmmword ptr [RBP + -0xb0],XMM1
MOVAPS xmmword ptr [RBP + -0xa0],XMM2
MOVAPS xmmword ptr [RBP + -0x90],XMM3
MOVAPS xmmword ptr [RBP + -0x80],XMM4
MOVAPS xmmword ptr [RBP + -0x70],XMM5
MOVAPS xmmword ptr [RBP + -0x60],XMM6
MOVAPS xmmword ptr [RBP + -0x50],XMM7
LAB_001ee8eb:
MOV qword ptr [RBP + -0xc8],R9
MOV qword ptr [RBP + -0xd0],R8
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
LEA RAX,[RBP + -0xf0]
MOV qword ptr [RBP + -0x30],RAX
LEA RAX,[RBP + 0x10]
MOV qword ptr [RBP + -0x38],RAX
MOV dword ptr [RBP + -0x3c],0x30
MOV dword ptr [RBP + -0x40],0x20
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
LEA RCX,[RBP + -0x40]
CALL 0x001f1d60
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RSP,0xf0
POP RBP
RET
|
int8
my_snprintf_mb2(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,
int8 param_9,int8 param_10,int8 param_11,int8 param_12,
int8 param_13,int8 param_14)
{
char in_AL;
int8 uVar1;
int1 local_f8 [32];
int8 local_d8;
int8 local_d0;
int8 local_c8;
int8 local_b8;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
int8 local_68;
int8 local_58;
int4 local_48;
int4 local_44;
int1 *local_40;
int1 *local_38;
int8 local_28;
int8 local_20;
int8 local_18;
int8 local_10;
if (in_AL != '\0') {
local_c8 = param_1;
local_b8 = param_2;
local_a8 = param_3;
local_98 = param_4;
local_88 = param_5;
local_78 = param_6;
local_68 = param_7;
local_58 = param_8;
}
local_38 = local_f8;
local_40 = &stack0x00000008;
local_44 = 0x30;
local_48 = 0x20;
local_d8 = param_13;
local_d0 = param_14;
local_28 = param_12;
local_20 = param_11;
local_18 = param_10;
local_10 = param_9;
uVar1 = my_vsnprintf_mb2(param_10,param_11,param_12,&local_48);
return uVar1;
}
|
|
64,560 |
httplib::detail::status_message(int)
|
nickolajgrishuk[P]metricz-cpp/build_O1/_deps/httplib-src/httplib.h
|
inline const char *status_message(int status) {
switch (status) {
case 100: return "Continue";
case 101: return "Switching Protocol";
case 102: return "Processing";
case 103: return "Early Hints";
case 200: return "OK";
case 201: return "Created";
case 202: return "Accepted";
case 203: return "Non-Authoritative Information";
case 204: return "No Content";
case 205: return "Reset Content";
case 206: return "Partial Content";
case 207: return "Multi-Status";
case 208: return "Already Reported";
case 226: return "IM Used";
case 300: return "Multiple Choice";
case 301: return "Moved Permanently";
case 302: return "Found";
case 303: return "See Other";
case 304: return "Not Modified";
case 305: return "Use Proxy";
case 306: return "unused";
case 307: return "Temporary Redirect";
case 308: return "Permanent Redirect";
case 400: return "Bad Request";
case 401: return "Unauthorized";
case 402: return "Payment Required";
case 403: return "Forbidden";
case 404: return "Not Found";
case 405: return "Method Not Allowed";
case 406: return "Not Acceptable";
case 407: return "Proxy Authentication Required";
case 408: return "Request Timeout";
case 409: return "Conflict";
case 410: return "Gone";
case 411: return "Length Required";
case 412: return "Precondition Failed";
case 413: return "Payload Too Large";
case 414: return "URI Too Long";
case 415: return "Unsupported Media Type";
case 416: return "Range Not Satisfiable";
case 417: return "Expectation Failed";
case 418: return "I'm a teapot";
case 421: return "Misdirected Request";
case 422: return "Unprocessable Entity";
case 423: return "Locked";
case 424: return "Failed Dependency";
case 425: return "Too Early";
case 426: return "Upgrade Required";
case 428: return "Precondition Required";
case 429: return "Too Many Requests";
case 431: return "Request Header Fields Too Large";
case 451: return "Unavailable For Legal Reasons";
case 501: return "Not Implemented";
case 502: return "Bad Gateway";
case 503: return "Service Unavailable";
case 504: return "Gateway Timeout";
case 505: return "HTTP Version Not Supported";
case 506: return "Variant Also Negotiates";
case 507: return "Insufficient Storage";
case 508: return "Loop Detected";
case 510: return "Not Extended";
case 511: return "Network Authentication Required";
default:
case 500: return "Internal Server Error";
}
}
|
O1
|
c
|
httplib::detail::status_message(int):
cmpl $0x18f, %edi # imm = 0x18F
jle 0x19fb5
leal -0x190(%rdi), %eax
cmpl $0x33, %eax
ja 0x19fe0
leaq 0x1316c(%rip), %rcx # 0x2d110
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x1462b(%rip), %rax # 0x2e5df
retq
cmpl $0xe1, %edi
jg 0x1a007
leal -0xc8(%rdi), %eax
cmpl $0x8, %eax
ja 0x1a02a
leaq 0x130f9(%rip), %rcx # 0x2d0c8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x1450f(%rip), %rax # 0x2e4ee
retq
addl $0xfffffe0b, %edi # imm = 0xFFFFFE0B
cmpl $0xa, %edi
ja 0x1a222
leaq 0x131ea(%rip), %rax # 0x2d1e0
movslq (%rax,%rdi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x147c8(%rip), %rax # 0x2e7ce
retq
leal -0x12c(%rdi), %eax
cmpl $0x8, %eax
ja 0x1a04e
leaq 0x130d3(%rip), %rcx # 0x2d0ec
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x14546(%rip), %rax # 0x2e56f
retq
addl $-0x64, %edi
cmpl $0x3, %edi
ja 0x1a222
leaq 0x1307b(%rip), %rax # 0x2d0b8
movslq (%rax,%rdi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x1446e(%rip), %rax # 0x2e4bb
retq
cmpl $0xe2, %edi
jne 0x1a222
leaq 0x14506(%rip), %rax # 0x2e567
retq
leaq 0x14682(%rip), %rax # 0x2e6eb
retq
leaq 0x14640(%rip), %rax # 0x2e6b1
retq
leaq 0x146bb(%rip), %rax # 0x2e734
retq
leaq 0x1460a(%rip), %rax # 0x2e68b
retq
leaq 0x14635(%rip), %rax # 0x2e6be
retq
leaq 0x145dc(%rip), %rax # 0x2e66d
retq
leaq 0x145e2(%rip), %rax # 0x2e67b
retq
leaq 0x1458f(%rip), %rax # 0x2e630
retq
leaq 0x1454f(%rip), %rax # 0x2e5f8
retq
leaq 0x14562(%rip), %rax # 0x2e613
retq
leaq 0x14532(%rip), %rax # 0x2e5eb
retq
leaq 0x145de(%rip), %rax # 0x2e69f
retq
leaq 0x14540(%rip), %rax # 0x2e609
retq
leaq 0x14697(%rip), %rax # 0x2e768
retq
leaq 0x1467e(%rip), %rax # 0x2e757
retq
leaq 0x1453c(%rip), %rax # 0x2e61d
retq
leaq 0x14556(%rip), %rax # 0x2e63f
retq
leaq 0x1460d(%rip), %rax # 0x2e6fe
retq
leaq 0x14642(%rip), %rax # 0x2e73b
retq
leaq 0x1460a(%rip), %rax # 0x2e70b
retq
leaq 0x14675(%rip), %rax # 0x2e77e
retq
leaq 0x1454c(%rip), %rax # 0x2e65d
retq
leaq 0x1455d(%rip), %rax # 0x2e676
retq
leaq 0x145b4(%rip), %rax # 0x2e6d5
retq
leaq 0x145f6(%rip), %rax # 0x2e71f
retq
leaq 0x1461c(%rip), %rax # 0x2e74d
retq
leaq 0x14657(%rip), %rax # 0x2e790
retq
leaq 0x1466f(%rip), %rax # 0x2e7b0
retq
leaq 0x143d7(%rip), %rax # 0x2e520
retq
leaq 0x143a8(%rip), %rax # 0x2e4f9
retq
leaq 0x14442(%rip), %rax # 0x2e59b
retq
leaq 0x143a1(%rip), %rax # 0x2e502
retq
leaq 0x143e0(%rip), %rax # 0x2e549
retq
leaq 0x14380(%rip), %rax # 0x2e4f1
retq
leaq 0x1435e(%rip), %rax # 0x2e4d7
retq
leaq 0x14496(%rip), %rax # 0x2e617
retq
leaq 0x14359(%rip), %rax # 0x2e4e2
retq
leaq 0x1439a(%rip), %rax # 0x2e52b
retq
leaq 0x1432b(%rip), %rax # 0x2e4c4
retq
leaq 0x143f0(%rip), %rax # 0x2e591
retq
leaq 0x14390(%rip), %rax # 0x2e539
retq
leaq 0x14408(%rip), %rax # 0x2e5b9
retq
leaq 0x1439d(%rip), %rax # 0x2e556
retq
leaq 0x143be(%rip), %rax # 0x2e57f
retq
leaq 0x143df(%rip), %rax # 0x2e5a8
retq
leaq 0x143e1(%rip), %rax # 0x2e5b2
retq
leaq 0x143f3(%rip), %rax # 0x2e5cc
retq
leaq 0x14660(%rip), %rax # 0x2e841
retq
leaq 0x1466d(%rip), %rax # 0x2e856
retq
leaq 0x145f9(%rip), %rax # 0x2e7ea
retq
leaq 0x1466b(%rip), %rax # 0x2e864
retq
leaq 0x14628(%rip), %rax # 0x2e829
retq
leaq 0x145d5(%rip), %rax # 0x2e7de
retq
leaq 0x145ed(%rip), %rax # 0x2e7fe
retq
leaq 0x145f5(%rip), %rax # 0x2e80e
retq
leaq 0x14650(%rip), %rax # 0x2e871
retq
leaq 0x14668(%rip), %rax # 0x2e891
retq
|
_ZN7httplib6detail14status_messageEi:
cmp edi, 18Fh
jle short loc_19FB5
lea eax, [rdi-190h]; switch 52 cases
cmp eax, 33h
ja short def_19FAB; jumptable 0000000000019FAB default case
lea rcx, jpt_19FAB
movsxd rax, ds:(jpt_19FAB - 2D110h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_19FAD:
lea rax, aBadRequest; jumptable 0000000000019FAB case 400
retn
loc_19FB5:
cmp edi, 0E1h
jg short loc_1A007
lea eax, [rdi-0C8h]; switch 9 cases
cmp eax, 8
ja short def_19FD6; jumptable 0000000000019FD6 default case
lea rcx, jpt_19FD6
movsxd rax, ds:(jpt_19FD6 - 2D0C8h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_19FD8:
lea rax, aOk; jumptable 0000000000019FD6 case 200
retn
def_19FAB:
add edi, 0FFFFFE0Bh; jumptable 0000000000019FAB default case
cmp edi, 0Ah
ja def_19FFD; jumptable 0000000000019FAB cases 419,420,427,430,432-450
lea rax, jpt_19FFD
movsxd rcx, ds:(jpt_19FFD - 2D1E0h)[rax+rdi*4]
add rcx, rax
jmp rcx; switch jump
loc_19FFF:
lea rax, aNotImplemented; jumptable 0000000000019FFD case 501
retn
loc_1A007:
lea eax, [rdi-12Ch]; switch 9 cases
cmp eax, 8
ja short def_1A020; jumptable 000000000001A020 default case
lea rcx, jpt_1A020
movsxd rax, ds:(jpt_1A020 - 2D0ECh)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_1A022:
lea rax, aMultipleChoice; jumptable 000000000001A020 case 300
retn
def_19FD6:
add edi, 0FFFFFF9Ch; jumptable 0000000000019FD6 default case
cmp edi, 3
ja def_19FFD; jumptable 0000000000019FAB cases 419,420,427,430,432-450
lea rax, jpt_1A044
movsxd rcx, ds:(jpt_1A044 - 2D0B8h)[rax+rdi*4]
add rcx, rax
jmp rcx; switch jump
loc_1A046:
lea rax, aContinue; jumptable 000000000001A044 case 100
retn
def_1A020:
cmp edi, 0E2h; jumptable 000000000001A020 default case
jnz def_19FFD; jumptable 0000000000019FAB cases 419,420,427,430,432-450
lea rax, aImUsed; "IM Used"
retn
loc_1A062:
lea rax, aExpectationFai; jumptable 0000000000019FAB case 417
retn
loc_1A06A:
lea rax, aUriTooLong; jumptable 0000000000019FAB case 414
retn
loc_1A072:
lea rax, aLocked; jumptable 0000000000019FAB case 423
retn
loc_1A07A:
lea rax, aPreconditionFa; jumptable 0000000000019FAB case 412
retn
loc_1A082:
lea rax, aUnsupportedMed; jumptable 0000000000019FAB case 415
retn
loc_1A08A:
lea rax, aConflict; jumptable 0000000000019FAB case 409
retn
loc_1A092:
lea rax, aLengthRequired; jumptable 0000000000019FAB case 411
retn
loc_1A09A:
lea rax, aNotAcceptable; jumptable 0000000000019FAB case 406
retn
loc_1A0A2:
lea rax, aPaymentRequire; jumptable 0000000000019FAB case 402
retn
loc_1A0AA:
lea rax, aNotFound; jumptable 0000000000019FAB case 404
retn
loc_1A0B2:
lea rax, aUnauthorized; jumptable 0000000000019FAB case 401
retn
loc_1A0BA:
lea rax, aPayloadTooLarg; jumptable 0000000000019FAB case 413
retn
loc_1A0C2:
lea rax, aForbidden; jumptable 0000000000019FAB case 403
retn
loc_1A0CA:
lea rax, aPreconditionRe; jumptable 0000000000019FAB case 428
retn
loc_1A0D2:
lea rax, aUpgradeRequire; jumptable 0000000000019FAB case 426
retn
loc_1A0DA:
lea rax, aMethodNotAllow; jumptable 0000000000019FAB case 405
retn
loc_1A0E2:
lea rax, aProxyAuthentic; jumptable 0000000000019FAB case 407
retn
loc_1A0EA:
lea rax, aIMATeapot; jumptable 0000000000019FAB case 418
retn
loc_1A0F2:
lea rax, aFailedDependen; jumptable 0000000000019FAB case 424
retn
loc_1A0FA:
lea rax, aMisdirectedReq; jumptable 0000000000019FAB case 421
retn
loc_1A102:
lea rax, aTooManyRequest; jumptable 0000000000019FAB case 429
retn
loc_1A10A:
lea rax, aRequestTimeout; jumptable 0000000000019FAB case 408
retn
loc_1A112:
lea rax, aGone; jumptable 0000000000019FAB case 410
retn
loc_1A11A:
lea rax, aRangeNotSatisf; jumptable 0000000000019FAB case 416
retn
loc_1A122:
lea rax, aUnprocessableE; jumptable 0000000000019FAB case 422
retn
loc_1A12A:
lea rax, aTooEarly; jumptable 0000000000019FAB case 425
retn
loc_1A132:
lea rax, aRequestHeaderF; jumptable 0000000000019FAB case 431
retn
loc_1A13A:
lea rax, aUnavailableFor; jumptable 0000000000019FAB case 451
retn
loc_1A142:
lea rax, aNoContent; jumptable 0000000000019FD6 case 204
retn
loc_1A14A:
lea rax, aAccepted; jumptable 0000000000019FD6 case 202
retn
loc_1A152:
lea rax, aNotModified; jumptable 000000000001A020 case 304
retn
loc_1A15A:
lea rax, aNonAuthoritati; jumptable 0000000000019FD6 case 203
retn
loc_1A162:
lea rax, aMultiStatus; jumptable 0000000000019FD6 case 207
retn
loc_1A16A:
lea rax, aCreated; jumptable 0000000000019FD6 case 201
retn
loc_1A172:
lea rax, aProcessing; jumptable 000000000001A044 case 102
retn
loc_1A17A:
lea rax, aNotFound+4; jumptable 000000000001A020 case 302
retn
loc_1A182:
lea rax, aEarlyHints; jumptable 000000000001A044 case 103
retn
loc_1A18A:
lea rax, aResetContent; jumptable 0000000000019FD6 case 205
retn
loc_1A192:
lea rax, aSwitchingProto; jumptable 000000000001A044 case 101
retn
loc_1A19A:
lea rax, aSeeOther; jumptable 000000000001A020 case 303
retn
loc_1A1A2:
lea rax, aPartialContent; jumptable 0000000000019FD6 case 206
retn
loc_1A1AA:
lea rax, aTemporaryRedir; jumptable 000000000001A020 case 307
retn
loc_1A1B2:
lea rax, aAlreadyReporte; jumptable 0000000000019FD6 case 208
retn
loc_1A1BA:
lea rax, aMovedPermanent; jumptable 000000000001A020 case 301
retn
loc_1A1C2:
lea rax, aUseProxy; jumptable 000000000001A020 case 305
retn
loc_1A1CA:
lea rax, aUnused; jumptable 000000000001A020 case 306
retn
loc_1A1D2:
lea rax, aPermanentRedir; jumptable 000000000001A020 case 308
retn
loc_1A1DA:
lea rax, aInsufficientSt; jumptable 0000000000019FFD case 507
retn
loc_1A1E2:
lea rax, aLoopDetected; jumptable 0000000000019FFD case 508
retn
loc_1A1EA:
lea rax, aServiceUnavail; jumptable 0000000000019FFD case 503
retn
loc_1A1F2:
lea rax, aNotExtended; jumptable 0000000000019FFD case 510
retn
loc_1A1FA:
lea rax, aVariantAlsoNeg; jumptable 0000000000019FFD case 506
retn
loc_1A202:
lea rax, aBadGateway; jumptable 0000000000019FFD case 502
retn
loc_1A20A:
lea rax, aGatewayTimeout; jumptable 0000000000019FFD case 504
retn
loc_1A212:
lea rax, aHttpVersionNot; jumptable 0000000000019FFD case 505
retn
loc_1A21A:
lea rax, aNetworkAuthent; jumptable 0000000000019FFD case 511
retn
def_19FFD:
lea rax, aInternalServer; jumptable 0000000000019FAB cases 419,420,427,430,432-450
retn
|
char * httplib::detail::status_message(httplib::detail *this)
{
char *result; // rax
if ( (int)this <= 399 )
{
if ( (int)this > 225 )
{
switch ( (int)this )
{
case 300:
result = "Multiple Choice";
break;
case 301:
result = "Moved Permanently";
break;
case 302:
result = "Found";
break;
case 303:
result = "See Other";
break;
case 304:
result = "Not Modified";
break;
case 305:
result = "Use Proxy";
break;
case 306:
result = "unused";
break;
case 307:
result = "Temporary Redirect";
break;
case 308:
result = "Permanent Redirect";
break;
default:
if ( (_DWORD)this == 226 )
result = "IM Used";
else
LABEL_71:
result = "Internal Server Error";
break;
}
}
else
{
switch ( (int)this )
{
case 200:
result = "OK";
break;
case 201:
result = "Created";
break;
case 202:
result = "Accepted";
break;
case 203:
result = "Non-Authoritative Information";
break;
case 204:
result = "No Content";
break;
case 205:
result = "Reset Content";
break;
case 206:
result = "Partial Content";
break;
case 207:
result = "Multi-Status";
break;
case 208:
result = "Already Reported";
break;
default:
switch ( (int)this )
{
case 'd':
result = "Continue";
break;
case 'e':
result = "Switching Protocol";
break;
case 'f':
result = "Processing";
break;
case 'g':
result = "Early Hints";
break;
default:
goto LABEL_71;
}
break;
}
}
}
else
{
switch ( (int)this )
{
case 400:
result = "Bad Request";
break;
case 401:
result = "Unauthorized";
break;
case 402:
result = "Payment Required";
break;
case 403:
result = "Forbidden";
break;
case 404:
result = "Not Found";
break;
case 405:
result = "Method Not Allowed";
break;
case 406:
result = "Not Acceptable";
break;
case 407:
result = "Proxy Authentication Required";
break;
case 408:
result = "Request Timeout";
break;
case 409:
result = "Conflict";
break;
case 410:
result = "Gone";
break;
case 411:
result = "Length Required";
break;
case 412:
result = "Precondition Failed";
break;
case 413:
result = "Payload Too Large";
break;
case 414:
result = "URI Too Long";
break;
case 415:
result = "Unsupported Media Type";
break;
case 416:
result = "Range Not Satisfiable";
break;
case 417:
result = "Expectation Failed";
break;
case 418:
result = "I'm a teapot";
break;
case 419:
case 420:
case 427:
case 430:
case 432:
case 433:
case 434:
case 435:
case 436:
case 437:
case 438:
case 439:
case 440:
case 441:
case 442:
case 443:
case 444:
case 445:
case 446:
case 447:
case 448:
case 449:
case 450:
goto LABEL_71;
case 421:
result = "Misdirected Request";
break;
case 422:
result = "Unprocessable Entity";
break;
case 423:
result = "Locked";
break;
case 424:
result = "Failed Dependency";
break;
case 425:
result = "Too Early";
break;
case 426:
result = "Upgrade Required";
break;
case 428:
result = "Precondition Required";
break;
case 429:
result = "Too Many Requests";
break;
case 431:
result = "Request Header Fields Too Large";
break;
case 451:
result = "Unavailable For Legal Reasons";
break;
default:
switch ( (int)this )
{
case 501:
result = "Not Implemented";
break;
case 502:
result = "Bad Gateway";
break;
case 503:
result = "Service Unavailable";
break;
case 504:
result = "Gateway Timeout";
break;
case 505:
result = "HTTP Version Not Supported";
break;
case 506:
result = "Variant Also Negotiates";
break;
case 507:
result = "Insufficient Storage";
break;
case 508:
result = "Loop Detected";
break;
case 510:
result = "Not Extended";
break;
case 511:
result = "Network Authentication Required";
break;
default:
goto LABEL_71;
}
break;
}
}
return result;
}
|
status_message:
CMP EDI,0x18f
JLE 0x00119fb5
LEA EAX,[RDI + -0x190]
CMP EAX,0x33
JA 0x00119fe0
LEA RCX,[0x12d110]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_190:
LEA RAX,[0x12e5df]
RET
LAB_00119fb5:
CMP EDI,0xe1
JG 0x0011a007
LEA EAX,[RDI + -0xc8]
CMP EAX,0x8
JA 0x0011a02a
LEA RCX,[0x12d0c8]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_c8:
LEA RAX,[0x12e4ee]
RET
default:
ADD EDI,0xfffffe0b
CMP EDI,0xa
JA 0x0011a222
LEA RAX,[0x12d1e0]
MOVSXD RCX,dword ptr [RAX + RDI*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_1f5:
LEA RAX,[0x12e7ce]
RET
LAB_0011a007:
LEA EAX,[RDI + -0x12c]
CMP EAX,0x8
JA 0x0011a04e
LEA RCX,[0x12d0ec]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_12c:
LEA RAX,[0x12e56f]
RET
default:
ADD EDI,-0x64
CMP EDI,0x3
JA 0x0011a222
LEA RAX,[0x12d0b8]
MOVSXD RCX,dword ptr [RAX + RDI*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_64:
LEA RAX,[0x12e4bb]
RET
default:
CMP EDI,0xe2
JNZ 0x0011a222
LEA RAX,[0x12e567]
RET
caseD_1a1:
LEA RAX,[0x12e6eb]
RET
caseD_19e:
LEA RAX,[0x12e6b1]
RET
caseD_1a7:
LEA RAX,[0x12e734]
RET
caseD_19c:
LEA RAX,[0x12e68b]
RET
caseD_19f:
LEA RAX,[0x12e6be]
RET
caseD_199:
LEA RAX,[0x12e66d]
RET
caseD_19b:
LEA RAX,[0x12e67b]
RET
caseD_196:
LEA RAX,[0x12e630]
RET
caseD_192:
LEA RAX,[0x12e5f8]
RET
caseD_194:
LEA RAX,[0x12e613]
RET
caseD_191:
LEA RAX,[0x12e5eb]
RET
caseD_19d:
LEA RAX,[0x12e69f]
RET
caseD_193:
LEA RAX,[0x12e609]
RET
caseD_1ac:
LEA RAX,[0x12e768]
RET
caseD_1aa:
LEA RAX,[0x12e757]
RET
caseD_195:
LEA RAX,[0x12e61d]
RET
caseD_197:
LEA RAX,[0x12e63f]
RET
caseD_1a2:
LEA RAX,[0x12e6fe]
RET
caseD_1a8:
LEA RAX,[0x12e73b]
RET
caseD_1a5:
LEA RAX,[0x12e70b]
RET
caseD_1ad:
LEA RAX,[0x12e77e]
RET
caseD_198:
LEA RAX,[0x12e65d]
RET
caseD_19a:
LEA RAX,[0x12e676]
RET
caseD_1a0:
LEA RAX,[0x12e6d5]
RET
caseD_1a6:
LEA RAX,[0x12e71f]
RET
caseD_1a9:
LEA RAX,[0x12e74d]
RET
caseD_1af:
LEA RAX,[0x12e790]
RET
caseD_1c3:
LEA RAX,[0x12e7b0]
RET
caseD_cc:
LEA RAX,[0x12e520]
RET
caseD_ca:
LEA RAX,[0x12e4f9]
RET
caseD_130:
LEA RAX,[0x12e59b]
RET
caseD_cb:
LEA RAX,[0x12e502]
RET
caseD_cf:
LEA RAX,[0x12e549]
RET
caseD_c9:
LEA RAX,[0x12e4f1]
RET
caseD_66:
LEA RAX,[0x12e4d7]
RET
caseD_12e:
LEA RAX,[0x12e617]
RET
caseD_67:
LEA RAX,[0x12e4e2]
RET
caseD_cd:
LEA RAX,[0x12e52b]
RET
caseD_65:
LEA RAX,[0x12e4c4]
RET
caseD_12f:
LEA RAX,[0x12e591]
RET
caseD_ce:
LEA RAX,[0x12e539]
RET
caseD_133:
LEA RAX,[0x12e5b9]
RET
caseD_d0:
LEA RAX,[0x12e556]
RET
caseD_12d:
LEA RAX,[0x12e57f]
RET
caseD_131:
LEA RAX,[0x12e5a8]
RET
caseD_132:
LEA RAX,[0x12e5b2]
RET
caseD_134:
LEA RAX,[0x12e5cc]
RET
caseD_1fb:
LEA RAX,[0x12e841]
RET
caseD_1fc:
LEA RAX,[0x12e856]
RET
caseD_1f7:
LEA RAX,[0x12e7ea]
RET
caseD_1fe:
LEA RAX,[0x12e864]
RET
caseD_1fa:
LEA RAX,[0x12e829]
RET
caseD_1f6:
LEA RAX,[0x12e7de]
RET
caseD_1f8:
LEA RAX,[0x12e7fe]
RET
caseD_1f9:
LEA RAX,[0x12e80e]
RET
caseD_1ff:
LEA RAX,[0x12e871]
RET
caseD_1a3:
LEA RAX,[0x12e891]
RET
|
/* httplib::detail::status_message(int) */
char * httplib::detail::status_message(int param_1)
{
if (param_1 < 400) {
if (param_1 < 0xe2) {
switch(param_1) {
case 200:
return "OK";
case 0xc9:
return "Created";
case 0xca:
return "Accepted";
case 0xcb:
return "Non-Authoritative Information";
case 0xcc:
return "No Content";
case 0xcd:
return "Reset Content";
case 0xce:
return "Partial Content";
case 0xcf:
return "Multi-Status";
case 0xd0:
return "Already Reported";
}
switch(param_1) {
case 100:
return "Continue";
case 0x65:
return "Switching Protocol";
case 0x66:
return "Processing";
case 0x67:
return "Early Hints";
}
}
else {
switch(param_1) {
case 300:
return "Multiple Choice";
case 0x12d:
return "Moved Permanently";
case 0x12e:
return "Found";
case 0x12f:
return "See Other";
case 0x130:
return "Not Modified";
case 0x131:
return "Use Proxy";
case 0x132:
return "unused";
case 0x133:
return "Temporary Redirect";
case 0x134:
return "Permanent Redirect";
}
if (param_1 == 0xe2) {
return "IM Used";
}
}
}
else {
switch(param_1) {
case 400:
return "Bad Request";
case 0x191:
return "Unauthorized";
case 0x192:
return "Payment Required";
case 0x193:
return "Forbidden";
case 0x194:
return "Not Found";
case 0x195:
return "Method Not Allowed";
case 0x196:
return "Not Acceptable";
case 0x197:
return "Proxy Authentication Required";
case 0x198:
return "Request Timeout";
case 0x199:
return "Conflict";
case 0x19a:
return "Gone";
case 0x19b:
return "Length Required";
case 0x19c:
return "Precondition Failed";
case 0x19d:
return "Payload Too Large";
case 0x19e:
return "URI Too Long";
case 0x19f:
return "Unsupported Media Type";
case 0x1a0:
return "Range Not Satisfiable";
case 0x1a1:
return "Expectation Failed";
case 0x1a2:
return "I\'m a teapot";
case 0x1a3:
case 0x1a4:
case 0x1ab:
case 0x1ae:
case 0x1b0:
case 0x1b1:
case 0x1b2:
case 0x1b3:
case 0x1b4:
case 0x1b5:
case 0x1b6:
case 0x1b7:
case 0x1b8:
case 0x1b9:
case 0x1ba:
case 0x1bb:
case 0x1bc:
case 0x1bd:
case 0x1be:
case 0x1bf:
case 0x1c0:
case 0x1c1:
case 0x1c2:
break;
case 0x1a5:
return "Misdirected Request";
case 0x1a6:
return "Unprocessable Entity";
case 0x1a7:
return "Locked";
case 0x1a8:
return "Failed Dependency";
case 0x1a9:
return "Too Early";
case 0x1aa:
return "Upgrade Required";
case 0x1ac:
return "Precondition Required";
case 0x1ad:
return "Too Many Requests";
case 0x1af:
return "Request Header Fields Too Large";
case 0x1c3:
return "Unavailable For Legal Reasons";
default:
switch(param_1) {
case 0x1f5:
return "Not Implemented";
case 0x1f6:
return "Bad Gateway";
case 0x1f7:
return "Service Unavailable";
case 0x1f8:
return "Gateway Timeout";
case 0x1f9:
return "HTTP Version Not Supported";
case 0x1fa:
return "Variant Also Negotiates";
case 0x1fb:
return "Insufficient Storage";
case 0x1fc:
return "Loop Detected";
case 0x1fe:
return "Not Extended";
case 0x1ff:
return "Network Authentication Required";
}
}
}
return "Internal Server Error";
}
|
|
64,561 |
POINTonE2_sign
|
corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/e2.c
|
static void POINTonE2_sign(POINTonE2 *out, const POINTonE2 *in, const pow256 SK)
{
vec384x Z, ZZ;
limb_t inf;
POINTonE2_mult_gls(out, in, SK);
/* convert to affine to remove possible bias in out->Z */
inf = vec_is_zero(out->Z, sizeof(out->Z));
#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
flt_reciprocal_fp2(Z, out->Z); /* 1/Z */
#else
reciprocal_fp2(Z, out->Z); /* 1/Z */
#endif
sqr_fp2(ZZ, Z);
mul_fp2(out->X, out->X, ZZ); /* X = X/Z^2 */
mul_fp2(ZZ, ZZ, Z);
mul_fp2(out->Y, out->Y, ZZ); /* Y = Y/Z^3 */
vec_select(out->Z, out->Z, BLS12_381_G2.Z, sizeof(BLS12_381_G2.Z),
inf); /* Z = inf ? 0 : 1 */
}
|
O3
|
c
|
POINTonE2_sign:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp # imm = 0x108
movq %rdi, %r15
callq 0x1dc95
movl $0xc0, %eax
leaq (%r15,%rax), %r14
movl $0x60, %esi
movq %r14, %rdi
callq 0x2ff40
movq %rax, -0x40(%rbp)
leaq 0x22487(%rip), %r12 # 0x3fb10
leaq -0x100(%rbp), %rbx
movabsq $-0x760c000300030003, %rcx # imm = 0x89F3FFFCFFFCFFFD
movq %rbx, %rdi
movq %r14, %rsi
movq %r14, -0x38(%rbp)
movq %r12, %rdx
callq 0x33d20
leaq 0xf0(%r15), %rsi
movq %rsi, -0x30(%rbp)
leaq -0x130(%rbp), %r13
movq %r13, %rdi
movq %r12, %rdx
movabsq $-0x760c000300030003, %rcx # imm = 0x89F3FFFCFFFCFFFD
callq 0x33d20
movq %rbx, %rdi
movq %rbx, %rsi
movq %r13, %rdx
movq %r12, %rcx
callq 0x2ec40
leaq 0x22765(%rip), %rdx # 0x3fe50
movl $0x17d, %ecx # imm = 0x17D
movq %r13, %rdi
movq %rbx, %rsi
callq 0x25e87
leaq -0xa0(%rbp), %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r12, %rcx
movabsq $-0x760c000300030003, %r14 # imm = 0x89F3FFFCFFFCFFFD
movq %r14, %r8
callq 0x344a0
leaq -0x70(%rbp), %rbx
movq %rbx, %rdi
movq -0x30(%rbp), %rsi
movq %r13, %rdx
movq %r12, %rcx
movq %r14, %r8
callq 0x344a0
movl $0x1, %edx
movq %rbx, %rdi
movq %rbx, %rsi
movq %r12, %rcx
callq 0x2f2c0
leaq -0x100(%rbp), %rbx
movq %rbx, %rdi
leaq -0xa0(%rbp), %r13
movq %r13, %rsi
movq %r12, %rdx
movq %r14, %rcx
callq 0x332e0
movq %r15, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movq %r12, %rcx
movq %r14, %r8
callq 0x331a0
movq %rbx, %rdi
movq %rbx, %rsi
movq %r13, %rdx
movq %r12, %rcx
movq %r14, %r8
callq 0x331a0
addq $0x60, %r15
movq %r15, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movq %r12, %rcx
movq %r14, %r8
callq 0x331a0
movq -0x40(%rbp), %rcx
leaq 0x2211d(%rip), %rdx # 0x3f8d0
movl $0xc0, %eax
addq %rax, %rdx
movq -0x38(%rbp), %rdi
movq %rdi, %rsi
callq 0x2f920
addq $0x108, %rsp # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
POINTonE2_sign:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 108h
mov r15, rdi
call POINTonE2_mult_gls
mov eax, 0C0h
lea r14, [r15+rax]
mov esi, 60h ; '`'
mov rdi, r14
call vec_is_zero_16x
mov [rbp+var_40], rax
lea r12, BLS12_381_P
lea rbx, [rbp+var_100]
mov rcx, 89F3FFFCFFFCFFFDh
mov rdi, rbx
mov rsi, r14
mov [rbp+var_38], r14
mov rdx, r12
call sqr_mont_384
lea rsi, [r15+0F0h]
mov [rbp+var_30], rsi
lea r13, [rbp+var_130]
mov rdi, r13
mov rdx, r12
mov rcx, 89F3FFFCFFFCFFFDh
call sqr_mont_384
mov rdi, rbx
mov rsi, rbx
mov rdx, r13
mov rcx, r12
call add_mod_384
lea rdx, _flt_reciprocal_fp_BLS12_381_P_minus_2
mov ecx, 17Dh
mov rdi, r13
mov rsi, rbx
call exp_mont_384
lea rdi, [rbp+var_A0]
mov rsi, r14
mov rdx, r13
mov rcx, r12
mov r14, 89F3FFFCFFFCFFFDh
mov r8, r14
call mul_mont_384
lea rbx, [rbp+var_70]
mov rdi, rbx
mov rsi, [rbp+var_30]
mov rdx, r13
mov rcx, r12
mov r8, r14
call mul_mont_384
mov edx, 1
mov rdi, rbx
mov rsi, rbx
mov rcx, r12
call cneg_mod_384
lea rbx, [rbp+var_100]
mov rdi, rbx
lea r13, [rbp+var_A0]
mov rsi, r13
mov rdx, r12
mov rcx, r14
call sqr_mont_384x
mov rdi, r15
mov rsi, r15
mov rdx, rbx
mov rcx, r12
mov r8, r14
call mul_mont_384x
mov rdi, rbx
mov rsi, rbx
mov rdx, r13
mov rcx, r12
mov r8, r14
call mul_mont_384x
add r15, 60h ; '`'
mov rdi, r15
mov rsi, r15
mov rdx, rbx
mov rcx, r12
mov r8, r14
call mul_mont_384x
mov rcx, [rbp+var_40]
lea rdx, BLS12_381_G2
mov eax, 0C0h
add rdx, rax
mov rdi, [rbp+var_38]
mov rsi, rdi
call vec_select_96
add rsp, 108h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long POINTonE2_sign(long long a1)
{
_BYTE v3[48]; // [rsp+0h] [rbp-130h] BYREF
_BYTE v4[96]; // [rsp+30h] [rbp-100h] BYREF
_BYTE v5[48]; // [rsp+90h] [rbp-A0h] BYREF
_BYTE v6[48]; // [rsp+C0h] [rbp-70h] BYREF
long long is_zero_16x; // [rsp+F0h] [rbp-40h]
long long v8; // [rsp+F8h] [rbp-38h]
long long v9; // [rsp+100h] [rbp-30h]
POINTonE2_mult_gls();
is_zero_16x = vec_is_zero_16x(a1 + 192, 96LL);
v8 = a1 + 192;
sqr_mont_384(v4, a1 + 192, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
v9 = a1 + 240;
sqr_mont_384(v3, a1 + 240, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
add_mod_384(v4, v4, v3, &BLS12_381_P);
exp_mont_384(v3, v4, &flt_reciprocal_fp_BLS12_381_P_minus_2, 381LL);
mul_mont_384(v5, a1 + 192, v3, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
mul_mont_384(v6, v9, v3, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
cneg_mod_384(v6, v6, 1LL, &BLS12_381_P);
sqr_mont_384x(v4, v5, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
mul_mont_384x(a1, a1, v4, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
mul_mont_384x(v4, v4, v5, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
mul_mont_384x(a1 + 96, a1 + 96, v4, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
return vec_select_96(v8, v8, (char *)&BLS12_381_G2 + 192, is_zero_16x);
}
|
POINTonE2_sign:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x108
MOV R15,RDI
CALL 0x0011dc95
MOV EAX,0xc0
LEA R14,[R15 + RAX*0x1]
MOV ESI,0x60
MOV RDI,R14
CALL 0x0012ff40
MOV qword ptr [RBP + -0x40],RAX
LEA R12,[0x13fb10]
LEA RBX,[RBP + -0x100]
MOV RCX,-0x760c000300030003
MOV RDI,RBX
MOV RSI,R14
MOV qword ptr [RBP + -0x38],R14
MOV RDX,R12
CALL 0x00133d20
LEA RSI,[R15 + 0xf0]
MOV qword ptr [RBP + -0x30],RSI
LEA R13,[RBP + -0x130]
MOV RDI,R13
MOV RDX,R12
MOV RCX,-0x760c000300030003
CALL 0x00133d20
MOV RDI,RBX
MOV RSI,RBX
MOV RDX,R13
MOV RCX,R12
CALL 0x0012ec40
LEA RDX,[0x13fe50]
MOV ECX,0x17d
MOV RDI,R13
MOV RSI,RBX
CALL 0x00125e87
LEA RDI,[RBP + -0xa0]
MOV RSI,R14
MOV RDX,R13
MOV RCX,R12
MOV R14,-0x760c000300030003
MOV R8,R14
CALL 0x001344a0
LEA RBX,[RBP + -0x70]
MOV RDI,RBX
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,R13
MOV RCX,R12
MOV R8,R14
CALL 0x001344a0
MOV EDX,0x1
MOV RDI,RBX
MOV RSI,RBX
MOV RCX,R12
CALL 0x0012f2c0
LEA RBX,[RBP + -0x100]
MOV RDI,RBX
LEA R13,[RBP + -0xa0]
MOV RSI,R13
MOV RDX,R12
MOV RCX,R14
CALL 0x001332e0
MOV RDI,R15
MOV RSI,R15
MOV RDX,RBX
MOV RCX,R12
MOV R8,R14
CALL 0x001331a0
MOV RDI,RBX
MOV RSI,RBX
MOV RDX,R13
MOV RCX,R12
MOV R8,R14
CALL 0x001331a0
ADD R15,0x60
MOV RDI,R15
MOV RSI,R15
MOV RDX,RBX
MOV RCX,R12
MOV R8,R14
CALL 0x001331a0
MOV RCX,qword ptr [RBP + -0x40]
LEA RDX,[0x13f8d0]
MOV EAX,0xc0
ADD RDX,RAX
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,RDI
CALL 0x0012f920
ADD RSP,0x108
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void POINTonE2_sign(long param_1)
{
long lVar1;
int1 local_138 [48];
int1 local_108 [96];
int1 local_a8 [48];
int1 local_78 [48];
int8 local_48;
long local_40;
long local_38;
POINTonE2_mult_gls();
lVar1 = param_1 + 0xc0;
local_48 = vec_is_zero_16x(lVar1,0x60);
local_40 = lVar1;
sqr_mont_384(local_108,lVar1,BLS12_381_P,0x89f3fffcfffcfffd);
local_38 = param_1 + 0xf0;
sqr_mont_384(local_138,local_38,BLS12_381_P,0x89f3fffcfffcfffd);
add_mod_384(local_108,local_108,local_138,BLS12_381_P);
exp_mont_384(local_138,local_108,flt_reciprocal_fp_BLS12_381_P_minus_2,0x17d);
mul_mont_384(local_a8,lVar1,local_138,BLS12_381_P,0x89f3fffcfffcfffd);
mul_mont_384(local_78,local_38,local_138,BLS12_381_P,0x89f3fffcfffcfffd);
cneg_mod_384(local_78,local_78,1,BLS12_381_P);
sqr_mont_384x(local_108,local_a8,BLS12_381_P,0x89f3fffcfffcfffd);
mul_mont_384x(param_1,param_1,local_108,BLS12_381_P,0x89f3fffcfffcfffd);
mul_mont_384x(local_108,local_108,local_a8,BLS12_381_P,0x89f3fffcfffcfffd);
mul_mont_384x(param_1 + 0x60,param_1 + 0x60,local_108,BLS12_381_P,0x89f3fffcfffcfffd);
vec_select_96(local_40,local_40,0x13f990,local_48);
return;
}
|
|
64,562 |
my_coll_parser_scan_character_list
|
eloqsql/strings/ctype-uca.c
|
static int
my_coll_parser_scan_character_list(MY_COLL_RULE_PARSER *p,
my_wc_t *pwc, size_t limit,
const char *name)
{
if (my_coll_parser_curr(p)->term != MY_COLL_LEXEM_CHAR)
return my_coll_parser_expected_error(p, MY_COLL_LEXEM_CHAR);
if (!my_coll_rule_expand(pwc, limit, my_coll_parser_curr(p)->code))
return my_coll_parser_too_long_error(p, name);
if (!my_coll_parser_scan_term(p, MY_COLL_LEXEM_CHAR))
return 0;
while (my_coll_parser_curr(p)->term == MY_COLL_LEXEM_CHAR)
{
if (!my_coll_rule_expand(pwc, limit, my_coll_parser_curr(p)->code))
return my_coll_parser_too_long_error(p, name);
my_coll_parser_scan(p);
}
return 1;
}
|
O3
|
c
|
my_coll_parser_scan_character_list:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x5, (%rdi)
jne 0xbd3a1
movq %rcx, %r14
movq %rdx, %r12
testq %rdx, %rdx
je 0xbd383
movq %rsi, %r13
movslq 0x24(%rbx), %rax
xorl %ecx, %ecx
cmpq $0x0, (%r13,%rcx,8)
je 0xbd3da
incq %rcx
cmpq %rcx, %r12
jne 0xbd373
addq $0xf8, %rbx
leaq 0x21a06(%rip), %rdx # 0xded97
xorl %r15d, %r15d
movl $0x80, %esi
movq %rbx, %rdi
movq %r14, %rcx
jmp 0xbd3c1
addq $0xf8, %rbx
leaq 0x219f7(%rip), %rdx # 0xdeda6
leaq 0x21a06(%rip), %rcx # 0xdedbc
xorl %r15d, %r15d
movl $0x80, %esi
movq %rbx, %rdi
xorl %eax, %eax
callq 0xd6e06
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, (%r13,%rcx,8)
movq %rbx, %rdi
movl $0x5, %esi
callq 0xbd0ad
testl %eax, %eax
je 0xbd450
movl $0x1, %r15d
cmpl $0x5, (%rbx)
jne 0xbd3c8
leaq 0x28(%rbx), %rdx
movslq 0x24(%rbx), %rax
xorl %ecx, %ecx
cmpq $0x0, (%r13,%rcx,8)
je 0xbd41a
incq %rcx
cmpq %rcx, %r12
jne 0xbd405
jmp 0xbd383
movq %rax, (%r13,%rcx,8)
movq 0x20(%rdx), %rax
movq %rax, 0x20(%rbx)
movups (%rdx), %xmm0
movups 0x10(%rdx), %xmm1
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
movq %rdx, -0x30(%rbp)
movq -0x30(%rbp), %rdi
callq 0xbce4f
movq -0x30(%rbp), %rdx
cmpl $0x5, (%rbx)
je 0xbd3ff
jmp 0xbd3c8
xorl %r15d, %r15d
jmp 0xbd3c8
|
my_coll_parser_scan_character_list:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdi
cmp dword ptr [rdi], 5
jnz short loc_BD3A1
mov r14, rcx
mov r12, rdx
test rdx, rdx
jz short loc_BD383
mov r13, rsi
movsxd rax, dword ptr [rbx+24h]
xor ecx, ecx
loc_BD373:
cmp qword ptr [r13+rcx*8+0], 0
jz short loc_BD3DA
inc rcx
cmp r12, rcx
jnz short loc_BD373
loc_BD383:
add rbx, 0F8h
lea rdx, aSIsTooLong; "%s is too long"
xor r15d, r15d
mov esi, 80h
mov rdi, rbx
mov rcx, r14
jmp short loc_BD3C1
loc_BD3A1:
add rbx, 0F8h
lea rdx, aSExpected; "%s expected"
lea rcx, aCharacter; "Character"
xor r15d, r15d
mov esi, 80h
mov rdi, rbx
loc_BD3C1:
xor eax, eax
call my_snprintf
loc_BD3C8:
mov eax, r15d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_BD3DA:
mov [r13+rcx*8+0], rax
mov rdi, rbx
mov esi, 5
call my_coll_parser_scan_term
test eax, eax
jz short loc_BD450
mov r15d, 1
cmp dword ptr [rbx], 5
jnz short loc_BD3C8
lea rdx, [rbx+28h]
loc_BD3FF:
movsxd rax, dword ptr [rbx+24h]
xor ecx, ecx
loc_BD405:
cmp qword ptr [r13+rcx*8+0], 0
jz short loc_BD41A
inc rcx
cmp r12, rcx
jnz short loc_BD405
jmp loc_BD383
loc_BD41A:
mov [r13+rcx*8+0], rax
mov rax, [rdx+20h]
mov [rbx+20h], rax
movups xmm0, xmmword ptr [rdx]
movups xmm1, xmmword ptr [rdx+10h]
movups xmmword ptr [rbx+10h], xmm1
movups xmmword ptr [rbx], xmm0
mov [rbp+var_30], rdx
mov rdi, [rbp+var_30]
call my_coll_lexem_next
mov rdx, [rbp+var_30]
cmp dword ptr [rbx], 5
jz short loc_BD3FF
jmp loc_BD3C8
loc_BD450:
xor r15d, r15d
jmp loc_BD3C8
|
long long my_coll_parser_scan_character_list(long long a1, long long a2, long long a3, int a4, int a5, int a6)
{
long long v8; // rcx
const char *v9; // rdx
unsigned int v10; // r15d
int v11; // edi
const char *v12; // rcx
long long v14; // rdx
long long v15; // rcx
__int128 v16; // xmm0
long long v17; // [rsp+0h] [rbp-30h]
if ( *(_DWORD *)a1 != 5 )
{
v9 = "%s expected";
v12 = "Character";
v10 = 0;
v11 = a1 + 248;
goto LABEL_8;
}
if ( !a3 )
{
LABEL_6:
v9 = "%s is too long";
v10 = 0;
v11 = a1 + 248;
LODWORD(v12) = a4;
LABEL_8:
my_snprintf(v11, 128, (_DWORD)v9, (_DWORD)v12, a5, a6);
return v10;
}
v8 = 0LL;
while ( *(_QWORD *)(a2 + 8 * v8) )
{
if ( a3 == ++v8 )
goto LABEL_6;
}
*(_QWORD *)(a2 + 8 * v8) = *(int *)(a1 + 36);
if ( (unsigned int)my_coll_parser_scan_term(a1, 5) )
{
v10 = 1;
if ( *(_DWORD *)a1 == 5 )
{
v14 = a1 + 40;
do
{
v15 = 0LL;
while ( *(_QWORD *)(a2 + 8 * v15) )
{
if ( a3 == ++v15 )
goto LABEL_6;
}
*(_QWORD *)(a2 + 8 * v15) = *(int *)(a1 + 36);
*(_QWORD *)(a1 + 32) = *(_QWORD *)(v14 + 32);
v16 = *(_OWORD *)v14;
*(_OWORD *)(a1 + 16) = *(_OWORD *)(v14 + 16);
*(_OWORD *)a1 = v16;
v17 = v14;
my_coll_lexem_next(v14);
v14 = v17;
}
while ( *(_DWORD *)a1 == 5 );
}
}
else
{
return 0;
}
return v10;
}
|
my_coll_parser_scan_character_list:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
CMP dword ptr [RDI],0x5
JNZ 0x001bd3a1
MOV R14,RCX
MOV R12,RDX
TEST RDX,RDX
JZ 0x001bd383
MOV R13,RSI
MOVSXD RAX,dword ptr [RBX + 0x24]
XOR ECX,ECX
LAB_001bd373:
CMP qword ptr [R13 + RCX*0x8],0x0
JZ 0x001bd3da
INC RCX
CMP R12,RCX
JNZ 0x001bd373
LAB_001bd383:
ADD RBX,0xf8
LEA RDX,[0x1ded97]
XOR R15D,R15D
MOV ESI,0x80
MOV RDI,RBX
MOV RCX,R14
JMP 0x001bd3c1
LAB_001bd3a1:
ADD RBX,0xf8
LEA RDX,[0x1deda6]
LEA RCX,[0x1dedbc]
XOR R15D,R15D
MOV ESI,0x80
MOV RDI,RBX
LAB_001bd3c1:
XOR EAX,EAX
CALL 0x001d6e06
LAB_001bd3c8:
MOV EAX,R15D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001bd3da:
MOV qword ptr [R13 + RCX*0x8],RAX
MOV RDI,RBX
MOV ESI,0x5
CALL 0x001bd0ad
TEST EAX,EAX
JZ 0x001bd450
MOV R15D,0x1
CMP dword ptr [RBX],0x5
JNZ 0x001bd3c8
LEA RDX,[RBX + 0x28]
LAB_001bd3ff:
MOVSXD RAX,dword ptr [RBX + 0x24]
XOR ECX,ECX
LAB_001bd405:
CMP qword ptr [R13 + RCX*0x8],0x0
JZ 0x001bd41a
INC RCX
CMP R12,RCX
JNZ 0x001bd405
JMP 0x001bd383
LAB_001bd41a:
MOV qword ptr [R13 + RCX*0x8],RAX
MOV RAX,qword ptr [RDX + 0x20]
MOV qword ptr [RBX + 0x20],RAX
MOVUPS XMM0,xmmword ptr [RDX]
MOVUPS XMM1,xmmword ptr [RDX + 0x10]
MOVUPS xmmword ptr [RBX + 0x10],XMM1
MOVUPS xmmword ptr [RBX],XMM0
MOV qword ptr [RBP + -0x30],RDX
MOV RDI,qword ptr [RBP + -0x30]
CALL 0x001bce4f
MOV RDX,qword ptr [RBP + -0x30]
CMP dword ptr [RBX],0x5
JZ 0x001bd3ff
JMP 0x001bd3c8
LAB_001bd450:
XOR R15D,R15D
JMP 0x001bd3c8
|
int8 my_coll_parser_scan_character_list(int *param_1,long param_2,long param_3,char *param_4)
{
int iVar1;
long lVar2;
char *pcVar3;
if (*param_1 == 5) {
if (param_3 != 0) {
lVar2 = 0;
do {
if (*(long *)(param_2 + lVar2 * 8) == 0) {
*(long *)(param_2 + lVar2 * 8) = (long)param_1[9];
iVar1 = my_coll_parser_scan_term(param_1,5);
if (iVar1 == 0) {
return 0;
}
if (*param_1 != 5) {
return 1;
}
do {
lVar2 = 0;
while (*(long *)(param_2 + lVar2 * 8) != 0) {
lVar2 = lVar2 + 1;
if (param_3 == lVar2) goto LAB_001bd383;
}
*(long *)(param_2 + lVar2 * 8) = (long)param_1[9];
*(int8 *)(param_1 + 8) = *(int8 *)(param_1 + 0x12);
param_1[4] = param_1[0xe];
param_1[5] = param_1[0xf];
param_1[6] = param_1[0x10];
param_1[7] = param_1[0x11];
*param_1 = param_1[10];
param_1[1] = param_1[0xb];
param_1[2] = param_1[0xc];
param_1[3] = param_1[0xd];
my_coll_lexem_next(param_1 + 10);
if (*param_1 != 5) {
return 1;
}
} while( true );
}
lVar2 = lVar2 + 1;
} while (param_3 != lVar2);
}
LAB_001bd383:
pcVar3 = "%s is too long";
}
else {
pcVar3 = "%s expected";
param_4 = "Character";
}
my_snprintf(param_1 + 0x3e,0x80,pcVar3,param_4);
return 0;
}
|
|
64,563 |
my_error_unregister
|
eloqsql/mysys/my_error.c
|
my_bool my_error_unregister(uint first, uint last)
{
struct my_err_head *meh_p;
struct my_err_head **search_meh_pp;
/* Search for the registration in the list. */
for (search_meh_pp= &my_errmsgs_list;
*search_meh_pp;
search_meh_pp= &(*search_meh_pp)->meh_next)
{
if (((*search_meh_pp)->meh_first == first) &&
((*search_meh_pp)->meh_last == last))
break;
}
if (! *search_meh_pp)
return TRUE;
/* Remove header from the chain. */
meh_p= *search_meh_pp;
*search_meh_pp= meh_p->meh_next;
my_free(meh_p);
return FALSE;
}
|
O3
|
c
|
my_error_unregister:
movq 0x2e73e9(%rip), %r8 # 0x3857a8
movb $0x1, %al
testq %r8, %r8
je 0x9e3fd
pushq %rbp
movq %rsp, %rbp
leaq 0x2e73d7(%rip), %rdx # 0x3857a8
movq %r8, %rcx
cmpl %edi, 0x10(%r8)
jne 0x9e3df
cmpl %esi, 0x14(%rcx)
je 0x9e3ec
movq (%rcx), %r8
movq %rcx, %rdx
testq %r8, %r8
jne 0x9e3d1
jmp 0x9e3fc
movq (%rcx), %rax
movq %rax, (%rdx)
movq %rcx, %rdi
callq 0x9fec2
xorl %eax, %eax
popq %rbp
retq
|
my_error_unregister:
mov r8, cs:my_errmsgs_list
mov al, 1
test r8, r8
jz short locret_9E3FD
push rbp
mov rbp, rsp
lea rdx, my_errmsgs_list
loc_9E3D1:
mov rcx, r8
cmp [r8+10h], edi
jnz short loc_9E3DF
cmp [rcx+14h], esi
jz short loc_9E3EC
loc_9E3DF:
mov r8, [rcx]
mov rdx, rcx
test r8, r8
jnz short loc_9E3D1
jmp short loc_9E3FC
loc_9E3EC:
mov rax, [rcx]
mov [rdx], rax
mov rdi, rcx
call my_free
xor eax, eax
loc_9E3FC:
pop rbp
locret_9E3FD:
retn
|
char my_error_unregister(int a1, int a2)
{
long long *v2; // r8
char result; // al
long long **v4; // rdx
long long *v5; // rcx
v2 = my_errmsgs_list;
result = 1;
if ( my_errmsgs_list )
{
v4 = &my_errmsgs_list;
while ( 1 )
{
v5 = v2;
if ( *((_DWORD *)v2 + 4) == a1 && *((_DWORD *)v2 + 5) == a2 )
break;
v2 = (long long *)*v2;
v4 = (long long **)v5;
if ( !*v5 )
return result;
}
*v4 = (long long *)*v2;
my_free(v2);
return 0;
}
return result;
}
|
my_error_unregister:
MOV R8,qword ptr [0x004857a8]
MOV AL,0x1
TEST R8,R8
JZ 0x0019e3fd
PUSH RBP
MOV RBP,RSP
LEA RDX,[0x4857a8]
LAB_0019e3d1:
MOV RCX,R8
CMP dword ptr [R8 + 0x10],EDI
JNZ 0x0019e3df
CMP dword ptr [RCX + 0x14],ESI
JZ 0x0019e3ec
LAB_0019e3df:
MOV R8,qword ptr [RCX]
MOV RDX,RCX
TEST R8,R8
JNZ 0x0019e3d1
JMP 0x0019e3fc
LAB_0019e3ec:
MOV RAX,qword ptr [RCX]
MOV qword ptr [RDX],RAX
MOV RDI,RCX
CALL 0x0019fec2
XOR EAX,EAX
LAB_0019e3fc:
POP RBP
LAB_0019e3fd:
RET
|
int8 my_error_unregister(int param_1,int param_2)
{
int **ppuVar1;
int **ppuVar2;
int **ppuVar3;
if (my_errmsgs_list != (int *)0x0) {
ppuVar2 = &my_errmsgs_list;
ppuVar3 = (int **)my_errmsgs_list;
do {
if ((*(int *)(ppuVar3 + 2) == param_1) && (*(int *)((long)ppuVar3 + 0x14) == param_2)) {
*ppuVar2 = *ppuVar3;
my_free(ppuVar3);
return 0;
}
ppuVar1 = (int **)*ppuVar3;
ppuVar2 = ppuVar3;
ppuVar3 = ppuVar1;
} while (ppuVar1 != (int **)0x0);
}
return 1;
}
|
|
64,564 |
minja::Value::at(unsigned long)
|
monkey531[P]llama/common/minja.hpp
|
Value& at(size_t index) {
if (is_null())
throw std::runtime_error("Undefined value or reference");
if (is_array()) return array_->at(index);
if (is_object()) return object_->at(index);
throw std::runtime_error("Value is not an array or object: " + dump());
}
|
O2
|
cpp
|
minja::Value::at(unsigned long):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, 0x8(%rsp)
callq 0x64972
testb %al, %al
jne 0x6c27f
movq 0x10(%r14), %rdi
testq %rdi, %rdi
je 0x6c263
movq %rbx, %rsi
addq $0x50, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x6c484
movq 0x20(%r14), %rdi
testq %rdi, %rdi
je 0x6c2af
leaq 0x8(%rsp), %rsi
callq 0x6c4a2
addq $0x50, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x23470
movq %rax, %rbx
leaq 0x48b69(%rip), %rsi # 0xb4dfa
movq %rax, %rdi
callq 0x23330
movq 0x92d48(%rip), %rsi # 0xfefe8
movq 0x92ca1(%rip), %rdx # 0xfef48
movq %rbx, %rdi
callq 0x23f00
pushq $0x10
popq %rdi
callq 0x23470
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
pushq $-0x1
popq %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x64388
leaq 0x49277(%rip), %rsi # 0xb554a
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x59ae2
movb $0x1, %bpl
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x23e30
xorl %ebp, %ebp
movq 0x92ced(%rip), %rsi # 0xfefe8
movq 0x92c46(%rip), %rdx # 0xfef48
movq %rbx, %rdi
callq 0x23f00
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0x241c8
jmp 0x6c31f
movq %rax, %r14
movb $0x1, %bpl
leaq 0x10(%rsp), %rdi
callq 0x241c8
testb %bpl, %bpl
jne 0x6c335
jmp 0x6c33d
jmp 0x6c332
movq %rax, %r14
movq %rbx, %rdi
callq 0x236a0
movq %r14, %rdi
callq 0x23f80
nop
|
_ZN5minja5Value2atEm:
push rbp
push r14
push rbx
sub rsp, 50h
mov rbx, rsi
mov r14, rdi
mov [rsp+68h+var_60], rsi
call _ZNK5minja5Value7is_nullEv; minja::Value::is_null(void)
test al, al
jnz short loc_6C27F
mov rdi, [r14+10h]
test rdi, rdi
jz short loc_6C263
mov rsi, rbx
add rsp, 50h
pop rbx
pop r14
pop rbp
jmp _ZNSt6vectorIN5minja5ValueESaIS1_EE2atEm; std::vector<minja::Value>::at(ulong)
loc_6C263:
mov rdi, [r14+20h]
test rdi, rdi
jz short loc_6C2AF
lea rsi, [rsp+68h+var_60]
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE2atIRmTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OSS_
add rsp, 50h
pop rbx
pop r14
pop rbp
retn
loc_6C27F:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aUndefinedValue; "Undefined value or reference"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_6C2AF:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+68h+var_58]
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rsi, r14
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aValueIsNotAnAr_0; "Value is not an array or object: "
lea rdi, [rsp+68h+var_38]
lea rdx, [rsp+68h+var_58]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+68h+var_38]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rdi, [rsp+68h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_6C31F
mov r14, rax
mov bpl, 1
loc_6C31F:
lea rdi, [rsp+68h+var_58]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_6C335
jmp short loc_6C33D
jmp short $+2
loc_6C332:
mov r14, rax
loc_6C335:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_6C33D:
mov rdi, r14
call __Unwind_Resume
|
long long minja::Value::at(minja::Value *this, long long a2)
{
long long v3; // rdi
long long v5; // rdi
std::runtime_error *exception; // rbx
void *v7; // rbx
long long v8; // [rsp+8h] [rbp-60h] BYREF
_BYTE v9[32]; // [rsp+10h] [rbp-58h] BYREF
_BYTE v10[56]; // [rsp+30h] [rbp-38h] BYREF
v8 = a2;
if ( minja::Value::is_null(this) )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Undefined value or reference");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v3 = *((_QWORD *)this + 2);
if ( v3 )
return std::vector<minja::Value>::at(v3, a2);
v5 = *((_QWORD *)this + 4);
if ( !v5 )
{
v7 = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v9, (long long)this, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v10, (long long)"Value is not an array or object: ", (long long)v9);
std::runtime_error::runtime_error(v7, v10);
__cxa_throw(
v7,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
return ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE2atIRmTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OSS_(
v5,
&v8);
}
|
at:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x50
MOV RBX,RSI
MOV R14,RDI
MOV qword ptr [RSP + 0x8],RSI
CALL 0x00164972
TEST AL,AL
JNZ 0x0016c27f
MOV RDI,qword ptr [R14 + 0x10]
TEST RDI,RDI
JZ 0x0016c263
MOV RSI,RBX
ADD RSP,0x50
POP RBX
POP R14
POP RBP
JMP 0x0016c484
LAB_0016c263:
MOV RDI,qword ptr [R14 + 0x20]
TEST RDI,RDI
JZ 0x0016c2af
LEA RSI,[RSP + 0x8]
CALL 0x0016c4a2
ADD RSP,0x50
POP RBX
POP R14
POP RBP
RET
LAB_0016c27f:
PUSH 0x10
POP RDI
CALL 0x00123470
MOV RBX,RAX
LAB_0016c28a:
LEA RSI,[0x1b4dfa]
MOV RDI,RAX
CALL 0x00123330
LAB_0016c299:
MOV RSI,qword ptr [0x001fefe8]
MOV RDX,qword ptr [0x001fef48]
MOV RDI,RBX
CALL 0x00123f00
LAB_0016c2af:
PUSH 0x10
POP RDI
CALL 0x00123470
MOV RBX,RAX
LAB_0016c2ba:
LEA RDI,[RSP + 0x10]
PUSH -0x1
POP RDX
MOV RSI,R14
XOR ECX,ECX
CALL 0x00164388
LAB_0016c2cc:
LEA RSI,[0x1b554a]
LEA RDI,[RSP + 0x30]
LEA RDX,[RSP + 0x10]
CALL 0x00159ae2
MOV BPL,0x1
LAB_0016c2e5:
LEA RSI,[RSP + 0x30]
MOV RDI,RBX
CALL 0x00123e30
XOR EBP,EBP
MOV RSI,qword ptr [0x001fefe8]
MOV RDX,qword ptr [0x001fef48]
MOV RDI,RBX
CALL 0x00123f00
|
/* minja::Value::at(unsigned long) */
void __thiscall minja::Value::at(Value *this,ulong param_1)
{
char cVar1;
runtime_error *prVar2;
ulong local_60;
int1 local_58 [32];
string local_38 [32];
local_60 = param_1;
cVar1 = is_null(this);
if (cVar1 != '\0') {
prVar2 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0016c28a to 0016c298 has its CatchHandler @ 0016c332 */
std::runtime_error::runtime_error(prVar2,"Undefined value or reference");
/* WARNING: Subroutine does not return */
__cxa_throw(prVar2,PTR_typeinfo_001fefe8,PTR__runtime_error_001fef48);
}
if (*(vector<minja::Value,std::allocator<minja::Value>> **)(this + 0x10) !=
(vector<minja::Value,std::allocator<minja::Value>> *)0x0) {
std::vector<minja::Value,std::allocator<minja::Value>>::at
(*(vector<minja::Value,std::allocator<minja::Value>> **)(this + 0x10),param_1);
return;
}
if (*(long *)(this + 0x20) != 0) {
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE2atIRmTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OSS_
(*(long *)(this + 0x20),&local_60);
return;
}
prVar2 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0016c2ba to 0016c2cb has its CatchHandler @ 0016c330 */
dump_abi_cxx11_((int)local_58,SUB81(this,0));
/* try { // try from 0016c2cc to 0016c2e1 has its CatchHandler @ 0016c319 */
std::operator+((char *)local_38,(string *)"Value is not an array or object: ");
/* try { // try from 0016c2e5 to 0016c309 has its CatchHandler @ 0016c30a */
std::runtime_error::runtime_error(prVar2,local_38);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar2,PTR_typeinfo_001fefe8,PTR__runtime_error_001fef48);
}
|
|
64,565 |
google::protobuf::Reflection::ReleaseLast(google::protobuf::Message*, google::protobuf::FieldDescriptor const*) const
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/generated_message_reflection.cc
|
Message* Reflection::ReleaseLast(Message* message,
const FieldDescriptor* field) const {
USAGE_CHECK_ALL(ReleaseLast, REPEATED, MESSAGE);
CheckInvalidAccess(schema_, field);
Message* released;
if (field->is_extension()) {
released = static_cast<Message*>(
MutableExtensionSet(message)->ReleaseLast(field->number()));
} else {
if (IsMapFieldInApi(field)) {
released = MutableRaw<MapFieldBase>(message, field)
->MutableRepeatedField()
->ReleaseLast<GenericTypeHandler<Message>>();
} else {
released = MutableRaw<RepeatedPtrFieldBase>(message, field)
->ReleaseLast<GenericTypeHandler<Message>>();
}
}
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
return MaybeForceCopy(message->GetArenaForAllocation(), released);
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
return released;
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
}
|
O0
|
cpp
|
google::protobuf::Reflection::ReleaseLast(google::protobuf::Message*, google::protobuf::FieldDescriptor const*) const:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rdi
callq 0x1be1f0
movq 0x10(%rsp), %rcx
cmpq (%rcx), %rax
je 0x1af5d1
movq 0x10(%rsp), %rax
movq (%rax), %rdi
movq 0x20(%rsp), %rsi
leaq 0x2377d7(%rip), %rdx # 0x3e6d9c
leaq 0x2376a3(%rip), %rcx # 0x3e6c6f
callq 0x1aec80
movq 0x20(%rsp), %rdi
callq 0x1be200
cmpl $0x3, %eax
je 0x1af600
movq 0x10(%rsp), %rax
movq (%rax), %rdi
movq 0x20(%rsp), %rsi
leaq 0x2377a8(%rip), %rdx # 0x3e6d9c
leaq 0x237737(%rip), %rcx # 0x3e6d32
callq 0x1aec80
movq 0x20(%rsp), %rdi
callq 0x1badb0
cmpl $0xa, %eax
je 0x1af62d
movq 0x10(%rsp), %rax
movq (%rax), %rdi
movq 0x20(%rsp), %rsi
leaq 0x237779(%rip), %rdx # 0x3e6d9c
movl $0xa, %ecx
callq 0x1af6f0
movq 0x10(%rsp), %rdi
addq $0x8, %rdi
movq 0x20(%rsp), %rsi
callq 0x1aedf0
movq 0x20(%rsp), %rdi
callq 0x1bab10
testb $0x1, %al
jne 0x1af650
jmp 0x1af681
movq 0x10(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x1aef00
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rdi
callq 0x1bab30
movq 0x8(%rsp), %rdi
movl %eax, %esi
callq 0x226230
movq %rax, 0x18(%rsp)
jmp 0x1af6df
movq 0x20(%rsp), %rdi
callq 0x1ac760
testb $0x1, %al
jne 0x1af691
jmp 0x1af6bc
movq 0x10(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x1bed80
movq %rax, %rdi
callq 0x1c9f30
movq %rax, %rdi
callq 0x1bf060
movq %rax, 0x18(%rsp)
jmp 0x1af6dd
movq 0x10(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x1bedd0
movq %rax, %rdi
callq 0x1bf060
movq %rax, 0x18(%rsp)
jmp 0x1af6df
movq 0x18(%rsp), %rax
addq $0x38, %rsp
retq
nopl (%rax)
|
_ZNK6google8protobuf10Reflection11ReleaseLastEPNS0_7MessageEPKNS0_15FieldDescriptorE:
sub rsp, 38h
mov [rsp+38h+var_8], rdi
mov [rsp+38h+var_10], rsi
mov [rsp+38h+var_18], rdx
mov rax, [rsp+38h+var_8]
mov [rsp+38h+var_28], rax
mov rdi, [rsp+38h+var_18]; this
call _ZNK6google8protobuf15FieldDescriptor15containing_typeEv; google::protobuf::FieldDescriptor::containing_type(void)
mov rcx, [rsp+38h+var_28]
cmp rax, [rcx]
jz short loc_1AF5D1
mov rax, [rsp+38h+var_28]
mov rdi, [rax]; this
mov rsi, [rsp+38h+var_18]; google::protobuf::Descriptor *
lea rdx, aUnsafearenarel+0Bh; google::protobuf::FieldDescriptor *
lea rcx, aFieldDoesNotMa; "Field does not match message type."
call _ZN6google8protobuf12_GLOBAL__N_126ReportReflectionUsageErrorEPKNS0_10DescriptorEPKNS0_15FieldDescriptorEPKcS9_; google::protobuf::`anonymous namespace'::ReportReflectionUsageError(google::protobuf::Descriptor const*,google::protobuf::FieldDescriptor const*,char const*,char const*)
loc_1AF5D1:
mov rdi, [rsp+38h+var_18]; this
call _ZNK6google8protobuf15FieldDescriptor5labelEv; google::protobuf::FieldDescriptor::label(void)
cmp eax, 3
jz short loc_1AF600
mov rax, [rsp+38h+var_28]
mov rdi, [rax]; this
mov rsi, [rsp+38h+var_18]; google::protobuf::Descriptor *
lea rdx, aUnsafearenarel+0Bh; google::protobuf::FieldDescriptor *
lea rcx, aFieldIsSingula; "Field is singular; the method requires "...
call _ZN6google8protobuf12_GLOBAL__N_126ReportReflectionUsageErrorEPKNS0_10DescriptorEPKNS0_15FieldDescriptorEPKcS9_; google::protobuf::`anonymous namespace'::ReportReflectionUsageError(google::protobuf::Descriptor const*,google::protobuf::FieldDescriptor const*,char const*,char const*)
loc_1AF600:
mov rdi, [rsp+38h+var_18]; this
call _ZNK6google8protobuf15FieldDescriptor8cpp_typeEv; google::protobuf::FieldDescriptor::cpp_type(void)
cmp eax, 0Ah
jz short loc_1AF62D
mov rax, [rsp+38h+var_28]
mov rdi, [rax]
mov rsi, [rsp+38h+var_18]
lea rdx, aUnsafearenarel+0Bh; "ReleaseLast"
mov ecx, 0Ah
call _ZN6google8protobuf12_GLOBAL__N_130ReportReflectionUsageTypeErrorEPKNS0_10DescriptorEPKNS0_15FieldDescriptorEPKcNS5_7CppTypeE; google::protobuf::`anonymous namespace'::ReportReflectionUsageTypeError(google::protobuf::Descriptor const*,google::protobuf::FieldDescriptor const*,char const*,google::protobuf::FieldDescriptor::CppType)
loc_1AF62D:
mov rdi, [rsp+38h+var_28]
add rdi, 8; this
mov rsi, [rsp+38h+var_18]; google::protobuf::FieldDescriptor *
call _ZN6google8protobuf12_GLOBAL__N_118CheckInvalidAccessERKNS0_8internal16ReflectionSchemaEPKNS0_15FieldDescriptorE; google::protobuf::`anonymous namespace'::CheckInvalidAccess(google::protobuf::internal::ReflectionSchema const&,google::protobuf::FieldDescriptor const*)
mov rdi, [rsp+38h+var_18]; this
call _ZNK6google8protobuf15FieldDescriptor12is_extensionEv; google::protobuf::FieldDescriptor::is_extension(void)
test al, 1
jnz short loc_1AF650
jmp short loc_1AF681
loc_1AF650:
mov rdi, [rsp+38h+var_28]; this
mov rsi, [rsp+38h+var_10]; google::protobuf::Message *
call _ZNK6google8protobuf10Reflection19MutableExtensionSetEPNS0_7MessageE; google::protobuf::Reflection::MutableExtensionSet(google::protobuf::Message *)
mov [rsp+38h+var_30], rax
mov rdi, [rsp+38h+var_18]; this
call _ZNK6google8protobuf15FieldDescriptor6numberEv; google::protobuf::FieldDescriptor::number(void)
mov rdi, [rsp+38h+var_30]; this
mov esi, eax; int
call _ZN6google8protobuf8internal12ExtensionSet11ReleaseLastEi; google::protobuf::internal::ExtensionSet::ReleaseLast(int)
mov [rsp+38h+var_20], rax
jmp short loc_1AF6DF
loc_1AF681:
mov rdi, [rsp+38h+var_18]; this
call _ZN6google8protobuf12_GLOBAL__N_115IsMapFieldInApiEPKNS0_15FieldDescriptorE; google::protobuf::`anonymous namespace'::IsMapFieldInApi(google::protobuf::FieldDescriptor const*)
test al, 1
jnz short loc_1AF691
jmp short loc_1AF6BC
loc_1AF691:
mov rdi, [rsp+38h+var_28]
mov rsi, [rsp+38h+var_10]
mov rdx, [rsp+38h+var_18]
call _ZNK6google8protobuf10Reflection10MutableRawINS0_8internal12MapFieldBaseEEEPT_PNS0_7MessageEPKNS0_15FieldDescriptorE; google::protobuf::Reflection::MutableRaw<google::protobuf::internal::MapFieldBase>(google::protobuf::Message *,google::protobuf::FieldDescriptor const*)
mov rdi, rax; this
call _ZN6google8protobuf8internal12MapFieldBase20MutableRepeatedFieldEv; google::protobuf::internal::MapFieldBase::MutableRepeatedField(void)
mov rdi, rax
call _ZN6google8protobuf8internal20RepeatedPtrFieldBase11ReleaseLastINS1_18GenericTypeHandlerINS0_7MessageEEEEEPNT_4TypeEv; google::protobuf::internal::RepeatedPtrFieldBase::ReleaseLast<google::protobuf::internal::GenericTypeHandler<google::protobuf::Message>>(void)
mov [rsp+38h+var_20], rax
jmp short loc_1AF6DD
loc_1AF6BC:
mov rdi, [rsp+38h+var_28]
mov rsi, [rsp+38h+var_10]
mov rdx, [rsp+38h+var_18]
call _ZNK6google8protobuf10Reflection10MutableRawINS0_8internal20RepeatedPtrFieldBaseEEEPT_PNS0_7MessageEPKNS0_15FieldDescriptorE; google::protobuf::Reflection::MutableRaw<google::protobuf::internal::RepeatedPtrFieldBase>(google::protobuf::Message *,google::protobuf::FieldDescriptor const*)
mov rdi, rax
call _ZN6google8protobuf8internal20RepeatedPtrFieldBase11ReleaseLastINS1_18GenericTypeHandlerINS0_7MessageEEEEEPNT_4TypeEv; google::protobuf::internal::RepeatedPtrFieldBase::ReleaseLast<google::protobuf::internal::GenericTypeHandler<google::protobuf::Message>>(void)
mov [rsp+38h+var_20], rax
loc_1AF6DD:
jmp short $+2
loc_1AF6DF:
mov rax, [rsp+38h+var_20]
add rsp, 38h
retn
| ||||
64,566 |
google::protobuf::Reflection::ReleaseLast(google::protobuf::Message*, google::protobuf::FieldDescriptor const*) const
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/generated_message_reflection.cc
|
Message* Reflection::ReleaseLast(Message* message,
const FieldDescriptor* field) const {
USAGE_CHECK_ALL(ReleaseLast, REPEATED, MESSAGE);
CheckInvalidAccess(schema_, field);
Message* released;
if (field->is_extension()) {
released = static_cast<Message*>(
MutableExtensionSet(message)->ReleaseLast(field->number()));
} else {
if (IsMapFieldInApi(field)) {
released = MutableRaw<MapFieldBase>(message, field)
->MutableRepeatedField()
->ReleaseLast<GenericTypeHandler<Message>>();
} else {
released = MutableRaw<RepeatedPtrFieldBase>(message, field)
->ReleaseLast<GenericTypeHandler<Message>>();
}
}
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
return MaybeForceCopy(message->GetArenaForAllocation(), released);
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
return released;
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
}
|
O3
|
cpp
|
google::protobuf::Reflection::ReleaseLast(google::protobuf::Message*, google::protobuf::FieldDescriptor const*) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq (%rdi), %rdi
cmpq %rdi, 0x20(%rdx)
je 0x8f2da
leaq 0xd93fb(%rip), %rdx # 0x1686c6
leaq 0xd92c7(%rip), %rcx # 0x168599
movq %r14, %rsi
callq 0x8ee9e
movb 0x1(%r14), %al
notb %al
testb $0x60, %al
je 0x8f2fd
movq (%r15), %rdi
leaq 0xd93d8(%rip), %rdx # 0x1686c6
leaq 0xd9367(%rip), %rcx # 0x16865c
movq %r14, %rsi
callq 0x8ee9e
movq 0x18(%r14), %rdi
testq %rdi, %rdi
je 0x8f322
leaq 0x4de47(%rip), %rax # 0xdd154
leaq 0x10(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x8(%rsp), %rdx
movq %r14, (%rdx)
callq 0x97dfb
movzbl 0x2(%r14), %eax
leaq 0xdc9d2(%rip), %rcx # 0x16bd00
cmpl $0xa, (%rcx,%rax,4)
je 0x8f34b
movq (%r15), %rdi
leaq 0xd9388(%rip), %rdx # 0x1686c6
movq %r14, %rsi
movl $0xa, %ecx
callq 0x8f3a5
testb $0x8, 0x1(%r14)
jne 0x8f387
movq %r14, %rdi
callq 0x8d966
movl %eax, %ebp
addq $0x8, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x97f78
movl %eax, %eax
addq %rax, %rbx
movq %rbx, %rdi
testb %bpl, %bpl
je 0x8f380
callq 0x99cba
movq %rax, %rdi
callq 0x9985c
jmp 0x8f39a
movl 0x28(%r15), %eax
addq %rax, %rbx
movl 0x4(%r14), %esi
movq %rbx, %rdi
callq 0xb5a1c
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
_ZNK6google8protobuf10Reflection11ReleaseLastEPNS0_7MessageEPKNS0_15FieldDescriptorE:
push rbp
push r15
push r14
push rbx
sub rsp, 18h
mov r14, rdx
mov rbx, rsi
mov r15, rdi
mov rdi, [rdi]; this
cmp [rdx+20h], rdi
jz short loc_8F2DA
lea rdx, aUnsafearenarel+0Bh; google::protobuf::FieldDescriptor *
lea rcx, aFieldDoesNotMa; "Field does not match message type."
mov rsi, r14; google::protobuf::Descriptor *
call _ZN6google8protobuf12_GLOBAL__N_126ReportReflectionUsageErrorEPKNS0_10DescriptorEPKNS0_15FieldDescriptorEPKcS9_; google::protobuf::`anonymous namespace'::ReportReflectionUsageError(google::protobuf::Descriptor const*,google::protobuf::FieldDescriptor const*,char const*,char const*)
loc_8F2DA:
mov al, [r14+1]
not al
test al, 60h
jz short loc_8F2FD
mov rdi, [r15]; this
lea rdx, aUnsafearenarel+0Bh; google::protobuf::FieldDescriptor *
lea rcx, aFieldIsSingula; "Field is singular; the method requires "...
mov rsi, r14; google::protobuf::Descriptor *
call _ZN6google8protobuf12_GLOBAL__N_126ReportReflectionUsageErrorEPKNS0_10DescriptorEPKNS0_15FieldDescriptorEPKcS9_; google::protobuf::`anonymous namespace'::ReportReflectionUsageError(google::protobuf::Descriptor const*,google::protobuf::FieldDescriptor const*,char const*,char const*)
loc_8F2FD:
mov rdi, [r14+18h]
test rdi, rdi
jz short loc_8F322
lea rax, _ZN6google8protobuf15FieldDescriptor12TypeOnceInitEPKS1_; google::protobuf::FieldDescriptor::TypeOnceInit(google::protobuf::FieldDescriptor const*)
lea rsi, [rsp+38h+var_28]
mov [rsi], rax
lea rdx, [rsp+38h+var_30]
mov [rdx], r14
call _ZSt9call_onceIPFvPKN6google8protobuf15FieldDescriptorEEJS4_EEvRSt9once_flagOT_DpOT0_; std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(std::once_flag &,void (*)(google::protobuf::FieldDescriptor const*) &&,google::protobuf::FieldDescriptor const* &&)
loc_8F322:
movzx eax, byte ptr [r14+2]
lea rcx, _ZN6google8protobuf15FieldDescriptor17kTypeToCppTypeMapE; google::protobuf::FieldDescriptor::kTypeToCppTypeMap
cmp dword ptr [rcx+rax*4], 0Ah
jz short loc_8F34B
mov rdi, [r15]
lea rdx, aUnsafearenarel+0Bh; "ReleaseLast"
mov rsi, r14; google::protobuf::FieldDescriptor *
mov ecx, 0Ah
call _ZN6google8protobuf12_GLOBAL__N_130ReportReflectionUsageTypeErrorEPKNS0_10DescriptorEPKNS0_15FieldDescriptorEPKcNS5_7CppTypeE; google::protobuf::`anonymous namespace'::ReportReflectionUsageTypeError(google::protobuf::Descriptor const*,google::protobuf::FieldDescriptor const*,char const*,google::protobuf::FieldDescriptor::CppType)
loc_8F34B:
test byte ptr [r14+1], 8
jnz short loc_8F387
mov rdi, r14; this
call _ZN6google8protobuf12_GLOBAL__N_115IsMapFieldInApiEPKNS0_15FieldDescriptorE; google::protobuf::`anonymous namespace'::IsMapFieldInApi(google::protobuf::FieldDescriptor const*)
mov ebp, eax
add r15, 8
mov rdi, r15; this
mov rsi, r14; google::protobuf::FieldDescriptor *
call _ZNK6google8protobuf8internal16ReflectionSchema14GetFieldOffsetEPKNS0_15FieldDescriptorE; google::protobuf::internal::ReflectionSchema::GetFieldOffset(google::protobuf::FieldDescriptor const*)
mov eax, eax
add rbx, rax
mov rdi, rbx; this
test bpl, bpl
jz short loc_8F380
call _ZN6google8protobuf8internal12MapFieldBase20MutableRepeatedFieldEv; google::protobuf::internal::MapFieldBase::MutableRepeatedField(void)
mov rdi, rax
loc_8F380:
call _ZN6google8protobuf8internal20RepeatedPtrFieldBase19ReleaseLastInternalINS1_18GenericTypeHandlerINS0_7MessageEEEEEPNT_4TypeESt17integral_constantIbLb1EE; google::protobuf::internal::RepeatedPtrFieldBase::ReleaseLastInternal<google::protobuf::internal::GenericTypeHandler<google::protobuf::Message>>(std::integral_constant<bool,true>)
jmp short loc_8F39A
loc_8F387:
mov eax, [r15+28h]
add rbx, rax
mov esi, [r14+4]; int
mov rdi, rbx; this
call _ZN6google8protobuf8internal12ExtensionSet11ReleaseLastEi; google::protobuf::internal::ExtensionSet::ReleaseLast(int)
loc_8F39A:
add rsp, 18h
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long google::protobuf::Reflection::ReleaseLast(
google::protobuf::_anonymous_namespace_ **this,
google::protobuf::Message *a2,
const google::protobuf::FieldDescriptor *a3,
long long a4,
const char *a5,
int a6)
{
google::protobuf::Message *v7; // rbx
google::protobuf::_anonymous_namespace_ *v9; // rdi
long long v10; // rdi
char IsMapFieldInApi; // bp
google::protobuf::internal::MapFieldBase *v12; // rdi
_QWORD v14[5]; // [rsp+10h] [rbp-28h] BYREF
v7 = a2;
v9 = *this;
if ( *((google::protobuf::_anonymous_namespace_ **)a3 + 4) != v9 )
{
a2 = a3;
google::protobuf::`anonymous namespace'::ReportReflectionUsageError(
v9,
a3,
(const google::protobuf::FieldDescriptor *)"ReleaseLast",
"Field does not match message type.",
a5);
}
if ( (~*((_BYTE *)a3 + 1) & 0x60) != 0 )
{
a2 = a3;
google::protobuf::`anonymous namespace'::ReportReflectionUsageError(
*this,
a3,
(const google::protobuf::FieldDescriptor *)"ReleaseLast",
"Field is singular; the method requires a repeated field.",
a5);
}
v10 = *((_QWORD *)a3 + 3);
if ( v10 )
{
a2 = (google::protobuf::Message *)v14;
v14[0] = google::protobuf::FieldDescriptor::TypeOnceInit;
std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(
v10,
v14);
}
if ( google::protobuf::FieldDescriptor::kTypeToCppTypeMap[*((unsigned __int8 *)a3 + 2)] != 10 )
{
a2 = a3;
google::protobuf::`anonymous namespace'::ReportReflectionUsageTypeError(
(unsigned int)*this,
(_DWORD)a3,
(unsigned int)"ReleaseLast",
10,
(_DWORD)a5,
a6);
}
if ( (*((_BYTE *)a3 + 1) & 8) != 0 )
return google::protobuf::internal::ExtensionSet::ReleaseLast(
(google::protobuf::Message *)((char *)v7 + *((unsigned int *)this + 10)),
*((_DWORD *)a3 + 1));
IsMapFieldInApi = google::protobuf::`anonymous namespace'::IsMapFieldInApi(a3, a2);
v12 = (google::protobuf::Message *)((char *)v7
+ (unsigned int)google::protobuf::internal::ReflectionSchema::GetFieldOffset(
(google::protobuf::internal::ReflectionSchema *)(this + 1),
a3));
if ( IsMapFieldInApi )
v12 = (google::protobuf::internal::MapFieldBase *)google::protobuf::internal::MapFieldBase::MutableRepeatedField(v12);
return google::protobuf::internal::RepeatedPtrFieldBase::ReleaseLastInternal<google::protobuf::internal::GenericTypeHandler<google::protobuf::Message>>(v12);
}
|
ReleaseLast:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV R14,RDX
MOV RBX,RSI
MOV R15,RDI
MOV RDI,qword ptr [RDI]
CMP qword ptr [RDX + 0x20],RDI
JZ 0x0018f2da
LEA RDX,[0x2686c6]
LEA RCX,[0x268599]
MOV RSI,R14
CALL 0x0018ee9e
LAB_0018f2da:
MOV AL,byte ptr [R14 + 0x1]
NOT AL
TEST AL,0x60
JZ 0x0018f2fd
MOV RDI,qword ptr [R15]
LEA RDX,[0x2686c6]
LEA RCX,[0x26865c]
MOV RSI,R14
CALL 0x0018ee9e
LAB_0018f2fd:
MOV RDI,qword ptr [R14 + 0x18]
TEST RDI,RDI
JZ 0x0018f322
LEA RAX,[0x1dd154]
LEA RSI,[RSP + 0x10]
MOV qword ptr [RSI],RAX
LEA RDX,[RSP + 0x8]
MOV qword ptr [RDX],R14
CALL 0x00197dfb
LAB_0018f322:
MOVZX EAX,byte ptr [R14 + 0x2]
LEA RCX,[0x26bd00]
CMP dword ptr [RCX + RAX*0x4],0xa
JZ 0x0018f34b
MOV RDI,qword ptr [R15]
LEA RDX,[0x2686c6]
MOV RSI,R14
MOV ECX,0xa
CALL 0x0018f3a5
LAB_0018f34b:
TEST byte ptr [R14 + 0x1],0x8
JNZ 0x0018f387
MOV RDI,R14
CALL 0x0018d966
MOV EBP,EAX
ADD R15,0x8
MOV RDI,R15
MOV RSI,R14
CALL 0x00197f78
MOV EAX,EAX
ADD RBX,RAX
MOV RDI,RBX
TEST BPL,BPL
JZ 0x0018f380
CALL 0x00199cba
MOV RDI,RAX
LAB_0018f380:
CALL 0x0019985c
JMP 0x0018f39a
LAB_0018f387:
MOV EAX,dword ptr [R15 + 0x28]
ADD RBX,RAX
MOV ESI,dword ptr [R14 + 0x4]
MOV RDI,RBX
CALL 0x001b5a1c
LAB_0018f39a:
ADD RSP,0x18
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* google::protobuf::Reflection::ReleaseLast(google::protobuf::Message*,
google::protobuf::FieldDescriptor const*) const */
void __thiscall
google::protobuf::Reflection::ReleaseLast
(Reflection *this,Message *param_1,FieldDescriptor *param_2)
{
char cVar1;
uint uVar2;
MapFieldBase *this_00;
FieldDescriptor *local_30;
code *local_28;
if (*(Descriptor **)(param_2 + 0x20) != *(Descriptor **)this) {
(anonymous_namespace)::ReportReflectionUsageError
(*(Descriptor **)this,param_2,"ReleaseLast","Field does not match message type.");
}
if ((~(byte)param_2[1] & 0x60) != 0) {
(anonymous_namespace)::ReportReflectionUsageError
(*(Descriptor **)this,param_2,"ReleaseLast",
"Field is singular; the method requires a repeated field.");
}
if (*(once_flag **)(param_2 + 0x18) != (once_flag *)0x0) {
local_28 = FieldDescriptor::TypeOnceInit;
local_30 = param_2;
std::
call_once<void(*)(google::protobuf::FieldDescriptor_const*),google::protobuf::FieldDescriptor_const*>
(*(once_flag **)(param_2 + 0x18),(_func_void_FieldDescriptor_ptr *)&local_28,&local_30
);
}
if (*(int *)(FieldDescriptor::kTypeToCppTypeMap + (ulong)(byte)param_2[2] * 4) != 10) {
(anonymous_namespace)::ReportReflectionUsageTypeError
(*(int8 *)this,param_2,"ReleaseLast",10);
}
if (((byte)param_2[1] & 8) == 0) {
cVar1 = (anonymous_namespace)::IsMapFieldInApi(param_2);
uVar2 = internal::ReflectionSchema::GetFieldOffset((ReflectionSchema *)(this + 8),param_2);
this_00 = (MapFieldBase *)(param_1 + uVar2);
if (cVar1 != '\0') {
this_00 = (MapFieldBase *)internal::MapFieldBase::MutableRepeatedField(this_00);
}
internal::RepeatedPtrFieldBase::
ReleaseLastInternal<google::protobuf::internal::GenericTypeHandler<google::protobuf::Message>>
(this_00);
}
else {
internal::ExtensionSet::ReleaseLast
((ExtensionSet *)(param_1 + *(uint *)(this + 0x28)),*(int *)(param_2 + 4));
}
return;
}
|
|
64,567 |
psi_rwlock_tryrdlock
|
eloqsql/mysys/my_thr_init.c
|
ATTRIBUTE_COLD
int psi_rwlock_tryrdlock(mysql_rwlock_t *that, const char *file, uint line)
{
PSI_rwlock_locker_state state;
PSI_rwlock_locker *locker= PSI_RWLOCK_CALL(start_rwlock_rdwait)
(&state, that->m_psi, PSI_RWLOCK_TRYREADLOCK, file, line);
int result= rw_tryrdlock(&that->m_rwlock);
if (locker)
PSI_RWLOCK_CALL(end_rwlock_rdwait)(locker, result);
return result;
}
|
O0
|
c
|
psi_rwlock_tryrdlock:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
leaq 0x1a954e(%rip), %rax # 0x1d08d8
movq (%rax), %rax
movq 0x1a0(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x90(%rcx), %rsi
movq -0x10(%rbp), %rcx
movl -0x14(%rbp), %r8d
leaq -0x48(%rbp), %rdi
movl $0x2, %edx
callq *%rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rdi
callq 0x27980
movl %eax, -0x54(%rbp)
cmpq $0x0, -0x50(%rbp)
je 0x273e3
leaq 0x1a9508(%rip), %rax # 0x1d08d8
movq (%rax), %rax
movq 0x1a8(%rax), %rax
movq -0x50(%rbp), %rdi
movl -0x54(%rbp), %esi
callq *%rax
movl -0x54(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)
|
psi_rwlock_tryrdlock:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1A0h]
mov rcx, [rbp+var_8]
mov rsi, [rcx+90h]
mov rcx, [rbp+var_10]
mov r8d, [rbp+var_14]
lea rdi, [rbp+var_48]
mov edx, 2
call rax
mov [rbp+var_50], rax
mov rdi, [rbp+var_8]
call my_rw_tryrdlock
mov [rbp+var_54], eax
cmp [rbp+var_50], 0
jz short loc_273E3
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1A8h]
mov rdi, [rbp+var_50]
mov esi, [rbp+var_54]
call rax
loc_273E3:
mov eax, [rbp+var_54]
add rsp, 60h
pop rbp
retn
|
long long psi_rwlock_tryrdlock(long long a1, long long a2, unsigned int a3)
{
unsigned int v4; // [rsp+Ch] [rbp-54h]
long long v5; // [rsp+10h] [rbp-50h]
_BYTE v6[52]; // [rsp+18h] [rbp-48h] BYREF
unsigned int v7; // [rsp+4Ch] [rbp-14h]
long long v8; // [rsp+50h] [rbp-10h]
long long v9; // [rsp+58h] [rbp-8h]
v9 = a1;
v8 = a2;
v7 = a3;
v5 = ((long long ( *)(_BYTE *, _QWORD, long long, long long, _QWORD))PSI_server[52])(
v6,
*(_QWORD *)(a1 + 144),
2LL,
a2,
a3);
v4 = my_rw_tryrdlock(v9);
if ( v5 )
((void ( *)(long long, _QWORD))PSI_server[53])(v5, v4);
return v4;
}
|
psi_rwlock_tryrdlock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
LEA RAX,[0x2d08d8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1a0]
MOV RCX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RCX + 0x90]
MOV RCX,qword ptr [RBP + -0x10]
MOV R8D,dword ptr [RBP + -0x14]
LEA RDI,[RBP + -0x48]
MOV EDX,0x2
CALL RAX
MOV qword ptr [RBP + -0x50],RAX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00127980
MOV dword ptr [RBP + -0x54],EAX
CMP qword ptr [RBP + -0x50],0x0
JZ 0x001273e3
LEA RAX,[0x2d08d8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1a8]
MOV RDI,qword ptr [RBP + -0x50]
MOV ESI,dword ptr [RBP + -0x54]
CALL RAX
LAB_001273e3:
MOV EAX,dword ptr [RBP + -0x54]
ADD RSP,0x60
POP RBP
RET
|
int4 psi_rwlock_tryrdlock(long param_1,int8 param_2,int4 param_3)
{
int4 uVar1;
long lVar2;
int1 local_50 [52];
int4 local_1c;
int8 local_18;
long local_10;
local_1c = param_3;
local_18 = param_2;
local_10 = param_1;
lVar2 = (**(code **)(PSI_server + 0x1a0))
(local_50,*(int8 *)(param_1 + 0x90),2,param_2,param_3);
uVar1 = my_rw_tryrdlock(local_10);
if (lVar2 != 0) {
(**(code **)(PSI_server + 0x1a8))(lVar2,uVar1);
}
return uVar1;
}
|
|
64,568 |
JS_ThrowOutOfMemory
|
bluesky950520[P]quickjs/quickjs.c
|
JSValue JS_ThrowOutOfMemory(JSContext *ctx)
{
JSRuntime *rt = ctx->rt;
if (!rt->in_out_of_memory) {
rt->in_out_of_memory = TRUE;
JS_ThrowInternalError(ctx, "out of memory");
rt->in_out_of_memory = FALSE;
}
return JS_EXCEPTION;
}
|
O0
|
c
|
JS_ThrowOutOfMemory:
subq $0x38, %rsp
movq %rdi, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movl 0x100(%rax), %eax
shll $0x18, %eax
sarl $0x18, %eax
cmpl $0x0, %eax
jne 0x21c8e
movq 0x18(%rsp), %rax
movl 0x100(%rax), %ecx
andl $0xffffff00, %ecx # imm = 0xFFFFFF00
orl $0x1, %ecx
movl %ecx, 0x100(%rax)
movq 0x20(%rsp), %rdi
leaq 0xec081(%rip), %rsi # 0x10dce4
movb $0x0, %al
callq 0x2d4e0
movq %rax, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x18(%rsp), %rax
movl 0x100(%rax), %ecx
andl $0xffffff00, %ecx # imm = 0xFFFFFF00
orl $0x0, %ecx
movl %ecx, 0x100(%rax)
movl $0x0, 0x28(%rsp)
movq $0x6, 0x30(%rsp)
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rdx
addq $0x38, %rsp
retq
nop
|
JS_ThrowOutOfMemory:
sub rsp, 38h
mov [rsp+38h+var_18], rdi
mov rax, [rsp+38h+var_18]
mov rax, [rax+18h]
mov [rsp+38h+var_20], rax
mov rax, [rsp+38h+var_20]
mov eax, [rax+100h]
shl eax, 18h
sar eax, 18h
cmp eax, 0
jnz short loc_21C8E
mov rax, [rsp+38h+var_20]
mov ecx, [rax+100h]
and ecx, 0FFFFFF00h
or ecx, 1
mov [rax+100h], ecx
mov rdi, [rsp+38h+var_18]
lea rsi, aOutOfMemory; "out of memory"
mov al, 0
call JS_ThrowInternalError
mov [rsp+38h+var_30], rax
mov [rsp+38h+var_28], rdx
mov rax, [rsp+38h+var_20]
mov ecx, [rax+100h]
and ecx, 0FFFFFF00h
or ecx, 0
mov [rax+100h], ecx
loc_21C8E:
mov dword ptr [rsp+38h+var_10], 0
mov [rsp+38h+var_8], 6
mov rax, [rsp+38h+var_10]
mov rdx, [rsp+38h+var_8]
add rsp, 38h
retn
|
long long JS_ThrowOutOfMemory(long long a1, long long a2, int a3, long long a4, int a5, int a6)
{
unsigned int v6; // ecx
long long v8; // [rsp+18h] [rbp-20h]
long long v9; // [rsp+28h] [rbp-10h]
v8 = *(_QWORD *)(a1 + 24);
if ( !(unsigned __int8)*(_DWORD *)(v8 + 256) )
{
v6 = *(_DWORD *)(v8 + 256) & 0xFFFFFF00 | 1;
*(_DWORD *)(v8 + 256) = v6;
JS_ThrowInternalError(a1, (unsigned int)"out of memory", a3, v6, a5, a6);
*(_DWORD *)(v8 + 256) &= 0xFFFFFF00;
}
LODWORD(v9) = 0;
return v9;
}
|
JS_ThrowOutOfMemory:
SUB RSP,0x38
MOV qword ptr [RSP + 0x20],RDI
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV EAX,dword ptr [RAX + 0x100]
SHL EAX,0x18
SAR EAX,0x18
CMP EAX,0x0
JNZ 0x00121c8e
MOV RAX,qword ptr [RSP + 0x18]
MOV ECX,dword ptr [RAX + 0x100]
AND ECX,0xffffff00
OR ECX,0x1
MOV dword ptr [RAX + 0x100],ECX
MOV RDI,qword ptr [RSP + 0x20]
LEA RSI,[0x20dce4]
MOV AL,0x0
CALL 0x0012d4e0
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP + 0x10],RDX
MOV RAX,qword ptr [RSP + 0x18]
MOV ECX,dword ptr [RAX + 0x100]
AND ECX,0xffffff00
OR ECX,0x0
MOV dword ptr [RAX + 0x100],ECX
LAB_00121c8e:
MOV dword ptr [RSP + 0x28],0x0
MOV qword ptr [RSP + 0x30],0x6
MOV RAX,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RSP + 0x30]
ADD RSP,0x38
RET
|
int1 [16] JS_ThrowOutOfMemory(long param_1)
{
long lVar1;
int1 auVar2 [16];
uint uStack_c;
lVar1 = *(long *)(param_1 + 0x18);
if ((char)*(int4 *)(lVar1 + 0x100) == '\0') {
*(uint *)(lVar1 + 0x100) = *(uint *)(lVar1 + 0x100) & 0xffffff00 | 1;
JS_ThrowInternalError(param_1,"out of memory");
*(uint *)(lVar1 + 0x100) = *(uint *)(lVar1 + 0x100) & 0xffffff00;
}
auVar2._8_8_ = 6;
auVar2._0_8_ = (ulong)uStack_c << 0x20;
return auVar2;
}
|
|
64,569 |
JS_ThrowOutOfMemory
|
bluesky950520[P]quickjs/quickjs.c
|
JSValue JS_ThrowOutOfMemory(JSContext *ctx)
{
JSRuntime *rt = ctx->rt;
if (!rt->in_out_of_memory) {
rt->in_out_of_memory = TRUE;
JS_ThrowInternalError(ctx, "out of memory");
rt->in_out_of_memory = FALSE;
}
return JS_EXCEPTION;
}
|
O1
|
c
|
JS_ThrowOutOfMemory:
pushq %rbx
movq 0x18(%rdi), %rbx
movl 0x100(%rbx), %eax
testb %al, %al
jne 0x1cb90
orl $0x1, %eax
movl %eax, 0x100(%rbx)
leaq 0x820fe(%rip), %rsi # 0x9ec80
xorl %eax, %eax
callq 0x22693
movb $0x0, 0x100(%rbx)
movl $0x6, %edx
xorl %eax, %eax
popq %rbx
retq
|
JS_ThrowOutOfMemory:
push rbx
mov rbx, [rdi+18h]
mov eax, [rbx+100h]
test al, al
jnz short loc_1CB90
or eax, 1
mov [rbx+100h], eax
lea rsi, aOutOfMemory; "out of memory"
xor eax, eax
call JS_ThrowInternalError
mov byte ptr [rbx+100h], 0
loc_1CB90:
mov edx, 6
xor eax, eax
pop rbx
retn
|
long long JS_ThrowOutOfMemory(long long a1, long long a2, int a3, int a4, int a5, int a6)
{
long long v6; // rbx
int v7; // eax
v6 = *(_QWORD *)(a1 + 24);
v7 = *(_DWORD *)(v6 + 256);
if ( !(_BYTE)v7 )
{
*(_DWORD *)(v6 + 256) = v7 | 1;
JS_ThrowInternalError(a1, (unsigned int)"out of memory", a3, a4, a5, a6);
*(_BYTE *)(v6 + 256) = 0;
}
return 0LL;
}
| |||
64,570 |
my_copy_incomplete_char
|
eloqsql/strings/ctype-ucs2.c
|
static my_char_copy_status_t
my_copy_incomplete_char(CHARSET_INFO *cs,
char *dst, size_t dst_length,
const char *src, size_t src_length,
size_t nchars, my_bool fix)
{
size_t pad_length;
size_t src_offset= src_length % cs->mbminlen;
if (dst_length < cs->mbminlen || !nchars)
return MY_CHAR_COPY_ERROR;
pad_length= cs->mbminlen - src_offset;
bzero(dst, pad_length);
memmove(dst + pad_length, src, src_offset);
/*
In some cases left zero-padding can create an incorrect character.
For example:
INSERT INTO t1 (utf32_column) VALUES (0x110000);
We'll pad the value to 0x00110000, which is a wrong UTF32 sequence!
The valid characters range is limited to 0x00000000..0x0010FFFF.
Make sure we didn't pad to an incorrect character.
*/
if (my_ci_charlen(cs, (uchar *) dst, (uchar *) dst + cs->mbminlen) ==
(int) cs->mbminlen)
return MY_CHAR_COPY_OK;
if (fix &&
my_ci_wc_mb(cs, '?', (uchar *) dst, (uchar *) dst + cs->mbminlen) ==
(int) cs->mbminlen)
return MY_CHAR_COPY_FIXED;
return MY_CHAR_COPY_ERROR;
}
|
O0
|
c
|
my_copy_incomplete_char:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movb 0x10(%rbp), %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movq -0x30(%rbp), %rax
movq -0x10(%rbp), %rcx
movl 0x98(%rcx), %ecx
xorl %edx, %edx
divq %rcx
movq %rdx, -0x48(%rbp)
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
movl 0x98(%rcx), %ecx
cmpq %rcx, %rax
jb 0x62844
cmpq $0x0, -0x38(%rbp)
jne 0x62850
movl $0x1, -0x4(%rbp)
jmp 0x6290d
movq -0x10(%rbp), %rax
movl 0x98(%rax), %eax
subq -0x48(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rdi
movq -0x40(%rbp), %rdx
xorl %esi, %esi
callq 0x24180
movq -0x18(%rbp), %rdi
addq -0x40(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0x24570
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x10(%rbp), %rax
movl 0x98(%rax), %eax
addq %rax, %rdx
callq 0x62920
movq -0x10(%rbp), %rcx
cmpl 0x98(%rcx), %eax
jne 0x628b9
movl $0x0, -0x4(%rbp)
jmp 0x6290d
movsbl 0x10(%rbp), %eax
cmpl $0x0, %eax
je 0x62906
movq -0x10(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x30(%rax), %rax
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rdx
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rsi
movl 0x98(%rsi), %esi
addq %rsi, %rcx
movl $0x3f, %esi
callq *%rax
movq -0x10(%rbp), %rcx
cmpl 0x98(%rcx), %eax
jne 0x62906
movl $0x2, -0x4(%rbp)
jmp 0x6290d
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_copy_incomplete_char:
push rbp
mov rbp, rsp
sub rsp, 50h
mov al, [rbp+arg_0]
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov [rbp+var_38], r9
mov rax, [rbp+var_30]
mov rcx, [rbp+var_10]
mov ecx, [rcx+98h]
xor edx, edx
div rcx
mov [rbp+var_48], rdx
mov rax, [rbp+var_20]
mov rcx, [rbp+var_10]
mov ecx, [rcx+98h]
cmp rax, rcx
jb short loc_62844
cmp [rbp+var_38], 0
jnz short loc_62850
loc_62844:
mov [rbp+var_4], 1
jmp loc_6290D
loc_62850:
mov rax, [rbp+var_10]
mov eax, [rax+98h]
sub rax, [rbp+var_48]
mov [rbp+var_40], rax
mov rdi, [rbp+var_18]
mov rdx, [rbp+var_40]
xor esi, esi
call _memset
mov rdi, [rbp+var_18]
add rdi, [rbp+var_40]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_48]
call _memmove
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_18]
mov rax, [rbp+var_10]
mov eax, [rax+98h]
add rdx, rax
call my_ci_charlen_3
mov rcx, [rbp+var_10]
cmp eax, [rcx+98h]
jnz short loc_628B9
mov [rbp+var_4], 0
jmp short loc_6290D
loc_628B9:
movsx eax, [rbp+arg_0]
cmp eax, 0
jz short loc_62906
mov rax, [rbp+var_10]
mov rax, [rax+0B8h]
mov rax, [rax+30h]
mov rdi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_18]
mov rsi, [rbp+var_10]
mov esi, [rsi+98h]
add rcx, rsi
mov esi, 3Fh ; '?'
call rax
mov rcx, [rbp+var_10]
cmp eax, [rcx+98h]
jnz short loc_62906
mov [rbp+var_4], 2
jmp short loc_6290D
loc_62906:
mov [rbp+var_4], 1
loc_6290D:
mov eax, [rbp+var_4]
add rsp, 50h
pop rbp
retn
|
long long my_copy_incomplete_char(
long long a1,
long long a2,
unsigned long long a3,
long long a4,
unsigned long long a5,
long long a6,
char a7)
{
unsigned long long v8; // [rsp+8h] [rbp-48h]
unsigned long long v9; // [rsp+10h] [rbp-40h]
v8 = a5 % *(unsigned int *)(a1 + 152);
if ( a3 >= *(unsigned int *)(a1 + 152) && a6 )
{
v9 = *(unsigned int *)(a1 + 152) - v8;
memset(a2, 0LL, v9);
memmove(v9 + a2, a4, v8);
if ( (unsigned int)my_ci_charlen_3(a1, a2, *(unsigned int *)(a1 + 152) + a2) == *(_DWORD *)(a1 + 152) )
{
return 0;
}
else if ( a7
&& (*(unsigned int ( **)(long long, long long, long long, long long))(*(_QWORD *)(a1 + 184) + 48LL))(
a1,
63LL,
a2,
*(unsigned int *)(a1 + 152) + a2) == *(_DWORD *)(a1 + 152) )
{
return 2;
}
else
{
return 1;
}
}
else
{
return 1;
}
}
|
my_copy_incomplete_char:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV AL,byte ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
MOV qword ptr [RBP + -0x38],R9
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RCX + 0x98]
XOR EDX,EDX
DIV RCX
MOV qword ptr [RBP + -0x48],RDX
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RCX + 0x98]
CMP RAX,RCX
JC 0x00162844
CMP qword ptr [RBP + -0x38],0x0
JNZ 0x00162850
LAB_00162844:
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0016290d
LAB_00162850:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x98]
SUB RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x40],RAX
MOV RDI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x40]
XOR ESI,ESI
CALL 0x00124180
MOV RDI,qword ptr [RBP + -0x18]
ADD RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x48]
CALL 0x00124570
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x98]
ADD RDX,RAX
CALL 0x00162920
MOV RCX,qword ptr [RBP + -0x10]
CMP EAX,dword ptr [RCX + 0x98]
JNZ 0x001628b9
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0016290d
LAB_001628b9:
MOVSX EAX,byte ptr [RBP + 0x10]
CMP EAX,0x0
JZ 0x00162906
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xb8]
MOV RAX,qword ptr [RAX + 0x30]
MOV RDI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RSI + 0x98]
ADD RCX,RSI
MOV ESI,0x3f
CALL RAX
MOV RCX,qword ptr [RBP + -0x10]
CMP EAX,dword ptr [RCX + 0x98]
JNZ 0x00162906
MOV dword ptr [RBP + -0x4],0x2
JMP 0x0016290d
LAB_00162906:
MOV dword ptr [RBP + -0x4],0x1
LAB_0016290d:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x50
POP RBP
RET
|
int4
my_copy_incomplete_char
(long param_1,void *param_2,ulong param_3,void *param_4,ulong param_5,long param_6,
char param_7)
{
int iVar1;
size_t __n;
int4 local_c;
param_5 = param_5 % (ulong)*(uint *)(param_1 + 0x98);
if ((param_3 < *(uint *)(param_1 + 0x98)) || (param_6 == 0)) {
local_c = 1;
}
else {
__n = *(uint *)(param_1 + 0x98) - param_5;
memset(param_2,0,__n);
memmove((void *)((long)param_2 + __n),param_4,param_5);
iVar1 = my_ci_charlen(param_1,param_2,(long)param_2 + (ulong)*(uint *)(param_1 + 0x98));
if (iVar1 == *(int *)(param_1 + 0x98)) {
local_c = 0;
}
else {
if ((param_7 != '\0') &&
(iVar1 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x30))
(param_1,0x3f,param_2,(long)param_2 + (ulong)*(uint *)(param_1 + 0x98)),
iVar1 == *(int *)(param_1 + 0x98))) {
return 2;
}
local_c = 1;
}
}
return local_c;
}
|
|
64,571 |
ggml_clamp
|
ngxson[P]ggml-easy/ggml/src/ggml.c
|
struct ggml_tensor * ggml_clamp(
struct ggml_context * ctx,
struct ggml_tensor * a,
float min,
float max) {
// TODO: when implement backward, fix this:
struct ggml_tensor * result = ggml_view_tensor(ctx, a);
float params[] = { min, max };
ggml_set_op_params(result, params, sizeof(params));
result->op = GGML_OP_CLAMP;
result->src[0] = a;
return result;
}
|
O1
|
c
|
ggml_clamp:
pushq %rbx
subq $0x10, %rsp
movss %xmm1, 0xc(%rsp)
movss %xmm0, 0x8(%rsp)
movq %rsi, %rbx
callq 0x16260
testq %rax, %rax
je 0x1d040
movss 0x8(%rsp), %xmm0
movss %xmm0, 0x54(%rax)
movss 0xc(%rsp), %xmm0
movss %xmm0, 0x58(%rax)
movl $0x2f, 0x50(%rax)
movq %rbx, 0x98(%rax)
addq $0x10, %rsp
popq %rbx
retq
leaq 0x2f791(%rip), %rdi # 0x4c7d8
leaq 0x2d60c(%rip), %rdx # 0x4a65a
leaq 0x2f7d3(%rip), %rcx # 0x4c828
movl $0x70, %esi
xorl %eax, %eax
callq 0x17c70
|
ggml_clamp:
push rbx
sub rsp, 10h
movss [rsp+18h+var_C], xmm1
movss [rsp+18h+var_10], xmm0
mov rbx, rsi
call _ggml_view_tensor
test rax, rax
jz short loc_1D040
movss xmm0, [rsp+18h+var_10]
movss dword ptr [rax+54h], xmm0
movss xmm0, [rsp+18h+var_C]
movss dword ptr [rax+58h], xmm0
mov dword ptr [rax+50h], 2Fh ; '/'
mov [rax+98h], rbx
add rsp, 10h
pop rbx
retn
loc_1D040:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorNull; "tensor != NULL"
mov esi, 70h ; 'p'
xor eax, eax
call _ggml_abort
|
long long ggml_clamp(long long a1, long long a2, float a3, float a4)
{
long long result; // rax
int v5; // r8d
int v6; // r9d
result = ggml_view_tensor(a1, a2);
if ( !result )
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-impl.h",
112,
(unsigned int)"GGML_ASSERT(%s) failed",
(unsigned int)"tensor != NULL",
v5,
v6);
*(float *)(result + 84) = a3;
*(float *)(result + 88) = a4;
*(_DWORD *)(result + 80) = 47;
*(_QWORD *)(result + 152) = a2;
return result;
}
|
ggml_clamp:
PUSH RBX
SUB RSP,0x10
MOVSS dword ptr [RSP + 0xc],XMM1
MOVSS dword ptr [RSP + 0x8],XMM0
MOV RBX,RSI
CALL 0x00116260
TEST RAX,RAX
JZ 0x0011d040
MOVSS XMM0,dword ptr [RSP + 0x8]
MOVSS dword ptr [RAX + 0x54],XMM0
MOVSS XMM0,dword ptr [RSP + 0xc]
MOVSS dword ptr [RAX + 0x58],XMM0
MOV dword ptr [RAX + 0x50],0x2f
MOV qword ptr [RAX + 0x98],RBX
ADD RSP,0x10
POP RBX
RET
LAB_0011d040:
LEA RDI,[0x14c7d8]
LEA RDX,[0x14a65a]
LEA RCX,[0x14c828]
MOV ESI,0x70
XOR EAX,EAX
CALL 0x00117c70
|
void ggml_clamp(int4 param_1,int4 param_2,int8 param_3,int8 param_4)
{
long lVar1;
lVar1 = ggml_view_tensor();
if (lVar1 != 0) {
*(int4 *)(lVar1 + 0x54) = param_1;
*(int4 *)(lVar1 + 0x58) = param_2;
*(int4 *)(lVar1 + 0x50) = 0x2f;
*(int8 *)(lVar1 + 0x98) = param_4;
return;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-impl.h",0x70,
"GGML_ASSERT(%s) failed","tensor != NULL");
}
|
|
64,572 |
ggml_clamp
|
ngxson[P]ggml-easy/ggml/src/ggml.c
|
struct ggml_tensor * ggml_clamp(
struct ggml_context * ctx,
struct ggml_tensor * a,
float min,
float max) {
// TODO: when implement backward, fix this:
struct ggml_tensor * result = ggml_view_tensor(ctx, a);
float params[] = { min, max };
ggml_set_op_params(result, params, sizeof(params));
result->op = GGML_OP_CLAMP;
result->src[0] = a;
return result;
}
|
O2
|
c
|
ggml_clamp:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movss %xmm1, 0xc(%rsp)
movss %xmm0, 0x8(%rsp)
movq %rsi, %rbx
callq 0x1c3e0
movq %rax, %r14
leaq 0x10(%rsp), %rsi
movss 0x8(%rsp), %xmm0
movss %xmm0, (%rsi)
movss 0xc(%rsp), %xmm0
movss %xmm0, 0x4(%rsi)
pushq $0x8
popq %rdx
movq %rax, %rdi
callq 0x20fbc
movl $0x2f, 0x50(%r14)
movq %rbx, 0x98(%r14)
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
|
ggml_clamp:
push r14
push rbx
sub rsp, 18h
movss [rsp+28h+var_1C], xmm1
movss [rsp+28h+var_20], xmm0
mov rbx, rsi
call _ggml_view_tensor
mov r14, rax
lea rsi, [rsp+28h+var_18]
movss xmm0, [rsp+28h+var_20]
movss dword ptr [rsi], xmm0
movss xmm0, [rsp+28h+var_1C]
movss dword ptr [rsi+4], xmm0
push 8
pop rdx
mov rdi, rax
call ggml_set_op_params
mov dword ptr [r14+50h], 2Fh ; '/'
mov [r14+98h], rbx
mov rax, r14
add rsp, 18h
pop rbx
pop r14
retn
|
long long ggml_clamp(
long long a1,
long long a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10)
{
long long v10; // r14
long long v11; // rcx
long long v12; // r8
long long v13; // r9
__m128 v14; // xmm4
__m128 v15; // xmm5
_DWORD v17[6]; // [rsp+10h] [rbp-18h] BYREF
v10 = ggml_view_tensor(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
v17[0] = a3.m128_i32[0];
v17[1] = a4.m128_i32[0];
ggml_set_op_params(v10, (long long)v17, 8LL, (__m128)a4.m128_u32[0], a4, a5, a6, v14, v15, a9, a10, v11, v12, v13);
*(_DWORD *)(v10 + 80) = 47;
*(_QWORD *)(v10 + 152) = a2;
return v10;
}
|
ggml_clamp:
PUSH R14
PUSH RBX
SUB RSP,0x18
MOVSS dword ptr [RSP + 0xc],XMM1
MOVSS dword ptr [RSP + 0x8],XMM0
MOV RBX,RSI
CALL 0x0011c3e0
MOV R14,RAX
LEA RSI,[RSP + 0x10]
MOVSS XMM0,dword ptr [RSP + 0x8]
MOVSS dword ptr [RSI],XMM0
MOVSS XMM0,dword ptr [RSP + 0xc]
MOVSS dword ptr [RSI + 0x4],XMM0
PUSH 0x8
POP RDX
MOV RDI,RAX
CALL 0x00120fbc
MOV dword ptr [R14 + 0x50],0x2f
MOV qword ptr [R14 + 0x98],RBX
MOV RAX,R14
ADD RSP,0x18
POP RBX
POP R14
RET
|
long ggml_clamp(int4 param_1,int4 param_2,int8 param_3,int8 param_4)
{
long lVar1;
int4 local_18;
int4 local_14;
lVar1 = ggml_view_tensor();
local_18 = param_1;
local_14 = param_2;
ggml_set_op_params(lVar1,&local_18,8);
*(int4 *)(lVar1 + 0x50) = 0x2f;
*(int8 *)(lVar1 + 0x98) = param_4;
return lVar1;
}
|
|
64,573 |
pvio_socket_fast_send
|
eloqsql/libmariadb/plugins/pvio/pvio_socket.c
|
int pvio_socket_fast_send(MARIADB_PVIO *pvio)
{
int r= 0;
struct st_pvio_socket *csock= NULL;
if (!pvio || !pvio->data)
return 1;
csock= (struct st_pvio_socket *)pvio->data;
/* Setting IP_TOS is not recommended on Windows. See
http://msdn.microsoft.com/en-us/library/windows/desktop/ms738586(v=vs.85).aspx
*/
#if !defined(_WIN32) && defined(IPTOS_THROUGHPUT)
{
int tos = IPTOS_THROUGHPUT;
r= setsockopt(csock->socket, IPPROTO_IP, IP_TOS,
(const void *)&tos, sizeof(tos));
}
#endif /* !_WIN32 && IPTOS_THROUGHPUT */
if (!r)
{
int opt = 1;
/* turn off nagle algorithm */
r= setsockopt(csock->socket, IPPROTO_TCP, TCP_NODELAY,
#ifdef _WIN32
(const char *)&opt, (int)sizeof(opt));
#else
(const void *)&opt, sizeof(opt));
#endif
}
return r;
}
|
O0
|
c
|
pvio_socket_fast_send:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movq $0x0, -0x20(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x4a07c
movq -0x10(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x4a085
movl $0x1, -0x4(%rbp)
jmp 0x4a0eb
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
movl $0x8, -0x24(%rbp)
movq -0x20(%rbp), %rax
movl (%rax), %edi
xorl %esi, %esi
movl $0x1, %edx
leaq -0x24(%rbp), %rcx
movl $0x4, %r8d
callq 0x13770
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
jne 0x4a0e5
movl $0x1, -0x28(%rbp)
movq -0x20(%rbp), %rax
movl (%rax), %edi
movl $0x6, %esi
movl $0x1, %edx
leaq -0x28(%rbp), %rcx
movl $0x4, %r8d
callq 0x13770
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
pvio_socket_fast_send:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_14], 0
mov [rbp+var_20], 0
cmp [rbp+var_10], 0
jz short loc_4A07C
mov rax, [rbp+var_10]
cmp qword ptr [rax], 0
jnz short loc_4A085
loc_4A07C:
mov [rbp+var_4], 1
jmp short loc_4A0EB
loc_4A085:
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_20], rax
mov [rbp+var_24], 8
mov rax, [rbp+var_20]
mov edi, [rax]
xor esi, esi
mov edx, 1
lea rcx, [rbp+var_24]
mov r8d, 4
call _setsockopt
mov [rbp+var_14], eax
cmp [rbp+var_14], 0
jnz short loc_4A0E5
mov [rbp+var_28], 1
mov rax, [rbp+var_20]
mov edi, [rax]
mov esi, 6
mov edx, 1
lea rcx, [rbp+var_28]
mov r8d, 4
call _setsockopt
mov [rbp+var_14], eax
loc_4A0E5:
mov eax, [rbp+var_14]
mov [rbp+var_4], eax
loc_4A0EB:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
|
long long pvio_socket_fast_send(unsigned int **a1)
{
int v2; // [rsp+8h] [rbp-28h] BYREF
int v3; // [rsp+Ch] [rbp-24h] BYREF
unsigned int *v4; // [rsp+10h] [rbp-20h]
unsigned int v5; // [rsp+1Ch] [rbp-14h]
unsigned int **v6; // [rsp+20h] [rbp-10h]
v6 = a1;
v5 = 0;
v4 = 0LL;
if ( a1 && *v6 )
{
v4 = *v6;
v3 = 8;
v5 = setsockopt(*v4, 0LL, 1LL, &v3, 4LL);
if ( !v5 )
{
v2 = 1;
return (unsigned int)setsockopt(*v4, 6LL, 1LL, &v2, 4LL);
}
return v5;
}
else
{
return 1;
}
}
|
pvio_socket_fast_send:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],0x0
MOV qword ptr [RBP + -0x20],0x0
CMP qword ptr [RBP + -0x10],0x0
JZ 0x0014a07c
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX],0x0
JNZ 0x0014a085
LAB_0014a07c:
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0014a0eb
LAB_0014a085:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
MOV dword ptr [RBP + -0x24],0x8
MOV RAX,qword ptr [RBP + -0x20]
MOV EDI,dword ptr [RAX]
XOR ESI,ESI
MOV EDX,0x1
LEA RCX,[RBP + -0x24]
MOV R8D,0x4
CALL 0x00113770
MOV dword ptr [RBP + -0x14],EAX
CMP dword ptr [RBP + -0x14],0x0
JNZ 0x0014a0e5
MOV dword ptr [RBP + -0x28],0x1
MOV RAX,qword ptr [RBP + -0x20]
MOV EDI,dword ptr [RAX]
MOV ESI,0x6
MOV EDX,0x1
LEA RCX,[RBP + -0x28]
MOV R8D,0x4
CALL 0x00113770
MOV dword ptr [RBP + -0x14],EAX
LAB_0014a0e5:
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x4],EAX
LAB_0014a0eb:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int pvio_socket_fast_send(long *param_1)
{
int4 local_30;
int4 local_2c;
int *local_28;
int local_1c;
long *local_18;
int local_c;
local_1c = 0;
if ((param_1 == (long *)0x0) || (*param_1 == 0)) {
local_c = 1;
}
else {
local_28 = (int *)*param_1;
local_2c = 8;
local_18 = param_1;
local_1c = setsockopt(*local_28,0,1,&local_2c,4);
if (local_1c == 0) {
local_30 = 1;
local_1c = setsockopt(*local_28,6,1,&local_30,4);
}
local_c = local_1c;
}
return local_c;
}
|
|
64,574 |
pvio_socket_fast_send
|
eloqsql/libmariadb/plugins/pvio/pvio_socket.c
|
int pvio_socket_fast_send(MARIADB_PVIO *pvio)
{
int r= 0;
struct st_pvio_socket *csock= NULL;
if (!pvio || !pvio->data)
return 1;
csock= (struct st_pvio_socket *)pvio->data;
/* Setting IP_TOS is not recommended on Windows. See
http://msdn.microsoft.com/en-us/library/windows/desktop/ms738586(v=vs.85).aspx
*/
#if !defined(_WIN32) && defined(IPTOS_THROUGHPUT)
{
int tos = IPTOS_THROUGHPUT;
r= setsockopt(csock->socket, IPPROTO_IP, IP_TOS,
(const void *)&tos, sizeof(tos));
}
#endif /* !_WIN32 && IPTOS_THROUGHPUT */
if (!r)
{
int opt = 1;
/* turn off nagle algorithm */
r= setsockopt(csock->socket, IPPROTO_TCP, TCP_NODELAY,
#ifdef _WIN32
(const char *)&opt, (int)sizeof(opt));
#else
(const void *)&opt, sizeof(opt));
#endif
}
return r;
}
|
O3
|
c
|
pvio_socket_fast_send:
movl $0x1, %eax
testq %rdi, %rdi
je 0x3451a
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq (%rdi), %rbx
testq %rbx, %rbx
je 0x34514
leaq -0x10(%rbp), %rcx
movl $0x8, (%rcx)
movl (%rbx), %edi
xorl %esi, %esi
movl $0x1, %edx
movl $0x4, %r8d
callq 0x137b0
testl %eax, %eax
jne 0x34514
leaq -0xc(%rbp), %rcx
movl $0x1, (%rcx)
movl (%rbx), %edi
movl $0x6, %esi
movl $0x1, %edx
movl $0x4, %r8d
callq 0x137b0
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
|
pvio_socket_fast_send:
mov eax, 1
test rdi, rdi
jz short locret_3451A
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, [rdi]
test rbx, rbx
jz short loc_34514
lea rcx, [rbp-10h]
mov dword ptr [rcx], 8
mov edi, [rbx]
xor esi, esi
mov edx, 1
mov r8d, 4
call _setsockopt
test eax, eax
jnz short loc_34514
lea rcx, [rbp-0Ch]
mov dword ptr [rcx], 1
mov edi, [rbx]
mov esi, 6
mov edx, 1
mov r8d, 4
call _setsockopt
loc_34514:
add rsp, 8
pop rbx
pop rbp
locret_3451A:
retn
|
long long pvio_socket_fast_send(unsigned int **a1)
{
long long result; // rax
unsigned int *v2; // rbx
_QWORD v3[3]; // [rsp-18h] [rbp-18h] BYREF
result = 1LL;
if ( a1 )
{
v3[0] = 1LL;
v2 = *a1;
if ( *a1 )
{
LODWORD(v3[0]) = 8;
result = setsockopt(*v2, 0LL, 1LL, v3, 4LL);
if ( !(_DWORD)result )
{
HIDWORD(v3[0]) = 1;
return setsockopt(*v2, 6LL, 1LL, (char *)v3 + 4, 4LL);
}
}
}
return result;
}
|
pvio_socket_fast_send:
MOV EAX,0x1
TEST RDI,RDI
JZ 0x0013451a
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,qword ptr [RDI]
TEST RBX,RBX
JZ 0x00134514
LEA RCX,[RBP + -0x10]
MOV dword ptr [RCX],0x8
MOV EDI,dword ptr [RBX]
XOR ESI,ESI
MOV EDX,0x1
MOV R8D,0x4
CALL 0x001137b0
TEST EAX,EAX
JNZ 0x00134514
LEA RCX,[RBP + -0xc]
MOV dword ptr [RCX],0x1
MOV EDI,dword ptr [RBX]
MOV ESI,0x6
MOV EDX,0x1
MOV R8D,0x4
CALL 0x001137b0
LAB_00134514:
ADD RSP,0x8
POP RBX
POP RBP
LAB_0013451a:
RET
|
void pvio_socket_fast_send(int8 *param_1)
{
int *piVar1;
int iVar2;
int8 local_18;
if ((param_1 != (int8 *)0x0) && (piVar1 = (int *)*param_1, piVar1 != (int *)0x0)) {
local_18 = 8;
iVar2 = setsockopt(*piVar1,0,1,&local_18,4);
if (iVar2 == 0) {
local_18 = CONCAT44(1,(int4)local_18);
setsockopt(*piVar1,6,1,(void *)((long)&local_18 + 4),4);
}
}
return;
}
|
|
64,575 |
my_hash_sort_utf16_nopad
|
eloqsql/strings/ctype-ucs2.c
|
static void
my_hash_sort_utf16_nopad(CHARSET_INFO *cs,
const uchar *s, size_t slen,
ulong *nr1, ulong *nr2)
{
my_wc_t wc;
my_charset_conv_mb_wc mb_wc= cs->cset->mb_wc;
int res;
const uchar *e= s + slen;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
register ulong m1= *nr1, m2= *nr2;
while ((s < e) && (res= mb_wc(cs, &wc, (uchar *) s, (uchar *) e)) > 0)
{
my_tosort_utf16(uni_plane, &wc);
MY_HASH_ADD_16(m1, m2, wc);
s+= res;
}
*nr1= m1;
*nr2= m2;
}
|
O3
|
c
|
my_hash_sort_utf16_nopad:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, -0x40(%rbp)
movq (%rcx), %rbx
movq %r8, -0x48(%rbp)
movq (%r8), %r14
testq %rdx, %rdx
jle 0x47d45
movq %rdx, %r15
movq %rsi, %r12
movq 0x78(%rdi), %rax
movq %rax, -0x30(%rbp)
movq 0xb8(%rdi), %rax
movq 0x28(%rax), %rax
movq %rax, -0x50(%rbp)
addq %rsi, %r15
movq %rdi, %r13
leaq -0x38(%rbp), %rsi
movq %r12, %rdx
movq %r15, %rcx
callq *-0x50(%rbp)
testl %eax, %eax
jle 0x47d45
movq -0x38(%rbp), %rdx
movl $0xfffd, %esi # imm = 0xFFFD
movq -0x30(%rbp), %rcx
cmpq (%rcx), %rdx
movq %r13, %rdi
ja 0x47cee
movq -0x30(%rbp), %rcx
movq 0x8(%rcx), %rsi
movq %rdx, %rcx
shrq $0x8, %rcx
movq (%rsi,%rcx,8), %rsi
testq %rsi, %rsi
je 0x47cfa
movzbl %dl, %ecx
leaq (%rcx,%rcx,2), %rcx
movl 0x8(%rsi,%rcx,4), %esi
movq %rsi, -0x38(%rbp)
movl %esi, %ecx
shrl $0x8, %ecx
movq %rsi, %rdx
movl %ebx, %esi
andl $0x3f, %esi
addq %r14, %rsi
movzbl %dl, %edx
imulq %rsi, %rdx
movq %rbx, %rsi
shlq $0x8, %rsi
addq %rdx, %rsi
xorq %rbx, %rsi
movl %esi, %edx
andl $0x3f, %edx
addq %r14, %rdx
addq $0x3, %rdx
imulq %rcx, %rdx
movq %rsi, %rbx
shlq $0x8, %rbx
addq %rdx, %rbx
xorq %rsi, %rbx
addq $0x6, %r14
movl %eax, %eax
addq %rax, %r12
cmpq %r15, %r12
jb 0x47c9e
movq -0x40(%rbp), %rax
movq %rbx, (%rax)
movq -0x48(%rbp), %rax
movq %r14, (%rax)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
my_hash_sort_utf16_nopad:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov [rbp+var_40], rcx
mov rbx, [rcx]
mov [rbp+var_48], r8
mov r14, [r8]
test rdx, rdx
jle loc_47D45
mov r15, rdx
mov r12, rsi
mov rax, [rdi+78h]
mov [rbp+var_30], rax
mov rax, [rdi+0B8h]
mov rax, [rax+28h]
mov [rbp+var_50], rax
add r15, rsi
loc_47C9E:
mov r13, rdi
lea rsi, [rbp+var_38]
mov rdx, r12
mov rcx, r15
call [rbp+var_50]
test eax, eax
jle loc_47D45
mov rdx, [rbp+var_38]
mov esi, 0FFFDh
mov rcx, [rbp+var_30]
cmp rdx, [rcx]
mov rdi, r13
ja short loc_47CEE
mov rcx, [rbp+var_30]
mov rsi, [rcx+8]
mov rcx, rdx
shr rcx, 8
mov rsi, [rsi+rcx*8]
test rsi, rsi
jz short loc_47CFA
movzx ecx, dl
lea rcx, [rcx+rcx*2]
mov esi, [rsi+rcx*4+8]
loc_47CEE:
mov [rbp+var_38], rsi
mov ecx, esi
shr ecx, 8
mov rdx, rsi
loc_47CFA:
mov esi, ebx
and esi, 3Fh
add rsi, r14
movzx edx, dl
imul rdx, rsi
mov rsi, rbx
shl rsi, 8
add rsi, rdx
xor rsi, rbx
mov edx, esi
and edx, 3Fh
add rdx, r14
add rdx, 3
imul rdx, rcx
mov rbx, rsi
shl rbx, 8
add rbx, rdx
xor rbx, rsi
add r14, 6
mov eax, eax
add r12, rax
cmp r12, r15
jb loc_47C9E
loc_47D45:
mov rax, [rbp+var_40]
mov [rax], rbx
mov rax, [rbp+var_48]
mov [rax], r14
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
_QWORD * my_hash_sort_utf16_nopad(long long a1, unsigned long long a2, long long a3, long long *a4, _QWORD *a5)
{
long long v5; // rbx
long long v6; // r14
unsigned long long v7; // r12
unsigned long long v8; // r15
int v9; // eax
unsigned __int8 v10; // dl
long long v11; // rsi
unsigned long long v12; // rcx
long long v13; // rsi
long long v14; // rsi
_QWORD *result; // rax
long long ( *v16)(long long, unsigned long long *, unsigned long long, unsigned long long); // [rsp+0h] [rbp-50h]
unsigned long long v19; // [rsp+18h] [rbp-38h] BYREF
unsigned long long *v20; // [rsp+20h] [rbp-30h]
v5 = *a4;
v6 = *a5;
if ( a3 > 0 )
{
v7 = a2;
v20 = *(unsigned long long **)(a1 + 120);
v16 = *(long long ( **)(long long, unsigned long long *, unsigned long long, unsigned long long))(*(_QWORD *)(a1 + 184) + 40LL);
v8 = a2 + a3;
while ( 1 )
{
v9 = v16(a1, &v19, v7, v8);
if ( v9 <= 0 )
goto LABEL_9;
v10 = v19;
v11 = 65533LL;
if ( v19 > *v20 )
goto LABEL_7;
v12 = v19 >> 8;
v13 = *(_QWORD *)(v20[1] + 8 * (v19 >> 8));
if ( v13 )
break;
LABEL_8:
v14 = v5 ^ ((v6 + (v5 & 0x3F)) * v10 + (v5 << 8));
v5 = v14 ^ (v12 * (v6 + (((unsigned __int8)v5 ^ (unsigned __int8)((v6 + (v5 & 0x3F)) * v10)) & 0x3F) + 3)
+ (v14 << 8));
v6 += 6LL;
v7 += (unsigned int)v9;
if ( v7 >= v8 )
goto LABEL_9;
}
v11 = *(unsigned int *)(v13 + 12LL * (unsigned __int8)v19 + 8);
LABEL_7:
v19 = v11;
v12 = (unsigned int)v11 >> 8;
v10 = v11;
goto LABEL_8;
}
LABEL_9:
*a4 = v5;
result = a5;
*a5 = v6;
return result;
}
|
my_hash_sort_utf16_nopad:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV qword ptr [RBP + -0x40],RCX
MOV RBX,qword ptr [RCX]
MOV qword ptr [RBP + -0x48],R8
MOV R14,qword ptr [R8]
TEST RDX,RDX
JLE 0x00147d45
MOV R15,RDX
MOV R12,RSI
MOV RAX,qword ptr [RDI + 0x78]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RDI + 0xb8]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x50],RAX
ADD R15,RSI
LAB_00147c9e:
MOV R13,RDI
LEA RSI,[RBP + -0x38]
MOV RDX,R12
MOV RCX,R15
CALL qword ptr [RBP + -0x50]
TEST EAX,EAX
JLE 0x00147d45
MOV RDX,qword ptr [RBP + -0x38]
MOV ESI,0xfffd
MOV RCX,qword ptr [RBP + -0x30]
CMP RDX,qword ptr [RCX]
MOV RDI,R13
JA 0x00147cee
MOV RCX,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RCX + 0x8]
MOV RCX,RDX
SHR RCX,0x8
MOV RSI,qword ptr [RSI + RCX*0x8]
TEST RSI,RSI
JZ 0x00147cfa
MOVZX ECX,DL
LEA RCX,[RCX + RCX*0x2]
MOV ESI,dword ptr [RSI + RCX*0x4 + 0x8]
LAB_00147cee:
MOV qword ptr [RBP + -0x38],RSI
MOV ECX,ESI
SHR ECX,0x8
MOV RDX,RSI
LAB_00147cfa:
MOV ESI,EBX
AND ESI,0x3f
ADD RSI,R14
MOVZX EDX,DL
IMUL RDX,RSI
MOV RSI,RBX
SHL RSI,0x8
ADD RSI,RDX
XOR RSI,RBX
MOV EDX,ESI
AND EDX,0x3f
ADD RDX,R14
ADD RDX,0x3
IMUL RDX,RCX
MOV RBX,RSI
SHL RBX,0x8
ADD RBX,RDX
XOR RBX,RSI
ADD R14,0x6
MOV EAX,EAX
ADD R12,RAX
CMP R12,R15
JC 0x00147c9e
LAB_00147d45:
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RAX],RBX
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RAX],R14
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void my_hash_sort_utf16_nopad(long param_1,ulong param_2,long param_3,ulong *param_4,long *param_5)
{
code *pcVar1;
long lVar2;
uint uVar3;
ulong uVar4;
ulong uVar5;
ulong uVar6;
long lVar7;
ulong uVar8;
ulong local_40;
ulong *local_38;
uVar6 = *param_4;
lVar7 = *param_5;
if (0 < param_3) {
local_38 = *(ulong **)(param_1 + 0x78);
pcVar1 = *(code **)(*(long *)(param_1 + 0xb8) + 0x28);
uVar8 = param_3 + param_2;
do {
uVar3 = (*pcVar1)(param_1,&local_40,param_2,uVar8);
if ((int)uVar3 < 1) break;
uVar5 = 0xfffd;
if (*local_38 < local_40) {
LAB_00147cee:
uVar4 = uVar5 >> 8;
local_40 = uVar5;
}
else {
uVar4 = local_40 >> 8;
lVar2 = *(long *)(local_38[1] + uVar4 * 8);
if (lVar2 != 0) {
uVar5 = (ulong)*(uint *)(lVar2 + 8 + (local_40 & 0xff) * 0xc);
goto LAB_00147cee;
}
}
uVar6 = uVar6 * 0x100 + (local_40 & 0xff) * ((ulong)((uint)uVar6 & 0x3f) + lVar7) ^ uVar6;
uVar6 = uVar6 * 0x100 + ((ulong)((uint)uVar6 & 0x3f) + lVar7 + 3) * uVar4 ^ uVar6;
lVar7 = lVar7 + 6;
param_2 = param_2 + uVar3;
} while (param_2 < uVar8);
}
*param_4 = uVar6;
*param_5 = lVar7;
return;
}
|
|
64,576 |
add_cfg_dir
|
eloqsql/libmariadb/libmariadb/ma_default.c
|
static int add_cfg_dir(char **cfg_dirs, const char *directory)
{
int i;
for (i = 0; i < MAX_CONFIG_DIRS && cfg_dirs[i]; i++)
if (!strcmp(cfg_dirs[i], directory)) /* already present */
return 0;
if (i < MAX_CONFIG_DIRS) {
cfg_dirs[i]= strdup(directory);
return 0;
}
return 1;
}
|
O0
|
c
|
add_cfg_dir:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
xorl %eax, %eax
cmpl $0x6, -0x1c(%rbp)
movb %al, -0x1d(%rbp)
jge 0x4a465
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
setne %al
movb %al, -0x1d(%rbp)
movb -0x1d(%rbp), %al
testb $0x1, %al
jne 0x4a46e
jmp 0x4a49e
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x18(%rbp), %rsi
callq 0x135f0
cmpl $0x0, %eax
jne 0x4a491
movl $0x0, -0x4(%rbp)
jmp 0x4a4cc
jmp 0x4a493
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x4a447
cmpl $0x6, -0x1c(%rbp)
jge 0x4a4c5
movq -0x18(%rbp), %rdi
callq 0x137a0
movq %rax, %rdx
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl $0x0, -0x4(%rbp)
jmp 0x4a4cc
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
add_cfg_dir:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], 0
loc_4A447:
xor eax, eax
cmp [rbp+var_1C], 6
mov [rbp+var_1D], al
jge short loc_4A465
mov rax, [rbp+var_10]
movsxd rcx, [rbp+var_1C]
cmp qword ptr [rax+rcx*8], 0
setnz al
mov [rbp+var_1D], al
loc_4A465:
mov al, [rbp+var_1D]
test al, 1
jnz short loc_4A46E
jmp short loc_4A49E
loc_4A46E:
mov rax, [rbp+var_10]
movsxd rcx, [rbp+var_1C]
mov rdi, [rax+rcx*8]
mov rsi, [rbp+var_18]
call _strcmp
cmp eax, 0
jnz short loc_4A491
mov [rbp+var_4], 0
jmp short loc_4A4CC
loc_4A491:
jmp short $+2
loc_4A493:
mov eax, [rbp+var_1C]
add eax, 1
mov [rbp+var_1C], eax
jmp short loc_4A447
loc_4A49E:
cmp [rbp+var_1C], 6
jge short loc_4A4C5
mov rdi, [rbp+var_18]
call _strdup
mov rdx, rax
mov rax, [rbp+var_10]
movsxd rcx, [rbp+var_1C]
mov [rax+rcx*8], rdx
mov [rbp+var_4], 0
jmp short loc_4A4CC
loc_4A4C5:
mov [rbp+var_4], 1
loc_4A4CC:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
|
long long add_cfg_dir(long long a1, long long a2)
{
bool v3; // [rsp+3h] [rbp-1Dh]
int i; // [rsp+4h] [rbp-1Ch]
for ( i = 0; ; ++i )
{
v3 = 0;
if ( i < 6 )
v3 = *(_QWORD *)(a1 + 8LL * i) != 0LL;
if ( !v3 )
break;
if ( !(unsigned int)strcmp(*(_QWORD *)(a1 + 8LL * i), a2) )
return 0;
}
if ( i >= 6 )
{
return 1;
}
else
{
*(_QWORD *)(a1 + 8LL * i) = strdup(a2);
return 0;
}
}
|
add_cfg_dir:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],0x0
LAB_0014a447:
XOR EAX,EAX
CMP dword ptr [RBP + -0x1c],0x6
MOV byte ptr [RBP + -0x1d],AL
JGE 0x0014a465
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,dword ptr [RBP + -0x1c]
CMP qword ptr [RAX + RCX*0x8],0x0
SETNZ AL
MOV byte ptr [RBP + -0x1d],AL
LAB_0014a465:
MOV AL,byte ptr [RBP + -0x1d]
TEST AL,0x1
JNZ 0x0014a46e
JMP 0x0014a49e
LAB_0014a46e:
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,dword ptr [RBP + -0x1c]
MOV RDI,qword ptr [RAX + RCX*0x8]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x001135f0
CMP EAX,0x0
JNZ 0x0014a491
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0014a4cc
LAB_0014a491:
JMP 0x0014a493
LAB_0014a493:
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x0014a447
LAB_0014a49e:
CMP dword ptr [RBP + -0x1c],0x6
JGE 0x0014a4c5
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001137a0
MOV RDX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,dword ptr [RBP + -0x1c]
MOV qword ptr [RAX + RCX*0x8],RDX
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0014a4cc
LAB_0014a4c5:
MOV dword ptr [RBP + -0x4],0x1
LAB_0014a4cc:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int4 add_cfg_dir(long param_1,char *param_2)
{
int iVar1;
char *pcVar2;
bool bVar3;
int local_24;
local_24 = 0;
while( true ) {
bVar3 = false;
if (local_24 < 6) {
bVar3 = *(long *)(param_1 + (long)local_24 * 8) != 0;
}
if (!bVar3) break;
iVar1 = strcmp(*(char **)(param_1 + (long)local_24 * 8),param_2);
if (iVar1 == 0) {
return 0;
}
local_24 = local_24 + 1;
}
if (local_24 < 6) {
pcVar2 = strdup(param_2);
*(char **)(param_1 + (long)local_24 * 8) = pcVar2;
return 0;
}
return 1;
}
|
|
64,577 |
add_cfg_dir
|
eloqsql/libmariadb/libmariadb/ma_default.c
|
static int add_cfg_dir(char **cfg_dirs, const char *directory)
{
int i;
for (i = 0; i < MAX_CONFIG_DIRS && cfg_dirs[i]; i++)
if (!strcmp(cfg_dirs[i], directory)) /* already present */
return 0;
if (i < MAX_CONFIG_DIRS) {
cfg_dirs[i]= strdup(directory);
return 0;
}
return 1;
}
|
O3
|
c
|
add_cfg_dir:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
xorl %r15d, %r15d
movq (%rbx,%r15,8), %rdi
testq %rdi, %rdi
je 0x3379c
movq %r14, %rsi
callq 0x13640
testl %eax, %eax
je 0x337a8
incq %r15
cmpq $0x6, %r15
jne 0x33777
movl $0x1, %eax
jmp 0x337aa
movq %r14, %rdi
callq 0x137d0
movq %rax, (%rbx,%r15,8)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
add_cfg_dir:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
xor r15d, r15d
loc_33777:
mov rdi, [rbx+r15*8]
test rdi, rdi
jz short loc_3379C
mov rsi, r14
call _strcmp
test eax, eax
jz short loc_337A8
inc r15
cmp r15, 6
jnz short loc_33777
mov eax, 1
jmp short loc_337AA
loc_3379C:
mov rdi, r14
call _strdup
mov [rbx+r15*8], rax
loc_337A8:
xor eax, eax
loc_337AA:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long add_cfg_dir(long long a1, long long a2)
{
long long v3; // r15
long long v4; // rdi
v3 = 0LL;
while ( 1 )
{
v4 = *(_QWORD *)(a1 + 8 * v3);
if ( !v4 )
break;
if ( !(unsigned int)strcmp(v4, a2) )
return 0LL;
if ( ++v3 == 6 )
return 1LL;
}
*(_QWORD *)(a1 + 8 * v3) = strdup(a2);
return 0LL;
}
|
add_cfg_dir:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
XOR R15D,R15D
LAB_00133777:
MOV RDI,qword ptr [RBX + R15*0x8]
TEST RDI,RDI
JZ 0x0013379c
MOV RSI,R14
CALL 0x00113640
TEST EAX,EAX
JZ 0x001337a8
INC R15
CMP R15,0x6
JNZ 0x00133777
MOV EAX,0x1
JMP 0x001337aa
LAB_0013379c:
MOV RDI,R14
CALL 0x001137d0
MOV qword ptr [RBX + R15*0x8],RAX
LAB_001337a8:
XOR EAX,EAX
LAB_001337aa:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
int8 add_cfg_dir(long param_1,char *param_2)
{
int iVar1;
char *pcVar2;
long lVar3;
lVar3 = 0;
while( true ) {
pcVar2 = *(char **)(param_1 + lVar3 * 8);
if (pcVar2 == (char *)0x0) {
pcVar2 = strdup(param_2);
*(char **)(param_1 + lVar3 * 8) = pcVar2;
return 0;
}
iVar1 = strcmp(pcVar2,param_2);
if (iVar1 == 0) break;
lVar3 = lVar3 + 1;
if (lVar3 == 6) {
return 1;
}
}
return 0;
}
|
|
64,578 |
LefDefParser::lefwStartArrayFloorplan(char const*)
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
|
int
lefwStartArrayFloorplan(const char *name)
{
if (!lefwFile)
return LEFW_UNINITIALIZED;
if (lefwState != LEFW_ARRAY_START &&
lefwState != LEFW_ARRAY)
return LEFW_BAD_ORDER;
if (lefwIsArrayFloorp)
return LEFW_BAD_ORDER;
if (!name || name == 0 || *name == 0)
return LEFW_BAD_DATA;
if (lefwWriteEncrypt)
encPrint(lefwFile, (char*) " FLOORPLAN %s\n", name);
else
fprintf(lefwFile, " FLOORPLAN %s\n", name);
lefwLines++;
lefwHasArrayReq = 1;
lefwIsArrayFloorp = 1;
return LEFW_OK;
}
|
O0
|
cpp
|
LefDefParser::lefwStartArrayFloorplan(char const*):
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
leaq 0x15be0(%rip), %rax # 0x32e00
cmpq $0x0, (%rax)
jne 0x1d233
movl $0x1, 0x14(%rsp)
jmp 0x1d314
leaq 0x15e16(%rip), %rax # 0x33050
cmpl $0x2, (%rax)
je 0x1d258
leaq 0x15e0a(%rip), %rax # 0x33050
cmpl $0x13, (%rax)
je 0x1d258
movl $0x2, 0x14(%rsp)
jmp 0x1d314
leaq 0x15e19(%rip), %rax # 0x33078
cmpl $0x0, (%rax)
je 0x1d271
movl $0x2, 0x14(%rsp)
jmp 0x1d314
cmpq $0x0, 0x8(%rsp)
je 0x1d28e
cmpq $0x0, 0x8(%rsp)
je 0x1d28e
movq 0x8(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x1d298
movl $0x3, 0x14(%rsp)
jmp 0x1d314
cmpl $0x0, 0x15e4d(%rip) # 0x330ec
je 0x1d2c0
leaq 0x15b58(%rip), %rax # 0x32e00
movq (%rax), %rdi
movq 0x8(%rsp), %rdx
leaq 0xe243(%rip), %rsi # 0x2b4fa
movb $0x0, %al
callq 0x289b0
jmp 0x1d2dd
leaq 0x15b39(%rip), %rax # 0x32e00
movq (%rax), %rdi
movq 0x8(%rsp), %rdx
leaq 0xe224(%rip), %rsi # 0x2b4fa
movb $0x0, %al
callq 0x1100
leaq 0x15d68(%rip), %rax # 0x3304c
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0x15d5c(%rip), %rax # 0x3304c
movl %ecx, (%rax)
leaq 0x15d7b(%rip), %rax # 0x33074
movl $0x1, (%rax)
leaq 0x15d72(%rip), %rax # 0x33078
movl $0x1, (%rax)
movl $0x0, 0x14(%rsp)
movl 0x14(%rsp), %eax
addq $0x18, %rsp
retq
nopl (%rax)
|
_ZN12LefDefParser23lefwStartArrayFloorplanEPKc:
sub rsp, 18h
mov [rsp+18h+var_10], rdi
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
cmp qword ptr [rax], 0
jnz short loc_1D233
mov [rsp+18h+var_4], 1
jmp loc_1D314
loc_1D233:
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
cmp dword ptr [rax], 2
jz short loc_1D258
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
cmp dword ptr [rax], 13h
jz short loc_1D258
mov [rsp+18h+var_4], 2
jmp loc_1D314
loc_1D258:
lea rax, _ZN12LefDefParser17lefwIsArrayFloorpE; LefDefParser::lefwIsArrayFloorp
cmp dword ptr [rax], 0
jz short loc_1D271
mov [rsp+18h+var_4], 2
jmp loc_1D314
loc_1D271:
cmp [rsp+18h+var_10], 0
jz short loc_1D28E
cmp [rsp+18h+var_10], 0
jz short loc_1D28E
mov rax, [rsp+18h+var_10]
movsx eax, byte ptr [rax]
cmp eax, 0
jnz short loc_1D298
loc_1D28E:
mov [rsp+18h+var_4], 3
jmp short loc_1D314
loc_1D298:
cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 0; LefDefParser::lefwWriteEncrypt
jz short loc_1D2C0
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
mov rdx, [rsp+18h+var_10]
lea rsi, aFloorplanS; " FLOORPLAN %s\n"
mov al, 0
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
jmp short loc_1D2DD
loc_1D2C0:
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
mov rdx, [rsp+18h+var_10]
lea rsi, aFloorplanS; " FLOORPLAN %s\n"
mov al, 0
call _fprintf
loc_1D2DD:
lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines
mov ecx, [rax]
add ecx, 1
lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines
mov [rax], ecx
lea rax, _ZN12LefDefParser15lefwHasArrayReqE; LefDefParser::lefwHasArrayReq
mov dword ptr [rax], 1
lea rax, _ZN12LefDefParser17lefwIsArrayFloorpE; LefDefParser::lefwIsArrayFloorp
mov dword ptr [rax], 1
mov [rsp+18h+var_4], 0
loc_1D314:
mov eax, [rsp+18h+var_4]
add rsp, 18h
retn
|
long long LefDefParser::lefwStartArrayFloorplan(
LefDefParser *this,
const char *a2,
long long a3,
int a4,
int a5,
int a6)
{
if ( *(_QWORD *)&LefDefParser::lefwFile )
{
if ( LefDefParser::lefwState == 2 || LefDefParser::lefwState == 19 )
{
if ( LefDefParser::lefwIsArrayFloorp )
{
return 2;
}
else if ( this && *(_BYTE *)this )
{
if ( LefDefParser::lefwWriteEncrypt )
LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)" FLOORPLAN %s\n", (_DWORD)this, a4, a5, a6);
else
fprintf(*(_QWORD *)&LefDefParser::lefwFile, " FLOORPLAN %s\n", (const char *)this);
++LefDefParser::lefwLines;
LefDefParser::lefwHasArrayReq = 1;
LefDefParser::lefwIsArrayFloorp = 1;
return 0;
}
else
{
return 3;
}
}
else
{
return 2;
}
}
else
{
return 1;
}
}
|
lefwStartArrayFloorplan:
SUB RSP,0x18
MOV qword ptr [RSP + 0x8],RDI
LEA RAX,[0x132e00]
CMP qword ptr [RAX],0x0
JNZ 0x0011d233
MOV dword ptr [RSP + 0x14],0x1
JMP 0x0011d314
LAB_0011d233:
LEA RAX,[0x133050]
CMP dword ptr [RAX],0x2
JZ 0x0011d258
LEA RAX,[0x133050]
CMP dword ptr [RAX],0x13
JZ 0x0011d258
MOV dword ptr [RSP + 0x14],0x2
JMP 0x0011d314
LAB_0011d258:
LEA RAX,[0x133078]
CMP dword ptr [RAX],0x0
JZ 0x0011d271
MOV dword ptr [RSP + 0x14],0x2
JMP 0x0011d314
LAB_0011d271:
CMP qword ptr [RSP + 0x8],0x0
JZ 0x0011d28e
CMP qword ptr [RSP + 0x8],0x0
JZ 0x0011d28e
MOV RAX,qword ptr [RSP + 0x8]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
JNZ 0x0011d298
LAB_0011d28e:
MOV dword ptr [RSP + 0x14],0x3
JMP 0x0011d314
LAB_0011d298:
CMP dword ptr [0x001330ec],0x0
JZ 0x0011d2c0
LEA RAX,[0x132e00]
MOV RDI,qword ptr [RAX]
MOV RDX,qword ptr [RSP + 0x8]
LEA RSI,[0x12b4fa]
MOV AL,0x0
CALL 0x001289b0
JMP 0x0011d2dd
LAB_0011d2c0:
LEA RAX,[0x132e00]
MOV RDI,qword ptr [RAX]
MOV RDX,qword ptr [RSP + 0x8]
LEA RSI,[0x12b4fa]
MOV AL,0x0
CALL 0x00101100
LAB_0011d2dd:
LEA RAX,[0x13304c]
MOV ECX,dword ptr [RAX]
ADD ECX,0x1
LEA RAX,[0x13304c]
MOV dword ptr [RAX],ECX
LEA RAX,[0x133074]
MOV dword ptr [RAX],0x1
LEA RAX,[0x133078]
MOV dword ptr [RAX],0x1
MOV dword ptr [RSP + 0x14],0x0
LAB_0011d314:
MOV EAX,dword ptr [RSP + 0x14]
ADD RSP,0x18
RET
|
/* LefDefParser::lefwStartArrayFloorplan(char const*) */
int4 LefDefParser::lefwStartArrayFloorplan(char *param_1)
{
int4 local_4;
if (lefwFile == (_IO_FILE *)0x0) {
local_4 = 1;
}
else if ((lefwState == 2) || (lefwState == 0x13)) {
if (lefwIsArrayFloorp == 0) {
if (((param_1 == (char *)0x0) || (param_1 == (char *)0x0)) || (*param_1 == '\0')) {
local_4 = 3;
}
else {
if (lefwWriteEncrypt == 0) {
fprintf(lefwFile," FLOORPLAN %s\n",param_1);
}
else {
encPrint(lefwFile," FLOORPLAN %s\n",param_1);
}
lefwLines = lefwLines + 1;
lefwHasArrayReq = 1;
lefwIsArrayFloorp = 1;
local_4 = 0;
}
}
else {
local_4 = 2;
}
}
else {
local_4 = 2;
}
return local_4;
}
|
|
64,579 |
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;
}
|
|
64,580 |
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;
}
|
|
64,581 |
get_charset_name
|
eloqsql/mysys/charset.c
|
const char *get_charset_name(uint charset_number)
{
my_pthread_once(&charsets_initialized, init_available_charsets);
if (charset_number < array_elements(all_charsets))
{
CHARSET_INFO *cs= all_charsets[charset_number];
if (cs && (cs->number == charset_number) && cs->coll_name.str)
return cs->coll_name.str;
}
return "?"; /* this mimics find_type() */
}
|
O3
|
c
|
get_charset_name:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %edi, %ebx
leaq 0xb74e2e(%rip), %rdi # 0xc07670
leaq -0x302(%rip), %rsi # 0x92547
callq 0x29220
leaq 0x49631(%rip), %rcx # 0xdbe86
cmpl $0x7ff, %ebx # imm = 0x7FF
ja 0x9287c
movl %ebx, %eax
leaq 0xb6cd9a(%rip), %rdx # 0xbff600
movq (%rdx,%rax,8), %rax
testq %rax, %rax
je 0x9287c
cmpl %ebx, (%rax)
jne 0x9287c
movq 0x20(%rax), %rax
testq %rax, %rax
jne 0x9287f
movq %rcx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
|
get_charset_name:
push rbp
mov rbp, rsp
push rbx
push rax
mov ebx, edi
lea rdi, charsets_initialized
lea rsi, init_available_charsets
call _pthread_once
lea rcx, asc_DBE86; "?"
cmp ebx, 7FFh
ja short loc_9287C
mov eax, ebx
lea rdx, all_charsets
mov rax, [rdx+rax*8]
test rax, rax
jz short loc_9287C
cmp [rax], ebx
jnz short loc_9287C
mov rax, [rax+20h]
test rax, rax
jnz short loc_9287F
loc_9287C:
mov rax, rcx
loc_9287F:
add rsp, 8
pop rbx
pop rbp
retn
|
const char * get_charset_name(unsigned int a1)
{
long long v1; // rax
const char *result; // rax
pthread_once(&charsets_initialized, init_available_charsets);
if ( a1 > 0x7FF )
return "?";
v1 = all_charsets[a1];
if ( !v1 )
return "?";
if ( *(_DWORD *)v1 != a1 )
return "?";
result = *(const char **)(v1 + 32);
if ( !result )
return "?";
return result;
}
|
get_charset_name:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV EBX,EDI
LEA RDI,[0xd07670]
LEA RSI,[0x192547]
CALL 0x00129220
LEA RCX,[0x1dbe86]
CMP EBX,0x7ff
JA 0x0019287c
MOV EAX,EBX
LEA RDX,[0xcff600]
MOV RAX,qword ptr [RDX + RAX*0x8]
TEST RAX,RAX
JZ 0x0019287c
CMP dword ptr [RAX],EBX
JNZ 0x0019287c
MOV RAX,qword ptr [RAX + 0x20]
TEST RAX,RAX
JNZ 0x0019287f
LAB_0019287c:
MOV RAX,RCX
LAB_0019287f:
ADD RSP,0x8
POP RBX
POP RBP
RET
|
int * get_charset_name(uint param_1)
{
uint *puVar1;
int *puVar2;
pthread_once(&charsets_initialized,init_available_charsets);
if ((((0x7ff < param_1) || (puVar1 = (uint *)(&all_charsets)[param_1], puVar1 == (uint *)0x0)) ||
(*puVar1 != param_1)) || (puVar2 = *(int **)(puVar1 + 8), puVar2 == (int *)0x0)) {
puVar2 = &DAT_001dbe86;
}
return puVar2;
}
|
|
64,582 |
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>>>>>::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::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::unget():
movb $0x1, 0x18(%rdi)
decq 0x20(%rdi)
movq 0x28(%rdi), %rax
testq %rax, %rax
je 0x66935
leaq 0x28(%rdi), %rcx
jmp 0x66942
movq 0x30(%rdi), %rax
testq %rax, %rax
je 0x66948
leaq 0x30(%rdi), %rcx
decq %rax
movq %rax, (%rcx)
cmpl $-0x1, 0x14(%rdi)
je 0x6695f
movq 0x40(%rdi), %rax
cmpq %rax, 0x38(%rdi)
je 0x66960
decq %rax
movq %rax, 0x40(%rdi)
retq
pushq %rax
leaq 0x68917(%rip), %rdi # 0xcf27f
leaq 0x60fd4(%rip), %rdx # 0xc7943
leaq 0x68ad1(%rip), %rcx # 0xcf447
movl $0x2240, %esi # imm = 0x2240
xorl %eax, %eax
callq 0x27520
|
_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_66935
lea rcx, [rdi+28h]
jmp short loc_66942
loc_66935:
mov rax, [rdi+30h]
test rax, rax
jz short loc_66948
lea rcx, [rdi+30h]
loc_66942:
dec rax
mov [rcx], rax
loc_66948:
cmp dword ptr [rdi+14h], 0FFFFFFFFh
jz short locret_6695F
mov rax, [rdi+40h]
cmp [rdi+38h], rax
jz short loc_66960
dec rax
mov [rdi+40h], rax
locret_6695F:
retn
loc_66960:
push rax
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTokenStringEmp; "!token_string.empty()"
mov esi, 2240h
xor eax, eax
call _ggml_abort
|
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 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
8768LL,
"GGML_ASSERT(%s) failed",
"!token_string.empty()");
return nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::reset("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp");
}
else
{
result = v3 - 1;
*(_QWORD *)(a1 + 64) = result;
}
}
return result;
}
|
unget:
MOV byte ptr [RDI + 0x18],0x1
DEC qword ptr [RDI + 0x20]
MOV RAX,qword ptr [RDI + 0x28]
TEST RAX,RAX
JZ 0x00166935
LEA RCX,[RDI + 0x28]
JMP 0x00166942
LAB_00166935:
MOV RAX,qword ptr [RDI + 0x30]
TEST RAX,RAX
JZ 0x00166948
LEA RCX,[RDI + 0x30]
LAB_00166942:
DEC RAX
MOV qword ptr [RCX],RAX
LAB_00166948:
CMP dword ptr [RDI + 0x14],-0x1
JZ 0x0016695f
MOV RAX,qword ptr [RDI + 0x40]
CMP qword ptr [RDI + 0x38],RAX
JZ 0x00166960
DEC RAX
MOV qword ptr [RDI + 0x40],RAX
LAB_0016695f:
RET
LAB_00166960:
PUSH RAX
LEA RDI,[0x1cf27f]
LEA RDX,[0x1c7943]
LEA RCX,[0x1cf447]
MOV ESI,0x2240
XOR EAX,EAX
CALL 0x00127520
|
/* 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 > > >::unget() */
void __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>>>
::unget(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)
{
long lVar1;
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>>>
*plVar2;
int8 in_R8;
int8 in_R9;
this[0x18] = (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>>>
)0x1;
*(long *)(this + 0x20) = *(long *)(this + 0x20) + -1;
lVar1 = *(long *)(this + 0x28);
if (lVar1 == 0) {
lVar1 = *(long *)(this + 0x30);
if (lVar1 == 0) goto LAB_00166948;
plVar2 = this + 0x30;
}
else {
plVar2 = this + 0x28;
}
*(long *)plVar2 = lVar1 + -1;
LAB_00166948:
if (*(int *)(this + 0x14) != -1) {
lVar1 = *(long *)(this + 0x40);
if (*(long *)(this + 0x38) == lVar1) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x2240,
"GGML_ASSERT(%s) failed","!token_string.empty()",in_R8,in_R9,lVar1);
}
*(long *)(this + 0x40) = lVar1 + -1;
}
return;
}
|
|
64,583 |
get_this_host
|
eloqsql/libmariadb/unittest/libmariadb/my_test.h
|
void get_this_host(MYSQL *mysql)
{
MYSQL_RES *res;
MYSQL_ROW row;
if (mysql_query(mysql, "select substr(current_user(), locate('@', current_user())+1)"))
return;
if ((res= mysql_store_result(mysql)))
{
if ((row= mysql_fetch_row(res)))
this_host= strdup(row[0]);
mysql_free_result(res);
}
}
|
O3
|
c
|
get_this_host:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x2060c(%rip), %rsi # 0x340f6
callq 0x1a6f5
testl %eax, %eax
je 0x13afa
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq %rbx, %rdi
callq 0x1b5ed
testq %rax, %rax
je 0x13af3
movq %rax, %rbx
movq %rax, %rdi
callq 0x1b7f0
testq %rax, %rax
je 0x13b26
movq (%rax), %rdi
callq 0x137d0
movq %rax, 0x35292(%rip) # 0x48db8
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x163a2
|
get_this_host:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
lea rsi, aSelectSubstrCu; "select substr(current_user(), locate('@"...
call mysql_query
test eax, eax
jz short loc_13AFA
loc_13AF3:
add rsp, 8
pop rbx
pop rbp
retn
loc_13AFA:
mov rdi, rbx
call mysql_store_result
test rax, rax
jz short loc_13AF3
mov rbx, rax
mov rdi, rax
call mysql_fetch_row
test rax, rax
jz short loc_13B26
mov rdi, [rax]
call _strdup
mov cs:this_host, rax
loc_13B26:
mov rdi, rbx
add rsp, 8
pop rbx
pop rbp
jmp mysql_free_result
|
long long get_this_host(long long a1)
{
long long result; // rax
long long v2; // rbx
_QWORD *row; // rax
result = mysql_query(a1, "select substr(current_user(), locate('@', current_user())+1)");
if ( !(_DWORD)result )
{
result = mysql_store_result(a1);
if ( result )
{
v2 = result;
row = (_QWORD *)mysql_fetch_row(result);
if ( row )
this_host = strdup(*row);
return mysql_free_result(v2);
}
}
return result;
}
|
get_this_host:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA RSI,[0x1340f6]
CALL 0x0011a6f5
TEST EAX,EAX
JZ 0x00113afa
LAB_00113af3:
ADD RSP,0x8
POP RBX
POP RBP
RET
LAB_00113afa:
MOV RDI,RBX
CALL 0x0011b5ed
TEST RAX,RAX
JZ 0x00113af3
MOV RBX,RAX
MOV RDI,RAX
CALL 0x0011b7f0
TEST RAX,RAX
JZ 0x00113b26
MOV RDI,qword ptr [RAX]
CALL 0x001137d0
MOV qword ptr [0x00148db8],RAX
LAB_00113b26:
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x001163a2
|
void get_this_host(int8 param_1)
{
int iVar1;
long lVar2;
int8 *puVar3;
iVar1 = mysql_query(param_1,"select substr(current_user(), locate(\'@\', current_user())+1)");
if (iVar1 == 0) {
lVar2 = mysql_store_result(param_1);
if (lVar2 != 0) {
puVar3 = (int8 *)mysql_fetch_row(lVar2);
if (puVar3 != (int8 *)0x0) {
this_host = strdup((char *)*puVar3);
}
mysql_free_result(lVar2);
return;
}
}
return;
}
|
|
64,584 |
minja::Value& nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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>, minja::Value, std::less<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>>, std::allocator<std::pair<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, minja::Value>>>::at<unsigned long&, 0>(unsigned long&)
|
monkey531[P]llama/common/./json.hpp
|
T & at(KeyType && key) // NOLINT(cppcoreguidelines-missing-std-forward)
{
for (auto it = this->begin(); it != this->end(); ++it)
{
if (m_compare(it->first, key))
{
return it->second;
}
}
JSON_THROW(std::out_of_range("key not found"));
}
|
O0
|
cpp
|
minja::Value& nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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>, minja::Value, std::less<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>>, std::allocator<std::pair<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, minja::Value>>>::at<unsigned long&, 0>(unsigned long&):
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0xa1ae0
movq %rax, 0x30(%rsp)
movq 0x10(%rsp), %rdi
callq 0xa1b50
movq %rax, 0x28(%rsp)
leaq 0x30(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0xa1b10
testb $0x1, %al
jne 0xd4006
jmp 0xd4057
movq 0x10(%rsp), %rax
addq $0x18, %rax
movq %rax, 0x8(%rsp)
leaq 0x30(%rsp), %rdi
callq 0xa1b80
movq 0x8(%rsp), %rdi
movq %rax, %rsi
movq 0x38(%rsp), %rdx
callq 0xd4130
testb $0x1, %al
jne 0xd4036
jmp 0xd4049
leaq 0x30(%rsp), %rdi
callq 0xa1b80
addq $0x10, %rax
addq $0x48, %rsp
retq
jmp 0xd404b
leaq 0x30(%rsp), %rdi
callq 0xa1ef0
jmp 0xd3fe2
movl $0x10, %edi
callq 0x50540
movq %rax, %rdi
movq %rdi, %rax
movq %rax, (%rsp)
leaq 0xfd78c(%rip), %rsi # 0x1d17fe
callq 0x50360
jmp 0xd4079
movq (%rsp), %rdi
movq 0x17feac(%rip), %rsi # 0x253f30
movq 0x17fef5(%rip), %rdx # 0x253f80
callq 0x508f0
movq (%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
callq 0x50c40
movq 0x20(%rsp), %rdi
callq 0x50940
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
|
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE2atIRmTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OSS_:
sub rsp, 48h
mov [rsp+48h+var_8], rdi
mov [rsp+48h+var_10], rsi
mov rdi, [rsp+48h+var_8]
mov [rsp+48h+var_38], rdi
call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE5beginEv; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::begin(void)
mov [rsp+48h+var_18], rax
loc_D3FE2:
mov rdi, [rsp+48h+var_38]
call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE3endEv; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::end(void)
mov [rsp+48h+var_20], rax
lea rdi, [rsp+48h+var_18]
lea rsi, [rsp+48h+var_20]
call _ZN9__gnu_cxxneIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEEbRKNS_17__normal_iteratorIT_T0_EEST_; __gnu_cxx::operator!=<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>> const&,__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>> const&)
test al, 1
jnz short loc_D4006
jmp short loc_D4057
loc_D4006:
mov rax, [rsp+48h+var_38]
add rax, 18h
mov [rsp+48h+var_40], rax
lea rdi, [rsp+48h+var_18]
call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEptEv; __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::operator->(void)
mov rdi, [rsp+48h+var_40]
mov rsi, rax
mov rdx, [rsp+48h+var_10]
call _ZNKSt8equal_toIvEclIRKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEERmEEDTeqclsr3stdE7forwardIT_Efp_Eclsr3stdE7forwardIT0_Efp0_EEOSK_OSL_
test al, 1
jnz short loc_D4036
jmp short loc_D4049
loc_D4036:
lea rdi, [rsp+48h+var_18]
call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEptEv; __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::operator->(void)
add rax, 10h
add rsp, 48h
retn
loc_D4049:
jmp short $+2
loc_D404B:
lea rdi, [rsp+48h+var_18]
call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEppEv; __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::operator++(void)
jmp short loc_D3FE2
loc_D4057:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rdi, rax; this
mov rax, rdi
mov [rsp+48h+var_48], rax
lea rsi, aKeyNotFound; "key not found"
call __ZNSt12out_of_rangeC1EPKc; std::out_of_range::out_of_range(char const*)
jmp short $+2
loc_D4079:
mov rdi, [rsp+48h+var_48]; void *
mov rsi, cs:_ZTISt12out_of_range_ptr; lptinfo
mov rdx, cs:_ZNSt12out_of_rangeD1Ev_ptr; void (*)(void *)
call ___cxa_throw
mov rdi, [rsp+48h+var_48]; void *
mov rcx, rax
mov eax, edx
mov [rsp+48h+var_28], rcx
mov [rsp+48h+var_2C], eax
call ___cxa_free_exception
mov rdi, [rsp+48h+var_28]
call __Unwind_Resume
|
long long ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE2atIRmTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OSS_(
long long a1,
long long a2)
{
long long v2; // rax
std::out_of_range *exception; // [rsp+0h] [rbp-48h]
long long v5; // [rsp+28h] [rbp-20h] BYREF
long long i; // [rsp+30h] [rbp-18h] BYREF
long long v7; // [rsp+38h] [rbp-10h]
long long v8; // [rsp+40h] [rbp-8h]
v8 = a1;
v7 = a2;
for ( i = std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::begin(a1);
;
__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::operator++(&i) )
{
v5 = std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::end(a1);
if ( !__gnu_cxx::operator!=<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>(
(long long)&i,
(long long)&v5) )
{
exception = (std::out_of_range *)__cxa_allocate_exception(0x10uLL);
std::out_of_range::out_of_range(exception, "key not found");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::out_of_range,
(void (*)(void *))&std::out_of_range::~out_of_range);
}
v2 = __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::operator->((long long)&i);
if ( (std::equal_to<void>::operator()<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const&,unsigned long &>(
a1 + 24,
v2,
v7) & 1) != 0 )
break;
}
return __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::operator->((long long)&i)
+ 16;
}
|
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE2atIRmTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OSS_:
SUB RSP,0x48
MOV qword ptr [RSP + 0x40],RDI
MOV qword ptr [RSP + 0x38],RSI
MOV RDI,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x10],RDI
CALL 0x001a1ae0
MOV qword ptr [RSP + 0x30],RAX
LAB_001d3fe2:
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x001a1b50
MOV qword ptr [RSP + 0x28],RAX
LEA RDI,[RSP + 0x30]
LEA RSI,[RSP + 0x28]
CALL 0x001a1b10
TEST AL,0x1
JNZ 0x001d4006
JMP 0x001d4057
LAB_001d4006:
MOV RAX,qword ptr [RSP + 0x10]
ADD RAX,0x18
MOV qword ptr [RSP + 0x8],RAX
LEA RDI,[RSP + 0x30]
CALL 0x001a1b80
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,RAX
MOV RDX,qword ptr [RSP + 0x38]
CALL 0x001d4130
TEST AL,0x1
JNZ 0x001d4036
JMP 0x001d4049
LAB_001d4036:
LEA RDI,[RSP + 0x30]
CALL 0x001a1b80
ADD RAX,0x10
ADD RSP,0x48
RET
LAB_001d4049:
JMP 0x001d404b
LAB_001d404b:
LEA RDI,[RSP + 0x30]
CALL 0x001a1ef0
JMP 0x001d3fe2
LAB_001d4057:
MOV EDI,0x10
CALL 0x00150540
MOV RDI,RAX
MOV RAX,RDI
MOV qword ptr [RSP],RAX
LAB_001d406b:
LEA RSI,[0x2d17fe]
CALL 0x00150360
LAB_001d4077:
JMP 0x001d4079
LAB_001d4079:
MOV RDI,qword ptr [RSP]
MOV RSI,qword ptr [0x00353f30]
MOV RDX,qword ptr [0x00353f80]
CALL 0x001508f0
|
long _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE2atIRmTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OSS_
(vector<std::pair<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,minja::Value>,std::allocator<std::pair<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,minja::Value>>>
*param_1,ulong *param_2)
{
bool bVar1;
basic_json *pbVar2;
ulong uVar3;
long lVar4;
out_of_range *this;
int8 local_20;
int8 local_18;
ulong *local_10;
vector<std::pair<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,minja::Value>,std::allocator<std::pair<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,minja::Value>>>
*local_8;
local_10 = param_2;
local_8 = param_1;
local_18 = std::
vector<std::pair<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,minja::Value>,std::allocator<std::pair<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,minja::Value>>>
::begin(param_1);
while( true ) {
local_20 = std::
vector<std::pair<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,minja::Value>,std::allocator<std::pair<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,minja::Value>>>
::end(param_1);
bVar1 = __gnu_cxx::operator!=((__normal_iterator *)&local_18,(__normal_iterator *)&local_20);
if (!bVar1) {
this = (out_of_range *)__cxa_allocate_exception(0x10);
/* try { // try from 001d406b to 001d4076 has its CatchHandler @ 001d4090 */
std::out_of_range::out_of_range(this,"key not found");
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_00353f30,PTR__out_of_range_00353f80);
}
pbVar2 = (basic_json *)
__gnu_cxx::
__normal_iterator<std::pair<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,minja::Value>*,std::vector<std::pair<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,minja::Value>,std::allocator<std::pair<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,minja::Value>>>>
::operator->((__normal_iterator<std::pair<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,minja::Value>*,std::vector<std::pair<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,minja::Value>,std::allocator<std::pair<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,minja::Value>>>>
*)&local_18);
uVar3 = std::equal_to<void>::operator()((equal_to<void> *)(param_1 + 0x18),pbVar2,local_10);
if ((uVar3 & 1) != 0) break;
__gnu_cxx::
__normal_iterator<std::pair<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,minja::Value>*,std::vector<std::pair<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,minja::Value>,std::allocator<std::pair<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,minja::Value>>>>
::operator++((__normal_iterator<std::pair<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,minja::Value>*,std::vector<std::pair<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,minja::Value>,std::allocator<std::pair<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,minja::Value>>>>
*)&local_18);
}
lVar4 = __gnu_cxx::
__normal_iterator<std::pair<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,minja::Value>*,std::vector<std::pair<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,minja::Value>,std::allocator<std::pair<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,minja::Value>>>>
::operator->((__normal_iterator<std::pair<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,minja::Value>*,std::vector<std::pair<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,minja::Value>,std::allocator<std::pair<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,minja::Value>>>>
*)&local_18);
return lVar4 + 0x10;
}
|
|
64,585 |
rtree_delete_req
|
eloqsql/storage/myisam/rt_index.c
|
static int rtree_delete_req(MI_INFO *info, MI_KEYDEF *keyinfo, uchar *key,
uint key_length, my_off_t page, uint *page_size,
stPageList *ReinsertList, int level)
{
uchar *k;
uchar *last;
ulong i;
uint nod_flag;
uchar *page_buf;
int res;
DBUG_ENTER("rtree_delete_req");
if (!(page_buf = (uchar*)my_alloca((uint)keyinfo->block_length)))
{
my_errno = HA_ERR_OUT_OF_MEM;
DBUG_RETURN(-1); /* purecov: inspected */
}
if (!_mi_fetch_keypage(info, keyinfo, page, DFLT_INIT_HITS, page_buf, 0))
goto err1;
nod_flag = mi_test_if_nod(page_buf);
DBUG_PRINT("rtree", ("page: %lu level: %d nod_flag: %u",
(ulong) page, level, nod_flag));
k = rt_PAGE_FIRST_KEY(page_buf, nod_flag);
last = rt_PAGE_END(page_buf);
for (i = 0; k < last; k = rt_PAGE_NEXT_KEY(k, key_length, nod_flag), ++i)
{
if (nod_flag)
{
/* not leaf */
if (!rtree_key_cmp(keyinfo->seg, key, k, key_length, MBR_WITHIN))
{
switch ((res = rtree_delete_req(info, keyinfo, key, key_length,
_mi_kpos(nod_flag, k), page_size, ReinsertList, level + 1)))
{
case 0: /* deleted */
{
/* test page filling */
if (*page_size + key_length >= rt_PAGE_MIN_SIZE(keyinfo->block_length))
{
/* OK */
/* Calculate a new key value (MBR) for the shrinked block. */
if (rtree_set_key_mbr(info, keyinfo, k, key_length,
_mi_kpos(nod_flag, k)))
goto err1;
if (_mi_write_keypage(info, keyinfo, page,
DFLT_INIT_HITS, page_buf))
goto err1;
}
else
{
/*
Too small: delete key & add it descendant to reinsert list.
Store position and level of the block so that it can be
accessed later for inserting the remaining keys.
*/
DBUG_PRINT("rtree", ("too small. move block to reinsert list"));
if (rtree_fill_reinsert_list(ReinsertList, _mi_kpos(nod_flag, k),
level + 1))
goto err1;
/*
Delete the key that references the block. This makes the
block disappear from the index. Hence we need to insert
its remaining keys later. Note: if the block is a branch
block, we do not only remove this block, but the whole
subtree. So we need to re-insert its keys on the same
level later to reintegrate the subtrees.
*/
rtree_delete_key(info, page_buf, k, key_length, nod_flag);
if (_mi_write_keypage(info, keyinfo, page,
DFLT_INIT_HITS, page_buf))
goto err1;
*page_size = mi_getint(page_buf);
}
goto ok;
}
case 1: /* not found - continue searching */
{
break;
}
case 2: /* vacuous case: last key in the leaf */
{
rtree_delete_key(info, page_buf, k, key_length, nod_flag);
if (_mi_write_keypage(info, keyinfo, page,
DFLT_INIT_HITS, page_buf))
goto err1;
*page_size = mi_getint(page_buf);
res = 0;
goto ok;
}
default: /* error */
case -1:
{
goto err1;
}
}
}
}
else
{
/* leaf */
if (!rtree_key_cmp(keyinfo->seg, key, k, key_length, MBR_EQUAL | MBR_DATA))
{
rtree_delete_key(info, page_buf, k, key_length, nod_flag);
*page_size = mi_getint(page_buf);
if (*page_size == 2)
{
/* last key in the leaf */
res = 2;
if (_mi_dispose(info, keyinfo, page, DFLT_INIT_HITS))
goto err1;
}
else
{
res = 0;
if (_mi_write_keypage(info, keyinfo, page, DFLT_INIT_HITS, page_buf))
goto err1;
}
goto ok;
}
}
}
res = 1;
ok:
my_afree((uchar*)page_buf);
DBUG_RETURN(res);
err1:
my_afree((uchar*)page_buf);
DBUG_RETURN(-1); /* purecov: inspected */
}
|
O3
|
c
|
rtree_delete_req:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, -0x60(%rbp)
movl %ecx, -0x34(%rbp)
movq %rdx, %r14
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movzwl 0xe(%rsi), %eax
movq %rsp, %r12
addl $0xf, %eax
andl $-0x10, %eax
subq %rax, %r12
movq %r12, %rsp
xorl %ebx, %ebx
movq %rdi, -0x48(%rbp)
movq %rsi, -0x40(%rbp)
movq %r8, -0x50(%rbp)
movq %r8, %rdx
movl $0x3, %ecx
movq %r12, %r8
xorl %r9d, %r9d
callq 0x83cb0
testq %rax, %rax
je 0x8abe4
movzbl (%r12), %r15d
testb %r15b, %r15b
jns 0x8a8ff
movq -0x48(%rbp), %rax
movq (%rax), %rax
movl 0x17c(%rax), %ebx
movl %ebx, %r13d
leaq (%r12,%r13), %rbx
addq $0x2, %rbx
movzbl 0x1(%r12), %eax
andl $0x7f, %r15d
shll $0x8, %r15d
orq %rax, %r15
addq %r12, %r15
movl $0x1, %eax
cmpq %r15, %rbx
movq -0x40(%rbp), %rsi
movl -0x34(%rbp), %ecx
jae 0x8abe9
movq %r12, -0x58(%rbp)
movl 0x18(%rbp), %edx
incl %edx
movq %rdx, -0x68(%rbp)
movl %ecx, %r12d
movq 0x28(%rsi), %rdi
movq %r14, %rsi
movq %rbx, %rdx
testq %r13, %r13
je 0x8a99d
movl $0x800, %r8d # imm = 0x800
callq 0x8b46c
movq %r13, %rcx
testl %eax, %eax
jne 0x8a9bd
movl %r13d, %edi
movq %rbx, %rsi
callq 0x8462a
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq %r14, %rdx
movl -0x34(%rbp), %ecx
movq %rax, %r8
movq -0x60(%rbp), %r9
pushq -0x68(%rbp)
pushq 0x10(%rbp)
callq 0x8a883
addq $0x10, %rsp
movq %r13, %rcx
cmpl $0x1, %eax
je 0x8a9bd
jmp 0x8a9dd
movl $0x6000, %r8d # imm = 0x6000
callq 0x8b46c
testl %eax, %eax
je 0x8aa80
movq -0x48(%rbp), %rax
movq (%rax), %rax
movl 0x178(%rax), %ecx
addq %r12, %rbx
addq %rcx, %rbx
cmpq %r15, %rbx
movq -0x40(%rbp), %rsi
movl -0x34(%rbp), %ecx
jb 0x8a943
movl $0x1, %eax
jmp 0x8abe9
cmpl $0x2, %eax
je 0x8aade
testl %eax, %eax
jne 0x8abe4
movq -0x60(%rbp), %rax
movl (%rax), %r15d
addl -0x34(%rbp), %r15d
movq -0x40(%rbp), %r14
movzwl 0xe(%r14), %eax
imull $0xaaab, %eax, %r12d # imm = 0xAAAB
shrl $0x11, %r12d
movl %r13d, %edi
movq %rbx, %rsi
callq 0x8462a
movq %rax, %r8
cmpl %r12d, %r15d
jae 0x8ab4e
movq 0x10(%rbp), %r14
movq (%r14), %rdx
cmpq 0x8(%r14), %rdx
jne 0x8ab87
movq %r8, -0x70(%rbp)
addq $0xa, %rdx
movq %rdx, 0x8(%r14)
leaq 0xb74f6c(%rip), %rax # 0xbff9b4
movl (%rax), %edi
movq 0x10(%r14), %rsi
shlq $0x4, %rdx
movl $0x40, %ecx
callq 0x9feac
movq %rax, 0x10(%r14)
testq %rax, %rax
movq -0x58(%rbp), %r15
je 0x8abe4
movq (%r14), %rdx
movq -0x50(%rbp), %r12
movl -0x34(%rbp), %ecx
movq -0x70(%rbp), %r8
jmp 0x8ab96
movq -0x48(%rbp), %r15
movq %r15, %rdi
movq -0x58(%rbp), %r14
movq %r14, %rsi
movq %rbx, %rdx
movl -0x34(%rbp), %ecx
xorl %r8d, %r8d
callq 0x8b377
movzbl 0x1(%r14), %eax
movl (%r14), %ecx
andl $0x7f, %ecx
shll $0x8, %ecx
orl %eax, %ecx
movq -0x60(%rbp), %rax
movl %ecx, (%rax)
movq %r15, %rdi
cmpl $0x2, %ecx
jne 0x8ab27
movq -0x40(%rbp), %rsi
movq -0x50(%rbp), %rdx
movl $0x3, %ecx
callq 0x83e2f
testl %eax, %eax
jne 0x8abe4
movl $0x2, %eax
jmp 0x8abe9
movq -0x48(%rbp), %r15
movq %r15, %rdi
movq -0x58(%rbp), %r14
movq %r14, %rsi
movq %rbx, %rdx
movl -0x34(%rbp), %ecx
movl %r13d, %r8d
callq 0x8b377
movq %r15, %rdi
movq -0x40(%rbp), %rsi
movq -0x50(%rbp), %rdx
movl $0x3, %ecx
movq %r14, %r8
callq 0x83d5c
testl %eax, %eax
jne 0x8abe4
movzbl 0x1(%r14), %eax
movl (%r14), %ecx
jmp 0x8ac0f
movq -0x40(%rbp), %rsi
movq -0x50(%rbp), %rdx
movl $0x3, %ecx
movq %r14, %r8
callq 0x83d5c
testl %eax, %eax
movl $0x0, %eax
jne 0x8abe4
jmp 0x8abe9
movq -0x48(%rbp), %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl -0x34(%rbp), %ecx
callq 0x8b404
testl %eax, %eax
movq -0x58(%rbp), %r8
jne 0x8abe4
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq -0x50(%rbp), %rdx
movl $0x3, %ecx
callq 0x83d5c
testl %eax, %eax
jne 0x8abe4
jmp 0x8ac1d
movq 0x10(%r14), %rax
movq -0x58(%rbp), %r15
movq -0x50(%rbp), %r12
movl -0x34(%rbp), %ecx
shlq $0x4, %rdx
movq %r8, 0x8(%rax,%rdx)
movq (%r14), %rax
movq 0x10(%r14), %rdx
shlq $0x4, %rax
movq -0x68(%rbp), %rsi
movl %esi, (%rdx,%rax)
incq (%r14)
movq -0x48(%rbp), %r14
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movl %r13d, %r8d
callq 0x8b377
movq %r14, %rdi
movq -0x40(%rbp), %rsi
movq %r12, %rdx
movl $0x3, %ecx
movq %r15, %r8
callq 0x83d5c
testl %eax, %eax
je 0x8ac07
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
movq %fs:0x28, %rcx
cmpq -0x30(%rbp), %rcx
jne 0x8ac21
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movzbl 0x1(%r15), %eax
movl (%r15), %ecx
andl $0x7f, %ecx
shll $0x8, %ecx
orl %eax, %ecx
movq -0x60(%rbp), %rax
movl %ecx, (%rax)
xorl %eax, %eax
jmp 0x8abe9
callq 0x29270
|
rtree_delete_req:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov [rbp+var_60], r9
mov [rbp+var_34], ecx
mov r14, rdx
mov rax, fs:28h
mov [rbp+var_30], rax
movzx eax, word ptr [rsi+0Eh]
mov r12, rsp
add eax, 0Fh
and eax, 0FFFFFFF0h
sub r12, rax
mov rsp, r12
xor ebx, ebx
mov [rbp+var_48], rdi
mov [rbp+var_40], rsi
mov [rbp+var_50], r8
mov rdx, r8
mov ecx, 3
mov r8, r12
xor r9d, r9d
call _mi_fetch_keypage
test rax, rax
jz loc_8ABE4
movzx r15d, byte ptr [r12]
test r15b, r15b
jns short loc_8A8FF
mov rax, [rbp+var_48]
mov rax, [rax]
mov ebx, [rax+17Ch]
loc_8A8FF:
mov r13d, ebx
lea rbx, [r12+r13]
add rbx, 2
movzx eax, byte ptr [r12+1]
and r15d, 7Fh
shl r15d, 8
or r15, rax
add r15, r12
mov eax, 1
cmp rbx, r15
mov rsi, [rbp+var_40]
mov ecx, [rbp+var_34]
jnb loc_8ABE9
mov [rbp+var_58], r12
mov edx, [rbp+arg_8]
inc edx
mov [rbp+var_68], rdx
mov r12d, ecx
loc_8A943:
mov rdi, [rsi+28h]
mov rsi, r14
mov rdx, rbx
test r13, r13
jz short loc_8A99D
mov r8d, 800h
call rtree_key_cmp
mov rcx, r13
test eax, eax
jnz short loc_8A9BD
mov edi, r13d
mov rsi, rbx
call _mi_kpos
mov rdi, [rbp+var_48]
mov rsi, [rbp+var_40]
mov rdx, r14
mov ecx, [rbp+var_34]
mov r8, rax
mov r9, [rbp+var_60]
push [rbp+var_68]
push [rbp+arg_0]
call rtree_delete_req
add rsp, 10h
mov rcx, r13
cmp eax, 1
jz short loc_8A9BD
jmp short loc_8A9DD
loc_8A99D:
mov r8d, 6000h
call rtree_key_cmp
test eax, eax
jz loc_8AA80
mov rax, [rbp+var_48]
mov rax, [rax]
mov ecx, [rax+178h]
loc_8A9BD:
add rbx, r12
add rbx, rcx
cmp rbx, r15
mov rsi, [rbp+var_40]
mov ecx, [rbp+var_34]
jb loc_8A943
mov eax, 1
jmp loc_8ABE9
loc_8A9DD:
cmp eax, 2
jz loc_8AADE
test eax, eax
jnz loc_8ABE4
mov rax, [rbp+var_60]
mov r15d, [rax]
add r15d, [rbp+var_34]
mov r14, [rbp+var_40]
movzx eax, word ptr [r14+0Eh]
imul r12d, eax, 0AAABh
shr r12d, 11h
mov edi, r13d
mov rsi, rbx
call _mi_kpos
mov r8, rax
cmp r15d, r12d
jnb loc_8AB4E
mov r14, [rbp+arg_0]
mov rdx, [r14]
cmp rdx, [r14+8]
jnz loc_8AB87
mov [rbp+var_70], r8
add rdx, 0Ah
mov [r14+8], rdx
lea rax, mi_key_memory_stPageList_pages
mov edi, [rax]
mov rsi, [r14+10h]
shl rdx, 4
mov ecx, 40h ; '@'
call my_realloc
mov [r14+10h], rax
test rax, rax
mov r15, [rbp+var_58]
jz loc_8ABE4
mov rdx, [r14]
mov r12, [rbp+var_50]
mov ecx, [rbp+var_34]
mov r8, [rbp+var_70]
jmp loc_8AB96
loc_8AA80:
mov r15, [rbp+var_48]
mov rdi, r15
mov r14, [rbp+var_58]
mov rsi, r14
mov rdx, rbx
mov ecx, [rbp+var_34]
xor r8d, r8d
call rtree_delete_key
movzx eax, byte ptr [r14+1]
mov ecx, [r14]
and ecx, 7Fh
shl ecx, 8
or ecx, eax
mov rax, [rbp+var_60]
mov [rax], ecx
mov rdi, r15
cmp ecx, 2
jnz short loc_8AB27
mov rsi, [rbp+var_40]
mov rdx, [rbp+var_50]
mov ecx, 3
call _mi_dispose
test eax, eax
jnz loc_8ABE4
mov eax, 2
jmp loc_8ABE9
loc_8AADE:
mov r15, [rbp+var_48]
mov rdi, r15
mov r14, [rbp+var_58]
mov rsi, r14
mov rdx, rbx
mov ecx, [rbp+var_34]
mov r8d, r13d
call rtree_delete_key
mov rdi, r15
mov rsi, [rbp+var_40]
mov rdx, [rbp+var_50]
mov ecx, 3
mov r8, r14
call _mi_write_keypage
test eax, eax
jnz loc_8ABE4
movzx eax, byte ptr [r14+1]
mov ecx, [r14]
jmp loc_8AC0F
loc_8AB27:
mov rsi, [rbp+var_40]
mov rdx, [rbp+var_50]
mov ecx, 3
mov r8, r14
call _mi_write_keypage
test eax, eax
mov eax, 0
jnz loc_8ABE4
jmp loc_8ABE9
loc_8AB4E:
mov rdi, [rbp+var_48]
mov rsi, r14
mov rdx, rbx
mov ecx, [rbp+var_34]
call rtree_set_key_mbr
test eax, eax
mov r8, [rbp+var_58]
jnz short loc_8ABE4
mov rdi, [rbp+var_48]
mov rsi, [rbp+var_40]
mov rdx, [rbp+var_50]
mov ecx, 3
call _mi_write_keypage
test eax, eax
jnz short loc_8ABE4
jmp loc_8AC1D
loc_8AB87:
mov rax, [r14+10h]
mov r15, [rbp+var_58]
mov r12, [rbp+var_50]
mov ecx, [rbp+var_34]
loc_8AB96:
shl rdx, 4
mov [rax+rdx+8], r8
mov rax, [r14]
mov rdx, [r14+10h]
shl rax, 4
mov rsi, [rbp+var_68]
mov [rdx+rax], esi
inc qword ptr [r14]
mov r14, [rbp+var_48]
mov rdi, r14
mov rsi, r15
mov rdx, rbx
mov r8d, r13d
call rtree_delete_key
mov rdi, r14
mov rsi, [rbp+var_40]
mov rdx, r12
mov ecx, 3
mov r8, r15
call _mi_write_keypage
test eax, eax
jz short loc_8AC07
loc_8ABE4:
mov eax, 0FFFFFFFFh
loc_8ABE9:
mov rcx, fs:28h
cmp rcx, [rbp+var_30]
jnz short loc_8AC21
lea rsp, [rbp-28h]
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_8AC07:
movzx eax, byte ptr [r15+1]
mov ecx, [r15]
loc_8AC0F:
and ecx, 7Fh
shl ecx, 8
or ecx, eax
mov rax, [rbp+var_60]
mov [rax], ecx
loc_8AC1D:
xor eax, eax
jmp short loc_8ABE9
loc_8AC21:
call ___stack_chk_fail
|
long long rtree_delete_req(
long long *a1,
long long a2,
long long a3,
unsigned int a4,
long long a5,
int *a6,
long long *a7,
int a8)
{
char *v9; // r12
unsigned int v10; // ebx
long long v11; // r13
unsigned long long v12; // rbx
char *v13; // r15
long long result; // rax
long long v15; // rsi
long long v16; // rcx
long long v17; // r12
long long v18; // rdi
int v19; // eax
long long v20; // rcx
int v21; // eax
int v22; // eax
unsigned int v23; // r15d
long long v24; // r14
unsigned int v25; // r12d
unsigned long long v26; // rax
long long v27; // r9
unsigned long long v28; // r8
long long v29; // rdx
long long v30; // rdx
long long v31; // rax
_BYTE *v32; // r15
unsigned long long v33; // r12
long long v34; // rcx
long long *v35; // r15
_BYTE *v36; // r14
int v37; // ecx
long long *v38; // r15
_BYTE *v39; // r14
int v40; // eax
int v41; // ecx
bool v42; // zf
long long *v43; // r14
unsigned long long v44; // [rsp+0h] [rbp-70h] BYREF
long long v45; // [rsp+8h] [rbp-68h]
int *v46; // [rsp+10h] [rbp-60h]
_BYTE *v47; // [rsp+18h] [rbp-58h]
unsigned long long v48; // [rsp+20h] [rbp-50h]
long long *v49; // [rsp+28h] [rbp-48h]
long long v50; // [rsp+30h] [rbp-40h]
unsigned int v51; // [rsp+3Ch] [rbp-34h]
unsigned long long v52; // [rsp+40h] [rbp-30h]
v46 = a6;
v51 = a4;
v52 = __readfsqword(0x28u);
v9 = (char *)&v44 - ((*(unsigned __int16 *)(a2 + 14) + 15) & 0xFFFFFFF0);
v10 = 0;
v49 = a1;
v50 = a2;
v48 = a5;
if ( !mi_fetch_keypage(a1, a2, a5) )
return 0xFFFFFFFFLL;
if ( *v9 < 0 )
v10 = *(_DWORD *)(*v49 + 380);
v11 = v10;
v12 = (unsigned long long)&v9[v10 + 2];
v13 = &v9[(unsigned __int8)v9[1] | (unsigned long long)((unsigned __int8)(*v9 & 0x7F) << 8)];
result = 1LL;
v15 = v50;
v16 = v51;
if ( v12 < (unsigned long long)v13 )
{
v47 = v9;
v45 = (unsigned int)(a8 + 1);
v17 = v51;
while ( 1 )
{
v18 = *(_QWORD *)(v15 + 40);
if ( v11 )
{
v19 = rtree_key_cmp(v18, a3, v12, v16, 2048LL);
v20 = v11;
if ( !v19 )
{
v21 = mi_kpos(v11, v12);
v22 = rtree_delete_req((_DWORD)v49, v50, a3, v51, v21, (_DWORD)v46, (long long)a7, v45);
v20 = v11;
if ( v22 != 1 )
{
if ( v22 != 2 )
{
if ( v22 )
return 0xFFFFFFFFLL;
v23 = v51 + *v46;
v24 = v50;
v25 = *(unsigned __int16 *)(v50 + 14) / 3u;
v26 = mi_kpos(v11, v12);
v28 = v26;
if ( v23 >= v25 )
{
if ( (unsigned int)rtree_set_key_mbr(v49, v24, v12, v51, v26)
|| (unsigned int)mi_write_keypage(v49, v50, v48, 3u, v47) )
{
return 0xFFFFFFFFLL;
}
}
else
{
v29 = *a7;
if ( *a7 == a7[1] )
{
v44 = v26;
v30 = v29 + 10;
a7[1] = v30;
v31 = my_realloc(mi_key_memory_stPageList_pages, a7[2], 16 * v30, 64LL, v26, v27);
a7[2] = v31;
v32 = v47;
if ( !v31 )
return 0xFFFFFFFFLL;
v29 = *a7;
v33 = v48;
v34 = v51;
v28 = v44;
}
else
{
v31 = a7[2];
v32 = v47;
v33 = v48;
v34 = v51;
}
*(_QWORD *)(v31 + 16 * v29 + 8) = v28;
*(_DWORD *)(a7[2] + 16 * (*a7)++) = v45;
v43 = v49;
rtree_delete_key(v49, v32, v12, v34, (unsigned int)v11);
if ( (unsigned int)mi_write_keypage(v43, v50, v33, 3u, v32) )
return 0xFFFFFFFFLL;
v40 = (unsigned __int8)v32[1];
v41 = *(_DWORD *)v32;
LABEL_35:
*v46 = v40 | ((v41 & 0x7F) << 8);
}
return 0LL;
}
v38 = v49;
v39 = v47;
rtree_delete_key(v49, v47, v12, v51, (unsigned int)v11);
if ( (unsigned int)mi_write_keypage(v38, v50, v48, 3u, v39) )
return 0xFFFFFFFFLL;
v40 = (unsigned __int8)v39[1];
v41 = *(_DWORD *)v39;
goto LABEL_35;
}
}
}
else
{
if ( !(unsigned int)rtree_key_cmp(v18, a3, v12, v16, 24576LL) )
{
v35 = v49;
v36 = v47;
rtree_delete_key(v49, v47, v12, v51, 0LL);
v37 = (unsigned __int8)v36[1] | ((*(_DWORD *)v36 & 0x7F) << 8);
*v46 = v37;
if ( v37 == 2 )
{
if ( (unsigned int)mi_dispose(v35, v50, v48, 3u) )
return 0xFFFFFFFFLL;
return 2LL;
}
else
{
v42 = (unsigned int)mi_write_keypage(v35, v50, v48, 3u, v36) == 0;
result = 0LL;
if ( !v42 )
return 0xFFFFFFFFLL;
}
return result;
}
v20 = *(unsigned int *)(*v49 + 376);
}
v12 += v20 + v17;
v15 = v50;
v16 = v51;
if ( v12 >= (unsigned long long)v13 )
return 1LL;
}
}
return result;
}
|
rtree_delete_req:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV qword ptr [RBP + -0x60],R9
MOV dword ptr [RBP + -0x34],ECX
MOV R14,RDX
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOVZX EAX,word ptr [RSI + 0xe]
MOV R12,RSP
ADD EAX,0xf
AND EAX,0xfffffff0
SUB R12,RAX
MOV RSP,R12
XOR EBX,EBX
MOV qword ptr [RBP + -0x48],RDI
MOV qword ptr [RBP + -0x40],RSI
MOV qword ptr [RBP + -0x50],R8
MOV RDX,R8
MOV ECX,0x3
MOV R8,R12
XOR R9D,R9D
CALL 0x00183cb0
TEST RAX,RAX
JZ 0x0018abe4
MOVZX R15D,byte ptr [R12]
TEST R15B,R15B
JNS 0x0018a8ff
MOV RAX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RAX]
MOV EBX,dword ptr [RAX + 0x17c]
LAB_0018a8ff:
MOV R13D,EBX
LEA RBX,[R12 + R13*0x1]
ADD RBX,0x2
MOVZX EAX,byte ptr [R12 + 0x1]
AND R15D,0x7f
SHL R15D,0x8
OR R15,RAX
ADD R15,R12
MOV EAX,0x1
CMP RBX,R15
MOV RSI,qword ptr [RBP + -0x40]
MOV ECX,dword ptr [RBP + -0x34]
JNC 0x0018abe9
MOV qword ptr [RBP + -0x58],R12
MOV EDX,dword ptr [RBP + 0x18]
INC EDX
MOV qword ptr [RBP + -0x68],RDX
MOV R12D,ECX
LAB_0018a943:
MOV RDI,qword ptr [RSI + 0x28]
MOV RSI,R14
MOV RDX,RBX
TEST R13,R13
JZ 0x0018a99d
MOV R8D,0x800
CALL 0x0018b46c
MOV RCX,R13
TEST EAX,EAX
JNZ 0x0018a9bd
MOV EDI,R13D
MOV RSI,RBX
CALL 0x0018462a
MOV RDI,qword ptr [RBP + -0x48]
MOV RSI,qword ptr [RBP + -0x40]
MOV RDX,R14
MOV ECX,dword ptr [RBP + -0x34]
MOV R8,RAX
MOV R9,qword ptr [RBP + -0x60]
PUSH qword ptr [RBP + -0x68]
PUSH qword ptr [RBP + 0x10]
CALL 0x0018a883
ADD RSP,0x10
MOV RCX,R13
CMP EAX,0x1
JZ 0x0018a9bd
JMP 0x0018a9dd
LAB_0018a99d:
MOV R8D,0x6000
CALL 0x0018b46c
TEST EAX,EAX
JZ 0x0018aa80
MOV RAX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RAX]
MOV ECX,dword ptr [RAX + 0x178]
LAB_0018a9bd:
ADD RBX,R12
ADD RBX,RCX
CMP RBX,R15
MOV RSI,qword ptr [RBP + -0x40]
MOV ECX,dword ptr [RBP + -0x34]
JC 0x0018a943
MOV EAX,0x1
JMP 0x0018abe9
LAB_0018a9dd:
CMP EAX,0x2
JZ 0x0018aade
TEST EAX,EAX
JNZ 0x0018abe4
MOV RAX,qword ptr [RBP + -0x60]
MOV R15D,dword ptr [RAX]
ADD R15D,dword ptr [RBP + -0x34]
MOV R14,qword ptr [RBP + -0x40]
MOVZX EAX,word ptr [R14 + 0xe]
IMUL R12D,EAX,0xaaab
SHR R12D,0x11
MOV EDI,R13D
MOV RSI,RBX
CALL 0x0018462a
MOV R8,RAX
CMP R15D,R12D
JNC 0x0018ab4e
MOV R14,qword ptr [RBP + 0x10]
MOV RDX,qword ptr [R14]
CMP RDX,qword ptr [R14 + 0x8]
JNZ 0x0018ab87
MOV qword ptr [RBP + -0x70],R8
ADD RDX,0xa
MOV qword ptr [R14 + 0x8],RDX
LEA RAX,[0xcff9b4]
MOV EDI,dword ptr [RAX]
MOV RSI,qword ptr [R14 + 0x10]
SHL RDX,0x4
MOV ECX,0x40
CALL 0x0019feac
MOV qword ptr [R14 + 0x10],RAX
TEST RAX,RAX
MOV R15,qword ptr [RBP + -0x58]
JZ 0x0018abe4
MOV RDX,qword ptr [R14]
MOV R12,qword ptr [RBP + -0x50]
MOV ECX,dword ptr [RBP + -0x34]
MOV R8,qword ptr [RBP + -0x70]
JMP 0x0018ab96
LAB_0018aa80:
MOV R15,qword ptr [RBP + -0x48]
MOV RDI,R15
MOV R14,qword ptr [RBP + -0x58]
MOV RSI,R14
MOV RDX,RBX
MOV ECX,dword ptr [RBP + -0x34]
XOR R8D,R8D
CALL 0x0018b377
MOVZX EAX,byte ptr [R14 + 0x1]
MOV ECX,dword ptr [R14]
AND ECX,0x7f
SHL ECX,0x8
OR ECX,EAX
MOV RAX,qword ptr [RBP + -0x60]
MOV dword ptr [RAX],ECX
MOV RDI,R15
CMP ECX,0x2
JNZ 0x0018ab27
MOV RSI,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x50]
MOV ECX,0x3
CALL 0x00183e2f
TEST EAX,EAX
JNZ 0x0018abe4
MOV EAX,0x2
JMP 0x0018abe9
LAB_0018aade:
MOV R15,qword ptr [RBP + -0x48]
MOV RDI,R15
MOV R14,qword ptr [RBP + -0x58]
MOV RSI,R14
MOV RDX,RBX
MOV ECX,dword ptr [RBP + -0x34]
MOV R8D,R13D
CALL 0x0018b377
MOV RDI,R15
MOV RSI,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x50]
MOV ECX,0x3
MOV R8,R14
CALL 0x00183d5c
TEST EAX,EAX
JNZ 0x0018abe4
MOVZX EAX,byte ptr [R14 + 0x1]
MOV ECX,dword ptr [R14]
JMP 0x0018ac0f
LAB_0018ab27:
MOV RSI,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x50]
MOV ECX,0x3
MOV R8,R14
CALL 0x00183d5c
TEST EAX,EAX
MOV EAX,0x0
JNZ 0x0018abe4
JMP 0x0018abe9
LAB_0018ab4e:
MOV RDI,qword ptr [RBP + -0x48]
MOV RSI,R14
MOV RDX,RBX
MOV ECX,dword ptr [RBP + -0x34]
CALL 0x0018b404
TEST EAX,EAX
MOV R8,qword ptr [RBP + -0x58]
JNZ 0x0018abe4
MOV RDI,qword ptr [RBP + -0x48]
MOV RSI,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x50]
MOV ECX,0x3
CALL 0x00183d5c
TEST EAX,EAX
JNZ 0x0018abe4
JMP 0x0018ac1d
LAB_0018ab87:
MOV RAX,qword ptr [R14 + 0x10]
MOV R15,qword ptr [RBP + -0x58]
MOV R12,qword ptr [RBP + -0x50]
MOV ECX,dword ptr [RBP + -0x34]
LAB_0018ab96:
SHL RDX,0x4
MOV qword ptr [RAX + RDX*0x1 + 0x8],R8
MOV RAX,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x10]
SHL RAX,0x4
MOV RSI,qword ptr [RBP + -0x68]
MOV dword ptr [RDX + RAX*0x1],ESI
INC qword ptr [R14]
MOV R14,qword ptr [RBP + -0x48]
MOV RDI,R14
MOV RSI,R15
MOV RDX,RBX
MOV R8D,R13D
CALL 0x0018b377
MOV RDI,R14
MOV RSI,qword ptr [RBP + -0x40]
MOV RDX,R12
MOV ECX,0x3
MOV R8,R15
CALL 0x00183d5c
TEST EAX,EAX
JZ 0x0018ac07
LAB_0018abe4:
MOV EAX,0xffffffff
LAB_0018abe9:
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x30]
JNZ 0x0018ac21
LEA RSP,[RBP + -0x28]
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0018ac07:
MOVZX EAX,byte ptr [R15 + 0x1]
MOV ECX,dword ptr [R15]
LAB_0018ac0f:
AND ECX,0x7f
SHL ECX,0x8
OR ECX,EAX
MOV RAX,qword ptr [RBP + -0x60]
MOV dword ptr [RAX],ECX
LAB_0018ac1d:
XOR EAX,EAX
JMP 0x0018abe9
LAB_0018ac21:
CALL 0x00129270
|
int8
rtree_delete_req(long *param_1,long param_2,int8 param_3,uint param_4,int8 param_5,
uint *param_6,long *param_7,int param_8)
{
byte bVar1;
ushort uVar2;
long lVar3;
int8 uVar4;
long *plVar5;
uint uVar6;
int iVar7;
long lVar8;
int8 uVar9;
long lVar10;
uint uVar11;
ulong uVar12;
byte *pbVar13;
uint *puVar14;
ulong uVar15;
ulong uVar16;
uint uVar17;
byte *pbVar18;
long in_FS_OFFSET;
ulong auStack_90 [3];
int8 local_78;
ulong local_70;
uint *local_68;
uint *local_60;
int8 local_58;
long *local_50;
long local_48;
uint local_3c;
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
lVar3 = -(ulong)(*(ushort *)(param_2 + 0xe) + 0xf & 0xfffffff0);
puVar14 = (uint *)((long)&local_78 + lVar3);
uVar11 = 0;
local_68 = param_6;
local_58 = param_5;
local_50 = param_1;
local_48 = param_2;
local_3c = param_4;
*(int8 *)((long)auStack_90 + lVar3 + 0x10) = 0x18a8df;
lVar8 = _mi_fetch_keypage(param_1,param_2,param_5,3,puVar14,0);
if (lVar8 == 0) {
LAB_0018abe4:
uVar9 = 0xffffffff;
}
else {
if ((char)(byte)*puVar14 < '\0') {
uVar11 = *(uint *)(*local_50 + 0x17c);
}
uVar16 = (ulong)uVar11;
pbVar13 = (byte *)((long)puVar14 + uVar16 + 2);
pbVar18 = (byte *)(((ulong)(((byte)*puVar14 & 0x7f) << 8) |
(ulong)*(byte *)((long)&local_78 + lVar3 + 1)) + (long)puVar14);
uVar9 = 1;
if (pbVar13 < pbVar18) {
local_70 = (ulong)(param_8 + 1);
uVar15 = (ulong)local_3c;
local_60 = puVar14;
do {
uVar6 = local_3c;
uVar9 = *(int8 *)(local_48 + 0x28);
if (uVar16 == 0) {
*(int8 *)((long)auStack_90 + lVar3 + 0x10) = 0x18a9a8;
iVar7 = rtree_key_cmp(uVar9,param_3,pbVar13,uVar6,0x6000);
uVar6 = local_3c;
plVar5 = local_50;
puVar14 = local_60;
if (iVar7 == 0) {
*(int8 *)((long)auStack_90 + lVar3 + 0x10) = 0x18aa9c;
rtree_delete_key(plVar5,puVar14,pbVar13,uVar6,0);
lVar8 = local_48;
uVar9 = local_58;
uVar11 = (*puVar14 & 0x7f) << 8 | (uint)*(byte *)((long)puVar14 + 1);
*local_68 = uVar11;
if (uVar11 != 2) {
*(int8 *)((long)auStack_90 + lVar3 + 0x10) = 0x18ab3c;
iVar7 = _mi_write_keypage(plVar5,lVar8,uVar9,3,puVar14);
uVar9 = 0;
if (iVar7 == 0) goto LAB_0018abe9;
goto LAB_0018abe4;
}
*(int8 *)((long)auStack_90 + lVar3 + 0x10) = 0x18aacc;
iVar7 = _mi_dispose(plVar5,lVar8,uVar9,3);
if (iVar7 != 0) goto LAB_0018abe4;
uVar9 = 2;
goto LAB_0018abe9;
}
uVar12 = (ulong)*(uint *)(*local_50 + 0x178);
}
else {
*(int8 *)((long)auStack_90 + lVar3 + 0x10) = 0x18a95d;
iVar7 = rtree_key_cmp(uVar9,param_3,pbVar13,uVar6,0x800);
uVar12 = uVar16;
if (iVar7 == 0) {
*(int8 *)((long)auStack_90 + lVar3 + 0x10) = 0x18a96f;
uVar9 = _mi_kpos(uVar16,pbVar13);
uVar6 = local_3c;
lVar8 = local_48;
plVar5 = local_50;
puVar14 = local_68;
*(ulong *)((long)auStack_90 + lVar3 + 0x10) = local_70;
*(long **)((long)auStack_90 + lVar3 + 8) = param_7;
*(int8 *)((long)auStack_90 + lVar3) = 0x18a98f;
iVar7 = rtree_delete_req(plVar5,lVar8,param_3,uVar6,uVar9,puVar14);
uVar6 = local_3c;
lVar8 = local_48;
plVar5 = local_50;
puVar14 = local_60;
if (iVar7 != 1) {
if (iVar7 == 2) {
*(int8 *)((long)auStack_90 + lVar3 + 0x10) = 0x18aafa;
rtree_delete_key(plVar5,puVar14,pbVar13,uVar6,uVar11);
lVar8 = local_48;
uVar9 = local_58;
*(int8 *)((long)auStack_90 + lVar3 + 0x10) = 0x18ab12;
iVar7 = _mi_write_keypage(plVar5,lVar8,uVar9,3,puVar14);
if (iVar7 != 0) goto LAB_0018abe4;
bVar1 = *(byte *)((long)puVar14 + 1);
uVar11 = *puVar14;
LAB_0018ac0f:
*local_68 = (uVar11 & 0x7f) << 8 | (uint)bVar1;
}
else {
if (iVar7 != 0) goto LAB_0018abe4;
uVar17 = *local_68 + local_3c;
uVar2 = *(ushort *)(local_48 + 0xe);
*(int8 *)((long)auStack_90 + lVar3 + 0x10) = 0x18aa18;
uVar9 = _mi_kpos(uVar16,pbVar13);
uVar6 = local_3c;
plVar5 = local_50;
if (uVar17 < uVar2 / 3) {
lVar8 = *param_7;
if (lVar8 == param_7[1]) {
param_7[1] = lVar8 + 10;
lVar10 = param_7[2];
local_78 = uVar9;
*(int8 *)((long)auStack_90 + lVar3 + 0x10) = 0x18aa5c;
lVar10 = my_realloc(mi_key_memory_stPageList_pages,lVar10,(lVar8 + 10) * 0x10,
0x40);
param_7[2] = lVar10;
if (lVar10 == 0) goto LAB_0018abe4;
lVar8 = *param_7;
uVar9 = local_78;
}
else {
lVar10 = param_7[2];
}
uVar6 = local_3c;
plVar5 = local_50;
uVar4 = local_58;
puVar14 = local_60;
*(int8 *)(lVar10 + 8 + lVar8 * 0x10) = uVar9;
*(int *)(param_7[2] + *param_7 * 0x10) = (int)local_70;
*param_7 = *param_7 + 1;
*(int8 *)((long)auStack_90 + lVar3 + 0x10) = 0x18abc9;
rtree_delete_key(plVar5,puVar14,pbVar13,uVar6,uVar11);
lVar8 = local_48;
*(int8 *)((long)auStack_90 + lVar3 + 0x10) = 0x18abe0;
iVar7 = _mi_write_keypage(plVar5,lVar8,uVar4,3,puVar14);
if (iVar7 == 0) {
bVar1 = *(byte *)((long)puVar14 + 1);
uVar11 = *puVar14;
goto LAB_0018ac0f;
}
goto LAB_0018abe4;
}
*(int8 *)((long)auStack_90 + lVar3 + 0x10) = 0x18ab60;
iVar7 = rtree_set_key_mbr(plVar5,lVar8,pbVar13,uVar6);
lVar8 = local_48;
plVar5 = local_50;
uVar9 = local_58;
puVar14 = local_60;
if (iVar7 != 0) goto LAB_0018abe4;
*(int8 *)((long)auStack_90 + lVar3 + 0x10) = 0x18ab7e;
iVar7 = _mi_write_keypage(plVar5,lVar8,uVar9,3,puVar14);
if (iVar7 != 0) goto LAB_0018abe4;
}
uVar9 = 0;
goto LAB_0018abe9;
}
}
}
pbVar13 = pbVar13 + uVar12 + uVar15;
} while (pbVar13 < pbVar18);
uVar9 = 1;
}
}
LAB_0018abe9:
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
*(code **)((long)auStack_90 + lVar3 + 0x10) = rtree_estimate;
__stack_chk_fail();
}
return uVar9;
}
|
|
64,586 |
LefDefParser::defwStringProperty(char const*, char const*)
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defwWriter.cpp
|
int
defwStringProperty(const char *propName,
const char *propValue)
{
if (!defwIsPropState())
return DEFW_BAD_ORDER;
// new line for the defwRow of the previous line
// do not end with newline, may have more than on properties
fprintf(defwFile, "\n + PROPERTY %s \"%s\" ", propName, propValue);
defwLines++;
return DEFW_OK;
}
|
O3
|
cpp
|
LefDefParser::defwStringProperty(char const*, char const*):
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x800c
testl %eax, %eax
je 0x807f
leaq 0x1610d(%rip), %rax # 0x1e168
movq (%rax), %rdi
leaq 0xd10c(%rip), %rsi # 0x15171
xorl %ebp, %ebp
movq %r14, %rdx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x10e0
leaq 0x160f5(%rip), %rax # 0x1e170
incl (%rax)
jmp 0x8084
movl $0x2, %ebp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
|
_ZN12LefDefParser18defwStringPropertyEPKcS1_:
push rbp
push r14
push rbx
mov rbx, rsi
mov r14, rdi
call _ZN12LefDefParser15defwIsPropStateEv; LefDefParser::defwIsPropState(void)
test eax, eax
jz short loc_807F
lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile
mov rdi, [rax]
lea rsi, aPropertySS; "\n + PROPERTY %s \"%s\" "
xor ebp, ebp
mov rdx, r14
mov rcx, rbx
xor eax, eax
call _fprintf
lea rax, _ZN12LefDefParser9defwLinesE; LefDefParser::defwLines
inc dword ptr [rax]
jmp short loc_8084
loc_807F:
mov ebp, 2
loc_8084:
mov eax, ebp
pop rbx
pop r14
pop rbp
retn
|
long long LefDefParser::defwStringProperty(LefDefParser *this, const char *a2, const char *a3)
{
unsigned int v3; // ebp
if ( (unsigned int)LefDefParser::defwIsPropState(this) )
{
v3 = 0;
fprintf(LefDefParser::defwFile, "\n + PROPERTY %s \"%s\" ", (const char *)this, a2);
++LefDefParser::defwLines;
}
else
{
return 2;
}
return v3;
}
|
defwStringProperty:
PUSH RBP
PUSH R14
PUSH RBX
MOV RBX,RSI
MOV R14,RDI
CALL 0x0010800c
TEST EAX,EAX
JZ 0x0010807f
LEA RAX,[0x11e168]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x115171]
XOR EBP,EBP
MOV RDX,R14
MOV RCX,RBX
XOR EAX,EAX
CALL 0x001010e0
LEA RAX,[0x11e170]
INC dword ptr [RAX]
JMP 0x00108084
LAB_0010807f:
MOV EBP,0x2
LAB_00108084:
MOV EAX,EBP
POP RBX
POP R14
POP RBP
RET
|
/* LefDefParser::defwStringProperty(char const*, char const*) */
int8 LefDefParser::defwStringProperty(char *param_1,char *param_2)
{
int iVar1;
int8 uVar2;
iVar1 = defwIsPropState();
if (iVar1 == 0) {
uVar2 = 2;
}
else {
uVar2 = 0;
fprintf(defwFile,"\n + PROPERTY %s \"%s\" ",param_1,param_2);
defwLines = defwLines + 1;
}
return uVar2;
}
|
|
64,587 |
js_array_concat
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_array_concat(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue obj, arr, val;
JSValue e;
int64_t len, k, n;
int i, res;
arr = JS_UNDEFINED;
obj = JS_ToObject(ctx, this_val);
if (JS_IsException(obj))
goto exception;
arr = JS_ArraySpeciesCreate(ctx, obj, js_int32(0));
if (JS_IsException(arr))
goto exception;
n = 0;
for (i = -1; i < argc; i++) {
if (i < 0)
e = obj;
else
e = argv[i];
res = JS_isConcatSpreadable(ctx, e);
if (res < 0)
goto exception;
if (res) {
if (js_get_length64(ctx, &len, e))
goto exception;
if (n + len > MAX_SAFE_INTEGER) {
JS_ThrowTypeError(ctx, "Array loo long");
goto exception;
}
for (k = 0; k < len; k++, n++) {
res = JS_TryGetPropertyInt64(ctx, e, k, &val);
if (res < 0)
goto exception;
if (res) {
if (JS_DefinePropertyValueInt64(ctx, arr, n, val,
JS_PROP_C_W_E | JS_PROP_THROW) < 0)
goto exception;
}
}
} else {
if (n >= MAX_SAFE_INTEGER) {
JS_ThrowTypeError(ctx, "Array loo long");
goto exception;
}
if (JS_DefinePropertyValueInt64(ctx, arr, n, js_dup(e),
JS_PROP_C_W_E | JS_PROP_THROW) < 0)
goto exception;
n++;
}
}
if (JS_SetProperty(ctx, arr, JS_ATOM_length, js_int64(n)) < 0)
goto exception;
JS_FreeValue(ctx, obj);
return arr;
exception:
JS_FreeValue(ctx, arr);
JS_FreeValue(ctx, obj);
return JS_EXCEPTION;
}
|
O1
|
c
|
js_array_concat:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %r8, %r15
movl %ecx, 0x3c(%rsp)
movq %rdi, %rbx
callq 0x26ddd
movq %rax, %r14
movq %rdx, %r12
cmpl $0x6, %r12d
jne 0x746d3
movl $0x3, %ebp
xorl %r13d, %r13d
xorl %eax, %eax
jmp 0x74a0c
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x77d1a
movq %rax, %r13
movq %rdx, %rbp
shrq $0x20, %rax
cmpl $0x6, %ebp
je 0x74a0c
movq %rax, 0x28(%rsp)
cmpl $0x0, 0x3c(%rsp)
js 0x7499f
movq %r15, 0x80(%rsp)
movl $0xffffffff, %esi # imm = 0xFFFFFFFF
movabsq $0x1ffffffffffffe, %rax # imm = 0x1FFFFFFFFFFFFE
incq %rax
movq %rax, 0x78(%rsp)
xorl %edx, %edx
movq %r14, 0x60(%rsp)
movq %r12, 0x58(%rsp)
movq %rbp, 0x50(%rsp)
movq %r13, 0x20(%rsp)
movq %rdx, 0x68(%rsp)
movq %r14, 0x30(%rsp)
movq %r12, %r15
testl %esi, %esi
js 0x7476b
movl %esi, %eax
shlq $0x4, %rax
movq 0x80(%rsp), %rcx
movq (%rcx,%rax), %rdx
movq %rdx, 0x30(%rsp)
movq 0x8(%rcx,%rax), %r15
movl %esi, 0x74(%rsp)
xorl %eax, %eax
cmpl $-0x1, %r15d
jne 0x747ce
movl $0x0, 0x8(%rsp)
movq $0x0, (%rsp)
movq %rbx, %rdi
movq 0x30(%rsp), %rsi
movq %r15, %rdx
movl $0xdb, %ecx
movq %rsi, %r8
movq %r15, %r9
callq 0x22fa3
cmpl $0x3, %edx
je 0x747be
movq %rax, %rsi
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
cmpl $0x6, %edx
je 0x747ce
movq %rbx, %rdi
callq 0x22d0d
jmp 0x747ce
movq %rbx, %rdi
movq 0x30(%rsp), %rsi
movq %r15, %rdx
callq 0x282d2
testl %eax, %eax
js 0x74a07
je 0x748de
movq %rbx, %rdi
leaq 0x88(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %r15, %rcx
callq 0x22adc
testl %eax, %eax
jne 0x74998
movq 0x88(%rsp), %r13
movq 0x68(%rsp), %rdx
leaq (%rdx,%r13), %rax
cmpq 0x78(%rsp), %rax
jg 0x74a54
testq %r13, %r13
jle 0x748d4
movq %rdx, %r12
subq $-0x80000000, %r12 # imm = 0x80000000
xorl %ebp, %ebp
leaq (%rdx,%rbp), %r14
movq %rbx, %rdi
movq 0x30(%rsp), %rsi
movq %r15, %rdx
movq %rbp, %rcx
leaq 0x90(%rsp), %r8
callq 0x4d6d1
testl %eax, %eax
js 0x74989
je 0x748b1
movaps 0x90(%rsp), %xmm0
movaps %xmm0, 0x40(%rsp)
leaq (%r12,%rbp), %r8
shrq $0x20, %r8
movl %r14d, %eax
xorps %xmm0, %xmm0
cvtsi2sd %r14, %xmm0
movq %xmm0, %rcx
cmoveq %rax, %rcx
movl $0x7, %eax
cmovneq %rax, %r8
movaps 0x40(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movq 0x20(%rsp), %rsi
movq 0x50(%rsp), %rdx
movl $0x4007, %r9d # imm = 0x4007
callq 0x26b2d
testl %eax, %eax
js 0x74989
incq %rbp
cmpq %rbp, %r13
movq 0x68(%rsp), %rdx
jne 0x7482d
addq %rbp, %rdx
movq 0x60(%rsp), %r14
movq 0x58(%rsp), %r12
movq 0x50(%rsp), %rbp
movq 0x20(%rsp), %r13
jmp 0x74977
movq 0x68(%rsp), %rdx
movabsq $0x1ffffffffffffe, %rax # imm = 0x1FFFFFFFFFFFFE
cmpq %rax, %rdx
jg 0x74a54
movq 0x30(%rsp), %rax
movq %rax, 0x40(%rsp)
cmpl $-0x9, %r15d
jb 0x7490d
movq 0x40(%rsp), %rax
incl (%rax)
movq 0x30(%rsp), %rax
movq %rax, 0x40(%rsp)
movslq %edx, %rax
cmpq %rdx, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rdx, %xmm0
movl %eax, %eax
movq %xmm0, %rcx
cmoveq %rax, %rcx
movq %r15, 0x48(%rsp)
movl $0x7, %r8d
movl $0x0, %eax
cmoveq %rax, %r8
movups 0x40(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movq 0x20(%rsp), %r13
movq %r13, %rsi
movq %rdx, %r15
movq %rbp, %rdx
movl $0x4007, %r9d # imm = 0x4007
callq 0x26b2d
testl %eax, %eax
js 0x74a07
incq %r15
movq %r15, %rdx
movl 0x74(%rsp), %esi
incl %esi
cmpl 0x3c(%rsp), %esi
jne 0x7473e
jmp 0x749a1
movq 0x60(%rsp), %r14
movq 0x58(%rsp), %r12
movq 0x50(%rsp), %rbp
movq 0x20(%rsp), %r13
jmp 0x74a07
xorl %edx, %edx
movslq %edx, %rax
xorl %ecx, %ecx
cmpq %rdx, %rax
movl %eax, %eax
xorps %xmm0, %xmm0
cvtsi2sd %rdx, %xmm0
movq %xmm0, %r8
cmoveq %rax, %r8
movl $0x7, %r9d
cmoveq %rcx, %r9
movq %r13, 0x40(%rsp)
movq %rbp, 0x48(%rsp)
movups 0x40(%rsp), %xmm0
movups %xmm0, (%rsp)
movq $0x0, 0x18(%rsp)
movl $0x4000, 0x10(%rsp) # imm = 0x4000
movq %rbx, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movl $0x32, %ecx
callq 0x24388
testl %eax, %eax
js 0x74a07
addq $0x18, %rbx
jmp 0x74a2e
movq 0x28(%rsp), %rax
shlq $0x20, %rax
movl %r13d, %esi
orq %rax, %rsi
movq 0x18(%rbx), %rdi
addq $0x18, %rbx
movq %rbp, %rdx
callq 0x1d8c6
movl $0x6, %ebp
xorl %r13d, %r13d
movq (%rbx), %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x1d8c6
movq %r13, %rax
movq %rbp, %rdx
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2b45c(%rip), %rsi # 0x9feb7
movq %rbx, %rdi
xorl %eax, %eax
callq 0x22567
jmp 0x74998
|
js_array_concat:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0A8h
mov r15, r8
mov [rsp+0D8h+var_9C], ecx
mov rbx, rdi
call JS_ToObject
mov r14, rax
mov r12, rdx
cmp r12d, 6
jnz short loc_746D3
mov ebp, 3
xor r13d, r13d
xor eax, eax
jmp loc_74A0C
loc_746D3:
mov rdi, rbx
mov rsi, r14
mov rdx, r12
xor ecx, ecx
xor r8d, r8d
call JS_ArraySpeciesCreate
mov r13, rax
mov rbp, rdx
shr rax, 20h
cmp ebp, 6
jz loc_74A0C
mov [rsp+0D8h+var_B0], rax
cmp [rsp+0D8h+var_9C], 0
js loc_7499F
mov [rsp+0D8h+var_58], r15
mov esi, 0FFFFFFFFh
mov rax, 1FFFFFFFFFFFFEh
inc rax
mov [rsp+0D8h+var_60], rax
xor edx, edx
mov [rsp+0D8h+var_78], r14
mov [rsp+0D8h+var_80], r12
mov [rsp+0D8h+var_88], rbp
mov [rsp+0D8h+var_B8], r13
loc_7473E:
mov [rsp+0D8h+var_70], rdx
mov [rsp+0D8h+var_A8], r14
mov r15, r12
test esi, esi
js short loc_7476B
mov eax, esi
shl rax, 4
mov rcx, [rsp+0D8h+var_58]
mov rdx, [rcx+rax]
mov [rsp+0D8h+var_A8], rdx
mov r15, [rcx+rax+8]
loc_7476B:
mov [rsp+0D8h+var_64], esi
xor eax, eax
cmp r15d, 0FFFFFFFFh
jnz short loc_747CE
mov dword ptr [rsp+0D8h+var_D8+8], 0
mov qword ptr [rsp+0D8h+var_D8], 0
mov rdi, rbx
mov rsi, [rsp+0D8h+var_A8]
mov rdx, r15
mov ecx, 0DBh
mov r8, rsi
mov r9, r15
call JS_GetPropertyInternal2
cmp edx, 3
jz short loc_747BE
mov rsi, rax
mov eax, 0FFFFFFFFh
cmp edx, 6
jz short loc_747CE
mov rdi, rbx
call JS_ToBoolFree
jmp short loc_747CE
loc_747BE:
mov rdi, rbx
mov rsi, [rsp+0D8h+var_A8]
mov rdx, r15
call JS_IsArray
loc_747CE:
test eax, eax
js loc_74A07
jz loc_748DE
mov rdi, rbx
lea rsi, [rsp+0D8h+var_50]
mov rdx, [rsp+0D8h+var_A8]
mov rcx, r15
call js_get_length64
test eax, eax
jnz loc_74998
mov r13, [rsp+0D8h+var_50]
mov rdx, [rsp+0D8h+var_70]
lea rax, [rdx+r13]
cmp rax, [rsp+0D8h+var_60]
jg loc_74A54
test r13, r13
jle loc_748D4
mov r12, rdx
sub r12, 0FFFFFFFF80000000h
xor ebp, ebp
loc_7482D:
lea r14, [rdx+rbp]
mov rdi, rbx
mov rsi, [rsp+0D8h+var_A8]
mov rdx, r15
mov rcx, rbp
lea r8, [rsp+0D8h+var_48]
call JS_TryGetPropertyInt64
test eax, eax
js loc_74989
jz short loc_748B1
movaps xmm0, [rsp+0D8h+var_48]
movaps [rsp+0D8h+var_98], xmm0
lea r8, [r12+rbp]
shr r8, 20h
mov eax, r14d
xorps xmm0, xmm0
cvtsi2sd xmm0, r14
movq rcx, xmm0
cmovz rcx, rax
mov eax, 7
cmovnz r8, rax
movaps xmm0, [rsp+0D8h+var_98]
movups [rsp+0D8h+var_D8], xmm0
mov rdi, rbx
mov rsi, [rsp+0D8h+var_B8]
mov rdx, [rsp+0D8h+var_88]
mov r9d, 4007h
call JS_DefinePropertyValueValue
test eax, eax
js loc_74989
loc_748B1:
inc rbp
cmp r13, rbp
mov rdx, [rsp+0D8h+var_70]
jnz loc_7482D
add rdx, rbp
mov r14, [rsp+0D8h+var_78]
mov r12, [rsp+0D8h+var_80]
mov rbp, [rsp+0D8h+var_88]
loc_748D4:
mov r13, [rsp+0D8h+var_B8]
jmp loc_74977
loc_748DE:
mov rdx, [rsp+0D8h+var_70]
mov rax, 1FFFFFFFFFFFFEh
cmp rdx, rax
jg loc_74A54
mov rax, [rsp+0D8h+var_A8]
mov qword ptr [rsp+0D8h+var_98], rax
cmp r15d, 0FFFFFFF7h
jb short loc_7490D
mov rax, qword ptr [rsp+0D8h+var_98]
inc dword ptr [rax]
loc_7490D:
mov rax, [rsp+0D8h+var_A8]
mov qword ptr [rsp+0D8h+var_98], rax
movsxd rax, edx
cmp rax, rdx
xorps xmm0, xmm0
cvtsi2sd xmm0, rdx
mov eax, eax
movq rcx, xmm0
cmovz rcx, rax
mov qword ptr [rsp+0D8h+var_98+8], r15
mov r8d, 7
mov eax, 0
cmovz r8, rax
movups xmm0, [rsp+0D8h+var_98]
movups [rsp+0D8h+var_D8], xmm0
mov rdi, rbx
mov r13, [rsp+0D8h+var_B8]
mov rsi, r13
mov r15, rdx
mov rdx, rbp
mov r9d, 4007h
call JS_DefinePropertyValueValue
test eax, eax
js loc_74A07
inc r15
mov rdx, r15
loc_74977:
mov esi, [rsp+0D8h+var_64]
inc esi
cmp esi, [rsp+0D8h+var_9C]
jnz loc_7473E
jmp short loc_749A1
loc_74989:
mov r14, [rsp+0D8h+var_78]
mov r12, [rsp+0D8h+var_80]
mov rbp, [rsp+0D8h+var_88]
loc_74998:
mov r13, [rsp+0D8h+var_B8]
jmp short loc_74A07
loc_7499F:
xor edx, edx
loc_749A1:
movsxd rax, edx
xor ecx, ecx
cmp rax, rdx
mov eax, eax
xorps xmm0, xmm0
cvtsi2sd xmm0, rdx
movq r8, xmm0
cmovz r8, rax
mov r9d, 7
cmovz r9, rcx
mov qword ptr [rsp+0D8h+var_98], r13
mov qword ptr [rsp+0D8h+var_98+8], rbp
movups xmm0, [rsp+0D8h+var_98]
movups [rsp+0D8h+var_D8], xmm0
mov [rsp+0D8h+var_C0], 0
mov [rsp+0D8h+var_C8], 4000h
mov rdi, rbx
mov rsi, r13
mov rdx, rbp
mov ecx, 32h ; '2'
call JS_SetPropertyInternal2
test eax, eax
js short loc_74A07
add rbx, 18h
jmp short loc_74A2E
loc_74A07:
mov rax, [rsp+0D8h+var_B0]
loc_74A0C:
shl rax, 20h
mov esi, r13d
or rsi, rax
mov rdi, [rbx+18h]
add rbx, 18h
mov rdx, rbp
call JS_FreeValueRT
mov ebp, 6
xor r13d, r13d
loc_74A2E:
mov rdi, [rbx]
mov rsi, r14
mov rdx, r12
call JS_FreeValueRT
mov rax, r13
mov rdx, rbp
add rsp, 0A8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_74A54:
lea rsi, aArrayLooLong; "Array loo long"
mov rdi, rbx
xor eax, eax
call JS_ThrowTypeError
jmp loc_74998
|
unsigned long long js_array_concat(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
_DWORD *v15; // rax
long long v16; // rdx
_DWORD *v17; // r14
long long v18; // r12
unsigned long long v19; // rbp
unsigned long long v20; // r13
unsigned long long v21; // rax
long long v22; // rcx
long long v23; // r8
long long v24; // r9
__m128 v25; // xmm4
__m128 v26; // xmm5
unsigned long long v27; // rdx
int v28; // esi
long long v29; // rdx
long long v30; // r15
long long v31; // rax
int IsArray; // eax
unsigned long long PropertyInternal2; // rax
long long v34; // rdx
long long v35; // rsi
long long v36; // r13
unsigned long long v37; // rbp
int v38; // r14d
int PropertyInt64; // eax
unsigned long long v40; // r8
double v41; // rcx
double v42; // rcx
long long v43; // r8
double v44; // r8
long long v45; // r9
long long *v46; // rbx
char v48; // [rsp+0h] [rbp-D8h]
unsigned long long v49; // [rsp+20h] [rbp-B8h]
unsigned long long v50; // [rsp+28h] [rbp-B0h]
_DWORD *v51; // [rsp+30h] [rbp-A8h]
int v52; // [rsp+3Ch] [rbp-9Ch]
__m128 v53; // [rsp+40h] [rbp-98h]
__m128 v54; // [rsp+40h] [rbp-98h]
long long v55; // [rsp+50h] [rbp-88h]
long long v56; // [rsp+58h] [rbp-80h]
_DWORD *v57; // [rsp+60h] [rbp-78h]
long long v58; // [rsp+68h] [rbp-70h]
int v59; // [rsp+74h] [rbp-64h]
long long v60; // [rsp+80h] [rbp-58h]
long long v61; // [rsp+88h] [rbp-50h] BYREF
__m128 v62; // [rsp+90h] [rbp-48h] BYREF
v52 = a4;
v15 = JS_ToObject(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);
v17 = v15;
v18 = v16;
if ( (_DWORD)v16 == 6 )
{
v19 = 3LL;
LODWORD(v20) = 0;
v21 = 0LL;
LABEL_49:
v46 = (long long *)(a1 + 24);
JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)((v21 << 32) | (unsigned int)v20), v19);
v20 = 0LL;
goto LABEL_50;
}
v20 = JS_ArraySpeciesCreate(a1, v15, v16, 0LL, 0LL);
v19 = v27;
v21 = HIDWORD(v20);
if ( (_DWORD)v27 == 6 )
goto LABEL_49;
v50 = HIDWORD(v20);
if ( v52 >= 0 )
{
v60 = a5;
v28 = -1;
v29 = 0LL;
v57 = v17;
v56 = v18;
v55 = v19;
v49 = v20;
while ( 1 )
{
v58 = v29;
v51 = v17;
v30 = v18;
if ( v28 >= 0 )
{
v31 = 16LL * (unsigned int)v28;
v22 = v60;
v51 = *(_DWORD **)(v60 + v31);
v30 = *(_QWORD *)(v60 + v31 + 8);
}
v59 = v28;
IsArray = 0;
if ( (_DWORD)v30 == -1 )
{
PropertyInternal2 = JS_GetPropertyInternal2(a1, (long long)v51, v30, 0xDBu, (long long)v51, v30, 0LL, 0);
if ( (_DWORD)v34 == 3 )
{
IsArray = JS_IsArray(a1, (long long)v51, -1);
}
else
{
v35 = PropertyInternal2;
IsArray = -1;
if ( (_DWORD)v34 != 6 )
IsArray = JS_ToBoolFree(a1, v35, v34);
}
}
if ( IsArray < 0 )
goto LABEL_48;
if ( IsArray )
{
if ( (unsigned int)js_get_length64(a1, &v61, (int)v51, v30) )
goto LABEL_40;
v36 = v61;
v29 = v58;
if ( v58 + v61 > 0x1FFFFFFFFFFFFFLL )
{
LABEL_51:
JS_ThrowTypeError(a1, (long long)"Array loo long", v29, v22, v23, v24, a7, a8, a9, a10, v25, v26, a13, a14, v48);
LABEL_40:
LODWORD(v20) = v49;
goto LABEL_48;
}
if ( v61 > 0 )
{
v37 = 0LL;
while ( 1 )
{
v38 = v29 + v37;
PropertyInt64 = JS_TryGetPropertyInt64(a1, (long long)v51, v30, v37, (long long)&v62);
if ( PropertyInt64 < 0 )
break;
if ( PropertyInt64 )
{
v40 = (v58 + 0x80000000LL + v37) >> 32;
v41 = (double)v38;
if ( v40 )
v40 = 7LL;
else
*(_QWORD *)&v41 = (unsigned int)v38;
a7 = v62;
if ( (int)JS_DefinePropertyValueValue(
a1,
v49,
v55,
*(_DWORD **)&v41,
v40,
16391,
*(double *)v62.m128_u64,
a8,
a9,
a10,
*(double *)v25.m128_u64,
*(double *)v26.m128_u64,
a13,
a14,
v62.m128_u64[0],
v62.m128_i64[1]) < 0 )
break;
}
++v37;
LODWORD(v29) = v58;
if ( v36 == v37 )
{
v29 = v37 + v58;
v17 = v57;
v18 = v56;
v19 = v55;
goto LABEL_27;
}
}
v17 = v57;
v18 = v56;
v19 = v55;
goto LABEL_40;
}
LABEL_27:
v20 = v49;
}
else
{
v29 = v58;
if ( v58 > 0x1FFFFFFFFFFFFELL )
goto LABEL_51;
if ( (unsigned int)v30 >= 0xFFFFFFF7 )
++*v51;
v53.m128_u64[0] = (unsigned long long)v51;
v42 = (double)(int)v58;
if ( (int)v58 == v58 )
*(_QWORD *)&v42 = (unsigned int)v58;
v53.m128_u64[1] = v30;
v43 = 7LL;
if ( (int)v58 == v58 )
v43 = 0LL;
a7 = v53;
v20 = v49;
if ( (int)JS_DefinePropertyValueValue(
a1,
v49,
v19,
*(_DWORD **)&v42,
v43,
16391,
*(double *)&v51,
a8,
a9,
a10,
*(double *)v25.m128_u64,
*(double *)v26.m128_u64,
a13,
a14,
v51,
v30) < 0 )
goto LABEL_48;
v29 = v58 + 1;
}
v28 = v59 + 1;
if ( v59 + 1 == v52 )
goto LABEL_42;
}
}
v29 = 0LL;
LABEL_42:
v44 = (double)(int)v29;
if ( (int)v29 == v29 )
*(_QWORD *)&v44 = (unsigned int)v29;
v45 = 7LL;
if ( (int)v29 == v29 )
v45 = 0LL;
v54.m128_u64[0] = v20;
v54.m128_u64[1] = v19;
if ( (int)JS_SetPropertyInternal2(
a1,
v20,
v19,
0x32u,
*(_DWORD **)&v44,
v45,
v54,
a8,
a9,
a10,
*(double *)v25.m128_u64,
*(double *)v26.m128_u64,
a13,
a14,
v20,
v19,
0x4000u,
0LL) < 0 )
{
LABEL_48:
v21 = v50;
goto LABEL_49;
}
v46 = (long long *)(a1 + 24);
LABEL_50:
JS_FreeValueRT(*v46, v17, v18);
return v20;
}
|
js_array_concat:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xa8
MOV R15,R8
MOV dword ptr [RSP + 0x3c],ECX
MOV RBX,RDI
CALL 0x00126ddd
MOV R14,RAX
MOV R12,RDX
CMP R12D,0x6
JNZ 0x001746d3
MOV EBP,0x3
XOR R13D,R13D
XOR EAX,EAX
JMP 0x00174a0c
LAB_001746d3:
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R12
XOR ECX,ECX
XOR R8D,R8D
CALL 0x00177d1a
MOV R13,RAX
MOV RBP,RDX
SHR RAX,0x20
CMP EBP,0x6
JZ 0x00174a0c
MOV qword ptr [RSP + 0x28],RAX
CMP dword ptr [RSP + 0x3c],0x0
JS 0x0017499f
MOV qword ptr [RSP + 0x80],R15
MOV ESI,0xffffffff
MOV RAX,0x1ffffffffffffe
INC RAX
MOV qword ptr [RSP + 0x78],RAX
XOR EDX,EDX
MOV qword ptr [RSP + 0x60],R14
MOV qword ptr [RSP + 0x58],R12
MOV qword ptr [RSP + 0x50],RBP
MOV qword ptr [RSP + 0x20],R13
LAB_0017473e:
MOV qword ptr [RSP + 0x68],RDX
MOV qword ptr [RSP + 0x30],R14
MOV R15,R12
TEST ESI,ESI
JS 0x0017476b
MOV EAX,ESI
SHL RAX,0x4
MOV RCX,qword ptr [RSP + 0x80]
MOV RDX,qword ptr [RCX + RAX*0x1]
MOV qword ptr [RSP + 0x30],RDX
MOV R15,qword ptr [RCX + RAX*0x1 + 0x8]
LAB_0017476b:
MOV dword ptr [RSP + 0x74],ESI
XOR EAX,EAX
CMP R15D,-0x1
JNZ 0x001747ce
MOV dword ptr [RSP + 0x8],0x0
MOV qword ptr [RSP],0x0
MOV RDI,RBX
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,R15
MOV ECX,0xdb
MOV R8,RSI
MOV R9,R15
CALL 0x00122fa3
CMP EDX,0x3
JZ 0x001747be
MOV RSI,RAX
MOV EAX,0xffffffff
CMP EDX,0x6
JZ 0x001747ce
MOV RDI,RBX
CALL 0x00122d0d
JMP 0x001747ce
LAB_001747be:
MOV RDI,RBX
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,R15
CALL 0x001282d2
LAB_001747ce:
TEST EAX,EAX
JS 0x00174a07
JZ 0x001748de
MOV RDI,RBX
LEA RSI,[RSP + 0x88]
MOV RDX,qword ptr [RSP + 0x30]
MOV RCX,R15
CALL 0x00122adc
TEST EAX,EAX
JNZ 0x00174998
MOV R13,qword ptr [RSP + 0x88]
MOV RDX,qword ptr [RSP + 0x68]
LEA RAX,[RDX + R13*0x1]
CMP RAX,qword ptr [RSP + 0x78]
JG 0x00174a54
TEST R13,R13
JLE 0x001748d4
MOV R12,RDX
SUB R12,-0x80000000
XOR EBP,EBP
LAB_0017482d:
LEA R14,[RDX + RBP*0x1]
MOV RDI,RBX
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,R15
MOV RCX,RBP
LEA R8,[RSP + 0x90]
CALL 0x0014d6d1
TEST EAX,EAX
JS 0x00174989
JZ 0x001748b1
MOVAPS XMM0,xmmword ptr [RSP + 0x90]
MOVAPS xmmword ptr [RSP + 0x40],XMM0
LEA R8,[R12 + RBP*0x1]
SHR R8,0x20
MOV EAX,R14D
XORPS XMM0,XMM0
CVTSI2SD XMM0,R14
MOVQ RCX,XMM0
CMOVZ RCX,RAX
MOV EAX,0x7
CMOVNZ R8,RAX
MOVAPS XMM0,xmmword ptr [RSP + 0x40]
MOVUPS xmmword ptr [RSP],XMM0
MOV RDI,RBX
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x50]
MOV R9D,0x4007
CALL 0x00126b2d
TEST EAX,EAX
JS 0x00174989
LAB_001748b1:
INC RBP
CMP R13,RBP
MOV RDX,qword ptr [RSP + 0x68]
JNZ 0x0017482d
ADD RDX,RBP
MOV R14,qword ptr [RSP + 0x60]
MOV R12,qword ptr [RSP + 0x58]
MOV RBP,qword ptr [RSP + 0x50]
LAB_001748d4:
MOV R13,qword ptr [RSP + 0x20]
JMP 0x00174977
LAB_001748de:
MOV RDX,qword ptr [RSP + 0x68]
MOV RAX,0x1ffffffffffffe
CMP RDX,RAX
JG 0x00174a54
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x40],RAX
CMP R15D,-0x9
JC 0x0017490d
MOV RAX,qword ptr [RSP + 0x40]
INC dword ptr [RAX]
LAB_0017490d:
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x40],RAX
MOVSXD RAX,EDX
CMP RAX,RDX
XORPS XMM0,XMM0
CVTSI2SD XMM0,RDX
MOV EAX,EAX
MOVQ RCX,XMM0
CMOVZ RCX,RAX
MOV qword ptr [RSP + 0x48],R15
MOV R8D,0x7
MOV EAX,0x0
CMOVZ R8,RAX
MOVUPS XMM0,xmmword ptr [RSP + 0x40]
MOVUPS xmmword ptr [RSP],XMM0
MOV RDI,RBX
MOV R13,qword ptr [RSP + 0x20]
MOV RSI,R13
MOV R15,RDX
MOV RDX,RBP
MOV R9D,0x4007
CALL 0x00126b2d
TEST EAX,EAX
JS 0x00174a07
INC R15
MOV RDX,R15
LAB_00174977:
MOV ESI,dword ptr [RSP + 0x74]
INC ESI
CMP ESI,dword ptr [RSP + 0x3c]
JNZ 0x0017473e
JMP 0x001749a1
LAB_00174989:
MOV R14,qword ptr [RSP + 0x60]
MOV R12,qword ptr [RSP + 0x58]
MOV RBP,qword ptr [RSP + 0x50]
LAB_00174998:
MOV R13,qword ptr [RSP + 0x20]
JMP 0x00174a07
LAB_0017499f:
XOR EDX,EDX
LAB_001749a1:
MOVSXD RAX,EDX
XOR ECX,ECX
CMP RAX,RDX
MOV EAX,EAX
XORPS XMM0,XMM0
CVTSI2SD XMM0,RDX
MOVQ R8,XMM0
CMOVZ R8,RAX
MOV R9D,0x7
CMOVZ R9,RCX
MOV qword ptr [RSP + 0x40],R13
MOV qword ptr [RSP + 0x48],RBP
MOVUPS XMM0,xmmword ptr [RSP + 0x40]
MOVUPS xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x18],0x0
MOV dword ptr [RSP + 0x10],0x4000
MOV RDI,RBX
MOV RSI,R13
MOV RDX,RBP
MOV ECX,0x32
CALL 0x00124388
TEST EAX,EAX
JS 0x00174a07
ADD RBX,0x18
JMP 0x00174a2e
LAB_00174a07:
MOV RAX,qword ptr [RSP + 0x28]
LAB_00174a0c:
SHL RAX,0x20
MOV ESI,R13D
OR RSI,RAX
MOV RDI,qword ptr [RBX + 0x18]
ADD RBX,0x18
MOV RDX,RBP
CALL 0x0011d8c6
MOV EBP,0x6
XOR R13D,R13D
LAB_00174a2e:
MOV RDI,qword ptr [RBX]
MOV RSI,R14
MOV RDX,R12
CALL 0x0011d8c6
MOV RAX,R13
MOV RDX,RBP
ADD RSP,0xa8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00174a54:
LEA RSI,[0x19feb7]
MOV RDI,RBX
XOR EAX,EAX
CALL 0x00122567
JMP 0x00174998
|
int1 [16]
js_array_concat(long param_1,int8 param_2,int8 param_3,uint param_4,long param_5)
{
int1 auVar1 [16];
long lVar2;
int iVar3;
ulong uVar4;
ulong uVar5;
double dVar6;
int8 uVar7;
ulong uVar8;
long lVar9;
uint uVar10;
int8 uVar11;
int8 uVar12;
uint uVar13;
bool bVar14;
int1 auVar15 [12];
int1 auVar16 [16];
int1 auVar17 [16];
int *local_a8;
int4 uStack_90;
long local_50;
int8 local_48 [3];
auVar16 = JS_ToObject();
if (auVar16._8_4_ == 6) {
auVar17 = ZEXT816(3) << 0x40;
uVar5 = 0;
}
else {
auVar17 = JS_ArraySpeciesCreate(param_1,auVar16._0_8_,auVar16._8_8_,0,0);
uVar7 = auVar17._8_8_;
uVar4 = auVar17._0_8_;
uVar5 = uVar4 >> 0x20;
if (auVar17._8_4_ != 6) {
if ((int)param_4 < 0) {
uVar8 = 0;
}
else {
uVar10 = 0xffffffff;
uVar8 = 0;
do {
auVar1 = auVar16;
if (-1 < (int)uVar10) {
auVar1._8_8_ = *(int8 *)(param_5 + 8 + (ulong)uVar10 * 0x10);
auVar1._0_8_ = *(int8 *)(param_5 + (ulong)uVar10 * 0x10);
}
uVar12 = auVar1._8_8_;
local_a8 = auVar1._0_8_;
iVar3 = 0;
uVar13 = auVar1._8_4_;
if (uVar13 == 0xffffffff) {
auVar15 = JS_GetPropertyInternal2(param_1,local_a8,uVar12,0xdb,local_a8,uVar12,0,0);
if (auVar15._8_4_ == 3) {
iVar3 = JS_IsArray(param_1,local_a8,uVar12);
}
else {
iVar3 = -1;
if (auVar15._8_4_ != 6) {
iVar3 = JS_ToBoolFree(param_1,auVar15._0_8_);
}
}
}
if (iVar3 < 0) goto LAB_00174a0c;
if (iVar3 == 0) {
if (0x1ffffffffffffe < (long)uVar8) goto LAB_00174a54;
if (0xfffffff6 < uVar13) {
*local_a8 = *local_a8 + 1;
}
bVar14 = (long)(int)uVar8 == uVar8;
dVar6 = (double)(long)uVar8;
if (bVar14) {
dVar6 = (double)(uVar8 & 0xffffffff);
}
uVar12 = 7;
if (bVar14) {
uVar12 = 0;
}
iVar3 = JS_DefinePropertyValueValue
(param_1,uVar4,uVar7,dVar6,uVar12,0x4007,local_a8,uVar13);
if (iVar3 < 0) goto LAB_00174a0c;
uVar8 = uVar8 + 1;
}
else {
iVar3 = js_get_length64(param_1,&local_50,local_a8,uVar12);
lVar2 = local_50;
if (iVar3 != 0) goto LAB_00174a0c;
if (0x1fffffffffffff < (long)(uVar8 + local_50)) {
LAB_00174a54:
JS_ThrowTypeError(param_1,"Array loo long");
goto LAB_00174a0c;
}
if (0 < local_50) {
lVar9 = 0;
do {
iVar3 = JS_TryGetPropertyInt64(param_1,local_a8,uVar12,lVar9,local_48);
if (iVar3 < 0) goto LAB_00174a0c;
if (iVar3 != 0) {
dVar6 = (double)(long)(uVar8 + lVar9);
if (uVar8 + 0x80000000 + lVar9 >> 0x20 == 0) {
uVar11 = 0;
dVar6 = (double)(uVar8 + lVar9 & 0xffffffff);
}
else {
uVar11 = 7;
}
uStack_90 = (int4)local_48[1];
iVar3 = JS_DefinePropertyValueValue
(param_1,uVar4,uVar7,dVar6,uVar11,0x4007,local_48[0],uStack_90);
if (iVar3 < 0) goto LAB_00174a0c;
}
lVar9 = lVar9 + 1;
} while (lVar2 != lVar9);
uVar8 = uVar8 + lVar9;
}
}
uVar10 = uVar10 + 1;
} while (uVar10 != param_4);
}
bVar14 = (long)(int)uVar8 == uVar8;
dVar6 = (double)(long)uVar8;
if (bVar14) {
dVar6 = (double)(uVar8 & 0xffffffff);
}
uVar12 = 7;
if (bVar14) {
uVar12 = 0;
}
iVar3 = JS_SetPropertyInternal2
(param_1,uVar4,uVar7,0x32,dVar6,uVar12,uVar4,auVar17._8_4_,0x4000,0);
if (-1 < iVar3) goto LAB_00174a2e;
}
}
LAB_00174a0c:
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),auVar17._0_8_ & 0xffffffff | uVar5 << 0x20,
auVar17._8_8_);
auVar17 = ZEXT816(6) << 0x40;
LAB_00174a2e:
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),auVar16._0_8_,auVar16._8_8_);
return auVar17;
}
|
|
64,588 |
my_uca_charcmp
|
eloqsql/strings/ctype-uca.c
|
static int my_uca_charcmp(CHARSET_INFO *cs, my_wc_t wc1, my_wc_t wc2)
{
uint num_level= cs->levels_for_order;
int ret;
uint i;
for (i= 0; i != num_level; i++)
{
ret= my_uca_charcmp_onelevel(cs, wc1, wc2, i);
if (ret) {
return ret;
}
}
return 0;
}
|
O0
|
c
|
my_uca_charcmp:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movzbl 0xb2(%rax), %eax
movl %eax, -0x24(%rbp)
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
cmpl -0x24(%rbp), %eax
je 0x5fe03
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movl -0x2c(%rbp), %ecx
callq 0x5fe20
movl %eax, -0x28(%rbp)
cmpl $0x0, -0x28(%rbp)
je 0x5fdf6
movl -0x28(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x5fe0a
jmp 0x5fdf8
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x5fdc9
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_uca_charcmp:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax+0B2h]
mov [rbp+var_24], eax
mov [rbp+var_2C], 0
loc_5FDC9:
mov eax, [rbp+var_2C]
cmp eax, [rbp+var_24]
jz short loc_5FE03
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
mov ecx, [rbp+var_2C]
call my_uca_charcmp_onelevel
mov [rbp+var_28], eax
cmp [rbp+var_28], 0
jz short loc_5FDF6
mov eax, [rbp+var_28]
mov [rbp+var_4], eax
jmp short loc_5FE0A
loc_5FDF6:
jmp short $+2
loc_5FDF8:
mov eax, [rbp+var_2C]
add eax, 1
mov [rbp+var_2C], eax
jmp short loc_5FDC9
loc_5FE03:
mov [rbp+var_4], 0
loc_5FE0A:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
|
long long my_uca_charcmp(long long a1, long long a2, long long a3)
{
unsigned int i; // [rsp+4h] [rbp-2Ch]
unsigned int v5; // [rsp+8h] [rbp-28h]
int v6; // [rsp+Ch] [rbp-24h]
v6 = *(unsigned __int8 *)(a1 + 178);
for ( i = 0; i != v6; ++i )
{
v5 = my_uca_charcmp_onelevel(a1, a2, a3, i);
if ( v5 )
return v5;
}
return 0;
}
|
my_uca_charcmp:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX + 0xb2]
MOV dword ptr [RBP + -0x24],EAX
MOV dword ptr [RBP + -0x2c],0x0
LAB_0015fdc9:
MOV EAX,dword ptr [RBP + -0x2c]
CMP EAX,dword ptr [RBP + -0x24]
JZ 0x0015fe03
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x2c]
CALL 0x0015fe20
MOV dword ptr [RBP + -0x28],EAX
CMP dword ptr [RBP + -0x28],0x0
JZ 0x0015fdf6
MOV EAX,dword ptr [RBP + -0x28]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0015fe0a
LAB_0015fdf6:
JMP 0x0015fdf8
LAB_0015fdf8:
MOV EAX,dword ptr [RBP + -0x2c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x2c],EAX
JMP 0x0015fdc9
LAB_0015fe03:
MOV dword ptr [RBP + -0x4],0x0
LAB_0015fe0a:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int my_uca_charcmp(long param_1,int8 param_2,int8 param_3)
{
byte bVar1;
int iVar2;
uint local_34;
bVar1 = *(byte *)(param_1 + 0xb2);
local_34 = 0;
while( true ) {
if (local_34 == bVar1) {
return 0;
}
iVar2 = my_uca_charcmp_onelevel(param_1,param_2,param_3,local_34);
if (iVar2 != 0) break;
local_34 = local_34 + 1;
}
return iVar2;
}
|
|
64,589 |
my_coll_lexem_next
|
eloqsql/strings/ctype-uca.c
|
static my_coll_lexem_num my_coll_lexem_next(MY_COLL_LEXEM *lexem)
{
const char *beg;
my_coll_lexem_num rc;
for (beg= lexem->beg ; beg < lexem->end ; beg++)
{
switch (*beg)
{
case ' ':
case '\t':
case '\r':
case '\n':
continue;
case '[': /* Bracket expression, e.g. "[optimize [a-z]]" */
{
size_t nbrackets; /* Indicates nested recursion level */
for (beg++, nbrackets= 1 ; beg < lexem->end; beg++)
{
if (*beg == '[') /* Enter nested bracket expression */
nbrackets++;
else if (*beg == ']')
{
if (--nbrackets == 0)
{
rc= MY_COLL_LEXEM_OPTION;
beg++;
goto ex;
}
}
}
rc= MY_COLL_LEXEM_ERROR;
goto ex;
}
case '&':
beg++;
rc= MY_COLL_LEXEM_RESET;
goto ex;
case '=':
beg++;
lexem->diff= 0;
rc= MY_COLL_LEXEM_SHIFT;
goto ex;
case '/':
beg++;
rc= MY_COLL_LEXEM_EXTEND;
goto ex;
case '|':
beg++;
rc= MY_COLL_LEXEM_CONTEXT;
goto ex;
case '<': /* Shift: '<' or '<<' or '<<<' or '<<<<' */
{
/* Scan up to 3 additional '<' characters */
for (beg++, lexem->diff= 1;
(beg < lexem->end) && (*beg == '<') && (lexem->diff <= 3);
beg++, lexem->diff++);
rc= MY_COLL_LEXEM_SHIFT;
goto ex;
}
default:
break;
}
/* Escaped character, e.g. \u1234 */
if ((*beg == '\\') && (beg + 2 < lexem->end) &&
(beg[1] == 'u') && my_isxdigit(&my_charset_utf8mb3_general_ci, beg[2]))
{
int ch;
beg+= 2;
lexem->code= 0;
while ((beg < lexem->end) && ((ch= ch2x(beg[0])) >= 0))
{
lexem->code= (lexem->code << 4) + ch;
beg++;
}
rc= MY_COLL_LEXEM_CHAR;
goto ex;
}
/*
Unescaped single byte character:
allow printable ASCII range except SPACE and
special characters parsed above []<&/|=
*/
if (*beg >= 0x21 && *beg <= 0x7E)
{
lexem->code= *beg++;
rc= MY_COLL_LEXEM_CHAR;
goto ex;
}
if (((uchar) *beg) > 0x7F) /* Unescaped multibyte character */
{
CHARSET_INFO *cs= &my_charset_utf8mb3_general_ci;
my_wc_t wc;
int nbytes= my_ci_mb_wc(cs, &wc, (uchar *) beg, (uchar *) lexem->end);
if (nbytes > 0)
{
rc= MY_COLL_LEXEM_CHAR;
beg+= nbytes;
lexem->code= (int) wc;
goto ex;
}
}
rc= MY_COLL_LEXEM_ERROR;
goto ex;
}
rc= MY_COLL_LEXEM_EOF;
ex:
lexem->prev= lexem->beg;
lexem->beg= beg;
lexem->term= rc;
return rc;
}
|
O3
|
c
|
my_coll_lexem_next:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %r14
movq 0x10(%rdi), %rcx
xorl %r15d, %r15d
cmpq %rcx, %r14
jae 0x9c7d1
movzbl (%r14), %edx
cmpl $0xc, %edx
jle 0x9c5d9
cmpl $0x1f, %edx
jle 0x9c5e6
cmpl $0x25, %edx
jg 0x9c5ff
cmpl $0x20, %edx
je 0x9c5ef
jmp 0x9c78b
leal -0x9(%rdx), %eax
cmpl $0x2, %eax
jb 0x9c5ef
jmp 0x9c78b
cmpl $0xd, %edx
jne 0x9c78b
incq %r14
cmpq %rcx, %r14
jne 0x9c5bc
movq %rcx, %rax
jmp 0x9c7d4
cmpl $0x3c, %edx
jle 0x9c65c
cmpl $0x5b, %edx
jg 0x9c6bd
cmpl $0x3d, %edx
je 0x9c6d9
cmpl $0x5b, %edx
jne 0x9c78b
incq %r14
movl $0x6, %r15d
cmpq %rcx, %r14
jae 0x9c7d1
movl $0x1, %eax
movzbl (%r14), %edx
cmpl $0x5d, %edx
je 0x9c649
cmpl $0x5b, %edx
jne 0x9c652
incq %rax
jmp 0x9c652
decq %rax
je 0x9c7ee
incq %r14
cmpq %rcx, %r14
jb 0x9c636
jmp 0x9c5f7
cmpl $0x26, %edx
je 0x9c780
cmpl $0x2f, %edx
je 0x9c775
cmpl $0x3c, %edx
jne 0x9c78b
incq %r14
movl $0x1, 0x20(%rbx)
movl $0x1, %r15d
cmpq %rcx, %r14
jae 0x9c7d1
movl $0x2, %eax
cmpb $0x3c, (%r14)
jne 0x9c7d1
leal -0x1(%rax), %edx
cmpl $0x4, %edx
jae 0x9c7d1
incq %r14
movl %eax, 0x20(%rbx)
incl %eax
cmpq %rcx, %r14
jb 0x9c695
jmp 0x9c5f7
cmpl $0x5c, %edx
je 0x9c6ee
cmpl $0x7c, %edx
jne 0x9c78b
incq %r14
movl $0x9, %r15d
jmp 0x9c7d1
incq %r14
movl $0x0, 0x20(%rbx)
movl $0x1, %r15d
jmp 0x9c7d1
leaq 0x2(%r14), %rax
cmpq %rcx, %rax
jae 0x9c7c5
cmpb $0x75, 0x1(%r14)
jne 0x9c7c5
leaq 0x346923(%rip), %rsi # 0x3e3030
movq 0x40(%rsi), %rsi
movzbl (%rax), %edi
cmpb $0x0, 0x1(%rsi,%rdi)
jns 0x9c7c5
movl $0x0, 0x24(%rbx)
xorl %edx, %edx
movsbl (%rax), %esi
leal -0x30(%rsi), %edi
cmpl $0xa, %edi
jb 0x9c75d
leal -0x61(%rsi), %edi
cmpl $0x5, %edi
ja 0x9c740
addl $-0x57, %esi
jmp 0x9c75b
movl $0x5, %r15d
cmpb $0x37, %sil
jl 0x9c7d4
leal -0x41(%rsi), %edi
cmpl $0x5, %edi
ja 0x9c7d4
addl $-0x37, %esi
movl %esi, %edi
shll $0x4, %edx
addl %edi, %edx
movl %edx, 0x24(%rbx)
incq %rax
movl $0x5, %r15d
cmpq %rcx, %rax
jb 0x9c728
jmp 0x9c7d4
incq %r14
movl $0x8, %r15d
jmp 0x9c7d1
incq %r14
movl $0x4, %r15d
jmp 0x9c7d1
leal -0x7f(%rdx), %eax
cmpb $-0x5e, %al
jae 0x9c7c5
movl $0x6, %r15d
testb %dl, %dl
jns 0x9c7d1
leaq 0x34688d(%rip), %rdi # 0x3e3030
movq 0xb8(%rdi), %rax
leaq -0x20(%rbp), %rsi
movq %r14, %rdx
callq *0x28(%rax)
testl %eax, %eax
jle 0x9c7d1
movl %eax, %eax
addq %rax, %r14
movl -0x20(%rbp), %eax
movl %eax, 0x24(%rbx)
jmp 0x9c7cb
incq %r14
movl %edx, 0x24(%rbx)
movl $0x5, %r15d
movq %r14, %rax
movq 0x8(%rbx), %rcx
movq %rcx, 0x18(%rbx)
movq %rax, 0x8(%rbx)
movl %r15d, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
incq %r14
movl $0x7, %r15d
jmp 0x9c7d1
|
my_coll_lexem_next:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rdi
mov r14, [rdi+8]
mov rcx, [rdi+10h]
xor r15d, r15d
cmp r14, rcx
jnb loc_9C7D1
loc_9C5BC:
movzx edx, byte ptr [r14]
cmp edx, 0Ch
jle short loc_9C5D9
cmp edx, 1Fh
jle short loc_9C5E6
cmp edx, 25h ; '%'
jg short loc_9C5FF
cmp edx, 20h ; ' '
jz short loc_9C5EF
jmp loc_9C78B
loc_9C5D9:
lea eax, [rdx-9]
cmp eax, 2
jb short loc_9C5EF
jmp loc_9C78B
loc_9C5E6:
cmp edx, 0Dh
jnz loc_9C78B
loc_9C5EF:
inc r14
cmp r14, rcx
jnz short loc_9C5BC
loc_9C5F7:
mov rax, rcx
jmp loc_9C7D4
loc_9C5FF:
cmp edx, 3Ch ; '<'
jle short loc_9C65C
cmp edx, 5Bh ; '['
jg loc_9C6BD
cmp edx, 3Dh ; '='
jz loc_9C6D9
cmp edx, 5Bh ; '['
jnz loc_9C78B
inc r14
mov r15d, 6
cmp r14, rcx
jnb loc_9C7D1
mov eax, 1
loc_9C636:
movzx edx, byte ptr [r14]
cmp edx, 5Dh ; ']'
jz short loc_9C649
cmp edx, 5Bh ; '['
jnz short loc_9C652
inc rax
jmp short loc_9C652
loc_9C649:
dec rax
jz loc_9C7EE
loc_9C652:
inc r14
cmp r14, rcx
jb short loc_9C636
jmp short loc_9C5F7
loc_9C65C:
cmp edx, 26h ; '&'
jz loc_9C780
cmp edx, 2Fh ; '/'
jz loc_9C775
cmp edx, 3Ch ; '<'
jnz loc_9C78B
inc r14
mov dword ptr [rbx+20h], 1
mov r15d, 1
cmp r14, rcx
jnb loc_9C7D1
mov eax, 2
loc_9C695:
cmp byte ptr [r14], 3Ch ; '<'
jnz loc_9C7D1
lea edx, [rax-1]
cmp edx, 4
jnb loc_9C7D1
inc r14
mov [rbx+20h], eax
inc eax
cmp r14, rcx
jb short loc_9C695
jmp loc_9C5F7
loc_9C6BD:
cmp edx, 5Ch ; '\'
jz short loc_9C6EE
cmp edx, 7Ch ; '|'
jnz loc_9C78B
inc r14
mov r15d, 9
jmp loc_9C7D1
loc_9C6D9:
inc r14
mov dword ptr [rbx+20h], 0
mov r15d, 1
jmp loc_9C7D1
loc_9C6EE:
lea rax, [r14+2]
cmp rax, rcx
jnb loc_9C7C5
cmp byte ptr [r14+1], 75h ; 'u'
jnz loc_9C7C5
lea rsi, my_charset_utf8mb3_general_ci
mov rsi, [rsi+40h]
movzx edi, byte ptr [rax]
cmp byte ptr [rsi+rdi+1], 0
jns loc_9C7C5
mov dword ptr [rbx+24h], 0
xor edx, edx
loc_9C728:
movsx esi, byte ptr [rax]
lea edi, [rsi-30h]
cmp edi, 0Ah
jb short loc_9C75D
lea edi, [rsi-61h]
cmp edi, 5
ja short loc_9C740
add esi, 0FFFFFFA9h
jmp short loc_9C75B
loc_9C740:
mov r15d, 5
cmp sil, 37h ; '7'
jl loc_9C7D4
lea edi, [rsi-41h]
cmp edi, 5
ja short loc_9C7D4
add esi, 0FFFFFFC9h
loc_9C75B:
mov edi, esi
loc_9C75D:
shl edx, 4
add edx, edi
mov [rbx+24h], edx
inc rax
mov r15d, 5
cmp rax, rcx
jb short loc_9C728
jmp short loc_9C7D4
loc_9C775:
inc r14
mov r15d, 8
jmp short loc_9C7D1
loc_9C780:
inc r14
mov r15d, 4
jmp short loc_9C7D1
loc_9C78B:
lea eax, [rdx-7Fh]
cmp al, 0A2h
jnb short loc_9C7C5
mov r15d, 6
test dl, dl
jns short loc_9C7D1
lea rdi, my_charset_utf8mb3_general_ci
mov rax, [rdi+0B8h]
lea rsi, [rbp+var_20]
mov rdx, r14
call qword ptr [rax+28h]
test eax, eax
jle short loc_9C7D1
mov eax, eax
add r14, rax
mov eax, [rbp+var_20]
mov [rbx+24h], eax
jmp short loc_9C7CB
loc_9C7C5:
inc r14
mov [rbx+24h], edx
loc_9C7CB:
mov r15d, 5
loc_9C7D1:
mov rax, r14
loc_9C7D4:
mov rcx, [rbx+8]
mov [rbx+18h], rcx
mov [rbx+8], rax
mov [rbx], r15d
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_9C7EE:
inc r14
mov r15d, 7
jmp short loc_9C7D1
|
unsigned __int8 * my_coll_lexem_next(long long a1)
{
long long v1; // rax
unsigned __int8 *v3; // r14
unsigned long long v4; // rcx
int v5; // r15d
unsigned int v6; // edx
unsigned __int8 *result; // rax
long long v8; // rax
int v9; // edx
int v10; // eax
int v11; // edx
int v12; // esi
int v13; // edi
int v14; // esi
int v15; // eax
_QWORD v16[4]; // [rsp+0h] [rbp-20h] BYREF
v16[0] = v1;
v3 = *(unsigned __int8 **)(a1 + 8);
v4 = *(_QWORD *)(a1 + 16);
v5 = 0;
if ( (unsigned long long)v3 >= v4 )
goto LABEL_58;
do
{
v6 = *v3;
if ( v6 <= 0xC )
{
if ( v6 - 9 >= 2 )
goto LABEL_52;
}
else
{
if ( *v3 > 0x1Fu )
{
if ( *v3 <= 0x25u )
{
if ( v6 != 32 )
goto LABEL_52;
goto LABEL_10;
}
if ( *v3 <= 0x3Cu )
{
switch ( v6 )
{
case '&':
++v3;
v5 = 4;
goto LABEL_58;
case '/':
++v3;
v5 = 8;
goto LABEL_58;
case '<':
++v3;
*(_DWORD *)(a1 + 32) = 1;
v5 = 1;
if ( (unsigned long long)v3 >= v4 )
goto LABEL_58;
v10 = 2;
while ( *v3 == 60 && (unsigned int)(v10 - 1) < 4 )
{
++v3;
*(_DWORD *)(a1 + 32) = v10++;
if ( (unsigned long long)v3 >= v4 )
goto LABEL_11;
}
goto LABEL_58;
}
}
else if ( *v3 > 0x5Bu )
{
if ( v6 == 92 )
{
result = v3 + 2;
if ( (unsigned long long)(v3 + 2) < v4
&& v3[1] == 117
&& *(char *)(*(_QWORD *)&my_charset_utf8mb3_general_ci[16] + *result + 1LL) < 0 )
{
*(_DWORD *)(a1 + 36) = 0;
v11 = 0;
while ( 1 )
{
v12 = (char)*result;
v13 = v12 - 48;
if ( (unsigned int)(v12 - 48) >= 0xA )
{
if ( (unsigned int)(v12 - 97) > 5 )
{
v5 = 5;
if ( (char)v12 < 55 || (unsigned int)(v12 - 65) > 5 )
goto LABEL_59;
v14 = v12 - 55;
}
else
{
v14 = v12 - 87;
}
v13 = v14;
}
v11 = v13 + 16 * v11;
*(_DWORD *)(a1 + 36) = v11;
++result;
v5 = 5;
if ( (unsigned long long)result >= v4 )
goto LABEL_59;
}
}
goto LABEL_56;
}
if ( v6 == 124 )
{
++v3;
v5 = 9;
goto LABEL_58;
}
}
else
{
if ( v6 == 61 )
{
++v3;
*(_DWORD *)(a1 + 32) = 0;
v5 = 1;
goto LABEL_58;
}
if ( v6 == 91 )
{
++v3;
v5 = 6;
if ( (unsigned long long)v3 >= v4 )
goto LABEL_58;
v8 = 1LL;
while ( 1 )
{
v9 = *v3;
if ( v9 == 93 )
{
if ( !--v8 )
{
++v3;
v5 = 7;
goto LABEL_58;
}
}
else if ( v9 == 91 )
{
++v8;
}
if ( (unsigned long long)++v3 >= v4 )
goto LABEL_11;
}
}
}
LABEL_52:
if ( (unsigned __int8)(v6 - 127) < 0xA2u )
{
v5 = 6;
if ( (v6 & 0x80u) != 0 )
{
v15 = (*(long long ( **)(unsigned int *, _QWORD *, unsigned __int8 *))(*(_QWORD *)&my_charset_utf8mb3_general_ci[46]
+ 40LL))(
my_charset_utf8mb3_general_ci,
v16,
v3);
if ( v15 > 0 )
{
v3 += (unsigned int)v15;
*(_DWORD *)(a1 + 36) = v16[0];
LABEL_57:
v5 = 5;
}
}
LABEL_58:
result = v3;
goto LABEL_59;
}
LABEL_56:
++v3;
*(_DWORD *)(a1 + 36) = v6;
goto LABEL_57;
}
if ( v6 != 13 )
goto LABEL_52;
}
LABEL_10:
++v3;
}
while ( v3 != (unsigned __int8 *)v4 );
LABEL_11:
result = (unsigned __int8 *)v4;
LABEL_59:
*(_QWORD *)(a1 + 24) = *(_QWORD *)(a1 + 8);
*(_QWORD *)(a1 + 8) = result;
*(_DWORD *)a1 = v5;
return result;
}
|
my_coll_lexem_next:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV R14,qword ptr [RDI + 0x8]
MOV RCX,qword ptr [RDI + 0x10]
XOR R15D,R15D
CMP R14,RCX
JNC 0x0019c7d1
LAB_0019c5bc:
MOVZX EDX,byte ptr [R14]
CMP EDX,0xc
JLE 0x0019c5d9
CMP EDX,0x1f
JLE 0x0019c5e6
CMP EDX,0x25
JG 0x0019c5ff
CMP EDX,0x20
JZ 0x0019c5ef
JMP 0x0019c78b
LAB_0019c5d9:
LEA EAX,[RDX + -0x9]
CMP EAX,0x2
JC 0x0019c5ef
JMP 0x0019c78b
LAB_0019c5e6:
CMP EDX,0xd
JNZ 0x0019c78b
LAB_0019c5ef:
INC R14
CMP R14,RCX
JNZ 0x0019c5bc
LAB_0019c5f7:
MOV RAX,RCX
JMP 0x0019c7d4
LAB_0019c5ff:
CMP EDX,0x3c
JLE 0x0019c65c
CMP EDX,0x5b
JG 0x0019c6bd
CMP EDX,0x3d
JZ 0x0019c6d9
CMP EDX,0x5b
JNZ 0x0019c78b
INC R14
MOV R15D,0x6
CMP R14,RCX
JNC 0x0019c7d1
MOV EAX,0x1
LAB_0019c636:
MOVZX EDX,byte ptr [R14]
CMP EDX,0x5d
JZ 0x0019c649
CMP EDX,0x5b
JNZ 0x0019c652
INC RAX
JMP 0x0019c652
LAB_0019c649:
DEC RAX
JZ 0x0019c7ee
LAB_0019c652:
INC R14
CMP R14,RCX
JC 0x0019c636
JMP 0x0019c5f7
LAB_0019c65c:
CMP EDX,0x26
JZ 0x0019c780
CMP EDX,0x2f
JZ 0x0019c775
CMP EDX,0x3c
JNZ 0x0019c78b
INC R14
MOV dword ptr [RBX + 0x20],0x1
MOV R15D,0x1
CMP R14,RCX
JNC 0x0019c7d1
MOV EAX,0x2
LAB_0019c695:
CMP byte ptr [R14],0x3c
JNZ 0x0019c7d1
LEA EDX,[RAX + -0x1]
CMP EDX,0x4
JNC 0x0019c7d1
INC R14
MOV dword ptr [RBX + 0x20],EAX
INC EAX
CMP R14,RCX
JC 0x0019c695
JMP 0x0019c5f7
LAB_0019c6bd:
CMP EDX,0x5c
JZ 0x0019c6ee
CMP EDX,0x7c
JNZ 0x0019c78b
INC R14
MOV R15D,0x9
JMP 0x0019c7d1
LAB_0019c6d9:
INC R14
MOV dword ptr [RBX + 0x20],0x0
MOV R15D,0x1
JMP 0x0019c7d1
LAB_0019c6ee:
LEA RAX,[R14 + 0x2]
CMP RAX,RCX
JNC 0x0019c7c5
CMP byte ptr [R14 + 0x1],0x75
JNZ 0x0019c7c5
LEA RSI,[0x4e3030]
MOV RSI,qword ptr [RSI + 0x40]
MOVZX EDI,byte ptr [RAX]
CMP byte ptr [RSI + RDI*0x1 + 0x1],0x0
JNS 0x0019c7c5
MOV dword ptr [RBX + 0x24],0x0
XOR EDX,EDX
LAB_0019c728:
MOVSX ESI,byte ptr [RAX]
LEA EDI,[RSI + -0x30]
CMP EDI,0xa
JC 0x0019c75d
LEA EDI,[RSI + -0x61]
CMP EDI,0x5
JA 0x0019c740
ADD ESI,-0x57
JMP 0x0019c75b
LAB_0019c740:
MOV R15D,0x5
CMP SIL,0x37
JL 0x0019c7d4
LEA EDI,[RSI + -0x41]
CMP EDI,0x5
JA 0x0019c7d4
ADD ESI,-0x37
LAB_0019c75b:
MOV EDI,ESI
LAB_0019c75d:
SHL EDX,0x4
ADD EDX,EDI
MOV dword ptr [RBX + 0x24],EDX
INC RAX
MOV R15D,0x5
CMP RAX,RCX
JC 0x0019c728
JMP 0x0019c7d4
LAB_0019c775:
INC R14
MOV R15D,0x8
JMP 0x0019c7d1
LAB_0019c780:
INC R14
MOV R15D,0x4
JMP 0x0019c7d1
LAB_0019c78b:
LEA EAX,[RDX + -0x7f]
CMP AL,0xa2
JNC 0x0019c7c5
MOV R15D,0x6
TEST DL,DL
JNS 0x0019c7d1
LEA RDI,[0x4e3030]
MOV RAX,qword ptr [RDI + 0xb8]
LEA RSI,[RBP + -0x20]
MOV RDX,R14
CALL qword ptr [RAX + 0x28]
TEST EAX,EAX
JLE 0x0019c7d1
MOV EAX,EAX
ADD R14,RAX
MOV EAX,dword ptr [RBP + -0x20]
MOV dword ptr [RBX + 0x24],EAX
JMP 0x0019c7cb
LAB_0019c7c5:
INC R14
MOV dword ptr [RBX + 0x24],EDX
LAB_0019c7cb:
MOV R15D,0x5
LAB_0019c7d1:
MOV RAX,R14
LAB_0019c7d4:
MOV RCX,qword ptr [RBX + 0x8]
MOV qword ptr [RBX + 0x18],RCX
MOV qword ptr [RBX + 0x8],RAX
MOV dword ptr [RBX],R15D
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0019c7ee:
INC R14
MOV R15D,0x7
JMP 0x0019c7d1
|
void my_coll_lexem_next(int4 *param_1)
{
byte bVar1;
byte *pbVar2;
int4 in_EAX;
uint uVar3;
long lVar4;
int iVar5;
int iVar6;
byte *pbVar7;
byte *pbVar8;
int4 uVar9;
int4 local_28 [2];
pbVar7 = *(byte **)(param_1 + 2);
pbVar2 = *(byte **)(param_1 + 4);
uVar9 = 0;
pbVar8 = pbVar7;
if (pbVar7 < pbVar2) {
do {
bVar1 = *pbVar7;
uVar3 = (uint)bVar1;
if (0xc < bVar1) {
if (bVar1 < 0x20) {
if (uVar3 == 0xd) goto LAB_0019c5ef;
LAB_0019c78b:
if (0xa1 < (byte)(bVar1 + 0x81)) goto LAB_0019c7c5;
uVar9 = 6;
pbVar8 = pbVar7;
if ((-1 < (char)bVar1) ||
(local_28[0] = in_EAX,
uVar3 = (**(code **)(my_charset_utf8mb3_general_ci._184_8_ + 0x28))
(my_charset_utf8mb3_general_ci,local_28,pbVar7), (int)uVar3 < 1))
break;
pbVar8 = pbVar7 + uVar3;
param_1[9] = local_28[0];
}
else {
if (bVar1 < 0x26) {
if (uVar3 == 0x20) goto LAB_0019c5ef;
goto LAB_0019c78b;
}
if (bVar1 < 0x3d) {
if (uVar3 == 0x26) {
uVar9 = 4;
pbVar8 = pbVar7 + 1;
}
else if (uVar3 == 0x2f) {
uVar9 = 8;
pbVar8 = pbVar7 + 1;
}
else {
if (uVar3 != 0x3c) goto LAB_0019c78b;
pbVar7 = pbVar7 + 1;
param_1[8] = 1;
uVar9 = 1;
pbVar8 = pbVar7;
if (pbVar7 < pbVar2) {
iVar5 = 2;
goto LAB_0019c695;
}
}
break;
}
if (bVar1 < 0x5c) {
if (uVar3 == 0x3d) {
param_1[8] = 0;
uVar9 = 1;
pbVar8 = pbVar7 + 1;
}
else {
if (uVar3 != 0x5b) goto LAB_0019c78b;
pbVar7 = pbVar7 + 1;
uVar9 = 6;
pbVar8 = pbVar7;
if (pbVar7 < pbVar2) {
lVar4 = 1;
goto LAB_0019c636;
}
}
break;
}
if (uVar3 != 0x5c) {
if (uVar3 != 0x7c) goto LAB_0019c78b;
uVar9 = 9;
pbVar8 = pbVar7 + 1;
break;
}
pbVar8 = pbVar7 + 2;
if (((pbVar8 < pbVar2) && (pbVar7[1] == 0x75)) &&
(*(char *)(my_charset_utf8mb3_general_ci._64_8_ + 1 + (ulong)*pbVar8) < '\0')) {
param_1[9] = 0;
iVar5 = 0;
goto LAB_0019c728;
}
LAB_0019c7c5:
pbVar8 = pbVar7 + 1;
param_1[9] = uVar3;
}
uVar9 = 5;
break;
}
if (1 < bVar1 - 9) goto LAB_0019c78b;
LAB_0019c5ef:
pbVar7 = pbVar7 + 1;
pbVar8 = pbVar2;
} while (pbVar7 != pbVar2);
}
goto LAB_0019c7d4;
while( true ) {
pbVar7 = pbVar7 + 1;
param_1[8] = iVar5;
iVar5 = iVar5 + 1;
pbVar8 = pbVar2;
if (pbVar2 <= pbVar7) break;
LAB_0019c695:
pbVar8 = pbVar7;
if ((*pbVar7 != 0x3c) || (3 < iVar5 - 1U)) break;
}
goto LAB_0019c7d4;
LAB_0019c636:
do {
if (*pbVar7 == 0x5d) {
lVar4 = lVar4 + -1;
if (lVar4 == 0) {
uVar9 = 7;
pbVar8 = pbVar7 + 1;
break;
}
}
else if (*pbVar7 == 0x5b) {
lVar4 = lVar4 + 1;
}
pbVar7 = pbVar7 + 1;
pbVar8 = pbVar2;
} while (pbVar7 < pbVar2);
goto LAB_0019c7d4;
LAB_0019c728:
do {
iVar6 = (int)(char)*pbVar8;
uVar3 = iVar6 - 0x30;
if (9 < uVar3) {
if (iVar6 - 0x61U < 6) {
uVar3 = iVar6 - 0x57;
}
else {
uVar9 = 5;
if (((char)*pbVar8 < '7') || (5 < iVar6 - 0x41U)) break;
uVar3 = iVar6 - 0x37;
}
}
iVar5 = iVar5 * 0x10 + uVar3;
param_1[9] = iVar5;
pbVar8 = pbVar8 + 1;
uVar9 = 5;
} while (pbVar8 < pbVar2);
LAB_0019c7d4:
*(int8 *)(param_1 + 6) = *(int8 *)(param_1 + 2);
*(byte **)(param_1 + 2) = pbVar8;
*param_1 = uVar9;
return;
}
|
|
64,590 |
pfs_get_thread_transaction_locker_v1
|
eloqsql/storage/perfschema/pfs.cc
|
PSI_transaction_locker*
pfs_get_thread_transaction_locker_v1(PSI_transaction_locker_state *state,
const void *xid,
ulonglong trxid,
int isolation_level,
my_bool read_only,
my_bool autocommit)
{
assert(state != NULL);
if (!flag_global_instrumentation)
return NULL;
if (!global_transaction_class.m_enabled)
return NULL;
uint flags;
if (flag_thread_instrumentation)
{
PFS_thread *pfs_thread= my_thread_get_THR_PFS();
if (unlikely(pfs_thread == NULL))
return NULL;
if (!pfs_thread->m_enabled)
return NULL;
state->m_thread= reinterpret_cast<PSI_thread *> (pfs_thread);
flags= STATE_FLAG_THREAD;
if (global_transaction_class.m_timed)
flags|= STATE_FLAG_TIMED;
if (flag_events_transactions_current)
{
ulonglong event_id= pfs_thread->m_event_id++;
PFS_events_transactions *pfs= &pfs_thread->m_transaction_current;
pfs->m_thread_internal_id = pfs_thread->m_thread_internal_id;
pfs->m_event_id= event_id;
pfs->m_event_type= EVENT_TYPE_TRANSACTION;
pfs->m_end_event_id= 0;
pfs->m_class= &global_transaction_class;
pfs->m_timer_start= 0;
pfs->m_timer_end= 0;
if (xid != NULL)
pfs->m_xid= *(PSI_xid *)xid;
pfs->m_xa= false;
pfs->m_xa_state= TRANS_STATE_XA_NOTR;
pfs->m_trxid= trxid;
pfs->m_isolation_level= (enum_isolation_level)isolation_level;
pfs->m_read_only= read_only;
pfs->m_autocommit= autocommit;
pfs->m_savepoint_count= 0;
pfs->m_rollback_to_savepoint_count= 0;
pfs->m_release_savepoint_count= 0;
uint statements_count= pfs_thread->m_events_statements_count;
if (statements_count > 0)
{
PFS_events_statements *pfs_statement=
&pfs_thread->m_statement_stack[statements_count - 1];
pfs->m_nesting_event_id= pfs_statement->m_event.m_event_id;
pfs->m_nesting_event_type= pfs_statement->m_event.m_event_type;
}
else
{
pfs->m_nesting_event_id= 0;
/* pfs->m_nesting_event_type not used when m_nesting_event_id is 0 */
}
state->m_transaction= pfs;
flags|= STATE_FLAG_EVENT;
}
}
else
{
if (global_transaction_class.m_timed)
flags= STATE_FLAG_TIMED;
else
flags= 0;
}
state->m_class= &global_transaction_class;
state->m_flags= flags;
state->m_autocommit= autocommit;
state->m_read_only= read_only;
state->m_savepoint_count= 0;
state->m_rollback_to_savepoint_count= 0;
state->m_release_savepoint_count= 0;
return reinterpret_cast<PSI_transaction_locker*> (state);
}
|
O0
|
cpp
|
pfs_get_thread_transaction_locker_v1:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movl %r8d, -0x70(%rbp)
movl %ecx, %eax
movl -0x70(%rbp), %ecx
movl %eax, -0x6c(%rbp)
movq %rdx, %rax
movl -0x6c(%rbp), %edx
movq %rax, -0x68(%rbp)
movq %rsi, %rax
movq -0x68(%rbp), %rsi
movq %rax, -0x60(%rbp)
movq %rdi, %r8
movq -0x60(%rbp), %rdi
movb %r9b, %al
movq %r8, -0x10(%rbp)
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movl %edx, -0x24(%rbp)
movb %cl, -0x25(%rbp)
movb %al, -0x26(%rbp)
leaq 0x3d7611(%rip), %rax # 0x40ba00
testb $0x1, (%rax)
jne 0x34401
movq $0x0, -0x8(%rbp)
jmp 0x346b1
leaq 0x3d8278(%rip), %rax # 0x40c680
testb $0x1, 0x4(%rax)
jne 0x3441b
movq $0x0, -0x8(%rbp)
jmp 0x346b1
leaq 0x3d761e(%rip), %rax # 0x40ba40
testb $0x1, (%rax)
je 0x3463a
callq 0x2d4b0
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x34453
movq $0x0, -0x8(%rbp)
jmp 0x346b1
movq -0x38(%rbp), %rax
testb $0x1, 0x7e0(%rax)
jne 0x3446d
movq $0x0, -0x8(%rbp)
jmp 0x346b1
movq -0x38(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movl $0x2, -0x2c(%rbp)
leaq 0x3d81f9(%rip), %rax # 0x40c680
testb $0x1, 0x5(%rax)
je 0x34496
movl -0x2c(%rbp), %eax
orl $0x1, %eax
movl %eax, -0x2c(%rbp)
leaq 0x3d72a3(%rip), %rax # 0x40b740
testb $0x1, (%rax)
je 0x34638
movq -0x38(%rbp), %rcx
movq 0x7f8(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x7f8(%rcx)
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rax
addq $0x14c8, %rax # imm = 0x14C8
movq %rax, -0x48(%rbp)
movq -0x38(%rbp), %rax
movq 0x850(%rax), %rcx
movq -0x48(%rbp), %rax
movq %rcx, (%rax)
movq -0x40(%rbp), %rcx
movq -0x48(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x48(%rbp), %rax
movl $0x1, 0x18(%rax)
movq -0x48(%rbp), %rax
movq $0x0, 0x10(%rax)
movq -0x48(%rbp), %rax
leaq 0x3d816f(%rip), %rcx # 0x40c680
movq %rcx, 0x30(%rax)
movq -0x48(%rbp), %rax
movq $0x0, 0x38(%rax)
movq -0x48(%rbp), %rax
movq $0x0, 0x40(%rax)
cmpq $0x0, -0x18(%rbp)
je 0x3454d
movq -0x18(%rbp), %rsi
movq -0x48(%rbp), %rdi
addq $0x80, %rdi
movl $0x98, %edx
callq 0x26280
movq -0x48(%rbp), %rax
movb $0x0, 0x78(%rax)
movq -0x48(%rbp), %rax
movl $0xffffffff, 0x118(%rax) # imm = 0xFFFFFFFF
movq -0x20(%rbp), %rcx
movq -0x48(%rbp), %rax
movq %rcx, 0x58(%rax)
movl -0x24(%rbp), %ecx
movq -0x48(%rbp), %rax
movl %ecx, 0x11c(%rax)
movb -0x25(%rbp), %cl
movq -0x48(%rbp), %rax
movb %cl, 0x120(%rax)
movb -0x26(%rbp), %cl
movq -0x48(%rbp), %rax
movb %cl, 0x121(%rax)
movq -0x48(%rbp), %rax
movq $0x0, 0x128(%rax)
movq -0x48(%rbp), %rax
movq $0x0, 0x130(%rax)
movq -0x48(%rbp), %rax
movq $0x0, 0x138(%rax)
movq -0x38(%rbp), %rax
movl 0x14b8(%rax), %eax
movl %eax, -0x4c(%rbp)
cmpl $0x0, -0x4c(%rbp)
jbe 0x34617
movq -0x38(%rbp), %rax
movq 0x14c0(%rax), %rax
movl -0x4c(%rbp), %ecx
subl $0x1, %ecx
movl %ecx, %ecx
imulq $0x590, %rcx, %rcx # imm = 0x590
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x48(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x58(%rbp), %rax
movl 0x18(%rax), %ecx
movq -0x48(%rbp), %rax
movl %ecx, 0x28(%rax)
jmp 0x34623
movq -0x48(%rbp), %rax
movq $0x0, 0x20(%rax)
movq -0x48(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x28(%rax)
movl -0x2c(%rbp), %eax
orl $0x4, %eax
movl %eax, -0x2c(%rbp)
jmp 0x34659
leaq 0x3d803f(%rip), %rax # 0x40c680
testb $0x1, 0x5(%rax)
je 0x34650
movl $0x1, -0x2c(%rbp)
jmp 0x34657
movl $0x0, -0x2c(%rbp)
jmp 0x34659
movq -0x10(%rbp), %rax
leaq 0x3d801c(%rip), %rcx # 0x40c680
movq %rcx, 0x8(%rax)
movl -0x2c(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
movb -0x26(%rbp), %cl
movq -0x10(%rbp), %rax
movb %cl, 0x31(%rax)
movb -0x25(%rbp), %cl
movq -0x10(%rbp), %rax
movb %cl, 0x30(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x40(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x48(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x50(%rax)
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
pfs_get_thread_transaction_locker_v1:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_70], r8d
mov eax, ecx
mov ecx, [rbp+var_70]
mov [rbp+var_6C], eax
mov rax, rdx
mov edx, [rbp+var_6C]
mov [rbp+var_68], rax
mov rax, rsi
mov rsi, [rbp+var_68]
mov [rbp+var_60], rax
mov r8, rdi
mov rdi, [rbp+var_60]
mov al, r9b
mov [rbp+var_10], r8
mov [rbp+var_18], rdi
mov [rbp+var_20], rsi
mov [rbp+var_24], edx
mov [rbp+var_25], cl
mov [rbp+var_26], al
lea rax, flag_global_instrumentation
test byte ptr [rax], 1
jnz short loc_34401
mov [rbp+var_8], 0
jmp loc_346B1
loc_34401:
lea rax, global_transaction_class
test byte ptr [rax+4], 1
jnz short loc_3441B
mov [rbp+var_8], 0
jmp loc_346B1
loc_3441B:
lea rax, flag_thread_instrumentation
test byte ptr [rax], 1
jz loc_3463A
call _ZL21my_thread_get_THR_PFSv; my_thread_get_THR_PFS(void)
mov [rbp+var_38], rax
cmp [rbp+var_38], 0
setz al
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_34453
mov [rbp+var_8], 0
jmp loc_346B1
loc_34453:
mov rax, [rbp+var_38]
test byte ptr [rax+7E0h], 1
jnz short loc_3446D
mov [rbp+var_8], 0
jmp loc_346B1
loc_3446D:
mov rcx, [rbp+var_38]
mov rax, [rbp+var_10]
mov [rax+10h], rcx
mov [rbp+var_2C], 2
lea rax, global_transaction_class
test byte ptr [rax+5], 1
jz short loc_34496
mov eax, [rbp+var_2C]
or eax, 1
mov [rbp+var_2C], eax
loc_34496:
lea rax, flag_events_transactions_current
test byte ptr [rax], 1
jz loc_34638
mov rcx, [rbp+var_38]
mov rax, [rcx+7F8h]
mov rdx, rax
add rdx, 1
mov [rcx+7F8h], rdx
mov [rbp+var_40], rax
mov rax, [rbp+var_38]
add rax, 14C8h
mov [rbp+var_48], rax
mov rax, [rbp+var_38]
mov rcx, [rax+850h]
mov rax, [rbp+var_48]
mov [rax], rcx
mov rcx, [rbp+var_40]
mov rax, [rbp+var_48]
mov [rax+8], rcx
mov rax, [rbp+var_48]
mov dword ptr [rax+18h], 1
mov rax, [rbp+var_48]
mov qword ptr [rax+10h], 0
mov rax, [rbp+var_48]
lea rcx, global_transaction_class
mov [rax+30h], rcx
mov rax, [rbp+var_48]
mov qword ptr [rax+38h], 0
mov rax, [rbp+var_48]
mov qword ptr [rax+40h], 0
cmp [rbp+var_18], 0
jz short loc_3454D
mov rsi, [rbp+var_18]
mov rdi, [rbp+var_48]
add rdi, 80h
mov edx, 98h
call _memcpy
loc_3454D:
mov rax, [rbp+var_48]
mov byte ptr [rax+78h], 0
mov rax, [rbp+var_48]
mov dword ptr [rax+118h], 0FFFFFFFFh
mov rcx, [rbp+var_20]
mov rax, [rbp+var_48]
mov [rax+58h], rcx
mov ecx, [rbp+var_24]
mov rax, [rbp+var_48]
mov [rax+11Ch], ecx
mov cl, [rbp+var_25]
mov rax, [rbp+var_48]
mov [rax+120h], cl
mov cl, [rbp+var_26]
mov rax, [rbp+var_48]
mov [rax+121h], cl
mov rax, [rbp+var_48]
mov qword ptr [rax+128h], 0
mov rax, [rbp+var_48]
mov qword ptr [rax+130h], 0
mov rax, [rbp+var_48]
mov qword ptr [rax+138h], 0
mov rax, [rbp+var_38]
mov eax, [rax+14B8h]
mov [rbp+var_4C], eax
cmp [rbp+var_4C], 0
jbe short loc_34617
mov rax, [rbp+var_38]
mov rax, [rax+14C0h]
mov ecx, [rbp+var_4C]
sub ecx, 1
mov ecx, ecx
imul rcx, 590h
add rax, rcx
mov [rbp+var_58], rax
mov rax, [rbp+var_58]
mov rcx, [rax+8]
mov rax, [rbp+var_48]
mov [rax+20h], rcx
mov rax, [rbp+var_58]
mov ecx, [rax+18h]
mov rax, [rbp+var_48]
mov [rax+28h], ecx
jmp short loc_34623
loc_34617:
mov rax, [rbp+var_48]
mov qword ptr [rax+20h], 0
loc_34623:
mov rcx, [rbp+var_48]
mov rax, [rbp+var_10]
mov [rax+28h], rcx
mov eax, [rbp+var_2C]
or eax, 4
mov [rbp+var_2C], eax
loc_34638:
jmp short loc_34659
loc_3463A:
lea rax, global_transaction_class
test byte ptr [rax+5], 1
jz short loc_34650
mov [rbp+var_2C], 1
jmp short loc_34657
loc_34650:
mov [rbp+var_2C], 0
loc_34657:
jmp short $+2
loc_34659:
mov rax, [rbp+var_10]
lea rcx, global_transaction_class
mov [rax+8], rcx
mov ecx, [rbp+var_2C]
mov rax, [rbp+var_10]
mov [rax], ecx
mov cl, [rbp+var_26]
mov rax, [rbp+var_10]
mov [rax+31h], cl
mov cl, [rbp+var_25]
mov rax, [rbp+var_10]
mov [rax+30h], cl
mov rax, [rbp+var_10]
mov qword ptr [rax+40h], 0
mov rax, [rbp+var_10]
mov qword ptr [rax+48h], 0
mov rax, [rbp+var_10]
mov qword ptr [rax+50h], 0
mov rax, [rbp+var_10]
mov [rbp+var_8], rax
loc_346B1:
mov rax, [rbp+var_8]
add rsp, 70h
pop rbp
retn
|
long long pfs_get_thread_transaction_locker_v1(long long a1, long long a2, long long a3, int a4, char a5, char a6)
{
long long v6; // rax
long long v7; // rax
long long v8; // rcx
int v10; // [rsp+24h] [rbp-4Ch]
long long THR_PFS; // [rsp+38h] [rbp-38h]
int v12; // [rsp+44h] [rbp-2Ch]
if ( (flag_global_instrumentation & 1) == 0 )
return 0LL;
if ( (*((_BYTE *)&global_transaction_class + 4) & 1) != 0 )
{
if ( (flag_thread_instrumentation & 1) != 0 )
{
THR_PFS = my_thread_get_THR_PFS();
if ( !THR_PFS )
return 0LL;
if ( (*(_BYTE *)(THR_PFS + 2016) & 1) == 0 )
return 0LL;
*(_QWORD *)(a1 + 16) = THR_PFS;
v12 = 2;
if ( (*((_BYTE *)&global_transaction_class + 5) & 1) != 0 )
v12 = 3;
if ( (flag_events_transactions_current & 1) != 0 )
{
v6 = *(_QWORD *)(THR_PFS + 2040);
*(_QWORD *)(THR_PFS + 2040) = v6 + 1;
*(_QWORD *)(THR_PFS + 5320) = *(_QWORD *)(THR_PFS + 2128);
*(_QWORD *)(THR_PFS + 5328) = v6;
*(_DWORD *)(THR_PFS + 5344) = 1;
*(_QWORD *)(THR_PFS + 5336) = 0LL;
*(_QWORD *)(THR_PFS + 5368) = &global_transaction_class;
*(_QWORD *)(THR_PFS + 5376) = 0LL;
*(_QWORD *)(THR_PFS + 5384) = 0LL;
if ( a2 )
memcpy(THR_PFS + 5448, a2, 152LL);
*(_BYTE *)(THR_PFS + 5440) = 0;
*(_DWORD *)(THR_PFS + 5600) = -1;
*(_QWORD *)(THR_PFS + 5408) = a3;
*(_DWORD *)(THR_PFS + 5604) = a4;
*(_BYTE *)(THR_PFS + 5608) = a5;
*(_BYTE *)(THR_PFS + 5609) = a6;
*(_QWORD *)(THR_PFS + 5616) = 0LL;
*(_QWORD *)(THR_PFS + 5624) = 0LL;
*(_QWORD *)(THR_PFS + 5632) = 0LL;
v10 = *(_DWORD *)(THR_PFS + 5304);
if ( v10 )
{
v7 = *(_QWORD *)(THR_PFS + 5312);
v8 = 1424LL * (unsigned int)(v10 - 1);
*(_QWORD *)(THR_PFS + 5352) = *(_QWORD *)(v8 + v7 + 8);
*(_DWORD *)(THR_PFS + 5360) = *(_DWORD *)(v8 + v7 + 24);
}
else
{
*(_QWORD *)(THR_PFS + 5352) = 0LL;
}
*(_QWORD *)(a1 + 40) = THR_PFS + 5320;
v12 |= 4u;
}
}
else
{
v12 = (*((_BYTE *)&global_transaction_class + 5) & 1) != 0;
}
*(_QWORD *)(a1 + 8) = &global_transaction_class;
*(_DWORD *)a1 = v12;
*(_BYTE *)(a1 + 49) = a6;
*(_BYTE *)(a1 + 48) = a5;
*(_QWORD *)(a1 + 64) = 0LL;
*(_QWORD *)(a1 + 72) = 0LL;
*(_QWORD *)(a1 + 80) = 0LL;
return a1;
}
return 0LL;
}
|
pfs_get_thread_transaction_locker_v1:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV dword ptr [RBP + -0x70],R8D
MOV EAX,ECX
MOV ECX,dword ptr [RBP + -0x70]
MOV dword ptr [RBP + -0x6c],EAX
MOV RAX,RDX
MOV EDX,dword ptr [RBP + -0x6c]
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,RSI
MOV RSI,qword ptr [RBP + -0x68]
MOV qword ptr [RBP + -0x60],RAX
MOV R8,RDI
MOV RDI,qword ptr [RBP + -0x60]
MOV AL,R9B
MOV qword ptr [RBP + -0x10],R8
MOV qword ptr [RBP + -0x18],RDI
MOV qword ptr [RBP + -0x20],RSI
MOV dword ptr [RBP + -0x24],EDX
MOV byte ptr [RBP + -0x25],CL
MOV byte ptr [RBP + -0x26],AL
LEA RAX,[0x50ba00]
TEST byte ptr [RAX],0x1
JNZ 0x00134401
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001346b1
LAB_00134401:
LEA RAX,[0x50c680]
TEST byte ptr [RAX + 0x4],0x1
JNZ 0x0013441b
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001346b1
LAB_0013441b:
LEA RAX,[0x50ba40]
TEST byte ptr [RAX],0x1
JZ 0x0013463a
CALL 0x0012d4b0
MOV qword ptr [RBP + -0x38],RAX
CMP qword ptr [RBP + -0x38],0x0
SETZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x00134453
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001346b1
LAB_00134453:
MOV RAX,qword ptr [RBP + -0x38]
TEST byte ptr [RAX + 0x7e0],0x1
JNZ 0x0013446d
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001346b1
LAB_0013446d:
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],RCX
MOV dword ptr [RBP + -0x2c],0x2
LEA RAX,[0x50c680]
TEST byte ptr [RAX + 0x5],0x1
JZ 0x00134496
MOV EAX,dword ptr [RBP + -0x2c]
OR EAX,0x1
MOV dword ptr [RBP + -0x2c],EAX
LAB_00134496:
LEA RAX,[0x50b740]
TEST byte ptr [RAX],0x1
JZ 0x00134638
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RCX + 0x7f8]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RCX + 0x7f8],RDX
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x14c8
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RAX + 0x850]
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x48]
MOV dword ptr [RAX + 0x18],0x1
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RAX + 0x10],0x0
MOV RAX,qword ptr [RBP + -0x48]
LEA RCX,[0x50c680]
MOV qword ptr [RAX + 0x30],RCX
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RAX + 0x38],0x0
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RAX + 0x40],0x0
CMP qword ptr [RBP + -0x18],0x0
JZ 0x0013454d
MOV RSI,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RBP + -0x48]
ADD RDI,0x80
MOV EDX,0x98
CALL 0x00126280
LAB_0013454d:
MOV RAX,qword ptr [RBP + -0x48]
MOV byte ptr [RAX + 0x78],0x0
MOV RAX,qword ptr [RBP + -0x48]
MOV dword ptr [RAX + 0x118],0xffffffff
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RAX + 0x58],RCX
MOV ECX,dword ptr [RBP + -0x24]
MOV RAX,qword ptr [RBP + -0x48]
MOV dword ptr [RAX + 0x11c],ECX
MOV CL,byte ptr [RBP + -0x25]
MOV RAX,qword ptr [RBP + -0x48]
MOV byte ptr [RAX + 0x120],CL
MOV CL,byte ptr [RBP + -0x26]
MOV RAX,qword ptr [RBP + -0x48]
MOV byte ptr [RAX + 0x121],CL
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RAX + 0x128],0x0
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RAX + 0x130],0x0
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RAX + 0x138],0x0
MOV RAX,qword ptr [RBP + -0x38]
MOV EAX,dword ptr [RAX + 0x14b8]
MOV dword ptr [RBP + -0x4c],EAX
CMP dword ptr [RBP + -0x4c],0x0
JBE 0x00134617
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x14c0]
MOV ECX,dword ptr [RBP + -0x4c]
SUB ECX,0x1
MOV ECX,ECX
IMUL RCX,RCX,0x590
ADD RAX,RCX
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RAX + 0x20],RCX
MOV RAX,qword ptr [RBP + -0x58]
MOV ECX,dword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x48]
MOV dword ptr [RAX + 0x28],ECX
JMP 0x00134623
LAB_00134617:
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RAX + 0x20],0x0
LAB_00134623:
MOV RCX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x28],RCX
MOV EAX,dword ptr [RBP + -0x2c]
OR EAX,0x4
MOV dword ptr [RBP + -0x2c],EAX
LAB_00134638:
JMP 0x00134659
LAB_0013463a:
LEA RAX,[0x50c680]
TEST byte ptr [RAX + 0x5],0x1
JZ 0x00134650
MOV dword ptr [RBP + -0x2c],0x1
JMP 0x00134657
LAB_00134650:
MOV dword ptr [RBP + -0x2c],0x0
LAB_00134657:
JMP 0x00134659
LAB_00134659:
MOV RAX,qword ptr [RBP + -0x10]
LEA RCX,[0x50c680]
MOV qword ptr [RAX + 0x8],RCX
MOV ECX,dword ptr [RBP + -0x2c]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX],ECX
MOV CL,byte ptr [RBP + -0x26]
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x31],CL
MOV CL,byte ptr [RBP + -0x25]
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x30],CL
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x40],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x48],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x50],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x8],RAX
LAB_001346b1:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x70
POP RBP
RET
|
uint * pfs_get_thread_transaction_locker_v1
(uint *param_1,void *param_2,int8 param_3,int4 param_4,
int1 param_5,int1 param_6)
{
long lVar1;
long lVar2;
uint local_34;
uint *local_10;
if ((flag_global_instrumentation & 1) == 0) {
local_10 = (uint *)0x0;
}
else if ((global_transaction_class[4] & 1) == 0) {
local_10 = (uint *)0x0;
}
else {
if ((flag_thread_instrumentation & 1) == 0) {
local_34 = (uint)((global_transaction_class[5] & 1) != 0);
}
else {
lVar1 = my_thread_get_THR_PFS();
if (lVar1 == 0) {
return (uint *)0x0;
}
if ((*(byte *)(lVar1 + 0x7e0) & 1) == 0) {
return (uint *)0x0;
}
*(long *)(param_1 + 4) = lVar1;
local_34 = 2;
if ((global_transaction_class[5] & 1) != 0) {
local_34 = 3;
}
if ((flag_events_transactions_current & 1) != 0) {
lVar2 = *(long *)(lVar1 + 0x7f8);
*(long *)(lVar1 + 0x7f8) = lVar2 + 1;
*(int8 *)(lVar1 + 0x14c8) = *(int8 *)(lVar1 + 0x850);
*(long *)(lVar1 + 0x14d0) = lVar2;
*(int4 *)(lVar1 + 0x14e0) = 1;
*(int8 *)(lVar1 + 0x14d8) = 0;
*(int1 **)(lVar1 + 0x14f8) = global_transaction_class;
*(int8 *)(lVar1 + 0x1500) = 0;
*(int8 *)(lVar1 + 0x1508) = 0;
if (param_2 != (void *)0x0) {
memcpy((void *)(lVar1 + 0x1548),param_2,0x98);
}
*(int1 *)(lVar1 + 0x1540) = 0;
*(int4 *)(lVar1 + 0x15e0) = 0xffffffff;
*(int8 *)(lVar1 + 0x1520) = param_3;
*(int4 *)(lVar1 + 0x15e4) = param_4;
*(int1 *)(lVar1 + 0x15e8) = param_5;
*(int1 *)(lVar1 + 0x15e9) = param_6;
*(int8 *)(lVar1 + 0x15f0) = 0;
*(int8 *)(lVar1 + 0x15f8) = 0;
*(int8 *)(lVar1 + 0x1600) = 0;
if (*(int *)(lVar1 + 0x14b8) == 0) {
*(int8 *)(lVar1 + 0x14e8) = 0;
}
else {
lVar2 = *(long *)(lVar1 + 0x14c0) + (ulong)(*(int *)(lVar1 + 0x14b8) - 1) * 0x590;
*(int8 *)(lVar1 + 0x14e8) = *(int8 *)(lVar2 + 8);
*(int4 *)(lVar1 + 0x14f0) = *(int4 *)(lVar2 + 0x18);
}
*(int8 **)(param_1 + 10) = (int8 *)(lVar1 + 0x14c8);
local_34 = local_34 | 4;
}
}
*(int1 **)(param_1 + 2) = global_transaction_class;
*param_1 = local_34;
*(int1 *)((long)param_1 + 0x31) = param_6;
*(int1 *)(param_1 + 0xc) = param_5;
param_1[0x10] = 0;
param_1[0x11] = 0;
param_1[0x12] = 0;
param_1[0x13] = 0;
param_1[0x14] = 0;
param_1[0x15] = 0;
local_10 = param_1;
}
return local_10;
}
|
|
64,591 |
minja::VariableExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const
|
llama.cpp/common/minja/minja.hpp
|
Value do_evaluate(const std::shared_ptr<Context> & context) const override {
if (!context->contains(name)) {
return Value();
}
return context->at(name);
}
|
O3
|
cpp
|
minja::VariableExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdx), %r12
addq $0x20, %r14
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x602f8
movq (%r12), %rax
movq %r12, %rdi
movq %r13, %rsi
callq *0x20(%rax)
movl %eax, %ebp
leaq 0x48(%rsp), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x60b38
movq %r12, %rdi
callq 0x60bd8
leaq 0x40(%rsp), %rdi
callq 0x56124
leaq 0x30(%rsp), %rdi
callq 0x56124
leaq 0x20(%rsp), %r12
movq %r12, %rdi
callq 0x56124
movq -0x10(%r12), %rdi
testq %rdi, %rdi
je 0xa906f
movq 0x61f3e(%rip), %rax # 0x10af88
cmpb $0x0, (%rax)
je 0xa905a
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0xa9064
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0xa906f
movq (%rdi), %rax
callq *0x18(%rax)
testb %bpl, %bpl
je 0xa90fa
movq (%r15), %r15
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x602f8
movq (%r15), %rax
movq %r15, %rdi
movq %r12, %rsi
callq *0x18(%rax)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x63080
leaq 0x48(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x60b38
movq %r14, %rdi
callq 0x60bd8
leaq 0x40(%rsp), %rdi
callq 0x56124
leaq 0x30(%rsp), %rdi
callq 0x56124
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x56124
movq -0x10(%r14), %rdi
testq %rdi, %rdi
je 0xa914d
movq 0x61e9e(%rip), %rax # 0x10af88
cmpb $0x0, (%rax)
je 0xa9138
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0xa9142
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 0x60b38
movq %r14, %rdi
movl $0x1, %esi
callq 0x60b38
jmp 0xa914d
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0xa914d
movq (%rdi), %rax
callq *0x18(%rax)
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa9161
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x5a540
movq %rbx, %rdi
callq 0x1d8e0
|
_ZNK5minja12VariableExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov r15, rdx
mov r14, rsi
mov rbx, rdi
mov r12, [rdx]
add r14, 20h ; ' '
lea r13, [rsp+88h+var_80]
mov rdi, r13
mov rsi, r14
call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&)
mov rax, [r12]
mov rdi, r12
mov rsi, r13
call qword ptr [rax+20h]
mov ebp, eax
lea r12, [rsp+88h+var_40]
mov rdi, r12
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
lea rdi, [rsp+88h+var_48]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rsp+88h+var_58]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea r12, [rsp+88h+var_68]
mov rdi, r12
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, [r12-10h]
test rdi, rdi
jz short loc_A906F
mov rax, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag
cmp byte ptr [rax], 0
jz short loc_A905A
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_A9064
loc_A905A:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_A9064:
cmp eax, 1
jnz short loc_A906F
mov rax, [rdi]
call qword ptr [rax+18h]
loc_A906F:
test bpl, bpl
jz loc_A90FA
mov r15, [r15]
lea r12, [rsp+88h+var_80]
mov rdi, r12
mov rsi, r14
call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&)
mov rax, [r15]
mov rdi, r15
mov rsi, r12
call qword ptr [rax+18h]
mov rdi, rbx; this
mov rsi, rax; minja::Value *
call _ZN5minja5ValueC2ERKS0_; minja::Value::Value(minja::Value const&)
lea r14, [rsp+88h+var_40]
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
lea rdi, [rsp+88h+var_48]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rsp+88h+var_58]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea r14, [rsp+88h+var_68]
mov rdi, r14
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, [r14-10h]
test rdi, rdi
jz short loc_A914D
mov rax, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag
cmp byte ptr [rax], 0
jz short loc_A9138
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_A9142
loc_A90FA:
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)
jmp short loc_A914D
loc_A9138:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_A9142:
cmp eax, 1
jnz short loc_A914D
mov rax, [rdi]
call qword ptr [rax+18h]
loc_A914D:
mov rax, rbx
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_A9161:
mov rbx, rax
lea rdi, [rsp+arg_0]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov rdi, rbx
call __Unwind_Resume
|
minja::Value * minja::VariableExpr::do_evaluate(minja::Value *this, long long a2, long long *a3)
{
long long v5; // r12
char v6; // bp
long long v7; // rdi
signed __int32 v8; // eax
long long v9; // r15
const minja::Value *v10; // rax
long long v11; // rdi
signed __int32 v12; // eax
__int128 v14; // [rsp+8h] [rbp-80h] BYREF
volatile signed __int32 *v15[2]; // [rsp+20h] [rbp-68h] BYREF
volatile signed __int32 *v16[2]; // [rsp+30h] [rbp-58h] BYREF
volatile signed __int32 *v17; // [rsp+40h] [rbp-48h] BYREF
char v18[64]; // [rsp+48h] [rbp-40h] BYREF
v5 = *a3;
minja::Value::Value(&v14);
v6 = (*(long long ( **)(long long, __int128 *))(*(_QWORD *)v5 + 32LL))(v5, &v14);
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(v18);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v18);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v17);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v16);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v15);
v7 = *((_QWORD *)&v14 + 1);
if ( *((_QWORD *)&v14 + 1) )
{
if ( _libc_single_threaded )
{
v8 = *(_DWORD *)(*((_QWORD *)&v14 + 1) + 12LL);
*(_DWORD *)(*((_QWORD *)&v14 + 1) + 12LL) = v8 - 1;
}
else
{
v8 = _InterlockedExchangeAdd((volatile signed __int32 *)(*((_QWORD *)&v14 + 1) + 12LL), 0xFFFFFFFF);
}
if ( v8 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v7 + 24LL))(v7, 0LL);
}
if ( v6 )
{
v9 = *a3;
minja::Value::Value(&v14);
v10 = (const minja::Value *)(*(long long ( **)(long long, __int128 *))(*(_QWORD *)v9 + 24LL))(v9, &v14);
minja::Value::Value(this, v10);
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(v18);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v18);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v17);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v16);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v15);
v11 = *((_QWORD *)&v14 + 1);
if ( *((_QWORD *)&v14 + 1) )
{
if ( _libc_single_threaded )
{
v12 = *(_DWORD *)(*((_QWORD *)&v14 + 1) + 12LL);
*(_DWORD *)(*((_QWORD *)&v14 + 1) + 12LL) = v12 - 1;
}
else
{
v12 = _InterlockedExchangeAdd((volatile signed __int32 *)(*((_QWORD *)&v14 + 1) + 12LL), 0xFFFFFFFF);
}
if ( v12 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v11 + 24LL))(v11, 0LL);
}
}
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;
}
|
do_evaluate:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
MOV R12,qword ptr [RDX]
ADD R14,0x20
LEA R13,[RSP + 0x8]
MOV RDI,R13
MOV RSI,R14
CALL 0x001602f8
MOV RAX,qword ptr [R12]
LAB_001a8ff6:
MOV RDI,R12
MOV RSI,R13
CALL qword ptr [RAX + 0x20]
LAB_001a8fff:
MOV EBP,EAX
LEA R12,[RSP + 0x48]
MOV RDI,R12
XOR ESI,ESI
CALL 0x00160b38
MOV RDI,R12
CALL 0x00160bd8
LEA RDI,[RSP + 0x40]
CALL 0x00156124
LEA RDI,[RSP + 0x30]
CALL 0x00156124
LEA R12,[RSP + 0x20]
MOV RDI,R12
CALL 0x00156124
MOV RDI,qword ptr [R12 + -0x10]
TEST RDI,RDI
JZ 0x001a906f
MOV RAX,qword ptr [0x0020af88]
CMP byte ptr [RAX],0x0
JZ 0x001a905a
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x001a9064
LAB_001a905a:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_001a9064:
CMP EAX,0x1
JNZ 0x001a906f
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_001a906f:
TEST BPL,BPL
JZ 0x001a90fa
MOV R15,qword ptr [R15]
LEA R12,[RSP + 0x8]
MOV RDI,R12
MOV RSI,R14
CALL 0x001602f8
MOV RAX,qword ptr [R15]
LAB_001a908e:
MOV RDI,R15
MOV RSI,R12
CALL qword ptr [RAX + 0x18]
MOV RDI,RBX
MOV RSI,RAX
CALL 0x00163080
LAB_001a90a2:
LEA R14,[RSP + 0x48]
MOV RDI,R14
XOR ESI,ESI
CALL 0x00160b38
MOV RDI,R14
CALL 0x00160bd8
LEA RDI,[RSP + 0x40]
CALL 0x00156124
LEA RDI,[RSP + 0x30]
CALL 0x00156124
LEA R14,[RSP + 0x20]
MOV RDI,R14
CALL 0x00156124
MOV RDI,qword ptr [R14 + -0x10]
TEST RDI,RDI
JZ 0x001a914d
MOV RAX,qword ptr [0x0020af88]
CMP byte ptr [RAX],0x0
JZ 0x001a9138
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x001a9142
LAB_001a90fa:
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 0x00160b38
MOV RDI,R14
MOV ESI,0x1
CALL 0x00160b38
JMP 0x001a914d
LAB_001a9138:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_001a9142:
CMP EAX,0x1
JNZ 0x001a914d
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_001a914d:
MOV RAX,RBX
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* minja::VariableExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const */
shared_ptr * minja::VariableExpr::do_evaluate(shared_ptr *param_1)
{
int *piVar1;
long *plVar2;
char cVar3;
int iVar4;
Value *pVVar5;
int8 *in_RDX;
long in_RSI;
bool bVar6;
Value local_80 [8];
long *local_78;
__shared_count<(__gnu_cxx::_Lock_policy)2> local_68 [16];
__shared_count<(__gnu_cxx::_Lock_policy)2> local_58 [16];
__shared_count<(__gnu_cxx::_Lock_policy)2> local_48 [8];
data local_40 [16];
plVar2 = (long *)*in_RDX;
Value::Value(local_80,(string *)(in_RSI + 0x20));
/* try { // try from 001a8ff6 to 001a8ffe has its CatchHandler @ 001a9161 */
cVar3 = (**(code **)(*plVar2 + 0x20))(plVar2,local_80);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_40,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_40);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_48);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_58);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_68);
if (local_78 != (long *)0x0) {
if (*PTR___libc_single_threaded_0020af88 == '\0') {
LOCK();
piVar1 = (int *)((long)local_78 + 0xc);
iVar4 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar4 = *(int *)((long)local_78 + 0xc);
*(int *)((long)local_78 + 0xc) = iVar4 + -1;
}
if (iVar4 == 1) {
(**(code **)(*local_78 + 0x18))();
}
}
if (cVar3 == '\0') {
bVar6 = (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] = (shared_ptr)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(bVar6);
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(bVar6);
}
else {
plVar2 = (long *)*in_RDX;
Value::Value(local_80,(string *)(in_RSI + 0x20));
/* try { // try from 001a908e to 001a90a1 has its CatchHandler @ 001a915f */
pVVar5 = (Value *)(**(code **)(*plVar2 + 0x18))(plVar2,local_80);
Value::Value((Value *)param_1,pVVar5);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_40,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_40);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_48);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_58);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_68);
if (local_78 != (long *)0x0) {
if (*PTR___libc_single_threaded_0020af88 == '\0') {
LOCK();
piVar1 = (int *)((long)local_78 + 0xc);
iVar4 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar4 = *(int *)((long)local_78 + 0xc);
*(int *)((long)local_78 + 0xc) = iVar4 + -1;
}
if (iVar4 == 1) {
(**(code **)(*local_78 + 0x18))();
}
}
}
return param_1;
}
|
|
64,592 |
atoi_octal
|
eloqsql/mysys/my_init.c
|
static ulong atoi_octal(const char *str)
{
long int tmp;
while (*str && my_isspace(&my_charset_latin1, *str))
str++;
str2int(str,
(*str == '0' ? 8 : 10), /* Octalt or decimalt */
0, INT_MAX, &tmp);
return (ulong) tmp;
}
|
O0
|
c
|
atoi_octal:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x11(%rbp)
je 0x2d410
leaq 0x252a3c(%rip), %rax # 0x27fe30
movq 0x40(%rax), %rax
movq -0x8(%rbp), %rcx
movzbl (%rcx), %ecx
movzbl 0x1(%rax,%rcx), %eax
andl $0x8, %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x11(%rbp)
movb -0x11(%rbp), %al
testb $0x1, %al
jne 0x2d419
jmp 0x2d427
movq -0x8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x8(%rbp)
jmp 0x2d3dc
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movsbl (%rax), %ecx
movl $0xa, %esi
movl $0x8, %eax
cmpl $0x30, %ecx
cmovel %eax, %esi
xorl %eax, %eax
movl %eax, %edx
movl $0x7fffffff, %ecx # imm = 0x7FFFFFFF
leaq -0x10(%rbp), %r8
callq 0x80160
movq -0x10(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nop
|
atoi_octal:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
loc_2D3DC:
mov rax, [rbp+var_8]
movsx ecx, byte ptr [rax]
xor eax, eax
cmp ecx, 0
mov [rbp+var_11], al
jz short loc_2D410
lea rax, my_charset_latin1
mov rax, [rax+40h]
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx]
movzx eax, byte ptr [rax+rcx+1]
and eax, 8
cmp eax, 0
setnz al
mov [rbp+var_11], al
loc_2D410:
mov al, [rbp+var_11]
test al, 1
jnz short loc_2D419
jmp short loc_2D427
loc_2D419:
mov rax, [rbp+var_8]
add rax, 1
mov [rbp+var_8], rax
jmp short loc_2D3DC
loc_2D427:
mov rdi, [rbp+var_8]
mov rax, [rbp+var_8]
movsx ecx, byte ptr [rax]
mov esi, 0Ah
mov eax, 8
cmp ecx, 30h ; '0'
cmovz esi, eax
xor eax, eax
mov edx, eax
mov ecx, 7FFFFFFFh
lea r8, [rbp+var_10]
call str2int
mov rax, [rbp+var_10]
add rsp, 20h
pop rbp
retn
|
long long atoi_octal(_BYTE *a1)
{
long long v1; // rsi
bool v3; // [rsp+Fh] [rbp-11h]
long long v4; // [rsp+10h] [rbp-10h] BYREF
_BYTE *i; // [rsp+18h] [rbp-8h]
for ( i = a1; ; ++i )
{
v3 = 0;
if ( *i )
v3 = (*(_BYTE *)(*((_QWORD *)&my_charset_latin1 + 8) + (unsigned __int8)*i + 1LL) & 8) != 0;
if ( !v3 )
break;
}
v1 = 10LL;
if ( *i == 48 )
v1 = 8LL;
str2int(i, v1, 0LL, 0x7FFFFFFFLL, &v4);
return v4;
}
|
atoi_octal:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
LAB_0012d3dc:
MOV RAX,qword ptr [RBP + -0x8]
MOVSX ECX,byte ptr [RAX]
XOR EAX,EAX
CMP ECX,0x0
MOV byte ptr [RBP + -0x11],AL
JZ 0x0012d410
LEA RAX,[0x37fe30]
MOV RAX,qword ptr [RAX + 0x40]
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX]
MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x1]
AND EAX,0x8
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x11],AL
LAB_0012d410:
MOV AL,byte ptr [RBP + -0x11]
TEST AL,0x1
JNZ 0x0012d419
JMP 0x0012d427
LAB_0012d419:
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x1
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0012d3dc
LAB_0012d427:
MOV RDI,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x8]
MOVSX ECX,byte ptr [RAX]
MOV ESI,0xa
MOV EAX,0x8
CMP ECX,0x30
CMOVZ ESI,EAX
XOR EAX,EAX
MOV EDX,EAX
MOV ECX,0x7fffffff
LEA R8,[RBP + -0x10]
CALL 0x00180160
MOV RAX,qword ptr [RBP + -0x10]
ADD RSP,0x20
POP RBP
RET
|
int8 atoi_octal(byte *param_1)
{
int8 uVar1;
bool bVar2;
int8 local_18;
byte *local_10;
local_10 = param_1;
while( true ) {
bVar2 = false;
if (*local_10 != 0) {
bVar2 = (PTR_ctype_latin1_0037fe70[(ulong)*local_10 + 1] & 8) != 0;
}
if (!bVar2) break;
local_10 = local_10 + 1;
}
uVar1 = 10;
if (*local_10 == 0x30) {
uVar1 = 8;
}
str2int(local_10,uVar1,0,0x7fffffff,&local_18);
return local_18;
}
|
|
64,593 |
init_state_maps
|
eloqsql/mysys/charset.c
|
static my_bool init_state_maps(struct charset_info_st *cs)
{
uint i;
uchar *state_map;
uchar *ident_map;
if (!(cs->state_map= state_map= (uchar*) my_once_alloc(256*2, MYF(MY_WME))))
return 1;
cs->ident_map= ident_map= state_map + 256;
/* Fill state_map with states to get a faster parser */
for (i=0; i < 256 ; i++)
{
if (my_isalpha(cs,i))
state_map[i]=(uchar) MY_LEX_IDENT;
else if (my_isdigit(cs,i))
state_map[i]=(uchar) MY_LEX_NUMBER_IDENT;
else if (is_multi_byte_ident(cs, i))
state_map[i]=(uchar) MY_LEX_IDENT;
else if (my_isspace(cs,i))
state_map[i]=(uchar) MY_LEX_SKIP;
else
state_map[i]=(uchar) MY_LEX_CHAR;
}
state_map[(uchar)'_']=state_map[(uchar)'$']=(uchar) MY_LEX_IDENT;
state_map[(uchar)'\'']=(uchar) MY_LEX_STRING;
state_map[(uchar)'.']=(uchar) MY_LEX_REAL_OR_POINT;
state_map[(uchar)'>']=state_map[(uchar)'=']=state_map[(uchar)'!']= (uchar) MY_LEX_CMP_OP;
state_map[(uchar)'<']= (uchar) MY_LEX_LONG_CMP_OP;
state_map[(uchar)'&']=state_map[(uchar)'|']=(uchar) MY_LEX_BOOL;
state_map[(uchar)'#']=(uchar) MY_LEX_COMMENT;
state_map[(uchar)';']=(uchar) MY_LEX_SEMICOLON;
state_map[(uchar)':']=(uchar) MY_LEX_SET_VAR;
state_map[0]=(uchar) MY_LEX_EOL;
state_map[(uchar)'\\']= (uchar) MY_LEX_ESCAPE;
state_map[(uchar)'/']= (uchar) MY_LEX_LONG_COMMENT;
state_map[(uchar)'*']= (uchar) MY_LEX_END_LONG_COMMENT;
state_map[(uchar)'@']= (uchar) MY_LEX_USER_END;
state_map[(uchar) '`']= (uchar) MY_LEX_USER_VARIABLE_DELIMITER;
state_map[(uchar)'"']= (uchar) MY_LEX_STRING_OR_DELIMITER;
state_map[(uchar)'-']= (uchar) MY_LEX_MINUS_OR_COMMENT;
state_map[(uchar)',']= (uchar) MY_LEX_COMMA;
state_map[(uchar)'?']= (uchar) MY_LEX_PLACEHOLDER;
/*
Create a second map to make it faster to find identifiers
*/
for (i=0; i < 256 ; i++)
{
ident_map[i]= (uchar) (state_map[i] == MY_LEX_IDENT ||
state_map[i] == MY_LEX_NUMBER_IDENT);
}
/* Special handling of hex and binary strings */
state_map[(uchar)'x']= state_map[(uchar)'X']= (uchar) MY_LEX_IDENT_OR_HEX;
state_map[(uchar)'b']= state_map[(uchar)'B']= (uchar) MY_LEX_IDENT_OR_BIN;
state_map[(uchar)'n']= state_map[(uchar)'N']= (uchar) MY_LEX_IDENT_OR_NCHAR;
return 0;
}
|
O0
|
c
|
init_state_maps:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl $0x200, %edi # imm = 0x200
movl $0x10, %esi
callq 0xf5300
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rcx
movq %rax, 0x80(%rcx)
cmpq $0x0, %rax
jne 0xde419
movb $0x1, -0x1(%rbp)
jmp 0xde646
movq -0x20(%rbp), %rcx
addq $0x100, %rcx # imm = 0x100
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rcx, 0x88(%rax)
movl $0x0, -0x14(%rbp)
cmpl $0x100, -0x14(%rbp) # imm = 0x100
jae 0xde503
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x14(%rbp), %ecx
movzbl %cl, %ecx
movzbl 0x1(%rax,%rcx), %eax
andl $0x3, %eax
cmpl $0x0, %eax
je 0xde472
movq -0x20(%rbp), %rax
movl -0x14(%rbp), %ecx
movb $0x2, (%rax,%rcx)
jmp 0xde4f3
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x14(%rbp), %ecx
movzbl %cl, %ecx
movzbl 0x1(%rax,%rcx), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0xde49a
movq -0x20(%rbp), %rax
movl -0x14(%rbp), %ecx
movb $0xe, (%rax,%rcx)
jmp 0xde4f1
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %eax
movzbl %al, %esi
callq 0xde720
cmpb $0x0, %al
je 0xde4ba
movq -0x20(%rbp), %rax
movl -0x14(%rbp), %ecx
movb $0x2, (%rax,%rcx)
jmp 0xde4ef
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x14(%rbp), %ecx
movzbl %cl, %ecx
movzbl 0x1(%rax,%rcx), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0xde4e2
movq -0x20(%rbp), %rax
movl -0x14(%rbp), %ecx
movb $0x1a, (%rax,%rcx)
jmp 0xde4ed
movq -0x20(%rbp), %rax
movl -0x14(%rbp), %ecx
movb $0x1, (%rax,%rcx)
jmp 0xde4ef
jmp 0xde4f1
jmp 0xde4f3
jmp 0xde4f5
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xde43a
movq -0x20(%rbp), %rax
movb $0x2, 0x24(%rax)
movq -0x20(%rbp), %rax
movb $0x2, 0x5f(%rax)
movq -0x20(%rbp), %rax
movb $0xa, 0x27(%rax)
movq -0x20(%rbp), %rax
movb $0x10, 0x2e(%rax)
movq -0x20(%rbp), %rax
movb $0x8, 0x21(%rax)
movq -0x20(%rbp), %rax
movb $0x8, 0x3d(%rax)
movq -0x20(%rbp), %rax
movb $0x8, 0x3e(%rax)
movq -0x20(%rbp), %rax
movb $0x9, 0x3c(%rax)
movq -0x20(%rbp), %rax
movb $0x11, 0x7c(%rax)
movq -0x20(%rbp), %rax
movb $0x11, 0x26(%rax)
movq -0x20(%rbp), %rax
movb $0xb, 0x23(%rax)
movq -0x20(%rbp), %rax
movb $0x16, 0x3b(%rax)
movq -0x20(%rbp), %rax
movb $0x17, 0x3a(%rax)
movq -0x20(%rbp), %rax
movb $0x12, (%rax)
movq -0x20(%rbp), %rax
movb $0x13, 0x5c(%rax)
movq -0x20(%rbp), %rax
movb $0x14, 0x2f(%rax)
movq -0x20(%rbp), %rax
movb $0x15, 0x2a(%rax)
movq -0x20(%rbp), %rax
movb $0x18, 0x40(%rax)
movq -0x20(%rbp), %rax
movb $0x1b, 0x60(%rax)
movq -0x20(%rbp), %rax
movb $0x21, 0x22(%rax)
movq -0x20(%rbp), %rax
movb $0x22, 0x2d(%rax)
movq -0x20(%rbp), %rax
movb $0x24, 0x2c(%rax)
movq -0x20(%rbp), %rax
movb $0x23, 0x3f(%rax)
movl $0x0, -0x14(%rbp)
cmpl $0x100, -0x14(%rbp) # imm = 0x100
jae 0xde612
movq -0x20(%rbp), %rax
movl -0x14(%rbp), %ecx
movzbl (%rax,%rcx), %ecx
movb $0x1, %al
cmpl $0x2, %ecx
movb %al, -0x29(%rbp)
je 0xde5f3
movq -0x20(%rbp), %rax
movl -0x14(%rbp), %ecx
movzbl (%rax,%rcx), %eax
cmpl $0xe, %eax
sete %al
movb %al, -0x29(%rbp)
movb -0x29(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movb %al, %dl
movq -0x28(%rbp), %rax
movl -0x14(%rbp), %ecx
movb %dl, (%rax,%rcx)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xde5c1
movq -0x20(%rbp), %rax
movb $0x1e, 0x58(%rax)
movq -0x20(%rbp), %rax
movb $0x1e, 0x78(%rax)
movq -0x20(%rbp), %rax
movb $0x1f, 0x42(%rax)
movq -0x20(%rbp), %rax
movb $0x1f, 0x62(%rax)
movq -0x20(%rbp), %rax
movb $0x20, 0x4e(%rax)
movq -0x20(%rbp), %rax
movb $0x20, 0x6e(%rax)
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nop
|
init_state_maps:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov edi, 200h
mov esi, 10h
call my_once_alloc
mov [rbp+var_20], rax
mov rcx, [rbp+var_10]
mov [rcx+80h], rax
cmp rax, 0
jnz short loc_DE419
mov [rbp+var_1], 1
jmp loc_DE646
loc_DE419:
mov rcx, [rbp+var_20]
add rcx, 100h
mov [rbp+var_28], rcx
mov rax, [rbp+var_10]
mov [rax+88h], rcx
mov [rbp+var_14], 0
loc_DE43A:
cmp [rbp+var_14], 100h
jnb loc_DE503
mov rax, [rbp+var_10]
mov rax, [rax+40h]
mov ecx, [rbp+var_14]
movzx ecx, cl
movzx eax, byte ptr [rax+rcx+1]
and eax, 3
cmp eax, 0
jz short loc_DE472
mov rax, [rbp+var_20]
mov ecx, [rbp+var_14]
mov byte ptr [rax+rcx], 2
jmp loc_DE4F3
loc_DE472:
mov rax, [rbp+var_10]
mov rax, [rax+40h]
mov ecx, [rbp+var_14]
movzx ecx, cl
movzx eax, byte ptr [rax+rcx+1]
and eax, 4
cmp eax, 0
jz short loc_DE49A
mov rax, [rbp+var_20]
mov ecx, [rbp+var_14]
mov byte ptr [rax+rcx], 0Eh
jmp short loc_DE4F1
loc_DE49A:
mov rdi, [rbp+var_10]
mov eax, [rbp+var_14]
movzx esi, al
call is_multi_byte_ident
cmp al, 0
jz short loc_DE4BA
mov rax, [rbp+var_20]
mov ecx, [rbp+var_14]
mov byte ptr [rax+rcx], 2
jmp short loc_DE4EF
loc_DE4BA:
mov rax, [rbp+var_10]
mov rax, [rax+40h]
mov ecx, [rbp+var_14]
movzx ecx, cl
movzx eax, byte ptr [rax+rcx+1]
and eax, 8
cmp eax, 0
jz short loc_DE4E2
mov rax, [rbp+var_20]
mov ecx, [rbp+var_14]
mov byte ptr [rax+rcx], 1Ah
jmp short loc_DE4ED
loc_DE4E2:
mov rax, [rbp+var_20]
mov ecx, [rbp+var_14]
mov byte ptr [rax+rcx], 1
loc_DE4ED:
jmp short $+2
loc_DE4EF:
jmp short $+2
loc_DE4F1:
jmp short $+2
loc_DE4F3:
jmp short $+2
loc_DE4F5:
mov eax, [rbp+var_14]
add eax, 1
mov [rbp+var_14], eax
jmp loc_DE43A
loc_DE503:
mov rax, [rbp+var_20]
mov byte ptr [rax+24h], 2
mov rax, [rbp+var_20]
mov byte ptr [rax+5Fh], 2
mov rax, [rbp+var_20]
mov byte ptr [rax+27h], 0Ah
mov rax, [rbp+var_20]
mov byte ptr [rax+2Eh], 10h
mov rax, [rbp+var_20]
mov byte ptr [rax+21h], 8
mov rax, [rbp+var_20]
mov byte ptr [rax+3Dh], 8
mov rax, [rbp+var_20]
mov byte ptr [rax+3Eh], 8
mov rax, [rbp+var_20]
mov byte ptr [rax+3Ch], 9
mov rax, [rbp+var_20]
mov byte ptr [rax+7Ch], 11h
mov rax, [rbp+var_20]
mov byte ptr [rax+26h], 11h
mov rax, [rbp+var_20]
mov byte ptr [rax+23h], 0Bh
mov rax, [rbp+var_20]
mov byte ptr [rax+3Bh], 16h
mov rax, [rbp+var_20]
mov byte ptr [rax+3Ah], 17h
mov rax, [rbp+var_20]
mov byte ptr [rax], 12h
mov rax, [rbp+var_20]
mov byte ptr [rax+5Ch], 13h
mov rax, [rbp+var_20]
mov byte ptr [rax+2Fh], 14h
mov rax, [rbp+var_20]
mov byte ptr [rax+2Ah], 15h
mov rax, [rbp+var_20]
mov byte ptr [rax+40h], 18h
mov rax, [rbp+var_20]
mov byte ptr [rax+60h], 1Bh
mov rax, [rbp+var_20]
mov byte ptr [rax+22h], 21h ; '!'
mov rax, [rbp+var_20]
mov byte ptr [rax+2Dh], 22h ; '"'
mov rax, [rbp+var_20]
mov byte ptr [rax+2Ch], 24h ; '$'
mov rax, [rbp+var_20]
mov byte ptr [rax+3Fh], 23h ; '#'
mov [rbp+var_14], 0
loc_DE5C1:
cmp [rbp+var_14], 100h
jnb short loc_DE612
mov rax, [rbp+var_20]
mov ecx, [rbp+var_14]
movzx ecx, byte ptr [rax+rcx]
mov al, 1
cmp ecx, 2
mov [rbp+var_29], al
jz short loc_DE5F3
mov rax, [rbp+var_20]
mov ecx, [rbp+var_14]
movzx eax, byte ptr [rax+rcx]
cmp eax, 0Eh
setz al
mov [rbp+var_29], al
loc_DE5F3:
mov al, [rbp+var_29]
and al, 1
movzx eax, al
mov dl, al
mov rax, [rbp+var_28]
mov ecx, [rbp+var_14]
mov [rax+rcx], dl
mov eax, [rbp+var_14]
add eax, 1
mov [rbp+var_14], eax
jmp short loc_DE5C1
loc_DE612:
mov rax, [rbp+var_20]
mov byte ptr [rax+58h], 1Eh
mov rax, [rbp+var_20]
mov byte ptr [rax+78h], 1Eh
mov rax, [rbp+var_20]
mov byte ptr [rax+42h], 1Fh
mov rax, [rbp+var_20]
mov byte ptr [rax+62h], 1Fh
mov rax, [rbp+var_20]
mov byte ptr [rax+4Eh], 20h ; ' '
mov rax, [rbp+var_20]
mov byte ptr [rax+6Eh], 20h ; ' '
mov [rbp+var_1], 0
loc_DE646:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
|
char init_state_maps(_QWORD *a1)
{
bool v2; // [rsp+7h] [rbp-29h]
_BYTE *v3; // [rsp+10h] [rbp-20h]
unsigned int i; // [rsp+1Ch] [rbp-14h]
unsigned int j; // [rsp+1Ch] [rbp-14h]
v3 = (_BYTE *)my_once_alloc(512LL, 16LL);
a1[16] = v3;
if ( !v3 )
return 1;
a1[17] = v3 + 256;
for ( i = 0; i < 0x100; ++i )
{
if ( (*(_BYTE *)(a1[8] + (unsigned __int8)i + 1LL) & 3) != 0 )
{
v3[i] = 2;
}
else if ( (*(_BYTE *)(a1[8] + (unsigned __int8)i + 1LL) & 4) != 0 )
{
v3[i] = 14;
}
else if ( (unsigned __int8)is_multi_byte_ident(a1, (unsigned __int8)i) )
{
v3[i] = 2;
}
else if ( (*(_BYTE *)(a1[8] + (unsigned __int8)i + 1LL) & 8) != 0 )
{
v3[i] = 26;
}
else
{
v3[i] = 1;
}
}
v3[36] = 2;
v3[95] = 2;
v3[39] = 10;
v3[46] = 16;
v3[33] = 8;
v3[61] = 8;
v3[62] = 8;
v3[60] = 9;
v3[124] = 17;
v3[38] = 17;
v3[35] = 11;
v3[59] = 22;
v3[58] = 23;
*v3 = 18;
v3[92] = 19;
v3[47] = 20;
v3[42] = 21;
v3[64] = 24;
v3[96] = 27;
v3[34] = 33;
v3[45] = 34;
v3[44] = 36;
v3[63] = 35;
for ( j = 0; j < 0x100; ++j )
{
v2 = 1;
if ( v3[j] != 2 )
v2 = v3[j] == 14;
v3[j + 256] = v2;
}
v3[88] = 30;
v3[120] = 30;
v3[66] = 31;
v3[98] = 31;
v3[78] = 32;
v3[110] = 32;
return 0;
}
|
init_state_maps:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV EDI,0x200
MOV ESI,0x10
CALL 0x001f5300
MOV qword ptr [RBP + -0x20],RAX
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RCX + 0x80],RAX
CMP RAX,0x0
JNZ 0x001de419
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001de646
LAB_001de419:
MOV RCX,qword ptr [RBP + -0x20]
ADD RCX,0x100
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x88],RCX
MOV dword ptr [RBP + -0x14],0x0
LAB_001de43a:
CMP dword ptr [RBP + -0x14],0x100
JNC 0x001de503
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
MOV ECX,dword ptr [RBP + -0x14]
MOVZX ECX,CL
MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x1]
AND EAX,0x3
CMP EAX,0x0
JZ 0x001de472
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x14]
MOV byte ptr [RAX + RCX*0x1],0x2
JMP 0x001de4f3
LAB_001de472:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
MOV ECX,dword ptr [RBP + -0x14]
MOVZX ECX,CL
MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x1]
AND EAX,0x4
CMP EAX,0x0
JZ 0x001de49a
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x14]
MOV byte ptr [RAX + RCX*0x1],0xe
JMP 0x001de4f1
LAB_001de49a:
MOV RDI,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RBP + -0x14]
MOVZX ESI,AL
CALL 0x001de720
CMP AL,0x0
JZ 0x001de4ba
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x14]
MOV byte ptr [RAX + RCX*0x1],0x2
JMP 0x001de4ef
LAB_001de4ba:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
MOV ECX,dword ptr [RBP + -0x14]
MOVZX ECX,CL
MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x1]
AND EAX,0x8
CMP EAX,0x0
JZ 0x001de4e2
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x14]
MOV byte ptr [RAX + RCX*0x1],0x1a
JMP 0x001de4ed
LAB_001de4e2:
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x14]
MOV byte ptr [RAX + RCX*0x1],0x1
LAB_001de4ed:
JMP 0x001de4ef
LAB_001de4ef:
JMP 0x001de4f1
LAB_001de4f1:
JMP 0x001de4f3
LAB_001de4f3:
JMP 0x001de4f5
LAB_001de4f5:
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x1
MOV dword ptr [RBP + -0x14],EAX
JMP 0x001de43a
LAB_001de503:
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x24],0x2
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x5f],0x2
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x27],0xa
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x2e],0x10
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x21],0x8
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x3d],0x8
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x3e],0x8
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x3c],0x9
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x7c],0x11
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x26],0x11
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x23],0xb
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x3b],0x16
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x3a],0x17
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],0x12
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x5c],0x13
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x2f],0x14
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x2a],0x15
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x40],0x18
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x60],0x1b
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x22],0x21
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x2d],0x22
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x2c],0x24
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x3f],0x23
MOV dword ptr [RBP + -0x14],0x0
LAB_001de5c1:
CMP dword ptr [RBP + -0x14],0x100
JNC 0x001de612
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x14]
MOVZX ECX,byte ptr [RAX + RCX*0x1]
MOV AL,0x1
CMP ECX,0x2
MOV byte ptr [RBP + -0x29],AL
JZ 0x001de5f3
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x14]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
CMP EAX,0xe
SETZ AL
MOV byte ptr [RBP + -0x29],AL
LAB_001de5f3:
MOV AL,byte ptr [RBP + -0x29]
AND AL,0x1
MOVZX EAX,AL
MOV DL,AL
MOV RAX,qword ptr [RBP + -0x28]
MOV ECX,dword ptr [RBP + -0x14]
MOV byte ptr [RAX + RCX*0x1],DL
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x1
MOV dword ptr [RBP + -0x14],EAX
JMP 0x001de5c1
LAB_001de612:
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x58],0x1e
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x78],0x1e
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x42],0x1f
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x62],0x1f
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x4e],0x20
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x6e],0x20
MOV byte ptr [RBP + -0x1],0x0
LAB_001de646:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1 init_state_maps(long param_1)
{
char cVar1;
int1 *puVar2;
bool local_31;
uint local_1c;
int1 local_9;
puVar2 = (int1 *)my_once_alloc(0x200,0x10);
*(int1 **)(param_1 + 0x80) = puVar2;
if (puVar2 == (int1 *)0x0) {
local_9 = 1;
}
else {
*(int1 **)(param_1 + 0x88) = puVar2 + 0x100;
for (local_1c = 0; local_1c < 0x100; local_1c = local_1c + 1) {
if ((*(byte *)(*(long *)(param_1 + 0x40) + 1 + (ulong)(local_1c & 0xff)) & 3) == 0) {
if ((*(byte *)(*(long *)(param_1 + 0x40) + 1 + (ulong)(local_1c & 0xff)) & 4) == 0) {
cVar1 = is_multi_byte_ident(param_1,local_1c & 0xff);
if (cVar1 == '\0') {
if ((*(byte *)(*(long *)(param_1 + 0x40) + 1 + (ulong)(local_1c & 0xff)) & 8) == 0) {
puVar2[local_1c] = 1;
}
else {
puVar2[local_1c] = 0x1a;
}
}
else {
puVar2[local_1c] = 2;
}
}
else {
puVar2[local_1c] = 0xe;
}
}
else {
puVar2[local_1c] = 2;
}
}
puVar2[0x24] = 2;
puVar2[0x5f] = 2;
puVar2[0x27] = 10;
puVar2[0x2e] = 0x10;
puVar2[0x21] = 8;
puVar2[0x3d] = 8;
puVar2[0x3e] = 8;
puVar2[0x3c] = 9;
puVar2[0x7c] = 0x11;
puVar2[0x26] = 0x11;
puVar2[0x23] = 0xb;
puVar2[0x3b] = 0x16;
puVar2[0x3a] = 0x17;
*puVar2 = 0x12;
puVar2[0x5c] = 0x13;
puVar2[0x2f] = 0x14;
puVar2[0x2a] = 0x15;
puVar2[0x40] = 0x18;
puVar2[0x60] = 0x1b;
puVar2[0x22] = 0x21;
puVar2[0x2d] = 0x22;
puVar2[0x2c] = 0x24;
puVar2[0x3f] = 0x23;
for (local_1c = 0; local_1c < 0x100; local_1c = local_1c + 1) {
local_31 = true;
if (puVar2[local_1c] != '\x02') {
local_31 = puVar2[local_1c] == '\x0e';
}
(puVar2 + 0x100)[local_1c] = local_31;
}
puVar2[0x58] = 0x1e;
puVar2[0x78] = 0x1e;
puVar2[0x42] = 0x1f;
puVar2[0x62] = 0x1f;
puVar2[0x4e] = 0x20;
puVar2[0x6e] = 0x20;
local_9 = 0;
}
return local_9;
}
|
|
64,594 |
js_math_clz32
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_math_clz32(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
uint32_t a, r;
if (JS_ToUint32(ctx, &a, argv[0]))
return JS_EXCEPTION;
if (a == 0)
r = 32;
else
r = clz32(a);
return js_int32(r);
}
|
O1
|
c
|
js_math_clz32:
pushq %rbx
subq $0x10, %rsp
movq (%r8), %rdx
movq 0x8(%r8), %rcx
movq %rdx, (%rsp)
cmpl $-0x9, %ecx
jb 0x7d62e
movq (%rsp), %rax
incl (%rax)
leaq 0xc(%rsp), %rbx
movq %rbx, %rsi
callq 0x26daf
movl %eax, %ecx
movl (%rbx), %eax
testl %eax, %eax
je 0x7d64b
bsrl %eax, %eax
xorl $0x1f, %eax
jmp 0x7d650
movl $0x20, %eax
xorl %esi, %esi
testl %ecx, %ecx
cmovnel %esi, %eax
movl $0x6, %edx
cmoveq %rsi, %rdx
addq $0x10, %rsp
popq %rbx
retq
|
js_math_clz32:
push rbx
sub rsp, 10h
mov rdx, [r8]
mov rcx, [r8+8]
mov [rsp+18h+var_18], rdx
cmp ecx, 0FFFFFFF7h
jb short loc_7D62E
mov rax, [rsp+18h+var_18]
inc dword ptr [rax]
loc_7D62E:
lea rbx, [rsp+18h+var_C]
mov rsi, rbx
call JS_ToInt32Free
mov ecx, eax
mov eax, [rbx]
test eax, eax
jz short loc_7D64B
bsr eax, eax
xor eax, 1Fh
jmp short loc_7D650
loc_7D64B:
mov eax, 20h ; ' '
loc_7D650:
xor esi, esi
test ecx, ecx
cmovnz eax, esi
mov edx, 6
cmovz rdx, rsi
add rsp, 10h
pop rbx
retn
|
long long js_math_clz32(long long a1, long long a2, long long a3, long long a4, long long a5)
{
_DWORD *v5; // rdx
long long v6; // rcx
int v7; // ecx
unsigned int v8; // eax
long long result; // rax
unsigned int v10[3]; // [rsp+Ch] [rbp-Ch] BYREF
v5 = *(_DWORD **)a5;
v6 = *(_QWORD *)(a5 + 8);
if ( (unsigned int)v6 >= 0xFFFFFFF7 )
++**(_DWORD **)a5;
v7 = JS_ToInt32Free(a1, (int *)v10, (unsigned long long)v5, v6);
if ( v10[0] )
{
_BitScanReverse(&v8, v10[0]);
result = v8 ^ 0x1F;
}
else
{
result = 32LL;
}
if ( v7 )
return 0LL;
return result;
}
|
js_math_clz32:
PUSH RBX
SUB RSP,0x10
MOV RDX,qword ptr [R8]
MOV RCX,qword ptr [R8 + 0x8]
MOV qword ptr [RSP],RDX
CMP ECX,-0x9
JC 0x0017d62e
MOV RAX,qword ptr [RSP]
INC dword ptr [RAX]
LAB_0017d62e:
LEA RBX,[RSP + 0xc]
MOV RSI,RBX
CALL 0x00126daf
MOV ECX,EAX
MOV EAX,dword ptr [RBX]
TEST EAX,EAX
JZ 0x0017d64b
BSR EAX,EAX
XOR EAX,0x1f
JMP 0x0017d650
LAB_0017d64b:
MOV EAX,0x20
LAB_0017d650:
XOR ESI,ESI
TEST ECX,ECX
CMOVNZ EAX,ESI
MOV EDX,0x6
CMOVZ RDX,RSI
ADD RSP,0x10
POP RBX
RET
|
int1 [16] js_math_clz32(int8 param_1)
{
int iVar1;
uint uVar2;
ulong uVar3;
ulong uVar4;
int8 *in_R8;
int1 auVar5 [16];
uint local_c;
if (0xfffffff6 < (uint)in_R8[1]) {
*(int *)*in_R8 = *(int *)*in_R8 + 1;
}
iVar1 = JS_ToInt32Free(param_1,&local_c);
if (local_c == 0) {
uVar2 = 0x20;
}
else {
uVar2 = 0x1f;
if (local_c != 0) {
for (; local_c >> uVar2 == 0; uVar2 = uVar2 - 1) {
}
}
uVar2 = uVar2 ^ 0x1f;
}
uVar3 = (ulong)uVar2;
if (iVar1 != 0) {
uVar3 = 0;
}
uVar4 = 6;
if (iVar1 == 0) {
uVar4 = 0;
}
auVar5._8_8_ = uVar4;
auVar5._0_8_ = uVar3;
return auVar5;
}
|
|
64,595 |
js_math_clz32
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_math_clz32(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
uint32_t a, r;
if (JS_ToUint32(ctx, &a, argv[0]))
return JS_EXCEPTION;
if (a == 0)
r = 32;
else
r = clz32(a);
return js_int32(r);
}
|
O3
|
c
|
js_math_clz32:
movq (%r8), %rdx
movq 0x8(%r8), %rcx
cmpl $-0x9, %ecx
jb 0x8010c
incl (%rdx)
pushq %rbx
subq $0x10, %rsp
leaq 0xc(%rsp), %rbx
movq %rbx, %rsi
callq 0x27408
movl %eax, %ecx
movl (%rbx), %eax
testl %eax, %eax
leaq 0x10(%rsp), %rsp
popq %rbx
je 0x80134
bsrl %eax, %eax
xorl $0x1f, %eax
jmp 0x80139
movl $0x20, %eax
xorl %esi, %esi
testl %ecx, %ecx
cmovnel %esi, %eax
movl $0x6, %edx
cmoveq %rsi, %rdx
retq
|
js_math_clz32:
mov rdx, [r8]
mov rcx, [r8+8]
cmp ecx, 0FFFFFFF7h
jb short loc_8010C
inc dword ptr [rdx]
loc_8010C:
push rbx
sub rsp, 10h
lea rbx, [rsp+18h+var_C]
mov rsi, rbx
call JS_ToInt32Free
mov ecx, eax
mov eax, [rbx]
test eax, eax
lea rsp, [rsp+10h]
pop rbx
jz short loc_80134
bsr eax, eax
xor eax, 1Fh
jmp short loc_80139
loc_80134:
mov eax, 20h ; ' '
loc_80139:
xor esi, esi
test ecx, ecx
cmovnz eax, esi
mov edx, 6
cmovz rdx, rsi
retn
|
long long js_math_clz32(long long a1, long long a2, long long a3, long long a4, long long a5)
{
_DWORD *v5; // rdx
long long v6; // rcx
int v7; // ecx
unsigned int v8; // eax
long long result; // rax
unsigned int v10; // [rsp+0h] [rbp-Ch] BYREF
v5 = *(_DWORD **)a5;
v6 = *(_QWORD *)(a5 + 8);
if ( (unsigned int)v6 >= 0xFFFFFFF7 )
++*v5;
v7 = JS_ToInt32Free(a1, (int *)&v10, (unsigned long long)v5, v6);
if ( v10 )
{
_BitScanReverse(&v8, v10);
result = v8 ^ 0x1F;
}
else
{
result = 32LL;
}
if ( v7 )
return 0LL;
return result;
}
|
js_math_clz32:
MOV RDX,qword ptr [R8]
MOV RCX,qword ptr [R8 + 0x8]
CMP ECX,-0x9
JC 0x0018010c
INC dword ptr [RDX]
LAB_0018010c:
PUSH RBX
SUB RSP,0x10
LEA RBX,[RSP + 0xc]
MOV RSI,RBX
CALL 0x00127408
MOV ECX,EAX
MOV EAX,dword ptr [RBX]
TEST EAX,EAX
LEA RSP,[RSP + 0x10]
POP RBX
JZ 0x00180134
BSR EAX,EAX
XOR EAX,0x1f
JMP 0x00180139
LAB_00180134:
MOV EAX,0x20
LAB_00180139:
XOR ESI,ESI
TEST ECX,ECX
CMOVNZ EAX,ESI
MOV EDX,0x6
CMOVZ RDX,RSI
RET
|
int1 [16] js_math_clz32(int8 param_1)
{
int iVar1;
uint uVar2;
ulong uVar3;
int8 *in_R8;
int1 auVar5 [16];
uint local_c;
ulong uVar4;
if (0xfffffff6 < (uint)in_R8[1]) {
*(int *)*in_R8 = *(int *)*in_R8 + 1;
}
iVar1 = JS_ToInt32Free(param_1,&local_c);
if (local_c == 0) {
uVar2 = 0x20;
}
else {
uVar2 = 0x1f;
if (local_c != 0) {
for (; local_c >> uVar2 == 0; uVar2 = uVar2 - 1) {
}
}
uVar2 = uVar2 ^ 0x1f;
}
uVar3 = (ulong)uVar2;
if (iVar1 != 0) {
uVar3 = 0;
}
uVar4 = 6;
if (iVar1 == 0) {
uVar4 = 0;
}
auVar5._8_8_ = uVar4;
auVar5._0_8_ = uVar3;
return auVar5;
}
|
|
64,596 |
get_hash_link
|
eloqsql/mysys/mf_keycache.c
|
static HASH_LINK *get_hash_link(SIMPLE_KEY_CACHE_CB *keycache,
int file, my_off_t filepos)
{
reg1 HASH_LINK *hash_link, **start;
#if defined(KEYCACHE_DEBUG)
int cnt;
#endif
KEYCACHE_DBUG_PRINT("get_hash_link", ("fd: %u pos: %lu",
(uint) file,(ulong) filepos));
restart:
/*
Find the bucket in the hash table for the pair (file, filepos);
start contains the head of the bucket list,
hash_link points to the first member of the list
*/
hash_link= *(start= &keycache->hash_root[KEYCACHE_HASH(file, filepos)]);
#if defined(KEYCACHE_DEBUG)
cnt= 0;
#endif
/* Look for an element for the pair (file, filepos) in the bucket chain */
while (hash_link &&
(hash_link->diskpos != filepos || hash_link->file != file))
{
hash_link= hash_link->next;
#if defined(KEYCACHE_DEBUG)
cnt++;
if (! (cnt <= keycache->hash_links_used))
{
int i;
for (i=0, hash_link= *start ;
i < cnt ; i++, hash_link= hash_link->next)
{
KEYCACHE_DBUG_PRINT("get_hash_link", ("fd: %u pos: %lu",
(uint) hash_link->file,(ulong) hash_link->diskpos));
}
}
KEYCACHE_DBUG_ASSERT(cnt <= keycache->hash_links_used);
#endif
}
if (! hash_link)
{
/* There is no hash link in the hash table for the pair (file, filepos) */
if (keycache->free_hash_list)
{
hash_link= keycache->free_hash_list;
keycache->free_hash_list= hash_link->next;
}
else if (keycache->hash_links_used < keycache->hash_links)
{
hash_link= &keycache->hash_link_root[keycache->hash_links_used++];
}
else
{
/* Wait for a free hash link */
struct st_my_thread_var *thread= my_thread_var;
KEYCACHE_PAGE page;
KEYCACHE_DBUG_PRINT("get_hash_link", ("waiting"));
page.file= file;
page.filepos= filepos;
thread->keycache_link= (void *) &page;
link_into_queue(&keycache->waiting_for_hash_link, thread);
KEYCACHE_DBUG_PRINT("get_hash_link: wait",
("suspend thread %ld", (ulong) thread->id));
keycache_pthread_cond_wait(&thread->suspend,
&keycache->cache_lock);
thread->keycache_link= NULL;
goto restart;
}
hash_link->file= file;
hash_link->diskpos= filepos;
link_hash(start, hash_link);
}
/* Register the request for the page */
hash_link->requests++;
return hash_link;
}
|
O0
|
c
|
get_hash_link:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
jmp 0xe4eb5
jmp 0xe4eb7
movq -0x8(%rbp), %rax
movq 0x80(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movl 0x18(%rcx), %ecx
xorl %edx, %edx
divq %rcx
movslq -0xc(%rbp), %rcx
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movl 0x164(%rcx), %ecx
xorl %edx, %edx
divq %rcx
movq %rax, %rcx
movq -0x48(%rbp), %rax
movq -0x8(%rbp), %rdx
movl 0x38(%rdx), %edx
subl $0x1, %edx
movl %edx, %edx
andq %rdx, %rcx
movq %rcx, %rsi
shlq $0x3, %rsi
movq %rax, %rdx
addq %rsi, %rdx
movq %rdx, -0x28(%rbp)
movq (%rax,%rcx,8), %rax
movq %rax, -0x20(%rbp)
xorl %eax, %eax
cmpq $0x0, -0x20(%rbp)
movb %al, -0x49(%rbp)
je 0xe4f50
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rcx
movb $0x1, %al
cmpq -0x18(%rbp), %rcx
movb %al, -0x4a(%rbp)
jne 0xe4f4a
movq -0x20(%rbp), %rax
movl 0x18(%rax), %eax
cmpl -0xc(%rbp), %eax
setne %al
movb %al, -0x4a(%rbp)
movb -0x4a(%rbp), %al
movb %al, -0x49(%rbp)
movb -0x49(%rbp), %al
testb $0x1, %al
jne 0xe4f59
jmp 0xe4f66
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0xe4f1b
cmpq $0x0, -0x20(%rbp)
jne 0xe507a
movq -0x8(%rbp), %rax
cmpq $0x0, 0x90(%rax)
je 0xe4fa5
movq -0x8(%rbp), %rax
movq 0x90(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x90(%rax)
jmp 0xe5057
movq -0x8(%rbp), %rax
movl 0x44(%rax), %eax
movq -0x8(%rbp), %rcx
cmpl 0x40(%rcx), %eax
jge 0xe4fdf
movq -0x8(%rbp), %rax
movq 0x88(%rax), %rax
movq -0x8(%rbp), %rdx
movl 0x44(%rdx), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, 0x44(%rdx)
movslq %ecx, %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
jmp 0xe5055
callq 0xf6090
movq %rax, -0x30(%rbp)
jmp 0xe4fea
movl -0xc(%rbp), %eax
movl %eax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
leaq -0x40(%rbp), %rcx
movq %rcx, 0xa8(%rax)
movq -0x8(%rbp), %rdi
addq $0x118, %rdi # imm = 0x118
movq -0x30(%rbp), %rsi
callq 0xe5250
jmp 0xe501d
movq -0x30(%rbp), %rdi
addq $0x8, %rdi
movq -0x8(%rbp), %rsi
addq $0xc0, %rsi
leaq 0x6f1aa(%rip), %rdx # 0x1541e1
movl $0x71e, %ecx # imm = 0x71E
callq 0xe4e30
movq -0x30(%rbp), %rax
movq $0x0, 0xa8(%rax)
jmp 0xe4eb7
jmp 0xe5057
movl -0xc(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x18(%rax)
movq -0x18(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x28(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0xe5580
movq -0x20(%rbp), %rax
movl 0x28(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x28(%rax)
movq -0x20(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
get_hash_link_0:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
jmp short $+2
loc_E4EB5:
jmp short $+2
loc_E4EB7:
mov rax, [rbp+var_8]
mov rax, [rax+80h]
mov [rbp+var_48], rax
mov rax, [rbp+var_18]
mov rcx, [rbp+var_8]
mov ecx, [rcx+18h]
xor edx, edx
div rcx
movsxd rcx, [rbp+var_C]
add rax, rcx
mov rcx, [rbp+var_8]
mov ecx, [rcx+164h]
xor edx, edx
div rcx
mov rcx, rax
mov rax, [rbp+var_48]
mov rdx, [rbp+var_8]
mov edx, [rdx+38h]
sub edx, 1
mov edx, edx
and rcx, rdx
mov rsi, rcx
shl rsi, 3
mov rdx, rax
add rdx, rsi
mov [rbp+var_28], rdx
mov rax, [rax+rcx*8]
mov [rbp+var_20], rax
loc_E4F1B:
xor eax, eax
cmp [rbp+var_20], 0
mov [rbp+var_49], al
jz short loc_E4F50
mov rax, [rbp+var_20]
mov rcx, [rax+20h]
mov al, 1
cmp rcx, [rbp+var_18]
mov [rbp+var_4A], al
jnz short loc_E4F4A
mov rax, [rbp+var_20]
mov eax, [rax+18h]
cmp eax, [rbp+var_C]
setnz al
mov [rbp+var_4A], al
loc_E4F4A:
mov al, [rbp+var_4A]
mov [rbp+var_49], al
loc_E4F50:
mov al, [rbp+var_49]
test al, 1
jnz short loc_E4F59
jmp short loc_E4F66
loc_E4F59:
mov rax, [rbp+var_20]
mov rax, [rax]
mov [rbp+var_20], rax
jmp short loc_E4F1B
loc_E4F66:
cmp [rbp+var_20], 0
jnz loc_E507A
mov rax, [rbp+var_8]
cmp qword ptr [rax+90h], 0
jz short loc_E4FA5
mov rax, [rbp+var_8]
mov rax, [rax+90h]
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
mov rcx, [rax]
mov rax, [rbp+var_8]
mov [rax+90h], rcx
jmp loc_E5057
loc_E4FA5:
mov rax, [rbp+var_8]
mov eax, [rax+44h]
mov rcx, [rbp+var_8]
cmp eax, [rcx+40h]
jge short loc_E4FDF
mov rax, [rbp+var_8]
mov rax, [rax+88h]
mov rdx, [rbp+var_8]
mov ecx, [rdx+44h]
mov esi, ecx
add esi, 1
mov [rdx+44h], esi
movsxd rcx, ecx
imul rcx, 30h ; '0'
add rax, rcx
mov [rbp+var_20], rax
jmp short loc_E5055
loc_E4FDF:
call _my_thread_var
mov [rbp+var_30], rax
jmp short $+2
loc_E4FEA:
mov eax, [rbp+var_C]
mov [rbp+var_40], eax
mov rax, [rbp+var_18]
mov [rbp+var_38], rax
mov rax, [rbp+var_30]
lea rcx, [rbp+var_40]
mov [rax+0A8h], rcx
mov rdi, [rbp+var_8]
add rdi, 118h
mov rsi, [rbp+var_30]
call link_into_queue
jmp short $+2
loc_E501D:
mov rdi, [rbp+var_30]
add rdi, 8
mov rsi, [rbp+var_8]
add rsi, 0C0h
lea rdx, aWorkspaceLlm4b_36; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 71Eh
call inline_mysql_cond_wait_4
mov rax, [rbp+var_30]
mov qword ptr [rax+0A8h], 0
jmp loc_E4EB7
loc_E5055:
jmp short $+2
loc_E5057:
mov ecx, [rbp+var_C]
mov rax, [rbp+var_20]
mov [rax+18h], ecx
mov rcx, [rbp+var_18]
mov rax, [rbp+var_20]
mov [rax+20h], rcx
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_20]
call link_hash_0
loc_E507A:
mov rax, [rbp+var_20]
mov ecx, [rax+28h]
add ecx, 1
mov [rax+28h], ecx
mov rax, [rbp+var_20]
add rsp, 50h
pop rbp
retn
|
long long * get_hash_link_0(long long a1, int a2, unsigned long long a3)
{
const char *v3; // rsi
long long v4; // rax
int v5; // ecx
bool v7; // [rsp+6h] [rbp-4Ah]
bool v8; // [rsp+7h] [rbp-49h]
int v9; // [rsp+10h] [rbp-40h] BYREF
unsigned long long v10; // [rsp+18h] [rbp-38h]
long long v11; // [rsp+20h] [rbp-30h]
const char *v12; // [rsp+28h] [rbp-28h]
long long *i; // [rsp+30h] [rbp-20h]
unsigned long long v14; // [rsp+38h] [rbp-18h]
int v15; // [rsp+44h] [rbp-Ch]
long long v16; // [rsp+48h] [rbp-8h]
v16 = a1;
v15 = a2;
v14 = a3;
while ( 1 )
{
v3 = (const char *)(8
* ((unsigned int)(*(_DWORD *)(v16 + 56) - 1) & ((v15 + v14 / *(unsigned int *)(v16 + 24))
/ *(unsigned int *)(v16 + 356))));
v12 = &v3[*(_QWORD *)(v16 + 128)];
for ( i = *(long long **)v12; ; i = (long long *)*i )
{
v8 = 0;
if ( i )
{
v7 = 1;
if ( i[4] == v14 )
v7 = *((_DWORD *)i + 6) != v15;
v8 = v7;
}
if ( !v8 )
break;
}
if ( i )
break;
if ( *(_QWORD *)(v16 + 144) )
{
i = *(long long **)(v16 + 144);
*(_QWORD *)(v16 + 144) = *i;
LABEL_15:
*((_DWORD *)i + 6) = v15;
i[4] = v14;
link_hash_0(v12, i);
break;
}
if ( *(_DWORD *)(v16 + 68) < *(_DWORD *)(v16 + 64) )
{
v4 = *(_QWORD *)(v16 + 136);
v5 = *(_DWORD *)(v16 + 68);
*(_DWORD *)(v16 + 68) = v5 + 1;
i = (long long *)(48LL * v5 + v4);
goto LABEL_15;
}
v11 = my_thread_var(a1, v3);
v9 = v15;
v10 = v14;
*(_QWORD *)(v11 + 168) = &v9;
link_into_queue(v16 + 280, v11);
a1 = v11 + 8;
inline_mysql_cond_wait_4(
v11 + 8,
v16 + 192,
(long long)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c",
0x71Eu);
*(_QWORD *)(v11 + 168) = 0LL;
}
++*((_DWORD *)i + 10);
return i;
}
|
get_hash_link:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV qword ptr [RBP + -0x18],RDX
JMP 0x001e4eb5
LAB_001e4eb5:
JMP 0x001e4eb7
LAB_001e4eb7:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x80]
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RCX + 0x18]
XOR EDX,EDX
DIV RCX
MOVSXD RCX,dword ptr [RBP + -0xc]
ADD RAX,RCX
MOV RCX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RCX + 0x164]
XOR EDX,EDX
DIV RCX
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x8]
MOV EDX,dword ptr [RDX + 0x38]
SUB EDX,0x1
MOV EDX,EDX
AND RCX,RDX
MOV RSI,RCX
SHL RSI,0x3
MOV RDX,RAX
ADD RDX,RSI
MOV qword ptr [RBP + -0x28],RDX
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x20],RAX
LAB_001e4f1b:
XOR EAX,EAX
CMP qword ptr [RBP + -0x20],0x0
MOV byte ptr [RBP + -0x49],AL
JZ 0x001e4f50
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RAX + 0x20]
MOV AL,0x1
CMP RCX,qword ptr [RBP + -0x18]
MOV byte ptr [RBP + -0x4a],AL
JNZ 0x001e4f4a
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RAX + 0x18]
CMP EAX,dword ptr [RBP + -0xc]
SETNZ AL
MOV byte ptr [RBP + -0x4a],AL
LAB_001e4f4a:
MOV AL,byte ptr [RBP + -0x4a]
MOV byte ptr [RBP + -0x49],AL
LAB_001e4f50:
MOV AL,byte ptr [RBP + -0x49]
TEST AL,0x1
JNZ 0x001e4f59
JMP 0x001e4f66
LAB_001e4f59:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
JMP 0x001e4f1b
LAB_001e4f66:
CMP qword ptr [RBP + -0x20],0x0
JNZ 0x001e507a
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x90],0x0
JZ 0x001e4fa5
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x90]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x90],RCX
JMP 0x001e5057
LAB_001e4fa5:
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x44]
MOV RCX,qword ptr [RBP + -0x8]
CMP EAX,dword ptr [RCX + 0x40]
JGE 0x001e4fdf
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x88]
MOV RDX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RDX + 0x44]
MOV ESI,ECX
ADD ESI,0x1
MOV dword ptr [RDX + 0x44],ESI
MOVSXD RCX,ECX
IMUL RCX,RCX,0x30
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
JMP 0x001e5055
LAB_001e4fdf:
CALL 0x001f6090
MOV qword ptr [RBP + -0x30],RAX
JMP 0x001e4fea
LAB_001e4fea:
MOV EAX,dword ptr [RBP + -0xc]
MOV dword ptr [RBP + -0x40],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x30]
LEA RCX,[RBP + -0x40]
MOV qword ptr [RAX + 0xa8],RCX
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x118
MOV RSI,qword ptr [RBP + -0x30]
CALL 0x001e5250
JMP 0x001e501d
LAB_001e501d:
MOV RDI,qword ptr [RBP + -0x30]
ADD RDI,0x8
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0xc0
LEA RDX,[0x2541e1]
MOV ECX,0x71e
CALL 0x001e4e30
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX + 0xa8],0x0
JMP 0x001e4eb7
LAB_001e5055:
JMP 0x001e5057
LAB_001e5057:
MOV ECX,dword ptr [RBP + -0xc]
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x18],ECX
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x20],RCX
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x001e5580
LAB_001e507a:
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RAX + 0x28]
ADD ECX,0x1
MOV dword ptr [RAX + 0x28],ECX
MOV RAX,qword ptr [RBP + -0x20]
ADD RSP,0x50
POP RBP
RET
|
int8 * get_hash_link(long param_1,int param_2,ulong param_3)
{
int iVar1;
ulong uVar2;
bool bVar3;
int local_48 [2];
ulong local_40;
long local_38;
long local_30;
int8 *local_28;
ulong local_20;
int local_14;
long local_10;
local_20 = param_3;
local_14 = param_2;
local_10 = param_1;
while( true ) {
uVar2 = (local_20 / *(uint *)(local_10 + 0x18) + (long)local_14) /
(ulong)*(uint *)(local_10 + 0x164) & (ulong)(*(int *)(local_10 + 0x38) - 1);
local_30 = *(long *)(local_10 + 0x80) + uVar2 * 8;
local_28 = *(int8 **)(*(long *)(local_10 + 0x80) + uVar2 * 8);
while( true ) {
bVar3 = false;
if ((local_28 != (int8 *)0x0) && (bVar3 = true, local_28[4] == local_20)) {
bVar3 = *(int *)(local_28 + 3) != local_14;
}
if (!bVar3) break;
local_28 = (int8 *)*local_28;
}
if (local_28 != (int8 *)0x0) goto LAB_001e507a;
if (*(long *)(local_10 + 0x90) != 0) break;
if (*(int *)(local_10 + 0x44) < *(int *)(local_10 + 0x40)) {
iVar1 = *(int *)(local_10 + 0x44);
*(int *)(local_10 + 0x44) = iVar1 + 1;
local_28 = (int8 *)(*(long *)(local_10 + 0x88) + (long)iVar1 * 0x30);
LAB_001e5057:
*(int *)(local_28 + 3) = local_14;
local_28[4] = local_20;
link_hash(local_30,local_28);
LAB_001e507a:
*(int *)(local_28 + 5) = *(int *)(local_28 + 5) + 1;
return local_28;
}
local_38 = _my_thread_var();
local_48[0] = local_14;
local_40 = local_20;
*(int **)(local_38 + 0xa8) = local_48;
link_into_queue(local_10 + 0x118,local_38);
inline_mysql_cond_wait
(local_38 + 8,local_10 + 0xc0,
"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c",0x71e);
*(int8 *)(local_38 + 0xa8) = 0;
}
local_28 = *(int8 **)(local_10 + 0x90);
*(int8 *)(local_10 + 0x90) = *local_28;
goto LAB_001e5057;
}
|
|
64,597 |
test_bug38486
|
eloqsql/tests/mysql_client_test.c
|
static void test_bug38486(void)
{
MYSQL_STMT *stmt;
const char *stmt_text;
unsigned long type= CURSOR_TYPE_READ_ONLY;
DBUG_ENTER("test_bug38486");
myheader("test_bug38486");
stmt= mysql_stmt_init(mysql);
mysql_stmt_attr_set(stmt, STMT_ATTR_CURSOR_TYPE, (void*)&type);
stmt_text= "CREATE TABLE t1 (a INT)";
mysql_stmt_prepare(stmt, stmt_text, strlen(stmt_text));
mysql_stmt_execute(stmt);
mysql_stmt_close(stmt);
stmt= mysql_stmt_init(mysql);
mysql_stmt_attr_set(stmt, STMT_ATTR_CURSOR_TYPE, (void*)&type);
stmt_text= "INSERT INTO t1 VALUES (1)";
mysql_stmt_prepare(stmt, stmt_text, strlen(stmt_text));
mysql_stmt_execute(stmt);
mysql_stmt_close(stmt);
DBUG_VOID_RETURN;
}
|
O0
|
c
|
test_bug38486:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq $0x1, -0x18(%rbp)
jmp 0x3efc2
movsbl 0x42b508(%rip), %eax # 0x46a4d1
cmpl $0x2, %eax
jge 0x3f04a
movq 0x270003(%rip), %rax # 0x2aefd8
movq (%rax), %rdi
leaq 0xef345(%rip), %rsi # 0x12e324
movb $0x0, %al
callq 0x3a1c0
movq 0x26ffeb(%rip), %rax # 0x2aefd8
movq (%rax), %rdi
movl 0x42b726(%rip), %edx # 0x46a71c
movl %edx, %eax
addl $0x1, %eax
movl %eax, 0x42b71b(%rip) # 0x46a71c
movl 0x42b711(%rip), %ecx # 0x46a718
movl 0x42b4ee(%rip), %r8d # 0x46a4fc
leaq 0xf0617(%rip), %rsi # 0x12f62c
leaq 0xf0314(%rip), %r9 # 0x12f330
movb $0x0, %al
callq 0x3a1c0
movq 0x26ffae(%rip), %rax # 0x2aefd8
movq (%rax), %rdi
leaq 0xef328(%rip), %rsi # 0x12e35c
movb $0x0, %al
callq 0x3a1c0
movq 0x26ff96(%rip), %rax # 0x2aefd8
movq (%rax), %rdi
callq 0x3a4a0
movq 0x42b487(%rip), %rdi # 0x46a4d8
callq 0xb2790
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movl $0x1, %esi
leaq -0x18(%rbp), %rdx
callq 0xb0970
leaq 0x102efa(%rip), %rax # 0x141f6d
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3a400
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq %rax, %rdx
callq 0x3b810
movq -0x8(%rbp), %rdi
callq 0x3b8a0
movq -0x8(%rbp), %rdi
callq 0x3b9f0
movq 0x42b41f(%rip), %rdi # 0x46a4d8
callq 0xb2790
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movl $0x1, %esi
leaq -0x18(%rbp), %rdx
callq 0xb0970
leaq 0xfb1a7(%rip), %rax # 0x13a282
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3a400
movq -0x28(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq %rax, %rdx
callq 0x3b810
movq -0x8(%rbp), %rdi
callq 0x3b8a0
movq -0x8(%rbp), %rdi
callq 0x3b9f0
jmp 0x3f11c
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
test_bug38486:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_18], 1
jmp short $+2
loc_3EFC2:
movsx eax, cs:opt_silent
cmp eax, 2
jge short loc_3F04A
mov rax, cs:stdout_ptr
mov rdi, [rax]
lea rsi, asc_12E324; "\n\n###################################"...
mov al, 0
call _fprintf
mov rax, cs:stdout_ptr
mov rdi, [rax]
mov edx, cs:test_count
mov eax, edx
add eax, 1
mov cs:test_count, eax
mov ecx, cs:iter_count
mov r8d, cs:opt_count
lea rsi, aUOfUUS; "%u of (%u/%u): %s"
lea r9, aTestBug38486; "test_bug38486"
mov al, 0
call _fprintf
mov rax, cs:stdout_ptr
mov rdi, [rax]
lea rsi, asc_12E35C; " \n###################################"...
mov al, 0
call _fprintf
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
loc_3F04A:
mov rdi, cs:mysql
call mysql_stmt_init
mov [rbp+var_8], rax
mov rdi, [rbp+var_8]
mov esi, 1
lea rdx, [rbp+var_18]
call mysql_stmt_attr_set
lea rax, aCreateTableT1A_1; "CREATE TABLE t1 (a INT)"
mov [rbp+var_10], rax
mov rax, [rbp+var_8]
mov [rbp+var_38], rax
mov rax, [rbp+var_10]
mov [rbp+var_30], rax
mov rdi, [rbp+var_10]
call _strlen
mov rdi, [rbp+var_38]
mov rsi, [rbp+var_30]
mov rdx, rax
call wrap_mysql_stmt_prepare
mov rdi, [rbp+var_8]
call wrap_mysql_stmt_execute
mov rdi, [rbp+var_8]
call wrap_mysql_stmt_close
mov rdi, cs:mysql
call mysql_stmt_init
mov [rbp+var_8], rax
mov rdi, [rbp+var_8]
mov esi, 1
lea rdx, [rbp+var_18]
call mysql_stmt_attr_set
lea rax, aInsertIntoT1Va_0; "INSERT INTO t1 VALUES (1)"
mov [rbp+var_10], rax
mov rax, [rbp+var_8]
mov [rbp+var_28], rax
mov rax, [rbp+var_10]
mov [rbp+var_20], rax
mov rdi, [rbp+var_10]
call _strlen
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_20]
mov rdx, rax
call wrap_mysql_stmt_prepare
mov rdi, [rbp+var_8]
call wrap_mysql_stmt_execute
mov rdi, [rbp+var_8]
call wrap_mysql_stmt_close
jmp short $+2
loc_3F11C:
add rsp, 40h
pop rbp
retn
|
char test_bug38486()
{
int v0; // edx
long long v1; // rax
long long v2; // rax
long long v4; // [rsp+8h] [rbp-38h]
long long v5; // [rsp+18h] [rbp-28h]
long long v6; // [rsp+28h] [rbp-18h] BYREF
const char *v7; // [rsp+30h] [rbp-10h]
long long v8; // [rsp+38h] [rbp-8h]
v6 = 1LL;
if ( opt_silent < 2 )
{
fprintf(stdout, "\n\n#####################################\n");
v0 = test_count++;
fprintf(stdout, "%u of (%u/%u): %s", v0, iter_count, opt_count, "test_bug38486");
fprintf(stdout, " \n#####################################\n");
fflush(stdout);
}
v8 = mysql_stmt_init(mysql);
mysql_stmt_attr_set(v8, 1LL, &v6);
v7 = "CREATE TABLE t1 (a INT)";
v4 = v8;
v1 = strlen("CREATE TABLE t1 (a INT)");
wrap_mysql_stmt_prepare(v4, (long long)"CREATE TABLE t1 (a INT)", v1);
wrap_mysql_stmt_execute(v8);
wrap_mysql_stmt_close(v8);
v8 = mysql_stmt_init(mysql);
mysql_stmt_attr_set(v8, 1LL, &v6);
v7 = "INSERT INTO t1 VALUES (1)";
v5 = v8;
v2 = strlen("INSERT INTO t1 VALUES (1)");
wrap_mysql_stmt_prepare(v5, (long long)"INSERT INTO t1 VALUES (1)", v2);
wrap_mysql_stmt_execute(v8);
return wrap_mysql_stmt_close(v8);
}
|
test_bug38486:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x18],0x1
JMP 0x0013efc2
LAB_0013efc2:
MOVSX EAX,byte ptr [0x0056a4d1]
CMP EAX,0x2
JGE 0x0013f04a
MOV RAX,qword ptr [0x003aefd8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x22e324]
MOV AL,0x0
CALL 0x0013a1c0
MOV RAX,qword ptr [0x003aefd8]
MOV RDI,qword ptr [RAX]
MOV EDX,dword ptr [0x0056a71c]
MOV EAX,EDX
ADD EAX,0x1
MOV dword ptr [0x0056a71c],EAX
MOV ECX,dword ptr [0x0056a718]
MOV R8D,dword ptr [0x0056a4fc]
LEA RSI,[0x22f62c]
LEA R9,[0x22f330]
MOV AL,0x0
CALL 0x0013a1c0
MOV RAX,qword ptr [0x003aefd8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x22e35c]
MOV AL,0x0
CALL 0x0013a1c0
MOV RAX,qword ptr [0x003aefd8]
MOV RDI,qword ptr [RAX]
CALL 0x0013a4a0
LAB_0013f04a:
MOV RDI,qword ptr [0x0056a4d8]
CALL 0x001b2790
MOV qword ptr [RBP + -0x8],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,0x1
LEA RDX,[RBP + -0x18]
CALL 0x001b0970
LEA RAX,[0x241f6d]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0013a400
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,RAX
CALL 0x0013b810
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0013b8a0
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0013b9f0
MOV RDI,qword ptr [0x0056a4d8]
CALL 0x001b2790
MOV qword ptr [RBP + -0x8],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,0x1
LEA RDX,[RBP + -0x18]
CALL 0x001b0970
LEA RAX,[0x23a282]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0013a400
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,RAX
CALL 0x0013b810
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0013b8a0
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0013b9f0
JMP 0x0013f11c
LAB_0013f11c:
ADD RSP,0x40
POP RBP
RET
|
void test_bug38486(void)
{
int8 uVar1;
size_t sVar2;
ulong uVar3;
int8 local_20;
char *local_18;
int8 local_10;
local_20 = 1;
if (opt_silent < '\x02') {
fprintf(*(FILE **)PTR_stdout_003aefd8,"\n\n#####################################\n");
uVar3 = (ulong)test_count;
test_count = test_count + 1;
fprintf(*(FILE **)PTR_stdout_003aefd8,"%u of (%u/%u): %s",uVar3,(ulong)iter_count,
(ulong)opt_count,"test_bug38486");
fprintf(*(FILE **)PTR_stdout_003aefd8," \n#####################################\n");
fflush(*(FILE **)PTR_stdout_003aefd8);
}
local_10 = mysql_stmt_init(mysql);
mysql_stmt_attr_set(local_10,1,&local_20);
uVar1 = local_10;
local_18 = "CREATE TABLE t1 (a INT)";
sVar2 = strlen("CREATE TABLE t1 (a INT)");
wrap_mysql_stmt_prepare(uVar1,"CREATE TABLE t1 (a INT)",sVar2);
wrap_mysql_stmt_execute(local_10);
wrap_mysql_stmt_close(local_10);
local_10 = mysql_stmt_init(mysql);
mysql_stmt_attr_set(local_10,1,&local_20);
uVar1 = local_10;
local_18 = "INSERT INTO t1 VALUES (1)";
sVar2 = strlen("INSERT INTO t1 VALUES (1)");
wrap_mysql_stmt_prepare(uVar1,"INSERT INTO t1 VALUES (1)",sVar2);
wrap_mysql_stmt_execute(local_10);
wrap_mysql_stmt_close(local_10);
return;
}
|
|
64,598 |
linenoiseEditStart
|
monkey531[P]llama/examples/run/linenoise.cpp/linenoise.cpp
|
int linenoiseEditStart(struct linenoiseState *l, int stdin_fd, int stdout_fd, char *buf, size_t buflen, const char *prompt) {
/* Populate the linenoise state that we pass to functions implementing
* specific editing functionalities. */
l->in_completion = 0;
l->ifd = stdin_fd != -1 ? stdin_fd : STDIN_FILENO;
l->ofd = stdout_fd != -1 ? stdout_fd : STDOUT_FILENO;
l->buf = buf;
l->buflen = buflen;
l->prompt = prompt;
l->plen = strlen(prompt);
l->oldpos = l->pos = 0;
l->len = 0;
/* Enter raw mode. */
if (enableRawMode(l->ifd) == -1) return -1;
l->cols = getColumns(stdin_fd, stdout_fd);
l->oldrows = 0;
l->history_index = 0;
/* Buffer starts empty. */
l->buf[0] = '\0';
l->buflen--; /* Make sure there is always space for the nulterm */
/* If stdin is not a tty, stop here with the initialization. We
* will actually just read a line from standard input in blocking
* mode later, in linenoiseEditFeed(). */
if (!isatty(l->ifd)) return 0;
/* The latest history entry is always our current buffer, that
* initially is just an empty string. */
linenoiseHistoryAdd("");
if (write(l->ofd,prompt,l->plen) == -1) return -1;
return 0;
}
|
O2
|
cpp
|
linenoiseEditStart:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, %rbx
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %r14
andl $0x0, (%rdi)
xorl %r12d, %r12d
cmpl $-0x1, %esi
cmovnel %esi, %r12d
movl %r12d, 0x10(%rdi)
cmpl $-0x1, %edx
pushq $0x1
popq %rax
cmovnel %edx, %eax
movl %eax, 0x14(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
movq %r9, %rdi
callq 0x21370
movq %rax, 0x30(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%r14)
andq $0x0, 0x48(%r14)
movl %r12d, %edi
callq 0x4745e
cmpl $-0x1, %eax
je 0x473ef
pushq $0x1
popq %rdi
leaq 0x8(%rsp), %r12
movl $0x5413, %esi # imm = 0x5413
movq %r12, %rdx
xorl %eax, %eax
callq 0x21ba0
cmpl $-0x1, %eax
sete %cl
movzwl 0x2(%r12), %eax
testw %ax, %ax
sete %dl
orb %cl, %dl
cmpb $0x1, %dl
jne 0x473f4
movl %r15d, %edi
movl %ebp, %esi
callq 0x4840f
pushq $0x50
popq %r13
cmpl $-0x1, %eax
je 0x473f8
movl %eax, %r12d
leaq 0x502b3(%rip), %rsi # 0x97646
pushq $0x6
popq %rdx
movl %ebp, %edi
callq 0x21270
cmpq $0x6, %rax
jne 0x473f8
movl %r15d, %edi
movl %ebp, %esi
callq 0x4840f
cmpl $-0x1, %eax
je 0x473f8
movl %eax, %r15d
movl %eax, %ecx
subl %r12d, %ecx
jle 0x473ea
leaq 0x5028a(%rip), %rdx # 0x9764d
leaq 0x10(%rsp), %r12
pushq $0x20
popq %rsi
movq %r12, %rdi
xorl %eax, %eax
callq 0x21d00
movq %r12, %rdi
callq 0x21370
movl %ebp, %edi
movq %r12, %rsi
movq %rax, %rdx
callq 0x21270
movl %r15d, %r13d
jmp 0x473f8
pushq $-0x1
popq %rax
jmp 0x4744f
movzwl %ax, %r13d
movslq %r13d, %rax
movq %rax, 0x50(%r14)
andq $0x0, 0x58(%r14)
andl $0x0, 0x60(%r14)
movq 0x18(%r14), %rax
movb $0x0, (%rax)
decq 0x20(%r14)
movl 0x10(%r14), %edi
callq 0x21e10
testl %eax, %eax
je 0x4744d
leaq 0x4c48a(%rip), %rdi # 0x938b2
callq 0x47523
movl 0x14(%r14), %edi
movq 0x30(%r14), %rdx
movq %rbx, %rsi
callq 0x21270
movq %rax, %rcx
xorl %eax, %eax
cmpq $-0x1, %rcx
sete %al
negl %eax
jmp 0x4744f
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
linenoiseEditStart:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov rbx, r9
mov ebp, edx
mov r15d, esi
mov r14, rdi
and dword ptr [rdi], 0
xor r12d, r12d
cmp esi, 0FFFFFFFFh
cmovnz r12d, esi
mov [rdi+10h], r12d
cmp edx, 0FFFFFFFFh
push 1
pop rax
cmovnz eax, edx
mov [rdi+14h], eax
mov [rdi+18h], rcx
mov [rdi+20h], r8
mov [rdi+28h], r9
mov rdi, r9
call _strlen
mov [r14+30h], rax
xorps xmm0, xmm0
movups xmmword ptr [r14+38h], xmm0
and qword ptr [r14+48h], 0
mov edi, r12d; int
call _ZL13enableRawModei; enableRawMode(int)
cmp eax, 0FFFFFFFFh
jz loc_473EF
push 1
pop rdi
lea r12, [rsp+68h+var_60]
mov esi, 5413h
mov rdx, r12
xor eax, eax
call _ioctl
cmp eax, 0FFFFFFFFh
setz cl
movzx eax, word ptr [r12+2]
test ax, ax
setz dl
or dl, cl
cmp dl, 1
jnz short loc_473F4
mov edi, r15d; int
mov esi, ebp; int
call _ZL17getCursorPositionii; getCursorPosition(int,int)
push 50h ; 'P'
pop r13
cmp eax, 0FFFFFFFFh
jz short loc_473F8
mov r12d, eax
lea rsi, a999c; "\x1B[999C"
push 6
pop rdx
mov edi, ebp
call _write
cmp rax, 6
jnz short loc_473F8
mov edi, r15d; int
mov esi, ebp; int
call _ZL17getCursorPositionii; getCursorPosition(int,int)
cmp eax, 0FFFFFFFFh
jz short loc_473F8
mov r15d, eax
mov ecx, eax
sub ecx, r12d
jle short loc_473EA
lea rdx, aDd; "\x1B[%dD"
lea r12, [rsp+68h+var_58]
push 20h ; ' '
pop rsi
mov rdi, r12
xor eax, eax
call _snprintf
mov rdi, r12
call _strlen
mov edi, ebp
mov rsi, r12
mov rdx, rax
call _write
loc_473EA:
mov r13d, r15d
jmp short loc_473F8
loc_473EF:
push 0FFFFFFFFFFFFFFFFh
pop rax
jmp short loc_4744F
loc_473F4:
movzx r13d, ax
loc_473F8:
movsxd rax, r13d
mov [r14+50h], rax
and qword ptr [r14+58h], 0
and dword ptr [r14+60h], 0
mov rax, [r14+18h]
mov byte ptr [rax], 0
dec qword ptr [r14+20h]
mov edi, [r14+10h]
call _isatty
test eax, eax
jz short loc_4744D
lea rdi, byte_938B2
call linenoiseHistoryAdd
mov edi, [r14+14h]
mov rdx, [r14+30h]
mov rsi, rbx
call _write
mov rcx, rax
xor eax, eax
cmp rcx, 0FFFFFFFFFFFFFFFFh
setz al
neg eax
jmp short loc_4744F
loc_4744D:
xor eax, eax
loc_4744F:
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long linenoiseEditStart(long long a1, int a2, unsigned int a3, long long a4, long long a5, long long a6)
{
int v8; // r12d
int v9; // eax
int v10; // eax
int CursorPosition; // eax
int v12; // r13d
int v13; // r12d
int v14; // eax
int v15; // r15d
long long v16; // rax
char v18[2]; // [rsp+8h] [rbp-60h] BYREF
unsigned __int16 v19; // [rsp+Ah] [rbp-5Eh]
_BYTE v20[88]; // [rsp+10h] [rbp-58h] BYREF
*(_DWORD *)a1 = 0;
v8 = 0;
if ( a2 != -1 )
v8 = a2;
*(_DWORD *)(a1 + 16) = v8;
v9 = 1;
if ( a3 != -1 )
v9 = a3;
*(_DWORD *)(a1 + 20) = v9;
*(_QWORD *)(a1 + 24) = a4;
*(_QWORD *)(a1 + 32) = a5;
*(_QWORD *)(a1 + 40) = a6;
*(_QWORD *)(a1 + 48) = strlen(a6);
*(_OWORD *)(a1 + 56) = 0LL;
*(_QWORD *)(a1 + 72) = 0LL;
if ( (unsigned int)enableRawMode(v8) == -1 )
return -1LL;
ioctl(1LL, 21523LL, v18);
if ( v10 == -1 || v19 == 0 )
{
CursorPosition = getCursorPosition(a2, a3);
v12 = 80;
if ( CursorPosition != -1 )
{
v13 = CursorPosition;
if ( write(a3, "\x1B[999C", 6LL) == 6 )
{
v14 = getCursorPosition(a2, a3);
if ( v14 != -1 )
{
v15 = v14;
if ( v14 > v13 )
{
snprintf(v20, 32LL, "\x1B[%dD", v14 - v13);
v16 = strlen(v20);
write(a3, v20, v16);
}
v12 = v15;
}
}
}
}
else
{
v12 = v19;
}
*(_QWORD *)(a1 + 80) = v12;
*(_QWORD *)(a1 + 88) = 0LL;
*(_DWORD *)(a1 + 96) = 0;
**(_BYTE **)(a1 + 24) = 0;
--*(_QWORD *)(a1 + 32);
if ( !(unsigned int)isatty(*(unsigned int *)(a1 + 16)) )
return 0LL;
linenoiseHistoryAdd(&byte_938B2);
return (unsigned int)-(write(*(unsigned int *)(a1 + 20), a6, *(_QWORD *)(a1 + 48)) == -1);
}
|
linenoiseEditStart:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV RBX,R9
MOV EBP,EDX
MOV R15D,ESI
MOV R14,RDI
AND dword ptr [RDI],0x0
XOR R12D,R12D
CMP ESI,-0x1
CMOVNZ R12D,ESI
MOV dword ptr [RDI + 0x10],R12D
CMP EDX,-0x1
PUSH 0x1
POP RAX
CMOVNZ EAX,EDX
MOV dword ptr [RDI + 0x14],EAX
MOV qword ptr [RDI + 0x18],RCX
MOV qword ptr [RDI + 0x20],R8
MOV qword ptr [RDI + 0x28],R9
MOV RDI,R9
CALL 0x00121370
MOV qword ptr [R14 + 0x30],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R14 + 0x38],XMM0
AND qword ptr [R14 + 0x48],0x0
MOV EDI,R12D
CALL 0x0014745e
CMP EAX,-0x1
JZ 0x001473ef
PUSH 0x1
POP RDI
LEA R12,[RSP + 0x8]
MOV ESI,0x5413
MOV RDX,R12
XOR EAX,EAX
CALL 0x00121ba0
CMP EAX,-0x1
SETZ CL
MOVZX EAX,word ptr [R12 + 0x2]
TEST AX,AX
SETZ DL
OR DL,CL
CMP DL,0x1
JNZ 0x001473f4
MOV EDI,R15D
MOV ESI,EBP
CALL 0x0014840f
PUSH 0x50
POP R13
CMP EAX,-0x1
JZ 0x001473f8
MOV R12D,EAX
LEA RSI,[0x197646]
PUSH 0x6
POP RDX
MOV EDI,EBP
CALL 0x00121270
CMP RAX,0x6
JNZ 0x001473f8
MOV EDI,R15D
MOV ESI,EBP
CALL 0x0014840f
CMP EAX,-0x1
JZ 0x001473f8
MOV R15D,EAX
MOV ECX,EAX
SUB ECX,R12D
JLE 0x001473ea
LEA RDX,[0x19764d]
LEA R12,[RSP + 0x10]
PUSH 0x20
POP RSI
MOV RDI,R12
XOR EAX,EAX
CALL 0x00121d00
MOV RDI,R12
CALL 0x00121370
MOV EDI,EBP
MOV RSI,R12
MOV RDX,RAX
CALL 0x00121270
LAB_001473ea:
MOV R13D,R15D
JMP 0x001473f8
LAB_001473ef:
PUSH -0x1
POP RAX
JMP 0x0014744f
LAB_001473f4:
MOVZX R13D,AX
LAB_001473f8:
MOVSXD RAX,R13D
MOV qword ptr [R14 + 0x50],RAX
AND qword ptr [R14 + 0x58],0x0
AND dword ptr [R14 + 0x60],0x0
MOV RAX,qword ptr [R14 + 0x18]
MOV byte ptr [RAX],0x0
DEC qword ptr [R14 + 0x20]
MOV EDI,dword ptr [R14 + 0x10]
CALL 0x00121e10
TEST EAX,EAX
JZ 0x0014744d
LEA RDI,[0x1938b2]
CALL 0x00147523
MOV EDI,dword ptr [R14 + 0x14]
MOV RDX,qword ptr [R14 + 0x30]
MOV RSI,RBX
CALL 0x00121270
MOV RCX,RAX
XOR EAX,EAX
CMP RCX,-0x1
SETZ AL
NEG EAX
JMP 0x0014744f
LAB_0014744d:
XOR EAX,EAX
LAB_0014744f:
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong linenoiseEditStart(int4 *param_1,int param_2,int param_3,int8 param_4,
int8 param_5,char *param_6)
{
int iVar1;
int iVar2;
uint uVar3;
size_t sVar4;
ssize_t sVar5;
ulong uVar6;
uint uVar7;
int1 local_60 [2];
ushort local_5e;
char local_58 [40];
*param_1 = 0;
iVar2 = 0;
if (param_2 != -1) {
iVar2 = param_2;
}
param_1[4] = iVar2;
iVar1 = 1;
if (param_3 != -1) {
iVar1 = param_3;
}
param_1[5] = iVar1;
*(int8 *)(param_1 + 6) = param_4;
*(int8 *)(param_1 + 8) = param_5;
*(char **)(param_1 + 10) = param_6;
sVar4 = strlen(param_6);
*(size_t *)(param_1 + 0xc) = sVar4;
*(int8 *)(param_1 + 0xe) = 0;
*(int8 *)(param_1 + 0x10) = 0;
*(int8 *)(param_1 + 0x12) = 0;
iVar2 = enableRawMode(iVar2);
if (iVar2 == -1) {
uVar6 = 0xffffffffffffffff;
}
else {
iVar2 = ioctl(1,0x5413,local_60);
if (local_5e == 0 || iVar2 == -1) {
iVar2 = getCursorPosition(param_2,param_3);
uVar7 = 0x50;
if ((((iVar2 != -1) && (sVar5 = write(param_3,&DAT_00197646,6), sVar5 == 6)) &&
(uVar3 = getCursorPosition(param_2,param_3), uVar3 != 0xffffffff)) &&
(uVar7 = uVar3, iVar2 < (int)uVar3)) {
snprintf(local_58,0x20,"\x1b[%dD");
sVar4 = strlen(local_58);
write(param_3,local_58,sVar4);
}
}
else {
uVar7 = (uint)local_5e;
}
*(long *)(param_1 + 0x14) = (long)(int)uVar7;
*(int8 *)(param_1 + 0x16) = 0;
param_1[0x18] = 0;
**(int1 **)(param_1 + 6) = 0;
*(long *)(param_1 + 8) = *(long *)(param_1 + 8) + -1;
iVar2 = isatty(param_1[4]);
if (iVar2 == 0) {
uVar6 = 0;
}
else {
linenoiseHistoryAdd(&DAT_001938b2);
sVar5 = write(param_1[5],param_6,*(size_t *)(param_1 + 0xc));
uVar6 = (ulong)-(uint)(sVar5 == -1);
}
}
return uVar6;
}
|
|
64,599 |
my_caseup_utf32
|
eloqsql/strings/ctype-ucs2.c
|
static size_t
my_caseup_utf32(CHARSET_INFO *cs, const char *src, size_t srclen,
char *dst, size_t dstlen)
{
my_wc_t wc;
int res;
const char *srcend= src + srclen;
char *dstend= dst + dstlen;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
DBUG_ASSERT(srclen <= dstlen);
while ((src < srcend) &&
(res= my_utf32_uni(cs, &wc, (uchar *)src, (uchar*) srcend)) > 0)
{
my_toupper_utf32(uni_plane, &wc);
if (res != my_uni_utf32(cs, wc, (uchar*) dst, (uchar*) dstend))
break;
src+= res;
dst+= res;
}
return srclen;
}
|
O3
|
c
|
my_caseup_utf32:
movq %rdx, %rax
cmpq $0x4, %rdx
jl 0xc589d
pushq %rbp
movq %rsp, %rbp
pushq %rbx
leaq (%rsi,%rax), %rdx
addq %rcx, %r8
movq 0x78(%rdi), %rdi
addq $0x4, %rcx
movzbl (%rsi), %r9d
shll $0x18, %r9d
movzbl 0x1(%rsi), %r10d
shll $0x10, %r10d
orl %r9d, %r10d
cmpl $0x10ffff, %r10d # imm = 0x10FFFF
ja 0xc589b
movzbl 0x2(%rsi), %ebx
shll $0x8, %ebx
movzbl 0x3(%rsi), %r9d
orq %r9, %rbx
orq %r10, %rbx
cmpq (%rdi), %rbx
ja 0xc585c
movq 0x8(%rdi), %r10
movl %ebx, %r11d
shrl $0x8, %r11d
movq (%r10,%r11,8), %r10
testq %r10, %r10
je 0xc585c
leaq (%r9,%r9,2), %r9
movl (%r10,%r9,4), %ebx
cmpq %r8, %rcx
ja 0xc589b
cmpl $0x10ffff, %ebx # imm = 0x10FFFF
ja 0xc589b
movb $0x0, -0x4(%rcx)
movl %ebx, %r9d
shrl $0x10, %r9d
movb %r9b, -0x3(%rcx)
movb %bh, -0x2(%rcx)
movb %bl, -0x1(%rcx)
leaq 0x4(%rsi), %r9
cmpq %rdx, %r9
jae 0xc589b
addq $0x8, %rsi
addq $0x4, %rcx
cmpq %rdx, %rsi
movq %r9, %rsi
jbe 0xc580c
popq %rbx
popq %rbp
retq
|
my_caseup_utf32:
mov rax, rdx
cmp rdx, 4
jl locret_C589D
push rbp
mov rbp, rsp
push rbx
lea rdx, [rsi+rax]
add r8, rcx
mov rdi, [rdi+78h]
add rcx, 4
loc_C580C:
movzx r9d, byte ptr [rsi]
shl r9d, 18h
movzx r10d, byte ptr [rsi+1]
shl r10d, 10h
or r10d, r9d
cmp r10d, offset unk_10FFFF
ja short loc_C589B
movzx ebx, byte ptr [rsi+2]
shl ebx, 8
movzx r9d, byte ptr [rsi+3]
or rbx, r9
or rbx, r10
cmp rbx, [rdi]
ja short loc_C585C
mov r10, [rdi+8]
mov r11d, ebx
shr r11d, 8
mov r10, [r10+r11*8]
test r10, r10
jz short loc_C585C
lea r9, [r9+r9*2]
mov ebx, [r10+r9*4]
loc_C585C:
cmp rcx, r8
ja short loc_C589B
cmp ebx, offset unk_10FFFF
ja short loc_C589B
mov byte ptr [rcx-4], 0
mov r9d, ebx
shr r9d, 10h
mov [rcx-3], r9b
mov [rcx-2], bh
mov [rcx-1], bl
lea r9, [rsi+4]
cmp r9, rdx
jnb short loc_C589B
add rsi, 8
add rcx, 4
cmp rsi, rdx
mov rsi, r9
jbe loc_C580C
loc_C589B:
pop rbx
pop rbp
locret_C589D:
retn
|
long long my_caseup_utf32(long long a1, unsigned __int8 *a2, long long a3, long long a4, long long a5)
{
long long result; // rax
unsigned long long v6; // rdx
unsigned long long v7; // r8
unsigned long long *v8; // rdi
unsigned long long v9; // rcx
long long v10; // r10
long long v11; // r9
unsigned long long v12; // rbx
long long v13; // r10
bool v14; // cc
result = a3;
if ( a3 >= 4 )
{
v6 = (unsigned long long)&a2[a3];
v7 = a4 + a5;
v8 = *(unsigned long long **)(a1 + 120);
v9 = a4 + 4;
do
{
v10 = (*a2 << 24) | (a2[1] << 16);
if ( (unsigned int)v10 > (unsigned int)&unk_10FFFF )
break;
v11 = a2[3];
v12 = v10 | v11 | (a2[2] << 8);
if ( v12 <= *v8 )
{
v13 = *(_QWORD *)(v8[1] + 8LL * ((unsigned int)v12 >> 8));
if ( v13 )
LODWORD(v12) = *(_DWORD *)(v13 + 12 * v11);
}
if ( v9 > v7 )
break;
if ( (unsigned int)v12 > (unsigned int)&unk_10FFFF )
break;
*(_BYTE *)(v9 - 4) = 0;
*(_BYTE *)(v9 - 3) = BYTE2(v12);
*(_BYTE *)(v9 - 2) = BYTE1(v12);
*(_BYTE *)(v9 - 1) = v12;
if ( (unsigned long long)(a2 + 4) >= v6 )
break;
v9 += 4LL;
v14 = (unsigned long long)(a2 + 8) <= v6;
a2 += 4;
}
while ( v14 );
}
return result;
}
|
my_caseup_utf32:
MOV RAX,RDX
CMP RDX,0x4
JL 0x001c589d
PUSH RBP
MOV RBP,RSP
PUSH RBX
LEA RDX,[RSI + RAX*0x1]
ADD R8,RCX
MOV RDI,qword ptr [RDI + 0x78]
ADD RCX,0x4
LAB_001c580c:
MOVZX R9D,byte ptr [RSI]
SHL R9D,0x18
MOVZX R10D,byte ptr [RSI + 0x1]
SHL R10D,0x10
OR R10D,R9D
CMP R10D,0x10ffff
JA 0x001c589b
MOVZX EBX,byte ptr [RSI + 0x2]
SHL EBX,0x8
MOVZX R9D,byte ptr [RSI + 0x3]
OR RBX,R9
OR RBX,R10
CMP RBX,qword ptr [RDI]
JA 0x001c585c
MOV R10,qword ptr [RDI + 0x8]
MOV R11D,EBX
SHR R11D,0x8
MOV R10,qword ptr [R10 + R11*0x8]
TEST R10,R10
JZ 0x001c585c
LEA R9,[R9 + R9*0x2]
MOV EBX,dword ptr [R10 + R9*0x4]
LAB_001c585c:
CMP RCX,R8
JA 0x001c589b
CMP EBX,0x10ffff
JA 0x001c589b
MOV byte ptr [RCX + -0x4],0x0
MOV R9D,EBX
SHR R9D,0x10
MOV byte ptr [RCX + -0x3],R9B
MOV byte ptr [RCX + -0x2],BH
MOV byte ptr [RCX + -0x1],BL
LEA R9,[RSI + 0x4]
CMP R9,RDX
JNC 0x001c589b
ADD RSI,0x8
ADD RCX,0x4
CMP RSI,RDX
MOV RSI,R9
JBE 0x001c580c
LAB_001c589b:
POP RBX
POP RBP
LAB_001c589d:
RET
|
void my_caseup_utf32(long param_1,byte *param_2,long param_3,long param_4,long param_5)
{
ulong *puVar1;
long lVar2;
ulong uVar3;
ulong uVar4;
byte *pbVar5;
byte *pbVar6;
uint uVar7;
if (3 < param_3) {
puVar1 = *(ulong **)(param_1 + 0x78);
uVar3 = param_4 + 4;
pbVar5 = param_2;
while (uVar7 = (uint)pbVar5[1] << 0x10 | (uint)*pbVar5 << 0x18, uVar7 < 0x110000) {
uVar4 = (ulong)CONCAT11(pbVar5[2],pbVar5[3]) | (ulong)uVar7;
if ((uVar4 <= *puVar1) && (lVar2 = *(long *)(puVar1[1] + (uVar4 >> 8) * 8), lVar2 != 0)) {
uVar4 = (ulong)*(uint *)(lVar2 + (ulong)pbVar5[3] * 0xc);
}
if ((ulong)(param_5 + param_4) < uVar3) {
return;
}
if (0x10ffff < (uint)uVar4) {
return;
}
*(int1 *)(uVar3 - 4) = 0;
*(char *)(uVar3 - 3) = (char)(uVar4 >> 0x10);
*(char *)(uVar3 - 2) = (char)(uVar4 >> 8);
*(char *)(uVar3 - 1) = (char)uVar4;
if (param_2 + param_3 <= pbVar5 + 4) {
return;
}
pbVar6 = pbVar5 + 8;
uVar3 = uVar3 + 4;
pbVar5 = pbVar5 + 4;
if (param_2 + param_3 < pbVar6) {
return;
}
}
}
return;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.