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
|
|---|---|---|---|---|---|---|---|---|---|---|---|
60,700
|
mysql_stmt_free_result_cont
|
eloqsql/libmariadb/libmariadb/mariadb_async.c
|
int STDCALL
mysql_stmt_free_result_cont(my_bool *ret, MYSQL_STMT *stmt, int ready_status)
{
MK_ASYNC_CONT_BODY(
stmt->mysql,
TRUE,
r_my_bool)
}
|
O3
|
c
|
mysql_stmt_free_result_cont:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x38(%rsi), %rax
movq 0x480(%rax), %rcx
movq 0x28(%rcx), %r15
cmpb $0x0, 0x15(%r15)
je 0x4d9c0
movb $0x1, 0x14(%r15)
movl %edx, 0x4(%r15)
leaq 0x38(%r15), %rdi
callq 0x4e777
movb $0x0, 0x14(%r15)
testl %eax, %eax
jle 0x4da23
movl (%r15), %r15d
jmp 0x4da99
movl $0x7de, 0x90(%rax) # imm = 0x7DE
movl $0x297, %edi # imm = 0x297
addq 0x38(%r14), %rdi
leaq 0x2dffe6(%rip), %rax # 0x32d9c0
movq (%rax), %rsi
movl $0x5, %edx
callq 0x35110
movq 0x38(%r14), %rax
xorl %r15d, %r15d
movb %r15b, 0x29c(%rax)
movl $0x97, %edi
addq 0x38(%r14), %rdi
leaq 0x2dffcb(%rip), %rax # 0x32d9d0
movq 0x70(%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x35110
movq 0x38(%r14), %rax
movb %r15b, 0x296(%rax)
movb $0x1, (%rbx)
jmp 0x4da99
movb $0x0, 0x15(%r15)
js 0x4da30
movb 0x8(%r15), %al
jmp 0x4da94
movq 0x38(%r14), %rax
movl $0x7d8, 0x90(%rax) # imm = 0x7D8
movl $0x297, %edi # imm = 0x297
addq 0x38(%r14), %rdi
leaq 0x2dff72(%rip), %rax # 0x32d9c0
movq (%rax), %rsi
movl $0x5, %edx
callq 0x35110
movq 0x38(%r14), %rax
xorl %r15d, %r15d
movb %r15b, 0x29c(%rax)
movl $0x97, %edi
addq 0x38(%r14), %rdi
leaq 0x2dff57(%rip), %rax # 0x32d9d0
movq 0x40(%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x35110
movq 0x38(%r14), %rax
movb %r15b, 0x296(%rax)
movb $0x1, %al
movb %al, (%rbx)
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
mysql_stmt_free_result_cont:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
mov rax, [rsi+38h]
mov rcx, [rax+480h]
mov r15, [rcx+28h]
cmp byte ptr [r15+15h], 0
jz short loc_4D9C0
mov byte ptr [r15+14h], 1
mov [r15+4], edx
lea rdi, [r15+38h]
call my_context_continue
mov byte ptr [r15+14h], 0
test eax, eax
jle short loc_4DA23
mov r15d, [r15]
jmp loc_4DA99
loc_4D9C0:
mov dword ptr [rax+90h], 7DEh
mov edi, 297h
add rdi, [r14+38h]
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
mov rax, [r14+38h]
xor r15d, r15d
mov [rax+29Ch], r15b
mov edi, 97h
add rdi, [r14+38h]
lea rax, client_errors
mov rsi, [rax+70h]
mov edx, 1FFh
call _strncpy
mov rax, [r14+38h]
mov [rax+296h], r15b
mov byte ptr [rbx], 1
jmp short loc_4DA99
loc_4DA23:
mov byte ptr [r15+15h], 0
js short loc_4DA30
mov al, [r15+8]
jmp short loc_4DA94
loc_4DA30:
mov rax, [r14+38h]
mov dword ptr [rax+90h], 7D8h
mov edi, 297h
add rdi, [r14+38h]
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
mov rax, [r14+38h]
xor r15d, r15d
mov [rax+29Ch], r15b
mov edi, 97h
add rdi, [r14+38h]
lea rax, client_errors
mov rsi, [rax+40h]
mov edx, 1FFh
call _strncpy
mov rax, [r14+38h]
mov [rax+296h], r15b
mov al, 1
loc_4DA94:
mov [rbx], al
xor r15d, r15d
loc_4DA99:
mov eax, r15d
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long mysql_stmt_free_result_cont(char *a1, long long a2, unsigned int a3)
{
long long v3; // rax
unsigned int *v4; // r15
int v5; // eax
unsigned int v6; // r15d
char v7; // al
v3 = *(_QWORD *)(a2 + 56);
v4 = *(unsigned int **)(*(_QWORD *)(v3 + 1152) + 40LL);
if ( *((_BYTE *)v4 + 21) )
{
*((_BYTE *)v4 + 20) = 1;
v4[1] = a3;
v5 = my_context_continue(v4 + 14);
*((_BYTE *)v4 + 20) = 0;
if ( v5 <= 0 )
{
*((_BYTE *)v4 + 21) = 0;
if ( v5 < 0 )
{
*(_DWORD *)(*(_QWORD *)(a2 + 56) + 144LL) = 2008;
strncpy(*(_QWORD *)(a2 + 56) + 663LL, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(*(_QWORD *)(a2 + 56) + 668LL) = 0;
strncpy(*(_QWORD *)(a2 + 56) + 151LL, client_errors[8], 511LL);
*(_BYTE *)(*(_QWORD *)(a2 + 56) + 662LL) = 0;
v7 = 1;
}
else
{
v7 = *((_BYTE *)v4 + 8);
}
*a1 = v7;
return 0;
}
else
{
return *v4;
}
}
else
{
*(_DWORD *)(v3 + 144) = 2014;
strncpy(*(_QWORD *)(a2 + 56) + 663LL, SQLSTATE_UNKNOWN, 5LL);
v6 = 0;
*(_BYTE *)(*(_QWORD *)(a2 + 56) + 668LL) = 0;
strncpy(*(_QWORD *)(a2 + 56) + 151LL, client_errors[14], 511LL);
*(_BYTE *)(*(_QWORD *)(a2 + 56) + 662LL) = 0;
*a1 = 1;
}
return v6;
}
|
mysql_stmt_free_result_cont:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RSI + 0x38]
MOV RCX,qword ptr [RAX + 0x480]
MOV R15,qword ptr [RCX + 0x28]
CMP byte ptr [R15 + 0x15],0x0
JZ 0x0014d9c0
MOV byte ptr [R15 + 0x14],0x1
MOV dword ptr [R15 + 0x4],EDX
LEA RDI,[R15 + 0x38]
CALL 0x0014e777
MOV byte ptr [R15 + 0x14],0x0
TEST EAX,EAX
JLE 0x0014da23
MOV R15D,dword ptr [R15]
JMP 0x0014da99
LAB_0014d9c0:
MOV dword ptr [RAX + 0x90],0x7de
MOV EDI,0x297
ADD RDI,qword ptr [R14 + 0x38]
LEA RAX,[0x42d9c0]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00135110
MOV RAX,qword ptr [R14 + 0x38]
XOR R15D,R15D
MOV byte ptr [RAX + 0x29c],R15B
MOV EDI,0x97
ADD RDI,qword ptr [R14 + 0x38]
LEA RAX,[0x42d9d0]
MOV RSI,qword ptr [RAX + 0x70]
MOV EDX,0x1ff
CALL 0x00135110
MOV RAX,qword ptr [R14 + 0x38]
MOV byte ptr [RAX + 0x296],R15B
MOV byte ptr [RBX],0x1
JMP 0x0014da99
LAB_0014da23:
MOV byte ptr [R15 + 0x15],0x0
JS 0x0014da30
MOV AL,byte ptr [R15 + 0x8]
JMP 0x0014da94
LAB_0014da30:
MOV RAX,qword ptr [R14 + 0x38]
MOV dword ptr [RAX + 0x90],0x7d8
MOV EDI,0x297
ADD RDI,qword ptr [R14 + 0x38]
LEA RAX,[0x42d9c0]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00135110
MOV RAX,qword ptr [R14 + 0x38]
XOR R15D,R15D
MOV byte ptr [RAX + 0x29c],R15B
MOV EDI,0x97
ADD RDI,qword ptr [R14 + 0x38]
LEA RAX,[0x42d9d0]
MOV RSI,qword ptr [RAX + 0x40]
MOV EDX,0x1ff
CALL 0x00135110
MOV RAX,qword ptr [R14 + 0x38]
MOV byte ptr [RAX + 0x296],R15B
MOV AL,0x1
LAB_0014da94:
MOV byte ptr [RBX],AL
XOR R15D,R15D
LAB_0014da99:
MOV EAX,R15D
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
int4 mysql_stmt_free_result_cont(int1 *param_1,long param_2,int4 param_3)
{
int4 *puVar1;
int1 uVar2;
int iVar3;
int4 uVar4;
puVar1 = *(int4 **)(*(long *)(*(long *)(param_2 + 0x38) + 0x480) + 0x28);
if (*(char *)((long)puVar1 + 0x15) == '\0') {
*(int4 *)(*(long *)(param_2 + 0x38) + 0x90) = 0x7de;
strncpy((char *)(*(long *)(param_2 + 0x38) + 0x297),SQLSTATE_UNKNOWN,5);
uVar4 = 0;
*(int1 *)(*(long *)(param_2 + 0x38) + 0x29c) = 0;
strncpy((char *)(*(long *)(param_2 + 0x38) + 0x97),
PTR_s_Commands_out_of_sync__you_can_t_r_0042da40,0x1ff);
*(int1 *)(*(long *)(param_2 + 0x38) + 0x296) = 0;
*param_1 = 1;
}
else {
*(int1 *)(puVar1 + 5) = 1;
puVar1[1] = param_3;
iVar3 = my_context_continue(puVar1 + 0xe);
*(int1 *)(puVar1 + 5) = 0;
if (iVar3 < 1) {
*(int1 *)((long)puVar1 + 0x15) = 0;
if (iVar3 < 0) {
*(int4 *)(*(long *)(param_2 + 0x38) + 0x90) = 0x7d8;
strncpy((char *)(*(long *)(param_2 + 0x38) + 0x297),SQLSTATE_UNKNOWN,5);
*(int1 *)(*(long *)(param_2 + 0x38) + 0x29c) = 0;
strncpy((char *)(*(long *)(param_2 + 0x38) + 0x97),PTR_s_Client_run_out_of_memory_0042da10,
0x1ff);
*(int1 *)(*(long *)(param_2 + 0x38) + 0x296) = 0;
uVar2 = 1;
}
else {
uVar2 = *(int1 *)(puVar1 + 2);
}
*param_1 = uVar2;
uVar4 = 0;
}
else {
uVar4 = *puVar1;
}
}
return uVar4;
}
|
|
60,701
|
wstr_to_str
|
eloqsql/strings/ctype-uca.c
|
static void
wstr_to_str(char *str, size_t length, my_wc_t *wc, size_t wlength)
{
const char *end= str + length;
char *s;
size_t i, rem;
for (s= str, i= 0; (rem= (end - s)) > 0 && i < wlength; i++)
{
if ((wc[i] >= '0' && wc[i] <= '9') ||
(wc[i] >= 'a' && wc[i] <= 'z') ||
(wc[i] >= 'A' && wc[i] <= 'Z'))
s+= my_snprintf(s, rem, "%c", (int) wc[i]);
else
s+= my_snprintf(s, rem, "\\u%04X", (int) wc[i]);
}
}
|
O0
|
c
|
wstr_to_str:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rax
addq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq $0x0, -0x38(%rbp)
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %rax
subq %rax, %rcx
movq %rcx, -0x40(%rbp)
xorl %eax, %eax
cmpq $0x0, %rcx
movb %al, -0x41(%rbp)
jbe 0x4fffc
movq -0x38(%rbp), %rax
cmpq -0x20(%rbp), %rax
setb %al
movb %al, -0x41(%rbp)
movb -0x41(%rbp), %al
testb $0x1, %al
jne 0x50008
jmp 0x500cf
movq -0x18(%rbp), %rax
movq -0x38(%rbp), %rcx
cmpq $0x30, (%rax,%rcx,8)
jb 0x50026
movq -0x18(%rbp), %rax
movq -0x38(%rbp), %rcx
cmpq $0x39, (%rax,%rcx,8)
jbe 0x50062
movq -0x18(%rbp), %rax
movq -0x38(%rbp), %rcx
cmpq $0x61, (%rax,%rcx,8)
jb 0x50044
movq -0x18(%rbp), %rax
movq -0x38(%rbp), %rcx
cmpq $0x7a, (%rax,%rcx,8)
jbe 0x50062
movq -0x18(%rbp), %rax
movq -0x38(%rbp), %rcx
cmpq $0x41, (%rax,%rcx,8)
jb 0x50090
movq -0x18(%rbp), %rax
movq -0x38(%rbp), %rcx
cmpq $0x5a, (%rax,%rcx,8)
ja 0x50090
movq -0x30(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq -0x18(%rbp), %rax
movq -0x38(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, %ecx
leaq 0x2ab24(%rip), %rdx # 0x7aba3
movb $0x0, %al
callq 0x75a90
addq -0x30(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x500bc
movq -0x30(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq -0x18(%rbp), %rax
movq -0x38(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, %ecx
leaq 0x2aaf9(%rip), %rdx # 0x7aba6
movb $0x0, %al
callq 0x75a90
addq -0x30(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x500be
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
jmp 0x4ffd4
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
wstr_to_str:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov rax, [rbp+var_8]
add rax, [rbp+var_10]
mov [rbp+var_28], rax
mov rax, [rbp+var_8]
mov [rbp+var_30], rax
mov [rbp+var_38], 0
loc_4FFD4:
mov rcx, [rbp+var_28]
mov rax, [rbp+var_30]
sub rcx, rax
mov [rbp+var_40], rcx
xor eax, eax
cmp rcx, 0
mov [rbp+var_41], al
jbe short loc_4FFFC
mov rax, [rbp+var_38]
cmp rax, [rbp+var_20]
setb al
mov [rbp+var_41], al
loc_4FFFC:
mov al, [rbp+var_41]
test al, 1
jnz short loc_50008
jmp loc_500CF
loc_50008:
mov rax, [rbp+var_18]
mov rcx, [rbp+var_38]
cmp qword ptr [rax+rcx*8], 30h ; '0'
jb short loc_50026
mov rax, [rbp+var_18]
mov rcx, [rbp+var_38]
cmp qword ptr [rax+rcx*8], 39h ; '9'
jbe short loc_50062
loc_50026:
mov rax, [rbp+var_18]
mov rcx, [rbp+var_38]
cmp qword ptr [rax+rcx*8], 61h ; 'a'
jb short loc_50044
mov rax, [rbp+var_18]
mov rcx, [rbp+var_38]
cmp qword ptr [rax+rcx*8], 7Ah ; 'z'
jbe short loc_50062
loc_50044:
mov rax, [rbp+var_18]
mov rcx, [rbp+var_38]
cmp qword ptr [rax+rcx*8], 41h ; 'A'
jb short loc_50090
mov rax, [rbp+var_18]
mov rcx, [rbp+var_38]
cmp qword ptr [rax+rcx*8], 5Ah ; 'Z'
ja short loc_50090
loc_50062:
mov rdi, [rbp+var_30]
mov rsi, [rbp+var_40]
mov rax, [rbp+var_18]
mov rcx, [rbp+var_38]
mov rax, [rax+rcx*8]
mov ecx, eax
lea rdx, aC; "%c"
mov al, 0
call my_snprintf
add rax, [rbp+var_30]
mov [rbp+var_30], rax
jmp short loc_500BC
loc_50090:
mov rdi, [rbp+var_30]
mov rsi, [rbp+var_40]
mov rax, [rbp+var_18]
mov rcx, [rbp+var_38]
mov rax, [rax+rcx*8]
mov ecx, eax
lea rdx, aU04x; "\\u%04X"
mov al, 0
call my_snprintf
add rax, [rbp+var_30]
mov [rbp+var_30], rax
loc_500BC:
jmp short $+2
loc_500BE:
mov rax, [rbp+var_38]
add rax, 1
mov [rbp+var_38], rax
jmp loc_4FFD4
loc_500CF:
add rsp, 50h
pop rbp
retn
|
bool wstr_to_str(long long a1, long long a2, long long a3, unsigned long long a4, int a5, int a6)
{
bool result; // al
bool v7; // [rsp+Fh] [rbp-41h]
int v8; // [rsp+10h] [rbp-40h]
unsigned long long i; // [rsp+18h] [rbp-38h]
long long v10; // [rsp+20h] [rbp-30h]
long long v11; // [rsp+28h] [rbp-28h]
v11 = a2 + a1;
v10 = a1;
for ( i = 0LL; ; ++i )
{
v8 = v11 - v10;
v7 = 0;
if ( v11 != v10 )
v7 = i < a4;
result = v7;
if ( !v7 )
break;
if ( (*(_QWORD *)(a3 + 8 * i) < 0x30uLL || *(_QWORD *)(a3 + 8 * i) > 0x39uLL)
&& (*(_QWORD *)(a3 + 8 * i) < 0x61uLL || *(_QWORD *)(a3 + 8 * i) > 0x7AuLL)
&& (*(_QWORD *)(a3 + 8 * i) < 0x41uLL || *(_QWORD *)(a3 + 8 * i) > 0x5AuLL) )
{
v10 += my_snprintf(v10, v8, (unsigned int)"\\u%04X", *(_QWORD *)(a3 + 8 * i), a5, a6);
}
else
{
v10 += my_snprintf(v10, v8, (unsigned int)"%c", *(_QWORD *)(a3 + 8 * i), a5, a6);
}
}
return result;
}
|
wstr_to_str:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x30],RAX
MOV qword ptr [RBP + -0x38],0x0
LAB_0014ffd4:
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x30]
SUB RCX,RAX
MOV qword ptr [RBP + -0x40],RCX
XOR EAX,EAX
CMP RCX,0x0
MOV byte ptr [RBP + -0x41],AL
JBE 0x0014fffc
MOV RAX,qword ptr [RBP + -0x38]
CMP RAX,qword ptr [RBP + -0x20]
SETC AL
MOV byte ptr [RBP + -0x41],AL
LAB_0014fffc:
MOV AL,byte ptr [RBP + -0x41]
TEST AL,0x1
JNZ 0x00150008
JMP 0x001500cf
LAB_00150008:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x38]
CMP qword ptr [RAX + RCX*0x8],0x30
JC 0x00150026
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x38]
CMP qword ptr [RAX + RCX*0x8],0x39
JBE 0x00150062
LAB_00150026:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x38]
CMP qword ptr [RAX + RCX*0x8],0x61
JC 0x00150044
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x38]
CMP qword ptr [RAX + RCX*0x8],0x7a
JBE 0x00150062
LAB_00150044:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x38]
CMP qword ptr [RAX + RCX*0x8],0x41
JC 0x00150090
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x38]
CMP qword ptr [RAX + RCX*0x8],0x5a
JA 0x00150090
LAB_00150062:
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV ECX,EAX
LEA RDX,[0x17aba3]
MOV AL,0x0
CALL 0x00175a90
ADD RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x30],RAX
JMP 0x001500bc
LAB_00150090:
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV ECX,EAX
LEA RDX,[0x17aba6]
MOV AL,0x0
CALL 0x00175a90
ADD RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x30],RAX
LAB_001500bc:
JMP 0x001500be
LAB_001500be:
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x1
MOV qword ptr [RBP + -0x38],RAX
JMP 0x0014ffd4
LAB_001500cf:
ADD RSP,0x50
POP RBP
RET
|
void wstr_to_str(long param_1,long param_2,long param_3,ulong param_4)
{
long lVar1;
ulong local_40;
long local_38;
local_40 = 0;
for (local_38 = param_1; lVar1 = (param_1 + param_2) - local_38, lVar1 != 0 && local_40 < param_4;
local_38 = lVar1 + local_38) {
if ((((*(ulong *)(param_3 + local_40 * 8) < 0x30) || (0x39 < *(ulong *)(param_3 + local_40 * 8))
) && ((*(ulong *)(param_3 + local_40 * 8) < 0x61 ||
(0x7a < *(ulong *)(param_3 + local_40 * 8))))) &&
((*(ulong *)(param_3 + local_40 * 8) < 0x41 || (0x5a < *(ulong *)(param_3 + local_40 * 8)))))
{
lVar1 = my_snprintf(local_38,lVar1,"\\u%04X",*(ulong *)(param_3 + local_40 * 8) & 0xffffffff);
}
else {
lVar1 = my_snprintf(local_38,lVar1,&DAT_0017aba3,
*(ulong *)(param_3 + local_40 * 8) & 0xffffffff);
}
local_40 = local_40 + 1;
}
return;
}
|
|
60,702
|
SET_adapter_snaplen
|
xtate/src/xconf.c
|
static ConfRes SET_adapter_snaplen(void *conf, const char *name,
const char *value) {
XConf *xconf = (XConf *)conf;
UNUSEDPARM(name);
if (xconf->echo) {
if (xconf->nic.snaplen != XCONF_DFT_SNAPLEN || xconf->echo_all) {
fprintf(xconf->echo, "adapter-snaplen = %u\n", xconf->nic.snaplen);
}
return 0;
}
xconf->nic.snaplen = (unsigned)conf_parse_int(value);
if (xconf->nic.snaplen > 65535) {
LOG(LEVEL_ERROR, "snaplen must be less than 65535.\n");
return Conf_ERR;
}
return Conf_OK;
}
|
O3
|
c
|
SET_adapter_snaplen:
pushq %rbx
movq %rdi, %rbx
movq 0x2a8(%rdi), %rdi
testq %rdi, %rdi
je 0x590c5
movl 0x164(%rbx), %edx
cmpl $0xffff, %edx # imm = 0xFFFF
jne 0x590b3
cmpl $0x0, 0x2b0(%rbx)
je 0x590f4
leaq 0x25b9b(%rip), %rsi # 0x7ec55
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x15220
jmp 0x590f6
movq %rdx, %rdi
callq 0x523a0
movl %eax, 0x164(%rbx)
cmpl $0x10000, %eax # imm = 0x10000
jb 0x590f4
leaq 0x25b8a(%rip), %rsi # 0x7ec6b
movl $0xffffffff, %edi # imm = 0xFFFFFFFF
xorl %eax, %eax
callq 0x536da
movl $0x1, %ebx
jmp 0x590f6
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
retq
|
SET_adapter_snaplen:
push rbx
mov rbx, rdi
mov rdi, [rdi+2A8h]
test rdi, rdi
jz short loc_590C5
mov edx, [rbx+164h]
cmp edx, 0FFFFh
jnz short loc_590B3
cmp dword ptr [rbx+2B0h], 0
jz short loc_590F4
loc_590B3:
lea rsi, aAdapterSnaplen; "adapter-snaplen = %u\n"
xor ebx, ebx
xor eax, eax
call _fprintf
jmp short loc_590F6
loc_590C5:
mov rdi, rdx
call conf_parse_int
mov [rbx+164h], eax
cmp eax, 10000h
jb short loc_590F4
lea rsi, aSnaplenMustBeL; "snaplen must be less than 65535.\n"
mov edi, 0FFFFFFFFh
xor eax, eax
call LOG
mov ebx, 1
jmp short loc_590F6
loc_590F4:
xor ebx, ebx
loc_590F6:
mov eax, ebx
pop rbx
retn
|
long long SET_adapter_snaplen(
long long a1,
long long a2,
unsigned __int8 *a3,
long long a4,
long long a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
double a10,
double a11,
__m128 a12,
__m128 a13)
{
long long v14; // rdi
int v15; // edx
unsigned int v16; // ebx
unsigned int v17; // eax
long long v18; // rdx
long long v19; // rcx
long long v20; // r8
long long v21; // r9
__m128 v22; // xmm4
__m128 v23; // xmm5
char v25; // [rsp+0h] [rbp-8h]
v14 = *(_QWORD *)(a1 + 680);
if ( !v14 )
{
v17 = conf_parse_int(a3, a2, (long long)a3, a4, a5);
*(_DWORD *)(a1 + 356) = v17;
if ( v17 >= 0x10000 )
{
LOG(
-1,
(long long)"snaplen must be less than 65535.\n",
v18,
v19,
v20,
v21,
a6,
a7,
a8,
a9,
v22,
v23,
a12,
a13,
v25);
return 1;
}
return 0;
}
v15 = *(_DWORD *)(a1 + 356);
if ( v15 == 0xFFFF && !*(_DWORD *)(a1 + 688) )
return 0;
v16 = 0;
fprintf(v14, "adapter-snaplen = %u\n", v15);
return v16;
}
|
SET_adapter_snaplen:
PUSH RBX
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0x2a8]
TEST RDI,RDI
JZ 0x001590c5
MOV EDX,dword ptr [RBX + 0x164]
CMP EDX,0xffff
JNZ 0x001590b3
CMP dword ptr [RBX + 0x2b0],0x0
JZ 0x001590f4
LAB_001590b3:
LEA RSI,[0x17ec55]
XOR EBX,EBX
XOR EAX,EAX
CALL 0x00115220
JMP 0x001590f6
LAB_001590c5:
MOV RDI,RDX
CALL 0x001523a0
MOV dword ptr [RBX + 0x164],EAX
CMP EAX,0x10000
JC 0x001590f4
LEA RSI,[0x17ec6b]
MOV EDI,0xffffffff
XOR EAX,EAX
CALL 0x001536da
MOV EBX,0x1
JMP 0x001590f6
LAB_001590f4:
XOR EBX,EBX
LAB_001590f6:
MOV EAX,EBX
POP RBX
RET
|
int8 SET_adapter_snaplen(long param_1,int8 param_2,int8 param_3)
{
uint uVar1;
if (*(FILE **)(param_1 + 0x2a8) == (FILE *)0x0) {
uVar1 = conf_parse_int(param_3);
*(uint *)(param_1 + 0x164) = uVar1;
if (0xffff < uVar1) {
LOG(0xffffffff,"snaplen must be less than 65535.\n");
return 1;
}
}
else if ((*(int *)(param_1 + 0x164) != 0xffff) || (*(int *)(param_1 + 0x2b0) != 0)) {
fprintf(*(FILE **)(param_1 + 0x2a8),"adapter-snaplen = %u\n");
return 0;
}
return 0;
}
|
|
60,703
|
maria_rtree_insert_level
|
eloqsql/storage/maria/ma_rt_index.c
|
int maria_rtree_insert_level(MARIA_HA *info, MARIA_KEY *key, int ins_level,
my_off_t *root)
{
my_off_t old_root;
MARIA_SHARE *share= info->s;
MARIA_KEYDEF *keyinfo= key->keyinfo;
int res;
my_off_t new_page;
enum pagecache_page_lock write_lock;
DBUG_ENTER("maria_rtree_insert_level");
if ((old_root= share->state.key_root[keyinfo->key_nr]) == HA_OFFSET_ERROR)
{
MARIA_PINNED_PAGE tmp_page_link, *page_link;
MARIA_PAGE page;
page_link= &tmp_page_link;
if ((old_root= _ma_new(info, DFLT_INIT_HITS, &page_link)) ==
HA_OFFSET_ERROR)
DBUG_RETURN(-1);
write_lock= page_link->write_lock;
info->keyread_buff_used= 1;
bzero(info->buff, share->block_size);
_ma_store_keynr(share, info->buff, keyinfo->key_nr);
_ma_store_page_used(share, info->buff, share->keypage_header);
_ma_page_setup(&page, info, keyinfo, old_root, info->buff);
if (share->now_transactional && _ma_log_new(&page, 1))
DBUG_RETURN(1);
res= maria_rtree_add_key(key, &page, NULL);
if (_ma_write_keypage(&page, write_lock, DFLT_INIT_HITS))
DBUG_RETURN(1);
*root= old_root;
DBUG_RETURN(res);
}
switch ((res= maria_rtree_insert_req(info, key, old_root, &new_page,
ins_level, 0)))
{
case 0: /* root was not split */
{
break;
}
case 1: /* root was split, grow a new root; very rare */
{
uchar *new_root_buf, *new_key_buff;
my_bool new_root_buf_alloced;
my_off_t new_root;
uint nod_flag= share->base.key_reflength;
MARIA_PINNED_PAGE tmp_page_link, *page_link;
MARIA_KEY new_key;
MARIA_PAGE page;
page_link= &tmp_page_link;
DBUG_PRINT("rtree", ("root was split, grow a new root"));
alloc_on_stack(*info->stack_end_ptr, new_root_buf, new_root_buf_alloced,
keyinfo->block_length + keyinfo->max_store_length);
if (!new_root_buf)
{
my_errno= HA_ERR_OUT_OF_MEM;
DBUG_RETURN(-1); /* purecov: inspected */
}
bzero(new_root_buf, keyinfo->block_length);
_ma_store_keypage_flag(share, new_root_buf, KEYPAGE_FLAG_ISNOD);
_ma_store_keynr(share, new_root_buf, keyinfo->key_nr);
_ma_store_page_used(share, new_root_buf, share->keypage_header);
if ((new_root= _ma_new(info, DFLT_INIT_HITS, &page_link)) ==
HA_OFFSET_ERROR)
goto err;
write_lock= page_link->write_lock;
_ma_page_setup(&page, info, keyinfo, new_root, new_root_buf);
if (share->now_transactional && _ma_log_new(&page, 1))
goto err;
/* Point to some free space */
new_key_buff= new_root_buf + keyinfo->block_length + nod_flag;
new_key.keyinfo= keyinfo;
new_key.data= new_key_buff;
new_key.data_length= key->data_length;
new_key.ref_length= key->ref_length;
new_key.flag= 0;
_ma_kpointer(info, new_key_buff - nod_flag, old_root);
if (maria_rtree_set_key_mbr(info, &new_key, old_root))
goto err;
if (maria_rtree_add_key(&new_key, &page, NULL) == -1)
goto err;
_ma_kpointer(info, new_key_buff - nod_flag, new_page);
if (maria_rtree_set_key_mbr(info, &new_key, new_page))
goto err;
if (maria_rtree_add_key(&new_key, &page, NULL) == -1)
goto err;
if (_ma_write_keypage(&page, write_lock, DFLT_INIT_HITS))
goto err;
*root= new_root;
DBUG_PRINT("rtree", ("new root page: %lu level: %d nod_flag: %u",
(ulong) new_root, 0, page.node));
stack_alloc_free(new_root_buf, new_root_buf_alloced);
break;
err:
stack_alloc_free(new_root_buf, new_root_buf_alloced);
DBUG_RETURN(-1); /* purecov: inspected */
}
default:
case -1: /* error */
{
DBUG_ASSERT(0);
break;
}
}
DBUG_RETURN(res);
}
|
O3
|
c
|
maria_rtree_insert_level:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rcx, %rbx
movq %rdi, %r14
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq (%rdi), %r15
movq 0x8(%rsi), %r12
movq 0x118(%r15), %rax
movzbl 0xa5(%r12), %ecx
movq (%rax,%rcx,8), %r13
cmpq $-0x1, %r13
movq %rsi, -0x58(%rbp)
je 0x744b3
movl %edx, %r8d
movq %rbx, -0x40(%rbp)
leaq -0x68(%rbp), %rcx
movq %r14, %rdi
movq %r13, %rdx
xorl %r9d, %r9d
callq 0x747e1
movl %eax, %ebx
cmpl $0x1, %eax
jne 0x74717
movl 0x3e4(%r15), %eax
movq %rax, -0x70(%rbp)
leaq -0xe8(%rbp), %rax
movq %rax, -0x60(%rbp)
movzwl 0xa6(%r12), %edx
movzwl 0xb0(%r12), %esi
addq %rdx, %rsi
leaq -0xd0(%rbp), %rcx
movq %rsi, (%rcx)
movq 0x78(%r14), %rax
movq (%rax), %rax
subq %rcx, %rax
subq %rsi, %rax
jbe 0x745d4
cmpq $0x10000, %rax # imm = 0x10000
ja 0x7449a
cmpl $0x1000, %esi # imm = 0x1000
jb 0x745d4
cmpq $0x8001, %rax # imm = 0x8001
jb 0x745d4
movq %rsp, %rbx
addl $0xf, %esi
andl $-0x10, %esi
subq %rsi, %rbx
movq %rbx, %rsp
movb $0x1, %al
movl %eax, -0x34(%rbp)
jmp 0x745fc
leaq -0x90(%rbp), %rax
leaq -0xe8(%rbp), %rdx
movq %rax, (%rdx)
movq %r14, %rdi
movl $0x3, %esi
callq 0x4121f
cmpq $-0x1, %rax
je 0x74712
movq %rax, %r13
movq %rbx, -0x40(%rbp)
movq -0xe8(%rbp), %rax
movl 0xc(%rax), %eax
movl %eax, -0x34(%rbp)
movb $0x1, 0x685(%r14)
movq 0x378(%r14), %rdi
movl 0x7bc(%r15), %edx
xorl %esi, %esi
callq 0x2b2f0
movb 0xa5(%r12), %al
movq 0x378(%r14), %rcx
movl 0x744(%r15), %edx
addl $-0x4, %edx
movb %al, (%rcx,%rdx)
movl 0x744(%r15), %eax
movq 0x378(%r14), %rcx
movb %al, -0x1(%rcx,%rax)
movq 0x378(%r14), %rcx
movl 0x744(%r15), %edx
movb %ah, -0x2(%rcx,%rdx)
movq 0x378(%r14), %r8
leaq -0xc8(%rbp), %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0x40da4
cmpb $0x0, 0x7e7(%r15)
je 0x74590
leaq -0xc8(%rbp), %rdi
movl $0x1, %ebx
movl $0x1, %esi
callq 0x58848
testb %al, %al
jne 0x74717
leaq -0xc8(%rbp), %rbx
movq -0x58(%rbp), %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x75a48
movl %eax, %r14d
movq %rbx, %rdi
movl -0x34(%rbp), %esi
movl $0x3, %edx
callq 0x40f35
movl $0x1, %ebx
testb %al, %al
jne 0x74717
movq -0x40(%rbp), %rax
movq %r13, (%rax)
movl %r14d, %ebx
jmp 0x74717
movl $0x10010, %edx # imm = 0x10010
xorl %edi, %edi
callq 0xc3acd
testq %rax, %rax
je 0x74707
movq %rax, %rbx
movzwl 0xa6(%r12), %edx
movl $0x0, -0x34(%rbp)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2b2f0
movl 0x744(%r15), %eax
addl $-0x3, %eax
movb $0x1, (%rbx,%rax)
movb 0xa5(%r12), %al
movl 0x744(%r15), %ecx
addl $-0x4, %ecx
movb %al, (%rbx,%rcx)
movl 0x744(%r15), %eax
movb %al, -0x1(%rbx,%rax)
movl 0x744(%r15), %ecx
movb %ah, -0x2(%rbx,%rcx)
leaq -0x60(%rbp), %rdx
movq %r14, %rdi
movl $0x3, %esi
callq 0x4121f
movq %rax, -0x50(%rbp)
cmpq $-0x1, %rax
je 0x746f7
movq -0x60(%rbp), %rax
movl 0xc(%rax), %eax
movl %eax, -0x44(%rbp)
leaq -0xc8(%rbp), %rdi
movq %r14, %rsi
movq %r12, %rdx
movq -0x50(%rbp), %rcx
movq %rbx, %r8
callq 0x40da4
cmpb $0x0, 0x7e7(%r15)
je 0x746a0
leaq -0xc8(%rbp), %rdi
movl $0x1, %esi
callq 0x58848
testb %al, %al
jne 0x746f7
movzwl 0xa6(%r12), %r15d
addq %rbx, %r15
movq -0x70(%rbp), %rax
addq %r15, %rax
leaq -0x90(%rbp), %rcx
movq %r12, 0x8(%rcx)
movq %rax, (%rcx)
movq -0x58(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x10(%rcx)
movl $0x0, 0x18(%rcx)
movq %rcx, %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x3eeb5
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x75be7
testl %eax, %eax
je 0x7473b
cmpb $0x0, -0x34(%rbp)
jne 0x74712
movq %rbx, %rdi
callq 0xc3cfa
jmp 0x74712
callq 0xc5c9a
movl $0x80, (%rax)
movl $0xffffffff, %ebx # imm = 0xFFFFFFFF
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x747dc
movl %ebx, %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x90(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
xorl %edx, %edx
callq 0x75a48
cmpl $-0x1, %eax
je 0x746f7
movq -0x68(%rbp), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x3eeb5
movq -0x68(%rbp), %rdx
leaq -0x90(%rbp), %rsi
movq %r14, %rdi
callq 0x75be7
testl %eax, %eax
jne 0x746f7
leaq -0x90(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
xorl %edx, %edx
callq 0x75a48
cmpl $-0x1, %eax
je 0x746f7
leaq -0xc8(%rbp), %rdi
movl -0x44(%rbp), %esi
movl $0x3, %edx
callq 0x40f35
testb %al, %al
jne 0x746f7
movq -0x40(%rbp), %rax
movq -0x50(%rbp), %rcx
movq %rcx, (%rax)
cmpb $0x0, -0x34(%rbp)
jne 0x747d2
movq %rbx, %rdi
callq 0xc3cfa
movl $0x1, %ebx
jmp 0x74717
callq 0x2b280
|
maria_rtree_insert_level:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0C8h
mov rbx, rcx
mov r14, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov r15, [rdi]
mov r12, [rsi+8]
mov rax, [r15+118h]
movzx ecx, byte ptr [r12+0A5h]
mov r13, [rax+rcx*8]
cmp r13, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_58], rsi
jz loc_744B3
mov r8d, edx
mov [rbp+var_40], rbx
lea rcx, [rbp+var_68]
mov rdi, r14
mov rdx, r13
xor r9d, r9d
call maria_rtree_insert_req
mov ebx, eax
cmp eax, 1
jnz loc_74717
mov eax, [r15+3E4h]
mov [rbp+var_70], rax
lea rax, [rbp+var_E8]
mov [rbp+var_60], rax
movzx edx, word ptr [r12+0A6h]
movzx esi, word ptr [r12+0B0h]
add rsi, rdx
lea rcx, [rbp+var_D0]
mov [rcx], rsi
mov rax, [r14+78h]
mov rax, [rax]
sub rax, rcx
sub rax, rsi
jbe loc_745D4
cmp rax, 10000h
ja short loc_7449A
cmp esi, 1000h
jb loc_745D4
cmp rax, 8001h
jb loc_745D4
loc_7449A:
mov rbx, rsp
add esi, 0Fh
and esi, 0FFFFFFF0h
sub rbx, rsi
mov rsp, rbx
mov al, 1
mov [rbp+var_34], eax
jmp loc_745FC
loc_744B3:
lea rax, [rbp+var_90]
lea rdx, [rbp+var_E8]
mov [rdx], rax
mov rdi, r14
mov esi, 3
call _ma_new
cmp rax, 0FFFFFFFFFFFFFFFFh
jz loc_74712
mov r13, rax
mov [rbp+var_40], rbx
mov rax, [rbp+var_E8]
mov eax, [rax+0Ch]
mov [rbp+var_34], eax
mov byte ptr [r14+685h], 1
mov rdi, [r14+378h]
mov edx, [r15+7BCh]
xor esi, esi
call _memset
mov al, [r12+0A5h]
mov rcx, [r14+378h]
mov edx, [r15+744h]
add edx, 0FFFFFFFCh
mov [rcx+rdx], al
mov eax, [r15+744h]
mov rcx, [r14+378h]
mov [rcx+rax-1], al
mov rcx, [r14+378h]
mov edx, [r15+744h]
mov [rcx+rdx-2], ah
mov r8, [r14+378h]
lea rdi, [rbp+var_C8]
mov rsi, r14
mov rdx, r12
mov rcx, r13
call _ma_page_setup
cmp byte ptr [r15+7E7h], 0
jz short loc_74590
lea rdi, [rbp+var_C8]
mov ebx, 1
mov esi, 1
call _ma_log_new
test al, al
jnz loc_74717
loc_74590:
lea rbx, [rbp+var_C8]
mov rdi, [rbp+var_58]
mov rsi, rbx
xor edx, edx
call maria_rtree_add_key
mov r14d, eax
mov rdi, rbx
mov esi, [rbp+var_34]
mov edx, 3
call _ma_write_keypage
mov ebx, 1
test al, al
jnz loc_74717
mov rax, [rbp+var_40]
mov [rax], r13
mov ebx, r14d
jmp loc_74717
loc_745D4:
mov edx, offset stru_10010
xor edi, edi
call my_malloc
test rax, rax
jz loc_74707
mov rbx, rax
movzx edx, word ptr [r12+0A6h]
mov [rbp+var_34], 0
loc_745FC:
mov rdi, rbx
xor esi, esi
call _memset
mov eax, [r15+744h]
add eax, 0FFFFFFFDh
mov byte ptr [rbx+rax], 1
mov al, [r12+0A5h]
mov ecx, [r15+744h]
add ecx, 0FFFFFFFCh
mov [rbx+rcx], al
mov eax, [r15+744h]
mov [rbx+rax-1], al
mov ecx, [r15+744h]
mov [rbx+rcx-2], ah
lea rdx, [rbp+var_60]
mov rdi, r14
mov esi, 3
call _ma_new
mov [rbp+var_50], rax
cmp rax, 0FFFFFFFFFFFFFFFFh
jz loc_746F7
mov rax, [rbp+var_60]
mov eax, [rax+0Ch]
mov [rbp+var_44], eax
lea rdi, [rbp+var_C8]
mov rsi, r14
mov rdx, r12
mov rcx, [rbp+var_50]
mov r8, rbx
call _ma_page_setup
cmp byte ptr [r15+7E7h], 0
jz short loc_746A0
lea rdi, [rbp+var_C8]
mov esi, 1
call _ma_log_new
test al, al
jnz short loc_746F7
loc_746A0:
movzx r15d, word ptr [r12+0A6h]
add r15, rbx
mov rax, [rbp+var_70]
add rax, r15
lea rcx, [rbp+var_90]
mov [rcx+8], r12
mov [rcx], rax
mov rax, [rbp+var_58]
mov rax, [rax+10h]
mov [rcx+10h], rax
mov dword ptr [rcx+18h], 0
mov r12, rcx
mov rdi, r14
mov rsi, r15
mov rdx, r13
call _ma_kpointer
mov rdi, r14
mov rsi, r12
mov rdx, r13
call maria_rtree_set_key_mbr
test eax, eax
jz short loc_7473B
loc_746F7:
cmp byte ptr [rbp+var_34], 0
jnz short loc_74712
mov rdi, rbx
call my_free
jmp short loc_74712
loc_74707:
call _my_thread_var
mov dword ptr [rax], 80h
loc_74712:
mov ebx, 0FFFFFFFFh
loc_74717:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz loc_747DC
mov eax, ebx
lea rsp, [rbp-28h]
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_7473B:
lea rdi, [rbp+var_90]
lea rsi, [rbp+var_C8]
xor edx, edx
call maria_rtree_add_key
cmp eax, 0FFFFFFFFh
jz short loc_746F7
mov rdx, [rbp+var_68]
mov rdi, r14
mov rsi, r15
call _ma_kpointer
mov rdx, [rbp+var_68]
lea rsi, [rbp+var_90]
mov rdi, r14
call maria_rtree_set_key_mbr
test eax, eax
jnz loc_746F7
lea rdi, [rbp+var_90]
lea rsi, [rbp+var_C8]
xor edx, edx
call maria_rtree_add_key
cmp eax, 0FFFFFFFFh
jz loc_746F7
lea rdi, [rbp+var_C8]
mov esi, [rbp+var_44]
mov edx, 3
call _ma_write_keypage
test al, al
jnz loc_746F7
mov rax, [rbp+var_40]
mov rcx, [rbp+var_50]
mov [rax], rcx
cmp byte ptr [rbp+var_34], 0
jnz short loc_747D2
mov rdi, rbx
call my_free
loc_747D2:
mov ebx, 1
jmp loc_74717
loc_747DC:
call ___stack_chk_fail
|
long long maria_rtree_insert_level(long long *a1, long long a2, unsigned int a3, long long *a4)
{
long long v5; // r15
long long v6; // r12
unsigned long long v7; // r13
unsigned int inserted; // ebx
long long v9; // rdx
unsigned long long v10; // rsi
unsigned long long v11; // rax
bool v12; // cc
unsigned long long v13; // rax
char *v14; // rbx
long long v15; // rax
long long v16; // r13
long long v17; // rax
unsigned int v18; // r14d
long long v19; // rax
long long v20; // rax
long long v21; // r15
long long v24[3]; // [rsp+8h] [rbp-E8h] BYREF
unsigned long long v25; // [rsp+20h] [rbp-D0h] BYREF
long long *v26[7]; // [rsp+28h] [rbp-C8h] BYREF
_QWORD v27[3]; // [rsp+60h] [rbp-90h] BYREF
int v28; // [rsp+78h] [rbp-78h]
long long v29; // [rsp+80h] [rbp-70h]
unsigned long long v30; // [rsp+88h] [rbp-68h] BYREF
long long *v31; // [rsp+90h] [rbp-60h] BYREF
long long v32; // [rsp+98h] [rbp-58h]
long long v33; // [rsp+A0h] [rbp-50h]
int v34; // [rsp+ACh] [rbp-44h]
long long *v35; // [rsp+B0h] [rbp-40h]
int v36; // [rsp+BCh] [rbp-34h]
unsigned long long v37; // [rsp+C0h] [rbp-30h]
v37 = __readfsqword(0x28u);
v5 = *a1;
v6 = *(_QWORD *)(a2 + 8);
v7 = *(_QWORD *)(*(_QWORD *)(*a1 + 280) + 8LL * *(unsigned __int8 *)(v6 + 165));
v32 = a2;
if ( v7 != -1LL )
{
v35 = a4;
inserted = maria_rtree_insert_req(a1, a2, v7, &v30, a3, 0LL);
if ( inserted != 1 )
return inserted;
v29 = *(unsigned int *)(v5 + 996);
v31 = v24;
v9 = *(unsigned __int16 *)(v6 + 166);
v10 = v9 + *(unsigned __int16 *)(v6 + 176);
v25 = v10;
v11 = *(_QWORD *)a1[15] - (_QWORD)&v25;
v12 = v11 <= v10;
v13 = v11 - v10;
if ( v12 || v13 <= 0x10000 && ((unsigned int)v10 < 0x1000 || v13 < 0x8001) )
{
v19 = my_malloc(0LL, v10, &stru_10010);
if ( !v19 )
{
*(_DWORD *)my_thread_var(0LL) = 128;
return (unsigned int)-1;
}
v14 = (char *)v19;
v9 = *(unsigned __int16 *)(v6 + 166);
v36 = 0;
}
else
{
v14 = (char *)&v24[-1] - (((_DWORD)v10 + 15) & 0xFFFFFFF0);
LOBYTE(v13) = 1;
v36 = v13;
}
memset(v14, 0LL, v9);
v14[*(_DWORD *)(v5 + 1860) - 3] = 1;
v14[*(_DWORD *)(v5 + 1860) - 4] = *(_BYTE *)(v6 + 165);
v20 = *(unsigned int *)(v5 + 1860);
v14[v20 - 1] = v20;
v14[*(unsigned int *)(v5 + 1860) - 2] = BYTE1(v20);
v33 = ma_new(a1, 3, (long long *)&v31);
if ( v33 != -1 )
{
v34 = *((_DWORD *)v31 + 3);
ma_page_setup((long long)v26, a1, v6, v33, (long long)v14);
if ( !*(_BYTE *)(v5 + 2023) || !ma_log_new(v26, 1) )
{
v21 = (long long)&v14[*(unsigned __int16 *)(v6 + 166)];
v27[1] = v6;
v27[0] = v21 + v29;
v27[2] = *(_QWORD *)(v32 + 16);
v28 = 0;
ma_kpointer((long long)a1, v21, v7);
if ( !(unsigned int)maria_rtree_set_key_mbr(a1, v27, v7)
&& (unsigned int)maria_rtree_add_key(v27, v26, 0LL) != -1 )
{
ma_kpointer((long long)a1, v21, v30);
if ( !(unsigned int)maria_rtree_set_key_mbr(a1, v27, v30)
&& (unsigned int)maria_rtree_add_key(v27, v26, 0LL) != -1
&& !(unsigned __int8)ma_write_keypage(v26, v34, 3) )
{
*v35 = v33;
if ( !(_BYTE)v36 )
my_free(v14);
return 1;
}
}
}
}
if ( !(_BYTE)v36 )
my_free(v14);
return (unsigned int)-1;
}
v24[0] = (long long)v27;
v15 = ma_new(a1, 3, v24);
if ( v15 == -1 )
return (unsigned int)-1;
v16 = v15;
v35 = a4;
v36 = *(_DWORD *)(v24[0] + 12);
*((_BYTE *)a1 + 1669) = 1;
memset(a1[111], 0LL, *(unsigned int *)(v5 + 1980));
*(_BYTE *)(a1[111] + (unsigned int)(*(_DWORD *)(v5 + 1860) - 4)) = *(_BYTE *)(v6 + 165);
v17 = *(unsigned int *)(v5 + 1860);
*(_BYTE *)(a1[111] + v17 - 1) = v17;
*(_BYTE *)(a1[111] + *(unsigned int *)(v5 + 1860) - 2) = BYTE1(v17);
ma_page_setup((long long)v26, a1, v6, v16, a1[111]);
if ( !*(_BYTE *)(v5 + 2023) || (inserted = 1, !ma_log_new(v26, 1)) )
{
v18 = maria_rtree_add_key(v32, v26, 0LL);
inserted = 1;
if ( !(unsigned __int8)ma_write_keypage(v26, v36, 3) )
{
*v35 = v16;
return v18;
}
}
return inserted;
}
|
maria_rtree_insert_level:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xc8
MOV RBX,RCX
MOV R14,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV R15,qword ptr [RDI]
MOV R12,qword ptr [RSI + 0x8]
MOV RAX,qword ptr [R15 + 0x118]
MOVZX ECX,byte ptr [R12 + 0xa5]
MOV R13,qword ptr [RAX + RCX*0x8]
CMP R13,-0x1
MOV qword ptr [RBP + -0x58],RSI
JZ 0x001744b3
MOV R8D,EDX
MOV qword ptr [RBP + -0x40],RBX
LEA RCX,[RBP + -0x68]
MOV RDI,R14
MOV RDX,R13
XOR R9D,R9D
CALL 0x001747e1
MOV EBX,EAX
CMP EAX,0x1
JNZ 0x00174717
MOV EAX,dword ptr [R15 + 0x3e4]
MOV qword ptr [RBP + -0x70],RAX
LEA RAX,[RBP + -0xe8]
MOV qword ptr [RBP + -0x60],RAX
MOVZX EDX,word ptr [R12 + 0xa6]
MOVZX ESI,word ptr [R12 + 0xb0]
ADD RSI,RDX
LEA RCX,[RBP + -0xd0]
MOV qword ptr [RCX],RSI
MOV RAX,qword ptr [R14 + 0x78]
MOV RAX,qword ptr [RAX]
SUB RAX,RCX
SUB RAX,RSI
JBE 0x001745d4
CMP RAX,0x10000
JA 0x0017449a
CMP ESI,0x1000
JC 0x001745d4
CMP RAX,0x8001
JC 0x001745d4
LAB_0017449a:
MOV RBX,RSP
ADD ESI,0xf
AND ESI,0xfffffff0
SUB RBX,RSI
MOV RSP,RBX
MOV AL,0x1
MOV dword ptr [RBP + -0x34],EAX
JMP 0x001745fc
LAB_001744b3:
LEA RAX,[RBP + -0x90]
LEA RDX,[RBP + -0xe8]
MOV qword ptr [RDX],RAX
MOV RDI,R14
MOV ESI,0x3
CALL 0x0014121f
CMP RAX,-0x1
JZ 0x00174712
MOV R13,RAX
MOV qword ptr [RBP + -0x40],RBX
MOV RAX,qword ptr [RBP + -0xe8]
MOV EAX,dword ptr [RAX + 0xc]
MOV dword ptr [RBP + -0x34],EAX
MOV byte ptr [R14 + 0x685],0x1
MOV RDI,qword ptr [R14 + 0x378]
MOV EDX,dword ptr [R15 + 0x7bc]
XOR ESI,ESI
CALL 0x0012b2f0
MOV AL,byte ptr [R12 + 0xa5]
MOV RCX,qword ptr [R14 + 0x378]
MOV EDX,dword ptr [R15 + 0x744]
ADD EDX,-0x4
MOV byte ptr [RCX + RDX*0x1],AL
MOV EAX,dword ptr [R15 + 0x744]
MOV RCX,qword ptr [R14 + 0x378]
MOV byte ptr [RCX + RAX*0x1 + -0x1],AL
MOV RCX,qword ptr [R14 + 0x378]
MOV EDX,dword ptr [R15 + 0x744]
MOV byte ptr [RCX + RDX*0x1 + -0x2],AH
MOV R8,qword ptr [R14 + 0x378]
LEA RDI,[RBP + -0xc8]
MOV RSI,R14
MOV RDX,R12
MOV RCX,R13
CALL 0x00140da4
CMP byte ptr [R15 + 0x7e7],0x0
JZ 0x00174590
LEA RDI,[RBP + -0xc8]
MOV EBX,0x1
MOV ESI,0x1
CALL 0x00158848
TEST AL,AL
JNZ 0x00174717
LAB_00174590:
LEA RBX,[RBP + -0xc8]
MOV RDI,qword ptr [RBP + -0x58]
MOV RSI,RBX
XOR EDX,EDX
CALL 0x00175a48
MOV R14D,EAX
MOV RDI,RBX
MOV ESI,dword ptr [RBP + -0x34]
MOV EDX,0x3
CALL 0x00140f35
MOV EBX,0x1
TEST AL,AL
JNZ 0x00174717
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RAX],R13
MOV EBX,R14D
JMP 0x00174717
LAB_001745d4:
MOV EDX,0x10010
XOR EDI,EDI
CALL 0x001c3acd
TEST RAX,RAX
JZ 0x00174707
MOV RBX,RAX
MOVZX EDX,word ptr [R12 + 0xa6]
MOV dword ptr [RBP + -0x34],0x0
LAB_001745fc:
MOV RDI,RBX
XOR ESI,ESI
CALL 0x0012b2f0
MOV EAX,dword ptr [R15 + 0x744]
ADD EAX,-0x3
MOV byte ptr [RBX + RAX*0x1],0x1
MOV AL,byte ptr [R12 + 0xa5]
MOV ECX,dword ptr [R15 + 0x744]
ADD ECX,-0x4
MOV byte ptr [RBX + RCX*0x1],AL
MOV EAX,dword ptr [R15 + 0x744]
MOV byte ptr [RBX + RAX*0x1 + -0x1],AL
MOV ECX,dword ptr [R15 + 0x744]
MOV byte ptr [RBX + RCX*0x1 + -0x2],AH
LEA RDX,[RBP + -0x60]
MOV RDI,R14
MOV ESI,0x3
CALL 0x0014121f
MOV qword ptr [RBP + -0x50],RAX
CMP RAX,-0x1
JZ 0x001746f7
MOV RAX,qword ptr [RBP + -0x60]
MOV EAX,dword ptr [RAX + 0xc]
MOV dword ptr [RBP + -0x44],EAX
LEA RDI,[RBP + -0xc8]
MOV RSI,R14
MOV RDX,R12
MOV RCX,qword ptr [RBP + -0x50]
MOV R8,RBX
CALL 0x00140da4
CMP byte ptr [R15 + 0x7e7],0x0
JZ 0x001746a0
LEA RDI,[RBP + -0xc8]
MOV ESI,0x1
CALL 0x00158848
TEST AL,AL
JNZ 0x001746f7
LAB_001746a0:
MOVZX R15D,word ptr [R12 + 0xa6]
ADD R15,RBX
MOV RAX,qword ptr [RBP + -0x70]
ADD RAX,R15
LEA RCX,[RBP + -0x90]
MOV qword ptr [RCX + 0x8],R12
MOV qword ptr [RCX],RAX
MOV RAX,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RCX + 0x10],RAX
MOV dword ptr [RCX + 0x18],0x0
MOV R12,RCX
MOV RDI,R14
MOV RSI,R15
MOV RDX,R13
CALL 0x0013eeb5
MOV RDI,R14
MOV RSI,R12
MOV RDX,R13
CALL 0x00175be7
TEST EAX,EAX
JZ 0x0017473b
LAB_001746f7:
CMP byte ptr [RBP + -0x34],0x0
JNZ 0x00174712
MOV RDI,RBX
CALL 0x001c3cfa
JMP 0x00174712
LAB_00174707:
CALL 0x001c5c9a
MOV dword ptr [RAX],0x80
LAB_00174712:
MOV EBX,0xffffffff
LAB_00174717:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x001747dc
MOV EAX,EBX
LEA RSP,[RBP + -0x28]
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0017473b:
LEA RDI,[RBP + -0x90]
LEA RSI,[RBP + -0xc8]
XOR EDX,EDX
CALL 0x00175a48
CMP EAX,-0x1
JZ 0x001746f7
MOV RDX,qword ptr [RBP + -0x68]
MOV RDI,R14
MOV RSI,R15
CALL 0x0013eeb5
MOV RDX,qword ptr [RBP + -0x68]
LEA RSI,[RBP + -0x90]
MOV RDI,R14
CALL 0x00175be7
TEST EAX,EAX
JNZ 0x001746f7
LEA RDI,[RBP + -0x90]
LEA RSI,[RBP + -0xc8]
XOR EDX,EDX
CALL 0x00175a48
CMP EAX,-0x1
JZ 0x001746f7
LEA RDI,[RBP + -0xc8]
MOV ESI,dword ptr [RBP + -0x44]
MOV EDX,0x3
CALL 0x00140f35
TEST AL,AL
JNZ 0x001746f7
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x50]
MOV qword ptr [RAX],RCX
CMP byte ptr [RBP + -0x34],0x0
JNZ 0x001747d2
MOV RDI,RBX
CALL 0x001c3cfa
LAB_001747d2:
MOV EBX,0x1
JMP 0x00174717
LAB_001747dc:
CALL 0x0012b280
|
int maria_rtree_insert_level(long *param_1,long param_2,int4 param_3,long *param_4)
{
uint uVar1;
long lVar2;
int8 uVar3;
int4 uVar4;
char cVar5;
int iVar6;
int iVar7;
ulong uVar8;
long lVar9;
int1 *__s;
long lVar10;
int4 *puVar11;
size_t __n;
int1 *puVar12;
int1 *puVar13;
long lVar14;
long in_FS_OFFSET;
int1 auStack_f8 [8];
long *local_f0 [3];
ulong local_d8;
int1 local_d0 [56];
long local_98;
long local_90;
int8 local_88;
int4 local_80;
ulong local_78;
int8 local_70;
long **local_68;
long local_60;
long local_58;
int4 local_4c;
long *local_48;
int4 local_3c;
long local_38;
puVar12 = auStack_f8;
puVar13 = auStack_f8;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
lVar14 = *param_1;
lVar2 = *(long *)(param_2 + 8);
lVar9 = *(long *)(*(long *)(lVar14 + 0x118) + (ulong)*(byte *)(lVar2 + 0xa5) * 8);
local_60 = param_2;
if (lVar9 == -1) {
local_f0[0] = &local_98;
lVar9 = _ma_new(param_1);
if (lVar9 != -1) {
local_3c = *(int4 *)((long)local_f0[0] + 0xc);
*(int1 *)((long)param_1 + 0x685) = 1;
local_48 = param_4;
memset((void *)param_1[0x6f],0,(ulong)*(uint *)(lVar14 + 0x7bc));
*(int1 *)(param_1[0x6f] + (ulong)(*(int *)(lVar14 + 0x744) - 4)) =
*(int1 *)(lVar2 + 0xa5);
uVar1 = *(uint *)(lVar14 + 0x744);
*(char *)(param_1[0x6f] + -1 + (ulong)uVar1) = (char)uVar1;
*(char *)(param_1[0x6f] + -2 + (ulong)*(uint *)(lVar14 + 0x744)) = (char)(uVar1 >> 8);
_ma_page_setup(local_d0,param_1,lVar2,lVar9,param_1[0x6f]);
if (*(char *)(lVar14 + 0x7e7) != '\0') {
cVar5 = _ma_log_new(local_d0,1);
puVar13 = auStack_f8;
iVar6 = 1;
if (cVar5 != '\0') goto LAB_00174717;
}
iVar7 = maria_rtree_add_key(local_60,local_d0,0);
cVar5 = _ma_write_keypage(local_d0,local_3c,3);
puVar13 = auStack_f8;
iVar6 = 1;
if (cVar5 == '\0') {
*local_48 = lVar9;
puVar13 = auStack_f8;
iVar6 = iVar7;
}
goto LAB_00174717;
}
}
else {
local_48 = param_4;
iVar6 = maria_rtree_insert_req(param_1,param_2,lVar9,&local_70,param_3,0);
puVar13 = auStack_f8;
if (iVar6 != 1) goto LAB_00174717;
local_78 = (ulong)*(uint *)(lVar14 + 0x3e4);
local_68 = local_f0;
__n = (size_t)*(ushort *)(lVar2 + 0xa6);
local_d8 = *(ushort *)(lVar2 + 0xb0) + __n;
uVar8 = (*(long *)param_1[0xf] - (long)&local_d8) - local_d8;
if (((ulong)(*(long *)param_1[0xf] - (long)&local_d8) < local_d8 || uVar8 == 0) ||
((uVar8 < 0x10001 && (((uint)local_d8 < 0x1000 || (uVar8 < 0x8001)))))) {
__s = (int1 *)my_malloc(0,local_d8,0x10010);
if (__s == (int1 *)0x0) {
puVar11 = (int4 *)_my_thread_var();
*puVar11 = 0x80;
puVar13 = auStack_f8;
goto LAB_00174712;
}
__n = (size_t)*(ushort *)(lVar2 + 0xa6);
local_3c = 0;
}
else {
__s = auStack_f8 + -(ulong)((uint)local_d8 + 0xf & 0xfffffff0);
local_3c = (int4)CONCAT71((int7)(uVar8 >> 8),1);
puVar12 = __s;
}
*(int8 *)(puVar12 + -8) = 0x174606;
memset(__s,0,__n);
*(int1 *)((long)__s + (ulong)(*(int *)(lVar14 + 0x744) - 3)) = 1;
*(int1 *)((long)__s + (ulong)(*(int *)(lVar14 + 0x744) - 4)) =
*(int1 *)(lVar2 + 0xa5);
uVar1 = *(uint *)(lVar14 + 0x744);
*(char *)((long)__s + ((ulong)uVar1 - 1)) = (char)uVar1;
*(char *)((long)__s + ((ulong)*(uint *)(lVar14 + 0x744) - 2)) = (char)(uVar1 >> 8);
*(int8 *)(puVar12 + -8) = 0x174650;
lVar10 = _ma_new(param_1,3,&local_68);
local_58 = lVar10;
if (lVar10 != -1) {
local_4c = *(int4 *)((long)local_68 + 0xc);
*(int8 *)(puVar12 + -8) = 0x174681;
_ma_page_setup(local_d0,param_1,lVar2,lVar10,__s);
if (*(char *)(lVar14 + 0x7e7) != '\0') {
*(int8 *)(puVar12 + -8) = 0x17469c;
cVar5 = _ma_log_new(local_d0,1);
if (cVar5 != '\0') goto LAB_001746f7;
}
lVar14 = (ulong)*(ushort *)(lVar2 + 0xa6) + (long)__s;
local_98 = local_78 + lVar14;
local_88 = *(int8 *)(local_60 + 0x10);
local_80 = 0;
local_90 = lVar2;
*(int8 *)(puVar12 + -8) = 0x1746e5;
_ma_kpointer(param_1,lVar14,lVar9);
*(int8 *)(puVar12 + -8) = 0x1746f3;
iVar6 = maria_rtree_set_key_mbr(param_1,&local_98,lVar9);
if (iVar6 == 0) {
*(int8 *)(puVar12 + -8) = 0x174750;
iVar6 = maria_rtree_add_key(&local_98,local_d0,0);
uVar3 = local_70;
if (iVar6 != -1) {
*(int8 *)(puVar12 + -8) = 0x174764;
_ma_kpointer(param_1,lVar14,uVar3);
*(int8 *)(puVar12 + -8) = 0x174777;
iVar6 = maria_rtree_set_key_mbr(param_1,&local_98,local_70);
if (iVar6 == 0) {
*(int8 *)(puVar12 + -8) = 0x174794;
iVar6 = maria_rtree_add_key(&local_98,local_d0,0);
uVar4 = local_4c;
if (iVar6 != -1) {
*(int8 *)(puVar12 + -8) = 0x1747b1;
cVar5 = _ma_write_keypage(local_d0,uVar4,3);
if (cVar5 == '\0') {
*local_48 = local_58;
if ((char)local_3c == '\0') {
*(int8 *)(puVar12 + -8) = 0x1747d2;
my_free(__s);
}
puVar13 = puVar12;
iVar6 = 1;
goto LAB_00174717;
}
}
}
}
}
}
LAB_001746f7:
puVar13 = puVar12;
if ((char)local_3c == '\0') {
*(int8 *)(puVar12 + -8) = 0x174705;
my_free(__s);
}
}
LAB_00174712:
iVar6 = -1;
LAB_00174717:
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return iVar6;
}
/* WARNING: Subroutine does not return */
*(code **)(puVar13 + -8) = maria_rtree_insert_req;
__stack_chk_fail();
}
|
|
60,704
|
validate_fp16
|
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-quants.c
|
static bool validate_fp16(ggml_fp16_t f, size_t i) {
if (isinf_fp16(f)) {
fprintf(stderr, "ggml_validate_row_data: found inf value at block %zu\n", i);
return false;
}
if (isnan_fp16(f)) {
fprintf(stderr, "ggml_validate_row_data: found nan value at block %zu\n", i);
return false;
}
return true;
}
|
O0
|
c
|
validate_fp16:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movw %di, %ax
movw %ax, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movzwl -0x4(%rbp), %edi
callq 0x89bc0
testb $0x1, %al
jne 0x88062
jmp 0x88084
movq 0x57f67(%rip), %rax # 0xdffd0
movq (%rax), %rdi
movq -0x10(%rbp), %rdx
leaq 0x3a0dc(%rip), %rsi # 0xc2153
movb $0x0, %al
callq 0x47a10
movb $0x0, -0x1(%rbp)
jmp 0x880b9
movzwl -0x4(%rbp), %edi
callq 0x89c00
testb $0x1, %al
jne 0x88093
jmp 0x880b5
movq 0x57f36(%rip), %rax # 0xdffd0
movq (%rax), %rdi
movq -0x10(%rbp), %rdx
leaq 0x3a0e1(%rip), %rsi # 0xc2189
movb $0x0, %al
callq 0x47a10
movb $0x0, -0x1(%rbp)
jmp 0x880b9
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
validate_fp16:
push rbp
mov rbp, rsp
sub rsp, 10h
mov ax, di
mov [rbp+var_4], ax
mov [rbp+var_10], rsi
movzx edi, [rbp+var_4]
call isinf_fp16
test al, 1
jnz short loc_88062
jmp short loc_88084
loc_88062:
mov rax, cs:stderr_ptr
mov rdi, [rax]
mov rdx, [rbp+var_10]
lea rsi, aGgmlValidateRo_1; "ggml_validate_row_data: found inf value"...
mov al, 0
call _fprintf
mov [rbp+var_1], 0
jmp short loc_880B9
loc_88084:
movzx edi, [rbp+var_4]
call isnan_fp16
test al, 1
jnz short loc_88093
jmp short loc_880B5
loc_88093:
mov rax, cs:stderr_ptr
mov rdi, [rax]
mov rdx, [rbp+var_10]
lea rsi, aGgmlValidateRo_2; "ggml_validate_row_data: found nan value"...
mov al, 0
call _fprintf
mov [rbp+var_1], 0
jmp short loc_880B9
loc_880B5:
mov [rbp+var_1], 1
loc_880B9:
mov al, [rbp+var_1]
and al, 1
add rsp, 10h
pop rbp
retn
|
char validate_fp16(unsigned __int16 a1, long long a2)
{
if ( (isinf_fp16(a1) & 1) != 0 )
{
fprintf(stderr, "ggml_validate_row_data: found inf value at block %zu\n", a2);
return 0;
}
else if ( (isnan_fp16(a1) & 1) != 0 )
{
fprintf(stderr, "ggml_validate_row_data: found nan value at block %zu\n", a2);
return 0;
}
else
{
return 1;
}
}
|
validate_fp16:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV AX,DI
MOV word ptr [RBP + -0x4],AX
MOV qword ptr [RBP + -0x10],RSI
MOVZX EDI,word ptr [RBP + -0x4]
CALL 0x00189bc0
TEST AL,0x1
JNZ 0x00188062
JMP 0x00188084
LAB_00188062:
MOV RAX,qword ptr [0x001dffd0]
MOV RDI,qword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x10]
LEA RSI,[0x1c2153]
MOV AL,0x0
CALL 0x00147a10
MOV byte ptr [RBP + -0x1],0x0
JMP 0x001880b9
LAB_00188084:
MOVZX EDI,word ptr [RBP + -0x4]
CALL 0x00189c00
TEST AL,0x1
JNZ 0x00188093
JMP 0x001880b5
LAB_00188093:
MOV RAX,qword ptr [0x001dffd0]
MOV RDI,qword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x10]
LEA RSI,[0x1c2189]
MOV AL,0x0
CALL 0x00147a10
MOV byte ptr [RBP + -0x1],0x0
JMP 0x001880b9
LAB_001880b5:
MOV byte ptr [RBP + -0x1],0x1
LAB_001880b9:
MOV AL,byte ptr [RBP + -0x1]
AND AL,0x1
ADD RSP,0x10
POP RBP
RET
|
int1 validate_fp16(int2 param_1,int8 param_2)
{
ulong uVar1;
int1 local_9;
uVar1 = isinf_fp16(param_1);
if ((uVar1 & 1) == 0) {
uVar1 = isnan_fp16(param_1);
if ((uVar1 & 1) == 0) {
local_9 = 1;
}
else {
fprintf(*(FILE **)PTR_stderr_001dffd0,"ggml_validate_row_data: found nan value at block %zu\n"
,param_2);
local_9 = 0;
}
}
else {
fprintf(*(FILE **)PTR_stderr_001dffd0,"ggml_validate_row_data: found inf value at block %zu\n",
param_2);
local_9 = 0;
}
return local_9;
}
|
|
60,705
|
js_error_constructor
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_error_constructor(JSContext *ctx, JSValue new_target,
int argc, JSValue *argv, int magic)
{
JSValue obj, msg, proto, cause;
JSValue message;
int opts;
BOOL present;
if (JS_IsUndefined(new_target))
new_target = JS_GetActiveFunction(ctx);
proto = JS_GetProperty(ctx, new_target, JS_ATOM_prototype);
if (JS_IsException(proto))
return proto;
if (!JS_IsObject(proto)) {
JSContext *realm;
JSValue proto1;
JS_FreeValue(ctx, proto);
realm = JS_GetFunctionRealm(ctx, new_target);
if (!realm)
return JS_EXCEPTION;
if (magic < 0) {
proto1 = realm->class_proto[JS_CLASS_ERROR];
} else {
proto1 = realm->native_error_proto[magic];
}
proto = js_dup(proto1);
}
obj = JS_NewObjectProtoClass(ctx, proto, JS_CLASS_ERROR);
JS_FreeValue(ctx, proto);
if (JS_IsException(obj))
return obj;
if (magic == JS_AGGREGATE_ERROR) {
message = argv[1];
opts = 2;
} else {
message = argv[0];
opts = 1;
}
if (!JS_IsUndefined(message)) {
msg = JS_ToString(ctx, message);
if (unlikely(JS_IsException(msg)))
goto exception;
JS_DefinePropertyValue(ctx, obj, JS_ATOM_message, msg,
JS_PROP_WRITABLE | JS_PROP_CONFIGURABLE);
}
if (argc > opts && JS_VALUE_GET_TAG(argv[opts]) == JS_TAG_OBJECT) {
present = JS_HasProperty(ctx, argv[opts], JS_ATOM_cause);
if (unlikely(present < 0))
goto exception;
if (present) {
cause = JS_GetProperty(ctx, argv[opts], JS_ATOM_cause);
if (unlikely(JS_IsException(cause)))
goto exception;
JS_DefinePropertyValue(ctx, obj, JS_ATOM_cause, cause,
JS_PROP_WRITABLE | JS_PROP_CONFIGURABLE);
}
}
if (magic == JS_AGGREGATE_ERROR) {
JSValue error_list = iterator_to_array(ctx, argv[0]);
if (JS_IsException(error_list))
goto exception;
JS_DefinePropertyValue(ctx, obj, JS_ATOM_errors, error_list,
JS_PROP_WRITABLE | JS_PROP_CONFIGURABLE);
}
/* skip the Error() function in the backtrace */
build_backtrace(ctx, obj, JS_UNDEFINED, NULL, 0, 0, JS_BACKTRACE_FLAG_SKIP_FIRST_LEVEL);
return obj;
exception:
JS_FreeValue(ctx, obj);
return JS_EXCEPTION;
}
|
O1
|
c
|
js_error_constructor:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %r9d, %ebp
movq %r8, 0x8(%rsp)
movl %ecx, (%rsp)
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, %rbx
cmpl $0x3, %r13d
jne 0x381e3
movq 0x18(%rbx), %rax
movq 0x108(%rax), %rax
movq 0x8(%rax), %r12
movq 0x10(%rax), %r13
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
movl $0x3c, %ecx
movq %r12, %r8
movq %r13, %r9
pushq $0x0
pushq $0x0
callq 0x22fa3
addq $0x10, %rsp
movq %rax, %r15
movq %rdx, %r14
cmpl $-0x1, %r14d
je 0x3828a
cmpl $0x6, %r14d
je 0x38476
movq 0x18(%rbx), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1d8c6
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x54e81
testq %rax, %rax
je 0x38281
testl %ebp, %ebp
js 0x3825d
movl %ebp, %edx
shlq $0x4, %rdx
leaq (%rax,%rdx), %rcx
addq $0x98, %rcx
addq %rax, %rdx
addq $0xa0, %rdx
jmp 0x38269
movq 0x40(%rax), %rdx
leaq 0x30(%rdx), %rcx
addq $0x38, %rdx
movq (%rdx), %r14
movq (%rcx), %r15
movq %r15, 0x30(%rsp)
cmpl $-0x9, %r14d
jb 0x38281
movq 0x30(%rsp), %rcx
incl (%rcx)
testq %rax, %rax
je 0x3841c
movq %r14, %r12
movq %r15, %r13
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl $0x3, %ecx
callq 0x20f05
movq %rax, %r15
movq %rdx, %r14
movq 0x18(%rbx), %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x1d8c6
cmpl $0x6, %r14d
je 0x38476
xorl %r12d, %r12d
movl %ebp, %r13d
cmpl $0x7, %ebp
sete %r12b
movl %r12d, %eax
shll $0x4, %eax
movq 0x8(%rsp), %rbp
movq 0x8(%rbp,%rax), %rdx
cmpl $0x3, %edx
je 0x3832c
xorl %eax, %eax
cmpl $0x7, %r13d
sete %al
shll $0x4, %eax
movq (%rbp,%rax), %rsi
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x27add
movq %rdx, %r9
cmpl $0x6, %r9d
je 0x3840d
subq $0x8, %rsp
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl $0x33, %ecx
movq %rax, %r8
pushq $0x3
callq 0x26abb
addq $0x10, %rsp
incl %r12d
cmpl (%rsp), %r12d
jge 0x38347
shll $0x4, %r12d
movq 0x8(%rbp,%r12), %rdx
cmpl $-0x1, %edx
je 0x3849e
cmpl $0x7, %r13d
jne 0x3844f
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x4180b
movl $0x3, %ebp
cmpl $0x6, %edx
movq %rax, 0x40(%rsp)
movq %rdx, 0x8(%rsp)
jne 0x3838b
movq $0x0, (%rsp)
movl $0x3, %eax
movq %rax, 0x18(%rsp)
jmp 0x383be
movq %rax, %r13
movq %rbx, %rdi
movq %rax, %rsi
movl $0x6b, %ecx
movq %rax, %r8
movq %rdx, %r9
pushq $0x0
pushq $0x0
callq 0x22fa3
addq $0x10, %rsp
movq %rax, (%rsp)
movq %rdx, 0x18(%rsp)
cmpl $0x6, %edx
jne 0x38516
xorl %eax, %eax
xorl %r12d, %r12d
shlq $0x20, %r12
movl %eax, %esi
orq %r12, %rsi
movq 0x18(%rbx), %rdi
movq %rbp, %rdx
callq 0x1d8c6
movl $0x6, %ebp
xorl %r13d, %r13d
xorl %r12d, %r12d
movq 0x18(%rbx), %rdi
movq (%rsp), %rsi
movq 0x18(%rsp), %rdx
callq 0x1d8c6
movq 0x18(%rbx), %rdi
movq 0x40(%rsp), %rsi
movq 0x8(%rsp), %rdx
callq 0x1d8c6
cmpl $0x6, %ebp
jne 0x38429
movq 0x18(%rbx), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1d8c6
movl $0x6, %r14d
xorl %r15d, %r15d
xorl %ecx, %ecx
jmp 0x38486
orq %r13, %r12
subq $0x8, %rsp
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl $0x35, %ecx
movq %r12, %r8
movq %rbp, %r9
pushq $0x3
callq 0x26abb
addq $0x10, %rsp
subq $0x8, %rsp
xorl %eax, %eax
movl $0x3, %r8d
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
xorl %ecx, %ecx
xorl %r9d, %r9d
pushq $0x1
pushq %rax
pushq %rax
callq 0x2fe72
addq $0x20, %rsp
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
movq %r15, %rcx
andq %rax, %rcx
movl %r15d, %eax
orq %rcx, %rax
movq %r14, %rdx
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
addq %rbp, %r12
movq (%r12), %rsi
movq %rbx, %rdi
movl $0x34, %ecx
callq 0xf753
testl %eax, %eax
js 0x3840d
je 0x38347
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %rbx, %rdi
movl $0x34, %ecx
movq %rsi, %r8
movq %rdx, %r9
pushq $0x0
pushq $0x0
callq 0x22fa3
addq $0x10, %rsp
movq %rdx, %r9
cmpl $0x6, %r9d
je 0x3840d
subq $0x8, %rsp
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl $0x34, %ecx
movq %rax, %r8
pushq $0x3
callq 0x26abb
addq $0x10, %rsp
jmp 0x38347
movq 0x38(%rbx), %rsi
incl (%rsi)
movq %rbx, %rdi
movl $0x2, %edx
callq 0xf516
movq %rdx, %rbp
movq %rax, %r12
shrq $0x20, %r12
cmpl $0x6, %ebp
je 0x383c3
movq %rax, 0x20(%rsp)
leaq 0x14(%rsp), %rax
movq %rbx, %rdi
movq %r13, %rsi
movq 0x8(%rsp), %rdx
movq (%rsp), %rcx
movq 0x18(%rsp), %r8
xorl %r9d, %r9d
pushq %rax
pushq $0x0
callq 0x41afc
addq $0x10, %rsp
cmpl $0x6, %edx
je 0x38619
movq $0x0, 0x28(%rsp)
movq 0x28(%rsp), %rcx
cmpl $0x0, 0x14(%rsp)
jne 0x38638
movq %rax, 0x30(%rsp)
movq %rdx, 0x38(%rsp)
movq %rcx, %r8
shrq $0x1f, %r8
movl %ecx, %eax
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
movq %xmm0, %rcx
cmoveq %rax, %rcx
movl $0x7, %eax
cmovneq %rax, %r8
subq $0x10, %rsp
movups 0x40(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movq 0x30(%rsp), %rsi
movq %rbp, %rdx
movl $0x4007, %r9d # imm = 0x4007
callq 0x26b2d
addq $0x10, %rsp
testl %eax, %eax
js 0x38619
incq 0x28(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
movq 0x8(%rsp), %rdx
movq (%rsp), %rcx
movq 0x18(%rsp), %r8
xorl %r9d, %r9d
leaq 0x14(%rsp), %rax
pushq %rax
pushq $0x0
callq 0x41afc
addq $0x10, %rsp
cmpl $0x6, %edx
jne 0x3857b
movq %rbx, %rdi
movq %r13, %rsi
movq 0x8(%rsp), %rdx
movl $0x1, %ecx
callq 0x3faa9
movq 0x20(%rsp), %rax
jmp 0x383c3
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
movq 0x20(%rsp), %rcx
movq %rcx, %r12
andq %rax, %r12
movl %ecx, %r13d
jmp 0x383e3
|
js_error_constructor:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov ebp, r9d
mov [rsp+78h+var_70], r8
mov dword ptr [rsp+78h+var_78], ecx
mov r13, rdx
mov r12, rsi
mov rbx, rdi
cmp r13d, 3
jnz short loc_381E3
mov rax, [rbx+18h]
mov rax, [rax+108h]
mov r12, [rax+8]
mov r13, [rax+10h]
loc_381E3:
mov rdi, rbx
mov rsi, r12
mov rdx, r13
mov ecx, 3Ch ; '<'
mov r8, r12
mov r9, r13
push 0
push 0
call JS_GetPropertyInternal2
add rsp, 10h
mov r15, rax
mov r14, rdx
cmp r14d, 0FFFFFFFFh
jz short loc_3828A
cmp r14d, 6
jz loc_38476
mov rdi, [rbx+18h]
mov rsi, r15
mov rdx, r14
call JS_FreeValueRT
mov rdi, rbx
mov rsi, r12
mov rdx, r13
call JS_GetFunctionRealm
test rax, rax
jz short loc_38281
test ebp, ebp
js short loc_3825D
mov edx, ebp
shl rdx, 4
lea rcx, [rax+rdx]
add rcx, 98h
add rdx, rax
add rdx, 0A0h
jmp short loc_38269
loc_3825D:
mov rdx, [rax+40h]
lea rcx, [rdx+30h]
add rdx, 38h ; '8'
loc_38269:
mov r14, [rdx]
mov r15, [rcx]
mov qword ptr [rsp+78h+var_48], r15
cmp r14d, 0FFFFFFF7h
jb short loc_38281
mov rcx, qword ptr [rsp+78h+var_48]
inc dword ptr [rcx]
loc_38281:
test rax, rax
jz loc_3841C
loc_3828A:
mov r12, r14
mov r13, r15
mov rdi, rbx
mov rsi, r15
mov rdx, r14
mov ecx, 3
call JS_NewObjectProtoClass
mov r15, rax
mov r14, rdx
mov rdi, [rbx+18h]
mov rsi, r13
mov rdx, r12
call JS_FreeValueRT
cmp r14d, 6
jz loc_38476
xor r12d, r12d
mov r13d, ebp
cmp ebp, 7
setz r12b
mov eax, r12d
shl eax, 4
mov rbp, [rsp+78h+var_70]
mov rdx, [rbp+rax+8]
cmp edx, 3
jz short loc_3832C
xor eax, eax
cmp r13d, 7
setz al
shl eax, 4
mov rsi, [rbp+rax+0]
mov rdi, rbx
xor ecx, ecx
call JS_ToStringInternal
mov r9, rdx
cmp r9d, 6
jz loc_3840D
sub rsp, 8
mov rdi, rbx
mov rsi, r15
mov rdx, r14
mov ecx, 33h ; '3'
mov r8, rax
push 3
call JS_DefinePropertyValue
add rsp, 10h
loc_3832C:
inc r12d
cmp r12d, dword ptr [rsp+78h+var_78]
jge short loc_38347
shl r12d, 4
mov rdx, [rbp+r12+8]
cmp edx, 0FFFFFFFFh
jz loc_3849E
loc_38347:
cmp r13d, 7
jnz loc_3844F
mov rsi, [rbp+0]
mov rdx, [rbp+8]
mov rdi, rbx
xor ecx, ecx
call JS_GetIterator
mov ebp, 3
cmp edx, 6
mov [rsp+78h+var_38], rax
mov [rsp+78h+var_70], rdx
jnz short loc_3838B
mov [rsp+78h+var_78], 0
mov eax, 3
mov [rsp+78h+var_60], rax
jmp short loc_383BE
loc_3838B:
mov r13, rax
mov rdi, rbx
mov rsi, rax
mov ecx, 6Bh ; 'k'
mov r8, rax
mov r9, rdx
push 0
push 0
call JS_GetPropertyInternal2
add rsp, 10h
mov [rsp+78h+var_78], rax
mov [rsp+78h+var_60], rdx
cmp edx, 6
jnz loc_38516
loc_383BE:
xor eax, eax
xor r12d, r12d
loc_383C3:
shl r12, 20h
mov esi, eax
or rsi, r12
mov rdi, [rbx+18h]
mov rdx, rbp
call JS_FreeValueRT
mov ebp, 6
xor r13d, r13d
xor r12d, r12d
loc_383E3:
mov rdi, [rbx+18h]
mov rsi, [rsp+78h+var_78]
mov rdx, [rsp+78h+var_60]
call JS_FreeValueRT
mov rdi, [rbx+18h]
mov rsi, [rsp+78h+var_38]
mov rdx, [rsp+78h+var_70]
call JS_FreeValueRT
cmp ebp, 6
jnz short loc_38429
loc_3840D:
mov rdi, [rbx+18h]
mov rsi, r15
mov rdx, r14
call JS_FreeValueRT
loc_3841C:
mov r14d, 6
xor r15d, r15d
xor ecx, ecx
jmp short loc_38486
loc_38429:
or r12, r13
sub rsp, 8
mov rdi, rbx
mov rsi, r15
mov rdx, r14
mov ecx, 35h ; '5'
mov r8, r12
mov r9, rbp
push 3
call JS_DefinePropertyValue
add rsp, 10h
loc_3844F:
sub rsp, 8
xor eax, eax
mov r8d, 3
mov rdi, rbx
mov rsi, r15
mov rdx, r14
xor ecx, ecx
xor r9d, r9d
push 1
push rax
push rax
call build_backtrace
add rsp, 20h
loc_38476:
mov rax, 0FFFFFFFF00000000h
mov rcx, r15
and rcx, rax
loc_38486:
mov eax, r15d
or rax, rcx
mov rdx, r14
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3849E:
add r12, rbp
mov rsi, [r12]
mov rdi, rbx
mov ecx, 34h ; '4'
call JS_HasProperty
test eax, eax
js loc_3840D
jz loc_38347
mov rsi, [r12]
mov rdx, [r12+8]
mov rdi, rbx
mov ecx, 34h ; '4'
mov r8, rsi
mov r9, rdx
push 0
push 0
call JS_GetPropertyInternal2
add rsp, 10h
mov r9, rdx
cmp r9d, 6
jz loc_3840D
sub rsp, 8
mov rdi, rbx
mov rsi, r15
mov rdx, r14
mov ecx, 34h ; '4'
mov r8, rax
push 3
call JS_DefinePropertyValue
add rsp, 10h
jmp loc_38347
loc_38516:
mov rsi, [rbx+38h]
inc dword ptr [rsi]
mov rdi, rbx
mov edx, 2
call JS_NewObjectFromShape
mov rbp, rdx
mov r12, rax
shr r12, 20h
cmp ebp, 6
jz loc_383C3
mov [rsp+78h+var_58], rax
lea rax, [rsp+78h+var_64]
mov rdi, rbx
mov rsi, r13
mov rdx, [rsp+78h+var_70]
mov rcx, [rsp+78h+var_78]
mov r8, [rsp+78h+var_60]
xor r9d, r9d
push rax
push 0
call JS_IteratorNext
add rsp, 10h
cmp edx, 6
jz loc_38619
mov [rsp+78h+var_50], 0
loc_3857B:
mov rcx, [rsp+78h+var_50]
cmp [rsp+78h+var_64], 0
jnz loc_38638
mov qword ptr [rsp+78h+var_48], rax
mov qword ptr [rsp+78h+var_48+8], rdx
mov r8, rcx
shr r8, 1Fh
mov eax, ecx
xorps xmm0, xmm0
cvtsi2sd xmm0, rcx
movq rcx, xmm0
cmovz rcx, rax
mov eax, 7
cmovnz r8, rax
sub rsp, 10h
movups xmm0, [rsp+88h+var_48]
movups [rsp+88h+var_88], xmm0
mov rdi, rbx
mov rsi, [rsp+88h+var_58]
mov rdx, rbp
mov r9d, 4007h
call JS_DefinePropertyValueValue
add rsp, 10h
test eax, eax
js short loc_38619
inc [rsp+78h+var_50]
mov rdi, rbx
mov rsi, r13
mov rdx, [rsp+78h+var_70]
mov rcx, [rsp+78h+var_78]
mov r8, [rsp+78h+var_60]
xor r9d, r9d
lea rax, [rsp+78h+var_64]
push rax
push 0
call JS_IteratorNext
add rsp, 10h
cmp edx, 6
jnz loc_3857B
loc_38619:
mov rdi, rbx
mov rsi, r13
mov rdx, [rsp+78h+var_70]
mov ecx, 1
call JS_IteratorClose
mov rax, [rsp+78h+var_58]
jmp loc_383C3
loc_38638:
mov rax, 0FFFFFFFF00000000h
mov rcx, [rsp+78h+var_58]
mov r12, rcx
and r12, rax
mov r13d, ecx
jmp loc_383E3
|
unsigned long long js_error_constructor(
long long a1,
long long a2,
long long a3,
int a4,
_QWORD *a5,
int a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
double a11,
double a12,
__m128 a13,
__m128 a14)
{
long long v15; // r13
long long v17; // rax
_DWORD *PropertyInternal2; // rax
long long v19; // rdx
long long v20; // r15
long long v21; // r14
long long FunctionRealm; // rax
long long v23; // rdx
long long *v24; // rcx
long long *v25; // rdx
long long v26; // rdx
long long v27; // r12
_DWORD *v28; // r13
long long v29; // rdx
long long v30; // r14
long long v31; // r8
long long v32; // r9
__m128 v33; // xmm4
__m128 v34; // xmm5
long long v35; // rdx
_DWORD *v36; // rax
long long v37; // rdx
__m128 v38; // xmm4
__m128 v39; // xmm5
int v40; // r12d
long long v41; // r12
_DWORD *Iterator; // rax
long long v43; // rdx
long long v44; // rbp
_DWORD *v45; // r13
long long v46; // rdx
unsigned long long v47; // rax
unsigned long long v48; // r12
long long v49; // r13
unsigned long long v50; // r12
__m128 v51; // xmm4
__m128 v52; // xmm5
unsigned long long v53; // rcx
long long *v55; // r12
int HasProperty; // eax
_DWORD *v57; // rax
long long v58; // rdx
__m128 v59; // xmm4
__m128 v60; // xmm5
_DWORD *v61; // rsi
long long v62; // rdx
__m128 v63; // rax
double v64; // xmm4_8
double v65; // xmm5_8
long long v66; // r8
double v67; // rcx
_DWORD *v69; // [rsp+10h] [rbp-78h]
long long v71; // [rsp+18h] [rbp-70h]
int v72; // [rsp+24h] [rbp-64h] BYREF
long long v73; // [rsp+28h] [rbp-60h]
unsigned long long v74; // [rsp+30h] [rbp-58h]
unsigned long long v75; // [rsp+38h] [rbp-50h]
__m128 v76; // [rsp+40h] [rbp-48h]
_DWORD *v77; // [rsp+50h] [rbp-38h]
v15 = a3;
if ( (_DWORD)a3 == 3 )
{
v17 = *(_QWORD *)(*(_QWORD *)(a1 + 24) + 264LL);
a2 = *(_QWORD *)(v17 + 8);
v15 = *(_QWORD *)(v17 + 16);
}
PropertyInternal2 = (_DWORD *)JS_GetPropertyInternal2(a1, a2, v15, 0x3Cu, a2, v15, 0LL, 0);
v20 = (long long)PropertyInternal2;
v21 = v19;
if ( (_DWORD)v19 != -1 )
{
if ( (_DWORD)v19 == 6 )
{
LABEL_29:
v53 = v20 & 0xFFFFFFFF00000000LL;
return v53 | (unsigned int)v20;
}
JS_FreeValueRT(*(_QWORD *)(a1 + 24), PropertyInternal2, v19);
FunctionRealm = JS_GetFunctionRealm(a1, a2, v15);
if ( FunctionRealm )
{
if ( a6 < 0 )
{
v26 = *(_QWORD *)(FunctionRealm + 64);
v24 = (long long *)(v26 + 48);
v25 = (long long *)(v26 + 56);
}
else
{
v23 = 16LL * (unsigned int)a6;
v24 = (long long *)(FunctionRealm + v23 + 152);
v25 = (long long *)(FunctionRealm + v23 + 160);
}
v21 = *v25;
v20 = *v24;
v76.m128_u64[0] = *v24;
if ( (unsigned int)v21 >= 0xFFFFFFF7 )
++*(_DWORD *)v76.m128_u64[0];
}
if ( !FunctionRealm )
goto LABEL_26;
}
v27 = v21;
v28 = (_DWORD *)v20;
v20 = JS_NewObjectProtoClass(a1, v20, v21, 3u);
v30 = v29;
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v28, v27);
if ( (_DWORD)v30 == 6 )
goto LABEL_29;
v35 = a5[2 * (unsigned int)(a6 == 7) + 1];
if ( (_DWORD)v35 == 3 )
{
LABEL_16:
v40 = (a6 == 7) + 1;
if ( v40 < a4 )
{
v41 = (unsigned int)(16 * v40);
if ( (unsigned int)*(_QWORD *)((char *)a5 + v41 + 8) == -1 )
{
v55 = (_QWORD *)((char *)a5 + v41);
HasProperty = JS_HasProperty(a1, *v55, -1, 0x34u);
if ( HasProperty < 0 )
goto LABEL_25;
if ( HasProperty )
{
v57 = (_DWORD *)JS_GetPropertyInternal2(a1, *v55, v55[1], 0x34u, *v55, v55[1], 0LL, 0);
if ( (_DWORD)v58 == 6 )
goto LABEL_25;
JS_DefinePropertyValue(
a1,
v20,
v30,
52LL,
v57,
v58,
*(double *)a7.m128_u64,
a8,
a9,
a10,
v59,
v60,
a13,
a14,
3);
}
}
}
if ( a6 != 7 )
{
LABEL_28:
build_backtrace(
a1,
v20,
v30,
0LL,
3LL,
0LL,
a7,
a8,
a9,
a10,
*(double *)v33.m128_u64,
*(double *)v34.m128_u64,
a13,
a14,
0,
0,
1);
goto LABEL_29;
}
Iterator = (_DWORD *)JS_GetIterator(a1, *a5, a5[1], 0LL);
v44 = 3LL;
v77 = Iterator;
v71 = v43;
if ( (_DWORD)v43 == 6 )
{
v69 = 0LL;
v73 = 3LL;
}
else
{
v45 = Iterator;
v69 = (_DWORD *)JS_GetPropertyInternal2(a1, (long long)Iterator, v43, 0x6Bu, (long long)Iterator, v43, 0LL, 0);
v73 = v46;
if ( (_DWORD)v46 != 6 )
{
v61 = *(_DWORD **)(a1 + 56);
++*v61;
v47 = JS_NewObjectFromShape(a1, v61, 2u);
v44 = v62;
v48 = HIDWORD(v47);
if ( (_DWORD)v62 != 6 )
{
v74 = v47;
v63.m128_u64[0] = JS_IteratorNext(a1, (_DWORD)v45, v71, (_DWORD)v69, v73, 0, 0LL, (long long)&v72);
if ( v63.m128_i32[2] != 6 )
{
v75 = 0LL;
while ( !v72 )
{
v76 = v63;
v66 = v75 >> 31;
v67 = (double)(int)v75;
if ( v75 >> 31 )
v66 = 7LL;
else
*(_QWORD *)&v67 = (unsigned int)v75;
a7 = v76;
if ( (int)JS_DefinePropertyValueValue(
a1,
v74,
v44,
*(_DWORD **)&v67,
v66,
16391,
*(double *)v76.m128_u64,
a8,
a9,
a10,
v64,
v65,
a13,
a14,
v76.m128_u64[0],
v76.m128_i64[1]) >= 0 )
{
++v75;
v63.m128_u64[0] = JS_IteratorNext(a1, (_DWORD)v45, v71, (_DWORD)v69, v73, 0, 0LL, (long long)&v72);
if ( v63.m128_i32[2] != 6 )
continue;
}
goto LABEL_44;
}
v50 = v74 & 0xFFFFFFFF00000000LL;
v49 = (unsigned int)v74;
goto LABEL_24;
}
LABEL_44:
JS_IteratorClose(a1, v45, v71, 1LL);
LODWORD(v47) = v74;
}
LABEL_23:
JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)((v48 << 32) | (unsigned int)v47), v44);
v44 = 6LL;
v49 = 0LL;
v50 = 0LL;
LABEL_24:
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v69, v73);
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v77, v71);
if ( (_DWORD)v44 == 6 )
goto LABEL_25;
JS_DefinePropertyValue(
a1,
v20,
v30,
53LL,
(_DWORD *)(v49 | v50),
v44,
*(double *)a7.m128_u64,
a8,
a9,
a10,
v51,
v52,
a13,
a14,
3);
goto LABEL_28;
}
}
LODWORD(v47) = 0;
v48 = 0LL;
goto LABEL_23;
}
v36 = (_DWORD *)JS_ToStringInternal(
a1,
a5[2 * (unsigned int)(a6 == 7)],
v35,
0,
v31,
v32,
a7,
a8,
a9,
a10,
v33,
v34,
a13,
a14);
if ( (_DWORD)v37 != 6 )
{
JS_DefinePropertyValue(a1, v20, v30, 51LL, v36, v37, *(double *)a7.m128_u64, a8, a9, a10, v38, v39, a13, a14, 3);
goto LABEL_16;
}
LABEL_25:
JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)v20, v30);
LABEL_26:
LODWORD(v20) = 0;
v53 = 0LL;
return v53 | (unsigned int)v20;
}
|
js_error_constructor:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV EBP,R9D
MOV qword ptr [RSP + 0x8],R8
MOV dword ptr [RSP],ECX
MOV R13,RDX
MOV R12,RSI
MOV RBX,RDI
CMP R13D,0x3
JNZ 0x001381e3
MOV RAX,qword ptr [RBX + 0x18]
MOV RAX,qword ptr [RAX + 0x108]
MOV R12,qword ptr [RAX + 0x8]
MOV R13,qword ptr [RAX + 0x10]
LAB_001381e3:
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R13
MOV ECX,0x3c
MOV R8,R12
MOV R9,R13
PUSH 0x0
PUSH 0x0
CALL 0x00122fa3
ADD RSP,0x10
MOV R15,RAX
MOV R14,RDX
CMP R14D,-0x1
JZ 0x0013828a
CMP R14D,0x6
JZ 0x00138476
MOV RDI,qword ptr [RBX + 0x18]
MOV RSI,R15
MOV RDX,R14
CALL 0x0011d8c6
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R13
CALL 0x00154e81
TEST RAX,RAX
JZ 0x00138281
TEST EBP,EBP
JS 0x0013825d
MOV EDX,EBP
SHL RDX,0x4
LEA RCX,[RAX + RDX*0x1]
ADD RCX,0x98
ADD RDX,RAX
ADD RDX,0xa0
JMP 0x00138269
LAB_0013825d:
MOV RDX,qword ptr [RAX + 0x40]
LEA RCX,[RDX + 0x30]
ADD RDX,0x38
LAB_00138269:
MOV R14,qword ptr [RDX]
MOV R15,qword ptr [RCX]
MOV qword ptr [RSP + 0x30],R15
CMP R14D,-0x9
JC 0x00138281
MOV RCX,qword ptr [RSP + 0x30]
INC dword ptr [RCX]
LAB_00138281:
TEST RAX,RAX
JZ 0x0013841c
LAB_0013828a:
MOV R12,R14
MOV R13,R15
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
MOV ECX,0x3
CALL 0x00120f05
MOV R15,RAX
MOV R14,RDX
MOV RDI,qword ptr [RBX + 0x18]
MOV RSI,R13
MOV RDX,R12
CALL 0x0011d8c6
CMP R14D,0x6
JZ 0x00138476
XOR R12D,R12D
MOV R13D,EBP
CMP EBP,0x7
SETZ R12B
MOV EAX,R12D
SHL EAX,0x4
MOV RBP,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RBP + RAX*0x1 + 0x8]
CMP EDX,0x3
JZ 0x0013832c
XOR EAX,EAX
CMP R13D,0x7
SETZ AL
SHL EAX,0x4
MOV RSI,qword ptr [RBP + RAX*0x1]
MOV RDI,RBX
XOR ECX,ECX
CALL 0x00127add
MOV R9,RDX
CMP R9D,0x6
JZ 0x0013840d
SUB RSP,0x8
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
MOV ECX,0x33
MOV R8,RAX
PUSH 0x3
CALL 0x00126abb
ADD RSP,0x10
LAB_0013832c:
INC R12D
CMP R12D,dword ptr [RSP]
JGE 0x00138347
SHL R12D,0x4
MOV RDX,qword ptr [RBP + R12*0x1 + 0x8]
CMP EDX,-0x1
JZ 0x0013849e
LAB_00138347:
CMP R13D,0x7
JNZ 0x0013844f
MOV RSI,qword ptr [RBP]
MOV RDX,qword ptr [RBP + 0x8]
MOV RDI,RBX
XOR ECX,ECX
CALL 0x0014180b
MOV EBP,0x3
CMP EDX,0x6
MOV qword ptr [RSP + 0x40],RAX
MOV qword ptr [RSP + 0x8],RDX
JNZ 0x0013838b
MOV qword ptr [RSP],0x0
MOV EAX,0x3
MOV qword ptr [RSP + 0x18],RAX
JMP 0x001383be
LAB_0013838b:
MOV R13,RAX
MOV RDI,RBX
MOV RSI,RAX
MOV ECX,0x6b
MOV R8,RAX
MOV R9,RDX
PUSH 0x0
PUSH 0x0
CALL 0x00122fa3
ADD RSP,0x10
MOV qword ptr [RSP],RAX
MOV qword ptr [RSP + 0x18],RDX
CMP EDX,0x6
JNZ 0x00138516
LAB_001383be:
XOR EAX,EAX
XOR R12D,R12D
LAB_001383c3:
SHL R12,0x20
MOV ESI,EAX
OR RSI,R12
MOV RDI,qword ptr [RBX + 0x18]
MOV RDX,RBP
CALL 0x0011d8c6
MOV EBP,0x6
XOR R13D,R13D
XOR R12D,R12D
LAB_001383e3:
MOV RDI,qword ptr [RBX + 0x18]
MOV RSI,qword ptr [RSP]
MOV RDX,qword ptr [RSP + 0x18]
CALL 0x0011d8c6
MOV RDI,qword ptr [RBX + 0x18]
MOV RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x8]
CALL 0x0011d8c6
CMP EBP,0x6
JNZ 0x00138429
LAB_0013840d:
MOV RDI,qword ptr [RBX + 0x18]
MOV RSI,R15
MOV RDX,R14
CALL 0x0011d8c6
LAB_0013841c:
MOV R14D,0x6
XOR R15D,R15D
XOR ECX,ECX
JMP 0x00138486
LAB_00138429:
OR R12,R13
SUB RSP,0x8
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
MOV ECX,0x35
MOV R8,R12
MOV R9,RBP
PUSH 0x3
CALL 0x00126abb
ADD RSP,0x10
LAB_0013844f:
SUB RSP,0x8
XOR EAX,EAX
MOV R8D,0x3
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
XOR ECX,ECX
XOR R9D,R9D
PUSH 0x1
PUSH RAX
PUSH RAX
CALL 0x0012fe72
ADD RSP,0x20
LAB_00138476:
MOV RAX,-0x100000000
MOV RCX,R15
AND RCX,RAX
LAB_00138486:
MOV EAX,R15D
OR RAX,RCX
MOV RDX,R14
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0013849e:
ADD R12,RBP
MOV RSI,qword ptr [R12]
MOV RDI,RBX
MOV ECX,0x34
CALL 0x0010f753
TEST EAX,EAX
JS 0x0013840d
JZ 0x00138347
MOV RSI,qword ptr [R12]
MOV RDX,qword ptr [R12 + 0x8]
MOV RDI,RBX
MOV ECX,0x34
MOV R8,RSI
MOV R9,RDX
PUSH 0x0
PUSH 0x0
CALL 0x00122fa3
ADD RSP,0x10
MOV R9,RDX
CMP R9D,0x6
JZ 0x0013840d
SUB RSP,0x8
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
MOV ECX,0x34
MOV R8,RAX
PUSH 0x3
CALL 0x00126abb
ADD RSP,0x10
JMP 0x00138347
LAB_00138516:
MOV RSI,qword ptr [RBX + 0x38]
INC dword ptr [RSI]
MOV RDI,RBX
MOV EDX,0x2
CALL 0x0010f516
MOV RBP,RDX
MOV R12,RAX
SHR R12,0x20
CMP EBP,0x6
JZ 0x001383c3
MOV qword ptr [RSP + 0x20],RAX
LEA RAX,[RSP + 0x14]
MOV RDI,RBX
MOV RSI,R13
MOV RDX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP]
MOV R8,qword ptr [RSP + 0x18]
XOR R9D,R9D
PUSH RAX
PUSH 0x0
CALL 0x00141afc
ADD RSP,0x10
CMP EDX,0x6
JZ 0x00138619
MOV qword ptr [RSP + 0x28],0x0
LAB_0013857b:
MOV RCX,qword ptr [RSP + 0x28]
CMP dword ptr [RSP + 0x14],0x0
JNZ 0x00138638
MOV qword ptr [RSP + 0x30],RAX
MOV qword ptr [RSP + 0x38],RDX
MOV R8,RCX
SHR R8,0x1f
MOV EAX,ECX
XORPS XMM0,XMM0
CVTSI2SD XMM0,RCX
MOVQ RCX,XMM0
CMOVZ RCX,RAX
MOV EAX,0x7
CMOVNZ R8,RAX
SUB RSP,0x10
MOVUPS XMM0,xmmword ptr [RSP + 0x40]
MOVUPS xmmword ptr [RSP],XMM0
MOV RDI,RBX
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,RBP
MOV R9D,0x4007
CALL 0x00126b2d
ADD RSP,0x10
TEST EAX,EAX
JS 0x00138619
INC qword ptr [RSP + 0x28]
MOV RDI,RBX
MOV RSI,R13
MOV RDX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP]
MOV R8,qword ptr [RSP + 0x18]
XOR R9D,R9D
LEA RAX,[RSP + 0x14]
PUSH RAX
PUSH 0x0
CALL 0x00141afc
ADD RSP,0x10
CMP EDX,0x6
JNZ 0x0013857b
LAB_00138619:
MOV RDI,RBX
MOV RSI,R13
MOV RDX,qword ptr [RSP + 0x8]
MOV ECX,0x1
CALL 0x0013faa9
MOV RAX,qword ptr [RSP + 0x20]
JMP 0x001383c3
LAB_00138638:
MOV RAX,-0x100000000
MOV RCX,qword ptr [RSP + 0x20]
MOV R12,RCX
AND R12,RAX
MOV R13D,ECX
JMP 0x001383e3
|
int1 [16]
js_error_constructor
(long param_1,int8 param_2,int8 param_3,int param_4,int8 *param_5,
uint param_6)
{
int *piVar1;
double dVar2;
long lVar3;
int8 uVar4;
int8 *puVar5;
ulong uVar6;
int8 *puVar7;
int8 uVar8;
int8 uVar9;
int8 uVar10;
int iVar11;
ulong uVar12;
int8 uVar13;
int8 uVar14;
int1 auVar15 [16];
int1 auVar16 [16];
int1 auVar17 [16];
int1 auVar18 [16];
int1 auVar19 [16];
int8 local_78;
int local_64;
int8 local_60;
ulong local_58;
ulong local_50;
int1 local_48 [16];
int8 local_38;
if ((int)param_3 == 3) {
lVar3 = *(long *)(*(long *)(param_1 + 0x18) + 0x108);
param_2 = *(int8 *)(lVar3 + 8);
param_3 = *(int8 *)(lVar3 + 0x10);
}
auVar15 = JS_GetPropertyInternal2(param_1,param_2,param_3,0x3c,param_2,param_3,0,0);
if (auVar15._8_4_ == -1) {
LAB_0013828a:
uVar13 = auVar15._8_8_;
uVar14 = auVar15._0_8_;
auVar15 = JS_NewObjectProtoClass(param_1,uVar14,uVar13,3);
uVar8 = auVar15._8_8_;
uVar4 = auVar15._0_8_;
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar14,uVar13);
if (auVar15._8_4_ != 6) {
if ((int)param_5[(ulong)(param_6 == 7) * 2 + 1] != 3) {
auVar16 = JS_ToStringInternal(param_1,param_5[(ulong)(param_6 == 7) * 2],
param_5[(ulong)(param_6 == 7) * 2 + 1],0);
if (auVar16._8_4_ != 6) {
JS_DefinePropertyValue(param_1,uVar4,uVar8,0x33,auVar16._0_8_,auVar16._8_8_,3);
goto LAB_0013832c;
}
goto LAB_0013840d;
}
LAB_0013832c:
iVar11 = (param_6 == 7) + 1;
if (iVar11 < param_4) {
uVar6 = (ulong)(uint)(iVar11 * 0x10);
uVar13 = *(int8 *)((long)param_5 + uVar6 + 8);
if ((int)uVar13 != -1) goto LAB_00138347;
puVar5 = (int8 *)(uVar6 + (long)param_5);
iVar11 = JS_HasProperty(param_1,*puVar5,uVar13,0x34);
if (-1 < iVar11) {
if (iVar11 != 0) {
auVar16 = JS_GetPropertyInternal2(param_1,*puVar5,puVar5[1],0x34,*puVar5,puVar5[1],0,0);
if (auVar16._8_4_ == 6) goto LAB_0013840d;
JS_DefinePropertyValue(param_1,uVar4,uVar8,0x34,auVar16._0_8_,auVar16._8_8_,3);
}
goto LAB_00138347;
}
LAB_0013840d:
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar4,uVar8);
goto LAB_0013841c;
}
LAB_00138347:
if (param_6 == 7) {
auVar16 = JS_GetIterator(param_1,*param_5,param_5[1],0);
uVar14 = auVar16._8_8_;
uVar13 = auVar16._0_8_;
local_38 = uVar13;
if (auVar16._8_4_ == 6) {
auVar17 = ZEXT816(3) << 0x40;
LAB_001383be:
auVar19 = ZEXT816(3) << 0x40;
uVar6 = 0;
}
else {
auVar17 = JS_GetPropertyInternal2(param_1,uVar13,uVar14,0x6b,uVar13,uVar14,0,0);
local_60 = auVar17._8_8_;
local_78 = auVar17._0_8_;
if (auVar17._8_4_ == 6) goto LAB_001383be;
piVar1 = *(int **)(param_1 + 0x38);
*piVar1 = *piVar1 + 1;
auVar19 = JS_NewObjectFromShape(param_1,piVar1,2);
auVar17._8_8_ = local_60;
auVar17._0_8_ = local_78;
uVar9 = auVar19._8_8_;
uVar6 = auVar19._0_8_ >> 0x20;
if (auVar19._8_4_ != 6) {
local_58 = auVar19._0_8_;
auVar16 = JS_IteratorNext(param_1,uVar13,uVar14,local_78,local_60,0,0,&local_64);
if (auVar16._8_4_ != 6) {
local_50 = 0;
do {
if (local_64 != 0) {
uVar6 = local_58 & 0xffffffff00000000;
uVar12 = local_58 & 0xffffffff;
goto LAB_001383e3;
}
dVar2 = (double)(long)local_50;
if (local_50 >> 0x1f == 0) {
uVar10 = 0;
dVar2 = (double)(local_50 & 0xffffffff);
}
else {
uVar10 = 7;
}
local_48 = auVar16;
iVar11 = JS_DefinePropertyValueValue
(param_1,local_58,uVar9,dVar2,uVar10,0x4007,auVar16);
if (iVar11 < 0) break;
local_50 = local_50 + 1;
auVar16 = JS_IteratorNext(param_1,uVar13,uVar14,local_78,local_60,0,0,&local_64);
} while (auVar16._8_4_ != 6);
}
JS_IteratorClose(param_1,uVar13,uVar14,1);
auVar19._8_8_ = uVar9;
auVar19._0_8_ = local_58;
auVar17._8_8_ = local_60;
}
}
local_60 = auVar17._8_8_;
local_78 = auVar17._0_8_;
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),auVar19._0_8_ & 0xffffffff | uVar6 << 0x20,
auVar19._8_8_);
uVar9 = 6;
uVar12 = 0;
uVar6 = 0;
LAB_001383e3:
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),local_78,local_60);
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),local_38,uVar14);
if ((int)uVar9 == 6) goto LAB_0013840d;
JS_DefinePropertyValue(param_1,uVar4,uVar8,0x35,uVar6 | uVar12,uVar9,3);
}
build_backtrace(param_1,uVar4,uVar8,0,3,0,0,0,1);
}
LAB_00138476:
uVar6 = auVar15._0_8_ & 0xffffffff00000000;
}
else {
if (auVar15._8_4_ == 6) goto LAB_00138476;
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),auVar15._0_8_,auVar15._8_8_);
lVar3 = JS_GetFunctionRealm(param_1,param_2,param_3);
if (lVar3 != 0) {
if ((int)param_6 < 0) {
puVar5 = (int8 *)(*(long *)(lVar3 + 0x40) + 0x30);
puVar7 = (int8 *)(*(long *)(lVar3 + 0x40) + 0x38);
}
else {
puVar5 = (int8 *)(lVar3 + (ulong)param_6 * 0x10 + 0x98);
puVar7 = (int8 *)((ulong)param_6 * 0x10 + lVar3 + 0xa0);
}
uVar4 = *puVar7;
local_48._0_8_ = *puVar5;
auVar16._8_8_ = uVar4;
auVar16._0_8_ = local_48._0_8_;
auVar15._8_8_ = uVar4;
auVar15._0_8_ = local_48._0_8_;
if (0xfffffff6 < (uint)uVar4) {
*(int *)local_48._0_8_ = *(int *)local_48._0_8_ + 1;
auVar15 = auVar16;
}
}
if (lVar3 != 0) goto LAB_0013828a;
LAB_0013841c:
auVar15 = ZEXT816(6) << 0x40;
uVar6 = 0;
}
auVar18._0_8_ = auVar15._0_8_ & 0xffffffff | uVar6;
auVar18._8_8_ = auVar15._8_8_;
return auVar18;
}
|
|
60,706
|
nlohmann::json_abi_v3_11_3::operator==(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&)
|
monkey531[P]llama/common/json.hpp
|
constexpr value_t type() const noexcept
{
return m_data.m_type;
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::operator==(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x38, %rsp
movzbl (%rdi), %eax
movb (%rsi), %cl
cmpb %cl, %al
jne 0xb0d16
cmpl $0x8, %eax
ja 0xb0ede
movb $0x1, %bl
movl %eax, %eax
leaq 0x6322c(%rip), %rcx # 0x113f2c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%rdi), %rax
cmpq 0x8(%rsi), %rax
jmp 0xb0e67
movl %eax, %edx
xorb $0x5, %dl
movl %ecx, %r8d
xorb $0x7, %r8b
orb %r8b, %dl
jne 0xb0d38
cvtsi2sdq 0x8(%rdi), %xmm0
cmpeqsd 0x8(%rsi), %xmm0
jmp 0xb0dde
movl %eax, %r9d
xorb $0x7, %r9b
movl %ecx, %edx
xorb $0x5, %dl
orb %dl, %r9b
jne 0xb0d54
cvtsi2sdq 0x8(%rsi), %xmm0
jmp 0xb0dd8
movl %eax, %r9d
xorb $0x6, %r9b
orb %r8b, %r9b
jne 0xb0d88
movsd 0x8(%rdi), %xmm0
unpcklps 0x58e54(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x58e5c(%rip), %xmm0 # 0x109bd0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1 # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
cmpeqsd 0x8(%rsi), %xmm1
jmp 0xb0dc1
movl %eax, %r8d
xorb $0x7, %r8b
xorb $0x6, %cl
orb %cl, %r8b
jne 0xb0f2f
movsd 0x8(%rsi), %xmm0
unpcklps 0x58e19(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x58e21(%rip), %xmm0 # 0x109bd0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1 # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
cmpeqsd 0x8(%rdi), %xmm1
movq %xmm1, %rbx
jmp 0xb0de3
movb 0x8(%rdi), %al
cmpb 0x8(%rsi), %al
jmp 0xb0e67
movsd 0x8(%rsi), %xmm0
cmpeqsd 0x8(%rdi), %xmm0
movq %xmm0, %rbx
andl $0x1, %ebx
jmp 0xb0f21
movq 0x8(%rdi), %rax
movq 0x8(%rsi), %rcx
movq (%rax), %r14
movq 0x8(%rax), %r12
movq %r12, %rax
subq %r14, %rax
movq (%rcx), %r15
movq 0x8(%rcx), %rcx
subq %r15, %rcx
cmpq %rcx, %rax
jne 0xb0ede
cmpq %r12, %r14
je 0xb0f21
movq %r14, %rdi
movq %r15, %rsi
callq 0xb0cd8
movl %eax, %ebx
testb %al, %al
je 0xb0f21
addq $0x10, %r14
addq $0x10, %r15
jmp 0xb0e13
movq 0x8(%rdi), %rax
movq 0x8(%rsi), %rcx
movq 0x8(%rax), %rdx
cmpq 0x8(%rcx), %rdx
jne 0xb0ede
testq %rdx, %rdx
je 0xb0f21
movq (%rcx), %rsi
movq (%rax), %rdi
callq 0x1dcb0
testl %eax, %eax
sete %bl
jmp 0xb0f21
movq 0x8(%rdi), %rax
movq 0x8(%rsi), %rcx
movq (%rax), %r15
movq 0x8(%rax), %r12
movq %r12, %rax
subq %r15, %rax
movq (%rcx), %r14
movq 0x8(%rcx), %rcx
subq %r14, %rcx
cmpq %rcx, %rax
jne 0xb0ede
cmpq %r12, %r15
je 0xb0f21
addq $0x20, %r14
movq 0x8(%r15), %rdx
cmpq -0x18(%r14), %rdx
jne 0xb0ede
testq %rdx, %rdx
je 0xb0ebf
movq -0x20(%r14), %rsi
movq (%r15), %rdi
callq 0x1dcb0
testl %eax, %eax
jne 0xb0ede
leaq 0x20(%r15), %rdi
movq %r14, %rsi
callq 0xb0cd8
testb %al, %al
je 0xb0ede
addq $0x30, %r15
addq $0x30, %r14
cmpq %r12, %r15
jne 0xb0ea0
jmp 0xb0f21
xorl %ebx, %ebx
jmp 0xb0f21
movq 0x8(%rdi), %rax
movq 0x8(%rsi), %rcx
leaq 0x18(%rax), %rdx
leaq 0x20(%rax), %rsi
leaq 0x20(%rsp), %rdi
movq %rsi, (%rdi)
movq %rdx, 0x8(%rdi)
movq %rax, 0x10(%rdi)
leaq 0x18(%rcx), %rax
leaq 0x20(%rcx), %rdx
leaq 0x8(%rsp), %rsi
movq %rdx, (%rsi)
movq %rax, 0x8(%rsi)
movq %rcx, 0x10(%rsi)
callq 0xb0fb8
movl %eax, %ebx
movl %ebx, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movl %eax, %r8d
xorb $0x6, %r8b
orb %dl, %r8b
je 0xb0d09
xorb $0x5, %al
orb %cl, %al
je 0xb0d09
xorl %ebx, %ebx
xorl %edx, %edx
callq 0xb0f5c
jmp 0xb0f21
movq %rax, %rdi
callq 0x25ec1
|
_ZN8nlohmann16json_abi_v3_11_3eqERKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEESF_:
push r15
push r14
push r12
push rbx
sub rsp, 38h
movzx eax, byte ptr [rdi]
mov cl, [rsi]
cmp al, cl
jnz short loc_B0D16
cmp eax, 8; switch 9 cases
ja def_B0D07; jumptable 00000000000B0D07 default case
mov bl, 1
mov eax, eax
lea rcx, jpt_B0D07
movsxd rax, ds:(jpt_B0D07 - 113F2Ch)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_B0D09:
mov rax, [rdi+8]; jumptable 00000000000B0D07 cases 5,6
cmp rax, [rsi+8]
jmp loc_B0E67
loc_B0D16:
mov edx, eax
xor dl, 5
mov r8d, ecx
xor r8b, 7
or dl, r8b
jnz short loc_B0D38
cvtsi2sd xmm0, qword ptr [rdi+8]
cmpeqsd xmm0, qword ptr [rsi+8]
jmp loc_B0DDE
loc_B0D38:
mov r9d, eax
xor r9b, 7
mov edx, ecx
xor dl, 5
or r9b, dl
jnz short loc_B0D54
cvtsi2sd xmm0, qword ptr [rsi+8]
jmp loc_B0DD8
loc_B0D54:
mov r9d, eax
xor r9b, 6
or r9b, r8b
jnz short loc_B0D88
movsd xmm0, qword ptr [rdi+8]
unpcklps xmm0, cs:xmmword_109BC0
subpd xmm0, cs:xmmword_109BD0
movapd xmm1, xmm0
unpckhpd xmm1, xmm0
addsd xmm1, xmm0
cmpeqsd xmm1, qword ptr [rsi+8]
jmp short loc_B0DC1
loc_B0D88:
mov r8d, eax
xor r8b, 7
xor cl, 6
or r8b, cl
jnz loc_B0F2F
movsd xmm0, qword ptr [rsi+8]
unpcklps xmm0, cs:xmmword_109BC0
subpd xmm0, cs:xmmword_109BD0
movapd xmm1, xmm0
unpckhpd xmm1, xmm0
addsd xmm1, xmm0
cmpeqsd xmm1, qword ptr [rdi+8]
loc_B0DC1:
movq rbx, xmm1
jmp short loc_B0DE3
loc_B0DC8:
mov al, [rdi+8]; jumptable 00000000000B0D07 case 4
cmp al, [rsi+8]
jmp loc_B0E67
loc_B0DD3:
movsd xmm0, qword ptr [rsi+8]; jumptable 00000000000B0D07 case 7
loc_B0DD8:
cmpeqsd xmm0, qword ptr [rdi+8]
loc_B0DDE:
movq rbx, xmm0
loc_B0DE3:
and ebx, 1
jmp loc_B0F21; jumptable 00000000000B0D07 case 0
loc_B0DEB:
mov rax, [rdi+8]; jumptable 00000000000B0D07 case 2
mov rcx, [rsi+8]
mov r14, [rax]
mov r12, [rax+8]
mov rax, r12
sub rax, r14
mov r15, [rcx]
mov rcx, [rcx+8]
sub rcx, r15
cmp rax, rcx
jnz def_B0D07; jumptable 00000000000B0D07 default case
loc_B0E13:
cmp r14, r12
jz loc_B0F21; jumptable 00000000000B0D07 case 0
mov rdi, r14
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_3eqERKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEESF_; nlohmann::json_abi_v3_11_3::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> 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&)
mov ebx, eax
test al, al
jz loc_B0F21; jumptable 00000000000B0D07 case 0
add r14, 10h
add r15, 10h
jmp short loc_B0E13
loc_B0E3B:
mov rax, [rdi+8]; jumptable 00000000000B0D07 case 3
mov rcx, [rsi+8]
mov rdx, [rax+8]
cmp rdx, [rcx+8]
jnz def_B0D07; jumptable 00000000000B0D07 default case
test rdx, rdx
jz loc_B0F21; jumptable 00000000000B0D07 case 0
mov rsi, [rcx]
mov rdi, [rax]
call _bcmp
test eax, eax
loc_B0E67:
setz bl
jmp loc_B0F21; jumptable 00000000000B0D07 case 0
loc_B0E6F:
mov rax, [rdi+8]; jumptable 00000000000B0D07 case 1
mov rcx, [rsi+8]
mov r15, [rax]
mov r12, [rax+8]
mov rax, r12
sub rax, r15
mov r14, [rcx]
mov rcx, [rcx+8]
sub rcx, r14
cmp rax, rcx
jnz short def_B0D07; jumptable 00000000000B0D07 default case
cmp r15, r12
jz loc_B0F21; jumptable 00000000000B0D07 case 0
add r14, 20h ; ' '
loc_B0EA0:
mov rdx, [r15+8]
cmp rdx, [r14-18h]
jnz short def_B0D07; jumptable 00000000000B0D07 default case
test rdx, rdx
jz short loc_B0EBF
mov rsi, [r14-20h]
mov rdi, [r15]
call _bcmp
test eax, eax
jnz short def_B0D07; jumptable 00000000000B0D07 default case
loc_B0EBF:
lea rdi, [r15+20h]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_3eqERKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEESF_; nlohmann::json_abi_v3_11_3::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> 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&)
test al, al
jz short def_B0D07; jumptable 00000000000B0D07 default case
add r15, 30h ; '0'
add r14, 30h ; '0'
cmp r15, r12
jnz short loc_B0EA0
jmp short loc_B0F21; jumptable 00000000000B0D07 case 0
def_B0D07:
xor ebx, ebx; jumptable 00000000000B0D07 default case
jmp short loc_B0F21; jumptable 00000000000B0D07 case 0
loc_B0EE2:
mov rax, [rdi+8]; jumptable 00000000000B0D07 case 8
mov rcx, [rsi+8]
lea rdx, [rax+18h]
lea rsi, [rax+20h]
lea rdi, [rsp+58h+var_38]
mov [rdi], rsi
mov [rdi+8], rdx
mov [rdi+10h], rax
lea rax, [rcx+18h]
lea rdx, [rcx+20h]
lea rsi, [rsp+58h+var_50]
mov [rsi], rdx
mov [rsi+8], rax
mov [rsi+10h], rcx
call _ZNSt15__tuple_compareISt5tupleIJRKSt6vectorIhSaIhEERKmRKbEESA_Lm0ELm3EE4__eqERKSA_SD_; std::__tuple_compare<std::tuple<std::vector<uchar> const&,ulong const&,bool const&>,std::tuple<std::vector<uchar> const&,ulong const&,bool const&>,0ul,3ul>::__eq(std::tuple<std::vector<uchar> const&,ulong const&,bool const&> const&,std::tuple<std::vector<uchar> const&,ulong const&,bool const&> const&)
mov ebx, eax
loc_B0F21:
mov eax, ebx; jumptable 00000000000B0D07 case 0
add rsp, 38h
pop rbx
pop r12
pop r14
pop r15
retn
loc_B0F2F:
mov r8d, eax
xor r8b, 6
or r8b, dl
jz loc_B0D09; jumptable 00000000000B0D07 cases 5,6
xor al, 5
or al, cl
jz loc_B0D09; jumptable 00000000000B0D07 cases 5,6
xor ebx, ebx
xor edx, edx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE18compares_unorderedERKSD_SF_b; 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>::compares_unordered(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,bool)
jmp short loc_B0F21; jumptable 00000000000B0D07 case 0
mov rdi, rax
call __clang_call_terminate
|
long long nlohmann::json_abi_v3_11_3::operator==(unsigned __int8 *a1, unsigned __int8 *a2, __m128d a3)
{
unsigned int v3; // ebx
unsigned __int8 v4; // al
unsigned __int8 v5; // cl
bool v6; // zf
__m128d v7; // rt1
unsigned __int8 v8; // dl
__m128d v9; // xmm0
__m128d v10; // xmm1
__m128d v11; // rt1
__int8 v12; // xmm1_1
unsigned __int8 v13; // cl
__m128d v14; // xmm0
__m128d v15; // xmm1
__m128d v16; // rt1
__int8 v17; // bl
__m128d v18; // rt1
long long *v19; // rax
long long *v20; // rcx
long long v21; // r14
long long v22; // r12
long long v23; // r15
_QWORD *v24; // rax
_QWORD *v25; // rcx
long long v26; // rdx
_QWORD *v27; // rax
_QWORD *v28; // rcx
_QWORD *v29; // r15
_QWORD *v30; // r12
long long v31; // r14
long long v32; // rdx
v4 = *a1;
v5 = *a2;
if ( *a1 != *a2 )
{
if ( v5 ^ 7 | v4 ^ 5 )
{
v8 = v5 ^ 5;
if ( v5 ^ 5 | v4 ^ 7 )
{
if ( v5 ^ 7 | v4 ^ 6 )
{
v13 = v5 ^ 6;
if ( v13 | v4 ^ 7 )
{
if ( v8 | v4 ^ 6 && v13 | v4 ^ 5 )
{
v3 = 0;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::compares_unordered(
a1,
a2,
0LL);
}
else
{
LABEL_3:
v6 = *((_QWORD *)a1 + 1) == *((_QWORD *)a2 + 1);
LABEL_25:
LOBYTE(v3) = v6;
}
return v3;
}
v14 = _mm_sub_pd(
(__m128d)_mm_unpacklo_ps((__m128)*((unsigned long long *)a2 + 1), (__m128)xmmword_109BC0),
(__m128d)xmmword_109BD0);
v15 = _mm_unpackhi_pd(v14, v14);
v15.m128d_f64[0] = v15.m128d_f64[0] + v14.m128d_f64[0];
v16.m128d_f64[0] = *((double *)a1 + 1);
v12 = *(_OWORD *)&_mm_cmpeq_sd(v15, v16);
}
else
{
v9 = _mm_sub_pd(
(__m128d)_mm_unpacklo_ps((__m128)*((unsigned long long *)a1 + 1), (__m128)xmmword_109BC0),
(__m128d)xmmword_109BD0);
v10 = _mm_unpackhi_pd(v9, v9);
v10.m128d_f64[0] = v10.m128d_f64[0] + v9.m128d_f64[0];
v11.m128d_f64[0] = *((double *)a2 + 1);
v12 = *(_OWORD *)&_mm_cmpeq_sd(v10, v11);
}
v17 = v12;
return v17 & 1;
}
a3.m128d_f64[0] = (double)(int)*((_QWORD *)a2 + 1);
LABEL_15:
v18.m128d_f64[0] = *((double *)a1 + 1);
LOBYTE(a3.m128d_f64[0]) = *(_OWORD *)&_mm_cmpeq_sd(a3, v18);
}
else
{
a3.m128d_f64[0] = (double)(int)*((_QWORD *)a1 + 1);
v7.m128d_f64[0] = *((double *)a2 + 1);
LOBYTE(a3.m128d_f64[0]) = *(_OWORD *)&_mm_cmpeq_sd(a3, v7);
}
v17 = LOBYTE(a3.m128d_f64[0]);
return v17 & 1;
}
LOBYTE(v3) = 1;
switch ( *a1 )
{
case 0u:
return v3;
case 1u:
v27 = (_QWORD *)*((_QWORD *)a1 + 1);
v28 = (_QWORD *)*((_QWORD *)a2 + 1);
v29 = (_QWORD *)*v27;
v30 = (_QWORD *)v27[1];
if ( (_QWORD *)((char *)v30 - *v27) != (_QWORD *)(v28[1] - *v28) )
return 0;
if ( v29 == v30 )
return v3;
v31 = *v28 + 32LL;
break;
case 2u:
v19 = (long long *)*((_QWORD *)a1 + 1);
v20 = (long long *)*((_QWORD *)a2 + 1);
v21 = *v19;
v22 = v19[1];
v23 = *v20;
if ( v22 - *v19 != v20[1] - *v20 )
return 0;
while ( v21 != v22 )
{
v3 = nlohmann::json_abi_v3_11_3::operator==(v21, v23);
if ( !(_BYTE)v3 )
break;
v21 += 16LL;
v23 += 16LL;
}
return v3;
case 3u:
v24 = (_QWORD *)*((_QWORD *)a1 + 1);
v25 = (_QWORD *)*((_QWORD *)a2 + 1);
v26 = v24[1];
if ( v26 != v25[1] )
return 0;
if ( !v26 )
return v3;
v6 = (unsigned int)bcmp(*v24, *v25, v26) == 0;
goto LABEL_25;
case 4u:
v6 = a1[8] == a2[8];
goto LABEL_25;
case 5u:
case 6u:
goto LABEL_3;
case 7u:
a3 = (__m128d)*((unsigned long long *)a2 + 1);
goto LABEL_15;
case 8u:
return (unsigned int)std::__tuple_compare<std::tuple<std::vector<unsigned char> const&,unsigned long const&,bool const&>,std::tuple<std::vector<unsigned char> const&,unsigned long const&,bool const&>,0ul,3ul>::__eq();
default:
return 0;
}
while ( 1 )
{
v32 = v29[1];
if ( v32 != *(_QWORD *)(v31 - 24) || v32 && (unsigned int)bcmp(*v29, *(_QWORD *)(v31 - 32), v32) )
break;
if ( !(unsigned __int8)nlohmann::json_abi_v3_11_3::operator==(v29 + 4, v31) )
break;
v29 += 6;
v31 += 48LL;
if ( v29 == v30 )
return v3;
}
return 0;
}
|
operator==:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x38
MOVZX EAX,byte ptr [RDI]
MOV CL,byte ptr [RSI]
CMP AL,CL
JNZ 0x001b0d16
CMP EAX,0x8
JA 0x001b0ede
MOV BL,0x1
MOV EAX,EAX
LEA RCX,[0x213f2c]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_5:
MOV RAX,qword ptr [RDI + 0x8]
CMP RAX,qword ptr [RSI + 0x8]
JMP 0x001b0e67
LAB_001b0d16:
MOV EDX,EAX
XOR DL,0x5
MOV R8D,ECX
XOR R8B,0x7
OR DL,R8B
JNZ 0x001b0d38
CVTSI2SD XMM0,qword ptr [RDI + 0x8]
CMPEQSD XMM0,qword ptr [RSI + 0x8]
JMP 0x001b0dde
LAB_001b0d38:
MOV R9D,EAX
XOR R9B,0x7
MOV EDX,ECX
XOR DL,0x5
OR R9B,DL
JNZ 0x001b0d54
CVTSI2SD XMM0,qword ptr [RSI + 0x8]
JMP 0x001b0dd8
LAB_001b0d54:
MOV R9D,EAX
XOR R9B,0x6
OR R9B,R8B
JNZ 0x001b0d88
MOVSD XMM0,qword ptr [RDI + 0x8]
UNPCKLPS XMM0,xmmword ptr [0x00209bc0]
SUBPD XMM0,xmmword ptr [0x00209bd0]
MOVAPD XMM1,XMM0
UNPCKHPD XMM1,XMM0
ADDSD XMM1,XMM0
CMPEQSD XMM1,qword ptr [RSI + 0x8]
JMP 0x001b0dc1
LAB_001b0d88:
MOV R8D,EAX
XOR R8B,0x7
XOR CL,0x6
OR R8B,CL
JNZ 0x001b0f2f
MOVSD XMM0,qword ptr [RSI + 0x8]
UNPCKLPS XMM0,xmmword ptr [0x00209bc0]
SUBPD XMM0,xmmword ptr [0x00209bd0]
MOVAPD XMM1,XMM0
UNPCKHPD XMM1,XMM0
ADDSD XMM1,XMM0
CMPEQSD XMM1,qword ptr [RDI + 0x8]
LAB_001b0dc1:
MOVQ RBX,XMM1
JMP 0x001b0de3
caseD_4:
MOV AL,byte ptr [RDI + 0x8]
CMP AL,byte ptr [RSI + 0x8]
JMP 0x001b0e67
caseD_7:
MOVSD XMM0,qword ptr [RSI + 0x8]
LAB_001b0dd8:
CMPEQSD XMM0,qword ptr [RDI + 0x8]
LAB_001b0dde:
MOVQ RBX,XMM0
LAB_001b0de3:
AND EBX,0x1
JMP 0x001b0f21
caseD_2:
MOV RAX,qword ptr [RDI + 0x8]
MOV RCX,qword ptr [RSI + 0x8]
MOV R14,qword ptr [RAX]
MOV R12,qword ptr [RAX + 0x8]
MOV RAX,R12
SUB RAX,R14
MOV R15,qword ptr [RCX]
MOV RCX,qword ptr [RCX + 0x8]
SUB RCX,R15
CMP RAX,RCX
JNZ 0x001b0ede
LAB_001b0e13:
CMP R14,R12
JZ 0x001b0f21
MOV RDI,R14
MOV RSI,R15
CALL 0x001b0cd8
MOV EBX,EAX
TEST AL,AL
JZ 0x001b0f21
ADD R14,0x10
ADD R15,0x10
JMP 0x001b0e13
caseD_3:
MOV RAX,qword ptr [RDI + 0x8]
MOV RCX,qword ptr [RSI + 0x8]
MOV RDX,qword ptr [RAX + 0x8]
CMP RDX,qword ptr [RCX + 0x8]
JNZ 0x001b0ede
TEST RDX,RDX
JZ 0x001b0f21
MOV RSI,qword ptr [RCX]
MOV RDI,qword ptr [RAX]
CALL 0x0011dcb0
TEST EAX,EAX
LAB_001b0e67:
SETZ BL
JMP 0x001b0f21
caseD_1:
MOV RAX,qword ptr [RDI + 0x8]
MOV RCX,qword ptr [RSI + 0x8]
MOV R15,qword ptr [RAX]
MOV R12,qword ptr [RAX + 0x8]
MOV RAX,R12
SUB RAX,R15
MOV R14,qword ptr [RCX]
MOV RCX,qword ptr [RCX + 0x8]
SUB RCX,R14
CMP RAX,RCX
JNZ 0x001b0ede
CMP R15,R12
JZ 0x001b0f21
ADD R14,0x20
LAB_001b0ea0:
MOV RDX,qword ptr [R15 + 0x8]
CMP RDX,qword ptr [R14 + -0x18]
JNZ 0x001b0ede
TEST RDX,RDX
JZ 0x001b0ebf
MOV RSI,qword ptr [R14 + -0x20]
MOV RDI,qword ptr [R15]
CALL 0x0011dcb0
TEST EAX,EAX
JNZ 0x001b0ede
LAB_001b0ebf:
LEA RDI,[R15 + 0x20]
MOV RSI,R14
CALL 0x001b0cd8
TEST AL,AL
JZ 0x001b0ede
ADD R15,0x30
ADD R14,0x30
CMP R15,R12
JNZ 0x001b0ea0
JMP 0x001b0f21
LAB_001b0ede:
XOR EBX,EBX
JMP 0x001b0f21
caseD_8:
MOV RAX,qword ptr [RDI + 0x8]
MOV RCX,qword ptr [RSI + 0x8]
LEA RDX,[RAX + 0x18]
LEA RSI,[RAX + 0x20]
LEA RDI,[RSP + 0x20]
MOV qword ptr [RDI],RSI
MOV qword ptr [RDI + 0x8],RDX
MOV qword ptr [RDI + 0x10],RAX
LEA RAX,[RCX + 0x18]
LEA RDX,[RCX + 0x20]
LEA RSI,[RSP + 0x8]
MOV qword ptr [RSI],RDX
MOV qword ptr [RSI + 0x8],RAX
MOV qword ptr [RSI + 0x10],RCX
LAB_001b0f1a:
CALL 0x001b0fb8
MOV EBX,EAX
caseD_0:
MOV EAX,EBX
ADD RSP,0x38
POP RBX
POP R12
POP R14
POP R15
RET
LAB_001b0f2f:
MOV R8D,EAX
XOR R8B,0x6
OR R8B,DL
JZ 0x001b0d09
XOR AL,0x5
OR AL,CL
JZ 0x001b0d09
XOR EBX,EBX
XOR EDX,EDX
CALL 0x001b0f5c
JMP 0x001b0f21
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* nlohmann::json_abi_v3_11_3::TEMPNAMEPLACEHOLDERVALUE(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const&,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const&) */
ulong nlohmann::json_abi_v3_11_3::operator==(basic_json *param_1,basic_json *param_2)
{
basic_json bVar1;
basic_json bVar2;
basic_json *pbVar3;
size_t sVar4;
int8 *puVar5;
long lVar6;
double dVar7;
char cVar8;
int iVar9;
uint uVar10;
ulong unaff_RBX;
basic_json *pbVar11;
basic_json *pbVar12;
int8 *puVar13;
bool bVar14;
long local_50;
long local_48;
long local_40;
long local_38;
long local_30;
long local_28;
bVar2 = *param_1;
bVar1 = *param_2;
if (bVar2 != bVar1) {
if (bVar2 == (basic_json)0x5 && ((byte)bVar1 ^ 7) == 0) {
bVar14 = (double)*(long *)(param_1 + 8) == *(double *)(param_2 + 8);
}
else {
if (bVar2 == (basic_json)0x7 && ((byte)bVar1 ^ 5) == 0) {
dVar7 = (double)*(long *)(param_2 + 8);
goto LAB_001b0dd8;
}
if (bVar2 == (basic_json)0x6 && ((byte)bVar1 ^ 7) == 0) {
bVar14 = ((double)CONCAT44(DAT_00209bc0._4_4_,
(int)((ulong)*(int8 *)(param_1 + 8) >> 0x20)) -
_UNK_00209bd8) +
((double)CONCAT44((int4)DAT_00209bc0,(int)*(int8 *)(param_1 + 8)) -
_DAT_00209bd0) == *(double *)(param_2 + 8);
}
else {
if (bVar2 != (basic_json)0x7 || ((byte)bVar1 ^ 6) != 0) {
if ((bVar2 != (basic_json)0x6 || ((byte)bVar1 ^ 5) != 0) &&
(bVar2 != (basic_json)0x5 || ((byte)bVar1 ^ 6) != 0)) {
unaff_RBX = 0;
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>
::compares_unordered(param_1,param_2,false);
goto switchD_001b0d07_caseD_0;
}
goto switchD_001b0d07_caseD_5;
}
bVar14 = ((double)CONCAT44(DAT_00209bc0._4_4_,
(int)((ulong)*(int8 *)(param_2 + 8) >> 0x20)) -
_UNK_00209bd8) +
((double)CONCAT44((int4)DAT_00209bc0,(int)*(int8 *)(param_2 + 8)) -
_DAT_00209bd0) == *(double *)(param_1 + 8);
}
}
LAB_001b0de3:
unaff_RBX = (ulong)(-(uint)bVar14 & 1);
goto switchD_001b0d07_caseD_0;
}
if (8 < (byte)bVar2) goto LAB_001b0ede;
unaff_RBX = CONCAT71((int7)(unaff_RBX >> 8),1);
switch(bVar2) {
case (basic_json)0x0:
goto switchD_001b0d07_caseD_0;
case (basic_json)0x1:
puVar13 = (int8 *)**(long **)(param_1 + 8);
puVar5 = (int8 *)(*(long **)(param_1 + 8))[1];
lVar6 = **(long **)(param_2 + 8);
if ((long)puVar5 - (long)puVar13 == (*(long **)(param_2 + 8))[1] - lVar6) {
if (puVar13 != puVar5) {
pbVar11 = (basic_json *)(lVar6 + 0x20);
do {
sVar4 = puVar13[1];
if ((sVar4 != *(size_t *)(pbVar11 + -0x18)) ||
(((sVar4 != 0 &&
(iVar9 = bcmp((void *)*puVar13,*(void **)(pbVar11 + -0x20),sVar4), iVar9 != 0)) ||
(cVar8 = operator==((basic_json *)(puVar13 + 4),pbVar11), cVar8 == '\0'))))
goto LAB_001b0ede;
puVar13 = puVar13 + 6;
pbVar11 = pbVar11 + 0x30;
} while (puVar13 != puVar5);
}
goto switchD_001b0d07_caseD_0;
}
break;
case (basic_json)0x2:
pbVar11 = (basic_json *)**(long **)(param_1 + 8);
pbVar3 = (basic_json *)(*(long **)(param_1 + 8))[1];
pbVar12 = (basic_json *)**(long **)(param_2 + 8);
if ((long)pbVar3 - (long)pbVar11 == (*(long **)(param_2 + 8))[1] - (long)pbVar12) {
for (; pbVar11 != pbVar3; pbVar11 = pbVar11 + 0x10) {
uVar10 = operator==(pbVar11,pbVar12);
unaff_RBX = (ulong)uVar10;
if ((char)uVar10 == '\0') break;
pbVar12 = pbVar12 + 0x10;
}
goto switchD_001b0d07_caseD_0;
}
break;
case (basic_json)0x3:
sVar4 = (*(int8 **)(param_1 + 8))[1];
if (sVar4 == (*(int8 **)(param_2 + 8))[1]) {
if (sVar4 == 0) goto switchD_001b0d07_caseD_0;
iVar9 = bcmp((void *)**(int8 **)(param_1 + 8),(void *)**(int8 **)(param_2 + 8),
sVar4);
bVar14 = iVar9 == 0;
goto LAB_001b0e67;
}
break;
case (basic_json)0x4:
bVar14 = param_1[8] == param_2[8];
goto LAB_001b0e67;
default:
switchD_001b0d07_caseD_5:
bVar14 = *(long *)(param_1 + 8) == *(long *)(param_2 + 8);
LAB_001b0e67:
unaff_RBX = CONCAT71((int7)(unaff_RBX >> 8),bVar14);
goto switchD_001b0d07_caseD_0;
case (basic_json)0x7:
dVar7 = *(double *)(param_2 + 8);
LAB_001b0dd8:
bVar14 = dVar7 == *(double *)(param_1 + 8);
goto LAB_001b0de3;
case (basic_json)0x8:
local_28 = *(long *)(param_1 + 8);
local_40 = *(long *)(param_2 + 8);
local_30 = local_28 + 0x18;
local_38 = local_28 + 0x20;
local_48 = local_40 + 0x18;
local_50 = local_40 + 0x20;
/* try { // try from 001b0f1a to 001b0f1e has its CatchHandler @ 001b0f54 */
uVar10 = std::
__tuple_compare<std::tuple<std::vector<unsigned_char,std::allocator<unsigned_char>>const&,unsigned_long_const&,bool_const&>,std::tuple<std::vector<unsigned_char,std::allocator<unsigned_char>>const&,unsigned_long_const&,bool_const&>,0ul,3ul>
::__eq((tuple *)&local_38,(tuple *)&local_50);
unaff_RBX = (ulong)uVar10;
goto switchD_001b0d07_caseD_0;
}
LAB_001b0ede:
unaff_RBX = 0;
switchD_001b0d07_caseD_0:
return unaff_RBX & 0xffffffff;
}
|
|
60,707
|
google::protobuf::compiler::java::ImmutableEnumFieldGenerator::GenerateBuilderMembers(google::protobuf::io::Printer*) const
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/java/enum_field.cc
|
void ImmutableEnumFieldGenerator::GenerateBuilderMembers(
io::Printer* printer) const {
printer->Print(variables_, "private int $name$_ = $default_number$;\n");
if (HasHazzer(descriptor_)) {
WriteFieldAccessorDocComment(printer, descriptor_, HAZZER);
printer->Print(variables_,
"@java.lang.Override $deprecation$public boolean "
"${$has$capitalized_name$$}$() {\n"
" return $get_has_field_bit_builder$;\n"
"}\n");
printer->Annotate("{", "}", descriptor_);
}
if (SupportUnknownEnumValue(descriptor_->file())) {
WriteFieldEnumValueAccessorDocComment(printer, descriptor_, GETTER);
printer->Print(variables_,
"@java.lang.Override $deprecation$public int "
"${$get$capitalized_name$Value$}$() {\n"
" return $name$_;\n"
"}\n");
printer->Annotate("{", "}", descriptor_);
WriteFieldEnumValueAccessorDocComment(printer, descriptor_, SETTER,
/* builder */ true);
printer->Print(variables_,
"$deprecation$public Builder "
"${$set$capitalized_name$Value$}$(int value) {\n"
" $name$_ = value;\n"
" $set_has_field_bit_builder$\n"
" onChanged();\n"
" return this;\n"
"}\n");
printer->Annotate("{", "}", descriptor_);
}
WriteFieldAccessorDocComment(printer, descriptor_, GETTER);
printer->Print(variables_,
"@java.lang.Override\n"
"$deprecation$public $type$ ${$get$capitalized_name$$}$() {\n"
" $type$ result = $type$.forNumber($name$_);\n"
" return result == null ? $unknown$ : result;\n"
"}\n");
printer->Annotate("{", "}", descriptor_);
WriteFieldAccessorDocComment(printer, descriptor_, SETTER,
/* builder */ true);
printer->Print(variables_,
"$deprecation$public Builder "
"${$set$capitalized_name$$}$($type$ value) {\n"
" if (value == null) {\n"
" throw new NullPointerException();\n"
" }\n"
" $set_has_field_bit_builder$\n"
" $name$_ = value.getNumber();\n"
" onChanged();\n"
" return this;\n"
"}\n");
printer->Annotate("{", "}", descriptor_);
WriteFieldAccessorDocComment(printer, descriptor_, CLEARER,
/* builder */ true);
printer->Print(
variables_,
"$deprecation$public Builder ${$clear$capitalized_name$$}$() {\n"
" $clear_has_field_bit_builder$\n"
" $name$_ = $default_number$;\n"
" onChanged();\n"
" return this;\n"
"}\n");
printer->Annotate("{", "}", descriptor_);
}
|
O3
|
cpp
|
google::protobuf::compiler::java::ImmutableEnumFieldGenerator::GenerateBuilderMembers(google::protobuf::io::Printer*) const:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x18(%rdi), %r15
leaq 0xf38fa(%rip), %rdx # 0x1e7f4a
movq %rsi, %rdi
movq %r15, %rsi
callq 0x16cd32
movq 0x8(%r14), %r12
movb 0x1(%r12), %al
notb %al
testb $0x60, %al
je 0xf46cb
movq %r12, %rdi
callq 0x11d7ce
testq %rax, %rax
jne 0xf468f
movb 0x1(%r12), %al
testb $0x2, %al
jne 0xf468f
movq 0x10(%r12), %rcx
cmpb $0x2, 0x3(%rcx)
jne 0xf4816
movq 0x8(%r14), %rsi
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xcff9a
leaq 0xf3a59(%rip), %rdx # 0x1e80ff
movq %rbx, %rdi
movq %r15, %rsi
callq 0x16cd32
movq 0x8(%r14), %rcx
leaq 0xfba1d(%rip), %rsi # 0x1f00d9
leaq 0xec00a(%rip), %rdx # 0x1e06cd
movq %rbx, %rdi
callq 0xafc7e
movq 0x8(%r14), %rsi
movq 0x10(%rsi), %rax
cmpb $0x3, 0x3(%rax)
jne 0xf4758
movq %rbx, %rdi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0xd0175
leaq 0xf38fd(%rip), %rdx # 0x1e7fec
movq %rbx, %rdi
movq %r15, %rsi
callq 0x16cd32
movq 0x8(%r14), %rcx
leaq 0xfb9d4(%rip), %r12 # 0x1f00d9
leaq 0xebfc1(%rip), %r13 # 0x1e06cd
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0xafc7e
movq 0x8(%r14), %rsi
movq %rbx, %rdi
movl $0x2, %edx
movl $0x1, %ecx
callq 0xd0175
leaq 0xf3a41(%rip), %rdx # 0x1e8178
movq %rbx, %rdi
movq %r15, %rsi
callq 0x16cd32
movq 0x8(%r14), %rcx
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0xafc7e
movq 0x8(%r14), %rsi
movq %rbx, %rdi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0xcff9a
leaq 0xf3aa6(%rip), %rdx # 0x1e8214
movq %rbx, %rdi
movq %r15, %rsi
callq 0x16cd32
movq 0x8(%r14), %rcx
leaq 0xfb955(%rip), %r12 # 0x1f00d9
leaq 0xebf42(%rip), %r13 # 0x1e06cd
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0xafc7e
movq 0x8(%r14), %rsi
movq %rbx, %rdi
movl $0x2, %edx
movl $0x1, %ecx
callq 0xcff9a
leaq 0xf3b0b(%rip), %rdx # 0x1e82c1
movq %rbx, %rdi
movq %r15, %rsi
callq 0x16cd32
movq 0x8(%r14), %rcx
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0xafc7e
movq 0x8(%r14), %rsi
movq %rbx, %rdi
movl $0x3, %edx
movl $0x1, %ecx
callq 0xcff9a
leaq 0xf3bb8(%rip), %rdx # 0x1e83a8
movq %rbx, %rdi
movq %r15, %rsi
callq 0x16cd32
movq 0x8(%r14), %rcx
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xafc7e
testb $0x10, %al
sete %cl
movq 0x28(%r12), %rax
testq %rax, %rax
sete %dl
orb %cl, %dl
jne 0xf46cb
cmpl $0x1, 0x4(%rax)
jne 0xf468f
movq 0x20(%rax), %rax
testb $0x2, 0x1(%rax)
je 0xf468f
jmp 0xf46cb
nop
|
_ZNK6google8protobuf8compiler4java27ImmutableEnumFieldGenerator22GenerateBuilderMembersEPNS0_2io7PrinterE:
push r15; int
push r14; int
push r13; char
push r12; int
push rbx; void *
mov rbx, rsi
mov r14, rdi
lea r15, [rdi+18h]
lea rdx, aPrivateIntName_0; "private int $name$_ = $default_number$;"...
mov rdi, rsi; this
mov rsi, r15
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
mov r12, [r14+8]
mov al, [r12+1]
not al
test al, 60h
jz short loc_F46CB
mov rdi, r12; this
call _ZNK6google8protobuf15FieldDescriptor12message_typeEv; google::protobuf::FieldDescriptor::message_type(void)
test rax, rax
jnz short loc_F468F
mov al, [r12+1]
test al, 2
jnz short loc_F468F
mov rcx, [r12+10h]
cmp byte ptr [rcx+3], 2
jnz loc_F4816
loc_F468F:
mov rsi, [r14+8]; google::protobuf::FieldDescriptor *
mov rdi, rbx; this
xor edx, edx
xor ecx, ecx
call _ZN6google8protobuf8compiler4java28WriteFieldAccessorDocCommentEPNS0_2io7PrinterEPKNS0_15FieldDescriptorENS2_17FieldAccessorTypeEb; google::protobuf::compiler::java::WriteFieldAccessorDocComment(google::protobuf::io::Printer *,google::protobuf::FieldDescriptor const*,google::protobuf::compiler::java::FieldAccessorType,bool)
lea rdx, aJavaLangOverri_102; "@java.lang.Override $deprecation$public"...
mov rdi, rbx; this
mov rsi, r15
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
mov rcx, [r14+8]
lea rsi, a0oneof1+0Bh; "{"
lea rdx, aKotlinJvmJvmsy_32+0E3h; "}"
mov rdi, rbx
call _ZN6google8protobuf2io7Printer8AnnotateINS0_15FieldDescriptorEEEvPKcS6_PKT_; google::protobuf::io::Printer::Annotate<google::protobuf::FieldDescriptor>(char const*,char const*,google::protobuf::FieldDescriptor const*)
loc_F46CB:
mov rsi, [r14+8]; google::protobuf::FieldDescriptor *
mov rax, [rsi+10h]
cmp byte ptr [rax+3], 3
jnz short loc_F4758
mov rdi, rbx; this
mov edx, 1
xor ecx, ecx
call _ZN6google8protobuf8compiler4java37WriteFieldEnumValueAccessorDocCommentEPNS0_2io7PrinterEPKNS0_15FieldDescriptorENS2_17FieldAccessorTypeEb; google::protobuf::compiler::java::WriteFieldEnumValueAccessorDocComment(google::protobuf::io::Printer *,google::protobuf::FieldDescriptor const*,google::protobuf::compiler::java::FieldAccessorType,bool)
lea rdx, aJavaLangOverri_100; "@java.lang.Override $deprecation$public"...
mov rdi, rbx; this
mov rsi, r15
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
mov rcx, [r14+8]
lea r12, a0oneof1+0Bh; "{"
lea r13, aKotlinJvmJvmsy_32+0E3h; "}"
mov rdi, rbx
mov rsi, r12
mov rdx, r13
call _ZN6google8protobuf2io7Printer8AnnotateINS0_15FieldDescriptorEEEvPKcS6_PKT_; google::protobuf::io::Printer::Annotate<google::protobuf::FieldDescriptor>(char const*,char const*,google::protobuf::FieldDescriptor const*)
mov rsi, [r14+8]; google::protobuf::FieldDescriptor *
mov rdi, rbx; this
mov edx, 2
mov ecx, 1
call _ZN6google8protobuf8compiler4java37WriteFieldEnumValueAccessorDocCommentEPNS0_2io7PrinterEPKNS0_15FieldDescriptorENS2_17FieldAccessorTypeEb; google::protobuf::compiler::java::WriteFieldEnumValueAccessorDocComment(google::protobuf::io::Printer *,google::protobuf::FieldDescriptor const*,google::protobuf::compiler::java::FieldAccessorType,bool)
lea rdx, aDeprecationPub_97; "$deprecation$public Builder ${$set$capi"...
mov rdi, rbx; this
mov rsi, r15
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
mov rcx, [r14+8]
mov rdi, rbx
mov rsi, r12
mov rdx, r13
call _ZN6google8protobuf2io7Printer8AnnotateINS0_15FieldDescriptorEEEvPKcS6_PKT_; google::protobuf::io::Printer::Annotate<google::protobuf::FieldDescriptor>(char const*,char const*,google::protobuf::FieldDescriptor const*)
mov rsi, [r14+8]; google::protobuf::FieldDescriptor *
loc_F4758:
mov rdi, rbx; this
mov edx, 1
xor ecx, ecx
call _ZN6google8protobuf8compiler4java28WriteFieldAccessorDocCommentEPNS0_2io7PrinterEPKNS0_15FieldDescriptorENS2_17FieldAccessorTypeEb; google::protobuf::compiler::java::WriteFieldAccessorDocComment(google::protobuf::io::Printer *,google::protobuf::FieldDescriptor const*,google::protobuf::compiler::java::FieldAccessorType,bool)
lea rdx, aJavaLangOverri_103; "@java.lang.Override\n$deprecation$publi"...
mov rdi, rbx; this
mov rsi, r15
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
mov rcx, [r14+8]
lea r12, a0oneof1+0Bh; "{"
lea r13, aKotlinJvmJvmsy_32+0E3h; "}"
mov rdi, rbx
mov rsi, r12
mov rdx, r13
call _ZN6google8protobuf2io7Printer8AnnotateINS0_15FieldDescriptorEEEvPKcS6_PKT_; google::protobuf::io::Printer::Annotate<google::protobuf::FieldDescriptor>(char const*,char const*,google::protobuf::FieldDescriptor const*)
mov rsi, [r14+8]; google::protobuf::FieldDescriptor *
mov rdi, rbx; this
mov edx, 2
mov ecx, 1
call _ZN6google8protobuf8compiler4java28WriteFieldAccessorDocCommentEPNS0_2io7PrinterEPKNS0_15FieldDescriptorENS2_17FieldAccessorTypeEb; google::protobuf::compiler::java::WriteFieldAccessorDocComment(google::protobuf::io::Printer *,google::protobuf::FieldDescriptor const*,google::protobuf::compiler::java::FieldAccessorType,bool)
lea rdx, aDeprecationPub_98; "$deprecation$public Builder ${$set$capi"...
mov rdi, rbx; this
mov rsi, r15
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
mov rcx, [r14+8]
mov rdi, rbx
mov rsi, r12
mov rdx, r13
call _ZN6google8protobuf2io7Printer8AnnotateINS0_15FieldDescriptorEEEvPKcS6_PKT_; google::protobuf::io::Printer::Annotate<google::protobuf::FieldDescriptor>(char const*,char const*,google::protobuf::FieldDescriptor const*)
mov rsi, [r14+8]; google::protobuf::FieldDescriptor *
mov rdi, rbx; this
mov edx, 3
mov ecx, 1
call _ZN6google8protobuf8compiler4java28WriteFieldAccessorDocCommentEPNS0_2io7PrinterEPKNS0_15FieldDescriptorENS2_17FieldAccessorTypeEb; google::protobuf::compiler::java::WriteFieldAccessorDocComment(google::protobuf::io::Printer *,google::protobuf::FieldDescriptor const*,google::protobuf::compiler::java::FieldAccessorType,bool)
lea rdx, aDeprecationPub_99; "$deprecation$public Builder ${$clear$ca"...
mov rdi, rbx; this
mov rsi, r15
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
mov rcx, [r14+8]
mov rdi, rbx
mov rsi, r12
mov rdx, r13
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp _ZN6google8protobuf2io7Printer8AnnotateINS0_15FieldDescriptorEEEvPKcS6_PKT_; google::protobuf::io::Printer::Annotate<google::protobuf::FieldDescriptor>(char const*,char const*,google::protobuf::FieldDescriptor const*)
loc_F4816:
test al, 10h
setz cl
mov rax, [r12+28h]
test rax, rax
setz dl
or dl, cl
jnz loc_F46CB
cmp dword ptr [rax+4], 1
jnz loc_F468F
mov rax, [rax+20h]
test byte ptr [rax+1], 2
jz loc_F468F
jmp loc_F46CB
|
GenerateBuilderMembers:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV RBX,RSI
MOV R14,RDI
LEA R15,[RDI + 0x18]
LEA RDX,[0x2e7f4a]
MOV RDI,RSI
MOV RSI,R15
CALL 0x0026cd32
MOV R12,qword ptr [R14 + 0x8]
MOV AL,byte ptr [R12 + 0x1]
NOT AL
TEST AL,0x60
JZ 0x001f46cb
MOV RDI,R12
CALL 0x0021d7ce
TEST RAX,RAX
JNZ 0x001f468f
MOV AL,byte ptr [R12 + 0x1]
TEST AL,0x2
JNZ 0x001f468f
MOV RCX,qword ptr [R12 + 0x10]
CMP byte ptr [RCX + 0x3],0x2
JNZ 0x001f4816
LAB_001f468f:
MOV RSI,qword ptr [R14 + 0x8]
MOV RDI,RBX
XOR EDX,EDX
XOR ECX,ECX
CALL 0x001cff9a
LEA RDX,[0x2e80ff]
MOV RDI,RBX
MOV RSI,R15
CALL 0x0026cd32
MOV RCX,qword ptr [R14 + 0x8]
LEA RSI,[0x2f00d9]
LEA RDX,[0x2e06cd]
MOV RDI,RBX
CALL 0x001afc7e
LAB_001f46cb:
MOV RSI,qword ptr [R14 + 0x8]
MOV RAX,qword ptr [RSI + 0x10]
CMP byte ptr [RAX + 0x3],0x3
JNZ 0x001f4758
MOV RDI,RBX
MOV EDX,0x1
XOR ECX,ECX
CALL 0x001d0175
LEA RDX,[0x2e7fec]
MOV RDI,RBX
MOV RSI,R15
CALL 0x0026cd32
MOV RCX,qword ptr [R14 + 0x8]
LEA R12,[0x2f00d9]
LEA R13,[0x2e06cd]
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R13
CALL 0x001afc7e
MOV RSI,qword ptr [R14 + 0x8]
MOV RDI,RBX
MOV EDX,0x2
MOV ECX,0x1
CALL 0x001d0175
LEA RDX,[0x2e8178]
MOV RDI,RBX
MOV RSI,R15
CALL 0x0026cd32
MOV RCX,qword ptr [R14 + 0x8]
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R13
CALL 0x001afc7e
MOV RSI,qword ptr [R14 + 0x8]
LAB_001f4758:
MOV RDI,RBX
MOV EDX,0x1
XOR ECX,ECX
CALL 0x001cff9a
LEA RDX,[0x2e8214]
MOV RDI,RBX
MOV RSI,R15
CALL 0x0026cd32
MOV RCX,qword ptr [R14 + 0x8]
LEA R12,[0x2f00d9]
LEA R13,[0x2e06cd]
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R13
CALL 0x001afc7e
MOV RSI,qword ptr [R14 + 0x8]
MOV RDI,RBX
MOV EDX,0x2
MOV ECX,0x1
CALL 0x001cff9a
LEA RDX,[0x2e82c1]
MOV RDI,RBX
MOV RSI,R15
CALL 0x0026cd32
MOV RCX,qword ptr [R14 + 0x8]
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R13
CALL 0x001afc7e
MOV RSI,qword ptr [R14 + 0x8]
MOV RDI,RBX
MOV EDX,0x3
MOV ECX,0x1
CALL 0x001cff9a
LEA RDX,[0x2e83a8]
MOV RDI,RBX
MOV RSI,R15
CALL 0x0026cd32
MOV RCX,qword ptr [R14 + 0x8]
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R13
POP RBX
POP R12
POP R13
POP R14
POP R15
JMP 0x001afc7e
LAB_001f4816:
TEST AL,0x10
SETZ CL
MOV RAX,qword ptr [R12 + 0x28]
TEST RAX,RAX
SETZ DL
OR DL,CL
JNZ 0x001f46cb
CMP dword ptr [RAX + 0x4],0x1
JNZ 0x001f468f
MOV RAX,qword ptr [RAX + 0x20]
TEST byte ptr [RAX + 0x1],0x2
JZ 0x001f468f
JMP 0x001f46cb
|
/* google::protobuf::compiler::java::ImmutableEnumFieldGenerator::GenerateBuilderMembers(google::protobuf::io::Printer*)
const */
void __thiscall
google::protobuf::compiler::java::ImmutableEnumFieldGenerator::GenerateBuilderMembers
(ImmutableEnumFieldGenerator *this,Printer *param_1)
{
map *pmVar1;
FieldDescriptor *this_00;
long lVar2;
pmVar1 = (map *)(this + 0x18);
io::Printer::Print(param_1,pmVar1,"private int $name$_ = $default_number$;\n");
this_00 = *(FieldDescriptor **)(this + 8);
if (((~(byte)this_00[1] & 0x60) != 0) &&
((((lVar2 = FieldDescriptor::message_type(this_00), lVar2 != 0 || (((byte)this_00[1] & 2) != 0)
) || (*(char *)(*(long *)(this_00 + 0x10) + 3) == '\x02')) ||
((lVar2 = *(long *)(this_00 + 0x28), lVar2 != 0 && ((byte)this_00[1] & 0x10) != 0 &&
((*(int *)(lVar2 + 4) != 1 || ((*(byte *)(*(long *)(lVar2 + 0x20) + 1) & 2) == 0)))))))) {
WriteFieldAccessorDocComment(param_1,*(int8 *)(this + 8),0,0);
io::Printer::Print(param_1,pmVar1,
"@java.lang.Override $deprecation$public boolean ${$has$capitalized_name$$}$() {\n return $get_has_field_bit_builder$;\n}\n"
);
io::Printer::Annotate<google::protobuf::FieldDescriptor>
(param_1,"{","}",*(FieldDescriptor **)(this + 8));
}
lVar2 = *(long *)(this + 8);
if (*(char *)(*(long *)(lVar2 + 0x10) + 3) == '\x03') {
WriteFieldEnumValueAccessorDocComment(param_1,lVar2,1,0);
io::Printer::Print(param_1,pmVar1,
"@java.lang.Override $deprecation$public int ${$get$capitalized_name$Value$}$() {\n return $name$_;\n}\n"
);
io::Printer::Annotate<google::protobuf::FieldDescriptor>
(param_1,"{","}",*(FieldDescriptor **)(this + 8));
WriteFieldEnumValueAccessorDocComment(param_1,*(int8 *)(this + 8),2,1);
io::Printer::Print(param_1,pmVar1,
"$deprecation$public Builder ${$set$capitalized_name$Value$}$(int value) {\n $name$_ = value;\n $set_has_field_bit_builder$\n onChanged();\n return this;\n}\n"
);
io::Printer::Annotate<google::protobuf::FieldDescriptor>
(param_1,"{","}",*(FieldDescriptor **)(this + 8));
lVar2 = *(long *)(this + 8);
}
WriteFieldAccessorDocComment(param_1,lVar2,1,0);
io::Printer::Print(param_1,pmVar1,
"@java.lang.Override\n$deprecation$public $type$ ${$get$capitalized_name$$}$() {\n $type$ result = $type$.forNumber($name$_);\n return result == null ? $unknown$ : result;\n}\n"
);
io::Printer::Annotate<google::protobuf::FieldDescriptor>
(param_1,"{","}",*(FieldDescriptor **)(this + 8));
WriteFieldAccessorDocComment(param_1,*(int8 *)(this + 8),2,1);
io::Printer::Print(param_1,pmVar1,
"$deprecation$public Builder ${$set$capitalized_name$$}$($type$ value) {\n if (value == null) {\n throw new NullPointerException();\n }\n $set_has_field_bit_builder$\n $name$_ = value.getNumber();\n onChanged();\n return this;\n}\n"
);
io::Printer::Annotate<google::protobuf::FieldDescriptor>
(param_1,"{","}",*(FieldDescriptor **)(this + 8));
WriteFieldAccessorDocComment(param_1,*(int8 *)(this + 8),3,1);
io::Printer::Print(param_1,pmVar1,
"$deprecation$public Builder ${$clear$capitalized_name$$}$() {\n $clear_has_field_bit_builder$\n $name$_ = $default_number$;\n onChanged();\n return this;\n}\n"
);
io::Printer::Annotate<google::protobuf::FieldDescriptor>
(param_1,"{","}",*(FieldDescriptor **)(this + 8));
return;
}
|
||
60,708
|
js_typed_array_of
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_typed_array_of(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue obj;
JSValue args[1];
int i;
args[0] = js_int32(argc);
obj = js_typed_array_create(ctx, this_val, 1, args);
if (JS_IsException(obj))
return obj;
for(i = 0; i < argc; i++) {
if (JS_SetPropertyUint32(ctx, obj, i, js_dup(argv[i])) < 0) {
JS_FreeValue(ctx, obj);
return JS_EXCEPTION;
}
}
return obj;
}
|
O0
|
c
|
js_typed_array_of:
subq $0xa8, %rsp
movq %rsi, 0x88(%rsp)
movq %rdx, 0x90(%rsp)
movq %rdi, 0x80(%rsp)
movl %ecx, 0x7c(%rsp)
movq %r8, 0x70(%rsp)
movl 0x7c(%rsp), %edi
callq 0x39fb0
movq %rax, 0x38(%rsp)
movq %rdx, 0x40(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x80(%rsp), %rdi
leaq 0x50(%rsp), %r8
movq 0x88(%rsp), %rsi
movq 0x90(%rsp), %rdx
movl $0x1, %ecx
callq 0xd48f0
movq %rax, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x60(%rsp), %rdi
movq 0x68(%rsp), %rsi
callq 0x29fb0
cmpl $0x0, %eax
je 0xea5f7
movq 0x60(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0xa0(%rsp)
jmp 0xea6cc
movl $0x0, 0x4c(%rsp)
movl 0x4c(%rsp), %eax
cmpl 0x7c(%rsp), %eax
jge 0xea6b2
movq 0x80(%rsp), %rax
movq %rax, 0x8(%rsp)
movl 0x4c(%rsp), %eax
movl %eax, 0x14(%rsp)
movq 0x70(%rsp), %rax
movslq 0x4c(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
callq 0x279c0
movq 0x8(%rsp), %rdi
movl 0x14(%rsp), %ecx
movq %rax, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0x18(%rsp), %r8
movq 0x20(%rsp), %r9
callq 0x39640
cmpl $0x0, %eax
jge 0xea6a0
movq 0x80(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
callq 0x29f80
movl $0x0, 0x98(%rsp)
movq $0x6, 0xa0(%rsp)
jmp 0xea6cc
jmp 0xea6a2
movl 0x4c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x4c(%rsp)
jmp 0xea5ff
movq 0x60(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0x98(%rsp), %rax
movq 0xa0(%rsp), %rdx
addq $0xa8, %rsp
retq
nopw %cs:(%rax,%rax)
|
js_typed_array_of:
sub rsp, 0A8h
mov [rsp+0A8h+var_20], rsi
mov [rsp+0A8h+var_18], rdx
mov [rsp+0A8h+var_28], rdi
mov [rsp+0A8h+var_2C], ecx
mov [rsp+0A8h+var_38], r8
mov edi, [rsp+0A8h+var_2C]
call js_int32
mov [rsp+0A8h+var_70], rax
mov [rsp+0A8h+var_68], rdx
mov rax, [rsp+0A8h+var_70]
mov [rsp+0A8h+var_58], rax
mov rax, [rsp+0A8h+var_68]
mov [rsp+0A8h+var_50], rax
mov rdi, [rsp+0A8h+var_28]
lea r8, [rsp+0A8h+var_58]
mov rsi, [rsp+0A8h+var_20]
mov rdx, [rsp+0A8h+var_18]
mov ecx, 1
call js_typed_array_create
mov [rsp+0A8h+var_80], rax
mov [rsp+0A8h+var_78], rdx
mov rax, [rsp+0A8h+var_80]
mov [rsp+0A8h+var_48], rax
mov rax, [rsp+0A8h+var_78]
mov [rsp+0A8h+var_40], rax
mov rdi, [rsp+0A8h+var_48]
mov rsi, [rsp+0A8h+var_40]
call JS_IsException_1
cmp eax, 0
jz short loc_EA5F7
mov rax, [rsp+0A8h+var_48]
mov [rsp+0A8h+var_10], rax
mov rax, [rsp+0A8h+var_40]
mov [rsp+0A8h+var_8], rax
jmp loc_EA6CC
loc_EA5F7:
mov [rsp+0A8h+var_5C], 0
loc_EA5FF:
mov eax, [rsp+0A8h+var_5C]
cmp eax, [rsp+0A8h+var_2C]
jge loc_EA6B2
mov rax, [rsp+0A8h+var_28]
mov [rsp+0A8h+var_A0], rax
mov eax, [rsp+0A8h+var_5C]
mov [rsp+0A8h+var_94], eax
mov rax, [rsp+0A8h+var_38]
movsxd rcx, [rsp+0A8h+var_5C]
shl rcx, 4
add rax, rcx
mov rdi, [rax]
mov rsi, [rax+8]
call js_dup
mov rdi, [rsp+0A8h+var_A0]
mov ecx, [rsp+0A8h+var_94]
mov [rsp+0A8h+var_90], rax
mov [rsp+0A8h+var_88], rdx
mov rsi, [rsp+0A8h+var_48]
mov rdx, [rsp+0A8h+var_40]
mov r8, [rsp+0A8h+var_90]
mov r9, [rsp+0A8h+var_88]
call JS_SetPropertyUint32
cmp eax, 0
jge short loc_EA6A0
mov rdi, [rsp+0A8h+var_28]
mov rsi, [rsp+0A8h+var_48]
mov rdx, [rsp+0A8h+var_40]
call JS_FreeValue
mov dword ptr [rsp+0A8h+var_10], 0
mov [rsp+0A8h+var_8], 6
jmp short loc_EA6CC
loc_EA6A0:
jmp short $+2
loc_EA6A2:
mov eax, [rsp+0A8h+var_5C]
add eax, 1
mov [rsp+0A8h+var_5C], eax
jmp loc_EA5FF
loc_EA6B2:
mov rax, [rsp+0A8h+var_48]
mov [rsp+0A8h+var_10], rax
mov rax, [rsp+0A8h+var_40]
mov [rsp+0A8h+var_8], rax
loc_EA6CC:
mov rax, [rsp+0A8h+var_10]
mov rdx, [rsp+0A8h+var_8]
add rsp, 0A8h
retn
|
long long js_typed_array_of(
long long a1,
long long a2,
unsigned long long a3,
int a4,
long long a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
double a10,
double a11,
__m128 a12,
__m128 a13)
{
long long v13; // rdx
double v14; // xmm4_8
double v15; // xmm5_8
long long v16; // rdx
long long v17; // rdx
int v19; // [rsp+8h] [rbp-A0h]
_DWORD *v20; // [rsp+18h] [rbp-90h]
signed int i; // [rsp+4Ch] [rbp-5Ch]
_QWORD v22[2]; // [rsp+50h] [rbp-58h] BYREF
long long v23; // [rsp+60h] [rbp-48h]
long long v24; // [rsp+68h] [rbp-40h]
long long v25; // [rsp+70h] [rbp-38h]
signed int v26; // [rsp+7Ch] [rbp-2Ch]
long long v27; // [rsp+80h] [rbp-28h]
long long v28; // [rsp+88h] [rbp-20h]
unsigned long long v29; // [rsp+90h] [rbp-18h]
long long v30; // [rsp+98h] [rbp-10h]
long long v31; // [rsp+A0h] [rbp-8h]
v28 = a2;
v29 = a3;
v27 = a1;
v26 = a4;
v25 = a5;
v22[0] = js_int32(a4);
v22[1] = v13;
v23 = js_typed_array_create(a1, a2, v29, 1u, (long long)v22, a6, a7, a8, a9, v14, v15, a12, a13);
v24 = v16;
if ( JS_IsException_1(v23, v16) )
{
v30 = v23;
v31 = v24;
}
else
{
for ( i = 0; i < v26; ++i )
{
v19 = v27;
v20 = js_dup(*(_DWORD **)(16LL * i + v25), *(_QWORD *)(16LL * i + v25 + 8));
if ( (int)JS_SetPropertyUint32(v19, v23, v24, i, (long long)v20, v17) < 0 )
{
JS_FreeValue(v27, v23, v24);
LODWORD(v30) = 0;
v31 = 6LL;
return v30;
}
}
v30 = v23;
v31 = v24;
}
return v30;
}
|
js_typed_array_of:
SUB RSP,0xa8
MOV qword ptr [RSP + 0x88],RSI
MOV qword ptr [RSP + 0x90],RDX
MOV qword ptr [RSP + 0x80],RDI
MOV dword ptr [RSP + 0x7c],ECX
MOV qword ptr [RSP + 0x70],R8
MOV EDI,dword ptr [RSP + 0x7c]
CALL 0x00139fb0
MOV qword ptr [RSP + 0x38],RAX
MOV qword ptr [RSP + 0x40],RDX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x50],RAX
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x58],RAX
MOV RDI,qword ptr [RSP + 0x80]
LEA R8,[RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x88]
MOV RDX,qword ptr [RSP + 0x90]
MOV ECX,0x1
CALL 0x001d48f0
MOV qword ptr [RSP + 0x28],RAX
MOV qword ptr [RSP + 0x30],RDX
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x60],RAX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x68],RAX
MOV RDI,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RSP + 0x68]
CALL 0x00129fb0
CMP EAX,0x0
JZ 0x001ea5f7
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x98],RAX
MOV RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0xa0],RAX
JMP 0x001ea6cc
LAB_001ea5f7:
MOV dword ptr [RSP + 0x4c],0x0
LAB_001ea5ff:
MOV EAX,dword ptr [RSP + 0x4c]
CMP EAX,dword ptr [RSP + 0x7c]
JGE 0x001ea6b2
MOV RAX,qword ptr [RSP + 0x80]
MOV qword ptr [RSP + 0x8],RAX
MOV EAX,dword ptr [RSP + 0x4c]
MOV dword ptr [RSP + 0x14],EAX
MOV RAX,qword ptr [RSP + 0x70]
MOVSXD RCX,dword ptr [RSP + 0x4c]
SHL RCX,0x4
ADD RAX,RCX
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x8]
CALL 0x001279c0
MOV RDI,qword ptr [RSP + 0x8]
MOV ECX,dword ptr [RSP + 0x14]
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x20],RDX
MOV RSI,qword ptr [RSP + 0x60]
MOV RDX,qword ptr [RSP + 0x68]
MOV R8,qword ptr [RSP + 0x18]
MOV R9,qword ptr [RSP + 0x20]
CALL 0x00139640
CMP EAX,0x0
JGE 0x001ea6a0
MOV RDI,qword ptr [RSP + 0x80]
MOV RSI,qword ptr [RSP + 0x60]
MOV RDX,qword ptr [RSP + 0x68]
CALL 0x00129f80
MOV dword ptr [RSP + 0x98],0x0
MOV qword ptr [RSP + 0xa0],0x6
JMP 0x001ea6cc
LAB_001ea6a0:
JMP 0x001ea6a2
LAB_001ea6a2:
MOV EAX,dword ptr [RSP + 0x4c]
ADD EAX,0x1
MOV dword ptr [RSP + 0x4c],EAX
JMP 0x001ea5ff
LAB_001ea6b2:
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x98],RAX
MOV RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0xa0],RAX
LAB_001ea6cc:
MOV RAX,qword ptr [RSP + 0x98]
MOV RDX,qword ptr [RSP + 0xa0]
ADD RSP,0xa8
RET
|
int1 [16]
js_typed_array_of(int8 param_1,int8 param_2,int8 param_3,int param_4,long param_5)
{
int8 uVar1;
int iVar2;
int8 *puVar3;
int1 auVar4 [16];
int local_5c;
int1 local_58 [16];
int1 local_48 [16];
long local_38;
int local_2c;
int8 local_28;
int8 local_20;
int8 local_18;
int4 local_10;
int4 uStack_c;
int8 local_8;
local_38 = param_5;
local_2c = param_4;
local_28 = param_1;
local_20 = param_2;
local_18 = param_3;
local_58 = js_int32(param_4);
local_48 = js_typed_array_create(local_28,local_20,local_18,1,local_58);
iVar2 = JS_IsException(local_48._0_8_,local_48._8_8_);
if (iVar2 == 0) {
for (local_5c = 0; uVar1 = local_28, local_5c < local_2c; local_5c = local_5c + 1) {
puVar3 = (int8 *)(local_38 + (long)local_5c * 0x10);
auVar4 = js_dup(*puVar3,puVar3[1]);
iVar2 = JS_SetPropertyUint32
(uVar1,local_48._0_8_,local_48._8_8_,local_5c,auVar4._0_8_,auVar4._8_8_);
if (iVar2 < 0) {
JS_FreeValue(local_28,local_48._0_8_,local_48._8_8_);
local_10 = 0;
local_8 = 6;
goto LAB_001ea6cc;
}
}
local_10 = local_48._0_4_;
uStack_c = local_48._4_4_;
local_8 = local_48._8_8_;
}
else {
local_10 = local_48._0_4_;
uStack_c = local_48._4_4_;
local_8 = local_48._8_8_;
}
LAB_001ea6cc:
auVar4._4_4_ = uStack_c;
auVar4._0_4_ = local_10;
auVar4._8_8_ = local_8;
return auVar4;
}
|
|
60,709
|
js_typed_array_of
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_typed_array_of(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue obj;
JSValue args[1];
int i;
args[0] = js_int32(argc);
obj = js_typed_array_create(ctx, this_val, 1, args);
if (JS_IsException(obj))
return obj;
for(i = 0; i < argc; i++) {
if (JS_SetPropertyUint32(ctx, obj, i, js_dup(argv[i])) < 0) {
JS_FreeValue(ctx, obj);
return JS_EXCEPTION;
}
}
return obj;
}
|
O2
|
c
|
js_typed_array_of:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %r15
movl %ecx, %r12d
movq %rdi, %r13
movl %ecx, %eax
movq %rsp, %r8
movq %rax, (%r8)
andq $0x0, 0x8(%r8)
pushq $0x1
popq %rcx
callq 0x68b2c
movq %rax, %r14
movq %rdx, %rbx
cmpl $0x6, %ebx
jne 0x722b0
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
movq %r14, %rcx
andq %rax, %rcx
jmp 0x72303
xorl %ebp, %ebp
testl %r12d, %r12d
cmovlel %ebp, %r12d
addq $0x8, %r15
cmpq %rbp, %r12
je 0x7229e
movq -0x8(%r15), %r8
movq (%r15), %r9
cmpl $-0x9, %r9d
jb 0x722d2
incl (%r8)
movq %r13, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl %ebp, %ecx
callq 0x22893
incq %rbp
addq $0x10, %r15
testl %eax, %eax
jns 0x722bd
movq %r13, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x1bbce
pushq $0x6
popq %rbx
xorl %r14d, %r14d
xorl %ecx, %ecx
movl %r14d, %eax
orq %rcx, %rax
movq %rbx, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
js_typed_array_of:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r15, r8
mov r12d, ecx
mov r13, rdi
mov eax, ecx
mov r8, rsp
mov [r8], rax
and qword ptr [r8+8], 0
push 1
pop rcx
call js_typed_array_create
mov r14, rax
mov rbx, rdx
cmp ebx, 6
jnz short loc_722B0
loc_7229E:
mov rax, 0FFFFFFFF00000000h
mov rcx, r14
and rcx, rax
jmp short loc_72303
loc_722B0:
xor ebp, ebp
test r12d, r12d
cmovle r12d, ebp
add r15, 8
loc_722BD:
cmp r12, rbp
jz short loc_7229E
mov r8, [r15-8]
mov r9, [r15]
cmp r9d, 0FFFFFFF7h
jb short loc_722D2
inc dword ptr [r8]
loc_722D2:
mov rdi, r13
mov rsi, r14
mov rdx, rbx
mov ecx, ebp
call JS_SetPropertyUint32
inc rbp
add r15, 10h
test eax, eax
jns short loc_722BD
mov rdi, r13
mov rsi, r14
mov rdx, rbx
call JS_FreeValue
push 6
pop rbx
xor r14d, r14d
xor ecx, ecx
loc_72303:
mov eax, r14d
or rax, rcx
mov rdx, rbx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
unsigned long long js_typed_array_of(
long long a1,
unsigned long long a2,
unsigned long long a3,
unsigned int a4,
long long a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
double a10,
double a11,
__m128 a12,
__m128 a13)
{
long long v14; // r12
unsigned long long v15; // r14
long long v16; // rdx
long long v17; // rbx
unsigned long long v18; // rcx
long long v19; // rbp
long long *v20; // r15
_DWORD *v21; // r8
long long v22; // r9
int v23; // eax
_QWORD v25[9]; // [rsp+0h] [rbp-48h] BYREF
v14 = a4;
v25[0] = a4;
v25[1] = 0LL;
v15 = js_typed_array_create(a1, a2, a3, 1u, v25, a6, a7, a8, a9, a10, a11, a12, a13);
v17 = v16;
if ( (_DWORD)v16 != 6 )
{
v19 = 0LL;
if ( (int)v14 <= 0 )
v14 = 0LL;
v20 = (long long *)(a5 + 8);
while ( v14 != v19 )
{
v21 = (_DWORD *)*(v20 - 1);
v22 = *v20;
if ( (unsigned int)*v20 >= 0xFFFFFFF7 )
++*v21;
v23 = JS_SetPropertyUint32(a1, v15, v17, v19++, (long long)v21, v22);
v20 += 2;
if ( v23 < 0 )
{
JS_FreeValue(a1, v15, v17);
LODWORD(v15) = 0;
v18 = 0LL;
return v18 | (unsigned int)v15;
}
}
}
v18 = v15 & 0xFFFFFFFF00000000LL;
return v18 | (unsigned int)v15;
}
|
js_typed_array_of:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R15,R8
MOV R12D,ECX
MOV R13,RDI
MOV EAX,ECX
MOV R8,RSP
MOV qword ptr [R8],RAX
AND qword ptr [R8 + 0x8],0x0
PUSH 0x1
POP RCX
CALL 0x00168b2c
MOV R14,RAX
MOV RBX,RDX
CMP EBX,0x6
JNZ 0x001722b0
LAB_0017229e:
MOV RAX,-0x100000000
MOV RCX,R14
AND RCX,RAX
JMP 0x00172303
LAB_001722b0:
XOR EBP,EBP
TEST R12D,R12D
CMOVLE R12D,EBP
ADD R15,0x8
LAB_001722bd:
CMP R12,RBP
JZ 0x0017229e
MOV R8,qword ptr [R15 + -0x8]
MOV R9,qword ptr [R15]
CMP R9D,-0x9
JC 0x001722d2
INC dword ptr [R8]
LAB_001722d2:
MOV RDI,R13
MOV RSI,R14
MOV RDX,RBX
MOV ECX,EBP
CALL 0x00122893
INC RBP
ADD R15,0x10
TEST EAX,EAX
JNS 0x001722bd
MOV RDI,R13
MOV RSI,R14
MOV RDX,RBX
CALL 0x0011bbce
PUSH 0x6
POP RBX
XOR R14D,R14D
XOR ECX,ECX
LAB_00172303:
MOV EAX,R14D
OR RAX,RCX
MOV RDX,RBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int1 [16]
js_typed_array_of(int8 param_1,int8 param_2,int8 param_3,uint param_4,long param_5
)
{
int iVar1;
ulong uVar2;
ulong uVar3;
ulong uVar4;
int8 *puVar5;
int1 auVar6 [16];
int1 auVar7 [16];
auVar6 = js_typed_array_create();
uVar2 = auVar6._0_8_;
if (auVar6._8_4_ == 6) {
LAB_0017229e:
uVar2 = uVar2 & 0xffffffff00000000;
}
else {
uVar3 = 0;
uVar4 = (ulong)param_4;
if ((int)param_4 < 1) {
uVar4 = uVar3;
}
puVar5 = (int8 *)(param_5 + 8);
do {
if (uVar4 == uVar3) goto LAB_0017229e;
if (0xfffffff6 < (uint)*puVar5) {
*(int *)puVar5[-1] = *(int *)puVar5[-1] + 1;
}
iVar1 = JS_SetPropertyUint32(param_1,uVar2,auVar6._8_8_,uVar3 & 0xffffffff);
uVar3 = uVar3 + 1;
puVar5 = puVar5 + 2;
} while (-1 < iVar1);
JS_FreeValue(param_1,uVar2,auVar6._8_8_);
auVar6 = ZEXT816(6) << 0x40;
uVar2 = 0;
}
auVar7._0_8_ = auVar6._0_8_ & 0xffffffff | uVar2;
auVar7._8_8_ = auVar6._8_8_;
return auVar7;
}
|
|
60,710
|
nglog::GetLoggingDirectories[abi:cxx11]()
|
ng-log[P]ng-log/src/logging.cc
|
const vector<string>& GetLoggingDirectories() {
// Not strictly thread-safe but we're called early in InitGoogle().
if (logging_directories_list == nullptr) {
logging_directories_list = std::make_unique<std::vector<std::string>>();
if (!FLAGS_log_dir.empty()) {
// Ensure the specified path ends with a directory delimiter.
if (std::find(std::begin(possible_dir_delim),
std::end(possible_dir_delim),
FLAGS_log_dir.back()) == std::end(possible_dir_delim)) {
logging_directories_list->push_back(FLAGS_log_dir + "/");
} else {
logging_directories_list->push_back(FLAGS_log_dir);
}
} else {
GetTempDirectories(*logging_directories_list);
#ifdef NGLOG_OS_WINDOWS
char tmp[MAX_PATH];
if (GetWindowsDirectoryA(tmp, MAX_PATH))
logging_directories_list->push_back(tmp);
logging_directories_list->push_back(".\\");
#else
logging_directories_list->push_back("./");
#endif
}
}
return *logging_directories_list;
}
|
O0
|
cpp
|
nglog::GetLoggingDirectories[abi:cxx11]():
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
leaq 0x6f9be(%rip), %rdi # 0x86f00
xorl %eax, %eax
movl %eax, %esi
callq 0x1e910
testb $0x1, %al
jne 0x17554
jmp 0x17720
leaq -0x8(%rbp), %rdi
callq 0x1e940
leaq 0x6f99c(%rip), %rdi # 0x86f00
leaq -0x8(%rbp), %rsi
callq 0x1e9a0
leaq -0x8(%rbp), %rdi
callq 0x1e8c0
leaq 0x5efe3(%rip), %rax # 0x76560
movq (%rax), %rdi
callq 0x9c70
testb $0x1, %al
jne 0x17673
leaq 0x3a1a4(%rip), %rdi # 0x51738
callq 0x1ea20
movq %rax, -0x78(%rbp)
leaq 0x3a194(%rip), %rdi # 0x51738
callq 0x1ea30
movq %rax, -0x70(%rbp)
leaq 0x5efac(%rip), %rax # 0x76560
movq (%rax), %rdi
callq 0x9520
movq -0x78(%rbp), %rdi
movq -0x70(%rbp), %rsi
movq %rax, %rdx
callq 0x1e9d0
movq %rax, -0x68(%rbp)
leaq 0x3a161(%rip), %rdi # 0x51738
callq 0x1ea30
movq %rax, %rcx
movq -0x68(%rbp), %rax
cmpq %rcx, %rax
jne 0x17650
leaq 0x6f911(%rip), %rdi # 0x86f00
callq 0x1ea50
movq %rax, -0x88(%rbp)
leaq 0x5ef5e(%rip), %rax # 0x76560
movq (%rax), %rsi
leaq 0x3a4d5(%rip), %rdx # 0x51ae1
leaq -0x28(%rbp), %rdi
movq %rdi, -0x80(%rbp)
callq 0xebf0
movq -0x88(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0x1e030
jmp 0x1762b
leaq -0x28(%rbp), %rdi
callq 0x9ee8
jmp 0x1766e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x9ee8
jmp 0x17735
leaq 0x6f8a9(%rip), %rdi # 0x86f00
callq 0x1ea50
movq %rax, %rdi
leaq 0x5eefa(%rip), %rax # 0x76560
movq (%rax), %rsi
callq 0x1ea70
jmp 0x1771e
leaq 0x6f886(%rip), %rdi # 0x86f00
movq %rdi, -0xa0(%rbp)
callq 0x1eae0
movq %rax, %rdi
callq 0x17740
movq -0xa0(%rbp), %rdi
callq 0x1ea50
movq %rax, -0x98(%rbp)
leaq -0x59(%rbp), %rdi
movq %rdi, -0x90(%rbp)
callq 0x9d50
movq -0x90(%rbp), %rdx
leaq 0x3a421(%rip), %rsi # 0x51ae0
leaq -0x58(%rbp), %rdi
callq 0xc9e0
jmp 0x176ca
movq -0x98(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x1e030
jmp 0x176dc
leaq -0x58(%rbp), %rdi
callq 0x9ee8
leaq -0x59(%rbp), %rdi
callq 0x97a0
jmp 0x1771e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x17713
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x9ee8
leaq -0x59(%rbp), %rdi
callq 0x97a0
jmp 0x17735
jmp 0x17720
leaq 0x6f7d9(%rip), %rdi # 0x86f00
callq 0x1eae0
addq $0xa0, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x9d40
nop
|
_ZN5nglog21GetLoggingDirectoriesB5cxx11Ev:
push rbp
mov rbp, rsp
sub rsp, 0A0h
lea rdi, _ZN5nglogL24logging_directories_listB5cxx11E; nglog::logging_directories_list
xor eax, eax
mov esi, eax
call _ZSteqISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EESt14default_deleteIS8_EEbRKSt10unique_ptrIT_T0_EDn; std::operator==<std::vector<std::string>,std::default_delete<std::vector<std::string>>>(std::unique_ptr<std::vector<std::string>> const&,decltype(nullptr))
test al, 1
jnz short loc_17554
jmp loc_17720
loc_17554:
lea rdi, [rbp+var_8]
call _ZSt11make_uniqueISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EEJEENSt9_MakeUniqIT_E15__single_objectEDpOT0_; std::make_unique<std::vector<std::string>>()
lea rdi, _ZN5nglogL24logging_directories_listB5cxx11E; nglog::logging_directories_list
lea rsi, [rbp+var_8]
call _ZNSt10unique_ptrISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EESt14default_deleteIS8_EEaSEOSB_; std::unique_ptr<std::vector<std::string>>::operator=(std::unique_ptr<std::vector<std::string>>&&)
lea rdi, [rbp+var_8]; void *
call _ZNSt10unique_ptrISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EESt14default_deleteIS8_EED2Ev; std::unique_ptr<std::vector<std::string>>::~unique_ptr()
lea rax, _ZN3fLS13FLAGS_log_dirB5cxx11E; fLS::FLAGS_log_dir
mov rdi, [rax]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz loc_17673
lea rdi, _ZN5nglog12_GLOBAL__N_118possible_dir_delimE; nglog::`anonymous namespace'::possible_dir_delim
call _ZSt5beginIKcLm1EEPT_RAT0__S1_; std::begin<char const,1ul>(char const(&)[1ul])
mov [rbp+var_78], rax
lea rdi, _ZN5nglog12_GLOBAL__N_118possible_dir_delimE; nglog::`anonymous namespace'::possible_dir_delim
call _ZSt3endIKcLm1EEPT_RAT0__S1_; std::end<char const,1ul>(char const(&)[1ul])
mov [rbp+var_70], rax
lea rax, _ZN3fLS13FLAGS_log_dirB5cxx11E; fLS::FLAGS_log_dir
mov rdi, [rax]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4backEv; std::string::back(void)
mov rdi, [rbp+var_78]
mov rsi, [rbp+var_70]
mov rdx, rax
call _ZSt4findIPKccET_S2_S2_RKT0_; std::find<char const*,char>(char const*,char const*,char const&)
mov [rbp+var_68], rax
lea rdi, _ZN5nglog12_GLOBAL__N_118possible_dir_delimE; nglog::`anonymous namespace'::possible_dir_delim
call _ZSt3endIKcLm1EEPT_RAT0__S1_; std::end<char const,1ul>(char const(&)[1ul])
mov rcx, rax
mov rax, [rbp+var_68]
cmp rax, rcx
jnz short loc_17650
lea rdi, _ZN5nglogL24logging_directories_listB5cxx11E; nglog::logging_directories_list
call _ZNKSt10unique_ptrISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EESt14default_deleteIS8_EEptEv; std::unique_ptr<std::vector<std::string>>::operator->(void)
mov [rbp+var_88], rax
lea rax, _ZN3fLS13FLAGS_log_dirB5cxx11E; fLS::FLAGS_log_dir
mov rsi, [rax]
lea rdx, asc_51AE0+1; "/"
lea rdi, [rbp+var_28]
mov [rbp+var_80], rdi
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_; std::operator+<char>(std::string const&,char const*)
mov rdi, [rbp+var_88]
mov rsi, [rbp+var_80]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_; std::vector<std::string>::push_back(std::string&&)
jmp short $+2
loc_1762B:
lea rdi, [rbp+var_28]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_1766E
mov rcx, rax
mov eax, edx
mov [rbp+var_30], rcx
mov [rbp+var_34], eax
lea rdi, [rbp+var_28]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_17735
loc_17650:
lea rdi, _ZN5nglogL24logging_directories_listB5cxx11E; nglog::logging_directories_list
call _ZNKSt10unique_ptrISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EESt14default_deleteIS8_EEptEv; std::unique_ptr<std::vector<std::string>>::operator->(void)
mov rdi, rax
lea rax, _ZN3fLS13FLAGS_log_dirB5cxx11E; fLS::FLAGS_log_dir
mov rsi, [rax]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_; std::vector<std::string>::push_back(std::string const&)
loc_1766E:
jmp loc_1771E
loc_17673:
lea rdi, _ZN5nglogL24logging_directories_listB5cxx11E; nglog::logging_directories_list
mov [rbp+var_A0], rdi
call _ZNKSt10unique_ptrISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EESt14default_deleteIS8_EEdeEv; std::unique_ptr<std::vector<std::string>>::operator*(void)
mov rdi, rax
call _ZN5nglogL18GetTempDirectoriesERSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EE; nglog::GetTempDirectories(std::vector<std::string> &)
mov rdi, [rbp+var_A0]
call _ZNKSt10unique_ptrISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EESt14default_deleteIS8_EEptEv; std::unique_ptr<std::vector<std::string>>::operator->(void)
mov [rbp+var_98], rax
lea rdi, [rbp+var_59]
mov [rbp+var_90], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, [rbp+var_90]
lea rsi, asc_51AE0; "./"
lea rdi, [rbp+var_58]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_176CA:
mov rdi, [rbp+var_98]
lea rsi, [rbp+var_58]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_; std::vector<std::string>::push_back(std::string&&)
jmp short $+2
loc_176DC:
lea rdi, [rbp+var_58]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rbp+var_59]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_1771E
mov rcx, rax
mov eax, edx
mov [rbp+var_30], rcx
mov [rbp+var_34], eax
jmp short loc_17713
mov rcx, rax
mov eax, edx
mov [rbp+var_30], rcx
mov [rbp+var_34], eax
lea rdi, [rbp+var_58]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_17713:
lea rdi, [rbp+var_59]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_17735
loc_1771E:
jmp short $+2
loc_17720:
lea rdi, _ZN5nglogL24logging_directories_listB5cxx11E; nglog::logging_directories_list
call _ZNKSt10unique_ptrISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EESt14default_deleteIS8_EEdeEv; std::unique_ptr<std::vector<std::string>>::operator*(void)
add rsp, 0A0h
pop rbp
retn
loc_17735:
mov rdi, [rbp+var_30]
call __Unwind_Resume
|
long long nglog::GetLoggingDirectories[abi:cxx11]()
{
long long v0; // rax
long long v1; // rax
long long v2; // rax
long long v4; // [rsp+8h] [rbp-98h]
long long v5; // [rsp+18h] [rbp-88h]
long long v6; // [rsp+28h] [rbp-78h]
long long v7; // [rsp+30h] [rbp-70h]
long long v8; // [rsp+38h] [rbp-68h]
char v9; // [rsp+47h] [rbp-59h] BYREF
_BYTE v10[36]; // [rsp+48h] [rbp-58h] BYREF
_BYTE v11[32]; // [rsp+78h] [rbp-28h] BYREF
_BYTE v12[8]; // [rsp+98h] [rbp-8h] BYREF
if ( (std::operator==<std::vector<std::string>,std::default_delete<std::vector<std::string>>>(
&nglog::logging_directories_list[abi:cxx11],
0LL) & 1) != 0 )
{
std::make_unique<std::vector<std::string>>(v12);
std::unique_ptr<std::vector<std::string>>::operator=(&nglog::logging_directories_list[abi:cxx11], v12);
std::unique_ptr<std::vector<std::string>>::~unique_ptr(v12);
if ( (std::string::empty(&fLS::FLAGS_log_dir_buf[abi:cxx11]) & 1) != 0 )
{
v2 = ((long long (*)(void))std::unique_ptr<std::vector<std::string>>::operator*)();
nglog::GetTempDirectories(v2);
v4 = std::unique_ptr<std::vector<std::string>>::operator->(&nglog::logging_directories_list[abi:cxx11]);
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>((long long)v10, (long long)"./", (long long)&v9);
std::vector<std::string>::push_back(v4, v10);
std::string::~string(v10);
std::allocator<char>::~allocator(&v9);
}
else
{
v6 = std::begin<char const,1ul>(&nglog::`anonymous namespace'::possible_dir_delim);
v7 = std::end<char const,1ul>(&nglog::`anonymous namespace'::possible_dir_delim);
v0 = std::string::back(&fLS::FLAGS_log_dir_buf[abi:cxx11]);
v8 = std::find<char const*,char>(v6, v7, v0);
if ( v8 == std::end<char const,1ul>(&nglog::`anonymous namespace'::possible_dir_delim) )
{
v5 = std::unique_ptr<std::vector<std::string>>::operator->(&nglog::logging_directories_list[abi:cxx11]);
std::operator+<char>((long long)v11, (long long)&fLS::FLAGS_log_dir_buf[abi:cxx11], (long long)"/");
std::vector<std::string>::push_back(v5, v11);
std::string::~string(v11);
}
else
{
v1 = std::unique_ptr<std::vector<std::string>>::operator->(&nglog::logging_directories_list[abi:cxx11]);
std::vector<std::string>::push_back(v1, &fLS::FLAGS_log_dir_buf[abi:cxx11]);
}
}
}
return std::unique_ptr<std::vector<std::string>>::operator*(&nglog::logging_directories_list[abi:cxx11]);
}
|
GetLoggingDirectories[abi:cxx11]:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xa0
LEA RDI,[0x186f00]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x0011e910
TEST AL,0x1
JNZ 0x00117554
JMP 0x00117720
LAB_00117554:
LEA RDI,[RBP + -0x8]
CALL 0x0011e940
LEA RDI,[0x186f00]
LEA RSI,[RBP + -0x8]
CALL 0x0011e9a0
LEA RDI,[RBP + -0x8]
CALL 0x0011e8c0
LEA RAX,[0x176560]
MOV RDI,qword ptr [RAX]
CALL 0x00109c70
TEST AL,0x1
JNZ 0x00117673
LEA RDI,[0x151738]
CALL 0x0011ea20
MOV qword ptr [RBP + -0x78],RAX
LEA RDI,[0x151738]
CALL 0x0011ea30
MOV qword ptr [RBP + -0x70],RAX
LEA RAX,[0x176560]
MOV RDI,qword ptr [RAX]
CALL 0x00109520
MOV RDI,qword ptr [RBP + -0x78]
MOV RSI,qword ptr [RBP + -0x70]
MOV RDX,RAX
CALL 0x0011e9d0
MOV qword ptr [RBP + -0x68],RAX
LEA RDI,[0x151738]
CALL 0x0011ea30
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x68]
CMP RAX,RCX
JNZ 0x00117650
LEA RDI,[0x186f00]
CALL 0x0011ea50
MOV qword ptr [RBP + -0x88],RAX
LEA RAX,[0x176560]
MOV RSI,qword ptr [RAX]
LEA RDX,[0x151ae1]
LEA RDI,[RBP + -0x28]
MOV qword ptr [RBP + -0x80],RDI
CALL 0x0010ebf0
MOV RDI,qword ptr [RBP + -0x88]
MOV RSI,qword ptr [RBP + -0x80]
LAB_00117624:
CALL 0x0011e030
LAB_00117629:
JMP 0x0011762b
LAB_0011762b:
LEA RDI,[RBP + -0x28]
CALL 0x00109ee8
JMP 0x0011766e
LAB_00117650:
LEA RDI,[0x186f00]
CALL 0x0011ea50
MOV RDI,RAX
LEA RAX,[0x176560]
MOV RSI,qword ptr [RAX]
CALL 0x0011ea70
LAB_0011766e:
JMP 0x0011771e
LAB_00117673:
LEA RDI,[0x186f00]
MOV qword ptr [RBP + -0xa0],RDI
CALL 0x0011eae0
MOV RDI,RAX
CALL 0x00117740
MOV RDI,qword ptr [RBP + -0xa0]
CALL 0x0011ea50
MOV qword ptr [RBP + -0x98],RAX
LEA RDI,[RBP + -0x59]
MOV qword ptr [RBP + -0x90],RDI
CALL 0x00109d50
MOV RDX,qword ptr [RBP + -0x90]
LAB_001176b8:
LEA RSI,[0x151ae0]
LEA RDI,[RBP + -0x58]
CALL 0x0010c9e0
JMP 0x001176ca
LAB_001176ca:
MOV RDI,qword ptr [RBP + -0x98]
LEA RSI,[RBP + -0x58]
CALL 0x0011e030
LAB_001176da:
JMP 0x001176dc
LAB_001176dc:
LEA RDI,[RBP + -0x58]
CALL 0x00109ee8
LEA RDI,[RBP + -0x59]
CALL 0x001097a0
JMP 0x0011771e
LAB_0011771e:
JMP 0x00117720
LAB_00117720:
LEA RDI,[0x186f00]
CALL 0x0011eae0
ADD RSP,0xa0
POP RBP
RET
|
/* nglog::GetLoggingDirectories[abi:cxx11]() */
void nglog::GetLoggingDirectories_abi_cxx11_(void)
{
bool bVar1;
ulong uVar2;
char *pcVar3;
char *pcVar4;
char *pcVar5;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *pvVar6;
vector *pvVar7;
allocator local_61;
string local_60 [48];
string local_30 [32];
unique_ptr local_10 [8];
bVar1 = std::operator==((unique_ptr *)&logging_directories_list_abi_cxx11_,
(_func_decltype_nullptr *)0x0);
if (bVar1) {
std::make_unique<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>();
std::
unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>>
::operator=((unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>>
*)&logging_directories_list_abi_cxx11_,local_10);
std::
unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>>
::~unique_ptr((unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>>
*)local_10);
uVar2 = std::__cxx11::string::empty();
if ((uVar2 & 1) == 0) {
pcVar3 = std::begin<char_const,1ul>("/N5nglog4base6LoggerE");
pcVar4 = std::end<char_const,1ul>("/N5nglog4base6LoggerE");
pcVar5 = (char *)std::__cxx11::string::back();
pcVar3 = std::find<char_const*,char>(pcVar3,pcVar4,pcVar5);
pcVar4 = std::end<char_const,1ul>("/N5nglog4base6LoggerE");
if (pcVar3 == pcVar4) {
pvVar6 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)
std::
unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>>
::operator->((unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>>
*)&logging_directories_list_abi_cxx11_);
std::operator+(local_30,fLS::FLAGS_log_dir_abi_cxx11_);
/* try { // try from 00117624 to 00117628 has its CatchHandler @ 00117636 */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::push_back
(pvVar6,local_30);
std::__cxx11::string::~string(local_30);
}
else {
pvVar6 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)
std::
unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>>
::operator->((unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>>
*)&logging_directories_list_abi_cxx11_);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::push_back
(pvVar6,(string *)fLS::FLAGS_log_dir_abi_cxx11_);
}
}
else {
pvVar7 = (vector *)
std::
unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>>
::operator*((unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>>
*)&logging_directories_list_abi_cxx11_);
GetTempDirectories(pvVar7);
pvVar6 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)
std::
unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>>
::operator->((unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>>
*)&logging_directories_list_abi_cxx11_);
std::allocator<char>::allocator();
/* try { // try from 001176b8 to 001176c7 has its CatchHandler @ 001176f0 */
std::__cxx11::string::string<std::allocator<char>>(local_60,"./",&local_61);
/* try { // try from 001176ca to 001176d9 has its CatchHandler @ 001176fe */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::push_back
(pvVar6,local_60);
std::__cxx11::string::~string(local_60);
std::allocator<char>::~allocator((allocator<char> *)&local_61);
}
}
std::
unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>>
::operator*((unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>>
*)&logging_directories_list_abi_cxx11_);
return;
}
|
|
60,711
|
splash::get()
|
untodesu[P]voxelius/game/shared/splash.cc
|
const char* splash::get(void)
{
std::uniform_int_distribution<std::size_t> dist(0, splash_lines.size() - 1);
return splash_lines.at(dist(splash_random)).c_str();
}
|
O1
|
cpp
|
splash::get():
subq $0x18, %rsp
movq 0xc3d9a(%rip), %rax # 0x10bac0
subq 0xc3d8b(%rip), %rax # 0x10bab8
sarq $0x5, %rax
decq %rax
leaq 0x8(%rsp), %rdi
movq $0x0, (%rdi)
movq %rax, 0x8(%rdi)
leaq 0xc33a5(%rip), %rsi # 0x10b0f0
movq %rdi, %rdx
callq 0x4800e
movq 0xc3d66(%rip), %rdx # 0x10bac0
movq 0xc3d57(%rip), %rcx # 0x10bab8
subq %rcx, %rdx
sarq $0x5, %rdx
cmpq %rax, %rdx
jbe 0x47d7a
shlq $0x5, %rax
movq (%rcx,%rax), %rax
addq $0x18, %rsp
retq
leaq 0x771ad(%rip), %rdi # 0xbef2e
movq %rax, %rsi
xorl %eax, %eax
callq 0x17a40
nop
|
_ZN6splash3getEv:
sub rsp, 18h
mov rax, qword ptr cs:_ZL12splash_linesB5cxx11+8; splash_lines
sub rax, qword ptr cs:_ZL12splash_linesB5cxx11; splash_lines
sar rax, 5
dec rax
lea rdi, [rsp+18h+var_10]
mov qword ptr [rdi], 0
mov [rdi+8], rax
lea rsi, _ZL13splash_random; splash_random
mov rdx, rdi
call _ZNSt24uniform_int_distributionImEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEmRT_RKNS0_10param_typeE; std::uniform_int_distribution<ulong>::operator()<std::mersenne_twister_engine<ulong,64ul,312ul,156ul,31ul,13043109905998158313ul,29ul,6148914691236517205ul,17ul,8202884508482404352ul,37ul,18444473444759240704ul,43ul,6364136223846793005ul>>(std::mersenne_twister_engine<ulong,64ul,312ul,156ul,31ul,13043109905998158313ul,29ul,6148914691236517205ul,17ul,8202884508482404352ul,37ul,18444473444759240704ul,43ul,6364136223846793005ul> &,std::uniform_int_distribution<ulong>::param_type const&)
mov rdx, qword ptr cs:_ZL12splash_linesB5cxx11+8; splash_lines
mov rcx, qword ptr cs:_ZL12splash_linesB5cxx11; splash_lines
sub rdx, rcx
sar rdx, 5
cmp rdx, rax
jbe short loc_47D7A
shl rax, 5
mov rax, [rcx+rax]
add rsp, 18h
retn
loc_47D7A:
lea rdi, aVectorMRangeCh; "vector::_M_range_check: __n (which is %"...
mov rsi, rax
xor eax, eax
call __ZSt24__throw_out_of_range_fmtPKcz; std::__throw_out_of_range_fmt(char const*,...)
|
long long splash::get(splash *this)
{
unsigned long long v1; // rax
unsigned long long v2; // rdx
_QWORD v4[2]; // [rsp+8h] [rbp-10h] BYREF
v4[0] = 0LL;
v4[1] = ((long long)(*((_QWORD *)&splash_lines[abi:cxx11] + 1) - splash_lines[abi:cxx11]) >> 5) - 1;
v1 = std::uniform_int_distribution<unsigned long>::operator()<std::mersenne_twister_engine<unsigned long,64ul,312ul,156ul,31ul,13043109905998158313ul,29ul,6148914691236517205ul,17ul,8202884508482404352ul,37ul,18444473444759240704ul,43ul,6364136223846793005ul>>(
v4,
splash_random,
v4);
v2 = (long long)(*((_QWORD *)&splash_lines[abi:cxx11] + 1) - splash_lines[abi:cxx11]) >> 5;
if ( v2 <= v1 )
std::__throw_out_of_range_fmt("vector::_M_range_check: __n (which is %zu) >= this->size() (which is %zu)", v1, v2);
return *(_QWORD *)(splash_lines[abi:cxx11] + 32 * v1);
}
|
get:
SUB RSP,0x18
MOV RAX,qword ptr [0x0020bac0]
SUB RAX,qword ptr [0x0020bab8]
SAR RAX,0x5
DEC RAX
LEA RDI,[RSP + 0x8]
MOV qword ptr [RDI],0x0
MOV qword ptr [RDI + 0x8],RAX
LEA RSI,[0x20b0f0]
MOV RDX,RDI
CALL 0x0014800e
MOV RDX,qword ptr [0x0020bac0]
MOV RCX,qword ptr [0x0020bab8]
SUB RDX,RCX
SAR RDX,0x5
CMP RDX,RAX
JBE 0x00147d7a
SHL RAX,0x5
MOV RAX,qword ptr [RCX + RAX*0x1]
ADD RSP,0x18
RET
LAB_00147d7a:
LEA RDI,[0x1bef2e]
MOV RSI,RAX
XOR EAX,EAX
CALL 0x00117a40
NOP
|
/* splash::get() */
int8 splash::get(void)
{
ulong uVar1;
int8 uVar2;
int8 extraout_RAX;
char *pcVar3;
long *aplStack_50 [2];
long alStack_40 [2];
int8 local_10;
long local_8;
local_8 = (DAT_0020bac0 - splash_lines_abi_cxx11_ >> 5) + -1;
local_10 = 0;
uVar1 = std::uniform_int_distribution<unsigned_long>::operator()
((uniform_int_distribution<unsigned_long> *)&local_10,
(mersenne_twister_engine *)splash_random,(param_type *)&local_10);
if (uVar1 < (ulong)(DAT_0020bac0 - splash_lines_abi_cxx11_ >> 5)) {
return *(int8 *)(splash_lines_abi_cxx11_ + uVar1 * 0x20);
}
pcVar3 = "vector::_M_range_check: __n (which is %zu) >= this->size() (which is %zu)";
std::__throw_out_of_range_fmt
("vector::_M_range_check: __n (which is %zu) >= this->size() (which is %zu)",uVar1);
aplStack_50[0] = alStack_40;
std::__cxx11::string::_M_construct<char_const*>(aplStack_50,"default","");
uVar2 = std::random_device::_M_init((string *)pcVar3);
if (aplStack_50[0] != alStack_40) {
operator_delete(aplStack_50[0],alStack_40[0] + 1);
uVar2 = extraout_RAX;
}
return uVar2;
}
|
|
60,712
|
string_getc
|
bluesky950520[P]quickjs/quickjs.c
|
static int string_getc(const JSString *p, int *pidx)
{
int idx, c, c1;
idx = *pidx;
if (p->is_wide_char) {
c = p->u.str16[idx++];
if (is_hi_surrogate(c) && idx < p->len) {
c1 = p->u.str16[idx];
if (is_lo_surrogate(c1)) {
c = from_surrogate(c, c1);
idx++;
}
}
} else {
c = p->u.str8[idx++];
}
*pidx = idx;
return c;
}
|
O0
|
c
|
string_getc:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq 0x18(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x14(%rsp)
movq 0x20(%rsp), %rax
movq 0x4(%rax), %rax
shrq $0x1f, %rax
andq $0x1, %rax
cmpb $0x0, %al
je 0x84957
movq 0x20(%rsp), %rax
movl 0x14(%rsp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0x14(%rsp)
movslq %ecx, %rcx
movzwl 0x18(%rax,%rcx,2), %eax
movl %eax, 0x10(%rsp)
movl 0x10(%rsp), %edi
callq 0x28b20
cmpl $0x0, %eax
je 0x84955
movl 0x14(%rsp), %eax
movq 0x20(%rsp), %rcx
movq 0x4(%rcx), %rcx
andq $0x7fffffff, %rcx # imm = 0x7FFFFFFF
cmpl %ecx, %eax
jge 0x84955
movq 0x20(%rsp), %rax
movslq 0x14(%rsp), %rcx
movzwl 0x18(%rax,%rcx,2), %eax
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %edi
callq 0x28b40
cmpl $0x0, %eax
je 0x84953
movl 0x10(%rsp), %edi
movl 0xc(%rsp), %esi
callq 0x28b60
movl %eax, 0x10(%rsp)
movl 0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x84955
jmp 0x84975
movq 0x20(%rsp), %rax
movl 0x14(%rsp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0x14(%rsp)
movslq %ecx, %rcx
movzbl 0x18(%rax,%rcx), %eax
movl %eax, 0x10(%rsp)
movl 0x14(%rsp), %ecx
movq 0x18(%rsp), %rax
movl %ecx, (%rax)
movl 0x10(%rsp), %eax
addq $0x28, %rsp
retq
nopl (%rax)
|
string_getc:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov [rsp+28h+var_10], rsi
mov rax, [rsp+28h+var_10]
mov eax, [rax]
mov [rsp+28h+var_14], eax
mov rax, [rsp+28h+var_8]
mov rax, [rax+4]
shr rax, 1Fh
and rax, 1
cmp al, 0
jz loc_84957
mov rax, [rsp+28h+var_8]
mov ecx, [rsp+28h+var_14]
mov edx, ecx
add edx, 1
mov [rsp+28h+var_14], edx
movsxd rcx, ecx
movzx eax, word ptr [rax+rcx*2+18h]
mov [rsp+28h+var_18], eax
mov edi, [rsp+28h+var_18]
call is_hi_surrogate_0
cmp eax, 0
jz short loc_84955
mov eax, [rsp+28h+var_14]
mov rcx, [rsp+28h+var_8]
mov rcx, [rcx+4]
and rcx, 7FFFFFFFh
cmp eax, ecx
jge short loc_84955
mov rax, [rsp+28h+var_8]
movsxd rcx, [rsp+28h+var_14]
movzx eax, word ptr [rax+rcx*2+18h]
mov [rsp+28h+var_1C], eax
mov edi, [rsp+28h+var_1C]
call is_lo_surrogate_0
cmp eax, 0
jz short loc_84953
mov edi, [rsp+28h+var_18]
mov esi, [rsp+28h+var_1C]
call from_surrogate_0
mov [rsp+28h+var_18], eax
mov eax, [rsp+28h+var_14]
add eax, 1
mov [rsp+28h+var_14], eax
loc_84953:
jmp short $+2
loc_84955:
jmp short loc_84975
loc_84957:
mov rax, [rsp+28h+var_8]
mov ecx, [rsp+28h+var_14]
mov edx, ecx
add edx, 1
mov [rsp+28h+var_14], edx
movsxd rcx, ecx
movzx eax, byte ptr [rax+rcx+18h]
mov [rsp+28h+var_18], eax
loc_84975:
mov ecx, [rsp+28h+var_14]
mov rax, [rsp+28h+var_10]
mov [rax], ecx
mov eax, [rsp+28h+var_18]
add rsp, 28h
retn
|
long long string_getc(long long a1, int *a2)
{
unsigned __int16 v3; // [rsp+Ch] [rbp-1Ch]
unsigned int v4; // [rsp+10h] [rbp-18h]
int v5; // [rsp+14h] [rbp-14h]
int v6; // [rsp+14h] [rbp-14h]
v5 = *a2;
if ( (*(_QWORD *)(a1 + 4) & 0x80000000LL) != 0 )
{
v6 = v5 + 1;
v4 = *(unsigned __int16 *)(a1 + 2LL * *a2 + 24);
if ( is_hi_surrogate_0(v4) && v6 < (*(_DWORD *)(a1 + 4) & 0x7FFFFFFF) )
{
v3 = *(_WORD *)(a1 + 2LL * v6 + 24);
if ( is_lo_surrogate_0(v3) )
{
v4 = from_surrogate_0(v4, v3);
++v6;
}
}
}
else
{
v6 = v5 + 1;
v4 = *(unsigned __int8 *)(a1 + *a2 + 24);
}
*a2 = v6;
return v4;
}
|
string_getc:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x18],RSI
MOV RAX,qword ptr [RSP + 0x18]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RSP + 0x14],EAX
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX + 0x4]
SHR RAX,0x1f
AND RAX,0x1
CMP AL,0x0
JZ 0x00184957
MOV RAX,qword ptr [RSP + 0x20]
MOV ECX,dword ptr [RSP + 0x14]
MOV EDX,ECX
ADD EDX,0x1
MOV dword ptr [RSP + 0x14],EDX
MOVSXD RCX,ECX
MOVZX EAX,word ptr [RAX + RCX*0x2 + 0x18]
MOV dword ptr [RSP + 0x10],EAX
MOV EDI,dword ptr [RSP + 0x10]
CALL 0x00128b20
CMP EAX,0x0
JZ 0x00184955
MOV EAX,dword ptr [RSP + 0x14]
MOV RCX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RCX + 0x4]
AND RCX,0x7fffffff
CMP EAX,ECX
JGE 0x00184955
MOV RAX,qword ptr [RSP + 0x20]
MOVSXD RCX,dword ptr [RSP + 0x14]
MOVZX EAX,word ptr [RAX + RCX*0x2 + 0x18]
MOV dword ptr [RSP + 0xc],EAX
MOV EDI,dword ptr [RSP + 0xc]
CALL 0x00128b40
CMP EAX,0x0
JZ 0x00184953
MOV EDI,dword ptr [RSP + 0x10]
MOV ESI,dword ptr [RSP + 0xc]
CALL 0x00128b60
MOV dword ptr [RSP + 0x10],EAX
MOV EAX,dword ptr [RSP + 0x14]
ADD EAX,0x1
MOV dword ptr [RSP + 0x14],EAX
LAB_00184953:
JMP 0x00184955
LAB_00184955:
JMP 0x00184975
LAB_00184957:
MOV RAX,qword ptr [RSP + 0x20]
MOV ECX,dword ptr [RSP + 0x14]
MOV EDX,ECX
ADD EDX,0x1
MOV dword ptr [RSP + 0x14],EDX
MOVSXD RCX,ECX
MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x18]
MOV dword ptr [RSP + 0x10],EAX
LAB_00184975:
MOV ECX,dword ptr [RSP + 0x14]
MOV RAX,qword ptr [RSP + 0x18]
MOV dword ptr [RAX],ECX
MOV EAX,dword ptr [RSP + 0x10]
ADD RSP,0x28
RET
|
uint string_getc(long param_1,int *param_2)
{
int2 uVar1;
int iVar2;
int iVar3;
uint local_18;
int local_14;
iVar2 = *param_2;
if ((*(ulong *)(param_1 + 4) >> 0x1f & 1) == 0) {
local_14 = iVar2 + 1;
local_18 = (uint)*(byte *)(param_1 + 0x18 + (long)iVar2);
}
else {
local_14 = iVar2 + 1;
local_18 = (uint)*(ushort *)(param_1 + 0x18 + (long)iVar2 * 2);
iVar3 = is_hi_surrogate(local_18);
if ((iVar3 != 0) && (local_14 < (int)((uint)*(int8 *)(param_1 + 4) & 0x7fffffff))) {
uVar1 = *(int2 *)(param_1 + 0x18 + (long)local_14 * 2);
iVar3 = is_lo_surrogate(uVar1);
if (iVar3 != 0) {
local_18 = from_surrogate(local_18,uVar1);
local_14 = iVar2 + 2;
}
}
}
*param_2 = local_14;
return local_18;
}
|
|
60,713
|
string_getc
|
bluesky950520[P]quickjs/quickjs.c
|
static int string_getc(const JSString *p, int *pidx)
{
int idx, c, c1;
idx = *pidx;
if (p->is_wide_char) {
c = p->u.str16[idx++];
if (is_hi_surrogate(c) && idx < p->len) {
c1 = p->u.str16[idx];
if (is_lo_surrogate(c1)) {
c = from_surrogate(c, c1);
idx++;
}
}
} else {
c = p->u.str8[idx++];
}
*pidx = idx;
return c;
}
|
O1
|
c
|
string_getc:
movslq (%rsi), %rdx
movq 0x4(%rdi), %r8
leal 0x1(%rdx), %ecx
testl %r8d, %r8d
js 0x4b9af
movzbl 0x18(%rdi,%rdx), %eax
jmp 0x4ba10
movzwl 0x18(%rdi,%rdx,2), %eax
movl %eax, %r9d
andl $0xfc00, %r9d # imm = 0xFC00
cmpl $0xd800, %r9d # imm = 0xD800
sete %r9b
andl $0x7fffffff, %r8d # imm = 0x7FFFFFFF
cmpl %r8d, %ecx
setl %r8b
andb %r9b, %r8b
cmpb $0x1, %r8b
jne 0x4ba10
movzwl 0x1a(%rdi,%rdx,2), %edi
movl %edi, %r8d
andl $0xfc00, %r8d # imm = 0xFC00
cmpl $0xdc00, %r8d # imm = 0xDC00
jne 0x4ba10
shll $0xa, %eax
andl $0xffc00, %eax # imm = 0xFFC00
andl $0x3ff, %edi # imm = 0x3FF
addl %edi, %eax
addl $0x10000, %eax # imm = 0x10000
leal 0x2(%rdx), %ecx
movl %ecx, (%rsi)
retq
|
string_getc:
movsxd rdx, dword ptr [rsi]
mov r8, [rdi+4]
lea ecx, [rdx+1]
test r8d, r8d
js short loc_4B9AF
movzx eax, byte ptr [rdi+rdx+18h]
jmp short loc_4BA10
loc_4B9AF:
movzx eax, word ptr [rdi+rdx*2+18h]
mov r9d, eax
and r9d, 0FC00h
cmp r9d, 0D800h
setz r9b
and r8d, 7FFFFFFFh
cmp ecx, r8d
setl r8b
and r8b, r9b
cmp r8b, 1
jnz short loc_4BA10
movzx edi, word ptr [rdi+rdx*2+1Ah]
mov r8d, edi
and r8d, 0FC00h
cmp r8d, 0DC00h
jnz short loc_4BA10
shl eax, 0Ah
and eax, 0FFC00h
and edi, 3FFh
add eax, edi
add eax, 10000h
lea ecx, [rdx+2]
loc_4BA10:
mov [rsi], ecx
retn
|
long long string_getc(long long a1, int *a2)
{
long long v2; // rdx
long long v3; // r8
int v4; // ecx
long long result; // rax
__int16 v6; // di
v2 = *a2;
v3 = *(_QWORD *)(a1 + 4);
v4 = v2 + 1;
if ( (int)v3 < 0 )
{
result = *(unsigned __int16 *)(a1 + 2 * v2 + 24);
if ( (*(_WORD *)(a1 + 2 * v2 + 24) & 0xFC00) == 55296 && v4 < (v3 & 0x7FFFFFFF) )
{
v6 = *(_WORD *)(a1 + 2 * v2 + 26);
if ( (v6 & 0xFC00) == 0xDC00 )
{
result = (v6 & 0x3FF) + (((_DWORD)result << 10) & 0xFFC00u) + 0x10000;
v4 = v2 + 2;
}
}
}
else
{
result = *(unsigned __int8 *)(a1 + v2 + 24);
}
*a2 = v4;
return result;
}
|
string_getc:
MOVSXD RDX,dword ptr [RSI]
MOV R8,qword ptr [RDI + 0x4]
LEA ECX,[RDX + 0x1]
TEST R8D,R8D
JS 0x0014b9af
MOVZX EAX,byte ptr [RDI + RDX*0x1 + 0x18]
JMP 0x0014ba10
LAB_0014b9af:
MOVZX EAX,word ptr [RDI + RDX*0x2 + 0x18]
MOV R9D,EAX
AND R9D,0xfc00
CMP R9D,0xd800
SETZ R9B
AND R8D,0x7fffffff
CMP ECX,R8D
SETL R8B
AND R8B,R9B
CMP R8B,0x1
JNZ 0x0014ba10
MOVZX EDI,word ptr [RDI + RDX*0x2 + 0x1a]
MOV R8D,EDI
AND R8D,0xfc00
CMP R8D,0xdc00
JNZ 0x0014ba10
SHL EAX,0xa
AND EAX,0xffc00
AND EDI,0x3ff
ADD EAX,EDI
ADD EAX,0x10000
LEA ECX,[RDX + 0x2]
LAB_0014ba10:
MOV dword ptr [RSI],ECX
RET
|
uint string_getc(long param_1,int *param_2)
{
ushort uVar1;
int iVar2;
uint uVar3;
int iVar4;
long lVar5;
uint uVar6;
iVar2 = *param_2;
lVar5 = (long)iVar2;
iVar4 = iVar2 + 1;
uVar6 = (uint)*(int8 *)(param_1 + 4);
if ((int)uVar6 < 0) {
uVar1 = *(ushort *)(param_1 + 0x18 + lVar5 * 2);
uVar3 = (uint)uVar1;
if ((iVar4 < (int)(uVar6 & 0x7fffffff) && (uVar1 & 0xfc00) == 0xd800) &&
(uVar6 = (uint)*(ushort *)(param_1 + 0x1a + lVar5 * 2), (uVar6 & 0xfc00) == 0xdc00)) {
uVar3 = (uVar1 & 0x3ff) * 0x400 + (uVar6 & 0x3ff) + 0x10000;
iVar4 = iVar2 + 2;
}
}
else {
uVar3 = (uint)*(byte *)(param_1 + 0x18 + lVar5);
}
*param_2 = iVar4;
return uVar3;
}
|
|
60,714
|
string_getc
|
bluesky950520[P]quickjs/quickjs.c
|
static int string_getc(const JSString *p, int *pidx)
{
int idx, c, c1;
idx = *pidx;
if (p->is_wide_char) {
c = p->u.str16[idx++];
if (is_hi_surrogate(c) && idx < p->len) {
c1 = p->u.str16[idx];
if (is_lo_surrogate(c1)) {
c = from_surrogate(c, c1);
idx++;
}
}
} else {
c = p->u.str8[idx++];
}
*pidx = idx;
return c;
}
|
O3
|
c
|
string_getc:
movslq (%rsi), %rdx
movq 0x4(%rdi), %r8
leal 0x1(%rdx), %ecx
testl %r8d, %r8d
js 0x4d814
movzbl 0x18(%rdi,%rdx), %eax
jmp 0x4d875
movzwl 0x18(%rdi,%rdx,2), %eax
movl %eax, %r9d
andl $0xfc00, %r9d # imm = 0xFC00
cmpl $0xd800, %r9d # imm = 0xD800
sete %r9b
andl $0x7fffffff, %r8d # imm = 0x7FFFFFFF
cmpl %r8d, %ecx
setl %r8b
andb %r9b, %r8b
cmpb $0x1, %r8b
jne 0x4d875
movzwl 0x1a(%rdi,%rdx,2), %edi
movl %edi, %r8d
andl $0xfc00, %r8d # imm = 0xFC00
cmpl $0xdc00, %r8d # imm = 0xDC00
jne 0x4d875
shll $0xa, %eax
andl $0xffc00, %eax # imm = 0xFFC00
andl $0x3ff, %edi # imm = 0x3FF
addl %edi, %eax
addl $0x10000, %eax # imm = 0x10000
leal 0x2(%rdx), %ecx
movl %ecx, (%rsi)
retq
|
string_getc:
movsxd rdx, dword ptr [rsi]
mov r8, [rdi+4]
lea ecx, [rdx+1]
test r8d, r8d
js short loc_4D814
movzx eax, byte ptr [rdi+rdx+18h]
jmp short loc_4D875
loc_4D814:
movzx eax, word ptr [rdi+rdx*2+18h]
mov r9d, eax
and r9d, 0FC00h
cmp r9d, 0D800h
setz r9b
and r8d, 7FFFFFFFh
cmp ecx, r8d
setl r8b
and r8b, r9b
cmp r8b, 1
jnz short loc_4D875
movzx edi, word ptr [rdi+rdx*2+1Ah]
mov r8d, edi
and r8d, 0FC00h
cmp r8d, 0DC00h
jnz short loc_4D875
shl eax, 0Ah
and eax, 0FFC00h
and edi, 3FFh
add eax, edi
add eax, 10000h
lea ecx, [rdx+2]
loc_4D875:
mov [rsi], ecx
retn
|
long long string_getc(long long a1, int *a2)
{
long long v2; // rdx
long long v3; // r8
int v4; // ecx
long long result; // rax
__int16 v6; // di
v2 = *a2;
v3 = *(_QWORD *)(a1 + 4);
v4 = v2 + 1;
if ( (int)v3 < 0 )
{
result = *(unsigned __int16 *)(a1 + 2 * v2 + 24);
if ( (*(_WORD *)(a1 + 2 * v2 + 24) & 0xFC00) == 55296 && v4 < (v3 & 0x7FFFFFFF) )
{
v6 = *(_WORD *)(a1 + 2 * v2 + 26);
if ( (v6 & 0xFC00) == 0xDC00 )
{
result = (v6 & 0x3FF) + (((_DWORD)result << 10) & 0xFFC00u) + 0x10000;
v4 = v2 + 2;
}
}
}
else
{
result = *(unsigned __int8 *)(a1 + v2 + 24);
}
*a2 = v4;
return result;
}
|
string_getc:
MOVSXD RDX,dword ptr [RSI]
MOV R8,qword ptr [RDI + 0x4]
LEA ECX,[RDX + 0x1]
TEST R8D,R8D
JS 0x0014d814
MOVZX EAX,byte ptr [RDI + RDX*0x1 + 0x18]
JMP 0x0014d875
LAB_0014d814:
MOVZX EAX,word ptr [RDI + RDX*0x2 + 0x18]
MOV R9D,EAX
AND R9D,0xfc00
CMP R9D,0xd800
SETZ R9B
AND R8D,0x7fffffff
CMP ECX,R8D
SETL R8B
AND R8B,R9B
CMP R8B,0x1
JNZ 0x0014d875
MOVZX EDI,word ptr [RDI + RDX*0x2 + 0x1a]
MOV R8D,EDI
AND R8D,0xfc00
CMP R8D,0xdc00
JNZ 0x0014d875
SHL EAX,0xa
AND EAX,0xffc00
AND EDI,0x3ff
ADD EAX,EDI
ADD EAX,0x10000
LEA ECX,[RDX + 0x2]
LAB_0014d875:
MOV dword ptr [RSI],ECX
RET
|
uint string_getc(long param_1,int *param_2)
{
ushort uVar1;
int iVar2;
uint uVar3;
int iVar4;
long lVar5;
uint uVar6;
iVar2 = *param_2;
lVar5 = (long)iVar2;
iVar4 = iVar2 + 1;
uVar6 = (uint)*(int8 *)(param_1 + 4);
if ((int)uVar6 < 0) {
uVar1 = *(ushort *)(param_1 + 0x18 + lVar5 * 2);
uVar3 = (uint)uVar1;
if ((iVar4 < (int)(uVar6 & 0x7fffffff) && (uVar1 & 0xfc00) == 0xd800) &&
(uVar6 = (uint)*(ushort *)(param_1 + 0x1a + lVar5 * 2), (uVar6 & 0xfc00) == 0xdc00)) {
uVar3 = (uVar1 & 0x3ff) * 0x400 + (uVar6 & 0x3ff) + 0x10000;
iVar4 = iVar2 + 2;
}
}
else {
uVar3 = (uint)*(byte *)(param_1 + 0x18 + lVar5);
}
*param_2 = iVar4;
return uVar3;
}
|
|
60,715
|
google::protobuf::compiler::csharp::MessageOneofFieldGenerator::GenerateMembers(google::protobuf::io::Printer*)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/csharp/csharp_message_field.cc
|
void MessageOneofFieldGenerator::GenerateMembers(io::Printer* printer) {
WritePropertyDocComment(printer, descriptor_);
AddPublicMemberAttributes(printer);
printer->Print(
variables_,
"$access_level$ $type_name$ $property_name$ {\n"
" get { return $has_property_check$ ? ($type_name$) $oneof_name$_ : null; }\n"
" set {\n"
" $oneof_name$_ = value;\n"
" $oneof_name$Case_ = value == null ? $oneof_property_name$OneofCase.None : $oneof_property_name$OneofCase.$oneof_case_name$;\n"
" }\n"
"}\n");
if (SupportsPresenceApi(descriptor_)) {
printer->Print(
variables_,
"/// <summary>Gets whether the \"$descriptor_name$\" field is set</summary>\n");
AddPublicMemberAttributes(printer);
printer->Print(
variables_,
"$access_level$ bool Has$property_name$ {\n"
" get { return $oneof_name$Case_ == $oneof_property_name$OneofCase.$oneof_case_name$; }\n"
"}\n");
printer->Print(
variables_,
"/// <summary> Clears the value of the oneof if it's currently set to \"$descriptor_name$\" </summary>\n");
AddPublicMemberAttributes(printer);
printer->Print(
variables_,
"$access_level$ void Clear$property_name$() {\n"
" if ($has_property_check$) {\n"
" Clear$oneof_property_name$();\n"
" }\n"
"}\n");
}
}
|
O3
|
cpp
|
google::protobuf::compiler::csharp::MessageOneofFieldGenerator::GenerateMembers(google::protobuf::io::Printer*):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10(%rdi), %rsi
movq %rbx, %rdi
callq 0x9d827
movq %r14, %rdi
movq %rbx, %rsi
callq 0xa130c
leaq 0x20(%r14), %r15
leaq 0x16022d(%rip), %rdx # 0x19ee80
movq %rbx, %rdi
movq %r15, %rsi
callq 0x16cd32
movq 0x10(%r14), %r12
movb 0x1(%r12), %al
notb %al
testb $0x60, %al
je 0x3ed10
movq 0x18(%r12), %rdi
testq %rdi, %rdi
je 0x3ec97
leaq 0xfafb2(%rip), %rax # 0x139c34
leaq 0x10(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x8(%rsp), %rdx
movq %r12, (%rdx)
callq 0x2f19d
cmpb $0xb, 0x2(%r12)
je 0x3ed10
movq 0x10(%r12), %rax
cmpb $0x2, 0x3(%rax)
je 0x3ecb2
testb $0x2, 0x1(%r12)
je 0x3ed10
leaq 0x1602ea(%rip), %rdx # 0x19efa3
movq %rbx, %rdi
movq %r15, %rsi
callq 0x16cd32
movq %r14, %rdi
movq %rbx, %rsi
callq 0xa130c
leaq 0x160317(%rip), %rdx # 0x19efed
movq %rbx, %rdi
movq %r15, %rsi
callq 0x16cd32
leaq 0x160389(%rip), %rdx # 0x19f071
movq %rbx, %rdi
movq %r15, %rsi
callq 0x16cd32
movq %r14, %rdi
movq %rbx, %rsi
callq 0xa130c
leaq 0x1603d1(%rip), %rdx # 0x19f0d6
movq %rbx, %rdi
movq %r15, %rsi
callq 0x16cd32
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
|
_ZN6google8protobuf8compiler6csharp26MessageOneofFieldGenerator15GenerateMembersEPNS0_2io7PrinterE:
push r15; int
push r14; int
push r12; int
push rbx; int
sub rsp, 18h
mov rbx, rsi
mov r14, rdi
mov rsi, [rdi+10h]; google::protobuf::io::Printer *
mov rdi, rbx; this
call _ZN6google8protobuf8compiler6csharp23WritePropertyDocCommentEPNS0_2io7PrinterEPKNS0_15FieldDescriptorE; google::protobuf::compiler::csharp::WritePropertyDocComment(google::protobuf::io::Printer *,google::protobuf::FieldDescriptor const*)
mov rdi, r14; this
mov rsi, rbx; google::protobuf::io::Printer *
call _ZN6google8protobuf8compiler6csharp18FieldGeneratorBase25AddPublicMemberAttributesEPNS0_2io7PrinterE; google::protobuf::compiler::csharp::FieldGeneratorBase::AddPublicMemberAttributes(google::protobuf::io::Printer *)
lea r15, [r14+20h]
lea rdx, aAccessLevelTyp_0; "$access_level$ $type_name$ $property_na"...
mov rdi, rbx; this
mov rsi, r15
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
mov r12, [r14+10h]
mov al, [r12+1]
not al
test al, 60h
jz loc_3ED10
mov rdi, [r12+18h]
test rdi, rdi
jz short loc_3EC97
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], r12
call _ZSt9call_onceIPFvPKN6google8protobuf15FieldDescriptorEEJS4_EEvRSt9once_flagOT_DpOT0_; std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(std::once_flag &,void (*)(google::protobuf::FieldDescriptor const*) &&,google::protobuf::FieldDescriptor const* &&)
loc_3EC97:
cmp byte ptr [r12+2], 0Bh
jz short loc_3ED10
mov rax, [r12+10h]
cmp byte ptr [rax+3], 2
jz short loc_3ECB2
test byte ptr [r12+1], 2
jz short loc_3ED10
loc_3ECB2:
lea rdx, aSummaryGetsWhe_0; "/// <summary>Gets whether the \"$descri"...
mov rdi, rbx; this
mov rsi, r15
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
mov rdi, r14; this
mov rsi, rbx; google::protobuf::io::Printer *
call _ZN6google8protobuf8compiler6csharp18FieldGeneratorBase25AddPublicMemberAttributesEPNS0_2io7PrinterE; google::protobuf::compiler::csharp::FieldGeneratorBase::AddPublicMemberAttributes(google::protobuf::io::Printer *)
lea rdx, aAccessLevelBoo_0; "$access_level$ bool Has$property_name$ "...
mov rdi, rbx; this
mov rsi, r15
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
lea rdx, aSummaryClearsT_0; "/// <summary> Clears the value of the o"...
mov rdi, rbx; this
mov rsi, r15
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
mov rdi, r14; this
mov rsi, rbx; google::protobuf::io::Printer *
call _ZN6google8protobuf8compiler6csharp18FieldGeneratorBase25AddPublicMemberAttributesEPNS0_2io7PrinterE; google::protobuf::compiler::csharp::FieldGeneratorBase::AddPublicMemberAttributes(google::protobuf::io::Printer *)
lea rdx, aAccessLevelVoi_0; "$access_level$ void Clear$property_name"...
mov rdi, rbx; this
mov rsi, r15
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
loc_3ED10:
add rsp, 18h
pop rbx
pop r12
pop r14
pop r15
retn
|
GenerateMembers:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,RSI
MOV R14,RDI
MOV RSI,qword ptr [RDI + 0x10]
MOV RDI,RBX
CALL 0x0019d827
MOV RDI,R14
MOV RSI,RBX
CALL 0x001a130c
LEA R15,[R14 + 0x20]
LEA RDX,[0x29ee80]
MOV RDI,RBX
MOV RSI,R15
CALL 0x0026cd32
MOV R12,qword ptr [R14 + 0x10]
MOV AL,byte ptr [R12 + 0x1]
NOT AL
TEST AL,0x60
JZ 0x0013ed10
MOV RDI,qword ptr [R12 + 0x18]
TEST RDI,RDI
JZ 0x0013ec97
LEA RAX,[0x239c34]
LEA RSI,[RSP + 0x10]
MOV qword ptr [RSI],RAX
LEA RDX,[RSP + 0x8]
MOV qword ptr [RDX],R12
CALL 0x0012f19d
LAB_0013ec97:
CMP byte ptr [R12 + 0x2],0xb
JZ 0x0013ed10
MOV RAX,qword ptr [R12 + 0x10]
CMP byte ptr [RAX + 0x3],0x2
JZ 0x0013ecb2
TEST byte ptr [R12 + 0x1],0x2
JZ 0x0013ed10
LAB_0013ecb2:
LEA RDX,[0x29efa3]
MOV RDI,RBX
MOV RSI,R15
CALL 0x0026cd32
MOV RDI,R14
MOV RSI,RBX
CALL 0x001a130c
LEA RDX,[0x29efed]
MOV RDI,RBX
MOV RSI,R15
CALL 0x0026cd32
LEA RDX,[0x29f071]
MOV RDI,RBX
MOV RSI,R15
CALL 0x0026cd32
MOV RDI,R14
MOV RSI,RBX
CALL 0x001a130c
LEA RDX,[0x29f0d6]
MOV RDI,RBX
MOV RSI,R15
CALL 0x0026cd32
LAB_0013ed10:
ADD RSP,0x18
POP RBX
POP R12
POP R14
POP R15
RET
|
/* google::protobuf::compiler::csharp::MessageOneofFieldGenerator::GenerateMembers(google::protobuf::io::Printer*)
*/
void __thiscall
google::protobuf::compiler::csharp::MessageOneofFieldGenerator::GenerateMembers
(MessageOneofFieldGenerator *this,Printer *param_1)
{
map *pmVar1;
FieldDescriptor *pFVar2;
FieldDescriptor *local_30;
code *local_28;
WritePropertyDocComment(param_1,*(FieldDescriptor **)(this + 0x10));
FieldGeneratorBase::AddPublicMemberAttributes((FieldGeneratorBase *)this,param_1);
pmVar1 = (map *)(this + 0x20);
io::Printer::Print(param_1,pmVar1,
"$access_level$ $type_name$ $property_name$ {\n get { return $has_property_check$ ? ($type_name$) $oneof_name$_ : null; }\n set {\n $oneof_name$_ = value;\n $oneof_name$Case_ = value == null ? $oneof_property_name$OneofCase.None : $oneof_property_name$OneofCase.$oneof_case_name$;\n }\n}\n"
);
pFVar2 = *(FieldDescriptor **)(this + 0x10);
if ((~(byte)pFVar2[1] & 0x60) != 0) {
if (*(once_flag **)(pFVar2 + 0x18) != (once_flag *)0x0) {
local_28 = FieldDescriptor::TypeOnceInit;
local_30 = pFVar2;
std::
call_once<void(*)(google::protobuf::FieldDescriptor_const*),google::protobuf::FieldDescriptor_const*>
(*(once_flag **)(pFVar2 + 0x18),(_func_void_FieldDescriptor_ptr *)&local_28,
&local_30);
}
if ((pFVar2[2] != (FieldDescriptor)0xb) &&
((*(char *)(*(long *)(pFVar2 + 0x10) + 3) == '\x02' || (((byte)pFVar2[1] & 2) != 0)))) {
io::Printer::Print(param_1,pmVar1,
"/// <summary>Gets whether the \"$descriptor_name$\" field is set</summary>\n"
);
FieldGeneratorBase::AddPublicMemberAttributes((FieldGeneratorBase *)this,param_1);
io::Printer::Print(param_1,pmVar1,
"$access_level$ bool Has$property_name$ {\n get { return $oneof_name$Case_ == $oneof_property_name$OneofCase.$oneof_case_name$; }\n}\n"
);
io::Printer::Print(param_1,pmVar1,
"/// <summary> Clears the value of the oneof if it\'s currently set to \"$descriptor_name$\" </summary>\n"
);
FieldGeneratorBase::AddPublicMemberAttributes((FieldGeneratorBase *)this,param_1);
io::Printer::Print(param_1,pmVar1,
"$access_level$ void Clear$property_name$() {\n if ($has_property_check$) {\n Clear$oneof_property_name$();\n }\n}\n"
);
}
}
return;
}
|
||
60,716
|
_cxx_global_var_init.1
|
ripplerx/src/ui/CustomLookAndFeel.cpp
|
CustomLookAndFeel::CustomLookAndFeel(bool isDark)
{
(void) isDark;
setColour(ComboBox::backgroundColourId, Colour(globals::COLOR_BACKGROUND));
setColour(ComboBox::textColourId, Colour(globals::COLOR_ACTIVE));
setColour(ComboBox::arrowColourId, Colour(globals::COLOR_ACTIVE));
setColour(ComboBox::outlineColourId, Colour(globals::COLOR_ACTIVE));
setColour(TooltipWindow::backgroundColourId, Colour(globals::COLOR_ACTIVE_L).darker(0.4f));
setColour(PopupMenu::backgroundColourId, Colour(globals::COLOR_ACTIVE_L).darker(0.4f).withAlpha(0.99f));
setColour(PopupMenu::highlightedBackgroundColourId, Colour(globals::COLOR_ACTIVE_L).darker(0.8f));
typeface = juce::Typeface::createSystemTypefaceFor(BinaryData::UbuntuMedium_ttf, BinaryData::UbuntuMedium_ttfSize);
setDefaultSansSerifTypeface(typeface);
this->setDefaultLookAndFeel(this);
}
|
O0
|
cpp
|
_cxx_global_var_init.1:
pushq %rbp
movq %rsp, %rbp
callq 0xe1770
callq 0xe17a0
callq 0xe17c0
callq 0xe17e0
callq 0xe1800
callq 0xe1820
callq 0xe1840
callq 0xe1860
callq 0xe1880
callq 0xe18a0
callq 0xe18c0
callq 0xe18e0
callq 0xe1900
callq 0xe1920
callq 0xe1940
callq 0xe1960
callq 0xe1980
callq 0xe19a0
callq 0xe19c0
callq 0xe19e0
callq 0xe1a00
callq 0xe1a20
callq 0xe1a40
callq 0xe1a60
callq 0xe1a80
callq 0xe1aa0
callq 0xe1ac0
callq 0xe1ae0
callq 0xe1b00
callq 0xe1b20
callq 0xe1b40
callq 0xe1b60
callq 0xe1b80
callq 0xe1ba0
callq 0xe1bc0
callq 0xe1be0
callq 0xe1c00
callq 0xe1c20
callq 0xe1c40
callq 0xe1c60
callq 0xe1c80
callq 0xe1ca0
callq 0xe1cc0
callq 0xe1ce0
callq 0xe1d00
callq 0xe1d20
callq 0xe1d40
callq 0xe1d60
callq 0xe1d80
callq 0xe1da0
callq 0xe1dc0
callq 0xe1de0
callq 0xe1e00
callq 0xe1e20
callq 0xe1e40
callq 0xe1e60
callq 0xe1e80
callq 0xe1ea0
callq 0xe1ec0
callq 0xe1ee0
callq 0xe1f00
callq 0xe1f20
callq 0xe1f40
callq 0xe1f60
callq 0xe1f80
callq 0xe1fa0
callq 0xe1fc0
callq 0xe1fe0
callq 0xe2000
callq 0xe2020
callq 0xe2040
callq 0xe2060
callq 0xe2080
callq 0xe20a0
callq 0xe20c0
callq 0xe20e0
callq 0xe2100
callq 0xe2120
callq 0xe2140
callq 0xe2160
callq 0xe2180
callq 0xe21a0
callq 0xe21c0
callq 0xe21e0
callq 0xe2200
callq 0xe2220
callq 0xe2240
callq 0xe2260
callq 0xe2280
callq 0xe22a0
callq 0xe22c0
callq 0xe22e0
callq 0xe2300
callq 0xe2320
callq 0xe2340
callq 0xe2360
callq 0xe2380
callq 0xe23a0
callq 0xe23c0
callq 0xe23e0
callq 0xe2400
callq 0xe2420
callq 0xe2440
callq 0xe2460
callq 0xe2480
callq 0xe24a0
callq 0xe24c0
callq 0xe24e0
callq 0xe2500
callq 0xe2520
callq 0xe2540
callq 0xe2560
callq 0xe2580
callq 0xe25a0
callq 0xe25c0
callq 0xe25e0
callq 0xe2600
callq 0xe2620
callq 0xe2640
callq 0xe2660
callq 0xe2680
callq 0xe26a0
callq 0xe26c0
callq 0xe26e0
callq 0xe2700
callq 0xe2720
callq 0xe2740
callq 0xe2760
callq 0xe2780
callq 0xe27a0
callq 0xe27c0
callq 0xe27e0
callq 0xe2800
callq 0xe2820
callq 0xe2840
callq 0xe2860
callq 0xe2880
callq 0xe28a0
callq 0xe28c0
callq 0xe28e0
callq 0xe2900
callq 0xe2920
callq 0xe2940
callq 0xe2960
callq 0xe2980
popq %rbp
retq
nopl (%rax,%rax)
|
_GLOBAL__sub_I_CustomLookAndFeel_cpp:
push rbp
mov rbp, rsp
call __cxx_global_var_init_15
call __cxx_global_var_init_1_14
call __cxx_global_var_init_3_11
call __cxx_global_var_init_4_10
call __cxx_global_var_init_5_11
call __cxx_global_var_init_6_10
call __cxx_global_var_init_7_10
call __cxx_global_var_init_8_10
call __cxx_global_var_init_9_10
call __cxx_global_var_init_10_10
call __cxx_global_var_init_11_10
call __cxx_global_var_init_12_10
call __cxx_global_var_init_13_10
call __cxx_global_var_init_14_10
call __cxx_global_var_init_15_11
call __cxx_global_var_init_16_11
call __cxx_global_var_init_17_10
call __cxx_global_var_init_18_10
call __cxx_global_var_init_19_10
call __cxx_global_var_init_20_10
call __cxx_global_var_init_21_10
call __cxx_global_var_init_22_10
call __cxx_global_var_init_23_10
call __cxx_global_var_init_24_10
call __cxx_global_var_init_25_10
call __cxx_global_var_init_26_10
call __cxx_global_var_init_27_10
call __cxx_global_var_init_28_10
call __cxx_global_var_init_29_10
call __cxx_global_var_init_30_10
call __cxx_global_var_init_31_10
call __cxx_global_var_init_32_10
call __cxx_global_var_init_33_10
call __cxx_global_var_init_34_10
call __cxx_global_var_init_35_10
call __cxx_global_var_init_36_10
call __cxx_global_var_init_37_10
call __cxx_global_var_init_38_10
call __cxx_global_var_init_39_10
call __cxx_global_var_init_40_10
call __cxx_global_var_init_41_10
call __cxx_global_var_init_42_10
call __cxx_global_var_init_43_10
call __cxx_global_var_init_44_10
call __cxx_global_var_init_45_11
call __cxx_global_var_init_46_10
call __cxx_global_var_init_47_10
call __cxx_global_var_init_48_10
call __cxx_global_var_init_49_10
call __cxx_global_var_init_50_10
call __cxx_global_var_init_51_10
call __cxx_global_var_init_52_10
call __cxx_global_var_init_53_10
call __cxx_global_var_init_54_10
call __cxx_global_var_init_55_10
call __cxx_global_var_init_56_10
call __cxx_global_var_init_57_10
call __cxx_global_var_init_58_10
call __cxx_global_var_init_59_11
call __cxx_global_var_init_60_10
call __cxx_global_var_init_61_11
call __cxx_global_var_init_62_11
call __cxx_global_var_init_63_10
call __cxx_global_var_init_64_10
call __cxx_global_var_init_65_10
call __cxx_global_var_init_66_10
call __cxx_global_var_init_67_10
call __cxx_global_var_init_68_10
call __cxx_global_var_init_69_10
call __cxx_global_var_init_70_10
call __cxx_global_var_init_71_10
call __cxx_global_var_init_72_10
call __cxx_global_var_init_73_10
call __cxx_global_var_init_74_10
call __cxx_global_var_init_75_10
call __cxx_global_var_init_76_10
call __cxx_global_var_init_77_10
call __cxx_global_var_init_78_10
call __cxx_global_var_init_79_10
call __cxx_global_var_init_80_10
call __cxx_global_var_init_81_10
call __cxx_global_var_init_82_10
call __cxx_global_var_init_83_10
call __cxx_global_var_init_84_10
call __cxx_global_var_init_85_10
call __cxx_global_var_init_86_10
call __cxx_global_var_init_87_10
call __cxx_global_var_init_88_11
call __cxx_global_var_init_89_10
call __cxx_global_var_init_90_10
call __cxx_global_var_init_91_10
call __cxx_global_var_init_92_10
call __cxx_global_var_init_93_10
call __cxx_global_var_init_94_10
call __cxx_global_var_init_95_10
call __cxx_global_var_init_96_10
call __cxx_global_var_init_97_10
call __cxx_global_var_init_98_10
call __cxx_global_var_init_99_10
call __cxx_global_var_init_100_10
call __cxx_global_var_init_101_10
call __cxx_global_var_init_102_10
call __cxx_global_var_init_103_10
call __cxx_global_var_init_104_10
call __cxx_global_var_init_105_10
call __cxx_global_var_init_106_10
call __cxx_global_var_init_107_10
call __cxx_global_var_init_108_10
call __cxx_global_var_init_109_10
call __cxx_global_var_init_110_10
call __cxx_global_var_init_111_10
call __cxx_global_var_init_112_10
call __cxx_global_var_init_113_10
call __cxx_global_var_init_114_10
call __cxx_global_var_init_115_10
call __cxx_global_var_init_116_10
call __cxx_global_var_init_117_10
call __cxx_global_var_init_118_10
call __cxx_global_var_init_119_10
call __cxx_global_var_init_120_10
call __cxx_global_var_init_121_10
call __cxx_global_var_init_122_10
call __cxx_global_var_init_123_10
call __cxx_global_var_init_124_10
call __cxx_global_var_init_125_10
call __cxx_global_var_init_126_10
call __cxx_global_var_init_127_10
call __cxx_global_var_init_128_10
call __cxx_global_var_init_129_10
call __cxx_global_var_init_130_10
call __cxx_global_var_init_131_10
call __cxx_global_var_init_132_10
call __cxx_global_var_init_133_10
call __cxx_global_var_init_134_10
call __cxx_global_var_init_135_10
call __cxx_global_var_init_136_10
call __cxx_global_var_init_137_10
call __cxx_global_var_init_138_10
call __cxx_global_var_init_139_10
call __cxx_global_var_init_140_10
call __cxx_global_var_init_141_10
call __cxx_global_var_init_142_10
call __cxx_global_var_init_143_10
call __cxx_global_var_init_144_10
call __cxx_global_var_init_145_10
pop rbp
retn
|
long long GLOBAL__sub_I_CustomLookAndFeel_cpp()
{
_cxx_global_var_init_15();
_cxx_global_var_init_1_14();
_cxx_global_var_init_3_11();
_cxx_global_var_init_4_10();
_cxx_global_var_init_5_11();
_cxx_global_var_init_6_10();
_cxx_global_var_init_7_10();
_cxx_global_var_init_8_10();
_cxx_global_var_init_9_10();
_cxx_global_var_init_10_10();
_cxx_global_var_init_11_10();
_cxx_global_var_init_12_10();
_cxx_global_var_init_13_10();
_cxx_global_var_init_14_10();
_cxx_global_var_init_15_11();
_cxx_global_var_init_16_11();
_cxx_global_var_init_17_10();
_cxx_global_var_init_18_10();
_cxx_global_var_init_19_10();
_cxx_global_var_init_20_10();
_cxx_global_var_init_21_10();
_cxx_global_var_init_22_10();
_cxx_global_var_init_23_10();
_cxx_global_var_init_24_10();
_cxx_global_var_init_25_10();
_cxx_global_var_init_26_10();
_cxx_global_var_init_27_10();
_cxx_global_var_init_28_10();
_cxx_global_var_init_29_10();
_cxx_global_var_init_30_10();
_cxx_global_var_init_31_10();
_cxx_global_var_init_32_10();
_cxx_global_var_init_33_10();
_cxx_global_var_init_34_10();
_cxx_global_var_init_35_10();
_cxx_global_var_init_36_10();
_cxx_global_var_init_37_10();
_cxx_global_var_init_38_10();
_cxx_global_var_init_39_10();
_cxx_global_var_init_40_10();
_cxx_global_var_init_41_10();
_cxx_global_var_init_42_10();
_cxx_global_var_init_43_10();
_cxx_global_var_init_44_10();
_cxx_global_var_init_45_11();
_cxx_global_var_init_46_10();
_cxx_global_var_init_47_10();
_cxx_global_var_init_48_10();
_cxx_global_var_init_49_10();
_cxx_global_var_init_50_10();
_cxx_global_var_init_51_10();
_cxx_global_var_init_52_10();
_cxx_global_var_init_53_10();
_cxx_global_var_init_54_10();
_cxx_global_var_init_55_10();
_cxx_global_var_init_56_10();
_cxx_global_var_init_57_10();
_cxx_global_var_init_58_10();
_cxx_global_var_init_59_11();
_cxx_global_var_init_60_10();
_cxx_global_var_init_61_11();
_cxx_global_var_init_62_11();
_cxx_global_var_init_63_10();
_cxx_global_var_init_64_10();
_cxx_global_var_init_65_10();
_cxx_global_var_init_66_10();
_cxx_global_var_init_67_10();
_cxx_global_var_init_68_10();
_cxx_global_var_init_69_10();
_cxx_global_var_init_70_10();
_cxx_global_var_init_71_10();
_cxx_global_var_init_72_10();
_cxx_global_var_init_73_10();
_cxx_global_var_init_74_10();
_cxx_global_var_init_75_10();
_cxx_global_var_init_76_10();
_cxx_global_var_init_77_10();
_cxx_global_var_init_78_10();
_cxx_global_var_init_79_10();
_cxx_global_var_init_80_10();
_cxx_global_var_init_81_10();
_cxx_global_var_init_82_10();
_cxx_global_var_init_83_10();
_cxx_global_var_init_84_10();
_cxx_global_var_init_85_10();
_cxx_global_var_init_86_10();
_cxx_global_var_init_87_10();
_cxx_global_var_init_88_11();
_cxx_global_var_init_89_10();
_cxx_global_var_init_90_10();
_cxx_global_var_init_91_10();
_cxx_global_var_init_92_10();
_cxx_global_var_init_93_10();
_cxx_global_var_init_94_10();
_cxx_global_var_init_95_10();
_cxx_global_var_init_96_10();
_cxx_global_var_init_97_10();
_cxx_global_var_init_98_10();
_cxx_global_var_init_99_10();
_cxx_global_var_init_100_10();
_cxx_global_var_init_101_10();
_cxx_global_var_init_102_10();
_cxx_global_var_init_103_10();
_cxx_global_var_init_104_10();
_cxx_global_var_init_105_10();
_cxx_global_var_init_106_10();
_cxx_global_var_init_107_10();
_cxx_global_var_init_108_10();
_cxx_global_var_init_109_10();
_cxx_global_var_init_110_10();
_cxx_global_var_init_111_10();
_cxx_global_var_init_112_10();
_cxx_global_var_init_113_10();
_cxx_global_var_init_114_10();
_cxx_global_var_init_115_10();
_cxx_global_var_init_116_10();
_cxx_global_var_init_117_10();
_cxx_global_var_init_118_10();
_cxx_global_var_init_119_10();
_cxx_global_var_init_120_10();
_cxx_global_var_init_121_10();
_cxx_global_var_init_122_10();
_cxx_global_var_init_123_10();
_cxx_global_var_init_124_10();
_cxx_global_var_init_125_10();
_cxx_global_var_init_126_10();
_cxx_global_var_init_127_10();
_cxx_global_var_init_128_10();
_cxx_global_var_init_129_10();
_cxx_global_var_init_130_10();
_cxx_global_var_init_131_10();
_cxx_global_var_init_132_10();
_cxx_global_var_init_133_10();
_cxx_global_var_init_134_10();
_cxx_global_var_init_135_10();
_cxx_global_var_init_136_10();
_cxx_global_var_init_137_10();
_cxx_global_var_init_138_10();
_cxx_global_var_init_139_10();
_cxx_global_var_init_140_10();
_cxx_global_var_init_141_10();
_cxx_global_var_init_142_10();
_cxx_global_var_init_143_10();
_cxx_global_var_init_144_10();
return _cxx_global_var_init_145_10();
}
|
_GLOBAL__sub_I_CustomLookAndFeel.cpp:
PUSH RBP
MOV RBP,RSP
CALL 0x001e1770
CALL 0x001e17a0
CALL 0x001e17c0
CALL 0x001e17e0
CALL 0x001e1800
CALL 0x001e1820
CALL 0x001e1840
CALL 0x001e1860
CALL 0x001e1880
CALL 0x001e18a0
CALL 0x001e18c0
CALL 0x001e18e0
CALL 0x001e1900
CALL 0x001e1920
CALL 0x001e1940
CALL 0x001e1960
CALL 0x001e1980
CALL 0x001e19a0
CALL 0x001e19c0
CALL 0x001e19e0
CALL 0x001e1a00
CALL 0x001e1a20
CALL 0x001e1a40
CALL 0x001e1a60
CALL 0x001e1a80
CALL 0x001e1aa0
CALL 0x001e1ac0
CALL 0x001e1ae0
CALL 0x001e1b00
CALL 0x001e1b20
CALL 0x001e1b40
CALL 0x001e1b60
CALL 0x001e1b80
CALL 0x001e1ba0
CALL 0x001e1bc0
CALL 0x001e1be0
CALL 0x001e1c00
CALL 0x001e1c20
CALL 0x001e1c40
CALL 0x001e1c60
CALL 0x001e1c80
CALL 0x001e1ca0
CALL 0x001e1cc0
CALL 0x001e1ce0
CALL 0x001e1d00
CALL 0x001e1d20
CALL 0x001e1d40
CALL 0x001e1d60
CALL 0x001e1d80
CALL 0x001e1da0
CALL 0x001e1dc0
CALL 0x001e1de0
CALL 0x001e1e00
CALL 0x001e1e20
CALL 0x001e1e40
CALL 0x001e1e60
CALL 0x001e1e80
CALL 0x001e1ea0
CALL 0x001e1ec0
CALL 0x001e1ee0
CALL 0x001e1f00
CALL 0x001e1f20
CALL 0x001e1f40
CALL 0x001e1f60
CALL 0x001e1f80
CALL 0x001e1fa0
CALL 0x001e1fc0
CALL 0x001e1fe0
CALL 0x001e2000
CALL 0x001e2020
CALL 0x001e2040
CALL 0x001e2060
CALL 0x001e2080
CALL 0x001e20a0
CALL 0x001e20c0
CALL 0x001e20e0
CALL 0x001e2100
CALL 0x001e2120
CALL 0x001e2140
CALL 0x001e2160
CALL 0x001e2180
CALL 0x001e21a0
CALL 0x001e21c0
CALL 0x001e21e0
CALL 0x001e2200
CALL 0x001e2220
CALL 0x001e2240
CALL 0x001e2260
CALL 0x001e2280
CALL 0x001e22a0
CALL 0x001e22c0
CALL 0x001e22e0
CALL 0x001e2300
CALL 0x001e2320
CALL 0x001e2340
CALL 0x001e2360
CALL 0x001e2380
CALL 0x001e23a0
CALL 0x001e23c0
CALL 0x001e23e0
CALL 0x001e2400
CALL 0x001e2420
CALL 0x001e2440
CALL 0x001e2460
CALL 0x001e2480
CALL 0x001e24a0
CALL 0x001e24c0
CALL 0x001e24e0
CALL 0x001e2500
CALL 0x001e2520
CALL 0x001e2540
CALL 0x001e2560
CALL 0x001e2580
CALL 0x001e25a0
CALL 0x001e25c0
CALL 0x001e25e0
CALL 0x001e2600
CALL 0x001e2620
CALL 0x001e2640
CALL 0x001e2660
CALL 0x001e2680
CALL 0x001e26a0
CALL 0x001e26c0
CALL 0x001e26e0
CALL 0x001e2700
CALL 0x001e2720
CALL 0x001e2740
CALL 0x001e2760
CALL 0x001e2780
CALL 0x001e27a0
CALL 0x001e27c0
CALL 0x001e27e0
CALL 0x001e2800
CALL 0x001e2820
CALL 0x001e2840
CALL 0x001e2860
CALL 0x001e2880
CALL 0x001e28a0
CALL 0x001e28c0
CALL 0x001e28e0
CALL 0x001e2900
CALL 0x001e2920
CALL 0x001e2940
CALL 0x001e2960
CALL 0x001e2980
POP RBP
RET
|
void _GLOBAL__sub_I_CustomLookAndFeel_cpp(void)
{
__cxx_global_var_init();
__cxx_global_var_init_1();
__cxx_global_var_init_3();
__cxx_global_var_init_4();
__cxx_global_var_init_5();
__cxx_global_var_init_6();
__cxx_global_var_init_7();
__cxx_global_var_init_8();
__cxx_global_var_init_9();
__cxx_global_var_init_10();
__cxx_global_var_init_11();
__cxx_global_var_init_12();
__cxx_global_var_init_13();
__cxx_global_var_init_14();
__cxx_global_var_init_15();
__cxx_global_var_init_16();
__cxx_global_var_init_17();
__cxx_global_var_init_18();
__cxx_global_var_init_19();
__cxx_global_var_init_20();
__cxx_global_var_init_21();
__cxx_global_var_init_22();
__cxx_global_var_init_23();
__cxx_global_var_init_24();
__cxx_global_var_init_25();
__cxx_global_var_init_26();
__cxx_global_var_init_27();
__cxx_global_var_init_28();
__cxx_global_var_init_29();
__cxx_global_var_init_30();
__cxx_global_var_init_31();
__cxx_global_var_init_32();
__cxx_global_var_init_33();
__cxx_global_var_init_34();
__cxx_global_var_init_35();
__cxx_global_var_init_36();
__cxx_global_var_init_37();
__cxx_global_var_init_38();
__cxx_global_var_init_39();
__cxx_global_var_init_40();
__cxx_global_var_init_41();
__cxx_global_var_init_42();
__cxx_global_var_init_43();
__cxx_global_var_init_44();
__cxx_global_var_init_45();
__cxx_global_var_init_46();
__cxx_global_var_init_47();
__cxx_global_var_init_48();
__cxx_global_var_init_49();
__cxx_global_var_init_50();
__cxx_global_var_init_51();
__cxx_global_var_init_52();
__cxx_global_var_init_53();
__cxx_global_var_init_54();
__cxx_global_var_init_55();
__cxx_global_var_init_56();
__cxx_global_var_init_57();
__cxx_global_var_init_58();
__cxx_global_var_init_59();
__cxx_global_var_init_60();
__cxx_global_var_init_61();
__cxx_global_var_init_62();
__cxx_global_var_init_63();
__cxx_global_var_init_64();
__cxx_global_var_init_65();
__cxx_global_var_init_66();
__cxx_global_var_init_67();
__cxx_global_var_init_68();
__cxx_global_var_init_69();
__cxx_global_var_init_70();
__cxx_global_var_init_71();
__cxx_global_var_init_72();
__cxx_global_var_init_73();
__cxx_global_var_init_74();
__cxx_global_var_init_75();
__cxx_global_var_init_76();
__cxx_global_var_init_77();
__cxx_global_var_init_78();
__cxx_global_var_init_79();
__cxx_global_var_init_80();
__cxx_global_var_init_81();
__cxx_global_var_init_82();
__cxx_global_var_init_83();
__cxx_global_var_init_84();
__cxx_global_var_init_85();
__cxx_global_var_init_86();
__cxx_global_var_init_87();
__cxx_global_var_init_88();
__cxx_global_var_init_89();
__cxx_global_var_init_90();
__cxx_global_var_init_91();
__cxx_global_var_init_92();
__cxx_global_var_init_93();
__cxx_global_var_init_94();
__cxx_global_var_init_95();
__cxx_global_var_init_96();
__cxx_global_var_init_97();
__cxx_global_var_init_98();
__cxx_global_var_init_99();
__cxx_global_var_init_100();
__cxx_global_var_init_101();
__cxx_global_var_init_102();
__cxx_global_var_init_103();
__cxx_global_var_init_104();
__cxx_global_var_init_105();
__cxx_global_var_init_106();
__cxx_global_var_init_107();
__cxx_global_var_init_108();
__cxx_global_var_init_109();
__cxx_global_var_init_110();
__cxx_global_var_init_111();
__cxx_global_var_init_112();
__cxx_global_var_init_113();
__cxx_global_var_init_114();
__cxx_global_var_init_115();
__cxx_global_var_init_116();
__cxx_global_var_init_117();
__cxx_global_var_init_118();
__cxx_global_var_init_119();
__cxx_global_var_init_120();
__cxx_global_var_init_121();
__cxx_global_var_init_122();
__cxx_global_var_init_123();
__cxx_global_var_init_124();
__cxx_global_var_init_125();
__cxx_global_var_init_126();
__cxx_global_var_init_127();
__cxx_global_var_init_128();
__cxx_global_var_init_129();
__cxx_global_var_init_130();
__cxx_global_var_init_131();
__cxx_global_var_init_132();
__cxx_global_var_init_133();
__cxx_global_var_init_134();
__cxx_global_var_init_135();
__cxx_global_var_init_136();
__cxx_global_var_init_137();
__cxx_global_var_init_138();
__cxx_global_var_init_139();
__cxx_global_var_init_140();
__cxx_global_var_init_141();
__cxx_global_var_init_142();
__cxx_global_var_init_143();
__cxx_global_var_init_144();
__cxx_global_var_init_145();
return;
}
|
|
60,717
|
mysql_mbcharlen_utf8mb3
|
eloqsql/libmariadb/libmariadb/ma_charset.c
|
static unsigned int mysql_mbcharlen_utf8mb3(unsigned int utf8)
{
if (utf8 < 0x80) {
return 1; /* single byte character */
}
if (utf8 < 0xC2) {
return 0; /* invalid multibyte header */
}
if (utf8 < 0xE0) {
return 2; /* double byte character */
}
if (utf8 < 0xF0) {
return 3; /* triple byte character */
}
return 0;
}
|
O3
|
c
|
mysql_mbcharlen_utf8mb3:
pushq %rbp
movq %rsp, %rbp
movl $0x1, %eax
cmpl $0x80, %edi
jb 0x3465c
xorl %eax, %eax
cmpl $0xc2, %edi
jb 0x3465c
movl $0x2, %eax
cmpl $0xe0, %edi
jb 0x3465c
xorl %eax, %eax
cmpl $0xf0, %edi
setb %al
leal (%rax,%rax,2), %eax
popq %rbp
retq
|
mysql_mbcharlen_utf8mb3:
push rbp
mov rbp, rsp
mov eax, 1
cmp edi, 80h
jb short loc_3465C
xor eax, eax
cmp edi, 0C2h
jb short loc_3465C
mov eax, 2
cmp edi, 0E0h
jb short loc_3465C
xor eax, eax
cmp edi, 0F0h
setb al
lea eax, [rax+rax*2]
loc_3465C:
pop rbp
retn
|
long long mysql_mbcharlen_utf8mb3(unsigned int a1)
{
long long result; // rax
result = 1LL;
if ( a1 >= 0x80 )
{
result = 0LL;
if ( a1 >= 0xC2 )
{
result = 2LL;
if ( a1 >= 0xE0 )
return 3 * (unsigned int)(a1 < 0xF0);
}
}
return result;
}
|
mysql_mbcharlen_utf8mb3:
PUSH RBP
MOV RBP,RSP
MOV EAX,0x1
CMP EDI,0x80
JC 0x0013465c
XOR EAX,EAX
CMP EDI,0xc2
JC 0x0013465c
MOV EAX,0x2
CMP EDI,0xe0
JC 0x0013465c
XOR EAX,EAX
CMP EDI,0xf0
SETC AL
LEA EAX,[RAX + RAX*0x2]
LAB_0013465c:
POP RBP
RET
|
char mysql_mbcharlen_utf8mb3(uint param_1)
{
char cVar1;
cVar1 = '\x01';
if (((0x7f < param_1) && (cVar1 = '\0', 0xc1 < param_1)) && (cVar1 = '\x02', 0xdf < param_1)) {
cVar1 = (param_1 < 0xf0) * '\x03';
}
return cVar1;
}
|
|
60,718
|
my_mb_wc_filename
|
eloqsql/strings/ctype-utf8.c
|
static int
my_mb_wc_filename(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t *pwc, const uchar *s, const uchar *e)
{
int byte1, byte2;
if (s >= e)
return MY_CS_TOOSMALL;
if (*s < 128 && filename_safe_char[*s])
{
*pwc= *s;
return 1;
}
if (*s != MY_FILENAME_ESCAPE)
return MY_CS_ILSEQ;
if (s + 3 > e)
return MY_CS_TOOSMALL3;
byte1= s[1];
if (byte1 == 0)
return MY_CS_ILSEQ; /* avoid possible out-of-bounds read */
byte2= s[2];
if (byte1 >= 0x30 && byte1 <= 0x7F &&
byte2 >= 0x30 && byte2 <= 0x7F)
{
int code= (byte1 - 0x30) * 80 + byte2 - 0x30;
if (code < 5994 && touni[code])
{
*pwc= touni[code];
return 3;
}
if (byte1 == '@' && byte2 == '@')
{
*pwc= 0;
return 3;
}
}
if (s + 4 > e)
return MY_CS_TOOSMALL4;
if ((byte1= hexlo(byte1)) >= 0 &&
(byte2= hexlo(byte2)) >= 0)
{
int byte3= hexlo(s[3]);
int byte4= hexlo(s[3] ? s[4] : 0);
if (byte3 >=0 && byte4 >=0)
{
*pwc= (byte1 << 12) + (byte2 << 8) + (byte3 << 4) + byte4;
return 5;
}
}
return MY_CS_ILSEQ;
}
|
O0
|
c
|
my_mb_wc_filename:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jb 0xd2bae
movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B
jmp 0xd2d9e
movq -0x20(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x80, %eax
jge 0xd2bf1
movq -0x20(%rbp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x14d7f4(%rip), %rax # 0x2203c0
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
je 0xd2bf1
movq -0x20(%rbp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0xd2d9e
movq -0x20(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x40, %eax
je 0xd2c09
movl $0x0, -0x4(%rbp)
jmp 0xd2d9e
movq -0x20(%rbp), %rax
addq $0x3, %rax
cmpq -0x28(%rbp), %rax
jbe 0xd2c23
movl $0xffffff99, -0x4(%rbp) # imm = 0xFFFFFF99
jmp 0xd2d9e
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
movl %eax, -0x2c(%rbp)
cmpl $0x0, -0x2c(%rbp)
jne 0xd2c40
movl $0x0, -0x4(%rbp)
jmp 0xd2d9e
movq -0x20(%rbp), %rax
movzbl 0x2(%rax), %eax
movl %eax, -0x30(%rbp)
cmpl $0x30, -0x2c(%rbp)
jl 0xd2ce3
cmpl $0x7f, -0x2c(%rbp)
jg 0xd2ce3
cmpl $0x30, -0x30(%rbp)
jl 0xd2ce3
cmpl $0x7f, -0x30(%rbp)
jg 0xd2ce3
movl -0x2c(%rbp), %eax
subl $0x30, %eax
imull $0x50, %eax, %eax
addl -0x30(%rbp), %eax
subl $0x30, %eax
movl %eax, -0x34(%rbp)
cmpl $0x176a, -0x34(%rbp) # imm = 0x176A
jge 0xd2cbe
movslq -0x34(%rbp), %rcx
leaq 0x14d7af(%rip), %rax # 0x220440
movzwl (%rax,%rcx,2), %eax
cmpl $0x0, %eax
je 0xd2cbe
movslq -0x34(%rbp), %rcx
leaq 0x14d79b(%rip), %rax # 0x220440
movzwl (%rax,%rcx,2), %eax
movl %eax, %ecx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movl $0x3, -0x4(%rbp)
jmp 0xd2d9e
cmpl $0x40, -0x2c(%rbp)
jne 0xd2ce1
cmpl $0x40, -0x30(%rbp)
jne 0xd2ce1
movq -0x18(%rbp), %rax
movq $0x0, (%rax)
movl $0x3, -0x4(%rbp)
jmp 0xd2d9e
jmp 0xd2ce3
movq -0x20(%rbp), %rax
addq $0x4, %rax
cmpq -0x28(%rbp), %rax
jbe 0xd2cfd
movl $0xffffff98, -0x4(%rbp) # imm = 0xFFFFFF98
jmp 0xd2d9e
movl -0x2c(%rbp), %edi
callq 0xd31c0
movl %eax, -0x2c(%rbp)
cmpl $0x0, %eax
jl 0xd2d97
movl -0x30(%rbp), %edi
callq 0xd31c0
movl %eax, -0x30(%rbp)
cmpl $0x0, %eax
jl 0xd2d97
movq -0x20(%rbp), %rax
movzbl 0x3(%rax), %edi
callq 0xd31c0
movl %eax, -0x38(%rbp)
movq -0x20(%rbp), %rax
movzbl 0x3(%rax), %eax
cmpl $0x0, %eax
je 0xd2d4b
movq -0x20(%rbp), %rax
movzbl 0x4(%rax), %eax
movl %eax, -0x40(%rbp)
jmp 0xd2d52
xorl %eax, %eax
movl %eax, -0x40(%rbp)
jmp 0xd2d52
movl -0x40(%rbp), %edi
callq 0xd31c0
movl %eax, -0x3c(%rbp)
cmpl $0x0, -0x38(%rbp)
jl 0xd2d95
cmpl $0x0, -0x3c(%rbp)
jl 0xd2d95
movl -0x2c(%rbp), %eax
shll $0xc, %eax
movl -0x30(%rbp), %ecx
shll $0x8, %ecx
addl %ecx, %eax
movl -0x38(%rbp), %ecx
shll $0x4, %ecx
addl %ecx, %eax
addl -0x3c(%rbp), %eax
movslq %eax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movl $0x5, -0x4(%rbp)
jmp 0xd2d9e
jmp 0xd2d97
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
my_mb_wc_filename:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_20]
cmp rax, [rbp+var_28]
jb short loc_D2BAE
mov [rbp+var_4], 0FFFFFF9Bh
jmp loc_D2D9E
loc_D2BAE:
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax]
cmp eax, 80h
jge short loc_D2BF1
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax]
mov ecx, eax
lea rax, filename_safe_char
movsx eax, byte ptr [rax+rcx]
cmp eax, 0
jz short loc_D2BF1
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax]
mov ecx, eax
mov rax, [rbp+var_18]
mov [rax], rcx
mov [rbp+var_4], 1
jmp loc_D2D9E
loc_D2BF1:
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax]
cmp eax, 40h ; '@'
jz short loc_D2C09
mov [rbp+var_4], 0
jmp loc_D2D9E
loc_D2C09:
mov rax, [rbp+var_20]
add rax, 3
cmp rax, [rbp+var_28]
jbe short loc_D2C23
mov [rbp+var_4], 0FFFFFF99h
jmp loc_D2D9E
loc_D2C23:
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
mov [rbp+var_2C], eax
cmp [rbp+var_2C], 0
jnz short loc_D2C40
mov [rbp+var_4], 0
jmp loc_D2D9E
loc_D2C40:
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+2]
mov [rbp+var_30], eax
cmp [rbp+var_2C], 30h ; '0'
jl loc_D2CE3
cmp [rbp+var_2C], 7Fh
jg loc_D2CE3
cmp [rbp+var_30], 30h ; '0'
jl short loc_D2CE3
cmp [rbp+var_30], 7Fh
jg short loc_D2CE3
mov eax, [rbp+var_2C]
sub eax, 30h ; '0'
imul eax, 50h ; 'P'
add eax, [rbp+var_30]
sub eax, 30h ; '0'
mov [rbp+var_34], eax
cmp [rbp+var_34], 176Ah
jge short loc_D2CBE
movsxd rcx, [rbp+var_34]
lea rax, touni
movzx eax, word ptr [rax+rcx*2]
cmp eax, 0
jz short loc_D2CBE
movsxd rcx, [rbp+var_34]
lea rax, touni
movzx eax, word ptr [rax+rcx*2]
mov ecx, eax
mov rax, [rbp+var_18]
mov [rax], rcx
mov [rbp+var_4], 3
jmp loc_D2D9E
loc_D2CBE:
cmp [rbp+var_2C], 40h ; '@'
jnz short loc_D2CE1
cmp [rbp+var_30], 40h ; '@'
jnz short loc_D2CE1
mov rax, [rbp+var_18]
mov qword ptr [rax], 0
mov [rbp+var_4], 3
jmp loc_D2D9E
loc_D2CE1:
jmp short $+2
loc_D2CE3:
mov rax, [rbp+var_20]
add rax, 4
cmp rax, [rbp+var_28]
jbe short loc_D2CFD
mov [rbp+var_4], 0FFFFFF98h
jmp loc_D2D9E
loc_D2CFD:
mov edi, [rbp+var_2C]
call hexlo
mov [rbp+var_2C], eax
cmp eax, 0
jl loc_D2D97
mov edi, [rbp+var_30]
call hexlo
mov [rbp+var_30], eax
cmp eax, 0
jl short loc_D2D97
mov rax, [rbp+var_20]
movzx edi, byte ptr [rax+3]
call hexlo
mov [rbp+var_38], eax
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+3]
cmp eax, 0
jz short loc_D2D4B
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+4]
mov [rbp+var_40], eax
jmp short loc_D2D52
loc_D2D4B:
xor eax, eax
mov [rbp+var_40], eax
jmp short $+2
loc_D2D52:
mov edi, [rbp+var_40]
call hexlo
mov [rbp+var_3C], eax
cmp [rbp+var_38], 0
jl short loc_D2D95
cmp [rbp+var_3C], 0
jl short loc_D2D95
mov eax, [rbp+var_2C]
shl eax, 0Ch
mov ecx, [rbp+var_30]
shl ecx, 8
add eax, ecx
mov ecx, [rbp+var_38]
shl ecx, 4
add eax, ecx
add eax, [rbp+var_3C]
movsxd rcx, eax
mov rax, [rbp+var_18]
mov [rax], rcx
mov [rbp+var_4], 5
jmp short loc_D2D9E
loc_D2D95:
jmp short $+2
loc_D2D97:
mov [rbp+var_4], 0
loc_D2D9E:
mov eax, [rbp+var_4]
add rsp, 40h
pop rbp
retn
|
long long my_mb_wc_filename(long long a1, _QWORD *a2, unsigned __int8 *a3, unsigned long long a4)
{
unsigned int v5; // [rsp+0h] [rbp-40h]
int v6; // [rsp+4h] [rbp-3Ch]
int v7; // [rsp+8h] [rbp-38h]
int v8; // [rsp+Ch] [rbp-34h]
unsigned int v9; // [rsp+10h] [rbp-30h]
int v10; // [rsp+10h] [rbp-30h]
int v11; // [rsp+14h] [rbp-2Ch]
int v12; // [rsp+14h] [rbp-2Ch]
if ( (unsigned long long)a3 < a4 )
{
if ( *a3 < 0x80u && filename_safe_char[*a3] )
{
*a2 = *a3;
return 1;
}
else if ( *a3 == 64 )
{
if ( (unsigned long long)(a3 + 3) <= a4 )
{
v11 = a3[1];
if ( a3[1] )
{
v9 = a3[2];
if ( a3[1] >= 0x30u && a3[1] <= 0x7Fu && a3[2] >= 0x30u && a3[2] <= 0x7Fu )
{
v8 = v9 + 80 * (v11 - 48) - 48;
if ( v8 < 5994 && touni[v8] )
{
*a2 = touni[v8];
return 3;
}
if ( v11 == 64 && v9 == 64 )
{
*a2 = 0LL;
return 3;
}
}
if ( (unsigned long long)(a3 + 4) <= a4 )
{
v12 = hexlo(a3[1]);
if ( v12 < 0 )
return 0;
v10 = hexlo(v9);
if ( v10 < 0 )
return 0;
v7 = hexlo(a3[3]);
v5 = a3[3] ? a3[4] : 0;
v6 = hexlo(v5);
if ( v7 < 0 || v6 < 0 )
{
return 0;
}
else
{
*a2 = v6 + 16 * v7 + (v10 << 8) + (v12 << 12);
return 5;
}
}
else
{
return (unsigned int)-104;
}
}
else
{
return 0;
}
}
else
{
return (unsigned int)-103;
}
}
else
{
return 0;
}
}
else
{
return (unsigned int)-101;
}
}
|
my_mb_wc_filename:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x28]
JC 0x001d2bae
MOV dword ptr [RBP + -0x4],0xffffff9b
JMP 0x001d2d9e
LAB_001d2bae:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x80
JGE 0x001d2bf1
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x3203c0]
MOVSX EAX,byte ptr [RAX + RCX*0x1]
CMP EAX,0x0
JZ 0x001d2bf1
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001d2d9e
LAB_001d2bf1:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x40
JZ 0x001d2c09
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001d2d9e
LAB_001d2c09:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x3
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x001d2c23
MOV dword ptr [RBP + -0x4],0xffffff99
JMP 0x001d2d9e
LAB_001d2c23:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
MOV dword ptr [RBP + -0x2c],EAX
CMP dword ptr [RBP + -0x2c],0x0
JNZ 0x001d2c40
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001d2d9e
LAB_001d2c40:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x2]
MOV dword ptr [RBP + -0x30],EAX
CMP dword ptr [RBP + -0x2c],0x30
JL 0x001d2ce3
CMP dword ptr [RBP + -0x2c],0x7f
JG 0x001d2ce3
CMP dword ptr [RBP + -0x30],0x30
JL 0x001d2ce3
CMP dword ptr [RBP + -0x30],0x7f
JG 0x001d2ce3
MOV EAX,dword ptr [RBP + -0x2c]
SUB EAX,0x30
IMUL EAX,EAX,0x50
ADD EAX,dword ptr [RBP + -0x30]
SUB EAX,0x30
MOV dword ptr [RBP + -0x34],EAX
CMP dword ptr [RBP + -0x34],0x176a
JGE 0x001d2cbe
MOVSXD RCX,dword ptr [RBP + -0x34]
LEA RAX,[0x320440]
MOVZX EAX,word ptr [RAX + RCX*0x2]
CMP EAX,0x0
JZ 0x001d2cbe
MOVSXD RCX,dword ptr [RBP + -0x34]
LEA RAX,[0x320440]
MOVZX EAX,word ptr [RAX + RCX*0x2]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV dword ptr [RBP + -0x4],0x3
JMP 0x001d2d9e
LAB_001d2cbe:
CMP dword ptr [RBP + -0x2c],0x40
JNZ 0x001d2ce1
CMP dword ptr [RBP + -0x30],0x40
JNZ 0x001d2ce1
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],0x0
MOV dword ptr [RBP + -0x4],0x3
JMP 0x001d2d9e
LAB_001d2ce1:
JMP 0x001d2ce3
LAB_001d2ce3:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x4
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x001d2cfd
MOV dword ptr [RBP + -0x4],0xffffff98
JMP 0x001d2d9e
LAB_001d2cfd:
MOV EDI,dword ptr [RBP + -0x2c]
CALL 0x001d31c0
MOV dword ptr [RBP + -0x2c],EAX
CMP EAX,0x0
JL 0x001d2d97
MOV EDI,dword ptr [RBP + -0x30]
CALL 0x001d31c0
MOV dword ptr [RBP + -0x30],EAX
CMP EAX,0x0
JL 0x001d2d97
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EDI,byte ptr [RAX + 0x3]
CALL 0x001d31c0
MOV dword ptr [RBP + -0x38],EAX
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x3]
CMP EAX,0x0
JZ 0x001d2d4b
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x4]
MOV dword ptr [RBP + -0x40],EAX
JMP 0x001d2d52
LAB_001d2d4b:
XOR EAX,EAX
MOV dword ptr [RBP + -0x40],EAX
JMP 0x001d2d52
LAB_001d2d52:
MOV EDI,dword ptr [RBP + -0x40]
CALL 0x001d31c0
MOV dword ptr [RBP + -0x3c],EAX
CMP dword ptr [RBP + -0x38],0x0
JL 0x001d2d95
CMP dword ptr [RBP + -0x3c],0x0
JL 0x001d2d95
MOV EAX,dword ptr [RBP + -0x2c]
SHL EAX,0xc
MOV ECX,dword ptr [RBP + -0x30]
SHL ECX,0x8
ADD EAX,ECX
MOV ECX,dword ptr [RBP + -0x38]
SHL ECX,0x4
ADD EAX,ECX
ADD EAX,dword ptr [RBP + -0x3c]
MOVSXD RCX,EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV dword ptr [RBP + -0x4],0x5
JMP 0x001d2d9e
LAB_001d2d95:
JMP 0x001d2d97
LAB_001d2d97:
MOV dword ptr [RBP + -0x4],0x0
LAB_001d2d9e:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x40
POP RBP
RET
|
int4 my_mb_wc_filename(int8 param_1,ulong *param_2,byte *param_3,byte *param_4)
{
byte bVar1;
uint uVar2;
uint uVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int4 local_c;
if (param_3 < param_4) {
if ((*param_3 < 0x80) && (filename_safe_char[*param_3] != '\0')) {
*param_2 = (ulong)*param_3;
local_c = 1;
}
else if (*param_3 == 0x40) {
if (param_4 < param_3 + 3) {
local_c = 0xffffff99;
}
else {
uVar2 = (uint)param_3[1];
if (uVar2 == 0) {
local_c = 0;
}
else {
uVar3 = (uint)param_3[2];
if ((((0x2f < uVar2) && (uVar2 < 0x80)) && (0x2f < uVar3)) && (uVar3 < 0x80)) {
iVar4 = (uVar2 - 0x30) * 0x50 + uVar3 + -0x30;
if ((iVar4 < 0x176a) && (*(short *)(touni + (long)iVar4 * 2) != 0)) {
*param_2 = (ulong)*(ushort *)(touni + (long)iVar4 * 2);
return 3;
}
if ((uVar2 == 0x40) && (uVar3 == 0x40)) {
*param_2 = 0;
return 3;
}
}
if (param_4 < param_3 + 4) {
local_c = 0xffffff98;
}
else {
iVar4 = hexlo(uVar2);
if ((-1 < iVar4) && (iVar5 = hexlo(uVar3), -1 < iVar5)) {
iVar6 = hexlo(param_3[3]);
if (param_3[3] == 0) {
bVar1 = 0;
}
else {
bVar1 = param_3[4];
}
iVar7 = hexlo(bVar1);
if ((-1 < iVar6) && (-1 < iVar7)) {
*param_2 = (long)(iVar4 * 0x1000 + iVar5 * 0x100 + iVar6 * 0x10 + iVar7);
return 5;
}
}
local_c = 0;
}
}
}
}
else {
local_c = 0;
}
}
else {
local_c = 0xffffff9b;
}
return local_c;
}
|
|
60,719
|
main
|
eloqsql/extra/mysql_waitpid.c
|
int main(int argc, char *argv[])
{
int pid= 0, t= 0, sig= 0;
progname= argv[0];
if (handle_options(&argc, &argv, my_long_options, get_one_option))
exit(-1);
if (!argv[0] || !argv[1] || (pid= atoi(argv[0])) <= 0 ||
(t= atoi(argv[1])) <= 0)
{
usage();
exit(-1);
}
for (; t > 0; t--)
{
if (kill((pid_t) pid, sig))
{
if (errno == EINVAL)
{
if (verbose)
printf("WARNING: kill couldn't handle signal 0, using signal 1.\n");
sig= 1;
t++;
continue;
}
return 0;
}
sleep(1);
}
return 1;
}
|
O0
|
c
|
main:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl $0x0, -0x4(%rbp)
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, 0x36829f(%rip) # 0x38ca18
leaq -0x8(%rbp), %rdi
leaq -0x10(%rbp), %rsi
leaq 0x1b0888(%rip), %rdx # 0x1d5010
leaq 0xe1(%rip), %rcx # 0x24870
callq 0x24ae0
cmpl $0x0, %eax
je 0x247a3
movl $0xffffffff, %edi # imm = 0xFFFFFFFF
callq 0x24390
movq -0x10(%rbp), %rax
cmpq $0x0, (%rax)
je 0x247e1
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x247e1
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x24530
movl %eax, -0x14(%rbp)
cmpl $0x0, %eax
jle 0x247e1
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x24530
movl %eax, -0x18(%rbp)
cmpl $0x0, %eax
jg 0x247f0
callq 0x248e0
movl $0xffffffff, %edi # imm = 0xFFFFFFFF
callq 0x24390
jmp 0x247f2
cmpl $0x0, -0x18(%rbp)
jle 0x24859
movl -0x14(%rbp), %edi
movl -0x1c(%rbp), %esi
callq 0x24430
cmpl $0x0, %eax
je 0x24844
callq 0x24040
cmpl $0x16, (%rax)
jne 0x2483b
cmpb $0x0, 0x368207(%rip) # 0x38ca20
je 0x24829
leaq 0x5a7e2(%rip), %rdi # 0x7f004
movb $0x0, %al
callq 0x24050
movl $0x1, -0x1c(%rbp)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x2484e
movl $0x0, -0x4(%rbp)
jmp 0x24860
movl $0x1, %edi
callq 0x241d0
movl -0x18(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x247f2
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
|
main:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_4], 0
mov [rbp+var_8], edi
mov [rbp+var_10], rsi
mov [rbp+var_14], 0
mov [rbp+var_18], 0
mov [rbp+var_1C], 0
mov rax, [rbp+var_10]
mov rax, [rax]
mov cs:progname, rax
lea rdi, [rbp+var_8]
lea rsi, [rbp+var_10]
lea rdx, my_long_options
lea rcx, get_one_option
call handle_options
cmp eax, 0
jz short loc_247A3
mov edi, 0FFFFFFFFh
call _exit
loc_247A3:
mov rax, [rbp+var_10]
cmp qword ptr [rax], 0
jz short loc_247E1
mov rax, [rbp+var_10]
cmp qword ptr [rax+8], 0
jz short loc_247E1
mov rax, [rbp+var_10]
mov rdi, [rax]
call _atoi
mov [rbp+var_14], eax
cmp eax, 0
jle short loc_247E1
mov rax, [rbp+var_10]
mov rdi, [rax+8]
call _atoi
mov [rbp+var_18], eax
cmp eax, 0
jg short loc_247F0
loc_247E1:
call usage
mov edi, 0FFFFFFFFh
call _exit
loc_247F0:
jmp short $+2
loc_247F2:
cmp [rbp+var_18], 0
jle short loc_24859
mov edi, [rbp+var_14]
mov esi, [rbp+var_1C]
call _kill
cmp eax, 0
jz short loc_24844
call ___errno_location
cmp dword ptr [rax], 16h
jnz short loc_2483B
cmp cs:verbose, 0
jz short loc_24829
lea rdi, aWarningKillCou; "WARNING: kill couldn't handle signal 0,"...
mov al, 0
call _printf
loc_24829:
mov [rbp+var_1C], 1
mov eax, [rbp+var_18]
add eax, 1
mov [rbp+var_18], eax
jmp short loc_2484E
loc_2483B:
mov [rbp+var_4], 0
jmp short loc_24860
loc_24844:
mov edi, 1
call _sleep
loc_2484E:
mov eax, [rbp+var_18]
add eax, 0FFFFFFFFh
mov [rbp+var_18], eax
jmp short loc_247F2
loc_24859:
mov [rbp+var_4], 1
loc_24860:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
|
int main(int argc, const char **argv, const char **envp)
{
unsigned int v4; // [rsp+4h] [rbp-1Ch]
int v5; // [rsp+8h] [rbp-18h]
int v6; // [rsp+Ch] [rbp-14h]
const char **v7; // [rsp+10h] [rbp-10h] BYREF
int v8; // [rsp+18h] [rbp-8h] BYREF
int v9; // [rsp+1Ch] [rbp-4h]
v9 = 0;
v8 = argc;
v7 = argv;
v4 = 0;
progname = (long long)*argv;
if ( (unsigned int)handle_options(&v8, &v7, &my_long_options, get_one_option) )
exit(0xFFFFFFFFLL);
if ( !*v7 || !v7[1] || (v6 = atoi(*v7), v6 <= 0) || (v5 = atoi(v7[1]), v5 <= 0) )
{
usage();
exit(0xFFFFFFFFLL);
}
while ( v5 > 0 )
{
if ( (unsigned int)kill((unsigned int)v6, v4) )
{
if ( *(_DWORD *)__errno_location() != 22 )
return 0;
if ( verbose )
printf("WARNING: kill couldn't handle signal 0, using signal 1.\n");
v4 = 1;
++v5;
}
else
{
sleep(1LL);
}
--v5;
}
return 1;
}
|
main:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0x4],0x0
MOV dword ptr [RBP + -0x8],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],0x0
MOV dword ptr [RBP + -0x18],0x0
MOV dword ptr [RBP + -0x1c],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [0x0048ca18],RAX
LEA RDI,[RBP + -0x8]
LEA RSI,[RBP + -0x10]
LEA RDX,[0x2d5010]
LEA RCX,[0x124870]
CALL 0x00124ae0
CMP EAX,0x0
JZ 0x001247a3
MOV EDI,0xffffffff
CALL 0x00124390
LAB_001247a3:
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX],0x0
JZ 0x001247e1
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x8],0x0
JZ 0x001247e1
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
CALL 0x00124530
MOV dword ptr [RBP + -0x14],EAX
CMP EAX,0x0
JLE 0x001247e1
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x00124530
MOV dword ptr [RBP + -0x18],EAX
CMP EAX,0x0
JG 0x001247f0
LAB_001247e1:
CALL 0x001248e0
MOV EDI,0xffffffff
CALL 0x00124390
LAB_001247f0:
JMP 0x001247f2
LAB_001247f2:
CMP dword ptr [RBP + -0x18],0x0
JLE 0x00124859
MOV EDI,dword ptr [RBP + -0x14]
MOV ESI,dword ptr [RBP + -0x1c]
CALL 0x00124430
CMP EAX,0x0
JZ 0x00124844
CALL 0x00124040
CMP dword ptr [RAX],0x16
JNZ 0x0012483b
CMP byte ptr [0x0048ca20],0x0
JZ 0x00124829
LEA RDI,[0x17f004]
MOV AL,0x0
CALL 0x00124050
LAB_00124829:
MOV dword ptr [RBP + -0x1c],0x1
MOV EAX,dword ptr [RBP + -0x18]
ADD EAX,0x1
MOV dword ptr [RBP + -0x18],EAX
JMP 0x0012484e
LAB_0012483b:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00124860
LAB_00124844:
MOV EDI,0x1
CALL 0x001241d0
LAB_0012484e:
MOV EAX,dword ptr [RBP + -0x18]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x18],EAX
JMP 0x001247f2
LAB_00124859:
MOV dword ptr [RBP + -0x4],0x1
LAB_00124860:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int4 main(int4 param_1,long *param_2)
{
int iVar1;
int iVar2;
int *piVar3;
int local_24;
int local_20;
long *local_18;
int4 local_10;
int4 local_c;
local_c = 0;
local_24 = 0;
progname = *param_2;
local_18 = param_2;
local_10 = param_1;
iVar1 = handle_options(&local_10,&local_18,my_long_options,get_one_option);
if (iVar1 != 0) {
/* WARNING: Subroutine does not return */
exit(-1);
}
if ((((*local_18 != 0) && (local_18[1] != 0)) && (iVar1 = atoi((char *)*local_18), 0 < iVar1)) &&
(local_20 = atoi((char *)local_18[1]), 0 < local_20)) {
do {
if (local_20 < 1) {
return 1;
}
iVar2 = kill(iVar1,local_24);
if (iVar2 == 0) {
sleep(1);
}
else {
piVar3 = __errno_location();
if (*piVar3 != 0x16) {
return 0;
}
if (verbose != '\0') {
printf("WARNING: kill couldn\'t handle signal 0, using signal 1.\n");
}
local_24 = 1;
local_20 = local_20 + 1;
}
local_20 = local_20 + -1;
} while( true );
}
usage();
/* WARNING: Subroutine does not return */
exit(-1);
}
|
|
60,720
|
httplib::detail::BufferStream::read(char*, unsigned long)
|
nickolajgrishuk[P]metricz-cpp/build_O2/_deps/httplib-src/httplib.h
|
inline ssize_t BufferStream::read(char *ptr, size_t size) {
#if defined(_MSC_VER) && _MSC_VER < 1910
auto len_read = buffer._Copy_s(ptr, size, size, position);
#else
auto len_read = buffer.copy(ptr, size, position);
#endif
position += static_cast<size_t>(len_read);
return static_cast<ssize_t>(len_read);
}
|
O2
|
c
|
httplib::detail::BufferStream::read(char*, unsigned long):
pushq %rbx
movq %rdi, %rbx
addq $0x8, %rdi
movq 0x28(%rbx), %rcx
callq 0x80a0
addq %rax, 0x28(%rbx)
popq %rbx
retq
nop
|
_ZN7httplib6detail12BufferStream4readEPcm:
push rbx
mov rbx, rdi
add rdi, 8
mov rcx, [rbx+28h]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4copyEPcmm; std::string::copy(char *,ulong,ulong)
add [rbx+28h], rax
pop rbx
retn
|
long long httplib::detail::BufferStream::read(httplib::detail::BufferStream *this, char *a2, long long a3)
{
long long result; // rax
result = std::string::copy((char *)this + 8, a2, a3, *((_QWORD *)this + 5));
*((_QWORD *)this + 5) += result;
return result;
}
|
read:
PUSH RBX
MOV RBX,RDI
ADD RDI,0x8
MOV RCX,qword ptr [RBX + 0x28]
CALL 0x001080a0
ADD qword ptr [RBX + 0x28],RAX
POP RBX
RET
|
/* httplib::detail::BufferStream::read(char*, unsigned long) */
void __thiscall httplib::detail::BufferStream::read(BufferStream *this,char *param_1,ulong param_2)
{
long lVar1;
lVar1 = std::__cxx11::string::copy((char *)(this + 8),(ulong)param_1,param_2);
*(long *)(this + 0x28) = *(long *)(this + 0x28) + lVar1;
return;
}
|
|
60,721
|
ma_net_init
|
eloqsql/libmariadb/libmariadb/ma_net.c
|
int ma_net_init(NET *net, MARIADB_PVIO* pvio)
{
if (!(net->buff=(uchar*) malloc(net_buffer_length)))
return 1;
if (!net->extension)
return 1;
memset(net->buff, 0, net_buffer_length);
net->max_packet_size= MAX(net_buffer_length, max_allowed_packet);
net->buff_end=net->buff+(net->max_packet=net_buffer_length);
net->pvio = pvio;
net->error=0; net->return_status=0;
net->read_timeout=(uint) net_read_timeout; /* Timeout for read */
net->compress_pkt_nr= net->pkt_nr= 0;
net->write_pos=net->read_pos = net->buff;
net->last_error[0]= net->sqlstate[0] =0;
net->compress=0; net->reading_or_writing=0;
net->where_b = net->remain_in_buf=0;
net->last_errno=0;
if (pvio != 0) /* If real connection */
{
ma_pvio_get_handle(pvio, &net->fd);
ma_pvio_blocking(pvio, 1, 0);
ma_pvio_fast_send(pvio);
}
return 0;
}
|
O0
|
c
|
ma_net_init:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
leaq 0x20d71(%rip), %rax # 0x80e68
movq (%rax), %rdi
callq 0x145c0
movq -0x10(%rbp), %rcx
movq %rax, 0x8(%rcx)
cmpq $0x0, %rax
jne 0x60119
movl $0x1, -0x4(%rbp)
jmp 0x602a0
movq -0x10(%rbp), %rax
cmpq $0x0, 0x2a0(%rax)
jne 0x60133
movl $0x1, -0x4(%rbp)
jmp 0x602a0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x20d26(%rip), %rax # 0x80e68
movq (%rax), %rdx
xorl %esi, %esi
callq 0x14260
leaq 0x20d15(%rip), %rax # 0x80e68
movq (%rax), %rax
leaq 0x20cf3(%rip), %rcx # 0x80e50
cmpq (%rcx), %rax
jbe 0x60172
leaq 0x20cff(%rip), %rax # 0x80e68
movq (%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0x60180
leaq 0x20cd7(%rip), %rax # 0x80e50
movq (%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x58(%rax)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
leaq 0x20ccd(%rip), %rax # 0x80e68
movq (%rax), %rax
movq -0x10(%rbp), %rdx
movq %rax, 0x50(%rdx)
addq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movb $0x0, 0x94(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x78(%rax)
leaq 0x20c7e(%rip), %rax # 0x80e58
movq (%rax), %rax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x6c(%rax)
movq -0x10(%rbp), %rax
movl $0x0, 0x60(%rax)
movq -0x10(%rbp), %rax
movl $0x0, 0x64(%rax)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x10(%rbp), %rax
movb $0x0, 0x297(%rax)
movq -0x10(%rbp), %rax
movb $0x0, 0x97(%rax)
movq -0x10(%rbp), %rax
movb $0x0, 0x84(%rax)
movq -0x10(%rbp), %rax
movb $0x0, 0x80(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x30(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x48(%rax)
movq -0x10(%rbp), %rax
movl $0x0, 0x90(%rax)
cmpq $0x0, -0x18(%rbp)
je 0x60299
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x28, %rsi
callq 0x3e400
movq -0x18(%rbp), %rdi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x3de70
movq -0x18(%rbp), %rdi
callq 0x3da00
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
|
ma_net_init:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
lea rax, net_buffer_length
mov rdi, [rax]
call _malloc
mov rcx, [rbp+var_10]
mov [rcx+8], rax
cmp rax, 0
jnz short loc_60119
mov [rbp+var_4], 1
jmp loc_602A0
loc_60119:
mov rax, [rbp+var_10]
cmp qword ptr [rax+2A0h], 0
jnz short loc_60133
mov [rbp+var_4], 1
jmp loc_602A0
loc_60133:
mov rax, [rbp+var_10]
mov rdi, [rax+8]
lea rax, net_buffer_length
mov rdx, [rax]
xor esi, esi
call _memset
lea rax, net_buffer_length
mov rax, [rax]
lea rcx, max_allowed_packet
cmp rax, [rcx]
jbe short loc_60172
lea rax, net_buffer_length
mov rax, [rax]
mov [rbp+var_20], rax
jmp short loc_60180
loc_60172:
lea rax, max_allowed_packet
mov rax, [rax]
mov [rbp+var_20], rax
loc_60180:
mov rcx, [rbp+var_20]
mov rax, [rbp+var_10]
mov [rax+58h], rcx
mov rax, [rbp+var_10]
mov rcx, [rax+8]
lea rax, net_buffer_length
mov rax, [rax]
mov rdx, [rbp+var_10]
mov [rdx+50h], rax
add rcx, rax
mov rax, [rbp+var_10]
mov [rax+10h], rcx
mov rcx, [rbp+var_18]
mov rax, [rbp+var_10]
mov [rax], rcx
mov rax, [rbp+var_10]
mov byte ptr [rax+94h], 0
mov rax, [rbp+var_10]
mov qword ptr [rax+78h], 0
lea rax, net_read_timeout
mov rax, [rax]
mov ecx, eax
mov rax, [rbp+var_10]
mov [rax+6Ch], ecx
mov rax, [rbp+var_10]
mov dword ptr [rax+60h], 0
mov rax, [rbp+var_10]
mov dword ptr [rax+64h], 0
mov rax, [rbp+var_10]
mov rcx, [rax+8]
mov rax, [rbp+var_10]
mov [rax+20h], rcx
mov rax, [rbp+var_10]
mov [rax+18h], rcx
mov rax, [rbp+var_10]
mov byte ptr [rax+297h], 0
mov rax, [rbp+var_10]
mov byte ptr [rax+97h], 0
mov rax, [rbp+var_10]
mov byte ptr [rax+84h], 0
mov rax, [rbp+var_10]
mov byte ptr [rax+80h], 0
mov rax, [rbp+var_10]
mov qword ptr [rax+30h], 0
mov rax, [rbp+var_10]
mov qword ptr [rax+48h], 0
mov rax, [rbp+var_10]
mov dword ptr [rax+90h], 0
cmp [rbp+var_18], 0
jz short loc_60299
mov rdi, [rbp+var_18]
mov rsi, [rbp+var_10]
add rsi, 28h ; '('
call ma_pvio_get_handle
mov rdi, [rbp+var_18]
mov esi, 1
xor eax, eax
mov edx, eax
call ma_pvio_blocking
mov rdi, [rbp+var_18]
call ma_pvio_fast_send
loc_60299:
mov [rbp+var_4], 0
loc_602A0:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
|
long long ma_net_init(long long a1, long long a2)
{
long long v2; // rax
long long v3; // rcx
long long v4; // rax
long long v5; // rcx
long long v7; // [rsp+0h] [rbp-20h]
v2 = malloc(net_buffer_length);
*(_QWORD *)(a1 + 8) = v2;
if ( v2 )
{
if ( *(_QWORD *)(a1 + 672) )
{
memset(*(_QWORD *)(a1 + 8), 0LL, net_buffer_length);
if ( net_buffer_length <= max_allowed_packet )
v7 = max_allowed_packet;
else
v7 = net_buffer_length;
*(_QWORD *)(a1 + 88) = v7;
v3 = *(_QWORD *)(a1 + 8);
v4 = net_buffer_length;
*(_QWORD *)(a1 + 80) = net_buffer_length;
*(_QWORD *)(a1 + 16) = v4 + v3;
*(_QWORD *)a1 = a2;
*(_BYTE *)(a1 + 148) = 0;
*(_QWORD *)(a1 + 120) = 0LL;
*(_DWORD *)(a1 + 108) = net_read_timeout;
*(_DWORD *)(a1 + 96) = 0;
*(_DWORD *)(a1 + 100) = 0;
v5 = *(_QWORD *)(a1 + 8);
*(_QWORD *)(a1 + 32) = v5;
*(_QWORD *)(a1 + 24) = v5;
*(_BYTE *)(a1 + 663) = 0;
*(_BYTE *)(a1 + 151) = 0;
*(_BYTE *)(a1 + 132) = 0;
*(_BYTE *)(a1 + 128) = 0;
*(_QWORD *)(a1 + 48) = 0LL;
*(_QWORD *)(a1 + 72) = 0LL;
*(_DWORD *)(a1 + 144) = 0;
if ( a2 )
{
ma_pvio_get_handle(a2, a1 + 40);
ma_pvio_blocking(a2, 1, 0LL);
ma_pvio_fast_send(a2);
}
return 0;
}
else
{
return 1;
}
}
else
{
return 1;
}
}
|
ma_net_init:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
LEA RAX,[0x180e68]
MOV RDI,qword ptr [RAX]
CALL 0x001145c0
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RCX + 0x8],RAX
CMP RAX,0x0
JNZ 0x00160119
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001602a0
LAB_00160119:
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x2a0],0x0
JNZ 0x00160133
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001602a0
LAB_00160133:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x8]
LEA RAX,[0x180e68]
MOV RDX,qword ptr [RAX]
XOR ESI,ESI
CALL 0x00114260
LEA RAX,[0x180e68]
MOV RAX,qword ptr [RAX]
LEA RCX,[0x180e50]
CMP RAX,qword ptr [RCX]
JBE 0x00160172
LEA RAX,[0x180e68]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
JMP 0x00160180
LAB_00160172:
LEA RAX,[0x180e50]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
LAB_00160180:
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x58],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x8]
LEA RAX,[0x180e68]
MOV RAX,qword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x10]
MOV qword ptr [RDX + 0x50],RAX
ADD RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],RCX
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x94],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x78],0x0
LEA RAX,[0x180e58]
MOV RAX,qword ptr [RAX]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x6c],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x60],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x64],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x20],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x297],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x97],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x84],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x80],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x30],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x48],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x90],0x0
CMP qword ptr [RBP + -0x18],0x0
JZ 0x00160299
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0x28
CALL 0x0013e400
MOV RDI,qword ptr [RBP + -0x18]
MOV ESI,0x1
XOR EAX,EAX
MOV EDX,EAX
CALL 0x0013de70
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x0013da00
LAB_00160299:
MOV dword ptr [RBP + -0x4],0x0
LAB_001602a0:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int4 ma_net_init(long *param_1,long param_2)
{
size_t sVar1;
void *pvVar2;
ulong local_28;
int4 local_c;
pvVar2 = malloc(net_buffer_length);
param_1[1] = (long)pvVar2;
if (pvVar2 == (void *)0x0) {
local_c = 1;
}
else if (param_1[0x54] == 0) {
local_c = 1;
}
else {
memset((void *)param_1[1],0,net_buffer_length);
if (max_allowed_packet < net_buffer_length) {
local_28 = net_buffer_length;
}
else {
local_28 = max_allowed_packet;
}
param_1[0xb] = local_28;
sVar1 = net_buffer_length;
param_1[10] = net_buffer_length;
param_1[2] = param_1[1] + sVar1;
*param_1 = param_2;
*(int1 *)((long)param_1 + 0x94) = 0;
param_1[0xf] = 0;
*(int *)((long)param_1 + 0x6c) = (int)net_read_timeout;
*(int4 *)(param_1 + 0xc) = 0;
*(int4 *)((long)param_1 + 100) = 0;
param_1[4] = param_1[1];
param_1[3] = param_1[1];
*(int1 *)((long)param_1 + 0x297) = 0;
*(int1 *)((long)param_1 + 0x97) = 0;
*(int1 *)((long)param_1 + 0x84) = 0;
*(int1 *)(param_1 + 0x10) = 0;
param_1[6] = 0;
param_1[9] = 0;
*(int4 *)(param_1 + 0x12) = 0;
if (param_2 != 0) {
ma_pvio_get_handle(param_2,param_1 + 5);
ma_pvio_blocking(param_2,1,0);
ma_pvio_fast_send(param_2);
}
local_c = 0;
}
return local_c;
}
|
|
60,722
|
my_fdopen
|
eloqsql/mysys/my_fopen.c
|
FILE *my_fdopen(File Filedes, const char *name, int Flags, myf MyFlags)
{
FILE *fd;
char type[5];
DBUG_ENTER("my_fdopen");
DBUG_PRINT("my",("fd: %d Flags: %d MyFlags: %lu",
Filedes, Flags, MyFlags));
make_ftype(type,Flags);
#ifdef _WIN32
fd= my_win_fdopen(Filedes, type);
#else
fd= fdopen(Filedes, type);
#endif
if (!fd)
{
my_errno=errno;
if (MyFlags & (MY_FAE | MY_WME))
my_error(EE_CANT_OPEN_STREAM, MYF(ME_BELL), errno);
}
else
{
statistic_increment(my_stream_opened, &THR_LOCK_open);
if ((uint) Filedes < (uint) my_file_limit)
{
if (my_file_info[Filedes].type != UNOPEN)
{
/* File is opened with my_open ! */
my_atomic_add32_explicit(&my_file_opened, -1, MY_MEMORY_ORDER_RELAXED);
}
else
{
my_file_info[Filedes].name= my_strdup(key_memory_my_file_info,
name, MyFlags);
}
my_file_info[Filedes].type= STREAM_BY_FDOPEN;
}
}
DBUG_PRINT("exit",("stream: %p", fd));
DBUG_RETURN(fd);
}
|
O3
|
c
|
my_fdopen:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movq %rsi, %r15
movl %edi, %r12d
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
testb $0x1, %dl
jne 0x994b6
testb $0x2, %dl
jne 0x994d0
leaq -0x34(%rbp), %rax
movb $0x72, -0x1(%rax)
jmp 0x994fa
btl $0xa, %edx
movl $0x77, %eax
movl $0x61, %ecx
cmovael %eax, %ecx
leaq -0x34(%rbp), %rax
movb %cl, -0x1(%rax)
jmp 0x994fa
btl $0xa, %edx
movl $0x72, %eax
movl $0x61, %ecx
cmovael %eax, %ecx
testl $0x240, %edx # imm = 0x240
movl $0x77, %edx
cmovel %ecx, %edx
leaq -0x33(%rbp), %rax
movb %dl, -0x2(%rax)
movb $0x2b, -0x1(%rax)
movw $0x65, (%rax)
leaq -0x35(%rbp), %rsi
movl %r12d, %edi
callq 0x5f090
movq %rax, %r14
testq %rax, %rax
je 0x9954f
leaq 0x3cf676(%rip), %rax # 0x468b90
incq (%rax)
leaq 0x34c08c(%rip), %rax # 0x3e55b0
cmpl %r12d, (%rax)
jbe 0x995a6
leaq 0x34c088(%rip), %r13 # 0x3e55b8
movq (%r13), %rax
movslq %r12d, %r12
shlq $0x4, %r12
cmpl $0x0, 0x8(%rax,%r12)
je 0x9957d
leaq 0x3cf66a(%rip), %rcx # 0x468bb4
lock
decl (%rcx)
jmp 0x9959d
callq 0x5fc00
movq %rax, %r15
movl (%rax), %r12d
callq 0x9e14e
movl %r12d, (%rax)
testb $0x18, %bl
je 0x995a6
movl (%r15), %edx
movl $0x4, %esi
movl $0xf, %edi
xorl %eax, %eax
callq 0x98ed3
jmp 0x995a6
leaq 0x3cfb60(%rip), %rax # 0x4690e4
movl (%rax), %edi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x9c9c0
movq (%r13), %rcx
movq %rax, (%rcx,%r12)
movq (%r13), %rax
movl $0x4, 0x8(%rax,%r12)
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x995c7
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x5f320
|
my_fdopen:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, rcx
mov r15, rsi
mov r12d, edi
mov rax, fs:28h
mov [rbp+var_30], rax
test dl, 1
jnz short loc_994B6
test dl, 2
jnz short loc_994D0
lea rax, [rbp+var_34]
mov byte ptr [rax-1], 72h ; 'r'
jmp short loc_994FA
loc_994B6:
bt edx, 0Ah
mov eax, 77h ; 'w'
mov ecx, 61h ; 'a'
cmovnb ecx, eax
lea rax, [rbp+var_34]
mov [rax-1], cl
jmp short loc_994FA
loc_994D0:
bt edx, 0Ah
mov eax, 72h ; 'r'
mov ecx, 61h ; 'a'
cmovnb ecx, eax
test edx, 240h
mov edx, 77h ; 'w'
cmovz edx, ecx
lea rax, [rbp+var_33]
mov [rax-2], dl
mov byte ptr [rax-1], 2Bh ; '+'
loc_994FA:
mov word ptr [rax], 65h ; 'e'
lea rsi, [rbp+var_35]
mov edi, r12d
call _fdopen
mov r14, rax
test rax, rax
jz short loc_9954F
lea rax, my_stream_opened
inc qword ptr [rax]
lea rax, my_file_limit
cmp [rax], r12d
jbe short loc_995A6
lea r13, my_file_info
mov rax, [r13+0]
movsxd r12, r12d
shl r12, 4
cmp dword ptr [rax+r12+8], 0
jz short loc_9957D
lea rcx, my_file_opened
lock dec dword ptr [rcx]
jmp short loc_9959D
loc_9954F:
call ___errno_location
mov r15, rax
mov r12d, [rax]
call _my_thread_var
mov [rax], r12d
test bl, 18h
jz short loc_995A6
mov edx, [r15]
mov esi, 4
mov edi, 0Fh
xor eax, eax
call my_error
jmp short loc_995A6
loc_9957D:
lea rax, key_memory_my_file_info
mov edi, [rax]
mov rsi, r15
mov rdx, rbx
call my_strdup
mov rcx, [r13+0]
mov [rcx+r12], rax
mov rax, [r13+0]
loc_9959D:
mov dword ptr [rax+r12+8], 4
loc_995A6:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_995C7
mov rax, r14
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_995C7:
call ___stack_chk_fail
|
long long my_fdopen(unsigned int a1, long long a2, __int16 a3, long long a4)
{
char *v5; // rax
char v6; // cl
char v7; // cl
bool v8; // zf
char v9; // dl
long long v10; // r14
char *v11; // rax
long long v12; // r12
unsigned int *v13; // r15
unsigned int v14; // r12d
char v16; // [rsp+Bh] [rbp-35h] BYREF
char v17; // [rsp+Ch] [rbp-34h] BYREF
char v18; // [rsp+Dh] [rbp-33h] BYREF
unsigned long long v19; // [rsp+10h] [rbp-30h]
v19 = __readfsqword(0x28u);
if ( (a3 & 1) != 0 )
{
v6 = 97;
if ( (a3 & 0x400) == 0 )
v6 = 119;
v5 = &v17;
v16 = v6;
}
else if ( (a3 & 2) != 0 )
{
v7 = 97;
if ( (a3 & 0x400) == 0 )
v7 = 114;
v8 = (a3 & 0x240) == 0;
v9 = 119;
if ( v8 )
v9 = v7;
v5 = &v18;
v16 = v9;
v17 = 43;
}
else
{
v5 = &v17;
v16 = 114;
}
*(_WORD *)v5 = 101;
v10 = fdopen(a1, &v16);
if ( v10 )
{
++my_stream_opened;
if ( my_file_limit > a1 )
{
v11 = (char *)my_file_info;
v12 = 16LL * (int)a1;
if ( *(_DWORD *)((char *)my_file_info + v12 + 8) )
{
_InterlockedDecrement(my_file_opened);
}
else
{
*((_QWORD *)my_file_info + 2 * (int)a1) = my_strdup(key_memory_my_file_info, a2, a4);
v11 = (char *)my_file_info;
}
*(_DWORD *)&v11[v12 + 8] = 4;
}
}
else
{
v13 = (unsigned int *)__errno_location(a1);
v14 = *v13;
*(_DWORD *)my_thread_var(a1) = v14;
if ( (a4 & 0x18) != 0 )
my_error(0xFu, 4LL, *v13);
}
return v10;
}
|
my_fdopen:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,RCX
MOV R15,RSI
MOV R12D,EDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
TEST DL,0x1
JNZ 0x001994b6
TEST DL,0x2
JNZ 0x001994d0
LEA RAX,[RBP + -0x34]
MOV byte ptr [RAX + -0x1],0x72
JMP 0x001994fa
LAB_001994b6:
BT EDX,0xa
MOV EAX,0x77
MOV ECX,0x61
CMOVNC ECX,EAX
LEA RAX,[RBP + -0x34]
MOV byte ptr [RAX + -0x1],CL
JMP 0x001994fa
LAB_001994d0:
BT EDX,0xa
MOV EAX,0x72
MOV ECX,0x61
CMOVNC ECX,EAX
TEST EDX,0x240
MOV EDX,0x77
CMOVZ EDX,ECX
LEA RAX,[RBP + -0x33]
MOV byte ptr [RAX + -0x2],DL
MOV byte ptr [RAX + -0x1],0x2b
LAB_001994fa:
MOV word ptr [RAX],0x65
LEA RSI,[RBP + -0x35]
MOV EDI,R12D
CALL 0x0015f090
MOV R14,RAX
TEST RAX,RAX
JZ 0x0019954f
LEA RAX,[0x568b90]
INC qword ptr [RAX]
LEA RAX,[0x4e55b0]
CMP dword ptr [RAX],R12D
JBE 0x001995a6
LEA R13,[0x4e55b8]
MOV RAX,qword ptr [R13]
MOVSXD R12,R12D
SHL R12,0x4
CMP dword ptr [RAX + R12*0x1 + 0x8],0x0
JZ 0x0019957d
LEA RCX,[0x568bb4]
DEC.LOCK dword ptr [RCX]
JMP 0x0019959d
LAB_0019954f:
CALL 0x0015fc00
MOV R15,RAX
MOV R12D,dword ptr [RAX]
CALL 0x0019e14e
MOV dword ptr [RAX],R12D
TEST BL,0x18
JZ 0x001995a6
MOV EDX,dword ptr [R15]
MOV ESI,0x4
MOV EDI,0xf
XOR EAX,EAX
CALL 0x00198ed3
JMP 0x001995a6
LAB_0019957d:
LEA RAX,[0x5690e4]
MOV EDI,dword ptr [RAX]
MOV RSI,R15
MOV RDX,RBX
CALL 0x0019c9c0
MOV RCX,qword ptr [R13]
MOV qword ptr [RCX + R12*0x1],RAX
MOV RAX,qword ptr [R13]
LAB_0019959d:
MOV dword ptr [RAX + R12*0x1 + 0x8],0x4
LAB_001995a6:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x001995c7
MOV RAX,R14
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001995c7:
CALL 0x0015f320
|
FILE * my_fdopen(uint param_1,int8 param_2,uint param_3,ulong param_4)
{
int iVar1;
int2 *puVar2;
FILE *pFVar3;
int *piVar4;
int *piVar5;
int8 uVar6;
char cVar7;
long lVar8;
long in_FS_OFFSET;
char local_3d;
int1 local_3c [4];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
if ((param_3 & 1) == 0) {
if ((param_3 & 2) == 0) {
puVar2 = (int2 *)local_3c;
local_3d = 'r';
}
else {
cVar7 = 'a';
if ((param_3 >> 10 & 1) == 0) {
cVar7 = 'r';
}
local_3d = 'w';
if ((param_3 & 0x240) == 0) {
local_3d = cVar7;
}
puVar2 = (int2 *)(local_3c + 1);
local_3c[0] = 0x2b;
}
}
else {
local_3d = 'a';
if ((param_3 >> 10 & 1) == 0) {
local_3d = 'w';
}
puVar2 = (int2 *)local_3c;
}
*puVar2 = 0x65;
pFVar3 = fdopen(param_1,&local_3d);
if (pFVar3 == (FILE *)0x0) {
piVar4 = __errno_location();
iVar1 = *piVar4;
piVar5 = (int *)_my_thread_var();
*piVar5 = iVar1;
if ((param_4 & 0x18) != 0) {
my_error(0xf,4,*piVar4);
}
}
else {
my_stream_opened = my_stream_opened + 1;
if (param_1 < my_file_limit) {
lVar8 = (long)(int)param_1 * 0x10;
if (*(int *)(my_file_info + lVar8 + 8) == 0) {
uVar6 = my_strdup(key_memory_my_file_info,param_2,param_4);
*(int8 *)(my_file_info + lVar8) = uVar6;
}
else {
LOCK();
my_file_opened = my_file_opened + -1;
UNLOCK();
}
*(int4 *)(my_file_info + lVar8 + 8) = 4;
}
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return pFVar3;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
60,723
|
minja::ExpressionNode::~ExpressionNode()
|
monkey531[P]llama/common/./minja.hpp
|
ExpressionNode(const Location & location, std::shared_ptr<Expression> && e) : TemplateNode(location), expr(std::move(e)) {}
|
O3
|
cpp
|
minja::ExpressionNode::~ExpressionNode():
pushq %rbx
movq %rdi, %rbx
leaq 0x8da3f(%rip), %rax # 0xef2c8
movq %rax, (%rdi)
movq 0x28(%rdi), %rdi
testq %rdi, %rdi
je 0x6189a
callq 0x2f80e
leaq 0x8d747(%rip), %rax # 0xeefe8
movq %rax, (%rbx)
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x618b3
popq %rbx
jmp 0x2f80e
popq %rbx
retq
nop
|
_ZN5minja14ExpressionNodeD2Ev:
push rbx
mov rbx, rdi
lea rax, off_EF2C8
mov [rdi], rax
mov rdi, [rdi+28h]
test rdi, rdi
jz short loc_6189A
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_6189A:
lea rax, off_EEFE8
mov [rbx], rax
mov rdi, [rbx+10h]
test rdi, rdi
jz short loc_618B3
pop rbx
jmp _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_618B3:
pop rbx
retn
|
void minja::ExpressionNode::~ExpressionNode(minja::ExpressionNode *this)
{
volatile signed __int32 *v2; // rdi
volatile signed __int32 *v3; // rdi
*(_QWORD *)this = &off_EF2C8;
v2 = (volatile signed __int32 *)*((_QWORD *)this + 5);
if ( v2 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v2);
*(_QWORD *)this = &off_EEFE8;
v3 = (volatile signed __int32 *)*((_QWORD *)this + 2);
if ( v3 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3);
}
|
~ExpressionNode:
PUSH RBX
MOV RBX,RDI
LEA RAX,[0x1ef2c8]
MOV qword ptr [RDI],RAX
MOV RDI,qword ptr [RDI + 0x28]
TEST RDI,RDI
JZ 0x0016189a
CALL 0x0012f80e
LAB_0016189a:
LEA RAX,[0x1eefe8]
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RBX + 0x10]
TEST RDI,RDI
JZ 0x001618b3
POP RBX
JMP 0x0012f80e
LAB_001618b3:
POP RBX
RET
|
/* minja::ExpressionNode::~ExpressionNode() */
void __thiscall minja::ExpressionNode::~ExpressionNode(ExpressionNode *this)
{
*(int ***)this = &PTR_do_render_001ef2c8;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x28) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x28));
}
*(int ***)this = &PTR___cxa_pure_virtual_001eefe8;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10));
return;
}
return;
}
|
|
60,724
|
my_b_seq_read
|
eloqsql/mysys/mf_iocache.c
|
static int _my_b_seq_read(IO_CACHE *info, uchar *Buffer, size_t Count)
{
size_t length, diff_length, save_count, max_length;
my_off_t pos_in_file;
save_count=Count;
lock_append_buffer(info);
/* pos_in_file always point on where info->buffer was read */
if ((pos_in_file=info->pos_in_file +
(size_t) (info->read_end - info->buffer)) >= info->end_of_file)
goto read_append_buffer;
/*
With read-append cache we must always do a seek before we read,
because the write could have moved the file pointer astray
*/
if (mysql_file_seek(info->file, pos_in_file, MY_SEEK_SET, MYF(0)) == MY_FILEPOS_ERROR)
{
info->error= -1;
unlock_append_buffer(info);
return (1);
}
info->seek_not_done=0;
diff_length= (size_t) (pos_in_file & (IO_SIZE-1));
/* now the second stage begins - read from file descriptor */
if (Count >= (size_t) (IO_SIZE+(IO_SIZE-diff_length)))
{
/* Fill first intern buffer */
size_t read_length;
length= IO_ROUND_DN(Count) - diff_length;
if ((read_length= mysql_file_read(info->file,Buffer, length,
info->myflags)) == (size_t) -1)
{
info->error= -1;
unlock_append_buffer(info);
return 1;
}
Count-=read_length;
Buffer+=read_length;
pos_in_file+=read_length;
if (read_length != length)
{
/*
We only got part of data; Read the rest of the data from the
write buffer
*/
goto read_append_buffer;
}
diff_length=0;
}
max_length= info->read_length-diff_length;
if (max_length > (info->end_of_file - pos_in_file))
max_length= (size_t) (info->end_of_file - pos_in_file);
if (!max_length)
{
if (Count)
goto read_append_buffer;
length=0; /* Didn't read any more chars */
}
else
{
length= mysql_file_read(info->file,info->buffer, max_length, info->myflags);
if (length == (size_t) -1)
{
info->error= -1;
unlock_append_buffer(info);
return 1;
}
if (length < Count)
{
memcpy(Buffer, info->buffer, length);
Count -= length;
Buffer += length;
/*
added the line below to make
DBUG_ASSERT(pos_in_file==info->end_of_file) pass.
otherwise this does not appear to be needed
*/
pos_in_file += length;
goto read_append_buffer;
}
}
unlock_append_buffer(info);
info->read_pos=info->buffer+Count;
info->read_end=info->buffer+length;
info->pos_in_file=pos_in_file;
memcpy(Buffer,info->buffer,(size_t) Count);
return 0;
read_append_buffer:
/*
Read data from the current write buffer.
Count should never be == 0 here (The code will work even if count is 0)
*/
{
/* First copy the data to Count */
size_t len_in_buff = (size_t) (info->write_pos - info->append_read_pos);
size_t copy_len;
size_t transfer_len;
DBUG_ASSERT(info->append_read_pos <= info->write_pos);
copy_len=MY_MIN(Count, len_in_buff);
memcpy(Buffer, info->append_read_pos, copy_len);
info->append_read_pos += copy_len;
Count -= copy_len;
if (Count)
info->error= (int) (save_count - Count);
/* Fill read buffer with data from write buffer */
memcpy(info->buffer, info->append_read_pos,
(size_t) (transfer_len=len_in_buff - copy_len));
info->read_pos= info->buffer;
info->read_end= info->buffer+transfer_len;
info->append_read_pos=info->write_pos;
info->pos_in_file=pos_in_file+copy_len;
info->end_of_file+=len_in_buff;
}
unlock_append_buffer(info);
return Count ? 1 : 0;
}
|
O3
|
c
|
my_b_seq_read:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %r12
movq %rsi, -0x40(%rbp)
movq %rdi, %r14
leaq 0x50(%rdi), %r15
cmpq $0x0, 0x90(%rdi)
jne 0x964cf
movq %r15, %rdi
callq 0x29220
movq 0x18(%r14), %r13
subq 0x20(%r14), %r13
addq (%r14), %r13
cmpq 0x8(%r14), %r13
jae 0x9624b
movl 0xd4(%r14), %ebx
leaq 0x2efe29(%rip), %rax # 0x386010
movq (%rax), %rax
leaq -0xa8(%rbp), %rdi
movl %ebx, %esi
movl $0x8, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x964fd
movl %ebx, %edi
movq %r13, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xa076c
cmpq $-0x1, %rax
je 0x96432
movl $0x0, 0xe0(%r14)
movl %r13d, %eax
andl $0xfff, %eax # imm = 0xFFF
movl $0x2000, %ecx # imm = 0x2000
subq %rax, %rcx
cmpq %r12, %rcx
jbe 0x962f2
movq %r12, %rdx
jmp 0x96378
movq %r13, -0x38(%rbp)
movq %r15, -0x30(%rbp)
movq %r12, %r13
movq 0x38(%r14), %rsi
movq 0x40(%r14), %r15
subq %rsi, %r15
cmpq %r15, %r13
movq %r15, %rbx
cmovbq %r13, %rbx
movq -0x40(%rbp), %rdi
movq %rbx, %rdx
callq 0x29080
movq 0x38(%r14), %rsi
addq %rbx, %rsi
movq %rsi, 0x38(%r14)
cmpq %r15, %r13
jbe 0x96295
subl %r13d, %r12d
leal (%rbx,%r12), %eax
movl %eax, 0xe4(%r14)
movq 0x20(%r14), %rdi
movq %r15, %r12
subq %rbx, %r12
movq %r12, %rdx
callq 0x29080
movq 0x20(%r14), %rax
movq 0x40(%r14), %rcx
movq %rax, 0x10(%r14)
addq %rax, %r12
movq %r12, 0x18(%r14)
movq %rcx, 0x38(%r14)
movq -0x38(%rbp), %rax
addq %rbx, %rax
movq %rax, (%r14)
addq %r15, 0x8(%r14)
movq 0x90(%r14), %rdi
testq %rdi, %rdi
jne 0x964e8
xorl %ebx, %ebx
cmpq %r15, %r13
seta %bl
movq -0x30(%rbp), %rdi
callq 0x291e0
jmp 0x9645a
movq %r13, -0x38(%rbp)
movl %r12d, %r13d
andl $0xfffff000, %r13d # imm = 0xFFFFF000
subq %rax, %r13
movl 0xd4(%r14), %ebx
movq 0xf8(%r14), %rax
movq %rax, -0x30(%rbp)
leaq 0x2efcf4(%rip), %rax # 0x386010
movq (%rax), %rax
leaq -0xa8(%rbp), %rdi
movl %ebx, %esi
movl $0x6, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x9652e
movl %ebx, %edi
movq -0x40(%rbp), %rsi
movq %r13, %rdx
movq -0x30(%rbp), %rcx
callq 0xa056c
movq %rax, %rbx
cmpq $-0x1, %rbx
je 0x96432
movq %r12, %rdx
subq %rbx, %rdx
addq %rbx, -0x40(%rbp)
addq %rbx, -0x38(%rbp)
cmpq %r13, %rbx
jne 0x96477
xorl %eax, %eax
movq -0x38(%rbp), %r13
movq 0x8(%r14), %rbx
movq 0xf0(%r14), %rcx
subq %rax, %rcx
subq %r13, %rbx
cmpq %rbx, %rcx
cmovbq %rcx, %rbx
testq %rbx, %rbx
je 0x9646e
movq %rdx, -0x48(%rbp)
movq %r13, -0x38(%rbp)
movl 0xd4(%r14), %r13d
movq 0x20(%r14), %rax
movq %rax, -0x50(%rbp)
movq 0xf8(%r14), %rax
movq %rax, -0x30(%rbp)
leaq 0x2efc4e(%rip), %rax # 0x386010
movq (%rax), %rax
leaq -0xa8(%rbp), %rdi
movl %r13d, %esi
movl $0x6, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x965a3
movl %r13d, %edi
movq -0x50(%rbp), %rsi
movq %rbx, %rdx
movq -0x30(%rbp), %rcx
callq 0xa056c
cmpq $-0x1, %rax
movq -0x48(%rbp), %rdx
je 0x96432
movq %rdx, %r13
subq %rax, %r13
jbe 0x96483
movq %r15, -0x30(%rbp)
movq 0x20(%r14), %rsi
movq -0x40(%rbp), %rbx
movq %rbx, %rdi
movq %rax, %rdx
movq %rax, %r15
callq 0x29080
addq %r15, %rbx
movq %rbx, -0x40(%rbp)
addq %r15, -0x38(%rbp)
jmp 0x96256
movl $0xffffffff, 0xe4(%r14) # imm = 0xFFFFFFFF
movq 0x90(%r14), %rdi
testq %rdi, %rdi
jne 0x96519
movq %r15, %rdi
callq 0x291e0
movl $0x1, %ebx
movl %ebx, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testq %rdx, %rdx
je 0x96489
movq %r13, -0x38(%rbp)
movq %r15, -0x30(%rbp)
movq %rdx, %r13
jmp 0x96256
movq -0x38(%rbp), %r13
jmp 0x9648b
xorl %eax, %eax
movq %rax, %r12
movq %rdx, %rbx
movq 0x90(%r14), %rdi
testq %rdi, %rdi
jne 0x96617
movq %r15, %rdi
callq 0x291e0
movq 0x20(%r14), %rsi
movq %rbx, %rdx
leaq (%rsi,%rbx), %rax
movq %rax, 0x10(%r14)
addq %rsi, %r12
movq %r12, 0x18(%r14)
movq %r13, (%r14)
movq -0x40(%rbp), %rdi
callq 0x29080
xorl %ebx, %ebx
jmp 0x9645a
leaq 0x45b52(%rip), %rsi # 0xdc028
movq %r15, %rdi
movl $0x54c, %edx # imm = 0x54C
callq 0x2eb8f
jmp 0x961c8
leaq 0x2efb21(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x962dc
leaq -0x60(%rbp), %rcx
movq %rax, %rdi
movl %ebx, %esi
movq %r13, %rdx
movq %rcx, %rbx
callq 0x2ea93
movq (%rbx), %rax
jmp 0x96215
leaq 0x2efaf0(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x9644d
movq %rax, %rcx
leaq 0x2efad8(%rip), %rax # 0x386010
movq (%rax), %rax
leaq 0x45ae6(%rip), %rdx # 0xdc028
movq %rcx, -0x48(%rbp)
movq %rcx, %rdi
movq %r13, %rsi
movl $0x569, %ecx # imm = 0x569
callq *0x210(%rax)
movl %ebx, %edi
movq -0x40(%rbp), %rsi
movq %r13, %rdx
movq -0x30(%rbp), %rcx
callq 0xa056c
movq %rax, %rbx
xorl %esi, %esi
testq %rax, %rax
movl $0x0, %eax
cmoveq %r13, %rax
cmpq $-0x1, %rbx
cmovneq %rbx, %rsi
testb $0x6, -0x30(%rbp)
cmovneq %rax, %rsi
leaq 0x2efa7f(%rip), %rax # 0x386010
movq (%rax), %rax
movq -0x48(%rbp), %rdi
callq *0x218(%rax)
jmp 0x96351
movq %rax, %rcx
leaq 0x2efa63(%rip), %rax # 0x386010
movq (%rax), %rax
leaq 0x45a71(%rip), %rdx # 0xdc028
movq %rcx, -0x58(%rbp)
movq %rcx, %rdi
movq %rbx, %rsi
movl $0x589, %ecx # imm = 0x589
callq *0x210(%rax)
movl %r13d, %edi
movq -0x50(%rbp), %rsi
movq %rbx, %rdx
movq -0x30(%rbp), %rcx
callq 0xa056c
movq %rax, %r13
xorl %esi, %esi
testq %rax, %rax
cmovneq %rsi, %rbx
cmpq $-0x1, %rax
cmovneq %rax, %rsi
testb $0x6, -0x30(%rbp)
cmovneq %rbx, %rsi
leaq 0x2efa0e(%rip), %rax # 0x386010
movq (%rax), %rax
movq -0x58(%rbp), %rdi
callq *0x218(%rax)
movq %r13, %rax
jmp 0x963f6
leaq 0x2ef9f2(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x964a1
|
_my_b_seq_read:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 88h
mov r12, rdx
mov [rbp+var_40], rsi
mov r14, rdi
lea r15, [rdi+50h]
cmp qword ptr [rdi+90h], 0
jnz loc_964CF
mov rdi, r15
call _pthread_mutex_lock
loc_961C8:
mov r13, [r14+18h]
sub r13, [r14+20h]
add r13, [r14]
cmp r13, [r14+8]
jnb short loc_9624B
mov ebx, [r14+0D4h]
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_A8]
mov esi, ebx
mov edx, 8
call qword ptr [rax+158h]
test rax, rax
jnz loc_964FD
mov edi, ebx
mov rsi, r13
xor edx, edx
xor ecx, ecx
call my_seek
loc_96215:
cmp rax, 0FFFFFFFFFFFFFFFFh
jz loc_96432
mov dword ptr [r14+0E0h], 0
mov eax, r13d
and eax, 0FFFh
mov ecx, 2000h
sub rcx, rax
cmp rcx, r12
jbe loc_962F2
mov rdx, r12
jmp loc_96378
loc_9624B:
mov [rbp+var_38], r13
mov [rbp+var_30], r15
mov r13, r12
loc_96256:
mov rsi, [r14+38h]
mov r15, [r14+40h]
sub r15, rsi
cmp r13, r15
mov rbx, r15
cmovb rbx, r13
mov rdi, [rbp+var_40]
mov rdx, rbx
call _memcpy
mov rsi, [r14+38h]
add rsi, rbx
mov [r14+38h], rsi
cmp r13, r15
jbe short loc_96295
sub r12d, r13d
lea eax, [rbx+r12]
mov [r14+0E4h], eax
loc_96295:
mov rdi, [r14+20h]
mov r12, r15
sub r12, rbx
mov rdx, r12
call _memcpy
mov rax, [r14+20h]
mov rcx, [r14+40h]
mov [r14+10h], rax
add r12, rax
mov [r14+18h], r12
mov [r14+38h], rcx
mov rax, [rbp+var_38]
add rax, rbx
mov [r14], rax
add [r14+8], r15
mov rdi, [r14+90h]
test rdi, rdi
jnz loc_964E8
loc_962DC:
xor ebx, ebx
cmp r13, r15
setnbe bl
mov rdi, [rbp+var_30]
call _pthread_mutex_unlock
jmp loc_9645A
loc_962F2:
mov [rbp+var_38], r13
mov r13d, r12d
and r13d, 0FFFFF000h
sub r13, rax
mov ebx, [r14+0D4h]
mov rax, [r14+0F8h]
mov [rbp+var_30], rax
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_A8]
mov esi, ebx
mov edx, 6
call qword ptr [rax+158h]
test rax, rax
jnz loc_9652E
mov edi, ebx
mov rsi, [rbp+var_40]
mov rdx, r13
mov rcx, [rbp+var_30]
call my_read
mov rbx, rax
loc_96351:
cmp rbx, 0FFFFFFFFFFFFFFFFh
jz loc_96432
mov rdx, r12
sub rdx, rbx
add [rbp+var_40], rbx
add [rbp+var_38], rbx
cmp rbx, r13
jnz loc_96477
xor eax, eax
mov r13, [rbp+var_38]
loc_96378:
mov rbx, [r14+8]
mov rcx, [r14+0F0h]
sub rcx, rax
sub rbx, r13
cmp rcx, rbx
cmovb rbx, rcx
test rbx, rbx
jz loc_9646E
mov [rbp+var_48], rdx
mov [rbp+var_38], r13
mov r13d, [r14+0D4h]
mov rax, [r14+20h]
mov [rbp+var_50], rax
mov rax, [r14+0F8h]
mov [rbp+var_30], rax
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_A8]
mov esi, r13d
mov edx, 6
call qword ptr [rax+158h]
test rax, rax
jnz loc_965A3
mov edi, r13d
mov rsi, [rbp+var_50]
mov rdx, rbx
mov rcx, [rbp+var_30]
call my_read
loc_963F6:
cmp rax, 0FFFFFFFFFFFFFFFFh
mov rdx, [rbp+var_48]
jz short loc_96432
mov r13, rdx
sub r13, rax
jbe short loc_96483
mov [rbp+var_30], r15
mov rsi, [r14+20h]
mov rbx, [rbp+var_40]
mov rdi, rbx
mov rdx, rax
mov r15, rax
call _memcpy
add rbx, r15
mov [rbp+var_40], rbx
add [rbp+var_38], r15
jmp loc_96256
loc_96432:
mov dword ptr [r14+0E4h], 0FFFFFFFFh
mov rdi, [r14+90h]
test rdi, rdi
jnz loc_96519
loc_9644D:
mov rdi, r15
call _pthread_mutex_unlock
mov ebx, 1
loc_9645A:
mov eax, ebx
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_9646E:
test rdx, rdx
jz short loc_96489
mov [rbp+var_38], r13
loc_96477:
mov [rbp+var_30], r15
mov r13, rdx
jmp loc_96256
loc_96483:
mov r13, [rbp+var_38]
jmp short loc_9648B
loc_96489:
xor eax, eax
loc_9648B:
mov r12, rax
mov rbx, rdx
mov rdi, [r14+90h]
test rdi, rdi
jnz loc_96617
loc_964A1:
mov rdi, r15
call _pthread_mutex_unlock
mov rsi, [r14+20h]
mov rdx, rbx
lea rax, [rsi+rbx]
mov [r14+10h], rax
add r12, rsi
mov [r14+18h], r12
mov [r14], r13
mov rdi, [rbp+var_40]
call _memcpy
xor ebx, ebx
jmp short loc_9645A
loc_964CF:
lea rsi, aWorkspaceLlm4b_21; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, r15
mov edx, 54Ch
call psi_mutex_lock
jmp loc_961C8
loc_964E8:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp loc_962DC
loc_964FD:
lea rcx, [rbp+var_60]
mov rdi, rax
mov esi, ebx
mov rdx, r13
mov rbx, rcx
call _my_b_seq_read_cold_1
mov rax, [rbx]
jmp loc_96215
loc_96519:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp loc_9644D
loc_9652E:
mov rcx, rax
lea rax, PSI_server
mov rax, [rax]
lea rdx, aWorkspaceLlm4b_21; "/workspace/llm4binary/github2025/eloqsq"...
mov [rbp+var_48], rcx
mov rdi, rcx
mov rsi, r13
mov ecx, 569h
call qword ptr [rax+210h]
mov edi, ebx
mov rsi, [rbp+var_40]
mov rdx, r13
mov rcx, [rbp+var_30]
call my_read
mov rbx, rax
xor esi, esi
test rax, rax
mov eax, 0
cmovz rax, r13
cmp rbx, 0FFFFFFFFFFFFFFFFh
cmovnz rsi, rbx
test byte ptr [rbp+var_30], 6
cmovnz rsi, rax
lea rax, PSI_server
mov rax, [rax]
mov rdi, [rbp+var_48]
call qword ptr [rax+218h]
jmp loc_96351
loc_965A3:
mov rcx, rax
lea rax, PSI_server
mov rax, [rax]
lea rdx, aWorkspaceLlm4b_21; "/workspace/llm4binary/github2025/eloqsq"...
mov [rbp+var_58], rcx
mov rdi, rcx
mov rsi, rbx
mov ecx, 589h
call qword ptr [rax+210h]
mov edi, r13d
mov rsi, [rbp+var_50]
mov rdx, rbx
mov rcx, [rbp+var_30]
call my_read
mov r13, rax
xor esi, esi
test rax, rax
cmovnz rbx, rsi
cmp rax, 0FFFFFFFFFFFFFFFFh
cmovnz rsi, rax
test byte ptr [rbp+var_30], 6
cmovnz rsi, rbx
lea rax, PSI_server
mov rax, [rax]
mov rdi, [rbp+var_58]
call qword ptr [rax+218h]
mov rax, r13
jmp loc_963F6
loc_96617:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp loc_964A1
|
_BOOL8 my_b_seq_read(long long a1, unsigned long long a2, unsigned long long a3)
{
long long v4; // r15
unsigned long long v5; // r13
unsigned int v6; // ebx
long long v7; // rax
unsigned long long v8; // rsi
long long v9; // rax
unsigned long long v10; // rdx
unsigned long long v11; // rax
unsigned long long v12; // r13
long long v13; // rsi
unsigned long long v14; // r15
unsigned long long v15; // rbx
unsigned long long v16; // rsi
long long v17; // rax
long long v18; // rcx
BOOL v19; // ebx
unsigned long long v20; // r13
unsigned int v21; // ebx
long long v22; // rax
long long v23; // rbx
unsigned long long v24; // rbx
unsigned int v25; // r13d
long long v26; // rax
unsigned long long v27; // rax
unsigned long long v28; // rbx
unsigned long long v29; // r15
long long v30; // rdi
unsigned long long v32; // r12
unsigned long long v33; // rbx
long long v34; // rsi
unsigned long long v35; // rax
long long v36; // rax
unsigned long long v37; // r13
_BYTE v38[72]; // [rsp+8h] [rbp-A8h] BYREF
long long v39; // [rsp+50h] [rbp-60h] BYREF
long long v40; // [rsp+58h] [rbp-58h]
unsigned long long v41; // [rsp+60h] [rbp-50h]
unsigned long long v42; // [rsp+68h] [rbp-48h]
unsigned long long v43; // [rsp+70h] [rbp-40h]
unsigned long long v44; // [rsp+78h] [rbp-38h]
long long v45; // [rsp+80h] [rbp-30h]
v43 = a2;
v4 = a1 + 80;
if ( *(_QWORD *)(a1 + 144) )
psi_mutex_lock(a1 + 80, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c", 0x54Cu);
else
pthread_mutex_lock(a1 + 80);
v5 = *(_QWORD *)a1 + *(_QWORD *)(a1 + 24) - *(_QWORD *)(a1 + 32);
if ( v5 >= *(_QWORD *)(a1 + 8) )
{
v44 = *(_QWORD *)a1 + *(_QWORD *)(a1 + 24) - *(_QWORD *)(a1 + 32);
v45 = a1 + 80;
v12 = a3;
LABEL_10:
v13 = *(_QWORD *)(a1 + 56);
v14 = *(_QWORD *)(a1 + 64) - v13;
v15 = v14;
if ( v12 < v14 )
v15 = v12;
memcpy(v43, v13, v15);
v16 = v15 + *(_QWORD *)(a1 + 56);
*(_QWORD *)(a1 + 56) = v16;
if ( v12 > v14 )
*(_DWORD *)(a1 + 228) = v15 + a3 - v12;
memcpy(*(_QWORD *)(a1 + 32), v16, v14 - v15);
v17 = *(_QWORD *)(a1 + 32);
v18 = *(_QWORD *)(a1 + 64);
*(_QWORD *)(a1 + 16) = v17;
*(_QWORD *)(a1 + 24) = v17 + v14 - v15;
*(_QWORD *)(a1 + 56) = v18;
*(_QWORD *)a1 = v15 + v44;
*(_QWORD *)(a1 + 8) += v14;
if ( *(_QWORD *)(a1 + 144) )
PSI_server[44]();
v19 = v12 > v14;
pthread_mutex_unlock(v45);
return v19;
}
v6 = *(_DWORD *)(a1 + 212);
v7 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v38, v6, 8LL);
if ( v7 )
{
v8 = v6;
my_b_seq_read_cold_1(v7, v6, v5, &v39);
v9 = v39;
}
else
{
v8 = v5;
v9 = my_seek(v6, v5, 0LL, 0LL);
}
if ( v9 == -1 )
goto LABEL_30;
*(_DWORD *)(a1 + 224) = 0;
v11 = v5 & 0xFFF;
if ( 0x2000 - v11 <= a3 )
{
v44 = v5;
v20 = ((unsigned int)a3 & 0xFFFFF000) - v11;
v21 = *(_DWORD *)(a1 + 212);
v45 = *(_QWORD *)(a1 + 248);
v22 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v38, v21, 6LL);
if ( v22 )
{
v42 = v22;
((void ( *)(long long, unsigned long long, const char *, long long))PSI_server[66])(
v22,
v20,
"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",
1385LL);
v23 = my_read(v21, v43, v20, v45);
v8 = 0LL;
v35 = 0LL;
if ( !v23 )
v35 = v20;
if ( v23 != -1 )
v8 = v23;
if ( (v45 & 6) != 0 )
v8 = v35;
((void ( *)(unsigned long long, unsigned long long))PSI_server[67])(v42, v8);
}
else
{
v8 = v43;
v23 = my_read(v21, v43, v20, v45);
}
if ( v23 == -1 )
goto LABEL_30;
v10 = a3 - v23;
v43 += v23;
v44 += v23;
if ( v23 != v20 )
{
LABEL_36:
v45 = a1 + 80;
v12 = v10;
goto LABEL_10;
}
v11 = 0LL;
v5 = v44;
}
else
{
v10 = a3;
}
v24 = *(_QWORD *)(a1 + 8) - v5;
if ( *(_QWORD *)(a1 + 240) - v11 < v24 )
v24 = *(_QWORD *)(a1 + 240) - v11;
if ( !v24 )
{
if ( !v10 )
{
v27 = 0LL;
LABEL_39:
v32 = v27;
v33 = v10;
if ( *(_QWORD *)(a1 + 144) )
PSI_server[44]();
pthread_mutex_unlock(v4);
v34 = *(_QWORD *)(a1 + 32);
*(_QWORD *)(a1 + 16) = v34 + v33;
*(_QWORD *)(a1 + 24) = v34 + v32;
*(_QWORD *)a1 = v5;
memcpy(v43, v34, v33);
return 0;
}
v44 = v5;
goto LABEL_36;
}
v42 = v10;
v44 = v5;
v25 = *(_DWORD *)(a1 + 212);
v41 = *(_QWORD *)(a1 + 32);
v45 = *(_QWORD *)(a1 + 248);
v26 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v38, v25, 6LL);
if ( v26 )
{
v40 = v26;
((void ( *)(long long, unsigned long long, const char *, long long))PSI_server[66])(
v26,
v24,
"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",
1417LL);
v36 = my_read(v25, v41, v24, v45);
v37 = v36;
v8 = 0LL;
if ( v36 )
v24 = 0LL;
if ( v36 != -1 )
v8 = v36;
if ( (v45 & 6) != 0 )
v8 = v24;
((void ( *)(long long))PSI_server[67])(v40);
v27 = v37;
}
else
{
v8 = v41;
v27 = my_read(v25, v41, v24, v45);
}
v10 = v42;
if ( v27 != -1LL )
{
v12 = v42 - v27;
if ( v42 > v27 )
{
v45 = a1 + 80;
v28 = v43;
v29 = v27;
memcpy(v43, *(_QWORD *)(a1 + 32), v27);
v43 = v29 + v28;
v44 += v29;
goto LABEL_10;
}
v5 = v44;
goto LABEL_39;
}
LABEL_30:
*(_DWORD *)(a1 + 228) = -1;
v30 = *(_QWORD *)(a1 + 144);
if ( v30 )
((void ( *)(long long, unsigned long long, unsigned long long))PSI_server[44])(v30, v8, v10);
pthread_mutex_unlock(v4);
return 1;
}
|
_my_b_seq_read:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV R12,RDX
MOV qword ptr [RBP + -0x40],RSI
MOV R14,RDI
LEA R15,[RDI + 0x50]
CMP qword ptr [RDI + 0x90],0x0
JNZ 0x001964cf
MOV RDI,R15
CALL 0x00129220
LAB_001961c8:
MOV R13,qword ptr [R14 + 0x18]
SUB R13,qword ptr [R14 + 0x20]
ADD R13,qword ptr [R14]
CMP R13,qword ptr [R14 + 0x8]
JNC 0x0019624b
MOV EBX,dword ptr [R14 + 0xd4]
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0xa8]
MOV ESI,EBX
MOV EDX,0x8
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x001964fd
MOV EDI,EBX
MOV RSI,R13
XOR EDX,EDX
XOR ECX,ECX
CALL 0x001a076c
LAB_00196215:
CMP RAX,-0x1
JZ 0x00196432
MOV dword ptr [R14 + 0xe0],0x0
MOV EAX,R13D
AND EAX,0xfff
MOV ECX,0x2000
SUB RCX,RAX
CMP RCX,R12
JBE 0x001962f2
MOV RDX,R12
JMP 0x00196378
LAB_0019624b:
MOV qword ptr [RBP + -0x38],R13
MOV qword ptr [RBP + -0x30],R15
MOV R13,R12
LAB_00196256:
MOV RSI,qword ptr [R14 + 0x38]
MOV R15,qword ptr [R14 + 0x40]
SUB R15,RSI
CMP R13,R15
MOV RBX,R15
CMOVC RBX,R13
MOV RDI,qword ptr [RBP + -0x40]
MOV RDX,RBX
CALL 0x00129080
MOV RSI,qword ptr [R14 + 0x38]
ADD RSI,RBX
MOV qword ptr [R14 + 0x38],RSI
CMP R13,R15
JBE 0x00196295
SUB R12D,R13D
LEA EAX,[RBX + R12*0x1]
MOV dword ptr [R14 + 0xe4],EAX
LAB_00196295:
MOV RDI,qword ptr [R14 + 0x20]
MOV R12,R15
SUB R12,RBX
MOV RDX,R12
CALL 0x00129080
MOV RAX,qword ptr [R14 + 0x20]
MOV RCX,qword ptr [R14 + 0x40]
MOV qword ptr [R14 + 0x10],RAX
ADD R12,RAX
MOV qword ptr [R14 + 0x18],R12
MOV qword ptr [R14 + 0x38],RCX
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,RBX
MOV qword ptr [R14],RAX
ADD qword ptr [R14 + 0x8],R15
MOV RDI,qword ptr [R14 + 0x90]
TEST RDI,RDI
JNZ 0x001964e8
LAB_001962dc:
XOR EBX,EBX
CMP R13,R15
SETA BL
MOV RDI,qword ptr [RBP + -0x30]
CALL 0x001291e0
JMP 0x0019645a
LAB_001962f2:
MOV qword ptr [RBP + -0x38],R13
MOV R13D,R12D
AND R13D,0xfffff000
SUB R13,RAX
MOV EBX,dword ptr [R14 + 0xd4]
MOV RAX,qword ptr [R14 + 0xf8]
MOV qword ptr [RBP + -0x30],RAX
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0xa8]
MOV ESI,EBX
MOV EDX,0x6
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x0019652e
MOV EDI,EBX
MOV RSI,qword ptr [RBP + -0x40]
MOV RDX,R13
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x001a056c
MOV RBX,RAX
LAB_00196351:
CMP RBX,-0x1
JZ 0x00196432
MOV RDX,R12
SUB RDX,RBX
ADD qword ptr [RBP + -0x40],RBX
ADD qword ptr [RBP + -0x38],RBX
CMP RBX,R13
JNZ 0x00196477
XOR EAX,EAX
MOV R13,qword ptr [RBP + -0x38]
LAB_00196378:
MOV RBX,qword ptr [R14 + 0x8]
MOV RCX,qword ptr [R14 + 0xf0]
SUB RCX,RAX
SUB RBX,R13
CMP RCX,RBX
CMOVC RBX,RCX
TEST RBX,RBX
JZ 0x0019646e
MOV qword ptr [RBP + -0x48],RDX
MOV qword ptr [RBP + -0x38],R13
MOV R13D,dword ptr [R14 + 0xd4]
MOV RAX,qword ptr [R14 + 0x20]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [R14 + 0xf8]
MOV qword ptr [RBP + -0x30],RAX
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0xa8]
MOV ESI,R13D
MOV EDX,0x6
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x001965a3
MOV EDI,R13D
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,RBX
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x001a056c
LAB_001963f6:
CMP RAX,-0x1
MOV RDX,qword ptr [RBP + -0x48]
JZ 0x00196432
MOV R13,RDX
SUB R13,RAX
JBE 0x00196483
MOV qword ptr [RBP + -0x30],R15
MOV RSI,qword ptr [R14 + 0x20]
MOV RBX,qword ptr [RBP + -0x40]
MOV RDI,RBX
MOV RDX,RAX
MOV R15,RAX
CALL 0x00129080
ADD RBX,R15
MOV qword ptr [RBP + -0x40],RBX
ADD qword ptr [RBP + -0x38],R15
JMP 0x00196256
LAB_00196432:
MOV dword ptr [R14 + 0xe4],0xffffffff
MOV RDI,qword ptr [R14 + 0x90]
TEST RDI,RDI
JNZ 0x00196519
LAB_0019644d:
MOV RDI,R15
CALL 0x001291e0
MOV EBX,0x1
LAB_0019645a:
MOV EAX,EBX
ADD RSP,0x88
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0019646e:
TEST RDX,RDX
JZ 0x00196489
MOV qword ptr [RBP + -0x38],R13
LAB_00196477:
MOV qword ptr [RBP + -0x30],R15
MOV R13,RDX
JMP 0x00196256
LAB_00196483:
MOV R13,qword ptr [RBP + -0x38]
JMP 0x0019648b
LAB_00196489:
XOR EAX,EAX
LAB_0019648b:
MOV R12,RAX
MOV RBX,RDX
MOV RDI,qword ptr [R14 + 0x90]
TEST RDI,RDI
JNZ 0x00196617
LAB_001964a1:
MOV RDI,R15
CALL 0x001291e0
MOV RSI,qword ptr [R14 + 0x20]
MOV RDX,RBX
LEA RAX,[RSI + RBX*0x1]
MOV qword ptr [R14 + 0x10],RAX
ADD R12,RSI
MOV qword ptr [R14 + 0x18],R12
MOV qword ptr [R14],R13
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x00129080
XOR EBX,EBX
JMP 0x0019645a
LAB_001964cf:
LEA RSI,[0x1dc028]
MOV RDI,R15
MOV EDX,0x54c
CALL 0x0012eb8f
JMP 0x001961c8
LAB_001964e8:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x001962dc
LAB_001964fd:
LEA RCX,[RBP + -0x60]
MOV RDI,RAX
MOV ESI,EBX
MOV RDX,R13
MOV RBX,RCX
CALL 0x0012ea93
MOV RAX,qword ptr [RBX]
JMP 0x00196215
LAB_00196519:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x0019644d
LAB_0019652e:
MOV RCX,RAX
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
LEA RDX,[0x1dc028]
MOV qword ptr [RBP + -0x48],RCX
MOV RDI,RCX
MOV RSI,R13
MOV ECX,0x569
CALL qword ptr [RAX + 0x210]
MOV EDI,EBX
MOV RSI,qword ptr [RBP + -0x40]
MOV RDX,R13
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x001a056c
MOV RBX,RAX
XOR ESI,ESI
TEST RAX,RAX
MOV EAX,0x0
CMOVZ RAX,R13
CMP RBX,-0x1
CMOVNZ RSI,RBX
TEST byte ptr [RBP + -0x30],0x6
CMOVNZ RSI,RAX
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RBP + -0x48]
CALL qword ptr [RAX + 0x218]
JMP 0x00196351
LAB_001965a3:
MOV RCX,RAX
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
LEA RDX,[0x1dc028]
MOV qword ptr [RBP + -0x58],RCX
MOV RDI,RCX
MOV RSI,RBX
MOV ECX,0x589
CALL qword ptr [RAX + 0x210]
MOV EDI,R13D
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,RBX
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x001a056c
MOV R13,RAX
XOR ESI,ESI
TEST RAX,RAX
CMOVNZ RBX,RSI
CMP RAX,-0x1
CMOVNZ RSI,RAX
TEST byte ptr [RBP + -0x30],0x6
CMOVNZ RSI,RBX
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RBP + -0x58]
CALL qword ptr [RAX + 0x218]
MOV RAX,R13
JMP 0x001963f6
LAB_00196617:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x001964a1
|
bool _my_b_seq_read(ulong *param_1,void *param_2,ulong param_3)
{
int4 uVar1;
void *pvVar2;
pthread_mutex_t *__mutex;
long lVar3;
long lVar4;
ulong __n;
long lVar5;
ulong uVar6;
long lVar7;
uint uVar8;
ulong uVar9;
ulong uVar10;
int1 local_b0 [72];
long local_68;
long local_60;
ulong local_58;
ulong local_50;
void *local_48;
ulong local_40;
pthread_mutex_t *local_38;
__mutex = (pthread_mutex_t *)(param_1 + 10);
local_48 = param_2;
if (param_1[0x12] == 0) {
pthread_mutex_lock(__mutex);
}
else {
psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",0x54c);
}
uVar9 = (param_1[3] - param_1[4]) + *param_1;
uVar8 = (uint)param_3;
if (uVar9 < param_1[1]) {
uVar1 = *(int4 *)((long)param_1 + 0xd4);
lVar3 = (**(code **)(PSI_server + 0x158))(local_b0,uVar1,8);
if (lVar3 == 0) {
local_68 = my_seek(uVar1,uVar9,0,0);
}
else {
_my_b_seq_read_cold_1(lVar3,uVar1,uVar9);
}
if (local_68 == -1) {
LAB_00196432:
*(int4 *)((long)param_1 + 0xe4) = 0xffffffff;
if (param_1[0x12] != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(__mutex);
return true;
}
*(int4 *)(param_1 + 0x1c) = 0;
uVar10 = (ulong)((uint)uVar9 & 0xfff);
if (0x2000 - uVar10 <= param_3) {
lVar3 = (uVar8 & 0xfffff000) - uVar10;
uVar1 = *(int4 *)((long)param_1 + 0xd4);
local_38 = (pthread_mutex_t *)param_1[0x1f];
local_40 = uVar9;
uVar9 = (**(code **)(PSI_server + 0x158))(local_b0,uVar1,6);
if (uVar9 == 0) {
lVar4 = my_read(uVar1,local_48,lVar3,local_38);
}
else {
local_50 = uVar9;
(**(code **)(PSI_server + 0x210))
(uVar9,lVar3,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",0x569);
lVar4 = my_read(uVar1,local_48,lVar3,local_38);
lVar5 = 0;
if (lVar4 == 0) {
lVar5 = lVar3;
}
lVar7 = 0;
if (lVar4 != -1) {
lVar7 = lVar4;
}
if (((ulong)local_38 & 6) != 0) {
lVar7 = lVar5;
}
(**(code **)(PSI_server + 0x218))(local_50,lVar7);
}
if (lVar4 == -1) goto LAB_00196432;
param_3 = param_3 - lVar4;
local_48 = (void *)((long)local_48 + lVar4);
uVar9 = local_40 + lVar4;
if (lVar4 != lVar3) goto LAB_00196256;
uVar10 = 0;
local_40 = uVar9;
}
uVar6 = param_1[1] - uVar9;
if (param_1[0x1e] - uVar10 < param_1[1] - uVar9) {
uVar6 = param_1[0x1e] - uVar10;
}
if (uVar6 == 0) {
if (param_3 == 0) {
__n = 0;
uVar10 = param_3;
LAB_0019648b:
if (param_1[0x12] != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(__mutex);
pvVar2 = (void *)param_1[4];
param_1[2] = (long)pvVar2 + uVar10;
param_1[3] = __n + (long)pvVar2;
*param_1 = uVar9;
memcpy(local_48,pvVar2,uVar10);
return false;
}
}
else {
uVar1 = *(int4 *)((long)param_1 + 0xd4);
local_58 = param_1[4];
local_38 = (pthread_mutex_t *)param_1[0x1f];
local_50 = param_3;
local_40 = uVar9;
lVar3 = (**(code **)(PSI_server + 0x158))(local_b0,uVar1,6);
if (lVar3 == 0) {
__n = my_read(uVar1,local_58,uVar6,local_38);
}
else {
local_60 = lVar3;
(**(code **)(PSI_server + 0x210))
(lVar3,uVar6,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",0x589);
__n = my_read(uVar1,local_58,uVar6,local_38);
if (__n != 0) {
uVar6 = 0;
}
uVar9 = 0;
if (__n != 0xffffffffffffffff) {
uVar9 = __n;
}
if (((ulong)local_38 & 6) != 0) {
uVar9 = uVar6;
}
(**(code **)(PSI_server + 0x218))(local_60,uVar9);
}
pvVar2 = local_48;
if (__n == 0xffffffffffffffff) goto LAB_00196432;
param_3 = local_50 - __n;
uVar10 = local_50;
uVar9 = local_40;
if (local_50 < __n || param_3 == 0) goto LAB_0019648b;
local_38 = __mutex;
memcpy(local_48,(void *)param_1[4],__n);
local_48 = (void *)((long)pvVar2 + __n);
uVar9 = local_40 + __n;
__mutex = local_38;
}
}
LAB_00196256:
local_38 = __mutex;
local_40 = uVar9;
uVar10 = param_1[8] - (long)param_1[7];
uVar9 = uVar10;
if (param_3 < uVar10) {
uVar9 = param_3;
}
memcpy(local_48,(void *)param_1[7],uVar9);
uVar6 = param_1[7];
param_1[7] = uVar6 + uVar9;
if (uVar10 < param_3) {
*(uint *)((long)param_1 + 0xe4) = (int)uVar9 + (uVar8 - (int)param_3);
}
memcpy((void *)param_1[4],(void *)(uVar6 + uVar9),uVar10 - uVar9);
param_1[2] = param_1[4];
param_1[3] = (uVar10 - uVar9) + param_1[4];
param_1[7] = param_1[8];
*param_1 = local_40 + uVar9;
param_1[1] = param_1[1] + uVar10;
if (param_1[0x12] != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(local_38);
return uVar10 < param_3;
}
|
|
60,725
|
my_strnxfrm_8bit_nopad_bin
|
eloqsql/strings/ctype-bin.c
|
static size_t
my_strnxfrm_8bit_nopad_bin(CHARSET_INFO *cs,
uchar * dst, size_t dstlen, uint nweights,
const uchar *src, size_t srclen, uint flags)
{
set_if_smaller(srclen, dstlen);
set_if_smaller(srclen, nweights);
if (dst != src)
memcpy(dst, src, srclen);
return my_strxfrm_pad_desc_and_reverse_nopad(cs, dst, dst + srclen,
dst + dstlen,(uint)(nweights - srclen),
flags, 0);
}
|
O0
|
c
|
my_strnxfrm_8bit_nopad_bin:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x18(%rbp), %rax
jbe 0x6de94
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x6de96
jmp 0x6de98
movq -0x30(%rbp), %rax
movl -0x1c(%rbp), %ecx
cmpq %rcx, %rax
jbe 0x6deab
movl -0x1c(%rbp), %eax
movq %rax, -0x30(%rbp)
jmp 0x6dead
movq -0x10(%rbp), %rax
cmpq -0x28(%rbp), %rax
je 0x6dec8
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x26280
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x10(%rbp), %rdx
addq -0x30(%rbp), %rdx
movq -0x10(%rbp), %rcx
addq -0x18(%rbp), %rcx
movl -0x1c(%rbp), %eax
subq -0x30(%rbp), %rax
movl %eax, %r8d
movl 0x10(%rbp), %r9d
xorl %eax, %eax
movl $0x0, (%rsp)
callq 0x79b00
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_strnxfrm_8bit_nopad_bin:
push rbp
mov rbp, rsp
sub rsp, 40h
mov eax, [rbp+arg_0]
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_1C], ecx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov rax, [rbp+var_30]
cmp rax, [rbp+var_18]
jbe short loc_6DE94
mov rax, [rbp+var_18]
mov [rbp+var_30], rax
loc_6DE94:
jmp short $+2
loc_6DE96:
jmp short $+2
loc_6DE98:
mov rax, [rbp+var_30]
mov ecx, [rbp+var_1C]
cmp rax, rcx
jbe short loc_6DEAB
mov eax, [rbp+var_1C]
mov [rbp+var_30], rax
loc_6DEAB:
jmp short $+2
loc_6DEAD:
mov rax, [rbp+var_10]
cmp rax, [rbp+var_28]
jz short loc_6DEC8
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_30]
call _memcpy
loc_6DEC8:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_10]
add rdx, [rbp+var_30]
mov rcx, [rbp+var_10]
add rcx, [rbp+var_18]
mov eax, [rbp+var_1C]
sub rax, [rbp+var_30]
mov r8d, eax
mov r9d, [rbp+arg_0]
xor eax, eax
mov [rsp+40h+var_40], 0
call my_strxfrm_pad_desc_and_reverse_nopad
add rsp, 40h
pop rbp
retn
|
long long my_strnxfrm_8bit_nopad_bin(
int a1,
long long a2,
unsigned long long a3,
unsigned int a4,
long long a5,
unsigned long long a6,
int a7)
{
unsigned long long v8; // [rsp+10h] [rbp-30h]
int v10; // [rsp+28h] [rbp-18h]
v10 = a3;
v8 = a6;
if ( a6 > a3 )
v8 = a3;
if ( v8 > a4 )
v8 = a4;
if ( a2 != a5 )
memcpy(a2, a5, v8);
return my_strxfrm_pad_desc_and_reverse_nopad(a1, a2, (int)v8 + (int)a2, v10 + (int)a2, a4 - (unsigned int)v8, a7, 0);
}
|
my_strnxfrm_8bit_nopad_bin:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV EAX,dword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV dword ptr [RBP + -0x1c],ECX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x18]
JBE 0x0016de94
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
LAB_0016de94:
JMP 0x0016de96
LAB_0016de96:
JMP 0x0016de98
LAB_0016de98:
MOV RAX,qword ptr [RBP + -0x30]
MOV ECX,dword ptr [RBP + -0x1c]
CMP RAX,RCX
JBE 0x0016deab
MOV EAX,dword ptr [RBP + -0x1c]
MOV qword ptr [RBP + -0x30],RAX
LAB_0016deab:
JMP 0x0016dead
LAB_0016dead:
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x28]
JZ 0x0016dec8
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x30]
CALL 0x00126280
LAB_0016dec8:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x10]
ADD RDX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x10]
ADD RCX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RBP + -0x1c]
SUB RAX,qword ptr [RBP + -0x30]
MOV R8D,EAX
MOV R9D,dword ptr [RBP + 0x10]
XOR EAX,EAX
MOV dword ptr [RSP],0x0
CALL 0x00179b00
ADD RSP,0x40
POP RBP
RET
|
void my_strnxfrm_8bit_nopad_bin
(int8 param_1,void *param_2,ulong param_3,uint param_4,void *param_5,
ulong param_6,int4 param_7)
{
int8 local_38;
local_38 = param_6;
if (param_3 < param_6) {
local_38 = param_3;
}
if (param_4 < local_38) {
local_38 = (ulong)param_4;
}
if (param_2 != param_5) {
memcpy(param_2,param_5,local_38);
}
my_strxfrm_pad_desc_and_reverse_nopad
(param_1,param_2,(long)param_2 + local_38,(long)param_2 + param_3,
param_4 - (int)local_38,param_7,0);
return;
}
|
|
60,726
|
POINTonE2_Deserialize_Z
|
corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/e2.c
|
static BLST_ERROR POINTonE2_Deserialize_Z(POINTonE2_affine *out,
const unsigned char in[192])
{
unsigned char in0 = in[0];
if ((in0 & 0xe0) == 0)
return POINTonE2_Deserialize_BE(out, in);
if (in0 & 0x80) /* compressed bit */
return POINTonE2_Uncompress_Z(out, in);
if (in0 & 0x40) { /* infinity bit */
if (byte_is_zero(in0 & 0x3f) & bytes_are_zero(in+1, 191)) {
vec_zero(out, sizeof(*out));
return BLST_SUCCESS;
}
}
return BLST_BAD_ENCODING;
}
|
O0
|
c
|
POINTonE2_Deserialize_Z:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rax
movb (%rax), %al
movb %al, -0x19(%rbp)
movzbl -0x19(%rbp), %eax
andl $0xe0, %eax
cmpl $0x0, %eax
jne 0xac34c
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xbb9e0
movl %eax, -0x4(%rbp)
jmp 0xac3cd
movzbl -0x19(%rbp), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0xac36c
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xac1e0
movl %eax, -0x4(%rbp)
jmp 0xac3cd
movzbl -0x19(%rbp), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0xac3c6
movzbl -0x19(%rbp), %eax
andl $0x3f, %eax
movzbl %al, %edi
callq 0xb8370
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
addq $0x1, %rdi
movl $0xbf, %esi
callq 0xb5b50
movq %rax, %rcx
movq -0x28(%rbp), %rax
andq %rcx, %rax
cmpq $0x0, %rax
je 0xac3c4
movq -0x10(%rbp), %rdi
movl $0xc0, %esi
callq 0xa87c0
movl $0x0, -0x4(%rbp)
jmp 0xac3cd
jmp 0xac3c6
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
POINTonE2_Deserialize_Z:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_18]
mov al, [rax]
mov [rbp+var_19], al
movzx eax, [rbp+var_19]
and eax, 0E0h
cmp eax, 0
jnz short loc_AC34C
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call POINTonE2_Deserialize_BE
mov [rbp+var_4], eax
jmp loc_AC3CD
loc_AC34C:
movzx eax, [rbp+var_19]
and eax, 80h
cmp eax, 0
jz short loc_AC36C
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call POINTonE2_Uncompress_Z
mov [rbp+var_4], eax
jmp short loc_AC3CD
loc_AC36C:
movzx eax, [rbp+var_19]
and eax, 40h
cmp eax, 0
jz short loc_AC3C6
movzx eax, [rbp+var_19]
and eax, 3Fh
movzx edi, al
call _byte_is_zero
mov [rbp+var_28], rax
mov rdi, [rbp+var_18]
add rdi, 1
mov esi, 0BFh
call bytes_are_zero
mov rcx, rax
mov rax, [rbp+var_28]
and rax, rcx
cmp rax, 0
jz short loc_AC3C4
mov rdi, [rbp+var_10]
mov esi, 0C0h
call vec_zero
mov [rbp+var_4], 0
jmp short loc_AC3CD
loc_AC3C4:
jmp short $+2
loc_AC3C6:
mov [rbp+var_4], 1
loc_AC3CD:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
|
long long POINTonE2_Deserialize_Z(long long a1, char *a2)
{
long long is_zero; // [rsp+8h] [rbp-28h]
char v4; // [rsp+17h] [rbp-19h]
v4 = *a2;
if ( (*a2 & 0xE0) != 0 )
{
if ( v4 < 0 )
{
return (unsigned int)POINTonE2_Uncompress_Z(a1, a2);
}
else if ( (v4 & 0x40) != 0 && (is_zero = byte_is_zero(v4 & 0x3F), (bytes_are_zero(a2 + 1, 191LL) & is_zero) != 0) )
{
vec_zero(a1, 0xC0uLL);
return 0;
}
else
{
return 1;
}
}
else
{
return (unsigned int)POINTonE2_Deserialize_BE(a1, a2);
}
}
|
POINTonE2_Deserialize_Z:
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 + -0x18]
MOV AL,byte ptr [RAX]
MOV byte ptr [RBP + -0x19],AL
MOVZX EAX,byte ptr [RBP + -0x19]
AND EAX,0xe0
CMP EAX,0x0
JNZ 0x001ac34c
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x001bb9e0
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001ac3cd
LAB_001ac34c:
MOVZX EAX,byte ptr [RBP + -0x19]
AND EAX,0x80
CMP EAX,0x0
JZ 0x001ac36c
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x001ac1e0
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001ac3cd
LAB_001ac36c:
MOVZX EAX,byte ptr [RBP + -0x19]
AND EAX,0x40
CMP EAX,0x0
JZ 0x001ac3c6
MOVZX EAX,byte ptr [RBP + -0x19]
AND EAX,0x3f
MOVZX EDI,AL
CALL 0x001b8370
MOV qword ptr [RBP + -0x28],RAX
MOV RDI,qword ptr [RBP + -0x18]
ADD RDI,0x1
MOV ESI,0xbf
CALL 0x001b5b50
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x28]
AND RAX,RCX
CMP RAX,0x0
JZ 0x001ac3c4
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0xc0
CALL 0x001a87c0
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001ac3cd
LAB_001ac3c4:
JMP 0x001ac3c6
LAB_001ac3c6:
MOV dword ptr [RBP + -0x4],0x1
LAB_001ac3cd:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4 POINTonE2_Deserialize_Z(int8 param_1,byte *param_2)
{
byte bVar1;
ulong uVar2;
ulong uVar3;
int4 local_c;
bVar1 = *param_2;
if ((bVar1 & 0xe0) == 0) {
local_c = POINTonE2_Deserialize_BE(param_1,param_2);
}
else if ((bVar1 & 0x80) == 0) {
if ((bVar1 & 0x40) != 0) {
uVar2 = byte_is_zero(bVar1 & 0x3f);
uVar3 = bytes_are_zero(param_2 + 1,0xbf);
if ((uVar2 & uVar3) != 0) {
vec_zero(param_1,0xc0);
return 0;
}
}
local_c = 1;
}
else {
local_c = POINTonE2_Uncompress_Z(param_1,param_2);
}
return local_c;
}
|
|
60,727
|
google::protobuf::compiler::objectivec::ValidateObjCClassPrefixes(std::vector<google::protobuf::FileDescriptor const*, std::allocator<google::protobuf::FileDescriptor const*>> const&, google::protobuf::compiler::objectivec::Options const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc
|
bool ValidateObjCClassPrefixes(const std::vector<const FileDescriptor*>& files,
const Options& generation_options,
std::string* out_error) {
// Allow a '-' as the path for the expected prefixes to completely disable
// even the most basic of checks.
if (generation_options.expected_prefixes_path == "-") {
return true;
}
// Load the expected package prefixes, if available, to validate against.
std::map<std::string, std::string> expected_package_prefixes;
if (!LoadExpectedPackagePrefixes(generation_options.expected_prefixes_path,
&expected_package_prefixes,
out_error)) {
return false;
}
for (int i = 0; i < files.size(); i++) {
bool should_skip =
(std::find(generation_options.expected_prefixes_suppressions.begin(),
generation_options.expected_prefixes_suppressions.end(),
files[i]->name())
!= generation_options.expected_prefixes_suppressions.end());
if (should_skip) {
continue;
}
bool is_valid =
ValidateObjCClassPrefix(files[i],
generation_options.expected_prefixes_path,
expected_package_prefixes,
generation_options.prefixes_must_be_registered,
generation_options.require_prefixes,
out_error);
if (!is_valid) {
return false;
}
}
return true;
}
|
O0
|
cpp
|
google::protobuf::compiler::objectivec::ValidateObjCClassPrefixes(std::vector<google::protobuf::FileDescriptor const*, std::allocator<google::protobuf::FileDescriptor const*>> const&, google::protobuf::compiler::objectivec::Options const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*):
subq $0xb8, %rsp
movq %rdi, 0xa8(%rsp)
movq %rsi, 0xa0(%rsp)
movq %rdx, 0x98(%rsp)
movq 0xa0(%rsp), %rdi
leaq 0x3202ae(%rip), %rsi # 0x3a8a6c
callq 0x371b0
testb $0x1, %al
jne 0x887c9
jmp 0x887d6
movb $0x1, 0xb7(%rsp)
jmp 0x889ab
leaq 0x68(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x36920
movq 0x20(%rsp), %rsi
movq 0xa0(%rsp), %rdi
movq 0x98(%rsp), %rdx
callq 0x889d0
movb %al, 0x2e(%rsp)
jmp 0x88805
movb 0x2e(%rsp), %al
testb $0x1, %al
jne 0x88841
jmp 0x8880f
movb $0x0, 0xb7(%rsp)
movl $0x1, 0x58(%rsp)
jmp 0x889a1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x372e0
jmp 0x889bc
movl $0x0, 0x54(%rsp)
movslq 0x54(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0xa8(%rsp), %rdi
callq 0x28870
movq %rax, %rcx
movq 0x18(%rsp), %rax
cmpq %rcx, %rax
jae 0x88991
movq 0xa0(%rsp), %rdi
addq $0x20, %rdi
callq 0x43dd0
movq %rax, 0x40(%rsp)
movq 0xa0(%rsp), %rdi
addq $0x20, %rdi
callq 0x43e00
movq %rax, 0x38(%rsp)
movq 0xa8(%rsp), %rdi
movslq 0x54(%rsp), %rsi
callq 0x28890
movq (%rax), %rdi
callq 0x28990
movq %rax, 0x10(%rsp)
jmp 0x888be
movq 0x10(%rsp), %rdx
movq 0x40(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x8d880
movq %rax, 0x8(%rsp)
jmp 0x888d9
movq 0x8(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0xa0(%rsp), %rdi
addq $0x20, %rdi
callq 0x43e00
movq %rax, 0x30(%rsp)
leaq 0x48(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x6f510
andb $0x1, %al
movb %al, 0x53(%rsp)
testb $0x1, 0x53(%rsp)
je 0x88917
jmp 0x88981
movq 0xa8(%rsp), %rdi
movslq 0x54(%rsp), %rsi
callq 0x28890
movq (%rax), %rdi
movq 0xa0(%rsp), %rsi
movq 0x98(%rsp), %r9
movzbl 0x39(%rsi), %r8d
movzbl 0x38(%rsi), %ecx
andl $0x1, %ecx
andl $0x1, %r8d
leaq 0x68(%rsp), %rdx
callq 0x88b00
movb %al, 0x7(%rsp)
jmp 0x8895c
movb 0x7(%rsp), %al
andb $0x1, %al
movb %al, 0x2f(%rsp)
testb $0x1, 0x2f(%rsp)
jne 0x8897f
movb $0x0, 0xb7(%rsp)
movl $0x1, 0x58(%rsp)
jmp 0x889a1
jmp 0x88981
movl 0x54(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x54(%rsp)
jmp 0x88849
movb $0x1, 0xb7(%rsp)
movl $0x1, 0x58(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x372e0
movb 0xb7(%rsp), %al
andb $0x1, %al
addq $0xb8, %rsp
retq
movq 0x60(%rsp), %rdi
callq 0x21700
nopw %cs:(%rax,%rax)
|
_ZN6google8protobuf8compiler10objectivec25ValidateObjCClassPrefixesERKSt6vectorIPKNS0_14FileDescriptorESaIS6_EERKNS2_7OptionsEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
sub rsp, 0B8h
mov [rsp+0B8h+var_10], rdi
mov [rsp+0B8h+var_18], rsi
mov [rsp+0B8h+var_20], rdx
mov rdi, [rsp+0B8h+var_18]
lea rsi, asc_3A8A6B+1; "-"
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, 1
jnz short loc_887C9
jmp short loc_887D6
loc_887C9:
mov [rsp+0B8h+var_1], 1
jmp loc_889AB
loc_887D6:
lea rdi, [rsp+0B8h+var_50]
mov [rsp+0B8h+var_98], rdi
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEC2Ev; std::map<std::string,std::string>::map(void)
mov rsi, [rsp+0B8h+var_98]
mov rdi, [rsp+0B8h+var_18]
mov rdx, [rsp+0B8h+var_20]
call _ZN6google8protobuf8compiler10objectivec12_GLOBAL__N_127LoadExpectedPackagePrefixesERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPSt3mapIS9_S9_St4lessIS9_ESaISt4pairISA_S9_EEEPS9_; google::protobuf::compiler::objectivec::`anonymous namespace'::LoadExpectedPackagePrefixes(std::string const&,std::map<std::string,std::string> *,std::string*)
mov [rsp+0B8h+var_8A], al
jmp short $+2
loc_88805:
mov al, [rsp+0B8h+var_8A]
test al, 1
jnz short loc_88841
jmp short $+2
loc_8880F:
mov [rsp+0B8h+var_1], 0
mov [rsp+0B8h+var_60], 1
jmp loc_889A1
mov rcx, rax
mov eax, edx
mov [rsp+arg_58], rcx
mov [rsp+arg_54], eax
lea rdi, [rsp+arg_60]
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEED2Ev; std::map<std::string,std::string>::~map()
jmp loc_889BC
loc_88841:
mov [rsp+0B8h+var_64], 0
loc_88849:
movsxd rax, [rsp+0B8h+var_64]
mov [rsp+0B8h+var_A0], rax
mov rdi, [rsp+0B8h+var_10]
call _ZNKSt6vectorIPKN6google8protobuf14FileDescriptorESaIS4_EE4sizeEv; std::vector<google::protobuf::FileDescriptor const*>::size(void)
mov rcx, rax
mov rax, [rsp+0B8h+var_A0]
cmp rax, rcx
jnb loc_88991
mov rdi, [rsp+0B8h+var_18]
add rdi, 20h ; ' '
call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5beginEv; std::vector<std::string>::begin(void)
mov [rsp+0B8h+var_78], rax
mov rdi, [rsp+0B8h+var_18]
add rdi, 20h ; ' '
call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv; std::vector<std::string>::end(void)
mov [rsp+0B8h+var_80], rax
mov rdi, [rsp+0B8h+var_10]
movsxd rsi, [rsp+0B8h+var_64]
call _ZNKSt6vectorIPKN6google8protobuf14FileDescriptorESaIS4_EEixEm; std::vector<google::protobuf::FileDescriptor const*>::operator[](ulong)
mov rdi, [rax]
call _ZNK6google8protobuf14FileDescriptor4nameB5cxx11Ev; google::protobuf::FileDescriptor::name(void)
mov [rsp+0B8h+var_A8], rax
jmp short $+2
loc_888BE:
mov rdx, [rsp+0B8h+var_A8]
mov rdi, [rsp+0B8h+var_78]
mov rsi, [rsp+0B8h+var_80]
call _ZSt4findIN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEES7_ET_SE_SE_RKT0_; std::find<__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>,std::string>(__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>,__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>,std::string const&)
mov [rsp+0B8h+var_B0], rax
jmp short $+2
loc_888D9:
mov rax, [rsp+0B8h+var_B0]
mov [rsp+0B8h+var_70], rax
mov rdi, [rsp+0B8h+var_18]
add rdi, 20h ; ' '
call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv; std::vector<std::string>::end(void)
mov [rsp+0B8h+var_88], rax
lea rdi, [rsp+0B8h+var_70]
lea rsi, [rsp+0B8h+var_88]
call _ZN9__gnu_cxxneIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_; __gnu_cxx::operator!=<std::string const*,std::vector<std::string>>(__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>> const&,__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>> const&)
and al, 1
mov [rsp+0B8h+var_65], al
test [rsp+0B8h+var_65], 1
jz short loc_88917
jmp short loc_88981
loc_88917:
mov rdi, [rsp+0B8h+var_10]
movsxd rsi, [rsp+0B8h+var_64]
call _ZNKSt6vectorIPKN6google8protobuf14FileDescriptorESaIS4_EEixEm; std::vector<google::protobuf::FileDescriptor const*>::operator[](ulong)
mov rdi, [rax]
mov rsi, [rsp+0B8h+var_18]
mov r9, [rsp+0B8h+var_20]
movzx r8d, byte ptr [rsi+39h]
movzx ecx, byte ptr [rsi+38h]
and ecx, 1
and r8d, 1
lea rdx, [rsp+0B8h+var_50]
call _ZN6google8protobuf8compiler10objectivec12_GLOBAL__N_123ValidateObjCClassPrefixEPKNS0_14FileDescriptorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt3mapISC_SC_St4lessISC_ESaISt4pairISD_SC_EEEbbPSC_; google::protobuf::compiler::objectivec::`anonymous namespace'::ValidateObjCClassPrefix(google::protobuf::FileDescriptor const*,std::string const&,std::map<std::string,std::string> const&,bool,bool,std::string*)
mov [rsp+0B8h+var_B1], al
jmp short $+2
loc_8895C:
mov al, [rsp+0B8h+var_B1]
and al, 1
mov [rsp+0B8h+var_89], al
test [rsp+0B8h+var_89], 1
jnz short loc_8897F
mov [rsp+0B8h+var_1], 0
mov [rsp+0B8h+var_60], 1
jmp short loc_889A1
loc_8897F:
jmp short $+2
loc_88981:
mov eax, [rsp+0B8h+var_64]
add eax, 1
mov [rsp+0B8h+var_64], eax
jmp loc_88849
loc_88991:
mov [rsp+0B8h+var_1], 1
mov [rsp+0B8h+var_60], 1
loc_889A1:
lea rdi, [rsp+0B8h+var_50]
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEED2Ev; std::map<std::string,std::string>::~map()
loc_889AB:
mov al, [rsp+0B8h+var_1]
and al, 1
add rsp, 0B8h
retn
loc_889BC:
mov rdi, [rsp+arg_58]
call __Unwind_Resume
|
char google::protobuf::compiler::objectivec::ValidateObjCClassPrefixes(_QWORD *a1, long long a2, long long a3)
{
int v3; // ecx
int v4; // r8d
int v5; // r9d
long long *v6; // rax
_QWORD *v7; // rax
long long v9; // [rsp+10h] [rbp-A8h]
unsigned long long v10; // [rsp+18h] [rbp-A0h]
long long v11; // [rsp+30h] [rbp-88h] BYREF
long long v12; // [rsp+38h] [rbp-80h]
long long v13; // [rsp+40h] [rbp-78h]
long long v14; // [rsp+48h] [rbp-70h] BYREF
int i; // [rsp+54h] [rbp-64h]
int v17; // [rsp+58h] [rbp-60h]
_BYTE v18[48]; // [rsp+68h] [rbp-50h] BYREF
long long v19; // [rsp+98h] [rbp-20h]
long long v20; // [rsp+A0h] [rbp-18h]
_QWORD *v21; // [rsp+A8h] [rbp-10h]
char v22; // [rsp+B7h] [rbp-1h]
v21 = a1;
v20 = a2;
v19 = a3;
if ( std::operator==<char>(a2, (long long)"-") )
{
v22 = 1;
}
else
{
std::map<std::string,std::string>::map((long long)v18);
if ( (google::protobuf::compiler::objectivec::`anonymous namespace'::LoadExpectedPackagePrefixes(
v20,
(unsigned int)v18,
v19,
v3,
v4,
v5) & 1) != 0 )
{
for ( i = 0; ; ++i )
{
v10 = i;
if ( v10 >= std::vector<google::protobuf::FileDescriptor const*>::size(v21) )
break;
v13 = std::vector<std::string>::begin(v20 + 32);
v12 = std::vector<std::string>::end(v20 + 32);
v6 = (long long *)std::vector<google::protobuf::FileDescriptor const*>::operator[](v21, i);
v9 = google::protobuf::FileDescriptor::name[abi:cxx11](*v6);
v14 = std::find<__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>,std::string>(
v13,
v12,
v9);
v11 = std::vector<std::string>::end(v20 + 32);
if ( !__gnu_cxx::operator!=<std::string const*,std::vector<std::string>>((long long)&v14, (long long)&v11) )
{
v7 = (_QWORD *)std::vector<google::protobuf::FileDescriptor const*>::operator[](v21, i);
if ( (google::protobuf::compiler::objectivec::`anonymous namespace'::ValidateObjCClassPrefix(
*v7,
v20,
v18,
*(_BYTE *)(v20 + 56) & 1,
*(_BYTE *)(v20 + 57) & 1,
v19) & 1) == 0 )
{
v22 = 0;
v17 = 1;
goto LABEL_12;
}
}
}
v22 = 1;
v17 = 1;
}
else
{
v22 = 0;
v17 = 1;
}
LABEL_12:
std::map<std::string,std::string>::~map((long long)v18);
}
return v22 & 1;
}
|
ValidateObjCClassPrefixes:
SUB RSP,0xb8
MOV qword ptr [RSP + 0xa8],RDI
MOV qword ptr [RSP + 0xa0],RSI
MOV qword ptr [RSP + 0x98],RDX
MOV RDI,qword ptr [RSP + 0xa0]
LEA RSI,[0x4a8a6c]
CALL 0x001371b0
TEST AL,0x1
JNZ 0x001887c9
JMP 0x001887d6
LAB_001887c9:
MOV byte ptr [RSP + 0xb7],0x1
JMP 0x001889ab
LAB_001887d6:
LEA RDI,[RSP + 0x68]
MOV qword ptr [RSP + 0x20],RDI
CALL 0x00136920
MOV RSI,qword ptr [RSP + 0x20]
MOV RDI,qword ptr [RSP + 0xa0]
MOV RDX,qword ptr [RSP + 0x98]
LAB_001887fa:
CALL 0x001889d0
MOV byte ptr [RSP + 0x2e],AL
JMP 0x00188805
LAB_00188805:
MOV AL,byte ptr [RSP + 0x2e]
TEST AL,0x1
JNZ 0x00188841
JMP 0x0018880f
LAB_0018880f:
MOV byte ptr [RSP + 0xb7],0x0
MOV dword ptr [RSP + 0x58],0x1
JMP 0x001889a1
LAB_00188841:
MOV dword ptr [RSP + 0x54],0x0
LAB_00188849:
MOVSXD RAX,dword ptr [RSP + 0x54]
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,qword ptr [RSP + 0xa8]
CALL 0x00128870
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x18]
CMP RAX,RCX
JNC 0x00188991
MOV RDI,qword ptr [RSP + 0xa0]
ADD RDI,0x20
CALL 0x00143dd0
MOV qword ptr [RSP + 0x40],RAX
MOV RDI,qword ptr [RSP + 0xa0]
ADD RDI,0x20
CALL 0x00143e00
MOV qword ptr [RSP + 0x38],RAX
MOV RDI,qword ptr [RSP + 0xa8]
MOVSXD RSI,dword ptr [RSP + 0x54]
CALL 0x00128890
MOV RDI,qword ptr [RAX]
CALL 0x00128990
MOV qword ptr [RSP + 0x10],RAX
JMP 0x001888be
LAB_001888be:
MOV RDX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RSP + 0x40]
MOV RSI,qword ptr [RSP + 0x38]
CALL 0x0018d880
MOV qword ptr [RSP + 0x8],RAX
JMP 0x001888d9
LAB_001888d9:
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x48],RAX
MOV RDI,qword ptr [RSP + 0xa0]
ADD RDI,0x20
CALL 0x00143e00
MOV qword ptr [RSP + 0x30],RAX
LEA RDI,[RSP + 0x48]
LEA RSI,[RSP + 0x30]
CALL 0x0016f510
AND AL,0x1
MOV byte ptr [RSP + 0x53],AL
TEST byte ptr [RSP + 0x53],0x1
JZ 0x00188917
JMP 0x00188981
LAB_00188917:
MOV RDI,qword ptr [RSP + 0xa8]
MOVSXD RSI,dword ptr [RSP + 0x54]
CALL 0x00128890
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RSP + 0xa0]
MOV R9,qword ptr [RSP + 0x98]
MOVZX R8D,byte ptr [RSI + 0x39]
MOVZX ECX,byte ptr [RSI + 0x38]
AND ECX,0x1
AND R8D,0x1
LEA RDX,[RSP + 0x68]
CALL 0x00188b00
LAB_00188956:
MOV byte ptr [RSP + 0x7],AL
JMP 0x0018895c
LAB_0018895c:
MOV AL,byte ptr [RSP + 0x7]
AND AL,0x1
MOV byte ptr [RSP + 0x2f],AL
TEST byte ptr [RSP + 0x2f],0x1
JNZ 0x0018897f
MOV byte ptr [RSP + 0xb7],0x0
MOV dword ptr [RSP + 0x58],0x1
JMP 0x001889a1
LAB_0018897f:
JMP 0x00188981
LAB_00188981:
MOV EAX,dword ptr [RSP + 0x54]
ADD EAX,0x1
MOV dword ptr [RSP + 0x54],EAX
JMP 0x00188849
LAB_00188991:
MOV byte ptr [RSP + 0xb7],0x1
MOV dword ptr [RSP + 0x58],0x1
LAB_001889a1:
LEA RDI,[RSP + 0x68]
CALL 0x001372e0
LAB_001889ab:
MOV AL,byte ptr [RSP + 0xb7]
AND AL,0x1
ADD RSP,0xb8
RET
|
/* google::protobuf::compiler::objectivec::ValidateObjCClassPrefixes(std::vector<google::protobuf::FileDescriptor
const*, std::allocator<google::protobuf::FileDescriptor const*> > const&,
google::protobuf::compiler::objectivec::Options const&, std::__cxx11::string*) */
ulong google::protobuf::compiler::objectivec::ValidateObjCClassPrefixes
(vector *param_1,Options *param_2,string *param_3)
{
bool bVar1;
byte bVar2;
int7 extraout_var;
ulong uVar3;
ulong uVar4;
int8 *puVar5;
int8 uVar6;
int7 extraout_var_00;
int7 uVar7;
int8 local_88;
int8 local_80;
int8 local_78;
int8 local_70;
int1 local_65;
int local_64;
int4 local_60;
map<std::__cxx11::string,std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
local_50 [48];
string *local_20;
Options *local_18;
vector *local_10;
int1 local_1;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
bVar1 = std::operator==((string *)param_2,"-");
if (bVar1) {
local_1 = 1;
uVar7 = extraout_var;
}
else {
std::
map<std::__cxx11::string,std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::map(local_50);
/* try { // try from 001887fa to 00188955 has its CatchHandler @ 00188824 */
bVar2 = (anonymous_namespace)::LoadExpectedPackagePrefixes
((string *)local_18,(map *)local_50,local_20);
if ((bVar2 & 1) == 0) {
local_1 = 0;
}
else {
for (local_64 = 0; uVar3 = (ulong)local_64,
uVar4 = std::
vector<google::protobuf::FileDescriptor_const*,std::allocator<google::protobuf::FileDescriptor_const*>>
::size((vector<google::protobuf::FileDescriptor_const*,std::allocator<google::protobuf::FileDescriptor_const*>>
*)local_10), uVar3 < uVar4; local_64 = local_64 + 1) {
local_78 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::begin
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)
(local_18 + 0x20));
local_80 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::end
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)
(local_18 + 0x20));
puVar5 = (int8 *)
std::
vector<google::protobuf::FileDescriptor_const*,std::allocator<google::protobuf::FileDescriptor_const*>>
::operator[]((vector<google::protobuf::FileDescriptor_const*,std::allocator<google::protobuf::FileDescriptor_const*>>
*)local_10,(long)local_64);
uVar6 = FileDescriptor::name_abi_cxx11_((FileDescriptor *)*puVar5);
local_70 = std::
find<__gnu_cxx::__normal_iterator<std::__cxx11::string_const*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>,std::__cxx11::string>
(local_78,local_80,uVar6);
local_88 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::end
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)
(local_18 + 0x20));
local_65 = __gnu_cxx::operator!=
((__normal_iterator *)&local_70,(__normal_iterator *)&local_88);
if (!(bool)local_65) {
puVar5 = (int8 *)
std::
vector<google::protobuf::FileDescriptor_const*,std::allocator<google::protobuf::FileDescriptor_const*>>
::operator[]((vector<google::protobuf::FileDescriptor_const*,std::allocator<google::protobuf::FileDescriptor_const*>>
*)local_10,(long)local_64);
bVar2 = (anonymous_namespace)::ValidateObjCClassPrefix
((FileDescriptor *)*puVar5,(string *)local_18,(map *)local_50,
(bool)((byte)*(string *)(local_18 + 0x38) & 1),
(bool)((byte)*(string *)(local_18 + 0x39) & 1),local_20);
if ((bVar2 & 1) == 0) {
local_1 = 0;
goto LAB_001889a1;
}
}
}
local_1 = 1;
}
LAB_001889a1:
local_60 = 1;
std::
map<std::__cxx11::string,std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::~map(local_50);
uVar7 = extraout_var_00;
}
return CONCAT71(uVar7,local_1) & 0xffffffffffffff01;
}
|
|
60,728
|
minja::ForNode::ForNode(minja::Location const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::TemplateNode>&&, bool, std::shared_ptr<minja::TemplateNode>&&)
|
llama.cpp/common/minja/minja.hpp
|
ForNode(const Location & loc, std::vector<std::string> && var_names, std::shared_ptr<Expression> && iterable,
std::shared_ptr<Expression> && condition, std::shared_ptr<TemplateNode> && body, bool recursive, std::shared_ptr<TemplateNode> && else_body)
: TemplateNode(loc), var_names(var_names), iterable(std::move(iterable)), condition(std::move(condition)), body(std::move(body)), recursive(recursive), else_body(std::move(else_body)) {}
|
O3
|
cpp
|
minja::ForNode::ForNode(minja::Location const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::TemplateNode>&&, bool, std::shared_ptr<minja::TemplateNode>&&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r14
movq %r8, %r15
movq %rcx, %r12
movq %rdi, %rbx
leaq 0x73798(%rip), %rbp # 0x171510
addq $0x10, %rbp
movq %rbp, (%rdi)
movq (%rsi), %rax
movq %rax, 0x8(%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x10(%rdi)
testq %rax, %rax
je 0xfdda8
movq 0x741fe(%rip), %rcx # 0x171f98
cmpb $0x0, (%rcx)
je 0xfdda4
incl 0x8(%rax)
jmp 0xfdda8
lock
incl 0x8(%rax)
leaq 0x10(%rbx), %r13
movq 0x10(%rsi), %rax
movq %rax, 0x18(%rbx)
leaq 0x737cd(%rip), %rax # 0x171588
addq $0x10, %rax
movq %rax, (%rbx)
leaq 0x20(%rbx), %rdi
movq %rdx, %rsi
callq 0x729ee
movq 0x48(%rsp), %rax
movb 0x40(%rsp), %cl
xorl %edx, %edx
movq %rdx, 0x40(%rbx)
movups (%r12), %xmm0
movq %rdx, 0x8(%r12)
movups %xmm0, 0x38(%rbx)
movq %rdx, (%r12)
movq %rdx, 0x50(%rbx)
movups (%r15), %xmm0
movq %rdx, 0x8(%r15)
movups %xmm0, 0x48(%rbx)
movq %rdx, (%r15)
movq %rdx, 0x60(%rbx)
movups (%r14), %xmm0
movq %rdx, 0x8(%r14)
movups %xmm0, 0x58(%rbx)
movq %rdx, (%r14)
movb %cl, 0x68(%rbx)
movq %rdx, 0x78(%rbx)
movups (%rax), %xmm0
movq %rdx, 0x8(%rax)
movups %xmm0, 0x70(%rbx)
movq %rdx, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbp, (%rbx)
movq %r13, %rdi
callq 0x7e132
movq %r14, %rdi
callq 0x21b70
nop
|
_ZN5minja7ForNodeC2ERKNS_8LocationEOSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISA_EEOSt10shared_ptrINS_10ExpressionEESH_OSE_INS_12TemplateNodeEEbSK_:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, r9
mov r15, r8
mov r12, rcx
mov rbx, rdi
lea rbp, _ZTVN5minja12TemplateNodeE; `vtable for'minja::TemplateNode
add rbp, 10h
mov [rdi], rbp
mov rax, [rsi]
mov [rdi+8], rax
mov rax, [rsi+8]
mov [rdi+10h], rax
test rax, rax
jz short loc_FDDA8
mov rcx, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag
cmp byte ptr [rcx], 0
jz short loc_FDDA4
inc dword ptr [rax+8]
jmp short loc_FDDA8
loc_FDDA4:
lock inc dword ptr [rax+8]
loc_FDDA8:
lea r13, [rbx+10h]
mov rax, [rsi+10h]
mov [rbx+18h], rax
lea rax, _ZTVN5minja7ForNodeE; `vtable for'minja::ForNode
add rax, 10h
mov [rbx], rax
lea rdi, [rbx+20h]
mov rsi, rdx
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&)
mov rax, [rsp+38h+arg_8]
mov cl, [rsp+38h+arg_0]
xor edx, edx
mov [rbx+40h], rdx
movups xmm0, xmmword ptr [r12]
mov [r12+8], rdx
movups xmmword ptr [rbx+38h], xmm0
mov [r12], rdx
mov [rbx+50h], rdx
movups xmm0, xmmword ptr [r15]
mov [r15+8], rdx
movups xmmword ptr [rbx+48h], xmm0
mov [r15], rdx
mov [rbx+60h], rdx
movups xmm0, xmmword ptr [r14]
mov [r14+8], rdx
movups xmmword ptr [rbx+58h], xmm0
mov [r14], rdx
mov [rbx+68h], cl
mov [rbx+78h], rdx
movups xmm0, xmmword ptr [rax]
mov [rax+8], rdx
movups xmmword ptr [rbx+70h], xmm0
mov [rax], rdx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
mov [rbx], rbp
mov rdi, r13
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, r14
call __Unwind_Resume
|
long long minja::ForNode::ForNode(
long long a1,
_QWORD *a2,
_QWORD *a3,
__int128 *a4,
__int128 *a5,
__int128 *a6,
char a7,
__int128 *a8)
{
long long v11; // rax
long long result; // rax
__int128 v13; // xmm0
__int128 v14; // xmm0
__int128 v15; // xmm0
__int128 v16; // xmm0
*(_QWORD *)a1 = &`vtable for'minja::TemplateNode + 2;
*(_QWORD *)(a1 + 8) = *a2;
v11 = a2[1];
*(_QWORD *)(a1 + 16) = v11;
if ( v11 )
{
if ( _libc_single_threaded )
++*(_DWORD *)(v11 + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(v11 + 8));
}
*(_QWORD *)(a1 + 24) = a2[2];
*(_QWORD *)a1 = &`vtable for'minja::ForNode + 2;
std::vector<std::string>::vector(a1 + 32, a3);
result = (long long)a8;
*(_QWORD *)(a1 + 64) = 0LL;
v13 = *a4;
*((_QWORD *)a4 + 1) = 0LL;
*(_OWORD *)(a1 + 56) = v13;
*(_QWORD *)a4 = 0LL;
*(_QWORD *)(a1 + 80) = 0LL;
v14 = *a5;
*((_QWORD *)a5 + 1) = 0LL;
*(_OWORD *)(a1 + 72) = v14;
*(_QWORD *)a5 = 0LL;
*(_QWORD *)(a1 + 96) = 0LL;
v15 = *a6;
*((_QWORD *)a6 + 1) = 0LL;
*(_OWORD *)(a1 + 88) = v15;
*(_QWORD *)a6 = 0LL;
*(_BYTE *)(a1 + 104) = a7;
*(_QWORD *)(a1 + 120) = 0LL;
v16 = *a8;
*((_QWORD *)a8 + 1) = 0LL;
*(_OWORD *)(a1 + 112) = v16;
*(_QWORD *)a8 = 0LL;
return result;
}
|
ForNode:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,R9
MOV R15,R8
MOV R12,RCX
MOV RBX,RDI
LEA RBP,[0x271510]
ADD RBP,0x10
MOV qword ptr [RDI],RBP
MOV RAX,qword ptr [RSI]
MOV qword ptr [RDI + 0x8],RAX
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RDI + 0x10],RAX
TEST RAX,RAX
JZ 0x001fdda8
MOV RCX,qword ptr [0x00271f98]
CMP byte ptr [RCX],0x0
JZ 0x001fdda4
INC dword ptr [RAX + 0x8]
JMP 0x001fdda8
LAB_001fdda4:
INC.LOCK dword ptr [RAX + 0x8]
LAB_001fdda8:
LEA R13,[RBX + 0x10]
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RBX + 0x18],RAX
LEA RAX,[0x271588]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
LEA RDI,[RBX + 0x20]
LAB_001fddc6:
MOV RSI,RDX
CALL 0x001729ee
LAB_001fddce:
MOV RAX,qword ptr [RSP + 0x48]
MOV CL,byte ptr [RSP + 0x40]
XOR EDX,EDX
MOV qword ptr [RBX + 0x40],RDX
MOVUPS XMM0,xmmword ptr [R12]
MOV qword ptr [R12 + 0x8],RDX
MOVUPS xmmword ptr [RBX + 0x38],XMM0
MOV qword ptr [R12],RDX
MOV qword ptr [RBX + 0x50],RDX
MOVUPS XMM0,xmmword ptr [R15]
MOV qword ptr [R15 + 0x8],RDX
MOVUPS xmmword ptr [RBX + 0x48],XMM0
MOV qword ptr [R15],RDX
MOV qword ptr [RBX + 0x60],RDX
MOVUPS XMM0,xmmword ptr [R14]
MOV qword ptr [R14 + 0x8],RDX
MOVUPS xmmword ptr [RBX + 0x58],XMM0
MOV qword ptr [R14],RDX
MOV byte ptr [RBX + 0x68],CL
MOV qword ptr [RBX + 0x78],RDX
MOVUPS XMM0,xmmword ptr [RAX]
MOV qword ptr [RAX + 0x8],RDX
MOVUPS xmmword ptr [RBX + 0x70],XMM0
MOV qword ptr [RAX],RDX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* minja::ForNode::ForNode(minja::Location const&, std::vector<std::__cxx11::string,
std::allocator<std::__cxx11::string > >&&, std::shared_ptr<minja::Expression>&&,
std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::TemplateNode>&&, bool,
std::shared_ptr<minja::TemplateNode>&&) */
void __thiscall
minja::ForNode::ForNode
(ForNode *this,Location *param_1,vector *param_2,shared_ptr *param_3,shared_ptr *param_4,
shared_ptr *param_5,bool param_6,shared_ptr *param_7)
{
long lVar1;
int8 uVar2;
*(int ***)this = &PTR___cxa_pure_virtual_00271520;
*(int8 *)(this + 8) = *(int8 *)param_1;
lVar1 = *(long *)(param_1 + 8);
*(long *)(this + 0x10) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_00271f98 == '\0') {
LOCK();
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
}
}
*(int8 *)(this + 0x18) = *(int8 *)(param_1 + 0x10);
*(int ***)this = &PTR_do_render_00271598;
/* try { // try from 001fddc6 to 001fddcd has its CatchHandler @ 001fde39 */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x20),
param_2);
*(int8 *)(this + 0x40) = 0;
uVar2 = *(int8 *)(param_3 + 8);
*(int8 *)(param_3 + 8) = 0;
*(int8 *)(this + 0x38) = *(int8 *)param_3;
*(int8 *)(this + 0x40) = uVar2;
*(int8 *)param_3 = 0;
*(int8 *)(this + 0x50) = 0;
uVar2 = *(int8 *)(param_4 + 8);
*(int8 *)(param_4 + 8) = 0;
*(int8 *)(this + 0x48) = *(int8 *)param_4;
*(int8 *)(this + 0x50) = uVar2;
*(int8 *)param_4 = 0;
*(int8 *)(this + 0x60) = 0;
uVar2 = *(int8 *)(param_5 + 8);
*(int8 *)(param_5 + 8) = 0;
*(int8 *)(this + 0x58) = *(int8 *)param_5;
*(int8 *)(this + 0x60) = uVar2;
*(int8 *)param_5 = 0;
this[0x68] = (ForNode)param_6;
*(int8 *)(this + 0x78) = 0;
uVar2 = *(int8 *)(param_7 + 8);
*(int8 *)(param_7 + 8) = 0;
*(int8 *)(this + 0x70) = *(int8 *)param_7;
*(int8 *)(this + 0x78) = uVar2;
*(int8 *)param_7 = 0;
return;
}
|
|
60,729
|
Dimension::get_voxel(glm::vec<3, long, (glm::qualifier)0> const&) const
|
untodesu[P]voxelius/game/shared/dimension.cc
|
voxel_id Dimension::get_voxel(const voxel_pos &vpos) const
{
auto cpos = coord::to_chunk(vpos);
auto lpos = coord::to_local(vpos);
if(auto chunk = find_chunk(cpos))
return chunk->get_voxel(lpos);
return NULL_VOXEL_ID;
}
|
O3
|
cpp
|
Dimension::get_voxel(glm::vec<3, long, (glm::qualifier)0> const&) const:
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movq (%rsi), %rax
movq 0x8(%rsi), %rcx
movq %rax, %rdi
shrq $0x4, %rdi
movq 0x10(%rsi), %rdx
movq %rdx, %r8
shrq $0x4, %r8
movq %rcx, %rsi
andq $-0x10, %rsi
shlq $0x1c, %rsi
movl %edi, %edi
orq %rsi, %rdi
leaq 0x10(%rsp), %rsi
movq %rdi, (%rsi)
movl %r8d, 0x8(%rsi)
andl $0xf, %edx
movw %dx, 0xc(%rsp)
shlq $0x20, %rdx
andl $0xf, %ecx
shlq $0x10, %rcx
orq %rdx, %rcx
andl $0xf, %eax
orq %rcx, %rax
movl %eax, 0x8(%rsp)
leaq 0x2c8(%rbx), %rdi
callq 0x766b0
cmpl 0x2e8(%rbx), %eax
je 0x7578e
cltq
movq 0x2d0(%rbx), %rcx
leaq (%rax,%rax,2), %rax
movq 0x10(%rcx,%rax,8), %rdi
testq %rdi, %rdi
je 0x7578e
leaq 0x8(%rsp), %rsi
callq 0x72f02
jmp 0x75790
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
retq
|
_ZNK9Dimension9get_voxelERKN3glm3vecILi3ElLNS0_9qualifierE0EEE:
push rbx
sub rsp, 20h
mov rbx, rdi
mov rax, [rsi]
mov rcx, [rsi+8]
mov rdi, rax
shr rdi, 4
mov rdx, [rsi+10h]
mov r8, rdx
shr r8, 4
mov rsi, rcx
and rsi, 0FFFFFFFFFFFFFFF0h
shl rsi, 1Ch
mov edi, edi
or rdi, rsi
lea rsi, [rsp+28h+var_18]
mov [rsi], rdi
mov [rsi+8], r8d
and edx, 0Fh
mov [rsp+28h+var_1C], dx
shl rdx, 20h
and ecx, 0Fh
shl rcx, 10h
or rcx, rdx
and eax, 0Fh
or rax, rcx
mov [rsp+28h+var_20], eax
lea rdi, [rbx+2C8h]
call _ZNK7emhash87HashMapIN3glm3vecILi3EiLNS1_9qualifierE0EEEP5ChunkSt4hashIS4_ESt8equal_toIS4_EE16find_filled_slotIS4_EEjRKT_; emhash8::HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk *,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>::find_filled_slot<glm::vec<3,int,(glm::qualifier)0>>(glm::vec<3,int,(glm::qualifier)0> const&)
cmp eax, [rbx+2E8h]
jz short loc_7578E
cdqe
mov rcx, [rbx+2D0h]
lea rax, [rax+rax*2]
mov rdi, [rcx+rax*8+10h]
test rdi, rdi
jz short loc_7578E
lea rsi, [rsp+28h+var_20]
call _ZNK5Chunk9get_voxelERKN3glm3vecILi3EsLNS0_9qualifierE0EEE; Chunk::get_voxel(glm::vec<3,short,(glm::qualifier)0> const&)
jmp short loc_75790
loc_7578E:
xor eax, eax
loc_75790:
add rsp, 20h
pop rbx
retn
|
long long Dimension::get_voxel(long long a1, long long *a2)
{
long long v2; // rax
long long v3; // rcx
unsigned long long v4; // rdx
int v5; // eax
long long v6; // rdi
int v8; // [rsp+8h] [rbp-20h] BYREF
__int16 v9; // [rsp+Ch] [rbp-1Ch]
unsigned long long v10; // [rsp+10h] [rbp-18h]
int v11; // [rsp+18h] [rbp-10h]
v2 = *a2;
v3 = a2[1];
v4 = a2[2];
v10 = ((v3 & 0xFFFFFFFFFFFFFFF0LL) << 28) | (unsigned int)((unsigned long long)*a2 >> 4);
v11 = v4 >> 4;
v9 = v4 & 0xF;
v8 = ((v3 & 0xF) << 16) | v2 & 0xF;
v5 = emhash8::HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk *,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>::find_filled_slot<glm::vec<3,int,(glm::qualifier)0>>(a1 + 712);
if ( v5 == *(_DWORD *)(a1 + 744) )
return 0LL;
v6 = *(_QWORD *)(*(_QWORD *)(a1 + 720) + 24LL * v5 + 16);
if ( !v6 )
return 0LL;
else
return Chunk::get_voxel(v6, (__int16 *)&v8);
}
|
get_voxel:
PUSH RBX
SUB RSP,0x20
MOV RBX,RDI
MOV RAX,qword ptr [RSI]
MOV RCX,qword ptr [RSI + 0x8]
MOV RDI,RAX
SHR RDI,0x4
MOV RDX,qword ptr [RSI + 0x10]
MOV R8,RDX
SHR R8,0x4
MOV RSI,RCX
AND RSI,-0x10
SHL RSI,0x1c
MOV EDI,EDI
OR RDI,RSI
LEA RSI,[RSP + 0x10]
MOV qword ptr [RSI],RDI
MOV dword ptr [RSI + 0x8],R8D
AND EDX,0xf
MOV word ptr [RSP + 0xc],DX
SHL RDX,0x20
AND ECX,0xf
SHL RCX,0x10
OR RCX,RDX
AND EAX,0xf
OR RAX,RCX
MOV dword ptr [RSP + 0x8],EAX
LEA RDI,[RBX + 0x2c8]
CALL 0x001766b0
CMP EAX,dword ptr [RBX + 0x2e8]
JZ 0x0017578e
CDQE
MOV RCX,qword ptr [RBX + 0x2d0]
LEA RAX,[RAX + RAX*0x2]
MOV RDI,qword ptr [RCX + RAX*0x8 + 0x10]
TEST RDI,RDI
JZ 0x0017578e
LEA RSI,[RSP + 0x8]
CALL 0x00172f02
JMP 0x00175790
LAB_0017578e:
XOR EAX,EAX
LAB_00175790:
ADD RSP,0x20
POP RBX
RET
|
/* Dimension::get_voxel(glm::vec<3, long, (glm::qualifier)0> const&) const */
int8 __thiscall Dimension::get_voxel(Dimension *this,vec *param_1)
{
Chunk *this_00;
uint uVar1;
int8 uVar2;
uint local_20;
ushort local_1c;
ulong local_18;
int4 local_10;
local_18 = *(ulong *)param_1 >> 4 & 0xffffffff |
(*(ulong *)(param_1 + 8) & 0xfffffffffffffff0) << 0x1c;
local_10 = (int4)(*(ulong *)(param_1 + 0x10) >> 4);
local_1c = (ushort)*(ulong *)(param_1 + 0x10) & 0xf;
local_20 = (uint)*(ulong *)param_1 & 0xf | ((uint)*(ulong *)(param_1 + 8) & 0xf) << 0x10;
uVar1 = emhash8::
HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk*,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>
::find_filled_slot<glm::vec<3,int,(glm::qualifier)0>>
((HashMap<glm::vec<3,int,(glm::qualifier)0>,Chunk*,std::hash<glm::vec<3,int,(glm::qualifier)0>>,std::equal_to<glm::vec<3,int,(glm::qualifier)0>>>
*)(this + 0x2c8),(vec *)&local_18);
if ((uVar1 == *(uint *)(this + 0x2e8)) ||
(this_00 = *(Chunk **)(*(long *)(this + 0x2d0) + 0x10 + (long)(int)uVar1 * 0x18),
this_00 == (Chunk *)0x0)) {
uVar2 = 0;
}
else {
uVar2 = Chunk::get_voxel(this_00,(vec *)&local_20);
}
return uVar2;
}
|
|
60,730
|
ma_rec_pos
|
eloqsql/storage/maria/ma_search.c
|
MARIA_RECORD_POS _ma_rec_pos(MARIA_SHARE *share, uchar *ptr)
{
my_off_t pos;
switch (share->rec_reflength) {
#if SIZEOF_OFF_T > 4
case 8:
pos= (my_off_t) mi_uint8korr(ptr);
if (pos == HA_OFFSET_ERROR)
return HA_OFFSET_ERROR; /* end of list */
break;
case 7:
pos= (my_off_t) mi_uint7korr(ptr);
if (pos == (((my_off_t) 1) << 56) -1)
return HA_OFFSET_ERROR; /* end of list */
break;
case 6:
pos= (my_off_t) mi_uint6korr(ptr);
if (pos == (((my_off_t) 1) << 48) -1)
return HA_OFFSET_ERROR; /* end of list */
break;
case 5:
pos= (my_off_t) mi_uint5korr(ptr);
if (pos == (((my_off_t) 1) << 40) -1)
return HA_OFFSET_ERROR; /* end of list */
break;
#else
case 8:
case 7:
case 6:
case 5:
ptr+= (share->rec_reflength-4);
/* fall through */
#endif
case 4:
pos= (my_off_t) mi_uint4korr(ptr);
if (pos == (my_off_t) (uint32) ~0L)
return HA_OFFSET_ERROR;
break;
case 3:
pos= (my_off_t) mi_uint3korr(ptr);
if (pos == (my_off_t) (1 << 24) -1)
return HA_OFFSET_ERROR;
break;
case 2:
pos= (my_off_t) mi_uint2korr(ptr);
if (pos == (my_off_t) (1 << 16) -1)
return HA_OFFSET_ERROR;
break;
default: abort(); /* Impossible */
}
return (*share->keypos_to_recpos)(share, pos);
}
|
O0
|
c
|
ma_rec_pos:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movl 0x740(%rax), %eax
addl $-0x2, %eax
movl %eax, %ecx
movq %rcx, -0x28(%rbp)
subl $0x6, %eax
ja 0x95d44
movq -0x28(%rbp), %rax
leaq 0xc356d(%rip), %rcx # 0x1590d4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x18(%rbp), %rax
movzbl 0x7(%rax), %eax
movq -0x18(%rbp), %rcx
movzbl 0x6(%rcx), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movq -0x18(%rbp), %rcx
movzbl 0x5(%rcx), %ecx
shll $0x10, %ecx
orl %ecx, %eax
movq -0x18(%rbp), %rcx
movzbl 0x4(%rcx), %ecx
shll $0x18, %ecx
orl %ecx, %eax
movl %eax, %eax
movq -0x18(%rbp), %rcx
movzbl 0x3(%rcx), %ecx
movq -0x18(%rbp), %rdx
movzbl 0x2(%rdx), %edx
shll $0x8, %edx
orl %edx, %ecx
movq -0x18(%rbp), %rdx
movzbl 0x1(%rdx), %edx
shll $0x10, %edx
orl %edx, %ecx
movq -0x18(%rbp), %rdx
movzbl (%rdx), %edx
shll $0x18, %edx
orl %edx, %ecx
movl %ecx, %ecx
shlq $0x20, %rcx
orq %rcx, %rax
movq %rax, -0x20(%rbp)
cmpq $-0x1, -0x20(%rbp)
jne 0x95bf0
movq $-0x1, -0x8(%rbp)
jmp 0x95d62
jmp 0x95d49
movq -0x18(%rbp), %rdi
callq 0x95590
movq %rax, -0x20(%rbp)
movabsq $0xffffffffffffff, %rax # imm = 0xFFFFFFFFFFFFFF
cmpq %rax, -0x20(%rbp)
jne 0x95c1f
movq $-0x1, -0x8(%rbp)
jmp 0x95d62
jmp 0x95d49
movq -0x18(%rbp), %rdi
callq 0x955f0
movq %rax, -0x20(%rbp)
movabsq $0xffffffffffff, %rax # imm = 0xFFFFFFFFFFFF
cmpq %rax, -0x20(%rbp)
jne 0x95c4e
movq $-0x1, -0x8(%rbp)
jmp 0x95d62
jmp 0x95d49
movq -0x18(%rbp), %rdi
callq 0x95640
movq %rax, -0x20(%rbp)
movabsq $0xffffffffff, %rax # imm = 0xFFFFFFFFFF
cmpq %rax, -0x20(%rbp)
jne 0x95c7d
movq $-0x1, -0x8(%rbp)
jmp 0x95d62
jmp 0x95d49
movq -0x18(%rbp), %rax
movzbl 0x3(%rax), %eax
movq -0x18(%rbp), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movq -0x18(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x10, %ecx
orl %ecx, %eax
movq -0x18(%rbp), %rcx
movzbl (%rcx), %ecx
shll $0x18, %ecx
orl %ecx, %eax
movl %eax, %eax
movq %rax, -0x20(%rbp)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
cmpq %rax, -0x20(%rbp)
jne 0x95cce
movq $-0x1, -0x8(%rbp)
jmp 0x95d62
jmp 0x95d49
movq -0x18(%rbp), %rax
movzbl 0x2(%rax), %eax
movq -0x18(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movq -0x18(%rbp), %rcx
movzbl (%rcx), %ecx
shll $0x10, %ecx
orl %ecx, %eax
movl %eax, %eax
movq %rax, -0x20(%rbp)
cmpq $0xffffff, -0x20(%rbp) # imm = 0xFFFFFF
jne 0x95d0b
movq $-0x1, -0x8(%rbp)
jmp 0x95d62
jmp 0x95d49
movq -0x18(%rbp), %rax
movzbl 0x1(%rax), %eax
movzwl %ax, %eax
movq -0x18(%rbp), %rcx
movzbl (%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movzwl %ax, %eax
movq %rax, -0x20(%rbp)
cmpq $0xffff, -0x20(%rbp) # imm = 0xFFFF
jne 0x95d42
movq $-0x1, -0x8(%rbp)
jmp 0x95d62
jmp 0x95d49
callq 0x2a5c0
movq -0x10(%rbp), %rax
movq 0x6c8(%rax), %rax
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq *%rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
|
_ma_rec_pos:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
mov eax, [rax+740h]
add eax, 0FFFFFFFEh; switch 7 cases
mov ecx, eax
mov [rbp+var_28], rcx
sub eax, 6
ja def_95B6E; jumptable 0000000000095B6E default case
mov rax, [rbp+var_28]
lea rcx, jpt_95B6E
movsxd rax, ds:(jpt_95B6E - 1590D4h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_95B70:
mov rax, [rbp+var_18]; jumptable 0000000000095B6E case 8
movzx eax, byte ptr [rax+7]
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+6]
shl ecx, 8
or eax, ecx
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+5]
shl ecx, 10h
or eax, ecx
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+4]
shl ecx, 18h
or eax, ecx
mov eax, eax
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+3]
mov rdx, [rbp+var_18]
movzx edx, byte ptr [rdx+2]
shl edx, 8
or ecx, edx
mov rdx, [rbp+var_18]
movzx edx, byte ptr [rdx+1]
shl edx, 10h
or ecx, edx
mov rdx, [rbp+var_18]
movzx edx, byte ptr [rdx]
shl edx, 18h
or ecx, edx
mov ecx, ecx
shl rcx, 20h
or rax, rcx
mov [rbp+var_20], rax
cmp [rbp+var_20], 0FFFFFFFFFFFFFFFFh
jnz short loc_95BF0
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
jmp loc_95D62
loc_95BF0:
jmp loc_95D49
loc_95BF5:
mov rdi, [rbp+var_18]; jumptable 0000000000095B6E case 7
call mi_uint7korr
mov [rbp+var_20], rax
mov rax, 0FFFFFFFFFFFFFFh
cmp [rbp+var_20], rax
jnz short loc_95C1F
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
jmp loc_95D62
loc_95C1F:
jmp loc_95D49
loc_95C24:
mov rdi, [rbp+var_18]; jumptable 0000000000095B6E case 6
call mi_uint6korr
mov [rbp+var_20], rax
mov rax, 0FFFFFFFFFFFFh
cmp [rbp+var_20], rax
jnz short loc_95C4E
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
jmp loc_95D62
loc_95C4E:
jmp loc_95D49
loc_95C53:
mov rdi, [rbp+var_18]; jumptable 0000000000095B6E case 5
call mi_uint5korr
mov [rbp+var_20], rax
mov rax, 0FFFFFFFFFFh
cmp [rbp+var_20], rax
jnz short loc_95C7D
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
jmp loc_95D62
loc_95C7D:
jmp loc_95D49
loc_95C82:
mov rax, [rbp+var_18]; jumptable 0000000000095B6E case 4
movzx eax, byte ptr [rax+3]
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+2]
shl ecx, 8
or eax, ecx
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+1]
shl ecx, 10h
or eax, ecx
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx]
shl ecx, 18h
or eax, ecx
mov eax, eax
mov [rbp+var_20], rax
mov eax, 0FFFFFFFFh
cmp [rbp+var_20], rax
jnz short loc_95CCE
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
jmp loc_95D62
loc_95CCE:
jmp short loc_95D49
loc_95CD0:
mov rax, [rbp+var_18]; jumptable 0000000000095B6E case 3
movzx eax, byte ptr [rax+2]
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
or eax, ecx
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx]
shl ecx, 10h
or eax, ecx
mov eax, eax
mov [rbp+var_20], rax
cmp [rbp+var_20], 0FFFFFFh
jnz short loc_95D0B
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
jmp short loc_95D62
loc_95D0B:
jmp short loc_95D49
loc_95D0D:
mov rax, [rbp+var_18]; jumptable 0000000000095B6E case 2
movzx eax, byte ptr [rax+1]
movzx eax, ax
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx]
movzx ecx, cx
shl ecx, 8
or eax, ecx
movzx eax, ax
mov [rbp+var_20], rax
cmp [rbp+var_20], 0FFFFh
jnz short loc_95D42
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
jmp short loc_95D62
loc_95D42:
jmp short loc_95D49
def_95B6E:
call _abort; jumptable 0000000000095B6E default case
loc_95D49:
mov rax, [rbp+var_10]
mov rax, [rax+6C8h]
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_20]
call rax
mov [rbp+var_8], rax
loc_95D62:
mov rax, [rbp+var_8]
add rsp, 30h
pop rbp
retn
|
long long ma_rec_pos(long long a1, unsigned int *a2, long long a3)
{
unsigned long long v4; // [rsp+10h] [rbp-20h]
long long v5; // [rsp+28h] [rbp-8h]
switch ( *(_DWORD *)(a1 + 1856) )
{
case 2:
v4 = _byteswap_ushort(*(_WORD *)a2);
if ( v4 != 0xFFFF )
goto LABEL_24;
v5 = -1LL;
break;
case 3:
v4 = (*(unsigned __int8 *)a2 << 16) | (*((unsigned __int8 *)a2 + 1) << 8) | (unsigned int)*((unsigned __int8 *)a2
+ 2);
if ( v4 != 0xFFFFFF )
goto LABEL_24;
v5 = -1LL;
break;
case 4:
v4 = _byteswap_ulong(*a2);
if ( v4 != 0xFFFFFFFF )
goto LABEL_24;
v5 = -1LL;
break;
case 5:
v4 = mi_uint5korr(a2);
if ( v4 != 0xFFFFFFFFFFLL )
goto LABEL_24;
v5 = -1LL;
break;
case 6:
v4 = mi_uint6korr(a2);
if ( v4 != 0xFFFFFFFFFFFFLL )
goto LABEL_24;
v5 = -1LL;
break;
case 7:
v4 = mi_uint7korr(a2);
if ( v4 != 0xFFFFFFFFFFFFFFLL )
goto LABEL_24;
v5 = -1LL;
break;
case 8:
v4 = ((unsigned long long)_byteswap_ulong(*a2) << 32) | _byteswap_ulong(a2[1]);
if ( v4 == -1LL )
v5 = -1LL;
else
LABEL_24:
v5 = (*(long long ( **)(long long, unsigned long long))(a1 + 1736))(a1, v4);
break;
default:
abort(a1, a2, a3);
}
return v5;
}
|
_ma_rec_pos:
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 EAX,dword ptr [RAX + 0x740]
ADD EAX,-0x2
MOV ECX,EAX
MOV qword ptr [RBP + -0x28],RCX
SUB EAX,0x6
JA 0x00195d44
MOV RAX,qword ptr [RBP + -0x28]
LEA RCX,[0x2590d4]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_8:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x7]
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x6]
SHL ECX,0x8
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x5]
SHL ECX,0x10
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x4]
SHL ECX,0x18
OR EAX,ECX
MOV EAX,EAX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x3]
MOV RDX,qword ptr [RBP + -0x18]
MOVZX EDX,byte ptr [RDX + 0x2]
SHL EDX,0x8
OR ECX,EDX
MOV RDX,qword ptr [RBP + -0x18]
MOVZX EDX,byte ptr [RDX + 0x1]
SHL EDX,0x10
OR ECX,EDX
MOV RDX,qword ptr [RBP + -0x18]
MOVZX EDX,byte ptr [RDX]
SHL EDX,0x18
OR ECX,EDX
MOV ECX,ECX
SHL RCX,0x20
OR RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
CMP qword ptr [RBP + -0x20],-0x1
JNZ 0x00195bf0
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x00195d62
LAB_00195bf0:
JMP 0x00195d49
caseD_7:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00195590
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,0xffffffffffffff
CMP qword ptr [RBP + -0x20],RAX
JNZ 0x00195c1f
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x00195d62
LAB_00195c1f:
JMP 0x00195d49
caseD_6:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001955f0
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,0xffffffffffff
CMP qword ptr [RBP + -0x20],RAX
JNZ 0x00195c4e
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x00195d62
LAB_00195c4e:
JMP 0x00195d49
caseD_5:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00195640
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,0xffffffffff
CMP qword ptr [RBP + -0x20],RAX
JNZ 0x00195c7d
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x00195d62
LAB_00195c7d:
JMP 0x00195d49
caseD_4:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x3]
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x8
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x10
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX]
SHL ECX,0x18
OR EAX,ECX
MOV EAX,EAX
MOV qword ptr [RBP + -0x20],RAX
MOV EAX,0xffffffff
CMP qword ptr [RBP + -0x20],RAX
JNZ 0x00195cce
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x00195d62
LAB_00195cce:
JMP 0x00195d49
caseD_3:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x2]
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX]
SHL ECX,0x10
OR EAX,ECX
MOV EAX,EAX
MOV qword ptr [RBP + -0x20],RAX
CMP qword ptr [RBP + -0x20],0xffffff
JNZ 0x00195d0b
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x00195d62
LAB_00195d0b:
JMP 0x00195d49
caseD_2:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOVZX EAX,AX
MOV qword ptr [RBP + -0x20],RAX
CMP qword ptr [RBP + -0x20],0xffff
JNZ 0x00195d42
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x00195d62
LAB_00195d42:
JMP 0x00195d49
default:
CALL 0x0012a5c0
LAB_00195d49:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x6c8]
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x20]
CALL RAX
MOV qword ptr [RBP + -0x8],RAX
LAB_00195d62:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
int8 _ma_rec_pos(long param_1,int1 *param_2)
{
int8 uVar1;
ulong local_28;
switch(*(int4 *)(param_1 + 0x740)) {
case 2:
local_28 = (ulong)CONCAT11(*param_2,param_2[1]);
if (local_28 == 0xffff) {
return 0xffffffffffffffff;
}
break;
case 3:
local_28 = (ulong)CONCAT12(*param_2,CONCAT11(param_2[1],param_2[2]));
if (local_28 == 0xffffff) {
return 0xffffffffffffffff;
}
break;
case 4:
local_28 = (ulong)CONCAT13(*param_2,CONCAT12(param_2[1],CONCAT11(param_2[2],param_2[3])));
if (local_28 == 0xffffffff) {
return 0xffffffffffffffff;
}
break;
case 5:
local_28 = mi_uint5korr(param_2);
if (local_28 == 0xffffffffff) {
return 0xffffffffffffffff;
}
break;
case 6:
local_28 = mi_uint6korr(param_2);
if (local_28 == 0xffffffffffff) {
return 0xffffffffffffffff;
}
break;
case 7:
local_28 = mi_uint7korr(param_2);
if (local_28 == 0xffffffffffffff) {
return 0xffffffffffffffff;
}
break;
case 8:
local_28 = CONCAT44(CONCAT13(*param_2,CONCAT12(param_2[1],CONCAT11(param_2[2],param_2[3]))),
CONCAT13(param_2[4],CONCAT12(param_2[5],CONCAT11(param_2[6],param_2[7]))));
if (local_28 == 0xffffffffffffffff) {
return 0xffffffffffffffff;
}
break;
default:
/* WARNING: Subroutine does not return */
abort();
}
uVar1 = (**(code **)(param_1 + 0x6c8))(param_1,local_28);
return uVar1;
}
|
|
60,731
|
ok1
|
eloqsql/unittest/mytap/tap.c
|
void
ok1(int const pass)
{
va_list ap;
memset(&ap, 0, sizeof(ap));
if (!pass && *g_test.todo == '\0')
++g_test.failed;
vemit_tap(pass, NULL, ap);
if (*g_test.todo != '\0')
emit_dir("todo", g_test.todo);
emit_endl();
}
|
O0
|
c
|
ok1:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
leaq -0x20(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x2a2a0
cmpl $0x0, -0x4(%rbp)
jne 0xd9e6c
movsbl 0xba0484(%rip), %eax # 0xc7a2dc
cmpl $0x0, %eax
jne 0xd9e6c
movl 0xba0475(%rip), %eax # 0xc7a2d8
addl $0x1, %eax
movl %eax, 0xba046c(%rip) # 0xc7a2d8
movl -0x4(%rbp), %edi
leaq -0x20(%rbp), %rdx
xorl %eax, %eax
movl %eax, %esi
callq 0xd9d00
movsbl 0xba0459(%rip), %eax # 0xc7a2dc
cmpl $0x0, %eax
je 0xd9e9f
leaq 0x79d3a(%rip), %rdi # 0x153bc9
leaq 0xba043a(%rip), %rsi # 0xc7a2d0
addq $0xc, %rsi
callq 0xd9de0
callq 0xda240
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
ok1:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_4], edi
lea rdi, [rbp+var_20]
xor esi, esi
mov edx, 18h
call _memset
cmp [rbp+var_4], 0
jnz short loc_D9E6C
movsx eax, cs:byte_C7A2DC
cmp eax, 0
jnz short loc_D9E6C
mov eax, cs:dword_C7A2D8
add eax, 1
mov cs:dword_C7A2D8, eax
loc_D9E6C:
mov edi, [rbp+var_4]
lea rdx, [rbp+var_20]
xor eax, eax
mov esi, eax
call vemit_tap
movsx eax, cs:byte_C7A2DC
cmp eax, 0
jz short loc_D9E9F
lea rdi, aTodo; "todo"
lea rsi, g_test
add rsi, 0Ch
call emit_dir
loc_D9E9F:
call emit_endl
add rsp, 20h
pop rbp
retn
|
long long ok1(int a1)
{
_BYTE v2[28]; // [rsp+0h] [rbp-20h] BYREF
int v3; // [rsp+1Ch] [rbp-4h]
v3 = a1;
memset(v2, 0LL, 24LL);
if ( !v3 && !byte_C7A2DC )
++dword_C7A2D8;
vemit_tap(v3, 0LL, (long long)v2);
if ( byte_C7A2DC )
emit_dir("todo", (const char *)&g_test + 12);
return emit_endl();
}
|
ok1:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0x4],EDI
LEA RDI,[RBP + -0x20]
XOR ESI,ESI
MOV EDX,0x18
CALL 0x0012a2a0
CMP dword ptr [RBP + -0x4],0x0
JNZ 0x001d9e6c
MOVSX EAX,byte ptr [0x00d7a2dc]
CMP EAX,0x0
JNZ 0x001d9e6c
MOV EAX,dword ptr [0x00d7a2d8]
ADD EAX,0x1
MOV dword ptr [0x00d7a2d8],EAX
LAB_001d9e6c:
MOV EDI,dword ptr [RBP + -0x4]
LEA RDX,[RBP + -0x20]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x001d9d00
MOVSX EAX,byte ptr [0x00d7a2dc]
CMP EAX,0x0
JZ 0x001d9e9f
LEA RDI,[0x253bc9]
LEA RSI,[0xd7a2d0]
ADD RSI,0xc
CALL 0x001d9de0
LAB_001d9e9f:
CALL 0x001da240
ADD RSP,0x20
POP RBP
RET
|
void ok1(int param_1)
{
int1 local_28 [28];
int local_c;
local_c = param_1;
memset(local_28,0,0x18);
if ((local_c == 0) && (DAT_00d7a2dc == '\0')) {
DAT_00d7a2d8 = DAT_00d7a2d8 + 1;
}
vemit_tap(local_c,0,local_28);
if (DAT_00d7a2dc != '\0') {
emit_dir(&DAT_00253bc9,&DAT_00d7a2dc);
}
emit_endl();
return;
}
|
|
60,732
|
hi0bits
|
eloqsql/libmariadb/libmariadb/ma_dtoa.c
|
static int hi0bits(register ULong x)
{
register int k= 0;
if (!(x & 0xffff0000))
{
k= 16;
x<<= 16;
}
if (!(x & 0xff000000))
{
k+= 8;
x<<= 8;
}
if (!(x & 0xf0000000))
{
k+= 4;
x<<= 4;
}
if (!(x & 0xc0000000))
{
k+= 2;
x<<= 2;
}
if (!(x & 0x80000000))
{
k++;
if (!(x & 0x40000000))
return 32;
}
return k;
}
|
O3
|
c
|
hi0bits:
pushq %rbp
movq %rsp, %rbp
movl %edi, %eax
shll $0x10, %eax
xorl %ecx, %ecx
cmpl $0x10000, %edi # imm = 0x10000
setb %cl
cmovael %edi, %eax
shll $0x4, %ecx
movl %eax, %edx
shll $0x8, %edx
cmpl $0x1000000, %eax # imm = 0x1000000
cmovael %eax, %edx
leal 0x8(%rcx), %eax
cmovael %ecx, %eax
movl %edx, %ecx
shll $0x4, %ecx
cmpl $0x10000000, %edx # imm = 0x10000000
cmovael %edx, %ecx
leal 0x4(%rax), %edx
cmovael %eax, %edx
leal (,%rcx,4), %esi
movl $0x40000000, %eax # imm = 0x40000000
cmpl %eax, %ecx
cmovael %ecx, %esi
leal 0x2(%rdx), %ecx
cmovael %edx, %ecx
leal 0x1(%rcx), %edx
cmpl %eax, %esi
movl $0x20, %eax
cmovael %edx, %eax
testl %esi, %esi
cmovsl %ecx, %eax
popq %rbp
retq
|
hi0bits:
push rbp
mov rbp, rsp
mov eax, edi
shl eax, 10h
xor ecx, ecx
cmp edi, 10000h
setb cl
cmovnb eax, edi
shl ecx, 4
mov edx, eax
shl edx, 8
cmp eax, 1000000h
cmovnb edx, eax
lea eax, [rcx+8]
cmovnb eax, ecx
mov ecx, edx
shl ecx, 4
cmp edx, 10000000h
cmovnb ecx, edx
lea edx, [rax+4]
cmovnb edx, eax
lea esi, ds:0[rcx*4]
mov eax, 40000000h
cmp ecx, eax
cmovnb esi, ecx
lea ecx, [rdx+2]
cmovnb ecx, edx
lea edx, [rcx+1]
cmp esi, eax
mov eax, 20h ; ' '
cmovnb eax, edx
test esi, esi
cmovs eax, ecx
pop rbp
retn
|
long long hi0bits(unsigned int a1)
{
unsigned int v1; // eax
unsigned int v2; // edx
bool v3; // cf
int v4; // eax
unsigned int v5; // ecx
bool v6; // cf
int v7; // edx
int v8; // esi
bool v9; // cf
unsigned int v10; // ecx
long long result; // rax
v1 = a1 << 16;
if ( a1 >= 0x10000 )
v1 = a1;
v2 = v1 << 8;
v3 = v1 < 0x1000000;
if ( v1 >= 0x1000000 )
v2 = v1;
v4 = 16 * (a1 < 0x10000) + 8;
if ( !v3 )
v4 = 16 * (a1 < 0x10000);
v5 = 16 * v2;
v6 = v2 < 0x10000000;
if ( v2 >= 0x10000000 )
v5 = v2;
v7 = v4 + 4;
if ( !v6 )
v7 = v4;
v8 = 4 * v5;
v9 = v5 < 0x40000000;
if ( v5 >= 0x40000000 )
v8 = v5;
v10 = v7 + 2;
if ( !v9 )
v10 = v7;
result = 32LL;
if ( (unsigned int)v8 >= 0x40000000 )
result = v10 + 1;
if ( v8 < 0 )
return v10;
return result;
}
|
hi0bits:
PUSH RBP
MOV RBP,RSP
MOV EAX,EDI
SHL EAX,0x10
XOR ECX,ECX
CMP EDI,0x10000
SETC CL
CMOVNC EAX,EDI
SHL ECX,0x4
MOV EDX,EAX
SHL EDX,0x8
CMP EAX,0x1000000
CMOVNC EDX,EAX
LEA EAX,[RCX + 0x8]
CMOVNC EAX,ECX
MOV ECX,EDX
SHL ECX,0x4
CMP EDX,0x10000000
CMOVNC ECX,EDX
LEA EDX,[RAX + 0x4]
CMOVNC EDX,EAX
LEA ESI,[RCX*0x4]
MOV EAX,0x40000000
CMP ECX,EAX
CMOVNC ESI,ECX
LEA ECX,[RDX + 0x2]
CMOVNC ECX,EDX
LEA EDX,[RCX + 0x1]
CMP ESI,EAX
MOV EAX,0x20
CMOVNC EAX,EDX
TEST ESI,ESI
CMOVS EAX,ECX
POP RBP
RET
|
int hi0bits(uint param_1)
{
uint uVar1;
uint uVar2;
int iVar3;
int iVar4;
uVar2 = param_1 << 0x10;
if (param_1 >= 0x10000) {
uVar2 = param_1;
}
iVar4 = (uint)(param_1 < 0x10000) * 0x10;
uVar1 = uVar2 << 8;
if (0xffffff < uVar2) {
uVar1 = uVar2;
}
iVar3 = iVar4 + 8;
if (0xffffff < uVar2) {
iVar3 = iVar4;
}
uVar2 = uVar1 << 4;
if (0xfffffff < uVar1) {
uVar2 = uVar1;
}
iVar4 = iVar3 + 4;
if (0xfffffff < uVar1) {
iVar4 = iVar3;
}
uVar1 = uVar2 * 4;
if (0x3fffffff < uVar2) {
uVar1 = uVar2;
}
iVar3 = iVar4 + 2;
if (0x3fffffff < uVar2) {
iVar3 = iVar4;
}
iVar4 = 0x20;
if (0x3fffffff < uVar1) {
iVar4 = iVar3 + 1;
}
if ((int)uVar1 < 0) {
iVar4 = iVar3;
}
return iVar4;
}
|
|
60,733
|
gguf_writer::pad(unsigned long) const
|
Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp
|
void pad(const size_t alignment) const {
while (buf.size() % alignment != 0) {
const int8_t zero = 0;
write(zero);
}
}
|
O3
|
cpp
|
gguf_writer::pad(unsigned long) const:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq (%rdi), %rcx
movq 0x8(%rcx), %rax
subq (%rcx), %rax
xorl %edx, %edx
divq %rsi
testq %rdx, %rdx
je 0x429d8
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xf(%rsp), %r15
movb $0x0, 0xf(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x16a00
movq (%r14), %rcx
movq 0x8(%rcx), %rax
subq (%rcx), %rax
xorl %edx, %edx
divq %rbx
testq %rdx, %rdx
jne 0x429b4
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
|
_ZNK11gguf_writer3padEm:
push r15
push r14
push rbx
sub rsp, 10h
mov rcx, [rdi]
mov rax, [rcx+8]
sub rax, [rcx]
xor edx, edx
div rsi
test rdx, rdx
jz short loc_429D8
mov rbx, rsi
mov r14, rdi
lea r15, [rsp+28h+var_19]
loc_429B4:
mov [rsp+28h+var_19], 0
mov rdi, r14
mov rsi, r15
call __ZNK11gguf_writer5writeIaEEvRKT_; gguf_writer::write<signed char>(signed char const&)
mov rcx, [r14]
mov rax, [rcx+8]
sub rax, [rcx]
xor edx, edx
div rbx
test rdx, rdx
jnz short loc_429B4
loc_429D8:
add rsp, 10h
pop rbx
pop r14
pop r15
retn
|
unsigned long long gguf_writer::pad(gguf_writer *this, unsigned long long a2)
{
unsigned long long result; // rax
_BYTE v3[25]; // [rsp+Fh] [rbp-19h] BYREF
for ( result = (*(_QWORD *)(*(_QWORD *)this + 8LL) - **(_QWORD **)this) / a2;
(*(_QWORD *)(*(_QWORD *)this + 8LL) - **(_QWORD **)this) % a2;
result = (*(_QWORD *)(*(_QWORD *)this + 8LL) - **(_QWORD **)this) / a2 )
{
v3[0] = 0;
gguf_writer::write<signed char>(this, v3);
}
return result;
}
|
pad:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV RCX,qword ptr [RDI]
MOV RAX,qword ptr [RCX + 0x8]
SUB RAX,qword ptr [RCX]
XOR EDX,EDX
DIV RSI
TEST RDX,RDX
JZ 0x001429d8
MOV RBX,RSI
MOV R14,RDI
LEA R15,[RSP + 0xf]
LAB_001429b4:
MOV byte ptr [RSP + 0xf],0x0
MOV RDI,R14
MOV RSI,R15
CALL 0x00116a00
MOV RCX,qword ptr [R14]
MOV RAX,qword ptr [RCX + 0x8]
SUB RAX,qword ptr [RCX]
XOR EDX,EDX
DIV RBX
TEST RDX,RDX
JNZ 0x001429b4
LAB_001429d8:
ADD RSP,0x10
POP RBX
POP R14
POP R15
RET
|
/* gguf_writer::pad(unsigned long) const */
ulong __thiscall gguf_writer::pad(gguf_writer *this,ulong param_1)
{
ulong uVar1;
signed local_19;
uVar1 = (*(long **)this)[1] - **(long **)this;
if (uVar1 % param_1 != 0) {
do {
local_19 = (signed)0x0;
write<signed_char>(this,&local_19);
uVar1 = (*(long **)this)[1] - **(long **)this;
} while (uVar1 % param_1 != 0);
}
return uVar1 / param_1;
}
|
|
60,734
|
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)
|
monkey531[P]llama/common/json.hpp
|
inline void grisu2_digit_gen(char* buffer, int& length, int& decimal_exponent,
diyfp M_minus, diyfp w, diyfp M_plus)
{
static_assert(kAlpha >= -60, "internal error");
static_assert(kGamma <= -32, "internal error");
// Generates the digits (and the exponent) of a decimal floating-point
// number V = buffer * 10^decimal_exponent in the range [M-, M+]. The diyfp's
// w, M- and M+ share the same exponent e, which satisfies alpha <= e <= gamma.
//
// <--------------------------- delta ---->
// <---- dist --------->
// --------------[------------------+-------------------]--------------
// M- w M+
//
// Grisu2 generates the digits of M+ from left to right and stops as soon as
// V is in [M-,M+].
JSON_ASSERT(M_plus.e >= kAlpha);
JSON_ASSERT(M_plus.e <= kGamma);
std::uint64_t delta = diyfp::sub(M_plus, M_minus).f; // (significand of (M+ - M-), implicit exponent is e)
std::uint64_t dist = diyfp::sub(M_plus, w ).f; // (significand of (M+ - w ), implicit exponent is e)
// Split M+ = f * 2^e into two parts p1 and p2 (note: e < 0):
//
// M+ = f * 2^e
// = ((f div 2^-e) * 2^-e + (f mod 2^-e)) * 2^e
// = ((p1 ) * 2^-e + (p2 )) * 2^e
// = p1 + p2 * 2^e
const diyfp one(std::uint64_t{1} << -M_plus.e, M_plus.e);
auto p1 = static_cast<std::uint32_t>(M_plus.f >> -one.e); // p1 = f div 2^-e (Since -e >= 32, p1 fits into a 32-bit int.)
std::uint64_t p2 = M_plus.f & (one.f - 1); // p2 = f mod 2^-e
// 1)
//
// Generate the digits of the integral part p1 = d[n-1]...d[1]d[0]
JSON_ASSERT(p1 > 0);
std::uint32_t pow10{};
const int k = find_largest_pow10(p1, pow10);
// 10^(k-1) <= p1 < 10^k, pow10 = 10^(k-1)
//
// p1 = (p1 div 10^(k-1)) * 10^(k-1) + (p1 mod 10^(k-1))
// = (d[k-1] ) * 10^(k-1) + (p1 mod 10^(k-1))
//
// M+ = p1 + p2 * 2^e
// = d[k-1] * 10^(k-1) + (p1 mod 10^(k-1)) + p2 * 2^e
// = d[k-1] * 10^(k-1) + ((p1 mod 10^(k-1)) * 2^-e + p2) * 2^e
// = d[k-1] * 10^(k-1) + ( rest) * 2^e
//
// Now generate the digits d[n] of p1 from left to right (n = k-1,...,0)
//
// p1 = d[k-1]...d[n] * 10^n + d[n-1]...d[0]
//
// but stop as soon as
//
// rest * 2^e = (d[n-1]...d[0] * 2^-e + p2) * 2^e <= delta * 2^e
int n = k;
while (n > 0)
{
// Invariants:
// M+ = buffer * 10^n + (p1 + p2 * 2^e) (buffer = 0 for n = k)
// pow10 = 10^(n-1) <= p1 < 10^n
//
const std::uint32_t d = p1 / pow10; // d = p1 div 10^(n-1)
const std::uint32_t r = p1 % pow10; // r = p1 mod 10^(n-1)
//
// M+ = buffer * 10^n + (d * 10^(n-1) + r) + p2 * 2^e
// = (buffer * 10 + d) * 10^(n-1) + (r + p2 * 2^e)
//
JSON_ASSERT(d <= 9);
buffer[length++] = static_cast<char>('0' + d); // buffer := buffer * 10 + d
//
// M+ = buffer * 10^(n-1) + (r + p2 * 2^e)
//
p1 = r;
n--;
//
// M+ = buffer * 10^n + (p1 + p2 * 2^e)
// pow10 = 10^n
//
// Now check if enough digits have been generated.
// Compute
//
// p1 + p2 * 2^e = (p1 * 2^-e + p2) * 2^e = rest * 2^e
//
// Note:
// Since rest and delta share the same exponent e, it suffices to
// compare the significands.
const std::uint64_t rest = (std::uint64_t{p1} << -one.e) + p2;
if (rest <= delta)
{
// V = buffer * 10^n, with M- <= V <= M+.
decimal_exponent += n;
// We may now just stop. But instead look if the buffer could be
// decremented to bring V closer to w.
//
// pow10 = 10^n is now 1 ulp in the decimal representation V.
// The rounding procedure works with diyfp's with an implicit
// exponent of e.
//
// 10^n = (10^n * 2^-e) * 2^e = ulp * 2^e
//
const std::uint64_t ten_n = std::uint64_t{pow10} << -one.e;
grisu2_round(buffer, length, dist, delta, rest, ten_n);
return;
}
pow10 /= 10;
//
// pow10 = 10^(n-1) <= p1 < 10^n
// Invariants restored.
}
// 2)
//
// The digits of the integral part have been generated:
//
// M+ = d[k-1]...d[1]d[0] + p2 * 2^e
// = buffer + p2 * 2^e
//
// Now generate the digits of the fractional part p2 * 2^e.
//
// Note:
// No decimal point is generated: the exponent is adjusted instead.
//
// p2 actually represents the fraction
//
// p2 * 2^e
// = p2 / 2^-e
// = d[-1] / 10^1 + d[-2] / 10^2 + ...
//
// Now generate the digits d[-m] of p1 from left to right (m = 1,2,...)
//
// p2 * 2^e = d[-1]d[-2]...d[-m] * 10^-m
// + 10^-m * (d[-m-1] / 10^1 + d[-m-2] / 10^2 + ...)
//
// using
//
// 10^m * p2 = ((10^m * p2) div 2^-e) * 2^-e + ((10^m * p2) mod 2^-e)
// = ( d) * 2^-e + ( r)
//
// or
// 10^m * p2 * 2^e = d + r * 2^e
//
// i.e.
//
// M+ = buffer + p2 * 2^e
// = buffer + 10^-m * (d + r * 2^e)
// = (buffer * 10^m + d) * 10^-m + 10^-m * r * 2^e
//
// and stop as soon as 10^-m * r * 2^e <= delta * 2^e
JSON_ASSERT(p2 > delta);
int m = 0;
for (;;)
{
// Invariant:
// M+ = buffer * 10^-m + 10^-m * (d[-m-1] / 10 + d[-m-2] / 10^2 + ...) * 2^e
// = buffer * 10^-m + 10^-m * (p2 ) * 2^e
// = buffer * 10^-m + 10^-m * (1/10 * (10 * p2) ) * 2^e
// = buffer * 10^-m + 10^-m * (1/10 * ((10*p2 div 2^-e) * 2^-e + (10*p2 mod 2^-e)) * 2^e
//
JSON_ASSERT(p2 <= (std::numeric_limits<std::uint64_t>::max)() / 10);
p2 *= 10;
const std::uint64_t d = p2 >> -one.e; // d = (10 * p2) div 2^-e
const std::uint64_t r = p2 & (one.f - 1); // r = (10 * p2) mod 2^-e
//
// M+ = buffer * 10^-m + 10^-m * (1/10 * (d * 2^-e + r) * 2^e
// = buffer * 10^-m + 10^-m * (1/10 * (d + r * 2^e))
// = (buffer * 10 + d) * 10^(-m-1) + 10^(-m-1) * r * 2^e
//
JSON_ASSERT(d <= 9);
buffer[length++] = static_cast<char>('0' + d); // buffer := buffer * 10 + d
//
// M+ = buffer * 10^(-m-1) + 10^(-m-1) * r * 2^e
//
p2 = r;
m++;
//
// M+ = buffer * 10^-m + 10^-m * p2 * 2^e
// Invariant restored.
// Check if enough digits have been generated.
//
// 10^-m * p2 * 2^e <= delta * 2^e
// p2 * 2^e <= 10^m * delta * 2^e
// p2 <= 10^m * delta
delta *= 10;
dist *= 10;
if (p2 <= delta)
{
break;
}
}
// V = buffer * 10^-m, with M- <= V <= M+.
decimal_exponent -= m;
// 1 ulp in the decimal representation is now 10^-m.
// Since delta and dist are now scaled by 10^m, we need to do the
// same with ulp in order to keep the units in sync.
//
// 10^m * 10^-m = 1 = 2^-e * 2^e = ten_m * 2^e
//
const std::uint64_t ten_m = one.f;
grisu2_round(buffer, length, dist, delta, p2, ten_m);
// By construction this algorithm generates the shortest possible decimal
// number (Loitsch, Theorem 6.2) which rounds back to w.
// For an input number of precision p, at least
//
// N = 1 + ceil(p * log_10(2))
//
// decimal digits are sufficient to identify all binary floating-point
// numbers (Matula, "In-and-Out conversions").
// This implies that the algorithm does not produce more than N decimal
// digits.
//
// N = 17 for p = 53 (IEEE double precision)
// N = 9 for p = 24 (IEEE single precision)
}
|
O0
|
cpp
|
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):
subq $0xf8, %rsp
leaq 0x110(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x100(%rsp), %r9
movq %r9, 0x10(%rsp)
movq %rcx, 0xe8(%rsp)
movl %r8d, 0xf0(%rsp)
movq %rdi, 0xe0(%rsp)
movq %rsi, 0xd8(%rsp)
movq %rdx, 0xd0(%rsp)
cmpl $-0x3c, 0x8(%rax)
jge 0x190880
leaq 0x7cafa(%rip), %rdi # 0x20d360
movl $0x4469, %esi # imm = 0x4469
leaq 0x7cb38(%rip), %rdx # 0x20d3aa
leaq 0x82838(%rip), %rcx # 0x2130b1
movb $0x0, %al
callq 0x5aef0
movq 0x8(%rsp), %rax
cmpl $-0x20, 0x8(%rax)
jle 0x1908ac
leaq 0x7cace(%rip), %rdi # 0x20d360
movl $0x446a, %esi # imm = 0x446A
leaq 0x7cb0c(%rip), %rdx # 0x20d3aa
leaq 0x8281f(%rip), %rcx # 0x2130c4
movb $0x0, %al
callq 0x5aef0
movq 0x8(%rsp), %rdi
leaq 0xe8(%rsp), %rsi
callq 0x190d10
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdi
movl %edx, 0xb0(%rsp)
movq %rax, 0xa8(%rsp)
movl 0xb0(%rsp), %eax
movl %eax, 0xc0(%rsp)
movq 0xa8(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0xc8(%rsp)
callq 0x190d10
movq %rax, %rcx
movq 0x8(%rsp), %rax
movl %edx, 0x88(%rsp)
movq %rcx, 0x80(%rsp)
movq 0x80(%rsp), %rcx
movq %rcx, 0x90(%rsp)
movl 0x88(%rsp), %ecx
movl %ecx, 0x98(%rsp)
movq 0x90(%rsp), %rcx
movq %rcx, 0xa0(%rsp)
xorl %ecx, %ecx
subl 0x8(%rax), %ecx
movl %ecx, %ecx
movl $0x1, %esi
shlq %cl, %rsi
movl 0x8(%rax), %edx
leaq 0x70(%rsp), %rdi
callq 0x190370
movq 0x8(%rsp), %rax
movq (%rax), %rdx
xorl %ecx, %ecx
subl 0x78(%rsp), %ecx
movl %ecx, %ecx
shrq %cl, %rdx
movq %rdx, %rcx
movl %ecx, 0x6c(%rsp)
movq (%rax), %rax
movq 0x70(%rsp), %rcx
subq $0x1, %rcx
andq %rcx, %rax
movq %rax, 0x60(%rsp)
cmpl $0x0, 0x6c(%rsp)
ja 0x1909c1
leaq 0x7c9b9(%rip), %rdi # 0x20d360
movl $0x447f, %esi # imm = 0x447F
leaq 0x7c9f7(%rip), %rdx # 0x20d3aa
leaq 0x8271d(%rip), %rcx # 0x2130d7
movb $0x0, %al
callq 0x5aef0
movl $0x0, 0x5c(%rsp)
movl 0x6c(%rsp), %edi
leaq 0x5c(%rsp), %rsi
callq 0x190dc0
movl %eax, 0x58(%rsp)
movl 0x58(%rsp), %eax
movl %eax, 0x54(%rsp)
cmpl $0x0, 0x54(%rsp)
jle 0x190b05
movl 0x6c(%rsp), %eax
xorl %edx, %edx
divl 0x5c(%rsp)
movl %eax, 0x50(%rsp)
movl 0x6c(%rsp), %eax
xorl %edx, %edx
divl 0x5c(%rsp)
movl %edx, 0x4c(%rsp)
cmpl $0x9, 0x50(%rsp)
jbe 0x190a32
leaq 0x7c948(%rip), %rdi # 0x20d360
movl $0x44a3, %esi # imm = 0x44A3
leaq 0x7c986(%rip), %rdx # 0x20d3aa
leaq 0x826b3(%rip), %rcx # 0x2130de
movb $0x0, %al
callq 0x5aef0
movl 0x50(%rsp), %eax
addl $0x30, %eax
movb %al, %dl
movq 0xe0(%rsp), %rax
movq 0xd8(%rsp), %rsi
movl (%rsi), %ecx
movl %ecx, %edi
addl $0x1, %edi
movl %edi, (%rsi)
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movl 0x4c(%rsp), %eax
movl %eax, 0x6c(%rsp)
movl 0x54(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0x54(%rsp)
movl 0x6c(%rsp), %eax
xorl %ecx, %ecx
subl 0x78(%rsp), %ecx
movl %ecx, %ecx
shlq %cl, %rax
addq 0x60(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
cmpq 0xc8(%rsp), %rax
ja 0x190aef
movl 0x54(%rsp), %ecx
movq 0xd0(%rsp), %rax
addl (%rax), %ecx
movl %ecx, (%rax)
movl 0x5c(%rsp), %eax
xorl %ecx, %ecx
subl 0x78(%rsp), %ecx
movl %ecx, %ecx
shlq %cl, %rax
movq %rax, 0x38(%rsp)
movq 0xe0(%rsp), %rdi
movq 0xd8(%rsp), %rax
movl (%rax), %esi
movq 0xa0(%rsp), %rdx
movq 0xc8(%rsp), %rcx
movq 0x40(%rsp), %r8
movq 0x38(%rsp), %r9
callq 0x190f10
jmp 0x190ca5
movl 0x5c(%rsp), %eax
movl $0xa, %ecx
xorl %edx, %edx
divl %ecx
movl %eax, 0x5c(%rsp)
jmp 0x1909e3
movq 0x60(%rsp), %rax
cmpq 0xc8(%rsp), %rax
ja 0x190b35
leaq 0x7c845(%rip), %rdi # 0x20d360
movl $0x44fa, %esi # imm = 0x44FA
leaq 0x7c883(%rip), %rdx # 0x20d3aa
leaq 0x825b7(%rip), %rcx # 0x2130e5
movb $0x0, %al
callq 0x5aef0
movl $0x0, 0x34(%rsp)
movq 0x60(%rsp), %rax
movq %rax, (%rsp)
callq 0x17a850
movl $0xa, %ecx
xorl %edx, %edx
divq %rcx
movq %rax, %rcx
movq (%rsp), %rax
cmpq %rcx, %rax
jbe 0x190b82
leaq 0x7c7f8(%rip), %rdi # 0x20d360
movl $0x4505, %esi # imm = 0x4505
leaq 0x7c836(%rip), %rdx # 0x20d3aa
leaq 0x82575(%rip), %rcx # 0x2130f0
movb $0x0, %al
callq 0x5aef0
imulq $0xa, 0x60(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rax
xorl %ecx, %ecx
subl 0x78(%rsp), %ecx
movl %ecx, %ecx
shrq %cl, %rax
movq %rax, 0x28(%rsp)
movq 0x60(%rsp), %rax
movq 0x70(%rsp), %rcx
subq $0x1, %rcx
andq %rcx, %rax
movq %rax, 0x20(%rsp)
cmpq $0x9, 0x28(%rsp)
jbe 0x190be1
leaq 0x7c799(%rip), %rdi # 0x20d360
movl $0x450e, %esi # imm = 0x450E
leaq 0x7c7d7(%rip), %rdx # 0x20d3aa
leaq 0x82504(%rip), %rcx # 0x2130de
movb $0x0, %al
callq 0x5aef0
movq 0x28(%rsp), %rax
addq $0x30, %rax
movb %al, %dl
movq 0xe0(%rsp), %rax
movq 0xd8(%rsp), %rsi
movl (%rsi), %ecx
movl %ecx, %edi
addl $0x1, %edi
movl %edi, (%rsi)
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movq 0x20(%rsp), %rax
movq %rax, 0x60(%rsp)
movl 0x34(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x34(%rsp)
imulq $0xa, 0xc8(%rsp), %rax
movq %rax, 0xc8(%rsp)
imulq $0xa, 0xa0(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0x60(%rsp), %rax
cmpq 0xc8(%rsp), %rax
ja 0x190c53
jmp 0x190c58
jmp 0x190b3d
movl 0x34(%rsp), %edx
movq 0xd0(%rsp), %rax
movl (%rax), %ecx
subl %edx, %ecx
movl %ecx, (%rax)
movq 0x70(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0xe0(%rsp), %rdi
movq 0xd8(%rsp), %rax
movl (%rax), %esi
movq 0xa0(%rsp), %rdx
movq 0xc8(%rsp), %rcx
movq 0x60(%rsp), %r8
movq 0x18(%rsp), %r9
callq 0x190f10
addq $0xf8, %rsp
retq
nopl (%rax)
|
_ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl16grisu2_digit_genEPcRiS4_NS2_5diyfpES5_S5_:
sub rsp, 0F8h
lea rax, [rsp+0F8h+arg_10]
mov [rsp+0F8h+var_F0], rax
lea r9, [rsp+0F8h+arg_0]
mov [rsp+0F8h+var_E8], r9
mov [rsp+0F8h+var_10], rcx
mov [rsp+0F8h+var_8], r8d
mov [rsp+0F8h+var_18], rdi
mov [rsp+0F8h+var_20], rsi
mov [rsp+0F8h+var_28], rdx
cmp dword ptr [rax+8], 0FFFFFFC4h
jge short loc_190880
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 4469h
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aMPlusEKalpha; "M_plus.e >= kAlpha"
mov al, 0
call _ggml_abort
loc_190880:
mov rax, [rsp+0F8h+var_F0]
cmp dword ptr [rax+8], 0FFFFFFE0h
jle short loc_1908AC
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 446Ah
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aMPlusEKgamma; "M_plus.e <= kGamma"
mov al, 0
call _ggml_abort
loc_1908AC:
mov rdi, [rsp+0F8h+var_F0]; this
lea rsi, [rsp+0F8h+var_10]; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp *
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp3subERKS3_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::sub(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&)
mov rsi, [rsp+0F8h+var_E8]; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp *
mov rdi, [rsp+0F8h+var_F0]; this
mov [rsp+0F8h+var_48], edx
mov [rsp+0F8h+var_50], rax
mov eax, [rsp+0F8h+var_48]
mov [rsp+0F8h+var_38], eax
mov rax, [rsp+0F8h+var_50]
mov [rsp+0F8h+var_40], rax
mov rax, [rsp+0F8h+var_40]
mov [rsp+0F8h+var_30], rax
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp3subERKS3_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::sub(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&)
mov rcx, rax
mov rax, [rsp+0F8h+var_F0]
mov [rsp+0F8h+var_70], edx
mov [rsp+0F8h+var_78], rcx
mov rcx, [rsp+0F8h+var_78]
mov [rsp+0F8h+var_68], rcx
mov ecx, [rsp+0F8h+var_70]
mov [rsp+0F8h+var_60], ecx
mov rcx, [rsp+0F8h+var_68]
mov qword ptr [rsp+0F8h+var_58], rcx
xor ecx, ecx
sub ecx, [rax+8]
mov ecx, ecx
mov esi, 1
shl rsi, cl; unsigned __int64
mov edx, [rax+8]; int
lea rdi, [rsp+0F8h+var_8C+4]; this
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfpC2Emi; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::diyfp(ulong,int)
mov rax, [rsp+0F8h+var_F0]
mov rdx, [rax]
xor ecx, ecx
sub ecx, [rsp+0F8h+var_80]
mov ecx, ecx
shr rdx, cl
mov rcx, rdx
mov dword ptr [rsp+0F8h+var_8C], ecx
mov rax, [rax]
mov rcx, [rsp+0F8h+var_8C+4]
sub rcx, 1
and rax, rcx
mov [rsp+0F8h+var_98], rax
cmp dword ptr [rsp+0F8h+var_8C], 0
ja short loc_1909C1
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 447Fh
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aP10; "p1 > 0"
mov al, 0
call _ggml_abort
loc_1909C1:
mov [rsp+0F8h+var_9C], 0
mov edi, dword ptr [rsp+0F8h+var_8C]; this
lea rsi, [rsp+0F8h+var_9C]; unsigned int
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl18find_largest_pow10EjRj; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::find_largest_pow10(uint,uint &)
mov [rsp+0F8h+var_A0], eax
mov eax, [rsp+0F8h+var_A0]
mov [rsp+0F8h+var_A4], eax
loc_1909E3:
cmp [rsp+0F8h+var_A4], 0
jle loc_190B05
mov eax, dword ptr [rsp+0F8h+var_8C]
xor edx, edx
div [rsp+0F8h+var_9C]
mov [rsp+0F8h+var_A8], eax
mov eax, dword ptr [rsp+0F8h+var_8C]
xor edx, edx
div [rsp+0F8h+var_9C]
mov [rsp+0F8h+var_AC], edx
cmp [rsp+0F8h+var_A8], 9
jbe short loc_190A32
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 44A3h
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aD9; "d <= 9"
mov al, 0
call _ggml_abort
loc_190A32:
mov eax, [rsp+0F8h+var_A8]
add eax, 30h ; '0'
mov dl, al
mov rax, [rsp+0F8h+var_18]
mov rsi, [rsp+0F8h+var_20]
mov ecx, [rsi]
mov edi, ecx
add edi, 1
mov [rsi], edi
movsxd rcx, ecx
mov [rax+rcx], dl
mov eax, [rsp+0F8h+var_AC]
mov dword ptr [rsp+0F8h+var_8C], eax
mov eax, [rsp+0F8h+var_A4]
add eax, 0FFFFFFFFh
mov [rsp+0F8h+var_A4], eax
mov eax, dword ptr [rsp+0F8h+var_8C]
xor ecx, ecx
sub ecx, [rsp+0F8h+var_80]
mov ecx, ecx
shl rax, cl
add rax, [rsp+0F8h+var_98]
mov [rsp+0F8h+var_B8], rax
mov rax, [rsp+0F8h+var_B8]
cmp rax, [rsp+0F8h+var_30]
ja short loc_190AEF
mov ecx, [rsp+0F8h+var_A4]
mov rax, [rsp+0F8h+var_28]
add ecx, [rax]
mov [rax], ecx
mov eax, [rsp+0F8h+var_9C]
xor ecx, ecx
sub ecx, [rsp+0F8h+var_80]
mov ecx, ecx
shl rax, cl
mov [rsp+0F8h+var_C0], rax
mov rdi, [rsp+0F8h+var_18]; this
mov rax, [rsp+0F8h+var_20]
mov esi, [rax]; char *
mov rdx, qword ptr [rsp+0F8h+var_58]; int
mov rcx, [rsp+0F8h+var_30]; unsigned __int64
mov r8, [rsp+0F8h+var_B8]; unsigned __int64
mov r9, [rsp+0F8h+var_C0]; unsigned __int64
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl12grisu2_roundEPcimmmm; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_round(char *,int,ulong,ulong,ulong,ulong)
jmp loc_190CA5
loc_190AEF:
mov eax, [rsp+0F8h+var_9C]
mov ecx, 0Ah
xor edx, edx
div ecx
mov [rsp+0F8h+var_9C], eax
jmp loc_1909E3
loc_190B05:
mov rax, [rsp+0F8h+var_98]
cmp rax, [rsp+0F8h+var_30]
ja short loc_190B35
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 44FAh
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aP2Delta; "p2 > delta"
mov al, 0
call _ggml_abort
loc_190B35:
mov [rsp+0F8h+var_C4], 0
loc_190B3D:
mov rax, [rsp+0F8h+var_98]
mov [rsp+0F8h+var_F8], rax; unsigned __int64
call _ZNSt14numeric_limitsImE3maxEv; std::numeric_limits<ulong>::max(void)
mov ecx, 0Ah
xor edx, edx
div rcx
mov rcx, rax
mov rax, [rsp+0F8h+var_F8]
cmp rax, rcx
jbe short loc_190B82
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 4505h
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aP2StdNumericLi; "p2 <= (std::numeric_limits<std::uint64_"...
mov al, 0
call _ggml_abort
loc_190B82:
imul rax, [rsp+0F8h+var_98], 0Ah
mov [rsp+0F8h+var_98], rax
mov rax, [rsp+0F8h+var_98]
xor ecx, ecx
sub ecx, [rsp+0F8h+var_80]
mov ecx, ecx
shr rax, cl
mov [rsp+0F8h+var_D0], rax
mov rax, [rsp+0F8h+var_98]
mov rcx, [rsp+0F8h+var_8C+4]
sub rcx, 1
and rax, rcx
mov [rsp+0F8h+var_D8], rax
cmp [rsp+0F8h+var_D0], 9
jbe short loc_190BE1
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 450Eh
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aD9; "d <= 9"
mov al, 0
call _ggml_abort
loc_190BE1:
mov rax, [rsp+0F8h+var_D0]
add rax, 30h ; '0'
mov dl, al
mov rax, [rsp+0F8h+var_18]
mov rsi, [rsp+0F8h+var_20]
mov ecx, [rsi]
mov edi, ecx
add edi, 1
mov [rsi], edi
movsxd rcx, ecx
mov [rax+rcx], dl
mov rax, [rsp+0F8h+var_D8]
mov [rsp+0F8h+var_98], rax
mov eax, [rsp+0F8h+var_C4]
add eax, 1
mov [rsp+0F8h+var_C4], eax
imul rax, [rsp+0F8h+var_30], 0Ah
mov [rsp+0F8h+var_30], rax
imul rax, qword ptr [rsp+0F8h+var_58], 0Ah
mov qword ptr [rsp+0F8h+var_58], rax
mov rax, [rsp+0F8h+var_98]
cmp rax, [rsp+0F8h+var_30]
ja short loc_190C53
jmp short loc_190C58
loc_190C53:
jmp loc_190B3D
loc_190C58:
mov edx, [rsp+0F8h+var_C4]
mov rax, [rsp+0F8h+var_28]
mov ecx, [rax]
sub ecx, edx
mov [rax], ecx
mov rax, [rsp+0F8h+var_8C+4]
mov [rsp+0F8h+var_E0], rax
mov rdi, [rsp+0F8h+var_18]; this
mov rax, [rsp+0F8h+var_20]
mov esi, [rax]; char *
mov rdx, qword ptr [rsp+0F8h+var_58]; int
mov rcx, [rsp+0F8h+var_30]; unsigned __int64
mov r8, [rsp+0F8h+var_98]; unsigned __int64
mov r9, [rsp+0F8h+var_E0]; unsigned __int64
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl12grisu2_roundEPcimmmm; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_round(char *,int,ulong,ulong,ulong,ulong)
loc_190CA5:
add rsp, 0F8h
retn
|
long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_digit_gen(
nlohmann::json_abi_v3_11_3::detail::dtoa_impl *a1,
_DWORD *a2,
const nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp *a3,
long long a4,
int a5,
long long a6,
char a7,
long long a8,
unsigned long long a9,
int a10)
{
unsigned long long v10; // rax
const nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp *v11; // rdx
long long v12; // rax
int v13; // edx
unsigned long long v14; // rdx
nlohmann::json_abi_v3_11_3::detail::dtoa_impl *v15; // rax
int v16; // ecx
nlohmann::json_abi_v3_11_3::detail::dtoa_impl *v18; // rax
int v19; // ecx
unsigned long long v20; // [rsp+0h] [rbp-F8h]
unsigned long long v21; // [rsp+0h] [rbp-F8h]
unsigned long long v22; // [rsp+20h] [rbp-D8h]
unsigned long long v23; // [rsp+28h] [rbp-D0h]
int v24; // [rsp+34h] [rbp-C4h]
unsigned long long v25; // [rsp+40h] [rbp-B8h]
unsigned int v26; // [rsp+4Ch] [rbp-ACh]
unsigned int v27; // [rsp+50h] [rbp-A8h]
int largest_pow10; // [rsp+54h] [rbp-A4h]
unsigned int v29; // [rsp+5Ch] [rbp-9Ch] BYREF
unsigned long long v30; // [rsp+60h] [rbp-98h]
_DWORD v31[3]; // [rsp+6Ch] [rbp-8Ch] BYREF
int v32; // [rsp+78h] [rbp-80h]
long long v33; // [rsp+80h] [rbp-78h]
int v34; // [rsp+88h] [rbp-70h]
long long v35; // [rsp+90h] [rbp-68h]
int v36; // [rsp+98h] [rbp-60h]
int v37[2]; // [rsp+A0h] [rbp-58h]
unsigned long long v38; // [rsp+A8h] [rbp-50h]
int v39; // [rsp+B0h] [rbp-48h]
unsigned long long v40; // [rsp+B8h] [rbp-40h]
int v41; // [rsp+C0h] [rbp-38h]
unsigned long long v42; // [rsp+C8h] [rbp-30h]
const nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp *v43; // [rsp+D0h] [rbp-28h]
_DWORD *v44; // [rsp+D8h] [rbp-20h]
nlohmann::json_abi_v3_11_3::detail::dtoa_impl *v45; // [rsp+E0h] [rbp-18h]
long long v46; // [rsp+E8h] [rbp-10h] BYREF
int v47; // [rsp+F0h] [rbp-8h]
v46 = a4;
v47 = a5;
v45 = a1;
v44 = a2;
v43 = a3;
if ( a10 < -60 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17513LL,
"GGML_ASSERT(%s) failed",
"M_plus.e >= kAlpha");
if ( a10 > -32 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17514LL,
"GGML_ASSERT(%s) failed",
"M_plus.e <= kGamma");
v10 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::sub(
(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp *)&a9,
(const nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp *)&v46,
a3);
v39 = (int)v11;
v38 = v10;
v41 = (int)v11;
v40 = v10;
v42 = v10;
v12 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::sub(
(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp *)&a9,
(const nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp *)&a7,
v11);
v34 = v13;
v33 = v12;
v35 = v12;
v36 = v13;
*(_QWORD *)v37 = v12;
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::diyfp(
(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp *)&v31[1],
1LL << -(char)a10,
a10);
v14 = a9 >> -(char)v32;
v31[0] = v14;
v30 = (*(_QWORD *)&v31[1] - 1LL) & a9;
if ( !(_DWORD)v14 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17535LL,
"GGML_ASSERT(%s) failed",
"p1 > 0");
v29 = 0;
largest_pow10 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::find_largest_pow10(
(nlohmann::json_abi_v3_11_3::detail::dtoa_impl *)v31[0],
(unsigned int)&v29,
(unsigned int *)v14);
while ( largest_pow10 > 0 )
{
v27 = v31[0] / v29;
v26 = v31[0] % v29;
if ( v31[0] / v29 > 9 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17571LL,
"GGML_ASSERT(%s) failed",
"d <= 9");
v15 = v45;
v16 = (*v44)++;
*((_BYTE *)v15 + v16) = v27 + 48;
v31[0] = v26;
--largest_pow10;
v25 = v30 + ((unsigned long long)v26 << -(char)v32);
if ( v25 <= v42 )
{
*(_DWORD *)v43 += largest_pow10;
return nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_round(
v45,
(char *)(unsigned int)*v44,
v37[0],
v42,
v25,
(unsigned long long)v29 << -(char)v32,
v20);
}
v29 /= 0xAu;
}
if ( v30 <= v42 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17658LL,
"GGML_ASSERT(%s) failed",
"p2 > delta");
v24 = 0;
do
{
v21 = v30;
if ( v21 > std::numeric_limits<unsigned long>::max() / 0xAuLL )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17669LL,
"GGML_ASSERT(%s) failed",
"p2 <= (std::numeric_limits<std::uint64_t>::max)() / 10");
v30 *= 10LL;
v23 = v30 >> -(char)v32;
v22 = (*(_QWORD *)&v31[1] - 1LL) & v30;
if ( v23 > 9 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17678LL,
"GGML_ASSERT(%s) failed",
"d <= 9");
v18 = v45;
v19 = (*v44)++;
*((_BYTE *)v18 + v19) = v23 + 48;
v30 = v22;
++v24;
v42 *= 10LL;
*(_QWORD *)v37 *= 10LL;
}
while ( v22 > v42 );
*(_DWORD *)v43 -= v24;
return nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_round(
v45,
(char *)(unsigned int)*v44,
v37[0],
v42,
v30,
*(unsigned long long *)&v31[1],
v21);
}
|
__normal_iterator:
MOV qword ptr [RSP + -0x8],RDI
MOV qword ptr [RSP + -0x10],RSI
MOV RAX,qword ptr [RSP + -0x8]
MOV RCX,qword ptr [RSP + -0x10]
MOV RCX,qword ptr [RCX]
MOV qword ptr [RAX],RCX
RET
|
/* __gnu_cxx::__normal_iterator<llama_logit_bias const*, std::vector<llama_logit_bias,
std::allocator<llama_logit_bias> > >::__normal_iterator(llama_logit_bias const* const&) */
void __thiscall
__gnu_cxx::
__normal_iterator<llama_logit_bias_const*,std::vector<llama_logit_bias,std::allocator<llama_logit_bias>>>
::__normal_iterator(__normal_iterator<llama_logit_bias_const*,std::vector<llama_logit_bias,std::allocator<llama_logit_bias>>>
*this,llama_logit_bias **param_1)
{
*(llama_logit_bias **)this = *param_1;
return;
}
|
|
60,735
|
mysql_find_charset_nr
|
eloqsql/libmariadb/libmariadb/ma_charset.c
|
const MARIADB_CHARSET_INFO * mysql_find_charset_nr(unsigned int charsetnr)
{
const MARIADB_CHARSET_INFO * c = mariadb_compiled_charsets;
if (my_collation_id_is_uca1400(charsetnr))
charsetnr= my_uca1400_collation_id_uca400_compat(charsetnr);
do {
if (c->nr == charsetnr) {
return(c);
}
++c;
} while (c[0].nr != 0);
return(NULL);
}
|
O3
|
c
|
mysql_find_charset_nr:
pushq %rbp
movq %rsp, %rbp
movl %edi, %eax
andl $0xfffff800, %eax # imm = 0xFFFFF800
cmpl $0x800, %eax # imm = 0x800
jne 0x2ffaf
movl %edi, %eax
andl $0xf8, %eax
leaq 0x16696(%rip), %rcx # 0x46600
cmpq $0x0, 0x8(%rcx,%rax,4)
je 0x2ffaf
movl %edi, %edx
shrl $0x8, %edx
andl $0x7, %edx
cmpl $0x4, %edx
ja 0x2ffaf
leaq (%rcx,%rax,4), %rax
leaq 0x83be(%rip), %rcx # 0x38348
movslq (%rcx,%rdx,4), %rdx
addq %rcx, %rdx
jmpq *%rdx
movzwl 0x10(%rax), %edi
jmp 0x2ffaf
movzwl 0x18(%rax), %edi
jmp 0x2ffaf
movzwl 0x14(%rax), %edi
jmp 0x2ffaf
movzwl 0x16(%rax), %edi
jmp 0x2ffaf
movzwl 0x12(%rax), %edi
leaq 0xfc8a(%rip), %rax # 0x3fc40
movl $0x1, %ecx
cmpl %edi, %ecx
je 0x2ffcc
movl 0x48(%rax), %ecx
addq $0x48, %rax
testl %ecx, %ecx
jne 0x2ffbb
xorl %eax, %eax
popq %rbp
retq
|
mysql_find_charset_nr:
push rbp
mov rbp, rsp
mov eax, edi
and eax, 0FFFFF800h
cmp eax, 800h
jnz short def_2FF91; jumptable 000000000002FF91 default case
mov eax, edi
and eax, 0F8h
lea rcx, my_uca1400_collation_definitions
cmp qword ptr [rcx+rax*4+8], 0
jz short def_2FF91; jumptable 000000000002FF91 default case
mov edx, edi
shr edx, 8
and edx, 7
cmp edx, 4; switch 5 cases
ja short def_2FF91; jumptable 000000000002FF91 default case
lea rax, [rcx+rax*4]
lea rcx, jpt_2FF91
movsxd rdx, ds:(jpt_2FF91 - 38348h)[rcx+rdx*4]
add rdx, rcx
jmp rdx; switch jump
loc_2FF93:
movzx edi, word ptr [rax+10h]; jumptable 000000000002FF91 case 0
jmp short def_2FF91; jumptable 000000000002FF91 default case
loc_2FF99:
movzx edi, word ptr [rax+18h]; jumptable 000000000002FF91 case 4
jmp short def_2FF91; jumptable 000000000002FF91 default case
loc_2FF9F:
movzx edi, word ptr [rax+14h]; jumptable 000000000002FF91 case 2
jmp short def_2FF91; jumptable 000000000002FF91 default case
loc_2FFA5:
movzx edi, word ptr [rax+16h]; jumptable 000000000002FF91 case 3
jmp short def_2FF91; jumptable 000000000002FF91 default case
loc_2FFAB:
movzx edi, word ptr [rax+12h]; jumptable 000000000002FF91 case 1
def_2FF91:
lea rax, mariadb_compiled_charsets; jumptable 000000000002FF91 default case
mov ecx, 1
loc_2FFBB:
cmp ecx, edi
jz short loc_2FFCC
mov ecx, [rax+48h]
add rax, 48h ; 'H'
test ecx, ecx
jnz short loc_2FFBB
xor eax, eax
loc_2FFCC:
pop rbp
retn
|
_DWORD * mysql_find_charset_nr(unsigned int a1)
{
long long v1; // rax
unsigned __int16 *v2; // rax
_DWORD *result; // rax
int v4; // ecx
if ( (a1 & 0xFFFFF800) == 0x800 )
{
v1 = (unsigned __int8)a1 & 0xF8;
if ( *(_UNKNOWN **)((char *)&my_uca1400_collation_definitions + 4 * v1 + 8) )
{
v2 = (unsigned __int16 *)&my_uca1400_collation_definitions + 2 * v1;
switch ( (a1 >> 8) & 7 )
{
case 0u:
a1 = v2[8];
break;
case 1u:
a1 = v2[9];
break;
case 2u:
a1 = v2[10];
break;
case 3u:
a1 = v2[11];
break;
case 4u:
a1 = v2[12];
break;
default:
break;
}
}
}
result = &mariadb_compiled_charsets;
v4 = 1;
while ( v4 != a1 )
{
v4 = result[18];
result += 18;
if ( !v4 )
return 0LL;
}
return result;
}
|
mysql_find_charset_nr:
PUSH RBP
MOV RBP,RSP
MOV EAX,EDI
AND EAX,0xfffff800
CMP EAX,0x800
JNZ 0x0012ffaf
MOV EAX,EDI
AND EAX,0xf8
LEA RCX,[0x146600]
CMP qword ptr [RCX + RAX*0x4 + 0x8],0x0
JZ 0x0012ffaf
MOV EDX,EDI
SHR EDX,0x8
AND EDX,0x7
CMP EDX,0x4
JA 0x0012ffaf
LEA RAX,[RCX + RAX*0x4]
LEA RCX,[0x138348]
MOVSXD RDX,dword ptr [RCX + RDX*0x4]
ADD RDX,RCX
switchD:
JMP RDX
caseD_0:
MOVZX EDI,word ptr [RAX + 0x10]
JMP 0x0012ffaf
caseD_4:
MOVZX EDI,word ptr [RAX + 0x18]
JMP 0x0012ffaf
caseD_2:
MOVZX EDI,word ptr [RAX + 0x14]
JMP 0x0012ffaf
caseD_3:
MOVZX EDI,word ptr [RAX + 0x16]
JMP 0x0012ffaf
caseD_1:
MOVZX EDI,word ptr [RAX + 0x12]
LAB_0012ffaf:
LEA RAX,[0x13fc40]
MOV ECX,0x1
LAB_0012ffbb:
CMP ECX,EDI
JZ 0x0012ffcc
MOV ECX,dword ptr [RAX + 0x48]
ADD RAX,0x48
TEST ECX,ECX
JNZ 0x0012ffbb
XOR EAX,EAX
LAB_0012ffcc:
POP RBP
RET
|
int4 * mysql_find_charset_nr(uint param_1)
{
long lVar1;
int4 *puVar2;
uint uVar3;
if ((((param_1 & 0xfffff800) == 0x800) &&
(*(long *)(my_uca1400_collation_definitions + (ulong)(param_1 & 0xf8) * 4 + 8) != 0)) &&
(uVar3 = param_1 >> 8 & 7, uVar3 < 5)) {
lVar1 = (ulong)(param_1 & 0xf8) * 4;
switch(uVar3) {
case 0:
param_1 = (uint)*(ushort *)(my_uca1400_collation_definitions + lVar1 + 0x10);
break;
case 1:
param_1 = (uint)*(ushort *)(my_uca1400_collation_definitions + lVar1 + 0x12);
break;
case 2:
param_1 = (uint)*(ushort *)(my_uca1400_collation_definitions + lVar1 + 0x14);
break;
case 3:
param_1 = (uint)*(ushort *)(my_uca1400_collation_definitions + lVar1 + 0x16);
break;
case 4:
param_1 = (uint)*(ushort *)(my_uca1400_collation_definitions + lVar1 + 0x18);
}
}
puVar2 = &mariadb_compiled_charsets;
uVar3 = 1;
do {
if (uVar3 == param_1) {
return puVar2;
}
uVar3 = puVar2[0x12];
puVar2 = puVar2 + 0x12;
} while (uVar3 != 0);
return (int4 *)0x0;
}
|
|
60,736
|
nglog::LogDestination::LogToStderr()
|
ng-log[P]ng-log/src/logging.cc
|
inline void LogDestination::LogToStderr() {
// *Don't* put this stuff in a mutex lock, since SetStderrLogging &
// SetLogDestination already do the locking!
SetStderrLogging(NGLOG_INFO); // thus everything is "also" logged to stderr
for (int i = 0; i < NUM_SEVERITIES; ++i) {
SetLogDestination(static_cast<LogSeverity>(i),
""); // "" turns off logging to a logfile
}
}
|
O0
|
cpp
|
nglog::LogDestination::LogToStderr():
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
xorl %edi, %edi
callq 0x1e7c0
movl $0x0, -0x4(%rbp)
cmpl $0x4, -0x4(%rbp)
jge 0x1e8a6
movl -0x4(%rbp), %edi
leaq 0x33681(%rip), %rsi # 0x51f17
callq 0x1e240
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x1e886
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
|
_ZN5nglog14LogDestination11LogToStderrEv:
push rbp
mov rbp, rsp
sub rsp, 10h
xor edi, edi
call _ZN5nglog14LogDestination16SetStderrLoggingENS_11LogSeverityE; nglog::LogDestination::SetStderrLogging(nglog::LogSeverity)
mov [rbp+var_4], 0
loc_1E886:
cmp [rbp+var_4], 4
jge short loc_1E8A6
mov edi, [rbp+var_4]
lea rsi, asc_51F15+2; ""
call _ZN5nglog14LogDestination17SetLogDestinationENS_11LogSeverityEPKc; nglog::LogDestination::SetLogDestination(nglog::LogSeverity,char const*)
mov eax, [rbp+var_4]
add eax, 1
mov [rbp+var_4], eax
jmp short loc_1E886
loc_1E8A6:
add rsp, 10h
pop rbp
retn
|
long long nglog::LogDestination::LogToStderr(nglog::LogDestination *this)
{
long long result; // rax
signed int i; // [rsp+Ch] [rbp-4h]
result = nglog::LogDestination::SetStderrLogging(0);
for ( i = 0; i < 4; ++i )
{
nglog::LogDestination::SetLogDestination(i, "");
result = (unsigned int)(i + 1);
}
return result;
}
|
LogToStderr:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
XOR EDI,EDI
CALL 0x0011e7c0
MOV dword ptr [RBP + -0x4],0x0
LAB_0011e886:
CMP dword ptr [RBP + -0x4],0x4
JGE 0x0011e8a6
MOV EDI,dword ptr [RBP + -0x4]
LEA RSI,[0x151f17]
CALL 0x0011e240
MOV EAX,dword ptr [RBP + -0x4]
ADD EAX,0x1
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0011e886
LAB_0011e8a6:
ADD RSP,0x10
POP RBP
RET
|
/* nglog::LogDestination::LogToStderr() */
void nglog::LogDestination::LogToStderr(void)
{
int local_c;
SetStderrLogging(0);
for (local_c = 0; local_c < 4; local_c = local_c + 1) {
SetLogDestination(local_c,&DAT_00151f17);
}
return;
}
|
|
60,737
|
testing::internal::FilePath::GetCurrentDir()
|
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest-filepath.cc
|
FilePath FilePath::GetCurrentDir() {
#if defined(GTEST_OS_WINDOWS_MOBILE) || defined(GTEST_OS_WINDOWS_PHONE) || \
defined(GTEST_OS_WINDOWS_RT) || defined(GTEST_OS_ESP8266) || \
defined(GTEST_OS_ESP32) || defined(GTEST_OS_XTENSA) || \
defined(GTEST_OS_QURT) || defined(GTEST_OS_NXP_QN9090) || \
defined(GTEST_OS_NRF52)
// These platforms do not have a current directory, so we just return
// something reasonable.
return FilePath(kCurrentDirectoryString);
#elif defined(GTEST_OS_WINDOWS)
char cwd[GTEST_PATH_MAX_ + 1] = {'\0'};
return FilePath(_getcwd(cwd, sizeof(cwd)) == nullptr ? "" : cwd);
#else
char cwd[GTEST_PATH_MAX_ + 1] = {'\0'};
char* result = getcwd(cwd, sizeof(cwd));
#ifdef GTEST_OS_NACL
// getcwd will likely fail in NaCl due to the sandbox, so return something
// reasonable. The user may have provided a shim implementation for getcwd,
// however, so fallback only when failure is detected.
return FilePath(result == nullptr ? kCurrentDirectoryString : cwd);
#endif // GTEST_OS_NACL
return FilePath(result == nullptr ? "" : cwd);
#endif // GTEST_OS_WINDOWS_MOBILE
}
|
O0
|
cpp
|
testing::internal::FilePath::GetCurrentDir():
subq $0x1088, %rsp # imm = 0x1088
movq %rdi, 0x20(%rsp)
movq %rdi, %rax
movq %rax, 0x28(%rsp)
movq %rdi, 0x1080(%rsp)
leaq 0x70(%rsp), %rdi
xorl %esi, %esi
movl $0x1001, %edx # imm = 0x1001
callq 0x15400
leaq 0x70(%rsp), %rdi
movl $0x1001, %esi # imm = 0x1001
callq 0x153b0
movq %rax, 0x68(%rsp)
cmpq $0x0, 0x68(%rsp)
jne 0xf74a7
leaq 0x5eb14(%rip), %rax # 0x155fb4
movq %rax, 0x18(%rsp)
jmp 0xf74b1
leaq 0x70(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x47(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x15de0
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x48(%rsp), %rdi
callq 0x1bd40
jmp 0xf74e0
movq 0x20(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x1242e0
jmp 0xf74f1
leaq 0x48(%rsp), %rdi
callq 0x1c160
leaq 0x47(%rsp), %rdi
callq 0x157f0
movq 0x28(%rsp), %rax
addq $0x1088, %rsp # imm = 0x1088
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x38(%rsp)
movl %eax, 0x34(%rsp)
jmp 0xf753a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x38(%rsp)
movl %eax, 0x34(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x1c160
leaq 0x47(%rsp), %rdi
callq 0x157f0
movq 0x38(%rsp), %rdi
callq 0x15dd0
nop
|
_ZN7testing8internal8FilePath13GetCurrentDirEv:
sub rsp, 1088h
mov [rsp+1088h+var_1068], rdi
mov rax, rdi
mov [rsp+1088h+var_1060], rax
mov [rsp+1088h+var_8], rdi
lea rdi, [rsp+1088h+var_1018]
xor esi, esi
mov edx, 1001h
call _memset
lea rdi, [rsp+1088h+var_1018]
mov esi, 1001h
call _getcwd
mov [rsp+1088h+var_1020], rax
cmp [rsp+1088h+var_1020], 0
jnz short loc_F74A7
lea rax, aSFromSSMsTotal+1Ah; ""
mov [rsp+1088h+var_1070], rax
jmp short loc_F74B1
loc_F74A7:
lea rax, [rsp+1088h+var_1018]
mov [rsp+1088h+var_1070], rax
loc_F74B1:
mov rax, [rsp+1088h+var_1070]
mov [rsp+1088h+var_1080], rax
lea rdi, [rsp+1088h+var_1041]
mov [rsp+1088h+var_1078], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rsi, [rsp+1088h+var_1080]
mov rdx, [rsp+1088h+var_1078]
lea rdi, [rsp+1088h+var_1040]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_F74E0:
mov rdi, [rsp+1088h+var_1068]
lea rsi, [rsp+1088h+var_1040]
call _ZN7testing8internal8FilePathC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::FilePath::FilePath(std::string)
jmp short $+2
loc_F74F1:
lea rdi, [rsp+1088h+var_1040]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1088h+var_1041]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
mov rax, [rsp+1088h+var_1060]
add rsp, 1088h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_30], rcx
mov [rsp+arg_2C], eax
jmp short loc_F753A
mov rcx, rax
mov eax, edx
mov [rsp+arg_30], rcx
mov [rsp+arg_2C], eax
lea rdi, [rsp+arg_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_F753A:
lea rdi, [rsp+arg_3F]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
mov rdi, [rsp+arg_30]
call __Unwind_Resume
|
testing::internal::FilePath * testing::internal::FilePath::GetCurrentDir(testing::internal::FilePath *this)
{
long long v1; // rdx
int v2; // edx
int v3; // ecx
int v4; // r8d
int v5; // r9d
char *v7; // [rsp+18h] [rbp-1070h]
char v8; // [rsp+47h] [rbp-1041h] BYREF
char v9[32]; // [rsp+48h] [rbp-1040h] BYREF
_BYTE v11[4112]; // [rsp+70h] [rbp-1018h] BYREF
testing::internal::FilePath *v12; // [rsp+1080h] [rbp-8h]
v12 = this;
memset(v11, 0LL, 4097LL);
if ( getcwd(v11, 4097LL) )
v7 = v11;
else
v7 = "";
std::allocator<char>::allocator(&v8, 4097LL, v1);
std::string::basic_string<std::allocator<char>>((long long)v9, (long long)v7, (long long)&v8);
testing::internal::FilePath::FilePath((_DWORD)this, (unsigned int)v9, v2, v3, v4, v5);
std::string::~string(v9);
std::allocator<char>::~allocator(&v8, v9);
return this;
}
|
GetCurrentDir:
SUB RSP,0x1088
MOV qword ptr [RSP + 0x20],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x28],RAX
MOV qword ptr [RSP + 0x1080],RDI
LEA RDI,[RSP + 0x70]
XOR ESI,ESI
MOV EDX,0x1001
CALL 0x00115400
LEA RDI,[RSP + 0x70]
MOV ESI,0x1001
CALL 0x001153b0
MOV qword ptr [RSP + 0x68],RAX
CMP qword ptr [RSP + 0x68],0x0
JNZ 0x001f74a7
LEA RAX,[0x255fb4]
MOV qword ptr [RSP + 0x18],RAX
JMP 0x001f74b1
LAB_001f74a7:
LEA RAX,[RSP + 0x70]
MOV qword ptr [RSP + 0x18],RAX
LAB_001f74b1:
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x8],RAX
LEA RDI,[RSP + 0x47]
MOV qword ptr [RSP + 0x10],RDI
CALL 0x00115de0
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
LAB_001f74d4:
LEA RDI,[RSP + 0x48]
CALL 0x0011bd40
JMP 0x001f74e0
LAB_001f74e0:
MOV RDI,qword ptr [RSP + 0x20]
LEA RSI,[RSP + 0x48]
CALL 0x002242e0
LAB_001f74ef:
JMP 0x001f74f1
LAB_001f74f1:
LEA RDI,[RSP + 0x48]
CALL 0x0011c160
LEA RDI,[RSP + 0x47]
CALL 0x001157f0
MOV RAX,qword ptr [RSP + 0x28]
ADD RSP,0x1088
RET
|
/* testing::internal::FilePath::GetCurrentDir() */
FilePath * __thiscall testing::internal::FilePath::GetCurrentDir(FilePath *this)
{
char *local_1070;
allocator local_1041;
string local_1040 [32];
char *local_1020;
char local_1018 [4112];
FilePath *local_8;
local_8 = this;
memset(local_1018,0,0x1001);
local_1020 = getcwd(local_1018,0x1001);
if (local_1020 == (char *)0x0) {
local_1070 = "";
}
else {
local_1070 = local_1018;
}
std::allocator<char>::allocator();
/* try { // try from 001f74d4 to 001f74dd has its CatchHandler @ 001f7512 */
std::__cxx11::string::string<std::allocator<char>>(local_1040,local_1070,&local_1041);
/* try { // try from 001f74e0 to 001f74ee has its CatchHandler @ 001f7522 */
FilePath(this,local_1040);
std::__cxx11::string::~string(local_1040);
std::allocator<char>::~allocator((allocator<char> *)&local_1041);
return this;
}
|
|
60,738
|
sp_get_polygon_mbr
|
eloqsql/storage/maria/ma_sp_key.c
|
static int sp_get_polygon_mbr(uchar *(*wkb), uchar *end, uint n_dims,
uchar byte_order, double *mbr)
{
uint n_linear_rings;
uint n_points;
n_linear_rings = uint4korr((*wkb));
(*wkb) += 4;
for (; n_linear_rings > 0; --n_linear_rings)
{
n_points = uint4korr((*wkb));
(*wkb) += 4;
for (; n_points > 0; --n_points)
{
/* Add next point to mbr */
if (sp_add_point_to_mbr(wkb, end, n_dims, byte_order, mbr))
return -1;
}
}
return 0;
}
|
O0
|
c
|
sp_get_polygon_mbr:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movb %cl, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movb %al, -0x1d(%rbp)
movq %r8, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x4, %rcx
movq %rcx, (%rax)
cmpl $0x0, -0x2c(%rbp)
jbe 0x9c81e
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl (%rax), %eax
movl %eax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x4, %rcx
movq %rcx, (%rax)
cmpl $0x0, -0x30(%rbp)
jbe 0x9c811
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
movb -0x1d(%rbp), %al
movq -0x28(%rbp), %r8
movzbl %al, %ecx
callq 0x9c830
cmpl $0x0, %eax
je 0x9c804
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x9c825
jmp 0x9c806
movl -0x30(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x9c7d6
jmp 0x9c813
movl -0x2c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x9c7b6
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nop
|
sp_get_polygon_mbr:
push rbp
mov rbp, rsp
sub rsp, 30h
mov al, cl
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov [rbp+var_1D], al
mov [rbp+var_28], r8
mov rax, [rbp+var_10]
mov rax, [rax]
mov eax, [rax]
mov [rbp+var_2C], eax
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 4
mov [rax], rcx
loc_9C7B6:
cmp [rbp+var_2C], 0
jbe short loc_9C81E
mov rax, [rbp+var_10]
mov rax, [rax]
mov eax, [rax]
mov [rbp+var_30], eax
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 4
mov [rax], rcx
loc_9C7D6:
cmp [rbp+var_30], 0
jbe short loc_9C811
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov edx, [rbp+var_1C]
mov al, [rbp+var_1D]
mov r8, [rbp+var_28]
movzx ecx, al
call sp_add_point_to_mbr
cmp eax, 0
jz short loc_9C804
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_9C825
loc_9C804:
jmp short $+2
loc_9C806:
mov eax, [rbp+var_30]
add eax, 0FFFFFFFFh
mov [rbp+var_30], eax
jmp short loc_9C7D6
loc_9C811:
jmp short $+2
loc_9C813:
mov eax, [rbp+var_2C]
add eax, 0FFFFFFFFh
mov [rbp+var_2C], eax
jmp short loc_9C7B6
loc_9C81E:
mov [rbp+var_4], 0
loc_9C825:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
|
long long sp_get_polygon_mbr(_DWORD **a1, long long a2, unsigned int a3, unsigned __int8 a4, long long a5)
{
int j; // [rsp+0h] [rbp-30h]
int i; // [rsp+4h] [rbp-2Ch]
for ( i = *(*a1)++; i; --i )
{
for ( j = *(*a1)++; j; --j )
{
if ( (unsigned int)sp_add_point_to_mbr(a1, a2, a3, a4, a5) )
return (unsigned int)-1;
}
}
return 0;
}
|
sp_get_polygon_mbr:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV AL,CL
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV byte ptr [RBP + -0x1d],AL
MOV qword ptr [RBP + -0x28],R8
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x2c],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x4
MOV qword ptr [RAX],RCX
LAB_0019c7b6:
CMP dword ptr [RBP + -0x2c],0x0
JBE 0x0019c81e
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x30],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x4
MOV qword ptr [RAX],RCX
LAB_0019c7d6:
CMP dword ptr [RBP + -0x30],0x0
JBE 0x0019c811
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV EDX,dword ptr [RBP + -0x1c]
MOV AL,byte ptr [RBP + -0x1d]
MOV R8,qword ptr [RBP + -0x28]
MOVZX ECX,AL
CALL 0x0019c830
CMP EAX,0x0
JZ 0x0019c804
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x0019c825
LAB_0019c804:
JMP 0x0019c806
LAB_0019c806:
MOV EAX,dword ptr [RBP + -0x30]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x30],EAX
JMP 0x0019c7d6
LAB_0019c811:
JMP 0x0019c813
LAB_0019c813:
MOV EAX,dword ptr [RBP + -0x2c]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x2c],EAX
JMP 0x0019c7b6
LAB_0019c81e:
MOV dword ptr [RBP + -0x4],0x0
LAB_0019c825:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4
sp_get_polygon_mbr(long *param_1,int8 param_2,int4 param_3,int1 param_4,
int8 param_5)
{
int iVar1;
int local_38;
int local_34;
local_34 = *(int *)*param_1;
*param_1 = *param_1 + 4;
do {
if (local_34 == 0) {
return 0;
}
local_38 = *(int *)*param_1;
*param_1 = *param_1 + 4;
for (; local_38 != 0; local_38 = local_38 + -1) {
iVar1 = sp_add_point_to_mbr(param_1,param_2,param_3,param_4,param_5);
if (iVar1 != 0) {
return 0xffffffff;
}
}
local_34 = local_34 + -1;
} while( true );
}
|
|
60,739
|
recursive_free
|
eloqsql/mysys/lf_dynarray.c
|
static void recursive_free(void **alloc, int level)
{
if (!alloc)
return;
if (level)
{
int i;
for (i= 0; i < LF_DYNARRAY_LEVEL_LENGTH; i++)
recursive_free(alloc[i], level-1);
my_free(alloc);
}
else
my_free(alloc[-1]);
}
|
O0
|
c
|
recursive_free:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0xc7bd8
jmp 0xc7c28
cmpl $0x0, -0xc(%rbp)
je 0xc7c1b
movl $0x0, -0x10(%rbp)
cmpl $0x100, -0x10(%rbp) # imm = 0x100
jge 0xc7c10
movq -0x8(%rbp), %rax
movslq -0x10(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movl -0xc(%rbp), %esi
subl $0x1, %esi
callq 0xc7bc0
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0xc7be5
movq -0x8(%rbp), %rdi
callq 0xbe980
jmp 0xc7c28
movq -0x8(%rbp), %rax
movq -0x8(%rax), %rdi
callq 0xbe980
addq $0x10, %rsp
popq %rbp
retq
nop
|
recursive_free:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
cmp [rbp+var_8], 0
jnz short loc_C7BD8
jmp short loc_C7C28
loc_C7BD8:
cmp [rbp+var_C], 0
jz short loc_C7C1B
mov [rbp+var_10], 0
loc_C7BE5:
cmp [rbp+var_10], 100h
jge short loc_C7C10
mov rax, [rbp+var_8]
movsxd rcx, [rbp+var_10]
mov rdi, [rax+rcx*8]
mov esi, [rbp+var_C]
sub esi, 1
call recursive_free
mov eax, [rbp+var_10]
add eax, 1
mov [rbp+var_10], eax
jmp short loc_C7BE5
loc_C7C10:
mov rdi, [rbp+var_8]
call my_free
jmp short loc_C7C28
loc_C7C1B:
mov rax, [rbp+var_8]
mov rdi, [rax-8]
call my_free
loc_C7C28:
add rsp, 10h
pop rbp
retn
|
long long recursive_free(long long a1, int a2)
{
long long result; // rax
int i; // [rsp+0h] [rbp-10h]
if ( a1 )
{
if ( a2 )
{
for ( i = 0; i < 256; ++i )
recursive_free(*(_QWORD *)(a1 + 8LL * i), (unsigned int)(a2 - 1));
return my_free(a1);
}
else
{
return my_free(*(_QWORD *)(a1 - 8));
}
}
return result;
}
|
recursive_free:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
CMP qword ptr [RBP + -0x8],0x0
JNZ 0x001c7bd8
JMP 0x001c7c28
LAB_001c7bd8:
CMP dword ptr [RBP + -0xc],0x0
JZ 0x001c7c1b
MOV dword ptr [RBP + -0x10],0x0
LAB_001c7be5:
CMP dword ptr [RBP + -0x10],0x100
JGE 0x001c7c10
MOV RAX,qword ptr [RBP + -0x8]
MOVSXD RCX,dword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + RCX*0x8]
MOV ESI,dword ptr [RBP + -0xc]
SUB ESI,0x1
CALL 0x001c7bc0
MOV EAX,dword ptr [RBP + -0x10]
ADD EAX,0x1
MOV dword ptr [RBP + -0x10],EAX
JMP 0x001c7be5
LAB_001c7c10:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001be980
JMP 0x001c7c28
LAB_001c7c1b:
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + -0x8]
CALL 0x001be980
LAB_001c7c28:
ADD RSP,0x10
POP RBP
RET
|
void recursive_free(long param_1,int param_2)
{
int4 local_18;
if (param_1 != 0) {
if (param_2 == 0) {
my_free(*(int8 *)(param_1 + -8));
}
else {
for (local_18 = 0; local_18 < 0x100; local_18 = local_18 + 1) {
recursive_free(*(int8 *)(param_1 + (long)local_18 * 8),param_2 + -1);
}
my_free(param_1);
}
}
return;
}
|
|
60,740
|
my_getwd
|
eloqsql/mysys/my_getwd.c
|
int my_getwd(char * buf, size_t size, myf MyFlags)
{
char * pos;
DBUG_ENTER("my_getwd");
DBUG_PRINT("my",("buf:%p size: %u MyFlags %lu",
buf, (uint) size, MyFlags));
if (size < 1)
DBUG_RETURN(-1);
if (curr_dir[0]) /* Current pos is saved here */
(void) strmake(buf,&curr_dir[0],size-1);
else
{
#if defined(HAVE_GETCWD)
if (size < 2)
DBUG_RETURN(-1);
if (!getcwd(buf,(uint) (size-2)) && MyFlags & MY_WME)
{
my_errno=errno;
my_error(EE_GETWD,MYF(ME_BELL),errno);
DBUG_RETURN(-1);
}
#elif defined(HAVE_GETWD)
{
char pathname[MAXPATHLEN];
getwd(pathname);
strmake(buf,pathname,size-1);
}
#else
#error "No way to get current directory"
#endif
if (*((pos=strend(buf))-1) != FN_LIBCHAR) /* End with FN_LIBCHAR */
{
pos[0]= FN_LIBCHAR;
pos[1]=0;
}
(void) strmake(&curr_dir[0],buf, (size_t) (FN_REFLEN-1));
}
DBUG_RETURN(0);
}
|
O3
|
c
|
my_getwd:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl $0xffffffff, %ebx # imm = 0xFFFFFFFF
testq %rsi, %rsi
je 0x4b851
movq %rdx, %r15
movq %rsi, %rdx
movq %rdi, %r14
leaq 0x3856b0(%rip), %rax # 0x3d0ea0
cmpb $0x0, (%rax)
je 0x4b80b
decq %rdx
leaq 0x3856a1(%rip), %rsi # 0x3d0ea0
movq %r14, %rdi
callq 0x79f68
xorl %ebx, %ebx
jmp 0x4b851
cmpq $0x1, %rdx
je 0x4b851
addl $-0x2, %edx
movq %r14, %rdi
movq %rdx, %rsi
callq 0x26190
testb $0x10, %r15b
je 0x4b85e
testq %rax, %rax
jne 0x4b85e
callq 0x26060
movq %rax, %r14
movl (%rax), %r15d
callq 0x4629e
movl %r15d, (%rax)
movl (%r14), %edx
movl $0x4, %esi
movl $0x10, %edi
xorl %eax, %eax
callq 0x4b447
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x79f20
cmpb $0x2f, -0x1(%rax)
je 0x4b871
movw $0x2f, (%rax)
leaq 0x385628(%rip), %rdi # 0x3d0ea0
movl $0x1ff, %edx # imm = 0x1FF
movq %r14, %rsi
jmp 0x4b802
|
my_getwd:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov ebx, 0FFFFFFFFh
test rsi, rsi
jz short loc_4B851
mov r15, rdx
mov rdx, rsi
mov r14, rdi
lea rax, curr_dir
cmp byte ptr [rax], 0
jz short loc_4B80B
dec rdx
lea rsi, curr_dir
mov rdi, r14
loc_4B802:
call strmake
xor ebx, ebx
jmp short loc_4B851
loc_4B80B:
cmp rdx, 1
jz short loc_4B851
add edx, 0FFFFFFFEh
mov rdi, r14
mov rsi, rdx
call _getcwd
test r15b, 10h
jz short loc_4B85E
test rax, rax
jnz short loc_4B85E
call ___errno_location
mov r14, rax
mov r15d, [rax]
call _my_thread_var
mov [rax], r15d
mov edx, [r14]
mov esi, 4
mov edi, 10h
xor eax, eax
call my_error
loc_4B851:
mov eax, ebx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_4B85E:
mov rdi, r14
call strend
cmp byte ptr [rax-1], 2Fh ; '/'
jz short loc_4B871
mov word ptr [rax], 2Fh ; '/'
loc_4B871:
lea rdi, curr_dir
mov edx, 1FFh
mov rsi, r14
jmp short loc_4B802
|
long long my_getwd(_BYTE *a1, long long a2, char a3)
{
unsigned int v3; // ebx
_BYTE *v5; // r14
long long v6; // rdx
_BYTE *v7; // rsi
long long v8; // rax
unsigned int *v9; // r14
unsigned int v10; // r15d
_WORD *v12; // rax
v3 = -1;
if ( a2 )
{
v5 = a1;
if ( curr_dir[0] )
{
v6 = a2 - 1;
v7 = curr_dir;
}
else
{
if ( a2 == 1 )
return v3;
v8 = getcwd(a1, (unsigned int)(a2 - 2));
if ( (a3 & 0x10) != 0 && !v8 )
{
v9 = (unsigned int *)__errno_location(a1);
v10 = *v9;
*(_DWORD *)my_thread_var() = v10;
my_error(0x10u, 4, *v9);
return v3;
}
v12 = (_WORD *)strend(a1);
if ( *((_BYTE *)v12 - 1) != 47 )
*v12 = 47;
a1 = curr_dir;
v6 = 511LL;
v7 = v5;
}
strmake(a1, v7, v6);
return 0;
}
return v3;
}
|
my_getwd:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV EBX,0xffffffff
TEST RSI,RSI
JZ 0x0014b851
MOV R15,RDX
MOV RDX,RSI
MOV R14,RDI
LEA RAX,[0x4d0ea0]
CMP byte ptr [RAX],0x0
JZ 0x0014b80b
DEC RDX
LEA RSI,[0x4d0ea0]
MOV RDI,R14
LAB_0014b802:
CALL 0x00179f68
XOR EBX,EBX
JMP 0x0014b851
LAB_0014b80b:
CMP RDX,0x1
JZ 0x0014b851
ADD EDX,-0x2
MOV RDI,R14
MOV RSI,RDX
CALL 0x00126190
TEST R15B,0x10
JZ 0x0014b85e
TEST RAX,RAX
JNZ 0x0014b85e
CALL 0x00126060
MOV R14,RAX
MOV R15D,dword ptr [RAX]
CALL 0x0014629e
MOV dword ptr [RAX],R15D
MOV EDX,dword ptr [R14]
MOV ESI,0x4
MOV EDI,0x10
XOR EAX,EAX
CALL 0x0014b447
LAB_0014b851:
MOV EAX,EBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0014b85e:
MOV RDI,R14
CALL 0x00179f20
CMP byte ptr [RAX + -0x1],0x2f
JZ 0x0014b871
MOV word ptr [RAX],0x2f
LAB_0014b871:
LEA RDI,[0x4d0ea0]
MOV EDX,0x1ff
MOV RSI,R14
JMP 0x0014b802
|
int8 my_getwd(char *param_1,long param_2,ulong param_3)
{
int iVar1;
char *pcVar2;
int *piVar3;
int *piVar4;
int2 *puVar5;
char *pcVar6;
if (param_2 == 0) {
return 0xffffffff;
}
if (curr_dir == '\0') {
if (param_2 == 1) {
return 0xffffffff;
}
pcVar2 = getcwd(param_1,(ulong)((int)param_2 - 2));
if (((param_3 & 0x10) != 0) && (pcVar2 == (char *)0x0)) {
piVar3 = __errno_location();
iVar1 = *piVar3;
piVar4 = (int *)_my_thread_var();
*piVar4 = iVar1;
my_error(0x10,4,*piVar3);
return 0xffffffff;
}
puVar5 = (int2 *)strend(param_1);
if (*(char *)((long)puVar5 + -1) != '/') {
*puVar5 = 0x2f;
}
pcVar6 = &curr_dir;
param_2 = 0x1ff;
pcVar2 = param_1;
}
else {
param_2 = param_2 + -1;
pcVar2 = &curr_dir;
pcVar6 = param_1;
}
strmake(pcVar6,pcVar2,param_2);
return 0;
}
|
|
60,741
|
void reaction::ObserverGraph::resetNode<reaction::ObserverDataNode>(std::shared_ptr<reaction::ObserverDataNode>)
|
reaction/include/reaction/observerNode.h
|
void resetNode(std::shared_ptr<NodeType> node) {
if constexpr (std::is_same_v<typename NodeType::SourceType, DataNode>) {
for (auto dep : m_dataDependents[node]) {
m_dataObservers[dep].erase(node);
}
m_dataDependents[node].clear();
} else {
for (auto dep : m_actionDependents[node]) {
m_actionObservers[dep].erase(node);
}
m_actionDependents[node].clear();
}
}
|
O3
|
c
|
void reaction::ObserverGraph::resetNode<reaction::ObserverDataNode>(std::shared_ptr<reaction::ObserverDataNode>):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
callq 0x7bf4
movq 0x10(%rax), %r13
testq %r13, %r13
je 0x75f4
leaq 0x38(%r14), %r15
leaq 0x8(%rsp), %r12
movq 0xca20(%rip), %rbp # 0x13fc0
movq 0x8(%r13), %rax
movq %rax, 0x8(%rsp)
movq 0x10(%r13), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x75c6
cmpb $0x0, (%rbp)
je 0x75c2
incl 0x8(%rax)
jmp 0x75c6
lock
incl 0x8(%rax)
movq %r15, %rdi
movq %r12, %rsi
callq 0x7d98
movq %rax, %rdi
movq %rbx, %rsi
callq 0x7f3c
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x75eb
callq 0x4f16
movq (%r13), %r13
testq %r13, %r13
jne 0x75a0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x7bf4
movq %rax, %rdi
callq 0x6192
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x7628
callq 0x4f16
movq %rbx, %rdi
callq 0x2270
|
_ZN8reaction13ObserverGraph9resetNodeITkNS_6NodeCCENS_16ObserverDataNodeEEEvSt10shared_ptrIT_E:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, rsi
mov r14, rdi
call _ZNSt8__detail9_Map_baseISt10shared_ptrIN8reaction16ObserverDataNodeEESt4pairIKS4_St13unordered_setIS4_St4hashIS4_ESt8equal_toIS4_ESaIS4_EEESaISE_ENS_10_Select1stESB_S9_NS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb0ELb0ELb1EEELb1EEixERS6_; std::__detail::_Map_base<std::shared_ptr<reaction::ObserverDataNode>,std::pair<std::shared_ptr<reaction::ObserverDataNode> const,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode> const,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>>>>,std::__detail::_Select1st,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[](std::shared_ptr<reaction::ObserverDataNode> const&)
mov r13, [rax+10h]
test r13, r13
jz short loc_75F4
lea r15, [r14+38h]
lea r12, [rsp+48h+var_40]
mov rbp, cs:__libc_single_threaded_ptr
loc_75A0:
mov rax, [r13+8]
mov [rsp+48h+var_40], rax
mov rax, [r13+10h]
mov [rsp+48h+var_38], rax
test rax, rax
jz short loc_75C6
cmp byte ptr [rbp+0], 0
jz short loc_75C2
inc dword ptr [rax+8]
jmp short loc_75C6
loc_75C2:
lock inc dword ptr [rax+8]
loc_75C6:
mov rdi, r15
mov rsi, r12
call _ZNSt8__detail9_Map_baseISt10shared_ptrIN8reaction16ObserverDataNodeEESt4pairIKS4_St13unordered_mapIS4_St8functionIFvbEESt4hashIS4_ESt8equal_toIS4_ESaIS5_IS6_SA_EEEESaISI_ENS_10_Select1stESE_SC_NS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb0ELb0ELb1EEELb1EEixERS6_; std::__detail::_Map_base<std::shared_ptr<reaction::ObserverDataNode>,std::pair<std::shared_ptr<reaction::ObserverDataNode> const,std::unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::function<void ()(bool)>>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode> const,std::unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::function<void ()(bool)>>>>,std::__detail::_Select1st,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[](std::shared_ptr<reaction::ObserverDataNode> const&)
mov rdi, rax
mov rsi, rbx
call _ZNSt10_HashtableISt10shared_ptrIN8reaction16ObserverDataNodeEESt4pairIKS3_St8functionIFvbEEESaIS9_ENSt8__detail10_Select1stESt8equal_toIS3_ESt4hashIS3_ENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb0ELb0ELb1EEEE8_M_eraseESt17integral_constantIbLb1EERS5_; std::_Hashtable<std::shared_ptr<reaction::ObserverDataNode>,std::pair<std::shared_ptr<reaction::ObserverDataNode> const,std::function<void ()(bool)>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode> const,std::function<void ()(bool)>>>,std::__detail::_Select1st,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::_M_erase(std::integral_constant<bool,true>,std::shared_ptr<reaction::ObserverDataNode> const&)
mov rdi, [rsp+48h+var_38]
test rdi, rdi
jz short loc_75EB
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_75EB:
mov r13, [r13+0]
test r13, r13
jnz short loc_75A0
loc_75F4:
mov rdi, r14
mov rsi, rbx
call _ZNSt8__detail9_Map_baseISt10shared_ptrIN8reaction16ObserverDataNodeEESt4pairIKS4_St13unordered_setIS4_St4hashIS4_ESt8equal_toIS4_ESaIS4_EEESaISE_ENS_10_Select1stESB_S9_NS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb0ELb0ELb1EEELb1EEixERS6_; std::__detail::_Map_base<std::shared_ptr<reaction::ObserverDataNode>,std::pair<std::shared_ptr<reaction::ObserverDataNode> const,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode> const,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>>>>,std::__detail::_Select1st,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[](std::shared_ptr<reaction::ObserverDataNode> const&)
mov rdi, rax
call _ZNSt10_HashtableISt10shared_ptrIN8reaction16ObserverDataNodeEES3_SaIS3_ENSt8__detail9_IdentityESt8equal_toIS3_ESt4hashIS3_ENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb1ELb1EEEE5clearEv; std::_Hashtable<std::shared_ptr<reaction::ObserverDataNode>,std::shared_ptr<reaction::ObserverDataNode>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Identity,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,true,true>>::clear(void)
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, [rsp+arg_8]
test rdi, rdi
jz short loc_7628
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_7628:
mov rdi, rbx
call __Unwind_Resume
|
long long ZN8reaction13ObserverGraph9resetNodeITkNS_6NodeCCENS_16ObserverDataNodeEEEvSt10shared_ptrIT_E(
int a1,
long long a2,
int a3,
int a4,
int a5,
int a6)
{
int v6; // edx
int v7; // ecx
int v8; // r8d
int v9; // r9d
_QWORD *i; // r13
volatile signed __int32 *v11; // rax
long long v12; // rax
_QWORD *v13; // rax
int v15; // [rsp+0h] [rbp-48h]
long long v16; // [rsp+8h] [rbp-40h] BYREF
volatile signed __int32 *v17; // [rsp+10h] [rbp-38h]
for ( i = *(_QWORD **)(std::__detail::_Map_base<std::shared_ptr<reaction::ObserverDataNode>,std::pair<std::shared_ptr<reaction::ObserverDataNode> const,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode> const,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>>>>,std::__detail::_Select1st,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[](
a1,
a2,
a3,
a4,
a5,
a6)
+ 16); i; i = (_QWORD *)*i )
{
v16 = i[1];
v11 = (volatile signed __int32 *)i[2];
v17 = v11;
if ( v11 )
{
if ( _libc_single_threaded )
++*((_DWORD *)v11 + 2);
else
_InterlockedIncrement(v11 + 2);
}
v12 = std::__detail::_Map_base<std::shared_ptr<reaction::ObserverDataNode>,std::pair<std::shared_ptr<reaction::ObserverDataNode> const,std::unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::function<void ()(bool)>>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode> const,std::unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::function<void ()(bool)>>>>,std::__detail::_Select1st,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[](
a1 + 56,
(unsigned int)&v16,
v6,
v7,
v8,
v9,
v15,
v16);
std::_Hashtable<std::shared_ptr<reaction::ObserverDataNode>,std::pair<std::shared_ptr<reaction::ObserverDataNode> const,std::function<void ()(bool)>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode> const,std::function<void ()(bool)>>>,std::__detail::_Select1st,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::_M_erase(
v12,
a2);
if ( v17 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v17);
}
v13 = (_QWORD *)std::__detail::_Map_base<std::shared_ptr<reaction::ObserverDataNode>,std::pair<std::shared_ptr<reaction::ObserverDataNode> const,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode> const,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>>>>,std::__detail::_Select1st,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[](
a1,
a2,
v6,
v7,
v8,
v9);
return std::_Hashtable<std::shared_ptr<reaction::ObserverDataNode>,std::shared_ptr<reaction::ObserverDataNode>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Identity,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,true,true>>::clear(v13);
}
|
_ZN8reaction13ObserverGraph9resetNodeITkNS_6NodeCCENS_16ObserverDataNodeEEEvSt10shared_ptrIT_E:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,RSI
MOV R14,RDI
CALL 0x00107bf4
MOV R13,qword ptr [RAX + 0x10]
TEST R13,R13
JZ 0x001075f4
LEA R15,[R14 + 0x38]
LEA R12,[RSP + 0x8]
MOV RBP,qword ptr [0x00113fc0]
LAB_001075a0:
MOV RAX,qword ptr [R13 + 0x8]
MOV qword ptr [RSP + 0x8],RAX
MOV RAX,qword ptr [R13 + 0x10]
MOV qword ptr [RSP + 0x10],RAX
TEST RAX,RAX
JZ 0x001075c6
CMP byte ptr [RBP],0x0
JZ 0x001075c2
INC dword ptr [RAX + 0x8]
JMP 0x001075c6
LAB_001075c2:
INC.LOCK dword ptr [RAX + 0x8]
LAB_001075c6:
MOV RDI,R15
MOV RSI,R12
CALL 0x00107d98
MOV RDI,RAX
MOV RSI,RBX
CALL 0x00107f3c
LAB_001075dc:
MOV RDI,qword ptr [RSP + 0x10]
TEST RDI,RDI
JZ 0x001075eb
CALL 0x00104f16
LAB_001075eb:
MOV R13,qword ptr [R13]
TEST R13,R13
JNZ 0x001075a0
LAB_001075f4:
MOV RDI,R14
MOV RSI,RBX
CALL 0x00107bf4
MOV RDI,RAX
CALL 0x00106192
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void _ZN8reaction13ObserverGraph9resetNodeITkNS_6NodeCCENS_16ObserverDataNodeEEEvSt10shared_ptrIT_E
(_Map_base<std::shared_ptr<reaction::ObserverDataNode>,std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>>>,std::__detail::_Select1st,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>
*param_1,shared_ptr *param_2)
{
int *puVar1;
long lVar2;
int8 uVar3;
_Hashtable<std::shared_ptr<reaction::ObserverDataNode>,std::shared_ptr<reaction::ObserverDataNode>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Identity,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,true,true>>
*this;
long *plVar4;
long local_40;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_38;
lVar2 = std::__detail::
_Map_base<std::shared_ptr<reaction::ObserverDataNode>,std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>>>,std::__detail::_Select1st,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>
::operator[](param_1,param_2);
puVar1 = PTR___libc_single_threaded_00113fc0;
plVar4 = *(long **)(lVar2 + 0x10);
if (plVar4 != (long *)0x0) {
do {
local_40 = plVar4[1];
local_38 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)plVar4[2];
if (local_38 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
if (*puVar1 == '\0') {
LOCK();
*(int *)(local_38 + 8) = *(int *)(local_38 + 8) + 1;
UNLOCK();
}
else {
*(int *)(local_38 + 8) = *(int *)(local_38 + 8) + 1;
}
}
/* try { // try from 001075c6 to 001075db has its CatchHandler @ 00107616 */
uVar3 = std::__detail::
_Map_base<std::shared_ptr<reaction::ObserverDataNode>,std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::function<void(bool)>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::function<void(bool)>>>>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::function<void(bool)>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::function<void(bool)>>>>>>,std::__detail::_Select1st,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>
::operator[]((_Map_base<std::shared_ptr<reaction::ObserverDataNode>,std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::function<void(bool)>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::function<void(bool)>>>>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::unordered_map<std::shared_ptr<reaction::ObserverDataNode>,std::function<void(bool)>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::function<void(bool)>>>>>>,std::__detail::_Select1st,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>
*)(param_1 + 0x38),(shared_ptr *)&local_40);
std::
_Hashtable<std::shared_ptr<reaction::ObserverDataNode>,std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::function<void(bool)>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::function<void(bool)>>>,std::__detail::_Select1st,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>
::_M_erase(uVar3,param_2);
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);
}
plVar4 = (long *)*plVar4;
} while (plVar4 != (long *)0x0);
}
this = (_Hashtable<std::shared_ptr<reaction::ObserverDataNode>,std::shared_ptr<reaction::ObserverDataNode>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Identity,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,true,true>>
*)std::__detail::
_Map_base<std::shared_ptr<reaction::ObserverDataNode>,std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>>>,std::__detail::_Select1st,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>
::operator[](param_1,param_2);
std::
_Hashtable<std::shared_ptr<reaction::ObserverDataNode>,std::shared_ptr<reaction::ObserverDataNode>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Identity,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,true,true>>
::clear(this);
return;
}
|
|
60,742
|
int minja::Value::get<int>() const
|
monkey531[P]llama/common/minja.hpp
|
T get() const {
if (is_primitive()) return primitive_.get<T>();
throw std::runtime_error("get<T> not defined for this value type: " + dump());
}
|
O1
|
cpp
|
int minja::Value::get<int>() const:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r14
cmpq $0x0, 0x10(%rdi)
jne 0x915db
cmpq $0x0, 0x20(%r14)
jne 0x915db
cmpq $0x0, 0x30(%r14)
jne 0x915db
addq $0x40, %r14
movq %rsp, %rbx
movl $0x0, (%rbx)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x91694
movl (%rbx), %eax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl $0x10, %edi
callq 0x1b440
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x87128
leaq 0x624c4(%rip), %rsi # 0xf3ac7
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x78f1b
movb $0x1, %bpl
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x1be10
xorl %ebp, %ebp
movq 0x9e9c1(%rip), %rsi # 0x12ffe8
movq 0x9e922(%rip), %rdx # 0x12ff50
movq %rbx, %rdi
callq 0x1bf00
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9165c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1b8c0
jmp 0x9165c
movq %rax, %r14
movb $0x1, %bpl
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9167f
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1b8c0
jmp 0x9167f
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x9168c
movq %rbx, %rdi
callq 0x1b660
movq %r14, %rdi
callq 0x1bf90
|
_ZNK5minja5Value3getIiEET_v:
push rbp
push r14
push rbx
sub rsp, 40h
mov r14, rdi
cmp qword ptr [rdi+10h], 0
jnz short loc_915DB
cmp qword ptr [r14+20h], 0
jnz short loc_915DB
cmp qword ptr [r14+30h], 0
jnz short loc_915DB
add r14, 40h ; '@'
mov rbx, rsp
mov dword ptr [rbx], 0
mov rdi, r14
mov rsi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEiTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_
mov eax, [rbx]
add rsp, 40h
pop rbx
pop r14
pop rbp
retn
loc_915DB:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+58h+var_38]
mov rsi, r14
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aGetTNotDefined; "get<T> not defined for this value type:"...
mov rdi, rsp
lea rdx, [rsp+58h+var_38]
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:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rax, [rsp+58h+var_48]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_9165C
mov rsi, [rsp+58h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_9165C
mov r14, rax
mov bpl, 1
loc_9165C:
lea rax, [rsp+58h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_9167F
mov rsi, [rsp+58h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_9167F
mov r14, rax
mov bpl, 1
loc_9167F:
test bpl, bpl
jz short loc_9168C
mov rdi, rbx; void *
call ___cxa_free_exception
loc_9168C:
mov rdi, r14
call __Unwind_Resume
|
long long minja::Value::get<int>(_QWORD *a1)
{
void *exception; // rbx
_DWORD v3[4]; // [rsp+0h] [rbp-58h] BYREF
_BYTE v4[16]; // [rsp+20h] [rbp-38h] BYREF
if ( a1[2] || a1[4] || a1[6] )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v4, (long long)a1, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v3, (long long)"get<T> not defined for this value type: ", (long long)v4);
std::runtime_error::runtime_error(exception, v3);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v3[0] = 0;
ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEiTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_(
a1 + 8,
v3);
return v3[0];
}
|
get<int>:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x40
MOV R14,RDI
CMP qword ptr [RDI + 0x10],0x0
JNZ 0x001915db
CMP qword ptr [R14 + 0x20],0x0
JNZ 0x001915db
CMP qword ptr [R14 + 0x30],0x0
JNZ 0x001915db
ADD R14,0x40
MOV RBX,RSP
MOV dword ptr [RBX],0x0
MOV RDI,R14
MOV RSI,RBX
CALL 0x00191694
MOV EAX,dword ptr [RBX]
ADD RSP,0x40
POP RBX
POP R14
POP RBP
RET
LAB_001915db:
MOV EDI,0x10
CALL 0x0011b440
MOV RBX,RAX
LAB_001915e8:
LEA RDI,[RSP + 0x20]
MOV RSI,R14
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x00187128
LAB_001915fc:
LEA RSI,[0x1f3ac7]
MOV RDI,RSP
LEA RDX,[RSP + 0x20]
CALL 0x00178f1b
MOV BPL,0x1
LAB_00191613:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x0011be10
XOR EBP,EBP
MOV RSI,qword ptr [0x0022ffe8]
MOV RDX,qword ptr [0x0022ff50]
MOV RDI,RBX
CALL 0x0011bf00
|
/* int minja::Value::get<int>() const */
int __thiscall minja::Value::get<int>(Value *this)
{
runtime_error *this_00;
int local_58 [8];
int1 local_38 [32];
if (((*(long *)(this + 0x10) == 0) && (*(long *)(this + 0x20) == 0)) &&
(*(long *)(this + 0x30) == 0)) {
local_58[0] = 0;
_ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEiTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_
(this + 0x40,local_58);
return local_58[0];
}
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001915e8 to 001915fb has its CatchHandler @ 00191679 */
dump_abi_cxx11_((int)local_38,SUB81(this,0));
/* try { // try from 001915fc to 0019160f has its CatchHandler @ 00191656 */
std::operator+((char *)local_58,(string *)"get<T> not defined for this value type: ");
/* try { // try from 00191613 to 00191635 has its CatchHandler @ 00191636 */
std::runtime_error::runtime_error(this_00,(string *)local_58);
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_0022ffe8,PTR__runtime_error_0022ff50);
}
|
|
60,743
|
int minja::Value::get<int>() const
|
monkey531[P]llama/common/minja.hpp
|
T get() const {
if (is_primitive()) return primitive_.get<T>();
throw std::runtime_error("get<T> not defined for this value type: " + dump());
}
|
O2
|
cpp
|
int minja::Value::get<int>() const:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x63b88
testb %al, %al
je 0x64601
addq $0x40, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x64862
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x24460
movq %rax, %rbx
movq %rsp, %rdi
pushq $-0x1
popq %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x63b98
leaq 0x51484(%rip), %rsi # 0xb5aa7
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x592be
movb $0x1, %bpl
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x24e20
xorl %ebp, %ebp
movq 0x9c9a7(%rip), %rsi # 0x100ff0
movq 0x9c900(%rip), %rdx # 0x100f50
movq %rbx, %rdi
callq 0x24ef0
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x251d8
jmp 0x6466d
movq %rax, %r14
movb $0x1, %bpl
movq %rsp, %rdi
callq 0x251d8
testb %bpl, %bpl
jne 0x6467f
jmp 0x64687
movq %rax, %r14
movq %rbx, %rdi
callq 0x24680
movq %r14, %rdi
callq 0x24f80
nop
|
_ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v:
push rbp
push r14
push rbx
sub rsp, 40h
mov r14, rsi
mov rbx, rdi
mov rdi, rsi; this
call _ZNK5minja5Value12is_primitiveEv; minja::Value::is_primitive(void)
test al, al
jz short loc_64601
add r14, 40h ; '@'
mov rdi, rbx
mov rsi, r14
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 rax, rbx
add rsp, 40h
pop rbx
pop r14
pop rbp
retn
loc_64601:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, rsp
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rsi, r14
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aGetTNotDefined; "get<T> not defined for this value type:"...
lea rdi, [rsp+58h+var_38]
mov rdx, rsp
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+58h+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+58h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_6466D
mov r14, rax
mov bpl, 1
loc_6466D:
mov rdi, rsp; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_6467F
jmp short loc_64687
mov r14, rax
loc_6467F:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_64687:
mov rdi, r14
call __Unwind_Resume
|
long long minja::Value::get<std::string>(long long a1, minja::Value *a2)
{
void *exception; // rbx
_BYTE v4[32]; // [rsp+0h] [rbp-58h] BYREF
_BYTE v5[56]; // [rsp+20h] [rbp-38h] BYREF
if ( !minja::Value::is_primitive(a2) )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v4, (long long)a2, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v5, (long long)"get<T> not defined for this value type: ", (long long)v4);
std::runtime_error::runtime_error(exception, v5);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
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(
a1,
(char *)a2 + 64);
return a1;
}
|
get<std::__cxx11::string>:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x40
MOV R14,RSI
MOV RBX,RDI
MOV RDI,RSI
CALL 0x00163b88
TEST AL,AL
JZ 0x00164601
ADD R14,0x40
MOV RDI,RBX
MOV RSI,R14
CALL 0x00164862
MOV RAX,RBX
ADD RSP,0x40
POP RBX
POP R14
POP RBP
RET
LAB_00164601:
PUSH 0x10
POP RDI
CALL 0x00124460
MOV RBX,RAX
LAB_0016460c:
MOV RDI,RSP
PUSH -0x1
POP RDX
MOV RSI,R14
XOR ECX,ECX
CALL 0x00163b98
LAB_0016461c:
LEA RSI,[0x1b5aa7]
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
CALL 0x001592be
MOV BPL,0x1
LAB_00164633:
LEA RSI,[RSP + 0x20]
MOV RDI,RBX
CALL 0x00124e20
XOR EBP,EBP
MOV RSI,qword ptr [0x00200ff0]
MOV RDX,qword ptr [0x00200f50]
MOV RDI,RBX
CALL 0x00124ef0
|
/* std::__cxx11::string minja::Value::get<std::__cxx11::string >() const */
void minja::Value::get<std::__cxx11::string>(void)
{
char cVar1;
runtime_error *this;
Value *in_RSI;
int1 auStack_58 [32];
string local_38 [32];
cVar1 = is_primitive(in_RSI);
if (cVar1 != '\0') {
_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
();
return;
}
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0016460c to 0016461b has its CatchHandler @ 0016467c */
dump_abi_cxx11_((int)auStack_58,SUB81(in_RSI,0));
/* try { // try from 0016461c to 0016462f has its CatchHandler @ 00164667 */
std::operator+((char *)local_38,(string *)"get<T> not defined for this value type: ");
/* try { // try from 00164633 to 00164657 has its CatchHandler @ 00164658 */
std::runtime_error::runtime_error(this,local_38);
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_00200ff0,PTR__runtime_error_00200f50);
}
|
|
60,744
|
int minja::Value::get<int>() const
|
monkey531[P]llama/common/minja.hpp
|
T get() const {
if (is_primitive()) return primitive_.get<T>();
throw std::runtime_error("get<T> not defined for this value type: " + dump());
}
|
O3
|
cpp
|
int minja::Value::get<int>() const:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r14
cmpq $0x0, 0x10(%rdi)
jne 0x9104d
cmpq $0x0, 0x20(%r14)
jne 0x9104d
cmpq $0x0, 0x30(%r14)
jne 0x9104d
addq $0x40, %r14
leaq 0x20(%rsp), %rbx
movl $0x0, (%rbx)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x9111b
movl (%rbx), %eax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl $0x10, %edi
callq 0x1b440
movq %rax, %rbx
movq %rsp, %rdi
movq %r14, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x86c84
leaq 0x60a44(%rip), %rsi # 0xf1ab7
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x79419
movb $0x1, %bpl
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x1be10
xorl %ebp, %ebp
movq 0x9cf4f(%rip), %rsi # 0x12dfe8
movq 0x9ceb0(%rip), %rdx # 0x12df50
movq %rbx, %rdi
callq 0x1bf00
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x910c6
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1b8c0
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x910e1
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1b8c0
testb %bpl, %bpl
jne 0x9110b
jmp 0x91113
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9110b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1b8c0
jmp 0x9110b
movq %rax, %r14
movq %rbx, %rdi
callq 0x1b660
movq %r14, %rdi
callq 0x1bf90
|
_ZNK5minja5Value3getIiEET_v:
push rbp
push r14
push rbx
sub rsp, 40h
mov r14, rdi
cmp qword ptr [rdi+10h], 0
jnz short loc_9104D
cmp qword ptr [r14+20h], 0
jnz short loc_9104D
cmp qword ptr [r14+30h], 0
jnz short loc_9104D
add r14, 40h ; '@'
lea rbx, [rsp+58h+var_38]
mov dword ptr [rbx], 0
mov rdi, r14
mov rsi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEiTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_
mov eax, [rbx]
add rsp, 40h
pop rbx
pop r14
pop rbp
retn
loc_9104D:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, rsp
mov rsi, r14
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aGetTNotDefined; "get<T> not defined for this value type:"...
lea rdi, [rsp+58h+var_38]
mov rdx, rsp
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+58h+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:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rax, [rsp+58h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_910C6
mov rsi, [rsp+58h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_910C6:
lea rax, [rsp+58h+var_48]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_910E1
mov rsi, [rsp+58h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_910E1:
test bpl, bpl
jnz short loc_9110B
jmp short loc_91113
mov r14, rax
lea rax, [rsp+58h+var_48]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_9110B
mov rsi, [rsp+58h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_9110B
mov r14, rax
loc_9110B:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_91113:
mov rdi, r14
call __Unwind_Resume
|
long long minja::Value::get<int>(_QWORD *a1)
{
void *exception; // rbx
_BYTE v3[16]; // [rsp+0h] [rbp-58h] BYREF
_DWORD v4[4]; // [rsp+20h] [rbp-38h] BYREF
if ( a1[2] || a1[4] || a1[6] )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v3, (long long)a1, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v4, (long long)"get<T> not defined for this value type: ", (long long)v3);
std::runtime_error::runtime_error(exception, v4);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v4[0] = 0;
ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEiTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_(
a1 + 8,
v4);
return v4[0];
}
|
get<int>:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x40
MOV R14,RDI
CMP qword ptr [RDI + 0x10],0x0
JNZ 0x0019104d
CMP qword ptr [R14 + 0x20],0x0
JNZ 0x0019104d
CMP qword ptr [R14 + 0x30],0x0
JNZ 0x0019104d
ADD R14,0x40
LEA RBX,[RSP + 0x20]
MOV dword ptr [RBX],0x0
MOV RDI,R14
MOV RSI,RBX
CALL 0x0019111b
MOV EAX,dword ptr [RBX]
ADD RSP,0x40
POP RBX
POP R14
POP RBP
RET
LAB_0019104d:
MOV EDI,0x10
CALL 0x0011b440
MOV RBX,RAX
LAB_0019105a:
MOV RDI,RSP
MOV RSI,R14
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x00186c84
LAB_0019106c:
LEA RSI,[0x1f1ab7]
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
CALL 0x00179419
MOV BPL,0x1
LAB_00191083:
LEA RSI,[RSP + 0x20]
MOV RDI,RBX
CALL 0x0011be10
XOR EBP,EBP
MOV RSI,qword ptr [0x0022dfe8]
MOV RDX,qword ptr [0x0022df50]
MOV RDI,RBX
CALL 0x0011bf00
|
/* int minja::Value::get<int>() const */
int __thiscall minja::Value::get<int>(Value *this)
{
runtime_error *this_00;
int1 auStack_58 [32];
int local_38 [8];
if (((*(long *)(this + 0x10) == 0) && (*(long *)(this + 0x20) == 0)) &&
(*(long *)(this + 0x30) == 0)) {
local_38[0] = 0;
_ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEiTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_
(this + 0x40,local_38);
return local_38[0];
}
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0019105a to 0019106b has its CatchHandler @ 00191108 */
dump_abi_cxx11_((int)auStack_58,SUB81(this,0));
/* try { // try from 0019106c to 0019107f has its CatchHandler @ 001910e8 */
std::operator+((char *)local_38,(string *)"get<T> not defined for this value type: ");
/* try { // try from 00191083 to 001910a7 has its CatchHandler @ 001910a8 */
std::runtime_error::runtime_error(this_00,(string *)local_38);
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_0022dfe8,PTR__runtime_error_0022df50);
}
|
|
60,745
|
my_is_symlink
|
eloqsql/mysys/my_symlink.c
|
int my_is_symlink(const char *filename __attribute__((unused)))
{
#if defined (HAVE_LSTAT) && defined (S_ISLNK)
struct stat stat_buff;
if (lstat(filename, &stat_buff))
return 0;
MSAN_STAT_WORKAROUND(&stat_buff);
return !!S_ISLNK(stat_buff.st_mode);
#elif defined (_WIN32)
DWORD dwAttr = GetFileAttributes(filename);
return (dwAttr != INVALID_FILE_ATTRIBUTES) &&
(dwAttr & FILE_ATTRIBUTE_REPARSE_POINT);
#else /* No symlinks */
return 0;
#endif
}
|
O3
|
c
|
my_is_symlink:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x98, %rsp
leaq -0x98(%rbp), %rbx
movq %rbx, %rsi
callq 0x24420
movl 0x18(%rbx), %edx
andl $0xf000, %edx # imm = 0xF000
xorl $0xa000, %edx # imm = 0xA000
xorl %ecx, %ecx
orl %eax, %edx
sete %cl
movl %ecx, %eax
addq $0x98, %rsp
popq %rbx
popq %rbp
retq
|
my_is_symlink:
push rbp
mov rbp, rsp
push rbx
sub rsp, 98h
lea rbx, [rbp+var_98]
mov rsi, rbx
call _lstat64
mov edx, [rbx+18h]
and edx, 0F000h
xor edx, 0A000h
xor ecx, ecx
or edx, eax
setz cl
mov eax, ecx
add rsp, 98h
pop rbx
pop rbp
retn
|
_BOOL8 my_is_symlink(long long a1)
{
int v1; // eax
_BYTE v3[24]; // [rsp+8h] [rbp-98h] BYREF
__int16 v4; // [rsp+20h] [rbp-80h]
v1 = lstat64(a1, v3);
return (v1 | v4 & 0xF000 ^ 0xA000) == 0;
}
|
my_is_symlink:
PUSH RBP
MOV RBP,RSP
PUSH RBX
SUB RSP,0x98
LEA RBX,[RBP + -0x98]
MOV RSI,RBX
CALL 0x00124420
MOV EDX,dword ptr [RBX + 0x18]
AND EDX,0xf000
XOR EDX,0xa000
XOR ECX,ECX
OR EDX,EAX
SETZ CL
MOV EAX,ECX
ADD RSP,0x98
POP RBX
POP RBP
RET
|
bool my_is_symlink(char *param_1)
{
int iVar1;
stat64 local_a0;
iVar1 = lstat64(param_1,&local_a0);
return (local_a0.st_mode & 0xf000) == 0xa000 && iVar1 == 0;
}
|
|
60,746
|
OpenSubdiv::v3_6_0::Far::BilinearPatchBuilder::BilinearPatchBuilder(OpenSubdiv::v3_6_0::Far::TopologyRefiner const&, OpenSubdiv::v3_6_0::Far::PatchBuilder::Options const&)
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/bilinearPatchBuilder.cpp
|
BilinearPatchBuilder::BilinearPatchBuilder(
TopologyRefiner const& refiner, Options const& options) :
PatchBuilder(refiner, options) {
_regPatchType = patchTypeFromBasisArray[_options.regBasisType];
_irregPatchType = (_options.irregBasisType == BASIS_UNSPECIFIED)
? _regPatchType
: patchTypeFromBasisArray[_options.irregBasisType];
_nativePatchType = PatchDescriptor::QUADS;
_linearPatchType = PatchDescriptor::QUADS;
}
|
O1
|
cpp
|
OpenSubdiv::v3_6_0::Far::BilinearPatchBuilder::BilinearPatchBuilder(OpenSubdiv::v3_6_0::Far::TopologyRefiner const&, OpenSubdiv::v3_6_0::Far::PatchBuilder::Options const&):
pushq %rbx
movq %rdi, %rbx
callq 0x39340
movq 0x91680(%rip), %rax # 0xdde40
addq $0x10, %rax
movq %rax, (%rbx)
movl 0x10(%rbx), %ecx
movl 0x14(%rbx), %eax
leaq 0x67abc(%rip), %rdx # 0xb4290
movl (%rdx,%rcx,4), %ecx
movl %ecx, 0x28(%rbx)
testq %rax, %rax
je 0x4c7e2
movl (%rdx,%rax,4), %ecx
movl %ecx, 0x2c(%rbx)
movabsq $0x300000003, %rax # imm = 0x300000003
movq %rax, 0x30(%rbx)
popq %rbx
retq
nop
|
_ZN10OpenSubdiv6v3_6_03Far20BilinearPatchBuilderC2ERKNS1_15TopologyRefinerERKNS1_12PatchBuilder7OptionsE:
push rbx; Alternative name is 'OpenSubdiv::v3_6_0::Far::BilinearPatchBuilder::BilinearPatchBuilder(OpenSubdiv::v3_6_0::Far::TopologyRefiner const&, OpenSubdiv::v3_6_0::Far::PatchBuilder::Options const&)'
mov rbx, rdi
call __ZN10OpenSubdiv6v3_6_03Far12PatchBuilderC2ERKNS1_15TopologyRefinerERKNS2_7OptionsE; OpenSubdiv::v3_6_0::Far::PatchBuilder::PatchBuilder(OpenSubdiv::v3_6_0::Far::TopologyRefiner const&,OpenSubdiv::v3_6_0::Far::PatchBuilder::Options const&)
mov rax, cs:_ZTVN10OpenSubdiv6v3_6_03Far20BilinearPatchBuilderE_ptr
add rax, 10h
mov [rbx], rax
mov ecx, [rbx+10h]
mov eax, [rbx+14h]
lea rdx, _ZN10OpenSubdiv6v3_6_03Far12_GLOBAL__N_123patchTypeFromBasisArrayE_1; OpenSubdiv::v3_6_0::Far::`anonymous namespace'::patchTypeFromBasisArray
mov ecx, [rdx+rcx*4]
mov [rbx+28h], ecx
test rax, rax
jz short loc_4C7E2
mov ecx, [rdx+rax*4]
loc_4C7E2:
mov [rbx+2Ch], ecx
mov rax, 300000003h
mov [rbx+30h], rax
pop rbx
retn
|
long long OpenSubdiv::v3_6_0::Far::BilinearPatchBuilder::BilinearPatchBuilder(long long a1)
{
long long v1; // rax
int v2; // ecx
long long result; // rax
OpenSubdiv::v3_6_0::Far::PatchBuilder::PatchBuilder();
*(_QWORD *)a1 = &`vtable for'OpenSubdiv::v3_6_0::Far::BilinearPatchBuilder + 2;
v1 = *(unsigned int *)(a1 + 20);
v2 = OpenSubdiv::v3_6_0::Far::`anonymous namespace'::patchTypeFromBasisArray[*(unsigned int *)(a1 + 16)];
*(_DWORD *)(a1 + 40) = v2;
if ( v1 )
v2 = OpenSubdiv::v3_6_0::Far::`anonymous namespace'::patchTypeFromBasisArray[v1];
*(_DWORD *)(a1 + 44) = v2;
result = 0x300000003LL;
*(_QWORD *)(a1 + 48) = 0x300000003LL;
return result;
}
|
BilinearPatchBuilder:
PUSH RBX
MOV RBX,RDI
CALL 0x00139340
MOV RAX,qword ptr [0x001dde40]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV ECX,dword ptr [RBX + 0x10]
MOV EAX,dword ptr [RBX + 0x14]
LEA RDX,[0x1b4290]
MOV ECX,dword ptr [RDX + RCX*0x4]
MOV dword ptr [RBX + 0x28],ECX
TEST RAX,RAX
JZ 0x0014c7e2
MOV ECX,dword ptr [RDX + RAX*0x4]
LAB_0014c7e2:
MOV dword ptr [RBX + 0x2c],ECX
MOV RAX,0x300000003
MOV qword ptr [RBX + 0x30],RAX
POP RBX
RET
|
/* OpenSubdiv::v3_6_0::Far::BilinearPatchBuilder::BilinearPatchBuilder(OpenSubdiv::v3_6_0::Far::TopologyRefiner
const&, OpenSubdiv::v3_6_0::Far::PatchBuilder::Options const&) */
void __thiscall
OpenSubdiv::v3_6_0::Far::BilinearPatchBuilder::BilinearPatchBuilder
(BilinearPatchBuilder *this,TopologyRefiner *param_1,Options *param_2)
{
int4 uVar1;
PatchBuilder::PatchBuilder((PatchBuilder *)this,param_1,param_2);
*(int **)this = PTR_vtable_001dde40 + 0x10;
uVar1 = *(int4 *)
((anonymous_namespace)::patchTypeFromBasisArray + (ulong)*(uint *)(this + 0x10) * 4);
*(int4 *)(this + 0x28) = uVar1;
if ((ulong)*(uint *)(this + 0x14) != 0) {
uVar1 = *(int4 *)
((anonymous_namespace)::patchTypeFromBasisArray + (ulong)*(uint *)(this + 0x14) * 4);
}
*(int4 *)(this + 0x2c) = uVar1;
*(int8 *)(this + 0x30) = 0x300000003;
return;
}
|
|
60,747
|
OpenSubdiv::v3_6_0::Far::BilinearPatchBuilder::BilinearPatchBuilder(OpenSubdiv::v3_6_0::Far::TopologyRefiner const&, OpenSubdiv::v3_6_0::Far::PatchBuilder::Options const&)
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/bilinearPatchBuilder.cpp
|
BilinearPatchBuilder::BilinearPatchBuilder(
TopologyRefiner const& refiner, Options const& options) :
PatchBuilder(refiner, options) {
_regPatchType = patchTypeFromBasisArray[_options.regBasisType];
_irregPatchType = (_options.irregBasisType == BASIS_UNSPECIFIED)
? _regPatchType
: patchTypeFromBasisArray[_options.irregBasisType];
_nativePatchType = PatchDescriptor::QUADS;
_linearPatchType = PatchDescriptor::QUADS;
}
|
O3
|
cpp
|
OpenSubdiv::v3_6_0::Far::BilinearPatchBuilder::BilinearPatchBuilder(OpenSubdiv::v3_6_0::Far::TopologyRefiner const&, OpenSubdiv::v3_6_0::Far::PatchBuilder::Options const&):
pushq %rbx
movq %rdi, %rbx
callq 0x39330
movq 0x93088(%rip), %rax # 0xe1e48
addq $0x10, %rax
movq %rax, (%rbx)
movl 0x10(%rbx), %ecx
movl 0x14(%rbx), %eax
leaq 0x6856c(%rip), %rdx # 0xb7340
movl (%rdx,%rcx,4), %ecx
movl %ecx, 0x28(%rbx)
testq %rax, %rax
je 0x4ede2
movl (%rdx,%rax,4), %ecx
movl %ecx, 0x2c(%rbx)
movabsq $0x300000003, %rax # imm = 0x300000003
movq %rax, 0x30(%rbx)
popq %rbx
retq
nop
|
_ZN10OpenSubdiv6v3_6_03Far20BilinearPatchBuilderC2ERKNS1_15TopologyRefinerERKNS1_12PatchBuilder7OptionsE:
push rbx; Alternative name is 'OpenSubdiv::v3_6_0::Far::BilinearPatchBuilder::BilinearPatchBuilder(OpenSubdiv::v3_6_0::Far::TopologyRefiner const&, OpenSubdiv::v3_6_0::Far::PatchBuilder::Options const&)'
mov rbx, rdi
call __ZN10OpenSubdiv6v3_6_03Far12PatchBuilderC2ERKNS1_15TopologyRefinerERKNS2_7OptionsE; OpenSubdiv::v3_6_0::Far::PatchBuilder::PatchBuilder(OpenSubdiv::v3_6_0::Far::TopologyRefiner const&,OpenSubdiv::v3_6_0::Far::PatchBuilder::Options const&)
mov rax, cs:_ZTVN10OpenSubdiv6v3_6_03Far20BilinearPatchBuilderE_ptr
add rax, 10h
mov [rbx], rax
mov ecx, [rbx+10h]
mov eax, [rbx+14h]
lea rdx, _ZN10OpenSubdiv6v3_6_03Far12_GLOBAL__N_123patchTypeFromBasisArrayE_1; OpenSubdiv::v3_6_0::Far::`anonymous namespace'::patchTypeFromBasisArray
mov ecx, [rdx+rcx*4]
mov [rbx+28h], ecx
test rax, rax
jz short loc_4EDE2
mov ecx, [rdx+rax*4]
loc_4EDE2:
mov [rbx+2Ch], ecx
mov rax, 300000003h
mov [rbx+30h], rax
pop rbx
retn
|
long long OpenSubdiv::v3_6_0::Far::BilinearPatchBuilder::BilinearPatchBuilder(long long a1)
{
long long v1; // rax
int v2; // ecx
long long result; // rax
OpenSubdiv::v3_6_0::Far::PatchBuilder::PatchBuilder();
*(_QWORD *)a1 = &`vtable for'OpenSubdiv::v3_6_0::Far::BilinearPatchBuilder + 2;
v1 = *(unsigned int *)(a1 + 20);
v2 = OpenSubdiv::v3_6_0::Far::`anonymous namespace'::patchTypeFromBasisArray[*(unsigned int *)(a1 + 16)];
*(_DWORD *)(a1 + 40) = v2;
if ( v1 )
v2 = OpenSubdiv::v3_6_0::Far::`anonymous namespace'::patchTypeFromBasisArray[v1];
*(_DWORD *)(a1 + 44) = v2;
result = 0x300000003LL;
*(_QWORD *)(a1 + 48) = 0x300000003LL;
return result;
}
|
BilinearPatchBuilder:
PUSH RBX
MOV RBX,RDI
CALL 0x00139330
MOV RAX,qword ptr [0x001e1e48]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV ECX,dword ptr [RBX + 0x10]
MOV EAX,dword ptr [RBX + 0x14]
LEA RDX,[0x1b7340]
MOV ECX,dword ptr [RDX + RCX*0x4]
MOV dword ptr [RBX + 0x28],ECX
TEST RAX,RAX
JZ 0x0014ede2
MOV ECX,dword ptr [RDX + RAX*0x4]
LAB_0014ede2:
MOV dword ptr [RBX + 0x2c],ECX
MOV RAX,0x300000003
MOV qword ptr [RBX + 0x30],RAX
POP RBX
RET
|
/* OpenSubdiv::v3_6_0::Far::BilinearPatchBuilder::BilinearPatchBuilder(OpenSubdiv::v3_6_0::Far::TopologyRefiner
const&, OpenSubdiv::v3_6_0::Far::PatchBuilder::Options const&) */
void __thiscall
OpenSubdiv::v3_6_0::Far::BilinearPatchBuilder::BilinearPatchBuilder
(BilinearPatchBuilder *this,TopologyRefiner *param_1,Options *param_2)
{
int4 uVar1;
PatchBuilder::PatchBuilder((PatchBuilder *)this,param_1,param_2);
*(int **)this = PTR_vtable_001e1e48 + 0x10;
uVar1 = *(int4 *)
((anonymous_namespace)::patchTypeFromBasisArray + (ulong)*(uint *)(this + 0x10) * 4);
*(int4 *)(this + 0x28) = uVar1;
if ((ulong)*(uint *)(this + 0x14) != 0) {
uVar1 = *(int4 *)
((anonymous_namespace)::patchTypeFromBasisArray + (ulong)*(uint *)(this + 0x14) * 4);
}
*(int4 *)(this + 0x2c) = uVar1;
*(int8 *)(this + 0x30) = 0x300000003;
return;
}
|
|
60,748
|
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateLinearSurfaces(int, OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet*) const
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/surfaceFactory.cpp
|
bool
SurfaceFactory::populateLinearSurfaces(Index faceIndex,
SurfaceSet * surfaceSetPtr) const {
SurfaceSet & surfaces = *surfaceSetPtr;
if (surfaces.HasVaryingSurface()) {
assignLinearSurface(surfaces.GetVaryingSurface(), faceIndex, 0);
}
if (_linearScheme && surfaces.HasVertexSurface()) {
assignLinearSurface(surfaces.GetVertexSurface(), faceIndex, 0);
}
if (_linearFVarInterp) {
int numFVarSurfaces = surfaces.GetNumFVarSurfaces();
for (int i = 0; i < numFVarSurfaces; ++i) {
FVarID fvarID = surfaces.GetFVarSurfaceID(i);
assignLinearSurface(surfaces.GetFVarSurface(i), faceIndex, &fvarID);
}
}
return true;
}
|
O0
|
cpp
|
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateLinearSurfaces(int, OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet*) const:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0xcbcc0
testb $0x1, %al
jne 0x1b8d92
jmp 0x1b8dae
movq -0x20(%rbp), %rdi
callq 0xc4a20
movq -0x38(%rbp), %rdi
movq %rax, %rsi
movl -0xc(%rbp), %edx
xorl %eax, %eax
movl %eax, %ecx
callq 0xce680
movq -0x38(%rbp), %rax
movb 0x28(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x1b8dea
movq -0x20(%rbp), %rdi
callq 0xcd440
testb $0x1, %al
jne 0x1b8dce
jmp 0x1b8dea
movq -0x20(%rbp), %rdi
callq 0xd24e0
movq -0x38(%rbp), %rdi
movq %rax, %rsi
movl -0xc(%rbp), %edx
xorl %eax, %eax
movl %eax, %ecx
callq 0xce680
movq -0x38(%rbp), %rax
movb 0x28(%rax), %al
shrb %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x1b8e54
movq -0x20(%rbp), %rdi
callq 0xd6030
movl %eax, -0x24(%rbp)
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x1b8e52
movq -0x20(%rbp), %rdi
movl -0x28(%rbp), %esi
callq 0xce9c0
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rdi
movl -0x28(%rbp), %esi
callq 0xcaaf0
movq -0x38(%rbp), %rdi
movq %rax, %rsi
movl -0xc(%rbp), %edx
leaq -0x30(%rbp), %rcx
callq 0xce680
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x1b8e10
jmp 0x1b8e54
movb $0x1, %al
andb $0x1, %al
addq $0x40, %rsp
popq %rbp
retq
nop
|
_ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory22populateLinearSurfacesEiPNS2_10SurfaceSetE:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov rax, [rbp+var_8]
mov [rbp+var_38], rax
mov rax, [rbp+var_18]
mov [rbp+var_20], rax
mov rdi, [rbp+var_20]; this
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory10SurfaceSet17HasVaryingSurfaceEv; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::HasVaryingSurface(void)
test al, 1
jnz short loc_1B8D92
jmp short loc_1B8DAE
loc_1B8D92:
mov rdi, [rbp+var_20]; this
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory10SurfaceSet17GetVaryingSurfaceEv; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::GetVaryingSurface(void)
mov rdi, [rbp+var_38]; this
mov rsi, rax; OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *
mov edx, [rbp+var_C]; int
xor eax, eax
mov ecx, eax; __int64 *
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory19assignLinearSurfaceEPNS1_8internal11SurfaceDataEiPKl; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::assignLinearSurface(OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *,int,long const*)
loc_1B8DAE:
mov rax, [rbp+var_38]
mov al, [rax+28h]
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_1B8DEA
mov rdi, [rbp+var_20]; this
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory10SurfaceSet16HasVertexSurfaceEv; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::HasVertexSurface(void)
test al, 1
jnz short loc_1B8DCE
jmp short loc_1B8DEA
loc_1B8DCE:
mov rdi, [rbp+var_20]; this
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory10SurfaceSet16GetVertexSurfaceEv; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::GetVertexSurface(void)
mov rdi, [rbp+var_38]; this
mov rsi, rax; OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *
mov edx, [rbp+var_C]; int
xor eax, eax
mov ecx, eax; __int64 *
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory19assignLinearSurfaceEPNS1_8internal11SurfaceDataEiPKl; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::assignLinearSurface(OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *,int,long const*)
loc_1B8DEA:
mov rax, [rbp+var_38]
mov al, [rax+28h]
shr al, 1
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_1B8E54
mov rdi, [rbp+var_20]; this
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory10SurfaceSet18GetNumFVarSurfacesEv; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::GetNumFVarSurfaces(void)
mov [rbp+var_24], eax
mov [rbp+var_28], 0
loc_1B8E10:
mov eax, [rbp+var_28]
cmp eax, [rbp+var_24]
jge short loc_1B8E52
mov rdi, [rbp+var_20]; this
mov esi, [rbp+var_28]; int
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory10SurfaceSet16GetFVarSurfaceIDEi; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::GetFVarSurfaceID(int)
mov [rbp+var_30], rax
mov rdi, [rbp+var_20]; this
mov esi, [rbp+var_28]; int
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory10SurfaceSet14GetFVarSurfaceEi; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::GetFVarSurface(int)
mov rdi, [rbp+var_38]; this
mov rsi, rax; OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *
mov edx, [rbp+var_C]; int
lea rcx, [rbp+var_30]; __int64 *
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory19assignLinearSurfaceEPNS1_8internal11SurfaceDataEiPKl; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::assignLinearSurface(OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *,int,long const*)
mov eax, [rbp+var_28]
add eax, 1
mov [rbp+var_28], eax
jmp short loc_1B8E10
loc_1B8E52:
jmp short $+2
loc_1B8E54:
mov al, 1
and al, 1
add rsp, 40h
pop rbp
retn
|
char OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateLinearSurfaces(
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory *this,
int a2,
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet *a3)
{
OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *VaryingSurface; // rax
OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *VertexSurface; // rax
OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *FVarSurface; // rax
long long FVarSurfaceID; // [rsp+10h] [rbp-30h] BYREF
int i; // [rsp+18h] [rbp-28h]
int NumFVarSurfaces; // [rsp+1Ch] [rbp-24h]
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet *v10; // [rsp+20h] [rbp-20h]
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet *v11; // [rsp+28h] [rbp-18h]
int v12; // [rsp+34h] [rbp-Ch]
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory *v13; // [rsp+38h] [rbp-8h]
v13 = this;
v12 = a2;
v11 = a3;
v10 = a3;
if ( (OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::HasVaryingSurface(a3) & 1) != 0 )
{
VaryingSurface = (OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *)OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::GetVaryingSurface(v10);
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::assignLinearSurface(this, VaryingSurface, v12, 0LL);
}
if ( (*((_BYTE *)this + 40) & 1) != 0
&& (OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::HasVertexSurface(v10) & 1) != 0 )
{
VertexSurface = (OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *)OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::GetVertexSurface(v10);
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::assignLinearSurface(this, VertexSurface, v12, 0LL);
}
if ( (*((_BYTE *)this + 40) & 2) != 0 )
{
NumFVarSurfaces = OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::GetNumFVarSurfaces(v10);
for ( i = 0; i < NumFVarSurfaces; ++i )
{
FVarSurfaceID = OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::GetFVarSurfaceID(v10, i);
FVarSurface = (OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *)OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::GetFVarSurface(
v10,
i);
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::assignLinearSurface(this, FVarSurface, v12, &FVarSurfaceID);
}
}
return 1;
}
| |||
60,749
|
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateLinearSurfaces(int, OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet*) const
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/surfaceFactory.cpp
|
bool
SurfaceFactory::populateLinearSurfaces(Index faceIndex,
SurfaceSet * surfaceSetPtr) const {
SurfaceSet & surfaces = *surfaceSetPtr;
if (surfaces.HasVaryingSurface()) {
assignLinearSurface(surfaces.GetVaryingSurface(), faceIndex, 0);
}
if (_linearScheme && surfaces.HasVertexSurface()) {
assignLinearSurface(surfaces.GetVertexSurface(), faceIndex, 0);
}
if (_linearFVarInterp) {
int numFVarSurfaces = surfaces.GetNumFVarSurfaces();
for (int i = 0; i < numFVarSurfaces; ++i) {
FVarID fvarID = surfaces.GetFVarSurfaceID(i);
assignLinearSurface(surfaces.GetFVarSurface(i), faceIndex, &fvarID);
}
}
return true;
}
|
O1
|
cpp
|
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateLinearSurfaces(int, OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet*) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movq 0x10(%rdx), %rsi
testq %rsi, %rsi
je 0x9e454
movq %r14, %rdi
movl %ebp, %edx
xorl %ecx, %ecx
callq 0x3a600
testb $0x1, 0x28(%r14)
je 0x9e470
movq 0x8(%rbx), %rsi
testq %rsi, %rsi
je 0x9e470
movq %r14, %rdi
movl %ebp, %edx
xorl %ecx, %ecx
callq 0x3a600
testb $0x2, 0x28(%r14)
je 0x9e4cc
movslq 0x4(%rbx), %r12
testq %r12, %r12
jle 0x9e4cc
xorl %r13d, %r13d
movq %rsp, %r15
movq 0x28(%rbx), %rcx
movq %r13, %rax
testq %rcx, %rcx
je 0x9e496
movq (%rcx,%r13,8), %rax
movq %rax, (%rsp)
movq 0x18(%rbx), %rsi
testq %rsi, %rsi
je 0x9e4af
movq %r13, %rax
shlq $0x7, %rax
addq %rax, %rsi
jmp 0x9e4b7
movq 0x20(%rbx), %rax
movq (%rax,%r13,8), %rsi
movq %r14, %rdi
movl %ebp, %edx
movq %r15, %rcx
callq 0x3a600
incq %r13
cmpq %r12, %r13
jne 0x9e486
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
|
_ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory22populateLinearSurfacesEiPNS2_10SurfaceSetE:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdx
mov ebp, esi
mov r14, rdi
mov rsi, [rdx+10h]; OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *
test rsi, rsi
jz short loc_9E454
mov rdi, r14; this
mov edx, ebp; int
xor ecx, ecx; __int64 *
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory19assignLinearSurfaceEPNS1_8internal11SurfaceDataEiPKl; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::assignLinearSurface(OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *,int,long const*)
loc_9E454:
test byte ptr [r14+28h], 1
jz short loc_9E470
mov rsi, [rbx+8]; OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *
test rsi, rsi
jz short loc_9E470
mov rdi, r14; this
mov edx, ebp; int
xor ecx, ecx; __int64 *
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory19assignLinearSurfaceEPNS1_8internal11SurfaceDataEiPKl; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::assignLinearSurface(OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *,int,long const*)
loc_9E470:
test byte ptr [r14+28h], 2
jz short loc_9E4CC
movsxd r12, dword ptr [rbx+4]
test r12, r12
jle short loc_9E4CC
xor r13d, r13d
mov r15, rsp
loc_9E486:
mov rcx, [rbx+28h]
mov rax, r13
test rcx, rcx
jz short loc_9E496
mov rax, [rcx+r13*8]
loc_9E496:
mov [rsp+38h+var_38], rax
mov rsi, [rbx+18h]
test rsi, rsi
jz short loc_9E4AF
mov rax, r13
shl rax, 7
add rsi, rax
jmp short loc_9E4B7
loc_9E4AF:
mov rax, [rbx+20h]
mov rsi, [rax+r13*8]; OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *
loc_9E4B7:
mov rdi, r14; this
mov edx, ebp; int
mov rcx, r15; __int64 *
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory19assignLinearSurfaceEPNS1_8internal11SurfaceDataEiPKl; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::assignLinearSurface(OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *,int,long const*)
inc r13
cmp r13, r12
jnz short loc_9E486
loc_9E4CC:
mov al, 1
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
char OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateLinearSurfaces(
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory *this,
int a2,
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet *a3)
{
long long v3; // rax
OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *v6; // rsi
OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *v7; // rsi
long long v8; // r12
long long i; // r13
long long v10; // rcx
long long v11; // rax
long long v12; // rsi
OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *v13; // rsi
long long v15[7]; // [rsp+0h] [rbp-38h] BYREF
v15[0] = v3;
v6 = (OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *)*((_QWORD *)a3 + 2);
if ( v6 )
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::assignLinearSurface(this, v6, a2, 0LL);
if ( (*((_BYTE *)this + 40) & 1) != 0 )
{
v7 = (OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *)*((_QWORD *)a3 + 1);
if ( v7 )
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::assignLinearSurface(this, v7, a2, 0LL);
}
if ( (*((_BYTE *)this + 40) & 2) != 0 )
{
v8 = *((int *)a3 + 1);
if ( v8 > 0 )
{
for ( i = 0LL; i != v8; ++i )
{
v10 = *((_QWORD *)a3 + 5);
v11 = i;
if ( v10 )
v11 = *(_QWORD *)(v10 + 8 * i);
v15[0] = v11;
v12 = *((_QWORD *)a3 + 3);
if ( v12 )
v13 = (OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *)((i << 7) + v12);
else
v13 = *(OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData **)(*((_QWORD *)a3 + 4) + 8 * i);
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::assignLinearSurface(this, v13, a2, v15);
}
}
}
return 1;
}
|
populateLinearSurfaces:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV EBP,ESI
MOV R14,RDI
MOV RSI,qword ptr [RDX + 0x10]
TEST RSI,RSI
JZ 0x0019e454
MOV RDI,R14
MOV EDX,EBP
XOR ECX,ECX
CALL 0x0013a600
LAB_0019e454:
TEST byte ptr [R14 + 0x28],0x1
JZ 0x0019e470
MOV RSI,qword ptr [RBX + 0x8]
TEST RSI,RSI
JZ 0x0019e470
MOV RDI,R14
MOV EDX,EBP
XOR ECX,ECX
CALL 0x0013a600
LAB_0019e470:
TEST byte ptr [R14 + 0x28],0x2
JZ 0x0019e4cc
MOVSXD R12,dword ptr [RBX + 0x4]
TEST R12,R12
JLE 0x0019e4cc
XOR R13D,R13D
MOV R15,RSP
LAB_0019e486:
MOV RCX,qword ptr [RBX + 0x28]
MOV RAX,R13
TEST RCX,RCX
JZ 0x0019e496
MOV RAX,qword ptr [RCX + R13*0x8]
LAB_0019e496:
MOV qword ptr [RSP],RAX
MOV RSI,qword ptr [RBX + 0x18]
TEST RSI,RSI
JZ 0x0019e4af
MOV RAX,R13
SHL RAX,0x7
ADD RSI,RAX
JMP 0x0019e4b7
LAB_0019e4af:
MOV RAX,qword ptr [RBX + 0x20]
MOV RSI,qword ptr [RAX + R13*0x8]
LAB_0019e4b7:
MOV RDI,R14
MOV EDX,EBP
MOV RCX,R15
CALL 0x0013a600
INC R13
CMP R13,R12
JNZ 0x0019e486
LAB_0019e4cc:
MOV AL,0x1
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateLinearSurfaces(int,
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet*) const */
int8 __thiscall
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateLinearSurfaces
(SurfaceFactory *this,int param_1,SurfaceSet *param_2)
{
int iVar1;
SurfaceData *pSVar2;
long lVar3;
long local_38;
if (*(SurfaceData **)(param_2 + 0x10) != (SurfaceData *)0x0) {
assignLinearSurface(this,*(SurfaceData **)(param_2 + 0x10),param_1,(long *)0x0);
}
if ((((byte)this[0x28] & 1) != 0) && (*(SurfaceData **)(param_2 + 8) != (SurfaceData *)0x0)) {
assignLinearSurface(this,*(SurfaceData **)(param_2 + 8),param_1,(long *)0x0);
}
if ((((byte)this[0x28] & 2) != 0) && (iVar1 = *(int *)(param_2 + 4), 0 < (long)iVar1)) {
lVar3 = 0;
do {
local_38 = lVar3;
if (*(long *)(param_2 + 0x28) != 0) {
local_38 = *(long *)(*(long *)(param_2 + 0x28) + lVar3 * 8);
}
if (*(long *)(param_2 + 0x18) == 0) {
pSVar2 = *(SurfaceData **)(*(long *)(param_2 + 0x20) + lVar3 * 8);
}
else {
pSVar2 = (SurfaceData *)(*(long *)(param_2 + 0x18) + lVar3 * 0x80);
}
assignLinearSurface(this,pSVar2,param_1,&local_38);
lVar3 = lVar3 + 1;
} while (lVar3 != iVar1);
}
return 1;
}
|
|
60,750
|
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateLinearSurfaces(int, OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet*) const
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/surfaceFactory.cpp
|
bool
SurfaceFactory::populateLinearSurfaces(Index faceIndex,
SurfaceSet * surfaceSetPtr) const {
SurfaceSet & surfaces = *surfaceSetPtr;
if (surfaces.HasVaryingSurface()) {
assignLinearSurface(surfaces.GetVaryingSurface(), faceIndex, 0);
}
if (_linearScheme && surfaces.HasVertexSurface()) {
assignLinearSurface(surfaces.GetVertexSurface(), faceIndex, 0);
}
if (_linearFVarInterp) {
int numFVarSurfaces = surfaces.GetNumFVarSurfaces();
for (int i = 0; i < numFVarSurfaces; ++i) {
FVarID fvarID = surfaces.GetFVarSurfaceID(i);
assignLinearSurface(surfaces.GetFVarSurface(i), faceIndex, &fvarID);
}
}
return true;
}
|
O2
|
cpp
|
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateLinearSurfaces(int, OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet*) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movq 0x10(%rdx), %rsi
testq %rsi, %rsi
je 0xa9ed2
movq %r14, %rdi
movl %ebp, %edx
xorl %ecx, %ecx
callq 0x52e00
movb 0x28(%r14), %al
testb $0x1, %al
je 0xa9ef3
movq 0x8(%rbx), %rsi
testq %rsi, %rsi
je 0xa9ef3
movq %r14, %rdi
movl %ebp, %edx
xorl %ecx, %ecx
callq 0x52e00
movb 0x28(%r14), %al
testb $0x2, %al
jne 0xa9f08
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0x4(%rbx), %r12d
xorl %r13d, %r13d
testl %r12d, %r12d
cmovlel %r13d, %r12d
xorl %r15d, %r15d
cmpq %r15, %r12
je 0xa9ef7
movq 0x28(%rbx), %rcx
movq %r15, %rax
testq %rcx, %rcx
je 0xa9f2e
movq (%rcx,%r15,8), %rax
movq %rax, (%rsp)
movq 0x18(%rbx), %rsi
testq %rsi, %rsi
je 0xa9f40
addq %r13, %rsi
jmp 0xa9f48
movq 0x20(%rbx), %rax
movq (%rax,%r15,8), %rsi
movq %r14, %rdi
movl %ebp, %edx
movq %rsp, %rcx
callq 0x52e00
incq %r15
subq $-0x80, %r13
jmp 0xa9f19
|
_ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory22populateLinearSurfacesEiPNS2_10SurfaceSetE:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdx
mov ebp, esi
mov r14, rdi
mov rsi, [rdx+10h]; OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *
test rsi, rsi
jz short loc_A9ED2
mov rdi, r14; this
mov edx, ebp; int
xor ecx, ecx; __int64 *
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory19assignLinearSurfaceEPNS1_8internal11SurfaceDataEiPKl; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::assignLinearSurface(OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *,int,long const*)
loc_A9ED2:
mov al, [r14+28h]
test al, 1
jz short loc_A9EF3
mov rsi, [rbx+8]; OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *
test rsi, rsi
jz short loc_A9EF3
mov rdi, r14; this
mov edx, ebp; int
xor ecx, ecx; __int64 *
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory19assignLinearSurfaceEPNS1_8internal11SurfaceDataEiPKl; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::assignLinearSurface(OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *,int,long const*)
mov al, [r14+28h]
loc_A9EF3:
test al, 2
jnz short loc_A9F08
loc_A9EF7:
mov al, 1
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_A9F08:
mov r12d, [rbx+4]
xor r13d, r13d
test r12d, r12d
cmovle r12d, r13d
xor r15d, r15d
loc_A9F19:
cmp r12, r15
jz short loc_A9EF7
mov rcx, [rbx+28h]
mov rax, r15
test rcx, rcx
jz short loc_A9F2E
mov rax, [rcx+r15*8]
loc_A9F2E:
mov [rsp+38h+var_38], rax
mov rsi, [rbx+18h]
test rsi, rsi
jz short loc_A9F40
add rsi, r13
jmp short loc_A9F48
loc_A9F40:
mov rax, [rbx+20h]
mov rsi, [rax+r15*8]; OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *
loc_A9F48:
mov rdi, r14; this
mov edx, ebp; int
mov rcx, rsp; __int64 *
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory19assignLinearSurfaceEPNS1_8internal11SurfaceDataEiPKl; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::assignLinearSurface(OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *,int,long const*)
inc r15
sub r13, 0FFFFFFFFFFFFFF80h
jmp short loc_A9F19
|
char OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateLinearSurfaces(
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory *this,
int a2,
long long a3)
{
long long v3; // rax
OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *v6; // rsi
char v7; // al
OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *v8; // rsi
long long v10; // r12
long long v11; // r13
long long i; // r15
long long v13; // rcx
long long v14; // rax
long long v15; // rsi
OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *v16; // rsi
long long v17[7]; // [rsp+0h] [rbp-38h] BYREF
v17[0] = v3;
v6 = *(OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData **)(a3 + 16);
if ( v6 )
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::assignLinearSurface(this, v6, a2, 0LL);
v7 = *((_BYTE *)this + 40);
if ( (v7 & 1) != 0 )
{
v8 = *(OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData **)(a3 + 8);
if ( v8 )
{
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::assignLinearSurface(this, v8, a2, 0LL);
v7 = *((_BYTE *)this + 40);
}
}
if ( (v7 & 2) != 0 )
{
v10 = *(unsigned int *)(a3 + 4);
v11 = 0LL;
if ( (int)v10 <= 0 )
v10 = 0LL;
for ( i = 0LL; v10 != i; ++i )
{
v13 = *(_QWORD *)(a3 + 40);
v14 = i;
if ( v13 )
v14 = *(_QWORD *)(v13 + 8 * i);
v17[0] = v14;
v15 = *(_QWORD *)(a3 + 24);
if ( v15 )
v16 = (OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData *)(v11 + v15);
else
v16 = *(OpenSubdiv::v3_6_0::Bfr::internal::SurfaceData **)(*(_QWORD *)(a3 + 32) + 8 * i);
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::assignLinearSurface(this, v16, a2, v17);
v11 += 128LL;
}
}
return 1;
}
|
populateLinearSurfaces:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV EBP,ESI
MOV R14,RDI
MOV RSI,qword ptr [RDX + 0x10]
TEST RSI,RSI
JZ 0x001a9ed2
MOV RDI,R14
MOV EDX,EBP
XOR ECX,ECX
CALL 0x00152e00
LAB_001a9ed2:
MOV AL,byte ptr [R14 + 0x28]
TEST AL,0x1
JZ 0x001a9ef3
MOV RSI,qword ptr [RBX + 0x8]
TEST RSI,RSI
JZ 0x001a9ef3
MOV RDI,R14
MOV EDX,EBP
XOR ECX,ECX
CALL 0x00152e00
MOV AL,byte ptr [R14 + 0x28]
LAB_001a9ef3:
TEST AL,0x2
JNZ 0x001a9f08
LAB_001a9ef7:
MOV AL,0x1
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001a9f08:
MOV R12D,dword ptr [RBX + 0x4]
XOR R13D,R13D
TEST R12D,R12D
CMOVLE R12D,R13D
XOR R15D,R15D
LAB_001a9f19:
CMP R12,R15
JZ 0x001a9ef7
MOV RCX,qword ptr [RBX + 0x28]
MOV RAX,R15
TEST RCX,RCX
JZ 0x001a9f2e
MOV RAX,qword ptr [RCX + R15*0x8]
LAB_001a9f2e:
MOV qword ptr [RSP],RAX
MOV RSI,qword ptr [RBX + 0x18]
TEST RSI,RSI
JZ 0x001a9f40
ADD RSI,R13
JMP 0x001a9f48
LAB_001a9f40:
MOV RAX,qword ptr [RBX + 0x20]
MOV RSI,qword ptr [RAX + R15*0x8]
LAB_001a9f48:
MOV RDI,R14
MOV EDX,EBP
MOV RCX,RSP
CALL 0x00152e00
INC R15
SUB R13,-0x80
JMP 0x001a9f19
|
/* OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateLinearSurfaces(int,
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet*) const */
int8 __thiscall
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateLinearSurfaces
(SurfaceFactory *this,int param_1,SurfaceSet *param_2)
{
SurfaceFactory SVar1;
SurfaceData *pSVar2;
ulong uVar3;
ulong uVar4;
ulong uVar5;
ulong local_38;
if (*(SurfaceData **)(param_2 + 0x10) != (SurfaceData *)0x0) {
assignLinearSurface(this,*(SurfaceData **)(param_2 + 0x10),param_1,(long *)0x0);
}
SVar1 = this[0x28];
if ((((byte)SVar1 & 1) != 0) && (*(SurfaceData **)(param_2 + 8) != (SurfaceData *)0x0)) {
assignLinearSurface(this,*(SurfaceData **)(param_2 + 8),param_1,(long *)0x0);
SVar1 = this[0x28];
}
if (((byte)SVar1 & 2) != 0) {
uVar4 = 0;
uVar3 = (ulong)*(uint *)(param_2 + 4);
if ((int)*(uint *)(param_2 + 4) < 1) {
uVar3 = uVar4;
}
for (uVar5 = 0; uVar3 != uVar5; uVar5 = uVar5 + 1) {
local_38 = uVar5;
if (*(long *)(param_2 + 0x28) != 0) {
local_38 = *(ulong *)(*(long *)(param_2 + 0x28) + uVar5 * 8);
}
if (*(long *)(param_2 + 0x18) == 0) {
pSVar2 = *(SurfaceData **)(*(long *)(param_2 + 0x20) + uVar5 * 8);
}
else {
pSVar2 = (SurfaceData *)(*(long *)(param_2 + 0x18) + uVar4);
}
assignLinearSurface(this,pSVar2,param_1,(long *)&local_38);
uVar4 = uVar4 + 0x80;
}
}
return 1;
}
|
|
60,751
|
parser_synchronize
|
tsotchke[P]eshkol/src/frontend/parser/parser_error.c
|
void parser_synchronize(Parser* parser) {
parser->panic_mode = false;
while (!parser_is_at_end(parser)) {
if (parser->previous.type == TOKEN_RPAREN) {
return;
}
switch (parser->current.type) {
case TOKEN_LPAREN:
return;
default:
// Do nothing
break;
}
parser_advance(parser);
}
}
|
O0
|
c
|
parser_synchronize:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movb $0x0, 0x81(%rax)
movq -0x8(%rbp), %rdi
callq 0x8440
xorb $-0x1, %al
testb $0x1, %al
jne 0x87f8
jmp 0x8821
movq -0x8(%rbp), %rax
cmpl $0x2, 0x50(%rax)
jne 0x8804
jmp 0x8821
movq -0x8(%rbp), %rax
movl 0x20(%rax), %eax
subl $0x1, %eax
jne 0x8814
jmp 0x8812
jmp 0x8821
jmp 0x8816
movq -0x8(%rbp), %rdi
callq 0x8390
jmp 0x87e7
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
parser_synchronize:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov byte ptr [rax+81h], 0
loc_87E7:
mov rdi, [rbp+var_8]
call parser_is_at_end
xor al, 0FFh
test al, 1
jnz short loc_87F8
jmp short loc_8821
loc_87F8:
mov rax, [rbp+var_8]
cmp dword ptr [rax+50h], 2
jnz short loc_8804
jmp short loc_8821
loc_8804:
mov rax, [rbp+var_8]
mov eax, [rax+20h]
sub eax, 1
jnz short loc_8814
jmp short $+2
loc_8812:
jmp short loc_8821
loc_8814:
jmp short $+2
loc_8816:
mov rdi, [rbp+var_8]
call parser_advance
jmp short loc_87E7
loc_8821:
add rsp, 10h
pop rbp
retn
|
char parser_synchronize(long long a1)
{
int v1; // eax
*(_BYTE *)(a1 + 129) = 0;
while ( 1 )
{
LOBYTE(v1) = ~parser_is_at_end(a1);
if ( (v1 & 1) == 0 )
break;
LOBYTE(v1) = a1;
if ( *(_DWORD *)(a1 + 80) == 2 )
break;
v1 = *(_DWORD *)(a1 + 32) - 1;
if ( *(_DWORD *)(a1 + 32) == 1 )
break;
parser_advance(a1);
}
return v1;
}
|
parser_synchronize:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x81],0x0
LAB_001087e7:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00108440
XOR AL,0xff
TEST AL,0x1
JNZ 0x001087f8
JMP 0x00108821
LAB_001087f8:
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x50],0x2
JNZ 0x00108804
JMP 0x00108821
LAB_00108804:
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x20]
SUB EAX,0x1
JNZ 0x00108814
JMP 0x00108812
LAB_00108812:
JMP 0x00108821
LAB_00108814:
JMP 0x00108816
LAB_00108816:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00108390
JMP 0x001087e7
LAB_00108821:
ADD RSP,0x10
POP RBP
RET
|
void parser_synchronize(long param_1)
{
byte bVar1;
*(int1 *)(param_1 + 0x81) = 0;
while (((bVar1 = parser_is_at_end(param_1), ((bVar1 ^ 0xff) & 1) != 0 &&
(*(int *)(param_1 + 0x50) != 2)) && (*(int *)(param_1 + 0x20) != 1))) {
parser_advance(param_1);
}
return;
}
|
|
60,752
|
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>>>>>::get_token_string() const
|
monkey531[P]llama/common/json.hpp
|
std::string get_token_string() const
{
// escape control characters
std::string result;
for (const auto c : token_string)
{
if (static_cast<unsigned char>(c) <= '\x1F')
{
// escape control characters
std::array<char, 9> cs{{}};
static_cast<void>((std::snprintf)(cs.data(), cs.size(), "<U+%.4X>", static_cast<unsigned char>(c))); // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
result += cs.data();
}
else
{
// add character as is
result.push_back(static_cast<std::string::value_type>(c));
}
}
return result;
}
|
O1
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::get_token_string() const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq 0x38(%rsi), %r13
movq 0x40(%rsi), %rbp
cmpq %rbp, %r13
je 0x5f3d7
leaq 0x95093(%rip), %r14 # 0xf441b
leaq 0x8(%rsp), %r15
movzbl (%r13), %ecx
cmpl $0x1f, %ecx
ja 0x5f3c4
movb $0x0, 0x10(%rsp)
movq $0x0, 0x8(%rsp)
movl $0x9, %esi
movq %r15, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x1be60
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1c190
jmp 0x5f3cf
movsbl %cl, %esi
movq %rbx, %rdi
callq 0x1b7a0
incq %r13
cmpq %rbp, %r13
jne 0x5f38d
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5f3eb
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x5f402
movq (%r12), %rsi
incq %rsi
callq 0x1b940
movq %r14, %rdi
callq 0x1c040
|
_ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, rdi
lea r12, [rdi+10h]
mov [rdi], r12
mov qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov r13, [rsi+38h]
mov rbp, [rsi+40h]
cmp r13, rbp
jz short loc_5F3D7
lea r14, aU4x; "<U+%.4X>"
lea r15, [rsp+48h+var_40]
loc_5F38D:
movzx ecx, byte ptr [r13+0]
cmp ecx, 1Fh
ja short loc_5F3C4
mov [rsp+48h+var_38], 0
mov [rsp+48h+var_40], 0
mov esi, 9
mov rdi, r15
mov rdx, r14
xor eax, eax
call _snprintf
mov rdi, rbx
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
jmp short loc_5F3CF
loc_5F3C4:
movsx esi, cl
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
loc_5F3CF:
inc r13
cmp r13, rbp
jnz short loc_5F38D
loc_5F3D7:
mov rax, rbx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_5F3EB:
mov r14, rax
mov rdi, [rbx]; void *
cmp rdi, r12
jz short loc_5F402
mov rsi, [r12]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5F402:
mov rdi, r14
call __Unwind_Resume
|
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>>>::get_token_string(
long long a1,
long long a2)
{
unsigned __int8 *v2; // r13
unsigned __int8 *i; // rbp
unsigned int v4; // ecx
long long v6; // [rsp+8h] [rbp-40h] BYREF
char v7; // [rsp+10h] [rbp-38h]
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
v2 = *(unsigned __int8 **)(a2 + 56);
for ( i = *(unsigned __int8 **)(a2 + 64); v2 != i; ++v2 )
{
v4 = *v2;
if ( v4 > 0x1F )
{
std::string::push_back(a1, (unsigned int)(char)v4);
}
else
{
v7 = 0;
v6 = 0LL;
snprintf(&v6, 9LL, "<U+%.4X>", v4);
std::string::append(a1, &v6);
}
}
return a1;
}
|
get_token_string:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
LEA R12,[RDI + 0x10]
MOV qword ptr [RDI],R12
MOV qword ptr [RDI + 0x8],0x0
MOV byte ptr [RDI + 0x10],0x0
MOV R13,qword ptr [RSI + 0x38]
MOV RBP,qword ptr [RSI + 0x40]
CMP R13,RBP
JZ 0x0015f3d7
LEA R14,[0x1f441b]
LEA R15,[RSP + 0x8]
LAB_0015f38d:
MOVZX ECX,byte ptr [R13]
CMP ECX,0x1f
JA 0x0015f3c4
MOV byte ptr [RSP + 0x10],0x0
MOV qword ptr [RSP + 0x8],0x0
MOV ESI,0x9
MOV RDI,R15
MOV RDX,R14
XOR EAX,EAX
CALL 0x0011be60
LAB_0015f3b7:
MOV RDI,RBX
MOV RSI,R15
CALL 0x0011c190
JMP 0x0015f3cf
LAB_0015f3c4:
MOVSX ESI,CL
MOV RDI,RBX
CALL 0x0011b7a0
LAB_0015f3cf:
INC R13
CMP R13,RBP
JNZ 0x0015f38d
LAB_0015f3d7:
MOV RAX,RBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > > >::get_token_string() const */
void 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>>>
::get_token_string(void)
{
byte *pbVar1;
long in_RSI;
long *in_RDI;
byte *pbVar2;
char local_40 [16];
*in_RDI = (long)(in_RDI + 2);
in_RDI[1] = 0;
*(int1 *)(in_RDI + 2) = 0;
pbVar2 = *(byte **)(in_RSI + 0x38);
pbVar1 = *(byte **)(in_RSI + 0x40);
if (pbVar2 != pbVar1) {
do {
if (*pbVar2 < 0x20) {
local_40[8] = 0;
local_40[0] = '\0';
local_40[1] = '\0';
local_40[2] = '\0';
local_40[3] = '\0';
local_40[4] = '\0';
local_40[5] = '\0';
local_40[6] = '\0';
local_40[7] = '\0';
snprintf(local_40,9,"<U+%.4X>");
/* try { // try from 0015f3b7 to 0015f3c1 has its CatchHandler @ 0015f3eb */
std::__cxx11::string::append((char *)in_RDI);
}
else {
/* try { // try from 0015f3c4 to 0015f3ce has its CatchHandler @ 0015f3e9 */
std::__cxx11::string::push_back((char)in_RDI);
}
pbVar2 = pbVar2 + 1;
} while (pbVar2 != pbVar1);
}
return;
}
|
|
60,753
|
psi_rwlock_wrlock
|
eloqsql/mysys/my_thr_init.c
|
ATTRIBUTE_COLD
int psi_rwlock_wrlock(mysql_rwlock_t *that, const char *file, uint line)
{
PSI_rwlock_locker_state state;
PSI_rwlock_locker *locker= PSI_RWLOCK_CALL(start_rwlock_wrwait)
(&state, that->m_psi, PSI_RWLOCK_WRITELOCK, file, line);
int result= rw_wrlock(&that->m_rwlock);
if (locker)
PSI_RWLOCK_CALL(end_rwlock_wrwait)(locker, result);
return result;
}
|
O0
|
c
|
psi_rwlock_wrlock:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
leaq 0x1b9596(%rip), %rax # 0x214310
movq (%rax), %rax
movq 0x1b0(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x90(%rcx), %rsi
movq -0x10(%rbp), %rcx
movl -0x14(%rbp), %r8d
leaq -0x48(%rbp), %rdi
movl $0x1, %edx
callq *%rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rdi
callq 0x5b2e0
movl %eax, -0x54(%rbp)
cmpq $0x0, -0x50(%rbp)
je 0x5add3
leaq 0x1b9550(%rip), %rax # 0x214310
movq (%rax), %rax
movq 0x1b8(%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_wrlock:
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+1B0h]
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, 1
call rax
mov [rbp+var_50], rax
mov rdi, [rbp+var_8]
call my_rw_wrlock
mov [rbp+var_54], eax
cmp [rbp+var_50], 0
jz short loc_5ADD3
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1B8h]
mov rdi, [rbp+var_50]
mov esi, [rbp+var_54]
call rax
loc_5ADD3:
mov eax, [rbp+var_54]
add rsp, 60h
pop rbp
retn
|
long long psi_rwlock_wrlock(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[54])(
v6,
*(_QWORD *)(a1 + 144),
1LL,
a2,
a3);
v4 = my_rw_wrlock(v9);
if ( v5 )
((void ( *)(long long, _QWORD))PSI_server[55])(v5, v4);
return v4;
}
|
psi_rwlock_wrlock:
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,[0x314310]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1b0]
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,0x1
CALL RAX
MOV qword ptr [RBP + -0x50],RAX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0015b2e0
MOV dword ptr [RBP + -0x54],EAX
CMP qword ptr [RBP + -0x50],0x0
JZ 0x0015add3
LEA RAX,[0x314310]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1b8]
MOV RDI,qword ptr [RBP + -0x50]
MOV ESI,dword ptr [RBP + -0x54]
CALL RAX
LAB_0015add3:
MOV EAX,dword ptr [RBP + -0x54]
ADD RSP,0x60
POP RBP
RET
|
int4 psi_rwlock_wrlock(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 + 0x1b0))
(local_50,*(int8 *)(param_1 + 0x90),1,param_2,param_3);
uVar1 = my_rw_wrlock(local_10);
if (lVar2 != 0) {
(**(code **)(PSI_server + 0x1b8))(lVar2,uVar1);
}
return uVar1;
}
|
|
60,754
|
long httplib::Stream::write_format<int, char const*>(char const*, int const&, char const* const&)
|
nickolajgrishuk[P]metricz-cpp/build_O2/_deps/httplib-src/httplib.h
|
inline ssize_t Stream::write_format(const char *fmt, const Args &...args) {
const auto bufsiz = 2048;
std::array<char, bufsiz> buf{};
auto sn = snprintf(buf.data(), buf.size() - 1, fmt, args...);
if (sn <= 0) { return sn; }
auto n = static_cast<size_t>(sn);
if (n >= buf.size() - 1) {
std::vector<char> glowable_buf(buf.size());
while (n >= glowable_buf.size() - 1) {
glowable_buf.resize(glowable_buf.size() * 2);
n = static_cast<size_t>(
snprintf(&glowable_buf[0], glowable_buf.size() - 1, fmt, args...));
}
return write(&glowable_buf[0], n);
} else {
return write(buf.data(), n);
}
}
|
O2
|
c
|
long httplib::Stream::write_format<int, char const*>(char const*, int const&, char const* const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x828, %rsp # imm = 0x828
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
leaq 0x28(%rsp), %r13
movl $0x800, %edx # imm = 0x800
movq %r13, %rdi
xorl %esi, %esi
callq 0x8300
movq (%r15), %rcx
movq (%r14), %r8
movl $0x7ff, %esi # imm = 0x7FF
movq %r13, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x88d0
testl %eax, %eax
jle 0x1a6aa
movl %eax, %ebp
cmpl $0x7ff, %eax # imm = 0x7FF
jae 0x1a6af
movq (%rbx), %rax
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
movq %rbp, %rdx
callq *0x28(%rax)
movq %rax, %rbx
jmp 0x1a728
movslq %eax, %rbx
jmp 0x1a728
leaq 0x10(%rsp), %r13
leaq 0xf(%rsp), %rdx
movl $0x800, %esi # imm = 0x800
movq %r13, %rdi
callq 0x1a780
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rax
subq %rsi, %rax
leaq -0x1(%rax), %rcx
cmpq %rcx, %rbp
jb 0x1a70f
addq %rax, %rax
movq %r13, %rdi
movq %rax, %rsi
callq 0x1a7d2
movq 0x10(%rsp), %rdi
movq %rdi, %rsi
notq %rsi
addq 0x18(%rsp), %rsi
movq (%r15), %rcx
movq (%r14), %r8
movq %r12, %rdx
xorl %eax, %eax
callq 0x88d0
movslq %eax, %rbp
jmp 0x1a6c6
movq (%rbx), %rax
movq %rbx, %rdi
movq %rbp, %rdx
callq *0x28(%rax)
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xfbc0
movq %rbx, %rax
addq $0x828, %rsp # imm = 0x828
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1a73f
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xfbc0
movq %rbx, %rdi
callq 0x89d0
|
_ZN7httplib6Stream12write_formatIJPKcS3_EEElS3_DpRKT_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 828h
mov r14, rcx
mov r15, rdx
mov r12, rsi
mov rbx, rdi
lea r13, [rsp+858h+var_830]
mov edx, 800h
mov rdi, r13
xor esi, esi
call _memset
mov rcx, [r15]
mov r8, [r14]
mov esi, 7FFh
mov rdi, r13
mov rdx, r12
xor eax, eax
call _snprintf
test eax, eax
jle short loc_1A6AA
mov ebp, eax
cmp eax, 7FFh
jnb short loc_1A6AF
mov rax, [rbx]
lea rsi, [rsp+858h+var_830]
mov rdi, rbx
mov rdx, rbp
call qword ptr [rax+28h]
mov rbx, rax
jmp short loc_1A728
loc_1A6AA:
movsxd rbx, eax
jmp short loc_1A728
loc_1A6AF:
lea r13, [rsp+858h+var_848]
lea rdx, [rsp+858h+var_849]
mov esi, 800h
mov rdi, r13
call _ZNSt6vectorIcSaIcEEC2EmRKS0_; std::vector<char>::vector(ulong,std::allocator<char> const&)
loc_1A6C6:
mov rsi, [rsp+858h+var_848]
mov rax, [rsp+858h+var_840]
sub rax, rsi
lea rcx, [rax-1]
cmp rbp, rcx
jb short loc_1A70F
add rax, rax
loc_1A6DF:
mov rdi, r13
mov rsi, rax
call _ZNSt6vectorIcSaIcEE6resizeEm; std::vector<char>::resize(ulong)
mov rdi, [rsp+858h+var_848]
mov rsi, rdi
not rsi
add rsi, [rsp+858h+var_840]
mov rcx, [r15]
mov r8, [r14]
mov rdx, r12
xor eax, eax
call _snprintf
movsxd rbp, eax
jmp short loc_1A6C6
loc_1A70F:
mov rax, [rbx]
mov rdi, rbx
mov rdx, rbp
call qword ptr [rax+28h]
mov rbx, rax
lea rdi, [rsp+858h+var_848]
call _ZNSt12_Vector_baseIcSaIcEED2Ev; std::_Vector_base<char>::~_Vector_base()
loc_1A728:
mov rax, rbx
add rsp, 828h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_1A73F:
mov rbx, rax
lea rdi, [rsp+arg_8]
call _ZNSt12_Vector_baseIcSaIcEED2Ev; std::_Vector_base<char>::~_Vector_base()
mov rdi, rbx
call __Unwind_Resume
|
long long httplib::Stream::write_format<char const*,char const*>(
long long a1,
long long a2,
_QWORD *a3,
_QWORD *a4)
{
int v6; // eax
unsigned long long v7; // rbp
long long v8; // rbx
char v10; // [rsp+Fh] [rbp-849h] BYREF
unsigned long long v11; // [rsp+10h] [rbp-848h] BYREF
long long v12; // [rsp+18h] [rbp-840h]
_BYTE v13[2096]; // [rsp+28h] [rbp-830h] BYREF
memset(v13, 0LL, 2048LL);
v6 = snprintf(v13, 2047LL, a2, *a3, *a4);
if ( v6 <= 0 )
return v6;
v7 = (unsigned int)v6;
if ( (unsigned int)v6 < 0x7FF )
return (*(long long ( **)(long long, _BYTE *, _QWORD))(*(_QWORD *)a1 + 40LL))(a1, v13, (unsigned int)v6);
std::vector<char>::vector(&v11, 2048LL, &v10);
while ( v7 >= v12 - v11 - 1 )
{
std::vector<char>::resize(&v11, 2 * (v12 - v11));
v7 = (int)snprintf(v11, v12 + ~v11, a2, *a3, *a4);
}
v8 = (*(long long ( **)(long long, unsigned long long, unsigned long long))(*(_QWORD *)a1 + 40LL))(a1, v11, v7);
std::_Vector_base<char>::~_Vector_base((void **)&v11);
return v8;
}
|
write_format<char_const*,char_const*>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x828
MOV R14,RCX
MOV R15,RDX
MOV R12,RSI
MOV RBX,RDI
LEA R13,[RSP + 0x28]
MOV EDX,0x800
MOV RDI,R13
XOR ESI,ESI
CALL 0x00108300
MOV RCX,qword ptr [R15]
MOV R8,qword ptr [R14]
MOV ESI,0x7ff
MOV RDI,R13
MOV RDX,R12
XOR EAX,EAX
CALL 0x001088d0
TEST EAX,EAX
JLE 0x0011a6aa
MOV EBP,EAX
CMP EAX,0x7ff
JNC 0x0011a6af
MOV RAX,qword ptr [RBX]
LEA RSI,[RSP + 0x28]
MOV RDI,RBX
MOV RDX,RBP
CALL qword ptr [RAX + 0x28]
MOV RBX,RAX
JMP 0x0011a728
LAB_0011a6aa:
MOVSXD RBX,EAX
JMP 0x0011a728
LAB_0011a6af:
LEA R13,[RSP + 0x10]
LEA RDX,[RSP + 0xf]
MOV ESI,0x800
MOV RDI,R13
CALL 0x0011a780
LAB_0011a6c6:
MOV RSI,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP + 0x18]
SUB RAX,RSI
LEA RCX,[RAX + -0x1]
CMP RBP,RCX
JC 0x0011a70f
ADD RAX,RAX
LAB_0011a6df:
MOV RDI,R13
MOV RSI,RAX
CALL 0x0011a7d2
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,RDI
NOT RSI
ADD RSI,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [R15]
MOV R8,qword ptr [R14]
MOV RDX,R12
XOR EAX,EAX
CALL 0x001088d0
MOVSXD RBP,EAX
JMP 0x0011a6c6
LAB_0011a70f:
MOV RAX,qword ptr [RBX]
LAB_0011a712:
MOV RDI,RBX
MOV RDX,RBP
CALL qword ptr [RAX + 0x28]
LAB_0011a71b:
MOV RBX,RAX
LEA RDI,[RSP + 0x10]
CALL 0x0010fbc0
LAB_0011a728:
MOV RAX,RBX
ADD RSP,0x828
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* long httplib::Stream::write_format<char const*, char const*>(char const*, char const* const&,
char const* const&) */
long __thiscall
httplib::Stream::write_format<char_const*,char_const*>
(Stream *this,char *param_1,char **param_2,char **param_3)
{
uint uVar1;
int iVar2;
long lVar3;
ulong uVar4;
allocator local_849;
char *local_848;
long local_840;
char local_830 [2048];
memset(local_830,0,0x800);
uVar1 = snprintf(local_830,0x7ff,param_1,*param_2,*param_3);
if ((int)uVar1 < 1) {
lVar3 = (long)(int)uVar1;
}
else {
uVar4 = (ulong)uVar1;
if (uVar1 < 0x7ff) {
lVar3 = (**(code **)(*(long *)this + 0x28))(this,local_830,uVar4);
}
else {
std::vector<char,std::allocator<char>>::vector
((vector<char,std::allocator<char>> *)&local_848,0x800,&local_849);
while( true ) {
if (uVar4 < (local_840 - (long)local_848) - 1U) break;
/* try { // try from 0011a6df to 0011a6e9 has its CatchHandler @ 0011a73f */
std::vector<char,std::allocator<char>>::resize
((vector<char,std::allocator<char>> *)&local_848,(local_840 - (long)local_848) * 2
);
iVar2 = snprintf(local_848,~(ulong)local_848 + local_840,param_1,*param_2,*param_3);
uVar4 = (ulong)iVar2;
}
/* try { // try from 0011a712 to 0011a71a has its CatchHandler @ 0011a73d */
lVar3 = (**(code **)(*(long *)this + 0x28))(this,local_848,uVar4);
std::_Vector_base<char,std::allocator<char>>::~_Vector_base
((_Vector_base<char,std::allocator<char>> *)&local_848);
}
}
return lVar3;
}
|
|
60,755
|
Json::FastWriter::writeValue(Json::Value const&)
|
aimrt_mujoco_sim/_deps/jsoncpp-src/src/lib_json/json_writer.cpp
|
void FastWriter::writeValue(const Value& value) {
switch (value.type()) {
case nullValue:
if (!dropNullPlaceholders_)
document_ += "null";
break;
case intValue:
document_ += valueToString(value.asLargestInt());
break;
case uintValue:
document_ += valueToString(value.asLargestUInt());
break;
case realValue:
document_ += valueToString(value.asDouble());
break;
case stringValue: {
// Is NULL possible for value.string_? No.
char const* str;
char const* end;
bool ok = value.getString(&str, &end);
if (ok)
document_ += valueToQuotedStringN(str, static_cast<size_t>(end - str));
break;
}
case booleanValue:
document_ += valueToString(value.asBool());
break;
case arrayValue: {
document_ += '[';
ArrayIndex size = value.size();
for (ArrayIndex index = 0; index < size; ++index) {
if (index > 0)
document_ += ',';
writeValue(value[index]);
}
document_ += ']';
} break;
case objectValue: {
Value::Members members(value.getMemberNames());
document_ += '{';
for (auto it = members.begin(); it != members.end(); ++it) {
const String& name = *it;
if (it != members.begin())
document_ += ',';
document_ += valueToQuotedStringN(name.data(), name.length());
document_ += yamlCompatibilityEnabled_ ? ": " : ":";
writeValue(value[name]);
}
document_ += '}';
} break;
}
}
|
O3
|
cpp
|
Json::FastWriter::writeValue(Json::Value const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x76e0e
cmpl $0x7, %eax
ja 0x7c45e
movl %eax, %eax
leaq 0xd5b4(%rip), %rcx # 0x89810
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x0, 0x29(%rbx)
jne 0x7c45e
addq $0x8, %rbx
leaq 0x774b(%rip), %rsi # 0x839c5
movq %rbx, %rdi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x20280
leaq 0x28(%rsp), %rsi
leaq 0x40(%rsp), %rdx
movq %r14, %rdi
callq 0x7714c
testb %al, %al
je 0x7c45e
movq 0x28(%rsp), %rsi
movq 0x40(%rsp), %rdx
subq %rsi, %rdx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x7bc16
addq $0x8, %rbx
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x201d0
jmp 0x7c44b
movq %r14, %rdi
callq 0x77ad2
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x7b935
addq $0x8, %rbx
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x201d0
jmp 0x7c44b
movq %r14, %rdi
callq 0x77ad8
leaq 0x8(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
movl $0x11, %edx
xorl %ecx, %ecx
callq 0x7b9c7
addq $0x8, %rbx
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x201d0
jmp 0x7c44b
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x795a8
leaq 0x8(%rbx), %r15
movq %r15, %rdi
movl $0x7b, %esi
callq 0x1e340
movq 0x28(%rsp), %r12
cmpq 0x30(%rsp), %r12
je 0x7c407
leaq 0xd5c7(%rip), %rbp # 0x89940
leaq 0xd5bb(%rip), %r13 # 0x8993b
cmpq 0x28(%rsp), %r12
je 0x7c394
movq %r15, %rdi
movl $0x2c, %esi
callq 0x1e340
movq (%r12), %rsi
movq 0x8(%r12), %rdx
leaq 0x8(%rsp), %rdi
xorl %ecx, %ecx
callq 0x7bc16
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r15, %rdi
callq 0x201d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x7c3cf
callq 0x1f0e0
cmpb $0x0, 0x28(%rbx)
movq %r13, %rsi
cmovneq %rbp, %rsi
movq %r15, %rdi
callq 0x20280
movq %r14, %rdi
movq %r12, %rsi
callq 0x78dc0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x7c22e
addq $0x20, %r12
cmpq 0x30(%rsp), %r12
jne 0x7c380
movq %r15, %rdi
movl $0x7d, %esi
callq 0x1e340
leaq 0x28(%rsp), %rdi
callq 0x1ebd0
jmp 0x7c45e
movq %r14, %rdi
callq 0x77acc
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x7b838
addq $0x8, %rbx
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x201d0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7c45e
callq 0x1f0e0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x77caa
leaq 0x74b2(%rip), %rcx # 0x8392e
leaq 0x74b0(%rip), %rsi # 0x83933
testb %al, %al
cmovneq %rcx, %rsi
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movzbl %al, %edx
xorq $0x5, %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x1e620
addq $0x8, %rbx
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x201d0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
jne 0x7c459
jmp 0x7c45e
leaq 0x8(%rbx), %r15
movq %r15, %rdi
movl $0x5b, %esi
callq 0x1e340
movq %r14, %rdi
callq 0x77f28
testl %eax, %eax
je 0x7c51a
movl %eax, %ebp
xorl %r12d, %r12d
testl %r12d, %r12d
je 0x7c4fc
movq %r15, %rdi
movl $0x2c, %esi
callq 0x1e340
movq %r14, %rdi
movl %r12d, %esi
callq 0x784f6
movq %rbx, %rdi
movq %rax, %rsi
callq 0x7c22e
incl %r12d
cmpl %r12d, %ebp
jne 0x7c4ea
movq %r15, %rdi
movl $0x5d, %esi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1e340
jmp 0x7c54a
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
jne 0x7c55b
jmp 0x7c58c
jmp 0x7c54a
jmp 0x7c54a
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7c58c
callq 0x1f0e0
jmp 0x7c58c
jmp 0x7c57f
jmp 0x7c57f
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x7c582
callq 0x1f0e0
jmp 0x7c582
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x1ebd0
movq %rbx, %rdi
callq 0x1ffd0
|
_ZN4Json10FastWriter10writeValueERKNS_5ValueE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov r14, rsi
mov rbx, rdi
mov rdi, rsi; this
call _ZNK4Json5Value4typeEv; Json::Value::type(void)
cmp eax, 7; switch 8 cases
ja def_7C263; jumptable 000000000007C263 default case
mov eax, eax
lea rcx, jpt_7C263
movsxd rax, ds:(jpt_7C263 - 89810h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_7C265:
cmp byte ptr [rbx+29h], 0; jumptable 000000000007C263 case 0
jnz def_7C263; jumptable 000000000007C263 default case
add rbx, 8
lea rsi, aStringPointerI+12h; "null"
mov rdi, rbx
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
loc_7C290:
lea rsi, [rsp+78h+var_50]; jumptable 000000000007C263 case 4
lea rdx, [rsp+78h+var_38]; char **
mov rdi, r14; this
call _ZNK4Json5Value9getStringEPPKcS3_; Json::Value::getString(char const**,char const**)
test al, al
jz def_7C263; jumptable 000000000007C263 default case
mov rsi, [rsp+78h+var_50]
mov rdx, [rsp+78h+var_38]
sub rdx, rsi
lea r14, [rsp+78h+var_70]
mov rdi, r14; int
xor ecx, ecx
call _ZN4JsonL20valueToQuotedStringNB5cxx11EPKcmb; Json::valueToQuotedStringN(char const*,ulong,bool)
add rbx, 8
mov rsi, [r14]
mov rdx, [r14+8]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
jmp loc_7C44B
loc_7C2DE:
mov rdi, r14; jumptable 000000000007C263 case 2
call _ZNK4Json5Value13asLargestUIntEv; Json::Value::asLargestUInt(void)
lea r14, [rsp+78h+var_70]
mov rdi, r14
mov rsi, rax
call _ZN4Json13valueToStringB5cxx11Em; Json::valueToString(ulong)
add rbx, 8
mov rsi, [r14]
mov rdx, [r14+8]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
jmp loc_7C44B
loc_7C30E:
mov rdi, r14; jumptable 000000000007C263 case 3
call _ZNK4Json5Value8asDoubleEv; Json::Value::asDouble(void)
lea r14, [rsp+78h+var_70]
mov rdi, r14
xor esi, esi
mov edx, 11h
xor ecx, ecx
call _ZN4Json12_GLOBAL__N_113valueToStringB5cxx11EdbjNS_13PrecisionTypeE; Json::`anonymous namespace'::valueToString(double,bool,uint,Json::PrecisionType)
add rbx, 8
mov rsi, [r14]
mov rdx, [r14+8]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
jmp loc_7C44B
loc_7C344:
lea rdi, [rsp+78h+var_50]; jumptable 000000000007C263 case 7
mov rsi, r14
call _ZNK4Json5Value14getMemberNamesB5cxx11Ev; Json::Value::getMemberNames(void)
lea r15, [rbx+8]
mov rdi, r15
mov esi, 7Bh ; '{'
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov r12, [rsp+78h+var_50]
cmp r12, [rsp+78h+var_48]
jz loc_7C407
lea rbp, asc_8993F+1; ": "
lea r13, asc_8993B; ":"
loc_7C380:
cmp r12, [rsp+78h+var_50]
jz short loc_7C394
mov rdi, r15
mov esi, 2Ch ; ','
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
loc_7C394:
mov rsi, [r12]
mov rdx, [r12+8]
lea rdi, [rsp+78h+var_70]; int
xor ecx, ecx
call _ZN4JsonL20valueToQuotedStringNB5cxx11EPKcmb; Json::valueToQuotedStringN(char const*,ulong,bool)
mov rsi, [rsp+78h+var_70]
mov rdx, [rsp+78h+var_68]
mov rdi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, [rsp+78h+var_70]; void *
lea rax, [rsp+78h+var_60]
cmp rdi, rax
jz short loc_7C3CF
call __ZdlPv; operator delete(void *)
loc_7C3CF:
cmp byte ptr [rbx+28h], 0
mov rsi, r13
cmovnz rsi, rbp
mov rdi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rdi, r14
mov rsi, r12
call _ZNK4Json5ValueixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; Json::Value::operator[](std::string const&)
mov rdi, rbx; this
mov rsi, rax; Json::Value *
call _ZN4Json10FastWriter10writeValueERKNS_5ValueE; Json::FastWriter::writeValue(Json::Value const&)
add r12, 20h ; ' '
cmp r12, [rsp+78h+var_48]
jnz loc_7C380
loc_7C407:
mov rdi, r15
mov esi, 7Dh ; '}'
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
lea rdi, [rsp+78h+var_50]
call __ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp short def_7C263; jumptable 000000000007C263 default case
loc_7C420:
mov rdi, r14; jumptable 000000000007C263 case 1
call _ZNK4Json5Value12asLargestIntEv; Json::Value::asLargestInt(void)
lea r14, [rsp+78h+var_70]
mov rdi, r14
mov rsi, rax
call _ZN4Json13valueToStringB5cxx11El; Json::valueToString(long)
add rbx, 8
mov rsi, [r14]
mov rdx, [r14+8]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
loc_7C44B:
lea rax, [rsp+78h+var_60]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short def_7C263; jumptable 000000000007C263 default case
loc_7C459:
call __ZdlPv; operator delete(void *)
def_7C263:
add rsp, 48h; jumptable 000000000007C263 default case
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_7C46D:
mov rdi, r14; jumptable 000000000007C263 case 5
call _ZNK4Json5Value6asBoolEv; Json::Value::asBool(void)
lea rcx, aTrue; "true"
lea rsi, aFalse; "false"
test al, al
cmovnz rsi, rcx
lea r15, [rsp+78h+var_60]
mov [r15-10h], r15
movzx edx, al
xor rdx, 5
add rdx, rsi
lea r14, [rsp+78h+var_70]
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
add rbx, 8
mov rsi, [r14]
mov rdx, [r14+8]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, [rsp+78h+var_70]
cmp rdi, r15
jnz short loc_7C459
jmp short def_7C263; jumptable 000000000007C263 default case
loc_7C4C8:
lea r15, [rbx+8]; jumptable 000000000007C263 case 6
mov rdi, r15
mov esi, 5Bh ; '['
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov rdi, r14; this
call _ZNK4Json5Value4sizeEv; Json::Value::size(void)
test eax, eax
jz short loc_7C51A
mov ebp, eax
xor r12d, r12d
loc_7C4EA:
test r12d, r12d
jz short loc_7C4FC
mov rdi, r15
mov esi, 2Ch ; ','
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
loc_7C4FC:
mov rdi, r14
mov esi, r12d
call _ZNK4Json5ValueixEj; Json::Value::operator[](uint)
mov rdi, rbx; this
mov rsi, rax; Json::Value *
call _ZN4Json10FastWriter10writeValueERKNS_5ValueE; Json::FastWriter::writeValue(Json::Value const&)
inc r12d
cmp ebp, r12d
jnz short loc_7C4EA
loc_7C51A:
mov rdi, r15
mov esi, 5Dh ; ']'
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
jmp short loc_7C54A
mov rbx, rax
mov rdi, [rsp+arg_0]
cmp rdi, r15
jnz short loc_7C55B
jmp short loc_7C58C
jmp short loc_7C54A
jmp short $+2
loc_7C54A:
mov rbx, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_7C58C
loc_7C55B:
call __ZdlPv; operator delete(void *)
jmp short loc_7C58C
jmp short loc_7C57F
jmp short loc_7C57F
mov rbx, rax
mov rdi, [rsp+arg_0]; void *
lea rax, [rsp+arg_10]
cmp rdi, rax
jz short loc_7C582
call __ZdlPv; operator delete(void *)
jmp short loc_7C582
loc_7C57F:
mov rbx, rax
loc_7C582:
lea rdi, [rsp+arg_20]
call __ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
loc_7C58C:
mov rdi, rbx
call __Unwind_Resume
|
void Json::FastWriter::writeValue(Json::FastWriter *this, const Json::Value *a2)
{
unsigned long long v3; // rax
double v4; // xmm0_8
char *j; // r12
char *v6; // rsi
const Json::Value *v7; // rax
long long v8; // rax
void *v9; // rdi
unsigned __int8 v10; // al
const char *v11; // rsi
int v12; // eax
int v13; // ebp
int i; // r12d
const Json::Value *v15; // rax
void *v16; // [rsp+8h] [rbp-70h] BYREF
long long v17; // [rsp+10h] [rbp-68h]
_BYTE v18[16]; // [rsp+18h] [rbp-60h] BYREF
char *v19; // [rsp+28h] [rbp-50h] BYREF
char *v20; // [rsp+30h] [rbp-48h]
char *v21; // [rsp+40h] [rbp-38h] BYREF
switch ( (unsigned int)Json::Value::type(a2) )
{
case 0u:
if ( !*((_BYTE *)this + 41) )
std::string::append((char *)this + 8, "null");
return;
case 1u:
v8 = Json::Value::asLargestInt(a2);
Json::valueToString[abi:cxx11]((long long)&v16, v8);
std::string::_M_append((char *)this + 8, v16, v17);
goto LABEL_18;
case 2u:
v3 = Json::Value::asLargestUInt(a2);
Json::valueToString[abi:cxx11]((long long)&v16, v3);
std::string::_M_append((char *)this + 8, v16, v17);
goto LABEL_18;
case 3u:
v4 = Json::Value::asDouble(a2);
Json::`anonymous namespace'::valueToString[abi:cxx11]((long long *)&v16, 0, 0x11u, 0, v4);
std::string::_M_append((char *)this + 8, v16, v17);
goto LABEL_18;
case 4u:
if ( !(unsigned __int8)Json::Value::getString((const char **)a2, (const char **)&v19, (const char **)&v21) )
return;
Json::valueToQuotedStringN[abi:cxx11]((long long)&v16, (unsigned __int8 *)v19, v21 - v19, 0);
std::string::_M_append((char *)this + 8, v16, v17);
LABEL_18:
v9 = v16;
if ( v16 != v18 )
LABEL_19:
operator delete(v9);
return;
case 5u:
v10 = Json::Value::asBool(a2);
v11 = "false";
if ( v10 )
v11 = "true";
v16 = v18;
std::string::_M_construct<char const*>(&v16, v11, &v11[v10 ^ 5LL]);
std::string::_M_append((char *)this + 8, v16, v17);
v9 = v16;
if ( v16 == v18 )
return;
goto LABEL_19;
case 6u:
std::string::push_back((char *)this + 8, 91LL);
v12 = Json::Value::size(a2);
if ( v12 )
{
v13 = v12;
for ( i = 0; i != v13; ++i )
{
if ( i )
std::string::push_back((char *)this + 8, 44LL);
v15 = (const Json::Value *)Json::Value::operator[](a2, i);
Json::FastWriter::writeValue(this, v15);
}
}
std::string::push_back((char *)this + 8, 93LL);
return;
case 7u:
Json::Value::getMemberNames[abi:cxx11]((long long)&v19, a2);
std::string::push_back((char *)this + 8, 123LL);
for ( j = v19; j != v20; j += 32 )
{
if ( j != v19 )
std::string::push_back((char *)this + 8, 44LL);
Json::valueToQuotedStringN[abi:cxx11]((long long)&v16, *(unsigned __int8 **)j, *((_QWORD *)j + 1), 0);
std::string::_M_append((char *)this + 8, v16, v17);
if ( v16 != v18 )
operator delete(v16);
v6 = ":";
if ( *((_BYTE *)this + 40) )
v6 = ": ";
std::string::append((char *)this + 8, v6);
v7 = (const Json::Value *)Json::Value::operator[](a2, (long long)j);
Json::FastWriter::writeValue(this, v7);
}
std::string::push_back((char *)this + 8, 125LL);
std::vector<std::string>::~vector(&v19);
return;
default:
return;
}
}
|
writeValue:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV R14,RSI
MOV RBX,RDI
MOV RDI,RSI
CALL 0x00176e0e
CMP EAX,0x7
JA 0x0017c45e
MOV EAX,EAX
LEA RCX,[0x189810]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_0:
CMP byte ptr [RBX + 0x29],0x0
JNZ 0x0017c45e
ADD RBX,0x8
LEA RSI,[0x1839c5]
MOV RDI,RBX
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00120280
caseD_4:
LEA RSI,[RSP + 0x28]
LEA RDX,[RSP + 0x40]
MOV RDI,R14
CALL 0x0017714c
TEST AL,AL
JZ 0x0017c45e
MOV RSI,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RSP + 0x40]
SUB RDX,RSI
LEA R14,[RSP + 0x8]
MOV RDI,R14
XOR ECX,ECX
CALL 0x0017bc16
ADD RBX,0x8
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
LAB_0017c2d1:
MOV RDI,RBX
CALL 0x001201d0
LAB_0017c2d9:
JMP 0x0017c44b
caseD_2:
MOV RDI,R14
CALL 0x00177ad2
LEA R14,[RSP + 0x8]
MOV RDI,R14
MOV RSI,RAX
CALL 0x0017b935
ADD RBX,0x8
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
LAB_0017c301:
MOV RDI,RBX
CALL 0x001201d0
LAB_0017c309:
JMP 0x0017c44b
caseD_3:
MOV RDI,R14
CALL 0x00177ad8
LEA R14,[RSP + 0x8]
MOV RDI,R14
XOR ESI,ESI
MOV EDX,0x11
XOR ECX,ECX
CALL 0x0017b9c7
ADD RBX,0x8
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
LAB_0017c337:
MOV RDI,RBX
CALL 0x001201d0
LAB_0017c33f:
JMP 0x0017c44b
caseD_7:
LEA RDI,[RSP + 0x28]
MOV RSI,R14
CALL 0x001795a8
LEA R15,[RBX + 0x8]
LAB_0017c355:
MOV RDI,R15
MOV ESI,0x7b
CALL 0x0011e340
MOV R12,qword ptr [RSP + 0x28]
CMP R12,qword ptr [RSP + 0x30]
JZ 0x0017c407
LEA RBP,[0x189940]
LEA R13,[0x18993b]
LAB_0017c380:
CMP R12,qword ptr [RSP + 0x28]
JZ 0x0017c394
LAB_0017c387:
MOV RDI,R15
MOV ESI,0x2c
CALL 0x0011e340
LAB_0017c394:
MOV RSI,qword ptr [R12]
MOV RDX,qword ptr [R12 + 0x8]
LAB_0017c39d:
LEA RDI,[RSP + 0x8]
XOR ECX,ECX
CALL 0x0017bc16
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
LAB_0017c3b3:
MOV RDI,R15
CALL 0x001201d0
MOV RDI,qword ptr [RSP + 0x8]
LEA RAX,[RSP + 0x18]
CMP RDI,RAX
JZ 0x0017c3cf
CALL 0x0011f0e0
LAB_0017c3cf:
CMP byte ptr [RBX + 0x28],0x0
MOV RSI,R13
CMOVNZ RSI,RBP
LAB_0017c3da:
MOV RDI,R15
CALL 0x00120280
MOV RDI,R14
MOV RSI,R12
CALL 0x00178dc0
MOV RDI,RBX
MOV RSI,RAX
CALL 0x0017c22e
ADD R12,0x20
CMP R12,qword ptr [RSP + 0x30]
JNZ 0x0017c380
LAB_0017c407:
MOV RDI,R15
MOV ESI,0x7d
CALL 0x0011e340
LAB_0017c414:
LEA RDI,[RSP + 0x28]
CALL 0x0011ebd0
JMP 0x0017c45e
caseD_1:
MOV RDI,R14
CALL 0x00177acc
LEA R14,[RSP + 0x8]
MOV RDI,R14
MOV RSI,RAX
CALL 0x0017b838
ADD RBX,0x8
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
LAB_0017c443:
MOV RDI,RBX
CALL 0x001201d0
LAB_0017c44b:
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0017c45e
LAB_0017c459:
CALL 0x0011f0e0
default:
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
caseD_5:
MOV RDI,R14
CALL 0x00177caa
LEA RCX,[0x18392e]
LEA RSI,[0x183933]
TEST AL,AL
CMOVNZ RSI,RCX
LEA R15,[RSP + 0x18]
MOV qword ptr [R15 + -0x10],R15
MOVZX EDX,AL
XOR RDX,0x5
ADD RDX,RSI
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x0011e620
ADD RBX,0x8
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
LAB_0017c4b4:
MOV RDI,RBX
CALL 0x001201d0
LAB_0017c4bc:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R15
JNZ 0x0017c459
JMP 0x0017c45e
caseD_6:
LEA R15,[RBX + 0x8]
MOV RDI,R15
MOV ESI,0x5b
CALL 0x0011e340
MOV RDI,R14
CALL 0x00177f28
TEST EAX,EAX
JZ 0x0017c51a
MOV EBP,EAX
XOR R12D,R12D
LAB_0017c4ea:
TEST R12D,R12D
JZ 0x0017c4fc
MOV RDI,R15
MOV ESI,0x2c
CALL 0x0011e340
LAB_0017c4fc:
MOV RDI,R14
MOV ESI,R12D
CALL 0x001784f6
MOV RDI,RBX
MOV RSI,RAX
CALL 0x0017c22e
INC R12D
CMP EBP,R12D
JNZ 0x0017c4ea
LAB_0017c51a:
MOV RDI,R15
MOV ESI,0x5d
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x0011e340
|
/* Json::FastWriter::writeValue(Json::Value const&) */
void __thiscall Json::FastWriter::writeValue(FastWriter *this,Value *param_1)
{
string *psVar1;
char cVar2;
byte bVar3;
int4 uVar4;
uint uVar5;
ulong uVar6;
Value *pVVar7;
long lVar8;
char *pcVar9;
uint uVar10;
string *psVar11;
char *local_70;
ulong local_68;
char local_60 [16];
string *local_50;
string *local_48;
char *local_38;
uVar4 = Value::type(param_1);
switch(uVar4) {
case 0:
if (this[0x29] != (FastWriter)0x0) {
return;
}
std::__cxx11::string::append((string *)(this + 8),"null");
return;
case 1:
lVar8 = Value::asLargestInt(param_1);
valueToString_abi_cxx11_((Json *)&local_70,lVar8);
/* try { // try from 0017c443 to 0017c44a has its CatchHandler @ 0017c546 */
std::__cxx11::string::_M_append((string *)(this + 8),local_70,local_68);
break;
case 2:
uVar6 = Value::asLargestUInt(param_1);
valueToString_abi_cxx11_((Json *)&local_70,uVar6);
/* try { // try from 0017c301 to 0017c308 has its CatchHandler @ 0017c54a */
std::__cxx11::string::_M_append((string *)(this + 8),local_70,local_68);
break;
case 3:
Value::asDouble(param_1);
(anonymous_namespace)::valueToString_abi_cxx11_((_anonymous_namespace_ *)&local_70,0,0x11,0);
/* try { // try from 0017c337 to 0017c33e has its CatchHandler @ 0017c548 */
std::__cxx11::string::_M_append((string *)(this + 8),local_70,local_68);
break;
case 4:
cVar2 = Value::getString(param_1,(char **)&local_50,&local_38);
if (cVar2 == '\0') {
return;
}
valueToQuotedStringN_abi_cxx11_
((Json *)&local_70,(char *)local_50,(long)local_38 - (long)local_50,false);
/* try { // try from 0017c2d1 to 0017c2d8 has its CatchHandler @ 0017c535 */
std::__cxx11::string::_M_append((string *)(this + 8),local_70,local_68);
break;
case 5:
bVar3 = Value::asBool(param_1);
pcVar9 = "false";
if (bVar3 != 0) {
pcVar9 = "true";
}
local_70 = local_60;
std::__cxx11::string::_M_construct<char_const*>(&local_70,pcVar9,pcVar9 + ((ulong)bVar3 ^ 5));
/* try { // try from 0017c4b4 to 0017c4bb has its CatchHandler @ 0017c537 */
std::__cxx11::string::_M_append((string *)(this + 8),local_70,local_68);
if (local_70 == local_60) {
return;
}
goto LAB_0017c459;
case 6:
psVar1 = (string *)(this + 8);
std::__cxx11::string::push_back(psVar1,'[');
uVar5 = Value::size(param_1);
if (uVar5 != 0) {
uVar10 = 0;
do {
if (uVar10 != 0) {
std::__cxx11::string::push_back(psVar1,',');
}
pVVar7 = (Value *)Value::operator[](param_1,uVar10);
writeValue(this,pVVar7);
uVar10 = uVar10 + 1;
} while (uVar5 != uVar10);
}
std::__cxx11::string::push_back(psVar1,']');
return;
case 7:
Value::getMemberNames_abi_cxx11_();
psVar1 = (string *)(this + 8);
/* try { // try from 0017c355 to 0017c361 has its CatchHandler @ 0017c562 */
std::__cxx11::string::push_back(psVar1,'{');
psVar11 = local_50;
if (local_50 != local_48) {
do {
if (psVar11 != local_50) {
/* try { // try from 0017c387 to 0017c393 has its CatchHandler @ 0017c57f */
std::__cxx11::string::push_back(psVar1,',');
}
/* try { // try from 0017c39d to 0017c3a8 has its CatchHandler @ 0017c564 */
valueToQuotedStringN_abi_cxx11_
((Json *)&local_70,*(char **)psVar11,*(ulong *)(psVar11 + 8),false);
/* try { // try from 0017c3b3 to 0017c3ba has its CatchHandler @ 0017c566 */
std::__cxx11::string::_M_append(psVar1,local_70,local_68);
if (local_70 != local_60) {
operator_delete(local_70);
}
pcVar9 = ":";
if (this[0x28] != (FastWriter)0x0) {
pcVar9 = ": ";
}
/* try { // try from 0017c3da to 0017c3f7 has its CatchHandler @ 0017c57f */
std::__cxx11::string::append(psVar1,pcVar9);
pVVar7 = (Value *)Value::operator[](param_1,psVar11);
writeValue(this,pVVar7);
psVar11 = psVar11 + 0x20;
} while (psVar11 != local_48);
}
/* try { // try from 0017c407 to 0017c413 has its CatchHandler @ 0017c562 */
std::__cxx11::string::push_back(psVar1,'}');
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_50);
default:
goto switchD_0017c263_default;
}
if (local_70 != local_60) {
LAB_0017c459:
operator_delete(local_70);
}
switchD_0017c263_default:
return;
}
|
|
60,756
|
google::protobuf::compiler::php::(anonymous namespace)::EscapePhpdoc(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/php/php_generator.cc
|
static std::string EscapePhpdoc(const std::string& input) {
std::string result;
result.reserve(input.size() * 2);
char prev = '*';
for (std::string::size_type i = 0; i < input.size(); i++) {
char c = input[i];
switch (c) {
case '*':
// Avoid "/*".
if (prev == '/') {
result.append("*");
} else {
result.push_back(c);
}
break;
case '/':
// Avoid "*/".
if (prev == '*') {
result.append("/");
} else {
result.push_back(c);
}
break;
case '@':
// '@' starts phpdoc tags including the @deprecated tag, which will
// cause a compile-time error if inserted before a declaration that
// does not have a corresponding @Deprecated annotation.
result.append("@");
break;
default:
result.push_back(c);
break;
}
prev = c;
}
return result;
}
|
O0
|
cpp
|
google::protobuf::compiler::php::(anonymous namespace)::EscapePhpdoc(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
subq $0x58, %rsp
movq %rdi, 0x18(%rsp)
movq %rdi, %rax
movq %rax, 0x10(%rsp)
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movb $0x0, 0x47(%rsp)
callq 0x21390
movq 0x48(%rsp), %rdi
callq 0x21300
movq 0x18(%rsp), %rdi
movq %rax, %rsi
addq %rsi, %rsi
callq 0x21850
jmp 0x9a791
movb $0x2a, 0x33(%rsp)
movq $0x0, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x48(%rsp), %rdi
callq 0x21300
movq %rax, %rcx
movq 0x8(%rsp), %rax
cmpq %rcx, %rax
jae 0x9a8ce
movq 0x48(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x21ba0
movb (%rax), %al
movb %al, 0x27(%rsp)
movsbl 0x27(%rsp), %eax
movl %eax, 0x4(%rsp)
subl $0x2a, %eax
je 0x9a823
jmp 0x9a7e9
movl 0x4(%rsp), %eax
subl $0x2f, %eax
je 0x9a857
jmp 0x9a7f4
movl 0x4(%rsp), %eax
subl $0x40, %eax
je 0x9a88b
jmp 0x9a8a0
movq 0x18(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x38(%rsp)
movl %eax, 0x34(%rsp)
callq 0x21cc8
jmp 0x9a8ee
movsbl 0x33(%rsp), %eax
cmpl $0x2f, %eax
jne 0x9a842
movq 0x18(%rsp), %rdi
leaq 0x318a2a(%rip), %rsi # 0x3b3263
callq 0x21710
jmp 0x9a840
jmp 0x9a855
movq 0x18(%rsp), %rdi
movsbl 0x27(%rsp), %esi
callq 0x21c20
jmp 0x9a853
jmp 0x9a855
jmp 0x9a8b3
movsbl 0x33(%rsp), %eax
cmpl $0x2a, %eax
jne 0x9a876
movq 0x18(%rsp), %rdi
leaq 0x3189fc(%rip), %rsi # 0x3b3269
callq 0x21710
jmp 0x9a874
jmp 0x9a889
movq 0x18(%rsp), %rdi
movsbl 0x27(%rsp), %esi
callq 0x21c20
jmp 0x9a887
jmp 0x9a889
jmp 0x9a8b3
movq 0x18(%rsp), %rdi
leaq 0x3189d8(%rip), %rsi # 0x3b326f
callq 0x21710
jmp 0x9a89e
jmp 0x9a8b3
movq 0x18(%rsp), %rdi
movsbl 0x27(%rsp), %esi
callq 0x21c20
jmp 0x9a8b1
jmp 0x9a8b3
movb 0x27(%rsp), %al
movb %al, 0x33(%rsp)
movq 0x28(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x28(%rsp)
jmp 0x9a79f
movb $0x1, 0x47(%rsp)
testb $0x1, 0x47(%rsp)
jne 0x9a8e4
movq 0x18(%rsp), %rdi
callq 0x21cc8
movq 0x10(%rsp), %rax
addq $0x58, %rsp
retq
movq 0x38(%rsp), %rdi
callq 0x21700
nopl (%rax,%rax)
|
_ZN6google8protobuf8compiler3php12_GLOBAL__N_112EscapePhpdocERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
sub rsp, 58h
mov [rsp+58h+var_40], rdi
mov rax, rdi
mov [rsp+58h+var_48], rax
mov [rsp+58h+var_8], rdi
mov [rsp+58h+var_10], rsi
mov [rsp+58h+var_11], 0
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void)
mov rdi, [rsp+58h+var_10]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv; std::string::size(void)
mov rdi, [rsp+58h+var_40]
mov rsi, rax
add rsi, rsi
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
jmp short $+2
loc_9A791:
mov [rsp+58h+var_25], 2Ah ; '*'
mov [rsp+58h+var_30], 0
loc_9A79F:
mov rax, [rsp+58h+var_30]
mov [rsp+58h+var_50], rax
mov rdi, [rsp+58h+var_10]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv; std::string::size(void)
mov rcx, rax
mov rax, [rsp+58h+var_50]
cmp rax, rcx
jnb loc_9A8CE
mov rdi, [rsp+58h+var_10]
mov rsi, [rsp+58h+var_30]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm; std::string::operator[](ulong)
mov al, [rax]
mov [rsp+58h+var_31], al
movsx eax, [rsp+58h+var_31]
mov [rsp+58h+var_54], eax
sub eax, 2Ah ; '*'
jz short loc_9A823
jmp short $+2
loc_9A7E9:
mov eax, [rsp+58h+var_54]
sub eax, 2Fh ; '/'
jz short loc_9A857
jmp short $+2
loc_9A7F4:
mov eax, [rsp+58h+var_54]
sub eax, 40h ; '@'
jz loc_9A88B
jmp loc_9A8A0
mov rdi, [rsp+arg_10]; void *
mov rcx, rax
mov eax, edx
mov [rsp+arg_30], rcx
mov [rsp+arg_2C], eax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_9A8EE
loc_9A823:
movsx eax, [rsp+58h+var_25]
cmp eax, 2Fh ; '/'
jnz short loc_9A842
mov rdi, [rsp+58h+var_40]
lea rsi, a42; "*"
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
jmp short $+2
loc_9A840:
jmp short loc_9A855
loc_9A842:
mov rdi, [rsp+58h+var_40]
movsx esi, [rsp+58h+var_31]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
jmp short $+2
loc_9A853:
jmp short $+2
loc_9A855:
jmp short loc_9A8B3
loc_9A857:
movsx eax, [rsp+58h+var_25]
cmp eax, 2Ah ; '*'
jnz short loc_9A876
mov rdi, [rsp+58h+var_40]
lea rsi, a47; "/"
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
jmp short $+2
loc_9A874:
jmp short loc_9A889
loc_9A876:
mov rdi, [rsp+58h+var_40]
movsx esi, [rsp+58h+var_31]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
jmp short $+2
loc_9A887:
jmp short $+2
loc_9A889:
jmp short loc_9A8B3
loc_9A88B:
mov rdi, [rsp+58h+var_40]
lea rsi, a64; "@"
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
jmp short $+2
loc_9A89E:
jmp short loc_9A8B3
loc_9A8A0:
mov rdi, [rsp+58h+var_40]
movsx esi, [rsp+58h+var_31]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
jmp short $+2
loc_9A8B1:
jmp short $+2
loc_9A8B3:
mov al, [rsp+58h+var_31]
mov [rsp+58h+var_25], al
mov rax, [rsp+58h+var_30]
add rax, 1
mov [rsp+58h+var_30], rax
jmp loc_9A79F
loc_9A8CE:
mov [rsp+58h+var_11], 1
test [rsp+58h+var_11], 1
jnz short loc_9A8E4
mov rdi, [rsp+58h+var_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_9A8E4:
mov rax, [rsp+58h+var_48]
add rsp, 58h
retn
loc_9A8EE:
mov rdi, [rsp+arg_30]
call __Unwind_Resume
|
long long google::protobuf::compiler::php::`anonymous namespace'::EscapePhpdoc(long long a1, long long a2)
{
long long v2; // rax
char v4; // [rsp+27h] [rbp-31h]
unsigned long long i; // [rsp+28h] [rbp-30h]
char v6; // [rsp+33h] [rbp-25h]
std::string::basic_string(a1);
v2 = std::string::size(a2);
std::string::reserve(a1, 2 * v2);
v6 = 42;
for ( i = 0LL; i < std::string::size(a2); ++i )
{
v4 = *(_BYTE *)std::string::operator[](a2, i);
switch ( v4 )
{
case '*':
if ( v6 != 47 )
goto LABEL_6;
std::string::append(a1, "*");
break;
case '/':
if ( v6 != 42 )
{
LABEL_6:
std::string::push_back(a1, (unsigned int)v4);
break;
}
std::string::append(a1, "/");
break;
case '@':
std::string::append(a1, "@");
break;
default:
goto LABEL_6;
}
v6 = v4;
}
return a1;
}
|
EscapePhpdoc:
SUB RSP,0x58
MOV qword ptr [RSP + 0x18],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x50],RDI
MOV qword ptr [RSP + 0x48],RSI
MOV byte ptr [RSP + 0x47],0x0
CALL 0x00121390
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x00121300
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,RAX
ADD RSI,RSI
LAB_0019a78a:
CALL 0x00121850
JMP 0x0019a791
LAB_0019a791:
MOV byte ptr [RSP + 0x33],0x2a
MOV qword ptr [RSP + 0x28],0x0
LAB_0019a79f:
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x00121300
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x8]
CMP RAX,RCX
JNC 0x0019a8ce
MOV RDI,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x28]
CALL 0x00121ba0
MOV AL,byte ptr [RAX]
MOV byte ptr [RSP + 0x27],AL
MOVSX EAX,byte ptr [RSP + 0x27]
MOV dword ptr [RSP + 0x4],EAX
SUB EAX,0x2a
JZ 0x0019a823
JMP 0x0019a7e9
LAB_0019a7e9:
MOV EAX,dword ptr [RSP + 0x4]
SUB EAX,0x2f
JZ 0x0019a857
JMP 0x0019a7f4
LAB_0019a7f4:
MOV EAX,dword ptr [RSP + 0x4]
SUB EAX,0x40
JZ 0x0019a88b
JMP 0x0019a8a0
LAB_0019a823:
MOVSX EAX,byte ptr [RSP + 0x33]
CMP EAX,0x2f
JNZ 0x0019a842
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[0x4b3263]
CALL 0x00121710
JMP 0x0019a840
LAB_0019a840:
JMP 0x0019a855
LAB_0019a842:
MOV RDI,qword ptr [RSP + 0x18]
MOVSX ESI,byte ptr [RSP + 0x27]
CALL 0x00121c20
JMP 0x0019a853
LAB_0019a853:
JMP 0x0019a855
LAB_0019a855:
JMP 0x0019a8b3
LAB_0019a857:
MOVSX EAX,byte ptr [RSP + 0x33]
CMP EAX,0x2a
JNZ 0x0019a876
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[0x4b3269]
CALL 0x00121710
JMP 0x0019a874
LAB_0019a874:
JMP 0x0019a889
LAB_0019a876:
MOV RDI,qword ptr [RSP + 0x18]
MOVSX ESI,byte ptr [RSP + 0x27]
CALL 0x00121c20
JMP 0x0019a887
LAB_0019a887:
JMP 0x0019a889
LAB_0019a889:
JMP 0x0019a8b3
LAB_0019a88b:
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[0x4b326f]
CALL 0x00121710
JMP 0x0019a89e
LAB_0019a89e:
JMP 0x0019a8b3
LAB_0019a8a0:
MOV RDI,qword ptr [RSP + 0x18]
MOVSX ESI,byte ptr [RSP + 0x27]
CALL 0x00121c20
LAB_0019a8af:
JMP 0x0019a8b1
LAB_0019a8b1:
JMP 0x0019a8b3
LAB_0019a8b3:
MOV AL,byte ptr [RSP + 0x27]
MOV byte ptr [RSP + 0x33],AL
MOV RAX,qword ptr [RSP + 0x28]
ADD RAX,0x1
MOV qword ptr [RSP + 0x28],RAX
JMP 0x0019a79f
LAB_0019a8ce:
MOV byte ptr [RSP + 0x47],0x1
TEST byte ptr [RSP + 0x47],0x1
JNZ 0x0019a8e4
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x00121cc8
LAB_0019a8e4:
MOV RAX,qword ptr [RSP + 0x10]
ADD RSP,0x58
RET
|
/* WARNING: Removing unreachable block (ram,0x0019a8da) */
/* google::protobuf::compiler::php::(anonymous namespace)::EscapePhpdoc(std::__cxx11::string const&)
*/
_anonymous_namespace_ * __thiscall
google::protobuf::compiler::php::(anonymous_namespace)::EscapePhpdoc
(_anonymous_namespace_ *this,string *param_1)
{
char cVar1;
ulong uVar2;
char *pcVar3;
char cVar4;
int8 local_30;
int1 local_25;
std::__cxx11::string::string((string *)this);
std::__cxx11::string::size();
/* try { // try from 0019a78a to 0019a8ae has its CatchHandler @ 0019a806 */
std::__cxx11::string::reserve((ulong)this);
local_25 = '*';
for (local_30 = 0; uVar2 = std::__cxx11::string::size(), local_30 < uVar2; local_30 = local_30 + 1
) {
pcVar3 = (char *)std::__cxx11::string::operator[]((ulong)param_1);
cVar1 = *pcVar3;
cVar4 = (char)this;
if (cVar1 == '*') {
if (local_25 == '/') {
std::__cxx11::string::append((char *)this);
}
else {
std::__cxx11::string::push_back(cVar4);
}
}
else if (cVar1 == '/') {
if (local_25 == '*') {
std::__cxx11::string::append((char *)this);
}
else {
std::__cxx11::string::push_back(cVar4);
}
}
else if (cVar1 == '@') {
std::__cxx11::string::append((char *)this);
}
else {
std::__cxx11::string::push_back(cVar4);
}
local_25 = cVar1;
}
return this;
}
|
|
60,757
|
lshift
|
eloqsql/strings/dtoa.c
|
static Bigint *lshift(Bigint *b, int k, Stack_alloc *alloc)
{
int i, k1, n, n1;
Bigint *b1;
ULong *x, *x1, *xe, z;
n= k >> 5;
k1= b->k;
n1= n + b->wds + 1;
for (i= b->maxwds; n1 > i; i<<= 1)
k1++;
b1= Balloc(k1, alloc);
x1= b1->p.x;
for (i= 0; i < n; i++)
*x1++= 0;
x= b->p.x;
xe= x + b->wds;
if (k&= 0x1f)
{
k1= 32 - k;
z= 0;
do
{
*x1++= *x << k | z;
z= *x++ >> k1;
}
while (x < xe);
if ((*x1= z))
++n1;
}
else
do
*x1++= *x++;
while (x < xe);
b1->wds= n1 - 1;
Bfree(b, alloc);
return b1;
}
|
O0
|
c
|
lshift:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl -0xc(%rbp), %eax
sarl $0x5, %eax
movl %eax, -0x24(%rbp)
movq -0x8(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x20(%rbp)
movl -0x24(%rbp), %eax
movq -0x8(%rbp), %rcx
addl 0x14(%rcx), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movl 0xc(%rax), %eax
movl %eax, -0x1c(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jle 0xa862b
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
movl -0x1c(%rbp), %eax
shll %eax
movl %eax, -0x1c(%rbp)
jmp 0xa8610
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0xa7ea0
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0xa8675
movq -0x40(%rbp), %rax
movq %rax, %rcx
addq $0x4, %rcx
movq %rcx, -0x40(%rbp)
movl $0x0, (%rax)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0xa864d
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq 0x14(%rcx), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movl -0xc(%rbp), %eax
andl $0x1f, %eax
movl %eax, -0xc(%rbp)
cmpl $0x0, %eax
je 0xa8714
movl $0x20, %eax
subl -0xc(%rbp), %eax
movl %eax, -0x20(%rbp)
movl $0x0, -0x4c(%rbp)
movq -0x38(%rbp), %rax
movl (%rax), %eax
movl -0xc(%rbp), %ecx
shll %cl, %eax
movl %eax, %ecx
orl -0x4c(%rbp), %ecx
movq -0x40(%rbp), %rax
movq %rax, %rdx
addq $0x4, %rdx
movq %rdx, -0x40(%rbp)
movl %ecx, (%rax)
movq -0x38(%rbp), %rax
movq %rax, %rcx
addq $0x4, %rcx
movq %rcx, -0x38(%rbp)
movl (%rax), %eax
movl -0x20(%rbp), %ecx
shrl %cl, %eax
movl %eax, -0x4c(%rbp)
movq -0x38(%rbp), %rax
cmpq -0x48(%rbp), %rax
jb 0xa86b7
movl -0x4c(%rbp), %eax
movq -0x40(%rbp), %rcx
movl %eax, (%rcx)
cmpl $0x0, %eax
je 0xa8712
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0xa8744
jmp 0xa8716
movq -0x38(%rbp), %rax
movq %rax, %rcx
addq $0x4, %rcx
movq %rcx, -0x38(%rbp)
movl (%rax), %ecx
movq -0x40(%rbp), %rax
movq %rax, %rdx
addq $0x4, %rdx
movq %rdx, -0x40(%rbp)
movl %ecx, (%rax)
movq -0x38(%rbp), %rax
cmpq -0x48(%rbp), %rax
jb 0xa8716
jmp 0xa8744
movl -0x28(%rbp), %ecx
subl $0x1, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x14(%rax)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xa8550
movq -0x30(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
lshift:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov eax, [rbp+var_C]
sar eax, 5
mov [rbp+var_24], eax
mov rax, [rbp+var_8]
mov eax, [rax+8]
mov [rbp+var_20], eax
mov eax, [rbp+var_24]
mov rcx, [rbp+var_8]
add eax, [rcx+14h]
add eax, 1
mov [rbp+var_28], eax
mov rax, [rbp+var_8]
mov eax, [rax+0Ch]
mov [rbp+var_1C], eax
loc_A8610:
mov eax, [rbp+var_28]
cmp eax, [rbp+var_1C]
jle short loc_A862B
mov eax, [rbp+var_20]
add eax, 1
mov [rbp+var_20], eax
mov eax, [rbp+var_1C]
shl eax, 1
mov [rbp+var_1C], eax
jmp short loc_A8610
loc_A862B:
mov edi, [rbp+var_20]
mov rsi, [rbp+var_18]
call Balloc
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
mov rax, [rax]
mov [rbp+var_40], rax
mov [rbp+var_1C], 0
loc_A864D:
mov eax, [rbp+var_1C]
cmp eax, [rbp+var_24]
jge short loc_A8675
mov rax, [rbp+var_40]
mov rcx, rax
add rcx, 4
mov [rbp+var_40], rcx
mov dword ptr [rax], 0
mov eax, [rbp+var_1C]
add eax, 1
mov [rbp+var_1C], eax
jmp short loc_A864D
loc_A8675:
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
mov rcx, [rbp+var_8]
movsxd rcx, dword ptr [rcx+14h]
shl rcx, 2
add rax, rcx
mov [rbp+var_48], rax
mov eax, [rbp+var_C]
and eax, 1Fh
mov [rbp+var_C], eax
cmp eax, 0
jz short loc_A8714
mov eax, 20h ; ' '
sub eax, [rbp+var_C]
mov [rbp+var_20], eax
mov [rbp+var_4C], 0
loc_A86B7:
mov rax, [rbp+var_38]
mov eax, [rax]
mov ecx, [rbp+var_C]
shl eax, cl
mov ecx, eax
or ecx, [rbp+var_4C]
mov rax, [rbp+var_40]
mov rdx, rax
add rdx, 4
mov [rbp+var_40], rdx
mov [rax], ecx
mov rax, [rbp+var_38]
mov rcx, rax
add rcx, 4
mov [rbp+var_38], rcx
mov eax, [rax]
mov ecx, [rbp+var_20]
shr eax, cl
mov [rbp+var_4C], eax
mov rax, [rbp+var_38]
cmp rax, [rbp+var_48]
jb short loc_A86B7
mov eax, [rbp+var_4C]
mov rcx, [rbp+var_40]
mov [rcx], eax
cmp eax, 0
jz short loc_A8712
mov eax, [rbp+var_28]
add eax, 1
mov [rbp+var_28], eax
loc_A8712:
jmp short loc_A8744
loc_A8714:
jmp short $+2
loc_A8716:
mov rax, [rbp+var_38]
mov rcx, rax
add rcx, 4
mov [rbp+var_38], rcx
mov ecx, [rax]
mov rax, [rbp+var_40]
mov rdx, rax
add rdx, 4
mov [rbp+var_40], rdx
mov [rax], ecx
mov rax, [rbp+var_38]
cmp rax, [rbp+var_48]
jb short loc_A8716
jmp short $+2
loc_A8744:
mov ecx, [rbp+var_28]
sub ecx, 1
mov rax, [rbp+var_30]
mov [rax+14h], ecx
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_18]
call Bfree
mov rax, [rbp+var_30]
add rsp, 50h
pop rbp
retn
|
long long lshift(unsigned long long a1, int a2, unsigned long long *a3)
{
int *v3; // rax
int *v4; // rax
int *v5; // rax
int *v6; // rax
int v7; // ecx
int *v8; // rax
int v10; // [rsp+4h] [rbp-4Ch]
unsigned long long v11; // [rsp+8h] [rbp-48h]
int *v12; // [rsp+10h] [rbp-40h]
int *v13; // [rsp+18h] [rbp-38h]
long long v14; // [rsp+20h] [rbp-30h]
int v15; // [rsp+28h] [rbp-28h]
int v16; // [rsp+30h] [rbp-20h]
int i; // [rsp+34h] [rbp-1Ch]
int j; // [rsp+34h] [rbp-1Ch]
char v20; // [rsp+44h] [rbp-Ch]
v16 = *(_DWORD *)(a1 + 8);
v15 = *(_DWORD *)(a1 + 20) + (a2 >> 5) + 1;
for ( i = *(_DWORD *)(a1 + 12); v15 > i; i *= 2 )
++v16;
v14 = Balloc(v16, (long long)a3);
v12 = *(int **)v14;
for ( j = 0; j < a2 >> 5; ++j )
{
v3 = v12++;
*v3 = 0;
}
v13 = *(int **)a1;
v11 = 4LL * *(int *)(a1 + 20) + *(_QWORD *)a1;
v20 = a2 & 0x1F;
if ( (a2 & 0x1F) != 0 )
{
v10 = 0;
do
{
v4 = v12++;
*v4 = v10 | (*v13 << v20);
v5 = v13++;
v10 = (unsigned int)*v5 >> (32 - v20);
}
while ( (unsigned long long)v13 < v11 );
*v12 = v10;
if ( v10 )
++v15;
}
else
{
do
{
v6 = v13++;
v7 = *v6;
v8 = v12++;
*v8 = v7;
}
while ( (unsigned long long)v13 < v11 );
}
*(_DWORD *)(v14 + 20) = v15 - 1;
Bfree(a1, a3);
return v14;
}
|
lshift:
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
MOV EAX,dword ptr [RBP + -0xc]
SAR EAX,0x5
MOV dword ptr [RBP + -0x24],EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x8]
MOV dword ptr [RBP + -0x20],EAX
MOV EAX,dword ptr [RBP + -0x24]
MOV RCX,qword ptr [RBP + -0x8]
ADD EAX,dword ptr [RCX + 0x14]
ADD EAX,0x1
MOV dword ptr [RBP + -0x28],EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0xc]
MOV dword ptr [RBP + -0x1c],EAX
LAB_001a8610:
MOV EAX,dword ptr [RBP + -0x28]
CMP EAX,dword ptr [RBP + -0x1c]
JLE 0x001a862b
MOV EAX,dword ptr [RBP + -0x20]
ADD EAX,0x1
MOV dword ptr [RBP + -0x20],EAX
MOV EAX,dword ptr [RBP + -0x1c]
SHL EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x001a8610
LAB_001a862b:
MOV EDI,dword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x001a7ea0
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x40],RAX
MOV dword ptr [RBP + -0x1c],0x0
LAB_001a864d:
MOV EAX,dword ptr [RBP + -0x1c]
CMP EAX,dword ptr [RBP + -0x24]
JGE 0x001a8675
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,RAX
ADD RCX,0x4
MOV qword ptr [RBP + -0x40],RCX
MOV dword ptr [RAX],0x0
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x001a864d
LAB_001a8675:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x8]
MOVSXD RCX,dword ptr [RCX + 0x14]
SHL RCX,0x2
ADD RAX,RCX
MOV qword ptr [RBP + -0x48],RAX
MOV EAX,dword ptr [RBP + -0xc]
AND EAX,0x1f
MOV dword ptr [RBP + -0xc],EAX
CMP EAX,0x0
JZ 0x001a8714
MOV EAX,0x20
SUB EAX,dword ptr [RBP + -0xc]
MOV dword ptr [RBP + -0x20],EAX
MOV dword ptr [RBP + -0x4c],0x0
LAB_001a86b7:
MOV RAX,qword ptr [RBP + -0x38]
MOV EAX,dword ptr [RAX]
MOV ECX,dword ptr [RBP + -0xc]
SHL EAX,CL
MOV ECX,EAX
OR ECX,dword ptr [RBP + -0x4c]
MOV RAX,qword ptr [RBP + -0x40]
MOV RDX,RAX
ADD RDX,0x4
MOV qword ptr [RBP + -0x40],RDX
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,RAX
ADD RCX,0x4
MOV qword ptr [RBP + -0x38],RCX
MOV EAX,dword ptr [RAX]
MOV ECX,dword ptr [RBP + -0x20]
SHR EAX,CL
MOV dword ptr [RBP + -0x4c],EAX
MOV RAX,qword ptr [RBP + -0x38]
CMP RAX,qword ptr [RBP + -0x48]
JC 0x001a86b7
MOV EAX,dword ptr [RBP + -0x4c]
MOV RCX,qword ptr [RBP + -0x40]
MOV dword ptr [RCX],EAX
CMP EAX,0x0
JZ 0x001a8712
MOV EAX,dword ptr [RBP + -0x28]
ADD EAX,0x1
MOV dword ptr [RBP + -0x28],EAX
LAB_001a8712:
JMP 0x001a8744
LAB_001a8714:
JMP 0x001a8716
LAB_001a8716:
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,RAX
ADD RCX,0x4
MOV qword ptr [RBP + -0x38],RCX
MOV ECX,dword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x40]
MOV RDX,RAX
ADD RDX,0x4
MOV qword ptr [RBP + -0x40],RDX
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x38]
CMP RAX,qword ptr [RBP + -0x48]
JC 0x001a8716
JMP 0x001a8744
LAB_001a8744:
MOV ECX,dword ptr [RBP + -0x28]
SUB ECX,0x1
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x14],ECX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x001a8550
MOV RAX,qword ptr [RBP + -0x30]
ADD RSP,0x50
POP RBP
RET
|
int8 * lshift(int8 *param_1,uint param_2,int8 param_3)
{
sbyte sVar1;
int iVar2;
int8 *puVar3;
uint *puVar4;
uint *puVar5;
uint *puVar6;
uint local_54;
uint *local_48;
uint *local_40;
int local_30;
int local_28;
int local_24;
local_28 = *(int *)(param_1 + 1);
iVar2 = ((int)param_2 >> 5) + *(int *)((long)param_1 + 0x14);
local_30 = iVar2 + 1;
for (local_24 = *(int *)((long)param_1 + 0xc); local_24 < local_30; local_24 = local_24 << 1) {
local_28 = local_28 + 1;
}
puVar3 = (int8 *)Balloc(local_28,param_3);
local_48 = (uint *)*puVar3;
for (local_24 = 0; local_24 < (int)param_2 >> 5; local_24 = local_24 + 1) {
*local_48 = 0;
local_48 = local_48 + 1;
}
local_40 = (uint *)*param_1;
puVar4 = local_40 + *(int *)((long)param_1 + 0x14);
if ((param_2 & 0x1f) == 0) {
do {
puVar5 = local_40 + 1;
*local_48 = *local_40;
local_48 = local_48 + 1;
local_40 = puVar5;
} while (puVar5 < puVar4);
}
else {
sVar1 = (sbyte)(param_2 & 0x1f);
local_54 = 0;
do {
puVar6 = local_48 + 1;
*local_48 = *local_40 << sVar1 | local_54;
puVar5 = local_40 + 1;
local_54 = *local_40 >> (0x20U - sVar1 & 0x1f);
local_48 = puVar6;
local_40 = puVar5;
} while (puVar5 < puVar4);
*puVar6 = local_54;
if (local_54 != 0) {
local_30 = iVar2 + 2;
}
}
*(int *)((long)puVar3 + 0x14) = local_30 + -1;
Bfree(param_1,param_3);
return puVar3;
}
|
|
60,758
|
bool testing::internal::ParseNaturalNumber<int>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int*)
|
giladroyz[P]FindPeaks/build_O0/_deps/googletest-src/googletest/src/gtest-internal-inl.h
|
bool ParseNaturalNumber(const ::std::string& str, Integer* number) {
// Fail fast if the given string does not begin with a digit;
// this bypasses strtoXXX's "optional leading whitespace and plus
// or minus sign" semantics, which are undesirable here.
if (str.empty() || !IsDigit(str[0])) {
return false;
}
errno = 0;
char* end;
// BiggestConvertible is the largest integer type that system-provided
// string-to-number conversion routines can return.
using BiggestConvertible = unsigned long long; // NOLINT
const BiggestConvertible parsed = strtoull(str.c_str(), &end, 10); // NOLINT
const bool parse_success = *end == '\0' && errno == 0;
GTEST_CHECK_(sizeof(Integer) <= sizeof(parsed));
const Integer result = static_cast<Integer>(parsed);
if (parse_success && static_cast<BiggestConvertible>(result) == parsed) {
*number = result;
return true;
}
return false;
}
|
O0
|
c
|
bool testing::internal::ParseNaturalNumber<int>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int*):
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0xaba0
testb $0x1, %al
jne 0x45756
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xa710
movsbl (%rax), %edi
callq 0x5bee0
testb $0x1, %al
jne 0x4575f
movb $0x0, -0x1(%rbp)
jmp 0x45845
callq 0xa080
movl $0x0, (%rax)
movq -0x10(%rbp), %rdi
callq 0xa260
movq %rax, %rdi
leaq -0x20(%rbp), %rsi
movl $0xa, %edx
callq 0xa960
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x41(%rbp)
jne 0x457a7
callq 0xa080
cmpl $0x0, (%rax)
sete %al
movb %al, -0x41(%rbp)
movb -0x41(%rbp), %al
andb $0x1, %al
movb %al, -0x29(%rbp)
movl $0x1, %edi
callq 0x1aa10
testb $0x1, %al
jne 0x457bf
jmp 0x457c1
jmp 0x4581b
leaq 0x37006(%rip), %rdx # 0x7c7ce
leaq -0x30(%rbp), %rdi
movq %rdi, -0x50(%rbp)
movl $0x3, %esi
movl $0x40c, %ecx # imm = 0x40C
callq 0x1f490
movq -0x50(%rbp), %rdi
callq 0x14d40
movq %rax, %rdi
leaq 0x37562(%rip), %rsi # 0x7cd54
callq 0xa600
jmp 0x457f9
leaq -0x30(%rbp), %rdi
callq 0x1f5d0
jmp 0x4581b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x1f5d0
jmp 0x45850
movq -0x28(%rbp), %rax
movl %eax, -0x40(%rbp)
testb $0x1, -0x29(%rbp)
je 0x45841
movslq -0x40(%rbp), %rax
cmpq -0x28(%rbp), %rax
jne 0x45841
movl -0x40(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movb $0x1, -0x1(%rbp)
jmp 0x45845
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x50, %rsp
popq %rbp
retq
movq -0x38(%rbp), %rdi
callq 0xac00
nopl (%rax)
|
_ZN7testing8internal18ParseNaturalNumberIiEEbRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rdi, [rbp+var_10]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_45756
mov rdi, [rbp+var_10]
xor eax, eax
mov esi, eax; char
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm; std::string::operator[](ulong)
movsx edi, byte ptr [rax]; this
call _ZN7testing8internal7IsDigitEc; testing::internal::IsDigit(char)
test al, 1
jnz short loc_4575F
loc_45756:
mov [rbp+var_1], 0
jmp loc_45845
loc_4575F:
call ___errno_location
mov dword ptr [rax], 0
mov rdi, [rbp+var_10]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void)
mov rdi, rax
lea rsi, [rbp+var_20]; bool
mov edx, 0Ah
call _strtoull
mov [rbp+var_28], rax
mov rax, qword ptr [rbp+var_20]
movsx ecx, byte ptr [rax]
xor eax, eax
cmp ecx, 0
mov [rbp+var_41], al
jnz short loc_457A7
call ___errno_location
cmp dword ptr [rax], 0
setz al
mov [rbp+var_41], al
loc_457A7:
mov al, [rbp+var_41]
and al, 1
mov [rbp+var_29], al
mov edi, (offset dword_0+1); this
call _ZN7testing8internal6IsTrueEb; testing::internal::IsTrue(bool)
test al, 1
jnz short loc_457BF
jmp short loc_457C1
loc_457BF:
jmp short loc_4581B
loc_457C1:
lea rdx, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdi, [rbp+var_30]
mov [rbp+var_50], rdi
mov esi, 3
mov ecx, 40Ch
call _ZN7testing8internal8GTestLogC2ENS0_16GTestLogSeverityEPKci; testing::internal::GTestLog::GTestLog(testing::internal::GTestLogSeverity,char const*,int)
mov rdi, [rbp+var_50]; this
call _ZN7testing8internal8GTestLog9GetStreamEv; testing::internal::GTestLog::GetStream(void)
mov rdi, rax
lea rsi, aConditionSizeo; "Condition sizeof(Integer) <= sizeof(par"...
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
jmp short $+2
loc_457F9:
lea rdi, [rbp+var_30]; this
call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog()
jmp short loc_4581B
mov rcx, rax
mov eax, edx
mov [rbp+var_38], rcx
mov [rbp+var_3C], eax
lea rdi, [rbp+var_30]; this
call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog()
jmp short loc_45850
loc_4581B:
mov rax, [rbp+var_28]
mov [rbp+var_40], eax
test [rbp+var_29], 1
jz short loc_45841
movsxd rax, [rbp+var_40]
cmp rax, [rbp+var_28]
jnz short loc_45841
mov ecx, [rbp+var_40]
mov rax, [rbp+var_18]
mov [rax], ecx
mov [rbp+var_1], 1
jmp short loc_45845
loc_45841:
mov [rbp+var_1], 0
loc_45845:
mov al, [rbp+var_1]
and al, 1
add rsp, 50h
pop rbp
retn
loc_45850:
mov rdi, [rbp+var_38]
call __Unwind_Resume
|
char testing::internal::ParseNaturalNumber<int>(long long a1, _DWORD *a2)
{
testing::internal *v2; // rdi
long long v3; // rdi
void *Stream; // rax
bool v6; // [rsp+Fh] [rbp-41h]
_BYTE v7[7]; // [rsp+20h] [rbp-30h] BYREF
bool v8; // [rsp+27h] [rbp-29h]
long long v9; // [rsp+28h] [rbp-28h]
bool v10[8]; // [rsp+30h] [rbp-20h] BYREF
_DWORD *v11; // [rsp+38h] [rbp-18h]
long long v12; // [rsp+40h] [rbp-10h]
v12 = a1;
v11 = a2;
if ( (std::string::empty(a1) & 1) != 0 )
return 0;
v2 = (testing::internal *)(unsigned int)*(char *)std::string::operator[](v12, 0LL);
if ( (testing::internal::IsDigit(v2, 0) & 1) == 0 )
return 0;
*(_DWORD *)__errno_location(v2, 0LL) = 0;
v3 = std::string::c_str(v12);
v9 = strtoull(v3, v10, 10LL);
v6 = 0;
if ( !**(_BYTE **)v10 )
v6 = *(_DWORD *)__errno_location(v3, v10) == 0;
v8 = v6;
if ( (testing::internal::IsTrue((testing::internal *)((char *)&dword_0 + 1)) & 1) == 0 )
{
testing::internal::GTestLog::GTestLog(
(testing::internal::GTestLog *)v7,
3,
"/workspace/llm4binary/github/2025_star3/giladroyz[P]FindPeaks/build_O0/_deps/googletest-src/googletest/src/gtest-internal-inl.h",
1036);
Stream = testing::internal::GTestLog::GetStream((testing::internal::GTestLog *)v7);
std::operator<<<std::char_traits<char>>(Stream, "Condition sizeof(Integer) <= sizeof(parsed) failed. ");
testing::internal::GTestLog::~GTestLog((testing::internal::GTestLog *)v7);
}
if ( !v8 || (int)v9 != v9 )
return 0;
*v11 = v9;
return 1;
}
|
ParseNaturalNumber<int>:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0010aba0
TEST AL,0x1
JNZ 0x00145756
MOV RDI,qword ptr [RBP + -0x10]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x0010a710
MOVSX EDI,byte ptr [RAX]
CALL 0x0015bee0
TEST AL,0x1
JNZ 0x0014575f
LAB_00145756:
MOV byte ptr [RBP + -0x1],0x0
JMP 0x00145845
LAB_0014575f:
CALL 0x0010a080
MOV dword ptr [RAX],0x0
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0010a260
MOV RDI,RAX
LEA RSI,[RBP + -0x20]
MOV EDX,0xa
CALL 0x0010a960
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOVSX ECX,byte ptr [RAX]
XOR EAX,EAX
CMP ECX,0x0
MOV byte ptr [RBP + -0x41],AL
JNZ 0x001457a7
CALL 0x0010a080
CMP dword ptr [RAX],0x0
SETZ AL
MOV byte ptr [RBP + -0x41],AL
LAB_001457a7:
MOV AL,byte ptr [RBP + -0x41]
AND AL,0x1
MOV byte ptr [RBP + -0x29],AL
MOV EDI,0x1
CALL 0x0011aa10
TEST AL,0x1
JNZ 0x001457bf
JMP 0x001457c1
LAB_001457bf:
JMP 0x0014581b
LAB_001457c1:
LEA RDX,[0x17c7ce]
LEA RDI,[RBP + -0x30]
MOV qword ptr [RBP + -0x50],RDI
MOV ESI,0x3
MOV ECX,0x40c
CALL 0x0011f490
MOV RDI,qword ptr [RBP + -0x50]
CALL 0x00114d40
MOV RDI,RAX
LAB_001457eb:
LEA RSI,[0x17cd54]
CALL 0x0010a600
LAB_001457f7:
JMP 0x001457f9
LAB_001457f9:
LEA RDI,[RBP + -0x30]
CALL 0x0011f5d0
JMP 0x0014581b
LAB_0014581b:
MOV RAX,qword ptr [RBP + -0x28]
MOV dword ptr [RBP + -0x40],EAX
TEST byte ptr [RBP + -0x29],0x1
JZ 0x00145841
MOVSXD RAX,dword ptr [RBP + -0x40]
CMP RAX,qword ptr [RBP + -0x28]
JNZ 0x00145841
MOV ECX,dword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX],ECX
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00145845
LAB_00145841:
MOV byte ptr [RBP + -0x1],0x0
LAB_00145845:
MOV AL,byte ptr [RBP + -0x1]
AND AL,0x1
ADD RSP,0x50
POP RBP
RET
|
/* bool testing::internal::ParseNaturalNumber<int>(std::__cxx11::string const&, int*) */
bool testing::internal::ParseNaturalNumber<int>(string *param_1,int *param_2)
{
ulong uVar1;
char *pcVar2;
int *piVar3;
ostream *poVar4;
int8 in_R8;
int8 in_R9;
bool local_49;
GTestLog local_38 [7];
bool local_31;
ulonglong local_30;
char *local_28;
int *local_20;
string *local_18;
local_20 = param_2;
local_18 = param_1;
uVar1 = std::__cxx11::string::empty();
if ((uVar1 & 1) == 0) {
pcVar2 = (char *)std::__cxx11::string::operator[]((ulong)local_18);
uVar1 = IsDigit(*pcVar2);
if ((uVar1 & 1) != 0) {
piVar3 = __errno_location();
*piVar3 = 0;
pcVar2 = (char *)std::__cxx11::string::c_str();
local_30 = strtoull(pcVar2,&local_28,10);
local_49 = false;
if (*local_28 == '\0') {
piVar3 = __errno_location();
local_49 = *piVar3 == 0;
}
local_31 = local_49;
uVar1 = IsTrue(true);
if ((uVar1 & 1) == 0) {
GTestLog::GTestLog(local_38,3,
"/workspace/llm4binary/github/2025_star3/giladroyz[P]FindPeaks/build_O0/_deps/googletest-src/googletest/src/gtest-internal-inl.h"
,0x40c,in_R8,in_R9,local_38);
poVar4 = (ostream *)GTestLog::GetStream();
/* try { // try from 001457eb to 001457f6 has its CatchHandler @ 00145804 */
std::operator<<(poVar4,"Condition sizeof(Integer) <= sizeof(parsed) failed. ");
GTestLog::~GTestLog(local_38);
}
if (((local_31 & 1U) != 0) && ((long)(int)local_30 == local_30)) {
*local_20 = (int)local_30;
return true;
}
return false;
}
}
return false;
}
|
|
60,759
|
fn_format
|
eloqsql/mysys/mf_format.c
|
char * fn_format(char * to, const char *name, const char *dir,
const char *extension, uint flag)
{
char dev[FN_REFLEN], buff[FN_REFLEN], *pos, *startpos;
const char *ext;
reg1 size_t length;
size_t dev_length;
DBUG_ENTER("fn_format");
DBUG_ASSERT(name != NULL);
DBUG_ASSERT(extension != NULL);
DBUG_PRINT("enter",("name: %s dir: %s extension: %s flag: %d",
name,dir,extension,flag));
/* Copy and skip directory */
name+=(length=dirname_part(dev, (startpos=(char *) name), &dev_length));
if (length == 0 || (flag & MY_REPLACE_DIR))
{
/* Use given directory */
convert_dirname(dev,dir,NullS); /* Fix to this OS */
}
else if ((flag & MY_RELATIVE_PATH) && !test_if_hard_path(dev))
{
/* Put 'dir' before the given path */
strmake_buf(buff, dev);
pos=convert_dirname(dev,dir,NullS);
strmake(pos,buff,sizeof(buff)-1- (int) (pos-dev));
}
if (flag & MY_PACK_FILENAME)
pack_dirname(dev,dev); /* Put in ./.. and ~/.. */
if (flag & MY_UNPACK_FILENAME)
(void) unpack_dirname(dev,dev); /* Replace ~/.. with dir */
if (!(flag & MY_APPEND_EXT) &&
(pos= (char*) strchr(name,FN_EXTCHAR)) != NullS)
{
if ((flag & MY_REPLACE_EXT) == 0) /* If we should keep old ext */
{
length=strlength(name); /* Use old extension */
ext = "";
}
else
{
length= (size_t) (pos-(char*) name); /* Change extension */
ext= extension;
}
}
else
{
length=strlength(name); /* No ext, use the now one */
ext=extension;
}
if (strlen(dev)+length+strlen(ext) >= FN_REFLEN || length >= FN_LEN )
{
/* To long path, return original or NULL */
size_t tmp_length;
if (flag & MY_SAFE_PATH)
DBUG_RETURN(NullS);
tmp_length= strlength(startpos);
DBUG_PRINT("error",("dev: '%s' ext: '%s' length: %u",dev,ext,
(uint) length));
(void) strmake(to,startpos,MY_MIN(tmp_length,FN_REFLEN-1));
}
else
{
if (to == startpos)
{
bmove(buff,(uchar*) name,length); /* Save name for last copy */
name=buff;
}
pos=strmake(strmov(to,dev),name,length);
(void) strmov(pos,ext); /* Don't convert extension */
}
if (flag & MY_RETURN_REAL_PATH)
(void) my_realpath(to, to, MYF(0));
else if (flag & MY_RESOLVE_SYMLINKS)
{
strmov(buff,to);
(void) my_readlink(to, buff, MYF(0));
}
DBUG_RETURN(to);
}
|
O3
|
c
|
fn_format:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x428, %rsp # imm = 0x428
movl %r8d, %r14d
movq %rcx, -0x438(%rbp)
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, -0x440(%rbp)
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
leaq -0x230(%rbp), %rdi
leaq -0x448(%rbp), %rdx
callq 0x5d3cd
movq %rax, %r13
testq %rax, %rax
setne %al
testb $0x1, %r14b
sete %cl
testb %al, %cl
je 0x5d5c3
testb %r14b, %r14b
jns 0x5d5d4
leaq -0x230(%rbp), %rdi
callq 0x61666
testl %eax, %eax
jne 0x5d5d4
leaq -0x430(%rbp), %rdi
leaq -0x230(%rbp), %rsi
movl $0x1ff, %ebx # imm = 0x1FF
movl $0x1ff, %edx # imm = 0x1FF
callq 0x9292c
leaq -0x230(%rbp), %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x5d41f
movl %eax, %ecx
leaq -0x230(%rbp), %rdx
subl %edx, %ecx
movslq %ecx, %rcx
subq %rcx, %rbx
movq %rax, %rdi
leaq -0x430(%rbp), %rsi
movq %rbx, %rdx
callq 0x9292c
jmp 0x5d5d4
leaq -0x230(%rbp), %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x5d41f
testb $0x8, %r14b
je 0x5d5e9
leaq -0x230(%rbp), %rdi
movq %rdi, %rsi
callq 0x5d864
testb $0x4, %r14b
je 0x5d5fe
leaq -0x230(%rbp), %rdi
movq %rdi, %rsi
callq 0x5ddea
addq %r15, %r13
btl $0x8, %r14d
jb 0x5d663
movq %r13, %rdi
movl $0x2e, %esi
callq 0x36510
testq %rax, %rax
je 0x5d663
movq %rax, %r12
testb $0x2, %r14b
jne 0x5d6c0
movb (%r13), %al
movq %r13, %rcx
movq %r13, %r12
cmpb $0x20, %al
je 0x5d64e
movzbl %al, %eax
testl %eax, %eax
je 0x5d6af
movzbl 0x1(%r12), %eax
incq %r12
testl %eax, %eax
je 0x5d69f
cmpl $0x20, %eax
jne 0x5d63c
movq %r12, %rdx
movb 0x1(%rdx), %al
incq %rdx
cmpb $0x20, %al
je 0x5d651
movq %r12, %rcx
movq %rdx, %r12
jmp 0x5d631
movb (%r13), %al
movq %r13, %rcx
movq %r13, %r12
cmpb $0x20, %al
je 0x5d68a
movzbl %al, %eax
testl %eax, %eax
je 0x5d6bd
movzbl 0x1(%r12), %eax
incq %r12
testl %eax, %eax
je 0x5d6c0
cmpl $0x20, %eax
jne 0x5d678
movq %r12, %rdx
movb 0x1(%rdx), %al
incq %rdx
cmpb $0x20, %al
je 0x5d68d
movq %r12, %rcx
movq %rdx, %r12
jmp 0x5d66d
leaq 0x3e5ac(%rip), %rax # 0x9bc52
movq %rax, -0x438(%rbp)
jmp 0x5d6c0
leaq 0x3e59c(%rip), %rax # 0x9bc52
movq %rax, -0x438(%rbp)
movq %rcx, %r12
subq %r13, %r12
leaq -0x230(%rbp), %rdi
callq 0x36410
movq %rax, %rbx
movq -0x438(%rbp), %rdi
callq 0x36410
cmpq $0xff, %r12
ja 0x5d750
addq %r12, %rbx
addq %rax, %rbx
cmpq $0x200, %rbx # imm = 0x200
jae 0x5d750
movq -0x440(%rbp), %rax
cmpq %r15, %rax
movq %rax, %r15
jne 0x5d722
leaq -0x430(%rbp), %rbx
movl $0x200, %ecx # imm = 0x200
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x365c0
movq %rbx, %r13
leaq -0x230(%rbp), %rsi
movq %r15, %rdi
callq 0x36a10
movq %rax, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x9292c
movq %rax, %rdi
movq -0x438(%rbp), %rsi
callq 0x36420
jmp 0x5d7ba
testb $0x40, %r14b
jne 0x5d791
movb (%r15), %cl
movq %r15, %rdx
movq %r15, %rax
cmpb $0x20, %cl
je 0x5d77b
movzbl %cl, %ecx
testl %ecx, %ecx
je 0x5d799
movzbl 0x1(%rax), %ecx
incq %rax
testl %ecx, %ecx
je 0x5d796
cmpl $0x20, %ecx
jne 0x5d76b
movq %rax, %rsi
movb 0x1(%rsi), %cl
incq %rsi
cmpb $0x20, %cl
je 0x5d77e
movq %rax, %rdx
movq %rsi, %rax
jmp 0x5d75f
xorl %r15d, %r15d
jmp 0x5d7f4
movq %rax, %rdx
subq %r15, %rdx
movl $0x1ff, %eax # imm = 0x1FF
cmpq %rax, %rdx
cmovaeq %rax, %rdx
movq -0x440(%rbp), %rdi
movq %r15, %rsi
movq %rdi, %r15
callq 0x9292c
testb $0x20, %r14b
jne 0x5d7e7
testb $0x10, %r14b
je 0x5d7f4
leaq -0x430(%rbp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x36420
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x62958
jmp 0x5d7f4
movq %r15, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x62ab5
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x5d818
movq %r15, %rax
addq $0x428, %rsp # imm = 0x428
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x362b0
|
fn_format:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 428h
mov r14d, r8d
mov [rbp+var_438], rcx
mov r12, rdx
mov r15, rsi
mov [rbp+var_440], rdi
mov rax, fs:28h
mov [rbp+var_30], rax
lea rdi, [rbp+var_230]
lea rdx, [rbp+var_448]
call dirname_part
mov r13, rax
test rax, rax
setnz al
test r14b, 1
setz cl
test cl, al
jz short loc_5D5C3
test r14b, r14b
jns short loc_5D5D4
lea rdi, [rbp+var_230]
call test_if_hard_path
test eax, eax
jnz short loc_5D5D4
lea rdi, [rbp+var_430]
lea rsi, [rbp+var_230]
mov ebx, 1FFh
mov edx, 1FFh
call strmake
lea rdi, [rbp+var_230]
mov rsi, r12
xor edx, edx
call convert_dirname
mov ecx, eax
lea rdx, [rbp+var_230]
sub ecx, edx
movsxd rcx, ecx
sub rbx, rcx
mov rdi, rax
lea rsi, [rbp+var_430]
mov rdx, rbx
call strmake
jmp short loc_5D5D4
loc_5D5C3:
lea rdi, [rbp+var_230]
mov rsi, r12
xor edx, edx
call convert_dirname
loc_5D5D4:
test r14b, 8
jz short loc_5D5E9
lea rdi, [rbp+var_230]
mov rsi, rdi
call pack_dirname
loc_5D5E9:
test r14b, 4
jz short loc_5D5FE
lea rdi, [rbp+var_230]
mov rsi, rdi
call unpack_dirname
loc_5D5FE:
add r13, r15
bt r14d, 8
jb short loc_5D663
mov rdi, r13
mov esi, 2Eh ; '.'
call _strchr
test rax, rax
jz short loc_5D663
mov r12, rax
test r14b, 2
jnz loc_5D6C0
mov al, [r13+0]
mov rcx, r13
mov r12, r13
loc_5D631:
cmp al, 20h ; ' '
jz short loc_5D64E
movzx eax, al
test eax, eax
jz short loc_5D6AF
loc_5D63C:
movzx eax, byte ptr [r12+1]
inc r12
test eax, eax
jz short loc_5D69F
cmp eax, 20h ; ' '
jnz short loc_5D63C
loc_5D64E:
mov rdx, r12
loc_5D651:
mov al, [rdx+1]
inc rdx
cmp al, 20h ; ' '
jz short loc_5D651
mov rcx, r12
mov r12, rdx
jmp short loc_5D631
loc_5D663:
mov al, [r13+0]
mov rcx, r13
mov r12, r13
loc_5D66D:
cmp al, 20h ; ' '
jz short loc_5D68A
movzx eax, al
test eax, eax
jz short loc_5D6BD
loc_5D678:
movzx eax, byte ptr [r12+1]
inc r12
test eax, eax
jz short loc_5D6C0
cmp eax, 20h ; ' '
jnz short loc_5D678
loc_5D68A:
mov rdx, r12
loc_5D68D:
mov al, [rdx+1]
inc rdx
cmp al, 20h ; ' '
jz short loc_5D68D
mov rcx, r12
mov r12, rdx
jmp short loc_5D66D
loc_5D69F:
lea rax, asc_9BC4E+4; ""
mov [rbp+var_438], rax
jmp short loc_5D6C0
loc_5D6AF:
lea rax, asc_9BC4E+4; ""
mov [rbp+var_438], rax
loc_5D6BD:
mov r12, rcx
loc_5D6C0:
sub r12, r13
lea rdi, [rbp+var_230]
call _strlen
mov rbx, rax
mov rdi, [rbp+var_438]
call _strlen
cmp r12, 0FFh
ja short loc_5D750
add rbx, r12
add rbx, rax
cmp rbx, 200h
jnb short loc_5D750
mov rax, [rbp+var_440]
cmp rax, r15
mov r15, rax
jnz short loc_5D722
lea rbx, [rbp+var_430]
mov ecx, 200h
mov rdi, rbx
mov rsi, r13
mov rdx, r12
call ___memmove_chk
mov r13, rbx
loc_5D722:
lea rsi, [rbp+var_230]
mov rdi, r15
call _stpcpy
mov rdi, rax
mov rsi, r13
mov rdx, r12
call strmake
mov rdi, rax
mov rsi, [rbp+var_438]
call _strcpy
jmp short loc_5D7BA
loc_5D750:
test r14b, 40h
jnz short loc_5D791
mov cl, [r15]
mov rdx, r15
mov rax, r15
loc_5D75F:
cmp cl, 20h ; ' '
jz short loc_5D77B
movzx ecx, cl
test ecx, ecx
jz short loc_5D799
loc_5D76B:
movzx ecx, byte ptr [rax+1]
inc rax
test ecx, ecx
jz short loc_5D796
cmp ecx, 20h ; ' '
jnz short loc_5D76B
loc_5D77B:
mov rsi, rax
loc_5D77E:
mov cl, [rsi+1]
inc rsi
cmp cl, 20h ; ' '
jz short loc_5D77E
mov rdx, rax
mov rax, rsi
jmp short loc_5D75F
loc_5D791:
xor r15d, r15d
jmp short loc_5D7F4
loc_5D796:
mov rdx, rax
loc_5D799:
sub rdx, r15
mov eax, 1FFh
cmp rdx, rax
cmovnb rdx, rax
mov rdi, [rbp+var_440]
mov rsi, r15
mov r15, rdi
call strmake
loc_5D7BA:
test r14b, 20h
jnz short loc_5D7E7
test r14b, 10h
jz short loc_5D7F4
lea rbx, [rbp+var_430]
mov rdi, rbx
mov rsi, r15
call _strcpy
mov rdi, r15
mov rsi, rbx
xor edx, edx
call my_readlink
jmp short loc_5D7F4
loc_5D7E7:
mov rdi, r15
mov rsi, r15
xor edx, edx
call my_realpath
loc_5D7F4:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_5D818
mov rax, r15
add rsp, 428h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_5D818:
call ___stack_chk_fail
|
_BYTE * fn_format(_BYTE *a1, _BYTE *a2, long long a3, char *a4, __int16 a5)
{
long long v8; // rdx
long long v9; // r13
long long v10; // rcx
_WORD *v11; // rax
_BYTE *v12; // r13
long long v13; // rax
_BYTE *v14; // r12
char v15; // al
_BYTE *v16; // rcx
int v17; // eax
_BYTE *v18; // rdx
char v19; // al
int v20; // eax
_BYTE *v21; // rdx
unsigned long long v22; // r12
long long v23; // rbx
long long v24; // rax
_BYTE *v25; // r15
long long v26; // rax
long long v27; // rax
char v28; // cl
_BYTE *v29; // rdx
_BYTE *v30; // rax
int v31; // ecx
_BYTE *v32; // rsi
unsigned long long v33; // rdx
_BYTE *v34; // rsi
long long v36; // [rsp+8h] [rbp-448h] BYREF
_BYTE *v37; // [rsp+10h] [rbp-440h]
char *v38; // [rsp+18h] [rbp-438h]
_BYTE v39[512]; // [rsp+20h] [rbp-430h] BYREF
_WORD v40[256]; // [rsp+220h] [rbp-230h] BYREF
unsigned long long v41; // [rsp+420h] [rbp-30h]
long long savedregs; // [rsp+450h] [rbp+0h] BYREF
v38 = a4;
v37 = a1;
v41 = __readfsqword(0x28u);
v9 = dirname_part((long long)v40, a2, &v36);
LOBYTE(v10) = (a5 & 1) == 0;
if ( ((v9 != 0) & (unsigned __int8)v10) != 0 )
{
if ( (a5 & 0x80u) != 0 && !(unsigned int)test_if_hard_path(v40) )
{
strmake(v39, v40, 511LL);
v11 = convert_dirname(v40, a3, 0LL);
strmake(v11, v39, 511LL - (int)((_DWORD)v11 - ((unsigned int)&savedregs - 560)));
}
}
else
{
convert_dirname(v40, a3, 0LL);
}
if ( (a5 & 8) != 0 )
pack_dirname(v40, v40);
if ( (a5 & 4) != 0 )
unpack_dirname(v40, v40);
v12 = &a2[v9];
if ( (a5 & 0x100) == 0 )
{
v13 = strchr(v12, 46LL, v8, v10);
if ( v13 )
{
v14 = (_BYTE *)v13;
if ( (a5 & 2) != 0 )
goto LABEL_32;
v15 = *v12;
v16 = v12;
v14 = v12;
while ( v15 == 32 )
{
LABEL_18:
v18 = v14;
do
v15 = *++v18;
while ( v15 == 32 );
v16 = v14;
v14 = v18;
}
if ( v15 )
{
while ( 1 )
{
v17 = (unsigned __int8)*++v14;
if ( !v17 )
break;
if ( v17 == 32 )
goto LABEL_18;
}
v38 = "";
goto LABEL_32;
}
v38 = "";
LABEL_31:
v14 = v16;
goto LABEL_32;
}
}
v19 = *v12;
v16 = v12;
v14 = v12;
while ( v19 == 32 )
{
LABEL_26:
v21 = v14;
do
v19 = *++v21;
while ( v19 == 32 );
v16 = v14;
v14 = v21;
}
if ( !v19 )
goto LABEL_31;
while ( 1 )
{
v20 = (unsigned __int8)*++v14;
if ( !v20 )
break;
if ( v20 == 32 )
goto LABEL_26;
}
LABEL_32:
v22 = v14 - v12;
v23 = strlen(v40);
v24 = strlen(v38);
if ( v22 > 0xFF || v24 + v22 + v23 >= 0x200 )
{
if ( (a5 & 0x40) != 0 )
return 0LL;
v28 = *a2;
v29 = a2;
v30 = a2;
while ( v28 == 32 )
{
LABEL_43:
v32 = v30;
do
v28 = *++v32;
while ( v28 == 32 );
v29 = v30;
v30 = v32;
}
if ( v28 )
{
while ( 1 )
{
v31 = (unsigned __int8)*++v30;
if ( !v31 )
break;
if ( v31 == 32 )
goto LABEL_43;
}
v29 = v30;
}
v33 = v29 - a2;
if ( v33 >= 0x1FF )
v33 = 511LL;
v34 = a2;
v25 = v37;
strmake(v37, v34, v33);
}
else
{
v25 = v37;
if ( v37 == a2 )
{
__memmove_chk(v39, v12, v22, 512LL);
v12 = v39;
}
v26 = stpcpy(v25, v40);
v27 = strmake(v26, v12, v22);
strcpy(v27, v38);
}
if ( (a5 & 0x20) != 0 )
{
my_realpath(v25, v25, 0LL);
}
else if ( (a5 & 0x10) != 0 )
{
strcpy(v39, v25);
my_readlink(v25, v39, 0LL);
}
return v25;
}
|
fn_format:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x428
MOV R14D,R8D
MOV qword ptr [RBP + -0x438],RCX
MOV R12,RDX
MOV R15,RSI
MOV qword ptr [RBP + -0x440],RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
LEA RDI,[RBP + -0x230]
LEA RDX,[RBP + -0x448]
CALL 0x0015d3cd
MOV R13,RAX
TEST RAX,RAX
SETNZ AL
TEST R14B,0x1
SETZ CL
TEST CL,AL
JZ 0x0015d5c3
TEST R14B,R14B
JNS 0x0015d5d4
LEA RDI,[RBP + -0x230]
CALL 0x00161666
TEST EAX,EAX
JNZ 0x0015d5d4
LEA RDI,[RBP + -0x430]
LEA RSI,[RBP + -0x230]
MOV EBX,0x1ff
MOV EDX,0x1ff
CALL 0x0019292c
LEA RDI,[RBP + -0x230]
MOV RSI,R12
XOR EDX,EDX
CALL 0x0015d41f
MOV ECX,EAX
LEA RDX,[RBP + -0x230]
SUB ECX,EDX
MOVSXD RCX,ECX
SUB RBX,RCX
MOV RDI,RAX
LEA RSI,[RBP + -0x430]
MOV RDX,RBX
CALL 0x0019292c
JMP 0x0015d5d4
LAB_0015d5c3:
LEA RDI,[RBP + -0x230]
MOV RSI,R12
XOR EDX,EDX
CALL 0x0015d41f
LAB_0015d5d4:
TEST R14B,0x8
JZ 0x0015d5e9
LEA RDI,[RBP + -0x230]
MOV RSI,RDI
CALL 0x0015d864
LAB_0015d5e9:
TEST R14B,0x4
JZ 0x0015d5fe
LEA RDI,[RBP + -0x230]
MOV RSI,RDI
CALL 0x0015ddea
LAB_0015d5fe:
ADD R13,R15
BT R14D,0x8
JC 0x0015d663
MOV RDI,R13
MOV ESI,0x2e
CALL 0x00136510
TEST RAX,RAX
JZ 0x0015d663
MOV R12,RAX
TEST R14B,0x2
JNZ 0x0015d6c0
MOV AL,byte ptr [R13]
MOV RCX,R13
MOV R12,R13
LAB_0015d631:
CMP AL,0x20
JZ 0x0015d64e
MOVZX EAX,AL
TEST EAX,EAX
JZ 0x0015d6af
LAB_0015d63c:
MOVZX EAX,byte ptr [R12 + 0x1]
INC R12
TEST EAX,EAX
JZ 0x0015d69f
CMP EAX,0x20
JNZ 0x0015d63c
LAB_0015d64e:
MOV RDX,R12
LAB_0015d651:
MOV AL,byte ptr [RDX + 0x1]
INC RDX
CMP AL,0x20
JZ 0x0015d651
MOV RCX,R12
MOV R12,RDX
JMP 0x0015d631
LAB_0015d663:
MOV AL,byte ptr [R13]
MOV RCX,R13
MOV R12,R13
LAB_0015d66d:
CMP AL,0x20
JZ 0x0015d68a
MOVZX EAX,AL
TEST EAX,EAX
JZ 0x0015d6bd
LAB_0015d678:
MOVZX EAX,byte ptr [R12 + 0x1]
INC R12
TEST EAX,EAX
JZ 0x0015d6c0
CMP EAX,0x20
JNZ 0x0015d678
LAB_0015d68a:
MOV RDX,R12
LAB_0015d68d:
MOV AL,byte ptr [RDX + 0x1]
INC RDX
CMP AL,0x20
JZ 0x0015d68d
MOV RCX,R12
MOV R12,RDX
JMP 0x0015d66d
LAB_0015d69f:
LEA RAX,[0x19bc52]
MOV qword ptr [RBP + -0x438],RAX
JMP 0x0015d6c0
LAB_0015d6af:
LEA RAX,[0x19bc52]
MOV qword ptr [RBP + -0x438],RAX
LAB_0015d6bd:
MOV R12,RCX
LAB_0015d6c0:
SUB R12,R13
LEA RDI,[RBP + -0x230]
CALL 0x00136410
MOV RBX,RAX
MOV RDI,qword ptr [RBP + -0x438]
CALL 0x00136410
CMP R12,0xff
JA 0x0015d750
ADD RBX,R12
ADD RBX,RAX
CMP RBX,0x200
JNC 0x0015d750
MOV RAX,qword ptr [RBP + -0x440]
CMP RAX,R15
MOV R15,RAX
JNZ 0x0015d722
LEA RBX,[RBP + -0x430]
MOV ECX,0x200
MOV RDI,RBX
MOV RSI,R13
MOV RDX,R12
CALL 0x001365c0
MOV R13,RBX
LAB_0015d722:
LEA RSI,[RBP + -0x230]
MOV RDI,R15
CALL 0x00136a10
MOV RDI,RAX
MOV RSI,R13
MOV RDX,R12
CALL 0x0019292c
MOV RDI,RAX
MOV RSI,qword ptr [RBP + -0x438]
CALL 0x00136420
JMP 0x0015d7ba
LAB_0015d750:
TEST R14B,0x40
JNZ 0x0015d791
MOV CL,byte ptr [R15]
MOV RDX,R15
MOV RAX,R15
LAB_0015d75f:
CMP CL,0x20
JZ 0x0015d77b
MOVZX ECX,CL
TEST ECX,ECX
JZ 0x0015d799
LAB_0015d76b:
MOVZX ECX,byte ptr [RAX + 0x1]
INC RAX
TEST ECX,ECX
JZ 0x0015d796
CMP ECX,0x20
JNZ 0x0015d76b
LAB_0015d77b:
MOV RSI,RAX
LAB_0015d77e:
MOV CL,byte ptr [RSI + 0x1]
INC RSI
CMP CL,0x20
JZ 0x0015d77e
MOV RDX,RAX
MOV RAX,RSI
JMP 0x0015d75f
LAB_0015d791:
XOR R15D,R15D
JMP 0x0015d7f4
LAB_0015d796:
MOV RDX,RAX
LAB_0015d799:
SUB RDX,R15
MOV EAX,0x1ff
CMP RDX,RAX
CMOVNC RDX,RAX
MOV RDI,qword ptr [RBP + -0x440]
MOV RSI,R15
MOV R15,RDI
CALL 0x0019292c
LAB_0015d7ba:
TEST R14B,0x20
JNZ 0x0015d7e7
TEST R14B,0x10
JZ 0x0015d7f4
LEA RBX,[RBP + -0x430]
MOV RDI,RBX
MOV RSI,R15
CALL 0x00136420
MOV RDI,R15
MOV RSI,RBX
XOR EDX,EDX
CALL 0x00162958
JMP 0x0015d7f4
LAB_0015d7e7:
MOV RDI,R15
MOV RSI,R15
XOR EDX,EDX
CALL 0x00162ab5
LAB_0015d7f4:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x0015d818
MOV RAX,R15
ADD RSP,0x428
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0015d818:
CALL 0x001362b0
|
char * fn_format(char *param_1,char *param_2,int8 param_3,char *param_4,uint param_5)
{
char *pcVar1;
char *pcVar2;
char cVar3;
int iVar4;
long lVar5;
int8 uVar6;
char *pcVar7;
size_t sVar8;
size_t sVar9;
char *pcVar10;
ulong uVar11;
char *pcVar12;
long in_FS_OFFSET;
int1 local_450 [8];
char *local_448;
char *local_440;
char local_438 [512];
char local_238 [512];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
local_448 = param_1;
local_440 = param_4;
lVar5 = dirname_part(local_238,param_2,local_450);
if ((param_5 & 1) == 0 && lVar5 != 0) {
if (((char)param_5 < '\0') && (iVar4 = test_if_hard_path(local_238), iVar4 == 0)) {
strmake(local_438,local_238,0x1ff);
uVar6 = convert_dirname(local_238,param_3,0);
strmake(uVar6,local_438,0x1ff - (long)((int)uVar6 - (int)local_238));
}
}
else {
convert_dirname(local_238,param_3,0);
}
if ((param_5 & 8) != 0) {
pack_dirname(local_238,local_238);
}
if ((param_5 & 4) != 0) {
unpack_dirname(local_238,local_238);
}
pcVar12 = param_2 + lVar5;
if (((param_5 >> 8 & 1) != 0) || (pcVar7 = strchr(pcVar12,0x2e), pcVar7 == (char *)0x0)) {
cVar3 = *pcVar12;
pcVar7 = pcVar12;
pcVar10 = pcVar12;
do {
pcVar2 = pcVar10;
if (cVar3 != ' ') {
if (cVar3 == '\0') goto LAB_0015d6c0;
do {
pcVar1 = pcVar10 + 1;
pcVar10 = pcVar10 + 1;
pcVar7 = pcVar10;
if (*pcVar1 == '\0') goto LAB_0015d6c0;
pcVar2 = pcVar10;
} while (*pcVar1 != ' ');
}
do {
pcVar7 = pcVar2;
cVar3 = pcVar10[1];
pcVar10 = pcVar10 + 1;
pcVar2 = pcVar7;
} while (cVar3 == ' ');
} while( true );
}
if ((param_5 & 2) == 0) {
cVar3 = *pcVar12;
pcVar7 = pcVar12;
pcVar10 = pcVar12;
do {
pcVar2 = pcVar10;
if (cVar3 != ' ') {
if (cVar3 == '\0') {
local_440 = "";
break;
}
do {
pcVar7 = pcVar10 + 1;
pcVar10 = pcVar10 + 1;
if (*pcVar7 == '\0') {
local_440 = "";
pcVar7 = pcVar10;
goto LAB_0015d6c0;
}
pcVar2 = pcVar10;
} while (*pcVar7 != ' ');
}
do {
pcVar7 = pcVar2;
cVar3 = pcVar10[1];
pcVar10 = pcVar10 + 1;
pcVar2 = pcVar7;
} while (cVar3 == ' ');
} while( true );
}
LAB_0015d6c0:
uVar11 = (long)pcVar7 - (long)pcVar12;
sVar8 = strlen(local_238);
sVar9 = strlen(local_440);
pcVar7 = local_448;
if ((0xff < uVar11) || (0x1ff < sVar8 + uVar11 + sVar9)) {
if ((param_5 & 0x40) == 0) {
cVar3 = *param_2;
pcVar12 = param_2;
pcVar10 = param_2;
do {
pcVar2 = pcVar12;
if (cVar3 != ' ') {
if (cVar3 == '\0') goto LAB_0015d799;
do {
pcVar1 = pcVar12 + 1;
pcVar12 = pcVar12 + 1;
pcVar10 = pcVar12;
if (*pcVar1 == '\0') goto LAB_0015d799;
pcVar2 = pcVar12;
} while (*pcVar1 != ' ');
}
do {
pcVar10 = pcVar2;
cVar3 = pcVar12[1];
pcVar12 = pcVar12 + 1;
pcVar2 = pcVar10;
} while (cVar3 == ' ');
} while( true );
}
pcVar7 = (char *)0x0;
goto LAB_0015d7f4;
}
pcVar10 = pcVar12;
if (local_448 == param_2) {
pcVar10 = local_438;
__memmove_chk(pcVar10,pcVar12,uVar11,0x200);
}
pcVar12 = stpcpy(pcVar7,local_238);
pcVar12 = (char *)strmake(pcVar12,pcVar10,uVar11);
strcpy(pcVar12,local_440);
LAB_0015d7ba:
if ((param_5 & 0x20) == 0) {
if ((param_5 & 0x10) != 0) {
strcpy(local_438,pcVar7);
my_readlink(pcVar7,local_438,0);
}
}
else {
my_realpath(pcVar7,pcVar7,0);
}
LAB_0015d7f4:
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return pcVar7;
LAB_0015d799:
uVar11 = (long)pcVar10 - (long)param_2;
if (0x1fe < uVar11) {
uVar11 = 0x1ff;
}
strmake(local_448,param_2,uVar11);
goto LAB_0015d7ba;
}
|
|
60,760
|
my_casedn_str_utf8mb3
|
eloqsql/strings/ctype-utf8.c
|
static size_t my_casedn_str_utf8mb3(CHARSET_INFO *cs, char *src)
{
my_wc_t wc;
int srcres, dstres;
char *dst= src, *dst0= src;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
DBUG_ASSERT(cs->casedn_multiply == 1);
while (*src &&
(srcres= my_utf8mb3_uni_no_range(cs, &wc, (uchar *) src)) > 0)
{
my_tolower_utf8mb3(uni_plane, &wc);
if ((dstres= my_uni_utf8mb3_no_range(cs, wc, (uchar*) dst)) <= 0)
break;
src+= srcres;
dst+= dstres;
}
/*
In rare cases lower string can be shorter than
the original string, for example:
"U+0130 LATIN CAPITAL LETTER I WITH DOT ABOVE"
(which is 0xC4B0 in utf8mb3, i.e. two bytes)
is converted into
"U+0069 LATIN SMALL LETTER I"
(which is 0x69 in utf8mb3, i.e. one byte)
So, we need to put '\0' terminator after converting.
*/
*dst= '\0';
return (size_t) (dst - dst0);
}
|
O3
|
c
|
my_casedn_str_utf8mb3:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
cmpb $0x0, (%rsi)
movq %rsi, %r14
je 0x840be
movq 0x78(%rdi), %r13
leaq -0x30(%rbp), %r15
movq %rbx, %r12
movq %rbx, %r14
movq %r15, %rdi
movq %r12, %rsi
callq 0x848ac
testl %eax, %eax
je 0x840be
movq 0x8(%r13), %rdx
movq -0x30(%rbp), %rcx
movzbl %ch, %esi
movq (%rdx,%rsi,8), %rdx
testq %rdx, %rdx
je 0x8404d
movzbl %cl, %ecx
leaq (%rcx,%rcx,2), %rcx
movl 0x4(%rdx,%rcx,4), %ecx
movq %rcx, -0x30(%rbp)
movl $0x1, %edx
cmpq $0x80, %rcx
jb 0x840a7
movl $0x2, %edx
cmpq $0x800, %rcx # imm = 0x800
jb 0x8408e
cmpq $0xffff, %rcx # imm = 0xFFFF
ja 0x840be
movl %ecx, %edx
andb $0x3f, %dl
orb $-0x80, %dl
movb %dl, 0x2(%r14)
shrq $0x6, %rcx
orq $0x800, %rcx # imm = 0x800
movl $0x3, %edx
movl %ecx, %esi
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, 0x1(%r14)
shrq $0x6, %rcx
orq $0xc0, %rcx
movb %cl, (%r14)
movl %eax, %eax
addq %rdx, %r14
cmpb $0x0, (%r12,%rax)
leaq (%r12,%rax), %r12
jne 0x84017
movb $0x0, (%r14)
subq %rbx, %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
my_casedn_str_utf8mb3:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rsi
cmp byte ptr [rsi], 0
mov r14, rsi
jz loc_840BE
mov r13, [rdi+78h]
lea r15, [rbp+var_30]
mov r12, rbx
mov r14, rbx
loc_84017:
mov rdi, r15
mov rsi, r12
call my_utf8mb3_uni_no_range
test eax, eax
jz loc_840BE
mov rdx, [r13+8]
mov rcx, [rbp+var_30]
movzx esi, ch
mov rdx, [rdx+rsi*8]
test rdx, rdx
jz short loc_8404D
movzx ecx, cl
lea rcx, [rcx+rcx*2]
mov ecx, [rdx+rcx*4+4]
mov [rbp+var_30], rcx
loc_8404D:
mov edx, 1
cmp rcx, 80h
jb short loc_840A7
mov edx, 2
cmp rcx, 800h
jb short loc_8408E
cmp rcx, 0FFFFh
ja short loc_840BE
mov edx, ecx
and dl, 3Fh
or dl, 80h
mov [r14+2], dl
shr rcx, 6
or rcx, 800h
mov edx, 3
loc_8408E:
mov esi, ecx
and sil, 3Fh
or sil, 80h
mov [r14+1], sil
shr rcx, 6
or rcx, 0C0h
loc_840A7:
mov [r14], cl
mov eax, eax
add r14, rdx
cmp byte ptr [r12+rax], 0
lea r12, [r12+rax]
jnz loc_84017
loc_840BE:
mov byte ptr [r14], 0
sub r14, rbx
mov rax, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long my_casedn_str_utf8mb3(long long a1, _BYTE *a2)
{
unsigned long long v2; // rax
_BYTE *v3; // r14
long long v4; // r13
_BYTE *v5; // r12
unsigned int v6; // eax
unsigned long long v7; // rcx
long long v8; // rdx
long long v9; // rdx
bool v10; // zf
unsigned long long v12; // [rsp+0h] [rbp-30h] BYREF
v12 = v2;
v3 = a2;
if ( *a2 )
{
v4 = *(_QWORD *)(a1 + 120);
v5 = a2;
v3 = a2;
do
{
v6 = my_utf8mb3_uni_no_range(&v12, v5);
if ( !v6 )
break;
v7 = v12;
v8 = *(_QWORD *)(*(_QWORD *)(v4 + 8) + 8LL * BYTE1(v12));
if ( v8 )
{
v7 = *(unsigned int *)(v8 + 12LL * (unsigned __int8)v12 + 4);
v12 = v7;
}
v9 = 1LL;
if ( v7 >= 0x80 )
{
v9 = 2LL;
if ( v7 >= 0x800 )
{
if ( v7 > 0xFFFF )
break;
v3[2] = v7 & 0x3F | 0x80;
v7 = (v7 >> 6) | 0x800;
v9 = 3LL;
}
v3[1] = v7 & 0x3F | 0x80;
v7 = (v7 >> 6) | 0xC0;
}
*v3 = v7;
v3 += v9;
v10 = v5[v6] == 0;
v5 += v6;
}
while ( !v10 );
}
*v3 = 0;
return v3 - a2;
}
|
my_casedn_str_utf8mb3:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RSI
CMP byte ptr [RSI],0x0
MOV R14,RSI
JZ 0x001840be
MOV R13,qword ptr [RDI + 0x78]
LEA R15,[RBP + -0x30]
MOV R12,RBX
MOV R14,RBX
LAB_00184017:
MOV RDI,R15
MOV RSI,R12
CALL 0x001848ac
TEST EAX,EAX
JZ 0x001840be
MOV RDX,qword ptr [R13 + 0x8]
MOV RCX,qword ptr [RBP + -0x30]
MOVZX ESI,CH
MOV RDX,qword ptr [RDX + RSI*0x8]
TEST RDX,RDX
JZ 0x0018404d
MOVZX ECX,CL
LEA RCX,[RCX + RCX*0x2]
MOV ECX,dword ptr [RDX + RCX*0x4 + 0x4]
MOV qword ptr [RBP + -0x30],RCX
LAB_0018404d:
MOV EDX,0x1
CMP RCX,0x80
JC 0x001840a7
MOV EDX,0x2
CMP RCX,0x800
JC 0x0018408e
CMP RCX,0xffff
JA 0x001840be
MOV EDX,ECX
AND DL,0x3f
OR DL,0x80
MOV byte ptr [R14 + 0x2],DL
SHR RCX,0x6
OR RCX,0x800
MOV EDX,0x3
LAB_0018408e:
MOV ESI,ECX
AND SIL,0x3f
OR SIL,0x80
MOV byte ptr [R14 + 0x1],SIL
SHR RCX,0x6
OR RCX,0xc0
LAB_001840a7:
MOV byte ptr [R14],CL
MOV EAX,EAX
ADD R14,RDX
CMP byte ptr [R12 + RAX*0x1],0x0
LEA R12,[R12 + RAX*0x1]
JNZ 0x00184017
LAB_001840be:
MOV byte ptr [R14],0x0
SUB R14,RBX
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_casedn_str_utf8mb3(long param_1,char *param_2)
{
char *pcVar1;
long lVar2;
uint uVar3;
ulong in_RAX;
ulong uVar4;
long lVar5;
char *pcVar6;
char *pcVar7;
ulong local_38;
pcVar7 = param_2;
if (*param_2 != '\0') {
lVar2 = *(long *)(param_1 + 0x78);
pcVar6 = param_2;
local_38 = in_RAX;
do {
uVar3 = my_utf8mb3_uni_no_range(&local_38,pcVar6);
if (uVar3 == 0) break;
lVar5 = *(long *)(*(long *)(lVar2 + 8) + (local_38 >> 8 & 0xff) * 8);
if (lVar5 != 0) {
local_38 = (ulong)*(uint *)(lVar5 + 4 + (local_38 & 0xff) * 0xc);
}
lVar5 = 1;
uVar4 = local_38;
if (0x7f < local_38) {
lVar5 = 2;
if (0x7ff < local_38) {
if (0xffff < local_38) break;
pcVar7[2] = (byte)local_38 & 0x3f | 0x80;
uVar4 = local_38 >> 6 | 0x800;
lVar5 = 3;
}
pcVar7[1] = (byte)uVar4 & 0x3f | 0x80;
uVar4 = uVar4 >> 6 | 0xc0;
}
*pcVar7 = (char)uVar4;
pcVar7 = pcVar7 + lVar5;
pcVar1 = pcVar6 + uVar3;
pcVar6 = pcVar6 + uVar3;
} while (*pcVar1 != '\0');
}
*pcVar7 = '\0';
return (long)pcVar7 - (long)param_2;
}
|
|
60,761
|
double json_value<double>(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&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, double const&)
|
monkey531[P]llama/examples/server/utils.hpp
|
static T json_value(const json & body, const std::string & key, const T & default_value) {
// Fallback null to default value
if (body.contains(key) && !body.at(key).is_null()) {
try {
return body.at(key);
} catch (NLOHMANN_JSON_NAMESPACE::detail::type_error const &) {
LOG_WRN("Wrong type supplied for parameter '%s'. Expected '%s', using default value\n", key.c_str(), json(default_value).type_name());
return default_value;
}
} else {
return default_value;
}
}
|
O2
|
cpp
|
double json_value<double>(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&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, double const&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x68c80
testb %al, %al
je 0x30cdd
movq %r15, %rdi
movq %r14, %rsi
callq 0x68ca2
cmpb $0x0, (%rax)
je 0x30cdd
movq %r15, %rdi
movq %r14, %rsi
callq 0x68ca2
movq %rax, %rdi
callq 0x6d788
jmp 0x30ce1
movsd (%rbx), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r15
cmpl $0x1, %edx
jne 0x30d83
movq %r15, %rdi
callq 0x28480
leaq 0x261290(%rip), %rax # 0x291f98
cmpl $0x0, (%rax)
js 0x30d54
callq 0xeb6fe
movq %rax, %r15
movq (%r14), %r14
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x6d76c
movq %r12, %rdi
callq 0x4f280
leaq 0xc2ff9(%rip), %rdx # 0xf3d30
pushq $0x3
popq %rsi
movq %r15, %rdi
movq %r14, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0xeb796
leaq 0x8(%rsp), %rdi
callq 0x3ec50
movsd (%rbx), %xmm0
movsd %xmm0, (%rsp)
callq 0x29210
movsd (%rsp), %xmm0
jmp 0x30ce1
movq %rax, %r15
leaq 0x8(%rsp), %rdi
callq 0x3ec50
jmp 0x30d7e
movq %rax, %r15
callq 0x29210
movq %r15, %rdi
callq 0x293c0
movq %rax, %rdi
callq 0x3bd35
nop
|
_ZL10json_valueIdET_RKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEERKSB_RKS0_:
push r15
push r14
push r12
push rbx
sub rsp, 18h
mov rbx, rdx
mov r14, rsi
mov r15, rdi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsERKS9_; 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>::contains(std::string const&)
test al, al
jz short loc_30CDD
mov rdi, r15
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atERKS9_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::at(std::string const&)
cmp byte ptr [rax], 0
jz short loc_30CDD
mov rdi, r15
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atERKS9_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::at(std::string const&)
mov rdi, rax
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIdTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
jmp short loc_30CE1
loc_30CDD:
movsd xmm0, qword ptr [rbx]
loc_30CE1:
add rsp, 18h
pop rbx
pop r12
pop r14
pop r15
retn
mov r15, rax
cmp edx, 1
jnz loc_30D83
mov rdi, r15; void *
call ___cxa_begin_catch
lea rax, common_log_verbosity_thold
cmp dword ptr [rax], 0
js short loc_30D54
call _Z15common_log_mainv; common_log_main(void)
mov r15, rax
mov r14, [r14]
lea r12, [rsp+38h+var_30]
mov rdi, r12
mov rsi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRKddTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_
mov rdi, r12
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
lea rdx, aWrongTypeSuppl; "Wrong type supplied for parameter '%s'."...
push 3
pop rsi
mov rdi, r15
mov rcx, r14
mov r8, rax
xor eax, eax
call _Z14common_log_addP10common_log14ggml_log_levelPKcz; common_log_add(common_log *,ggml_log_level,char const*,...)
lea rdi, [rsp+38h+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()
loc_30D54:
movsd xmm0, qword ptr [rbx]
movsd [rsp+38h+var_38], xmm0
call ___cxa_end_catch
movsd xmm0, [rsp+38h+var_38]
jmp loc_30CE1
mov r15, rax
lea rdi, [rsp+38h+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 short loc_30D7E
mov r15, rax
loc_30D7E:
call ___cxa_end_catch
loc_30D83:
mov rdi, r15
call __Unwind_Resume
mov rdi, rax
call __clang_call_terminate
|
double json_value<double>(long long a1, long long a2, long long a3)
{
long long v4; // rax
double result; // xmm0_8
if ( !(unsigned __int8)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>::contains()
|| !*(_BYTE *)nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::at(
a1,
a2) )
{
return *(double *)a3;
}
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>::at(
a1,
a2);
ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIdTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(v4);
return result;
}
|
json_value<double>:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
CALL 0x00168c80
TEST AL,AL
JZ 0x00130cdd
MOV RDI,R15
MOV RSI,R14
CALL 0x00168ca2
CMP byte ptr [RAX],0x0
JZ 0x00130cdd
LAB_00130cc8:
MOV RDI,R15
MOV RSI,R14
CALL 0x00168ca2
MOV RDI,RAX
CALL 0x0016d788
LAB_00130cdb:
JMP 0x00130ce1
LAB_00130cdd:
MOVSD XMM0,qword ptr [RBX]
LAB_00130ce1:
ADD RSP,0x18
POP RBX
POP R12
POP R14
POP R15
RET
|
/* double
json_value<double>(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&, std::__cxx11::string const&, double const&) */
double json_value<double>(basic_json *param_1,string *param_2,double *param_3)
{
char *pcVar1;
int8 uVar2;
char cVar3;
double dVar4;
cVar3 = 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>
::contains((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,param_2);
if ((cVar3 != '\0') &&
(pcVar1 = (char *)nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::at((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)param_1,param_2), *pcVar1 != '\0')) {
/* try { // try from 00130cc8 to 00130cda has its CatchHandler @ 00130ced */
uVar2 = nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::at((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)param_1,param_2);
dVar4 = (double)_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIdTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
(uVar2);
return dVar4;
}
return *param_3;
}
|
|
60,762
|
ggml_opt_result_reset
|
ngxson[P]ggml-easy/ggml/src/ggml-opt.cpp
|
void ggml_opt_result_reset(ggml_opt_result_t result) {
result->ndata = 0;
result->loss.clear();
result->pred.clear();
result->ncorrect = 0;
}
|
O1
|
cpp
|
ggml_opt_result_reset:
movq $0x0, (%rdi)
movq 0x8(%rdi), %rax
cmpq %rax, 0x10(%rdi)
je 0x29e20
movq %rax, 0x10(%rdi)
movq 0x20(%rdi), %rax
cmpq %rax, 0x28(%rdi)
je 0x29e2e
movq %rax, 0x28(%rdi)
movq $0x0, 0x38(%rdi)
retq
|
ggml_opt_result_reset:
mov qword ptr [rdi], 0
mov rax, [rdi+8]
cmp [rdi+10h], rax
jz short loc_29E20
mov [rdi+10h], rax
loc_29E20:
mov rax, [rdi+20h]
cmp [rdi+28h], rax
jz short loc_29E2E
mov [rdi+28h], rax
loc_29E2E:
mov qword ptr [rdi+38h], 0
retn
|
long long ggml_opt_result_reset(_QWORD *a1)
{
long long v1; // rax
long long result; // rax
*a1 = 0LL;
v1 = a1[1];
if ( a1[2] != v1 )
a1[2] = v1;
result = a1[4];
if ( a1[5] != result )
a1[5] = result;
a1[7] = 0LL;
return result;
}
|
ggml_opt_result_reset:
MOV qword ptr [RDI],0x0
MOV RAX,qword ptr [RDI + 0x8]
CMP qword ptr [RDI + 0x10],RAX
JZ 0x00129e20
MOV qword ptr [RDI + 0x10],RAX
LAB_00129e20:
MOV RAX,qword ptr [RDI + 0x20]
CMP qword ptr [RDI + 0x28],RAX
JZ 0x00129e2e
MOV qword ptr [RDI + 0x28],RAX
LAB_00129e2e:
MOV qword ptr [RDI + 0x38],0x0
RET
|
void ggml_opt_result_reset(int8 *param_1)
{
*param_1 = 0;
if (param_1[2] != param_1[1]) {
param_1[2] = param_1[1];
}
if (param_1[5] != param_1[4]) {
param_1[5] = param_1[4];
}
param_1[7] = 0;
return;
}
|
|
60,763
|
ggml_opt_result_reset
|
ngxson[P]ggml-easy/ggml/src/ggml-opt.cpp
|
void ggml_opt_result_reset(ggml_opt_result_t result) {
result->ndata = 0;
result->loss.clear();
result->pred.clear();
result->ncorrect = 0;
}
|
O2
|
cpp
|
ggml_opt_result_reset:
andq $0x0, (%rdi)
movq 0x8(%rdi), %rax
cmpq %rax, 0x10(%rdi)
je 0x2e75c
movq %rax, 0x10(%rdi)
movq 0x20(%rdi), %rax
cmpq %rax, 0x28(%rdi)
je 0x2e76a
movq %rax, 0x28(%rdi)
andq $0x0, 0x38(%rdi)
retq
|
ggml_opt_result_reset:
and qword ptr [rdi], 0
mov rax, [rdi+8]
cmp [rdi+10h], rax
jz short loc_2E75C
mov [rdi+10h], rax
loc_2E75C:
mov rax, [rdi+20h]
cmp [rdi+28h], rax
jz short loc_2E76A
mov [rdi+28h], rax
loc_2E76A:
and qword ptr [rdi+38h], 0
retn
|
long long ggml_opt_result_reset(_QWORD *a1)
{
long long v1; // rax
long long result; // rax
*a1 = 0LL;
v1 = a1[1];
if ( a1[2] != v1 )
a1[2] = v1;
result = a1[4];
if ( a1[5] != result )
a1[5] = result;
a1[7] = 0LL;
return result;
}
|
ggml_opt_result_reset:
AND qword ptr [RDI],0x0
MOV RAX,qword ptr [RDI + 0x8]
CMP qword ptr [RDI + 0x10],RAX
JZ 0x0012e75c
MOV qword ptr [RDI + 0x10],RAX
LAB_0012e75c:
MOV RAX,qword ptr [RDI + 0x20]
CMP qword ptr [RDI + 0x28],RAX
JZ 0x0012e76a
MOV qword ptr [RDI + 0x28],RAX
LAB_0012e76a:
AND qword ptr [RDI + 0x38],0x0
RET
|
void ggml_opt_result_reset(int8 *param_1)
{
*param_1 = 0;
if (param_1[2] != param_1[1]) {
param_1[2] = param_1[1];
}
if (param_1[5] != param_1[4]) {
param_1[5] = param_1[4];
}
param_1[7] = 0;
return;
}
|
|
60,764
|
ggml_opt_result_reset
|
ngxson[P]ggml-easy/ggml/src/ggml-opt.cpp
|
void ggml_opt_result_reset(ggml_opt_result_t result) {
result->ndata = 0;
result->loss.clear();
result->pred.clear();
result->ncorrect = 0;
}
|
O3
|
cpp
|
ggml_opt_result_reset:
movq $0x0, (%rdi)
movq 0x8(%rdi), %rax
cmpq %rax, 0x10(%rdi)
je 0x29c90
movq %rax, 0x10(%rdi)
movq 0x20(%rdi), %rax
cmpq %rax, 0x28(%rdi)
je 0x29c9e
movq %rax, 0x28(%rdi)
movq $0x0, 0x38(%rdi)
retq
|
ggml_opt_result_reset:
mov qword ptr [rdi], 0
mov rax, [rdi+8]
cmp [rdi+10h], rax
jz short loc_29C90
mov [rdi+10h], rax
loc_29C90:
mov rax, [rdi+20h]
cmp [rdi+28h], rax
jz short loc_29C9E
mov [rdi+28h], rax
loc_29C9E:
mov qword ptr [rdi+38h], 0
retn
|
long long ggml_opt_result_reset(_QWORD *a1)
{
long long v1; // rax
long long result; // rax
*a1 = 0LL;
v1 = a1[1];
if ( a1[2] != v1 )
a1[2] = v1;
result = a1[4];
if ( a1[5] != result )
a1[5] = result;
a1[7] = 0LL;
return result;
}
|
ggml_opt_result_reset:
MOV qword ptr [RDI],0x0
MOV RAX,qword ptr [RDI + 0x8]
CMP qword ptr [RDI + 0x10],RAX
JZ 0x00129c90
MOV qword ptr [RDI + 0x10],RAX
LAB_00129c90:
MOV RAX,qword ptr [RDI + 0x20]
CMP qword ptr [RDI + 0x28],RAX
JZ 0x00129c9e
MOV qword ptr [RDI + 0x28],RAX
LAB_00129c9e:
MOV qword ptr [RDI + 0x38],0x0
RET
|
void ggml_opt_result_reset(int8 *param_1)
{
*param_1 = 0;
if (param_1[2] != param_1[1]) {
param_1[2] = param_1[1];
}
if (param_1[5] != param_1[4]) {
param_1[5] = param_1[4];
}
param_1[7] = 0;
return;
}
|
|
60,765
|
composition_solid_source_in
|
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-blend.c
|
static void composition_solid_source_in(uint32_t* dest, int length, uint32_t color, uint32_t const_alpha)
{
if(const_alpha == 255) {
for(int i = 0; i < length; i++) {
dest[i] = BYTE_MUL(color, plutovg_alpha(dest[i]));
}
} else {
color = BYTE_MUL(color, const_alpha);
uint32_t cia = 255 - const_alpha;
for(int i = 0; i < length; i++) {
uint32_t d = dest[i];
dest[i] = INTERPOLATE_PIXEL(color, plutovg_alpha(d), d, cia);
}
}
}
|
O1
|
c
|
composition_solid_source_in:
pushq %rbp
pushq %r14
pushq %rbx
cmpl $0xff, %ecx
jne 0x40d54
testl %esi, %esi
jle 0x40e1c
movl $0xff00ff, %eax # imm = 0xFF00FF
movl %edx, %ecx
andl %eax, %ecx
shrl $0x8, %edx
andl %eax, %edx
movl %esi, %esi
xorl %r8d, %r8d
movl $0x800080, %r9d # imm = 0x800080
movl (%rdi,%r8,4), %r10d
shrl $0x18, %r10d
movl %r10d, %r11d
imull %ecx, %r11d
movl %r11d, %ebx
shrl $0x8, %ebx
andl %eax, %ebx
addl %r9d, %r11d
addl %ebx, %r11d
shrl $0x8, %r11d
andl %eax, %r11d
imull %edx, %r10d
movl %r10d, %ebx
shrl $0x8, %ebx
andl %eax, %ebx
addl %r9d, %r10d
addl %ebx, %r10d
andl $0xff00ff00, %r10d # imm = 0xFF00FF00
orl %r11d, %r10d
movl %r10d, (%rdi,%r8,4)
incq %r8
cmpq %r8, %rsi
jne 0x40d03
jmp 0x40e1c
testl %esi, %esi
jle 0x40e1c
movl $0xff00ff, %eax # imm = 0xFF00FF
movl %edx, %r8d
andl %eax, %r8d
imull %ecx, %r8d
movl %r8d, %r9d
shrl $0x8, %r9d
andl %eax, %r9d
addl %r9d, %r8d
addl $0x800080, %r8d # imm = 0x800080
shrl $0x8, %r8d
andl %eax, %r8d
movl $0xff, %r9d
subl %ecx, %r9d
shrl $0x8, %edx
andl %eax, %edx
imull %ecx, %edx
movl %edx, %ecx
shrl $0x8, %ecx
andl %eax, %ecx
addl %edx, %ecx
addl $0x800080, %ecx # imm = 0x800080
shrl $0x8, %ecx
andl %eax, %ecx
movl %esi, %edx
xorl %esi, %esi
movl $0x800080, %r10d # imm = 0x800080
movl (%rdi,%rsi,4), %r11d
movl %r11d, %ebp
shrl $0x18, %ebp
movl %ebp, %r14d
imull %r8d, %r14d
movl %r11d, %ebx
andl %eax, %ebx
imull %r9d, %ebx
addl %r14d, %ebx
movl %ebx, %r14d
shrl $0x8, %r14d
andl %eax, %r14d
addl %r10d, %ebx
addl %r14d, %ebx
shrl $0x8, %ebx
andl %eax, %ebx
imull %ecx, %ebp
shrl $0x8, %r11d
andl %eax, %r11d
imull %r9d, %r11d
addl %ebp, %r11d
movl %r11d, %ebp
shrl $0x8, %ebp
andl %eax, %ebp
addl %r10d, %r11d
addl %ebp, %r11d
andl $0xff00ff00, %r11d # imm = 0xFF00FF00
orl %ebx, %r11d
movl %r11d, (%rdi,%rsi,4)
incq %rsi
cmpq %rsi, %rdx
jne 0x40db5
popq %rbx
popq %r14
popq %rbp
retq
|
composition_solid_source_in:
push rbp
push r14
push rbx
cmp ecx, 0FFh
jnz short loc_40D54
test esi, esi
jle loc_40E1C
mov eax, 0FF00FFh
mov ecx, edx
and ecx, eax
shr edx, 8
and edx, eax
mov esi, esi
xor r8d, r8d
mov r9d, 800080h
loc_40D03:
mov r10d, [rdi+r8*4]
shr r10d, 18h
mov r11d, r10d
imul r11d, ecx
mov ebx, r11d
shr ebx, 8
and ebx, eax
add r11d, r9d
add r11d, ebx
shr r11d, 8
and r11d, eax
imul r10d, edx
mov ebx, r10d
shr ebx, 8
and ebx, eax
add r10d, r9d
add r10d, ebx
and r10d, 0FF00FF00h
or r10d, r11d
mov [rdi+r8*4], r10d
inc r8
cmp rsi, r8
jnz short loc_40D03
jmp loc_40E1C
loc_40D54:
test esi, esi
jle loc_40E1C
mov eax, 0FF00FFh
mov r8d, edx
and r8d, eax
imul r8d, ecx
mov r9d, r8d
shr r9d, 8
and r9d, eax
add r8d, r9d
add r8d, 800080h
shr r8d, 8
and r8d, eax
mov r9d, 0FFh
sub r9d, ecx
shr edx, 8
and edx, eax
imul edx, ecx
mov ecx, edx
shr ecx, 8
and ecx, eax
add ecx, edx
add ecx, 800080h
shr ecx, 8
and ecx, eax
mov edx, esi
xor esi, esi
mov r10d, 800080h
loc_40DB5:
mov r11d, [rdi+rsi*4]
mov ebp, r11d
shr ebp, 18h
mov r14d, ebp
imul r14d, r8d
mov ebx, r11d
and ebx, eax
imul ebx, r9d
add ebx, r14d
mov r14d, ebx
shr r14d, 8
and r14d, eax
add ebx, r10d
add ebx, r14d
shr ebx, 8
and ebx, eax
imul ebp, ecx
shr r11d, 8
and r11d, eax
imul r11d, r9d
add r11d, ebp
mov ebp, r11d
shr ebp, 8
and ebp, eax
add r11d, r10d
add r11d, ebp
and r11d, 0FF00FF00h
or r11d, ebx
mov [rdi+rsi*4], r11d
inc rsi
cmp rdx, rsi
jnz short loc_40DB5
loc_40E1C:
pop rbx
pop r14
pop rbp
retn
|
void composition_solid_source_in(long long a1, int a2, unsigned int a3, int a4)
{
int v4; // ecx
int v5; // edx
long long i; // r8
unsigned int v7; // r8d
int v8; // r9d
unsigned int v9; // ecx
long long v10; // rdx
long long j; // rsi
if ( a4 == 255 )
{
if ( a2 > 0 )
{
v4 = a3 & 0xFF00FF;
v5 = (a3 >> 8) & 0xFF00FF;
for ( i = 0LL; i != a2; ++i )
*(_DWORD *)(a1 + 4 * i) = (((((unsigned int)(v4 * HIBYTE(*(_DWORD *)(a1 + 4 * i))) >> 8) & 0xFF00FF)
+ v4 * HIBYTE(*(_DWORD *)(a1 + 4 * i))
+ 8388736) >> 8) & 0xFF00FF | ((((unsigned int)(v5 * HIBYTE(*(_DWORD *)(a1 + 4 * i))) >> 8) & 0xFF00FF)
+ v5 * HIBYTE(*(_DWORD *)(a1 + 4 * i))
+ 8388736) & 0xFF00FF00;
}
}
else if ( a2 > 0 )
{
v7 = (((((a4 * (a3 & 0xFF00FF)) >> 8) & 0xFF00FF) + a4 * (a3 & 0xFF00FF) + 8388736) >> 8) & 0xFF00FF;
v8 = 255 - a4;
v9 = ((a4 * ((a3 >> 8) & 0xFF00FF) + (((a4 * ((a3 >> 8) & 0xFF00FF)) >> 8) & 0xFF00FF) + 8388736) >> 8) & 0xFF00FF;
v10 = (unsigned int)a2;
for ( j = 0LL; j != v10; ++j )
*(_DWORD *)(a1 + 4 * j) = (((((v7 * HIBYTE(*(_DWORD *)(a1 + 4 * j)) + v8 * (*(_DWORD *)(a1 + 4 * j) & 0xFF00FF)) >> 8) & 0xFF00FF)
+ v7 * HIBYTE(*(_DWORD *)(a1 + 4 * j))
+ v8 * (*(_DWORD *)(a1 + 4 * j) & 0xFF00FF)
+ 8388736) >> 8) & 0xFF00FF | ((((v9 * HIBYTE(*(_DWORD *)(a1 + 4 * j))
+ v8 * ((*(_DWORD *)(a1 + 4 * j) >> 8) & 0xFF00FF)) >> 8) & 0xFF00FF)
+ v9 * HIBYTE(*(_DWORD *)(a1 + 4 * j))
+ v8 * ((*(_DWORD *)(a1 + 4 * j) >> 8) & 0xFF00FF)
+ 8388736) & 0xFF00FF00;
}
}
|
composition_solid_source_in:
PUSH RBP
PUSH R14
PUSH RBX
CMP ECX,0xff
JNZ 0x00140d54
TEST ESI,ESI
JLE 0x00140e1c
MOV EAX,0xff00ff
MOV ECX,EDX
AND ECX,EAX
SHR EDX,0x8
AND EDX,EAX
MOV ESI,ESI
XOR R8D,R8D
MOV R9D,0x800080
LAB_00140d03:
MOV R10D,dword ptr [RDI + R8*0x4]
SHR R10D,0x18
MOV R11D,R10D
IMUL R11D,ECX
MOV EBX,R11D
SHR EBX,0x8
AND EBX,EAX
ADD R11D,R9D
ADD R11D,EBX
SHR R11D,0x8
AND R11D,EAX
IMUL R10D,EDX
MOV EBX,R10D
SHR EBX,0x8
AND EBX,EAX
ADD R10D,R9D
ADD R10D,EBX
AND R10D,0xff00ff00
OR R10D,R11D
MOV dword ptr [RDI + R8*0x4],R10D
INC R8
CMP RSI,R8
JNZ 0x00140d03
JMP 0x00140e1c
LAB_00140d54:
TEST ESI,ESI
JLE 0x00140e1c
MOV EAX,0xff00ff
MOV R8D,EDX
AND R8D,EAX
IMUL R8D,ECX
MOV R9D,R8D
SHR R9D,0x8
AND R9D,EAX
ADD R8D,R9D
ADD R8D,0x800080
SHR R8D,0x8
AND R8D,EAX
MOV R9D,0xff
SUB R9D,ECX
SHR EDX,0x8
AND EDX,EAX
IMUL EDX,ECX
MOV ECX,EDX
SHR ECX,0x8
AND ECX,EAX
ADD ECX,EDX
ADD ECX,0x800080
SHR ECX,0x8
AND ECX,EAX
MOV EDX,ESI
XOR ESI,ESI
MOV R10D,0x800080
LAB_00140db5:
MOV R11D,dword ptr [RDI + RSI*0x4]
MOV EBP,R11D
SHR EBP,0x18
MOV R14D,EBP
IMUL R14D,R8D
MOV EBX,R11D
AND EBX,EAX
IMUL EBX,R9D
ADD EBX,R14D
MOV R14D,EBX
SHR R14D,0x8
AND R14D,EAX
ADD EBX,R10D
ADD EBX,R14D
SHR EBX,0x8
AND EBX,EAX
IMUL EBP,ECX
SHR R11D,0x8
AND R11D,EAX
IMUL R11D,R9D
ADD R11D,EBP
MOV EBP,R11D
SHR EBP,0x8
AND EBP,EAX
ADD R11D,R10D
ADD R11D,EBP
AND R11D,0xff00ff00
OR R11D,EBX
MOV dword ptr [RDI + RSI*0x4],R11D
INC RSI
CMP RDX,RSI
JNZ 0x00140db5
LAB_00140e1c:
POP RBX
POP R14
POP RBP
RET
|
void composition_solid_source_in(long param_1,uint param_2,uint param_3,int param_4)
{
uint uVar1;
ulong uVar2;
uint uVar3;
uint uVar4;
uint uVar5;
if (param_4 == 0xff) {
if (0 < (int)param_2) {
uVar2 = 0;
do {
uVar3 = *(uint *)(param_1 + uVar2 * 4) >> 0x18;
uVar4 = uVar3 * (param_3 & 0xff00ff);
uVar3 = uVar3 * (param_3 >> 8 & 0xff00ff);
*(uint *)(param_1 + uVar2 * 4) =
uVar3 + 0x800080 + (uVar3 >> 8 & 0xff00ff) & 0xff00ff00 |
uVar4 + 0x800080 + (uVar4 >> 8 & 0xff00ff) >> 8 & 0xff00ff;
uVar2 = uVar2 + 1;
} while (param_2 != uVar2);
}
}
else if (0 < (int)param_2) {
uVar4 = (param_3 & 0xff00ff) * param_4;
uVar3 = (param_3 >> 8 & 0xff00ff) * param_4;
uVar2 = 0;
do {
uVar5 = *(uint *)(param_1 + uVar2 * 4);
uVar1 = (uVar5 & 0xff00ff) * (0xff - param_4) +
(uVar5 >> 0x18) * (uVar4 + (uVar4 >> 8 & 0xff00ff) + 0x800080 >> 8 & 0xff00ff);
uVar5 = (uVar5 >> 8 & 0xff00ff) * (0xff - param_4) +
(uVar5 >> 0x18) * ((uVar3 >> 8 & 0xff00ff) + uVar3 + 0x800080 >> 8 & 0xff00ff);
*(uint *)(param_1 + uVar2 * 4) =
uVar5 + 0x800080 + (uVar5 >> 8 & 0xff00ff) & 0xff00ff00 |
uVar1 + 0x800080 + (uVar1 >> 8 & 0xff00ff) >> 8 & 0xff00ff;
uVar2 = uVar2 + 1;
} while (param_2 != uVar2);
}
return;
}
|
|
60,766
|
composition_solid_source_in
|
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-blend.c
|
static void composition_solid_source_in(uint32_t* dest, int length, uint32_t color, uint32_t const_alpha)
{
if(const_alpha == 255) {
for(int i = 0; i < length; i++) {
dest[i] = BYTE_MUL(color, plutovg_alpha(dest[i]));
}
} else {
color = BYTE_MUL(color, const_alpha);
uint32_t cia = 255 - const_alpha;
for(int i = 0; i < length; i++) {
uint32_t d = dest[i];
dest[i] = INTERPOLATE_PIXEL(color, plutovg_alpha(d), d, cia);
}
}
}
|
O3
|
c
|
composition_solid_source_in:
pushq %rbp
pushq %r14
pushq %rbx
cmpl $0xff, %ecx
jne 0x40aa7
testl %esi, %esi
jle 0x40b6f
movl $0xff00ff, %eax # imm = 0xFF00FF
movl %edx, %ecx
andl %eax, %ecx
shrl $0x8, %edx
andl %eax, %edx
movl %esi, %esi
xorl %r8d, %r8d
movl $0x800080, %r9d # imm = 0x800080
movl (%rdi,%r8,4), %r10d
shrl $0x18, %r10d
movl %r10d, %r11d
imull %ecx, %r11d
movl %r11d, %ebx
shrl $0x8, %ebx
andl %eax, %ebx
addl %r9d, %r11d
addl %ebx, %r11d
shrl $0x8, %r11d
andl %eax, %r11d
imull %edx, %r10d
movl %r10d, %ebx
shrl $0x8, %ebx
andl %eax, %ebx
addl %r9d, %r10d
addl %ebx, %r10d
andl $0xff00ff00, %r10d # imm = 0xFF00FF00
orl %r11d, %r10d
movl %r10d, (%rdi,%r8,4)
incq %r8
cmpq %r8, %rsi
jne 0x40a56
jmp 0x40b6f
testl %esi, %esi
jle 0x40b6f
movl $0xff00ff, %eax # imm = 0xFF00FF
movl %edx, %r8d
andl %eax, %r8d
imull %ecx, %r8d
movl %r8d, %r9d
shrl $0x8, %r9d
andl %eax, %r9d
addl %r9d, %r8d
addl $0x800080, %r8d # imm = 0x800080
shrl $0x8, %r8d
andl %eax, %r8d
movl $0xff, %r9d
subl %ecx, %r9d
shrl $0x8, %edx
andl %eax, %edx
imull %ecx, %edx
movl %edx, %ecx
shrl $0x8, %ecx
andl %eax, %ecx
addl %edx, %ecx
addl $0x800080, %ecx # imm = 0x800080
shrl $0x8, %ecx
andl %eax, %ecx
movl %esi, %edx
xorl %esi, %esi
movl $0x800080, %r10d # imm = 0x800080
movl (%rdi,%rsi,4), %r11d
movl %r11d, %ebp
shrl $0x18, %ebp
movl %ebp, %r14d
imull %r8d, %r14d
movl %r11d, %ebx
andl %eax, %ebx
imull %r9d, %ebx
addl %r14d, %ebx
movl %ebx, %r14d
shrl $0x8, %r14d
andl %eax, %r14d
addl %r10d, %ebx
addl %r14d, %ebx
shrl $0x8, %ebx
andl %eax, %ebx
imull %ecx, %ebp
shrl $0x8, %r11d
andl %eax, %r11d
imull %r9d, %r11d
addl %ebp, %r11d
movl %r11d, %ebp
shrl $0x8, %ebp
andl %eax, %ebp
addl %r10d, %r11d
addl %ebp, %r11d
andl $0xff00ff00, %r11d # imm = 0xFF00FF00
orl %ebx, %r11d
movl %r11d, (%rdi,%rsi,4)
incq %rsi
cmpq %rsi, %rdx
jne 0x40b08
popq %rbx
popq %r14
popq %rbp
retq
|
composition_solid_source_in:
push rbp
push r14
push rbx
cmp ecx, 0FFh
jnz short loc_40AA7
test esi, esi
jle loc_40B6F
mov eax, 0FF00FFh
mov ecx, edx
and ecx, eax
shr edx, 8
and edx, eax
mov esi, esi
xor r8d, r8d
mov r9d, 800080h
loc_40A56:
mov r10d, [rdi+r8*4]
shr r10d, 18h
mov r11d, r10d
imul r11d, ecx
mov ebx, r11d
shr ebx, 8
and ebx, eax
add r11d, r9d
add r11d, ebx
shr r11d, 8
and r11d, eax
imul r10d, edx
mov ebx, r10d
shr ebx, 8
and ebx, eax
add r10d, r9d
add r10d, ebx
and r10d, 0FF00FF00h
or r10d, r11d
mov [rdi+r8*4], r10d
inc r8
cmp rsi, r8
jnz short loc_40A56
jmp loc_40B6F
loc_40AA7:
test esi, esi
jle loc_40B6F
mov eax, 0FF00FFh
mov r8d, edx
and r8d, eax
imul r8d, ecx
mov r9d, r8d
shr r9d, 8
and r9d, eax
add r8d, r9d
add r8d, 800080h
shr r8d, 8
and r8d, eax
mov r9d, 0FFh
sub r9d, ecx
shr edx, 8
and edx, eax
imul edx, ecx
mov ecx, edx
shr ecx, 8
and ecx, eax
add ecx, edx
add ecx, 800080h
shr ecx, 8
and ecx, eax
mov edx, esi
xor esi, esi
mov r10d, 800080h
loc_40B08:
mov r11d, [rdi+rsi*4]
mov ebp, r11d
shr ebp, 18h
mov r14d, ebp
imul r14d, r8d
mov ebx, r11d
and ebx, eax
imul ebx, r9d
add ebx, r14d
mov r14d, ebx
shr r14d, 8
and r14d, eax
add ebx, r10d
add ebx, r14d
shr ebx, 8
and ebx, eax
imul ebp, ecx
shr r11d, 8
and r11d, eax
imul r11d, r9d
add r11d, ebp
mov ebp, r11d
shr ebp, 8
and ebp, eax
add r11d, r10d
add r11d, ebp
and r11d, 0FF00FF00h
or r11d, ebx
mov [rdi+rsi*4], r11d
inc rsi
cmp rdx, rsi
jnz short loc_40B08
loc_40B6F:
pop rbx
pop r14
pop rbp
retn
|
void composition_solid_source_in(long long a1, int a2, unsigned int a3, int a4)
{
int v4; // ecx
int v5; // edx
long long i; // r8
unsigned int v7; // r8d
int v8; // r9d
unsigned int v9; // ecx
long long v10; // rdx
long long j; // rsi
if ( a4 == 255 )
{
if ( a2 > 0 )
{
v4 = a3 & 0xFF00FF;
v5 = (a3 >> 8) & 0xFF00FF;
for ( i = 0LL; i != a2; ++i )
*(_DWORD *)(a1 + 4 * i) = (((((unsigned int)(v4 * HIBYTE(*(_DWORD *)(a1 + 4 * i))) >> 8) & 0xFF00FF)
+ v4 * HIBYTE(*(_DWORD *)(a1 + 4 * i))
+ 8388736) >> 8) & 0xFF00FF | ((((unsigned int)(v5 * HIBYTE(*(_DWORD *)(a1 + 4 * i))) >> 8) & 0xFF00FF)
+ v5 * HIBYTE(*(_DWORD *)(a1 + 4 * i))
+ 8388736) & 0xFF00FF00;
}
}
else if ( a2 > 0 )
{
v7 = (((((a4 * (a3 & 0xFF00FF)) >> 8) & 0xFF00FF) + a4 * (a3 & 0xFF00FF) + 8388736) >> 8) & 0xFF00FF;
v8 = 255 - a4;
v9 = ((a4 * ((a3 >> 8) & 0xFF00FF) + (((a4 * ((a3 >> 8) & 0xFF00FF)) >> 8) & 0xFF00FF) + 8388736) >> 8) & 0xFF00FF;
v10 = (unsigned int)a2;
for ( j = 0LL; j != v10; ++j )
*(_DWORD *)(a1 + 4 * j) = (((((v7 * HIBYTE(*(_DWORD *)(a1 + 4 * j)) + v8 * (*(_DWORD *)(a1 + 4 * j) & 0xFF00FF)) >> 8) & 0xFF00FF)
+ v7 * HIBYTE(*(_DWORD *)(a1 + 4 * j))
+ v8 * (*(_DWORD *)(a1 + 4 * j) & 0xFF00FF)
+ 8388736) >> 8) & 0xFF00FF | ((((v9 * HIBYTE(*(_DWORD *)(a1 + 4 * j))
+ v8 * ((*(_DWORD *)(a1 + 4 * j) >> 8) & 0xFF00FF)) >> 8) & 0xFF00FF)
+ v9 * HIBYTE(*(_DWORD *)(a1 + 4 * j))
+ v8 * ((*(_DWORD *)(a1 + 4 * j) >> 8) & 0xFF00FF)
+ 8388736) & 0xFF00FF00;
}
}
|
composition_solid_source_in:
PUSH RBP
PUSH R14
PUSH RBX
CMP ECX,0xff
JNZ 0x00140aa7
TEST ESI,ESI
JLE 0x00140b6f
MOV EAX,0xff00ff
MOV ECX,EDX
AND ECX,EAX
SHR EDX,0x8
AND EDX,EAX
MOV ESI,ESI
XOR R8D,R8D
MOV R9D,0x800080
LAB_00140a56:
MOV R10D,dword ptr [RDI + R8*0x4]
SHR R10D,0x18
MOV R11D,R10D
IMUL R11D,ECX
MOV EBX,R11D
SHR EBX,0x8
AND EBX,EAX
ADD R11D,R9D
ADD R11D,EBX
SHR R11D,0x8
AND R11D,EAX
IMUL R10D,EDX
MOV EBX,R10D
SHR EBX,0x8
AND EBX,EAX
ADD R10D,R9D
ADD R10D,EBX
AND R10D,0xff00ff00
OR R10D,R11D
MOV dword ptr [RDI + R8*0x4],R10D
INC R8
CMP RSI,R8
JNZ 0x00140a56
JMP 0x00140b6f
LAB_00140aa7:
TEST ESI,ESI
JLE 0x00140b6f
MOV EAX,0xff00ff
MOV R8D,EDX
AND R8D,EAX
IMUL R8D,ECX
MOV R9D,R8D
SHR R9D,0x8
AND R9D,EAX
ADD R8D,R9D
ADD R8D,0x800080
SHR R8D,0x8
AND R8D,EAX
MOV R9D,0xff
SUB R9D,ECX
SHR EDX,0x8
AND EDX,EAX
IMUL EDX,ECX
MOV ECX,EDX
SHR ECX,0x8
AND ECX,EAX
ADD ECX,EDX
ADD ECX,0x800080
SHR ECX,0x8
AND ECX,EAX
MOV EDX,ESI
XOR ESI,ESI
MOV R10D,0x800080
LAB_00140b08:
MOV R11D,dword ptr [RDI + RSI*0x4]
MOV EBP,R11D
SHR EBP,0x18
MOV R14D,EBP
IMUL R14D,R8D
MOV EBX,R11D
AND EBX,EAX
IMUL EBX,R9D
ADD EBX,R14D
MOV R14D,EBX
SHR R14D,0x8
AND R14D,EAX
ADD EBX,R10D
ADD EBX,R14D
SHR EBX,0x8
AND EBX,EAX
IMUL EBP,ECX
SHR R11D,0x8
AND R11D,EAX
IMUL R11D,R9D
ADD R11D,EBP
MOV EBP,R11D
SHR EBP,0x8
AND EBP,EAX
ADD R11D,R10D
ADD R11D,EBP
AND R11D,0xff00ff00
OR R11D,EBX
MOV dword ptr [RDI + RSI*0x4],R11D
INC RSI
CMP RDX,RSI
JNZ 0x00140b08
LAB_00140b6f:
POP RBX
POP R14
POP RBP
RET
|
void composition_solid_source_in(long param_1,uint param_2,uint param_3,int param_4)
{
uint uVar1;
ulong uVar2;
uint uVar3;
uint uVar4;
uint uVar5;
if (param_4 == 0xff) {
if (0 < (int)param_2) {
uVar2 = 0;
do {
uVar3 = *(uint *)(param_1 + uVar2 * 4) >> 0x18;
uVar4 = uVar3 * (param_3 & 0xff00ff);
uVar3 = uVar3 * (param_3 >> 8 & 0xff00ff);
*(uint *)(param_1 + uVar2 * 4) =
uVar3 + 0x800080 + (uVar3 >> 8 & 0xff00ff) & 0xff00ff00 |
uVar4 + 0x800080 + (uVar4 >> 8 & 0xff00ff) >> 8 & 0xff00ff;
uVar2 = uVar2 + 1;
} while (param_2 != uVar2);
}
}
else if (0 < (int)param_2) {
uVar4 = (param_3 & 0xff00ff) * param_4;
uVar3 = (param_3 >> 8 & 0xff00ff) * param_4;
uVar2 = 0;
do {
uVar5 = *(uint *)(param_1 + uVar2 * 4);
uVar1 = (uVar5 & 0xff00ff) * (0xff - param_4) +
(uVar5 >> 0x18) * (uVar4 + (uVar4 >> 8 & 0xff00ff) + 0x800080 >> 8 & 0xff00ff);
uVar5 = (uVar5 >> 8 & 0xff00ff) * (0xff - param_4) +
(uVar5 >> 0x18) * ((uVar3 >> 8 & 0xff00ff) + uVar3 + 0x800080 >> 8 & 0xff00ff);
*(uint *)(param_1 + uVar2 * 4) =
uVar5 + 0x800080 + (uVar5 >> 8 & 0xff00ff) & 0xff00ff00 |
uVar1 + 0x800080 + (uVar1 >> 8 & 0xff00ff) >> 8 & 0xff00ff;
uVar2 = uVar2 + 1;
} while (param_2 != uVar2);
}
return;
}
|
|
60,767
|
inline_mysql_rwlock_unlock
|
eloqsql/include/mysql/psi/mysql_thread.h
|
static inline int inline_mysql_rwlock_unlock(
mysql_rwlock_t *that)
{
int result;
#ifdef HAVE_PSI_RWLOCK_INTERFACE
if (psi_likely(that->m_psi != NULL))
PSI_RWLOCK_CALL(unlock_rwlock)(that->m_psi);
#endif
result= rw_unlock(&that->m_rwlock);
return result;
}
|
O0
|
c
|
inline_mysql_rwlock_unlock:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x90(%rax)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0xb0b71
leaq 0x20f55e(%rip), %rax # 0x2c00b8
movq (%rax), %rax
movq 0x168(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x90(%rcx), %rdi
callq *%rax
movq -0x8(%rbp), %rdi
callq 0xfa150
movl %eax, -0xc(%rbp)
movl -0xc(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
inline_mysql_rwlock_unlock_6:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
cmp qword ptr [rax+90h], 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_B0B71
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+168h]
mov rcx, [rbp+var_8]
mov rdi, [rcx+90h]
call rax
loc_B0B71:
mov rdi, [rbp+var_8]
call my_rw_unlock
mov [rbp+var_C], eax
mov eax, [rbp+var_C]
add rsp, 10h
pop rbp
retn
|
long long inline_mysql_rwlock_unlock_6(long long a1)
{
if ( *(_QWORD *)(a1 + 144) )
((void ( *)(_QWORD))PSI_server[45])(*(_QWORD *)(a1 + 144));
return (unsigned int)my_rw_unlock(a1);
}
|
inline_mysql_rwlock_unlock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x90],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 0x001b0b71
LEA RAX,[0x3c00b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x168]
MOV RCX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RCX + 0x90]
CALL RAX
LAB_001b0b71:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001fa150
MOV dword ptr [RBP + -0xc],EAX
MOV EAX,dword ptr [RBP + -0xc]
ADD RSP,0x10
POP RBP
RET
|
int4 inline_mysql_rwlock_unlock(long param_1)
{
int4 uVar1;
if (*(long *)(param_1 + 0x90) != 0) {
(**(code **)(PSI_server + 0x168))(*(int8 *)(param_1 + 0x90));
}
uVar1 = my_rw_unlock(param_1);
return uVar1;
}
|
|
60,768
|
mysql_stmt_next_result_start_internal
|
eloqsql/libmariadb/libmariadb/mariadb_async.c
|
static void
mysql_stmt_next_result_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_stmt_next_result,
(parms->stmt),
parms->stmt->mysql,
int,
r_int)
}
|
O3
|
c
|
mysql_stmt_next_result_start_internal:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq (%rdi), %rdi
movq 0x38(%rdi), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rbx
callq 0x26b38
movl %eax, 0x8(%rbx)
movl $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
|
mysql_stmt_next_result_start_internal:
push rbp
mov rbp, rsp
push rbx
push rax
mov rdi, [rdi]
mov rax, [rdi+38h]
mov rax, [rax+480h]
mov rbx, [rax+28h]
call mysql_stmt_next_result
mov [rbx+8], eax
mov dword ptr [rbx], 0
add rsp, 8
pop rbx
pop rbp
retn
|
long long mysql_stmt_next_result_start_internal(long long *a1)
{
long long v1; // rdi
_DWORD *v2; // rbx
long long result; // rax
v1 = *a1;
v2 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)(v1 + 56) + 1152LL) + 40LL);
result = mysql_stmt_next_result(v1);
v2[2] = result;
*v2 = 0;
return result;
}
|
mysql_stmt_next_result_start_internal:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RDI,qword ptr [RDI]
MOV RAX,qword ptr [RDI + 0x38]
MOV RAX,qword ptr [RAX + 0x480]
MOV RBX,qword ptr [RAX + 0x28]
CALL 0x00126b38
MOV dword ptr [RBX + 0x8],EAX
MOV dword ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void mysql_stmt_next_result_start_internal(long *param_1)
{
int4 *puVar1;
int4 uVar2;
puVar1 = *(int4 **)(*(long *)(*(long *)(*param_1 + 0x38) + 0x480) + 0x28);
uVar2 = mysql_stmt_next_result();
puVar1[2] = uVar2;
*puVar1 = 0;
return;
}
|
|
60,769
|
my_strnxfrm_czech
|
eloqsql/strings/ctype-czech.c
|
static size_t
my_strnxfrm_czech(CHARSET_INFO *cs __attribute__((unused)),
uchar *dest, size_t len,
uint nweights_arg __attribute__((unused)),
const uchar *src, size_t srclen, uint flags)
{
int value;
const uchar *p, * store;
int pass = 0;
size_t totlen = 0;
p = src; store = src;
if (!(flags & 0x0F)) /* All levels by default */
flags|= 0x0F;
do
{
int add= (1 << pass) & flags; /* If this level is needed */
NEXT_CMP_VALUE(src, p, store, pass, value, (int)srclen);
if (add)
ADD_TO_RESULT(dest, len, totlen, value);
}
while (value);
if ((flags & MY_STRXFRM_PAD_TO_MAXLEN) && len > totlen)
{
memset(dest + totlen, ' ', len - totlen);
totlen= len;
}
return totlen;
}
|
O3
|
c
|
my_strnxfrm_czech:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %r15
movq %rdx, %rbx
movq %rsi, -0x48(%rbp)
movl 0x10(%rbp), %eax
movl %eax, %r11d
orl $0xf, %r11d
testb $0xf, %al
cmovnel %eax, %r11d
movslq %r9d, %rdx
movl $0x1, %eax
subq %r8, %rax
movq %rax, -0x50(%rbp)
xorl %ecx, %ecx
leaq 0x2d04c8(%rip), %r13 # 0x3852a0
movq %r8, %r14
xorl %r12d, %r12d
movq %rbx, -0x38(%rbp)
movl %r11d, -0x2c(%rbp)
movl $0x1, %esi
shll %cl, %esi
movq %r8, %rax
subq %r15, %rax
cmpq %rdx, %rax
jge 0xb4e77
movslq %ecx, %rax
movq %rax, -0x58(%rbp)
movq (%r13,%rax,8), %r9
movzbl (%r8), %eax
movzbl (%r9,%rax), %eax
testl %eax, %eax
je 0xb4e46
cmpl $0x2, %eax
jne 0xb4eab
incq %r8
movq %r8, %rax
subq %r15, %rax
movq %r8, %r10
cmpq %rdx, %rax
jge 0xb4e54
movzbl (%r10), %edi
cmpb $0x2, (%r9,%rdi)
jne 0xb4e54
incq %r10
incq %rax
movq %r10, %rdi
cmpq %rdx, %rax
jl 0xb4e2b
jmp 0xb4e57
incq %r8
movq %r8, %rax
subq %r15, %rax
movq %r8, %r10
jmp 0xb4e70
movq %r8, %rdi
cmpl $0x3, %ecx
cmovgeq %rdi, %r10
movq %r10, %rax
subq %r15, %rax
cmpq %rdx, %rax
jl 0xb4f2c
movq %r10, %r8
cmpq %rdx, %rax
jl 0xb4e04
jmp 0xb4e7a
movq %r8, %r10
cmpl $0x3, %ecx
jne 0xb4e92
xorl %r9d, %r9d
movl $0x3, %ecx
movq %r14, %rax
movq %r10, %r8
jmp 0xb4f84
testl %ecx, %ecx
movq %r15, %r8
cmoveq %r14, %r8
incl %ecx
movl $0x1, %r9d
movq %r14, %rax
jmp 0xb4f84
cmpl $0xff, %eax
jne 0xb4f7a
movq %r12, -0x40(%rbp)
movq %r8, %r9
subq %r15, %r9
movq -0x50(%rbp), %rax
addq %r8, %rax
movq %rax, -0x60(%rbp)
xorl %ebx, %ebx
movq %rbx, %r11
shlq $0x4, %r11
leaq 0x2d03e5(%rip), %rax # 0x3852c0
movq (%r11,%rax), %r13
movb (%r13), %al
testb %al, %al
je 0xb4f18
cmpq %rdx, %r9
jge 0xb4f18
incq %r13
movq -0x60(%rbp), %r10
movq %r8, %r12
cmpb %al, (%r12)
jne 0xb4f1f
incq %r12
movb (%r13), %al
testb %al, %al
je 0xb4f1b
incq %r13
leaq 0x1(%r10), %rdi
cmpq %rdx, %r10
movq %rdi, %r10
jl 0xb4ef6
jmp 0xb4f1b
movq %r8, %r12
testb %al, %al
je 0xb4f4c
incq %rbx
cmpq $0x50, %rbx
jne 0xb4ecd
movb $-0x1, %al
jmp 0xb4f67
movl $0x2, %r9d
cmpl $0x1, %ecx
jg 0xb4e87
movl $0x1, %edi
subl %ecx, %edi
movq %r10, %rax
movl %edi, %ecx
movq %r14, %r8
jmp 0xb4f84
leaq 0x2d036d(%rip), %rax # 0x3852c0
addq %rax, %r11
movq 0x8(%r11), %rax
movq -0x58(%rbp), %rdi
movb (%rax,%rdi), %al
decq %r12
movq %r12, %r8
movq -0x38(%rbp), %rbx
movl -0x2c(%rbp), %r11d
movq -0x40(%rbp), %r12
leaq 0x2d0326(%rip), %r13 # 0x3852a0
movzbl %al, %r9d
incq %r8
movq %r14, %rax
testl %r11d, %esi
setne %r10b
cmpq %rbx, %r12
setb %dil
andb %r10b, %dil
cmpb $0x1, %dil
jne 0xb4fa6
movq -0x48(%rbp), %rsi
movb %r9b, (%rsi,%r12)
incq %r12
movq %rax, %r14
testl %r9d, %r9d
jne 0xb4de6
testb %r11b, %r11b
sets %al
movq %rbx, %rdx
subq %r12, %rdx
seta %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xb4fdb
movq -0x48(%rbp), %rdi
addq %r12, %rdi
movl $0x20, %esi
callq 0x2a2c0
jmp 0xb4fde
movq %r12, %rbx
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
my_strnxfrm_czech:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r15, r8
mov rbx, rdx
mov [rbp+var_48], rsi
mov eax, [rbp+arg_0]
mov r11d, eax
or r11d, 0Fh
test al, 0Fh
cmovnz r11d, eax
movsxd rdx, r9d
mov eax, 1
sub rax, r8
mov [rbp+var_50], rax
xor ecx, ecx
lea r13, CZ_SORT_TABLE
mov r14, r8
xor r12d, r12d
mov [rbp+var_38], rbx
mov [rbp+var_2C], r11d
loc_B4DE6:
mov esi, 1
shl esi, cl
mov rax, r8
sub rax, r15
cmp rax, rdx
jge short loc_B4E77
movsxd rax, ecx
mov [rbp+var_58], rax
mov r9, [r13+rax*8+0]
loc_B4E04:
movzx eax, byte ptr [r8]
movzx eax, byte ptr [r9+rax]
test eax, eax
jz short loc_B4E46
cmp eax, 2
jnz loc_B4EAB
inc r8
mov rax, r8
sub rax, r15
mov r10, r8
cmp rax, rdx
jge short loc_B4E54
loc_B4E2B:
movzx edi, byte ptr [r10]
cmp byte ptr [r9+rdi], 2
jnz short loc_B4E54
inc r10
inc rax
mov rdi, r10
cmp rax, rdx
jl short loc_B4E2B
jmp short loc_B4E57
loc_B4E46:
inc r8
mov rax, r8
sub rax, r15
mov r10, r8
jmp short loc_B4E70
loc_B4E54:
mov rdi, r8
loc_B4E57:
cmp ecx, 3
cmovge r10, rdi
mov rax, r10
sub rax, r15
cmp rax, rdx
jl loc_B4F2C
mov r8, r10
loc_B4E70:
cmp rax, rdx
jl short loc_B4E04
jmp short loc_B4E7A
loc_B4E77:
mov r10, r8
loc_B4E7A:
cmp ecx, 3
jnz short loc_B4E92
xor r9d, r9d
mov ecx, 3
loc_B4E87:
mov rax, r14
mov r8, r10
jmp loc_B4F84
loc_B4E92:
test ecx, ecx
mov r8, r15
cmovz r8, r14
inc ecx
mov r9d, 1
mov rax, r14
jmp loc_B4F84
loc_B4EAB:
cmp eax, 0FFh
jnz loc_B4F7A
mov [rbp+var_40], r12
mov r9, r8
sub r9, r15
mov rax, [rbp+var_50]
add rax, r8
mov [rbp+var_60], rax
xor ebx, ebx
loc_B4ECD:
mov r11, rbx
shl r11, 4
lea rax, doubles
mov r13, [r11+rax]
mov al, [r13+0]
test al, al
jz short loc_B4F18
cmp r9, rdx
jge short loc_B4F18
inc r13
mov r10, [rbp+var_60]
mov r12, r8
loc_B4EF6:
cmp [r12], al
jnz short loc_B4F1F
inc r12
mov al, [r13+0]
test al, al
jz short loc_B4F1B
inc r13
lea rdi, [r10+1]
cmp r10, rdx
mov r10, rdi
jl short loc_B4EF6
jmp short loc_B4F1B
loc_B4F18:
mov r12, r8
loc_B4F1B:
test al, al
jz short loc_B4F4C
loc_B4F1F:
inc rbx
cmp rbx, 50h ; 'P'
jnz short loc_B4ECD
mov al, 0FFh
jmp short loc_B4F67
loc_B4F2C:
mov r9d, 2
cmp ecx, 1
jg loc_B4E87
mov edi, 1
sub edi, ecx
mov rax, r10
mov ecx, edi
mov r8, r14
jmp short loc_B4F84
loc_B4F4C:
lea rax, doubles
add r11, rax
mov rax, [r11+8]
mov rdi, [rbp+var_58]
mov al, [rax+rdi]
dec r12
mov r8, r12
loc_B4F67:
mov rbx, [rbp+var_38]
mov r11d, [rbp+var_2C]
mov r12, [rbp+var_40]
lea r13, CZ_SORT_TABLE
loc_B4F7A:
movzx r9d, al
inc r8
mov rax, r14
loc_B4F84:
test esi, r11d
setnz r10b
cmp r12, rbx
setb dil
and dil, r10b
cmp dil, 1
jnz short loc_B4FA6
mov rsi, [rbp+var_48]
mov [rsi+r12], r9b
inc r12
loc_B4FA6:
mov r14, rax
test r9d, r9d
jnz loc_B4DE6
test r11b, r11b
sets al
mov rdx, rbx
sub rdx, r12
setnbe cl
and cl, al
cmp cl, 1
jnz short loc_B4FDB
mov rdi, [rbp+var_48]
add rdi, r12
mov esi, 20h ; ' '
call _memset
jmp short loc_B4FDE
loc_B4FDB:
mov rbx, r12
loc_B4FDE:
mov rax, rbx
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
unsigned long long my_strnxfrm_czech(
long long a1,
long long a2,
unsigned long long a3,
long long a4,
unsigned __int8 *a5,
int a6,
int a7)
{
unsigned __int8 *v7; // r15
int v9; // r11d
long long v10; // rdx
int v11; // ecx
unsigned __int8 *v12; // r14
unsigned long long v13; // r12
int v14; // esi
long long v15; // r9
int v16; // eax
unsigned __int8 *v17; // r8
long long v18; // rax
unsigned __int8 *v19; // r10
unsigned __int8 *v20; // rdi
unsigned __int8 *v21; // rax
int v22; // r9d
unsigned __int8 *v23; // rax
long long v24; // rbx
char *v25; // r13
char v26; // al
char *v27; // r13
unsigned __int8 *v28; // r10
_BYTE *v29; // r12
long long v32; // [rsp+10h] [rbp-50h]
unsigned long long v34; // [rsp+20h] [rbp-40h]
unsigned long long v35; // [rsp+28h] [rbp-38h]
int v36; // [rsp+34h] [rbp-2Ch]
v7 = a5;
v9 = a7 | 0xF;
if ( (a7 & 0xF) != 0 )
v9 = a7;
v10 = a6;
v32 = 1LL - (_QWORD)a5;
v11 = 0;
v12 = a5;
v13 = 0LL;
v35 = a3;
v36 = v9;
do
{
v14 = 1 << v11;
if ( a5 - v7 >= v10 )
{
v19 = a5;
LABEL_21:
if ( v11 != 3 )
{
a5 = v7;
if ( !v11 )
a5 = v12;
++v11;
v22 = 1;
v23 = v12;
goto LABEL_45;
}
v22 = 0;
v11 = 3;
LABEL_23:
v23 = v12;
a5 = v19;
goto LABEL_45;
}
v15 = (long long)*(&CZ_SORT_TABLE + v11);
while ( 1 )
{
v16 = *(unsigned __int8 *)(v15 + *a5);
if ( !*(_BYTE *)(v15 + *a5) )
{
v21 = (unsigned __int8 *)(++a5 - v7);
v19 = a5;
goto LABEL_18;
}
if ( v16 != 2 )
break;
v17 = a5 + 1;
v18 = v17 - v7;
v19 = v17;
if ( v17 - v7 < v10 )
{
while ( *(_BYTE *)(v15 + *v19) == 2 )
{
++v19;
++v18;
v20 = v19;
if ( v18 >= v10 )
goto LABEL_14;
}
}
v20 = v17;
LABEL_14:
if ( v11 >= 3 )
v19 = v20;
v21 = (unsigned __int8 *)(v19 - v7);
if ( v19 - v7 < v10 )
{
v22 = 2;
if ( v11 <= 1 )
{
v23 = v19;
v11 = 1 - v11;
a5 = v12;
goto LABEL_45;
}
goto LABEL_23;
}
a5 = v19;
LABEL_18:
if ( (long long)v21 >= v10 )
goto LABEL_21;
}
if ( v16 != 255 )
goto LABEL_44;
v34 = v13;
v24 = 0LL;
while ( 2 )
{
v25 = (char *)*(&doubles + 2 * v24);
v26 = *v25;
if ( *v25 && a5 - v7 < v10 )
{
v27 = v25 + 1;
v28 = &a5[v32];
v29 = a5;
while ( *v29 == v26 )
{
++v29;
v26 = *v27;
if ( *v27 )
{
++v27;
if ( (long long)v28++ < v10 )
continue;
}
goto LABEL_37;
}
goto LABEL_38;
}
v29 = a5;
LABEL_37:
if ( v26 )
{
LABEL_38:
if ( ++v24 == 80 )
{
LOBYTE(v16) = -1;
goto LABEL_43;
}
continue;
}
break;
}
LOBYTE(v16) = *((_BYTE *)*(&doubles + 2 * v24 + 1) + v11);
a5 = v29 - 1;
LABEL_43:
a3 = v35;
v9 = v36;
v13 = v34;
LABEL_44:
v22 = (unsigned __int8)v16;
++a5;
v23 = v12;
LABEL_45:
if ( (v9 & v14) != 0 && v13 < a3 )
*(_BYTE *)(a2 + v13++) = v22;
v12 = v23;
}
while ( v22 );
if ( (v9 & 0x80u) == 0 || a3 <= v13 )
return v13;
memset(v13 + a2, 32LL, a3 - v13);
return a3;
}
|
my_strnxfrm_czech:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R15,R8
MOV RBX,RDX
MOV qword ptr [RBP + -0x48],RSI
MOV EAX,dword ptr [RBP + 0x10]
MOV R11D,EAX
OR R11D,0xf
TEST AL,0xf
CMOVNZ R11D,EAX
MOVSXD RDX,R9D
MOV EAX,0x1
SUB RAX,R8
MOV qword ptr [RBP + -0x50],RAX
XOR ECX,ECX
LEA R13,[0x4852a0]
MOV R14,R8
XOR R12D,R12D
MOV qword ptr [RBP + -0x38],RBX
MOV dword ptr [RBP + -0x2c],R11D
LAB_001b4de6:
MOV ESI,0x1
SHL ESI,CL
MOV RAX,R8
SUB RAX,R15
CMP RAX,RDX
JGE 0x001b4e77
MOVSXD RAX,ECX
MOV qword ptr [RBP + -0x58],RAX
MOV R9,qword ptr [R13 + RAX*0x8]
LAB_001b4e04:
MOVZX EAX,byte ptr [R8]
MOVZX EAX,byte ptr [R9 + RAX*0x1]
TEST EAX,EAX
JZ 0x001b4e46
CMP EAX,0x2
JNZ 0x001b4eab
INC R8
MOV RAX,R8
SUB RAX,R15
MOV R10,R8
CMP RAX,RDX
JGE 0x001b4e54
LAB_001b4e2b:
MOVZX EDI,byte ptr [R10]
CMP byte ptr [R9 + RDI*0x1],0x2
JNZ 0x001b4e54
INC R10
INC RAX
MOV RDI,R10
CMP RAX,RDX
JL 0x001b4e2b
JMP 0x001b4e57
LAB_001b4e46:
INC R8
MOV RAX,R8
SUB RAX,R15
MOV R10,R8
JMP 0x001b4e70
LAB_001b4e54:
MOV RDI,R8
LAB_001b4e57:
CMP ECX,0x3
CMOVGE R10,RDI
MOV RAX,R10
SUB RAX,R15
CMP RAX,RDX
JL 0x001b4f2c
MOV R8,R10
LAB_001b4e70:
CMP RAX,RDX
JL 0x001b4e04
JMP 0x001b4e7a
LAB_001b4e77:
MOV R10,R8
LAB_001b4e7a:
CMP ECX,0x3
JNZ 0x001b4e92
XOR R9D,R9D
MOV ECX,0x3
LAB_001b4e87:
MOV RAX,R14
MOV R8,R10
JMP 0x001b4f84
LAB_001b4e92:
TEST ECX,ECX
MOV R8,R15
CMOVZ R8,R14
INC ECX
MOV R9D,0x1
MOV RAX,R14
JMP 0x001b4f84
LAB_001b4eab:
CMP EAX,0xff
JNZ 0x001b4f7a
MOV qword ptr [RBP + -0x40],R12
MOV R9,R8
SUB R9,R15
MOV RAX,qword ptr [RBP + -0x50]
ADD RAX,R8
MOV qword ptr [RBP + -0x60],RAX
XOR EBX,EBX
LAB_001b4ecd:
MOV R11,RBX
SHL R11,0x4
LEA RAX,[0x4852c0]
MOV R13,qword ptr [R11 + RAX*0x1]
MOV AL,byte ptr [R13]
TEST AL,AL
JZ 0x001b4f18
CMP R9,RDX
JGE 0x001b4f18
INC R13
MOV R10,qword ptr [RBP + -0x60]
MOV R12,R8
LAB_001b4ef6:
CMP byte ptr [R12],AL
JNZ 0x001b4f1f
INC R12
MOV AL,byte ptr [R13]
TEST AL,AL
JZ 0x001b4f1b
INC R13
LEA RDI,[R10 + 0x1]
CMP R10,RDX
MOV R10,RDI
JL 0x001b4ef6
JMP 0x001b4f1b
LAB_001b4f18:
MOV R12,R8
LAB_001b4f1b:
TEST AL,AL
JZ 0x001b4f4c
LAB_001b4f1f:
INC RBX
CMP RBX,0x50
JNZ 0x001b4ecd
MOV AL,0xff
JMP 0x001b4f67
LAB_001b4f2c:
MOV R9D,0x2
CMP ECX,0x1
JG 0x001b4e87
MOV EDI,0x1
SUB EDI,ECX
MOV RAX,R10
MOV ECX,EDI
MOV R8,R14
JMP 0x001b4f84
LAB_001b4f4c:
LEA RAX,[0x4852c0]
ADD R11,RAX
MOV RAX,qword ptr [R11 + 0x8]
MOV RDI,qword ptr [RBP + -0x58]
MOV AL,byte ptr [RAX + RDI*0x1]
DEC R12
MOV R8,R12
LAB_001b4f67:
MOV RBX,qword ptr [RBP + -0x38]
MOV R11D,dword ptr [RBP + -0x2c]
MOV R12,qword ptr [RBP + -0x40]
LEA R13,[0x4852a0]
LAB_001b4f7a:
MOVZX R9D,AL
INC R8
MOV RAX,R14
LAB_001b4f84:
TEST ESI,R11D
SETNZ R10B
CMP R12,RBX
SETC DIL
AND DIL,R10B
CMP DIL,0x1
JNZ 0x001b4fa6
MOV RSI,qword ptr [RBP + -0x48]
MOV byte ptr [RSI + R12*0x1],R9B
INC R12
LAB_001b4fa6:
MOV R14,RAX
TEST R9D,R9D
JNZ 0x001b4de6
TEST R11B,R11B
SETS AL
MOV RDX,RBX
SUB RDX,R12
SETA CL
AND CL,AL
CMP CL,0x1
JNZ 0x001b4fdb
MOV RDI,qword ptr [RBP + -0x48]
ADD RDI,R12
MOV ESI,0x20
CALL 0x0012a2c0
JMP 0x001b4fde
LAB_001b4fdb:
MOV RBX,R12
LAB_001b4fde:
MOV RAX,RBX
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong my_strnxfrm_czech(int8 param_1,long param_2,ulong param_3,int8 param_4,
byte *param_5,int param_6,uint param_7)
{
uint uVar1;
byte *pbVar2;
byte *pbVar3;
byte bVar4;
char cVar5;
long lVar6;
byte *pbVar7;
byte bVar8;
int iVar9;
long lVar10;
byte *pbVar11;
byte *pbVar12;
byte *pbVar13;
ulong uVar14;
byte *pbVar15;
uVar1 = param_7 | 0xf;
if ((param_7 & 0xf) != 0) {
uVar1 = param_7;
}
lVar10 = (long)param_6;
iVar9 = 0;
uVar14 = 0;
pbVar13 = param_5;
pbVar15 = param_5;
LAB_001b4de6:
bVar8 = (byte)iVar9;
pbVar7 = pbVar15;
if ((long)pbVar13 - (long)param_5 < lVar10) {
do {
cVar5 = (&CZ_SORT_TABLE)[iVar9][*pbVar13];
if (cVar5 == '\0') {
pbVar13 = pbVar13 + 1;
lVar6 = (long)pbVar13 - (long)param_5;
}
else {
if (cVar5 != '\x02') {
if (cVar5 != -1) goto LAB_001b4f7a;
lVar6 = 0;
goto LAB_001b4ecd;
}
pbVar12 = pbVar13 + 1;
lVar6 = (long)pbVar12 - (long)param_5;
pbVar13 = pbVar12;
while ((pbVar11 = pbVar13, lVar6 < lVar10 &&
(pbVar11 = pbVar12, (&CZ_SORT_TABLE)[iVar9][*pbVar13] == '\x02'))) {
pbVar13 = pbVar13 + 1;
lVar6 = lVar6 + 1;
}
if (2 < iVar9) {
pbVar13 = pbVar11;
}
lVar6 = (long)pbVar13 - (long)param_5;
if (lVar6 < lVar10) {
cVar5 = '\x02';
if (iVar9 < 2) {
iVar9 = 1 - iVar9;
pbVar7 = pbVar13;
pbVar13 = pbVar15;
}
goto LAB_001b4f84;
}
}
} while (lVar6 < lVar10);
}
if (iVar9 == 3) {
cVar5 = '\0';
iVar9 = 3;
}
else {
pbVar13 = param_5;
if (iVar9 == 0) {
pbVar13 = pbVar15;
}
iVar9 = iVar9 + 1;
cVar5 = '\x01';
}
goto LAB_001b4f84;
LAB_001b4ecd:
do {
pbVar15 = (&doubles)[lVar6 * 2];
bVar4 = *pbVar15;
pbVar12 = pbVar13;
pbVar3 = pbVar13 + (1 - (long)param_5);
pbVar11 = pbVar13 + -(long)param_5;
if (bVar4 != 0) {
while (pbVar2 = pbVar3, (long)pbVar11 < lVar10) {
pbVar15 = pbVar15 + 1;
if (*pbVar12 != bVar4) goto LAB_001b4f1f;
pbVar12 = pbVar12 + 1;
bVar4 = *pbVar15;
if (bVar4 == 0) break;
pbVar3 = pbVar2 + 1;
pbVar11 = pbVar2;
}
}
if (bVar4 == 0) {
cVar5 = (&PTR_DAT_004852c8)[lVar6 * 2][iVar9];
pbVar13 = pbVar12 + -1;
goto LAB_001b4f7a;
}
LAB_001b4f1f:
lVar6 = lVar6 + 1;
} while (lVar6 != 0x50);
cVar5 = -1;
LAB_001b4f7a:
pbVar13 = pbVar13 + 1;
LAB_001b4f84:
if (uVar14 < param_3 && (1 << (bVar8 & 0x1f) & uVar1) != 0) {
*(char *)(param_2 + uVar14) = cVar5;
uVar14 = uVar14 + 1;
}
pbVar15 = pbVar7;
if (cVar5 == '\0') {
if ((uVar14 <= param_3 && param_3 - uVar14 != 0) && (char)uVar1 < '\0') {
memset((void *)(param_2 + uVar14),0x20,param_3 - uVar14);
uVar14 = param_3;
}
return uVar14;
}
goto LAB_001b4de6;
}
|
|
60,770
|
js_agent_sleep
|
bluesky950520[P]quickjs/run-test262.c
|
static JSValue js_agent_sleep(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
uint32_t duration;
if (JS_ToUint32(ctx, &duration, argv[0]))
return JS_EXCEPTION;
#ifdef _WIN32
Sleep(duration);
#else
usleep(duration * 1000);
#endif
return JS_UNDEFINED;
}
|
O2
|
c
|
js_agent_sleep:
pushq %rax
movq (%r8), %rdx
movq 0x8(%r8), %rcx
leaq 0x4(%rsp), %rsi
callq 0x25187
testl %eax, %eax
je 0x13008
pushq $0x6
jmp 0x13017
imull $0x3e8, 0x4(%rsp), %edi # imm = 0x3E8
callq 0xea70
pushq $0x3
popq %rdx
xorl %eax, %eax
popq %rcx
retq
|
js_agent_sleep:
push rax
mov rdx, [r8]
mov rcx, [r8+8]
lea rsi, [rsp+8+var_4]
call JS_ToInt32
test eax, eax
jz short loc_13008
push 6
jmp short loc_13017
loc_13008:
imul edi, [rsp+8+var_4], 3E8h
call _usleep
push 3
loc_13017:
pop rdx
xor eax, eax
pop rcx
retn
|
long long js_agent_sleep(long long a1, long long a2, long long a3, long long a4, _QWORD *a5)
{
long long v5; // rax
int v7; // [rsp+0h] [rbp-4h] BYREF
v7 = HIDWORD(v5);
if ( !(unsigned int)JS_ToInt32(a1, &v7, *a5, a5[1]) )
usleep((unsigned int)(1000 * v7));
return 0LL;
}
|
js_agent_sleep:
PUSH RAX
MOV RDX,qword ptr [R8]
MOV RCX,qword ptr [R8 + 0x8]
LEA RSI,[RSP + 0x4]
CALL 0x00125187
TEST EAX,EAX
JZ 0x00113008
PUSH 0x6
JMP 0x00113017
LAB_00113008:
IMUL EDI,dword ptr [RSP + 0x4],0x3e8
CALL 0x0010ea70
PUSH 0x3
LAB_00113017:
POP RDX
XOR EAX,EAX
POP RCX
RET
|
int1 [16] js_agent_sleep(int8 param_1)
{
int1 auVar1 [16];
int iVar2;
int8 in_RAX;
int8 *in_R8;
ulong uStack_10;
int local_4;
local_4 = (int)((ulong)in_RAX >> 0x20);
iVar2 = JS_ToInt32(param_1,&local_4,*in_R8,in_R8[1]);
if (iVar2 == 0) {
usleep(local_4 * 1000);
uStack_10 = 3;
}
else {
uStack_10 = 6;
}
auVar1._8_8_ = 0;
auVar1._0_8_ = uStack_10;
return auVar1 << 0x40;
}
|
|
60,771
|
inline_mysql_rwlock_destroy
|
eloqsql/include/mysql/psi/mysql_thread.h
|
static inline int inline_mysql_rwlock_destroy(
mysql_rwlock_t *that)
{
#ifdef HAVE_PSI_RWLOCK_INTERFACE
if (psi_likely(that->m_psi != NULL))
{
PSI_RWLOCK_CALL(destroy_rwlock)(that->m_psi);
that->m_psi= NULL;
}
#endif
return rwlock_destroy(&that->m_rwlock);
}
|
O0
|
c
|
inline_mysql_rwlock_destroy:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x90(%rax)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0xfe8bd
leaq 0x1c181e(%rip), %rax # 0x2c00b8
movq (%rax), %rax
movq 0x58(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x90(%rcx), %rdi
callq *%rax
movq -0x8(%rbp), %rax
movq $0x0, 0x90(%rax)
movq -0x8(%rbp), %rdi
callq 0xf9f10
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
|
inline_mysql_rwlock_destroy_1:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
cmp qword ptr [rax+90h], 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_FE8BD
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+58h]
mov rcx, [rbp+var_8]
mov rdi, [rcx+90h]
call rax
mov rax, [rbp+var_8]
mov qword ptr [rax+90h], 0
loc_FE8BD:
mov rdi, [rbp+var_8]
call my_rw_destroy
add rsp, 10h
pop rbp
retn
|
long long inline_mysql_rwlock_destroy_1(long long a1)
{
if ( *(_QWORD *)(a1 + 144) )
{
((void ( *)(_QWORD))PSI_server[11])(*(_QWORD *)(a1 + 144));
*(_QWORD *)(a1 + 144) = 0LL;
}
return my_rw_destroy(a1);
}
|
inline_mysql_rwlock_destroy:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x90],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 0x001fe8bd
LEA RAX,[0x3c00b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x58]
MOV RCX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RCX + 0x90]
CALL RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x90],0x0
LAB_001fe8bd:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001f9f10
ADD RSP,0x10
POP RBP
RET
|
void inline_mysql_rwlock_destroy(long param_1)
{
if (*(long *)(param_1 + 0x90) != 0) {
(**(code **)(PSI_server + 0x58))(*(int8 *)(param_1 + 0x90));
*(int8 *)(param_1 + 0x90) = 0;
}
my_rw_destroy(param_1);
return;
}
|
|
60,772
|
AsyncCallbackProcessor<QueryCallback>::ProcessReadyCallbacks()
|
SylCore-WoTLK/src/common/Utilities/AsyncCallbackProcessor.h
|
void ProcessReadyCallbacks()
{
if (_callbacks.empty())
return;
std::vector<T> updateCallbacks{ std::move(_callbacks) };
updateCallbacks.erase(std::remove_if(updateCallbacks.begin(), updateCallbacks.end(), [](T& callback)
{
return callback.InvokeIfReady();
}), updateCallbacks.end());
_callbacks.insert(_callbacks.end(), std::make_move_iterator(updateCallbacks.begin()), std::make_move_iterator(updateCallbacks.end()));
}
|
O3
|
c
|
AsyncCallbackProcessor<QueryCallback>::ProcessReadyCallbacks():
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq (%rdi), %rdi
movq 0x8(%rbx), %r14
cmpq %r14, %rdi
je 0x46c0d
movq %rdi, (%rsp)
movq %r14, 0x8(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq %r14, %rsi
callq 0x49820
movq %rsp, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x49770
movq 0x8(%rbx), %rsi
movq (%rsp), %rdx
movq 0x8(%rsp), %rcx
movq %rbx, %rdi
callq 0x4996c
movq %rsp, %rdi
callq 0x47bf2
addq $0x18, %rsp
popq %rbx
popq %r14
retq
jmp 0x46c19
jmp 0x46c19
movq %rax, %rbx
movq %rsp, %rdi
callq 0x47bf2
movq %rbx, %rdi
callq 0x1bba0
|
_ZN22AsyncCallbackProcessorI13QueryCallbackE21ProcessReadyCallbacksEv:
push r14
push rbx
sub rsp, 18h
mov rbx, rdi
mov rdi, [rdi]
mov r14, [rbx+8]
cmp rdi, r14
jz short loc_46C0D
mov [rsp+28h+var_28], rdi
mov [rsp+28h+var_20], r14
mov rax, [rbx+10h]
mov [rsp+28h+var_18], rax
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
mov qword ptr [rbx+10h], 0
mov rsi, r14
call _ZSt11__remove_ifIN9__gnu_cxx17__normal_iteratorIP13QueryCallbackSt6vectorIS2_SaIS2_EEEENS0_5__ops10_Iter_predIZN22AsyncCallbackProcessorIS2_E21ProcessReadyCallbacksEvEUlRS2_E_EEET_SF_SF_T0_; std::__remove_if<__gnu_cxx::__normal_iterator<QueryCallback *,std::vector<QueryCallback>>,__gnu_cxx::__ops::_Iter_pred<AsyncCallbackProcessor<QueryCallback>::ProcessReadyCallbacks(void)::{lambda(QueryCallback&)#1}>>(__gnu_cxx::__normal_iterator<QueryCallback *,std::vector<QueryCallback>>,__gnu_cxx::__normal_iterator<QueryCallback *,std::vector<QueryCallback>>,__gnu_cxx::__ops::_Iter_pred<AsyncCallbackProcessor<QueryCallback>::ProcessReadyCallbacks(void)::{lambda(QueryCallback&)#1}>)
mov rdi, rsp
mov rsi, rax
mov rdx, r14
call _ZNSt6vectorI13QueryCallbackSaIS0_EE8_M_eraseEN9__gnu_cxx17__normal_iteratorIPS0_S2_EES6_; std::vector<QueryCallback>::_M_erase(__gnu_cxx::__normal_iterator<QueryCallback*,std::vector<QueryCallback>>,__gnu_cxx::__normal_iterator<QueryCallback*,std::vector<QueryCallback>>)
mov rsi, [rbx+8]
mov rdx, [rsp+28h+var_28]
mov rcx, [rsp+28h+var_20]
mov rdi, rbx
call _ZNSt6vectorI13QueryCallbackSaIS0_EE15_M_range_insertISt13move_iteratorIN9__gnu_cxx17__normal_iteratorIPS0_S2_EEEEEvS8_T_SA_St20forward_iterator_tag; std::vector<QueryCallback>::_M_range_insert<std::move_iterator<__gnu_cxx::__normal_iterator<QueryCallback*,std::vector<QueryCallback>>>>(__gnu_cxx::__normal_iterator<QueryCallback*,std::vector<QueryCallback>>,std::move_iterator<__gnu_cxx::__normal_iterator<QueryCallback*,std::vector<QueryCallback>>>,std::move_iterator<__gnu_cxx::__normal_iterator<QueryCallback*,std::vector<QueryCallback>>>,std::forward_iterator_tag)
mov rdi, rsp
call _ZNSt6vectorI13QueryCallbackSaIS0_EED2Ev; std::vector<QueryCallback>::~vector()
loc_46C0D:
add rsp, 18h
pop rbx
pop r14
retn
jmp short loc_46C19
jmp short $+2
loc_46C19:
mov rbx, rax
mov rdi, rsp
call _ZNSt6vectorI13QueryCallbackSaIS0_EED2Ev; std::vector<QueryCallback>::~vector()
mov rdi, rbx
call __Unwind_Resume
|
void AsyncCallbackProcessor<QueryCallback>::ProcessReadyCallbacks(long long *a1)
{
long long v2; // rdi
long long v3; // r14
long long v4; // rax
long long v5; // [rsp+0h] [rbp-28h] BYREF
long long v6; // [rsp+8h] [rbp-20h]
long long v7; // [rsp+10h] [rbp-18h]
v2 = *a1;
v3 = a1[1];
if ( v2 != v3 )
{
v5 = v2;
v6 = v3;
v7 = a1[2];
*(_OWORD *)a1 = 0LL;
a1[2] = 0LL;
v4 = std::__remove_if<__gnu_cxx::__normal_iterator<QueryCallback *,std::vector<QueryCallback>>,__gnu_cxx::__ops::_Iter_pred<AsyncCallbackProcessor<QueryCallback>::ProcessReadyCallbacks(void)::{lambda(QueryCallback&)#1}>>(
v2,
v3);
std::vector<QueryCallback>::_M_erase(&v5, v4, v3);
std::vector<QueryCallback>::_M_range_insert<std::move_iterator<__gnu_cxx::__normal_iterator<QueryCallback*,std::vector<QueryCallback>>>>(
a1,
a1[1],
v5,
v6);
std::vector<QueryCallback>::~vector(&v5);
}
}
|
ProcessReadyCallbacks:
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
MOV RDI,qword ptr [RDI]
MOV R14,qword ptr [RBX + 0x8]
CMP RDI,R14
JZ 0x00146c0d
MOV qword ptr [RSP],RDI
MOV qword ptr [RSP + 0x8],R14
MOV RAX,qword ptr [RBX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
MOV qword ptr [RBX + 0x10],0x0
LAB_00146bda:
MOV RSI,R14
CALL 0x00149820
LAB_00146be2:
MOV RDI,RSP
MOV RSI,RAX
MOV RDX,R14
CALL 0x00149770
MOV RSI,qword ptr [RBX + 0x8]
MOV RDX,qword ptr [RSP]
MOV RCX,qword ptr [RSP + 0x8]
LAB_00146bfd:
MOV RDI,RBX
CALL 0x0014996c
LAB_00146c05:
MOV RDI,RSP
CALL 0x00147bf2
LAB_00146c0d:
ADD RSP,0x18
POP RBX
POP R14
RET
|
/* AsyncCallbackProcessor<QueryCallback>::ProcessReadyCallbacks() */
void __thiscall
AsyncCallbackProcessor<QueryCallback>::ProcessReadyCallbacks
(AsyncCallbackProcessor<QueryCallback> *this)
{
long lVar1;
int8 uVar2;
long local_28;
long local_20;
int8 local_18;
local_28 = *(long *)this;
lVar1 = *(long *)(this + 8);
if (local_28 != lVar1) {
local_18 = *(int8 *)(this + 0x10);
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
local_20 = lVar1;
/* try { // try from 00146bda to 00146be1 has its CatchHandler @ 00146c19 */
uVar2 = std::
__remove_if<__gnu_cxx::__normal_iterator<QueryCallback*,std::vector<QueryCallback,std::allocator<QueryCallback>>>,__gnu_cxx::__ops::_Iter_pred<AsyncCallbackProcessor<QueryCallback>::ProcessReadyCallbacks()::_lambda(QueryCallback&)_1_>>
(local_28,lVar1);
/* try { // try from 00146be2 to 00146bef has its CatchHandler @ 00146c17 */
std::vector<QueryCallback,std::allocator<QueryCallback>>::_M_erase
((vector<QueryCallback,std::allocator<QueryCallback>> *)&local_28,uVar2,lVar1);
/* try { // try from 00146bfd to 00146c04 has its CatchHandler @ 00146c15 */
std::vector<QueryCallback,std::allocator<QueryCallback>>::
_M_range_insert<std::move_iterator<__gnu_cxx::__normal_iterator<QueryCallback*,std::vector<QueryCallback,std::allocator<QueryCallback>>>>>
(this,*(int8 *)(this + 8),local_28,local_20);
std::vector<QueryCallback,std::allocator<QueryCallback>>::~vector
((vector<QueryCallback,std::allocator<QueryCallback>> *)&local_28);
}
return;
}
|
|
60,773
|
int OpenSubdiv::v3_6_0::Far::internal::EvaluatePatchBasis<float>(int, OpenSubdiv::v3_6_0::Far::PatchParam const&, float, float, float*, float*, float*, float*, float*, float*, float)
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchBasis.cpp
|
int
EvaluatePatchBasis(int patchType, PatchParam const & param, REAL s, REAL t,
REAL wP[], REAL wDs[], REAL wDt[],
REAL wDss[], REAL wDst[], REAL wDtt[], REAL sharpness) {
REAL derivSign = 1.0f;
if ((patchType == PatchDescriptor::LOOP) ||
(patchType == PatchDescriptor::GREGORY_TRIANGLE) ||
(patchType == PatchDescriptor::TRIANGLES)) {
param.NormalizeTriangle(s, t);
if (param.IsTriangleRotated()) {
derivSign = -1.0f;
}
} else {
param.Normalize(s, t);
}
int nPoints = EvaluatePatchBasisNormalized(
patchType, param, s, t, wP, wDs, wDt, wDss, wDst, wDtt, sharpness);
if (wDs && wDt) {
REAL d1Scale = derivSign * (REAL)(1 << param.GetDepth());
for (int i = 0; i < nPoints; ++i) {
wDs[i] *= d1Scale;
wDt[i] *= d1Scale;
}
if (wDss && wDst && wDtt) {
REAL d2Scale = derivSign * d1Scale * d1Scale;
for (int i = 0; i < nPoints; ++i) {
wDss[i] *= d2Scale;
wDst[i] *= d2Scale;
wDtt[i] *= d2Scale;
}
}
}
return nPoints;
}
|
O0
|
cpp
|
int OpenSubdiv::v3_6_0::Far::internal::EvaluatePatchBasis<float>(int, OpenSubdiv::v3_6_0::Far::PatchParam const&, float, float, float*, float*, float*, float*, float*, float*, float):
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movsd %xmm0, -0x18(%rbp)
movsd %xmm1, -0x20(%rbp)
movq %rdx, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movq %r8, -0x38(%rbp)
movq %r9, -0x40(%rbp)
movsd %xmm2, -0x48(%rbp)
movsd 0xb8157(%rip), %xmm0 # 0x1ec598
movsd %xmm0, -0x50(%rbp)
cmpl $0x5, -0x4(%rbp)
je 0x134458
cmpl $0xa, -0x4(%rbp)
je 0x134458
cmpl $0x4, -0x4(%rbp)
jne 0x134487
movq -0x10(%rbp), %rdi
leaq -0x18(%rbp), %rsi
leaq -0x20(%rbp), %rdx
callq 0xd47f0
movq -0x10(%rbp), %rdi
callq 0xc9680
testb $0x1, %al
jne 0x134478
jmp 0x134485
movsd 0xb81c0(%rip), %xmm0 # 0x1ec640
movsd %xmm0, -0x50(%rbp)
jmp 0x134498
movq -0x10(%rbp), %rdi
leaq -0x18(%rbp), %rsi
leaq -0x20(%rbp), %rdx
callq 0xd24b0
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
movsd -0x18(%rbp), %xmm0
movsd -0x20(%rbp), %xmm1
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq -0x38(%rbp), %r8
movq -0x40(%rbp), %r9
movq 0x10(%rbp), %r10
movq 0x18(%rbp), %rax
movsd -0x48(%rbp), %xmm2
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0xca910
movl %eax, -0x54(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x1345f4
cmpq $0x0, -0x38(%rbp)
je 0x1345f4
movsd -0x50(%rbp), %xmm0
movsd %xmm0, -0x80(%rbp)
movq -0x10(%rbp), %rdi
callq 0xc4570
movsd -0x80(%rbp), %xmm0
movzwl %ax, %ecx
movl $0x1, %eax
shll %cl, %eax
cvtsi2sd %eax, %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, -0x60(%rbp)
movl $0x0, -0x64(%rbp)
movl -0x64(%rbp), %eax
cmpl -0x54(%rbp), %eax
jge 0x134564
movsd -0x60(%rbp), %xmm0
movq -0x30(%rbp), %rax
movslq -0x64(%rbp), %rcx
mulsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
movsd -0x60(%rbp), %xmm0
movq -0x38(%rbp), %rax
movslq -0x64(%rbp), %rcx
mulsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x134523
cmpq $0x0, -0x40(%rbp)
je 0x1345f2
cmpq $0x0, 0x10(%rbp)
je 0x1345f2
cmpq $0x0, 0x18(%rbp)
je 0x1345f2
movsd -0x50(%rbp), %xmm0
mulsd -0x60(%rbp), %xmm0
mulsd -0x60(%rbp), %xmm0
movsd %xmm0, -0x70(%rbp)
movl $0x0, -0x74(%rbp)
movl -0x74(%rbp), %eax
cmpl -0x54(%rbp), %eax
jge 0x1345f0
movsd -0x70(%rbp), %xmm0
movq -0x40(%rbp), %rax
movslq -0x74(%rbp), %rcx
mulsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
movsd -0x70(%rbp), %xmm0
movq 0x10(%rbp), %rax
movslq -0x74(%rbp), %rcx
mulsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
movsd -0x70(%rbp), %xmm0
movq 0x18(%rbp), %rax
movslq -0x74(%rbp), %rcx
mulsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
movl -0x74(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x74(%rbp)
jmp 0x134598
jmp 0x1345f2
jmp 0x1345f4
movl -0x54(%rbp), %eax
addq $0x90, %rsp
popq %rbp
retq
|
_ZN10OpenSubdiv6v3_6_03Far8internal18EvaluatePatchBasisIdEEiiRKNS1_10PatchParamET_S7_PS7_S8_S8_S8_S8_S8_S7_:
push rbp
mov rbp, rsp
sub rsp, 90h
mov rax, [rbp+arg_8]
mov rax, [rbp+arg_0]
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
movsd [rbp+var_18], xmm0
movsd [rbp+var_20], xmm1
mov [rbp+var_28], rdx
mov [rbp+var_30], rcx
mov [rbp+var_38], r8
mov [rbp+var_40], r9
movsd [rbp+var_48], xmm2
movsd xmm0, cs:qword_1EC598
movsd [rbp+var_50], xmm0
cmp [rbp+var_4], 5
jz short loc_134458
cmp [rbp+var_4], 0Ah
jz short loc_134458
cmp [rbp+var_4], 4
jnz short loc_134487
loc_134458:
mov rdi, [rbp+var_10]
lea rsi, [rbp+var_18]
lea rdx, [rbp+var_20]
call __ZNK10OpenSubdiv6v3_6_03Far10PatchParam17NormalizeTriangleIdEEvRT_S5_; OpenSubdiv::v3_6_0::Far::PatchParam::NormalizeTriangle<double>(double &,double &)
mov rdi, [rbp+var_10]; this
call __ZNK10OpenSubdiv6v3_6_03Far10PatchParam17IsTriangleRotatedEv; OpenSubdiv::v3_6_0::Far::PatchParam::IsTriangleRotated(void)
test al, 1
jnz short loc_134478
jmp short loc_134485
loc_134478:
movsd xmm0, cs:qword_1EC640
movsd [rbp+var_50], xmm0
loc_134485:
jmp short loc_134498
loc_134487:
mov rdi, [rbp+var_10]
lea rsi, [rbp+var_18]
lea rdx, [rbp+var_20]
call __ZNK10OpenSubdiv6v3_6_03Far10PatchParam9NormalizeIdEEvRT_S5_; OpenSubdiv::v3_6_0::Far::PatchParam::Normalize<double>(double &,double &)
loc_134498:
mov edi, [rbp+var_4]
mov rsi, [rbp+var_10]
movsd xmm0, [rbp+var_18]
movsd xmm1, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_30]
mov r8, [rbp+var_38]
mov r9, [rbp+var_40]
mov r10, [rbp+arg_0]
mov rax, [rbp+arg_8]
movsd xmm2, [rbp+var_48]
mov [rsp+90h+var_90], r10
mov [rsp+90h+var_88], rax
call __ZN10OpenSubdiv6v3_6_03Far8internal28EvaluatePatchBasisNormalizedIdEEiiRKNS1_10PatchParamET_S7_PS7_S8_S8_S8_S8_S8_S7_; OpenSubdiv::v3_6_0::Far::internal::EvaluatePatchBasisNormalized<double>(int,OpenSubdiv::v3_6_0::Far::PatchParam const&,double,double,double*,double*,double*,double*,double*,double*,double)
mov [rbp+var_54], eax
cmp [rbp+var_30], 0
jz loc_1345F4
cmp [rbp+var_38], 0
jz loc_1345F4
movsd xmm0, [rbp+var_50]
movsd [rbp+var_80], xmm0
mov rdi, [rbp+var_10]; this
call __ZNK10OpenSubdiv6v3_6_03Far10PatchParam8GetDepthEv; OpenSubdiv::v3_6_0::Far::PatchParam::GetDepth(void)
movsd xmm0, [rbp+var_80]
movzx ecx, ax
mov eax, 1
shl eax, cl
cvtsi2sd xmm1, eax
mulsd xmm0, xmm1
movsd [rbp+var_60], xmm0
mov [rbp+var_64], 0
loc_134523:
mov eax, [rbp+var_64]
cmp eax, [rbp+var_54]
jge short loc_134564
movsd xmm0, [rbp+var_60]
mov rax, [rbp+var_30]
movsxd rcx, [rbp+var_64]
mulsd xmm0, qword ptr [rax+rcx*8]
movsd qword ptr [rax+rcx*8], xmm0
movsd xmm0, [rbp+var_60]
mov rax, [rbp+var_38]
movsxd rcx, [rbp+var_64]
mulsd xmm0, qword ptr [rax+rcx*8]
movsd qword ptr [rax+rcx*8], xmm0
mov eax, [rbp+var_64]
add eax, 1
mov [rbp+var_64], eax
jmp short loc_134523
loc_134564:
cmp [rbp+var_40], 0
jz loc_1345F2
cmp [rbp+arg_0], 0
jz short loc_1345F2
cmp [rbp+arg_8], 0
jz short loc_1345F2
movsd xmm0, [rbp+var_50]
mulsd xmm0, [rbp+var_60]
mulsd xmm0, [rbp+var_60]
movsd [rbp+var_70], xmm0
mov [rbp+var_74], 0
loc_134598:
mov eax, [rbp+var_74]
cmp eax, [rbp+var_54]
jge short loc_1345F0
movsd xmm0, [rbp+var_70]
mov rax, [rbp+var_40]
movsxd rcx, [rbp+var_74]
mulsd xmm0, qword ptr [rax+rcx*8]
movsd qword ptr [rax+rcx*8], xmm0
movsd xmm0, [rbp+var_70]
mov rax, [rbp+arg_0]
movsxd rcx, [rbp+var_74]
mulsd xmm0, qword ptr [rax+rcx*8]
movsd qword ptr [rax+rcx*8], xmm0
movsd xmm0, [rbp+var_70]
mov rax, [rbp+arg_8]
movsxd rcx, [rbp+var_74]
mulsd xmm0, qword ptr [rax+rcx*8]
movsd qword ptr [rax+rcx*8], xmm0
mov eax, [rbp+var_74]
add eax, 1
mov [rbp+var_74], eax
jmp short loc_134598
loc_1345F0:
jmp short $+2
loc_1345F2:
jmp short $+2
loc_1345F4:
mov eax, [rbp+var_54]
add rsp, 90h
pop rbp
retn
|
long long OpenSubdiv::v3_6_0::Far::internal::EvaluatePatchBasis<double>(
int a1,
OpenSubdiv::v3_6_0::Far::PatchParam *a2,
double *a3,
_QWORD *a4,
_QWORD *a5,
_QWORD *a6,
double a7,
double a8,
double a9,
_QWORD *a10,
_QWORD *a11)
{
int j; // [rsp+1Ch] [rbp-74h]
double v13; // [rsp+20h] [rbp-70h]
int i; // [rsp+2Ch] [rbp-64h]
double v15; // [rsp+30h] [rbp-60h]
signed int v16; // [rsp+3Ch] [rbp-54h]
double v17; // [rsp+40h] [rbp-50h]
double v22; // [rsp+70h] [rbp-20h] BYREF
double v23; // [rsp+78h] [rbp-18h] BYREF
OpenSubdiv::v3_6_0::Far::PatchParam *v24; // [rsp+80h] [rbp-10h]
int v25; // [rsp+8Ch] [rbp-4h]
v25 = a1;
v24 = a2;
v23 = a7;
v22 = a8;
v17 = 1.0;
if ( a1 == 5 || v25 == 10 || v25 == 4 )
{
OpenSubdiv::v3_6_0::Far::PatchParam::NormalizeTriangle<double>(v24, &v23, &v22);
if ( (OpenSubdiv::v3_6_0::Far::PatchParam::IsTriangleRotated(v24) & 1) != 0 )
v17 = -1.0;
}
else
{
OpenSubdiv::v3_6_0::Far::PatchParam::Normalize<double>(v24, &v23, &v22);
}
v16 = OpenSubdiv::v3_6_0::Far::internal::EvaluatePatchBasisNormalized<double>(
v25,
v24,
a3,
a4,
a5,
a6,
v23,
v22,
a9,
a10,
a11);
if ( a4 )
{
if ( a5 )
{
v15 = v17 * (double)(1 << OpenSubdiv::v3_6_0::Far::PatchParam::GetDepth(v24));
for ( i = 0; i < v16; ++i )
{
*(double *)&a4[i] = v15 * *(double *)&a4[i];
*(double *)&a5[i] = v15 * *(double *)&a5[i];
}
if ( a6 && a10 && a11 )
{
v13 = v17 * v15 * v15;
for ( j = 0; j < v16; ++j )
{
*(double *)&a6[j] = v13 * *(double *)&a6[j];
*(double *)&a10[j] = v13 * *(double *)&a10[j];
*(double *)&a11[j] = v13 * *(double *)&a11[j];
}
}
}
}
return (unsigned int)v16;
}
| |||
60,774
|
int OpenSubdiv::v3_6_0::Far::internal::EvaluatePatchBasis<float>(int, OpenSubdiv::v3_6_0::Far::PatchParam const&, float, float, float*, float*, float*, float*, float*, float*, float)
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchBasis.cpp
|
int
EvaluatePatchBasis(int patchType, PatchParam const & param, REAL s, REAL t,
REAL wP[], REAL wDs[], REAL wDt[],
REAL wDss[], REAL wDst[], REAL wDtt[], REAL sharpness) {
REAL derivSign = 1.0f;
if ((patchType == PatchDescriptor::LOOP) ||
(patchType == PatchDescriptor::GREGORY_TRIANGLE) ||
(patchType == PatchDescriptor::TRIANGLES)) {
param.NormalizeTriangle(s, t);
if (param.IsTriangleRotated()) {
derivSign = -1.0f;
}
} else {
param.Normalize(s, t);
}
int nPoints = EvaluatePatchBasisNormalized(
patchType, param, s, t, wP, wDs, wDt, wDss, wDst, wDtt, sharpness);
if (wDs && wDt) {
REAL d1Scale = derivSign * (REAL)(1 << param.GetDepth());
for (int i = 0; i < nPoints; ++i) {
wDs[i] *= d1Scale;
wDt[i] *= d1Scale;
}
if (wDss && wDst && wDtt) {
REAL d2Scale = derivSign * d1Scale * d1Scale;
for (int i = 0; i < nPoints; ++i) {
wDss[i] *= d2Scale;
wDst[i] *= d2Scale;
wDtt[i] *= d2Scale;
}
}
}
return nPoints;
}
|
O1
|
cpp
|
int OpenSubdiv::v3_6_0::Far::internal::EvaluatePatchBasis<float>(int, OpenSubdiv::v3_6_0::Far::PatchParam const&, float, float, float*, float*, float*, float*, float*, float*, float):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rsi, %r12
movl %edi, %ebp
movq 0x60(%rsp), %r13
movsd %xmm0, 0x10(%rsp)
movsd %xmm1, 0x8(%rsp)
cmpl $0xa, %edi
ja 0x64b69
movl $0x430, %eax # imm = 0x430
btl %ebp, %eax
jae 0x64b69
movq %rdx, 0x18(%rsp)
movsd %xmm2, 0x20(%rsp)
leaq 0x10(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %r12, %rdi
callq 0x3b960
movq (%r12), %rcx
movq %rcx, %rax
shrq $0x36, %rax
movq %rcx, %rdx
shrq $0x2c, %rdx
andl $0x3ff, %edx # imm = 0x3FF
addl %eax, %edx
shrq $0x20, %rcx
andb $0xf, %cl
shrl %cl, %edx
testl %edx, %edx
je 0x64b4c
movsd 0x4fa06(%rip), %xmm0 # 0xb4550
jmp 0x64b54
movsd 0x4f994(%rip), %xmm0 # 0xb44e8
movsd %xmm0, (%rsp)
movsd 0x20(%rsp), %xmm2
movq 0x18(%rsp), %rdx
jmp 0x64be9
movq (%r12), %rax
movq %rax, %rcx
shrq $0x20, %rcx
andl $0xf, %ecx
movq %rax, %rsi
shlq $0x1b, %rsi
sarq $0x3f, %rsi
addl %ecx, %esi
shll $0x17, %esi
movl $0x3f800000, %ecx # imm = 0x3F800000
subl %esi, %ecx
movd %ecx, %xmm4
movss 0x4d466(%rip), %xmm3 # 0xb2000
divss %xmm4, %xmm3
movq %rax, %rcx
shrq $0x36, %rcx
xorps %xmm4, %xmm4
cvtsi2sd %ecx, %xmm4
cvtss2sd %xmm3, %xmm3
mulsd %xmm3, %xmm0
subsd %xmm4, %xmm0
movsd %xmm0, 0x10(%rsp)
shrq $0x2c, %rax
andl $0x3ff, %eax # imm = 0x3FF
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd %xmm3, %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movsd 0x4f904(%rip), %xmm0 # 0xb44e8
movsd %xmm0, (%rsp)
movsd 0x10(%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
movl %ebp, %edi
movq %r12, %rsi
movq %r15, %rcx
movq %r14, %r8
movq %rbx, %r9
movq 0x68(%rsp), %rbp
pushq %rbp
pushq %r13
callq 0x39920
addq $0x10, %rsp
testq %r15, %r15
sete %cl
testq %r14, %r14
sete %dl
orb %cl, %dl
movsd (%rsp), %xmm2
jne 0x64cd7
movb 0x4(%r12), %cl
andb $0xf, %cl
movl $0x1, %edx
shll %cl, %edx
xorps %xmm0, %xmm0
cvtsi2sd %edx, %xmm0
mulsd %xmm2, %xmm0
testl %eax, %eax
jle 0x64c77
movl %eax, %ecx
xorl %edx, %edx
movsd (%r15,%rdx,8), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, (%r15,%rdx,8)
movsd (%r14,%rdx,8), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, (%r14,%rdx,8)
incq %rdx
cmpq %rdx, %rcx
jne 0x64c4f
testq %rbx, %rbx
setne %cl
testq %r13, %r13
setne %dl
andb %cl, %dl
testq %rbp, %rbp
setne %cl
testb %cl, %dl
je 0x64cd7
testl %eax, %eax
jle 0x64cd7
mulsd %xmm0, %xmm2
mulsd %xmm0, %xmm2
movl %eax, %ecx
xorl %edx, %edx
movsd (%rbx,%rdx,8), %xmm0
mulsd %xmm2, %xmm0
movsd %xmm0, (%rbx,%rdx,8)
movsd (%r13,%rdx,8), %xmm0
mulsd %xmm2, %xmm0
movsd %xmm0, (%r13,%rdx,8)
movsd (%rbp,%rdx,8), %xmm0
mulsd %xmm2, %xmm0
movsd %xmm0, (%rbp,%rdx,8)
incq %rdx
cmpq %rdx, %rcx
jne 0x64c9f
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_ZN10OpenSubdiv6v3_6_03Far8internal18EvaluatePatchBasisIdEEiiRKNS1_10PatchParamET_S7_PS7_S8_S8_S8_S8_S8_S7_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov rbx, r9
mov r14, r8
mov r15, rcx
mov r12, rsi
mov ebp, edi
mov r13, [rsp+58h+arg_0]
movsd [rsp+58h+var_48], xmm0
movsd [rsp+58h+var_50], xmm1
cmp edi, 0Ah
ja short loc_64B69
mov eax, 430h
bt eax, ebp
jnb short loc_64B69
mov [rsp+58h+var_40], rdx
movsd [rsp+58h+var_38], xmm2
lea rsi, [rsp+58h+var_48]
lea rdx, [rsp+58h+var_50]
mov rdi, r12
call __ZNK10OpenSubdiv6v3_6_03Far10PatchParam17NormalizeTriangleIdEEvRT_S5_; OpenSubdiv::v3_6_0::Far::PatchParam::NormalizeTriangle<double>(double &,double &)
mov rcx, [r12]
mov rax, rcx
shr rax, 36h
mov rdx, rcx
shr rdx, 2Ch
and edx, 3FFh
add edx, eax
shr rcx, 20h
and cl, 0Fh
shr edx, cl
test edx, edx
jz short loc_64B4C
movsd xmm0, cs:qword_B4550
jmp short loc_64B54
loc_64B4C:
movsd xmm0, cs:qword_B44E8
loc_64B54:
movsd [rsp+58h+var_58], xmm0
movsd xmm2, [rsp+58h+var_38]
mov rdx, [rsp+58h+var_40]
jmp loc_64BE9
loc_64B69:
mov rax, [r12]
mov rcx, rax
shr rcx, 20h
and ecx, 0Fh
mov rsi, rax
shl rsi, 1Bh
sar rsi, 3Fh
add esi, ecx
shl esi, 17h
mov ecx, 3F800000h
sub ecx, esi
movd xmm4, ecx
movss xmm3, cs:dword_B2000
divss xmm3, xmm4
mov rcx, rax
shr rcx, 36h
xorps xmm4, xmm4
cvtsi2sd xmm4, ecx
cvtss2sd xmm3, xmm3
mulsd xmm0, xmm3
subsd xmm0, xmm4
movsd [rsp+58h+var_48], xmm0
shr rax, 2Ch
and eax, 3FFh
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
mulsd xmm1, xmm3
subsd xmm1, xmm0
movsd [rsp+58h+var_50], xmm1
movsd xmm0, cs:qword_B44E8
movsd [rsp+58h+var_58], xmm0
loc_64BE9:
movsd xmm0, [rsp+58h+var_48]
movsd xmm1, [rsp+58h+var_50]
mov edi, ebp
mov rsi, r12
mov rcx, r15
mov r8, r14
mov r9, rbx
mov rbp, [rsp+58h+arg_8]
push rbp
push r13
call __ZN10OpenSubdiv6v3_6_03Far8internal28EvaluatePatchBasisNormalizedIdEEiiRKNS1_10PatchParamET_S7_PS7_S8_S8_S8_S8_S8_S7_; OpenSubdiv::v3_6_0::Far::internal::EvaluatePatchBasisNormalized<double>(int,OpenSubdiv::v3_6_0::Far::PatchParam const&,double,double,double*,double*,double*,double*,double*,double*,double)
add rsp, 10h
test r15, r15
setz cl
test r14, r14
setz dl
or dl, cl
movsd xmm2, [rsp+58h+var_58]
jnz loc_64CD7
mov cl, [r12+4]
and cl, 0Fh
mov edx, 1
shl edx, cl
xorps xmm0, xmm0
cvtsi2sd xmm0, edx
mulsd xmm0, xmm2
test eax, eax
jle short loc_64C77
mov ecx, eax
xor edx, edx
loc_64C4F:
movsd xmm1, qword ptr [r15+rdx*8]
mulsd xmm1, xmm0
movsd qword ptr [r15+rdx*8], xmm1
movsd xmm1, qword ptr [r14+rdx*8]
mulsd xmm1, xmm0
movsd qword ptr [r14+rdx*8], xmm1
inc rdx
cmp rcx, rdx
jnz short loc_64C4F
loc_64C77:
test rbx, rbx
setnz cl
test r13, r13
setnz dl
and dl, cl
test rbp, rbp
setnz cl
test dl, cl
jz short loc_64CD7
test eax, eax
jle short loc_64CD7
mulsd xmm2, xmm0
mulsd xmm2, xmm0
mov ecx, eax
xor edx, edx
loc_64C9F:
movsd xmm0, qword ptr [rbx+rdx*8]
mulsd xmm0, xmm2
movsd qword ptr [rbx+rdx*8], xmm0
movsd xmm0, qword ptr [r13+rdx*8+0]
mulsd xmm0, xmm2
movsd qword ptr [r13+rdx*8+0], xmm0
movsd xmm0, qword ptr [rbp+rdx*8+0]
mulsd xmm0, xmm2
movsd qword ptr [rbp+rdx*8+0], xmm0
inc rdx
cmp rcx, rdx
jnz short loc_64C9F
loc_64CD7:
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long OpenSubdiv::v3_6_0::Far::internal::EvaluatePatchBasis<double>(
unsigned int a1,
unsigned long long *a2,
double *a3,
double *a4,
__m128d *a5,
double *a6,
double a7,
double a8,
double a9,
double *a10,
double *a11)
{
int v14; // eax
unsigned long long v15; // xmm0_8
unsigned long long v16; // rax
double v17; // xmm3_8
long long result; // rax
double v19; // xmm0_8
long long v20; // rdx
double v21; // xmm2_8
long long v22; // rdx
double v23; // [rsp+0h] [rbp-58h]
double v24; // [rsp+8h] [rbp-50h] BYREF
double v25; // [rsp+10h] [rbp-48h] BYREF
double *v26; // [rsp+18h] [rbp-40h]
double v27; // [rsp+20h] [rbp-38h]
v25 = a7;
v24 = a8;
if ( a1 <= 0xA && (v14 = 1072, _bittest(&v14, a1)) )
{
v26 = a3;
v27 = a9;
OpenSubdiv::v3_6_0::Far::PatchParam::NormalizeTriangle<double>(a2, &v25, &v24);
if ( ((*a2 >> 54) + ((*a2 >> 44) & 0x3FF)) >> (HIDWORD(*a2) & 0xF) )
*(double *)&v15 = -1.0;
else
*(double *)&v15 = 1.0;
v23 = *(double *)&v15;
a9 = v27;
a3 = v26;
}
else
{
v16 = *a2;
v17 = (float)(1.0 / COERCE_FLOAT(1065353216 - (((HIDWORD(*a2) & 0xF) + ((int)(*a2 >> 5) >> 31)) << 23)));
v25 = a7 * v17 - (double)(*a2 >> 54);
v24 = a8 * v17 - (double)((v16 >> 44) & 0x3FF);
v23 = 1.0;
}
result = OpenSubdiv::v3_6_0::Far::internal::EvaluatePatchBasisNormalized<double>(
a1,
a2,
a3,
a4,
a5,
a6,
(__m128d)*(unsigned long long *)&v25,
v24,
a9,
a10,
a11);
if ( a4 != 0LL && a5 != 0LL )
{
v19 = (double)(1 << (*((_BYTE *)a2 + 4) & 0xF)) * v23;
if ( (int)result > 0 )
{
v20 = 0LL;
do
{
a4[v20] = a4[v20] * v19;
a5->m128d_f64[v20] = a5->m128d_f64[v20] * v19;
++v20;
}
while ( (unsigned int)result != v20 );
}
if ( a11 != 0LL && a6 != 0LL && a10 != 0LL && (int)result > 0 )
{
v21 = v23 * v19 * v19;
v22 = 0LL;
do
{
a6[v22] = a6[v22] * v21;
a10[v22] = a10[v22] * v21;
a11[v22] = a11[v22] * v21;
++v22;
}
while ( (unsigned int)result != v22 );
}
}
return result;
}
|
EvaluatePatchBasis<double>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV RBX,R9
MOV R14,R8
MOV R15,RCX
MOV R12,RSI
MOV EBP,EDI
MOV R13,qword ptr [RSP + 0x60]
MOVSD qword ptr [RSP + 0x10],XMM0
MOVSD qword ptr [RSP + 0x8],XMM1
CMP EDI,0xa
JA 0x00164b69
MOV EAX,0x430
BT EAX,EBP
JNC 0x00164b69
MOV qword ptr [RSP + 0x18],RDX
MOVSD qword ptr [RSP + 0x20],XMM2
LEA RSI,[RSP + 0x10]
LEA RDX,[RSP + 0x8]
MOV RDI,R12
CALL 0x0013b960
MOV RCX,qword ptr [R12]
MOV RAX,RCX
SHR RAX,0x36
MOV RDX,RCX
SHR RDX,0x2c
AND EDX,0x3ff
ADD EDX,EAX
SHR RCX,0x20
AND CL,0xf
SHR EDX,CL
TEST EDX,EDX
JZ 0x00164b4c
MOVSD XMM0,qword ptr [0x001b4550]
JMP 0x00164b54
LAB_00164b4c:
MOVSD XMM0,qword ptr [0x001b44e8]
LAB_00164b54:
MOVSD qword ptr [RSP],XMM0
MOVSD XMM2,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x18]
JMP 0x00164be9
LAB_00164b69:
MOV RAX,qword ptr [R12]
MOV RCX,RAX
SHR RCX,0x20
AND ECX,0xf
MOV RSI,RAX
SHL RSI,0x1b
SAR RSI,0x3f
ADD ESI,ECX
SHL ESI,0x17
MOV ECX,0x3f800000
SUB ECX,ESI
MOVD XMM4,ECX
MOVSS XMM3,dword ptr [0x001b2000]
DIVSS XMM3,XMM4
MOV RCX,RAX
SHR RCX,0x36
XORPS XMM4,XMM4
CVTSI2SD XMM4,ECX
CVTSS2SD XMM3,XMM3
MULSD XMM0,XMM3
SUBSD XMM0,XMM4
MOVSD qword ptr [RSP + 0x10],XMM0
SHR RAX,0x2c
AND EAX,0x3ff
XORPS XMM0,XMM0
CVTSI2SD XMM0,EAX
MULSD XMM1,XMM3
SUBSD XMM1,XMM0
MOVSD qword ptr [RSP + 0x8],XMM1
MOVSD XMM0,qword ptr [0x001b44e8]
MOVSD qword ptr [RSP],XMM0
LAB_00164be9:
MOVSD XMM0,qword ptr [RSP + 0x10]
MOVSD XMM1,qword ptr [RSP + 0x8]
MOV EDI,EBP
MOV RSI,R12
MOV RCX,R15
MOV R8,R14
MOV R9,RBX
MOV RBP,qword ptr [RSP + 0x68]
PUSH RBP
PUSH R13
CALL 0x00139920
ADD RSP,0x10
TEST R15,R15
SETZ CL
TEST R14,R14
SETZ DL
OR DL,CL
MOVSD XMM2,qword ptr [RSP]
JNZ 0x00164cd7
MOV CL,byte ptr [R12 + 0x4]
AND CL,0xf
MOV EDX,0x1
SHL EDX,CL
XORPS XMM0,XMM0
CVTSI2SD XMM0,EDX
MULSD XMM0,XMM2
TEST EAX,EAX
JLE 0x00164c77
MOV ECX,EAX
XOR EDX,EDX
LAB_00164c4f:
MOVSD XMM1,qword ptr [R15 + RDX*0x8]
MULSD XMM1,XMM0
MOVSD qword ptr [R15 + RDX*0x8],XMM1
MOVSD XMM1,qword ptr [R14 + RDX*0x8]
MULSD XMM1,XMM0
MOVSD qword ptr [R14 + RDX*0x8],XMM1
INC RDX
CMP RCX,RDX
JNZ 0x00164c4f
LAB_00164c77:
TEST RBX,RBX
SETNZ CL
TEST R13,R13
SETNZ DL
AND DL,CL
TEST RBP,RBP
SETNZ CL
TEST DL,CL
JZ 0x00164cd7
TEST EAX,EAX
JLE 0x00164cd7
MULSD XMM2,XMM0
MULSD XMM2,XMM0
MOV ECX,EAX
XOR EDX,EDX
LAB_00164c9f:
MOVSD XMM0,qword ptr [RBX + RDX*0x8]
MULSD XMM0,XMM2
MOVSD qword ptr [RBX + RDX*0x8],XMM0
MOVSD XMM0,qword ptr [R13 + RDX*0x8]
MULSD XMM0,XMM2
MOVSD qword ptr [R13 + RDX*0x8],XMM0
MOVSD XMM0,qword ptr [RBP + RDX*0x8]
MULSD XMM0,XMM2
MOVSD qword ptr [RBP + RDX*0x8],XMM0
INC RDX
CMP RCX,RDX
JNZ 0x00164c9f
LAB_00164cd7:
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* int OpenSubdiv::v3_6_0::Far::internal::EvaluatePatchBasis<double>(int,
OpenSubdiv::v3_6_0::Far::PatchParam const&, double, double, double*, double*, double*, double*,
double*, double*, double) */
int OpenSubdiv::v3_6_0::Far::internal::EvaluatePatchBasis<double>
(int param_1,PatchParam *param_2,double param_3,double param_4,double *param_5,
double *param_6,double *param_7,double *param_8,double *param_9,double *param_10,
double param_11)
{
uint uVar1;
ulong uVar2;
double dVar3;
double local_58;
double local_50;
double local_48;
double *local_40;
double local_38;
if (((uint)param_1 < 0xb) && ((0x430U >> (param_1 & 0x1fU) & 1) != 0)) {
local_50 = param_4;
local_48 = param_3;
local_40 = param_5;
local_38 = param_11;
PatchParam::NormalizeTriangle<double>(param_2,&local_48,&local_50);
uVar1 = (uint)((ulong)*(int8 *)param_2 >> 0x20);
param_5 = local_40;
param_11 = local_38;
local_58 = DAT_001b44e8;
if ((uVar1 >> 0xc & 0x3ff) + (uVar1 >> 0x16) >>
((byte)((ulong)*(int8 *)param_2 >> 0x20) & 0xf) != 0) {
local_58 = DAT_001b4550;
}
}
else {
uVar1 = (uint)((ulong)*(long *)param_2 >> 0x20);
dVar3 = (double)(DAT_001b2000 /
(float)(((int)((*(long *)param_2 << 0x1b) >> 0x3f) + (uVar1 & 0xf)) * -0x800000
+ 0x3f800000));
local_48 = param_3 * dVar3 - (double)(uVar1 >> 0x16);
local_50 = param_4 * dVar3 - (double)(uVar1 >> 0xc & 0x3ff);
local_58 = DAT_001b44e8;
}
uVar1 = EvaluatePatchBasisNormalized<double>
(param_1,param_2,local_48,local_50,param_5,param_6,param_7,param_8,param_9,
param_10,param_11);
if (param_7 != (double *)0x0 && param_6 != (double *)0x0) {
dVar3 = (double)(1 << ((byte)param_2[4] & 0xf)) * local_58;
if (0 < (int)uVar1) {
uVar2 = (ulong)(uint)(0 << ((byte)param_2[4] & 0xf));
do {
param_6[uVar2] = param_6[uVar2] * dVar3;
param_7[uVar2] = param_7[uVar2] * dVar3;
uVar2 = uVar2 + 1;
} while (uVar1 != uVar2);
}
if (((param_9 != (double *)0x0 && param_8 != (double *)0x0) && param_10 != (double *)0x0) &&
(0 < (int)uVar1)) {
dVar3 = local_58 * dVar3 * dVar3;
uVar2 = 0;
do {
param_8[uVar2] = param_8[uVar2] * dVar3;
param_9[uVar2] = param_9[uVar2] * dVar3;
param_10[uVar2] = param_10[uVar2] * dVar3;
uVar2 = uVar2 + 1;
} while (uVar1 != uVar2);
}
}
return uVar1;
}
|
|
60,775
|
int OpenSubdiv::v3_6_0::Far::internal::EvaluatePatchBasis<float>(int, OpenSubdiv::v3_6_0::Far::PatchParam const&, float, float, float*, float*, float*, float*, float*, float*, float)
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchBasis.cpp
|
int
EvaluatePatchBasis(int patchType, PatchParam const & param, REAL s, REAL t,
REAL wP[], REAL wDs[], REAL wDt[],
REAL wDss[], REAL wDst[], REAL wDtt[], REAL sharpness) {
REAL derivSign = 1.0f;
if ((patchType == PatchDescriptor::LOOP) ||
(patchType == PatchDescriptor::GREGORY_TRIANGLE) ||
(patchType == PatchDescriptor::TRIANGLES)) {
param.NormalizeTriangle(s, t);
if (param.IsTriangleRotated()) {
derivSign = -1.0f;
}
} else {
param.Normalize(s, t);
}
int nPoints = EvaluatePatchBasisNormalized(
patchType, param, s, t, wP, wDs, wDt, wDss, wDst, wDtt, sharpness);
if (wDs && wDt) {
REAL d1Scale = derivSign * (REAL)(1 << param.GetDepth());
for (int i = 0; i < nPoints; ++i) {
wDs[i] *= d1Scale;
wDt[i] *= d1Scale;
}
if (wDss && wDst && wDtt) {
REAL d2Scale = derivSign * d1Scale * d1Scale;
for (int i = 0; i < nPoints; ++i) {
wDss[i] *= d2Scale;
wDst[i] *= d2Scale;
wDtt[i] *= d2Scale;
}
}
}
return nPoints;
}
|
O2
|
cpp
|
int OpenSubdiv::v3_6_0::Far::internal::EvaluatePatchBasis<float>(int, OpenSubdiv::v3_6_0::Far::PatchParam const&, float, float, float*, float*, float*, float*, float*, float*, float):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movsd %xmm2, 0x30(%rsp)
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rdx, 0x28(%rsp)
movq %rsi, 0x10(%rsp)
movl %edi, %ebp
movq 0x78(%rsp), %r13
movq 0x70(%rsp), %r12
movsd %xmm0, 0x20(%rsp)
movsd %xmm1, 0x18(%rsp)
cmpl $0xa, %edi
ja 0x77cfe
movl $0x430, %eax # imm = 0x430
btl %ebp, %eax
jae 0x77cfe
leaq 0x20(%rsp), %rsi
leaq 0x18(%rsp), %rdx
movq 0x10(%rsp), %r13
movq %r13, %rdi
callq 0x54d10
movq %r13, %rdi
callq 0x51390
testb %al, %al
je 0x77ce9
movsd 0x46871(%rip), %xmm0 # 0xbe558
jmp 0x77cf1
movsd 0x46817(%rip), %xmm0 # 0xbe508
movsd %xmm0, 0x8(%rsp)
movq 0x78(%rsp), %r13
jmp 0x77d20
leaq 0x20(%rsp), %rsi
leaq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rdi
callq 0x541a0
movsd 0x467ee(%rip), %xmm0 # 0xbe508
movsd %xmm0, 0x8(%rsp)
movsd 0x20(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
movl %ebp, %edi
movq 0x10(%rsp), %rbp
movq %rbp, %rsi
movq 0x28(%rsp), %rdx
movq %r15, %rcx
movq %r14, %r8
movq %rbx, %r9
movsd 0x30(%rsp), %xmm2
pushq %r13
pushq %r12
callq 0x51910
addq $0x10, %rsp
testq %r15, %r15
sete %cl
testq %r14, %r14
sete %dl
orb %cl, %dl
movsd 0x8(%rsp), %xmm2
jne 0x77e16
movb 0x4(%rbp), %cl
andb $0xf, %cl
pushq $0x1
popq %rdx
shll %cl, %edx
cvtsi2sd %edx, %xmm0
mulsd %xmm2, %xmm0
xorl %edx, %edx
testl %eax, %eax
movl %eax, %ecx
cmovlel %edx, %ecx
cmpq %rdx, %rcx
je 0x77db7
movsd (%r15,%rdx,8), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, (%r15,%rdx,8)
movsd (%r14,%rdx,8), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, (%r14,%rdx,8)
incq %rdx
jmp 0x77d8d
testq %rbx, %rbx
setne %dl
testq %r12, %r12
setne %sil
andb %dl, %sil
testq %r13, %r13
setne %dl
testb %dl, %sil
je 0x77e16
mulsd %xmm0, %xmm2
mulsd %xmm0, %xmm2
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x77e16
movsd (%rbx,%rdx,8), %xmm0
mulsd %xmm2, %xmm0
movsd %xmm0, (%rbx,%rdx,8)
movsd (%r12,%rdx,8), %xmm0
mulsd %xmm2, %xmm0
movsd %xmm0, (%r12,%rdx,8)
movsd (%r13,%rdx,8), %xmm0
mulsd %xmm2, %xmm0
movsd %xmm0, (%r13,%rdx,8)
incq %rdx
jmp 0x77ddc
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
|
_ZN10OpenSubdiv6v3_6_03Far8internal18EvaluatePatchBasisIdEEiiRKNS1_10PatchParamET_S7_PS7_S8_S8_S8_S8_S8_S7_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
movsd [rsp+68h+var_38], xmm2
mov rbx, r9
mov r14, r8
mov r15, rcx
mov [rsp+68h+var_40], rdx
mov [rsp+68h+var_58], rsi
mov ebp, edi
mov r13, [rsp+68h+arg_8]
mov r12, [rsp+68h+arg_0]
movsd [rsp+68h+var_48], xmm0
movsd [rsp+68h+var_50], xmm1
cmp edi, 0Ah
ja short loc_77CFE
mov eax, 430h
bt eax, ebp
jnb short loc_77CFE
lea rsi, [rsp+68h+var_48]
lea rdx, [rsp+68h+var_50]
mov r13, [rsp+68h+var_58]
mov rdi, r13; this
call __ZNK10OpenSubdiv6v3_6_03Far10PatchParam17NormalizeTriangleIdEEvRT_S5_; OpenSubdiv::v3_6_0::Far::PatchParam::NormalizeTriangle<double>(double &,double &)
mov rdi, r13; this
call __ZNK10OpenSubdiv6v3_6_03Far10PatchParam17IsTriangleRotatedEv; OpenSubdiv::v3_6_0::Far::PatchParam::IsTriangleRotated(void)
test al, al
jz short loc_77CE9
movsd xmm0, cs:qword_BE558
jmp short loc_77CF1
loc_77CE9:
movsd xmm0, cs:qword_BE508
loc_77CF1:
movsd [rsp+68h+var_60], xmm0
mov r13, [rsp+68h+arg_8]
jmp short loc_77D20
loc_77CFE:
lea rsi, [rsp+68h+var_48]
lea rdx, [rsp+68h+var_50]
mov rdi, [rsp+68h+var_58]
call __ZNK10OpenSubdiv6v3_6_03Far10PatchParam9NormalizeIdEEvRT_S5_; OpenSubdiv::v3_6_0::Far::PatchParam::Normalize<double>(double &,double &)
movsd xmm0, cs:qword_BE508
movsd [rsp+68h+var_60], xmm0
loc_77D20:
movsd xmm0, [rsp+68h+var_48]
movsd xmm1, [rsp+68h+var_50]
mov edi, ebp
mov rbp, [rsp+68h+var_58]
mov rsi, rbp
mov rdx, [rsp+68h+var_40]
mov rcx, r15
mov r8, r14
mov r9, rbx
movsd xmm2, [rsp+68h+var_38]
push r13
push r12
call __ZN10OpenSubdiv6v3_6_03Far8internal28EvaluatePatchBasisNormalizedIdEEiiRKNS1_10PatchParamET_S7_PS7_S8_S8_S8_S8_S8_S7_; OpenSubdiv::v3_6_0::Far::internal::EvaluatePatchBasisNormalized<double>(int,OpenSubdiv::v3_6_0::Far::PatchParam const&,double,double,double*,double*,double*,double*,double*,double*,double)
add rsp, 10h
test r15, r15
setz cl
test r14, r14
setz dl
or dl, cl
movsd xmm2, [rsp+68h+var_60]
jnz loc_77E16
mov cl, [rbp+4]
and cl, 0Fh
push 1
pop rdx
shl edx, cl
cvtsi2sd xmm0, edx
mulsd xmm0, xmm2
xor edx, edx
test eax, eax
mov ecx, eax
cmovle ecx, edx
loc_77D8D:
cmp rcx, rdx
jz short loc_77DB7
movsd xmm1, qword ptr [r15+rdx*8]
mulsd xmm1, xmm0
movsd qword ptr [r15+rdx*8], xmm1
movsd xmm1, qword ptr [r14+rdx*8]
mulsd xmm1, xmm0
movsd qword ptr [r14+rdx*8], xmm1
inc rdx
jmp short loc_77D8D
loc_77DB7:
test rbx, rbx
setnz dl
test r12, r12
setnz sil
and sil, dl
test r13, r13
setnz dl
test sil, dl
jz short loc_77E16
mulsd xmm2, xmm0
mulsd xmm2, xmm0
xor edx, edx
loc_77DDC:
cmp rcx, rdx
jz short loc_77E16
movsd xmm0, qword ptr [rbx+rdx*8]
mulsd xmm0, xmm2
movsd qword ptr [rbx+rdx*8], xmm0
movsd xmm0, qword ptr [r12+rdx*8]
mulsd xmm0, xmm2
movsd qword ptr [r12+rdx*8], xmm0
movsd xmm0, qword ptr [r13+rdx*8+0]
mulsd xmm0, xmm2
movsd qword ptr [r13+rdx*8+0], xmm0
inc rdx
jmp short loc_77DDC
loc_77E16:
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long OpenSubdiv::v3_6_0::Far::internal::EvaluatePatchBasis<double>(
unsigned int a1,
OpenSubdiv::v3_6_0::Far::PatchParam *a2,
__m128d *a3,
__m128d *a4,
__m128d *a5,
__m128d *a6,
double a7,
double a8,
double a9,
__m128d *a10,
__m128d *a11)
{
__m128d *v14; // r13
int v15; // eax
unsigned long long v16; // xmm0_8
long long result; // rax
double v18; // xmm0_8
long long v19; // rdx
long long v20; // rcx
double v21; // xmm2_8
long long i; // rdx
double v23; // [rsp+8h] [rbp-60h]
double v24; // [rsp+18h] [rbp-50h] BYREF
double v25; // [rsp+20h] [rbp-48h] BYREF
__m128d *v26; // [rsp+28h] [rbp-40h]
double v27; // [rsp+30h] [rbp-38h]
v27 = a9;
v26 = a3;
v14 = a11;
v25 = a7;
v24 = a8;
if ( a1 <= 0xA && (v15 = 1072, _bittest(&v15, a1)) )
{
OpenSubdiv::v3_6_0::Far::PatchParam::NormalizeTriangle<double>(a2);
if ( (unsigned __int8)OpenSubdiv::v3_6_0::Far::PatchParam::IsTriangleRotated(a2) )
*(double *)&v16 = -1.0;
else
*(double *)&v16 = 1.0;
v23 = *(double *)&v16;
v14 = a11;
}
else
{
OpenSubdiv::v3_6_0::Far::PatchParam::Normalize<double>(a2, &v25, &v24);
v23 = 1.0;
}
result = OpenSubdiv::v3_6_0::Far::internal::EvaluatePatchBasisNormalized<double>(
a1,
a2,
v26,
a4,
a5,
a6,
(__m128d)*(unsigned long long *)&v25,
(__m128d)*(unsigned long long *)&v24,
v27,
a10,
v14);
if ( a4 != 0LL && a5 != 0LL )
{
v18 = (double)(1 << (*((_BYTE *)a2 + 4) & 0xF)) * v23;
v19 = 0LL;
v20 = (unsigned int)result;
if ( (int)result <= 0 )
v20 = 0LL;
while ( v20 != v19 )
{
a4->m128d_f64[v19] = a4->m128d_f64[v19] * v18;
a5->m128d_f64[v19] = a5->m128d_f64[v19] * v18;
++v19;
}
if ( v14 != 0LL && a6 != 0LL && a10 != 0LL )
{
v21 = v23 * v18 * v18;
for ( i = 0LL; v20 != i; ++i )
{
a6->m128d_f64[i] = a6->m128d_f64[i] * v21;
a10->m128d_f64[i] = a10->m128d_f64[i] * v21;
v14->m128d_f64[i] = v14->m128d_f64[i] * v21;
}
}
}
return result;
}
|
EvaluatePatchBasis<double>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOVSD qword ptr [RSP + 0x30],XMM2
MOV RBX,R9
MOV R14,R8
MOV R15,RCX
MOV qword ptr [RSP + 0x28],RDX
MOV qword ptr [RSP + 0x10],RSI
MOV EBP,EDI
MOV R13,qword ptr [RSP + 0x78]
MOV R12,qword ptr [RSP + 0x70]
MOVSD qword ptr [RSP + 0x20],XMM0
MOVSD qword ptr [RSP + 0x18],XMM1
CMP EDI,0xa
JA 0x00177cfe
MOV EAX,0x430
BT EAX,EBP
JNC 0x00177cfe
LEA RSI,[RSP + 0x20]
LEA RDX,[RSP + 0x18]
MOV R13,qword ptr [RSP + 0x10]
MOV RDI,R13
CALL 0x00154d10
MOV RDI,R13
CALL 0x00151390
TEST AL,AL
JZ 0x00177ce9
MOVSD XMM0,qword ptr [0x001be558]
JMP 0x00177cf1
LAB_00177ce9:
MOVSD XMM0,qword ptr [0x001be508]
LAB_00177cf1:
MOVSD qword ptr [RSP + 0x8],XMM0
MOV R13,qword ptr [RSP + 0x78]
JMP 0x00177d20
LAB_00177cfe:
LEA RSI,[RSP + 0x20]
LEA RDX,[RSP + 0x18]
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x001541a0
MOVSD XMM0,qword ptr [0x001be508]
MOVSD qword ptr [RSP + 0x8],XMM0
LAB_00177d20:
MOVSD XMM0,qword ptr [RSP + 0x20]
MOVSD XMM1,qword ptr [RSP + 0x18]
MOV EDI,EBP
MOV RBP,qword ptr [RSP + 0x10]
MOV RSI,RBP
MOV RDX,qword ptr [RSP + 0x28]
MOV RCX,R15
MOV R8,R14
MOV R9,RBX
MOVSD XMM2,qword ptr [RSP + 0x30]
PUSH R13
PUSH R12
CALL 0x00151910
ADD RSP,0x10
TEST R15,R15
SETZ CL
TEST R14,R14
SETZ DL
OR DL,CL
MOVSD XMM2,qword ptr [RSP + 0x8]
JNZ 0x00177e16
MOV CL,byte ptr [RBP + 0x4]
AND CL,0xf
PUSH 0x1
POP RDX
SHL EDX,CL
CVTSI2SD XMM0,EDX
MULSD XMM0,XMM2
XOR EDX,EDX
TEST EAX,EAX
MOV ECX,EAX
CMOVLE ECX,EDX
LAB_00177d8d:
CMP RCX,RDX
JZ 0x00177db7
MOVSD XMM1,qword ptr [R15 + RDX*0x8]
MULSD XMM1,XMM0
MOVSD qword ptr [R15 + RDX*0x8],XMM1
MOVSD XMM1,qword ptr [R14 + RDX*0x8]
MULSD XMM1,XMM0
MOVSD qword ptr [R14 + RDX*0x8],XMM1
INC RDX
JMP 0x00177d8d
LAB_00177db7:
TEST RBX,RBX
SETNZ DL
TEST R12,R12
SETNZ SIL
AND SIL,DL
TEST R13,R13
SETNZ DL
TEST SIL,DL
JZ 0x00177e16
MULSD XMM2,XMM0
MULSD XMM2,XMM0
XOR EDX,EDX
LAB_00177ddc:
CMP RCX,RDX
JZ 0x00177e16
MOVSD XMM0,qword ptr [RBX + RDX*0x8]
MULSD XMM0,XMM2
MOVSD qword ptr [RBX + RDX*0x8],XMM0
MOVSD XMM0,qword ptr [R12 + RDX*0x8]
MULSD XMM0,XMM2
MOVSD qword ptr [R12 + RDX*0x8],XMM0
MOVSD XMM0,qword ptr [R13 + RDX*0x8]
MULSD XMM0,XMM2
MOVSD qword ptr [R13 + RDX*0x8],XMM0
INC RDX
JMP 0x00177ddc
LAB_00177e16:
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* int OpenSubdiv::v3_6_0::Far::internal::EvaluatePatchBasis<double>(int,
OpenSubdiv::v3_6_0::Far::PatchParam const&, double, double, double*, double*, double*, double*,
double*, double*, double) */
int OpenSubdiv::v3_6_0::Far::internal::EvaluatePatchBasis<double>
(int param_1,PatchParam *param_2,double param_3,double param_4,double *param_5,
double *param_6,double *param_7,double *param_8,double *param_9,double *param_10,
double param_11)
{
char cVar1;
uint uVar2;
ulong uVar3;
ulong uVar4;
double dVar5;
double local_60;
double local_50;
double local_48;
double *local_40;
double local_38;
local_50 = param_4;
local_48 = param_3;
local_40 = param_5;
local_38 = param_11;
if (((uint)param_1 < 0xb) && ((0x430U >> (param_1 & 0x1fU) & 1) != 0)) {
PatchParam::NormalizeTriangle<double>(param_2,&local_48,&local_50);
cVar1 = PatchParam::IsTriangleRotated(param_2);
local_60 = DAT_001be508;
if (cVar1 != '\0') {
local_60 = DAT_001be558;
}
}
else {
PatchParam::Normalize<double>(param_2,&local_48,&local_50);
local_60 = DAT_001be508;
}
uVar2 = EvaluatePatchBasisNormalized<double>
(param_1,param_2,local_48,local_50,local_40,param_6,param_7,param_8,param_9,
param_10,local_38);
if (param_7 != (double *)0x0 && param_6 != (double *)0x0) {
dVar5 = (double)(1 << ((byte)param_2[4] & 0xf)) * local_60;
uVar4 = (ulong)(uint)(0 << ((byte)param_2[4] & 0xf));
uVar3 = (ulong)uVar2;
if ((int)uVar2 < 1) {
uVar3 = uVar4;
}
for (; uVar3 != uVar4; uVar4 = uVar4 + 1) {
param_6[uVar4] = param_6[uVar4] * dVar5;
param_7[uVar4] = param_7[uVar4] * dVar5;
}
if ((param_9 != (double *)0x0 && param_8 != (double *)0x0) && param_10 != (double *)0x0) {
dVar5 = local_60 * dVar5 * dVar5;
for (uVar4 = 0; uVar3 != uVar4; uVar4 = uVar4 + 1) {
param_8[uVar4] = param_8[uVar4] * dVar5;
param_9[uVar4] = param_9[uVar4] * dVar5;
param_10[uVar4] = param_10[uVar4] * dVar5;
}
}
}
return uVar2;
}
|
|
60,776
|
js_worker_ctor_internal
|
bluesky950520[P]quickjs/quickjs-libc.c
|
static JSValue js_worker_ctor_internal(JSContext *ctx, JSValue new_target,
JSWorkerMessagePipe *recv_pipe,
JSWorkerMessagePipe *send_pipe)
{
JSRuntime *rt = JS_GetRuntime(ctx);
JSThreadState *ts = js_get_thread_state(rt);
JSValue obj = JS_UNDEFINED, proto;
JSWorkerData *s;
/* create the object */
if (JS_IsUndefined(new_target)) {
proto = JS_GetClassProto(ctx, ts->worker_class_id);
} else {
proto = JS_GetPropertyStr(ctx, new_target, "prototype");
if (JS_IsException(proto))
goto fail;
}
obj = JS_NewObjectProtoClass(ctx, proto, ts->worker_class_id);
JS_FreeValue(ctx, proto);
if (JS_IsException(obj))
goto fail;
s = js_mallocz(ctx, sizeof(*s));
if (!s)
goto fail;
s->recv_pipe = js_dup_message_pipe(recv_pipe);
s->send_pipe = js_dup_message_pipe(send_pipe);
JS_SetOpaque(obj, s);
return obj;
fail:
JS_FreeValue(ctx, obj);
return JS_EXCEPTION;
}
|
O0
|
c
|
js_worker_ctor_internal:
subq $0xa8, %rsp
movq %rsi, 0x88(%rsp)
movq %rdx, 0x90(%rsp)
movq %rdi, 0x80(%rsp)
movq %rcx, 0x78(%rsp)
movq %r8, 0x70(%rsp)
movq 0x80(%rsp), %rdi
callq 0x27f00
movq %rax, 0x68(%rsp)
movq 0x68(%rsp), %rdi
callq 0x115d0
movq %rax, 0x60(%rsp)
movq 0xf359f(%rip), %rax # 0x10a310
movq %rax, 0x50(%rsp)
movq 0xf359b(%rip), %rax # 0x10a318
movq %rax, 0x58(%rsp)
movq 0x88(%rsp), %rdi
movq 0x90(%rsp), %rsi
callq 0x11930
cmpl $0x0, %eax
je 0x16dd1
movq 0x80(%rsp), %rdi
movq 0x60(%rsp), %rax
movl 0x7c(%rax), %esi
callq 0x27aa0
movq %rax, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x48(%rsp)
jmp 0x16e2e
movq 0x80(%rsp), %rdi
movq 0x88(%rsp), %rsi
movq 0x90(%rsp), %rdx
leaq 0xf7222(%rip), %rcx # 0x10e012
callq 0x31e80
movq %rax, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x40(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0x10390
cmpl $0x0, %eax
je 0x16e2c
jmp 0x16f14
jmp 0x16e2e
movq 0x80(%rsp), %rdi
movq 0x60(%rsp), %rax
movl 0x7c(%rax), %ecx
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
callq 0x29ea0
movq %rax, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x80(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
callq 0x23c90
movq 0x50(%rsp), %rdi
movq 0x58(%rsp), %rsi
callq 0x10390
cmpl $0x0, %eax
je 0x16e98
jmp 0x16f14
movq 0x80(%rsp), %rdi
movl $0x18, %esi
callq 0x21d30
movq %rax, 0x38(%rsp)
cmpq $0x0, 0x38(%rsp)
jne 0x16eb9
jmp 0x16f14
movq 0x78(%rsp), %rdi
callq 0x177a0
movq %rax, %rcx
movq 0x38(%rsp), %rax
movq %rcx, (%rax)
movq 0x70(%rsp), %rdi
callq 0x177a0
movq %rax, %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x38(%rsp), %rdx
movq 0x50(%rsp), %rdi
movq 0x58(%rsp), %rsi
callq 0x382f0
movq 0x50(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0xa0(%rsp)
jmp 0x16f42
movq 0x80(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
callq 0x23c90
movl $0x0, 0x98(%rsp)
movq $0x6, 0xa0(%rsp)
movq 0x98(%rsp), %rax
movq 0xa0(%rsp), %rdx
addq $0xa8, %rsp
retq
nopw (%rax,%rax)
|
js_worker_ctor_internal:
sub rsp, 0A8h
mov [rsp+0A8h+var_20], rsi
mov [rsp+0A8h+var_18], rdx
mov [rsp+0A8h+var_28], rdi
mov [rsp+0A8h+var_30], rcx
mov [rsp+0A8h+var_38], r8
mov rdi, [rsp+0A8h+var_28]
call JS_GetRuntime
mov [rsp+0A8h+var_40], rax
mov rdi, [rsp+0A8h+var_40]
call js_get_thread_state
mov [rsp+0A8h+var_48], rax
mov rax, cs:qword_10A310
mov [rsp+0A8h+var_58], rax
mov rax, cs:qword_10A318
mov [rsp+0A8h+var_50], rax
mov rdi, [rsp+0A8h+var_20]
mov rsi, [rsp+0A8h+var_18]
call JS_IsUndefined
cmp eax, 0
jz short loc_16DD1
mov rdi, [rsp+0A8h+var_28]
mov rax, [rsp+0A8h+var_48]
mov esi, [rax+7Ch]
call JS_GetClassProto
mov [rsp+0A8h+var_80], rax
mov [rsp+0A8h+var_78], rdx
mov rax, [rsp+0A8h+var_80]
mov [rsp+0A8h+var_68], rax
mov rax, [rsp+0A8h+var_78]
mov [rsp+0A8h+var_60], rax
jmp short loc_16E2E
loc_16DD1:
mov rdi, [rsp+0A8h+var_28]
mov rsi, [rsp+0A8h+var_20]
mov rdx, [rsp+0A8h+var_18]
lea rcx, aProxyBadProtot+0Bh; "prototype"
call JS_GetPropertyStr
mov [rsp+0A8h+var_90], rax
mov [rsp+0A8h+var_88], rdx
mov rax, [rsp+0A8h+var_90]
mov [rsp+0A8h+var_68], rax
mov rax, [rsp+0A8h+var_88]
mov [rsp+0A8h+var_60], rax
mov rdi, [rsp+0A8h+var_68]
mov rsi, [rsp+0A8h+var_60]
call JS_IsException_0
cmp eax, 0
jz short loc_16E2C
jmp loc_16F14
loc_16E2C:
jmp short $+2
loc_16E2E:
mov rdi, [rsp+0A8h+var_28]
mov rax, [rsp+0A8h+var_48]
mov ecx, [rax+7Ch]
mov rsi, [rsp+0A8h+var_68]
mov rdx, [rsp+0A8h+var_60]
call JS_NewObjectProtoClass
mov [rsp+0A8h+var_A0], rax
mov [rsp+0A8h+var_98], rdx
mov rax, [rsp+0A8h+var_A0]
mov [rsp+0A8h+var_58], rax
mov rax, [rsp+0A8h+var_98]
mov [rsp+0A8h+var_50], rax
mov rdi, [rsp+0A8h+var_28]
mov rsi, [rsp+0A8h+var_68]
mov rdx, [rsp+0A8h+var_60]
call JS_FreeValue
mov rdi, [rsp+0A8h+var_58]
mov rsi, [rsp+0A8h+var_50]
call JS_IsException_0
cmp eax, 0
jz short loc_16E98
jmp short loc_16F14
loc_16E98:
mov rdi, [rsp+0A8h+var_28]
mov esi, 18h
call js_mallocz
mov [rsp+0A8h+var_70], rax
cmp [rsp+0A8h+var_70], 0
jnz short loc_16EB9
jmp short loc_16F14
loc_16EB9:
mov rdi, [rsp+0A8h+var_30]
call js_dup_message_pipe
mov rcx, rax
mov rax, [rsp+0A8h+var_70]
mov [rax], rcx
mov rdi, [rsp+0A8h+var_38]
call js_dup_message_pipe
mov rcx, rax
mov rax, [rsp+0A8h+var_70]
mov [rax+8], rcx
mov rdx, [rsp+0A8h+var_70]
mov rdi, [rsp+0A8h+var_58]
mov rsi, [rsp+0A8h+var_50]
call JS_SetOpaque
mov rax, [rsp+0A8h+var_58]
mov [rsp+0A8h+var_10], rax
mov rax, [rsp+0A8h+var_50]
mov [rsp+0A8h+var_8], rax
jmp short loc_16F42
loc_16F14:
mov rdi, [rsp+0A8h+var_28]
mov rsi, [rsp+0A8h+var_58]
mov rdx, [rsp+0A8h+var_50]
call JS_FreeValue
mov dword ptr [rsp+0A8h+var_10], 0
mov [rsp+0A8h+var_8], 6
loc_16F42:
mov rax, [rsp+0A8h+var_10]
mov rdx, [rsp+0A8h+var_8]
add rsp, 0A8h
retn
|
long long js_worker_ctor_internal(long long a1, long long a2, long long a3, long long a4, long long a5)
{
int v5; // edx
int v6; // ecx
int v7; // r8d
int v8; // r9d
long long v9; // rdx
long long v10; // rax
long long v11; // rdx
long long v12; // rdx
long long PropertyStr; // [rsp+18h] [rbp-90h]
_QWORD *v15; // [rsp+38h] [rbp-70h]
long long ClassProto; // [rsp+40h] [rbp-68h]
long long v17; // [rsp+48h] [rbp-60h]
long long v18; // [rsp+50h] [rbp-58h]
long long v19; // [rsp+58h] [rbp-50h]
long long thread_state; // [rsp+60h] [rbp-48h]
int Runtime; // [rsp+68h] [rbp-40h]
long long v25; // [rsp+98h] [rbp-10h]
Runtime = JS_GetRuntime(a1);
thread_state = js_get_thread_state(Runtime, a2, v5, v6, v7, v8);
v18 = 0LL;
v19 = 3LL;
if ( JS_IsUndefined(a2, a3) )
{
ClassProto = JS_GetClassProto(a1, *(unsigned int *)(thread_state + 124));
v17 = v9;
v10 = JS_NewObjectProtoClass(a1, ClassProto, v9, *(unsigned int *)(thread_state + 124));
}
else
{
PropertyStr = JS_GetPropertyStr(a1, a2, a3, "prototype");
ClassProto = PropertyStr;
v17 = v12;
if ( JS_IsException_0(PropertyStr, v12) )
{
LABEL_8:
JS_FreeValue(a1, v18, v19);
LODWORD(v25) = 0;
return v25;
}
v10 = JS_NewObjectProtoClass(a1, PropertyStr, v17, *(unsigned int *)(thread_state + 124));
}
v18 = v10;
v19 = v11;
JS_FreeValue(a1, ClassProto, v17);
if ( JS_IsException_0(v18, v19) )
goto LABEL_8;
v15 = (_QWORD *)js_mallocz(a1, 24LL);
if ( !v15 )
goto LABEL_8;
*v15 = js_dup_message_pipe(a4);
v15[1] = js_dup_message_pipe(a5);
JS_SetOpaque(v18, v19, v15);
return v18;
}
|
js_worker_ctor_internal:
SUB RSP,0xa8
MOV qword ptr [RSP + 0x88],RSI
MOV qword ptr [RSP + 0x90],RDX
MOV qword ptr [RSP + 0x80],RDI
MOV qword ptr [RSP + 0x78],RCX
MOV qword ptr [RSP + 0x70],R8
MOV RDI,qword ptr [RSP + 0x80]
CALL 0x00127f00
MOV qword ptr [RSP + 0x68],RAX
MOV RDI,qword ptr [RSP + 0x68]
CALL 0x001115d0
MOV qword ptr [RSP + 0x60],RAX
MOV RAX,qword ptr [0x0020a310]
MOV qword ptr [RSP + 0x50],RAX
MOV RAX,qword ptr [0x0020a318]
MOV qword ptr [RSP + 0x58],RAX
MOV RDI,qword ptr [RSP + 0x88]
MOV RSI,qword ptr [RSP + 0x90]
CALL 0x00111930
CMP EAX,0x0
JZ 0x00116dd1
MOV RDI,qword ptr [RSP + 0x80]
MOV RAX,qword ptr [RSP + 0x60]
MOV ESI,dword ptr [RAX + 0x7c]
CALL 0x00127aa0
MOV qword ptr [RSP + 0x28],RAX
MOV qword ptr [RSP + 0x30],RDX
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x40],RAX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x48],RAX
JMP 0x00116e2e
LAB_00116dd1:
MOV RDI,qword ptr [RSP + 0x80]
MOV RSI,qword ptr [RSP + 0x88]
MOV RDX,qword ptr [RSP + 0x90]
LEA RCX,[0x20e012]
CALL 0x00131e80
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x20],RDX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x40],RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x48],RAX
MOV RDI,qword ptr [RSP + 0x40]
MOV RSI,qword ptr [RSP + 0x48]
CALL 0x00110390
CMP EAX,0x0
JZ 0x00116e2c
JMP 0x00116f14
LAB_00116e2c:
JMP 0x00116e2e
LAB_00116e2e:
MOV RDI,qword ptr [RSP + 0x80]
MOV RAX,qword ptr [RSP + 0x60]
MOV ECX,dword ptr [RAX + 0x7c]
MOV RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x48]
CALL 0x00129ea0
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP + 0x10],RDX
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x50],RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x58],RAX
MOV RDI,qword ptr [RSP + 0x80]
MOV RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x48]
CALL 0x00123c90
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x58]
CALL 0x00110390
CMP EAX,0x0
JZ 0x00116e98
JMP 0x00116f14
LAB_00116e98:
MOV RDI,qword ptr [RSP + 0x80]
MOV ESI,0x18
CALL 0x00121d30
MOV qword ptr [RSP + 0x38],RAX
CMP qword ptr [RSP + 0x38],0x0
JNZ 0x00116eb9
JMP 0x00116f14
LAB_00116eb9:
MOV RDI,qword ptr [RSP + 0x78]
CALL 0x001177a0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RAX],RCX
MOV RDI,qword ptr [RSP + 0x70]
CALL 0x001177a0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RAX + 0x8],RCX
MOV RDX,qword ptr [RSP + 0x38]
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x58]
CALL 0x001382f0
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x98],RAX
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0xa0],RAX
JMP 0x00116f42
LAB_00116f14:
MOV RDI,qword ptr [RSP + 0x80]
MOV RSI,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0x58]
CALL 0x00123c90
MOV dword ptr [RSP + 0x98],0x0
MOV qword ptr [RSP + 0xa0],0x6
LAB_00116f42:
MOV RAX,qword ptr [RSP + 0x98]
MOV RDX,qword ptr [RSP + 0xa0]
ADD RSP,0xa8
RET
|
int1 [16]
js_worker_ctor_internal
(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5)
{
int iVar1;
int8 uVar2;
long lVar3;
int8 *puVar4;
int1 auVar5 [16];
int1 auVar6 [16];
int8 local_68;
int8 local_60;
int8 local_58;
int8 local_50;
int4 local_10;
int4 uStack_c;
int8 local_8;
uVar2 = JS_GetRuntime(param_1);
lVar3 = js_get_thread_state(uVar2);
auVar6._8_8_ = DAT_0020a318;
auVar6._0_8_ = DAT_0020a310;
iVar1 = JS_IsUndefined(param_2,param_3);
if (iVar1 == 0) {
auVar5 = JS_GetPropertyStr(param_1,param_2,param_3,"prototype");
iVar1 = JS_IsException(auVar5._0_8_,auVar5._8_8_);
if (iVar1 == 0) goto LAB_00116e2e;
}
else {
auVar5 = JS_GetClassProto(param_1,*(int4 *)(lVar3 + 0x7c));
LAB_00116e2e:
local_60 = auVar5._8_8_;
local_68 = auVar5._0_8_;
auVar6 = JS_NewObjectProtoClass(param_1,local_68,local_60,*(int4 *)(lVar3 + 0x7c));
local_8 = auVar6._8_8_;
JS_FreeValue(param_1,local_68,local_60);
iVar1 = JS_IsException(auVar6._0_8_,local_8);
if ((iVar1 == 0) &&
(puVar4 = (int8 *)js_mallocz(param_1,0x18), puVar4 != (int8 *)0x0)) {
uVar2 = js_dup_message_pipe(param_4);
*puVar4 = uVar2;
uVar2 = js_dup_message_pipe(param_5);
puVar4[1] = uVar2;
JS_SetOpaque(auVar6._0_8_,local_8,puVar4);
local_10 = auVar6._0_4_;
uStack_c = auVar6._4_4_;
goto LAB_00116f42;
}
}
local_50 = auVar6._8_8_;
local_58 = auVar6._0_8_;
JS_FreeValue(param_1,local_58,local_50);
local_10 = 0;
local_8 = 6;
LAB_00116f42:
auVar5._4_4_ = uStack_c;
auVar5._0_4_ = local_10;
auVar5._8_8_ = local_8;
return auVar5;
}
|
|
60,777
|
js_worker_ctor_internal
|
bluesky950520[P]quickjs/quickjs-libc.c
|
static JSValue js_worker_ctor_internal(JSContext *ctx, JSValue new_target,
JSWorkerMessagePipe *recv_pipe,
JSWorkerMessagePipe *send_pipe)
{
JSRuntime *rt = JS_GetRuntime(ctx);
JSThreadState *ts = js_get_thread_state(rt);
JSValue obj = JS_UNDEFINED, proto;
JSWorkerData *s;
/* create the object */
if (JS_IsUndefined(new_target)) {
proto = JS_GetClassProto(ctx, ts->worker_class_id);
} else {
proto = JS_GetPropertyStr(ctx, new_target, "prototype");
if (JS_IsException(proto))
goto fail;
}
obj = JS_NewObjectProtoClass(ctx, proto, ts->worker_class_id);
JS_FreeValue(ctx, proto);
if (JS_IsException(obj))
goto fail;
s = js_mallocz(ctx, sizeof(*s));
if (!s)
goto fail;
s->recv_pipe = js_dup_message_pipe(recv_pipe);
s->send_pipe = js_dup_message_pipe(send_pipe);
JS_SetOpaque(obj, s);
return obj;
fail:
JS_FreeValue(ctx, obj);
return JS_EXCEPTION;
}
|
O3
|
c
|
js_worker_ctor_internal:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, (%rsp)
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %r13
movq %rdi, %rbx
callq 0x204e9
xorl %edi, %edi
movq %rax, %rsi
xorl %eax, %eax
callq 0x3bb70
movq %rax, %r12
cmpl $0x3, %r14d
jne 0x18afa
movl 0x7c(%r12), %esi
movq %rbx, %rdi
callq 0x200b2
movq %rax, %rbp
movq %rdx, %r14
jmp 0x18b26
leaq 0x8946d(%rip), %rcx # 0xa1f6e
movq %rbx, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x2491d
movq %rdx, %r14
cmpl $0x6, %r14d
jne 0x18b23
movl $0x3, %r12d
xorl %r13d, %r13d
jmp 0x18b87
movq %rax, %rbp
movl 0x7c(%r12), %ecx
movq %rbx, %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x21651
movq %rax, %r13
movq %rdx, %r12
movq %rbx, %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x1e1d5
cmpl $0x6, %r12d
je 0x18b87
movl $0x18, %esi
movq %rbx, %rdi
callq 0xee3f
testq %rax, %rax
je 0x18b87
lock
incl (%r15)
movq %r15, (%rax)
movq (%rsp), %rcx
lock
incl (%rcx)
movq %rcx, 0x8(%rax)
movq %r13, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x27ca4
jmp 0x18b9e
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x1e1d5
movl $0x6, %r12d
xorl %r13d, %r13d
movq %r13, %rax
movq %r12, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
js_worker_ctor_internal:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov [rsp+38h+var_38], r8
mov r15, rcx
mov r14, rdx
mov r13, rsi
mov rbx, rdi
call JS_GetRuntime
xor edi, edi
mov rsi, rax
xor eax, eax
call js_std_cmd
mov r12, rax
cmp r14d, 3
jnz short loc_18AFA
mov esi, [r12+7Ch]
mov rdi, rbx
call JS_GetClassProto
mov rbp, rax
mov r14, rdx
jmp short loc_18B26
loc_18AFA:
lea rcx, aProxyBadProtot+0Bh; "prototype"
mov rdi, rbx
mov rsi, r13
mov rdx, r14
call JS_GetPropertyStr
mov r14, rdx
cmp r14d, 6
jnz short loc_18B23
mov r12d, 3
xor r13d, r13d
jmp short loc_18B87
loc_18B23:
mov rbp, rax
loc_18B26:
mov ecx, [r12+7Ch]
mov rdi, rbx
mov rsi, rbp
mov rdx, r14
call JS_NewObjectProtoClass
mov r13, rax
mov r12, rdx
mov rdi, rbx
mov rsi, rbp
mov rdx, r14
call JS_FreeValue
cmp r12d, 6
jz short loc_18B87
mov esi, 18h
mov rdi, rbx
call js_mallocz
test rax, rax
jz short loc_18B87
lock inc dword ptr [r15]
mov [rax], r15
mov rcx, [rsp+38h+var_38]
lock inc dword ptr [rcx]
mov [rax+8], rcx
mov rdi, r13
mov rsi, r12
mov rdx, rax
call JS_SetOpaque
jmp short loc_18B9E
loc_18B87:
mov rdi, rbx
mov rsi, r13
mov rdx, r12
call JS_FreeValue
mov r12d, 6
xor r13d, r13d
loc_18B9E:
mov rax, r13
mov rdx, r12
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long js_worker_ctor_internal(
long long a1,
long long a2,
long long a3,
volatile signed __int32 *a4,
volatile signed __int32 *a5)
{
int Runtime; // eax
int v8; // edx
int v9; // ecx
int v10; // r8d
int v11; // r9d
long long v12; // rax
long long v13; // r12
long long ClassProto; // rbp
long long v15; // rdx
long long v16; // r14
long long PropertyStr; // rax
long long v18; // rdx
long long v19; // r12
long long v20; // r13
long long v21; // rdx
_QWORD *v22; // rax
Runtime = JS_GetRuntime(a1);
v12 = js_std_cmd(0, Runtime, v8, v9, v10, v11);
v13 = v12;
if ( (_DWORD)a3 == 3 )
{
ClassProto = JS_GetClassProto(a1, *(unsigned int *)(v12 + 124));
v16 = v15;
}
else
{
PropertyStr = JS_GetPropertyStr(a1, a2, a3, "prototype");
v16 = v18;
if ( (_DWORD)v18 == 6 )
{
v19 = 3LL;
v20 = 0LL;
LABEL_9:
JS_FreeValue(a1, v20, v19);
return 0LL;
}
ClassProto = PropertyStr;
}
v20 = JS_NewObjectProtoClass(a1, ClassProto, v16, *(unsigned int *)(v13 + 124));
v19 = v21;
JS_FreeValue(a1, ClassProto, v16);
if ( (_DWORD)v19 == 6 )
goto LABEL_9;
v22 = (_QWORD *)js_mallocz(a1, 0x18uLL);
if ( !v22 )
goto LABEL_9;
_InterlockedIncrement(a4);
*v22 = a4;
_InterlockedIncrement(a5);
v22[1] = a5;
JS_SetOpaque(v20, v19, v22);
return v20;
}
|
js_worker_ctor_internal:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV qword ptr [RSP],R8
MOV R15,RCX
MOV R14,RDX
MOV R13,RSI
MOV RBX,RDI
CALL 0x001204e9
XOR EDI,EDI
MOV RSI,RAX
XOR EAX,EAX
CALL 0x0013bb70
MOV R12,RAX
CMP R14D,0x3
JNZ 0x00118afa
MOV ESI,dword ptr [R12 + 0x7c]
MOV RDI,RBX
CALL 0x001200b2
MOV RBP,RAX
MOV R14,RDX
JMP 0x00118b26
LAB_00118afa:
LEA RCX,[0x1a1f6e]
MOV RDI,RBX
MOV RSI,R13
MOV RDX,R14
CALL 0x0012491d
MOV R14,RDX
CMP R14D,0x6
JNZ 0x00118b23
MOV R12D,0x3
XOR R13D,R13D
JMP 0x00118b87
LAB_00118b23:
MOV RBP,RAX
LAB_00118b26:
MOV ECX,dword ptr [R12 + 0x7c]
MOV RDI,RBX
MOV RSI,RBP
MOV RDX,R14
CALL 0x00121651
MOV R13,RAX
MOV R12,RDX
MOV RDI,RBX
MOV RSI,RBP
MOV RDX,R14
CALL 0x0011e1d5
CMP R12D,0x6
JZ 0x00118b87
MOV ESI,0x18
MOV RDI,RBX
CALL 0x0010ee3f
TEST RAX,RAX
JZ 0x00118b87
INC.LOCK dword ptr [R15]
MOV qword ptr [RAX],R15
MOV RCX,qword ptr [RSP]
INC.LOCK dword ptr [RCX]
MOV qword ptr [RAX + 0x8],RCX
MOV RDI,R13
MOV RSI,R12
MOV RDX,RAX
CALL 0x00127ca4
JMP 0x00118b9e
LAB_00118b87:
MOV RDI,RBX
MOV RSI,R13
MOV RDX,R12
CALL 0x0011e1d5
MOV R12D,0x6
XOR R13D,R13D
LAB_00118b9e:
MOV RAX,R13
MOV RDX,R12
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int1 [16]
js_worker_ctor_internal
(int8 param_1,int8 param_2,int8 param_3,int *param_4,int *param_5)
{
int8 uVar1;
long lVar2;
int8 *puVar3;
int1 auVar4 [16];
int1 auVar5 [16];
uVar1 = JS_GetRuntime();
lVar2 = js_std_cmd(0,uVar1);
if ((int)param_3 == 3) {
auVar4 = JS_GetClassProto(param_1,*(int4 *)(lVar2 + 0x7c));
}
else {
auVar4 = JS_GetPropertyStr(param_1,param_2,param_3,"prototype");
if (auVar4._8_4_ == 6) {
auVar5 = ZEXT816(3) << 0x40;
goto LAB_00118b87;
}
}
auVar5 = JS_NewObjectProtoClass(param_1,auVar4._0_8_,auVar4._8_8_,*(int4 *)(lVar2 + 0x7c));
JS_FreeValue(param_1,auVar4._0_8_,auVar4._8_8_);
if ((auVar5._8_4_ != 6) &&
(puVar3 = (int8 *)js_mallocz(param_1,0x18), puVar3 != (int8 *)0x0)) {
LOCK();
*param_4 = *param_4 + 1;
UNLOCK();
*puVar3 = param_4;
LOCK();
*param_5 = *param_5 + 1;
UNLOCK();
puVar3[1] = param_5;
JS_SetOpaque(auVar5._0_8_,auVar5._8_8_,puVar3);
return auVar5;
}
LAB_00118b87:
JS_FreeValue(param_1,auVar5._0_8_,auVar5._8_8_);
return ZEXT816(6) << 0x40;
}
|
|
60,778
|
cxxopts::exceptions::invalid_option_format::invalid_option_format(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
shubhamoy[P]dir2txt/include/cxxopts.hpp
|
explicit invalid_option_format(const std::string& format)
: specification("Invalid option format " + LQUOTE + format + RQUOTE)
{
}
|
O3
|
cpp
|
cxxopts::exceptions::invalid_option_format::invalid_option_format(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x60, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18b45(%rip), %rsi # 0x3613f
leaq 0x3119f(%rip), %rdx # 0x4e7a0
leaq 0x40(%rsp), %r15
movq %r15, %rdi
callq 0x1d782
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r15, %rdi
callq 0x9fb4
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1d643
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x1d64a
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x31155(%rip), %rsi # 0x4e7c0
movq 0x31156(%rip), %rdx # 0x4e7c8
callq 0x9fb4
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1d69e
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x1d6a5
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x20(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
callq 0x1d80a
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x1d6e0
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x8380
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x1d6f6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8380
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d711
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x8380
leaq 0x2fc00(%rip), %rax # 0x4d318
movq %rax, (%rbx)
addq $0x60, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x1d744
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x8380
jmp 0x1d744
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x1d75f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8380
jmp 0x1d75f
movq %rax, %rbx
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d77a
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x8380
movq %rbx, %rdi
callq 0x85d0
|
_ZN7cxxopts10exceptions21invalid_option_formatC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r15
push r14
push rbx
sub rsp, 60h
mov r14, rsi
mov rbx, rdi
lea rsi, aInvalidOptionF; "Invalid option format "
lea rdx, _ZN7cxxopts12_GLOBAL__N_16LQUOTEB5cxx11E; cxxopts::`anonymous namespace'::LQUOTE
lea r15, [rsp+78h+var_38]
mov rdi, r15
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&)
mov rsi, [r14]
mov rdx, [r14+8]
mov rdi, r15
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
lea r14, [rsp+78h+var_68]
mov [r14-10h], r14
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_1D643
mov [rsp+78h+var_78], rdx
mov rdx, [rcx]
mov [rsp+78h+var_68], rdx
jmp short loc_1D64A
loc_1D643:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r14], xmm0
loc_1D64A:
mov rdx, [rax+8]
mov rdi, rsp
mov [rdi+8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
mov rsi, cs:_ZN7cxxopts12_GLOBAL__N_16RQUOTEB5cxx11E; cxxopts::`anonymous namespace'::RQUOTE
mov rdx, cs:qword_4E7C8
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
lea r15, [rsp+78h+var_48]
mov [r15-10h], r15
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_1D69E
mov [rsp+78h+var_58], rdx
mov rdx, [rcx]
mov [rsp+78h+var_48], rdx
jmp short loc_1D6A5
loc_1D69E:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r15], xmm0
loc_1D6A5:
mov rdx, [rax+8]
lea rsi, [rsp+78h+var_58]
mov [rsi+8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
mov rdi, rbx
call _ZN7cxxopts10exceptions13specificationC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; cxxopts::exceptions::specification::specification(std::string const&)
mov rdi, [rsp+78h+var_58]; void *
cmp rdi, r15
jz short loc_1D6E0
mov rsi, [rsp+78h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1D6E0:
mov rdi, [rsp+78h+var_78]; void *
cmp rdi, r14
jz short loc_1D6F6
mov rsi, [rsp+78h+var_68]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1D6F6:
lea rax, [rsp+78h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1D711
mov rsi, [rsp+78h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1D711:
lea rax, off_4D318
mov [rbx], rax
add rsp, 60h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
mov rdi, [rsp+arg_18]; void *
cmp rdi, r15
jz short loc_1D744
mov rsi, [rsp+arg_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_1D744
mov rbx, rax
loc_1D744:
mov rdi, [rsp+0]; void *
cmp rdi, r14
jz short loc_1D75F
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_1D75F
mov rbx, rax
loc_1D75F:
lea rax, [rsp+arg_48]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1D77A
mov rsi, [rsp+arg_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1D77A:
mov rdi, rbx
call __Unwind_Resume
|
void ( ** cxxopts::exceptions::invalid_option_format::invalid_option_format(
_QWORD *a1,
long long a2))(cxxopts::exceptions::exception *__hidden this)
{
_QWORD *v2; // rax
__int128 *v3; // rcx
_QWORD *v4; // rax
__int128 *v5; // rcx
void ( **result)(cxxopts::exceptions::exception *__hidden); // rax
void *v7[2]; // [rsp+0h] [rbp-78h] BYREF
__int128 v8; // [rsp+10h] [rbp-68h] BYREF
void *v9; // [rsp+20h] [rbp-58h]
long long v10; // [rsp+28h] [rbp-50h]
__int128 v11; // [rsp+30h] [rbp-48h] BYREF
void *v12[2]; // [rsp+40h] [rbp-38h] BYREF
long long v13; // [rsp+50h] [rbp-28h] BYREF
std::operator+<char>(v12, "Invalid option format ", &cxxopts::`anonymous namespace'::LQUOTE[abi:cxx11]);
v2 = std::string::_M_append(v12, *(_BYTE **)a2, *(_QWORD *)(a2 + 8));
v7[0] = &v8;
v3 = (__int128 *)(v2 + 2);
if ( (_QWORD *)*v2 == v2 + 2 )
{
v8 = *v3;
}
else
{
v7[0] = *(void **)v2;
*(_QWORD *)&v8 = *(_QWORD *)v3;
}
v7[1] = *((void **)v2 + 1);
*v2 = v3;
v2[1] = 0LL;
*((_BYTE *)v2 + 16) = 0;
v4 = std::string::_M_append(v7, (_BYTE *)cxxopts::`anonymous namespace'::RQUOTE[abi:cxx11], qword_4E7C8);
v9 = &v11;
v5 = (__int128 *)(v4 + 2);
if ( (_QWORD *)*v4 == v4 + 2 )
{
v11 = *v5;
}
else
{
v9 = (void *)*v4;
*(_QWORD *)&v11 = *(_QWORD *)v5;
}
v10 = v4[1];
*v4 = v5;
v4[1] = 0LL;
*((_BYTE *)v4 + 16) = 0;
cxxopts::exceptions::specification::specification(a1);
if ( v9 != &v11 )
operator delete(v9, v11 + 1);
if ( v7[0] != &v8 )
operator delete(v7[0], v8 + 1);
if ( v12[0] != &v13 )
operator delete(v12[0], v13 + 1);
result = off_4D318;
*a1 = off_4D318;
return result;
}
|
invalid_option_format:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x60
MOV R14,RSI
MOV RBX,RDI
LEA RSI,[0x13613f]
LEA RDX,[0x14e7a0]
LEA R15,[RSP + 0x40]
MOV RDI,R15
CALL 0x0011d782
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
LAB_0011d615:
MOV RDI,R15
CALL 0x00109fb4
LEA R14,[RSP + 0x10]
MOV qword ptr [R14 + -0x10],R14
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x0011d643
MOV qword ptr [RSP],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x10],RDX
JMP 0x0011d64a
LAB_0011d643:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R14],XMM0
LAB_0011d64a:
MOV RDX,qword ptr [RAX + 0x8]
MOV RDI,RSP
MOV qword ptr [RDI + 0x8],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
MOV RSI,qword ptr [0x0014e7c0]
MOV RDX,qword ptr [0x0014e7c8]
LAB_0011d672:
CALL 0x00109fb4
LEA R15,[RSP + 0x30]
MOV qword ptr [R15 + -0x10],R15
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x0011d69e
MOV qword ptr [RSP + 0x20],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x30],RDX
JMP 0x0011d6a5
LAB_0011d69e:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R15],XMM0
LAB_0011d6a5:
MOV RDX,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0x20]
MOV qword ptr [RSI + 0x8],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
LAB_0011d6c1:
MOV RDI,RBX
CALL 0x0011d80a
LAB_0011d6c9:
MOV RDI,qword ptr [RSP + 0x20]
CMP RDI,R15
JZ 0x0011d6e0
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x00108380
LAB_0011d6e0:
MOV RDI,qword ptr [RSP]
CMP RDI,R14
JZ 0x0011d6f6
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x00108380
LAB_0011d6f6:
LEA RAX,[RSP + 0x50]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0011d711
MOV RSI,qword ptr [RSP + 0x50]
INC RSI
CALL 0x00108380
LAB_0011d711:
LEA RAX,[0x14d318]
MOV qword ptr [RBX],RAX
ADD RSP,0x60
POP RBX
POP R14
POP R15
RET
|
/* cxxopts::exceptions::invalid_option_format::invalid_option_format(std::__cxx11::string const&) */
void __thiscall
cxxopts::exceptions::invalid_option_format::invalid_option_format
(invalid_option_format *this,string *param_1)
{
long *plVar1;
long *plVar2;
long *local_78;
long local_70;
long local_68;
long lStack_60;
long *local_58;
long local_50;
long local_48;
long lStack_40;
long *local_38 [2];
long local_28 [2];
std::operator+((char *)local_38,(string *)"Invalid option format ");
/* try { // try from 0011d615 to 0011d61c has its CatchHandler @ 0011d75c */
plVar1 = (long *)std::__cxx11::string::_M_append
((string *)local_38,*(char **)param_1,*(ulong *)(param_1 + 8));
plVar2 = plVar1 + 2;
if ((long *)*plVar1 == plVar2) {
local_68 = *plVar2;
lStack_60 = plVar1[3];
local_78 = &local_68;
}
else {
local_68 = *plVar2;
local_78 = (long *)*plVar1;
}
local_70 = plVar1[1];
*plVar1 = (long)plVar2;
plVar1[1] = 0;
*(int1 *)(plVar1 + 2) = 0;
/* try { // try from 0011d672 to 0011d676 has its CatchHandler @ 0011d741 */
plVar1 = (long *)std::__cxx11::string::_M_append
((string *)&local_78,(anonymous_namespace)::RQUOTE_abi_cxx11_,
DAT_0014e7c8);
plVar2 = plVar1 + 2;
if ((long *)*plVar1 == plVar2) {
local_48 = *plVar2;
lStack_40 = plVar1[3];
local_58 = &local_48;
}
else {
local_48 = *plVar2;
local_58 = (long *)*plVar1;
}
local_50 = plVar1[1];
*plVar1 = (long)plVar2;
plVar1[1] = 0;
*(int1 *)(plVar1 + 2) = 0;
/* try { // try from 0011d6c1 to 0011d6c8 has its CatchHandler @ 0011d725 */
specification::specification((specification *)this,(string *)&local_58);
if (local_58 != &local_48) {
operator_delete(local_58,local_48 + 1);
}
if (local_78 != &local_68) {
operator_delete(local_78,local_68 + 1);
}
if (local_38[0] != local_28) {
operator_delete(local_38[0],local_28[0] + 1);
}
*(int ***)this = &PTR__exception_0014d318;
return;
}
|
|
60,779
|
ma_crypt_write
|
eloqsql/storage/maria/ma_crypt.c
|
int
ma_crypt_write(MARIA_SHARE* share, File file)
{
MARIA_CRYPT_DATA *crypt_data= share->crypt_data;
uchar buff[2 + 4 + sizeof(crypt_data->scheme.iv)];
if (crypt_data == 0)
return 0;
buff[0]= crypt_data->scheme.type;
buff[1]= sizeof(buff) - 2;
int4store(buff + 2, crypt_data->space);
memcpy(buff + 6, crypt_data->scheme.iv, sizeof(crypt_data->scheme.iv));
if (mysql_file_write(file, buff, sizeof(buff), MYF(MY_NABP)))
return 1;
return 0;
}
|
O3
|
c
|
ma_crypt_write:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x70, %rsp
movq %fs:0x28, %rax
movq %rax, -0x18(%rbp)
movq 0xc20(%rdi), %rax
testq %rax, %rax
je 0x67000
movl %esi, %ebx
movb 0x54(%rax), %cl
movb %cl, -0x30(%rbp)
movb $0x14, -0x2f(%rbp)
movl 0x60(%rax), %ecx
movl %ecx, -0x2e(%rbp)
movups (%rax), %xmm0
movups %xmm0, -0x2a(%rbp)
leaq 0x31f049(%rip), %rax # 0x386010
movq (%rax), %rax
leaq -0x80(%rbp), %rdi
movl $0x7, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x6701a
leaq -0x30(%rbp), %rsi
movl $0x16, %edx
movl $0x4, %ecx
movl %ebx, %edi
callq 0x2efe4
movq %rax, %rcx
xorl %eax, %eax
testq %rcx, %rcx
setne %al
jmp 0x67002
xorl %eax, %eax
movq %fs:0x28, %rcx
cmpq -0x18(%rbp), %rcx
jne 0x67034
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq -0x30(%rbp), %rdx
leaq -0x38(%rbp), %r14
movq %rax, %rdi
movl %ebx, %esi
movq %r14, %rcx
callq 0x2d04a
movq (%r14), %rcx
jmp 0x66ff6
callq 0x29250
|
ma_crypt_write:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 70h
mov rax, fs:28h
mov [rbp+var_18], rax
mov rax, [rdi+0C20h]
test rax, rax
jz short loc_67000
mov ebx, esi
mov cl, [rax+54h]
mov [rbp+var_30], cl
mov [rbp+var_2F], 14h
mov ecx, [rax+60h]
mov [rbp+var_2E], ecx
movups xmm0, xmmword ptr [rax]
movups [rbp+var_2A], xmm0
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_80]
mov edx, 7
call qword ptr [rax+158h]
test rax, rax
jnz short loc_6701A
lea rsi, [rbp+var_30]
mov edx, 16h
mov ecx, 4
mov edi, ebx
call my_write
mov rcx, rax
loc_66FF6:
xor eax, eax
test rcx, rcx
setnz al
jmp short loc_67002
loc_67000:
xor eax, eax
loc_67002:
mov rcx, fs:28h
cmp rcx, [rbp+var_18]
jnz short loc_67034
add rsp, 70h
pop rbx
pop r14
pop rbp
retn
loc_6701A:
lea rdx, [rbp+var_30]
lea r14, [rbp+var_38]
mov rdi, rax
mov esi, ebx
mov rcx, r14
call ma_crypt_write_cold_1
mov rcx, [r14]
jmp short loc_66FF6
loc_67034:
call ___stack_chk_fail
|
_BOOL8 ma_crypt_write(long long a1, long long a2)
{
__int128 *v2; // rax
long long v3; // rax
long long v4; // rcx
_BYTE v6[72]; // [rsp+0h] [rbp-80h] BYREF
long long v7; // [rsp+48h] [rbp-38h] BYREF
_BYTE v8[2]; // [rsp+50h] [rbp-30h] BYREF
int v9; // [rsp+52h] [rbp-2Eh]
__int128 v10; // [rsp+56h] [rbp-2Ah]
unsigned long long v11; // [rsp+68h] [rbp-18h]
v11 = __readfsqword(0x28u);
v2 = *(__int128 **)(a1 + 3104);
if ( !v2 )
return 0LL;
v8[0] = *((_BYTE *)v2 + 84);
v8[1] = 20;
v9 = *((_DWORD *)v2 + 24);
v10 = *v2;
v3 = ((long long ( *)(_BYTE *, long long, long long))PSI_server[43])(v6, a2, 7LL);
if ( v3 )
{
ma_crypt_write_cold_1(v3, a2, (long long)v8, &v7);
v4 = v7;
}
else
{
v4 = my_write(a2, (long long)v8, 22LL, 4LL);
}
return v4 != 0;
}
|
ma_crypt_write:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0x70
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RDI + 0xc20]
TEST RAX,RAX
JZ 0x00167000
MOV EBX,ESI
MOV CL,byte ptr [RAX + 0x54]
MOV byte ptr [RBP + -0x30],CL
MOV byte ptr [RBP + -0x2f],0x14
MOV ECX,dword ptr [RAX + 0x60]
MOV dword ptr [RBP + -0x2e],ECX
MOVUPS XMM0,xmmword ptr [RAX]
MOVUPS xmmword ptr [RBP + -0x2a],XMM0
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0x80]
MOV EDX,0x7
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x0016701a
LEA RSI,[RBP + -0x30]
MOV EDX,0x16
MOV ECX,0x4
MOV EDI,EBX
CALL 0x0012efe4
MOV RCX,RAX
LAB_00166ff6:
XOR EAX,EAX
TEST RCX,RCX
SETNZ AL
JMP 0x00167002
LAB_00167000:
XOR EAX,EAX
LAB_00167002:
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x18]
JNZ 0x00167034
ADD RSP,0x70
POP RBX
POP R14
POP RBP
RET
LAB_0016701a:
LEA RDX,[RBP + -0x30]
LEA R14,[RBP + -0x38]
MOV RDI,RAX
MOV ESI,EBX
MOV RCX,R14
CALL 0x0012d04a
MOV RCX,qword ptr [R14]
JMP 0x00166ff6
LAB_00167034:
CALL 0x00129250
|
bool ma_crypt_write(long param_1,ulong param_2)
{
int4 *puVar1;
long lVar2;
long in_FS_OFFSET;
bool bVar3;
int1 local_88 [72];
long local_40;
int1 local_38;
int1 local_37;
int4 local_36;
int4 local_32;
int4 uStack_2e;
int4 uStack_2a;
int4 uStack_26;
long local_20;
local_20 = *(long *)(in_FS_OFFSET + 0x28);
puVar1 = *(int4 **)(param_1 + 0xc20);
if (puVar1 == (int4 *)0x0) {
bVar3 = false;
}
else {
local_38 = *(int1 *)(puVar1 + 0x15);
local_37 = 0x14;
local_36 = puVar1[0x18];
local_32 = *puVar1;
uStack_2e = puVar1[1];
uStack_2a = puVar1[2];
uStack_26 = puVar1[3];
lVar2 = (**(code **)(PSI_server + 0x158))(local_88,param_2,7);
if (lVar2 == 0) {
local_40 = my_write(param_2 & 0xffffffff,&local_38,0x16,4);
}
else {
ma_crypt_write_cold_1(lVar2,param_2 & 0xffffffff,&local_38,&local_40);
}
bVar3 = local_40 != 0;
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_20) {
return bVar3;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
60,780
|
fil_space_encrypt_valid_page_type(fil_space_t const*, unsigned char const*)
|
eloqsql/storage/innobase/fil/fil0crypt.cc
|
static bool fil_space_encrypt_valid_page_type(
const fil_space_t* space,
const byte* src_frame)
{
switch (fil_page_get_type(src_frame)) {
case FIL_PAGE_RTREE:
return space->full_crc32();
case FIL_PAGE_TYPE_FSP_HDR:
case FIL_PAGE_TYPE_XDES:
return false;
}
return true;
}
|
O0
|
cpp
|
fil_space_encrypt_valid_page_type(fil_space_t const*, unsigned char const*):
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rdi
callq 0x814470
movzwl %ax, %eax
movl %eax, -0x1c(%rbp)
addl $-0x8, %eax
subl $0x2, %eax
jb 0x106a085
jmp 0x106a069
movl -0x1c(%rbp), %eax
subl $0x45be, %eax # imm = 0x45BE
jne 0x106a08b
jmp 0x106a075
movq -0x10(%rbp), %rdi
callq 0x8144a0
andb $0x1, %al
movb %al, -0x1(%rbp)
jmp 0x106a08f
movb $0x0, -0x1(%rbp)
jmp 0x106a08f
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
_ZL33fil_space_encrypt_valid_page_typePK11fil_space_tPKh:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rdi, [rbp+var_18]; unsigned __int8 *
call _Z17fil_page_get_typePKh; fil_page_get_type(uchar const*)
movzx eax, ax
mov [rbp+var_1C], eax
add eax, 0FFFFFFF8h
sub eax, 2
jb short loc_106A085
jmp short $+2
loc_106A069:
mov eax, [rbp+var_1C]
sub eax, 45BEh
jnz short loc_106A08B
jmp short $+2
loc_106A075:
mov rdi, [rbp+var_10]; this
call _ZNK11fil_space_t10full_crc32Ev; fil_space_t::full_crc32(void)
and al, 1
mov [rbp+var_1], al
jmp short loc_106A08F
loc_106A085:
mov [rbp+var_1], 0
jmp short loc_106A08F
loc_106A08B:
mov [rbp+var_1], 1
loc_106A08F:
mov al, [rbp+var_1]
and al, 1
add rsp, 20h
pop rbp
retn
|
bool fil_space_encrypt_valid_page_type(fil_space_t **a1, const unsigned __int8 *a2)
{
int type; // [rsp+4h] [rbp-1Ch]
type = (unsigned __int16)fil_page_get_type(a2);
if ( (unsigned int)(type - 8) < 2 )
return 0;
if ( type == 17854 )
return fil_space_t::full_crc32(a1);
return 1;
}
|
reset_events_waits_by_host:
PUSH RBP
MOV RBP,RSP
LEA RDI,[0x26ba548]
LEA RSI,[0x106a060]
CALL 0x01068c10
POP RBP
RET
|
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* reset_events_waits_by_host() */
void reset_events_waits_by_host(void)
{
PFS_buffer_scalable_container<PFS_host,128,128,PFS_host_array,PFS_host_allocator>::apply
((PFS_buffer_scalable_container<PFS_host,128,128,PFS_host_array,PFS_host_allocator> *)
&global_host_container,fct_reset_events_waits_by_host);
return;
}
|
|
60,781
|
deflateReset
|
3fs/build_O3/src/apache-arrow-cpp/cpp/zlib_ep-prefix/src/zlib_ep/deflate.c
|
int ZEXPORT deflateReset(strm)
z_streamp strm;
{
int ret;
ret = deflateResetKeep(strm);
if (ret == Z_OK)
lm_init(strm->state);
return ret;
}
|
O3
|
c
|
deflateReset:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
callq 0x32b0
movl %eax, %ebx
testl %eax, %eax
jne 0x423e
movq 0x38(%r14), %r14
movl 0x50(%r14), %eax
addq %rax, %rax
movq %rax, 0x68(%r14)
movq 0x78(%r14), %rdi
movl 0x84(%r14), %edx
decl %edx
movw $0x0, (%rdi,%rdx,2)
addq %rdx, %rdx
xorl %r15d, %r15d
xorl %esi, %esi
callq 0x3140
movslq 0xc4(%r14), %rax
shlq $0x4, %rax
leaq 0x12ac9(%rip), %rcx # 0x16ca0
movzwl 0x2(%rax,%rcx), %edx
movl %edx, 0xc0(%r14)
movzwl (%rax,%rcx), %edx
movl %edx, 0xcc(%r14)
movzwl 0x4(%rax,%rcx), %edx
movl %edx, 0xd0(%r14)
movzwl 0x6(%rax,%rcx), %eax
movl %eax, 0xbc(%r14)
movq %r15, 0x98(%r14)
movabsq $0x200000000, %rax # imm = 0x200000000
movq %rax, 0xb4(%r14)
movl %r15d, 0x172c(%r14)
movl $0x2, 0xa0(%r14)
movq %r15, 0xa8(%r14)
movl %r15d, 0x80(%r14)
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
|
deflateReset:
push r15
push r14
push rbx
mov r14, rdi
call _deflateResetKeep
mov ebx, eax
test eax, eax
jnz loc_423E
mov r14, [r14+38h]
mov eax, [r14+50h]
add rax, rax
mov [r14+68h], rax
mov rdi, [r14+78h]
mov edx, [r14+84h]
dec edx
mov word ptr [rdi+rdx*2], 0
add rdx, rdx
xor r15d, r15d
xor esi, esi
call _memset
movsxd rax, dword ptr [r14+0C4h]
shl rax, 4
lea rcx, configuration_table
movzx edx, word ptr [rax+rcx+2]
mov [r14+0C0h], edx
movzx edx, word ptr [rax+rcx]
mov [r14+0CCh], edx
movzx edx, word ptr [rax+rcx+4]
mov [r14+0D0h], edx
movzx eax, word ptr [rax+rcx+6]
mov [r14+0BCh], eax
mov [r14+98h], r15
mov rax, 200000000h
mov [r14+0B4h], rax
mov [r14+172Ch], r15d
mov dword ptr [r14+0A0h], 2
mov [r14+0A8h], r15
mov [r14+80h], r15d
loc_423E:
mov eax, ebx
pop rbx
pop r14
pop r15
retn
|
long long deflateReset(long long a1)
{
unsigned int v1; // ebx
long long v2; // r14
long long v3; // rdi
long long v4; // rdx
long long v5; // rax
v1 = deflateResetKeep();
if ( !v1 )
{
v2 = *(_QWORD *)(a1 + 56);
*(_QWORD *)(v2 + 104) = 2LL * *(unsigned int *)(v2 + 80);
v3 = *(_QWORD *)(v2 + 120);
v4 = (unsigned int)(*(_DWORD *)(v2 + 132) - 1);
*(_WORD *)(v3 + 2 * v4) = 0;
memset(v3, 0LL, 2 * v4);
v5 = 16LL * *(int *)(v2 + 196);
*(_DWORD *)(v2 + 192) = *(unsigned __int16 *)((char *)&configuration_table + v5 + 2);
*(_DWORD *)(v2 + 204) = *(unsigned __int16 *)((char *)&configuration_table + v5);
*(_DWORD *)(v2 + 208) = *(unsigned __int16 *)((char *)&configuration_table + v5 + 4);
*(_DWORD *)(v2 + 188) = *(unsigned __int16 *)((char *)&configuration_table + v5 + 6);
*(_QWORD *)(v2 + 152) = 0LL;
*(_QWORD *)(v2 + 180) = 0x200000000LL;
*(_DWORD *)(v2 + 5932) = 0;
*(_DWORD *)(v2 + 160) = 2;
*(_QWORD *)(v2 + 168) = 0LL;
*(_DWORD *)(v2 + 128) = 0;
}
return v1;
}
|
deflateReset:
PUSH R15
PUSH R14
PUSH RBX
MOV R14,RDI
CALL 0x001032b0
MOV EBX,EAX
TEST EAX,EAX
JNZ 0x0010423e
MOV R14,qword ptr [R14 + 0x38]
MOV EAX,dword ptr [R14 + 0x50]
ADD RAX,RAX
MOV qword ptr [R14 + 0x68],RAX
MOV RDI,qword ptr [R14 + 0x78]
MOV EDX,dword ptr [R14 + 0x84]
DEC EDX
MOV word ptr [RDI + RDX*0x2],0x0
ADD RDX,RDX
XOR R15D,R15D
XOR ESI,ESI
CALL 0x00103140
MOVSXD RAX,dword ptr [R14 + 0xc4]
SHL RAX,0x4
LEA RCX,[0x116ca0]
MOVZX EDX,word ptr [RAX + RCX*0x1 + 0x2]
MOV dword ptr [R14 + 0xc0],EDX
MOVZX EDX,word ptr [RAX + RCX*0x1]
MOV dword ptr [R14 + 0xcc],EDX
MOVZX EDX,word ptr [RAX + RCX*0x1 + 0x4]
MOV dword ptr [R14 + 0xd0],EDX
MOVZX EAX,word ptr [RAX + RCX*0x1 + 0x6]
MOV dword ptr [R14 + 0xbc],EAX
MOV qword ptr [R14 + 0x98],R15
MOV RAX,0x200000000
MOV qword ptr [R14 + 0xb4],RAX
MOV dword ptr [R14 + 0x172c],R15D
MOV dword ptr [R14 + 0xa0],0x2
MOV qword ptr [R14 + 0xa8],R15
MOV dword ptr [R14 + 0x80],R15D
LAB_0010423e:
MOV EAX,EBX
POP RBX
POP R14
POP R15
RET
|
int deflateReset(long param_1)
{
long lVar1;
void *__s;
int iVar2;
long lVar3;
ulong uVar4;
iVar2 = deflateResetKeep();
if (iVar2 == 0) {
lVar1 = *(long *)(param_1 + 0x38);
*(ulong *)(lVar1 + 0x68) = (ulong)*(uint *)(lVar1 + 0x50) * 2;
__s = *(void **)(lVar1 + 0x78);
uVar4 = (ulong)(*(int *)(lVar1 + 0x84) - 1);
*(int2 *)((long)__s + uVar4 * 2) = 0;
memset(__s,0,uVar4 * 2);
lVar3 = (long)*(int *)(lVar1 + 0xc4) * 0x10;
*(uint *)(lVar1 + 0xc0) = (uint)*(ushort *)(configuration_table + lVar3 + 2);
*(uint *)(lVar1 + 0xcc) = (uint)*(ushort *)(configuration_table + lVar3);
*(uint *)(lVar1 + 0xd0) = (uint)*(ushort *)(configuration_table + lVar3 + 4);
*(uint *)(lVar1 + 0xbc) = (uint)*(ushort *)(configuration_table + lVar3 + 6);
*(int8 *)(lVar1 + 0x98) = 0;
*(int8 *)(lVar1 + 0xb4) = 0x200000000;
*(int4 *)(lVar1 + 0x172c) = 0;
*(int4 *)(lVar1 + 0xa0) = 2;
*(int8 *)(lVar1 + 0xa8) = 0;
*(int4 *)(lVar1 + 0x80) = 0;
}
return iVar2;
}
|
|
60,782
|
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>>>>>::get_token_string() const
|
monkey531[P]llama/common/json.hpp
|
std::string get_token_string() const
{
// escape control characters
std::string result;
for (const auto c : token_string)
{
if (static_cast<unsigned char>(c) <= '\x1F')
{
// escape control characters
std::array<char, 9> cs{{}};
static_cast<void>((std::snprintf)(cs.data(), cs.size(), "<U+%.4X>", static_cast<unsigned char>(c))); // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
result += cs.data();
}
else
{
// add character as is
result.push_back(static_cast<std::string::value_type>(c));
}
}
return result;
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::get_token_string() const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq 0x38(%rsi), %r13
movq 0x40(%rsi), %rbp
cmpq %rbp, %r13
je 0x5b173
leaq 0x91ff1(%rip), %r14 # 0xed115
leaq 0x8(%rsp), %r15
movzbl (%r13), %ecx
cmpl $0x1f, %ecx
ja 0x5b160
movb $0x0, 0x10(%rsp)
movq $0x0, 0x8(%rsp)
movl $0x9, %esi
movq %r15, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x1ade0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1b0e0
jmp 0x5b16b
movsbl %cl, %esi
movq %rbx, %rdi
callq 0x1a770
incq %r13
cmpq %rbp, %r13
jne 0x5b129
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5b187
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x5b19e
movq (%r12), %rsi
incq %rsi
callq 0x1a8e0
movq %r14, %rdi
callq 0x1af90
|
_ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, rdi
lea r12, [rdi+10h]
mov [rdi], r12
mov qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov r13, [rsi+38h]
mov rbp, [rsi+40h]
cmp r13, rbp
jz short loc_5B173
lea r14, aU4x; "<U+%.4X>"
lea r15, [rsp+48h+var_40]
loc_5B129:
movzx ecx, byte ptr [r13+0]
cmp ecx, 1Fh
ja short loc_5B160
mov [rsp+48h+var_38], 0
mov [rsp+48h+var_40], 0
mov esi, 9
mov rdi, r15
mov rdx, r14
xor eax, eax
call _snprintf
mov rdi, rbx
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
jmp short loc_5B16B
loc_5B160:
movsx esi, cl
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
loc_5B16B:
inc r13
cmp r13, rbp
jnz short loc_5B129
loc_5B173:
mov rax, rbx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_5B187:
mov r14, rax
mov rdi, [rbx]; void *
cmp rdi, r12
jz short loc_5B19E
mov rsi, [r12]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5B19E:
mov rdi, r14
call __Unwind_Resume
|
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>>>::get_token_string(
long long a1,
long long a2)
{
unsigned __int8 *v2; // r13
unsigned __int8 *i; // rbp
unsigned int v4; // ecx
long long v6; // [rsp+8h] [rbp-40h] BYREF
char v7; // [rsp+10h] [rbp-38h]
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
v2 = *(unsigned __int8 **)(a2 + 56);
for ( i = *(unsigned __int8 **)(a2 + 64); v2 != i; ++v2 )
{
v4 = *v2;
if ( v4 > 0x1F )
{
std::string::push_back(a1, (unsigned int)(char)v4);
}
else
{
v7 = 0;
v6 = 0LL;
snprintf(&v6, 9LL, "<U+%.4X>", v4);
std::string::append(a1, &v6);
}
}
return a1;
}
|
get_token_string:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
LEA R12,[RDI + 0x10]
MOV qword ptr [RDI],R12
MOV qword ptr [RDI + 0x8],0x0
MOV byte ptr [RDI + 0x10],0x0
MOV R13,qword ptr [RSI + 0x38]
MOV RBP,qword ptr [RSI + 0x40]
CMP R13,RBP
JZ 0x0015b173
LEA R14,[0x1ed115]
LEA R15,[RSP + 0x8]
LAB_0015b129:
MOVZX ECX,byte ptr [R13]
CMP ECX,0x1f
JA 0x0015b160
MOV byte ptr [RSP + 0x10],0x0
MOV qword ptr [RSP + 0x8],0x0
MOV ESI,0x9
MOV RDI,R15
MOV RDX,R14
XOR EAX,EAX
CALL 0x0011ade0
LAB_0015b153:
MOV RDI,RBX
MOV RSI,R15
CALL 0x0011b0e0
JMP 0x0015b16b
LAB_0015b160:
MOVSX ESI,CL
MOV RDI,RBX
CALL 0x0011a770
LAB_0015b16b:
INC R13
CMP R13,RBP
JNZ 0x0015b129
LAB_0015b173:
MOV RAX,RBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > > >::get_token_string() const */
void 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>>>
::get_token_string(void)
{
byte *pbVar1;
long in_RSI;
long *in_RDI;
byte *pbVar2;
char local_40 [16];
*in_RDI = (long)(in_RDI + 2);
in_RDI[1] = 0;
*(int1 *)(in_RDI + 2) = 0;
pbVar2 = *(byte **)(in_RSI + 0x38);
pbVar1 = *(byte **)(in_RSI + 0x40);
if (pbVar2 != pbVar1) {
do {
if (*pbVar2 < 0x20) {
local_40[8] = 0;
local_40[0] = '\0';
local_40[1] = '\0';
local_40[2] = '\0';
local_40[3] = '\0';
local_40[4] = '\0';
local_40[5] = '\0';
local_40[6] = '\0';
local_40[7] = '\0';
snprintf(local_40,9,"<U+%.4X>");
/* try { // try from 0015b153 to 0015b15d has its CatchHandler @ 0015b187 */
std::__cxx11::string::append((char *)in_RDI);
}
else {
/* try { // try from 0015b160 to 0015b16a has its CatchHandler @ 0015b185 */
std::__cxx11::string::push_back((char)in_RDI);
}
pbVar2 = pbVar2 + 1;
} while (pbVar2 != pbVar1);
}
return;
}
|
|
60,783
|
ma_update_static_record
|
eloqsql/storage/maria/ma_statrec.c
|
my_bool _ma_update_static_record(MARIA_HA *info, MARIA_RECORD_POS pos,
const uchar *oldrec __attribute__ ((unused)),
const uchar *record)
{
info->rec_cache.seek_not_done=1; /* We have done a seek */
return (info->s->file_write(info,
record, info->s->base.reclength,
pos,
MYF(MY_NABP)) != 0);
}
|
O3
|
c
|
ma_update_static_record:
pushq %rbp
movq %rsp, %rbp
movq %rsi, %rax
movl $0x1, 0x598(%rdi)
movq (%rdi), %r9
movq 0x398(%r9), %rdx
movl $0x4, %r8d
movq %rcx, %rsi
movq %rax, %rcx
callq *0x6e8(%r9)
testq %rax, %rax
setne %al
popq %rbp
retq
|
_ma_update_static_record:
push rbp
mov rbp, rsp
mov rax, rsi
mov dword ptr [rdi+598h], 1
mov r9, [rdi]
mov rdx, [r9+398h]
mov r8d, 4
mov rsi, rcx
mov rcx, rax
call qword ptr [r9+6E8h]
test rax, rax
setnz al
pop rbp
retn
|
bool ma_update_static_record(_DWORD *a1, long long a2, long long a3, long long a4)
{
a1[358] = 1;
return (*(long long ( **)(_DWORD *, long long, _QWORD, long long, long long))(*(_QWORD *)a1 + 1768LL))(
a1,
a4,
*(_QWORD *)(*(_QWORD *)a1 + 920LL),
a2,
4LL) != 0;
}
|
_ma_update_static_record:
PUSH RBP
MOV RBP,RSP
MOV RAX,RSI
MOV dword ptr [RDI + 0x598],0x1
MOV R9,qword ptr [RDI]
MOV RDX,qword ptr [R9 + 0x398]
MOV R8D,0x4
MOV RSI,RCX
MOV RCX,RAX
CALL qword ptr [R9 + 0x6e8]
TEST RAX,RAX
SETNZ AL
POP RBP
RET
|
bool _ma_update_static_record
(long *param_1,int8 param_2,int8 param_3,int8 param_4)
{
long lVar1;
*(int4 *)(param_1 + 0xb3) = 1;
lVar1 = (**(code **)(*param_1 + 0x6e8))
(param_1,param_4,*(int8 *)(*param_1 + 0x398),param_2,4);
return lVar1 != 0;
}
|
|
60,784
|
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, 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>>>>> nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::parser<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>>>>>(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>>>>, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool)
|
11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp
|
static ::nlohmann::detail::parser<basic_json, InputAdapterType> parser(
InputAdapterType adapter,
detail::parser_callback_t<basic_json>cb = nullptr,
const bool allow_exceptions = true,
const bool ignore_comments = false
)
{
return ::nlohmann::detail::parser<basic_json, InputAdapterType>(std::move(adapter),
std::move(cb), allow_exceptions, ignore_comments);
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, 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>>>>> nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::parser<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>>>>>(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>>>>, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool):
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq %rsi, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x18(%rcx), %rax
movq %rax, 0x18(%rsp)
movq 0x10(%rcx), %rax
testq %rax, %rax
je 0x17779
movups (%rcx), %xmm1
addq $0x10, %rcx
movaps %xmm1, (%rsp)
movq %rax, 0x10(%rsp)
movups %xmm0, (%rcx)
movzbl %r8b, %ecx
movzbl %r9b, %r8d
leaq 0x20(%rsp), %rsi
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x11850
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x177a8
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
retq
jmp 0x177d5
movq %rax, %rbx
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x177cd
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rdi
callq 0x11fe0
movq %rax, %rdi
callq 0x1532e
nop
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6parserINS0_6detail22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS9_EEEEEENSF_6parserISD_T_EESO_St8functionIFbiNSF_13parse_event_tERSD_EEbb:
push rbx
sub rsp, 30h
mov rbx, rdi
mov [rsp+38h+var_18], rsi
mov [rsp+38h+var_10], rdx
xorps xmm0, xmm0
movaps [rsp+38h+var_38], xmm0
mov [rsp+38h+var_28], 0
mov rax, [rcx+18h]
mov [rsp+38h+var_20], rax
mov rax, [rcx+10h]
test rax, rax
jz short loc_17779
movups xmm1, xmmword ptr [rcx]
add rcx, 10h
movaps [rsp+38h+var_38], xmm1
mov [rsp+38h+var_28], rax
movups xmmword ptr [rcx], xmm0
loc_17779:
movzx ecx, r8b
movzx r8d, r9b
lea rsi, [rsp+38h+var_18]
mov rdx, rsp
mov rdi, rbx
call __ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEEC2EOSM_St8functionIFbiNS1_13parse_event_tERSF_EEbb; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parser(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<std::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)
mov rax, [rsp+38h+var_28]
test rax, rax
jz short loc_177A8
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_177A8:
mov rax, rbx
add rsp, 30h
pop rbx
retn
jmp short loc_177D5
mov rbx, rax
mov rax, [rsp+38h+var_28]
test rax, rax
jz short loc_177CD
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_177CD:
mov rdi, rbx
call __Unwind_Resume
loc_177D5:
mov rdi, rax
call __clang_call_terminate
|
long long nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(
long long a1,
long long a2,
long long a3,
__int128 *a4,
unsigned __int8 a5,
unsigned __int8 a6)
{
void ( *v6)(__int128 *, __int128 *, long long); // rax
__int128 v8; // [rsp+0h] [rbp-38h] BYREF
void ( *v9)(__int128 *, __int128 *, long long); // [rsp+10h] [rbp-28h]
long long v10; // [rsp+18h] [rbp-20h]
_QWORD v11[3]; // [rsp+20h] [rbp-18h] BYREF
v11[0] = a2;
v11[1] = a3;
v8 = 0LL;
v9 = 0LL;
v10 = *((_QWORD *)a4 + 3);
v6 = (void ( *)(__int128 *, __int128 *, long long))*((_QWORD *)a4 + 2);
if ( v6 )
{
v8 = *a4;
v9 = v6;
a4[1] = 0LL;
}
((void ( *)(long long, _QWORD *, __int128 *, _QWORD, _QWORD))nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parser)(
a1,
v11,
&v8,
a5,
a6);
if ( v9 )
v9(&v8, &v8, 3LL);
return a1;
}
|
parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>:
PUSH RBX
SUB RSP,0x30
MOV RBX,RDI
MOV qword ptr [RSP + 0x20],RSI
MOV qword ptr [RSP + 0x28],RDX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x10],0x0
MOV RAX,qword ptr [RCX + 0x18]
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [RCX + 0x10]
TEST RAX,RAX
JZ 0x00117779
MOVUPS XMM1,xmmword ptr [RCX]
ADD RCX,0x10
MOVAPS xmmword ptr [RSP],XMM1
MOV qword ptr [RSP + 0x10],RAX
MOVUPS xmmword ptr [RCX],XMM0
LAB_00117779:
MOVZX ECX,R8B
MOVZX R8D,R9B
LEA RSI,[RSP + 0x20]
MOV RDX,RSP
MOV RDI,RBX
CALL 0x00111850
MOV RAX,qword ptr [RSP + 0x10]
TEST RAX,RAX
JZ 0x001177a8
LAB_0011779b:
MOV RDI,RSP
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_001177a8:
MOV RAX,RBX
ADD RSP,0x30
POP RBX
RET
|
/* nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > > > nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >,
void>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > >
>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > >, std::function<bool (int,
nlohmann::json_abi_v3_11_3::detail::parse_event_t,
nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::string, bool, long,
unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer,
std::vector<unsigned char, std::allocator<unsigned char> >, void>&)>, bool, bool) */
parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
* nlohmann::json_abi_v3_11_3::
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::
parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
(parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*param_1,int8 param_2,int8 param_3,int8 *param_4,int1 param_5,
int1 param_6)
{
code *pcVar1;
int8 local_38;
int8 uStack_30;
code *local_28;
int8 local_20;
int8 local_18;
int8 local_10;
local_38 = 0;
uStack_30 = 0;
local_28 = (code *)0x0;
local_20 = param_4[3];
pcVar1 = (code *)param_4[2];
if (pcVar1 != (code *)0x0) {
local_38 = *param_4;
uStack_30 = param_4[1];
param_4[2] = 0;
param_4[3] = 0;
local_28 = pcVar1;
}
/* try { // try from 00117779 to 00117790 has its CatchHandler @ 001177b3 */
local_18 = param_2;
local_10 = param_3;
detail::
parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::parser(param_1,&local_18,&local_38,param_5,param_6);
if (local_28 != (code *)0x0) {
/* try { // try from 0011779b to 001177a7 has its CatchHandler @ 001177b1 */
(*local_28)(&local_38,&local_38,3);
}
return param_1;
}
|
|
60,785
|
PFS_memory_stat::full_aggregate_to(PFS_memory_stat*) const
|
eloqsql/storage/perfschema/pfs_stat.h
|
inline void full_aggregate_to(PFS_memory_stat *stat) const
{
if (! m_used)
return;
stat->m_used= true;
stat->m_alloc_count+= m_alloc_count;
stat->m_free_count+= m_free_count;
stat->m_alloc_size+= m_alloc_size;
stat->m_free_size+= m_free_size;
stat->m_alloc_count_capacity+= m_alloc_count_capacity;
stat->m_free_count_capacity+= m_free_count_capacity;
stat->m_alloc_size_capacity+= m_alloc_size_capacity;
stat->m_free_size_capacity+= m_free_size_capacity;
}
|
O0
|
c
|
PFS_memory_stat::full_aggregate_to(PFS_memory_stat*) const:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
testb $0x1, (%rax)
jne 0x3f38e
jmp 0x3f419
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movb $0x1, (%rcx)
movq 0x8(%rax), %rdx
movq -0x10(%rbp), %rcx
addq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rcx)
movq 0x10(%rax), %rdx
movq -0x10(%rbp), %rcx
addq 0x10(%rcx), %rdx
movq %rdx, 0x10(%rcx)
movq 0x18(%rax), %rdx
movq -0x10(%rbp), %rcx
addq 0x18(%rcx), %rdx
movq %rdx, 0x18(%rcx)
movq 0x20(%rax), %rdx
movq -0x10(%rbp), %rcx
addq 0x20(%rcx), %rdx
movq %rdx, 0x20(%rcx)
movq 0x28(%rax), %rdx
movq -0x10(%rbp), %rcx
addq 0x28(%rcx), %rdx
movq %rdx, 0x28(%rcx)
movq 0x30(%rax), %rdx
movq -0x10(%rbp), %rcx
addq 0x30(%rcx), %rdx
movq %rdx, 0x30(%rcx)
movq 0x38(%rax), %rdx
movq -0x10(%rbp), %rcx
addq 0x38(%rcx), %rdx
movq %rdx, 0x38(%rcx)
movq 0x40(%rax), %rcx
movq -0x10(%rbp), %rax
addq 0x40(%rax), %rcx
movq %rcx, 0x40(%rax)
popq %rbp
retq
nopl (%rax,%rax)
|
_ZNK15PFS_memory_stat17full_aggregate_toEPS_:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
mov [rbp+var_18], rax
test byte ptr [rax], 1
jnz short loc_3F38E
jmp loc_3F419
loc_3F38E:
mov rax, [rbp+var_18]
mov rcx, [rbp+var_10]
mov byte ptr [rcx], 1
mov rdx, [rax+8]
mov rcx, [rbp+var_10]
add rdx, [rcx+8]
mov [rcx+8], rdx
mov rdx, [rax+10h]
mov rcx, [rbp+var_10]
add rdx, [rcx+10h]
mov [rcx+10h], rdx
mov rdx, [rax+18h]
mov rcx, [rbp+var_10]
add rdx, [rcx+18h]
mov [rcx+18h], rdx
mov rdx, [rax+20h]
mov rcx, [rbp+var_10]
add rdx, [rcx+20h]
mov [rcx+20h], rdx
mov rdx, [rax+28h]
mov rcx, [rbp+var_10]
add rdx, [rcx+28h]
mov [rcx+28h], rdx
mov rdx, [rax+30h]
mov rcx, [rbp+var_10]
add rdx, [rcx+30h]
mov [rcx+30h], rdx
mov rdx, [rax+38h]
mov rcx, [rbp+var_10]
add rdx, [rcx+38h]
mov [rcx+38h], rdx
mov rcx, [rax+40h]
mov rax, [rbp+var_10]
add rcx, [rax+40h]
mov [rax+40h], rcx
loc_3F419:
pop rbp
retn
|
PFS_memory_stat * PFS_memory_stat::full_aggregate_to(PFS_memory_stat *this, PFS_memory_stat *a2)
{
PFS_memory_stat *result; // rax
result = this;
if ( (*(_BYTE *)this & 1) != 0 )
{
*(_BYTE *)a2 = 1;
*((_QWORD *)a2 + 1) += *((_QWORD *)this + 1);
*((_QWORD *)a2 + 2) += *((_QWORD *)this + 2);
*((_QWORD *)a2 + 3) += *((_QWORD *)this + 3);
*((_QWORD *)a2 + 4) += *((_QWORD *)this + 4);
*((_QWORD *)a2 + 5) += *((_QWORD *)this + 5);
*((_QWORD *)a2 + 6) += *((_QWORD *)this + 6);
*((_QWORD *)a2 + 7) += *((_QWORD *)this + 7);
result = a2;
*((_QWORD *)a2 + 8) += *((_QWORD *)this + 8);
}
return result;
}
|
full_aggregate_to:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RAX
TEST byte ptr [RAX],0x1
JNZ 0x0013f38e
JMP 0x0013f419
LAB_0013f38e:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
MOV byte ptr [RCX],0x1
MOV RDX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
ADD RDX,qword ptr [RCX + 0x8]
MOV qword ptr [RCX + 0x8],RDX
MOV RDX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RBP + -0x10]
ADD RDX,qword ptr [RCX + 0x10]
MOV qword ptr [RCX + 0x10],RDX
MOV RDX,qword ptr [RAX + 0x18]
MOV RCX,qword ptr [RBP + -0x10]
ADD RDX,qword ptr [RCX + 0x18]
MOV qword ptr [RCX + 0x18],RDX
MOV RDX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RBP + -0x10]
ADD RDX,qword ptr [RCX + 0x20]
MOV qword ptr [RCX + 0x20],RDX
MOV RDX,qword ptr [RAX + 0x28]
MOV RCX,qword ptr [RBP + -0x10]
ADD RDX,qword ptr [RCX + 0x28]
MOV qword ptr [RCX + 0x28],RDX
MOV RDX,qword ptr [RAX + 0x30]
MOV RCX,qword ptr [RBP + -0x10]
ADD RDX,qword ptr [RCX + 0x30]
MOV qword ptr [RCX + 0x30],RDX
MOV RDX,qword ptr [RAX + 0x38]
MOV RCX,qword ptr [RBP + -0x10]
ADD RDX,qword ptr [RCX + 0x38]
MOV qword ptr [RCX + 0x38],RDX
MOV RCX,qword ptr [RAX + 0x40]
MOV RAX,qword ptr [RBP + -0x10]
ADD RCX,qword ptr [RAX + 0x40]
MOV qword ptr [RAX + 0x40],RCX
LAB_0013f419:
POP RBP
RET
|
/* PFS_memory_stat::full_aggregate_to(PFS_memory_stat*) const */
void __thiscall PFS_memory_stat::full_aggregate_to(PFS_memory_stat *this,PFS_memory_stat *param_1)
{
if (((byte)*this & 1) != 0) {
*param_1 = (PFS_memory_stat)0x1;
*(long *)(param_1 + 8) = *(long *)(this + 8) + *(long *)(param_1 + 8);
*(long *)(param_1 + 0x10) = *(long *)(this + 0x10) + *(long *)(param_1 + 0x10);
*(long *)(param_1 + 0x18) = *(long *)(this + 0x18) + *(long *)(param_1 + 0x18);
*(long *)(param_1 + 0x20) = *(long *)(this + 0x20) + *(long *)(param_1 + 0x20);
*(long *)(param_1 + 0x28) = *(long *)(this + 0x28) + *(long *)(param_1 + 0x28);
*(long *)(param_1 + 0x30) = *(long *)(this + 0x30) + *(long *)(param_1 + 0x30);
*(long *)(param_1 + 0x38) = *(long *)(this + 0x38) + *(long *)(param_1 + 0x38);
*(long *)(param_1 + 0x40) = *(long *)(this + 0x40) + *(long *)(param_1 + 0x40);
}
return;
}
|
|
60,786
|
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);
}
|
O0
|
c
|
my_l10tostr_mb2_or_mb4:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x58(%rbp)
movq %rsi, -0x60(%rbp)
movq %rdx, -0x68(%rbp)
movl %ecx, -0x6c(%rbp)
movq %r8, -0x78(%rbp)
movl $0x0, -0x9c(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0xa8(%rbp)
leaq -0x50(%rbp), %rax
addq $0x41, %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
movb $0x0, (%rax)
cmpl $0x0, -0x6c(%rbp)
jge 0x5f39c
cmpq $0x0, -0x78(%rbp)
jge 0x5f39a
movl $0x1, -0x9c(%rbp)
xorl %eax, %eax
subq -0xa8(%rbp), %rax
movq %rax, -0xa8(%rbp)
jmp 0x5f39c
movq -0xa8(%rbp), %rax
movl $0xa, %ecx
xorl %edx, %edx
divq %rcx
movq %rax, -0x98(%rbp)
movq -0xa8(%rbp), %rax
imulq $0xa, -0x98(%rbp), %rcx
subq %rcx, %rax
movsbl %al, %eax
addl $0x30, %eax
movb %al, %cl
movq -0x80(%rbp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, -0x80(%rbp)
movb %cl, -0x1(%rax)
movq -0x98(%rbp), %rax
movq %rax, -0x78(%rbp)
cmpq $0x0, -0x78(%rbp)
je 0x5f43d
movq -0x78(%rbp), %rax
movl $0xa, %ecx
cqto
idivq %rcx
movq %rax, -0x98(%rbp)
movq -0x78(%rbp), %rax
imulq $0xa, -0x98(%rbp), %rcx
subq %rcx, %rax
movsbl %al, %eax
addl $0x30, %eax
movb %al, %cl
movq -0x80(%rbp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, -0x80(%rbp)
movb %cl, -0x1(%rax)
movq -0x98(%rbp), %rax
movq %rax, -0x78(%rbp)
jmp 0x5f3eb
cmpl $0x0, -0x9c(%rbp)
je 0x5f459
movq -0x80(%rbp), %rax
movq %rax, %rcx
addq $-0x1, %rcx
movq %rcx, -0x80(%rbp)
movb $0x2d, -0x1(%rax)
movq -0x60(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x60(%rbp), %rax
addq -0x68(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x60(%rbp), %rcx
xorl %eax, %eax
cmpq -0x90(%rbp), %rcx
movb %al, -0xad(%rbp)
jae 0x5f49b
movq -0x80(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0xad(%rbp)
movb -0xad(%rbp), %al
testb $0x1, %al
jne 0x5f4a7
jmp 0x5f509
movq -0x58(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x30(%rax), %rax
movq -0x58(%rbp), %rdi
movq -0x80(%rbp), %rcx
movsbq (%rcx), %rsi
movq -0x60(%rbp), %rdx
movq -0x90(%rbp), %rcx
callq *%rax
movl %eax, -0xac(%rbp)
cmpl $0x0, -0xac(%rbp)
jle 0x5f4f4
movl -0xac(%rbp), %ecx
movq -0x60(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
jmp 0x5f4f6
jmp 0x5f509
jmp 0x5f4f8
movq -0x80(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x80(%rbp)
jmp 0x5f473
movl -0x60(%rbp), %eax
movl -0x88(%rbp), %ecx
subl %ecx, %eax
cltq
movq %rax, -0xb8(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x5f53f
movq -0xb8(%rbp), %rax
addq $0xc0, %rsp
popq %rbp
retq
callq 0x24300
nopw %cs:(%rax,%rax)
|
my_l10tostr_mb2_or_mb4:
push rbp
mov rbp, rsp
sub rsp, 0C0h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_58], rdi
mov [rbp+var_60], rsi
mov [rbp+var_68], rdx
mov [rbp+var_6C], ecx
mov [rbp+var_78], r8
mov [rbp+var_9C], 0
mov rax, [rbp+var_78]
mov [rbp+var_A8], rax
lea rax, [rbp+var_50]
add rax, 41h ; 'A'
mov [rbp+var_80], rax
mov rax, [rbp+var_80]
mov byte ptr [rax], 0
cmp [rbp+var_6C], 0
jge short loc_5F39C
cmp [rbp+var_78], 0
jge short loc_5F39A
mov [rbp+var_9C], 1
xor eax, eax
sub rax, [rbp+var_A8]
mov [rbp+var_A8], rax
loc_5F39A:
jmp short $+2
loc_5F39C:
mov rax, [rbp+var_A8]
mov ecx, 0Ah
xor edx, edx
div rcx
mov [rbp+var_98], rax
mov rax, [rbp+var_A8]
imul rcx, [rbp+var_98], 0Ah
sub rax, rcx
movsx eax, al
add eax, 30h ; '0'
mov cl, al
mov rax, [rbp+var_80]
mov rdx, rax
add rdx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_80], rdx
mov [rax-1], cl
mov rax, [rbp+var_98]
mov [rbp+var_78], rax
loc_5F3EB:
cmp [rbp+var_78], 0
jz short loc_5F43D
mov rax, [rbp+var_78]
mov ecx, 0Ah
cqo
idiv rcx
mov [rbp+var_98], rax
mov rax, [rbp+var_78]
imul rcx, [rbp+var_98], 0Ah
sub rax, rcx
movsx eax, al
add eax, 30h ; '0'
mov cl, al
mov rax, [rbp+var_80]
mov rdx, rax
add rdx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_80], rdx
mov [rax-1], cl
mov rax, [rbp+var_98]
mov [rbp+var_78], rax
jmp short loc_5F3EB
loc_5F43D:
cmp [rbp+var_9C], 0
jz short loc_5F459
mov rax, [rbp+var_80]
mov rcx, rax
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_80], rcx
mov byte ptr [rax-1], 2Dh ; '-'
loc_5F459:
mov rax, [rbp+var_60]
mov [rbp+var_88], rax
mov rax, [rbp+var_60]
add rax, [rbp+var_68]
mov [rbp+var_90], rax
loc_5F473:
mov rcx, [rbp+var_60]
xor eax, eax
cmp rcx, [rbp+var_90]
mov [rbp+var_AD], al
jnb short loc_5F49B
mov rax, [rbp+var_80]
movsx eax, byte ptr [rax]
cmp eax, 0
setnz al
mov [rbp+var_AD], al
loc_5F49B:
mov al, [rbp+var_AD]
test al, 1
jnz short loc_5F4A7
jmp short loc_5F509
loc_5F4A7:
mov rax, [rbp+var_58]
mov rax, [rax+0B8h]
mov rax, [rax+30h]
mov rdi, [rbp+var_58]
mov rcx, [rbp+var_80]
movsx rsi, byte ptr [rcx]
mov rdx, [rbp+var_60]
mov rcx, [rbp+var_90]
call rax
mov [rbp+var_AC], eax
cmp [rbp+var_AC], 0
jle short loc_5F4F4
mov ecx, [rbp+var_AC]
mov rax, [rbp+var_60]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_60], rax
jmp short loc_5F4F6
loc_5F4F4:
jmp short loc_5F509
loc_5F4F6:
jmp short $+2
loc_5F4F8:
mov rax, [rbp+var_80]
add rax, 1
mov [rbp+var_80], rax
jmp loc_5F473
loc_5F509:
mov eax, dword ptr [rbp+var_60]
mov ecx, dword ptr [rbp+var_88]
sub eax, ecx
cdqe
mov [rbp+var_B8], rax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_5F53F
mov rax, [rbp+var_B8]
add rsp, 0C0h
pop rbp
retn
loc_5F53F:
call ___stack_chk_fail
|
long long my_l10tostr_mb2_or_mb4(long long a1, unsigned long long a2, long long a3, int a4, long long a5)
{
_BYTE *v5; // rax
_BYTE *v6; // rax
bool v8; // [rsp+13h] [rbp-ADh]
int v9; // [rsp+14h] [rbp-ACh]
unsigned long long v10; // [rsp+18h] [rbp-A8h]
int v11; // [rsp+24h] [rbp-9Ch]
unsigned long long v12; // [rsp+30h] [rbp-90h]
_BYTE *v13; // [rsp+40h] [rbp-80h]
signed long long i; // [rsp+48h] [rbp-78h]
unsigned long long v15; // [rsp+60h] [rbp-60h]
_BYTE v16[8]; // [rsp+B0h] [rbp-10h] BYREF
unsigned long long v17; // [rsp+B8h] [rbp-8h]
v17 = __readfsqword(0x28u);
v15 = a2;
v11 = 0;
v10 = a5;
v16[1] = 0;
if ( a4 < 0 && a5 < 0 )
{
v11 = 1;
v10 = -a5;
}
v13 = v16;
v16[0] = v10 % 0xA + 48;
for ( i = v10 / 0xA; i; i /= 10LL )
{
v5 = v13--;
*(v5 - 1) = i % 10 + 48;
}
if ( v11 )
{
v6 = v13--;
*(v6 - 1) = 45;
}
v12 = a3 + a2;
while ( 1 )
{
v8 = 0;
if ( v15 < v12 )
v8 = *v13 != 0;
if ( !v8 )
break;
v9 = (*(long long ( **)(long long, _QWORD, unsigned long long, unsigned long long))(*(_QWORD *)(a1 + 184) + 48LL))(
a1,
(char)*v13,
v15,
v12);
if ( v9 <= 0 )
break;
v15 += v9;
++v13;
}
return (int)v15 - (int)a2;
}
|
my_l10tostr_mb2_or_mb4:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xc0
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x58],RDI
MOV qword ptr [RBP + -0x60],RSI
MOV qword ptr [RBP + -0x68],RDX
MOV dword ptr [RBP + -0x6c],ECX
MOV qword ptr [RBP + -0x78],R8
MOV dword ptr [RBP + -0x9c],0x0
MOV RAX,qword ptr [RBP + -0x78]
MOV qword ptr [RBP + -0xa8],RAX
LEA RAX,[RBP + -0x50]
ADD RAX,0x41
MOV qword ptr [RBP + -0x80],RAX
MOV RAX,qword ptr [RBP + -0x80]
MOV byte ptr [RAX],0x0
CMP dword ptr [RBP + -0x6c],0x0
JGE 0x0015f39c
CMP qword ptr [RBP + -0x78],0x0
JGE 0x0015f39a
MOV dword ptr [RBP + -0x9c],0x1
XOR EAX,EAX
SUB RAX,qword ptr [RBP + -0xa8]
MOV qword ptr [RBP + -0xa8],RAX
LAB_0015f39a:
JMP 0x0015f39c
LAB_0015f39c:
MOV RAX,qword ptr [RBP + -0xa8]
MOV ECX,0xa
XOR EDX,EDX
DIV RCX
MOV qword ptr [RBP + -0x98],RAX
MOV RAX,qword ptr [RBP + -0xa8]
IMUL RCX,qword ptr [RBP + -0x98],0xa
SUB RAX,RCX
MOVSX EAX,AL
ADD EAX,0x30
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x80]
MOV RDX,RAX
ADD RDX,-0x1
MOV qword ptr [RBP + -0x80],RDX
MOV byte ptr [RAX + -0x1],CL
MOV RAX,qword ptr [RBP + -0x98]
MOV qword ptr [RBP + -0x78],RAX
LAB_0015f3eb:
CMP qword ptr [RBP + -0x78],0x0
JZ 0x0015f43d
MOV RAX,qword ptr [RBP + -0x78]
MOV ECX,0xa
CQO
IDIV RCX
MOV qword ptr [RBP + -0x98],RAX
MOV RAX,qword ptr [RBP + -0x78]
IMUL RCX,qword ptr [RBP + -0x98],0xa
SUB RAX,RCX
MOVSX EAX,AL
ADD EAX,0x30
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x80]
MOV RDX,RAX
ADD RDX,-0x1
MOV qword ptr [RBP + -0x80],RDX
MOV byte ptr [RAX + -0x1],CL
MOV RAX,qword ptr [RBP + -0x98]
MOV qword ptr [RBP + -0x78],RAX
JMP 0x0015f3eb
LAB_0015f43d:
CMP dword ptr [RBP + -0x9c],0x0
JZ 0x0015f459
MOV RAX,qword ptr [RBP + -0x80]
MOV RCX,RAX
ADD RCX,-0x1
MOV qword ptr [RBP + -0x80],RCX
MOV byte ptr [RAX + -0x1],0x2d
LAB_0015f459:
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RBP + -0x88],RAX
MOV RAX,qword ptr [RBP + -0x60]
ADD RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RBP + -0x90],RAX
LAB_0015f473:
MOV RCX,qword ptr [RBP + -0x60]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x90]
MOV byte ptr [RBP + -0xad],AL
JNC 0x0015f49b
MOV RAX,qword ptr [RBP + -0x80]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0xad],AL
LAB_0015f49b:
MOV AL,byte ptr [RBP + -0xad]
TEST AL,0x1
JNZ 0x0015f4a7
JMP 0x0015f509
LAB_0015f4a7:
MOV RAX,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RAX + 0xb8]
MOV RAX,qword ptr [RAX + 0x30]
MOV RDI,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RBP + -0x80]
MOVSX RSI,byte ptr [RCX]
MOV RDX,qword ptr [RBP + -0x60]
MOV RCX,qword ptr [RBP + -0x90]
CALL RAX
MOV dword ptr [RBP + -0xac],EAX
CMP dword ptr [RBP + -0xac],0x0
JLE 0x0015f4f4
MOV ECX,dword ptr [RBP + -0xac]
MOV RAX,qword ptr [RBP + -0x60]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x60],RAX
JMP 0x0015f4f6
LAB_0015f4f4:
JMP 0x0015f509
LAB_0015f4f6:
JMP 0x0015f4f8
LAB_0015f4f8:
MOV RAX,qword ptr [RBP + -0x80]
ADD RAX,0x1
MOV qword ptr [RBP + -0x80],RAX
JMP 0x0015f473
LAB_0015f509:
MOV EAX,dword ptr [RBP + -0x60]
MOV ECX,dword ptr [RBP + -0x88]
SUB EAX,ECX
CDQE
MOV qword ptr [RBP + -0xb8],RAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0015f53f
MOV RAX,qword ptr [RBP + -0xb8]
ADD RSP,0xc0
POP RBP
RET
LAB_0015f53f:
CALL 0x00124300
|
long my_l10tostr_mb2_or_mb4(long param_1,ulong param_2,long param_3,int param_4,ulong param_5)
{
int iVar1;
long in_FS_OFFSET;
bool bVar2;
ulong local_b0;
int local_90;
char *local_88;
ulong local_80;
ulong local_68;
char local_19 [9];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
bVar2 = false;
local_19[2] = 0;
local_b0 = param_5;
if ((param_4 < 0) && (bVar2 = (long)param_5 < 0, bVar2)) {
local_b0 = -param_5;
}
local_19[1] = (char)local_b0 + (char)(local_b0 / 10) * -10 + '0';
local_88 = local_19 + 1;
local_80 = local_b0 / 10;
while (local_80 != 0) {
local_88[-1] = (char)local_80 + (char)((long)local_80 / 10) * -10 + '0';
local_88 = local_88 + -1;
local_80 = (long)local_80 / 10;
}
if (bVar2) {
local_88[-1] = '-';
local_88 = local_88 + -1;
}
local_68 = param_2;
while( true ) {
bVar2 = false;
if (local_68 < param_2 + param_3) {
bVar2 = *local_88 != '\0';
}
if ((!bVar2) ||
(iVar1 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x30))
(param_1,(long)*local_88,local_68,param_2 + param_3), iVar1 < 1)) break;
local_68 = local_68 + (long)iVar1;
local_88 = local_88 + 1;
}
local_90 = (int)param_2;
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return (long)((int)local_68 - local_90);
}
|
|
60,787
|
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 0x4a156
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 0x4a132
testb %dil, %dil
jne 0x4a163
movb $0x2d, -0x1(%r13)
decq %r13
movq %rbx, %r12
testq %r14, %r14
jle 0x4a19f
addq %rbx, %r14
movq %rbx, %r12
movsbq (%r13), %rsi
testq %rsi, %rsi
je 0x4a19f
movq 0xb8(%r15), %rax
movq %r15, %rdi
movq %r12, %rdx
movq %r14, %rcx
callq *0x30(%rax)
testl %eax, %eax
jle 0x4a19f
movl %eax, %eax
addq %rax, %r12
incq %r13
cmpq %r14, %r12
jb 0x4a171
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x4a1c3
subl %ebx, %r12d
movslq %r12d, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x24350
|
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_4A156
loc_4A132:
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_4A132
loc_4A156:
test dil, dil
jnz short loc_4A163
mov byte ptr [r13-1], 2Dh ; '-'
dec r13
loc_4A163:
mov r12, rbx
test r14, r14
jle short loc_4A19F
add r14, rbx
mov r12, rbx
loc_4A171:
movsx rsi, byte ptr [r13+0]
test rsi, rsi
jz short loc_4A19F
mov rax, [r15+0B8h]
mov rdi, r15
mov rdx, r12
mov rcx, r14
call qword ptr [rax+30h]
test eax, eax
jle short loc_4A19F
mov eax, eax
add r12, rax
inc r13
cmp r12, r14
jb short loc_4A171
loc_4A19F:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_4A1C3
sub r12d, ebx
movsxd rax, r12d
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_4A1C3:
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 0x0014a156
LAB_0014a132:
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 0x0014a132
LAB_0014a156:
TEST DIL,DIL
JNZ 0x0014a163
MOV byte ptr [R13 + -0x1],0x2d
DEC R13
LAB_0014a163:
MOV R12,RBX
TEST R14,R14
JLE 0x0014a19f
ADD R14,RBX
MOV R12,RBX
LAB_0014a171:
MOVSX RSI,byte ptr [R13]
TEST RSI,RSI
JZ 0x0014a19f
MOV RAX,qword ptr [R15 + 0xb8]
MOV RDI,R15
MOV RDX,R12
MOV RCX,R14
CALL qword ptr [RAX + 0x30]
TEST EAX,EAX
JLE 0x0014a19f
MOV EAX,EAX
ADD R12,RAX
INC R13
CMP R12,R14
JC 0x0014a171
LAB_0014a19f:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x0014a1c3
SUB R12D,EBX
MOVSXD RAX,R12D
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0014a1c3:
CALL 0x00124350
|
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);
}
|
|
60,788
|
ok
|
eloqsql/unittest/mytap/tap.c
|
void
ok(int pass, char const *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
if (!pass && *g_test.todo == '\0')
++g_test.failed;
vemit_tap(pass, fmt, ap);
va_end(ap);
if (*g_test.todo != '\0')
emit_dir("todo", g_test.todo);
emit_endl();
}
|
O0
|
c
|
ok:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
testb %al, %al
je 0x26048
movaps %xmm0, -0xb0(%rbp)
movaps %xmm1, -0xa0(%rbp)
movaps %xmm2, -0x90(%rbp)
movaps %xmm3, -0x80(%rbp)
movaps %xmm4, -0x70(%rbp)
movaps %xmm5, -0x60(%rbp)
movaps %xmm6, -0x50(%rbp)
movaps %xmm7, -0x40(%rbp)
movq %r9, -0xb8(%rbp)
movq %r8, -0xc0(%rbp)
movq %rcx, -0xc8(%rbp)
movq %rdx, -0xd0(%rbp)
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
leaq -0x30(%rbp), %rax
leaq -0xe0(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x10, (%rax)
cmpl $0x0, -0x4(%rbp)
jne 0x260b0
movsbl 0x364b10(%rip), %eax # 0x38abac
cmpl $0x0, %eax
jne 0x260b0
movl 0x364b01(%rip), %eax # 0x38aba8
addl $0x1, %eax
movl %eax, 0x364af8(%rip) # 0x38aba8
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq 0x26100
leaq -0x30(%rbp), %rax
movsbl 0x364ae1(%rip), %eax # 0x38abac
cmpl $0x0, %eax
je 0x260e7
leaq 0x570b3(%rip), %rdi # 0x7d18a
leaq 0x364ac2(%rip), %rsi # 0x38aba0
addq $0xc, %rsi
callq 0x261e0
callq 0x26640
addq $0xe0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
ok:
push rbp
mov rbp, rsp
sub rsp, 0E0h
test al, al
jz short loc_26048
movaps [rbp+var_B0], xmm0
movaps [rbp+var_A0], xmm1
movaps [rbp+var_90], xmm2
movaps [rbp+var_80], xmm3
movaps [rbp+var_70], xmm4
movaps [rbp+var_60], xmm5
movaps [rbp+var_50], xmm6
movaps [rbp+var_40], xmm7
loc_26048:
mov [rbp+var_B8], r9
mov [rbp+var_C0], r8
mov [rbp+var_C8], rcx
mov [rbp+var_D0], rdx
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
lea rax, [rbp+var_30]
lea rcx, [rbp+var_E0]
mov [rax+10h], rcx
lea rcx, [rbp+arg_0]
mov [rax+8], rcx
mov dword ptr [rax+4], 30h ; '0'
mov dword ptr [rax], 10h
cmp [rbp+var_4], 0
jnz short loc_260B0
movsx eax, cs:byte_38ABAC
cmp eax, 0
jnz short loc_260B0
mov eax, cs:dword_38ABA8
add eax, 1
mov cs:dword_38ABA8, eax
loc_260B0:
mov edi, [rbp+var_4]
mov rsi, [rbp+var_10]
lea rdx, [rbp+var_30]
call vemit_tap
lea rax, [rbp+var_30]
movsx eax, cs:byte_38ABAC
cmp eax, 0
jz short loc_260E7
lea rdi, aTodo; "todo"
lea rsi, g_test
add rsi, 0Ch
call emit_dir
loc_260E7:
call emit_endl
add rsp, 0E0h
pop rbp
retn
|
long long ok(unsigned int a1, long long a2, ...)
{
va_list va; // [rsp+B0h] [rbp-30h] BYREF
long long v4; // [rsp+D0h] [rbp-10h]
unsigned int v5; // [rsp+DCh] [rbp-4h]
va_start(va, a2);
v5 = a1;
v4 = a2;
if ( !a1 && !byte_38ABAC )
++dword_38ABA8;
vemit_tap(v5, v4, va);
if ( byte_38ABAC )
emit_dir("todo", &g_test + 3);
return emit_endl();
}
|
ok:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xe0
TEST AL,AL
JZ 0x00126048
MOVAPS xmmword ptr [RBP + -0xb0],XMM0
MOVAPS xmmword ptr [RBP + -0xa0],XMM1
MOVAPS xmmword ptr [RBP + -0x90],XMM2
MOVAPS xmmword ptr [RBP + -0x80],XMM3
MOVAPS xmmword ptr [RBP + -0x70],XMM4
MOVAPS xmmword ptr [RBP + -0x60],XMM5
MOVAPS xmmword ptr [RBP + -0x50],XMM6
MOVAPS xmmword ptr [RBP + -0x40],XMM7
LAB_00126048:
MOV qword ptr [RBP + -0xb8],R9
MOV qword ptr [RBP + -0xc0],R8
MOV qword ptr [RBP + -0xc8],RCX
MOV qword ptr [RBP + -0xd0],RDX
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
LEA RAX,[RBP + -0x30]
LEA RCX,[RBP + -0xe0]
MOV qword ptr [RAX + 0x10],RCX
LEA RCX,[RBP + 0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV dword ptr [RAX + 0x4],0x30
MOV dword ptr [RAX],0x10
CMP dword ptr [RBP + -0x4],0x0
JNZ 0x001260b0
MOVSX EAX,byte ptr [0x0048abac]
CMP EAX,0x0
JNZ 0x001260b0
MOV EAX,dword ptr [0x0048aba8]
ADD EAX,0x1
MOV dword ptr [0x0048aba8],EAX
LAB_001260b0:
MOV EDI,dword ptr [RBP + -0x4]
MOV RSI,qword ptr [RBP + -0x10]
LEA RDX,[RBP + -0x30]
CALL 0x00126100
LEA RAX,[RBP + -0x30]
MOVSX EAX,byte ptr [0x0048abac]
CMP EAX,0x0
JZ 0x001260e7
LEA RDI,[0x17d18a]
LEA RSI,[0x48aba0]
ADD RSI,0xc
CALL 0x001261e0
LAB_001260e7:
CALL 0x00126640
ADD RSP,0xe0
POP RBP
RET
|
void ok(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,int param_9,
int8 param_10,int8 param_11,int8 param_12,int8 param_13,
int8 param_14)
{
char in_AL;
int1 local_e8 [16];
int8 local_d8;
int8 local_d0;
int8 local_c8;
int8 local_c0;
int8 local_b8;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
int8 local_68;
int8 local_58;
int8 local_48;
int4 local_38;
int4 local_34;
int1 *local_30;
int1 *local_28;
int8 local_18;
int local_c;
if (in_AL != '\0') {
local_b8 = param_1;
local_a8 = param_2;
local_98 = param_3;
local_88 = param_4;
local_78 = param_5;
local_68 = param_6;
local_58 = param_7;
local_48 = param_8;
}
local_28 = local_e8;
local_30 = &stack0x00000008;
local_34 = 0x30;
local_38 = 0x10;
if ((param_9 == 0) && (DAT_0048abac == '\0')) {
DAT_0048aba8 = DAT_0048aba8 + 1;
}
local_d8 = param_11;
local_d0 = param_12;
local_c8 = param_13;
local_c0 = param_14;
local_18 = param_10;
local_c = param_9;
vemit_tap(param_9,param_10,&local_38);
if (DAT_0048abac != '\0') {
emit_dir(&DAT_0017d18a,&DAT_0048abac);
}
emit_endl();
return;
}
|
|
60,789
|
async_func_mark
|
bluesky950520[P]quickjs/quickjs.c
|
static void async_func_mark(JSRuntime *rt, JSAsyncFunctionState *s,
JS_MarkFunc *mark_func)
{
JSStackFrame *sf;
JSValue *sp;
sf = &s->frame;
JS_MarkValue(rt, sf->cur_func, mark_func);
JS_MarkValue(rt, s->this_val, mark_func);
if (sf->cur_sp) {
/* if the function is running, cur_sp is not known so we
cannot mark the stack. Marking the variables is not needed
because a running function cannot be part of a removable
cycle */
for(sp = sf->arg_buf; sp < sf->cur_sp; sp++)
JS_MarkValue(rt, *sp, mark_func);
}
}
|
O0
|
c
|
async_func_mark:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x18(%rsp), %rax
addq $0x18, %rax
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rdi
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
callq 0x29920
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x10(%rsp), %rcx
movq (%rax), %rsi
movq 0x8(%rax), %rdx
callq 0x29920
movq 0x8(%rsp), %rax
cmpq $0x0, 0x48(%rax)
je 0x5b22a
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, (%rsp)
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
cmpq 0x48(%rcx), %rax
jae 0x5b228
movq 0x20(%rsp), %rdi
movq (%rsp), %rax
movq 0x10(%rsp), %rcx
movq (%rax), %rsi
movq 0x8(%rax), %rdx
callq 0x29920
movq (%rsp), %rax
addq $0x10, %rax
movq %rax, (%rsp)
jmp 0x5b1f1
jmp 0x5b22a
addq $0x28, %rsp
retq
nop
|
async_func_mark:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov [rsp+28h+var_10], rsi
mov [rsp+28h+var_18], rdx
mov rax, [rsp+28h+var_10]
add rax, 18h
mov [rsp+28h+var_20], rax
mov rdi, [rsp+28h+var_8]
mov rax, [rsp+28h+var_20]
mov rcx, [rsp+28h+var_18]
mov rsi, [rax+8]
mov rdx, [rax+10h]
call JS_MarkValue
mov rdi, [rsp+28h+var_8]
mov rax, [rsp+28h+var_10]
mov rcx, [rsp+28h+var_18]
mov rsi, [rax]
mov rdx, [rax+8]
call JS_MarkValue
mov rax, [rsp+28h+var_20]
cmp qword ptr [rax+48h], 0
jz short loc_5B22A
mov rax, [rsp+28h+var_20]
mov rax, [rax+18h]
mov [rsp+28h+var_28], rax
loc_5B1F1:
mov rax, [rsp+28h+var_28]
mov rcx, [rsp+28h+var_20]
cmp rax, [rcx+48h]
jnb short loc_5B228
mov rdi, [rsp+28h+var_8]
mov rax, [rsp+28h+var_28]
mov rcx, [rsp+28h+var_18]
mov rsi, [rax]
mov rdx, [rax+8]
call JS_MarkValue
mov rax, [rsp+28h+var_28]
add rax, 10h
mov [rsp+28h+var_28], rax
jmp short loc_5B1F1
loc_5B228:
jmp short $+2
loc_5B22A:
add rsp, 28h
retn
|
long long * async_func_mark(long long a1, long long *a2, long long ( *a3)(long long, long long))
{
long long *result; // rax
long long *i; // [rsp+0h] [rbp-28h]
JS_MarkValue(a1, a2[4], a2[5], a3);
JS_MarkValue(a1, *a2, a2[1], a3);
result = a2 + 3;
if ( a2[12] )
{
for ( i = (long long *)a2[6]; ; i += 2 )
{
result = i;
if ( (unsigned long long)i >= a2[12] )
break;
JS_MarkValue(a1, *i, i[1], a3);
}
}
return result;
}
|
async_func_mark:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x18],RSI
MOV qword ptr [RSP + 0x10],RDX
MOV RAX,qword ptr [RSP + 0x18]
ADD RAX,0x18
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RAX + 0x8]
MOV RDX,qword ptr [RAX + 0x10]
CALL 0x00129920
MOV RDI,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
CALL 0x00129920
MOV RAX,qword ptr [RSP + 0x8]
CMP qword ptr [RAX + 0x48],0x0
JZ 0x0015b22a
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP],RAX
LAB_0015b1f1:
MOV RAX,qword ptr [RSP]
MOV RCX,qword ptr [RSP + 0x8]
CMP RAX,qword ptr [RCX + 0x48]
JNC 0x0015b228
MOV RDI,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP]
MOV RCX,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
CALL 0x00129920
MOV RAX,qword ptr [RSP]
ADD RAX,0x10
MOV qword ptr [RSP],RAX
JMP 0x0015b1f1
LAB_0015b228:
JMP 0x0015b22a
LAB_0015b22a:
ADD RSP,0x28
RET
|
void async_func_mark(int8 param_1,int8 *param_2,int8 param_3)
{
int8 *local_28;
JS_MarkValue(param_1,param_2[4],param_2[5],param_3);
JS_MarkValue(param_1,*param_2,param_2[1],param_3);
if (param_2[0xc] != 0) {
for (local_28 = (int8 *)param_2[6]; local_28 < (int8 *)param_2[0xc];
local_28 = local_28 + 2) {
JS_MarkValue(param_1,*local_28,local_28[1],param_3);
}
}
return;
}
|
|
60,790
|
async_func_mark
|
bluesky950520[P]quickjs/quickjs.c
|
static void async_func_mark(JSRuntime *rt, JSAsyncFunctionState *s,
JS_MarkFunc *mark_func)
{
JSStackFrame *sf;
JSValue *sp;
sf = &s->frame;
JS_MarkValue(rt, sf->cur_func, mark_func);
JS_MarkValue(rt, s->this_val, mark_func);
if (sf->cur_sp) {
/* if the function is running, cur_sp is not known so we
cannot mark the stack. Marking the variables is not needed
because a running function cannot be part of a removable
cycle */
for(sp = sf->arg_buf; sp < sf->cur_sp; sp++)
JS_MarkValue(rt, *sp, mark_func);
}
}
|
O1
|
c
|
async_func_mark:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl $0xfffffffe, %r12d # imm = 0xFFFFFFFE
movsd 0x20(%rsi), %xmm0
movl 0x28(%rsi), %eax
movsd %xmm0, 0x8(%rsp)
andl $-0x2, %eax
cmpl %r12d, %eax
jne 0x3a9f9
movq 0x8(%rsp), %rsi
movq %r15, %rdi
callq *%rbx
movsd (%r14), %xmm0
movl 0x8(%r14), %eax
movsd %xmm0, 0x8(%rsp)
andl $-0x2, %eax
cmpl %r12d, %eax
jne 0x3aa1a
movq 0x8(%rsp), %rsi
movq %r15, %rdi
callq *%rbx
cmpq $0x0, 0x60(%r14)
je 0x3aa53
movq 0x30(%r14), %r13
cmpq 0x60(%r14), %r13
jae 0x3aa53
movsd (%r13), %xmm0
movl 0x8(%r13), %eax
movsd %xmm0, 0x8(%rsp)
andl $-0x2, %eax
cmpl %r12d, %eax
jne 0x3aa4d
movq 0x8(%rsp), %rsi
movq %r15, %rdi
callq *%rbx
addq $0x10, %r13
jmp 0x3aa25
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
|
async_func_mark:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 10h
mov rbx, rdx
mov r14, rsi
mov r15, rdi
mov r12d, 0FFFFFFFEh
movsd xmm0, qword ptr [rsi+20h]
mov eax, [rsi+28h]
movsd [rsp+38h+var_30], xmm0
and eax, 0FFFFFFFEh
cmp eax, r12d
jnz short loc_3A9F9
mov rsi, [rsp+38h+var_30]
mov rdi, r15
call rbx
loc_3A9F9:
movsd xmm0, qword ptr [r14]
mov eax, [r14+8]
movsd [rsp+38h+var_30], xmm0
and eax, 0FFFFFFFEh
cmp eax, r12d
jnz short loc_3AA1A
mov rsi, [rsp+38h+var_30]
mov rdi, r15
call rbx
loc_3AA1A:
cmp qword ptr [r14+60h], 0
jz short loc_3AA53
mov r13, [r14+30h]
loc_3AA25:
cmp r13, [r14+60h]
jnb short loc_3AA53
movsd xmm0, qword ptr [r13+0]
mov eax, [r13+8]
movsd [rsp+38h+var_30], xmm0
and eax, 0FFFFFFFEh
cmp eax, r12d
jnz short loc_3AA4D
mov rsi, [rsp+38h+var_30]
mov rdi, r15
call rbx
loc_3AA4D:
add r13, 10h
jmp short loc_3AA25
loc_3AA53:
add rsp, 10h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
|
long long async_func_mark(long long a1, long long a2, void ( *a3)(long long, _QWORD))
{
long long result; // rax
unsigned long long i; // r13
if ( (*(_DWORD *)(a2 + 40) & 0xFFFFFFFE) == 0xFFFFFFFE )
a3(a1, *(_QWORD *)(a2 + 32));
result = *(_DWORD *)(a2 + 8) & 0xFFFFFFFE;
if ( (_DWORD)result == -2 )
result = ((long long ( *)(long long, _QWORD))a3)(a1, *(_QWORD *)a2);
if ( *(_QWORD *)(a2 + 96) )
{
for ( i = *(_QWORD *)(a2 + 48); i < *(_QWORD *)(a2 + 96); i += 16LL )
{
result = *(_DWORD *)(i + 8) & 0xFFFFFFFE;
if ( (_DWORD)result == -2 )
result = ((long long ( *)(long long, _QWORD))a3)(a1, *(_QWORD *)i);
}
}
return result;
}
|
async_func_mark:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
MOV R12D,0xfffffffe
MOVSD XMM0,qword ptr [RSI + 0x20]
MOV EAX,dword ptr [RSI + 0x28]
MOVSD qword ptr [RSP + 0x8],XMM0
AND EAX,0xfffffffe
CMP EAX,R12D
JNZ 0x0013a9f9
MOV RSI,qword ptr [RSP + 0x8]
MOV RDI,R15
CALL RBX
LAB_0013a9f9:
MOVSD XMM0,qword ptr [R14]
MOV EAX,dword ptr [R14 + 0x8]
MOVSD qword ptr [RSP + 0x8],XMM0
AND EAX,0xfffffffe
CMP EAX,R12D
JNZ 0x0013aa1a
MOV RSI,qword ptr [RSP + 0x8]
MOV RDI,R15
CALL RBX
LAB_0013aa1a:
CMP qword ptr [R14 + 0x60],0x0
JZ 0x0013aa53
MOV R13,qword ptr [R14 + 0x30]
LAB_0013aa25:
CMP R13,qword ptr [R14 + 0x60]
JNC 0x0013aa53
MOVSD XMM0,qword ptr [R13]
MOV EAX,dword ptr [R13 + 0x8]
MOVSD qword ptr [RSP + 0x8],XMM0
AND EAX,0xfffffffe
CMP EAX,R12D
JNZ 0x0013aa4d
MOV RSI,qword ptr [RSP + 0x8]
MOV RDI,R15
CALL RBX
LAB_0013aa4d:
ADD R13,0x10
JMP 0x0013aa25
LAB_0013aa53:
ADD RSP,0x10
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
void async_func_mark(int8 param_1,int8 *param_2,code *param_3)
{
int8 *puVar1;
if ((*(uint *)(param_2 + 5) & 0xfffffffe) == 0xfffffffe) {
(*param_3)(param_1,param_2[4]);
}
if ((*(uint *)(param_2 + 1) & 0xfffffffe) == 0xfffffffe) {
(*param_3)(param_1,*param_2);
}
if (param_2[0xc] != 0) {
for (puVar1 = (int8 *)param_2[6]; puVar1 < (int8 *)param_2[0xc]; puVar1 = puVar1 + 2
) {
if ((*(uint *)(puVar1 + 1) & 0xfffffffe) == 0xfffffffe) {
(*param_3)(param_1,*puVar1);
}
}
}
return;
}
|
|
60,791
|
async_func_mark
|
bluesky950520[P]quickjs/quickjs.c
|
static void async_func_mark(JSRuntime *rt, JSAsyncFunctionState *s,
JS_MarkFunc *mark_func)
{
JSStackFrame *sf;
JSValue *sp;
sf = &s->frame;
JS_MarkValue(rt, sf->cur_func, mark_func);
JS_MarkValue(rt, s->this_val, mark_func);
if (sf->cur_sp) {
/* if the function is running, cur_sp is not known so we
cannot mark the stack. Marking the variables is not needed
because a running function cannot be part of a removable
cycle */
for(sp = sf->arg_buf; sp < sf->cur_sp; sp++)
JS_MarkValue(rt, *sp, mark_func);
}
}
|
O3
|
c
|
async_func_mark:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl $0xfffffffe, %r12d # imm = 0xFFFFFFFE
movl 0x28(%rsi), %eax
andl $-0x2, %eax
cmpl %r12d, %eax
jne 0x3c001
movq 0x20(%r14), %rsi
movq %r15, %rdi
callq *%rbx
movl 0x8(%r14), %eax
andl $-0x2, %eax
cmpl %r12d, %eax
jne 0x3c015
movq (%r14), %rsi
movq %r15, %rdi
callq *%rbx
movq 0x60(%r14), %rax
testq %rax, %rax
je 0x3c046
movq 0x30(%r14), %r13
cmpq %rax, %r13
jae 0x3c046
movl 0x8(%r13), %ecx
andl $-0x2, %ecx
cmpl %r12d, %ecx
jne 0x3c040
movq (%r13), %rsi
movq %r15, %rdi
callq *%rbx
movq 0x60(%r14), %rax
addq $0x10, %r13
jmp 0x3c022
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
|
async_func_mark:
push r15
push r14
push r13
push r12
push rbx
mov rbx, rdx
mov r14, rsi
mov r15, rdi
mov r12d, 0FFFFFFFEh
mov eax, [rsi+28h]
and eax, 0FFFFFFFEh
cmp eax, r12d
jnz short loc_3C001
mov rsi, [r14+20h]
mov rdi, r15
call rbx
loc_3C001:
mov eax, [r14+8]
and eax, 0FFFFFFFEh
cmp eax, r12d
jnz short loc_3C015
mov rsi, [r14]
mov rdi, r15
call rbx
loc_3C015:
mov rax, [r14+60h]
test rax, rax
jz short loc_3C046
mov r13, [r14+30h]
loc_3C022:
cmp r13, rax
jnb short loc_3C046
mov ecx, [r13+8]
and ecx, 0FFFFFFFEh
cmp ecx, r12d
jnz short loc_3C040
mov rsi, [r13+0]
mov rdi, r15
call rbx
mov rax, [r14+60h]
loc_3C040:
add r13, 10h
jmp short loc_3C022
loc_3C046:
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
|
unsigned long long async_func_mark(long long a1, long long a2, void ( *a3)(long long, _QWORD))
{
unsigned long long result; // rax
unsigned long long i; // r13
if ( (*(_DWORD *)(a2 + 40) & 0xFFFFFFFE) == 0xFFFFFFFE )
a3(a1, *(_QWORD *)(a2 + 32));
if ( (*(_DWORD *)(a2 + 8) & 0xFFFFFFFE) == 0xFFFFFFFE )
a3(a1, *(_QWORD *)a2);
result = *(_QWORD *)(a2 + 96);
if ( result )
{
for ( i = *(_QWORD *)(a2 + 48); i < result; i += 16LL )
{
if ( (*(_DWORD *)(i + 8) & 0xFFFFFFFE) == 0xFFFFFFFE )
{
a3(a1, *(_QWORD *)i);
result = *(_QWORD *)(a2 + 96);
}
}
}
return result;
}
|
async_func_mark:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
MOV R12D,0xfffffffe
MOV EAX,dword ptr [RSI + 0x28]
AND EAX,0xfffffffe
CMP EAX,R12D
JNZ 0x0013c001
MOV RSI,qword ptr [R14 + 0x20]
MOV RDI,R15
CALL RBX
LAB_0013c001:
MOV EAX,dword ptr [R14 + 0x8]
AND EAX,0xfffffffe
CMP EAX,R12D
JNZ 0x0013c015
MOV RSI,qword ptr [R14]
MOV RDI,R15
CALL RBX
LAB_0013c015:
MOV RAX,qword ptr [R14 + 0x60]
TEST RAX,RAX
JZ 0x0013c046
MOV R13,qword ptr [R14 + 0x30]
LAB_0013c022:
CMP R13,RAX
JNC 0x0013c046
MOV ECX,dword ptr [R13 + 0x8]
AND ECX,0xfffffffe
CMP ECX,R12D
JNZ 0x0013c040
MOV RSI,qword ptr [R13]
MOV RDI,R15
CALL RBX
MOV RAX,qword ptr [R14 + 0x60]
LAB_0013c040:
ADD R13,0x10
JMP 0x0013c022
LAB_0013c046:
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
void async_func_mark(int8 param_1,int8 *param_2,code *param_3)
{
int8 *puVar1;
int8 *puVar2;
if ((*(uint *)(param_2 + 5) & 0xfffffffe) == 0xfffffffe) {
(*param_3)(param_1,param_2[4]);
}
if ((*(uint *)(param_2 + 1) & 0xfffffffe) == 0xfffffffe) {
(*param_3)(param_1,*param_2);
}
puVar1 = (int8 *)param_2[0xc];
if (puVar1 != (int8 *)0x0) {
for (puVar2 = (int8 *)param_2[6]; puVar2 < puVar1; puVar2 = puVar2 + 2) {
if ((*(uint *)(puVar2 + 1) & 0xfffffffe) == 0xfffffffe) {
(*param_3)(param_1,*puVar2);
puVar1 = (int8 *)param_2[0xc];
}
}
}
return;
}
|
|
60,792
|
my_fstat
|
eloqsql/mysys/my_lib.c
|
int my_fstat(File Filedes, MY_STAT *stat_area,
myf MyFlags __attribute__((unused)))
{
DBUG_ENTER("my_fstat");
DBUG_PRINT("my",("fd: %d MyFlags: %lu", Filedes, MyFlags));
#ifdef _WIN32
DBUG_RETURN(my_win_fstat(Filedes, stat_area));
#elif defined HAVE_valgrind
{
int s= fstat(Filedes, stat_area);
if (!s)
MSAN_STAT_WORKAROUND(stat_area);
DBUG_RETURN(s);
}
#else
DBUG_RETURN(fstat(Filedes, (struct stat *) stat_area));
#endif
}
|
O3
|
c
|
my_fstat:
pushq %rbp
movq %rsp, %rbp
popq %rbp
jmp 0x246b0
nopl (%rax)
|
my_fstat:
push rbp
mov rbp, rsp
pop rbp
jmp _fstat64
|
long long my_fstat()
{
return fstat64();
}
|
my_fstat:
PUSH RBP
MOV RBP,RSP
POP RBP
JMP 0x001246b0
|
void my_fstat(int param_1,stat64 *param_2)
{
fstat64(param_1,param_2);
return;
}
|
|
60,793
|
common_chat_templates_source(common_chat_templates const*, char const*)
|
llama.cpp/common/chat.cpp
|
const char * common_chat_templates_source(const struct common_chat_templates * tmpls, const char * variant) {
if (variant != nullptr) {
if (strcmp(variant, "tool_use") == 0) {
if (tmpls->template_tool_use) {
return tmpls->template_tool_use->source().c_str();
}
return nullptr;
} else {
LOG_DBG("%s: unknown template variant: %s\n", __func__, variant);
}
}
return tmpls->template_default->source().c_str();
}
|
O3
|
cpp
|
common_chat_templates_source(common_chat_templates const*, char const*):
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rsi, %rsi
je 0x96904
movq %rsi, %r14
leaq 0x8a372(%rip), %rsi # 0x120c39
movq %r14, %rdi
callq 0x21e50
testl %eax, %eax
je 0x96914
leaq 0xd0006(%rip), %rax # 0x1668e0
cmpl $0x0, (%rax)
jle 0x96904
callq 0x10d3af
leaq 0x8a357(%rip), %rdx # 0x120c42
leaq 0x8a372(%rip), %rcx # 0x120c64
movq %rax, %rdi
movl $0x1, %esi
movq %r14, %r8
xorl %eax, %eax
callq 0x10d44c
movq 0x8(%rbx), %rax
movq 0x10(%rax), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x10(%rbx), %rax
testq %rax, %rax
jne 0x96908
xorl %eax, %eax
jmp 0x9690c
nop
|
_Z28common_chat_templates_sourcePK21common_chat_templatesPKc:
push r14
push rbx
push rax
mov rbx, rdi
test rsi, rsi
jz short loc_96904
mov r14, rsi
lea rsi, aToolUse; "tool_use"
mov rdi, r14
call _strcmp
test eax, eax
jz short loc_96914
lea rax, common_log_verbosity_thold
cmp dword ptr [rax], 0
jle short loc_96904
call _Z15common_log_mainv; common_log_main(void)
lea rdx, aSUnknownTempla; "%s: unknown template variant: %s\n"
lea rcx, aCommonChatTemp_0; "common_chat_templates_source"
mov rdi, rax
mov esi, 1
mov r8, r14
xor eax, eax
call _Z14common_log_addP10common_log14ggml_log_levelPKcz; common_log_add(common_log *,ggml_log_level,char const*,...)
loc_96904:
mov rax, [rbx+8]
loc_96908:
mov rax, [rax+10h]
loc_9690C:
add rsp, 8
pop rbx
pop r14
retn
loc_96914:
mov rax, [rbx+10h]
test rax, rax
jnz short loc_96908
xor eax, eax
jmp short loc_9690C
|
long long common_chat_templates_source(long long a1, long long a2)
{
int v2; // eax
int v3; // r9d
long long v4; // rax
if ( !a2 )
goto LABEL_5;
if ( (unsigned int)strcmp(a2, "tool_use") )
{
if ( common_log_verbosity_thold > 0 )
{
v2 = common_log_main();
common_log_add(
v2,
1,
(unsigned int)"%s: unknown template variant: %s\n",
(unsigned int)"common_chat_templates_source",
a2,
v3);
}
LABEL_5:
v4 = *(_QWORD *)(a1 + 8);
return *(_QWORD *)(v4 + 16);
}
v4 = *(_QWORD *)(a1 + 16);
if ( !v4 )
return 0LL;
return *(_QWORD *)(v4 + 16);
}
|
common_chat_templates_source:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
TEST RSI,RSI
JZ 0x00196904
MOV R14,RSI
LEA RSI,[0x220c39]
MOV RDI,R14
CALL 0x00121e50
TEST EAX,EAX
JZ 0x00196914
LEA RAX,[0x2668e0]
CMP dword ptr [RAX],0x0
JLE 0x00196904
CALL 0x0020d3af
LEA RDX,[0x220c42]
LEA RCX,[0x220c64]
MOV RDI,RAX
MOV ESI,0x1
MOV R8,R14
XOR EAX,EAX
CALL 0x0020d44c
LAB_00196904:
MOV RAX,qword ptr [RBX + 0x8]
LAB_00196908:
MOV RAX,qword ptr [RAX + 0x10]
LAB_0019690c:
ADD RSP,0x8
POP RBX
POP R14
RET
LAB_00196914:
MOV RAX,qword ptr [RBX + 0x10]
TEST RAX,RAX
JNZ 0x00196908
XOR EAX,EAX
JMP 0x0019690c
|
/* common_chat_templates_source(common_chat_templates const*, char const*) */
int8 common_chat_templates_source(common_chat_templates *param_1,char *param_2)
{
int iVar1;
int8 uVar2;
long lVar3;
if (param_2 != (char *)0x0) {
iVar1 = strcmp(param_2,"tool_use");
if (iVar1 == 0) {
lVar3 = *(long *)(param_1 + 0x10);
if (lVar3 == 0) {
return 0;
}
goto LAB_00196908;
}
if (0 < common_log_verbosity_thold) {
uVar2 = common_log_main();
common_log_add(uVar2,1,"%s: unknown template variant: %s\n","common_chat_templates_source",
param_2);
}
}
lVar3 = *(long *)(param_1 + 8);
LAB_00196908:
return *(int8 *)(lVar3 + 0x10);
}
|
|
60,794
|
my_message_stderr
|
eloqsql/mysys/my_mess.c
|
void my_message_stderr(uint error __attribute__((unused)),
const char *str, myf MyFlags)
{
DBUG_ENTER("my_message_stderr");
DBUG_PRINT("enter",("message: %s",str));
(void) fflush(stdout);
if (MyFlags & (ME_NOTE | ME_ERROR_LOG_ONLY))
DBUG_VOID_RETURN;
if (MyFlags & ME_BELL)
(void) fputc('\007', stderr);
if (my_progname)
{
(void)fputs(my_progname,stderr); (void)fputs(": ",stderr);
}
(void)fputs(str,stderr);
(void)fputc('\n',stderr);
(void)fflush(stderr);
DBUG_VOID_RETURN;
}
|
O3
|
c
|
my_message_stderr:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %rbx
movq 0x2ca9ac(%rip), %rax # 0x2f2fa8
movq (%rax), %rdi
callq 0x243d0
testl $0x480, %r14d # imm = 0x480
je 0x28612
popq %rbx
popq %r14
popq %rbp
retq
testb $0x4, %r14b
je 0x2862c
movq 0x2ca9b1(%rip), %rax # 0x2f2fd0
movq (%rax), %rsi
movl $0x7, %edi
callq 0x24430
leaq 0x3418ed(%rip), %rax # 0x369f20
movq (%rax), %rdi
testq %rdi, %rdi
je 0x28640
callq 0x246d0
movq 0x2ca989(%rip), %r14 # 0x2f2fd0
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x24390
movq (%r14), %rsi
movl $0xa, %edi
callq 0x24430
movq (%r14), %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x243d0
nop
|
my_message_stderr:
push rbp
mov rbp, rsp
push r14
push rbx
mov r14, rdx
mov rbx, rsi
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
test r14d, 480h
jz short loc_28612
pop rbx
pop r14
pop rbp
retn
loc_28612:
test r14b, 4
jz short loc_2862C
mov rax, cs:stderr_ptr
mov rsi, [rax]
mov edi, 7
call _fputc
loc_2862C:
lea rax, my_progname
mov rdi, [rax]
test rdi, rdi
jz short loc_28640
call my_message_stderr_cold_1
loc_28640:
mov r14, cs:stderr_ptr
mov rsi, [r14]
mov rdi, rbx
call _fputs
mov rsi, [r14]
mov edi, 0Ah
call _fputc
mov rdi, [r14]
pop rbx
pop r14
pop rbp
jmp _fflush
|
long long my_message_stderr(long long a1, long long a2, __int16 a3)
{
long long result; // rax
result = fflush(stdout);
if ( (a3 & 0x480) == 0 )
{
if ( (a3 & 4) != 0 )
fputc(7LL, stderr);
if ( my_progname )
my_message_stderr_cold_1((long long)my_progname);
fputs(a2, stderr);
fputc(10LL, stderr);
return fflush(stderr);
}
return result;
}
|
my_message_stderr:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV R14,RDX
MOV RBX,RSI
MOV RAX,qword ptr [0x003f2fa8]
MOV RDI,qword ptr [RAX]
CALL 0x001243d0
TEST R14D,0x480
JZ 0x00128612
POP RBX
POP R14
POP RBP
RET
LAB_00128612:
TEST R14B,0x4
JZ 0x0012862c
MOV RAX,qword ptr [0x003f2fd0]
MOV RSI,qword ptr [RAX]
MOV EDI,0x7
CALL 0x00124430
LAB_0012862c:
LEA RAX,[0x469f20]
MOV RDI,qword ptr [RAX]
TEST RDI,RDI
JZ 0x00128640
CALL 0x001246d0
LAB_00128640:
MOV R14,qword ptr [0x003f2fd0]
MOV RSI,qword ptr [R14]
MOV RDI,RBX
CALL 0x00124390
MOV RSI,qword ptr [R14]
MOV EDI,0xa
CALL 0x00124430
MOV RDI,qword ptr [R14]
POP RBX
POP R14
POP RBP
JMP 0x001243d0
|
void my_message_stderr(int8 param_1,char *param_2,ulong param_3)
{
int *puVar1;
fflush(*(FILE **)PTR_stdout_003f2fa8);
if ((param_3 & 0x480) != 0) {
return;
}
if ((param_3 & 4) != 0) {
fputc(7,*(FILE **)PTR_stderr_003f2fd0);
}
if (my_progname != 0) {
my_message_stderr_cold_1();
}
puVar1 = PTR_stderr_003f2fd0;
fputs(param_2,*(FILE **)PTR_stderr_003f2fd0);
fputc(10,*(FILE **)puVar1);
fflush(*(FILE **)puVar1);
return;
}
|
|
60,795
|
CLI::ExcludesError::ExcludesError(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
|
MikePodsytnik[P]TCRtrie/build_O3/_deps/cli11-src/include/CLI/Error.hpp
|
ExcludesError(std::string curname, std::string subname)
: ExcludesError(curname + " excludes " + subname, ExitCodes::ExcludesError) {}
|
O3
|
cpp
|
CLI::ExcludesError::ExcludesError(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>):
pushq %rbx
movq %rdi, %rbx
leaq 0x227ff(%rip), %rax # 0x49358
movq %rax, (%rdi)
movq 0x18(%rdi), %rdi
leaq 0x28(%rbx), %rax
cmpq %rax, %rdi
je 0x26b74
movq (%rax), %rsi
incq %rsi
callq 0x7430
movq %rbx, %rdi
callq 0x7490
movl $0x38, %esi
movq %rbx, %rdi
popq %rbx
jmp 0x7430
|
_ZN3CLI13ExcludesErrorD0Ev:
push rbx
mov rbx, rdi
lea rax, off_49358
mov [rdi], rax
mov rdi, [rdi+18h]; void *
lea rax, [rbx+28h]
cmp rdi, rax
jz short loc_26B74
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_26B74:
mov rdi, rbx; this
call __ZNSt13runtime_errorD2Ev; std::runtime_error::~runtime_error()
mov esi, 38h ; '8'; unsigned __int64
mov rdi, rbx; void *
pop rbx
jmp __ZdlPvm; operator delete(void *,ulong)
|
void CLI::ExcludesError::~ExcludesError(CLI::ExcludesError *this)
{
char *v2; // rdi
*(_QWORD *)this = off_49358;
v2 = (char *)*((_QWORD *)this + 3);
if ( v2 != (char *)this + 40 )
operator delete(v2, *((_QWORD *)this + 5) + 1LL);
std::runtime_error::~runtime_error(this);
operator delete(this, 0x38uLL);
}
|
~ExcludesError:
PUSH RBX
MOV RBX,RDI
LEA RAX,[0x149358]
MOV qword ptr [RDI],RAX
MOV RDI,qword ptr [RDI + 0x18]
LEA RAX,[RBX + 0x28]
CMP RDI,RAX
JZ 0x00126b74
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x00107430
LAB_00126b74:
MOV RDI,RBX
CALL 0x00107490
MOV ESI,0x38
MOV RDI,RBX
POP RBX
JMP 0x00107430
|
/* CLI::ExcludesError::~ExcludesError() */
void __thiscall CLI::ExcludesError::~ExcludesError(ExcludesError *this)
{
*(int ***)this = &PTR__Error_00149358;
if (*(ExcludesError **)(this + 0x18) != this + 0x28) {
operator_delete(*(ExcludesError **)(this + 0x18),*(long *)(this + 0x28) + 1);
}
std::runtime_error::~runtime_error((runtime_error *)this);
operator_delete(this,0x38);
return;
}
|
|
60,796
|
CutSegment
|
seiftnesse[P]memoryallocator/src/custom_alloc_util.c
|
segment_t *CutSegment(segment_t *s, int size_to_cut) {
if (s->size <= size_to_cut) {
HEAP_LOG("Cannot cut segment: segment size %d <= requested size %d\n", s->size, size_to_cut);
return s;
}
uintptr_t addr = (uintptr_t) s;
addr += (s->size - size_to_cut) * BLOCK_SIZE;
// Ensure new segment is aligned
uintptr_t original_addr = addr;
addr = (addr + ALIGNMENT - 1) & ~(ALIGNMENT - 1);
if (original_addr != addr) {
HEAP_LOG("Adjusted segment address for alignment: %p -> %p\n", (void*)original_addr, (void*)addr);
}
segment_t *result = (segment_t *) addr;
// Update sizes accounting for alignment adjustments
int actual_size = (addr - (uintptr_t) s) / BLOCK_SIZE;
s->size -= size_to_cut;
// Initialize new segment
result->size = size_to_cut;
result->prev = s;
result->next = s->next;
result->is_free = s->is_free;
result->magic = SEGMENT_MAGIC;
result->allocation_file = NULL;
result->allocation_line = 0;
result->allocation_id = 0;
// Update linked list pointers
if (s->next) s->next->prev = result;
s->next = result;
HEAP_LOG("Segment cut: original=%p (size=%d), new=%p (size=%d)\n",
s, s->size, result, result->size);
initialize_segment_integrity(result);
return result;
}
|
O1
|
c
|
CutSegment:
movq %rdi, %rax
movl 0x4(%rdi), %ecx
subl %esi, %ecx
jle 0x3af6
pushq %rbx
movl %ecx, %edx
shll $0xc, %edx
movslq %edx, %rdx
leaq (%rax,%rdx), %rbx
addq $0xf, %rbx
andq $-0x10, %rbx
movl %ecx, 0x4(%rax)
movl %esi, 0x4(%rbx)
movq %rax, 0x10(%rbx)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rbx)
movl (%rax), %ecx
movl %ecx, (%rbx)
movl $0xcafebafe, 0x28(%rbx) # imm = 0xCAFEBAFE
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rbx)
movq 0x8(%rax), %rcx
testq %rcx, %rcx
je 0x3ae6
movq %rbx, 0x10(%rcx)
movq %rbx, 0x8(%rax)
movq %rbx, %rdi
callq 0x3af7
movq %rbx, %rax
popq %rbx
retq
|
CutSegment:
mov rax, rdi
mov ecx, [rdi+4]
sub ecx, esi
jle short locret_3AF6
push rbx
mov edx, ecx
shl edx, 0Ch
movsxd rdx, edx
lea rbx, [rax+rdx]
add rbx, 0Fh
and rbx, 0FFFFFFFFFFFFFFF0h
mov [rax+4], ecx
mov [rbx+4], esi
mov [rbx+10h], rax
mov rcx, [rax+8]
mov [rbx+8], rcx
mov ecx, [rax]
mov [rbx], ecx
mov dword ptr [rbx+28h], 0CAFEBAFEh
xorps xmm0, xmm0
movups xmmword ptr [rbx+18h], xmm0
mov rcx, [rax+8]
test rcx, rcx
jz short loc_3AE6
mov [rcx+10h], rbx
loc_3AE6:
mov [rax+8], rbx
mov rdi, rbx
call initialize_segment_integrity
mov rax, rbx
pop rbx
locret_3AF6:
retn
|
unsigned long long CutSegment(unsigned long long a1, int a2)
{
unsigned long long result; // rax
int v3; // ecx
bool v4; // cc
int v5; // ecx
long long v6; // rdx
unsigned long long v7; // rbx
long long v8; // rcx
result = a1;
v3 = *(_DWORD *)(a1 + 4);
v4 = v3 <= a2;
v5 = v3 - a2;
if ( !v4 )
{
v6 = v5 << 12;
v7 = (a1 + v6 + 15) & 0xFFFFFFFFFFFFFFF0LL;
*(_DWORD *)(a1 + 4) = v5;
*(_DWORD *)(v7 + 4) = a2;
*(_QWORD *)(v7 + 16) = a1;
*(_QWORD *)(v7 + 8) = *(_QWORD *)(a1 + 8);
*(_DWORD *)v7 = *(_DWORD *)a1;
*(_DWORD *)(v7 + 40) = -889275650;
*(_OWORD *)(v7 + 24) = 0LL;
v8 = *(_QWORD *)(a1 + 8);
if ( v8 )
*(_QWORD *)(v8 + 16) = v7;
*(_QWORD *)(a1 + 8) = v7;
initialize_segment_integrity((a1 + v6 + 15) & 0xFFFFFFFFFFFFFFF0LL);
return v7;
}
return result;
}
|
CutSegment:
MOV RAX,RDI
MOV ECX,dword ptr [RDI + 0x4]
SUB ECX,ESI
JLE 0x00103af6
PUSH RBX
MOV EDX,ECX
SHL EDX,0xc
MOVSXD RDX,EDX
LEA RBX,[RAX + RDX*0x1]
ADD RBX,0xf
AND RBX,-0x10
MOV dword ptr [RAX + 0x4],ECX
MOV dword ptr [RBX + 0x4],ESI
MOV qword ptr [RBX + 0x10],RAX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x8],RCX
MOV ECX,dword ptr [RAX]
MOV dword ptr [RBX],ECX
MOV dword ptr [RBX + 0x28],0xcafebafe
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x18],XMM0
MOV RCX,qword ptr [RAX + 0x8]
TEST RCX,RCX
JZ 0x00103ae6
MOV qword ptr [RCX + 0x10],RBX
LAB_00103ae6:
MOV qword ptr [RAX + 0x8],RBX
MOV RDI,RBX
CALL 0x00103af7
MOV RAX,RBX
POP RBX
LAB_00103af6:
RET
|
int4 * CutSegment(int4 *param_1,int param_2)
{
int iVar1;
int4 *puVar2;
iVar1 = param_1[1] - param_2;
puVar2 = param_1;
if (iVar1 != 0 && param_2 <= (int)param_1[1]) {
puVar2 = (int4 *)((long)param_1 + (long)(iVar1 * 0x1000) + 0xf & 0xfffffffffffffff0);
param_1[1] = iVar1;
puVar2[1] = param_2;
*(int4 **)(puVar2 + 4) = param_1;
*(int8 *)(puVar2 + 2) = *(int8 *)(param_1 + 2);
*puVar2 = *param_1;
puVar2[10] = 0xcafebafe;
*(int8 *)(puVar2 + 6) = 0;
*(int8 *)(puVar2 + 8) = 0;
if (*(long *)(param_1 + 2) != 0) {
*(int4 **)(*(long *)(param_1 + 2) + 0x10) = puVar2;
}
*(int4 **)(param_1 + 2) = puVar2;
initialize_segment_integrity(puVar2);
}
return puVar2;
}
|
|
60,797
|
my_aes_crypt_init
|
eloqsql/mysys_ssl/my_crypt.cc
|
int my_aes_crypt_init(void *ctx, enum my_aes_mode mode, int flags,
const unsigned char* key, unsigned int klen,
const unsigned char* iv, unsigned int ivlen)
{
#ifdef HAVE_EncryptAes128Ctr
#ifdef HAVE_EncryptAes128Gcm
if (mode == MY_AES_GCM)
if (flags & ENCRYPTION_FLAG_NOPAD)
return MY_AES_OPENSSL_ERROR;
else
new (ctx) MyCTX_gcm();
else
#endif
if (mode == MY_AES_CTR)
new (ctx) MyCTX();
else
#endif
if (flags & ENCRYPTION_FLAG_NOPAD)
new (ctx) MyCTX_nopad();
else
new (ctx) MyCTX();
return ((MyCTX*)ctx)->init(ciphers[mode](klen), flags & 1,
key, klen, iv, ivlen);
}
|
O3
|
cpp
|
my_aes_crypt_init:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %r14d
movl %edx, %r12d
movl %esi, %ebx
movq %rdi, %r13
cmpl $0x2, %esi
je 0xd7c1e
cmpl $0x3, %ebx
jne 0xd7c5d
testb $0x2, %r12b
jne 0xd7cee
movq %rcx, %r15
movq %r9, -0x30(%rbp)
leaq 0x2abbc5(%rip), %rax # 0x3837a8
addq $0x10, %rax
movq %rax, (%r13)
leaq 0x17(%r13), %rdi
andq $-0x10, %rdi
movq %rdi, 0xc8(%r13)
movl $0xb0, %edx
xorl %esi, %esi
callq 0x292c0
movq 0xc8(%r13), %rdi
callq 0x299b0
leaq 0x2abb2f(%rip), %rax # 0x383748
jmp 0xd7ca7
movq %rcx, %r15
movq %r9, -0x30(%rbp)
leaq 0x2abb7c(%rip), %rax # 0x3837a8
addq $0x10, %rax
movq %rax, (%r13)
leaq 0x17(%r13), %rdi
andq $-0x10, %rdi
movq %rdi, 0xc8(%r13)
movl $0xb0, %edx
xorl %esi, %esi
callq 0x292c0
movq 0xc8(%r13), %rdi
callq 0x299b0
jmp 0xd7caf
movq %rcx, %r15
movq %r9, -0x30(%rbp)
leaq 0x2abb3d(%rip), %rax # 0x3837a8
addq $0x10, %rax
movq %rax, (%r13)
leaq 0x17(%r13), %rdi
andq $-0x10, %rdi
movq %rdi, 0xc8(%r13)
movl $0xb0, %edx
xorl %esi, %esi
callq 0x292c0
movq 0xc8(%r13), %rdi
callq 0x299b0
testb $0x2, %r12b
je 0xd7caf
leaq 0x2abb39(%rip), %rax # 0x3837e0
addq $0x10, %rax
movq %rax, (%r13)
movl %ebx, %eax
leaq 0x3246b8(%rip), %rcx # 0x3fc370
movl %r14d, %edi
callq *(%rcx,%rax,8)
andl $0x1, %r12d
movq (%r13), %rcx
movq 0x10(%rcx), %r11
movq %r13, %rdi
movq %rax, %rsi
movl %r12d, %edx
movq %r15, %rcx
movl %r14d, %r8d
movq -0x30(%rbp), %r9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *%r11
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
my_aes_crypt_init:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14d, r8d
mov r12d, edx
mov ebx, esi
mov r13, rdi
cmp esi, 2
jz short loc_D7C1E
cmp ebx, 3
jnz loc_D7C5D
test r12b, 2
jnz loc_D7CEE
mov r15, rcx
mov [rbp+var_30], r9
lea rax, _ZTV5MyCTX; `vtable for'MyCTX
add rax, 10h
mov [r13+0], rax
lea rdi, [r13+17h]
and rdi, 0FFFFFFFFFFFFFFF0h
mov [r13+0C8h], rdi
mov edx, 0B0h
xor esi, esi
call _memset
mov rdi, [r13+0C8h]
call _EVP_CIPHER_CTX_reset
lea rax, _ZTV9MyCTX_gcm; `vtable for'MyCTX_gcm
jmp loc_D7CA7
loc_D7C1E:
mov r15, rcx
mov [rbp+var_30], r9
lea rax, _ZTV5MyCTX; `vtable for'MyCTX
add rax, 10h
mov [r13+0], rax
lea rdi, [r13+17h]
and rdi, 0FFFFFFFFFFFFFFF0h
mov [r13+0C8h], rdi
mov edx, 0B0h
xor esi, esi
call _memset
mov rdi, [r13+0C8h]
call _EVP_CIPHER_CTX_reset
jmp short loc_D7CAF
loc_D7C5D:
mov r15, rcx
mov [rbp+var_30], r9
lea rax, _ZTV5MyCTX; `vtable for'MyCTX
add rax, 10h
mov [r13+0], rax
lea rdi, [r13+17h]
and rdi, 0FFFFFFFFFFFFFFF0h
mov [r13+0C8h], rdi
mov edx, 0B0h
xor esi, esi
call _memset
mov rdi, [r13+0C8h]
call _EVP_CIPHER_CTX_reset
test r12b, 2
jz short loc_D7CAF
lea rax, _ZTV11MyCTX_nopad; `vtable for'MyCTX_nopad
loc_D7CA7:
add rax, 10h
mov [r13+0], rax
loc_D7CAF:
mov eax, ebx
lea rcx, ciphers
mov edi, r14d; unsigned int
call (ciphers - 3FC370h)[rcx+rax*8]; aes_ecb(uint)
and r12d, 1
mov rcx, [r13+0]
mov r11, [rcx+10h]
mov rdi, r13
mov rsi, rax
mov edx, r12d
mov rcx, r15
mov r8d, r14d
mov r9, [rbp+var_30]
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp r11
loc_D7CEE:
mov eax, 0FFFFFF9Bh
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long my_aes_crypt_init(_QWORD *a1, int a2, char a3, long long a4, unsigned int a5, long long a6)
{
long long v9; // r15
unsigned long long v10; // rdi
long long *v11; // rax
unsigned long long v12; // rdi
unsigned long long v13; // rdi
long long v14; // rax
long long v16; // [rsp+0h] [rbp-30h]
if ( a2 == 2 )
{
v9 = a4;
v16 = a6;
*a1 = &`vtable for'MyCTX + 2;
v12 = ((unsigned long long)a1 + 23) & 0xFFFFFFFFFFFFFFF0LL;
a1[25] = v12;
memset(v12, 0LL, 176LL);
EVP_CIPHER_CTX_reset(a1[25]);
goto LABEL_9;
}
if ( a2 != 3 )
{
v9 = a4;
v16 = a6;
*a1 = &`vtable for'MyCTX + 2;
v13 = ((unsigned long long)a1 + 23) & 0xFFFFFFFFFFFFFFF0LL;
a1[25] = v13;
memset(v13, 0LL, 176LL);
EVP_CIPHER_CTX_reset(a1[25]);
if ( (a3 & 2) != 0 )
{
v11 = &`vtable for'MyCTX_nopad;
goto LABEL_8;
}
LABEL_9:
v14 = ciphers[a2](a5);
return (*(long long ( **)(_QWORD *, long long, _QWORD, long long, _QWORD, long long))(*a1 + 16LL))(
a1,
v14,
a3 & 1,
v9,
a5,
v16);
}
if ( (a3 & 2) == 0 )
{
v9 = a4;
v16 = a6;
*a1 = &`vtable for'MyCTX + 2;
v10 = ((unsigned long long)a1 + 23) & 0xFFFFFFFFFFFFFFF0LL;
a1[25] = v10;
memset(v10, 0LL, 176LL);
EVP_CIPHER_CTX_reset(a1[25]);
v11 = &`vtable for'MyCTX_gcm;
LABEL_8:
*a1 = v11 + 2;
goto LABEL_9;
}
return 4294967195LL;
}
|
my_aes_crypt_init:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14D,R8D
MOV R12D,EDX
MOV EBX,ESI
MOV R13,RDI
CMP ESI,0x2
JZ 0x001d7c1e
CMP EBX,0x3
JNZ 0x001d7c5d
TEST R12B,0x2
JNZ 0x001d7cee
MOV R15,RCX
MOV qword ptr [RBP + -0x30],R9
LEA RAX,[0x4837a8]
ADD RAX,0x10
MOV qword ptr [R13],RAX
LEA RDI,[R13 + 0x17]
AND RDI,-0x10
MOV qword ptr [R13 + 0xc8],RDI
MOV EDX,0xb0
XOR ESI,ESI
CALL 0x001292c0
MOV RDI,qword ptr [R13 + 0xc8]
CALL 0x001299b0
LEA RAX,[0x483748]
JMP 0x001d7ca7
LAB_001d7c1e:
MOV R15,RCX
MOV qword ptr [RBP + -0x30],R9
LEA RAX,[0x4837a8]
ADD RAX,0x10
MOV qword ptr [R13],RAX
LEA RDI,[R13 + 0x17]
AND RDI,-0x10
MOV qword ptr [R13 + 0xc8],RDI
MOV EDX,0xb0
XOR ESI,ESI
CALL 0x001292c0
MOV RDI,qword ptr [R13 + 0xc8]
CALL 0x001299b0
JMP 0x001d7caf
LAB_001d7c5d:
MOV R15,RCX
MOV qword ptr [RBP + -0x30],R9
LEA RAX,[0x4837a8]
ADD RAX,0x10
MOV qword ptr [R13],RAX
LEA RDI,[R13 + 0x17]
AND RDI,-0x10
MOV qword ptr [R13 + 0xc8],RDI
MOV EDX,0xb0
XOR ESI,ESI
CALL 0x001292c0
MOV RDI,qword ptr [R13 + 0xc8]
CALL 0x001299b0
TEST R12B,0x2
JZ 0x001d7caf
LEA RAX,[0x4837e0]
LAB_001d7ca7:
ADD RAX,0x10
MOV qword ptr [R13],RAX
LAB_001d7caf:
MOV EAX,EBX
LEA RCX,[0x4fc370]
MOV EDI,R14D
CALL qword ptr [RCX + RAX*0x8]
AND R12D,0x1
MOV RCX,qword ptr [R13]
MOV R11,qword ptr [RCX + 0x10]
MOV RDI,R13
MOV RSI,RAX
MOV EDX,R12D
MOV RCX,R15
MOV R8D,R14D
MOV R9,qword ptr [RBP + -0x30]
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP R11
LAB_001d7cee:
MOV EAX,0xffffff9b
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8
my_aes_crypt_init(long *param_1,uint param_2,uint param_3,int8 param_4,int4 param_5,
int8 param_6)
{
int *puVar1;
int8 uVar2;
void *pvVar3;
if (param_2 == 2) {
*param_1 = (long)&PTR__MyCTX_004837b8;
pvVar3 = (void *)((long)param_1 + 0x17U & 0xfffffffffffffff0);
param_1[0x19] = (long)pvVar3;
memset(pvVar3,0,0xb0);
EVP_CIPHER_CTX_reset(param_1[0x19]);
}
else {
if (param_2 == 3) {
if ((param_3 & 2) != 0) {
return 0xffffff9b;
}
*param_1 = (long)&PTR__MyCTX_004837b8;
pvVar3 = (void *)((long)param_1 + 0x17U & 0xfffffffffffffff0);
param_1[0x19] = (long)pvVar3;
memset(pvVar3,0,0xb0);
EVP_CIPHER_CTX_reset(param_1[0x19]);
puVar1 = &MyCTX_gcm::vtable;
}
else {
*param_1 = (long)&PTR__MyCTX_004837b8;
pvVar3 = (void *)((long)param_1 + 0x17U & 0xfffffffffffffff0);
param_1[0x19] = (long)pvVar3;
memset(pvVar3,0,0xb0);
EVP_CIPHER_CTX_reset(param_1[0x19]);
if ((param_3 & 2) == 0) goto LAB_001d7caf;
puVar1 = &MyCTX_nopad::vtable;
}
*param_1 = (long)(puVar1 + 0x10);
}
LAB_001d7caf:
uVar2 = (**(code **)(ciphers + (ulong)param_2 * 8))(param_5);
/* WARNING: Could not recover jumptable at 0x001d7ceb. Too many branches */
/* WARNING: Treating indirect jump as call */
uVar2 = (**(code **)(*param_1 + 0x10))(param_1,uVar2,param_3 & 1,param_4,param_5,param_6);
return uVar2;
}
|
|
60,798
|
fulfill_or_reject_promise
|
bluesky950520[P]quickjs/quickjs.c
|
static void fulfill_or_reject_promise(JSContext *ctx, JSValue promise,
JSValue value, BOOL is_reject)
{
JSPromiseData *s = JS_GetOpaque(promise, JS_CLASS_PROMISE);
struct list_head *el, *el1;
JSPromiseReactionData *rd;
JSValue args[5];
if (!s || s->promise_state != JS_PROMISE_PENDING)
return; /* should never happen */
set_value(ctx, &s->promise_result, js_dup(value));
s->promise_state = JS_PROMISE_FULFILLED + is_reject;
promise_trace(ctx, "fulfill_or_reject_promise: is_reject=%d\n", is_reject);
if (s->promise_state == JS_PROMISE_REJECTED && !s->is_handled) {
JSRuntime *rt = ctx->rt;
if (rt->host_promise_rejection_tracker) {
rt->host_promise_rejection_tracker(ctx, promise, value, FALSE,
rt->host_promise_rejection_tracker_opaque);
}
}
list_for_each_safe(el, el1, &s->promise_reactions[is_reject]) {
rd = list_entry(el, JSPromiseReactionData, link);
args[0] = rd->resolving_funcs[0];
args[1] = rd->resolving_funcs[1];
args[2] = rd->handler;
args[3] = js_bool(is_reject);
args[4] = value;
JS_EnqueueJob(ctx, promise_reaction_job, 5, args);
list_del(&rd->link);
promise_reaction_data_free(ctx->rt, rd);
}
list_for_each_safe(el, el1, &s->promise_reactions[1 - is_reject]) {
rd = list_entry(el, JSPromiseReactionData, link);
list_del(&rd->link);
promise_reaction_data_free(ctx->rt, rd);
}
}
|
O0
|
c
|
fulfill_or_reject_promise:
subq $0xe8, %rsp
movq %rsi, 0xd8(%rsp)
movq %rdx, 0xe0(%rsp)
movq %rcx, 0xc8(%rsp)
movq %r8, 0xd0(%rsp)
movq %rdi, 0xc0(%rsp)
movl %r9d, 0xbc(%rsp)
movq 0xd8(%rsp), %rdi
movq 0xe0(%rsp), %rsi
movl $0x31, %edx
callq 0x3e640
movq %rax, 0xb0(%rsp)
cmpq $0x0, 0xb0(%rsp)
je 0x981a1
movq 0xb0(%rsp), %rax
cmpl $0x0, (%rax)
je 0x981a6
jmp 0x984e2
movq 0xc0(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0xb0(%rsp), %rax
addq $0x30, %rax
movq %rax, 0x10(%rsp)
movq 0xc8(%rsp), %rdi
movq 0xd0(%rsp), %rsi
callq 0x279c0
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq %rax, 0x30(%rsp)
movq %rdx, 0x38(%rsp)
movq 0x30(%rsp), %rdx
movq 0x38(%rsp), %rcx
callq 0x2dd30
movl 0xbc(%rsp), %ecx
addl $0x1, %ecx
movq 0xb0(%rsp), %rax
movl %ecx, (%rax)
movq 0xb0(%rsp), %rax
cmpl $0x2, (%rax)
jne 0x98296
movq 0xb0(%rsp), %rax
cmpl $0x0, 0x28(%rax)
jne 0x98296
movq 0xc0(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
cmpq $0x0, 0x120(%rax)
je 0x98294
movq 0x28(%rsp), %rax
movq 0x120(%rax), %rax
movq 0xc0(%rsp), %rdi
movq 0x28(%rsp), %rcx
movq 0x128(%rcx), %r10
movq 0xd8(%rsp), %rsi
movq 0xe0(%rsp), %rdx
movq 0xc8(%rsp), %rcx
movq 0xd0(%rsp), %r8
xorl %r9d, %r9d
movq %r10, (%rsp)
callq *%rax
jmp 0x98296
movq 0xb0(%rsp), %rax
addq $0x8, %rax
movslq 0xbc(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movq %rax, 0xa8(%rsp)
movq 0xa8(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0xa0(%rsp)
movq 0xa8(%rsp), %rax
movq 0xb0(%rsp), %rcx
addq $0x8, %rcx
movslq 0xbc(%rsp), %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
je 0x98412
movq 0xa8(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x98(%rsp), %rax
movq 0x10(%rax), %rcx
movq %rcx, 0x40(%rsp)
movq 0x18(%rax), %rax
movq %rax, 0x48(%rsp)
movq 0x98(%rsp), %rax
movq 0x20(%rax), %rcx
movq %rcx, 0x50(%rsp)
movq 0x28(%rax), %rax
movq %rax, 0x58(%rsp)
movq 0x98(%rsp), %rax
movq 0x30(%rax), %rcx
movq %rcx, 0x60(%rsp)
movq 0x38(%rax), %rax
movq %rax, 0x68(%rsp)
movl 0xbc(%rsp), %edi
callq 0x5d540
movq %rax, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0xc8(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0xd0(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0xc0(%rsp), %rdi
leaq 0x40(%rsp), %rcx
leaq -0x1d129(%rip), %rsi # 0x7b290
movl $0x5, %edx
callq 0x29c20
movq 0x98(%rsp), %rdi
callq 0x29f20
movq 0xc0(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x98(%rsp), %rsi
callq 0x7b220
movq 0xa0(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0xa8(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0xa0(%rsp)
jmp 0x982d1
movq 0xb0(%rsp), %rax
addq $0x8, %rax
movl $0x1, %ecx
subl 0xbc(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movq %rax, 0xa8(%rsp)
movq 0xa8(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0xa0(%rsp)
movq 0xa8(%rsp), %rax
movq 0xb0(%rsp), %rcx
addq $0x8, %rcx
movl $0x1, %edx
subl 0xbc(%rsp), %edx
movslq %edx, %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
je 0x984e2
movq 0xa8(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x98(%rsp), %rdi
callq 0x29f20
movq 0xc0(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x98(%rsp), %rsi
callq 0x7b220
movq 0xa0(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0xa8(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0xa0(%rsp)
jmp 0x98454
addq $0xe8, %rsp
retq
nopw (%rax,%rax)
|
fulfill_or_reject_promise:
sub rsp, 0E8h
mov [rsp+0E8h+var_10], rsi
mov [rsp+0E8h+var_8], rdx
mov [rsp+0E8h+var_20], rcx
mov [rsp+0E8h+var_18], r8
mov [rsp+0E8h+var_28], rdi
mov [rsp+0E8h+var_2C], r9d
mov rdi, [rsp+0E8h+var_10]
mov rsi, [rsp+0E8h+var_8]
mov edx, 31h ; '1'
call JS_GetOpaque
mov [rsp+0E8h+var_38], rax
cmp [rsp+0E8h+var_38], 0
jz short loc_981A1
mov rax, [rsp+0E8h+var_38]
cmp dword ptr [rax], 0
jz short loc_981A6
loc_981A1:
jmp loc_984E2
loc_981A6:
mov rax, [rsp+0E8h+var_28]
mov [rsp+0E8h+var_E0], rax
mov rax, [rsp+0E8h+var_38]
add rax, 30h ; '0'
mov [rsp+0E8h+var_D8], rax
mov rdi, [rsp+0E8h+var_20]
mov rsi, [rsp+0E8h+var_18]
call js_dup
mov rdi, [rsp+0E8h+var_E0]
mov rsi, [rsp+0E8h+var_D8]
mov [rsp+0E8h+var_B8], rax
mov [rsp+0E8h+var_B0], rdx
mov rdx, [rsp+0E8h+var_B8]
mov rcx, [rsp+0E8h+var_B0]
call set_value
mov ecx, [rsp+0E8h+var_2C]
add ecx, 1
mov rax, [rsp+0E8h+var_38]
mov [rax], ecx
mov rax, [rsp+0E8h+var_38]
cmp dword ptr [rax], 2
jnz short loc_98296
mov rax, [rsp+0E8h+var_38]
cmp dword ptr [rax+28h], 0
jnz short loc_98296
mov rax, [rsp+0E8h+var_28]
mov rax, [rax+18h]
mov [rsp+0E8h+var_C0], rax
mov rax, [rsp+0E8h+var_C0]
cmp qword ptr [rax+120h], 0
jz short loc_98294
mov rax, [rsp+0E8h+var_C0]
mov rax, [rax+120h]
mov rdi, [rsp+0E8h+var_28]
mov rcx, [rsp+0E8h+var_C0]
mov r10, [rcx+128h]
mov rsi, [rsp+0E8h+var_10]
mov rdx, [rsp+0E8h+var_8]
mov rcx, [rsp+0E8h+var_20]
mov r8, [rsp+0E8h+var_18]
xor r9d, r9d
mov [rsp+0E8h+var_E8], r10
call rax
loc_98294:
jmp short $+2
loc_98296:
mov rax, [rsp+0E8h+var_38]
add rax, 8
movsxd rcx, [rsp+0E8h+var_2C]
shl rcx, 4
add rax, rcx
mov rax, [rax+8]
mov [rsp+0E8h+var_40], rax
mov rax, [rsp+0E8h+var_40]
mov rax, [rax+8]
mov [rsp+0E8h+var_48], rax
loc_982D1:
mov rax, [rsp+0E8h+var_40]
mov rcx, [rsp+0E8h+var_38]
add rcx, 8
movsxd rdx, [rsp+0E8h+var_2C]
shl rdx, 4
add rcx, rdx
cmp rax, rcx
jz loc_98412
mov rax, [rsp+0E8h+var_40]
mov [rsp+0E8h+var_50], rax
mov rax, [rsp+0E8h+var_50]
mov rcx, [rax+10h]
mov [rsp+0E8h+var_A8], rcx
mov rax, [rax+18h]
mov [rsp+0E8h+var_A0], rax
mov rax, [rsp+0E8h+var_50]
mov rcx, [rax+20h]
mov [rsp+0E8h+var_98], rcx
mov rax, [rax+28h]
mov [rsp+0E8h+var_90], rax
mov rax, [rsp+0E8h+var_50]
mov rcx, [rax+30h]
mov [rsp+0E8h+var_88], rcx
mov rax, [rax+38h]
mov [rsp+0E8h+var_80], rax
mov edi, [rsp+0E8h+var_2C]
call js_bool
mov [rsp+0E8h+var_D0], rax
mov [rsp+0E8h+var_C8], rdx
mov rax, [rsp+0E8h+var_D0]
mov [rsp+0E8h+var_78], rax
mov rax, [rsp+0E8h+var_C8]
mov [rsp+0E8h+var_70], rax
mov rax, [rsp+0E8h+var_20]
mov [rsp+0E8h+var_68], rax
mov rax, [rsp+0E8h+var_18]
mov [rsp+0E8h+var_60], rax
mov rdi, [rsp+0E8h+var_28]
lea rcx, [rsp+0E8h+var_A8]
lea rsi, promise_reaction_job
mov edx, 5
call JS_EnqueueJob
mov rdi, [rsp+0E8h+var_50]
call list_del_1
mov rax, [rsp+0E8h+var_28]
mov rdi, [rax+18h]
mov rsi, [rsp+0E8h+var_50]
call promise_reaction_data_free
mov rax, [rsp+0E8h+var_48]
mov [rsp+0E8h+var_40], rax
mov rax, [rsp+0E8h+var_40]
mov rax, [rax+8]
mov [rsp+0E8h+var_48], rax
jmp loc_982D1
loc_98412:
mov rax, [rsp+0E8h+var_38]
add rax, 8
mov ecx, 1
sub ecx, [rsp+0E8h+var_2C]
movsxd rcx, ecx
shl rcx, 4
add rax, rcx
mov rax, [rax+8]
mov [rsp+0E8h+var_40], rax
mov rax, [rsp+0E8h+var_40]
mov rax, [rax+8]
mov [rsp+0E8h+var_48], rax
loc_98454:
mov rax, [rsp+0E8h+var_40]
mov rcx, [rsp+0E8h+var_38]
add rcx, 8
mov edx, 1
sub edx, [rsp+0E8h+var_2C]
movsxd rdx, edx
shl rdx, 4
add rcx, rdx
cmp rax, rcx
jz short loc_984E2
mov rax, [rsp+0E8h+var_40]
mov [rsp+0E8h+var_50], rax
mov rdi, [rsp+0E8h+var_50]
call list_del_1
mov rax, [rsp+0E8h+var_28]
mov rdi, [rax+18h]
mov rsi, [rsp+0E8h+var_50]
call promise_reaction_data_free
mov rax, [rsp+0E8h+var_48]
mov [rsp+0E8h+var_40], rax
mov rax, [rsp+0E8h+var_40]
mov rax, [rax+8]
mov [rsp+0E8h+var_48], rax
jmp loc_98454
loc_984E2:
add rsp, 0E8h
retn
|
_QWORD * fulfill_or_reject_promise(long long a1, long long a2, long long a3, _DWORD *a4, long long a5, int a6)
{
_QWORD *result; // rax
long long v7; // rdx
long long v8; // rdx
long long v9; // [rsp+28h] [rbp-C0h]
_DWORD *v10; // [rsp+30h] [rbp-B8h]
_QWORD v11[11]; // [rsp+40h] [rbp-A8h] BYREF
_QWORD *v12; // [rsp+98h] [rbp-50h]
_QWORD *i; // [rsp+A0h] [rbp-48h]
_QWORD *v14; // [rsp+A8h] [rbp-40h]
_QWORD *v15; // [rsp+B0h] [rbp-38h]
int v16; // [rsp+BCh] [rbp-2Ch]
long long v17; // [rsp+C0h] [rbp-28h]
_DWORD *v18; // [rsp+C8h] [rbp-20h]
long long v19; // [rsp+D0h] [rbp-18h]
long long v20; // [rsp+D8h] [rbp-10h]
long long v21; // [rsp+E0h] [rbp-8h]
v20 = a2;
v21 = a3;
v18 = a4;
v19 = a5;
v17 = a1;
v16 = a6;
result = (_QWORD *)JS_GetOpaque(a2, a3, 49);
v15 = result;
if ( result )
{
result = v15;
if ( !*(_DWORD *)v15 )
{
v10 = js_dup(v18, v19);
set_value(v17, v15 + 6, (long long)v10, v7);
*(_DWORD *)v15 = v16 + 1;
if ( *(_DWORD *)v15 == 2 && !*((_DWORD *)v15 + 10) )
{
v9 = *(_QWORD *)(v17 + 24);
if ( *(_QWORD *)(v9 + 288) )
(*(void ( **)(long long, long long, long long, _DWORD *, long long, _QWORD, _QWORD))(v9 + 288))(
v17,
v20,
v21,
v18,
v19,
0LL,
*(_QWORD *)(v9 + 296));
}
v14 = (_QWORD *)v15[2 * v16 + 2];
i = (_QWORD *)v14[1];
while ( v14 != &v15[2 * v16 + 1] )
{
v12 = v14;
v11[0] = v14[2];
v11[1] = v14[3];
v11[2] = v14[4];
v11[3] = v14[5];
v11[4] = v14[6];
v11[5] = v14[7];
v11[6] = js_bool(v16);
v11[7] = v8;
v11[8] = v18;
v11[9] = v19;
JS_EnqueueJob(v17, (long long)promise_reaction_job, 5, (long long)v11);
list_del_1(v12);
promise_reaction_data_free(*(_QWORD *)(v17 + 24), (long long)v12);
v14 = i;
i = (_QWORD *)i[1];
}
v14 = (_QWORD *)v15[2 * (1 - v16) + 2];
for ( i = (_QWORD *)v14[1]; ; i = (_QWORD *)i[1] )
{
result = v14;
if ( v14 == &v15[2 * (1 - v16) + 1] )
break;
v12 = v14;
list_del_1(v14);
promise_reaction_data_free(*(_QWORD *)(v17 + 24), (long long)v12);
v14 = i;
}
}
}
return result;
}
|
fulfill_or_reject_promise:
SUB RSP,0xe8
MOV qword ptr [RSP + 0xd8],RSI
MOV qword ptr [RSP + 0xe0],RDX
MOV qword ptr [RSP + 0xc8],RCX
MOV qword ptr [RSP + 0xd0],R8
MOV qword ptr [RSP + 0xc0],RDI
MOV dword ptr [RSP + 0xbc],R9D
MOV RDI,qword ptr [RSP + 0xd8]
MOV RSI,qword ptr [RSP + 0xe0]
MOV EDX,0x31
CALL 0x0013e640
MOV qword ptr [RSP + 0xb0],RAX
CMP qword ptr [RSP + 0xb0],0x0
JZ 0x001981a1
MOV RAX,qword ptr [RSP + 0xb0]
CMP dword ptr [RAX],0x0
JZ 0x001981a6
LAB_001981a1:
JMP 0x001984e2
LAB_001981a6:
MOV RAX,qword ptr [RSP + 0xc0]
MOV qword ptr [RSP + 0x8],RAX
MOV RAX,qword ptr [RSP + 0xb0]
ADD RAX,0x30
MOV qword ptr [RSP + 0x10],RAX
MOV RDI,qword ptr [RSP + 0xc8]
MOV RSI,qword ptr [RSP + 0xd0]
CALL 0x001279c0
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x30],RAX
MOV qword ptr [RSP + 0x38],RDX
MOV RDX,qword ptr [RSP + 0x30]
MOV RCX,qword ptr [RSP + 0x38]
CALL 0x0012dd30
MOV ECX,dword ptr [RSP + 0xbc]
ADD ECX,0x1
MOV RAX,qword ptr [RSP + 0xb0]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RSP + 0xb0]
CMP dword ptr [RAX],0x2
JNZ 0x00198296
MOV RAX,qword ptr [RSP + 0xb0]
CMP dword ptr [RAX + 0x28],0x0
JNZ 0x00198296
MOV RAX,qword ptr [RSP + 0xc0]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP + 0x28],RAX
MOV RAX,qword ptr [RSP + 0x28]
CMP qword ptr [RAX + 0x120],0x0
JZ 0x00198294
MOV RAX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RAX + 0x120]
MOV RDI,qword ptr [RSP + 0xc0]
MOV RCX,qword ptr [RSP + 0x28]
MOV R10,qword ptr [RCX + 0x128]
MOV RSI,qword ptr [RSP + 0xd8]
MOV RDX,qword ptr [RSP + 0xe0]
MOV RCX,qword ptr [RSP + 0xc8]
MOV R8,qword ptr [RSP + 0xd0]
XOR R9D,R9D
MOV qword ptr [RSP],R10
CALL RAX
LAB_00198294:
JMP 0x00198296
LAB_00198296:
MOV RAX,qword ptr [RSP + 0xb0]
ADD RAX,0x8
MOVSXD RCX,dword ptr [RSP + 0xbc]
SHL RCX,0x4
ADD RAX,RCX
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0xa8],RAX
MOV RAX,qword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0xa0],RAX
LAB_001982d1:
MOV RAX,qword ptr [RSP + 0xa8]
MOV RCX,qword ptr [RSP + 0xb0]
ADD RCX,0x8
MOVSXD RDX,dword ptr [RSP + 0xbc]
SHL RDX,0x4
ADD RCX,RDX
CMP RAX,RCX
JZ 0x00198412
MOV RAX,qword ptr [RSP + 0xa8]
MOV qword ptr [RSP + 0x98],RAX
MOV RAX,qword ptr [RSP + 0x98]
MOV RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x40],RCX
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP + 0x48],RAX
MOV RAX,qword ptr [RSP + 0x98]
MOV RCX,qword ptr [RAX + 0x20]
MOV qword ptr [RSP + 0x50],RCX
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RSP + 0x58],RAX
MOV RAX,qword ptr [RSP + 0x98]
MOV RCX,qword ptr [RAX + 0x30]
MOV qword ptr [RSP + 0x60],RCX
MOV RAX,qword ptr [RAX + 0x38]
MOV qword ptr [RSP + 0x68],RAX
MOV EDI,dword ptr [RSP + 0xbc]
CALL 0x0015d540
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x20],RDX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x70],RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x78],RAX
MOV RAX,qword ptr [RSP + 0xc8]
MOV qword ptr [RSP + 0x80],RAX
MOV RAX,qword ptr [RSP + 0xd0]
MOV qword ptr [RSP + 0x88],RAX
MOV RDI,qword ptr [RSP + 0xc0]
LEA RCX,[RSP + 0x40]
LEA RSI,[0x17b290]
MOV EDX,0x5
CALL 0x00129c20
MOV RDI,qword ptr [RSP + 0x98]
CALL 0x00129f20
MOV RAX,qword ptr [RSP + 0xc0]
MOV RDI,qword ptr [RAX + 0x18]
MOV RSI,qword ptr [RSP + 0x98]
CALL 0x0017b220
MOV RAX,qword ptr [RSP + 0xa0]
MOV qword ptr [RSP + 0xa8],RAX
MOV RAX,qword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0xa0],RAX
JMP 0x001982d1
LAB_00198412:
MOV RAX,qword ptr [RSP + 0xb0]
ADD RAX,0x8
MOV ECX,0x1
SUB ECX,dword ptr [RSP + 0xbc]
MOVSXD RCX,ECX
SHL RCX,0x4
ADD RAX,RCX
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0xa8],RAX
MOV RAX,qword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0xa0],RAX
LAB_00198454:
MOV RAX,qword ptr [RSP + 0xa8]
MOV RCX,qword ptr [RSP + 0xb0]
ADD RCX,0x8
MOV EDX,0x1
SUB EDX,dword ptr [RSP + 0xbc]
MOVSXD RDX,EDX
SHL RDX,0x4
ADD RCX,RDX
CMP RAX,RCX
JZ 0x001984e2
MOV RAX,qword ptr [RSP + 0xa8]
MOV qword ptr [RSP + 0x98],RAX
MOV RDI,qword ptr [RSP + 0x98]
CALL 0x00129f20
MOV RAX,qword ptr [RSP + 0xc0]
MOV RDI,qword ptr [RAX + 0x18]
MOV RSI,qword ptr [RSP + 0x98]
CALL 0x0017b220
MOV RAX,qword ptr [RSP + 0xa0]
MOV qword ptr [RSP + 0xa8],RAX
MOV RAX,qword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0xa0],RAX
JMP 0x00198454
LAB_001984e2:
ADD RSP,0xe8
RET
|
void fulfill_or_reject_promise
(long param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int param_6)
{
long lVar1;
int *piVar2;
int1 auVar3 [16];
int8 local_a8;
int8 local_a0;
int8 local_98;
int8 local_90;
int8 local_88;
int8 local_80;
int1 local_78 [16];
int8 local_68;
int8 local_60;
int *local_50;
int *local_48;
int *local_40;
int *local_38;
int local_2c;
long local_28;
int8 local_20;
int8 local_18;
int8 local_10;
int8 local_8;
local_2c = param_6;
local_28 = param_1;
local_20 = param_4;
local_18 = param_5;
local_10 = param_2;
local_8 = param_3;
local_38 = (int *)JS_GetOpaque(param_2,param_3,0x31);
lVar1 = local_28;
if ((local_38 != (int *)0x0) && (*local_38 == 0)) {
piVar2 = local_38 + 0xc;
auVar3 = js_dup(local_20,local_18);
set_value(lVar1,piVar2,auVar3._0_8_,auVar3._8_8_);
*local_38 = local_2c + 1;
if ((*local_38 == 2) &&
((local_38[10] == 0 && (lVar1 = *(long *)(local_28 + 0x18), *(long *)(lVar1 + 0x120) != 0))))
{
(**(code **)(lVar1 + 0x120))
(local_28,local_10,local_8,local_20,local_18,0,*(int8 *)(lVar1 + 0x128));
}
local_40 = *(int **)(local_38 + (long)local_2c * 4 + 4);
local_48 = *(int **)(local_40 + 2);
while (local_40 != local_38 + (long)local_2c * 4 + 2) {
local_50 = local_40;
local_a8 = *(int8 *)(local_40 + 4);
local_a0 = *(int8 *)(local_40 + 6);
local_98 = *(int8 *)(local_40 + 8);
local_90 = *(int8 *)(local_40 + 10);
local_88 = *(int8 *)(local_40 + 0xc);
local_80 = *(int8 *)(local_40 + 0xe);
auVar3 = js_bool(local_2c);
local_68 = local_20;
local_60 = local_18;
local_78 = auVar3;
JS_EnqueueJob(local_28,promise_reaction_job,5,&local_a8);
list_del(local_50);
promise_reaction_data_free(*(int8 *)(local_28 + 0x18),local_50);
local_40 = local_48;
local_48 = *(int **)(local_48 + 2);
}
local_40 = *(int **)(local_38 + (long)(1 - local_2c) * 4 + 4);
local_48 = *(int **)(local_40 + 2);
while (local_40 != local_38 + (long)(1 - local_2c) * 4 + 2) {
local_50 = local_40;
list_del(local_40);
promise_reaction_data_free(*(int8 *)(local_28 + 0x18),local_50);
local_40 = local_48;
local_48 = *(int **)(local_48 + 2);
}
}
return;
}
|
|
60,799
|
fulfill_or_reject_promise
|
bluesky950520[P]quickjs/quickjs.c
|
static void fulfill_or_reject_promise(JSContext *ctx, JSValue promise,
JSValue value, BOOL is_reject)
{
JSPromiseData *s = JS_GetOpaque(promise, JS_CLASS_PROMISE);
struct list_head *el, *el1;
JSPromiseReactionData *rd;
JSValue args[5];
if (!s || s->promise_state != JS_PROMISE_PENDING)
return; /* should never happen */
set_value(ctx, &s->promise_result, js_dup(value));
s->promise_state = JS_PROMISE_FULFILLED + is_reject;
promise_trace(ctx, "fulfill_or_reject_promise: is_reject=%d\n", is_reject);
if (s->promise_state == JS_PROMISE_REJECTED && !s->is_handled) {
JSRuntime *rt = ctx->rt;
if (rt->host_promise_rejection_tracker) {
rt->host_promise_rejection_tracker(ctx, promise, value, FALSE,
rt->host_promise_rejection_tracker_opaque);
}
}
list_for_each_safe(el, el1, &s->promise_reactions[is_reject]) {
rd = list_entry(el, JSPromiseReactionData, link);
args[0] = rd->resolving_funcs[0];
args[1] = rd->resolving_funcs[1];
args[2] = rd->handler;
args[3] = js_bool(is_reject);
args[4] = value;
JS_EnqueueJob(ctx, promise_reaction_job, 5, args);
list_del(&rd->link);
promise_reaction_data_free(ctx->rt, rd);
}
list_for_each_safe(el, el1, &s->promise_reactions[1 - is_reject]) {
rd = list_entry(el, JSPromiseReactionData, link);
list_del(&rd->link);
promise_reaction_data_free(ctx->rt, rd);
}
}
|
O2
|
c
|
fulfill_or_reject_promise:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %r8, 0x18(%rsp)
movq %rcx, 0x10(%rsp)
movq %rdx, %r13
cmpl $-0x1, %r13d
jne 0x4ac5f
movq %rsi, %rbp
cmpw $0x31, 0x6(%rsi)
jne 0x4ac5f
movq 0x30(%rbp), %r15
testq %r15, %r15
je 0x4ac5f
cmpl $0x0, (%r15)
je 0x4ac71
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r9d, %r14d
movq %rdi, %rbx
leaq 0x30(%r15), %rsi
cmpl $-0x9, 0x18(%rsp)
jb 0x4ac89
movq 0x10(%rsp), %rax
incl (%rax)
movq %rbx, %rdi
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rcx
callq 0x1da9c
leal 0x1(%r14), %eax
movl %eax, (%r15)
cmpl $0x2, %eax
jne 0x4ace1
cmpl $0x0, 0x28(%r15)
jne 0x4ace1
movq 0x18(%rbx), %rcx
movq 0x120(%rcx), %rax
testq %rax, %rax
je 0x4ace1
movq 0x128(%rcx), %rcx
movq %rcx, (%rsp)
movq %rbx, %rdi
movq %rbp, %rsi
movq %r13, %rdx
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %r8
xorl %r9d, %r9d
callq *%rax
movslq %r14d, %rax
shlq $0x4, %rax
movq %r14, %rcx
leaq (%r15,%rax), %r14
addq $0x8, %r14
addq $0x8, %r15
movq %r15, 0x20(%rsp)
movq 0x8(%r14), %r13
leaq 0x40(%rsp), %rbp
xorl %r12d, %r12d
movq %rcx, 0x28(%rsp)
testl %ecx, %ecx
setne %r12b
cmpq %r14, %r13
je 0x4ada0
movq 0x8(%r13), %r15
movups 0x10(%r13), %xmm0
movaps %xmm0, 0x30(%rsp)
movups 0x20(%r13), %xmm0
movups %xmm0, (%rbp)
movups 0x30(%r13), %xmm0
movups %xmm0, 0x10(%rbp)
movq %r12, 0x60(%rsp)
movq $0x1, 0x68(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x78(%rsp)
movq %rbx, %rdi
leaq -0xb35b(%rip), %rsi # 0x3fa0d
pushq $0x5
popq %rdx
leaq 0x30(%rsp), %rcx
callq 0x1ba59
movq (%r13), %rax
movq 0x8(%r13), %rcx
movq %rcx, 0x8(%rax)
movq %rax, (%rcx)
xorps %xmm0, %xmm0
movups %xmm0, (%r13)
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0x3f9c4
movq %r15, %r13
jmp 0x4ad13
pushq $0x1
popq %rax
subl 0x28(%rsp), %eax
cltq
shlq $0x4, %rax
movq 0x20(%rsp), %rcx
leaq (%rcx,%rax), %r14
movq 0x8(%rcx,%rax), %rsi
cmpq %r14, %rsi
je 0x4ac5f
movq (%rsi), %rax
movq 0x8(%rsi), %r15
movq %r15, 0x8(%rax)
movq %rax, (%r15)
xorps %xmm0, %xmm0
movups %xmm0, (%rsi)
movq 0x18(%rbx), %rdi
callq 0x3f9c4
movq %r15, %rsi
jmp 0x4adbb
|
fulfill_or_reject_promise:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 88h
mov [rsp+0B8h+var_A0], r8
mov [rsp+0B8h+var_A8], rcx
mov r13, rdx
cmp r13d, 0FFFFFFFFh
jnz short loc_4AC5F
mov rbp, rsi
cmp word ptr [rsi+6], 31h ; '1'
jnz short loc_4AC5F
mov r15, [rbp+30h]
test r15, r15
jz short loc_4AC5F
cmp dword ptr [r15], 0
jz short loc_4AC71
loc_4AC5F:
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_4AC71:
mov r14d, r9d
mov rbx, rdi
lea rsi, [r15+30h]
cmp dword ptr [rsp+0B8h+var_A0], 0FFFFFFF7h
jb short loc_4AC89
mov rax, [rsp+0B8h+var_A8]
inc dword ptr [rax]
loc_4AC89:
mov rdi, rbx
mov rdx, [rsp+0B8h+var_A8]
mov rcx, [rsp+0B8h+var_A0]
call set_value
lea eax, [r14+1]
mov [r15], eax
cmp eax, 2
jnz short loc_4ACE1
cmp dword ptr [r15+28h], 0
jnz short loc_4ACE1
mov rcx, [rbx+18h]
mov rax, [rcx+120h]
test rax, rax
jz short loc_4ACE1
mov rcx, [rcx+128h]
mov [rsp+0B8h+var_B8], rcx
mov rdi, rbx
mov rsi, rbp
mov rdx, r13
mov rcx, [rsp+0B8h+var_A8]
mov r8, [rsp+0B8h+var_A0]
xor r9d, r9d
call rax
loc_4ACE1:
movsxd rax, r14d
shl rax, 4
mov rcx, r14
lea r14, [r15+rax]
add r14, 8
add r15, 8
mov [rsp+0B8h+var_98], r15
mov r13, [r14+8]
lea rbp, [rsp+0B8h+var_78]
xor r12d, r12d
mov [rsp+0B8h+var_90], rcx
test ecx, ecx
setnz r12b
loc_4AD13:
cmp r13, r14
jz loc_4ADA0
mov r15, [r13+8]
movups xmm0, xmmword ptr [r13+10h]
movaps [rsp+0B8h+var_88], xmm0
movups xmm0, xmmword ptr [r13+20h]
movups xmmword ptr [rbp+0], xmm0
movups xmm0, xmmword ptr [r13+30h]
movups xmmword ptr [rbp+10h], xmm0
mov [rsp+0B8h+var_58], r12
mov [rsp+0B8h+var_50], 1
mov rax, [rsp+0B8h+var_A8]
mov [rsp+0B8h+var_48], rax
mov rax, [rsp+0B8h+var_A0]
mov [rsp+0B8h+var_40], rax
mov rdi, rbx
lea rsi, promise_reaction_job
push 5
pop rdx
lea rcx, [rsp+0B8h+var_88]
call JS_EnqueueJob
mov rax, [r13+0]
mov rcx, [r13+8]
mov [rax+8], rcx
mov [rcx], rax
xorps xmm0, xmm0
movups xmmword ptr [r13+0], xmm0
mov rdi, [rbx+18h]
mov rsi, r13
call promise_reaction_data_free
mov r13, r15
jmp loc_4AD13
loc_4ADA0:
push 1
pop rax
sub eax, dword ptr [rsp+0B8h+var_90]
cdqe
shl rax, 4
mov rcx, [rsp+0B8h+var_98]
lea r14, [rcx+rax]
mov rsi, [rcx+rax+8]
loc_4ADBB:
cmp rsi, r14
jz loc_4AC5F
mov rax, [rsi]
mov r15, [rsi+8]
mov [rax+8], r15
mov [r15], rax
xorps xmm0, xmm0
movups xmmword ptr [rsi], xmm0
mov rdi, [rbx+18h]
call promise_reaction_data_free
mov rsi, r15
jmp short loc_4ADBB
|
void fulfill_or_reject_promise(long long a1, long long a2, long long a3, _DWORD *a4, long long a5, int a6)
{
long long v7; // r15
long long v9; // rcx
void ( *v10)(long long, long long, long long, _DWORD *, long long, _QWORD, _QWORD); // rax
int v11; // ecx
long long v12; // r14
long long v13; // r13
_BOOL8 v14; // r12
long long v15; // r15
long long v16; // rax
_QWORD *v17; // rcx
long long *v18; // r14
long long *i; // rsi
long long v20; // rax
long long *v21; // r15
long long v24; // [rsp+20h] [rbp-98h]
int v25; // [rsp+28h] [rbp-90h]
_OWORD v26[3]; // [rsp+30h] [rbp-88h] BYREF
_BOOL8 v27; // [rsp+60h] [rbp-58h]
long long v28; // [rsp+68h] [rbp-50h]
_DWORD *v29; // [rsp+70h] [rbp-48h]
long long v30; // [rsp+78h] [rbp-40h]
if ( (_DWORD)a3 == -1 && *(_WORD *)(a2 + 6) == 49 )
{
v7 = *(_QWORD *)(a2 + 48);
if ( v7 )
{
if ( !*(_DWORD *)v7 )
{
if ( (unsigned int)a5 >= 0xFFFFFFF7 )
++*a4;
set_value(a1, (long long *)(v7 + 48), (long long)a4, a5);
*(_DWORD *)v7 = a6 + 1;
if ( a6 == 1 && !*(_DWORD *)(v7 + 40) )
{
v9 = *(_QWORD *)(a1 + 24);
v10 = *(void ( **)(long long, long long, long long, _DWORD *, long long, _QWORD, _QWORD))(v9 + 288);
if ( v10 )
v10(a1, a2, a3, a4, a5, 0LL, *(_QWORD *)(v9 + 296));
}
v11 = a6;
v12 = v7 + 16LL * a6 + 8;
v24 = v7 + 8;
v13 = *(_QWORD *)(v12 + 8);
v25 = v11;
v14 = v11 != 0;
while ( v13 != v12 )
{
v15 = *(_QWORD *)(v13 + 8);
v26[0] = *(_OWORD *)(v13 + 16);
v26[1] = *(_OWORD *)(v13 + 32);
v26[2] = *(_OWORD *)(v13 + 48);
v27 = v14;
v28 = 1LL;
v29 = a4;
v30 = a5;
JS_EnqueueJob(a1, (long long)promise_reaction_job, 5u, (long long)v26);
v16 = *(_QWORD *)v13;
v17 = *(_QWORD **)(v13 + 8);
*(_QWORD *)(v16 + 8) = v17;
*v17 = v16;
*(_OWORD *)v13 = 0LL;
promise_reaction_data_free(*(_QWORD *)(a1 + 24), v13);
v13 = v15;
}
v18 = (long long *)(v24 + 16LL * (1 - v25));
for ( i = (long long *)v18[1]; i != v18; i = v21 )
{
v20 = *i;
v21 = (long long *)i[1];
*(_QWORD *)(v20 + 8) = v21;
*v21 = v20;
*(_OWORD *)i = 0LL;
promise_reaction_data_free(*(_QWORD *)(a1 + 24), (long long)i);
}
}
}
}
}
|
fulfill_or_reject_promise:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV qword ptr [RSP + 0x18],R8
MOV qword ptr [RSP + 0x10],RCX
MOV R13,RDX
CMP R13D,-0x1
JNZ 0x0014ac5f
MOV RBP,RSI
CMP word ptr [RSI + 0x6],0x31
JNZ 0x0014ac5f
MOV R15,qword ptr [RBP + 0x30]
TEST R15,R15
JZ 0x0014ac5f
CMP dword ptr [R15],0x0
JZ 0x0014ac71
LAB_0014ac5f:
ADD RSP,0x88
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0014ac71:
MOV R14D,R9D
MOV RBX,RDI
LEA RSI,[R15 + 0x30]
CMP dword ptr [RSP + 0x18],-0x9
JC 0x0014ac89
MOV RAX,qword ptr [RSP + 0x10]
INC dword ptr [RAX]
LAB_0014ac89:
MOV RDI,RBX
MOV RDX,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x18]
CALL 0x0011da9c
LEA EAX,[R14 + 0x1]
MOV dword ptr [R15],EAX
CMP EAX,0x2
JNZ 0x0014ace1
CMP dword ptr [R15 + 0x28],0x0
JNZ 0x0014ace1
MOV RCX,qword ptr [RBX + 0x18]
MOV RAX,qword ptr [RCX + 0x120]
TEST RAX,RAX
JZ 0x0014ace1
MOV RCX,qword ptr [RCX + 0x128]
MOV qword ptr [RSP],RCX
MOV RDI,RBX
MOV RSI,RBP
MOV RDX,R13
MOV RCX,qword ptr [RSP + 0x10]
MOV R8,qword ptr [RSP + 0x18]
XOR R9D,R9D
CALL RAX
LAB_0014ace1:
MOVSXD RAX,R14D
SHL RAX,0x4
MOV RCX,R14
LEA R14,[R15 + RAX*0x1]
ADD R14,0x8
ADD R15,0x8
MOV qword ptr [RSP + 0x20],R15
MOV R13,qword ptr [R14 + 0x8]
LEA RBP,[RSP + 0x40]
XOR R12D,R12D
MOV qword ptr [RSP + 0x28],RCX
TEST ECX,ECX
SETNZ R12B
LAB_0014ad13:
CMP R13,R14
JZ 0x0014ada0
MOV R15,qword ptr [R13 + 0x8]
MOVUPS XMM0,xmmword ptr [R13 + 0x10]
MOVAPS xmmword ptr [RSP + 0x30],XMM0
MOVUPS XMM0,xmmword ptr [R13 + 0x20]
MOVUPS xmmword ptr [RBP],XMM0
MOVUPS XMM0,xmmword ptr [R13 + 0x30]
MOVUPS xmmword ptr [RBP + 0x10],XMM0
MOV qword ptr [RSP + 0x60],R12
MOV qword ptr [RSP + 0x68],0x1
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x70],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x78],RAX
MOV RDI,RBX
LEA RSI,[0x13fa0d]
PUSH 0x5
POP RDX
LEA RCX,[RSP + 0x30]
CALL 0x0011ba59
MOV RAX,qword ptr [R13]
MOV RCX,qword ptr [R13 + 0x8]
MOV qword ptr [RAX + 0x8],RCX
MOV qword ptr [RCX],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R13],XMM0
MOV RDI,qword ptr [RBX + 0x18]
MOV RSI,R13
CALL 0x0013f9c4
MOV R13,R15
JMP 0x0014ad13
LAB_0014ada0:
PUSH 0x1
POP RAX
SUB EAX,dword ptr [RSP + 0x28]
CDQE
SHL RAX,0x4
MOV RCX,qword ptr [RSP + 0x20]
LEA R14,[RCX + RAX*0x1]
MOV RSI,qword ptr [RCX + RAX*0x1 + 0x8]
LAB_0014adbb:
CMP RSI,R14
JZ 0x0014ac5f
MOV RAX,qword ptr [RSI]
MOV R15,qword ptr [RSI + 0x8]
MOV qword ptr [RAX + 0x8],R15
MOV qword ptr [R15],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSI],XMM0
MOV RDI,qword ptr [RBX + 0x18]
CALL 0x0013f9c4
MOV RSI,R15
JMP 0x0014adbb
|
void fulfill_or_reject_promise
(long param_1,long param_2,int8 param_3,int *param_4,int8 param_5,
int param_6)
{
int *piVar1;
code *pcVar2;
long *plVar3;
long lVar4;
long *plVar5;
long *plVar6;
uint local_a0;
long local_88;
long lStack_80;
long local_78;
long lStack_70;
int local_68;
int iStack_64;
int iStack_60;
int iStack_5c;
ulong local_58;
int8 local_50;
int *local_48;
int8 local_40;
if (((((int)param_3 == -1) && (*(short *)(param_2 + 6) == 0x31)) &&
(piVar1 = *(int **)(param_2 + 0x30), piVar1 != (int *)0x0)) && (*piVar1 == 0)) {
local_a0 = (uint)param_5;
if (0xfffffff6 < local_a0) {
*param_4 = *param_4 + 1;
}
set_value(param_1,piVar1 + 0xc,param_4,param_5);
*piVar1 = param_6 + 1;
if ((param_6 + 1 == 2) && (piVar1[10] == 0)) {
pcVar2 = *(code **)(*(long *)(param_1 + 0x18) + 0x120);
if (pcVar2 != (code *)0x0) {
(*pcVar2)(param_1,param_2,param_3,param_4,param_5,0,
*(int8 *)(*(long *)(param_1 + 0x18) + 0x128));
}
}
plVar6 = *(long **)(piVar1 + (long)param_6 * 4 + 4);
while (plVar6 != (long *)(piVar1 + (long)param_6 * 4 + 2)) {
plVar3 = (long *)plVar6[1];
local_88 = plVar6[2];
lStack_80 = plVar6[3];
local_78 = plVar6[4];
lStack_70 = plVar6[5];
local_68 = (int)plVar6[6];
iStack_64 = *(int *)((long)plVar6 + 0x34);
iStack_60 = (int)plVar6[7];
iStack_5c = *(int *)((long)plVar6 + 0x3c);
local_50 = 1;
local_58 = (ulong)(param_6 != 0);
local_48 = param_4;
local_40 = param_5;
JS_EnqueueJob(param_1,promise_reaction_job,5,&local_88);
lVar4 = *plVar6;
plVar5 = (long *)plVar6[1];
*(long **)(lVar4 + 8) = plVar5;
*plVar5 = lVar4;
*plVar6 = 0;
plVar6[1] = 0;
promise_reaction_data_free(*(int8 *)(param_1 + 0x18),plVar6);
plVar6 = plVar3;
}
plVar6 = *(long **)(piVar1 + (long)(1 - param_6) * 4 + 4);
while (plVar6 != (long *)(piVar1 + (long)(1 - param_6) * 4 + 2)) {
lVar4 = *plVar6;
plVar3 = (long *)plVar6[1];
*(long **)(lVar4 + 8) = plVar3;
*plVar3 = lVar4;
*plVar6 = 0;
plVar6[1] = 0;
promise_reaction_data_free(*(int8 *)(param_1 + 0x18));
plVar6 = plVar3;
}
}
return;
}
|
Subsets and Splits
C++ Functions Using STL
Identifies C++ functions that depend on standard library components, revealing patterns in how developers utilize STL libraries and potentially highlighting common coding practices or dependencies in the dataset.
C++ STL Function Queries
Filters C++ code examples that use standard library containers and algorithms, helping identify common programming patterns and library usage in code generation tasks.
Random Training Function Samples
Performs basic filtering and random sampling of assembly code data without revealing meaningful patterns or relationships.
Random Training Function Samples
Retrieves a random sample of 1000 records from the training dataset, providing basic data exploration but offering limited analytical value beyond seeing raw entries.