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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
48,200 | js_evalScript | bluesky950520[P]quickjs/quickjs-libc.c | static JSValue js_evalScript(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSRuntime *rt = JS_GetRuntime(ctx);
JSThreadState *ts = js_get_thread_state(rt);
const char *str = NULL;
size_t len;
JSValue ret, obj;
JSValue options_obj;
BOOL backtrace_barrier = FALSE;
BOOL eval_function = FALSE;
BOOL eval_module = FALSE;
BOOL compile_only = FALSE;
BOOL compile_module = FALSE;
BOOL is_async = FALSE;
int flags;
if (argc >= 2) {
options_obj = argv[1];
if (get_bool_option(ctx, &backtrace_barrier, options_obj,
"backtrace_barrier"))
return JS_EXCEPTION;
if (get_bool_option(ctx, &eval_function, options_obj,
"eval_function"))
return JS_EXCEPTION;
if (get_bool_option(ctx, &eval_module, options_obj,
"eval_module"))
return JS_EXCEPTION;
if (get_bool_option(ctx, &compile_only, options_obj,
"compile_only"))
return JS_EXCEPTION;
if (get_bool_option(ctx, &compile_module, options_obj,
"compile_module"))
return JS_EXCEPTION;
if (get_bool_option(ctx, &is_async, options_obj,
"async"))
return JS_EXCEPTION;
}
if (eval_module) {
obj = argv[0];
if (JS_VALUE_GET_TAG(obj) != JS_TAG_MODULE)
return JS_ThrowTypeError(ctx, "not a module");
if (JS_ResolveModule(ctx, obj) < 0)
return JS_EXCEPTION;
js_module_set_import_meta(ctx, obj, FALSE, FALSE);
return JS_EvalFunction(ctx, obj);
}
if (!eval_function) {
str = JS_ToCStringLen(ctx, &len, argv[0]);
if (!str)
return JS_EXCEPTION;
}
if (!ts->recv_pipe && ++ts->eval_script_recurse == 1) {
/* install the interrupt handler */
JS_SetInterruptHandler(JS_GetRuntime(ctx), interrupt_handler, NULL);
}
flags = compile_module ? JS_EVAL_TYPE_MODULE : JS_EVAL_TYPE_GLOBAL;
if (backtrace_barrier)
flags |= JS_EVAL_FLAG_BACKTRACE_BARRIER;
if (compile_only)
flags |= JS_EVAL_FLAG_COMPILE_ONLY;
if (is_async)
flags |= JS_EVAL_FLAG_ASYNC;
if (eval_function) {
obj = JS_DupValue(ctx, argv[0]);
ret = JS_EvalFunction(ctx, obj); // takes ownership of |obj|
} else {
ret = JS_Eval(ctx, str, len, "<evalScript>", flags);
}
JS_FreeCString(ctx, str);
if (!ts->recv_pipe && --ts->eval_script_recurse == 0) {
/* remove the interrupt handler */
JS_SetInterruptHandler(JS_GetRuntime(ctx), NULL, NULL);
os_pending_signals &= ~((uint64_t)1 << SIGINT);
/* convert the uncatchable "interrupted" error into a normal error
so that it can be caught by the REPL */
if (JS_IsException(ret))
JS_ResetUncatchableError(ctx);
}
return ret;
} | O2 | c | js_evalScript:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %r12
movl %ecx, %ebp
movq %rdi, %rbx
callq 0x1a185
movq %rax, %rdi
callq 0x1028a
andl $0x0, 0x1c(%rsp)
andl $0x0, 0x18(%rsp)
andl $0x0, 0x14(%rsp)
andl $0x0, 0x10(%rsp)
andl $0x0, 0xc(%rsp)
andl $0x0, 0x8(%rsp)
movq %rax, %r15
pushq $0x6
popq %r14
cmpl $0x2, %ebp
jl 0x11c37
movq 0x10(%r12), %r13
movq 0x18(%r12), %rbp
leaq 0x710bf(%rip), %r8 # 0x82bde
leaq 0x1c(%rsp), %rsi
movq %rbx, %rdi
movq %r13, %rdx
movq %rbp, %rcx
callq 0x12a3d
testl %eax, %eax
jne 0x11cb3
leaq 0x710af(%rip), %r8 # 0x82bf0
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
movq %r13, %rdx
movq %rbp, %rcx
callq 0x12a3d
testl %eax, %eax
jne 0x11cb3
leaq 0x7109b(%rip), %r8 # 0x82bfe
leaq 0x14(%rsp), %rsi
movq %rbx, %rdi
movq %r13, %rdx
movq %rbp, %rcx
callq 0x12a3d
testl %eax, %eax
jne 0x11cb3
leaq 0x71085(%rip), %r8 # 0x82c0a
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
movq %r13, %rdx
movq %rbp, %rcx
callq 0x12a3d
testl %eax, %eax
jne 0x11cb3
leaq 0x71070(%rip), %r8 # 0x82c17
leaq 0xc(%rsp), %rsi
movq %rbx, %rdi
movq %r13, %rdx
movq %rbp, %rcx
callq 0x12a3d
testl %eax, %eax
jne 0x11cb3
leaq 0x7105d(%rip), %r8 # 0x82c26
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
movq %r13, %rdx
movq %rbp, %rcx
callq 0x12a3d
testl %eax, %eax
jne 0x11cb3
cmpl $0x0, 0x14(%rsp)
je 0x11c37
movq 0x8(%r12), %r15
cmpl $-0x3, %r15d
jne 0x11d70
movq (%r12), %r12
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x29a2f
testl %eax, %eax
js 0x11cb3
movq %rbx, %rdi
movq %r12, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0xf818
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x29739
jmp 0x11d81
movl 0x18(%rsp), %ebp
testl %ebp, %ebp
je 0x11c44
xorl %r13d, %r13d
jmp 0x11c62
movq (%r12), %rdx
movq 0x8(%r12), %rcx
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x11421
movq %rax, %r13
testq %rax, %rax
je 0x11cb3
cmpq $0x0, 0x68(%r15)
jne 0x11c91
movl 0x40(%r15), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x40(%r15)
testl %eax, %eax
jne 0x11c91
movq %rbx, %rdi
callq 0x1a185
leaq 0xe16(%rip), %rsi # 0x12a9d
movq %rax, %rdi
xorl %edx, %edx
callq 0x17e7c
testl %ebp, %ebp
je 0x11cbd
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %rbx, %rdi
callq 0x16ffb
movq %rbx, %rdi
movq %rax, %rsi
callq 0x29739
jmp 0x11d04
xorl %r12d, %r12d
xorl %ecx, %ecx
jmp 0x11d58
xorl %eax, %eax
cmpl $0x0, 0xc(%rsp)
setne %al
leal 0x40(%rax), %ecx
cmpl $0x0, 0x1c(%rsp)
cmovel %eax, %ecx
leal 0x20(%rcx), %eax
cmpl $0x0, 0x10(%rsp)
cmovel %ecx, %eax
cmpl $0x0, 0x8(%rsp)
leal 0x80(%rax), %r8d
cmovel %eax, %r8d
movq 0x20(%rsp), %rdx
leaq 0x70f40(%rip), %rcx # 0x82c39
movq %rbx, %rdi
movq %r13, %rsi
callq 0x29a09
movq %rax, %r12
movq %rdx, %r14
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1b057
cmpq $0x0, 0x68(%r15)
jne 0x11d4b
decl 0x40(%r15)
jne 0x11d4b
movq %rbx, %rdi
callq 0x1a185
movq %rax, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x17e7c
andb $-0x5, 0xa9883(%rip) # 0xbb5c0
cmpl $0x6, %r14d
jne 0x11d4b
movq %rbx, %rdi
callq 0x211bc
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
andq %r12, %rcx
movl %r12d, %eax
orq %rcx, %rax
movq %r14, %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x70eb5(%rip), %rsi # 0x82c2c
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1c64d
movq %rax, %r12
movq %rdx, %r14
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
andq %rax, %rcx
jmp 0x11d58
| js_evalScript:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r12, r8
mov ebp, ecx
mov rbx, rdi
call JS_GetRuntime
mov rdi, rax
call js_get_thread_state
and [rsp+58h+var_3C], 0
and [rsp+58h+var_40], 0
and [rsp+58h+var_44], 0
and [rsp+58h+var_48], 0
and [rsp+58h+var_4C], 0
and [rsp+58h+var_50], 0
mov r15, rax
push 6
pop r14
cmp ebp, 2
jl loc_11C37
mov r13, [r12+10h]
mov rbp, [r12+18h]
lea r8, aBacktraceBarri; "backtrace_barrier"
lea rsi, [rsp+58h+var_3C]
mov rdi, rbx
mov rdx, r13
mov rcx, rbp
call get_bool_option
test eax, eax
jnz loc_11CB3
lea r8, aEvalFunction; "eval_function"
lea rsi, [rsp+58h+var_40]
mov rdi, rbx
mov rdx, r13
mov rcx, rbp
call get_bool_option
test eax, eax
jnz loc_11CB3
lea r8, aEvalModule; "eval_module"
lea rsi, [rsp+58h+var_44]
mov rdi, rbx
mov rdx, r13
mov rcx, rbp
call get_bool_option
test eax, eax
jnz loc_11CB3
lea r8, aCompileOnly; "compile_only"
lea rsi, [rsp+58h+var_48]
mov rdi, rbx
mov rdx, r13
mov rcx, rbp
call get_bool_option
test eax, eax
jnz loc_11CB3
lea r8, aCompileModule; "compile_module"
lea rsi, [rsp+58h+var_4C]
mov rdi, rbx
mov rdx, r13
mov rcx, rbp
call get_bool_option
test eax, eax
jnz loc_11CB3
lea r8, aAsync; "async"
lea rsi, [rsp+58h+var_50]
mov rdi, rbx
mov rdx, r13
mov rcx, rbp
call get_bool_option
test eax, eax
jnz loc_11CB3
cmp [rsp+58h+var_44], 0
jz short loc_11C37
mov r15, [r12+8]
cmp r15d, 0FFFFFFFDh
jnz loc_11D70
mov r12, [r12]
mov rdi, rbx
mov rsi, r12
mov rdx, r15
call JS_ResolveModule
test eax, eax
js loc_11CB3
mov rdi, rbx
mov rsi, r12
xor ecx, ecx
xor r8d, r8d
call js_module_set_import_meta
mov rdi, rbx
mov rsi, r12
mov rdx, r15
call JS_EvalFunction
jmp loc_11D81
loc_11C37:
mov ebp, [rsp+58h+var_40]
test ebp, ebp
jz short loc_11C44
xor r13d, r13d
jmp short loc_11C62
loc_11C44:
mov rdx, [r12]
mov rcx, [r12+8]
lea rsi, [rsp+58h+var_38]
mov rdi, rbx
call JS_ToCStringLen
mov r13, rax
test rax, rax
jz short loc_11CB3
loc_11C62:
cmp qword ptr [r15+68h], 0
jnz short loc_11C91
mov eax, [r15+40h]
lea ecx, [rax+1]
mov [r15+40h], ecx
test eax, eax
jnz short loc_11C91
mov rdi, rbx
call JS_GetRuntime
lea rsi, interrupt_handler
mov rdi, rax
xor edx, edx
call JS_SetInterruptHandler
loc_11C91:
test ebp, ebp
jz short loc_11CBD
mov rsi, [r12]
mov rdx, [r12+8]
mov rdi, rbx
call JS_DupValue
mov rdi, rbx
mov rsi, rax
call JS_EvalFunction
jmp short loc_11D04
loc_11CB3:
xor r12d, r12d
xor ecx, ecx
jmp loc_11D58
loc_11CBD:
xor eax, eax
cmp [rsp+58h+var_4C], 0
setnz al
lea ecx, [rax+40h]
cmp [rsp+58h+var_3C], 0
cmovz ecx, eax
lea eax, [rcx+20h]
cmp [rsp+58h+var_48], 0
cmovz eax, ecx
cmp [rsp+58h+var_50], 0
lea r8d, [rax+80h]
cmovz r8d, eax
mov rdx, [rsp+58h+var_38]
lea rcx, aEvalscript; "<evalScript>"
mov rdi, rbx
mov rsi, r13
call JS_Eval
loc_11D04:
mov r12, rax
mov r14, rdx
mov rdi, rbx
mov rsi, r13
call JS_FreeCString
cmp qword ptr [r15+68h], 0
jnz short loc_11D4B
dec dword ptr [r15+40h]
jnz short loc_11D4B
mov rdi, rbx
call JS_GetRuntime
mov rdi, rax
xor esi, esi
xor edx, edx
call JS_SetInterruptHandler
and byte ptr cs:os_pending_signals, 0FBh
cmp r14d, 6
jnz short loc_11D4B
mov rdi, rbx
call JS_ResetUncatchableError
loc_11D4B:
mov rcx, 0FFFFFFFF00000000h
and rcx, r12
loc_11D58:
mov eax, r12d
or rax, rcx
mov rdx, r14
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_11D70:
lea rsi, aNotAModule; "not a module"
mov rdi, rbx
xor eax, eax
call JS_ThrowTypeError
loc_11D81:
mov r12, rax
mov r14, rdx
mov rcx, 0FFFFFFFF00000000h
and rcx, rax
jmp short loc_11D58
| unsigned long long js_evalScript(long long a1, long long a2, long long a3, int a4, long long *a5)
{
int Runtime; // eax
int v8; // edx
int v9; // ecx
int v10; // r8d
int v11; // r9d
long long thread_state; // r15
long long v13; // r13
long long v14; // rbp
int v15; // edx
int v16; // ecx
int v17; // r8d
int v18; // r9d
long long v19; // r15
long long v20; // r12
long long v21; // rdx
long long v22; // rax
int v23; // ebp
long long v24; // r13
int v25; // eax
long long v26; // rax
long long v27; // rax
long long v28; // rdx
long long v29; // rax
int v30; // edx
long long v31; // r12
unsigned long long v32; // rcx
int v33; // ecx
unsigned int v34; // eax
long long v35; // r8
int v36; // r14d
long long v38; // rax
char v40; // [rsp+0h] [rbp-58h]
int v41; // [rsp+8h] [rbp-50h] BYREF
int v42; // [rsp+Ch] [rbp-4Ch] BYREF
int v43; // [rsp+10h] [rbp-48h] BYREF
int v44; // [rsp+14h] [rbp-44h] BYREF
int v45; // [rsp+18h] [rbp-40h] BYREF
int v46; // [rsp+1Ch] [rbp-3Ch] BYREF
_QWORD v47[7]; // [rsp+20h] [rbp-38h] BYREF
Runtime = JS_GetRuntime(a1);
v46 = 0;
v45 = 0;
v44 = 0;
v43 = 0;
v42 = 0;
v41 = 0;
thread_state = js_get_thread_state(Runtime, a2, v8, v9, v10, v11, v40);
if ( a4 >= 2 )
{
v13 = a5[2];
v14 = a5[3];
if ( (unsigned int)get_bool_option(a1, &v46, v13, v14, "backtrace_barrier")
|| (unsigned int)get_bool_option(a1, &v45, v13, v14, "eval_function")
|| (unsigned int)get_bool_option(a1, &v44, v13, v14, "eval_module")
|| (unsigned int)get_bool_option(a1, &v43, v13, v14, "compile_only")
|| (unsigned int)get_bool_option(a1, &v42, v13, v14, "compile_module")
|| (unsigned int)get_bool_option(a1, &v41, v13, v14, "async") )
{
goto LABEL_20;
}
if ( v44 )
{
v19 = a5[1];
if ( (_DWORD)v19 != -3 )
{
v22 = JS_ThrowTypeError(a1, (unsigned int)"not a module", v15, v16, v17, v18);
goto LABEL_35;
}
v20 = *a5;
if ( (int)JS_ResolveModule(a1, v20, v19) >= 0 )
{
js_module_set_import_meta(a1, v20, v21, 0, 0);
v22 = JS_EvalFunction(a1, v20, v19);
LABEL_35:
LODWORD(v31) = v22;
v32 = v22 & 0xFFFFFFFF00000000LL;
return v32 | (unsigned int)v31;
}
goto LABEL_20;
}
}
v23 = v45;
if ( v45 )
{
v24 = 0LL;
goto LABEL_15;
}
v24 = JS_ToCStringLen(a1, (long long)v47, *a5, a5[1]);
if ( !v24 )
{
LABEL_20:
LODWORD(v31) = 0;
v32 = 0LL;
return v32 | (unsigned int)v31;
}
LABEL_15:
if ( !*(_QWORD *)(thread_state + 104) )
{
v25 = *(_DWORD *)(thread_state + 64);
*(_DWORD *)(thread_state + 64) = v25 + 1;
if ( !v25 )
{
v26 = JS_GetRuntime(a1);
JS_SetInterruptHandler(v26, interrupt_handler, 0LL);
}
}
if ( v23 )
{
v27 = JS_DupValue(a1, *a5, a5[1]);
v29 = JS_EvalFunction(a1, v27, v28);
}
else
{
v33 = (v42 != 0) + 64;
if ( !v46 )
v33 = v42 != 0;
v34 = v33 + 32;
if ( !v43 )
v34 = v33;
v35 = v34 + 128;
if ( !v41 )
v35 = v34;
v29 = JS_Eval(a1, v24, v47[0], "<evalScript>", v35);
}
v31 = v29;
v36 = v30;
JS_FreeCString(a1, v24);
if ( !*(_QWORD *)(thread_state + 104) && (*(_DWORD *)(thread_state + 64))-- == 1 )
{
v38 = JS_GetRuntime(a1);
JS_SetInterruptHandler(v38, 0LL, 0LL);
LOBYTE(os_pending_signals) = os_pending_signals & 0xFB;
if ( v36 == 6 )
JS_ResetUncatchableError(a1);
}
v32 = v31 & 0xFFFFFFFF00000000LL;
return v32 | (unsigned int)v31;
}
| js_evalScript:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R12,R8
MOV EBP,ECX
MOV RBX,RDI
CALL 0x0011a185
MOV RDI,RAX
CALL 0x0011028a
AND dword ptr [RSP + 0x1c],0x0
AND dword ptr [RSP + 0x18],0x0
AND dword ptr [RSP + 0x14],0x0
AND dword ptr [RSP + 0x10],0x0
AND dword ptr [RSP + 0xc],0x0
AND dword ptr [RSP + 0x8],0x0
MOV R15,RAX
PUSH 0x6
POP R14
CMP EBP,0x2
JL 0x00111c37
MOV R13,qword ptr [R12 + 0x10]
MOV RBP,qword ptr [R12 + 0x18]
LEA R8,[0x182bde]
LEA RSI,[RSP + 0x1c]
MOV RDI,RBX
MOV RDX,R13
MOV RCX,RBP
CALL 0x00112a3d
TEST EAX,EAX
JNZ 0x00111cb3
LEA R8,[0x182bf0]
LEA RSI,[RSP + 0x18]
MOV RDI,RBX
MOV RDX,R13
MOV RCX,RBP
CALL 0x00112a3d
TEST EAX,EAX
JNZ 0x00111cb3
LEA R8,[0x182bfe]
LEA RSI,[RSP + 0x14]
MOV RDI,RBX
MOV RDX,R13
MOV RCX,RBP
CALL 0x00112a3d
TEST EAX,EAX
JNZ 0x00111cb3
LEA R8,[0x182c0a]
LEA RSI,[RSP + 0x10]
MOV RDI,RBX
MOV RDX,R13
MOV RCX,RBP
CALL 0x00112a3d
TEST EAX,EAX
JNZ 0x00111cb3
LEA R8,[0x182c17]
LEA RSI,[RSP + 0xc]
MOV RDI,RBX
MOV RDX,R13
MOV RCX,RBP
CALL 0x00112a3d
TEST EAX,EAX
JNZ 0x00111cb3
LEA R8,[0x182c26]
LEA RSI,[RSP + 0x8]
MOV RDI,RBX
MOV RDX,R13
MOV RCX,RBP
CALL 0x00112a3d
TEST EAX,EAX
JNZ 0x00111cb3
CMP dword ptr [RSP + 0x14],0x0
JZ 0x00111c37
MOV R15,qword ptr [R12 + 0x8]
CMP R15D,-0x3
JNZ 0x00111d70
MOV R12,qword ptr [R12]
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R15
CALL 0x00129a2f
TEST EAX,EAX
JS 0x00111cb3
MOV RDI,RBX
MOV RSI,R12
XOR ECX,ECX
XOR R8D,R8D
CALL 0x0010f818
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R15
CALL 0x00129739
JMP 0x00111d81
LAB_00111c37:
MOV EBP,dword ptr [RSP + 0x18]
TEST EBP,EBP
JZ 0x00111c44
XOR R13D,R13D
JMP 0x00111c62
LAB_00111c44:
MOV RDX,qword ptr [R12]
MOV RCX,qword ptr [R12 + 0x8]
LEA RSI,[RSP + 0x20]
MOV RDI,RBX
CALL 0x00111421
MOV R13,RAX
TEST RAX,RAX
JZ 0x00111cb3
LAB_00111c62:
CMP qword ptr [R15 + 0x68],0x0
JNZ 0x00111c91
MOV EAX,dword ptr [R15 + 0x40]
LEA ECX,[RAX + 0x1]
MOV dword ptr [R15 + 0x40],ECX
TEST EAX,EAX
JNZ 0x00111c91
MOV RDI,RBX
CALL 0x0011a185
LEA RSI,[0x112a9d]
MOV RDI,RAX
XOR EDX,EDX
CALL 0x00117e7c
LAB_00111c91:
TEST EBP,EBP
JZ 0x00111cbd
MOV RSI,qword ptr [R12]
MOV RDX,qword ptr [R12 + 0x8]
MOV RDI,RBX
CALL 0x00116ffb
MOV RDI,RBX
MOV RSI,RAX
CALL 0x00129739
JMP 0x00111d04
LAB_00111cb3:
XOR R12D,R12D
XOR ECX,ECX
JMP 0x00111d58
LAB_00111cbd:
XOR EAX,EAX
CMP dword ptr [RSP + 0xc],0x0
SETNZ AL
LEA ECX,[RAX + 0x40]
CMP dword ptr [RSP + 0x1c],0x0
CMOVZ ECX,EAX
LEA EAX,[RCX + 0x20]
CMP dword ptr [RSP + 0x10],0x0
CMOVZ EAX,ECX
CMP dword ptr [RSP + 0x8],0x0
LEA R8D,[RAX + 0x80]
CMOVZ R8D,EAX
MOV RDX,qword ptr [RSP + 0x20]
LEA RCX,[0x182c39]
MOV RDI,RBX
MOV RSI,R13
CALL 0x00129a09
LAB_00111d04:
MOV R12,RAX
MOV R14,RDX
MOV RDI,RBX
MOV RSI,R13
CALL 0x0011b057
CMP qword ptr [R15 + 0x68],0x0
JNZ 0x00111d4b
DEC dword ptr [R15 + 0x40]
JNZ 0x00111d4b
MOV RDI,RBX
CALL 0x0011a185
MOV RDI,RAX
XOR ESI,ESI
XOR EDX,EDX
CALL 0x00117e7c
AND byte ptr [0x001bb5c0],0xfb
CMP R14D,0x6
JNZ 0x00111d4b
MOV RDI,RBX
CALL 0x001211bc
LAB_00111d4b:
MOV RCX,-0x100000000
AND RCX,R12
LAB_00111d58:
MOV EAX,R12D
OR RAX,RCX
MOV RDX,R14
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00111d70:
LEA RSI,[0x182c2c]
MOV RDI,RBX
XOR EAX,EAX
CALL 0x0011c64d
LAB_00111d81:
MOV R12,RAX
MOV R14,RDX
MOV RCX,-0x100000000
AND RCX,RAX
JMP 0x00111d58
|
int1 [16]
js_evalScript(int8 param_1,int8 param_2,int8 param_3,int param_4,
int8 *param_5)
{
int *piVar1;
int iVar2;
int8 uVar3;
uint uVar4;
int iVar5;
int8 uVar6;
long lVar7;
long lVar8;
uint uVar9;
ulong uVar10;
int8 extraout_RDX;
int1 auVar11 [16];
int1 auVar12 [16];
int local_50;
int local_4c;
int local_48;
int local_44;
int local_40;
int local_3c;
int8 local_38;
uVar6 = JS_GetRuntime();
lVar7 = js_get_thread_state(uVar6);
local_3c = 0;
local_40 = 0;
local_44 = 0;
local_48 = 0;
local_4c = 0;
local_50 = 0;
if (param_4 < 2) {
LAB_00111c37:
iVar5 = local_40;
if (local_40 == 0) {
lVar8 = JS_ToCStringLen(param_1,&local_38,*param_5,param_5[1]);
if (lVar8 == 0) goto LAB_00111cb3;
}
else {
lVar8 = 0;
}
if (*(long *)(lVar7 + 0x68) == 0) {
iVar2 = *(int *)(lVar7 + 0x40);
*(int *)(lVar7 + 0x40) = iVar2 + 1;
if (iVar2 == 0) {
uVar6 = JS_GetRuntime(param_1);
JS_SetInterruptHandler(uVar6,interrupt_handler,0);
}
}
if (iVar5 == 0) {
uVar9 = (local_4c != 0) + 0x40;
if (local_3c == 0) {
uVar9 = (uint)(local_4c != 0);
}
uVar4 = uVar9 + 0x20;
if (local_48 == 0) {
uVar4 = uVar9;
}
uVar9 = uVar4 + 0x80;
if (local_50 == 0) {
uVar9 = uVar4;
}
auVar11 = JS_Eval(param_1,lVar8,local_38,"<evalScript>",uVar9);
}
else {
uVar6 = JS_DupValue(param_1,*param_5,param_5[1]);
auVar11 = JS_EvalFunction(param_1,uVar6);
}
JS_FreeCString(param_1,lVar8);
if (*(long *)(lVar7 + 0x68) == 0) {
piVar1 = (int *)(lVar7 + 0x40);
*piVar1 = *piVar1 + -1;
if (*piVar1 == 0) {
uVar6 = JS_GetRuntime(param_1);
JS_SetInterruptHandler(uVar6,0,0);
os_pending_signals._0_1_ = (byte)os_pending_signals & 0xfb;
if (auVar11._8_4_ == 6) {
JS_ResetUncatchableError(param_1);
}
}
}
uVar10 = auVar11._0_8_ & 0xffffffff00000000;
}
else {
uVar6 = param_5[2];
uVar3 = param_5[3];
iVar5 = get_bool_option(param_1,&local_3c,uVar6,uVar3,"backtrace_barrier");
if (iVar5 == 0) {
iVar5 = get_bool_option(param_1,&local_40,uVar6,uVar3,"eval_function");
if (iVar5 == 0) {
iVar5 = get_bool_option(param_1,&local_44,uVar6,uVar3,"eval_module");
if (iVar5 == 0) {
iVar5 = get_bool_option(param_1,&local_48,uVar6,uVar3,"compile_only");
if (iVar5 == 0) {
iVar5 = get_bool_option(param_1,&local_4c,uVar6,uVar3,"compile_module");
if (iVar5 == 0) {
iVar5 = get_bool_option(param_1,&local_50,uVar6,uVar3,"async");
if (iVar5 == 0) {
if (local_44 == 0) goto LAB_00111c37;
uVar6 = param_5[1];
if ((int)uVar6 == -3) {
uVar3 = *param_5;
iVar5 = JS_ResolveModule(param_1,uVar3,uVar6);
if (iVar5 < 0) goto LAB_00111cb3;
js_module_set_import_meta(param_1,uVar3,extraout_RDX,0,0);
auVar11 = JS_EvalFunction(param_1,uVar3,uVar6);
}
else {
auVar11 = JS_ThrowTypeError(param_1,"not a module");
}
uVar10 = auVar11._0_8_ & 0xffffffff00000000;
goto LAB_00111d58;
}
}
}
}
}
}
LAB_00111cb3:
auVar11 = ZEXT816(6) << 0x40;
uVar10 = 0;
}
LAB_00111d58:
auVar12._0_8_ = auVar11._0_8_ & 0xffffffff | uVar10;
auVar12._8_8_ = auVar11._8_8_;
return auVar12;
}
| |
48,201 | js_evalScript | bluesky950520[P]quickjs/quickjs-libc.c | static JSValue js_evalScript(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSRuntime *rt = JS_GetRuntime(ctx);
JSThreadState *ts = js_get_thread_state(rt);
const char *str = NULL;
size_t len;
JSValue ret, obj;
JSValue options_obj;
BOOL backtrace_barrier = FALSE;
BOOL eval_function = FALSE;
BOOL eval_module = FALSE;
BOOL compile_only = FALSE;
BOOL compile_module = FALSE;
BOOL is_async = FALSE;
int flags;
if (argc >= 2) {
options_obj = argv[1];
if (get_bool_option(ctx, &backtrace_barrier, options_obj,
"backtrace_barrier"))
return JS_EXCEPTION;
if (get_bool_option(ctx, &eval_function, options_obj,
"eval_function"))
return JS_EXCEPTION;
if (get_bool_option(ctx, &eval_module, options_obj,
"eval_module"))
return JS_EXCEPTION;
if (get_bool_option(ctx, &compile_only, options_obj,
"compile_only"))
return JS_EXCEPTION;
if (get_bool_option(ctx, &compile_module, options_obj,
"compile_module"))
return JS_EXCEPTION;
if (get_bool_option(ctx, &is_async, options_obj,
"async"))
return JS_EXCEPTION;
}
if (eval_module) {
obj = argv[0];
if (JS_VALUE_GET_TAG(obj) != JS_TAG_MODULE)
return JS_ThrowTypeError(ctx, "not a module");
if (JS_ResolveModule(ctx, obj) < 0)
return JS_EXCEPTION;
js_module_set_import_meta(ctx, obj, FALSE, FALSE);
return JS_EvalFunction(ctx, obj);
}
if (!eval_function) {
str = JS_ToCStringLen(ctx, &len, argv[0]);
if (!str)
return JS_EXCEPTION;
}
if (!ts->recv_pipe && ++ts->eval_script_recurse == 1) {
/* install the interrupt handler */
JS_SetInterruptHandler(JS_GetRuntime(ctx), interrupt_handler, NULL);
}
flags = compile_module ? JS_EVAL_TYPE_MODULE : JS_EVAL_TYPE_GLOBAL;
if (backtrace_barrier)
flags |= JS_EVAL_FLAG_BACKTRACE_BARRIER;
if (compile_only)
flags |= JS_EVAL_FLAG_COMPILE_ONLY;
if (is_async)
flags |= JS_EVAL_FLAG_ASYNC;
if (eval_function) {
obj = JS_DupValue(ctx, argv[0]);
ret = JS_EvalFunction(ctx, obj); // takes ownership of |obj|
} else {
ret = JS_Eval(ctx, str, len, "<evalScript>", flags);
}
JS_FreeCString(ctx, str);
if (!ts->recv_pipe && --ts->eval_script_recurse == 0) {
/* remove the interrupt handler */
JS_SetInterruptHandler(JS_GetRuntime(ctx), NULL, NULL);
os_pending_signals &= ~((uint64_t)1 << SIGINT);
/* convert the uncatchable "interrupted" error into a normal error
so that it can be caught by the REPL */
if (JS_IsException(ret))
JS_ResetUncatchableError(ctx);
}
return ret;
} | O3 | c | js_evalScript:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %r12
movl %ecx, %ebp
movq %rdi, %rbx
callq 0x204e9
xorl %r14d, %r14d
xorl %edi, %edi
movq %rax, %rsi
xorl %eax, %eax
callq 0x3bb70
movq %rax, %r15
movl %r14d, 0x1c(%rsp)
movl %r14d, 0x18(%rsp)
movl %r14d, 0x14(%rsp)
movl %r14d, 0x10(%rsp)
movl %r14d, 0xc(%rsp)
movl %r14d, 0x8(%rsp)
cmpl $0x2, %ebp
jl 0x17829
movq 0x10(%r12), %r13
movq 0x18(%r12), %rbp
leaq 0x874c5(%rip), %r8 # 0x9ebde
leaq 0x1c(%rsp), %rsi
movq %rbx, %rdi
movq %r13, %rdx
movq %rbp, %rcx
callq 0x187c2
movl $0x6, %r14d
testl %eax, %eax
jne 0x177d0
leaq 0x874af(%rip), %r8 # 0x9ebf0
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
movq %r13, %rdx
movq %rbp, %rcx
callq 0x187c2
testl %eax, %eax
jne 0x177d0
leaq 0x8749f(%rip), %r8 # 0x9ebfe
leaq 0x14(%rsp), %rsi
movq %rbx, %rdi
movq %r13, %rdx
movq %rbp, %rcx
callq 0x187c2
testl %eax, %eax
jne 0x177d0
leaq 0x8748d(%rip), %r8 # 0x9ec0a
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
movq %r13, %rdx
movq %rbp, %rcx
callq 0x187c2
testl %eax, %eax
jne 0x177d0
leaq 0x8747c(%rip), %r8 # 0x9ec17
leaq 0xc(%rsp), %rsi
movq %rbx, %rdi
movq %r13, %rdx
movq %rbp, %rcx
callq 0x187c2
testl %eax, %eax
jne 0x177d0
leaq 0x8746d(%rip), %r8 # 0x9ec26
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
movq %r13, %rdx
movq %rbp, %rcx
callq 0x187c2
testl %eax, %eax
je 0x177da
xorl %r13d, %r13d
xorl %ecx, %ecx
jmp 0x1794c
cmpl $0x0, 0x14(%rsp)
je 0x17829
movq 0x8(%r12), %r15
cmpl $-0x3, %r15d
jne 0x1796f
movq (%r12), %r12
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x32662
testl %eax, %eax
js 0x177d0
movq %rbx, %rdi
movq %r12, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x152c0
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x322a1
jmp 0x17980
movl 0x18(%rsp), %r14d
testl %r14d, %r14d
je 0x17837
xorl %ebp, %ebp
jmp 0x1785f
movq (%r12), %rdx
movq 0x8(%r12), %rcx
leaq 0x20(%rsp), %rsi
xorl %r13d, %r13d
movq %rbx, %rdi
xorl %r8d, %r8d
callq 0x21353
movq %rax, %rbp
testq %rax, %rax
je 0x17964
cmpq $0x0, 0x68(%r15)
jne 0x1788e
movl 0x40(%r15), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x40(%r15)
testl %eax, %eax
jne 0x1788e
movq %rbx, %rdi
callq 0x204e9
leaq 0xf9e(%rip), %rsi # 0x18822
movq %rax, %rdi
xorl %edx, %edx
callq 0x1e0a2
testl %r14d, %r14d
je 0x178b1
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %rbx, %rdi
callq 0x1d356
movq %rbx, %rdi
movq %rax, %rsi
callq 0x322a1
jmp 0x178f8
xorl %eax, %eax
cmpl $0x0, 0xc(%rsp)
setne %al
leal 0x40(%rax), %ecx
cmpl $0x0, 0x1c(%rsp)
cmovel %eax, %ecx
leal 0x20(%rcx), %eax
cmpl $0x0, 0x10(%rsp)
cmovel %ecx, %eax
cmpl $0x0, 0x8(%rsp)
leal 0x80(%rax), %r8d
cmovel %eax, %r8d
movq 0x20(%rsp), %rdx
leaq 0x8734c(%rip), %rcx # 0x9ec39
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x32612
movq %rax, %r13
movq %rdx, %r14
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x21629
cmpq $0x0, 0x68(%r15)
jne 0x1793f
decl 0x40(%r15)
jne 0x1793f
movq %rbx, %rdi
callq 0x204e9
movq %rax, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x1e0a2
andb $-0x5, 0xb8c7f(%rip) # 0xd05b0
cmpl $0x6, %r14d
jne 0x1793f
movq %rbx, %rdi
callq 0x27c84
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
andq %r13, %rcx
movl %r13d, %eax
orq %rcx, %rax
movq %r14, %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x6, %r14d
jmp 0x177d3
leaq 0x872b6(%rip), %rsi # 0x9ec2c
movq %rbx, %rdi
xorl %eax, %eax
callq 0x22d8b
movq %rax, %r13
movq %rdx, %r14
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
andq %rax, %rcx
jmp 0x1794c
| js_evalScript:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r12, r8
mov ebp, ecx
mov rbx, rdi
call JS_GetRuntime
xor r14d, r14d
xor edi, edi
mov rsi, rax
xor eax, eax
call js_std_cmd
mov r15, rax
mov [rsp+58h+var_3C], r14d
mov [rsp+58h+var_40], r14d
mov [rsp+58h+var_44], r14d
mov [rsp+58h+var_48], r14d
mov [rsp+58h+var_4C], r14d
mov [rsp+58h+var_50], r14d
cmp ebp, 2
jl loc_17829
mov r13, [r12+10h]
mov rbp, [r12+18h]
lea r8, aBacktraceBarri; "backtrace_barrier"
lea rsi, [rsp+58h+var_3C]
mov rdi, rbx
mov rdx, r13
mov rcx, rbp
call get_bool_option
mov r14d, 6
test eax, eax
jnz loc_177D0
lea r8, aEvalFunction; "eval_function"
lea rsi, [rsp+58h+var_40]
mov rdi, rbx
mov rdx, r13
mov rcx, rbp
call get_bool_option
test eax, eax
jnz short loc_177D0
lea r8, aEvalModule; "eval_module"
lea rsi, [rsp+58h+var_44]
mov rdi, rbx
mov rdx, r13
mov rcx, rbp
call get_bool_option
test eax, eax
jnz short loc_177D0
lea r8, aCompileOnly; "compile_only"
lea rsi, [rsp+58h+var_48]
mov rdi, rbx
mov rdx, r13
mov rcx, rbp
call get_bool_option
test eax, eax
jnz short loc_177D0
lea r8, aCompileModule; "compile_module"
lea rsi, [rsp+58h+var_4C]
mov rdi, rbx
mov rdx, r13
mov rcx, rbp
call get_bool_option
test eax, eax
jnz short loc_177D0
lea r8, aAsync; "async"
lea rsi, [rsp+58h+var_50]
mov rdi, rbx
mov rdx, r13
mov rcx, rbp
call get_bool_option
test eax, eax
jz short loc_177DA
loc_177D0:
xor r13d, r13d
loc_177D3:
xor ecx, ecx
jmp loc_1794C
loc_177DA:
cmp [rsp+58h+var_44], 0
jz short loc_17829
mov r15, [r12+8]
cmp r15d, 0FFFFFFFDh
jnz loc_1796F
mov r12, [r12]
mov rdi, rbx
mov rsi, r12
mov rdx, r15
call JS_ResolveModule
test eax, eax
js short loc_177D0
mov rdi, rbx
mov rsi, r12
xor ecx, ecx
xor r8d, r8d
call js_module_set_import_meta
mov rdi, rbx
mov rsi, r12
mov rdx, r15
call JS_EvalFunction
jmp loc_17980
loc_17829:
mov r14d, [rsp+58h+var_40]
test r14d, r14d
jz short loc_17837
xor ebp, ebp
jmp short loc_1785F
loc_17837:
mov rdx, [r12]
mov rcx, [r12+8]
lea rsi, [rsp+58h+var_38]
xor r13d, r13d
mov rdi, rbx
xor r8d, r8d
call JS_ToCStringLen2
mov rbp, rax
test rax, rax
jz loc_17964
loc_1785F:
cmp qword ptr [r15+68h], 0
jnz short loc_1788E
mov eax, [r15+40h]
lea ecx, [rax+1]
mov [r15+40h], ecx
test eax, eax
jnz short loc_1788E
mov rdi, rbx
call JS_GetRuntime
lea rsi, interrupt_handler
mov rdi, rax
xor edx, edx
call JS_SetInterruptHandler
loc_1788E:
test r14d, r14d
jz short loc_178B1
mov rsi, [r12]
mov rdx, [r12+8]
mov rdi, rbx
call JS_DupValue
mov rdi, rbx
mov rsi, rax
call JS_EvalFunction
jmp short loc_178F8
loc_178B1:
xor eax, eax
cmp [rsp+58h+var_4C], 0
setnz al
lea ecx, [rax+40h]
cmp [rsp+58h+var_3C], 0
cmovz ecx, eax
lea eax, [rcx+20h]
cmp [rsp+58h+var_48], 0
cmovz eax, ecx
cmp [rsp+58h+var_50], 0
lea r8d, [rax+80h]
cmovz r8d, eax
mov rdx, [rsp+58h+var_38]
lea rcx, aEvalscript; "<evalScript>"
mov rdi, rbx
mov rsi, rbp
call JS_Eval
loc_178F8:
mov r13, rax
mov r14, rdx
mov rdi, rbx
mov rsi, rbp
call JS_FreeCString
cmp qword ptr [r15+68h], 0
jnz short loc_1793F
dec dword ptr [r15+40h]
jnz short loc_1793F
mov rdi, rbx
call JS_GetRuntime
mov rdi, rax
xor esi, esi
xor edx, edx
call JS_SetInterruptHandler
and byte ptr cs:os_pending_signals, 0FBh
cmp r14d, 6
jnz short loc_1793F
mov rdi, rbx
call JS_ResetUncatchableError
loc_1793F:
mov rcx, 0FFFFFFFF00000000h
and rcx, r13
loc_1794C:
mov eax, r13d
or rax, rcx
mov rdx, r14
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_17964:
mov r14d, 6
jmp loc_177D3
loc_1796F:
lea rsi, aNotAModule; "not a module"
mov rdi, rbx
xor eax, eax
call JS_ThrowTypeError
loc_17980:
mov r13, rax
mov r14, rdx
mov rcx, 0FFFFFFFF00000000h
and rcx, rax
jmp short loc_1794C
| unsigned long long js_evalScript(long long a1, long long a2, long long a3, int a4, long long *a5)
{
int Runtime; // eax
int v8; // edx
int v9; // ecx
int v10; // r8d
int v11; // r9d
long long v12; // r15
long long v13; // r13
long long v14; // rbp
int v15; // edx
int v16; // ecx
int v17; // r8d
int v18; // r9d
long long v19; // r13
unsigned long long v20; // rcx
long long v21; // r15
long long v22; // r12
long long v23; // rdx
long long v24; // rax
int v25; // r14d
long long v26; // rbp
int v27; // eax
long long v28; // rax
long long v29; // rax
long long v30; // rdx
long long v31; // rax
int v32; // edx
int v33; // ecx
unsigned int v34; // eax
long long v35; // r8
int v36; // r14d
long long v38; // rax
int v40; // [rsp+8h] [rbp-50h] BYREF
int v41; // [rsp+Ch] [rbp-4Ch] BYREF
int v42; // [rsp+10h] [rbp-48h] BYREF
int v43; // [rsp+14h] [rbp-44h] BYREF
int v44; // [rsp+18h] [rbp-40h] BYREF
int v45; // [rsp+1Ch] [rbp-3Ch] BYREF
long long v46[7]; // [rsp+20h] [rbp-38h] BYREF
Runtime = JS_GetRuntime(a1);
v12 = js_std_cmd(0, Runtime, v8, v9, v10, v11);
v45 = 0;
v44 = 0;
v43 = 0;
v42 = 0;
v41 = 0;
v40 = 0;
if ( a4 >= 2 )
{
v13 = a5[2];
v14 = a5[3];
if ( (unsigned int)get_bool_option(a1, &v45, v13, v14, "backtrace_barrier")
|| (unsigned int)get_bool_option(a1, &v44, v13, v14, "eval_function")
|| (unsigned int)get_bool_option(a1, &v43, v13, v14, "eval_module")
|| (unsigned int)get_bool_option(a1, &v42, v13, v14, "compile_only")
|| (unsigned int)get_bool_option(a1, &v41, v13, v14, "compile_module")
|| (unsigned int)get_bool_option(a1, &v40, v13, v14, "async") )
{
goto LABEL_8;
}
if ( v43 )
{
v21 = a5[1];
if ( (_DWORD)v21 == -3 )
{
v22 = *a5;
if ( (int)JS_ResolveModule(a1, v22, v21) < 0 )
{
LABEL_8:
LODWORD(v19) = 0;
LABEL_9:
v20 = 0LL;
return v20 | (unsigned int)v19;
}
js_module_set_import_meta(a1, v22, v23, 0, 0);
v24 = JS_EvalFunction(a1, v22, v21);
}
else
{
v24 = JS_ThrowTypeError(a1, (unsigned int)"not a module", v15, v16, v17, v18);
}
LODWORD(v19) = v24;
v20 = v24 & 0xFFFFFFFF00000000LL;
return v20 | (unsigned int)v19;
}
}
v25 = v44;
if ( v44 )
{
v26 = 0LL;
}
else
{
LODWORD(v19) = 0;
v26 = JS_ToCStringLen2(a1, v46, *a5, a5[1], 0LL);
if ( !v26 )
goto LABEL_9;
}
if ( !*(_QWORD *)(v12 + 104) )
{
v27 = *(_DWORD *)(v12 + 64);
*(_DWORD *)(v12 + 64) = v27 + 1;
if ( !v27 )
{
v28 = JS_GetRuntime(a1);
JS_SetInterruptHandler(v28, interrupt_handler, 0LL);
}
}
if ( v25 )
{
v29 = JS_DupValue(a1, *a5, a5[1]);
v31 = JS_EvalFunction(a1, v29, v30);
}
else
{
v33 = (v41 != 0) + 64;
if ( !v45 )
v33 = v41 != 0;
v34 = v33 + 32;
if ( !v42 )
v34 = v33;
v35 = v34 + 128;
if ( !v40 )
v35 = v34;
v31 = JS_Eval(a1, v26, v46[0], "<evalScript>", v35);
}
v19 = v31;
v36 = v32;
JS_FreeCString(a1, v26);
if ( !*(_QWORD *)(v12 + 104) && (*(_DWORD *)(v12 + 64))-- == 1 )
{
v38 = JS_GetRuntime(a1);
JS_SetInterruptHandler(v38, 0LL, 0LL);
LOBYTE(os_pending_signals) = os_pending_signals & 0xFB;
if ( v36 == 6 )
JS_ResetUncatchableError(a1);
}
v20 = v19 & 0xFFFFFFFF00000000LL;
return v20 | (unsigned int)v19;
}
| js_evalScript:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R12,R8
MOV EBP,ECX
MOV RBX,RDI
CALL 0x001204e9
XOR R14D,R14D
XOR EDI,EDI
MOV RSI,RAX
XOR EAX,EAX
CALL 0x0013bb70
MOV R15,RAX
MOV dword ptr [RSP + 0x1c],R14D
MOV dword ptr [RSP + 0x18],R14D
MOV dword ptr [RSP + 0x14],R14D
MOV dword ptr [RSP + 0x10],R14D
MOV dword ptr [RSP + 0xc],R14D
MOV dword ptr [RSP + 0x8],R14D
CMP EBP,0x2
JL 0x00117829
MOV R13,qword ptr [R12 + 0x10]
MOV RBP,qword ptr [R12 + 0x18]
LEA R8,[0x19ebde]
LEA RSI,[RSP + 0x1c]
MOV RDI,RBX
MOV RDX,R13
MOV RCX,RBP
CALL 0x001187c2
MOV R14D,0x6
TEST EAX,EAX
JNZ 0x001177d0
LEA R8,[0x19ebf0]
LEA RSI,[RSP + 0x18]
MOV RDI,RBX
MOV RDX,R13
MOV RCX,RBP
CALL 0x001187c2
TEST EAX,EAX
JNZ 0x001177d0
LEA R8,[0x19ebfe]
LEA RSI,[RSP + 0x14]
MOV RDI,RBX
MOV RDX,R13
MOV RCX,RBP
CALL 0x001187c2
TEST EAX,EAX
JNZ 0x001177d0
LEA R8,[0x19ec0a]
LEA RSI,[RSP + 0x10]
MOV RDI,RBX
MOV RDX,R13
MOV RCX,RBP
CALL 0x001187c2
TEST EAX,EAX
JNZ 0x001177d0
LEA R8,[0x19ec17]
LEA RSI,[RSP + 0xc]
MOV RDI,RBX
MOV RDX,R13
MOV RCX,RBP
CALL 0x001187c2
TEST EAX,EAX
JNZ 0x001177d0
LEA R8,[0x19ec26]
LEA RSI,[RSP + 0x8]
MOV RDI,RBX
MOV RDX,R13
MOV RCX,RBP
CALL 0x001187c2
TEST EAX,EAX
JZ 0x001177da
LAB_001177d0:
XOR R13D,R13D
LAB_001177d3:
XOR ECX,ECX
JMP 0x0011794c
LAB_001177da:
CMP dword ptr [RSP + 0x14],0x0
JZ 0x00117829
MOV R15,qword ptr [R12 + 0x8]
CMP R15D,-0x3
JNZ 0x0011796f
MOV R12,qword ptr [R12]
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R15
CALL 0x00132662
TEST EAX,EAX
JS 0x001177d0
MOV RDI,RBX
MOV RSI,R12
XOR ECX,ECX
XOR R8D,R8D
CALL 0x001152c0
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R15
CALL 0x001322a1
JMP 0x00117980
LAB_00117829:
MOV R14D,dword ptr [RSP + 0x18]
TEST R14D,R14D
JZ 0x00117837
XOR EBP,EBP
JMP 0x0011785f
LAB_00117837:
MOV RDX,qword ptr [R12]
MOV RCX,qword ptr [R12 + 0x8]
LEA RSI,[RSP + 0x20]
XOR R13D,R13D
MOV RDI,RBX
XOR R8D,R8D
CALL 0x00121353
MOV RBP,RAX
TEST RAX,RAX
JZ 0x00117964
LAB_0011785f:
CMP qword ptr [R15 + 0x68],0x0
JNZ 0x0011788e
MOV EAX,dword ptr [R15 + 0x40]
LEA ECX,[RAX + 0x1]
MOV dword ptr [R15 + 0x40],ECX
TEST EAX,EAX
JNZ 0x0011788e
MOV RDI,RBX
CALL 0x001204e9
LEA RSI,[0x118822]
MOV RDI,RAX
XOR EDX,EDX
CALL 0x0011e0a2
LAB_0011788e:
TEST R14D,R14D
JZ 0x001178b1
MOV RSI,qword ptr [R12]
MOV RDX,qword ptr [R12 + 0x8]
MOV RDI,RBX
CALL 0x0011d356
MOV RDI,RBX
MOV RSI,RAX
CALL 0x001322a1
JMP 0x001178f8
LAB_001178b1:
XOR EAX,EAX
CMP dword ptr [RSP + 0xc],0x0
SETNZ AL
LEA ECX,[RAX + 0x40]
CMP dword ptr [RSP + 0x1c],0x0
CMOVZ ECX,EAX
LEA EAX,[RCX + 0x20]
CMP dword ptr [RSP + 0x10],0x0
CMOVZ EAX,ECX
CMP dword ptr [RSP + 0x8],0x0
LEA R8D,[RAX + 0x80]
CMOVZ R8D,EAX
MOV RDX,qword ptr [RSP + 0x20]
LEA RCX,[0x19ec39]
MOV RDI,RBX
MOV RSI,RBP
CALL 0x00132612
LAB_001178f8:
MOV R13,RAX
MOV R14,RDX
MOV RDI,RBX
MOV RSI,RBP
CALL 0x00121629
CMP qword ptr [R15 + 0x68],0x0
JNZ 0x0011793f
DEC dword ptr [R15 + 0x40]
JNZ 0x0011793f
MOV RDI,RBX
CALL 0x001204e9
MOV RDI,RAX
XOR ESI,ESI
XOR EDX,EDX
CALL 0x0011e0a2
AND byte ptr [0x001d05b0],0xfb
CMP R14D,0x6
JNZ 0x0011793f
MOV RDI,RBX
CALL 0x00127c84
LAB_0011793f:
MOV RCX,-0x100000000
AND RCX,R13
LAB_0011794c:
MOV EAX,R13D
OR RAX,RCX
MOV RDX,R14
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00117964:
MOV R14D,0x6
JMP 0x001177d3
LAB_0011796f:
LEA RSI,[0x19ec2c]
MOV RDI,RBX
XOR EAX,EAX
CALL 0x00122d8b
LAB_00117980:
MOV R13,RAX
MOV R14,RDX
MOV RCX,-0x100000000
AND RCX,RAX
JMP 0x0011794c
|
int1 [16]
js_evalScript(int8 param_1,int8 param_2,int8 param_3,int param_4,
int8 *param_5)
{
int *piVar1;
int iVar2;
int8 uVar3;
uint uVar4;
int iVar5;
int8 uVar6;
long lVar7;
long lVar8;
uint uVar9;
ulong uVar10;
int8 extraout_RDX;
int1 auVar11 [16];
int1 auVar12 [16];
int local_50;
int local_4c;
int local_48;
int local_44;
int local_40;
int local_3c;
int8 local_38;
uVar6 = JS_GetRuntime();
lVar7 = js_std_cmd(0,uVar6);
local_3c = 0;
local_40 = 0;
local_44 = 0;
local_48 = 0;
local_4c = 0;
local_50 = 0;
if (param_4 < 2) {
LAB_00117829:
iVar5 = local_40;
if (local_40 == 0) {
lVar8 = JS_ToCStringLen2(param_1,&local_38,*param_5,param_5[1],0);
if (lVar8 == 0) goto LAB_001177d3;
}
else {
lVar8 = 0;
}
if ((*(long *)(lVar7 + 0x68) == 0) &&
(iVar2 = *(int *)(lVar7 + 0x40), *(int *)(lVar7 + 0x40) = iVar2 + 1, iVar2 == 0)) {
uVar6 = JS_GetRuntime(param_1);
JS_SetInterruptHandler(uVar6,interrupt_handler,0);
}
if (iVar5 == 0) {
uVar9 = (local_4c != 0) + 0x40;
if (local_3c == 0) {
uVar9 = (uint)(local_4c != 0);
}
uVar4 = uVar9 + 0x20;
if (local_48 == 0) {
uVar4 = uVar9;
}
uVar9 = uVar4 + 0x80;
if (local_50 == 0) {
uVar9 = uVar4;
}
auVar11 = JS_Eval(param_1,lVar8,local_38,"<evalScript>",uVar9);
}
else {
uVar6 = JS_DupValue(param_1,*param_5,param_5[1]);
auVar11 = JS_EvalFunction(param_1,uVar6);
}
JS_FreeCString(param_1,lVar8);
if (*(long *)(lVar7 + 0x68) == 0) {
piVar1 = (int *)(lVar7 + 0x40);
*piVar1 = *piVar1 + -1;
if (*piVar1 == 0) {
uVar6 = JS_GetRuntime(param_1);
JS_SetInterruptHandler(uVar6,0,0);
os_pending_signals._0_1_ = (byte)os_pending_signals & 0xfb;
if (auVar11._8_4_ == 6) {
JS_ResetUncatchableError(param_1);
}
}
}
uVar10 = auVar11._0_8_ & 0xffffffff00000000;
}
else {
uVar6 = param_5[2];
uVar3 = param_5[3];
iVar5 = get_bool_option(param_1,&local_3c,uVar6,uVar3,"backtrace_barrier");
if (((((iVar5 == 0) &&
(iVar5 = get_bool_option(param_1,&local_40,uVar6,uVar3,"eval_function"), iVar5 == 0)) &&
(iVar5 = get_bool_option(param_1,&local_44,uVar6,uVar3,"eval_module"), iVar5 == 0)) &&
((iVar5 = get_bool_option(param_1,&local_48,uVar6,uVar3,"compile_only"), iVar5 == 0 &&
(iVar5 = get_bool_option(param_1,&local_4c,uVar6,uVar3,"compile_module"), iVar5 == 0)))) &&
(iVar5 = get_bool_option(param_1,&local_50,uVar6,uVar3,"async"), iVar5 == 0)) {
if (local_44 != 0) {
uVar6 = param_5[1];
if ((int)uVar6 == -3) {
uVar3 = *param_5;
iVar5 = JS_ResolveModule(param_1,uVar3,uVar6);
if (iVar5 < 0) goto LAB_001177d3;
js_module_set_import_meta(param_1,uVar3,extraout_RDX,0,0);
auVar11 = JS_EvalFunction(param_1,uVar3,uVar6);
}
else {
auVar11 = JS_ThrowTypeError(param_1,"not a module");
}
uVar10 = auVar11._0_8_ & 0xffffffff00000000;
goto LAB_0011794c;
}
goto LAB_00117829;
}
LAB_001177d3:
auVar11 = ZEXT816(6) << 0x40;
uVar10 = 0;
}
LAB_0011794c:
auVar12._0_8_ = auVar11._0_8_ & 0xffffffff | uVar10;
auVar12._8_8_ = auVar11._8_8_;
return auVar12;
}
| |
48,202 | ma_ck_write_tree | eloqsql/storage/maria/ma_write.c | static my_bool _ma_ck_write_tree(register MARIA_HA *info, MARIA_KEY *key)
{
my_bool error;
uint keynr= key->keyinfo->key_nr;
DBUG_ENTER("_ma_ck_write_tree");
/* Store ref_length as this is always constant */
info->bulk_insert_ref_length= key->ref_length;
error= tree_insert(&info->bulk_insert[keynr], key->data,
key->data_length + key->ref_length,
info->bulk_insert[keynr].custom_arg) == 0;
DBUG_RETURN(error);
} | O0 | c | ma_ck_write_tree:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movzbl 0xa5(%rax), %eax
movl %eax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movl 0x14(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x640(%rax)
movq -0x8(%rbp), %rax
movq 0x310(%rax), %rdi
movl -0x18(%rbp), %eax
imulq $0x298, %rax, %rax # imm = 0x298
addq %rax, %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x10(%rbp), %rax
movl 0x10(%rax), %edx
movq -0x10(%rbp), %rax
addl 0x14(%rax), %edx
movq -0x8(%rbp), %rax
movq 0x310(%rax), %rax
movl -0x18(%rbp), %ecx
imulq $0x298, %rcx, %rcx # imm = 0x298
addq %rcx, %rax
movq 0x230(%rax), %rcx
callq 0xff280
cmpq $0x0, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
movb %al, -0x11(%rbp)
movb -0x11(%rbp), %al
movb %al, -0x19(%rbp)
movb -0x19(%rbp), %al
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ma_ck_write_tree:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_10]
mov rax, [rax+8]
movzx eax, byte ptr [rax+0A5h]
mov [rbp+var_18], eax
mov rax, [rbp+var_10]
mov ecx, [rax+14h]
mov rax, [rbp+var_8]
mov [rax+640h], ecx
mov rax, [rbp+var_8]
mov rdi, [rax+310h]
mov eax, [rbp+var_18]
imul rax, 298h
add rdi, rax
mov rax, [rbp+var_10]
mov rsi, [rax]
mov rax, [rbp+var_10]
mov edx, [rax+10h]
mov rax, [rbp+var_10]
add edx, [rax+14h]
mov rax, [rbp+var_8]
mov rax, [rax+310h]
mov ecx, [rbp+var_18]
imul rcx, 298h
add rax, rcx
mov rcx, [rax+230h]
call tree_insert
cmp rax, 0
setz al
and al, 1
movzx eax, al
mov [rbp+var_11], al
mov al, [rbp+var_11]
mov [rbp+var_19], al
mov al, [rbp+var_19]
add rsp, 20h
pop rbp
retn
| _BOOL8 ma_ck_write_tree(long long a1, long long a2)
{
unsigned int v3; // [rsp+8h] [rbp-18h]
v3 = *(unsigned __int8 *)(*(_QWORD *)(a2 + 8) + 165LL);
*(_DWORD *)(a1 + 1600) = *(_DWORD *)(a2 + 20);
return tree_insert(
664LL * v3 + *(_QWORD *)(a1 + 784),
*(_QWORD *)a2,
(unsigned int)(*(_DWORD *)(a2 + 20) + *(_DWORD *)(a2 + 16)),
*(_QWORD *)(664LL * v3 + *(_QWORD *)(a1 + 784) + 560)) == 0;
}
| _ma_ck_write_tree:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOVZX EAX,byte ptr [RAX + 0xa5]
MOV dword ptr [RBP + -0x18],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x14]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x640],ECX
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x310]
MOV EAX,dword ptr [RBP + -0x18]
IMUL RAX,RAX,0x298
ADD RDI,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x10]
ADD EDX,dword ptr [RAX + 0x14]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x310]
MOV ECX,dword ptr [RBP + -0x18]
IMUL RCX,RCX,0x298
ADD RAX,RCX
MOV RCX,qword ptr [RAX + 0x230]
CALL 0x001ff280
CMP RAX,0x0
SETZ AL
AND AL,0x1
MOVZX EAX,AL
MOV byte ptr [RBP + -0x11],AL
MOV AL,byte ptr [RBP + -0x11]
MOV byte ptr [RBP + -0x19],AL
MOV AL,byte ptr [RBP + -0x19]
ADD RSP,0x20
POP RBP
RET
|
bool _ma_ck_write_tree(long param_1,int8 *param_2)
{
byte bVar1;
long lVar2;
bVar1 = *(byte *)(param_2[1] + 0xa5);
*(int4 *)(param_1 + 0x640) = *(int4 *)((long)param_2 + 0x14);
lVar2 = tree_insert(*(long *)(param_1 + 0x310) + (ulong)(uint)bVar1 * 0x298,*param_2,
*(int *)(param_2 + 2) + *(int *)((long)param_2 + 0x14),
*(int8 *)
(*(long *)(param_1 + 0x310) + (ulong)(uint)bVar1 * 0x298 + 0x230));
return lVar2 == 0;
}
| |
48,203 | ftxui::color(ftxui::Color, std::shared_ptr<ftxui::Node>) | Andrewchistyakov[P]flashcards_lyc/build_O2/_deps/ftxui-src/src/ftxui/dom/color.cpp | Element color(Color color, Element child) {
return std::make_shared<FgColor>(std::move(child), color);
} | O2 | cpp | ftxui::color(ftxui::Color, std::shared_ptr<ftxui::Node>):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, %r12
movl %esi, %ebp
movq %rdi, %rbx
andq $0x0, 0x48(%rsp)
pushq $0x70
popq %rdi
callq 0xc450
movq %rax, %r14
leaq 0xf(%rsp), %rax
movq %rax, 0x10(%rsp)
movq %r14, 0x18(%rsp)
movabsq $0x100000001, %rax # imm = 0x100000001
movq %rax, 0x8(%r14)
leaq 0x3271d(%rip), %rax # 0x501f8
movq %rax, (%r14)
leaq 0x10(%r14), %r15
leaq 0x28(%rsp), %rax
leaq 0x38(%rsp), %r13
movups (%r12), %xmm0
xorps %xmm1, %xmm1
movups %xmm1, (%r12)
movaps %xmm0, -0x8(%r13)
movups %xmm1, -0x8(%rax)
leaq 0x30(%rsp), %rsi
movq %r15, %rdi
callq 0x1dfca
leaq 0x50(%rsp), %r12
movq %r13, %rdi
callq 0x13452
leaq 0x32725(%rip), %rax # 0x50248
movq %rax, 0x10(%r14)
movl %ebp, 0x6c(%r14)
leaq 0x28(%rsp), %rdi
callq 0x13452
leaq 0x10(%rsp), %rdi
andq $0x0, 0x8(%rdi)
callq 0x1dce2
movq %r15, (%rbx)
andq $0x0, (%r12)
movq %r14, 0x8(%rbx)
andq $0x0, -0x8(%r12)
movq %r12, %rdi
callq 0x13452
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %r13, %rdi
callq 0x13452
leaq 0x28(%rsp), %rdi
callq 0x13452
leaq 0x10(%rsp), %rdi
callq 0x1dce2
movq %rbx, %rdi
callq 0xc7f0
| _ZN5ftxui5colorENS_5ColorESt10shared_ptrINS_4NodeEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov r12, rdx
mov ebp, esi
mov rbx, rdi
and [rsp+88h+var_40], 0
push 70h ; 'p'
pop rdi; unsigned __int64
call __Znwm; operator new(ulong)
mov r14, rax
lea rax, [rsp+88h+var_79]
mov [rsp+88h+var_78], rax
mov [rsp+88h+var_70], r14
mov rax, 100000001h
mov [r14+8], rax
lea rax, off_501F8
mov [r14], rax
lea r15, [r14+10h]
lea rax, [rsp+88h+var_60]
lea r13, [rsp+88h+var_50]
movups xmm0, xmmword ptr [r12]
xorps xmm1, xmm1
movups xmmword ptr [r12], xmm1
movaps xmmword ptr [r13-8], xmm0
movups xmmword ptr [rax-8], xmm1
lea rsi, [rsp+88h+var_58]
mov rdi, r15
call _ZN5ftxui13NodeDecoratorC2ESt10shared_ptrINS_4NodeEE; ftxui::NodeDecorator::NodeDecorator(std::shared_ptr<ftxui::Node>)
lea r12, [rsp+88h+var_38]
mov rdi, r13
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rax, off_50248
mov [r14+10h], rax
mov [r14+6Ch], ebp
lea rdi, [rsp+88h+var_60]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rsp+88h+var_78]
and qword ptr [rdi+8], 0
call _ZNSt15__allocated_ptrISaISt23_Sp_counted_ptr_inplaceIN5ftxui12_GLOBAL__N_17FgColorESaIS3_ELN9__gnu_cxx12_Lock_policyE2EEEED2Ev; std::__allocated_ptr<std::allocator<std::_Sp_counted_ptr_inplace<ftxui::`anonymous namespace'::FgColor,std::allocator<ftxui::`anonymous namespace'::FgColor>,(__gnu_cxx::_Lock_policy)2>>>::~__allocated_ptr()
mov [rbx], r15
and qword ptr [r12], 0
mov [rbx+8], r14
and qword ptr [r12-8], 0
mov rdi, r12
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rax, rbx
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, r13
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rsp+arg_20]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rsp+arg_8]
call _ZNSt15__allocated_ptrISaISt23_Sp_counted_ptr_inplaceIN5ftxui12_GLOBAL__N_17FgColorESaIS3_ELN9__gnu_cxx12_Lock_policyE2EEEED2Ev; std::__allocated_ptr<std::allocator<std::_Sp_counted_ptr_inplace<ftxui::`anonymous namespace'::FgColor,std::allocator<ftxui::`anonymous namespace'::FgColor>,(__gnu_cxx::_Lock_policy)2>>>::~__allocated_ptr()
mov rdi, rbx
call __Unwind_Resume
| _QWORD * ftxui::color(_QWORD *a1, int a2, __int128 *a3)
{
long long v4; // r14
__int128 v5; // xmm0
int v6; // edx
int v7; // ecx
int v8; // r8d
int v9; // r9d
char v11; // [rsp+Fh] [rbp-79h] BYREF
char *v12; // [rsp+10h] [rbp-78h]
long long v13; // [rsp+18h] [rbp-70h]
__int128 v14; // [rsp+20h] [rbp-68h] BYREF
__int128 v15; // [rsp+30h] [rbp-58h] BYREF
long long v16; // [rsp+48h] [rbp-40h]
_QWORD v17[7]; // [rsp+50h] [rbp-38h] BYREF
v16 = 0LL;
v4 = operator new(0x70uLL);
v12 = &v11;
v13 = v4;
*(_QWORD *)(v4 + 8) = 0x100000001LL;
*(_QWORD *)v4 = off_501F8;
v5 = *a3;
*a3 = 0LL;
v15 = v5;
v14 = 0LL;
ftxui::NodeDecorator::NodeDecorator(v4 + 16, (unsigned int)&v15, v6, v7, v8, v9);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)&v15 + 1);
*(_QWORD *)(v4 + 16) = off_50248;
*(_DWORD *)(v4 + 108) = a2;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)&v14 + 1);
v13 = 0LL;
std::__allocated_ptr<std::allocator<std::_Sp_counted_ptr_inplace<ftxui::`anonymous namespace'::FgColor,std::allocator<ftxui::`anonymous namespace'::FgColor>,(__gnu_cxx::_Lock_policy)2>>>::~__allocated_ptr();
*a1 = v4 + 16;
v17[0] = 0LL;
a1[1] = v4;
v16 = 0LL;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v17);
return a1;
}
| color:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV R12,RDX
MOV EBP,ESI
MOV RBX,RDI
AND qword ptr [RSP + 0x48],0x0
PUSH 0x70
POP RDI
CALL 0x0010c450
MOV R14,RAX
LEA RAX,[RSP + 0xf]
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x18],R14
MOV RAX,0x100000001
MOV qword ptr [R14 + 0x8],RAX
LEA RAX,[0x1501f8]
MOV qword ptr [R14],RAX
LEA R15,[R14 + 0x10]
LEA RAX,[RSP + 0x28]
LEA R13,[RSP + 0x38]
MOVUPS XMM0,xmmword ptr [R12]
XORPS XMM1,XMM1
MOVUPS xmmword ptr [R12],XMM1
MOVAPS xmmword ptr [R13 + -0x8],XMM0
MOVUPS xmmword ptr [RAX + -0x8],XMM1
LAB_0011db02:
LEA RSI,[RSP + 0x30]
MOV RDI,R15
CALL 0x0011dfca
LAB_0011db0f:
LEA R12,[RSP + 0x50]
MOV RDI,R13
CALL 0x00113452
LEA RAX,[0x150248]
MOV qword ptr [R14 + 0x10],RAX
MOV dword ptr [R14 + 0x6c],EBP
LEA RDI,[RSP + 0x28]
CALL 0x00113452
LEA RDI,[RSP + 0x10]
AND qword ptr [RDI + 0x8],0x0
CALL 0x0011dce2
MOV qword ptr [RBX],R15
AND qword ptr [R12],0x0
MOV qword ptr [RBX + 0x8],R14
AND qword ptr [R12 + -0x8],0x0
MOV RDI,R12
CALL 0x00113452
MOV RAX,RBX
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* ftxui::color(ftxui::Color, std::shared_ptr<ftxui::Node>) */
ftxui * __thiscall ftxui::color(ftxui *this,int4 param_2,int8 *param_3)
{
int8 *puVar1;
int1 local_79;
int1 *local_78;
int8 *local_70;
int8 local_68;
int8 uStack_60;
int4 local_58;
int4 uStack_54;
int4 uStack_50;
int4 uStack_4c;
int8 local_40;
int8 local_38;
local_40 = 0;
puVar1 = (int8 *)operator_new(0x70);
local_78 = &local_79;
puVar1[1] = 0x100000001;
*puVar1 = &PTR___Sp_counted_ptr_inplace_001501f8;
local_58 = *(int4 *)param_3;
uStack_54 = *(int4 *)((long)param_3 + 4);
uStack_50 = *(int4 *)(param_3 + 1);
uStack_4c = *(int4 *)((long)param_3 + 0xc);
*param_3 = 0;
param_3[1] = 0;
local_68 = 0;
uStack_60 = 0;
/* try { // try from 0011db02 to 0011db0e has its CatchHandler @ 0011db70 */
local_70 = puVar1;
NodeDecorator::NodeDecorator((NodeDecorator *)(puVar1 + 2),&local_58);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&uStack_50);
puVar1[2] = &PTR__Node_00150248;
*(int4 *)((long)puVar1 + 0x6c) = param_2;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&uStack_60);
local_70 = (int8 *)0x0;
std::
__allocated_ptr<std::allocator<std::_Sp_counted_ptr_inplace<ftxui::(anonymous_namespace)::FgColor,std::allocator<ftxui::(anonymous_namespace)::FgColor>,(__gnu_cxx::_Lock_policy)2>>>
::~__allocated_ptr((__allocated_ptr<std::allocator<std::_Sp_counted_ptr_inplace<ftxui::(anonymous_namespace)::FgColor,std::allocator<ftxui::(anonymous_namespace)::FgColor>,(__gnu_cxx::_Lock_policy)2>>>
*)&local_78);
*(NodeDecorator **)this = (NodeDecorator *)(puVar1 + 2);
local_38 = 0;
*(int8 **)(this + 8) = puVar1;
local_40 = 0;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&local_38);
return this;
}
| |
48,204 | ma_init_block_record_data | eloqsql/storage/maria/ma_blockrec.c | void _ma_init_block_record_data(void)
{
uint i;
bzero(total_header_size, sizeof(total_header_size));
total_header_size[0]= FLAG_SIZE; /* Flag uchar */
for (i= 1; i < array_elements(total_header_size); i++)
{
uint size= FLAG_SIZE, j, bit;
for (j= 0; (bit= (1 << j)) <= i; j++)
{
if (i & bit)
size+= header_sizes[j];
}
total_header_size[i]= size;
}
} | O0 | c | ma_init_block_record_data:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
leaq 0xc06601(%rip), %rdi # 0xc7a410
xorl %esi, %esi
movl $0x10, %edx
callq 0x2a2c0
movb $0x1, 0xc065ee(%rip) # 0xc7a410
movl $0x1, -0x4(%rbp)
cmpl $0x10, -0x4(%rbp)
jae 0x73e9c
movl $0x1, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %ecx
movl $0x1, %eax
shll %cl, %eax
movl %eax, -0x10(%rbp)
cmpl -0x4(%rbp), %eax
ja 0x73e7d
movl -0x4(%rbp), %eax
andl -0x10(%rbp), %eax
cmpl $0x0, %eax
je 0x73e70
movl -0xc(%rbp), %eax
movl %eax, %ecx
leaq 0x24a1ea(%rip), %rax # 0x2be050
movzbl (%rax,%rcx), %eax
addl -0x8(%rbp), %eax
movl %eax, -0x8(%rbp)
jmp 0x73e72
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x73e3d
movl -0x8(%rbp), %eax
movb %al, %dl
movl -0x4(%rbp), %eax
movl %eax, %ecx
leaq 0xc06582(%rip), %rax # 0xc7a410
movb %dl, (%rax,%rcx)
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x73e29
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ma_init_block_record_data:
push rbp
mov rbp, rsp
sub rsp, 10h
lea rdi, total_header_size
xor esi, esi
mov edx, 10h
call _memset
mov cs:total_header_size, 1
mov [rbp+var_4], 1
loc_73E29:
cmp [rbp+var_4], 10h
jnb short loc_73E9C
mov [rbp+var_8], 1
mov [rbp+var_C], 0
loc_73E3D:
mov ecx, [rbp+var_C]
mov eax, 1
shl eax, cl
mov [rbp+var_10], eax
cmp eax, [rbp+var_4]
ja short loc_73E7D
mov eax, [rbp+var_4]
and eax, [rbp+var_10]
cmp eax, 0
jz short loc_73E70
mov eax, [rbp+var_C]
mov ecx, eax
lea rax, header_sizes
movzx eax, byte ptr [rax+rcx]
add eax, [rbp+var_8]
mov [rbp+var_8], eax
loc_73E70:
jmp short $+2
loc_73E72:
mov eax, [rbp+var_C]
add eax, 1
mov [rbp+var_C], eax
jmp short loc_73E3D
loc_73E7D:
mov eax, [rbp+var_8]
mov dl, al
mov eax, [rbp+var_4]
mov ecx, eax
lea rax, total_header_size
mov [rax+rcx], dl
mov eax, [rbp+var_4]
add eax, 1
mov [rbp+var_4], eax
jmp short loc_73E29
loc_73E9C:
add rsp, 10h
pop rbp
retn
| long long ma_init_block_record_data()
{
long long result; // rax
int j; // [rsp+4h] [rbp-Ch]
char v2; // [rsp+8h] [rbp-8h]
unsigned int i; // [rsp+Ch] [rbp-4h]
result = memset(total_header_size, 0LL, 16LL);
total_header_size[0] = 1;
for ( i = 1; i < 0x10; ++i )
{
v2 = 1;
for ( j = 0; 1 << j <= i; ++j )
{
if ( ((1 << j) & i) != 0 )
v2 += header_sizes[j];
}
total_header_size[i] = v2;
result = i + 1;
}
return result;
}
| _ma_init_block_record_data:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
LEA RDI,[0xd7a410]
XOR ESI,ESI
MOV EDX,0x10
CALL 0x0012a2c0
MOV byte ptr [0x00d7a410],0x1
MOV dword ptr [RBP + -0x4],0x1
LAB_00173e29:
CMP dword ptr [RBP + -0x4],0x10
JNC 0x00173e9c
MOV dword ptr [RBP + -0x8],0x1
MOV dword ptr [RBP + -0xc],0x0
LAB_00173e3d:
MOV ECX,dword ptr [RBP + -0xc]
MOV EAX,0x1
SHL EAX,CL
MOV dword ptr [RBP + -0x10],EAX
CMP EAX,dword ptr [RBP + -0x4]
JA 0x00173e7d
MOV EAX,dword ptr [RBP + -0x4]
AND EAX,dword ptr [RBP + -0x10]
CMP EAX,0x0
JZ 0x00173e70
MOV EAX,dword ptr [RBP + -0xc]
MOV ECX,EAX
LEA RAX,[0x3be050]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
ADD EAX,dword ptr [RBP + -0x8]
MOV dword ptr [RBP + -0x8],EAX
LAB_00173e70:
JMP 0x00173e72
LAB_00173e72:
MOV EAX,dword ptr [RBP + -0xc]
ADD EAX,0x1
MOV dword ptr [RBP + -0xc],EAX
JMP 0x00173e3d
LAB_00173e7d:
MOV EAX,dword ptr [RBP + -0x8]
MOV DL,AL
MOV EAX,dword ptr [RBP + -0x4]
MOV ECX,EAX
LEA RAX,[0xd7a410]
MOV byte ptr [RAX + RCX*0x1],DL
MOV EAX,dword ptr [RBP + -0x4]
ADD EAX,0x1
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00173e29
LAB_00173e9c:
ADD RSP,0x10
POP RBP
RET
|
void _ma_init_block_record_data(void)
{
char cVar1;
uint uVar2;
uint local_14;
uint local_c;
memset(total_header_size,0,0x10);
total_header_size[0] = 1;
for (local_c = 1; local_c < 0x10; local_c = local_c + 1) {
cVar1 = '\x01';
for (local_14 = 0; uVar2 = 1 << ((byte)local_14 & 0x1f), uVar2 <= local_c;
local_14 = local_14 + 1) {
if ((local_c & uVar2) != 0) {
cVar1 = *(char *)((long)&header_sizes + (ulong)local_14) + cVar1;
}
}
total_header_size[local_c] = cVar1;
}
return;
}
| |
48,205 | double minco::MINCO_op<3, 3, 1>::getEnergy_edge_final<0, 0, 1>(Eigen::Matrix<double, -1, 3, 0, -1, 3> const&, Eigen::Matrix<double, 6, 1, 0, 6, 1> const&, int, std::integer_sequence<int, 0, 1>) | zusiliang[P]myMINCO/minco.hpp | static inline double getEnergy_edge_final(const C_Type &c, const T_Type &T, const int Ti, int_sequence<j...>)
{
return ((
(double)perm<s + i, s>::val * perm<s + i + j + 1, s>::val / (2 * i + j + 2) * c.row((2 * Ti + 1) * s + i).dot(c.row((2 * Ti + 1) * s + i + j + 1)) * T_op::template get_pow_T<2 * i + j + 2>(T, Ti)
) + ... + 0);
} | O2 | cpp | double minco::MINCO_op<3, 3, 1>::getEnergy_edge_final<0, 0, 1>(Eigen::Matrix<double, -1, 3, 0, -1, 3> const&, Eigen::Matrix<double, 6, 1, 0, 6, 1> const&, int, std::integer_sequence<int, 0, 1>):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
imull $0x6, %edx, %r15d
leal 0x3(%r15), %eax
movslq %eax, %r13
movq (%rdi), %rax
leaq (%rax,%r13,8), %rcx
leaq 0x98(%rsp), %rdi
movq %rcx, (%rdi)
movq %r14, 0x10(%rdi)
movq %r13, 0x18(%rdi)
andq $0x0, 0x20(%rdi)
pushq $0x1
popq %r12
movq %r12, 0x28(%rdi)
leal 0x4(%r15), %ecx
movslq %ecx, %rcx
leaq (%rax,%rcx,8), %rax
leaq 0x68(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, 0x10(%rsi)
movq %rcx, 0x18(%rsi)
andq $0x0, 0x20(%rsi)
movq %r12, 0x28(%rsi)
callq 0x8774
mulsd 0x1a24(%rip), %xmm0 # 0xa080
movslq %ebp, %rax
movq (%rbx), %rcx
imulq $0x30, %rax, %rbp
mulsd 0x10(%rcx,%rbp), %xmm0
movsd %xmm0, (%rsp)
movq (%r14), %rax
leaq (%rax,%r13,8), %rcx
leaq 0x38(%rsp), %rdi
movq %rcx, (%rdi)
movq %r14, 0x10(%rdi)
movq %r13, 0x18(%rdi)
andq $0x0, 0x20(%rdi)
movq %r12, 0x28(%rdi)
addl $0x5, %r15d
movslq %r15d, %rcx
leaq (%rax,%rcx,8), %rax
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, 0x10(%rsi)
movq %rcx, 0x18(%rsi)
andq $0x0, 0x20(%rsi)
movq %r12, 0x28(%rsi)
callq 0x8774
mulsd 0x19c6(%rip), %xmm0 # 0xa088
movq (%rbx), %rax
mulsd 0x18(%rax,%rbp), %xmm0
xorpd %xmm1, %xmm1
addsd %xmm1, %xmm0
addsd (%rsp), %xmm0
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ZN5minco8MINCO_opILi3ELi2ELi0EE20getEnergy_edge_finalILi0EJLi0ELi1EEEEdRKN5Eigen6MatrixIdLin1ELi2ELi0ELin1ELi2EEERKNS4_IdLi6ELin1ELi0ELi6ELin1EEEiSt16integer_sequenceIiJXspT0_EEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0C8h
mov ebp, edx
mov rbx, rsi
mov r14, rdi
imul r15d, edx, 6
lea eax, [r15+3]
movsxd r13, eax
mov rax, [rdi]
lea rcx, [rax+r13*8]
lea rdi, [rsp+0F8h+var_60]
mov [rdi], rcx
mov [rdi+10h], r14
mov [rdi+18h], r13
and qword ptr [rdi+20h], 0
push 1
pop r12
mov [rdi+28h], r12
lea ecx, [r15+4]
movsxd rcx, ecx
lea rax, [rax+rcx*8]
lea rsi, [rsp+0F8h+var_90]
mov [rsi], rax
mov [rsi+10h], r14
mov [rsi+18h], rcx
and qword ptr [rsi+20h], 0
mov [rsi+28h], r12
call _ZN5Eigen8internal11dot_nocheckINS_5BlockIKNS_6MatrixIdLin1ELi2ELi0ELin1ELi2EEELi1ELi2ELb0EEES6_Lb0EE3runERKNS_10MatrixBaseIS6_EESB_; Eigen::internal::dot_nocheck<Eigen::Block<Eigen::Matrix<double,-1,2,0,-1,2> const,1,2,false>,Eigen::Block<Eigen::Matrix<double,-1,2,0,-1,2> const,1,2,false>,false>::run(Eigen::MatrixBase<Eigen::Block<Eigen::Matrix<double,-1,2,0,-1,2> const,1,2,false>> const&,Eigen::MatrixBase<Eigen::Block<Eigen::Matrix<double,-1,2,0,-1,2> const,1,2,false>> const&)
mulsd xmm0, cs:qword_A080
movsxd rax, ebp
mov rcx, [rbx]
imul rbp, rax, 30h ; '0'
mulsd xmm0, qword ptr [rcx+rbp+10h]
movsd [rsp+0F8h+var_F8], xmm0
mov rax, [r14]
lea rcx, [rax+r13*8]
lea rdi, [rsp+0F8h+var_C0]
mov [rdi], rcx
mov [rdi+10h], r14
mov [rdi+18h], r13
and qword ptr [rdi+20h], 0
mov [rdi+28h], r12
add r15d, 5
movsxd rcx, r15d
lea rax, [rax+rcx*8]
lea rsi, [rsp+0F8h+var_F0]
mov [rsi], rax
mov [rsi+10h], r14
mov [rsi+18h], rcx
and qword ptr [rsi+20h], 0
mov [rsi+28h], r12
call _ZN5Eigen8internal11dot_nocheckINS_5BlockIKNS_6MatrixIdLin1ELi2ELi0ELin1ELi2EEELi1ELi2ELb0EEES6_Lb0EE3runERKNS_10MatrixBaseIS6_EESB_; Eigen::internal::dot_nocheck<Eigen::Block<Eigen::Matrix<double,-1,2,0,-1,2> const,1,2,false>,Eigen::Block<Eigen::Matrix<double,-1,2,0,-1,2> const,1,2,false>,false>::run(Eigen::MatrixBase<Eigen::Block<Eigen::Matrix<double,-1,2,0,-1,2> const,1,2,false>> const&,Eigen::MatrixBase<Eigen::Block<Eigen::Matrix<double,-1,2,0,-1,2> const,1,2,false>> const&)
mulsd xmm0, cs:qword_A088
mov rax, [rbx]
mulsd xmm0, qword ptr [rax+rbp+18h]
xorpd xmm1, xmm1
addsd xmm0, xmm1
addsd xmm0, [rsp+0F8h+var_F8]
add rsp, 0C8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| double minco::MINCO_op<3,2,0>::getEnergy_edge_final<0,0,1>(long long a1, _QWORD *a2, int a3)
{
long long v3; // rbp
double v5; // [rsp+0h] [rbp-F8h]
v3 = 48LL * a3;
v5 = Eigen::internal::dot_nocheck<Eigen::Block<Eigen::Matrix<double,-1,2,0,-1,2> const,1,2,false>,Eigen::Block<Eigen::Matrix<double,-1,2,0,-1,2> const,1,2,false>,false>::run()
* 72.0
* *(double *)(*a2 + v3 + 16);
return Eigen::internal::dot_nocheck<Eigen::Block<Eigen::Matrix<double,-1,2,0,-1,2> const,1,2,false>,Eigen::Block<Eigen::Matrix<double,-1,2,0,-1,2> const,1,2,false>,false>::run()
* 120.0
* *(double *)(*a2 + v3 + 24)
+ 0.0
+ v5;
}
| getEnergy_edge_final<0,0,1>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xc8
MOV EBP,EDX
MOV RBX,RSI
MOV R14,RDI
IMUL R15D,EDX,0x6
LEA EAX,[R15 + 0x3]
MOVSXD R13,EAX
MOV RAX,qword ptr [RDI]
LEA RCX,[RAX + R13*0x8]
LEA RDI,[RSP + 0x98]
MOV qword ptr [RDI],RCX
MOV qword ptr [RDI + 0x10],R14
MOV qword ptr [RDI + 0x18],R13
AND qword ptr [RDI + 0x20],0x0
PUSH 0x1
POP R12
MOV qword ptr [RDI + 0x28],R12
LEA ECX,[R15 + 0x4]
MOVSXD RCX,ECX
LEA RAX,[RAX + RCX*0x8]
LEA RSI,[RSP + 0x68]
MOV qword ptr [RSI],RAX
MOV qword ptr [RSI + 0x10],R14
MOV qword ptr [RSI + 0x18],RCX
AND qword ptr [RSI + 0x20],0x0
MOV qword ptr [RSI + 0x28],R12
CALL 0x00108774
MULSD XMM0,qword ptr [0x0010a080]
MOVSXD RAX,EBP
MOV RCX,qword ptr [RBX]
IMUL RBP,RAX,0x30
MULSD XMM0,qword ptr [RCX + RBP*0x1 + 0x10]
MOVSD qword ptr [RSP],XMM0
MOV RAX,qword ptr [R14]
LEA RCX,[RAX + R13*0x8]
LEA RDI,[RSP + 0x38]
MOV qword ptr [RDI],RCX
MOV qword ptr [RDI + 0x10],R14
MOV qword ptr [RDI + 0x18],R13
AND qword ptr [RDI + 0x20],0x0
MOV qword ptr [RDI + 0x28],R12
ADD R15D,0x5
MOVSXD RCX,R15D
LEA RAX,[RAX + RCX*0x8]
LEA RSI,[RSP + 0x8]
MOV qword ptr [RSI],RAX
MOV qword ptr [RSI + 0x10],R14
MOV qword ptr [RSI + 0x18],RCX
AND qword ptr [RSI + 0x20],0x0
MOV qword ptr [RSI + 0x28],R12
CALL 0x00108774
MULSD XMM0,qword ptr [0x0010a088]
MOV RAX,qword ptr [RBX]
MULSD XMM0,qword ptr [RAX + RBP*0x1 + 0x18]
XORPD XMM1,XMM1
ADDSD XMM0,XMM1
ADDSD XMM0,qword ptr [RSP]
ADD RSP,0xc8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* double minco::MINCO_op<3, 2, 0>::getEnergy_edge_final<0, 0, 1>(Eigen::Matrix<double, -1, 2, 0,
-1, 2> const&, Eigen::Matrix<double, 6, -1, 0, 6, -1> const&, int, std::integer_sequence<int, 0,
1>) */
double minco::MINCO_op<3,2,0>::getEnergy_edge_final<0,0,1>(long *param_1,long *param_2,int param_3)
{
double dVar1;
long lVar2;
int iVar3;
double dVar4;
double dVar5;
long local_f0 [2];
long *local_e0;
long local_d8;
int8 local_d0;
int8 local_c8;
long local_c0 [2];
long *local_b0;
long local_a8;
int8 local_a0;
int8 local_98;
long local_90 [2];
long *local_80;
long local_78;
int8 local_70;
int8 local_68;
long local_60 [2];
long *local_50;
long local_48;
int8 local_40;
int8 local_38;
iVar3 = param_3 * 6;
lVar2 = (long)(iVar3 + 3);
local_60[0] = *param_1 + lVar2 * 8;
local_40 = 0;
local_38 = 1;
local_78 = (long)(iVar3 + 4);
local_90[0] = *param_1 + local_78 * 8;
local_70 = 0;
local_68 = 1;
local_80 = param_1;
local_50 = param_1;
local_48 = lVar2;
dVar4 = (double)Eigen::internal::
dot_nocheck<Eigen::Block<Eigen::Matrix<double,-1,2,0,-1,2>const,1,2,false>,Eigen::Block<Eigen::Matrix<double,-1,2,0,-1,2>const,1,2,false>,false>
::run((MatrixBase *)local_60,(MatrixBase *)local_90);
dVar4 = dVar4 * _DAT_0010a080;
dVar1 = *(double *)(*param_2 + 0x10 + (long)param_3 * 0x30);
local_c0[0] = *param_1 + lVar2 * 8;
local_a0 = 0;
local_98 = 1;
local_d8 = (long)(iVar3 + 5);
local_f0[0] = *param_1 + local_d8 * 8;
local_d0 = 0;
local_c8 = 1;
local_e0 = param_1;
local_b0 = param_1;
local_a8 = lVar2;
dVar5 = (double)Eigen::internal::
dot_nocheck<Eigen::Block<Eigen::Matrix<double,-1,2,0,-1,2>const,1,2,false>,Eigen::Block<Eigen::Matrix<double,-1,2,0,-1,2>const,1,2,false>,false>
::run((MatrixBase *)local_c0,(MatrixBase *)local_f0);
return dVar5 * _DAT_0010a088 * *(double *)(*param_2 + 0x18 + (long)param_3 * 0x30) + 0.0 +
dVar4 * dVar1;
}
| |
48,206 | my_charpos_utf16 | eloqsql/strings/ctype-ucs2.c | static size_t
my_charpos_utf16(CHARSET_INFO *cs,
const char *b, const char *e, size_t pos)
{
const char *b0= b;
uint charlen;
for ( ; pos; b+= charlen, pos--)
{
if (!(charlen= my_ismbchar(cs, b, e)))
return (e + 2 - b0); /* Error, return pos outside the string */
}
return (size_t) (pos ? (e + 2 - b0) : (b - b0));
} | O3 | c | my_charpos_utf16:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rsi, %r12
testq %rcx, %rcx
je 0x7cbbd
movq %rcx, %r15
movq %rdx, %r14
movq %rdi, %r13
movq %rbx, %r12
movq 0xb8(%r13), %rax
movq %r13, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq *0xc0(%rax)
cmpl $0x1, %eax
jle 0x7cbb6
movl %eax, %eax
addq %rax, %r12
decq %r15
jne 0x7cb8f
jmp 0x7cbbd
addq $0x2, %r14
movq %r14, %r12
subq %rbx, %r12
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_charpos_utf16:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rsi
mov r12, rsi
test rcx, rcx
jz short loc_7CBBD
mov r15, rcx
mov r14, rdx
mov r13, rdi
mov r12, rbx
loc_7CB8F:
mov rax, [r13+0B8h]
mov rdi, r13
mov rsi, r12
mov rdx, r14
call qword ptr [rax+0C0h]
cmp eax, 1
jle short loc_7CBB6
mov eax, eax
add r12, rax
dec r15
jnz short loc_7CB8F
jmp short loc_7CBBD
loc_7CBB6:
add r14, 2
mov r12, r14
loc_7CBBD:
sub r12, rbx
mov rax, r12
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_charpos_utf16(long long a1, long long a2, long long a3, long long a4)
{
long long v4; // r12
long long v5; // r15
int v7; // eax
v4 = a2;
if ( a4 )
{
v5 = a4;
v4 = a2;
while ( 1 )
{
v7 = (*(long long ( **)(long long, long long, long long))(*(_QWORD *)(a1 + 184) + 192LL))(a1, v4, a3);
if ( v7 <= 1 )
break;
v4 += (unsigned int)v7;
if ( !--v5 )
return v4 - a2;
}
v4 = a3 + 2;
}
return v4 - a2;
}
| my_charpos_utf16:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R12,RSI
TEST RCX,RCX
JZ 0x0017cbbd
MOV R15,RCX
MOV R14,RDX
MOV R13,RDI
MOV R12,RBX
LAB_0017cb8f:
MOV RAX,qword ptr [R13 + 0xb8]
MOV RDI,R13
MOV RSI,R12
MOV RDX,R14
CALL qword ptr [RAX + 0xc0]
CMP EAX,0x1
JLE 0x0017cbb6
MOV EAX,EAX
ADD R12,RAX
DEC R15
JNZ 0x0017cb8f
JMP 0x0017cbbd
LAB_0017cbb6:
ADD R14,0x2
MOV R12,R14
LAB_0017cbbd:
SUB R12,RBX
MOV RAX,R12
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_charpos_utf16(long param_1,long param_2,long param_3,long param_4)
{
uint uVar1;
long lVar2;
lVar2 = param_2;
if (param_4 != 0) {
do {
uVar1 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,lVar2,param_3);
if ((int)uVar1 < 2) {
lVar2 = param_3 + 2;
break;
}
lVar2 = lVar2 + (ulong)uVar1;
param_4 = param_4 + -1;
} while (param_4 != 0);
}
return lVar2 - param_2;
}
| |
48,207 | ggml_get_rows_back | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c | struct ggml_tensor * ggml_get_rows_back(
struct ggml_context * ctx,
struct ggml_tensor * a,
struct ggml_tensor * b,
struct ggml_tensor * c) {
GGML_ASSERT(ggml_is_matrix(a) && ggml_is_vector(b) && b->type == GGML_TYPE_I32);
GGML_ASSERT(ggml_is_matrix(c) && (a->ne[0] == c->ne[0]));
// TODO: implement non F32 return
//struct ggml_tensor * result = ggml_new_tensor_2d(ctx, a->type, a->ne[0], b->ne[0]);
struct ggml_tensor * result = ggml_new_tensor_2d(ctx, GGML_TYPE_F32, c->ne[0], c->ne[1]);
result->op = GGML_OP_GET_ROWS_BACK;
result->src[0] = a;
result->src[1] = b;
return result;
} | O0 | c | ggml_get_rows_back:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
callq 0x45bc0
testb $0x1, %al
jne 0x50507
jmp 0x5051f
movq -0x18(%rbp), %rdi
callq 0x483a0
testb $0x1, %al
jne 0x50516
jmp 0x5051f
movq -0x18(%rbp), %rax
cmpl $0x1a, (%rax)
je 0x50540
leaq 0x61091(%rip), %rdi # 0xb15b7
movl $0xce7, %esi # imm = 0xCE7
leaq 0x610d7(%rip), %rdx # 0xb1609
leaq 0x61673(%rip), %rcx # 0xb1bac
movb $0x0, %al
callq 0x48a00
movq -0x20(%rbp), %rdi
callq 0x45bc0
testb $0x1, %al
jne 0x5054f
jmp 0x50561
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x20(%rbp), %rcx
cmpq 0x10(%rcx), %rax
je 0x50582
leaq 0x6104f(%rip), %rdi # 0xb15b7
movl $0xce8, %esi # imm = 0xCE8
leaq 0x61095(%rip), %rdx # 0xb1609
leaq 0x61674(%rip), %rcx # 0xb1bef
movb $0x0, %al
callq 0x48a00
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rdx
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rcx
xorl %esi, %esi
callq 0x471c0
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movl $0x26, 0x50(%rax)
movq -0x10(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x98(%rax)
movq -0x18(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0xa0(%rax)
movq -0x28(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| ggml_get_rows_back:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov rdi, [rbp+var_10]
call _ggml_is_matrix
test al, 1
jnz short loc_50507
jmp short loc_5051F
loc_50507:
mov rdi, [rbp+var_18]
call _ggml_is_vector
test al, 1
jnz short loc_50516
jmp short loc_5051F
loc_50516:
mov rax, [rbp+var_18]
cmp dword ptr [rax], 1Ah
jz short loc_50540
loc_5051F:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
mov esi, 0CE7h
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlIsMatrixAG; "ggml_is_matrix(a) && ggml_is_vector(b) "...
mov al, 0
call _ggml_abort
loc_50540:
mov rdi, [rbp+var_20]
call _ggml_is_matrix
test al, 1
jnz short loc_5054F
jmp short loc_50561
loc_5054F:
mov rax, [rbp+var_10]
mov rax, [rax+10h]
mov rcx, [rbp+var_20]
cmp rax, [rcx+10h]
jz short loc_50582
loc_50561:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
mov esi, 0CE8h
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlIsMatrixCA; "ggml_is_matrix(c) && (a->ne[0] == c->ne"...
mov al, 0
call _ggml_abort
loc_50582:
mov rdi, [rbp+var_8]
mov rax, [rbp+var_20]
mov rdx, [rax+10h]
mov rax, [rbp+var_20]
mov rcx, [rax+18h]
xor esi, esi
call _ggml_new_tensor_2d
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
mov dword ptr [rax+50h], 26h ; '&'
mov rcx, [rbp+var_10]
mov rax, [rbp+var_28]
mov [rax+98h], rcx
mov rcx, [rbp+var_18]
mov rax, [rbp+var_28]
mov [rax+0A0h], rcx
mov rax, [rbp+var_28]
add rsp, 30h
pop rbp
retn
| long long ggml_get_rows_back(long long a1, long long a2, _QWORD *a3, long long a4)
{
long long result; // rax
if ( !ggml_is_matrix(a2) || !ggml_is_vector(a3) || *(_DWORD *)a3 != 26 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
3303,
(long long)"GGML_ASSERT(%s) failed",
"ggml_is_matrix(a) && ggml_is_vector(b) && b->type == GGML_TYPE_I32");
if ( !ggml_is_matrix(a4) || *(_QWORD *)(a2 + 16) != *(_QWORD *)(a4 + 16) )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
3304,
(long long)"GGML_ASSERT(%s) failed",
"ggml_is_matrix(c) && (a->ne[0] == c->ne[0])");
result = ggml_new_tensor_2d(a1, 0, *(_QWORD *)(a4 + 16), *(_QWORD *)(a4 + 24));
*(_DWORD *)(result + 80) = 38;
*(_QWORD *)(result + 152) = a2;
*(_QWORD *)(result + 160) = a3;
return result;
}
| ggml_get_rows_back:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
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 RDI,qword ptr [RBP + -0x10]
CALL 0x00145bc0
TEST AL,0x1
JNZ 0x00150507
JMP 0x0015051f
LAB_00150507:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001483a0
TEST AL,0x1
JNZ 0x00150516
JMP 0x0015051f
LAB_00150516:
MOV RAX,qword ptr [RBP + -0x18]
CMP dword ptr [RAX],0x1a
JZ 0x00150540
LAB_0015051f:
LEA RDI,[0x1b15b7]
MOV ESI,0xce7
LEA RDX,[0x1b1609]
LEA RCX,[0x1b1bac]
MOV AL,0x0
CALL 0x00148a00
LAB_00150540:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00145bc0
TEST AL,0x1
JNZ 0x0015054f
JMP 0x00150561
LAB_0015054f:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RCX + 0x10]
JZ 0x00150582
LAB_00150561:
LEA RDI,[0x1b15b7]
MOV ESI,0xce8
LEA RDX,[0x1b1609]
LEA RCX,[0x1b1bef]
MOV AL,0x0
CALL 0x00148a00
LAB_00150582:
MOV RDI,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RAX + 0x18]
XOR ESI,ESI
CALL 0x001471c0
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV dword ptr [RAX + 0x50],0x26
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX + 0x98],RCX
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX + 0xa0],RCX
MOV RAX,qword ptr [RBP + -0x28]
ADD RSP,0x30
POP RBP
RET
|
long ggml_get_rows_back(int8 param_1,long param_2,int *param_3,long param_4)
{
ulong uVar1;
long lVar2;
uVar1 = ggml_is_matrix(param_2);
if ((((uVar1 & 1) == 0) || (uVar1 = ggml_is_vector(param_3), (uVar1 & 1) == 0)) ||
(*param_3 != 0x1a)) {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
0xce7,"GGML_ASSERT(%s) failed",
"ggml_is_matrix(a) && ggml_is_vector(b) && b->type == GGML_TYPE_I32");
}
uVar1 = ggml_is_matrix(param_4);
if (((uVar1 & 1) == 0) || (*(long *)(param_2 + 0x10) != *(long *)(param_4 + 0x10))) {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
0xce8,"GGML_ASSERT(%s) failed","ggml_is_matrix(c) && (a->ne[0] == c->ne[0])");
}
lVar2 = ggml_new_tensor_2d(param_1,0,*(int8 *)(param_4 + 0x10),
*(int8 *)(param_4 + 0x18));
*(int4 *)(lVar2 + 0x50) = 0x26;
*(long *)(lVar2 + 0x98) = param_2;
*(int **)(lVar2 + 0xa0) = param_3;
return lVar2;
}
| |
48,208 | ggml_get_rows_back | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c | struct ggml_tensor * ggml_get_rows_back(
struct ggml_context * ctx,
struct ggml_tensor * a,
struct ggml_tensor * b,
struct ggml_tensor * c) {
GGML_ASSERT(ggml_is_matrix(a) && ggml_is_vector(b) && b->type == GGML_TYPE_I32);
GGML_ASSERT(ggml_is_matrix(c) && (a->ne[0] == c->ne[0]));
// TODO: implement non F32 return
//struct ggml_tensor * result = ggml_new_tensor_2d(ctx, a->type, a->ne[0], b->ne[0]);
struct ggml_tensor * result = ggml_new_tensor_2d(ctx, GGML_TYPE_F32, c->ne[0], c->ne[1]);
result->op = GGML_OP_GET_ROWS_BACK;
result->src[0] = a;
result->src[1] = b;
return result;
} | O2 | c | ggml_get_rows_back:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
cmpq $0x1, 0x20(%rsi)
jne 0x23575
movq %rsi, %r14
cmpq $0x1, 0x28(%rsi)
jne 0x23575
movq %rcx, %r15
movq %rdx, %rbx
movq %rdi, %r12
movq %rdx, %rdi
callq 0x1f6d0
testb %al, %al
je 0x23575
cmpl $0x1a, (%rbx)
jne 0x23575
cmpq $0x1, 0x20(%r15)
jne 0x23591
cmpq $0x1, 0x28(%r15)
jne 0x23591
movq 0x10(%r14), %rdx
cmpq 0x10(%r15), %rdx
jne 0x23591
movq 0x18(%r15), %rcx
movq %r12, %rdi
xorl %esi, %esi
callq 0x1f000
movl $0x26, 0x50(%rax)
movq %r14, 0x98(%rax)
movq %rbx, 0xa0(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x2b007(%rip), %rdi # 0x4e583
leaq 0x2b052(%rip), %rdx # 0x4e5d5
leaq 0x2b5ee(%rip), %rcx # 0x4eb78
movl $0xce7, %esi # imm = 0xCE7
jmp 0x235ab
leaq 0x2afeb(%rip), %rdi # 0x4e583
leaq 0x2b036(%rip), %rdx # 0x4e5d5
leaq 0x2b615(%rip), %rcx # 0x4ebbb
movl $0xce8, %esi # imm = 0xCE8
xorl %eax, %eax
callq 0x1f9b0
| ggml_get_rows_back:
push r15
push r14
push r12
push rbx
push rax
cmp qword ptr [rsi+20h], 1
jnz short loc_23575
mov r14, rsi
cmp qword ptr [rsi+28h], 1
jnz short loc_23575
mov r15, rcx
mov rbx, rdx
mov r12, rdi
mov rdi, rdx
call _ggml_is_vector
test al, al
jz short loc_23575
cmp dword ptr [rbx], 1Ah
jnz short loc_23575
cmp qword ptr [r15+20h], 1
jnz short loc_23591
cmp qword ptr [r15+28h], 1
jnz short loc_23591
mov rdx, [r14+10h]
cmp rdx, [r15+10h]
jnz short loc_23591
mov rcx, [r15+18h]
mov rdi, r12
xor esi, esi
call _ggml_new_tensor_2d
mov dword ptr [rax+50h], 26h ; '&'
mov [rax+98h], r14
mov [rax+0A0h], rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
loc_23575:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlIsMatrixAG; "ggml_is_matrix(a) && ggml_is_vector(b) "...
mov esi, 0CE7h
jmp short loc_235AB
loc_23591:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlIsMatrixCA; "ggml_is_matrix(c) && (a->ne[0] == c->ne"...
mov esi, 0CE8h
loc_235AB:
xor eax, eax
call _ggml_abort
| long long ggml_get_rows_back(
long long a1,
_QWORD *a2,
_QWORD *a3,
_QWORD *a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
char v14; // al
long long v17; // rdx
long long result; // rax
const char *v19; // rcx
int v20; // esi
char v21; // [rsp-8h] [rbp-28h]
v21 = v14;
if ( a2[4] != 1LL || a2[5] != 1LL || !ggml_is_vector(a3) || *(_DWORD *)a3 != 26 )
{
v19 = "ggml_is_matrix(a) && ggml_is_vector(b) && b->type == GGML_TYPE_I32";
v20 = 3303;
goto LABEL_11;
}
if ( a4[4] != 1LL || a4[5] != 1LL || (v17 = a2[2], v17 != a4[2]) )
{
v19 = "ggml_is_matrix(c) && (a->ne[0] == c->ne[0])";
v20 = 3304;
LABEL_11:
ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
v20,
(long long)"GGML_ASSERT(%s) failed",
(long long)v19,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
a12,
a13,
a14,
v21);
}
result = ggml_new_tensor_2d(a1, 0LL, v17, a4[3]);
*(_DWORD *)(result + 80) = 38;
*(_QWORD *)(result + 152) = a2;
*(_QWORD *)(result + 160) = a3;
return result;
}
| ggml_get_rows_back:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
CMP qword ptr [RSI + 0x20],0x1
JNZ 0x00123575
MOV R14,RSI
CMP qword ptr [RSI + 0x28],0x1
JNZ 0x00123575
MOV R15,RCX
MOV RBX,RDX
MOV R12,RDI
MOV RDI,RDX
CALL 0x0011f6d0
TEST AL,AL
JZ 0x00123575
CMP dword ptr [RBX],0x1a
JNZ 0x00123575
CMP qword ptr [R15 + 0x20],0x1
JNZ 0x00123591
CMP qword ptr [R15 + 0x28],0x1
JNZ 0x00123591
MOV RDX,qword ptr [R14 + 0x10]
CMP RDX,qword ptr [R15 + 0x10]
JNZ 0x00123591
MOV RCX,qword ptr [R15 + 0x18]
MOV RDI,R12
XOR ESI,ESI
CALL 0x0011f000
MOV dword ptr [RAX + 0x50],0x26
MOV qword ptr [RAX + 0x98],R14
MOV qword ptr [RAX + 0xa0],RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
LAB_00123575:
LEA RDI,[0x14e583]
LEA RDX,[0x14e5d5]
LEA RCX,[0x14eb78]
MOV ESI,0xce7
JMP 0x001235ab
LAB_00123591:
LEA RDI,[0x14e583]
LEA RDX,[0x14e5d5]
LEA RCX,[0x14ebbb]
MOV ESI,0xce8
LAB_001235ab:
XOR EAX,EAX
CALL 0x0011f9b0
|
void ggml_get_rows_back(int8 param_1,long param_2,int *param_3,long param_4)
{
char cVar1;
long lVar2;
char *pcVar3;
int8 uVar4;
if ((*(long *)(param_2 + 0x20) == 1) && (*(long *)(param_2 + 0x28) == 1)) {
cVar1 = ggml_is_vector(param_3);
if ((cVar1 != '\0') && (*param_3 == 0x1a)) {
if (((*(long *)(param_4 + 0x20) == 1) && (*(long *)(param_4 + 0x28) == 1)) &&
(*(long *)(param_2 + 0x10) == *(long *)(param_4 + 0x10))) {
lVar2 = ggml_new_tensor_2d(param_1,0,*(long *)(param_2 + 0x10),
*(int8 *)(param_4 + 0x18));
*(int4 *)(lVar2 + 0x50) = 0x26;
*(long *)(lVar2 + 0x98) = param_2;
*(int **)(lVar2 + 0xa0) = param_3;
return;
}
pcVar3 = "ggml_is_matrix(c) && (a->ne[0] == c->ne[0])";
uVar4 = 0xce8;
goto LAB_001235ab;
}
}
pcVar3 = "ggml_is_matrix(a) && ggml_is_vector(b) && b->type == GGML_TYPE_I32";
uVar4 = 0xce7;
LAB_001235ab:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
uVar4,"GGML_ASSERT(%s) failed",pcVar3);
}
| |
48,209 | ggml_get_rows_back | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c | struct ggml_tensor * ggml_get_rows_back(
struct ggml_context * ctx,
struct ggml_tensor * a,
struct ggml_tensor * b,
struct ggml_tensor * c) {
GGML_ASSERT(ggml_is_matrix(a) && ggml_is_vector(b) && b->type == GGML_TYPE_I32);
GGML_ASSERT(ggml_is_matrix(c) && (a->ne[0] == c->ne[0]));
// TODO: implement non F32 return
//struct ggml_tensor * result = ggml_new_tensor_2d(ctx, a->type, a->ne[0], b->ne[0]);
struct ggml_tensor * result = ggml_new_tensor_2d(ctx, GGML_TYPE_F32, c->ne[0], c->ne[1]);
result->op = GGML_OP_GET_ROWS_BACK;
result->src[0] = a;
result->src[1] = b;
return result;
} | O3 | c | ggml_get_rows_back:
pushq %r14
pushq %rbx
subq $0x18, %rsp
cmpq $0x1, 0x20(%rsi)
jne 0x1cd72
movq %rsi, %r14
cmpq $0x1, 0x28(%rsi)
jne 0x1cd72
movq %rdx, %rbx
cmpq $0x1, 0x18(%rdx)
jne 0x1cd72
cmpq $0x1, 0x20(%rbx)
jne 0x1cd72
cmpq $0x1, 0x28(%rbx)
jne 0x1cd72
cmpl $0x1a, (%rbx)
jne 0x1cd72
cmpq $0x1, 0x20(%rcx)
jne 0x1cd8e
cmpq $0x1, 0x28(%rcx)
jne 0x1cd8e
movq 0x10(%r14), %rax
cmpq 0x10(%rcx), %rax
jne 0x1cd8e
movq 0x18(%rcx), %rdx
movq %rsp, %rcx
movq %rax, (%rcx)
movq %rdx, 0x8(%rcx)
xorl %esi, %esi
movl $0x2, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x1a57f
movl $0x26, 0x50(%rax)
movq %r14, 0x98(%rax)
movq %rbx, 0xa0(%rax)
addq $0x18, %rsp
popq %rbx
popq %r14
retq
leaq 0x2f89a(%rip), %rdi # 0x4c613
leaq 0x2f8e5(%rip), %rdx # 0x4c665
leaq 0x2fe81(%rip), %rcx # 0x4cc08
movl $0xce7, %esi # imm = 0xCE7
jmp 0x1cda8
leaq 0x2f87e(%rip), %rdi # 0x4c613
leaq 0x2f8c9(%rip), %rdx # 0x4c665
leaq 0x2fea8(%rip), %rcx # 0x4cc4b
movl $0xce8, %esi # imm = 0xCE8
xorl %eax, %eax
callq 0x17cd0
| ggml_get_rows_back:
push r14
push rbx
sub rsp, 18h
cmp qword ptr [rsi+20h], 1
jnz short loc_1CD72
mov r14, rsi
cmp qword ptr [rsi+28h], 1
jnz short loc_1CD72
mov rbx, rdx
cmp qword ptr [rdx+18h], 1
jnz short loc_1CD72
cmp qword ptr [rbx+20h], 1
jnz short loc_1CD72
cmp qword ptr [rbx+28h], 1
jnz short loc_1CD72
cmp dword ptr [rbx], 1Ah
jnz short loc_1CD72
cmp qword ptr [rcx+20h], 1
jnz short loc_1CD8E
cmp qword ptr [rcx+28h], 1
jnz short loc_1CD8E
mov rax, [r14+10h]
cmp rax, [rcx+10h]
jnz short loc_1CD8E
mov rdx, [rcx+18h]
mov rcx, rsp
mov [rcx], rax
mov [rcx+8], rdx
xor esi, esi
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
mov dword ptr [rax+50h], 26h ; '&'
mov [rax+98h], r14
mov [rax+0A0h], rbx
add rsp, 18h
pop rbx
pop r14
retn
loc_1CD72:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlIsMatrixAG; "ggml_is_matrix(a) && ggml_is_vector(b) "...
mov esi, 0CE7h
jmp short loc_1CDA8
loc_1CD8E:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlIsMatrixCA; "ggml_is_matrix(c) && (a->ne[0] == c->ne"...
mov esi, 0CE8h
loc_1CDA8:
xor eax, eax
call _ggml_abort
| long long ggml_get_rows_back(long long a1, _QWORD *a2, long long a3, _QWORD *a4, int a5, int a6, double a7)
{
long long v8; // rdx
long long result; // rax
const char *v10; // rcx
int v11; // esi
long long v12[5]; // [rsp+0h] [rbp-28h] BYREF
if ( a2[4] != 1LL
|| a2[5] != 1LL
|| *(_QWORD *)(a3 + 24) != 1LL
|| *(_QWORD *)(a3 + 32) != 1LL
|| *(_QWORD *)(a3 + 40) != 1LL
|| *(_DWORD *)a3 != 26 )
{
v10 = "ggml_is_matrix(a) && ggml_is_vector(b) && b->type == GGML_TYPE_I32";
v11 = 3303;
goto LABEL_13;
}
if ( a4[4] != 1LL || a4[5] != 1LL || a2[2] != a4[2] )
{
v10 = "ggml_is_matrix(c) && (a->ne[0] == c->ne[0])";
v11 = 3304;
LABEL_13:
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
v11,
(unsigned int)"GGML_ASSERT(%s) failed",
(_DWORD)v10,
a5,
a6);
}
v8 = a4[3];
v12[0] = a2[2];
v12[1] = v8;
result = ggml_new_tensor_impl(a1, 0, 2u, v12, 0LL, 0LL, a7);
*(_DWORD *)(result + 80) = 38;
*(_QWORD *)(result + 152) = a2;
*(_QWORD *)(result + 160) = a3;
return result;
}
| ggml_get_rows_back:
PUSH R14
PUSH RBX
SUB RSP,0x18
CMP qword ptr [RSI + 0x20],0x1
JNZ 0x0011cd72
MOV R14,RSI
CMP qword ptr [RSI + 0x28],0x1
JNZ 0x0011cd72
MOV RBX,RDX
CMP qword ptr [RDX + 0x18],0x1
JNZ 0x0011cd72
CMP qword ptr [RBX + 0x20],0x1
JNZ 0x0011cd72
CMP qword ptr [RBX + 0x28],0x1
JNZ 0x0011cd72
CMP dword ptr [RBX],0x1a
JNZ 0x0011cd72
CMP qword ptr [RCX + 0x20],0x1
JNZ 0x0011cd8e
CMP qword ptr [RCX + 0x28],0x1
JNZ 0x0011cd8e
MOV RAX,qword ptr [R14 + 0x10]
CMP RAX,qword ptr [RCX + 0x10]
JNZ 0x0011cd8e
MOV RDX,qword ptr [RCX + 0x18]
MOV RCX,RSP
MOV qword ptr [RCX],RAX
MOV qword ptr [RCX + 0x8],RDX
XOR ESI,ESI
MOV EDX,0x2
XOR R8D,R8D
XOR R9D,R9D
CALL 0x0011a57f
MOV dword ptr [RAX + 0x50],0x26
MOV qword ptr [RAX + 0x98],R14
MOV qword ptr [RAX + 0xa0],RBX
ADD RSP,0x18
POP RBX
POP R14
RET
LAB_0011cd72:
LEA RDI,[0x14c613]
LEA RDX,[0x14c665]
LEA RCX,[0x14cc08]
MOV ESI,0xce7
JMP 0x0011cda8
LAB_0011cd8e:
LEA RDI,[0x14c613]
LEA RDX,[0x14c665]
LEA RCX,[0x14cc4b]
MOV ESI,0xce8
LAB_0011cda8:
XOR EAX,EAX
CALL 0x00117cd0
|
void ggml_get_rows_back(int8 param_1,long param_2,int *param_3,long param_4)
{
long lVar1;
char *pcVar2;
int8 uVar3;
long local_28;
int8 local_20;
if (((((*(long *)(param_2 + 0x20) == 1) && (*(long *)(param_2 + 0x28) == 1)) &&
(*(long *)(param_3 + 6) == 1)) &&
((*(long *)(param_3 + 8) == 1 && (*(long *)(param_3 + 10) == 1)))) && (*param_3 == 0x1a)) {
if (((*(long *)(param_4 + 0x20) == 1) && (*(long *)(param_4 + 0x28) == 1)) &&
(local_28 = *(long *)(param_2 + 0x10), local_28 == *(long *)(param_4 + 0x10))) {
local_20 = *(int8 *)(param_4 + 0x18);
lVar1 = ggml_new_tensor_impl(param_1,0,2,&local_28,0,0);
*(int4 *)(lVar1 + 0x50) = 0x26;
*(long *)(lVar1 + 0x98) = param_2;
*(int **)(lVar1 + 0xa0) = param_3;
return;
}
pcVar2 = "ggml_is_matrix(c) && (a->ne[0] == c->ne[0])";
uVar3 = 0xce8;
}
else {
pcVar2 = "ggml_is_matrix(a) && ggml_is_vector(b) && b->type == GGML_TYPE_I32";
uVar3 = 0xce7;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
uVar3,"GGML_ASSERT(%s) failed",pcVar2);
}
| |
48,210 | raw_to_der | msxemulator/build_O3/_deps/picotool-src/bintool/mbedtls_wrapper.c | void raw_to_der(signature_t *sig) {
// todo make this der - currently ber
unsigned char r[33];
r[0] = 0;
memcpy(r+1, sig->bytes, 32);
unsigned char s[33];
s[0] = 0;
memcpy(s+1, sig->bytes + 32, 32);
int8_t r_len_dec = 0;
if (r[1] & 0x80) {
// Needs padding
r_len_dec = -1;
} else {
for (int i=1; i < 32; i++) {
if (r[i] != 0) {
break;
}
r_len_dec++;
}
}
int8_t s_len_dec = 0;
if (s[1] & 0x80) {
// Needs padding
s_len_dec = -1;
} else {
for (int i=1; i < 32; i++) {
if (s[i] != 0) {
break;
}
s_len_dec++;
}
}
// Write it out
sig->der[0] = 0x30;
sig->der[1] = 68 - r_len_dec - s_len_dec;
sig->der[2] = 0x02;
sig->der[3] = 32 - r_len_dec;
uint8_t b2 = sig->der[3];
memcpy(sig->der + 4, r + 1 + r_len_dec, b2);
sig->der[4 + b2] = 0x02;
sig->der[5 + b2] = 32 - s_len_dec;
uint8_t b3 = sig->der[5 + b2];
memcpy(sig->der + 6 + b2, s + 1 + s_len_dec, b3);
sig->der_len = 6 + b2 + b3;
} | O3 | c | raw_to_der:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
xorl %eax, %eax
movb %al, (%rsp)
movups (%rdi), %xmm0
movups 0x10(%rdi), %xmm1
movups %xmm0, 0x1(%rsp)
movups %xmm1, 0x11(%rsp)
movb %al, 0x30(%rsp)
movups 0x20(%rdi), %xmm0
movups 0x30(%rdi), %xmm1
movups %xmm0, 0x31(%rsp)
movups %xmm1, 0x41(%rsp)
movl $0xffffffff, %r12d # imm = 0xFFFFFFFF
cmpb %al, 0x1(%rsp)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
js 0x7913f
xorl %eax, %eax
cmpb $0x0, 0x1(%rsp,%rax)
jne 0x7913c
incq %rax
cmpq $0x1f, %rax
jne 0x7912a
movb $0x1f, %al
movzbl %al, %eax
leaq 0x1(%rsp), %rsi
leaq 0x31(%rsp), %r14
cmpb $0x0, (%r14)
js 0x79167
xorl %ecx, %ecx
cmpb $0x0, 0x31(%rsp,%rcx)
jne 0x79163
incq %rcx
cmpq $0x1f, %rcx
jne 0x79151
movb $0x1f, %cl
movzbl %cl, %r12d
movb $0x30, 0x40(%rbx)
leal (%r12,%rax), %ecx
movb $0x44, %dl
subb %cl, %dl
movb %dl, 0x41(%rbx)
movb $0x2, %bpl
movb %bpl, 0x42(%rbx)
movb $0x20, %r13b
movb $0x20, %cl
subb %al, %cl
movb %cl, 0x43(%rbx)
leaq 0x44(%rbx), %rdi
cltq
addq %rax, %rsi
movzbl %cl, %r15d
movq %r15, %rdx
callq 0xf3a0
movb %bpl, 0x44(%r15,%rbx)
subb %r12b, %r13b
movb %r13b, 0x45(%r15,%rbx)
leaq (%rbx,%r15), %rdi
addq $0x46, %rdi
movslq %r12d, %rax
addq %rax, %r14
movzbl %r13b, %r12d
movq %r14, %rsi
movq %r12, %rdx
callq 0xf3a0
leal (%r15,%r12), %eax
addl $0x6, %eax
movq %rax, 0xd0(%rbx)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| raw_to_der:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov rbx, rdi
xor eax, eax
mov [rsp+88h+var_88], al
movups xmm0, xmmword ptr [rdi]
movups xmm1, xmmword ptr [rdi+10h]
movups [rsp+88h+var_87], xmm0
movups [rsp+88h+var_77], xmm1
mov [rsp+88h+var_58], al
movups xmm0, xmmword ptr [rdi+20h]
movups xmm1, xmmword ptr [rdi+30h]
movups [rsp+88h+var_57], xmm0
movups [rsp+88h+var_47], xmm1
mov r12d, 0FFFFFFFFh
cmp byte ptr [rsp+88h+var_87], al
mov eax, 0FFFFFFFFh
js short loc_7913F
xor eax, eax
loc_7912A:
cmp byte ptr [rsp+rax+88h+var_87], 0
jnz short loc_7913C
inc rax
cmp rax, 1Fh
jnz short loc_7912A
mov al, 1Fh
loc_7913C:
movzx eax, al
loc_7913F:
lea rsi, [rsp+88h+var_87]
lea r14, [rsp+88h+var_57]
cmp byte ptr [r14], 0
js short loc_79167
xor ecx, ecx
loc_79151:
cmp byte ptr [rsp+rcx+88h+var_57], 0
jnz short loc_79163
inc rcx
cmp rcx, 1Fh
jnz short loc_79151
mov cl, 1Fh
loc_79163:
movzx r12d, cl
loc_79167:
mov byte ptr [rbx+40h], 30h ; '0'
lea ecx, [r12+rax]
mov dl, 44h ; 'D'
sub dl, cl
mov [rbx+41h], dl
mov bpl, 2
mov [rbx+42h], bpl
mov r13b, 20h ; ' '
mov cl, 20h ; ' '
sub cl, al
mov [rbx+43h], cl
lea rdi, [rbx+44h]
cdqe
add rsi, rax
movzx r15d, cl
mov rdx, r15
call _memcpy
mov [r15+rbx+44h], bpl
sub r13b, r12b
mov [r15+rbx+45h], r13b
lea rdi, [rbx+r15]
add rdi, 46h ; 'F'
movsxd rax, r12d
add r14, rax
movzx r12d, r13b
mov rsi, r14
mov rdx, r12
call _memcpy
lea eax, [r15+r12]
add eax, 6
mov [rbx+0D0h], rax
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long raw_to_der(long long a1)
{
__int128 v1; // xmm1
__int128 v2; // xmm1
int v3; // r12d
long long v4; // rax
long long v5; // rcx
long long v6; // r15
char *v7; // r14
long long v8; // r12
long long result; // rax
_OWORD v10[2]; // [rsp+1h] [rbp-87h] BYREF
char v11; // [rsp+30h] [rbp-58h]
_OWORD v12[5]; // [rsp+31h] [rbp-57h] BYREF
v1 = *(_OWORD *)(a1 + 16);
v10[0] = *(_OWORD *)a1;
v10[1] = v1;
v11 = 0;
v2 = *(_OWORD *)(a1 + 48);
v12[0] = *(_OWORD *)(a1 + 32);
v12[1] = v2;
v3 = -1;
LODWORD(v4) = -1;
if ( SLOBYTE(v10[0]) >= 0 )
{
v4 = 0LL;
while ( !*((_BYTE *)v10 + v4) )
{
if ( ++v4 == 31 )
{
LOBYTE(v4) = 31;
break;
}
}
LODWORD(v4) = (unsigned __int8)v4;
}
if ( SLOBYTE(v12[0]) >= 0 )
{
v5 = 0LL;
while ( !*((_BYTE *)v12 + v5) )
{
if ( ++v5 == 31 )
{
LOBYTE(v5) = 31;
break;
}
}
v3 = (unsigned __int8)v5;
}
*(_BYTE *)(a1 + 64) = 48;
*(_BYTE *)(a1 + 65) = 68 - (v3 + v4);
*(_BYTE *)(a1 + 66) = 2;
*(_BYTE *)(a1 + 67) = 32 - v4;
v6 = (unsigned __int8)(32 - v4);
memcpy(a1 + 68, (char *)v10 + (int)v4, v6);
*(_BYTE *)(v6 + a1 + 68) = 2;
*(_BYTE *)(v6 + a1 + 69) = 32 - v3;
v7 = (char *)v12 + v3;
v8 = (unsigned __int8)(32 - v3);
memcpy(a1 + v6 + 70, v7, v8);
result = (unsigned int)(v6 + v8 + 6);
*(_QWORD *)(a1 + 208) = result;
return result;
}
| raw_to_der:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV RBX,RDI
XOR EAX,EAX
MOV byte ptr [RSP],AL
MOVUPS XMM0,xmmword ptr [RDI]
MOVUPS XMM1,xmmword ptr [RDI + 0x10]
MOVUPS xmmword ptr [RSP + 0x1],XMM0
MOVUPS xmmword ptr [RSP + 0x11],XMM1
MOV byte ptr [RSP + 0x30],AL
MOVUPS XMM0,xmmword ptr [RDI + 0x20]
MOVUPS XMM1,xmmword ptr [RDI + 0x30]
MOVUPS xmmword ptr [RSP + 0x31],XMM0
MOVUPS xmmword ptr [RSP + 0x41],XMM1
MOV R12D,0xffffffff
CMP byte ptr [RSP + 0x1],AL
MOV EAX,0xffffffff
JS 0x0017913f
XOR EAX,EAX
LAB_0017912a:
CMP byte ptr [RSP + RAX*0x1 + 0x1],0x0
JNZ 0x0017913c
INC RAX
CMP RAX,0x1f
JNZ 0x0017912a
MOV AL,0x1f
LAB_0017913c:
MOVZX EAX,AL
LAB_0017913f:
LEA RSI,[RSP + 0x1]
LEA R14,[RSP + 0x31]
CMP byte ptr [R14],0x0
JS 0x00179167
XOR ECX,ECX
LAB_00179151:
CMP byte ptr [RSP + RCX*0x1 + 0x31],0x0
JNZ 0x00179163
INC RCX
CMP RCX,0x1f
JNZ 0x00179151
MOV CL,0x1f
LAB_00179163:
MOVZX R12D,CL
LAB_00179167:
MOV byte ptr [RBX + 0x40],0x30
LEA ECX,[R12 + RAX*0x1]
MOV DL,0x44
SUB DL,CL
MOV byte ptr [RBX + 0x41],DL
MOV BPL,0x2
MOV byte ptr [RBX + 0x42],BPL
MOV R13B,0x20
MOV CL,0x20
SUB CL,AL
MOV byte ptr [RBX + 0x43],CL
LEA RDI,[RBX + 0x44]
CDQE
ADD RSI,RAX
MOVZX R15D,CL
MOV RDX,R15
CALL 0x0010f3a0
MOV byte ptr [R15 + RBX*0x1 + 0x44],BPL
SUB R13B,R12B
MOV byte ptr [R15 + RBX*0x1 + 0x45],R13B
LEA RDI,[RBX + R15*0x1]
ADD RDI,0x46
MOVSXD RAX,R12D
ADD R14,RAX
MOVZX R12D,R13B
MOV RSI,R14
MOV RDX,R12
CALL 0x0010f3a0
LEA EAX,[R15 + R12*0x1]
ADD EAX,0x6
MOV qword ptr [RBX + 0xd0],RAX
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void raw_to_der(int8 *param_1)
{
int8 uVar1;
int8 uVar2;
uint uVar3;
long lVar4;
byte bVar5;
uint uVar6;
byte bVar7;
ulong __n;
int8 local_87;
int8 uStack_7f;
int8 local_77;
int8 uStack_6f;
int1 local_58;
int8 local_57;
int8 uStack_4f;
int8 local_47;
int8 uStack_3f;
local_87 = *param_1;
uVar1 = local_87;
uStack_7f = param_1[1];
local_77 = param_1[2];
uStack_6f = param_1[3];
local_58 = 0;
local_57 = param_1[4];
uVar2 = local_57;
uStack_4f = param_1[5];
local_47 = param_1[6];
uStack_3f = param_1[7];
uVar6 = 0xffffffff;
local_87._0_1_ = (char)*param_1;
uVar3 = 0xffffffff;
if (-1 < (char)local_87) {
lVar4 = 0;
do {
if (*(char *)((long)&local_87 + lVar4) != '\0') goto LAB_0017913c;
lVar4 = lVar4 + 1;
} while (lVar4 != 0x1f);
lVar4 = 0x1f;
LAB_0017913c:
uVar3 = (uint)lVar4 & 0xff;
}
local_57._0_1_ = (char)param_1[4];
if (-1 < (char)local_57) {
lVar4 = 0;
do {
if (*(char *)((long)&local_57 + lVar4) != '\0') goto LAB_00179163;
lVar4 = lVar4 + 1;
} while (lVar4 != 0x1f);
lVar4 = 0x1f;
LAB_00179163:
uVar6 = (uint)lVar4 & 0xff;
}
*(int1 *)(param_1 + 8) = 0x30;
*(char *)((long)param_1 + 0x41) = 'D' - ((char)uVar6 + (char)uVar3);
*(int1 *)((long)param_1 + 0x42) = 2;
bVar5 = 0x20 - (char)uVar3;
*(byte *)((long)param_1 + 0x43) = bVar5;
__n = (ulong)bVar5;
local_87 = uVar1;
local_57 = uVar2;
memcpy((void *)((long)param_1 + 0x44),(void *)((long)&local_87 + (long)(int)uVar3),__n);
*(int1 *)(__n + 0x44 + (long)param_1) = 2;
bVar7 = 0x20 - (char)uVar6;
*(byte *)(__n + 0x45 + (long)param_1) = bVar7;
memcpy((void *)((long)param_1 + __n + 0x46),(void *)((long)&local_57 + (long)(int)uVar6),
(ulong)bVar7);
param_1[0x1a] = (ulong)((uint)bVar5 + (uint)bVar7 + 6);
return;
}
| |
48,211 | my_uca_alloc_contractions | eloqsql/strings/ctype-uca.c | static my_bool
my_uca_alloc_contractions(MY_CONTRACTIONS *contractions,
MY_CHARSET_LOADER *loader, size_t n)
{
size_t size= n * sizeof(MY_CONTRACTION);
if (!(contractions->item= (loader->once_alloc)(size)) ||
!(contractions->flags= (char *) (loader->once_alloc)(MY_UCA_CNT_FLAG_SIZE)))
return 1;
memset(contractions->item, 0, size);
memset(contractions->flags, 0, MY_UCA_CNT_FLAG_SIZE);
return 0;
} | O0 | c | my_uca_alloc_contractions:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
imulq $0x58, -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq 0x80(%rax), %rax
movq -0x28(%rbp), %rdi
callq *%rax
movq -0x10(%rbp), %rcx
movq %rax, 0x8(%rcx)
cmpq $0x0, %rax
je 0x47d89
movq -0x18(%rbp), %rax
movl $0x1000, %edi # imm = 0x1000
callq *0x80(%rax)
movq -0x10(%rbp), %rcx
movq %rax, 0x10(%rcx)
cmpq $0x0, %rax
jne 0x47d8f
movb $0x1, -0x1(%rbp)
jmp 0x47dba
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x28(%rbp), %rdx
xorl %esi, %esi
callq 0x2a190
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
xorl %esi, %esi
movl $0x1000, %edx # imm = 0x1000
callq 0x2a190
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_uca_alloc_contractions:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
imul rax, [rbp+var_20], 58h ; 'X'
mov [rbp+var_28], rax
mov rax, [rbp+var_18]
mov rax, [rax+80h]
mov rdi, [rbp+var_28]
call rax
mov rcx, [rbp+var_10]
mov [rcx+8], rax
cmp rax, 0
jz short loc_47D89
mov rax, [rbp+var_18]
mov edi, 1000h
call qword ptr [rax+80h]
mov rcx, [rbp+var_10]
mov [rcx+10h], rax
cmp rax, 0
jnz short loc_47D8F
loc_47D89:
mov [rbp+var_1], 1
jmp short loc_47DBA
loc_47D8F:
mov rax, [rbp+var_10]
mov rdi, [rax+8]
mov rdx, [rbp+var_28]
xor esi, esi
call _memset
mov rax, [rbp+var_10]
mov rdi, [rax+10h]
xor esi, esi
mov edx, 1000h
call _memset
mov [rbp+var_1], 0
loc_47DBA:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
| char my_uca_alloc_contractions(long long a1, long long a2, long long a3)
{
long long v3; // rax
long long v4; // rax
long long v6; // [rsp+8h] [rbp-28h]
v6 = 88 * a3;
v3 = (*(long long ( **)(long long))(a2 + 128))(88 * a3);
*(_QWORD *)(a1 + 8) = v3;
if ( !v3 )
return 1;
v4 = (*(long long ( **)(long long))(a2 + 128))(4096LL);
*(_QWORD *)(a1 + 16) = v4;
if ( !v4 )
return 1;
memset(*(_QWORD *)(a1 + 8), 0LL, v6);
memset(*(_QWORD *)(a1 + 16), 0LL, 4096LL);
return 0;
}
| my_uca_alloc_contractions:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
IMUL RAX,qword ptr [RBP + -0x20],0x58
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x80]
MOV RDI,qword ptr [RBP + -0x28]
CALL RAX
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RCX + 0x8],RAX
CMP RAX,0x0
JZ 0x00147d89
MOV RAX,qword ptr [RBP + -0x18]
MOV EDI,0x1000
CALL qword ptr [RAX + 0x80]
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RCX + 0x10],RAX
CMP RAX,0x0
JNZ 0x00147d8f
LAB_00147d89:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00147dba
LAB_00147d8f:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x8]
MOV RDX,qword ptr [RBP + -0x28]
XOR ESI,ESI
CALL 0x0012a190
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x10]
XOR ESI,ESI
MOV EDX,0x1000
CALL 0x0012a190
MOV byte ptr [RBP + -0x1],0x0
LAB_00147dba:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1 my_uca_alloc_contractions(long param_1,long param_2,long param_3)
{
long lVar1;
lVar1 = (**(code **)(param_2 + 0x80))(param_3 * 0x58);
*(long *)(param_1 + 8) = lVar1;
if (lVar1 != 0) {
lVar1 = (**(code **)(param_2 + 0x80))(0x1000);
*(long *)(param_1 + 0x10) = lVar1;
if (lVar1 != 0) {
memset(*(void **)(param_1 + 8),0,param_3 * 0x58);
memset(*(void **)(param_1 + 0x10),0,0x1000);
return 0;
}
}
return 1;
}
| |
48,212 | decltype(from_json_array_impl(fp, fp0, nlohmann::json_abi_v3_11_3::detail::priority_tag<3u>{}), fp.get<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::allocator<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>>>::value_type>(), (void)()) nlohmann::json_abi_v3_11_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>, 0>(nlohmann::json_abi_v3_11_3::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::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>&) | monkey531[P]llama/common/json.hpp | auto from_json(const BasicJsonType& j, ConstructibleArrayType& arr)
-> decltype(from_json_array_impl(j, arr, priority_tag<3> {}),
j.template get<typename ConstructibleArrayType::value_type>(),
void())
{
if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
{
JSON_THROW(type_error::create(302, concat("type must be array, but is ", j.type_name()), &j));
}
from_json_array_impl(j, arr, priority_tag<3> {});
} | O2 | cpp | decltype(from_json_array_impl(fp, fp0, nlohmann::json_abi_v3_11_3::detail::priority_tag<3u>{}), fp.get<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::allocator<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>>>::value_type>(), (void)()) nlohmann::json_abi_v3_11_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>, 0>(nlohmann::json_abi_v3_11_3::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::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %r14
cmpb $0x2, (%rdi)
jne 0x92a59
movq %r14, %rdi
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x92b3a
pushq $0x20
popq %rdi
callq 0x24460
movq %rax, %rbx
movq %r14, %rdi
callq 0x43ea6
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x27d67(%rip), %rsi # 0xba7e2
leaq 0x10(%rsp), %rdi
callq 0x92adc
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x12e, %esi # imm = 0x12E
movq %r14, %rcx
callq 0x63cea
xorl %ebp, %ebp
leaq 0x6c492(%rip), %rsi # 0xfef38
leaq -0x52077(%rip), %rdx # 0x40a36
movq %rbx, %rdi
callq 0x24ef0
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x251d8
testb %bpl, %bpl
jne 0x92acc
jmp 0x92ad4
movq %rax, %r14
movq %rbx, %rdi
callq 0x24680
movq %r14, %rdi
callq 0x24f80
| _ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEES5_ISF_SaISF_EETnNSt9enable_ifIXaaaaaaaasr27is_constructible_array_typeIT_T0_EE5valuentsr28is_constructible_object_typeISJ_SK_EE5valuentsr28is_constructible_string_typeISJ_SK_EE5valuentsr3std7is_sameISK_NSJ_8binary_tEEE5valuentsr13is_basic_jsonISK_EE5valueEiE4typeELi0EEEDTcmcmcl20from_json_array_implfp_fp0_tlNS1_12priority_tagILj3EEEEEcldtfp_3getINSK_10value_typeEEEcvv_EERKSJ_RSK_:
push rbp; char
push r14; int
push rbx; int
sub rsp, 30h
mov r14, rdi
cmp byte ptr [rdi], 2
jnz short loc_92A59
mov rdi, r14
add rsp, 30h
pop rbx
pop r14
pop rbp
jmp _ZN8nlohmann16json_abi_v3_11_36detail20from_json_array_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEvRKT_RNSG_7array_tENS1_12priority_tagILj3EEE; nlohmann::json_abi_v3_11_3::detail::from_json_array_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> 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>::array_t &,nlohmann::json_abi_v3_11_3::detail::priority_tag<3u>)
loc_92A59:
push 20h ; ' '
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
lea rdx, [rsp+48h+var_40]
mov [rdx], rax
lea rsi, aTypeMustBeArra; "type must be array, but is "
lea rdi, [rsp+48h+var_38]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA28_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[28],char const*>(char const(&)[28],char const* &&)
mov bpl, 1
lea rdx, [rsp+48h+var_38]
mov rdi, rbx; this
mov esi, 12Eh; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rdi, [rsp+48h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_92ACC
jmp short loc_92AD4
mov r14, rax
loc_92ACC:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_92AD4:
mov rdi, r14
call __Unwind_Resume
| long long ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEES5_ISF_SaISF_EETnNSt9enable_ifIXaaaaaaaasr27is_constructible_array_typeIT_T0_EE5valuentsr28is_constructible_object_typeISJ_SK_EE5valuentsr28is_constructible_string_typeISJ_SK_EE5valuentsr3std7is_sameISK_NSJ_8binary_tEEE5valuentsr13is_basic_jsonISK_EE5valueEiE4typeELi0EEEDTcmcmcl20from_json_array_implfp_fp0_tlNS1_12priority_tagILj3EEEEEcldtfp_3getINSK_10value_typeEEEcvv_EERKSJ_RSK_(
unsigned __int8 *a1)
{
nlohmann::json_abi_v3_11_3::detail::type_error *exception; // rbx
_BYTE v3[56]; // [rsp+10h] [rbp-38h] BYREF
if ( *a1 != 2 )
{
exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name(a1);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[28],char const*>(
v3,
"type must be array, but is ");
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
exception,
302,
(long long)v3);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
return nlohmann::json_abi_v3_11_3::detail::from_json_array_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(a1);
}
| _ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEES5_ISF_SaISF_EETnNSt9enable_ifIXaaaaaaaasr27is_constructible_array_typeIT_T0_EE5valuentsr28is_constructible_object_typeISJ_SK_EE5valuentsr28is_constructible_string_typeISJ_SK_EE5valuentsr3std7is_sameISK_NSJ_8binary_tEEE5valuentsr13is_basic_jsonISK_EE5valueEiE4typeELi0EEEDTcmcmcl20from_json_array_implfp_fp0_tlNS1_12priority_tagILj3EEEEEcldtfp_3getINSK_10value_typeEEEcvv_EERKSJ_RSK_:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R14,RDI
CMP byte ptr [RDI],0x2
JNZ 0x00192a59
MOV RDI,R14
ADD RSP,0x30
POP RBX
POP R14
POP RBP
JMP 0x00192b3a
LAB_00192a59:
PUSH 0x20
POP RDI
CALL 0x00124460
MOV RBX,RAX
MOV RDI,R14
CALL 0x00143ea6
LEA RDX,[RSP + 0x8]
MOV qword ptr [RDX],RAX
LAB_00192a74:
LEA RSI,[0x1ba7e2]
LEA RDI,[RSP + 0x10]
CALL 0x00192adc
MOV BPL,0x1
LAB_00192a88:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0x12e
MOV RCX,R14
CALL 0x00163cea
XOR EBP,EBP
LEA RSI,[0x1fef38]
LEA RDX,[0x140a36]
MOV RDI,RBX
CALL 0x00124ef0
|
void _ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEES5_ISF_SaISF_EETnNSt9enable_ifIXaaaaaaaasr27is_constructible_array_typeIT_T0_EE5valuentsr28is_constructible_object_typeISJ_SK_EE5valuentsr28is_constructible_string_typeISJ_SK_EE5valuentsr3std7is_sameISK_NSJ_8binary_tEEE5valuentsr13is_basic_jsonISK_EE5valueEiE4typeELi0EEEDTcmcmcl20from_json_array_implfp_fp0_tlNS1_12priority_tagILj3EEEEEcldtfp_3getINSK_10value_typeEEEcvv_EERKSJ_RSK_
(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)
{
int8 uVar1;
char *local_40;
detail local_38 [32];
if (*param_1 ==
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x2) {
nlohmann::json_abi_v3_11_3::detail::
from_json_array_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(param_1);
return;
}
uVar1 = __cxa_allocate_exception(0x20);
local_40 = (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>
::type_name(param_1);
/* try { // try from 00192a74 to 00192a84 has its CatchHandler @ 00192ac9 */
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[28],char_const*>
(local_38,"type must be array, but is ",&local_40);
/* try { // try from 00192a88 to 00192ab4 has its CatchHandler @ 00192ab5 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar1,0x12e,local_38,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar1,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
| |
48,213 | my_rw_wrlock | eloqsql/mysys/thr_rwlock.c | int my_rw_wrlock(my_rw_lock_t *rwp)
{
pthread_mutex_lock(&rwp->lock);
rwp->waiters++; /* another writer queued */
my_rw_lock_assert_not_write_owner(rwp);
while (rwp->state)
pthread_cond_wait(&rwp->writers, &rwp->lock);
rwp->state = -1;
rwp->waiters--;
#ifdef SAFE_MUTEX
rwp->write_thread= pthread_self();
#endif
pthread_mutex_unlock(&rwp->lock);
return(0);
} | O0 | c | my_rw_wrlock:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x244a0
movq -0x8(%rbp), %rax
movl 0x8c(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x8c(%rax)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x88(%rax)
je 0x2c9c8
movq -0x8(%rbp), %rdi
addq $0x58, %rdi
movq -0x8(%rbp), %rsi
callq 0x24540
jmp 0x2c9a8
movq -0x8(%rbp), %rax
movl $0xffffffff, 0x88(%rax) # imm = 0xFFFFFFFF
movq -0x8(%rbp), %rax
movl 0x8c(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x8c(%rax)
movq -0x8(%rbp), %rdi
callq 0x24240
xorl %eax, %eax
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| my_rw_wrlock:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]
call _pthread_mutex_lock
mov rax, [rbp+var_8]
mov ecx, [rax+8Ch]
add ecx, 1
mov [rax+8Ch], ecx
loc_2C9A8:
mov rax, [rbp+var_8]
cmp dword ptr [rax+88h], 0
jz short loc_2C9C8
mov rdi, [rbp+var_8]
add rdi, 58h ; 'X'
mov rsi, [rbp+var_8]
call _pthread_cond_wait
jmp short loc_2C9A8
loc_2C9C8:
mov rax, [rbp+var_8]
mov dword ptr [rax+88h], 0FFFFFFFFh
mov rax, [rbp+var_8]
mov ecx, [rax+8Ch]
add ecx, 0FFFFFFFFh
mov [rax+8Ch], ecx
mov rdi, [rbp+var_8]
call _pthread_mutex_unlock
xor eax, eax
add rsp, 10h
pop rbp
retn
| long long my_rw_wrlock(long long a1)
{
pthread_mutex_lock(a1);
++*(_DWORD *)(a1 + 140);
while ( *(_DWORD *)(a1 + 136) )
pthread_cond_wait(a1 + 88, a1);
*(_DWORD *)(a1 + 136) = -1;
--*(_DWORD *)(a1 + 140);
pthread_mutex_unlock(a1);
return 0LL;
}
| my_rw_wrlock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001244a0
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x8c]
ADD ECX,0x1
MOV dword ptr [RAX + 0x8c],ECX
LAB_0012c9a8:
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x88],0x0
JZ 0x0012c9c8
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x58
MOV RSI,qword ptr [RBP + -0x8]
CALL 0x00124540
JMP 0x0012c9a8
LAB_0012c9c8:
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x88],0xffffffff
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x8c]
ADD ECX,-0x1
MOV dword ptr [RAX + 0x8c],ECX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00124240
XOR EAX,EAX
ADD RSP,0x10
POP RBP
RET
|
int8 my_rw_wrlock(pthread_mutex_t *param_1)
{
pthread_mutex_lock(param_1);
*(int *)((long)param_1 + 0x8c) = *(int *)((long)param_1 + 0x8c) + 1;
while (*(int *)((long)param_1 + 0x88) != 0) {
pthread_cond_wait((pthread_cond_t *)((long)param_1 + 0x58),param_1);
}
*(int4 *)((long)param_1 + 0x88) = 0xffffffff;
*(int *)((long)param_1 + 0x8c) = *(int *)((long)param_1 + 0x8c) + -1;
pthread_mutex_unlock(param_1);
return 0;
}
| |
48,214 | TestDCHECK() | ng-log[P]ng-log/src/logging_unittest.cc | void TestDCHECK() {
#if defined(NDEBUG)
DCHECK(1 == 2) << " DCHECK's shouldn't be compiled in normal mode";
#endif
DCHECK(1 == 1);
DCHECK_EQ(1, 1);
DCHECK_NE(1, 2);
DCHECK_GE(1, 1);
DCHECK_GE(2, 1);
DCHECK_LE(1, 1);
DCHECK_LE(1, 2);
DCHECK_GT(2, 1);
DCHECK_LT(1, 2);
auto* orig_ptr = new int64;
int64* ptr = DCHECK_NOTNULL(orig_ptr);
CHECK_EQ(ptr, orig_ptr);
delete orig_ptr;
} | O2 | cpp | TestDCHECK():
pushq %r14
pushq %rbx
subq $0xc8, %rsp
leaq 0x1d4c8(%rip), %rcx # 0x2caf5
movq %rsp, %rbx
pushq $0x1
popq %rdx
movq %rbx, %rdi
movl %edx, %esi
callq 0x14314
movq (%rbx), %rax
testq %rax, %rax
jne 0xf7fb
movq %rsp, %rdi
callq 0x14340
leaq 0x1d4a4(%rip), %rcx # 0x2cafc
movq %rsp, %rbx
pushq $0x1
popq %rsi
pushq $0x2
popq %rdx
movq %rbx, %rdi
callq 0x15e5f
movq (%rbx), %rax
testq %rax, %rax
jne 0xf83e
movq %rsp, %rdi
callq 0x14340
leaq 0x1d47f(%rip), %rcx # 0x2cb03
movq %rsp, %rbx
pushq $0x1
popq %rdx
movq %rbx, %rdi
movl %edx, %esi
callq 0x14b77
movq (%rbx), %rax
testq %rax, %rax
jne 0xf881
movq %rsp, %rdi
callq 0x14340
leaq 0x1d45b(%rip), %rcx # 0x2cb0a
movq %rsp, %rbx
pushq $0x2
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rdi
callq 0x14b77
movq (%rbx), %rax
testq %rax, %rax
jne 0xf8c4
movq %rsp, %rdi
callq 0x14340
leaq 0x1d436(%rip), %rcx # 0x2cb11
movq %rsp, %rbx
pushq $0x1
popq %rdx
movq %rbx, %rdi
movl %edx, %esi
callq 0x15e8a
movq (%rbx), %rax
testq %rax, %rax
jne 0xf907
movq %rsp, %rdi
callq 0x14340
leaq 0x1d412(%rip), %rcx # 0x2cb18
movq %rsp, %rbx
pushq $0x1
popq %rsi
pushq $0x2
popq %rdx
movq %rbx, %rdi
callq 0x15e8a
movq (%rbx), %rax
testq %rax, %rax
jne 0xf94a
movq %rsp, %rdi
callq 0x14340
leaq 0x1d3ed(%rip), %rcx # 0x2cb1f
movq %rsp, %rbx
pushq $0x2
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rdi
callq 0x15eb5
movq (%rbx), %rax
testq %rax, %rax
jne 0xf98d
movq %rsp, %rdi
callq 0x14340
leaq 0x1d3c7(%rip), %rcx # 0x2cb25
movq %rsp, %rbx
pushq $0x1
popq %rsi
pushq $0x2
popq %rdx
movq %rbx, %rdi
callq 0x15ee0
movq (%rbx), %rax
testq %rax, %rax
jne 0xf9d0
movq %rsp, %rbx
movq %rbx, %rdi
callq 0x14340
pushq $0x8
popq %rdi
callq 0x9e60
movq %rax, (%rbx)
leaq 0x1b974(%rip), %rdi # 0x2b10c
leaq 0x1d3d0(%rip), %rdx # 0x2cb6f
movq %rsp, %rbx
movl $0x2bf, %esi # imm = 0x2BF
movq %rbx, %rcx
callq 0x15f7f
movq (%rax), %rax
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x1d3cd(%rip), %rcx # 0x2cb8e
leaq 0x10(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rdx
callq 0x16004
movq (%r14), %rax
testq %rax, %rax
jne 0xfa13
leaq 0x10(%rsp), %rdi
callq 0x14340
movq (%rsp), %rdi
callq 0x87f0
addq $0xc8, %rsp
popq %rbx
popq %r14
retq
andq $0x0, (%rsp)
leaq 0x8(%rsp), %rcx
movq %rax, (%rcx)
andq $0x0, 0xc0(%rsp)
leaq 0x1b8f4(%rip), %rsi # 0x2b10c
leaq 0x18(%rsp), %rdi
movl $0x2b5, %edx # imm = 0x2B5
callq 0x1a61e
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x17f4e
leaq 0x18(%rsp), %rdi
callq 0x1a624
andq $0x0, (%rsp)
leaq 0x8(%rsp), %rcx
movq %rax, (%rcx)
andq $0x0, 0xb8(%rsp)
leaq 0x1b8b1(%rip), %rsi # 0x2b10c
leaq 0x18(%rsp), %rdi
movl $0x2b6, %edx # imm = 0x2B6
callq 0x1a61e
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x17f4e
leaq 0x18(%rsp), %rdi
callq 0x1a624
andq $0x0, (%rsp)
leaq 0x8(%rsp), %rcx
movq %rax, (%rcx)
andq $0x0, 0xb0(%rsp)
leaq 0x1b86e(%rip), %rsi # 0x2b10c
leaq 0x18(%rsp), %rdi
movl $0x2b7, %edx # imm = 0x2B7
callq 0x1a61e
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x17f4e
leaq 0x18(%rsp), %rdi
callq 0x1a624
andq $0x0, (%rsp)
leaq 0x8(%rsp), %rcx
movq %rax, (%rcx)
andq $0x0, 0xa8(%rsp)
leaq 0x1b82b(%rip), %rsi # 0x2b10c
leaq 0x18(%rsp), %rdi
movl $0x2b8, %edx # imm = 0x2B8
callq 0x1a61e
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x17f4e
leaq 0x18(%rsp), %rdi
callq 0x1a624
andq $0x0, (%rsp)
leaq 0x8(%rsp), %rcx
movq %rax, (%rcx)
andq $0x0, 0xa0(%rsp)
leaq 0x1b7e8(%rip), %rsi # 0x2b10c
leaq 0x18(%rsp), %rdi
movl $0x2b9, %edx # imm = 0x2B9
callq 0x1a61e
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x17f4e
leaq 0x18(%rsp), %rdi
callq 0x1a624
andq $0x0, (%rsp)
leaq 0x8(%rsp), %rcx
movq %rax, (%rcx)
andq $0x0, 0x98(%rsp)
leaq 0x1b7a5(%rip), %rsi # 0x2b10c
leaq 0x18(%rsp), %rdi
movl $0x2ba, %edx # imm = 0x2BA
callq 0x1a61e
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x17f4e
leaq 0x18(%rsp), %rdi
callq 0x1a624
andq $0x0, (%rsp)
leaq 0x8(%rsp), %rcx
movq %rax, (%rcx)
andq $0x0, 0x90(%rsp)
leaq 0x1b762(%rip), %rsi # 0x2b10c
leaq 0x18(%rsp), %rdi
movl $0x2bb, %edx # imm = 0x2BB
callq 0x1a61e
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x17f4e
leaq 0x18(%rsp), %rdi
callq 0x1a624
andq $0x0, (%rsp)
leaq 0x8(%rsp), %rcx
movq %rax, (%rcx)
andq $0x0, 0x88(%rsp)
leaq 0x1b71f(%rip), %rsi # 0x2b10c
leaq 0x18(%rsp), %rdi
movl $0x2bc, %edx # imm = 0x2BC
callq 0x1a61e
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x17f4e
leaq 0x18(%rsp), %rdi
callq 0x1a624
andq $0x0, 0x10(%rsp)
leaq 0x80(%rsp), %rcx
movq %rax, (%rcx)
andq $0x0, 0x78(%rsp)
leaq 0x1b6db(%rip), %rsi # 0x2b10c
leaq 0x18(%rsp), %rdi
movl $0x2c0, %edx # imm = 0x2C0
callq 0x1a61e
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x17f4e
leaq 0x18(%rsp), %rdi
callq 0x1a624
jmp 0xfa67
jmp 0xfa67
jmp 0xfa67
jmp 0xfa67
jmp 0xfa67
jmp 0xfa67
jmp 0xfa67
jmp 0xfa67
movq %rbx, %rdi
callq 0x1a624
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x14340
leaq 0x78(%rsp), %rdi
callq 0x14340
leaq 0x10(%rsp), %rdi
jmp 0xfb57
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x14340
leaq 0x88(%rsp), %rdi
jmp 0xfb4f
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x14340
leaq 0x90(%rsp), %rdi
jmp 0xfb4f
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x14340
leaq 0x98(%rsp), %rdi
jmp 0xfb4f
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x14340
leaq 0xa0(%rsp), %rdi
jmp 0xfb4f
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x14340
leaq 0xa8(%rsp), %rdi
jmp 0xfb4f
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x14340
leaq 0xb0(%rsp), %rdi
jmp 0xfb4f
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x14340
leaq 0xb8(%rsp), %rdi
jmp 0xfb4f
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x14340
leaq 0xc0(%rsp), %rdi
callq 0x14340
movq %rsp, %rdi
callq 0x14340
movq %rbx, %rdi
callq 0x8c30
movq %rax, %rdi
callq 0x142b9
| _ZL10TestDCHECKv:
push r14
push rbx
sub rsp, 0C8h
lea rcx, a11; "1 == 1"
mov rbx, rsp
push 1
pop rdx
mov rdi, rbx
mov esi, edx
call _ZN5nglog8internal12Check_EQImplB5cxx11EiiPKc; nglog::internal::Check_EQImpl(int,int,char const*)
mov rax, [rbx]
test rax, rax
jnz loc_F7FB
mov rdi, rsp
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rcx, a12; "1 != 2"
mov rbx, rsp
push 1
pop rsi
push 2
pop rdx
mov rdi, rbx
call _ZN5nglog8internal12Check_NEImplB5cxx11EiiPKc; nglog::internal::Check_NEImpl(int,int,char const*)
mov rax, [rbx]
test rax, rax
jnz loc_F83E
mov rdi, rsp
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rcx, a11_0; "1 >= 1"
mov rbx, rsp
push 1
pop rdx
mov rdi, rbx
mov esi, edx
call _ZN5nglog8internal12Check_GEImplB5cxx11EiiPKc; nglog::internal::Check_GEImpl(int,int,char const*)
mov rax, [rbx]
test rax, rax
jnz loc_F881
mov rdi, rsp
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rcx, a21; "2 >= 1"
mov rbx, rsp
push 2
pop rsi
push 1
pop rdx
mov rdi, rbx
call _ZN5nglog8internal12Check_GEImplB5cxx11EiiPKc; nglog::internal::Check_GEImpl(int,int,char const*)
mov rax, [rbx]
test rax, rax
jnz loc_F8C4
mov rdi, rsp
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rcx, a11_1; "1 <= 1"
mov rbx, rsp
push 1
pop rdx
mov rdi, rbx
mov esi, edx
call _ZN5nglog8internal12Check_LEImplB5cxx11EiiPKc; nglog::internal::Check_LEImpl(int,int,char const*)
mov rax, [rbx]
test rax, rax
jnz loc_F907
mov rdi, rsp
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rcx, a12_0; "1 <= 2"
mov rbx, rsp
push 1
pop rsi
push 2
pop rdx
mov rdi, rbx
call _ZN5nglog8internal12Check_LEImplB5cxx11EiiPKc; nglog::internal::Check_LEImpl(int,int,char const*)
mov rax, [rbx]
test rax, rax
jnz loc_F94A
mov rdi, rsp
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rcx, a21_0; "2 > 1"
mov rbx, rsp
push 2
pop rsi
push 1
pop rdx
mov rdi, rbx
call _ZN5nglog8internal12Check_GTImplB5cxx11EiiPKc; nglog::internal::Check_GTImpl(int,int,char const*)
mov rax, [rbx]
test rax, rax
jnz loc_F98D
mov rdi, rsp
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rcx, a12_1; "1 < 2"
mov rbx, rsp
push 1
pop rsi
push 2
pop rdx
mov rdi, rbx
call _ZN5nglog8internal12Check_LTImplB5cxx11EiiPKc; nglog::internal::Check_LTImpl(int,int,char const*)
mov rax, [rbx]
test rax, rax
jnz loc_F9D0
mov rbx, rsp
mov rdi, rbx
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
push 8
pop rdi; unsigned __int64
call _Znwm; operator new(ulong)
mov [rbx], rax
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aOrigPtrMustBeN; "'orig_ptr' Must be non nullptr"
mov rbx, rsp
mov esi, 2BFh
mov rcx, rbx
call _ZN5nglog8internal12CheckNotNullIRPlEET_PKciS6_OS4_; nglog::internal::CheckNotNull<long *&>(char const*,int,char const*,long *&&&)
mov rax, [rax]
lea rsi, [rsp+0D8h+var_D0]
mov [rsi], rax
lea rcx, aPtrOrigPtr; "ptr == orig_ptr"
lea r14, [rsp+0D8h+var_C8]
mov rdi, r14
mov rdx, rbx
call _ZN5nglog8internal12Check_EQImplIPlS2_EESt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS9_EERKT_RKT0_PKc; nglog::internal::Check_EQImpl<long *,long *>(long * const&,long * const&,char const*)
mov rax, [r14]
test rax, rax
jnz loc_FA13
lea rdi, [rsp+0D8h+var_C8]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
mov rdi, [rsp+0D8h+var_D8]
call _free
add rsp, 0C8h
pop rbx
pop r14
retn
loc_F7FB:
and [rsp+0D8h+var_D8], 0
lea rcx, [rsp+0D8h+var_D0]
mov [rcx], rax
and [rsp+0D8h+var_18], 0
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdi, [rsp+0D8h+var_C0]
mov edx, 2B5h
call _ZN5nglog15LogMessageFatalC2EPKciRKNS_8internal13CheckOpStringE; nglog::LogMessageFatal::LogMessageFatal(char const*,int,nglog::internal::CheckOpString const&)
lea rbx, [rsp+0D8h+var_C0]
mov rdi, rbx; this
call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void)
lea rdi, [rsp+0D8h+var_C0]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
loc_F83E:
and [rsp+0D8h+var_D8], 0
lea rcx, [rsp+0D8h+var_D0]
mov [rcx], rax
and [rsp+0D8h+var_20], 0
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdi, [rsp+0D8h+var_C0]
mov edx, 2B6h
call _ZN5nglog15LogMessageFatalC2EPKciRKNS_8internal13CheckOpStringE; nglog::LogMessageFatal::LogMessageFatal(char const*,int,nglog::internal::CheckOpString const&)
lea rbx, [rsp+0D8h+var_C0]
mov rdi, rbx; this
call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void)
lea rdi, [rsp+0D8h+var_C0]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
loc_F881:
and [rsp+0D8h+var_D8], 0
lea rcx, [rsp+0D8h+var_D0]
mov [rcx], rax
and [rsp+0D8h+var_28], 0
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdi, [rsp+0D8h+var_C0]
mov edx, 2B7h
call _ZN5nglog15LogMessageFatalC2EPKciRKNS_8internal13CheckOpStringE; nglog::LogMessageFatal::LogMessageFatal(char const*,int,nglog::internal::CheckOpString const&)
lea rbx, [rsp+0D8h+var_C0]
mov rdi, rbx; this
call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void)
lea rdi, [rsp+0D8h+var_C0]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
loc_F8C4:
and [rsp+0D8h+var_D8], 0
lea rcx, [rsp+0D8h+var_D0]
mov [rcx], rax
and [rsp+0D8h+var_30], 0
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdi, [rsp+0D8h+var_C0]
mov edx, 2B8h
call _ZN5nglog15LogMessageFatalC2EPKciRKNS_8internal13CheckOpStringE; nglog::LogMessageFatal::LogMessageFatal(char const*,int,nglog::internal::CheckOpString const&)
lea rbx, [rsp+0D8h+var_C0]
mov rdi, rbx; this
call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void)
lea rdi, [rsp+0D8h+var_C0]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
loc_F907:
and [rsp+0D8h+var_D8], 0
lea rcx, [rsp+0D8h+var_D0]
mov [rcx], rax
and [rsp+0D8h+var_38], 0
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdi, [rsp+0D8h+var_C0]
mov edx, 2B9h
call _ZN5nglog15LogMessageFatalC2EPKciRKNS_8internal13CheckOpStringE; nglog::LogMessageFatal::LogMessageFatal(char const*,int,nglog::internal::CheckOpString const&)
lea rbx, [rsp+0D8h+var_C0]
mov rdi, rbx; this
call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void)
lea rdi, [rsp+0D8h+var_C0]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
loc_F94A:
and [rsp+0D8h+var_D8], 0
lea rcx, [rsp+0D8h+var_D0]
mov [rcx], rax
and [rsp+0D8h+var_40], 0
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdi, [rsp+0D8h+var_C0]
mov edx, 2BAh
call _ZN5nglog15LogMessageFatalC2EPKciRKNS_8internal13CheckOpStringE; nglog::LogMessageFatal::LogMessageFatal(char const*,int,nglog::internal::CheckOpString const&)
lea rbx, [rsp+0D8h+var_C0]
mov rdi, rbx; this
call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void)
lea rdi, [rsp+0D8h+var_C0]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
loc_F98D:
and [rsp+0D8h+var_D8], 0
lea rcx, [rsp+0D8h+var_D0]
mov [rcx], rax
and [rsp+0D8h+var_48], 0
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdi, [rsp+0D8h+var_C0]
mov edx, 2BBh
call _ZN5nglog15LogMessageFatalC2EPKciRKNS_8internal13CheckOpStringE; nglog::LogMessageFatal::LogMessageFatal(char const*,int,nglog::internal::CheckOpString const&)
lea rbx, [rsp+0D8h+var_C0]
mov rdi, rbx; this
call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void)
lea rdi, [rsp+0D8h+var_C0]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
loc_F9D0:
and [rsp+0D8h+var_D8], 0
lea rcx, [rsp+0D8h+var_D0]
mov [rcx], rax
and [rsp+0D8h+var_50], 0
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdi, [rsp+0D8h+var_C0]
mov edx, 2BCh
call _ZN5nglog15LogMessageFatalC2EPKciRKNS_8internal13CheckOpStringE; nglog::LogMessageFatal::LogMessageFatal(char const*,int,nglog::internal::CheckOpString const&)
lea rbx, [rsp+0D8h+var_C0]
mov rdi, rbx; this
call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void)
lea rdi, [rsp+0D8h+var_C0]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
loc_FA13:
and [rsp+0D8h+var_C8], 0
lea rcx, [rsp+0D8h+var_58]
mov [rcx], rax
and [rsp+0D8h+var_60], 0
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdi, [rsp+0D8h+var_C0]
mov edx, 2C0h
call _ZN5nglog15LogMessageFatalC2EPKciRKNS_8internal13CheckOpStringE; nglog::LogMessageFatal::LogMessageFatal(char const*,int,nglog::internal::CheckOpString const&)
lea rbx, [rsp+0D8h+var_C0]
mov rdi, rbx; this
call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void)
lea rdi, [rsp+0D8h+var_C0]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
jmp short loc_FA67
jmp short loc_FA67
jmp short loc_FA67
jmp short loc_FA67
jmp short loc_FA67
jmp short loc_FA67
jmp short loc_FA67
jmp short $+2
loc_FA67:
mov rdi, rbx; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
mov rbx, rax
lea rdi, [rsp+0D8h+var_58]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rdi, [rsp+0D8h+var_60]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rdi, [rsp+0D8h+var_C8]
jmp loc_FB57
mov rbx, rax
lea rdi, [rsp+0D8h+var_D0]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rdi, [rsp+0D8h+var_50]
jmp loc_FB4F
mov rbx, rax
lea rdi, [rsp+0D8h+var_D0]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rdi, [rsp+0D8h+var_48]
jmp loc_FB4F
mov rbx, rax
lea rdi, [rsp+0D8h+var_D0]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rdi, [rsp+0D8h+var_40]
jmp short loc_FB4F
mov rbx, rax
lea rdi, [rsp+0D8h+var_D0]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rdi, [rsp+0D8h+var_38]
jmp short loc_FB4F
mov rbx, rax
lea rdi, [rsp+0D8h+var_D0]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rdi, [rsp+0D8h+var_30]
jmp short loc_FB4F
mov rbx, rax
lea rdi, [rsp+0D8h+var_D0]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rdi, [rsp+0D8h+var_28]
jmp short loc_FB4F
mov rbx, rax
lea rdi, [rsp+0D8h+var_D0]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rdi, [rsp+0D8h+var_20]
jmp short loc_FB4F
mov rbx, rax
lea rdi, [rsp+0D8h+var_D0]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rdi, [rsp+0D8h+var_18]
loc_FB4F:
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
mov rdi, rsp
loc_FB57:
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
mov rdi, rbx
call __Unwind_Resume
mov rdi, rax
call __clang_call_terminate
| void TestDCHECK(void)
{
void *v0; // rax
void *v1; // rax
void *v2; // rax
void *v3; // rax
void *v4; // rax
void *v5; // rax
void *v6; // rax
void *v7; // rax
long long v8; // rax
void *v9; // [rsp+0h] [rbp-D8h] BYREF
void *v10; // [rsp+8h] [rbp-D0h] BYREF
long long v11; // [rsp+10h] [rbp-C8h] BYREF
_BYTE v12[96]; // [rsp+18h] [rbp-C0h] BYREF
long long v13; // [rsp+78h] [rbp-60h]
long long v14; // [rsp+80h] [rbp-58h]
long long v15; // [rsp+88h] [rbp-50h]
long long v16; // [rsp+90h] [rbp-48h]
long long v17; // [rsp+98h] [rbp-40h]
long long v18; // [rsp+A0h] [rbp-38h]
long long v19; // [rsp+A8h] [rbp-30h]
long long v20; // [rsp+B0h] [rbp-28h]
long long v21; // [rsp+B8h] [rbp-20h]
long long v22; // [rsp+C0h] [rbp-18h]
nglog::internal::Check_EQImpl[abi:cxx11](&v9, 1LL, 1LL, "1 == 1");
v0 = v9;
if ( v9 )
{
v9 = 0LL;
v10 = v0;
v22 = 0LL;
nglog::LogMessageFatal::LogMessageFatal(
v12,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",
693LL);
nglog::LogMessage::stream((nglog::LogMessage *)v12);
nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v12);
}
std::unique_ptr<std::string>::~unique_ptr(&v9);
nglog::internal::Check_NEImpl[abi:cxx11](&v9, 1LL, 2LL, "1 != 2");
v1 = v9;
if ( v9 )
{
v9 = 0LL;
v10 = v1;
v21 = 0LL;
nglog::LogMessageFatal::LogMessageFatal(
v12,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",
694LL);
nglog::LogMessage::stream((nglog::LogMessage *)v12);
nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v12);
}
std::unique_ptr<std::string>::~unique_ptr(&v9);
nglog::internal::Check_GEImpl[abi:cxx11](&v9, 1LL, 1LL, "1 >= 1");
v2 = v9;
if ( v9 )
{
v9 = 0LL;
v10 = v2;
v20 = 0LL;
nglog::LogMessageFatal::LogMessageFatal(
v12,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",
695LL);
nglog::LogMessage::stream((nglog::LogMessage *)v12);
nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v12);
}
std::unique_ptr<std::string>::~unique_ptr(&v9);
nglog::internal::Check_GEImpl[abi:cxx11](&v9, 2LL, 1LL, "2 >= 1");
v3 = v9;
if ( v9 )
{
v9 = 0LL;
v10 = v3;
v19 = 0LL;
nglog::LogMessageFatal::LogMessageFatal(
v12,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",
696LL);
nglog::LogMessage::stream((nglog::LogMessage *)v12);
nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v12);
}
std::unique_ptr<std::string>::~unique_ptr(&v9);
nglog::internal::Check_LEImpl[abi:cxx11](&v9, 1LL, 1LL, "1 <= 1");
v4 = v9;
if ( v9 )
{
v9 = 0LL;
v10 = v4;
v18 = 0LL;
nglog::LogMessageFatal::LogMessageFatal(
v12,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",
697LL);
nglog::LogMessage::stream((nglog::LogMessage *)v12);
nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v12);
}
std::unique_ptr<std::string>::~unique_ptr(&v9);
nglog::internal::Check_LEImpl[abi:cxx11](&v9, 1LL, 2LL, "1 <= 2");
v5 = v9;
if ( v9 )
{
v9 = 0LL;
v10 = v5;
v17 = 0LL;
nglog::LogMessageFatal::LogMessageFatal(
v12,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",
698LL);
nglog::LogMessage::stream((nglog::LogMessage *)v12);
nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v12);
}
std::unique_ptr<std::string>::~unique_ptr(&v9);
nglog::internal::Check_GTImpl[abi:cxx11](&v9, 2LL, 1LL, "2 > 1");
v6 = v9;
if ( v9 )
{
v9 = 0LL;
v10 = v6;
v16 = 0LL;
nglog::LogMessageFatal::LogMessageFatal(
v12,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",
699LL);
nglog::LogMessage::stream((nglog::LogMessage *)v12);
nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v12);
}
std::unique_ptr<std::string>::~unique_ptr(&v9);
nglog::internal::Check_LTImpl[abi:cxx11](&v9, 1LL, 2LL, "1 < 2");
v7 = v9;
if ( v9 )
{
v9 = 0LL;
v10 = v7;
v15 = 0LL;
nglog::LogMessageFatal::LogMessageFatal(
v12,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",
700LL);
nglog::LogMessage::stream((nglog::LogMessage *)v12);
nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v12);
}
std::unique_ptr<std::string>::~unique_ptr(&v9);
v9 = (void *)operator new(8LL);
v10 = *(void **)nglog::internal::CheckNotNull<long *&>(
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",
703LL,
"'orig_ptr' Must be non nullptr",
&v9);
nglog::internal::Check_EQImpl<long *,long *>(&v11, &v10, &v9, "ptr == orig_ptr");
v8 = v11;
if ( v11 )
{
v11 = 0LL;
v14 = v8;
v13 = 0LL;
nglog::LogMessageFatal::LogMessageFatal(
v12,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",
704LL);
nglog::LogMessage::stream((nglog::LogMessage *)v12);
nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v12);
}
std::unique_ptr<std::string>::~unique_ptr(&v11);
free(v9);
}
| TestDCHECK:
PUSH R14
PUSH RBX
SUB RSP,0xc8
LEA RCX,[0x12caf5]
MOV RBX,RSP
PUSH 0x1
POP RDX
MOV RDI,RBX
MOV ESI,EDX
CALL 0x00114314
MOV RAX,qword ptr [RBX]
TEST RAX,RAX
JNZ 0x0010f7fb
MOV RDI,RSP
CALL 0x00114340
LEA RCX,[0x12cafc]
MOV RBX,RSP
PUSH 0x1
POP RSI
PUSH 0x2
POP RDX
MOV RDI,RBX
CALL 0x00115e5f
MOV RAX,qword ptr [RBX]
TEST RAX,RAX
JNZ 0x0010f83e
MOV RDI,RSP
CALL 0x00114340
LEA RCX,[0x12cb03]
MOV RBX,RSP
PUSH 0x1
POP RDX
MOV RDI,RBX
MOV ESI,EDX
CALL 0x00114b77
MOV RAX,qword ptr [RBX]
TEST RAX,RAX
JNZ 0x0010f881
MOV RDI,RSP
CALL 0x00114340
LEA RCX,[0x12cb0a]
MOV RBX,RSP
PUSH 0x2
POP RSI
PUSH 0x1
POP RDX
MOV RDI,RBX
CALL 0x00114b77
MOV RAX,qword ptr [RBX]
TEST RAX,RAX
JNZ 0x0010f8c4
MOV RDI,RSP
CALL 0x00114340
LEA RCX,[0x12cb11]
MOV RBX,RSP
PUSH 0x1
POP RDX
MOV RDI,RBX
MOV ESI,EDX
CALL 0x00115e8a
MOV RAX,qword ptr [RBX]
TEST RAX,RAX
JNZ 0x0010f907
MOV RDI,RSP
CALL 0x00114340
LEA RCX,[0x12cb18]
MOV RBX,RSP
PUSH 0x1
POP RSI
PUSH 0x2
POP RDX
MOV RDI,RBX
CALL 0x00115e8a
MOV RAX,qword ptr [RBX]
TEST RAX,RAX
JNZ 0x0010f94a
MOV RDI,RSP
CALL 0x00114340
LEA RCX,[0x12cb1f]
MOV RBX,RSP
PUSH 0x2
POP RSI
PUSH 0x1
POP RDX
MOV RDI,RBX
CALL 0x00115eb5
MOV RAX,qword ptr [RBX]
TEST RAX,RAX
JNZ 0x0010f98d
MOV RDI,RSP
CALL 0x00114340
LEA RCX,[0x12cb25]
MOV RBX,RSP
PUSH 0x1
POP RSI
PUSH 0x2
POP RDX
MOV RDI,RBX
CALL 0x00115ee0
MOV RAX,qword ptr [RBX]
TEST RAX,RAX
JNZ 0x0010f9d0
MOV RBX,RSP
MOV RDI,RBX
CALL 0x00114340
PUSH 0x8
POP RDI
CALL 0x00109e60
MOV qword ptr [RBX],RAX
LEA RDI,[0x12b10c]
LEA RDX,[0x12cb6f]
MOV RBX,RSP
MOV ESI,0x2bf
MOV RCX,RBX
CALL 0x00115f7f
MOV RAX,qword ptr [RAX]
LEA RSI,[RSP + 0x8]
MOV qword ptr [RSI],RAX
LEA RCX,[0x12cb8e]
LEA R14,[RSP + 0x10]
MOV RDI,R14
MOV RDX,RBX
CALL 0x00116004
MOV RAX,qword ptr [R14]
TEST RAX,RAX
JNZ 0x0010fa13
LEA RDI,[RSP + 0x10]
CALL 0x00114340
MOV RDI,qword ptr [RSP]
CALL 0x001087f0
ADD RSP,0xc8
POP RBX
POP R14
RET
LAB_0010f7fb:
AND qword ptr [RSP],0x0
LEA RCX,[RSP + 0x8]
MOV qword ptr [RCX],RAX
AND qword ptr [RSP + 0xc0],0x0
LAB_0010f811:
LEA RSI,[0x12b10c]
LEA RDI,[RSP + 0x18]
MOV EDX,0x2b5
CALL 0x0011a61e
LAB_0010f827:
LEA RBX,[RSP + 0x18]
MOV RDI,RBX
CALL 0x00117f4e
LAB_0010f834:
LEA RDI,[RSP + 0x18]
CALL 0x0011a624
LAB_0010f83e:
AND qword ptr [RSP],0x0
LEA RCX,[RSP + 0x8]
MOV qword ptr [RCX],RAX
AND qword ptr [RSP + 0xb8],0x0
LAB_0010f854:
LEA RSI,[0x12b10c]
LEA RDI,[RSP + 0x18]
MOV EDX,0x2b6
CALL 0x0011a61e
LAB_0010f86a:
LEA RBX,[RSP + 0x18]
MOV RDI,RBX
CALL 0x00117f4e
LAB_0010f877:
LEA RDI,[RSP + 0x18]
CALL 0x0011a624
LAB_0010f881:
AND qword ptr [RSP],0x0
LEA RCX,[RSP + 0x8]
MOV qword ptr [RCX],RAX
AND qword ptr [RSP + 0xb0],0x0
LAB_0010f897:
LEA RSI,[0x12b10c]
LEA RDI,[RSP + 0x18]
MOV EDX,0x2b7
CALL 0x0011a61e
LAB_0010f8ad:
LEA RBX,[RSP + 0x18]
MOV RDI,RBX
CALL 0x00117f4e
LAB_0010f8ba:
LEA RDI,[RSP + 0x18]
CALL 0x0011a624
LAB_0010f8c4:
AND qword ptr [RSP],0x0
LEA RCX,[RSP + 0x8]
MOV qword ptr [RCX],RAX
AND qword ptr [RSP + 0xa8],0x0
LAB_0010f8da:
LEA RSI,[0x12b10c]
LEA RDI,[RSP + 0x18]
MOV EDX,0x2b8
CALL 0x0011a61e
LAB_0010f8f0:
LEA RBX,[RSP + 0x18]
MOV RDI,RBX
CALL 0x00117f4e
LAB_0010f8fd:
LEA RDI,[RSP + 0x18]
CALL 0x0011a624
LAB_0010f907:
AND qword ptr [RSP],0x0
LEA RCX,[RSP + 0x8]
MOV qword ptr [RCX],RAX
AND qword ptr [RSP + 0xa0],0x0
LAB_0010f91d:
LEA RSI,[0x12b10c]
LEA RDI,[RSP + 0x18]
MOV EDX,0x2b9
CALL 0x0011a61e
LAB_0010f933:
LEA RBX,[RSP + 0x18]
MOV RDI,RBX
CALL 0x00117f4e
LAB_0010f940:
LEA RDI,[RSP + 0x18]
CALL 0x0011a624
LAB_0010f94a:
AND qword ptr [RSP],0x0
LEA RCX,[RSP + 0x8]
MOV qword ptr [RCX],RAX
AND qword ptr [RSP + 0x98],0x0
LAB_0010f960:
LEA RSI,[0x12b10c]
LEA RDI,[RSP + 0x18]
MOV EDX,0x2ba
CALL 0x0011a61e
LAB_0010f976:
LEA RBX,[RSP + 0x18]
MOV RDI,RBX
CALL 0x00117f4e
LAB_0010f983:
LEA RDI,[RSP + 0x18]
CALL 0x0011a624
LAB_0010f98d:
AND qword ptr [RSP],0x0
LEA RCX,[RSP + 0x8]
MOV qword ptr [RCX],RAX
AND qword ptr [RSP + 0x90],0x0
LAB_0010f9a3:
LEA RSI,[0x12b10c]
LEA RDI,[RSP + 0x18]
MOV EDX,0x2bb
CALL 0x0011a61e
LAB_0010f9b9:
LEA RBX,[RSP + 0x18]
MOV RDI,RBX
CALL 0x00117f4e
LAB_0010f9c6:
LEA RDI,[RSP + 0x18]
CALL 0x0011a624
LAB_0010f9d0:
AND qword ptr [RSP],0x0
LEA RCX,[RSP + 0x8]
MOV qword ptr [RCX],RAX
AND qword ptr [RSP + 0x88],0x0
LAB_0010f9e6:
LEA RSI,[0x12b10c]
LEA RDI,[RSP + 0x18]
MOV EDX,0x2bc
CALL 0x0011a61e
LAB_0010f9fc:
LEA RBX,[RSP + 0x18]
MOV RDI,RBX
CALL 0x00117f4e
LAB_0010fa09:
LEA RDI,[RSP + 0x18]
CALL 0x0011a624
LAB_0010fa13:
AND qword ptr [RSP + 0x10],0x0
LEA RCX,[RSP + 0x80]
MOV qword ptr [RCX],RAX
AND qword ptr [RSP + 0x78],0x0
LAB_0010fa2a:
LEA RSI,[0x12b10c]
LEA RDI,[RSP + 0x18]
MOV EDX,0x2c0
CALL 0x0011a61e
LAB_0010fa40:
LEA RBX,[RSP + 0x18]
MOV RDI,RBX
CALL 0x00117f4e
LAB_0010fa4d:
LEA RDI,[RSP + 0x18]
CALL 0x0011a624
LAB_0010fa57:
JMP 0x0010fa67
LAB_0010fa67:
MOV RDI,RBX
CALL 0x0011a624
LAB_0010fa6f:
MOV RBX,RAX
LEA RDI,[RSP + 0x80]
CALL 0x00114340
LEA RDI,[RSP + 0x78]
CALL 0x00114340
LEA RDI,[RSP + 0x10]
JMP 0x0010fb57
LAB_0010fb57:
CALL 0x00114340
MOV RDI,RBX
CALL 0x00108c30
|
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* TestDCHECK() */
void TestDCHECK(void)
{
long **pplVar1;
int8 uVar2;
long *local_d8;
long *local_d0;
long local_c8;
LogMessageFatal local_c0 [96];
int8 local_60;
long local_58 [9];
nglog::internal::Check_EQImpl_abi_cxx11_((internal *)&local_d8,1,1,"1 == 1");
local_d0 = local_d8;
if (local_d8 == (long *)0x0) {
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
((unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> *)
&local_d8);
nglog::internal::Check_NEImpl_abi_cxx11_((internal *)&local_d8,1,2,"1 != 2");
local_d0 = local_d8;
if (local_d8 != (long *)0x0) goto LAB_0010f83e;
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
((unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> *)
&local_d8);
nglog::internal::Check_GEImpl_abi_cxx11_((internal *)&local_d8,1,1,"1 >= 1");
local_d0 = local_d8;
if (local_d8 != (long *)0x0) goto LAB_0010f881;
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
((unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> *)
&local_d8);
nglog::internal::Check_GEImpl_abi_cxx11_((internal *)&local_d8,2,1,"2 >= 1");
local_d0 = local_d8;
if (local_d8 != (long *)0x0) goto LAB_0010f8c4;
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
((unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> *)
&local_d8);
nglog::internal::Check_LEImpl_abi_cxx11_((internal *)&local_d8,1,1,"1 <= 1");
local_d0 = local_d8;
if (local_d8 != (long *)0x0) goto LAB_0010f907;
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
((unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> *)
&local_d8);
nglog::internal::Check_LEImpl_abi_cxx11_((internal *)&local_d8,1,2,"1 <= 2");
local_d0 = local_d8;
if (local_d8 != (long *)0x0) goto LAB_0010f94a;
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
((unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> *)
&local_d8);
nglog::internal::Check_GTImpl_abi_cxx11_((internal *)&local_d8,2,1,"2 > 1");
local_d0 = local_d8;
if (local_d8 != (long *)0x0) goto LAB_0010f98d;
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
((unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> *)
&local_d8);
nglog::internal::Check_LTImpl_abi_cxx11_((internal *)&local_d8,1,2,"1 < 2");
local_d0 = local_d8;
if (local_d8 == (long *)0x0) {
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
((unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> *)
&local_d8);
local_d8 = (long *)operator_new(8);
pplVar1 = nglog::internal::CheckNotNull<long*&>
("/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc"
,0x2bf,"\'orig_ptr\' Must be non nullptr",&local_d8);
local_d0 = *pplVar1;
nglog::internal::Check_EQImpl<long*,long*>
((internal *)&local_c8,&local_d0,&local_d8,"ptr == orig_ptr");
local_58[0] = local_c8;
if (local_c8 == 0) {
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
((unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> *)
&local_c8);
free(local_d8);
return;
}
goto LAB_0010fa13;
}
}
else {
local_d8 = (long *)0x0;
local_58[8] = 0;
/* try { // try from 0010f811 to 0010f826 has its CatchHandler @ 0010fb3a */
nglog::LogMessageFatal::LogMessageFatal
(local_c0,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",
0x2b5,(CheckOpString *)&local_d0);
/* try { // try from 0010f827 to 0010f833 has its CatchHandler @ 0010fa67 */
nglog::LogMessage::stream((LogMessage *)local_c0);
/* try { // try from 0010f834 to 0010f83d has its CatchHandler @ 0010fb3a */
local_d0 = (long *)nglog::LogMessageFatal::~LogMessageFatal(local_c0);
LAB_0010f83e:
local_d8 = (long *)0x0;
local_58[7] = 0;
/* try { // try from 0010f854 to 0010f869 has its CatchHandler @ 0010fb23 */
nglog::LogMessageFatal::LogMessageFatal
(local_c0,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",
0x2b6,(CheckOpString *)&local_d0);
/* try { // try from 0010f86a to 0010f876 has its CatchHandler @ 0010fa65 */
nglog::LogMessage::stream((LogMessage *)local_c0);
/* try { // try from 0010f877 to 0010f880 has its CatchHandler @ 0010fb23 */
local_d0 = (long *)nglog::LogMessageFatal::~LogMessageFatal(local_c0);
LAB_0010f881:
local_d8 = (long *)0x0;
local_58[6] = 0;
/* try { // try from 0010f897 to 0010f8ac has its CatchHandler @ 0010fb0c */
nglog::LogMessageFatal::LogMessageFatal
(local_c0,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",
0x2b7,(CheckOpString *)&local_d0);
/* try { // try from 0010f8ad to 0010f8b9 has its CatchHandler @ 0010fa63 */
nglog::LogMessage::stream((LogMessage *)local_c0);
/* try { // try from 0010f8ba to 0010f8c3 has its CatchHandler @ 0010fb0c */
local_d0 = (long *)nglog::LogMessageFatal::~LogMessageFatal(local_c0);
LAB_0010f8c4:
local_d8 = (long *)0x0;
local_58[5] = 0;
/* try { // try from 0010f8da to 0010f8ef has its CatchHandler @ 0010faf5 */
nglog::LogMessageFatal::LogMessageFatal
(local_c0,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",
0x2b8,(CheckOpString *)&local_d0);
/* try { // try from 0010f8f0 to 0010f8fc has its CatchHandler @ 0010fa61 */
nglog::LogMessage::stream((LogMessage *)local_c0);
/* try { // try from 0010f8fd to 0010f906 has its CatchHandler @ 0010faf5 */
local_d0 = (long *)nglog::LogMessageFatal::~LogMessageFatal(local_c0);
LAB_0010f907:
local_d8 = (long *)0x0;
local_58[4] = 0;
/* try { // try from 0010f91d to 0010f932 has its CatchHandler @ 0010fade */
nglog::LogMessageFatal::LogMessageFatal
(local_c0,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",
0x2b9,(CheckOpString *)&local_d0);
/* try { // try from 0010f933 to 0010f93f has its CatchHandler @ 0010fa5f */
nglog::LogMessage::stream((LogMessage *)local_c0);
/* try { // try from 0010f940 to 0010f949 has its CatchHandler @ 0010fade */
local_d0 = (long *)nglog::LogMessageFatal::~LogMessageFatal(local_c0);
LAB_0010f94a:
local_d8 = (long *)0x0;
local_58[3] = 0;
/* try { // try from 0010f960 to 0010f975 has its CatchHandler @ 0010fac7 */
nglog::LogMessageFatal::LogMessageFatal
(local_c0,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",
0x2ba,(CheckOpString *)&local_d0);
/* try { // try from 0010f976 to 0010f982 has its CatchHandler @ 0010fa5d */
nglog::LogMessage::stream((LogMessage *)local_c0);
/* try { // try from 0010f983 to 0010f98c has its CatchHandler @ 0010fac7 */
local_d0 = (long *)nglog::LogMessageFatal::~LogMessageFatal(local_c0);
LAB_0010f98d:
local_d8 = (long *)0x0;
local_58[2] = 0;
/* try { // try from 0010f9a3 to 0010f9b8 has its CatchHandler @ 0010faad */
nglog::LogMessageFatal::LogMessageFatal
(local_c0,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",699
,(CheckOpString *)&local_d0);
/* try { // try from 0010f9b9 to 0010f9c5 has its CatchHandler @ 0010fa5b */
nglog::LogMessage::stream((LogMessage *)local_c0);
/* try { // try from 0010f9c6 to 0010f9cf has its CatchHandler @ 0010faad */
local_d0 = (long *)nglog::LogMessageFatal::~LogMessageFatal(local_c0);
}
local_d8 = (long *)0x0;
local_58[1] = 0;
/* try { // try from 0010f9e6 to 0010f9fb has its CatchHandler @ 0010fa93 */
nglog::LogMessageFatal::LogMessageFatal
(local_c0,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",700,
(CheckOpString *)&local_d0);
/* try { // try from 0010f9fc to 0010fa08 has its CatchHandler @ 0010fa59 */
nglog::LogMessage::stream((LogMessage *)local_c0);
/* try { // try from 0010fa09 to 0010fa12 has its CatchHandler @ 0010fa93 */
local_58[0] = nglog::LogMessageFatal::~LogMessageFatal(local_c0);
LAB_0010fa13:
local_c8 = 0;
local_60 = 0;
/* try { // try from 0010fa2a to 0010fa3f has its CatchHandler @ 0010fa6f */
nglog::LogMessageFatal::LogMessageFatal
(local_c0,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging_unittest.cc",0x2c0
,(CheckOpString *)local_58);
/* try { // try from 0010fa40 to 0010fa4c has its CatchHandler @ 0010fa57 */
nglog::LogMessage::stream((LogMessage *)local_c0);
/* try { // try from 0010fa4d to 0010fa56 has its CatchHandler @ 0010fa6f */
nglog::LogMessageFatal::~LogMessageFatal(local_c0);
/* catch() { ... } // from try @ 0010fa40 with catch @ 0010fa57 */
/* catch() { ... } // from try @ 0010f827 with catch @ 0010fa67
try { // try from 0010fa67 to 0010fa6e has its CatchHandler @ 0010fb64 */
uVar2 = nglog::LogMessageFatal::~LogMessageFatal(local_c0);
/* catch() { ... } // from try @ 0010fa2a with catch @ 0010fa6f
catch() { ... } // from try @ 0010fa4d with catch @ 0010fa6f */
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
((unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> *)local_58)
;
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
((unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> *)&local_60
);
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
((unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> *)&local_c8
);
/* WARNING: Subroutine does not return */
_Unwind_Resume(uVar2);
}
| |
48,215 | ps_fetch_from_1_to_8_bytes | eloqsql/libmariadb/libmariadb/ma_stmt_codec.c | void ps_fetch_from_1_to_8_bytes(MYSQL_BIND *r_param, const MYSQL_FIELD * const field,
unsigned char **row, unsigned int byte_count)
{
my_bool is_unsigned= test(field->flags & UNSIGNED_FLAG);
r_param->buffer_length= byte_count;
switch (byte_count) {
case 1:
*(uchar *)r_param->buffer= **row;
*r_param->error= is_unsigned != r_param->is_unsigned && *(uchar *)r_param->buffer > INT_MAX8;
break;
case 2:
shortstore(r_param->buffer, ((ushort) sint2korr(*row)));
*r_param->error= is_unsigned != r_param->is_unsigned && *(ushort *)r_param->buffer > INT_MAX16;
break;
case 4:
{
longstore(r_param->buffer, ((uint32)sint4korr(*row)));
*r_param->error= is_unsigned != r_param->is_unsigned && *(uint32 *)r_param->buffer > INT_MAX32;
}
break;
case 8:
{
ulonglong val= (ulonglong)sint8korr(*row);
longlongstore(r_param->buffer, val);
*r_param->error= is_unsigned != r_param->is_unsigned && val > LONGLONG_MAX ;
}
break;
default:
r_param->buffer_length= 0;
break;
}
(*row)+= byte_count;
} | O3 | c | ps_fetch_from_1_to_8_bytes:
pushq %rbp
movq %rsp, %rbp
movb 0x64(%rsi), %sil
movl %ecx, %eax
movq %rax, 0x40(%rdi)
decl %ecx
cmpl $0x7, %ecx
ja 0x22e93
shrb $0x5, %sil
andb $0x1, %sil
leaq 0x15348(%rip), %r8 # 0x38100
movslq (%r8,%rcx,4), %rcx
addq %r8, %rcx
jmpq *%rcx
movq (%rdx), %rcx
movb (%rcx), %cl
movq 0x10(%rdi), %r8
movb %cl, (%r8)
cmpb 0x65(%rdi), %sil
je 0x22e46
movq 0x10(%rdi), %rcx
movb (%rcx), %cl
shrb $0x7, %cl
jmp 0x22ea7
movq (%rdx), %rcx
movb (%rcx), %cl
movq 0x10(%rdi), %r8
movb %cl, (%r8)
movq (%rdx), %rcx
movb 0x1(%rcx), %cl
movq 0x10(%rdi), %r8
movb %cl, 0x1(%r8)
movq (%rdx), %rcx
movb 0x2(%rcx), %cl
movq 0x10(%rdi), %r8
movb %cl, 0x2(%r8)
movq (%rdx), %rcx
movb 0x3(%rcx), %cl
movq 0x10(%rdi), %r8
movb %cl, 0x3(%r8)
cmpb 0x65(%rdi), %sil
je 0x22e46
movq 0x10(%rdi), %rcx
movl (%rcx), %ecx
shrl $0x1f, %ecx
jmp 0x22ea7
movq (%rdx), %rcx
movb (%rcx), %r8b
movb 0x1(%rcx), %cl
movq 0x10(%rdi), %r9
movb %r8b, (%r9)
movq 0x10(%rdi), %r8
movb %cl, 0x1(%r8)
cmpb 0x65(%rdi), %sil
jne 0x22e9d
xorl %ecx, %ecx
jmp 0x22ea7
movq (%rdx), %rcx
movl (%rcx), %r8d
movzwl 0x4(%rcx), %r9d
shlq $0x20, %r9
orq %r8, %r9
movzbl 0x6(%rcx), %r8d
movzbl 0x7(%rcx), %ecx
shlq $0x38, %rcx
shlq $0x30, %r8
orq %r9, %r8
orq %rcx, %r8
movq 0x10(%rdi), %r9
movq %r8, (%r9)
cmpb 0x65(%rdi), %sil
setne %sil
testq %rcx, %rcx
sets %cl
andb %sil, %cl
movq 0x18(%rdi), %rsi
movb %cl, (%rsi)
jmp 0x22ead
movq $0x0, 0x40(%rdi)
jmp 0x22ead
movq 0x10(%rdi), %rcx
movzwl (%rcx), %ecx
shrl $0xf, %ecx
movq 0x18(%rdi), %rsi
movb %cl, (%rsi)
addq %rax, (%rdx)
popq %rbp
retq
| ps_fetch_from_1_to_8_bytes:
push rbp
mov rbp, rsp
mov sil, [rsi+64h]
mov eax, ecx
mov [rdi+40h], rax
dec ecx; switch 8 cases
cmp ecx, 7
ja def_22DBF; jumptable 0000000000022DBF default case, cases 3,5-7
shr sil, 5
and sil, 1
lea r8, jpt_22DBF
movsxd rcx, ds:(jpt_22DBF - 38100h)[r8+rcx*4]
add rcx, r8
jmp rcx; switch jump
loc_22DC1:
mov rcx, [rdx]; jumptable 0000000000022DBF case 1
mov cl, [rcx]
mov r8, [rdi+10h]
mov [r8], cl
cmp sil, [rdi+65h]
jz short loc_22E46
mov rcx, [rdi+10h]
mov cl, [rcx]
shr cl, 7
jmp loc_22EA7
loc_22DE1:
mov rcx, [rdx]; jumptable 0000000000022DBF case 4
mov cl, [rcx]
mov r8, [rdi+10h]
mov [r8], cl
mov rcx, [rdx]
mov cl, [rcx+1]
mov r8, [rdi+10h]
mov [r8+1], cl
mov rcx, [rdx]
mov cl, [rcx+2]
mov r8, [rdi+10h]
mov [r8+2], cl
mov rcx, [rdx]
mov cl, [rcx+3]
mov r8, [rdi+10h]
mov [r8+3], cl
cmp sil, [rdi+65h]
jz short loc_22E46
mov rcx, [rdi+10h]
mov ecx, [rcx]
shr ecx, 1Fh
jmp short loc_22EA7
loc_22E28:
mov rcx, [rdx]; jumptable 0000000000022DBF case 2
mov r8b, [rcx]
mov cl, [rcx+1]
mov r9, [rdi+10h]
mov [r9], r8b
mov r8, [rdi+10h]
mov [r8+1], cl
cmp sil, [rdi+65h]
jnz short loc_22E9D
loc_22E46:
xor ecx, ecx
jmp short loc_22EA7
loc_22E4A:
mov rcx, [rdx]; jumptable 0000000000022DBF case 8
mov r8d, [rcx]
movzx r9d, word ptr [rcx+4]
shl r9, 20h
or r9, r8
movzx r8d, byte ptr [rcx+6]
movzx ecx, byte ptr [rcx+7]
shl rcx, 38h
shl r8, 30h
or r8, r9
or r8, rcx
mov r9, [rdi+10h]
mov [r9], r8
cmp sil, [rdi+65h]
setnz sil
test rcx, rcx
sets cl
and cl, sil
mov rsi, [rdi+18h]
mov [rsi], cl
jmp short loc_22EAD
def_22DBF:
mov qword ptr [rdi+40h], 0; jumptable 0000000000022DBF default case, cases 3,5-7
jmp short loc_22EAD
loc_22E9D:
mov rcx, [rdi+10h]
movzx ecx, word ptr [rcx]
shr ecx, 0Fh
loc_22EA7:
mov rsi, [rdi+18h]
mov [rsi], cl
loc_22EAD:
add [rdx], rax
pop rbp
retn
| long long ps_fetch_from_1_to_8_bytes(long long a1, long long a2, _BYTE **a3, unsigned int a4)
{
char v4; // si
long long result; // rax
char v6; // si
int v7; // ecx
char v8; // cl
signed long long v9; // rcx
v4 = *(_BYTE *)(a2 + 100);
result = a4;
*(_QWORD *)(a1 + 64) = a4;
v6 = (v4 & 0x20) != 0;
switch ( a4 )
{
case 1u:
**(_BYTE **)(a1 + 16) = **a3;
if ( v6 == *(_BYTE *)(a1 + 101) )
goto LABEL_7;
LOBYTE(v7) = **(_BYTE **)(a1 + 16) >> 7;
goto LABEL_11;
case 2u:
v8 = (*a3)[1];
**(_BYTE **)(a1 + 16) = **a3;
*(_BYTE *)(*(_QWORD *)(a1 + 16) + 1LL) = v8;
if ( v6 == *(_BYTE *)(a1 + 101) )
goto LABEL_7;
v7 = **(unsigned __int16 **)(a1 + 16) >> 15;
goto LABEL_11;
case 4u:
**(_BYTE **)(a1 + 16) = **a3;
*(_BYTE *)(*(_QWORD *)(a1 + 16) + 1LL) = (*a3)[1];
*(_BYTE *)(*(_QWORD *)(a1 + 16) + 2LL) = (*a3)[2];
*(_BYTE *)(*(_QWORD *)(a1 + 16) + 3LL) = (*a3)[3];
if ( v6 == *(_BYTE *)(a1 + 101) )
LABEL_7:
LOBYTE(v7) = 0;
else
v7 = **(_DWORD **)(a1 + 16) >> 31;
LABEL_11:
**(_BYTE **)(a1 + 24) = v7;
break;
case 8u:
v9 = (unsigned long long)(unsigned __int8)(*a3)[7] << 56;
**(_QWORD **)(a1 + 16) = v9 | *(unsigned int *)*a3 | ((unsigned long long)*((unsigned __int16 *)*a3 + 2) << 32) | ((unsigned long long)(unsigned __int8)(*a3)[6] << 48);
**(_BYTE **)(a1 + 24) = v6 != *(_BYTE *)(a1 + 101) && v9 < 0;
break;
default:
*(_QWORD *)(a1 + 64) = 0LL;
break;
}
*a3 += result;
return result;
}
| ps_fetch_from_1_to_8_bytes:
PUSH RBP
MOV RBP,RSP
MOV SIL,byte ptr [RSI + 0x64]
MOV EAX,ECX
MOV qword ptr [RDI + 0x40],RAX
DEC ECX
CMP ECX,0x7
JA 0x00122e93
SHR SIL,0x5
AND SIL,0x1
LEA R8,[0x138100]
MOVSXD RCX,dword ptr [R8 + RCX*0x4]
ADD RCX,R8
switchD:
JMP RCX
caseD_1:
MOV RCX,qword ptr [RDX]
MOV CL,byte ptr [RCX]
MOV R8,qword ptr [RDI + 0x10]
MOV byte ptr [R8],CL
CMP SIL,byte ptr [RDI + 0x65]
JZ 0x00122e46
MOV RCX,qword ptr [RDI + 0x10]
MOV CL,byte ptr [RCX]
SHR CL,0x7
JMP 0x00122ea7
caseD_4:
MOV RCX,qword ptr [RDX]
MOV CL,byte ptr [RCX]
MOV R8,qword ptr [RDI + 0x10]
MOV byte ptr [R8],CL
MOV RCX,qword ptr [RDX]
MOV CL,byte ptr [RCX + 0x1]
MOV R8,qword ptr [RDI + 0x10]
MOV byte ptr [R8 + 0x1],CL
MOV RCX,qword ptr [RDX]
MOV CL,byte ptr [RCX + 0x2]
MOV R8,qword ptr [RDI + 0x10]
MOV byte ptr [R8 + 0x2],CL
MOV RCX,qword ptr [RDX]
MOV CL,byte ptr [RCX + 0x3]
MOV R8,qword ptr [RDI + 0x10]
MOV byte ptr [R8 + 0x3],CL
CMP SIL,byte ptr [RDI + 0x65]
JZ 0x00122e46
MOV RCX,qword ptr [RDI + 0x10]
MOV ECX,dword ptr [RCX]
SHR ECX,0x1f
JMP 0x00122ea7
caseD_2:
MOV RCX,qword ptr [RDX]
MOV R8B,byte ptr [RCX]
MOV CL,byte ptr [RCX + 0x1]
MOV R9,qword ptr [RDI + 0x10]
MOV byte ptr [R9],R8B
MOV R8,qword ptr [RDI + 0x10]
MOV byte ptr [R8 + 0x1],CL
CMP SIL,byte ptr [RDI + 0x65]
JNZ 0x00122e9d
LAB_00122e46:
XOR ECX,ECX
JMP 0x00122ea7
caseD_8:
MOV RCX,qword ptr [RDX]
MOV R8D,dword ptr [RCX]
MOVZX R9D,word ptr [RCX + 0x4]
SHL R9,0x20
OR R9,R8
MOVZX R8D,byte ptr [RCX + 0x6]
MOVZX ECX,byte ptr [RCX + 0x7]
SHL RCX,0x38
SHL R8,0x30
OR R8,R9
OR R8,RCX
MOV R9,qword ptr [RDI + 0x10]
MOV qword ptr [R9],R8
CMP SIL,byte ptr [RDI + 0x65]
SETNZ SIL
TEST RCX,RCX
SETS CL
AND CL,SIL
MOV RSI,qword ptr [RDI + 0x18]
MOV byte ptr [RSI],CL
JMP 0x00122ead
caseD_3:
MOV qword ptr [RDI + 0x40],0x0
JMP 0x00122ead
LAB_00122e9d:
MOV RCX,qword ptr [RDI + 0x10]
MOVZX ECX,word ptr [RCX]
SHR ECX,0xf
LAB_00122ea7:
MOV RSI,qword ptr [RDI + 0x18]
MOV byte ptr [RSI],CL
LAB_00122ead:
ADD qword ptr [RDX],RAX
POP RBP
RET
|
void ps_fetch_from_1_to_8_bytes(long param_1,long param_2,long *param_3,uint param_4)
{
int1 uVar1;
byte bVar2;
byte bVar3;
bVar3 = *(byte *)(param_2 + 100);
*(ulong *)(param_1 + 0x40) = (ulong)param_4;
if (param_4 - 1 < 8) {
bVar3 = bVar3 >> 5 & 1;
switch(param_4) {
case 1:
**(int1 **)(param_1 + 0x10) = *(int1 *)*param_3;
if (bVar3 == *(byte *)(param_1 + 0x65)) {
LAB_00122e46:
bVar3 = 0;
}
else {
bVar3 = **(byte **)(param_1 + 0x10) >> 7;
}
break;
case 2:
uVar1 = ((int1 *)*param_3)[1];
**(int1 **)(param_1 + 0x10) = *(int1 *)*param_3;
*(int1 *)(*(long *)(param_1 + 0x10) + 1) = uVar1;
if (bVar3 == *(byte *)(param_1 + 0x65)) goto LAB_00122e46;
bVar3 = (byte)((ushort)**(int2 **)(param_1 + 0x10) >> 0xf);
break;
default:
goto switchD_00122dbf_caseD_3;
case 4:
**(int1 **)(param_1 + 0x10) = *(int1 *)*param_3;
*(int1 *)(*(long *)(param_1 + 0x10) + 1) = *(int1 *)(*param_3 + 1);
*(int1 *)(*(long *)(param_1 + 0x10) + 2) = *(int1 *)(*param_3 + 2);
*(int1 *)(*(long *)(param_1 + 0x10) + 3) = *(int1 *)(*param_3 + 3);
if (bVar3 == *(byte *)(param_1 + 0x65)) goto LAB_00122e46;
bVar3 = (byte)((uint)**(int4 **)(param_1 + 0x10) >> 0x1f);
break;
case 8:
bVar2 = *(byte *)(*param_3 + 7);
**(int8 **)(param_1 + 0x10) = *(int8 *)*param_3;
*(bool *)*(int8 *)(param_1 + 0x18) =
(long)((ulong)bVar2 << 0x38) < 0 && bVar3 != *(byte *)(param_1 + 0x65);
goto LAB_00122ead;
}
**(byte **)(param_1 + 0x18) = bVar3;
}
else {
switchD_00122dbf_caseD_3:
*(int8 *)(param_1 + 0x40) = 0;
}
LAB_00122ead:
*param_3 = *param_3 + (ulong)param_4;
return;
}
| |
48,216 | lf_alloc_destroy | eloqsql/mysys/lf_alloc-pin.c | void lf_alloc_destroy(LF_ALLOCATOR *allocator)
{
uchar *node= allocator->top;
while (node)
{
uchar *tmp= anext_node(node);
if (allocator->destructor)
allocator->destructor(node);
my_free(node);
node= tmp;
}
lf_pinbox_destroy(&allocator->pinbox);
allocator->top= 0;
} | O3 | c | lf_alloc_destroy:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x48(%rdi), %r14
testq %r14, %r14
je 0xb06a0
movl 0x38(%rbx), %eax
movq (%r14,%rax), %r15
movq 0x60(%rbx), %rax
testq %rax, %rax
je 0xb0690
movq %r14, %rdi
callq *%rax
movq %r14, %rdi
callq 0xaa406
movq %r15, %r14
testq %r15, %r15
jne 0xb067b
movq %rbx, %rdi
callq 0xb0833
movq $0x0, 0x48(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| lf_alloc_destroy:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rdi
mov r14, [rdi+48h]
test r14, r14
jz short loc_B06A0
loc_B067B:
mov eax, [rbx+38h]
mov r15, [r14+rax]
mov rax, [rbx+60h]
test rax, rax
jz short loc_B0690
mov rdi, r14
call rax
loc_B0690:
mov rdi, r14
call my_free
mov r14, r15
test r15, r15
jnz short loc_B067B
loc_B06A0:
mov rdi, rbx
call lf_dynarray_destroy
mov qword ptr [rbx+48h], 0
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long lf_alloc_destroy(long long a1)
{
long long v1; // r14
long long v2; // r15
void ( *v3)(long long); // rax
long long result; // rax
v1 = *(_QWORD *)(a1 + 72);
if ( v1 )
{
do
{
v2 = *(_QWORD *)(v1 + *(unsigned int *)(a1 + 56));
v3 = *(void ( **)(long long))(a1 + 96);
if ( v3 )
v3(v1);
my_free(v1);
v1 = v2;
}
while ( v2 );
}
result = lf_dynarray_destroy(a1);
*(_QWORD *)(a1 + 72) = 0LL;
return result;
}
| lf_alloc_destroy:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV R14,qword ptr [RDI + 0x48]
TEST R14,R14
JZ 0x001b06a0
LAB_001b067b:
MOV EAX,dword ptr [RBX + 0x38]
MOV R15,qword ptr [R14 + RAX*0x1]
MOV RAX,qword ptr [RBX + 0x60]
TEST RAX,RAX
JZ 0x001b0690
MOV RDI,R14
CALL RAX
LAB_001b0690:
MOV RDI,R14
CALL 0x001aa406
MOV R14,R15
TEST R15,R15
JNZ 0x001b067b
LAB_001b06a0:
MOV RDI,RBX
CALL 0x001b0833
MOV qword ptr [RBX + 0x48],0x0
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
void lf_alloc_destroy(long param_1)
{
long lVar1;
long lVar2;
lVar2 = *(long *)(param_1 + 0x48);
while (lVar2 != 0) {
lVar1 = *(long *)(lVar2 + (ulong)*(uint *)(param_1 + 0x38));
if (*(code **)(param_1 + 0x60) != (code *)0x0) {
(**(code **)(param_1 + 0x60))(lVar2);
}
my_free(lVar2);
lVar2 = lVar1;
}
lf_dynarray_destroy(param_1);
*(int8 *)(param_1 + 0x48) = 0;
return;
}
| |
48,217 | ma_pvio_close | eloqsql/libmariadb/libmariadb/ma_pvio.c | void ma_pvio_close(MARIADB_PVIO *pvio)
{
/* free internal structures and close connection */
if (pvio)
{
#ifdef HAVE_TLS
if (pvio->ctls)
{
ma_pvio_tls_close(pvio->ctls);
free(pvio->ctls);
}
#endif
if (pvio && pvio->methods->close)
pvio->methods->close(pvio);
if (pvio->cache)
free(pvio->cache);
free(pvio);
}
} | O0 | c | ma_pvio_close:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x2e781
movq -0x8(%rbp), %rax
cmpq $0x0, 0x38(%rax)
je 0x2e738
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0x2eef0
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0x17710
cmpq $0x0, -0x8(%rbp)
je 0x2e760
movq -0x8(%rbp), %rax
movq 0x48(%rax), %rax
cmpq $0x0, 0x48(%rax)
je 0x2e760
movq -0x8(%rbp), %rax
movq 0x48(%rax), %rax
movq 0x48(%rax), %rax
movq -0x8(%rbp), %rdi
callq *%rax
movq -0x8(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x2e778
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x17710
movq -0x8(%rbp), %rdi
callq 0x17710
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| ma_pvio_close:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
cmp [rbp+var_8], 0
jz short loc_2E781
mov rax, [rbp+var_8]
cmp qword ptr [rax+38h], 0
jz short loc_2E738
mov rax, [rbp+var_8]
mov rdi, [rax+38h]
call ma_pvio_tls_close
mov rax, [rbp+var_8]
mov rdi, [rax+38h]
call _free
loc_2E738:
cmp [rbp+var_8], 0
jz short loc_2E760
mov rax, [rbp+var_8]
mov rax, [rax+48h]
cmp qword ptr [rax+48h], 0
jz short loc_2E760
mov rax, [rbp+var_8]
mov rax, [rax+48h]
mov rax, [rax+48h]
mov rdi, [rbp+var_8]
call rax
loc_2E760:
mov rax, [rbp+var_8]
cmp qword ptr [rax+8], 0
jz short loc_2E778
mov rax, [rbp+var_8]
mov rdi, [rax+8]
call _free
loc_2E778:
mov rdi, [rbp+var_8]
call _free
loc_2E781:
add rsp, 10h
pop rbp
retn
| long long ma_pvio_close(_QWORD *a1)
{
long long result; // rax
if ( a1 )
{
if ( a1[7] )
{
ma_pvio_tls_close(a1[7]);
free(a1[7]);
}
if ( *(_QWORD *)(a1[9] + 72LL) )
(*(void ( **)(_QWORD *))(a1[9] + 72LL))(a1);
if ( a1[1] )
free(a1[1]);
return free(a1);
}
return result;
}
| ma_pvio_close:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
CMP qword ptr [RBP + -0x8],0x0
JZ 0x0012e781
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x38],0x0
JZ 0x0012e738
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x38]
CALL 0x0012eef0
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x38]
CALL 0x00117710
LAB_0012e738:
CMP qword ptr [RBP + -0x8],0x0
JZ 0x0012e760
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x48]
CMP qword ptr [RAX + 0x48],0x0
JZ 0x0012e760
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x48]
MOV RAX,qword ptr [RAX + 0x48]
MOV RDI,qword ptr [RBP + -0x8]
CALL RAX
LAB_0012e760:
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x8],0x0
JZ 0x0012e778
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x00117710
LAB_0012e778:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00117710
LAB_0012e781:
ADD RSP,0x10
POP RBP
RET
|
void ma_pvio_close(void *param_1)
{
if (param_1 != (void *)0x0) {
if (*(long *)((long)param_1 + 0x38) != 0) {
ma_pvio_tls_close(*(int8 *)((long)param_1 + 0x38));
free(*(void **)((long)param_1 + 0x38));
}
if ((param_1 != (void *)0x0) && (*(long *)(*(long *)((long)param_1 + 0x48) + 0x48) != 0)) {
(**(code **)(*(long *)((long)param_1 + 0x48) + 0x48))(param_1);
}
if (*(long *)((long)param_1 + 8) != 0) {
free(*(void **)((long)param_1 + 8));
}
free(param_1);
}
return;
}
| |
48,218 | my_os_charset_to_mysql_charset | eloqsql/mysys/charset.c | static const char*
my_os_charset_to_mysql_charset(const char* csname)
{
const MY_CSET_OS_NAME* csp;
for (csp = charsets; csp->os_name; csp++)
{
if (!strcasecmp(csp->os_name, csname))
{
switch (csp->param)
{
case my_cs_exact:
return csp->my_name;
case my_cs_approx:
/*
Maybe we should print a warning eventually:
character set correspondence is not exact.
*/
return csp->my_name;
default:
return NULL;
}
}
}
return NULL;
} | O0 | c | my_os_charset_to_mysql_charset:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
leaq 0x198b1d(%rip), %rax # 0x1c8870
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpq $0x0, (%rax)
je 0x2fdc6
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x24360
cmpl $0x0, %eax
jne 0x2fdb6
movq -0x18(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, -0x1c(%rbp)
testl %eax, %eax
je 0x2fd90
jmp 0x2fd86
movl -0x1c(%rbp), %eax
subl $0x1, %eax
je 0x2fd9e
jmp 0x2fdac
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0x2fdce
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0x2fdce
movq $0x0, -0x8(%rbp)
jmp 0x2fdce
jmp 0x2fdb8
movq -0x18(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x18(%rbp)
jmp 0x2fd57
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| my_os_charset_to_mysql_charset:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
lea rax, charsets
mov [rbp+var_18], rax
loc_2FD57:
mov rax, [rbp+var_18]
cmp qword ptr [rax], 0
jz short loc_2FDC6
mov rax, [rbp+var_18]
mov rdi, [rax]
mov rsi, [rbp+var_10]
call _strcasecmp
cmp eax, 0
jnz short loc_2FDB6
mov rax, [rbp+var_18]
mov eax, [rax+10h]
mov [rbp+var_1C], eax
test eax, eax
jz short loc_2FD90
jmp short $+2
loc_2FD86:
mov eax, [rbp+var_1C]
sub eax, 1
jz short loc_2FD9E
jmp short loc_2FDAC
loc_2FD90:
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov [rbp+var_8], rax
jmp short loc_2FDCE
loc_2FD9E:
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov [rbp+var_8], rax
jmp short loc_2FDCE
loc_2FDAC:
mov [rbp+var_8], 0
jmp short loc_2FDCE
loc_2FDB6:
jmp short $+2
loc_2FDB8:
mov rax, [rbp+var_18]
add rax, 18h
mov [rbp+var_18], rax
jmp short loc_2FD57
loc_2FDC6:
mov [rbp+var_8], 0
loc_2FDCE:
mov rax, [rbp+var_8]
add rsp, 20h
pop rbp
retn
| char * my_os_charset_to_mysql_charset(long long a1)
{
int v2; // [rsp+4h] [rbp-1Ch]
char **i; // [rsp+8h] [rbp-18h]
for ( i = charsets; ; i += 3 )
{
if ( !*i )
return 0LL;
if ( !(unsigned int)strcasecmp(*i, a1) )
break;
}
v2 = *((_DWORD *)i + 4);
if ( !v2 )
return i[1];
if ( v2 == 1 )
return i[1];
return 0LL;
}
| my_os_charset_to_mysql_charset:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
LEA RAX,[0x2c8870]
MOV qword ptr [RBP + -0x18],RAX
LAB_0012fd57:
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX],0x0
JZ 0x0012fdc6
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x00124360
CMP EAX,0x0
JNZ 0x0012fdb6
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x10]
MOV dword ptr [RBP + -0x1c],EAX
TEST EAX,EAX
JZ 0x0012fd90
JMP 0x0012fd86
LAB_0012fd86:
MOV EAX,dword ptr [RBP + -0x1c]
SUB EAX,0x1
JZ 0x0012fd9e
JMP 0x0012fdac
LAB_0012fd90:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0012fdce
LAB_0012fd9e:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0012fdce
LAB_0012fdac:
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0012fdce
LAB_0012fdb6:
JMP 0x0012fdb8
LAB_0012fdb8:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x18
MOV qword ptr [RBP + -0x18],RAX
JMP 0x0012fd57
LAB_0012fdc6:
MOV qword ptr [RBP + -0x8],0x0
LAB_0012fdce:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x20
POP RBP
RET
|
int * my_os_charset_to_mysql_charset(char *param_1)
{
int iVar1;
int **local_20;
local_20 = &charsets;
while( true ) {
if (*local_20 == (int *)0x0) {
return (int *)0x0;
}
iVar1 = strcasecmp(*local_20,param_1);
if (iVar1 == 0) break;
local_20 = local_20 + 3;
}
if (*(int *)(local_20 + 2) != 0) {
if (*(int *)(local_20 + 2) != 1) {
return (int *)0x0;
}
return local_20[1];
}
return local_20[1];
}
| |
48,219 | 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>::operator[]<char const>(char const*) const | monkey531[P]llama/common/json.hpp | const_reference operator[](T* key) const
{
return operator[](typename object_t::key_type(key));
} | O1 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> 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>::operator[]<char const>(char const*) const:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
leaq 0x7(%rsp), %rdx
movq %r14, %rdi
callq 0x2067a
movq %rbx, %rdi
movq %r14, %rsi
callq 0x74e84
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6eb91
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x196e0
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6ebba
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x196e0
movq %rbx, %rdi
callq 0x19c10
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERKSD_PT_:
push r14
push rbx
sub rsp, 28h
mov rbx, rdi
lea r14, [rsp+38h+var_30]
lea rdx, [rsp+38h+var_31]
mov rdi, r14
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, rbx
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixERKS9_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[](std::string const&)
mov rbx, rax
lea rax, [rsp+38h+var_20]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_6EB91
mov rsi, [rsp+38h+var_20]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6EB91:
mov rax, rbx
add rsp, 28h
pop rbx
pop r14
retn
mov rbx, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_6EBBA
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6EBBA:
mov rdi, rbx
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>(
long long a1,
long long a2,
long long a3,
long long a4)
{
long long v4; // rbx
char v6; // [rsp+7h] [rbp-31h] BYREF
void *v7[2]; // [rsp+8h] [rbp-30h] BYREF
long long v8; // [rsp+18h] [rbp-20h] BYREF
std::string::basic_string<std::allocator<char>>(v7, a2, (long long)&v6, a4);
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>::operator[](
a1,
v7);
if ( v7[0] != &v8 )
operator delete(v7[0], v8 + 1);
return v4;
}
| operator[]<char_const>:
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
LEA R14,[RSP + 0x8]
LEA RDX,[RSP + 0x7]
MOV RDI,R14
CALL 0x0012067a
LAB_0016eb68:
MOV RDI,RBX
MOV RSI,R14
CALL 0x00174e84
LAB_0016eb73:
MOV RBX,RAX
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0016eb91
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001196e0
LAB_0016eb91:
MOV RAX,RBX
ADD RSP,0x28
POP RBX
POP R14
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> 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>::operator[]<char const>(char const*) const */
basic_json * __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]<char_const>
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this,char *param_1)
{
basic_json *pbVar1;
allocator local_31;
long *local_30 [2];
long local_20 [2];
std::__cxx11::string::string<std::allocator<char>>((string *)local_30,param_1,&local_31);
/* try { // try from 0016eb68 to 0016eb72 has its CatchHandler @ 0016eb9c */
pbVar1 = (basic_json *)operator[](this,(string *)local_30);
if (local_30[0] != local_20) {
operator_delete(local_30[0],local_20[0] + 1);
}
return pbVar1;
}
| |
48,220 | nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<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>>::end_object() | monkey531[P]llama/common/./json.hpp | bool end_object()
{
JSON_ASSERT(!ref_stack.empty());
JSON_ASSERT(ref_stack.back()->is_object());
ref_stack.back()->set_parents();
ref_stack.pop_back();
return true;
} | O2 | cpp | nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<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>>::end_object():
pushq %rax
movq 0x10(%rdi), %rax
cmpq %rax, 0x8(%rdi)
je 0x38bea
movq -0x8(%rax), %rcx
cmpb $0x1, (%rcx)
jne 0x38c06
addq $-0x8, %rax
movq %rax, 0x10(%rdi)
movb $0x1, %al
popq %rcx
retq
leaq 0x5d4fa(%rip), %rdi # 0x960eb
leaq 0x5d53f(%rip), %rdx # 0x96137
leaq 0x5e4ff(%rip), %rcx # 0x970fe
movl $0x1aeb, %esi # imm = 0x1AEB
jmp 0x38c20
leaq 0x5d4de(%rip), %rdi # 0x960eb
leaq 0x5d523(%rip), %rdx # 0x96137
leaq 0x5e491(%rip), %rcx # 0x970ac
movl $0x1aec, %esi # imm = 0x1AEC
xorl %eax, %eax
callq 0x20b40
nop
| _ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE10end_objectEv:
push rax
mov rax, [rdi+10h]
cmp [rdi+8], rax
jz short loc_38BEA
mov rcx, [rax-8]
cmp byte ptr [rcx], 1
jnz short loc_38C06
add rax, 0FFFFFFFFFFFFFFF8h
mov [rdi+10h], rax
mov al, 1
pop rcx
retn
loc_38BEA:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aRefStackEmpty; "!ref_stack.empty()"
mov esi, 1AEBh
jmp short loc_38C20
loc_38C06:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aRefStackBackIs+20h; "ref_stack.back()->is_object()"
mov esi, 1AECh
loc_38C20:
xor eax, eax
call _ggml_abort
nop
| char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::end_object(
long long a1)
{
long long v1; // rax
long long v3; // rsi
v1 = *(_QWORD *)(a1 + 16);
if ( *(_QWORD *)(a1 + 8) == v1 )
{
v3 = 6891LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
6891LL,
"GGML_ASSERT(%s) failed",
"!ref_stack.empty()");
}
else
{
if ( **(_BYTE **)(v1 - 8) == 1 )
{
*(_QWORD *)(a1 + 16) = v1 - 8;
return 1;
}
v3 = 6892LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
6892LL,
"GGML_ASSERT(%s) failed",
"ref_stack.back()->is_object()");
}
return nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::key(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
v3);
}
| end_object:
PUSH RAX
MOV RAX,qword ptr [RDI + 0x10]
CMP qword ptr [RDI + 0x8],RAX
JZ 0x00138bea
MOV RCX,qword ptr [RAX + -0x8]
CMP byte ptr [RCX],0x1
JNZ 0x00138c06
ADD RAX,-0x8
MOV qword ptr [RDI + 0x10],RAX
MOV AL,0x1
POP RCX
RET
LAB_00138bea:
LEA RDI,[0x1960eb]
LEA RDX,[0x196137]
LEA RCX,[0x1970fe]
MOV ESI,0x1aeb
JMP 0x00138c20
LAB_00138c06:
LEA RDI,[0x1960eb]
LEA RDX,[0x196137]
LEA RCX,[0x1970ac]
MOV ESI,0x1aec
LAB_00138c20:
XOR EAX,EAX
CALL 0x00120b40
|
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::end_object() */
int8 __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::end_object(json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this)
{
long lVar1;
char *pcVar2;
int8 uVar3;
lVar1 = *(long *)(this + 0x10);
if (*(long *)(this + 8) == lVar1) {
pcVar2 = "!ref_stack.empty()";
uVar3 = 0x1aeb;
}
else {
if (**(char **)(lVar1 + -8) == '\x01') {
*(long *)(this + 0x10) = lVar1 + -8;
return CONCAT71((int7)((ulong)(lVar1 + -8) >> 8),1);
}
pcVar2 = "ref_stack.back()->is_object()";
uVar3 = 0x1aec;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",uVar3,
"GGML_ASSERT(%s) failed",pcVar2);
}
| |
48,221 | my_wildcmp_mb_impl | eloqsql/strings/ctype-mb.c | static
int my_wildcmp_mb_impl(CHARSET_INFO *cs,
const char *str,const char *str_end,
const char *wildstr,const char *wildend,
int escape, int w_one, int w_many, int recurse_level)
{
int result= -1; /* Not found, using wildcards */
if (my_string_stack_guard && my_string_stack_guard(recurse_level))
return 1;
while (wildstr != wildend)
{
while (*wildstr != w_many && *wildstr != w_one)
{
int l;
if (*wildstr == escape && wildstr+1 != wildend)
wildstr++;
if ((l = my_ismbchar(cs, wildstr, wildend)))
{
if (str+l > str_end || memcmp(str, wildstr, l) != 0)
return 1;
str += l;
wildstr += l;
}
else
if (str == str_end || likeconv(cs,*wildstr++) != likeconv(cs,*str++))
return(1); /* No match */
if (wildstr == wildend)
return (str != str_end); /* Match if both are at end */
result=1; /* Found an anchor char */
}
if (*wildstr == w_one)
{
do
{
if (str == str_end) /* Skip one char if possible */
return (result);
INC_PTR(cs,str,str_end);
} while (++wildstr < wildend && *wildstr == w_one);
if (wildstr == wildend)
break;
}
if (*wildstr == w_many)
{ /* Found w_many */
uchar cmp;
const char* mb = wildstr;
int mb_len=0;
wildstr++;
/* Remove any '%' and '_' from the wild search string */
for (; wildstr != wildend ; wildstr++)
{
if (*wildstr == w_many)
continue;
if (*wildstr == w_one)
{
if (str == str_end)
return (-1);
INC_PTR(cs,str,str_end);
continue;
}
break; /* Not a wild character */
}
if (wildstr == wildend)
return(0); /* Ok if w_many is last */
if (str == str_end)
return -1;
if ((cmp= *wildstr) == escape && wildstr+1 != wildend)
cmp= *++wildstr;
mb=wildstr;
mb_len= my_ismbchar(cs, wildstr, wildend);
INC_PTR(cs,wildstr,wildend); /* This is compared trough cmp */
cmp=likeconv(cs,cmp);
do
{
for (;;)
{
if (str >= str_end)
return -1;
if (mb_len)
{
if (str+mb_len <= str_end && memcmp(str, mb, mb_len) == 0)
{
str += mb_len;
break;
}
}
else if (!my_ismbchar(cs, str, str_end) &&
likeconv(cs,*str) == cmp)
{
str++;
break;
}
INC_PTR(cs,str, str_end);
}
{
int tmp=my_wildcmp_mb_impl(cs,str,str_end,wildstr,wildend,escape,w_one,
w_many, recurse_level + 1);
if (tmp <= 0)
return (tmp);
}
} while (str != str_end);
return(-1);
}
}
return (str != str_end ? 1 : 0);
} | O3 | c | my_wildcmp_mb_impl:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %r9d, -0x44(%rbp)
movq %r8, -0x40(%rbp)
movq %rcx, %r15
movq %rdx, -0x58(%rbp)
movq %rsi, %r12
movq %rdi, -0x38(%rbp)
movl 0x20(%rbp), %eax
movq %rax, -0x68(%rbp)
leaq 0x339d04(%rip), %rax # 0x3740a8
movq (%rax), %rax
testq %rax, %rax
je 0x3a3bf
movl 0x20(%rbp), %edi
callq *%rax
movl $0x1, %r14d
testl %eax, %eax
jne 0x3a55a
movl 0x10(%rbp), %edi
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
cmpq -0x40(%rbp), %r15
je 0x3a54c
movb (%r15), %al
movsbl %al, %ecx
movl 0x18(%rbp), %edx
cmpl %edx, %ecx
sete %sil
cmpl %edi, %ecx
sete %dl
orb %dl, %sil
movq -0x58(%rbp), %r13
je 0x3a488
testb %dl, %dl
je 0x3a475
incq %r15
movq %r15, %rax
movq -0x38(%rbp), %rbx
cmpq %r13, %r12
je 0x3a55a
movq %rax, %r15
movq 0xb8(%rbx), %rax
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq *0xc0(%rax)
movl %eax, %ecx
movl $0x1, %eax
cmpl $0x2, %ecx
jl 0x3a450
movq 0xb8(%rbx), %rax
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq *0xc0(%rax)
cmpl $0x2, %eax
movl $0x0, %ecx
cmovll %ecx, %eax
addq %rax, %r12
cmpq -0x40(%rbp), %r15
movl 0x10(%rbp), %edi
jae 0x3a468
movsbl (%r15), %ecx
leaq 0x1(%r15), %rax
cmpl %edi, %ecx
je 0x3a401
cmpq -0x40(%rbp), %r15
je 0x3a550
movb (%r15), %al
movsbl %al, %eax
movl 0x18(%rbp), %ecx
cmpl %ecx, %eax
jne 0x3a3c8
jmp 0x3a56c
leaq 0x1(%r15), %rbx
movq -0x40(%rbp), %rdx
cmpq %rdx, %rbx
cmoveq %r15, %rbx
cmpl -0x44(%rbp), %ecx
cmovneq %r15, %rbx
movq -0x38(%rbp), %rdi
movq 0xb8(%rdi), %rax
movq %rbx, %rsi
callq *0xc0(%rax)
cmpl $0x2, %eax
jge 0x3a4ec
movl $0x1, %r14d
cmpq %r13, %r12
je 0x3a55a
movq -0x38(%rbp), %rax
movq 0x58(%rax), %rax
movzbl (%rbx), %ecx
movb (%rax,%rcx), %cl
movzbl (%r12), %edx
cmpb (%rax,%rdx), %cl
movl 0x10(%rbp), %edi
jne 0x3a55a
incq %rbx
incq %r12
movq %rbx, %r15
jmp 0x3a51f
movl %eax, %r15d
movq %r13, %rax
leaq (%r12,%r15), %r13
movl $0x1, %r14d
cmpq %rax, %r13
ja 0x3a55a
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x242d0
testl %eax, %eax
movl 0x10(%rbp), %edi
jne 0x3a55a
addq %r15, %rbx
movq %rbx, %r15
movq %r13, %r12
cmpq -0x40(%rbp), %r15
movq -0x58(%rbp), %r13
je 0x3a550
movb (%r15), %al
movsbl %al, %ecx
cmpl %edi, %ecx
sete %dl
movl 0x18(%rbp), %esi
cmpl %esi, %ecx
je 0x3a3f3
cmpl %edi, %ecx
jne 0x3a488
jmp 0x3a3f3
movq -0x58(%rbp), %r13
xorl %r14d, %r14d
cmpq %r13, %r12
setne %r14b
movl %r14d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1(%r15), %rax
cmpq -0x40(%rbp), %rax
je 0x3a5fc
addq $0x2, %r15
xorl %r13d, %r13d
xorl %r14d, %r14d
movb -0x1(%r15), %bl
movsbl %bl, %eax
movl 0x18(%rbp), %ecx
cmpl %ecx, %eax
je 0x3a5ea
cmpl %edi, %eax
jne 0x3a604
movq -0x58(%rbp), %rbx
cmpq %rbx, %r12
je 0x3a7ce
movq -0x38(%rbp), %rdi
movq 0xb8(%rdi), %rax
movq %r12, %rsi
movq %rbx, %rdx
callq *0xc0(%rax)
movl %eax, %ecx
movl $0x1, %eax
cmpl $0x2, %ecx
jl 0x3a5e4
movq -0x38(%rbp), %rdi
movq 0xb8(%rdi), %rax
movq %r12, %rsi
movq %rbx, %rdx
callq *0xc0(%rax)
cmpl $0x2, %eax
cmovll %r13d, %eax
addq %rax, %r12
movl 0x10(%rbp), %edi
leaq 0x1(%r15), %rax
cmpq -0x40(%rbp), %r15
movq %rax, %r15
jne 0x3a584
jmp 0x3a55a
xorl %r14d, %r14d
jmp 0x3a55a
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
movq -0x58(%rbp), %r13
cmpq %r13, %r12
je 0x3a55a
movzbl %bl, %eax
leaq -0x1(%r15), %rcx
movq %rcx, -0x50(%rbp)
cmpl -0x44(%rbp), %eax
jne 0x3a634
cmpq -0x40(%rbp), %r15
je 0x3a634
movb (%r15), %bl
movq %r15, -0x50(%rbp)
movq -0x38(%rbp), %rdi
movq 0xb8(%rdi), %rax
movq -0x50(%rbp), %rsi
movq -0x40(%rbp), %rdx
callq *0xc0(%rax)
xorl %ecx, %ecx
cmpl $0x2, %eax
movl %eax, %r15d
cmovll %ecx, %eax
movl %eax, -0x60(%rbp)
movq -0x38(%rbp), %rdi
movq 0xb8(%rdi), %rax
movq -0x50(%rbp), %rsi
movq -0x40(%rbp), %rdx
callq *0xc0(%rax)
movl $0x1, %ecx
cmpl $0x2, %eax
jl 0x3a6a4
movq -0x38(%rbp), %rdi
movq 0xb8(%rdi), %rax
movq -0x50(%rbp), %rsi
movq -0x40(%rbp), %rdx
callq *0xc0(%rax)
movl %eax, %ecx
cmpl $0x2, %eax
movl $0x0, %eax
cmovll %eax, %ecx
addq -0x50(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq -0x38(%rbp), %rax
movq 0x58(%rax), %rax
movzbl %bl, %ecx
movb (%rax,%rcx), %al
movb %al, -0x29(%rbp)
movl -0x60(%rbp), %eax
movq %rax, -0x60(%rbp)
movq -0x68(%rbp), %rax
incl %eax
movq %rax, -0x68(%rbp)
cmpq %r13, %r12
jae 0x3a55a
movq %r12, %rbx
cmpl $0x2, %r15d
jge 0x3a711
movq -0x38(%rbp), %rdi
movq 0xb8(%rdi), %rax
movq %rbx, %rsi
movq %r13, %rdx
callq *0xc0(%rax)
cmpl $0x1, %eax
jg 0x3a732
movq -0x38(%rbp), %rax
movq 0x58(%rax), %rax
movzbl (%rbx), %ecx
movb -0x29(%rbp), %dl
cmpb %dl, (%rax,%rcx)
jne 0x3a732
jmp 0x3a788
movq -0x60(%rbp), %rax
leaq (%rbx,%rax), %r12
cmpq %r13, %r12
ja 0x3a732
movq %rbx, %rdi
movq -0x50(%rbp), %rsi
movq -0x60(%rbp), %rdx
callq 0x242d0
testl %eax, %eax
je 0x3a78e
movq -0x38(%rbp), %rdi
movq 0xb8(%rdi), %rax
movq %rbx, %rsi
movq %r13, %rdx
callq *0xc0(%rax)
movl %eax, %ecx
movl $0x1, %eax
cmpl $0x2, %ecx
jl 0x3a777
movq -0x38(%rbp), %rdi
movq 0xb8(%rdi), %rax
movq %rbx, %rsi
movq %r13, %rdx
callq *0xc0(%rax)
cmpl $0x2, %eax
movl $0x0, %ecx
cmovll %ecx, %eax
addq %rax, %rbx
cmpq %r13, %rbx
jb 0x3a6da
jmp 0x3a55a
incq %rbx
movq %rbx, %r12
subq $0x8, %rsp
movq -0x38(%rbp), %rdi
movq %r12, %rsi
movq %r13, %rdx
movq -0x70(%rbp), %rcx
movq -0x40(%rbp), %r8
movl -0x44(%rbp), %r9d
pushq -0x68(%rbp)
movl 0x18(%rbp), %eax
pushq %rax
movl 0x10(%rbp), %eax
pushq %rax
callq 0x3a36f
addq $0x20, %rsp
testl %eax, %eax
jle 0x3a7d9
cmpq %r13, %r12
jne 0x3a6ce
jmp 0x3a55a
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
jmp 0x3a55a
movl %eax, %r14d
jmp 0x3a55a
| my_wildcmp_mb_impl:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov [rbp+var_44], r9d
mov [rbp+var_40], r8
mov r15, rcx
mov [rbp+var_58], rdx
mov r12, rsi
mov [rbp+var_38], rdi
mov eax, [rbp+arg_10]
mov [rbp+var_68], rax
lea rax, my_string_stack_guard
mov rax, [rax]
test rax, rax
jz short loc_3A3BF
mov edi, [rbp+arg_10]
call rax
mov r14d, 1
test eax, eax
jnz loc_3A55A
loc_3A3BF:
mov edi, [rbp+arg_0]
mov r14d, 0FFFFFFFFh
loc_3A3C8:
cmp r15, [rbp+var_40]
jz loc_3A54C
mov al, [r15]
movsx ecx, al
mov edx, [rbp+arg_8]
cmp ecx, edx
setz sil
cmp ecx, edi
setz dl
or sil, dl
mov r13, [rbp+var_58]
jz loc_3A488
loc_3A3F3:
test dl, dl
jz short loc_3A475
inc r15
mov rax, r15
mov rbx, [rbp+var_38]
loc_3A401:
cmp r12, r13
jz loc_3A55A
mov r15, rax
mov rax, [rbx+0B8h]
mov rdi, rbx
mov rsi, r12
mov rdx, r13
call qword ptr [rax+0C0h]
mov ecx, eax
mov eax, 1
cmp ecx, 2
jl short loc_3A450
mov rax, [rbx+0B8h]
mov rdi, rbx
mov rsi, r12
mov rdx, r13
call qword ptr [rax+0C0h]
cmp eax, 2
mov ecx, 0
cmovl eax, ecx
loc_3A450:
add r12, rax
cmp r15, [rbp+var_40]
mov edi, [rbp+arg_0]
jnb short loc_3A468
movsx ecx, byte ptr [r15]
lea rax, [r15+1]
cmp ecx, edi
jz short loc_3A401
loc_3A468:
cmp r15, [rbp+var_40]
jz loc_3A550
mov al, [r15]
loc_3A475:
movsx eax, al
mov ecx, [rbp+arg_8]
cmp eax, ecx
jnz loc_3A3C8
jmp loc_3A56C
loc_3A488:
lea rbx, [r15+1]
mov rdx, [rbp+var_40]
cmp rbx, rdx
cmovz rbx, r15
cmp ecx, [rbp+var_44]
cmovnz rbx, r15
mov rdi, [rbp+var_38]
mov rax, [rdi+0B8h]
mov rsi, rbx
call qword ptr [rax+0C0h]
cmp eax, 2
jge short loc_3A4EC
mov r14d, 1
cmp r12, r13
jz loc_3A55A
mov rax, [rbp+var_38]
mov rax, [rax+58h]
movzx ecx, byte ptr [rbx]
mov cl, [rax+rcx]
movzx edx, byte ptr [r12]
cmp cl, [rax+rdx]
mov edi, [rbp+arg_0]
jnz short loc_3A55A
inc rbx
inc r12
mov r15, rbx
jmp short loc_3A51F
loc_3A4EC:
mov r15d, eax
mov rax, r13
lea r13, [r12+r15]
mov r14d, 1
cmp r13, rax
ja short loc_3A55A
mov rdi, r12
mov rsi, rbx
mov rdx, r15
call _bcmp
test eax, eax
mov edi, [rbp+arg_0]
jnz short loc_3A55A
add rbx, r15
mov r15, rbx
mov r12, r13
loc_3A51F:
cmp r15, [rbp+var_40]
mov r13, [rbp+var_58]
jz short loc_3A550
mov al, [r15]
movsx ecx, al
cmp ecx, edi
setz dl
mov esi, [rbp+arg_8]
cmp ecx, esi
jz loc_3A3F3
cmp ecx, edi
jnz loc_3A488
jmp loc_3A3F3
loc_3A54C:
mov r13, [rbp+var_58]
loc_3A550:
xor r14d, r14d
cmp r12, r13
setnz r14b
loc_3A55A:
mov eax, r14d
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3A56C:
lea rax, [r15+1]
cmp rax, [rbp+var_40]
jz loc_3A5FC
add r15, 2
xor r13d, r13d
xor r14d, r14d
loc_3A584:
mov bl, [r15-1]
movsx eax, bl
mov ecx, [rbp+arg_8]
cmp eax, ecx
jz short loc_3A5EA
cmp eax, edi
jnz short loc_3A604
mov rbx, [rbp+var_58]
cmp r12, rbx
jz loc_3A7CE
mov rdi, [rbp+var_38]
mov rax, [rdi+0B8h]
mov rsi, r12
mov rdx, rbx
call qword ptr [rax+0C0h]
mov ecx, eax
mov eax, 1
cmp ecx, 2
jl short loc_3A5E4
mov rdi, [rbp+var_38]
mov rax, [rdi+0B8h]
mov rsi, r12
mov rdx, rbx
call qword ptr [rax+0C0h]
cmp eax, 2
cmovl eax, r13d
loc_3A5E4:
add r12, rax
mov edi, [rbp+arg_0]
loc_3A5EA:
lea rax, [r15+1]
cmp r15, [rbp+var_40]
mov r15, rax
jnz short loc_3A584
jmp loc_3A55A
loc_3A5FC:
xor r14d, r14d
jmp loc_3A55A
loc_3A604:
mov r14d, 0FFFFFFFFh
mov r13, [rbp+var_58]
cmp r12, r13
jz loc_3A55A
movzx eax, bl
lea rcx, [r15-1]
mov [rbp+var_50], rcx
cmp eax, [rbp+var_44]
jnz short loc_3A634
cmp r15, [rbp+var_40]
jz short loc_3A634
mov bl, [r15]
mov [rbp+var_50], r15
loc_3A634:
mov rdi, [rbp+var_38]
mov rax, [rdi+0B8h]
mov rsi, [rbp+var_50]
mov rdx, [rbp+var_40]
call qword ptr [rax+0C0h]
xor ecx, ecx
cmp eax, 2
mov r15d, eax
cmovl eax, ecx
mov dword ptr [rbp+var_60], eax
mov rdi, [rbp+var_38]
mov rax, [rdi+0B8h]
mov rsi, [rbp+var_50]
mov rdx, [rbp+var_40]
call qword ptr [rax+0C0h]
mov ecx, 1
cmp eax, 2
jl short loc_3A6A4
mov rdi, [rbp+var_38]
mov rax, [rdi+0B8h]
mov rsi, [rbp+var_50]
mov rdx, [rbp+var_40]
call qword ptr [rax+0C0h]
mov ecx, eax
cmp eax, 2
mov eax, 0
cmovl ecx, eax
loc_3A6A4:
add rcx, [rbp+var_50]
mov [rbp+var_70], rcx
mov rax, [rbp+var_38]
mov rax, [rax+58h]
movzx ecx, bl
mov al, [rax+rcx]
mov [rbp+var_29], al
mov eax, dword ptr [rbp+var_60]
mov [rbp+var_60], rax
mov rax, [rbp+var_68]
inc eax
mov [rbp+var_68], rax
loc_3A6CE:
cmp r12, r13
jnb loc_3A55A
mov rbx, r12
loc_3A6DA:
cmp r15d, 2
jge short loc_3A711
mov rdi, [rbp+var_38]
mov rax, [rdi+0B8h]
mov rsi, rbx
mov rdx, r13
call qword ptr [rax+0C0h]
cmp eax, 1
jg short loc_3A732
mov rax, [rbp+var_38]
mov rax, [rax+58h]
movzx ecx, byte ptr [rbx]
mov dl, [rbp+var_29]
cmp [rax+rcx], dl
jnz short loc_3A732
jmp short loc_3A788
loc_3A711:
mov rax, [rbp+var_60]
lea r12, [rbx+rax]
cmp r12, r13
ja short loc_3A732
mov rdi, rbx
mov rsi, [rbp+var_50]
mov rdx, [rbp+var_60]
call _bcmp
test eax, eax
jz short loc_3A78E
loc_3A732:
mov rdi, [rbp+var_38]
mov rax, [rdi+0B8h]
mov rsi, rbx
mov rdx, r13
call qword ptr [rax+0C0h]
mov ecx, eax
mov eax, 1
cmp ecx, 2
jl short loc_3A777
mov rdi, [rbp+var_38]
mov rax, [rdi+0B8h]
mov rsi, rbx
mov rdx, r13
call qword ptr [rax+0C0h]
cmp eax, 2
mov ecx, 0
cmovl eax, ecx
loc_3A777:
add rbx, rax
cmp rbx, r13
jb loc_3A6DA
jmp loc_3A55A
loc_3A788:
inc rbx
mov r12, rbx
loc_3A78E:
sub rsp, 8
mov rdi, [rbp+var_38]
mov rsi, r12
mov rdx, r13
mov rcx, [rbp+var_70]
mov r8, [rbp+var_40]
mov r9d, [rbp+var_44]
push [rbp+var_68]
mov eax, [rbp+arg_8]
push rax
mov eax, [rbp+arg_0]
push rax
call my_wildcmp_mb_impl
add rsp, 20h
test eax, eax
jle short loc_3A7D9
cmp r12, r13
jnz loc_3A6CE
jmp loc_3A55A
loc_3A7CE:
mov r14d, 0FFFFFFFFh
jmp loc_3A55A
loc_3A7D9:
mov r14d, eax
jmp loc_3A55A
| long long my_wildcmp_mb_impl(
long long a1,
unsigned __int8 *a2,
unsigned __int8 *a3,
char *a4,
char *a5,
int a6,
int a7,
int a8,
unsigned int a9)
{
unsigned int v11; // r14d
int v12; // edi
char v13; // al
int v14; // ecx
bool v15; // dl
unsigned __int8 *v16; // r13
char *v17; // rax
int v18; // ecx
long long v19; // rax
unsigned __int8 *v20; // rbx
int v21; // eax
long long v22; // r15
unsigned __int8 *v23; // rax
unsigned __int8 *v24; // r13
char *v26; // r15
unsigned __int8 v27; // bl
int v28; // ecx
long long v29; // rax
int v31; // eax
int v32; // r15d
int v33; // eax
int v34; // ecx
unsigned __int8 *v35; // rbx
int v36; // ecx
long long v37; // rax
int v38; // eax
int v39; // [rsp+0h] [rbp-70h]
unsigned int v40; // [rsp+10h] [rbp-60h]
char *v42; // [rsp+20h] [rbp-50h]
char v46; // [rsp+47h] [rbp-29h]
if ( !my_string_stack_guard || (v11 = 1, !(unsigned int)my_string_stack_guard(a9)) )
{
v12 = a7;
v11 = -1;
do
{
if ( a4 == a5 )
{
v16 = a3;
return a2 != v16;
}
v13 = *a4;
v14 = *a4;
v15 = v14 == v12;
v16 = a3;
if ( v14 != v12 && v14 != a8 )
{
do
{
v20 = (unsigned __int8 *)(a4 + 1);
if ( a4 + 1 == a5 )
v20 = (unsigned __int8 *)a4;
if ( v14 != a6 )
v20 = (unsigned __int8 *)a4;
v21 = (*(long long ( **)(long long, unsigned __int8 *))(*(_QWORD *)(a1 + 184) + 192LL))(a1, v20);
if ( v21 >= 2 )
{
v22 = (unsigned int)v21;
v23 = v16;
v24 = &a2[v22];
v11 = 1;
if ( &a2[v22] > v23 )
return v11;
v12 = a7;
if ( (unsigned int)bcmp(a2, v20, v22) )
return v11;
a4 = (char *)&v20[v22];
a2 = v24;
}
else
{
v11 = 1;
if ( a2 == v16 )
return v11;
v12 = a7;
if ( *(_BYTE *)(*(_QWORD *)(a1 + 88) + *v20) != *(_BYTE *)(*(_QWORD *)(a1 + 88) + *a2) )
return v11;
++a2;
a4 = (char *)(v20 + 1);
}
v16 = a3;
if ( a4 == a5 )
return a2 != v16;
v13 = *a4;
v14 = *a4;
v15 = v14 == v12;
}
while ( v14 != a8 && v14 != v12 );
}
if ( v15 )
{
v17 = a4 + 1;
do
{
if ( a2 == v16 )
return v11;
a4 = v17;
v18 = (*(long long ( **)(long long, unsigned __int8 *, unsigned __int8 *))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
a2,
v16);
v19 = 1LL;
if ( v18 >= 2 )
{
v19 = (*(long long ( **)(long long, unsigned __int8 *, unsigned __int8 *))(*(_QWORD *)(a1 + 184)
+ 192LL))(
a1,
a2,
v16);
if ( (int)v19 < 2 )
v19 = 0LL;
}
a2 += v19;
v12 = a7;
if ( a4 >= a5 )
break;
v17 = a4 + 1;
}
while ( *a4 == a7 );
if ( a4 == a5 )
return a2 != v16;
v13 = *a4;
}
}
while ( v13 != a8 );
if ( a4 + 1 == a5 )
{
return 0;
}
else
{
v26 = a4 + 2;
v11 = 0;
while ( 1 )
{
v27 = *(v26 - 1);
if ( (char)v27 == a8 )
goto LABEL_45;
if ( (char)v27 != v12 )
break;
if ( a2 == a3 )
return (unsigned int)-1;
v28 = (*(long long ( **)(long long, unsigned __int8 *, unsigned __int8 *))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
a2,
a3);
v29 = 1LL;
if ( v28 >= 2 )
{
v29 = (*(long long ( **)(long long, unsigned __int8 *, unsigned __int8 *))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
a2,
a3);
if ( (int)v29 < 2 )
v29 = 0LL;
}
a2 += v29;
v12 = a7;
LABEL_45:
if ( v26++ == a5 )
return v11;
}
v11 = -1;
if ( a2 != a3 )
{
v42 = v26 - 1;
if ( v27 == a6 && v26 != a5 )
{
v27 = *v26;
v42 = v26;
}
v31 = (*(long long ( **)(long long, char *, char *))(*(_QWORD *)(a1 + 184) + 192LL))(a1, v42, a5);
v32 = v31;
if ( v31 < 2 )
v31 = 0;
v40 = v31;
v33 = (*(long long ( **)(long long, char *, char *))(*(_QWORD *)(a1 + 184) + 192LL))(a1, v42, a5);
v34 = 1;
if ( v33 >= 2 )
{
v34 = (*(long long ( **)(long long, char *, char *, long long))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
v42,
a5,
1LL);
if ( v34 < 2 )
v34 = 0;
}
v39 = (_DWORD)v42 + v34;
v46 = *(_BYTE *)(*(_QWORD *)(a1 + 88) + v27);
do
{
if ( a2 >= a3 )
return v11;
v35 = a2;
while ( v32 >= 2 )
{
a2 = &v35[v40];
if ( a2 <= a3 && !(unsigned int)bcmp(v35, v42, v40) )
goto LABEL_71;
LABEL_66:
v36 = (*(long long ( **)(long long, unsigned __int8 *, unsigned __int8 *))(*(_QWORD *)(a1 + 184)
+ 192LL))(
a1,
v35,
a3);
v37 = 1LL;
if ( v36 >= 2 )
{
v37 = (*(long long ( **)(long long, unsigned __int8 *, unsigned __int8 *))(*(_QWORD *)(a1 + 184)
+ 192LL))(
a1,
v35,
a3);
if ( (int)v37 < 2 )
v37 = 0LL;
}
v35 += v37;
if ( v35 >= a3 )
return v11;
}
if ( (*(int ( **)(long long, unsigned __int8 *, unsigned __int8 *))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
v35,
a3) > 1
|| *(_BYTE *)(*(_QWORD *)(a1 + 88) + *v35) != v46 )
{
goto LABEL_66;
}
a2 = v35 + 1;
LABEL_71:
v38 = my_wildcmp_mb_impl(a1, (_DWORD)a2, (_DWORD)a3, v39, (_DWORD)a5, a6, a7, a8, a9 + 1);
if ( v38 <= 0 )
return (unsigned int)v38;
}
while ( a2 != a3 );
}
}
}
return v11;
}
| my_wildcmp_mb_impl:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV dword ptr [RBP + -0x44],R9D
MOV qword ptr [RBP + -0x40],R8
MOV R15,RCX
MOV qword ptr [RBP + -0x58],RDX
MOV R12,RSI
MOV qword ptr [RBP + -0x38],RDI
MOV EAX,dword ptr [RBP + 0x20]
MOV qword ptr [RBP + -0x68],RAX
LEA RAX,[0x4740a8]
MOV RAX,qword ptr [RAX]
TEST RAX,RAX
JZ 0x0013a3bf
MOV EDI,dword ptr [RBP + 0x20]
CALL RAX
MOV R14D,0x1
TEST EAX,EAX
JNZ 0x0013a55a
LAB_0013a3bf:
MOV EDI,dword ptr [RBP + 0x10]
MOV R14D,0xffffffff
LAB_0013a3c8:
CMP R15,qword ptr [RBP + -0x40]
JZ 0x0013a54c
MOV AL,byte ptr [R15]
MOVSX ECX,AL
MOV EDX,dword ptr [RBP + 0x18]
CMP ECX,EDX
SETZ SIL
CMP ECX,EDI
SETZ DL
OR SIL,DL
MOV R13,qword ptr [RBP + -0x58]
JZ 0x0013a488
LAB_0013a3f3:
TEST DL,DL
JZ 0x0013a475
INC R15
MOV RAX,R15
MOV RBX,qword ptr [RBP + -0x38]
LAB_0013a401:
CMP R12,R13
JZ 0x0013a55a
MOV R15,RAX
MOV RAX,qword ptr [RBX + 0xb8]
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R13
CALL qword ptr [RAX + 0xc0]
MOV ECX,EAX
MOV EAX,0x1
CMP ECX,0x2
JL 0x0013a450
MOV RAX,qword ptr [RBX + 0xb8]
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R13
CALL qword ptr [RAX + 0xc0]
CMP EAX,0x2
MOV ECX,0x0
CMOVL EAX,ECX
LAB_0013a450:
ADD R12,RAX
CMP R15,qword ptr [RBP + -0x40]
MOV EDI,dword ptr [RBP + 0x10]
JNC 0x0013a468
MOVSX ECX,byte ptr [R15]
LEA RAX,[R15 + 0x1]
CMP ECX,EDI
JZ 0x0013a401
LAB_0013a468:
CMP R15,qword ptr [RBP + -0x40]
JZ 0x0013a550
MOV AL,byte ptr [R15]
LAB_0013a475:
MOVSX EAX,AL
MOV ECX,dword ptr [RBP + 0x18]
CMP EAX,ECX
JNZ 0x0013a3c8
JMP 0x0013a56c
LAB_0013a488:
LEA RBX,[R15 + 0x1]
MOV RDX,qword ptr [RBP + -0x40]
CMP RBX,RDX
CMOVZ RBX,R15
CMP ECX,dword ptr [RBP + -0x44]
CMOVNZ RBX,R15
MOV RDI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RDI + 0xb8]
MOV RSI,RBX
CALL qword ptr [RAX + 0xc0]
CMP EAX,0x2
JGE 0x0013a4ec
MOV R14D,0x1
CMP R12,R13
JZ 0x0013a55a
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x58]
MOVZX ECX,byte ptr [RBX]
MOV CL,byte ptr [RAX + RCX*0x1]
MOVZX EDX,byte ptr [R12]
CMP CL,byte ptr [RAX + RDX*0x1]
MOV EDI,dword ptr [RBP + 0x10]
JNZ 0x0013a55a
INC RBX
INC R12
MOV R15,RBX
JMP 0x0013a51f
LAB_0013a4ec:
MOV R15D,EAX
MOV RAX,R13
LEA R13,[R12 + R15*0x1]
MOV R14D,0x1
CMP R13,RAX
JA 0x0013a55a
MOV RDI,R12
MOV RSI,RBX
MOV RDX,R15
CALL 0x001242d0
TEST EAX,EAX
MOV EDI,dword ptr [RBP + 0x10]
JNZ 0x0013a55a
ADD RBX,R15
MOV R15,RBX
MOV R12,R13
LAB_0013a51f:
CMP R15,qword ptr [RBP + -0x40]
MOV R13,qword ptr [RBP + -0x58]
JZ 0x0013a550
MOV AL,byte ptr [R15]
MOVSX ECX,AL
CMP ECX,EDI
SETZ DL
MOV ESI,dword ptr [RBP + 0x18]
CMP ECX,ESI
JZ 0x0013a3f3
CMP ECX,EDI
JNZ 0x0013a488
JMP 0x0013a3f3
LAB_0013a54c:
MOV R13,qword ptr [RBP + -0x58]
LAB_0013a550:
XOR R14D,R14D
CMP R12,R13
SETNZ R14B
LAB_0013a55a:
MOV EAX,R14D
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0013a56c:
LEA RAX,[R15 + 0x1]
CMP RAX,qword ptr [RBP + -0x40]
JZ 0x0013a5fc
ADD R15,0x2
XOR R13D,R13D
XOR R14D,R14D
LAB_0013a584:
MOV BL,byte ptr [R15 + -0x1]
MOVSX EAX,BL
MOV ECX,dword ptr [RBP + 0x18]
CMP EAX,ECX
JZ 0x0013a5ea
CMP EAX,EDI
JNZ 0x0013a604
MOV RBX,qword ptr [RBP + -0x58]
CMP R12,RBX
JZ 0x0013a7ce
MOV RDI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RDI + 0xb8]
MOV RSI,R12
MOV RDX,RBX
CALL qword ptr [RAX + 0xc0]
MOV ECX,EAX
MOV EAX,0x1
CMP ECX,0x2
JL 0x0013a5e4
MOV RDI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RDI + 0xb8]
MOV RSI,R12
MOV RDX,RBX
CALL qword ptr [RAX + 0xc0]
CMP EAX,0x2
CMOVL EAX,R13D
LAB_0013a5e4:
ADD R12,RAX
MOV EDI,dword ptr [RBP + 0x10]
LAB_0013a5ea:
LEA RAX,[R15 + 0x1]
CMP R15,qword ptr [RBP + -0x40]
MOV R15,RAX
JNZ 0x0013a584
JMP 0x0013a55a
LAB_0013a5fc:
XOR R14D,R14D
JMP 0x0013a55a
LAB_0013a604:
MOV R14D,0xffffffff
MOV R13,qword ptr [RBP + -0x58]
CMP R12,R13
JZ 0x0013a55a
MOVZX EAX,BL
LEA RCX,[R15 + -0x1]
MOV qword ptr [RBP + -0x50],RCX
CMP EAX,dword ptr [RBP + -0x44]
JNZ 0x0013a634
CMP R15,qword ptr [RBP + -0x40]
JZ 0x0013a634
MOV BL,byte ptr [R15]
MOV qword ptr [RBP + -0x50],R15
LAB_0013a634:
MOV RDI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RDI + 0xb8]
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x40]
CALL qword ptr [RAX + 0xc0]
XOR ECX,ECX
CMP EAX,0x2
MOV R15D,EAX
CMOVL EAX,ECX
MOV dword ptr [RBP + -0x60],EAX
MOV RDI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RDI + 0xb8]
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x40]
CALL qword ptr [RAX + 0xc0]
MOV ECX,0x1
CMP EAX,0x2
JL 0x0013a6a4
MOV RDI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RDI + 0xb8]
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x40]
CALL qword ptr [RAX + 0xc0]
MOV ECX,EAX
CMP EAX,0x2
MOV EAX,0x0
CMOVL ECX,EAX
LAB_0013a6a4:
ADD RCX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x70],RCX
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x58]
MOVZX ECX,BL
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RBP + -0x29],AL
MOV EAX,dword ptr [RBP + -0x60]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x68]
INC EAX
MOV qword ptr [RBP + -0x68],RAX
LAB_0013a6ce:
CMP R12,R13
JNC 0x0013a55a
MOV RBX,R12
LAB_0013a6da:
CMP R15D,0x2
JGE 0x0013a711
MOV RDI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RDI + 0xb8]
MOV RSI,RBX
MOV RDX,R13
CALL qword ptr [RAX + 0xc0]
CMP EAX,0x1
JG 0x0013a732
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x58]
MOVZX ECX,byte ptr [RBX]
MOV DL,byte ptr [RBP + -0x29]
CMP byte ptr [RAX + RCX*0x1],DL
JNZ 0x0013a732
JMP 0x0013a788
LAB_0013a711:
MOV RAX,qword ptr [RBP + -0x60]
LEA R12,[RBX + RAX*0x1]
CMP R12,R13
JA 0x0013a732
MOV RDI,RBX
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x60]
CALL 0x001242d0
TEST EAX,EAX
JZ 0x0013a78e
LAB_0013a732:
MOV RDI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RDI + 0xb8]
MOV RSI,RBX
MOV RDX,R13
CALL qword ptr [RAX + 0xc0]
MOV ECX,EAX
MOV EAX,0x1
CMP ECX,0x2
JL 0x0013a777
MOV RDI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RDI + 0xb8]
MOV RSI,RBX
MOV RDX,R13
CALL qword ptr [RAX + 0xc0]
CMP EAX,0x2
MOV ECX,0x0
CMOVL EAX,ECX
LAB_0013a777:
ADD RBX,RAX
CMP RBX,R13
JC 0x0013a6da
JMP 0x0013a55a
LAB_0013a788:
INC RBX
MOV R12,RBX
LAB_0013a78e:
SUB RSP,0x8
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,R12
MOV RDX,R13
MOV RCX,qword ptr [RBP + -0x70]
MOV R8,qword ptr [RBP + -0x40]
MOV R9D,dword ptr [RBP + -0x44]
PUSH qword ptr [RBP + -0x68]
MOV EAX,dword ptr [RBP + 0x18]
PUSH RAX
MOV EAX,dword ptr [RBP + 0x10]
PUSH RAX
CALL 0x0013a36f
ADD RSP,0x20
TEST EAX,EAX
JLE 0x0013a7d9
CMP R12,R13
JNZ 0x0013a6ce
JMP 0x0013a55a
LAB_0013a7ce:
MOV R14D,0xffffffff
JMP 0x0013a55a
LAB_0013a7d9:
MOV R14D,EAX
JMP 0x0013a55a
|
uint my_wildcmp_mb_impl(long param_1,byte *param_2,byte *param_3,byte *param_4,byte *param_5,
uint param_6,uint param_7,uint param_8,int param_9)
{
char cVar1;
byte bVar2;
int iVar3;
uint uVar4;
uint uVar5;
ulong uVar6;
ulong uVar7;
uint uVar8;
byte *__s2;
byte *pbVar9;
bool bVar10;
byte *local_58;
if ((my_string_stack_guard != (code *)0x0) &&
(iVar3 = (*my_string_stack_guard)(param_9), iVar3 != 0)) {
return 1;
}
uVar4 = 0xffffffff;
do {
if (param_4 == param_5) {
LAB_0013a550:
return (uint)(param_2 != param_3);
}
bVar2 = *param_4;
uVar8 = (uint)(char)bVar2;
bVar10 = uVar8 == param_7;
pbVar9 = param_2;
if (uVar8 != param_8 && !bVar10) {
do {
__s2 = param_4 + 1;
if (param_4 + 1 == param_5) {
__s2 = param_4;
}
if (uVar8 != param_6) {
__s2 = param_4;
}
uVar4 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,__s2);
if ((int)uVar4 < 2) {
if (pbVar9 == param_3) {
return 1;
}
if (*(char *)(*(long *)(param_1 + 0x58) + (ulong)*__s2) !=
*(char *)(*(long *)(param_1 + 0x58) + (ulong)*pbVar9)) {
return 1;
}
param_4 = __s2 + 1;
param_2 = pbVar9 + 1;
}
else {
uVar6 = (ulong)uVar4;
param_2 = pbVar9 + uVar6;
if (param_3 < param_2) {
return 1;
}
iVar3 = bcmp(pbVar9,__s2,uVar6);
if (iVar3 != 0) {
return 1;
}
param_4 = __s2 + uVar6;
}
uVar4 = 1;
if (param_4 == param_5) goto LAB_0013a550;
bVar2 = *param_4;
uVar8 = (uint)(char)bVar2;
bVar10 = uVar8 == param_7;
} while ((uVar8 != param_8) && (pbVar9 = param_2, uVar8 != param_7));
}
if (bVar10) {
do {
param_4 = param_4 + 1;
if (param_2 == param_3) {
return uVar4;
}
iVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_2,param_3);
uVar6 = 1;
if (1 < iVar3) {
uVar8 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_2,param_3);
uVar6 = (ulong)uVar8;
if ((int)uVar8 < 2) {
uVar6 = 0;
}
}
param_2 = param_2 + uVar6;
} while ((param_4 < param_5) && ((int)(char)*param_4 == param_7));
if (param_4 == param_5) goto LAB_0013a550;
bVar2 = *param_4;
}
} while ((int)(char)bVar2 != param_8);
if (param_4 + 1 != param_5) {
pbVar9 = param_4 + 2;
do {
bVar2 = pbVar9[-1];
if ((int)(char)bVar2 != param_8) {
if ((int)(char)bVar2 != param_7) {
if (param_2 == param_3) {
return 0xffffffff;
}
local_58 = pbVar9 + -1;
if ((bVar2 == param_6) && (pbVar9 != param_5)) {
bVar2 = *pbVar9;
local_58 = pbVar9;
}
uVar8 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,local_58,param_5);
uVar4 = uVar8;
if ((int)uVar8 < 2) {
uVar4 = 0;
}
iVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,local_58,param_5);
uVar6 = 1;
if (1 < iVar3) {
uVar5 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,local_58,param_5);
uVar6 = (ulong)uVar5;
if ((int)uVar5 < 2) {
uVar6 = 0;
}
}
cVar1 = *(char *)(*(long *)(param_1 + 0x58) + (ulong)bVar2);
goto LAB_0013a6ce;
}
if (param_2 == param_3) {
return 0xffffffff;
}
iVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_2,param_3);
uVar6 = 1;
if (1 < iVar3) {
uVar4 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_2,param_3);
uVar6 = (ulong)uVar4;
if ((int)uVar4 < 2) {
uVar6 = 0;
}
}
param_2 = param_2 + uVar6;
}
bVar10 = pbVar9 != param_5;
pbVar9 = pbVar9 + 1;
} while (bVar10);
}
return 0;
LAB_0013a6ce:
if (param_3 <= param_2) {
return 0xffffffff;
}
do {
if ((int)uVar8 < 2) {
iVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_2,param_3);
if ((iVar3 < 2) && (*(char *)(*(long *)(param_1 + 0x58) + (ulong)*param_2) == cVar1)) break;
}
else {
pbVar9 = param_2 + uVar4;
if ((pbVar9 <= param_3) && (iVar3 = bcmp(param_2,local_58,(ulong)uVar4), iVar3 == 0))
goto LAB_0013a78e;
}
iVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_2,param_3);
uVar7 = 1;
if (1 < iVar3) {
uVar5 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_2,param_3);
uVar7 = (ulong)uVar5;
if ((int)uVar5 < 2) {
uVar7 = 0;
}
}
param_2 = param_2 + uVar7;
if (param_3 <= param_2) {
return 0xffffffff;
}
} while( true );
pbVar9 = param_2 + 1;
LAB_0013a78e:
uVar5 = my_wildcmp_mb_impl(param_1,pbVar9,param_3,local_58 + uVar6,param_5,param_6,param_7,param_8
,param_9 + 1);
if ((int)uVar5 < 1) {
return uVar5;
}
param_2 = pbVar9;
if (pbVar9 == param_3) {
return 0xffffffff;
}
goto LAB_0013a6ce;
}
| |
48,222 | psi_cond_timedwait | eloqsql/mysys/my_thr_init.c | ATTRIBUTE_COLD int psi_cond_timedwait(mysql_cond_t *that, mysql_mutex_t *mutex,
const struct timespec *abstime,
const char *file, uint line)
{
PSI_cond_locker_state state;
PSI_cond_locker *locker= PSI_COND_CALL(start_cond_wait)
(&state, that->m_psi, mutex->m_psi, PSI_COND_TIMEDWAIT, file, line);
int result= my_cond_timedwait(&that->m_cond, &mutex->m_mutex, abstime);
if (psi_likely(locker))
PSI_COND_CALL(end_cond_wait)(locker, result);
return result;
} | O0 | c | psi_cond_timedwait:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
leaq 0x1b966d(%rip), %rax # 0x214320
movq (%rax), %rax
movq 0x1c0(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x30(%rcx), %rsi
movq -0x10(%rbp), %rcx
movq 0x40(%rcx), %rdx
movq -0x20(%rbp), %r8
movl -0x24(%rbp), %r9d
leaq -0x60(%rbp), %rdi
movl $0x1, %ecx
callq *%rax
movq %rax, -0x68(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x26510
movl %eax, -0x6c(%rbp)
cmpq $0x0, -0x68(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x5ad27
leaq 0x1b960c(%rip), %rax # 0x214320
movq (%rax), %rax
movq 0x1c8(%rax), %rax
movq -0x68(%rbp), %rdi
movl -0x6c(%rbp), %esi
callq *%rax
movl -0x6c(%rbp), %eax
addq $0x70, %rsp
popq %rbp
retq
| psi_cond_timedwait:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_24], r8d
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1C0h]
mov rcx, [rbp+var_8]
mov rsi, [rcx+30h]
mov rcx, [rbp+var_10]
mov rdx, [rcx+40h]
mov r8, [rbp+var_20]
mov r9d, [rbp+var_24]
lea rdi, [rbp+var_60]
mov ecx, 1
call rax
mov [rbp+var_68], rax
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
call _pthread_cond_timedwait
mov [rbp+var_6C], eax
cmp [rbp+var_68], 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_5AD27
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1C8h]
mov rdi, [rbp+var_68]
mov esi, [rbp+var_6C]
call rax
loc_5AD27:
mov eax, [rbp+var_6C]
add rsp, 70h
pop rbp
retn
| long long psi_cond_timedwait(long long a1, long long a2, long long a3, long long a4, unsigned int a5)
{
unsigned int v6; // [rsp+4h] [rbp-6Ch]
long long v7; // [rsp+8h] [rbp-68h]
_BYTE v8[60]; // [rsp+10h] [rbp-60h] BYREF
unsigned int v9; // [rsp+4Ch] [rbp-24h]
long long v10; // [rsp+50h] [rbp-20h]
long long v11; // [rsp+58h] [rbp-18h]
long long v12; // [rsp+60h] [rbp-10h]
long long v13; // [rsp+68h] [rbp-8h]
v13 = a1;
v12 = a2;
v11 = a3;
v10 = a4;
v9 = a5;
v7 = ((long long ( *)(_BYTE *, _QWORD, _QWORD, long long, long long, _QWORD))PSI_server[56])(
v8,
*(_QWORD *)(a1 + 48),
*(_QWORD *)(a2 + 64),
1LL,
a4,
a5);
v6 = pthread_cond_timedwait(v13, v12, v11);
if ( v7 )
((void ( *)(long long, _QWORD))PSI_server[57])(v7, v6);
return v6;
}
| psi_cond_timedwait:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV dword ptr [RBP + -0x24],R8D
LEA RAX,[0x314320]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1c0]
MOV RCX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RCX + 0x30]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RCX + 0x40]
MOV R8,qword ptr [RBP + -0x20]
MOV R9D,dword ptr [RBP + -0x24]
LEA RDI,[RBP + -0x60]
MOV ECX,0x1
CALL RAX
MOV qword ptr [RBP + -0x68],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x00126510
MOV dword ptr [RBP + -0x6c],EAX
CMP qword ptr [RBP + -0x68],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x0015ad27
LEA RAX,[0x314320]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1c8]
MOV RDI,qword ptr [RBP + -0x68]
MOV ESI,dword ptr [RBP + -0x6c]
CALL RAX
LAB_0015ad27:
MOV EAX,dword ptr [RBP + -0x6c]
ADD RSP,0x70
POP RBP
RET
|
int psi_cond_timedwait(pthread_cond_t *param_1,pthread_mutex_t *param_2,timespec *param_3,
int8 param_4,int4 param_5)
{
int iVar1;
long lVar2;
int1 local_68 [60];
int4 local_2c;
int8 local_28;
timespec *local_20;
pthread_mutex_t *local_18;
pthread_cond_t *local_10;
local_2c = param_5;
local_28 = param_4;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
lVar2 = (**(code **)(PSI_server + 0x1c0))
(local_68,param_1[1].__align,*(int8 *)((long)param_2 + 0x40),1,param_4,
param_5);
iVar1 = pthread_cond_timedwait(local_10,local_18,local_20);
if (lVar2 != 0) {
(**(code **)(PSI_server + 0x1c8))(lVar2,iVar1);
}
return iVar1;
}
| |
48,223 | ggml_fp32_to_bf16_row_ref | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c | void ggml_fp32_to_bf16_row_ref(const float * x, ggml_bf16_t * y, int64_t n) {
for (int i = 0; i < n; i++) {
y[i] = ggml_compute_fp32_to_bf16(x[i]);
}
} | O1 | c | ggml_fp32_to_bf16_row_ref:
testq %rdx, %rdx
jle 0x1af02
xorl %eax, %eax
movl (%rdi,%rax,4), %r8d
movl %r8d, %r9d
andl $0x7fffffff, %r9d # imm = 0x7FFFFFFF
movl %r8d, %ecx
shrl $0x10, %ecx
cmpl $0x7f800001, %r9d # imm = 0x7F800001
jb 0x1aee7
orl $0x40, %ecx
jmp 0x1aef6
andl $0x1, %ecx
addl %r8d, %ecx
addl $0x7fff, %ecx # imm = 0x7FFF
shrl $0x10, %ecx
movw %cx, (%rsi,%rax,2)
incq %rax
cmpq %rax, %rdx
jne 0x1aec5
retq
| ggml_fp32_to_bf16_row_ref:
test rdx, rdx
jle short locret_1AF02
xor eax, eax
loc_1AEC5:
mov r8d, [rdi+rax*4]
mov r9d, r8d
and r9d, 7FFFFFFFh
mov ecx, r8d
shr ecx, 10h
cmp r9d, 7F800001h
jb short loc_1AEE7
or ecx, 40h
jmp short loc_1AEF6
loc_1AEE7:
and ecx, 1
add ecx, r8d
add ecx, 7FFFh
shr ecx, 10h
loc_1AEF6:
mov [rsi+rax*2], cx
inc rax
cmp rdx, rax
jnz short loc_1AEC5
locret_1AF02:
retn
| void ggml_fp32_to_bf16_row_ref(long long a1, long long a2, long long a3)
{
long long i; // rax
int v4; // ecx
if ( a3 > 0 )
{
for ( i = 0LL; i != a3; ++i )
{
v4 = HIWORD(*(_DWORD *)(a1 + 4 * i));
if ( (*(_DWORD *)(a1 + 4 * i) & 0x7FFFFFFFu) < 0x7F800001 )
v4 = (*(_DWORD *)(a1 + 4 * i) + (v4 & 1u) + 0x7FFF) >> 16;
else
LOWORD(v4) = v4 | 0x40;
*(_WORD *)(a2 + 2 * i) = v4;
}
}
}
| ggml_fp32_to_bf16_row_ref:
TEST RDX,RDX
JLE 0x0011af02
XOR EAX,EAX
LAB_0011aec5:
MOV R8D,dword ptr [RDI + RAX*0x4]
MOV R9D,R8D
AND R9D,0x7fffffff
MOV ECX,R8D
SHR ECX,0x10
CMP R9D,0x7f800001
JC 0x0011aee7
OR ECX,0x40
JMP 0x0011aef6
LAB_0011aee7:
AND ECX,0x1
ADD ECX,R8D
ADD ECX,0x7fff
SHR ECX,0x10
LAB_0011aef6:
MOV word ptr [RSI + RAX*0x2],CX
INC RAX
CMP RDX,RAX
JNZ 0x0011aec5
LAB_0011af02:
RET
|
void ggml_fp32_to_bf16_row_ref(long param_1,long param_2,long param_3)
{
uint uVar1;
long lVar2;
ushort uVar3;
if (0 < param_3) {
lVar2 = 0;
do {
uVar1 = *(uint *)(param_1 + lVar2 * 4);
if ((uVar1 & 0x7fffffff) < 0x7f800001) {
uVar3 = (ushort)((uVar1 >> 0x10 & 1) + uVar1 + 0x7fff >> 0x10);
}
else {
uVar3 = (ushort)(uVar1 >> 0x10) | 0x40;
}
*(ushort *)(param_2 + lVar2 * 2) = uVar3;
lVar2 = lVar2 + 1;
} while (param_3 != lVar2);
}
return;
}
| |
48,224 | check_mb_gb18030_valid | eloqsql/libmariadb/libmariadb/ma_charset.c | static unsigned int check_mb_gb18030_valid(const char * start, const char * end)
{
if (end - start <= 1 || !is_gb18030_odd(start[0])) {
return 0;
}
if (is_gb18030_even_2(start[1])) {
return 2;
} else if (end - start > 3 && is_gb18030_even_4(start[1]) && is_gb18030_odd(start[2]) && is_gb18030_even_4(start[3])) {
return 4;
}
return 0;
} | O3 | c | check_mb_gb18030_valid:
pushq %rbp
movq %rsp, %rbp
subq %rdi, %rsi
xorl %eax, %eax
cmpq $0x2, %rsi
jl 0x30334
movb (%rdi), %cl
incb %cl
cmpb $-0x7e, %cl
jb 0x30334
movb 0x1(%rdi), %cl
leal -0x7f(%rcx), %eax
cmpb $-0x3f, %al
setae %dl
cmpb $-0x1, %cl
setl %r8b
movl $0x2, %eax
orb %dl, %r8b
jne 0x30334
cmpq $0x4, %rsi
setb %al
addb $-0x30, %cl
cmpb $0xa, %cl
setae %cl
orb %al, %cl
jne 0x30332
movb 0x2(%rdi), %al
incb %al
cmpb $-0x7e, %al
jb 0x30332
movb 0x3(%rdi), %cl
addb $-0x30, %cl
movl $0x4, %eax
cmpb $0xa, %cl
jb 0x30334
xorl %eax, %eax
popq %rbp
retq
| check_mb_gb18030_valid:
push rbp
mov rbp, rsp
sub rsi, rdi
xor eax, eax
cmp rsi, 2
jl short loc_30334
mov cl, [rdi]
inc cl
cmp cl, 82h
jb short loc_30334
mov cl, [rdi+1]
lea eax, [rcx-7Fh]
cmp al, 0C1h
setnb dl
cmp cl, 0FFh
setl r8b
mov eax, 2
or r8b, dl
jnz short loc_30334
cmp rsi, 4
setb al
add cl, 0D0h
cmp cl, 0Ah
setnb cl
or cl, al
jnz short loc_30332
mov al, [rdi+2]
inc al
cmp al, 82h
jb short loc_30332
mov cl, [rdi+3]
add cl, 0D0h
mov eax, 4
cmp cl, 0Ah
jb short loc_30334
loc_30332:
xor eax, eax
loc_30334:
pop rbp
retn
| long long check_mb_gb18030_valid(_BYTE *a1, long long a2)
{
long long v2; // rsi
long long result; // rax
char v4; // cl
v2 = a2 - (_QWORD)a1;
result = 0LL;
if ( v2 >= 2 && (unsigned __int8)(*a1 + 1) >= 0x82u )
{
v4 = a1[1];
result = 2LL;
if ( (unsigned __int8)(v4 - 127) < 0xC1u && v4 >= -1 )
{
if ( (unsigned long long)v2 < 4 || (unsigned __int8)(v4 - 48) >= 0xAu )
return 0LL;
if ( (unsigned __int8)(a1[2] + 1) < 0x82u )
return 0LL;
result = 4LL;
if ( (unsigned __int8)(a1[3] - 48) >= 0xAu )
return 0LL;
}
}
return result;
}
| check_mb_gb18030_valid:
PUSH RBP
MOV RBP,RSP
SUB RSI,RDI
XOR EAX,EAX
CMP RSI,0x2
JL 0x00130334
MOV CL,byte ptr [RDI]
INC CL
CMP CL,0x82
JC 0x00130334
MOV CL,byte ptr [RDI + 0x1]
LEA EAX,[RCX + -0x7f]
CMP AL,0xc1
SETNC DL
CMP CL,0xff
SETL R8B
MOV EAX,0x2
OR R8B,DL
JNZ 0x00130334
CMP RSI,0x4
SETC AL
ADD CL,0xd0
CMP CL,0xa
SETNC CL
OR CL,AL
JNZ 0x00130332
MOV AL,byte ptr [RDI + 0x2]
INC AL
CMP AL,0x82
JC 0x00130332
MOV CL,byte ptr [RDI + 0x3]
ADD CL,0xd0
MOV EAX,0x4
CMP CL,0xa
JC 0x00130334
LAB_00130332:
XOR EAX,EAX
LAB_00130334:
POP RBP
RET
|
int8 check_mb_gb18030_valid(char *param_1,long param_2)
{
char cVar1;
int8 uVar2;
uVar2 = 0;
if ((1 < param_2 - (long)param_1) && (0x81 < (byte)(*param_1 + 1U))) {
cVar1 = param_1[1];
uVar2 = 2;
if ((-2 < cVar1 && (byte)(cVar1 + 0x81U) < 0xc1) &&
(((9 < (byte)(cVar1 - 0x30U) || (ulong)(param_2 - (long)param_1) < 4 ||
((byte)(param_1[2] + 1U) < 0x82)) || (uVar2 = 4, 9 < (byte)(param_1[3] - 0x30U))))) {
uVar2 = 0;
}
}
return uVar2;
}
| |
48,225 | LefDefParser::defwGroupRegion(int, int, int, int, char const*) | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defwWriter.cpp | int
defwGroupRegion(int xl,
int yl,
int xh,
int yh,
const char *regionName)
{
defwFunc = DEFW_GROUP; // Current function of writer
if (!defwFile)
return DEFW_UNINITIALIZED;
if (defwState != DEFW_GROUP)
return DEFW_BAD_ORDER;
if ((xl || yl || xh || yh) && (regionName)) // ether pts or regionName
return DEFW_BAD_DATA;
if (regionName)
fprintf(defwFile, "\n + REGION %s", regionName);
else
fprintf(defwFile, "\n + REGION ( %d %d ) ( %d %d )",
xl, yl, xh, yh);
defwLines++;
return DEFW_OK;
} | O0 | cpp | LefDefParser::defwGroupRegion(int, int, int, int, char const*):
subq $0x28, %rsp
movl %edi, 0x20(%rsp)
movl %esi, 0x1c(%rsp)
movl %edx, 0x18(%rsp)
movl %ecx, 0x14(%rsp)
movq %r8, 0x8(%rsp)
leaq 0xd058(%rip), %rax # 0x2b168
movl $0x4e, (%rax)
leaq 0xd03b(%rip), %rax # 0x2b158
cmpq $0x0, (%rax)
jne 0x1e130
movl $0x1, 0x24(%rsp)
jmp 0x1e1e5
leaq 0xd02d(%rip), %rax # 0x2b164
cmpl $0x4e, (%rax)
je 0x1e149
movl $0x2, 0x24(%rsp)
jmp 0x1e1e5
cmpl $0x0, 0x20(%rsp)
jne 0x1e165
cmpl $0x0, 0x1c(%rsp)
jne 0x1e165
cmpl $0x0, 0x18(%rsp)
jne 0x1e165
cmpl $0x0, 0x14(%rsp)
je 0x1e177
cmpq $0x0, 0x8(%rsp)
je 0x1e177
movl $0x3, 0x24(%rsp)
jmp 0x1e1e5
cmpq $0x0, 0x8(%rsp)
je 0x1e19e
leaq 0xcfd2(%rip), %rax # 0x2b158
movq (%rax), %rdi
movq 0x8(%rsp), %rdx
leaq 0x6e25(%rip), %rsi # 0x24fba
movb $0x0, %al
callq 0x10f0
jmp 0x1e1c8
leaq 0xcfb3(%rip), %rax # 0x2b158
movq (%rax), %rdi
movl 0x20(%rsp), %edx
movl 0x1c(%rsp), %ecx
movl 0x18(%rsp), %r8d
movl 0x14(%rsp), %r9d
leaq 0x6e0c(%rip), %rsi # 0x24fcd
movb $0x0, %al
callq 0x10f0
leaq 0xcf91(%rip), %rax # 0x2b160
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0xcf85(%rip), %rax # 0x2b160
movl %ecx, (%rax)
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nop
| _ZN12LefDefParser15defwGroupRegionEiiiiPKc:
sub rsp, 28h
mov [rsp+28h+var_8], edi
mov [rsp+28h+var_C], esi
mov [rsp+28h+var_10], edx
mov [rsp+28h+var_14], ecx
mov [rsp+28h+var_20], r8
lea rax, _ZN12LefDefParser8defwFuncE; LefDefParser::defwFunc
mov dword ptr [rax], 4Eh ; 'N'
lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile
cmp qword ptr [rax], 0
jnz short loc_1E130
mov [rsp+28h+var_4], 1
jmp loc_1E1E5
loc_1E130:
lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState
cmp dword ptr [rax], 4Eh ; 'N'
jz short loc_1E149
mov [rsp+28h+var_4], 2
jmp loc_1E1E5
loc_1E149:
cmp [rsp+28h+var_8], 0
jnz short loc_1E165
cmp [rsp+28h+var_C], 0
jnz short loc_1E165
cmp [rsp+28h+var_10], 0
jnz short loc_1E165
cmp [rsp+28h+var_14], 0
jz short loc_1E177
loc_1E165:
cmp [rsp+28h+var_20], 0
jz short loc_1E177
mov [rsp+28h+var_4], 3
jmp short loc_1E1E5
loc_1E177:
cmp [rsp+28h+var_20], 0
jz short loc_1E19E
lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile
mov rdi, [rax]
mov rdx, [rsp+28h+var_20]
lea rsi, aRegionS_0; "\n + REGION %s"
mov al, 0
call _fprintf
jmp short loc_1E1C8
loc_1E19E:
lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile
mov rdi, [rax]
mov edx, [rsp+28h+var_8]
mov ecx, [rsp+28h+var_C]
mov r8d, [rsp+28h+var_10]
mov r9d, [rsp+28h+var_14]
lea rsi, aRegionDDDD_0; "\n + REGION ( %d %d ) ( %d %d )"
mov al, 0
call _fprintf
loc_1E1C8:
lea rax, _ZN12LefDefParser9defwLinesE; LefDefParser::defwLines
mov ecx, [rax]
add ecx, 1
lea rax, _ZN12LefDefParser9defwLinesE; LefDefParser::defwLines
mov [rax], ecx
mov [rsp+28h+var_4], 0
loc_1E1E5:
mov eax, [rsp+28h+var_4]
add rsp, 28h
retn
| long long LefDefParser::defwGroupRegion(
LefDefParser *this,
int a2,
int a3,
int a4,
const char *a5,
const char *a6)
{
LefDefParser::defwFunc = 78;
if ( LefDefParser::defwFile )
{
if ( LefDefParser::defwState == 78 )
{
if ( ((_DWORD)this || a2 || a3 || a4) && a5 )
{
return 3;
}
else
{
if ( a5 )
fprintf(LefDefParser::defwFile, "\n + REGION %s", a5);
else
fprintf(LefDefParser::defwFile, "\n + REGION ( %d %d ) ( %d %d )", (_DWORD)this, a2, a3, a4);
++LefDefParser::defwLines;
return 0;
}
}
else
{
return 2;
}
}
else
{
return 1;
}
}
| defwGroupRegion:
SUB RSP,0x28
MOV dword ptr [RSP + 0x20],EDI
MOV dword ptr [RSP + 0x1c],ESI
MOV dword ptr [RSP + 0x18],EDX
MOV dword ptr [RSP + 0x14],ECX
MOV qword ptr [RSP + 0x8],R8
LEA RAX,[0x12b168]
MOV dword ptr [RAX],0x4e
LEA RAX,[0x12b158]
CMP qword ptr [RAX],0x0
JNZ 0x0011e130
MOV dword ptr [RSP + 0x24],0x1
JMP 0x0011e1e5
LAB_0011e130:
LEA RAX,[0x12b164]
CMP dword ptr [RAX],0x4e
JZ 0x0011e149
MOV dword ptr [RSP + 0x24],0x2
JMP 0x0011e1e5
LAB_0011e149:
CMP dword ptr [RSP + 0x20],0x0
JNZ 0x0011e165
CMP dword ptr [RSP + 0x1c],0x0
JNZ 0x0011e165
CMP dword ptr [RSP + 0x18],0x0
JNZ 0x0011e165
CMP dword ptr [RSP + 0x14],0x0
JZ 0x0011e177
LAB_0011e165:
CMP qword ptr [RSP + 0x8],0x0
JZ 0x0011e177
MOV dword ptr [RSP + 0x24],0x3
JMP 0x0011e1e5
LAB_0011e177:
CMP qword ptr [RSP + 0x8],0x0
JZ 0x0011e19e
LEA RAX,[0x12b158]
MOV RDI,qword ptr [RAX]
MOV RDX,qword ptr [RSP + 0x8]
LEA RSI,[0x124fba]
MOV AL,0x0
CALL 0x001010f0
JMP 0x0011e1c8
LAB_0011e19e:
LEA RAX,[0x12b158]
MOV RDI,qword ptr [RAX]
MOV EDX,dword ptr [RSP + 0x20]
MOV ECX,dword ptr [RSP + 0x1c]
MOV R8D,dword ptr [RSP + 0x18]
MOV R9D,dword ptr [RSP + 0x14]
LEA RSI,[0x124fcd]
MOV AL,0x0
CALL 0x001010f0
LAB_0011e1c8:
LEA RAX,[0x12b160]
MOV ECX,dword ptr [RAX]
ADD ECX,0x1
LEA RAX,[0x12b160]
MOV dword ptr [RAX],ECX
MOV dword ptr [RSP + 0x24],0x0
LAB_0011e1e5:
MOV EAX,dword ptr [RSP + 0x24]
ADD RSP,0x28
RET
|
/* LefDefParser::defwGroupRegion(int, int, int, int, char const*) */
int4
LefDefParser::defwGroupRegion(int param_1,int param_2,int param_3,int param_4,char *param_5)
{
int4 local_4;
defwFunc = 0x4e;
if (defwFile == (FILE *)0x0) {
local_4 = 1;
}
else if (defwState == 0x4e) {
if (((((param_1 == 0) && (param_2 == 0)) && (param_3 == 0)) && (param_4 == 0)) ||
(param_5 == (char *)0x0)) {
if (param_5 == (char *)0x0) {
fprintf(defwFile,"\n + REGION ( %d %d ) ( %d %d )",(ulong)(uint)param_1,
(ulong)(uint)param_2,(ulong)(uint)param_3,(ulong)(uint)param_4);
}
else {
fprintf(defwFile,"\n + REGION %s",param_5);
}
defwLines = defwLines + 1;
local_4 = 0;
}
else {
local_4 = 3;
}
}
else {
local_4 = 2;
}
return local_4;
}
| |
48,226 | pcmp | eloqsql/strings/ctype-simple.c | static int pcmp(const void * f, const void * s)
{
const uni_idx *F= (const uni_idx*) f;
const uni_idx *S= (const uni_idx*) s;
int res;
if (!(res=((S->nchars)-(F->nchars))))
res=((F->uidx.from)-(S->uidx.to));
return res;
} | O3 | c | pcmp:
pushq %rbp
movq %rsp, %rbp
movl (%rsi), %eax
subl (%rdi), %eax
jne 0xb6a35
movzwl 0x8(%rdi), %eax
movzwl 0xa(%rsi), %ecx
subl %ecx, %eax
popq %rbp
retq
nop
| pcmp:
push rbp
mov rbp, rsp
mov eax, [rsi]
sub eax, [rdi]
jnz short loc_B6A35
movzx eax, word ptr [rdi+8]
movzx ecx, word ptr [rsi+0Ah]
sub eax, ecx
loc_B6A35:
pop rbp
retn
| long long pcmp(long long a1, long long a2)
{
long long result; // rax
result = (unsigned int)(*(_DWORD *)a2 - *(_DWORD *)a1);
if ( *(_DWORD *)a2 == *(_DWORD *)a1 )
return *(unsigned __int16 *)(a1 + 8) - (unsigned int)*(unsigned __int16 *)(a2 + 10);
return result;
}
| pcmp:
PUSH RBP
MOV RBP,RSP
MOV EAX,dword ptr [RSI]
SUB EAX,dword ptr [RDI]
JNZ 0x001b6a35
MOVZX EAX,word ptr [RDI + 0x8]
MOVZX ECX,word ptr [RSI + 0xa]
SUB EAX,ECX
LAB_001b6a35:
POP RBP
RET
|
int pcmp(int *param_1,int *param_2)
{
int iVar1;
iVar1 = *param_2 - *param_1;
if (iVar1 == 0) {
iVar1 = (uint)*(ushort *)(param_1 + 2) - (uint)*(ushort *)((long)param_2 + 10);
}
return iVar1;
}
| |
48,227 | nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<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>>::start_object(unsigned long) | monkey531[P]llama/common/json.hpp | bool start_object(std::size_t len)
{
// check callback for object start
const bool keep = callback(static_cast<int>(ref_stack.size()), parse_event_t::object_start, discarded);
keep_stack.push_back(keep);
auto val = handle_value(BasicJsonType::value_t::object, true);
ref_stack.push_back(val.second);
// check object limit
if (ref_stack.back() && JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size()))
{
JSON_THROW(out_of_range::create(408, concat("excessive object size: ", std::to_string(len)), ref_stack.back()));
}
return true;
} | O2 | cpp | nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<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>>::start_object(unsigned long):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x58, %rsp
movq %rsi, %r15
movq %rdi, %r14
addq $0x80, %rdi
leaq 0x8(%r14), %rbx
movq 0x10(%r14), %rsi
subq 0x8(%r14), %rsi
shrq $0x3, %rsi
leaq 0xa8(%r14), %rcx
xorl %edx, %edx
callq 0x41474
leaq 0x20(%r14), %rdi
movzbl %al, %esi
callq 0x406ea
leaq 0x8(%rsp), %rsi
movb $0x1, (%rsi)
pushq $0x1
popq %rdx
movq %r14, %rdi
callq 0x41498
leaq 0x50(%rsp), %rsi
movb %al, -0x8(%rsi)
movq %rdx, (%rsi)
movq %rbx, %rdi
callq 0x416a2
movq 0x10(%r14), %rax
movq -0x8(%rax), %rdi
testq %rdi, %rdi
sete %al
cmpq $-0x1, %r15
sete %cl
orb %al, %cl
jne 0x40d14
callq 0x416c0
cmpq %r15, %rax
jb 0x40d21
movb $0x1, %al
addq $0x58, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
pushq $0x20
popq %rdi
callq 0x23450
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
movq %r15, %rsi
callq 0x41833
leaq 0x6f042(%rip), %rsi # 0xafd82
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x417d5
movq 0x10(%r14), %rax
movq -0x8(%rax), %rcx
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0x198, %esi # imm = 0x198
callq 0x416e8
xorl %ebp, %ebp
leaq 0xb9153(%rip), %rsi # 0xf9ec8
leaq -0x1264(%rip), %rdx # 0x3fb18
movq %rbx, %rdi
callq 0x23ef0
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x241b8
jmp 0x40d99
movq %rax, %r14
movb $0x1, %bpl
leaq 0x28(%rsp), %rdi
callq 0x241b8
testb %bpl, %bpl
jne 0x40dad
jmp 0x40db5
movq %rax, %r14
movq %rbx, %rdi
callq 0x23680
movq %r14, %rdi
callq 0x23f80
nop
| _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12start_objectEm:
push rbp
push r15
push r14; char
push rbx; int
sub rsp, 58h
mov r15, rsi
mov r14, rdi
add rdi, 80h
lea rbx, [r14+8]
mov rsi, [r14+10h]
sub rsi, [r14+8]
shr rsi, 3
lea rcx, [r14+0A8h]
xor edx, edx
call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::operator()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)
lea rdi, [r14+20h]
movzx esi, al
call _ZNSt6vectorIbSaIbEE9push_backEb; std::vector<bool>::push_back(bool)
lea rsi, [rsp+78h+var_70]
mov byte ptr [rsi], 1
push 1
pop rdx
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueINS1_7value_tEEESt4pairIbPSF_EOT_b; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(nlohmann::json_abi_v3_11_3::detail::value_t &&,bool)
lea rsi, [rsp+78h+var_28]
mov [rsi-8], al
mov [rsi], rdx
mov rdi, rbx
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE9push_backERKSE_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> * const&)
mov rax, [r14+10h]
mov rdi, [rax-8]
test rdi, rdi
setz al
cmp r15, 0FFFFFFFFFFFFFFFFh
setz cl
or cl, al
jnz short loc_40D14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8max_sizeEv; 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>::max_size(void)
cmp rax, r15
jb short loc_40D21
loc_40D14:
mov al, 1
add rsp, 58h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_40D21:
push 20h ; ' '
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+78h+var_50]; this
mov rsi, r15; unsigned __int64
call _ZNSt7__cxx119to_stringEm; std::to_string(ulong)
lea rsi, aExcessiveObjec; "excessive object size: "
lea rdi, [rsp+78h+var_70]
lea rdx, [rsp+78h+var_50]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA24_KcS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[24],std::string>(char const(&)[24],std::string &&)
mov rax, [r14+10h]
mov rcx, [rax-8]
mov bpl, 1
lea rdx, [rsp+78h+var_70]
mov rdi, rbx; this
mov esi, 198h; int
call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rdi, [rsp+78h+var_70]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_40D99
mov r14, rax
mov bpl, 1
loc_40D99:
lea rdi, [rsp+78h+var_50]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_40DAD
jmp short loc_40DB5
mov r14, rax
loc_40DAD:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_40DB5:
mov rdi, r14
call __Unwind_Resume
| char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::start_object(
long long a1,
unsigned long long a2)
{
unsigned __int8 v2; // al
long long v3; // rdx
nlohmann::json_abi_v3_11_3::detail::out_of_range *exception; // rbx
char v6; // [rsp+0h] [rbp-78h]
int v7[6]; // [rsp+8h] [rbp-70h] BYREF
char v8; // [rsp+20h] [rbp-58h]
int v9[6]; // [rsp+28h] [rbp-50h] BYREF
char v10; // [rsp+40h] [rbp-38h]
int v11; // [rsp+48h] [rbp-30h]
long long v12; // [rsp+50h] [rbp-28h]
int v13; // [rsp+58h] [rbp-20h]
char v14; // [rsp+60h] [rbp-18h]
v2 = std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::operator()(
a1 + 128,
(*(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 8)) >> 3,
0LL,
a1 + 168);
std::vector<bool>::push_back(a1 + 32, v2);
LOBYTE(v7[0]) = 1;
LOBYTE(v11) = nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(
a1,
v7,
1LL);
v12 = v3;
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::push_back(a1 + 8);
if ( *(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL) != 0LL
&& a2 != -1LL
&& 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>::max_size() < a2 )
{
exception = (nlohmann::json_abi_v3_11_3::detail::out_of_range *)__cxa_allocate_exception(0x20uLL);
std::to_string((std::__cxx11 *)v9, a2);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[24],std::string>(
v7,
"excessive object size: ",
v9);
ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
exception,
408,
v6,
v7[0],
v7[2],
v7[4],
v8,
v9[0],
v9[2],
v9[4],
v10,
v11,
v12,
v13,
v14);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::out_of_range,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
return 1;
}
| start_object:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x58
MOV R15,RSI
MOV R14,RDI
ADD RDI,0x80
LEA RBX,[R14 + 0x8]
MOV RSI,qword ptr [R14 + 0x10]
SUB RSI,qword ptr [R14 + 0x8]
SHR RSI,0x3
LEA RCX,[R14 + 0xa8]
XOR EDX,EDX
CALL 0x00141474
LEA RDI,[R14 + 0x20]
MOVZX ESI,AL
CALL 0x001406ea
LEA RSI,[RSP + 0x8]
MOV byte ptr [RSI],0x1
PUSH 0x1
POP RDX
MOV RDI,R14
CALL 0x00141498
LEA RSI,[RSP + 0x50]
MOV byte ptr [RSI + -0x8],AL
MOV qword ptr [RSI],RDX
MOV RDI,RBX
CALL 0x001416a2
MOV RAX,qword ptr [R14 + 0x10]
MOV RDI,qword ptr [RAX + -0x8]
TEST RDI,RDI
SETZ AL
CMP R15,-0x1
SETZ CL
OR CL,AL
JNZ 0x00140d14
CALL 0x001416c0
CMP RAX,R15
JC 0x00140d21
LAB_00140d14:
MOV AL,0x1
ADD RSP,0x58
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_00140d21:
PUSH 0x20
POP RDI
CALL 0x00123450
MOV RBX,RAX
LAB_00140d2c:
LEA RDI,[RSP + 0x28]
MOV RSI,R15
CALL 0x00141833
LAB_00140d39:
LEA RSI,[0x1afd82]
LEA RDI,[RSP + 0x8]
LEA RDX,[RSP + 0x28]
CALL 0x001417d5
MOV RAX,qword ptr [R14 + 0x10]
MOV RCX,qword ptr [RAX + -0x8]
MOV BPL,0x1
LAB_00140d5a:
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
MOV ESI,0x198
CALL 0x001416e8
XOR EBP,EBP
LEA RSI,[0x1f9ec8]
LEA RDX,[0x13fb18]
MOV RDI,RBX
CALL 0x00123ef0
|
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::start_object(unsigned long) */
int8 __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::start_object(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this,ulong param_1)
{
bool bVar1;
ulong uVar2;
int8 uVar3;
basic_json *extraout_RDX;
detail local_70 [32];
__cxx11 local_50 [32];
int1 local_30;
basic_json *local_28;
bVar1 = (bool)std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
::operator()(this + 0x80,(ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3,
0,this + 0xa8);
std::vector<bool,std::allocator<bool>>::push_back
((vector<bool,std::allocator<bool>> *)(this + 0x20),bVar1);
local_70[0] = (detail)0x1;
local_30 = handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(this,local_70,true);
local_28 = extraout_RDX;
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::push_back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8),&local_28);
if (param_1 != 0xffffffffffffffff &&
*(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>
**)(*(long *)(this + 0x10) + -8) !=
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)0x0) {
uVar2 = 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>
::max_size(*(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>
**)(*(long *)(this + 0x10) + -8));
if (uVar2 < param_1) {
uVar3 = __cxa_allocate_exception(0x20);
/* try { // try from 00140d2c to 00140d38 has its CatchHandler @ 00140daa */
std::__cxx11::to_string(local_50,param_1);
/* try { // try from 00140d39 to 00140d4e has its CatchHandler @ 00140d93 */
concat<std::__cxx11::string,char_const(&)[24],std::__cxx11::string>
(local_70,"excessive object size: ",(string *)local_50);
/* try { // try from 00140d5a to 00140d83 has its CatchHandler @ 00140d84 */
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar3,0x198,local_70,*(int8 *)(*(long *)(this + 0x10) + -8));
/* WARNING: Subroutine does not return */
__cxa_throw(uVar3,&out_of_range::typeinfo,exception::~exception);
}
}
return 1;
}
| |
48,228 | ggml_set_i32_1d | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c | void ggml_set_i32_1d(const struct ggml_tensor * tensor, int i, int32_t value) {
if (!ggml_is_contiguous(tensor)) {
int64_t id[4] = { 0, 0, 0, 0 };
ggml_unravel_index(tensor, i, &id[0], &id[1], &id[2], &id[3]);
ggml_set_i32_nd(tensor, id[0], id[1], id[2], id[3], value);
return;
}
switch (tensor->type) {
case GGML_TYPE_I8:
{
GGML_ASSERT(tensor->nb[0] == sizeof(int8_t));
((int8_t *)(tensor->data))[i] = value;
} break;
case GGML_TYPE_I16:
{
GGML_ASSERT(tensor->nb[0] == sizeof(int16_t));
((int16_t *)(tensor->data))[i] = value;
} break;
case GGML_TYPE_I32:
{
GGML_ASSERT(tensor->nb[0] == sizeof(int32_t));
((int32_t *)(tensor->data))[i] = value;
} break;
case GGML_TYPE_F16:
{
GGML_ASSERT(tensor->nb[0] == sizeof(ggml_fp16_t));
((ggml_fp16_t *)(tensor->data))[i] = GGML_FP32_TO_FP16(value);
} break;
case GGML_TYPE_BF16:
{
GGML_ASSERT(tensor->nb[0] == sizeof(ggml_bf16_t));
((ggml_bf16_t *)(tensor->data))[i] = GGML_FP32_TO_BF16(value);
} break;
case GGML_TYPE_F32:
{
GGML_ASSERT(tensor->nb[0] == sizeof(float));
((float *)(tensor->data))[i] = value;
} break;
default:
{
GGML_ABORT("fatal error");
}
}
} | O0 | c | ggml_set_i32_1d:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq -0x8(%rbp), %rdi
callq 0xd280
testb $0x1, %al
jne 0xfb83
leaq -0x30(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0xd560
movq -0x8(%rbp), %rdi
movslq -0xc(%rbp), %rsi
leaq -0x30(%rbp), %rdx
leaq -0x30(%rbp), %rcx
addq $0x8, %rcx
leaq -0x30(%rbp), %r8
addq $0x10, %r8
leaq -0x30(%rbp), %r9
addq $0x18, %r9
callq 0xd850
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rax
movl %eax, %esi
movq -0x28(%rbp), %rax
movl %eax, %edx
movq -0x20(%rbp), %rax
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl %eax, %r8d
movl -0x10(%rbp), %r9d
callq 0xd6e0
jmp 0xfdb9
movq -0x8(%rbp), %rax
movl (%rax), %eax
movq %rax, -0x60(%rbp)
subq $0x1e, %rax
ja 0xfd9f
movq -0x60(%rbp), %rax
leaq 0x6364e(%rip), %rcx # 0x731f0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x8(%rbp), %rax
cmpq $0x1, 0x30(%rax)
je 0xfbd7
leaq 0x63fa5(%rip), %rdi # 0x73b62
movl $0xa52, %esi # imm = 0xA52
leaq 0x63ff8(%rip), %rdx # 0x73bc1
leaq 0x64107(%rip), %rcx # 0x73cd7
movb $0x0, %al
callq 0xe270
movl -0x10(%rbp), %eax
movb %al, %dl
movq -0x8(%rbp), %rax
movq 0xf8(%rax), %rax
movslq -0xc(%rbp), %rcx
movb %dl, (%rax,%rcx)
jmp 0xfdb9
movq -0x8(%rbp), %rax
cmpq $0x2, 0x30(%rax)
je 0xfc1f
leaq 0x63f5d(%rip), %rdi # 0x73b62
movl $0xa57, %esi # imm = 0xA57
leaq 0x63fb0(%rip), %rdx # 0x73bc1
leaq 0x6411f(%rip), %rcx # 0x73d37
movb $0x0, %al
callq 0xe270
movl -0x10(%rbp), %eax
movw %ax, %dx
movq -0x8(%rbp), %rax
movq 0xf8(%rax), %rax
movslq -0xc(%rbp), %rcx
movw %dx, (%rax,%rcx,2)
jmp 0xfdb9
movq -0x8(%rbp), %rax
cmpq $0x4, 0x30(%rax)
je 0xfc69
leaq 0x63f13(%rip), %rdi # 0x73b62
movl $0xa5c, %esi # imm = 0xA5C
leaq 0x63f66(%rip), %rdx # 0x73bc1
leaq 0x640f6(%rip), %rcx # 0x73d58
movb $0x0, %al
callq 0xe270
movl -0x10(%rbp), %edx
movq -0x8(%rbp), %rax
movq 0xf8(%rax), %rax
movslq -0xc(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
jmp 0xfdb9
movq -0x8(%rbp), %rax
cmpq $0x2, 0x30(%rax)
je 0xfcaf
leaq 0x63ecd(%rip), %rdi # 0x73b62
movl $0xa61, %esi # imm = 0xA61
leaq 0x63f20(%rip), %rdx # 0x73bc1
leaq 0x640d1(%rip), %rcx # 0x73d79
movb $0x0, %al
callq 0xe270
vcvtsi2ssl -0x10(%rbp), %xmm0, %xmm1
vxorps %xmm0, %xmm0, %xmm0
vblendps $0x1, %xmm1, %xmm0, %xmm0 # xmm0 = xmm1[0],xmm0[1,2,3]
vmovaps %xmm0, -0x50(%rbp)
vmovaps -0x50(%rbp), %xmm0
vcvtps2ph $0x0, %xmm0, %xmm0
vmovd %xmm0, %eax
movw %ax, -0x32(%rbp)
movw -0x32(%rbp), %dx
movq -0x8(%rbp), %rax
movq 0xf8(%rax), %rax
movslq -0xc(%rbp), %rcx
movw %dx, (%rax,%rcx,2)
jmp 0xfdb9
movq -0x8(%rbp), %rax
cmpq $0x2, 0x30(%rax)
je 0xfd1e
leaq 0x63e5e(%rip), %rdi # 0x73b62
movl $0xa66, %esi # imm = 0xA66
leaq 0x63eb1(%rip), %rdx # 0x73bc1
leaq 0x640f0(%rip), %rcx # 0x73e07
movb $0x0, %al
callq 0xe270
movq -0x8(%rbp), %rax
movq 0xf8(%rax), %rax
movq %rax, -0x68(%rbp)
movslq -0xc(%rbp), %rax
movq %rax, -0x70(%rbp)
vcvtsi2ssl -0x10(%rbp), %xmm0, %xmm0
callq 0xf680
movq -0x70(%rbp), %rcx
movw %ax, %dx
movq -0x68(%rbp), %rax
movw %dx, -0x52(%rbp)
movw -0x52(%rbp), %dx
movw %dx, (%rax,%rcx,2)
jmp 0xfdb9
movq -0x8(%rbp), %rax
cmpq $0x4, 0x30(%rax)
je 0xfd84
leaq 0x63df8(%rip), %rdi # 0x73b62
movl $0xa6b, %esi # imm = 0xA6B
leaq 0x63e4b(%rip), %rdx # 0x73bc1
leaq 0x64021(%rip), %rcx # 0x73d9e
movb $0x0, %al
callq 0xe270
vcvtsi2ssl -0x10(%rbp), %xmm0, %xmm0
movq -0x8(%rbp), %rax
movq 0xf8(%rax), %rax
movslq -0xc(%rbp), %rcx
vmovss %xmm0, (%rax,%rcx,4)
jmp 0xfdb9
leaq 0x63dbc(%rip), %rdi # 0x73b62
movl $0xa70, %esi # imm = 0xA70
leaq 0x6400b(%rip), %rdx # 0x73dbd
movb $0x0, %al
callq 0xe270
addq $0x70, %rsp
popq %rbp
retq
nop
| ggml_set_i32_1d:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_10], edx
mov rdi, [rbp+var_8]
call _ggml_is_contiguous
test al, 1
jnz short loc_FB83
lea rdi, [rbp+var_30]
xor esi, esi
mov edx, 20h ; ' '
call _memset
mov rdi, [rbp+var_8]
movsxd rsi, [rbp+var_C]
lea rdx, [rbp+var_30]
lea rcx, [rbp+var_30]
add rcx, 8
lea r8, [rbp+var_30]
add r8, 10h
lea r9, [rbp+var_30]
add r9, 18h
call _ggml_unravel_index
mov rdi, [rbp+var_8]
mov rax, [rbp+var_30]
mov esi, eax
mov rax, [rbp+var_28]
mov edx, eax
mov rax, [rbp+var_20]
mov ecx, eax
mov rax, [rbp+var_18]
mov r8d, eax
mov r9d, [rbp+var_10]
call _ggml_set_i32_nd
jmp loc_FDB9
loc_FB83:
mov rax, [rbp+var_8]
mov eax, [rax]
mov [rbp+var_60], rax
sub rax, 1Eh; switch 31 cases
ja def_FBA9; jumptable 000000000000FBA9 default case, cases 2-23,27-29
mov rax, [rbp+var_60]
lea rcx, jpt_FBA9
movsxd rax, ds:(jpt_FBA9 - 731F0h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_FBAB:
mov rax, [rbp+var_8]; jumptable 000000000000FBA9 case 24
cmp qword ptr [rax+30h], 1
jz short loc_FBD7
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 0A52h
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorNb0Sizeo; "tensor->nb[0] == sizeof(int8_t)"
mov al, 0
call _ggml_abort
loc_FBD7:
mov eax, [rbp+var_10]
mov dl, al
mov rax, [rbp+var_8]
mov rax, [rax+0F8h]
movsxd rcx, [rbp+var_C]
mov [rax+rcx], dl
jmp loc_FDB9
loc_FBF3:
mov rax, [rbp+var_8]; jumptable 000000000000FBA9 case 25
cmp qword ptr [rax+30h], 2
jz short loc_FC1F
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 0A57h
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorNb0Sizeo_0; "tensor->nb[0] == sizeof(int16_t)"
mov al, 0
call _ggml_abort
loc_FC1F:
mov eax, [rbp+var_10]
mov dx, ax
mov rax, [rbp+var_8]
mov rax, [rax+0F8h]
movsxd rcx, [rbp+var_C]
mov [rax+rcx*2], dx
jmp loc_FDB9
loc_FC3D:
mov rax, [rbp+var_8]; jumptable 000000000000FBA9 case 26
cmp qword ptr [rax+30h], 4
jz short loc_FC69
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 0A5Ch
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorNb0Sizeo_1; "tensor->nb[0] == sizeof(int32_t)"
mov al, 0
call _ggml_abort
loc_FC69:
mov edx, [rbp+var_10]
mov rax, [rbp+var_8]
mov rax, [rax+0F8h]
movsxd rcx, [rbp+var_C]
mov [rax+rcx*4], edx
jmp loc_FDB9
loc_FC83:
mov rax, [rbp+var_8]; jumptable 000000000000FBA9 case 1
cmp qword ptr [rax+30h], 2
jz short loc_FCAF
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 0A61h
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorNb0Sizeo_2; "tensor->nb[0] == sizeof(ggml_fp16_t)"
mov al, 0
call _ggml_abort
loc_FCAF:
vcvtsi2ss xmm1, xmm0, [rbp+var_10]
vxorps xmm0, xmm0, xmm0
vblendps xmm0, xmm0, xmm1, 1
vmovaps [rbp+var_50], xmm0
vmovaps xmm0, [rbp+var_50]
vcvtps2ph xmm0, xmm0, 0
vmovd eax, xmm0
mov [rbp+var_32], ax
mov dx, [rbp+var_32]
mov rax, [rbp+var_8]
mov rax, [rax+0F8h]
movsxd rcx, [rbp+var_C]
mov [rax+rcx*2], dx
jmp loc_FDB9
loc_FCF2:
mov rax, [rbp+var_8]; jumptable 000000000000FBA9 case 30
cmp qword ptr [rax+30h], 2
jz short loc_FD1E
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 0A66h
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorNb0Sizeo_4; "tensor->nb[0] == sizeof(ggml_bf16_t)"
mov al, 0
call _ggml_abort
loc_FD1E:
mov rax, [rbp+var_8]
mov rax, [rax+0F8h]
mov [rbp+var_68], rax
movsxd rax, [rbp+var_C]
mov [rbp+var_70], rax
vcvtsi2ss xmm0, xmm0, [rbp+var_10]
call ggml_compute_fp32_to_bf16
mov rcx, [rbp+var_70]
mov dx, ax
mov rax, [rbp+var_68]
mov [rbp+var_52], dx
mov dx, [rbp+var_52]
mov [rax+rcx*2], dx
jmp short loc_FDB9
loc_FD58:
mov rax, [rbp+var_8]; jumptable 000000000000FBA9 case 0
cmp qword ptr [rax+30h], 4
jz short loc_FD84
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 0A6Bh
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorNb0Sizeo_3; "tensor->nb[0] == sizeof(float)"
mov al, 0
call _ggml_abort
loc_FD84:
vcvtsi2ss xmm0, xmm0, [rbp+var_10]
mov rax, [rbp+var_8]
mov rax, [rax+0F8h]
movsxd rcx, [rbp+var_C]
vmovss dword ptr [rax+rcx*4], xmm0
jmp short loc_FDB9
def_FBA9:
lea rdi, aWorkspaceLlm4b_0; jumptable 000000000000FBA9 default case, cases 2-23,27-29
mov esi, 0A70h
lea rdx, aFatalError; "fatal error"
mov al, 0
call _ggml_abort
loc_FDB9:
add rsp, 70h
pop rbp
retn
| double ggml_set_i32_1d(long long a1, int a2, unsigned int a3, __m128 _XMM0)
{
long long v12; // [rsp+8h] [rbp-68h]
long long v14; // [rsp+40h] [rbp-30h] BYREF
long long v15; // [rsp+48h] [rbp-28h] BYREF
long long v16; // [rsp+50h] [rbp-20h] BYREF
long long v17; // [rsp+58h] [rbp-18h] BYREF
unsigned int v18; // [rsp+60h] [rbp-10h]
int v19; // [rsp+64h] [rbp-Ch]
long long v20; // [rsp+68h] [rbp-8h]
v20 = a1;
v19 = a2;
v18 = a3;
if ( (ggml_is_contiguous(a1) & 1) != 0 )
{
switch ( *(_DWORD *)v20 )
{
case 0:
if ( *(_QWORD *)(v20 + 48) != 4LL )
*(double *)_XMM0.m128_u64 = ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
2667LL,
"GGML_ASSERT(%s) failed",
"tensor->nb[0] == sizeof(float)");
__asm { vcvtsi2ss xmm0, xmm0, [rbp+var_10] }
_RAX = *(_QWORD *)(v20 + 248);
_RCX = v19;
__asm { vmovss dword ptr [rax+rcx*4], xmm0 }
break;
case 1:
if ( *(_QWORD *)(v20 + 48) != 2LL )
*(double *)_XMM0.m128_u64 = ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
2657LL,
"GGML_ASSERT(%s) failed",
"tensor->nb[0] == sizeof(ggml_fp16_t)");
__asm
{
vcvtsi2ss xmm1, xmm0, [rbp+var_10]
vxorps xmm0, xmm0, xmm0
vblendps xmm0, xmm0, xmm1, 1
vmovaps [rbp+var_50], xmm0
vmovaps xmm0, [rbp+var_50]
vcvtps2ph xmm0, xmm0, 0
vmovd eax, xmm0
}
*(_WORD *)(*(_QWORD *)(v20 + 248) + 2LL * v19) = _EAX;
break;
case 0x18:
if ( *(_QWORD *)(v20 + 48) != 1LL )
*(double *)_XMM0.m128_u64 = ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
2642LL,
"GGML_ASSERT(%s) failed",
"tensor->nb[0] == sizeof(int8_t)");
*(_BYTE *)(*(_QWORD *)(v20 + 248) + v19) = v18;
break;
case 0x19:
if ( *(_QWORD *)(v20 + 48) != 2LL )
*(double *)_XMM0.m128_u64 = ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
2647LL,
"GGML_ASSERT(%s) failed",
"tensor->nb[0] == sizeof(int16_t)");
*(_WORD *)(*(_QWORD *)(v20 + 248) + 2LL * v19) = v18;
break;
case 0x1A:
if ( *(_QWORD *)(v20 + 48) != 4LL )
*(double *)_XMM0.m128_u64 = ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
2652LL,
"GGML_ASSERT(%s) failed",
"tensor->nb[0] == sizeof(int32_t)");
*(_DWORD *)(*(_QWORD *)(v20 + 248) + 4LL * v19) = v18;
break;
case 0x1E:
if ( *(_QWORD *)(v20 + 48) != 2LL )
*(double *)_XMM0.m128_u64 = ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
2662LL,
"GGML_ASSERT(%s) failed",
"tensor->nb[0] == sizeof(ggml_bf16_t)");
v12 = *(_QWORD *)(v20 + 248);
__asm { vcvtsi2ss xmm0, xmm0, [rbp+var_10] }
*(_WORD *)(v12 + 2LL * v19) = ggml_compute_fp32_to_bf16(_XMM0);
break;
default:
*(double *)_XMM0.m128_u64 = ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
2672LL,
"fatal error");
break;
}
}
else
{
memset(&v14, 0LL, 32LL);
ggml_unravel_index(v20, v19, &v14, &v15, &v16, &v17);
ggml_set_i32_nd(v20, (unsigned int)v14, (unsigned int)v15, (unsigned int)v16, (unsigned int)v17, v18);
}
return *(double *)_XMM0.m128_u64;
}
| ggml_set_i32_1d:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV dword ptr [RBP + -0x10],EDX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0010d280
TEST AL,0x1
JNZ 0x0010fb83
LEA RDI,[RBP + -0x30]
XOR ESI,ESI
MOV EDX,0x20
CALL 0x0010d560
MOV RDI,qword ptr [RBP + -0x8]
MOVSXD RSI,dword ptr [RBP + -0xc]
LEA RDX,[RBP + -0x30]
LEA RCX,[RBP + -0x30]
ADD RCX,0x8
LEA R8,[RBP + -0x30]
ADD R8,0x10
LEA R9,[RBP + -0x30]
ADD R9,0x18
CALL 0x0010d850
MOV RDI,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x30]
MOV ESI,EAX
MOV RAX,qword ptr [RBP + -0x28]
MOV EDX,EAX
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV R8D,EAX
MOV R9D,dword ptr [RBP + -0x10]
CALL 0x0010d6e0
JMP 0x0010fdb9
LAB_0010fb83:
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX]
MOV qword ptr [RBP + -0x60],RAX
SUB RAX,0x1e
JA 0x0010fd9f
MOV RAX,qword ptr [RBP + -0x60]
LEA RCX,[0x1731f0]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_18:
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x30],0x1
JZ 0x0010fbd7
LEA RDI,[0x173b62]
MOV ESI,0xa52
LEA RDX,[0x173bc1]
LEA RCX,[0x173cd7]
MOV AL,0x0
CALL 0x0010e270
LAB_0010fbd7:
MOV EAX,dword ptr [RBP + -0x10]
MOV DL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0xf8]
MOVSXD RCX,dword ptr [RBP + -0xc]
MOV byte ptr [RAX + RCX*0x1],DL
JMP 0x0010fdb9
caseD_19:
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x30],0x2
JZ 0x0010fc1f
LEA RDI,[0x173b62]
MOV ESI,0xa57
LEA RDX,[0x173bc1]
LEA RCX,[0x173d37]
MOV AL,0x0
CALL 0x0010e270
LAB_0010fc1f:
MOV EAX,dword ptr [RBP + -0x10]
MOV DX,AX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0xf8]
MOVSXD RCX,dword ptr [RBP + -0xc]
MOV word ptr [RAX + RCX*0x2],DX
JMP 0x0010fdb9
caseD_1a:
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x30],0x4
JZ 0x0010fc69
LEA RDI,[0x173b62]
MOV ESI,0xa5c
LEA RDX,[0x173bc1]
LEA RCX,[0x173d58]
MOV AL,0x0
CALL 0x0010e270
LAB_0010fc69:
MOV EDX,dword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0xf8]
MOVSXD RCX,dword ptr [RBP + -0xc]
MOV dword ptr [RAX + RCX*0x4],EDX
JMP 0x0010fdb9
caseD_1:
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x30],0x2
JZ 0x0010fcaf
LEA RDI,[0x173b62]
MOV ESI,0xa61
LEA RDX,[0x173bc1]
LEA RCX,[0x173d79]
MOV AL,0x0
CALL 0x0010e270
LAB_0010fcaf:
VCVTSI2SS XMM1,XMM0,dword ptr [RBP + -0x10]
VXORPS XMM0,XMM0,XMM0
VBLENDPS XMM0,XMM0,XMM1,0x1
VMOVAPS xmmword ptr [RBP + -0x50],XMM0
VMOVAPS XMM0,xmmword ptr [RBP + -0x50]
VCVTPS2PH XMM0,XMM0,0x0
VMOVD EAX,XMM0
MOV word ptr [RBP + -0x32],AX
MOV DX,word ptr [RBP + -0x32]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0xf8]
MOVSXD RCX,dword ptr [RBP + -0xc]
MOV word ptr [RAX + RCX*0x2],DX
JMP 0x0010fdb9
caseD_1e:
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x30],0x2
JZ 0x0010fd1e
LEA RDI,[0x173b62]
MOV ESI,0xa66
LEA RDX,[0x173bc1]
LEA RCX,[0x173e07]
MOV AL,0x0
CALL 0x0010e270
LAB_0010fd1e:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0xf8]
MOV qword ptr [RBP + -0x68],RAX
MOVSXD RAX,dword ptr [RBP + -0xc]
MOV qword ptr [RBP + -0x70],RAX
VCVTSI2SS XMM0,XMM0,dword ptr [RBP + -0x10]
CALL 0x0010f680
MOV RCX,qword ptr [RBP + -0x70]
MOV DX,AX
MOV RAX,qword ptr [RBP + -0x68]
MOV word ptr [RBP + -0x52],DX
MOV DX,word ptr [RBP + -0x52]
MOV word ptr [RAX + RCX*0x2],DX
JMP 0x0010fdb9
caseD_0:
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x30],0x4
JZ 0x0010fd84
LEA RDI,[0x173b62]
MOV ESI,0xa6b
LEA RDX,[0x173bc1]
LEA RCX,[0x173d9e]
MOV AL,0x0
CALL 0x0010e270
LAB_0010fd84:
VCVTSI2SS XMM0,XMM0,dword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0xf8]
MOVSXD RCX,dword ptr [RBP + -0xc]
VMOVSS dword ptr [RAX + RCX*0x4],XMM0
JMP 0x0010fdb9
caseD_2:
LEA RDI,[0x173b62]
MOV ESI,0xa70
LEA RDX,[0x173dbd]
MOV AL,0x0
CALL 0x0010e270
LAB_0010fdb9:
ADD RSP,0x70
POP RBP
RET
|
void ggml_set_i32_1d(int4 *param_1,int param_2,int param_3)
{
long lVar1;
int2 uVar2;
ulong uVar3;
long lVar4;
int8 extraout_XMM0_Qa;
int1 auVar5 [16];
int1 extraout_var [56];
int1 auVar7 [64];
int1 auVar8 [64];
int1 auVar10 [16];
ulong local_38;
ulong local_30;
ulong local_28;
ulong local_20;
int local_18;
int local_14;
int4 *local_10;
int1 auVar6 [64];
int1 auVar9 [12];
int1 extraout_var_00 [56];
int1 extraout_var_01 [56];
local_18 = param_3;
local_14 = param_2;
local_10 = param_1;
uVar3 = ggml_is_contiguous(param_1);
auVar6._8_56_ = extraout_var;
auVar6._0_8_ = extraout_XMM0_Qa;
auVar9 = auVar6._4_12_;
if ((uVar3 & 1) == 0) {
memset(&local_38,0,0x20);
ggml_unravel_index(local_10,(long)local_14,&local_38,&local_30,&local_28,&local_20);
ggml_set_i32_nd(local_10,local_38 & 0xffffffff,local_30 & 0xffffffff,local_28 & 0xffffffff,
local_20 & 0xffffffff,local_18);
}
else {
switch(*local_10) {
case 0:
if (*(long *)(local_10 + 0xc) != 4) {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c"
,0xa6b,"GGML_ASSERT(%s) failed","tensor->nb[0] == sizeof(float)");
}
*(float *)(*(long *)(local_10 + 0x3e) + (long)local_14 * 4) = (float)local_18;
break;
case 1:
if (*(long *)(local_10 + 0xc) != 2) {
auVar7._0_8_ = ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c"
,0xa61,"GGML_ASSERT(%s) failed",
"tensor->nb[0] == sizeof(ggml_fp16_t)");
auVar7._8_56_ = extraout_var_00;
auVar9 = auVar7._4_12_;
}
auVar10._0_4_ = (float)local_18;
auVar10._4_12_ = auVar9;
auVar5 = vblendps_avx(ZEXT816(0) << 0x40,auVar10,1);
auVar5 = vcvtps2ph_f16c(auVar5,0);
*(short *)(*(long *)(local_10 + 0x3e) + (long)local_14 * 2) = auVar5._0_2_;
break;
default:
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c"
,0xa70,"fatal error");
break;
case 0x18:
if (*(long *)(local_10 + 0xc) != 1) {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c"
,0xa52,"GGML_ASSERT(%s) failed","tensor->nb[0] == sizeof(int8_t)");
}
*(char *)(*(long *)(local_10 + 0x3e) + (long)local_14) = (char)local_18;
break;
case 0x19:
if (*(long *)(local_10 + 0xc) != 2) {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c"
,0xa57,"GGML_ASSERT(%s) failed","tensor->nb[0] == sizeof(int16_t)");
}
*(short *)(*(long *)(local_10 + 0x3e) + (long)local_14 * 2) = (short)local_18;
break;
case 0x1a:
if (*(long *)(local_10 + 0xc) != 4) {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c"
,0xa5c,"GGML_ASSERT(%s) failed","tensor->nb[0] == sizeof(int32_t)");
}
*(int *)(*(long *)(local_10 + 0x3e) + (long)local_14 * 4) = local_18;
break;
case 0x1e:
if (*(long *)(local_10 + 0xc) != 2) {
auVar8._0_8_ = ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c"
,0xa66,"GGML_ASSERT(%s) failed",
"tensor->nb[0] == sizeof(ggml_bf16_t)");
auVar8._8_56_ = extraout_var_01;
auVar9 = auVar8._4_12_;
}
lVar1 = *(long *)(local_10 + 0x3e);
lVar4 = (long)local_14;
auVar5._0_4_ = (float)local_18;
auVar5._4_12_ = auVar9;
uVar2 = ggml_compute_fp32_to_bf16(auVar5._0_8_);
*(int2 *)(lVar1 + lVar4 * 2) = uVar2;
}
}
return;
}
| |
48,229 | ggml_set_i32_1d | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c | void ggml_set_i32_1d(const struct ggml_tensor * tensor, int i, int32_t value) {
if (!ggml_is_contiguous(tensor)) {
int64_t id[4] = { 0, 0, 0, 0 };
ggml_unravel_index(tensor, i, &id[0], &id[1], &id[2], &id[3]);
ggml_set_i32_nd(tensor, id[0], id[1], id[2], id[3], value);
return;
}
switch (tensor->type) {
case GGML_TYPE_I8:
{
GGML_ASSERT(tensor->nb[0] == sizeof(int8_t));
((int8_t *)(tensor->data))[i] = value;
} break;
case GGML_TYPE_I16:
{
GGML_ASSERT(tensor->nb[0] == sizeof(int16_t));
((int16_t *)(tensor->data))[i] = value;
} break;
case GGML_TYPE_I32:
{
GGML_ASSERT(tensor->nb[0] == sizeof(int32_t));
((int32_t *)(tensor->data))[i] = value;
} break;
case GGML_TYPE_F16:
{
GGML_ASSERT(tensor->nb[0] == sizeof(ggml_fp16_t));
((ggml_fp16_t *)(tensor->data))[i] = GGML_FP32_TO_FP16(value);
} break;
case GGML_TYPE_BF16:
{
GGML_ASSERT(tensor->nb[0] == sizeof(ggml_bf16_t));
((ggml_bf16_t *)(tensor->data))[i] = GGML_FP32_TO_BF16(value);
} break;
case GGML_TYPE_F32:
{
GGML_ASSERT(tensor->nb[0] == sizeof(float));
((float *)(tensor->data))[i] = value;
} break;
default:
{
GGML_ABORT("fatal error");
}
}
} | O2 | c | ggml_set_i32_1d:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
callq 0x81e0
testb %al, %al
je 0x9c4d
movl (%r14), %eax
leal -0x18(%rax), %ecx
cmpl $0x6, %ecx
ja 0x9c9e
leaq 0x29446(%rip), %rax # 0x33070
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
cmpq $0x1, 0x30(%r14)
jne 0x9d71
movq 0xf8(%r14), %rax
movslq %ebp, %rcx
movb %bl, (%rax,%rcx)
jmp 0x9c93
vxorps %xmm0, %xmm0, %xmm0
leaq 0x8(%rsp), %rcx
vmovups %ymm0, -0x8(%rcx)
movslq %ebp, %rsi
leaq 0x10(%rsp), %r8
leaq 0x18(%rsp), %r9
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rdx
vzeroupper
callq 0x8570
movl (%r15), %esi
movl 0x8(%r15), %edx
movl 0x10(%r15), %ecx
movl 0x18(%r15), %r8d
movq %r14, %rdi
movl %ebx, %r9d
callq 0x84a0
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
testl %eax, %eax
je 0x9d34
cmpl $0x1, %eax
jne 0x9d57
cmpq $0x2, 0x30(%r14)
jne 0x9e00
vcvtsi2ss %ebx, %xmm0, %xmm0
vcvtps2ph $0x0, %xmm0, %xmm0
movq 0xf8(%r14), %rax
movslq %ebp, %rcx
vpextrw $0x0, %xmm0, (%rax,%rcx,2)
jmp 0x9c93
cmpq $0x2, 0x30(%r14)
jne 0x9d90
movq 0xf8(%r14), %rax
movslq %ebp, %rcx
movw %bx, (%rax,%rcx,2)
jmp 0x9c93
cmpq $0x4, 0x30(%r14)
jne 0x9dac
movq 0xf8(%r14), %rax
movslq %ebp, %rcx
movl %ebx, (%rax,%rcx,4)
jmp 0x9c93
cmpq $0x2, 0x30(%r14)
jne 0x9dc8
movq 0xf8(%r14), %r14
movslq %ebp, %r15
vcvtsi2ss %ebx, %xmm0, %xmm0
callq 0x9901
movw %ax, (%r14,%r15,2)
jmp 0x9c93
cmpq $0x4, 0x30(%r14)
jne 0x9de4
vcvtsi2ss %ebx, %xmm0, %xmm0
movq 0xf8(%r14), %rax
movslq %ebp, %rcx
vmovss %xmm0, (%rax,%rcx,4)
jmp 0x9c93
leaq 0x299fc(%rip), %rdi # 0x3375a
leaq 0x29c50(%rip), %rdx # 0x339b5
movl $0xa70, %esi # imm = 0xA70
xorl %eax, %eax
callq 0x8b10
leaq 0x299e2(%rip), %rdi # 0x3375a
leaq 0x29a3a(%rip), %rdx # 0x337b9
leaq 0x29b49(%rip), %rcx # 0x338cf
movl $0xa52, %esi # imm = 0xA52
jmp 0x9e1a
leaq 0x299c3(%rip), %rdi # 0x3375a
leaq 0x29a1b(%rip), %rdx # 0x337b9
leaq 0x29b8a(%rip), %rcx # 0x3392f
movl $0xa57, %esi # imm = 0xA57
jmp 0x9e1a
leaq 0x299a7(%rip), %rdi # 0x3375a
leaq 0x299ff(%rip), %rdx # 0x337b9
leaq 0x29b8f(%rip), %rcx # 0x33950
movl $0xa5c, %esi # imm = 0xA5C
jmp 0x9e1a
leaq 0x2998b(%rip), %rdi # 0x3375a
leaq 0x299e3(%rip), %rdx # 0x337b9
leaq 0x29c22(%rip), %rcx # 0x339ff
movl $0xa66, %esi # imm = 0xA66
jmp 0x9e1a
leaq 0x2996f(%rip), %rdi # 0x3375a
leaq 0x299c7(%rip), %rdx # 0x337b9
leaq 0x29b9d(%rip), %rcx # 0x33996
movl $0xa6b, %esi # imm = 0xA6B
jmp 0x9e1a
leaq 0x29953(%rip), %rdi # 0x3375a
leaq 0x299ab(%rip), %rdx # 0x337b9
leaq 0x29b5c(%rip), %rcx # 0x33971
movl $0xa61, %esi # imm = 0xA61
xorl %eax, %eax
callq 0x8b10
| ggml_set_i32_1d:
push rbp
push r15
push r14
push rbx
sub rsp, 28h
mov ebx, edx
mov ebp, esi
mov r14, rdi
call _ggml_is_contiguous
test al, al
jz short loc_9C4D
mov eax, [r14]
lea ecx, [rax-18h]; switch 7 cases
cmp ecx, 6
ja short def_9C31; jumptable 0000000000009C31 default case
lea rax, jpt_9C31
movsxd rcx, ds:(jpt_9C31 - 33070h)[rax+rcx*4]
add rcx, rax
jmp rcx; switch jump
loc_9C33:
cmp qword ptr [r14+30h], 1; jumptable 0000000000009C31 case 24
jnz loc_9D71
mov rax, [r14+0F8h]
movsxd rcx, ebp
mov [rax+rcx], bl
jmp short loc_9C93
loc_9C4D:
vxorps xmm0, xmm0, xmm0
lea rcx, [rsp+48h+var_40]
vmovups ymmword ptr [rcx-8], ymm0
movsxd rsi, ebp
lea r8, [rsp+48h+var_38]
lea r9, [rsp+48h+var_30]
mov r15, rsp
mov rdi, r14
mov rdx, r15
vzeroupper
call _ggml_unravel_index
mov esi, [r15]
mov edx, [r15+8]
mov ecx, [r15+10h]
mov r8d, [r15+18h]
mov rdi, r14
mov r9d, ebx
call _ggml_set_i32_nd
loc_9C93:
add rsp, 28h
pop rbx
pop r14
pop r15
pop rbp
retn
def_9C31:
test eax, eax; jumptable 0000000000009C31 default case
jz loc_9D34
cmp eax, 1
jnz loc_9D57; jumptable 0000000000009C31 cases 27-29
cmp qword ptr [r14+30h], 2
jnz loc_9E00
vcvtsi2ss xmm0, xmm0, ebx
vcvtps2ph xmm0, xmm0, 0
mov rax, [r14+0F8h]
movsxd rcx, ebp
vpextrw word ptr [rax+rcx*2], xmm0, 0
jmp short loc_9C93
loc_9CD7:
cmp qword ptr [r14+30h], 2; jumptable 0000000000009C31 case 25
jnz loc_9D90
mov rax, [r14+0F8h]
movsxd rcx, ebp
mov [rax+rcx*2], bx
jmp short loc_9C93
loc_9CF2:
cmp qword ptr [r14+30h], 4; jumptable 0000000000009C31 case 26
jnz loc_9DAC
mov rax, [r14+0F8h]
movsxd rcx, ebp
mov [rax+rcx*4], ebx
jmp short loc_9C93
loc_9D0C:
cmp qword ptr [r14+30h], 2; jumptable 0000000000009C31 case 30
jnz loc_9DC8
mov r14, [r14+0F8h]
movsxd r15, ebp
vcvtsi2ss xmm0, xmm0, ebx
call ggml_compute_fp32_to_bf16
mov [r14+r15*2], ax
jmp loc_9C93
loc_9D34:
cmp qword ptr [r14+30h], 4
jnz loc_9DE4
vcvtsi2ss xmm0, xmm0, ebx
mov rax, [r14+0F8h]
movsxd rcx, ebp
vmovss dword ptr [rax+rcx*4], xmm0
jmp loc_9C93
loc_9D57:
lea rdi, aWorkspaceLlm4b_0; jumptable 0000000000009C31 cases 27-29
lea rdx, aFatalError; "fatal error"
mov esi, 0A70h
xor eax, eax
call _ggml_abort
loc_9D71:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorNb0Sizeo; "tensor->nb[0] == sizeof(int8_t)"
mov esi, 0A52h
jmp loc_9E1A
loc_9D90:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorNb0Sizeo_0; "tensor->nb[0] == sizeof(int16_t)"
mov esi, 0A57h
jmp short loc_9E1A
loc_9DAC:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorNb0Sizeo_1; "tensor->nb[0] == sizeof(int32_t)"
mov esi, 0A5Ch
jmp short loc_9E1A
loc_9DC8:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorNb0Sizeo_4; "tensor->nb[0] == sizeof(ggml_bf16_t)"
mov esi, 0A66h
jmp short loc_9E1A
loc_9DE4:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorNb0Sizeo_3; "tensor->nb[0] == sizeof(float)"
mov esi, 0A6Bh
jmp short loc_9E1A
loc_9E00:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorNb0Sizeo_2; "tensor->nb[0] == sizeof(ggml_fp16_t)"
mov esi, 0A61h
loc_9E1A:
xor eax, eax
call _ggml_abort
| long long ggml_set_i32_1d(int *a1, int a2, unsigned int a3, __m128 _XMM0)
{
int v6; // eax
long long result; // rax
long long v13; // r14
unsigned int v17; // [rsp+0h] [rbp-48h] BYREF
unsigned int v18; // [rsp+8h] [rbp-40h] BYREF
unsigned int v19; // [rsp+10h] [rbp-38h] BYREF
_DWORD v20[12]; // [rsp+18h] [rbp-30h] BYREF
if ( (unsigned __int8)ggml_is_contiguous() )
{
v6 = *a1;
switch ( *a1 )
{
case 24:
if ( *((_QWORD *)a1 + 6) != 1LL )
goto LABEL_19;
result = *((_QWORD *)a1 + 31);
*(_BYTE *)(result + a2) = a3;
return result;
case 25:
if ( *((_QWORD *)a1 + 6) != 2LL )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
2647LL,
"GGML_ASSERT(%s) failed",
"tensor->nb[0] == sizeof(int16_t)");
goto LABEL_25;
}
result = *((_QWORD *)a1 + 31);
*(_WORD *)(result + 2LL * a2) = a3;
return result;
case 26:
if ( *((_QWORD *)a1 + 6) != 4LL )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
2652LL,
"GGML_ASSERT(%s) failed",
"tensor->nb[0] == sizeof(int32_t)");
goto LABEL_25;
}
result = *((_QWORD *)a1 + 31);
*(_DWORD *)(result + 4LL * a2) = a3;
return result;
case 27:
case 28:
case 29:
goto LABEL_18;
case 30:
if ( *((_QWORD *)a1 + 6) == 2LL )
{
v13 = *((_QWORD *)a1 + 31);
__asm { vcvtsi2ss xmm0, xmm0, ebx }
result = ggml_compute_fp32_to_bf16(_XMM0);
*(_WORD *)(v13 + 2LL * a2) = result;
return result;
}
ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
2662LL,
"GGML_ASSERT(%s) failed",
"tensor->nb[0] == sizeof(ggml_bf16_t)");
goto LABEL_25;
default:
if ( v6 )
{
if ( v6 == 1 )
{
if ( *((_QWORD *)a1 + 6) == 2LL )
{
__asm
{
vcvtsi2ss xmm0, xmm0, ebx
vcvtps2ph xmm0, xmm0, 0
}
result = *((_QWORD *)a1 + 31);
_RCX = a2;
__asm { vpextrw word ptr [rax+rcx*2], xmm0, 0 }
return result;
}
ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
2657LL,
"GGML_ASSERT(%s) failed",
"tensor->nb[0] == sizeof(ggml_fp16_t)");
}
else
{
LABEL_18:
ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
2672LL,
"fatal error");
LABEL_19:
ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
2642LL,
"GGML_ASSERT(%s) failed",
"tensor->nb[0] == sizeof(int8_t)");
}
}
else
{
if ( *((_QWORD *)a1 + 6) == 4LL )
{
__asm { vcvtsi2ss xmm0, xmm0, ebx }
result = *((_QWORD *)a1 + 31);
_RCX = a2;
__asm { vmovss dword ptr [rax+rcx*4], xmm0 }
return result;
}
ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
2667LL,
"GGML_ASSERT(%s) failed",
"tensor->nb[0] == sizeof(float)");
}
LABEL_25:
result = ggml_set_i32_nd();
break;
}
}
else
{
__asm { vxorps xmm0, xmm0, xmm0 }
_RCX = &v18;
__asm
{
vmovups ymmword ptr [rcx-8], ymm0
vzeroupper
}
ggml_unravel_index(a1, a2, &v17, &v18, &v19, v20, *(double *)&_XMM0);
return ggml_set_i32_nd(a1, v17, v18, v19, v20[0], a3);
}
return result;
}
| ggml_set_i32_1d:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV EBX,EDX
MOV EBP,ESI
MOV R14,RDI
CALL 0x001081e0
TEST AL,AL
JZ 0x00109c4d
MOV EAX,dword ptr [R14]
LEA ECX,[RAX + -0x18]
CMP ECX,0x6
JA 0x00109c9e
LEA RAX,[0x133070]
MOVSXD RCX,dword ptr [RAX + RCX*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_18:
CMP qword ptr [R14 + 0x30],0x1
JNZ 0x00109d71
MOV RAX,qword ptr [R14 + 0xf8]
MOVSXD RCX,EBP
MOV byte ptr [RAX + RCX*0x1],BL
JMP 0x00109c93
LAB_00109c4d:
VXORPS XMM0,XMM0,XMM0
LEA RCX,[RSP + 0x8]
VMOVUPS ymmword ptr [RCX + -0x8],YMM0
MOVSXD RSI,EBP
LEA R8,[RSP + 0x10]
LEA R9,[RSP + 0x18]
MOV R15,RSP
MOV RDI,R14
MOV RDX,R15
VZEROUPPER
CALL 0x00108570
MOV ESI,dword ptr [R15]
MOV EDX,dword ptr [R15 + 0x8]
MOV ECX,dword ptr [R15 + 0x10]
MOV R8D,dword ptr [R15 + 0x18]
MOV RDI,R14
MOV R9D,EBX
CALL 0x001084a0
LAB_00109c93:
ADD RSP,0x28
POP RBX
POP R14
POP R15
POP RBP
RET
default:
TEST EAX,EAX
JZ 0x00109d34
CMP EAX,0x1
JNZ 0x00109d57
CMP qword ptr [R14 + 0x30],0x2
JNZ 0x00109e00
VCVTSI2SS XMM0,XMM0,EBX
VCVTPS2PH XMM0,XMM0,0x0
MOV RAX,qword ptr [R14 + 0xf8]
MOVSXD RCX,EBP
VPEXTRW word ptr [RAX + RCX*0x2],XMM0,0x0
JMP 0x00109c93
caseD_19:
CMP qword ptr [R14 + 0x30],0x2
JNZ 0x00109d90
MOV RAX,qword ptr [R14 + 0xf8]
MOVSXD RCX,EBP
MOV word ptr [RAX + RCX*0x2],BX
JMP 0x00109c93
caseD_1a:
CMP qword ptr [R14 + 0x30],0x4
JNZ 0x00109dac
MOV RAX,qword ptr [R14 + 0xf8]
MOVSXD RCX,EBP
MOV dword ptr [RAX + RCX*0x4],EBX
JMP 0x00109c93
caseD_1e:
CMP qword ptr [R14 + 0x30],0x2
JNZ 0x00109dc8
MOV R14,qword ptr [R14 + 0xf8]
MOVSXD R15,EBP
VCVTSI2SS XMM0,XMM0,EBX
CALL 0x00109901
MOV word ptr [R14 + R15*0x2],AX
JMP 0x00109c93
LAB_00109d34:
CMP qword ptr [R14 + 0x30],0x4
JNZ 0x00109de4
VCVTSI2SS XMM0,XMM0,EBX
MOV RAX,qword ptr [R14 + 0xf8]
MOVSXD RCX,EBP
VMOVSS dword ptr [RAX + RCX*0x4],XMM0
JMP 0x00109c93
caseD_1b:
LEA RDI,[0x13375a]
LEA RDX,[0x1339b5]
MOV ESI,0xa70
XOR EAX,EAX
CALL 0x00108b10
LAB_00109d71:
LEA RDI,[0x13375a]
LEA RDX,[0x1337b9]
LEA RCX,[0x1338cf]
MOV ESI,0xa52
JMP 0x00109e1a
LAB_00109d90:
LEA RDI,[0x13375a]
LEA RDX,[0x1337b9]
LEA RCX,[0x13392f]
MOV ESI,0xa57
JMP 0x00109e1a
LAB_00109dac:
LEA RDI,[0x13375a]
LEA RDX,[0x1337b9]
LEA RCX,[0x133950]
MOV ESI,0xa5c
JMP 0x00109e1a
LAB_00109dc8:
LEA RDI,[0x13375a]
LEA RDX,[0x1337b9]
LEA RCX,[0x1339ff]
MOV ESI,0xa66
JMP 0x00109e1a
LAB_00109de4:
LEA RDI,[0x13375a]
LEA RDX,[0x1337b9]
LEA RCX,[0x133996]
MOV ESI,0xa6b
JMP 0x00109e1a
LAB_00109e00:
LEA RDI,[0x13375a]
LEA RDX,[0x1337b9]
LEA RCX,[0x133971]
MOV ESI,0xa61
LAB_00109e1a:
XOR EAX,EAX
CALL 0x00108b10
|
void ggml_set_i32_1d(int *param_1,int param_2,int param_3)
{
int iVar1;
long lVar2;
char cVar3;
int2 uVar4;
char *pcVar5;
int8 uVar6;
int8 extraout_XMM0_Qa;
int1 auVar7 [16];
int1 auVar8 [16];
int1 extraout_var [56];
ulong local_48;
ulong uStack_40;
ulong uStack_38;
ulong auStack_30 [2];
int1 auVar9 [64];
cVar3 = ggml_is_contiguous();
auVar9._8_56_ = extraout_var;
auVar9._0_8_ = extraout_XMM0_Qa;
if (cVar3 == '\0') {
local_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
auStack_30[0] = 0;
ggml_unravel_index(param_1,(long)param_2,&local_48,&uStack_40,&uStack_38,auStack_30);
ggml_set_i32_nd(param_1,local_48 & 0xffffffff,uStack_40 & 0xffffffff,uStack_38 & 0xffffffff,
auStack_30[0] & 0xffffffff,param_3);
}
else {
iVar1 = *param_1;
auVar7._4_12_ = auVar9._4_12_;
switch(iVar1) {
case 0x18:
if (*(long *)(param_1 + 0xc) != 1) {
pcVar5 = "tensor->nb[0] == sizeof(int8_t)";
uVar6 = 0xa52;
LAB_00109e1a:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c"
,uVar6,"GGML_ASSERT(%s) failed",pcVar5);
}
*(char *)(*(long *)(param_1 + 0x3e) + (long)param_2) = (char)param_3;
break;
case 0x19:
if (*(long *)(param_1 + 0xc) != 2) {
pcVar5 = "tensor->nb[0] == sizeof(int16_t)";
uVar6 = 0xa57;
goto LAB_00109e1a;
}
*(short *)(*(long *)(param_1 + 0x3e) + (long)param_2 * 2) = (short)param_3;
break;
case 0x1a:
if (*(long *)(param_1 + 0xc) != 4) {
pcVar5 = "tensor->nb[0] == sizeof(int32_t)";
uVar6 = 0xa5c;
goto LAB_00109e1a;
}
*(int *)(*(long *)(param_1 + 0x3e) + (long)param_2 * 4) = param_3;
break;
case 0x1b:
case 0x1c:
case 0x1d:
switchD_00109c31_caseD_1b:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c"
,0xa70,"fatal error");
case 0x1e:
if (*(long *)(param_1 + 0xc) != 2) {
pcVar5 = "tensor->nb[0] == sizeof(ggml_bf16_t)";
uVar6 = 0xa66;
goto LAB_00109e1a;
}
lVar2 = *(long *)(param_1 + 0x3e);
auVar8._0_4_ = (float)param_3;
auVar8._4_12_ = auVar7._4_12_;
uVar4 = ggml_compute_fp32_to_bf16(auVar8._0_8_);
*(int2 *)(lVar2 + (long)param_2 * 2) = uVar4;
break;
default:
if (iVar1 == 0) {
if (*(long *)(param_1 + 0xc) != 4) {
pcVar5 = "tensor->nb[0] == sizeof(float)";
uVar6 = 0xa6b;
goto LAB_00109e1a;
}
*(float *)(*(long *)(param_1 + 0x3e) + (long)param_2 * 4) = (float)param_3;
}
else {
if (iVar1 != 1) goto switchD_00109c31_caseD_1b;
if (*(long *)(param_1 + 0xc) != 2) {
pcVar5 = "tensor->nb[0] == sizeof(ggml_fp16_t)";
uVar6 = 0xa61;
goto LAB_00109e1a;
}
auVar7._0_4_ = (float)param_3;
auVar7 = vcvtps2ph_f16c(auVar7,0);
vpextrw_avx(auVar7,0);
}
}
}
return;
}
| |
48,230 | ggml_compute_forward_get_rows_back | ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp | void ggml_compute_forward_get_rows_back(
const ggml_compute_params * params,
ggml_tensor * dst) {
const ggml_tensor * src0 = dst->src[0];
switch (src0->type) {
case GGML_TYPE_F16:
{
ggml_compute_forward_get_rows_back_f32_f16(params, dst);
} break;
case GGML_TYPE_F32:
{
ggml_compute_forward_get_rows_back_f32(params, dst);
} break;
default:
{
GGML_ABORT("fatal error");
}
}
//static bool first = true;
//printf("ne0 = %d, ne1 = %d, ne2 = %d\n", dst->ne[0], dst->ne[1], dst->ne[2]);
//if (first) {
// first = false;
//} else {
// for (int k = 0; k < dst->ne[1]; ++k) {
// for (int j = 0; j < dst->ne[0]/16; ++j) {
// for (int i = 0; i < 16; ++i) {
// printf("%8.4f ", ((float *) dst->data)[k*dst->ne[0] + j*16 + i]);
// }
// printf("\n");
// }
// printf("\n");
// }
// printf("\n");
// exit(0);
//}
} | O0 | cpp | ggml_compute_forward_get_rows_back:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq 0x98(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movl (%rax), %eax
movl %eax, 0xc(%rsp)
testl %eax, %eax
je 0x9422c
jmp 0x94210
movl 0xc(%rsp), %eax
subl $0x1, %eax
jne 0x9423d
jmp 0x9421b
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x94260
jmp 0x94257
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x94440
jmp 0x94257
leaq 0x21454(%rip), %rdi # 0xb5698
movl $0x1174, %esi # imm = 0x1174
leaq 0x17844(%rip), %rdx # 0xaba94
movb $0x0, %al
callq 0x10660
addq $0x28, %rsp
retq
nopl (%rax)
| ggml_compute_forward_get_rows_back:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov [rsp+28h+var_10], rsi
mov rax, [rsp+28h+var_10]
mov rax, [rax+98h]
mov [rsp+28h+var_18], rax
mov rax, [rsp+28h+var_18]
mov eax, [rax]
mov [rsp+28h+var_1C], eax
test eax, eax
jz short loc_9422C
jmp short $+2
loc_94210:
mov eax, [rsp+28h+var_1C]
sub eax, 1
jnz short loc_9423D
jmp short $+2
loc_9421B:
mov rdi, [rsp+28h+var_8]
mov rsi, [rsp+28h+var_10]
call _ZL42ggml_compute_forward_get_rows_back_f32_f16PK19ggml_compute_paramsP11ggml_tensor; ggml_compute_forward_get_rows_back_f32_f16(ggml_compute_params const*,ggml_tensor *)
jmp short loc_94257
loc_9422C:
mov rdi, [rsp+28h+var_8]
mov rsi, [rsp+28h+var_10]
call _ZL38ggml_compute_forward_get_rows_back_f32PK19ggml_compute_paramsP11ggml_tensor; ggml_compute_forward_get_rows_back_f32(ggml_compute_params const*,ggml_tensor *)
jmp short loc_94257
loc_9423D:
lea rdi, aWorkspaceLlm4b_6; "/workspace/llm4binary/github/2025_star3"...
mov esi, 1174h
lea rdx, aFatalError; "fatal error"
mov al, 0
call _ggml_abort
loc_94257:
add rsp, 28h
retn
| double ggml_compute_forward_get_rows_back(long long a1, long long a2)
{
double result; // xmm0_8
int v3; // [rsp+Ch] [rbp-1Ch]
v3 = **(_DWORD **)(a2 + 152);
if ( v3 )
{
if ( v3 == 1 )
ggml_compute_forward_get_rows_back_f32_f16(a1, a2);
else
return ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
4468LL,
"fatal error");
}
else
{
ggml_compute_forward_get_rows_back_f32(a1, a2);
}
return result;
}
| ggml_compute_forward_get_rows_back:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x18],RSI
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x98]
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RSP + 0xc],EAX
TEST EAX,EAX
JZ 0x0019422c
JMP 0x00194210
LAB_00194210:
MOV EAX,dword ptr [RSP + 0xc]
SUB EAX,0x1
JNZ 0x0019423d
JMP 0x0019421b
LAB_0019421b:
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RSP + 0x18]
CALL 0x00194260
JMP 0x00194257
LAB_0019422c:
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RSP + 0x18]
CALL 0x00194440
JMP 0x00194257
LAB_0019423d:
LEA RDI,[0x1b5698]
MOV ESI,0x1174
LEA RDX,[0x1aba94]
MOV AL,0x0
CALL 0x00110660
LAB_00194257:
ADD RSP,0x28
RET
|
void ggml_compute_forward_get_rows_back(ggml_compute_params *param_1,ggml_tensor *param_2)
{
if (**(int **)(param_2 + 0x98) == 0) {
ggml_compute_forward_get_rows_back_f32(param_1,param_2);
}
else if (**(int **)(param_2 + 0x98) == 1) {
ggml_compute_forward_get_rows_back_f32_f16(param_1,param_2);
}
else {
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp"
,0x1174,"fatal error");
}
return;
}
| |
48,231 | ggml_compute_forward_get_rows_back | ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp | void ggml_compute_forward_get_rows_back(
const ggml_compute_params * params,
ggml_tensor * dst) {
const ggml_tensor * src0 = dst->src[0];
switch (src0->type) {
case GGML_TYPE_F16:
{
ggml_compute_forward_get_rows_back_f32_f16(params, dst);
} break;
case GGML_TYPE_F32:
{
ggml_compute_forward_get_rows_back_f32(params, dst);
} break;
default:
{
GGML_ABORT("fatal error");
}
}
//static bool first = true;
//printf("ne0 = %d, ne1 = %d, ne2 = %d\n", dst->ne[0], dst->ne[1], dst->ne[2]);
//if (first) {
// first = false;
//} else {
// for (int k = 0; k < dst->ne[1]; ++k) {
// for (int j = 0; j < dst->ne[0]/16; ++j) {
// for (int i = 0; i < 16; ++i) {
// printf("%8.4f ", ((float *) dst->data)[k*dst->ne[0] + j*16 + i]);
// }
// printf("\n");
// }
// printf("\n");
// }
// printf("\n");
// exit(0);
//}
} | O1 | cpp | ggml_compute_forward_get_rows_back:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq 0x98(%rsi), %r12
movl (%r12), %eax
testl %eax, %eax
je 0x3bd0c
cmpl $0x1, %eax
jne 0x3bde6
cmpl $0x0, (%rdi)
jne 0x3bdda
movq 0xa0(%rbx), %r14
movq %rbx, %rdi
callq 0xa230
testb %al, %al
je 0x3be00
movq 0xf8(%rbx), %r15
movq %rbx, %rdi
callq 0xa0e0
movq %r15, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0xa480
movq 0x10(%r12), %r15
movq %r14, %rdi
callq 0xa920
movslq %r15d, %rcx
cmpq %rcx, 0x10(%rbx)
jne 0x3be3b
cmpq $0x2, 0x30(%r12)
jne 0x3be73
testl %eax, %eax
jle 0x3bdda
movq 0xf8(%r14), %rcx
movl $0x7fffffff, %esi # imm = 0x7FFFFFFF
andq %rsi, %rax
movq %r15, %rdx
andq %rsi, %rdx
xorl %esi, %esi
movq 0x202a9(%rip), %rdi # 0x5bf60
testl %r15d, %r15d
jle 0x3bcff
movslq (%rcx,%rsi,4), %r8
imulq 0x38(%rbx), %r8
addq 0xf8(%rbx), %r8
movq 0x38(%r12), %r9
imulq %rsi, %r9
addq 0xf8(%r12), %r9
xorl %r10d, %r10d
movzwl (%r9,%r10,2), %r11d
vmovss (%rdi,%r11,4), %xmm0
vaddss (%r8,%r10,4), %xmm0, %xmm0
vmovss %xmm0, (%r8,%r10,4)
incq %r10
cmpq %r10, %rdx
jne 0x3bce0
incq %rsi
cmpq %rax, %rsi
jne 0x3bcb7
jmp 0x3bdda
cmpl $0x0, (%rdi)
jne 0x3bdda
movq 0xa0(%rbx), %r14
movq %rbx, %rdi
callq 0xa230
testb %al, %al
je 0x3be1f
movq 0xf8(%rbx), %r15
movq %rbx, %rdi
callq 0xa0e0
movq %r15, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0xa480
movq 0x10(%r12), %r15
movq %r14, %rdi
callq 0xa920
movslq %r15d, %rcx
cmpq %rcx, 0x10(%rbx)
jne 0x3be57
cmpq $0x4, 0x30(%r12)
jne 0x3be8f
testl %eax, %eax
jle 0x3bdda
movq 0xf8(%r14), %rcx
movq 0x38(%rbx), %rdx
movq 0xf8(%rbx), %rsi
movq 0x38(%r12), %rdi
movq 0xf8(%r12), %r8
movl $0x7fffffff, %r10d # imm = 0x7FFFFFFF
movq %r15, %r9
andq %r10, %r9
andq %r10, %rax
xorl %r10d, %r10d
testl %r15d, %r15d
jle 0x3bdcf
movslq (%rcx,%r10,4), %r11
imulq %rdx, %r11
addq %rsi, %r11
xorl %ebx, %ebx
vmovss (%r11,%rbx,4), %xmm0
vaddss (%r8,%rbx,4), %xmm0, %xmm0
vmovss %xmm0, (%r11,%rbx,4)
incq %rbx
cmpq %rbx, %r9
jne 0x3bdb5
incq %r10
addq %rdi, %r8
cmpq %rax, %r10
jne 0x3bda3
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x17cb3(%rip), %rdi # 0x53aa0
leaq 0xd88c(%rip), %rdx # 0x49680
movl $0x1174, %esi # imm = 0x1174
xorl %eax, %eax
callq 0xaf40
leaq 0x17c99(%rip), %rdi # 0x53aa0
leaq 0xd75c(%rip), %rdx # 0x4956a
leaq 0x17ed3(%rip), %rcx # 0x53ce8
movl $0x112c, %esi # imm = 0x112C
jmp 0x3bea9
leaq 0x17c7a(%rip), %rdi # 0x53aa0
leaq 0xd73d(%rip), %rdx # 0x4956a
leaq 0x17eb4(%rip), %rcx # 0x53ce8
movl $0x114d, %esi # imm = 0x114D
jmp 0x3bea9
leaq 0x17c5e(%rip), %rdi # 0x53aa0
leaq 0xd721(%rip), %rdx # 0x4956a
leaq 0x18418(%rip), %rcx # 0x54268
movl $0x1135, %esi # imm = 0x1135
jmp 0x3bea9
leaq 0x17c42(%rip), %rdi # 0x53aa0
leaq 0xd705(%rip), %rdx # 0x4956a
leaq 0x183fc(%rip), %rcx # 0x54268
movl $0x1156, %esi # imm = 0x1156
jmp 0x3bea9
leaq 0x17c26(%rip), %rdi # 0x53aa0
leaq 0xd6e9(%rip), %rdx # 0x4956a
leaq 0x183f1(%rip), %rcx # 0x54279
movl $0x1136, %esi # imm = 0x1136
jmp 0x3bea9
leaq 0x17c0a(%rip), %rdi # 0x53aa0
leaq 0xd6cd(%rip), %rdx # 0x4956a
leaq 0x1810f(%rip), %rcx # 0x53fb3
movl $0x1157, %esi # imm = 0x1157
xorl %eax, %eax
callq 0xaf40
| ggml_compute_forward_get_rows_back:
push r15
push r14
push r12
push rbx
push rax
mov rbx, rsi
mov r12, [rsi+98h]
mov eax, [r12]
test eax, eax
jz loc_3BD0C
cmp eax, 1
jnz loc_3BDE6
cmp dword ptr [rdi], 0
jnz loc_3BDDA
mov r14, [rbx+0A0h]
mov rdi, rbx
call _ggml_is_contiguous
test al, al
jz loc_3BE00
mov r15, [rbx+0F8h]
mov rdi, rbx
call _ggml_nbytes
mov rdi, r15
xor esi, esi
mov rdx, rax
call _memset
mov r15, [r12+10h]
mov rdi, r14
call _ggml_nelements
movsxd rcx, r15d
cmp [rbx+10h], rcx
jnz loc_3BE3B
cmp qword ptr [r12+30h], 2
jnz loc_3BE73
test eax, eax
jle loc_3BDDA
mov rcx, [r14+0F8h]
mov esi, 7FFFFFFFh
and rax, rsi
mov rdx, r15
and rdx, rsi
xor esi, esi
mov rdi, cs:ggml_table_f32_f16_ptr
loc_3BCB7:
test r15d, r15d
jle short loc_3BCFF
movsxd r8, dword ptr [rcx+rsi*4]
imul r8, [rbx+38h]
add r8, [rbx+0F8h]
mov r9, [r12+38h]
imul r9, rsi
add r9, [r12+0F8h]
xor r10d, r10d
loc_3BCE0:
movzx r11d, word ptr [r9+r10*2]
vmovss xmm0, dword ptr [rdi+r11*4]
vaddss xmm0, xmm0, dword ptr [r8+r10*4]
vmovss dword ptr [r8+r10*4], xmm0
inc r10
cmp rdx, r10
jnz short loc_3BCE0
loc_3BCFF:
inc rsi
cmp rsi, rax
jnz short loc_3BCB7
jmp loc_3BDDA
loc_3BD0C:
cmp dword ptr [rdi], 0
jnz loc_3BDDA
mov r14, [rbx+0A0h]
mov rdi, rbx
call _ggml_is_contiguous
test al, al
jz loc_3BE1F
mov r15, [rbx+0F8h]
mov rdi, rbx
call _ggml_nbytes
mov rdi, r15
xor esi, esi
mov rdx, rax
call _memset
mov r15, [r12+10h]
mov rdi, r14
call _ggml_nelements
movsxd rcx, r15d
cmp [rbx+10h], rcx
jnz loc_3BE57
cmp qword ptr [r12+30h], 4
jnz loc_3BE8F
test eax, eax
jle short loc_3BDDA
mov rcx, [r14+0F8h]
mov rdx, [rbx+38h]
mov rsi, [rbx+0F8h]
mov rdi, [r12+38h]
mov r8, [r12+0F8h]
mov r10d, 7FFFFFFFh
mov r9, r15
and r9, r10
and rax, r10
xor r10d, r10d
loc_3BDA3:
test r15d, r15d
jle short loc_3BDCF
movsxd r11, dword ptr [rcx+r10*4]
imul r11, rdx
add r11, rsi
xor ebx, ebx
loc_3BDB5:
vmovss xmm0, dword ptr [r11+rbx*4]
vaddss xmm0, xmm0, dword ptr [r8+rbx*4]
vmovss dword ptr [r11+rbx*4], xmm0
inc rbx
cmp r9, rbx
jnz short loc_3BDB5
loc_3BDCF:
inc r10
add r8, rdi
cmp r10, rax
jnz short loc_3BDA3
loc_3BDDA:
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
loc_3BDE6:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aFatalError; "fatal error"
mov esi, 1174h
xor eax, eax
call _ggml_abort
loc_3BE00:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNe10Qk0GgmlIsC+14h; "ggml_is_contiguous(dst)"
mov esi, 112Ch
jmp loc_3BEA9
loc_3BE1F:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNe10Qk0GgmlIsC+14h; "ggml_is_contiguous(dst)"
mov esi, 114Dh
jmp short loc_3BEA9
loc_3BE3B:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aDstNe0Nc; "dst->ne[0] == nc"
mov esi, 1135h
jmp short loc_3BEA9
loc_3BE57:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aDstNe0Nc; "dst->ne[0] == nc"
mov esi, 1156h
jmp short loc_3BEA9
loc_3BE73:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aSrc0Nb0SizeofG; "src0->nb[0] == sizeof(ggml_fp16_t)"
mov esi, 1136h
jmp short loc_3BEA9
loc_3BE8F:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aSrc0Nb0SizeofF; "src0->nb[0] == sizeof(float)"
mov esi, 1157h
loc_3BEA9:
xor eax, eax
call _ggml_abort
| long long ggml_compute_forward_get_rows_back(_DWORD *a1, _QWORD *a2, long long a3)
{
_QWORD *v4; // r12
long long result; // rax
long long v6; // r14
long long v7; // r15
long long v8; // rax
long long v9; // r15
long long v10; // rcx
long long v11; // rsi
long long v14; // r9
long long v19; // r14
long long v20; // r15
long long v21; // rax
long long v22; // r15
long long v23; // rcx
long long v24; // rdx
long long v25; // rsi
long long v26; // rdi
long long v27; // r8
long long v28; // r10
v4 = (_QWORD *)a2[19];
result = *(unsigned int *)v4;
if ( (_DWORD)result )
{
if ( (_DWORD)result == 1 )
{
if ( *a1 )
return result;
v6 = a2[20];
if ( (unsigned __int8)ggml_is_contiguous(a2, a2, a3) )
{
v7 = a2[31];
v8 = ggml_nbytes(a2);
memset(v7, 0LL, v8);
v9 = v4[2];
result = ggml_nelements(v6);
if ( a2[2] == (int)v9 )
{
if ( v4[6] == 2LL )
{
if ( (int)result > 0 )
{
v10 = *(_QWORD *)(v6 + 248);
result &= 0x7FFFFFFFu;
v11 = 0LL;
_RDI = &ggml_table_f32_f16;
do
{
if ( (int)v9 > 0 )
{
_R8 = a2[31] + a2[7] * *(int *)(v10 + 4 * v11);
v14 = v4[31] + v11 * v4[7];
_R10 = 0LL;
do
{
_R11 = *(unsigned __int16 *)(v14 + 2 * _R10);
__asm
{
vmovss xmm0, dword ptr [rdi+r11*4]
vaddss xmm0, xmm0, dword ptr [r8+r10*4]
vmovss dword ptr [r8+r10*4], xmm0
}
++_R10;
}
while ( (v9 & 0x7FFFFFFF) != _R10 );
}
++v11;
}
while ( v11 != result );
}
return result;
}
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
4406LL,
"GGML_ASSERT(%s) failed",
"src0->nb[0] == sizeof(ggml_fp16_t)");
}
else
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
4405LL,
"GGML_ASSERT(%s) failed",
"dst->ne[0] == nc");
}
return ggml_compute_forward_diag();
}
}
else
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
4468LL,
"fatal error");
}
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
4396LL,
"GGML_ASSERT(%s) failed",
"ggml_is_contiguous(dst)");
return ggml_compute_forward_diag();
}
if ( *a1 )
return result;
v19 = a2[20];
if ( !(unsigned __int8)ggml_is_contiguous(a2, a2, a3) )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
4429LL,
"GGML_ASSERT(%s) failed",
"ggml_is_contiguous(dst)");
return ggml_compute_forward_diag();
}
v20 = a2[31];
v21 = ggml_nbytes(a2);
memset(v20, 0LL, v21);
v22 = v4[2];
result = ggml_nelements(v19);
if ( a2[2] != (int)v22 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
4438LL,
"GGML_ASSERT(%s) failed",
"dst->ne[0] == nc");
return ggml_compute_forward_diag();
}
if ( v4[6] != 4LL )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
4439LL,
"GGML_ASSERT(%s) failed",
"src0->nb[0] == sizeof(float)");
return ggml_compute_forward_diag();
}
if ( (int)result > 0 )
{
v23 = *(_QWORD *)(v19 + 248);
v24 = a2[7];
v25 = a2[31];
v26 = v4[7];
v27 = v4[31];
result &= 0x7FFFFFFFu;
v28 = 0LL;
do
{
if ( (int)v22 > 0 )
{
_R11 = v25 + v24 * *(int *)(v23 + 4 * v28);
_RBX = 0LL;
do
{
__asm
{
vmovss xmm0, dword ptr [r11+rbx*4]
vaddss xmm0, xmm0, dword ptr [r8+rbx*4]
vmovss dword ptr [r11+rbx*4], xmm0
}
++_RBX;
}
while ( (v22 & 0x7FFFFFFF) != _RBX );
}
++v28;
v27 += v26;
}
while ( v28 != result );
}
return result;
}
| ggml_compute_forward_get_rows_back:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R12,qword ptr [RSI + 0x98]
MOV EAX,dword ptr [R12]
TEST EAX,EAX
JZ 0x0013bd0c
CMP EAX,0x1
JNZ 0x0013bde6
CMP dword ptr [RDI],0x0
JNZ 0x0013bdda
MOV R14,qword ptr [RBX + 0xa0]
MOV RDI,RBX
CALL 0x0010a230
TEST AL,AL
JZ 0x0013be00
MOV R15,qword ptr [RBX + 0xf8]
MOV RDI,RBX
CALL 0x0010a0e0
MOV RDI,R15
XOR ESI,ESI
MOV RDX,RAX
CALL 0x0010a480
MOV R15,qword ptr [R12 + 0x10]
MOV RDI,R14
CALL 0x0010a920
MOVSXD RCX,R15D
CMP qword ptr [RBX + 0x10],RCX
JNZ 0x0013be3b
CMP qword ptr [R12 + 0x30],0x2
JNZ 0x0013be73
TEST EAX,EAX
JLE 0x0013bdda
MOV RCX,qword ptr [R14 + 0xf8]
MOV ESI,0x7fffffff
AND RAX,RSI
MOV RDX,R15
AND RDX,RSI
XOR ESI,ESI
MOV RDI,qword ptr [0x0015bf60]
LAB_0013bcb7:
TEST R15D,R15D
JLE 0x0013bcff
MOVSXD R8,dword ptr [RCX + RSI*0x4]
IMUL R8,qword ptr [RBX + 0x38]
ADD R8,qword ptr [RBX + 0xf8]
MOV R9,qword ptr [R12 + 0x38]
IMUL R9,RSI
ADD R9,qword ptr [R12 + 0xf8]
XOR R10D,R10D
LAB_0013bce0:
MOVZX R11D,word ptr [R9 + R10*0x2]
VMOVSS XMM0,dword ptr [RDI + R11*0x4]
VADDSS XMM0,XMM0,dword ptr [R8 + R10*0x4]
VMOVSS dword ptr [R8 + R10*0x4],XMM0
INC R10
CMP RDX,R10
JNZ 0x0013bce0
LAB_0013bcff:
INC RSI
CMP RSI,RAX
JNZ 0x0013bcb7
JMP 0x0013bdda
LAB_0013bd0c:
CMP dword ptr [RDI],0x0
JNZ 0x0013bdda
MOV R14,qword ptr [RBX + 0xa0]
MOV RDI,RBX
CALL 0x0010a230
TEST AL,AL
JZ 0x0013be1f
MOV R15,qword ptr [RBX + 0xf8]
MOV RDI,RBX
CALL 0x0010a0e0
MOV RDI,R15
XOR ESI,ESI
MOV RDX,RAX
CALL 0x0010a480
MOV R15,qword ptr [R12 + 0x10]
MOV RDI,R14
CALL 0x0010a920
MOVSXD RCX,R15D
CMP qword ptr [RBX + 0x10],RCX
JNZ 0x0013be57
CMP qword ptr [R12 + 0x30],0x4
JNZ 0x0013be8f
TEST EAX,EAX
JLE 0x0013bdda
MOV RCX,qword ptr [R14 + 0xf8]
MOV RDX,qword ptr [RBX + 0x38]
MOV RSI,qword ptr [RBX + 0xf8]
MOV RDI,qword ptr [R12 + 0x38]
MOV R8,qword ptr [R12 + 0xf8]
MOV R10D,0x7fffffff
MOV R9,R15
AND R9,R10
AND RAX,R10
XOR R10D,R10D
LAB_0013bda3:
TEST R15D,R15D
JLE 0x0013bdcf
MOVSXD R11,dword ptr [RCX + R10*0x4]
IMUL R11,RDX
ADD R11,RSI
XOR EBX,EBX
LAB_0013bdb5:
VMOVSS XMM0,dword ptr [R11 + RBX*0x4]
VADDSS XMM0,XMM0,dword ptr [R8 + RBX*0x4]
VMOVSS dword ptr [R11 + RBX*0x4],XMM0
INC RBX
CMP R9,RBX
JNZ 0x0013bdb5
LAB_0013bdcf:
INC R10
ADD R8,RDI
CMP R10,RAX
JNZ 0x0013bda3
LAB_0013bdda:
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
LAB_0013bde6:
LEA RDI,[0x153aa0]
LEA RDX,[0x149680]
MOV ESI,0x1174
XOR EAX,EAX
CALL 0x0010af40
LAB_0013be00:
LEA RDI,[0x153aa0]
LEA RDX,[0x14956a]
LEA RCX,[0x153ce8]
MOV ESI,0x112c
JMP 0x0013bea9
LAB_0013be1f:
LEA RDI,[0x153aa0]
LEA RDX,[0x14956a]
LEA RCX,[0x153ce8]
MOV ESI,0x114d
JMP 0x0013bea9
LAB_0013be3b:
LEA RDI,[0x153aa0]
LEA RDX,[0x14956a]
LEA RCX,[0x154268]
MOV ESI,0x1135
JMP 0x0013bea9
LAB_0013be57:
LEA RDI,[0x153aa0]
LEA RDX,[0x14956a]
LEA RCX,[0x154268]
MOV ESI,0x1156
JMP 0x0013bea9
LAB_0013be73:
LEA RDI,[0x153aa0]
LEA RDX,[0x14956a]
LEA RCX,[0x154279]
MOV ESI,0x1136
JMP 0x0013bea9
LAB_0013be8f:
LEA RDI,[0x153aa0]
LEA RDX,[0x14956a]
LEA RCX,[0x153fb3]
MOV ESI,0x1157
LAB_0013bea9:
XOR EAX,EAX
CALL 0x0010af40
|
void ggml_compute_forward_get_rows_back(int *param_1,long param_2)
{
int *piVar1;
long lVar2;
void *pvVar3;
ulong uVar4;
long lVar5;
long lVar6;
int *puVar7;
char cVar8;
size_t sVar9;
ulong uVar10;
char *pcVar11;
ulong uVar12;
int8 uVar13;
long lVar14;
long lVar15;
ulong uVar16;
long lVar17;
int iVar18;
piVar1 = *(int **)(param_2 + 0x98);
if (*piVar1 == 0) {
if (*param_1 == 0) {
lVar2 = *(long *)(param_2 + 0xa0);
cVar8 = ggml_is_contiguous(param_2);
if (cVar8 == '\0') {
pcVar11 = "ggml_is_contiguous(dst)";
uVar13 = 0x114d;
}
else {
pvVar3 = *(void **)(param_2 + 0xf8);
sVar9 = ggml_nbytes(param_2);
memset(pvVar3,0,sVar9);
uVar4 = *(ulong *)(piVar1 + 4);
uVar10 = ggml_nelements(lVar2);
iVar18 = (int)uVar4;
if (*(long *)(param_2 + 0x10) == (long)iVar18) {
if (*(long *)(piVar1 + 0xc) == 4) {
if ((int)uVar10 < 1) {
return;
}
lVar2 = *(long *)(lVar2 + 0xf8);
lVar5 = *(long *)(param_2 + 0x38);
lVar6 = *(long *)(param_2 + 0xf8);
lVar14 = *(long *)(piVar1 + 0xe);
lVar15 = *(long *)(piVar1 + 0x3e);
uVar12 = 0;
do {
if (0 < iVar18) {
lVar17 = *(int *)(lVar2 + uVar12 * 4) * lVar5 + lVar6;
uVar16 = 0;
do {
*(float *)(lVar17 + uVar16 * 4) =
*(float *)(lVar17 + uVar16 * 4) + *(float *)(lVar15 + uVar16 * 4);
uVar16 = uVar16 + 1;
} while ((uVar4 & 0x7fffffff) != uVar16);
}
uVar12 = uVar12 + 1;
lVar15 = lVar15 + lVar14;
} while (uVar12 != (uVar10 & 0x7fffffff));
return;
}
pcVar11 = "src0->nb[0] == sizeof(float)";
uVar13 = 0x1157;
}
else {
pcVar11 = "dst->ne[0] == nc";
uVar13 = 0x1156;
}
}
goto LAB_0013bea9;
}
}
else {
if (*piVar1 != 1) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp"
,0x1174,"fatal error");
}
if (*param_1 == 0) {
lVar2 = *(long *)(param_2 + 0xa0);
cVar8 = ggml_is_contiguous(param_2);
if (cVar8 == '\0') {
pcVar11 = "ggml_is_contiguous(dst)";
uVar13 = 0x112c;
}
else {
pvVar3 = *(void **)(param_2 + 0xf8);
sVar9 = ggml_nbytes(param_2);
memset(pvVar3,0,sVar9);
uVar4 = *(ulong *)(piVar1 + 4);
uVar10 = ggml_nelements(lVar2);
puVar7 = PTR_ggml_table_f32_f16_0015bf60;
iVar18 = (int)uVar4;
if (*(long *)(param_2 + 0x10) == (long)iVar18) {
if (*(long *)(piVar1 + 0xc) == 2) {
if ((int)uVar10 < 1) {
return;
}
lVar2 = *(long *)(lVar2 + 0xf8);
uVar12 = 0;
do {
if (0 < iVar18) {
lVar14 = (long)*(int *)(lVar2 + uVar12 * 4) * *(long *)(param_2 + 0x38) +
*(long *)(param_2 + 0xf8);
lVar5 = *(long *)(piVar1 + 0xe);
lVar6 = *(long *)(piVar1 + 0x3e);
uVar16 = 0;
do {
*(float *)(lVar14 + uVar16 * 4) =
*(float *)(puVar7 + (ulong)*(ushort *)(lVar5 * uVar12 + lVar6 + uVar16 * 2) *
4) + *(float *)(lVar14 + uVar16 * 4);
uVar16 = uVar16 + 1;
} while ((uVar4 & 0x7fffffff) != uVar16);
}
uVar12 = uVar12 + 1;
} while (uVar12 != (uVar10 & 0x7fffffff));
return;
}
pcVar11 = "src0->nb[0] == sizeof(ggml_fp16_t)";
uVar13 = 0x1136;
}
else {
pcVar11 = "dst->ne[0] == nc";
uVar13 = 0x1135;
}
}
LAB_0013bea9:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp"
,uVar13,"GGML_ASSERT(%s) failed",pcVar11);
}
}
return;
}
| |
48,232 | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&) | monkey531[P]llama/common/./json.hpp | reference emplace_back(Args&& ... args)
{
// emplace_back only works for null objects or arrays
if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_array())))
{
JSON_THROW(type_error::create(311, detail::concat("cannot use emplace_back() with ", type_name()), this));
}
// transform null object into an array
if (is_null())
{
m_data.m_type = value_t::array;
m_data.m_value = value_t::array;
assert_invariant();
}
// add element to array (perfect forwarding)
const auto old_capacity = m_data.m_value.array->capacity();
m_data.m_value.array->emplace_back(std::forward<Args>(args)...);
return set_parent(m_data.m_value.array->back(), old_capacity);
} | O1 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movzbl (%rdi), %eax
testl %eax, %eax
je 0xe7848
cmpl $0x2, %eax
je 0xe7868
movl $0x20, %edi
callq 0x1b450
movq %rax, %rbx
movq %r14, %rdi
callq 0x5f44c
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x1257a(%rip), %rsi # 0xf9d88
leaq 0x10(%rsp), %rdi
callq 0xe78c4
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x137, %esi # imm = 0x137
movq %r14, %rcx
callq 0x5f1f4
xorl %ebp, %ebp
leaq 0x456df(%rip), %rsi # 0x12cf18
leaq -0x8c27a(%rip), %rdx # 0x5b5c6
movq %rbx, %rdi
callq 0x1bf40
movb $0x2, (%r14)
movl $0x18, %edi
callq 0x1b8b0
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rax, 0x8(%r14)
movq 0x8(%r14), %rdi
movq %rbx, %rsi
callq 0xe794c
movq 0x8(%r14), %rax
movq 0x8(%rax), %rax
addq $-0x10, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xe78af
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x1b8d0
jmp 0xe78af
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0xe78bc
movq %rbx, %rdi
callq 0x1b680
movq %r14, %rdi
callq 0x1bfc0
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE12emplace_backIJRSD_EEESF_DpOT_:
push rbp; char
push r14; int
push rbx; __int64
sub rsp, 30h
mov rbx, rsi
mov r14, rdi
movzx eax, byte ptr [rdi]
test eax, eax
jz short loc_E7848
cmp eax, 2
jz short loc_E7868
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
lea rdx, [rsp+48h+var_40]
mov [rdx], rax
lea rsi, aCannotUseEmpla; "cannot use emplace_back() with "
lea rdi, [rsp+48h+var_38]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA32_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[32],char const*>(char const(&)[32],char const* &&)
mov bpl, 1
lea rdx, [rsp+48h+var_38]
mov rdi, rbx; this
mov esi, 137h; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_E7848:
mov byte ptr [r14], 2
mov edi, 18h; unsigned __int64
call __Znwm; operator new(ulong)
xorps xmm0, xmm0
movups xmmword ptr [rax], xmm0
mov qword ptr [rax+10h], 0
mov [r14+8], rax
loc_E7868:
mov rdi, [r14+8]
mov rsi, rbx
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJRSD_EEESH_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)
mov rax, [r14+8]
mov rax, [rax+8]
add rax, 0FFFFFFFFFFFFFFF0h
add rsp, 30h
pop rbx
pop r14
pop rbp
retn
mov r14, rax
lea rax, [rsp+arg_18]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_E78AF
mov rsi, [rsp+arg_18]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_E78AF
mov r14, rax
mov bpl, 1
loc_E78AF:
test bpl, bpl
jz short loc_E78BC
mov rdi, rbx; void *
call ___cxa_free_exception
loc_E78BC:
mov rdi, r14
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>&>(
long long a1,
long long a2)
{
nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx
long long v3; // rax
_QWORD v5[7]; // [rsp+10h] [rbp-38h] BYREF
if ( *(_BYTE *)a1 )
{
if ( *(_BYTE *)a1 != 2 )
{
exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[32],char const*>(
v5,
"cannot use emplace_back() with ");
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
exception,
311,
v5);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
}
else
{
*(_BYTE *)a1 = 2;
v3 = operator new(0x18uLL);
*(_OWORD *)v3 = 0LL;
*(_QWORD *)(v3 + 16) = 0LL;
*(_QWORD *)(a1 + 8) = v3;
}
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>&>(
*(_QWORD *)(a1 + 8),
a2);
return *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL) - 16LL;
}
| emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&>:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV RBX,RSI
MOV R14,RDI
MOVZX EAX,byte ptr [RDI]
TEST EAX,EAX
JZ 0x001e7848
CMP EAX,0x2
JZ 0x001e7868
MOV EDI,0x20
CALL 0x0011b450
MOV RBX,RAX
MOV RDI,R14
CALL 0x0015f44c
LEA RDX,[RSP + 0x8]
MOV qword ptr [RDX],RAX
LAB_001e7807:
LEA RSI,[0x1f9d88]
LEA RDI,[RSP + 0x10]
CALL 0x001e78c4
MOV BPL,0x1
LAB_001e781b:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0x137
MOV RCX,R14
CALL 0x0015f1f4
XOR EBP,EBP
LEA RSI,[0x22cf18]
LEA RDX,[0x15b5c6]
MOV RDI,RBX
CALL 0x0011bf40
LAB_001e7848:
MOV byte ptr [R14],0x2
MOV EDI,0x18
CALL 0x0011b8b0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX],XMM0
MOV qword ptr [RAX + 0x10],0x0
MOV qword ptr [R14 + 0x8],RAX
LAB_001e7868:
MOV RDI,qword ptr [R14 + 0x8]
MOV RSI,RBX
CALL 0x001e794c
MOV RAX,qword ptr [R14 + 0x8]
MOV RAX,qword ptr [RAX + 0x8]
ADD RAX,-0x10
ADD RSP,0x30
POP RBX
POP R14
POP RBP
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >,
void>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>&>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>&) */
basic_json * __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&>
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this,basic_json *param_1)
{
int8 uVar1;
int8 *puVar2;
char *local_40;
detail local_38 [32];
if (*this == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x0) {
*this = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x2;
puVar2 = (int8 *)operator_new(0x18);
*puVar2 = 0;
puVar2[1] = 0;
puVar2[2] = 0;
*(int8 **)(this + 8) = puVar2;
}
else if (*this != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x2) {
uVar1 = __cxa_allocate_exception(0x20);
local_40 = (char *)type_name(this);
/* try { // try from 001e7807 to 001e7817 has its CatchHandler @ 001e78a9 */
detail::concat<std::__cxx11::string,char_const(&)[32],char_const*>
(local_38,"cannot use emplace_back() with ",&local_40);
/* try { // try from 001e781b to 001e7847 has its CatchHandler @ 001e7889 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar1,0x137,local_38,this);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar1,&detail::type_error::typeinfo,detail::exception::~exception);
}
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&>
(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(this + 8),param_1);
return (basic_json *)(*(long *)(*(long *)(this + 8) + 8) + -0x10);
}
| |
48,233 | R3D_DrawBufferSSAO | r3d/src/r3d_utils.c | void R3D_DrawBufferSSAO(float x, float y, float w, float h)
{
Texture2D tex = {
.id = R3D.framebuffer.pingPongSSAO.target,
.width = R3D.state.resolution.width / 2,
.height = R3D.state.resolution.height / 2
};
DrawTexturePro(
tex, (Rectangle) { 0, 0, (float)tex.width, (float)tex.height },
(Rectangle) { x, y, w, h }, (Vector2) { 0 }, 0, WHITE
);
DrawRectangleLines(
(int)(x + 0.5f), (int)(y + 0.5f),
(int)(w + 0.5f), (int)(h + 0.5f),
(Color) { 255, 0, 0, 255 }
);
} | O3 | c | R3D_DrawBufferSSAO:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movaps %xmm3, %xmm4
movaps %xmm3, -0x60(%rbp)
movaps %xmm2, %xmm5
movaps %xmm2, -0x50(%rbp)
movaps %xmm1, %xmm3
movaps %xmm1, -0x40(%rbp)
movaps %xmm0, -0x30(%rbp)
leaq 0xf1708(%rip), %rax # 0x1b0370
movl 0x24(%rax), %ecx
movl %ecx, -0x18(%rbp)
movl 0x1700(%rax), %ecx
movl %ecx, %edx
shrl $0x1f, %edx
addl %ecx, %edx
sarl %edx
movl %edx, -0x14(%rbp)
movl 0x1704(%rax), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
movl %ecx, -0x10(%rbp)
movq $0x0, -0xc(%rbp)
xorps %xmm1, %xmm1
cvtsi2ss %edx, %xmm1
xorps %xmm2, %xmm2
cvtsi2ss %ecx, %xmm2
unpcklps %xmm2, %xmm1 # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movups -0x18(%rbp), %xmm2
movups %xmm2, (%rsp)
movl $0x0, 0x10(%rsp)
movaps %xmm0, %xmm2
unpcklps %xmm3, %xmm2 # xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1]
movaps %xmm5, %xmm3
unpcklps %xmm4, %xmm3 # xmm3 = xmm3[0],xmm4[0],xmm3[1],xmm4[1]
xorps %xmm0, %xmm0
xorps %xmm4, %xmm4
xorps %xmm5, %xmm5
movl $0xffffffff, %edi # imm = 0xFFFFFFFF
callq 0x8c685
movss 0x22322(%rip), %xmm0 # 0xe1004
movaps -0x30(%rbp), %xmm1
addss %xmm0, %xmm1
cvttss2si %xmm1, %edi
movaps -0x40(%rbp), %xmm1
addss %xmm0, %xmm1
cvttss2si %xmm1, %esi
movaps -0x50(%rbp), %xmm1
addss %xmm0, %xmm1
cvttss2si %xmm1, %edx
movaps -0x60(%rbp), %xmm1
addss %xmm0, %xmm1
cvttss2si %xmm1, %ecx
movl $0xff0000ff, %r8d # imm = 0xFF0000FF
addq $0x80, %rsp
popq %rbp
jmp 0x6adcd
| R3D_DrawBufferSSAO:
push rbp
mov rbp, rsp
sub rsp, 80h
movaps xmm4, xmm3
movaps [rbp+var_60], xmm3
movaps xmm5, xmm2
movaps [rbp+var_50], xmm2
movaps xmm3, xmm1
movaps [rbp+var_40], xmm1
movaps [rbp+var_30], xmm0
lea rax, R3D
mov ecx, [rax+24h]
mov dword ptr [rbp+var_18], ecx
mov ecx, [rax+1700h]
mov edx, ecx
shr edx, 1Fh
add edx, ecx
sar edx, 1
mov dword ptr [rbp+var_18+4], edx
mov eax, [rax+1704h]
mov ecx, eax
shr ecx, 1Fh
add ecx, eax
sar ecx, 1
mov dword ptr [rbp+var_18+8], ecx
mov qword ptr [rbp+var_18+0Ch], 0
xorps xmm1, xmm1
cvtsi2ss xmm1, edx
xorps xmm2, xmm2
cvtsi2ss xmm2, ecx
unpcklps xmm1, xmm2
movups xmm2, [rbp+var_18]
movups [rsp+80h+var_80], xmm2
mov [rsp+80h+var_70], 0
movaps xmm2, xmm0
unpcklps xmm2, xmm3
movaps xmm3, xmm5
unpcklps xmm3, xmm4
xorps xmm0, xmm0
xorps xmm4, xmm4
xorps xmm5, xmm5
mov edi, 0FFFFFFFFh
call DrawTexturePro
movss xmm0, cs:dword_E1004
movaps xmm1, [rbp+var_30]
addss xmm1, xmm0
cvttss2si edi, xmm1
movaps xmm1, [rbp+var_40]
addss xmm1, xmm0
cvttss2si esi, xmm1
movaps xmm1, [rbp+var_50]
addss xmm1, xmm0
cvttss2si edx, xmm1
movaps xmm1, [rbp+var_60]
addss xmm1, xmm0
cvttss2si ecx, xmm1
mov r8d, 0FF0000FFh
add rsp, 80h
pop rbp
jmp DrawRectangleLines
| long long R3D_DrawBufferSSAO(
__m128 a1,
__m128 a2,
__m128 a3,
__m128 a4,
long long a5,
long long a6,
long long a7,
long long a8,
long long a9,
long long a10)
{
long long v13; // rdx
long long v14; // rcx
__m128 v15; // xmm1
__m128 v16; // xmm2
float v18; // [rsp+20h] [rbp-60h]
float v19; // [rsp+30h] [rbp-50h]
float v20; // [rsp+40h] [rbp-40h]
long long v21; // [rsp+68h] [rbp-18h]
v18 = a4.m128_f32[0];
v19 = a3.m128_f32[0];
v20 = a2.m128_f32[0];
LODWORD(v21) = *((_DWORD *)&R3D + 9);
v13 = (unsigned int)(*((_DWORD *)&R3D + 1472) / 2);
HIDWORD(v21) = v13;
v14 = (unsigned int)(*((_DWORD *)&R3D + 1473) / 2);
v15 = 0LL;
v15.m128_f32[0] = (float)(int)v13;
v16 = 0LL;
v16.m128_f32[0] = (float)(int)v14;
DrawTexturePro(
-1,
a6,
(__m128)0LL,
_mm_unpacklo_ps(v15, v16),
_mm_unpacklo_ps(a1, a2),
_mm_unpacklo_ps(a3, a4),
(__m128)0LL,
0.0,
v13,
v14,
a9,
a10,
v21,
v14);
return DrawRectangleLines(
(int)(float)(a1.m128_f32[0] + 0.5),
(int)(float)(v20 + 0.5),
(int)(float)(v19 + 0.5),
(int)(float)(v18 + 0.5),
0xFF0000FF);
}
| R3D_DrawBufferSSAO:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOVAPS XMM4,XMM3
MOVAPS xmmword ptr [RBP + -0x60],XMM3
MOVAPS XMM5,XMM2
MOVAPS xmmword ptr [RBP + -0x50],XMM2
MOVAPS XMM3,XMM1
MOVAPS xmmword ptr [RBP + -0x40],XMM1
MOVAPS xmmword ptr [RBP + -0x30],XMM0
LEA RAX,[0x2b0370]
MOV ECX,dword ptr [RAX + 0x24]
MOV dword ptr [RBP + -0x18],ECX
MOV ECX,dword ptr [RAX + 0x1700]
MOV EDX,ECX
SHR EDX,0x1f
ADD EDX,ECX
SAR EDX,0x1
MOV dword ptr [RBP + -0x14],EDX
MOV EAX,dword ptr [RAX + 0x1704]
MOV ECX,EAX
SHR ECX,0x1f
ADD ECX,EAX
SAR ECX,0x1
MOV dword ptr [RBP + -0x10],ECX
MOV qword ptr [RBP + -0xc],0x0
XORPS XMM1,XMM1
CVTSI2SS XMM1,EDX
XORPS XMM2,XMM2
CVTSI2SS XMM2,ECX
UNPCKLPS XMM1,XMM2
MOVUPS XMM2,xmmword ptr [RBP + -0x18]
MOVUPS xmmword ptr [RSP],XMM2
MOV dword ptr [RSP + 0x10],0x0
MOVAPS XMM2,XMM0
UNPCKLPS XMM2,XMM3
MOVAPS XMM3,XMM5
UNPCKLPS XMM3,XMM4
XORPS XMM0,XMM0
XORPS XMM4,XMM4
XORPS XMM5,XMM5
MOV EDI,0xffffffff
CALL 0x0018c685
MOVSS XMM0,dword ptr [0x001e1004]
MOVAPS XMM1,xmmword ptr [RBP + -0x30]
ADDSS XMM1,XMM0
CVTTSS2SI EDI,XMM1
MOVAPS XMM1,xmmword ptr [RBP + -0x40]
ADDSS XMM1,XMM0
CVTTSS2SI ESI,XMM1
MOVAPS XMM1,xmmword ptr [RBP + -0x50]
ADDSS XMM1,XMM0
CVTTSS2SI EDX,XMM1
MOVAPS XMM1,xmmword ptr [RBP + -0x60]
ADDSS XMM1,XMM0
CVTTSS2SI ECX,XMM1
MOV R8D,0xff0000ff
ADD RSP,0x80
POP RBP
JMP 0x0016adcd
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void R3D_DrawBufferSSAO(float param_1,float param_2,float param_3,float param_4)
{
int4 uVar1;
int4 uVar2;
uVar1 = 0;
uVar2 = 0;
DrawTexturePro(0,(float)(DAT_002b1a70 / 2),param_1,param_3,0,0,0xffffffff);
DrawRectangleLines(CONCAT44(uVar2,(int)(param_1 + DAT_001e1004)),(int)(param_2 + DAT_001e1004),
(int)(param_3 + DAT_001e1004),CONCAT44(uVar1,(int)(param_4 + DAT_001e1004)),
0xff0000ff);
return;
}
| |
48,234 | evmone::VM::get_execution_state(unsigned long) | corpus-core[P]colibri-stateless/build_O2/_deps/evmone_external-src/lib/evmone/vm.cpp | ExecutionState& VM::get_execution_state(size_t depth) noexcept
{
// Vector already has the capacity for all possible depths,
// so reallocation never happens (therefore: noexcept).
// The ExecutionStates are lazily created because they pre-allocate EVM memory and stack.
assert(depth < m_execution_states.capacity());
if (m_execution_states.size() <= depth)
m_execution_states.resize(depth + 1);
return m_execution_states[depth];
} | O2 | cpp | evmone::VM::get_execution_state(unsigned long):
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq 0x40(%rdi), %rcx
movq 0x50(%rdi), %rax
subq %rcx, %rax
movl $0x220, %esi # imm = 0x220
cqto
idivq %rsi
cmpq %rbx, %rax
jbe 0x2edc0
movq %rdi, %r14
movq 0x48(%rdi), %rax
subq %rcx, %rax
cqto
idivq %rsi
cmpq %rbx, %rax
ja 0x2edae
addq $0x40, %r14
leaq 0x1(%rbx), %rsi
movq %r14, %rdi
callq 0x2eeb2
movq (%r14), %rcx
imulq $0x220, %rbx, %rax # imm = 0x220
addq %rcx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x471e6(%rip), %rdi # 0x75fad
leaq 0x47205(%rip), %rsi # 0x75fd3
leaq 0x4727b(%rip), %rcx # 0x76050
pushq $0x5e
popq %rdx
callq 0x22110
movq %rax, %rdi
callq 0x2e859
| _ZN6evmone2VM19get_execution_stateEm:
push r14
push rbx
push rax
mov rbx, rsi
mov rcx, [rdi+40h]
mov rax, [rdi+50h]
sub rax, rcx
mov esi, 220h
cqo
idiv rsi
cmp rax, rbx
jbe short loc_2EDC0
mov r14, rdi
mov rax, [rdi+48h]
sub rax, rcx
cqo
idiv rsi
cmp rax, rbx
ja short loc_2EDAE
add r14, 40h ; '@'
lea rsi, [rbx+1]
mov rdi, r14
call _ZNSt6vectorIN6evmone14ExecutionStateESaIS1_EE6resizeEm; std::vector<evmone::ExecutionState>::resize(ulong)
mov rcx, [r14]
loc_2EDAE:
imul rax, rbx, 220h
add rax, rcx
add rsp, 8
pop rbx
pop r14
retn
loc_2EDC0:
lea rdi, aDepthMExecutio; "depth < m_execution_states.capacity()"
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aExecutionstate; "ExecutionState &evmone::VM::get_executi"...
push 5Eh ; '^'
pop rdx
call ___assert_fail
mov rdi, rax
call __clang_call_terminate
| long long evmone::VM::get_execution_state(evmone::VM *this, unsigned long long a2)
{
long long v2; // rcx
v2 = *((_QWORD *)this + 8);
if ( (*((_QWORD *)this + 10) - v2) / 544 <= a2 )
__assert_fail(
"depth < m_execution_states.capacity()",
"/workspace/llm4binary/github/2025_star3/corpus-core[P]colibri-stateless/build_O2/_deps/evmone_external-src/lib/evmone/vm.cpp",
94LL,
"ExecutionState &evmone::VM::get_execution_state(size_t)");
if ( (*((_QWORD *)this + 9) - v2) / 544 <= a2 )
{
std::vector<evmone::ExecutionState>::resize((char *)this + 64, a2 + 1, (*((_QWORD *)this + 9) - v2) % 544);
v2 = *((_QWORD *)this + 8);
}
return v2 + 544 * a2;
}
| get_execution_state:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV RCX,qword ptr [RDI + 0x40]
MOV RAX,qword ptr [RDI + 0x50]
SUB RAX,RCX
MOV ESI,0x220
CQO
IDIV RSI
CMP RAX,RBX
JBE 0x0012edc0
MOV R14,RDI
MOV RAX,qword ptr [RDI + 0x48]
SUB RAX,RCX
CQO
IDIV RSI
CMP RAX,RBX
JA 0x0012edae
ADD R14,0x40
LEA RSI,[RBX + 0x1]
LAB_0012eda3:
MOV RDI,R14
CALL 0x0012eeb2
MOV RCX,qword ptr [R14]
LAB_0012edae:
IMUL RAX,RBX,0x220
ADD RAX,RCX
ADD RSP,0x8
POP RBX
POP R14
RET
LAB_0012edc0:
LEA RDI,[0x175fad]
LEA RSI,[0x175fd3]
LEA RCX,[0x176050]
PUSH 0x5e
POP RDX
CALL 0x00122110
|
/* evmone::VM::get_execution_state(unsigned long) */
long __thiscall evmone::VM::get_execution_state(VM *this,ulong param_1)
{
long lVar1;
lVar1 = *(long *)(this + 0x40);
if (param_1 < (ulong)((*(long *)(this + 0x50) - lVar1) / 0x220)) {
if ((ulong)((*(long *)(this + 0x48) - lVar1) / 0x220) <= param_1) {
/* try { // try from 0012eda3 to 0012edaa has its CatchHandler @ 0012eddd */
std::vector<evmone::ExecutionState,std::allocator<evmone::ExecutionState>>::resize
((vector<evmone::ExecutionState,std::allocator<evmone::ExecutionState>> *)
(this + 0x40),param_1 + 1);
lVar1 = *(long *)(this + 0x40);
}
return param_1 * 0x220 + lVar1;
}
/* WARNING: Subroutine does not return */
__assert_fail("depth < m_execution_states.capacity()",
"/workspace/llm4binary/github/2025_star3/corpus-core[P]colibri-stateless/build_O2/_deps/evmone_external-src/lib/evmone/vm.cpp"
,0x5e,"ExecutionState &evmone::VM::get_execution_state(size_t)");
}
| |
48,235 | void OpenSubdiv::v3_6_0::Far::(anonymous namespace)::_resizeMatrix<float>(OpenSubdiv::v3_6_0::Far::SparseMatrix<float>&, int, int, int, int const*) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/loopPatchBuilder.cpp | void
_resizeMatrix(SparseMatrix<REAL> & matrix,
int numRows, int numColumns, int numElements,
int const rowSizes[]) {
matrix.Resize(numRows, numColumns, numElements);
for (int i = 0; i < numRows; ++i) {
matrix.SetRowSize(i, rowSizes[i]);
}
assert(matrix.GetNumElements() == numElements);
} | O1 | cpp | void OpenSubdiv::v3_6_0::Far::(anonymous namespace)::_resizeMatrix<float>(OpenSubdiv::v3_6_0::Far::SparseMatrix<float>&, int, int, int, int const*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movl %edx, %ebp
movq %rdi, %r15
movl $0x12, (%rdi)
movl %esi, 0x4(%rdi)
xorl %ebx, %ebx
movl %ebx, 0x8(%rdi)
leaq 0x10(%rdi), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x39690
movslq (%r15), %rsi
incq %rsi
leaq 0x4(%rsp), %rdx
movl $0xffffffff, (%rdx) # imm = 0xFFFFFFFF
movq %r12, %rdi
callq 0x38f90
movq 0x10(%r15), %rax
movl %ebx, (%rax)
leaq 0x40(%r15), %r12
movq 0x48(%r15), %rax
subq 0x40(%r15), %rax
shrq $0x2, %rax
cmpl %ebp, %eax
jge 0x54a38
leaq 0x28(%r15), %rdi
movslq %ebp, %r13
movq %r13, %rsi
callq 0x39690
movq %r12, %rdi
movq %r13, %rsi
callq 0x39a00
movl %ebp, (%rsp)
leaq 0x28(%r15), %r13
xorl %ebp, %ebp
movq 0x10(%r15), %rbx
movl (%rbx,%rbp,4), %eax
cmpl 0x8(%r15), %eax
jne 0x54aa5
addl (%r14,%rbp,4), %eax
movl %eax, 0x4(%rbx,%rbp,4)
movl %eax, 0x8(%r15)
movslq 0x4(%rbx,%rbp,4), %rsi
movq 0x48(%r15), %rax
subq 0x40(%r15), %rax
shrq $0x2, %rax
cmpl %eax, %esi
jle 0x54a84
movq %r13, %rdi
callq 0x39690
movslq 0x4(%rbx,%rbp,4), %rsi
movq %r12, %rdi
callq 0x39a00
incq %rbp
cmpq $0x12, %rbp
jne 0x54a41
movl (%rsp), %eax
cmpl %eax, 0x8(%r15)
jne 0x54ac4
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5fd2f(%rip), %rdi # 0xb47db
leaq 0x5fd4e(%rip), %rsi # 0xb4801
leaq 0x5fdb8(%rip), %rcx # 0xb4872
movl $0x98, %edx
callq 0x39560
leaq 0x5fc65(%rip), %rdi # 0xb4730
leaq 0x61e46(%rip), %rsi # 0xb6918
leaq 0x5fc7e(%rip), %rcx # 0xb4757
movl $0x17e, %edx # imm = 0x17E
callq 0x39560
nop
| _ZN10OpenSubdiv6v3_6_03Far12_GLOBAL__N_113_resizeMatrixIfEEvRNS1_12SparseMatrixIT_EEiiiPKi_0:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, rcx
mov ebp, edx
mov r15, rdi
mov dword ptr [rdi], 12h
mov [rdi+4], esi
xor ebx, ebx
mov [rdi+8], ebx
lea r12, [rdi+10h]
mov rdi, r12
xor esi, esi
call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong)
movsxd rsi, dword ptr [r15]
inc rsi
lea rdx, [rsp+38h+var_34]
mov dword ptr [rdx], 0FFFFFFFFh
mov rdi, r12
call __ZNSt6vectorIiSaIiEE6resizeEmRKi; std::vector<int>::resize(ulong,int const&)
mov rax, [r15+10h]
mov [rax], ebx
lea r12, [r15+40h]
mov rax, [r15+48h]
sub rax, [r15+40h]
shr rax, 2
cmp eax, ebp
jge short loc_54A38
lea rdi, [r15+28h]
movsxd r13, ebp
mov rsi, r13
call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong)
mov rdi, r12
mov rsi, r13
call __ZNSt6vectorIfSaIfEE6resizeEm; std::vector<float>::resize(ulong)
loc_54A38:
mov [rsp+38h+var_38], ebp
lea r13, [r15+28h]
xor ebp, ebp
loc_54A41:
mov rbx, [r15+10h]
mov eax, [rbx+rbp*4]
cmp eax, [r15+8]
jnz short loc_54AA5
add eax, [r14+rbp*4]
mov [rbx+rbp*4+4], eax
mov [r15+8], eax
movsxd rsi, dword ptr [rbx+rbp*4+4]
mov rax, [r15+48h]
sub rax, [r15+40h]
shr rax, 2
cmp esi, eax
jle short loc_54A84
mov rdi, r13
call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong)
movsxd rsi, dword ptr [rbx+rbp*4+4]
mov rdi, r12
call __ZNSt6vectorIfSaIfEE6resizeEm; std::vector<float>::resize(ulong)
loc_54A84:
inc rbp
cmp rbp, 12h
jnz short loc_54A41
mov eax, [rsp+38h+var_38]
cmp [r15+8], eax
jnz short loc_54AC4
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_54AA5:
lea rdi, aRowoffsetsRowi; "_rowOffsets[rowIndex] == _numElements"
lea rsi, aWorkspaceLlm4b_8; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidOpensubdiv_15; "void OpenSubdiv::v3_6_0::Far::SparseMat"...
mov edx, 98h
call ___assert_fail
loc_54AC4:
lea rdi, aMatrixGetnumel; "matrix.GetNumElements() == numElements"
lea rsi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidOpensubdiv_16; "void OpenSubdiv::v3_6_0::Far::(anonymou"...
mov edx, 17Eh
call ___assert_fail
| long long OpenSubdiv::v3_6_0::Far::`anonymous namespace'::_resizeMatrix<float>(
int *a1,
int a2,
int a3,
long long a4)
{
long long v4; // rax
long long v7; // rsi
long long i; // rbp
long long v9; // rbx
int v10; // eax
int v11; // eax
long long v12; // rsi
long long result; // rax
unsigned int v14; // [rsp+0h] [rbp-38h]
int v15[13]; // [rsp+4h] [rbp-34h] BYREF
v15[0] = HIDWORD(v4);
*a1 = 18;
a1[1] = a2;
a1[2] = 0;
std::vector<int>::resize(a1 + 4, 0LL);
v7 = *a1 + 1LL;
v15[0] = -1;
std::vector<int>::resize(a1 + 4, v7, v15);
**((_DWORD **)a1 + 2) = 0;
if ( (int)((*((_QWORD *)a1 + 9) - *((_QWORD *)a1 + 8)) >> 2) < a3 )
{
std::vector<int>::resize(a1 + 10, a3);
std::vector<float>::resize(a1 + 16, a3);
}
v14 = a3;
for ( i = 0LL; i != 18; ++i )
{
v9 = *((_QWORD *)a1 + 2);
v10 = *(_DWORD *)(v9 + 4 * i);
if ( v10 != a1[2] )
__assert_fail(
"_rowOffsets[rowIndex] == _numElements",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/../far/../far/../far/sparseMatrix.h",
152LL,
"void OpenSubdiv::v3_6_0::Far::SparseMatrix<float>::SetRowSize(int, int) [REAL = float]");
v11 = *(_DWORD *)(a4 + 4 * i) + v10;
*(_DWORD *)(v9 + 4 * i + 4) = v11;
a1[2] = v11;
v12 = *(int *)(v9 + 4 * i + 4);
if ( (int)v12 > (int)((*((_QWORD *)a1 + 9) - *((_QWORD *)a1 + 8)) >> 2) )
{
std::vector<int>::resize(a1 + 10, v12);
std::vector<float>::resize(a1 + 16, *(int *)(v9 + 4 * i + 4));
}
}
result = v14;
if ( a1[2] != v14 )
__assert_fail(
"matrix.GetNumElements() == numElements",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/loopPatchBuilder.cpp",
382LL,
"void OpenSubdiv::v3_6_0::Far::(anonymous namespace)::_resizeMatrix(SparseMatrix<REAL> &, int, int, int, const int "
"*) [REAL = float]");
return result;
}
| _resizeMatrix<float>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RCX
MOV EBP,EDX
MOV R15,RDI
MOV dword ptr [RDI],0x12
MOV dword ptr [RDI + 0x4],ESI
XOR EBX,EBX
MOV dword ptr [RDI + 0x8],EBX
LEA R12,[RDI + 0x10]
MOV RDI,R12
XOR ESI,ESI
CALL 0x00139690
MOVSXD RSI,dword ptr [R15]
INC RSI
LEA RDX,[RSP + 0x4]
MOV dword ptr [RDX],0xffffffff
MOV RDI,R12
CALL 0x00138f90
MOV RAX,qword ptr [R15 + 0x10]
MOV dword ptr [RAX],EBX
LEA R12,[R15 + 0x40]
MOV RAX,qword ptr [R15 + 0x48]
SUB RAX,qword ptr [R15 + 0x40]
SHR RAX,0x2
CMP EAX,EBP
JGE 0x00154a38
LEA RDI,[R15 + 0x28]
MOVSXD R13,EBP
MOV RSI,R13
CALL 0x00139690
MOV RDI,R12
MOV RSI,R13
CALL 0x00139a00
LAB_00154a38:
MOV dword ptr [RSP],EBP
LEA R13,[R15 + 0x28]
XOR EBP,EBP
LAB_00154a41:
MOV RBX,qword ptr [R15 + 0x10]
MOV EAX,dword ptr [RBX + RBP*0x4]
CMP EAX,dword ptr [R15 + 0x8]
JNZ 0x00154aa5
ADD EAX,dword ptr [R14 + RBP*0x4]
MOV dword ptr [RBX + RBP*0x4 + 0x4],EAX
MOV dword ptr [R15 + 0x8],EAX
MOVSXD RSI,dword ptr [RBX + RBP*0x4 + 0x4]
MOV RAX,qword ptr [R15 + 0x48]
SUB RAX,qword ptr [R15 + 0x40]
SHR RAX,0x2
CMP ESI,EAX
JLE 0x00154a84
MOV RDI,R13
CALL 0x00139690
MOVSXD RSI,dword ptr [RBX + RBP*0x4 + 0x4]
MOV RDI,R12
CALL 0x00139a00
LAB_00154a84:
INC RBP
CMP RBP,0x12
JNZ 0x00154a41
MOV EAX,dword ptr [RSP]
CMP dword ptr [R15 + 0x8],EAX
JNZ 0x00154ac4
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00154aa5:
LEA RDI,[0x1b47db]
LEA RSI,[0x1b4801]
LEA RCX,[0x1b4872]
MOV EDX,0x98
CALL 0x00139560
LAB_00154ac4:
LEA RDI,[0x1b4730]
LEA RSI,[0x1b6918]
LEA RCX,[0x1b4757]
MOV EDX,0x17e
CALL 0x00139560
|
/* void OpenSubdiv::v3_6_0::Far::(anonymous
namespace)::_resizeMatrix<float>(OpenSubdiv::v3_6_0::Far::SparseMatrix<float>&, int, int, int,
int const*) */
void OpenSubdiv::v3_6_0::Far::(anonymous_namespace)::_resizeMatrix<float>
(SparseMatrix *param_1,int param_2,int param_3,int param_4,int *param_5)
{
long lVar1;
int iVar2;
int4 in_register_0000000c;
long lVar3;
int local_34;
*(int4 *)param_1 = 0x12;
*(int *)(param_1 + 4) = param_2;
*(int4 *)(param_1 + 8) = 0;
std::vector<int,std::allocator<int>>::resize
((vector<int,std::allocator<int>> *)(param_1 + 0x10),0);
std::vector<int,std::allocator<int>>::resize
((vector<int,std::allocator<int>> *)(param_1 + 0x10),(long)*(int *)param_1 + 1,&local_34
);
**(int4 **)(param_1 + 0x10) = 0;
if ((int)((ulong)(*(long *)(param_1 + 0x48) - *(long *)(param_1 + 0x40)) >> 2) < param_3) {
std::vector<int,std::allocator<int>>::resize
((vector<int,std::allocator<int>> *)(param_1 + 0x28),(long)param_3);
std::vector<float,std::allocator<float>>::resize
((vector<float,std::allocator<float>> *)(param_1 + 0x40),(long)param_3);
}
lVar3 = 0;
do {
lVar1 = *(long *)(param_1 + 0x10);
iVar2 = *(int *)(lVar1 + lVar3 * 4);
if (iVar2 != *(int *)(param_1 + 8)) {
/* WARNING: Subroutine does not return */
__assert_fail("_rowOffsets[rowIndex] == _numElements",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/../far/../far/../far/sparseMatrix.h"
,0x98,
"void OpenSubdiv::v3_6_0::Far::SparseMatrix<float>::SetRowSize(int, int) [REAL = float]"
);
}
iVar2 = iVar2 + *(int *)(CONCAT44(in_register_0000000c,param_4) + lVar3 * 4);
*(int *)(lVar1 + 4 + lVar3 * 4) = iVar2;
*(int *)(param_1 + 8) = iVar2;
iVar2 = *(int *)(lVar1 + 4 + lVar3 * 4);
if ((int)((ulong)(*(long *)(param_1 + 0x48) - *(long *)(param_1 + 0x40)) >> 2) < iVar2) {
std::vector<int,std::allocator<int>>::resize
((vector<int,std::allocator<int>> *)(param_1 + 0x28),(long)iVar2);
std::vector<float,std::allocator<float>>::resize
((vector<float,std::allocator<float>> *)(param_1 + 0x40),
(long)*(int *)(lVar1 + 4 + lVar3 * 4));
}
lVar3 = lVar3 + 1;
} while (lVar3 != 0x12);
if (*(int *)(param_1 + 8) == param_3) {
return;
}
/* WARNING: Subroutine does not return */
__assert_fail("matrix.GetNumElements() == numElements",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/loopPatchBuilder.cpp"
,0x17e,
"void OpenSubdiv::v3_6_0::Far::(anonymous namespace)::_resizeMatrix(SparseMatrix<REAL> &, int, int, int, const int *) [REAL = float]"
);
}
| |
48,236 | void OpenSubdiv::v3_6_0::Far::(anonymous namespace)::_resizeMatrix<float>(OpenSubdiv::v3_6_0::Far::SparseMatrix<float>&, int, int, int, int const*) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/loopPatchBuilder.cpp | void
_resizeMatrix(SparseMatrix<REAL> & matrix,
int numRows, int numColumns, int numElements,
int const rowSizes[]) {
matrix.Resize(numRows, numColumns, numElements);
for (int i = 0; i < numRows; ++i) {
matrix.SetRowSize(i, rowSizes[i]);
}
assert(matrix.GetNumElements() == numElements);
} | O2 | cpp | void OpenSubdiv::v3_6_0::Far::(anonymous namespace)::_resizeMatrix<float>(OpenSubdiv::v3_6_0::Far::SparseMatrix<float>&, int, int, int, int const*):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movl %edx, %ebx
movl %esi, %edx
movq %rdi, %r15
pushq $0x12
popq %rsi
movl %ebx, %ecx
callq 0x4f420
xorl %r12d, %r12d
cmpq $0x12, %r12
je 0x6b97e
movl (%r14,%r12,4), %edx
movq %r15, %rdi
movl %r12d, %esi
callq 0x528c0
incq %r12
jmp 0x6b964
cmpl %ebx, 0x8(%r15)
jne 0x6b990
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x52ee9(%rip), %rdi # 0xbe880
leaq 0x5532a(%rip), %rsi # 0xc0cc8
leaq 0x537f1(%rip), %rcx # 0xbf196
movl $0x17e, %edx # imm = 0x17E
callq 0x512a0
nop
| _ZN10OpenSubdiv6v3_6_03Far12_GLOBAL__N_113_resizeMatrixIdEEvRNS1_12SparseMatrixIT_EEiiiPKi_0:
push r15
push r14
push r12
push rbx
push rax
mov r14, rcx
mov ebx, edx
mov edx, esi
mov r15, rdi
push 12h
pop rsi
mov ecx, ebx
call __ZN10OpenSubdiv6v3_6_03Far12SparseMatrixIdE6ResizeEiii; OpenSubdiv::v3_6_0::Far::SparseMatrix<double>::Resize(int,int,int)
xor r12d, r12d
loc_6B964:
cmp r12, 12h
jz short loc_6B97E
mov edx, [r14+r12*4]
mov rdi, r15
mov esi, r12d
call __ZN10OpenSubdiv6v3_6_03Far12SparseMatrixIdE10SetRowSizeEii; OpenSubdiv::v3_6_0::Far::SparseMatrix<double>::SetRowSize(int,int)
inc r12
jmp short loc_6B964
loc_6B97E:
cmp [r15+8], ebx
jnz short loc_6B990
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
loc_6B990:
lea rdi, aMatrixGetnumel; "matrix.GetNumElements() == numElements"
lea rsi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidOpensubdiv_18; "void OpenSubdiv::v3_6_0::Far::(anonymou"...
mov edx, 17Eh
call ___assert_fail
| long long OpenSubdiv::v3_6_0::Far::`anonymous namespace'::_resizeMatrix<double>(
long long a1,
unsigned int a2,
unsigned int a3,
long long a4)
{
long long result; // rax
long long i; // r12
result = OpenSubdiv::v3_6_0::Far::SparseMatrix<double>::Resize(a1, 18LL, a2, a3);
for ( i = 0LL; i != 18; ++i )
result = OpenSubdiv::v3_6_0::Far::SparseMatrix<double>::SetRowSize(
a1,
(unsigned int)i,
*(unsigned int *)(a4 + 4 * i));
if ( *(_DWORD *)(a1 + 8) != a3 )
__assert_fail(
"matrix.GetNumElements() == numElements",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/loopPatchBuilder.cpp",
382LL,
"void OpenSubdiv::v3_6_0::Far::(anonymous namespace)::_resizeMatrix(SparseMatrix<REAL> &, int, int, int, const int "
"*) [REAL = double]");
return result;
}
| _resizeMatrix<double>:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RCX
MOV EBX,EDX
MOV EDX,ESI
MOV R15,RDI
PUSH 0x12
POP RSI
MOV ECX,EBX
CALL 0x0014f420
XOR R12D,R12D
LAB_0016b964:
CMP R12,0x12
JZ 0x0016b97e
MOV EDX,dword ptr [R14 + R12*0x4]
MOV RDI,R15
MOV ESI,R12D
CALL 0x001528c0
INC R12
JMP 0x0016b964
LAB_0016b97e:
CMP dword ptr [R15 + 0x8],EBX
JNZ 0x0016b990
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
LAB_0016b990:
LEA RDI,[0x1be880]
LEA RSI,[0x1c0cc8]
LEA RCX,[0x1bf196]
MOV EDX,0x17e
CALL 0x001512a0
|
/* void OpenSubdiv::v3_6_0::Far::(anonymous
namespace)::_resizeMatrix<double>(OpenSubdiv::v3_6_0::Far::SparseMatrix<double>&, int, int, int,
int const*) */
void OpenSubdiv::v3_6_0::Far::(anonymous_namespace)::_resizeMatrix<double>
(SparseMatrix *param_1,int param_2,int param_3,int param_4,int *param_5)
{
int4 in_register_0000000c;
long lVar1;
SparseMatrix<double>::Resize((SparseMatrix<double> *)param_1,0x12,param_2,param_3);
for (lVar1 = 0; lVar1 != 0x12; lVar1 = lVar1 + 1) {
SparseMatrix<double>::SetRowSize
((SparseMatrix<double> *)param_1,(int)lVar1,
*(int *)(CONCAT44(in_register_0000000c,param_4) + lVar1 * 4));
}
if (*(int *)(param_1 + 8) == param_3) {
return;
}
/* WARNING: Subroutine does not return */
__assert_fail("matrix.GetNumElements() == numElements",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/loopPatchBuilder.cpp"
,0x17e,
"void OpenSubdiv::v3_6_0::Far::(anonymous namespace)::_resizeMatrix(SparseMatrix<REAL> &, int, int, int, const int *) [REAL = double]"
);
}
| |
48,237 | void OpenSubdiv::v3_6_0::Far::(anonymous namespace)::_resizeMatrix<float>(OpenSubdiv::v3_6_0::Far::SparseMatrix<float>&, int, int, int, int const*) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/loopPatchBuilder.cpp | void
_resizeMatrix(SparseMatrix<REAL> & matrix,
int numRows, int numColumns, int numElements,
int const rowSizes[]) {
matrix.Resize(numRows, numColumns, numElements);
for (int i = 0; i < numRows; ++i) {
matrix.SetRowSize(i, rowSizes[i]);
}
assert(matrix.GetNumElements() == numElements);
} | O3 | cpp | void OpenSubdiv::v3_6_0::Far::(anonymous namespace)::_resizeMatrix<float>(OpenSubdiv::v3_6_0::Far::SparseMatrix<float>&, int, int, int, int const*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movl %edx, %ebp
movq %rdi, %r15
movl $0x12, (%rdi)
movl %esi, 0x4(%rdi)
xorl %ebx, %ebx
movl %ebx, 0x8(%rdi)
leaq 0x10(%rdi), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x39670
movslq (%r15), %rsi
incq %rsi
leaq 0x4(%rsp), %rdx
movl $0xffffffff, (%rdx) # imm = 0xFFFFFFFF
movq %r12, %rdi
callq 0x38f80
movq 0x10(%r15), %rax
movl %ebx, (%rax)
leaq 0x40(%r15), %r12
movq 0x48(%r15), %rax
subq 0x40(%r15), %rax
shrq $0x3, %rax
cmpl %ebp, %eax
jge 0x578ba
leaq 0x28(%r15), %rdi
movslq %ebp, %r13
movq %r13, %rsi
callq 0x39670
movq %r12, %rdi
movq %r13, %rsi
callq 0x3a2c0
movl %ebp, (%rsp)
leaq 0x28(%r15), %r13
xorl %ebp, %ebp
movq 0x10(%r15), %rbx
movl (%rbx,%rbp,4), %eax
cmpl 0x8(%r15), %eax
jne 0x57927
addl (%r14,%rbp,4), %eax
movl %eax, 0x4(%rbx,%rbp,4)
movl %eax, 0x8(%r15)
movslq 0x4(%rbx,%rbp,4), %rsi
movq 0x48(%r15), %rax
subq 0x40(%r15), %rax
shrq $0x3, %rax
cmpl %eax, %esi
jle 0x57906
movq %r13, %rdi
callq 0x39670
movslq 0x4(%rbx,%rbp,4), %rsi
movq %r12, %rdi
callq 0x3a2c0
incq %rbp
cmpq $0x12, %rbp
jne 0x578c3
movl (%rsp), %eax
cmpl %eax, 0x8(%r15)
jne 0x57946
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x600dd(%rip), %rdi # 0xb7a0b
leaq 0x600fc(%rip), %rsi # 0xb7a31
leaq 0x609bf(%rip), %rcx # 0xb82fb
movl $0x98, %edx
callq 0x39540
leaq 0x60013(%rip), %rdi # 0xb7960
leaq 0x62454(%rip), %rsi # 0xb9da8
leaq 0x6091b(%rip), %rcx # 0xb8276
movl $0x17e, %edx # imm = 0x17E
callq 0x39540
nop
| _ZN10OpenSubdiv6v3_6_03Far12_GLOBAL__N_113_resizeMatrixIdEEvRNS1_12SparseMatrixIT_EEiiiPKi_0:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, rcx
mov ebp, edx
mov r15, rdi
mov dword ptr [rdi], 12h
mov [rdi+4], esi
xor ebx, ebx
mov [rdi+8], ebx
lea r12, [rdi+10h]
mov rdi, r12
xor esi, esi
call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong)
movsxd rsi, dword ptr [r15]
inc rsi
lea rdx, [rsp+38h+var_34]
mov dword ptr [rdx], 0FFFFFFFFh
mov rdi, r12
call __ZNSt6vectorIiSaIiEE6resizeEmRKi; std::vector<int>::resize(ulong,int const&)
mov rax, [r15+10h]
mov [rax], ebx
lea r12, [r15+40h]
mov rax, [r15+48h]
sub rax, [r15+40h]
shr rax, 3
cmp eax, ebp
jge short loc_578BA
lea rdi, [r15+28h]
movsxd r13, ebp
mov rsi, r13
call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong)
mov rdi, r12
mov rsi, r13
call __ZNSt6vectorIdSaIdEE6resizeEm; std::vector<double>::resize(ulong)
loc_578BA:
mov [rsp+38h+var_38], ebp
lea r13, [r15+28h]
xor ebp, ebp
loc_578C3:
mov rbx, [r15+10h]
mov eax, [rbx+rbp*4]
cmp eax, [r15+8]
jnz short loc_57927
add eax, [r14+rbp*4]
mov [rbx+rbp*4+4], eax
mov [r15+8], eax
movsxd rsi, dword ptr [rbx+rbp*4+4]
mov rax, [r15+48h]
sub rax, [r15+40h]
shr rax, 3
cmp esi, eax
jle short loc_57906
mov rdi, r13
call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong)
movsxd rsi, dword ptr [rbx+rbp*4+4]
mov rdi, r12
call __ZNSt6vectorIdSaIdEE6resizeEm; std::vector<double>::resize(ulong)
loc_57906:
inc rbp
cmp rbp, 12h
jnz short loc_578C3
mov eax, [rsp+38h+var_38]
cmp [r15+8], eax
jnz short loc_57946
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_57927:
lea rdi, aRowoffsetsRowi; "_rowOffsets[rowIndex] == _numElements"
lea rsi, aWorkspaceLlm4b_8; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidOpensubdiv_18; "void OpenSubdiv::v3_6_0::Far::SparseMat"...
mov edx, 98h
call ___assert_fail
loc_57946:
lea rdi, aMatrixGetnumel; "matrix.GetNumElements() == numElements"
lea rsi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidOpensubdiv_19; "void OpenSubdiv::v3_6_0::Far::(anonymou"...
mov edx, 17Eh
call ___assert_fail
| long long OpenSubdiv::v3_6_0::Far::`anonymous namespace'::_resizeMatrix<double>(
int *a1,
int a2,
int a3,
long long a4)
{
long long v4; // rax
long long v7; // rsi
long long i; // rbp
long long v9; // rbx
int v10; // eax
int v11; // eax
long long v12; // rsi
long long result; // rax
unsigned int v14; // [rsp+0h] [rbp-38h]
int v15[13]; // [rsp+4h] [rbp-34h] BYREF
v15[0] = HIDWORD(v4);
*a1 = 18;
a1[1] = a2;
a1[2] = 0;
std::vector<int>::resize(a1 + 4, 0LL);
v7 = *a1 + 1LL;
v15[0] = -1;
std::vector<int>::resize(a1 + 4, v7, v15);
**((_DWORD **)a1 + 2) = 0;
if ( (int)((*((_QWORD *)a1 + 9) - *((_QWORD *)a1 + 8)) >> 3) < a3 )
{
std::vector<int>::resize(a1 + 10, a3);
std::vector<double>::resize(a1 + 16, a3);
}
v14 = a3;
for ( i = 0LL; i != 18; ++i )
{
v9 = *((_QWORD *)a1 + 2);
v10 = *(_DWORD *)(v9 + 4 * i);
if ( v10 != a1[2] )
__assert_fail(
"_rowOffsets[rowIndex] == _numElements",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/../far/../far/../far/sparseMatrix.h",
152LL,
"void OpenSubdiv::v3_6_0::Far::SparseMatrix<double>::SetRowSize(int, int) [REAL = double]");
v11 = *(_DWORD *)(a4 + 4 * i) + v10;
*(_DWORD *)(v9 + 4 * i + 4) = v11;
a1[2] = v11;
v12 = *(int *)(v9 + 4 * i + 4);
if ( (int)v12 > (int)((*((_QWORD *)a1 + 9) - *((_QWORD *)a1 + 8)) >> 3) )
{
std::vector<int>::resize(a1 + 10, v12);
std::vector<double>::resize(a1 + 16, *(int *)(v9 + 4 * i + 4));
}
}
result = v14;
if ( a1[2] != v14 )
__assert_fail(
"matrix.GetNumElements() == numElements",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/loopPatchBuilder.cpp",
382LL,
"void OpenSubdiv::v3_6_0::Far::(anonymous namespace)::_resizeMatrix(SparseMatrix<REAL> &, int, int, int, const int "
"*) [REAL = double]");
return result;
}
| _resizeMatrix<double>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RCX
MOV EBP,EDX
MOV R15,RDI
MOV dword ptr [RDI],0x12
MOV dword ptr [RDI + 0x4],ESI
XOR EBX,EBX
MOV dword ptr [RDI + 0x8],EBX
LEA R12,[RDI + 0x10]
MOV RDI,R12
XOR ESI,ESI
CALL 0x00139670
MOVSXD RSI,dword ptr [R15]
INC RSI
LEA RDX,[RSP + 0x4]
MOV dword ptr [RDX],0xffffffff
MOV RDI,R12
CALL 0x00138f80
MOV RAX,qword ptr [R15 + 0x10]
MOV dword ptr [RAX],EBX
LEA R12,[R15 + 0x40]
MOV RAX,qword ptr [R15 + 0x48]
SUB RAX,qword ptr [R15 + 0x40]
SHR RAX,0x3
CMP EAX,EBP
JGE 0x001578ba
LEA RDI,[R15 + 0x28]
MOVSXD R13,EBP
MOV RSI,R13
CALL 0x00139670
MOV RDI,R12
MOV RSI,R13
CALL 0x0013a2c0
LAB_001578ba:
MOV dword ptr [RSP],EBP
LEA R13,[R15 + 0x28]
XOR EBP,EBP
LAB_001578c3:
MOV RBX,qword ptr [R15 + 0x10]
MOV EAX,dword ptr [RBX + RBP*0x4]
CMP EAX,dword ptr [R15 + 0x8]
JNZ 0x00157927
ADD EAX,dword ptr [R14 + RBP*0x4]
MOV dword ptr [RBX + RBP*0x4 + 0x4],EAX
MOV dword ptr [R15 + 0x8],EAX
MOVSXD RSI,dword ptr [RBX + RBP*0x4 + 0x4]
MOV RAX,qword ptr [R15 + 0x48]
SUB RAX,qword ptr [R15 + 0x40]
SHR RAX,0x3
CMP ESI,EAX
JLE 0x00157906
MOV RDI,R13
CALL 0x00139670
MOVSXD RSI,dword ptr [RBX + RBP*0x4 + 0x4]
MOV RDI,R12
CALL 0x0013a2c0
LAB_00157906:
INC RBP
CMP RBP,0x12
JNZ 0x001578c3
MOV EAX,dword ptr [RSP]
CMP dword ptr [R15 + 0x8],EAX
JNZ 0x00157946
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00157927:
LEA RDI,[0x1b7a0b]
LEA RSI,[0x1b7a31]
LEA RCX,[0x1b82fb]
MOV EDX,0x98
CALL 0x00139540
LAB_00157946:
LEA RDI,[0x1b7960]
LEA RSI,[0x1b9da8]
LEA RCX,[0x1b8276]
MOV EDX,0x17e
CALL 0x00139540
|
/* void OpenSubdiv::v3_6_0::Far::(anonymous
namespace)::_resizeMatrix<double>(OpenSubdiv::v3_6_0::Far::SparseMatrix<double>&, int, int, int,
int const*) */
void OpenSubdiv::v3_6_0::Far::(anonymous_namespace)::_resizeMatrix<double>
(SparseMatrix *param_1,int param_2,int param_3,int param_4,int *param_5)
{
long lVar1;
int iVar2;
int4 in_register_0000000c;
long lVar3;
int local_34;
*(int4 *)param_1 = 0x12;
*(int *)(param_1 + 4) = param_2;
*(int4 *)(param_1 + 8) = 0;
std::vector<int,std::allocator<int>>::resize
((vector<int,std::allocator<int>> *)(param_1 + 0x10),0);
std::vector<int,std::allocator<int>>::resize
((vector<int,std::allocator<int>> *)(param_1 + 0x10),(long)*(int *)param_1 + 1,&local_34
);
**(int4 **)(param_1 + 0x10) = 0;
if ((int)((ulong)(*(long *)(param_1 + 0x48) - *(long *)(param_1 + 0x40)) >> 3) < param_3) {
std::vector<int,std::allocator<int>>::resize
((vector<int,std::allocator<int>> *)(param_1 + 0x28),(long)param_3);
std::vector<double,std::allocator<double>>::resize
((vector<double,std::allocator<double>> *)(param_1 + 0x40),(long)param_3);
}
lVar3 = 0;
do {
lVar1 = *(long *)(param_1 + 0x10);
iVar2 = *(int *)(lVar1 + lVar3 * 4);
if (iVar2 != *(int *)(param_1 + 8)) {
/* WARNING: Subroutine does not return */
__assert_fail("_rowOffsets[rowIndex] == _numElements",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/../far/../far/../far/sparseMatrix.h"
,0x98,
"void OpenSubdiv::v3_6_0::Far::SparseMatrix<double>::SetRowSize(int, int) [REAL = double]"
);
}
iVar2 = iVar2 + *(int *)(CONCAT44(in_register_0000000c,param_4) + lVar3 * 4);
*(int *)(lVar1 + 4 + lVar3 * 4) = iVar2;
*(int *)(param_1 + 8) = iVar2;
iVar2 = *(int *)(lVar1 + 4 + lVar3 * 4);
if ((int)((ulong)(*(long *)(param_1 + 0x48) - *(long *)(param_1 + 0x40)) >> 3) < iVar2) {
std::vector<int,std::allocator<int>>::resize
((vector<int,std::allocator<int>> *)(param_1 + 0x28),(long)iVar2);
std::vector<double,std::allocator<double>>::resize
((vector<double,std::allocator<double>> *)(param_1 + 0x40),
(long)*(int *)(lVar1 + 4 + lVar3 * 4));
}
lVar3 = lVar3 + 1;
} while (lVar3 != 0x12);
if (*(int *)(param_1 + 8) == param_3) {
return;
}
/* WARNING: Subroutine does not return */
__assert_fail("matrix.GetNumElements() == numElements",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/loopPatchBuilder.cpp"
,0x17e,
"void OpenSubdiv::v3_6_0::Far::(anonymous namespace)::_resizeMatrix(SparseMatrix<REAL> &, int, int, int, const int *) [REAL = double]"
);
}
| |
48,238 | TimeMeasuringPlayer::make_move(ttt::game::State const&) | vsennov[P]tictactoe-course/tests/test_stats.cpp | ttt::game::Point make_move(const ttt::game::State &state) override {
BlockMeasurer ms{m_move_time};
return m_base.make_move(state);
} | O3 | cpp | TimeMeasuringPlayer::make_move(ttt::game::State const&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rsp)
callq 0x2090
movq %rax, %r15
movq %rax, 0x8(%rsp)
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x20(%rax)
movq %rax, %r14
callq 0x2090
subq %r15, %rax
cvtsi2sd %rax, %xmm0
divsd 0x16b1(%rip), %xmm0 # 0x4020
mulsd 0x16b1(%rip), %xmm0 # 0x4028
addsd 0x18(%rbx), %xmm0
movsd %xmm0, 0x18(%rbx)
incl 0x10(%rbx)
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x2854
movq %rbx, %rdi
callq 0x2170
| _ZN19TimeMeasuringPlayer9make_moveERKN3ttt4game5StateE:
push r15
push r14
push rbx
sub rsp, 10h
mov r14, rsi
mov rbx, rdi
lea rax, [rdi+10h]
mov [rsp+28h+var_28], rax
call _clock
mov r15, rax
mov [rsp+28h+var_20], rax
mov rdi, [rbx+8]
mov rax, [rdi]
mov rsi, r14
call qword ptr [rax+20h]
mov r14, rax
call _clock
sub rax, r15
cvtsi2sd xmm0, rax
divsd xmm0, cs:qword_4020
mulsd xmm0, cs:qword_4028
addsd xmm0, qword ptr [rbx+18h]
movsd qword ptr [rbx+18h], xmm0
inc dword ptr [rbx+10h]
mov rax, r14
add rsp, 10h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
mov rdi, rsp; this
call _ZN13BlockMeasurerD2Ev; BlockMeasurer::~BlockMeasurer()
mov rdi, rbx
call __Unwind_Resume
| long long TimeMeasuringPlayer::make_move(TimeMeasuringPlayer *this, const ttt::game::State *a2)
{
long long v3; // rdi
long long v4; // r14
int v6; // [rsp+8h] [rbp-20h]
v6 = clock(this, a2);
v3 = *((_QWORD *)this + 1);
v4 = (*(long long ( **)(long long, const ttt::game::State *))(*(_QWORD *)v3 + 32LL))(v3, a2);
*((double *)this + 3) = (double)(int)(clock(v3, a2) - v6) / 1000000.0 * 1000.0 + *((double *)this + 3);
++*((_DWORD *)this + 4);
return v4;
}
| make_move:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV R14,RSI
MOV RBX,RDI
LEA RAX,[RDI + 0x10]
MOV qword ptr [RSP],RAX
CALL 0x00102090
MOV R15,RAX
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RBX + 0x8]
MOV RAX,qword ptr [RDI]
LAB_00102951:
MOV RSI,R14
CALL qword ptr [RAX + 0x20]
LAB_00102957:
MOV R14,RAX
CALL 0x00102090
SUB RAX,R15
CVTSI2SD XMM0,RAX
DIVSD XMM0,qword ptr [0x00104020]
MULSD XMM0,qword ptr [0x00104028]
ADDSD XMM0,qword ptr [RBX + 0x18]
MOVSD qword ptr [RBX + 0x18],XMM0
INC dword ptr [RBX + 0x10]
MOV RAX,R14
ADD RSP,0x10
POP RBX
POP R14
POP R15
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* TimeMeasuringPlayer::make_move(ttt::game::State const&) */
int8 __thiscall TimeMeasuringPlayer::make_move(TimeMeasuringPlayer *this,State *param_1)
{
clock_t cVar1;
int8 uVar2;
clock_t cVar3;
cVar1 = clock();
/* try { // try from 00102951 to 00102956 has its CatchHandler @ 00102991 */
uVar2 = (**(code **)(**(long **)(this + 8) + 0x20))(*(long **)(this + 8),param_1);
cVar3 = clock();
*(double *)(this + 0x18) =
((double)(cVar3 - cVar1) / _DAT_00104020) * _DAT_00104028 + *(double *)(this + 0x18);
*(int *)(this + 0x10) = *(int *)(this + 0x10) + 1;
return uVar2;
}
| |
48,239 | do_done(st_command*) | eloqsql/client/mysqltest.cc | int do_done(struct st_command *command)
{
/* Check if empty block stack */
if (cur_block == block_stack)
{
if (*command->query != '}')
die("Stray 'end' command - end of block before beginning");
die("Stray '}' - end of block before beginning");
}
/* Test if inner block has been executed */
if (cur_block->ok && cur_block->cmd == cmd_while)
{
/* Pop block from stack, re-execute outer block */
cur_block--;
parser.current_line = cur_block->line;
}
else
{
if (*cur_block->delim)
{
/* Restore "old" delimiter after false if block */
strcpy (delimiter, cur_block->delim);
delimiter_length= strlen(delimiter);
}
/* Pop block from stack, goto next line */
cur_block--;
parser.current_line++;
}
return 0;
} | O3 | cpp | do_done(st_command*):
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq 0x3f376e(%rip), %rsi # 0x45d2a0
leaq 0x3f3b27(%rip), %rax # 0x45d660
cmpq %rax, %rsi
je 0x69bb0
cmpb $0x0, 0x4(%rsi)
je 0x69b5a
cmpl $0x2, 0x8(%rsi)
jne 0x69b5a
leaq -0x1c(%rsi), %rax
movq %rax, 0x3f374b(%rip) # 0x45d2a0
movl -0x1c(%rsi), %eax
jmp 0x69ba1
cmpb $0x0, 0xc(%rsi)
je 0x69b8e
addq $0xc, %rsi
leaq 0x378135(%rip), %rbx # 0x3e1ca0
movl $0x10, %edx
movq %rbx, %rdi
callq 0x5f9a0
movq %rbx, %rdi
callq 0x5f480
movq %rax, 0x378129(%rip) # 0x3e1cb0
movq 0x3f3712(%rip), %rsi # 0x45d2a0
addq $-0x1c, %rsi
movq %rsi, 0x3f3707(%rip) # 0x45d2a0
movl 0x3f22ed(%rip), %eax # 0x45be8c
incl %eax
movl %eax, 0x3f22e5(%rip) # 0x45be8c
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq (%rdi), %rax
cmpb $0x7d, (%rax)
jne 0x69bc1
leaq 0x88487(%rip), %rdi # 0xf2046
jmp 0x69bc8
leaq 0x8844a(%rip), %rdi # 0xf2012
xorl %eax, %eax
callq 0x62bd2
| _Z7do_doneP10st_command:
push rbp
mov rbp, rsp
push rbx
push rax
mov rsi, cs:_ZL9cur_block; cur_block
lea rax, _ZL11block_stack; block_stack
cmp rsi, rax
jz short loc_69BB0
cmp byte ptr [rsi+4], 0
jz short loc_69B5A
cmp dword ptr [rsi+8], 2
jnz short loc_69B5A
lea rax, [rsi-1Ch]
mov cs:_ZL9cur_block, rax; cur_block
mov eax, [rsi-1Ch]
jmp short loc_69BA1
loc_69B5A:
cmp byte ptr [rsi+0Ch], 0
jz short loc_69B8E
add rsi, 0Ch
lea rbx, _ZL9delimiter; ";"
mov edx, 10h
mov rdi, rbx
call ___strcpy_chk
mov rdi, rbx
call _strlen
mov cs:_ZL16delimiter_length, rax; delimiter_length
mov rsi, cs:_ZL9cur_block; cur_block
loc_69B8E:
add rsi, 0FFFFFFFFFFFFFFE4h
mov cs:_ZL9cur_block, rsi; cur_block
mov eax, dword ptr cs:parser+4
inc eax
loc_69BA1:
mov dword ptr cs:parser+4, eax
xor eax, eax
add rsp, 8
pop rbx
pop rbp
retn
loc_69BB0:
mov rax, [rdi]
cmp byte ptr [rax], 7Dh ; '}'
jnz short loc_69BC1
lea rdi, aStrayEndOfBloc; "Stray '}' - end of block before beginni"...
jmp short loc_69BC8
loc_69BC1:
lea rdi, aStrayEndComman; "Stray 'end' command - end of block befo"...
loc_69BC8:
xor eax, eax
call _ZL3diePKcz; die(char const*,...)
| long long do_done(
_BYTE **a1,
__m128 a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
long long a10,
long long a11,
__va_list_tag *a12,
long long a13,
long long a14)
{
char v14; // al
long long v15; // rsi
int v16; // eax
const char *v18; // rdi
v15 = cur_block;
if ( (_UNKNOWN *)cur_block == &block_stack )
{
if ( **a1 == 125 )
v18 = "Stray '}' - end of block before beginning";
else
v18 = "Stray 'end' command - end of block before beginning";
die(v18, cur_block, a11, a12, a13, a14, a2, a3, a4, a5, a6, a7, a8, a9, v14);
}
if ( *(_BYTE *)(cur_block + 4) && *(_DWORD *)(cur_block + 8) == 2 )
{
cur_block -= 28LL;
v16 = *(_DWORD *)(v15 - 28);
}
else
{
if ( *(_BYTE *)(cur_block + 12) )
{
__strcpy_chk(delimiter, cur_block + 12, 16LL);
delimiter_length = strlen(delimiter);
v15 = cur_block;
}
cur_block = v15 - 28;
v16 = HIDWORD(parser) + 1;
}
HIDWORD(parser) = v16;
return 0LL;
}
| do_done:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RSI,qword ptr [0x0055d2a0]
LEA RAX,[0x55d660]
CMP RSI,RAX
JZ 0x00169bb0
CMP byte ptr [RSI + 0x4],0x0
JZ 0x00169b5a
CMP dword ptr [RSI + 0x8],0x2
JNZ 0x00169b5a
LEA RAX,[RSI + -0x1c]
MOV qword ptr [0x0055d2a0],RAX
MOV EAX,dword ptr [RSI + -0x1c]
JMP 0x00169ba1
LAB_00169b5a:
CMP byte ptr [RSI + 0xc],0x0
JZ 0x00169b8e
ADD RSI,0xc
LEA RBX,[0x4e1ca0]
MOV EDX,0x10
MOV RDI,RBX
CALL 0x0015f9a0
MOV RDI,RBX
CALL 0x0015f480
MOV qword ptr [0x004e1cb0],RAX
MOV RSI,qword ptr [0x0055d2a0]
LAB_00169b8e:
ADD RSI,-0x1c
MOV qword ptr [0x0055d2a0],RSI
MOV EAX,dword ptr [0x0055be8c]
INC EAX
LAB_00169ba1:
MOV dword ptr [0x0055be8c],EAX
XOR EAX,EAX
ADD RSP,0x8
POP RBX
POP RBP
RET
LAB_00169bb0:
MOV RAX,qword ptr [RDI]
CMP byte ptr [RAX],0x7d
JNZ 0x00169bc1
LEA RDI,[0x1f2046]
JMP 0x00169bc8
LAB_00169bc1:
LEA RDI,[0x1f2012]
LAB_00169bc8:
XOR EAX,EAX
CALL 0x00162bd2
|
/* do_done(st_command*) */
int8 do_done(st_command *param_1)
{
char *pcVar1;
if (cur_block != block_stack) {
if ((cur_block[4] == '\0') || (*(int *)(cur_block + 8) != 2)) {
if (cur_block[0xc] != '\0') {
__strcpy_chk(&delimiter,cur_block + 0xc,0x10);
delimiter_length = strlen(&delimiter);
}
cur_block = cur_block + -0x1c;
DAT_0055be8c = DAT_0055be8c + 1;
}
else {
DAT_0055be8c = *(int *)(cur_block + -0x1c);
cur_block = cur_block + -0x1c;
}
return 0;
}
if (**(char **)param_1 == '}') {
pcVar1 = "Stray \'}\' - end of block before beginning";
}
else {
pcVar1 = "Stray \'end\' command - end of block before beginning";
}
/* WARNING: Subroutine does not return */
die(pcVar1);
}
| |
48,240 | ma_pvio_tls_compare_fp | eloqsql/libmariadb/libmariadb/ma_tls.c | static my_bool ma_pvio_tls_compare_fp(const char *cert_fp,
unsigned int cert_fp_len,
const char *fp, unsigned int fp_len)
{
char *p= (char *)fp,
*c;
/* check length */
if (cert_fp_len != 20)
return 1;
/* We support two formats:
2 digits hex numbers, separated by colons (length=59)
20 * 2 digits hex numbers without separators (length = 40)
*/
if (fp_len != (strchr(fp, ':') ? 59 : 40))
return 1;
for(c= (char *)cert_fp; c < cert_fp + cert_fp_len; c++)
{
signed char d1, d2;
if (*p == ':')
p++;
if (p - fp > (int)fp_len -1)
return 1;
if ((d1 = ma_hex2int(*p)) == - 1 ||
(d2 = ma_hex2int(*(p+1))) == -1 ||
(char)(d1 * 16 + d2) != *c)
return 1;
p+= 2;
}
return 0;
} | O3 | c | ma_pvio_tls_compare_fp:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movb $0x1, %bl
cmpl $0x14, %esi
jne 0x21687
movl %ecx, %r14d
movq %rdx, %r15
movq %rdi, %r12
movq %rdx, %rdi
movl $0x3a, %esi
callq 0x13180
testq %rax, %rax
movl $0x28, %eax
movl $0x3b, %ecx
cmovel %eax, %ecx
cmpl %r14d, %ecx
jne 0x21687
decl %r14d
xorl %eax, %eax
movq %r15, %rdx
xorl %ecx, %ecx
cmpb $0x3a, (%rdx)
sete %cl
addq %rdx, %rcx
movq %rcx, %rdx
subq %r15, %rdx
cmpq %r14, %rdx
jg 0x21687
movb (%rcx), %sil
leal -0x30(%rsi), %edx
cmpb $0xa, %dl
jb 0x2163a
leal -0x41(%rsi), %edx
cmpb $0x5, %dl
ja 0x2162c
addb $-0x37, %sil
jmp 0x21638
leal -0x67(%rsi), %edx
cmpb $-0x6, %dl
jb 0x21687
addb $-0x57, %sil
movl %esi, %edx
movb 0x1(%rcx), %sil
leal -0x30(%rsi), %edi
cmpb $0xa, %dil
jb 0x21665
leal -0x41(%rsi), %edi
cmpb $0x5, %dil
ja 0x21656
addb $-0x37, %sil
jmp 0x21663
leal -0x67(%rsi), %edi
cmpb $-0x6, %dil
jb 0x21687
addb $-0x57, %sil
movl %esi, %edi
shlb $0x4, %dl
addb %dil, %dl
cmpb (%r12,%rax), %dl
jne 0x21687
addq $0x2, %rcx
incq %rax
movq %rcx, %rdx
cmpq $0x14, %rax
jne 0x215fd
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| ma_pvio_tls_compare_fp:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov bl, 1
cmp esi, 14h
jnz loc_21687
mov r14d, ecx
mov r15, rdx
mov r12, rdi
mov rdi, rdx
mov esi, 3Ah ; ':'
call _strchr
test rax, rax
mov eax, 28h ; '('
mov ecx, 3Bh ; ';'
cmovz ecx, eax
cmp ecx, r14d
jnz loc_21687
dec r14d
xor eax, eax
mov rdx, r15
loc_215FD:
xor ecx, ecx
cmp byte ptr [rdx], 3Ah ; ':'
setz cl
add rcx, rdx
mov rdx, rcx
sub rdx, r15
cmp rdx, r14
jg short loc_21687
mov sil, [rcx]
lea edx, [rsi-30h]
cmp dl, 0Ah
jb short loc_2163A
lea edx, [rsi-41h]
cmp dl, 5
ja short loc_2162C
add sil, 0C9h
jmp short loc_21638
loc_2162C:
lea edx, [rsi-67h]
cmp dl, 0FAh
jb short loc_21687
add sil, 0A9h
loc_21638:
mov edx, esi
loc_2163A:
mov sil, [rcx+1]
lea edi, [rsi-30h]
cmp dil, 0Ah
jb short loc_21665
lea edi, [rsi-41h]
cmp dil, 5
ja short loc_21656
add sil, 0C9h
jmp short loc_21663
loc_21656:
lea edi, [rsi-67h]
cmp dil, 0FAh
jb short loc_21687
add sil, 0A9h
loc_21663:
mov edi, esi
loc_21665:
shl dl, 4
add dl, dil
cmp dl, [r12+rax]
jnz short loc_21687
add rcx, 2
inc rax
mov rdx, rcx
cmp rax, 14h
jnz loc_215FD
xor ebx, ebx
loc_21687:
mov eax, ebx
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long ma_pvio_tls_compare_fp(long long a1, int a2, _BYTE *a3, int a4)
{
unsigned int v4; // ebx
long long v8; // rax
int v9; // ecx
long long v10; // r14
long long v11; // rax
_BYTE *v12; // rdx
char *v13; // rcx
char v14; // si
unsigned __int8 v15; // dl
unsigned __int8 v16; // si
char v17; // si
char v18; // di
char v19; // si
LOBYTE(v4) = 1;
if ( a2 == 20 )
{
v8 = strchr(a3, 58LL);
v9 = 59;
if ( !v8 )
v9 = 40;
if ( v9 == a4 )
{
v10 = (unsigned int)(a4 - 1);
v11 = 0LL;
v12 = a3;
while ( 1 )
{
v13 = &v12[*v12 == 58];
if ( v13 - a3 > v10 )
break;
v14 = *v13;
v15 = *v13 - 48;
if ( v15 >= 0xAu )
{
if ( (unsigned __int8)(v14 - 65) > 5u )
{
if ( (unsigned __int8)(v14 - 103) < 0xFAu )
return v4;
v16 = v14 - 87;
}
else
{
v16 = v14 - 55;
}
v15 = v16;
}
v17 = v13[1];
v18 = v17 - 48;
if ( (unsigned __int8)(v17 - 48) >= 0xAu )
{
if ( (unsigned __int8)(v17 - 65) > 5u )
{
if ( (unsigned __int8)(v17 - 103) < 0xFAu )
return v4;
v19 = v17 - 87;
}
else
{
v19 = v17 - 55;
}
v18 = v19;
}
if ( v18 + 16 * v15 != *(_BYTE *)(a1 + v11) )
break;
++v11;
v12 = v13 + 2;
if ( v11 == 20 )
return 0;
}
}
}
return v4;
}
| ma_pvio_tls_compare_fp:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV BL,0x1
CMP ESI,0x14
JNZ 0x00121687
MOV R14D,ECX
MOV R15,RDX
MOV R12,RDI
MOV RDI,RDX
MOV ESI,0x3a
CALL 0x00113180
TEST RAX,RAX
MOV EAX,0x28
MOV ECX,0x3b
CMOVZ ECX,EAX
CMP ECX,R14D
JNZ 0x00121687
DEC R14D
XOR EAX,EAX
MOV RDX,R15
LAB_001215fd:
XOR ECX,ECX
CMP byte ptr [RDX],0x3a
SETZ CL
ADD RCX,RDX
MOV RDX,RCX
SUB RDX,R15
CMP RDX,R14
JG 0x00121687
MOV SIL,byte ptr [RCX]
LEA EDX,[RSI + -0x30]
CMP DL,0xa
JC 0x0012163a
LEA EDX,[RSI + -0x41]
CMP DL,0x5
JA 0x0012162c
ADD SIL,0xc9
JMP 0x00121638
LAB_0012162c:
LEA EDX,[RSI + -0x67]
CMP DL,0xfa
JC 0x00121687
ADD SIL,0xa9
LAB_00121638:
MOV EDX,ESI
LAB_0012163a:
MOV SIL,byte ptr [RCX + 0x1]
LEA EDI,[RSI + -0x30]
CMP DIL,0xa
JC 0x00121665
LEA EDI,[RSI + -0x41]
CMP DIL,0x5
JA 0x00121656
ADD SIL,0xc9
JMP 0x00121663
LAB_00121656:
LEA EDI,[RSI + -0x67]
CMP DIL,0xfa
JC 0x00121687
ADD SIL,0xa9
LAB_00121663:
MOV EDI,ESI
LAB_00121665:
SHL DL,0x4
ADD DL,DIL
CMP DL,byte ptr [R12 + RAX*0x1]
JNZ 0x00121687
ADD RCX,0x2
INC RAX
MOV RDX,RCX
CMP RAX,0x14
JNZ 0x001215fd
XOR EBX,EBX
LAB_00121687:
MOV EAX,EBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
ulong ma_pvio_tls_compare_fp(long param_1,int param_2,char *param_3,int param_4)
{
char cVar1;
char *pcVar2;
long lVar3;
int iVar4;
int8 unaff_RBX;
ulong uVar5;
byte bVar6;
byte bVar7;
uVar5 = CONCAT71((int7)((ulong)unaff_RBX >> 8),1);
if (param_2 == 0x14) {
pcVar2 = strchr(param_3,0x3a);
iVar4 = 0x3b;
if (pcVar2 == (char *)0x0) {
iVar4 = 0x28;
}
if (iVar4 == param_4) {
lVar3 = 0;
pcVar2 = param_3;
do {
pcVar2 = pcVar2 + (*pcVar2 == ':');
if ((long)(ulong)(param_4 - 1) < (long)pcVar2 - (long)param_3) goto LAB_00121687;
cVar1 = *pcVar2;
bVar6 = cVar1 - 0x30;
if (9 < bVar6) {
if ((byte)(cVar1 + 0xbfU) < 6) {
bVar6 = cVar1 - 0x37;
}
else {
if ((byte)(cVar1 + 0x99U) < 0xfa) goto LAB_00121687;
bVar6 = cVar1 + 0xa9;
}
}
cVar1 = pcVar2[1];
bVar7 = cVar1 - 0x30;
if (9 < bVar7) {
if ((byte)(cVar1 + 0xbfU) < 6) {
bVar7 = cVar1 - 0x37;
}
else {
if ((byte)(cVar1 + 0x99U) < 0xfa) goto LAB_00121687;
bVar7 = cVar1 + 0xa9;
}
}
if ((byte)(bVar6 * '\x10' + bVar7) != *(char *)(param_1 + lVar3)) goto LAB_00121687;
pcVar2 = pcVar2 + 2;
lVar3 = lVar3 + 1;
} while (lVar3 != 0x14);
uVar5 = 0;
}
}
LAB_00121687:
return uVar5 & 0xffffffff;
}
| |
48,241 | LefDefParser::defiScanchain::setName(char const*) | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiScanchain.cpp | void defiScanchain::setName(const char* name) {
int len = strlen(name) + 1;
clear();
if (len > nameLength_) {
free(name_);
name_ = (char*)malloc(len);
nameLength_ = len;
}
strcpy(name_, defData->DEFCASE(name));
} | O3 | cpp | LefDefParser::defiScanchain::setName(char const*):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x70d0
movq %rax, %r15
incl %r15d
movq %r14, %rdi
callq 0x28632
movq (%r14), %r12
cmpl 0xc(%r14), %r15d
jle 0x28817
movq %r12, %rdi
callq 0x7220
movslq %r15d, %rdi
callq 0x7270
movq %rax, %r12
movq %rax, (%r14)
movl %r15d, 0xc(%r14)
movq 0x90(%r14), %rdi
movq %rbx, %rsi
callq 0x1b638
movq %r12, %rdi
movq %rax, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x7190
| _ZN12LefDefParser13defiScanchain7setNameEPKc:
push r15
push r14
push r12
push rbx
push rax
mov rbx, rsi
mov r14, rdi
mov rdi, rsi
call _strlen
mov r15, rax
inc r15d
mov rdi, r14; this
call _ZN12LefDefParser13defiScanchain5clearEv; LefDefParser::defiScanchain::clear(void)
mov r12, [r14]
cmp r15d, [r14+0Ch]
jle short loc_28817
mov rdi, r12
call _free
movsxd rdi, r15d
call _malloc
mov r12, rax
mov [r14], rax
mov [r14+0Ch], r15d
loc_28817:
mov rdi, [r14+90h]; this
mov rsi, rbx; char *
call _ZN12LefDefParser8defrData7DEFCASEEPKc; LefDefParser::defrData::DEFCASE(char const*)
mov rdi, r12
mov rsi, rax
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
jmp _strcpy
| long long LefDefParser::defiScanchain::setName(LefDefParser::defrData **this, const char *a2)
{
int v2; // r15d
long long v3; // r12
const char *v4; // rax
v2 = strlen(a2) + 1;
LefDefParser::defiScanchain::clear((LefDefParser::defiScanchain *)this);
v3 = (long long)*this;
if ( v2 > *((_DWORD *)this + 3) )
{
free(*this);
v3 = malloc(v2);
*this = (LefDefParser::defrData *)v3;
*((_DWORD *)this + 3) = v2;
}
v4 = LefDefParser::defrData::DEFCASE(this[18], a2);
return strcpy(v3, v4);
}
| setName:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
MOV RDI,RSI
CALL 0x001070d0
MOV R15,RAX
INC R15D
MOV RDI,R14
CALL 0x00128632
MOV R12,qword ptr [R14]
CMP R15D,dword ptr [R14 + 0xc]
JLE 0x00128817
MOV RDI,R12
CALL 0x00107220
MOVSXD RDI,R15D
CALL 0x00107270
MOV R12,RAX
MOV qword ptr [R14],RAX
MOV dword ptr [R14 + 0xc],R15D
LAB_00128817:
MOV RDI,qword ptr [R14 + 0x90]
MOV RSI,RBX
CALL 0x0011b638
MOV RDI,R12
MOV RSI,RAX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
JMP 0x00107190
|
/* LefDefParser::defiScanchain::setName(char const*) */
void __thiscall LefDefParser::defiScanchain::setName(defiScanchain *this,char *param_1)
{
size_t sVar1;
char *__dest;
char *__src;
int iVar2;
sVar1 = strlen(param_1);
iVar2 = (int)sVar1 + 1;
clear(this);
__dest = *(char **)this;
if (*(int *)(this + 0xc) < iVar2) {
free(__dest);
__dest = (char *)malloc((long)iVar2);
*(char **)this = __dest;
*(int *)(this + 0xc) = iVar2;
}
__src = (char *)defrData::DEFCASE(*(defrData **)(this + 0x90),param_1);
strcpy(__dest,__src);
return;
}
| |
48,242 | minja::Parser::parseString[abi:cxx11]()::'lambda'(char)::operator()[abi:cxx11](char) const | monkey531[P]llama/common/minja.hpp | std::unique_ptr<std::string> parseString() {
auto doParse = [&](char quote) -> std::unique_ptr<std::string> {
if (it == end || *it != quote) return nullptr;
std::string result;
bool escape = false;
for (++it; it != end; ++it) {
if (escape) {
escape = false;
switch (*it) {
case 'n': result += '\n'; break;
case 'r': result += '\r'; break;
case 't': result += '\t'; break;
case 'b': result += '\b'; break;
case 'f': result += '\f'; break;
case '\\': result += '\\'; break;
default:
if (*it == quote) {
result += quote;
} else {
result += *it;
}
break;
}
} else if (*it == '\\') {
escape = true;
} else if (*it == quote) {
++it;
return std::make_unique<std::string>(std::move(result));
} else {
result += *it;
}
}
return nullptr;
};
consumeSpaces();
if (it == end) return nullptr;
if (*it == '"') return doParse('"');
if (*it == '\'') return doParse('\'');
return nullptr;
} | O0 | cpp | minja::Parser::parseString[abi:cxx11]()::'lambda'(char)::operator()[abi:cxx11](char) const:
subq $0x78, %rsp
movq %rdi, 0x10(%rsp)
movb %dl, %al
movq %rdi, %rcx
movq %rcx, 0x18(%rsp)
movq %rdi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movb %al, 0x67(%rsp)
movq 0x68(%rsp), %rax
movq (%rax), %rsi
movq %rsi, 0x20(%rsp)
movq %rsi, %rdi
addq $0x20, %rdi
addq $0x18, %rsi
callq 0xac230
testb $0x1, %al
jne 0xbb78c
movq 0x20(%rsp), %rdi
addq $0x20, %rdi
callq 0x62850
movsbl (%rax), %eax
movsbl 0x67(%rsp), %ecx
cmpl %ecx, %eax
je 0xbb79f
movq 0x10(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xbb6f0
jmp 0xbb9c6
leaq 0x40(%rsp), %rdi
callq 0x55510
movq 0x20(%rsp), %rdi
movb $0x0, 0x3f(%rsp)
addq $0x20, %rdi
callq 0x62860
movq 0x20(%rsp), %rsi
movq %rsi, %rdi
addq $0x20, %rdi
addq $0x18, %rsi
callq 0x62810
testb $0x1, %al
jne 0xbb7da
jmp 0xbb9a6
testb $0x1, 0x3f(%rsp)
je 0xbb90e
movq 0x20(%rsp), %rdi
movb $0x0, 0x3f(%rsp)
addq $0x20, %rdi
callq 0x62850
movsbl (%rax), %eax
addl $-0x5c, %eax
movl %eax, %ecx
movq %rcx, 0x8(%rsp)
subl $0x18, %eax
ja 0xbb8bb
movq 0x8(%rsp), %rax
leaq 0x107ca2(%rip), %rcx # 0x1c34bc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x40(%rsp), %rdi
movl $0xa, %esi
callq 0x55ad0
jmp 0xbb834
jmp 0xbb909
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x30(%rsp)
movl %eax, 0x2c(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x56290
jmp 0xbb9d0
leaq 0x40(%rsp), %rdi
movl $0xd, %esi
callq 0x55ad0
jmp 0xbb867
jmp 0xbb909
leaq 0x40(%rsp), %rdi
movl $0x9, %esi
callq 0x55ad0
jmp 0xbb87d
jmp 0xbb909
leaq 0x40(%rsp), %rdi
movl $0x8, %esi
callq 0x55ad0
jmp 0xbb893
jmp 0xbb909
leaq 0x40(%rsp), %rdi
movl $0xc, %esi
callq 0x55ad0
jmp 0xbb8a6
jmp 0xbb909
leaq 0x40(%rsp), %rdi
movl $0x5c, %esi
callq 0x55ad0
jmp 0xbb8b9
jmp 0xbb909
movq 0x20(%rsp), %rdi
addq $0x20, %rdi
callq 0x62850
movsbl (%rax), %eax
movsbl 0x67(%rsp), %ecx
cmpl %ecx, %eax
jne 0xbb8e8
movsbl 0x67(%rsp), %esi
leaq 0x40(%rsp), %rdi
callq 0x55ad0
jmp 0xbb8e6
jmp 0xbb907
movq 0x20(%rsp), %rdi
addq $0x20, %rdi
callq 0x62850
movsbl (%rax), %esi
leaq 0x40(%rsp), %rdi
callq 0x55ad0
jmp 0xbb905
jmp 0xbb907
jmp 0xbb909
jmp 0xbb991
movq 0x20(%rsp), %rdi
addq $0x20, %rdi
callq 0x62850
movsbl (%rax), %eax
cmpl $0x5c, %eax
jne 0xbb92b
movb $0x1, 0x3f(%rsp)
jmp 0xbb98f
movq 0x20(%rsp), %rdi
addq $0x20, %rdi
callq 0x62850
movsbl (%rax), %eax
movsbl 0x67(%rsp), %ecx
cmpl %ecx, %eax
jne 0xbb96e
movq 0x20(%rsp), %rdi
addq $0x20, %rdi
callq 0x62860
movq 0x10(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0xbba90
jmp 0xbb964
movl $0x1, 0x28(%rsp)
jmp 0xbb9bc
movq 0x20(%rsp), %rdi
addq $0x20, %rdi
callq 0x62850
movsbl (%rax), %esi
leaq 0x40(%rsp), %rdi
callq 0x55ad0
jmp 0xbb98b
jmp 0xbb98d
jmp 0xbb98f
jmp 0xbb991
jmp 0xbb993
movq 0x20(%rsp), %rdi
addq $0x20, %rdi
callq 0x62860
jmp 0xbb7bc
movq 0x10(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xbb6f0
movl $0x1, 0x28(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x56290
movq 0x18(%rsp), %rax
addq $0x78, %rsp
retq
movq 0x30(%rsp), %rdi
callq 0x55a10
nopw (%rax,%rax)
| _ZZN5minja6Parser11parseStringB5cxx11EvENKUlcE_clB5cxx11Ec:
sub rsp, 78h
mov [rsp+78h+var_68], rdi
mov al, dl
mov rcx, rdi
mov [rsp+78h+var_60], rcx
mov [rsp+78h+var_8], rdi
mov [rsp+78h+var_10], rsi
mov [rsp+78h+var_11], al
mov rax, [rsp+78h+var_10]
mov rsi, [rax]
mov [rsp+78h+var_58], rsi
mov rdi, rsi
add rdi, 20h ; ' '
add rsi, 18h
call _ZN9__gnu_cxxeqIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESE_; __gnu_cxx::operator==<char const*,std::string>(__gnu_cxx::__normal_iterator<char const*,std::string> const&,__gnu_cxx::__normal_iterator<char const*,std::string> const&)
test al, 1
jnz short loc_BB78C
mov rdi, [rsp+78h+var_58]
add rdi, 20h ; ' '
call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void)
movsx eax, byte ptr [rax]
movsx ecx, [rsp+78h+var_11]
cmp eax, ecx
jz short loc_BB79F
loc_BB78C:
mov rdi, [rsp+78h+var_68]
xor eax, eax
mov esi, eax
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEC2IS7_vEEDn; std::unique_ptr<std::string>::unique_ptr<std::default_delete<std::string>,void>(decltype(nullptr))
jmp loc_BB9C6
loc_BB79F:
lea rdi, [rsp+78h+var_38]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void)
mov rdi, [rsp+78h+var_58]
mov [rsp+78h+var_39], 0
add rdi, 20h ; ' '
call _ZN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator++(void)
loc_BB7BC:
mov rsi, [rsp+78h+var_58]
mov rdi, rsi
add rdi, 20h ; ' '
add rsi, 18h
call _ZN9__gnu_cxxneIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESE_; __gnu_cxx::operator!=<char const*,std::string>(__gnu_cxx::__normal_iterator<char const*,std::string> const&,__gnu_cxx::__normal_iterator<char const*,std::string> const&)
test al, 1
jnz short loc_BB7DA
jmp loc_BB9A6
loc_BB7DA:
test [rsp+78h+var_39], 1
jz loc_BB90E
mov rdi, [rsp+78h+var_58]
mov [rsp+78h+var_39], 0
add rdi, 20h ; ' '
call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void)
movsx eax, byte ptr [rax]
add eax, 0FFFFFFA4h; switch 25 cases
mov ecx, eax
mov [rsp+78h+var_70], rcx
sub eax, 18h
ja def_BB821; jumptable 00000000000BB821 default case, cases 93-97,99-101,103-109,111-113,115
mov rax, [rsp+78h+var_70]
lea rcx, jpt_BB821
movsxd rax, ds:(jpt_BB821 - 1C34BCh)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_BB823:
lea rdi, [rsp+78h+var_38]; jumptable 00000000000BB821 case 110
mov esi, 0Ah
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char)
jmp short $+2
loc_BB834:
jmp loc_BB909
mov rcx, rax
mov eax, edx
mov [rsp+arg_28], rcx
mov [rsp+arg_24], eax
lea rdi, [rsp+arg_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_BB9D0
loc_BB856:
lea rdi, [rsp+78h+var_38]; jumptable 00000000000BB821 case 114
mov esi, 0Dh
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char)
jmp short $+2
loc_BB867:
jmp loc_BB909
loc_BB86C:
lea rdi, [rsp+78h+var_38]; jumptable 00000000000BB821 case 116
mov esi, 9
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char)
jmp short $+2
loc_BB87D:
jmp loc_BB909
loc_BB882:
lea rdi, [rsp+78h+var_38]; jumptable 00000000000BB821 case 98
mov esi, 8
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char)
jmp short $+2
loc_BB893:
jmp short loc_BB909
loc_BB895:
lea rdi, [rsp+78h+var_38]; jumptable 00000000000BB821 case 102
mov esi, 0Ch
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char)
jmp short $+2
loc_BB8A6:
jmp short loc_BB909
loc_BB8A8:
lea rdi, [rsp+78h+var_38]; jumptable 00000000000BB821 case 92
mov esi, 5Ch ; '\'
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char)
jmp short $+2
loc_BB8B9:
jmp short loc_BB909
def_BB821:
mov rdi, [rsp+78h+var_58]; jumptable 00000000000BB821 default case, cases 93-97,99-101,103-109,111-113,115
add rdi, 20h ; ' '
call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void)
movsx eax, byte ptr [rax]
movsx ecx, [rsp+78h+var_11]
cmp eax, ecx
jnz short loc_BB8E8
movsx esi, [rsp+78h+var_11]
lea rdi, [rsp+78h+var_38]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char)
jmp short $+2
loc_BB8E6:
jmp short loc_BB907
loc_BB8E8:
mov rdi, [rsp+78h+var_58]
add rdi, 20h ; ' '
call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void)
movsx esi, byte ptr [rax]
lea rdi, [rsp+78h+var_38]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char)
jmp short $+2
loc_BB905:
jmp short $+2
loc_BB907:
jmp short $+2
loc_BB909:
jmp loc_BB991
loc_BB90E:
mov rdi, [rsp+78h+var_58]
add rdi, 20h ; ' '
call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void)
movsx eax, byte ptr [rax]
cmp eax, 5Ch ; '\'
jnz short loc_BB92B
mov [rsp+78h+var_39], 1
jmp short loc_BB98F
loc_BB92B:
mov rdi, [rsp+78h+var_58]
add rdi, 20h ; ' '
call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void)
movsx eax, byte ptr [rax]
movsx ecx, [rsp+78h+var_11]
cmp eax, ecx
jnz short loc_BB96E
mov rdi, [rsp+78h+var_58]
add rdi, 20h ; ' '
call _ZN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator++(void)
mov rdi, [rsp+78h+var_68]
lea rsi, [rsp+78h+var_38]
call _ZSt11make_uniqueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS5_EENSt9_MakeUniqIT_E15__single_objectEDpOT0_; std::make_unique<std::string,std::string>(std::string &&)
jmp short $+2
loc_BB964:
mov [rsp+78h+var_50], 1
jmp short loc_BB9BC
loc_BB96E:
mov rdi, [rsp+78h+var_58]
add rdi, 20h ; ' '
call _ZNK9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator*(void)
movsx esi, byte ptr [rax]
lea rdi, [rsp+78h+var_38]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char)
jmp short $+2
loc_BB98B:
jmp short $+2
loc_BB98D:
jmp short $+2
loc_BB98F:
jmp short $+2
loc_BB991:
jmp short $+2
loc_BB993:
mov rdi, [rsp+78h+var_58]
add rdi, 20h ; ' '
call _ZN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv; __gnu_cxx::__normal_iterator<char const*,std::string>::operator++(void)
jmp loc_BB7BC
loc_BB9A6:
mov rdi, [rsp+78h+var_68]
xor eax, eax
mov esi, eax
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEC2IS7_vEEDn; std::unique_ptr<std::string>::unique_ptr<std::default_delete<std::string>,void>(decltype(nullptr))
mov [rsp+78h+var_50], 1
loc_BB9BC:
lea rdi, [rsp+78h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_BB9C6:
mov rax, [rsp+78h+var_60]
add rsp, 78h
retn
loc_BB9D0:
mov rdi, [rsp+arg_28]
call __Unwind_Resume
| long long minja::Parser::parseString[abi:cxx11](void)::{lambda(char)#1}::operator()[abi:cxx11](
long long a1,
_QWORD *a2,
char a3)
{
char *v3; // rax
char *v4; // rax
char *v5; // rax
long long v7; // [rsp+20h] [rbp-58h]
char v8; // [rsp+3Fh] [rbp-39h]
_BYTE v9[39]; // [rsp+40h] [rbp-38h] BYREF
char v10; // [rsp+67h] [rbp-11h]
_QWORD *v11; // [rsp+68h] [rbp-10h]
long long v12; // [rsp+70h] [rbp-8h]
v12 = a1;
v11 = a2;
v10 = a3;
v7 = *a2;
if ( !__gnu_cxx::operator==<char const*,std::string>(*a2 + 32LL, *a2 + 24LL)
&& *(char *)__gnu_cxx::__normal_iterator<char const*,std::string>::operator*(v7 + 32) == v10 )
{
std::string::basic_string(v9);
v8 = 0;
__gnu_cxx::__normal_iterator<char const*,std::string>::operator++((_QWORD *)(v7 + 32));
while ( __gnu_cxx::operator!=<char const*,std::string>(v7 + 32, v7 + 24) )
{
if ( (v8 & 1) != 0 )
{
v8 = 0;
switch ( *(_BYTE *)__gnu_cxx::__normal_iterator<char const*,std::string>::operator*(v7 + 32) )
{
case '\\':
std::string::operator+=(v9, 92LL);
break;
case 'b':
std::string::operator+=(v9, 8LL);
break;
case 'f':
std::string::operator+=(v9, 12LL);
break;
case 'n':
std::string::operator+=(v9, 10LL);
break;
case 'r':
std::string::operator+=(v9, 13LL);
break;
case 't':
std::string::operator+=(v9, 9LL);
break;
default:
v3 = (char *)__gnu_cxx::__normal_iterator<char const*,std::string>::operator*(v7 + 32);
if ( *v3 != v10 )
goto LABEL_21;
std::string::operator+=(v9, (unsigned int)v10);
break;
}
}
else if ( *(_BYTE *)__gnu_cxx::__normal_iterator<char const*,std::string>::operator*(v7 + 32) == 92 )
{
v8 = 1;
}
else
{
v4 = (char *)__gnu_cxx::__normal_iterator<char const*,std::string>::operator*(v7 + 32);
if ( *v4 == v10 )
{
__gnu_cxx::__normal_iterator<char const*,std::string>::operator++((_QWORD *)(v7 + 32));
std::make_unique<std::string,std::string>(a1, v9);
goto LABEL_24;
}
LABEL_21:
v5 = (char *)__gnu_cxx::__normal_iterator<char const*,std::string>::operator*(v7 + 32);
std::string::operator+=(v9, (unsigned int)*v5);
}
__gnu_cxx::__normal_iterator<char const*,std::string>::operator++((_QWORD *)(v7 + 32));
}
std::unique_ptr<std::string>::unique_ptr<std::default_delete<std::string>,void>(a1);
LABEL_24:
std::string::~string(v9);
}
else
{
std::unique_ptr<std::string>::unique_ptr<std::default_delete<std::string>,void>(a1);
}
return a1;
}
| operator()[abi:cxx11]:
SUB RSP,0x78
MOV qword ptr [RSP + 0x10],RDI
MOV AL,DL
MOV RCX,RDI
MOV qword ptr [RSP + 0x18],RCX
MOV qword ptr [RSP + 0x70],RDI
MOV qword ptr [RSP + 0x68],RSI
MOV byte ptr [RSP + 0x67],AL
MOV RAX,qword ptr [RSP + 0x68]
MOV RSI,qword ptr [RAX]
MOV qword ptr [RSP + 0x20],RSI
MOV RDI,RSI
ADD RDI,0x20
ADD RSI,0x18
CALL 0x001ac230
TEST AL,0x1
JNZ 0x001bb78c
MOV RDI,qword ptr [RSP + 0x20]
ADD RDI,0x20
CALL 0x00162850
MOVSX EAX,byte ptr [RAX]
MOVSX ECX,byte ptr [RSP + 0x67]
CMP EAX,ECX
JZ 0x001bb79f
LAB_001bb78c:
MOV RDI,qword ptr [RSP + 0x10]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x001bb6f0
JMP 0x001bb9c6
LAB_001bb79f:
LEA RDI,[RSP + 0x40]
CALL 0x00155510
MOV RDI,qword ptr [RSP + 0x20]
MOV byte ptr [RSP + 0x3f],0x0
ADD RDI,0x20
CALL 0x00162860
LAB_001bb7bc:
MOV RSI,qword ptr [RSP + 0x20]
MOV RDI,RSI
ADD RDI,0x20
ADD RSI,0x18
CALL 0x00162810
TEST AL,0x1
JNZ 0x001bb7da
JMP 0x001bb9a6
LAB_001bb7da:
TEST byte ptr [RSP + 0x3f],0x1
JZ 0x001bb90e
MOV RDI,qword ptr [RSP + 0x20]
MOV byte ptr [RSP + 0x3f],0x0
ADD RDI,0x20
CALL 0x00162850
MOVSX EAX,byte ptr [RAX]
ADD EAX,-0x5c
MOV ECX,EAX
MOV qword ptr [RSP + 0x8],RCX
SUB EAX,0x18
JA 0x001bb8bb
MOV RAX,qword ptr [RSP + 0x8]
LEA RCX,[0x2c34bc]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_6e:
LEA RDI,[RSP + 0x40]
MOV ESI,0xa
CALL 0x00155ad0
JMP 0x001bb834
LAB_001bb834:
JMP 0x001bb909
caseD_72:
LEA RDI,[RSP + 0x40]
MOV ESI,0xd
CALL 0x00155ad0
JMP 0x001bb867
LAB_001bb867:
JMP 0x001bb909
caseD_74:
LEA RDI,[RSP + 0x40]
MOV ESI,0x9
CALL 0x00155ad0
JMP 0x001bb87d
LAB_001bb87d:
JMP 0x001bb909
caseD_62:
LEA RDI,[RSP + 0x40]
MOV ESI,0x8
CALL 0x00155ad0
JMP 0x001bb893
LAB_001bb893:
JMP 0x001bb909
caseD_66:
LEA RDI,[RSP + 0x40]
MOV ESI,0xc
CALL 0x00155ad0
JMP 0x001bb8a6
LAB_001bb8a6:
JMP 0x001bb909
caseD_5c:
LEA RDI,[RSP + 0x40]
MOV ESI,0x5c
CALL 0x00155ad0
JMP 0x001bb8b9
LAB_001bb8b9:
JMP 0x001bb909
caseD_5d:
MOV RDI,qword ptr [RSP + 0x20]
ADD RDI,0x20
CALL 0x00162850
MOVSX EAX,byte ptr [RAX]
MOVSX ECX,byte ptr [RSP + 0x67]
CMP EAX,ECX
JNZ 0x001bb8e8
MOVSX ESI,byte ptr [RSP + 0x67]
LEA RDI,[RSP + 0x40]
CALL 0x00155ad0
JMP 0x001bb8e6
LAB_001bb8e6:
JMP 0x001bb907
LAB_001bb8e8:
MOV RDI,qword ptr [RSP + 0x20]
ADD RDI,0x20
CALL 0x00162850
MOVSX ESI,byte ptr [RAX]
LEA RDI,[RSP + 0x40]
CALL 0x00155ad0
JMP 0x001bb905
LAB_001bb905:
JMP 0x001bb907
LAB_001bb907:
JMP 0x001bb909
LAB_001bb909:
JMP 0x001bb991
LAB_001bb90e:
MOV RDI,qword ptr [RSP + 0x20]
ADD RDI,0x20
CALL 0x00162850
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x5c
JNZ 0x001bb92b
MOV byte ptr [RSP + 0x3f],0x1
JMP 0x001bb98f
LAB_001bb92b:
MOV RDI,qword ptr [RSP + 0x20]
ADD RDI,0x20
CALL 0x00162850
MOVSX EAX,byte ptr [RAX]
MOVSX ECX,byte ptr [RSP + 0x67]
CMP EAX,ECX
JNZ 0x001bb96e
MOV RDI,qword ptr [RSP + 0x20]
ADD RDI,0x20
CALL 0x00162860
MOV RDI,qword ptr [RSP + 0x10]
LEA RSI,[RSP + 0x40]
CALL 0x001bba90
JMP 0x001bb964
LAB_001bb964:
MOV dword ptr [RSP + 0x28],0x1
JMP 0x001bb9bc
LAB_001bb96e:
MOV RDI,qword ptr [RSP + 0x20]
ADD RDI,0x20
CALL 0x00162850
MOVSX ESI,byte ptr [RAX]
LEA RDI,[RSP + 0x40]
CALL 0x00155ad0
LAB_001bb989:
JMP 0x001bb98b
LAB_001bb98b:
JMP 0x001bb98d
LAB_001bb98d:
JMP 0x001bb98f
LAB_001bb98f:
JMP 0x001bb991
LAB_001bb991:
JMP 0x001bb993
LAB_001bb993:
MOV RDI,qword ptr [RSP + 0x20]
ADD RDI,0x20
CALL 0x00162860
JMP 0x001bb7bc
LAB_001bb9a6:
MOV RDI,qword ptr [RSP + 0x10]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x001bb6f0
MOV dword ptr [RSP + 0x28],0x1
LAB_001bb9bc:
LEA RDI,[RSP + 0x40]
CALL 0x00156290
LAB_001bb9c6:
MOV RAX,qword ptr [RSP + 0x18]
ADD RSP,0x78
RET
|
/* operator()[abi:cxx11](char) const */
string * minja::Parser::parseString[abi:cxx11]()::{lambda(char)#1}::operator()[abi_cxx11_
(char param_1)
{
long lVar1;
bool bVar2;
bool bVar3;
char *pcVar4;
int1 *puVar5;
char in_DL;
long *in_RSI;
int7 in_register_00000039;
string *psVar6;
string local_38 [39];
char local_11;
string *local_8;
psVar6 = (string *)CONCAT71(in_register_00000039,param_1);
lVar1 = *in_RSI;
local_11 = in_DL;
local_8 = psVar6;
bVar2 = __gnu_cxx::operator==
((__normal_iterator *)(lVar1 + 0x20),(__normal_iterator *)(lVar1 + 0x18));
if ((bVar2) ||
(pcVar4 = (char *)__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator*
((__normal_iterator<char_const*,std::__cxx11::string> *)
(lVar1 + 0x20)), *pcVar4 != local_11)) {
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::
unique_ptr<std::default_delete<std::__cxx11::string>,void>((_func_decltype_nullptr *)psVar6);
}
else {
std::__cxx11::string::string(local_38);
bVar2 = false;
__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator++
((__normal_iterator<char_const*,std::__cxx11::string> *)(lVar1 + 0x20));
while (bVar3 = __gnu_cxx::operator!=
((__normal_iterator *)(lVar1 + 0x20),
(__normal_iterator *)(lVar1 + 0x18)), bVar3) {
if (bVar2) {
bVar2 = false;
puVar5 = (int1 *)
__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator*
((__normal_iterator<char_const*,std::__cxx11::string> *)(lVar1 + 0x20));
switch(*puVar5) {
case 0x5c:
std::__cxx11::string::operator+=(local_38,'\\');
break;
default:
pcVar4 = (char *)__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator*
((__normal_iterator<char_const*,std::__cxx11::string> *)
(lVar1 + 0x20));
if (*pcVar4 == local_11) {
std::__cxx11::string::operator+=(local_38,local_11);
}
else {
pcVar4 = (char *)__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::
operator*((__normal_iterator<char_const*,std::__cxx11::string> *)
(lVar1 + 0x20));
std::__cxx11::string::operator+=(local_38,*pcVar4);
}
break;
case 0x62:
std::__cxx11::string::operator+=(local_38,'\b');
break;
case 0x66:
std::__cxx11::string::operator+=(local_38,'\f');
break;
case 0x6e:
/* try { // try from 001bb823 to 001bb988 has its CatchHandler @ 001bb839 */
std::__cxx11::string::operator+=(local_38,'\n');
break;
case 0x72:
std::__cxx11::string::operator+=(local_38,'\r');
break;
case 0x74:
std::__cxx11::string::operator+=(local_38,'\t');
}
}
else {
pcVar4 = (char *)__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator*
((__normal_iterator<char_const*,std::__cxx11::string> *)
(lVar1 + 0x20));
if (*pcVar4 == '\\') {
bVar2 = true;
}
else {
pcVar4 = (char *)__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator*
((__normal_iterator<char_const*,std::__cxx11::string> *)
(lVar1 + 0x20));
if (*pcVar4 == local_11) {
__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator++
((__normal_iterator<char_const*,std::__cxx11::string> *)(lVar1 + 0x20));
std::make_unique<std::__cxx11::string,std::__cxx11::string>(psVar6);
goto LAB_001bb9bc;
}
pcVar4 = (char *)__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator*
((__normal_iterator<char_const*,std::__cxx11::string> *)
(lVar1 + 0x20));
std::__cxx11::string::operator+=(local_38,*pcVar4);
}
}
__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator++
((__normal_iterator<char_const*,std::__cxx11::string> *)(lVar1 + 0x20));
}
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::
unique_ptr<std::default_delete<std::__cxx11::string>,void>((_func_decltype_nullptr *)psVar6);
LAB_001bb9bc:
std::__cxx11::string::~string(local_38);
}
return psVar6;
}
| |
48,243 | my_thread_global_reinit | eloqsql/mysys/my_thr_init.c | void my_thread_global_reinit(void)
{
struct st_my_thread_var *tmp;
DBUG_ASSERT(my_thread_global_init_done);
#ifdef HAVE_PSI_INTERFACE
my_init_mysys_psi_keys();
#endif
my_thread_destroy_common_mutex();
my_thread_init_common_mutex();
my_thread_destroy_internal_mutex();
my_thread_init_internal_mutex();
tmp= my_thread_var;
DBUG_ASSERT(tmp);
my_thread_destory_thr_mutex(tmp);
my_thread_init_thr_mutex(tmp);
} | O0 | c | my_thread_global_reinit:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
jmp 0x821ea
callq 0x7f0a0
callq 0x82090
callq 0x82230
callq 0x82140
callq 0x82300
callq 0x82360
movq %rax, -0x8(%rbp)
jmp 0x8220e
movq -0x8(%rbp), %rdi
callq 0x82380
movq -0x8(%rbp), %rdi
callq 0x823b0
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_thread_global_reinit:
push rbp
mov rbp, rsp
sub rsp, 10h
jmp short $+2
loc_821EA:
call my_init_mysys_psi_keys
call my_thread_destroy_common_mutex
call my_thread_init_common_mutex
call my_thread_destroy_internal_mutex
call my_thread_init_internal_mutex
call _my_thread_var
mov [rbp+var_8], rax
jmp short $+2
loc_8220E:
mov rdi, [rbp+var_8]
call my_thread_destory_thr_mutex
mov rdi, [rbp+var_8]
call my_thread_init_thr_mutex
add rsp, 10h
pop rbp
retn
| long long my_thread_global_reinit(long long a1, const char *a2)
{
long long v3; // [rsp+8h] [rbp-8h]
my_init_mysys_psi_keys();
my_thread_destroy_common_mutex();
my_thread_init_common_mutex();
my_thread_destroy_internal_mutex();
my_thread_init_internal_mutex();
v3 = my_thread_var(a1, a2);
my_thread_destory_thr_mutex(v3);
return my_thread_init_thr_mutex(v3);
}
| my_thread_global_reinit:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
JMP 0x001821ea
LAB_001821ea:
CALL 0x0017f0a0
CALL 0x00182090
CALL 0x00182230
CALL 0x00182140
CALL 0x00182300
CALL 0x00182360
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0018220e
LAB_0018220e:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00182380
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001823b0
ADD RSP,0x10
POP RBP
RET
|
void my_thread_global_reinit(void)
{
int8 uVar1;
my_init_mysys_psi_keys();
my_thread_destroy_common_mutex();
my_thread_init_common_mutex();
my_thread_destroy_internal_mutex();
my_thread_init_internal_mutex();
uVar1 = _my_thread_var();
my_thread_destory_thr_mutex(uVar1);
my_thread_init_thr_mutex(uVar1);
return;
}
| |
48,244 | ftxui::GlyphPrevious(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long) | Andrewchistyakov[P]flashcards_lyc/build_O1/_deps/ftxui-src/src/ftxui/screen/string.cpp | size_t GlyphPrevious(const std::string& input, size_t start) {
while (true) {
if (start == 0) {
return 0;
}
start--;
// Skip the UTF8 continuation bytes.
if ((input[start] & 0b1100'0000) == 0b1000'0000) {
continue;
}
uint32_t codepoint = 0;
size_t end = 0;
const bool eaten = EatCodePoint(input, start, &end, &codepoint);
// Ignore invalid, control characters and combining characters.
if (!eaten || IsControl(codepoint) || IsCombining(codepoint)) {
continue;
}
return start;
}
} | O1 | cpp | ftxui::GlyphPrevious(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rbp
leaq 0x10(%rsp), %r12
leaq 0xc(%rsp), %r13
movq %rbx, %rax
subq $0x1, %rbx
jb 0x3b97c
movb -0x1(%rbp,%rax), %al
andb $-0x40, %al
negb %al
movq %rbx, %rax
jo 0x3b907
movl $0x0, 0xc(%rsp)
movq $0x0, 0x10(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0x3b334
movl %eax, %ecx
movb $0x1, %al
testb %cl, %cl
je 0x3b976
movl 0xc(%rsp), %edi
testl %edi, %edi
je 0x3b976
xorl %ecx, %ecx
cmpl $0xa, %edi
setne %cl
leal -0x7f(%rdi), %edx
xorl %esi, %esi
cmpl $0x21, %edx
setb %sil
cmpl $0x20, %edi
cmovbl %ecx, %esi
testb %sil, %sil
jne 0x3b976
callq 0x3b450
testb %al, %al
cmoveq %rbx, %r15
testb %al, %al
jne 0x3b904
jmp 0x3b97f
xorl %r15d, %r15d
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ZN5ftxui13GlyphPreviousERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, rsi
mov r14, rdi
mov rbp, [rdi]
lea r12, [rsp+48h+var_3C+4]
lea r13, [rsp+48h+var_3C]
loc_3B904:
mov rax, rbx
loc_3B907:
sub rbx, 1
jb short loc_3B97C
mov al, [rbp+rax-1]
and al, 0C0h
neg al
mov rax, rbx
jo short loc_3B907
mov dword ptr [rsp+48h+var_3C], 0
mov [rsp+48h+var_3C+4], 0
mov rdi, r14
mov rsi, rbx
mov rdx, r12
mov rcx, r13
call _ZN5ftxui12EatCodePointERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmPmPj; ftxui::EatCodePoint(std::string const&,ulong,ulong *,uint *)
mov ecx, eax
mov al, 1
test cl, cl
jz short loc_3B976
mov edi, dword ptr [rsp+48h+var_3C]; this
test edi, edi
jz short loc_3B976
xor ecx, ecx
cmp edi, 0Ah
setnz cl
lea edx, [rdi-7Fh]
xor esi, esi
cmp edx, 21h ; '!'
setb sil
cmp edi, 20h ; ' '
cmovb esi, ecx; unsigned int
test sil, sil
jnz short loc_3B976
call _ZN5ftxui11IsCombiningEj; ftxui::IsCombining(uint)
test al, al
cmovz r15, rbx
loc_3B976:
test al, al
jnz short loc_3B904
jmp short loc_3B97F
loc_3B97C:
xor r15d, r15d
loc_3B97F:
mov rax, r15
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| unsigned long long ftxui::GlyphPrevious(long long *a1, unsigned long long a2)
{
unsigned long long v2; // r15
long long v4; // rbp
unsigned long long v5; // rax
bool v7; // of
char v8; // cl
bool IsCombining; // al
bool v10; // si
unsigned int v12[15]; // [rsp+Ch] [rbp-3Ch] BYREF
v4 = *a1;
do
{
v5 = a2;
do
{
if ( a2-- == 0 )
return 0LL;
v7 = __OFSUB__(-(*(_BYTE *)(v4 + v5 - 1) & 0xC0), 1);
v5 = a2;
}
while ( v7 );
v12[0] = 0;
*(_QWORD *)&v12[1] = 0LL;
v8 = ftxui::EatCodePoint(a1, a2, &v12[1], (int *)v12);
IsCombining = 1;
if ( v8 && v12[0] )
{
v10 = v12[0] - 127 < 0x21;
if ( v12[0] < 0x20 )
v10 = v12[0] != 10;
if ( !v10 )
{
IsCombining = ftxui::IsCombining((ftxui *)v12[0]);
if ( !IsCombining )
v2 = a2;
}
}
}
while ( IsCombining );
return v2;
}
| GlyphPrevious:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,RSI
MOV R14,RDI
MOV RBP,qword ptr [RDI]
LEA R12,[RSP + 0x10]
LEA R13,[RSP + 0xc]
LAB_0013b904:
MOV RAX,RBX
LAB_0013b907:
SUB RBX,0x1
JC 0x0013b97c
MOV AL,byte ptr [RBP + RAX*0x1 + -0x1]
AND AL,0xc0
NEG AL
MOV RAX,RBX
JO 0x0013b907
MOV dword ptr [RSP + 0xc],0x0
MOV qword ptr [RSP + 0x10],0x0
MOV RDI,R14
MOV RSI,RBX
MOV RDX,R12
MOV RCX,R13
CALL 0x0013b334
MOV ECX,EAX
MOV AL,0x1
TEST CL,CL
JZ 0x0013b976
MOV EDI,dword ptr [RSP + 0xc]
TEST EDI,EDI
JZ 0x0013b976
XOR ECX,ECX
CMP EDI,0xa
SETNZ CL
LEA EDX,[RDI + -0x7f]
XOR ESI,ESI
CMP EDX,0x21
SETC SIL
CMP EDI,0x20
CMOVC ESI,ECX
TEST SIL,SIL
JNZ 0x0013b976
CALL 0x0013b450
TEST AL,AL
CMOVZ R15,RBX
LAB_0013b976:
TEST AL,AL
JNZ 0x0013b904
JMP 0x0013b97f
LAB_0013b97c:
XOR R15D,R15D
LAB_0013b97f:
MOV RAX,R15
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* ftxui::GlyphPrevious(std::__cxx11::string const&, unsigned long) */
ulong ftxui::GlyphPrevious(string *param_1,ulong param_2)
{
char cVar1;
char cVar2;
ulong unaff_R15;
bool bVar3;
uint local_3c;
ulong local_38;
do {
bVar3 = param_2 == 0;
param_2 = param_2 - 1;
if (bVar3) {
return 0;
}
local_3c = 0;
local_38 = 0;
cVar1 = EatCodePoint(param_1,param_2,&local_38,&local_3c);
cVar2 = '\x01';
if ((cVar1 != '\0') && (local_3c != 0)) {
bVar3 = local_3c - 0x7f < 0x21;
if (local_3c < 0x20) {
bVar3 = local_3c != 10;
}
if ((!bVar3) && (cVar2 = IsCombining(local_3c), cVar2 == '\0')) {
unaff_R15 = param_2;
}
}
} while (cVar2 != '\0');
return unaff_R15;
}
| |
48,245 | type_union_create | tsotchke[P]eshkol/src/core/utils/type_creation.c | Type* type_union_create(Arena* arena, size_t variant_count, Type** variants) {
assert(variant_count == 0 || variants != NULL);
Type* type = arena_alloc(arena, sizeof(Type));
if (!type) return NULL;
type->kind = TYPE_UNION;
type->union_type.variant_count = variant_count;
type->union_type.variants = variants;
return type;
} | O2 | c | type_union_create:
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
sete %al
testq %rdx, %rdx
setne %cl
orb %al, %cl
je 0x157d8
movq %rdx, %rbx
movq %rsi, %r14
pushq $0x28
popq %rsi
callq 0x2fb9
testq %rax, %rax
je 0x157d0
movl $0xb, (%rax)
movq %r14, 0x8(%rax)
movq %rbx, 0x10(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0xa434(%rip), %rdi # 0x1fc13
leaq 0xa275(%rip), %rsi # 0x1fa5b
leaq 0xa44d(%rip), %rcx # 0x1fc3a
movl $0xb4, %edx
callq 0x2180
| type_union_create:
push r14
push rbx
push rax
test rsi, rsi
setz al
test rdx, rdx
setnz cl
or cl, al
jz short loc_157D8
mov rbx, rdx
mov r14, rsi
push 28h ; '('
pop rsi
call arena_alloc
test rax, rax
jz short loc_157D0
mov dword ptr [rax], 0Bh
mov [rax+8], r14
mov [rax+10h], rbx
loc_157D0:
add rsp, 8
pop rbx
pop r14
retn
loc_157D8:
lea rdi, aVariantCount0V; "variant_count == 0 || variants != NULL"
lea rsi, aWorkspaceLlm4b_26; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aTypeTypeUnionC; "Type *type_union_create(Arena *, size_t"...
mov edx, 0B4h
call ___assert_fail
| long long type_union_create(long long a1, long long a2, long long a3)
{
long long result; // rax
if ( a2 != 0 && a3 == 0 )
__assert_fail(
"variant_count == 0 || variants != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/type_creation.c",
180LL,
"Type *type_union_create(Arena *, size_t, Type **)");
result = arena_alloc(a1, 40LL);
if ( result )
{
*(_DWORD *)result = 11;
*(_QWORD *)(result + 8) = a2;
*(_QWORD *)(result + 16) = a3;
}
return result;
}
| type_union_create:
PUSH R14
PUSH RBX
PUSH RAX
TEST RSI,RSI
SETZ AL
TEST RDX,RDX
SETNZ CL
OR CL,AL
JZ 0x001157d8
MOV RBX,RDX
MOV R14,RSI
PUSH 0x28
POP RSI
CALL 0x00102fb9
TEST RAX,RAX
JZ 0x001157d0
MOV dword ptr [RAX],0xb
MOV qword ptr [RAX + 0x8],R14
MOV qword ptr [RAX + 0x10],RBX
LAB_001157d0:
ADD RSP,0x8
POP RBX
POP R14
RET
LAB_001157d8:
LEA RDI,[0x11fc13]
LEA RSI,[0x11fa5b]
LEA RCX,[0x11fc3a]
MOV EDX,0xb4
CALL 0x00102180
|
void type_union_create(int8 param_1,long param_2,long param_3)
{
int4 *puVar1;
if (param_3 != 0 || param_2 == 0) {
puVar1 = (int4 *)arena_alloc(param_1,0x28);
if (puVar1 != (int4 *)0x0) {
*puVar1 = 0xb;
*(long *)(puVar1 + 2) = param_2;
*(long *)(puVar1 + 4) = param_3;
}
return;
}
/* WARNING: Subroutine does not return */
__assert_fail("variant_count == 0 || variants != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/type_creation.c"
,0xb4,"Type *type_union_create(Arena *, size_t, Type **)");
}
| |
48,246 | nglog::LogDestination::~LogDestination() | ng-log[P]ng-log/src/logging.cc | void LogDestination::SetLoggerImpl(base::Logger* logger) {
if (logger_ == logger) {
// Prevent releasing currently held sink on reset
return;
}
if (logger_ && logger_ != &fileobject_) {
// Delete user-specified logger set via SetLogger().
delete logger_;
}
logger_ = logger;
} | O3 | cpp | nglog::LogDestination::~LogDestination():
pushq %rbx
movq %rdi, %rbx
movq 0xc8(%rdi), %rdi
cmpq %rbx, %rdi
je 0xa7de
testq %rdi, %rdi
je 0xa7d7
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, 0xc8(%rbx)
movq %rbx, %rdi
popq %rbx
jmp 0xa7e4
| _ZN5nglog14LogDestinationD2Ev:
push rbx; Alternative name is 'nglog::LogDestination::~LogDestination()'
mov rbx, rdi
mov rdi, [rdi+0C8h]
cmp rdi, rbx
jz short loc_A7DE
test rdi, rdi
jz short loc_A7D7
mov rax, [rdi]
call qword ptr [rax+8]
loc_A7D7:
mov [rbx+0C8h], rbx
loc_A7DE:
mov rdi, rbx; this
pop rbx
jmp short $+2; nglog::`anonymous namespace'::LogFileObject::~LogFileObject()
| void nglog::LogDestination::~LogDestination(nglog::LogDestination *this)
{
nglog::LogDestination *v2; // rdi
v2 = (nglog::LogDestination *)*((_QWORD *)this + 25);
if ( v2 != this )
{
if ( v2 )
(*(void ( **)(nglog::LogDestination *))(*(_QWORD *)v2 + 8LL))(v2);
*((_QWORD *)this + 25) = this;
}
nglog::`anonymous namespace'::LogFileObject::~LogFileObject(this);
}
| ~LogDestination:
PUSH RBX
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0xc8]
CMP RDI,RBX
JZ 0x0010a7de
TEST RDI,RDI
JZ 0x0010a7d7
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
LAB_0010a7d7:
MOV qword ptr [RBX + 0xc8],RBX
LAB_0010a7de:
MOV RDI,RBX
POP RBX
JMP 0x0010a7e4
|
/* nglog::LogDestination::~LogDestination() */
void __thiscall nglog::LogDestination::~LogDestination(LogDestination *this)
{
LogDestination *pLVar1;
pLVar1 = *(LogDestination **)(this + 200);
if (pLVar1 != this) {
if (pLVar1 != (LogDestination *)0x0) {
(**(code **)(*(long *)pLVar1 + 8))();
}
*(LogDestination **)(this + 200) = this;
}
(anonymous_namespace)::LogFileObject::~LogFileObject((LogFileObject *)this);
return;
}
| |
48,247 | find_where_to_split_row | eloqsql/storage/maria/ma_bitmap.c | static uint find_where_to_split_row(MARIA_SHARE *share, MARIA_ROW *row,
uint extents, uint split_size)
{
uint *lengths, *lengths_end;
/*
Ensure we have the minimum required space on head page:
- Header + length of field lengths (row->min_length)
- Number of extents
- One extent
*/
uint row_length= (row->min_length +
size_to_store_key_length(extents) +
ROW_EXTENT_SIZE);
DBUG_ASSERT(row_length <= split_size);
/*
Store first in all_field_lengths the different parts that are written
to the row. This needs to be in same order as in
ma_block_rec.c::write_block_record()
*/
row->null_field_lengths[-3]= extents * ROW_EXTENT_SIZE;
row->null_field_lengths[-2]= share->base.fixed_not_null_fields_length;
row->null_field_lengths[-1]= row->field_lengths_length;
for (lengths= row->null_field_lengths - EXTRA_LENGTH_FIELDS,
lengths_end= (lengths + share->base.fields - share->base.blobs +
EXTRA_LENGTH_FIELDS); lengths < lengths_end; lengths++)
{
if (row_length + *lengths > split_size)
break;
row_length+= *lengths;
}
return row_length;
} | O3 | c | find_where_to_split_row:
pushq %rbp
movq %rsp, %rbp
movl 0x68(%rsi), %eax
xorl %r8d, %r8d
cmpl $0xff, %edx
setae %r8b
leal (%rax,%r8,2), %r8d
addl $0x8, %r8d
leal (,%rdx,8), %eax
subl %edx, %eax
movq 0x58(%rsi), %rdx
movl %eax, -0xc(%rdx)
movl 0x3d0(%rdi), %eax
movq 0x58(%rsi), %rdx
movl %eax, -0x8(%rdx)
movl 0xa8(%rsi), %eax
movq 0x58(%rsi), %rdx
movl %eax, -0x4(%rdx)
movl 0x3c8(%rdi), %r9d
movl 0x3f0(%rdi), %eax
leaq (,%r9,4), %rdx
shlq $0x2, %rax
subq %rax, %rdx
addq $-0xc, %rdx
cmpq $-0x17, %rdx
jl 0x40c90
movq 0x58(%rsi), %rdx
leaq (%rdx,%r9,4), %rsi
subq %rax, %rsi
addq $-0xc, %rdx
movl %r8d, %eax
movl (%rdx), %r8d
addl %eax, %r8d
cmpl %ecx, %r8d
ja 0x40c93
addq $0x4, %rdx
movl %r8d, %eax
cmpq %rsi, %rdx
jb 0x40c74
jmp 0x40c93
movl %r8d, %eax
popq %rbp
retq
| find_where_to_split_row:
push rbp
mov rbp, rsp
mov eax, [rsi+68h]
xor r8d, r8d
cmp edx, 0FFh
setnb r8b
lea r8d, [rax+r8*2]
add r8d, 8
lea eax, ds:0[rdx*8]
sub eax, edx
mov rdx, [rsi+58h]
mov [rdx-0Ch], eax
mov eax, [rdi+3D0h]
mov rdx, [rsi+58h]
mov [rdx-8], eax
mov eax, [rsi+0A8h]
mov rdx, [rsi+58h]
mov [rdx-4], eax
mov r9d, [rdi+3C8h]
mov eax, [rdi+3F0h]
lea rdx, ds:0[r9*4]
shl rax, 2
sub rdx, rax
add rdx, 0FFFFFFFFFFFFFFF4h
cmp rdx, 0FFFFFFFFFFFFFFE9h
jl short loc_40C90
mov rdx, [rsi+58h]
lea rsi, [rdx+r9*4]
sub rsi, rax
add rdx, 0FFFFFFFFFFFFFFF4h
loc_40C74:
mov eax, r8d
mov r8d, [rdx]
add r8d, eax
cmp r8d, ecx
ja short loc_40C93
add rdx, 4
mov eax, r8d
cmp rdx, rsi
jb short loc_40C74
jmp short loc_40C93
loc_40C90:
mov eax, r8d
loc_40C93:
pop rbp
retn
| long long find_where_to_split_row(unsigned int *a1, long long a2, unsigned int a3, unsigned int a4)
{
unsigned int v4; // r8d
long long v5; // r9
long long v6; // rax
long long v7; // rdx
unsigned long long v8; // rsi
_DWORD *v9; // rdx
long long result; // rax
v4 = *(_DWORD *)(a2 + 104) + 2 * (a3 >= 0xFF) + 8;
*(_DWORD *)(*(_QWORD *)(a2 + 88) - 12LL) = 7 * a3;
*(_DWORD *)(*(_QWORD *)(a2 + 88) - 8LL) = a1[244];
*(_DWORD *)(*(_QWORD *)(a2 + 88) - 4LL) = *(_DWORD *)(a2 + 168);
v5 = a1[242];
v6 = 4LL * a1[252];
if ( 4 * v5 - v6 - 12 < -23 )
return v4;
v7 = *(_QWORD *)(a2 + 88);
v8 = v7 + 4 * v5 - v6;
v9 = (_DWORD *)(v7 - 12);
do
{
result = v4;
v4 += *v9;
if ( v4 > a4 )
break;
++v9;
result = v4;
}
while ( (unsigned long long)v9 < v8 );
return result;
}
| find_where_to_split_row:
PUSH RBP
MOV RBP,RSP
MOV EAX,dword ptr [RSI + 0x68]
XOR R8D,R8D
CMP EDX,0xff
SETNC R8B
LEA R8D,[RAX + R8*0x2]
ADD R8D,0x8
LEA EAX,[RDX*0x8]
SUB EAX,EDX
MOV RDX,qword ptr [RSI + 0x58]
MOV dword ptr [RDX + -0xc],EAX
MOV EAX,dword ptr [RDI + 0x3d0]
MOV RDX,qword ptr [RSI + 0x58]
MOV dword ptr [RDX + -0x8],EAX
MOV EAX,dword ptr [RSI + 0xa8]
MOV RDX,qword ptr [RSI + 0x58]
MOV dword ptr [RDX + -0x4],EAX
MOV R9D,dword ptr [RDI + 0x3c8]
MOV EAX,dword ptr [RDI + 0x3f0]
LEA RDX,[R9*0x4]
SHL RAX,0x2
SUB RDX,RAX
ADD RDX,-0xc
CMP RDX,-0x17
JL 0x00140c90
MOV RDX,qword ptr [RSI + 0x58]
LEA RSI,[RDX + R9*0x4]
SUB RSI,RAX
ADD RDX,-0xc
LAB_00140c74:
MOV EAX,R8D
MOV R8D,dword ptr [RDX]
ADD R8D,EAX
CMP R8D,ECX
JA 0x00140c93
ADD RDX,0x4
MOV EAX,R8D
CMP RDX,RSI
JC 0x00140c74
JMP 0x00140c93
LAB_00140c90:
MOV EAX,R8D
LAB_00140c93:
POP RBP
RET
|
uint find_where_to_split_row(long param_1,long param_2,uint param_3,uint param_4)
{
int *piVar1;
uint uVar2;
uint uVar3;
uVar2 = *(int *)(param_2 + 0x68) + (uint)(0xfe < param_3) * 2 + 8;
*(uint *)(*(long *)(param_2 + 0x58) + -0xc) = param_3 * 7;
*(int4 *)(*(long *)(param_2 + 0x58) + -8) = *(int4 *)(param_1 + 0x3d0);
*(int4 *)(*(long *)(param_2 + 0x58) + -4) = *(int4 *)(param_2 + 0xa8);
if (-0x18 < (long)((ulong)*(uint *)(param_1 + 0x3c8) * 4 + (ulong)*(uint *)(param_1 + 0x3f0) * -4
+ -0xc)) {
piVar1 = (int *)(*(long *)(param_2 + 0x58) + -0xc);
uVar3 = uVar2;
do {
uVar2 = *piVar1 + uVar3;
if (param_4 < uVar2) {
return uVar3;
}
piVar1 = piVar1 + 1;
uVar3 = uVar2;
} while (piVar1 < (int *)(*(long *)(param_2 + 0x58) + (ulong)*(uint *)(param_1 + 0x3c8) * 4 +
(ulong)*(uint *)(param_1 + 0x3f0) * -4));
}
return uVar2;
}
| |
48,248 | my_coll_lexem_print_error | eloqsql/strings/ctype-uca.c | static void my_coll_lexem_print_error(MY_COLL_LEXEM *lexem,
char *errstr, size_t errsize,
const char *txt)
{
char tail[30];
size_t len= lexem->end - lexem->prev;
strmake (tail, lexem->prev, (size_t) MY_MIN(len, sizeof(tail)-1));
errstr[errsize-1]= '\0';
my_snprintf(errstr, errsize - 1,
"%s at '%s'", txt[0] ? txt : "Syntax error", tail);
} | O0 | c | my_coll_lexem_print_error:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x38(%rbp)
movq %rsi, -0x40(%rbp)
movq %rdx, -0x48(%rbp)
movq %rcx, -0x50(%rbp)
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x38(%rbp), %rcx
movq 0x18(%rcx), %rcx
subq %rcx, %rax
movq %rax, -0x58(%rbp)
leaq -0x30(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x60(%rbp)
cmpq $0x1d, -0x58(%rbp)
jae 0x83464
movq -0x58(%rbp), %rax
movq %rax, -0x70(%rbp)
jmp 0x8346f
movl $0x1d, %eax
movq %rax, -0x70(%rbp)
jmp 0x8346f
movq -0x60(%rbp), %rsi
movq -0x68(%rbp), %rdi
movq -0x70(%rbp), %rdx
callq 0xabc90
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %rcx
subq $0x1, %rcx
movb $0x0, (%rax,%rcx)
movq -0x40(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x48(%rbp), %rax
subq $0x1, %rax
movq %rax, -0x78(%rbp)
movq -0x50(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x834bd
movq -0x50(%rbp), %rax
movq %rax, -0x88(%rbp)
jmp 0x834cd
leaq 0x2e857(%rip), %rax # 0xb1d1b
movq %rax, -0x88(%rbp)
jmp 0x834cd
movq -0x78(%rbp), %rsi
movq -0x80(%rbp), %rdi
movq -0x88(%rbp), %rcx
leaq 0x2e82d(%rip), %rdx # 0xb1d10
xorl %eax, %eax
leaq -0x30(%rbp), %r8
callq 0xab160
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x83509
addq $0x90, %rsp
popq %rbp
retq
callq 0x26360
nop
| my_coll_lexem_print_error:
push rbp
mov rbp, rsp
sub rsp, 90h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_38], rdi
mov [rbp+var_40], rsi
mov [rbp+var_48], rdx
mov [rbp+var_50], rcx
mov rax, [rbp+var_38]
mov rax, [rax+10h]
mov rcx, [rbp+var_38]
mov rcx, [rcx+18h]
sub rax, rcx
mov [rbp+var_58], rax
lea rax, [rbp+var_30]
mov [rbp+var_68], rax
mov rax, [rbp+var_38]
mov rax, [rax+18h]
mov [rbp+var_60], rax
cmp [rbp+var_58], 1Dh
jnb short loc_83464
mov rax, [rbp+var_58]
mov [rbp+var_70], rax
jmp short loc_8346F
loc_83464:
mov eax, 1Dh
mov [rbp+var_70], rax
jmp short $+2
loc_8346F:
mov rsi, [rbp+var_60]
mov rdi, [rbp+var_68]
mov rdx, [rbp+var_70]
call strmake
mov rax, [rbp+var_40]
mov rcx, [rbp+var_48]
sub rcx, 1
mov byte ptr [rax+rcx], 0
mov rax, [rbp+var_40]
mov [rbp+var_80], rax
mov rax, [rbp+var_48]
sub rax, 1
mov [rbp+var_78], rax
mov rax, [rbp+var_50]
movsx eax, byte ptr [rax]
cmp eax, 0
jz short loc_834BD
mov rax, [rbp+var_50]
mov [rbp+var_88], rax
jmp short loc_834CD
loc_834BD:
lea rax, aSyntaxError; "Syntax error"
mov [rbp+var_88], rax
jmp short $+2
loc_834CD:
mov rsi, [rbp+var_78]
mov rdi, [rbp+var_80]
mov rcx, [rbp+var_88]
lea rdx, aSAtS; "%s at '%s'"
xor eax, eax
lea r8, [rbp+var_30]
call my_snprintf
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_83509
add rsp, 90h
pop rbp
retn
loc_83509:
call ___stack_chk_fail
| unsigned long long my_coll_lexem_print_error(long long a1, long long a2, long long a3, _BYTE *a4)
{
int v4; // r9d
int v6; // [rsp+18h] [rbp-78h]
long long v7; // [rsp+30h] [rbp-60h]
unsigned long long v8; // [rsp+38h] [rbp-58h]
_BYTE v11[40]; // [rsp+60h] [rbp-30h] BYREF
unsigned long long v12; // [rsp+88h] [rbp-8h]
v12 = __readfsqword(0x28u);
v8 = *(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 24);
v7 = *(_QWORD *)(a1 + 24);
if ( v8 >= 0x1D )
strmake(v11, v7, 29LL);
else
strmake(v11, v7, v8);
*(_BYTE *)(a2 + a3 - 1) = 0;
v6 = a3 - 1;
if ( *a4 )
my_snprintf(a2, v6, (unsigned int)"%s at '%s'", (_DWORD)a4, (unsigned int)v11, v4);
else
my_snprintf(a2, v6, (unsigned int)"%s at '%s'", (unsigned int)"Syntax error", (unsigned int)v11, v4);
return __readfsqword(0x28u);
}
| my_coll_lexem_print_error:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x38],RDI
MOV qword ptr [RBP + -0x40],RSI
MOV qword ptr [RBP + -0x48],RDX
MOV qword ptr [RBP + -0x50],RCX
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RCX + 0x18]
SUB RAX,RCX
MOV qword ptr [RBP + -0x58],RAX
LEA RAX,[RBP + -0x30]
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x60],RAX
CMP qword ptr [RBP + -0x58],0x1d
JNC 0x00183464
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RBP + -0x70],RAX
JMP 0x0018346f
LAB_00183464:
MOV EAX,0x1d
MOV qword ptr [RBP + -0x70],RAX
JMP 0x0018346f
LAB_0018346f:
MOV RSI,qword ptr [RBP + -0x60]
MOV RDI,qword ptr [RBP + -0x68]
MOV RDX,qword ptr [RBP + -0x70]
CALL 0x001abc90
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x48]
SUB RCX,0x1
MOV byte ptr [RAX + RCX*0x1],0x0
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x80],RAX
MOV RAX,qword ptr [RBP + -0x48]
SUB RAX,0x1
MOV qword ptr [RBP + -0x78],RAX
MOV RAX,qword ptr [RBP + -0x50]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
JZ 0x001834bd
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x88],RAX
JMP 0x001834cd
LAB_001834bd:
LEA RAX,[0x1b1d1b]
MOV qword ptr [RBP + -0x88],RAX
JMP 0x001834cd
LAB_001834cd:
MOV RSI,qword ptr [RBP + -0x78]
MOV RDI,qword ptr [RBP + -0x80]
MOV RCX,qword ptr [RBP + -0x88]
LEA RDX,[0x1b1d10]
XOR EAX,EAX
LEA R8,[RBP + -0x30]
CALL 0x001ab160
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x00183509
ADD RSP,0x90
POP RBP
RET
LAB_00183509:
CALL 0x00126360
|
void my_coll_lexem_print_error(long param_1,long param_2,long param_3,char *param_4)
{
long in_FS_OFFSET;
char *local_90;
ulong local_78;
int1 local_38 [40];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_78 = *(long *)(param_1 + 0x10) - *(long *)(param_1 + 0x18);
if (0x1c < local_78) {
local_78 = 0x1d;
}
strmake(local_38,*(int8 *)(param_1 + 0x18),local_78);
*(int1 *)(param_2 + param_3 + -1) = 0;
local_90 = param_4;
if (*param_4 == '\0') {
local_90 = "Syntax error";
}
my_snprintf(param_2,param_3 + -1,"%s at \'%s\'",local_90,local_38);
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return;
}
| |
48,249 | my_hash_sort_utf8mb3 | eloqsql/strings/ctype-utf8.c | static void my_hash_sort_utf8mb3(CHARSET_INFO *cs, const uchar *s, size_t slen,
ulong *nr1, ulong *nr2)
{
/*
Remove end space. We have to do this to be able to compare
'A ' and 'A' as identical
*/
const uchar *e= skip_trailing_space(s, slen);
my_hash_sort_utf8mb3_nopad(cs, s, e - s, nr1, nr2);
} | O3 | c | my_hash_sort_utf8mb3:
pushq %rbp
movq %rsp, %rbp
leaq (%rsi,%rdx), %r10
cmpq $0x15, %rdx
jb 0xccf3f
movq %r10, %r9
andq $-0x4, %r9
cmpq %rsi, %r9
jbe 0xccf3f
leaq 0x3(%rsi), %rdx
andq $-0x4, %rdx
movq %r10, %rax
movb -0x1(%r10), %r11b
cmpq %r9, %r10
jbe 0xccf64
leaq -0x1(%rax), %r10
cmpb $0x20, %r11b
je 0xccf27
jmp 0xccf42
movq %r10, %rax
movq %rax, %r9
subq %rsi, %r9
movq %r9, %rdx
cmpq %rsi, %rax
jbe 0xccf5e
cmpb $0x20, -0x1(%rax)
leaq -0x1(%rax), %rax
leaq -0x1(%rdx), %r9
je 0xccf48
popq %rbp
jmp 0xcd149
cmpb $0x20, %r11b
setne %r10b
cmpq %r9, %rdx
setae %r9b
orb %r10b, %r9b
jne 0xccf42
movq %rax, %r9
movq %r9, %rax
cmpq %rdx, %r9
jbe 0xccf42
leaq -0x4(%rax), %r9
cmpl $0x20202020, -0x4(%rax) # imm = 0x20202020
je 0xccf7b
jmp 0xccf42
| my_hash_sort_utf8mb3:
push rbp
mov rbp, rsp
lea r10, [rsi+rdx]
cmp rdx, 15h
jb short loc_CCF3F
mov r9, r10
and r9, 0FFFFFFFFFFFFFFFCh
cmp r9, rsi
jbe short loc_CCF3F
lea rdx, [rsi+3]
and rdx, 0FFFFFFFFFFFFFFFCh
loc_CCF27:
mov rax, r10
mov r11b, [r10-1]
cmp r10, r9
jbe short loc_CCF64
lea r10, [rax-1]
cmp r11b, 20h ; ' '
jz short loc_CCF27
jmp short loc_CCF42
loc_CCF3F:
mov rax, r10
loc_CCF42:
mov r9, rax
sub r9, rsi
loc_CCF48:
mov rdx, r9
cmp rax, rsi
jbe short loc_CCF5E
cmp byte ptr [rax-1], 20h ; ' '
lea rax, [rax-1]
lea r9, [rdx-1]
jz short loc_CCF48
loc_CCF5E:
pop rbp
jmp my_hash_sort_utf8mb3_nopad
loc_CCF64:
cmp r11b, 20h ; ' '
setnz r10b
cmp rdx, r9
setnb r9b
or r9b, r10b
jnz short loc_CCF42
mov r9, rax
loc_CCF7B:
mov rax, r9
cmp r9, rdx
jbe short loc_CCF42
lea r9, [rax-4]
cmp dword ptr [rax-4], 20202020h
jz short loc_CCF7B
jmp short loc_CCF42
| long long my_hash_sort_utf8mb3(long long a1, unsigned long long a2, unsigned long long a3, long long a4, long long a5)
{
unsigned long long v5; // r10
unsigned long long v6; // r9
unsigned long long v7; // rdx
unsigned long long v8; // rax
char v9; // r11
unsigned long long v10; // r9
unsigned long long v11; // rdx
bool v12; // zf
unsigned long long v14; // r9
v5 = a2 + a3;
if ( a3 < 0x15 || (v6 = v5 & 0xFFFFFFFFFFFFFFFCLL, (v5 & 0xFFFFFFFFFFFFFFFCLL) <= a2) )
{
v8 = a2 + a3;
}
else
{
v7 = (a2 + 3) & 0xFFFFFFFFFFFFFFFCLL;
while ( 1 )
{
v8 = v5;
v9 = *(_BYTE *)(v5 - 1);
if ( v5 <= v6 )
break;
--v5;
if ( v9 != 32 )
goto LABEL_8;
}
if ( v9 == 32 && v7 < v6 )
{
v14 = v5;
do
{
v8 = v14;
if ( v14 <= v7 )
break;
v14 -= 4LL;
}
while ( *(_DWORD *)(v8 - 4) == 538976288 );
}
}
LABEL_8:
v10 = v8 - a2;
do
{
v11 = v10;
if ( v8 <= a2 )
break;
v12 = *(_BYTE *)--v8 == 32;
--v10;
}
while ( v12 );
return my_hash_sort_utf8mb3_nopad(a1, a2, v11, a4, a5, v10);
}
| my_hash_sort_utf8mb3:
PUSH RBP
MOV RBP,RSP
LEA R10,[RSI + RDX*0x1]
CMP RDX,0x15
JC 0x001ccf3f
MOV R9,R10
AND R9,-0x4
CMP R9,RSI
JBE 0x001ccf3f
LEA RDX,[RSI + 0x3]
AND RDX,-0x4
LAB_001ccf27:
MOV RAX,R10
MOV R11B,byte ptr [R10 + -0x1]
CMP R10,R9
JBE 0x001ccf64
LEA R10,[RAX + -0x1]
CMP R11B,0x20
JZ 0x001ccf27
JMP 0x001ccf42
LAB_001ccf3f:
MOV RAX,R10
LAB_001ccf42:
MOV R9,RAX
SUB R9,RSI
LAB_001ccf48:
MOV RDX,R9
CMP RAX,RSI
JBE 0x001ccf5e
CMP byte ptr [RAX + -0x1],0x20
LEA RAX,[RAX + -0x1]
LEA R9,[RDX + -0x1]
JZ 0x001ccf48
LAB_001ccf5e:
POP RBP
JMP 0x001cd149
LAB_001ccf64:
CMP R11B,0x20
SETNZ R10B
CMP RDX,R9
SETNC R9B
OR R9B,R10B
JNZ 0x001ccf42
MOV R9,RAX
LAB_001ccf7b:
MOV RAX,R9
CMP R9,RDX
JBE 0x001ccf42
LEA R9,[RAX + -0x4]
CMP dword ptr [RAX + -0x4],0x20202020
JZ 0x001ccf7b
JMP 0x001ccf42
|
void my_hash_sort_utf8mb3(int8 param_1,ulong param_2,ulong param_3)
{
char *pcVar1;
ulong uVar2;
ulong uVar3;
ulong uVar4;
ulong uVar5;
uVar3 = param_2 + param_3;
if ((0x14 < param_3) && (uVar5 = uVar3 & 0xfffffffffffffffc, param_2 < uVar5)) {
uVar4 = param_2 + 3 & 0xfffffffffffffffc;
uVar2 = uVar3;
do {
uVar3 = uVar2;
if (uVar3 <= uVar5) {
uVar2 = uVar3;
if (uVar4 < uVar5 && *(char *)(uVar3 - 1) == ' ') goto LAB_001ccf7b;
break;
}
uVar2 = uVar3 - 1;
} while (*(char *)(uVar3 - 1) == ' ');
}
goto LAB_001ccf48;
while (uVar2 = uVar3 - 4, *(int *)(uVar3 - 4) == 0x20202020) {
LAB_001ccf7b:
uVar3 = uVar2;
if (uVar3 <= uVar4) break;
}
LAB_001ccf48:
do {
if (uVar3 <= param_2) break;
pcVar1 = (char *)(uVar3 - 1);
uVar3 = uVar3 - 1;
} while (*pcVar1 == ' ');
my_hash_sort_utf8mb3_nopad();
return;
}
| |
48,250 | ma_end_block_record | eloqsql/storage/maria/ma_blockrec.c | void _ma_end_block_record(MARIA_HA *info)
{
DBUG_ENTER("_ma_end_block_record");
my_free(info->cur_row.empty_bits);
delete_dynamic(&info->bitmap_blocks);
my_free(info->cur_row.extents);
my_free(info->blob_buff);
/*
The data file is closed, when needed, in ma_once_end_block_record().
The following protects us from doing an extra, not allowed, close
in maria_close()
*/
info->dfile.file= -1;
DBUG_VOID_RETURN;
} | O3 | c | ma_end_block_record:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xc8(%rdi), %rdi
callq 0xa2e9e
leaq 0x2c0(%rbx), %rdi
callq 0x94ce0
movq 0x90(%rbx), %rdi
callq 0xa2e9e
movq 0x3a8(%rbx), %rdi
callq 0xa2e9e
movl $0xffffffff, 0x480(%rbx) # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| _ma_end_block_record:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
mov rdi, [rdi+0C8h]
call my_free
lea rdi, [rbx+2C0h]
call delete_dynamic
mov rdi, [rbx+90h]
call my_free
mov rdi, [rbx+3A8h]
call my_free
mov dword ptr [rbx+480h], 0FFFFFFFFh
add rsp, 8
pop rbx
pop rbp
retn
| long long ma_end_block_record(long long a1)
{
long long result; // rax
my_free(*(_QWORD *)(a1 + 200));
delete_dynamic(a1 + 704);
my_free(*(_QWORD *)(a1 + 144));
result = my_free(*(_QWORD *)(a1 + 936));
*(_DWORD *)(a1 + 1152) = -1;
return result;
}
| _ma_end_block_record:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0xc8]
CALL 0x001a2e9e
LEA RDI,[RBX + 0x2c0]
CALL 0x00194ce0
MOV RDI,qword ptr [RBX + 0x90]
CALL 0x001a2e9e
MOV RDI,qword ptr [RBX + 0x3a8]
CALL 0x001a2e9e
MOV dword ptr [RBX + 0x480],0xffffffff
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void _ma_end_block_record(long param_1)
{
my_free(*(int8 *)(param_1 + 200));
delete_dynamic(param_1 + 0x2c0);
my_free(*(int8 *)(param_1 + 0x90));
my_free(*(int8 *)(param_1 + 0x3a8));
*(int4 *)(param_1 + 0x480) = 0xffffffff;
return;
}
| |
48,251 | 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;
} | O0 | c | my_message_stderr:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
jmp 0x2ed15
movq 0x1a62a4(%rip), %rax # 0x1d4fc0
movq (%rax), %rdi
callq 0x24350
movq -0x18(%rbp), %rax
andq $0x480, %rax # imm = 0x480
cmpq $0x0, %rax
je 0x2ed3b
jmp 0x2ed36
jmp 0x2edd1
movq -0x18(%rbp), %rax
andq $0x4, %rax
cmpq $0x0, %rax
je 0x2ed5d
movq 0x1a6290(%rip), %rax # 0x1d4fe0
movq (%rax), %rsi
movl $0x7, %edi
callq 0x243b0
leaq 0x35e43c(%rip), %rax # 0x38d1a0
cmpq $0x0, (%rax)
je 0x2ed99
leaq 0x35e42f(%rip), %rax # 0x38d1a0
movq (%rax), %rdi
movq 0x1a6265(%rip), %rax # 0x1d4fe0
movq (%rax), %rsi
callq 0x24320
movq 0x1a6256(%rip), %rax # 0x1d4fe0
movq (%rax), %rsi
leaq 0x510a3(%rip), %rdi # 0x7fe37
callq 0x24320
movq -0x10(%rbp), %rdi
movq 0x1a623c(%rip), %rax # 0x1d4fe0
movq (%rax), %rsi
callq 0x24320
movq 0x1a622d(%rip), %rax # 0x1d4fe0
movq (%rax), %rsi
movl $0xa, %edi
callq 0x243b0
movq 0x1a6219(%rip), %rax # 0x1d4fe0
movq (%rax), %rdi
callq 0x24350
jmp 0x2edd1
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| my_message_stderr:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
jmp short $+2
loc_2ED15:
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
mov rax, [rbp+var_18]
and rax, 480h
cmp rax, 0
jz short loc_2ED3B
jmp short $+2
loc_2ED36:
jmp loc_2EDD1
loc_2ED3B:
mov rax, [rbp+var_18]
and rax, 4
cmp rax, 0
jz short loc_2ED5D
mov rax, cs:stderr_ptr
mov rsi, [rax]
mov edi, 7
call _fputc
loc_2ED5D:
lea rax, my_progname
cmp qword ptr [rax], 0
jz short loc_2ED99
lea rax, my_progname
mov rdi, [rax]
mov rax, cs:stderr_ptr
mov rsi, [rax]
call _fputs
mov rax, cs:stderr_ptr
mov rsi, [rax]
lea rdi, aTakesACommaSep+69h; ": "
call _fputs
loc_2ED99:
mov rdi, [rbp+var_10]
mov rax, cs:stderr_ptr
mov rsi, [rax]
call _fputs
mov rax, cs:stderr_ptr
mov rsi, [rax]
mov edi, 0Ah
call _fputc
mov rax, cs:stderr_ptr
mov rdi, [rax]
call _fflush
jmp short $+2
loc_2EDD1:
add rsp, 20h
pop rbp
retn
| long long my_message_stderr(long long a1, long long a2, __int16 a3)
{
long long result; // rax
fflush(stdout);
result = a3 & 0x480;
if ( (a3 & 0x480) == 0 )
{
if ( (a3 & 4) != 0 )
fputc(7LL, stderr);
if ( my_progname )
{
fputs(my_progname, stderr);
fputs(": ", stderr);
}
fputs(a2, stderr);
fputc(10LL, stderr);
return fflush(stderr);
}
return result;
}
| my_message_stderr:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
JMP 0x0012ed15
LAB_0012ed15:
MOV RAX,qword ptr [0x002d4fc0]
MOV RDI,qword ptr [RAX]
CALL 0x00124350
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,0x480
CMP RAX,0x0
JZ 0x0012ed3b
JMP 0x0012ed36
LAB_0012ed36:
JMP 0x0012edd1
LAB_0012ed3b:
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,0x4
CMP RAX,0x0
JZ 0x0012ed5d
MOV RAX,qword ptr [0x002d4fe0]
MOV RSI,qword ptr [RAX]
MOV EDI,0x7
CALL 0x001243b0
LAB_0012ed5d:
LEA RAX,[0x48d1a0]
CMP qword ptr [RAX],0x0
JZ 0x0012ed99
LEA RAX,[0x48d1a0]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [0x002d4fe0]
MOV RSI,qword ptr [RAX]
CALL 0x00124320
MOV RAX,qword ptr [0x002d4fe0]
MOV RSI,qword ptr [RAX]
LEA RDI,[0x17fe37]
CALL 0x00124320
LAB_0012ed99:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [0x002d4fe0]
MOV RSI,qword ptr [RAX]
CALL 0x00124320
MOV RAX,qword ptr [0x002d4fe0]
MOV RSI,qword ptr [RAX]
MOV EDI,0xa
CALL 0x001243b0
MOV RAX,qword ptr [0x002d4fe0]
MOV RDI,qword ptr [RAX]
CALL 0x00124350
JMP 0x0012edd1
LAB_0012edd1:
ADD RSP,0x20
POP RBP
RET
|
void my_message_stderr(int8 param_1,char *param_2,ulong param_3)
{
fflush(*(FILE **)PTR_stdout_002d4fc0);
if ((param_3 & 0x480) == 0) {
if ((param_3 & 4) != 0) {
fputc(7,*(FILE **)PTR_stderr_002d4fe0);
}
if (my_progname != (char *)0x0) {
fputs(my_progname,*(FILE **)PTR_stderr_002d4fe0);
fputs(": ",*(FILE **)PTR_stderr_002d4fe0);
}
fputs(param_2,*(FILE **)PTR_stderr_002d4fe0);
fputc(10,*(FILE **)PTR_stderr_002d4fe0);
fflush(*(FILE **)PTR_stderr_002d4fe0);
}
return;
}
| |
48,252 | mysql_stmt_reset_start | eloqsql/libmariadb/libmariadb/mariadb_async.c | int STDCALL
mysql_stmt_reset_start(my_bool *ret, MYSQL_STMT *stmt)
{
MK_ASYNC_START_BODY(
mysql_stmt_reset,
stmt->mysql,
{
WIN_SET_NONBLOCKING(stmt->mysql)
parms.stmt= stmt;
},
TRUE,
r_my_bool,
/* If stmt->mysql==NULL then we will not block so can call directly. */
if (!stmt->mysql)
{
*ret= mysql_stmt_reset(stmt);
return 0;
})
} | O0 | c | mysql_stmt_reset_start:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x38(%rax)
jne 0x58188
movq -0x18(%rbp), %rdi
callq 0x46b80
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
movl $0x0, -0x4(%rbp)
jmp 0x58296
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
movb $0x1, 0x14(%rax)
movq -0x28(%rbp), %rdi
addq $0x38, %rdi
leaq 0xe2(%rip), %rsi # 0x582a0
leaq -0x30(%rbp), %rdx
callq 0x59b10
movl %eax, -0x1c(%rbp)
movq -0x28(%rbp), %rax
movb $0x0, 0x15(%rax)
movq -0x28(%rbp), %rax
movb $0x0, 0x14(%rax)
cmpl $0x0, -0x1c(%rbp)
jle 0x581f6
movq -0x28(%rbp), %rax
movb $0x1, 0x15(%rax)
movq -0x28(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x58296
cmpl $0x0, -0x1c(%rbp)
jge 0x58282
jmp 0x58202
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rax
movl $0x7d8, 0x90(%rax) # imm = 0x7D8
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rdi
addq $0x297, %rdi # imm = 0x297
leaq 0x28c76(%rip), %rax # 0x80ea0
movq (%rax), %rsi
movl $0x5, %edx
callq 0x14220
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rax
movb $0x0, 0x29c(%rax)
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rdi
addq $0x97, %rdi
leaq 0x28c54(%rip), %rax # 0x80eb0
movq 0x40(%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x14220
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rax
movb $0x0, 0x296(%rax)
movq -0x10(%rbp), %rax
movb $0x1, (%rax)
jmp 0x5828f
movq -0x28(%rbp), %rax
movb 0x8(%rax), %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nop
| mysql_stmt_reset_start:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_18]
cmp qword ptr [rax+38h], 0
jnz short loc_58188
mov rdi, [rbp+var_18]
call mysql_stmt_reset
mov cl, al
mov rax, [rbp+var_10]
mov [rax], cl
mov [rbp+var_4], 0
jmp loc_58296
loc_58188:
mov rax, [rbp+var_18]
mov rax, [rax+38h]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov [rbp+var_28], rax
mov rax, [rbp+var_18]
mov [rbp+var_30], rax
mov rax, [rbp+var_28]
mov byte ptr [rax+14h], 1
mov rdi, [rbp+var_28]
add rdi, 38h ; '8'
lea rsi, mysql_stmt_reset_start_internal
lea rdx, [rbp+var_30]
call my_context_spawn
mov [rbp+var_1C], eax
mov rax, [rbp+var_28]
mov byte ptr [rax+15h], 0
mov rax, [rbp+var_28]
mov byte ptr [rax+14h], 0
cmp [rbp+var_1C], 0
jle short loc_581F6
mov rax, [rbp+var_28]
mov byte ptr [rax+15h], 1
mov rax, [rbp+var_28]
mov eax, [rax]
mov [rbp+var_4], eax
jmp loc_58296
loc_581F6:
cmp [rbp+var_1C], 0
jge loc_58282
jmp short $+2
loc_58202:
mov rax, [rbp+var_18]
mov rax, [rax+38h]
mov dword ptr [rax+90h], 7D8h
mov rax, [rbp+var_18]
mov rdi, [rax+38h]
add rdi, 297h
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
mov rax, [rbp+var_18]
mov rax, [rax+38h]
mov byte ptr [rax+29Ch], 0
mov rax, [rbp+var_18]
mov rdi, [rax+38h]
add rdi, 97h
lea rax, client_errors
mov rsi, [rax+40h]
mov edx, 1FFh
call _strncpy
mov rax, [rbp+var_18]
mov rax, [rax+38h]
mov byte ptr [rax+296h], 0
mov rax, [rbp+var_10]
mov byte ptr [rax], 1
jmp short loc_5828F
loc_58282:
mov rax, [rbp+var_28]
mov cl, [rax+8]
mov rax, [rbp+var_10]
mov [rax], cl
loc_5828F:
mov [rbp+var_4], 0
loc_58296:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| long long mysql_stmt_reset_start(char *a1, long long a2)
{
long long v3; // [rsp+0h] [rbp-30h] BYREF
_BYTE *v4; // [rsp+8h] [rbp-28h]
int v5; // [rsp+14h] [rbp-1Ch]
long long v6; // [rsp+18h] [rbp-18h]
char *v7; // [rsp+20h] [rbp-10h]
v7 = a1;
v6 = a2;
if ( *(_QWORD *)(a2 + 56) )
{
v4 = *(_BYTE **)(*(_QWORD *)(*(_QWORD *)(v6 + 56) + 1152LL) + 40LL);
v3 = v6;
v4[20] = 1;
v5 = my_context_spawn(v4 + 56, mysql_stmt_reset_start_internal, &v3);
v4[21] = 0;
v4[20] = 0;
if ( v5 <= 0 )
{
if ( v5 >= 0 )
{
*v7 = v4[8];
}
else
{
*(_DWORD *)(*(_QWORD *)(v6 + 56) + 144LL) = 2008;
strncpy(*(_QWORD *)(v6 + 56) + 663LL, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(*(_QWORD *)(v6 + 56) + 668LL) = 0;
strncpy(*(_QWORD *)(v6 + 56) + 151LL, client_errors[8], 511LL);
*(_BYTE *)(*(_QWORD *)(v6 + 56) + 662LL) = 0;
*v7 = 1;
}
return 0;
}
else
{
v4[21] = 1;
return *(unsigned int *)v4;
}
}
else
{
*v7 = mysql_stmt_reset(v6);
return 0;
}
}
| mysql_stmt_reset_start:
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]
CMP qword ptr [RAX + 0x38],0x0
JNZ 0x00158188
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00146b80
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00158296
LAB_00158188:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x38]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x14],0x1
MOV RDI,qword ptr [RBP + -0x28]
ADD RDI,0x38
LEA RSI,[0x1582a0]
LEA RDX,[RBP + -0x30]
CALL 0x00159b10
MOV dword ptr [RBP + -0x1c],EAX
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x15],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x14],0x0
CMP dword ptr [RBP + -0x1c],0x0
JLE 0x001581f6
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x15],0x1
MOV RAX,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00158296
LAB_001581f6:
CMP dword ptr [RBP + -0x1c],0x0
JGE 0x00158282
JMP 0x00158202
LAB_00158202:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x38]
MOV dword ptr [RAX + 0x90],0x7d8
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX + 0x38]
ADD RDI,0x297
LEA RAX,[0x180ea0]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00114220
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x38]
MOV byte ptr [RAX + 0x29c],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX + 0x38]
ADD RDI,0x97
LEA RAX,[0x180eb0]
MOV RSI,qword ptr [RAX + 0x40]
MOV EDX,0x1ff
CALL 0x00114220
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x38]
MOV byte ptr [RAX + 0x296],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],0x1
JMP 0x0015828f
LAB_00158282:
MOV RAX,qword ptr [RBP + -0x28]
MOV CL,byte ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
LAB_0015828f:
MOV dword ptr [RBP + -0x4],0x0
LAB_00158296:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4 mysql_stmt_reset_start(int1 *param_1,long param_2)
{
int1 uVar1;
long local_38;
int4 *local_30;
int local_24;
long local_20;
int1 *local_18;
int4 local_c;
local_20 = param_2;
local_18 = param_1;
if (*(long *)(param_2 + 0x38) == 0) {
uVar1 = mysql_stmt_reset(param_2);
*local_18 = uVar1;
local_c = 0;
}
else {
local_30 = *(int4 **)(*(long *)(*(long *)(param_2 + 0x38) + 0x480) + 0x28);
*(int1 *)(local_30 + 5) = 1;
local_38 = param_2;
local_24 = my_context_spawn(local_30 + 0xe,mysql_stmt_reset_start_internal,&local_38);
*(int1 *)((long)local_30 + 0x15) = 0;
*(int1 *)(local_30 + 5) = 0;
if (local_24 < 1) {
if (local_24 < 0) {
*(int4 *)(*(long *)(local_20 + 0x38) + 0x90) = 0x7d8;
strncpy((char *)(*(long *)(local_20 + 0x38) + 0x297),SQLSTATE_UNKNOWN,5);
*(int1 *)(*(long *)(local_20 + 0x38) + 0x29c) = 0;
strncpy((char *)(*(long *)(local_20 + 0x38) + 0x97),PTR_s_Client_run_out_of_memory_00180ef0,
0x1ff);
*(int1 *)(*(long *)(local_20 + 0x38) + 0x296) = 0;
*local_18 = 1;
}
else {
*local_18 = *(int1 *)(local_30 + 2);
}
local_c = 0;
}
else {
*(int1 *)((long)local_30 + 0x15) = 1;
local_c = *local_30;
}
}
return local_c;
}
| |
48,253 | http_get_status | bluesky950520[P]quickjs/quickjs-libc.c | static int http_get_status(const char *buf)
{
const char *p = buf;
while (*p != ' ' && *p != '\0')
p++;
if (*p != ' ')
return 0;
while (*p == ' ')
p++;
return atoi(p);
} | O0 | c | http_get_status:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movzbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x20, %ecx
movb %al, 0xf(%rsp)
je 0x167b8
movq 0x10(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x0, %eax
setne %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x167c2
jmp 0x167d2
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x16793
movq 0x10(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x20, %eax
je 0x167e9
movl $0x0, 0x24(%rsp)
jmp 0x16816
jmp 0x167eb
movq 0x10(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x20, %eax
jne 0x16808
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x167eb
movq 0x10(%rsp), %rdi
callq 0xe880
movl %eax, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nop
| http_get_status:
sub rsp, 28h
mov [rsp+28h+var_10], rdi
mov rax, [rsp+28h+var_10]
mov [rsp+28h+var_18], rax
loc_16793:
mov rax, [rsp+28h+var_18]
movzx ecx, byte ptr [rax]
xor eax, eax
cmp ecx, 20h ; ' '
mov [rsp+28h+var_19], al
jz short loc_167B8
mov rax, [rsp+28h+var_18]
movzx eax, byte ptr [rax]
cmp eax, 0
setnz al
mov [rsp+28h+var_19], al
loc_167B8:
mov al, [rsp+28h+var_19]
test al, 1
jnz short loc_167C2
jmp short loc_167D2
loc_167C2:
mov rax, [rsp+28h+var_18]
add rax, 1
mov [rsp+28h+var_18], rax
jmp short loc_16793
loc_167D2:
mov rax, [rsp+28h+var_18]
movzx eax, byte ptr [rax]
cmp eax, 20h ; ' '
jz short loc_167E9
mov [rsp+28h+var_4], 0
jmp short loc_16816
loc_167E9:
jmp short $+2
loc_167EB:
mov rax, [rsp+28h+var_18]
movzx eax, byte ptr [rax]
cmp eax, 20h ; ' '
jnz short loc_16808
mov rax, [rsp+28h+var_18]
add rax, 1
mov [rsp+28h+var_18], rax
jmp short loc_167EB
loc_16808:
mov rdi, [rsp+28h+var_18]
call _atoi
mov [rsp+28h+var_4], eax
loc_16816:
mov eax, [rsp+28h+var_4]
add rsp, 28h
retn
| long long http_get_status(_BYTE *a1)
{
bool v2; // [rsp+Fh] [rbp-19h]
while ( 1 )
{
v2 = 0;
if ( *a1 != 32 )
v2 = *a1 != 0;
if ( !v2 )
break;
++a1;
}
if ( *a1 == 32 )
{
while ( *a1 == 32 )
++a1;
return (unsigned int)atoi(a1);
}
else
{
return 0;
}
}
| http_get_status:
SUB RSP,0x28
MOV qword ptr [RSP + 0x18],RDI
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x10],RAX
LAB_00116793:
MOV RAX,qword ptr [RSP + 0x10]
MOVZX ECX,byte ptr [RAX]
XOR EAX,EAX
CMP ECX,0x20
MOV byte ptr [RSP + 0xf],AL
JZ 0x001167b8
MOV RAX,qword ptr [RSP + 0x10]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RSP + 0xf],AL
LAB_001167b8:
MOV AL,byte ptr [RSP + 0xf]
TEST AL,0x1
JNZ 0x001167c2
JMP 0x001167d2
LAB_001167c2:
MOV RAX,qword ptr [RSP + 0x10]
ADD RAX,0x1
MOV qword ptr [RSP + 0x10],RAX
JMP 0x00116793
LAB_001167d2:
MOV RAX,qword ptr [RSP + 0x10]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x20
JZ 0x001167e9
MOV dword ptr [RSP + 0x24],0x0
JMP 0x00116816
LAB_001167e9:
JMP 0x001167eb
LAB_001167eb:
MOV RAX,qword ptr [RSP + 0x10]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x20
JNZ 0x00116808
MOV RAX,qword ptr [RSP + 0x10]
ADD RAX,0x1
MOV qword ptr [RSP + 0x10],RAX
JMP 0x001167eb
LAB_00116808:
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x0010e880
MOV dword ptr [RSP + 0x24],EAX
LAB_00116816:
MOV EAX,dword ptr [RSP + 0x24]
ADD RSP,0x28
RET
|
int http_get_status(char *param_1)
{
bool bVar1;
char *local_18;
int local_4;
local_18 = param_1;
while( true ) {
bVar1 = false;
if (*local_18 != ' ') {
bVar1 = *local_18 != '\0';
}
if (!bVar1) break;
local_18 = local_18 + 1;
}
if (*local_18 == ' ') {
for (; *local_18 == ' '; local_18 = local_18 + 1) {
}
local_4 = atoi(local_18);
}
else {
local_4 = 0;
}
return local_4;
}
| |
48,254 | ma_hashtbl_insert | eloqsql/libmariadb/libmariadb/ma_hashtbl.c | my_bool ma_hashtbl_insert(MA_HASHTBL *info,const uchar *record)
{
int flag;
uint halfbuff,hash_nr,first_index,idx;
uchar *ptr_to_rec= NULL,*ptr_to_rec2= NULL;
MA_HASHTBL_LINK *data,*empty,*gpos= NULL,*gpos2 = NULL,*pos;
LINT_INIT(gpos); LINT_INIT(gpos2);
LINT_INIT(ptr_to_rec); LINT_INIT(ptr_to_rec2);
flag=0;
if (!(empty=(MA_HASHTBL_LINK*) ma_alloc_dynamic(&info->array)))
return(TRUE); /* No more memory */
info->current_record= NO_RECORD;
data=dynamic_element(&info->array,0,MA_HASHTBL_LINK*);
halfbuff= info->blength >> 1;
idx=first_index=info->records-halfbuff;
if (idx != info->records) /* If some records */
{
do
{
pos=data+idx;
hash_nr=rec_hashnr(info,pos->data);
if (flag == 0) /* First loop; Check if ok */
if (hash_mask(hash_nr,info->blength,info->records) != first_index)
break;
if (!(hash_nr & halfbuff))
{ /* Key will not move */
if (!(flag & LOWFIND))
{
if (flag & HIGHFIND)
{
flag=LOWFIND | HIGHFIND;
/* key shall be moved to the current empty position */
gpos=empty;
ptr_to_rec=pos->data;
empty=pos; /* This place is now free */
}
else
{
flag=LOWFIND | LOWUSED; /* key isn't changed */
gpos=pos;
ptr_to_rec=pos->data;
}
}
else
{
if (!(flag & LOWUSED))
{
/* Change link of previous LOW-key */
gpos->data=ptr_to_rec;
gpos->next=(uint) (pos-data);
flag= (flag & HIGHFIND) | (LOWFIND | LOWUSED);
}
gpos=pos;
ptr_to_rec=pos->data;
}
}
else
{ /* key will be moved */
if (!(flag & HIGHFIND))
{
flag= (flag & LOWFIND) | HIGHFIND;
/* key shall be moved to the last (empty) position */
gpos2 = empty; empty=pos;
ptr_to_rec2=pos->data;
}
else
{
if (!(flag & HIGHUSED))
{
/* Change link of previous hash-key and save */
gpos2->data=ptr_to_rec2;
gpos2->next=(uint) (pos-data);
flag= (flag & LOWFIND) | (HIGHFIND | HIGHUSED);
}
gpos2=pos;
ptr_to_rec2=pos->data;
}
}
}
while ((idx=pos->next) != NO_RECORD);
if ((flag & (LOWFIND | LOWUSED)) == LOWFIND)
{
gpos->data=ptr_to_rec;
gpos->next=NO_RECORD;
}
if ((flag & (HIGHFIND | HIGHUSED)) == HIGHFIND)
{
gpos2->data=ptr_to_rec2;
gpos2->next=NO_RECORD;
}
}
/* Check if we are at the empty position */
idx=hash_mask(rec_hashnr(info,record),info->blength,info->records+1);
pos=data+idx;
if (pos == empty)
{
pos->data=(uchar*) record;
pos->next=NO_RECORD;
}
else
{
/* Check if more records in same hash-nr family */
empty[0]=pos[0];
gpos=data+hash_rec_mask(info,pos,info->blength,info->records+1);
if (pos == gpos)
{
pos->data=(uchar*) record;
pos->next=(uint) (empty - data);
}
else
{
pos->data=(uchar*) record;
pos->next=NO_RECORD;
movelink(data,(uint) (pos-data),(uint) (gpos-data),(uint) (empty-data));
}
}
if (++info->records == info->blength)
info->blength+= info->blength;
return(0);
} | O3 | c | ma_hashtbl_insert:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %r14
movq %rdi, %rbx
addq $0x18, %rdi
callq 0x36682
testq %rax, %rax
je 0x3781b
movq %rax, %r13
movl $0xffffffff, 0x10(%rbx) # imm = 0xFFFFFFFF
movq 0x18(%rbx), %rcx
movl 0xc(%rbx), %edx
cmpl $0x2, %edx
movq %rbx, -0x70(%rbp)
movq %rcx, -0x68(%rbp)
movq %r14, -0x40(%rbp)
jb 0x3782a
movl 0x8(%rbx), %ebx
shrl %edx
subl %edx, %ebx
xorl %r12d, %r12d
movl %ebx, -0x74(%rbp)
movq $0x0, -0x50(%rbp)
movq $0x0, -0x60(%rbp)
movq $0x0, -0x48(%rbp)
movq $0x0, -0x58(%rbp)
movl %edx, %r14d
movq %r13, -0x30(%rbp)
movl %ebx, %r15d
shlq $0x4, %r15
movq 0x8(%rcx,%r15), %rdi
movq -0x70(%rbp), %r13
movq 0x30(%r13), %rax
testq %rax, %rax
je 0x376d6
leaq -0x34(%rbp), %rsi
xorl %edx, %edx
callq *%rax
movq %rax, %rdi
movl -0x34(%rbp), %esi
jmp 0x376e4
movl 0x4(%r13), %esi
movl %esi, -0x34(%rbp)
movl (%r13), %eax
addq %rax, %rdi
callq *0x40(%r13)
testl %r12d, %r12d
jne 0x3770c
movl 0xc(%r13), %ecx
leal -0x1(%rcx), %edx
andl %eax, %edx
shrl %ecx
decl %ecx
andl %eax, %ecx
cmpl 0x8(%r13), %edx
cmovbl %edx, %ecx
cmpl -0x74(%rbp), %ecx
jne 0x37822
movq -0x68(%rbp), %rcx
addq %rcx, %r15
movl %r14d, %edx
testl %r14d, %eax
je 0x37741
testb $0x4, %r12b
jne 0x37776
andl $0x1, %r12d
orl $0x4, %r12d
movq 0x8(%r15), %rax
movq %rax, -0x60(%rbp)
movq %r15, %r13
movq -0x30(%rbp), %rax
movq %rax, -0x58(%rbp)
jmp 0x377d0
testb $0x1, %r12b
jne 0x377a4
andl $0x4, %r12d
movl %r12d, %eax
shrl %eax
addl $0x3, %eax
testl %r12d, %r12d
movq 0x8(%r15), %rsi
movq %rsi, -0x50(%rbp)
movq %r15, %r13
movq -0x30(%rbp), %rsi
cmoveq %rsi, %r13
cmoveq %r15, %rsi
movl %eax, %r12d
movq %rsi, -0x48(%rbp)
jmp 0x377d0
testb $0x8, %r12b
jne 0x37792
movq -0x60(%rbp), %rax
movq -0x58(%rbp), %rsi
movq %rax, 0x8(%rsi)
movl %ebx, (%rsi)
andl $0x1, %r12d
orl $0xc, %r12d
movq 0x8(%r15), %rax
movq %rax, -0x60(%rbp)
movq -0x30(%rbp), %r13
movq %r15, -0x58(%rbp)
jmp 0x377d0
testb $0x2, %r12b
jne 0x377c0
movq -0x50(%rbp), %rax
movq -0x48(%rbp), %rsi
movq %rax, 0x8(%rsi)
movl %ebx, (%rsi)
andl $0x4, %r12d
orl $0x3, %r12d
movq 0x8(%r15), %rax
movq %rax, -0x50(%rbp)
movq -0x30(%rbp), %r13
movq %r15, -0x48(%rbp)
movl (%r15), %ebx
cmpl $-0x1, %ebx
jne 0x376a6
movl %r12d, %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x377f9
movq -0x50(%rbp), %rax
movq -0x48(%rbp), %rcx
movq %rax, 0x8(%rcx)
movl $0xffffffff, (%rcx) # imm = 0xFFFFFFFF
andl $0xc, %r12d
cmpl $0x4, %r12d
movq -0x40(%rbp), %r14
jne 0x3782a
movq -0x60(%rbp), %rax
movq -0x58(%rbp), %rcx
movq %rax, 0x8(%rcx)
movl $0xffffffff, (%rcx) # imm = 0xFFFFFFFF
jmp 0x3782a
movb $0x1, %al
jmp 0x3790f
movq -0x30(%rbp), %r13
movq -0x40(%rbp), %r14
movq -0x70(%rbp), %r15
movq 0x30(%r15), %rax
testq %rax, %rax
je 0x3784e
leaq -0x78(%rbp), %r12
movq %r14, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq *%rax
movq %rax, %rdi
movl (%r12), %esi
jmp 0x3785b
movl 0x4(%r15), %esi
movl %esi, -0x78(%rbp)
movl (%r15), %edi
addq %r14, %rdi
callq *0x40(%r15)
movl 0x8(%r15), %ecx
movl 0xc(%r15), %ebx
incl %ecx
leal -0x1(%rbx), %edx
andl %eax, %edx
shrl %ebx
decl %ebx
andl %eax, %ebx
cmpl %ecx, %edx
cmovbl %edx, %ebx
movq %rbx, %r14
shlq $0x4, %r14
addq -0x68(%rbp), %r14
cmpq %r13, %r14
je 0x378c1
movups (%r14), %xmm0
movups %xmm0, (%r13)
movl 0x8(%r15), %ecx
movl 0xc(%r15), %edx
incl %ecx
movq 0x8(%r14), %rsi
movq %r15, %rdi
callq 0x3753c
movq -0x40(%rbp), %rcx
movq %rcx, 0x8(%r14)
cmpl %eax, %ebx
jne 0x378d2
subq -0x68(%rbp), %r13
shrq $0x4, %r13
movl %r13d, (%r14)
jmp 0x378f7
movq -0x40(%rbp), %rax
movq %rax, 0x8(%r14)
movl $0xffffffff, (%r14) # imm = 0xFFFFFFFF
jmp 0x378f7
movl $0xffffffff, (%r14) # imm = 0xFFFFFFFF
movq -0x68(%rbp), %rdx
subq %rdx, %r13
shrq $0x4, %r13
movl %eax, %ecx
shlq $0x4, %rcx
movl (%rdx,%rcx), %eax
cmpl %ebx, %eax
jne 0x378e4
addq %rcx, %rdx
movl %r13d, (%rdx)
movq -0x70(%rbp), %rcx
movl 0x8(%rcx), %eax
incl %eax
movl %eax, 0x8(%rcx)
cmpl 0xc(%rcx), %eax
jne 0x3790d
addl %eax, %eax
movl %eax, 0xc(%rcx)
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| ma_hashtbl_insert:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov r14, rsi
mov rbx, rdi
add rdi, 18h
call ma_alloc_dynamic
test rax, rax
jz loc_3781B
mov r13, rax
mov dword ptr [rbx+10h], 0FFFFFFFFh
mov rcx, [rbx+18h]
mov edx, [rbx+0Ch]
cmp edx, 2
mov [rbp+var_70], rbx
mov [rbp+var_68], rcx
mov [rbp+var_40], r14
jb loc_3782A
mov ebx, [rbx+8]
shr edx, 1
sub ebx, edx
xor r12d, r12d
mov [rbp+var_74], ebx
mov [rbp+var_50], 0
mov [rbp+var_60], 0
mov [rbp+var_48], 0
mov [rbp+var_58], 0
loc_376A6:
mov r14d, edx
mov [rbp+var_30], r13
mov r15d, ebx
shl r15, 4
mov rdi, [rcx+r15+8]
mov r13, [rbp+var_70]
mov rax, [r13+30h]
test rax, rax
jz short loc_376D6
lea rsi, [rbp+var_34]
xor edx, edx
call rax
mov rdi, rax
mov esi, [rbp+var_34]
jmp short loc_376E4
loc_376D6:
mov esi, [r13+4]
mov [rbp+var_34], esi
mov eax, [r13+0]
add rdi, rax
loc_376E4:
call qword ptr [r13+40h]
test r12d, r12d
jnz short loc_3770C
mov ecx, [r13+0Ch]
lea edx, [rcx-1]
and edx, eax
shr ecx, 1
dec ecx
and ecx, eax
cmp edx, [r13+8]
cmovb ecx, edx
cmp ecx, [rbp+var_74]
jnz loc_37822
loc_3770C:
mov rcx, [rbp+var_68]
add r15, rcx
mov edx, r14d
test eax, r14d
jz short loc_37741
test r12b, 4
jnz short loc_37776
and r12d, 1
or r12d, 4
mov rax, [r15+8]
mov [rbp+var_60], rax
mov r13, r15
mov rax, [rbp+var_30]
mov [rbp+var_58], rax
jmp loc_377D0
loc_37741:
test r12b, 1
jnz short loc_377A4
and r12d, 4
mov eax, r12d
shr eax, 1
add eax, 3
test r12d, r12d
mov rsi, [r15+8]
mov [rbp+var_50], rsi
mov r13, r15
mov rsi, [rbp+var_30]
cmovz r13, rsi
cmovz rsi, r15
mov r12d, eax
mov [rbp+var_48], rsi
jmp short loc_377D0
loc_37776:
test r12b, 8
jnz short loc_37792
mov rax, [rbp+var_60]
mov rsi, [rbp+var_58]
mov [rsi+8], rax
mov [rsi], ebx
and r12d, 1
or r12d, 0Ch
loc_37792:
mov rax, [r15+8]
mov [rbp+var_60], rax
mov r13, [rbp+var_30]
mov [rbp+var_58], r15
jmp short loc_377D0
loc_377A4:
test r12b, 2
jnz short loc_377C0
mov rax, [rbp+var_50]
mov rsi, [rbp+var_48]
mov [rsi+8], rax
mov [rsi], ebx
and r12d, 4
or r12d, 3
loc_377C0:
mov rax, [r15+8]
mov [rbp+var_50], rax
mov r13, [rbp+var_30]
mov [rbp+var_48], r15
loc_377D0:
mov ebx, [r15]
cmp ebx, 0FFFFFFFFh
jnz loc_376A6
mov eax, r12d
and eax, 3
cmp eax, 1
jnz short loc_377F9
mov rax, [rbp+var_50]
mov rcx, [rbp+var_48]
mov [rcx+8], rax
mov dword ptr [rcx], 0FFFFFFFFh
loc_377F9:
and r12d, 0Ch
cmp r12d, 4
mov r14, [rbp+var_40]
jnz short loc_3782A
mov rax, [rbp+var_60]
mov rcx, [rbp+var_58]
mov [rcx+8], rax
mov dword ptr [rcx], 0FFFFFFFFh
jmp short loc_3782A
loc_3781B:
mov al, 1
jmp loc_3790F
loc_37822:
mov r13, [rbp+var_30]
mov r14, [rbp+var_40]
loc_3782A:
mov r15, [rbp+var_70]
mov rax, [r15+30h]
test rax, rax
jz short loc_3784E
lea r12, [rbp+var_78]
mov rdi, r14
mov rsi, r12
xor edx, edx
call rax
mov rdi, rax
mov esi, [r12]
jmp short loc_3785B
loc_3784E:
mov esi, [r15+4]
mov [rbp+var_78], esi
mov edi, [r15]
add rdi, r14
loc_3785B:
call qword ptr [r15+40h]
mov ecx, [r15+8]
mov ebx, [r15+0Ch]
inc ecx
lea edx, [rbx-1]
and edx, eax
shr ebx, 1
dec ebx
and ebx, eax
cmp edx, ecx
cmovb ebx, edx
mov r14, rbx
shl r14, 4
add r14, [rbp+var_68]
cmp r14, r13
jz short loc_378C1
movups xmm0, xmmword ptr [r14]
movups xmmword ptr [r13+0], xmm0
mov ecx, [r15+8]
mov edx, [r15+0Ch]
inc ecx
mov rsi, [r14+8]
mov rdi, r15
call hash_rec_mask
mov rcx, [rbp+var_40]
mov [r14+8], rcx
cmp ebx, eax
jnz short loc_378D2
sub r13, [rbp+var_68]
shr r13, 4
mov [r14], r13d
jmp short loc_378F7
loc_378C1:
mov rax, [rbp+var_40]
mov [r14+8], rax
mov dword ptr [r14], 0FFFFFFFFh
jmp short loc_378F7
loc_378D2:
mov dword ptr [r14], 0FFFFFFFFh
mov rdx, [rbp+var_68]
sub r13, rdx
shr r13, 4
loc_378E4:
mov ecx, eax
shl rcx, 4
mov eax, [rdx+rcx]
cmp eax, ebx
jnz short loc_378E4
add rdx, rcx
mov [rdx], r13d
loc_378F7:
mov rcx, [rbp+var_70]
mov eax, [rcx+8]
inc eax
mov [rcx+8], eax
cmp eax, [rcx+0Ch]
jnz short loc_3790D
add eax, eax
mov [rcx+0Ch], eax
loc_3790D:
xor eax, eax
loc_3790F:
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long ma_hashtbl_insert(unsigned int *a1, long long a2)
{
long long v2; // r14
long long v3; // rax
_OWORD *v4; // r13
long long v5; // rcx
unsigned int v6; // edx
unsigned int v7; // edx
unsigned int v8; // ebx
int v9; // r12d
unsigned int v10; // r14d
long long v11; // r15
long long v12; // rdi
long long ( *v13)(long long, unsigned int *, _QWORD); // rax
long long v14; // rdi
long long v15; // rsi
int v16; // eax
unsigned int v17; // ecx
unsigned int v18; // edx
int v19; // ecx
long long v20; // r15
unsigned int v21; // r12d
unsigned int *v22; // rsi
unsigned int *v23; // rsi
unsigned int *v24; // rsi
unsigned int *v25; // rcx
unsigned int *v26; // rcx
long long ( **v28)(long long, long long); // r15
long long ( *v29)(long long, unsigned int *, _QWORD); // rax
long long v30; // rdi
long long v31; // rsi
int v32; // eax
unsigned int v33; // ebx
unsigned int v34; // edx
long long v35; // rbx
long long v36; // r14
unsigned int v37; // eax
unsigned long long v38; // r13
long long v39; // rcx
unsigned int *v40; // rcx
int v41; // eax
unsigned int v42; // [rsp+8h] [rbp-78h] BYREF
unsigned int v43; // [rsp+Ch] [rbp-74h]
unsigned int *v44; // [rsp+10h] [rbp-70h]
long long v45; // [rsp+18h] [rbp-68h]
long long v46; // [rsp+20h] [rbp-60h]
unsigned int *v47; // [rsp+28h] [rbp-58h]
long long v48; // [rsp+30h] [rbp-50h]
unsigned int *v49; // [rsp+38h] [rbp-48h]
long long v50; // [rsp+40h] [rbp-40h]
unsigned int v51; // [rsp+4Ch] [rbp-34h] BYREF
_OWORD *v52; // [rsp+50h] [rbp-30h]
v2 = a2;
v3 = ma_alloc_dynamic((long long)(a1 + 6));
if ( !v3 )
return 1LL;
v4 = (_OWORD *)v3;
a1[4] = -1;
v5 = *((_QWORD *)a1 + 3);
v6 = a1[3];
v44 = a1;
v45 = v5;
v50 = a2;
if ( v6 >= 2 )
{
v7 = v6 >> 1;
v8 = a1[2] - v7;
v9 = 0;
v43 = v8;
v48 = 0LL;
v46 = 0LL;
v49 = 0LL;
v47 = 0LL;
do
{
v10 = v7;
v52 = v4;
v11 = 16LL * v8;
v12 = *(_QWORD *)(v5 + v11 + 8);
v13 = (long long ( *)(long long, unsigned int *, _QWORD))*((_QWORD *)v44 + 6);
if ( v13 )
{
v14 = v13(v12, &v51, 0LL);
v15 = v51;
}
else
{
v15 = v44[1];
v51 = v44[1];
v14 = *v44 + v12;
}
v16 = (*((long long ( **)(long long, long long))v44 + 8))(v14, v15);
if ( !v9 )
{
v17 = v44[3];
v18 = v16 & (v17 - 1);
v19 = v16 & ((v17 >> 1) - 1);
if ( v18 < v44[2] )
v19 = v18;
if ( v19 != v43 )
{
v4 = v52;
v2 = v50;
goto LABEL_31;
}
}
v5 = v45;
v20 = v45 + v11;
v7 = v10;
if ( (v10 & v16) != 0 )
{
if ( (v9 & 4) != 0 )
{
if ( (v9 & 8) == 0 )
{
v23 = v47;
*((_QWORD *)v47 + 1) = v46;
*v23 = v8;
v9 = v9 & 1 | 0xC;
}
v46 = *(_QWORD *)(v20 + 8);
v4 = v52;
v47 = (unsigned int *)v20;
}
else
{
v9 = v9 & 1 | 4;
v46 = *(_QWORD *)(v20 + 8);
v4 = (_OWORD *)v20;
v47 = (unsigned int *)v52;
}
}
else if ( (v9 & 1) != 0 )
{
if ( (v9 & 2) == 0 )
{
v24 = v49;
*((_QWORD *)v49 + 1) = v48;
*v24 = v8;
v9 = v9 & 4 | 3;
}
v48 = *(_QWORD *)(v20 + 8);
v4 = v52;
v49 = (unsigned int *)v20;
}
else
{
v21 = v9 & 4;
v48 = *(_QWORD *)(v20 + 8);
v4 = (_OWORD *)v20;
v22 = (unsigned int *)v52;
if ( !v21 )
{
v4 = v52;
v22 = (unsigned int *)v20;
}
v9 = (v21 >> 1) + 3;
v49 = v22;
}
v8 = *(_DWORD *)v20;
}
while ( *(_DWORD *)v20 != -1 );
if ( (v9 & 3) == 1 )
{
v25 = v49;
*((_QWORD *)v49 + 1) = v48;
*v25 = -1;
}
v2 = v50;
if ( (v9 & 0xC) == 4 )
{
v26 = v47;
*((_QWORD *)v47 + 1) = v46;
*v26 = -1;
}
}
LABEL_31:
v28 = (long long ( **)(long long, long long))v44;
v29 = (long long ( *)(long long, unsigned int *, _QWORD))*((_QWORD *)v44 + 6);
if ( v29 )
{
v30 = v29(v2, &v42, 0LL);
v31 = v42;
}
else
{
v31 = v44[1];
v42 = v44[1];
v30 = v2 + *v44;
}
v32 = v28[8](v30, v31);
v33 = *((_DWORD *)v28 + 3);
v34 = v32 & (v33 - 1);
v35 = v32 & ((v33 >> 1) - 1);
if ( v34 < *((_DWORD *)v28 + 2) + 1 )
v35 = v34;
v36 = v45 + 16 * v35;
if ( (_OWORD *)v36 == v4 )
{
*(_QWORD *)(v36 + 8) = v50;
*(_DWORD *)v36 = -1;
}
else
{
*v4 = *(_OWORD *)v36;
v37 = hash_rec_mask((unsigned int *)v28, *(_QWORD *)(v36 + 8), *((_DWORD *)v28 + 3), *((_DWORD *)v28 + 2) + 1);
*(_QWORD *)(v36 + 8) = v50;
if ( (_DWORD)v35 == v37 )
{
*(_DWORD *)v36 = ((unsigned long long)v4 - v45) >> 4;
}
else
{
*(_DWORD *)v36 = -1;
v38 = ((unsigned long long)v4 - v45) >> 4;
do
{
v39 = 16LL * v37;
v37 = *(_DWORD *)(v45 + v39);
}
while ( v37 != (_DWORD)v35 );
*(_DWORD *)(v39 + v45) = v38;
}
}
v40 = v44;
v41 = v44[2] + 1;
v44[2] = v41;
if ( v41 == v40[3] )
v40[3] = 2 * v41;
return 0LL;
}
| ma_hashtbl_insert:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV R14,RSI
MOV RBX,RDI
ADD RDI,0x18
CALL 0x00136682
TEST RAX,RAX
JZ 0x0013781b
MOV R13,RAX
MOV dword ptr [RBX + 0x10],0xffffffff
MOV RCX,qword ptr [RBX + 0x18]
MOV EDX,dword ptr [RBX + 0xc]
CMP EDX,0x2
MOV qword ptr [RBP + -0x70],RBX
MOV qword ptr [RBP + -0x68],RCX
MOV qword ptr [RBP + -0x40],R14
JC 0x0013782a
MOV EBX,dword ptr [RBX + 0x8]
SHR EDX,0x1
SUB EBX,EDX
XOR R12D,R12D
MOV dword ptr [RBP + -0x74],EBX
MOV qword ptr [RBP + -0x50],0x0
MOV qword ptr [RBP + -0x60],0x0
MOV qword ptr [RBP + -0x48],0x0
MOV qword ptr [RBP + -0x58],0x0
LAB_001376a6:
MOV R14D,EDX
MOV qword ptr [RBP + -0x30],R13
MOV R15D,EBX
SHL R15,0x4
MOV RDI,qword ptr [RCX + R15*0x1 + 0x8]
MOV R13,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [R13 + 0x30]
TEST RAX,RAX
JZ 0x001376d6
LEA RSI,[RBP + -0x34]
XOR EDX,EDX
CALL RAX
MOV RDI,RAX
MOV ESI,dword ptr [RBP + -0x34]
JMP 0x001376e4
LAB_001376d6:
MOV ESI,dword ptr [R13 + 0x4]
MOV dword ptr [RBP + -0x34],ESI
MOV EAX,dword ptr [R13]
ADD RDI,RAX
LAB_001376e4:
CALL qword ptr [R13 + 0x40]
TEST R12D,R12D
JNZ 0x0013770c
MOV ECX,dword ptr [R13 + 0xc]
LEA EDX,[RCX + -0x1]
AND EDX,EAX
SHR ECX,0x1
DEC ECX
AND ECX,EAX
CMP EDX,dword ptr [R13 + 0x8]
CMOVC ECX,EDX
CMP ECX,dword ptr [RBP + -0x74]
JNZ 0x00137822
LAB_0013770c:
MOV RCX,qword ptr [RBP + -0x68]
ADD R15,RCX
MOV EDX,R14D
TEST EAX,R14D
JZ 0x00137741
TEST R12B,0x4
JNZ 0x00137776
AND R12D,0x1
OR R12D,0x4
MOV RAX,qword ptr [R15 + 0x8]
MOV qword ptr [RBP + -0x60],RAX
MOV R13,R15
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x58],RAX
JMP 0x001377d0
LAB_00137741:
TEST R12B,0x1
JNZ 0x001377a4
AND R12D,0x4
MOV EAX,R12D
SHR EAX,0x1
ADD EAX,0x3
TEST R12D,R12D
MOV RSI,qword ptr [R15 + 0x8]
MOV qword ptr [RBP + -0x50],RSI
MOV R13,R15
MOV RSI,qword ptr [RBP + -0x30]
CMOVZ R13,RSI
CMOVZ RSI,R15
MOV R12D,EAX
MOV qword ptr [RBP + -0x48],RSI
JMP 0x001377d0
LAB_00137776:
TEST R12B,0x8
JNZ 0x00137792
MOV RAX,qword ptr [RBP + -0x60]
MOV RSI,qword ptr [RBP + -0x58]
MOV qword ptr [RSI + 0x8],RAX
MOV dword ptr [RSI],EBX
AND R12D,0x1
OR R12D,0xc
LAB_00137792:
MOV RAX,qword ptr [R15 + 0x8]
MOV qword ptr [RBP + -0x60],RAX
MOV R13,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x58],R15
JMP 0x001377d0
LAB_001377a4:
TEST R12B,0x2
JNZ 0x001377c0
MOV RAX,qword ptr [RBP + -0x50]
MOV RSI,qword ptr [RBP + -0x48]
MOV qword ptr [RSI + 0x8],RAX
MOV dword ptr [RSI],EBX
AND R12D,0x4
OR R12D,0x3
LAB_001377c0:
MOV RAX,qword ptr [R15 + 0x8]
MOV qword ptr [RBP + -0x50],RAX
MOV R13,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x48],R15
LAB_001377d0:
MOV EBX,dword ptr [R15]
CMP EBX,-0x1
JNZ 0x001376a6
MOV EAX,R12D
AND EAX,0x3
CMP EAX,0x1
JNZ 0x001377f9
MOV RAX,qword ptr [RBP + -0x50]
MOV RCX,qword ptr [RBP + -0x48]
MOV qword ptr [RCX + 0x8],RAX
MOV dword ptr [RCX],0xffffffff
LAB_001377f9:
AND R12D,0xc
CMP R12D,0x4
MOV R14,qword ptr [RBP + -0x40]
JNZ 0x0013782a
MOV RAX,qword ptr [RBP + -0x60]
MOV RCX,qword ptr [RBP + -0x58]
MOV qword ptr [RCX + 0x8],RAX
MOV dword ptr [RCX],0xffffffff
JMP 0x0013782a
LAB_0013781b:
MOV AL,0x1
JMP 0x0013790f
LAB_00137822:
MOV R13,qword ptr [RBP + -0x30]
MOV R14,qword ptr [RBP + -0x40]
LAB_0013782a:
MOV R15,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [R15 + 0x30]
TEST RAX,RAX
JZ 0x0013784e
LEA R12,[RBP + -0x78]
MOV RDI,R14
MOV RSI,R12
XOR EDX,EDX
CALL RAX
MOV RDI,RAX
MOV ESI,dword ptr [R12]
JMP 0x0013785b
LAB_0013784e:
MOV ESI,dword ptr [R15 + 0x4]
MOV dword ptr [RBP + -0x78],ESI
MOV EDI,dword ptr [R15]
ADD RDI,R14
LAB_0013785b:
CALL qword ptr [R15 + 0x40]
MOV ECX,dword ptr [R15 + 0x8]
MOV EBX,dword ptr [R15 + 0xc]
INC ECX
LEA EDX,[RBX + -0x1]
AND EDX,EAX
SHR EBX,0x1
DEC EBX
AND EBX,EAX
CMP EDX,ECX
CMOVC EBX,EDX
MOV R14,RBX
SHL R14,0x4
ADD R14,qword ptr [RBP + -0x68]
CMP R14,R13
JZ 0x001378c1
MOVUPS XMM0,xmmword ptr [R14]
MOVUPS xmmword ptr [R13],XMM0
MOV ECX,dword ptr [R15 + 0x8]
MOV EDX,dword ptr [R15 + 0xc]
INC ECX
MOV RSI,qword ptr [R14 + 0x8]
MOV RDI,R15
CALL 0x0013753c
MOV RCX,qword ptr [RBP + -0x40]
MOV qword ptr [R14 + 0x8],RCX
CMP EBX,EAX
JNZ 0x001378d2
SUB R13,qword ptr [RBP + -0x68]
SHR R13,0x4
MOV dword ptr [R14],R13D
JMP 0x001378f7
LAB_001378c1:
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [R14 + 0x8],RAX
MOV dword ptr [R14],0xffffffff
JMP 0x001378f7
LAB_001378d2:
MOV dword ptr [R14],0xffffffff
MOV RDX,qword ptr [RBP + -0x68]
SUB R13,RDX
SHR R13,0x4
LAB_001378e4:
MOV ECX,EAX
SHL RCX,0x4
MOV EAX,dword ptr [RDX + RCX*0x1]
CMP EAX,EBX
JNZ 0x001378e4
ADD RDX,RCX
MOV dword ptr [RDX],R13D
LAB_001378f7:
MOV RCX,qword ptr [RBP + -0x70]
MOV EAX,dword ptr [RCX + 0x8]
INC EAX
MOV dword ptr [RCX + 0x8],EAX
CMP EAX,dword ptr [RCX + 0xc]
JNZ 0x0013790d
ADD EAX,EAX
MOV dword ptr [RCX + 0xc],EAX
LAB_0013790d:
XOR EAX,EAX
LAB_0013790f:
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 ma_hashtbl_insert(uint *param_1,long param_2)
{
uint uVar1;
uint uVar2;
uint *puVar3;
long lVar4;
int8 uVar5;
ulong uVar6;
uint uVar7;
uint uVar8;
uint uVar9;
uint uVar10;
uint *puVar11;
uint *puVar12;
uint local_80;
uint local_7c;
uint *local_78;
long local_70;
int8 local_68;
uint *local_60;
int8 local_58;
uint *local_50;
long local_48;
uint local_3c;
uint *local_38;
puVar3 = (uint *)ma_alloc_dynamic(param_1 + 6);
if (puVar3 == (uint *)0x0) {
uVar5 = 1;
}
else {
param_1[4] = 0xffffffff;
local_70 = *(long *)(param_1 + 6);
local_78 = param_1;
local_48 = param_2;
if (1 < param_1[3]) {
uVar7 = param_1[3] >> 1;
uVar9 = param_1[2] - uVar7;
uVar10 = 0;
local_58 = 0;
local_68 = 0;
local_50 = (uint *)0x0;
local_60 = (uint *)0x0;
local_7c = uVar9;
do {
puVar12 = local_78;
lVar4 = *(long *)(local_70 + 8 + (ulong)uVar9 * 0x10);
local_38 = puVar3;
if (*(code **)(local_78 + 0xc) == (code *)0x0) {
local_3c = local_78[1];
lVar4 = lVar4 + (ulong)*local_78;
}
else {
lVar4 = (**(code **)(local_78 + 0xc))(lVar4,&local_3c,0);
}
uVar2 = (**(code **)(puVar12 + 0x10))(lVar4,local_3c);
if (uVar10 == 0) {
uVar8 = puVar12[3] - 1 & uVar2;
uVar1 = (puVar12[3] >> 1) - 1 & uVar2;
if (uVar8 < puVar12[2]) {
uVar1 = uVar8;
}
puVar3 = local_38;
if (uVar1 != local_7c) goto LAB_0013782a;
}
puVar12 = (uint *)((ulong)uVar9 * 0x10 + local_70);
puVar3 = puVar12;
if ((uVar2 & uVar7) == 0) {
if ((uVar10 & 1) == 0) {
uVar9 = uVar10 & 4;
uVar10 = (uVar9 >> 1) + 3;
local_58 = *(int8 *)(puVar12 + 2);
local_50 = local_38;
if (uVar9 == 0) {
puVar3 = local_38;
local_50 = puVar12;
}
}
else {
if ((uVar10 & 2) == 0) {
*(int8 *)(local_50 + 2) = local_58;
*local_50 = uVar9;
uVar10 = uVar10 & 4 | 3;
}
local_58 = *(int8 *)(puVar12 + 2);
puVar3 = local_38;
local_50 = puVar12;
}
}
else if ((uVar10 & 4) == 0) {
uVar10 = uVar10 & 1 | 4;
local_68 = *(int8 *)(puVar12 + 2);
local_60 = local_38;
}
else {
if ((uVar10 & 8) == 0) {
*(int8 *)(local_60 + 2) = local_68;
*local_60 = uVar9;
uVar10 = uVar10 & 1 | 0xc;
}
local_68 = *(int8 *)(puVar12 + 2);
puVar3 = local_38;
local_60 = puVar12;
}
uVar9 = *puVar12;
} while (uVar9 != 0xffffffff);
if ((uVar10 & 3) == 1) {
*(int8 *)(local_50 + 2) = local_58;
*local_50 = 0xffffffff;
}
if ((uVar10 & 0xc) == 4) {
*(int8 *)(local_60 + 2) = local_68;
*local_60 = 0xffffffff;
}
}
LAB_0013782a:
puVar12 = local_78;
if (*(code **)(local_78 + 0xc) == (code *)0x0) {
local_80 = local_78[1];
lVar4 = (ulong)*local_78 + local_48;
}
else {
lVar4 = (**(code **)(local_78 + 0xc))(local_48,&local_80,0);
}
uVar9 = (**(code **)(puVar12 + 0x10))(lVar4,local_80);
uVar10 = puVar12[3] - 1 & uVar9;
uVar9 = (puVar12[3] >> 1) - 1 & uVar9;
if (uVar10 < puVar12[2] + 1) {
uVar9 = uVar10;
}
puVar11 = (uint *)((ulong)uVar9 * 0x10 + local_70);
if (puVar11 == puVar3) {
*(long *)(puVar11 + 2) = local_48;
*puVar11 = 0xffffffff;
}
else {
uVar10 = puVar11[1];
uVar7 = puVar11[2];
uVar2 = puVar11[3];
*puVar3 = *puVar11;
puVar3[1] = uVar10;
puVar3[2] = uVar7;
puVar3[3] = uVar2;
uVar10 = hash_rec_mask(puVar12,*(int8 *)(puVar11 + 2),puVar12[3],puVar12[2] + 1);
*(long *)(puVar11 + 2) = local_48;
if (uVar9 == uVar10) {
*puVar11 = (uint)((ulong)((long)puVar3 - local_70) >> 4);
}
else {
*puVar11 = 0xffffffff;
do {
uVar6 = (ulong)uVar10;
uVar10 = *(uint *)(local_70 + uVar6 * 0x10);
} while (uVar10 != uVar9);
*(int *)(local_70 + uVar6 * 0x10) = (int)((ulong)((long)puVar3 - local_70) >> 4);
}
}
uVar9 = local_78[2] + 1;
local_78[2] = uVar9;
if (uVar9 == local_78[3]) {
local_78[3] = uVar9 * 2;
}
uVar5 = 0;
}
return uVar5;
}
| |
48,255 | ma_state_info_read_dsk | eloqsql/storage/maria/ma_open.c | uint _ma_state_info_read_dsk(File file __attribute__((unused)),
MARIA_STATE_INFO *state __attribute__((unused)))
{
#ifdef MARIA_EXTERNAL_LOCKING
uchar buff[MARIA_STATE_INFO_SIZE + MARIA_STATE_EXTRA_SIZE];
/* trick to detect transactional tables */
DBUG_ASSERT(state->create_rename_lsn == LSN_IMPOSSIBLE);
if (!maria_single_user)
{
if (mysql_file_pread(file, buff, state->state_length, 0L, MYF(MY_NABP)))
return 1;
_ma_state_info_read(buff, state);
}
#endif
return 0;
} | O3 | c | ma_state_info_read_dsk:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
popq %rbp
retq
| _ma_state_info_read_dsk:
push rbp
mov rbp, rsp
xor eax, eax
pop rbp
retn
| long long ma_state_info_read_dsk()
{
return 0LL;
}
| _ma_state_info_read_dsk:
PUSH RBP
MOV RBP,RSP
XOR EAX,EAX
POP RBP
RET
|
int8 _ma_state_info_read_dsk(void)
{
return 0;
}
| |
48,256 | getlong | pnggroup[P]pngcheck/pngcheck.c | ulg getlong(FILE *fp, const char *fname, const char *where)
{
ulg res = 0;
int j;
for (j = 0; j < 4; ++j) {
int c;
if ((c = fgetc(fp)) == EOF) {
printf("%s EOF while reading %s\n", verbose? ":":fname, where);
set_err(kCriticalError);
return 0;
}
res <<= 8;
res |= c & 0xff;
}
return res;
} | O1 | c | getlong:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl $0x4, %r12d
xorl %r13d, %r13d
movq %r15, %rdi
callq 0x2100
movl %eax, %ebp
cmpl $-0x1, %eax
je 0x10d06
shlq $0x8, %r13
movzbl %bpl, %eax
orq %rax, %r13
jmp 0x10d40
cmpl $0x0, 0xa503(%rip) # 0x1b210
leaq 0x6d16(%rip), %rsi # 0x17a2a
cmoveq %r14, %rsi
leaq 0x1f77(%rip), %rdi # 0x12c96
movq %rbx, %rdx
xorl %eax, %eax
callq 0x20e0
movl 0xa511(%rip), %eax # 0x1b240
cmpl $0x6, %eax
movl $0x5, %ecx
cmovll %ecx, %eax
movl %eax, 0xa500(%rip) # 0x1b240
cmpl $-0x1, %ebp
je 0x10d4c
decl %r12d
jne 0x10cea
jmp 0x10d4f
xorl %r13d, %r13d
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| getlong:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdx
mov r14, rsi
mov r15, rdi
mov r12d, 4
xor r13d, r13d
loc_10CEA:
mov rdi, r15
call _fgetc
mov ebp, eax
cmp eax, 0FFFFFFFFh
jz short loc_10D06
shl r13, 8
movzx eax, bpl
or r13, rax
jmp short loc_10D40
loc_10D06:
cmp cs:verbose, 0
lea rsi, aChangeSyncIdLi+25h; ":"
cmovz rsi, r14
lea rdi, aSEofWhileReadi_1; "%s EOF while reading %s\n"
mov rdx, rbx
xor eax, eax
call _printf
mov eax, cs:global_error
cmp eax, 6
mov ecx, 5
cmovl eax, ecx
mov cs:global_error, eax
loc_10D40:
cmp ebp, 0FFFFFFFFh
jz short loc_10D4C
dec r12d
jnz short loc_10CEA
jmp short loc_10D4F
loc_10D4C:
xor r13d, r13d
loc_10D4F:
mov rax, r13
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| unsigned long long getlong(long long a1, const char *a2, const char *a3)
{
int v5; // r12d
unsigned long long v6; // r13
int v7; // ebp
const char *v8; // rsi
int v9; // eax
v5 = 4;
v6 = 0LL;
while ( 1 )
{
v7 = fgetc(a1);
if ( v7 == -1 )
{
v8 = ":";
if ( !verbose )
v8 = a2;
printf("%s EOF while reading %s\n", v8, a3);
v9 = global_error;
if ( global_error < 6 )
v9 = 5;
global_error = v9;
}
else
{
v6 = (unsigned __int8)v7 | (v6 << 8);
}
if ( v7 == -1 )
break;
if ( !--v5 )
return v6;
}
return 0LL;
}
| getlong:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
MOV R12D,0x4
XOR R13D,R13D
LAB_00110cea:
MOV RDI,R15
CALL 0x00102100
MOV EBP,EAX
CMP EAX,-0x1
JZ 0x00110d06
SHL R13,0x8
MOVZX EAX,BPL
OR R13,RAX
JMP 0x00110d40
LAB_00110d06:
CMP dword ptr [0x0011b210],0x0
LEA RSI,[0x117a2a]
CMOVZ RSI,R14
LEA RDI,[0x112c96]
MOV RDX,RBX
XOR EAX,EAX
CALL 0x001020e0
MOV EAX,dword ptr [0x0011b240]
CMP EAX,0x6
MOV ECX,0x5
CMOVL EAX,ECX
MOV dword ptr [0x0011b240],EAX
LAB_00110d40:
CMP EBP,-0x1
JZ 0x00110d4c
DEC R12D
JNZ 0x00110cea
JMP 0x00110d4f
LAB_00110d4c:
XOR R13D,R13D
LAB_00110d4f:
MOV RAX,R13
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong getlong(FILE *param_1,char *param_2,int8 param_3)
{
uint uVar1;
char *pcVar2;
int iVar3;
ulong uVar4;
iVar3 = 4;
uVar4 = 0;
while( true ) {
uVar1 = fgetc(param_1);
if (uVar1 == 0xffffffff) {
pcVar2 = ":";
if (verbose == 0) {
pcVar2 = param_2;
}
printf("%s EOF while reading %s\n",pcVar2,param_3);
if (global_error < 6) {
global_error = 5;
}
}
else {
uVar4 = uVar4 << 8 | (ulong)(uVar1 & 0xff);
}
if (uVar1 == 0xffffffff) break;
iVar3 = iVar3 + -1;
if (iVar3 == 0) {
return uVar4;
}
}
return 0;
}
| |
48,257 | getlong | pnggroup[P]pngcheck/pngcheck.c | ulg getlong(FILE *fp, const char *fname, const char *where)
{
ulg res = 0;
int j;
for (j = 0; j < 4; ++j) {
int c;
if ((c = fgetc(fp)) == EOF) {
printf("%s EOF while reading %s\n", verbose? ":":fname, where);
set_err(kCriticalError);
return 0;
}
res <<= 8;
res |= c & 0xff;
}
return res;
} | O3 | c | getlong:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movl $0x4, %ebp
xorl %ebx, %ebx
movq %r12, %rdi
callq 0x2100
cmpl $-0x1, %eax
je 0x11920
shlq $0x8, %rbx
movzbl %al, %eax
orq %rax, %rbx
decl %ebp
jne 0x11903
jmp 0x1195c
cmpl $0x0, 0xa8e9(%rip) # 0x1c210
leaq 0x7026(%rip), %rsi # 0x18954
cmoveq %r15, %rsi
leaq 0x235d(%rip), %rdi # 0x13c96
xorl %ebx, %ebx
movq %r14, %rdx
xorl %eax, %eax
callq 0x20e0
movl 0xa8f5(%rip), %eax # 0x1c240
cmpl $0x6, %eax
movl $0x5, %ecx
cmovgel %eax, %ecx
movl %ecx, 0xa8e4(%rip) # 0x1c240
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| getlong:
push rbp
push r15
push r14
push r12
push rbx
mov r14, rdx
mov r15, rsi
mov r12, rdi
mov ebp, 4
xor ebx, ebx
loc_11903:
mov rdi, r12
call _fgetc
cmp eax, 0FFFFFFFFh
jz short loc_11920
shl rbx, 8
movzx eax, al
or rbx, rax
dec ebp
jnz short loc_11903
jmp short loc_1195C
loc_11920:
cmp cs:verbose, 0
lea rsi, aChangeSyncIdLi+25h; ":"
cmovz rsi, r15
lea rdi, aSEofWhileReadi_1; "%s EOF while reading %s\n"
xor ebx, ebx
mov rdx, r14
xor eax, eax
call _printf
mov eax, cs:global_error
cmp eax, 6
mov ecx, 5
cmovge ecx, eax
mov cs:global_error, ecx
loc_1195C:
mov rax, rbx
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| unsigned long long getlong(long long a1, const char *a2, const char *a3)
{
int v5; // ebp
unsigned long long v6; // rbx
int v7; // eax
const char *v8; // rsi
int v9; // ecx
v5 = 4;
v6 = 0LL;
while ( 1 )
{
v7 = fgetc(a1);
if ( v7 == -1 )
break;
v6 = (unsigned __int8)v7 | (v6 << 8);
if ( !--v5 )
return v6;
}
v8 = ":";
if ( !verbose )
v8 = a2;
v6 = 0LL;
printf("%s EOF while reading %s\n", v8, a3);
v9 = 5;
if ( global_error >= 6 )
v9 = global_error;
global_error = v9;
return v6;
}
| getlong:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R14,RDX
MOV R15,RSI
MOV R12,RDI
MOV EBP,0x4
XOR EBX,EBX
LAB_00111903:
MOV RDI,R12
CALL 0x00102100
CMP EAX,-0x1
JZ 0x00111920
SHL RBX,0x8
MOVZX EAX,AL
OR RBX,RAX
DEC EBP
JNZ 0x00111903
JMP 0x0011195c
LAB_00111920:
CMP dword ptr [0x0011c210],0x0
LEA RSI,[0x118954]
CMOVZ RSI,R15
LEA RDI,[0x113c96]
XOR EBX,EBX
MOV RDX,R14
XOR EAX,EAX
CALL 0x001020e0
MOV EAX,dword ptr [0x0011c240]
CMP EAX,0x6
MOV ECX,0x5
CMOVGE ECX,EAX
MOV dword ptr [0x0011c240],ECX
LAB_0011195c:
MOV RAX,RBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
ulong getlong(FILE *param_1,char *param_2,int8 param_3)
{
uint uVar1;
ulong uVar2;
int iVar3;
char *pcVar4;
iVar3 = 4;
uVar2 = 0;
while (uVar1 = fgetc(param_1), uVar1 != 0xffffffff) {
uVar2 = uVar2 << 8 | (ulong)(uVar1 & 0xff);
iVar3 = iVar3 + -1;
if (iVar3 == 0) {
return uVar2;
}
}
pcVar4 = ":";
if (verbose == 0) {
pcVar4 = param_2;
}
printf("%s EOF while reading %s\n",pcVar4,param_3);
if (global_error < 6) {
global_error = 5;
return 0;
}
return 0;
}
| |
48,258 | ha_federated::write_row(unsigned char const*) | eloqsql/storage/federated/ha_federated.cc | int ha_federated::write_row(const uchar *buf)
{
char values_buffer[FEDERATED_QUERY_BUFFER_SIZE];
char insert_field_value_buffer[STRING_BUFFER_USUAL_SIZE];
Field **field;
uint tmp_length;
int error= 0;
bool use_bulk_insert;
bool auto_increment_update_required= (table->next_number_field != NULL);
/* The string containing the values to be added to the insert */
String values_string(values_buffer, sizeof(values_buffer), &my_charset_bin);
/* The actual value of the field, to be added to the values_string */
String insert_field_value_string(insert_field_value_buffer,
sizeof(insert_field_value_buffer),
&my_charset_bin);
MY_BITMAP *old_map= dbug_tmp_use_all_columns(table, &table->read_set);
DBUG_ENTER("ha_federated::write_row");
values_string.length(0);
insert_field_value_string.length(0);
/*
start both our field and field values strings
We must disable multi-row insert for "INSERT...ON DUPLICATE KEY UPDATE"
Ignore duplicates is always true when insert_dup_update is true.
When replace_duplicates == TRUE, we can safely enable multi-row insert.
When performing multi-row insert, we only collect the columns values for
the row. The start of the statement is only created when the first
row is copied in to the bulk_insert string.
*/
if (!(use_bulk_insert= bulk_insert.str &&
(!insert_dup_update || replace_duplicates)))
append_stmt_insert(&values_string);
values_string.append(STRING_WITH_LEN(" ("));
tmp_length= values_string.length();
/*
loop through the field pointer array, add any fields to both the values
list and the fields list that is part of the write set
*/
for (field= table->field; *field; field++)
{
if (bitmap_is_set(table->write_set, (*field)->field_index))
{
if ((*field)->is_null())
values_string.append(STRING_WITH_LEN(" NULL "));
else
{
bool needs_quote= (*field)->str_needs_quotes();
(*field)->val_str(&insert_field_value_string);
if (needs_quote)
values_string.append(value_quote_char);
insert_field_value_string.print(&values_string);
if (needs_quote)
values_string.append(value_quote_char);
insert_field_value_string.length(0);
}
/* append commas between both fields and fieldnames */
/*
unfortunately, we can't use the logic if *(fields + 1) to
make the following appends conditional as we don't know if the
next field is in the write set
*/
values_string.append(STRING_WITH_LEN(", "));
}
}
dbug_tmp_restore_column_map(&table->read_set, old_map);
/*
if there were no fields, we don't want to add a closing paren
AND, we don't want to chop off the last char '('
insert will be "INSERT INTO t1 VALUES ();"
*/
if (values_string.length() > tmp_length)
{
/* chops off trailing comma */
values_string.length(values_string.length() - sizeof_trailing_comma);
}
/* we always want to append this, even if there aren't any fields */
values_string.append(STRING_WITH_LEN(") "));
if (use_bulk_insert)
{
/*
Send the current bulk insert out if appending the current row would
cause the statement to overflow the packet size, otherwise set
auto_increment_update_required to FALSE as no query was executed.
*/
if (bulk_insert.length + values_string.length() + bulk_padding >
mysql->net.max_packet_size && bulk_insert.length)
{
error= real_query(bulk_insert.str, bulk_insert.length);
bulk_insert.length= 0;
}
else
auto_increment_update_required= FALSE;
if (bulk_insert.length == 0)
{
char insert_buffer[FEDERATED_QUERY_BUFFER_SIZE];
String insert_string(insert_buffer, sizeof(insert_buffer),
&my_charset_bin);
insert_string.length(0);
append_stmt_insert(&insert_string);
dynstr_append_mem(&bulk_insert, insert_string.ptr(),
insert_string.length());
}
else
dynstr_append_mem(&bulk_insert, ",", 1);
dynstr_append_mem(&bulk_insert, values_string.ptr(),
values_string.length());
}
else
{
error= real_query(values_string.ptr(), values_string.length());
}
if (error)
{
DBUG_RETURN(stash_remote_error());
}
/*
If the table we've just written a record to contains an auto_increment
field, then store the last_insert_id() value from the foreign server
*/
if (auto_increment_update_required)
{
update_auto_increment();
/* mysql_insert() uses this for protocol return value */
table->next_number_field->store(stats.auto_increment_value, 1);
}
DBUG_RETURN(0);
} | O3 | cpp | ha_federated::write_row(unsigned char const*):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3e8, %rsp # imm = 0x3E8
movq %rdi, %r15
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq 0x10(%rdi), %rax
cmpq $0x0, 0xc8(%rax)
setne %al
movl %eax, -0x3a4(%rbp)
movq 0x7276(%rip), %rdx # 0x10f88
leaq -0x3c0(%rbp), %rcx
movq %rdx, -0x8(%rcx)
leaq -0x1c0(%rbp), %rax
movq %rax, (%rcx)
xorl %ebx, %ebx
movl %ebx, 0x10(%rcx)
movw %bx, 0x14(%rcx)
movabsq $0x19000000000, %rax # imm = 0x19000000000
movq %rax, 0x8(%rcx)
leaq -0x3e8(%rbp), %r13
movq %rdx, -0x8(%r13)
leaq -0x210(%rbp), %rax
movq %rax, (%r13)
movl %ebx, 0x10(%r13)
movw %bx, 0x14(%r13)
movabsq $0x5000000000, %rax # imm = 0x5000000000
movq %rax, 0x8(%r13)
cmpq $0x0, 0x720(%rdi)
je 0x9d8c
movb $0x1, %bl
cmpb $0x1, 0x71e(%r15)
jne 0x9d9b
movb 0x71d(%r15), %bl
testb %bl, %bl
jne 0x9d9b
leaq -0x3c8(%rbp), %rsi
movq %r15, %rdi
callq 0x8050
leaq 0x330c(%rip), %rsi # 0xd0ae
leaq -0x3c8(%rbp), %rdi
movl $0x2, %edx
callq 0x80f0
movq 0x10(%r15), %rax
movq 0xb0(%rax), %r14
movq (%r14), %rdi
testq %rdi, %rdi
je 0x9f59
movl %ebx, -0x3d0(%rbp)
leaq -0x3c8(%rbp), %r12
movl 0x10(%r12), %eax
movl %eax, -0x3cc(%rbp)
addq $0x8, %r14
leaq 0x3336(%rip), %rbx # 0xd123
movq 0x10(%r15), %rax
movq 0x1f8(%rax), %rax
movzwl 0x8c(%rdi), %ecx
movq (%rax), %rax
movl %ecx, %edx
shrl $0x3, %edx
movzbl (%rax,%rdx), %eax
andl $0x7, %ecx
btl %ecx, %eax
jae 0x9f25
movq 0x10(%rdi), %rcx
testq %rcx, %rcx
je 0x9e2a
movb 0x8e(%rdi), %al
andb (%rcx), %al
jmp 0x9e34
movq 0x18(%rdi), %rax
movb 0x2a6(%rax), %al
testb %al, %al
je 0x9e51
movl $0x6, %edx
movq %r12, %rdi
leaq 0x326d(%rip), %rsi # 0xd0b4
callq 0x80f0
jmp 0x9f15
movq %rbx, %r13
movq (%rdi), %rax
callq *0xf8(%rax)
movl %eax, %ebx
movq -0x8(%r14), %rdi
movq (%rdi), %rax
leaq -0x3f0(%rbp), %rdx
movq %rdx, %rsi
callq *0xe8(%rax)
testb %bl, %bl
je 0x9eb6
movl -0x3b8(%rbp), %esi
cmpl -0x3b4(%rbp), %esi
jb 0x9ea0
incl %esi
leaq -0x3c0(%rbp), %rdi
callq 0x8490
testb %al, %al
jne 0x9eb6
movl -0x3b8(%rbp), %esi
movq -0x3c0(%rbp), %rax
leal 0x1(%rsi), %ecx
movl %ecx, -0x3b8(%rbp)
movl %esi, %ecx
movb $0x27, (%rax,%rcx)
leaq -0x3f0(%rbp), %rdi
movq %r12, %rsi
callq 0x8340
testb %bl, %bl
movq %r13, %rbx
je 0x9f0b
movl -0x3b8(%rbp), %esi
cmpl -0x3b4(%rbp), %esi
jb 0x9ef5
incl %esi
leaq -0x3c0(%rbp), %rdi
callq 0x8490
testb %al, %al
movq %r13, %rbx
jne 0x9f0b
movl -0x3b8(%rbp), %esi
movq -0x3c0(%rbp), %rax
leal 0x1(%rsi), %ecx
movl %ecx, -0x3b8(%rbp)
movl %esi, %ecx
movb $0x27, (%rax,%rcx)
movl $0x0, -0x3e0(%rbp)
movl $0x2, %edx
movq %r12, %rdi
movq %rbx, %rsi
callq 0x80f0
movq (%r14), %rdi
addq $0x8, %r14
testq %rdi, %rdi
jne 0x9ded
movl -0x3b8(%rbp), %eax
cmpl -0x3cc(%rbp), %eax
leaq -0x3e8(%rbp), %r13
movl -0x3d0(%rbp), %ebx
jbe 0x9f59
addl $-0x2, %eax
movl %eax, -0x3b8(%rbp)
leaq 0x3183(%rip), %rsi # 0xd0e3
leaq -0x3c8(%rbp), %rdi
movl $0x2, %edx
callq 0x80f0
testb %bl, %bl
je 0x9fc1
leaq 0x720(%r15), %rbx
movq 0x728(%r15), %rdx
testq %rdx, %rdx
je 0x9fde
movq 0x540(%r15), %rax
movl -0x3b8(%rbp), %ecx
addq %rdx, %rcx
addq $0x40, %rcx
cmpq 0x58(%rax), %rcx
jbe 0x9fde
movq 0x720(%r15), %rsi
movq %r15, %rdi
callq 0x8380
movl %eax, %r14d
movq $0x0, 0x728(%r15)
jmp 0xa013
movq -0x3c0(%rbp), %rsi
movl -0x3b8(%rbp), %edx
movq %r15, %rdi
callq 0x8380
movl %eax, %r14d
jmp 0xa092
testq %rdx, %rdx
je 0xa006
movl $0x0, -0x3a4(%rbp)
leaq 0x313b(%rip), %rsi # 0xd12f
movl $0x1, %edx
movq %rbx, %rdi
callq 0x8550
xorl %r14d, %r14d
jmp 0xa07d
movl $0x0, -0x3a4(%rbp)
xorl %r14d, %r14d
leaq -0x408(%rbp), %r12
movq 0x6f67(%rip), %rax # 0x10f88
movq %rax, -0x8(%r12)
leaq -0x3a0(%rbp), %rax
movq %rax, (%r12)
movl $0x0, 0x10(%r12)
movw $0x0, 0x14(%r12)
movabsq $0x19000000000, %rax # imm = 0x19000000000
movq %rax, 0x8(%r12)
leaq -0x410(%rbp), %rsi
movq %r15, %rdi
callq 0x8050
movq -0x408(%rbp), %rsi
movl -0x400(%rbp), %edx
movq %rbx, %rdi
callq 0x8550
movq %r12, %rdi
callq 0x8510
movq -0x3c0(%rbp), %rsi
movl -0x3b8(%rbp), %edx
movq %rbx, %rdi
callq 0x8550
testl %r14d, %r14d
je 0xa0a3
movq %r15, %rdi
callq 0x82e0
movl %eax, %ebx
jmp 0xa0e7
xorl %ebx, %ebx
cmpb $0x0, -0x3a4(%rbp)
je 0xa0e7
callq 0x85b0
movq %rax, %r14
movq %r15, %rdi
movl $0x40, %esi
callq 0x8070
movq 0x78(%r15), %rsi
movq %rsi, 0x3a70(%r14)
movq 0x10(%r15), %rax
movq 0xc8(%rax), %rdi
movq (%rdi), %rax
movl $0x1, %edx
callq *0x88(%rax)
movq %r13, %rdi
callq 0x8510
leaq -0x3c0(%rbp), %rdi
callq 0x8510
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0xa161
movl %ebx, %eax
addq $0x3e8, %rsp # imm = 0x3E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %r12, %rdi
callq 0x8510
jmp 0xa132
jmp 0xa12f
jmp 0xa12f
movq %rax, %rbx
leaq -0x3e8(%rbp), %rdi
callq 0x8510
leaq -0x3c0(%rbp), %rdi
callq 0x8510
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0xa161
movq %rbx, %rdi
callq 0x8560
callq 0x83a0
| _ZN12ha_federated9write_rowEPKh:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 3E8h
mov r15, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov rax, [rdi+10h]
cmp qword ptr [rax+0C8h], 0
setnz al
mov [rbp+var_3A4], eax
mov rdx, cs:my_charset_bin_ptr
lea rcx, [rbp+var_3C0]
mov [rcx-8], rdx
lea rax, [rbp+var_1C0]
mov [rcx], rax
xor ebx, ebx
mov [rcx+10h], ebx
mov [rcx+14h], bx
mov rax, 19000000000h
mov [rcx+8], rax
lea r13, [rbp+var_3E8]
mov [r13-8], rdx
lea rax, [rbp+var_210]
mov [r13+0], rax
mov [r13+10h], ebx
mov [r13+14h], bx
mov rax, 5000000000h
mov [r13+8], rax
cmp qword ptr [rdi+720h], 0
jz short loc_9D8C
mov bl, 1
cmp byte ptr [r15+71Eh], 1
jnz short loc_9D9B
mov bl, [r15+71Dh]
test bl, bl
jnz short loc_9D9B
loc_9D8C:
lea rsi, [rbp+var_3C8]; String *
mov rdi, r15; this
call __ZN12ha_federated18append_stmt_insertEP6String; ha_federated::append_stmt_insert(String *)
loc_9D9B:
lea rsi, aAnd+5; char *
lea rdi, [rbp+var_3C8]; this
mov edx, 2; unsigned __int64
call __ZN6String6appendEPKcm; String::append(char const*,ulong)
mov rax, [r15+10h]
mov r14, [rax+0B0h]
mov rdi, [r14]
test rdi, rdi
jz loc_9F59
mov [rbp+var_3D0], ebx
lea r12, [rbp+var_3C8]
mov eax, [r12+10h]
mov [rbp+var_3CC], eax
add r14, 8
lea rbx, asc_D123; ", "
loc_9DED:
mov rax, [r15+10h]
mov rax, [rax+1F8h]
movzx ecx, word ptr [rdi+8Ch]
mov rax, [rax]
mov edx, ecx
shr edx, 3
movzx eax, byte ptr [rax+rdx]
and ecx, 7
bt eax, ecx
jnb loc_9F25
mov rcx, [rdi+10h]
test rcx, rcx
jz short loc_9E2A
mov al, [rdi+8Eh]
and al, [rcx]
jmp short loc_9E34
loc_9E2A:
mov rax, [rdi+18h]
mov al, [rax+2A6h]
loc_9E34:
test al, al
jz short loc_9E51
mov edx, 6; unsigned __int64
mov rdi, r12; this
lea rsi, aIsNull+3; char *
call __ZN6String6appendEPKcm; String::append(char const*,ulong)
jmp loc_9F15
loc_9E51:
mov r13, rbx
mov rax, [rdi]
call qword ptr [rax+0F8h]
mov ebx, eax
mov rdi, [r14-8]
mov rax, [rdi]
lea rdx, [rbp+var_3F0]
mov rsi, rdx
call qword ptr [rax+0E8h]
test bl, bl
jz short loc_9EB6
mov esi, dword ptr [rbp+var_3B8]
cmp esi, dword ptr [rbp+var_3B8+4]
jb short loc_9EA0
inc esi; unsigned __int64
lea rdi, [rbp+var_3C0]; this
call __ZN13Binary_string18realloc_with_extraEm; Binary_string::realloc_with_extra(ulong)
test al, al
jnz short loc_9EB6
mov esi, dword ptr [rbp+var_3B8]
loc_9EA0:
mov rax, [rbp+var_3C0]
lea ecx, [rsi+1]
mov dword ptr [rbp+var_3B8], ecx
mov ecx, esi
mov byte ptr [rax+rcx], 27h ; '''
loc_9EB6:
lea rdi, [rbp+var_3F0]; this
mov rsi, r12; String *
call __ZNK6String5printEPS_; String::print(String*)
test bl, bl
mov rbx, r13
jz short loc_9F0B
mov esi, dword ptr [rbp+var_3B8]
cmp esi, dword ptr [rbp+var_3B8+4]
jb short loc_9EF5
inc esi; unsigned __int64
lea rdi, [rbp+var_3C0]; this
call __ZN13Binary_string18realloc_with_extraEm; Binary_string::realloc_with_extra(ulong)
test al, al
mov rbx, r13
jnz short loc_9F0B
mov esi, dword ptr [rbp+var_3B8]
loc_9EF5:
mov rax, [rbp+var_3C0]
lea ecx, [rsi+1]
mov dword ptr [rbp+var_3B8], ecx
mov ecx, esi
mov byte ptr [rax+rcx], 27h ; '''
loc_9F0B:
mov [rbp+var_3E0], 0
loc_9F15:
mov edx, 2; unsigned __int64
mov rdi, r12; this
mov rsi, rbx; char *
call __ZN6String6appendEPKcm; String::append(char const*,ulong)
loc_9F25:
mov rdi, [r14]
add r14, 8
test rdi, rdi
jnz loc_9DED
mov eax, dword ptr [rbp+var_3B8]
cmp eax, [rbp+var_3CC]
lea r13, [rbp+var_3E8]
mov ebx, [rbp+var_3D0]
jbe short loc_9F59
add eax, 0FFFFFFFEh
mov dword ptr [rbp+var_3B8], eax
loc_9F59:
lea rsi, asc_D0E3; ") "
lea rdi, [rbp+var_3C8]; this
mov edx, 2; unsigned __int64
call __ZN6String6appendEPKcm; String::append(char const*,ulong)
test bl, bl
jz short loc_9FC1
lea rbx, [r15+720h]
mov rdx, [r15+728h]; unsigned __int64
test rdx, rdx
jz short loc_9FDE
mov rax, [r15+540h]
mov ecx, dword ptr [rbp+var_3B8]
add rcx, rdx
add rcx, 40h ; '@'
cmp rcx, [rax+58h]
jbe short loc_9FDE
mov rsi, [r15+720h]; char *
mov rdi, r15; this
call __ZN12ha_federated10real_queryEPKcm; ha_federated::real_query(char const*,ulong)
mov r14d, eax
mov qword ptr [r15+728h], 0
jmp short loc_A013
loc_9FC1:
mov rsi, [rbp+var_3C0]; char *
mov edx, dword ptr [rbp+var_3B8]; unsigned __int64
mov rdi, r15; this
call __ZN12ha_federated10real_queryEPKcm; ha_federated::real_query(char const*,ulong)
mov r14d, eax
jmp loc_A092
loc_9FDE:
test rdx, rdx
jz short loc_A006
mov [rbp+var_3A4], 0
lea rsi, asc_D12F; ","
mov edx, 1
mov rdi, rbx
call _dynstr_append_mem
xor r14d, r14d
jmp short loc_A07D
loc_A006:
mov [rbp+var_3A4], 0
xor r14d, r14d
loc_A013:
lea r12, [rbp+var_408]
mov rax, cs:my_charset_bin_ptr
mov [r12-8], rax
lea rax, [rbp+var_3A0]
mov [r12], rax
mov dword ptr [r12+10h], 0
mov word ptr [r12+14h], 0
mov rax, 19000000000h
mov [r12+8], rax
lea rsi, [rbp+var_410]; String *
mov rdi, r15; this
call __ZN12ha_federated18append_stmt_insertEP6String; ha_federated::append_stmt_insert(String *)
mov rsi, [rbp+var_408]
mov edx, [rbp+var_400]
mov rdi, rbx
call _dynstr_append_mem
mov rdi, r12; this
call __ZN13Binary_stringD2Ev; Binary_string::~Binary_string()
loc_A07D:
mov rsi, [rbp+var_3C0]
mov edx, dword ptr [rbp+var_3B8]
mov rdi, rbx
call _dynstr_append_mem
loc_A092:
test r14d, r14d
jz short loc_A0A3
mov rdi, r15; this
call __ZN12ha_federated18stash_remote_errorEv; ha_federated::stash_remote_error(void)
mov ebx, eax
jmp short loc_A0E7
loc_A0A3:
xor ebx, ebx
cmp byte ptr [rbp+var_3A4], 0
jz short loc_A0E7
call __current_thd
mov r14, rax
mov rdi, r15; this
mov esi, 40h ; '@'; unsigned int
call __ZN12ha_federated4infoEj; ha_federated::info(uint)
mov rsi, [r15+78h]
mov [r14+3A70h], rsi
mov rax, [r15+10h]
mov rdi, [rax+0C8h]
mov rax, [rdi]
mov edx, 1
call qword ptr [rax+88h]
loc_A0E7:
mov rdi, r13; this
call __ZN13Binary_stringD2Ev; Binary_string::~Binary_string()
lea rdi, [rbp+var_3C0]; this
call __ZN13Binary_stringD2Ev; Binary_string::~Binary_string()
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_A161
mov eax, ebx
add rsp, 3E8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, r12; this
call __ZN13Binary_stringD2Ev; Binary_string::~Binary_string()
jmp short loc_A132
jmp short loc_A12F
jmp short $+2
loc_A12F:
mov rbx, rax
loc_A132:
lea rdi, [rbp+var_3E8]; this
call __ZN13Binary_stringD2Ev; Binary_string::~Binary_string()
lea rdi, [rbp+var_3C0]; this
call __ZN13Binary_stringD2Ev; Binary_string::~Binary_string()
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_A161
mov rdi, rbx
call __Unwind_Resume
loc_A161:
call ___stack_chk_fail
| long long ha_federated::write_row(ha_federated *this, const unsigned __int8 *a2)
{
long long v3; // rax
int v4; // ebx
long long *v5; // r14
long long v6; // rdi
long long *v7; // r14
const char *v8; // rbx
int v9; // eax
_BYTE *v10; // rcx
char v11; // al
const char *v12; // r13
char v13; // bl
int v14; // esi
bool v15; // zf
int v16; // esi
unsigned long long v17; // rdx
int v18; // r14d
unsigned int v19; // ebx
long long v20; // r14
long long v21; // rsi
void *v23; // [rsp+0h] [rbp-410h] BYREF
char *v24; // [rsp+8h] [rbp-408h] BYREF
long long v25; // [rsp+10h] [rbp-400h]
int v26; // [rsp+18h] [rbp-3F8h]
__int16 v27; // [rsp+1Ch] [rbp-3F4h]
void *v28; // [rsp+20h] [rbp-3F0h] BYREF
char *v29; // [rsp+28h] [rbp-3E8h] BYREF
long long v30; // [rsp+30h] [rbp-3E0h]
int v31; // [rsp+38h] [rbp-3D8h]
__int16 v32; // [rsp+3Ch] [rbp-3D4h]
int v33; // [rsp+40h] [rbp-3D0h]
unsigned int v34; // [rsp+44h] [rbp-3CCh]
void *v35; // [rsp+48h] [rbp-3C8h] BYREF
char *v36; // [rsp+50h] [rbp-3C0h] BYREF
unsigned long long v37; // [rsp+58h] [rbp-3B8h]
int v38; // [rsp+60h] [rbp-3B0h]
__int16 v39; // [rsp+64h] [rbp-3ACh]
int v40; // [rsp+6Ch] [rbp-3A4h]
char v41; // [rsp+70h] [rbp-3A0h] BYREF
char v42; // [rsp+200h] [rbp-210h] BYREF
char v43; // [rsp+250h] [rbp-1C0h] BYREF
unsigned long long v44; // [rsp+3E0h] [rbp-30h]
v44 = __readfsqword(0x28u);
v3 = *((_QWORD *)this + 2);
LOBYTE(v3) = *(_QWORD *)(v3 + 200) != 0LL;
v40 = v3;
v35 = &my_charset_bin;
v36 = &v43;
v4 = 0;
v38 = 0;
v39 = 0;
v37 = 0x19000000000LL;
v28 = &my_charset_bin;
v29 = &v42;
v31 = 0;
v32 = 0;
v30 = 0x5000000000LL;
if ( !*((_QWORD *)this + 228)
|| (LOBYTE(v4) = 1, *((_BYTE *)this + 1822) == 1) && (LOBYTE(v4) = *((_BYTE *)this + 1821), !(_BYTE)v4) )
{
ha_federated::append_stmt_insert(this, (String *)&v35);
}
String::append((String *)&v35, " (", 2uLL);
v5 = *(long long **)(*((_QWORD *)this + 2) + 176LL);
v6 = *v5;
if ( *v5 )
{
v33 = v4;
v34 = v37;
v7 = v5 + 1;
v8 = ", ";
while ( 1 )
{
v9 = *(unsigned __int8 *)(**(_QWORD **)(*((_QWORD *)this + 2) + 504LL) + (*(unsigned __int16 *)(v6 + 140) >> 3));
if ( _bittest(&v9, *(_WORD *)(v6 + 140) & 7) )
break;
LABEL_25:
v6 = *v7++;
if ( !v6 )
{
LOBYTE(v4) = v33;
if ( (unsigned int)v37 > v34 )
LODWORD(v37) = v37 - 2;
goto LABEL_28;
}
}
v10 = *(_BYTE **)(v6 + 16);
if ( v10 )
v11 = *v10 & *(_BYTE *)(v6 + 142);
else
v11 = *(_BYTE *)(*(_QWORD *)(v6 + 24) + 678LL);
if ( v11 )
{
String::append((String *)&v35, " NULL ", 6uLL);
LABEL_24:
String::append((String *)&v35, v8, 2uLL);
goto LABEL_25;
}
v12 = v8;
v13 = (*(long long ( **)(long long))(*(_QWORD *)v6 + 248LL))(v6);
(*(void ( **)(_QWORD, void **))(*(_QWORD *)*(v7 - 1) + 232LL))(*(v7 - 1), &v28);
if ( v13 )
{
v14 = v37;
if ( (unsigned int)v37 >= HIDWORD(v37) )
{
if ( (unsigned __int8)Binary_string::realloc_with_extra((Binary_string *)&v36, (unsigned int)(v37 + 1)) )
goto LABEL_18;
v14 = v37;
}
LODWORD(v37) = v14 + 1;
v36[v14] = 39;
}
LABEL_18:
String::print((String *)&v28, (String *)&v35);
v15 = v13 == 0;
v8 = v12;
if ( !v15 )
{
v16 = v37;
if ( (unsigned int)v37 < HIDWORD(v37) )
{
LABEL_22:
LODWORD(v37) = v16 + 1;
v36[v16] = 39;
goto LABEL_23;
}
v8 = v12;
if ( !(unsigned __int8)Binary_string::realloc_with_extra((Binary_string *)&v36, (unsigned int)(v37 + 1)) )
{
v16 = v37;
goto LABEL_22;
}
}
LABEL_23:
LODWORD(v30) = 0;
goto LABEL_24;
}
LABEL_28:
String::append((String *)&v35, ") ", 2uLL);
if ( !(_BYTE)v4 )
{
v18 = ha_federated::real_query(this, v36, (unsigned int)v37);
goto LABEL_38;
}
v17 = *((_QWORD *)this + 229);
if ( v17 && v17 + (unsigned int)v37 + 64 > *(_QWORD *)(*((_QWORD *)this + 168) + 88LL) )
{
v18 = ha_federated::real_query(this, *((const char **)this + 228), v17);
*((_QWORD *)this + 229) = 0LL;
LABEL_36:
v23 = &my_charset_bin;
v24 = &v41;
v26 = 0;
v27 = 0;
v25 = 0x19000000000LL;
ha_federated::append_stmt_insert(this, (String *)&v23);
dynstr_append_mem((char *)this + 1824, v24, (unsigned int)v25);
Binary_string::~Binary_string((Binary_string *)&v24);
goto LABEL_37;
}
if ( !v17 )
{
v40 = 0;
v18 = 0;
goto LABEL_36;
}
v40 = 0;
dynstr_append_mem((char *)this + 1824, ",", 1LL);
v18 = 0;
LABEL_37:
dynstr_append_mem((char *)this + 1824, v36, (unsigned int)v37);
LABEL_38:
if ( v18 )
{
v19 = ha_federated::stash_remote_error(this);
}
else
{
v19 = 0;
if ( (_BYTE)v40 )
{
v20 = _current_thd();
ha_federated::info(this, 0x40u);
v21 = *((_QWORD *)this + 15);
*(_QWORD *)(v20 + 14960) = v21;
(*(void ( **)(_QWORD, long long, long long))(**(_QWORD **)(*((_QWORD *)this + 2) + 200LL) + 136LL))(
*(_QWORD *)(*((_QWORD *)this + 2) + 200LL),
v21,
1LL);
}
}
Binary_string::~Binary_string((Binary_string *)&v29);
Binary_string::~Binary_string((Binary_string *)&v36);
return v19;
}
| write_row:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x3e8
MOV R15,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RDI + 0x10]
CMP qword ptr [RAX + 0xc8],0x0
SETNZ AL
MOV dword ptr [RBP + -0x3a4],EAX
MOV RDX,qword ptr [0x00110f88]
LEA RCX,[RBP + -0x3c0]
MOV qword ptr [RCX + -0x8],RDX
LEA RAX,[RBP + -0x1c0]
MOV qword ptr [RCX],RAX
XOR EBX,EBX
MOV dword ptr [RCX + 0x10],EBX
MOV word ptr [RCX + 0x14],BX
MOV RAX,0x19000000000
MOV qword ptr [RCX + 0x8],RAX
LEA R13,[RBP + -0x3e8]
MOV qword ptr [R13 + -0x8],RDX
LEA RAX,[RBP + -0x210]
MOV qword ptr [R13],RAX
MOV dword ptr [R13 + 0x10],EBX
MOV word ptr [R13 + 0x14],BX
MOV RAX,0x5000000000
MOV qword ptr [R13 + 0x8],RAX
CMP qword ptr [RDI + 0x720],0x0
JZ 0x00109d8c
MOV BL,0x1
CMP byte ptr [R15 + 0x71e],0x1
JNZ 0x00109d9b
MOV BL,byte ptr [R15 + 0x71d]
TEST BL,BL
JNZ 0x00109d9b
LAB_00109d8c:
LEA RSI,[RBP + -0x3c8]
MOV RDI,R15
CALL 0x00108050
LAB_00109d9b:
LEA RSI,[0x10d0ae]
LEA RDI,[RBP + -0x3c8]
MOV EDX,0x2
CALL 0x001080f0
MOV RAX,qword ptr [R15 + 0x10]
MOV R14,qword ptr [RAX + 0xb0]
MOV RDI,qword ptr [R14]
TEST RDI,RDI
JZ 0x00109f59
MOV dword ptr [RBP + -0x3d0],EBX
LEA R12,[RBP + -0x3c8]
MOV EAX,dword ptr [R12 + 0x10]
MOV dword ptr [RBP + -0x3cc],EAX
ADD R14,0x8
LEA RBX,[0x10d123]
LAB_00109ded:
MOV RAX,qword ptr [R15 + 0x10]
MOV RAX,qword ptr [RAX + 0x1f8]
MOVZX ECX,word ptr [RDI + 0x8c]
MOV RAX,qword ptr [RAX]
MOV EDX,ECX
SHR EDX,0x3
MOVZX EAX,byte ptr [RAX + RDX*0x1]
AND ECX,0x7
BT EAX,ECX
JNC 0x00109f25
MOV RCX,qword ptr [RDI + 0x10]
TEST RCX,RCX
JZ 0x00109e2a
MOV AL,byte ptr [RDI + 0x8e]
AND AL,byte ptr [RCX]
JMP 0x00109e34
LAB_00109e2a:
MOV RAX,qword ptr [RDI + 0x18]
MOV AL,byte ptr [RAX + 0x2a6]
LAB_00109e34:
TEST AL,AL
JZ 0x00109e51
LAB_00109e38:
MOV EDX,0x6
MOV RDI,R12
LEA RSI,[0x10d0b4]
CALL 0x001080f0
JMP 0x00109f15
LAB_00109e51:
MOV R13,RBX
MOV RAX,qword ptr [RDI]
LAB_00109e57:
CALL qword ptr [RAX + 0xf8]
MOV EBX,EAX
MOV RDI,qword ptr [R14 + -0x8]
MOV RAX,qword ptr [RDI]
LEA RDX,[RBP + -0x3f0]
MOV RSI,RDX
CALL qword ptr [RAX + 0xe8]
TEST BL,BL
JZ 0x00109eb6
MOV ESI,dword ptr [RBP + -0x3b8]
CMP ESI,dword ptr [RBP + -0x3b4]
JC 0x00109ea0
INC ESI
LEA RDI,[RBP + -0x3c0]
CALL 0x00108490
TEST AL,AL
JNZ 0x00109eb6
MOV ESI,dword ptr [RBP + -0x3b8]
LAB_00109ea0:
MOV RAX,qword ptr [RBP + -0x3c0]
LEA ECX,[RSI + 0x1]
MOV dword ptr [RBP + -0x3b8],ECX
MOV ECX,ESI
MOV byte ptr [RAX + RCX*0x1],0x27
LAB_00109eb6:
LEA RDI,[RBP + -0x3f0]
MOV RSI,R12
CALL 0x00108340
TEST BL,BL
MOV RBX,R13
JZ 0x00109f0b
MOV ESI,dword ptr [RBP + -0x3b8]
CMP ESI,dword ptr [RBP + -0x3b4]
JC 0x00109ef5
INC ESI
LEA RDI,[RBP + -0x3c0]
CALL 0x00108490
TEST AL,AL
MOV RBX,R13
JNZ 0x00109f0b
MOV ESI,dword ptr [RBP + -0x3b8]
LAB_00109ef5:
MOV RAX,qword ptr [RBP + -0x3c0]
LEA ECX,[RSI + 0x1]
MOV dword ptr [RBP + -0x3b8],ECX
MOV ECX,ESI
MOV byte ptr [RAX + RCX*0x1],0x27
LAB_00109f0b:
MOV dword ptr [RBP + -0x3e0],0x0
LAB_00109f15:
MOV EDX,0x2
MOV RDI,R12
MOV RSI,RBX
CALL 0x001080f0
LAB_00109f25:
MOV RDI,qword ptr [R14]
ADD R14,0x8
TEST RDI,RDI
JNZ 0x00109ded
MOV EAX,dword ptr [RBP + -0x3b8]
CMP EAX,dword ptr [RBP + -0x3cc]
LEA R13,[RBP + -0x3e8]
MOV EBX,dword ptr [RBP + -0x3d0]
JBE 0x00109f59
ADD EAX,-0x2
MOV dword ptr [RBP + -0x3b8],EAX
LAB_00109f59:
LEA RSI,[0x10d0e3]
LEA RDI,[RBP + -0x3c8]
MOV EDX,0x2
CALL 0x001080f0
TEST BL,BL
JZ 0x00109fc1
LEA RBX,[R15 + 0x720]
MOV RDX,qword ptr [R15 + 0x728]
TEST RDX,RDX
JZ 0x00109fde
MOV RAX,qword ptr [R15 + 0x540]
MOV ECX,dword ptr [RBP + -0x3b8]
ADD RCX,RDX
ADD RCX,0x40
CMP RCX,qword ptr [RAX + 0x58]
JBE 0x00109fde
MOV RSI,qword ptr [R15 + 0x720]
MOV RDI,R15
CALL 0x00108380
MOV R14D,EAX
MOV qword ptr [R15 + 0x728],0x0
JMP 0x0010a013
LAB_00109fc1:
MOV RSI,qword ptr [RBP + -0x3c0]
MOV EDX,dword ptr [RBP + -0x3b8]
MOV RDI,R15
CALL 0x00108380
MOV R14D,EAX
JMP 0x0010a092
LAB_00109fde:
TEST RDX,RDX
JZ 0x0010a006
MOV dword ptr [RBP + -0x3a4],0x0
LEA RSI,[0x10d12f]
MOV EDX,0x1
MOV RDI,RBX
CALL 0x00108550
XOR R14D,R14D
JMP 0x0010a07d
LAB_0010a006:
MOV dword ptr [RBP + -0x3a4],0x0
XOR R14D,R14D
LAB_0010a013:
LEA R12,[RBP + -0x408]
MOV RAX,qword ptr [0x00110f88]
MOV qword ptr [R12 + -0x8],RAX
LEA RAX,[RBP + -0x3a0]
MOV qword ptr [R12],RAX
MOV dword ptr [R12 + 0x10],0x0
MOV word ptr [R12 + 0x14],0x0
MOV RAX,0x19000000000
MOV qword ptr [R12 + 0x8],RAX
LAB_0010a051:
LEA RSI,[RBP + -0x410]
MOV RDI,R15
CALL 0x00108050
MOV RSI,qword ptr [RBP + -0x408]
MOV EDX,dword ptr [RBP + -0x400]
MOV RDI,RBX
CALL 0x00108550
MOV RDI,R12
CALL 0x00108510
LAB_0010a07d:
MOV RSI,qword ptr [RBP + -0x3c0]
MOV EDX,dword ptr [RBP + -0x3b8]
LAB_0010a08a:
MOV RDI,RBX
CALL 0x00108550
LAB_0010a092:
TEST R14D,R14D
JZ 0x0010a0a3
MOV RDI,R15
CALL 0x001082e0
MOV EBX,EAX
JMP 0x0010a0e7
LAB_0010a0a3:
XOR EBX,EBX
CMP byte ptr [RBP + -0x3a4],0x0
JZ 0x0010a0e7
CALL 0x001085b0
MOV R14,RAX
MOV RDI,R15
MOV ESI,0x40
CALL 0x00108070
MOV RSI,qword ptr [R15 + 0x78]
MOV qword ptr [R14 + 0x3a70],RSI
MOV RAX,qword ptr [R15 + 0x10]
MOV RDI,qword ptr [RAX + 0xc8]
MOV RAX,qword ptr [RDI]
MOV EDX,0x1
CALL qword ptr [RAX + 0x88]
LAB_0010a0e7:
MOV RDI,R13
CALL 0x00108510
LEA RDI,[RBP + -0x3c0]
CALL 0x00108510
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x0010a161
MOV EAX,EBX
ADD RSP,0x3e8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0010a161:
CALL 0x001083a0
|
/* ha_federated::write_row(unsigned char const*) */
int4 ha_federated::write_row(uchar *param_1)
{
uchar *puVar1;
ulong uVar2;
int8 uVar3;
long *plVar4;
byte bVar5;
char cVar6;
char cVar7;
int iVar8;
int4 uVar9;
long lVar10;
uint uVar11;
long *plVar12;
long in_FS_OFFSET;
int *local_418;
int1 *local_410;
ulong local_408;
int4 local_400;
int2 local_3fc;
int *local_3f8;
int1 *local_3f0;
ulong local_3e8;
int4 local_3e0;
int2 local_3dc;
uint local_3d8;
uint local_3d4;
int *local_3d0;
char *local_3c8;
uint local_3c0;
uint uStack_3bc;
int4 local_3b8;
int2 local_3b4;
int4 local_3ac;
int1 local_3a8 [400];
int1 local_218 [80];
char local_1c8 [400];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
local_3ac = (int4)
CONCAT71((int7)((ulong)*(long *)(param_1 + 0x10) >> 8),
*(long *)(*(long *)(param_1 + 0x10) + 200) != 0);
local_3d0 = PTR_my_charset_bin_00110f88;
local_3c8 = local_1c8;
uVar11 = 0;
local_3b8 = 0;
local_3b4 = 0;
local_3c0 = 0;
uStack_3bc = 400;
local_3f8 = PTR_my_charset_bin_00110f88;
local_3f0 = local_218;
local_3e0 = 0;
local_3dc = 0;
local_3e8 = 0x5000000000;
if ((*(long *)(param_1 + 0x720) == 0) ||
((uVar11 = 1, param_1[0x71e] == '\x01' && (uVar11 = (uint)param_1[0x71d], param_1[0x71d] == 0))
)) {
/* try { // try from 00109d8c to 00109db2 has its CatchHandler @ 0010a12b */
append_stmt_insert((ha_federated *)param_1,(String *)&local_3d0);
}
String::append((char *)&local_3d0,0x10d0ae);
plVar12 = (long *)**(long **)(*(long *)(param_1 + 0x10) + 0xb0);
if (plVar12 != (long *)0x0) {
local_3d4 = local_3c0;
plVar4 = *(long **)(*(long *)(param_1 + 0x10) + 0xb0);
local_3d8 = uVar11;
do {
if ((*(byte *)(**(long **)(*(long *)(param_1 + 0x10) + 0x1f8) +
(ulong)(*(ushort *)((long)plVar12 + 0x8c) >> 3)) >>
(*(ushort *)((long)plVar12 + 0x8c) & 7) & 1) != 0) {
if ((byte *)plVar12[2] == (byte *)0x0) {
bVar5 = *(byte *)(plVar12[3] + 0x2a6);
}
else {
bVar5 = *(byte *)((long)plVar12 + 0x8e) & *(byte *)plVar12[2];
}
if (bVar5 == 0) {
/* try { // try from 00109e57 to 00109ee7 has its CatchHandler @ 0010a12d */
cVar6 = (**(code **)(*plVar12 + 0xf8))();
(**(code **)(*(long *)*plVar4 + 0xe8))((long *)*plVar4,&local_3f8);
if ((cVar6 != '\0') &&
((local_3c0 < uStack_3bc ||
(cVar7 = Binary_string::realloc_with_extra
((Binary_string *)&local_3c8,(ulong)(local_3c0 + 1)), cVar7 == '\0'
)))) {
local_3c0 = 1;
*local_3c8 = '\'';
}
String::print((String *)&local_3f8);
if ((cVar6 != '\0') &&
((local_3c0 < uStack_3bc ||
(cVar6 = Binary_string::realloc_with_extra
((Binary_string *)&local_3c8,(ulong)(local_3c0 + 1)), cVar6 == '\0'
)))) {
local_3c8[local_3c0] = '\'';
local_3c0 = local_3c0 + 1;
}
local_3e8 = local_3e8 & 0xffffffff00000000;
}
else {
/* try { // try from 00109e38 to 00109e4b has its CatchHandler @ 0010a12f */
String::append((char *)&local_3d0,0x10d0b4);
}
/* try { // try from 00109f15 to 00109f24 has its CatchHandler @ 0010a12f */
String::append((char *)&local_3d0,0x10d123);
}
plVar12 = (long *)plVar4[1];
plVar4 = plVar4 + 1;
} while (plVar12 != (long *)0x0);
uVar11 = local_3d8;
if (local_3d4 < local_3c0) {
local_3c0 = local_3c0 - 2;
}
}
/* try { // try from 00109f59 to 0010a000 has its CatchHandler @ 0010a12b */
String::append((char *)&local_3d0,0x10d0e3);
if ((char)uVar11 == '\0') {
iVar8 = real_query((ha_federated *)param_1,local_3c8,(ulong)local_3c0);
goto LAB_0010a092;
}
puVar1 = param_1 + 0x720;
uVar2 = *(ulong *)(param_1 + 0x728);
if ((uVar2 == 0) || (local_3c0 + uVar2 + 0x40 <= *(ulong *)(*(long *)(param_1 + 0x540) + 0x58))) {
if (uVar2 == 0) {
local_3ac = 0;
iVar8 = 0;
goto LAB_0010a013;
}
local_3ac = 0;
dynstr_append_mem(puVar1,&DAT_0010d12f,1);
iVar8 = 0;
}
else {
iVar8 = real_query((ha_federated *)param_1,*(char **)(param_1 + 0x720),uVar2);
param_1[0x728] = '\0';
param_1[0x729] = '\0';
param_1[0x72a] = '\0';
param_1[0x72b] = '\0';
param_1[0x72c] = '\0';
param_1[0x72d] = '\0';
param_1[0x72e] = '\0';
param_1[0x72f] = '\0';
LAB_0010a013:
local_418 = PTR_my_charset_bin_00110f88;
local_410 = local_3a8;
local_400 = 0;
local_3fc = 0;
local_408 = 0x19000000000;
/* try { // try from 0010a051 to 0010a074 has its CatchHandler @ 0010a11e */
append_stmt_insert((ha_federated *)param_1,(String *)&local_418);
dynstr_append_mem(puVar1,local_410,local_408 & 0xffffffff);
Binary_string::~Binary_string((Binary_string *)&local_410);
}
/* try { // try from 0010a08a to 0010a0e6 has its CatchHandler @ 0010a12b */
dynstr_append_mem(puVar1,local_3c8,local_3c0);
LAB_0010a092:
if (iVar8 == 0) {
uVar9 = 0;
if ((char)local_3ac != '\0') {
lVar10 = _current_thd();
info((ha_federated *)param_1,0x40);
uVar3 = *(int8 *)(param_1 + 0x78);
*(int8 *)(lVar10 + 0x3a70) = uVar3;
(**(code **)(**(long **)(*(long *)(param_1 + 0x10) + 200) + 0x88))
(*(long **)(*(long *)(param_1 + 0x10) + 200),uVar3,1);
}
}
else {
uVar9 = stash_remote_error((ha_federated *)param_1);
}
Binary_string::~Binary_string((Binary_string *)&local_3f0);
Binary_string::~Binary_string((Binary_string *)&local_3c8);
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return uVar9;
}
| |
48,259 | fs_get_cache_file(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | monkey531[P]llama/common/common.cpp | std::string fs_get_cache_file(const std::string & filename) {
GGML_ASSERT(filename.find(DIRECTORY_SEPARATOR) == std::string::npos);
std::string cache_directory = fs_get_cache_directory();
const bool success = fs_create_directory_with_parents(cache_directory);
if (!success) {
throw std::runtime_error("failed to create cache directory: " + cache_directory);
}
return cache_directory + filename;
} | O3 | cpp | fs_get_cache_file(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
movl $0x2f, %esi
xorl %edx, %edx
callq 0x1ab30
cmpq $-0x1, %rax
jne 0x7365e
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x73270
movq %r15, %rdi
callq 0x73172
testb %al, %al
je 0x7367f
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x784b2
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x73650
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8e0
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x7a51c(%rip), %rdi # 0xedb81
leaq 0x777d1(%rip), %rdx # 0xeae3d
leaq 0x7a6e7(%rip), %rcx # 0xedd5a
movl $0x378, %esi # imm = 0x378
xorl %eax, %eax
callq 0x1aeb0
movl $0x10, %edi
callq 0x1a440
movq %rax, %rbx
leaq 0x7a6ff(%rip), %rsi # 0xedd92
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x53971
movb $0x1, %bpl
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x1ae30
xorl %ebp, %ebp
movq 0xb7935(%rip), %rsi # 0x12aff0
movq 0xb789e(%rip), %rdx # 0x12af60
movq %rbx, %rdi
callq 0x1af20
movq %rax, %r14
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x736e8
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1a8e0
testb %bpl, %bpl
jne 0x736f2
jmp 0x736ff
movq %rax, %r14
movq %rbx, %rdi
callq 0x1a690
jmp 0x736ff
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7371a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8e0
movq %r14, %rdi
callq 0x1afa0
| _Z17fs_get_cache_fileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp; int
push r15; int
push r14; int
push rbx; __int64
sub rsp, 48h
mov r14, rsi
mov rbx, rdi
mov rdi, rsi
mov esi, 2Fh ; '/'
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm; std::string::find(char,ulong)
cmp rax, 0FFFFFFFFFFFFFFFFh
jnz short loc_7365E
lea r15, [rsp+68h+var_60]
mov rdi, r15; int
call _Z22fs_get_cache_directoryB5cxx11v; fs_get_cache_directory(void)
mov rdi, r15
call _Z32fs_create_directory_with_parentsRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; fs_create_directory_with_parents(std::string const&)
test al, al
jz short loc_7367F
lea rsi, [rsp+68h+var_60]
mov rdi, rbx
mov rdx, r14
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_; std::operator+<char>(std::string const&,std::string const&)
lea rax, [rsp+68h+var_50]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_73650
mov rsi, [rsp+68h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_73650:
mov rax, rbx
add rsp, 48h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_7365E:
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aFilenameFindDi; "filename.find(DIRECTORY_SEPARATOR) == s"...
mov esi, 378h
xor eax, eax
call _ggml_abort
loc_7367F:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aFailedToCreate; "failed to create cache directory: "
lea rdi, [rsp+68h+var_40]
lea rdx, [rsp+68h+var_60]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&)
mov bpl, 1
lea rsi, [rsp+68h+var_40]
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+68h+var_30]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_736E8
mov rsi, [rsp+68h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_736E8:
test bpl, bpl
jnz short loc_736F2
jmp short loc_736FF
mov r14, rax
loc_736F2:
mov rdi, rbx; void *
call ___cxa_free_exception
jmp short loc_736FF
mov r14, rax
loc_736FF:
lea rax, [rsp+68h+var_50]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_7371A
mov rsi, [rsp+68h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_7371A:
mov rdi, r14
call __Unwind_Resume
| long long fs_get_cache_file(long long a1, long long a2)
{
void *exception; // rbx
int v4[4]; // [rsp+8h] [rbp-60h] BYREF
long long v5; // [rsp+18h] [rbp-50h] BYREF
_BYTE v6[16]; // [rsp+28h] [rbp-40h] BYREF
if ( std::string::find(a2, 47LL, 0LL) != -1 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/common.cpp",
888LL,
"GGML_ASSERT(%s) failed",
"filename.find(DIRECTORY_SEPARATOR) == std::string::npos");
LABEL_7:
exception = __cxa_allocate_exception(0x10uLL);
std::operator+<char>((long long)v6, (long long)"failed to create cache directory: ", v4);
std::runtime_error::runtime_error(exception, v6);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
fs_get_cache_directory[abi:cxx11]((long long)v4);
if ( !(unsigned __int8)fs_create_directory_with_parents(v4) )
goto LABEL_7;
std::operator+<char>(a1, v4, a2);
if ( *(long long **)v4 != &v5 )
operator delete(*(void **)v4, v5 + 1);
return a1;
}
| fs_get_cache_file:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV R14,RSI
MOV RBX,RDI
MOV RDI,RSI
MOV ESI,0x2f
XOR EDX,EDX
CALL 0x0011ab30
CMP RAX,-0x1
JNZ 0x0017365e
LEA R15,[RSP + 0x8]
MOV RDI,R15
CALL 0x00173270
LAB_00173619:
MOV RDI,R15
CALL 0x00173172
TEST AL,AL
JZ 0x0017367f
LEA RSI,[RSP + 0x8]
MOV RDI,RBX
MOV RDX,R14
CALL 0x001784b2
LAB_00173635:
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00173650
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011a8e0
LAB_00173650:
MOV RAX,RBX
ADD RSP,0x48
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0017365e:
LEA RDI,[0x1edb81]
LEA RDX,[0x1eae3d]
LEA RCX,[0x1edd5a]
MOV ESI,0x378
XOR EAX,EAX
CALL 0x0011aeb0
LAB_0017367f:
MOV EDI,0x10
CALL 0x0011a440
MOV RBX,RAX
LAB_0017368c:
LEA RSI,[0x1edd92]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x8]
CALL 0x00153971
MOV BPL,0x1
LAB_001736a5:
LEA RSI,[RSP + 0x28]
MOV RDI,RBX
CALL 0x0011ae30
XOR EBP,EBP
MOV RSI,qword ptr [0x0022aff0]
MOV RDX,qword ptr [0x0022af60]
MOV RDI,RBX
CALL 0x0011af20
|
/* fs_get_cache_file(std::__cxx11::string const&) */
string * fs_get_cache_file(string *param_1)
{
char cVar1;
long lVar2;
runtime_error *this;
char in_SIL;
long *local_60 [2];
long local_50 [2];
string local_40 [32];
lVar2 = std::__cxx11::string::find(in_SIL,0x2f);
if (lVar2 != -1) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/common.cpp",0x378,
"GGML_ASSERT(%s) failed","filename.find(DIRECTORY_SEPARATOR) == std::string::npos");
}
fs_get_cache_directory_abi_cxx11_();
/* try { // try from 00173619 to 00173634 has its CatchHandler @ 001736fc */
cVar1 = fs_create_directory_with_parents((string *)local_60);
if (cVar1 != '\0') {
std::operator+(param_1,(string *)local_60);
if (local_60[0] != local_50) {
operator_delete(local_60[0],local_50[0] + 1);
}
return param_1;
}
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0017368c to 001736a1 has its CatchHandler @ 001736ef */
std::operator+((char *)local_40,(string *)"failed to create cache directory: ");
/* try { // try from 001736a5 to 001736c9 has its CatchHandler @ 001736ca */
std::runtime_error::runtime_error(this,local_40);
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_0022aff0,PTR__runtime_error_0022af60);
}
| |
48,260 | nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::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&) | monkey531[P]llama/common/json.hpp | T& operator[](const key_type& key)
{
return emplace(key, T{}).first->second;
} | O1 | cpp | nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::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&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x40(%rsp), %r14
movq $0x0, 0x8(%r14)
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%r14)
movaps %xmm0, -0x30(%r14)
movaps %xmm0, -0x20(%r14)
movaps %xmm0, -0x10(%r14)
movb $0x0, (%r14)
movq %r14, %rdi
movl $0x1, %esi
callq 0x3175a
movq %r14, %rdi
movl $0x1, %esi
callq 0x3175a
movq %rsp, %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x6efc4
movq %rax, %rbx
movq %r14, %rdi
xorl %esi, %esi
callq 0x3175a
movq %r14, %rdi
callq 0x36dc4
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x6ef4b
callq 0x31024
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x6ef5a
callq 0x31024
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x6ef69
callq 0x31024
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x6ef9f
movq 0x7f01e(%rip), %rax # 0xedf98
cmpb $0x0, (%rax)
je 0x6ef8a
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x6ef94
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x6ef9f
movq (%rdi), %rax
callq *0x18(%rax)
addq $0x10, %rbx
movq %rbx, %rax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x6715c
movq %rbx, %rdi
callq 0x19c00
nop
| _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixERSJ_:
push r15
push r14
push rbx
sub rsp, 50h
mov rbx, rsi
mov r15, rdi
lea r14, [rsp+68h+var_28]
mov qword ptr [r14+8], 0
xorps xmm0, xmm0
movaps xmmword ptr [r14-40h], xmm0
movaps xmmword ptr [r14-30h], xmm0
movaps xmmword ptr [r14-20h], xmm0
movaps xmmword ptr [r14-10h], xmm0
mov byte ptr [r14], 0
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdx, rsp
mov rdi, r15
mov rsi, rbx
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceERSJ_OSF_; nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::emplace(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,minja::Value&&)
mov rbx, rax
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [rsp+68h+var_30]
test rdi, rdi
jz short loc_6EF4B
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_6EF4B:
mov rdi, [rsp+68h+var_40]
test rdi, rdi
jz short loc_6EF5A
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_6EF5A:
mov rdi, [rsp+68h+var_50]
test rdi, rdi
jz short loc_6EF69
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_6EF69:
mov rdi, [rsp+68h+var_60]
test rdi, rdi
jz short loc_6EF9F
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_6EF8A
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_6EF94
loc_6EF8A:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_6EF94:
cmp eax, 1
jnz short loc_6EF9F
mov rax, [rdi]
call qword ptr [rax+18h]
loc_6EF9F:
add rbx, 10h
mov rax, rbx
add rsp, 50h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
mov rdi, rsp; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov rdi, rbx
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::operator[](
long long a1,
long long a2)
{
long long v2; // rbx
long long v3; // rdi
signed __int32 v4; // eax
__int128 v6; // [rsp+0h] [rbp-68h] BYREF
__int128 v7; // [rsp+10h] [rbp-58h]
__int128 v8; // [rsp+20h] [rbp-48h]
__int128 v9; // [rsp+30h] [rbp-38h]
char v10[8]; // [rsp+40h] [rbp-28h] BYREF
long long v11; // [rsp+48h] [rbp-20h]
v11 = 0LL;
v6 = 0LL;
v7 = 0LL;
v8 = 0LL;
v9 = 0LL;
v10[0] = 0;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v10);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v10);
v2 = nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::emplace(
a1,
a2,
&v6);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v10);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v10);
if ( *((_QWORD *)&v9 + 1) )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v9 + 1));
if ( *((_QWORD *)&v8 + 1) )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v8 + 1));
if ( *((_QWORD *)&v7 + 1) )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v7 + 1));
v3 = *((_QWORD *)&v6 + 1);
if ( *((_QWORD *)&v6 + 1) )
{
if ( _libc_single_threaded )
{
v4 = *(_DWORD *)(*((_QWORD *)&v6 + 1) + 12LL);
*(_DWORD *)(*((_QWORD *)&v6 + 1) + 12LL) = v4 - 1;
}
else
{
v4 = _InterlockedExchangeAdd((volatile signed __int32 *)(*((_QWORD *)&v6 + 1) + 12LL), 0xFFFFFFFF);
}
if ( v4 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v3 + 24LL))(v3, 0LL);
}
return v2 + 16;
}
| operator[]:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x50
MOV RBX,RSI
MOV R15,RDI
LEA R14,[RSP + 0x40]
MOV qword ptr [R14 + 0x8],0x0
XORPS XMM0,XMM0
MOVAPS xmmword ptr [R14 + -0x40],XMM0
MOVAPS xmmword ptr [R14 + -0x30],XMM0
MOVAPS xmmword ptr [R14 + -0x20],XMM0
MOVAPS xmmword ptr [R14 + -0x10],XMM0
MOV byte ptr [R14],0x0
MOV RDI,R14
MOV ESI,0x1
CALL 0x0013175a
MOV RDI,R14
MOV ESI,0x1
CALL 0x0013175a
LAB_0016ef19:
MOV RDX,RSP
MOV RDI,R15
MOV RSI,RBX
CALL 0x0016efc4
LAB_0016ef27:
MOV RBX,RAX
MOV RDI,R14
XOR ESI,ESI
CALL 0x0013175a
MOV RDI,R14
CALL 0x00136dc4
MOV RDI,qword ptr [RSP + 0x38]
TEST RDI,RDI
JZ 0x0016ef4b
CALL 0x00131024
LAB_0016ef4b:
MOV RDI,qword ptr [RSP + 0x28]
TEST RDI,RDI
JZ 0x0016ef5a
CALL 0x00131024
LAB_0016ef5a:
MOV RDI,qword ptr [RSP + 0x18]
TEST RDI,RDI
JZ 0x0016ef69
CALL 0x00131024
LAB_0016ef69:
MOV RDI,qword ptr [RSP + 0x8]
TEST RDI,RDI
JZ 0x0016ef9f
MOV RAX,qword ptr [0x001edf98]
CMP byte ptr [RAX],0x0
JZ 0x0016ef8a
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x0016ef94
LAB_0016ef8a:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_0016ef94:
CMP EAX,0x1
JNZ 0x0016ef9f
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_0016ef9f:
ADD RBX,0x10
MOV RAX,RBX
ADD RSP,0x50
POP RBX
POP R14
POP R15
RET
|
/* nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>, minja::Value,
std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >,
std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const, minja::Value> >
>::operator[](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&) */
long __thiscall
nlohmann::json_abi_v3_11_3::
ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
::operator[](ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
*this,basic_json *param_1)
{
int *piVar1;
int iVar2;
long lVar3;
bool bVar4;
int8 local_68;
long *plStack_60;
int8 local_58;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_50;
int8 local_48;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_40;
int8 local_38;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_30;
data local_28 [8];
int8 local_20;
local_20 = 0;
local_68 = 0;
plStack_60 = (long *)0x0;
local_58 = 0;
p_Stack_50 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
local_48 = 0;
p_Stack_40 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
local_38 = 0;
p_Stack_30 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
local_28[0] = (data)0x0;
bVar4 = SUB81(local_28,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>
::assert_invariant(bVar4);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar4);
/* try { // try from 0016ef19 to 0016ef26 has its CatchHandler @ 0016efb0 */
lVar3 = emplace(this,param_1,(Value *)&local_68);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar4);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_28);
if (p_Stack_30 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_30);
}
if (p_Stack_40 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_40);
}
if (p_Stack_50 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_50);
}
if (plStack_60 != (long *)0x0) {
if (*PTR___libc_single_threaded_001edf98 == '\0') {
LOCK();
piVar1 = (int *)((long)plStack_60 + 0xc);
iVar2 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar2 = *(int *)((long)plStack_60 + 0xc);
*(int *)((long)plStack_60 + 0xc) = iVar2 + -1;
}
if (iVar2 == 1) {
(**(code **)(*plStack_60 + 0x18))();
}
}
return lVar3 + 0x10;
}
| |
48,261 | testing::internal::StreamingListener::OnTestProgramEnd(testing::UnitTest const&) | giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/src/gtest-internal-inl.h | void OnTestProgramEnd(const UnitTest& unit_test) override {
// Note that Google Test current only report elapsed time for each
// test iteration, not for the entire test program.
SendLn("event=TestProgramEnd&passed=" + FormatBool(unit_test.Passed()));
// Notify the streaming server to stop.
socket_writer_->CloseConnection();
} | O3 | c | testing::internal::StreamingListener::OnTestProgramEnd(testing::UnitTest const&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movq 0x40(%rsi), %rdi
callq 0x34788
leaq 0x963b(%rip), %rcx # 0x42343
leaq 0xb126(%rip), %rsi # 0x43e35
testb %al, %al
cmovneq %rcx, %rsi
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x961f(%rip), %rax # 0x42344
leaq 0xb10a(%rip), %rdx # 0x43e36
cmovneq %rax, %rdx
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x3911e
leaq 0xb872(%rip), %rcx # 0x445b6
movl $0x1c, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x8590
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x38d7c
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x38d83
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rsp, %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rbx), %rdi
callq 0x3903c
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x38dbc
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x84e0
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x38dd3
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x84e0
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x38e05
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x84e0
jmp 0x38e05
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x38e1c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x84e0
movq %rbx, %rdi
callq 0x8990
| _ZN7testing8internal17StreamingListener16OnTestProgramEndERKNS_8UnitTestE:
push r15
push r14
push rbx
sub rsp, 40h
mov rbx, rdi
mov rdi, [rsi+40h]; this
call _ZNK7testing8internal12UnitTestImpl6PassedEv; testing::internal::UnitTestImpl::Passed(void)
lea rcx, aFcntlPipeFd1FS+22h; "1"
lea rsi, aStaticCastSize+77h; "0"
test al, al
cmovnz rsi, rcx
lea r15, [rsp+58h+var_28]
mov [r15-10h], r15
lea rax, aFcntlPipeFd1FS+23h; ""
lea rdx, aStaticCastSize+78h; ""
cmovnz rdx, rax
lea r14, [rsp+58h+var_38]
mov rdi, r14
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rcx, aEventTestprogr_0; "event=TestProgramEnd&passed="
mov r8d, 1Ch
mov rdi, r14
xor esi, esi
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong)
lea r14, [rsp+58h+var_48]
mov [r14-10h], r14
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_38D7C
mov [rsp+58h+var_58], rdx
mov rdx, [rcx]
mov [rsp+58h+var_48], rdx
jmp short loc_38D83
loc_38D7C:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r14], xmm0
loc_38D83:
mov rdx, [rax+8]
mov rsi, rsp
mov [rsi+8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
mov rdi, [rbx+8]
call _ZN7testing8internal17StreamingListener20AbstractSocketWriter6SendLnERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::StreamingListener::AbstractSocketWriter::SendLn(std::string const&)
mov rdi, [rsp+58h+var_58]; void *
cmp rdi, r14
jz short loc_38DBC
mov rsi, [rsp+58h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_38DBC:
mov rdi, [rsp+58h+var_38]; void *
cmp rdi, r15
jz short loc_38DD3
mov rsi, [rsp+58h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_38DD3:
mov rdi, [rbx+8]
mov rax, [rdi]
call qword ptr [rax+18h]
add rsp, 40h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
mov rdi, [rsp+0]; void *
cmp rdi, r14
jz short loc_38E05
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_38E05
mov rbx, rax
loc_38E05:
mov rdi, [rsp+arg_18]; void *
cmp rdi, r15
jz short loc_38E1C
mov rsi, [rsp+arg_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_38E1C:
mov rdi, rbx
call __Unwind_Resume
| long long testing::internal::StreamingListener::OnTestProgramEnd(
testing::internal::StreamingListener *this,
testing::internal::UnitTestImpl **a2)
{
bool v2; // al
char *v3; // rsi
char *v4; // rdx
long long v5; // rax
int v6; // r8d
int v7; // r9d
__int128 *v8; // rcx
int v9; // edx
void *v11; // [rsp+0h] [rbp-58h] BYREF
long long v12; // [rsp+8h] [rbp-50h]
__int128 v13; // [rsp+10h] [rbp-48h] BYREF
void *v14[2]; // [rsp+20h] [rbp-38h] BYREF
_QWORD v15[5]; // [rsp+30h] [rbp-28h] BYREF
v2 = testing::internal::UnitTestImpl::Passed(a2[8]);
v3 = "0";
if ( v2 )
v3 = "1";
v14[0] = v15;
v4 = "";
if ( v2 )
v4 = "";
std::string::_M_construct<char const*>(v14, v3, v4);
v5 = std::string::replace(v14, 0LL, 0LL);
v11 = &v13;
v8 = (__int128 *)(v5 + 16);
if ( *(_QWORD *)v5 == v5 + 16 )
{
v13 = *v8;
}
else
{
v11 = *(void **)v5;
*(_QWORD *)&v13 = *(_QWORD *)v8;
}
v12 = *(_QWORD *)(v5 + 8);
v9 = v12;
*(_QWORD *)v5 = v8;
*(_QWORD *)(v5 + 8) = 0LL;
*(_BYTE *)(v5 + 16) = 0;
testing::internal::StreamingListener::AbstractSocketWriter::SendLn(
*((_QWORD *)this + 1),
(unsigned int)&v11,
v9,
(_DWORD)v8,
v6,
v7);
if ( v11 != &v13 )
operator delete(v11, v13 + 1);
if ( v14[0] != v15 )
operator delete(v14[0], v15[0] + 1LL);
return (*(long long ( **)(_QWORD))(**((_QWORD **)this + 1) + 24LL))(*((_QWORD *)this + 1));
}
| OnTestProgramEnd:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x40
MOV RBX,RDI
MOV RDI,qword ptr [RSI + 0x40]
CALL 0x00134788
LEA RCX,[0x142343]
LEA RSI,[0x143e35]
TEST AL,AL
CMOVNZ RSI,RCX
LEA R15,[RSP + 0x30]
MOV qword ptr [R15 + -0x10],R15
LEA RAX,[0x142344]
LEA RDX,[0x143e36]
CMOVNZ RDX,RAX
LEA R14,[RSP + 0x20]
MOV RDI,R14
CALL 0x0013911e
LAB_00138d3d:
LEA RCX,[0x1445b6]
MOV R8D,0x1c
MOV RDI,R14
XOR ESI,ESI
XOR EDX,EDX
CALL 0x00108590
LEA R14,[RSP + 0x10]
MOV qword ptr [R14 + -0x10],R14
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x00138d7c
MOV qword ptr [RSP],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x10],RDX
JMP 0x00138d83
LAB_00138d7c:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R14],XMM0
LAB_00138d83:
MOV RDX,qword ptr [RAX + 0x8]
MOV RSI,RSP
MOV qword ptr [RSI + 0x8],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
MOV RDI,qword ptr [RBX + 0x8]
LAB_00138da1:
CALL 0x0013903c
LAB_00138da6:
MOV RDI,qword ptr [RSP]
CMP RDI,R14
JZ 0x00138dbc
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x001084e0
LAB_00138dbc:
MOV RDI,qword ptr [RSP + 0x20]
CMP RDI,R15
JZ 0x00138dd3
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x001084e0
LAB_00138dd3:
MOV RDI,qword ptr [RBX + 0x8]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
ADD RSP,0x40
POP RBX
POP R14
POP R15
RET
|
/* testing::internal::StreamingListener::OnTestProgramEnd(testing::UnitTest const&) */
void __thiscall
testing::internal::StreamingListener::OnTestProgramEnd(StreamingListener *this,UnitTest *param_1)
{
char cVar1;
long *plVar2;
long *plVar3;
char *pcVar4;
char *pcVar5;
long *local_58;
long local_50;
long local_48;
long lStack_40;
long *local_38 [2];
long local_28 [2];
cVar1 = UnitTestImpl::Passed(*(UnitTestImpl **)(param_1 + 0x40));
pcVar5 = "0";
if (cVar1 != '\0') {
pcVar5 = "1";
}
pcVar4 = "";
if (cVar1 != '\0') {
pcVar4 = "";
}
local_38[0] = local_28;
std::__cxx11::string::_M_construct<char_const*>(local_38,pcVar5,pcVar4);
/* try { // try from 00138d3d to 00138d55 has its CatchHandler @ 00138e02 */
plVar2 = (long *)std::__cxx11::string::replace((ulong)local_38,0,(char *)0x0,0x1445b6);
plVar3 = plVar2 + 2;
if ((long *)*plVar2 == plVar3) {
local_48 = *plVar3;
lStack_40 = plVar2[3];
local_58 = &local_48;
}
else {
local_48 = *plVar3;
local_58 = (long *)*plVar2;
}
local_50 = plVar2[1];
*plVar2 = (long)plVar3;
plVar2[1] = 0;
*(int1 *)(plVar2 + 2) = 0;
/* try { // try from 00138da1 to 00138da5 has its CatchHandler @ 00138de7 */
AbstractSocketWriter::SendLn(*(AbstractSocketWriter **)(this + 8),(string *)&local_58);
if (local_58 != &local_48) {
operator_delete(local_58,local_48 + 1);
}
if (local_38[0] != local_28) {
operator_delete(local_38[0],local_28[0] + 1);
}
(**(code **)(**(long **)(this + 8) + 0x18))();
return;
}
| |
48,262 | reset_simple_key_cache_counters | eloqsql/mysys/mf_keycache.c | static
int reset_simple_key_cache_counters(const char *name __attribute__((unused)),
SIMPLE_KEY_CACHE_CB *keycache)
{
DBUG_ENTER("reset_simple_key_cache_counters");
if (!keycache->key_cache_inited)
{
DBUG_PRINT("info", ("Key cache %s not initialized.", name));
DBUG_RETURN(0);
}
DBUG_PRINT("info", ("Resetting counters for key cache %s.", name));
keycache->global_blocks_changed= 0; /* Key_blocks_not_flushed */
keycache->global_cache_r_requests= 0; /* Key_read_requests */
keycache->global_cache_read= 0; /* Key_reads */
keycache->global_cache_w_requests= 0; /* Key_write_requests */
keycache->global_cache_write= 0; /* Key_writes */
DBUG_RETURN(0);
} | O0 | c | reset_simple_key_cache_counters:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpb $0x0, (%rax)
jne 0xe6094
jmp 0xe6087
jmp 0xe6089
jmp 0xe608b
movl $0x0, -0x4(%rbp)
jmp 0xe60ea
jmp 0xe6096
jmp 0xe6098
movq -0x18(%rbp), %rax
movq $0x0, 0x138(%rax)
movq -0x18(%rbp), %rax
movq $0x0, 0x150(%rax)
movq -0x18(%rbp), %rax
movq $0x0, 0x158(%rax)
movq -0x18(%rbp), %rax
movq $0x0, 0x140(%rax)
movq -0x18(%rbp), %rax
movq $0x0, 0x148(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nop
| reset_simple_key_cache_counters:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_18]
cmp byte ptr [rax], 0
jnz short loc_E6094
jmp short $+2
loc_E6087:
jmp short $+2
loc_E6089:
jmp short $+2
loc_E608B:
mov [rbp+var_4], 0
jmp short loc_E60EA
loc_E6094:
jmp short $+2
loc_E6096:
jmp short $+2
loc_E6098:
mov rax, [rbp+var_18]
mov qword ptr [rax+138h], 0
mov rax, [rbp+var_18]
mov qword ptr [rax+150h], 0
mov rax, [rbp+var_18]
mov qword ptr [rax+158h], 0
mov rax, [rbp+var_18]
mov qword ptr [rax+140h], 0
mov rax, [rbp+var_18]
mov qword ptr [rax+148h], 0
mov [rbp+var_4], 0
loc_E60EA:
mov eax, [rbp+var_4]
pop rbp
retn
| long long reset_simple_key_cache_counters(long long a1, long long a2)
{
if ( *(_BYTE *)a2 )
{
*(_QWORD *)(a2 + 312) = 0LL;
*(_QWORD *)(a2 + 336) = 0LL;
*(_QWORD *)(a2 + 344) = 0LL;
*(_QWORD *)(a2 + 320) = 0LL;
*(_QWORD *)(a2 + 328) = 0LL;
}
return 0LL;
}
| reset_simple_key_cache_counters:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x18]
CMP byte ptr [RAX],0x0
JNZ 0x001e6094
JMP 0x001e6087
LAB_001e6087:
JMP 0x001e6089
LAB_001e6089:
JMP 0x001e608b
LAB_001e608b:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001e60ea
LAB_001e6094:
JMP 0x001e6096
LAB_001e6096:
JMP 0x001e6098
LAB_001e6098:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x138],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x150],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x158],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x140],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x148],0x0
MOV dword ptr [RBP + -0x4],0x0
LAB_001e60ea:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4 reset_simple_key_cache_counters(int8 param_1,char *param_2)
{
if (*param_2 != '\0') {
param_2[0x138] = '\0';
param_2[0x139] = '\0';
param_2[0x13a] = '\0';
param_2[0x13b] = '\0';
param_2[0x13c] = '\0';
param_2[0x13d] = '\0';
param_2[0x13e] = '\0';
param_2[0x13f] = '\0';
param_2[0x150] = '\0';
param_2[0x151] = '\0';
param_2[0x152] = '\0';
param_2[0x153] = '\0';
param_2[0x154] = '\0';
param_2[0x155] = '\0';
param_2[0x156] = '\0';
param_2[0x157] = '\0';
param_2[0x158] = '\0';
param_2[0x159] = '\0';
param_2[0x15a] = '\0';
param_2[0x15b] = '\0';
param_2[0x15c] = '\0';
param_2[0x15d] = '\0';
param_2[0x15e] = '\0';
param_2[0x15f] = '\0';
param_2[0x140] = '\0';
param_2[0x141] = '\0';
param_2[0x142] = '\0';
param_2[0x143] = '\0';
param_2[0x144] = '\0';
param_2[0x145] = '\0';
param_2[0x146] = '\0';
param_2[0x147] = '\0';
param_2[0x148] = '\0';
param_2[0x149] = '\0';
param_2[0x14a] = '\0';
param_2[0x14b] = '\0';
param_2[0x14c] = '\0';
param_2[0x14d] = '\0';
param_2[0x14e] = '\0';
param_2[0x14f] = '\0';
}
return 0;
}
| |
48,263 | reset_simple_key_cache_counters | eloqsql/mysys/mf_keycache.c | static
int reset_simple_key_cache_counters(const char *name __attribute__((unused)),
SIMPLE_KEY_CACHE_CB *keycache)
{
DBUG_ENTER("reset_simple_key_cache_counters");
if (!keycache->key_cache_inited)
{
DBUG_PRINT("info", ("Key cache %s not initialized.", name));
DBUG_RETURN(0);
}
DBUG_PRINT("info", ("Resetting counters for key cache %s.", name));
keycache->global_blocks_changed= 0; /* Key_blocks_not_flushed */
keycache->global_cache_r_requests= 0; /* Key_read_requests */
keycache->global_cache_read= 0; /* Key_reads */
keycache->global_cache_w_requests= 0; /* Key_write_requests */
keycache->global_cache_write= 0; /* Key_writes */
DBUG_RETURN(0);
} | O3 | c | reset_simple_key_cache_counters:
pushq %rbp
movq %rsp, %rbp
cmpb $0x0, (%rsi)
je 0x99496
xorps %xmm0, %xmm0
movups %xmm0, 0x148(%rsi)
movups %xmm0, 0x138(%rsi)
movq $0x0, 0x158(%rsi)
xorl %eax, %eax
popq %rbp
retq
| reset_simple_key_cache_counters:
push rbp
mov rbp, rsp
cmp byte ptr [rsi], 0
jz short loc_99496
xorps xmm0, xmm0
movups xmmword ptr [rsi+148h], xmm0
movups xmmword ptr [rsi+138h], xmm0
mov qword ptr [rsi+158h], 0
loc_99496:
xor eax, eax
pop rbp
retn
| long long reset_simple_key_cache_counters(long long a1, long long a2)
{
if ( *(_BYTE *)a2 )
{
*(_OWORD *)(a2 + 328) = 0LL;
*(_OWORD *)(a2 + 312) = 0LL;
*(_QWORD *)(a2 + 344) = 0LL;
}
return 0LL;
}
| reset_simple_key_cache_counters:
PUSH RBP
MOV RBP,RSP
CMP byte ptr [RSI],0x0
JZ 0x00199496
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSI + 0x148],XMM0
MOVUPS xmmword ptr [RSI + 0x138],XMM0
MOV qword ptr [RSI + 0x158],0x0
LAB_00199496:
XOR EAX,EAX
POP RBP
RET
|
int8 reset_simple_key_cache_counters(int8 param_1,char *param_2)
{
if (*param_2 != '\0') {
param_2[0x148] = '\0';
param_2[0x149] = '\0';
param_2[0x14a] = '\0';
param_2[0x14b] = '\0';
param_2[0x14c] = '\0';
param_2[0x14d] = '\0';
param_2[0x14e] = '\0';
param_2[0x14f] = '\0';
param_2[0x150] = '\0';
param_2[0x151] = '\0';
param_2[0x152] = '\0';
param_2[0x153] = '\0';
param_2[0x154] = '\0';
param_2[0x155] = '\0';
param_2[0x156] = '\0';
param_2[0x157] = '\0';
param_2[0x138] = '\0';
param_2[0x139] = '\0';
param_2[0x13a] = '\0';
param_2[0x13b] = '\0';
param_2[0x13c] = '\0';
param_2[0x13d] = '\0';
param_2[0x13e] = '\0';
param_2[0x13f] = '\0';
param_2[0x140] = '\0';
param_2[0x141] = '\0';
param_2[0x142] = '\0';
param_2[0x143] = '\0';
param_2[0x144] = '\0';
param_2[0x145] = '\0';
param_2[0x146] = '\0';
param_2[0x147] = '\0';
param_2[0x158] = '\0';
param_2[0x159] = '\0';
param_2[0x15a] = '\0';
param_2[0x15b] = '\0';
param_2[0x15c] = '\0';
param_2[0x15d] = '\0';
param_2[0x15e] = '\0';
param_2[0x15f] = '\0';
}
return 0;
}
| |
48,264 | LefDefParser::defiStyles::setPolygon(LefDefParser::defiGeometries*) | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiMisc.cpp | void defiStyles::setPolygon(defiGeometries* geom) {
struct defiPoints* p;
int i, x, y;
if (polygon_ == 0) {
p = (struct defiPoints*)malloc(sizeof(struct defiPoints));
p->numPoints = geom->numPoints();
p->x = (int*)malloc(sizeof(int)*p->numPoints);
p->y = (int*)malloc(sizeof(int)*p->numPoints);
numPointAlloc_ = p->numPoints; // keep track the max number pts
} else if (numPointAlloc_ < geom->numPoints()) {
// the incoming polygon has more number then has been allocated,
// need to reallocate more memory
p = polygon_;
free((char*)(p->x));
free((char*)(p->y));
p->numPoints = geom->numPoints();
p->x = (int*)malloc(sizeof(int)*p->numPoints);
p->y = (int*)malloc(sizeof(int)*p->numPoints);
numPointAlloc_ = p->numPoints; // keep track the max number pts
} else {
p = polygon_;
p->numPoints = geom->numPoints();
}
for (i = 0; i < p->numPoints; i++) {
geom->points(i, &x, &y);
p->x[i] = x;
p->y[i] = y;
}
polygon_ = p;
} | O0 | cpp | LefDefParser::defiStyles::setPolygon(LefDefParser::defiGeometries*):
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rax)
jne 0x2ab8f
movl $0x18, %edi
callq 0x72d0
movq %rax, 0x20(%rsp)
movq 0x28(%rsp), %rdi
callq 0x2a930
movl %eax, %ecx
movq 0x20(%rsp), %rax
movl %ecx, (%rax)
movq 0x20(%rsp), %rax
movslq (%rax), %rdi
shlq $0x2, %rdi
callq 0x72d0
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x20(%rsp), %rax
movslq (%rax), %rdi
shlq $0x2, %rdi
callq 0x72d0
movq %rax, %rdx
movq 0x8(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rdx, 0x10(%rcx)
movq 0x20(%rsp), %rcx
movl (%rcx), %ecx
movl %ecx, 0x10(%rax)
jmp 0x2ac5e
movq 0x8(%rsp), %rax
movl 0x10(%rax), %eax
movl %eax, 0x4(%rsp)
movq 0x28(%rsp), %rdi
callq 0x2a930
movl %eax, %ecx
movl 0x4(%rsp), %eax
cmpl %ecx, %eax
jge 0x2ac3b
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x72a0
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x72a0
movq 0x28(%rsp), %rdi
callq 0x2a930
movl %eax, %ecx
movq 0x20(%rsp), %rax
movl %ecx, (%rax)
movq 0x20(%rsp), %rax
movslq (%rax), %rdi
shlq $0x2, %rdi
callq 0x72d0
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x20(%rsp), %rax
movslq (%rax), %rdi
shlq $0x2, %rdi
callq 0x72d0
movq %rax, %rdx
movq 0x8(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rdx, 0x10(%rcx)
movq 0x20(%rsp), %rcx
movl (%rcx), %ecx
movl %ecx, 0x10(%rax)
jmp 0x2ac5c
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x28(%rsp), %rdi
callq 0x2a930
movl %eax, %ecx
movq 0x20(%rsp), %rax
movl %ecx, (%rax)
jmp 0x2ac5e
movl $0x0, 0x1c(%rsp)
movl 0x1c(%rsp), %eax
movq 0x20(%rsp), %rcx
cmpl (%rcx), %eax
jge 0x2acc2
movq 0x28(%rsp), %rdi
movl 0x1c(%rsp), %esi
leaq 0x18(%rsp), %rdx
leaq 0x14(%rsp), %rcx
callq 0x2a940
movl 0x18(%rsp), %edx
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movslq 0x1c(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movl 0x14(%rsp), %edx
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rax
movslq 0x1c(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x2ac66
movq 0x8(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x8(%rax)
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
| _ZN12LefDefParser10defiStyles10setPolygonEPNS_14defiGeometriesE:
sub rsp, 38h
mov [rsp+38h+var_8], rdi
mov [rsp+38h+var_10], rsi
mov rax, [rsp+38h+var_8]
mov [rsp+38h+var_30], rax
cmp qword ptr [rax+8], 0
jnz short loc_2AB8F
mov edi, 18h
call _malloc
mov [rsp+38h+var_18], rax
mov rdi, [rsp+38h+var_10]; this
call _ZNK12LefDefParser14defiGeometries9numPointsEv; LefDefParser::defiGeometries::numPoints(void)
mov ecx, eax
mov rax, [rsp+38h+var_18]
mov [rax], ecx
mov rax, [rsp+38h+var_18]
movsxd rdi, dword ptr [rax]
shl rdi, 2
call _malloc
mov rcx, rax
mov rax, [rsp+38h+var_18]
mov [rax+8], rcx
mov rax, [rsp+38h+var_18]
movsxd rdi, dword ptr [rax]
shl rdi, 2
call _malloc
mov rdx, rax
mov rax, [rsp+38h+var_30]
mov rcx, [rsp+38h+var_18]
mov [rcx+10h], rdx
mov rcx, [rsp+38h+var_18]
mov ecx, [rcx]
mov [rax+10h], ecx
jmp loc_2AC5E
loc_2AB8F:
mov rax, [rsp+38h+var_30]
mov eax, [rax+10h]
mov [rsp+38h+var_34], eax
mov rdi, [rsp+38h+var_10]; this
call _ZNK12LefDefParser14defiGeometries9numPointsEv; LefDefParser::defiGeometries::numPoints(void)
mov ecx, eax
mov eax, [rsp+38h+var_34]
cmp eax, ecx
jge loc_2AC3B
mov rax, [rsp+38h+var_30]
mov rax, [rax+8]
mov [rsp+38h+var_18], rax
mov rax, [rsp+38h+var_18]
mov rdi, [rax+8]
call _free
mov rax, [rsp+38h+var_18]
mov rdi, [rax+10h]
call _free
mov rdi, [rsp+38h+var_10]; this
call _ZNK12LefDefParser14defiGeometries9numPointsEv; LefDefParser::defiGeometries::numPoints(void)
mov ecx, eax
mov rax, [rsp+38h+var_18]
mov [rax], ecx
mov rax, [rsp+38h+var_18]
movsxd rdi, dword ptr [rax]
shl rdi, 2
call _malloc
mov rcx, rax
mov rax, [rsp+38h+var_18]
mov [rax+8], rcx
mov rax, [rsp+38h+var_18]
movsxd rdi, dword ptr [rax]
shl rdi, 2
call _malloc
mov rdx, rax
mov rax, [rsp+38h+var_30]
mov rcx, [rsp+38h+var_18]
mov [rcx+10h], rdx
mov rcx, [rsp+38h+var_18]
mov ecx, [rcx]
mov [rax+10h], ecx
jmp short loc_2AC5C
loc_2AC3B:
mov rax, [rsp+38h+var_30]
mov rax, [rax+8]
mov [rsp+38h+var_18], rax
mov rdi, [rsp+38h+var_10]; this
call _ZNK12LefDefParser14defiGeometries9numPointsEv; LefDefParser::defiGeometries::numPoints(void)
mov ecx, eax
mov rax, [rsp+38h+var_18]
mov [rax], ecx
loc_2AC5C:
jmp short $+2
loc_2AC5E:
mov [rsp+38h+var_1C], 0
loc_2AC66:
mov eax, [rsp+38h+var_1C]
mov rcx, [rsp+38h+var_18]
cmp eax, [rcx]
jge short loc_2ACC2
mov rdi, [rsp+38h+var_10]; this
mov esi, [rsp+38h+var_1C]; int
lea rdx, [rsp+38h+var_20]; int *
lea rcx, [rsp+38h+var_24]; int *
call _ZNK12LefDefParser14defiGeometries6pointsEiPiS1_; LefDefParser::defiGeometries::points(int,int *,int *)
mov edx, [rsp+38h+var_20]
mov rax, [rsp+38h+var_18]
mov rax, [rax+8]
movsxd rcx, [rsp+38h+var_1C]
mov [rax+rcx*4], edx
mov edx, [rsp+38h+var_24]
mov rax, [rsp+38h+var_18]
mov rax, [rax+10h]
movsxd rcx, [rsp+38h+var_1C]
mov [rax+rcx*4], edx
mov eax, [rsp+38h+var_1C]
add eax, 1
mov [rsp+38h+var_1C], eax
jmp short loc_2AC66
loc_2ACC2:
mov rax, [rsp+38h+var_30]
mov rcx, [rsp+38h+var_18]
mov [rax+8], rcx
add rsp, 38h
retn
| LefDefParser::defiStyles * LefDefParser::defiStyles::setPolygon(
LefDefParser::defiStyles *this,
LefDefParser::defiGeometries *a2)
{
LefDefParser::defiStyles *result; // rax
int v3; // [rsp+4h] [rbp-34h]
int v4; // [rsp+14h] [rbp-24h] BYREF
int v5; // [rsp+18h] [rbp-20h] BYREF
int i; // [rsp+1Ch] [rbp-1Ch]
int *v7; // [rsp+20h] [rbp-18h]
LefDefParser::defiGeometries *v8; // [rsp+28h] [rbp-10h]
LefDefParser::defiStyles *v9; // [rsp+30h] [rbp-8h]
v9 = this;
v8 = a2;
if ( *((_QWORD *)this + 1) )
{
v3 = *((_DWORD *)this + 4);
if ( v3 >= (int)LefDefParser::defiGeometries::numPoints(v8) )
{
v7 = (int *)*((_QWORD *)this + 1);
*v7 = LefDefParser::defiGeometries::numPoints(v8);
}
else
{
v7 = (int *)*((_QWORD *)this + 1);
free(*((_QWORD *)v7 + 1));
free(*((_QWORD *)v7 + 2));
*v7 = LefDefParser::defiGeometries::numPoints(v8);
*((_QWORD *)v7 + 1) = malloc(4LL * *v7);
*((_QWORD *)v7 + 2) = malloc(4LL * *v7);
*((_DWORD *)this + 4) = *v7;
}
}
else
{
v7 = (int *)malloc(24LL);
*v7 = LefDefParser::defiGeometries::numPoints(v8);
*((_QWORD *)v7 + 1) = malloc(4LL * *v7);
*((_QWORD *)v7 + 2) = malloc(4LL * *v7);
*((_DWORD *)this + 4) = *v7;
}
for ( i = 0; i < *v7; ++i )
{
LefDefParser::defiGeometries::points((LefDefParser::defrData **)v8, i, &v5, &v4);
*(_DWORD *)(*((_QWORD *)v7 + 1) + 4LL * i) = v5;
*(_DWORD *)(*((_QWORD *)v7 + 2) + 4LL * i) = v4;
}
result = this;
*((_QWORD *)this + 1) = v7;
return result;
}
| setPolygon:
SUB RSP,0x38
MOV qword ptr [RSP + 0x30],RDI
MOV qword ptr [RSP + 0x28],RSI
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x8],RAX
CMP qword ptr [RAX + 0x8],0x0
JNZ 0x0012ab8f
MOV EDI,0x18
CALL 0x001072d0
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x0012a930
MOV ECX,EAX
MOV RAX,qword ptr [RSP + 0x20]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RSP + 0x20]
MOVSXD RDI,dword ptr [RAX]
SHL RDI,0x2
CALL 0x001072d0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RSP + 0x20]
MOVSXD RDI,dword ptr [RAX]
SHL RDI,0x2
CALL 0x001072d0
MOV RDX,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x20]
MOV qword ptr [RCX + 0x10],RDX
MOV RCX,qword ptr [RSP + 0x20]
MOV ECX,dword ptr [RCX]
MOV dword ptr [RAX + 0x10],ECX
JMP 0x0012ac5e
LAB_0012ab8f:
MOV RAX,qword ptr [RSP + 0x8]
MOV EAX,dword ptr [RAX + 0x10]
MOV dword ptr [RSP + 0x4],EAX
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x0012a930
MOV ECX,EAX
MOV EAX,dword ptr [RSP + 0x4]
CMP EAX,ECX
JGE 0x0012ac3b
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x001072a0
MOV RAX,qword ptr [RSP + 0x20]
MOV RDI,qword ptr [RAX + 0x10]
CALL 0x001072a0
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x0012a930
MOV ECX,EAX
MOV RAX,qword ptr [RSP + 0x20]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RSP + 0x20]
MOVSXD RDI,dword ptr [RAX]
SHL RDI,0x2
CALL 0x001072d0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RSP + 0x20]
MOVSXD RDI,dword ptr [RAX]
SHL RDI,0x2
CALL 0x001072d0
MOV RDX,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x20]
MOV qword ptr [RCX + 0x10],RDX
MOV RCX,qword ptr [RSP + 0x20]
MOV ECX,dword ptr [RCX]
MOV dword ptr [RAX + 0x10],ECX
JMP 0x0012ac5c
LAB_0012ac3b:
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x0012a930
MOV ECX,EAX
MOV RAX,qword ptr [RSP + 0x20]
MOV dword ptr [RAX],ECX
LAB_0012ac5c:
JMP 0x0012ac5e
LAB_0012ac5e:
MOV dword ptr [RSP + 0x1c],0x0
LAB_0012ac66:
MOV EAX,dword ptr [RSP + 0x1c]
MOV RCX,qword ptr [RSP + 0x20]
CMP EAX,dword ptr [RCX]
JGE 0x0012acc2
MOV RDI,qword ptr [RSP + 0x28]
MOV ESI,dword ptr [RSP + 0x1c]
LEA RDX,[RSP + 0x18]
LEA RCX,[RSP + 0x14]
CALL 0x0012a940
MOV EDX,dword ptr [RSP + 0x18]
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX + 0x8]
MOVSXD RCX,dword ptr [RSP + 0x1c]
MOV dword ptr [RAX + RCX*0x4],EDX
MOV EDX,dword ptr [RSP + 0x14]
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX + 0x10]
MOVSXD RCX,dword ptr [RSP + 0x1c]
MOV dword ptr [RAX + RCX*0x4],EDX
MOV EAX,dword ptr [RSP + 0x1c]
ADD EAX,0x1
MOV dword ptr [RSP + 0x1c],EAX
JMP 0x0012ac66
LAB_0012acc2:
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x20]
MOV qword ptr [RAX + 0x8],RCX
ADD RSP,0x38
RET
|
/* LefDefParser::defiStyles::setPolygon(LefDefParser::defiGeometries*) */
void __thiscall LefDefParser::defiStyles::setPolygon(defiStyles *this,defiGeometries *param_1)
{
int iVar1;
int iVar2;
void *pvVar3;
int local_24;
int local_20;
int local_1c;
int *local_18;
defiGeometries *local_10;
defiStyles *local_8;
local_10 = param_1;
local_8 = this;
if (*(long *)(this + 8) == 0) {
local_18 = (int *)malloc(0x18);
iVar1 = defiGeometries::numPoints(local_10);
*local_18 = iVar1;
pvVar3 = malloc((long)*local_18 << 2);
*(void **)(local_18 + 2) = pvVar3;
pvVar3 = malloc((long)*local_18 << 2);
*(void **)(local_18 + 4) = pvVar3;
*(int *)(this + 0x10) = *local_18;
}
else {
iVar1 = *(int *)(this + 0x10);
iVar2 = defiGeometries::numPoints(param_1);
if (iVar1 < iVar2) {
local_18 = *(int **)(this + 8);
free(*(void **)(local_18 + 2));
free(*(void **)(local_18 + 4));
iVar1 = defiGeometries::numPoints(local_10);
*local_18 = iVar1;
pvVar3 = malloc((long)*local_18 << 2);
*(void **)(local_18 + 2) = pvVar3;
pvVar3 = malloc((long)*local_18 << 2);
*(void **)(local_18 + 4) = pvVar3;
*(int *)(this + 0x10) = *local_18;
}
else {
local_18 = *(int **)(this + 8);
iVar1 = defiGeometries::numPoints(local_10);
*local_18 = iVar1;
}
}
for (local_1c = 0; local_1c < *local_18; local_1c = local_1c + 1) {
defiGeometries::points(local_10,local_1c,&local_20,&local_24);
*(int *)(*(long *)(local_18 + 2) + (long)local_1c * 4) = local_20;
*(int *)(*(long *)(local_18 + 4) + (long)local_1c * 4) = local_24;
}
*(int **)(this + 8) = local_18;
return;
}
| |
48,265 | walk_and_copy | eloqsql/storage/myisam/ft_parser.c | static int walk_and_copy(FT_WORD *word,uint32 count,FT_DOCSTAT *docstat)
{
word->weight=LWS_IN_USE;
docstat->sum+=word->weight;
memcpy((docstat->list)++, word, sizeof(FT_WORD));
return 0;
} | O3 | c | walk_and_copy:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rdi, %rbx
testl %esi, %esi
je 0x73621
movl %esi, %eax
cvtsi2sd %rax, %xmm0
callq 0x29130
addsd 0x6d8b9(%rip), %xmm0 # 0xe0ed8
jmp 0x73625
xorpd %xmm0, %xmm0
movsd %xmm0, 0x8(%rbx)
addsd 0x10(%r14), %xmm0
movsd %xmm0, 0x10(%r14)
movq (%r14), %rax
leaq 0x18(%rax), %rcx
movq %rcx, (%r14)
movq 0x10(%rbx), %rcx
movq %rcx, 0x10(%rax)
movups (%rbx), %xmm0
movups %xmm0, (%rax)
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
| walk_and_copy_1:
push rbp
mov rbp, rsp
push r14
push rbx
mov r14, rdx
mov rbx, rdi
test esi, esi
jz short loc_73621
mov eax, esi
cvtsi2sd xmm0, rax
call _log
addsd xmm0, cs:qword_E0ED8
jmp short loc_73625
loc_73621:
xorpd xmm0, xmm0
loc_73625:
movsd qword ptr [rbx+8], xmm0
addsd xmm0, qword ptr [r14+10h]
movsd qword ptr [r14+10h], xmm0
mov rax, [r14]
lea rcx, [rax+18h]
mov [r14], rcx
mov rcx, [rbx+10h]
mov [rax+10h], rcx
movups xmm0, xmmword ptr [rbx]
movups xmmword ptr [rax], xmm0
xor eax, eax
pop rbx
pop r14
pop rbp
retn
| long long walk_and_copy_1(long long a1, int a2, double *a3)
{
double v4; // xmm0_8
double v5; // rax
if ( a2 )
v4 = log((double)a2) + 1.0;
else
v4 = 0.0;
*(double *)(a1 + 8) = v4;
a3[2] = v4 + a3[2];
v5 = *a3;
*(_QWORD *)a3 += 24LL;
*(_QWORD *)(*(_QWORD *)&v5 + 16LL) = *(_QWORD *)(a1 + 16);
**(_OWORD **)&v5 = *(_OWORD *)a1;
return 0LL;
}
| walk_and_copy:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV R14,RDX
MOV RBX,RDI
TEST ESI,ESI
JZ 0x00173621
MOV EAX,ESI
CVTSI2SD XMM0,RAX
CALL 0x00129130
ADDSD XMM0,qword ptr [0x001e0ed8]
JMP 0x00173625
LAB_00173621:
XORPD XMM0,XMM0
LAB_00173625:
MOVSD qword ptr [RBX + 0x8],XMM0
ADDSD XMM0,qword ptr [R14 + 0x10]
MOVSD qword ptr [R14 + 0x10],XMM0
MOV RAX,qword ptr [R14]
LEA RCX,[RAX + 0x18]
MOV qword ptr [R14],RCX
MOV RCX,qword ptr [RBX + 0x10]
MOV qword ptr [RAX + 0x10],RCX
MOVUPS XMM0,xmmword ptr [RBX]
MOVUPS xmmword ptr [RAX],XMM0
XOR EAX,EAX
POP RBX
POP R14
POP RBP
RET
|
int8 walk_and_copy(int8 *param_1,uint param_2,long *param_3)
{
int8 *puVar1;
double dVar2;
int8 uVar3;
if (param_2 == 0) {
dVar2 = 0.0;
}
else {
dVar2 = log((double)param_2);
dVar2 = dVar2 + DAT_001e0ed8;
}
param_1[1] = dVar2;
param_3[2] = (long)(dVar2 + (double)param_3[2]);
puVar1 = (int8 *)*param_3;
*param_3 = (long)(puVar1 + 3);
puVar1[2] = param_1[2];
uVar3 = param_1[1];
*puVar1 = *param_1;
puVar1[1] = uVar3;
return 0;
}
| |
48,266 | my_caseup_utf8mb3 | eloqsql/strings/ctype-utf8.c | static size_t my_caseup_utf8mb3(CHARSET_INFO *cs,
const char *src, size_t srclen,
char *dst, size_t dstlen)
{
my_wc_t wc;
int srcres, dstres;
const char *srcend= src + srclen;
char *dstend= dst + dstlen, *dst0= dst;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
DBUG_ASSERT(src != dst || cs->caseup_multiply == 1);
while ((src < srcend) &&
(srcres= my_utf8mb3_uni(cs, &wc, (uchar *) src, (uchar*) srcend)) > 0)
{
my_toupper_utf8mb3(uni_plane, &wc);
if ((dstres= my_uni_utf8mb3(cs, wc, (uchar*) dst, (uchar*) dstend)) <= 0)
break;
src+= srcres;
dst+= dstres;
}
return (size_t) (dst - dst0);
} | O3 | c | my_caseup_utf8mb3:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r13
movq %rcx, -0x30(%rbp)
testq %rdx, %rdx
jle 0x4f213
movq %r8, %r14
movq %rdx, %r15
movq %rsi, %r12
addq %rsi, %r15
movq -0x30(%rbp), %r13
addq %r13, %r14
movq 0x78(%rdi), %rax
movq %rax, -0x40(%rbp)
leaq -0x38(%rbp), %rsi
movq %r12, %rdx
movq %r15, %rcx
callq 0x4ee53
testl %eax, %eax
jle 0x4f213
movl %eax, %ebx
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x38(%rbp), %rax
movzbl %ah, %edx
movq (%rcx,%rdx,8), %rcx
testq %rcx, %rcx
je 0x4f1f2
movzbl %al, %eax
leaq (%rax,%rax,2), %rax
movl (%rcx,%rax,4), %eax
movq %rax, -0x38(%rbp)
movq %rax, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x4ef18
testl %eax, %eax
jle 0x4f213
movl %ebx, %ecx
addq %rcx, %r12
movl %eax, %eax
addq %rax, %r13
cmpq %r15, %r12
jb 0x4f1b7
subq -0x30(%rbp), %r13
movq %r13, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_caseup_utf8mb3:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r13, rcx
mov [rbp+var_30], rcx
test rdx, rdx
jle short loc_4F213
mov r14, r8
mov r15, rdx
mov r12, rsi
add r15, rsi
mov r13, [rbp+var_30]
add r14, r13
mov rax, [rdi+78h]
mov [rbp+var_40], rax
loc_4F1B7:
lea rsi, [rbp+var_38]
mov rdx, r12
mov rcx, r15
call my_utf8mb3_uni
test eax, eax
jle short loc_4F213
mov ebx, eax
mov rax, [rbp+var_40]
mov rcx, [rax+8]
mov rax, [rbp+var_38]
movzx edx, ah
mov rcx, [rcx+rdx*8]
test rcx, rcx
jz short loc_4F1F2
movzx eax, al
lea rax, [rax+rax*2]
mov eax, [rcx+rax*4]
mov [rbp+var_38], rax
loc_4F1F2:
mov rsi, rax
mov rdx, r13
mov rcx, r14
call my_uni_utf8mb3
test eax, eax
jle short loc_4F213
mov ecx, ebx
add r12, rcx
mov eax, eax
add r13, rax
cmp r12, r15
jb short loc_4F1B7
loc_4F213:
sub r13, [rbp+var_30]
mov rax, r13
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| _BYTE * my_caseup_utf8mb3(long long a1, unsigned __int8 *a2, long long a3, _BYTE *a4, long long a5)
{
_BYTE *v5; // r13
unsigned __int8 *v6; // r12
unsigned long long v7; // r15
unsigned long long v8; // r14
int v9; // eax
unsigned int v10; // ebx
unsigned long long v11; // rax
long long v12; // rcx
int v13; // eax
long long v15; // [rsp+0h] [rbp-40h]
unsigned long long v16; // [rsp+8h] [rbp-38h] BYREF
_BYTE *v17; // [rsp+10h] [rbp-30h]
v5 = a4;
v17 = a4;
if ( a3 > 0 )
{
v6 = a2;
v7 = (unsigned long long)&a2[a3];
v5 = v17;
v8 = (unsigned long long)&v17[a5];
v15 = *(_QWORD *)(a1 + 120);
do
{
v9 = my_utf8mb3_uni(a1, &v16, v6, v7);
if ( v9 <= 0 )
break;
v10 = v9;
v11 = v16;
v12 = *(_QWORD *)(*(_QWORD *)(v15 + 8) + 8LL * BYTE1(v16));
if ( v12 )
{
v11 = *(unsigned int *)(v12 + 12LL * (unsigned __int8)v16);
v16 = v11;
}
v13 = my_uni_utf8mb3(a1, v11, v5, v8);
if ( v13 <= 0 )
break;
v6 += v10;
v5 += (unsigned int)v13;
}
while ( (unsigned long long)v6 < v7 );
}
return (_BYTE *)(v5 - v17);
}
| my_caseup_utf8mb3:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R13,RCX
MOV qword ptr [RBP + -0x30],RCX
TEST RDX,RDX
JLE 0x0014f213
MOV R14,R8
MOV R15,RDX
MOV R12,RSI
ADD R15,RSI
MOV R13,qword ptr [RBP + -0x30]
ADD R14,R13
MOV RAX,qword ptr [RDI + 0x78]
MOV qword ptr [RBP + -0x40],RAX
LAB_0014f1b7:
LEA RSI,[RBP + -0x38]
MOV RDX,R12
MOV RCX,R15
CALL 0x0014ee53
TEST EAX,EAX
JLE 0x0014f213
MOV EBX,EAX
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x38]
MOVZX EDX,AH
MOV RCX,qword ptr [RCX + RDX*0x8]
TEST RCX,RCX
JZ 0x0014f1f2
MOVZX EAX,AL
LEA RAX,[RAX + RAX*0x2]
MOV EAX,dword ptr [RCX + RAX*0x4]
MOV qword ptr [RBP + -0x38],RAX
LAB_0014f1f2:
MOV RSI,RAX
MOV RDX,R13
MOV RCX,R14
CALL 0x0014ef18
TEST EAX,EAX
JLE 0x0014f213
MOV ECX,EBX
ADD R12,RCX
MOV EAX,EAX
ADD R13,RAX
CMP R12,R15
JC 0x0014f1b7
LAB_0014f213:
SUB R13,qword ptr [RBP + -0x30]
MOV RAX,R13
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_caseup_utf8mb3(long param_1,ulong param_2,long param_3,long param_4)
{
long lVar1;
long lVar2;
uint uVar3;
uint uVar4;
long lVar5;
ulong uVar6;
int8 local_40;
lVar5 = param_4;
if (0 < param_3) {
uVar6 = param_3 + param_2;
lVar1 = *(long *)(param_1 + 0x78);
do {
uVar3 = my_utf8mb3_uni();
if ((int)uVar3 < 1) break;
lVar2 = *(long *)(*(long *)(lVar1 + 8) + (local_40 >> 8 & 0xff) * 8);
if (lVar2 != 0) {
local_40 = (ulong)*(uint *)(lVar2 + (local_40 & 0xff) * 0xc);
}
uVar4 = my_uni_utf8mb3();
if ((int)uVar4 < 1) break;
param_2 = param_2 + uVar3;
lVar5 = lVar5 + (ulong)uVar4;
} while (param_2 < uVar6);
}
return lVar5 - param_4;
}
| |
48,267 | google::protobuf::TextFormat::Parser::ParserImpl::ReportWarning(int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/text_format.cc | void ReportWarning(int line, int col, const std::string& message) {
if (error_collector_ == nullptr) {
if (line >= 0) {
GOOGLE_LOG(WARNING) << "Warning parsing text-format "
<< root_message_type_->full_name() << ": " << (line + 1)
<< ":" << (col + 1) << ": " << message;
} else {
GOOGLE_LOG(WARNING) << "Warning parsing text-format "
<< root_message_type_->full_name() << ": " << message;
}
} else {
error_collector_->AddWarning(line, col, message);
}
} | O3 | cpp | google::protobuf::TextFormat::Parser::ParserImpl::ReportWarning(int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rcx, %rbx
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %r15
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x80d82
movq (%rdi), %rax
movq 0x18(%rax), %rax
movl %r14d, %esi
movl %ebp, %edx
movq %rbx, %rcx
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmpq *%rax
leaq 0x3b4fe(%rip), %rdx # 0xbc287
testl %r14d, %r14d
js 0x80e30
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movl $0x1, %esi
movl $0x160, %ecx # imm = 0x160
callq 0x169ca
leaq 0x3b671(%rip), %rsi # 0xbc421
movq %r12, %rdi
callq 0x164c8
movq 0xe8(%r15), %rcx
movq 0x8(%rcx), %rsi
addq $0x20, %rsi
movq %rax, %rdi
callq 0x164da
leaq 0x39674(%rip), %rsi # 0xba44a
movq %rax, %rdi
callq 0x164c8
incl %r14d
movq %rax, %rdi
movl %r14d, %esi
callq 0x167f0
leaq 0x355df(%rip), %rsi # 0xb63d2
movq %rax, %rdi
callq 0x164c8
incl %ebp
movq %rax, %rdi
movl %ebp, %esi
callq 0x167f0
leaq 0x3963c(%rip), %rsi # 0xba44a
movq %rax, %rdi
callq 0x164c8
movq %rax, %rdi
movq %rbx, %rsi
callq 0x164da
leaq 0x7(%rsp), %rdi
movq %rax, %rsi
callq 0x165a2
jmp 0x80e94
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movl $0x1, %esi
movl $0x164, %ecx # imm = 0x164
callq 0x169ca
leaq 0x3b5d3(%rip), %rsi # 0xbc421
movq %r14, %rdi
callq 0x164c8
movq 0xe8(%r15), %rcx
movq 0x8(%rcx), %rsi
addq $0x20, %rsi
movq %rax, %rdi
callq 0x164da
leaq 0x395d6(%rip), %rsi # 0xba44a
movq %rax, %rdi
callq 0x164c8
movq %rax, %rdi
movq %rbx, %rsi
callq 0x164da
leaq 0x7(%rsp), %rdi
movq %rax, %rsi
callq 0x165a2
leaq 0x8(%rsp), %rdi
callq 0x169e8
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x80eb1
jmp 0x80eb1
jmp 0x80eb1
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x169e8
movq %rbx, %rdi
callq 0xf570
| _ZN6google8protobuf10TextFormat6Parser10ParserImpl13ReportWarningEiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 40h
mov rbx, rcx
mov ebp, edx
mov r14d, esi
mov r15, rdi
mov rdi, [rdi]
test rdi, rdi
jz short loc_80D82
mov rax, [rdi]
mov rax, [rax+18h]
mov esi, r14d
mov edx, ebp
mov rcx, rbx
add rsp, 40h
pop rbx
pop r12
pop r14
pop r15
pop rbp
jmp rax
loc_80D82:
lea rdx, aWorkspaceLlm4b_17; "/workspace/llm4binary/github2025/aimrt_"...
test r14d, r14d
js loc_80E30
lea r12, [rsp+68h+var_60]
mov rdi, r12
mov esi, 1
mov ecx, 160h
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
lea rsi, aWarningParsing; "Warning parsing text-format "
mov rdi, r12
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov rcx, [r15+0E8h]
mov rsi, [rcx+8]
add rsi, 20h ; ' '
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&)
lea rsi, aField+0Fh; ": "
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
inc r14d
mov rdi, rax
mov esi, r14d
call _ZN6google8protobuf8internal10LogMessagelsEi; google::protobuf::internal::LogMessage::operator<<(int)
lea rsi, asc_B63D1+1; ":"
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
inc ebp
mov rdi, rax
mov esi, ebp
call _ZN6google8protobuf8internal10LogMessagelsEi; google::protobuf::internal::LogMessage::operator<<(int)
lea rsi, aField+0Fh; ": "
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov rdi, rax
mov rsi, rbx
call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&)
lea rdi, [rsp+68h+var_61]
mov rsi, rax
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
jmp short loc_80E94
loc_80E30:
lea r14, [rsp+68h+var_60]
mov rdi, r14
mov esi, 1
mov ecx, 164h
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
lea rsi, aWarningParsing; "Warning parsing text-format "
mov rdi, r14
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov rcx, [r15+0E8h]
mov rsi, [rcx+8]
add rsi, 20h ; ' '
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&)
lea rsi, aField+0Fh; ": "
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov rdi, rax
mov rsi, rbx
call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&)
lea rdi, [rsp+68h+var_61]
mov rsi, rax
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
loc_80E94:
lea rdi, [rsp+68h+var_60]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
add rsp, 40h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
jmp short loc_80EB1
jmp short loc_80EB1
jmp short $+2
loc_80EB1:
mov rbx, rax
lea rdi, [rsp+arg_0]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
mov rdi, rbx
call __Unwind_Resume
| void google::protobuf::TextFormat::Parser::ParserImpl::ReportWarning(
long long *a1,
int a2,
unsigned int a3,
long long a4)
{
long long v7; // rdi
long long v8; // rax
long long v9; // rax
long long v10; // rax
char *v11; // rdx
long long v12; // rax
long long v13; // rax
char *v14; // rdx
long long v15; // rax
long long v16; // rax
google::protobuf::internal::LogMessage *v17; // rax
long long v18; // rax
char v19; // [rsp+7h] [rbp-61h] BYREF
_BYTE v20[96]; // [rsp+8h] [rbp-60h] BYREF
v7 = *a1;
if ( v7 )
{
(*(void ( **)(long long, _QWORD, _QWORD, long long))(*(_QWORD *)v7 + 24LL))(v7, (unsigned int)a2, a3, a4);
}
else
{
if ( a2 < 0 )
{
google::protobuf::internal::LogMessage::LogMessage(
(long long)v20,
1,
(long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/text_format.cc",
356);
v18 = google::protobuf::internal::LogMessage::operator<<((long long)v20, (long long)"Warning parsing text-format ");
v15 = google::protobuf::internal::LogMessage::operator<<(v18, *(_QWORD *)(a1[29] + 8) + 32LL);
}
else
{
google::protobuf::internal::LogMessage::LogMessage(
(long long)v20,
1,
(long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/text_format.cc",
352);
v8 = google::protobuf::internal::LogMessage::operator<<((long long)v20, (long long)"Warning parsing text-format ");
v9 = google::protobuf::internal::LogMessage::operator<<(v8, *(_QWORD *)(a1[29] + 8) + 32LL);
v10 = google::protobuf::internal::LogMessage::operator<<(v9, (long long)": ");
v12 = google::protobuf::internal::LogMessage::operator<<(v10, a2 + 1, v11);
v13 = google::protobuf::internal::LogMessage::operator<<(v12, (long long)":");
v15 = google::protobuf::internal::LogMessage::operator<<(v13, a3 + 1, v14);
}
v16 = google::protobuf::internal::LogMessage::operator<<(v15, (long long)": ");
v17 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<(v16, a4);
google::protobuf::internal::LogFinisher::operator=((long long)&v19, v17);
google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v20);
}
}
| ReportWarning:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x40
MOV RBX,RCX
MOV EBP,EDX
MOV R14D,ESI
MOV R15,RDI
MOV RDI,qword ptr [RDI]
TEST RDI,RDI
JZ 0x00180d82
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0x18]
MOV ESI,R14D
MOV EDX,EBP
MOV RCX,RBX
ADD RSP,0x40
POP RBX
POP R12
POP R14
POP R15
POP RBP
JMP RAX
LAB_00180d82:
LEA RDX,[0x1bc287]
TEST R14D,R14D
JS 0x00180e30
LEA R12,[RSP + 0x8]
MOV RDI,R12
MOV ESI,0x1
MOV ECX,0x160
CALL 0x001169ca
LAB_00180da9:
LEA RSI,[0x1bc421]
MOV RDI,R12
CALL 0x001164c8
MOV RCX,qword ptr [R15 + 0xe8]
MOV RSI,qword ptr [RCX + 0x8]
ADD RSI,0x20
MOV RDI,RAX
CALL 0x001164da
LEA RSI,[0x1ba44a]
MOV RDI,RAX
CALL 0x001164c8
INC R14D
MOV RDI,RAX
MOV ESI,R14D
CALL 0x001167f0
LEA RSI,[0x1b63d2]
MOV RDI,RAX
CALL 0x001164c8
INC EBP
MOV RDI,RAX
MOV ESI,EBP
CALL 0x001167f0
LEA RSI,[0x1ba44a]
MOV RDI,RAX
CALL 0x001164c8
MOV RDI,RAX
MOV RSI,RBX
CALL 0x001164da
LAB_00180e21:
LEA RDI,[RSP + 0x7]
MOV RSI,RAX
CALL 0x001165a2
LAB_00180e2e:
JMP 0x00180e94
LAB_00180e30:
LEA R14,[RSP + 0x8]
MOV RDI,R14
MOV ESI,0x1
MOV ECX,0x164
CALL 0x001169ca
LAB_00180e47:
LEA RSI,[0x1bc421]
MOV RDI,R14
CALL 0x001164c8
MOV RCX,qword ptr [R15 + 0xe8]
MOV RSI,qword ptr [RCX + 0x8]
ADD RSI,0x20
MOV RDI,RAX
CALL 0x001164da
LEA RSI,[0x1ba44a]
MOV RDI,RAX
CALL 0x001164c8
MOV RDI,RAX
MOV RSI,RBX
CALL 0x001164da
LAB_00180e87:
LEA RDI,[RSP + 0x7]
MOV RSI,RAX
CALL 0x001165a2
LAB_00180e94:
LEA RDI,[RSP + 0x8]
CALL 0x001169e8
ADD RSP,0x40
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* google::protobuf::TextFormat::Parser::ParserImpl::ReportWarning(int, int, std::__cxx11::string
const&) */
void __thiscall
google::protobuf::TextFormat::Parser::ParserImpl::ReportWarning
(ParserImpl *this,int param_1,int param_2,string *param_3)
{
long *plVar1;
LogMessage *pLVar2;
LogFinisher local_61;
LogMessage local_60 [56];
plVar1 = *(long **)this;
if (plVar1 != (long *)0x0) {
/* WARNING: Could not recover jumptable at 0x00180d80. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(*plVar1 + 0x18))(plVar1,param_1,param_2,param_3);
return;
}
if (param_1 < 0) {
internal::LogMessage::LogMessage
(local_60,1,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/text_format.cc"
,0x164);
/* try { // try from 00180e47 to 00180e86 has its CatchHandler @ 00180eaf */
pLVar2 = (LogMessage *)internal::LogMessage::operator<<(local_60,"Warning parsing text-format ")
;
pLVar2 = (LogMessage *)
internal::LogMessage::operator<<
(pLVar2,(string *)(*(long *)(*(long *)(this + 0xe8) + 8) + 0x20));
pLVar2 = (LogMessage *)internal::LogMessage::operator<<(pLVar2,": ");
pLVar2 = (LogMessage *)internal::LogMessage::operator<<(pLVar2,param_3);
/* try { // try from 00180e87 to 00180e93 has its CatchHandler @ 00180eab */
internal::LogFinisher::operator=(&local_61,pLVar2);
}
else {
internal::LogMessage::LogMessage
(local_60,1,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/text_format.cc"
,0x160);
/* try { // try from 00180da9 to 00180e20 has its CatchHandler @ 00180eb1 */
pLVar2 = (LogMessage *)internal::LogMessage::operator<<(local_60,"Warning parsing text-format ")
;
pLVar2 = (LogMessage *)
internal::LogMessage::operator<<
(pLVar2,(string *)(*(long *)(*(long *)(this + 0xe8) + 8) + 0x20));
pLVar2 = (LogMessage *)internal::LogMessage::operator<<(pLVar2,": ");
pLVar2 = (LogMessage *)internal::LogMessage::operator<<(pLVar2,param_1 + 1);
pLVar2 = (LogMessage *)internal::LogMessage::operator<<(pLVar2,":");
pLVar2 = (LogMessage *)internal::LogMessage::operator<<(pLVar2,param_2 + 1);
pLVar2 = (LogMessage *)internal::LogMessage::operator<<(pLVar2,": ");
pLVar2 = (LogMessage *)internal::LogMessage::operator<<(pLVar2,param_3);
/* try { // try from 00180e21 to 00180e2d has its CatchHandler @ 00180ead */
internal::LogFinisher::operator=(&local_61,pLVar2);
}
internal::LogMessage::~LogMessage(local_60);
return;
}
| |
48,268 | ftxui::Screen::Screen(int, int) | Andrewchistyakov[P]flashcards_lyc/build_O1/_deps/ftxui-src/src/ftxui/screen/screen.cpp | Screen::Screen(int dimx, int dimy)
: stencil{0, dimx - 1, 0, dimy - 1},
dimx_(dimx),
dimy_(dimy),
pixels_(dimy, std::vector<Pixel>(dimx)) {
#if defined(_WIN32)
// The placement of this call is a bit weird, however we can assume that
// anybody who instantiates a Screen object eventually wants to output
// something to the console.
// As we require UTF8 for all input/output operations we will just switch to
// UTF8 encoding here
SetConsoleOutputCP(CP_UTF8);
SetConsoleCP(CP_UTF8);
WindowsEmulateVT100Terminal();
#endif
} | O1 | cpp | ftxui::Screen::Screen(int, int):
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movl %edx, %r15d
movq %rdi, %r14
xorl %eax, %eax
movl %eax, (%rdi)
leal -0x1(%rsi), %ecx
movl %ecx, 0x4(%rdi)
movl %eax, 0x8(%rdi)
leal -0x1(%r15), %eax
movl %eax, 0xc(%rdi)
movl %esi, 0x10(%rdi)
movl %edx, 0x14(%rdi)
movslq %esi, %rsi
leaq 0x10(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0x31780
leaq 0x18(%r14), %rbx
movslq %r15d, %rsi
leaq 0x10(%rsp), %rdx
leaq 0xf(%rsp), %rcx
movq %rbx, %rdi
callq 0x31816
leaq 0x10(%rsp), %rdi
callq 0x14eda
movq $0x0, 0x30(%r14)
leaq 0x20(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x3dfd(%rip), %rdx # 0x3dbe1
leaq 0x10(%rsp), %rdi
movq %rdx, %rsi
callq 0x10884
addq $0x40, %r14
leaq 0x10(%rsp), %rsi
leaq 0xe(%rsp), %rcx
movl $0x1, %edx
movq %r14, %rdi
callq 0x3b00a
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x39e23
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xb400
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x39e4c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xb400
jmp 0x39e4c
movq %rax, %r14
movq %rbx, %rdi
callq 0x14e98
jmp 0x39e68
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x14eda
jmp 0x39e68
movq %rax, %r14
movq %r14, %rdi
callq 0xb780
| _ZN5ftxui6ScreenC2Eii:
push r15; Alternative name is 'ftxui::Screen::Screen(int, int)'
push r14
push rbx
sub rsp, 30h
mov r15d, edx
mov r14, rdi
xor eax, eax
mov [rdi], eax
lea ecx, [rsi-1]
mov [rdi+4], ecx
mov [rdi+8], eax
lea eax, [r15-1]
mov [rdi+0Ch], eax
mov [rdi+10h], esi
mov [rdi+14h], edx
movsxd rsi, esi
lea rdi, [rsp+48h+var_38]
lea rdx, [rsp+48h+var_3A]
call _ZNSt6vectorIN5ftxui5PixelESaIS1_EEC2EmRKS2_; std::vector<ftxui::Pixel>::vector(ulong,std::allocator<ftxui::Pixel> const&)
lea rbx, [r14+18h]
movsxd rsi, r15d
lea rdx, [rsp+48h+var_38]
lea rcx, [rsp+48h+var_39]
mov rdi, rbx
call _ZNSt6vectorIS_IN5ftxui5PixelESaIS1_EESaIS3_EEC2EmRKS3_RKS4_; std::vector<std::vector<ftxui::Pixel>>::vector(ulong,std::vector<ftxui::Pixel> const&,std::allocator<std::vector<ftxui::Pixel>> const&)
lea rdi, [rsp+48h+var_38]
call _ZNSt6vectorIN5ftxui5PixelESaIS1_EED2Ev; std::vector<ftxui::Pixel>::~vector()
mov qword ptr [r14+30h], 0
lea r15, [rsp+48h+var_28]
mov [r15-10h], r15
lea rdx, asc_3DBDF+2; ""
lea rdi, [rsp+48h+var_38]
mov rsi, rdx
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 r14, 40h ; '@'
lea rsi, [rsp+48h+var_38]
lea rcx, [rsp+48h+var_3A]
mov edx, 1
mov rdi, r14
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ESt16initializer_listIS5_ERKS6_; std::vector<std::string>::vector(std::initializer_list<std::string>,std::allocator<std::string> const&)
mov rdi, [rsp+48h+var_38]; void *
cmp rdi, r15
jz short loc_39E23
mov rsi, [rsp+48h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_39E23:
add rsp, 30h
pop rbx
pop r14
pop r15
retn
mov r14, rax
mov rdi, [rsp+arg_8]; void *
cmp rdi, r15
jz short loc_39E4C
mov rsi, [rsp+arg_18]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_39E4C
mov r14, rax
loc_39E4C:
mov rdi, rbx
call _ZNSt6vectorIS_IN5ftxui5PixelESaIS1_EESaIS3_EED2Ev; std::vector<std::vector<ftxui::Pixel>>::~vector()
jmp short loc_39E68
mov r14, rax
lea rdi, [rsp+arg_8]
call _ZNSt6vectorIN5ftxui5PixelESaIS1_EED2Ev; std::vector<ftxui::Pixel>::~vector()
jmp short loc_39E68
mov r14, rax
loc_39E68:
mov rdi, r14
call __Unwind_Resume
| void ftxui::Screen::Screen(ftxui::Screen *this, int a2, int a3)
{
char v4; // [rsp+Eh] [rbp-3Ah] BYREF
void *v5[2]; // [rsp+10h] [rbp-38h] BYREF
_QWORD v6[5]; // [rsp+20h] [rbp-28h] BYREF
*(_DWORD *)this = 0;
*(_QWORD *)((char *)this + 4) = (unsigned int)(a2 - 1);
*((_DWORD *)this + 3) = a3 - 1;
*((_DWORD *)this + 4) = a2;
*((_DWORD *)this + 5) = a3;
std::vector<ftxui::Pixel>::vector((long long)v5, a2);
std::vector<std::vector<ftxui::Pixel>>::vector((long long)this + 24, a3, (long long)v5);
std::vector<ftxui::Pixel>::~vector(v5);
*((_QWORD *)this + 6) = 0LL;
v5[0] = v6;
std::string::_M_construct<char const*>(v5, "", (long long)"");
std::vector<std::string>::vector((char *)this + 64, v5, 1LL, &v4);
if ( v5[0] != v6 )
operator delete(v5[0], v6[0] + 1LL);
}
| Screen:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R15D,EDX
MOV R14,RDI
XOR EAX,EAX
MOV dword ptr [RDI],EAX
LEA ECX,[RSI + -0x1]
MOV dword ptr [RDI + 0x4],ECX
MOV dword ptr [RDI + 0x8],EAX
LEA EAX,[R15 + -0x1]
MOV dword ptr [RDI + 0xc],EAX
MOV dword ptr [RDI + 0x10],ESI
MOV dword ptr [RDI + 0x14],EDX
MOVSXD RSI,ESI
LAB_00139d9a:
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0xe]
CALL 0x00131780
LEA RBX,[R14 + 0x18]
MOVSXD RSI,R15D
LAB_00139db0:
LEA RDX,[RSP + 0x10]
LEA RCX,[RSP + 0xf]
MOV RDI,RBX
CALL 0x00131816
LEA RDI,[RSP + 0x10]
CALL 0x00114eda
MOV qword ptr [R14 + 0x30],0x0
LEA R15,[RSP + 0x20]
MOV qword ptr [R15 + -0x10],R15
LAB_00139ddd:
LEA RDX,[0x13dbe1]
LEA RDI,[RSP + 0x10]
MOV RSI,RDX
CALL 0x00110884
ADD R14,0x40
LAB_00139df5:
LEA RSI,[RSP + 0x10]
LEA RCX,[RSP + 0xe]
MOV EDX,0x1
MOV RDI,R14
CALL 0x0013b00a
LAB_00139e0c:
MOV RDI,qword ptr [RSP + 0x10]
CMP RDI,R15
JZ 0x00139e23
MOV RSI,qword ptr [RSP + 0x20]
INC RSI
CALL 0x0010b400
LAB_00139e23:
ADD RSP,0x30
POP RBX
POP R14
POP R15
RET
|
/* ftxui::Screen::Screen(int, int) */
void __thiscall ftxui::Screen::Screen(Screen *this,int param_1,int param_2)
{
int1 local_3a [2];
long *local_38 [2];
long local_28 [2];
*(int4 *)this = 0;
*(int *)(this + 4) = param_1 + -1;
*(int4 *)(this + 8) = 0;
*(int *)(this + 0xc) = param_2 + -1;
*(int *)(this + 0x10) = param_1;
*(int *)(this + 0x14) = param_2;
/* try { // try from 00139d9a to 00139da8 has its CatchHandler @ 00139e65 */
std::vector<ftxui::Pixel,std::allocator<ftxui::Pixel>>::vector
((ulong)local_38,(allocator *)(long)param_1);
/* try { // try from 00139db0 to 00139dc1 has its CatchHandler @ 00139e56 */
std::
vector<std::vector<ftxui::Pixel,std::allocator<ftxui::Pixel>>,std::allocator<std::vector<ftxui::Pixel,std::allocator<ftxui::Pixel>>>>
::vector((ulong)(this + 0x18),(vector *)(long)param_2,(allocator *)local_38);
std::vector<ftxui::Pixel,std::allocator<ftxui::Pixel>>::~vector
((vector<ftxui::Pixel,std::allocator<ftxui::Pixel>> *)local_38);
*(int8 *)(this + 0x30) = 0;
/* try { // try from 00139ddd to 00139df0 has its CatchHandler @ 00139e49 */
local_38[0] = local_28;
std::__cxx11::string::_M_construct<char_const*>(local_38,&DAT_0013dbe1);
/* try { // try from 00139df5 to 00139e0b has its CatchHandler @ 00139e2d */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x40),
local_38,1,local_3a);
if (local_38[0] != local_28) {
operator_delete(local_38[0],local_28[0] + 1);
}
return;
}
| |
48,269 | inline_mysql_file_read | eloqsql/include/mysql/psi/mysql_file.h | static inline size_t
inline_mysql_file_read(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
File file, uchar *buffer, size_t count, myf flags)
{
size_t result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
size_t bytes_read;
locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_READ);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_wait)(locker, count, src_file, src_line);
result= my_read(file, buffer, count, flags);
if (flags & (MY_NABP | MY_FNABP))
bytes_read= (result == 0) ? count : 0;
else
bytes_read= (result != MY_FILE_ERROR) ? result : 0;
PSI_FILE_CALL(end_file_wait)(locker, bytes_read);
return result;
}
#endif
result= my_read(file, buffer, count, flags);
return result;
} | O0 | c | inline_mysql_file_read:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
leaq 0x27e2e8(%rip), %rax # 0x2cb4e0
movq (%rax), %rax
movq 0x158(%rax), %rax
movl -0x18(%rbp), %esi
leaq -0x88(%rbp), %rdi
movl $0x6, %edx
callq *%rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x4d307
leaq 0x27e29e(%rip), %rax # 0x2cb4e0
movq (%rax), %rax
movq 0x210(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl -0x14(%rbp), %ecx
callq *%rax
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
callq 0xfd240
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
andq $0x6, %rax
cmpq $0x0, %rax
je 0x4d2b2
cmpq $0x0, -0x38(%rbp)
jne 0x4d297
movq -0x28(%rbp), %rax
movq %rax, -0x98(%rbp)
jmp 0x4d2a2
xorl %eax, %eax
movq %rax, -0x98(%rbp)
jmp 0x4d2a2
movq -0x98(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0x4d2df
cmpq $-0x1, -0x38(%rbp)
je 0x4d2c6
movq -0x38(%rbp), %rax
movq %rax, -0xa0(%rbp)
jmp 0x4d2d1
xorl %eax, %eax
movq %rax, -0xa0(%rbp)
jmp 0x4d2d1
movq -0xa0(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq 0x27e1fa(%rip), %rax # 0x2cb4e0
movq (%rax), %rax
movq 0x218(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x90(%rbp), %rsi
callq *%rax
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x4d327
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
callq 0xfd240
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xa0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| inline_mysql_file_read:
push rbp
mov rbp, rsp
sub rsp, 0A0h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+158h]
mov esi, [rbp+var_18]
lea rdi, [rbp+var_88]
mov edx, 6
call rax
mov [rbp+var_40], rax
cmp [rbp+var_40], 0
setnz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz loc_4D307
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+210h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_10]
mov ecx, [rbp+var_14]
call rax
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_30]
call my_read
mov [rbp+var_38], rax
mov rax, [rbp+var_30]
and rax, 6
cmp rax, 0
jz short loc_4D2B2
cmp [rbp+var_38], 0
jnz short loc_4D297
mov rax, [rbp+var_28]
mov [rbp+var_98], rax
jmp short loc_4D2A2
loc_4D297:
xor eax, eax
mov [rbp+var_98], rax
jmp short $+2
loc_4D2A2:
mov rax, [rbp+var_98]
mov [rbp+var_90], rax
jmp short loc_4D2DF
loc_4D2B2:
cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh
jz short loc_4D2C6
mov rax, [rbp+var_38]
mov [rbp+var_A0], rax
jmp short loc_4D2D1
loc_4D2C6:
xor eax, eax
mov [rbp+var_A0], rax
jmp short $+2
loc_4D2D1:
mov rax, [rbp+var_A0]
mov [rbp+var_90], rax
loc_4D2DF:
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+218h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_90]
call rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
jmp short loc_4D327
loc_4D307:
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_30]
call my_read
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
loc_4D327:
mov rax, [rbp+var_8]
add rsp, 0A0h
pop rbp
retn
| long long inline_mysql_file_read(
long long a1,
unsigned int a2,
unsigned int a3,
long long a4,
long long a5,
long long a6)
{
long long v7; // [rsp+0h] [rbp-A0h]
long long v8; // [rsp+8h] [rbp-98h]
_BYTE v9[72]; // [rsp+18h] [rbp-88h] BYREF
long long v10; // [rsp+60h] [rbp-40h]
long long v11; // [rsp+68h] [rbp-38h]
long long v12; // [rsp+70h] [rbp-30h]
long long v13; // [rsp+78h] [rbp-28h]
long long v14; // [rsp+80h] [rbp-20h]
unsigned int v15; // [rsp+88h] [rbp-18h]
unsigned int v16; // [rsp+8Ch] [rbp-14h]
long long v17; // [rsp+90h] [rbp-10h]
v17 = a1;
v16 = a2;
v15 = a3;
v14 = a4;
v13 = a5;
v12 = a6;
v10 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v9, a3, 6LL);
if ( v10 )
{
((void ( *)(long long, long long, long long, _QWORD))PSI_server[66])(v10, v13, v17, v16);
v11 = my_read(v15, v14, v13, v12);
if ( (v12 & 6) != 0 )
{
if ( v11 )
v8 = 0LL;
else
v8 = v13;
((void ( *)(long long, long long))PSI_server[67])(v10, v8);
}
else
{
if ( v11 == -1 )
v7 = 0LL;
else
v7 = v11;
((void ( *)(long long, long long))PSI_server[67])(v10, v7);
}
return v11;
}
else
{
return my_read(v15, v14, v13, v12);
}
}
| inline_mysql_file_read:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xa0
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
LEA RAX,[0x3cb4e0]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x158]
MOV ESI,dword ptr [RBP + -0x18]
LEA RDI,[RBP + -0x88]
MOV EDX,0x6
CALL RAX
MOV qword ptr [RBP + -0x40],RAX
CMP qword ptr [RBP + -0x40],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x0014d307
LEA RAX,[0x3cb4e0]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x210]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x14]
CALL RAX
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x001fd240
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x30]
AND RAX,0x6
CMP RAX,0x0
JZ 0x0014d2b2
CMP qword ptr [RBP + -0x38],0x0
JNZ 0x0014d297
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x98],RAX
JMP 0x0014d2a2
LAB_0014d297:
XOR EAX,EAX
MOV qword ptr [RBP + -0x98],RAX
JMP 0x0014d2a2
LAB_0014d2a2:
MOV RAX,qword ptr [RBP + -0x98]
MOV qword ptr [RBP + -0x90],RAX
JMP 0x0014d2df
LAB_0014d2b2:
CMP qword ptr [RBP + -0x38],-0x1
JZ 0x0014d2c6
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x0014d2d1
LAB_0014d2c6:
XOR EAX,EAX
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x0014d2d1
LAB_0014d2d1:
MOV RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0x90],RAX
LAB_0014d2df:
LEA RAX,[0x3cb4e0]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x218]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x90]
CALL RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0014d327
LAB_0014d307:
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x001fd240
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
LAB_0014d327:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0xa0
POP RBP
RET
|
long inline_mysql_file_read
(int8 param_1,int4 param_2,int4 param_3,int8 param_4,
long param_5,ulong param_6)
{
long local_a8;
long local_a0;
long local_98;
int1 local_90 [72];
long local_48;
long local_40;
ulong local_38;
long local_30;
int8 local_28;
int4 local_20;
int4 local_1c;
int8 local_18;
long local_10;
local_38 = param_6;
local_30 = param_5;
local_28 = param_4;
local_20 = param_3;
local_1c = param_2;
local_18 = param_1;
local_48 = (**(code **)(PSI_server + 0x158))(local_90,param_3,6);
if (local_48 == 0) {
local_10 = my_read(local_20,local_28,local_30,local_38);
}
else {
(**(code **)(PSI_server + 0x210))(local_48,local_30,local_18,local_1c);
local_40 = my_read(local_20,local_28,local_30,local_38);
if ((local_38 & 6) == 0) {
local_a8 = local_40;
if (local_40 == -1) {
local_a8 = 0;
}
local_98 = local_a8;
}
else {
if (local_40 == 0) {
local_a0 = local_30;
}
else {
local_a0 = 0;
}
local_98 = local_a0;
}
(**(code **)(PSI_server + 0x218))(local_48,local_98);
local_10 = local_40;
}
return local_10;
}
| |
48,270 | void OpenSubdiv::v3_6_0::Far::internal::(anonymous namespace)::convertBezierWeightsToGregory<float>(float const*, float const*, float*) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchBasis.cpp | void
convertBezierWeightsToGregory(REAL const wB[15], REAL const rG[6], REAL wG[18]) {
wG[0] = wB[0];
wG[1] = wB[1];
wG[2] = wB[5];
wG[3] = wB[6] * rG[0];
wG[4] = wB[6] * rG[1];
wG[5] = wB[4];
wG[6] = wB[8];
wG[7] = wB[3];
wG[8] = wB[7] * rG[2];
wG[9] = wB[7] * rG[3];
wG[10] = wB[14];
wG[11] = wB[12];
wG[12] = wB[13];
wG[13] = wB[10] * rG[4];
wG[14] = wB[10] * rG[5];
wG[15] = wB[2];
wG[16] = wB[11];
wG[17] = wB[9];
} | O0 | cpp | void OpenSubdiv::v3_6_0::Far::internal::(anonymous namespace)::convertBezierWeightsToGregory<float>(float const*, float const*, float*):
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movsd (%rax), %xmm0
movq -0x18(%rbp), %rax
movsd %xmm0, (%rax)
movq -0x8(%rbp), %rax
movsd 0x8(%rax), %xmm0
movq -0x18(%rbp), %rax
movsd %xmm0, 0x8(%rax)
movq -0x8(%rbp), %rax
movsd 0x28(%rax), %xmm0
movq -0x18(%rbp), %rax
movsd %xmm0, 0x10(%rax)
movq -0x8(%rbp), %rax
movsd 0x30(%rax), %xmm0
movq -0x10(%rbp), %rax
mulsd (%rax), %xmm0
movq -0x18(%rbp), %rax
movsd %xmm0, 0x18(%rax)
movq -0x8(%rbp), %rax
movsd 0x30(%rax), %xmm0
movq -0x10(%rbp), %rax
mulsd 0x8(%rax), %xmm0
movq -0x18(%rbp), %rax
movsd %xmm0, 0x20(%rax)
movq -0x8(%rbp), %rax
movsd 0x20(%rax), %xmm0
movq -0x18(%rbp), %rax
movsd %xmm0, 0x28(%rax)
movq -0x8(%rbp), %rax
movsd 0x40(%rax), %xmm0
movq -0x18(%rbp), %rax
movsd %xmm0, 0x30(%rax)
movq -0x8(%rbp), %rax
movsd 0x18(%rax), %xmm0
movq -0x18(%rbp), %rax
movsd %xmm0, 0x38(%rax)
movq -0x8(%rbp), %rax
movsd 0x38(%rax), %xmm0
movq -0x10(%rbp), %rax
mulsd 0x10(%rax), %xmm0
movq -0x18(%rbp), %rax
movsd %xmm0, 0x40(%rax)
movq -0x8(%rbp), %rax
movsd 0x38(%rax), %xmm0
movq -0x10(%rbp), %rax
mulsd 0x18(%rax), %xmm0
movq -0x18(%rbp), %rax
movsd %xmm0, 0x48(%rax)
movq -0x8(%rbp), %rax
movsd 0x70(%rax), %xmm0
movq -0x18(%rbp), %rax
movsd %xmm0, 0x50(%rax)
movq -0x8(%rbp), %rax
movsd 0x60(%rax), %xmm0
movq -0x18(%rbp), %rax
movsd %xmm0, 0x58(%rax)
movq -0x8(%rbp), %rax
movsd 0x68(%rax), %xmm0
movq -0x18(%rbp), %rax
movsd %xmm0, 0x60(%rax)
movq -0x8(%rbp), %rax
movsd 0x50(%rax), %xmm0
movq -0x10(%rbp), %rax
mulsd 0x20(%rax), %xmm0
movq -0x18(%rbp), %rax
movsd %xmm0, 0x68(%rax)
movq -0x8(%rbp), %rax
movsd 0x50(%rax), %xmm0
movq -0x10(%rbp), %rax
mulsd 0x28(%rax), %xmm0
movq -0x18(%rbp), %rax
movsd %xmm0, 0x70(%rax)
movq -0x8(%rbp), %rax
movsd 0x10(%rax), %xmm0
movq -0x18(%rbp), %rax
movsd %xmm0, 0x78(%rax)
movq -0x8(%rbp), %rax
movsd 0x58(%rax), %xmm0
movq -0x18(%rbp), %rax
movsd %xmm0, 0x80(%rax)
movq -0x8(%rbp), %rax
movsd 0x48(%rax), %xmm0
movq -0x18(%rbp), %rax
movsd %xmm0, 0x88(%rax)
popq %rbp
retq
nop
| _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_129convertBezierWeightsToGregoryIdEEvPKT_S7_PS5_:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_8]
movsd xmm0, qword ptr [rax]
mov rax, [rbp+var_18]
movsd qword ptr [rax], xmm0
mov rax, [rbp+var_8]
movsd xmm0, qword ptr [rax+8]
mov rax, [rbp+var_18]
movsd qword ptr [rax+8], xmm0
mov rax, [rbp+var_8]
movsd xmm0, qword ptr [rax+28h]
mov rax, [rbp+var_18]
movsd qword ptr [rax+10h], xmm0
mov rax, [rbp+var_8]
movsd xmm0, qword ptr [rax+30h]
mov rax, [rbp+var_10]
mulsd xmm0, qword ptr [rax]
mov rax, [rbp+var_18]
movsd qword ptr [rax+18h], xmm0
mov rax, [rbp+var_8]
movsd xmm0, qword ptr [rax+30h]
mov rax, [rbp+var_10]
mulsd xmm0, qword ptr [rax+8]
mov rax, [rbp+var_18]
movsd qword ptr [rax+20h], xmm0
mov rax, [rbp+var_8]
movsd xmm0, qword ptr [rax+20h]
mov rax, [rbp+var_18]
movsd qword ptr [rax+28h], xmm0
mov rax, [rbp+var_8]
movsd xmm0, qword ptr [rax+40h]
mov rax, [rbp+var_18]
movsd qword ptr [rax+30h], xmm0
mov rax, [rbp+var_8]
movsd xmm0, qword ptr [rax+18h]
mov rax, [rbp+var_18]
movsd qword ptr [rax+38h], xmm0
mov rax, [rbp+var_8]
movsd xmm0, qword ptr [rax+38h]
mov rax, [rbp+var_10]
mulsd xmm0, qword ptr [rax+10h]
mov rax, [rbp+var_18]
movsd qword ptr [rax+40h], xmm0
mov rax, [rbp+var_8]
movsd xmm0, qword ptr [rax+38h]
mov rax, [rbp+var_10]
mulsd xmm0, qword ptr [rax+18h]
mov rax, [rbp+var_18]
movsd qword ptr [rax+48h], xmm0
mov rax, [rbp+var_8]
movsd xmm0, qword ptr [rax+70h]
mov rax, [rbp+var_18]
movsd qword ptr [rax+50h], xmm0
mov rax, [rbp+var_8]
movsd xmm0, qword ptr [rax+60h]
mov rax, [rbp+var_18]
movsd qword ptr [rax+58h], xmm0
mov rax, [rbp+var_8]
movsd xmm0, qword ptr [rax+68h]
mov rax, [rbp+var_18]
movsd qword ptr [rax+60h], xmm0
mov rax, [rbp+var_8]
movsd xmm0, qword ptr [rax+50h]
mov rax, [rbp+var_10]
mulsd xmm0, qword ptr [rax+20h]
mov rax, [rbp+var_18]
movsd qword ptr [rax+68h], xmm0
mov rax, [rbp+var_8]
movsd xmm0, qword ptr [rax+50h]
mov rax, [rbp+var_10]
mulsd xmm0, qword ptr [rax+28h]
mov rax, [rbp+var_18]
movsd qword ptr [rax+70h], xmm0
mov rax, [rbp+var_8]
movsd xmm0, qword ptr [rax+10h]
mov rax, [rbp+var_18]
movsd qword ptr [rax+78h], xmm0
mov rax, [rbp+var_8]
movsd xmm0, qword ptr [rax+58h]
mov rax, [rbp+var_18]
movsd qword ptr [rax+80h], xmm0
mov rax, [rbp+var_8]
movsd xmm0, qword ptr [rax+48h]
mov rax, [rbp+var_18]
movsd qword ptr [rax+88h], xmm0
pop rbp
retn
| long long OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::convertBezierWeightsToGregory<double>(
long long a1,
double *a2,
long long a3)
{
long long result; // rax
*(_QWORD *)a3 = *(_QWORD *)a1;
*(_QWORD *)(a3 + 8) = *(_QWORD *)(a1 + 8);
*(_QWORD *)(a3 + 16) = *(_QWORD *)(a1 + 40);
*(double *)(a3 + 24) = *(double *)(a1 + 48) * *a2;
*(double *)(a3 + 32) = *(double *)(a1 + 48) * a2[1];
*(_QWORD *)(a3 + 40) = *(_QWORD *)(a1 + 32);
*(_QWORD *)(a3 + 48) = *(_QWORD *)(a1 + 64);
*(_QWORD *)(a3 + 56) = *(_QWORD *)(a1 + 24);
*(double *)(a3 + 64) = *(double *)(a1 + 56) * a2[2];
*(double *)(a3 + 72) = *(double *)(a1 + 56) * a2[3];
*(_QWORD *)(a3 + 80) = *(_QWORD *)(a1 + 112);
*(_QWORD *)(a3 + 88) = *(_QWORD *)(a1 + 96);
*(_QWORD *)(a3 + 96) = *(_QWORD *)(a1 + 104);
*(double *)(a3 + 104) = *(double *)(a1 + 80) * a2[4];
*(double *)(a3 + 112) = *(double *)(a1 + 80) * a2[5];
*(_QWORD *)(a3 + 120) = *(_QWORD *)(a1 + 16);
*(_QWORD *)(a3 + 128) = *(_QWORD *)(a1 + 88);
result = a3;
*(_QWORD *)(a3 + 136) = *(_QWORD *)(a1 + 72);
return result;
}
| |||
48,271 | void OpenSubdiv::v3_6_0::Far::internal::(anonymous namespace)::convertBezierWeightsToGregory<float>(float const*, float const*, float*) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchBasis.cpp | void
convertBezierWeightsToGregory(REAL const wB[15], REAL const rG[6], REAL wG[18]) {
wG[0] = wB[0];
wG[1] = wB[1];
wG[2] = wB[5];
wG[3] = wB[6] * rG[0];
wG[4] = wB[6] * rG[1];
wG[5] = wB[4];
wG[6] = wB[8];
wG[7] = wB[3];
wG[8] = wB[7] * rG[2];
wG[9] = wB[7] * rG[3];
wG[10] = wB[14];
wG[11] = wB[12];
wG[12] = wB[13];
wG[13] = wB[10] * rG[4];
wG[14] = wB[10] * rG[5];
wG[15] = wB[2];
wG[16] = wB[11];
wG[17] = wB[9];
} | O1 | cpp | void OpenSubdiv::v3_6_0::Far::internal::(anonymous namespace)::convertBezierWeightsToGregory<float>(float const*, float const*, float*):
movsd (%rdi), %xmm0
movsd %xmm0, (%rdx)
movsd 0x8(%rdi), %xmm0
movsd %xmm0, 0x8(%rdx)
movsd 0x28(%rdi), %xmm0
movsd %xmm0, 0x10(%rdx)
movsd 0x30(%rdi), %xmm0
mulsd (%rsi), %xmm0
movsd %xmm0, 0x18(%rdx)
movsd 0x30(%rdi), %xmm0
mulsd 0x8(%rsi), %xmm0
movsd %xmm0, 0x20(%rdx)
movsd 0x20(%rdi), %xmm0
movsd %xmm0, 0x28(%rdx)
movsd 0x40(%rdi), %xmm0
movsd %xmm0, 0x30(%rdx)
movsd 0x18(%rdi), %xmm0
movsd %xmm0, 0x38(%rdx)
movsd 0x38(%rdi), %xmm0
mulsd 0x10(%rsi), %xmm0
movsd %xmm0, 0x40(%rdx)
movsd 0x38(%rdi), %xmm0
mulsd 0x18(%rsi), %xmm0
movsd %xmm0, 0x48(%rdx)
movsd 0x70(%rdi), %xmm0
movsd %xmm0, 0x50(%rdx)
movsd 0x60(%rdi), %xmm0
movsd %xmm0, 0x58(%rdx)
movsd 0x68(%rdi), %xmm0
movsd %xmm0, 0x60(%rdx)
movsd 0x50(%rdi), %xmm0
mulsd 0x20(%rsi), %xmm0
movsd %xmm0, 0x68(%rdx)
movsd 0x50(%rdi), %xmm0
mulsd 0x28(%rsi), %xmm0
movsd %xmm0, 0x70(%rdx)
movsd 0x10(%rdi), %xmm0
movsd %xmm0, 0x78(%rdx)
movsd 0x58(%rdi), %xmm0
movsd %xmm0, 0x80(%rdx)
movsd 0x48(%rdi), %xmm0
movsd %xmm0, 0x88(%rdx)
retq
| _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_129convertBezierWeightsToGregoryIdEEvPKT_S7_PS5_:
movsd xmm0, qword ptr [rdi]
movsd qword ptr [rdx], xmm0
movsd xmm0, qword ptr [rdi+8]
movsd qword ptr [rdx+8], xmm0
movsd xmm0, qword ptr [rdi+28h]
movsd qword ptr [rdx+10h], xmm0
movsd xmm0, qword ptr [rdi+30h]
mulsd xmm0, qword ptr [rsi]
movsd qword ptr [rdx+18h], xmm0
movsd xmm0, qword ptr [rdi+30h]
mulsd xmm0, qword ptr [rsi+8]
movsd qword ptr [rdx+20h], xmm0
movsd xmm0, qword ptr [rdi+20h]
movsd qword ptr [rdx+28h], xmm0
movsd xmm0, qword ptr [rdi+40h]
movsd qword ptr [rdx+30h], xmm0
movsd xmm0, qword ptr [rdi+18h]
movsd qword ptr [rdx+38h], xmm0
movsd xmm0, qword ptr [rdi+38h]
mulsd xmm0, qword ptr [rsi+10h]
movsd qword ptr [rdx+40h], xmm0
movsd xmm0, qword ptr [rdi+38h]
mulsd xmm0, qword ptr [rsi+18h]
movsd qword ptr [rdx+48h], xmm0
movsd xmm0, qword ptr [rdi+70h]
movsd qword ptr [rdx+50h], xmm0
movsd xmm0, qword ptr [rdi+60h]
movsd qword ptr [rdx+58h], xmm0
movsd xmm0, qword ptr [rdi+68h]
movsd qword ptr [rdx+60h], xmm0
movsd xmm0, qword ptr [rdi+50h]
mulsd xmm0, qword ptr [rsi+20h]
movsd qword ptr [rdx+68h], xmm0
movsd xmm0, qword ptr [rdi+50h]
mulsd xmm0, qword ptr [rsi+28h]
movsd qword ptr [rdx+70h], xmm0
movsd xmm0, qword ptr [rdi+10h]
movsd qword ptr [rdx+78h], xmm0
movsd xmm0, qword ptr [rdi+58h]
movsd qword ptr [rdx+80h], xmm0
movsd xmm0, qword ptr [rdi+48h]
movsd qword ptr [rdx+88h], xmm0
retn
| void OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::convertBezierWeightsToGregory<double>(
long long a1,
double *a2,
long long a3)
{
*(_QWORD *)a3 = *(_QWORD *)a1;
*(_QWORD *)(a3 + 8) = *(_QWORD *)(a1 + 8);
*(_QWORD *)(a3 + 16) = *(_QWORD *)(a1 + 40);
*(double *)(a3 + 24) = *(double *)(a1 + 48) * *a2;
*(double *)(a3 + 32) = *(double *)(a1 + 48) * a2[1];
*(_QWORD *)(a3 + 40) = *(_QWORD *)(a1 + 32);
*(_QWORD *)(a3 + 48) = *(_QWORD *)(a1 + 64);
*(_QWORD *)(a3 + 56) = *(_QWORD *)(a1 + 24);
*(double *)(a3 + 64) = *(double *)(a1 + 56) * a2[2];
*(double *)(a3 + 72) = *(double *)(a1 + 56) * a2[3];
*(_QWORD *)(a3 + 80) = *(_QWORD *)(a1 + 112);
*(_QWORD *)(a3 + 88) = *(_QWORD *)(a1 + 96);
*(_QWORD *)(a3 + 96) = *(_QWORD *)(a1 + 104);
*(double *)(a3 + 104) = *(double *)(a1 + 80) * a2[4];
*(double *)(a3 + 112) = *(double *)(a1 + 80) * a2[5];
*(_QWORD *)(a3 + 120) = *(_QWORD *)(a1 + 16);
*(_QWORD *)(a3 + 128) = *(_QWORD *)(a1 + 88);
*(_QWORD *)(a3 + 136) = *(_QWORD *)(a1 + 72);
}
| convertBezierWeightsToGregory<double>:
MOVSD XMM0,qword ptr [RDI]
MOVSD qword ptr [RDX],XMM0
MOVSD XMM0,qword ptr [RDI + 0x8]
MOVSD qword ptr [RDX + 0x8],XMM0
MOVSD XMM0,qword ptr [RDI + 0x28]
MOVSD qword ptr [RDX + 0x10],XMM0
MOVSD XMM0,qword ptr [RDI + 0x30]
MULSD XMM0,qword ptr [RSI]
MOVSD qword ptr [RDX + 0x18],XMM0
MOVSD XMM0,qword ptr [RDI + 0x30]
MULSD XMM0,qword ptr [RSI + 0x8]
MOVSD qword ptr [RDX + 0x20],XMM0
MOVSD XMM0,qword ptr [RDI + 0x20]
MOVSD qword ptr [RDX + 0x28],XMM0
MOVSD XMM0,qword ptr [RDI + 0x40]
MOVSD qword ptr [RDX + 0x30],XMM0
MOVSD XMM0,qword ptr [RDI + 0x18]
MOVSD qword ptr [RDX + 0x38],XMM0
MOVSD XMM0,qword ptr [RDI + 0x38]
MULSD XMM0,qword ptr [RSI + 0x10]
MOVSD qword ptr [RDX + 0x40],XMM0
MOVSD XMM0,qword ptr [RDI + 0x38]
MULSD XMM0,qword ptr [RSI + 0x18]
MOVSD qword ptr [RDX + 0x48],XMM0
MOVSD XMM0,qword ptr [RDI + 0x70]
MOVSD qword ptr [RDX + 0x50],XMM0
MOVSD XMM0,qword ptr [RDI + 0x60]
MOVSD qword ptr [RDX + 0x58],XMM0
MOVSD XMM0,qword ptr [RDI + 0x68]
MOVSD qword ptr [RDX + 0x60],XMM0
MOVSD XMM0,qword ptr [RDI + 0x50]
MULSD XMM0,qword ptr [RSI + 0x20]
MOVSD qword ptr [RDX + 0x68],XMM0
MOVSD XMM0,qword ptr [RDI + 0x50]
MULSD XMM0,qword ptr [RSI + 0x28]
MOVSD qword ptr [RDX + 0x70],XMM0
MOVSD XMM0,qword ptr [RDI + 0x10]
MOVSD qword ptr [RDX + 0x78],XMM0
MOVSD XMM0,qword ptr [RDI + 0x58]
MOVSD qword ptr [RDX + 0x80],XMM0
MOVSD XMM0,qword ptr [RDI + 0x48]
MOVSD qword ptr [RDX + 0x88],XMM0
RET
|
/* void OpenSubdiv::v3_6_0::Far::internal::(anonymous
namespace)::convertBezierWeightsToGregory<double>(double const*, double const*, double*) */
void OpenSubdiv::v3_6_0::Far::internal::(anonymous_namespace)::convertBezierWeightsToGregory<double>
(double *param_1,double *param_2,double *param_3)
{
*param_3 = *param_1;
param_3[1] = param_1[1];
param_3[2] = param_1[5];
param_3[3] = param_1[6] * *param_2;
param_3[4] = param_1[6] * param_2[1];
param_3[5] = param_1[4];
param_3[6] = param_1[8];
param_3[7] = param_1[3];
param_3[8] = param_1[7] * param_2[2];
param_3[9] = param_1[7] * param_2[3];
param_3[10] = param_1[0xe];
param_3[0xb] = param_1[0xc];
param_3[0xc] = param_1[0xd];
param_3[0xd] = param_1[10] * param_2[4];
param_3[0xe] = param_1[10] * param_2[5];
param_3[0xf] = param_1[2];
param_3[0x10] = param_1[0xb];
param_3[0x11] = param_1[9];
return;
}
| |
48,272 | void OpenSubdiv::v3_6_0::Far::internal::(anonymous namespace)::convertBezierWeightsToGregory<float>(float const*, float const*, float*) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchBasis.cpp | void
convertBezierWeightsToGregory(REAL const wB[15], REAL const rG[6], REAL wG[18]) {
wG[0] = wB[0];
wG[1] = wB[1];
wG[2] = wB[5];
wG[3] = wB[6] * rG[0];
wG[4] = wB[6] * rG[1];
wG[5] = wB[4];
wG[6] = wB[8];
wG[7] = wB[3];
wG[8] = wB[7] * rG[2];
wG[9] = wB[7] * rG[3];
wG[10] = wB[14];
wG[11] = wB[12];
wG[12] = wB[13];
wG[13] = wB[10] * rG[4];
wG[14] = wB[10] * rG[5];
wG[15] = wB[2];
wG[16] = wB[11];
wG[17] = wB[9];
} | O3 | cpp | void OpenSubdiv::v3_6_0::Far::internal::(anonymous namespace)::convertBezierWeightsToGregory<float>(float const*, float const*, float*):
movsd (%rdi), %xmm0
movsd %xmm0, (%rdx)
movsd 0x8(%rdi), %xmm0
movsd %xmm0, 0x8(%rdx)
movsd 0x28(%rdi), %xmm0
movsd %xmm0, 0x10(%rdx)
movsd 0x30(%rdi), %xmm0
mulsd (%rsi), %xmm0
movsd %xmm0, 0x18(%rdx)
movsd 0x30(%rdi), %xmm0
mulsd 0x8(%rsi), %xmm0
movsd %xmm0, 0x20(%rdx)
movsd 0x20(%rdi), %xmm0
movsd %xmm0, 0x28(%rdx)
movsd 0x40(%rdi), %xmm0
movsd %xmm0, 0x30(%rdx)
movsd 0x18(%rdi), %xmm0
movsd %xmm0, 0x38(%rdx)
movsd 0x38(%rdi), %xmm0
mulsd 0x10(%rsi), %xmm0
movsd %xmm0, 0x40(%rdx)
movsd 0x38(%rdi), %xmm0
mulsd 0x18(%rsi), %xmm0
movsd %xmm0, 0x48(%rdx)
movsd 0x70(%rdi), %xmm0
movsd %xmm0, 0x50(%rdx)
movsd 0x60(%rdi), %xmm0
movsd %xmm0, 0x58(%rdx)
movsd 0x68(%rdi), %xmm0
movsd %xmm0, 0x60(%rdx)
movsd 0x50(%rdi), %xmm0
mulsd 0x20(%rsi), %xmm0
movsd %xmm0, 0x68(%rdx)
movsd 0x50(%rdi), %xmm0
mulsd 0x28(%rsi), %xmm0
movsd %xmm0, 0x70(%rdx)
movsd 0x10(%rdi), %xmm0
movsd %xmm0, 0x78(%rdx)
movsd 0x58(%rdi), %xmm0
movsd %xmm0, 0x80(%rdx)
movsd 0x48(%rdi), %xmm0
movsd %xmm0, 0x88(%rdx)
retq
| _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_129convertBezierWeightsToGregoryIdEEvPKT_S7_PS5_:
movsd xmm0, qword ptr [rdi]
movsd qword ptr [rdx], xmm0
movsd xmm0, qword ptr [rdi+8]
movsd qword ptr [rdx+8], xmm0
movsd xmm0, qword ptr [rdi+28h]
movsd qword ptr [rdx+10h], xmm0
movsd xmm0, qword ptr [rdi+30h]
mulsd xmm0, qword ptr [rsi]
movsd qword ptr [rdx+18h], xmm0
movsd xmm0, qword ptr [rdi+30h]
mulsd xmm0, qword ptr [rsi+8]
movsd qword ptr [rdx+20h], xmm0
movsd xmm0, qword ptr [rdi+20h]
movsd qword ptr [rdx+28h], xmm0
movsd xmm0, qword ptr [rdi+40h]
movsd qword ptr [rdx+30h], xmm0
movsd xmm0, qword ptr [rdi+18h]
movsd qword ptr [rdx+38h], xmm0
movsd xmm0, qword ptr [rdi+38h]
mulsd xmm0, qword ptr [rsi+10h]
movsd qword ptr [rdx+40h], xmm0
movsd xmm0, qword ptr [rdi+38h]
mulsd xmm0, qword ptr [rsi+18h]
movsd qword ptr [rdx+48h], xmm0
movsd xmm0, qword ptr [rdi+70h]
movsd qword ptr [rdx+50h], xmm0
movsd xmm0, qword ptr [rdi+60h]
movsd qword ptr [rdx+58h], xmm0
movsd xmm0, qword ptr [rdi+68h]
movsd qword ptr [rdx+60h], xmm0
movsd xmm0, qword ptr [rdi+50h]
mulsd xmm0, qword ptr [rsi+20h]
movsd qword ptr [rdx+68h], xmm0
movsd xmm0, qword ptr [rdi+50h]
mulsd xmm0, qword ptr [rsi+28h]
movsd qword ptr [rdx+70h], xmm0
movsd xmm0, qword ptr [rdi+10h]
movsd qword ptr [rdx+78h], xmm0
movsd xmm0, qword ptr [rdi+58h]
movsd qword ptr [rdx+80h], xmm0
movsd xmm0, qword ptr [rdi+48h]
movsd qword ptr [rdx+88h], xmm0
retn
| void OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::convertBezierWeightsToGregory<double>(
long long a1,
double *a2,
long long a3)
{
*(_QWORD *)a3 = *(_QWORD *)a1;
*(_QWORD *)(a3 + 8) = *(_QWORD *)(a1 + 8);
*(_QWORD *)(a3 + 16) = *(_QWORD *)(a1 + 40);
*(double *)(a3 + 24) = *(double *)(a1 + 48) * *a2;
*(double *)(a3 + 32) = *(double *)(a1 + 48) * a2[1];
*(_QWORD *)(a3 + 40) = *(_QWORD *)(a1 + 32);
*(_QWORD *)(a3 + 48) = *(_QWORD *)(a1 + 64);
*(_QWORD *)(a3 + 56) = *(_QWORD *)(a1 + 24);
*(double *)(a3 + 64) = *(double *)(a1 + 56) * a2[2];
*(double *)(a3 + 72) = *(double *)(a1 + 56) * a2[3];
*(_QWORD *)(a3 + 80) = *(_QWORD *)(a1 + 112);
*(_QWORD *)(a3 + 88) = *(_QWORD *)(a1 + 96);
*(_QWORD *)(a3 + 96) = *(_QWORD *)(a1 + 104);
*(double *)(a3 + 104) = *(double *)(a1 + 80) * a2[4];
*(double *)(a3 + 112) = *(double *)(a1 + 80) * a2[5];
*(_QWORD *)(a3 + 120) = *(_QWORD *)(a1 + 16);
*(_QWORD *)(a3 + 128) = *(_QWORD *)(a1 + 88);
*(_QWORD *)(a3 + 136) = *(_QWORD *)(a1 + 72);
}
| convertBezierWeightsToGregory<double>:
MOVSD XMM0,qword ptr [RDI]
MOVSD qword ptr [RDX],XMM0
MOVSD XMM0,qword ptr [RDI + 0x8]
MOVSD qword ptr [RDX + 0x8],XMM0
MOVSD XMM0,qword ptr [RDI + 0x28]
MOVSD qword ptr [RDX + 0x10],XMM0
MOVSD XMM0,qword ptr [RDI + 0x30]
MULSD XMM0,qword ptr [RSI]
MOVSD qword ptr [RDX + 0x18],XMM0
MOVSD XMM0,qword ptr [RDI + 0x30]
MULSD XMM0,qword ptr [RSI + 0x8]
MOVSD qword ptr [RDX + 0x20],XMM0
MOVSD XMM0,qword ptr [RDI + 0x20]
MOVSD qword ptr [RDX + 0x28],XMM0
MOVSD XMM0,qword ptr [RDI + 0x40]
MOVSD qword ptr [RDX + 0x30],XMM0
MOVSD XMM0,qword ptr [RDI + 0x18]
MOVSD qword ptr [RDX + 0x38],XMM0
MOVSD XMM0,qword ptr [RDI + 0x38]
MULSD XMM0,qword ptr [RSI + 0x10]
MOVSD qword ptr [RDX + 0x40],XMM0
MOVSD XMM0,qword ptr [RDI + 0x38]
MULSD XMM0,qword ptr [RSI + 0x18]
MOVSD qword ptr [RDX + 0x48],XMM0
MOVSD XMM0,qword ptr [RDI + 0x70]
MOVSD qword ptr [RDX + 0x50],XMM0
MOVSD XMM0,qword ptr [RDI + 0x60]
MOVSD qword ptr [RDX + 0x58],XMM0
MOVSD XMM0,qword ptr [RDI + 0x68]
MOVSD qword ptr [RDX + 0x60],XMM0
MOVSD XMM0,qword ptr [RDI + 0x50]
MULSD XMM0,qword ptr [RSI + 0x20]
MOVSD qword ptr [RDX + 0x68],XMM0
MOVSD XMM0,qword ptr [RDI + 0x50]
MULSD XMM0,qword ptr [RSI + 0x28]
MOVSD qword ptr [RDX + 0x70],XMM0
MOVSD XMM0,qword ptr [RDI + 0x10]
MOVSD qword ptr [RDX + 0x78],XMM0
MOVSD XMM0,qword ptr [RDI + 0x58]
MOVSD qword ptr [RDX + 0x80],XMM0
MOVSD XMM0,qword ptr [RDI + 0x48]
MOVSD qword ptr [RDX + 0x88],XMM0
RET
|
/* void OpenSubdiv::v3_6_0::Far::internal::(anonymous
namespace)::convertBezierWeightsToGregory<double>(double const*, double const*, double*) */
void OpenSubdiv::v3_6_0::Far::internal::(anonymous_namespace)::convertBezierWeightsToGregory<double>
(double *param_1,double *param_2,double *param_3)
{
*param_3 = *param_1;
param_3[1] = param_1[1];
param_3[2] = param_1[5];
param_3[3] = param_1[6] * *param_2;
param_3[4] = param_1[6] * param_2[1];
param_3[5] = param_1[4];
param_3[6] = param_1[8];
param_3[7] = param_1[3];
param_3[8] = param_1[7] * param_2[2];
param_3[9] = param_1[7] * param_2[3];
param_3[10] = param_1[0xe];
param_3[0xb] = param_1[0xc];
param_3[0xc] = param_1[0xd];
param_3[0xd] = param_1[10] * param_2[4];
param_3[0xe] = param_1[10] * param_2[5];
param_3[0xf] = param_1[2];
param_3[0x10] = param_1[0xb];
param_3[0x11] = param_1[9];
return;
}
| |
48,273 | cs_enter | eloqsql/strings/ctype.c | static int cs_enter(MY_XML_PARSER *st,const char *attr, size_t len)
{
struct my_cs_file_info *i= (struct my_cs_file_info *)st->user_data;
const struct my_cs_file_section_st *s= cs_file_sec(attr,len);
int state= s ? s->state : 0;
switch (state) {
case 0:
i->loader->reporter(WARNING_LEVEL, "Unknown LDML tag: '%.*s'", len, attr);
break;
case _CS_CHARSET:
my_charset_file_reset_charset(i);
break;
case _CS_COLLATION:
my_charset_file_reset_collation(i);
break;
case _CS_RESET:
return tailoring_append(st, " &", 0, NULL);
default:
break;
}
return MY_XML_OK;
} | O0 | c | cs_enter:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x140(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x76e80
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x75416
movq -0x30(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x38(%rbp)
jmp 0x7541d
xorl %eax, %eax
movl %eax, -0x38(%rbp)
jmp 0x7541d
movl -0x38(%rbp), %eax
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
movl %eax, -0x3c(%rbp)
testl %eax, %eax
je 0x7544f
jmp 0x7542f
movl -0x3c(%rbp), %eax
subl $0x8, %eax
je 0x7547c
jmp 0x75439
movl -0x3c(%rbp), %eax
subl $0x9, %eax
je 0x75487
jmp 0x75443
movl -0x3c(%rbp), %eax
subl $0x12d, %eax # imm = 0x12D
je 0x75492
jmp 0x754ae
movq -0x28(%rbp), %rax
movq 0x7a8(%rax), %rax
movq 0xa0(%rax), %r8
movq -0x20(%rbp), %rdx
movq -0x18(%rbp), %rcx
movl $0x1, %edi
leaq 0x11262(%rip), %rsi # 0x866d7
movb $0x0, %al
callq *%r8
jmp 0x754b0
movq -0x28(%rbp), %rdi
callq 0x76e20
jmp 0x754b0
movq -0x28(%rbp), %rdi
callq 0x76e50
jmp 0x754b0
movq -0x10(%rbp), %rdi
leaq 0x11253(%rip), %rsi # 0x866f0
xorl %eax, %eax
movl %eax, %ecx
movq %rcx, %rdx
callq 0x76f10
movl %eax, -0x4(%rbp)
jmp 0x754b7
jmp 0x754b0
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
| cs_enter:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rax, [rbp+var_10]
mov rax, [rax+140h]
mov [rbp+var_28], rax
mov rdi, [rbp+var_18]
mov rsi, [rbp+var_20]
call cs_file_sec
mov [rbp+var_30], rax
cmp [rbp+var_30], 0
jz short loc_75416
mov rax, [rbp+var_30]
mov eax, [rax]
mov [rbp+var_38], eax
jmp short loc_7541D
loc_75416:
xor eax, eax
mov [rbp+var_38], eax
jmp short $+2
loc_7541D:
mov eax, [rbp+var_38]
mov [rbp+var_34], eax
mov eax, [rbp+var_34]
mov [rbp+var_3C], eax
test eax, eax
jz short loc_7544F
jmp short $+2
loc_7542F:
mov eax, [rbp+var_3C]
sub eax, 8
jz short loc_7547C
jmp short $+2
loc_75439:
mov eax, [rbp+var_3C]
sub eax, 9
jz short loc_75487
jmp short $+2
loc_75443:
mov eax, [rbp+var_3C]
sub eax, 12Dh
jz short loc_75492
jmp short loc_754AE
loc_7544F:
mov rax, [rbp+var_28]
mov rax, [rax+7A8h]
mov r8, [rax+0A0h]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_18]
mov edi, 1
lea rsi, aUnknownLdmlTag; "Unknown LDML tag: '%.*s'"
mov al, 0
call r8
jmp short loc_754B0
loc_7547C:
mov rdi, [rbp+var_28]
call my_charset_file_reset_charset
jmp short loc_754B0
loc_75487:
mov rdi, [rbp+var_28]
call my_charset_file_reset_collation
jmp short loc_754B0
loc_75492:
mov rdi, [rbp+var_10]
lea rsi, asc_866F0; " &"
xor eax, eax
mov ecx, eax
mov rdx, rcx
call tailoring_append
mov [rbp+var_4], eax
jmp short loc_754B7
loc_754AE:
jmp short $+2
loc_754B0:
mov [rbp+var_4], 0
loc_754B7:
mov eax, [rbp+var_4]
add rsp, 40h
pop rbp
retn
| long long cs_enter(long long a1, const char *a2, long long a3)
{
int v4; // [rsp+8h] [rbp-38h]
int *v5; // [rsp+10h] [rbp-30h]
long long v6; // [rsp+18h] [rbp-28h]
int v7; // [rsp+20h] [rbp-20h]
v7 = a3;
v6 = *(_QWORD *)(a1 + 320);
v5 = (int *)cs_file_sec(a2, a3);
if ( v5 )
v4 = *v5;
else
v4 = 0;
switch ( v4 )
{
case 0:
(*(void (**)(long long, const char *, ...))(*(_QWORD *)(v6 + 1960) + 160LL))(
1LL,
"Unknown LDML tag: '%.*s'",
v7,
a2);
return 0;
case 8:
my_charset_file_reset_charset(v6);
return 0;
case 9:
my_charset_file_reset_collation(v6);
return 0;
}
if ( v4 != 301 )
return 0;
return (unsigned int)tailoring_append(a1, " &", 0LL);
}
| cs_enter:
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 RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x140]
MOV qword ptr [RBP + -0x28],RAX
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x00176e80
MOV qword ptr [RBP + -0x30],RAX
CMP qword ptr [RBP + -0x30],0x0
JZ 0x00175416
MOV RAX,qword ptr [RBP + -0x30]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x38],EAX
JMP 0x0017541d
LAB_00175416:
XOR EAX,EAX
MOV dword ptr [RBP + -0x38],EAX
JMP 0x0017541d
LAB_0017541d:
MOV EAX,dword ptr [RBP + -0x38]
MOV dword ptr [RBP + -0x34],EAX
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x3c],EAX
TEST EAX,EAX
JZ 0x0017544f
JMP 0x0017542f
LAB_0017542f:
MOV EAX,dword ptr [RBP + -0x3c]
SUB EAX,0x8
JZ 0x0017547c
JMP 0x00175439
LAB_00175439:
MOV EAX,dword ptr [RBP + -0x3c]
SUB EAX,0x9
JZ 0x00175487
JMP 0x00175443
LAB_00175443:
MOV EAX,dword ptr [RBP + -0x3c]
SUB EAX,0x12d
JZ 0x00175492
JMP 0x001754ae
LAB_0017544f:
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x7a8]
MOV R8,qword ptr [RAX + 0xa0]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x18]
MOV EDI,0x1
LEA RSI,[0x1866d7]
MOV AL,0x0
CALL R8
JMP 0x001754b0
LAB_0017547c:
MOV RDI,qword ptr [RBP + -0x28]
CALL 0x00176e20
JMP 0x001754b0
LAB_00175487:
MOV RDI,qword ptr [RBP + -0x28]
CALL 0x00176e50
JMP 0x001754b0
LAB_00175492:
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x1866f0]
XOR EAX,EAX
MOV ECX,EAX
MOV RDX,RCX
CALL 0x00176f10
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001754b7
LAB_001754ae:
JMP 0x001754b0
LAB_001754b0:
MOV dword ptr [RBP + -0x4],0x0
LAB_001754b7:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x40
POP RBP
RET
|
int4 cs_enter(long param_1,int8 param_2,int8 param_3)
{
long lVar1;
int4 uVar2;
int *piVar3;
int local_40;
lVar1 = *(long *)(param_1 + 0x140);
piVar3 = (int *)cs_file_sec(param_2,param_3);
if (piVar3 == (int *)0x0) {
local_40 = 0;
}
else {
local_40 = *piVar3;
}
if (local_40 == 0) {
(**(code **)(*(long *)(lVar1 + 0x7a8) + 0xa0))(1,"Unknown LDML tag: \'%.*s\'",param_3,param_2);
}
else if (local_40 == 8) {
my_charset_file_reset_charset(lVar1);
}
else if (local_40 == 9) {
my_charset_file_reset_collation(lVar1);
}
else if (local_40 == 0x12d) {
uVar2 = tailoring_append(param_1,&DAT_001866f0,0);
return uVar2;
}
return 0;
}
| |
48,274 | mysql_find_charset_name | eloqsql/libmariadb/libmariadb/ma_charset.c | MARIADB_CHARSET_INFO * mysql_find_charset_name(const char *name)
{
MARIADB_CHARSET_INFO *c = (MARIADB_CHARSET_INFO *)mariadb_compiled_charsets;
const char *csname;
if (!strcasecmp(name, MADB_AUTODETECT_CHARSET_NAME))
csname= madb_get_os_character_set();
else
csname= (char *)name;
if (!strcasecmp("utf8",csname))
csname= "utf8mb3";
do {
if (!strcasecmp(c->csname, csname)) {
return(c);
}
++c;
} while (c[0].nr != 0);
return(NULL);
} | O0 | c | mysql_find_charset_name:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
leaq 0x12cbd(%rip), %rax # 0x57fb0
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x9ef3(%rip), %rsi # 0x4f1f5
callq 0x13480
cmpl $0x0, %eax
jne 0x45317
callq 0x45390
movq %rax, -0x20(%rbp)
jmp 0x4531f
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rsi
leaq 0x9ed0(%rip), %rdi # 0x4f1fa
callq 0x13480
cmpl $0x0, %eax
jne 0x4533f
leaq 0x8468(%rip), %rax # 0x4d7a3
movq %rax, -0x20(%rbp)
jmp 0x45341
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x20(%rbp), %rsi
callq 0x13480
cmpl $0x0, %eax
jne 0x45361
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x4537e
movq -0x18(%rbp), %rax
addq $0x48, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x45341
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| mysql_find_charset_name:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
lea rax, mariadb_compiled_charsets
mov [rbp+var_18], rax
mov rdi, [rbp+var_10]
lea rsi, aAuto; "auto"
call _strcasecmp
cmp eax, 0
jnz short loc_45317
call madb_get_os_character_set
mov [rbp+var_20], rax
jmp short loc_4531F
loc_45317:
mov rax, [rbp+var_10]
mov [rbp+var_20], rax
loc_4531F:
mov rsi, [rbp+var_20]
lea rdi, aUtf8; "utf8"
call _strcasecmp
cmp eax, 0
jnz short loc_4533F
lea rax, aUtf8mb3; "utf8mb3"
mov [rbp+var_20], rax
loc_4533F:
jmp short $+2
loc_45341:
mov rax, [rbp+var_18]
mov rdi, [rax+8]
mov rsi, [rbp+var_20]
call _strcasecmp
cmp eax, 0
jnz short loc_45361
mov rax, [rbp+var_18]
mov [rbp+var_8], rax
jmp short loc_4537E
loc_45361:
mov rax, [rbp+var_18]
add rax, 48h ; 'H'
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
cmp dword ptr [rax], 0
jnz short loc_45341
mov [rbp+var_8], 0
loc_4537E:
mov rax, [rbp+var_8]
add rsp, 20h
pop rbp
retn
| _QWORD * mysql_find_charset_name(const char *a1)
{
int v1; // eax
const char *os_character_set; // [rsp+0h] [rbp-20h]
_QWORD *v4; // [rsp+8h] [rbp-18h]
v4 = &mariadb_compiled_charsets;
if ( !(unsigned int)strcasecmp(a1, "auto") )
{
os_character_set = (const char *)madb_get_os_character_set();
v1 = strcasecmp("utf8", os_character_set);
}
else
{
os_character_set = a1;
v1 = strcasecmp("utf8", a1);
}
if ( !v1 )
os_character_set = "utf8mb3";
do
{
if ( !(unsigned int)strcasecmp(v4[1], os_character_set) )
return v4;
v4 += 9;
}
while ( *(_DWORD *)v4 );
return 0LL;
}
| mysql_find_charset_name:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
LEA RAX,[0x157fb0]
MOV qword ptr [RBP + -0x18],RAX
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x14f1f5]
CALL 0x00113480
CMP EAX,0x0
JNZ 0x00145317
CALL 0x00145390
MOV qword ptr [RBP + -0x20],RAX
JMP 0x0014531f
LAB_00145317:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x20],RAX
LAB_0014531f:
MOV RSI,qword ptr [RBP + -0x20]
LEA RDI,[0x14f1fa]
CALL 0x00113480
CMP EAX,0x0
JNZ 0x0014533f
LEA RAX,[0x14d7a3]
MOV qword ptr [RBP + -0x20],RAX
LAB_0014533f:
JMP 0x00145341
LAB_00145341:
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX + 0x8]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x00113480
CMP EAX,0x0
JNZ 0x00145361
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0014537e
LAB_00145361:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x48
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
CMP dword ptr [RAX],0x0
JNZ 0x00145341
MOV qword ptr [RBP + -0x8],0x0
LAB_0014537e:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x20
POP RBP
RET
|
int * mysql_find_charset_name(char *param_1)
{
int iVar1;
char *local_28;
int *local_20;
local_20 = &mariadb_compiled_charsets;
iVar1 = strcasecmp(param_1,"auto");
local_28 = param_1;
if (iVar1 == 0) {
local_28 = (char *)madb_get_os_character_set();
}
iVar1 = strcasecmp("utf8",local_28);
if (iVar1 == 0) {
local_28 = "utf8mb3";
}
do {
iVar1 = strcasecmp(*(char **)(local_20 + 2),local_28);
if (iVar1 == 0) {
return local_20;
}
local_20 = local_20 + 0x12;
} while (*local_20 != 0);
return (int *)0x0;
}
| |
48,275 | my_strnxfrm_uca_padn | eloqsql/strings/ctype-uca.c | static uchar *
my_strnxfrm_uca_padn(uchar *dst, uchar *de, uint nweights, int weight)
{
uint count= MY_MIN((uint) (de - dst) / 2, nweights);
for (; count ; count--)
{
*dst++= weight >> 8;
*dst++= weight & 0xFF;
}
return dst;
} | O0 | c | my_strnxfrm_uca_padn:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
subq %rcx, %rax
shrl %eax
cmpl -0x14(%rbp), %eax
jae 0x580b6
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
subq %rcx, %rax
shrl %eax
movl %eax, -0x20(%rbp)
jmp 0x580bc
movl -0x14(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x58107
movl -0x18(%rbp), %eax
sarl $0x8, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x8(%rbp)
movb %cl, (%rax)
movl -0x18(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x8(%rbp)
movb %cl, (%rax)
movl -0x1c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x580c2
movq -0x8(%rbp), %rax
popq %rbp
retq
nopl (%rax)
| my_strnxfrm_uca_padn:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov [rbp+var_18], ecx
mov rax, [rbp+var_10]
mov rcx, [rbp+var_8]
sub rax, rcx
shr eax, 1
cmp eax, [rbp+var_14]
jnb short loc_580B6
mov rax, [rbp+var_10]
mov rcx, [rbp+var_8]
sub rax, rcx
shr eax, 1
mov [rbp+var_20], eax
jmp short loc_580BC
loc_580B6:
mov eax, [rbp+var_14]
mov [rbp+var_20], eax
loc_580BC:
mov eax, [rbp+var_20]
mov [rbp+var_1C], eax
loc_580C2:
cmp [rbp+var_1C], 0
jz short loc_58107
mov eax, [rbp+var_18]
sar eax, 8
mov cl, al
mov rax, [rbp+var_8]
mov rdx, rax
add rdx, 1
mov [rbp+var_8], rdx
mov [rax], cl
mov eax, [rbp+var_18]
and eax, 0FFh
mov cl, al
mov rax, [rbp+var_8]
mov rdx, rax
add rdx, 1
mov [rbp+var_8], rdx
mov [rax], cl
mov eax, [rbp+var_1C]
add eax, 0FFFFFFFFh
mov [rbp+var_1C], eax
jmp short loc_580C2
loc_58107:
mov rax, [rbp+var_8]
pop rbp
retn
| _BYTE * my_strnxfrm_uca_padn(_BYTE *a1, int a2, unsigned int a3, __int16 a4)
{
_BYTE *v4; // rax
unsigned int v6; // [rsp+0h] [rbp-20h]
unsigned int i; // [rsp+4h] [rbp-1Ch]
_BYTE *v8; // [rsp+18h] [rbp-8h]
v8 = a1;
if ( (unsigned int)(a2 - (_DWORD)a1) >> 1 >= a3 )
v6 = a3;
else
v6 = (unsigned int)(a2 - (_DWORD)a1) >> 1;
for ( i = v6; i; --i )
{
*v8 = HIBYTE(a4);
v4 = v8 + 1;
v8 += 2;
*v4 = a4;
}
return v8;
}
| my_strnxfrm_uca_padn:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV dword ptr [RBP + -0x18],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x8]
SUB RAX,RCX
SHR EAX,0x1
CMP EAX,dword ptr [RBP + -0x14]
JNC 0x001580b6
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x8]
SUB RAX,RCX
SHR EAX,0x1
MOV dword ptr [RBP + -0x20],EAX
JMP 0x001580bc
LAB_001580b6:
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x20],EAX
LAB_001580bc:
MOV EAX,dword ptr [RBP + -0x20]
MOV dword ptr [RBP + -0x1c],EAX
LAB_001580c2:
CMP dword ptr [RBP + -0x1c],0x0
JZ 0x00158107
MOV EAX,dword ptr [RBP + -0x18]
SAR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x8],RDX
MOV byte ptr [RAX],CL
MOV EAX,dword ptr [RBP + -0x18]
AND EAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x8],RDX
MOV byte ptr [RAX],CL
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x001580c2
LAB_00158107:
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
int1 * my_strnxfrm_uca_padn(int1 *param_1,int param_2,uint param_3,int4 param_4)
{
int1 *puVar1;
uint local_28;
uint local_24;
int1 *local_10;
local_28 = param_3;
if ((uint)(param_2 - (int)param_1) >> 1 < param_3) {
local_28 = (uint)(param_2 - (int)param_1) >> 1;
}
local_10 = param_1;
for (local_24 = local_28; local_24 != 0; local_24 = local_24 - 1) {
puVar1 = local_10 + 1;
*local_10 = (char)((uint)param_4 >> 8);
local_10 = local_10 + 2;
*puVar1 = (char)param_4;
}
return local_10;
}
| |
48,276 | 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 0x2cf2f8(%rip), %r13 # 0x383420
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 0xb41c7
movslq %ecx, %rax
movq %rax, -0x58(%rbp)
movq (%r13,%rax,8), %r9
movzbl (%r8), %eax
movzbl (%r9,%rax), %eax
testl %eax, %eax
je 0xb4196
cmpl $0x2, %eax
jne 0xb41fb
incq %r8
movq %r8, %rax
subq %r15, %rax
movq %r8, %r10
cmpq %rdx, %rax
jge 0xb41a4
movzbl (%r10), %edi
cmpb $0x2, (%r9,%rdi)
jne 0xb41a4
incq %r10
incq %rax
movq %r10, %rdi
cmpq %rdx, %rax
jl 0xb417b
jmp 0xb41a7
incq %r8
movq %r8, %rax
subq %r15, %rax
movq %r8, %r10
jmp 0xb41c0
movq %r8, %rdi
cmpl $0x3, %ecx
cmovgeq %rdi, %r10
movq %r10, %rax
subq %r15, %rax
cmpq %rdx, %rax
jl 0xb427c
movq %r10, %r8
cmpq %rdx, %rax
jl 0xb4154
jmp 0xb41ca
movq %r8, %r10
cmpl $0x3, %ecx
jne 0xb41e2
xorl %r9d, %r9d
movl $0x3, %ecx
movq %r14, %rax
movq %r10, %r8
jmp 0xb42d4
testl %ecx, %ecx
movq %r15, %r8
cmoveq %r14, %r8
incl %ecx
movl $0x1, %r9d
movq %r14, %rax
jmp 0xb42d4
cmpl $0xff, %eax
jne 0xb42ca
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 0x2cf215(%rip), %rax # 0x383440
movq (%r11,%rax), %r13
movb (%r13), %al
testb %al, %al
je 0xb4268
cmpq %rdx, %r9
jge 0xb4268
incq %r13
movq -0x60(%rbp), %r10
movq %r8, %r12
cmpb %al, (%r12)
jne 0xb426f
incq %r12
movb (%r13), %al
testb %al, %al
je 0xb426b
incq %r13
leaq 0x1(%r10), %rdi
cmpq %rdx, %r10
movq %rdi, %r10
jl 0xb4246
jmp 0xb426b
movq %r8, %r12
testb %al, %al
je 0xb429c
incq %rbx
cmpq $0x50, %rbx
jne 0xb421d
movb $-0x1, %al
jmp 0xb42b7
movl $0x2, %r9d
cmpl $0x1, %ecx
jg 0xb41d7
movl $0x1, %edi
subl %ecx, %edi
movq %r10, %rax
movl %edi, %ecx
movq %r14, %r8
jmp 0xb42d4
leaq 0x2cf19d(%rip), %rax # 0x383440
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 0x2cf156(%rip), %r13 # 0x383420
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 0xb42f6
movq -0x48(%rbp), %rsi
movb %r9b, (%rsi,%r12)
incq %r12
movq %rax, %r14
testl %r9d, %r9d
jne 0xb4136
testb %r11b, %r11b
sets %al
movq %rbx, %rdx
subq %r12, %rdx
seta %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xb432b
movq -0x48(%rbp), %rdi
addq %r12, %rdi
movl $0x20, %esi
callq 0x29270
jmp 0xb432e
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_B4136:
mov esi, 1
shl esi, cl
mov rax, r8
sub rax, r15
cmp rax, rdx
jge short loc_B41C7
movsxd rax, ecx
mov [rbp+var_58], rax
mov r9, [r13+rax*8+0]
loc_B4154:
movzx eax, byte ptr [r8]
movzx eax, byte ptr [r9+rax]
test eax, eax
jz short loc_B4196
cmp eax, 2
jnz loc_B41FB
inc r8
mov rax, r8
sub rax, r15
mov r10, r8
cmp rax, rdx
jge short loc_B41A4
loc_B417B:
movzx edi, byte ptr [r10]
cmp byte ptr [r9+rdi], 2
jnz short loc_B41A4
inc r10
inc rax
mov rdi, r10
cmp rax, rdx
jl short loc_B417B
jmp short loc_B41A7
loc_B4196:
inc r8
mov rax, r8
sub rax, r15
mov r10, r8
jmp short loc_B41C0
loc_B41A4:
mov rdi, r8
loc_B41A7:
cmp ecx, 3
cmovge r10, rdi
mov rax, r10
sub rax, r15
cmp rax, rdx
jl loc_B427C
mov r8, r10
loc_B41C0:
cmp rax, rdx
jl short loc_B4154
jmp short loc_B41CA
loc_B41C7:
mov r10, r8
loc_B41CA:
cmp ecx, 3
jnz short loc_B41E2
xor r9d, r9d
mov ecx, 3
loc_B41D7:
mov rax, r14
mov r8, r10
jmp loc_B42D4
loc_B41E2:
test ecx, ecx
mov r8, r15
cmovz r8, r14
inc ecx
mov r9d, 1
mov rax, r14
jmp loc_B42D4
loc_B41FB:
cmp eax, 0FFh
jnz loc_B42CA
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_B421D:
mov r11, rbx
shl r11, 4
lea rax, doubles
mov r13, [r11+rax]
mov al, [r13+0]
test al, al
jz short loc_B4268
cmp r9, rdx
jge short loc_B4268
inc r13
mov r10, [rbp+var_60]
mov r12, r8
loc_B4246:
cmp [r12], al
jnz short loc_B426F
inc r12
mov al, [r13+0]
test al, al
jz short loc_B426B
inc r13
lea rdi, [r10+1]
cmp r10, rdx
mov r10, rdi
jl short loc_B4246
jmp short loc_B426B
loc_B4268:
mov r12, r8
loc_B426B:
test al, al
jz short loc_B429C
loc_B426F:
inc rbx
cmp rbx, 50h ; 'P'
jnz short loc_B421D
mov al, 0FFh
jmp short loc_B42B7
loc_B427C:
mov r9d, 2
cmp ecx, 1
jg loc_B41D7
mov edi, 1
sub edi, ecx
mov rax, r10
mov ecx, edi
mov r8, r14
jmp short loc_B42D4
loc_B429C:
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_B42B7:
mov rbx, [rbp+var_38]
mov r11d, [rbp+var_2C]
mov r12, [rbp+var_40]
lea r13, CZ_SORT_TABLE
loc_B42CA:
movzx r9d, al
inc r8
mov rax, r14
loc_B42D4:
test esi, r11d
setnz r10b
cmp r12, rbx
setb dil
and dil, r10b
cmp dil, 1
jnz short loc_B42F6
mov rsi, [rbp+var_48]
mov [rsi+r12], r9b
inc r12
loc_B42F6:
mov r14, rax
test r9d, r9d
jnz loc_B4136
test r11b, r11b
sets al
mov rdx, rbx
sub rdx, r12
setnbe cl
and cl, al
cmp cl, 1
jnz short loc_B432B
mov rdi, [rbp+var_48]
add rdi, r12
mov esi, 20h ; ' '
call _memset
jmp short loc_B432E
loc_B432B:
mov rbx, r12
loc_B432E:
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,[0x483420]
MOV R14,R8
XOR R12D,R12D
MOV qword ptr [RBP + -0x38],RBX
MOV dword ptr [RBP + -0x2c],R11D
LAB_001b4136:
MOV ESI,0x1
SHL ESI,CL
MOV RAX,R8
SUB RAX,R15
CMP RAX,RDX
JGE 0x001b41c7
MOVSXD RAX,ECX
MOV qword ptr [RBP + -0x58],RAX
MOV R9,qword ptr [R13 + RAX*0x8]
LAB_001b4154:
MOVZX EAX,byte ptr [R8]
MOVZX EAX,byte ptr [R9 + RAX*0x1]
TEST EAX,EAX
JZ 0x001b4196
CMP EAX,0x2
JNZ 0x001b41fb
INC R8
MOV RAX,R8
SUB RAX,R15
MOV R10,R8
CMP RAX,RDX
JGE 0x001b41a4
LAB_001b417b:
MOVZX EDI,byte ptr [R10]
CMP byte ptr [R9 + RDI*0x1],0x2
JNZ 0x001b41a4
INC R10
INC RAX
MOV RDI,R10
CMP RAX,RDX
JL 0x001b417b
JMP 0x001b41a7
LAB_001b4196:
INC R8
MOV RAX,R8
SUB RAX,R15
MOV R10,R8
JMP 0x001b41c0
LAB_001b41a4:
MOV RDI,R8
LAB_001b41a7:
CMP ECX,0x3
CMOVGE R10,RDI
MOV RAX,R10
SUB RAX,R15
CMP RAX,RDX
JL 0x001b427c
MOV R8,R10
LAB_001b41c0:
CMP RAX,RDX
JL 0x001b4154
JMP 0x001b41ca
LAB_001b41c7:
MOV R10,R8
LAB_001b41ca:
CMP ECX,0x3
JNZ 0x001b41e2
XOR R9D,R9D
MOV ECX,0x3
LAB_001b41d7:
MOV RAX,R14
MOV R8,R10
JMP 0x001b42d4
LAB_001b41e2:
TEST ECX,ECX
MOV R8,R15
CMOVZ R8,R14
INC ECX
MOV R9D,0x1
MOV RAX,R14
JMP 0x001b42d4
LAB_001b41fb:
CMP EAX,0xff
JNZ 0x001b42ca
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_001b421d:
MOV R11,RBX
SHL R11,0x4
LEA RAX,[0x483440]
MOV R13,qword ptr [R11 + RAX*0x1]
MOV AL,byte ptr [R13]
TEST AL,AL
JZ 0x001b4268
CMP R9,RDX
JGE 0x001b4268
INC R13
MOV R10,qword ptr [RBP + -0x60]
MOV R12,R8
LAB_001b4246:
CMP byte ptr [R12],AL
JNZ 0x001b426f
INC R12
MOV AL,byte ptr [R13]
TEST AL,AL
JZ 0x001b426b
INC R13
LEA RDI,[R10 + 0x1]
CMP R10,RDX
MOV R10,RDI
JL 0x001b4246
JMP 0x001b426b
LAB_001b4268:
MOV R12,R8
LAB_001b426b:
TEST AL,AL
JZ 0x001b429c
LAB_001b426f:
INC RBX
CMP RBX,0x50
JNZ 0x001b421d
MOV AL,0xff
JMP 0x001b42b7
LAB_001b427c:
MOV R9D,0x2
CMP ECX,0x1
JG 0x001b41d7
MOV EDI,0x1
SUB EDI,ECX
MOV RAX,R10
MOV ECX,EDI
MOV R8,R14
JMP 0x001b42d4
LAB_001b429c:
LEA RAX,[0x483440]
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_001b42b7:
MOV RBX,qword ptr [RBP + -0x38]
MOV R11D,dword ptr [RBP + -0x2c]
MOV R12,qword ptr [RBP + -0x40]
LEA R13,[0x483420]
LAB_001b42ca:
MOVZX R9D,AL
INC R8
MOV RAX,R14
LAB_001b42d4:
TEST ESI,R11D
SETNZ R10B
CMP R12,RBX
SETC DIL
AND DIL,R10B
CMP DIL,0x1
JNZ 0x001b42f6
MOV RSI,qword ptr [RBP + -0x48]
MOV byte ptr [RSI + R12*0x1],R9B
INC R12
LAB_001b42f6:
MOV R14,RAX
TEST R9D,R9D
JNZ 0x001b4136
TEST R11B,R11B
SETS AL
MOV RDX,RBX
SUB RDX,R12
SETA CL
AND CL,AL
CMP CL,0x1
JNZ 0x001b432b
MOV RDI,qword ptr [RBP + -0x48]
ADD RDI,R12
MOV ESI,0x20
CALL 0x00129270
JMP 0x001b432e
LAB_001b432b:
MOV RBX,R12
LAB_001b432e:
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_001b4136:
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_001b42ca;
lVar6 = 0;
goto LAB_001b421d;
}
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_001b42d4;
}
}
} 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_001b42d4;
LAB_001b421d:
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_001b426f;
pbVar12 = pbVar12 + 1;
bVar4 = *pbVar15;
if (bVar4 == 0) break;
pbVar3 = pbVar2 + 1;
pbVar11 = pbVar2;
}
}
if (bVar4 == 0) {
cVar5 = (&PTR_DAT_00483448)[lVar6 * 2][iVar9];
pbVar13 = pbVar12 + -1;
goto LAB_001b42ca;
}
LAB_001b426f:
lVar6 = lVar6 + 1;
} while (lVar6 != 0x50);
cVar5 = -1;
LAB_001b42ca:
pbVar13 = pbVar13 + 1;
LAB_001b42d4:
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_001b4136;
}
| |
48,277 | translog_get_chunk_header_length | eloqsql/storage/maria/ma_loghandler.c | static uint16 translog_get_chunk_header_length(uchar *chunk)
{
DBUG_ENTER("translog_get_chunk_header_length");
switch (*chunk & TRANSLOG_CHUNK_TYPE) {
case TRANSLOG_CHUNK_LSN:
{
/* 0 chunk referred as LSN (head or tail) */
translog_size_t rec_len __attribute__((unused));
uchar *start= chunk;
uchar *ptr= start + 1 + 2;
uint16 chunk_len, header_len;
DBUG_PRINT("info", ("TRANSLOG_CHUNK_LSN"));
rec_len= translog_variable_record_1group_decode_len(&ptr);
chunk_len= uint2korr(ptr);
header_len= (uint16) (ptr - start) +2;
DBUG_PRINT("info", ("rec len: %lu chunk len: %u header len: %u",
(ulong) rec_len, (uint) chunk_len, (uint) header_len));
if (chunk_len)
{
/* TODO: fine header end */
/*
The last chunk of multi-group record can be base for it header
calculation (we skip to the first group to read the header) so if we
stuck here something is wrong.
*/
DBUG_ASSERT(0);
DBUG_RETURN(0); /* Keep compiler happy */
}
DBUG_RETURN(header_len);
}
case TRANSLOG_CHUNK_FIXED:
{
/* 1 (pseudo)fixed record (also LSN) */
DBUG_PRINT("info", ("TRANSLOG_CHUNK_FIXED = 3"));
DBUG_RETURN(3);
}
case TRANSLOG_CHUNK_NOHDR:
/* 2 no header chunk (till page end) */
DBUG_PRINT("info", ("TRANSLOG_CHUNK_NOHDR = 1"));
DBUG_RETURN(1);
break;
case TRANSLOG_CHUNK_LNGTH:
/* 3 chunk with chunk length */
DBUG_PRINT("info", ("TRANSLOG_CHUNK_LNGTH = 3"));
DBUG_RETURN(3);
break;
}
DBUG_ASSERT(0);
DBUG_RETURN(0); /* Keep compiler happy */
} | O0 | c | translog_get_chunk_header_length:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
andl $0xc0, %eax
movl %eax, -0x30(%rbp)
je 0x993c0
jmp 0x9938f
movl -0x30(%rbp), %eax
subl $0x40, %eax
je 0x99429
jmp 0x9939d
movl -0x30(%rbp), %eax
subl $0x80, %eax
je 0x99437
jmp 0x993ad
movl -0x30(%rbp), %eax
subl $0xc0, %eax
je 0x99445
jmp 0x99453
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
addq $0x1, %rax
addq $0x2, %rax
movq %rax, -0x28(%rbp)
jmp 0x993da
leaq -0x28(%rbp), %rdi
callq 0x95be0
movl %eax, -0x14(%rbp)
movq -0x28(%rbp), %rax
movw (%rax), %ax
movw %ax, -0x2a(%rbp)
movq -0x28(%rbp), %rax
movq -0x20(%rbp), %rcx
subq %rcx, %rax
movzwl %ax, %eax
addl $0x2, %eax
movw %ax, -0x2c(%rbp)
jmp 0x99408
cmpw $0x0, -0x2a(%rbp)
je 0x9941d
jmp 0x99411
jmp 0x99413
jmp 0x99415
movw $0x0, -0x2(%rbp)
jmp 0x9945f
jmp 0x9941f
movw -0x2c(%rbp), %ax
movw %ax, -0x2(%rbp)
jmp 0x9945f
jmp 0x9942b
jmp 0x9942d
jmp 0x9942f
movw $0x3, -0x2(%rbp)
jmp 0x9945f
jmp 0x99439
jmp 0x9943b
jmp 0x9943d
movw $0x1, -0x2(%rbp)
jmp 0x9945f
jmp 0x99447
jmp 0x99449
jmp 0x9944b
movw $0x3, -0x2(%rbp)
jmp 0x9945f
jmp 0x99455
jmp 0x99457
jmp 0x99459
movw $0x0, -0x2(%rbp)
movw -0x2(%rbp), %ax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
| translog_get_chunk_header_length:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax]
and eax, 0C0h
mov [rbp+var_30], eax
jz short loc_993C0
jmp short $+2
loc_9938F:
mov eax, [rbp+var_30]
sub eax, 40h ; '@'
jz loc_99429
jmp short $+2
loc_9939D:
mov eax, [rbp+var_30]
sub eax, 80h
jz loc_99437
jmp short $+2
loc_993AD:
mov eax, [rbp+var_30]
sub eax, 0C0h
jz loc_99445
jmp loc_99453
loc_993C0:
mov rax, [rbp+var_10]
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
add rax, 1
add rax, 2
mov [rbp+var_28], rax
jmp short $+2
loc_993DA:
lea rdi, [rbp+var_28]
call translog_variable_record_1group_decode_len
mov [rbp+var_14], eax
mov rax, [rbp+var_28]
mov ax, [rax]
mov [rbp+var_2A], ax
mov rax, [rbp+var_28]
mov rcx, [rbp+var_20]
sub rax, rcx
movzx eax, ax
add eax, 2
mov [rbp+var_2C], ax
jmp short $+2
loc_99408:
cmp [rbp+var_2A], 0
jz short loc_9941D
jmp short $+2
loc_99411:
jmp short $+2
loc_99413:
jmp short $+2
loc_99415:
mov [rbp+var_2], 0
jmp short loc_9945F
loc_9941D:
jmp short $+2
loc_9941F:
mov ax, [rbp+var_2C]
mov [rbp+var_2], ax
jmp short loc_9945F
loc_99429:
jmp short $+2
loc_9942B:
jmp short $+2
loc_9942D:
jmp short $+2
loc_9942F:
mov [rbp+var_2], 3
jmp short loc_9945F
loc_99437:
jmp short $+2
loc_99439:
jmp short $+2
loc_9943B:
jmp short $+2
loc_9943D:
mov [rbp+var_2], 1
jmp short loc_9945F
loc_99445:
jmp short $+2
loc_99447:
jmp short $+2
loc_99449:
jmp short $+2
loc_9944B:
mov [rbp+var_2], 3
jmp short loc_9945F
loc_99453:
jmp short $+2
loc_99455:
jmp short $+2
loc_99457:
jmp short $+2
loc_99459:
mov [rbp+var_2], 0
loc_9945F:
mov ax, [rbp+var_2]
add rsp, 30h
pop rbp
retn
| __int16 translog_get_chunk_header_length(_BYTE *a1)
{
int v2; // [rsp+0h] [rbp-30h]
unsigned __int8 *v3; // [rsp+8h] [rbp-28h] BYREF
_BYTE *v4; // [rsp+10h] [rbp-20h]
int v5; // [rsp+1Ch] [rbp-14h]
_BYTE *v6; // [rsp+20h] [rbp-10h]
v6 = a1;
v2 = *a1 & 0xC0;
if ( (*a1 & 0xC0) != 0 )
{
switch ( v2 )
{
case 64:
return 3;
case 128:
return 1;
case 192:
return 3;
default:
return 0;
}
}
else
{
v4 = v6;
v3 = v6 + 3;
v5 = translog_variable_record_1group_decode_len(&v3);
if ( *(_WORD *)v3 )
return 0;
else
return (_WORD)v3 - (_WORD)v4 + 2;
}
}
| translog_get_chunk_header_length:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX]
AND EAX,0xc0
MOV dword ptr [RBP + -0x30],EAX
JZ 0x001993c0
JMP 0x0019938f
LAB_0019938f:
MOV EAX,dword ptr [RBP + -0x30]
SUB EAX,0x40
JZ 0x00199429
JMP 0x0019939d
LAB_0019939d:
MOV EAX,dword ptr [RBP + -0x30]
SUB EAX,0x80
JZ 0x00199437
JMP 0x001993ad
LAB_001993ad:
MOV EAX,dword ptr [RBP + -0x30]
SUB EAX,0xc0
JZ 0x00199445
JMP 0x00199453
LAB_001993c0:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
ADD RAX,0x2
MOV qword ptr [RBP + -0x28],RAX
JMP 0x001993da
LAB_001993da:
LEA RDI,[RBP + -0x28]
CALL 0x00195be0
MOV dword ptr [RBP + -0x14],EAX
MOV RAX,qword ptr [RBP + -0x28]
MOV AX,word ptr [RAX]
MOV word ptr [RBP + -0x2a],AX
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x20]
SUB RAX,RCX
MOVZX EAX,AX
ADD EAX,0x2
MOV word ptr [RBP + -0x2c],AX
JMP 0x00199408
LAB_00199408:
CMP word ptr [RBP + -0x2a],0x0
JZ 0x0019941d
JMP 0x00199411
LAB_00199411:
JMP 0x00199413
LAB_00199413:
JMP 0x00199415
LAB_00199415:
MOV word ptr [RBP + -0x2],0x0
JMP 0x0019945f
LAB_0019941d:
JMP 0x0019941f
LAB_0019941f:
MOV AX,word ptr [RBP + -0x2c]
MOV word ptr [RBP + -0x2],AX
JMP 0x0019945f
LAB_00199429:
JMP 0x0019942b
LAB_0019942b:
JMP 0x0019942d
LAB_0019942d:
JMP 0x0019942f
LAB_0019942f:
MOV word ptr [RBP + -0x2],0x3
JMP 0x0019945f
LAB_00199437:
JMP 0x00199439
LAB_00199439:
JMP 0x0019943b
LAB_0019943b:
JMP 0x0019943d
LAB_0019943d:
MOV word ptr [RBP + -0x2],0x1
JMP 0x0019945f
LAB_00199445:
JMP 0x00199447
LAB_00199447:
JMP 0x00199449
LAB_00199449:
JMP 0x0019944b
LAB_0019944b:
MOV word ptr [RBP + -0x2],0x3
JMP 0x0019945f
LAB_00199453:
JMP 0x00199455
LAB_00199455:
JMP 0x00199457
LAB_00199457:
JMP 0x00199459
LAB_00199459:
MOV word ptr [RBP + -0x2],0x0
LAB_0019945f:
MOV AX,word ptr [RBP + -0x2]
ADD RSP,0x30
POP RBP
RET
|
int8 translog_get_chunk_header_length(byte *param_1)
{
uint uVar1;
ulong uVar2;
byte *local_30;
byte *local_28;
byte *local_18;
int2 local_a;
uVar1 = *param_1 & 0xc0;
if ((*param_1 & 0xc0) == 0) {
local_30 = param_1 + 3;
local_28 = param_1;
local_18 = param_1;
translog_variable_record_1group_decode_len(&local_30);
uVar1 = (ushort)((short)local_30 - (short)local_28) + 2;
uVar2 = (ulong)uVar1;
local_a = (int2)uVar1;
if (*(short *)local_30 == 0) {
uVar2 = (ulong)uVar1;
}
else {
local_a = 0;
}
}
else {
uVar2 = (ulong)(uVar1 - 0x40);
if (uVar1 - 0x40 == 0) {
local_a = 3;
}
else {
uVar2 = (ulong)(uVar1 - 0x80);
if (uVar1 - 0x80 == 0) {
local_a = 1;
}
else {
uVar2 = (ulong)(uVar1 - 0xc0);
if (uVar1 - 0xc0 == 0) {
local_a = 3;
}
else {
local_a = 0;
}
}
}
}
return CONCAT62((int6)(uVar2 >> 0x10),local_a);
}
| |
48,278 | ImPlot::AddColormap(char const*, ImVec4 const*, int, bool) | zkingston[P]unknot/build_O1/_deps/implot-src/implot.cpp | ImPlotColormap AddColormap(const char* name, const ImVec4* colormap, int size, bool qual) {
ImPlotContext& gp = *GImPlot;
IM_ASSERT_USER_ERROR(size > 1, "The colormap size must be greater than 1!");
IM_ASSERT_USER_ERROR(gp.ColormapData.GetIndex(name) == -1, "The colormap name has already been used!");
ImVector<ImU32> buffer;
buffer.resize(size);
for (int i = 0; i < size; ++i)
buffer[i] = ImGui::ColorConvertFloat4ToU32(colormap[i]);
return gp.ColormapData.Append(name, buffer.Data, size, qual);
} | O1 | cpp | ImPlot::AddColormap(char const*, ImVec4 const*, int, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, 0x14(%rsp)
movl %edx, %ebx
movq %rsi, %r12
movq %rdi, %r14
movq 0x2735e9(%rip), %r15 # 0x336ca0
cmpl $0x1, %edx
jg 0xc36c8
leaq 0x1d1ec3(%rip), %rdi # 0x295586
callq 0x2161f4
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2136be
leaq 0x3b8(%r15), %rdi
movl %eax, %esi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
callq 0x213fc4
cmpl $-0x1, %eax
je 0xc36f8
leaq 0x1d1ebd(%rip), %rdi # 0x2955b0
callq 0x2161f4
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movl 0x4(%rsp), %eax
cmpl %ebx, %eax
jge 0xc3762
testl %eax, %eax
je 0xc3718
movl %eax, %ebp
shrl $0x1f, %ebp
addl %eax, %ebp
sarl %ebp
addl %eax, %ebp
jmp 0xc371d
movl $0x8, %ebp
cmpl %ebx, %ebp
cmovlel %ebx, %ebp
cmpl %ebp, %eax
jge 0xc3762
movslq %ebp, %rdi
shlq $0x2, %rdi
callq 0x2130dc
movq %rax, %r13
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0xc3759
movslq (%rsp), %rdx
shlq $0x2, %rdx
movq %r13, %rdi
callq 0xf810
movq 0x8(%rsp), %rdi
callq 0x21318e
movq %r13, 0x8(%rsp)
movl %ebp, 0x4(%rsp)
movl %ebx, (%rsp)
testl %ebx, %ebx
jle 0xc378a
movl %ebx, %r13d
xorl %ebp, %ebp
movq %r12, %rdi
callq 0x213cfe
movq 0x8(%rsp), %rcx
movl %eax, (%rcx,%rbp,4)
incq %rbp
addq $0x10, %r12
cmpq %rbp, %r13
jne 0xc376e
addq $0x328, %r15 # imm = 0x328
movq 0x8(%rsp), %rdx
movzbl 0x14(%rsp), %r8d
movq %r15, %rdi
movq %r14, %rsi
movl %ebx, %ecx
callq 0xc7922
movl %eax, %ebx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0xc37ba
callq 0x21318e
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rdi
callq 0x14fdb
jmp 0xc37d5
movq %rax, %rbx
movq %rsp, %rdi
callq 0x55a1c
movq %rbx, %rdi
callq 0x101c0
| _ZN6ImPlot11AddColormapEPKcPK6ImVec4ib:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rsp+48h+var_34], ecx
mov ebx, edx
mov r12, rsi
mov r14, rdi
mov r15, cs:GImPlot
cmp edx, 1
jg short loc_C36C8
lea rdi, aTheColormapSiz; "The colormap size must be greater than "...
call _ZN5ImGui8ErrorLogEPKc; ImGui::ErrorLog(char const*)
loc_C36C8:
mov rdi, r14; char *
xor esi, esi; unsigned __int64
xor edx, edx; unsigned int
call _Z9ImHashStrPKcmj; ImHashStr(char const*,ulong,uint)
lea rdi, [r15+3B8h]; this
mov esi, eax; unsigned __int64
mov edx, 0FFFFFFFFh; int
call _ZNK12ImGuiStorage6GetIntEji; ImGuiStorage::GetInt(uint,int)
cmp eax, 0FFFFFFFFh
jz short loc_C36F8
lea rdi, aTheColormapNam; "The colormap name has already been used"...
call _ZN5ImGui8ErrorLogEPKc; ImGui::ErrorLog(char const*)
loc_C36F8:
xorps xmm0, xmm0
movaps xmmword ptr [rsp+48h+var_48], xmm0
mov eax, dword ptr [rsp+48h+var_48+4]
cmp eax, ebx
jge short loc_C3762
test eax, eax
jz short loc_C3718
mov ebp, eax
shr ebp, 1Fh
add ebp, eax
sar ebp, 1
add ebp, eax
jmp short loc_C371D
loc_C3718:
mov ebp, 8
loc_C371D:
cmp ebp, ebx
cmovle ebp, ebx
cmp eax, ebp
jge short loc_C3762
movsxd rdi, ebp
shl rdi, 2; this
call _ZN5ImGui8MemAllocEm; ImGui::MemAlloc(ulong)
mov r13, rax
mov rsi, [rsp+48h+var_48+8]; void *
test rsi, rsi
jz short loc_C3759
movsxd rdx, dword ptr [rsp+48h+var_48]
shl rdx, 2
mov rdi, r13
call _memcpy
mov rdi, [rsp+48h+var_48+8]; this
call _ZN5ImGui7MemFreeEPv; ImGui::MemFree(void *)
loc_C3759:
mov [rsp+48h+var_48+8], r13
mov dword ptr [rsp+48h+var_48+4], ebp
loc_C3762:
mov dword ptr [rsp+48h+var_48], ebx
test ebx, ebx
jle short loc_C378A
mov r13d, ebx
xor ebp, ebp
loc_C376E:
mov rdi, r12
call _ZN5ImGui23ColorConvertFloat4ToU32ERK6ImVec4; ImGui::ColorConvertFloat4ToU32(ImVec4 const&)
mov rcx, [rsp+48h+var_48+8]
mov [rcx+rbp*4], eax
inc rbp
add r12, 10h
cmp r13, rbp
jnz short loc_C376E
loc_C378A:
add r15, 328h
mov rdx, [rsp+48h+var_48+8]; unsigned int *
movzx r8d, byte ptr [rsp+48h+var_34]; bool
mov rdi, r15; this
mov rsi, r14; void *
mov ecx, ebx; int
call _ZN18ImPlotColormapData6AppendEPKcPKjib; ImPlotColormapData::Append(char const*,uint const*,int,bool)
mov ebx, eax
mov rdi, [rsp+48h+var_48+8]; this
test rdi, rdi
jz short loc_C37BA
call _ZN5ImGui7MemFreeEPv; ImGui::MemFree(void *)
loc_C37BA:
mov eax, ebx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rdi, rax
call __clang_call_terminate
jmp short $+2
loc_C37D5:
mov rbx, rax
mov rdi, rsp
call _ZN8ImVectorIjED2Ev; ImVector<uint>::~ImVector()
mov rdi, rbx
call __Unwind_Resume
| long long ImPlot::AddColormap(char *a1, const char *a2, int a3, bool a4)
{
const char *v5; // r12
ImGui *v6; // r15
unsigned int v7; // eax
unsigned long long v8; // rsi
int v9; // ebp
long long v10; // rbp
unsigned int v11; // ebx
ImGui *v13[2]; // [rsp+0h] [rbp-48h]
v5 = a2;
v6 = GImPlot;
if ( a3 <= 1 )
ImGui::ErrorLog((ImGui *)"The colormap size must be greater than 1!", a2);
v7 = ImHashStr(a1, 0LL, 0);
v8 = v7;
if ( (unsigned int)ImGuiStorage::GetInt((ImGui *)((char *)v6 + 952), v7, -1) != -1 )
ImGui::ErrorLog((ImGui *)"The colormap name has already been used!", (const char *)v8);
*(_OWORD *)v13 = 0LL;
if ( a3 > 0 )
{
v9 = 8;
if ( a3 >= 8 )
v9 = a3;
v13[1] = (ImGui *)ImGui::MemAlloc((ImGui *)(4LL * v9), v8);
}
if ( a3 > 0 )
{
v10 = 0LL;
do
{
*((_DWORD *)v13[1] + v10++) = ImGui::ColorConvertFloat4ToU32(v5);
v5 += 16;
}
while ( a3 != v10 );
}
v11 = ImPlotColormapData::Append((ImGui *)((char *)v6 + 808), a1, (const unsigned int *)v13[1], a3, a4);
if ( v13[1] )
ImGui::MemFree(v13[1], a1);
return v11;
}
| AddColormap:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV dword ptr [RSP + 0x14],ECX
MOV EBX,EDX
MOV R12,RSI
MOV R14,RDI
MOV R15,qword ptr [0x00436ca0]
CMP EDX,0x1
JG 0x001c36c8
LEA RDI,[0x395586]
CALL 0x003161f4
LAB_001c36c8:
MOV RDI,R14
XOR ESI,ESI
XOR EDX,EDX
CALL 0x003136be
LEA RDI,[R15 + 0x3b8]
MOV ESI,EAX
MOV EDX,0xffffffff
CALL 0x00313fc4
CMP EAX,-0x1
JZ 0x001c36f8
LEA RDI,[0x3955b0]
CALL 0x003161f4
LAB_001c36f8:
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
MOV EAX,dword ptr [RSP + 0x4]
CMP EAX,EBX
JGE 0x001c3762
TEST EAX,EAX
JZ 0x001c3718
MOV EBP,EAX
SHR EBP,0x1f
ADD EBP,EAX
SAR EBP,0x1
ADD EBP,EAX
JMP 0x001c371d
LAB_001c3718:
MOV EBP,0x8
LAB_001c371d:
CMP EBP,EBX
CMOVLE EBP,EBX
CMP EAX,EBP
JGE 0x001c3762
MOVSXD RDI,EBP
SHL RDI,0x2
LAB_001c372d:
CALL 0x003130dc
LAB_001c3732:
MOV R13,RAX
MOV RSI,qword ptr [RSP + 0x8]
TEST RSI,RSI
JZ 0x001c3759
MOVSXD RDX,dword ptr [RSP]
SHL RDX,0x2
MOV RDI,R13
CALL 0x0010f810
MOV RDI,qword ptr [RSP + 0x8]
LAB_001c3754:
CALL 0x0031318e
LAB_001c3759:
MOV qword ptr [RSP + 0x8],R13
MOV dword ptr [RSP + 0x4],EBP
LAB_001c3762:
MOV dword ptr [RSP],EBX
TEST EBX,EBX
JLE 0x001c378a
MOV R13D,EBX
XOR EBP,EBP
LAB_001c376e:
MOV RDI,R12
CALL 0x00313cfe
MOV RCX,qword ptr [RSP + 0x8]
MOV dword ptr [RCX + RBP*0x4],EAX
INC RBP
ADD R12,0x10
CMP R13,RBP
JNZ 0x001c376e
LAB_001c378a:
ADD R15,0x328
MOV RDX,qword ptr [RSP + 0x8]
LAB_001c3796:
MOVZX R8D,byte ptr [RSP + 0x14]
MOV RDI,R15
MOV RSI,R14
MOV ECX,EBX
CALL 0x001c7922
MOV EBX,EAX
MOV RDI,qword ptr [RSP + 0x8]
TEST RDI,RDI
JZ 0x001c37ba
LAB_001c37b5:
CALL 0x0031318e
LAB_001c37ba:
MOV EAX,EBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Removing unreachable block (ram,0x001c370b) */
/* WARNING: Removing unreachable block (ram,0x001c373f) */
/* ImPlot::AddColormap(char const*, ImVec4 const*, int, bool) */
int4 ImPlot::AddColormap(char *param_1,ImVec4 *param_2,int param_3,bool param_4)
{
long lVar1;
uint uVar2;
int iVar3;
int4 uVar4;
ulong uVar5;
uint *puStack_40;
lVar1 = GImPlot;
if (param_3 < 2) {
ImGui::ErrorLog("The colormap size must be greater than 1!");
}
uVar2 = ImHashStr(param_1,0,0);
iVar3 = ImGuiStorage::GetInt((ImGuiStorage *)(lVar1 + 0x3b8),uVar2,-1);
if (iVar3 != -1) {
ImGui::ErrorLog("The colormap name has already been used!");
}
puStack_40 = (uint *)0x0;
if (0 < param_3) {
iVar3 = 8;
if (7 < param_3) {
iVar3 = param_3;
}
if (0 < iVar3) {
/* try { // try from 001c372d to 001c3731 has its CatchHandler @ 001c37d3 */
puStack_40 = (uint *)ImGui::MemAlloc((long)iVar3 << 2);
}
}
if (0 < param_3) {
uVar5 = 0;
do {
/* try { // try from 001c376e to 001c3775 has its CatchHandler @ 001c37d5 */
uVar2 = ImGui::ColorConvertFloat4ToU32(param_2);
puStack_40[uVar5] = uVar2;
uVar5 = uVar5 + 1;
param_2 = param_2 + 0x10;
} while ((uint)param_3 != uVar5);
}
/* try { // try from 001c3796 to 001c37a8 has its CatchHandler @ 001c37d3 */
uVar4 = ImPlotColormapData::Append
((ImPlotColormapData *)(lVar1 + 0x328),param_1,puStack_40,param_3,param_4);
if (puStack_40 != (uint *)0x0) {
/* try { // try from 001c37b5 to 001c37b9 has its CatchHandler @ 001c37cb */
ImGui::MemFree(puStack_40);
}
return uVar4;
}
| |
48,279 | my_numcells_eucjp | eloqsql/strings/ctype-ujis.c | static
size_t my_numcells_eucjp(CHARSET_INFO *cs __attribute__((unused)),
const char *str, const char *str_end)
{
size_t clen;
const uchar *b= (const uchar *) str;
const uchar *e= (const uchar *) str_end;
for (clen= 0; b < e; )
{
if (*b == 0x8E)
{
clen++;
b+= 2;
}
else if (*b == 0x8F)
{
clen+= 2;
b+= 3;
}
else if (*b & 0x80)
{
clen+= 2;
b+= 2;
}
else
{
clen++;
b++;
}
}
return clen;
} | O3 | c | my_numcells_eucjp:
cmpq %rdx, %rsi
jae 0x58f5e
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
movzbl (%rsi), %edi
cmpl $0x8e, %edi
je 0x58f37
cmpl $0x8f, %edi
jne 0x58f43
movl $0x3, %edi
movl $0x2, %ecx
jmp 0x58f51
movl $0x2, %edi
movl $0x1, %ecx
jmp 0x58f51
xorl %ecx, %ecx
testb %dil, %dil
sets %cl
incq %rcx
movq %rcx, %rdi
addq %rcx, %rax
addq %rdi, %rsi
cmpq %rdx, %rsi
jb 0x58f18
popq %rbp
retq
xorl %eax, %eax
retq
| my_numcells_eucjp:
cmp rsi, rdx
jnb short loc_58F5E
push rbp
mov rbp, rsp
xor eax, eax
loc_58F18:
movzx edi, byte ptr [rsi]
cmp edi, 8Eh
jz short loc_58F37
cmp edi, 8Fh
jnz short loc_58F43
mov edi, 3
mov ecx, 2
jmp short loc_58F51
loc_58F37:
mov edi, 2
mov ecx, 1
jmp short loc_58F51
loc_58F43:
xor ecx, ecx
test dil, dil
sets cl
inc rcx
mov rdi, rcx
loc_58F51:
add rax, rcx
add rsi, rdi
cmp rsi, rdx
jb short loc_58F18
pop rbp
retn
loc_58F5E:
xor eax, eax
retn
| long long my_numcells_eucjp(long long a1, unsigned __int8 *a2, unsigned long long a3)
{
long long result; // rax
int v4; // edi
long long v5; // rdi
long long v6; // rcx
if ( (unsigned long long)a2 >= a3 )
return 0LL;
result = 0LL;
do
{
v4 = *a2;
if ( v4 == 142 )
{
v5 = 2LL;
v6 = 1LL;
}
else if ( v4 == 143 )
{
v5 = 3LL;
v6 = 2LL;
}
else
{
v6 = ((v4 & 0x80u) != 0) + 1LL;
v5 = v6;
}
result += v6;
a2 += v5;
}
while ( (unsigned long long)a2 < a3 );
return result;
}
| my_numcells_eucjp:
CMP RSI,RDX
JNC 0x00158f5e
PUSH RBP
MOV RBP,RSP
XOR EAX,EAX
LAB_00158f18:
MOVZX EDI,byte ptr [RSI]
CMP EDI,0x8e
JZ 0x00158f37
CMP EDI,0x8f
JNZ 0x00158f43
MOV EDI,0x3
MOV ECX,0x2
JMP 0x00158f51
LAB_00158f37:
MOV EDI,0x2
MOV ECX,0x1
JMP 0x00158f51
LAB_00158f43:
XOR ECX,ECX
TEST DIL,DIL
SETS CL
INC RCX
MOV RDI,RCX
LAB_00158f51:
ADD RAX,RCX
ADD RSI,RDI
CMP RSI,RDX
JC 0x00158f18
POP RBP
RET
LAB_00158f5e:
XOR EAX,EAX
RET
|
long my_numcells_eucjp(int8 param_1,char *param_2,char *param_3)
{
char cVar1;
long lVar2;
long lVar3;
long lVar4;
if (param_2 < param_3) {
lVar2 = 0;
do {
cVar1 = *param_2;
if (cVar1 == -0x72) {
lVar4 = 2;
lVar3 = 1;
}
else if (cVar1 == -0x71) {
lVar3 = 2;
lVar4 = 3;
}
else {
lVar3 = (ulong)(cVar1 < '\0') + 1;
lVar4 = lVar3;
}
lVar2 = lVar2 + lVar3;
param_2 = param_2 + lVar4;
} while (param_2 < param_3);
return lVar2;
}
return 0;
}
| |
48,280 | inline_mysql_rwlock_init | eloqsql/include/mysql/psi/mysql_thread.h | static inline int inline_mysql_rwlock_init(
#ifdef HAVE_PSI_RWLOCK_INTERFACE
PSI_rwlock_key key,
#endif
mysql_rwlock_t *that)
{
#ifdef HAVE_PSI_RWLOCK_INTERFACE
that->m_psi= PSI_RWLOCK_CALL(init_rwlock)(key, &that->m_rwlock);
#else
that->m_psi= NULL;
#endif
/*
pthread_rwlockattr_t is not used in MySQL.
*/
return my_rwlock_init(&that->m_rwlock, NULL);
} | O0 | c | inline_mysql_rwlock_init:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
leaq 0x1c0ec2(%rip), %rax # 0x2bf0b8
movq (%rax), %rax
movq 0x50(%rax), %rax
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
callq *%rax
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x90(%rax)
movq -0x10(%rbp), %rdi
callq 0xf98b0
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| inline_mysql_rwlock_init_2:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+50h]
mov edi, [rbp+var_4]
mov rsi, [rbp+var_10]
call rax
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+90h], rcx
mov rdi, [rbp+var_10]
call my_rw_init
add rsp, 10h
pop rbp
retn
| long long inline_mysql_rwlock_init_2(unsigned int a1, long long a2)
{
*(_QWORD *)(a2 + 144) = ((long long ( *)(_QWORD, long long))PSI_server[10])(a1, a2);
return my_rw_init(a2);
}
| inline_mysql_rwlock_init:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
LEA RAX,[0x3bf0b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x50]
MOV EDI,dword ptr [RBP + -0x4]
MOV RSI,qword ptr [RBP + -0x10]
CALL RAX
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x90],RCX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001f98b0
ADD RSP,0x10
POP RBP
RET
|
void inline_mysql_rwlock_init(int4 param_1,long param_2)
{
int8 uVar1;
uVar1 = (**(code **)(PSI_server + 0x50))(param_1,param_2);
*(int8 *)(param_2 + 0x90) = uVar1;
my_rw_init(param_2);
return;
}
| |
48,281 | CLI::ConversionError::TooManyInputsFlag(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) | MikePodsytnik[P]TCRtrie/build_O3/_deps/cli11-src/include/CLI/Error.hpp | static ConversionError TooManyInputsFlag(std::string name) {
return ConversionError(name + ": too many inputs for a flag");
} | O3 | cpp | CLI::ConversionError::TooManyInputsFlag(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>):
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
movq %rsp, %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x177be
leaq 0xe22a(%rip), %rsi # 0x37ce4
movq %r14, %rdi
callq 0x77e0
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x2a03c
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x29ae3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x7430
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x29af2
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x29b0b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x7430
movq %rbx, %rdi
callq 0x7780
nop
| _ZN3CLI15ConversionError17TooManyInputsFlagENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r15; __int64
push r14; int
push rbx; void *
sub rsp, 20h
mov rbx, rdi
lea r15, [rsp+38h+var_28]
mov [r15-10h], r15
mov rax, [rsi]
mov rdx, [rsi+8]
add rdx, rax
mov r14, rsp
mov rdi, r14
mov rsi, rax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rsi, aTooManyInputsF; ": too many inputs for a flag"
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, rsp
mov rdi, rbx; int
call _ZN3CLI15ConversionErrorC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; CLI::ConversionError::ConversionError(std::string)
mov rdi, [rsp+38h+var_38]; void *
cmp rdi, r15
jz short loc_29AE3
mov rsi, [rsp+38h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_29AE3:
mov rax, rbx
add rsp, 20h
pop rbx
pop r14
pop r15
retn
jmp short $+2
loc_29AF2:
mov rbx, rax
mov rdi, [rsp+0]; void *
cmp rdi, r15
jz short loc_29B0B
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_29B0B:
mov rdi, rbx
call __Unwind_Resume
| long long CLI::ConversionError::TooManyInputsFlag(long long a1, long long a2)
{
void *v3; // [rsp+0h] [rbp-38h] BYREF
int v4; // [rsp+8h] [rbp-30h]
long long v5; // [rsp+10h] [rbp-28h] BYREF
int v6; // [rsp+18h] [rbp-20h]
void *v7; // [rsp+20h] [rbp-18h]
int v8; // [rsp+28h] [rbp-10h]
long long v9; // [rsp+30h] [rbp-8h]
v3 = &v5;
std::string::_M_construct<char *>((long long)&v3, *(_BYTE **)a2, *(_QWORD *)a2 + *(_QWORD *)(a2 + 8));
std::string::append(&v3, ": too many inputs for a flag");
CLI::ConversionError::ConversionError(a1, v3, v4, v5, v6, v7, v8, v9);
if ( v3 != &v5 )
operator delete(v3, v5 + 1);
return a1;
}
| TooManyInputsFlag:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x20
MOV RBX,RDI
LEA R15,[RSP + 0x10]
MOV qword ptr [R15 + -0x10],R15
MOV RAX,qword ptr [RSI]
MOV RDX,qword ptr [RSI + 0x8]
ADD RDX,RAX
MOV R14,RSP
MOV RDI,R14
MOV RSI,RAX
CALL 0x001177be
LAB_00129ab3:
LEA RSI,[0x137ce4]
MOV RDI,R14
CALL 0x001077e0
LAB_00129ac2:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x0012a03c
LAB_00129acd:
MOV RDI,qword ptr [RSP]
CMP RDI,R15
JZ 0x00129ae3
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x00107430
LAB_00129ae3:
MOV RAX,RBX
ADD RSP,0x20
POP RBX
POP R14
POP R15
RET
|
/* CLI::ConversionError::TooManyInputsFlag(std::__cxx11::string) */
ConversionError * __thiscall
CLI::ConversionError::TooManyInputsFlag(ConversionError *this,long *param_2)
{
long *local_38 [2];
long local_28 [2];
local_38[0] = local_28;
std::__cxx11::string::_M_construct<char*>(local_38,*param_2,param_2[1] + *param_2);
/* try { // try from 00129ab3 to 00129ac1 has its CatchHandler @ 00129af2 */
std::__cxx11::string::append((char *)local_38);
/* try { // try from 00129ac2 to 00129acc has its CatchHandler @ 00129af0 */
ConversionError(this,local_38);
if (local_38[0] != local_28) {
operator_delete(local_38[0],local_28[0] + 1);
}
return this;
}
| |
48,282 | clip_uhd_num_image_embeds_col | monkey531[P]llama/examples/llava/clip.cpp | int clip_uhd_num_image_embeds_col(struct clip_ctx * ctx_clip) {
const int max_slice_nums=9;
const int scale_resolution=448;
const int original_width = ctx_clip->load_image_size->width;
const int original_height = ctx_clip->load_image_size->height;
const float log_ratio = log(1.0*original_width/original_height);
const float ratio = 1.0 * original_width * original_height/ (scale_resolution * scale_resolution);
const int multiple = fmin(ceil(ratio), max_slice_nums);
std::pair<int, int> best_grid = uhd_best_grid(max_slice_nums, multiple, log_ratio);
return best_grid.first;
} | O2 | cpp | clip_uhd_num_image_embeds_col:
subq $0x38, %rsp
movq 0x3a0(%rdi), %rax
cvtdq2pd (%rax), %xmm0
movapd %xmm0, 0x20(%rsp)
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1 # xmm1 = xmm1[1],xmm0[1]
movapd %xmm1, 0x10(%rsp)
divsd %xmm1, %xmm0
callq 0x269d0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xc(%rsp)
movapd 0x10(%rsp), %xmm0
mulsd 0x20(%rsp), %xmm0
divsd 0x902d6(%rip), %xmm0 # 0xc5d58
cvtsd2ss %xmm0, %xmm0
callq 0x266e0
cvtss2sd %xmm0, %xmm0
minsd 0x902c9(%rip), %xmm0 # 0xc5d60
cvttsd2si %xmm0, %edi
movss 0xc(%rsp), %xmm0
addq $0x38, %rsp
jmp 0x35aa7
| clip_uhd_num_image_embeds_col:
sub rsp, 38h
mov rax, [rdi+3A0h]
cvtdq2pd xmm0, qword ptr [rax]
movapd [rsp+38h+var_18], xmm0
movapd xmm1, xmm0
unpckhpd xmm1, xmm0
movapd [rsp+38h+var_28], xmm1
divsd xmm0, xmm1
call _log
cvtsd2ss xmm0, xmm0
movss [rsp+38h+var_2C], xmm0
movapd xmm0, [rsp+38h+var_28]
mulsd xmm0, qword ptr [rsp+38h+var_18]
divsd xmm0, cs:qword_C5D58
cvtsd2ss xmm0, xmm0
call _ceilf
cvtss2sd xmm0, xmm0
minsd xmm0, cs:qword_C5D60
cvttsd2si edi, xmm0; int
movss xmm0, [rsp+38h+var_2C]; float
add rsp, 38h
jmp short $+2; uhd_best_grid(int,int,float)
| long long clip_uhd_num_image_embeds_col(long long a1, int a2)
{
float v2; // xmm0_4
float v3; // xmm0_4
int v4; // edi
float v6; // [rsp+Ch] [rbp-2Ch]
double v7; // [rsp+10h] [rbp-28h]
__m128d v8; // [rsp+20h] [rbp-18h]
v8 = _mm_cvtepi32_pd((__m64)(*(__m64 **)(a1 + 928))->m64_u64);
v7 = _mm_unpackhi_pd(v8, v8).m128d_f64[0];
v2 = log(v8.m128d_f64[0] / v7);
v6 = v2;
v3 = v7 * v8.m128d_f64[0] / 200704.0;
v4 = (int)fmin(ceilf(v3), 9.0);
return uhd_best_grid(v4, a2, v6);
}
| clip_uhd_num_image_embeds_col:
SUB RSP,0x38
MOV RAX,qword ptr [RDI + 0x3a0]
CVTDQ2PD XMM0,qword ptr [RAX]
MOVAPD xmmword ptr [RSP + 0x20],XMM0
MOVAPD XMM1,XMM0
UNPCKHPD XMM1,XMM0
MOVAPD xmmword ptr [RSP + 0x10],XMM1
DIVSD XMM0,XMM1
CALL 0x001269d0
CVTSD2SS XMM0,XMM0
MOVSS dword ptr [RSP + 0xc],XMM0
MOVAPD XMM0,xmmword ptr [RSP + 0x10]
MULSD XMM0,qword ptr [RSP + 0x20]
DIVSD XMM0,qword ptr [0x001c5d58]
CVTSD2SS XMM0,XMM0
CALL 0x001266e0
CVTSS2SD XMM0,XMM0
MINSD XMM0,qword ptr [0x001c5d60]
CVTTSD2SI EDI,XMM0
MOVSS XMM0,dword ptr [RSP + 0xc]
ADD RSP,0x38
JMP 0x00135aa7
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void clip_uhd_num_image_embeds_col(long param_1,int param_2)
{
double dVar1;
double dVar2;
double dVar3;
float fVar4;
dVar1 = (double)(int)**(int8 **)(param_1 + 0x3a0);
dVar3 = (double)(int)((ulong)**(int8 **)(param_1 + 0x3a0) >> 0x20);
dVar2 = log(dVar1 / dVar3);
fVar4 = ceilf((float)((dVar3 * dVar1) / _DAT_001c5d58));
dVar1 = (double)fVar4;
if (DAT_001c5d60 <= (double)fVar4) {
dVar1 = DAT_001c5d60;
}
uhd_best_grid((int)dVar1,param_2,(float)dVar2);
return;
}
| |
48,283 | 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>>>>>::~lexer() | hkr04[P]cpp-mcp/common/json.hpp | ~lexer() = default; | 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>>>>>::~lexer():
pushq %rbx
movq %rdi, %rbx
movq 0x50(%rdi), %rdi
leaq 0x60(%rbx), %rax
cmpq %rax, %rdi
je 0x14eb0
movq (%rax), %rsi
incq %rsi
callq 0x5460
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x14ec6
movq 0x48(%rbx), %rsi
subq %rdi, %rsi
popq %rbx
jmp 0x5460
popq %rbx
retq
| _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev:
push rbx
mov rbx, rdi
mov rdi, [rdi+50h]; void *
lea rax, [rbx+60h]
cmp rdi, rax
jz short loc_14EB0
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_14EB0:
mov rdi, [rbx+38h]; void *
test rdi, rdi
jz short loc_14EC6
mov rsi, [rbx+48h]
sub rsi, rdi; unsigned __int64
pop rbx
jmp __ZdlPvm; operator delete(void *,ulong)
loc_14EC6:
pop rbx
retn
| 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::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~lexer(
_QWORD *a1)
{
_QWORD *v2; // rdi
void *v3; // rdi
v2 = (_QWORD *)a1[10];
if ( v2 != a1 + 12 )
operator delete(v2, a1[12] + 1LL);
v3 = (void *)a1[7];
if ( v3 )
operator delete(v3, a1[9] - (_QWORD)v3);
}
| ~lexer:
PUSH RBX
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0x50]
LEA RAX,[RBX + 0x60]
CMP RDI,RAX
JZ 0x00114eb0
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x00105460
LAB_00114eb0:
MOV RDI,qword ptr [RBX + 0x38]
TEST RDI,RDI
JZ 0x00114ec6
MOV RSI,qword ptr [RBX + 0x48]
SUB RSI,RDI
POP RBX
JMP 0x00105460
LAB_00114ec6:
POP RBX
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 > > >::~lexer() */
void __thiscall
nlohmann::json_abi_v3_11_3::detail::
lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::~lexer(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*this)
{
void *pvVar1;
if (*(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
**)(this + 0x50) != this + 0x60) {
operator_delete(*(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
**)(this + 0x50),*(long *)(this + 0x60) + 1);
}
pvVar1 = *(void **)(this + 0x38);
if (pvVar1 != (void *)0x0) {
operator_delete(pvVar1,*(long *)(this + 0x48) - (long)pvVar1);
return;
}
return;
}
| |
48,284 | chess::attacks::initSliders(chess::Square, chess::attacks::Magic*, unsigned long, std::function<chess::Bitboard (chess::Square, chess::Bitboard)> const&) | Razamindset[P]pawnstar-chess-engine/src/./engine/../chess-library/include/chess.hpp | inline void attacks::initSliders(Square sq, Magic table[], U64 magic,
const std::function<Bitboard(Square, Bitboard)> &attacks) {
// The edges of the board are not considered for the attacks
// i.e. for the sq h7 edges will be a1-h1, a1-a8, a8-h8, ignoring the edge of the current square
const Bitboard edges = ((Bitboard(Rank::RANK_1) | Bitboard(Rank::RANK_8)) & ~Bitboard(sq.rank())) |
((Bitboard(File::FILE_A) | Bitboard(File::FILE_H)) & ~Bitboard(sq.file()));
U64 occ = 0ULL;
auto &table_sq = table[sq.index()];
table_sq.magic = magic;
table_sq.mask = (attacks(sq, occ) & ~edges).getBits();
table_sq.shift = 64 - Bitboard(table_sq.mask).count();
if (sq < 64 - 1) {
table[sq.index() + 1].attacks = table_sq.attacks + (1ull << Bitboard(table_sq.mask).count());
}
do {
table_sq.attacks[table_sq(occ)] = attacks(sq, occ);
occ = (occ - table_sq.mask) & table_sq.mask;
} while (occ);
} | O0 | cpp | chess::attacks::initSliders(chess::Square, chess::attacks::Magic*, unsigned long, std::function<chess::Bitboard (chess::Square, chess::Bitboard)> const&):
pushq %rbp
movq %rsp, %rbp
subq $0x170, %rsp # imm = 0x170
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
leaq -0x44(%rbp), %rdi
xorl %esi, %esi
callq 0x4ab0
movl -0x44(%rbp), %esi
leaq -0x40(%rbp), %rdi
callq 0x4ad0
leaq -0x54(%rbp), %rdi
movl $0x7, %esi
callq 0x4ab0
movl -0x54(%rbp), %esi
leaq -0x50(%rbp), %rdi
callq 0x4ad0
leaq -0x40(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x4b50
movq %rax, -0x38(%rbp)
leaq -0x4(%rbp), %rdi
callq 0x4bd0
movl %eax, -0x6c(%rbp)
movl -0x6c(%rbp), %esi
leaq -0x68(%rbp), %rdi
callq 0x4ad0
leaq -0x68(%rbp), %rdi
callq 0x4c10
movq %rax, -0x60(%rbp)
leaq -0x38(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x4b90
movq %rax, -0x30(%rbp)
leaq -0x89(%rbp), %rdi
xorl %esi, %esi
callq 0x4c50
leaq -0x88(%rbp), %rdi
movzbl -0x89(%rbp), %esi
callq 0x4c70
leaq -0x99(%rbp), %rdi
movl $0x7, %esi
callq 0x4c50
leaq -0x98(%rbp), %rdi
movzbl -0x99(%rbp), %esi
callq 0x4c70
leaq -0x88(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x4b50
movq %rax, -0x80(%rbp)
leaq -0x4(%rbp), %rdi
callq 0x4d00
movb %al, -0xb1(%rbp)
leaq -0xb0(%rbp), %rdi
movzbl -0xb1(%rbp), %esi
callq 0x4c70
leaq -0xb0(%rbp), %rdi
callq 0x4c10
movq %rax, -0xa8(%rbp)
leaq -0x80(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x4b90
movq %rax, -0x78(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x4b50
movq %rax, -0x28(%rbp)
movq $0x0, -0xc0(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x138(%rbp)
leaq -0x4(%rbp), %rdi
callq 0x4d40
movl %eax, %ecx
movq -0x138(%rbp), %rax
movslq %ecx, %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0xc8(%rbp)
movq -0x18(%rbp), %rcx
movq -0xc8(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x20(%rbp), %rax
movq %rax, -0x130(%rbp)
movl -0x4(%rbp), %eax
movl %eax, -0xdc(%rbp)
movq -0xc0(%rbp), %rsi
leaq -0xe8(%rbp), %rdi
callq 0x4da0
movq -0x130(%rbp), %rdi
movl -0xdc(%rbp), %esi
movq -0xe8(%rbp), %rdx
callq 0x4d50
movq %rax, -0xd8(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x4c10
movq %rax, -0xf0(%rbp)
leaq -0xd8(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
callq 0x4b90
movq %rax, -0xd0(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0x4dc0
movq %rax, %rcx
movq -0xc8(%rbp), %rax
movq %rcx, (%rax)
movq -0xc8(%rbp), %rax
movq (%rax), %rsi
leaq -0xf8(%rbp), %rdi
callq 0x4da0
leaq -0xf8(%rbp), %rdi
callq 0x4de0
movl %eax, %ecx
movl $0x40, %eax
subl %ecx, %eax
movslq %eax, %rcx
movq -0xc8(%rbp), %rax
movq %rcx, 0x18(%rax)
leaq -0xfc(%rbp), %rdi
movl $0x3f, %esi
callq 0x43a0
leaq -0x4(%rbp), %rdi
leaq -0xfc(%rbp), %rsi
callq 0x4e50
testb $0x1, %al
jne 0x422d
jmp 0x42ba
movq -0xc8(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x150(%rbp)
movq -0xc8(%rbp), %rax
movq (%rax), %rsi
leaq -0x108(%rbp), %rdi
callq 0x4da0
leaq -0x108(%rbp), %rdi
callq 0x4de0
movl %eax, %ecx
movq -0x150(%rbp), %rax
movl %ecx, %ecx
movl $0x1, %edx
shlq %cl, %rdx
movq %rdx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x148(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x140(%rbp)
leaq -0x4(%rbp), %rdi
callq 0x4d40
movq -0x148(%rbp), %rcx
movl %eax, %edx
movq -0x140(%rbp), %rax
addl $0x1, %edx
movslq %edx, %rdx
shlq $0x5, %rdx
addq %rdx, %rax
movq %rcx, 0x10(%rax)
jmp 0x42bc
movq -0x20(%rbp), %rax
movq %rax, -0x168(%rbp)
movl -0x4(%rbp), %eax
movl %eax, -0x114(%rbp)
movq -0xc0(%rbp), %rsi
leaq -0x120(%rbp), %rdi
callq 0x4da0
movq -0x168(%rbp), %rdi
movl -0x114(%rbp), %esi
movq -0x120(%rbp), %rdx
callq 0x4d50
movq %rax, -0x110(%rbp)
movq -0xc8(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x158(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0xc0(%rbp), %rsi
leaq -0x128(%rbp), %rdi
callq 0x4da0
movq -0x160(%rbp), %rdi
movq -0x128(%rbp), %rsi
callq 0x4e70
movq %rax, %rcx
movq -0x158(%rbp), %rax
movq -0x110(%rbp), %rdx
movq %rdx, (%rax,%rcx,8)
movq -0xc0(%rbp), %rax
movq -0xc8(%rbp), %rcx
subq (%rcx), %rax
movq -0xc8(%rbp), %rcx
andq (%rcx), %rax
movq %rax, -0xc0(%rbp)
cmpq $0x0, -0xc0(%rbp)
jne 0x42bc
addq $0x170, %rsp # imm = 0x170
popq %rbp
retq
nopw (%rax,%rax)
| _ZN5chess7attacks11initSlidersENS_6SquareEPNS0_5MagicEmRKSt8functionIFNS_8BitboardES1_S5_EE:
push rbp
mov rbp, rsp
sub rsp, 170h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
lea rdi, [rbp+var_44]
xor esi, esi
call _ZN5chess4RankC2ENS0_10underlyingE; chess::Rank::Rank(chess::Rank::underlying)
mov esi, [rbp+var_44]
lea rdi, [rbp+var_40]
call _ZN5chess8BitboardC2ENS_4RankE; chess::Bitboard::Bitboard(chess::Rank)
lea rdi, [rbp+var_54]
mov esi, 7
call _ZN5chess4RankC2ENS0_10underlyingE; chess::Rank::Rank(chess::Rank::underlying)
mov esi, [rbp+var_54]
lea rdi, [rbp+var_50]
call _ZN5chess8BitboardC2ENS_4RankE; chess::Bitboard::Bitboard(chess::Rank)
lea rdi, [rbp+var_40]
lea rsi, [rbp+var_50]
call _ZNK5chess8BitboardorERKS0_; chess::Bitboard::operator|(chess::Bitboard const&)
mov [rbp+var_38], rax
lea rdi, [rbp+var_4]; this
call _ZNK5chess6Square4rankEv; chess::Square::rank(void)
mov [rbp+var_6C], eax
mov esi, [rbp+var_6C]
lea rdi, [rbp+var_68]
call _ZN5chess8BitboardC2ENS_4RankE; chess::Bitboard::Bitboard(chess::Rank)
lea rdi, [rbp+var_68]
call _ZNK5chess8BitboardcoEv; chess::Bitboard::operator~(void)
mov [rbp+var_60], rax
lea rdi, [rbp+var_38]
lea rsi, [rbp+var_60]
call _ZNK5chess8BitboardanERKS0_; chess::Bitboard::operator&(chess::Bitboard const&)
mov [rbp+var_30], rax
lea rdi, [rbp+var_89]
xor esi, esi
call _ZN5chess4FileC2ENS0_10underlyingE; chess::File::File(chess::File::underlying)
lea rdi, [rbp+var_88]
movzx esi, [rbp+var_89]
call _ZN5chess8BitboardC2ENS_4FileE; chess::Bitboard::Bitboard(chess::File)
lea rdi, [rbp+var_99]
mov esi, 7
call _ZN5chess4FileC2ENS0_10underlyingE; chess::File::File(chess::File::underlying)
lea rdi, [rbp+var_98]
movzx esi, [rbp+var_99]
call _ZN5chess8BitboardC2ENS_4FileE; chess::Bitboard::Bitboard(chess::File)
lea rdi, [rbp+var_88]
lea rsi, [rbp+var_98]
call _ZNK5chess8BitboardorERKS0_; chess::Bitboard::operator|(chess::Bitboard const&)
mov [rbp+var_80], rax
lea rdi, [rbp+var_4]; this
call _ZNK5chess6Square4fileEv; chess::Square::file(void)
mov [rbp+var_B1], al
lea rdi, [rbp+var_B0]
movzx esi, [rbp+var_B1]
call _ZN5chess8BitboardC2ENS_4FileE; chess::Bitboard::Bitboard(chess::File)
lea rdi, [rbp+var_B0]
call _ZNK5chess8BitboardcoEv; chess::Bitboard::operator~(void)
mov [rbp+var_A8], rax
lea rdi, [rbp+var_80]
lea rsi, [rbp+var_A8]
call _ZNK5chess8BitboardanERKS0_; chess::Bitboard::operator&(chess::Bitboard const&)
mov [rbp+var_78], rax
lea rdi, [rbp+var_30]
lea rsi, [rbp+var_78]
call _ZNK5chess8BitboardorERKS0_; chess::Bitboard::operator|(chess::Bitboard const&)
mov [rbp+var_28], rax
mov [rbp+var_C0], 0
mov rax, [rbp+var_10]
mov [rbp+var_138], rax
lea rdi, [rbp+var_4]; this
call _ZNK5chess6Square5indexEv; chess::Square::index(void)
mov ecx, eax
mov rax, [rbp+var_138]
movsxd rcx, ecx
shl rcx, 5
add rax, rcx
mov [rbp+var_C8], rax
mov rcx, [rbp+var_18]
mov rax, [rbp+var_C8]
mov [rax+8], rcx
mov rax, [rbp+var_20]
mov [rbp+var_130], rax
mov eax, [rbp+var_4]
mov [rbp+var_DC], eax
mov rsi, [rbp+var_C0]; unsigned __int64
lea rdi, [rbp+var_E8]; this
call _ZN5chess8BitboardC2Em; chess::Bitboard::Bitboard(ulong)
mov rdi, [rbp+var_130]
mov esi, [rbp+var_DC]
mov rdx, [rbp+var_E8]
call _ZNKSt8functionIFN5chess8BitboardENS0_6SquareES1_EEclES2_S1_; std::function<chess::Bitboard ()(chess::Square,chess::Bitboard)>::operator()(chess::Square,chess::Bitboard)
mov [rbp+var_D8], rax
lea rdi, [rbp+var_28]
call _ZNK5chess8BitboardcoEv; chess::Bitboard::operator~(void)
mov [rbp+var_F0], rax
lea rdi, [rbp+var_D8]
lea rsi, [rbp+var_F0]
call _ZNK5chess8BitboardanERKS0_; chess::Bitboard::operator&(chess::Bitboard const&)
mov [rbp+var_D0], rax
lea rdi, [rbp+var_D0]; this
call _ZNK5chess8Bitboard7getBitsEv; chess::Bitboard::getBits(void)
mov rcx, rax
mov rax, [rbp+var_C8]
mov [rax], rcx
mov rax, [rbp+var_C8]
mov rsi, [rax]; unsigned __int64
lea rdi, [rbp+var_F8]; this
call _ZN5chess8BitboardC2Em; chess::Bitboard::Bitboard(ulong)
lea rdi, [rbp+var_F8]; this
call _ZNK5chess8Bitboard5countEv; chess::Bitboard::count(void)
mov ecx, eax
mov eax, 40h ; '@'
sub eax, ecx
movsxd rcx, eax
mov rax, [rbp+var_C8]
mov [rax+18h], rcx
lea rdi, [rbp+var_FC]; this
mov esi, 3Fh ; '?'; int
call _ZN5chess6SquareC2Ei; chess::Square::Square(int)
lea rdi, [rbp+var_4]
lea rsi, [rbp+var_FC]
call _ZNK5chess6SquareltERKS0_; chess::Square::operator<(chess::Square const&)
test al, 1
jnz short loc_422D
jmp loc_42BA
loc_422D:
mov rax, [rbp+var_C8]
mov rax, [rax+10h]
mov [rbp+var_150], rax
mov rax, [rbp+var_C8]
mov rsi, [rax]; unsigned __int64
lea rdi, [rbp+var_108]; this
call _ZN5chess8BitboardC2Em; chess::Bitboard::Bitboard(ulong)
lea rdi, [rbp+var_108]; this
call _ZNK5chess8Bitboard5countEv; chess::Bitboard::count(void)
mov ecx, eax
mov rax, [rbp+var_150]
mov ecx, ecx
mov edx, 1
shl rdx, cl
mov rcx, rdx
shl rcx, 3
add rax, rcx
mov [rbp+var_148], rax
mov rax, [rbp+var_10]
mov [rbp+var_140], rax
lea rdi, [rbp+var_4]; this
call _ZNK5chess6Square5indexEv; chess::Square::index(void)
mov rcx, [rbp+var_148]
mov edx, eax
mov rax, [rbp+var_140]
add edx, 1
movsxd rdx, edx
shl rdx, 5
add rax, rdx
mov [rax+10h], rcx
loc_42BA:
jmp short $+2
loc_42BC:
mov rax, [rbp+var_20]
mov [rbp+var_168], rax
mov eax, [rbp+var_4]
mov [rbp+var_114], eax
mov rsi, [rbp+var_C0]; unsigned __int64
lea rdi, [rbp+var_120]; this
call _ZN5chess8BitboardC2Em; chess::Bitboard::Bitboard(ulong)
mov rdi, [rbp+var_168]
mov esi, [rbp+var_114]
mov rdx, [rbp+var_120]
call _ZNKSt8functionIFN5chess8BitboardENS0_6SquareES1_EEclES2_S1_; std::function<chess::Bitboard ()(chess::Square,chess::Bitboard)>::operator()(chess::Square,chess::Bitboard)
mov [rbp+var_110], rax
mov rax, [rbp+var_C8]
mov rax, [rax+10h]
mov [rbp+var_158], rax
mov rax, [rbp+var_C8]
mov [rbp+var_160], rax
mov rsi, [rbp+var_C0]; unsigned __int64
lea rdi, [rbp+var_128]; this
call _ZN5chess8BitboardC2Em; chess::Bitboard::Bitboard(ulong)
mov rdi, [rbp+var_160]
mov rsi, [rbp+var_128]
call _ZNK5chess7attacks5MagicclENS_8BitboardE; chess::attacks::Magic::operator()(chess::Bitboard)
mov rcx, rax
mov rax, [rbp+var_158]
mov rdx, [rbp+var_110]
mov [rax+rcx*8], rdx
mov rax, [rbp+var_C0]
mov rcx, [rbp+var_C8]
sub rax, [rcx]
mov rcx, [rbp+var_C8]
and rax, [rcx]
mov [rbp+var_C0], rax
cmp [rbp+var_C0], 0
jnz loc_42BC
add rsp, 170h
pop rbp
retn
| unsigned long long chess::attacks::initSliders(unsigned int a1, long long a2, unsigned long long a3, long long a4)
{
long long Bits; // rax
int v5; // eax
long long v6; // rax
unsigned long long result; // rax
long long v8; // [rsp+8h] [rbp-168h]
unsigned long long *v9; // [rsp+10h] [rbp-160h]
unsigned long long v10; // [rsp+18h] [rbp-158h]
unsigned long long v11; // [rsp+20h] [rbp-150h]
unsigned long long v12; // [rsp+28h] [rbp-148h]
long long v13; // [rsp+30h] [rbp-140h]
long long v14; // [rsp+38h] [rbp-138h]
long long v15; // [rsp+40h] [rbp-130h]
long long v16; // [rsp+48h] [rbp-128h] BYREF
long long v17; // [rsp+50h] [rbp-120h] BYREF
unsigned int v18; // [rsp+5Ch] [rbp-114h]
long long v19; // [rsp+60h] [rbp-110h]
_BYTE v20[12]; // [rsp+68h] [rbp-108h] BYREF
_BYTE v21[4]; // [rsp+74h] [rbp-FCh] BYREF
char v22[8]; // [rsp+78h] [rbp-F8h] BYREF
long long v23; // [rsp+80h] [rbp-F0h] BYREF
long long v24; // [rsp+88h] [rbp-E8h] BYREF
unsigned int v25; // [rsp+94h] [rbp-DCh]
long long v26; // [rsp+98h] [rbp-D8h] BYREF
long long v27; // [rsp+A0h] [rbp-D0h] BYREF
unsigned long long *v28; // [rsp+A8h] [rbp-C8h]
unsigned long long v29; // [rsp+B0h] [rbp-C0h]
unsigned __int8 v30; // [rsp+BFh] [rbp-B1h]
char v31[8]; // [rsp+C0h] [rbp-B0h] BYREF
long long v32; // [rsp+C8h] [rbp-A8h] BYREF
unsigned __int8 v33; // [rsp+D7h] [rbp-99h] BYREF
_BYTE v34[15]; // [rsp+D8h] [rbp-98h] BYREF
unsigned __int8 v35; // [rsp+E7h] [rbp-89h] BYREF
char v36[8]; // [rsp+E8h] [rbp-88h] BYREF
long long v37; // [rsp+F0h] [rbp-80h] BYREF
long long v38; // [rsp+F8h] [rbp-78h] BYREF
unsigned int v39; // [rsp+104h] [rbp-6Ch]
char v40[8]; // [rsp+108h] [rbp-68h] BYREF
long long v41; // [rsp+110h] [rbp-60h] BYREF
unsigned int v42; // [rsp+11Ch] [rbp-54h] BYREF
_BYTE v43[12]; // [rsp+120h] [rbp-50h] BYREF
unsigned int v44; // [rsp+12Ch] [rbp-44h] BYREF
char v45[8]; // [rsp+130h] [rbp-40h] BYREF
long long v46; // [rsp+138h] [rbp-38h] BYREF
long long v47; // [rsp+140h] [rbp-30h] BYREF
long long v48; // [rsp+148h] [rbp-28h] BYREF
long long v49; // [rsp+150h] [rbp-20h]
unsigned long long v50; // [rsp+158h] [rbp-18h]
long long v51; // [rsp+160h] [rbp-10h]
unsigned int v52; // [rsp+16Ch] [rbp-4h] BYREF
v52 = a1;
v51 = a2;
v50 = a3;
v49 = a4;
chess::Rank::Rank(&v44, 0LL);
chess::Bitboard::Bitboard(v45, v44);
chess::Rank::Rank(&v42, 7LL);
chess::Bitboard::Bitboard(v43, v42);
v46 = chess::Bitboard::operator|(v45, v43);
v39 = chess::Square::rank((chess::Square *)&v52);
chess::Bitboard::Bitboard(v40, v39);
v41 = chess::Bitboard::operator~(v40);
v47 = chess::Bitboard::operator&(&v46, &v41);
chess::File::File(&v35, 0LL);
chess::Bitboard::Bitboard(v36, v35);
chess::File::File(&v33, 7LL);
chess::Bitboard::Bitboard(v34, v33);
v37 = chess::Bitboard::operator|(v36, v34);
v30 = chess::Square::file((chess::Square *)&v52);
chess::Bitboard::Bitboard(v31, v30);
v32 = chess::Bitboard::operator~(v31);
v38 = chess::Bitboard::operator&(&v37, &v32);
v48 = chess::Bitboard::operator|(&v47, &v38);
v29 = 0LL;
v14 = v51;
v28 = (unsigned long long *)(32LL * (int)chess::Square::index((chess::Square *)&v52) + v14);
v28[1] = v50;
v15 = v49;
v25 = v52;
chess::Bitboard::Bitboard((chess::Bitboard *)&v24, v29);
v26 = std::function<chess::Bitboard ()(chess::Square,chess::Bitboard)>::operator()(v15, v25, v24);
v23 = chess::Bitboard::operator~(&v48);
v27 = chess::Bitboard::operator&(&v26, &v23);
Bits = chess::Bitboard::getBits((chess::Bitboard *)&v27);
*v28 = Bits;
chess::Bitboard::Bitboard((chess::Bitboard *)v22, *v28);
v5 = chess::Bitboard::count((chess::Bitboard *)v22);
v28[3] = 64 - v5;
chess::Square::Square((chess::Square *)v21, 63);
if ( (chess::Square::operator<(&v52, v21) & 1) != 0 )
{
v11 = v28[2];
chess::Bitboard::Bitboard((chess::Bitboard *)v20, *v28);
v12 = 8 * (1LL << chess::Bitboard::count((chess::Bitboard *)v20)) + v11;
v13 = v51;
*(_QWORD *)(32LL * (int)(chess::Square::index((chess::Square *)&v52) + 1) + v13 + 16) = v12;
}
do
{
v8 = v49;
v18 = v52;
chess::Bitboard::Bitboard((chess::Bitboard *)&v17, v29);
v19 = std::function<chess::Bitboard ()(chess::Square,chess::Bitboard)>::operator()(v8, v18, v17);
v10 = v28[2];
v9 = v28;
chess::Bitboard::Bitboard((chess::Bitboard *)&v16, v29);
v6 = chess::attacks::Magic::operator()(v9, v16);
*(_QWORD *)(v10 + 8 * v6) = v19;
result = *v28 & (v29 - *v28);
v29 = result;
}
while ( result );
return result;
}
| initSliders:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x170
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
LEA RDI,[RBP + -0x44]
XOR ESI,ESI
CALL 0x00104ab0
MOV ESI,dword ptr [RBP + -0x44]
LEA RDI,[RBP + -0x40]
CALL 0x00104ad0
LEA RDI,[RBP + -0x54]
MOV ESI,0x7
CALL 0x00104ab0
MOV ESI,dword ptr [RBP + -0x54]
LEA RDI,[RBP + -0x50]
CALL 0x00104ad0
LEA RDI,[RBP + -0x40]
LEA RSI,[RBP + -0x50]
CALL 0x00104b50
MOV qword ptr [RBP + -0x38],RAX
LEA RDI,[RBP + -0x4]
CALL 0x00104bd0
MOV dword ptr [RBP + -0x6c],EAX
MOV ESI,dword ptr [RBP + -0x6c]
LEA RDI,[RBP + -0x68]
CALL 0x00104ad0
LEA RDI,[RBP + -0x68]
CALL 0x00104c10
MOV qword ptr [RBP + -0x60],RAX
LEA RDI,[RBP + -0x38]
LEA RSI,[RBP + -0x60]
CALL 0x00104b90
MOV qword ptr [RBP + -0x30],RAX
LEA RDI,[RBP + -0x89]
XOR ESI,ESI
CALL 0x00104c50
LEA RDI,[RBP + -0x88]
MOVZX ESI,byte ptr [RBP + -0x89]
CALL 0x00104c70
LEA RDI,[RBP + -0x99]
MOV ESI,0x7
CALL 0x00104c50
LEA RDI,[RBP + -0x98]
MOVZX ESI,byte ptr [RBP + -0x99]
CALL 0x00104c70
LEA RDI,[RBP + -0x88]
LEA RSI,[RBP + -0x98]
CALL 0x00104b50
MOV qword ptr [RBP + -0x80],RAX
LEA RDI,[RBP + -0x4]
CALL 0x00104d00
MOV byte ptr [RBP + -0xb1],AL
LEA RDI,[RBP + -0xb0]
MOVZX ESI,byte ptr [RBP + -0xb1]
CALL 0x00104c70
LEA RDI,[RBP + -0xb0]
CALL 0x00104c10
MOV qword ptr [RBP + -0xa8],RAX
LEA RDI,[RBP + -0x80]
LEA RSI,[RBP + -0xa8]
CALL 0x00104b90
MOV qword ptr [RBP + -0x78],RAX
LEA RDI,[RBP + -0x30]
LEA RSI,[RBP + -0x78]
CALL 0x00104b50
MOV qword ptr [RBP + -0x28],RAX
MOV qword ptr [RBP + -0xc0],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x138],RAX
LEA RDI,[RBP + -0x4]
CALL 0x00104d40
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x138]
MOVSXD RCX,ECX
SHL RCX,0x5
ADD RAX,RCX
MOV qword ptr [RBP + -0xc8],RAX
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0xc8]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x130],RAX
MOV EAX,dword ptr [RBP + -0x4]
MOV dword ptr [RBP + -0xdc],EAX
MOV RSI,qword ptr [RBP + -0xc0]
LEA RDI,[RBP + -0xe8]
CALL 0x00104da0
MOV RDI,qword ptr [RBP + -0x130]
MOV ESI,dword ptr [RBP + -0xdc]
MOV RDX,qword ptr [RBP + -0xe8]
CALL 0x00104d50
MOV qword ptr [RBP + -0xd8],RAX
LEA RDI,[RBP + -0x28]
CALL 0x00104c10
MOV qword ptr [RBP + -0xf0],RAX
LEA RDI,[RBP + -0xd8]
LEA RSI,[RBP + -0xf0]
CALL 0x00104b90
MOV qword ptr [RBP + -0xd0],RAX
LEA RDI,[RBP + -0xd0]
CALL 0x00104dc0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0xc8]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0xc8]
MOV RSI,qword ptr [RAX]
LEA RDI,[RBP + -0xf8]
CALL 0x00104da0
LEA RDI,[RBP + -0xf8]
CALL 0x00104de0
MOV ECX,EAX
MOV EAX,0x40
SUB EAX,ECX
MOVSXD RCX,EAX
MOV RAX,qword ptr [RBP + -0xc8]
MOV qword ptr [RAX + 0x18],RCX
LEA RDI,[RBP + -0xfc]
MOV ESI,0x3f
CALL 0x001043a0
LEA RDI,[RBP + -0x4]
LEA RSI,[RBP + -0xfc]
CALL 0x00104e50
TEST AL,0x1
JNZ 0x0010422d
JMP 0x001042ba
LAB_0010422d:
MOV RAX,qword ptr [RBP + -0xc8]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x150],RAX
MOV RAX,qword ptr [RBP + -0xc8]
MOV RSI,qword ptr [RAX]
LEA RDI,[RBP + -0x108]
CALL 0x00104da0
LEA RDI,[RBP + -0x108]
CALL 0x00104de0
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x150]
MOV ECX,ECX
MOV EDX,0x1
SHL RDX,CL
MOV RCX,RDX
SHL RCX,0x3
ADD RAX,RCX
MOV qword ptr [RBP + -0x148],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x140],RAX
LEA RDI,[RBP + -0x4]
CALL 0x00104d40
MOV RCX,qword ptr [RBP + -0x148]
MOV EDX,EAX
MOV RAX,qword ptr [RBP + -0x140]
ADD EDX,0x1
MOVSXD RDX,EDX
SHL RDX,0x5
ADD RAX,RDX
MOV qword ptr [RAX + 0x10],RCX
LAB_001042ba:
JMP 0x001042bc
LAB_001042bc:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x168],RAX
MOV EAX,dword ptr [RBP + -0x4]
MOV dword ptr [RBP + -0x114],EAX
MOV RSI,qword ptr [RBP + -0xc0]
LEA RDI,[RBP + -0x120]
CALL 0x00104da0
MOV RDI,qword ptr [RBP + -0x168]
MOV ESI,dword ptr [RBP + -0x114]
MOV RDX,qword ptr [RBP + -0x120]
CALL 0x00104d50
MOV qword ptr [RBP + -0x110],RAX
MOV RAX,qword ptr [RBP + -0xc8]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x158],RAX
MOV RAX,qword ptr [RBP + -0xc8]
MOV qword ptr [RBP + -0x160],RAX
MOV RSI,qword ptr [RBP + -0xc0]
LEA RDI,[RBP + -0x128]
CALL 0x00104da0
MOV RDI,qword ptr [RBP + -0x160]
MOV RSI,qword ptr [RBP + -0x128]
CALL 0x00104e70
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x158]
MOV RDX,qword ptr [RBP + -0x110]
MOV qword ptr [RAX + RCX*0x8],RDX
MOV RAX,qword ptr [RBP + -0xc0]
MOV RCX,qword ptr [RBP + -0xc8]
SUB RAX,qword ptr [RCX]
MOV RCX,qword ptr [RBP + -0xc8]
AND RAX,qword ptr [RCX]
MOV qword ptr [RBP + -0xc0],RAX
CMP qword ptr [RBP + -0xc0],0x0
JNZ 0x001042bc
ADD RSP,0x170
POP RBP
RET
|
/* chess::attacks::initSliders(chess::Square, chess::attacks::Magic*, unsigned long,
std::function<chess::Bitboard (chess::Square, chess::Bitboard)> const&) */
void chess::attacks::initSliders
(int4 param_1,long param_2,ulong param_3,
function<chess::Bitboard(chess::Square,chess::Bitboard)> *param_4)
{
long lVar1;
Magic *pMVar2;
function<chess::Bitboard(chess::Square,chess::Bitboard)> *pfVar3;
byte bVar4;
int iVar5;
ulong uVar6;
long lVar7;
int8 local_130;
int8 local_128;
int4 local_11c;
int8 local_118;
Bitboard local_110 [12];
Square local_104 [4];
Bitboard local_100 [8];
int8 local_f8;
int8 local_f0;
int4 local_e4;
int8 local_e0;
int8 local_d8;
Magic *local_d0;
ulong local_c8;
int1 local_b9;
Bitboard local_b8 [8];
int8 local_b0;
File local_a1;
Bitboard local_a0 [15];
File local_91;
Bitboard local_90 [8];
int8 local_88;
int8 local_80;
int4 local_74;
Bitboard local_70 [8];
int8 local_68;
int4 local_5c;
Bitboard local_58 [12];
int4 local_4c;
Bitboard local_48 [8];
int8 local_40;
int8 local_38;
int8 local_30;
function<chess::Bitboard(chess::Square,chess::Bitboard)> *local_28;
ulong local_20;
long local_18;
int4 local_c;
local_28 = param_4;
local_20 = param_3;
local_18 = param_2;
local_c = param_1;
Rank::Rank((Rank *)&local_4c,0);
Bitboard::Bitboard(local_48,local_4c);
Rank::Rank((Rank *)&local_5c,7);
Bitboard::Bitboard(local_58,local_5c);
local_40 = Bitboard::operator|(local_48,local_58);
local_74 = Square::rank((Square *)&local_c);
Bitboard::Bitboard(local_70,local_74);
local_68 = Bitboard::operator~(local_70);
local_38 = Bitboard::operator&((Bitboard *)&local_40,(Bitboard *)&local_68);
File::File(&local_91,0);
Bitboard::Bitboard(local_90,local_91);
File::File(&local_a1,7);
Bitboard::Bitboard(local_a0,local_a1);
local_88 = Bitboard::operator|(local_90,local_a0);
local_b9 = Square::file((Square *)&local_c);
Bitboard::Bitboard(local_b8,local_b9);
local_b0 = Bitboard::operator~(local_b8);
local_80 = Bitboard::operator&((Bitboard *)&local_88,(Bitboard *)&local_b0);
local_30 = Bitboard::operator|((Bitboard *)&local_38,(Bitboard *)&local_80);
lVar1 = local_18;
local_c8 = 0;
iVar5 = Square::index((Square *)&local_c);
pfVar3 = local_28;
local_d0 = (Magic *)(lVar1 + (long)iVar5 * 0x20);
*(ulong *)(local_d0 + 8) = local_20;
local_e4 = local_c;
Bitboard::Bitboard((Bitboard *)&local_f0,local_c8);
local_e0 = std::function<chess::Bitboard(chess::Square,chess::Bitboard)>::operator()
(pfVar3,local_e4,local_f0);
local_f8 = Bitboard::operator~((Bitboard *)&local_30);
local_d8 = Bitboard::operator&((Bitboard *)&local_e0,(Bitboard *)&local_f8);
uVar6 = Bitboard::getBits((Bitboard *)&local_d8);
*(ulong *)local_d0 = uVar6;
Bitboard::Bitboard(local_100,*(ulong *)local_d0);
iVar5 = Bitboard::count(local_100);
*(long *)(local_d0 + 0x18) = (long)(0x40 - iVar5);
Square::Square(local_104,0x3f);
uVar6 = Square::operator<((Square *)&local_c,local_104);
if ((uVar6 & 1) != 0) {
uVar6 = *(ulong *)(local_d0 + 0x10);
Bitboard::Bitboard(local_110,*(ulong *)local_d0);
bVar4 = Bitboard::count(local_110);
lVar1 = local_18;
iVar5 = Square::index((Square *)&local_c);
*(ulong *)(lVar1 + (long)(iVar5 + 1) * 0x20 + 0x10) = uVar6 + (1L << (bVar4 & 0x3f)) * 8;
}
do {
pfVar3 = local_28;
local_11c = local_c;
Bitboard::Bitboard((Bitboard *)&local_128,local_c8);
local_118 = std::function<chess::Bitboard(chess::Square,chess::Bitboard)>::operator()
(pfVar3,local_11c,local_128);
pMVar2 = local_d0;
lVar1 = *(long *)(local_d0 + 0x10);
Bitboard::Bitboard((Bitboard *)&local_130,local_c8);
lVar7 = Magic::operator()(pMVar2,local_130);
*(int8 *)(lVar1 + lVar7 * 8) = local_118;
local_c8 = local_c8 - *(ulong *)local_d0 & *(ulong *)local_d0;
} while (local_c8 != 0);
return;
}
| |
48,285 | google::protobuf::compiler::objectivec::FieldGeneratorMap::SetOneofIndexBase(int) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/objectivec/objectivec_field.cc | void FieldGeneratorMap::SetOneofIndexBase(int index_base) {
for (int i = 0; i < descriptor_->field_count(); i++) {
field_generators_[i]->SetOneofIndexBase(index_base);
}
} | O3 | cpp | google::protobuf::compiler::objectivec::FieldGeneratorMap::SetOneofIndexBase(int):
pushq %r15
pushq %r14
pushq %rbx
movq (%rdi), %rax
cmpl $0x0, 0x4(%rax)
jle 0xef932
movl %esi, %ebx
movq %rdi, %r14
xorl %r15d, %r15d
movq 0x8(%r14), %rax
movq (%rax,%r15,8), %rdi
movl %ebx, %esi
callq 0xeed3c
incq %r15
movq (%r14), %rax
movslq 0x4(%rax), %rax
cmpq %rax, %r15
jl 0xef914
popq %rbx
popq %r14
popq %r15
retq
| _ZN6google8protobuf8compiler10objectivec17FieldGeneratorMap17SetOneofIndexBaseEi:
push r15
push r14
push rbx
mov rax, [rdi]
cmp dword ptr [rax+4], 0
jle short loc_EF932
mov ebx, esi
mov r14, rdi
xor r15d, r15d
loc_EF914:
mov rax, [r14+8]
mov rdi, [rax+r15*8]; this
mov esi, ebx; int
call _ZN6google8protobuf8compiler10objectivec14FieldGenerator17SetOneofIndexBaseEi; google::protobuf::compiler::objectivec::FieldGenerator::SetOneofIndexBase(int)
inc r15
mov rax, [r14]
movsxd rax, dword ptr [rax+4]
cmp r15, rax
jl short loc_EF914
loc_EF932:
pop rbx
pop r14
pop r15
retn
| long long google::protobuf::compiler::objectivec::FieldGeneratorMap::SetOneofIndexBase(
google::protobuf::compiler::objectivec::FieldGeneratorMap *this,
int a2,
char *a3)
{
long long result; // rax
long long v4; // r15
result = *(_QWORD *)this;
if ( *(int *)(*(_QWORD *)this + 4LL) > 0 )
{
v4 = 0LL;
do
{
google::protobuf::compiler::objectivec::FieldGenerator::SetOneofIndexBase(
*(google::protobuf::compiler::objectivec::FieldGenerator **)(*((_QWORD *)this + 1) + 8 * v4++),
a2,
a3);
result = *(int *)(*(_QWORD *)this + 4LL);
}
while ( v4 < result );
}
return result;
}
| SetOneofIndexBase:
PUSH R15
PUSH R14
PUSH RBX
MOV RAX,qword ptr [RDI]
CMP dword ptr [RAX + 0x4],0x0
JLE 0x001ef932
MOV EBX,ESI
MOV R14,RDI
XOR R15D,R15D
LAB_001ef914:
MOV RAX,qword ptr [R14 + 0x8]
MOV RDI,qword ptr [RAX + R15*0x8]
MOV ESI,EBX
CALL 0x001eed3c
INC R15
MOV RAX,qword ptr [R14]
MOVSXD RAX,dword ptr [RAX + 0x4]
CMP R15,RAX
JL 0x001ef914
LAB_001ef932:
POP RBX
POP R14
POP R15
RET
|
/* google::protobuf::compiler::objectivec::FieldGeneratorMap::SetOneofIndexBase(int) */
void __thiscall
google::protobuf::compiler::objectivec::FieldGeneratorMap::SetOneofIndexBase
(FieldGeneratorMap *this,int param_1)
{
long lVar1;
if (0 < *(int *)(*(long *)this + 4)) {
lVar1 = 0;
do {
FieldGenerator::SetOneofIndexBase
(*(FieldGenerator **)(*(long *)(this + 8) + lVar1 * 8),param_1);
lVar1 = lVar1 + 1;
} while (lVar1 < *(int *)(*(long *)this + 4));
}
return;
}
| |
48,286 | fmt::v10::appender fmt::v10::detail::write<char, fmt::v10::appender, bool, 0>(fmt::v10::appender, bool, fmt::v10::format_specs<char> const&, fmt::v10::detail::locale_ref) | AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/fmt/bundled/format.h | FMT_CONSTEXPR auto write(OutputIt out, T value,
const format_specs<Char>& specs = {}, locale_ref = {})
-> OutputIt {
return specs.type != presentation_type::none &&
specs.type != presentation_type::string
? write(out, value ? 1 : 0, specs, {})
: write_bytes(out, value ? "true" : "false", specs);
} | O0 | c | fmt::v10::appender fmt::v10::detail::write<char, fmt::v10::appender, bool, 0>(fmt::v10::appender, bool, fmt::v10::format_specs<char> const&, fmt::v10::detail::locale_ref):
subq $0x108, %rsp # imm = 0x108
movb %sil, %al
movq %rdi, 0x68(%rsp)
movq %rcx, 0x60(%rsp)
andb $0x1, %al
movb %al, 0x5f(%rsp)
movq %rdx, 0x50(%rsp)
movq 0x50(%rsp), %rax
cmpb $0x0, 0x8(%rax)
je 0xceaca
movq 0x50(%rsp), %rax
cmpb $0x10, 0x8(%rax)
je 0xceaca
movq 0x68(%rsp), %rax
movq %rax, 0x48(%rsp)
movb 0x5f(%rsp), %dl
xorl %ecx, %ecx
movl $0x1, %eax
testb $0x1, %dl
cmovnel %eax, %ecx
movq 0x50(%rsp), %rax
leaq 0x40(%rsp), %rdx
movq %rdx, 0x88(%rsp)
movq 0x88(%rsp), %rdx
movq $0x0, (%rdx)
movq 0x48(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq %rsi, 0xf8(%rsp)
movq %rdx, 0xf0(%rsp)
movl %ecx, 0xec(%rsp)
movq %rax, 0xe0(%rsp)
movq 0xe0(%rsp), %rax
movw 0x9(%rax), %ax
shrw $0x8, %ax
andw $0x1, %ax
testw $0x1, %ax
je 0xcea43
movq 0xf8(%rsp), %rax
movq %rax, 0xd8(%rsp)
movl 0xec(%rsp), %esi
leaq 0xb0(%rsp), %rdi
callq 0xcec40
movq 0xe0(%rsp), %rsi
movq 0xf0(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0xd8(%rsp), %rdi
movq 0xa8(%rsp), %rdx
leaq 0xb0(%rsp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rcx
movq %rcx, 0x10(%rsp)
movq 0x18(%rax), %rax
movq %rax, 0x18(%rsp)
callq 0xc68f0
testb $0x1, %al
jne 0xcea31
jmp 0xcea43
movq 0xf8(%rsp), %rax
movq %rax, 0x100(%rsp)
jmp 0xceabb
movq 0xf8(%rsp), %rax
movq %rax, 0xa0(%rsp)
movl 0xec(%rsp), %edi
movq 0xe0(%rsp), %rax
movw 0x9(%rax), %ax
shrw $0x4, %ax
andw $0x7, %ax
movzbl %al, %esi
callq 0xcf8d0
movq %rax, 0x98(%rsp)
movq 0xe0(%rsp), %rdx
movq 0xf0(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0xa0(%rsp), %rdi
movq 0x98(%rsp), %rsi
movq 0x90(%rsp), %rcx
callq 0xcec70
movq %rax, 0x100(%rsp)
movq 0x100(%rsp), %rax
movq %rax, 0x70(%rsp)
jmp 0xceb48
movq 0x68(%rsp), %rax
movq %rax, 0x38(%rsp)
movb 0x5f(%rsp), %dl
leaq 0x83a18(%rip), %rax # 0x1524f7
leaq 0x83a0c(%rip), %rcx # 0x1524f2
testb $0x1, %dl
cmovneq %rcx, %rax
leaq 0x28(%rsp), %rcx
movq %rcx, 0x80(%rsp)
movq %rax, 0x78(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x78(%rsp), %rcx
movq %rcx, (%rax)
movq 0x78(%rsp), %rdi
callq 0x152e0
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x50(%rsp), %rcx
movq 0x38(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq 0xcebd0
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rax
addq $0x108, %rsp # imm = 0x108
retq
nopw %cs:(%rax,%rax)
nop
| _ZN3fmt3v106detail5writeIcNS0_8appenderEbTnNSt9enable_ifIXsr3std7is_sameIT1_bEE5valueEiE4typeELi0EEET0_S8_S5_RKNS0_12format_specsIT_EENS1_10locale_refE:
sub rsp, 108h
mov al, sil
mov [rsp+108h+var_A0], rdi
mov [rsp+108h+var_A8], rcx
and al, 1
mov [rsp+108h+var_A9], al
mov [rsp+108h+var_B8], rdx
mov rax, [rsp+108h+var_B8]
cmp byte ptr [rax+8], 0
jz loc_CEACA
mov rax, [rsp+108h+var_B8]
cmp byte ptr [rax+8], 10h
jz loc_CEACA
mov rax, [rsp+108h+var_A0]
mov [rsp+108h+var_C0], rax
mov dl, [rsp+108h+var_A9]
xor ecx, ecx
mov eax, 1
test dl, 1
cmovnz ecx, eax
mov rax, [rsp+108h+var_B8]
lea rdx, [rsp+108h+var_C8]
mov [rsp+108h+var_80], rdx
mov rdx, [rsp+108h+var_80]
mov qword ptr [rdx], 0
mov rsi, [rsp+108h+var_C0]
mov rdx, [rsp+108h+var_C8]
mov [rsp+108h+var_10], rsi
mov [rsp+108h+var_18], rdx
mov [rsp+108h+var_1C], ecx
mov [rsp+108h+var_28], rax
mov rax, [rsp+108h+var_28]
mov ax, [rax+9]
shr ax, 8
and ax, 1
test ax, 1
jz loc_CEA43
mov rax, [rsp+108h+var_10]
mov [rsp+108h+var_30], rax
mov esi, [rsp+108h+var_1C]
lea rdi, [rsp+108h+var_58]
call _ZN3fmt3v109loc_valueC2IiTnNSt9enable_ifIXntsr6detail11is_float128IT_EE5valueEiE4typeELi0EEES4_
mov rsi, [rsp+108h+var_28]
mov rax, [rsp+108h+var_18]
mov [rsp+108h+var_60], rax
mov rdi, [rsp+108h+var_30]
mov rdx, [rsp+108h+var_60]
lea rax, [rsp+108h+var_58]
mov rcx, [rax]
mov [rsp+108h+var_108], rcx
mov rcx, [rax+8]
mov [rsp+108h+var_100], rcx
mov rcx, [rax+10h]
mov [rsp+108h+var_F8], rcx
mov rax, [rax+18h]
mov [rsp+108h+var_F0], rax
call _ZN3fmt3v106detail9write_locENS0_8appenderENS0_9loc_valueERKNS0_12format_specsIcEENS1_10locale_refE; fmt::v10::detail::write_loc(fmt::v10::appender,fmt::v10::loc_value,fmt::v10::format_specs<char> const&,fmt::v10::detail::locale_ref)
test al, 1
jnz short loc_CEA31
jmp short loc_CEA43
loc_CEA31:
mov rax, [rsp+108h+var_10]
mov [rsp+108h+var_8], rax
jmp short loc_CEABB
loc_CEA43:
mov rax, [rsp+108h+var_10]
mov [rsp+108h+var_68], rax
mov edi, [rsp+108h+var_1C]
mov rax, [rsp+108h+var_28]
mov ax, [rax+9]
shr ax, 4
and ax, 7
movzx esi, al
call _ZN3fmt3v106detail18make_write_int_argIiEENS1_13write_int_argINSt11conditionalIXaalecl8num_bitsIT_EELi32EntLi0EEjNS4_IXlecl8num_bitsIS5_EELi64EEmoE4typeEE4typeEEES5_NS0_4sign4typeE; fmt::v10::detail::make_write_int_arg<int>(int,fmt::v10::sign::type)
mov [rsp+108h+var_70], rax
mov rdx, [rsp+108h+var_28]
mov rax, [rsp+108h+var_18]
mov [rsp+108h+var_78], rax
mov rdi, [rsp+108h+var_68]
mov rsi, [rsp+108h+var_70]
mov rcx, [rsp+108h+var_78]
call _ZN3fmt3v106detail18write_int_noinlineIcNS0_8appenderEjEET0_S4_NS1_13write_int_argIT1_EERKNS0_12format_specsIT_EENS1_10locale_refE; fmt::v10::detail::write_int_noinline<char,fmt::v10::appender,uint>(fmt::v10::appender,fmt::v10::detail::write_int_arg<uint>,fmt::v10::format_specs<char> const&,fmt::v10::detail::locale_ref)
mov [rsp+108h+var_8], rax
loc_CEABB:
mov rax, [rsp+108h+var_8]
mov [rsp+108h+var_98], rax
jmp short loc_CEB48
loc_CEACA:
mov rax, [rsp+108h+var_A0]
mov [rsp+108h+var_D0], rax
mov dl, [rsp+108h+var_A9]
lea rax, aFalse; "false"
lea rcx, aTrue; "true"
test dl, 1
cmovnz rax, rcx
lea rcx, [rsp+108h+var_E0]
mov [rsp+108h+var_88], rcx
mov [rsp+108h+var_90], rax
mov rax, [rsp+108h+var_88]
mov [rsp+108h+var_E8], rax
mov rcx, [rsp+108h+var_90]
mov [rax], rcx
mov rdi, [rsp+108h+var_90]
call _strlen
mov rcx, rax
mov rax, [rsp+108h+var_E8]
mov [rax+8], rcx
mov rcx, [rsp+108h+var_B8]
mov rdi, [rsp+108h+var_D0]
mov rsi, [rsp+108h+var_E0]
mov rdx, [rsp+108h+var_D8]
call _ZN3fmt3v106detail11write_bytesILNS0_5align4typeE1EcNS0_8appenderEEET1_S6_NS0_17basic_string_viewIcEERKNS0_12format_specsIT0_EE; fmt::v10::detail::write_bytes<(fmt::v10::align::type)1,char,fmt::v10::appender>(fmt::v10::appender,fmt::v10::basic_string_view<char>,fmt::v10::format_specs<char> const&)
mov [rsp+108h+var_98], rax
loc_CEB48:
mov rax, [rsp+108h+var_98]
add rsp, 108h
retn
| long long ZN3fmt3v106detail5writeIcNS0_8appenderEbTnNSt9enable_ifIXsr3std7is_sameIT1_bEE5valueEiE4typeELi0EEET0_S8_S5_RKNS0_12format_specsIT_EENS1_10locale_refE(
long long a1,
char a2,
long long a3,
long long a4)
{
long long v4; // r8
long long v5; // r9
const char *v6; // rax
const char *v8; // [rsp+28h] [rbp-E0h] BYREF
long long v9; // [rsp+30h] [rbp-D8h]
long long v10; // [rsp+38h] [rbp-D0h]
_QWORD v11[2]; // [rsp+40h] [rbp-C8h] BYREF
long long v12; // [rsp+50h] [rbp-B8h]
char v13; // [rsp+5Fh] [rbp-A9h]
long long v14; // [rsp+60h] [rbp-A8h]
long long v15; // [rsp+68h] [rbp-A0h]
const char *v17; // [rsp+78h] [rbp-90h]
const char **v18; // [rsp+80h] [rbp-88h]
_QWORD *v19; // [rsp+88h] [rbp-80h]
long long v20; // [rsp+90h] [rbp-78h]
long long v21; // [rsp+98h] [rbp-70h]
long long v22; // [rsp+A0h] [rbp-68h]
long long v23; // [rsp+A8h] [rbp-60h]
__int128 v24; // [rsp+B0h] [rbp-58h] BYREF
__int128 v25; // [rsp+C0h] [rbp-48h]
long long v26; // [rsp+D8h] [rbp-30h]
long long v27; // [rsp+E0h] [rbp-28h]
_BYTE v28[12]; // [rsp+ECh] [rbp-1Ch]
long long v29; // [rsp+F8h] [rbp-10h]
v15 = a1;
v14 = a4;
v13 = a2 & 1;
v12 = a3;
if ( !*(_BYTE *)(a3 + 8) || *(_BYTE *)(v12 + 8) == 16 )
{
v10 = v15;
v6 = "false";
if ( (v13 & 1) != 0 )
v6 = "true";
v18 = &v8;
v17 = v6;
v8 = v6;
v9 = strlen(v6);
return fmt::v10::detail::write_bytes<(fmt::v10::align::type)1,char,fmt::v10::appender>(v10, v8, v9, v12);
}
else
{
v11[1] = v15;
v19 = v11;
v11[0] = 0LL;
v29 = v15;
*(_DWORD *)&v28[8] = 0;
*(_QWORD *)v28 = (v13 & 1) != 0;
v27 = v12;
if ( (*(_WORD *)(v12 + 9) & 0x100) != 0 )
{
v26 = v29;
ZN3fmt3v109loc_valueC2IiTnNSt9enable_ifIXntsr6detail11is_float128IT_EE5valueEiE4typeELi0EEES4_(
&v24,
*(unsigned int *)v28);
v23 = *(_QWORD *)&v28[4];
if ( (fmt::v10::detail::write_loc(v26, v27, *(long long *)&v28[4], v25, v4, v5, v24, v25) & 1) != 0 )
return v29;
}
v22 = v29;
v21 = fmt::v10::detail::make_write_int_arg<int>(*(unsigned int *)v28, (*(_WORD *)(v27 + 9) >> 4) & 7);
v20 = *(_QWORD *)&v28[4];
return fmt::v10::detail::write_int_noinline<char,fmt::v10::appender,unsigned int>(v22, v21, v27, *(_QWORD *)&v28[4]);
}
}
| _ZN3fmt3v106detail5writeIcNS0_8appenderEbTnNSt9enable_ifIXsr3std7is_sameIT1_bEE5valueEiE4typeELi0EEET0_S8_S5_RKNS0_12format_specsIT_EENS1_10locale_refE:
SUB RSP,0x108
MOV AL,SIL
MOV qword ptr [RSP + 0x68],RDI
MOV qword ptr [RSP + 0x60],RCX
AND AL,0x1
MOV byte ptr [RSP + 0x5f],AL
MOV qword ptr [RSP + 0x50],RDX
MOV RAX,qword ptr [RSP + 0x50]
CMP byte ptr [RAX + 0x8],0x0
JZ 0x001ceaca
MOV RAX,qword ptr [RSP + 0x50]
CMP byte ptr [RAX + 0x8],0x10
JZ 0x001ceaca
MOV RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0x48],RAX
MOV DL,byte ptr [RSP + 0x5f]
XOR ECX,ECX
MOV EAX,0x1
TEST DL,0x1
CMOVNZ ECX,EAX
MOV RAX,qword ptr [RSP + 0x50]
LEA RDX,[RSP + 0x40]
MOV qword ptr [RSP + 0x88],RDX
MOV RDX,qword ptr [RSP + 0x88]
MOV qword ptr [RDX],0x0
MOV RSI,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0xf8],RSI
MOV qword ptr [RSP + 0xf0],RDX
MOV dword ptr [RSP + 0xec],ECX
MOV qword ptr [RSP + 0xe0],RAX
MOV RAX,qword ptr [RSP + 0xe0]
MOV AX,word ptr [RAX + 0x9]
SHR AX,0x8
AND AX,0x1
TEST AX,0x1
JZ 0x001cea43
MOV RAX,qword ptr [RSP + 0xf8]
MOV qword ptr [RSP + 0xd8],RAX
MOV ESI,dword ptr [RSP + 0xec]
LEA RDI,[RSP + 0xb0]
CALL 0x001cec40
MOV RSI,qword ptr [RSP + 0xe0]
MOV RAX,qword ptr [RSP + 0xf0]
MOV qword ptr [RSP + 0xa8],RAX
MOV RDI,qword ptr [RSP + 0xd8]
MOV RDX,qword ptr [RSP + 0xa8]
LEA RAX,[RSP + 0xb0]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RCX
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP + 0x18],RAX
CALL 0x001c68f0
TEST AL,0x1
JNZ 0x001cea31
JMP 0x001cea43
LAB_001cea31:
MOV RAX,qword ptr [RSP + 0xf8]
MOV qword ptr [RSP + 0x100],RAX
JMP 0x001ceabb
LAB_001cea43:
MOV RAX,qword ptr [RSP + 0xf8]
MOV qword ptr [RSP + 0xa0],RAX
MOV EDI,dword ptr [RSP + 0xec]
MOV RAX,qword ptr [RSP + 0xe0]
MOV AX,word ptr [RAX + 0x9]
SHR AX,0x4
AND AX,0x7
MOVZX ESI,AL
CALL 0x001cf8d0
MOV qword ptr [RSP + 0x98],RAX
MOV RDX,qword ptr [RSP + 0xe0]
MOV RAX,qword ptr [RSP + 0xf0]
MOV qword ptr [RSP + 0x90],RAX
MOV RDI,qword ptr [RSP + 0xa0]
MOV RSI,qword ptr [RSP + 0x98]
MOV RCX,qword ptr [RSP + 0x90]
CALL 0x001cec70
MOV qword ptr [RSP + 0x100],RAX
LAB_001ceabb:
MOV RAX,qword ptr [RSP + 0x100]
MOV qword ptr [RSP + 0x70],RAX
JMP 0x001ceb48
LAB_001ceaca:
MOV RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0x38],RAX
MOV DL,byte ptr [RSP + 0x5f]
LEA RAX,[0x2524f7]
LEA RCX,[0x2524f2]
TEST DL,0x1
CMOVNZ RAX,RCX
LEA RCX,[RSP + 0x28]
MOV qword ptr [RSP + 0x80],RCX
MOV qword ptr [RSP + 0x78],RAX
MOV RAX,qword ptr [RSP + 0x80]
MOV qword ptr [RSP + 0x20],RAX
MOV RCX,qword ptr [RSP + 0x78]
MOV qword ptr [RAX],RCX
MOV RDI,qword ptr [RSP + 0x78]
CALL 0x001152e0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RAX + 0x8],RCX
MOV RCX,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RSP + 0x38]
MOV RSI,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RSP + 0x30]
CALL 0x001cebd0
MOV qword ptr [RSP + 0x70],RAX
LAB_001ceb48:
MOV RAX,qword ptr [RSP + 0x70]
ADD RSP,0x108
RET
|
detail * _ZN3fmt3v106detail5writeIcNS0_8appenderEbTnNSt9enable_ifIXsr3std7is_sameIT1_bEE5valueEiE4typeELi0EEET0_S8_S5_RKNS0_12format_specsIT_EENS1_10locale_refE
(detail *param_1,byte param_2,long param_3,int8 param_4)
{
ulong uVar1;
detail *pdVar2;
size_t sVar3;
char *local_e0 [2];
detail *local_d0;
int1 local_c8 [8];
detail *local_c0;
long local_b8;
byte local_a9;
int8 local_a8;
detail *local_a0;
char *local_90;
char **local_88;
int1 *local_80;
int8 local_78;
int8 local_70;
detail *local_68;
int8 local_60;
int1 local_58 [40];
detail *local_30;
long local_28;
uint local_1c;
int8 local_18;
detail *local_10;
local_a9 = param_2 & 1;
local_b8 = param_3;
local_a8 = param_4;
local_a0 = param_1;
if ((*(char *)(param_3 + 8) != '\0') && (*(char *)(param_3 + 8) != '\x10')) {
local_80 = local_c8;
local_18 = 0;
local_1c = (uint)(local_a9 != 0);
local_c0 = param_1;
local_28 = param_3;
local_10 = param_1;
if ((*(ushort *)(param_3 + 9) >> 8 & 1) != 0) {
local_30 = param_1;
_ZN3fmt3v109loc_valueC2IiTnNSt9enable_ifIXntsr6detail11is_float128IT_EE5valueEiE4typeELi0EEES4_
(local_58,local_1c);
local_60 = local_18;
uVar1 = fmt::v10::detail::write_loc(local_30,local_28,local_18);
if ((uVar1 & 1) != 0) {
return local_10;
}
}
local_68 = local_10;
local_70 = fmt::v10::detail::write_int_arg<std::
conditional<(((num_bits<int>)())<=(32))&&(!(0)),unsigned_int,std::
conditional<((num_bits<int>)())<=(64),unsigned_long,unsigned__int128>::type>::
type>fmt::v10::detail::make_write_int_arg<int>
(local_1c,(byte)(*(ushort *)(local_28 + 9) >> 4) & 7);
local_78 = local_18;
pdVar2 = (detail *)
fmt::v10::detail::write_int_noinline<char,fmt::v10::appender,unsigned_int>
(local_68,local_70,local_28,local_18);
return pdVar2;
}
local_e0[0] = "false";
if (local_a9 != 0) {
local_e0[0] = "true";
}
local_88 = local_e0;
local_d0 = param_1;
local_90 = local_e0[0];
sVar3 = strlen(local_e0[0]);
pdVar2 = (detail *)
fmt::v10::detail::write_bytes<(fmt::v10::align::type)1,char,fmt::v10::appender>
(local_d0,local_e0[0],sVar3,local_b8);
return pdVar2;
}
| |
48,287 | String::append(char const*, unsigned long, charset_info_st const*) | eloqsql/sql/sql_string.cc | bool String::append(const char *s, size_t arg_length, CHARSET_INFO *cs)
{
if (!arg_length)
return false;
uint32 offset;
if (needs_conversion((uint32)arg_length, cs, charset(), &offset))
{
size_t add_length;
if ((cs == &my_charset_bin) && offset)
{
DBUG_ASSERT(mbminlen() > offset);
offset= mbminlen() - offset; // How many characters to pad
add_length= arg_length + offset;
if (realloc(str_length + add_length))
return TRUE;
bzero((char*) Ptr + str_length, offset);
memcpy(Ptr + str_length + offset, s, arg_length);
str_length+= (uint32)add_length;
return FALSE;
}
add_length= arg_length / cs->mbminlen * mbmaxlen();
uint dummy_errors;
if (realloc_with_extra_if_needed(str_length + add_length))
return TRUE;
str_length+= copy_and_convert(Ptr + str_length, (uint32)add_length, charset(),
s, (uint32)arg_length, cs, &dummy_errors);
return false;
}
return Binary_string::append(s, arg_length);
} | O0 | cpp | String::append(char const*, unsigned long, charset_info_st const*):
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x5f0e3
movb $0x0, -0x1(%rbp)
jmp 0x5f29e
movq -0x48(%rbp), %rdi
movq -0x20(%rbp), %rax
movl %eax, %eax
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x50(%rbp)
callq 0x671c0
movq -0x58(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq %rax, %rdx
leaq -0x2c(%rbp), %rcx
callq 0x5eb80
testb $0x1, %al
jne 0x5f11b
jmp 0x5f284
leaq 0x23255e(%rip), %rax # 0x291680
cmpq %rax, -0x28(%rbp)
jne 0x5f1d3
cmpl $0x0, -0x2c(%rbp)
je 0x5f1d3
jmp 0x5f138
jmp 0x5f13a
movq -0x48(%rbp), %rdi
callq 0x671a0
movl %eax, %ecx
movq -0x48(%rbp), %rax
subl -0x2c(%rbp), %ecx
movl %ecx, -0x2c(%rbp)
movq -0x20(%rbp), %rcx
movl -0x2c(%rbp), %edx
addq %rdx, %rcx
movq %rcx, -0x38(%rbp)
movq %rax, %rdi
addq $0x8, %rdi
movl 0x10(%rax), %eax
movl %eax, %esi
addq -0x38(%rbp), %rsi
callq 0x67050
testb $0x1, %al
jne 0x5f178
jmp 0x5f181
movb $0x1, -0x1(%rbp)
jmp 0x5f29e
movq -0x48(%rbp), %rax
movq 0x8(%rax), %rdi
movl 0x10(%rax), %eax
addq %rax, %rdi
movl -0x2c(%rbp), %eax
movl %eax, %edx
xorl %esi, %esi
callq 0x3b390
movq -0x48(%rbp), %rax
movq 0x8(%rax), %rdi
movl 0x10(%rax), %eax
addq %rax, %rdi
movl -0x2c(%rbp), %eax
addq %rax, %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x3b0c0
movq -0x48(%rbp), %rax
movq -0x38(%rbp), %rcx
addl 0x10(%rax), %ecx
movl %ecx, 0x10(%rax)
movb $0x0, -0x1(%rbp)
jmp 0x5f29e
movq -0x48(%rbp), %rdi
movq -0x20(%rbp), %rax
movq -0x28(%rbp), %rcx
movl 0x98(%rcx), %ecx
xorl %edx, %edx
divq %rcx
movq %rax, -0x60(%rbp)
callq 0x671e0
movq -0x60(%rbp), %rcx
movl %eax, %edx
movq -0x48(%rbp), %rax
movl %edx, %edx
imulq %rdx, %rcx
movq %rcx, -0x38(%rbp)
movq %rax, %rdi
addq $0x8, %rdi
movl 0x10(%rax), %eax
movl %eax, %esi
addq -0x38(%rbp), %rsi
callq 0x67200
testb $0x1, %al
jne 0x5f222
jmp 0x5f228
movb $0x1, -0x1(%rbp)
jmp 0x5f29e
movq -0x48(%rbp), %rdi
movq 0x8(%rdi), %rax
movl 0x10(%rdi), %ecx
addq %rcx, %rax
movq %rax, -0x70(%rbp)
movq -0x38(%rbp), %rax
movl %eax, %eax
movq %rax, -0x68(%rbp)
callq 0x671c0
movq -0x70(%rbp), %rdi
movq -0x68(%rbp), %rsi
movq %rax, %rdx
movq -0x18(%rbp), %rcx
movq -0x20(%rbp), %rax
movl %eax, %eax
movl %eax, %r8d
movq -0x28(%rbp), %r9
leaq -0x3c(%rbp), %rax
movq %rax, (%rsp)
callq 0x67140
movl %eax, %ecx
movq -0x48(%rbp), %rax
addl 0x10(%rax), %ecx
movl %ecx, 0x10(%rax)
movb $0x0, -0x1(%rbp)
jmp 0x5f29e
movq -0x48(%rbp), %rdi
addq $0x8, %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x67260
andb $0x1, %al
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax)
| _ZN6String6appendEPKcmPK15charset_info_st:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_10]
mov [rbp+var_48], rax
cmp [rbp+var_20], 0
jnz short loc_5F0E3
mov [rbp+var_1], 0
jmp loc_5F29E
loc_5F0E3:
mov rdi, [rbp+var_48]; this
mov rax, [rbp+var_20]
mov eax, eax
mov [rbp+var_58], rax
mov rax, [rbp+var_28]
mov [rbp+var_50], rax
call _ZNK7Charset7charsetEv; Charset::charset(void)
mov rdi, [rbp+var_58]; this
mov rsi, [rbp+var_50]; unsigned __int64
mov rdx, rax; charset_info_st *
lea rcx, [rbp+var_2C]; charset_info_st *
call _ZN6String16needs_conversionEmPK15charset_info_stS2_Pj; String::needs_conversion(ulong,charset_info_st const*,charset_info_st const*,uint *)
test al, 1
jnz short loc_5F11B
jmp loc_5F284
loc_5F11B:
lea rax, my_charset_bin
cmp [rbp+var_28], rax
jnz loc_5F1D3
cmp [rbp+var_2C], 0
jz loc_5F1D3
jmp short $+2
loc_5F138:
jmp short $+2
loc_5F13A:
mov rdi, [rbp+var_48]; this
call _ZNK7Charset8mbminlenEv; Charset::mbminlen(void)
mov ecx, eax
mov rax, [rbp+var_48]
sub ecx, [rbp+var_2C]
mov [rbp+var_2C], ecx
mov rcx, [rbp+var_20]
mov edx, [rbp+var_2C]
add rcx, rdx
mov [rbp+var_38], rcx
mov rdi, rax
add rdi, 8; this
mov eax, [rax+10h]
mov esi, eax
add rsi, [rbp+var_38]; unsigned __int64
call _ZN13Binary_string7reallocEm; Binary_string::realloc(ulong)
test al, 1
jnz short loc_5F178
jmp short loc_5F181
loc_5F178:
mov [rbp+var_1], 1
jmp loc_5F29E
loc_5F181:
mov rax, [rbp+var_48]
mov rdi, [rax+8]
mov eax, [rax+10h]
add rdi, rax
mov eax, [rbp+var_2C]
mov edx, eax
xor esi, esi
call _memset
mov rax, [rbp+var_48]
mov rdi, [rax+8]
mov eax, [rax+10h]
add rdi, rax
mov eax, [rbp+var_2C]
add rdi, rax
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call _memcpy
mov rax, [rbp+var_48]
mov rcx, [rbp+var_38]
add ecx, [rax+10h]
mov [rax+10h], ecx
mov [rbp+var_1], 0
jmp loc_5F29E
loc_5F1D3:
mov rdi, [rbp+var_48]; this
mov rax, [rbp+var_20]
mov rcx, [rbp+var_28]
mov ecx, [rcx+98h]
xor edx, edx
div rcx
mov [rbp+var_60], rax
call _ZNK7Charset8mbmaxlenEv; Charset::mbmaxlen(void)
mov rcx, [rbp+var_60]
mov edx, eax
mov rax, [rbp+var_48]
mov edx, edx
imul rcx, rdx
mov [rbp+var_38], rcx
mov rdi, rax
add rdi, 8; this
mov eax, [rax+10h]
mov esi, eax
add rsi, [rbp+var_38]; unsigned __int64
call _ZN13Binary_string28realloc_with_extra_if_neededEm; Binary_string::realloc_with_extra_if_needed(ulong)
test al, 1
jnz short loc_5F222
jmp short loc_5F228
loc_5F222:
mov [rbp+var_1], 1
jmp short loc_5F29E
loc_5F228:
mov rdi, [rbp+var_48]; this
mov rax, [rdi+8]
mov ecx, [rdi+10h]
add rax, rcx
mov [rbp+var_70], rax
mov rax, [rbp+var_38]
mov eax, eax
mov [rbp+var_68], rax
call _ZNK7Charset7charsetEv; Charset::charset(void)
mov rdi, [rbp+var_70]; char *
mov rsi, [rbp+var_68]; unsigned __int64
mov rdx, rax; charset_info_st *
mov rcx, [rbp+var_18]; char *
mov rax, [rbp+var_20]
mov eax, eax
mov r8d, eax; unsigned __int64
mov r9, [rbp+var_28]; charset_info_st *
lea rax, [rbp+var_3C]
mov [rsp+80h+var_80], rax; unsigned int *
call _Z16copy_and_convertPcmPK15charset_info_stPKcmS2_Pj; copy_and_convert(char *,ulong,charset_info_st const*,char const*,ulong,charset_info_st const*,uint *)
mov ecx, eax
mov rax, [rbp+var_48]
add ecx, [rax+10h]
mov [rax+10h], ecx
mov [rbp+var_1], 0
jmp short loc_5F29E
loc_5F284:
mov rdi, [rbp+var_48]
add rdi, 8; this
mov rsi, [rbp+var_18]; char *
mov rdx, [rbp+var_20]; unsigned __int64
call _ZN13Binary_string6appendEPKcm; Binary_string::append(char const*,ulong)
and al, 1
mov [rbp+var_1], al
loc_5F29E:
mov al, [rbp+var_1]
and al, 1
add rsp, 80h
pop rbp
retn
| char String::append(String *this, char *a2, unsigned long long a3, const charset_info_st *a4)
{
const charset_info_st *v4; // rax
unsigned int *v5; // r8
int v6; // eax
const charset_info_st *v7; // rax
char *v9; // [rsp+10h] [rbp-70h]
unsigned long long v10; // [rsp+20h] [rbp-60h]
unsigned int v11; // [rsp+44h] [rbp-3Ch] BYREF
unsigned long long v12; // [rsp+48h] [rbp-38h]
unsigned int v13; // [rsp+54h] [rbp-2Ch] BYREF
charset_info_st *v14; // [rsp+58h] [rbp-28h]
unsigned long long v15; // [rsp+60h] [rbp-20h]
char *v16; // [rsp+68h] [rbp-18h]
String *v17; // [rsp+70h] [rbp-10h]
v17 = this;
v16 = a2;
v15 = a3;
v14 = a4;
if ( !a3 )
return 0;
v4 = (const charset_info_st *)Charset::charset(this);
if ( !String::needs_conversion((unsigned int)v15, v14, v4, (const charset_info_st *)&v13, v5) )
return Binary_string::append((String *)((char *)this + 8), v16, v15) & 1;
if ( v14 == (charset_info_st *)&my_charset_bin && v13 )
{
v6 = Charset::mbminlen(this);
v13 = v6 - v13;
v12 = v13 + v15;
if ( (Binary_string::realloc((String *)((char *)this + 8), v12 + *((unsigned int *)this + 4)) & 1) != 0 )
{
return 1;
}
else
{
memset(*((unsigned int *)this + 4) + *((_QWORD *)this + 1), 0LL, v13);
memcpy(v13 + *((unsigned int *)this + 4) + *((_QWORD *)this + 1), v16, v15);
*((_DWORD *)this + 4) += v12;
return 0;
}
}
else
{
v10 = v15 / *((unsigned int *)v14 + 38);
v12 = (unsigned int)Charset::mbmaxlen(this) * v10;
if ( (Binary_string::realloc_with_extra_if_needed((String *)((char *)this + 8), v12 + *((unsigned int *)this + 4)) & 1) != 0 )
{
return 1;
}
else
{
v9 = (char *)(*((unsigned int *)this + 4) + *((_QWORD *)this + 1));
v7 = (const charset_info_st *)Charset::charset(this);
*((_DWORD *)this + 4) += copy_and_convert(v9, (unsigned int)v12, v7, v16, (unsigned int)v15, v14, &v11);
return 0;
}
}
}
| append:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
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 + -0x10]
MOV qword ptr [RBP + -0x48],RAX
CMP qword ptr [RBP + -0x20],0x0
JNZ 0x0015f0e3
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0015f29e
LAB_0015f0e3:
MOV RDI,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,EAX
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x50],RAX
CALL 0x001671c0
MOV RDI,qword ptr [RBP + -0x58]
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,RAX
LEA RCX,[RBP + -0x2c]
CALL 0x0015eb80
TEST AL,0x1
JNZ 0x0015f11b
JMP 0x0015f284
LAB_0015f11b:
LEA RAX,[0x391680]
CMP qword ptr [RBP + -0x28],RAX
JNZ 0x0015f1d3
CMP dword ptr [RBP + -0x2c],0x0
JZ 0x0015f1d3
JMP 0x0015f138
LAB_0015f138:
JMP 0x0015f13a
LAB_0015f13a:
MOV RDI,qword ptr [RBP + -0x48]
CALL 0x001671a0
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x48]
SUB ECX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x2c],ECX
MOV RCX,qword ptr [RBP + -0x20]
MOV EDX,dword ptr [RBP + -0x2c]
ADD RCX,RDX
MOV qword ptr [RBP + -0x38],RCX
MOV RDI,RAX
ADD RDI,0x8
MOV EAX,dword ptr [RAX + 0x10]
MOV ESI,EAX
ADD RSI,qword ptr [RBP + -0x38]
CALL 0x00167050
TEST AL,0x1
JNZ 0x0015f178
JMP 0x0015f181
LAB_0015f178:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0015f29e
LAB_0015f181:
MOV RAX,qword ptr [RBP + -0x48]
MOV RDI,qword ptr [RAX + 0x8]
MOV EAX,dword ptr [RAX + 0x10]
ADD RDI,RAX
MOV EAX,dword ptr [RBP + -0x2c]
MOV EDX,EAX
XOR ESI,ESI
CALL 0x0013b390
MOV RAX,qword ptr [RBP + -0x48]
MOV RDI,qword ptr [RAX + 0x8]
MOV EAX,dword ptr [RAX + 0x10]
ADD RDI,RAX
MOV EAX,dword ptr [RBP + -0x2c]
ADD RDI,RAX
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x0013b0c0
MOV RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x38]
ADD ECX,dword ptr [RAX + 0x10]
MOV dword ptr [RAX + 0x10],ECX
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0015f29e
LAB_0015f1d3:
MOV RDI,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x28]
MOV ECX,dword ptr [RCX + 0x98]
XOR EDX,EDX
DIV RCX
MOV qword ptr [RBP + -0x60],RAX
CALL 0x001671e0
MOV RCX,qword ptr [RBP + -0x60]
MOV EDX,EAX
MOV RAX,qword ptr [RBP + -0x48]
MOV EDX,EDX
IMUL RCX,RDX
MOV qword ptr [RBP + -0x38],RCX
MOV RDI,RAX
ADD RDI,0x8
MOV EAX,dword ptr [RAX + 0x10]
MOV ESI,EAX
ADD RSI,qword ptr [RBP + -0x38]
CALL 0x00167200
TEST AL,0x1
JNZ 0x0015f222
JMP 0x0015f228
LAB_0015f222:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0015f29e
LAB_0015f228:
MOV RDI,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RDI + 0x8]
MOV ECX,dword ptr [RDI + 0x10]
ADD RAX,RCX
MOV qword ptr [RBP + -0x70],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV EAX,EAX
MOV qword ptr [RBP + -0x68],RAX
CALL 0x001671c0
MOV RDI,qword ptr [RBP + -0x70]
MOV RSI,qword ptr [RBP + -0x68]
MOV RDX,RAX
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,EAX
MOV R8D,EAX
MOV R9,qword ptr [RBP + -0x28]
LEA RAX,[RBP + -0x3c]
MOV qword ptr [RSP],RAX
CALL 0x00167140
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x48]
ADD ECX,dword ptr [RAX + 0x10]
MOV dword ptr [RAX + 0x10],ECX
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0015f29e
LAB_0015f284:
MOV RDI,qword ptr [RBP + -0x48]
ADD RDI,0x8
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x00167260
AND AL,0x1
MOV byte ptr [RBP + -0x1],AL
LAB_0015f29e:
MOV AL,byte ptr [RBP + -0x1]
AND AL,0x1
ADD RSP,0x80
POP RBP
RET
|
/* String::append(char const*, unsigned long, charset_info_st const*) */
byte __thiscall String::append(String *this,char *param_1,ulong param_2,charset_info_st *param_3)
{
long lVar1;
int iVar2;
uint uVar3;
charset_info_st *pcVar4;
ulong uVar5;
uint local_44;
ulong local_40;
uint local_34;
charset_info_st *local_30;
ulong local_28;
char *local_20;
String *local_18;
byte local_9;
if (param_2 == 0) {
local_9 = 0;
}
else {
local_30 = param_3;
local_28 = param_2;
local_20 = param_1;
local_18 = this;
pcVar4 = (charset_info_st *)Charset::charset((Charset *)this);
uVar5 = needs_conversion(param_2 & 0xffffffff,param_3,pcVar4,&local_34);
if ((uVar5 & 1) == 0) {
local_9 = Binary_string::append((Binary_string *)(this + 8),local_20,local_28);
local_9 = local_9 & 1;
}
else if ((local_30 == (charset_info_st *)&my_charset_bin) && (local_34 != 0)) {
iVar2 = Charset::mbminlen((Charset *)this);
local_34 = iVar2 - local_34;
local_40 = local_28 + local_34;
uVar5 = Binary_string::realloc((Binary_string *)(this + 8),*(uint *)(this + 0x10) + local_40);
if ((uVar5 & 1) == 0) {
memset((void *)(*(long *)(this + 8) + (ulong)*(uint *)(this + 0x10)),0,(ulong)local_34);
memcpy((void *)(*(long *)(this + 8) + (ulong)*(uint *)(this + 0x10) + (ulong)local_34),
local_20,local_28);
*(int *)(this + 0x10) = (int)local_40 + *(int *)(this + 0x10);
local_9 = 0;
}
else {
local_9 = 1;
}
}
else {
uVar5 = local_28 / *(uint *)(local_30 + 0x98);
uVar3 = Charset::mbmaxlen((Charset *)this);
local_40 = uVar5 * uVar3;
uVar5 = Binary_string::realloc_with_extra_if_needed
((Binary_string *)(this + 8),*(uint *)(this + 0x10) + local_40);
if ((uVar5 & 1) == 0) {
lVar1 = *(long *)(this + 8);
uVar3 = *(uint *)(this + 0x10);
uVar5 = local_40 & 0xffffffff;
pcVar4 = (charset_info_st *)Charset::charset((Charset *)this);
iVar2 = copy_and_convert((char *)(lVar1 + (ulong)uVar3),uVar5,pcVar4,local_20,
local_28 & 0xffffffff,local_30,&local_44);
*(int *)(this + 0x10) = iVar2 + *(int *)(this + 0x10);
local_9 = 0;
}
else {
local_9 = 1;
}
}
}
return local_9;
}
| |
48,288 | String::append(char const*, unsigned long, charset_info_st const*) | eloqsql/sql/sql_string.cc | bool String::append(const char *s, size_t arg_length, CHARSET_INFO *cs)
{
if (!arg_length)
return false;
uint32 offset;
if (needs_conversion((uint32)arg_length, cs, charset(), &offset))
{
size_t add_length;
if ((cs == &my_charset_bin) && offset)
{
DBUG_ASSERT(mbminlen() > offset);
offset= mbminlen() - offset; // How many characters to pad
add_length= arg_length + offset;
if (realloc(str_length + add_length))
return TRUE;
bzero((char*) Ptr + str_length, offset);
memcpy(Ptr + str_length + offset, s, arg_length);
str_length+= (uint32)add_length;
return FALSE;
}
add_length= arg_length / cs->mbminlen * mbmaxlen();
uint dummy_errors;
if (realloc_with_extra_if_needed(str_length + add_length))
return TRUE;
str_length+= copy_and_convert(Ptr + str_length, (uint32)add_length, charset(),
s, (uint32)arg_length, cs, &dummy_errors);
return false;
}
return Binary_string::append(s, arg_length);
} | O3 | cpp | String::append(char const*, unsigned long, charset_info_st const*):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
testq %rdx, %rdx
je 0x53b23
movq %rcx, %r12
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq (%rdi), %rcx
cmpq %r12, %rcx
je 0x53acc
testq %rcx, %rcx
je 0x53acc
cmpq 0x3185b8(%rip), %rcx # 0x36bfa8
je 0x53acc
movq 0x10(%r12), %rax
cmpq 0x10(%rcx), %rax
je 0x53acc
cmpq 0x31859c(%rip), %r12 # 0x36bfa8
je 0x53a4a
movl 0x98(%r12), %esi
movq %r14, %rax
xorl %edx, %edx
divq %rsi
movl 0x9c(%rcx), %ecx
imulq %rax, %rcx
leaq 0x8(%rbx), %rdi
movl 0x10(%rbx), %esi
movl 0x14(%rbx), %eax
addq %rcx, %rsi
cmpq %rax, %rsi
jae 0x53aec
movq (%rdi), %rax
movb $0x0, (%rax,%rsi)
jmp 0x53afe
movl 0x98(%rcx), %r12d
movl %r14d, %eax
xorl %edx, %edx
divl %r12d
testl %edx, %edx
je 0x53acc
subl %edx, %r12d
leaq (%r12,%r14), %rax
leaq 0x8(%rbx), %rdi
movl 0x10(%rbx), %ecx
movq %rax, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
leaq (%rcx,%rax), %rsi
incq %rsi
callq 0x53062
movb $0x1, %r13b
testb %al, %al
jne 0x53b26
movq -0x38(%rbp), %rcx
addq -0x30(%rbp), %rcx
movq 0x8(%rbx), %rax
movb $0x0, (%rax,%rcx)
movl 0x10(%rbx), %edi
addq 0x8(%rbx), %rdi
xorl %r13d, %r13d
xorl %esi, %esi
movq %r12, %rdx
callq 0x3a3a0
movl 0x10(%rbx), %edi
addq 0x8(%rbx), %rdi
addq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x3a0c0
movq -0x30(%rbp), %rax
addl %eax, 0x10(%rbx)
jmp 0x53b26
addq $0x8, %rbx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x56cea
movq %rcx, %r13
callq 0x5887a
movq %r13, %rcx
movb $0x1, %r13b
testb %al, %al
jne 0x53b26
movl 0x10(%rbx), %edi
addq 0x8(%rbx), %rdi
movq (%rbx), %rdx
leaq -0x3c(%rbp), %rax
movq %rax, (%rsp)
movl %ecx, %esi
movq %r15, %rcx
movl %r14d, %r8d
movq %r12, %r9
callq 0xb1427
addl %eax, 0x10(%rbx)
xorl %r13d, %r13d
movl %r13d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ZN6String6appendEPKcmPK15charset_info_st:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
test rdx, rdx
jz loc_53B23
mov r12, rcx
mov r14, rdx
mov r15, rsi
mov rbx, rdi
mov rcx, [rdi]
cmp rcx, r12
jz loc_53ACC
test rcx, rcx
jz loc_53ACC
cmp rcx, cs:my_charset_bin_ptr
jz loc_53ACC
mov rax, [r12+10h]
cmp rax, [rcx+10h]
jz loc_53ACC
cmp r12, cs:my_charset_bin_ptr
jz short loc_53A4A
mov esi, [r12+98h]
mov rax, r14
xor edx, edx
div rsi
mov ecx, [rcx+9Ch]
imul rcx, rax
lea rdi, [rbx+8]; this
mov esi, [rbx+10h]
mov eax, [rbx+14h]
add rsi, rcx; unsigned __int64
cmp rsi, rax
jnb loc_53AEC
mov rax, [rdi]
mov byte ptr [rax+rsi], 0
jmp loc_53AFE
loc_53A4A:
mov r12d, [rcx+98h]
mov eax, r14d
xor edx, edx
div r12d
test edx, edx
jz short loc_53ACC
sub r12d, edx
lea rax, [r12+r14]
lea rdi, [rbx+8]; this
mov ecx, [rbx+10h]
mov [rbp+var_30], rax
mov [rbp+var_38], rcx
lea rsi, [rcx+rax]
inc rsi; unsigned __int64
call _ZN13Binary_string11realloc_rawEm; Binary_string::realloc_raw(ulong)
mov r13b, 1
test al, al
jnz loc_53B26
mov rcx, [rbp+var_38]
add rcx, [rbp+var_30]
mov rax, [rbx+8]
mov byte ptr [rax+rcx], 0
mov edi, [rbx+10h]
add rdi, [rbx+8]
xor r13d, r13d
xor esi, esi
mov rdx, r12
call _memset
mov edi, [rbx+10h]
add rdi, [rbx+8]
add rdi, r12
mov rsi, r15
mov rdx, r14
call _memcpy
mov rax, [rbp+var_30]
add [rbx+10h], eax
jmp short loc_53B26
loc_53ACC:
add rbx, 8
mov rdi, rbx; this
mov rsi, r15; char *
mov rdx, r14; unsigned __int64
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _ZN13Binary_string6appendEPKcm; Binary_string::append(char const*,ulong)
loc_53AEC:
mov r13, rcx
call _ZN13Binary_string18realloc_with_extraEm; Binary_string::realloc_with_extra(ulong)
mov rcx, r13
mov r13b, 1
test al, al
jnz short loc_53B26
loc_53AFE:
mov edi, [rbx+10h]
add rdi, [rbx+8]
mov rdx, [rbx]
lea rax, [rbp+var_3C]
mov [rsp+50h+var_50], rax
mov esi, ecx
mov rcx, r15
mov r8d, r14d
mov r9, r12
call my_convert
add [rbx+10h], eax
loc_53B23:
xor r13d, r13d
loc_53B26:
mov eax, r13d
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long String::append(long long *a1, const char *a2, unsigned long long a3, long long a4)
{
unsigned int v4; // r13d
int v7; // r15d
long long v9; // rcx
unsigned long long v10; // rcx
Binary_string *v11; // rdi
unsigned long long v12; // rsi
unsigned int v13; // r12d
long long v14; // r12
long long v15; // rcx
long long v16; // rcx
long long v17; // r8
long long v18; // r9
char v20; // al
_BYTE v21[4]; // [rsp+14h] [rbp-3Ch] BYREF
long long v22; // [rsp+18h] [rbp-38h]
long long v23; // [rsp+20h] [rbp-30h]
if ( !a3 )
return 0;
v7 = (int)a2;
v9 = *a1;
if ( *a1 == a4 || !v9 || (_DWORD *)v9 == my_charset_bin || *(_QWORD *)(a4 + 16) == *(_QWORD *)(v9 + 16) )
return Binary_string::append((Binary_string *)(a1 + 1), a2, a3);
if ( (_DWORD *)a4 == my_charset_bin )
{
v13 = *(_DWORD *)(v9 + 152);
if ( (unsigned int)a3 % v13 )
{
v14 = v13 - (unsigned int)a3 % v13;
v15 = *((unsigned int *)a1 + 4);
v23 = v14 + a3;
v22 = v15;
LOBYTE(v4) = 1;
if ( !(unsigned __int8)Binary_string::realloc_raw((Binary_string *)(a1 + 1), v15 + v14 + a3 + 1) )
{
*(_BYTE *)(a1[1] + v23 + v22) = 0;
v4 = 0;
memset(a1[1] + *((unsigned int *)a1 + 4), 0LL, v14);
memcpy(v14 + a1[1] + *((unsigned int *)a1 + 4), a2, a3, v16, v17, v18);
*((_DWORD *)a1 + 4) += v23;
}
return v4;
}
return Binary_string::append((Binary_string *)(a1 + 1), a2, a3);
}
v10 = a3 / *(unsigned int *)(a4 + 152) * *(unsigned int *)(v9 + 156);
v11 = (Binary_string *)(a1 + 1);
v12 = v10 + *((unsigned int *)a1 + 4);
if ( v12 < *((unsigned int *)a1 + 5) )
{
*(_BYTE *)(*(_QWORD *)v11 + v12) = 0;
LABEL_14:
*((_DWORD *)a1 + 4) += my_convert(*((_DWORD *)a1 + 2) + *((_DWORD *)a1 + 4), v10, *a1, v7, a3, a4, (long long)v21);
return 0;
}
v4 = v10;
v20 = Binary_string::realloc_with_extra(v11, v12);
LODWORD(v10) = v4;
LOBYTE(v4) = 1;
if ( !v20 )
goto LABEL_14;
return v4;
}
| append:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
TEST RDX,RDX
JZ 0x00153b23
MOV R12,RCX
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
MOV RCX,qword ptr [RDI]
CMP RCX,R12
JZ 0x00153acc
TEST RCX,RCX
JZ 0x00153acc
CMP RCX,qword ptr [0x0046bfa8]
JZ 0x00153acc
MOV RAX,qword ptr [R12 + 0x10]
CMP RAX,qword ptr [RCX + 0x10]
JZ 0x00153acc
CMP R12,qword ptr [0x0046bfa8]
JZ 0x00153a4a
MOV ESI,dword ptr [R12 + 0x98]
MOV RAX,R14
XOR EDX,EDX
DIV RSI
MOV ECX,dword ptr [RCX + 0x9c]
IMUL RCX,RAX
LEA RDI,[RBX + 0x8]
MOV ESI,dword ptr [RBX + 0x10]
MOV EAX,dword ptr [RBX + 0x14]
ADD RSI,RCX
CMP RSI,RAX
JNC 0x00153aec
MOV RAX,qword ptr [RDI]
MOV byte ptr [RAX + RSI*0x1],0x0
JMP 0x00153afe
LAB_00153a4a:
MOV R12D,dword ptr [RCX + 0x98]
MOV EAX,R14D
XOR EDX,EDX
DIV R12D
TEST EDX,EDX
JZ 0x00153acc
SUB R12D,EDX
LEA RAX,[R12 + R14*0x1]
LEA RDI,[RBX + 0x8]
MOV ECX,dword ptr [RBX + 0x10]
MOV qword ptr [RBP + -0x30],RAX
MOV qword ptr [RBP + -0x38],RCX
LEA RSI,[RCX + RAX*0x1]
INC RSI
CALL 0x00153062
MOV R13B,0x1
TEST AL,AL
JNZ 0x00153b26
MOV RCX,qword ptr [RBP + -0x38]
ADD RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBX + 0x8]
MOV byte ptr [RAX + RCX*0x1],0x0
MOV EDI,dword ptr [RBX + 0x10]
ADD RDI,qword ptr [RBX + 0x8]
XOR R13D,R13D
XOR ESI,ESI
MOV RDX,R12
CALL 0x0013a3a0
MOV EDI,dword ptr [RBX + 0x10]
ADD RDI,qword ptr [RBX + 0x8]
ADD RDI,R12
MOV RSI,R15
MOV RDX,R14
CALL 0x0013a0c0
MOV RAX,qword ptr [RBP + -0x30]
ADD dword ptr [RBX + 0x10],EAX
JMP 0x00153b26
LAB_00153acc:
ADD RBX,0x8
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00156cea
LAB_00153aec:
MOV R13,RCX
CALL 0x0015887a
MOV RCX,R13
MOV R13B,0x1
TEST AL,AL
JNZ 0x00153b26
LAB_00153afe:
MOV EDI,dword ptr [RBX + 0x10]
ADD RDI,qword ptr [RBX + 0x8]
MOV RDX,qword ptr [RBX]
LEA RAX,[RBP + -0x3c]
MOV qword ptr [RSP],RAX
MOV ESI,ECX
MOV RCX,R15
MOV R8D,R14D
MOV R9,R12
CALL 0x001b1427
ADD dword ptr [RBX + 0x10],EAX
LAB_00153b23:
XOR R13D,R13D
LAB_00153b26:
MOV EAX,R13D
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* String::append(char const*, unsigned long, charset_info_st const*) */
ulong __thiscall String::append(String *this,char *param_1,ulong param_2,charset_info_st *param_3)
{
charset_info_st *pcVar1;
char cVar2;
int iVar3;
ulong uVar4;
ulong uVar5;
int8 unaff_R13;
int1 local_44 [4];
ulong local_40;
long local_38;
if (param_2 != 0) {
pcVar1 = *(charset_info_st **)this;
if ((((pcVar1 == param_3) || (pcVar1 == (charset_info_st *)0x0)) ||
(pcVar1 == (charset_info_st *)PTR_my_charset_bin_0046bfa8)) ||
(*(long *)(param_3 + 0x10) == *(long *)(pcVar1 + 0x10))) {
LAB_00153acc:
uVar4 = Binary_string::append((Binary_string *)(this + 8),param_1,param_2);
return uVar4;
}
if (param_3 == (charset_info_st *)PTR_my_charset_bin_0046bfa8) {
iVar3 = (int)((param_2 & 0xffffffff) % (ulong)*(uint *)(pcVar1 + 0x98));
if (iVar3 == 0) goto LAB_00153acc;
uVar4 = (ulong)(*(uint *)(pcVar1 + 0x98) - iVar3);
local_38 = uVar4 + param_2;
local_40 = (ulong)*(uint *)(this + 0x10);
cVar2 = Binary_string::realloc_raw((Binary_string *)(this + 8),local_40 + local_38 + 1);
uVar5 = CONCAT71((int7)((ulong)unaff_R13 >> 8),1);
if (cVar2 == '\0') {
*(int1 *)(*(long *)(this + 8) + local_40 + local_38) = 0;
uVar5 = 0;
memset((void *)((ulong)*(uint *)(this + 0x10) + *(long *)(this + 8)),0,uVar4);
memcpy((void *)((ulong)*(uint *)(this + 0x10) + *(long *)(this + 8) + uVar4),param_1,param_2
);
*(int *)(this + 0x10) = *(int *)(this + 0x10) + (int)local_38;
}
goto LAB_00153b26;
}
uVar4 = (ulong)*(uint *)(pcVar1 + 0x9c) * (param_2 / *(uint *)(param_3 + 0x98));
uVar5 = *(uint *)(this + 0x10) + uVar4;
if (uVar5 < *(uint *)(this + 0x14)) {
*(int1 *)(*(long *)(this + 8) + uVar5) = 0;
}
else {
cVar2 = Binary_string::realloc_with_extra((Binary_string *)(this + 8),uVar5);
uVar5 = CONCAT71((int7)(uVar4 >> 8),1);
if (cVar2 != '\0') goto LAB_00153b26;
}
iVar3 = my_convert((ulong)*(uint *)(this + 0x10) + *(long *)(this + 8),uVar4 & 0xffffffff,
*(int8 *)this,param_1,param_2 & 0xffffffff,param_3,local_44);
*(int *)(this + 0x10) = *(int *)(this + 0x10) + iVar3;
}
uVar5 = 0;
LAB_00153b26:
return uVar5 & 0xffffffff;
}
| |
48,289 | ma_write_static_record | eloqsql/storage/maria/ma_statrec.c | my_bool _ma_write_static_record(MARIA_HA *info, const uchar *record)
{
uchar temp[8]; /* max pointer length */
if (info->s->state.dellink != HA_OFFSET_ERROR &&
!info->append_insert_at_end)
{
my_off_t filepos=info->s->state.dellink;
info->rec_cache.seek_not_done=1; /* We have done a seek */
if (info->s->file_read(info, &temp[0],info->s->base.rec_reflength,
info->s->state.dellink+1,
MYF(MY_NABP)))
goto err;
info->s->state.dellink= _ma_rec_pos(info->s, temp);
info->state->del--;
info->state->empty-=info->s->base.pack_reclength;
if (info->s->file_write(info, record, info->s->base.reclength,
filepos, MYF(MY_NABP)))
goto err;
}
else
{
if (info->state->data_file_length > info->s->base.max_data_file_length-
info->s->base.pack_reclength)
{
my_errno=HA_ERR_RECORD_FILE_FULL;
return(2);
}
if (info->opt_flag & WRITE_CACHE_USED)
{ /* Cash in use */
if (my_b_write(&info->rec_cache, record,
info->s->base.reclength))
goto err;
if (info->s->base.pack_reclength != info->s->base.reclength)
{
uint length=info->s->base.pack_reclength - info->s->base.reclength;
bzero(temp,length);
if (my_b_write(&info->rec_cache, temp,length))
goto err;
}
}
else
{
info->rec_cache.seek_not_done=1; /* We have done a seek */
if (info->s->file_write(info, record, info->s->base.reclength,
info->state->data_file_length,
info->s->write_flag))
goto err;
if (info->s->base.pack_reclength != info->s->base.reclength)
{
uint length=info->s->base.pack_reclength - info->s->base.reclength;
bzero(temp,length);
if (info->s->file_write(info, temp,length,
info->state->data_file_length+
info->s->base.reclength,
info->s->write_flag))
goto err;
}
}
info->state->data_file_length+=info->s->base.pack_reclength;
info->s->state.split++;
}
return 0;
err:
return 1;
} | O0 | c | ma_write_static_record:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x20(%rbp)
movq %rsi, -0x28(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
cmpq $-0x1, 0xc8(%rax)
je 0x728c3
movq -0x20(%rbp), %rax
cmpb $0x0, 0x681(%rax)
jne 0x728c3
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0xc8(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
movl $0x1, 0x598(%rax)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x6e0(%rax), %rax
movq -0x20(%rbp), %rdi
leaq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rcx
movq (%rcx), %rcx
movl 0x3e0(%rcx), %ecx
movl %ecx, %edx
movq -0x20(%rbp), %rcx
movq (%rcx), %rcx
movq 0xc8(%rcx), %rcx
addq $0x1, %rcx
movl $0x4, %r8d
callq *%rax
cmpq $0x0, %rax
je 0x7282d
jmp 0x72af1
movq -0x20(%rbp), %rax
movq (%rax), %rdi
leaq -0x10(%rbp), %rsi
callq 0x6a840
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rcx, 0xc8(%rax)
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x8(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x8(%rax)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x3a0(%rax), %rdx
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x10(%rax), %rcx
subq %rdx, %rcx
movq %rcx, 0x10(%rax)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x6e8(%rax), %rax
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x20(%rbp), %rcx
movq (%rcx), %rcx
movq 0x398(%rcx), %rdx
movq -0x30(%rbp), %rcx
movl $0x4, %r8d
callq *%rax
cmpq $0x0, %rax
je 0x728be
jmp 0x72af1
jmp 0x72aeb
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x28(%rax), %rax
movq -0x20(%rbp), %rcx
movq (%rcx), %rcx
movq 0x368(%rcx), %rcx
movq -0x20(%rbp), %rdx
movq (%rdx), %rdx
subq 0x3a0(%rdx), %rcx
cmpq %rcx, %rax
jbe 0x72904
callq 0xf55f0
movl $0x87, (%rax)
movb $0x2, -0x11(%rbp)
jmp 0x72af5
movq -0x20(%rbp), %rax
movl 0x61c(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x729bd
movq -0x20(%rbp), %rdi
addq $0x4b8, %rdi # imm = 0x4B8
movq -0x28(%rbp), %rsi
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x398(%rax), %rdx
callq 0x72b20
cmpl $0x0, %eax
je 0x72946
jmp 0x72af1
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x3a0(%rax), %rax
movq -0x20(%rbp), %rcx
movq (%rcx), %rcx
cmpq 0x398(%rcx), %rax
je 0x729b8
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x3a0(%rax), %rax
movq -0x20(%rbp), %rcx
movq (%rcx), %rcx
subq 0x398(%rcx), %rax
movl %eax, -0x34(%rbp)
leaq -0x10(%rbp), %rdi
movl -0x34(%rbp), %eax
movl %eax, %edx
xorl %esi, %esi
callq 0x2a2b0
movq -0x20(%rbp), %rdi
addq $0x4b8, %rdi # imm = 0x4B8
leaq -0x10(%rbp), %rsi
movl -0x34(%rbp), %eax
movl %eax, %edx
callq 0x72b20
cmpl $0x0, %eax
je 0x729b6
jmp 0x72af1
jmp 0x729b8
jmp 0x72ab4
movq -0x20(%rbp), %rax
movl $0x1, 0x598(%rax)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x6e8(%rax), %rax
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x20(%rbp), %rcx
movq (%rcx), %rcx
movq 0x398(%rcx), %rdx
movq -0x20(%rbp), %rcx
movq 0x20(%rcx), %rcx
movq 0x28(%rcx), %rcx
movq -0x20(%rbp), %r8
movq (%r8), %r8
movq 0x7c8(%r8), %r8
callq *%rax
cmpq $0x0, %rax
je 0x72a16
jmp 0x72af1
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x3a0(%rax), %rax
movq -0x20(%rbp), %rcx
movq (%rcx), %rcx
cmpq 0x398(%rcx), %rax
je 0x72ab2
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x3a0(%rax), %rax
movq -0x20(%rbp), %rcx
movq (%rcx), %rcx
subq 0x398(%rcx), %rax
movl %eax, -0x38(%rbp)
leaq -0x10(%rbp), %rdi
movl -0x38(%rbp), %eax
movl %eax, %edx
xorl %esi, %esi
callq 0x2a2b0
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x6e8(%rax), %rax
movq -0x20(%rbp), %rdi
leaq -0x10(%rbp), %rsi
movl -0x38(%rbp), %ecx
movl %ecx, %edx
movq -0x20(%rbp), %rcx
movq 0x20(%rcx), %rcx
movq 0x28(%rcx), %rcx
movq -0x20(%rbp), %r8
movq (%r8), %r8
addq 0x398(%r8), %rcx
movq -0x20(%rbp), %r8
movq (%r8), %r8
movq 0x7c8(%r8), %r8
callq *%rax
cmpq $0x0, %rax
je 0x72ab0
jmp 0x72af1
jmp 0x72ab2
jmp 0x72ab4
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x3a0(%rax), %rcx
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
addq 0x28(%rax), %rcx
movq %rcx, 0x28(%rax)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0xc0(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0xc0(%rax)
movb $0x0, -0x11(%rbp)
jmp 0x72af5
movb $0x1, -0x11(%rbp)
movb -0x11(%rbp), %al
movb %al, -0x39(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x72b16
movb -0x39(%rbp), %al
addq $0x40, %rsp
popq %rbp
retq
callq 0x2a260
nopl (%rax,%rax)
| _ma_write_static_record:
push rbp
mov rbp, rsp
sub rsp, 40h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_20], rdi
mov [rbp+var_28], rsi
mov rax, [rbp+var_20]
mov rax, [rax]
cmp qword ptr [rax+0C8h], 0FFFFFFFFFFFFFFFFh
jz loc_728C3
mov rax, [rbp+var_20]
cmp byte ptr [rax+681h], 0
jnz loc_728C3
mov rax, [rbp+var_20]
mov rax, [rax]
mov rax, [rax+0C8h]
mov [rbp+var_30], rax
mov rax, [rbp+var_20]
mov dword ptr [rax+598h], 1
mov rax, [rbp+var_20]
mov rax, [rax]
mov rax, [rax+6E0h]
mov rdi, [rbp+var_20]
lea rsi, [rbp+var_10]
mov rcx, [rbp+var_20]
mov rcx, [rcx]
mov ecx, [rcx+3E0h]
mov edx, ecx
mov rcx, [rbp+var_20]
mov rcx, [rcx]
mov rcx, [rcx+0C8h]
add rcx, 1
mov r8d, 4
call rax
cmp rax, 0
jz short loc_7282D
jmp loc_72AF1
loc_7282D:
mov rax, [rbp+var_20]
mov rdi, [rax]
lea rsi, [rbp+var_10]
call _ma_rec_pos
mov rcx, rax
mov rax, [rbp+var_20]
mov rax, [rax]
mov [rax+0C8h], rcx
mov rax, [rbp+var_20]
mov rax, [rax+20h]
mov rcx, [rax+8]
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rax+8], rcx
mov rax, [rbp+var_20]
mov rax, [rax]
mov rdx, [rax+3A0h]
mov rax, [rbp+var_20]
mov rax, [rax+20h]
mov rcx, [rax+10h]
sub rcx, rdx
mov [rax+10h], rcx
mov rax, [rbp+var_20]
mov rax, [rax]
mov rax, [rax+6E8h]
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_28]
mov rcx, [rbp+var_20]
mov rcx, [rcx]
mov rdx, [rcx+398h]
mov rcx, [rbp+var_30]
mov r8d, 4
call rax
cmp rax, 0
jz short loc_728BE
jmp loc_72AF1
loc_728BE:
jmp loc_72AEB
loc_728C3:
mov rax, [rbp+var_20]
mov rax, [rax+20h]
mov rax, [rax+28h]
mov rcx, [rbp+var_20]
mov rcx, [rcx]
mov rcx, [rcx+368h]
mov rdx, [rbp+var_20]
mov rdx, [rdx]
sub rcx, [rdx+3A0h]
cmp rax, rcx
jbe short loc_72904
call _my_thread_var
mov dword ptr [rax], 87h
mov [rbp+var_11], 2
jmp loc_72AF5
loc_72904:
mov rax, [rbp+var_20]
mov eax, [rax+61Ch]
and eax, 10h
cmp eax, 0
jz loc_729BD
mov rdi, [rbp+var_20]
add rdi, 4B8h
mov rsi, [rbp+var_28]
mov rax, [rbp+var_20]
mov rax, [rax]
mov rdx, [rax+398h]
call my_b_write_0
cmp eax, 0
jz short loc_72946
jmp loc_72AF1
loc_72946:
mov rax, [rbp+var_20]
mov rax, [rax]
mov rax, [rax+3A0h]
mov rcx, [rbp+var_20]
mov rcx, [rcx]
cmp rax, [rcx+398h]
jz short loc_729B8
mov rax, [rbp+var_20]
mov rax, [rax]
mov rax, [rax+3A0h]
mov rcx, [rbp+var_20]
mov rcx, [rcx]
sub rax, [rcx+398h]
mov [rbp+var_34], eax
lea rdi, [rbp+var_10]
mov eax, [rbp+var_34]
mov edx, eax
xor esi, esi
call _memset
mov rdi, [rbp+var_20]
add rdi, 4B8h
lea rsi, [rbp+var_10]
mov eax, [rbp+var_34]
mov edx, eax
call my_b_write_0
cmp eax, 0
jz short loc_729B6
jmp loc_72AF1
loc_729B6:
jmp short $+2
loc_729B8:
jmp loc_72AB4
loc_729BD:
mov rax, [rbp+var_20]
mov dword ptr [rax+598h], 1
mov rax, [rbp+var_20]
mov rax, [rax]
mov rax, [rax+6E8h]
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_28]
mov rcx, [rbp+var_20]
mov rcx, [rcx]
mov rdx, [rcx+398h]
mov rcx, [rbp+var_20]
mov rcx, [rcx+20h]
mov rcx, [rcx+28h]
mov r8, [rbp+var_20]
mov r8, [r8]
mov r8, [r8+7C8h]
call rax
cmp rax, 0
jz short loc_72A16
jmp loc_72AF1
loc_72A16:
mov rax, [rbp+var_20]
mov rax, [rax]
mov rax, [rax+3A0h]
mov rcx, [rbp+var_20]
mov rcx, [rcx]
cmp rax, [rcx+398h]
jz short loc_72AB2
mov rax, [rbp+var_20]
mov rax, [rax]
mov rax, [rax+3A0h]
mov rcx, [rbp+var_20]
mov rcx, [rcx]
sub rax, [rcx+398h]
mov [rbp+var_38], eax
lea rdi, [rbp+var_10]
mov eax, [rbp+var_38]
mov edx, eax
xor esi, esi
call _memset
mov rax, [rbp+var_20]
mov rax, [rax]
mov rax, [rax+6E8h]
mov rdi, [rbp+var_20]
lea rsi, [rbp+var_10]
mov ecx, [rbp+var_38]
mov edx, ecx
mov rcx, [rbp+var_20]
mov rcx, [rcx+20h]
mov rcx, [rcx+28h]
mov r8, [rbp+var_20]
mov r8, [r8]
add rcx, [r8+398h]
mov r8, [rbp+var_20]
mov r8, [r8]
mov r8, [r8+7C8h]
call rax
cmp rax, 0
jz short loc_72AB0
jmp short loc_72AF1
loc_72AB0:
jmp short $+2
loc_72AB2:
jmp short $+2
loc_72AB4:
mov rax, [rbp+var_20]
mov rax, [rax]
mov rcx, [rax+3A0h]
mov rax, [rbp+var_20]
mov rax, [rax+20h]
add rcx, [rax+28h]
mov [rax+28h], rcx
mov rax, [rbp+var_20]
mov rax, [rax]
mov rcx, [rax+0C0h]
add rcx, 1
mov [rax+0C0h], rcx
loc_72AEB:
mov [rbp+var_11], 0
jmp short loc_72AF5
loc_72AF1:
mov [rbp+var_11], 1
loc_72AF5:
mov al, [rbp+var_11]
mov [rbp+var_39], al
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_72B16
mov al, [rbp+var_39]
add rsp, 40h
pop rbp
retn
loc_72B16:
call ___stack_chk_fail
| char ma_write_static_record(_DWORD *a1, long long a2, double a3)
{
long long v3; // rdx
unsigned int v5; // [rsp+8h] [rbp-38h]
unsigned int v6; // [rsp+Ch] [rbp-34h]
long long v7; // [rsp+10h] [rbp-30h]
unsigned int v9; // [rsp+30h] [rbp-10h] BYREF
unsigned long long v10; // [rsp+38h] [rbp-8h]
v10 = __readfsqword(0x28u);
if ( *(_QWORD *)(*(_QWORD *)a1 + 200LL) != -1LL && !*((_BYTE *)a1 + 1665) )
{
v7 = *(_QWORD *)(*(_QWORD *)a1 + 200LL);
a1[358] = 1;
if ( !(*(long long ( **)(_DWORD *, unsigned int *, _QWORD, long long, long long))(*(_QWORD *)a1 + 1760LL))(
a1,
&v9,
*(unsigned int *)(*(_QWORD *)a1 + 992LL),
*(_QWORD *)(*(_QWORD *)a1 + 200LL) + 1LL,
4LL) )
{
*(_QWORD *)(*(_QWORD *)a1 + 200LL) = ma_rec_pos(*(_QWORD *)a1, &v9, v3);
--*(_QWORD *)(*((_QWORD *)a1 + 4) + 8LL);
*(_QWORD *)(*((_QWORD *)a1 + 4) + 16LL) -= *(_QWORD *)(*(_QWORD *)a1 + 928LL);
if ( !(*(long long ( **)(_DWORD *, long long, _QWORD, long long, long long))(*(_QWORD *)a1 + 1768LL))(
a1,
a2,
*(_QWORD *)(*(_QWORD *)a1 + 920LL),
v7,
4LL) )
return 0;
}
return 1;
}
if ( *(_QWORD *)(*((_QWORD *)a1 + 4) + 40LL) <= *(_QWORD *)(*(_QWORD *)a1 + 872LL)
- *(_QWORD *)(*(_QWORD *)a1 + 928LL) )
{
if ( (a1[391] & 0x10) != 0 )
{
if ( (unsigned int)my_b_write_0(a1 + 302, a2, *(_QWORD *)(*(_QWORD *)a1 + 920LL)) )
return 1;
if ( *(_QWORD *)(*(_QWORD *)a1 + 928LL) != *(_QWORD *)(*(_QWORD *)a1 + 920LL) )
{
v6 = *(_DWORD *)(*(_QWORD *)a1 + 928LL) - *(_DWORD *)(*(_QWORD *)a1 + 920LL);
memset(&v9, 0LL, v6);
if ( (unsigned int)my_b_write_0(a1 + 302, &v9, v6) )
return 1;
}
}
else
{
a1[358] = 1;
if ( (*(long long ( **)(_DWORD *, long long, _QWORD, _QWORD, _QWORD))(*(_QWORD *)a1 + 1768LL))(
a1,
a2,
*(_QWORD *)(*(_QWORD *)a1 + 920LL),
*(_QWORD *)(*((_QWORD *)a1 + 4) + 40LL),
*(_QWORD *)(*(_QWORD *)a1 + 1992LL)) )
{
return 1;
}
if ( *(_QWORD *)(*(_QWORD *)a1 + 928LL) != *(_QWORD *)(*(_QWORD *)a1 + 920LL) )
{
v5 = *(_DWORD *)(*(_QWORD *)a1 + 928LL) - *(_DWORD *)(*(_QWORD *)a1 + 920LL);
memset(&v9, 0LL, v5);
if ( (*(long long ( **)(_DWORD *, unsigned int *, _QWORD, _QWORD, _QWORD))(*(_QWORD *)a1 + 1768LL))(
a1,
&v9,
v5,
*(_QWORD *)(*(_QWORD *)a1 + 920LL) + *(_QWORD *)(*((_QWORD *)a1 + 4) + 40LL),
*(_QWORD *)(*(_QWORD *)a1 + 1992LL)) )
{
return 1;
}
}
}
*(_QWORD *)(*((_QWORD *)a1 + 4) + 40LL) += *(_QWORD *)(*(_QWORD *)a1 + 928LL);
++*(_QWORD *)(*(_QWORD *)a1 + 192LL);
return 0;
}
*(_DWORD *)my_thread_var(a3) = 135;
return 2;
}
| _ma_write_static_record:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x20],RDI
MOV qword ptr [RBP + -0x28],RSI
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
CMP qword ptr [RAX + 0xc8],-0x1
JZ 0x001728c3
MOV RAX,qword ptr [RBP + -0x20]
CMP byte ptr [RAX + 0x681],0x0
JNZ 0x001728c3
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0xc8]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x598],0x1
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x6e0]
MOV RDI,qword ptr [RBP + -0x20]
LEA RSI,[RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX]
MOV ECX,dword ptr [RCX + 0x3e0]
MOV EDX,ECX
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX]
MOV RCX,qword ptr [RCX + 0xc8]
ADD RCX,0x1
MOV R8D,0x4
CALL RAX
CMP RAX,0x0
JZ 0x0017282d
JMP 0x00172af1
LAB_0017282d:
MOV RAX,qword ptr [RBP + -0x20]
MOV RDI,qword ptr [RAX]
LEA RSI,[RBP + -0x10]
CALL 0x0016a840
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX + 0xc8],RCX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RAX + 0x8]
ADD RCX,-0x1
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x3a0]
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RAX + 0x10]
SUB RCX,RDX
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x6e8]
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX]
MOV RDX,qword ptr [RCX + 0x398]
MOV RCX,qword ptr [RBP + -0x30]
MOV R8D,0x4
CALL RAX
CMP RAX,0x0
JZ 0x001728be
JMP 0x00172af1
LAB_001728be:
JMP 0x00172aeb
LAB_001728c3:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x20]
MOV RAX,qword ptr [RAX + 0x28]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX]
MOV RCX,qword ptr [RCX + 0x368]
MOV RDX,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RDX]
SUB RCX,qword ptr [RDX + 0x3a0]
CMP RAX,RCX
JBE 0x00172904
CALL 0x001f55f0
MOV dword ptr [RAX],0x87
MOV byte ptr [RBP + -0x11],0x2
JMP 0x00172af5
LAB_00172904:
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RAX + 0x61c]
AND EAX,0x10
CMP EAX,0x0
JZ 0x001729bd
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x4b8
MOV RSI,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x398]
CALL 0x00172b20
CMP EAX,0x0
JZ 0x00172946
JMP 0x00172af1
LAB_00172946:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x3a0]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX]
CMP RAX,qword ptr [RCX + 0x398]
JZ 0x001729b8
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x3a0]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX]
SUB RAX,qword ptr [RCX + 0x398]
MOV dword ptr [RBP + -0x34],EAX
LEA RDI,[RBP + -0x10]
MOV EAX,dword ptr [RBP + -0x34]
MOV EDX,EAX
XOR ESI,ESI
CALL 0x0012a2b0
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x4b8
LEA RSI,[RBP + -0x10]
MOV EAX,dword ptr [RBP + -0x34]
MOV EDX,EAX
CALL 0x00172b20
CMP EAX,0x0
JZ 0x001729b6
JMP 0x00172af1
LAB_001729b6:
JMP 0x001729b8
LAB_001729b8:
JMP 0x00172ab4
LAB_001729bd:
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x598],0x1
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x6e8]
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX]
MOV RDX,qword ptr [RCX + 0x398]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX + 0x20]
MOV RCX,qword ptr [RCX + 0x28]
MOV R8,qword ptr [RBP + -0x20]
MOV R8,qword ptr [R8]
MOV R8,qword ptr [R8 + 0x7c8]
CALL RAX
CMP RAX,0x0
JZ 0x00172a16
JMP 0x00172af1
LAB_00172a16:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x3a0]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX]
CMP RAX,qword ptr [RCX + 0x398]
JZ 0x00172ab2
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x3a0]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX]
SUB RAX,qword ptr [RCX + 0x398]
MOV dword ptr [RBP + -0x38],EAX
LEA RDI,[RBP + -0x10]
MOV EAX,dword ptr [RBP + -0x38]
MOV EDX,EAX
XOR ESI,ESI
CALL 0x0012a2b0
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x6e8]
MOV RDI,qword ptr [RBP + -0x20]
LEA RSI,[RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x38]
MOV EDX,ECX
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX + 0x20]
MOV RCX,qword ptr [RCX + 0x28]
MOV R8,qword ptr [RBP + -0x20]
MOV R8,qword ptr [R8]
ADD RCX,qword ptr [R8 + 0x398]
MOV R8,qword ptr [RBP + -0x20]
MOV R8,qword ptr [R8]
MOV R8,qword ptr [R8 + 0x7c8]
CALL RAX
CMP RAX,0x0
JZ 0x00172ab0
JMP 0x00172af1
LAB_00172ab0:
JMP 0x00172ab2
LAB_00172ab2:
JMP 0x00172ab4
LAB_00172ab4:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RAX + 0x3a0]
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x20]
ADD RCX,qword ptr [RAX + 0x28]
MOV qword ptr [RAX + 0x28],RCX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RAX + 0xc0]
ADD RCX,0x1
MOV qword ptr [RAX + 0xc0],RCX
LAB_00172aeb:
MOV byte ptr [RBP + -0x11],0x0
JMP 0x00172af5
LAB_00172af1:
MOV byte ptr [RBP + -0x11],0x1
LAB_00172af5:
MOV AL,byte ptr [RBP + -0x11]
MOV byte ptr [RBP + -0x39],AL
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x00172b16
MOV AL,byte ptr [RBP + -0x39]
ADD RSP,0x40
POP RBP
RET
LAB_00172b16:
CALL 0x0012a260
|
int8 _ma_write_static_record(long *param_1,int8 param_2)
{
int8 uVar1;
int iVar2;
uint uVar3;
long lVar4;
int8 uVar5;
int4 *puVar6;
long in_FS_OFFSET;
int1 local_19;
int1 local_18 [8];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
if ((*(long *)(*param_1 + 200) == -1) || (*(char *)((long)param_1 + 0x681) != '\0')) {
if ((ulong)(*(long *)(*param_1 + 0x368) - *(long *)(*param_1 + 0x3a0)) <
*(ulong *)(param_1[4] + 0x28)) {
puVar6 = (int4 *)_my_thread_var();
*puVar6 = 0x87;
local_19 = 2;
goto LAB_00172af5;
}
if ((*(uint *)((long)param_1 + 0x61c) & 0x10) == 0) {
*(int4 *)(param_1 + 0xb3) = 1;
lVar4 = (**(code **)(*param_1 + 0x6e8))
(param_1,param_2,*(int8 *)(*param_1 + 0x398),
*(int8 *)(param_1[4] + 0x28),*(int8 *)(*param_1 + 0x7c8));
if (lVar4 == 0) {
if (*(long *)(*param_1 + 0x3a0) != *(long *)(*param_1 + 0x398)) {
uVar3 = (int)*(int8 *)(*param_1 + 0x3a0) - (int)*(int8 *)(*param_1 + 0x398);
memset(local_18,0,(ulong)uVar3);
lVar4 = (**(code **)(*param_1 + 0x6e8))
(param_1,local_18,uVar3,
*(long *)(param_1[4] + 0x28) + *(long *)(*param_1 + 0x398),
*(int8 *)(*param_1 + 0x7c8));
if (lVar4 != 0) goto LAB_00172af1;
}
goto LAB_00172ab4;
}
}
else {
iVar2 = my_b_write(param_1 + 0x97,param_2,*(int8 *)(*param_1 + 0x398));
if (iVar2 == 0) {
if (*(long *)(*param_1 + 0x3a0) != *(long *)(*param_1 + 0x398)) {
uVar3 = (int)*(int8 *)(*param_1 + 0x3a0) - (int)*(int8 *)(*param_1 + 0x398);
memset(local_18,0,(ulong)uVar3);
iVar2 = my_b_write(param_1 + 0x97,local_18,uVar3);
if (iVar2 != 0) goto LAB_00172af1;
}
LAB_00172ab4:
*(long *)(param_1[4] + 0x28) = *(long *)(*param_1 + 0x3a0) + *(long *)(param_1[4] + 0x28);
*(long *)(*param_1 + 0xc0) = *(long *)(*param_1 + 0xc0) + 1;
goto LAB_00172aeb;
}
}
}
else {
uVar1 = *(int8 *)(*param_1 + 200);
*(int4 *)(param_1 + 0xb3) = 1;
lVar4 = (**(code **)(*param_1 + 0x6e0))
(param_1,local_18,*(int4 *)(*param_1 + 0x3e0),
*(long *)(*param_1 + 200) + 1,4);
if (lVar4 == 0) {
uVar5 = _ma_rec_pos(*param_1,local_18);
*(int8 *)(*param_1 + 200) = uVar5;
*(long *)(param_1[4] + 8) = *(long *)(param_1[4] + 8) + -1;
*(long *)(param_1[4] + 0x10) = *(long *)(param_1[4] + 0x10) - *(long *)(*param_1 + 0x3a0);
lVar4 = (**(code **)(*param_1 + 0x6e8))
(param_1,param_2,*(int8 *)(*param_1 + 0x398),uVar1,4);
if (lVar4 == 0) {
LAB_00172aeb:
local_19 = 0;
goto LAB_00172af5;
}
}
}
LAB_00172af1:
local_19 = 1;
LAB_00172af5:
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_19);
}
| |
48,290 | my_mb_wc_utf8mb3_quick | eloqsql/strings/ctype-utf8.h | static inline int
my_mb_wc_utf8mb3_quick(my_wc_t * pwc, const uchar *s, const uchar *e)
{
uchar c;
if (s >= e)
return MY_CS_TOOSMALL;
c= s[0];
if (c < 0x80)
{
*pwc = c;
return 1;
}
else if (c < 0xc2)
return MY_CS_ILSEQ;
else if (c < 0xe0)
{
if (s+2 > e) /* We need 2 characters */
return MY_CS_TOOSMALL2;
if (!(IS_CONTINUATION_BYTE(s[1])))
return MY_CS_ILSEQ;
*pwc= UTF8MB2_CODE(c, s[1]);
return 2;
}
else if (c < 0xf0)
{
if (s+3 > e) /* We need 3 characters */
return MY_CS_TOOSMALL3;
if (!IS_UTF8MB3_STEP2(c, s[1], s[2]))
return MY_CS_ILSEQ;
*pwc= UTF8MB3_CODE(c, s[1], s[2]);
return 3;
}
return MY_CS_ILSEQ;
} | O0 | c | my_mb_wc_utf8mb3_quick:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jb 0x65a36
movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B
jmp 0x65bb3
movq -0x18(%rbp), %rax
movb (%rax), %al
movb %al, -0x21(%rbp)
movzbl -0x21(%rbp), %eax
cmpl $0x80, %eax
jge 0x65a63
movzbl -0x21(%rbp), %eax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x65bb3
movzbl -0x21(%rbp), %eax
cmpl $0xc2, %eax
jge 0x65a7a
movl $0x0, -0x4(%rbp)
jmp 0x65bb3
movzbl -0x21(%rbp), %eax
cmpl $0xe0, %eax
jge 0x65af0
movq -0x18(%rbp), %rax
addq $0x2, %rax
cmpq -0x20(%rbp), %rax
jbe 0x65a9f
movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A
jmp 0x65bb3
movq -0x18(%rbp), %rax
movzbl 0x1(%rax), %eax
xorl $0x80, %eax
cmpl $0x40, %eax
jl 0x65abd
movl $0x0, -0x4(%rbp)
jmp 0x65bb3
movzbl -0x21(%rbp), %eax
andl $0x1f, %eax
movslq %eax, %rcx
shlq $0x6, %rcx
movq -0x18(%rbp), %rax
movzbl 0x1(%rax), %eax
xorl $0x80, %eax
cltq
orq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movl $0x2, -0x4(%rbp)
jmp 0x65bb3
movzbl -0x21(%rbp), %eax
cmpl $0xf0, %eax
jge 0x65ba6
movq -0x18(%rbp), %rax
addq $0x3, %rax
cmpq -0x20(%rbp), %rax
jbe 0x65b19
movl $0xffffff99, -0x4(%rbp) # imm = 0xFFFFFF99
jmp 0x65bb3
movq -0x18(%rbp), %rax
movzbl 0x1(%rax), %eax
xorl $0x80, %eax
cmpl $0x40, %eax
jge 0x65b57
movq -0x18(%rbp), %rax
movzbl 0x2(%rax), %eax
xorl $0x80, %eax
cmpl $0x40, %eax
jge 0x65b57
movzbl -0x21(%rbp), %eax
cmpl $0xe1, %eax
jge 0x65b60
movq -0x18(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0xa0, %eax
jge 0x65b60
movl $0x0, -0x4(%rbp)
jmp 0x65bb3
movzbl -0x21(%rbp), %eax
andl $0xf, %eax
movslq %eax, %rcx
shlq $0xc, %rcx
movq -0x18(%rbp), %rax
movzbl 0x1(%rax), %eax
xorl $0x80, %eax
cltq
shlq $0x6, %rax
orq %rax, %rcx
movq -0x18(%rbp), %rax
movzbl 0x2(%rax), %eax
xorl $0x80, %eax
cltq
orq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movl $0x3, -0x4(%rbp)
jmp 0x65bb3
jmp 0x65ba8
jmp 0x65baa
jmp 0x65bac
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax,%rax)
| my_mb_wc_utf8mb3_quick_0:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jb short loc_65A36
mov [rbp+var_4], 0FFFFFF9Bh
jmp loc_65BB3
loc_65A36:
mov rax, [rbp+var_18]
mov al, [rax]
mov [rbp+var_21], al
movzx eax, [rbp+var_21]
cmp eax, 80h
jge short loc_65A63
movzx eax, [rbp+var_21]
mov ecx, eax
mov rax, [rbp+var_10]
mov [rax], rcx
mov [rbp+var_4], 1
jmp loc_65BB3
loc_65A63:
movzx eax, [rbp+var_21]
cmp eax, 0C2h
jge short loc_65A7A
mov [rbp+var_4], 0
jmp loc_65BB3
loc_65A7A:
movzx eax, [rbp+var_21]
cmp eax, 0E0h
jge short loc_65AF0
mov rax, [rbp+var_18]
add rax, 2
cmp rax, [rbp+var_20]
jbe short loc_65A9F
mov [rbp+var_4], 0FFFFFF9Ah
jmp loc_65BB3
loc_65A9F:
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+1]
xor eax, 80h
cmp eax, 40h ; '@'
jl short loc_65ABD
mov [rbp+var_4], 0
jmp loc_65BB3
loc_65ABD:
movzx eax, [rbp+var_21]
and eax, 1Fh
movsxd rcx, eax
shl rcx, 6
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+1]
xor eax, 80h
cdqe
or rcx, rax
mov rax, [rbp+var_10]
mov [rax], rcx
mov [rbp+var_4], 2
jmp loc_65BB3
loc_65AF0:
movzx eax, [rbp+var_21]
cmp eax, 0F0h
jge loc_65BA6
mov rax, [rbp+var_18]
add rax, 3
cmp rax, [rbp+var_20]
jbe short loc_65B19
mov [rbp+var_4], 0FFFFFF99h
jmp loc_65BB3
loc_65B19:
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+1]
xor eax, 80h
cmp eax, 40h ; '@'
jge short loc_65B57
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+2]
xor eax, 80h
cmp eax, 40h ; '@'
jge short loc_65B57
movzx eax, [rbp+var_21]
cmp eax, 0E1h
jge short loc_65B60
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+1]
cmp eax, 0A0h
jge short loc_65B60
loc_65B57:
mov [rbp+var_4], 0
jmp short loc_65BB3
loc_65B60:
movzx eax, [rbp+var_21]
and eax, 0Fh
movsxd rcx, eax
shl rcx, 0Ch
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+1]
xor eax, 80h
cdqe
shl rax, 6
or rcx, rax
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+2]
xor eax, 80h
cdqe
or rcx, rax
mov rax, [rbp+var_10]
mov [rax], rcx
mov [rbp+var_4], 3
jmp short loc_65BB3
loc_65BA6:
jmp short $+2
loc_65BA8:
jmp short $+2
loc_65BAA:
jmp short $+2
loc_65BAC:
mov [rbp+var_4], 0
loc_65BB3:
mov eax, [rbp+var_4]
pop rbp
retn
| long long my_mb_wc_utf8mb3_quick_0(unsigned long long *a1, unsigned __int8 *a2, unsigned long long a3)
{
unsigned __int8 v4; // [rsp+1h] [rbp-21h]
if ( (unsigned long long)a2 < a3 )
{
v4 = *a2;
if ( *a2 >= 0x80u )
{
if ( v4 >= 0xC2u )
{
if ( v4 >= 0xE0u )
{
if ( v4 >= 0xF0u )
{
return 0;
}
else if ( (unsigned long long)(a2 + 3) <= a3 )
{
if ( (a2[1] ^ 0x80) < 64 && (a2[2] ^ 0x80) < 64 && (v4 >= 0xE1u || a2[1] >= 0xA0u) )
{
*a1 = a2[2] ^ 0x80u | ((long long)(a2[1] ^ 0x80u) << 6) | ((unsigned long long)(v4 & 0xF) << 12);
return 3;
}
else
{
return 0;
}
}
else
{
return (unsigned int)-103;
}
}
else if ( (unsigned long long)(a2 + 2) <= a3 )
{
if ( (a2[1] ^ 0x80) < 64 )
{
*a1 = a2[1] ^ 0x80u | ((unsigned long long)(v4 & 0x1F) << 6);
return 2;
}
else
{
return 0;
}
}
else
{
return (unsigned int)-102;
}
}
else
{
return 0;
}
}
else
{
*a1 = v4;
return 1;
}
}
else
{
return (unsigned int)-101;
}
}
| my_mb_wc_utf8mb3_quick:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JC 0x00165a36
MOV dword ptr [RBP + -0x4],0xffffff9b
JMP 0x00165bb3
LAB_00165a36:
MOV RAX,qword ptr [RBP + -0x18]
MOV AL,byte ptr [RAX]
MOV byte ptr [RBP + -0x21],AL
MOVZX EAX,byte ptr [RBP + -0x21]
CMP EAX,0x80
JGE 0x00165a63
MOVZX EAX,byte ptr [RBP + -0x21]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00165bb3
LAB_00165a63:
MOVZX EAX,byte ptr [RBP + -0x21]
CMP EAX,0xc2
JGE 0x00165a7a
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00165bb3
LAB_00165a7a:
MOVZX EAX,byte ptr [RBP + -0x21]
CMP EAX,0xe0
JGE 0x00165af0
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x2
CMP RAX,qword ptr [RBP + -0x20]
JBE 0x00165a9f
MOV dword ptr [RBP + -0x4],0xffffff9a
JMP 0x00165bb3
LAB_00165a9f:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x1]
XOR EAX,0x80
CMP EAX,0x40
JL 0x00165abd
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00165bb3
LAB_00165abd:
MOVZX EAX,byte ptr [RBP + -0x21]
AND EAX,0x1f
MOVSXD RCX,EAX
SHL RCX,0x6
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x1]
XOR EAX,0x80
CDQE
OR RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV dword ptr [RBP + -0x4],0x2
JMP 0x00165bb3
LAB_00165af0:
MOVZX EAX,byte ptr [RBP + -0x21]
CMP EAX,0xf0
JGE 0x00165ba6
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x3
CMP RAX,qword ptr [RBP + -0x20]
JBE 0x00165b19
MOV dword ptr [RBP + -0x4],0xffffff99
JMP 0x00165bb3
LAB_00165b19:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x1]
XOR EAX,0x80
CMP EAX,0x40
JGE 0x00165b57
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x2]
XOR EAX,0x80
CMP EAX,0x40
JGE 0x00165b57
MOVZX EAX,byte ptr [RBP + -0x21]
CMP EAX,0xe1
JGE 0x00165b60
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x1]
CMP EAX,0xa0
JGE 0x00165b60
LAB_00165b57:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00165bb3
LAB_00165b60:
MOVZX EAX,byte ptr [RBP + -0x21]
AND EAX,0xf
MOVSXD RCX,EAX
SHL RCX,0xc
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x1]
XOR EAX,0x80
CDQE
SHL RAX,0x6
OR RCX,RAX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x2]
XOR EAX,0x80
CDQE
OR RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV dword ptr [RBP + -0x4],0x3
JMP 0x00165bb3
LAB_00165ba6:
JMP 0x00165ba8
LAB_00165ba8:
JMP 0x00165baa
LAB_00165baa:
JMP 0x00165bac
LAB_00165bac:
MOV dword ptr [RBP + -0x4],0x0
LAB_00165bb3:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4 my_mb_wc_utf8mb3_quick(ulong *param_1,byte *param_2,byte *param_3)
{
byte bVar1;
int4 local_c;
if (param_2 < param_3) {
bVar1 = *param_2;
if (bVar1 < 0x80) {
*param_1 = (ulong)bVar1;
local_c = 1;
}
else if (bVar1 < 0xc2) {
local_c = 0;
}
else if (bVar1 < 0xe0) {
if (param_3 < param_2 + 2) {
local_c = 0xffffff9a;
}
else if ((param_2[1] ^ 0x80) < 0x40) {
*param_1 = (long)(int)(bVar1 & 0x1f) << 6 | (long)(int)(param_2[1] ^ 0x80);
local_c = 2;
}
else {
local_c = 0;
}
}
else if (bVar1 < 0xf0) {
if (param_3 < param_2 + 3) {
local_c = 0xffffff99;
}
else if ((((param_2[1] ^ 0x80) < 0x40) && ((param_2[2] ^ 0x80) < 0x40)) &&
((0xe0 < bVar1 || (0x9f < param_2[1])))) {
*param_1 = (long)(int)(bVar1 & 0xf) << 0xc | (long)(int)(param_2[1] ^ 0x80) << 6 |
(long)(int)(param_2[2] ^ 0x80);
local_c = 3;
}
else {
local_c = 0;
}
}
else {
local_c = 0;
}
}
else {
local_c = 0xffffff9b;
}
return local_c;
}
| |
48,291 | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::parse<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(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<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool) | monkey531[P]llama/common/json.hpp | JSON_HEDLEY_WARN_UNUSED_RESULT
static basic_json parse(InputType&& i,
const parser_callback_t cb = nullptr,
const bool allow_exceptions = true,
const bool ignore_comments = false)
{
basic_json result;
parser(detail::input_adapter(std::forward<InputType>(i)), cb, allow_exceptions, ignore_comments).parse(true, result);
return result;
} | O0 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::parse<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(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<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool):
subq $0x158, %rsp # imm = 0x158
movq %rdx, 0x8(%rsp)
movq %rdi, 0x10(%rsp)
movb %r8b, %al
movq %rdi, %r8
movq %r8, 0x18(%rsp)
movq %rdi, 0x150(%rsp)
movq %rsi, 0x148(%rsp)
movq %rdx, 0x140(%rsp)
andb $0x1, %cl
movb %cl, 0x13f(%rsp)
andb $0x1, %al
movb %al, 0x13e(%rsp)
movb $0x0, 0x13d(%rsp)
xorl %eax, %eax
movl %eax, %esi
callq 0x9cbf0
movq 0x148(%rsp), %rdi
callq 0x9cd10
movq %rdx, 0x20(%rsp)
movq %rax, 0x28(%rsp)
jmp 0x15fb91
movq 0x8(%rsp), %rsi
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
movq %rcx, 0x60(%rsp)
movq %rax, 0x68(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x9cd40
jmp 0x15fbb6
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movzbl 0x13e(%rsp), %r9d
movzbl 0x13f(%rsp), %r8d
andl $0x1, %r8d
andl $0x1, %r9d
leaq 0x70(%rsp), %rdi
leaq 0x30(%rsp), %rcx
callq 0x9cc30
jmp 0x15fbeb
movq 0x10(%rsp), %rdx
leaq 0x70(%rsp), %rdi
movl $0x1, %esi
callq 0x9cdf0
jmp 0x15fc01
leaq 0x70(%rsp), %rdi
callq 0x9d4d0
leaq 0x30(%rsp), %rdi
callq 0x9cbe0
movb $0x1, 0x13d(%rsp)
testb $0x1, 0x13d(%rsp)
jne 0x15fc77
jmp 0x15fc6d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x58(%rsp)
movl %eax, 0x54(%rsp)
jmp 0x15fc84
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x58(%rsp)
movl %eax, 0x54(%rsp)
jmp 0x15fc61
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x58(%rsp)
movl %eax, 0x54(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x9d4d0
leaq 0x30(%rsp), %rdi
callq 0x9cbe0
jmp 0x15fc84
movq 0x10(%rsp), %rdi
callq 0x9cbb0
movq 0x18(%rsp), %rax
addq $0x158, %rsp # imm = 0x158
retq
movq 0x10(%rsp), %rdi
callq 0x9cbb0
movq 0x58(%rsp), %rdi
callq 0x59b80
nopl (%rax,%rax)
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5parseIS9_EESD_OT_St8functionIFbiNS0_6detail13parse_event_tERSD_EEbb:
sub rsp, 158h
mov [rsp+158h+var_150], rdx
mov [rsp+158h+var_148], rdi
mov al, r8b
mov r8, rdi
mov [rsp+158h+var_140], r8
mov [rsp+158h+var_8], rdi
mov [rsp+158h+var_10], rsi
mov [rsp+158h+var_18], rdx
and cl, 1
mov [rsp+158h+var_19], cl
and al, 1
mov [rsp+158h+var_1A], al
mov [rsp+158h+var_1B], 0
xor eax, eax
mov esi, eax
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(decltype(nullptr))
mov rdi, [rsp+158h+var_10]
call _ZN8nlohmann16json_abi_v3_11_36detail13input_adapterINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS1_36container_input_adapter_factory_impl31container_input_adapter_factoryIT_vE12adapter_typeERKSB_; nlohmann::json_abi_v3_11_3::detail::input_adapter<std::string>(std::string const&)
mov [rsp+158h+var_138], rdx
mov [rsp+158h+var_130], rax
jmp short $+2
loc_15FB91:
mov rsi, [rsp+158h+var_150]
mov rax, [rsp+158h+var_138]
mov rcx, [rsp+158h+var_130]
mov [rsp+158h+var_F8], rcx
mov [rsp+158h+var_F0], rax
lea rdi, [rsp+158h+var_128]
call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEC2ERKSJ_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::function(std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)> const&)
jmp short $+2
loc_15FBB6:
mov rsi, [rsp+158h+var_F8]
mov rdx, [rsp+158h+var_F0]
movzx r9d, [rsp+158h+var_1A]
movzx r8d, [rsp+158h+var_19]
and r8d, 1
and r9d, 1
lea rdi, [rsp+158h+var_E8]
lea rcx, [rsp+158h+var_128]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6parserINS0_6detail22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS9_EEEEEENSF_6parserISD_T_EESO_St8functionIFbiNSF_13parse_event_tERSD_EEbb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool,bool)
jmp short $+2
loc_15FBEB:
mov rdx, [rsp+158h+var_148]
lea rdi, [rsp+158h+var_E8]
mov esi, 1
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5parseEbRSF_; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parse(bool,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)
jmp short $+2
loc_15FC01:
lea rdi, [rsp+158h+var_E8]
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~parser()
lea rdi, [rsp+158h+var_128]
call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEED2Ev; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::~function()
mov [rsp+158h+var_1B], 1
test [rsp+158h+var_1B], 1
jnz short loc_15FC77
jmp short loc_15FC6D
mov rcx, rax
mov eax, edx
mov [rsp+arg_50], rcx
mov [rsp+arg_4C], eax
jmp short loc_15FC84
mov rcx, rax
mov eax, edx
mov [rsp+arg_50], rcx
mov [rsp+arg_4C], eax
jmp short loc_15FC61
mov rcx, rax
mov eax, edx
mov [rsp+arg_50], rcx
mov [rsp+arg_4C], eax
lea rdi, [rsp+arg_68]
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~parser()
loc_15FC61:
lea rdi, [rsp+arg_28]
call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEED2Ev; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::~function()
jmp short loc_15FC84
loc_15FC6D:
mov rdi, [rsp+158h+var_148]
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_15FC77:
mov rax, [rsp+158h+var_140]
add rsp, 158h
retn
loc_15FC84:
mov rdi, [rsp+arg_8]
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()
mov rdi, [rsp+arg_50]
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::parse<std::string>(
long long a1,
long long a2,
long long a3,
char a4,
char a5)
{
long long v5; // rdx
_BYTE v8[48]; // [rsp+30h] [rbp-128h] BYREF
long long v9; // [rsp+60h] [rbp-F8h]
long long v10; // [rsp+68h] [rbp-F0h]
_BYTE v11[206]; // [rsp+70h] [rbp-E8h] BYREF
char v12; // [rsp+13Eh] [rbp-1Ah]
char v13; // [rsp+13Fh] [rbp-19h]
long long v14; // [rsp+140h] [rbp-18h]
long long v15; // [rsp+148h] [rbp-10h]
long long v16; // [rsp+150h] [rbp-8h]
v16 = a1;
v15 = a2;
v14 = a3;
v13 = a4 & 1;
v12 = a5 & 1;
v11[205] = 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>::basic_json(a1);
v9 = nlohmann::json_abi_v3_11_3::detail::input_adapter<std::string>(a2);
v10 = v5;
std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::function(
(std::_Function_base *)v8,
a3);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(
(long long)v11,
v9,
v10,
(long long)v8,
v13 & 1,
v12 & 1);
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parse(
(long long)v11,
1,
a1);
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~parser((std::_Function_base *)v11);
std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::~function((std::_Function_base *)v8);
return a1;
}
| |||
48,292 | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::parse<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(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<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool) | monkey531[P]llama/common/json.hpp | JSON_HEDLEY_WARN_UNUSED_RESULT
static basic_json parse(InputType&& i,
const parser_callback_t cb = nullptr,
const bool allow_exceptions = true,
const bool ignore_comments = false)
{
basic_json result;
parser(detail::input_adapter(std::forward<InputType>(i)), cb, allow_exceptions, ignore_comments).parse(true, result);
return result;
} | O2 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::parse<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(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<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movl %r8d, %ebp
movl %ecx, %r14d
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, %rbx
xorl %esi, %esi
callq 0x3c616
movq (%r12), %r15
movq 0x8(%r12), %r12
movq %rsp, %rdi
movq %r13, %rsi
callq 0x3c6b6
addq %r15, %r12
movzbl %r14b, %r8d
movzbl %bpl, %r9d
leaq 0x20(%rsp), %rdi
movq %rsp, %rcx
movq %r15, %rsi
movq %r12, %rdx
callq 0x3c636
leaq 0x20(%rsp), %rdi
pushq $0x1
popq %rsi
movq %rbx, %rdx
callq 0x3c6fc
leaq 0x20(%rsp), %rdi
callq 0x3cac6
movq %rsp, %rdi
callq 0x47048
movq %rbx, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x3cac6
jmp 0x3c5e4
movq %rax, %r14
movq %rsp, %rdi
callq 0x47048
jmp 0x3c5f1
movq %rax, %r14
movq %rbx, %rdi
callq 0x3c602
movq %r14, %rdi
callq 0x23f10
nop
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5parseIRKS9_EESD_OT_St8functionIFbiNS0_6detail13parse_event_tERSD_EEbb:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0E8h
mov ebp, r8d
mov r14d, ecx
mov r13, rdx
mov r12, rsi
mov rbx, rdi
xor esi, esi
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(decltype(nullptr))
mov r15, [r12]
mov r12, [r12+8]
mov rdi, rsp
mov rsi, r13
call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEC2ERKSJ_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::function(std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)> const&)
add r12, r15
movzx r8d, r14b
movzx r9d, bpl
lea rdi, [rsp+118h+var_F8]
mov rcx, rsp
mov rsi, r15
mov rdx, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6parserINS0_6detail22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS9_EEEEEENSF_6parserISD_T_EESO_St8functionIFbiNSF_13parse_event_tERSD_EEbb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool,bool)
lea rdi, [rsp+118h+var_F8]
push 1
pop rsi
mov rdx, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5parseEbRSF_; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parse(bool,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)
lea rdi, [rsp+118h+var_F8]; this
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~parser()
mov rdi, rsp; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
mov rax, rbx
add rsp, 0E8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
lea rdi, [rsp+arg_18]; this
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~parser()
jmp short loc_3C5E4
mov r14, rax
loc_3C5E4:
mov rdi, rsp; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
jmp short loc_3C5F1
mov r14, rax
loc_3C5F1:
mov rdi, rbx
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()
mov rdi, r14
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::parse<std::string const&>(
long long a1,
long long *a2,
long long a3,
unsigned __int8 a4,
unsigned __int8 a5)
{
long long v8; // r15
long long v9; // r12
int v10; // ecx
int v11; // r8d
int v12; // r9d
_DWORD v14[8]; // [rsp+0h] [rbp-118h] BYREF
int v15; // [rsp+20h] [rbp-F8h] BYREF
char v16; // [rsp+28h] [rbp-F0h]
int v17; // [rsp+30h] [rbp-E8h]
int v18; // [rsp+38h] [rbp-E0h]
int v19; // [rsp+40h] [rbp-D8h]
char v20; // [rsp+48h] [rbp-D0h]
int v21; // [rsp+50h] [rbp-C8h]
int v22; // [rsp+58h] [rbp-C0h]
int v23; // [rsp+60h] [rbp-B8h]
char v24; // [rsp+68h] [rbp-B0h]
int v25; // [rsp+70h] [rbp-A8h]
int v26; // [rsp+78h] [rbp-A0h]
int v27; // [rsp+80h] [rbp-98h]
char v28; // [rsp+88h] [rbp-90h]
int v29; // [rsp+90h] [rbp-88h]
int v30; // [rsp+98h] [rbp-80h]
int v31; // [rsp+A0h] [rbp-78h]
int v32; // [rsp+A8h] [rbp-70h]
int v33; // [rsp+B0h] [rbp-68h]
int v34; // [rsp+B8h] [rbp-60h]
char v35; // [rsp+C0h] [rbp-58h]
int v36; // [rsp+C8h] [rbp-50h]
int v37; // [rsp+D0h] [rbp-48h]
int v38; // [rsp+D8h] [rbp-40h]
int v39; // [rsp+E0h] [rbp-38h]
int v40; // [rsp+E8h] [rbp-30h]
int v41; // [rsp+F0h] [rbp-28h]
int v42; // [rsp+F8h] [rbp-20h]
char v43; // [rsp+100h] [rbp-18h]
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
a1,
0LL);
v8 = *a2;
v9 = a2[1];
std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::function(
v14,
a3);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(
&v15,
v8,
v8 + v9,
v14,
a4,
a5);
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parse(
(unsigned int)&v15,
1,
a1,
v10,
v11,
v12,
v14[0],
v14[2],
v14[4],
v14[6],
v15,
v16,
v17,
v18,
v19,
v20,
v21,
v22,
v23,
v24,
v25,
v26,
v27,
v28,
v29,
v30,
v31,
v32,
v33,
v34,
v35,
v36,
v37,
v38,
v39,
v40,
v41,
v42,
v43);
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~parser((std::_Function_base *)&v15);
std::_Function_base::~_Function_base((std::_Function_base *)v14);
return a1;
}
| parse<std::__cxx11::string_const&>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xe8
MOV EBP,R8D
MOV R14D,ECX
MOV R13,RDX
MOV R12,RSI
MOV RBX,RDI
XOR ESI,ESI
CALL 0x0013c616
MOV R15,qword ptr [R12]
MOV R12,qword ptr [R12 + 0x8]
LAB_0013c572:
MOV RDI,RSP
MOV RSI,R13
CALL 0x0013c6b6
ADD R12,R15
LAB_0013c580:
MOVZX R8D,R14B
MOVZX R9D,BPL
LEA RDI,[RSP + 0x20]
MOV RCX,RSP
MOV RSI,R15
MOV RDX,R12
CALL 0x0013c636
LAB_0013c59b:
LEA RDI,[RSP + 0x20]
PUSH 0x1
POP RSI
MOV RDX,RBX
CALL 0x0013c6fc
LAB_0013c5ab:
LEA RDI,[RSP + 0x20]
CALL 0x0013cac6
MOV RDI,RSP
CALL 0x00147048
MOV RAX,RBX
ADD RSP,0xe8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::parse<std::__cxx11::string const&>(std::__cxx11::string const&,
std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>&)>, bool, bool) */
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
* __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::parse<std::__cxx11::string_const&>
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this,long *param_1,function *param_3,int1 param_4,int1 param_5)
{
long lVar1;
long lVar2;
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
afStack_118 [32];
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
local_f8 [200];
basic_json((_func_decltype_nullptr *)this);
lVar1 = *param_1;
lVar2 = param_1[1];
/* try { // try from 0013c572 to 0013c57c has its CatchHandler @ 0013c5ee */
std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
::function(afStack_118,param_3);
/* try { // try from 0013c580 to 0013c59a has its CatchHandler @ 0013c5e1 */
parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
(local_f8,lVar1,lVar2 + lVar1,afStack_118,param_4,param_5);
/* try { // try from 0013c59b to 0013c5aa has its CatchHandler @ 0013c5d2 */
detail::
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::parse(local_f8,true,this);
detail::
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::~parser(local_f8);
std::_Function_base::~_Function_base((_Function_base *)afStack_118);
return this;
}
| |
48,293 | nglog::LogDestination::SetLogSymlink(nglog::LogSeverity, char const*) | ng-log[P]ng-log/src/logging.cc | inline void LogDestination::SetLogSymlink(LogSeverity severity,
const char* symlink_basename) {
CHECK_GE(severity, 0);
CHECK_LT(severity, NUM_SEVERITIES);
std::lock_guard<std::mutex> l{log_mutex};
log_destination(severity)->fileobject_.SetSymlinkBasename(symlink_basename);
} | O0 | cpp | nglog::LogDestination::SetLogSymlink(nglog::LogSeverity, char const*):
pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp # imm = 0x160
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
leaq -0x4(%rbp), %rdi
callq 0x1cca0
movq %rax, -0x130(%rbp)
xorl %edi, %edi
callq 0x1ccb0
movq -0x130(%rbp), %rsi
movl %eax, -0x1c(%rbp)
leaq -0x18(%rbp), %rdi
leaq -0x1c(%rbp), %rdx
leaq 0x3550a(%rip), %rcx # 0x4dcec
callq 0x1cc30
leaq -0x18(%rbp), %rdi
callq 0x1ccc0
testb $0x1, %al
jne 0x18802
leaq -0x18(%rbp), %rdi
callq 0x1cd60
jmp 0x188b6
leaq -0x90(%rbp), %rdi
movq %rdi, -0x138(%rbp)
leaq -0x18(%rbp), %rsi
callq 0x1ccf0
movq -0x138(%rbp), %rsi
leaq -0x88(%rbp), %rdi
callq 0x1cd20
jmp 0x1882e
leaq 0x34f25(%rip), %rsi # 0x4d75a
leaq -0x80(%rbp), %rdi
movl $0x291, %edx # imm = 0x291
leaq -0x88(%rbp), %rcx
callq 0x133b0
jmp 0x1884c
leaq -0x80(%rbp), %rdi
movq %rdi, -0x140(%rbp)
callq 0xeeb0
movq -0x140(%rbp), %rdi
callq 0x133f0
jmp 0x1886a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
jmp 0x1889c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x1cd40
leaq -0x90(%rbp), %rdi
callq 0x1cd60
leaq -0x18(%rbp), %rdi
callq 0x1cd60
jmp 0x18a40
jmp 0x188b8
leaq -0x4(%rbp), %rdi
callq 0x1cca0
movq %rax, -0x148(%rbp)
movl $0x4, %edi
callq 0x1ccb0
movq -0x148(%rbp), %rsi
movl %eax, -0xac(%rbp)
leaq -0xa8(%rbp), %rdi
leaq -0xac(%rbp), %rdx
leaq 0x35406(%rip), %rcx # 0x4dcfa
callq 0x1cdc0
leaq -0xa8(%rbp), %rdi
callq 0x1ccc0
testb $0x1, %al
jne 0x1891a
leaq -0xa8(%rbp), %rdi
callq 0x1cd60
jmp 0x189d7
leaq -0x120(%rbp), %rdi
movq %rdi, -0x150(%rbp)
leaq -0xa8(%rbp), %rsi
callq 0x1ccf0
movq -0x150(%rbp), %rsi
leaq -0x118(%rbp), %rdi
callq 0x1cd20
jmp 0x18949
leaq 0x34e0a(%rip), %rsi # 0x4d75a
leaq -0x110(%rbp), %rdi
movl $0x292, %edx # imm = 0x292
leaq -0x118(%rbp), %rcx
callq 0x133b0
jmp 0x1896a
leaq -0x110(%rbp), %rdi
movq %rdi, -0x158(%rbp)
callq 0xeeb0
movq -0x158(%rbp), %rdi
callq 0x133f0
jmp 0x1898b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
jmp 0x189bd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
leaq -0x118(%rbp), %rdi
callq 0x1cd40
leaq -0x120(%rbp), %rdi
callq 0x1cd60
leaq -0xa8(%rbp), %rdi
callq 0x1cd60
jmp 0x18a40
leaq 0x6747a(%rip), %rsi # 0x7fe58
leaq -0x128(%rbp), %rdi
callq 0x17c40
movl -0x4(%rbp), %edi
callq 0x18530
movq %rax, -0x160(%rbp)
jmp 0x189fb
movq -0x160(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x16940
jmp 0x18a0d
leaq -0x128(%rbp), %rdi
callq 0x17c70
addq $0x160, %rsp # imm = 0x160
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
leaq -0x128(%rbp), %rdi
callq 0x17c70
movq -0x98(%rbp), %rdi
callq 0x9d00
nopl (%rax)
| _ZN5nglog14LogDestination13SetLogSymlinkENS_11LogSeverityEPKc:
push rbp
mov rbp, rsp
sub rsp, 160h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
lea rdi, [rbp+var_4]
call _ZN5nglog8internal21GetReferenceableValueINS_11LogSeverityEEERKT_S5_; nglog::internal::GetReferenceableValue<nglog::LogSeverity>(nglog::LogSeverity const&)
mov qword ptr [rbp+var_130], rax
xor edi, edi; this
call _ZN5nglog8internal21GetReferenceableValueEi; nglog::internal::GetReferenceableValue(int)
mov rsi, qword ptr [rbp+var_130]; int
mov [rbp+var_1C], eax
lea rdi, [rbp+var_18]
lea rdx, [rbp+var_1C]
lea rcx, aSeverity0; "severity >= 0"
call _ZN5nglog8internal12Check_GEImplINS_11LogSeverityEiEESt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS9_EERKT_RKT0_PKc; nglog::internal::Check_GEImpl<nglog::LogSeverity,int>(nglog::LogSeverity const&,int const&,char const*)
lea rdi, [rbp+var_18]
call _ZNKSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEcvbEv; std::unique_ptr<std::string>::operator bool(void)
test al, 1
jnz short loc_18802
lea rdi, [rbp+var_18]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
jmp loc_188B6
loc_18802:
lea rdi, [rbp+var_90]
mov [rbp+var_138], rdi
lea rsi, [rbp+var_18]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEC2EOS8_; std::unique_ptr<std::string>::unique_ptr(std::unique_ptr<std::string>&&)
mov rsi, [rbp+var_138]
lea rdi, [rbp+var_88]
call _ZN5nglog8internal13CheckOpStringC2ESt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS8_EE; nglog::internal::CheckOpString::CheckOpString(std::unique_ptr<std::string>)
jmp short $+2
loc_1882E:
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdi, [rbp+var_80]; this
mov edx, 291h; int
lea rcx, [rbp+var_88]; nglog::internal::CheckOpString *
call _ZN5nglog15LogMessageFatalC2EPKciRKNS_8internal13CheckOpStringE; nglog::LogMessageFatal::LogMessageFatal(char const*,int,nglog::internal::CheckOpString const&)
jmp short $+2
loc_1884C:
lea rdi, [rbp+var_80]; this
mov [rbp+var_140], rdi
call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void)
mov rdi, [rbp+var_140]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
jmp short $+2
loc_1886A:
mov rcx, rax
mov eax, edx
mov [rbp+var_98], rcx
mov [rbp+var_9C], eax
jmp short loc_1889C
mov rcx, rax
mov eax, edx
mov [rbp+var_98], rcx
mov [rbp+var_9C], eax
lea rdi, [rbp+var_88]; this
call _ZN5nglog8internal13CheckOpStringD2Ev; nglog::internal::CheckOpString::~CheckOpString()
loc_1889C:
lea rdi, [rbp+var_90]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rdi, [rbp+var_18]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
jmp loc_18A40
loc_188B6:
jmp short $+2
loc_188B8:
lea rdi, [rbp+var_4]
call _ZN5nglog8internal21GetReferenceableValueINS_11LogSeverityEEERKT_S5_; nglog::internal::GetReferenceableValue<nglog::LogSeverity>(nglog::LogSeverity const&)
mov [rbp+var_148], rax
mov edi, offset byte_4; this
call _ZN5nglog8internal21GetReferenceableValueEi; nglog::internal::GetReferenceableValue(int)
mov rsi, [rbp+var_148]
mov [rbp+var_AC], eax
lea rdi, [rbp+var_A8]
lea rdx, [rbp+var_AC]
lea rcx, aSeverityNumSev; "severity < NUM_SEVERITIES"
call _ZN5nglog8internal12Check_LTImplINS_11LogSeverityEiEESt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS9_EERKT_RKT0_PKc; nglog::internal::Check_LTImpl<nglog::LogSeverity,int>(nglog::LogSeverity const&,int const&,char const*)
lea rdi, [rbp+var_A8]
call _ZNKSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEcvbEv; std::unique_ptr<std::string>::operator bool(void)
test al, 1
jnz short loc_1891A
lea rdi, [rbp+var_A8]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
jmp loc_189D7
loc_1891A:
lea rdi, [rbp+var_120]
mov [rbp+var_150], rdi
lea rsi, [rbp+var_A8]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEC2EOS8_; std::unique_ptr<std::string>::unique_ptr(std::unique_ptr<std::string>&&)
mov rsi, [rbp+var_150]
lea rdi, [rbp+var_118]
call _ZN5nglog8internal13CheckOpStringC2ESt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS8_EE; nglog::internal::CheckOpString::CheckOpString(std::unique_ptr<std::string>)
jmp short $+2
loc_18949:
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdi, [rbp+var_110]; this
mov edx, 292h; int
lea rcx, [rbp+var_118]; nglog::internal::CheckOpString *
call _ZN5nglog15LogMessageFatalC2EPKciRKNS_8internal13CheckOpStringE; nglog::LogMessageFatal::LogMessageFatal(char const*,int,nglog::internal::CheckOpString const&)
jmp short $+2
loc_1896A:
lea rdi, [rbp+var_110]; this
mov [rbp+var_158], rdi
call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void)
mov rdi, [rbp+var_158]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
jmp short $+2
loc_1898B:
mov rcx, rax
mov eax, edx
mov [rbp+var_98], rcx
mov [rbp+var_9C], eax
jmp short loc_189BD
mov rcx, rax
mov eax, edx
mov [rbp+var_98], rcx
mov [rbp+var_9C], eax
lea rdi, [rbp+var_118]; this
call _ZN5nglog8internal13CheckOpStringD2Ev; nglog::internal::CheckOpString::~CheckOpString()
loc_189BD:
lea rdi, [rbp+var_120]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rdi, [rbp+var_A8]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
jmp short loc_18A40
loc_189D7:
lea rsi, _ZN5nglogL9log_mutexE; nglog::log_mutex
lea rdi, [rbp+var_128]
call _ZNSt10lock_guardISt5mutexEC2ERS0_; std::lock_guard<std::mutex>::lock_guard(std::mutex&)
mov edi, [rbp+var_4]
call _ZN5nglog14LogDestination15log_destinationENS_11LogSeverityE; nglog::LogDestination::log_destination(nglog::LogSeverity)
mov [rbp+var_160], rax
jmp short $+2
loc_189FB:
mov rdi, [rbp+var_160]; this
mov rsi, [rbp+var_10]; char *
call _ZN5nglog12_GLOBAL__N_113LogFileObject18SetSymlinkBasenameEPKc; nglog::`anonymous namespace'::LogFileObject::SetSymlinkBasename(char const*)
jmp short $+2
loc_18A0D:
lea rdi, [rbp+var_128]
call _ZNSt10lock_guardISt5mutexED2Ev; std::lock_guard<std::mutex>::~lock_guard()
add rsp, 160h
pop rbp
retn
mov rcx, rax
mov eax, edx
mov [rbp+var_98], rcx
mov [rbp+var_9C], eax
lea rdi, [rbp+var_128]
call _ZNSt10lock_guardISt5mutexED2Ev; std::lock_guard<std::mutex>::~lock_guard()
loc_18A40:
mov rdi, [rbp+var_98]
call __Unwind_Resume
| long long nglog::LogDestination::SetLogSymlink(unsigned int a1, char *a2)
{
nglog::_anonymous_namespace_::LogFileObject *v3; // [rsp+0h] [rbp-160h]
long long v4; // [rsp+18h] [rbp-148h]
int v5[2]; // [rsp+30h] [rbp-130h]
std::mutex *v6; // [rsp+38h] [rbp-128h] BYREF
_BYTE v7[8]; // [rsp+40h] [rbp-120h] BYREF
_BYTE v8[8]; // [rsp+48h] [rbp-118h] BYREF
nglog::LogDestination *v9[12]; // [rsp+50h] [rbp-110h] BYREF
int v10; // [rsp+B4h] [rbp-ACh] BYREF
_BYTE v11[12]; // [rsp+B8h] [rbp-A8h] BYREF
_BYTE v12[8]; // [rsp+D0h] [rbp-90h] BYREF
_BYTE v13[8]; // [rsp+D8h] [rbp-88h] BYREF
nglog::LogDestination *v14[12]; // [rsp+E0h] [rbp-80h] BYREF
int ReferenceableValue; // [rsp+144h] [rbp-1Ch] BYREF
_BYTE v16[8]; // [rsp+148h] [rbp-18h] BYREF
char *v17; // [rsp+150h] [rbp-10h]
unsigned int v18; // [rsp+15Ch] [rbp-4h] BYREF
v18 = a1;
v17 = a2;
*(_QWORD *)v5 = nglog::internal::GetReferenceableValue<nglog::LogSeverity>(&v18);
ReferenceableValue = nglog::internal::GetReferenceableValue(0LL, (int)a2);
nglog::internal::Check_GEImpl<nglog::LogSeverity,int>(v16, *(_QWORD *)v5, &ReferenceableValue, "severity >= 0");
if ( (std::unique_ptr<std::string>::operator bool(v16) & 1) != 0 )
{
std::unique_ptr<std::string>::unique_ptr(v12, v16);
nglog::internal::CheckOpString::CheckOpString(v13, v12);
nglog::LogMessageFatal::LogMessageFatal(
v14,
(std::this_thread *)"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging.cc",
0x291u,
(const nglog::internal::CheckOpString *)v13);
nglog::LogMessage::stream((nglog::LogMessage *)v14);
nglog::LogMessageFatal::~LogMessageFatal(v14);
}
std::unique_ptr<std::string>::~unique_ptr(v16);
v4 = nglog::internal::GetReferenceableValue<nglog::LogSeverity>(&v18);
v10 = nglog::internal::GetReferenceableValue((nglog::internal *)&byte_4, v5[0]);
nglog::internal::Check_LTImpl<nglog::LogSeverity,int>(v11, v4, &v10, "severity < NUM_SEVERITIES");
if ( (std::unique_ptr<std::string>::operator bool(v11) & 1) != 0 )
{
std::unique_ptr<std::string>::unique_ptr(v7, v11);
nglog::internal::CheckOpString::CheckOpString(v8, v7);
nglog::LogMessageFatal::LogMessageFatal(
v9,
(std::this_thread *)"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging.cc",
0x292u,
(const nglog::internal::CheckOpString *)v8);
nglog::LogMessage::stream((nglog::LogMessage *)v9);
nglog::LogMessageFatal::~LogMessageFatal(v9);
}
std::unique_ptr<std::string>::~unique_ptr(v11);
std::lock_guard<std::mutex>::lock_guard(&v6, (std::mutex *)&nglog::log_mutex);
v3 = (nglog::_anonymous_namespace_::LogFileObject *)nglog::LogDestination::log_destination(v18);
nglog::`anonymous namespace'::LogFileObject::SetSymlinkBasename(v3, v17);
return std::lock_guard<std::mutex>::~lock_guard(&v6);
}
| SetLogSymlink:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x160
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
LEA RDI,[RBP + -0x4]
CALL 0x0011cca0
MOV qword ptr [RBP + -0x130],RAX
XOR EDI,EDI
CALL 0x0011ccb0
MOV RSI,qword ptr [RBP + -0x130]
MOV dword ptr [RBP + -0x1c],EAX
LEA RDI,[RBP + -0x18]
LEA RDX,[RBP + -0x1c]
LEA RCX,[0x14dcec]
CALL 0x0011cc30
LEA RDI,[RBP + -0x18]
CALL 0x0011ccc0
TEST AL,0x1
JNZ 0x00118802
LEA RDI,[RBP + -0x18]
CALL 0x0011cd60
JMP 0x001188b6
LAB_00118802:
LEA RDI,[RBP + -0x90]
MOV qword ptr [RBP + -0x138],RDI
LEA RSI,[RBP + -0x18]
CALL 0x0011ccf0
MOV RSI,qword ptr [RBP + -0x138]
LAB_00118820:
LEA RDI,[RBP + -0x88]
CALL 0x0011cd20
JMP 0x0011882e
LAB_0011882e:
LEA RSI,[0x14d75a]
LEA RDI,[RBP + -0x80]
MOV EDX,0x291
LEA RCX,[RBP + -0x88]
CALL 0x001133b0
JMP 0x0011884c
LAB_0011884c:
LEA RDI,[RBP + -0x80]
MOV qword ptr [RBP + -0x140],RDI
CALL 0x0010eeb0
MOV RDI,qword ptr [RBP + -0x140]
CALL 0x001133f0
LAB_00118868:
JMP 0x0011886a
LAB_0011886a:
MOV RCX,RAX
MOV EAX,EDX
MOV qword ptr [RBP + -0x98],RCX
MOV dword ptr [RBP + -0x9c],EAX
JMP 0x0011889c
LAB_0011889c:
LEA RDI,[RBP + -0x90]
CALL 0x0011cd60
LEA RDI,[RBP + -0x18]
CALL 0x0011cd60
JMP 0x00118a40
LAB_001188b6:
JMP 0x001188b8
LAB_001188b8:
LEA RDI,[RBP + -0x4]
CALL 0x0011cca0
MOV qword ptr [RBP + -0x148],RAX
MOV EDI,0x4
CALL 0x0011ccb0
MOV RSI,qword ptr [RBP + -0x148]
MOV dword ptr [RBP + -0xac],EAX
LEA RDI,[RBP + -0xa8]
LEA RDX,[RBP + -0xac]
LEA RCX,[0x14dcfa]
CALL 0x0011cdc0
LEA RDI,[RBP + -0xa8]
CALL 0x0011ccc0
TEST AL,0x1
JNZ 0x0011891a
LEA RDI,[RBP + -0xa8]
CALL 0x0011cd60
JMP 0x001189d7
LAB_0011891a:
LEA RDI,[RBP + -0x120]
MOV qword ptr [RBP + -0x150],RDI
LEA RSI,[RBP + -0xa8]
CALL 0x0011ccf0
MOV RSI,qword ptr [RBP + -0x150]
LAB_0011893b:
LEA RDI,[RBP + -0x118]
CALL 0x0011cd20
JMP 0x00118949
LAB_00118949:
LEA RSI,[0x14d75a]
LEA RDI,[RBP + -0x110]
MOV EDX,0x292
LEA RCX,[RBP + -0x118]
CALL 0x001133b0
JMP 0x0011896a
LAB_0011896a:
LEA RDI,[RBP + -0x110]
MOV qword ptr [RBP + -0x158],RDI
CALL 0x0010eeb0
MOV RDI,qword ptr [RBP + -0x158]
CALL 0x001133f0
LAB_00118989:
JMP 0x0011898b
LAB_0011898b:
MOV RCX,RAX
MOV EAX,EDX
MOV qword ptr [RBP + -0x98],RCX
MOV dword ptr [RBP + -0x9c],EAX
JMP 0x001189bd
LAB_001189bd:
LEA RDI,[RBP + -0x120]
CALL 0x0011cd60
LEA RDI,[RBP + -0xa8]
CALL 0x0011cd60
JMP 0x00118a40
LAB_001189d7:
LEA RSI,[0x17fe58]
LEA RDI,[RBP + -0x128]
CALL 0x00117c40
MOV EDI,dword ptr [RBP + -0x4]
LAB_001189ed:
CALL 0x00118530
MOV qword ptr [RBP + -0x160],RAX
JMP 0x001189fb
LAB_001189fb:
MOV RDI,qword ptr [RBP + -0x160]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x00116940
LAB_00118a0b:
JMP 0x00118a0d
LAB_00118a0d:
LEA RDI,[RBP + -0x128]
CALL 0x00117c70
ADD RSP,0x160
POP RBP
RET
LAB_00118a40:
MOV RDI,qword ptr [RBP + -0x98]
CALL 0x00109d00
|
/* nglog::LogDestination::SetLogSymlink(nglog::LogSeverity, char const*) */
void nglog::LogDestination::SetLogSymlink(int4 param_1,char *param_2)
{
bool bVar1;
LogSeverity *pLVar2;
LogFileObject *this;
int1 auVar3 [12];
lock_guard<std::mutex> local_130 [8];
unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> local_128 [8];
CheckOpString local_120 [8];
LogMessageFatal local_118 [100];
int local_b4;
internal local_b0 [12];
int4 local_a4;
int8 local_a0;
unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> local_98 [8];
CheckOpString local_90 [8];
LogMessageFatal local_88 [100];
int local_24;
internal local_20 [8];
char *local_18;
int4 local_c;
local_18 = param_2;
local_c = param_1;
pLVar2 = internal::GetReferenceableValue<nglog::LogSeverity>((LogSeverity *)&local_c);
local_24 = internal::GetReferenceableValue(0);
internal::Check_GEImpl<nglog::LogSeverity,int>(local_20,pLVar2,&local_24,"severity >= 0");
bVar1 = std::unique_ptr::operator_cast_to_bool((unique_ptr *)local_20);
if (bVar1) {
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::unique_ptr
(local_98,(unique_ptr *)local_20);
/* try { // try from 00118820 to 0011882b has its CatchHandler @ 0011886a */
internal::CheckOpString::CheckOpString(local_90,local_98);
/* try { // try from 0011882e to 00118867 has its CatchHandler @ 0011887e */
LogMessageFatal::LogMessageFatal
(local_88,"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging.cc",
0x291,local_90);
LogMessage::stream((LogMessage *)local_88);
auVar3 = LogMessageFatal::~LogMessageFatal(local_88);
local_a4 = auVar3._8_4_;
local_a0 = auVar3._0_8_;
/* catch() { ... } // from try @ 00118820 with catch @ 0011886a */
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
(local_98);
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
((unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> *)
local_20);
}
else {
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
((unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> *)
local_20);
pLVar2 = internal::GetReferenceableValue<nglog::LogSeverity>((LogSeverity *)&local_c);
local_b4 = internal::GetReferenceableValue(4);
internal::Check_LTImpl<nglog::LogSeverity,int>
(local_b0,pLVar2,&local_b4,"severity < NUM_SEVERITIES");
bVar1 = std::unique_ptr::operator_cast_to_bool((unique_ptr *)local_b0);
if (!bVar1) {
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
((unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> *)
local_b0);
std::lock_guard<std::mutex>::lock_guard(local_130,(mutex *)log_mutex);
/* try { // try from 001189ed to 00118a0a has its CatchHandler @ 00118a22 */
this = (LogFileObject *)log_destination(local_c);
(anonymous_namespace)::LogFileObject::SetSymlinkBasename(this,local_18);
std::lock_guard<std::mutex>::~lock_guard(local_130);
return;
}
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::unique_ptr
(local_128,(unique_ptr *)local_b0);
/* try { // try from 0011893b to 00118946 has its CatchHandler @ 0011898b */
internal::CheckOpString::CheckOpString(local_120,local_128);
/* try { // try from 00118949 to 00118988 has its CatchHandler @ 0011899f */
LogMessageFatal::LogMessageFatal
(local_118,"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging.cc",
0x292,local_120);
LogMessage::stream((LogMessage *)local_118);
auVar3 = LogMessageFatal::~LogMessageFatal(local_118);
local_a4 = auVar3._8_4_;
local_a0 = auVar3._0_8_;
/* catch() { ... } // from try @ 0011893b with catch @ 0011898b */
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
(local_128);
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
((unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> *)
local_b0);
}
/* WARNING: Subroutine does not return */
_Unwind_Resume(local_a0);
}
| |
48,294 | nglog::LogDestination::SetLogSymlink(nglog::LogSeverity, char const*) | ng-log[P]ng-log/src/logging.cc | inline void LogDestination::SetLogSymlink(LogSeverity severity,
const char* symlink_basename) {
CHECK_GE(severity, 0);
CHECK_LT(severity, NUM_SEVERITIES);
std::lock_guard<std::mutex> l{log_mutex};
log_destination(severity)->fileobject_.SetSymlinkBasename(symlink_basename);
} | O2 | cpp | nglog::LogDestination::SetLogSymlink(nglog::LogSeverity, char const*):
pushq %r15
pushq %r14
pushq %rbx
subq $0x90, %rsp
movq %rsi, %rbx
leaq 0x14(%rsp), %rsi
movl %edi, (%rsi)
leaq 0x30(%rsp), %rdx
andl $0x0, (%rdx)
leaq 0x108ad(%rip), %rcx # 0x1ec20
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xf16c
movq (%r14), %rax
testq %rax, %rax
jne 0xe424
leaq 0x8(%rsp), %rdi
callq 0xf18a
leaq 0x30(%rsp), %rdx
movl $0x4, (%rdx)
leaq 0x10886(%rip), %rcx # 0x1ec2e
leaq 0x8(%rsp), %r14
leaq 0x14(%rsp), %rsi
movq %r14, %rdi
callq 0xf1a4
movq (%r14), %rax
testq %rax, %rax
jne 0xe458
leaq 0x8(%rsp), %rdi
callq 0xf18a
leaq 0x2f8e1(%rip), %rdi # 0x3dcb8
callq 0x1abec
movl 0x14(%rsp), %edi
callq 0xe1ae
movq %rax, %r15
leaq 0x8(%rax), %r14
movq %r14, %rdi
callq 0x1abec
addq $0x58, %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x7a90
movq %r14, %rdi
callq 0x7450
leaq 0x2f8a6(%rip), %rdi # 0x3dcb8
callq 0x7450
addq $0x90, %rsp
popq %rbx
popq %r14
popq %r15
retq
andq $0x0, 0x8(%rsp)
leaq 0x18(%rsp), %rcx
movq %rax, (%rcx)
andq $0x0, 0x28(%rsp)
leaq 0x1025b(%rip), %rsi # 0x1e69a
leaq 0x30(%rsp), %rdi
movl $0x291, %edx # imm = 0x291
callq 0xc236
leaq 0x30(%rsp), %rdi
callq 0xc23c
andq $0x0, 0x8(%rsp)
leaq 0x18(%rsp), %rcx
movq %rax, (%rcx)
andq $0x0, 0x20(%rsp)
leaq 0x10227(%rip), %rsi # 0x1e69a
leaq 0x30(%rsp), %rdi
movl $0x292, %edx # imm = 0x292
callq 0xc236
leaq 0x30(%rsp), %rdi
callq 0xc23c
movq %rax, %rbx
movq %r14, %rdi
callq 0x7450
jmp 0xe4d3
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0xf18a
leaq 0x20(%rsp), %rdi
jmp 0xe4bf
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0xf18a
leaq 0x28(%rsp), %rdi
callq 0xf18a
leaq 0x8(%rsp), %rdi
callq 0xf18a
jmp 0xe4df
movq %rax, %rbx
leaq 0x2f7de(%rip), %rdi # 0x3dcb8
callq 0x7450
movq %rbx, %rdi
callq 0x7a00
nop
| _ZN5nglog14LogDestination13SetLogSymlinkENS_11LogSeverityEPKc:
push r15
push r14
push rbx
sub rsp, 90h
mov rbx, rsi
lea rsi, [rsp+0A8h+var_94]
mov [rsi], edi
lea rdx, [rsp+0A8h+var_78]
and dword ptr [rdx], 0
lea rcx, aSeverity0; "severity >= 0"
lea r14, [rsp+0A8h+var_A0]
mov rdi, r14
call _ZN5nglog8internal12Check_GEImplINS_11LogSeverityEiEESt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS9_EERKT_RKT0_PKc; nglog::internal::Check_GEImpl<nglog::LogSeverity,int>(nglog::LogSeverity const&,int const&,char const*)
mov rax, [r14]
test rax, rax
jnz loc_E424
lea rdi, [rsp+0A8h+var_A0]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rdx, [rsp+0A8h+var_78]
mov dword ptr [rdx], 4
lea rcx, aSeverityNumSev; "severity < NUM_SEVERITIES"
lea r14, [rsp+0A8h+var_A0]
lea rsi, [rsp+0A8h+var_94]
mov rdi, r14
call _ZN5nglog8internal12Check_LTImplINS_11LogSeverityEiEESt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS9_EERKT_RKT0_PKc; nglog::internal::Check_LTImpl<nglog::LogSeverity,int>(nglog::LogSeverity const&,int const&,char const*)
mov rax, [r14]
test rax, rax
jnz loc_E458
lea rdi, [rsp+0A8h+var_A0]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rdi, _ZN5nglogL9log_mutexE; this
call _ZNSt5mutex4lockEv; std::mutex::lock(void)
mov edi, [rsp+0A8h+var_94]
call _ZN5nglog14LogDestination15log_destinationENS_11LogSeverityE; nglog::LogDestination::log_destination(nglog::LogSeverity)
mov r15, rax
lea r14, [rax+8]
mov rdi, r14; this
call _ZNSt5mutex4lockEv; std::mutex::lock(void)
add r15, 58h ; 'X'
mov rdi, r15
mov rsi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEPKc; std::string::assign(char const*)
mov rdi, r14
call _pthread_mutex_unlock
lea rdi, _ZN5nglogL9log_mutexE; nglog::log_mutex
call _pthread_mutex_unlock
add rsp, 90h
pop rbx
pop r14
pop r15
retn
loc_E424:
and [rsp+0A8h+var_A0], 0
lea rcx, [rsp+0A8h+var_90]
mov [rcx], rax
and [rsp+0A8h+var_80], 0
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdi, [rsp+0A8h+var_78]
mov edx, 291h
call _ZN5nglog15LogMessageFatalC2EPKciRKNS_8internal13CheckOpStringE; nglog::LogMessageFatal::LogMessageFatal(char const*,int,nglog::internal::CheckOpString const&)
lea rdi, [rsp+0A8h+var_78]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
loc_E458:
and [rsp+0A8h+var_A0], 0
lea rcx, [rsp+0A8h+var_90]
mov [rcx], rax
and [rsp+0A8h+var_88], 0
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdi, [rsp+0A8h+var_78]
mov edx, 292h
call _ZN5nglog15LogMessageFatalC2EPKciRKNS_8internal13CheckOpStringE; nglog::LogMessageFatal::LogMessageFatal(char const*,int,nglog::internal::CheckOpString const&)
lea rdi, [rsp+0A8h+var_78]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
mov rbx, rax
mov rdi, r14
call _pthread_mutex_unlock
jmp short loc_E4D3
mov rbx, rax
lea rdi, [rsp+0A8h+var_90]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rdi, [rsp+0A8h+var_88]
jmp short loc_E4BF
mov rbx, rax
lea rdi, [rsp+0A8h+var_90]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rdi, [rsp+0A8h+var_80]
loc_E4BF:
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
lea rdi, [rsp+0A8h+var_A0]
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
jmp short loc_E4DF
mov rbx, rax
loc_E4D3:
lea rdi, _ZN5nglogL9log_mutexE; nglog::log_mutex
call _pthread_mutex_unlock
loc_E4DF:
mov rdi, rbx
call __Unwind_Resume
| long long nglog::LogDestination::SetLogSymlink(int a1, long long a2)
{
long long v2; // rax
long long v3; // rax
long long v4; // r15
long long v6; // [rsp+8h] [rbp-A0h] BYREF
int v7; // [rsp+14h] [rbp-94h] BYREF
_QWORD v8[3]; // [rsp+18h] [rbp-90h] BYREF
_QWORD v9[15]; // [rsp+30h] [rbp-78h] BYREF
v7 = a1;
LODWORD(v9[0]) = 0;
nglog::internal::Check_GEImpl<nglog::LogSeverity,int>(&v6, &v7, v9, "severity >= 0");
v2 = v6;
if ( v6 )
{
v6 = 0LL;
v8[0] = v2;
v8[2] = 0LL;
nglog::LogMessageFatal::LogMessageFatal(
v9,
(nglog::tools *)"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging.cc",
657,
v8);
nglog::LogMessageFatal::~LogMessageFatal(
(nglog::LogMessageFatal *)v9,
(nglog::internal::LogMessageData *)"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging.cc");
}
std::unique_ptr<std::string>::~unique_ptr(&v6);
LODWORD(v9[0]) = 4;
nglog::internal::Check_LTImpl<nglog::LogSeverity,int>(&v6, &v7, v9, "severity < NUM_SEVERITIES");
v3 = v6;
if ( v6 )
{
v6 = 0LL;
v8[0] = v3;
v8[1] = 0LL;
nglog::LogMessageFatal::LogMessageFatal(
v9,
(nglog::tools *)"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging.cc",
658,
v8);
nglog::LogMessageFatal::~LogMessageFatal(
(nglog::LogMessageFatal *)v9,
(nglog::internal::LogMessageData *)"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging.cc");
}
std::unique_ptr<std::string>::~unique_ptr(&v6);
std::mutex::lock((std::mutex *)&nglog::log_mutex);
v4 = nglog::LogDestination::log_destination(v7);
std::mutex::lock((std::mutex *)(v4 + 8));
std::string::assign(v4 + 88, a2);
pthread_mutex_unlock(v4 + 8);
return pthread_mutex_unlock(&nglog::log_mutex);
}
| SetLogSymlink:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x90
MOV RBX,RSI
LEA RSI,[RSP + 0x14]
MOV dword ptr [RSI],EDI
LEA RDX,[RSP + 0x30]
AND dword ptr [RDX],0x0
LEA RCX,[0x11ec20]
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x0010f16c
MOV RAX,qword ptr [R14]
TEST RAX,RAX
JNZ 0x0010e424
LEA RDI,[RSP + 0x8]
CALL 0x0010f18a
LEA RDX,[RSP + 0x30]
MOV dword ptr [RDX],0x4
LEA RCX,[0x11ec2e]
LEA R14,[RSP + 0x8]
LEA RSI,[RSP + 0x14]
MOV RDI,R14
CALL 0x0010f1a4
MOV RAX,qword ptr [R14]
TEST RAX,RAX
JNZ 0x0010e458
LEA RDI,[RSP + 0x8]
CALL 0x0010f18a
LEA RDI,[0x13dcb8]
CALL 0x0011abec
MOV EDI,dword ptr [RSP + 0x14]
LAB_0010e3e0:
CALL 0x0010e1ae
MOV R15,RAX
LEA R14,[RAX + 0x8]
MOV RDI,R14
CALL 0x0011abec
ADD R15,0x58
LAB_0010e3f8:
MOV RDI,R15
MOV RSI,RBX
CALL 0x00107a90
MOV RDI,R14
CALL 0x00107450
LEA RDI,[0x13dcb8]
CALL 0x00107450
ADD RSP,0x90
POP RBX
POP R14
POP R15
RET
LAB_0010e424:
AND qword ptr [RSP + 0x8],0x0
LEA RCX,[RSP + 0x18]
MOV qword ptr [RCX],RAX
AND qword ptr [RSP + 0x28],0x0
LAB_0010e438:
LEA RSI,[0x11e69a]
LEA RDI,[RSP + 0x30]
MOV EDX,0x291
CALL 0x0010c236
LEA RDI,[RSP + 0x30]
CALL 0x0010c23c
LAB_0010e458:
AND qword ptr [RSP + 0x8],0x0
LEA RCX,[RSP + 0x18]
MOV qword ptr [RCX],RAX
AND qword ptr [RSP + 0x20],0x0
LAB_0010e46c:
LEA RSI,[0x11e69a]
LEA RDI,[RSP + 0x30]
MOV EDX,0x292
CALL 0x0010c236
LEA RDI,[RSP + 0x30]
CALL 0x0010c23c
LAB_0010e48c:
MOV RBX,RAX
MOV RDI,R14
CALL 0x00107450
JMP 0x0010e4d3
LAB_0010e4d3:
LEA RDI,[0x13dcb8]
CALL 0x00107450
LAB_0010e4df:
MOV RDI,RBX
CALL 0x00107a00
|
/* nglog::LogDestination::SetLogSymlink(nglog::LogSeverity, char const*) */
void nglog::LogDestination::SetLogSymlink(uint param_1)
{
long lVar1;
int8 uVar2;
int1 local_a0 [40];
int local_78 [24];
local_78[0] = 0;
local_a0._12_4_ = param_1;
internal::Check_GEImpl<nglog::LogSeverity,int>
((internal *)local_a0,local_a0 + 0xc,local_78,"severity >= 0");
local_a0._16_8_ = local_a0._0_8_;
if (local_a0._0_8_ == 0) {
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
((unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> *)
local_a0);
local_78[0] = 4;
internal::Check_LTImpl<nglog::LogSeverity,int>
((internal *)local_a0,local_a0 + 0xc,local_78,"severity < NUM_SEVERITIES");
local_a0._16_8_ = local_a0._0_8_;
if (local_a0._0_8_ == 0) {
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
((unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> *)
local_a0);
std::mutex::lock((mutex *)log_mutex);
/* try { // try from 0010e3e0 to 0010e3f3 has its CatchHandler @ 0010e4d0 */
lVar1 = log_destination(local_a0._12_4_);
std::mutex::lock((mutex *)&((pthread_mutex_t *)(lVar1 + 8))->__data);
/* try { // try from 0010e3f8 to 0010e402 has its CatchHandler @ 0010e48c */
std::__cxx11::string::assign((char *)(lVar1 + 0x58));
pthread_mutex_unlock((pthread_mutex_t *)(lVar1 + 8));
pthread_mutex_unlock((pthread_mutex_t *)log_mutex);
return;
}
}
else {
local_a0._0_8_ = 0;
local_a0._32_8_ = (__pthread_internal_list *)0x0;
/* try { // try from 0010e438 to 0010e457 has its CatchHandler @ 0010e4ad */
LogMessageFatal::LogMessageFatal
((LogMessageFatal *)local_78,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging.cc",0x291,
(CheckOpString *)(local_a0 + 0x10));
local_a0._16_8_ = LogMessageFatal::~LogMessageFatal((LogMessageFatal *)local_78);
}
local_a0._0_8_ = 0;
local_a0._24_8_ = (__pthread_internal_list *)0x0;
/* try { // try from 0010e46c to 0010e48b has its CatchHandler @ 0010e499 */
LogMessageFatal::LogMessageFatal
((LogMessageFatal *)local_78,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging.cc",0x292,
(CheckOpString *)(local_a0 + 0x10));
uVar2 = LogMessageFatal::~LogMessageFatal((LogMessageFatal *)local_78);
/* catch() { ... } // from try @ 0010e3f8 with catch @ 0010e48c */
pthread_mutex_unlock((pthread_mutex_t *)local_a0);
pthread_mutex_unlock((pthread_mutex_t *)log_mutex);
/* WARNING: Subroutine does not return */
_Unwind_Resume(uVar2);
}
| |
48,295 | my_caseup_str_utf8mb4 | eloqsql/strings/ctype-utf8.c | static size_t
my_caseup_str_utf8mb4(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->caseup_multiply == 1);
while (*src &&
(srcres= my_mb_wc_utf8mb4_no_range(cs, &wc, (uchar *) src)) > 0)
{
my_toupper_utf8mb4(uni_plane, &wc);
if ((dstres= my_wc_mb_utf8mb4_no_range(cs, wc, (uchar*) dst)) <= 0)
break;
src+= srcres;
dst+= dstres;
}
*dst= '\0';
return (size_t) (dst - dst0);
} | O3 | c | my_caseup_str_utf8mb4:
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 0x4e893
movq 0x78(%rdi), %r15
movq %rbx, %r12
movq %rbx, %r14
leaq -0x30(%rbp), %rdi
movq %r12, %rsi
callq 0x51bd7
testl %eax, %eax
je 0x4e893
movl %eax, %r13d
movq -0x30(%rbp), %rdi
cmpq (%r15), %rdi
ja 0x4e874
movq 0x8(%r15), %rax
movq %rdi, %rcx
shrq $0x8, %rcx
movq (%rax,%rcx,8), %rax
testq %rax, %rax
je 0x4e874
movzbl %dil, %ecx
leaq (%rcx,%rcx,2), %rcx
movl (%rax,%rcx,4), %edi
movq %rdi, -0x30(%rbp)
movq %r14, %rsi
callq 0x51cf3
testl %eax, %eax
je 0x4e893
movl %r13d, %ecx
movl %eax, %eax
addq %rax, %r14
cmpb $0x0, (%r12,%rcx)
leaq (%r12,%rcx), %r12
jne 0x4e835
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_caseup_str_utf8mb4:
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 short loc_4E893
mov r15, [rdi+78h]
mov r12, rbx
mov r14, rbx
loc_4E835:
lea rdi, [rbp+var_30]
mov rsi, r12
call my_mb_wc_utf8mb4_no_range
test eax, eax
jz short loc_4E893
mov r13d, eax
mov rdi, [rbp+var_30]
cmp rdi, [r15]
ja short loc_4E874
mov rax, [r15+8]
mov rcx, rdi
shr rcx, 8
mov rax, [rax+rcx*8]
test rax, rax
jz short loc_4E874
movzx ecx, dil
lea rcx, [rcx+rcx*2]
mov edi, [rax+rcx*4]
mov [rbp+var_30], rdi
loc_4E874:
mov rsi, r14
call my_wc_mb_utf8mb4_no_range
test eax, eax
jz short loc_4E893
mov ecx, r13d
mov eax, eax
add r14, rax
cmp byte ptr [r12+rcx], 0
lea r12, [r12+rcx]
jnz short loc_4E835
loc_4E893:
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_caseup_str_utf8mb4(long long a1, _BYTE *a2)
{
long long v2; // rax
_BYTE *v3; // r14
_QWORD *v4; // r15
_BYTE *v5; // r12
unsigned int v6; // eax
unsigned int v7; // r13d
long long v8; // rdi
long long v9; // rax
unsigned int v10; // eax
bool v11; // zf
_QWORD v13[6]; // [rsp+0h] [rbp-30h] BYREF
v13[0] = v2;
v3 = a2;
if ( *a2 )
{
v4 = *(_QWORD **)(a1 + 120);
v5 = a2;
v3 = a2;
do
{
v6 = my_mb_wc_utf8mb4_no_range(v13, v5);
if ( !v6 )
break;
v7 = v6;
v8 = v13[0];
if ( v13[0] <= *v4 )
{
v9 = *(_QWORD *)(v4[1] + 8LL * (v13[0] >> 8));
if ( v9 )
{
v8 = *(unsigned int *)(v9 + 12LL * LOBYTE(v13[0]));
v13[0] = v8;
}
}
v10 = my_wc_mb_utf8mb4_no_range(v8, v3);
if ( !v10 )
break;
v3 += v10;
v11 = v5[v7] == 0;
v5 += v7;
}
while ( !v11 );
}
*v3 = 0;
return v3 - a2;
}
| my_caseup_str_utf8mb4:
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 0x0014e893
MOV R15,qword ptr [RDI + 0x78]
MOV R12,RBX
MOV R14,RBX
LAB_0014e835:
LEA RDI,[RBP + -0x30]
MOV RSI,R12
CALL 0x00151bd7
TEST EAX,EAX
JZ 0x0014e893
MOV R13D,EAX
MOV RDI,qword ptr [RBP + -0x30]
CMP RDI,qword ptr [R15]
JA 0x0014e874
MOV RAX,qword ptr [R15 + 0x8]
MOV RCX,RDI
SHR RCX,0x8
MOV RAX,qword ptr [RAX + RCX*0x8]
TEST RAX,RAX
JZ 0x0014e874
MOVZX ECX,DIL
LEA RCX,[RCX + RCX*0x2]
MOV EDI,dword ptr [RAX + RCX*0x4]
MOV qword ptr [RBP + -0x30],RDI
LAB_0014e874:
MOV RSI,R14
CALL 0x00151cf3
TEST EAX,EAX
JZ 0x0014e893
MOV ECX,R13D
MOV EAX,EAX
ADD R14,RAX
CMP byte ptr [R12 + RCX*0x1],0x0
LEA R12,[R12 + RCX*0x1]
JNZ 0x0014e835
LAB_0014e893:
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_caseup_str_utf8mb4(long param_1,char *param_2)
{
char *pcVar1;
ulong *puVar2;
long lVar3;
uint uVar4;
uint uVar5;
ulong in_RAX;
char *pcVar6;
char *pcVar7;
ulong local_38;
pcVar7 = param_2;
if (*param_2 != '\0') {
puVar2 = *(ulong **)(param_1 + 0x78);
pcVar6 = param_2;
local_38 = in_RAX;
do {
uVar4 = my_mb_wc_utf8mb4_no_range(&local_38,pcVar6);
if (uVar4 == 0) break;
if ((local_38 <= *puVar2) && (lVar3 = *(long *)(puVar2[1] + (local_38 >> 8) * 8), lVar3 != 0))
{
local_38 = (ulong)*(uint *)(lVar3 + (local_38 & 0xff) * 0xc);
}
uVar5 = my_wc_mb_utf8mb4_no_range(local_38,pcVar7);
if (uVar5 == 0) break;
pcVar7 = pcVar7 + uVar5;
pcVar1 = pcVar6 + uVar4;
pcVar6 = pcVar6 + uVar4;
} while (*pcVar1 != '\0');
}
*pcVar7 = '\0';
return (long)pcVar7 - (long)param_2;
}
| |
48,296 | register_socket_class(char const*, unsigned int, int) | eloqsql/storage/perfschema/pfs_instr_class.cc | PFS_socket_key register_socket_class(const char *name, uint name_length,
int flags)
{
/* See comments in register_mutex_class */
uint32 index;
PFS_socket_class *entry;
REGISTER_CLASS_BODY_PART(index, socket_class_array, socket_class_max,
name, name_length)
index= PFS_atomic::add_u32(&socket_class_dirty_count, 1);
if (index < socket_class_max)
{
entry= &socket_class_array[index];
init_instr_class(entry, name, name_length, flags, PFS_CLASS_SOCKET);
entry->m_event_name_index= socket_class_start + index;
entry->m_singleton= NULL;
entry->m_enabled= false; /* disabled by default */
entry->m_timed= false;
/* Set user-defined configuration options for this instrument */
configure_instr_class(entry);
PFS_atomic::add_u32(&socket_class_allocated_count, 1);
return (index + 1);
}
if (pfs_enabled)
socket_class_lost++;
return 0;
} | O0 | cpp | register_socket_class(char const*, unsigned int, int):
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpq 0x3c916d(%rip), %rax # 0x40c5f0
jae 0x434e2
movq 0x3c99fc(%rip), %rax # 0x40ce88
movl -0x1c(%rbp), %ecx
imulq $0x140, %rcx, %rcx # imm = 0x140
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movl 0x94(%rax), %eax
cmpl -0x14(%rbp), %eax
jne 0x434d5
movq -0x28(%rbp), %rdi
addq $0x14, %rdi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x26170
cmpl $0x0, %eax
jne 0x434d5
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x435ad
jmp 0x434d7
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x43479
leaq 0x3c999b(%rip), %rdi # 0x40ce84
movl $0x1, %esi
callq 0x2d580
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpq 0x3c90f0(%rip), %rax # 0x40c5f0
jae 0x4358b
movq 0x3c997b(%rip), %rax # 0x40ce88
movl -0x1c(%rbp), %ecx
imulq $0x140, %rcx, %rcx # imm = 0x140
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
movl -0x18(%rbp), %ecx
movl $0x9, %r8d
callq 0x41310
movl 0x3c98e7(%rip), %ecx # 0x40ce24
addl -0x1c(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x28(%rbp), %rax
movq $0x0, 0x118(%rax)
movq -0x28(%rbp), %rax
movb $0x0, 0x4(%rax)
movq -0x28(%rbp), %rax
movb $0x0, 0x5(%rax)
movq -0x28(%rbp), %rdi
callq 0x413b0
leaq 0x3c990a(%rip), %rdi # 0x40ce80
movl $0x1, %esi
callq 0x2d580
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x435ad
cmpb $0x0, 0x1cfd9e(%rip) # 0x213330
je 0x435a6
movq 0x3c905d(%rip), %rax # 0x40c5f8
addq $0x1, %rax
movq %rax, 0x3c9052(%rip) # 0x40c5f8
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _Z21register_socket_classPKcji:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_1C], 0
loc_43479:
mov eax, [rbp+var_1C]
cmp rax, cs:socket_class_max
jnb short loc_434E2
mov rax, cs:_ZL18socket_class_array; socket_class_array
mov ecx, [rbp+var_1C]
imul rcx, 140h
add rax, rcx
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
mov eax, [rax+94h]
cmp eax, [rbp+var_14]
jnz short loc_434D5
mov rdi, [rbp+var_28]
add rdi, 14h
mov rsi, [rbp+var_10]
mov eax, [rbp+var_14]
mov edx, eax
call _strncmp
cmp eax, 0
jnz short loc_434D5
mov eax, [rbp+var_1C]
add eax, 1
mov [rbp+var_4], eax
jmp loc_435AD
loc_434D5:
jmp short $+2
loc_434D7:
mov eax, [rbp+var_1C]
add eax, 1
mov [rbp+var_1C], eax
jmp short loc_43479
loc_434E2:
lea rdi, _ZL24socket_class_dirty_count; this
mov esi, (offset dword_0+1); unsigned int *
call _ZN10PFS_atomic7add_u32EPjj; PFS_atomic::add_u32(uint *,uint)
mov [rbp+var_1C], eax
mov eax, [rbp+var_1C]
cmp rax, cs:socket_class_max
jnb loc_4358B
mov rax, cs:_ZL18socket_class_array; socket_class_array
mov ecx, [rbp+var_1C]
imul rcx, 140h
add rax, rcx
mov [rbp+var_28], rax
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_10]
mov edx, [rbp+var_14]
mov ecx, [rbp+var_18]
mov r8d, 9
call _ZL16init_instr_classP15PFS_instr_classPKcji14PFS_class_type; init_instr_class(PFS_instr_class *,char const*,uint,int,PFS_class_type)
mov ecx, cs:socket_class_start
add ecx, [rbp+var_1C]
mov rax, [rbp+var_28]
mov [rax+10h], ecx
mov rax, [rbp+var_28]
mov qword ptr [rax+118h], 0
mov rax, [rbp+var_28]
mov byte ptr [rax+4], 0
mov rax, [rbp+var_28]
mov byte ptr [rax+5], 0
mov rdi, [rbp+var_28]; PFS_instr_class *
call _ZL21configure_instr_classP15PFS_instr_class; configure_instr_class(PFS_instr_class *)
lea rdi, _ZL28socket_class_allocated_count; this
mov esi, (offset dword_0+1); unsigned int *
call _ZN10PFS_atomic7add_u32EPjj; PFS_atomic::add_u32(uint *,uint)
mov eax, [rbp+var_1C]
add eax, 1
mov [rbp+var_4], eax
jmp short loc_435AD
loc_4358B:
cmp cs:pfs_enabled, 0
jz short loc_435A6
mov rax, cs:socket_class_lost
add rax, 1
mov cs:socket_class_lost, rax
loc_435A6:
mov [rbp+var_4], 0
loc_435AD:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| long long register_socket_class(const char *a1, unsigned int a2, int a3)
{
PFS_instr_class *v4; // [rsp+8h] [rbp-28h]
PFS_instr_class *v5; // [rsp+8h] [rbp-28h]
unsigned int i; // [rsp+14h] [rbp-1Ch]
unsigned int v7; // [rsp+14h] [rbp-1Ch]
for ( i = 0; i < socket_class_max; ++i )
{
v4 = (PFS_instr_class *)(320LL * i + socket_class_array);
if ( *((_DWORD *)v4 + 37) == a2 && !(unsigned int)strncmp((char *)v4 + 20, a1, a2) )
return i + 1;
}
v7 = PFS_atomic::add_u32((PFS_atomic *)&socket_class_dirty_count, (unsigned int *)((char *)&dword_0 + 1));
if ( v7 >= socket_class_max )
{
if ( pfs_enabled )
++socket_class_lost;
return 0;
}
else
{
v5 = (PFS_instr_class *)(320LL * v7 + socket_class_array);
init_instr_class((long long)v5, (long long)a1, a2, a3, 9);
*((_DWORD *)v5 + 4) = v7 + socket_class_start;
*((_QWORD *)v5 + 35) = 0LL;
*((_BYTE *)v5 + 4) = 0;
*((_BYTE *)v5 + 5) = 0;
configure_instr_class(v5);
PFS_atomic::add_u32((PFS_atomic *)&socket_class_allocated_count, (unsigned int *)((char *)&dword_0 + 1));
return v7 + 1;
}
}
| register_socket_class:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV dword ptr [RBP + -0x1c],0x0
LAB_00143479:
MOV EAX,dword ptr [RBP + -0x1c]
CMP RAX,qword ptr [0x0050c5f0]
JNC 0x001434e2
MOV RAX,qword ptr [0x0050ce88]
MOV ECX,dword ptr [RBP + -0x1c]
IMUL RCX,RCX,0x140
ADD RAX,RCX
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RAX + 0x94]
CMP EAX,dword ptr [RBP + -0x14]
JNZ 0x001434d5
MOV RDI,qword ptr [RBP + -0x28]
ADD RDI,0x14
MOV RSI,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RBP + -0x14]
MOV EDX,EAX
CALL 0x00126170
CMP EAX,0x0
JNZ 0x001434d5
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001435ad
LAB_001434d5:
JMP 0x001434d7
LAB_001434d7:
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x00143479
LAB_001434e2:
LEA RDI,[0x50ce84]
MOV ESI,0x1
CALL 0x0012d580
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x1c]
CMP RAX,qword ptr [0x0050c5f0]
JNC 0x0014358b
MOV RAX,qword ptr [0x0050ce88]
MOV ECX,dword ptr [RBP + -0x1c]
IMUL RCX,RCX,0x140
ADD RAX,RCX
MOV qword ptr [RBP + -0x28],RAX
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RBP + -0x14]
MOV ECX,dword ptr [RBP + -0x18]
MOV R8D,0x9
CALL 0x00141310
MOV ECX,dword ptr [0x0050ce24]
ADD ECX,dword ptr [RBP + -0x1c]
MOV RAX,qword ptr [RBP + -0x28]
MOV dword ptr [RAX + 0x10],ECX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX + 0x118],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x4],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x5],0x0
MOV RDI,qword ptr [RBP + -0x28]
CALL 0x001413b0
LEA RDI,[0x50ce80]
MOV ESI,0x1
CALL 0x0012d580
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001435ad
LAB_0014358b:
CMP byte ptr [0x00313330],0x0
JZ 0x001435a6
MOV RAX,qword ptr [0x0050c5f8]
ADD RAX,0x1
MOV qword ptr [0x0050c5f8],RAX
LAB_001435a6:
MOV dword ptr [RBP + -0x4],0x0
LAB_001435ad:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
/* register_socket_class(char const*, unsigned int, int) */
int register_socket_class(char *param_1,uint param_2,int param_3)
{
int iVar1;
uint uVar2;
long lVar3;
PFS_instr_class *pPVar4;
uint local_24;
int local_c;
local_24 = 0;
while( true ) {
if (socket_class_max <= local_24) {
uVar2 = PFS_atomic::add_u32(&socket_class_dirty_count,1);
if (uVar2 < socket_class_max) {
pPVar4 = (PFS_instr_class *)(socket_class_array + (ulong)uVar2 * 0x140);
init_instr_class(pPVar4,param_1,param_2,param_3,9);
*(uint *)(pPVar4 + 0x10) = socket_class_start + uVar2;
*(int8 *)(pPVar4 + 0x118) = 0;
pPVar4[4] = (PFS_instr_class)0x0;
pPVar4[5] = (PFS_instr_class)0x0;
configure_instr_class(pPVar4);
PFS_atomic::add_u32(&socket_class_allocated_count,1);
local_c = uVar2 + 1;
}
else {
if (pfs_enabled != '\0') {
socket_class_lost = socket_class_lost + 1;
}
local_c = 0;
}
return local_c;
}
lVar3 = socket_class_array + (ulong)local_24 * 0x140;
if ((*(uint *)(lVar3 + 0x94) == param_2) &&
(iVar1 = strncmp((char *)(lVar3 + 0x14),param_1,(ulong)param_2), iVar1 == 0)) break;
local_24 = local_24 + 1;
}
return local_24 + 1;
}
| |
48,297 | Simulator::fetch() | EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/src/Simulator.cpp | void Simulator::fetch() {
if (this->pc % 2 != 0) {
this->panic("Illegal PC 0x%x!\n", this->pc);
}
uint32_t inst = this->memory->getInt(this->pc);
uint32_t len = 4;
if (this->verbose) {
printf("Fetched instruction 0x%.8x at address 0x%llx\n", inst, this->pc);
}
this->fRegNew.bubble = false;
this->fRegNew.stall = false;
this->fRegNew.inst = inst;
this->fRegNew.len = len;
this->fRegNew.pc = this->pc;
this->pc = this->pc + len;
} | O1 | cpp | Simulator::fetch():
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rdx
testb $0x1, %dl
jne 0xf5b1
movq 0x118(%rbx), %rdi
movl 0x8(%rbx), %esi
xorl %edx, %edx
callq 0xed98
movl %eax, %ebp
cmpb $0x1, 0x1(%rbx)
jne 0xf576
movq 0x8(%rbx), %rdx
leaq 0x647a(%rip), %rdi # 0x159e7
movl %ebp, %esi
xorl %eax, %eax
callq 0xb050
movb $0x0, 0x140(%rbx)
movl $0x0, 0x144(%rbx)
movl %ebp, 0x150(%rbx)
movl $0x4, 0x154(%rbx)
movq 0x8(%rbx), %rax
movq %rax, 0x148(%rbx)
addq $0x4, %rax
movq %rax, 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x641d(%rip), %rsi # 0x159d5
movq %rbx, %rdi
xorl %eax, %eax
callq 0xf46e
| _ZN9Simulator5fetchEv:
push rbp
push rbx
push rax
mov rbx, rdi
mov rdx, [rdi+8]
test dl, 1
jnz short loc_F5B1
mov rdi, [rbx+118h]; this
mov esi, [rbx+8]; unsigned int
xor edx, edx; unsigned int *
call _ZN13MemoryManager6getIntEjPj; MemoryManager::getInt(uint,uint *)
mov ebp, eax
cmp byte ptr [rbx+1], 1
jnz short loc_F576
mov rdx, [rbx+8]
lea rdi, aFetchedInstruc; "Fetched instruction 0x%.8x at address 0"...
mov esi, ebp
xor eax, eax
call _printf
loc_F576:
mov byte ptr [rbx+140h], 0
mov dword ptr [rbx+144h], 0
mov [rbx+150h], ebp
mov dword ptr [rbx+154h], 4
mov rax, [rbx+8]
mov [rbx+148h], rax
add rax, 4
mov [rbx+8], rax
add rsp, 8
pop rbx
pop rbp
retn
loc_F5B1:
lea rsi, aIllegalPc0xX; "Illegal PC 0x%x!\n"
mov rdi, rbx; this
xor eax, eax
call _ZN9Simulator5panicEPKcz; Simulator::panic(char const*,...)
| long long Simulator::fetch(
Simulator *this,
__m128 a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
long long a10,
long long a11,
long long a12,
long long a13,
long long a14)
{
char v14; // al
long long v15; // rdx
int Int; // eax
int v17; // ebp
long long v18; // rax
long long result; // rax
v15 = *((_QWORD *)this + 1);
if ( (v15 & 1) != 0 )
Simulator::panic(this, "Illegal PC 0x%x!\n", v15, a12, a13, a14, a2, a3, a4, a5, a6, a7, a8, a9, v14);
Int = MemoryManager::getInt(
*((Cache ***)this + 35),
*((unsigned int *)this + 2),
0LL,
a12,
a13,
a14,
a2,
a3,
a4,
a5,
a6,
a7,
a8,
a9);
v17 = Int;
if ( *((_BYTE *)this + 1) == 1 )
printf("Fetched instruction 0x%.8x at address 0x%llx\n", Int, *((_QWORD *)this + 1));
*((_BYTE *)this + 320) = 0;
*((_DWORD *)this + 81) = 0;
*((_DWORD *)this + 84) = v17;
*((_DWORD *)this + 85) = 4;
v18 = *((_QWORD *)this + 1);
*((_QWORD *)this + 41) = v18;
result = v18 + 4;
*((_QWORD *)this + 1) = result;
return result;
}
| fetch:
PUSH RBP
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV RDX,qword ptr [RDI + 0x8]
TEST DL,0x1
JNZ 0x0010f5b1
MOV RDI,qword ptr [RBX + 0x118]
MOV ESI,dword ptr [RBX + 0x8]
XOR EDX,EDX
CALL 0x0010ed98
MOV EBP,EAX
CMP byte ptr [RBX + 0x1],0x1
JNZ 0x0010f576
MOV RDX,qword ptr [RBX + 0x8]
LEA RDI,[0x1159e7]
MOV ESI,EBP
XOR EAX,EAX
CALL 0x0010b050
LAB_0010f576:
MOV byte ptr [RBX + 0x140],0x0
MOV dword ptr [RBX + 0x144],0x0
MOV dword ptr [RBX + 0x150],EBP
MOV dword ptr [RBX + 0x154],0x4
MOV RAX,qword ptr [RBX + 0x8]
MOV qword ptr [RBX + 0x148],RAX
ADD RAX,0x4
MOV qword ptr [RBX + 0x8],RAX
ADD RSP,0x8
POP RBX
POP RBP
RET
LAB_0010f5b1:
LEA RSI,[0x1159d5]
MOV RDI,RBX
XOR EAX,EAX
CALL 0x0010f46e
|
/* Simulator::fetch() */
void __thiscall Simulator::fetch(Simulator *this)
{
uint uVar1;
if ((*(ulong *)(this + 8) & 1) == 0) {
uVar1 = MemoryManager::getInt(*(MemoryManager **)(this + 0x118),*(uint *)(this + 8),(uint *)0x0)
;
if (this[1] == (Simulator)0x1) {
printf("Fetched instruction 0x%.8x at address 0x%llx\n",(ulong)uVar1,*(int8 *)(this + 8)
);
}
this[0x140] = (Simulator)0x0;
*(int4 *)(this + 0x144) = 0;
*(uint *)(this + 0x150) = uVar1;
*(int4 *)(this + 0x154) = 4;
*(long *)(this + 0x148) = *(long *)(this + 8);
*(long *)(this + 8) = *(long *)(this + 8) + 4;
return;
}
/* WARNING: Subroutine does not return */
panic((char *)this,"Illegal PC 0x%x!\n");
}
| |
48,298 | Json::StyledWriter::StyledWriter() | aimrt_mujoco_sim/_deps/jsoncpp-src/src/lib_json/json_writer.cpp | StyledWriter::StyledWriter() = default; | O3 | cpp | Json::StyledWriter::StyledWriter():
leaq 0x32f6d(%rip), %rax # 0xaf508
movq %rax, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
xorl %eax, %eax
movq %rax, 0x18(%rdi)
leaq 0x30(%rdi), %rcx
movq %rcx, 0x20(%rdi)
movq %rax, 0x28(%rdi)
movb %al, 0x30(%rdi)
leaq 0x50(%rdi), %rcx
movq %rcx, 0x40(%rdi)
movq %rax, 0x48(%rdi)
movb %al, 0x50(%rdi)
movabsq $0x30000004a, %rcx # imm = 0x30000004A
movq %rcx, 0x60(%rdi)
movb %al, 0x68(%rdi)
retq
nop
| _ZN4Json12StyledWriterC2Ev:
lea rax, off_AF508
mov [rdi], rax
xorps xmm0, xmm0
movups xmmword ptr [rdi+8], xmm0
xor eax, eax
mov [rdi+18h], rax
lea rcx, [rdi+30h]
mov [rdi+20h], rcx
mov [rdi+28h], rax
mov [rdi+30h], al
lea rcx, [rdi+50h]
mov [rdi+40h], rcx
mov [rdi+48h], rax
mov [rdi+50h], al
mov rcx, 30000004Ah
mov [rdi+60h], rcx
mov [rdi+68h], al
retn
| long long Json::StyledWriter::StyledWriter(Json::StyledWriter *this)
{
long long result; // rax
*(_QWORD *)this = off_AF508;
*(_OWORD *)((char *)this + 8) = 0LL;
result = 0LL;
*((_QWORD *)this + 3) = 0LL;
*((_QWORD *)this + 4) = (char *)this + 48;
*((_QWORD *)this + 5) = 0LL;
*((_BYTE *)this + 48) = 0;
*((_QWORD *)this + 8) = (char *)this + 80;
*((_QWORD *)this + 9) = 0LL;
*((_BYTE *)this + 80) = 0;
*((_QWORD *)this + 12) = 0x30000004ALL;
*((_BYTE *)this + 104) = 0;
return result;
}
| StyledWriter:
LEA RAX,[0x1af508]
MOV qword ptr [RDI],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x8],XMM0
XOR EAX,EAX
MOV qword ptr [RDI + 0x18],RAX
LEA RCX,[RDI + 0x30]
MOV qword ptr [RDI + 0x20],RCX
MOV qword ptr [RDI + 0x28],RAX
MOV byte ptr [RDI + 0x30],AL
LEA RCX,[RDI + 0x50]
MOV qword ptr [RDI + 0x40],RCX
MOV qword ptr [RDI + 0x48],RAX
MOV byte ptr [RDI + 0x50],AL
MOV RCX,0x30000004a
MOV qword ptr [RDI + 0x60],RCX
MOV byte ptr [RDI + 0x68],AL
RET
|
/* Json::StyledWriter::StyledWriter() */
void __thiscall Json::StyledWriter::StyledWriter(StyledWriter *this)
{
*(int ***)this = &PTR__StyledWriter_001af508;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(StyledWriter **)(this + 0x20) = this + 0x30;
*(int8 *)(this + 0x28) = 0;
this[0x30] = (StyledWriter)0x0;
*(StyledWriter **)(this + 0x40) = this + 0x50;
*(int8 *)(this + 0x48) = 0;
this[0x50] = (StyledWriter)0x0;
*(int8 *)(this + 0x60) = 0x30000004a;
this[0x68] = (StyledWriter)0x0;
return;
}
| |
48,299 | lshift | eloqsql/libmariadb/libmariadb/ma_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 0x398eb
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
movl -0x1c(%rbp), %eax
shll %eax
movl %eax, -0x1c(%rbp)
jmp 0x398d0
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x39c40
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 0x39935
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 0x3990d
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 0x399d4
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 0x39977
movl -0x4c(%rbp), %eax
movq -0x40(%rbp), %rcx
movl %eax, (%rcx)
cmpl $0x0, %eax
je 0x399d2
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x39a04
jmp 0x399d6
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 0x399d6
jmp 0x39a04
movl -0x28(%rbp), %ecx
subl $0x1, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x14(%rax)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x39740
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_398D0:
mov eax, [rbp+var_28]
cmp eax, [rbp+var_1C]
jle short loc_398EB
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_398D0
loc_398EB:
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_3990D:
mov eax, [rbp+var_1C]
cmp eax, [rbp+var_24]
jge short loc_39935
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_3990D
loc_39935:
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_399D4
mov eax, 20h ; ' '
sub eax, [rbp+var_C]
mov [rbp+var_20], eax
mov [rbp+var_4C], 0
loc_39977:
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_39977
mov eax, [rbp+var_4C]
mov rcx, [rbp+var_40]
mov [rcx], eax
cmp eax, 0
jz short loc_399D2
mov eax, [rbp+var_28]
add eax, 1
mov [rbp+var_28], eax
loc_399D2:
jmp short loc_39A04
loc_399D4:
jmp short $+2
loc_399D6:
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_399D6
jmp short $+2
loc_39A04:
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]
unsigned 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, 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_001398d0:
MOV EAX,dword ptr [RBP + -0x28]
CMP EAX,dword ptr [RBP + -0x1c]
JLE 0x001398eb
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 0x001398d0
LAB_001398eb:
MOV EDI,dword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x00139c40
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_0013990d:
MOV EAX,dword ptr [RBP + -0x1c]
CMP EAX,dword ptr [RBP + -0x24]
JGE 0x00139935
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 0x0013990d
LAB_00139935:
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 0x001399d4
MOV EAX,0x20
SUB EAX,dword ptr [RBP + -0xc]
MOV dword ptr [RBP + -0x20],EAX
MOV dword ptr [RBP + -0x4c],0x0
LAB_00139977:
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 0x00139977
MOV EAX,dword ptr [RBP + -0x4c]
MOV RCX,qword ptr [RBP + -0x40]
MOV dword ptr [RCX],EAX
CMP EAX,0x0
JZ 0x001399d2
MOV EAX,dword ptr [RBP + -0x28]
ADD EAX,0x1
MOV dword ptr [RBP + -0x28],EAX
LAB_001399d2:
JMP 0x00139a04
LAB_001399d4:
JMP 0x001399d6
LAB_001399d6:
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 0x001399d6
JMP 0x00139a04
LAB_00139a04:
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 0x00139740
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;
}
|
Subsets and Splits
C++ Functions With Standard Library Dependencies
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++ Standard Library Function Analysis
Filters C++ code examples that use standard library containers and types, providing useful insights into common programming patterns and data structures in the dataset.
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.