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
27,600
mi_update_status_with_lock
eloqsql/storage/myisam/mi_locking.c
static void mi_update_status_with_lock(MI_INFO *info) { my_bool locked= 0; if (info->state == &info->save_state) { locked= 1; mysql_mutex_lock(&info->s->lock.mutex); } mi_update_status(info); if (locked) mysql_mutex_unlock(&info->s->lock.mutex); }
O3
c
mi_update_status_with_lock: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x10(%rdi), %rax cmpq %rax, 0x8(%rdi) je 0x973dd movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %rbp jmp 0x975ba movq (%rbx), %rax leaq 0x3a0(%rax), %rdi cmpq $0x0, 0x3e0(%rax) jne 0x97422 callq 0x2a230 movq %rbx, %rdi callq 0x975ba movq (%rbx), %rbx movq 0x3e0(%rbx), %rdi addq $0x3a0, %rbx # imm = 0x3A0 testq %rdi, %rdi jne 0x97435 movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %rbp jmp 0x2a1f0 leaq 0x67c90(%rip), %rsi # 0xff0b9 movl $0x176, %edx # imm = 0x176 callq 0x312ea jmp 0x973f6 leaq 0x3175dc(%rip), %rax # 0x3aea18 movq (%rax), %rax callq *0x160(%rax) jmp 0x97414
mi_update_status_with_lock: push rbp mov rbp, rsp push rbx push rax mov rbx, rdi lea rax, [rdi+10h] cmp [rdi+8], rax jz short loc_973DD mov rdi, rbx add rsp, 8 pop rbx pop rbp jmp mi_update_status loc_973DD: mov rax, [rbx] lea rdi, [rax+3A0h] cmp qword ptr [rax+3E0h], 0 jnz short loc_97422 call _pthread_mutex_lock loc_973F6: mov rdi, rbx call mi_update_status mov rbx, [rbx] mov rdi, [rbx+3E0h] add rbx, 3A0h test rdi, rdi jnz short loc_97435 loc_97414: mov rdi, rbx add rsp, 8 pop rbx pop rbp jmp _pthread_mutex_unlock loc_97422: lea rsi, aWorkspaceLlm4b_19; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 176h call psi_mutex_lock jmp short loc_973F6 loc_97435: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_97414
long long mi_update_status_with_lock(_QWORD *a1) { long long v3; // rdi long long v4; // rbx long long v5; // rdi long long v6; // rbx if ( (_QWORD *)a1[1] != a1 + 2 ) return mi_update_status(a1); v3 = *a1 + 928LL; if ( *(_QWORD *)(*a1 + 992LL) ) psi_mutex_lock(v3, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_locking.c", 0x176u); else pthread_mutex_lock(v3); mi_update_status(a1); v4 = *a1; v5 = *(_QWORD *)(v4 + 992); v6 = v4 + 928; if ( v5 ) ((void ( *)(long long))PSI_server[44])(v5); return pthread_mutex_unlock(v6); }
mi_update_status_with_lock: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RBX,RDI LEA RAX,[RDI + 0x10] CMP qword ptr [RDI + 0x8],RAX JZ 0x001973dd MOV RDI,RBX ADD RSP,0x8 POP RBX POP RBP JMP 0x001975ba LAB_001973dd: MOV RAX,qword ptr [RBX] LEA RDI,[RAX + 0x3a0] CMP qword ptr [RAX + 0x3e0],0x0 JNZ 0x00197422 CALL 0x0012a230 LAB_001973f6: MOV RDI,RBX CALL 0x001975ba MOV RBX,qword ptr [RBX] MOV RDI,qword ptr [RBX + 0x3e0] ADD RBX,0x3a0 TEST RDI,RDI JNZ 0x00197435 LAB_00197414: MOV RDI,RBX ADD RSP,0x8 POP RBX POP RBP JMP 0x0012a1f0 LAB_00197422: LEA RSI,[0x1ff0b9] MOV EDX,0x176 CALL 0x001312ea JMP 0x001973f6 LAB_00197435: LEA RAX,[0x4aea18] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x00197414
void mi_update_status_with_lock(long *param_1) { pthread_mutex_t *__mutex; long lVar1; if ((long *)param_1[1] != param_1 + 2) { mi_update_status(param_1); return; } __mutex = (pthread_mutex_t *)(*param_1 + 0x3a0); if (*(long *)(*param_1 + 0x3e0) == 0) { pthread_mutex_lock(__mutex); } else { psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_locking.c", 0x176); } mi_update_status(param_1); lVar1 = *param_1; if (*(long *)(lVar1 + 0x3e0) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock((pthread_mutex_t *)(lVar1 + 0x3a0)); return; }
27,601
mi_report_error
eloqsql/storage/myisam/mi_info.c
void mi_report_error(int errcode, const char *file_name) { size_t lgt; DBUG_ENTER("mi_report_error"); DBUG_PRINT("enter",("errcode %d, table '%s'", errcode, file_name)); if ((lgt= strlen(file_name)) > 64) file_name+= lgt - 64; my_error(errcode, MYF(ME_ERROR_LOG), file_name); DBUG_VOID_RETURN; }
O0
c
mi_report_error: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) jmp 0xae2c1 movq -0x10(%rbp), %rdi callq 0x2a340 movq %rax, -0x18(%rbp) cmpq $0x40, %rax jbe 0xae2e4 movq -0x18(%rbp), %rax subq $0x40, %rax addq -0x10(%rbp), %rax movq %rax, -0x10(%rbp) movl -0x4(%rbp), %edi movq -0x10(%rbp), %rdx movl $0x40, %esi movb $0x0, %al callq 0xef8b0 jmp 0xae2f9 addq $0x20, %rsp popq %rbp retq nop
mi_report_error: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_4], edi mov [rbp+var_10], rsi jmp short $+2 loc_AE2C1: mov rdi, [rbp+var_10] call _strlen mov [rbp+var_18], rax cmp rax, 40h ; '@' jbe short loc_AE2E4 mov rax, [rbp+var_18] sub rax, 40h ; '@' add rax, [rbp+var_10] mov [rbp+var_10], rax loc_AE2E4: mov edi, [rbp+var_4] mov rdx, [rbp+var_10] mov esi, 40h ; '@' mov al, 0 call my_error jmp short $+2 loc_AE2F9: add rsp, 20h pop rbp retn
long long mi_report_error(int a1, long long a2) { int v2; // ecx int v3; // r8d int v4; // r9d unsigned long long v6; // [rsp+8h] [rbp-18h] int v7; // [rsp+10h] [rbp-10h] v7 = a2; v6 = strlen(a2); if ( v6 > 0x40 ) v7 = a2 + v6 - 64; return my_error(a1, 64, v7, v2, v3, v4); }
mi_report_error: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV dword ptr [RBP + -0x4],EDI MOV qword ptr [RBP + -0x10],RSI JMP 0x001ae2c1 LAB_001ae2c1: MOV RDI,qword ptr [RBP + -0x10] CALL 0x0012a340 MOV qword ptr [RBP + -0x18],RAX CMP RAX,0x40 JBE 0x001ae2e4 MOV RAX,qword ptr [RBP + -0x18] SUB RAX,0x40 ADD RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x10],RAX LAB_001ae2e4: MOV EDI,dword ptr [RBP + -0x4] MOV RDX,qword ptr [RBP + -0x10] MOV ESI,0x40 MOV AL,0x0 CALL 0x001ef8b0 JMP 0x001ae2f9 LAB_001ae2f9: ADD RSP,0x20 POP RBP RET
void mi_report_error(int4 param_1,char *param_2) { size_t sVar1; char *local_18; sVar1 = strlen(param_2); local_18 = param_2; if (0x40 < sVar1) { local_18 = param_2 + (sVar1 - 0x40); } my_error(param_1,0x40,local_18); return; }
27,602
plutovg_state_create
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-canvas.c
static plutovg_state_t* plutovg_state_create(void) { plutovg_state_t* state = malloc(sizeof(plutovg_state_t)); state->paint = NULL; state->font_face = NULL; state->color = PLUTOVG_BLACK_COLOR; state->matrix = PLUTOVG_IDENTITY_MATRIX; state->stroke.style = PLUTOVG_DEFAULT_STROKE_STYLE; state->stroke.dash.offset = 0.f; plutovg_array_init(state->stroke.dash.array); plutovg_span_buffer_init(&state->clip_spans); state->winding = PLUTOVG_FILL_RULE_NON_ZERO; state->op = PLUTOVG_OPERATOR_SRC_OVER; state->font_size = 12.f; state->opacity = 1.f; state->clipping = false; state->next = NULL; return state; }
O0
c
plutovg_state_create: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movl $0xa0, %edi callq 0xb4d0 movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax movq $0x0, (%rax) movq -0x8(%rbp), %rax movq $0x0, 0x8(%rax) movq -0x8(%rbp), %rax xorps %xmm0, %xmm0 movss %xmm0, -0x18(%rbp) xorps %xmm0, %xmm0 movss %xmm0, -0x14(%rbp) xorps %xmm0, %xmm0 movss %xmm0, -0x10(%rbp) movss 0x37bd7(%rip), %xmm0 # 0x8c0c8 movss %xmm0, -0xc(%rbp) movq -0x18(%rbp), %rcx movq %rcx, 0x10(%rax) movq -0x10(%rbp), %rcx movq %rcx, 0x18(%rax) movq -0x8(%rbp), %rax movss 0x37bb6(%rip), %xmm0 # 0x8c0c8 movss %xmm0, -0x30(%rbp) xorps %xmm0, %xmm0 movss %xmm0, -0x2c(%rbp) xorps %xmm0, %xmm0 movss %xmm0, -0x28(%rbp) movss 0x37b99(%rip), %xmm0 # 0x8c0c8 movss %xmm0, -0x24(%rbp) xorps %xmm0, %xmm0 movss %xmm0, -0x20(%rbp) xorps %xmm0, %xmm0 movss %xmm0, -0x1c(%rbp) movq -0x30(%rbp), %rcx movq %rcx, 0x20(%rax) movq -0x28(%rbp), %rcx movq %rcx, 0x28(%rax) movq -0x20(%rbp), %rcx movq %rcx, 0x30(%rax) movq -0x8(%rbp), %rax movss 0x37b60(%rip), %xmm0 # 0x8c0c8 movss %xmm0, -0x40(%rbp) movl $0x0, -0x3c(%rbp) movl $0x0, -0x38(%rbp) movss 0x383d1(%rip), %xmm0 # 0x8c954 movss %xmm0, -0x34(%rbp) movq -0x40(%rbp), %rcx movq %rcx, 0x38(%rax) movq -0x38(%rbp), %rcx movq %rcx, 0x40(%rax) movq -0x8(%rbp), %rax xorps %xmm0, %xmm0 movss %xmm0, 0x48(%rax) movq -0x8(%rbp), %rax movq $0x0, 0x50(%rax) movq -0x8(%rbp), %rax movl $0x0, 0x58(%rax) movq -0x8(%rbp), %rax movl $0x0, 0x5c(%rax) movq -0x8(%rbp), %rdi addq $0x60, %rdi callq 0x63b30 movq -0x8(%rbp), %rax movl $0x0, 0x80(%rax) movq -0x8(%rbp), %rax movl $0x3, 0x84(%rax) movq -0x8(%rbp), %rax movss 0x37dc9(%rip), %xmm0 # 0x8c3c4 movss %xmm0, 0x88(%rax) movq -0x8(%rbp), %rax movss 0x37ab9(%rip), %xmm0 # 0x8c0c8 movss %xmm0, 0x8c(%rax) movq -0x8(%rbp), %rax movb $0x0, 0x90(%rax) movq -0x8(%rbp), %rax movq $0x0, 0x98(%rax) movq -0x8(%rbp), %rax addq $0x40, %rsp popq %rbp retq nopl (%rax,%rax)
plutovg_state_create: push rbp mov rbp, rsp sub rsp, 40h mov edi, 0A0h call _malloc mov [rbp+var_8], rax mov rax, [rbp+var_8] mov qword ptr [rax], 0 mov rax, [rbp+var_8] mov qword ptr [rax+8], 0 mov rax, [rbp+var_8] xorps xmm0, xmm0 movss dword ptr [rbp+var_18], xmm0 xorps xmm0, xmm0 movss dword ptr [rbp+var_18+4], xmm0 xorps xmm0, xmm0 movss dword ptr [rbp+var_10], xmm0 movss xmm0, cs:flt_8C0C8 movss dword ptr [rbp+var_10+4], xmm0 mov rcx, [rbp+var_18] mov [rax+10h], rcx mov rcx, [rbp+var_10] mov [rax+18h], rcx mov rax, [rbp+var_8] movss xmm0, cs:flt_8C0C8 movss dword ptr [rbp+var_30], xmm0 xorps xmm0, xmm0 movss dword ptr [rbp+var_30+4], xmm0 xorps xmm0, xmm0 movss dword ptr [rbp+var_28], xmm0 movss xmm0, cs:flt_8C0C8 movss dword ptr [rbp+var_28+4], xmm0 xorps xmm0, xmm0 movss dword ptr [rbp+var_20], xmm0 xorps xmm0, xmm0 movss dword ptr [rbp+var_20+4], xmm0 mov rcx, [rbp+var_30] mov [rax+20h], rcx mov rcx, [rbp+var_28] mov [rax+28h], rcx mov rcx, [rbp+var_20] mov [rax+30h], rcx mov rax, [rbp+var_8] movss xmm0, cs:flt_8C0C8 movss dword ptr [rbp+var_40], xmm0 mov dword ptr [rbp+var_40+4], 0 mov dword ptr [rbp+var_38], 0 movss xmm0, cs:dword_8C954 movss dword ptr [rbp+var_38+4], xmm0 mov rcx, [rbp+var_40] mov [rax+38h], rcx mov rcx, [rbp+var_38] mov [rax+40h], rcx mov rax, [rbp+var_8] xorps xmm0, xmm0 movss dword ptr [rax+48h], xmm0 mov rax, [rbp+var_8] mov qword ptr [rax+50h], 0 mov rax, [rbp+var_8] mov dword ptr [rax+58h], 0 mov rax, [rbp+var_8] mov dword ptr [rax+5Ch], 0 mov rdi, [rbp+var_8] add rdi, 60h ; '`' call plutovg_span_buffer_init mov rax, [rbp+var_8] mov dword ptr [rax+80h], 0 mov rax, [rbp+var_8] mov dword ptr [rax+84h], 3 mov rax, [rbp+var_8] movss xmm0, cs:dword_8C3C4 movss dword ptr [rax+88h], xmm0 mov rax, [rbp+var_8] movss xmm0, cs:flt_8C0C8 movss dword ptr [rax+8Ch], xmm0 mov rax, [rbp+var_8] mov byte ptr [rax+90h], 0 mov rax, [rbp+var_8] mov qword ptr [rax+98h], 0 mov rax, [rbp+var_8] add rsp, 40h pop rbp retn
long long plutovg_state_create() { long long v1; // [rsp+38h] [rbp-8h] v1 = malloc(160LL); *(_QWORD *)v1 = 0LL; *(_QWORD *)(v1 + 8) = 0LL; *(_QWORD *)(v1 + 16) = 0LL; *(_QWORD *)(v1 + 24) = 0x3F80000000000000LL; *(_QWORD *)(v1 + 32) = 1065353216LL; *(_QWORD *)(v1 + 40) = 0x3F80000000000000LL; *(_QWORD *)(v1 + 48) = 0LL; *(_QWORD *)(v1 + 56) = 1065353216LL; *(_QWORD *)(v1 + 64) = 0x4120000000000000LL; *(_DWORD *)(v1 + 72) = 0; *(_QWORD *)(v1 + 80) = 0LL; *(_DWORD *)(v1 + 88) = 0; *(_DWORD *)(v1 + 92) = 0; plutovg_span_buffer_init(v1 + 96); *(_DWORD *)(v1 + 128) = 0; *(_DWORD *)(v1 + 132) = 3; *(_DWORD *)(v1 + 136) = 1094713344; *(_DWORD *)(v1 + 140) = 1065353216; *(_BYTE *)(v1 + 144) = 0; *(_QWORD *)(v1 + 152) = 0LL; return v1; }
plutovg_state_create: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV EDI,0xa0 CALL 0x0010b4d0 MOV qword ptr [RBP + -0x8],RAX MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x8],0x0 MOV RAX,qword ptr [RBP + -0x8] XORPS XMM0,XMM0 MOVSS dword ptr [RBP + -0x18],XMM0 XORPS XMM0,XMM0 MOVSS dword ptr [RBP + -0x14],XMM0 XORPS XMM0,XMM0 MOVSS dword ptr [RBP + -0x10],XMM0 MOVSS XMM0,dword ptr [0x0018c0c8] MOVSS dword ptr [RBP + -0xc],XMM0 MOV RCX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x10],RCX MOV RCX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x18],RCX MOV RAX,qword ptr [RBP + -0x8] MOVSS XMM0,dword ptr [0x0018c0c8] MOVSS dword ptr [RBP + -0x30],XMM0 XORPS XMM0,XMM0 MOVSS dword ptr [RBP + -0x2c],XMM0 XORPS XMM0,XMM0 MOVSS dword ptr [RBP + -0x28],XMM0 MOVSS XMM0,dword ptr [0x0018c0c8] MOVSS dword ptr [RBP + -0x24],XMM0 XORPS XMM0,XMM0 MOVSS dword ptr [RBP + -0x20],XMM0 XORPS XMM0,XMM0 MOVSS dword ptr [RBP + -0x1c],XMM0 MOV RCX,qword ptr [RBP + -0x30] MOV qword ptr [RAX + 0x20],RCX MOV RCX,qword ptr [RBP + -0x28] MOV qword ptr [RAX + 0x28],RCX MOV RCX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x30],RCX MOV RAX,qword ptr [RBP + -0x8] MOVSS XMM0,dword ptr [0x0018c0c8] MOVSS dword ptr [RBP + -0x40],XMM0 MOV dword ptr [RBP + -0x3c],0x0 MOV dword ptr [RBP + -0x38],0x0 MOVSS XMM0,dword ptr [0x0018c954] MOVSS dword ptr [RBP + -0x34],XMM0 MOV RCX,qword ptr [RBP + -0x40] MOV qword ptr [RAX + 0x38],RCX MOV RCX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x40],RCX MOV RAX,qword ptr [RBP + -0x8] XORPS XMM0,XMM0 MOVSS dword ptr [RAX + 0x48],XMM0 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x50],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x58],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x5c],0x0 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x60 CALL 0x00163b30 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x80],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x84],0x3 MOV RAX,qword ptr [RBP + -0x8] MOVSS XMM0,dword ptr [0x0018c3c4] MOVSS dword ptr [RAX + 0x88],XMM0 MOV RAX,qword ptr [RBP + -0x8] MOVSS XMM0,dword ptr [0x0018c0c8] MOVSS dword ptr [RAX + 0x8c],XMM0 MOV RAX,qword ptr [RBP + -0x8] MOV byte ptr [RAX + 0x90],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x98],0x0 MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x40 POP RBP RET
int8 * plutovg_state_create(void) { uint uVar1; int8 *puVar2; puVar2 = (int8 *)malloc(0xa0); *puVar2 = 0; puVar2[1] = 0; uVar1 = DAT_0018c0c8; puVar2[2] = 0; puVar2[3] = (ulong)uVar1 << 0x20; uVar1 = DAT_0018c0c8; puVar2[4] = (ulong)DAT_0018c0c8; puVar2[5] = (ulong)uVar1 << 0x20; puVar2[6] = 0; uVar1 = DAT_0018c954; puVar2[7] = (ulong)DAT_0018c0c8; puVar2[8] = (ulong)uVar1 << 0x20; *(int4 *)(puVar2 + 9) = 0; puVar2[10] = 0; *(int4 *)(puVar2 + 0xb) = 0; *(int4 *)((long)puVar2 + 0x5c) = 0; plutovg_span_buffer_init(puVar2 + 0xc); *(int4 *)(puVar2 + 0x10) = 0; *(int4 *)((long)puVar2 + 0x84) = 3; *(int4 *)(puVar2 + 0x11) = DAT_0018c3c4; *(uint *)((long)puVar2 + 0x8c) = DAT_0018c0c8; *(int1 *)(puVar2 + 0x12) = 0; puVar2[0x13] = 0; return puVar2; }
27,603
plutovg_state_create
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-canvas.c
static plutovg_state_t* plutovg_state_create(void) { plutovg_state_t* state = malloc(sizeof(plutovg_state_t)); state->paint = NULL; state->font_face = NULL; state->color = PLUTOVG_BLACK_COLOR; state->matrix = PLUTOVG_IDENTITY_MATRIX; state->stroke.style = PLUTOVG_DEFAULT_STROKE_STYLE; state->stroke.dash.offset = 0.f; plutovg_array_init(state->stroke.dash.array); plutovg_span_buffer_init(&state->clip_spans); state->winding = PLUTOVG_FILL_RULE_NON_ZERO; state->op = PLUTOVG_OPERATOR_SRC_OVER; state->font_size = 12.f; state->opacity = 1.f; state->clipping = false; state->next = NULL; return state; }
O1
c
plutovg_state_create: pushq %r14 pushq %rbx pushq %rax movl $0xa0, %edi callq 0xa400 movq %rax, %rbx xorps %xmm0, %xmm0 movups %xmm0, (%rax) movups %xmm0, 0xc(%rax) movsd 0x21452(%rip), %xmm1 # 0x44990 movups %xmm1, 0x1c(%rax) movaps 0x1fbc7(%rip), %xmm1 # 0x43110 movups %xmm1, 0x2c(%rax) xorl %r14d, %r14d movq %r14, 0x3c(%rax) movq $0x41200000, 0x44(%rax) # imm = 0x41200000 leaq 0x60(%rax), %rdi movups %xmm0, 0x50(%rax) callq 0x2cc5c movabsq $0x300000000, %rax # imm = 0x300000000 movq %rax, 0x80(%rbx) movabsq $0x3f80000041400000, %rax # imm = 0x3F80000041400000 movq %rax, 0x88(%rbx) movb $0x0, 0x90(%rbx) movq %r14, 0x98(%rbx) movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r14 retq
plutovg_state_create: push r14 push rbx push rax mov edi, 0A0h call _malloc mov rbx, rax xorps xmm0, xmm0 movups xmmword ptr [rax], xmm0 movups xmmword ptr [rax+0Ch], xmm0 movsd xmm1, cs:qword_44990 movups xmmword ptr [rax+1Ch], xmm1 movaps xmm1, cs:xmmword_43110 movups xmmword ptr [rax+2Ch], xmm1 xor r14d, r14d mov [rax+3Ch], r14 mov qword ptr [rax+44h], 41200000h lea rdi, [rax+60h] movups xmmword ptr [rax+50h], xmm0 call plutovg_span_buffer_init mov rax, 300000000h mov [rbx+80h], rax mov rax, 3F80000041400000h mov [rbx+88h], rax mov byte ptr [rbx+90h], 0 mov [rbx+98h], r14 mov rax, rbx add rsp, 8 pop rbx pop r14 retn
long long plutovg_state_create() { long long v0; // rbx v0 = malloc(160LL); *(_OWORD *)v0 = 0LL; *(_OWORD *)(v0 + 12) = 0LL; *(_OWORD *)(v0 + 28) = 0x3F8000003F800000uLL; *(_OWORD *)(v0 + 44) = xmmword_43110; *(_QWORD *)(v0 + 60) = 0LL; *(_QWORD *)(v0 + 68) = 1092616192LL; *(_OWORD *)(v0 + 80) = 0LL; plutovg_span_buffer_init(v0 + 96); *(_QWORD *)(v0 + 128) = 0x300000000LL; *(_QWORD *)(v0 + 136) = 0x3F80000041400000LL; *(_BYTE *)(v0 + 144) = 0; *(_QWORD *)(v0 + 152) = 0LL; return v0; }
plutovg_state_create: PUSH R14 PUSH RBX PUSH RAX MOV EDI,0xa0 CALL 0x0010a400 MOV RBX,RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX],XMM0 MOVUPS xmmword ptr [RAX + 0xc],XMM0 MOVSD XMM1,qword ptr [0x00144990] MOVUPS xmmword ptr [RAX + 0x1c],XMM1 MOVAPS XMM1,xmmword ptr [0x00143110] MOVUPS xmmword ptr [RAX + 0x2c],XMM1 XOR R14D,R14D MOV qword ptr [RAX + 0x3c],R14 MOV qword ptr [RAX + 0x44],0x41200000 LEA RDI,[RAX + 0x60] MOVUPS xmmword ptr [RAX + 0x50],XMM0 CALL 0x0012cc5c MOV RAX,0x300000000 MOV qword ptr [RBX + 0x80],RAX MOV RAX,0x3f80000041400000 MOV qword ptr [RBX + 0x88],RAX MOV byte ptr [RBX + 0x90],0x0 MOV qword ptr [RBX + 0x98],R14 MOV RAX,RBX ADD RSP,0x8 POP RBX POP R14 RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ int8 * plutovg_state_create(void) { int4 uVar1; int4 uVar2; int4 uVar3; int8 *puVar4; puVar4 = (int8 *)malloc(0xa0); *puVar4 = 0; puVar4[1] = 0; *(int8 *)((long)puVar4 + 0xc) = 0; *(int8 *)((long)puVar4 + 0x14) = 0; *(int8 *)((long)puVar4 + 0x1c) = DAT_00144990; *(int8 *)((long)puVar4 + 0x24) = 0; uVar3 = _UNK_0014311c; uVar2 = _UNK_00143118; uVar1 = _UNK_00143114; *(int4 *)((long)puVar4 + 0x2c) = _DAT_00143110; *(int4 *)(puVar4 + 6) = uVar1; *(int4 *)((long)puVar4 + 0x34) = uVar2; *(int4 *)(puVar4 + 7) = uVar3; *(int8 *)((long)puVar4 + 0x3c) = 0; *(int8 *)((long)puVar4 + 0x44) = 0x41200000; puVar4[10] = 0; puVar4[0xb] = 0; plutovg_span_buffer_init(puVar4 + 0xc); puVar4[0x10] = 0x300000000; puVar4[0x11] = 0x3f80000041400000; *(int1 *)(puVar4 + 0x12) = 0; puVar4[0x13] = 0; return puVar4; }
27,604
extent_to_bitmap_blocks
eloqsql/storage/maria/ma_blockrec.c
static my_bool extent_to_bitmap_blocks(MARIA_HA *info, MARIA_BITMAP_BLOCKS *blocks, pgcache_page_no_t head_page, uint extent_count, const uchar *extent_info) { MARIA_BITMAP_BLOCK *block, *start_block; MARIA_SHARE *share= info->s; uint i, tail_page; DBUG_ENTER("extent_to_bitmap_blocks"); if (allocate_dynamic(&info->bitmap_blocks, extent_count + 2)) DBUG_RETURN(1); block= blocks->block= dynamic_element(&info->bitmap_blocks, 0, MARIA_BITMAP_BLOCK*); blocks->count= extent_count + 1; blocks->tail_page_skipped= blocks->page_skipped= 0; block->page= head_page; block->page_count= 1; block->used= BLOCKUSED_USED | BLOCKUSED_USE_ORG_BITMAP; /* Impossible value, will force storage of real value */ block->org_bitmap_value= 255; start_block= block++; for (i=0 ; i++ < extent_count ; block++, extent_info+= ROW_EXTENT_SIZE) { uint page_count= uint2korr(extent_info + ROW_EXTENT_PAGE_SIZE); if (page_count & START_EXTENT_BIT) { page_count&= ~START_EXTENT_BIT; start_block->sub_blocks= (uint) (block - start_block); start_block= block; } block->page= page_korr(extent_info); block->page_count= page_count; block->sub_blocks= 0; if (block->page_count == 0) { /* Extend allocated but not used by write_block_record() */ DBUG_ASSERT(block->page == 0); /* This is the last block */ blocks->count= i; break; } if ((tail_page= page_count & TAIL_BIT)) page_count= 1; /* Check if wrong data */ if (block->page == 0 || page_count == 0 || (block->page + page_count) * share->block_size > share->state.state.data_file_length) { DBUG_PRINT("error", ("page: %lu page_count: %u tail: %u length: %ld data_length: %ld", (ulong) block->page, (block->page_count & ~TAIL_BIT), (uint) MY_TEST(block->page_count & TAIL_BIT), (ulong) ((block->page + (page_count & ~TAIL_BIT)) * share->block_size), (ulong) share->state.state.data_file_length)); DBUG_RETURN(1); } if (tail_page) { block->org_bitmap_value= _ma_bitmap_get_page_bits(info, &share->bitmap, block->page); block->used= (BLOCKUSED_TAIL | BLOCKUSED_USED | BLOCKUSED_USE_ORG_BITMAP); } else { my_bool res; mysql_mutex_lock(&share->bitmap.bitmap_lock); res= _ma_bitmap_set_full_page_bits(info, &share->bitmap, block->page, page_count); mysql_mutex_unlock(&share->bitmap.bitmap_lock); if (res) DBUG_RETURN(1); block->used= BLOCKUSED_USED; } } start_block->sub_blocks= (uint) (block - start_block); DBUG_RETURN(0); }
O3
c
extent_to_bitmap_blocks: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %r8, %rbx movl %ecx, %r14d movq %rdx, -0x30(%rbp) movq %rsi, %r12 movq %rdi, %r13 movq (%rdi), %rax movq %rax, -0x48(%rbp) leaq 0x2c0(%rdi), %r15 leal 0x2(%r14), %esi movq %r15, %rdi callq 0x96c31 testb %al, %al je 0x4d92a movb $0x1, %al jmp 0x4db0a movq %r13, -0x40(%rbp) movq (%r15), %rcx movq %rcx, (%r12) leal 0x1(%r14), %eax movl %eax, 0x8(%r12) movw $0x0, 0xc(%r12) movq -0x30(%rbp), %rax movq %rax, (%rcx) movl $0x1, 0x8(%rcx) movw $0xff03, 0x14(%rcx) # imm = 0xFF03 leaq 0x18(%rcx), %r15 testl %r14d, %r14d movq %rcx, -0x38(%rbp) je 0x4daf3 movq %r12, -0x58(%rbp) movq -0x48(%rbp), %rsi leaq 0xa10(%rsi), %rax movq %rax, -0x50(%rbp) leaq 0xa98(%rsi), %rax movq %rax, -0x30(%rbp) negl %r14d movq %r14, -0x60(%rbp) leaq 0x18(%rcx), %r14 addq $0x5, %rbx movl $0x1, %r12d movzwl (%rbx), %r13d btl $0xe, %r13d jae 0x4d9cb andl $0xbfff, %r13d # imm = 0xBFFF movq %r14, %rax movq -0x38(%rbp), %rcx subq %rcx, %rax shrq $0x3, %rax imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB movl %eax, 0x10(%rcx) movq %r15, -0x38(%rbp) movq -0x40(%rbp), %rdi movl -0x5(%rbx), %eax movzbl -0x1(%rbx), %edx shlq $0x20, %rdx orq %rax, %rdx movq %rdx, (%r15) movl %r13d, 0x8(%r15) movl $0x0, 0x10(%r15) testl %r13d, %r13d je 0x4daeb testq %rdx, %rdx je 0x4d923 cmpl $0x8000, %r13d # imm = 0x8000 movl $0x1, %eax cmovbl %r13d, %eax addq %rdx, %rax movl 0x7bc(%rsi), %ecx imulq %rax, %rcx cmpq 0x40(%rsi), %rcx ja 0x4d923 cmpl $0x8000, %r13d # imm = 0x8000 jae 0x4da80 cmpq $0x0, 0xad8(%rsi) jne 0x4dabf movq -0x30(%rbp), %rdi callq 0x2a1f0 movq (%r15), %rdx movq -0x40(%rbp), %rdi movq -0x50(%rbp), %rsi movl %r13d, %ecx callq 0x525c8 movl %eax, %r13d movq -0x48(%rbp), %rax movq 0xad8(%rax), %rdi testq %rdi, %rdi jne 0x4dad9 movq -0x30(%rbp), %rdi callq 0x2a1c0 movb $0x1, %al testb %r13b, %r13b je 0x4da8f jmp 0x4db0a movq -0x50(%rbp), %rsi callq 0x523cd movb %al, 0x15(%r15) movb $0x7, %al movb %al, 0x14(%r15) addq $0x18, %r15 movq -0x60(%rbp), %rax addl %r12d, %eax incl %eax movl %r12d, %ecx incl %ecx addq $0x18, %r14 addq $0x7, %rbx movl %ecx, %r12d cmpl $0x1, %eax movq -0x48(%rbp), %rsi jne 0x4d99e jmp 0x4daf3 movq -0x30(%rbp), %rdi leaq 0x93ed5(%rip), %rsi # 0xe199f movl $0x97d, %edx # imm = 0x97D callq 0x2ff2f jmp 0x4da45 leaq 0x343038(%rip), %rax # 0x390b18 movq (%rax), %rax callq *0x160(%rax) jmp 0x4da6b movq -0x58(%rbp), %rax movl %r12d, 0x8(%rax) movq -0x38(%rbp), %rcx subq %rcx, %r15 shrq $0x3, %r15 imull $0xaaaaaaab, %r15d, %eax # imm = 0xAAAAAAAB movl %eax, 0x10(%rcx) xorl %eax, %eax addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
extent_to_bitmap_blocks: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov rbx, r8 mov r14d, ecx mov [rbp+var_30], rdx mov r12, rsi mov r13, rdi mov rax, [rdi] mov [rbp+var_48], rax lea r15, [rdi+2C0h] lea esi, [r14+2] mov rdi, r15 call allocate_dynamic test al, al jz short loc_4D92A loc_4D923: mov al, 1 jmp loc_4DB0A loc_4D92A: mov [rbp+var_40], r13 mov rcx, [r15] mov [r12], rcx lea eax, [r14+1] mov [r12+8], eax mov word ptr [r12+0Ch], 0 mov rax, [rbp+var_30] mov [rcx], rax mov dword ptr [rcx+8], 1 mov word ptr [rcx+14h], 0FF03h lea r15, [rcx+18h] test r14d, r14d mov [rbp+var_38], rcx jz loc_4DAF3 mov [rbp+var_58], r12 mov rsi, [rbp+var_48] lea rax, [rsi+0A10h] mov [rbp+var_50], rax lea rax, [rsi+0A98h] mov [rbp+var_30], rax neg r14d mov [rbp+var_60], r14 lea r14, [rcx+18h] add rbx, 5 mov r12d, 1 loc_4D99E: movzx r13d, word ptr [rbx] bt r13d, 0Eh jnb short loc_4D9CB and r13d, 0BFFFh mov rax, r14 mov rcx, [rbp+var_38] sub rax, rcx shr rax, 3 imul eax, 0AAAAAAABh mov [rcx+10h], eax mov [rbp+var_38], r15 loc_4D9CB: mov rdi, [rbp+var_40] mov eax, [rbx-5] movzx edx, byte ptr [rbx-1] shl rdx, 20h or rdx, rax mov [r15], rdx mov [r15+8], r13d mov dword ptr [r15+10h], 0 test r13d, r13d jz loc_4DAEB test rdx, rdx jz loc_4D923 cmp r13d, 8000h mov eax, 1 cmovb eax, r13d add rax, rdx mov ecx, [rsi+7BCh] imul rcx, rax cmp rcx, [rsi+40h] ja loc_4D923 cmp r13d, 8000h jnb short loc_4DA80 cmp qword ptr [rsi+0AD8h], 0 jnz loc_4DABF mov rdi, [rbp+var_30] call _pthread_mutex_lock loc_4DA45: mov rdx, [r15] mov rdi, [rbp+var_40] mov rsi, [rbp+var_50] mov ecx, r13d call _ma_bitmap_set_full_page_bits mov r13d, eax mov rax, [rbp+var_48] mov rdi, [rax+0AD8h] test rdi, rdi jnz short loc_4DAD9 loc_4DA6B: mov rdi, [rbp+var_30] call _pthread_mutex_unlock mov al, 1 test r13b, r13b jz short loc_4DA8F jmp loc_4DB0A loc_4DA80: mov rsi, [rbp+var_50] call _ma_bitmap_get_page_bits mov [r15+15h], al mov al, 7 loc_4DA8F: mov [r15+14h], al add r15, 18h mov rax, [rbp+var_60] add eax, r12d inc eax mov ecx, r12d inc ecx add r14, 18h add rbx, 7 mov r12d, ecx cmp eax, 1 mov rsi, [rbp+var_48] jnz loc_4D99E jmp short loc_4DAF3 loc_4DABF: mov rdi, [rbp+var_30] lea rsi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 97Dh call psi_mutex_lock jmp loc_4DA45 loc_4DAD9: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_4DA6B loc_4DAEB: mov rax, [rbp+var_58] mov [rax+8], r12d loc_4DAF3: mov rcx, [rbp+var_38] sub r15, rcx shr r15, 3 imul eax, r15d, 0AAAAAAABh mov [rcx+10h], eax xor eax, eax loc_4DB0A: add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
char extent_to_bitmap_blocks(long long *a1, long long a2, long long a3, int a4, long long a5) { long long *v7; // r15 char result; // al long long v9; // rcx long long v10; // r15 long long v11; // rsi long long v12; // r14 unsigned __int16 *v13; // rbx int v14; // r12d unsigned int v15; // r13d unsigned long long v16; // rdx long long v17; // rax char v18; // r13 int v19; // eax int v20; // [rsp+0h] [rbp-60h] long long v22; // [rsp+10h] [rbp-50h] long long v23; // [rsp+18h] [rbp-48h] long long v24; // [rsp+28h] [rbp-38h] long long v26; // [rsp+30h] [rbp-30h] v23 = *a1; v7 = a1 + 88; if ( (unsigned __int8)allocate_dynamic(a1 + 88, (unsigned int)(a4 + 2)) ) return 1; v9 = *v7; *(_QWORD *)a2 = *v7; *(_DWORD *)(a2 + 8) = a4 + 1; *(_WORD *)(a2 + 12) = 0; *(_QWORD *)v9 = a3; *(_DWORD *)(v9 + 8) = 1; *(_WORD *)(v9 + 20) = -253; v10 = v9 + 24; v24 = v9; if ( a4 ) { v11 = v23; v22 = v23 + 2576; v26 = v23 + 2712; v20 = -a4; v12 = v9 + 24; v13 = (unsigned __int16 *)(a5 + 5); v14 = 1; while ( 1 ) { v15 = *v13; if ( (v15 & 0x4000) != 0 ) { v15 &= 0xBFFFu; *(_DWORD *)(v24 + 16) = -1431655765 * ((unsigned long long)(v12 - v24) >> 3); v24 = v10; } v16 = *(unsigned int *)((char *)v13 - 5) | ((unsigned long long)*((unsigned __int8 *)v13 - 1) << 32); *(_QWORD *)v10 = v16; *(_DWORD *)(v10 + 8) = v15; *(_DWORD *)(v10 + 16) = 0; if ( !v15 ) break; if ( !v16 ) return 1; v17 = 1LL; if ( v15 < 0x8000 ) v17 = v15; if ( (v16 + v17) * *(unsigned int *)(v11 + 1980) > *(_QWORD *)(v11 + 64) ) return 1; if ( v15 >= 0x8000 ) { *(_BYTE *)(v10 + 21) = ma_bitmap_get_page_bits(a1, v22, v16); result = 7; } else { if ( *(_QWORD *)(v11 + 2776) ) psi_mutex_lock(v26, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_blockrec.c", 0x97Du); else pthread_mutex_lock(v26); v18 = ma_bitmap_set_full_page_bits(a1, v22, *(_QWORD *)v10, v15); if ( *(_QWORD *)(v23 + 2776) ) PSI_server[44](); pthread_mutex_unlock(v26); result = 1; if ( v18 ) return result; } *(_BYTE *)(v10 + 20) = result; v10 += 24LL; v19 = v14 + v20 + 1; v12 += 24LL; v13 = (unsigned __int16 *)((char *)v13 + 7); ++v14; v11 = v23; if ( v19 == 1 ) goto LABEL_24; } *(_DWORD *)(a2 + 8) = v14; } LABEL_24: *(_DWORD *)(v24 + 16) = -1431655765 * ((unsigned long long)(v10 - v24) >> 3); return 0; }
extent_to_bitmap_blocks: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV RBX,R8 MOV R14D,ECX MOV qword ptr [RBP + -0x30],RDX MOV R12,RSI MOV R13,RDI MOV RAX,qword ptr [RDI] MOV qword ptr [RBP + -0x48],RAX LEA R15,[RDI + 0x2c0] LEA ESI,[R14 + 0x2] MOV RDI,R15 CALL 0x00196c31 TEST AL,AL JZ 0x0014d92a LAB_0014d923: MOV AL,0x1 JMP 0x0014db0a LAB_0014d92a: MOV qword ptr [RBP + -0x40],R13 MOV RCX,qword ptr [R15] MOV qword ptr [R12],RCX LEA EAX,[R14 + 0x1] MOV dword ptr [R12 + 0x8],EAX MOV word ptr [R12 + 0xc],0x0 MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RCX],RAX MOV dword ptr [RCX + 0x8],0x1 MOV word ptr [RCX + 0x14],0xff03 LEA R15,[RCX + 0x18] TEST R14D,R14D MOV qword ptr [RBP + -0x38],RCX JZ 0x0014daf3 MOV qword ptr [RBP + -0x58],R12 MOV RSI,qword ptr [RBP + -0x48] LEA RAX,[RSI + 0xa10] MOV qword ptr [RBP + -0x50],RAX LEA RAX,[RSI + 0xa98] MOV qword ptr [RBP + -0x30],RAX NEG R14D MOV qword ptr [RBP + -0x60],R14 LEA R14,[RCX + 0x18] ADD RBX,0x5 MOV R12D,0x1 LAB_0014d99e: MOVZX R13D,word ptr [RBX] BT R13D,0xe JNC 0x0014d9cb AND R13D,0xbfff MOV RAX,R14 MOV RCX,qword ptr [RBP + -0x38] SUB RAX,RCX SHR RAX,0x3 IMUL EAX,EAX,-0x55555555 MOV dword ptr [RCX + 0x10],EAX MOV qword ptr [RBP + -0x38],R15 LAB_0014d9cb: MOV RDI,qword ptr [RBP + -0x40] MOV EAX,dword ptr [RBX + -0x5] MOVZX EDX,byte ptr [RBX + -0x1] SHL RDX,0x20 OR RDX,RAX MOV qword ptr [R15],RDX MOV dword ptr [R15 + 0x8],R13D MOV dword ptr [R15 + 0x10],0x0 TEST R13D,R13D JZ 0x0014daeb TEST RDX,RDX JZ 0x0014d923 CMP R13D,0x8000 MOV EAX,0x1 CMOVC EAX,R13D ADD RAX,RDX MOV ECX,dword ptr [RSI + 0x7bc] IMUL RCX,RAX CMP RCX,qword ptr [RSI + 0x40] JA 0x0014d923 CMP R13D,0x8000 JNC 0x0014da80 CMP qword ptr [RSI + 0xad8],0x0 JNZ 0x0014dabf MOV RDI,qword ptr [RBP + -0x30] CALL 0x0012a1f0 LAB_0014da45: MOV RDX,qword ptr [R15] MOV RDI,qword ptr [RBP + -0x40] MOV RSI,qword ptr [RBP + -0x50] MOV ECX,R13D CALL 0x001525c8 MOV R13D,EAX MOV RAX,qword ptr [RBP + -0x48] MOV RDI,qword ptr [RAX + 0xad8] TEST RDI,RDI JNZ 0x0014dad9 LAB_0014da6b: MOV RDI,qword ptr [RBP + -0x30] CALL 0x0012a1c0 MOV AL,0x1 TEST R13B,R13B JZ 0x0014da8f JMP 0x0014db0a LAB_0014da80: MOV RSI,qword ptr [RBP + -0x50] CALL 0x001523cd MOV byte ptr [R15 + 0x15],AL MOV AL,0x7 LAB_0014da8f: MOV byte ptr [R15 + 0x14],AL ADD R15,0x18 MOV RAX,qword ptr [RBP + -0x60] ADD EAX,R12D INC EAX MOV ECX,R12D INC ECX ADD R14,0x18 ADD RBX,0x7 MOV R12D,ECX CMP EAX,0x1 MOV RSI,qword ptr [RBP + -0x48] JNZ 0x0014d99e JMP 0x0014daf3 LAB_0014dabf: MOV RDI,qword ptr [RBP + -0x30] LEA RSI,[0x1e199f] MOV EDX,0x97d CALL 0x0012ff2f JMP 0x0014da45 LAB_0014dad9: LEA RAX,[0x490b18] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x0014da6b LAB_0014daeb: MOV RAX,qword ptr [RBP + -0x58] MOV dword ptr [RAX + 0x8],R12D LAB_0014daf3: MOV RCX,qword ptr [RBP + -0x38] SUB R15,RCX SHR R15,0x3 IMUL EAX,R15D,-0x55555555 MOV dword ptr [RCX + 0x10],EAX XOR EAX,EAX LAB_0014db0a: ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 extent_to_bitmap_blocks(long *param_1,long *param_2,ulong param_3,int param_4,long param_5) { pthread_mutex_t *__mutex; ushort uVar1; long lVar2; char cVar3; int1 uVar4; int8 uVar5; ulong uVar6; ulong uVar7; ushort *puVar8; int iVar9; uint uVar10; ulong *puVar11; ulong *puVar12; bool bVar13; ulong *local_40; lVar2 = *param_1; cVar3 = allocate_dynamic(param_1 + 0x58,param_4 + 2); if (cVar3 == '\0') { puVar11 = (ulong *)param_1[0x58]; *param_2 = (long)puVar11; *(int *)(param_2 + 1) = param_4 + 1; *(int2 *)((long)param_2 + 0xc) = 0; *puVar11 = param_3; *(int4 *)(puVar11 + 1) = 1; *(int2 *)((long)puVar11 + 0x14) = 0xff03; puVar12 = puVar11 + 3; local_40 = puVar11; if (param_4 != 0) { __mutex = (pthread_mutex_t *)(lVar2 + 0xa98); puVar8 = (ushort *)(param_5 + 5); iVar9 = 1; do { puVar11 = puVar11 + 3; uVar1 = *puVar8; uVar10 = (uint)uVar1; if ((uVar1 >> 0xe & 1) != 0) { uVar10 = uVar1 & 0xbfff; *(int *)(local_40 + 2) = (int)((ulong)((long)puVar11 - (long)local_40) >> 3) * -0x55555555 ; local_40 = puVar12; } uVar7 = (ulong)*(uint5 *)((long)puVar8 + -5); *puVar12 = uVar7; *(uint *)(puVar12 + 1) = uVar10; *(int4 *)(puVar12 + 2) = 0; if (uVar10 == 0) { *(int *)(param_2 + 1) = iVar9; break; } if (uVar7 == 0) goto LAB_0014d923; uVar6 = 1; if (uVar10 < 0x8000) { uVar6 = (ulong)uVar10; } uVar7 = (ulong)*(uint *)(lVar2 + 0x7bc) * (uVar6 + uVar7); if (*(ulong *)(lVar2 + 0x40) <= uVar7 && uVar7 - *(ulong *)(lVar2 + 0x40) != 0) goto LAB_0014d923; if (uVar10 < 0x8000) { if (*(long *)(lVar2 + 0xad8) == 0) { pthread_mutex_lock(__mutex); } else { psi_mutex_lock(__mutex, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_blockrec.c", 0x97d); } cVar3 = _ma_bitmap_set_full_page_bits(param_1,lVar2 + 0xa10,*puVar12,uVar10); if (*(long *)(lVar2 + 0xad8) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); uVar4 = 1; if (cVar3 != '\0') { return 1; } } else { uVar4 = _ma_bitmap_get_page_bits(param_1,lVar2 + 0xa10); *(int1 *)((long)puVar12 + 0x15) = uVar4; uVar4 = 7; } *(int1 *)((long)puVar12 + 0x14) = uVar4; puVar12 = puVar12 + 3; puVar8 = (ushort *)((long)puVar8 + 7); bVar13 = iVar9 != param_4; iVar9 = iVar9 + 1; } while (bVar13); } *(int *)(local_40 + 2) = (int)((ulong)((long)puVar12 - (long)local_40) >> 3) * -0x55555555; uVar5 = 0; } else { LAB_0014d923: uVar5 = 1; } return uVar5; }
27,605
nglog::(anonymous namespace)::LogCleaner::GetOverdueLogNames(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l>>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
ng-log[P]ng-log/src/logging.cc
vector<string> LogCleaner::GetOverdueLogNames( string log_directory, const std::chrono::system_clock::time_point& current_time, const string& base_filename, const string& filename_extension) const { // The names of overdue logs. vector<string> overdue_log_names; // Try to get all files within log_directory. DIR* dir; struct dirent* ent; if ((dir = opendir(log_directory.c_str()))) { while ((ent = readdir(dir))) { if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) { continue; } string filepath = ent->d_name; const char* const dir_delim_end = possible_dir_delim + sizeof(possible_dir_delim); if (!log_directory.empty() && std::find(possible_dir_delim, dir_delim_end, log_directory[log_directory.size() - 1]) != dir_delim_end) { filepath = log_directory + filepath; } if (IsLogFromCurrentProject(filepath, base_filename, filename_extension) && IsLogLastModifiedOver(filepath, current_time)) { overdue_log_names.push_back(filepath); } } closedir(dir); } return overdue_log_names; }
O0
cpp
nglog::(anonymous namespace)::LogCleaner::GetOverdueLogNames(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l>>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const: pushq %rbp movq %rsp, %rbp subq $0x100, %rsp # imm = 0x100 movq %rdx, -0xb8(%rbp) movq %rdi, -0xd0(%rbp) movq %rdi, %rax movq %rax, -0xc8(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) movq -0x10(%rbp), %rax movq %rax, -0xc0(%rbp) movb $0x0, -0x31(%rbp) callq 0x19a60 movq -0xb8(%rbp), %rdi callq 0x92c0 movq %rax, %rdi callq 0x9b50 movq %rax, -0xb0(%rbp) jmp 0x1551c movq -0xb0(%rbp), %rax movq %rax, -0x40(%rbp) cmpq $0x0, %rax je 0x15755 jmp 0x15533 movq -0x40(%rbp), %rdi callq 0x9b70 movq %rax, -0xd8(%rbp) jmp 0x15545 movq -0xd8(%rbp), %rax movq %rax, -0x48(%rbp) cmpq $0x0, %rax je 0x15748 movq -0x48(%rbp), %rdi addq $0x13, %rdi leaq 0x399ac(%rip), %rsi # 0x4ef15 callq 0x9a70 cmpl $0x0, %eax je 0x1558c movq -0x48(%rbp), %rdi addq $0x13, %rdi leaq 0x38687(%rip), %rsi # 0x4dc09 callq 0x9a70 cmpl $0x0, %eax jne 0x1559f jmp 0x15533 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x50(%rbp) movl %eax, -0x54(%rbp) jmp 0x1577b movq -0x48(%rbp), %rax addq $0x13, %rax movq %rax, -0xe8(%rbp) leaq -0x79(%rbp), %rdi movq %rdi, -0xe0(%rbp) callq 0x9d10 movq -0xe8(%rbp), %rsi movq -0xe0(%rbp), %rdx leaq -0x78(%rbp), %rdi callq 0xcb30 jmp 0x155d7 leaq -0x79(%rbp), %rdi callq 0x97c0 movq -0xb8(%rbp), %rdi leaq 0x37e5a(%rip), %rax # 0x4d448 addq $0x1, %rax movq %rax, -0x88(%rbp) callq 0x9c30 testb $0x1, %al jne 0x156d2 movq -0xb8(%rbp), %rdi callq 0x94f0 movq -0xb8(%rbp), %rdi movq %rax, %rsi decq %rsi callq 0x9e40 movq %rax, -0xf0(%rbp) jmp 0x1562d movq -0xf0(%rbp), %rdx leaq 0x37e0d(%rip), %rdi # 0x4d448 leaq 0x37e07(%rip), %rsi # 0x4d449 callq 0x18750 movq %rax, -0xf8(%rbp) jmp 0x15650 movq -0xf8(%rbp), %rax leaq 0x37dea(%rip), %rcx # 0x4d448 addq $0x1, %rcx cmpq %rcx, %rax je 0x156d2 movq -0xb8(%rbp), %rsi leaq -0xa8(%rbp), %rdi leaq -0x78(%rbp), %rdx callq 0x1b310 jmp 0x15680 leaq -0x78(%rbp), %rdi leaq -0xa8(%rbp), %rsi callq 0x9910 leaq -0xa8(%rbp), %rdi callq 0x9ea8 jmp 0x156d2 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x50(%rbp) movl %eax, -0x54(%rbp) leaq -0x79(%rbp), %rdi callq 0x97c0 jmp 0x1577b movq %rax, %rcx movl %edx, %eax movq %rcx, -0x50(%rbp) movl %eax, -0x54(%rbp) leaq -0x78(%rbp), %rdi callq 0x9ea8 jmp 0x1577b movq -0xc0(%rbp), %rdi movq -0x28(%rbp), %rdx movq -0x30(%rbp), %rcx leaq -0x78(%rbp), %rsi callq 0x15790 movb %al, -0xf9(%rbp) jmp 0x156f2 movb -0xf9(%rbp), %al testb $0x1, %al jne 0x156fe jmp 0x1573a movq -0xc0(%rbp), %rdi movq -0x20(%rbp), %rdx leaq -0x78(%rbp), %rsi callq 0x15d10 movb %al, -0xfa(%rbp) jmp 0x1571a movb -0xfa(%rbp), %al testb $0x1, %al jne 0x15726 jmp 0x1573a movq -0xd0(%rbp), %rdi leaq -0x78(%rbp), %rsi callq 0x18870 jmp 0x15738 jmp 0x1573a leaq -0x78(%rbp), %rdi callq 0x9ea8 jmp 0x15533 movq -0x40(%rbp), %rdi callq 0x9bf0 jmp 0x15753 jmp 0x15755 movb $0x1, -0x31(%rbp) testb $0x1, -0x31(%rbp) jne 0x1576b movq -0xd0(%rbp), %rdi callq 0x19e80 movq -0xc8(%rbp), %rax addq $0x100, %rsp # imm = 0x100 popq %rbp retq movq -0xd0(%rbp), %rdi callq 0x19e80 movq -0x50(%rbp), %rdi callq 0x9d00
_ZNK5nglog12_GLOBAL__N_110LogCleaner18GetOverdueLogNamesENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNSt6chrono10time_pointINS8_3_V212system_clockENS8_8durationIlSt5ratioILl1ELl1000000000EEEEEERKS7_SK_: push rbp mov rbp, rsp sub rsp, 100h mov [rbp+var_B8], rdx mov [rbp+var_D0], rdi mov rax, rdi mov [rbp+var_C8], rax mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov [rbp+var_30], r9 mov rax, [rbp+var_10] mov [rbp+var_C0], rax mov [rbp+var_31], 0 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev; std::vector<std::string>::vector(void) mov rdi, [rbp+var_B8] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void) mov rdi, rax call _opendir mov [rbp+var_B0], rax jmp short $+2 loc_1551C: mov rax, [rbp+var_B0] mov [rbp+var_40], rax cmp rax, 0 jz loc_15755 jmp short $+2 loc_15533: mov rdi, [rbp+var_40] call _readdir mov [rbp+var_D8], rax jmp short $+2 loc_15545: mov rax, [rbp+var_D8] mov [rbp+var_48], rax cmp rax, 0 jz loc_15748 mov rdi, [rbp+var_48] add rdi, 13h lea rsi, aSectionNameSIs+50h; "." call _strcmp cmp eax, 0 jz short loc_1558C mov rdi, [rbp+var_48] add rdi, 13h lea rsi, asc_4DC09; ".." call _strcmp cmp eax, 0 jnz short loc_1559F loc_1558C: jmp short loc_15533 mov rcx, rax mov eax, edx mov [rbp+var_50], rcx mov [rbp+var_54], eax jmp loc_1577B loc_1559F: mov rax, [rbp+var_48] add rax, 13h mov [rbp+var_E8], rax lea rdi, [rbp+var_79] mov [rbp+var_E0], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rsi, [rbp+var_E8] mov rdx, [rbp+var_E0] lea rdi, [rbp+var_78] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_155D7: lea rdi, [rbp+var_79] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() mov rdi, [rbp+var_B8] lea rax, _ZN5nglog12_GLOBAL__N_118possible_dir_delimE; nglog::`anonymous namespace'::possible_dir_delim add rax, 1 mov [rbp+var_88], rax call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void) test al, 1 jnz loc_156D2 mov rdi, [rbp+var_B8] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv; std::string::size(void) mov rdi, [rbp+var_B8] mov rsi, rax dec rsi call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm; std::string::operator[](ulong) mov [rbp+var_F0], rax jmp short $+2 loc_1562D: mov rdx, [rbp+var_F0] lea rdi, _ZN5nglog12_GLOBAL__N_118possible_dir_delimE; nglog::`anonymous namespace'::possible_dir_delim lea rsi, _ZTSN5nglog4base6LoggerE; type descriptor name call _ZSt4findIPKccET_S2_S2_RKT0_; std::find<char const*,char>(char const*,char const*,char const&) mov [rbp+var_F8], rax jmp short $+2 loc_15650: mov rax, [rbp+var_F8] lea rcx, _ZN5nglog12_GLOBAL__N_118possible_dir_delimE; nglog::`anonymous namespace'::possible_dir_delim add rcx, 1 cmp rax, rcx jz short loc_156D2 mov rsi, [rbp+var_B8] lea rdi, [rbp+var_A8] lea rdx, [rbp+var_78] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_; std::operator+<char>(std::string const&,std::string const&) jmp short $+2 loc_15680: lea rdi, [rbp+var_78] lea rsi, [rbp+var_A8] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) lea rdi, [rbp+var_A8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_156D2 mov rcx, rax mov eax, edx mov [rbp+var_50], rcx mov [rbp+var_54], eax lea rdi, [rbp+var_79] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp loc_1577B mov rcx, rax mov eax, edx mov [rbp+var_50], rcx mov [rbp+var_54], eax lea rdi, [rbp+var_78]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp loc_1577B loc_156D2: mov rdi, [rbp+var_C0] mov rdx, [rbp+var_28] mov rcx, [rbp+var_30] lea rsi, [rbp+var_78] call _ZNK5nglog12_GLOBAL__N_110LogCleaner23IsLogFromCurrentProjectERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_S9_; nglog::`anonymous namespace'::LogCleaner::IsLogFromCurrentProject(std::string const&,std::string const&,std::string const&) mov [rbp+var_F9], al jmp short $+2 loc_156F2: mov al, [rbp+var_F9] test al, 1 jnz short loc_156FE jmp short loc_1573A loc_156FE: mov rdi, [rbp+var_C0] mov rdx, [rbp+var_20] lea rsi, [rbp+var_78] call _ZNK5nglog12_GLOBAL__N_110LogCleaner21IsLogLastModifiedOverERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNSt6chrono10time_pointINSA_3_V212system_clockENSA_8durationIlSt5ratioILl1ELl1000000000EEEEEE; nglog::`anonymous namespace'::LogCleaner::IsLogLastModifiedOver(std::string const&,std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>> const&) mov [rbp+var_FA], al jmp short $+2 loc_1571A: mov al, [rbp+var_FA] test al, 1 jnz short loc_15726 jmp short loc_1573A loc_15726: mov rdi, [rbp+var_D0] lea rsi, [rbp+var_78] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_; std::vector<std::string>::push_back(std::string const&) jmp short $+2 loc_15738: jmp short $+2 loc_1573A: lea rdi, [rbp+var_78]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp loc_15533 loc_15748: mov rdi, [rbp+var_40] call _closedir jmp short $+2 loc_15753: jmp short $+2 loc_15755: mov [rbp+var_31], 1 test [rbp+var_31], 1 jnz short loc_1576B mov rdi, [rbp+var_D0] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() loc_1576B: mov rax, [rbp+var_C8] add rsp, 100h pop rbp retn loc_1577B: mov rdi, [rbp+var_D0] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rdi, [rbp+var_50] call __Unwind_Resume
long long nglog::`anonymous namespace'::LogCleaner::GetOverdueLogNames( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6) { long long v6; // rax long long v7; // rax long long v9; // [rsp+10h] [rbp-F0h] long long v10; // [rsp+18h] [rbp-E8h] _BYTE v12[32]; // [rsp+58h] [rbp-A8h] BYREF char *v13; // [rsp+78h] [rbp-88h] char v14; // [rsp+87h] [rbp-79h] BYREF _BYTE v15[36]; // [rsp+88h] [rbp-78h] BYREF long long v16; // [rsp+B8h] [rbp-48h] long long v17; // [rsp+C0h] [rbp-40h] char v18; // [rsp+CFh] [rbp-31h] long long v19; // [rsp+D0h] [rbp-30h] long long v20; // [rsp+D8h] [rbp-28h] long long v21; // [rsp+E0h] [rbp-20h] long long v22; // [rsp+E8h] [rbp-18h] long long v23; // [rsp+F0h] [rbp-10h] long long v24; // [rsp+F8h] [rbp-8h] v24 = a1; v23 = a2; v22 = a3; v21 = a4; v20 = a5; v19 = a6; v18 = 0; std::vector<std::string>::vector(a1); v6 = std::string::c_str(a3); v17 = opendir(v6); if ( v17 ) { while ( 1 ) { v16 = readdir(v17); if ( !v16 ) break; if ( (unsigned int)strcmp(v16 + 19, ".") && (unsigned int)strcmp(v16 + 19, "..") ) { v10 = v16 + 19; std::allocator<char>::allocator(); std::string::basic_string<std::allocator<char>>((long long)v15, v10, (long long)&v14); std::allocator<char>::~allocator(&v14); v13 = (char *)&nglog::`anonymous namespace'::possible_dir_delim + 1; if ( (std::string::empty(a3) & 1) == 0 ) { v7 = std::string::size(a3); v9 = std::string::operator[](a3, v7 - 1); if ( (_UNKNOWN *)std::find<char const*,char>( &nglog::`anonymous namespace'::possible_dir_delim, "N5nglog4base6LoggerE", v9) != (_UNKNOWN *)((char *)&nglog::`anonymous namespace'::possible_dir_delim + 1) ) { std::operator+<char>(v12, a3, v15); std::string::operator=(v15, v12); std::string::~string(v12); } } if ( (nglog::`anonymous namespace'::LogCleaner::IsLogFromCurrentProject(a2, v15, v20, v19) & 1) != 0 && (nglog::`anonymous namespace'::LogCleaner::IsLogLastModifiedOver(a2, v15, v21) & 1) != 0 ) { std::vector<std::string>::push_back(a1, v15); } std::string::~string(v15); } } closedir(v17); } return a1; }
GetOverdueLogNames: PUSH RBP MOV RBP,RSP SUB RSP,0x100 MOV qword ptr [RBP + -0xb8],RDX MOV qword ptr [RBP + -0xd0],RDI MOV RAX,RDI MOV qword ptr [RBP + -0xc8],RAX MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV qword ptr [RBP + -0x30],R9 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0xc0],RAX MOV byte ptr [RBP + -0x31],0x0 CALL 0x00119a60 MOV RDI,qword ptr [RBP + -0xb8] CALL 0x001092c0 MOV RDI,RAX LAB_0011550e: CALL 0x00109b50 MOV qword ptr [RBP + -0xb0],RAX JMP 0x0011551c LAB_0011551c: MOV RAX,qword ptr [RBP + -0xb0] MOV qword ptr [RBP + -0x40],RAX CMP RAX,0x0 JZ 0x00115755 JMP 0x00115533 LAB_00115533: MOV RDI,qword ptr [RBP + -0x40] CALL 0x00109b70 MOV qword ptr [RBP + -0xd8],RAX JMP 0x00115545 LAB_00115545: MOV RAX,qword ptr [RBP + -0xd8] MOV qword ptr [RBP + -0x48],RAX CMP RAX,0x0 JZ 0x00115748 MOV RDI,qword ptr [RBP + -0x48] ADD RDI,0x13 LEA RSI,[0x14ef15] CALL 0x00109a70 CMP EAX,0x0 JZ 0x0011558c MOV RDI,qword ptr [RBP + -0x48] ADD RDI,0x13 LEA RSI,[0x14dc09] CALL 0x00109a70 CMP EAX,0x0 JNZ 0x0011559f LAB_0011558c: JMP 0x00115533 LAB_0011559f: MOV RAX,qword ptr [RBP + -0x48] ADD RAX,0x13 MOV qword ptr [RBP + -0xe8],RAX LEA RDI,[RBP + -0x79] MOV qword ptr [RBP + -0xe0],RDI CALL 0x00109d10 MOV RSI,qword ptr [RBP + -0xe8] MOV RDX,qword ptr [RBP + -0xe0] LAB_001155cc: LEA RDI,[RBP + -0x78] CALL 0x0010cb30 JMP 0x001155d7 LAB_001155d7: LEA RDI,[RBP + -0x79] CALL 0x001097c0 MOV RDI,qword ptr [RBP + -0xb8] LEA RAX,[0x14d448] ADD RAX,0x1 MOV qword ptr [RBP + -0x88],RAX CALL 0x00109c30 TEST AL,0x1 JNZ 0x001156d2 MOV RDI,qword ptr [RBP + -0xb8] CALL 0x001094f0 MOV RDI,qword ptr [RBP + -0xb8] MOV RSI,RAX DEC RSI LAB_0011561f: CALL 0x00109e40 MOV qword ptr [RBP + -0xf0],RAX JMP 0x0011562d LAB_0011562d: MOV RDX,qword ptr [RBP + -0xf0] LEA RDI,[0x14d448] LEA RSI,[0x14d449] CALL 0x00118750 MOV qword ptr [RBP + -0xf8],RAX JMP 0x00115650 LAB_00115650: MOV RAX,qword ptr [RBP + -0xf8] LEA RCX,[0x14d448] ADD RCX,0x1 CMP RAX,RCX JZ 0x001156d2 MOV RSI,qword ptr [RBP + -0xb8] LEA RDI,[RBP + -0xa8] LEA RDX,[RBP + -0x78] CALL 0x0011b310 JMP 0x00115680 LAB_00115680: LEA RDI,[RBP + -0x78] LEA RSI,[RBP + -0xa8] CALL 0x00109910 LEA RDI,[RBP + -0xa8] CALL 0x00109ea8 JMP 0x001156d2 LAB_001156d2: MOV RDI,qword ptr [RBP + -0xc0] MOV RDX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x30] LEA RSI,[RBP + -0x78] CALL 0x00115790 MOV byte ptr [RBP + -0xf9],AL JMP 0x001156f2 LAB_001156f2: MOV AL,byte ptr [RBP + -0xf9] TEST AL,0x1 JNZ 0x001156fe JMP 0x0011573a LAB_001156fe: MOV RDI,qword ptr [RBP + -0xc0] MOV RDX,qword ptr [RBP + -0x20] LEA RSI,[RBP + -0x78] CALL 0x00115d10 MOV byte ptr [RBP + -0xfa],AL JMP 0x0011571a LAB_0011571a: MOV AL,byte ptr [RBP + -0xfa] TEST AL,0x1 JNZ 0x00115726 JMP 0x0011573a LAB_00115726: MOV RDI,qword ptr [RBP + -0xd0] LEA RSI,[RBP + -0x78] CALL 0x00118870 JMP 0x00115738 LAB_00115738: JMP 0x0011573a LAB_0011573a: LEA RDI,[RBP + -0x78] CALL 0x00109ea8 JMP 0x00115533 LAB_00115748: MOV RDI,qword ptr [RBP + -0x40] LAB_0011574c: CALL 0x00109bf0 LAB_00115751: JMP 0x00115753 LAB_00115753: JMP 0x00115755 LAB_00115755: MOV byte ptr [RBP + -0x31],0x1 TEST byte ptr [RBP + -0x31],0x1 JNZ 0x0011576b MOV RDI,qword ptr [RBP + -0xd0] CALL 0x00119e80 LAB_0011576b: MOV RAX,qword ptr [RBP + -0xc8] ADD RSP,0x100 POP RBP RET
/* WARNING: Removing unreachable block (ram,0x0011575f) */ /* nglog::(anonymous namespace)::LogCleaner::GetOverdueLogNames(std::__cxx11::string, std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l> > > const&, std::__cxx11::string const&, std::__cxx11::string const&) const */ vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> * nglog::(anonymous_namespace)::LogCleaner::GetOverdueLogNames (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *param_1, LogCleaner *param_2,string *param_3,time_point *param_4,string *param_5,string *param_6) { byte bVar1; int iVar2; char *pcVar3; ulong uVar4; string local_b0 [32]; char *local_90; allocator local_81; string local_80 [48]; dirent *local_50; DIR *local_48; int1 local_39; string *local_38; string *local_30; time_point *local_28; string *local_20; LogCleaner *local_18; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_10; local_39 = 0; local_38 = param_6; local_30 = param_5; local_28 = param_4; local_20 = param_3; local_18 = param_2; local_10 = param_1; std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector(param_1); pcVar3 = (char *)std::__cxx11::string::c_str(); /* try { // try from 0011550e to 0011553b has its CatchHandler @ 0011558e */ local_48 = opendir(pcVar3); if (local_48 != (DIR *)0x0) { while (local_50 = readdir(local_48), local_50 != (dirent *)0x0) { iVar2 = strcmp(local_50->d_name,"."); if ((iVar2 != 0) && (iVar2 = strcmp(local_50->d_name,".."), iVar2 != 0)) { pcVar3 = local_50->d_name; std::allocator<char>::allocator(); /* try { // try from 001155cc to 001155d4 has its CatchHandler @ 0011569e */ std::__cxx11::string::string<std::allocator<char>>(local_80,pcVar3,&local_81); std::allocator<char>::~allocator((allocator<char> *)&local_81); local_90 = "N5nglog4base6LoggerE"; uVar4 = std::__cxx11::string::empty(); if ((uVar4 & 1) == 0) { std::__cxx11::string::size(); /* try { // try from 0011561f to 00115735 has its CatchHandler @ 001156b8 */ pcVar3 = (char *)std::__cxx11::string::operator[]((ulong)param_3); pcVar3 = std::find<char_const*,char> ("/N5nglog4base6LoggerE","N5nglog4base6LoggerE",pcVar3); if (pcVar3 != "N5nglog4base6LoggerE") { std::operator+(local_b0,param_3); std::__cxx11::string::operator=(local_80,local_b0); std::__cxx11::string::~string(local_b0); } } bVar1 = IsLogFromCurrentProject(param_2,local_80,local_30,local_38); if (((bVar1 & 1) != 0) && (bVar1 = IsLogLastModifiedOver(param_2,local_80,local_28), (bVar1 & 1) != 0)) { std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::push_back (param_1,local_80); } std::__cxx11::string::~string(local_80); } } /* try { // try from 0011574c to 00115750 has its CatchHandler @ 0011558e */ closedir(local_48); } return param_1; }
27,606
evmone::get_error_message(evmone::EOFValidationError)
corpus-core[P]colibri-stateless/build_O3/_deps/evmone_external-src/lib/evmone/eof.cpp
std::string_view get_error_message(EOFValidationError err) noexcept { switch (err) { case EOFValidationError::success: return "success"; case EOFValidationError::invalid_prefix: return "invalid_prefix"; case EOFValidationError::eof_version_unknown: return "eof_version_unknown"; case EOFValidationError::incomplete_section_size: return "incomplete_section_size"; case EOFValidationError::incomplete_section_number: return "incomplete_section_number"; case EOFValidationError::header_terminator_missing: return "header_terminator_missing"; case EOFValidationError::type_section_missing: return "type_section_missing"; case EOFValidationError::code_section_missing: return "code_section_missing"; case EOFValidationError::data_section_missing: return "data_section_missing"; case EOFValidationError::zero_section_size: return "zero_section_size"; case EOFValidationError::section_headers_not_terminated: return "section_headers_not_terminated"; case EOFValidationError::invalid_section_bodies_size: return "invalid_section_bodies_size"; case EOFValidationError::unreachable_code_sections: return "unreachable_code_sections"; case EOFValidationError::undefined_instruction: return "undefined_instruction"; case EOFValidationError::truncated_instruction: return "truncated_instruction"; case EOFValidationError::invalid_rjump_destination: return "invalid_rjump_destination"; case EOFValidationError::too_many_code_sections: return "too_many_code_sections"; case EOFValidationError::invalid_type_section_size: return "invalid_type_section_size"; case EOFValidationError::invalid_first_section_type: return "invalid_first_section_type"; case EOFValidationError::invalid_max_stack_increase: return "invalid_max_stack_increase"; case EOFValidationError::max_stack_increase_above_limit: return "max_stack_increase_above_limit"; case EOFValidationError::inputs_outputs_num_above_limit: return "inputs_outputs_num_above_limit"; case EOFValidationError::no_terminating_instruction: return "no_terminating_instruction"; case EOFValidationError::stack_height_mismatch: return "stack_height_mismatch"; case EOFValidationError::stack_higher_than_outputs_required: return "stack_higher_than_outputs_required"; case EOFValidationError::unreachable_instructions: return "unreachable_instructions"; case EOFValidationError::stack_underflow: return "stack_underflow"; case EOFValidationError::stack_overflow: return "stack_overflow"; case EOFValidationError::invalid_code_section_index: return "invalid_code_section_index"; case EOFValidationError::invalid_dataloadn_index: return "invalid_dataloadn_index"; case EOFValidationError::jumpf_destination_incompatible_outputs: return "jumpf_destination_incompatible_outputs"; case EOFValidationError::invalid_non_returning_flag: return "invalid_non_returning_flag"; case EOFValidationError::callf_to_non_returning_function: return "callf_to_non_returning_function"; case EOFValidationError::too_many_container_sections: return "too_many_container_sections"; case EOFValidationError::invalid_container_section_index: return "invalid_container_section_index"; case EOFValidationError::eofcreate_with_truncated_container: return "eofcreate_with_truncated_container"; case EOFValidationError::toplevel_container_truncated: return "toplevel_container_truncated"; case EOFValidationError::ambiguous_container_kind: return "ambiguous_container_kind"; case EOFValidationError::incompatible_container_kind: return "incompatible_container_kind"; case EOFValidationError::container_size_above_limit: return "container_size_above_limit"; case EOFValidationError::unreferenced_subcontainer: return "unreferenced_subcontainer"; } return "<unknown>"; }
O3
cpp
evmone::get_error_message(evmone::EOFValidationError): cmpl $0x28, %edi ja 0x43837 movl %edi, %eax leaq 0x42804(%rip), %rcx # 0x86028 movslq (%rcx,%rax,4), %rdx addq %rcx, %rdx leaq 0x4289e(%rip), %rcx # 0x860d0 movq (%rcx,%rax,8), %rax retq movl $0x9, %eax leaq 0x42f57(%rip), %rdx # 0x8679a retq
_ZN6evmone17get_error_messageENS_18EOFValidationErrorE: cmp edi, 28h ; '(' ja short loc_43837 mov eax, edi lea rcx, unk_86028 movsxd rdx, dword ptr [rcx+rax*4] add rdx, rcx lea rcx, unk_860D0 mov rax, [rcx+rax*8] retn loc_43837: mov eax, 9 lea rdx, aUnknown; "<unknown>" retn
long long evmone::get_error_message(unsigned int a1) { if ( a1 > 0x28 ) return 9LL; else return qword_860D0[a1]; }
get_error_message: CMP EDI,0x28 JA 0x00143837 MOV EAX,EDI LEA RCX,[0x186028] MOVSXD RDX,dword ptr [RCX + RAX*0x4] ADD RDX,RCX LEA RCX,[0x1860d0] MOV RAX,qword ptr [RCX + RAX*0x8] RET LAB_00143837: MOV EAX,0x9 LEA RDX,[0x18679a] RET
/* evmone::get_error_message(evmone::EOFValidationError) */ int1 [16] evmone::get_error_message(uint param_1) { int1 auVar1 [16]; int1 auVar2 [16]; if (param_1 < 0x29) { auVar1._8_8_ = &DAT_00186028 + *(int *)(&DAT_00186028 + (ulong)param_1 * 4); auVar1._0_8_ = *(int8 *)(&DAT_001860d0 + (ulong)param_1 * 8); return auVar1; } auVar2._8_8_ = "<unknown>"; auVar2._0_8_ = 9; return auVar2; }
27,607
LefDefParser::defiProp::setPropQString(char const*)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiProp.cpp
void defiProp::setPropQString(const char* string) { int len; dataType_ = 'Q'; if ((len = strlen(string)+1) > stringLength_) bumpSize(len); strcpy(stringData_, defData->DEFCASE(string)); }
O3
cpp
LefDefParser::defiProp::setPropQString(char const*): pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 movb $0x51, 0x17(%rdi) movq %rsi, %rdi callq 0x70d0 movq %rax, %r12 incl %r12d movq 0x18(%r14), %r15 cmpl 0x20(%r14), %r12d jle 0x2cc06 movq %r15, %rdi callq 0x7220 movslq %r12d, %rdi callq 0x7270 movq %rax, %r15 movq %rax, 0x18(%r14) movl %r12d, 0x20(%r14) movb $0x0, (%rax) movq 0x40(%r14), %rdi movq %rbx, %rsi callq 0x1b638 movq %r15, %rdi movq %rax, %rsi addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 jmp 0x7190
_ZN12LefDefParser8defiProp14setPropQStringEPKc: push r15 push r14 push r12 push rbx push rax mov rbx, rsi mov r14, rdi mov byte ptr [rdi+17h], 51h ; 'Q' mov rdi, rsi call _strlen mov r12, rax inc r12d mov r15, [r14+18h] cmp r12d, [r14+20h] jle short loc_2CC06 mov rdi, r15 call _free movsxd rdi, r12d call _malloc mov r15, rax mov [r14+18h], rax mov [r14+20h], r12d mov byte ptr [rax], 0 loc_2CC06: mov rdi, [r14+40h]; this mov rsi, rbx; char * call _ZN12LefDefParser8defrData7DEFCASEEPKc; LefDefParser::defrData::DEFCASE(char const*) mov rdi, r15 mov rsi, rax add rsp, 8 pop rbx pop r12 pop r14 pop r15 jmp _strcpy
long long LefDefParser::defiProp::setPropQString(LefDefParser::defiProp *this, const char *a2) { int v2; // r12d _BYTE *v3; // r15 const char *v4; // rax *((_BYTE *)this + 23) = 81; v2 = strlen(a2) + 1; v3 = (_BYTE *)*((_QWORD *)this + 3); if ( v2 > *((_DWORD *)this + 8) ) { free(*((void **)this + 3)); v3 = (_BYTE *)malloc(v2); *((_QWORD *)this + 3) = v3; *((_DWORD *)this + 8) = v2; *v3 = 0; } v4 = LefDefParser::defrData::DEFCASE(*((LefDefParser::defrData **)this + 8), a2); return strcpy(v3, v4); }
setPropQString: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI MOV byte ptr [RDI + 0x17],0x51 MOV RDI,RSI CALL 0x001070d0 MOV R12,RAX INC R12D MOV R15,qword ptr [R14 + 0x18] CMP R12D,dword ptr [R14 + 0x20] JLE 0x0012cc06 MOV RDI,R15 CALL 0x00107220 MOVSXD RDI,R12D CALL 0x00107270 MOV R15,RAX MOV qword ptr [R14 + 0x18],RAX MOV dword ptr [R14 + 0x20],R12D MOV byte ptr [RAX],0x0 LAB_0012cc06: MOV RDI,qword ptr [R14 + 0x40] MOV RSI,RBX CALL 0x0011b638 MOV RDI,R15 MOV RSI,RAX ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 JMP 0x00107190
/* LefDefParser::defiProp::setPropQString(char const*) */ void __thiscall LefDefParser::defiProp::setPropQString(defiProp *this,char *param_1) { size_t sVar1; char *__dest; char *__src; int iVar2; this[0x17] = (defiProp)0x51; sVar1 = strlen(param_1); iVar2 = (int)sVar1 + 1; __dest = *(char **)(this + 0x18); if (*(int *)(this + 0x20) < iVar2) { free(__dest); __dest = (char *)malloc((long)iVar2); *(char **)(this + 0x18) = __dest; *(int *)(this + 0x20) = iVar2; *__dest = '\0'; } __src = (char *)defrData::DEFCASE(*(defrData **)(this + 0x40),param_1); strcpy(__dest,__src); return; }
27,608
nglog::GetTempDirectories(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&)
ng-log[P]ng-log/src/logging.cc
static void GetTempDirectories(vector<string>& list) { list.clear(); #ifdef NGLOG_OS_WINDOWS // On windows we'll try to find a directory in this order: // C:/Documents & Settings/whomever/TEMP (or whatever GetTempPath() is) // C:/TMP/ // C:/TEMP/ char tmp[MAX_PATH]; if (GetTempPathA(MAX_PATH, tmp)) list.push_back(tmp); list.push_back("C:\\TMP\\"); list.push_back("C:\\TEMP\\"); #else // Directories, in order of preference. If we find a dir that // exists, we stop adding other less-preferred dirs const char* candidates[] = { // Non-null only during unittest/regtest getenv("TEST_TMPDIR"), // Explicitly-supplied temp dirs getenv("TMPDIR"), getenv("TMP"), // If all else fails "/tmp", }; for (auto d : candidates) { if (!d) continue; // Empty env var // Make sure we don't surprise anyone who's expecting a '/' string dstr = d; if (dstr[dstr.size() - 1] != '/') { dstr += "/"; } list.push_back(dstr); struct stat statbuf; if (!stat(d, &statbuf) && S_ISDIR(statbuf.st_mode)) { // We found a dir that exists - we're done. return; } } #endif }
O3
cpp
nglog::GetTempDirectories(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xd8, %rsp movq %rdi, %rbx movq (%rdi), %rsi callq 0x1eb5a leaq 0x15927(%rip), %rdi # 0x222fb callq 0x7690 movq %rax, %r13 movq %rax, 0x20(%rsp) leaq 0x15918(%rip), %rdi # 0x22300 callq 0x7690 movq %rax, 0x28(%rsp) leaq 0x16b3b(%rip), %rdi # 0x23534 callq 0x7690 movq %rax, 0x30(%rsp) leaq 0x16b2e(%rip), %rax # 0x23538 movq %rax, 0x38(%rsp) leaq 0x10(%rsp), %rbp xorl %r12d, %r12d movq %rsp, %r14 leaq 0x48(%rsp), %r15 testq %r13, %r13 je 0xcabc movq %rbp, (%rsp) movq %r13, %rdi callq 0x71f0 leaq (%rax,%r13), %rdx movq %r14, %rdi movq %r13, %rsi callq 0x92b4 movq (%rsp), %rax movq 0x8(%rsp), %rcx cmpb $0x2f, -0x1(%rax,%rcx) je 0xca62 movq %r14, %rdi leaq 0x15c04(%rip), %rsi # 0x22661 callq 0x7a00 movq %rbx, %rdi movq %r14, %rsi callq 0x10e6c movq %r13, %rdi movq %r15, %rsi callq 0x7470 testl %eax, %eax jne 0xca91 movl 0x60(%rsp), %eax movl $0xf000, %ecx # imm = 0xF000 andl %ecx, %eax movb $0x1, %r13b cmpl $0x4000, %eax # imm = 0x4000 je 0xca94 xorl %r13d, %r13d movq (%rsp), %rdi cmpq %rbp, %rdi je 0xcaaa movq 0x10(%rsp), %rsi incq %rsi callq 0x7530 addq $0x8, %r12 cmpq $0x20, %r12 sete %al orb %al, %r13b je 0xcac6 jmp 0xcad0 addq $0x8, %r12 cmpq $0x20, %r12 je 0xcad0 movq 0x20(%rsp,%r12), %r13 jmp 0xca1f addq $0xd8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movq (%rsp), %rdi cmpq %rbp, %rdi je 0xcafb movq 0x10(%rsp), %rsi incq %rsi callq 0x7530 movq %rbx, %rdi callq 0x7970
_ZN5nglogL18GetTempDirectoriesERSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0D8h mov rbx, rdi mov rsi, [rdi] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE15_M_erase_at_endEPS5_; std::vector<std::string>::_M_erase_at_end(std::string*) lea rdi, aTestTmpdir; "TEST_TMPDIR" call _getenv mov r13, rax mov [rsp+108h+var_E8], rax lea rdi, aTestTmpdir+5; "TMPDIR" call _getenv mov [rsp+108h+var_E0], rax lea rdi, aTmp_0; "TMP" call _getenv mov [rsp+108h+var_D8], rax lea rax, aTmp; "/tmp" mov [rsp+108h+var_D0], rax lea rbp, [rsp+108h+var_F8] xor r12d, r12d mov r14, rsp lea r15, [rsp+108h+var_C0] loc_CA1F: test r13, r13 jz loc_CABC mov [rsp+108h+var_108], rbp mov rdi, r13 call _strlen lea rdx, [rax+r13] mov rdi, r14 mov rsi, r13 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) mov rax, [rsp+108h+var_108] mov rcx, [rsp+108h+var_100] cmp byte ptr [rax+rcx-1], 2Fh ; '/' jz short loc_CA62 mov rdi, r14 lea rsi, asc_22660+1; "/" call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) loc_CA62: mov rdi, rbx mov rsi, r14 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_; std::vector<std::string>::push_back(std::string const&) mov rdi, r13 mov rsi, r15 call _stat test eax, eax jnz short loc_CA91 mov eax, [rsp+108h+var_A8] mov ecx, 0F000h and eax, ecx mov r13b, 1 cmp eax, 4000h jz short loc_CA94 loc_CA91: xor r13d, r13d loc_CA94: mov rdi, [rsp+108h+var_108]; void * cmp rdi, rbp jz short loc_CAAA mov rsi, [rsp+108h+var_F8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_CAAA: add r12, 8 cmp r12, 20h ; ' ' setz al or r13b, al jz short loc_CAC6 jmp short loc_CAD0 loc_CABC: add r12, 8 cmp r12, 20h ; ' ' jz short loc_CAD0 loc_CAC6: mov r13, [rsp+r12+108h+var_E8] jmp loc_CA1F loc_CAD0: add rsp, 0D8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax mov rdi, [rsp+0]; void * cmp rdi, rbp jz short loc_CAFB mov rsi, [rsp+arg_8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_CAFB: mov rdi, rbx call __Unwind_Resume
char nglog::GetTempDirectories(_QWORD *a1) { _BYTE *v1; // r13 const char *v2; // rax long long v3; // r12 long long v4; // rax char v5; // r13 void *v7[2]; // [rsp+0h] [rbp-108h] BYREF _QWORD v8[2]; // [rsp+10h] [rbp-F8h] BYREF _QWORD v9[5]; // [rsp+20h] [rbp-E8h] _BYTE v10[24]; // [rsp+48h] [rbp-C0h] BYREF int v11; // [rsp+60h] [rbp-A8h] std::vector<std::string>::_M_erase_at_end(a1, *a1); v1 = (_BYTE *)getenv("TEST_TMPDIR"); v9[0] = v1; v9[1] = getenv("TMPDIR"); v9[2] = getenv("TMP"); v2 = "/tmp"; v9[3] = "/tmp"; v3 = 0LL; while ( !v1 ) { if ( ++v3 == 4 ) return (char)v2; LABEL_13: v1 = (_BYTE *)v9[v3]; } v7[0] = v8; v4 = strlen(v1); std::string::_M_construct<char const*>((long long)v7, v1, (long long)&v1[v4]); if ( *((_BYTE *)v7[0] + (unsigned long long)v7[1] - 1) != 47 ) std::string::append(v7, "/"); std::vector<std::string>::push_back(a1); if ( (unsigned int)stat(v1, v10) || (v5 = 1, (v11 & 0xF000) != 0x4000) ) v5 = 0; if ( v7[0] != v8 ) operator delete(v7[0], v8[0] + 1LL); LOBYTE(v2) = ++v3 == 4; if ( !((v3 == 4) | (unsigned __int8)v5) ) goto LABEL_13; return (char)v2; }
GetTempDirectories: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xd8 MOV RBX,RDI MOV RSI,qword ptr [RDI] CALL 0x0011eb5a LEA RDI,[0x1222fb] CALL 0x00107690 MOV R13,RAX MOV qword ptr [RSP + 0x20],RAX LEA RDI,[0x122300] CALL 0x00107690 MOV qword ptr [RSP + 0x28],RAX LEA RDI,[0x123534] CALL 0x00107690 MOV qword ptr [RSP + 0x30],RAX LEA RAX,[0x123538] MOV qword ptr [RSP + 0x38],RAX LEA RBP,[RSP + 0x10] XOR R12D,R12D MOV R14,RSP LEA R15,[RSP + 0x48] LAB_0010ca1f: TEST R13,R13 JZ 0x0010cabc MOV qword ptr [RSP],RBP MOV RDI,R13 CALL 0x001071f0 LEA RDX,[RAX + R13*0x1] MOV RDI,R14 MOV RSI,R13 CALL 0x001092b4 MOV RAX,qword ptr [RSP] MOV RCX,qword ptr [RSP + 0x8] CMP byte ptr [RAX + RCX*0x1 + -0x1],0x2f JZ 0x0010ca62 LAB_0010ca53: MOV RDI,R14 LEA RSI,[0x122661] CALL 0x00107a00 LAB_0010ca62: MOV RDI,RBX MOV RSI,R14 CALL 0x00110e6c LAB_0010ca6d: MOV RDI,R13 MOV RSI,R15 CALL 0x00107470 TEST EAX,EAX JNZ 0x0010ca91 MOV EAX,dword ptr [RSP + 0x60] MOV ECX,0xf000 AND EAX,ECX MOV R13B,0x1 CMP EAX,0x4000 JZ 0x0010ca94 LAB_0010ca91: XOR R13D,R13D LAB_0010ca94: MOV RDI,qword ptr [RSP] CMP RDI,RBP JZ 0x0010caaa MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x00107530 LAB_0010caaa: ADD R12,0x8 CMP R12,0x20 SETZ AL OR R13B,AL JZ 0x0010cac6 JMP 0x0010cad0 LAB_0010cabc: ADD R12,0x8 CMP R12,0x20 JZ 0x0010cad0 LAB_0010cac6: MOV R13,qword ptr [RSP + R12*0x1 + 0x20] JMP 0x0010ca1f LAB_0010cad0: ADD RSP,0xd8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* nglog::GetTempDirectories(std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > >&) */ void nglog::GetTempDirectories(vector *param_1) { bool bVar1; int iVar2; char *__s; size_t sVar3; long lVar4; long *local_108; long local_100; long local_f8 [2]; char *local_e8; char *local_e0 [4]; stat local_c0; std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::_M_erase_at_end ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)param_1, *(string **)param_1); __s = getenv("TEST_TMPDIR"); local_e8 = __s; local_e0[0] = getenv("TMPDIR"); local_e0[1] = getenv("TMP"); local_e0[2] = "/tmp"; lVar4 = 0; do { if (__s == (char *)0x0) { if (lVar4 == 0x18) { return; } } else { local_108 = local_f8; sVar3 = strlen(__s); std::__cxx11::string::_M_construct<char_const*>(&local_108,__s,__s + sVar3); if (*(char *)((long)local_108 + local_100 + -1) != '/') { /* try { // try from 0010ca53 to 0010ca6c has its CatchHandler @ 0010cae2 */ std::__cxx11::string::append((char *)&local_108); } std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::push_back ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)param_1, (string *)&local_108); iVar2 = stat(__s,&local_c0); if ((iVar2 != 0) || (bVar1 = true, (local_c0.st_mode & 0xf000) != 0x4000)) { bVar1 = false; } if (local_108 != local_f8) { operator_delete(local_108,local_f8[0] + 1); } if (bVar1 || lVar4 == 0x18) { return; } } __s = *(char **)((long)local_e0 + lVar4); lVar4 = lVar4 + 8; } while( true ); }
27,609
OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LegacyGregoryHelper::FinalizeQuadOffsets(std::vector<unsigned int, std::allocator<unsigned int>>&)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTableFactory.cpp
void PatchTableBuilder::LegacyGregoryHelper::FinalizeQuadOffsets( PatchTable::QuadOffsetsTable & qTable) { size_t numInteriorPatches = _interiorFaceIndices.size(); size_t numBoundaryPatches = _boundaryFaceIndices.size(); size_t numTotalPatches = numInteriorPatches + numBoundaryPatches; struct QuadOffset { static int Assign(Level const& level, Index faceIndex, unsigned int offsets[]) { ConstIndexArray fVerts = level.getFaceVertices(faceIndex); for (int i = 0; i < 4; ++i) { ConstIndexArray vFaces = level.getVertexFaces(fVerts[i]); int faceInVFaces = vFaces.FindIndex(faceIndex); // we have to use number of incident edges to modulo the local // index as there could be 2 consecutive edges in the face // belonging to the patch int vOffset0 = faceInVFaces; int vOffset1 = (faceInVFaces + 1) % level.getVertexEdges(fVerts[i]).size(); offsets[i] = vOffset0 | (vOffset1 << 8); } return 4; } }; if (numTotalPatches > 0) { qTable.resize(numTotalPatches*4); // all patches assumed to be at the last level Level const &maxLevel = _refiner.getLevel(_refiner.GetMaxLevel()); PatchTable::QuadOffsetsTable::value_type *p = &(qTable[0]); for (size_t i = 0; i < numInteriorPatches; ++i) { p += QuadOffset::Assign(maxLevel, _interiorFaceIndices[i], p); } for (size_t i = 0; i < numBoundaryPatches; ++i) { p += QuadOffset::Assign(maxLevel, _boundaryFaceIndices[i], p); } } }
O0
cpp
OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LegacyGregoryHelper::FinalizeQuadOffsets(std::vector<unsigned int, std::allocator<unsigned int>>&): pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x50(%rbp) addq $0x8, %rdi callq 0xd7ae0 movq -0x50(%rbp), %rdi movq %rax, -0x18(%rbp) addq $0x20, %rdi callq 0xd7ae0 movq %rax, -0x20(%rbp) movq -0x18(%rbp), %rax addq -0x20(%rbp), %rax movq %rax, -0x28(%rbp) cmpq $0x0, -0x28(%rbp) jbe 0x14bafb movq -0x10(%rbp), %rdi movq -0x28(%rbp), %rsi shlq $0x2, %rsi callq 0xc33f0 movq -0x50(%rbp), %rax movq (%rax), %rcx movq %rcx, -0x58(%rbp) movq (%rax), %rdi callq 0xcb3f0 movq -0x58(%rbp), %rdi movl %eax, %esi callq 0xd66c0 movq %rax, -0x30(%rbp) movq -0x10(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq 0xd21f0 movq %rax, -0x38(%rbp) movq $0x0, -0x40(%rbp) movq -0x40(%rbp), %rax cmpq -0x18(%rbp), %rax jae 0x14ba9d movq -0x50(%rbp), %rdi movq -0x30(%rbp), %rax movq %rax, -0x60(%rbp) addq $0x8, %rdi movq -0x40(%rbp), %rsi callq 0xc7140 movq -0x60(%rbp), %rdi movl (%rax), %esi movq -0x38(%rbp), %rdx callq 0x14c160 movl %eax, %ecx movq -0x38(%rbp), %rax movslq %ecx, %rcx shlq $0x2, %rcx addq %rcx, %rax movq %rax, -0x38(%rbp) movq -0x40(%rbp), %rax addq $0x1, %rax movq %rax, -0x40(%rbp) jmp 0x14ba49 movq $0x0, -0x48(%rbp) movq -0x48(%rbp), %rax cmpq -0x20(%rbp), %rax jae 0x14baf9 movq -0x50(%rbp), %rdi movq -0x30(%rbp), %rax movq %rax, -0x68(%rbp) addq $0x20, %rdi movq -0x48(%rbp), %rsi callq 0xc7140 movq -0x68(%rbp), %rdi movl (%rax), %esi movq -0x38(%rbp), %rdx callq 0x14c160 movl %eax, %ecx movq -0x38(%rbp), %rax movslq %ecx, %rcx shlq $0x2, %rcx addq %rcx, %rax movq %rax, -0x38(%rbp) movq -0x48(%rbp), %rax addq $0x1, %rax movq %rax, -0x48(%rbp) jmp 0x14baa5 jmp 0x14bafb addq $0x70, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder19LegacyGregoryHelper19FinalizeQuadOffsetsERSt6vectorIjSaIjEE: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rdi, [rbp+var_8] mov [rbp+var_50], rdi add rdi, 8 call __ZNKSt6vectorIiSaIiEE4sizeEv; std::vector<int>::size(void) mov rdi, [rbp+var_50] mov [rbp+var_18], rax add rdi, 20h ; ' ' call __ZNKSt6vectorIiSaIiEE4sizeEv; std::vector<int>::size(void) mov [rbp+var_20], rax mov rax, [rbp+var_18] add rax, [rbp+var_20] mov [rbp+var_28], rax cmp [rbp+var_28], 0 jbe loc_14BAFB mov rdi, [rbp+var_10] mov rsi, [rbp+var_28] shl rsi, 2 call __ZNSt6vectorIjSaIjEE6resizeEm; std::vector<uint>::resize(ulong) mov rax, [rbp+var_50] mov rcx, [rax] mov [rbp+var_58], rcx mov rdi, [rax]; this call __ZNK10OpenSubdiv6v3_6_03Far15TopologyRefiner11GetMaxLevelEv; OpenSubdiv::v3_6_0::Far::TopologyRefiner::GetMaxLevel(void) mov rdi, [rbp+var_58]; this mov esi, eax; int call __ZNK10OpenSubdiv6v3_6_03Far15TopologyRefiner8getLevelEi; OpenSubdiv::v3_6_0::Far::TopologyRefiner::getLevel(int) mov [rbp+var_30], rax mov rdi, [rbp+var_10] xor eax, eax mov esi, eax call __ZNSt6vectorIjSaIjEEixEm; std::vector<uint>::operator[](ulong) mov [rbp+var_38], rax mov [rbp+var_40], 0 loc_14BA49: mov rax, [rbp+var_40] cmp rax, [rbp+var_18] jnb short loc_14BA9D mov rdi, [rbp+var_50] mov rax, [rbp+var_30] mov [rbp+var_60], rax add rdi, 8 mov rsi, [rbp+var_40] call __ZNSt6vectorIiSaIiEEixEm; std::vector<int>::operator[](ulong) mov rdi, [rbp+var_60] mov esi, [rax] mov rdx, [rbp+var_38] call _ZZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder19LegacyGregoryHelper19FinalizeQuadOffsetsERSt6vectorIjSaIjEEEN10QuadOffset6AssignERKNS0_3Vtr8internal5LevelEiPj; OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LegacyGregoryHelper::FinalizeQuadOffsets(std::vector<uint> &)::QuadOffset::Assign(OpenSubdiv::v3_6_0::Vtr::internal::Level const&,int,uint *) mov ecx, eax mov rax, [rbp+var_38] movsxd rcx, ecx shl rcx, 2 add rax, rcx mov [rbp+var_38], rax mov rax, [rbp+var_40] add rax, 1 mov [rbp+var_40], rax jmp short loc_14BA49 loc_14BA9D: mov [rbp+var_48], 0 loc_14BAA5: mov rax, [rbp+var_48] cmp rax, [rbp+var_20] jnb short loc_14BAF9 mov rdi, [rbp+var_50] mov rax, [rbp+var_30] mov [rbp+var_68], rax add rdi, 20h ; ' ' mov rsi, [rbp+var_48] call __ZNSt6vectorIiSaIiEEixEm; std::vector<int>::operator[](ulong) mov rdi, [rbp+var_68] mov esi, [rax] mov rdx, [rbp+var_38] call _ZZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder19LegacyGregoryHelper19FinalizeQuadOffsetsERSt6vectorIjSaIjEEEN10QuadOffset6AssignERKNS0_3Vtr8internal5LevelEiPj; OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LegacyGregoryHelper::FinalizeQuadOffsets(std::vector<uint> &)::QuadOffset::Assign(OpenSubdiv::v3_6_0::Vtr::internal::Level const&,int,uint *) mov ecx, eax mov rax, [rbp+var_38] movsxd rcx, ecx shl rcx, 2 add rax, rcx mov [rbp+var_38], rax mov rax, [rbp+var_48] add rax, 1 mov [rbp+var_48], rax jmp short loc_14BAA5 loc_14BAF9: jmp short $+2 loc_14BAFB: add rsp, 70h pop rbp retn
unsigned long long OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LegacyGregoryHelper::FinalizeQuadOffsets( OpenSubdiv::v3_6_0::Far::TopologyRefiner **a1, long long a2) { unsigned long long result; // rax int MaxLevel; // eax unsigned int *v4; // rax unsigned int *v5; // rax OpenSubdiv::v3_6_0::Far::TopologyRefiner *v6; // [rsp+18h] [rbp-58h] unsigned long long j; // [rsp+28h] [rbp-48h] unsigned long long i; // [rsp+30h] [rbp-40h] long long v9; // [rsp+38h] [rbp-38h] long long Level; // [rsp+40h] [rbp-30h] unsigned long long v11; // [rsp+50h] [rbp-20h] unsigned long long v12; // [rsp+58h] [rbp-18h] v12 = std::vector<int>::size(a1 + 1); v11 = std::vector<int>::size(a1 + 4); result = v11 + v12; if ( v11 + v12 ) { std::vector<unsigned int>::resize(a2, 4 * (v11 + v12)); v6 = *a1; MaxLevel = OpenSubdiv::v3_6_0::Far::TopologyRefiner::GetMaxLevel(*a1); Level = OpenSubdiv::v3_6_0::Far::TopologyRefiner::getLevel(v6, MaxLevel); v9 = std::vector<unsigned int>::operator[](a2, 0LL); for ( i = 0LL; i < v12; ++i ) { v4 = (unsigned int *)std::vector<int>::operator[](a1 + 1, i); v9 += 4LL * (int)OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LegacyGregoryHelper::FinalizeQuadOffsets(std::vector<unsigned int> &)::QuadOffset::Assign( Level, *v4, v9); } for ( j = 0LL; ; ++j ) { result = j; if ( j >= v11 ) break; v5 = (unsigned int *)std::vector<int>::operator[](a1 + 4, j); v9 += 4LL * (int)OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LegacyGregoryHelper::FinalizeQuadOffsets(std::vector<unsigned int> &)::QuadOffset::Assign( Level, *v5, v9); } } return result; }
27,610
OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LegacyGregoryHelper::FinalizeQuadOffsets(std::vector<unsigned int, std::allocator<unsigned int>>&)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTableFactory.cpp
void PatchTableBuilder::LegacyGregoryHelper::FinalizeQuadOffsets( PatchTable::QuadOffsetsTable & qTable) { size_t numInteriorPatches = _interiorFaceIndices.size(); size_t numBoundaryPatches = _boundaryFaceIndices.size(); size_t numTotalPatches = numInteriorPatches + numBoundaryPatches; struct QuadOffset { static int Assign(Level const& level, Index faceIndex, unsigned int offsets[]) { ConstIndexArray fVerts = level.getFaceVertices(faceIndex); for (int i = 0; i < 4; ++i) { ConstIndexArray vFaces = level.getVertexFaces(fVerts[i]); int faceInVFaces = vFaces.FindIndex(faceIndex); // we have to use number of incident edges to modulo the local // index as there could be 2 consecutive edges in the face // belonging to the patch int vOffset0 = faceInVFaces; int vOffset1 = (faceInVFaces + 1) % level.getVertexEdges(fVerts[i]).size(); offsets[i] = vOffset0 | (vOffset1 << 8); } return 4; } }; if (numTotalPatches > 0) { qTable.resize(numTotalPatches*4); // all patches assumed to be at the last level Level const &maxLevel = _refiner.getLevel(_refiner.GetMaxLevel()); PatchTable::QuadOffsetsTable::value_type *p = &(qTable[0]); for (size_t i = 0; i < numInteriorPatches; ++i) { p += QuadOffset::Assign(maxLevel, _interiorFaceIndices[i], p); } for (size_t i = 0; i < numBoundaryPatches; ++i) { p += QuadOffset::Assign(maxLevel, _boundaryFaceIndices[i], p); } } }
O1
cpp
OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LegacyGregoryHelper::FinalizeQuadOffsets(std::vector<unsigned int, std::allocator<unsigned int>>&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %r15 movq 0x8(%rdi), %rdx movq 0x10(%rdi), %rbp movq %rbp, %r13 subq %rdx, %r13 sarq $0x2, %r13 movq 0x28(%rdi), %rax movq 0x20(%rdi), %rcx movq %rax, %r12 subq %rcx, %r12 sarq $0x2, %r12 movq %r12, %rsi addq %r13, %rsi je 0x6de9e movq %rdi, %rbx movq %rcx, 0x8(%rsp) movq %rax, 0x10(%rsp) shlq $0x2, %rsi movq %r15, %rdi movq %rdx, (%rsp) callq 0x380e0 movq (%rbx), %rax movzwl 0x8(%rax), %ecx movq 0x30(%rax), %rax shrl $0x3, %ecx andl $0x78, %ecx movq (%rax,%rcx), %r14 movq (%r15), %r15 cmpq (%rsp), %rbp je 0x6de68 cmpq $0x1, %r13 adcq $0x0, %r13 xorl %ebp, %ebp movq 0x8(%rbx), %rax movl (%rax,%rbp,4), %esi movq %r14, %rdi movq %r15, %rdx callq 0x6e210 addq $0x10, %r15 incq %rbp cmpq %rbp, %r13 jne 0x6de4a movq 0x8(%rsp), %rax cmpq %rax, 0x10(%rsp) je 0x6de9e cmpq $0x1, %r12 adcq $0x0, %r12 xorl %r13d, %r13d movq 0x20(%rbx), %rax movl (%rax,%r13,4), %esi movq %r14, %rdi movq %r15, %rdx callq 0x6e210 addq $0x10, %r15 incq %r13 cmpq %r13, %r12 jne 0x6de7f addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
_ZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder19LegacyGregoryHelper19FinalizeQuadOffsetsERSt6vectorIjSaIjEE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r15, rsi mov rdx, [rdi+8] mov rbp, [rdi+10h] mov r13, rbp sub r13, rdx sar r13, 2 mov rax, [rdi+28h] mov rcx, [rdi+20h] mov r12, rax sub r12, rcx sar r12, 2 mov rsi, r12 add rsi, r13 jz loc_6DE9E mov rbx, rdi mov [rsp+48h+var_40], rcx mov [rsp+48h+var_38], rax shl rsi, 2 mov rdi, r15 mov [rsp+48h+var_48], rdx call __ZNSt6vectorIjSaIjEE6resizeEm; std::vector<uint>::resize(ulong) mov rax, [rbx] movzx ecx, word ptr [rax+8] mov rax, [rax+30h] shr ecx, 3 and ecx, 78h mov r14, [rax+rcx] mov r15, [r15] cmp rbp, [rsp+48h+var_48] jz short loc_6DE68 cmp r13, 1 adc r13, 0 xor ebp, ebp loc_6DE4A: mov rax, [rbx+8] mov esi, [rax+rbp*4] mov rdi, r14 mov rdx, r15 call _ZZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder19LegacyGregoryHelper19FinalizeQuadOffsetsERSt6vectorIjSaIjEEEN10QuadOffset6AssignERKNS0_3Vtr8internal5LevelEiPj; OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LegacyGregoryHelper::FinalizeQuadOffsets(std::vector<uint> &)::QuadOffset::Assign(OpenSubdiv::v3_6_0::Vtr::internal::Level const&,int,uint *) add r15, 10h inc rbp cmp r13, rbp jnz short loc_6DE4A loc_6DE68: mov rax, [rsp+48h+var_40] cmp [rsp+48h+var_38], rax jz short loc_6DE9E cmp r12, 1 adc r12, 0 xor r13d, r13d loc_6DE7F: mov rax, [rbx+20h] mov esi, [rax+r13*4] mov rdi, r14 mov rdx, r15 call _ZZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder19LegacyGregoryHelper19FinalizeQuadOffsetsERSt6vectorIjSaIjEEEN10QuadOffset6AssignERKNS0_3Vtr8internal5LevelEiPj; OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LegacyGregoryHelper::FinalizeQuadOffsets(std::vector<uint> &)::QuadOffset::Assign(OpenSubdiv::v3_6_0::Vtr::internal::Level const&,int,uint *) add r15, 10h inc r13 cmp r12, r13 jnz short loc_6DE7F loc_6DE9E: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LegacyGregoryHelper::FinalizeQuadOffsets( _QWORD *a1, long long *a2) { long long v2; // rbp long long v3; // r13 long long result; // rax long long v5; // r12 long long v6; // r14 long long v7; // r15 long long v8; // r13 long long v9; // rbp long long v10; // r12 long long v11; // r13 long long v12; // [rsp+0h] [rbp-48h] long long v13; // [rsp+8h] [rbp-40h] long long v14; // [rsp+10h] [rbp-38h] v2 = a1[2]; v3 = (v2 - a1[1]) >> 2; result = a1[5]; v5 = (result - a1[4]) >> 2; if ( v3 + v5 ) { v13 = a1[4]; v14 = a1[5]; v12 = a1[1]; std::vector<unsigned int>::resize(a2, 4 * (v3 + v5)); v6 = *(_QWORD *)(*(_QWORD *)(*a1 + 48LL) + ((*(unsigned __int16 *)(*a1 + 8LL) >> 3) & 0x78)); v7 = *a2; if ( v2 != v12 ) { v8 = (v3 == 0) + v3; v9 = 0LL; do { OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LegacyGregoryHelper::FinalizeQuadOffsets(std::vector<unsigned int> &)::QuadOffset::Assign( v6, *(unsigned int *)(a1[1] + 4 * v9), v7); v7 += 16LL; ++v9; } while ( v8 != v9 ); } result = v13; if ( v14 != v13 ) { v10 = (v5 == 0) + v5; v11 = 0LL; do { result = OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LegacyGregoryHelper::FinalizeQuadOffsets(std::vector<unsigned int> &)::QuadOffset::Assign( v6, *(unsigned int *)(a1[4] + 4 * v11), v7); v7 += 16LL; ++v11; } while ( v10 != v11 ); } } return result; }
FinalizeQuadOffsets: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R15,RSI MOV RDX,qword ptr [RDI + 0x8] MOV RBP,qword ptr [RDI + 0x10] MOV R13,RBP SUB R13,RDX SAR R13,0x2 MOV RAX,qword ptr [RDI + 0x28] MOV RCX,qword ptr [RDI + 0x20] MOV R12,RAX SUB R12,RCX SAR R12,0x2 MOV RSI,R12 ADD RSI,R13 JZ 0x0016de9e MOV RBX,RDI MOV qword ptr [RSP + 0x8],RCX MOV qword ptr [RSP + 0x10],RAX SHL RSI,0x2 MOV RDI,R15 MOV qword ptr [RSP],RDX CALL 0x001380e0 MOV RAX,qword ptr [RBX] MOVZX ECX,word ptr [RAX + 0x8] MOV RAX,qword ptr [RAX + 0x30] SHR ECX,0x3 AND ECX,0x78 MOV R14,qword ptr [RAX + RCX*0x1] MOV R15,qword ptr [R15] CMP RBP,qword ptr [RSP] JZ 0x0016de68 CMP R13,0x1 ADC R13,0x0 XOR EBP,EBP LAB_0016de4a: MOV RAX,qword ptr [RBX + 0x8] MOV ESI,dword ptr [RAX + RBP*0x4] MOV RDI,R14 MOV RDX,R15 CALL 0x0016e210 ADD R15,0x10 INC RBP CMP R13,RBP JNZ 0x0016de4a LAB_0016de68: MOV RAX,qword ptr [RSP + 0x8] CMP qword ptr [RSP + 0x10],RAX JZ 0x0016de9e CMP R12,0x1 ADC R12,0x0 XOR R13D,R13D LAB_0016de7f: MOV RAX,qword ptr [RBX + 0x20] MOV ESI,dword ptr [RAX + R13*0x4] MOV RDI,R14 MOV RDX,R15 CALL 0x0016e210 ADD R15,0x10 INC R13 CMP R12,R13 JNZ 0x0016de7f LAB_0016de9e: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LegacyGregoryHelper::FinalizeQuadOffsets(std::vector<unsigned int, std::allocator<unsigned int> >&) */ void __thiscall OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LegacyGregoryHelper::FinalizeQuadOffsets (LegacyGregoryHelper *this,vector *param_1) { long lVar1; long lVar2; long lVar3; int8 uVar4; long lVar5; long lVar6; long lVar7; long lVar8; lVar5 = *(long *)(this + 8); lVar1 = *(long *)(this + 0x10); lVar7 = lVar1 - lVar5 >> 2; lVar2 = *(long *)(this + 0x28); lVar3 = *(long *)(this + 0x20); lVar6 = lVar2 - lVar3 >> 2; if (lVar6 + lVar7 != 0) { std::vector<unsigned_int,std::allocator<unsigned_int>>::resize ((vector<unsigned_int,std::allocator<unsigned_int>> *)param_1,(lVar6 + lVar7) * 4); uVar4 = *(int8 *) (*(long *)(*(long *)this + 0x30) + (ulong)(*(ushort *)(*(long *)this + 8) >> 3 & 0x78)) ; lVar8 = *(long *)param_1; if (lVar1 != lVar5) { lVar5 = 0; do { FinalizeQuadOffsets(std::vector<unsigned_int,std::allocator<unsigned_int>>&)::QuadOffset:: Assign(OpenSubdiv::v3_6_0::Vtr::internal::Level_const__int_unsigned_int__ (uVar4,*(int4 *)(*(long *)(this + 8) + lVar5 * 4),lVar8); lVar8 = lVar8 + 0x10; lVar5 = lVar5 + 1; } while (lVar7 + (ulong)(lVar7 == 0) != lVar5); } if (lVar2 != lVar3) { lVar5 = 0; do { FinalizeQuadOffsets(std::vector<unsigned_int,std::allocator<unsigned_int>>&)::QuadOffset:: Assign(OpenSubdiv::v3_6_0::Vtr::internal::Level_const__int_unsigned_int__ (uVar4,*(int4 *)(*(long *)(this + 0x20) + lVar5 * 4),lVar8); lVar8 = lVar8 + 0x10; lVar5 = lVar5 + 1; } while (lVar6 + (ulong)(lVar6 == 0) != lVar5); } } return; }
27,611
OpenSubdiv::v3_6_0::Vtr::internal::Level::orderVertexFacesAndEdges(int)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/level.cpp
bool Level::orderVertexFacesAndEdges(Index vIndex) { IndexArray vFaces = this->getVertexFaces(vIndex); IndexArray vEdges = this->getVertexEdges(vIndex); internal::StackBuffer<Index,32> indexBuffer(vFaces.size() + vEdges.size()); Index * vFacesOrdered = indexBuffer; Index * vEdgesOrdered = indexBuffer + vFaces.size(); if (orderVertexFacesAndEdges(vIndex, vFacesOrdered, vEdgesOrdered)) { std::memcpy(&vFaces[0], vFacesOrdered, vFaces.size() * sizeof(Index)); std::memcpy(&vEdges[0], vEdgesOrdered, vEdges.size() * sizeof(Index)); return true; } return false; }
O0
cpp
OpenSubdiv::v3_6_0::Vtr::internal::Level::orderVertexFacesAndEdges(int): pushq %rbp movq %rsp, %rbp subq $0x180, %rsp # imm = 0x180 movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq -0x10(%rbp), %rdi movq %rdi, -0x138(%rbp) movl -0x14(%rbp), %esi callq 0xc90e0 movq -0x138(%rbp), %rdi movl %edx, -0x30(%rbp) movq %rax, -0x38(%rbp) movl -0x30(%rbp), %eax movl %eax, -0x20(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x28(%rbp) movl -0x14(%rbp), %esi callq 0xc3970 movl %edx, -0x50(%rbp) movq %rax, -0x58(%rbp) movl -0x50(%rbp), %eax movl %eax, -0x40(%rbp) movq -0x58(%rbp), %rax movq %rax, -0x48(%rbp) leaq -0x28(%rbp), %rdi callq 0xcc250 movl %eax, -0x12c(%rbp) leaq -0x48(%rbp), %rdi callq 0xcc250 movl -0x12c(%rbp), %esi addl %eax, %esi leaq -0xf0(%rbp), %rdi movq %rdi, -0x128(%rbp) callq 0xcf650 movq -0x128(%rbp), %rdi callq 0xd20d0 movq %rax, -0x120(%rbp) jmp 0xf19a6 movq -0x120(%rbp), %rax movq %rax, -0xf8(%rbp) leaq -0xf0(%rbp), %rdi callq 0xd20d0 movq %rax, -0x140(%rbp) jmp 0xf19c9 leaq -0x28(%rbp), %rdi callq 0xcc250 movl %eax, -0x144(%rbp) jmp 0xf19da movq -0x138(%rbp), %rdi movq -0x140(%rbp), %rax movl -0x144(%rbp), %ecx movslq %ecx, %rcx leaq (%rax,%rcx,4), %rax movq %rax, -0x110(%rbp) movl -0x14(%rbp), %esi movq -0xf8(%rbp), %rdx movq -0x110(%rbp), %rcx callq 0xc8e40 movb %al, -0x145(%rbp) jmp 0xf1a1a movb -0x145(%rbp), %al testb $0x1, %al jne 0xf1a29 jmp 0xf1aff leaq -0x28(%rbp), %rdi xorl %esi, %esi callq 0xc37f0 movq %rax, -0x150(%rbp) jmp 0xf1a3d movq -0xf8(%rbp), %rax movq %rax, -0x160(%rbp) leaq -0x28(%rbp), %rdi callq 0xcc250 movl %eax, -0x154(%rbp) jmp 0xf1a5c movq -0x160(%rbp), %rsi movq -0x150(%rbp), %rdi movl -0x154(%rbp), %eax movslq %eax, %rdx shlq $0x2, %rdx callq 0xcb1d0 leaq -0x48(%rbp), %rdi xorl %esi, %esi callq 0xc37f0 movq %rax, -0x168(%rbp) jmp 0xf1a90 movq -0x110(%rbp), %rax movq %rax, -0x178(%rbp) leaq -0x48(%rbp), %rdi callq 0xcc250 movl %eax, -0x16c(%rbp) jmp 0xf1aaf movq -0x178(%rbp), %rsi movq -0x168(%rbp), %rdi movl -0x16c(%rbp), %eax movslq %eax, %rdx shlq $0x2, %rdx callq 0xcb1d0 movb $0x1, -0x1(%rbp) movl $0x1, -0x114(%rbp) jmp 0xf1b0d movq %rax, %rcx movl %edx, %eax movq %rcx, -0x100(%rbp) movl %eax, -0x104(%rbp) leaq -0xf0(%rbp), %rdi callq 0xc6110 jmp 0xf1b27 movb $0x0, -0x1(%rbp) movl $0x1, -0x114(%rbp) leaq -0xf0(%rbp), %rdi callq 0xc6110 movb -0x1(%rbp), %al andb $0x1, %al addq $0x180, %rsp # imm = 0x180 popq %rbp retq movq -0x100(%rbp), %rdi callq 0xd58b0 nopw %cs:(%rax,%rax)
_ZN10OpenSubdiv6v3_6_03Vtr8internal5Level24orderVertexFacesAndEdgesEi: push rbp mov rbp, rsp sub rsp, 180h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov rdi, [rbp+var_10]; this mov [rbp+var_138], rdi mov esi, [rbp+var_14]; int call __ZN10OpenSubdiv6v3_6_03Vtr8internal5Level14getVertexFacesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexFaces(int) mov rdi, [rbp+var_138]; this mov [rbp+var_30], edx mov [rbp+var_38], rax mov eax, [rbp+var_30] mov [rbp+var_20], eax mov rax, [rbp+var_38] mov [rbp+var_28], rax mov esi, [rbp+var_14]; int call __ZN10OpenSubdiv6v3_6_03Vtr8internal5Level14getVertexEdgesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexEdges(int) mov [rbp+var_50], edx mov [rbp+var_58], rax mov eax, [rbp+var_50] mov [rbp+var_40], eax mov rax, [rbp+var_58] mov [rbp+var_48], rax lea rdi, [rbp+var_28] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiE4sizeEv; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(void) mov [rbp+var_12C], eax lea rdi, [rbp+var_48] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiE4sizeEv; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(void) mov esi, [rbp+var_12C] add esi, eax lea rdi, [rbp+var_F0] mov [rbp+var_128], rdi call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferIiLj32ELb0EEC2Ej; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int,32u,false>::StackBuffer(uint) mov rdi, [rbp+var_128] call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferIiLj32ELb0EEcvPiEv; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int,32u,false>::operator int *(void) mov [rbp+var_120], rax jmp short $+2 loc_F19A6: mov rax, [rbp+var_120] mov [rbp+var_F8], rax lea rdi, [rbp+var_F0] call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferIiLj32ELb0EEcvPiEv; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int,32u,false>::operator int *(void) mov [rbp+var_140], rax jmp short $+2 loc_F19C9: lea rdi, [rbp+var_28] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiE4sizeEv; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(void) mov [rbp+var_144], eax jmp short $+2 loc_F19DA: mov rdi, [rbp+var_138]; this mov rax, [rbp+var_140] mov ecx, [rbp+var_144] movsxd rcx, ecx lea rax, [rax+rcx*4] mov [rbp+var_110], rax mov esi, [rbp+var_14]; int mov rdx, [rbp+var_F8]; int * mov rcx, [rbp+var_110]; int * call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level24orderVertexFacesAndEdgesEiPiS4_; OpenSubdiv::v3_6_0::Vtr::internal::Level::orderVertexFacesAndEdges(int,int *,int *) mov [rbp+var_145], al jmp short $+2 loc_F1A1A: mov al, [rbp+var_145] test al, 1 jnz short loc_F1A29 jmp loc_F1AFF loc_F1A29: lea rdi, [rbp+var_28] xor esi, esi call __ZN10OpenSubdiv6v3_6_03Vtr5ArrayIiEixEi; OpenSubdiv::v3_6_0::Vtr::Array<int>::operator[](int) mov [rbp+var_150], rax jmp short $+2 loc_F1A3D: mov rax, [rbp+var_F8] mov [rbp+var_160], rax lea rdi, [rbp+var_28] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiE4sizeEv; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(void) mov [rbp+var_154], eax jmp short $+2 loc_F1A5C: mov rsi, [rbp+var_160] mov rdi, [rbp+var_150] mov eax, [rbp+var_154] movsxd rdx, eax shl rdx, 2 call _memcpy lea rdi, [rbp+var_48] xor esi, esi call __ZN10OpenSubdiv6v3_6_03Vtr5ArrayIiEixEi; OpenSubdiv::v3_6_0::Vtr::Array<int>::operator[](int) mov [rbp+var_168], rax jmp short $+2 loc_F1A90: mov rax, [rbp+var_110] mov [rbp+var_178], rax lea rdi, [rbp+var_48] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiE4sizeEv; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(void) mov [rbp+var_16C], eax jmp short $+2 loc_F1AAF: mov rsi, [rbp+var_178] mov rdi, [rbp+var_168] mov eax, [rbp+var_16C] movsxd rdx, eax shl rdx, 2 call _memcpy mov [rbp+var_1], 1 mov [rbp+var_114], 1 jmp short loc_F1B0D mov rcx, rax mov eax, edx mov [rbp+var_100], rcx mov [rbp+var_104], eax lea rdi, [rbp+var_F0] call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferIiLj32ELb0EED2Ev; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int,32u,false>::~StackBuffer() jmp short loc_F1B27 loc_F1AFF: mov [rbp+var_1], 0 mov [rbp+var_114], 1 loc_F1B0D: lea rdi, [rbp+var_F0] call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferIiLj32ELb0EED2Ev; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int,32u,false>::~StackBuffer() mov al, [rbp+var_1] and al, 1 add rsp, 180h pop rbp retn loc_F1B27: mov rdi, [rbp+var_100] call __Unwind_Resume
char OpenSubdiv::v3_6_0::Vtr::internal::Level::orderVertexFacesAndEdges( OpenSubdiv::v3_6_0::Vtr::internal::Level *this, int a2) { long long VertexFaces; // rax int v3; // edx long long VertexEdges; // rax int v5; // edx int v6; // eax int v8; // [rsp+14h] [rbp-16Ch] long long v9; // [rsp+18h] [rbp-168h] int v10; // [rsp+2Ch] [rbp-154h] long long v11; // [rsp+30h] [rbp-150h] long long v12; // [rsp+40h] [rbp-140h] int v13; // [rsp+54h] [rbp-12Ch] int *v14; // [rsp+70h] [rbp-110h] int *v15; // [rsp+88h] [rbp-F8h] _BYTE v16[152]; // [rsp+90h] [rbp-F0h] BYREF long long v17; // [rsp+128h] [rbp-58h] int v18; // [rsp+130h] [rbp-50h] long long v19; // [rsp+138h] [rbp-48h] BYREF int v20; // [rsp+140h] [rbp-40h] long long v21; // [rsp+148h] [rbp-38h] int v22; // [rsp+150h] [rbp-30h] long long v23; // [rsp+158h] [rbp-28h] BYREF int v24; // [rsp+160h] [rbp-20h] int v25; // [rsp+16Ch] [rbp-14h] OpenSubdiv::v3_6_0::Vtr::internal::Level *v26; // [rsp+170h] [rbp-10h] char v27; // [rsp+17Fh] [rbp-1h] v26 = this; v25 = a2; VertexFaces = OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexFaces(this, a2); v22 = v3; v21 = VertexFaces; v24 = v3; v23 = VertexFaces; VertexEdges = OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexEdges(this, a2); v18 = v5; v17 = VertexEdges; v20 = v5; v19 = VertexEdges; v13 = OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(&v23); v6 = OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(&v19); OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int,32u,false>::StackBuffer(v16, (unsigned int)(v6 + v13)); v15 = (int *)OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int,32u,false>::operator int *(v16); v12 = OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int,32u,false>::operator int *(v16); v14 = (int *)(v12 + 4LL * (int)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(&v23)); if ( (OpenSubdiv::v3_6_0::Vtr::internal::Level::orderVertexFacesAndEdges(this, v25, v15, v14) & 1) != 0 ) { v11 = OpenSubdiv::v3_6_0::Vtr::Array<int>::operator[](&v23, 0LL); v10 = OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(&v23); memcpy(v11, v15, 4LL * v10); v9 = OpenSubdiv::v3_6_0::Vtr::Array<int>::operator[](&v19, 0LL); v8 = OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(&v19); memcpy(v9, v14, 4LL * v8); v27 = 1; } else { v27 = 0; } OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int,32u,false>::~StackBuffer(v16); return v27 & 1; }
orderVertexFacesAndEdges: PUSH RBP MOV RBP,RSP SUB RSP,0x180 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV RDI,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x138],RDI MOV ESI,dword ptr [RBP + -0x14] CALL 0x001c90e0 MOV RDI,qword ptr [RBP + -0x138] MOV dword ptr [RBP + -0x30],EDX MOV qword ptr [RBP + -0x38],RAX MOV EAX,dword ptr [RBP + -0x30] MOV dword ptr [RBP + -0x20],EAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x28],RAX MOV ESI,dword ptr [RBP + -0x14] CALL 0x001c3970 MOV dword ptr [RBP + -0x50],EDX MOV qword ptr [RBP + -0x58],RAX MOV EAX,dword ptr [RBP + -0x50] MOV dword ptr [RBP + -0x40],EAX MOV RAX,qword ptr [RBP + -0x58] MOV qword ptr [RBP + -0x48],RAX LEA RDI,[RBP + -0x28] CALL 0x001cc250 MOV dword ptr [RBP + -0x12c],EAX LEA RDI,[RBP + -0x48] CALL 0x001cc250 MOV ESI,dword ptr [RBP + -0x12c] ADD ESI,EAX LEA RDI,[RBP + -0xf0] MOV qword ptr [RBP + -0x128],RDI CALL 0x001cf650 MOV RDI,qword ptr [RBP + -0x128] LAB_001f1998: CALL 0x001d20d0 MOV qword ptr [RBP + -0x120],RAX JMP 0x001f19a6 LAB_001f19a6: MOV RAX,qword ptr [RBP + -0x120] MOV qword ptr [RBP + -0xf8],RAX LEA RDI,[RBP + -0xf0] CALL 0x001d20d0 MOV qword ptr [RBP + -0x140],RAX JMP 0x001f19c9 LAB_001f19c9: LEA RDI,[RBP + -0x28] CALL 0x001cc250 MOV dword ptr [RBP + -0x144],EAX JMP 0x001f19da LAB_001f19da: MOV RDI,qword ptr [RBP + -0x138] MOV RAX,qword ptr [RBP + -0x140] MOV ECX,dword ptr [RBP + -0x144] MOVSXD RCX,ECX LEA RAX,[RAX + RCX*0x4] MOV qword ptr [RBP + -0x110],RAX MOV ESI,dword ptr [RBP + -0x14] MOV RDX,qword ptr [RBP + -0xf8] MOV RCX,qword ptr [RBP + -0x110] CALL 0x001c8e40 MOV byte ptr [RBP + -0x145],AL JMP 0x001f1a1a LAB_001f1a1a: MOV AL,byte ptr [RBP + -0x145] TEST AL,0x1 JNZ 0x001f1a29 JMP 0x001f1aff LAB_001f1a29: LEA RDI,[RBP + -0x28] XOR ESI,ESI CALL 0x001c37f0 MOV qword ptr [RBP + -0x150],RAX JMP 0x001f1a3d LAB_001f1a3d: MOV RAX,qword ptr [RBP + -0xf8] MOV qword ptr [RBP + -0x160],RAX LEA RDI,[RBP + -0x28] CALL 0x001cc250 LAB_001f1a54: MOV dword ptr [RBP + -0x154],EAX JMP 0x001f1a5c LAB_001f1a5c: MOV RSI,qword ptr [RBP + -0x160] MOV RDI,qword ptr [RBP + -0x150] MOV EAX,dword ptr [RBP + -0x154] MOVSXD RDX,EAX SHL RDX,0x2 CALL 0x001cb1d0 LAB_001f1a7c: LEA RDI,[RBP + -0x48] XOR ESI,ESI CALL 0x001c37f0 MOV qword ptr [RBP + -0x168],RAX JMP 0x001f1a90 LAB_001f1a90: MOV RAX,qword ptr [RBP + -0x110] MOV qword ptr [RBP + -0x178],RAX LEA RDI,[RBP + -0x48] CALL 0x001cc250 LAB_001f1aa7: MOV dword ptr [RBP + -0x16c],EAX JMP 0x001f1aaf LAB_001f1aaf: MOV RSI,qword ptr [RBP + -0x178] MOV RDI,qword ptr [RBP + -0x168] MOV EAX,dword ptr [RBP + -0x16c] MOVSXD RDX,EAX SHL RDX,0x2 CALL 0x001cb1d0 MOV byte ptr [RBP + -0x1],0x1 MOV dword ptr [RBP + -0x114],0x1 JMP 0x001f1b0d LAB_001f1aff: MOV byte ptr [RBP + -0x1],0x0 MOV dword ptr [RBP + -0x114],0x1 LAB_001f1b0d: LEA RDI,[RBP + -0xf0] CALL 0x001c6110 MOV AL,byte ptr [RBP + -0x1] AND AL,0x1 ADD RSP,0x180 POP RBP RET
/* OpenSubdiv::v3_6_0::Vtr::internal::Level::orderVertexFacesAndEdges(int) */ ulong __thiscall OpenSubdiv::v3_6_0::Vtr::internal::Level::orderVertexFacesAndEdges(Level *this,int param_1) { byte bVar1; int iVar2; int iVar3; int *__src; int *piVar4; void *pvVar5; int8 uVar6; StackBuffer<int,32u,false> local_f8 [152]; int1 local_60 [12]; ConstArray<int> local_50 [16]; int1 local_40 [12]; ConstArray<int> local_30 [20]; int local_1c; Level *local_18; int1 local_9; local_1c = param_1; local_18 = this; local_40 = getVertexFaces(this,param_1); local_30._0_12_ = local_40; local_60 = getVertexEdges(this,local_1c); local_50._0_12_ = local_60; iVar2 = ConstArray<int>::size(local_30); iVar3 = ConstArray<int>::size(local_50); StackBuffer<int,32u,false>::StackBuffer(local_f8,iVar2 + iVar3); /* try { // try from 001f1998 to 001f1a53 has its CatchHandler @ 001f1adf */ __src = internal::StackBuffer::operator_cast_to_int_((StackBuffer *)local_f8); piVar4 = internal::StackBuffer::operator_cast_to_int_((StackBuffer *)local_f8); iVar2 = ConstArray<int>::size(local_30); bVar1 = orderVertexFacesAndEdges(this,local_1c,__src,piVar4 + iVar2); local_9 = (bVar1 & 1) != 0; if ((bool)local_9) { pvVar5 = (void *)Array<int>::operator[]((Array<int> *)local_30,0); iVar3 = ConstArray<int>::size(local_30); memcpy(pvVar5,__src,(long)iVar3 << 2); /* try { // try from 001f1a7c to 001f1aa6 has its CatchHandler @ 001f1adf */ pvVar5 = (void *)Array<int>::operator[]((Array<int> *)local_50,0); iVar3 = ConstArray<int>::size(local_50); memcpy(pvVar5,piVar4 + iVar2,(long)iVar3 << 2); } uVar6 = StackBuffer<int,32u,false>::~StackBuffer(local_f8); return CONCAT71((int7)((ulong)uVar6 >> 8),local_9) & 0xffffffffffffff01; }
27,612
OpenSubdiv::v3_6_0::Vtr::internal::Level::orderVertexFacesAndEdges(int)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/level.cpp
bool Level::orderVertexFacesAndEdges(Index vIndex) { IndexArray vFaces = this->getVertexFaces(vIndex); IndexArray vEdges = this->getVertexEdges(vIndex); internal::StackBuffer<Index,32> indexBuffer(vFaces.size() + vEdges.size()); Index * vFacesOrdered = indexBuffer; Index * vEdgesOrdered = indexBuffer + vFaces.size(); if (orderVertexFacesAndEdges(vIndex, vFacesOrdered, vEdgesOrdered)) { std::memcpy(&vFaces[0], vFacesOrdered, vFaces.size() * sizeof(Index)); std::memcpy(&vEdges[0], vEdgesOrdered, vEdges.size() * sizeof(Index)); return true; } return false; }
O1
cpp
OpenSubdiv::v3_6_0::Vtr::internal::Level::orderVertexFacesAndEdges(int): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xa8, %rsp movl %esi, %r13d movq %rdi, %rbp leal (%r13,%r13), %eax leal 0x1(%r13,%r13), %ecx movslq %ecx, %rcx movq 0x108(%rdi), %rdx movq 0x150(%rdi), %rsi movslq (%rdx,%rcx,4), %rbx shlq $0x2, %rbx addq 0x120(%rdi), %rbx cltq movslq (%rdx,%rax,4), %r12 movslq (%rsi,%rcx,4), %r14 shlq $0x2, %r14 addq 0x168(%rdi), %r14 movslq (%rsi,%rax,4), %rax movq %rax, 0x8(%rsp) leal (%rax,%r12), %r15d leaq 0x20(%rsp), %rax movq %rax, -0x10(%rax) movl %r15d, -0x8(%rax) movl $0x20, -0x4(%rax) movq $0x0, 0x80(%rax) cmpl $0x21, %r15d jb 0x45c36 movl %r15d, %edi shlq $0x2, %rdi callq 0x3a230 movq %rax, 0xa0(%rsp) movq %rax, 0x10(%rsp) movl %r15d, 0x1c(%rsp) movq 0x10(%rsp), %r15 leaq (%r15,%r12,4), %rax movq %rbp, %rdi movl %r13d, %esi movq %rax, %r13 movq %r15, %rdx movq %rax, %rcx callq 0x39440 movl %eax, %ebp testb %al, %al je 0x45c7f shlq $0x2, %r12 movq %rbx, %rdi movq %r15, %rsi movq %r12, %rdx callq 0x39ad0 movq 0x8(%rsp), %rdx shlq $0x2, %rdx movq %r14, %rdi movq %r13, %rsi callq 0x39ad0 movq 0xa0(%rsp), %rdi callq 0x3a0c0 movl %ebp, %eax addq $0xa8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movq 0xa0(%rsp), %rdi callq 0x3a0c0 movq %rbx, %rdi callq 0x3bd70
_ZN10OpenSubdiv6v3_6_03Vtr8internal5Level24orderVertexFacesAndEdgesEi: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0A8h mov r13d, esi mov rbp, rdi lea eax, [r13+r13+0] lea ecx, [r13+r13+1] movsxd rcx, ecx mov rdx, [rdi+108h] mov rsi, [rdi+150h] movsxd rbx, dword ptr [rdx+rcx*4] shl rbx, 2 add rbx, [rdi+120h] cdqe movsxd r12, dword ptr [rdx+rax*4] movsxd r14, dword ptr [rsi+rcx*4] shl r14, 2 add r14, [rdi+168h] movsxd rax, dword ptr [rsi+rax*4] mov [rsp+0D8h+var_D0], rax lea r15d, [rax+r12] lea rax, [rsp+0D8h+var_B8] mov [rax-10h], rax mov [rax-8], r15d mov dword ptr [rax-4], 20h ; ' ' mov qword ptr [rax+80h], 0 cmp r15d, 21h ; '!' jb short loc_45C36 mov edi, r15d shl rdi, 2; unsigned __int64 call __Znwm; operator new(ulong) mov [rsp+0D8h+var_38], rax mov [rsp+0D8h+var_C8], rax mov [rsp+0D8h+var_BC], r15d loc_45C36: mov r15, [rsp+0D8h+var_C8] lea rax, [r15+r12*4] mov rdi, rbp; this mov esi, r13d; int mov r13, rax mov rdx, r15; int * mov rcx, rax; int * call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level24orderVertexFacesAndEdgesEiPiS4_; OpenSubdiv::v3_6_0::Vtr::internal::Level::orderVertexFacesAndEdges(int,int *,int *) mov ebp, eax test al, al jz short loc_45C7F shl r12, 2 mov rdi, rbx mov rsi, r15 mov rdx, r12 call _memcpy mov rdx, [rsp+0D8h+var_D0] shl rdx, 2 mov rdi, r14 mov rsi, r13 call _memcpy loc_45C7F: mov rdi, [rsp+0D8h+var_38]; void * call __ZdlPv; operator delete(void *) mov eax, ebp add rsp, 0A8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax mov rdi, [rsp+arg_98]; void * call __ZdlPv; operator delete(void *) mov rdi, rbx call __Unwind_Resume
long long OpenSubdiv::v3_6_0::Vtr::internal::Level::orderVertexFacesAndEdges( OpenSubdiv::v3_6_0::Vtr::internal::Level *this, int a2) { long long v3; // rcx long long v4; // rdx long long v5; // rsi long long v6; // rbx long long v7; // rax long long v8; // r12 long long v9; // r14 long long v10; // rcx unsigned int v11; // ebp long long v12; // r8 long long v13; // r9 long long v14; // rcx long long v15; // r8 long long v16; // r9 long long v18; // [rsp+8h] [rbp-D0h] int *v19; // [rsp+10h] [rbp-C8h] char v20; // [rsp+20h] [rbp-B8h] BYREF void *v21; // [rsp+A0h] [rbp-38h] v3 = 2 * a2 + 1; v4 = *((_QWORD *)this + 33); v5 = *((_QWORD *)this + 42); v6 = *((_QWORD *)this + 36) + 4LL * *(int *)(v4 + 4 * v3); v7 = 2 * a2; v8 = *(int *)(v4 + 4 * v7); v9 = *((_QWORD *)this + 45) + 4LL * *(int *)(v5 + 4 * v3); v18 = *(int *)(v5 + 4 * v7); v19 = (int *)&v20; v21 = 0LL; if ( (unsigned int)(v18 + v8) >= 0x21 ) { v21 = (void *)operator new(4LL * (unsigned int)(v18 + v8)); v19 = (int *)v21; } v11 = OpenSubdiv::v3_6_0::Vtr::internal::Level::orderVertexFacesAndEdges(this, a2, v19, &v19[v8]); if ( (_BYTE)v11 ) { memcpy(v6, v19, 4 * v8, v10, v12, v13); memcpy(v9, &v19[v8], 4 * v18, v14, v15, v16); } operator delete(v21); return v11; }
orderVertexFacesAndEdges: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xa8 MOV R13D,ESI MOV RBP,RDI LEA EAX,[R13 + R13*0x1] LEA ECX,[R13 + R13*0x1 + 0x1] MOVSXD RCX,ECX MOV RDX,qword ptr [RDI + 0x108] MOV RSI,qword ptr [RDI + 0x150] MOVSXD RBX,dword ptr [RDX + RCX*0x4] SHL RBX,0x2 ADD RBX,qword ptr [RDI + 0x120] CDQE MOVSXD R12,dword ptr [RDX + RAX*0x4] MOVSXD R14,dword ptr [RSI + RCX*0x4] SHL R14,0x2 ADD R14,qword ptr [RDI + 0x168] MOVSXD RAX,dword ptr [RSI + RAX*0x4] MOV qword ptr [RSP + 0x8],RAX LEA R15D,[RAX + R12*0x1] LEA RAX,[RSP + 0x20] MOV qword ptr [RAX + -0x10],RAX MOV dword ptr [RAX + -0x8],R15D MOV dword ptr [RAX + -0x4],0x20 MOV qword ptr [RAX + 0x80],0x0 CMP R15D,0x21 JC 0x00145c36 MOV EDI,R15D SHL RDI,0x2 CALL 0x0013a230 MOV qword ptr [RSP + 0xa0],RAX MOV qword ptr [RSP + 0x10],RAX MOV dword ptr [RSP + 0x1c],R15D LAB_00145c36: MOV R15,qword ptr [RSP + 0x10] LEA RAX,[R15 + R12*0x4] LAB_00145c3f: MOV RDI,RBP MOV ESI,R13D MOV R13,RAX MOV RDX,R15 MOV RCX,RAX CALL 0x00139440 LAB_00145c53: MOV EBP,EAX TEST AL,AL JZ 0x00145c7f SHL R12,0x2 MOV RDI,RBX MOV RSI,R15 MOV RDX,R12 CALL 0x00139ad0 MOV RDX,qword ptr [RSP + 0x8] SHL RDX,0x2 MOV RDI,R14 MOV RSI,R13 CALL 0x00139ad0 LAB_00145c7f: MOV RDI,qword ptr [RSP + 0xa0] CALL 0x0013a0c0 MOV EAX,EBP ADD RSP,0xa8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* OpenSubdiv::v3_6_0::Vtr::internal::Level::orderVertexFacesAndEdges(int) */ int4 __thiscall OpenSubdiv::v3_6_0::Vtr::internal::Level::orderVertexFacesAndEdges(Level *this,int param_1) { int iVar1; int iVar2; int iVar3; int iVar4; long lVar5; int4 uVar6; long lVar7; uint uVar8; int *local_c8; int local_b8 [32]; int *local_38; lVar7 = (long)(param_1 * 2 + 1); iVar1 = *(int *)(*(long *)(this + 0x108) + lVar7 * 4); lVar5 = *(long *)(this + 0x120); iVar2 = *(int *)(*(long *)(this + 0x108) + (long)(param_1 * 2) * 4); iVar3 = *(int *)(*(long *)(this + 0x150) + lVar7 * 4); lVar7 = *(long *)(this + 0x168); iVar4 = *(int *)(*(long *)(this + 0x150) + (long)(param_1 * 2) * 4); uVar8 = iVar4 + iVar2; local_c8 = local_b8; local_38 = (int *)0x0; if (0x20 < uVar8) { local_c8 = (int *)operator_new((ulong)uVar8 << 2); local_38 = local_c8; } /* try { // try from 00145c3f to 00145c52 has its CatchHandler @ 00145ca0 */ uVar6 = orderVertexFacesAndEdges(this,param_1,local_c8,local_c8 + iVar2); if ((char)uVar6 != '\0') { memcpy((void *)((long)iVar1 * 4 + lVar5),local_c8,(long)iVar2 << 2); memcpy((void *)((long)iVar3 * 4 + lVar7),local_c8 + iVar2,(long)iVar4 << 2); } operator_delete(local_38); return uVar6; }
27,613
OpenSubdiv::v3_6_0::Vtr::internal::Level::orderVertexFacesAndEdges(int)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/level.cpp
bool Level::orderVertexFacesAndEdges(Index vIndex) { IndexArray vFaces = this->getVertexFaces(vIndex); IndexArray vEdges = this->getVertexEdges(vIndex); internal::StackBuffer<Index,32> indexBuffer(vFaces.size() + vEdges.size()); Index * vFacesOrdered = indexBuffer; Index * vEdgesOrdered = indexBuffer + vFaces.size(); if (orderVertexFacesAndEdges(vIndex, vFacesOrdered, vEdgesOrdered)) { std::memcpy(&vFaces[0], vFacesOrdered, vFaces.size() * sizeof(Index)); std::memcpy(&vEdges[0], vEdgesOrdered, vEdges.size() * sizeof(Index)); return true; } return false; }
O2
cpp
OpenSubdiv::v3_6_0::Vtr::internal::Level::orderVertexFacesAndEdges(int): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xa8, %rsp movl %esi, %ebp movq %rdi, %r14 callq 0x511c0 movq %rax, (%rsp) movl %edx, %ebx movq %r14, %rdi movl %ebp, %esi callq 0x4f370 movq %rax, 0x8(%rsp) movl %edx, %r15d leal (%r15,%rbx), %esi leaq 0x10(%rsp), %r12 movq %r12, %rdi callq 0x53280 movq (%r12), %r13 movslq %ebx, %rbx leaq (,%rbx,4), %r12 addq %r13, %r12 movq %r14, %rdi movl %ebp, %esi movq %r13, %rdx movq %r12, %rcx callq 0x510e0 movl %eax, %ebp testb %al, %al je 0x5da7b shlq $0x2, %rbx movq (%rsp), %rdi movq %r13, %rsi movq %rbx, %rdx callq 0x51bd0 movslq %r15d, %rdx shlq $0x2, %rdx movq 0x8(%rsp), %rdi movq %r12, %rsi callq 0x51bd0 movq 0xa0(%rsp), %rdi callq 0x524d0 movl %ebp, %eax addq $0xa8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movq 0xa0(%rsp), %rdi callq 0x524d0 movq %rbx, %rdi callq 0x55300
_ZN10OpenSubdiv6v3_6_03Vtr8internal5Level24orderVertexFacesAndEdgesEi: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0A8h mov ebp, esi mov r14, rdi call __ZN10OpenSubdiv6v3_6_03Vtr8internal5Level14getVertexFacesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexFaces(int) mov [rsp+0D8h+var_D8], rax mov ebx, edx mov rdi, r14; this mov esi, ebp; int call __ZN10OpenSubdiv6v3_6_03Vtr8internal5Level14getVertexEdgesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexEdges(int) mov [rsp+0D8h+var_D0], rax mov r15d, edx lea esi, [r15+rbx] lea r12, [rsp+0D8h+var_C8] mov rdi, r12 call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferIiLj32ELb0EEC2Ej; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int,32u,false>::StackBuffer(uint) mov r13, [r12] movsxd rbx, ebx lea r12, ds:0[rbx*4] add r12, r13 mov rdi, r14; this mov esi, ebp; int mov rdx, r13; int * mov rcx, r12; int * call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level24orderVertexFacesAndEdgesEiPiS4_; OpenSubdiv::v3_6_0::Vtr::internal::Level::orderVertexFacesAndEdges(int,int *,int *) mov ebp, eax test al, al jz short loc_5DA7B shl rbx, 2 mov rdi, [rsp+0D8h+var_D8] mov rsi, r13 mov rdx, rbx call _memcpy movsxd rdx, r15d shl rdx, 2 mov rdi, [rsp+0D8h+var_D0] mov rsi, r12 call _memcpy loc_5DA7B: mov rdi, [rsp+0D8h+var_38]; void * call __ZdlPv; operator delete(void *) mov eax, ebp add rsp, 0A8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax mov rdi, [rsp+arg_98]; void * call __ZdlPv; operator delete(void *) mov rdi, rbx call __Unwind_Resume
long long OpenSubdiv::v3_6_0::Vtr::internal::Level::orderVertexFacesAndEdges( OpenSubdiv::v3_6_0::Vtr::internal::Level *this, int a2) { int v2; // edx int v3; // ebx int v4; // edx int v5; // r15d int *v6; // r13 int *v7; // r12 long long v8; // rcx unsigned int v9; // ebp long long v10; // r8 long long v11; // r9 long long v12; // rcx long long v13; // r8 long long v14; // r9 long long VertexFaces; // [rsp+0h] [rbp-D8h] long long VertexEdges; // [rsp+8h] [rbp-D0h] int *v18[25]; // [rsp+10h] [rbp-C8h] BYREF VertexFaces = OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexFaces(this, a2); v3 = v2; VertexEdges = OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexEdges(this, a2); v5 = v4; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int,32u,false>::StackBuffer(v18, (unsigned int)(v4 + v3)); v6 = v18[0]; v7 = &v18[0][v3]; v9 = OpenSubdiv::v3_6_0::Vtr::internal::Level::orderVertexFacesAndEdges(this, a2, v18[0], v7); if ( (_BYTE)v9 ) { memcpy(VertexFaces, v6, 4LL * v3, v8, v10, v11); memcpy(VertexEdges, v7, 4LL * v5, v12, v13, v14); } operator delete(v18[18]); return v9; }
orderVertexFacesAndEdges: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xa8 MOV EBP,ESI MOV R14,RDI CALL 0x001511c0 MOV qword ptr [RSP],RAX MOV EBX,EDX MOV RDI,R14 MOV ESI,EBP CALL 0x0014f370 MOV qword ptr [RSP + 0x8],RAX MOV R15D,EDX LEA ESI,[R15 + RBX*0x1] LEA R12,[RSP + 0x10] MOV RDI,R12 CALL 0x00153280 MOV R13,qword ptr [R12] MOVSXD RBX,EBX LEA R12,[RBX*0x4] ADD R12,R13 LAB_0015da3e: MOV RDI,R14 MOV ESI,EBP MOV RDX,R13 MOV RCX,R12 CALL 0x001510e0 LAB_0015da4e: MOV EBP,EAX TEST AL,AL JZ 0x0015da7b SHL RBX,0x2 MOV RDI,qword ptr [RSP] MOV RSI,R13 MOV RDX,RBX CALL 0x00151bd0 MOVSXD RDX,R15D SHL RDX,0x2 MOV RDI,qword ptr [RSP + 0x8] MOV RSI,R12 CALL 0x00151bd0 LAB_0015da7b: MOV RDI,qword ptr [RSP + 0xa0] CALL 0x001524d0 MOV EAX,EBP ADD RSP,0xa8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* OpenSubdiv::v3_6_0::Vtr::internal::Level::orderVertexFacesAndEdges(int) */ int4 __thiscall OpenSubdiv::v3_6_0::Vtr::internal::Level::orderVertexFacesAndEdges(Level *this,int param_1) { int4 uVar1; int iVar2; int1 auVar3 [12]; int1 auVar4 [12]; int *local_c8 [18]; void *local_38; auVar3 = getVertexFaces(this,param_1); iVar2 = auVar3._8_4_; auVar4 = getVertexEdges(this,param_1); StackBuffer<int,32u,false>::StackBuffer ((StackBuffer<int,32u,false> *)local_c8,auVar4._8_4_ + iVar2); /* try { // try from 0015da3e to 0015da4d has its CatchHandler @ 0015da9c */ uVar1 = orderVertexFacesAndEdges(this,param_1,local_c8[0],local_c8[0] + iVar2); if ((char)uVar1 != '\0') { memcpy(auVar3._0_8_,local_c8[0],(long)iVar2 << 2); memcpy(auVar4._0_8_,local_c8[0] + iVar2,(long)auVar4._8_4_ << 2); } operator_delete(local_38); return uVar1; }
27,614
ma_control_file_end
eloqsql/storage/maria/ma_control_file.c
int ma_control_file_end(void) { int close_error; DBUG_ENTER("ma_control_file_end"); if (control_file_fd < 0) /* already closed */ DBUG_RETURN(0); #ifndef _WIN32 (void) my_lock(control_file_fd, F_UNLCK, 0L, F_TO_EOF, MYF(MY_SEEK_NOT_DONE | MY_FORCE_LOCK)); #endif close_error= mysql_file_close(control_file_fd, MYF(MY_WME)); /* As mysql_file_close() frees structures even if close() fails, we do the same, i.e. we mark the file as closed in all cases. */ control_file_fd= -1; /* As this module owns these variables, closing the module forbids access to them (just a safety): */ last_checkpoint_lsn= LSN_IMPOSSIBLE; last_logno= FILENO_IMPOSSIBLE; max_trid_in_control_file= recovery_failures= 0; DBUG_RETURN(close_error); }
O0
c
ma_control_file_end: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp cmpl $0x0, 0x239e71(%rip) # 0x2c5240 jge 0x8b3dc jmp 0x8b3d3 movl $0x0, -0x4(%rbp) jmp 0x8b44f movl 0x239e5e(%rip), %edi # 0x2c5240 movl $0x2, %esi xorl %eax, %eax movl %eax, %ecx movl $0xa0, %r8d movq %rcx, %rdx callq 0xfb060 movl 0x239e41(%rip), %edx # 0x2c5240 leaq 0xce44f(%rip), %rdi # 0x159855 movl $0x24d, %esi # imm = 0x24D movl $0x10, %ecx callq 0x8b890 movl %eax, -0x8(%rbp) movl $0xffffffff, 0x239e1e(%rip) # imm = 0xFFFFFFFF movq $0x0, 0x3f7ecb(%rip) # 0x4832f8 movl $0x0, 0x3f7ec9(%rip) # 0x483300 movb $0x0, 0x3f7ed2(%rip) # 0x483310 movq $0x0, 0x3f7ebf(%rip) # 0x483308 movl -0x8(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
ma_control_file_end: push rbp mov rbp, rsp sub rsp, 10h cmp cs:control_file_fd, 0 jge short loc_8B3DC jmp short $+2 loc_8B3D3: mov [rbp+var_4], 0 jmp short loc_8B44F loc_8B3DC: mov edi, cs:control_file_fd mov esi, 2 xor eax, eax mov ecx, eax mov r8d, 0A0h mov rdx, rcx call my_lock mov edx, cs:control_file_fd lea rdi, aWorkspaceLlm4b_23; "/workspace/llm4binary/github2025/eloqsq"... mov esi, 24Dh mov ecx, 10h call inline_mysql_file_close_3 mov [rbp+var_8], eax mov cs:control_file_fd, 0FFFFFFFFh mov cs:last_checkpoint_lsn, 0 mov cs:last_logno, 0 mov cs:recovery_failures, 0 mov cs:max_trid_in_control_file, 0 mov eax, [rbp+var_8] mov [rbp+var_4], eax loc_8B44F: mov eax, [rbp+var_4] add rsp, 10h pop rbp retn
long long ma_control_file_end() { unsigned int v1; // [rsp+8h] [rbp-8h] if ( control_file_fd >= 0 ) { my_lock((unsigned int)control_file_fd, 2LL, 0LL, 0LL, 160LL); v1 = inline_mysql_file_close_3( "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_control_file.c", 589LL, (unsigned int)control_file_fd, 16LL); control_file_fd = -1; last_checkpoint_lsn = 0LL; last_logno = 0; recovery_failures = 0; max_trid_in_control_file = 0LL; return v1; } else { return 0; } }
ma_control_file_end: PUSH RBP MOV RBP,RSP SUB RSP,0x10 CMP dword ptr [0x003c5240],0x0 JGE 0x0018b3dc JMP 0x0018b3d3 LAB_0018b3d3: MOV dword ptr [RBP + -0x4],0x0 JMP 0x0018b44f LAB_0018b3dc: MOV EDI,dword ptr [0x003c5240] MOV ESI,0x2 XOR EAX,EAX MOV ECX,EAX MOV R8D,0xa0 MOV RDX,RCX CALL 0x001fb060 MOV EDX,dword ptr [0x003c5240] LEA RDI,[0x259855] MOV ESI,0x24d MOV ECX,0x10 CALL 0x0018b890 MOV dword ptr [RBP + -0x8],EAX MOV dword ptr [0x003c5240],0xffffffff MOV qword ptr [0x005832f8],0x0 MOV dword ptr [0x00583300],0x0 MOV byte ptr [0x00583310],0x0 MOV qword ptr [0x00583308],0x0 MOV EAX,dword ptr [RBP + -0x8] MOV dword ptr [RBP + -0x4],EAX LAB_0018b44f: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x10 POP RBP RET
int4 ma_control_file_end(void) { int4 local_c; if (control_file_fd < 0) { local_c = 0; } else { my_lock(control_file_fd,2,0,0,0xa0); local_c = inline_mysql_file_close ("/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_control_file.c", 0x24d,control_file_fd,0x10); control_file_fd = -1; last_checkpoint_lsn = 0; last_logno = 0; recovery_failures = 0; max_trid_in_control_file = 0; } return local_c; }
27,615
json_as_string
corpus-core[P]colibri-stateless/src/util/json.c
char* json_as_string(json_t val, buffer_t* buffer) { buffer->data.len = 0; buffer_grow(buffer, val.len + 1); if (val.type == JSON_TYPE_STRING) buffer_append(buffer, bytes((uint8_t*) val.start + 1, val.len - 2)); else buffer_append(buffer, bytes((uint8_t*) val.start, val.len)); buffer->data.data[buffer->data.len] = '\0'; return (char*) buffer->data.data; }
O0
c
json_as_string: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp leaq 0x10(%rbp), %rax movq %rax, -0x30(%rbp) movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rcx movl $0x0, (%rcx) movq -0x8(%rbp), %rdi movq 0x8(%rax), %rsi addq $0x1, %rsi callq 0x18af0 movq -0x30(%rbp), %rax cmpl $0x1, 0x10(%rax) jne 0x208d5 movq -0x30(%rbp), %rax movq -0x8(%rbp), %rdi movq 0x8(%rax), %rcx subq $0x2, %rcx movl %ecx, -0x18(%rbp) movq (%rax), %rax addq $0x1, %rax movq %rax, -0x10(%rbp) movl -0x18(%rbp), %esi movq -0x10(%rbp), %rdx callq 0x18bd0 jmp 0x208f7 movq -0x30(%rbp), %rax movq -0x8(%rbp), %rdi movq 0x8(%rax), %rcx movl %ecx, -0x28(%rbp) movq (%rax), %rax movq %rax, -0x20(%rbp) movl -0x28(%rbp), %esi movq -0x20(%rbp), %rdx callq 0x18bd0 movq -0x8(%rbp), %rax movq 0x8(%rax), %rax movq -0x8(%rbp), %rcx movl (%rcx), %ecx movb $0x0, (%rax,%rcx) movq -0x8(%rbp), %rax movq 0x8(%rax), %rax addq $0x30, %rsp popq %rbp retq nopw (%rax,%rax)
json_as_string: push rbp mov rbp, rsp sub rsp, 30h lea rax, [rbp+arg_0] mov [rbp+var_30], rax mov [rbp+var_8], rdi mov rcx, [rbp+var_8] mov dword ptr [rcx], 0 mov rdi, [rbp+var_8] mov rsi, [rax+8] add rsi, 1 call buffer_grow mov rax, [rbp+var_30] cmp dword ptr [rax+10h], 1 jnz short loc_208D5 mov rax, [rbp+var_30] mov rdi, [rbp+var_8] mov rcx, [rax+8] sub rcx, 2 mov [rbp+var_18], ecx mov rax, [rax] add rax, 1 mov [rbp+var_10], rax mov esi, [rbp+var_18] mov rdx, [rbp+var_10] call buffer_append jmp short loc_208F7 loc_208D5: mov rax, [rbp+var_30] mov rdi, [rbp+var_8] mov rcx, [rax+8] mov [rbp+var_28], ecx mov rax, [rax] mov [rbp+var_20], rax mov esi, [rbp+var_28] mov rdx, [rbp+var_20] call buffer_append loc_208F7: mov rax, [rbp+var_8] mov rax, [rax+8] mov rcx, [rbp+var_8] mov ecx, [rcx] mov byte ptr [rax+rcx], 0 mov rax, [rbp+var_8] mov rax, [rax+8] add rsp, 30h pop rbp retn
long long json_as_string( unsigned int *a1, _DWORD a2, _DWORD a3, _DWORD a4, _DWORD a5, _DWORD a6, long long a7, long long a8, int a9) { *a1 = 0; buffer_grow((unsigned long long)a1, a8 + 1); if ( a9 == 1 ) buffer_append(a1, a8 - 2, a7 + 1); else buffer_append(a1, a8, a7); *(_BYTE *)(*((_QWORD *)a1 + 1) + *a1) = 0; return *((_QWORD *)a1 + 1); }
json_as_string: PUSH RBP MOV RBP,RSP SUB RSP,0x30 LEA RAX,[RBP + 0x10] MOV qword ptr [RBP + -0x30],RAX MOV qword ptr [RBP + -0x8],RDI MOV RCX,qword ptr [RBP + -0x8] MOV dword ptr [RCX],0x0 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RAX + 0x8] ADD RSI,0x1 CALL 0x00118af0 MOV RAX,qword ptr [RBP + -0x30] CMP dword ptr [RAX + 0x10],0x1 JNZ 0x001208d5 MOV RAX,qword ptr [RBP + -0x30] MOV RDI,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x8] SUB RCX,0x2 MOV dword ptr [RBP + -0x18],ECX MOV RAX,qword ptr [RAX] ADD RAX,0x1 MOV qword ptr [RBP + -0x10],RAX MOV ESI,dword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x10] CALL 0x00118bd0 JMP 0x001208f7 LAB_001208d5: MOV RAX,qword ptr [RBP + -0x30] MOV RDI,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x8] MOV dword ptr [RBP + -0x28],ECX MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x20],RAX MOV ESI,dword ptr [RBP + -0x28] MOV RDX,qword ptr [RBP + -0x20] CALL 0x00118bd0 LAB_001208f7: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RCX] MOV byte ptr [RAX + RCX*0x1],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] ADD RSP,0x30 POP RBP RET
/* WARNING: Restarted to delay deadcode elimination for space: stack */ int8 json_as_string(uint *param_1) { long in_stack_00000008; ulong in_stack_00000010; int in_stack_00000018; *param_1 = 0; buffer_grow(param_1,in_stack_00000010 + 1); if (in_stack_00000018 == 1) { buffer_append(param_1,(int)in_stack_00000010 + -2,in_stack_00000008 + 1); } else { buffer_append(param_1,in_stack_00000010 & 0xffffffff,in_stack_00000008); } *(int1 *)(*(long *)(param_1 + 2) + (ulong)*param_1) = 0; return *(int8 *)(param_1 + 2); }
27,616
json_as_string
corpus-core[P]colibri-stateless/src/util/json.c
char* json_as_string(json_t val, buffer_t* buffer) { buffer->data.len = 0; buffer_grow(buffer, val.len + 1); if (val.type == JSON_TYPE_STRING) buffer_append(buffer, bytes((uint8_t*) val.start + 1, val.len - 2)); else buffer_append(buffer, bytes((uint8_t*) val.start, val.len)); buffer->data.data[buffer->data.len] = '\0'; return (char*) buffer->data.data; }
O3
c
json_as_string: pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx leaq 0x20(%rsp), %r15 movl $0x0, (%rdi) movq 0x8(%r15), %r14 leaq 0x1(%r14), %rsi callq 0x125e5 cmpl $0x1, 0x10(%r15) jne 0x1700b addl $-0x2, %r14d movq (%r15), %rdx incq %rdx jmp 0x1700e movq (%r15), %rdx movq %rbx, %rdi movl %r14d, %esi callq 0x12651 movq 0x8(%rbx), %rax movl (%rbx), %ecx movb $0x0, (%rax,%rcx) movq 0x8(%rbx), %rax popq %rbx popq %r14 popq %r15 retq
json_as_string: push r15 push r14 push rbx mov rbx, rdi lea r15, [rsp+18h+arg_0] mov dword ptr [rdi], 0 mov r14, [r15+8] lea rsi, [r14+1] call buffer_grow cmp dword ptr [r15+10h], 1 jnz short loc_1700B add r14d, 0FFFFFFFEh mov rdx, [r15] inc rdx jmp short loc_1700E loc_1700B: mov rdx, [r15] loc_1700E: mov rdi, rbx mov esi, r14d call buffer_append mov rax, [rbx+8] mov ecx, [rbx] mov byte ptr [rax+rcx], 0 mov rax, [rbx+8] pop rbx pop r14 pop r15 retn
long long json_as_string( unsigned int *a1, _DWORD a2, _DWORD a3, _DWORD a4, _DWORD a5, _DWORD a6, long long a7, long long a8, int a9) { unsigned int v9; // r14d long long v10; // rdx *a1 = 0; v9 = a8; buffer_grow((long long)a1, a8 + 1); if ( a9 == 1 ) { v9 = a8 - 2; v10 = a7 + 1; } else { v10 = a7; } buffer_append(a1, v9, v10); *(_BYTE *)(*((_QWORD *)a1 + 1) + *a1) = 0; return *((_QWORD *)a1 + 1); }
json_as_string: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RDI LEA R15,[RSP + 0x20] MOV dword ptr [RDI],0x0 MOV R14,qword ptr [R15 + 0x8] LEA RSI,[R14 + 0x1] CALL 0x001125e5 CMP dword ptr [R15 + 0x10],0x1 JNZ 0x0011700b ADD R14D,-0x2 MOV RDX,qword ptr [R15] INC RDX JMP 0x0011700e LAB_0011700b: MOV RDX,qword ptr [R15] LAB_0011700e: MOV RDI,RBX MOV ESI,R14D CALL 0x00112651 MOV RAX,qword ptr [RBX + 0x8] MOV ECX,dword ptr [RBX] MOV byte ptr [RAX + RCX*0x1],0x0 MOV RAX,qword ptr [RBX + 0x8] POP RBX POP R14 POP R15 RET
int8 json_as_string(uint *param_1) { long in_stack_00000008; ulong in_stack_00000010; int in_stack_00000018; *param_1 = 0; buffer_grow(param_1,in_stack_00000010 + 1); if (in_stack_00000018 == 1) { in_stack_00000010 = (ulong)((int)in_stack_00000010 - 2); in_stack_00000008 = in_stack_00000008 + 1; } buffer_append(param_1,in_stack_00000010 & 0xffffffff,in_stack_00000008); *(int1 *)(*(long *)(param_1 + 2) + (ulong)*param_1) = 0; return *(int8 *)(param_1 + 2); }
27,617
make_ftype
eloqsql/mysys/my_fopen.c
static void make_ftype(register char * to, register int flag) { /* check some possible invalid combinations */ DBUG_ASSERT((flag & (O_TRUNC | O_APPEND)) != (O_TRUNC | O_APPEND)); DBUG_ASSERT((flag & (O_WRONLY | O_RDWR)) != (O_WRONLY | O_RDWR)); if ((flag & (O_RDONLY|O_WRONLY)) == O_WRONLY) *to++= (flag & O_APPEND) ? 'a' : 'w'; else if (flag & O_RDWR) { /* Add '+' after theese */ if (flag & (O_TRUNC | O_CREAT)) *to++= 'w'; else if (flag & O_APPEND) *to++= 'a'; else *to++= 'r'; *to++= '+'; } else *to++= 'r'; if (flag & FILE_BINARY) *to++='b'; if (O_CLOEXEC) *to++= 'e'; *to='\0'; }
O0
c
make_ftype: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) jmp 0x43c1d jmp 0x43c1f jmp 0x43c21 movl -0xc(%rbp), %eax andl $0x1, %eax cmpl $0x1, %eax jne 0x43c5d movl -0xc(%rbp), %edx andl $0x400, %edx # imm = 0x400 movl $0x77, %eax movl $0x61, %ecx cmpl $0x0, %edx cmovnel %ecx, %eax movb %al, %cl movq -0x8(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x8(%rbp) movb %cl, (%rax) jmp 0x43ce6 movl -0xc(%rbp), %eax andl $0x2, %eax cmpl $0x0, %eax je 0x43cd2 movl -0xc(%rbp), %eax andl $0x240, %eax # imm = 0x240 cmpl $0x0, %eax je 0x43c89 movq -0x8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x8(%rbp) movb $0x77, (%rax) jmp 0x43cbe movl -0xc(%rbp), %eax andl $0x400, %eax # imm = 0x400 cmpl $0x0, %eax je 0x43caa movq -0x8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x8(%rbp) movb $0x61, (%rax) jmp 0x43cbc movq -0x8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x8(%rbp) movb $0x72, (%rax) jmp 0x43cbe movq -0x8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x8(%rbp) movb $0x2b, (%rax) jmp 0x43ce4 movq -0x8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x8(%rbp) movb $0x72, (%rax) jmp 0x43ce6 movl -0xc(%rbp), %eax andl $0x0, %eax cmpl $0x0, %eax je 0x43d03 movq -0x8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x8(%rbp) movb $0x62, (%rax) movq -0x8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x8(%rbp) movb $0x65, (%rax) movq -0x8(%rbp), %rax movb $0x0, (%rax) popq %rbp retq nop
make_ftype: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_C], esi jmp short $+2 loc_43C1D: jmp short $+2 loc_43C1F: jmp short $+2 loc_43C21: mov eax, [rbp+var_C] and eax, 1 cmp eax, 1 jnz short loc_43C5D mov edx, [rbp+var_C] and edx, 400h mov eax, 77h ; 'w' mov ecx, 61h ; 'a' cmp edx, 0 cmovnz eax, ecx mov cl, al mov rax, [rbp+var_8] mov rdx, rax add rdx, 1 mov [rbp+var_8], rdx mov [rax], cl jmp loc_43CE6 loc_43C5D: mov eax, [rbp+var_C] and eax, 2 cmp eax, 0 jz short loc_43CD2 mov eax, [rbp+var_C] and eax, 240h cmp eax, 0 jz short loc_43C89 mov rax, [rbp+var_8] mov rcx, rax add rcx, 1 mov [rbp+var_8], rcx mov byte ptr [rax], 77h ; 'w' jmp short loc_43CBE loc_43C89: mov eax, [rbp+var_C] and eax, 400h cmp eax, 0 jz short loc_43CAA mov rax, [rbp+var_8] mov rcx, rax add rcx, 1 mov [rbp+var_8], rcx mov byte ptr [rax], 61h ; 'a' jmp short loc_43CBC loc_43CAA: mov rax, [rbp+var_8] mov rcx, rax add rcx, 1 mov [rbp+var_8], rcx mov byte ptr [rax], 72h ; 'r' loc_43CBC: jmp short $+2 loc_43CBE: mov rax, [rbp+var_8] mov rcx, rax add rcx, 1 mov [rbp+var_8], rcx mov byte ptr [rax], 2Bh ; '+' jmp short loc_43CE4 loc_43CD2: mov rax, [rbp+var_8] mov rcx, rax add rcx, 1 mov [rbp+var_8], rcx mov byte ptr [rax], 72h ; 'r' loc_43CE4: jmp short $+2 loc_43CE6: mov eax, [rbp+var_C] and eax, 0 cmp eax, 0 jz short loc_43D03 mov rax, [rbp+var_8] mov rcx, rax add rcx, 1 mov [rbp+var_8], rcx mov byte ptr [rax], 62h ; 'b' loc_43D03: mov rax, [rbp+var_8] mov rcx, rax add rcx, 1 mov [rbp+var_8], rcx mov byte ptr [rax], 65h ; 'e' mov rax, [rbp+var_8] mov byte ptr [rax], 0 pop rbp retn
_BYTE * make_ftype(char *a1, __int16 a2) { char v2; // al _BYTE *v3; // rax _BYTE *result; // rax _BYTE *v5; // [rsp+4h] [rbp-8h] _BYTE *v6; // [rsp+4h] [rbp-8h] if ( (a2 & 1) == 1 ) { v2 = 119; if ( (a2 & 0x400) != 0 ) v2 = 97; v5 = a1 + 1; *a1 = v2; } else if ( (a2 & 2) != 0 ) { if ( (a2 & 0x240) != 0 ) { v6 = a1 + 1; *a1 = 119; } else { v6 = a1 + 1; if ( (a2 & 0x400) != 0 ) *a1 = 97; else *a1 = 114; } v3 = v6; v5 = v6 + 1; *v3 = 43; } else { v5 = a1 + 1; *a1 = 114; } *v5 = 101; result = v5 + 1; v5[1] = 0; return result; }
make_ftype: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI JMP 0x00143c1d LAB_00143c1d: JMP 0x00143c1f LAB_00143c1f: JMP 0x00143c21 LAB_00143c21: MOV EAX,dword ptr [RBP + -0xc] AND EAX,0x1 CMP EAX,0x1 JNZ 0x00143c5d MOV EDX,dword ptr [RBP + -0xc] AND EDX,0x400 MOV EAX,0x77 MOV ECX,0x61 CMP EDX,0x0 CMOVNZ EAX,ECX 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 JMP 0x00143ce6 LAB_00143c5d: MOV EAX,dword ptr [RBP + -0xc] AND EAX,0x2 CMP EAX,0x0 JZ 0x00143cd2 MOV EAX,dword ptr [RBP + -0xc] AND EAX,0x240 CMP EAX,0x0 JZ 0x00143c89 MOV RAX,qword ptr [RBP + -0x8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x8],RCX MOV byte ptr [RAX],0x77 JMP 0x00143cbe LAB_00143c89: MOV EAX,dword ptr [RBP + -0xc] AND EAX,0x400 CMP EAX,0x0 JZ 0x00143caa MOV RAX,qword ptr [RBP + -0x8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x8],RCX MOV byte ptr [RAX],0x61 JMP 0x00143cbc LAB_00143caa: MOV RAX,qword ptr [RBP + -0x8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x8],RCX MOV byte ptr [RAX],0x72 LAB_00143cbc: JMP 0x00143cbe LAB_00143cbe: MOV RAX,qword ptr [RBP + -0x8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x8],RCX MOV byte ptr [RAX],0x2b JMP 0x00143ce4 LAB_00143cd2: MOV RAX,qword ptr [RBP + -0x8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x8],RCX MOV byte ptr [RAX],0x72 LAB_00143ce4: JMP 0x00143ce6 LAB_00143ce6: MOV EAX,dword ptr [RBP + -0xc] AND EAX,0x0 CMP EAX,0x0 JZ 0x00143d03 MOV RAX,qword ptr [RBP + -0x8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x8],RCX MOV byte ptr [RAX],0x62 LAB_00143d03: MOV RAX,qword ptr [RBP + -0x8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x8],RCX MOV byte ptr [RAX],0x65 MOV RAX,qword ptr [RBP + -0x8] MOV byte ptr [RAX],0x0 POP RBP RET
/* WARNING: Removing unreachable block (ram,0x00143cf1) */ void make_ftype(int1 *param_1,uint param_2) { int1 uVar1; int1 *local_10; if ((param_2 & 1) == 1) { uVar1 = 0x77; if ((param_2 & 0x400) != 0) { uVar1 = 0x61; } *param_1 = uVar1; local_10 = param_1 + 1; } else if ((param_2 & 2) == 0) { local_10 = param_1 + 1; *param_1 = 0x72; } else { if ((param_2 & 0x240) == 0) { if ((param_2 & 0x400) == 0) { *param_1 = 0x72; } else { *param_1 = 0x61; } } else { *param_1 = 0x77; } local_10 = param_1 + 1; *local_10 = 0x2b; local_10 = param_1 + 2; } *local_10 = 0x65; local_10[1] = 0; return; }
27,618
ma_save_session_track_info
eloqsql/libmariadb/libmariadb/mariadb_lib.c
void ma_save_session_track_info(void *ptr, enum enum_mariadb_status_info type, ...) { MYSQL *mysql= (MYSQL *)ptr; enum enum_session_state_type track_type; va_list ap; DBUG_ASSERT(mysql != NULL); /* We only handle SESSION_TRACK_TYPE here */ if (type != SESSION_TRACK_TYPE) return; va_start(ap, type); track_type= va_arg(ap, enum enum_session_state_type); switch (track_type) { case SESSION_TRACK_SCHEMA: case SESSION_TRACK_STATE_CHANGE: case SESSION_TRACK_TRANSACTION_CHARACTERISTICS: case SESSION_TRACK_TRANSACTION_STATE: case SESSION_TRACK_GTIDS: case SESSION_TRACK_SYSTEM_VARIABLES: { LIST *session_item; MYSQL_LEX_STRING *str; char *tmp; MARIADB_CONST_STRING *data1= va_arg(ap, MARIADB_CONST_STRING *); if (!(session_item= ma_multi_malloc(0, &session_item, sizeof(LIST), &str, sizeof(MYSQL_LEX_STRING), &tmp, data1->length, NULL))) goto mem_error; str->str= tmp; memcpy(str->str, data1->str, data1->length); str->length= data1->length; session_item->data= str; mysql->extension->session_state[track_type].list= list_add(mysql->extension->session_state[track_type].list, session_item); if (track_type == SESSION_TRACK_SYSTEM_VARIABLES) { MARIADB_CONST_STRING *data2= va_arg(ap, MARIADB_CONST_STRING *); if (!(session_item= ma_multi_malloc(0, &session_item, sizeof(LIST), &str, sizeof(MYSQL_LEX_STRING), &tmp, data2->length, NULL))) goto mem_error; str->str= tmp; memcpy(str->str, data2->str, data2->length); str->length= data2->length; session_item->data= str; mysql->extension->session_state[track_type].list= list_add(mysql->extension->session_state[track_type].list, session_item); } } break; } return; mem_error: SET_CLIENT_ERROR(mysql, CR_OUT_OF_MEMORY, SQLSTATE_UNKNOWN, 0); return; }
O0
c
ma_save_session_track_info: pushq %rbp movq %rsp, %rbp subq $0x180, %rsp # imm = 0x180 testb %al, %al je 0x24a24 movaps %xmm0, -0xf0(%rbp) movaps %xmm1, -0xe0(%rbp) movaps %xmm2, -0xd0(%rbp) movaps %xmm3, -0xc0(%rbp) movaps %xmm4, -0xb0(%rbp) movaps %xmm5, -0xa0(%rbp) movaps %xmm6, -0x90(%rbp) movaps %xmm7, -0x80(%rbp) movq %r9, -0xf8(%rbp) movq %r8, -0x100(%rbp) movq %rcx, -0x108(%rbp) movq %rdx, -0x110(%rbp) movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) cmpl $0x1, -0xc(%rbp) je 0x24a5a jmp 0x24dcb leaq -0x40(%rbp), %rax leaq -0x120(%rbp), %rcx movq %rcx, 0x10(%rax) leaq 0x10(%rbp), %rcx movq %rcx, 0x8(%rax) movl $0x30, 0x4(%rax) movl $0x10, (%rax) leaq -0x40(%rbp), %rax movq %rax, -0x130(%rbp) movl -0x40(%rbp), %eax movl %eax, -0x124(%rbp) cmpl $0x28, %eax ja 0x24ab9 movq -0x130(%rbp), %rcx movl -0x124(%rbp), %edx movslq %edx, %rax addq 0x10(%rcx), %rax addl $0x8, %edx movl %edx, (%rcx) movq %rax, -0x138(%rbp) jmp 0x24ad6 movq -0x130(%rbp), %rcx movq 0x8(%rcx), %rax movq %rax, %rdx addq $0x8, %rdx movq %rdx, 0x8(%rcx) movq %rax, -0x138(%rbp) movq -0x138(%rbp), %rax movl (%rax), %eax movl %eax, -0x1c(%rbp) movl -0x1c(%rbp), %eax subl $0x5, %eax ja 0x24d62 jmp 0x24af0 leaq -0x40(%rbp), %rax movq %rax, -0x148(%rbp) movl -0x40(%rbp), %eax movl %eax, -0x13c(%rbp) cmpl $0x28, %eax ja 0x24b2b movq -0x148(%rbp), %rcx movl -0x13c(%rbp), %edx movslq %edx, %rax addq 0x10(%rcx), %rax addl $0x8, %edx movl %edx, (%rcx) movq %rax, -0x150(%rbp) jmp 0x24b48 movq -0x148(%rbp), %rcx movq 0x8(%rcx), %rax movq %rax, %rdx addq $0x8, %rdx movq %rdx, 0x8(%rcx) movq %rax, -0x150(%rbp) movq -0x150(%rbp), %rax movq (%rax), %rax movq %rax, -0x60(%rbp) movq -0x60(%rbp), %rax movq 0x8(%rax), %rax xorl %edi, %edi leaq -0x48(%rbp), %rsi movl $0x18, %edx leaq -0x50(%rbp), %rcx movl $0x10, %r8d leaq -0x58(%rbp), %r9 xorl %r10d, %r10d movq %rax, (%rsp) movq $0x0, 0x8(%rsp) movb $0x0, %al callq 0x2b4d0 movq %rax, -0x48(%rbp) cmpq $0x0, %rax jne 0x24b9d jmp 0x24d64 movq -0x58(%rbp), %rcx movq -0x50(%rbp), %rax movq %rcx, (%rax) movq -0x50(%rbp), %rax movq (%rax), %rdi movq -0x60(%rbp), %rax movq (%rax), %rsi movq -0x60(%rbp), %rax movq 0x8(%rax), %rdx callq 0x13370 movq -0x60(%rbp), %rax movq 0x8(%rax), %rcx movq -0x50(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x50(%rbp), %rcx movq -0x48(%rbp), %rax movq %rcx, 0x10(%rax) movq -0x18(%rbp), %rax movq 0x4f0(%rax), %rax addq $0x8, %rax movl -0x1c(%rbp), %ecx shlq $0x4, %rcx addq %rcx, %rax movq (%rax), %rdi movq -0x48(%rbp), %rsi callq 0x29420 movq %rax, %rcx movq -0x18(%rbp), %rax movq 0x4f0(%rax), %rax addq $0x8, %rax movl -0x1c(%rbp), %edx shlq $0x4, %rdx addq %rdx, %rax movq %rcx, (%rax) cmpl $0x0, -0x1c(%rbp) jne 0x24d60 leaq -0x40(%rbp), %rax movq %rax, -0x160(%rbp) movl -0x40(%rbp), %eax movl %eax, -0x154(%rbp) cmpl $0x28, %eax ja 0x24c68 movq -0x160(%rbp), %rcx movl -0x154(%rbp), %edx movslq %edx, %rax addq 0x10(%rcx), %rax addl $0x8, %edx movl %edx, (%rcx) movq %rax, -0x168(%rbp) jmp 0x24c85 movq -0x160(%rbp), %rcx movq 0x8(%rcx), %rax movq %rax, %rdx addq $0x8, %rdx movq %rdx, 0x8(%rcx) movq %rax, -0x168(%rbp) movq -0x168(%rbp), %rax movq (%rax), %rax movq %rax, -0x68(%rbp) movq -0x68(%rbp), %rax movq 0x8(%rax), %rax xorl %edi, %edi leaq -0x48(%rbp), %rsi movl $0x18, %edx leaq -0x50(%rbp), %rcx movl $0x10, %r8d leaq -0x58(%rbp), %r9 xorl %r10d, %r10d movq %rax, (%rsp) movq $0x0, 0x8(%rsp) movb $0x0, %al callq 0x2b4d0 movq %rax, -0x48(%rbp) cmpq $0x0, %rax jne 0x24cda jmp 0x24d64 movq -0x58(%rbp), %rcx movq -0x50(%rbp), %rax movq %rcx, (%rax) movq -0x50(%rbp), %rax movq (%rax), %rdi movq -0x68(%rbp), %rax movq (%rax), %rsi movq -0x68(%rbp), %rax movq 0x8(%rax), %rdx callq 0x13370 movq -0x68(%rbp), %rax movq 0x8(%rax), %rcx movq -0x50(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x50(%rbp), %rcx movq -0x48(%rbp), %rax movq %rcx, 0x10(%rax) movq -0x18(%rbp), %rax movq 0x4f0(%rax), %rax addq $0x8, %rax movl -0x1c(%rbp), %ecx shlq $0x4, %rcx addq %rcx, %rax movq (%rax), %rdi movq -0x48(%rbp), %rsi callq 0x29420 movq %rax, %rcx movq -0x18(%rbp), %rax movq 0x4f0(%rax), %rax addq $0x8, %rax movl -0x1c(%rbp), %edx shlq $0x4, %rdx addq %rdx, %rax movq %rcx, (%rax) jmp 0x24d62 jmp 0x24dcb jmp 0x24d66 movq -0x18(%rbp), %rax movl $0x7d8, 0x90(%rax) # imm = 0x7D8 movq -0x18(%rbp), %rdi addq $0x297, %rdi # imm = 0x297 leaq 0x4372a(%rip), %rax # 0x684b0 movq (%rax), %rsi movl $0x5, %edx callq 0x13220 movq -0x18(%rbp), %rax movb $0x0, 0x29c(%rax) movq -0x18(%rbp), %rdi addq $0x97, %rdi leaq 0x43710(%rip), %rax # 0x684c0 movq 0x40(%rax), %rsi movl $0x1ff, %edx # imm = 0x1FF callq 0x13220 movq -0x18(%rbp), %rax movb $0x0, 0x296(%rax) jmp 0x24dcb addq $0x180, %rsp # imm = 0x180 popq %rbp retq nopw %cs:(%rax,%rax)
ma_save_session_track_info: push rbp mov rbp, rsp sub rsp, 180h test al, al jz short loc_24A24 movaps [rbp+var_F0], xmm0 movaps [rbp+var_E0], xmm1 movaps [rbp+var_D0], xmm2 movaps [rbp+var_C0], xmm3 movaps [rbp+var_B0], xmm4 movaps [rbp+var_A0], xmm5 movaps [rbp+var_90], xmm6 movaps [rbp+var_80], xmm7 loc_24A24: mov [rbp+var_F8], r9 mov [rbp+var_100], r8 mov [rbp+var_108], rcx mov [rbp+var_110], rdx mov [rbp+var_8], rdi mov [rbp+var_C], esi mov rax, [rbp+var_8] mov [rbp+var_18], rax cmp [rbp+var_C], 1 jz short loc_24A5A jmp loc_24DCB loc_24A5A: lea rax, [rbp+var_40] lea rcx, [rbp+var_120] mov [rax+10h], rcx lea rcx, [rbp+arg_0] mov [rax+8], rcx mov dword ptr [rax+4], 30h ; '0' mov dword ptr [rax], 10h lea rax, [rbp+var_40] mov [rbp+var_130], rax mov eax, [rbp+var_40] mov [rbp+var_124], eax cmp eax, 28h ; '(' ja short loc_24AB9 mov rcx, [rbp+var_130] mov edx, [rbp+var_124] movsxd rax, edx add rax, [rcx+10h] add edx, 8 mov [rcx], edx mov [rbp+var_138], rax jmp short loc_24AD6 loc_24AB9: mov rcx, [rbp+var_130] mov rax, [rcx+8] mov rdx, rax add rdx, 8 mov [rcx+8], rdx mov [rbp+var_138], rax loc_24AD6: mov rax, [rbp+var_138] mov eax, [rax] mov [rbp+var_1C], eax mov eax, [rbp+var_1C] sub eax, 5 ja loc_24D62 jmp short $+2 loc_24AF0: lea rax, [rbp+var_40] mov [rbp+var_148], rax mov eax, [rbp+var_40] mov [rbp+var_13C], eax cmp eax, 28h ; '(' ja short loc_24B2B mov rcx, [rbp+var_148] mov edx, [rbp+var_13C] movsxd rax, edx add rax, [rcx+10h] add edx, 8 mov [rcx], edx mov [rbp+var_150], rax jmp short loc_24B48 loc_24B2B: mov rcx, [rbp+var_148] mov rax, [rcx+8] mov rdx, rax add rdx, 8 mov [rcx+8], rdx mov [rbp+var_150], rax loc_24B48: mov rax, [rbp+var_150] mov rax, [rax] mov [rbp+var_60], rax mov rax, [rbp+var_60] mov rax, [rax+8] xor edi, edi lea rsi, [rbp+var_48] mov edx, 18h lea rcx, [rbp+var_50] mov r8d, 10h lea r9, [rbp+var_58] xor r10d, r10d mov [rsp+180h+var_180], rax mov [rsp+180h+var_178], 0 mov al, 0 call ma_multi_malloc mov [rbp+var_48], rax cmp rax, 0 jnz short loc_24B9D jmp loc_24D64 loc_24B9D: mov rcx, [rbp+var_58] mov rax, [rbp+var_50] mov [rax], rcx mov rax, [rbp+var_50] mov rdi, [rax] mov rax, [rbp+var_60] mov rsi, [rax] mov rax, [rbp+var_60] mov rdx, [rax+8] call _memcpy mov rax, [rbp+var_60] mov rcx, [rax+8] mov rax, [rbp+var_50] mov [rax+8], rcx mov rcx, [rbp+var_50] mov rax, [rbp+var_48] mov [rax+10h], rcx mov rax, [rbp+var_18] mov rax, [rax+4F0h] add rax, 8 mov ecx, [rbp+var_1C] shl rcx, 4 add rax, rcx mov rdi, [rax] mov rsi, [rbp+var_48] call list_add mov rcx, rax mov rax, [rbp+var_18] mov rax, [rax+4F0h] add rax, 8 mov edx, [rbp+var_1C] shl rdx, 4 add rax, rdx mov [rax], rcx cmp [rbp+var_1C], 0 jnz loc_24D60 lea rax, [rbp+var_40] mov [rbp+var_160], rax mov eax, [rbp+var_40] mov [rbp+var_154], eax cmp eax, 28h ; '(' ja short loc_24C68 mov rcx, [rbp+var_160] mov edx, [rbp+var_154] movsxd rax, edx add rax, [rcx+10h] add edx, 8 mov [rcx], edx mov [rbp+var_168], rax jmp short loc_24C85 loc_24C68: mov rcx, [rbp+var_160] mov rax, [rcx+8] mov rdx, rax add rdx, 8 mov [rcx+8], rdx mov [rbp+var_168], rax loc_24C85: mov rax, [rbp+var_168] mov rax, [rax] mov [rbp+var_68], rax mov rax, [rbp+var_68] mov rax, [rax+8] xor edi, edi lea rsi, [rbp+var_48] mov edx, 18h lea rcx, [rbp+var_50] mov r8d, 10h lea r9, [rbp+var_58] xor r10d, r10d mov [rsp+180h+var_180], rax mov [rsp+180h+var_178], 0 mov al, 0 call ma_multi_malloc mov [rbp+var_48], rax cmp rax, 0 jnz short loc_24CDA jmp loc_24D64 loc_24CDA: mov rcx, [rbp+var_58] mov rax, [rbp+var_50] mov [rax], rcx mov rax, [rbp+var_50] mov rdi, [rax] mov rax, [rbp+var_68] mov rsi, [rax] mov rax, [rbp+var_68] mov rdx, [rax+8] call _memcpy mov rax, [rbp+var_68] mov rcx, [rax+8] mov rax, [rbp+var_50] mov [rax+8], rcx mov rcx, [rbp+var_50] mov rax, [rbp+var_48] mov [rax+10h], rcx mov rax, [rbp+var_18] mov rax, [rax+4F0h] add rax, 8 mov ecx, [rbp+var_1C] shl rcx, 4 add rax, rcx mov rdi, [rax] mov rsi, [rbp+var_48] call list_add mov rcx, rax mov rax, [rbp+var_18] mov rax, [rax+4F0h] add rax, 8 mov edx, [rbp+var_1C] shl rdx, 4 add rax, rdx mov [rax], rcx loc_24D60: jmp short $+2 loc_24D62: jmp short loc_24DCB loc_24D64: jmp short $+2 loc_24D66: mov rax, [rbp+var_18] mov dword ptr [rax+90h], 7D8h mov rdi, [rbp+var_18] add rdi, 297h lea rax, SQLSTATE_UNKNOWN mov rsi, [rax] mov edx, 5 call _strncpy mov rax, [rbp+var_18] mov byte ptr [rax+29Ch], 0 mov rdi, [rbp+var_18] add rdi, 97h lea rax, client_errors mov rsi, [rax+40h] mov edx, 1FFh call _strncpy mov rax, [rbp+var_18] mov byte ptr [rax+296h], 0 jmp short $+2 loc_24DCB: add rsp, 180h pop rbp retn
long long ma_save_session_track_info(long long a1, int a2, unsigned int a3, ...) { long long result; // rax char *v4; // rax long long v5; // rcx char *overflow_arg_area; // rax long long v7; // rcx _QWORD *v8; // [rsp+118h] [rbp-68h] _QWORD *v9; // [rsp+120h] [rbp-60h] long long v10; // [rsp+128h] [rbp-58h] BYREF _QWORD *v11; // [rsp+130h] [rbp-50h] BYREF long long v12; // [rsp+138h] [rbp-48h] BYREF va_list va; // [rsp+140h] [rbp-40h] BYREF unsigned int v14; // [rsp+164h] [rbp-1Ch] long long v15; // [rsp+168h] [rbp-18h] int v16; // [rsp+174h] [rbp-Ch] long long v17; // [rsp+178h] [rbp-8h] v17 = a1; v16 = a2; result = a1; v15 = a1; if ( a2 == 1 ) { va_start(va, a3); v14 = a3; result = a3 - 5; if ( a3 <= 5 ) { v4 = (char *)va[0].reg_save_area + (int)va[0].gp_offset; va[0].gp_offset += 8; v9 = *(_QWORD **)v4; v12 = ma_multi_malloc( 0, (unsigned int)&v12, 24, (unsigned int)&v11, 16, (unsigned int)&v10, *(_QWORD *)(*(_QWORD *)v4 + 8LL), 0LL); if ( !v12 ) goto LABEL_11; *v11 = v10; memcpy(*v11, *v9, v9[1]); v11[1] = v9[1]; *(_QWORD *)(v12 + 16) = v11; v5 = list_add(*(_QWORD *)(16LL * v14 + *(_QWORD *)(v15 + 1264) + 8LL), v12); result = 16LL * v14 + *(_QWORD *)(v15 + 1264) + 8LL; *(_QWORD *)result = v5; if ( v14 ) return result; if ( va[0].gp_offset > 0x28 ) { overflow_arg_area = (char *)va[0].overflow_arg_area; va[0].overflow_arg_area = (char *)va[0].overflow_arg_area + 8; } else { overflow_arg_area = (char *)va[0].reg_save_area + (int)va[0].gp_offset; va[0].gp_offset += 8; } v8 = *(_QWORD **)overflow_arg_area; v12 = ma_multi_malloc( 0, (unsigned int)&v12, 24, (unsigned int)&v11, 16, (unsigned int)&v10, *(_QWORD *)(*(_QWORD *)overflow_arg_area + 8LL), 0LL); if ( !v12 ) { LABEL_11: *(_DWORD *)(v15 + 144) = 2008; strncpy(v15 + 663, SQLSTATE_UNKNOWN, 5LL); *(_BYTE *)(v15 + 668) = 0; strncpy(v15 + 151, client_errors[8], 511LL); result = v15; *(_BYTE *)(v15 + 662) = 0; return result; } *v11 = v10; memcpy(*v11, *v8, v8[1]); v11[1] = v8[1]; *(_QWORD *)(v12 + 16) = v11; v7 = list_add(*(_QWORD *)(16LL * v14 + *(_QWORD *)(v15 + 1264) + 8LL), v12); result = 16LL * v14 + *(_QWORD *)(v15 + 1264) + 8LL; *(_QWORD *)result = v7; } } return result; }
ma_save_session_track_info: PUSH RBP MOV RBP,RSP SUB RSP,0x180 TEST AL,AL JZ 0x00124a24 MOVAPS xmmword ptr [RBP + -0xf0],XMM0 MOVAPS xmmword ptr [RBP + -0xe0],XMM1 MOVAPS xmmword ptr [RBP + -0xd0],XMM2 MOVAPS xmmword ptr [RBP + -0xc0],XMM3 MOVAPS xmmword ptr [RBP + -0xb0],XMM4 MOVAPS xmmword ptr [RBP + -0xa0],XMM5 MOVAPS xmmword ptr [RBP + -0x90],XMM6 MOVAPS xmmword ptr [RBP + -0x80],XMM7 LAB_00124a24: MOV qword ptr [RBP + -0xf8],R9 MOV qword ptr [RBP + -0x100],R8 MOV qword ptr [RBP + -0x108],RCX MOV qword ptr [RBP + -0x110],RDX MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x18],RAX CMP dword ptr [RBP + -0xc],0x1 JZ 0x00124a5a JMP 0x00124dcb LAB_00124a5a: LEA RAX,[RBP + -0x40] LEA RCX,[RBP + -0x120] MOV qword ptr [RAX + 0x10],RCX LEA RCX,[RBP + 0x10] MOV qword ptr [RAX + 0x8],RCX MOV dword ptr [RAX + 0x4],0x30 MOV dword ptr [RAX],0x10 LEA RAX,[RBP + -0x40] MOV qword ptr [RBP + -0x130],RAX MOV EAX,dword ptr [RBP + -0x40] MOV dword ptr [RBP + -0x124],EAX CMP EAX,0x28 JA 0x00124ab9 MOV RCX,qword ptr [RBP + -0x130] MOV EDX,dword ptr [RBP + -0x124] MOVSXD RAX,EDX ADD RAX,qword ptr [RCX + 0x10] ADD EDX,0x8 MOV dword ptr [RCX],EDX MOV qword ptr [RBP + -0x138],RAX JMP 0x00124ad6 LAB_00124ab9: MOV RCX,qword ptr [RBP + -0x130] MOV RAX,qword ptr [RCX + 0x8] MOV RDX,RAX ADD RDX,0x8 MOV qword ptr [RCX + 0x8],RDX MOV qword ptr [RBP + -0x138],RAX LAB_00124ad6: MOV RAX,qword ptr [RBP + -0x138] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x1c],EAX MOV EAX,dword ptr [RBP + -0x1c] SUB EAX,0x5 JA 0x00124d62 JMP 0x00124af0 LAB_00124af0: LEA RAX,[RBP + -0x40] MOV qword ptr [RBP + -0x148],RAX MOV EAX,dword ptr [RBP + -0x40] MOV dword ptr [RBP + -0x13c],EAX CMP EAX,0x28 JA 0x00124b2b MOV RCX,qword ptr [RBP + -0x148] MOV EDX,dword ptr [RBP + -0x13c] MOVSXD RAX,EDX ADD RAX,qword ptr [RCX + 0x10] ADD EDX,0x8 MOV dword ptr [RCX],EDX MOV qword ptr [RBP + -0x150],RAX JMP 0x00124b48 LAB_00124b2b: MOV RCX,qword ptr [RBP + -0x148] MOV RAX,qword ptr [RCX + 0x8] MOV RDX,RAX ADD RDX,0x8 MOV qword ptr [RCX + 0x8],RDX MOV qword ptr [RBP + -0x150],RAX LAB_00124b48: MOV RAX,qword ptr [RBP + -0x150] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x60] MOV RAX,qword ptr [RAX + 0x8] XOR EDI,EDI LEA RSI,[RBP + -0x48] MOV EDX,0x18 LEA RCX,[RBP + -0x50] MOV R8D,0x10 LEA R9,[RBP + -0x58] XOR R10D,R10D MOV qword ptr [RSP],RAX MOV qword ptr [RSP + 0x8],0x0 MOV AL,0x0 CALL 0x0012b4d0 MOV qword ptr [RBP + -0x48],RAX CMP RAX,0x0 JNZ 0x00124b9d JMP 0x00124d64 LAB_00124b9d: MOV RCX,qword ptr [RBP + -0x58] MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x50] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x60] MOV RSI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x60] MOV RDX,qword ptr [RAX + 0x8] CALL 0x00113370 MOV RAX,qword ptr [RBP + -0x60] MOV RCX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RAX + 0x8],RCX MOV RCX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x48] MOV qword ptr [RAX + 0x10],RCX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x4f0] ADD RAX,0x8 MOV ECX,dword ptr [RBP + -0x1c] SHL RCX,0x4 ADD RAX,RCX MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RBP + -0x48] CALL 0x00129420 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x4f0] ADD RAX,0x8 MOV EDX,dword ptr [RBP + -0x1c] SHL RDX,0x4 ADD RAX,RDX MOV qword ptr [RAX],RCX CMP dword ptr [RBP + -0x1c],0x0 JNZ 0x00124d60 LEA RAX,[RBP + -0x40] MOV qword ptr [RBP + -0x160],RAX MOV EAX,dword ptr [RBP + -0x40] MOV dword ptr [RBP + -0x154],EAX CMP EAX,0x28 JA 0x00124c68 MOV RCX,qword ptr [RBP + -0x160] MOV EDX,dword ptr [RBP + -0x154] MOVSXD RAX,EDX ADD RAX,qword ptr [RCX + 0x10] ADD EDX,0x8 MOV dword ptr [RCX],EDX MOV qword ptr [RBP + -0x168],RAX JMP 0x00124c85 LAB_00124c68: MOV RCX,qword ptr [RBP + -0x160] MOV RAX,qword ptr [RCX + 0x8] MOV RDX,RAX ADD RDX,0x8 MOV qword ptr [RCX + 0x8],RDX MOV qword ptr [RBP + -0x168],RAX LAB_00124c85: MOV RAX,qword ptr [RBP + -0x168] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x68],RAX MOV RAX,qword ptr [RBP + -0x68] MOV RAX,qword ptr [RAX + 0x8] XOR EDI,EDI LEA RSI,[RBP + -0x48] MOV EDX,0x18 LEA RCX,[RBP + -0x50] MOV R8D,0x10 LEA R9,[RBP + -0x58] XOR R10D,R10D MOV qword ptr [RSP],RAX MOV qword ptr [RSP + 0x8],0x0 MOV AL,0x0 CALL 0x0012b4d0 MOV qword ptr [RBP + -0x48],RAX CMP RAX,0x0 JNZ 0x00124cda JMP 0x00124d64 LAB_00124cda: MOV RCX,qword ptr [RBP + -0x58] MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x50] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x68] MOV RSI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x68] MOV RDX,qword ptr [RAX + 0x8] CALL 0x00113370 MOV RAX,qword ptr [RBP + -0x68] MOV RCX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RAX + 0x8],RCX MOV RCX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x48] MOV qword ptr [RAX + 0x10],RCX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x4f0] ADD RAX,0x8 MOV ECX,dword ptr [RBP + -0x1c] SHL RCX,0x4 ADD RAX,RCX MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RBP + -0x48] CALL 0x00129420 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x4f0] ADD RAX,0x8 MOV EDX,dword ptr [RBP + -0x1c] SHL RDX,0x4 ADD RAX,RDX MOV qword ptr [RAX],RCX LAB_00124d60: JMP 0x00124d62 LAB_00124d62: JMP 0x00124dcb LAB_00124d64: JMP 0x00124d66 LAB_00124d66: MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x90],0x7d8 MOV RDI,qword ptr [RBP + -0x18] ADD RDI,0x297 LEA RAX,[0x1684b0] MOV RSI,qword ptr [RAX] MOV EDX,0x5 CALL 0x00113220 MOV RAX,qword ptr [RBP + -0x18] MOV byte ptr [RAX + 0x29c],0x0 MOV RDI,qword ptr [RBP + -0x18] ADD RDI,0x97 LEA RAX,[0x1684c0] MOV RSI,qword ptr [RAX + 0x40] MOV EDX,0x1ff CALL 0x00113220 MOV RAX,qword ptr [RBP + -0x18] MOV byte ptr [RAX + 0x296],0x0 JMP 0x00124dcb LAB_00124dcb: ADD RSP,0x180 POP RBP RET
/* WARNING: Removing unreachable block (ram,0x00124ab9) */ /* WARNING: Removing unreachable block (ram,0x00124b2b) */ /* WARNING: Heritage AFTER dead removal. Example location: s0xfffffffffffffee8 : 0x00124add */ /* WARNING: Restarted to delay deadcode elimination for space: stack */ void ma_save_session_track_info (int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8, long param_9,int param_10,int8 param_11,int8 param_12,int8 param_13 ,int8 param_14) { int8 *puVar1; char in_AL; int8 uVar2; long *local_170; int1 local_128 [16]; int8 local_118; int8 *local_110; int8 local_108; int8 local_100; int8 local_f8; int8 local_e8; int8 local_d8; int8 local_c8; int8 local_b8; int8 local_a8; int8 local_98; int8 local_88; int8 *local_70; int8 *local_68; int8 local_60; int8 *local_58; long local_50; uint local_48; int4 local_44; long *local_40; int1 *local_38; uint local_24; long local_20; int local_14; long local_10; if (in_AL != '\0') { local_f8 = param_1; local_e8 = param_2; local_d8 = param_3; local_c8 = param_4; local_b8 = param_5; local_a8 = param_6; local_98 = param_7; local_88 = param_8; } if (param_10 == 1) { local_38 = local_128; local_40 = (long *)&stack0x00000008; local_44 = 0x30; local_24 = (uint)local_118; if ((uint)local_118 < 6) { local_48 = 0x20; local_68 = local_110; puVar1 = local_110 + 1; local_118 = param_11; local_110 = (int8 *)param_12; local_108 = param_13; local_100 = param_14; local_20 = param_9; local_14 = param_10; local_10 = param_9; local_50 = ma_multi_malloc(0,&local_50,0x18,&local_58,0x10,&local_60,*puVar1,0); if (local_50 != 0) { *local_58 = local_60; memcpy((void *)*local_58,(void *)*local_68,local_68[1]); local_58[1] = local_68[1]; *(int8 **)(local_50 + 0x10) = local_58; uVar2 = list_add(*(int8 *)(*(long *)(local_20 + 0x4f0) + 8 + (ulong)local_24 * 0x10), local_50); *(int8 *)(*(long *)(local_20 + 0x4f0) + 8 + (ulong)local_24 * 0x10) = uVar2; if (local_24 != 0) { return; } if (local_48 < 0x29) { local_170 = (long *)(local_38 + (int)local_48); local_48 = local_48 + 8; } else { local_170 = local_40; local_40 = local_40 + 1; } local_70 = (int8 *)*local_170; local_50 = ma_multi_malloc(0,&local_50,0x18,&local_58,0x10,&local_60,local_70[1],0); if (local_50 != 0) { *local_58 = local_60; memcpy((void *)*local_58,(void *)*local_70,local_70[1]); local_58[1] = local_70[1]; *(int8 **)(local_50 + 0x10) = local_58; uVar2 = list_add(*(int8 *)(*(long *)(local_20 + 0x4f0) + 8 + (ulong)local_24 * 0x10) ,local_50); *(int8 *)(*(long *)(local_20 + 0x4f0) + 8 + (ulong)local_24 * 0x10) = uVar2; return; } } local_50 = 0; *(int4 *)(local_20 + 0x90) = 0x7d8; strncpy((char *)(local_20 + 0x297),SQLSTATE_UNKNOWN,5); *(int1 *)(local_20 + 0x29c) = 0; strncpy((char *)(local_20 + 0x97),PTR_s_Client_run_out_of_memory_00168500,0x1ff); *(int1 *)(local_20 + 0x296) = 0; } } return; }
27,619
ma_save_session_track_info
eloqsql/libmariadb/libmariadb/mariadb_lib.c
void ma_save_session_track_info(void *ptr, enum enum_mariadb_status_info type, ...) { MYSQL *mysql= (MYSQL *)ptr; enum enum_session_state_type track_type; va_list ap; DBUG_ASSERT(mysql != NULL); /* We only handle SESSION_TRACK_TYPE here */ if (type != SESSION_TRACK_TYPE) return; va_start(ap, type); track_type= va_arg(ap, enum enum_session_state_type); switch (track_type) { case SESSION_TRACK_SCHEMA: case SESSION_TRACK_STATE_CHANGE: case SESSION_TRACK_TRANSACTION_CHARACTERISTICS: case SESSION_TRACK_TRANSACTION_STATE: case SESSION_TRACK_GTIDS: case SESSION_TRACK_SYSTEM_VARIABLES: { LIST *session_item; MYSQL_LEX_STRING *str; char *tmp; MARIADB_CONST_STRING *data1= va_arg(ap, MARIADB_CONST_STRING *); if (!(session_item= ma_multi_malloc(0, &session_item, sizeof(LIST), &str, sizeof(MYSQL_LEX_STRING), &tmp, data1->length, NULL))) goto mem_error; str->str= tmp; memcpy(str->str, data1->str, data1->length); str->length= data1->length; session_item->data= str; mysql->extension->session_state[track_type].list= list_add(mysql->extension->session_state[track_type].list, session_item); if (track_type == SESSION_TRACK_SYSTEM_VARIABLES) { MARIADB_CONST_STRING *data2= va_arg(ap, MARIADB_CONST_STRING *); if (!(session_item= ma_multi_malloc(0, &session_item, sizeof(LIST), &str, sizeof(MYSQL_LEX_STRING), &tmp, data2->length, NULL))) goto mem_error; str->str= tmp; memcpy(str->str, data2->str, data2->length); str->length= data2->length; session_item->data= str; mysql->extension->session_state[track_type].list= list_add(mysql->extension->session_state[track_type].list, session_item); } } break; } return; mem_error: SET_CLIENT_ERROR(mysql, CR_OUT_OF_MEMORY, SQLSTATE_UNKNOWN, 0); return; }
O3
c
ma_save_session_track_info: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0xe0, %rsp movq %rdx, -0xf0(%rbp) movq %rcx, -0xe8(%rbp) movq %r8, -0xe0(%rbp) movq %r9, -0xd8(%rbp) testb %al, %al je 0x1eec3 movaps %xmm0, -0xd0(%rbp) movaps %xmm1, -0xc0(%rbp) movaps %xmm2, -0xb0(%rbp) movaps %xmm3, -0xa0(%rbp) movaps %xmm4, -0x90(%rbp) movaps %xmm5, -0x80(%rbp) movaps %xmm6, -0x70(%rbp) movaps %xmm7, -0x60(%rbp) cmpl $0x1, %esi jne 0x1f0de movq %rdi, %rbx leaq -0x100(%rbp), %rax movq %rax, -0x30(%rbp) leaq 0x10(%rbp), %rax movq %rax, -0x38(%rbp) movabsq $0x3000000010, %rax # imm = 0x3000000010 movq %rax, -0x40(%rbp) movl $0x10, %eax movl $0x10, %ecx cmpq $0x28, %rcx ja 0x1ef0c addq -0x30(%rbp), %rcx addl $0x8, %eax movl %eax, -0x40(%rbp) jmp 0x1ef18 movq -0x38(%rbp), %rcx leaq 0x8(%rcx), %rdx movq %rdx, -0x38(%rbp) movl (%rcx), %r12d cmpq $0x5, %r12 ja 0x1f0de cmpl $0x28, %eax ja 0x1ef38 movl %eax, %ecx addq -0x30(%rbp), %rcx addl $0x8, %eax movl %eax, -0x40(%rbp) jmp 0x1ef44 movq -0x38(%rbp), %rcx leaq 0x8(%rcx), %rax movq %rax, -0x38(%rbp) movq (%rcx), %r15 leaq -0x50(%rbp), %r14 leaq -0x28(%rbp), %rcx leaq -0x48(%rbp), %r9 movl $0x18, %edx movl $0x10, %r8d xorl %edi, %edi movq %r14, %rsi xorl %eax, %eax pushq $0x0 pushq 0x8(%r15) callq 0x22864 addq $0x10, %rsp movq %rax, (%r14) testq %rax, %rax je 0x1f08c movq -0x48(%rbp), %rax movq -0x28(%rbp), %rcx movq %rax, (%rcx) movq -0x28(%rbp), %rax movq (%rax), %rdi movq (%r15), %rsi movq 0x8(%r15), %rdx callq 0x133a0 movq 0x8(%r15), %rax movq -0x28(%rbp), %rcx movq %rax, 0x8(%rcx) movq -0x50(%rbp), %rsi movq %rcx, 0x10(%rsi) movq 0x4f0(%rbx), %rax movq %r12, %r15 shlq $0x4, %r15 movq 0x8(%rax,%r15), %rdi callq 0x217c0 movq 0x4f0(%rbx), %rcx movq %rax, 0x8(%rcx,%r15) testq %r12, %r12 jne 0x1f0de movl -0x40(%rbp), %ecx cmpq $0x28, %rcx ja 0x1eff7 movq %rcx, %rax addq -0x30(%rbp), %rax addl $0x8, %ecx movl %ecx, -0x40(%rbp) jmp 0x1f003 movq -0x38(%rbp), %rax leaq 0x8(%rax), %rcx movq %rcx, -0x38(%rbp) movq (%rax), %r12 leaq -0x28(%rbp), %rcx leaq -0x48(%rbp), %r9 movl $0x18, %edx movl $0x10, %r8d xorl %edi, %edi movq %r14, %rsi xorl %eax, %eax pushq $0x0 pushq 0x8(%r12) callq 0x22864 addq $0x10, %rsp movq %rax, (%r14) testq %rax, %rax je 0x1f08c movq -0x48(%rbp), %rax movq -0x28(%rbp), %rcx movq %rax, (%rcx) movq -0x28(%rbp), %rax movq (%rax), %rdi movq (%r12), %rsi movq 0x8(%r12), %rdx callq 0x133a0 movq 0x8(%r12), %rax movq -0x28(%rbp), %rcx movq %rax, 0x8(%rcx) movq -0x50(%rbp), %rsi movq %rcx, 0x10(%rsi) movq 0x4f0(%rbx), %rax movq 0x8(%rax,%r15), %rdi callq 0x217c0 movq 0x4f0(%rbx), %rcx movq %rax, 0x8(%rcx,%r15) jmp 0x1f0de movl $0x7d8, 0x90(%rbx) # imm = 0x7D8 leaq 0x297(%rbx), %rdi leaq 0x30f5c(%rip), %rax # 0x50000 movq (%rax), %rsi movl $0x5, %edx callq 0x13230 xorl %r14d, %r14d movb %r14b, 0x29c(%rbx) leaq 0x97(%rbx), %rdi leaq 0x30f47(%rip), %rax # 0x50010 movq 0x40(%rax), %rsi movl $0x1ff, %edx # imm = 0x1FF callq 0x13230 movb %r14b, 0x296(%rbx) addq $0xe0, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
ma_save_session_track_info: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 0E0h mov [rbp+var_F0], rdx mov [rbp+var_E8], rcx mov [rbp+var_E0], r8 mov [rbp+var_D8], r9 test al, al jz short loc_1EEC3 movaps [rbp+var_D0], xmm0 movaps [rbp+var_C0], xmm1 movaps [rbp+var_B0], xmm2 movaps [rbp+var_A0], xmm3 movaps [rbp+var_90], xmm4 movaps [rbp+var_80], xmm5 movaps [rbp+var_70], xmm6 movaps [rbp+var_60], xmm7 loc_1EEC3: cmp esi, 1 jnz loc_1F0DE mov rbx, rdi lea rax, [rbp+var_100] mov [rbp+var_30], rax lea rax, [rbp+arg_0] mov [rbp+var_38], rax mov rax, 3000000010h mov [rbp+var_40], rax mov eax, 10h mov ecx, 10h cmp rcx, 28h ; '(' ja short loc_1EF0C add rcx, [rbp+var_30] add eax, 8 mov dword ptr [rbp+var_40], eax jmp short loc_1EF18 loc_1EF0C: mov rcx, [rbp+var_38] lea rdx, [rcx+8] mov [rbp+var_38], rdx loc_1EF18: mov r12d, [rcx] cmp r12, 5 ja loc_1F0DE cmp eax, 28h ; '(' ja short loc_1EF38 mov ecx, eax add rcx, [rbp+var_30] add eax, 8 mov dword ptr [rbp+var_40], eax jmp short loc_1EF44 loc_1EF38: mov rcx, [rbp+var_38] lea rax, [rcx+8] mov [rbp+var_38], rax loc_1EF44: mov r15, [rcx] lea r14, [rbp+var_50] lea rcx, [rbp+var_28] lea r9, [rbp+var_48] mov edx, 18h mov r8d, 10h xor edi, edi mov rsi, r14 xor eax, eax push 0 push qword ptr [r15+8] call ma_multi_malloc add rsp, 10h mov [r14], rax test rax, rax jz loc_1F08C mov rax, [rbp+var_48] mov rcx, [rbp+var_28] mov [rcx], rax mov rax, [rbp+var_28] mov rdi, [rax] mov rsi, [r15] mov rdx, [r15+8] call _memcpy mov rax, [r15+8] mov rcx, [rbp+var_28] mov [rcx+8], rax mov rsi, [rbp+var_50] mov [rsi+10h], rcx mov rax, [rbx+4F0h] mov r15, r12 shl r15, 4 mov rdi, [rax+r15+8] call list_add mov rcx, [rbx+4F0h] mov [rcx+r15+8], rax test r12, r12 jnz loc_1F0DE mov ecx, dword ptr [rbp+var_40] cmp rcx, 28h ; '(' ja short loc_1EFF7 mov rax, rcx add rax, [rbp+var_30] add ecx, 8 mov dword ptr [rbp+var_40], ecx jmp short loc_1F003 loc_1EFF7: mov rax, [rbp+var_38] lea rcx, [rax+8] mov [rbp+var_38], rcx loc_1F003: mov r12, [rax] lea rcx, [rbp+var_28] lea r9, [rbp+var_48] mov edx, 18h mov r8d, 10h xor edi, edi mov rsi, r14 xor eax, eax push 0 push qword ptr [r12+8] call ma_multi_malloc add rsp, 10h mov [r14], rax test rax, rax jz short loc_1F08C mov rax, [rbp+var_48] mov rcx, [rbp+var_28] mov [rcx], rax mov rax, [rbp+var_28] mov rdi, [rax] mov rsi, [r12] mov rdx, [r12+8] call _memcpy mov rax, [r12+8] mov rcx, [rbp+var_28] mov [rcx+8], rax mov rsi, [rbp+var_50] mov [rsi+10h], rcx mov rax, [rbx+4F0h] mov rdi, [rax+r15+8] call list_add mov rcx, [rbx+4F0h] mov [rcx+r15+8], rax jmp short loc_1F0DE loc_1F08C: mov dword ptr [rbx+90h], 7D8h lea rdi, [rbx+297h] lea rax, SQLSTATE_UNKNOWN mov rsi, [rax] mov edx, 5 call _strncpy xor r14d, r14d mov [rbx+29Ch], r14b lea rdi, [rbx+97h] lea rax, client_errors mov rsi, [rax+40h] mov edx, 1FFh call _strncpy mov [rbx+296h], r14b loc_1F0DE: add rsp, 0E0h pop rbx pop r12 pop r14 pop r15 pop rbp retn
void ma_save_session_track_info(long long a1, int a2, unsigned int a3, ...) { _QWORD *v3; // r15 long long v4; // rcx char *overflow_arg_area; // rax _QWORD *v6; // r12 long long v7; // rcx _QWORD *v9; // [rsp+18h] [rbp-E8h] long long v10; // [rsp+B0h] [rbp-50h] BYREF long long v11; // [rsp+B8h] [rbp-48h] BYREF va_list va; // [rsp+C0h] [rbp-40h] BYREF _QWORD v13[5]; // [rsp+D8h] [rbp-28h] BYREF va_start(va, a3); v9 = va_arg(va, _QWORD *); va_end(va); if ( a2 == 1 ) { va_start(va, a3); if ( a3 <= 5uLL ) { va[0].gp_offset = 32; v3 = v9; v10 = ma_multi_malloc(0, (unsigned int)&v10, 24, (unsigned int)v13, 16, (unsigned int)&v11, v3[1], 0LL); if ( !v10 ) goto LABEL_10; *(_QWORD *)v13[0] = v11; memcpy(*(_QWORD *)v13[0], *v3, v3[1]); v4 = v13[0]; *(_QWORD *)(v13[0] + 8LL) = v3[1]; *(_QWORD *)(v10 + 16) = v4; *(_QWORD *)(*(_QWORD *)(a1 + 1264) + 16LL * a3 + 8) = list_add(*(_QWORD *)(*(_QWORD *)(a1 + 1264) + 16LL * a3 + 8)); if ( a3 ) return; if ( va[0].gp_offset > 0x28uLL ) { overflow_arg_area = (char *)va[0].overflow_arg_area; va[0].overflow_arg_area = (char *)va[0].overflow_arg_area + 8; } else { overflow_arg_area = (char *)va[0].reg_save_area + va[0].gp_offset; va[0].gp_offset += 8; } v6 = *(_QWORD **)overflow_arg_area; v10 = ma_multi_malloc( 0, (unsigned int)&v10, 24, (unsigned int)v13, 16, (unsigned int)&v11, *(_QWORD *)(*(_QWORD *)overflow_arg_area + 8LL), 0LL); if ( v10 ) { *(_QWORD *)v13[0] = v11; memcpy(*(_QWORD *)v13[0], *v6, v6[1]); v7 = v13[0]; *(_QWORD *)(v13[0] + 8LL) = v6[1]; *(_QWORD *)(v10 + 16) = v7; *(_QWORD *)(*(_QWORD *)(a1 + 1264) + 16LL * a3 + 8) = list_add(*(_QWORD *)(*(_QWORD *)(a1 + 1264) + 16LL * a3 + 8)); } else { LABEL_10: *(_DWORD *)(a1 + 144) = 2008; strncpy(a1 + 663, SQLSTATE_UNKNOWN, 5LL); *(_BYTE *)(a1 + 668) = 0; strncpy(a1 + 151, client_errors[8], 511LL); *(_BYTE *)(a1 + 662) = 0; } } } }
ma_save_session_track_info: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0xe0 MOV qword ptr [RBP + -0xf0],RDX MOV qword ptr [RBP + -0xe8],RCX MOV qword ptr [RBP + -0xe0],R8 MOV qword ptr [RBP + -0xd8],R9 TEST AL,AL JZ 0x0011eec3 MOVAPS xmmword ptr [RBP + -0xd0],XMM0 MOVAPS xmmword ptr [RBP + -0xc0],XMM1 MOVAPS xmmword ptr [RBP + -0xb0],XMM2 MOVAPS xmmword ptr [RBP + -0xa0],XMM3 MOVAPS xmmword ptr [RBP + -0x90],XMM4 MOVAPS xmmword ptr [RBP + -0x80],XMM5 MOVAPS xmmword ptr [RBP + -0x70],XMM6 MOVAPS xmmword ptr [RBP + -0x60],XMM7 LAB_0011eec3: CMP ESI,0x1 JNZ 0x0011f0de MOV RBX,RDI LEA RAX,[RBP + -0x100] MOV qword ptr [RBP + -0x30],RAX LEA RAX,[RBP + 0x10] MOV qword ptr [RBP + -0x38],RAX MOV RAX,0x3000000010 MOV qword ptr [RBP + -0x40],RAX MOV EAX,0x10 MOV ECX,0x10 CMP RCX,0x28 JA 0x0011ef0c ADD RCX,qword ptr [RBP + -0x30] ADD EAX,0x8 MOV dword ptr [RBP + -0x40],EAX JMP 0x0011ef18 LAB_0011ef0c: MOV RCX,qword ptr [RBP + -0x38] LEA RDX,[RCX + 0x8] MOV qword ptr [RBP + -0x38],RDX LAB_0011ef18: MOV R12D,dword ptr [RCX] CMP R12,0x5 JA 0x0011f0de CMP EAX,0x28 JA 0x0011ef38 MOV ECX,EAX ADD RCX,qword ptr [RBP + -0x30] ADD EAX,0x8 MOV dword ptr [RBP + -0x40],EAX JMP 0x0011ef44 LAB_0011ef38: MOV RCX,qword ptr [RBP + -0x38] LEA RAX,[RCX + 0x8] MOV qword ptr [RBP + -0x38],RAX LAB_0011ef44: MOV R15,qword ptr [RCX] LEA R14,[RBP + -0x50] LEA RCX,[RBP + -0x28] LEA R9,[RBP + -0x48] MOV EDX,0x18 MOV R8D,0x10 XOR EDI,EDI MOV RSI,R14 XOR EAX,EAX PUSH 0x0 PUSH qword ptr [R15 + 0x8] CALL 0x00122864 ADD RSP,0x10 MOV qword ptr [R14],RAX TEST RAX,RAX JZ 0x0011f08c MOV RAX,qword ptr [RBP + -0x48] MOV RCX,qword ptr [RBP + -0x28] MOV qword ptr [RCX],RAX MOV RAX,qword ptr [RBP + -0x28] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] CALL 0x001133a0 MOV RAX,qword ptr [R15 + 0x8] MOV RCX,qword ptr [RBP + -0x28] MOV qword ptr [RCX + 0x8],RAX MOV RSI,qword ptr [RBP + -0x50] MOV qword ptr [RSI + 0x10],RCX MOV RAX,qword ptr [RBX + 0x4f0] MOV R15,R12 SHL R15,0x4 MOV RDI,qword ptr [RAX + R15*0x1 + 0x8] CALL 0x001217c0 MOV RCX,qword ptr [RBX + 0x4f0] MOV qword ptr [RCX + R15*0x1 + 0x8],RAX TEST R12,R12 JNZ 0x0011f0de MOV ECX,dword ptr [RBP + -0x40] CMP RCX,0x28 JA 0x0011eff7 MOV RAX,RCX ADD RAX,qword ptr [RBP + -0x30] ADD ECX,0x8 MOV dword ptr [RBP + -0x40],ECX JMP 0x0011f003 LAB_0011eff7: MOV RAX,qword ptr [RBP + -0x38] LEA RCX,[RAX + 0x8] MOV qword ptr [RBP + -0x38],RCX LAB_0011f003: MOV R12,qword ptr [RAX] LEA RCX,[RBP + -0x28] LEA R9,[RBP + -0x48] MOV EDX,0x18 MOV R8D,0x10 XOR EDI,EDI MOV RSI,R14 XOR EAX,EAX PUSH 0x0 PUSH qword ptr [R12 + 0x8] CALL 0x00122864 ADD RSP,0x10 MOV qword ptr [R14],RAX TEST RAX,RAX JZ 0x0011f08c MOV RAX,qword ptr [RBP + -0x48] MOV RCX,qword ptr [RBP + -0x28] MOV qword ptr [RCX],RAX MOV RAX,qword ptr [RBP + -0x28] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [R12] MOV RDX,qword ptr [R12 + 0x8] CALL 0x001133a0 MOV RAX,qword ptr [R12 + 0x8] MOV RCX,qword ptr [RBP + -0x28] MOV qword ptr [RCX + 0x8],RAX MOV RSI,qword ptr [RBP + -0x50] MOV qword ptr [RSI + 0x10],RCX MOV RAX,qword ptr [RBX + 0x4f0] MOV RDI,qword ptr [RAX + R15*0x1 + 0x8] CALL 0x001217c0 MOV RCX,qword ptr [RBX + 0x4f0] MOV qword ptr [RCX + R15*0x1 + 0x8],RAX JMP 0x0011f0de LAB_0011f08c: MOV dword ptr [RBX + 0x90],0x7d8 LEA RDI,[RBX + 0x297] LEA RAX,[0x150000] MOV RSI,qword ptr [RAX] MOV EDX,0x5 CALL 0x00113230 XOR R14D,R14D MOV byte ptr [RBX + 0x29c],R14B LEA RDI,[RBX + 0x97] LEA RAX,[0x150010] MOV RSI,qword ptr [RAX + 0x40] MOV EDX,0x1ff CALL 0x00113230 MOV byte ptr [RBX + 0x296],R14B LAB_0011f0de: ADD RSP,0xe0 POP RBX POP R12 POP R14 POP R15 POP RBP RET
/* WARNING: Removing unreachable block (ram,0x0011ef0c) */ /* WARNING: Removing unreachable block (ram,0x0011ef38) */ /* WARNING: Heritage AFTER dead removal. Example location: s0xffffffffffffff10 : 0x0011ef44 */ /* WARNING: Restarted to delay deadcode elimination for space: stack */ void ma_save_session_track_info (int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8, long param_9,int param_10,ulong param_11,int8 param_12,int8 param_13, int8 param_14) { int8 *puVar1; int8 *puVar2; char in_AL; int8 uVar3; long *plVar4; ulong uVar5; long lVar6; int1 local_108 [16]; ulong local_f8; int8 *local_f0; int8 local_e8; int8 local_e0; int8 local_d8; int8 local_c8; int8 local_b8; int8 local_a8; int8 local_98; int8 local_88; int8 local_78; int8 local_68; long local_58; int8 local_50; ulong local_48; long *local_40; int1 *local_38; int8 *local_30; puVar2 = local_f0; if (in_AL != '\0') { local_d8 = param_1; local_c8 = param_2; local_b8 = param_3; local_a8 = param_4; local_98 = param_5; local_88 = param_6; local_78 = param_7; local_68 = param_8; } if (param_10 == 1) { local_38 = local_108; local_40 = (long *)&stack0x00000008; uVar5 = param_11 & 0xffffffff; if (uVar5 < 6) { local_48 = 0x3000000020; puVar1 = local_f0 + 1; local_f8 = param_11; local_f0 = (int8 *)param_12; local_e8 = param_13; local_e0 = param_14; local_58 = ma_multi_malloc(0,&local_58,0x18,&local_30,0x10,&local_50,*puVar1,0); if (local_58 != 0) { *local_30 = local_50; memcpy((void *)*local_30,(void *)*puVar2,puVar2[1]); local_30[1] = puVar2[1]; *(int8 **)(local_58 + 0x10) = local_30; lVar6 = uVar5 * 0x10; uVar3 = list_add(*(int8 *)(*(long *)(param_9 + 0x4f0) + 8 + lVar6)); *(int8 *)(*(long *)(param_9 + 0x4f0) + 8 + lVar6) = uVar3; if (uVar5 != 0) { return; } uVar5 = local_48 & 0xffffffff; if (uVar5 < 0x29) { local_48 = CONCAT44(local_48._4_4_,(int)local_48 + 8); plVar4 = (long *)(local_38 + uVar5); } else { plVar4 = local_40; local_40 = local_40 + 1; } puVar2 = (int8 *)*plVar4; local_58 = ma_multi_malloc(0,&local_58,0x18,&local_30,0x10,&local_50,puVar2[1],0); if (local_58 != 0) { *local_30 = local_50; memcpy((void *)*local_30,(void *)*puVar2,puVar2[1]); local_30[1] = puVar2[1]; *(int8 **)(local_58 + 0x10) = local_30; uVar3 = list_add(*(int8 *)(*(long *)(param_9 + 0x4f0) + 8 + lVar6)); *(int8 *)(*(long *)(param_9 + 0x4f0) + 8 + lVar6) = uVar3; return; } } *(int4 *)(param_9 + 0x90) = 0x7d8; strncpy((char *)(param_9 + 0x297),SQLSTATE_UNKNOWN,5); *(int1 *)(param_9 + 0x29c) = 0; strncpy((char *)(param_9 + 0x97),PTR_s_Client_run_out_of_memory_00150050,0x1ff); *(int1 *)(param_9 + 0x296) = 0; } } return; }
27,620
stbi__gif_header(stbi__context*, stbi__gif*, int*, int)
monkey531[P]llama/examples/llava/../../common/stb_image.h
static int stbi__gif_header(stbi__context *s, stbi__gif *g, int *comp, int is_info) { stbi_uc version; if (stbi__get8(s) != 'G' || stbi__get8(s) != 'I' || stbi__get8(s) != 'F' || stbi__get8(s) != '8') return stbi__err("not GIF", "Corrupt GIF"); version = stbi__get8(s); if (version != '7' && version != '9') return stbi__err("not GIF", "Corrupt GIF"); if (stbi__get8(s) != 'a') return stbi__err("not GIF", "Corrupt GIF"); stbi__g_failure_reason = ""; g->w = stbi__get16le(s); g->h = stbi__get16le(s); g->flags = stbi__get8(s); g->bgindex = stbi__get8(s); g->ratio = stbi__get8(s); g->transparent = -1; if (g->w > STBI_MAX_DIMENSIONS) return stbi__err("too large","Very large image (corrupt?)"); if (g->h > STBI_MAX_DIMENSIONS) return stbi__err("too large","Very large image (corrupt?)"); if (comp != 0) *comp = 4; // can't actually tell whether it's 3 or 4 until we parse the comments if (is_info) return 1; if (g->flags & 0x80) stbi__gif_parse_colortable(s,g->pal, 2 << (g->flags & 7), -1); return 1; }
O2
c
stbi__gif_header(stbi__context*, stbi__gif*, int*, int): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %ecx, %ebp movq %rdx, %r15 movq %rsi, %rbx movq %rdi, %r14 callq 0x3ce08 cmpb $0x47, %al jne 0x3f7db movq %r14, %rdi callq 0x3ce08 cmpb $0x49, %al jne 0x3f7db movq %r14, %rdi callq 0x3ce08 cmpb $0x46, %al jne 0x3f7db movq %r14, %rdi callq 0x3ce08 cmpb $0x38, %al jne 0x3f7db movq %r14, %rdi callq 0x3ce08 cmpb $0x37, %al je 0x3f74b movzbl %al, %eax cmpl $0x39, %eax jne 0x3f7db movq %r14, %rdi callq 0x3ce08 movl %eax, %r12d leaq 0x245e3(%rip), %rdi # 0x63d40 callq 0x2b450 leaq (%rax), %r13 cmpb $0x61, %r12b jne 0x3f80a leaq 0x11b7c(%rip), %rax # 0x512f6 movq %rax, (%r13) movq %r14, %rdi callq 0x3ec52 movl %eax, (%rbx) movq %r14, %rdi callq 0x3ec52 movl %eax, 0x4(%rbx) movq %r14, %rdi callq 0x3ce08 movzbl %al, %eax movl %eax, 0x20(%rbx) movq %r14, %rdi callq 0x3ce08 movzbl %al, %eax movl %eax, 0x24(%rbx) movq %r14, %rdi callq 0x3ce08 movzbl %al, %eax movl %eax, 0x28(%rbx) orl $-0x1, 0x2c(%rbx) cmpl $0x1000001, (%rbx) # imm = 0x1000001 jge 0x3f7d2 cmpl $0x1000001, 0x4(%rbx) # imm = 0x1000001 jl 0x3f817 leaq 0x1350e(%rip), %rax # 0x52ce7 jmp 0x3f811 leaq 0x2455e(%rip), %rdi # 0x63d40 callq 0x2b450 leaq 0x136b7(%rip), %rcx # 0x52ea5 movq %rcx, (%rax) xorl %r15d, %r15d movl %r15d, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x13694(%rip), %rax # 0x52ea5 movq %rax, (%r13) jmp 0x3f7f5 testq %r15, %r15 je 0x3f823 movl $0x4, (%r15) pushq $0x1 popq %r15 testl %ebp, %ebp jne 0x3f7f8 movl 0x20(%rbx), %ecx testb %cl, %cl jns 0x3f7f8 addq $0x34, %rbx andb $0x7, %cl pushq $0x2 popq %rdx shll %cl, %edx pushq $-0x1 popq %rcx movq %r14, %rdi movq %rbx, %rsi callq 0x3f84e jmp 0x3f7f8
_ZL16stbi__gif_headerP13stbi__contextP9stbi__gifPii: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov ebp, ecx mov r15, rdx mov rbx, rsi mov r14, rdi call _ZL10stbi__get8P13stbi__context; stbi__get8(stbi__context *) cmp al, 47h ; 'G' jnz loc_3F7DB mov rdi, r14 call _ZL10stbi__get8P13stbi__context; stbi__get8(stbi__context *) cmp al, 49h ; 'I' jnz loc_3F7DB mov rdi, r14 call _ZL10stbi__get8P13stbi__context; stbi__get8(stbi__context *) cmp al, 46h ; 'F' jnz loc_3F7DB mov rdi, r14 call _ZL10stbi__get8P13stbi__context; stbi__get8(stbi__context *) cmp al, 38h ; '8' jnz loc_3F7DB mov rdi, r14 call _ZL10stbi__get8P13stbi__context; stbi__get8(stbi__context *) cmp al, 37h ; '7' jz short loc_3F74B movzx eax, al cmp eax, 39h ; '9' jnz loc_3F7DB loc_3F74B: mov rdi, r14 call _ZL10stbi__get8P13stbi__context; stbi__get8(stbi__context *) mov r12d, eax lea rdi, _ZL22stbi__g_failure_reason_tlsind call ___tls_get_addr lea r13, [rax+0] cmp r12b, 61h ; 'a' jnz loc_3F80A lea rax, aUnableToEncode_1+18h; "" mov [r13+0], rax mov rdi, r14 call _ZL13stbi__get16leP13stbi__context; stbi__get16le(stbi__context *) mov [rbx], eax mov rdi, r14 call _ZL13stbi__get16leP13stbi__context; stbi__get16le(stbi__context *) mov [rbx+4], eax mov rdi, r14 call _ZL10stbi__get8P13stbi__context; stbi__get8(stbi__context *) movzx eax, al mov [rbx+20h], eax mov rdi, r14 call _ZL10stbi__get8P13stbi__context; stbi__get8(stbi__context *) movzx eax, al mov [rbx+24h], eax mov rdi, r14 call _ZL10stbi__get8P13stbi__context; stbi__get8(stbi__context *) movzx eax, al mov [rbx+28h], eax or dword ptr [rbx+2Ch], 0FFFFFFFFh cmp dword ptr [rbx], 1000001h jge short loc_3F7D2 cmp dword ptr [rbx+4], 1000001h jl short loc_3F817 loc_3F7D2: lea rax, aTooLarge; "too large" jmp short loc_3F811 loc_3F7DB: lea rdi, _ZL22stbi__g_failure_reason_tlsind call ___tls_get_addr lea rcx, aNotGif; "not GIF" mov [rax+0], rcx loc_3F7F5: xor r15d, r15d loc_3F7F8: mov eax, r15d add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_3F80A: lea rax, aNotGif; "not GIF" loc_3F811: mov [r13+0], rax jmp short loc_3F7F5 loc_3F817: test r15, r15 jz short loc_3F823 mov dword ptr [r15], 4 loc_3F823: push 1 pop r15 test ebp, ebp jnz short loc_3F7F8 mov ecx, [rbx+20h] test cl, cl jns short loc_3F7F8 add rbx, 34h ; '4' and cl, 7 push 2 pop rdx shl edx, cl push 0FFFFFFFFFFFFFFFFh pop rcx mov rdi, r14 mov rsi, rbx call _ZL26stbi__gif_parse_colortableP13stbi__contextPA4_hii; stbi__gif_parse_colortable(stbi__context *,uchar (*)[4],int,int) jmp short loc_3F7F8
long long stbi__gif_header(long long a1, int *a2, _DWORD *a3, int a4) { char v6; // al char v7; // r12 const char **addr; // r13 const char *v9; // rax unsigned int v10; // r15d int v12; // ecx if ( stbi__get8(a1) != 71 || stbi__get8(a1) != 73 || stbi__get8(a1) != 70 || stbi__get8(a1) != 56 || (v6 = stbi__get8(a1), v6 != 55) && v6 != 57 ) { *(_QWORD *)__tls_get_addr(&ZL22stbi__g_failure_reason_tlsind) = "not GIF"; return 0; } v7 = stbi__get8(a1); addr = (const char **)__tls_get_addr(&ZL22stbi__g_failure_reason_tlsind); if ( v7 != 97 ) { v9 = "not GIF"; goto LABEL_15; } *addr = ""; *a2 = stbi__get16le(a1); a2[1] = stbi__get16le(a1); a2[8] = (unsigned __int8)stbi__get8(a1); a2[9] = (unsigned __int8)stbi__get8(a1); a2[10] = (unsigned __int8)stbi__get8(a1); a2[11] = -1; if ( *a2 >= 16777217 || a2[1] >= 16777217 ) { v9 = "too large"; LABEL_15: *addr = v9; return 0; } if ( a3 ) *a3 = 4; v10 = 1; if ( !a4 ) { v12 = a2[8]; if ( (v12 & 0x80u) != 0 ) stbi__gif_parse_colortable(a1, a2 + 13, (unsigned int)(2 << (v12 & 7)), -1LL); } return v10; }
stbi__gif_header: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV EBP,ECX MOV R15,RDX MOV RBX,RSI MOV R14,RDI CALL 0x0013ce08 CMP AL,0x47 JNZ 0x0013f7db MOV RDI,R14 CALL 0x0013ce08 CMP AL,0x49 JNZ 0x0013f7db MOV RDI,R14 CALL 0x0013ce08 CMP AL,0x46 JNZ 0x0013f7db MOV RDI,R14 CALL 0x0013ce08 CMP AL,0x38 JNZ 0x0013f7db MOV RDI,R14 CALL 0x0013ce08 CMP AL,0x37 JZ 0x0013f74b MOVZX EAX,AL CMP EAX,0x39 JNZ 0x0013f7db LAB_0013f74b: MOV RDI,R14 CALL 0x0013ce08 MOV R12D,EAX LEA RDI,[0x163d40] CALL 0x0012b450 LEA R13,[RAX] CMP R12B,0x61 JNZ 0x0013f80a LEA RAX,[0x1512f6] MOV qword ptr [R13],RAX MOV RDI,R14 CALL 0x0013ec52 MOV dword ptr [RBX],EAX MOV RDI,R14 CALL 0x0013ec52 MOV dword ptr [RBX + 0x4],EAX MOV RDI,R14 CALL 0x0013ce08 MOVZX EAX,AL MOV dword ptr [RBX + 0x20],EAX MOV RDI,R14 CALL 0x0013ce08 MOVZX EAX,AL MOV dword ptr [RBX + 0x24],EAX MOV RDI,R14 CALL 0x0013ce08 MOVZX EAX,AL MOV dword ptr [RBX + 0x28],EAX OR dword ptr [RBX + 0x2c],0xffffffff CMP dword ptr [RBX],0x1000001 JGE 0x0013f7d2 CMP dword ptr [RBX + 0x4],0x1000001 JL 0x0013f817 LAB_0013f7d2: LEA RAX,[0x152ce7] JMP 0x0013f811 LAB_0013f7db: LEA RDI,[0x163d40] CALL 0x0012b450 LEA RCX,[0x152ea5] MOV qword ptr [RAX],RCX LAB_0013f7f5: XOR R15D,R15D LAB_0013f7f8: MOV EAX,R15D ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0013f80a: LEA RAX,[0x152ea5] LAB_0013f811: MOV qword ptr [R13],RAX JMP 0x0013f7f5 LAB_0013f817: TEST R15,R15 JZ 0x0013f823 MOV dword ptr [R15],0x4 LAB_0013f823: PUSH 0x1 POP R15 TEST EBP,EBP JNZ 0x0013f7f8 MOV ECX,dword ptr [RBX + 0x20] TEST CL,CL JNS 0x0013f7f8 ADD RBX,0x34 AND CL,0x7 PUSH 0x2 POP RDX SHL EDX,CL PUSH -0x1 POP RCX MOV RDI,R14 MOV RSI,RBX CALL 0x0013f84e JMP 0x0013f7f8
/* stbi__gif_header(stbi__context*, stbi__gif*, int*, int) */ int8 stbi__gif_header(stbi__context *param_1,stbi__gif *param_2,int *param_3,int param_4) { char cVar1; byte bVar2; int4 uVar3; int8 *puVar4; char *pcVar5; cVar1 = stbi__get8(param_1); if (((((cVar1 == 'G') && (cVar1 = stbi__get8(param_1), cVar1 == 'I')) && (cVar1 = stbi__get8(param_1), cVar1 == 'F')) && (cVar1 = stbi__get8(param_1), cVar1 == '8')) && ((cVar1 = stbi__get8(param_1), cVar1 == '7' || (cVar1 == '9')))) { cVar1 = stbi__get8(param_1); puVar4 = (int8 *)__tls_get_addr(&PTR_00163d40); if (cVar1 == 'a') { *puVar4 = ""; uVar3 = stbi__get16le(param_1); *(int4 *)param_2 = uVar3; uVar3 = stbi__get16le(param_1); *(int4 *)(param_2 + 4) = uVar3; bVar2 = stbi__get8(param_1); *(uint *)(param_2 + 0x20) = (uint)bVar2; bVar2 = stbi__get8(param_1); *(uint *)(param_2 + 0x24) = (uint)bVar2; bVar2 = stbi__get8(param_1); *(uint *)(param_2 + 0x28) = (uint)bVar2; *(int4 *)(param_2 + 0x2c) = 0xffffffff; if ((*(int *)param_2 < 0x1000001) && (*(int *)(param_2 + 4) < 0x1000001)) { if (param_3 != (int *)0x0) { *param_3 = 4; } if (param_4 != 0) { return 1; } if (-1 < (char)(byte)*(int4 *)(param_2 + 0x20)) { return 1; } stbi__gif_parse_colortable (param_1,(unsigned_char *)(param_2 + 0x34), 2 << ((byte)*(int4 *)(param_2 + 0x20) & 7),-1); return 1; } pcVar5 = "too large"; } else { pcVar5 = "not GIF"; } *puVar4 = pcVar5; } else { puVar4 = (int8 *)__tls_get_addr(&PTR_00163d40); *puVar4 = "not GIF"; } return 0; }
27,621
nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::moved_or_copied() const
monkey531[P]llama/common/json.hpp
value_type moved_or_copied() const { if (value_ref == nullptr) { return std::move(owned_value); } return *value_ref; }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::moved_or_copied() const: pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movq 0x10(%rsi), %rsi testq %rsi, %rsi je 0xa3fb3 movq %rbx, %rdi callq 0x6046c jmp 0xa3fdd movups (%r14), %xmm0 movups %xmm0, (%rbx) movq %r14, %rdi xorl %esi, %esi callq 0x5b4ca movb $0x0, (%r14) movq $0x0, 0x8(%r14) movq %rbx, %rdi movl $0x1, %esi callq 0x5b4ca movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r14 retq
_ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15moved_or_copiedEv: push r14 push rbx push rax mov r14, rsi mov rbx, rdi mov rsi, [rsi+10h] test rsi, rsi jz short loc_A3FB3 mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) jmp short loc_A3FDD loc_A3FB3: movups xmm0, xmmword ptr [r14] movups xmmword ptr [rbx], xmm0 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 byte ptr [r14], 0 mov qword ptr [r14+8], 0 mov rdi, rbx mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) loc_A3FDD: mov rax, rbx add rsp, 8 pop rbx pop r14 retn
unsigned __int8 * nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::moved_or_copied( unsigned __int8 *a1, long long a2) { unsigned __int8 *v3; // rsi v3 = *(unsigned __int8 **)(a2 + 16); if ( v3 ) { nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( a1, v3); } else { *(_OWORD *)a1 = *(_OWORD *)a2; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a2); *(_BYTE *)a2 = 0; *(_QWORD *)(a2 + 8) = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1); } return a1; }
moved_or_copied: PUSH R14 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI MOV RSI,qword ptr [RSI + 0x10] TEST RSI,RSI JZ 0x001a3fb3 MOV RDI,RBX CALL 0x0016046c JMP 0x001a3fdd LAB_001a3fb3: MOVUPS XMM0,xmmword ptr [R14] MOVUPS xmmword ptr [RBX],XMM0 MOV RDI,R14 XOR ESI,ESI CALL 0x0015b4ca MOV byte ptr [R14],0x0 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,RBX MOV ESI,0x1 CALL 0x0015b4ca LAB_001a3fdd: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R14 RET
/* nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::moved_or_copied() const */ void nlohmann::json_abi_v3_11_3::detail:: json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::moved_or_copied(void) { int8 uVar1; int8 *in_RSI; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *in_RDI; if ((basic_json *)in_RSI[2] == (basic_json *)0x0) { uVar1 = in_RSI[1]; *(int8 *)in_RDI = *in_RSI; *(int8 *)(in_RDI + 8) = uVar1; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(in_RSI,0)); *(int1 *)in_RSI = 0; in_RSI[1] = 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(SUB81(in_RDI,0)); } else { basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(in_RDI,(basic_json *)in_RSI[2]); } return; }
27,622
testing::internal::FilePath::GenerateUniqueFileName(testing::internal::FilePath const&, testing::internal::FilePath const&, char const*)
giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/src/gtest-filepath.cc
FilePath FilePath::GenerateUniqueFileName(const FilePath& directory, const FilePath& base_name, const char* extension) { FilePath full_pathname; int number = 0; do { full_pathname.Set(MakeFileName(directory, base_name, number++, extension)); } while (full_pathname.FileOrDirectoryExists()); return full_pathname; }
O3
cpp
testing::internal::FilePath::GenerateUniqueFileName(testing::internal::FilePath const&, testing::internal::FilePath const&, char const*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x98, %rsp movq %rcx, %r14 movq %rdx, %r15 movq %rsi, %r12 movq %rdi, %rbx leaq 0x10(%rdi), %rax movq %rax, (%rsp) movq %rax, (%rdi) movq $0x0, 0x8(%rdi) movb $0x0, 0x10(%rdi) xorl %ebp, %ebp leaq 0x8(%rsp), %r13 movq %r13, %rdi movq %r12, %rsi movq %r15, %rdx movl %ebp, %ecx movq %r14, %r8 callq 0x14f18 movq %rbx, %rdi movq %r13, %rsi callq 0x8290 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x15851 movq 0x18(%rsp), %rsi incq %rsi callq 0x84e0 movl $0x90, %edx movq %r13, %rdi xorl %esi, %esi callq 0x82b0 movq (%rbx), %rdi movq %r13, %rsi callq 0x8440 incl %ebp testl %eax, %eax je 0x15817 movq %rbx, %rax addq $0x98, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r14 jmp 0x158aa movq %rax, %r14 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x158aa movq 0x18(%rsp), %rsi incq %rsi callq 0x84e0 movq (%rbx), %rdi cmpq (%rsp), %rdi je 0x158c2 movq (%rsp), %rax movq (%rax), %rsi incq %rsi callq 0x84e0 movq %r14, %rdi callq 0x8990
_ZN7testing8internal8FilePath22GenerateUniqueFileNameERKS1_S3_PKc: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 98h mov r14, rcx mov r15, rdx mov r12, rsi mov rbx, rdi lea rax, [rdi+10h] mov [rsp+0C8h+var_C8], rax mov [rdi], rax mov qword ptr [rdi+8], 0 mov byte ptr [rdi+10h], 0 xor ebp, ebp lea r13, [rsp+0C8h+var_C0] loc_15817: mov rdi, r13; this mov rsi, r12; testing::internal::FilePath * mov rdx, r15; testing::internal::FilePath * mov ecx, ebp; int mov r8, r14; char * call _ZN7testing8internal8FilePath12MakeFileNameERKS1_S3_iPKc; testing::internal::FilePath::MakeFileName(testing::internal::FilePath const&,testing::internal::FilePath const&,int,char const*) mov rdi, rbx mov rsi, r13 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&) mov rdi, [rsp+0C8h+var_C0]; void * lea rax, [rsp+0C8h+var_B0] cmp rdi, rax jz short loc_15851 mov rsi, [rsp+0C8h+var_B0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_15851: mov edx, 90h mov rdi, r13 xor esi, esi call _memset mov rdi, [rbx] mov rsi, r13 call _stat inc ebp test eax, eax jz short loc_15817 mov rax, rbx add rsp, 98h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov r14, rax jmp short loc_158AA mov r14, rax mov rdi, [rsp+arg_0]; void * lea rax, [rsp+arg_10] cmp rdi, rax jz short loc_158AA mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_158AA: mov rdi, [rbx]; void * cmp rdi, [rsp+0] jz short loc_158C2 mov rax, [rsp+0] mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_158C2: mov rdi, r14 call __Unwind_Resume
testing::internal::FilePath * testing::internal::FilePath::GenerateUniqueFileName( testing::internal::FilePath *this, const testing::internal::FilePath *a2, const testing::internal::FilePath *a3, const char *a4) { int v6; // ebp void *v8[2]; // [rsp+8h] [rbp-C0h] BYREF long long v9; // [rsp+18h] [rbp-B0h] BYREF *(_QWORD *)this = (char *)this + 16; *((_QWORD *)this + 1) = 0LL; *((_BYTE *)this + 16) = 0; v6 = 0; do { testing::internal::FilePath::MakeFileName((testing::internal::FilePath *)v8, a2, a3, v6, a4); std::string::_M_assign(this, v8); if ( v8[0] != &v9 ) operator delete(v8[0], v9 + 1); memset(v8, 0LL, 144LL); ++v6; } while ( !(unsigned int)stat(*(_QWORD *)this, v8) ); return this; }
GenerateUniqueFileName: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x98 MOV R14,RCX MOV R15,RDX MOV R12,RSI MOV RBX,RDI LEA RAX,[RDI + 0x10] MOV qword ptr [RSP],RAX MOV qword ptr [RDI],RAX MOV qword ptr [RDI + 0x8],0x0 MOV byte ptr [RDI + 0x10],0x0 XOR EBP,EBP LEA R13,[RSP + 0x8] LAB_00115817: MOV RDI,R13 MOV RSI,R12 MOV RDX,R15 MOV ECX,EBP MOV R8,R14 CALL 0x00114f18 LAB_0011582a: MOV RDI,RBX MOV RSI,R13 CALL 0x00108290 LAB_00115835: MOV RDI,qword ptr [RSP + 0x8] LEA RAX,[RSP + 0x18] CMP RDI,RAX JZ 0x00115851 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001084e0 LAB_00115851: MOV EDX,0x90 MOV RDI,R13 XOR ESI,ESI CALL 0x001082b0 MOV RDI,qword ptr [RBX] MOV RSI,R13 CALL 0x00108440 INC EBP TEST EAX,EAX JZ 0x00115817 MOV RAX,RBX ADD RSP,0x98 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* testing::internal::FilePath::GenerateUniqueFileName(testing::internal::FilePath const&, testing::internal::FilePath const&, char const*) */ FilePath * testing::internal::FilePath::GenerateUniqueFileName (FilePath *param_1,FilePath *param_2,char *param_3) { int iVar1; char *pcVar2; stat local_c0; *(FilePath **)param_1 = param_1 + 0x10; *(int8 *)(param_1 + 8) = 0; param_1[0x10] = (FilePath)0x0; pcVar2 = (char *)0x0; do { /* try { // try from 00115817 to 00115829 has its CatchHandler @ 00115886 */ MakeFileName((FilePath *)&local_c0,param_2,(int)param_3,pcVar2); /* try { // try from 0011582a to 00115834 has its CatchHandler @ 0011588b */ std::__cxx11::string::_M_assign((string *)param_1); if ((__nlink_t *)local_c0.st_dev != &local_c0.st_nlink) { operator_delete((void *)local_c0.st_dev,local_c0.st_nlink + 1); } memset(&local_c0,0,0x90); iVar1 = stat(*(char **)param_1,&local_c0); pcVar2 = (char *)(ulong)((int)pcVar2 + 1); } while (iVar1 == 0); return param_1; }
27,623
ggml_backend_cpu_set_abort_callback
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.cpp
void ggml_backend_cpu_set_abort_callback(ggml_backend_t backend_cpu, ggml_abort_callback abort_callback, void * abort_callback_data) { GGML_ASSERT(ggml_backend_is_cpu(backend_cpu)); struct ggml_backend_cpu_context * ctx = (struct ggml_backend_cpu_context *)backend_cpu->context; ctx->abort_callback = abort_callback; ctx->abort_callback_data = abort_callback_data; }
O1
cpp
ggml_backend_cpu_set_abort_callback: pushq %r15 pushq %r14 pushq %rbx testq %rdi, %rdi je 0x27c86 movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %r15 movq (%rdi), %rdi leaq 0x219f5(%rip), %rsi # 0x49660 callq 0x8540 testb %al, %al je 0x27c86 movq 0x78(%r15), %rax movq %r14, 0x20(%rax) movq %rbx, 0x28(%rax) popq %rbx popq %r14 popq %r15 retq leaq 0x111b1(%rip), %rdi # 0x38e3e leaq 0xea8d(%rip), %rdx # 0x36721 leaq 0x11204(%rip), %rcx # 0x38e9f movl $0xed, %esi xorl %eax, %eax callq 0x89c0
ggml_backend_cpu_set_abort_callback: push r15 push r14 push rbx test rdi, rdi jz short loc_27C86 mov rbx, rdx mov r14, rsi mov r15, rdi mov rdi, [rdi] lea rsi, _ZZL21ggml_backend_cpu_guidvE4guid; ggml_backend_cpu_guid(void)::guid call _ggml_guid_matches test al, al jz short loc_27C86 mov rax, [r15+78h] mov [rax+20h], r14 mov [rax+28h], rbx pop rbx pop r14 pop r15 retn loc_27C86: lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlBackendIsC_0; "ggml_backend_is_cpu(backend_cpu)" mov esi, 0EDh xor eax, eax call _ggml_abort
long long ggml_backend_cpu_set_abort_callback(_QWORD *a1, long long a2, long long a3) { long long result; // rax double v5; // xmm0_8 if ( a1 && (unsigned __int8)ggml_guid_matches(*a1, &ggml_backend_cpu_guid(void)::guid) ) { result = a1[15]; *(_QWORD *)(result + 32) = a2; *(_QWORD *)(result + 40) = a3; } else { v5 = ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.cpp", 237LL, "GGML_ASSERT(%s) failed", "ggml_backend_is_cpu(backend_cpu)"); return ggml_backend_cpu_reg_get_name(v5); } return result; }
ggml_backend_cpu_set_abort_callback: PUSH R15 PUSH R14 PUSH RBX TEST RDI,RDI JZ 0x00127c86 MOV RBX,RDX MOV R14,RSI MOV R15,RDI MOV RDI,qword ptr [RDI] LEA RSI,[0x149660] CALL 0x00108540 TEST AL,AL JZ 0x00127c86 MOV RAX,qword ptr [R15 + 0x78] MOV qword ptr [RAX + 0x20],R14 MOV qword ptr [RAX + 0x28],RBX POP RBX POP R14 POP R15 RET LAB_00127c86: LEA RDI,[0x138e3e] LEA RDX,[0x136721] LEA RCX,[0x138e9f] MOV ESI,0xed XOR EAX,EAX CALL 0x001089c0
void ggml_backend_cpu_set_abort_callback(int8 *param_1,int8 param_2,int8 param_3) { long lVar1; char cVar2; if (param_1 != (int8 *)0x0) { cVar2 = ggml_guid_matches(*param_1,ggml_backend_cpu_guid()::guid); if (cVar2 != '\0') { lVar1 = param_1[0xf]; *(int8 *)(lVar1 + 0x20) = param_2; *(int8 *)(lVar1 + 0x28) = param_3; return; } } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.cpp" ,0xed,"GGML_ASSERT(%s) failed","ggml_backend_is_cpu(backend_cpu)"); }
27,624
ggml_backend_cpu_set_abort_callback
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.cpp
void ggml_backend_cpu_set_abort_callback(ggml_backend_t backend_cpu, ggml_abort_callback abort_callback, void * abort_callback_data) { GGML_ASSERT(ggml_backend_is_cpu(backend_cpu)); struct ggml_backend_cpu_context * ctx = (struct ggml_backend_cpu_context *)backend_cpu->context; ctx->abort_callback = abort_callback; ctx->abort_callback_data = abort_callback_data; }
O3
cpp
ggml_backend_cpu_set_abort_callback: pushq %r15 pushq %r14 pushq %rbx testq %rdi, %rdi je 0x2851a movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %r15 movq (%rdi), %rdi leaq 0x21161(%rip), %rsi # 0x49660 callq 0x8540 testb %al, %al je 0x2851a movq 0x78(%r15), %rax movq %r14, 0x20(%rax) movq %rbx, 0x28(%rax) popq %rbx popq %r14 popq %r15 retq leaq 0x10ac5(%rip), %rdi # 0x38fe6 leaq 0xe3a1(%rip), %rdx # 0x368c9 leaq 0x10b18(%rip), %rcx # 0x39047 movl $0xed, %esi xorl %eax, %eax callq 0x89c0
ggml_backend_cpu_set_abort_callback: push r15 push r14 push rbx test rdi, rdi jz short loc_2851A mov rbx, rdx mov r14, rsi mov r15, rdi mov rdi, [rdi] lea rsi, _ZZL21ggml_backend_cpu_guidvE4guid; ggml_backend_cpu_guid(void)::guid call _ggml_guid_matches test al, al jz short loc_2851A mov rax, [r15+78h] mov [rax+20h], r14 mov [rax+28h], rbx pop rbx pop r14 pop r15 retn loc_2851A: lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlBackendIsC_0; "ggml_backend_is_cpu(backend_cpu)" mov esi, 0EDh xor eax, eax call _ggml_abort
long long ggml_backend_cpu_set_abort_callback(_QWORD *a1, long long a2, long long a3) { long long result; // rax double v5; // xmm0_8 if ( a1 && (unsigned __int8)ggml_guid_matches(*a1, &ggml_backend_cpu_guid(void)::guid) ) { result = a1[15]; *(_QWORD *)(result + 32) = a2; *(_QWORD *)(result + 40) = a3; } else { v5 = ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.cpp", 237LL, "GGML_ASSERT(%s) failed", "ggml_backend_is_cpu(backend_cpu)"); return ggml_backend_cpu_reg_get_name(v5); } return result; }
ggml_backend_cpu_set_abort_callback: PUSH R15 PUSH R14 PUSH RBX TEST RDI,RDI JZ 0x0012851a MOV RBX,RDX MOV R14,RSI MOV R15,RDI MOV RDI,qword ptr [RDI] LEA RSI,[0x149660] CALL 0x00108540 TEST AL,AL JZ 0x0012851a MOV RAX,qword ptr [R15 + 0x78] MOV qword ptr [RAX + 0x20],R14 MOV qword ptr [RAX + 0x28],RBX POP RBX POP R14 POP R15 RET LAB_0012851a: LEA RDI,[0x138fe6] LEA RDX,[0x1368c9] LEA RCX,[0x139047] MOV ESI,0xed XOR EAX,EAX CALL 0x001089c0
void ggml_backend_cpu_set_abort_callback(int8 *param_1,int8 param_2,int8 param_3) { long lVar1; char cVar2; if (param_1 != (int8 *)0x0) { cVar2 = ggml_guid_matches(*param_1,ggml_backend_cpu_guid()::guid); if (cVar2 != '\0') { lVar1 = param_1[0xf]; *(int8 *)(lVar1 + 0x20) = param_2; *(int8 *)(lVar1 + 0x28) = param_3; return; } } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.cpp" ,0xed,"GGML_ASSERT(%s) failed","ggml_backend_is_cpu(backend_cpu)"); }
27,625
cyclotomic_sqr_fp12
corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/fp12_tower.c
static void cyclotomic_sqr_fp12(vec384fp12 ret, const vec384fp12 a) { vec384fp4 t0, t1, t2; sqr_fp4(t0, a[0][0], a[1][1]); sqr_fp4(t1, a[1][0], a[0][2]); sqr_fp4(t2, a[0][1], a[1][2]); sub_fp2(ret[0][0], t0[0], a[0][0]); add_fp2(ret[0][0], ret[0][0], ret[0][0]); add_fp2(ret[0][0], ret[0][0], t0[0]); sub_fp2(ret[0][1], t1[0], a[0][1]); add_fp2(ret[0][1], ret[0][1], ret[0][1]); add_fp2(ret[0][1], ret[0][1], t1[0]); sub_fp2(ret[0][2], t2[0], a[0][2]); add_fp2(ret[0][2], ret[0][2], ret[0][2]); add_fp2(ret[0][2], ret[0][2], t2[0]); mul_by_u_plus_1_fp2(t2[1], t2[1]); add_fp2(ret[1][0], t2[1], a[1][0]); add_fp2(ret[1][0], ret[1][0], ret[1][0]); add_fp2(ret[1][0], ret[1][0], t2[1]); add_fp2(ret[1][1], t0[1], a[1][1]); add_fp2(ret[1][1], ret[1][1], ret[1][1]); add_fp2(ret[1][1], ret[1][1], t0[1]); add_fp2(ret[1][2], t1[1], a[1][2]); add_fp2(ret[1][2], ret[1][2], ret[1][2]); add_fp2(ret[1][2], ret[1][2], t1[1]); }
O3
c
cyclotomic_sqr_fp12: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x268, %rsp # imm = 0x268 movq %rsi, %r15 movq %rdi, %rbx movl $0x120, %r13d # imm = 0x120 leaq (%rsi,%r13), %r12 movq %r12, -0x40(%rbp) movl $0x180, %eax # imm = 0x180 leaq (%rsi,%rax), %rdx movq %rdx, -0x48(%rbp) leaq -0x1d0(%rbp), %rdi callq 0x66007 movl $0xc0, %r14d leaq (%r15,%r14), %rdx movq %rdx, -0x38(%rbp) leaq -0x110(%rbp), %rdi movq %r12, %rsi callq 0x66007 leaq 0x60(%r15), %rsi movq %rsi, -0x30(%rbp) movl $0x1e0, %eax # imm = 0x1E0 leaq (%r15,%rax), %rdx movq %rdx, -0x50(%rbp) leaq -0x290(%rbp), %rdi callq 0x66007 leaq 0x2d32d(%rip), %r12 # 0x8a910 movq %rbx, %rdi leaq -0x1d0(%rbp), %rsi movq %r15, %rdx movq %r12, %rcx callq 0x6de40 movq %rbx, %rdi movq %rbx, %rsi movq %rbx, %rdx movq %r12, %rcx callq 0x6d6e0 movq %rbx, %rdi movq %rbx, %rsi leaq -0x1d0(%rbp), %rdx movq %r12, %rcx callq 0x6d6e0 leaq 0x60(%rbx), %r15 movq %r15, %rdi leaq -0x110(%rbp), %rsi movq -0x30(%rbp), %rdx movq %r12, %rcx callq 0x6de40 movq %r15, %rdi movq %r15, %rsi movq %r15, %rdx movq %r12, %rcx callq 0x6d6e0 movq %r15, %rdi movq %r15, %rsi leaq -0x110(%rbp), %rdx movq %r12, %rcx callq 0x6d6e0 addq %rbx, %r14 movq %r14, %rdi leaq -0x290(%rbp), %r15 movq %r15, %rsi movq -0x38(%rbp), %rdx movq %r12, %rcx callq 0x6de40 movq %r14, %rdi movq %r14, %rsi movq %r14, %rdx movq %r12, %rcx callq 0x6d6e0 movq %r14, %rdi movq %r14, %rsi movq %r15, %rdx movq %r12, %rcx callq 0x6d6e0 leaq -0x230(%rbp), %r14 movq %r14, %rdi movq %r14, %rsi movq %r12, %rdx callq 0x6dec0 addq %rbx, %r13 movq %r13, %rdi movq %r14, %rsi movq -0x40(%rbp), %rdx movq %r12, %rcx callq 0x6d6e0 movq %r13, %rdi movq %r13, %rsi movq %r13, %rdx movq %r12, %rcx callq 0x6d6e0 movq %r13, %rdi movq %r13, %rsi movq %r14, %rdx movq %r12, %rcx callq 0x6d6e0 movl $0x180, %r15d # imm = 0x180 addq %rbx, %r15 leaq -0x170(%rbp), %r14 movq %r15, %rdi movq %r14, %rsi movq -0x48(%rbp), %rdx movq %r12, %rcx callq 0x6d6e0 movq %r15, %rdi movq %r15, %rsi movq %r15, %rdx movq %r12, %rcx callq 0x6d6e0 movq %r15, %rdi movq %r15, %rsi movq %r14, %rdx movq %r12, %rcx callq 0x6d6e0 movl $0x1e0, %r14d # imm = 0x1E0 addq %rbx, %r14 leaq -0xb0(%rbp), %rbx movq %r14, %rdi movq %rbx, %rsi movq -0x50(%rbp), %rdx movq %r12, %rcx callq 0x6d6e0 movq %r14, %rdi movq %r14, %rsi movq %r14, %rdx movq %r12, %rcx callq 0x6d6e0 movq %r14, %rdi movq %r14, %rsi movq %rbx, %rdx movq %r12, %rcx callq 0x6d6e0 addq $0x268, %rsp # imm = 0x268 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
cyclotomic_sqr_fp12: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 268h mov r15, rsi mov rbx, rdi mov r13d, 120h lea r12, [rsi+r13] mov [rbp+var_40], r12 mov eax, 180h lea rdx, [rsi+rax] mov [rbp+var_48], rdx lea rdi, [rbp+var_1D0] call sqr_fp4 mov r14d, 0C0h lea rdx, [r15+r14] mov [rbp+var_38], rdx lea rdi, [rbp+var_110] mov rsi, r12 call sqr_fp4 lea rsi, [r15+60h] mov [rbp+var_30], rsi mov eax, 1E0h lea rdx, [r15+rax] mov [rbp+var_50], rdx lea rdi, [rbp+var_290] call sqr_fp4 lea r12, BLS12_381_P mov rdi, rbx lea rsi, [rbp+var_1D0] mov rdx, r15 mov rcx, r12 call _sub_mod_384x mov rdi, rbx mov rsi, rbx mov rdx, rbx mov rcx, r12 call add_mod_384x mov rdi, rbx mov rsi, rbx lea rdx, [rbp+var_1D0] mov rcx, r12 call add_mod_384x lea r15, [rbx+60h] mov rdi, r15 lea rsi, [rbp+var_110] mov rdx, [rbp+var_30] mov rcx, r12 call _sub_mod_384x mov rdi, r15 mov rsi, r15 mov rdx, r15 mov rcx, r12 call add_mod_384x mov rdi, r15 mov rsi, r15 lea rdx, [rbp+var_110] mov rcx, r12 call add_mod_384x add r14, rbx mov rdi, r14 lea r15, [rbp+var_290] mov rsi, r15 mov rdx, [rbp+var_38] mov rcx, r12 call _sub_mod_384x mov rdi, r14 mov rsi, r14 mov rdx, r14 mov rcx, r12 call add_mod_384x mov rdi, r14 mov rsi, r14 mov rdx, r15 mov rcx, r12 call add_mod_384x lea r14, [rbp+var_230] mov rdi, r14 mov rsi, r14 mov rdx, r12 call mul_by_1_plus_i_mod_384x add r13, rbx mov rdi, r13 mov rsi, r14 mov rdx, [rbp+var_40] mov rcx, r12 call add_mod_384x mov rdi, r13 mov rsi, r13 mov rdx, r13 mov rcx, r12 call add_mod_384x mov rdi, r13 mov rsi, r13 mov rdx, r14 mov rcx, r12 call add_mod_384x mov r15d, 180h add r15, rbx lea r14, [rbp+var_170] mov rdi, r15 mov rsi, r14 mov rdx, [rbp+var_48] mov rcx, r12 call add_mod_384x mov rdi, r15 mov rsi, r15 mov rdx, r15 mov rcx, r12 call add_mod_384x mov rdi, r15 mov rsi, r15 mov rdx, r14 mov rcx, r12 call add_mod_384x mov r14d, 1E0h add r14, rbx lea rbx, [rbp+var_B0] mov rdi, r14 mov rsi, rbx mov rdx, [rbp+var_50] mov rcx, r12 call add_mod_384x mov rdi, r14 mov rsi, r14 mov rdx, r14 mov rcx, r12 call add_mod_384x mov rdi, r14 mov rsi, r14 mov rdx, rbx mov rcx, r12 call add_mod_384x add rsp, 268h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long cyclotomic_sqr_fp12(long long a1, long long a2) { long long v3; // r14 long long v4; // r13 long long v5; // r14 _BYTE v7[96]; // [rsp+0h] [rbp-290h] BYREF _BYTE v8[96]; // [rsp+60h] [rbp-230h] BYREF _BYTE v9[96]; // [rsp+C0h] [rbp-1D0h] BYREF _BYTE v10[96]; // [rsp+120h] [rbp-170h] BYREF _BYTE v11[96]; // [rsp+180h] [rbp-110h] BYREF _BYTE v12[96]; // [rsp+1E0h] [rbp-B0h] BYREF long long v13; // [rsp+240h] [rbp-50h] long long v14; // [rsp+248h] [rbp-48h] long long v15; // [rsp+250h] [rbp-40h] long long v16; // [rsp+258h] [rbp-38h] long long v17; // [rsp+260h] [rbp-30h] v15 = a2 + 288; v14 = a2 + 384; sqr_fp4(v9); v16 = a2 + 192; sqr_fp4(v11); v17 = a2 + 96; v13 = a2 + 480; sqr_fp4(v7); sub_mod_384x(a1, v9, a2, &BLS12_381_P); add_mod_384x(a1, a1, a1, &BLS12_381_P); add_mod_384x(a1, a1, v9, &BLS12_381_P); sub_mod_384x(a1 + 96, v11, v17, &BLS12_381_P); add_mod_384x(a1 + 96, a1 + 96, a1 + 96, &BLS12_381_P); add_mod_384x(a1 + 96, a1 + 96, v11, &BLS12_381_P); v3 = a1 + 192; sub_mod_384x(a1 + 192, v7, v16, &BLS12_381_P); add_mod_384x(v3, v3, v3, &BLS12_381_P); add_mod_384x(v3, v3, v7, &BLS12_381_P); mul_by_1_plus_i_mod_384x(v8, v8, &BLS12_381_P); v4 = a1 + 288; add_mod_384x(a1 + 288, v8, v15, &BLS12_381_P); add_mod_384x(v4, v4, v4, &BLS12_381_P); add_mod_384x(v4, v4, v8, &BLS12_381_P); add_mod_384x(a1 + 384, v10, v14, &BLS12_381_P); add_mod_384x(a1 + 384, a1 + 384, a1 + 384, &BLS12_381_P); add_mod_384x(a1 + 384, a1 + 384, v10, &BLS12_381_P); v5 = a1 + 480; add_mod_384x(a1 + 480, v12, v13, &BLS12_381_P); add_mod_384x(v5, v5, v5, &BLS12_381_P); return add_mod_384x(v5, v5, v12, &BLS12_381_P); }
cyclotomic_sqr_fp12: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x268 MOV R15,RSI MOV RBX,RDI MOV R13D,0x120 LEA R12,[RSI + R13*0x1] MOV qword ptr [RBP + -0x40],R12 MOV EAX,0x180 LEA RDX,[RSI + RAX*0x1] MOV qword ptr [RBP + -0x48],RDX LEA RDI,[RBP + -0x1d0] CALL 0x00166007 MOV R14D,0xc0 LEA RDX,[R15 + R14*0x1] MOV qword ptr [RBP + -0x38],RDX LEA RDI,[RBP + -0x110] MOV RSI,R12 CALL 0x00166007 LEA RSI,[R15 + 0x60] MOV qword ptr [RBP + -0x30],RSI MOV EAX,0x1e0 LEA RDX,[R15 + RAX*0x1] MOV qword ptr [RBP + -0x50],RDX LEA RDI,[RBP + -0x290] CALL 0x00166007 LEA R12,[0x18a910] MOV RDI,RBX LEA RSI,[RBP + -0x1d0] MOV RDX,R15 MOV RCX,R12 CALL 0x0016de40 MOV RDI,RBX MOV RSI,RBX MOV RDX,RBX MOV RCX,R12 CALL 0x0016d6e0 MOV RDI,RBX MOV RSI,RBX LEA RDX,[RBP + -0x1d0] MOV RCX,R12 CALL 0x0016d6e0 LEA R15,[RBX + 0x60] MOV RDI,R15 LEA RSI,[RBP + -0x110] MOV RDX,qword ptr [RBP + -0x30] MOV RCX,R12 CALL 0x0016de40 MOV RDI,R15 MOV RSI,R15 MOV RDX,R15 MOV RCX,R12 CALL 0x0016d6e0 MOV RDI,R15 MOV RSI,R15 LEA RDX,[RBP + -0x110] MOV RCX,R12 CALL 0x0016d6e0 ADD R14,RBX MOV RDI,R14 LEA R15,[RBP + -0x290] MOV RSI,R15 MOV RDX,qword ptr [RBP + -0x38] MOV RCX,R12 CALL 0x0016de40 MOV RDI,R14 MOV RSI,R14 MOV RDX,R14 MOV RCX,R12 CALL 0x0016d6e0 MOV RDI,R14 MOV RSI,R14 MOV RDX,R15 MOV RCX,R12 CALL 0x0016d6e0 LEA R14,[RBP + -0x230] MOV RDI,R14 MOV RSI,R14 MOV RDX,R12 CALL 0x0016dec0 ADD R13,RBX MOV RDI,R13 MOV RSI,R14 MOV RDX,qword ptr [RBP + -0x40] MOV RCX,R12 CALL 0x0016d6e0 MOV RDI,R13 MOV RSI,R13 MOV RDX,R13 MOV RCX,R12 CALL 0x0016d6e0 MOV RDI,R13 MOV RSI,R13 MOV RDX,R14 MOV RCX,R12 CALL 0x0016d6e0 MOV R15D,0x180 ADD R15,RBX LEA R14,[RBP + -0x170] MOV RDI,R15 MOV RSI,R14 MOV RDX,qword ptr [RBP + -0x48] MOV RCX,R12 CALL 0x0016d6e0 MOV RDI,R15 MOV RSI,R15 MOV RDX,R15 MOV RCX,R12 CALL 0x0016d6e0 MOV RDI,R15 MOV RSI,R15 MOV RDX,R14 MOV RCX,R12 CALL 0x0016d6e0 MOV R14D,0x1e0 ADD R14,RBX LEA RBX,[RBP + -0xb0] MOV RDI,R14 MOV RSI,RBX MOV RDX,qword ptr [RBP + -0x50] MOV RCX,R12 CALL 0x0016d6e0 MOV RDI,R14 MOV RSI,R14 MOV RDX,R14 MOV RCX,R12 CALL 0x0016d6e0 MOV RDI,R14 MOV RSI,R14 MOV RDX,RBX MOV RCX,R12 CALL 0x0016d6e0 ADD RSP,0x268 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void cyclotomic_sqr_fp12(long param_1,long param_2) { long lVar1; int1 local_298 [96]; int1 local_238 [96]; int1 local_1d8 [96]; int1 local_178 [96]; int1 local_118 [96]; int1 local_b8 [96]; long local_58; long local_50; long local_48; long local_40; long local_38; local_50 = param_2 + 0x180; local_48 = param_2 + 0x120; sqr_fp4(local_1d8); local_40 = param_2 + 0xc0; sqr_fp4(local_118,param_2 + 0x120); local_38 = param_2 + 0x60; local_58 = param_2 + 0x1e0; sqr_fp4(local_298); sub_mod_384x(param_1,local_1d8,param_2,BLS12_381_P); add_mod_384x(param_1,param_1,param_1,BLS12_381_P); add_mod_384x(param_1,param_1,local_1d8,BLS12_381_P); lVar1 = param_1 + 0x60; sub_mod_384x(lVar1,local_118,local_38,BLS12_381_P); add_mod_384x(lVar1,lVar1,lVar1,BLS12_381_P); add_mod_384x(lVar1,lVar1,local_118,BLS12_381_P); lVar1 = param_1 + 0xc0; sub_mod_384x(lVar1,local_298,local_40,BLS12_381_P); add_mod_384x(lVar1,lVar1,lVar1,BLS12_381_P); add_mod_384x(lVar1,lVar1,local_298,BLS12_381_P); mul_by_1_plus_i_mod_384x(local_238,local_238,BLS12_381_P); lVar1 = param_1 + 0x120; add_mod_384x(lVar1,local_238,local_48,BLS12_381_P); add_mod_384x(lVar1,lVar1,lVar1,BLS12_381_P); add_mod_384x(lVar1,lVar1,local_238,BLS12_381_P); lVar1 = param_1 + 0x180; add_mod_384x(lVar1,local_178,local_50,BLS12_381_P); add_mod_384x(lVar1,lVar1,lVar1,BLS12_381_P); add_mod_384x(lVar1,lVar1,local_178,BLS12_381_P); param_1 = param_1 + 0x1e0; add_mod_384x(param_1,local_b8,local_58,BLS12_381_P); add_mod_384x(param_1,param_1,param_1,BLS12_381_P); add_mod_384x(param_1,param_1,local_b8,BLS12_381_P); return; }
27,626
BIONJ2009Adapter::constructTree(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
iqtree3/utils/bionj.cpp
virtual bool constructTree ( const std::string &distanceMatrixFilePath , const std::string & newickTreeFilePath) { BioNj bio2009; if (endsWith(distanceMatrixFilePath,".gz")) { std::cerr << "BIONJ2009 cannot handle .gz inputs\n"; return false; } bio2009.create(distanceMatrixFilePath.c_str(), newickTreeFilePath.c_str()); return true; }
O0
cpp
BIONJ2009Adapter::constructTree(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): subq $0x68, %rsp movq %rdi, 0x58(%rsp) movq %rsi, 0x50(%rsp) movq %rdx, 0x48(%rsp) movq 0x50(%rsp), %rsi leaq 0x20(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x371c0 movq 0x8(%rsp), %rdi leaq 0x2d1ac(%rip), %rsi # 0x693ff callq 0x3c330 movb %al, 0x13(%rsp) jmp 0x3c25e leaq 0x20(%rsp), %rdi callq 0x37250 movb 0x13(%rsp), %al testb $0x1, %al jne 0x3c272 jmp 0x3c2a6 movq 0x3ed77(%rip), %rdi # 0x7aff0 leaq 0x2d2f6(%rip), %rsi # 0x69576 callq 0x373e0 movb $0x0, 0x67(%rsp) jmp 0x3c2d4 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x18(%rsp) movl %eax, 0x14(%rsp) leaq 0x20(%rsp), %rdi callq 0x37250 jmp 0x3c2df movq 0x50(%rsp), %rdi callq 0x371b0 movq %rax, (%rsp) movq 0x48(%rsp), %rdi callq 0x371b0 movq (%rsp), %rsi movq %rax, %rdx leaq 0x47(%rsp), %rdi callq 0x3c3f0 movb $0x1, 0x67(%rsp) movb 0x67(%rsp), %al andb $0x1, %al addq $0x68, %rsp retq movq 0x18(%rsp), %rdi callq 0x37770 nopl (%rax)
_ZN16BIONJ2009Adapter13constructTreeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_: sub rsp, 68h mov [rsp+68h+var_10], rdi mov [rsp+68h+var_18], rsi mov [rsp+68h+var_20], rdx mov rsi, [rsp+68h+var_18] lea rdi, [rsp+68h+var_48] mov [rsp+68h+var_60], rdi call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&) mov rdi, [rsp+68h+var_60] lea rsi, aGz_0; ".gz" call _ZN12_GLOBAL__N_18endsWithENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc_0; `anonymous namespace'::endsWith(std::string,char const*) mov [rsp+68h+var_55], al jmp short $+2 loc_3C25E: lea rdi, [rsp+68h+var_48] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov al, [rsp+68h+var_55] test al, 1 jnz short loc_3C272 jmp short loc_3C2A6 loc_3C272: mov rdi, cs:_ZSt4cerr_ptr lea rsi, aBionj2009Canno; "BIONJ2009 cannot handle .gz inputs\n" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov [rsp+68h+var_1], 0 jmp short loc_3C2D4 mov rcx, rax mov eax, edx mov [rsp+arg_10], rcx mov [rsp+arg_C], eax lea rdi, [rsp+arg_18] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_3C2DF loc_3C2A6: mov rdi, [rsp+68h+var_18] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void) mov [rsp+68h+var_68], rax mov rdi, [rsp+68h+var_20] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void) mov rsi, [rsp+68h+var_68]; char * mov rdx, rax; char * lea rdi, [rsp+68h+var_21]; this call _ZN5BioNj6createEPKcS1_; BioNj::create(char const*,char const*) mov [rsp+68h+var_1], 1 loc_3C2D4: mov al, [rsp+68h+var_1] and al, 1 add rsp, 68h retn loc_3C2DF: mov rdi, [rsp+arg_10] call __Unwind_Resume
char BIONJ2009Adapter::constructTree(long long a1, long long a2, long long a3) { int v3; // edx int v4; // ecx int v5; // r8d int v6; // r9d const char *v7; // rax char *v9; // [rsp+0h] [rbp-68h] char v10; // [rsp+13h] [rbp-55h] _BYTE v11[39]; // [rsp+20h] [rbp-48h] BYREF char v12; // [rsp+47h] [rbp-21h] BYREF long long v13; // [rsp+48h] [rbp-20h] long long v14; // [rsp+50h] [rbp-18h] long long v15; // [rsp+58h] [rbp-10h] v15 = a1; v14 = a2; v13 = a3; std::string::basic_string(v11, a2); v10 = `anonymous namespace'::endsWith((unsigned int)v11, (unsigned int)".gz", v3, v4, v5, v6); std::string::~string(v11); if ( (v10 & 1) != 0 ) { std::operator<<<std::char_traits<char>>(&std::cerr, "BIONJ2009 cannot handle .gz inputs\n"); return 0; } else { v9 = (char *)std::string::c_str(v14); v7 = (const char *)std::string::c_str(v13); BioNj::create((BioNj *)&v12, v9, v7); return 1; } }
constructTree: SUB RSP,0x68 MOV qword ptr [RSP + 0x58],RDI MOV qword ptr [RSP + 0x50],RSI MOV qword ptr [RSP + 0x48],RDX MOV RSI,qword ptr [RSP + 0x50] LEA RDI,[RSP + 0x20] MOV qword ptr [RSP + 0x8],RDI CALL 0x001371c0 MOV RDI,qword ptr [RSP + 0x8] LAB_0013c24c: LEA RSI,[0x1693ff] CALL 0x0013c330 LAB_0013c258: MOV byte ptr [RSP + 0x13],AL JMP 0x0013c25e LAB_0013c25e: LEA RDI,[RSP + 0x20] CALL 0x00137250 MOV AL,byte ptr [RSP + 0x13] TEST AL,0x1 JNZ 0x0013c272 JMP 0x0013c2a6 LAB_0013c272: MOV RDI,qword ptr [0x0017aff0] LEA RSI,[0x169576] CALL 0x001373e0 MOV byte ptr [RSP + 0x67],0x0 JMP 0x0013c2d4 LAB_0013c2a6: MOV RDI,qword ptr [RSP + 0x50] CALL 0x001371b0 MOV qword ptr [RSP],RAX MOV RDI,qword ptr [RSP + 0x48] CALL 0x001371b0 MOV RSI,qword ptr [RSP] MOV RDX,RAX LEA RDI,[RSP + 0x47] CALL 0x0013c3f0 MOV byte ptr [RSP + 0x67],0x1 LAB_0013c2d4: MOV AL,byte ptr [RSP + 0x67] AND AL,0x1 ADD RSP,0x68 RET
/* BIONJ2009Adapter::constructTree(std::__cxx11::string const&, std::__cxx11::string const&) */ bool __thiscall BIONJ2009Adapter::constructTree(BIONJ2009Adapter *this,string *param_1,string *param_2) { byte bVar1; char *pcVar2; char *pcVar3; bool bVar4; string local_48 [39]; BioNj local_21; string *local_20; string *local_18; BIONJ2009Adapter *local_10; bool local_1; local_20 = param_2; local_18 = param_1; local_10 = this; std::__cxx11::string::string(local_48,param_1); /* try { // try from 0013c24c to 0013c257 has its CatchHandler @ 0013c28c */ bVar1 = (anonymous_namespace)::endsWith(local_48,&DAT_001693ff); std::__cxx11::string::~string(local_48); bVar4 = (bVar1 & 1) != 0; if (bVar4) { std::operator<<((ostream *)PTR_cerr_0017aff0,"BIONJ2009 cannot handle .gz inputs\n"); } else { pcVar2 = (char *)std::__cxx11::string::c_str(); pcVar3 = (char *)std::__cxx11::string::c_str(); BioNj::create(&local_21,pcVar2,pcVar3); } local_1 = !bVar4; return local_1; }
27,627
my_strtod
eloqsql/strings/dtoa.c
double my_strtod(const char *str, char **end, int *error) { char buf[DTOA_BUFF_SIZE]; double res; DBUG_ASSERT(end != NULL && ((str != NULL && *end != NULL) || (str == NULL && *end == NULL)) && error != NULL); res= my_strtod_int(str, end, error, buf, sizeof(buf)); return (*error == 0) ? res : (res < 0 ? -DBL_MAX : DBL_MAX); }
O0
c
my_strtod: pushq %rbp movq %rsp, %rbp subq $0xea0, %rsp # imm = 0xEA0 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0xe78(%rbp) movq %rsi, -0xe80(%rbp) movq %rdx, -0xe88(%rbp) jmp 0x6efaf movq -0xe78(%rbp), %rdi movq -0xe80(%rbp), %rsi movq -0xe88(%rbp), %rdx leaq -0xe70(%rbp), %rcx movl $0xe60, %r8d # imm = 0xE60 callq 0x6f070 movsd %xmm0, -0xe90(%rbp) movq -0xe88(%rbp), %rax cmpl $0x0, (%rax) jne 0x6effc movsd -0xe90(%rbp), %xmm0 movsd %xmm0, -0xe98(%rbp) jmp 0x6f033 movsd -0xe90(%rbp), %xmm0 movsd 0xd904(%rip), %xmm3 # 0x7c910 movsd 0xd904(%rip), %xmm2 # 0x7c918 xorps %xmm1, %xmm1 cmpltsd %xmm1, %xmm0 movaps %xmm0, %xmm1 andpd %xmm3, %xmm1 andnpd %xmm2, %xmm0 orpd %xmm1, %xmm0 movsd %xmm0, -0xe98(%rbp) movsd -0xe98(%rbp), %xmm0 movsd %xmm0, -0xea0(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x6f066 movsd -0xea0(%rbp), %xmm0 addq $0xea0, %rsp # imm = 0xEA0 popq %rbp retq callq 0x242a0 nopl (%rax,%rax)
my_strtod: push rbp mov rbp, rsp sub rsp, 0EA0h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_E78], rdi mov [rbp+var_E80], rsi mov [rbp+var_E88], rdx jmp short $+2 loc_6EFAF: mov rdi, [rbp+var_E78] mov rsi, [rbp+var_E80] mov rdx, [rbp+var_E88] lea rcx, [rbp+var_E70] mov r8d, 0E60h call my_strtod_int movsd [rbp+var_E90], xmm0 mov rax, [rbp+var_E88] cmp dword ptr [rax], 0 jnz short loc_6EFFC movsd xmm0, [rbp+var_E90] movsd [rbp+var_E98], xmm0 jmp short loc_6F033 loc_6EFFC: movsd xmm0, [rbp+var_E90] movsd xmm3, cs:qword_7C910 movsd xmm2, cs:qword_7C918 xorps xmm1, xmm1 cmpltsd xmm0, xmm1 movaps xmm1, xmm0 andpd xmm1, xmm3 andnpd xmm0, xmm2 orpd xmm0, xmm1 movsd [rbp+var_E98], xmm0 loc_6F033: movsd xmm0, [rbp+var_E98] movsd [rbp+var_EA0], xmm0 mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_6F066 movsd xmm0, [rbp+var_EA0] add rsp, 0EA0h pop rbp retn loc_6F066: call ___stack_chk_fail
double my_strtod(long long a1, long long a2, _DWORD *a3) { __m128d v3; // xmm1 double v4; // xmm0_8 double v6; // [rsp+8h] [rbp-E98h] double v7; // [rsp+10h] [rbp-E90h] _BYTE v9[3688]; // [rsp+30h] [rbp-E70h] BYREF unsigned long long v10; // [rsp+E98h] [rbp-8h] v10 = __readfsqword(0x28u); v7 = my_strtod_int(a1, a2, a3, v9, 3680LL); if ( !*a3 ) return v7; v3.m128d_f64[0] = 0.0; v4 = _mm_cmplt_sd((__m128d)*(unsigned long long *)&v7, v3).m128d_f64[0]; *(_QWORD *)&v6 = ~*(_QWORD *)&v4 & 0x7FEFFFFFFFFFFFFFLL | *(_QWORD *)&v4 & 0xFFEFFFFFFFFFFFFFLL; return v6; }
my_strtod: PUSH RBP MOV RBP,RSP SUB RSP,0xea0 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0xe78],RDI MOV qword ptr [RBP + -0xe80],RSI MOV qword ptr [RBP + -0xe88],RDX JMP 0x0016efaf LAB_0016efaf: MOV RDI,qword ptr [RBP + -0xe78] MOV RSI,qword ptr [RBP + -0xe80] MOV RDX,qword ptr [RBP + -0xe88] LEA RCX,[RBP + -0xe70] MOV R8D,0xe60 CALL 0x0016f070 MOVSD qword ptr [RBP + -0xe90],XMM0 MOV RAX,qword ptr [RBP + -0xe88] CMP dword ptr [RAX],0x0 JNZ 0x0016effc MOVSD XMM0,qword ptr [RBP + -0xe90] MOVSD qword ptr [RBP + -0xe98],XMM0 JMP 0x0016f033 LAB_0016effc: MOVSD XMM0,qword ptr [RBP + -0xe90] MOVSD XMM3,qword ptr [0x0017c910] MOVSD XMM2,qword ptr [0x0017c918] XORPS XMM1,XMM1 CMPLTSD XMM0,XMM1 MOVAPS XMM1,XMM0 ANDPD XMM1,XMM3 ANDNPD XMM0,XMM2 ORPD XMM0,XMM1 MOVSD qword ptr [RBP + -0xe98],XMM0 LAB_0016f033: MOVSD XMM0,qword ptr [RBP + -0xe98] MOVSD qword ptr [RBP + -0xea0],XMM0 MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0016f066 MOVSD XMM0,qword ptr [RBP + -0xea0] ADD RSP,0xea0 POP RBP RET LAB_0016f066: CALL 0x001242a0
double my_strtod(int8 param_1,int8 param_2,int *param_3) { long in_FS_OFFSET; double local_ea0; int1 local_e78 [3688]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_ea0 = (double)my_strtod_int(param_1,param_2,param_3,local_e78,0xe60); if (*param_3 != 0) { local_ea0 = (double)(~-(ulong)(local_ea0 < 0.0) & DAT_0017c918 | -(ulong)(local_ea0 < 0.0) & DAT_0017c910); } if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return local_ea0; }
27,628
void yoyo::Logger::warn<char const (&) [34]>(char const (&) [34], std::source_location&&)
isyoCode[P]yoyologger/test/../src/logger.hpp
void warn(T&& str, std::source_location&& loc = std::source_location::current()) { log(LOGLEVEL::WARNING, std::forward<T>(str), std::move(loc)); }
O3
cpp
void yoyo::Logger::warn<char const (&) [34]>(char const (&) [34], std::source_location&&): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x20, %rsp movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %r15 leaq 0x10(%rsp), %r13 movq %r13, -0x10(%r13) movq %rsi, %rdi callq 0x30d0 leaq (%rax,%r14), %rdx movq %rsp, %r12 movq %r12, %rdi movq %r14, %rsi callq 0x3ef0 movq %r15, %rdi movl $0x1, %esi movq %r12, %rdx movq %rbx, %rcx callq 0x64e6 movq (%rsp), %rdi cmpq %r13, %rdi je 0x3bac movq 0x10(%rsp), %rsi incq %rsi callq 0x3290 addq $0x20, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq %rax, %rbx movq (%rsp), %rdi cmpq %r13, %rdi je 0x3bd3 movq 0x10(%rsp), %rsi incq %rsi callq 0x3290 movq %rbx, %rdi callq 0x33a0 nop
_ZN4yoyo6Logger4warnIRA34_KcEEvOT_OSt15source_location: push r15; int push r14; int push r13; int push r12; int push rbx; char sub rsp, 20h mov rbx, rdx mov r14, rsi mov r15, rdi lea r13, [rsp+48h+var_38] mov [r13-10h], r13 mov rdi, rsi call _strlen lea rdx, [rax+r14] mov r12, rsp mov rdi, r12 mov rsi, 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) mov rdi, r15; int mov esi, 1; int mov rdx, r12; int mov rcx, rbx; int call _ZN4yoyo6Logger3logENS_8LOGLEVELEONSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEOSt15source_location; yoyo::Logger::log(yoyo::LOGLEVEL,std::string &&,std::source_location &&) mov rdi, [rsp+48h+var_48]; void * cmp rdi, r13 jz short loc_3BAC mov rsi, [rsp+48h+var_38] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3BAC: add rsp, 20h pop rbx pop r12 pop r13 pop r14 pop r15 retn mov rbx, rax mov rdi, [rsp+0]; void * cmp rdi, r13 jz short loc_3BD3 mov rsi, [rsp+arg_8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3BD3: mov rdi, rbx call __Unwind_Resume
warn<char_const(&)[34]>: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x20 MOV RBX,RDX MOV R14,RSI MOV R15,RDI LEA R13,[RSP + 0x10] MOV qword ptr [R13 + -0x10],R13 MOV RDI,RSI CALL 0x001030d0 LEA RDX,[RAX + R14*0x1] MOV R12,RSP MOV RDI,R12 MOV RSI,R14 CALL 0x00103ef0 LAB_00103b83: MOV RDI,R15 MOV ESI,0x1 MOV RDX,R12 MOV RCX,RBX CALL 0x001064e6 LAB_00103b96: MOV RDI,qword ptr [RSP] CMP RDI,R13 JZ 0x00103bac MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x00103290 LAB_00103bac: ADD RSP,0x20 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* void yoyo::Logger::warn<char const (&) [34]>(char const (&) [34], std::source_location&&) */ void __thiscall yoyo::Logger::warn<char_const(&)[34]>(Logger *this,char *param_1,source_location *param_2) { size_t sVar1; long *local_48 [2]; long local_38 [2]; local_48[0] = local_38; sVar1 = strlen(param_1); std::__cxx11::string::_M_construct<char_const*>(local_48,param_1,param_1 + sVar1); /* try { // try from 00103b83 to 00103b95 has its CatchHandler @ 00103bba */ log(this,1,local_48,param_2); if (local_48[0] != local_38) { operator_delete(local_48[0],local_38[0] + 1); } return; }
27,629
LefDefParser::lefiLayer::addSpParallelWidthSpacing()
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiLayer.cpp
void lefiLayer::addSpParallelWidthSpacing() { lefiSpacingTable *sp; sp = spacingTable_[numSpacingTable_ - 1]; sp->addParallelWidthSpacing(numNums_, nums_); // Since inside addParallelWidthSpacing copy the nums_, we can free it // here lefFree((char*) (nums_)); numNums_ = 0; numAllocated_ = 0; nums_ = 0; }
O3
cpp
LefDefParser::lefiLayer::addSpParallelWidthSpacing(): pushq %rbx movq %rdi, %rax leaq 0x398(%rdi), %rbx movslq 0x398(%rdi), %rcx movq 0x3a0(%rdi), %rdi testq %rcx, %rcx jle 0x28741 movq 0x4b0(%rax), %rdx movslq 0x4a8(%rax), %rax movq -0x8(%rdx,%rax,8), %rax movq 0x10(%rax), %rdx movslq 0x4(%rdx), %rsi decq %rsi movslq (%rdx), %rax imulq %rsi, %rax shlq $0x3, %rax addq 0x20(%rdx), %rax xorl %edx, %edx movsd (%rdi,%rdx,8), %xmm0 movsd %xmm0, (%rax,%rdx,8) incq %rdx cmpq %rdx, %rcx jne 0x2872f callq 0x322d0 xorps %xmm0, %xmm0 movups %xmm0, (%rbx) popq %rbx retq
_ZN12LefDefParser9lefiLayer25addSpParallelWidthSpacingEv: push rbx mov rax, rdi lea rbx, [rdi+398h] movsxd rcx, dword ptr [rdi+398h] mov rdi, [rdi+3A0h]; this test rcx, rcx jle short loc_28741 mov rdx, [rax+4B0h] movsxd rax, dword ptr [rax+4A8h] mov rax, [rdx+rax*8-8] mov rdx, [rax+10h] movsxd rsi, dword ptr [rdx+4] dec rsi; void * movsxd rax, dword ptr [rdx] imul rax, rsi shl rax, 3 add rax, [rdx+20h] xor edx, edx loc_2872F: movsd xmm0, qword ptr [rdi+rdx*8] movsd qword ptr [rax+rdx*8], xmm0 inc rdx cmp rcx, rdx jnz short loc_2872F loc_28741: call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *) xorps xmm0, xmm0 movups xmmword ptr [rbx], xmm0 pop rbx retn
long long LefDefParser::lefiLayer::addSpParallelWidthSpacing(LefDefParser::lefiLayer *this, long long a2) { _OWORD *v3; // rbx long long v4; // rcx LefDefParser *v5; // rdi int *v6; // rdx long long v7; // rax long long i; // rdx long long result; // rax v3 = (_OWORD *)((char *)this + 920); v4 = *((int *)this + 230); v5 = (LefDefParser *)*((_QWORD *)this + 116); if ( v4 > 0 ) { v6 = *(int **)(*(_QWORD *)(*((_QWORD *)this + 150) + 8LL * *((int *)this + 298) - 8) + 16LL); a2 = v6[1] - 1LL; v7 = *((_QWORD *)v6 + 4) + 8 * a2 * *v6; for ( i = 0LL; i != v4; ++i ) *(_QWORD *)(v7 + 8 * i) = *((_QWORD *)v5 + i); } result = LefDefParser::lefFree(v5, (void *)a2); *v3 = 0LL; return result; }
addSpParallelWidthSpacing: PUSH RBX MOV RAX,RDI LEA RBX,[RDI + 0x398] MOVSXD RCX,dword ptr [RDI + 0x398] MOV RDI,qword ptr [RDI + 0x3a0] TEST RCX,RCX JLE 0x00128741 MOV RDX,qword ptr [RAX + 0x4b0] MOVSXD RAX,dword ptr [RAX + 0x4a8] MOV RAX,qword ptr [RDX + RAX*0x8 + -0x8] MOV RDX,qword ptr [RAX + 0x10] MOVSXD RSI,dword ptr [RDX + 0x4] DEC RSI MOVSXD RAX,dword ptr [RDX] IMUL RAX,RSI SHL RAX,0x3 ADD RAX,qword ptr [RDX + 0x20] XOR EDX,EDX LAB_0012872f: MOVSD XMM0,qword ptr [RDI + RDX*0x8] MOVSD qword ptr [RAX + RDX*0x8],XMM0 INC RDX CMP RCX,RDX JNZ 0x0012872f LAB_00128741: CALL 0x001322d0 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX],XMM0 POP RBX RET
/* LefDefParser::lefiLayer::addSpParallelWidthSpacing() */ void __thiscall LefDefParser::lefiLayer::addSpParallelWidthSpacing(lefiLayer *this) { int iVar1; int iVar2; int iVar3; void *pvVar4; int *piVar5; long lVar6; long lVar7; iVar1 = *(int *)(this + 0x398); pvVar4 = *(void **)(this + 0x3a0); if (0 < (long)iVar1) { piVar5 = *(int **)(*(long *)(*(long *)(this + 0x4b0) + -8 + (long)*(int *)(this + 0x4a8) * 8) + 0x10); iVar2 = piVar5[1]; iVar3 = *piVar5; lVar6 = *(long *)(piVar5 + 8); lVar7 = 0; do { *(int8 *)((long)iVar3 * ((long)iVar2 + -1) * 8 + lVar6 + lVar7 * 8) = *(int8 *)((long)pvVar4 + lVar7 * 8); lVar7 = lVar7 + 1; } while (iVar1 != lVar7); } lefFree(pvVar4); *(int8 *)(this + 0x398) = 0; *(int8 *)(this + 0x3a0) = 0; return; }
27,630
MNN::InnerProductT::InnerProductT()
mnn-tts/MNN/schema/current/CaffeOp_generated.h
InnerProductT() : outputCount(0), biasTerm(0), weightSize(0), axis(0), transpose(false) { }
O0
c
MNN::InnerProductT::InnerProductT(): subq $0x18, %rsp movq %rdi, 0x10(%rsp) movq 0x10(%rsp), %rdi movq %rdi, 0x8(%rsp) movl $0x0, (%rdi) movl $0x0, 0x4(%rdi) movl $0x0, 0x8(%rdi) addq $0x10, %rdi callq 0xb320 movq 0x8(%rsp), %rdi addq $0x28, %rdi callq 0xb320 movq 0x8(%rsp), %rdi movl $0x0, 0x40(%rdi) movb $0x0, 0x44(%rdi) addq $0x48, %rdi callq 0x17a80 addq $0x18, %rsp retq nopl (%rax)
_ZN3MNN13InnerProductTC2Ev: sub rsp, 18h mov [rsp+18h+var_8], rdi mov rdi, [rsp+18h+var_8] mov [rsp+18h+var_10], rdi mov dword ptr [rdi], 0 mov dword ptr [rdi+4], 0 mov dword ptr [rdi+8], 0 add rdi, 10h call _ZNSt3__16vectorIfNS_9allocatorIfEEEC2B8nn200100Ev; std::vector<float>::vector(void) mov rdi, [rsp+18h+var_10] add rdi, 28h ; '(' call _ZNSt3__16vectorIfNS_9allocatorIfEEEC2B8nn200100Ev; std::vector<float>::vector(void) mov rdi, [rsp+18h+var_10] mov dword ptr [rdi+40h], 0 mov byte ptr [rdi+44h], 0 add rdi, 48h ; 'H' call _ZNSt3__110unique_ptrIN3MNN9IDSTQuanTENS_14default_deleteIS2_EEEC2B8nn200100ILb1EvEEv; std::unique_ptr<MNN::IDSTQuanT>::unique_ptr<true,void>(void) add rsp, 18h retn
_QWORD * MNN::InnerProductT::InnerProductT(MNN::InnerProductT *this) { *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; *((_DWORD *)this + 2) = 0; std::vector<float>::vector[abi:nn200100]((_QWORD *)this + 2); std::vector<float>::vector[abi:nn200100]((_QWORD *)this + 5); *((_DWORD *)this + 16) = 0; *((_BYTE *)this + 68) = 0; return std::unique_ptr<MNN::IDSTQuanT>::unique_ptr[abi:nn200100]<true,void>((_QWORD *)this + 9); }
InnerProductT: SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RDI MOV RDI,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x8],RDI MOV dword ptr [RDI],0x0 MOV dword ptr [RDI + 0x4],0x0 MOV dword ptr [RDI + 0x8],0x0 ADD RDI,0x10 CALL 0x0010b320 MOV RDI,qword ptr [RSP + 0x8] ADD RDI,0x28 CALL 0x0010b320 MOV RDI,qword ptr [RSP + 0x8] MOV dword ptr [RDI + 0x40],0x0 MOV byte ptr [RDI + 0x44],0x0 ADD RDI,0x48 CALL 0x00117a80 ADD RSP,0x18 RET
/* MNN::InnerProductT::InnerProductT() */ void __thiscall MNN::InnerProductT::InnerProductT(InnerProductT *this) { *(int4 *)this = 0; *(int4 *)(this + 4) = 0; *(int4 *)(this + 8) = 0; std::vector<float,std::allocator<float>>::vector_abi_nn200100_ ((vector<float,std::allocator<float>> *)(this + 0x10)); std::vector<float,std::allocator<float>>::vector_abi_nn200100_ ((vector<float,std::allocator<float>> *)(this + 0x28)); *(int4 *)(this + 0x40) = 0; this[0x44] = (InnerProductT)0x0; _ZNSt3__110unique_ptrIN3MNN9IDSTQuanTENS_14default_deleteIS2_EEEC2B8nn200100ILb1EvEEv(this + 0x48) ; return; }
27,631
ma_free_size_to_head_pattern
eloqsql/storage/maria/ma_bitmap.c
uint _ma_free_size_to_head_pattern(MARIA_FILE_BITMAP *bitmap, uint size) { if (size < bitmap->sizes[3]) return 4; if (size < bitmap->sizes[2]) return 3; if (size < bitmap->sizes[1]) return 2; return (size < bitmap->sizes[0]) ? 1 : 0; }
O0
c
ma_free_size_to_head_pattern: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl -0x14(%rbp), %eax movq -0x10(%rbp), %rcx cmpl 0x114(%rcx), %eax jae 0x3f173 movl $0x4, -0x4(%rbp) jmp 0x3f1bf movl -0x14(%rbp), %eax movq -0x10(%rbp), %rcx cmpl 0x110(%rcx), %eax jae 0x3f18b movl $0x3, -0x4(%rbp) jmp 0x3f1bf movl -0x14(%rbp), %eax movq -0x10(%rbp), %rcx cmpl 0x10c(%rcx), %eax jae 0x3f1a3 movl $0x2, -0x4(%rbp) jmp 0x3f1bf movl -0x14(%rbp), %edx movq -0x10(%rbp), %rax movl 0x108(%rax), %esi xorl %eax, %eax movl $0x1, %ecx cmpl %esi, %edx cmovbl %ecx, %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopw %cs:(%rax,%rax)
_ma_free_size_to_head_pattern: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_14], esi mov eax, [rbp+var_14] mov rcx, [rbp+var_10] cmp eax, [rcx+114h] jnb short loc_3F173 mov [rbp+var_4], 4 jmp short loc_3F1BF loc_3F173: mov eax, [rbp+var_14] mov rcx, [rbp+var_10] cmp eax, [rcx+110h] jnb short loc_3F18B mov [rbp+var_4], 3 jmp short loc_3F1BF loc_3F18B: mov eax, [rbp+var_14] mov rcx, [rbp+var_10] cmp eax, [rcx+10Ch] jnb short loc_3F1A3 mov [rbp+var_4], 2 jmp short loc_3F1BF loc_3F1A3: mov edx, [rbp+var_14] mov rax, [rbp+var_10] mov esi, [rax+108h] xor eax, eax mov ecx, 1 cmp edx, esi cmovb eax, ecx mov [rbp+var_4], eax loc_3F1BF: mov eax, [rbp+var_4] pop rbp retn
long long ma_free_size_to_head_pattern(_DWORD *a1, unsigned int a2) { if ( a2 >= a1[69] ) { if ( a2 >= a1[68] ) { if ( a2 >= a1[67] ) return a2 < a1[66]; else return 2; } else { return 3; } } else { return 4; } }
_ma_free_size_to_head_pattern: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV EAX,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x10] CMP EAX,dword ptr [RCX + 0x114] JNC 0x0013f173 MOV dword ptr [RBP + -0x4],0x4 JMP 0x0013f1bf LAB_0013f173: MOV EAX,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x10] CMP EAX,dword ptr [RCX + 0x110] JNC 0x0013f18b MOV dword ptr [RBP + -0x4],0x3 JMP 0x0013f1bf LAB_0013f18b: MOV EAX,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x10] CMP EAX,dword ptr [RCX + 0x10c] JNC 0x0013f1a3 MOV dword ptr [RBP + -0x4],0x2 JMP 0x0013f1bf LAB_0013f1a3: MOV EDX,dword ptr [RBP + -0x14] MOV RAX,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RAX + 0x108] XOR EAX,EAX MOV ECX,0x1 CMP EDX,ESI CMOVC EAX,ECX MOV dword ptr [RBP + -0x4],EAX LAB_0013f1bf: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int1 _ma_free_size_to_head_pattern(long param_1,uint param_2) { int1 uVar1; if (param_2 < *(uint *)(param_1 + 0x114)) { uVar1 = 4; } else if (param_2 < *(uint *)(param_1 + 0x110)) { uVar1 = 3; } else if (param_2 < *(uint *)(param_1 + 0x10c)) { uVar1 = 2; } else { uVar1 = param_2 < *(uint *)(param_1 + 0x108); } return uVar1; }
27,632
google::protobuf::uint128::operator+=(google::protobuf::uint128 const&)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/stubs/int128.h
inline uint128& uint128::operator+=(const uint128& b) { hi_ += b.hi_; uint64_t lolo = lo_ + b.lo_; if (lolo < lo_) ++hi_; lo_ = lolo; return *this; }
O0
c
google::protobuf::uint128::operator+=(google::protobuf::uint128 const&): movq %rdi, -0x8(%rsp) movq %rsi, -0x10(%rsp) movq -0x8(%rsp), %rcx movq %rcx, -0x20(%rsp) movq -0x10(%rsp), %rax movq 0x8(%rax), %rax addq 0x8(%rcx), %rax movq %rax, 0x8(%rcx) movq (%rcx), %rax movq -0x10(%rsp), %rdx addq (%rdx), %rax movq %rax, -0x18(%rsp) movq -0x18(%rsp), %rax cmpq (%rcx), %rax jae 0x25170 movq -0x20(%rsp), %rax movq 0x8(%rax), %rcx addq $0x1, %rcx movq %rcx, 0x8(%rax) movq -0x20(%rsp), %rax movq -0x18(%rsp), %rcx movq %rcx, (%rax) retq nop
_ZN6google8protobuf7uint128pLERKS1_: mov [rsp+var_8], rdi mov [rsp+var_10], rsi mov rcx, [rsp+var_8] mov [rsp+var_20], rcx mov rax, [rsp+var_10] mov rax, [rax+8] add rax, [rcx+8] mov [rcx+8], rax mov rax, [rcx] mov rdx, [rsp+var_10] add rax, [rdx] mov [rsp+var_18], rax mov rax, [rsp+var_18] cmp rax, [rcx] jnb short loc_25170 mov rax, [rsp+var_20] mov rcx, [rax+8] add rcx, 1 mov [rax+8], rcx loc_25170: mov rax, [rsp+var_20] mov rcx, [rsp+var_18] mov [rax], rcx retn
unsigned long long * google::protobuf::uint128::operator+=(unsigned long long *a1, _QWORD *a2) { unsigned long long *result; // rax unsigned long long v3; // [rsp+8h] [rbp-18h] a1[1] += a2[1]; v3 = *a2 + *a1; if ( v3 < *a1 ) ++a1[1]; result = a1; *a1 = v3; return result; }
operator+=: MOV qword ptr [RSP + -0x8],RDI MOV qword ptr [RSP + -0x10],RSI MOV RCX,qword ptr [RSP + -0x8] MOV qword ptr [RSP + -0x20],RCX MOV RAX,qword ptr [RSP + -0x10] MOV RAX,qword ptr [RAX + 0x8] ADD RAX,qword ptr [RCX + 0x8] MOV qword ptr [RCX + 0x8],RAX MOV RAX,qword ptr [RCX] MOV RDX,qword ptr [RSP + -0x10] ADD RAX,qword ptr [RDX] MOV qword ptr [RSP + -0x18],RAX MOV RAX,qword ptr [RSP + -0x18] CMP RAX,qword ptr [RCX] JNC 0x00125170 MOV RAX,qword ptr [RSP + -0x20] MOV RCX,qword ptr [RAX + 0x8] ADD RCX,0x1 MOV qword ptr [RAX + 0x8],RCX LAB_00125170: MOV RAX,qword ptr [RSP + -0x20] MOV RCX,qword ptr [RSP + -0x18] MOV qword ptr [RAX],RCX RET
/* google::protobuf::uint128::TEMPNAMEPLACEHOLDERVALUE(google::protobuf::uint128 const&) */ void __thiscall google::protobuf::uint128::operator+=(uint128 *this,uint128 *param_1) { long lVar1; *(long *)(this + 8) = *(long *)(param_1 + 8) + *(long *)(this + 8); lVar1 = *(long *)param_1; if ((ulong)(*(long *)this + lVar1) < *(ulong *)this) { *(long *)(this + 8) = *(long *)(this + 8) + 1; } *(long *)this = *(long *)this + lVar1; return; }
27,633
R3D_GetLightAttenuation
r3d/src/r3d_lighting.c
float R3D_GetLightAttenuation(R3D_Light id) { r3d_get_and_check_light(light, id, 0); return 1.0f / light->attenuation; }
O3
c
R3D_GetLightAttenuation: movl %edi, %edx testl %edi, %edi je 0xbe2ac leaq 0xf197e(%rip), %rax # 0x1afbf0 cmpl %edx, 0x168(%rax) jbe 0xbe2ac movq 0x128(%rax), %rsi leal -0x1(%rdx), %ecx cmpb $0x1, (%rsi,%rcx) jne 0xbe2ac movq 0x108(%rax), %rsi cmpq %rcx, 0x110(%rax) setbe %dil testq %rsi, %rsi sete %r8b orb %dil, %r8b cmpb $0x1, %r8b jne 0xbe2c8 pushq %rbp movq %rsp, %rbp leaq 0x53b26(%rip), %rsi # 0x111ddd movl $0x5, %edi xorl %eax, %eax callq 0xa9b51 xorps %xmm0, %xmm0 popq %rbp retq imulq 0x120(%rax), %rcx movss 0x23d38(%rip), %xmm0 # 0xe2010 divss 0xa4(%rsi,%rcx), %xmm0 retq
R3D_GetLightAttenuation: mov edx, edi test edi, edi jz short loc_BE2AC lea rax, R3D cmp [rax+168h], edx jbe short loc_BE2AC mov rsi, [rax+128h] lea ecx, [rdx-1] cmp byte ptr [rsi+rcx], 1 jnz short loc_BE2AC mov rsi, [rax+108h] cmp [rax+110h], rcx setbe dil test rsi, rsi setz r8b or r8b, dil cmp r8b, 1 jnz short loc_BE2C8 loc_BE2AC: push rbp mov rbp, rsp lea rsi, aLightIdIIsNotV; "Light [ID %i] is not valid" mov edi, 5 xor eax, eax call TraceLog xorps xmm0, xmm0 pop rbp retn loc_BE2C8: imul rcx, [rax+120h] movss xmm0, cs:dword_E2010 divss xmm0, dword ptr [rsi+rcx+0A4h] retn
float R3D_GetLightAttenuation(unsigned int a1) { unsigned long long v1; // rcx long long v2; // rsi if ( a1 ) { if ( *((_DWORD *)&R3D + 90) > a1 ) { v1 = a1 - 1; if ( *(_BYTE *)(*((_QWORD *)&R3D + 37) + v1) == 1 ) { v2 = *((_QWORD *)&R3D + 33); if ( *((_QWORD *)&R3D + 34) > v1 && v2 != 0 ) return 1.0 / *(float *)(v2 + *((_QWORD *)&R3D + 36) * v1 + 164); } } } TraceLog(5, (long long)"Light [ID %i] is not valid", a1); return 0.0; }
R3D_GetLightAttenuation: MOV EDX,EDI TEST EDI,EDI JZ 0x001be2ac LEA RAX,[0x2afbf0] CMP dword ptr [RAX + 0x168],EDX JBE 0x001be2ac MOV RSI,qword ptr [RAX + 0x128] LEA ECX,[RDX + -0x1] CMP byte ptr [RSI + RCX*0x1],0x1 JNZ 0x001be2ac MOV RSI,qword ptr [RAX + 0x108] CMP qword ptr [RAX + 0x110],RCX SETBE DIL TEST RSI,RSI SETZ R8B OR R8B,DIL CMP R8B,0x1 JNZ 0x001be2c8 LAB_001be2ac: PUSH RBP MOV RBP,RSP LEA RSI,[0x211ddd] MOV EDI,0x5 XOR EAX,EAX CALL 0x001a9b51 XORPS XMM0,XMM0 POP RBP RET LAB_001be2c8: IMUL RCX,qword ptr [RAX + 0x120] MOVSS XMM0,dword ptr [0x001e2010] DIVSS XMM0,dword ptr [RSI + RCX*0x1 + 0xa4] RET
float R3D_GetLightAttenuation(uint param_1) { ulong uVar1; if (((param_1 != 0) && (param_1 < DAT_002afd58)) && (uVar1 = (ulong)(param_1 - 1), *(char *)(DAT_002afd18 + uVar1) == '\x01')) { if (DAT_002afcf8 != 0 && uVar1 < DAT_002afd00) { return DAT_001e2010 / *(float *)(DAT_002afcf8 + 0xa4 + uVar1 * DAT_002afd10); } } TraceLog(5,"Light [ID %i] is not valid"); return 0.0; }
27,634
mysql_local_infile_read
eloqsql/libmariadb/libmariadb/ma_loaddata.c
static int mysql_local_infile_read(void *ptr, char * buf, unsigned int buf_len) { MYSQL_INFILE_INFO *info = (MYSQL_INFILE_INFO *)ptr; size_t count; count= ma_read((void *)buf, 1, (size_t)buf_len, info->fp); if (count == (size_t)-1) { info->error_no = errno; snprintf((char *)info->error_msg, sizeof(info->error_msg), CER(CR_FILE_READ), info->filename, info->error_no); } return((int)count); }
O0
c
mysql_local_infile_read: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rdi movl -0x14(%rbp), %eax movl %eax, %edx movq -0x20(%rbp), %rax movq (%rax), %rcx movl $0x1, %esi callq 0x3e5e0 movq %rax, -0x28(%rbp) cmpq $-0x1, -0x28(%rbp) jne 0x35510 callq 0x13050 movl (%rax), %ecx movq -0x20(%rbp), %rax movl %ecx, 0x8(%rax) movq -0x20(%rbp), %rdi addq $0xc, %rdi leaq 0x350b3(%rip), %rax # 0x6a5a0 movq 0x28(%rax), %rdx movq -0x20(%rbp), %rax movq 0x210(%rax), %rcx movq -0x20(%rbp), %rax movl 0x8(%rax), %r8d movl $0x201, %esi # imm = 0x201 movb $0x0, %al callq 0x136d0 movq -0x28(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopw (%rax,%rax)
mysql_local_infile_read: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx mov rax, [rbp+var_8] mov [rbp+var_20], rax mov rdi, [rbp+var_10] mov eax, [rbp+var_14] mov edx, eax mov rax, [rbp+var_20] mov rcx, [rax] mov esi, 1 call ma_read mov [rbp+var_28], rax cmp [rbp+var_28], 0FFFFFFFFFFFFFFFFh jnz short loc_35510 call ___errno_location mov ecx, [rax] mov rax, [rbp+var_20] mov [rax+8], ecx mov rdi, [rbp+var_20] add rdi, 0Ch lea rax, mariadb_client_errors mov rdx, [rax+28h] mov rax, [rbp+var_20] mov rcx, [rax+210h] mov rax, [rbp+var_20] mov r8d, [rax+8] mov esi, 201h mov al, 0 call _snprintf loc_35510: mov rax, [rbp+var_28] add rsp, 30h pop rbp retn
long long mysql_local_infile_read(long long a1, long long a2, unsigned int a3) { long long v4; // [rsp+8h] [rbp-28h] v4 = ma_read(a2, 1LL, a3, *(_QWORD *)a1); if ( v4 == -1 ) { *(_DWORD *)(a1 + 8) = *(_DWORD *)__errno_location(); snprintf(a1 + 12, 513LL, mariadb_client_errors[5], *(_QWORD *)(a1 + 528), *(unsigned int *)(a1 + 8)); } return v4; }
mysql_local_infile_read: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x20],RAX MOV RDI,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RBP + -0x14] MOV EDX,EAX MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RAX] MOV ESI,0x1 CALL 0x0013e5e0 MOV qword ptr [RBP + -0x28],RAX CMP qword ptr [RBP + -0x28],-0x1 JNZ 0x00135510 CALL 0x00113050 MOV ECX,dword ptr [RAX] MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x8],ECX MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0xc LEA RAX,[0x16a5a0] MOV RDX,qword ptr [RAX + 0x28] MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RAX + 0x210] MOV RAX,qword ptr [RBP + -0x20] MOV R8D,dword ptr [RAX + 0x8] MOV ESI,0x201 MOV AL,0x0 CALL 0x001136d0 LAB_00135510: MOV RAX,qword ptr [RBP + -0x28] ADD RSP,0x30 POP RBP RET
long mysql_local_infile_read(int8 *param_1,int8 param_2,int4 param_3) { long lVar1; int *piVar2; lVar1 = ma_read(param_2,1,param_3,*param_1); if (lVar1 == -1) { piVar2 = __errno_location(); *(int *)(param_1 + 1) = *piVar2; snprintf((char *)((long)param_1 + 0xc),0x201,(char *)mariadb_client_errors._40_8_,param_1[0x42], (ulong)*(uint *)(param_1 + 1)); } return lVar1; }
27,635
minja::Value::set(minja::Value const&, minja::Value const&)
monkey531[P]llama/common/minja.hpp
void set(const Value& key, const Value& value) { if (!object_) throw std::runtime_error("Value is not an object: " + dump()); if (!key.is_hashable()) throw std::runtime_error("Unashable type: " + dump()); (*object_)[key.primitive_] = value; }
O3
cpp
minja::Value::set(minja::Value const&, minja::Value const&): pushq %rbp pushq %r14 pushq %rbx subq $0x40, %rsp movq %rdi, %r14 movq 0x20(%rdi), %rdi testq %rdi, %rdi je 0x93697 cmpq $0x0, 0x10(%rsi) jne 0x936f4 cmpq $0x0, 0x20(%rsi) jne 0x936f4 cmpq $0x0, 0x30(%rsi) jne 0x936f4 movq %rdx, %rbx addq $0x40, %rsi callq 0x93834 movq %rax, %r14 movq 0x10(%rbx), %rax movq %rax, 0x10(%r14) leaq 0x18(%r14), %rdi leaq 0x18(%rbx), %rsi callq 0x927bc movq 0x20(%rbx), %rax movq %rax, 0x20(%r14) leaq 0x28(%r14), %rdi leaq 0x28(%rbx), %rsi callq 0x927bc movq 0x30(%rbx), %rax movq %rax, 0x30(%r14) leaq 0x38(%r14), %rdi leaq 0x38(%rbx), %rsi callq 0x927bc addq $0x40, %rbx leaq 0x20(%rsp), %rdi movq %rbx, %rsi callq 0x6272a addq $0x40, %r14 leaq 0x20(%rsp), %rbx movq %r14, %rdi movq %rbx, %rsi callq 0x5feaa movq %rbx, %rdi xorl %esi, %esi callq 0x5d708 movq %rbx, %rdi callq 0x62bf6 addq $0x40, %rsp popq %rbx popq %r14 popq %rbp retq movl $0x10, %edi callq 0x1b480 movq %rax, %rbx movq %rsp, %rdi movq %r14, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0x8afc2 leaq 0x6198c(%rip), %rsi # 0xf5049 leaq 0x20(%rsp), %rdi movq %rsp, %rdx callq 0x7d841 movb $0x1, %bpl leaq 0x20(%rsp), %rsi movq %rbx, %rdi callq 0x1bf20 xorl %ebp, %ebp movq 0x9d905(%rip), %rsi # 0x130fe8 movq 0x9d866(%rip), %rdx # 0x130f50 movq %rbx, %rdi callq 0x1c040 jmp 0x9374f movl $0x10, %edi callq 0x1b480 movq %rax, %rbx movq %rsp, %rdi movq %r14, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0x8afc2 leaq 0x61948(%rip), %rsi # 0xf5062 leaq 0x20(%rsp), %rdi movq %rsp, %rdx callq 0x7d841 movb $0x1, %bpl leaq 0x20(%rsp), %rsi movq %rbx, %rdi callq 0x1bf20 xorl %ebp, %ebp movq 0x9d8a8(%rip), %rsi # 0x130fe8 movq 0x9d809(%rip), %rdx # 0x130f50 movq %rbx, %rdi callq 0x1c040 jmp 0x93753 jmp 0x93793 movq %rax, %r14 leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x93771 movq 0x30(%rsp), %rsi incq %rsi callq 0x1b930 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x9378c movq 0x10(%rsp), %rsi incq %rsi callq 0x1b930 testb %bpl, %bpl jne 0x937b8 jmp 0x937c0 movq %rax, %r14 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x937b8 movq 0x10(%rsp), %rsi incq %rsi callq 0x1b930 jmp 0x937b8 jmp 0x937b5 movq %rax, %r14 movq %rbx, %rdi callq 0x1b6c0 movq %r14, %rdi callq 0x1c0d0 movq %rax, %rdi callq 0x26123
_ZN5minja5Value3setERKS0_S2_: push rbp push r14 push rbx sub rsp, 40h mov r14, rdi mov rdi, [rdi+20h] test rdi, rdi jz loc_93697 cmp qword ptr [rsi+10h], 0 jnz loc_936F4 cmp qword ptr [rsi+20h], 0 jnz loc_936F4 cmp qword ptr [rsi+30h], 0 jnz loc_936F4 mov rbx, rdx add rsi, 40h ; '@' call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixERSJ_; 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>>>::operator[](nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) mov r14, rax mov rax, [rbx+10h] mov [r14+10h], rax lea rdi, [r14+18h] lea rsi, [rbx+18h] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEaSERKS2_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_count<(__gnu_cxx::_Lock_policy)2> const&) mov rax, [rbx+20h] mov [r14+20h], rax lea rdi, [r14+28h] lea rsi, [rbx+28h] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEaSERKS2_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_count<(__gnu_cxx::_Lock_policy)2> const&) mov rax, [rbx+30h] mov [r14+30h], rax lea rdi, [r14+38h] lea rsi, [rbx+38h] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEaSERKS2_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_count<(__gnu_cxx::_Lock_policy)2> const&) add rbx, 40h ; '@' lea rdi, [rsp+58h+var_38] mov rsi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) add r14, 40h ; '@' lea rbx, [rsp+58h+var_38] mov rdi, r14 mov rsi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, rbx xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add rsp, 40h pop rbx pop r14 pop rbp retn loc_93697: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, rsp mov rsi, r14 mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aValueIsNotAnOb; "Value is not an object: " lea rdi, [rsp+58h+var_38] mov rdx, rsp call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 lea rsi, [rsp+58h+var_38] mov rdi, rbx call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw jmp short loc_9374F loc_936F4: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, rsp mov rsi, r14 mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aUnashableType; "Unashable type: " lea rdi, [rsp+58h+var_38] mov rdx, rsp call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 lea rsi, [rsp+58h+var_38] mov rdi, rbx call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw loc_9374F: jmp short loc_93753 jmp short loc_93793 loc_93753: mov r14, rax lea rax, [rsp+58h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_93771 mov rsi, [rsp+58h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_93771: lea rax, [rsp+58h+var_48] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_9378C mov rsi, [rsp+58h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_9378C: test bpl, bpl jnz short loc_937B8 jmp short loc_937C0 loc_93793: mov r14, rax lea rax, [rsp+58h+var_48] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_937B8 mov rsi, [rsp+58h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_937B8 jmp short $+2 loc_937B5: mov r14, rax loc_937B8: mov rdi, rbx; void * call ___cxa_free_exception loc_937C0: mov rdi, r14 call __Unwind_Resume mov rdi, rax call __clang_call_terminate
long long minja::Value::set(minja::Value *this, const minja::Value *a2, const minja::Value *a3) { long long v4; // rdi long long v6; // r14 void *exception; // rbx void *v9; // rbx _BYTE v10[16]; // [rsp+0h] [rbp-58h] BYREF unsigned __int8 v11[16]; // [rsp+20h] [rbp-38h] BYREF v4 = *((_QWORD *)this + 4); if ( !v4 ) { exception = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v10, (long long)this, 0xFFFFFFFF, 0); std::operator+<char>((long long)v11, (long long)"Value is not an object: ", (long long)v10); std::runtime_error::runtime_error(exception, v11); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } if ( *((_QWORD *)a2 + 2) || *((_QWORD *)a2 + 4) || *((_QWORD *)a2 + 6) ) { v9 = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v10, (long long)this, 0xFFFFFFFF, 0); std::operator+<char>((long long)v11, (long long)"Unashable type: ", (long long)v10); std::runtime_error::runtime_error(v9, v11); __cxa_throw( v9, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v6 = 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[]( v4, (char *)a2 + 64); *(_QWORD *)(v6 + 16) = *((_QWORD *)a3 + 2); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=( (volatile signed __int32 **)(v6 + 24), (volatile signed __int32 **)a3 + 3); *(_QWORD *)(v6 + 32) = *((_QWORD *)a3 + 4); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=( (volatile signed __int32 **)(v6 + 40), (volatile signed __int32 **)a3 + 5); *(_QWORD *)(v6 + 48) = *((_QWORD *)a3 + 6); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=( (volatile signed __int32 **)(v6 + 56), (volatile signed __int32 **)a3 + 7); 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( v11, (unsigned __int8 *)a3 + 64); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=( v6 + 64, (long long)v11); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v11); return nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v11); }
set: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x40 MOV R14,RDI MOV RDI,qword ptr [RDI + 0x20] TEST RDI,RDI JZ 0x00193697 CMP qword ptr [RSI + 0x10],0x0 JNZ 0x001936f4 CMP qword ptr [RSI + 0x20],0x0 JNZ 0x001936f4 CMP qword ptr [RSI + 0x30],0x0 JNZ 0x001936f4 MOV RBX,RDX ADD RSI,0x40 CALL 0x00193834 MOV R14,RAX MOV RAX,qword ptr [RBX + 0x10] MOV qword ptr [R14 + 0x10],RAX LEA RDI,[R14 + 0x18] LEA RSI,[RBX + 0x18] CALL 0x001927bc MOV RAX,qword ptr [RBX + 0x20] MOV qword ptr [R14 + 0x20],RAX LEA RDI,[R14 + 0x28] LEA RSI,[RBX + 0x28] CALL 0x001927bc MOV RAX,qword ptr [RBX + 0x30] MOV qword ptr [R14 + 0x30],RAX LEA RDI,[R14 + 0x38] LEA RSI,[RBX + 0x38] CALL 0x001927bc ADD RBX,0x40 LAB_0019365b: LEA RDI,[RSP + 0x20] MOV RSI,RBX CALL 0x0016272a LAB_00193668: ADD R14,0x40 LEA RBX,[RSP + 0x20] MOV RDI,R14 MOV RSI,RBX CALL 0x0015feaa MOV RDI,RBX XOR ESI,ESI CALL 0x0015d708 MOV RDI,RBX CALL 0x00162bf6 ADD RSP,0x40 POP RBX POP R14 POP RBP RET LAB_00193697: MOV EDI,0x10 CALL 0x0011b480 MOV RBX,RAX LAB_001936a4: MOV RDI,RSP MOV RSI,R14 MOV EDX,0xffffffff XOR ECX,ECX CALL 0x0018afc2 LAB_001936b6: LEA RSI,[0x1f5049] LEA RDI,[RSP + 0x20] MOV RDX,RSP CALL 0x0017d841 MOV BPL,0x1 LAB_001936cd: LEA RSI,[RSP + 0x20] MOV RDI,RBX CALL 0x0011bf20 XOR EBP,EBP MOV RSI,qword ptr [0x00230fe8] MOV RDX,qword ptr [0x00230f50] MOV RDI,RBX CALL 0x0011c040 LAB_001936f4: MOV EDI,0x10 CALL 0x0011b480 MOV RBX,RAX LAB_00193701: MOV RDI,RSP MOV RSI,R14 MOV EDX,0xffffffff XOR ECX,ECX CALL 0x0018afc2 LAB_00193713: LEA RSI,[0x1f5062] LEA RDI,[RSP + 0x20] MOV RDX,RSP CALL 0x0017d841 MOV BPL,0x1 LAB_0019372a: LEA RSI,[RSP + 0x20] MOV RDI,RBX CALL 0x0011bf20 XOR EBP,EBP MOV RSI,qword ptr [0x00230fe8] MOV RDX,qword ptr [0x00230f50] MOV RDI,RBX CALL 0x0011c040
/* minja::Value::set(minja::Value const&, minja::Value const&) */ void __thiscall minja::Value::set(Value *this,Value *param_1,Value *param_2) { long lVar1; runtime_error *prVar2; int1 auStack_58 [32]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_38 [32]; if (*(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 + 0x20) == (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>>> *)0x0) { prVar2 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001936a4 to 001936b5 has its CatchHandler @ 001937b5 */ dump_abi_cxx11_((int)auStack_58,SUB81(this,0)); /* try { // try from 001936b6 to 001936c9 has its CatchHandler @ 00193793 */ std::operator+((char *)local_38,(string *)"Value is not an object: "); /* try { // try from 001936cd to 001936f1 has its CatchHandler @ 00193753 */ std::runtime_error::runtime_error(prVar2,(string *)local_38); /* WARNING: Subroutine does not return */ __cxa_throw(prVar2,PTR_typeinfo_00230fe8,PTR__runtime_error_00230f50); } if (((*(long *)(param_1 + 0x10) == 0) && (*(long *)(param_1 + 0x20) == 0)) && (*(long *)(param_1 + 0x30) == 0)) { lVar1 = 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 + 0x20),(basic_json *)(param_1 + 0x40)); *(int8 *)(lVar1 + 0x10) = *(int8 *)(param_2 + 0x10); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator= ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(lVar1 + 0x18), (__shared_count *)(param_2 + 0x18)); *(int8 *)(lVar1 + 0x20) = *(int8 *)(param_2 + 0x20); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator= ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(lVar1 + 0x28), (__shared_count *)(param_2 + 0x28)); *(int8 *)(lVar1 + 0x30) = *(int8 *)(param_2 + 0x30); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator= ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(lVar1 + 0x38), (__shared_count *)(param_2 + 0x38)); /* try { // try from 0019365b to 00193667 has its CatchHandler @ 001937c8 */ 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(local_38,(basic_json *)(param_2 + 0x40)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)(lVar1 + 0x40),(data *)local_38); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81((data *)local_38,0)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)local_38); return; } prVar2 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00193701 to 00193712 has its CatchHandler @ 001937b3 */ dump_abi_cxx11_((int)auStack_58,SUB81(this,0)); /* try { // try from 00193713 to 00193726 has its CatchHandler @ 00193751 */ std::operator+((char *)local_38,(string *)"Unashable type: "); /* try { // try from 0019372a to 0019374e has its CatchHandler @ 0019374f */ std::runtime_error::runtime_error(prVar2,(string *)local_38); /* WARNING: Subroutine does not return */ __cxa_throw(prVar2,PTR_typeinfo_00230fe8,PTR__runtime_error_00230f50); }
27,636
iplist_generate
xtate/src/generate-modules/ip-list-gen.c
Target iplist_generate(unsigned tx_index, uint64_t index, uint64_t repeat, struct source_t *src) { Target target; uint64_t xXx = iplist_conf.index; uint64_t ck; /*Actually it is impossible*/ while (xXx >= iplist_conf.count_ports) { xXx -= iplist_conf.count_ports; } if (!iplist_conf.no_random) xXx = blackrock1_shuffle(&iplist_conf.br_table, xXx); /** * Pick up target & source */ target.ip_them = iplist_conf.ip; target.port_them = rangelist_pick(&iplist_conf.ports, xXx); target.ip_proto = get_actual_proto_port(&target.port_them); if (iplist_conf.ip.version == 4) { target.ip_me.version = 4; if (src->ipv4_mask > 1 || src->port_mask > 1) { ck = get_cookie_ipv4( (unsigned)(index + repeat), (unsigned)((index + repeat) >> 32), (unsigned)xXx, (unsigned)(xXx >> 32), iplist_conf.seed); target.port_me = src->port + (ck & src->port_mask); target.ip_me.ipv4 = src->ipv4 + ((ck >> 16) & src->ipv4_mask); } else { target.port_me = src->port; target.ip_me.ipv4 = src->ipv4; } } else { target.ip_me.version = 6; target.ip_me.ipv6 = src->ipv6; if (src->ipv6_mask > 1 || src->port_mask > 1) { ck = get_cookie_ipv4( (unsigned)(index + repeat), (unsigned)((index + repeat) >> 32), (unsigned)xXx, (unsigned)(xXx >> 32), iplist_conf.seed); target.port_me = src->port + (ck & src->port_mask); target.ip_me.ipv6.lo += (ck & src->ipv6_mask); } else { target.port_me = src->port; } } iplist_conf.index++; return target; }
O3
c
iplist_generate: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %r8, %r14 movq %rcx, %r15 movq %rdx, %r13 movq %rdi, %rbx movq 0x182b98(%rip), %rax # 0x1a30b8 movq 0x182b99(%rip), %rcx # 0x1a30c0 leaq (%rcx,%rax), %r12 movq %rax, %rsi subq %rcx, %r12 subq %rcx, %rax jae 0x2052b testb $0x1, 0x182bd7(%rip) # 0x1a3114 jne 0x2054e leaq 0x182b82(%rip), %rdi # 0x1a30c8 callq 0x1a446 movq %rax, %r12 movq 0x182b3b(%rip), %rax # 0x1a3090 movq %rax, 0x18(%rbx) movups 0x182b20(%rip), %xmm0 # 0x1a3080 movups %xmm0, 0x8(%rbx) leaq 0x182b2d(%rip), %rdi # 0x1a3098 movq %r12, %rsi callq 0x4722b leaq 0x38(%rbx), %rdi movl %eax, 0x38(%rbx) callq 0x46824 movzwl %ax, %eax movl %eax, (%rbx) cmpb $0x4, 0x182b05(%rip) # 0x1a3090 jne 0x205e3 movb $0x4, 0x30(%rbx) cmpl $0x1, 0x4(%r14) ja 0x205a3 cmpl $0x2, 0xc(%r14) jb 0x2063b addq %r13, %r15 movq %r15, %rsi shrq $0x20, %rsi movq %r12, %rcx shrq $0x20, %rcx movq 0x182abd(%rip), %r8 # 0x1a3078 movl %r15d, %edi movl %r12d, %edx callq 0x43e74 movl 0xc(%r14), %ecx andl %eax, %ecx addl 0x8(%r14), %ecx movl %ecx, 0x3c(%rbx) shrq $0x10, %rax andl 0x4(%r14), %eax addl (%r14), %eax movl %eax, 0x20(%rbx) jmp 0x20651 leaq 0x20(%rbx), %rax movb $0x6, 0x30(%rbx) movups 0x10(%r14), %xmm0 movups %xmm0, (%rax) cmpq $0x1, 0x20(%r14) ja 0x20601 cmpl $0x2, 0xc(%r14) jb 0x2064a addq %r13, %r15 movq %r15, %rsi shrq $0x20, %rsi movq %r12, %rcx shrq $0x20, %rcx movq 0x182a5f(%rip), %r8 # 0x1a3078 movl %r15d, %edi movl %r12d, %edx callq 0x43e74 movl 0xc(%r14), %ecx andl %eax, %ecx addl 0x8(%r14), %ecx movl %ecx, 0x3c(%rbx) andq 0x20(%r14), %rax addq %rax, 0x28(%rbx) jmp 0x20651 movl 0x8(%r14), %eax movl %eax, 0x3c(%rbx) movl (%r14), %eax movl %eax, 0x20(%rbx) jmp 0x20651 movl 0x8(%r14), %eax movl %eax, 0x3c(%rbx) incq 0x182a60(%rip) # 0x1a30b8 movq %rbx, %rax popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq
iplist_generate: push r15 push r14 push r13 push r12 push rbx mov r14, r8 mov r15, rcx mov r13, rdx mov rbx, rdi mov rax, cs:qword_1A30B8 mov rcx, cs:qword_1A30C0 lea r12, [rcx+rax] loc_2052B: mov rsi, rax sub r12, rcx sub rax, rcx jnb short loc_2052B test cs:byte_1A3114, 1 jnz short loc_2054E lea rdi, unk_1A30C8 call blackrock1_shuffle mov r12, rax loc_2054E: mov rax, cs:qword_1A3090 mov [rbx+18h], rax movups xmm0, cs:xmmword_1A3080 movups xmmword ptr [rbx+8], xmm0 lea rdi, unk_1A3098 mov rsi, r12 call rangelist_pick lea rdi, [rbx+38h] mov [rbx+38h], eax call get_actual_proto_port movzx eax, ax mov [rbx], eax cmp byte ptr cs:qword_1A3090, 4 jnz short loc_205E3 mov byte ptr [rbx+30h], 4 cmp dword ptr [r14+4], 1 ja short loc_205A3 cmp dword ptr [r14+0Ch], 2 jb loc_2063B loc_205A3: add r15, r13 mov rsi, r15 shr rsi, 20h mov rcx, r12 shr rcx, 20h mov r8, cs:qword_1A3078 mov edi, r15d mov edx, r12d call get_cookie_ipv4 mov ecx, [r14+0Ch] and ecx, eax add ecx, [r14+8] mov [rbx+3Ch], ecx shr rax, 10h and eax, [r14+4] add eax, [r14] mov [rbx+20h], eax jmp short loc_20651 loc_205E3: lea rax, [rbx+20h] mov byte ptr [rbx+30h], 6 movups xmm0, xmmword ptr [r14+10h] movups xmmword ptr [rax], xmm0 cmp qword ptr [r14+20h], 1 ja short loc_20601 cmp dword ptr [r14+0Ch], 2 jb short loc_2064A loc_20601: add r15, r13 mov rsi, r15 shr rsi, 20h mov rcx, r12 shr rcx, 20h mov r8, cs:qword_1A3078 mov edi, r15d mov edx, r12d call get_cookie_ipv4 mov ecx, [r14+0Ch] and ecx, eax add ecx, [r14+8] mov [rbx+3Ch], ecx and rax, [r14+20h] add [rbx+28h], rax jmp short loc_20651 loc_2063B: mov eax, [r14+8] mov [rbx+3Ch], eax mov eax, [r14] mov [rbx+20h], eax jmp short loc_20651 loc_2064A: mov eax, [r14+8] mov [rbx+3Ch], eax loc_20651: inc cs:qword_1A30B8 mov rax, rbx pop rbx pop r12 pop r13 pop r14 pop r15 retn
long long iplist_generate(long long a1, long long a2, long long a3, long long a4, long long a5) { unsigned long long v8; // rax unsigned long long v9; // r12 long long v10; // rsi bool v11; // cf unsigned long long cookie_ipv4; // rax long long v13; // rax v8 = qword_1A30B8; v9 = qword_1A30C0 + qword_1A30B8; do { v10 = v8; v9 -= qword_1A30C0; v11 = v8 < qword_1A30C0; v8 -= qword_1A30C0; } while ( !v11 ); if ( (byte_1A3114 & 1) == 0 ) v9 = blackrock1_shuffle((long long)&unk_1A30C8, v10); *(_QWORD *)(a1 + 24) = qword_1A3090; *(_OWORD *)(a1 + 8) = xmmword_1A3080; *(_DWORD *)(a1 + 56) = rangelist_pick(&unk_1A3098, v9, a3); *(_DWORD *)a1 = (unsigned __int16)get_actual_proto_port(a1 + 56); if ( (_BYTE)qword_1A3090 == 4 ) { *(_BYTE *)(a1 + 48) = 4; if ( *(_DWORD *)(a5 + 4) <= 1u && *(_DWORD *)(a5 + 12) < 2u ) { *(_DWORD *)(a1 + 60) = *(_DWORD *)(a5 + 8); *(_DWORD *)(a1 + 32) = *(_DWORD *)a5; } else { cookie_ipv4 = get_cookie_ipv4( (unsigned int)(a3 + a4), (unsigned long long)(a3 + a4) >> 32, (unsigned int)v9, HIDWORD(v9), qword_1A3078); *(_DWORD *)(a1 + 60) = *(_DWORD *)(a5 + 8) + (cookie_ipv4 & *(_DWORD *)(a5 + 12)); *(_DWORD *)(a1 + 32) = *(_DWORD *)a5 + (*(_DWORD *)(a5 + 4) & (cookie_ipv4 >> 16)); } } else { *(_BYTE *)(a1 + 48) = 6; *(_OWORD *)(a1 + 32) = *(_OWORD *)(a5 + 16); if ( *(_QWORD *)(a5 + 32) <= 1uLL && *(_DWORD *)(a5 + 12) < 2u ) { *(_DWORD *)(a1 + 60) = *(_DWORD *)(a5 + 8); } else { v13 = get_cookie_ipv4( (unsigned int)(a3 + a4), (unsigned long long)(a3 + a4) >> 32, (unsigned int)v9, HIDWORD(v9), qword_1A3078); *(_DWORD *)(a1 + 60) = *(_DWORD *)(a5 + 8) + (v13 & *(_DWORD *)(a5 + 12)); *(_QWORD *)(a1 + 40) += *(_QWORD *)(a5 + 32) & v13; } } ++qword_1A30B8; return a1; }
iplist_generate: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX MOV R14,R8 MOV R15,RCX MOV R13,RDX MOV RBX,RDI MOV RAX,qword ptr [0x002a30b8] MOV RCX,qword ptr [0x002a30c0] LEA R12,[RCX + RAX*0x1] LAB_0012052b: MOV RSI,RAX SUB R12,RCX SUB RAX,RCX JNC 0x0012052b TEST byte ptr [0x002a3114],0x1 JNZ 0x0012054e LEA RDI,[0x2a30c8] CALL 0x0011a446 MOV R12,RAX LAB_0012054e: MOV RAX,qword ptr [0x002a3090] MOV qword ptr [RBX + 0x18],RAX MOVUPS XMM0,xmmword ptr [0x002a3080] MOVUPS xmmword ptr [RBX + 0x8],XMM0 LEA RDI,[0x2a3098] MOV RSI,R12 CALL 0x0014722b LEA RDI,[RBX + 0x38] MOV dword ptr [RBX + 0x38],EAX CALL 0x00146824 MOVZX EAX,AX MOV dword ptr [RBX],EAX CMP byte ptr [0x002a3090],0x4 JNZ 0x001205e3 MOV byte ptr [RBX + 0x30],0x4 CMP dword ptr [R14 + 0x4],0x1 JA 0x001205a3 CMP dword ptr [R14 + 0xc],0x2 JC 0x0012063b LAB_001205a3: ADD R15,R13 MOV RSI,R15 SHR RSI,0x20 MOV RCX,R12 SHR RCX,0x20 MOV R8,qword ptr [0x002a3078] MOV EDI,R15D MOV EDX,R12D CALL 0x00143e74 MOV ECX,dword ptr [R14 + 0xc] AND ECX,EAX ADD ECX,dword ptr [R14 + 0x8] MOV dword ptr [RBX + 0x3c],ECX SHR RAX,0x10 AND EAX,dword ptr [R14 + 0x4] ADD EAX,dword ptr [R14] MOV dword ptr [RBX + 0x20],EAX JMP 0x00120651 LAB_001205e3: LEA RAX,[RBX + 0x20] MOV byte ptr [RBX + 0x30],0x6 MOVUPS XMM0,xmmword ptr [R14 + 0x10] MOVUPS xmmword ptr [RAX],XMM0 CMP qword ptr [R14 + 0x20],0x1 JA 0x00120601 CMP dword ptr [R14 + 0xc],0x2 JC 0x0012064a LAB_00120601: ADD R15,R13 MOV RSI,R15 SHR RSI,0x20 MOV RCX,R12 SHR RCX,0x20 MOV R8,qword ptr [0x002a3078] MOV EDI,R15D MOV EDX,R12D CALL 0x00143e74 MOV ECX,dword ptr [R14 + 0xc] AND ECX,EAX ADD ECX,dword ptr [R14 + 0x8] MOV dword ptr [RBX + 0x3c],ECX AND RAX,qword ptr [R14 + 0x20] ADD qword ptr [RBX + 0x28],RAX JMP 0x00120651 LAB_0012063b: MOV EAX,dword ptr [R14 + 0x8] MOV dword ptr [RBX + 0x3c],EAX MOV EAX,dword ptr [R14] MOV dword ptr [RBX + 0x20],EAX JMP 0x00120651 LAB_0012064a: MOV EAX,dword ptr [R14 + 0x8] MOV dword ptr [RBX + 0x3c],EAX LAB_00120651: INC qword ptr [0x002a30b8] MOV RAX,RBX POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ uint * iplist_generate(uint *param_1,int8 param_2,long param_3,long param_4,uint *param_5) { uint uVar1; uint uVar2; ulong uVar3; ushort uVar4; uint uVar5; ulong uVar6; int8 uVar7; ulong uVar8; uVar8 = DAT_002a30c0 + DAT_002a30b8; uVar3 = DAT_002a30b8; do { uVar6 = uVar3; uVar8 = uVar8 - DAT_002a30c0; uVar3 = uVar6 - DAT_002a30c0; } while (DAT_002a30c0 <= uVar6); if ((DAT_002a3114 & 1) == 0) { uVar8 = blackrock1_shuffle(&DAT_002a30c8,uVar6); } *(ulong *)(param_1 + 6) = CONCAT71(DAT_002a3090._1_7_,(char)DAT_002a3090); uVar2 = uRam00000000002a308c; uVar1 = uRam00000000002a3088; uVar5 = uRam00000000002a3084; param_1[2] = _DAT_002a3080; param_1[3] = uVar5; param_1[4] = uVar1; param_1[5] = uVar2; uVar5 = rangelist_pick(&DAT_002a3098,uVar8); param_1[0xe] = uVar5; uVar4 = get_actual_proto_port(param_1 + 0xe); *param_1 = (uint)uVar4; if ((char)DAT_002a3090 == '\x04') { *(int1 *)(param_1 + 0xc) = 4; if ((param_5[1] < 2) && (param_5[3] < 2)) { param_1[0xf] = param_5[2]; param_1[8] = *param_5; } else { uVar7 = get_cookie_ipv4(param_4 + param_3 & 0xffffffff,(ulong)(param_4 + param_3) >> 0x20, uVar8 & 0xffffffff,uVar8 >> 0x20,DAT_002a3078); param_1[0xf] = (param_5[3] & (uint)uVar7) + param_5[2]; param_1[8] = ((uint)((ulong)uVar7 >> 0x10) & param_5[1]) + *param_5; } } else { *(int1 *)(param_1 + 0xc) = 6; uVar5 = param_5[5]; uVar1 = param_5[6]; uVar2 = param_5[7]; param_1[8] = param_5[4]; param_1[9] = uVar5; param_1[10] = uVar1; param_1[0xb] = uVar2; if ((*(ulong *)(param_5 + 8) < 2) && (param_5[3] < 2)) { param_1[0xf] = param_5[2]; } else { uVar8 = get_cookie_ipv4(param_4 + param_3 & 0xffffffff,(ulong)(param_4 + param_3) >> 0x20, uVar8 & 0xffffffff,uVar8 >> 0x20,DAT_002a3078); param_1[0xf] = (param_5[3] & (uint)uVar8) + param_5[2]; *(ulong *)(param_1 + 10) = *(long *)(param_1 + 10) + (uVar8 & *(ulong *)(param_5 + 8)); } } DAT_002a30b8 = DAT_002a30b8 + 1; return param_1; }
27,637
ggml_backend_view_init
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp
void ggml_backend_view_init(struct ggml_tensor * tensor) { GGML_ASSERT(tensor->buffer == NULL); GGML_ASSERT(tensor->view_src != NULL); GGML_ASSERT(tensor->view_src->buffer != NULL); GGML_ASSERT(tensor->view_src->data != NULL); tensor->buffer = tensor->view_src->buffer; tensor->data = (char *)tensor->view_src->data + tensor->view_offs; ggml_backend_buffer_init_tensor(tensor->buffer, tensor); }
O0
cpp
ggml_backend_view_init: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax cmpq $0x0, 0x8(%rax) je 0x62518 leaq 0x52719(%rip), %rdi # 0xb4c17 movl $0x66d, %esi # imm = 0x66D leaq 0x4f0ff(%rip), %rdx # 0xb1609 leaq 0x52c9f(%rip), %rcx # 0xb51b0 movb $0x0, %al callq 0x48a00 movq -0x8(%rbp), %rax cmpq $0x0, 0xe8(%rax) jne 0x62547 leaq 0x526ea(%rip), %rdi # 0xb4c17 movl $0x66e, %esi # imm = 0x66E leaq 0x4f0d0(%rip), %rdx # 0xb1609 leaq 0x52c87(%rip), %rcx # 0xb51c7 movb $0x0, %al callq 0x48a00 movq -0x8(%rbp), %rax movq 0xe8(%rax), %rax cmpq $0x0, 0x8(%rax) jne 0x6257a leaq 0x526b7(%rip), %rdi # 0xb4c17 movl $0x66f, %esi # imm = 0x66F leaq 0x4f09d(%rip), %rdx # 0xb1609 leaq 0x52c6d(%rip), %rcx # 0xb51e0 movb $0x0, %al callq 0x48a00 movq -0x8(%rbp), %rax movq 0xe8(%rax), %rax cmpq $0x0, 0xf8(%rax) jne 0x625b0 leaq 0x52681(%rip), %rdi # 0xb4c17 movl $0x670, %esi # imm = 0x670 leaq 0x4f067(%rip), %rdx # 0xb1609 leaq 0x52c58(%rip), %rcx # 0xb5201 movb $0x0, %al callq 0x48a00 movq -0x8(%rbp), %rax movq 0xe8(%rax), %rax movq 0x8(%rax), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x8(%rbp), %rax movq 0xe8(%rax), %rax movq 0xf8(%rax), %rcx movq -0x8(%rbp), %rax addq 0xf0(%rax), %rcx movq -0x8(%rbp), %rax movq %rcx, 0xf8(%rax) movq -0x8(%rbp), %rax movq 0x8(%rax), %rdi movq -0x8(%rbp), %rsi callq 0x45710 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
ggml_backend_view_init: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rax, [rbp+var_8] cmp qword ptr [rax+8], 0 jz short loc_62518 lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... mov esi, 66Dh lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTensorBufferNu; "tensor->buffer == NULL" mov al, 0 call _ggml_abort loc_62518: mov rax, [rbp+var_8] cmp qword ptr [rax+0E8h], 0 jnz short loc_62547 lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... mov esi, 66Eh lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTensorViewSrcN; "tensor->view_src != NULL" mov al, 0 call _ggml_abort loc_62547: mov rax, [rbp+var_8] mov rax, [rax+0E8h] cmp qword ptr [rax+8], 0 jnz short loc_6257A lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... mov esi, 66Fh lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTensorViewSrcB; "tensor->view_src->buffer != NULL" mov al, 0 call _ggml_abort loc_6257A: mov rax, [rbp+var_8] mov rax, [rax+0E8h] cmp qword ptr [rax+0F8h], 0 jnz short loc_625B0 lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... mov esi, 670h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTensorViewSrcD; "tensor->view_src->data != NULL" mov al, 0 call _ggml_abort loc_625B0: mov rax, [rbp+var_8] mov rax, [rax+0E8h] mov rcx, [rax+8] mov rax, [rbp+var_8] mov [rax+8], rcx mov rax, [rbp+var_8] mov rax, [rax+0E8h] mov rcx, [rax+0F8h] mov rax, [rbp+var_8] add rcx, [rax+0F0h] mov rax, [rbp+var_8] mov [rax+0F8h], rcx mov rax, [rbp+var_8] mov rdi, [rax+8] mov rsi, [rbp+var_8] call _ggml_backend_buffer_init_tensor add rsp, 10h pop rbp retn
long long ggml_backend_view_init(long long *a1) { if ( a1[1] ) ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp", 1645, (long long)"GGML_ASSERT(%s) failed", "tensor->buffer == NULL"); if ( !a1[29] ) ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp", 1646, (long long)"GGML_ASSERT(%s) failed", "tensor->view_src != NULL"); if ( !*(_QWORD *)(a1[29] + 8) ) ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp", 1647, (long long)"GGML_ASSERT(%s) failed", "tensor->view_src->buffer != NULL"); if ( !*(_QWORD *)(a1[29] + 248) ) ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp", 1648, (long long)"GGML_ASSERT(%s) failed", "tensor->view_src->data != NULL"); a1[1] = *(_QWORD *)(a1[29] + 8); a1[31] = a1[30] + *(_QWORD *)(a1[29] + 248); return ggml_backend_buffer_init_tensor(a1[1], (long long)a1); }
ggml_backend_view_init: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x8],0x0 JZ 0x00162518 LEA RDI,[0x1b4c17] MOV ESI,0x66d LEA RDX,[0x1b1609] LEA RCX,[0x1b51b0] MOV AL,0x0 CALL 0x00148a00 LAB_00162518: MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0xe8],0x0 JNZ 0x00162547 LEA RDI,[0x1b4c17] MOV ESI,0x66e LEA RDX,[0x1b1609] LEA RCX,[0x1b51c7] MOV AL,0x0 CALL 0x00148a00 LAB_00162547: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0xe8] CMP qword ptr [RAX + 0x8],0x0 JNZ 0x0016257a LEA RDI,[0x1b4c17] MOV ESI,0x66f LEA RDX,[0x1b1609] LEA RCX,[0x1b51e0] MOV AL,0x0 CALL 0x00148a00 LAB_0016257a: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0xe8] CMP qword ptr [RAX + 0xf8],0x0 JNZ 0x001625b0 LEA RDI,[0x1b4c17] MOV ESI,0x670 LEA RDX,[0x1b1609] LEA RCX,[0x1b5201] MOV AL,0x0 CALL 0x00148a00 LAB_001625b0: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0xe8] MOV RCX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0xe8] MOV RCX,qword ptr [RAX + 0xf8] MOV RAX,qword ptr [RBP + -0x8] ADD RCX,qword ptr [RAX + 0xf0] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0xf8],RCX MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x8] MOV RSI,qword ptr [RBP + -0x8] CALL 0x00145710 ADD RSP,0x10 POP RBP RET
void ggml_backend_view_init(long param_1) { if (*(long *)(param_1 + 8) != 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp" ,0x66d,"GGML_ASSERT(%s) failed","tensor->buffer == NULL"); } if (*(long *)(param_1 + 0xe8) == 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp" ,0x66e,"GGML_ASSERT(%s) failed","tensor->view_src != NULL"); } if (*(long *)(*(long *)(param_1 + 0xe8) + 8) == 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp" ,0x66f,"GGML_ASSERT(%s) failed","tensor->view_src->buffer != NULL"); } if (*(long *)(*(long *)(param_1 + 0xe8) + 0xf8) == 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp" ,0x670,"GGML_ASSERT(%s) failed","tensor->view_src->data != NULL"); } *(int8 *)(param_1 + 8) = *(int8 *)(*(long *)(param_1 + 0xe8) + 8); *(long *)(param_1 + 0xf8) = *(long *)(*(long *)(param_1 + 0xe8) + 0xf8) + *(long *)(param_1 + 0xf0); ggml_backend_buffer_init_tensor(*(int8 *)(param_1 + 8),param_1); return; }
27,638
ggml_backend_view_init
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp
void ggml_backend_view_init(struct ggml_tensor * tensor) { GGML_ASSERT(tensor->buffer == NULL); GGML_ASSERT(tensor->view_src != NULL); GGML_ASSERT(tensor->view_src->buffer != NULL); GGML_ASSERT(tensor->view_src->data != NULL); tensor->buffer = tensor->view_src->buffer; tensor->data = (char *)tensor->view_src->data + tensor->view_offs; ggml_backend_buffer_init_tensor(tensor->buffer, tensor); }
O1
cpp
ggml_backend_view_init: pushq %rax cmpq $0x0, 0x8(%rdi) jne 0x29c12 movq %rdi, %rsi movq 0xe8(%rdi), %rax testq %rax, %rax je 0x29c2e movq 0x8(%rax), %rdi testq %rdi, %rdi je 0x29c4a movq 0xf8(%rax), %rax testq %rax, %rax je 0x29c66 movq %rdi, 0x8(%rsi) addq 0xf0(%rsi), %rax movq %rax, 0xf8(%rsi) movq 0x10(%rdi), %rax testq %rax, %rax je 0x29c10 popq %rcx jmpq *%rax popq %rax retq leaq 0x25b5b(%rip), %rdi # 0x4f774 leaq 0x229a1(%rip), %rdx # 0x4c5c1 leaq 0x260e6(%rip), %rcx # 0x4fd0d movl $0x66d, %esi # imm = 0x66D jmp 0x29c80 leaq 0x25b3f(%rip), %rdi # 0x4f774 leaq 0x22985(%rip), %rdx # 0x4c5c1 leaq 0x260e1(%rip), %rcx # 0x4fd24 movl $0x66e, %esi # imm = 0x66E jmp 0x29c80 leaq 0x25b23(%rip), %rdi # 0x4f774 leaq 0x22969(%rip), %rdx # 0x4c5c1 leaq 0x260de(%rip), %rcx # 0x4fd3d movl $0x66f, %esi # imm = 0x66F jmp 0x29c80 leaq 0x25b07(%rip), %rdi # 0x4f774 leaq 0x2294d(%rip), %rdx # 0x4c5c1 leaq 0x260e3(%rip), %rcx # 0x4fd5e movl $0x670, %esi # imm = 0x670 xorl %eax, %eax callq 0x18ce0
ggml_backend_view_init: push rax cmp qword ptr [rdi+8], 0 jnz short loc_29C12 mov rsi, rdi mov rax, [rdi+0E8h] test rax, rax jz short loc_29C2E mov rdi, [rax+8] test rdi, rdi jz short loc_29C4A mov rax, [rax+0F8h] test rax, rax jz short loc_29C66 mov [rsi+8], rdi add rax, [rsi+0F0h] mov [rsi+0F8h], rax mov rax, [rdi+10h] test rax, rax jz short loc_29C10 pop rcx jmp rax loc_29C10: pop rax retn loc_29C12: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTensorBufferNu; "tensor->buffer == NULL" mov esi, 66Dh jmp short loc_29C80 loc_29C2E: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTensorViewSrcN; "tensor->view_src != NULL" mov esi, 66Eh jmp short loc_29C80 loc_29C4A: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTensorViewSrcB; "tensor->view_src->buffer != NULL" mov esi, 66Fh jmp short loc_29C80 loc_29C66: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTensorViewSrcD; "tensor->view_src->data != NULL" mov esi, 670h loc_29C80: xor eax, eax call _ggml_abort
long long ggml_backend_view_init(_QWORD *a1, long long a2, long long a3, long long a4, int a5, int a6) { long long v6; // rax long long v8; // rax long long v9; // rdi long long v10; // rax long long (*v11)(void); // rax const char *v13; // rcx int v14; // esi long long v15; // [rsp-8h] [rbp-8h] v15 = v6; if ( a1[1] ) { v13 = "tensor->buffer == NULL"; v14 = 1645; goto LABEL_12; } v8 = a1[29]; if ( !v8 ) { v13 = "tensor->view_src != NULL"; v14 = 1646; goto LABEL_12; } v9 = *(_QWORD *)(v8 + 8); if ( !v9 ) { v13 = "tensor->view_src->buffer != NULL"; v14 = 1647; goto LABEL_12; } v10 = *(_QWORD *)(v8 + 248); if ( !v10 ) { v13 = "tensor->view_src->data != NULL"; v14 = 1648; LABEL_12: ggml_abort( (unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp", v14, (unsigned int)"GGML_ASSERT(%s) failed", (_DWORD)v13, a5, a6); } a1[1] = v9; a1[31] = a1[30] + v10; v11 = *(long long (**)(void))(v9 + 16); if ( v11 ) return v11(); else return v15; }
ggml_backend_view_init: PUSH RAX CMP qword ptr [RDI + 0x8],0x0 JNZ 0x00129c12 MOV RSI,RDI MOV RAX,qword ptr [RDI + 0xe8] TEST RAX,RAX JZ 0x00129c2e MOV RDI,qword ptr [RAX + 0x8] TEST RDI,RDI JZ 0x00129c4a MOV RAX,qword ptr [RAX + 0xf8] TEST RAX,RAX JZ 0x00129c66 MOV qword ptr [RSI + 0x8],RDI ADD RAX,qword ptr [RSI + 0xf0] MOV qword ptr [RSI + 0xf8],RAX MOV RAX,qword ptr [RDI + 0x10] TEST RAX,RAX JZ 0x00129c10 POP RCX JMP RAX LAB_00129c10: POP RAX RET LAB_00129c12: LEA RDI,[0x14f774] LEA RDX,[0x14c5c1] LEA RCX,[0x14fd0d] MOV ESI,0x66d JMP 0x00129c80 LAB_00129c2e: LEA RDI,[0x14f774] LEA RDX,[0x14c5c1] LEA RCX,[0x14fd24] MOV ESI,0x66e JMP 0x00129c80 LAB_00129c4a: LEA RDI,[0x14f774] LEA RDX,[0x14c5c1] LEA RCX,[0x14fd3d] MOV ESI,0x66f JMP 0x00129c80 LAB_00129c66: LEA RDI,[0x14f774] LEA RDX,[0x14c5c1] LEA RCX,[0x14fd5e] MOV ESI,0x670 LAB_00129c80: XOR EAX,EAX CALL 0x00118ce0
int8 ggml_backend_view_init(long param_1) { long lVar1; long lVar2; int8 in_RAX; int8 uVar3; char *pcVar4; if (*(long *)(param_1 + 8) == 0) { lVar1 = *(long *)(param_1 + 0xe8); if (lVar1 == 0) { pcVar4 = "tensor->view_src != NULL"; uVar3 = 0x66e; } else { lVar2 = *(long *)(lVar1 + 8); if (lVar2 == 0) { pcVar4 = "tensor->view_src->buffer != NULL"; uVar3 = 0x66f; } else { lVar1 = *(long *)(lVar1 + 0xf8); if (lVar1 != 0) { *(long *)(param_1 + 8) = lVar2; *(long *)(param_1 + 0xf8) = lVar1 + *(long *)(param_1 + 0xf0); if (*(code **)(lVar2 + 0x10) != (code *)0x0) { /* WARNING: Could not recover jumptable at 0x00129c0e. Too many branches */ /* WARNING: Treating indirect jump as call */ uVar3 = (**(code **)(lVar2 + 0x10))(); return uVar3; } return in_RAX; } pcVar4 = "tensor->view_src->data != NULL"; uVar3 = 0x670; } } } else { pcVar4 = "tensor->buffer == NULL"; uVar3 = 0x66d; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp" ,uVar3,"GGML_ASSERT(%s) failed",pcVar4); }
27,639
ggml_backend_view_init
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp
void ggml_backend_view_init(struct ggml_tensor * tensor) { GGML_ASSERT(tensor->buffer == NULL); GGML_ASSERT(tensor->view_src != NULL); GGML_ASSERT(tensor->view_src->buffer != NULL); GGML_ASSERT(tensor->view_src->data != NULL); tensor->buffer = tensor->view_src->buffer; tensor->data = (char *)tensor->view_src->data + tensor->view_offs; ggml_backend_buffer_init_tensor(tensor->buffer, tensor); }
O2
cpp
ggml_backend_view_init: pushq %rax cmpq $0x0, 0x8(%rdi) jne 0x2ded4 movq %rdi, %rsi movq 0xe8(%rdi), %rax testq %rax, %rax je 0x2def0 movq 0x8(%rax), %rdi testq %rdi, %rdi je 0x2df0c movq 0xf8(%rax), %rax testq %rax, %rax je 0x2df28 movq %rdi, 0x8(%rsi) addq 0xf0(%rsi), %rax movq %rax, 0xf8(%rsi) movq 0x10(%rdi), %rax testq %rax, %rax je 0x2ded2 popq %rcx jmpq *%rax popq %rax retq leaq 0x238a9(%rip), %rdi # 0x51784 leaq 0x206f3(%rip), %rdx # 0x4e5d5 leaq 0x23e34(%rip), %rcx # 0x51d1d movl $0x66d, %esi # imm = 0x66D jmp 0x2df42 leaq 0x2388d(%rip), %rdi # 0x51784 leaq 0x206d7(%rip), %rdx # 0x4e5d5 leaq 0x23e2f(%rip), %rcx # 0x51d34 movl $0x66e, %esi # imm = 0x66E jmp 0x2df42 leaq 0x23871(%rip), %rdi # 0x51784 leaq 0x206bb(%rip), %rdx # 0x4e5d5 leaq 0x23e2c(%rip), %rcx # 0x51d4d movl $0x66f, %esi # imm = 0x66F jmp 0x2df42 leaq 0x23855(%rip), %rdi # 0x51784 leaq 0x2069f(%rip), %rdx # 0x4e5d5 leaq 0x23e31(%rip), %rcx # 0x51d6e movl $0x670, %esi # imm = 0x670 xorl %eax, %eax callq 0x1f9b0
ggml_backend_view_init: push rax cmp qword ptr [rdi+8], 0 jnz short loc_2DED4 mov rsi, rdi mov rax, [rdi+0E8h] test rax, rax jz short loc_2DEF0 mov rdi, [rax+8] test rdi, rdi jz short loc_2DF0C mov rax, [rax+0F8h] test rax, rax jz short loc_2DF28 mov [rsi+8], rdi add rax, [rsi+0F0h] mov [rsi+0F8h], rax mov rax, [rdi+10h] test rax, rax jz short loc_2DED2 pop rcx jmp rax loc_2DED2: pop rax retn loc_2DED4: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTensorBufferNu; "tensor->buffer == NULL" mov esi, 66Dh jmp short loc_2DF42 loc_2DEF0: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTensorViewSrcN; "tensor->view_src != NULL" mov esi, 66Eh jmp short loc_2DF42 loc_2DF0C: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTensorViewSrcB; "tensor->view_src->buffer != NULL" mov esi, 66Fh jmp short loc_2DF42 loc_2DF28: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTensorViewSrcD; "tensor->view_src->data != NULL" mov esi, 670h loc_2DF42: xor eax, eax call _ggml_abort
long long ggml_backend_view_init( _QWORD *a1, __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) { long long v14; // rax long long v16; // rax long long v17; // rdi long long v18; // rax long long (*v19)(void); // rax const char *v21; // rcx int v22; // esi long long v23; // [rsp-8h] [rbp-8h] v23 = v14; if ( a1[1] ) { v21 = "tensor->buffer == NULL"; v22 = 1645; goto LABEL_12; } v16 = a1[29]; if ( !v16 ) { v21 = "tensor->view_src != NULL"; v22 = 1646; goto LABEL_12; } v17 = *(_QWORD *)(v16 + 8); if ( !v17 ) { v21 = "tensor->view_src->buffer != NULL"; v22 = 1647; goto LABEL_12; } v18 = *(_QWORD *)(v16 + 248); if ( !v18 ) { v21 = "tensor->view_src->data != NULL"; v22 = 1648; LABEL_12: ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp", v22, (long long)"GGML_ASSERT(%s) failed", (long long)v21, a13, a14, a2, a3, a4, a5, a6, a7, a8, a9, v23); } a1[1] = v17; a1[31] = a1[30] + v18; v19 = *(long long (**)(void))(v17 + 16); if ( v19 ) return v19(); else return v23; }
ggml_backend_view_init: PUSH RAX CMP qword ptr [RDI + 0x8],0x0 JNZ 0x0012ded4 MOV RSI,RDI MOV RAX,qword ptr [RDI + 0xe8] TEST RAX,RAX JZ 0x0012def0 MOV RDI,qword ptr [RAX + 0x8] TEST RDI,RDI JZ 0x0012df0c MOV RAX,qword ptr [RAX + 0xf8] TEST RAX,RAX JZ 0x0012df28 MOV qword ptr [RSI + 0x8],RDI ADD RAX,qword ptr [RSI + 0xf0] MOV qword ptr [RSI + 0xf8],RAX MOV RAX,qword ptr [RDI + 0x10] TEST RAX,RAX JZ 0x0012ded2 POP RCX JMP RAX LAB_0012ded2: POP RAX RET LAB_0012ded4: LEA RDI,[0x151784] LEA RDX,[0x14e5d5] LEA RCX,[0x151d1d] MOV ESI,0x66d JMP 0x0012df42 LAB_0012def0: LEA RDI,[0x151784] LEA RDX,[0x14e5d5] LEA RCX,[0x151d34] MOV ESI,0x66e JMP 0x0012df42 LAB_0012df0c: LEA RDI,[0x151784] LEA RDX,[0x14e5d5] LEA RCX,[0x151d4d] MOV ESI,0x66f JMP 0x0012df42 LAB_0012df28: LEA RDI,[0x151784] LEA RDX,[0x14e5d5] LEA RCX,[0x151d6e] MOV ESI,0x670 LAB_0012df42: XOR EAX,EAX CALL 0x0011f9b0
int8 ggml_backend_view_init(long param_1) { long lVar1; long lVar2; int8 in_RAX; int8 uVar3; char *pcVar4; if (*(long *)(param_1 + 8) == 0) { lVar1 = *(long *)(param_1 + 0xe8); if (lVar1 == 0) { pcVar4 = "tensor->view_src != NULL"; uVar3 = 0x66e; } else { lVar2 = *(long *)(lVar1 + 8); if (lVar2 == 0) { pcVar4 = "tensor->view_src->buffer != NULL"; uVar3 = 0x66f; } else { lVar1 = *(long *)(lVar1 + 0xf8); if (lVar1 != 0) { *(long *)(param_1 + 8) = lVar2; *(long *)(param_1 + 0xf8) = lVar1 + *(long *)(param_1 + 0xf0); if (*(code **)(lVar2 + 0x10) != (code *)0x0) { /* WARNING: Could not recover jumptable at 0x0012ded0. Too many branches */ /* WARNING: Treating indirect jump as call */ uVar3 = (**(code **)(lVar2 + 0x10))(); return uVar3; } return in_RAX; } pcVar4 = "tensor->view_src->data != NULL"; uVar3 = 0x670; } } } else { pcVar4 = "tensor->buffer == NULL"; uVar3 = 0x66d; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp" ,uVar3,"GGML_ASSERT(%s) failed",pcVar4); }
27,640
ggml_backend_view_init
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp
void ggml_backend_view_init(struct ggml_tensor * tensor) { GGML_ASSERT(tensor->buffer == NULL); GGML_ASSERT(tensor->view_src != NULL); GGML_ASSERT(tensor->view_src->buffer != NULL); GGML_ASSERT(tensor->view_src->data != NULL); tensor->buffer = tensor->view_src->buffer; tensor->data = (char *)tensor->view_src->data + tensor->view_offs; ggml_backend_buffer_init_tensor(tensor->buffer, tensor); }
O3
cpp
ggml_backend_view_init: pushq %rax cmpq $0x0, 0x8(%rdi) jne 0x287b8 movq %rdi, %rsi movq 0xe8(%rdi), %rax testq %rax, %rax je 0x287d4 movq 0x8(%rax), %rdi testq %rdi, %rdi je 0x287f0 movq 0xf8(%rax), %rax testq %rax, %rax je 0x2880c movq %rdi, 0x8(%rsi) addq 0xf0(%rsi), %rax movq %rax, 0xf8(%rsi) movq 0x10(%rdi), %rax testq %rax, %rax je 0x287b6 popq %rcx jmpq *%rax popq %rax retq leaq 0x27055(%rip), %rdi # 0x4f814 leaq 0x23e9f(%rip), %rdx # 0x4c665 leaq 0x275e0(%rip), %rcx # 0x4fdad movl $0x66d, %esi # imm = 0x66D jmp 0x28826 leaq 0x27039(%rip), %rdi # 0x4f814 leaq 0x23e83(%rip), %rdx # 0x4c665 leaq 0x275db(%rip), %rcx # 0x4fdc4 movl $0x66e, %esi # imm = 0x66E jmp 0x28826 leaq 0x2701d(%rip), %rdi # 0x4f814 leaq 0x23e67(%rip), %rdx # 0x4c665 leaq 0x275d8(%rip), %rcx # 0x4fddd movl $0x66f, %esi # imm = 0x66F jmp 0x28826 leaq 0x27001(%rip), %rdi # 0x4f814 leaq 0x23e4b(%rip), %rdx # 0x4c665 leaq 0x275dd(%rip), %rcx # 0x4fdfe movl $0x670, %esi # imm = 0x670 xorl %eax, %eax callq 0x17cd0
ggml_backend_view_init: push rax cmp qword ptr [rdi+8], 0 jnz short loc_287B8 mov rsi, rdi mov rax, [rdi+0E8h] test rax, rax jz short loc_287D4 mov rdi, [rax+8] test rdi, rdi jz short loc_287F0 mov rax, [rax+0F8h] test rax, rax jz short loc_2880C mov [rsi+8], rdi add rax, [rsi+0F0h] mov [rsi+0F8h], rax mov rax, [rdi+10h] test rax, rax jz short loc_287B6 pop rcx jmp rax loc_287B6: pop rax retn loc_287B8: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTensorBufferNu; "tensor->buffer == NULL" mov esi, 66Dh jmp short loc_28826 loc_287D4: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTensorViewSrcN; "tensor->view_src != NULL" mov esi, 66Eh jmp short loc_28826 loc_287F0: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTensorViewSrcB; "tensor->view_src->buffer != NULL" mov esi, 66Fh jmp short loc_28826 loc_2880C: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTensorViewSrcD; "tensor->view_src->data != NULL" mov esi, 670h loc_28826: xor eax, eax call _ggml_abort
long long ggml_backend_view_init(_QWORD *a1, long long a2, long long a3, long long a4, int a5, int a6) { long long v6; // rax long long v8; // rax long long v9; // rdi long long v10; // rax long long (*v11)(void); // rax const char *v13; // rcx int v14; // esi long long v15; // [rsp-8h] [rbp-8h] v15 = v6; if ( a1[1] ) { v13 = "tensor->buffer == NULL"; v14 = 1645; goto LABEL_12; } v8 = a1[29]; if ( !v8 ) { v13 = "tensor->view_src != NULL"; v14 = 1646; goto LABEL_12; } v9 = *(_QWORD *)(v8 + 8); if ( !v9 ) { v13 = "tensor->view_src->buffer != NULL"; v14 = 1647; goto LABEL_12; } v10 = *(_QWORD *)(v8 + 248); if ( !v10 ) { v13 = "tensor->view_src->data != NULL"; v14 = 1648; LABEL_12: ggml_abort( (unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp", v14, (unsigned int)"GGML_ASSERT(%s) failed", (_DWORD)v13, a5, a6); } a1[1] = v9; a1[31] = a1[30] + v10; v11 = *(long long (**)(void))(v9 + 16); if ( v11 ) return v11(); else return v15; }
ggml_backend_view_init: PUSH RAX CMP qword ptr [RDI + 0x8],0x0 JNZ 0x001287b8 MOV RSI,RDI MOV RAX,qword ptr [RDI + 0xe8] TEST RAX,RAX JZ 0x001287d4 MOV RDI,qword ptr [RAX + 0x8] TEST RDI,RDI JZ 0x001287f0 MOV RAX,qword ptr [RAX + 0xf8] TEST RAX,RAX JZ 0x0012880c MOV qword ptr [RSI + 0x8],RDI ADD RAX,qword ptr [RSI + 0xf0] MOV qword ptr [RSI + 0xf8],RAX MOV RAX,qword ptr [RDI + 0x10] TEST RAX,RAX JZ 0x001287b6 POP RCX JMP RAX LAB_001287b6: POP RAX RET LAB_001287b8: LEA RDI,[0x14f814] LEA RDX,[0x14c665] LEA RCX,[0x14fdad] MOV ESI,0x66d JMP 0x00128826 LAB_001287d4: LEA RDI,[0x14f814] LEA RDX,[0x14c665] LEA RCX,[0x14fdc4] MOV ESI,0x66e JMP 0x00128826 LAB_001287f0: LEA RDI,[0x14f814] LEA RDX,[0x14c665] LEA RCX,[0x14fddd] MOV ESI,0x66f JMP 0x00128826 LAB_0012880c: LEA RDI,[0x14f814] LEA RDX,[0x14c665] LEA RCX,[0x14fdfe] MOV ESI,0x670 LAB_00128826: XOR EAX,EAX CALL 0x00117cd0
int8 ggml_backend_view_init(long param_1) { long lVar1; long lVar2; int8 in_RAX; int8 uVar3; char *pcVar4; if (*(long *)(param_1 + 8) == 0) { lVar1 = *(long *)(param_1 + 0xe8); if (lVar1 == 0) { pcVar4 = "tensor->view_src != NULL"; uVar3 = 0x66e; } else { lVar2 = *(long *)(lVar1 + 8); if (lVar2 == 0) { pcVar4 = "tensor->view_src->buffer != NULL"; uVar3 = 0x66f; } else { lVar1 = *(long *)(lVar1 + 0xf8); if (lVar1 != 0) { *(long *)(param_1 + 8) = lVar2; *(long *)(param_1 + 0xf8) = lVar1 + *(long *)(param_1 + 0xf0); if (*(code **)(lVar2 + 0x10) != (code *)0x0) { /* WARNING: Could not recover jumptable at 0x001287b4. Too many branches */ /* WARNING: Treating indirect jump as call */ uVar3 = (**(code **)(lVar2 + 0x10))(); return uVar3; } return in_RAX; } pcVar4 = "tensor->view_src->data != NULL"; uVar3 = 0x670; } } } else { pcVar4 = "tensor->buffer == NULL"; uVar3 = 0x66d; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp" ,uVar3,"GGML_ASSERT(%s) failed",pcVar4); }
27,641
log_action
navaro[P]qoraal-tictactoe/build_O3/_deps/qoraal_engine-src/src/engine.c
static void log_action (PENGINE_T engine, uint32_t filter, const char* pre, const char* cond, STATES_INTERNAL_T* internal) { if ((filter & _engine_log_filter) && ((!engine || ((1 << engine->idx) & _engine_log_instance)))) { char buffer[24] ; char buffer2[24] ; STATES_ACTION_T action = internal->action ; const char result = (action.action & STATES_ACTION_RESULT_MASK) == STATES_ACTION_RESULT_PUSH << STATES_ACTION_RESULT_OFFSET ? PARSE_PUSH_OP : (action.action & STATES_ACTION_RESULT_MASK) == STATES_ACTION_RESULT_POP << STATES_ACTION_RESULT_OFFSET ? PARSE_POP_OP : (action.action & STATES_ACTION_RESULT_MASK) == STATES_ACTION_RESULT_SAVE << STATES_ACTION_RESULT_OFFSET ? PARSE_SAVE_OP : ' ' ; engine_log (engine, filter, "%s %s%c %s %s", pre, parts_get_action_name(action.action & STATES_ACTION_ID_MASK), result, _log_cond (engine, internal, cond, buffer, 24), _log_param (engine, &action, buffer2, 24)) ; } }
O3
c
log_action: testb $0x4, 0x2e110(%rip) # 0x3e379 je 0x10357 pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %rbx testq %rdi, %rdi je 0x1029f movl 0x2e0e8(%rip), %eax # 0x3e37c movl (%rbx), %ecx btl %ecx, %eax jae 0x10349 movl 0x4(%r15), %edi movl %edi, -0x2c(%rbp) movl %edi, %eax andl $0x3000, %eax # imm = 0x3000 cmpl $0x1000, %eax # imm = 0x1000 je 0x102c3 cmpl $0x2000, %eax # imm = 0x2000 jne 0x102cb movl $0x2d, %r12d jmp 0x102e2 movl $0x2b, %r12d jmp 0x102e2 movzwl %ax, %eax cmpl $0x3000, %eax # imm = 0x3000 movl $0x3d, %eax movl $0x20, %r12d cmovel %eax, %r12d andl $0xfff, %edi # imm = 0xFFF callq 0x812a movq %rax, %r13 leaq -0x70(%rbp), %rcx movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx movl $0x18, %r8d callq 0xff33 movq %rax, %r14 leaq -0x2c(%rbp), %rsi leaq -0x50(%rbp), %r15 movq %rbx, %rdi movq %r15, %rdx callq 0x10358 leaq 0x164d9(%rip), %rdx # 0x267fe leaq 0x1645c(%rip), %rcx # 0x26788 movq %rbx, %rdi movl $0x400, %esi # imm = 0x400 movq %r13, %r8 movl %r12d, %r9d xorl %eax, %eax pushq %r15 pushq %r14 callq 0xe379 addq $0x10, %rsp addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
log_action: test byte ptr cs:_engine_log_filter+1, 4 jz locret_10357 push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov r15, rdx mov r14, rsi mov rbx, rdi test rdi, rdi jz short loc_1029F mov eax, cs:_engine_log_instance mov ecx, [rbx] bt eax, ecx jnb loc_10349 loc_1029F: mov edi, [r15+4] mov [rbp-2Ch], edi mov eax, edi and eax, 3000h cmp eax, 1000h jz short loc_102C3 cmp eax, 2000h jnz short loc_102CB mov r12d, 2Dh ; '-' jmp short loc_102E2 loc_102C3: mov r12d, 2Bh ; '+' jmp short loc_102E2 loc_102CB: movzx eax, ax cmp eax, 3000h mov eax, 3Dh ; '=' mov r12d, 20h ; ' ' cmovz r12d, eax loc_102E2: and edi, 0FFFh call parts_get_action_name mov r13, rax lea rcx, [rbp-70h] mov rdi, rbx mov rsi, r15 mov rdx, r14 mov r8d, 18h call _log_cond mov r14, rax lea rsi, [rbp-2Ch] lea r15, [rbp-50h] mov rdi, rbx mov rdx, r15 call _log_param lea rdx, aSSCSS; "%s %s%c %s %s" lea rcx, aAct; "[act]" mov rdi, rbx mov esi, 400h mov r8, r13 mov r9d, r12d xor eax, eax push r15 push r14 call engine_log add rsp, 10h loc_10349: add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp locret_10357: retn
void log_action( unsigned int *a1, const char *a2, long long a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, double a8, double a9, __m128 a10, __m128 a11) { int v13; // eax int v14; // edi int v15; // eax unsigned int v16; // r12d long long action_name; // r13 long long v18; // r9 __m128 v19; // xmm4 __m128 v20; // xmm5 char v21; // r14 __m128 v22; // xmm4 __m128 v23; // xmm5 long long v24; // [rsp-78h] [rbp-78h] BYREF long long v25; // [rsp-58h] [rbp-58h] BYREF int v26; // [rsp-34h] [rbp-34h] BYREF if ( (engine_log_filter & 0x400) != 0 ) { if ( !a1 || (v13 = engine_log_instance, _bittest(&v13, *a1)) ) { v14 = *(_DWORD *)(a3 + 4); v26 = v14; v15 = v14 & 0x3000; if ( v15 == 4096 ) { v16 = 43; } else if ( v15 == 0x2000 ) { v16 = 45; } else { v16 = 32; if ( (unsigned __int16)v15 == 12288 ) v16 = 61; } action_name = parts_get_action_name(v14 & 0xFFF); v21 = (unsigned __int8)log_cond( a1, (unsigned __int16 *)a3, a2, (long long)&v24, 0x18u, v18, a4, a5, a6, a7, v19, v20, a10, a11); *(double *)a4.m128_u64 = log_param(a1, &v26, &v25); engine_log(a1, 1024, (long long)aSSCSS, (long long)aAct, action_name, v16, a4, a5, a6, a7, v22, v23, a10, a11, v21); } } }
log_action: TEST byte ptr [0x0013e379],0x4 JZ 0x00110357 PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV R15,RDX MOV R14,RSI MOV RBX,RDI TEST RDI,RDI JZ 0x0011029f MOV EAX,dword ptr [0x0013e37c] MOV ECX,dword ptr [RBX] BT EAX,ECX JNC 0x00110349 LAB_0011029f: MOV EDI,dword ptr [R15 + 0x4] MOV dword ptr [RBP + -0x2c],EDI MOV EAX,EDI AND EAX,0x3000 CMP EAX,0x1000 JZ 0x001102c3 CMP EAX,0x2000 JNZ 0x001102cb MOV R12D,0x2d JMP 0x001102e2 LAB_001102c3: MOV R12D,0x2b JMP 0x001102e2 LAB_001102cb: MOVZX EAX,AX CMP EAX,0x3000 MOV EAX,0x3d MOV R12D,0x20 CMOVZ R12D,EAX LAB_001102e2: AND EDI,0xfff CALL 0x0010812a MOV R13,RAX LEA RCX,[RBP + -0x70] MOV RDI,RBX MOV RSI,R15 MOV RDX,R14 MOV R8D,0x18 CALL 0x0010ff33 MOV R14,RAX LEA RSI,[RBP + -0x2c] LEA R15,[RBP + -0x50] MOV RDI,RBX MOV RDX,R15 CALL 0x00110358 LEA RDX,[0x1267fe] LEA RCX,[0x126788] MOV RDI,RBX MOV ESI,0x400 MOV R8,R13 MOV R9D,R12D XOR EAX,EAX PUSH R15 PUSH R14 CALL 0x0010e379 ADD RSP,0x10 LAB_00110349: ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP LAB_00110357: RET
void log_action(uint *param_1,int8 param_2,long param_3) { uint uVar1; int8 uVar2; int8 uVar3; int4 uVar4; int1 local_78 [32]; int1 local_58 [36]; uint local_34; if (((_engine_log_filter._1_1_ & 4) != 0) && ((param_1 == (uint *)0x0 || ((_engine_log_instance >> (*param_1 & 0x1f) & 1) != 0)))) { local_34 = *(uint *)(param_3 + 4); uVar1 = local_34 & 0x3000; if (uVar1 == 0x1000) { uVar4 = 0x2b; } else if (uVar1 == 0x2000) { uVar4 = 0x2d; } else { uVar4 = 0x20; if (uVar1 == 0x3000) { uVar4 = 0x3d; } } uVar2 = parts_get_action_name(local_34 & 0xfff); uVar3 = _log_cond(param_1,param_3,param_2,local_78,0x18); _log_param(param_1,&local_34,local_58); engine_log(param_1,0x400,s__s__s_c__s__s_001267fe,s__act__00126788,uVar2,uVar4,uVar3,local_58); } return; }
27,642
my_charset_get_by_name
eloqsql/mysys/charset.c
CHARSET_INFO * my_charset_get_by_name(MY_CHARSET_LOADER *loader, const char *cs_name, uint cs_flags, myf flags) { uint cs_number; CHARSET_INFO *cs; DBUG_ENTER("get_charset_by_csname"); DBUG_PRINT("enter",("name: '%s'", cs_name)); my_pthread_once(&charsets_initialized, init_available_charsets); cs_number= get_charset_number(cs_name, cs_flags, flags); cs= cs_number ? get_internal_charset(loader, cs_number, flags) : NULL; if (!cs && (flags & MY_WME)) { char index_file[FN_REFLEN + sizeof(MY_CHARSET_INDEX)]; strmov(get_charsets_dir(index_file),MY_CHARSET_INDEX); my_error(EE_UNKNOWN_CHARSET, MYF(ME_BELL), cs_name, index_file); } DBUG_RETURN(cs); }
O0
c
my_charset_get_by_name: pushq %rbp movq %rsp, %rbp subq $0x260, %rsp # imm = 0x260 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x228(%rbp) movq %rsi, -0x230(%rbp) movl %edx, -0x234(%rbp) movq %rcx, -0x240(%rbp) jmp 0xdc485 leaq 0xba62a8(%rip), %rdi # 0xc82734 leaq -0xae3(%rip), %rsi # 0xdb9b0 callq 0x2a240 movq -0x230(%rbp), %rdi movl -0x234(%rbp), %esi movq -0x240(%rbp), %rdx callq 0xdbc70 movl %eax, -0x244(%rbp) cmpl $0x0, -0x244(%rbp) je 0xdc4e2 movq -0x228(%rbp), %rdi movl -0x244(%rbp), %esi movq -0x240(%rbp), %rdx callq 0xdc000 movq %rax, -0x258(%rbp) jmp 0xdc4ed xorl %eax, %eax movq %rax, -0x258(%rbp) jmp 0xdc4ed movq -0x258(%rbp), %rax movq %rax, -0x250(%rbp) cmpq $0x0, -0x250(%rbp) jne 0xdc550 movq -0x240(%rbp), %rax andq $0x10, %rax cmpq $0x0, %rax je 0xdc550 leaq -0x220(%rbp), %rdi callq 0xdb670 movq %rax, %rdi leaq 0x779a5(%rip), %rsi # 0x153ed1 callq 0x2a730 movq -0x230(%rbp), %rdx leaq -0x220(%rbp), %rcx movl $0x16, %edi movl $0x4, %esi movb $0x0, %al callq 0xefb40 jmp 0xdc552 movq -0x250(%rbp), %rax movq %rax, -0x260(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0xdc582 movq -0x260(%rbp), %rax addq $0x260, %rsp # imm = 0x260 popq %rbp retq callq 0x2a270 nopw (%rax,%rax)
my_charset_get_by_name: push rbp mov rbp, rsp sub rsp, 260h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_228], rdi mov [rbp+var_230], rsi mov [rbp+var_234], edx mov [rbp+var_240], rcx jmp short $+2 loc_DC485: lea rdi, charsets_initialized lea rsi, init_available_charsets call _pthread_once mov rdi, [rbp+var_230] mov esi, [rbp+var_234] mov rdx, [rbp+var_240] call get_charset_number mov [rbp+var_244], eax cmp [rbp+var_244], 0 jz short loc_DC4E2 mov rdi, [rbp+var_228] mov esi, [rbp+var_244] mov rdx, [rbp+var_240] call get_internal_charset mov [rbp+var_258], rax jmp short loc_DC4ED loc_DC4E2: xor eax, eax mov [rbp+var_258], rax jmp short $+2 loc_DC4ED: mov rax, [rbp+var_258] mov [rbp+var_250], rax cmp [rbp+var_250], 0 jnz short loc_DC550 mov rax, [rbp+var_240] and rax, 10h cmp rax, 0 jz short loc_DC550 lea rdi, [rbp+var_220] call get_charsets_dir mov rdi, rax lea rsi, aIndexXml; "Index.xml" call _stpcpy mov rdx, [rbp+var_230] lea rcx, [rbp+var_220] mov edi, 16h mov esi, 4 mov al, 0 call my_error loc_DC550: jmp short $+2 loc_DC552: mov rax, [rbp+var_250] mov [rbp+var_260], rax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_DC582 mov rax, [rbp+var_260] add rsp, 260h pop rbp retn loc_DC582: call ___stack_chk_fail
long long my_charset_get_by_name(long long a1, long long a2, unsigned int a3, long long a4) { long long charsets_dir; // rax int v5; // r8d int v6; // r9d long long internal_charset; // [rsp+8h] [rbp-258h] unsigned int charset_number; // [rsp+1Ch] [rbp-244h] _BYTE v12[536]; // [rsp+40h] [rbp-220h] BYREF unsigned long long v13; // [rsp+258h] [rbp-8h] v13 = __readfsqword(0x28u); pthread_once(&charsets_initialized, init_available_charsets); charset_number = get_charset_number(a2, a3, a4); if ( charset_number ) internal_charset = get_internal_charset(a1, charset_number, a4); else internal_charset = 0LL; if ( !internal_charset && (a4 & 0x10) != 0 ) { charsets_dir = get_charsets_dir((long long)v12); stpcpy(charsets_dir, "Index.xml"); my_error(22, 4, a2, (unsigned int)v12, v5, v6); } return internal_charset; }
my_charset_get_by_name: PUSH RBP MOV RBP,RSP SUB RSP,0x260 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x228],RDI MOV qword ptr [RBP + -0x230],RSI MOV dword ptr [RBP + -0x234],EDX MOV qword ptr [RBP + -0x240],RCX JMP 0x001dc485 LAB_001dc485: LEA RDI,[0xd82734] LEA RSI,[0x1db9b0] CALL 0x0012a240 MOV RDI,qword ptr [RBP + -0x230] MOV ESI,dword ptr [RBP + -0x234] MOV RDX,qword ptr [RBP + -0x240] CALL 0x001dbc70 MOV dword ptr [RBP + -0x244],EAX CMP dword ptr [RBP + -0x244],0x0 JZ 0x001dc4e2 MOV RDI,qword ptr [RBP + -0x228] MOV ESI,dword ptr [RBP + -0x244] MOV RDX,qword ptr [RBP + -0x240] CALL 0x001dc000 MOV qword ptr [RBP + -0x258],RAX JMP 0x001dc4ed LAB_001dc4e2: XOR EAX,EAX MOV qword ptr [RBP + -0x258],RAX JMP 0x001dc4ed LAB_001dc4ed: MOV RAX,qword ptr [RBP + -0x258] MOV qword ptr [RBP + -0x250],RAX CMP qword ptr [RBP + -0x250],0x0 JNZ 0x001dc550 MOV RAX,qword ptr [RBP + -0x240] AND RAX,0x10 CMP RAX,0x0 JZ 0x001dc550 LEA RDI,[RBP + -0x220] CALL 0x001db670 MOV RDI,RAX LEA RSI,[0x253ed1] CALL 0x0012a730 MOV RDX,qword ptr [RBP + -0x230] LEA RCX,[RBP + -0x220] MOV EDI,0x16 MOV ESI,0x4 MOV AL,0x0 CALL 0x001efb40 LAB_001dc550: JMP 0x001dc552 LAB_001dc552: MOV RAX,qword ptr [RBP + -0x250] MOV qword ptr [RBP + -0x260],RAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001dc582 MOV RAX,qword ptr [RBP + -0x260] ADD RSP,0x260 POP RBP RET LAB_001dc582: CALL 0x0012a270
long my_charset_get_by_name(int8 param_1,int8 param_2,int4 param_3,ulong param_4) { int iVar1; char *__dest; long in_FS_OFFSET; long local_260; int1 local_228 [536]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); pthread_once(&charsets_initialized,init_available_charsets); iVar1 = get_charset_number(param_2,param_3,param_4); if (iVar1 == 0) { local_260 = 0; } else { local_260 = get_internal_charset(param_1,iVar1,param_4); } if ((local_260 == 0) && ((param_4 & 0x10) != 0)) { __dest = (char *)get_charsets_dir(local_228); stpcpy(__dest,"Index.xml"); my_error(0x16,4,param_2,local_228); } if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return local_260; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
27,643
my_charset_get_by_name
eloqsql/mysys/charset.c
CHARSET_INFO * my_charset_get_by_name(MY_CHARSET_LOADER *loader, const char *cs_name, uint cs_flags, myf flags) { uint cs_number; CHARSET_INFO *cs; DBUG_ENTER("get_charset_by_csname"); DBUG_PRINT("enter",("name: '%s'", cs_name)); my_pthread_once(&charsets_initialized, init_available_charsets); cs_number= get_charset_number(cs_name, cs_flags, flags); cs= cs_number ? get_internal_charset(loader, cs_number, flags) : NULL; if (!cs && (flags & MY_WME)) { char index_file[FN_REFLEN + sizeof(MY_CHARSET_INDEX)]; strmov(get_charsets_dir(index_file),MY_CHARSET_INDEX); my_error(EE_UNKNOWN_CHARSET, MYF(ME_BELL), cs_name, index_file); } DBUG_RETURN(cs); }
O3
c
my_charset_get_by_name: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x220, %rsp # imm = 0x220 movq %rcx, %r15 movl %edx, %r12d movq %rsi, %rbx movq %rdi, %r14 movq %fs:0x28, %rax movq %rax, -0x28(%rbp) leaq 0xb74b5a(%rip), %rdi # 0xc07b30 leaq -0x9ae(%rip), %rsi # 0x9262f callq 0x29240 movq %rbx, %rdi movl %r12d, %esi movq %r15, %rdx callq 0x9281a testl %eax, %eax je 0x93006 movq %r14, %rdi movl %eax, %esi movq %r15, %rdx callq 0x92abe movq %rax, %r14 jmp 0x93009 xorl %r14d, %r14d testq %r14, %r14 setne %al testb $0x10, %r15b sete %cl orb %al, %cl jne 0x93053 leaq -0x240(%rbp), %r15 movq %r15, %rdi callq 0x923ef movabsq $0x6d782e7865646e49, %rcx # imm = 0x6D782E7865646E49 movq %rcx, (%rax) movw $0x6c, 0x8(%rax) movl $0x4, %esi movl $0x16, %edi movq %rbx, %rdx movq %r15, %rcx xorl %eax, %eax callq 0x9e0bb movq %fs:0x28, %rax cmpq -0x28(%rbp), %rax jne 0x93075 movq %r14, %rax addq $0x220, %rsp # imm = 0x220 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq callq 0x29270
my_charset_get_by_name: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 220h mov r15, rcx mov r12d, edx mov rbx, rsi mov r14, rdi mov rax, fs:28h mov [rbp+var_28], rax lea rdi, charsets_initialized lea rsi, init_available_charsets call _pthread_once mov rdi, rbx mov esi, r12d mov rdx, r15 call get_charset_number test eax, eax jz short loc_93006 mov rdi, r14 mov esi, eax mov rdx, r15 call get_internal_charset mov r14, rax jmp short loc_93009 loc_93006: xor r14d, r14d loc_93009: test r14, r14 setnz al test r15b, 10h setz cl or cl, al jnz short loc_93053 lea r15, [rbp+var_240] mov rdi, r15 call get_charsets_dir mov rcx, 6D782E7865646E49h mov [rax], rcx mov word ptr [rax+8], 6Ch ; 'l' mov esi, 4 mov edi, 16h mov rdx, rbx mov rcx, r15 xor eax, eax call my_error loc_93053: mov rax, fs:28h cmp rax, [rbp+var_28] jnz short loc_93075 mov rax, r14 add rsp, 220h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_93075: call ___stack_chk_fail
long long my_charset_get_by_name(long long a1, long long a2, unsigned int a3, long long a4) { unsigned int charset_number; // eax long long internal_charset; // r14 int v8; // r8d int v9; // r9d _BYTE v11[536]; // [rsp+0h] [rbp-240h] BYREF unsigned long long v12; // [rsp+218h] [rbp-28h] v12 = __readfsqword(0x28u); pthread_once(&charsets_initialized, init_available_charsets); charset_number = get_charset_number(a2, a3, a4); if ( charset_number ) internal_charset = get_internal_charset(a1, charset_number, a4); else internal_charset = 0LL; if ( internal_charset == 0 && (a4 & 0x10) != 0 ) { strcpy((char *)get_charsets_dir((long long)v11), "Index.xml"); my_error(22, 4, a2, (unsigned int)v11, v8, v9); } return internal_charset; }
my_charset_get_by_name: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x220 MOV R15,RCX MOV R12D,EDX MOV RBX,RSI MOV R14,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x28],RAX LEA RDI,[0xd07b30] LEA RSI,[0x19262f] CALL 0x00129240 MOV RDI,RBX MOV ESI,R12D MOV RDX,R15 CALL 0x0019281a TEST EAX,EAX JZ 0x00193006 MOV RDI,R14 MOV ESI,EAX MOV RDX,R15 CALL 0x00192abe MOV R14,RAX JMP 0x00193009 LAB_00193006: XOR R14D,R14D LAB_00193009: TEST R14,R14 SETNZ AL TEST R15B,0x10 SETZ CL OR CL,AL JNZ 0x00193053 LEA R15,[RBP + -0x240] MOV RDI,R15 CALL 0x001923ef MOV RCX,0x6d782e7865646e49 MOV qword ptr [RAX],RCX MOV word ptr [RAX + 0x8],0x6c MOV ESI,0x4 MOV EDI,0x16 MOV RDX,RBX MOV RCX,R15 XOR EAX,EAX CALL 0x0019e0bb LAB_00193053: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x28] JNZ 0x00193075 MOV RAX,R14 ADD RSP,0x220 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00193075: CALL 0x00129270
long my_charset_get_by_name(int8 param_1,int8 param_2,int4 param_3,ulong param_4) { int iVar1; long lVar2; int8 *puVar3; long in_FS_OFFSET; int1 local_248 [536]; long local_30; local_30 = *(long *)(in_FS_OFFSET + 0x28); pthread_once(&charsets_initialized,init_available_charsets); iVar1 = get_charset_number(param_2,param_3,param_4); if (iVar1 == 0) { lVar2 = 0; } else { lVar2 = get_internal_charset(param_1,iVar1,param_4); } if ((param_4 & 0x10) != 0 && lVar2 == 0) { puVar3 = (int8 *)get_charsets_dir(local_248); *puVar3 = 0x6d782e7865646e49; *(int2 *)(puVar3 + 1) = 0x6c; my_error(0x16,4,param_2,local_248); } if (*(long *)(in_FS_OFFSET + 0x28) == local_30) { return lVar2; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
27,644
OpenSubdiv::v3_6_0::Far::GregoryTriConverter<double>::computeIrregularFacePoint(int, int, int, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<double> const&, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<double> const&, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<double> const&, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<double>&, double, double*, int*) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/loopPatchBuilder.cpp
void GregoryTriConverter<REAL>::computeIrregularFacePoint( int cIndexNear, int edgeInNearCornerRing, int cIndexFar, Point const & p, Point const & eNear, Point const & eFar, Point & fNear, REAL signForSideOfEdge, Weight *rowWeights, int *columnMask) const { CornerTopology const & cornerNear = _corners[cIndexNear]; CornerTopology const & cornerFar = _corners[cIndexFar]; int valence = cornerNear.valence; Weight cosNear = cornerNear.cosFaceAngle; Weight cosFar = cornerFar.cosFaceAngle; // // From Loop, Schaefer et al, a face point F is computed as: // // F = (1/d) * (c0 * P0 + (d - 2*c0 - c1) * E0 + 2*c1 * E1 + R) // // where d = 3 for quads and d = 4 for triangles, and R is: // // R = 1/3 (Mm + Mp) + 2/3 (Cm + Cp) // // where Mm and Mp are the midpoints of the two adjacent edges // and Cm and Cp are the midpoints of the two adjacent faces. // Weight pCoeff = cosFar / 4.0f; Weight eNearCoeff = (4.0f - 2.0f * cosNear - cosFar) / 4.0f; Weight eFarCoeff = 2.0f * cosNear / 4.0f; int fullRowSize = _numSourcePoints; std::memset(&columnMask[0], 0, fullRowSize * sizeof(int)); std::memset(&rowWeights[0], 0, fullRowSize * sizeof(Weight)); _addSparsePointToFullRow(rowWeights, p, pCoeff, columnMask); _addSparsePointToFullRow(rowWeights, eNear, eNearCoeff, columnMask); _addSparsePointToFullRow(rowWeights, eFar, eFarCoeff, columnMask); // Remember that R is to be computed about an interior edge and is // comprised of the two pairs of points opposite the interior edge // int iEdgeInterior = edgeInNearCornerRing; int iEdgePrev = (iEdgeInterior + valence - 1) % valence; int iEdgeNext = (iEdgeInterior + 1) % valence; Weight rScale = (REAL) (0.25 * (7.0 / 18.0)); rowWeights[cornerNear.ringPoints[iEdgePrev]] += -signForSideOfEdge * rScale; rowWeights[cornerNear.ringPoints[iEdgeNext]] += signForSideOfEdge * rScale; int nWeights = 0; for (int i = 0; i < fullRowSize; ++i) { if (columnMask[i]) { fNear.Assign(nWeights++, columnMask[i] - 1, rowWeights[i]); } } // Complete the expected row size when val-2 corners induce duplicates: if (_hasVal2InteriorCorner && (nWeights < fNear.GetSize())) { while (nWeights < fNear.GetSize()) { fNear.Assign(nWeights++, cIndexNear, 0.0f); } } assert(fNear.GetSize() == nWeights); }
O0
cpp
OpenSubdiv::v3_6_0::Far::GregoryTriConverter<double>::computeIrregularFacePoint(int, int, int, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<double> const&, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<double> const&, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<double> const&, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<double>&, double, double*, int*) const: pushq %rbp movq %rsp, %rbp subq $0xd0, %rsp movq 0x28(%rbp), %rax movq 0x20(%rbp), %rax movq 0x18(%rbp), %rax movq 0x10(%rbp), %rax movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movl %ecx, -0x14(%rbp) movq %r8, -0x20(%rbp) movq %r9, -0x28(%rbp) movsd %xmm0, -0x30(%rbp) movq -0x8(%rbp), %rax movq %rax, -0xc8(%rbp) movq %rax, %rcx addq $0x18, %rcx movslq -0xc(%rbp), %rdx imulq $0xb0, %rdx, %rdx addq %rdx, %rcx movq %rcx, -0x38(%rbp) movq %rax, %rcx addq $0x18, %rcx movslq -0x14(%rbp), %rdx imulq $0xb0, %rdx, %rdx addq %rdx, %rcx movq %rcx, -0x40(%rbp) movq -0x38(%rbp), %rcx movl 0x4(%rcx), %ecx movl %ecx, -0x44(%rbp) movq -0x38(%rbp), %rcx movsd 0x18(%rcx), %xmm0 movsd %xmm0, -0x50(%rbp) movq -0x40(%rbp), %rcx movsd 0x18(%rcx), %xmm0 movsd %xmm0, -0x58(%rbp) movsd -0x58(%rbp), %xmm0 movsd 0xcf6f3(%rip), %xmm1 # 0x1ec5b8 divsd %xmm1, %xmm0 movsd %xmm0, -0x60(%rbp) movsd -0x50(%rbp), %xmm1 addsd %xmm1, %xmm1 movsd 0xcf6d9(%rip), %xmm0 # 0x1ec5b8 subsd %xmm1, %xmm0 subsd -0x58(%rbp), %xmm0 movsd 0xcf6c8(%rip), %xmm1 # 0x1ec5b8 divsd %xmm1, %xmm0 movsd %xmm0, -0x68(%rbp) movsd 0xcf6bf(%rip), %xmm0 # 0x1ec5c0 mulsd -0x50(%rbp), %xmm0 movsd 0xcf6aa(%rip), %xmm1 # 0x1ec5b8 divsd %xmm1, %xmm0 movsd %xmm0, -0x70(%rbp) movl (%rax), %eax movl %eax, -0x74(%rbp) movq 0x28(%rbp), %rdi movslq -0x74(%rbp), %rdx shlq $0x2, %rdx xorl %esi, %esi callq 0xc8170 movq 0x20(%rbp), %rdi movslq -0x74(%rbp), %rdx shlq $0x3, %rdx xorl %esi, %esi callq 0xc8170 movq 0x20(%rbp), %rdi movq -0x20(%rbp), %rsi movsd -0x60(%rbp), %xmm0 movq 0x28(%rbp), %rdx callq 0x11d270 movq 0x20(%rbp), %rdi movq -0x28(%rbp), %rsi movsd -0x68(%rbp), %xmm0 movq 0x28(%rbp), %rdx callq 0x11d270 movq 0x20(%rbp), %rdi movq 0x10(%rbp), %rsi movsd -0x70(%rbp), %xmm0 movq 0x28(%rbp), %rdx callq 0x11d270 movl -0x10(%rbp), %eax movl %eax, -0x78(%rbp) movl -0x78(%rbp), %eax addl -0x44(%rbp), %eax subl $0x1, %eax cltd idivl -0x44(%rbp) movl %edx, -0x7c(%rbp) movl -0x78(%rbp), %eax addl $0x1, %eax cltd idivl -0x44(%rbp) movl %edx, -0x80(%rbp) movsd 0xd1111(%rip), %xmm0 # 0x1ee0c0 movsd %xmm0, -0x88(%rbp) movsd -0x30(%rbp), %xmm0 movq %xmm0, %rax movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm0 movsd %xmm0, -0xc0(%rbp) movsd -0x88(%rbp), %xmm0 movsd %xmm0, -0xb8(%rbp) movq 0x20(%rbp), %rax movq %rax, -0xb0(%rbp) movq -0x38(%rbp), %rdi addq $0x20, %rdi callq 0xcf290 movsd -0xc0(%rbp), %xmm0 movsd -0xb8(%rbp), %xmm2 movq %rax, %rcx movq -0xb0(%rbp), %rax movslq -0x7c(%rbp), %rdx movslq (%rcx,%rdx,4), %rcx movsd (%rax,%rcx,8), %xmm1 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, (%rax,%rcx,8) movsd -0x30(%rbp), %xmm0 movsd %xmm0, -0xa8(%rbp) movsd -0x88(%rbp), %xmm0 movsd %xmm0, -0xa0(%rbp) movq 0x20(%rbp), %rax movq %rax, -0x98(%rbp) movq -0x38(%rbp), %rdi addq $0x20, %rdi callq 0xcf290 movsd -0xa8(%rbp), %xmm0 movsd -0xa0(%rbp), %xmm2 movq %rax, %rcx movq -0x98(%rbp), %rax movslq -0x80(%rbp), %rdx movslq (%rcx,%rdx,4), %rcx movsd (%rax,%rcx,8), %xmm1 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, (%rax,%rcx,8) movl $0x0, -0x8c(%rbp) movl $0x0, -0x90(%rbp) movl -0x90(%rbp), %eax cmpl -0x74(%rbp), %eax jge 0x11d11e movq 0x28(%rbp), %rax movslq -0x90(%rbp), %rcx cmpl $0x0, (%rax,%rcx,4) je 0x11d10b movq 0x18(%rbp), %rdi movl -0x8c(%rbp), %esi movl %esi, %eax addl $0x1, %eax movl %eax, -0x8c(%rbp) movq 0x28(%rbp), %rax movslq -0x90(%rbp), %rcx movl (%rax,%rcx,4), %edx subl $0x1, %edx movq 0x20(%rbp), %rax movslq -0x90(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 callq 0x11c820 jmp 0x11d10d movl -0x90(%rbp), %eax addl $0x1, %eax movl %eax, -0x90(%rbp) jmp 0x11d0b4 movq -0xc8(%rbp), %rax testb $0x1, 0x9(%rax) je 0x11d193 movl -0x8c(%rbp), %eax movl %eax, -0xcc(%rbp) movq 0x18(%rbp), %rdi callq 0x11c860 movl %eax, %ecx movl -0xcc(%rbp), %eax cmpl %ecx, %eax jge 0x11d193 jmp 0x11d14e movl -0x8c(%rbp), %eax movl %eax, -0xd0(%rbp) movq 0x18(%rbp), %rdi callq 0x11c860 movl %eax, %ecx movl -0xd0(%rbp), %eax cmpl %ecx, %eax jge 0x11d191 movq 0x18(%rbp), %rdi movl -0x8c(%rbp), %esi movl %esi, %eax addl $0x1, %eax movl %eax, -0x8c(%rbp) movl -0xc(%rbp), %edx xorps %xmm0, %xmm0 callq 0x11c820 jmp 0x11d14e jmp 0x11d193 movq 0x18(%rbp), %rdi callq 0x11c860 cmpl -0x8c(%rbp), %eax jne 0x11d1a6 jmp 0x11d1c5 leaq 0xcfcd3(%rip), %rdi # 0x1ece80 leaq 0xd18e4(%rip), %rsi # 0x1eea98 movl $0x54e, %edx # imm = 0x54E leaq 0xd2487(%rip), %rcx # 0x1ef647 callq 0xc9440 addq $0xd0, %rsp popq %rbp retq nop
_ZNK10OpenSubdiv6v3_6_03Far19GregoryTriConverterIdE25computeIrregularFacePointEiiiRKNS1_12_GLOBAL__N_115SparseMatrixRowIdEES8_S8_RS6_dPdPi: push rbp mov rbp, rsp sub rsp, 0D0h mov rax, [rbp+arg_18] mov rax, [rbp+arg_10] mov rax, [rbp+arg_8] mov rax, [rbp+arg_0] mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_10], edx mov [rbp+var_14], ecx mov [rbp+var_20], r8 mov [rbp+var_28], r9 movsd [rbp+var_30], xmm0 mov rax, [rbp+var_8] mov [rbp+var_C8], rax mov rcx, rax add rcx, 18h movsxd rdx, [rbp+var_C] imul rdx, 0B0h add rcx, rdx mov [rbp+var_38], rcx mov rcx, rax add rcx, 18h movsxd rdx, [rbp+var_14] imul rdx, 0B0h add rcx, rdx mov [rbp+var_40], rcx mov rcx, [rbp+var_38] mov ecx, [rcx+4] mov [rbp+var_44], ecx mov rcx, [rbp+var_38] movsd xmm0, qword ptr [rcx+18h] movsd [rbp+var_50], xmm0 mov rcx, [rbp+var_40] movsd xmm0, qword ptr [rcx+18h] movsd [rbp+var_58], xmm0 movsd xmm0, [rbp+var_58] movsd xmm1, cs:qword_1EC5B8 divsd xmm0, xmm1 movsd [rbp+var_60], xmm0 movsd xmm1, [rbp+var_50] addsd xmm1, xmm1 movsd xmm0, cs:qword_1EC5B8 subsd xmm0, xmm1 subsd xmm0, [rbp+var_58] movsd xmm1, cs:qword_1EC5B8 divsd xmm0, xmm1 movsd [rbp+var_68], xmm0 movsd xmm0, cs:qword_1EC5C0 mulsd xmm0, [rbp+var_50] movsd xmm1, cs:qword_1EC5B8 divsd xmm0, xmm1 movsd [rbp+var_70], xmm0 mov eax, [rax] mov [rbp+var_74], eax mov rdi, [rbp+arg_18] movsxd rdx, [rbp+var_74] shl rdx, 2 xor esi, esi call _memset mov rdi, [rbp+arg_10] movsxd rdx, [rbp+var_74] shl rdx, 3 xor esi, esi call _memset mov rdi, [rbp+arg_10] mov rsi, [rbp+var_20] movsd xmm0, [rbp+var_60] mov rdx, [rbp+arg_18] call _ZN10OpenSubdiv6v3_6_03Far12_GLOBAL__N_124_addSparsePointToFullRowIdEEvPT_RKNS2_15SparseMatrixRowIS4_EES4_Pi_0; OpenSubdiv::v3_6_0::Far::`anonymous namespace'::_addSparsePointToFullRow<double>(double *,OpenSubdiv::v3_6_0::Far::`anonymous namespace'::SparseMatrixRow<double> const&,double,int *) mov rdi, [rbp+arg_10] mov rsi, [rbp+var_28] movsd xmm0, [rbp+var_68] mov rdx, [rbp+arg_18] call _ZN10OpenSubdiv6v3_6_03Far12_GLOBAL__N_124_addSparsePointToFullRowIdEEvPT_RKNS2_15SparseMatrixRowIS4_EES4_Pi_0; OpenSubdiv::v3_6_0::Far::`anonymous namespace'::_addSparsePointToFullRow<double>(double *,OpenSubdiv::v3_6_0::Far::`anonymous namespace'::SparseMatrixRow<double> const&,double,int *) mov rdi, [rbp+arg_10] mov rsi, [rbp+arg_0] movsd xmm0, [rbp+var_70] mov rdx, [rbp+arg_18] call _ZN10OpenSubdiv6v3_6_03Far12_GLOBAL__N_124_addSparsePointToFullRowIdEEvPT_RKNS2_15SparseMatrixRowIS4_EES4_Pi_0; OpenSubdiv::v3_6_0::Far::`anonymous namespace'::_addSparsePointToFullRow<double>(double *,OpenSubdiv::v3_6_0::Far::`anonymous namespace'::SparseMatrixRow<double> const&,double,int *) mov eax, [rbp+var_10] mov [rbp+var_78], eax mov eax, [rbp+var_78] add eax, [rbp+var_44] sub eax, 1 cdq idiv [rbp+var_44] mov [rbp+var_7C], edx mov eax, [rbp+var_78] add eax, 1 cdq idiv [rbp+var_44] mov [rbp+var_80], edx movsd xmm0, cs:qword_1EE0C0 movsd [rbp+var_88], xmm0 movsd xmm0, [rbp+var_30] movq rax, xmm0 mov rcx, 8000000000000000h xor rax, rcx movq xmm0, rax movsd [rbp+var_C0], xmm0 movsd xmm0, [rbp+var_88] movsd [rbp+var_B8], xmm0 mov rax, [rbp+arg_10] mov [rbp+var_B0], rax mov rdi, [rbp+var_38] add rdi, 20h ; ' ' call __ZNK10OpenSubdiv6v3_6_03Vtr8internal11StackBufferIiLj30ELb1EEcvPKiEv; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int,30u,true>::operator int const*(void) movsd xmm0, [rbp+var_C0] movsd xmm2, [rbp+var_B8] mov rcx, rax mov rax, [rbp+var_B0] movsxd rdx, [rbp+var_7C] movsxd rcx, dword ptr [rcx+rdx*4] movsd xmm1, qword ptr [rax+rcx*8] mulsd xmm0, xmm2 addsd xmm0, xmm1 movsd qword ptr [rax+rcx*8], xmm0 movsd xmm0, [rbp+var_30] movsd [rbp+var_A8], xmm0 movsd xmm0, [rbp+var_88] movsd [rbp+var_A0], xmm0 mov rax, [rbp+arg_10] mov [rbp+var_98], rax mov rdi, [rbp+var_38] add rdi, 20h ; ' ' call __ZNK10OpenSubdiv6v3_6_03Vtr8internal11StackBufferIiLj30ELb1EEcvPKiEv; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int,30u,true>::operator int const*(void) movsd xmm0, [rbp+var_A8] movsd xmm2, [rbp+var_A0] mov rcx, rax mov rax, [rbp+var_98] movsxd rdx, [rbp+var_80] movsxd rcx, dword ptr [rcx+rdx*4] movsd xmm1, qword ptr [rax+rcx*8] mulsd xmm0, xmm2 addsd xmm0, xmm1 movsd qword ptr [rax+rcx*8], xmm0 mov [rbp+var_8C], 0 mov [rbp+var_90], 0 loc_11D0B4: mov eax, [rbp+var_90] cmp eax, [rbp+var_74] jge short loc_11D11E mov rax, [rbp+arg_18] movsxd rcx, [rbp+var_90] cmp dword ptr [rax+rcx*4], 0 jz short loc_11D10B mov rdi, [rbp+arg_8] mov esi, [rbp+var_8C] mov eax, esi add eax, 1 mov [rbp+var_8C], eax mov rax, [rbp+arg_18] movsxd rcx, [rbp+var_90] mov edx, [rax+rcx*4] sub edx, 1 mov rax, [rbp+arg_10] movsxd rcx, [rbp+var_90] movsd xmm0, qword ptr [rax+rcx*8] call _ZN10OpenSubdiv6v3_6_03Far12_GLOBAL__N_115SparseMatrixRowIdE6AssignEiid_0; OpenSubdiv::v3_6_0::Far::`anonymous namespace'::SparseMatrixRow<double>::Assign(int,int,double) loc_11D10B: jmp short $+2 loc_11D10D: mov eax, [rbp+var_90] add eax, 1 mov [rbp+var_90], eax jmp short loc_11D0B4 loc_11D11E: mov rax, [rbp+var_C8] test byte ptr [rax+9], 1 jz short loc_11D193 mov eax, [rbp+var_8C] mov [rbp+var_CC], eax mov rdi, [rbp+arg_8] call _ZNK10OpenSubdiv6v3_6_03Far12_GLOBAL__N_115SparseMatrixRowIdE7GetSizeEv_0; OpenSubdiv::v3_6_0::Far::`anonymous namespace'::SparseMatrixRow<double>::GetSize(void) mov ecx, eax mov eax, [rbp+var_CC] cmp eax, ecx jge short loc_11D193 jmp short $+2 loc_11D14E: mov eax, [rbp+var_8C] mov [rbp+var_D0], eax mov rdi, [rbp+arg_8] call _ZNK10OpenSubdiv6v3_6_03Far12_GLOBAL__N_115SparseMatrixRowIdE7GetSizeEv_0; OpenSubdiv::v3_6_0::Far::`anonymous namespace'::SparseMatrixRow<double>::GetSize(void) mov ecx, eax mov eax, [rbp+var_D0] cmp eax, ecx jge short loc_11D191 mov rdi, [rbp+arg_8] mov esi, [rbp+var_8C] mov eax, esi add eax, 1 mov [rbp+var_8C], eax mov edx, [rbp+var_C] xorps xmm0, xmm0 call _ZN10OpenSubdiv6v3_6_03Far12_GLOBAL__N_115SparseMatrixRowIdE6AssignEiid_0; OpenSubdiv::v3_6_0::Far::`anonymous namespace'::SparseMatrixRow<double>::Assign(int,int,double) jmp short loc_11D14E loc_11D191: jmp short $+2 loc_11D193: mov rdi, [rbp+arg_8] call _ZNK10OpenSubdiv6v3_6_03Far12_GLOBAL__N_115SparseMatrixRowIdE7GetSizeEv_0; OpenSubdiv::v3_6_0::Far::`anonymous namespace'::SparseMatrixRow<double>::GetSize(void) cmp eax, [rbp+var_8C] jnz short loc_11D1A6 jmp short loc_11D1C5 loc_11D1A6: lea rdi, aFnearGetsizeNw; "fNear.GetSize() == nWeights" lea rsi, aWorkspaceLlm4b_10; "/workspace/llm4binary/github/2025_star3"... mov edx, 54Eh lea rcx, aVoidOpensubdiv_44; "void OpenSubdiv::v3_6_0::Far::GregoryTr"... call ___assert_fail loc_11D1C5: add rsp, 0D0h pop rbp retn
long long OpenSubdiv::v3_6_0::Far::GregoryTriConverter<double>::computeIrregularFacePoint( int *a1, int a2, int a3, int a4, long long a5, long long a6, double a7, long long a8, unsigned int *a9, long long a10, long long a11) { long long v11; // rcx long long v12; // rcx int v13; // esi int v14; // esi long long result; // rax int i; // [rsp+40h] [rbp-90h] int v17; // [rsp+44h] [rbp-8Ch] int v18; // [rsp+5Ch] [rbp-74h] double v19; // [rsp+78h] [rbp-58h] double v20; // [rsp+80h] [rbp-50h] int v21; // [rsp+8Ch] [rbp-44h] long long v22; // [rsp+98h] [rbp-38h] v22 = (long long)&a1[44 * a2 + 6]; v21 = *(_DWORD *)(v22 + 4); v20 = *(double *)(v22 + 24); v19 = *(double *)&a1[44 * a4 + 12]; v18 = *a1; memset(a11, 0LL, 4LL * *a1); memset(a10, 0LL, 8LL * v18); OpenSubdiv::v3_6_0::Far::`anonymous namespace'::_addSparsePointToFullRow<double>(a10, a5, a11, v19 / 4.0); OpenSubdiv::v3_6_0::Far::`anonymous namespace'::_addSparsePointToFullRow<double>( a10, a6, a11, (4.0 - (v20 + v20) - v19) / 4.0); OpenSubdiv::v3_6_0::Far::`anonymous namespace'::_addSparsePointToFullRow<double>(a10, a8, a11, 2.0 * v20 / 4.0); v11 = *(int *)(OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int,30u,true>::operator int const*(v22 + 32) + 4LL * ((v21 + a3 - 1) % v21)); *(double *)(a10 + 8 * v11) = COERCE_DOUBLE(*(_QWORD *)&a7 ^ 0x8000000000000000LL) * 0.09722222222222222 + *(double *)(a10 + 8 * v11); v12 = *(int *)(OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int,30u,true>::operator int const*(v22 + 32) + 4LL * ((a3 + 1) % v21)); *(double *)(a10 + 8 * v12) = a7 * 0.09722222222222222 + *(double *)(a10 + 8 * v12); v17 = 0; for ( i = 0; i < v18; ++i ) { if ( *(_DWORD *)(a11 + 4LL * i) ) { v13 = v17++; OpenSubdiv::v3_6_0::Far::`anonymous namespace'::SparseMatrixRow<double>::Assign( (long long)a9, v13, *(_DWORD *)(a11 + 4LL * i) - 1, *(double *)(a10 + 8LL * i)); } } if ( (*((_BYTE *)a1 + 9) & 1) != 0 && v17 < (int)OpenSubdiv::v3_6_0::Far::`anonymous namespace'::SparseMatrixRow<double>::GetSize(a9) ) { while ( v17 < (int)OpenSubdiv::v3_6_0::Far::`anonymous namespace'::SparseMatrixRow<double>::GetSize(a9) ) { v14 = v17++; OpenSubdiv::v3_6_0::Far::`anonymous namespace'::SparseMatrixRow<double>::Assign((long long)a9, v14, a2, 0.0); } } result = OpenSubdiv::v3_6_0::Far::`anonymous namespace'::SparseMatrixRow<double>::GetSize(a9); if ( (_DWORD)result != v17 ) __assert_fail( "fNear.GetSize() == nWeights", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/loopPatchBuilder.cpp", 1358LL, "void OpenSubdiv::v3_6_0::Far::GregoryTriConverter<double>::computeIrregularFacePoint(int, int, int, const Point &," " const Point &, const Point &, Point &, REAL, Weight *, int *) const [REAL = double]"); return result; }
27,645
OpenSubdiv::v3_6_0::Far::GregoryTriConverter<double>::computeIrregularFacePoint(int, int, int, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<double> const&, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<double> const&, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<double> const&, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<double>&, double, double*, int*) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/loopPatchBuilder.cpp
void GregoryTriConverter<REAL>::computeIrregularFacePoint( int cIndexNear, int edgeInNearCornerRing, int cIndexFar, Point const & p, Point const & eNear, Point const & eFar, Point & fNear, REAL signForSideOfEdge, Weight *rowWeights, int *columnMask) const { CornerTopology const & cornerNear = _corners[cIndexNear]; CornerTopology const & cornerFar = _corners[cIndexFar]; int valence = cornerNear.valence; Weight cosNear = cornerNear.cosFaceAngle; Weight cosFar = cornerFar.cosFaceAngle; // // From Loop, Schaefer et al, a face point F is computed as: // // F = (1/d) * (c0 * P0 + (d - 2*c0 - c1) * E0 + 2*c1 * E1 + R) // // where d = 3 for quads and d = 4 for triangles, and R is: // // R = 1/3 (Mm + Mp) + 2/3 (Cm + Cp) // // where Mm and Mp are the midpoints of the two adjacent edges // and Cm and Cp are the midpoints of the two adjacent faces. // Weight pCoeff = cosFar / 4.0f; Weight eNearCoeff = (4.0f - 2.0f * cosNear - cosFar) / 4.0f; Weight eFarCoeff = 2.0f * cosNear / 4.0f; int fullRowSize = _numSourcePoints; std::memset(&columnMask[0], 0, fullRowSize * sizeof(int)); std::memset(&rowWeights[0], 0, fullRowSize * sizeof(Weight)); _addSparsePointToFullRow(rowWeights, p, pCoeff, columnMask); _addSparsePointToFullRow(rowWeights, eNear, eNearCoeff, columnMask); _addSparsePointToFullRow(rowWeights, eFar, eFarCoeff, columnMask); // Remember that R is to be computed about an interior edge and is // comprised of the two pairs of points opposite the interior edge // int iEdgeInterior = edgeInNearCornerRing; int iEdgePrev = (iEdgeInterior + valence - 1) % valence; int iEdgeNext = (iEdgeInterior + 1) % valence; Weight rScale = (REAL) (0.25 * (7.0 / 18.0)); rowWeights[cornerNear.ringPoints[iEdgePrev]] += -signForSideOfEdge * rScale; rowWeights[cornerNear.ringPoints[iEdgeNext]] += signForSideOfEdge * rScale; int nWeights = 0; for (int i = 0; i < fullRowSize; ++i) { if (columnMask[i]) { fNear.Assign(nWeights++, columnMask[i] - 1, rowWeights[i]); } } // Complete the expected row size when val-2 corners induce duplicates: if (_hasVal2InteriorCorner && (nWeights < fNear.GetSize())) { while (nWeights < fNear.GetSize()) { fNear.Assign(nWeights++, cIndexNear, 0.0f); } } assert(fNear.GetSize() == nWeights); }
O2
cpp
OpenSubdiv::v3_6_0::Far::GregoryTriConverter<double>::computeIrregularFacePoint(int, int, int, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<double> const&, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<double> const&, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<double> const&, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<double>&, double, double*, int*) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movss %xmm0, 0x14(%rsp) movq %r9, 0x20(%rsp) movq %r8, 0x18(%rsp) movq %rdx, 0x30(%rsp) movl %esi, %ebx movq %rdi, %r14 movq 0x98(%rsp), %r15 movq 0x90(%rsp), %r12 movslq %esi, %rax imulq $0xa8, %rax, %rdx movq %rdx, 0x40(%rsp) movslq %ecx, %rax movl 0x1c(%rdi,%rdx), %ecx movq %rcx, 0x28(%rsp) movss 0x2c(%rdi,%rdx), %xmm1 imulq $0xa8, %rax, %rax movss 0x2c(%rdi,%rax), %xmm3 movss 0x50be8(%rip), %xmm0 # 0xbc008 addss %xmm1, %xmm1 movss 0x54c88(%rip), %xmm2 # 0xc00b4 subss %xmm1, %xmm2 subss %xmm3, %xmm2 mulss %xmm0, %xmm3 movss %xmm3, 0x8(%rsp) mulss %xmm0, %xmm2 movss %xmm2, 0xc(%rsp) mulss %xmm0, %xmm1 movss %xmm1, 0x10(%rsp) movslq (%rdi), %rbp movq %rbp, 0x38(%rsp) shlq $0x2, %rbp xorl %r13d, %r13d movq %r15, %rdi xorl %esi, %esi movq %rbp, %rdx callq 0x50c10 movq %r12, %rdi xorl %esi, %esi movq %rbp, %rdx callq 0x50c10 movq %r12, %rdi movq 0x18(%rsp), %rsi movss 0x8(%rsp), %xmm0 movq %r15, %rdx callq 0x6b630 movq %r12, %rdi movq 0x20(%rsp), %rsi movss 0xc(%rsp), %xmm0 movq %r15, %rdx callq 0x6b630 movq %r12, %rdi movq 0x80(%rsp), %rsi movss 0x10(%rsp), %xmm0 movq %r15, %rdx callq 0x6b630 movq 0x88(%rsp), %r9 movq 0x30(%rsp), %rsi movq 0x28(%rsp), %rcx leal (%rsi,%rcx), %eax decl %eax cltd idivl %ecx movq %rcx, %rdi movl %edx, %ecx incl %esi movq %rsi, %rax cltd idivl %edi movq 0x40(%rsp), %rax movq 0x30(%r14,%rax), %rax movslq %ecx, %rcx movslq (%rax,%rcx,4), %rcx movss 0x14(%rsp), %xmm1 mulss 0x54bb2(%rip), %xmm1 # 0xc00b8 movss (%r12,%rcx,4), %xmm0 subss %xmm1, %xmm0 movss %xmm0, (%r12,%rcx,4) movslq %edx, %rcx movslq (%rax,%rcx,4), %rax addss (%r12,%rax,4), %xmm1 movss %xmm1, (%r12,%rax,4) movq 0x8(%r9), %rdx movq 0x10(%r9), %rsi movq 0x38(%rsp), %rax testl %eax, %eax movl $0x0, %edi cmovgl %eax, %edi xorl %ecx, %ecx movslq %ecx, %rax cmpq %r13, %rdi je 0x6b56d movl (%r15,%r13,4), %r8d testl %r8d, %r8d je 0x6b568 leal 0x1(%rax), %ecx decl %r8d movss (%r12,%r13,4), %xmm0 movl %r8d, (%rdx,%rax,4) movss %xmm0, (%rsi,%rax,4) incq %r13 jmp 0x6b542 movl (%r9), %edx cmpl %edx, %ecx setl %sil andb 0x9(%r14), %sil cmpb $0x1, %sil jne 0x6b5a1 movq 0x8(%r9), %rcx movq 0x10(%r9), %rsi movslq %edx, %rdi cmpq %rdi, %rax jge 0x6b59f movl %ebx, (%rcx,%rax,4) andl $0x0, (%rsi,%rax,4) incq %rax movl (%r9), %edx jmp 0x6b588 movl %eax, %ecx cmpl %ecx, %edx jne 0x6b5b4 addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x53945(%rip), %rdi # 0xbef00 leaq 0x55706(%rip), %rsi # 0xc0cc8 leaq 0x55bca(%rip), %rcx # 0xc1193 movl $0x54e, %edx # imm = 0x54E callq 0x512a0 nop
_ZNK10OpenSubdiv6v3_6_03Far19GregoryTriConverterIfE25computeIrregularFacePointEiiiRKNS1_12_GLOBAL__N_115SparseMatrixRowIfEES8_S8_RS6_fPfPi: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h movss [rsp+78h+var_64], xmm0 mov [rsp+78h+var_58], r9 mov [rsp+78h+var_60], r8 mov [rsp+78h+var_48], rdx mov ebx, esi mov r14, rdi mov r15, [rsp+78h+arg_18] mov r12, [rsp+78h+arg_10] movsxd rax, esi imul rdx, rax, 0A8h mov [rsp+78h+var_38], rdx movsxd rax, ecx mov ecx, [rdi+rdx+1Ch] mov [rsp+78h+var_50], rcx movss xmm1, dword ptr [rdi+rdx+2Ch] imul rax, 0A8h movss xmm3, dword ptr [rdi+rax+2Ch] movss xmm0, cs:dword_BC008 addss xmm1, xmm1 movss xmm2, cs:dword_C00B4 subss xmm2, xmm1 subss xmm2, xmm3 mulss xmm3, xmm0 movss [rsp+78h+var_70], xmm3 mulss xmm2, xmm0 movss [rsp+78h+var_6C], xmm2 mulss xmm1, xmm0 movss [rsp+78h+var_68], xmm1 movsxd rbp, dword ptr [rdi] mov [rsp+78h+var_40], rbp shl rbp, 2 xor r13d, r13d mov rdi, r15 xor esi, esi mov rdx, rbp call _memset mov rdi, r12 xor esi, esi mov rdx, rbp call _memset mov rdi, r12 mov rsi, [rsp+78h+var_60] movss xmm0, [rsp+78h+var_70] mov rdx, r15 call _ZN10OpenSubdiv6v3_6_03Far12_GLOBAL__N_124_addSparsePointToFullRowIfEEvPT_RKNS2_15SparseMatrixRowIS4_EES4_Pi_0; OpenSubdiv::v3_6_0::Far::`anonymous namespace'::_addSparsePointToFullRow<float>(float *,OpenSubdiv::v3_6_0::Far::`anonymous namespace'::SparseMatrixRow<float> const&,float,int *) mov rdi, r12 mov rsi, [rsp+78h+var_58] movss xmm0, [rsp+78h+var_6C] mov rdx, r15 call _ZN10OpenSubdiv6v3_6_03Far12_GLOBAL__N_124_addSparsePointToFullRowIfEEvPT_RKNS2_15SparseMatrixRowIS4_EES4_Pi_0; OpenSubdiv::v3_6_0::Far::`anonymous namespace'::_addSparsePointToFullRow<float>(float *,OpenSubdiv::v3_6_0::Far::`anonymous namespace'::SparseMatrixRow<float> const&,float,int *) mov rdi, r12 mov rsi, [rsp+78h+arg_0] movss xmm0, [rsp+78h+var_68] mov rdx, r15 call _ZN10OpenSubdiv6v3_6_03Far12_GLOBAL__N_124_addSparsePointToFullRowIfEEvPT_RKNS2_15SparseMatrixRowIS4_EES4_Pi_0; OpenSubdiv::v3_6_0::Far::`anonymous namespace'::_addSparsePointToFullRow<float>(float *,OpenSubdiv::v3_6_0::Far::`anonymous namespace'::SparseMatrixRow<float> const&,float,int *) mov r9, [rsp+78h+arg_8] mov rsi, [rsp+78h+var_48] mov rcx, [rsp+78h+var_50] lea eax, [rsi+rcx] dec eax cdq idiv ecx mov rdi, rcx mov ecx, edx inc esi mov rax, rsi cdq idiv edi mov rax, [rsp+78h+var_38] mov rax, [r14+rax+30h] movsxd rcx, ecx movsxd rcx, dword ptr [rax+rcx*4] movss xmm1, [rsp+78h+var_64] mulss xmm1, cs:dword_C00B8 movss xmm0, dword ptr [r12+rcx*4] subss xmm0, xmm1 movss dword ptr [r12+rcx*4], xmm0 movsxd rcx, edx movsxd rax, dword ptr [rax+rcx*4] addss xmm1, dword ptr [r12+rax*4] movss dword ptr [r12+rax*4], xmm1 mov rdx, [r9+8] mov rsi, [r9+10h] mov rax, [rsp+78h+var_40] test eax, eax mov edi, 0 cmovg edi, eax xor ecx, ecx loc_6B542: movsxd rax, ecx cmp rdi, r13 jz short loc_6B56D mov r8d, [r15+r13*4] test r8d, r8d jz short loc_6B568 lea ecx, [rax+1] dec r8d movss xmm0, dword ptr [r12+r13*4] mov [rdx+rax*4], r8d movss dword ptr [rsi+rax*4], xmm0 loc_6B568: inc r13 jmp short loc_6B542 loc_6B56D: mov edx, [r9] cmp ecx, edx setl sil and sil, [r14+9] cmp sil, 1 jnz short loc_6B5A1 mov rcx, [r9+8] mov rsi, [r9+10h] loc_6B588: movsxd rdi, edx cmp rax, rdi jge short loc_6B59F mov [rcx+rax*4], ebx and dword ptr [rsi+rax*4], 0 inc rax mov edx, [r9] jmp short loc_6B588 loc_6B59F: mov ecx, eax loc_6B5A1: cmp edx, ecx jnz short loc_6B5B4 add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_6B5B4: lea rdi, aFnearGetsizeNw; "fNear.GetSize() == nWeights" lea rsi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github/2025_star3"... lea rcx, aVoidOpensubdiv_38; "void OpenSubdiv::v3_6_0::Far::GregoryTr"... mov edx, 54Eh call ___assert_fail
long long OpenSubdiv::v3_6_0::Far::GregoryTriConverter<float>::computeIrregularFacePoint( int *a1, int a2, int a3, int a4, long long a5, long long a6, float a7, long long a8, int *a9, long long a10, long long a11) { float v13; // xmm3_4 float v14; // xmm1_4 long long v15; // r13 long long v16; // rax long long v17; // rcx long long v18; // rax long long v19; // rdx long long v20; // rsi long long v21; // rdi int v22; // ecx long long result; // rax int v24; // r8d int v25; // xmm0_4 int v26; // edx long long v27; // rcx long long v28; // rsi int v31; // [rsp+28h] [rbp-50h] long long v33; // [rsp+38h] [rbp-40h] long long v34; // [rsp+40h] [rbp-38h] v34 = 42LL * a2; v31 = a1[v34 + 7]; v13 = *(float *)&a1[42 * a4 + 11]; v14 = *(float *)&a1[v34 + 11] + *(float *)&a1[v34 + 11]; v33 = *a1; v15 = 0LL; memset(a11, 0LL, 4 * v33); memset(a10, 0LL, 4 * v33); OpenSubdiv::v3_6_0::Far::`anonymous namespace'::_addSparsePointToFullRow<float>(a10, a5, a11, v13 * 0.25); OpenSubdiv::v3_6_0::Far::`anonymous namespace'::_addSparsePointToFullRow<float>( a10, a6, a11, (float)((float)(4.0 - v14) - v13) * 0.25); OpenSubdiv::v3_6_0::Far::`anonymous namespace'::_addSparsePointToFullRow<float>(a10, a8, a11, v14 * 0.25); v16 = *(_QWORD *)&a1[v34 + 12]; v17 = *(int *)(v16 + 4LL * ((a3 + v31 - 1) % v31)); *(float *)(a10 + 4 * v17) = *(float *)(a10 + 4 * v17) - (float)(a7 * 0.097222224); v18 = *(int *)(v16 + 4LL * ((a3 + 1) % v31)); *(float *)(a10 + 4 * v18) = (float)(a7 * 0.097222224) + *(float *)(a10 + 4 * v18); v19 = *((_QWORD *)a9 + 1); v20 = *((_QWORD *)a9 + 2); v21 = 0LL; if ( (int)v33 > 0 ) v21 = (unsigned int)v33; v22 = 0; while ( 1 ) { result = v22; if ( v21 == v15 ) break; v24 = *(_DWORD *)(a11 + 4 * v15); if ( v24 ) { ++v22; v25 = *(_DWORD *)(a10 + 4 * v15); *(_DWORD *)(v19 + 4 * result) = v24 - 1; *(_DWORD *)(v20 + 4 * result) = v25; } ++v15; } v26 = *a9; if ( (*((_BYTE *)a1 + 9) & (v22 < *a9)) == 1 ) { v27 = *((_QWORD *)a9 + 1); v28 = *((_QWORD *)a9 + 2); while ( result < v26 ) { *(_DWORD *)(v27 + 4 * result) = a2; *(_DWORD *)(v28 + 4 * result++) = 0; v26 = *a9; } v22 = result; } if ( v26 != v22 ) __assert_fail( "fNear.GetSize() == nWeights", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/loopPatchBuilder.cpp", 1358LL, "void OpenSubdiv::v3_6_0::Far::GregoryTriConverter<float>::computeIrregularFacePoint(int, int, int, const Point &, " "const Point &, const Point &, Point &, REAL, Weight *, int *) const [REAL = float]"); return result; }
computeIrregularFacePoint: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOVSS dword ptr [RSP + 0x14],XMM0 MOV qword ptr [RSP + 0x20],R9 MOV qword ptr [RSP + 0x18],R8 MOV qword ptr [RSP + 0x30],RDX MOV EBX,ESI MOV R14,RDI MOV R15,qword ptr [RSP + 0x98] MOV R12,qword ptr [RSP + 0x90] MOVSXD RAX,ESI IMUL RDX,RAX,0xa8 MOV qword ptr [RSP + 0x40],RDX MOVSXD RAX,ECX MOV ECX,dword ptr [RDI + RDX*0x1 + 0x1c] MOV qword ptr [RSP + 0x28],RCX MOVSS XMM1,dword ptr [RDI + RDX*0x1 + 0x2c] IMUL RAX,RAX,0xa8 MOVSS XMM3,dword ptr [RDI + RAX*0x1 + 0x2c] MOVSS XMM0,dword ptr [0x001bc008] ADDSS XMM1,XMM1 MOVSS XMM2,dword ptr [0x001c00b4] SUBSS XMM2,XMM1 SUBSS XMM2,XMM3 MULSS XMM3,XMM0 MOVSS dword ptr [RSP + 0x8],XMM3 MULSS XMM2,XMM0 MOVSS dword ptr [RSP + 0xc],XMM2 MULSS XMM1,XMM0 MOVSS dword ptr [RSP + 0x10],XMM1 MOVSXD RBP,dword ptr [RDI] MOV qword ptr [RSP + 0x38],RBP SHL RBP,0x2 XOR R13D,R13D MOV RDI,R15 XOR ESI,ESI MOV RDX,RBP CALL 0x00150c10 MOV RDI,R12 XOR ESI,ESI MOV RDX,RBP CALL 0x00150c10 MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x18] MOVSS XMM0,dword ptr [RSP + 0x8] MOV RDX,R15 CALL 0x0016b630 MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x20] MOVSS XMM0,dword ptr [RSP + 0xc] MOV RDX,R15 CALL 0x0016b630 MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x80] MOVSS XMM0,dword ptr [RSP + 0x10] MOV RDX,R15 CALL 0x0016b630 MOV R9,qword ptr [RSP + 0x88] MOV RSI,qword ptr [RSP + 0x30] MOV RCX,qword ptr [RSP + 0x28] LEA EAX,[RSI + RCX*0x1] DEC EAX CDQ IDIV ECX MOV RDI,RCX MOV ECX,EDX INC ESI MOV RAX,RSI CDQ IDIV EDI MOV RAX,qword ptr [RSP + 0x40] MOV RAX,qword ptr [R14 + RAX*0x1 + 0x30] MOVSXD RCX,ECX MOVSXD RCX,dword ptr [RAX + RCX*0x4] MOVSS XMM1,dword ptr [RSP + 0x14] MULSS XMM1,dword ptr [0x001c00b8] MOVSS XMM0,dword ptr [R12 + RCX*0x4] SUBSS XMM0,XMM1 MOVSS dword ptr [R12 + RCX*0x4],XMM0 MOVSXD RCX,EDX MOVSXD RAX,dword ptr [RAX + RCX*0x4] ADDSS XMM1,dword ptr [R12 + RAX*0x4] MOVSS dword ptr [R12 + RAX*0x4],XMM1 MOV RDX,qword ptr [R9 + 0x8] MOV RSI,qword ptr [R9 + 0x10] MOV RAX,qword ptr [RSP + 0x38] TEST EAX,EAX MOV EDI,0x0 CMOVG EDI,EAX XOR ECX,ECX LAB_0016b542: MOVSXD RAX,ECX CMP RDI,R13 JZ 0x0016b56d MOV R8D,dword ptr [R15 + R13*0x4] TEST R8D,R8D JZ 0x0016b568 LEA ECX,[RAX + 0x1] DEC R8D MOVSS XMM0,dword ptr [R12 + R13*0x4] MOV dword ptr [RDX + RAX*0x4],R8D MOVSS dword ptr [RSI + RAX*0x4],XMM0 LAB_0016b568: INC R13 JMP 0x0016b542 LAB_0016b56d: MOV EDX,dword ptr [R9] CMP ECX,EDX SETL SIL AND SIL,byte ptr [R14 + 0x9] CMP SIL,0x1 JNZ 0x0016b5a1 MOV RCX,qword ptr [R9 + 0x8] MOV RSI,qword ptr [R9 + 0x10] LAB_0016b588: MOVSXD RDI,EDX CMP RAX,RDI JGE 0x0016b59f MOV dword ptr [RCX + RAX*0x4],EBX AND dword ptr [RSI + RAX*0x4],0x0 INC RAX MOV EDX,dword ptr [R9] JMP 0x0016b588 LAB_0016b59f: MOV ECX,EAX LAB_0016b5a1: CMP EDX,ECX JNZ 0x0016b5b4 ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0016b5b4: LEA RDI,[0x1bef00] LEA RSI,[0x1c0cc8] LEA RCX,[0x1c1193] MOV EDX,0x54e CALL 0x001512a0
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* OpenSubdiv::v3_6_0::Far::GregoryTriConverter<float>::computeIrregularFacePoint(int, int, int, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<float> const&, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<float> const&, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<float> const&, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<float>&, float, float*, int*) const */ void __thiscall OpenSubdiv::v3_6_0::Far::GregoryTriConverter<float>::computeIrregularFacePoint (GregoryTriConverter<float> *this,int param_1,int param_2,int param_3, SparseMatrixRow *param_4,SparseMatrixRow *param_5,SparseMatrixRow *param_6, SparseMatrixRow *param_7,float param_8,float *param_9,int *param_10) { uint uVar1; long lVar2; long lVar3; int iVar4; int iVar5; long lVar6; ulong uVar7; ulong uVar8; float fVar9; float fVar10; float fVar11; lVar6 = (long)param_1 * 0xa8; iVar4 = *(int *)(this + lVar6 + 0x1c); fVar9 = *(float *)(this + lVar6 + 0x2c) + *(float *)(this + lVar6 + 0x2c); fVar11 = *(float *)(this + (long)param_3 * 0xa8 + 0x2c) * DAT_001bc008; fVar10 = ((DAT_001c00b4 - fVar9) - *(float *)(this + (long)param_3 * 0xa8 + 0x2c)) * DAT_001bc008; fVar9 = fVar9 * DAT_001bc008; uVar1 = *(uint *)this; uVar8 = 0; memset(param_10,0,(long)(int)uVar1 << 2); memset(param_9,0,(long)(int)uVar1 << 2); (anonymous_namespace)::_addSparsePointToFullRow<float>(param_9,param_4,fVar11,param_10); (anonymous_namespace)::_addSparsePointToFullRow<float>(param_9,param_5,fVar10,param_10); (anonymous_namespace)::_addSparsePointToFullRow<float>(param_9,param_6,fVar9,param_10); lVar6 = *(long *)(this + lVar6 + 0x30); iVar5 = *(int *)(lVar6 + (long)((param_2 + iVar4 + -1) % iVar4) * 4); fVar9 = param_8 * _DAT_001c00b8; param_9[iVar5] = param_9[iVar5] - fVar9; iVar4 = *(int *)(lVar6 + (long)((param_2 + 1) % iVar4) * 4); param_9[iVar4] = fVar9 + param_9[iVar4]; lVar6 = *(long *)(param_7 + 8); lVar2 = *(long *)(param_7 + 0x10); uVar7 = 0; if (0 < (int)uVar1) { uVar7 = (ulong)uVar1; } iVar4 = 0; for (; lVar3 = (long)iVar4, uVar7 != uVar8; uVar8 = uVar8 + 1) { if (param_10[uVar8] != 0) { iVar4 = iVar4 + 1; fVar9 = param_9[uVar8]; *(int *)(lVar6 + lVar3 * 4) = param_10[uVar8] + -1; *(float *)(lVar2 + lVar3 * 4) = fVar9; } } iVar5 = *(int *)param_7; if ((iVar4 < iVar5 & (byte)this[9]) == 1) { lVar6 = *(long *)(param_7 + 8); lVar2 = *(long *)(param_7 + 0x10); for (; lVar3 < iVar5; lVar3 = lVar3 + 1) { *(int *)(lVar6 + lVar3 * 4) = param_1; *(int4 *)(lVar2 + lVar3 * 4) = 0; iVar5 = *(int *)param_7; } iVar4 = (int)lVar3; } if (iVar5 == iVar4) { return; } /* WARNING: Subroutine does not return */ __assert_fail("fNear.GetSize() == nWeights", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/loopPatchBuilder.cpp" ,0x54e, "void OpenSubdiv::v3_6_0::Far::GregoryTriConverter<float>::computeIrregularFacePoint(int, int, int, const Point &, const Point &, const Point &, Point &, REAL, Weight *, int *) const [REAL = float]" ); }
27,646
OpenSubdiv::v3_6_0::Far::GregoryTriConverter<double>::computeIrregularFacePoint(int, int, int, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<double> const&, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<double> const&, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<double> const&, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<double>&, double, double*, int*) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/loopPatchBuilder.cpp
void GregoryTriConverter<REAL>::computeIrregularFacePoint( int cIndexNear, int edgeInNearCornerRing, int cIndexFar, Point const & p, Point const & eNear, Point const & eFar, Point & fNear, REAL signForSideOfEdge, Weight *rowWeights, int *columnMask) const { CornerTopology const & cornerNear = _corners[cIndexNear]; CornerTopology const & cornerFar = _corners[cIndexFar]; int valence = cornerNear.valence; Weight cosNear = cornerNear.cosFaceAngle; Weight cosFar = cornerFar.cosFaceAngle; // // From Loop, Schaefer et al, a face point F is computed as: // // F = (1/d) * (c0 * P0 + (d - 2*c0 - c1) * E0 + 2*c1 * E1 + R) // // where d = 3 for quads and d = 4 for triangles, and R is: // // R = 1/3 (Mm + Mp) + 2/3 (Cm + Cp) // // where Mm and Mp are the midpoints of the two adjacent edges // and Cm and Cp are the midpoints of the two adjacent faces. // Weight pCoeff = cosFar / 4.0f; Weight eNearCoeff = (4.0f - 2.0f * cosNear - cosFar) / 4.0f; Weight eFarCoeff = 2.0f * cosNear / 4.0f; int fullRowSize = _numSourcePoints; std::memset(&columnMask[0], 0, fullRowSize * sizeof(int)); std::memset(&rowWeights[0], 0, fullRowSize * sizeof(Weight)); _addSparsePointToFullRow(rowWeights, p, pCoeff, columnMask); _addSparsePointToFullRow(rowWeights, eNear, eNearCoeff, columnMask); _addSparsePointToFullRow(rowWeights, eFar, eFarCoeff, columnMask); // Remember that R is to be computed about an interior edge and is // comprised of the two pairs of points opposite the interior edge // int iEdgeInterior = edgeInNearCornerRing; int iEdgePrev = (iEdgeInterior + valence - 1) % valence; int iEdgeNext = (iEdgeInterior + 1) % valence; Weight rScale = (REAL) (0.25 * (7.0 / 18.0)); rowWeights[cornerNear.ringPoints[iEdgePrev]] += -signForSideOfEdge * rScale; rowWeights[cornerNear.ringPoints[iEdgeNext]] += signForSideOfEdge * rScale; int nWeights = 0; for (int i = 0; i < fullRowSize; ++i) { if (columnMask[i]) { fNear.Assign(nWeights++, columnMask[i] - 1, rowWeights[i]); } } // Complete the expected row size when val-2 corners induce duplicates: if (_hasVal2InteriorCorner && (nWeights < fNear.GetSize())) { while (nWeights < fNear.GetSize()) { fNear.Assign(nWeights++, cIndexNear, 0.0f); } } assert(fNear.GetSize() == nWeights); }
O3
cpp
OpenSubdiv::v3_6_0::Far::GregoryTriConverter<double>::computeIrregularFacePoint(int, int, int, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<double> const&, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<double> const&, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<double> const&, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<double>&, double, double*, int*) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movss %xmm0, 0x14(%rsp) movq %r9, %rbp movq %r8, %r13 movq %rdx, 0x28(%rsp) movq 0x88(%rsp), %r15 movq 0x80(%rsp), %r12 movl %esi, 0x8(%rsp) movslq %esi, %rax imulq $0xa8, %rax, %rdx movslq %ecx, %rax movl 0x1c(%rdi,%rdx), %ecx movq %rcx, 0x20(%rsp) movq %rdx, 0x18(%rsp) movss 0x2c(%rdi,%rdx), %xmm0 movss %xmm0, 0x10(%rsp) imulq $0xa8, %rax, %rax movss 0x2c(%rdi,%rax), %xmm0 movss %xmm0, 0xc(%rsp) movq %rdi, 0x30(%rsp) movslq (%rdi), %rbx leaq (,%rbx,4), %r14 movq %r15, %rdi xorl %esi, %esi movq %r14, %rdx callq 0x391a0 movq %r12, %rdi xorl %esi, %esi movq %r14, %rdx callq 0x391a0 movss 0xc(%rsp), %xmm4 movss 0x5de85(%rip), %xmm3 # 0xb5008 cmpl $0x0, (%r13) jle 0x571c7 movaps %xmm4, %xmm0 mulss %xmm3, %xmm0 movq 0x8(%r13), %rax movq 0x10(%r13), %rcx xorl %edx, %edx movslq (%rax,%rdx,4), %rsi movss (%rcx,%rdx,4), %xmm1 mulss %xmm0, %xmm1 addss (%r12,%rsi,4), %xmm1 movss %xmm1, (%r12,%rsi,4) leal 0x1(%rsi), %edi movl %edi, (%r15,%rsi,4) incq %rdx movslq (%r13), %rsi cmpq %rsi, %rdx jl 0x5719b movss 0x10(%rsp), %xmm2 addss %xmm2, %xmm2 movq 0x70(%rsp), %rax cmpl $0x0, (%rbp) jle 0x57227 movss 0x62240(%rip), %xmm0 # 0xb9424 subss %xmm2, %xmm0 subss %xmm4, %xmm0 mulss %xmm3, %xmm0 movq 0x8(%rbp), %rcx movq 0x10(%rbp), %rdx xorl %esi, %esi movslq (%rcx,%rsi,4), %rdi movss (%rdx,%rsi,4), %xmm1 mulss %xmm0, %xmm1 addss (%r12,%rdi,4), %xmm1 movss %xmm1, (%r12,%rdi,4) leal 0x1(%rdi), %r8d movl %r8d, (%r15,%rdi,4) incq %rsi movslq (%rbp), %rdi cmpq %rdi, %rsi jl 0x571fa movq 0x30(%rsp), %r10 movq 0x18(%rsp), %rcx leaq (%r10,%rcx), %rdi addq $0x18, %rdi cmpl $0x0, (%rax) jle 0x57278 mulss %xmm3, %xmm2 movq 0x8(%rax), %rcx movq 0x10(%rax), %rdx xorl %esi, %esi movslq (%rcx,%rsi,4), %r8 movss (%rdx,%rsi,4), %xmm0 mulss %xmm2, %xmm0 addss (%r12,%r8,4), %xmm0 movss %xmm0, (%r12,%r8,4) leal 0x1(%r8), %r9d movl %r9d, (%r15,%r8,4) incq %rsi movslq (%rax), %r8 cmpq %r8, %rsi jl 0x5724c movq 0x78(%rsp), %rsi movq 0x28(%rsp), %r8 movq 0x20(%rsp), %r9 leal (%r8,%r9), %eax decl %eax cltd idivl %r9d movl %edx, %ecx incl %r8d movl %r8d, %eax cltd idivl %r9d movq 0x18(%rdi), %rax movslq %ecx, %rcx movslq (%rax,%rcx,4), %rcx movss (%r12,%rcx,4), %xmm0 movss 0x14(%rsp), %xmm1 mulss 0x6216c(%rip), %xmm1 # 0xb9428 subss %xmm1, %xmm0 movss %xmm0, (%r12,%rcx,4) movslq %edx, %rcx movslq (%rax,%rcx,4), %rax addss (%r12,%rax,4), %xmm1 movss %xmm1, (%r12,%rax,4) testl %ebx, %ebx jle 0x57314 movq 0x8(%rsi), %rcx movq 0x10(%rsi), %rdx xorl %edi, %edi xorl %eax, %eax movl (%r15,%rdi,4), %r8d testl %r8d, %r8d je 0x5730a decl %r8d movss (%r12,%rdi,4), %xmm0 movslq %eax, %r9 incl %eax movl %r8d, (%rcx,%r9,4) movss %xmm0, (%rdx,%r9,4) incq %rdi cmpq %rdi, %rbx jne 0x572e9 jmp 0x57316 xorl %eax, %eax movl (%rsi), %ecx cmpl %ecx, %eax setl %dl andb 0x9(%r10), %dl cmpb $0x1, %dl jne 0x5734b movq 0x8(%rsi), %rdx movq 0x10(%rsi), %rdi cltq movl 0x8(%rsp), %r8d movl %r8d, (%rdx,%rax,4) movl $0x0, (%rdi,%rax,4) incq %rax movslq (%rsi), %rcx cmpq %rcx, %rax jl 0x57335 cmpl %eax, %ecx jne 0x5735e addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x60c7b(%rip), %rdi # 0xb7fe0 leaq 0x62a3c(%rip), %rsi # 0xb9da8 leaq 0x62f00(%rip), %rcx # 0xba273 movl $0x54e, %edx # imm = 0x54E callq 0x39540
_ZNK10OpenSubdiv6v3_6_03Far19GregoryTriConverterIfE25computeIrregularFacePointEiiiRKNS1_12_GLOBAL__N_115SparseMatrixRowIfEES8_S8_RS6_fPfPi: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h movss [rsp+68h+var_54], xmm0 mov rbp, r9 mov r13, r8 mov [rsp+68h+var_40], rdx mov r15, [rsp+68h+arg_18] mov r12, [rsp+68h+arg_10] mov [rsp+68h+var_60], esi movsxd rax, esi imul rdx, rax, 0A8h movsxd rax, ecx mov ecx, [rdi+rdx+1Ch] mov [rsp+68h+var_48], rcx mov [rsp+68h+var_50], rdx movss xmm0, dword ptr [rdi+rdx+2Ch] movss [rsp+68h+var_58], xmm0 imul rax, 0A8h movss xmm0, dword ptr [rdi+rax+2Ch] movss [rsp+68h+var_5C], xmm0 mov [rsp+68h+var_38], rdi movsxd rbx, dword ptr [rdi] lea r14, ds:0[rbx*4] mov rdi, r15 xor esi, esi mov rdx, r14 call _memset mov rdi, r12 xor esi, esi mov rdx, r14 call _memset movss xmm4, [rsp+68h+var_5C] movss xmm3, cs:dword_B5008 cmp dword ptr [r13+0], 0 jle short loc_571C7 movaps xmm0, xmm4 mulss xmm0, xmm3 mov rax, [r13+8] mov rcx, [r13+10h] xor edx, edx loc_5719B: movsxd rsi, dword ptr [rax+rdx*4] movss xmm1, dword ptr [rcx+rdx*4] mulss xmm1, xmm0 addss xmm1, dword ptr [r12+rsi*4] movss dword ptr [r12+rsi*4], xmm1 lea edi, [rsi+1] mov [r15+rsi*4], edi inc rdx movsxd rsi, dword ptr [r13+0] cmp rdx, rsi jl short loc_5719B loc_571C7: movss xmm2, [rsp+68h+var_58] addss xmm2, xmm2 mov rax, [rsp+68h+arg_0] cmp dword ptr [rbp+0], 0 jle short loc_57227 movss xmm0, cs:dword_B9424 subss xmm0, xmm2 subss xmm0, xmm4 mulss xmm0, xmm3 mov rcx, [rbp+8] mov rdx, [rbp+10h] xor esi, esi loc_571FA: movsxd rdi, dword ptr [rcx+rsi*4] movss xmm1, dword ptr [rdx+rsi*4] mulss xmm1, xmm0 addss xmm1, dword ptr [r12+rdi*4] movss dword ptr [r12+rdi*4], xmm1 lea r8d, [rdi+1] mov [r15+rdi*4], r8d inc rsi movsxd rdi, dword ptr [rbp+0] cmp rsi, rdi jl short loc_571FA loc_57227: mov r10, [rsp+68h+var_38] mov rcx, [rsp+68h+var_50] lea rdi, [r10+rcx] add rdi, 18h cmp dword ptr [rax], 0 jle short loc_57278 mulss xmm2, xmm3 mov rcx, [rax+8] mov rdx, [rax+10h] xor esi, esi loc_5724C: movsxd r8, dword ptr [rcx+rsi*4] movss xmm0, dword ptr [rdx+rsi*4] mulss xmm0, xmm2 addss xmm0, dword ptr [r12+r8*4] movss dword ptr [r12+r8*4], xmm0 lea r9d, [r8+1] mov [r15+r8*4], r9d inc rsi movsxd r8, dword ptr [rax] cmp rsi, r8 jl short loc_5724C loc_57278: mov rsi, [rsp+68h+arg_8] mov r8, [rsp+68h+var_40] mov r9, [rsp+68h+var_48] lea eax, [r8+r9] dec eax cdq idiv r9d mov ecx, edx inc r8d mov eax, r8d cdq idiv r9d mov rax, [rdi+18h] movsxd rcx, ecx movsxd rcx, dword ptr [rax+rcx*4] movss xmm0, dword ptr [r12+rcx*4] movss xmm1, [rsp+68h+var_54] mulss xmm1, cs:dword_B9428 subss xmm0, xmm1 movss dword ptr [r12+rcx*4], xmm0 movsxd rcx, edx movsxd rax, dword ptr [rax+rcx*4] addss xmm1, dword ptr [r12+rax*4] movss dword ptr [r12+rax*4], xmm1 test ebx, ebx jle short loc_57314 mov rcx, [rsi+8] mov rdx, [rsi+10h] xor edi, edi xor eax, eax loc_572E9: mov r8d, [r15+rdi*4] test r8d, r8d jz short loc_5730A dec r8d movss xmm0, dword ptr [r12+rdi*4] movsxd r9, eax inc eax mov [rcx+r9*4], r8d movss dword ptr [rdx+r9*4], xmm0 loc_5730A: inc rdi cmp rbx, rdi jnz short loc_572E9 jmp short loc_57316 loc_57314: xor eax, eax loc_57316: mov ecx, [rsi] cmp eax, ecx setl dl and dl, [r10+9] cmp dl, 1 jnz short loc_5734B mov rdx, [rsi+8] mov rdi, [rsi+10h] cdqe mov r8d, [rsp+68h+var_60] loc_57335: mov [rdx+rax*4], r8d mov dword ptr [rdi+rax*4], 0 inc rax movsxd rcx, dword ptr [rsi] cmp rax, rcx jl short loc_57335 loc_5734B: cmp ecx, eax jnz short loc_5735E add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_5735E: lea rdi, aFnearGetsizeNw; "fNear.GetSize() == nWeights" lea rsi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github/2025_star3"... lea rcx, aVoidOpensubdiv_38; "void OpenSubdiv::v3_6_0::Far::GregoryTr"... mov edx, 54Eh call ___assert_fail
long long OpenSubdiv::v3_6_0::Far::GregoryTriConverter<float>::computeIrregularFacePoint( int *a1, int a2, int a3, int a4, int *a5, int *a6, float a7, int *a8, int *a9, long long a10, long long a11) { long long v13; // rdx long long v14; // rbx long long v15; // rax long long v16; // rcx long long v17; // rdx long long v18; // rsi float v19; // xmm2_4 long long v20; // rcx long long v21; // rdx long long v22; // rsi long long v23; // rdi float v24; // xmm2_4 long long v25; // rcx long long v26; // rdx long long v27; // rsi long long v28; // r8 long long v29; // rax long long v30; // rcx long long v31; // rax long long v32; // rcx long long v33; // rdx long long v34; // rdi long long result; // rax int v36; // r8d int v37; // xmm0_4 long long v38; // r9 long long v39; // rcx long long v40; // rdx long long v41; // rdi float v43; // [rsp+Ch] [rbp-5Ch] float v44; // [rsp+10h] [rbp-58h] long long v45; // [rsp+18h] [rbp-50h] int v46; // [rsp+20h] [rbp-48h] v13 = 42LL * a2; v46 = a1[v13 + 7]; v45 = v13 * 4; v44 = *(float *)&a1[v13 + 11]; v43 = *(float *)&a1[42 * a4 + 11]; v14 = *a1; memset(a11, 0LL, 4 * v14); memset(a10, 0LL, 4 * v14); if ( *a5 > 0 ) { v15 = *((_QWORD *)a5 + 1); v16 = *((_QWORD *)a5 + 2); v17 = 0LL; do { v18 = *(int *)(v15 + 4 * v17); *(float *)(a10 + 4 * v18) = (float)(*(float *)(v16 + 4 * v17) * (float)(v43 * 0.25)) + *(float *)(a10 + 4 * v18); *(_DWORD *)(a11 + 4 * v18) = v18 + 1; ++v17; } while ( v17 < *a5 ); } v19 = v44 + v44; if ( *a6 > 0 ) { v20 = *((_QWORD *)a6 + 1); v21 = *((_QWORD *)a6 + 2); v22 = 0LL; do { v23 = *(int *)(v20 + 4 * v22); *(float *)(a10 + 4 * v23) = (float)(*(float *)(v21 + 4 * v22) * (float)((float)((float)(4.0 - v19) - v43) * 0.25)) + *(float *)(a10 + 4 * v23); *(_DWORD *)(a11 + 4 * v23) = v23 + 1; ++v22; } while ( v22 < *a6 ); } if ( *a8 > 0 ) { v24 = v19 * 0.25; v25 = *((_QWORD *)a8 + 1); v26 = *((_QWORD *)a8 + 2); v27 = 0LL; do { v28 = *(int *)(v25 + 4 * v27); *(float *)(a10 + 4 * v28) = (float)(*(float *)(v26 + 4 * v27) * v24) + *(float *)(a10 + 4 * v28); *(_DWORD *)(a11 + 4 * v28) = v28 + 1; ++v27; } while ( v27 < *a8 ); } v29 = *(_QWORD *)((char *)a1 + v45 + 48); v30 = *(int *)(v29 + 4LL * ((a3 + v46 - 1) % v46)); *(float *)(a10 + 4 * v30) = *(float *)(a10 + 4 * v30) - (float)(a7 * 0.097222224); v31 = *(int *)(v29 + 4LL * ((a3 + 1) % v46)); *(float *)(a10 + 4 * v31) = (float)(a7 * 0.097222224) + *(float *)(a10 + 4 * v31); if ( (int)v14 <= 0 ) { result = 0LL; } else { v32 = *((_QWORD *)a9 + 1); v33 = *((_QWORD *)a9 + 2); v34 = 0LL; result = 0LL; do { v36 = *(_DWORD *)(a11 + 4 * v34); if ( v36 ) { v37 = *(_DWORD *)(a10 + 4 * v34); v38 = (int)result; result = (unsigned int)(result + 1); *(_DWORD *)(v32 + 4 * v38) = v36 - 1; *(_DWORD *)(v33 + 4 * v38) = v37; } ++v34; } while ( v14 != v34 ); } LODWORD(v39) = *a9; if ( (*((_BYTE *)a1 + 9) & ((int)result < *a9)) == 1 ) { v40 = *((_QWORD *)a9 + 1); v41 = *((_QWORD *)a9 + 2); result = (int)result; do { *(_DWORD *)(v40 + 4 * result) = a2; *(_DWORD *)(v41 + 4 * result++) = 0; v39 = *a9; } while ( result < v39 ); } if ( (_DWORD)v39 != (_DWORD)result ) __assert_fail( "fNear.GetSize() == nWeights", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/loopPatchBuilder.cpp", 1358LL, "void OpenSubdiv::v3_6_0::Far::GregoryTriConverter<float>::computeIrregularFacePoint(int, int, int, const Point &, " "const Point &, const Point &, Point &, REAL, Weight *, int *) const [REAL = float]"); return result; }
computeIrregularFacePoint: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOVSS dword ptr [RSP + 0x14],XMM0 MOV RBP,R9 MOV R13,R8 MOV qword ptr [RSP + 0x28],RDX MOV R15,qword ptr [RSP + 0x88] MOV R12,qword ptr [RSP + 0x80] MOV dword ptr [RSP + 0x8],ESI MOVSXD RAX,ESI IMUL RDX,RAX,0xa8 MOVSXD RAX,ECX MOV ECX,dword ptr [RDI + RDX*0x1 + 0x1c] MOV qword ptr [RSP + 0x20],RCX MOV qword ptr [RSP + 0x18],RDX MOVSS XMM0,dword ptr [RDI + RDX*0x1 + 0x2c] MOVSS dword ptr [RSP + 0x10],XMM0 IMUL RAX,RAX,0xa8 MOVSS XMM0,dword ptr [RDI + RAX*0x1 + 0x2c] MOVSS dword ptr [RSP + 0xc],XMM0 MOV qword ptr [RSP + 0x30],RDI MOVSXD RBX,dword ptr [RDI] LEA R14,[RBX*0x4] MOV RDI,R15 XOR ESI,ESI MOV RDX,R14 CALL 0x001391a0 MOV RDI,R12 XOR ESI,ESI MOV RDX,R14 CALL 0x001391a0 MOVSS XMM4,dword ptr [RSP + 0xc] MOVSS XMM3,dword ptr [0x001b5008] CMP dword ptr [R13],0x0 JLE 0x001571c7 MOVAPS XMM0,XMM4 MULSS XMM0,XMM3 MOV RAX,qword ptr [R13 + 0x8] MOV RCX,qword ptr [R13 + 0x10] XOR EDX,EDX LAB_0015719b: MOVSXD RSI,dword ptr [RAX + RDX*0x4] MOVSS XMM1,dword ptr [RCX + RDX*0x4] MULSS XMM1,XMM0 ADDSS XMM1,dword ptr [R12 + RSI*0x4] MOVSS dword ptr [R12 + RSI*0x4],XMM1 LEA EDI,[RSI + 0x1] MOV dword ptr [R15 + RSI*0x4],EDI INC RDX MOVSXD RSI,dword ptr [R13] CMP RDX,RSI JL 0x0015719b LAB_001571c7: MOVSS XMM2,dword ptr [RSP + 0x10] ADDSS XMM2,XMM2 MOV RAX,qword ptr [RSP + 0x70] CMP dword ptr [RBP],0x0 JLE 0x00157227 MOVSS XMM0,dword ptr [0x001b9424] SUBSS XMM0,XMM2 SUBSS XMM0,XMM4 MULSS XMM0,XMM3 MOV RCX,qword ptr [RBP + 0x8] MOV RDX,qword ptr [RBP + 0x10] XOR ESI,ESI LAB_001571fa: MOVSXD RDI,dword ptr [RCX + RSI*0x4] MOVSS XMM1,dword ptr [RDX + RSI*0x4] MULSS XMM1,XMM0 ADDSS XMM1,dword ptr [R12 + RDI*0x4] MOVSS dword ptr [R12 + RDI*0x4],XMM1 LEA R8D,[RDI + 0x1] MOV dword ptr [R15 + RDI*0x4],R8D INC RSI MOVSXD RDI,dword ptr [RBP] CMP RSI,RDI JL 0x001571fa LAB_00157227: MOV R10,qword ptr [RSP + 0x30] MOV RCX,qword ptr [RSP + 0x18] LEA RDI,[R10 + RCX*0x1] ADD RDI,0x18 CMP dword ptr [RAX],0x0 JLE 0x00157278 MULSS XMM2,XMM3 MOV RCX,qword ptr [RAX + 0x8] MOV RDX,qword ptr [RAX + 0x10] XOR ESI,ESI LAB_0015724c: MOVSXD R8,dword ptr [RCX + RSI*0x4] MOVSS XMM0,dword ptr [RDX + RSI*0x4] MULSS XMM0,XMM2 ADDSS XMM0,dword ptr [R12 + R8*0x4] MOVSS dword ptr [R12 + R8*0x4],XMM0 LEA R9D,[R8 + 0x1] MOV dword ptr [R15 + R8*0x4],R9D INC RSI MOVSXD R8,dword ptr [RAX] CMP RSI,R8 JL 0x0015724c LAB_00157278: MOV RSI,qword ptr [RSP + 0x78] MOV R8,qword ptr [RSP + 0x28] MOV R9,qword ptr [RSP + 0x20] LEA EAX,[R8 + R9*0x1] DEC EAX CDQ IDIV R9D MOV ECX,EDX INC R8D MOV EAX,R8D CDQ IDIV R9D MOV RAX,qword ptr [RDI + 0x18] MOVSXD RCX,ECX MOVSXD RCX,dword ptr [RAX + RCX*0x4] MOVSS XMM0,dword ptr [R12 + RCX*0x4] MOVSS XMM1,dword ptr [RSP + 0x14] MULSS XMM1,dword ptr [0x001b9428] SUBSS XMM0,XMM1 MOVSS dword ptr [R12 + RCX*0x4],XMM0 MOVSXD RCX,EDX MOVSXD RAX,dword ptr [RAX + RCX*0x4] ADDSS XMM1,dword ptr [R12 + RAX*0x4] MOVSS dword ptr [R12 + RAX*0x4],XMM1 TEST EBX,EBX JLE 0x00157314 MOV RCX,qword ptr [RSI + 0x8] MOV RDX,qword ptr [RSI + 0x10] XOR EDI,EDI XOR EAX,EAX LAB_001572e9: MOV R8D,dword ptr [R15 + RDI*0x4] TEST R8D,R8D JZ 0x0015730a DEC R8D MOVSS XMM0,dword ptr [R12 + RDI*0x4] MOVSXD R9,EAX INC EAX MOV dword ptr [RCX + R9*0x4],R8D MOVSS dword ptr [RDX + R9*0x4],XMM0 LAB_0015730a: INC RDI CMP RBX,RDI JNZ 0x001572e9 JMP 0x00157316 LAB_00157314: XOR EAX,EAX LAB_00157316: MOV ECX,dword ptr [RSI] CMP EAX,ECX SETL DL AND DL,byte ptr [R10 + 0x9] CMP DL,0x1 JNZ 0x0015734b MOV RDX,qword ptr [RSI + 0x8] MOV RDI,qword ptr [RSI + 0x10] CDQE MOV R8D,dword ptr [RSP + 0x8] LAB_00157335: MOV dword ptr [RDX + RAX*0x4],R8D MOV dword ptr [RDI + RAX*0x4],0x0 INC RAX MOVSXD RCX,dword ptr [RSI] CMP RAX,RCX JL 0x00157335 LAB_0015734b: CMP ECX,EAX JNZ 0x0015735e ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0015735e: LEA RDI,[0x1b7fe0] LEA RSI,[0x1b9da8] LEA RCX,[0x1ba273] MOV EDX,0x54e CALL 0x00139540
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* OpenSubdiv::v3_6_0::Far::GregoryTriConverter<float>::computeIrregularFacePoint(int, int, int, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<float> const&, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<float> const&, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<float> const&, OpenSubdiv::v3_6_0::Far::(anonymous namespace)::SparseMatrixRow<float>&, float, float*, int*) const */ void __thiscall OpenSubdiv::v3_6_0::Far::GregoryTriConverter<float>::computeIrregularFacePoint (GregoryTriConverter<float> *this,int param_1,int param_2,int param_3, SparseMatrixRow *param_4,SparseMatrixRow *param_5,SparseMatrixRow *param_6, SparseMatrixRow *param_7,float param_8,float *param_9,int *param_10) { size_t __n; float fVar1; int iVar2; int iVar3; long lVar4; float fVar5; int iVar6; ulong uVar7; long lVar8; long lVar9; long lVar10; float fVar11; float fVar12; lVar8 = (long)param_1 * 0xa8; iVar6 = *(int *)(this + lVar8 + 0x1c); fVar12 = *(float *)(this + lVar8 + 0x2c); fVar1 = *(float *)(this + (long)param_3 * 0xa8 + 0x2c); iVar2 = *(int *)this; __n = (long)iVar2 * 4; memset(param_10,0,__n); memset(param_9,0,__n); fVar5 = DAT_001b5008; if (0 < *(int *)param_4) { fVar11 = fVar1 * DAT_001b5008; lVar4 = *(long *)(param_4 + 8); lVar10 = *(long *)(param_4 + 0x10); lVar9 = 0; do { iVar3 = *(int *)(lVar4 + lVar9 * 4); param_9[iVar3] = *(float *)(lVar10 + lVar9 * 4) * fVar11 + param_9[iVar3]; param_10[iVar3] = iVar3 + 1; lVar9 = lVar9 + 1; } while (lVar9 < *(int *)param_4); } fVar12 = fVar12 + fVar12; if (0 < *(int *)param_5) { fVar11 = DAT_001b9424 - fVar12; lVar4 = *(long *)(param_5 + 8); lVar10 = *(long *)(param_5 + 0x10); lVar9 = 0; do { iVar3 = *(int *)(lVar4 + lVar9 * 4); param_9[iVar3] = *(float *)(lVar10 + lVar9 * 4) * (fVar11 - fVar1) * fVar5 + param_9[iVar3]; param_10[iVar3] = iVar3 + 1; lVar9 = lVar9 + 1; } while (lVar9 < *(int *)param_5); } if (0 < *(int *)param_6) { lVar4 = *(long *)(param_6 + 8); lVar10 = *(long *)(param_6 + 0x10); lVar9 = 0; do { iVar3 = *(int *)(lVar4 + lVar9 * 4); param_9[iVar3] = *(float *)(lVar10 + lVar9 * 4) * fVar12 * fVar5 + param_9[iVar3]; param_10[iVar3] = iVar3 + 1; lVar9 = lVar9 + 1; } while (lVar9 < *(int *)param_6); } lVar8 = *(long *)(this + lVar8 + 0x30); iVar3 = *(int *)(lVar8 + (long)((param_2 + iVar6 + -1) % iVar6) * 4); fVar12 = param_8 * _DAT_001b9428; param_9[iVar3] = param_9[iVar3] - fVar12; iVar6 = *(int *)(lVar8 + (long)((param_2 + 1) % iVar6) * 4); param_9[iVar6] = fVar12 + param_9[iVar6]; if (iVar2 < 1) { uVar7 = 0; } else { lVar8 = *(long *)(param_7 + 8); lVar4 = *(long *)(param_7 + 0x10); lVar10 = 0; uVar7 = 0; do { if (param_10[lVar10] != 0) { fVar12 = param_9[lVar10]; iVar6 = (int)uVar7; uVar7 = (ulong)(iVar6 + 1); *(int *)(lVar8 + (long)iVar6 * 4) = param_10[lVar10] + -1; *(float *)(lVar4 + (long)iVar6 * 4) = fVar12; } lVar10 = lVar10 + 1; } while (iVar2 != lVar10); } iVar6 = *(int *)param_7; if (((int)uVar7 < iVar6 & (byte)this[9]) == 1) { lVar8 = *(long *)(param_7 + 8); lVar4 = *(long *)(param_7 + 0x10); uVar7 = (ulong)(int)uVar7; do { *(int *)(lVar8 + uVar7 * 4) = param_1; *(int4 *)(lVar4 + uVar7 * 4) = 0; uVar7 = uVar7 + 1; iVar6 = *(int *)param_7; } while ((long)uVar7 < (long)iVar6); } if (iVar6 != (int)uVar7) { /* WARNING: Subroutine does not return */ __assert_fail("fNear.GetSize() == nWeights", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/loopPatchBuilder.cpp" ,0x54e, "void OpenSubdiv::v3_6_0::Far::GregoryTriConverter<float>::computeIrregularFacePoint(int, int, int, const Point &, const Point &, const Point &, Point &, REAL, Weight *, int *) const [REAL = float]" ); } return; }
27,647
pvio_socket_internal_connect
eloqsql/libmariadb/plugins/pvio/pvio_socket.c
static int pvio_socket_internal_connect(MARIADB_PVIO *pvio, const struct sockaddr *name, size_t namelen) { int rc= 0; struct st_pvio_socket *csock= NULL; int timeout; #ifndef _WIN32 unsigned int wait_conn= 1; time_t start_t= time(NULL); #endif if (!pvio || !pvio->data) return 1; csock= (struct st_pvio_socket *)pvio->data; timeout= pvio->timeout[PVIO_CONNECT_TIMEOUT]; /* set non blocking */ pvio_socket_blocking(pvio, 0, 0); #ifndef _WIN32 do { rc= connect(csock->socket, (struct sockaddr*) name, (int)namelen); if (time(NULL) - start_t > (time_t)timeout/1000) break; usleep(wait_conn); wait_conn= wait_conn >= 1000000 ? 1000000 : wait_conn * 2; } while (rc == -1 && (errno == EINTR || errno == EAGAIN)); /* in case a timeout values was set we need to check error values EINPROGRESS */ if (timeout != 0 && rc == -1 && errno == EINPROGRESS) { rc= pvio_socket_wait_io_or_timeout(pvio, FALSE, timeout); if (rc < 1) return -1; { int error; socklen_t error_len= sizeof(error); if ((rc = getsockopt(csock->socket, SOL_SOCKET, SO_ERROR, (char *)&error, &error_len)) < 0) return errno; else if (error) return error; } } #ifdef __APPLE__ if (csock->socket) { int val= 1; setsockopt(csock->socket, SOL_SOCKET, SO_NOSIGPIPE, (void *)&val, sizeof(int)); } #endif #else rc= connect(csock->socket, (struct sockaddr*) name, (int)namelen); if (rc == SOCKET_ERROR) { if (WSAGetLastError() == WSAEWOULDBLOCK) { if (pvio_socket_wait_io_or_timeout(pvio, FALSE, timeout) < 0) return -1; rc= 0; } } #endif return rc; }
O0
c
pvio_socket_internal_connect: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl $0x0, -0x24(%rbp) movq $0x0, -0x30(%rbp) movl $0x1, -0x38(%rbp) xorl %eax, %eax movl %eax, %edi callq 0x133b0 movq %rax, -0x40(%rbp) cmpq $0x0, -0x10(%rbp) je 0x42948 movq -0x10(%rbp), %rax cmpq $0x0, (%rax) jne 0x42954 movl $0x1, -0x4(%rbp) jmp 0x42aa8 movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x30(%rbp) movq -0x10(%rbp), %rax movl 0x24(%rax), %eax movl %eax, -0x34(%rbp) movq -0x10(%rbp), %rdi xorl %esi, %esi xorl %eax, %eax movl %eax, %edx callq 0x414c0 movq -0x30(%rbp), %rax movl (%rax), %edi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rax movl %eax, %edx callq 0x13370 movl %eax, -0x24(%rbp) xorl %eax, %eax movl %eax, %edi callq 0x133b0 subq -0x40(%rbp), %rax movq %rax, -0x50(%rbp) movslq -0x34(%rbp), %rax movl $0x3e8, %ecx # imm = 0x3E8 cqto idivq %rcx movq %rax, %rcx movq -0x50(%rbp), %rax cmpq %rcx, %rax jle 0x429bd jmp 0x42a22 movl -0x38(%rbp), %edi callq 0x13620 cmpl $0xf4240, -0x38(%rbp) # imm = 0xF4240 jb 0x429d8 movl $0xf4240, %eax # imm = 0xF4240 movl %eax, -0x54(%rbp) jmp 0x429e0 movl -0x38(%rbp), %eax shll %eax movl %eax, -0x54(%rbp) movl -0x54(%rbp), %eax movl %eax, -0x38(%rbp) xorl %eax, %eax cmpl $-0x1, -0x24(%rbp) movb %al, -0x55(%rbp) jne 0x42a17 callq 0x13050 movq %rax, %rcx movb $0x1, %al cmpl $0x4, (%rcx) movb %al, -0x56(%rbp) je 0x42a11 callq 0x13050 cmpl $0xb, (%rax) sete %al movb %al, -0x56(%rbp) movb -0x56(%rbp), %al movb %al, -0x55(%rbp) movb -0x55(%rbp), %al testb $0x1, %al jne 0x42978 cmpl $0x0, -0x34(%rbp) je 0x42aa2 cmpl $-0x1, -0x24(%rbp) jne 0x42aa2 callq 0x13050 cmpl $0x73, (%rax) jne 0x42aa2 movq -0x10(%rbp), %rdi movl -0x34(%rbp), %edx xorl %esi, %esi callq 0x41370 movl %eax, -0x24(%rbp) cmpl $0x1, -0x24(%rbp) jge 0x42a58 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x42aa8 movl $0x4, -0x48(%rbp) movq -0x30(%rbp), %rax movl (%rax), %edi movl $0x1, %esi movl $0x4, %edx leaq -0x44(%rbp), %rcx leaq -0x48(%rbp), %r8 callq 0x13300 movl %eax, -0x24(%rbp) cmpl $0x0, %eax jge 0x42a90 callq 0x13050 movl (%rax), %eax movl %eax, -0x4(%rbp) jmp 0x42aa8 cmpl $0x0, -0x44(%rbp) je 0x42a9e movl -0x44(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0x42aa8 jmp 0x42aa0 jmp 0x42aa2 movl -0x24(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
pvio_socket_internal_connect: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_24], 0 mov [rbp+var_30], 0 mov [rbp+var_38], 1 xor eax, eax mov edi, eax call _time mov [rbp+var_40], rax cmp [rbp+var_10], 0 jz short loc_42948 mov rax, [rbp+var_10] cmp qword ptr [rax], 0 jnz short loc_42954 loc_42948: mov [rbp+var_4], 1 jmp loc_42AA8 loc_42954: mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_30], rax mov rax, [rbp+var_10] mov eax, [rax+24h] mov [rbp+var_34], eax mov rdi, [rbp+var_10] xor esi, esi xor eax, eax mov edx, eax call pvio_socket_blocking loc_42978: mov rax, [rbp+var_30] mov edi, [rax] mov rsi, [rbp+var_18] mov rax, [rbp+var_20] mov edx, eax call _connect mov [rbp+var_24], eax xor eax, eax mov edi, eax call _time sub rax, [rbp+var_40] mov [rbp+var_50], rax movsxd rax, [rbp+var_34] mov ecx, 3E8h cqo idiv rcx mov rcx, rax mov rax, [rbp+var_50] cmp rax, rcx jle short loc_429BD jmp short loc_42A22 loc_429BD: mov edi, [rbp+var_38] call _usleep cmp [rbp+var_38], 0F4240h jb short loc_429D8 mov eax, 0F4240h mov [rbp+var_54], eax jmp short loc_429E0 loc_429D8: mov eax, [rbp+var_38] shl eax, 1 mov [rbp+var_54], eax loc_429E0: mov eax, [rbp+var_54] mov [rbp+var_38], eax xor eax, eax cmp [rbp+var_24], 0FFFFFFFFh mov [rbp+var_55], al jnz short loc_42A17 call ___errno_location mov rcx, rax mov al, 1 cmp dword ptr [rcx], 4 mov [rbp+var_56], al jz short loc_42A11 call ___errno_location cmp dword ptr [rax], 0Bh setz al mov [rbp+var_56], al loc_42A11: mov al, [rbp+var_56] mov [rbp+var_55], al loc_42A17: mov al, [rbp+var_55] test al, 1 jnz loc_42978 loc_42A22: cmp [rbp+var_34], 0 jz short loc_42AA2 cmp [rbp+var_24], 0FFFFFFFFh jnz short loc_42AA2 call ___errno_location cmp dword ptr [rax], 73h ; 's' jnz short loc_42AA2 mov rdi, [rbp+var_10] mov edx, [rbp+var_34] xor esi, esi call pvio_socket_wait_io_or_timeout mov [rbp+var_24], eax cmp [rbp+var_24], 1 jge short loc_42A58 mov [rbp+var_4], 0FFFFFFFFh jmp short loc_42AA8 loc_42A58: mov [rbp+var_48], 4 mov rax, [rbp+var_30] mov edi, [rax] mov esi, 1 mov edx, 4 lea rcx, [rbp+var_44] lea r8, [rbp+var_48] call _getsockopt mov [rbp+var_24], eax cmp eax, 0 jge short loc_42A90 call ___errno_location mov eax, [rax] mov [rbp+var_4], eax jmp short loc_42AA8 loc_42A90: cmp [rbp+var_44], 0 jz short loc_42A9E mov eax, [rbp+var_44] mov [rbp+var_4], eax jmp short loc_42AA8 loc_42A9E: jmp short $+2 loc_42AA0: jmp short $+2 loc_42AA2: mov eax, [rbp+var_24] mov [rbp+var_4], eax loc_42AA8: mov eax, [rbp+var_4] add rsp, 60h pop rbp retn
long long pvio_socket_internal_connect(int **a1, long long a2, long long a3) { long long v3; // rdi long long v4; // rdi bool v6; // [rsp+Ah] [rbp-56h] bool v7; // [rsp+Bh] [rbp-55h] int v8; // [rsp+Ch] [rbp-54h] int v9; // [rsp+18h] [rbp-48h] BYREF unsigned int v10; // [rsp+1Ch] [rbp-44h] BYREF long long v11; // [rsp+20h] [rbp-40h] unsigned int v12; // [rsp+28h] [rbp-38h] signed int v13; // [rsp+2Ch] [rbp-34h] unsigned int *v14; // [rsp+30h] [rbp-30h] int v15; // [rsp+3Ch] [rbp-24h] long long v16; // [rsp+40h] [rbp-20h] long long v17; // [rsp+48h] [rbp-18h] int **v18; // [rsp+50h] [rbp-10h] v18 = a1; v17 = a2; v16 = a3; v15 = 0; v14 = 0LL; v12 = 1; v11 = time(0LL); if ( a1 && *v18 ) { v14 = (unsigned int *)*v18; v13 = *((_DWORD *)v18 + 9); pvio_socket_blocking((unsigned int **)v18, 0, 0LL); do { v15 = connect(*v14, v17, (unsigned int)v16); v3 = 0LL; if ( time(0LL) - v11 > v13 / 1000LL ) break; v3 = v12; usleep(v12); if ( v12 < 0xF4240 ) v8 = 2 * v12; else v8 = 1000000; v12 = v8; v7 = 0; if ( v15 == -1 ) { v6 = 1; if ( *(_DWORD *)__errno_location(v3) != 4 ) v6 = *(_DWORD *)__errno_location(v3) == 11; v7 = v6; } } while ( v7 ); if ( v13 && v15 == -1 && *(_DWORD *)__errno_location(v3) == 115 ) { v15 = pvio_socket_wait_io_or_timeout(v18, 0, v13); if ( v15 < 1 ) return (unsigned int)-1; v9 = 4; v4 = *v14; v15 = getsockopt(v4, 1LL, 4LL, &v10, &v9); if ( v15 < 0 ) return *(unsigned int *)__errno_location(v4); if ( v10 ) return v10; } return (unsigned int)v15; } return 1; }
pvio_socket_internal_connect: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV dword ptr [RBP + -0x24],0x0 MOV qword ptr [RBP + -0x30],0x0 MOV dword ptr [RBP + -0x38],0x1 XOR EAX,EAX MOV EDI,EAX CALL 0x001133b0 MOV qword ptr [RBP + -0x40],RAX CMP qword ptr [RBP + -0x10],0x0 JZ 0x00142948 MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX],0x0 JNZ 0x00142954 LAB_00142948: MOV dword ptr [RBP + -0x4],0x1 JMP 0x00142aa8 LAB_00142954: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x24] MOV dword ptr [RBP + -0x34],EAX MOV RDI,qword ptr [RBP + -0x10] XOR ESI,ESI XOR EAX,EAX MOV EDX,EAX CALL 0x001414c0 LAB_00142978: MOV RAX,qword ptr [RBP + -0x30] MOV EDI,dword ptr [RAX] MOV RSI,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x20] MOV EDX,EAX CALL 0x00113370 MOV dword ptr [RBP + -0x24],EAX XOR EAX,EAX MOV EDI,EAX CALL 0x001133b0 SUB RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x50],RAX MOVSXD RAX,dword ptr [RBP + -0x34] MOV ECX,0x3e8 CQO IDIV RCX MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x50] CMP RAX,RCX JLE 0x001429bd JMP 0x00142a22 LAB_001429bd: MOV EDI,dword ptr [RBP + -0x38] CALL 0x00113620 CMP dword ptr [RBP + -0x38],0xf4240 JC 0x001429d8 MOV EAX,0xf4240 MOV dword ptr [RBP + -0x54],EAX JMP 0x001429e0 LAB_001429d8: MOV EAX,dword ptr [RBP + -0x38] SHL EAX,0x1 MOV dword ptr [RBP + -0x54],EAX LAB_001429e0: MOV EAX,dword ptr [RBP + -0x54] MOV dword ptr [RBP + -0x38],EAX XOR EAX,EAX CMP dword ptr [RBP + -0x24],-0x1 MOV byte ptr [RBP + -0x55],AL JNZ 0x00142a17 CALL 0x00113050 MOV RCX,RAX MOV AL,0x1 CMP dword ptr [RCX],0x4 MOV byte ptr [RBP + -0x56],AL JZ 0x00142a11 CALL 0x00113050 CMP dword ptr [RAX],0xb SETZ AL MOV byte ptr [RBP + -0x56],AL LAB_00142a11: MOV AL,byte ptr [RBP + -0x56] MOV byte ptr [RBP + -0x55],AL LAB_00142a17: MOV AL,byte ptr [RBP + -0x55] TEST AL,0x1 JNZ 0x00142978 LAB_00142a22: CMP dword ptr [RBP + -0x34],0x0 JZ 0x00142aa2 CMP dword ptr [RBP + -0x24],-0x1 JNZ 0x00142aa2 CALL 0x00113050 CMP dword ptr [RAX],0x73 JNZ 0x00142aa2 MOV RDI,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RBP + -0x34] XOR ESI,ESI CALL 0x00141370 MOV dword ptr [RBP + -0x24],EAX CMP dword ptr [RBP + -0x24],0x1 JGE 0x00142a58 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x00142aa8 LAB_00142a58: MOV dword ptr [RBP + -0x48],0x4 MOV RAX,qword ptr [RBP + -0x30] MOV EDI,dword ptr [RAX] MOV ESI,0x1 MOV EDX,0x4 LEA RCX,[RBP + -0x44] LEA R8,[RBP + -0x48] CALL 0x00113300 MOV dword ptr [RBP + -0x24],EAX CMP EAX,0x0 JGE 0x00142a90 CALL 0x00113050 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x4],EAX JMP 0x00142aa8 LAB_00142a90: CMP dword ptr [RBP + -0x44],0x0 JZ 0x00142a9e MOV EAX,dword ptr [RBP + -0x44] MOV dword ptr [RBP + -0x4],EAX JMP 0x00142aa8 LAB_00142a9e: JMP 0x00142aa0 LAB_00142aa0: JMP 0x00142aa2 LAB_00142aa2: MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x4],EAX LAB_00142aa8: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x60 POP RBP RET
int pvio_socket_internal_connect(long *param_1,sockaddr *param_2,int8 param_3) { time_t tVar1; int *piVar2; bool bVar3; __useconds_t local_5c; socklen_t local_50; int local_4c; time_t local_48; __useconds_t local_40; int local_3c; int *local_38; int local_2c; int8 local_28; sockaddr *local_20; long *local_18; local_2c = 0; local_38 = (int *)0x0; local_40 = 1; local_28 = param_3; local_20 = param_2; local_18 = param_1; local_48 = time((time_t *)0x0); if ((local_18 == (long *)0x0) || (*local_18 == 0)) { return 1; } local_38 = (int *)*local_18; local_3c = *(int *)((long)local_18 + 0x24); pvio_socket_blocking(local_18,0,0); do { local_2c = connect(*local_38,local_20,(socklen_t)local_28); tVar1 = time((time_t *)0x0); if ((long)local_3c / 1000 < tVar1 - local_48) break; usleep(local_40); if (local_40 < 1000000) { local_5c = local_40 << 1; } else { local_5c = 1000000; } local_40 = local_5c; bVar3 = false; if (local_2c == -1) { piVar2 = __errno_location(); bVar3 = true; if (*piVar2 != 4) { piVar2 = __errno_location(); bVar3 = *piVar2 == 0xb; } } } while (bVar3); if (((local_3c != 0) && (local_2c == -1)) && (piVar2 = __errno_location(), *piVar2 == 0x73)) { local_2c = pvio_socket_wait_io_or_timeout(local_18,0,local_3c); if (local_2c < 1) { return -1; } local_50 = 4; local_2c = getsockopt(*local_38,1,4,&local_4c,&local_50); if (local_2c < 0) { piVar2 = __errno_location(); return *piVar2; } if (local_4c != 0) { return local_4c; } } return local_2c; }
27,648
js_TA_cmp_float16
bluesky950520[P]quickjs/quickjs.c
static int js_TA_cmp_float16(const void *a, const void *b, void *opaque) { return js_cmp_doubles(fromfp16(*(const uint16_t *)a), fromfp16(*(const uint16_t *)b)); }
O1
c
js_TA_cmp_float16: pushq %rbp pushq %rbx subq $0x28, %rsp movq %rsi, %rbx movzwl (%rdi), %ebp movl $0x7c00, %edx # imm = 0x7C00 movl %ebp, %eax andl %edx, %eax movl %ebp, %ecx andl $0x3ff, %ecx # imm = 0x3FF cmpl %edx, %eax jne 0x82dd8 xorl %eax, %eax testl %ecx, %ecx sete %al leaq 0x1b97f(%rip), %rcx # 0x9e750 movsd (%rcx,%rax,8), %xmm2 jmp 0x82e09 cvtsi2sd %ecx, %xmm0 mulsd 0x1ba9c(%rip), %xmm0 # 0x9e880 movl %eax, %edi shrl $0xa, %edi addl $-0xf, %edi testl %eax, %eax je 0x82df8 addsd 0x1ba70(%rip), %xmm0 # 0x9e868 movl $0xfffffff2, %eax # imm = 0xFFFFFFF2 cmovel %eax, %edi callq 0xe670 movapd %xmm0, %xmm2 testw %bp, %bp js 0x82e14 movapd %xmm2, %xmm3 jmp 0x82e20 movapd 0x1b944(%rip), %xmm3 # 0x9e760 xorpd %xmm2, %xmm3 movzwl (%rbx), %ebx movl $0x7c00, %edx # imm = 0x7C00 movl %ebx, %eax andl %edx, %eax movl %ebx, %ecx andl $0x3ff, %ecx # imm = 0x3FF cmpl %edx, %eax jne 0x82e4d xorl %eax, %eax testl %ecx, %ecx sete %al leaq 0x1b90a(%rip), %rcx # 0x9e750 movsd (%rcx,%rax,8), %xmm0 jmp 0x82e93 xorps %xmm0, %xmm0 cvtsi2sd %ecx, %xmm0 mulsd 0x1ba24(%rip), %xmm0 # 0x9e880 movl %eax, %edi shrl $0xa, %edi addl $-0xf, %edi testl %eax, %eax movapd %xmm2, 0x10(%rsp) movapd %xmm3, (%rsp) je 0x82e7b addsd 0x1b9ed(%rip), %xmm0 # 0x9e868 movl $0xfffffff2, %eax # imm = 0xFFFFFFF2 cmovel %eax, %edi callq 0xe670 movapd 0x10(%rsp), %xmm2 movapd (%rsp), %xmm3 testw %bx, %bx jns 0x82ea0 xorpd 0x1b8c0(%rip), %xmm0 # 0x9e760 ucomisd %xmm3, %xmm3 jp 0x82ef8 ucomisd %xmm0, %xmm0 movl $0xffffffff, %eax # imm = 0xFFFFFFFF jp 0x82ef1 ucomisd %xmm3, %xmm0 ja 0x82ef1 movl $0x1, %eax ucomisd %xmm0, %xmm3 ja 0x82ef1 xorl %eax, %eax xorpd %xmm1, %xmm1 ucomisd %xmm1, %xmm2 jne 0x82ef1 jp 0x82ef1 movq %xmm3, %rax movq %xmm0, %rcx testq %rax, %rax js 0x82ee7 shrq $0x3f, %rcx movl %ecx, %eax jmp 0x82ef1 xorl %eax, %eax testq %rcx, %rcx setns %al negl %eax addq $0x28, %rsp popq %rbx popq %rbp retq xorl %eax, %eax ucomisd %xmm0, %xmm0 setnp %al jmp 0x82ef1
js_TA_cmp_float16: push rbp push rbx sub rsp, 28h mov rbx, rsi movzx ebp, word ptr [rdi] mov edx, 7C00h mov eax, ebp and eax, edx mov ecx, ebp and ecx, 3FFh cmp eax, edx jnz short loc_82DD8 xor eax, eax test ecx, ecx setz al lea rcx, dbl_9E750 movsd xmm2, qword ptr [rcx+rax*8] jmp short loc_82E09 loc_82DD8: cvtsi2sd xmm0, ecx mulsd xmm0, cs:qword_9E880 mov edi, eax shr edi, 0Ah add edi, 0FFFFFFF1h test eax, eax jz short loc_82DF8 addsd xmm0, cs:qword_9E868 loc_82DF8: mov eax, 0FFFFFFF2h cmovz edi, eax call _scalbn movapd xmm2, xmm0 loc_82E09: test bp, bp js short loc_82E14 movapd xmm3, xmm2 jmp short loc_82E20 loc_82E14: movapd xmm3, cs:xmmword_9E760 xorpd xmm3, xmm2 loc_82E20: movzx ebx, word ptr [rbx] mov edx, 7C00h mov eax, ebx and eax, edx mov ecx, ebx and ecx, 3FFh cmp eax, edx jnz short loc_82E4D xor eax, eax test ecx, ecx setz al lea rcx, dbl_9E750 movsd xmm0, qword ptr [rcx+rax*8] jmp short loc_82E93 loc_82E4D: xorps xmm0, xmm0 cvtsi2sd xmm0, ecx mulsd xmm0, cs:qword_9E880 mov edi, eax shr edi, 0Ah add edi, 0FFFFFFF1h test eax, eax movapd [rsp+38h+var_28], xmm2 movapd [rsp+38h+var_38], xmm3 jz short loc_82E7B addsd xmm0, cs:qword_9E868 loc_82E7B: mov eax, 0FFFFFFF2h cmovz edi, eax call _scalbn movapd xmm2, [rsp+38h+var_28] movapd xmm3, [rsp+38h+var_38] loc_82E93: test bx, bx jns short loc_82EA0 xorpd xmm0, cs:xmmword_9E760 loc_82EA0: ucomisd xmm3, xmm3 jp short loc_82EF8 ucomisd xmm0, xmm0 mov eax, 0FFFFFFFFh jp short loc_82EF1 ucomisd xmm0, xmm3 ja short loc_82EF1 mov eax, 1 ucomisd xmm3, xmm0 ja short loc_82EF1 xor eax, eax xorpd xmm1, xmm1 ucomisd xmm2, xmm1 jnz short loc_82EF1 jp short loc_82EF1 movq rax, xmm3 movq rcx, xmm0 test rax, rax js short loc_82EE7 shr rcx, 3Fh mov eax, ecx jmp short loc_82EF1 loc_82EE7: xor eax, eax test rcx, rcx setns al neg eax loc_82EF1: add rsp, 28h pop rbx pop rbp retn loc_82EF8: xor eax, eax ucomisd xmm0, xmm0 setnp al jmp short loc_82EF1
long long js_TA_cmp_float16(__int16 *a1, __int16 *a2) { __int16 v2; // bp unsigned int v3; // eax int v4; // ecx double v5; // xmm2_8 double v6; // xmm0_8 long long v7; // rdi double v8; // xmm3_8 __int16 v9; // bx unsigned int v10; // eax int v11; // ecx double v12; // xmm0_8 double v13; // xmm0_8 long long v14; // rdi long long result; // rax v2 = *a1; v3 = *a1 & 0x7C00; v4 = *a1 & 0x3FF; if ( v3 == 31744 ) { v5 = dbl_9E750[v4 == 0]; } else { v6 = (double)v4 * 0.0009765625; v7 = (v3 >> 10) - 15; if ( v3 ) v6 = v6 + 1.0; else v7 = 4294967282LL; v5 = scalbn(v7, v6); } if ( v2 < 0 ) v8 = -v5; else v8 = v5; v9 = *a2; v10 = *a2 & 0x7C00; v11 = *a2 & 0x3FF; if ( v10 == 31744 ) { v12 = dbl_9E750[v11 == 0]; } else { v13 = (double)v11 * 0.0009765625; v14 = (v10 >> 10) - 15; if ( (*a2 & 0x7C00) != 0 ) v13 = v13 + 1.0; else v14 = 4294967282LL; v12 = scalbn(v14, v13); } if ( v9 < 0 ) v12 = -v12; result = 0xFFFFFFFFLL; if ( v12 <= v8 ) { result = 1LL; if ( v8 <= v12 ) { result = 0LL; if ( v5 == 0.0 ) { if ( v8 < 0.0 ) return (unsigned int)-(v12 >= 0.0); else return *(_QWORD *)&v12 >> 63; } } } return result; }
js_TA_cmp_float16: PUSH RBP PUSH RBX SUB RSP,0x28 MOV RBX,RSI MOVZX EBP,word ptr [RDI] MOV EDX,0x7c00 MOV EAX,EBP AND EAX,EDX MOV ECX,EBP AND ECX,0x3ff CMP EAX,EDX JNZ 0x00182dd8 XOR EAX,EAX TEST ECX,ECX SETZ AL LEA RCX,[0x19e750] MOVSD XMM2,qword ptr [RCX + RAX*0x8] JMP 0x00182e09 LAB_00182dd8: CVTSI2SD XMM0,ECX MULSD XMM0,qword ptr [0x0019e880] MOV EDI,EAX SHR EDI,0xa ADD EDI,-0xf TEST EAX,EAX JZ 0x00182df8 ADDSD XMM0,qword ptr [0x0019e868] LAB_00182df8: MOV EAX,0xfffffff2 CMOVZ EDI,EAX CALL 0x0010e670 MOVAPD XMM2,XMM0 LAB_00182e09: TEST BP,BP JS 0x00182e14 MOVAPD XMM3,XMM2 JMP 0x00182e20 LAB_00182e14: MOVAPD XMM3,xmmword ptr [0x0019e760] XORPD XMM3,XMM2 LAB_00182e20: MOVZX EBX,word ptr [RBX] MOV EDX,0x7c00 MOV EAX,EBX AND EAX,EDX MOV ECX,EBX AND ECX,0x3ff CMP EAX,EDX JNZ 0x00182e4d XOR EAX,EAX TEST ECX,ECX SETZ AL LEA RCX,[0x19e750] MOVSD XMM0,qword ptr [RCX + RAX*0x8] JMP 0x00182e93 LAB_00182e4d: XORPS XMM0,XMM0 CVTSI2SD XMM0,ECX MULSD XMM0,qword ptr [0x0019e880] MOV EDI,EAX SHR EDI,0xa ADD EDI,-0xf TEST EAX,EAX MOVAPD xmmword ptr [RSP + 0x10],XMM2 MOVAPD xmmword ptr [RSP],XMM3 JZ 0x00182e7b ADDSD XMM0,qword ptr [0x0019e868] LAB_00182e7b: MOV EAX,0xfffffff2 CMOVZ EDI,EAX CALL 0x0010e670 MOVAPD XMM2,xmmword ptr [RSP + 0x10] MOVAPD XMM3,xmmword ptr [RSP] LAB_00182e93: TEST BX,BX JNS 0x00182ea0 XORPD XMM0,xmmword ptr [0x0019e760] LAB_00182ea0: UCOMISD XMM3,XMM3 JP 0x00182ef8 UCOMISD XMM0,XMM0 MOV EAX,0xffffffff JP 0x00182ef1 UCOMISD XMM0,XMM3 JA 0x00182ef1 MOV EAX,0x1 UCOMISD XMM3,XMM0 JA 0x00182ef1 XOR EAX,EAX XORPD XMM1,XMM1 UCOMISD XMM2,XMM1 JNZ 0x00182ef1 JP 0x00182ef1 MOVQ RAX,XMM3 MOVQ RCX,XMM0 TEST RAX,RAX JS 0x00182ee7 SHR RCX,0x3f MOV EAX,ECX JMP 0x00182ef1 LAB_00182ee7: XOR EAX,EAX TEST RCX,RCX SETNS AL NEG EAX LAB_00182ef1: ADD RSP,0x28 POP RBX POP RBP RET LAB_00182ef8: XOR EAX,EAX UCOMISD XMM0,XMM0 SETNP AL JMP 0x00182ef1
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ uint js_TA_cmp_float16(ushort *param_1,ushort *param_2) { ushort uVar1; double dVar2; ulong uVar3; uint uVar4; int iVar5; int4 uVar6; uint uVar7; double dVar8; double dVar9; uVar1 = *param_1; if ((uVar1 & 0x7c00) == 0x7c00) { dVar8 = *(double *)(&DAT_0019e750 + (ulong)((uVar1 & 0x3ff) == 0) * 8); } else { dVar8 = (double)(uVar1 & 0x3ff) * _DAT_0019e880; iVar5 = ((uVar1 & 0x7c00) >> 10) - 0xf; if ((uVar1 & 0x7c00) == 0) { iVar5 = -0xe; } else { dVar8 = dVar8 + DAT_0019e868; } dVar8 = scalbn(dVar8,iVar5); } dVar9 = dVar8; if ((short)uVar1 < 0) { dVar9 = (double)(_DAT_0019e760 ^ (ulong)dVar8); } uVar1 = *param_2; if ((uVar1 & 0x7c00) == 0x7c00) { uVar6 = (int4)*(int8 *)(&DAT_0019e750 + (ulong)((uVar1 & 0x3ff) == 0) * 8); uVar7 = (uint)((ulong)*(int8 *)(&DAT_0019e750 + (ulong)((uVar1 & 0x3ff) == 0) * 8) >> 0x20 ); } else { dVar2 = (double)(uVar1 & 0x3ff) * _DAT_0019e880; iVar5 = ((uVar1 & 0x7c00) >> 10) - 0xf; if ((uVar1 & 0x7c00) == 0) { iVar5 = -0xe; } else { dVar2 = dVar2 + DAT_0019e868; } dVar2 = scalbn(dVar2,iVar5); uVar6 = SUB84(dVar2,0); uVar7 = (uint)((ulong)dVar2 >> 0x20); } if ((short)uVar1 < 0) { uVar3 = CONCAT44(uVar7,uVar6) ^ _DAT_0019e760; uVar6 = (int4)uVar3; uVar7 = (uint)(uVar3 >> 0x20); } if (NAN(dVar9)) { uVar4 = (uint)(!NAN((double)CONCAT44(uVar7,uVar6)) && !NAN((double)CONCAT44(uVar7,uVar6))); } else { uVar4 = 0xffffffff; if (((double)CONCAT44(uVar7,uVar6) < dVar9 || (double)CONCAT44(uVar7,uVar6) == dVar9) && (uVar4 = 1, dVar9 < (double)CONCAT44(uVar7,uVar6) || dVar9 == (double)CONCAT44(uVar7,uVar6))) { uVar4 = 0; if ((dVar8 == 0.0) && (!NAN(dVar8))) { if ((long)dVar9 < 0) { uVar4 = -(uint)(-1 < (int)uVar7); } else { uVar4 = uVar7 >> 0x1f; } } } } return uVar4; }
27,649
mi_get_last_key
eloqsql/storage/myisam/mi_search.c
uchar *_mi_get_last_key(MI_INFO *info, MI_KEYDEF *keyinfo, uchar *page, uchar *lastkey, uchar *endpos, uint *return_key_length) { uint nod_flag; uchar *lastpos; DBUG_ENTER("_mi_get_last_key"); DBUG_PRINT("enter",("page:%p endpos: %p", page, endpos)); nod_flag=mi_test_if_nod(page); if (! (keyinfo->flag & (HA_VAR_LENGTH_KEY | HA_BINARY_PACK_KEY))) { lastpos=endpos-keyinfo->keylength-nod_flag; *return_key_length=keyinfo->keylength; if (lastpos > page) bmove((uchar*) lastkey,(uchar*) lastpos,keyinfo->keylength+nod_flag); } else { lastpos=(page+=2+nod_flag); lastkey[0]=0; while (page < endpos) { lastpos=page; *return_key_length=(*keyinfo->get_key)(keyinfo,nod_flag,&page,lastkey); if (*return_key_length == 0) { DBUG_PRINT("error",("Couldn't find last key: page: %p", page)); mi_print_error(info->s, HA_ERR_CRASHED); my_errno=HA_ERR_CRASHED; DBUG_RETURN(0); } } } DBUG_PRINT("exit",("lastpos: %p length: %u", lastpos, *return_key_length)); DBUG_RETURN(lastpos); }
O0
c
mi_get_last_key: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) jmp 0xc6952 movq -0x20(%rbp), %rax movzbl (%rax), %eax andl $0x80, %eax cmpl $0x0, %eax je 0xc6975 movq -0x10(%rbp), %rax movq (%rax), %rax movl 0x17c(%rax), %eax movl %eax, -0x4c(%rbp) jmp 0xc697c xorl %eax, %eax movl %eax, -0x4c(%rbp) jmp 0xc697c movl -0x4c(%rbp), %eax movl %eax, -0x3c(%rbp) movq -0x18(%rbp), %rax movzwl 0xa(%rax), %eax andl $0x28, %eax cmpl $0x0, %eax jne 0xc69f3 movq -0x30(%rbp), %rax movq -0x18(%rbp), %rcx movzwl 0x12(%rcx), %ecx movslq %ecx, %rdx xorl %ecx, %ecx subq %rdx, %rcx addq %rcx, %rax movl -0x3c(%rbp), %ecx movl %ecx, %edx xorl %ecx, %ecx subq %rdx, %rcx addq %rcx, %rax movq %rax, -0x48(%rbp) movq -0x18(%rbp), %rax movzwl 0x12(%rax), %ecx movq -0x38(%rbp), %rax movl %ecx, (%rax) movq -0x48(%rbp), %rax cmpq -0x20(%rbp), %rax jbe 0xc69ee movq -0x28(%rbp), %rdi movq -0x48(%rbp), %rsi movq -0x18(%rbp), %rax movzwl 0x12(%rax), %eax addl -0x3c(%rbp), %eax movl %eax, %eax movl %eax, %edx callq 0x2a140 jmp 0xc6a82 movl -0x3c(%rbp), %ecx addl $0x2, %ecx movq -0x20(%rbp), %rax movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x20(%rbp) movq %rax, -0x48(%rbp) movq -0x28(%rbp), %rax movb $0x0, (%rax) movq -0x20(%rbp), %rax cmpq -0x30(%rbp), %rax jae 0xc6a80 movq -0x20(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x18(%rbp), %rax movq 0x48(%rax), %rax movq -0x18(%rbp), %rdi movl -0x3c(%rbp), %esi movq -0x28(%rbp), %rcx leaq -0x20(%rbp), %rdx callq *%rax movl %eax, %ecx movq -0x38(%rbp), %rax movl %ecx, (%rax) movq -0x38(%rbp), %rax cmpl $0x0, (%rax) jne 0xc6a7e jmp 0xc6a4f jmp 0xc6a51 movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x268(%rax), %rsi movl $0x7e, %edi callq 0xb34c0 callq 0xfea30 movl $0x7e, (%rax) movq $0x0, -0x8(%rbp) jmp 0xc6a90 jmp 0xc6a11 jmp 0xc6a82 jmp 0xc6a84 jmp 0xc6a86 jmp 0xc6a88 movq -0x48(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x50, %rsp popq %rbp retq nopw (%rax,%rax)
_mi_get_last_key: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov [rbp+var_30], r8 mov [rbp+var_38], r9 jmp short $+2 loc_C6952: mov rax, [rbp+var_20] movzx eax, byte ptr [rax] and eax, 80h cmp eax, 0 jz short loc_C6975 mov rax, [rbp+var_10] mov rax, [rax] mov eax, [rax+17Ch] mov [rbp+var_4C], eax jmp short loc_C697C loc_C6975: xor eax, eax mov [rbp+var_4C], eax jmp short $+2 loc_C697C: mov eax, [rbp+var_4C] mov [rbp+var_3C], eax mov rax, [rbp+var_18] movzx eax, word ptr [rax+0Ah] and eax, 28h cmp eax, 0 jnz short loc_C69F3 mov rax, [rbp+var_30] mov rcx, [rbp+var_18] movzx ecx, word ptr [rcx+12h] movsxd rdx, ecx xor ecx, ecx sub rcx, rdx add rax, rcx mov ecx, [rbp+var_3C] mov edx, ecx xor ecx, ecx sub rcx, rdx add rax, rcx mov [rbp+var_48], rax mov rax, [rbp+var_18] movzx ecx, word ptr [rax+12h] mov rax, [rbp+var_38] mov [rax], ecx mov rax, [rbp+var_48] cmp rax, [rbp+var_20] jbe short loc_C69EE mov rdi, [rbp+var_28] mov rsi, [rbp+var_48] mov rax, [rbp+var_18] movzx eax, word ptr [rax+12h] add eax, [rbp+var_3C] mov eax, eax mov edx, eax call _memmove loc_C69EE: jmp loc_C6A82 loc_C69F3: mov ecx, [rbp+var_3C] add ecx, 2 mov rax, [rbp+var_20] mov ecx, ecx add rax, rcx mov [rbp+var_20], rax mov [rbp+var_48], rax mov rax, [rbp+var_28] mov byte ptr [rax], 0 loc_C6A11: mov rax, [rbp+var_20] cmp rax, [rbp+var_30] jnb short loc_C6A80 mov rax, [rbp+var_20] mov [rbp+var_48], rax mov rax, [rbp+var_18] mov rax, [rax+48h] mov rdi, [rbp+var_18] mov esi, [rbp+var_3C] mov rcx, [rbp+var_28] lea rdx, [rbp+var_20] call rax mov ecx, eax mov rax, [rbp+var_38] mov [rax], ecx mov rax, [rbp+var_38] cmp dword ptr [rax], 0 jnz short loc_C6A7E jmp short $+2 loc_C6A4F: jmp short $+2 loc_C6A51: mov rax, [rbp+var_10] mov rax, [rax] mov rsi, [rax+268h] mov edi, 7Eh ; '~' call mi_report_error call _my_thread_var mov dword ptr [rax], 7Eh ; '~' mov [rbp+var_8], 0 jmp short loc_C6A90 loc_C6A7E: jmp short loc_C6A11 loc_C6A80: jmp short $+2 loc_C6A82: jmp short $+2 loc_C6A84: jmp short $+2 loc_C6A86: jmp short $+2 loc_C6A88: mov rax, [rbp+var_48] mov [rbp+var_8], rax loc_C6A90: mov rax, [rbp+var_8] add rsp, 50h pop rbp retn
_BYTE * mi_get_last_key(long long a1, long long a2, _BYTE *a3, _BYTE *a4, unsigned long long a5, _DWORD *a6) { const char *v6; // rsi unsigned int v8; // [rsp+4h] [rbp-4Ch] _BYTE *v9; // [rsp+8h] [rbp-48h] _BYTE *v13; // [rsp+30h] [rbp-20h] BYREF long long v14; // [rsp+38h] [rbp-18h] long long v15; // [rsp+40h] [rbp-10h] v15 = a1; v14 = a2; v13 = a3; if ( (*a3 & 0x80) != 0 ) v8 = *(_DWORD *)(*(_QWORD *)v15 + 380LL); else v8 = 0; if ( (*(_WORD *)(v14 + 10) & 0x28) != 0 ) { v13 += v8 + 2; v9 = v13; *a4 = 0; while ( (unsigned long long)v13 < a5 ) { v9 = v13; *a6 = (*(long long ( **)(long long, _QWORD, _BYTE **, _BYTE *))(v14 + 72))(v14, v8, &v13, a4); if ( !*a6 ) { v6 = *(const char **)(*(_QWORD *)v15 + 616LL); mi_report_error(126, (long long)v6); *(_DWORD *)my_thread_var(126LL, v6) = 126; return 0LL; } } } else { v9 = (_BYTE *)(a5 - *(unsigned __int16 *)(v14 + 18) - v8); *a6 = *(unsigned __int16 *)(v14 + 18); if ( v9 > v13 ) memmove(a4, v9, v8 + *(unsigned __int16 *)(v14 + 18)); } return v9; }
_mi_get_last_key: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV qword ptr [RBP + -0x30],R8 MOV qword ptr [RBP + -0x38],R9 JMP 0x001c6952 LAB_001c6952: MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX] AND EAX,0x80 CMP EAX,0x0 JZ 0x001c6975 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX + 0x17c] MOV dword ptr [RBP + -0x4c],EAX JMP 0x001c697c LAB_001c6975: XOR EAX,EAX MOV dword ptr [RBP + -0x4c],EAX JMP 0x001c697c LAB_001c697c: MOV EAX,dword ptr [RBP + -0x4c] MOV dword ptr [RBP + -0x3c],EAX MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,word ptr [RAX + 0xa] AND EAX,0x28 CMP EAX,0x0 JNZ 0x001c69f3 MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,word ptr [RCX + 0x12] MOVSXD RDX,ECX XOR ECX,ECX SUB RCX,RDX ADD RAX,RCX MOV ECX,dword ptr [RBP + -0x3c] MOV EDX,ECX XOR ECX,ECX SUB RCX,RDX ADD RAX,RCX MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x18] MOVZX ECX,word ptr [RAX + 0x12] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x48] CMP RAX,qword ptr [RBP + -0x20] JBE 0x001c69ee MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,word ptr [RAX + 0x12] ADD EAX,dword ptr [RBP + -0x3c] MOV EAX,EAX MOV EDX,EAX CALL 0x0012a140 LAB_001c69ee: JMP 0x001c6a82 LAB_001c69f3: MOV ECX,dword ptr [RBP + -0x3c] ADD ECX,0x2 MOV RAX,qword ptr [RBP + -0x20] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x20],RAX MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX],0x0 LAB_001c6a11: MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x30] JNC 0x001c6a80 MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x48] MOV RDI,qword ptr [RBP + -0x18] MOV ESI,dword ptr [RBP + -0x3c] MOV RCX,qword ptr [RBP + -0x28] LEA RDX,[RBP + -0x20] CALL RAX MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x38] CMP dword ptr [RAX],0x0 JNZ 0x001c6a7e JMP 0x001c6a4f LAB_001c6a4f: JMP 0x001c6a51 LAB_001c6a51: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x268] MOV EDI,0x7e CALL 0x001b34c0 CALL 0x001fea30 MOV dword ptr [RAX],0x7e MOV qword ptr [RBP + -0x8],0x0 JMP 0x001c6a90 LAB_001c6a7e: JMP 0x001c6a11 LAB_001c6a80: JMP 0x001c6a82 LAB_001c6a82: JMP 0x001c6a84 LAB_001c6a84: JMP 0x001c6a86 LAB_001c6a86: JMP 0x001c6a88 LAB_001c6a88: MOV RAX,qword ptr [RBP + -0x48] MOV qword ptr [RBP + -0x8],RAX LAB_001c6a90: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x50 POP RBP RET
byte * _mi_get_last_key(long *param_1,long param_2,byte *param_3,int1 *param_4,byte *param_5, uint *param_6) { uint uVar1; int4 *puVar2; uint local_54; byte *local_50; byte *local_28; long local_20; long *local_18; byte *local_10; if ((*param_3 & 0x80) == 0) { local_54 = 0; } else { local_54 = *(uint *)(*param_1 + 0x17c); } local_20 = param_2; local_18 = param_1; if ((*(ushort *)(param_2 + 10) & 0x28) == 0) { local_50 = param_5 + (-(ulong)local_54 - (long)(int)(uint)*(ushort *)(param_2 + 0x12)); *param_6 = (uint)*(ushort *)(param_2 + 0x12); if (param_3 < local_50) { local_28 = param_3; memmove(param_4,local_50,(ulong)(*(ushort *)(param_2 + 0x12) + local_54)); } LAB_001c6a82: local_10 = local_50; } else { local_50 = param_3 + (local_54 + 2); *param_4 = 0; local_28 = local_50; do { if (param_5 <= local_28) goto LAB_001c6a82; local_50 = local_28; uVar1 = (**(code **)(local_20 + 0x48))(local_20,local_54,&local_28,param_4); *param_6 = uVar1; } while (*param_6 != 0); mi_report_error(0x7e,*(int8 *)(*local_18 + 0x268)); puVar2 = (int4 *)_my_thread_var(); *puVar2 = 0x7e; local_10 = (byte *)0x0; } return local_10; }
27,650
bool nlohmann::json_abi_v3_11_3::detail::iter_impl<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>::operator==<nlohmann::json_abi_v3_11_3::detail::iter_impl<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>, nullptr>(nlohmann::json_abi_v3_11_3::detail::iter_impl<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> const&) const
monkey531[P]llama/common/json.hpp
bool operator==(const IterImpl& other) const { // if objects are not the same, the comparison is undefined if (JSON_HEDLEY_UNLIKELY(m_object != other.m_object)) { JSON_THROW(invalid_iterator::create(212, "cannot compare iterators of different containers", m_object)); } JSON_ASSERT(m_object != nullptr); switch (m_object->m_data.m_type) { case value_t::object: return (m_it.object_iterator == other.m_it.object_iterator); case value_t::array: return (m_it.array_iterator == other.m_it.array_iterator); case value_t::null: case value_t::string: case value_t::boolean: case value_t::number_integer: case value_t::number_unsigned: case value_t::number_float: case value_t::binary: case value_t::discarded: default: return (m_it.primitive_iterator == other.m_it.primitive_iterator); } }
O3
cpp
bool nlohmann::json_abi_v3_11_3::detail::iter_impl<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>::operator==<nlohmann::json_abi_v3_11_3::detail::iter_impl<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>, nullptr>(nlohmann::json_abi_v3_11_3::detail::iter_impl<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> const&) const: pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x28, %rsp movq %rdi, %r14 movq (%rdi), %rax cmpq (%rsi), %rax jne 0x47c9f testq %rax, %rax je 0x47cfd movzbl (%rax), %eax cmpl $0x2, %eax je 0x47c7f cmpl $0x1, %eax jne 0x47c89 movq 0x8(%r14), %rax cmpq 0x8(%rsi), %rax jmp 0x47c91 movq 0x10(%r14), %rax cmpq 0x10(%rsi), %rax jmp 0x47c91 movq 0x18(%r14), %rax cmpq 0x18(%rsi), %rax sete %al addq $0x28, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movl $0x20, %edi callq 0x19370 movq %rax, %rbx leaq 0x18(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x6e4a1(%rip), %rsi # 0xb615d leaq 0x6e4ca(%rip), %rdx # 0xb618d leaq 0x8(%rsp), %rdi callq 0x22878 movq (%r14), %rcx movb $0x1, %bpl leaq 0x8(%rsp), %rdx movq %rbx, %rdi movl $0xd4, %esi callq 0x47d52 xorl %ebp, %ebp leaq 0xa145a(%rip), %rsi # 0xe9148 leaq -0x14573(%rip), %rdx # 0x33782 movq %rbx, %rdi callq 0x19ba0 leaq 0x6fa96(%rip), %rdi # 0xb779a leaq 0x6d477(%rip), %rdx # 0xb5182 leaq 0x6fca7(%rip), %rcx # 0xb79b9 movl $0x3422, %esi # imm = 0x3422 xorl %eax, %eax callq 0x19b30 movq %rax, %r14 movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x47d38 movq 0x18(%rsp), %rsi incq %rsi callq 0x196d0 testb %bpl, %bpl jne 0x47d42 jmp 0x47d4a movq %rax, %r14 movq %rbx, %rdi callq 0x19510 movq %r14, %rdi callq 0x19c00
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_: push rbp; char push r15; int push r14; __int64 push rbx; int sub rsp, 28h mov r14, rdi mov rax, [rdi] cmp rax, [rsi] jnz short loc_47C9F test rax, rax jz loc_47CFD movzx eax, byte ptr [rax] cmp eax, 2 jz short loc_47C7F cmp eax, 1 jnz short loc_47C89 mov rax, [r14+8] cmp rax, [rsi+8] jmp short loc_47C91 loc_47C7F: mov rax, [r14+10h] cmp rax, [rsi+10h] jmp short loc_47C91 loc_47C89: mov rax, [r14+18h] cmp rax, [rsi+18h] loc_47C91: setz al add rsp, 28h pop rbx pop r14 pop r15 pop rbp retn loc_47C9F: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax lea r15, [rsp+48h+var_30] mov [r15-10h], r15 lea rsi, aCannotCompareI; "cannot compare iterators of different c"... lea rdx, aCannotCompareI+30h; "" lea rdi, [rsp+48h+var_40] 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) mov rcx, [r14] mov bpl, 1 lea rdx, [rsp+48h+var_40] mov rdi, rbx; this mov esi, 0D4h; int call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_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_36detail16invalid_iteratorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw loc_47CFD: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aAnchorMObjectN+7; "m_object != nullptr" mov esi, 3422h xor eax, eax call _ggml_abort mov r14, rax mov rdi, [rsp+48h+var_40]; void * cmp rdi, r15 jz short loc_47D38 mov rsi, [rsp+48h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_47D38: test bpl, bpl jnz short loc_47D42 jmp short loc_47D4A mov r14, rax loc_47D42: mov rdi, rbx; void * call ___cxa_free_exception loc_47D4A: mov rdi, r14 call __Unwind_Resume
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x28 MOV R14,RDI MOV RAX,qword ptr [RDI] CMP RAX,qword ptr [RSI] JNZ 0x00147c9f TEST RAX,RAX JZ 0x00147cfd MOVZX EAX,byte ptr [RAX] CMP EAX,0x2 JZ 0x00147c7f CMP EAX,0x1 JNZ 0x00147c89 MOV RAX,qword ptr [R14 + 0x8] CMP RAX,qword ptr [RSI + 0x8] JMP 0x00147c91 LAB_00147c7f: MOV RAX,qword ptr [R14 + 0x10] CMP RAX,qword ptr [RSI + 0x10] JMP 0x00147c91 LAB_00147c89: MOV RAX,qword ptr [R14 + 0x18] CMP RAX,qword ptr [RSI + 0x18] LAB_00147c91: SETZ AL ADD RSP,0x28 POP RBX POP R14 POP R15 POP RBP RET LAB_00147c9f: MOV EDI,0x20 CALL 0x00119370 MOV RBX,RAX LEA R15,[RSP + 0x18] MOV qword ptr [R15 + -0x10],R15 LAB_00147cb5: LEA RSI,[0x1b615d] LEA RDX,[0x1b618d] LEA RDI,[RSP + 0x8] CALL 0x00122878 MOV RCX,qword ptr [R14] MOV BPL,0x1 LAB_00147cd3: LEA RDX,[RSP + 0x8] MOV RDI,RBX MOV ESI,0xd4 CALL 0x00147d52 XOR EBP,EBP LEA RSI,[0x1e9148] LEA RDX,[0x133782] MOV RDI,RBX CALL 0x00119ba0 LAB_00147cfd: LEA RDI,[0x1b779a] LEA RDX,[0x1b5182] LEA RCX,[0x1b79b9] MOV ESI,0x3422 XOR EAX,EAX CALL 0x00119b30
int8 _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ (int8 *param_1,int8 *param_2) { char *pcVar1; long lVar2; int8 uVar3; bool bVar4; int1 *local_40 [2]; int1 local_30 [16]; pcVar1 = (char *)*param_1; if (pcVar1 != (char *)*param_2) { uVar3 = __cxa_allocate_exception(0x20); local_40[0] = local_30; /* try { // try from 00147cb5 to 00147ccc has its CatchHandler @ 00147d3f */ std::__cxx11::string::_M_construct<char_const*> (local_40,"cannot compare iterators of different containers",""); /* try { // try from 00147cd3 to 00147cfc has its CatchHandler @ 00147d1e */ _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar3,0xd4,local_40,*param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar3,&nlohmann::json_abi_v3_11_3::detail::invalid_iterator::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } if (pcVar1 != (char *)0x0) { if (*pcVar1 == '\x02') { lVar2 = param_1[2]; bVar4 = lVar2 == param_2[2]; } else if (*pcVar1 == '\x01') { lVar2 = param_1[1]; bVar4 = lVar2 == param_2[1]; } else { lVar2 = param_1[3]; bVar4 = lVar2 == param_2[3]; } return CONCAT71((int7)((ulong)lVar2 >> 8),bVar4); } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x3422, "GGML_ASSERT(%s) failed","m_object != nullptr"); }
27,651
google::protobuf::RepeatedField<int>::RepeatedField(google::protobuf::RepeatedField<int> const&)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/repeated_field.h
inline RepeatedField<Element>::RepeatedField(const RepeatedField& other) : current_size_(0), total_size_(0), arena_or_elements_(nullptr) { if (other.current_size_ != 0) { Reserve(other.size()); AddNAlreadyReserved(other.size()); CopyArray(Mutable(0), &other.Get(0), other.size()); } }
O3
c
google::protobuf::RepeatedField<int>::RepeatedField(google::protobuf::RepeatedField<int> const&): pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx xorps %xmm0, %xmm0 movups %xmm0, (%rdi) movl (%rsi), %esi testl %esi, %esi je 0x7f557 movq %rdi, %r14 callq 0x7f560 movl (%rbx), %eax movq 0x8(%r14), %rdi addl %eax, (%r14) movq 0x8(%rbx), %rsi movslq (%rbx), %rdx shlq $0x2, %rdx addq $0x8, %rsp popq %rbx popq %r14 jmp 0x2ceb0 addq $0x8, %rsp popq %rbx popq %r14 retq nop
_ZN6google8protobuf13RepeatedFieldIiEC2ERKS2_: push r14 push rbx push rax mov rbx, rsi xorps xmm0, xmm0 movups xmmword ptr [rdi], xmm0 mov esi, [rsi] test esi, esi jz short loc_7F557 mov r14, rdi call _ZN6google8protobuf13RepeatedFieldIiE7ReserveEi; google::protobuf::RepeatedField<int>::Reserve(int) mov eax, [rbx] mov rdi, [r14+8] add [r14], eax mov rsi, [rbx+8] movsxd rdx, dword ptr [rbx] shl rdx, 2 add rsp, 8 pop rbx pop r14 jmp _memcpy loc_7F557: add rsp, 8 pop rbx pop r14 retn
long long google::protobuf::RepeatedField<int>::RepeatedField(long long a1, _DWORD *a2) { long long v3; // rsi long long v5; // rdi long long result; // rax *(_OWORD *)a1 = 0LL; v3 = (unsigned int)*a2; if ( (_DWORD)v3 ) { google::protobuf::RepeatedField<int>::Reserve(a1, v3); v5 = *(_QWORD *)(a1 + 8); *(_DWORD *)a1 += *a2; return memcpy(v5); } return result; }
RepeatedField: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RSI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI],XMM0 MOV ESI,dword ptr [RSI] TEST ESI,ESI JZ 0x0017f557 MOV R14,RDI CALL 0x0017f560 MOV EAX,dword ptr [RBX] MOV RDI,qword ptr [R14 + 0x8] ADD dword ptr [R14],EAX MOV RSI,qword ptr [RBX + 0x8] MOVSXD RDX,dword ptr [RBX] SHL RDX,0x2 ADD RSP,0x8 POP RBX POP R14 JMP 0x0012ceb0 LAB_0017f557: ADD RSP,0x8 POP RBX POP R14 RET
/* google::protobuf::RepeatedField<int>::RepeatedField(google::protobuf::RepeatedField<int> const&) */ void __thiscall google::protobuf::RepeatedField<int>::RepeatedField(RepeatedField<int> *this,RepeatedField *param_1) { *(int8 *)this = 0; *(int8 *)(this + 8) = 0; if (*(int *)param_1 != 0) { Reserve(this,*(int *)param_1); *(int *)this = *(int *)this + *(int *)param_1; memcpy(*(void **)(this + 8),*(void **)(param_1 + 8),(long)*(int *)param_1 << 2); return; } return; }
27,652
common_params_get_system_info[abi:cxx11](common_params const&)
monkey531[P]llama/common/common.cpp
std::string common_params_get_system_info(const common_params & params) { std::ostringstream os; os << "system_info: n_threads = " << params.cpuparams.n_threads; if (params.cpuparams_batch.n_threads != -1) { os << " (n_threads_batch = " << params.cpuparams_batch.n_threads << ")"; } #if defined(_WIN32) && (_WIN32_WINNT >= 0x0601) && !defined(__MINGW64__) // windows 7 and later // TODO: windows + arm64 + mingw64 DWORD logicalProcessorCount = GetActiveProcessorCount(ALL_PROCESSOR_GROUPS); os << " / " << logicalProcessorCount << " | " << llama_print_system_info(); #else os << " / " << std::thread::hardware_concurrency() << " | " << llama_print_system_info(); #endif return os.str(); }
O1
cpp
common_params_get_system_info[abi:cxx11](common_params const&): pushq %r15 pushq %r14 pushq %rbx subq $0x180, %rsp # imm = 0x180 movq %rsi, %r14 movq %rdi, %rbx leaq 0x8(%rsp), %r15 movq %r15, %rdi callq 0x18880 leaq 0x8ca53(%rip), %rsi # 0xa9d92 movl $0x19, %edx movq %r15, %rdi callq 0x18770 movl 0x274(%r14), %esi leaq 0x8(%rsp), %rdi callq 0x18b50 cmpl $-0x1, 0x488(%r14) je 0x1d3a2 leaq 0x8ca3e(%rip), %rsi # 0xa9dac leaq 0x8(%rsp), %rdi movl $0x14, %edx callq 0x18770 movl 0x488(%r14), %esi leaq 0x8(%rsp), %rdi callq 0x18b50 leaq 0x965ea(%rip), %rsi # 0xb397f movl $0x1, %edx movq %rax, %rdi callq 0x18770 leaq 0x8ca18(%rip), %rsi # 0xa9dc1 leaq 0x8(%rsp), %rdi movl $0x3, %edx callq 0x18770 callq 0x188d0 movl %eax, %esi leaq 0x8(%rsp), %rdi callq 0x18480 movq %rax, %r14 leaq 0x969cf(%rip), %rsi # 0xb3da2 movl $0x3, %edx movq %rax, %rdi callq 0x18770 callq 0x183e0 movq %rax, %r15 testq %rax, %rax je 0x1d405 movq %r15, %rdi callq 0x18300 movq %r14, %rdi movq %r15, %rsi movq %rax, %rdx callq 0x18770 jmp 0x1d41f movq (%r14), %rax movq -0x18(%rax), %rax movq %r14, %rdi addq %rax, %rdi movl 0x20(%r14,%rax), %esi orl $0x1, %esi callq 0x18b10 leaq 0x10(%rsp), %rsi movq %rbx, %rdi callq 0x18a40 movq 0xc0b55(%rip), %rsi # 0xddf88 leaq 0x8(%rsp), %rdi callq 0x183a0 leaq 0x78(%rsp), %rdi callq 0x18200 movq %rbx, %rax addq $0x180, %rsp # imm = 0x180 popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx movq 0xc0b27(%rip), %rsi # 0xddf88 leaq 0x8(%rsp), %rdi callq 0x183a0 leaq 0x78(%rsp), %rdi callq 0x18200 movq %rbx, %rdi callq 0x18ba0
_Z29common_params_get_system_infoB5cxx11RK13common_params: push r15 push r14 push rbx sub rsp, 180h mov r14, rsi mov rbx, rdi lea r15, [rsp+198h+var_190] mov rdi, r15 call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void) lea rsi, aSystemInfoNThr; "system_info: n_threads = " mov edx, 19h mov rdi, r15 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov esi, [r14+274h] lea rdi, [rsp+198h+var_190] call __ZNSolsEi; std::ostream::operator<<(int) cmp dword ptr [r14+488h], 0FFFFFFFFh jz short loc_1D3A2 lea rsi, aNThreadsBatch; " (n_threads_batch = " lea rdi, [rsp+198h+var_190] mov edx, 14h call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov esi, [r14+488h] lea rdi, [rsp+198h+var_190] call __ZNSolsEi; std::ostream::operator<<(int) lea rsi, a09401910201912+51h; ")" mov edx, 1 mov rdi, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) loc_1D3A2: lea rsi, asc_A9DC1; " / " lea rdi, [rsp+198h+var_190]; this mov edx, 3 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) call __ZNSt6thread20hardware_concurrencyEv; std::thread::hardware_concurrency(void) mov esi, eax lea rdi, [rsp+198h+var_190] call __ZNSo9_M_insertImEERSoT_; std::ostream::_M_insert<ulong>(ulong) mov r14, rax lea rsi, asc_B3DA1+1; " | " mov edx, 3 mov rdi, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) call _llama_print_system_info mov r15, rax test rax, rax jz short loc_1D405 mov rdi, r15 call _strlen mov rdi, r14 mov rsi, r15 mov rdx, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) jmp short loc_1D41F loc_1D405: mov rax, [r14] mov rax, [rax-18h] mov rdi, r14 add rdi, rax mov esi, [r14+rax+20h] or esi, 1 call __ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate; std::ios::clear(std::_Ios_Iostate) loc_1D41F: lea rsi, [rsp+198h+var_188] mov rdi, rbx call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+198h+var_190] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream() lea rdi, [rsp+198h+var_120]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov rax, rbx add rsp, 180h pop rbx pop r14 pop r15 retn mov rbx, rax mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+arg_0] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream() lea rdi, [rsp+arg_70]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov rdi, rbx call __Unwind_Resume
long long common_params_get_system_info[abi:cxx11](long long a1, long long a2) { long long v2; // rax unsigned int v3; // eax _QWORD *v4; // r14 long long v5; // rax long long v6; // r15 long long v7; // rax _BYTE v9[8]; // [rsp+8h] [rbp-190h] BYREF _BYTE v10[104]; // [rsp+10h] [rbp-188h] BYREF _BYTE v11[288]; // [rsp+78h] [rbp-120h] BYREF std::ostringstream::basic_ostringstream(v9); std::__ostream_insert<char,std::char_traits<char>>(v9, "system_info: n_threads = ", 25LL); std::ostream::operator<<(v9, *(unsigned int *)(a2 + 628)); if ( *(_DWORD *)(a2 + 1160) != -1 ) { std::__ostream_insert<char,std::char_traits<char>>(v9, " (n_threads_batch = ", 20LL); v2 = std::ostream::operator<<(v9, *(unsigned int *)(a2 + 1160)); std::__ostream_insert<char,std::char_traits<char>>(v2, ")", 1LL); } std::__ostream_insert<char,std::char_traits<char>>(v9, " / ", 3LL); v3 = std::thread::hardware_concurrency((std::thread *)v9); v4 = (_QWORD *)std::ostream::_M_insert<unsigned long>(v9, v3); std::__ostream_insert<char,std::char_traits<char>>(v4, " | ", 3LL); v5 = llama_print_system_info(); v6 = v5; if ( v5 ) { v7 = strlen(v5); std::__ostream_insert<char,std::char_traits<char>>(v4, v6, v7); } else { std::ios::clear((char *)v4 + *(_QWORD *)(*v4 - 24LL), *(_DWORD *)((char *)v4 + *(_QWORD *)(*v4 - 24LL) + 32) | 1u); } std::stringbuf::str(a1, v10); std::ostringstream::~ostringstream(v9, &`VTT for'std::ostringstream); std::ios_base::~ios_base((std::ios_base *)v11); return a1; }
common_params_get_system_info[abi:cxx11]: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x180 MOV R14,RSI MOV RBX,RDI LEA R15,[RSP + 0x8] MOV RDI,R15 CALL 0x00118880 LAB_0011d338: LEA RSI,[0x1a9d92] MOV EDX,0x19 MOV RDI,R15 CALL 0x00118770 MOV ESI,dword ptr [R14 + 0x274] LEA RDI,[RSP + 0x8] CALL 0x00118b50 CMP dword ptr [R14 + 0x488],-0x1 JZ 0x0011d3a2 LEA RSI,[0x1a9dac] LEA RDI,[RSP + 0x8] MOV EDX,0x14 CALL 0x00118770 MOV ESI,dword ptr [R14 + 0x488] LEA RDI,[RSP + 0x8] CALL 0x00118b50 LEA RSI,[0x1b397f] MOV EDX,0x1 MOV RDI,RAX CALL 0x00118770 LAB_0011d3a2: LEA RSI,[0x1a9dc1] LEA RDI,[RSP + 0x8] MOV EDX,0x3 CALL 0x00118770 CALL 0x001188d0 MOV ESI,EAX LEA RDI,[RSP + 0x8] CALL 0x00118480 MOV R14,RAX LEA RSI,[0x1b3da2] MOV EDX,0x3 MOV RDI,RAX CALL 0x00118770 CALL 0x001183e0 MOV R15,RAX TEST RAX,RAX JZ 0x0011d405 MOV RDI,R15 CALL 0x00118300 MOV RDI,R14 MOV RSI,R15 MOV RDX,RAX CALL 0x00118770 JMP 0x0011d41f LAB_0011d405: MOV RAX,qword ptr [R14] MOV RAX,qword ptr [RAX + -0x18] MOV RDI,R14 ADD RDI,RAX MOV ESI,dword ptr [R14 + RAX*0x1 + 0x20] OR ESI,0x1 CALL 0x00118b10 LAB_0011d41f: LEA RSI,[RSP + 0x10] MOV RDI,RBX CALL 0x00118a40 LAB_0011d42c: MOV RSI,qword ptr [0x001ddf88] LEA RDI,[RSP + 0x8] CALL 0x001183a0 LEA RDI,[RSP + 0x78] CALL 0x00118200 MOV RAX,RBX ADD RSP,0x180 POP RBX POP R14 POP R15 RET
/* common_params_get_system_info[abi:cxx11](common_params const&) */ common_params * common_params_get_system_info_abi_cxx11_(common_params *param_1) { ostream *poVar1; char *__s; size_t sVar2; long in_RSI; ostringstream local_190 [112]; ios_base local_120 [264]; std::__cxx11::ostringstream::ostringstream(local_190); /* try { // try from 0011d338 to 0011d42b has its CatchHandler @ 0011d457 */ std::__ostream_insert<char,std::char_traits<char>> ((ostream *)local_190,"system_info: n_threads = ",0x19); std::ostream::operator<<((ostream *)local_190,*(int *)(in_RSI + 0x274)); if (*(int *)(in_RSI + 0x488) != -1) { std::__ostream_insert<char,std::char_traits<char>> ((ostream *)local_190," (n_threads_batch = ",0x14); poVar1 = (ostream *)std::ostream::operator<<((ostream *)local_190,*(int *)(in_RSI + 0x488)); std::__ostream_insert<char,std::char_traits<char>>(poVar1,")",1); } std::__ostream_insert<char,std::char_traits<char>>((ostream *)local_190," / ",3); std::thread::hardware_concurrency(); poVar1 = std::ostream::_M_insert<unsigned_long>((ulong)local_190); std::__ostream_insert<char,std::char_traits<char>>(poVar1," | ",3); __s = (char *)llama_print_system_info(); if (__s == (char *)0x0) { std::ios::clear(poVar1 + *(long *)(*(long *)poVar1 + -0x18), *(uint *)(poVar1 + *(long *)(*(long *)poVar1 + -0x18) + 0x20) | 1); } else { sVar2 = strlen(__s); std::__ostream_insert<char,std::char_traits<char>>(poVar1,__s,sVar2); } std::__cxx11::stringbuf::str(); std::__cxx11::ostringstream::~ostringstream(local_190); std::ios_base::~ios_base(local_120); return param_1; }
27,653
POINTonE2_mult_w5
corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/e2.c
POINT_AFFINE_MULT_SCALAR_IMPL(POINTonE2) DECLARE_PRIVATE_POINTXZ(POINTonE2, 384x) POINT_LADDER_PRE_IMPL(POINTonE2, 384x, fp2) POINT_LADDER_STEP_IMPL_A0(POINTonE2, 384x, fp2, onE2) POINT_LADDER_POST_IMPL_A0(POINTonE2, 384x, fp2, onE2) POINT_MULT_SCALAR_LADDER_IMPL(POINTonE2) #endif static void psi(POINTonE2 *out, const POINTonE2 *in) { static const vec384x frobenius_x = { /* 1/(1 + i)^((P-1)/3) */ { 0 }, { /* (0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4 897d29650fb85f9b409427eb4f49fffd8bfd00000000aaad << 384) % P */ TO_LIMB_T(0x890dc9e4867545c3), TO_LIMB_T(0x2af322533285a5d5), TO_LIMB_T(0x50880866309b7e2c), TO_LIMB_T(0xa20d1b8c7e881024), TO_LIMB_T(0x14e4f04fe2db9068), TO_LIMB_T(0x14e56d3f1564853a) } }; static const vec384x frobenius_y = { /* 1/(1 + i)^((P-1)/2) */ { /* (0x135203e60180a68ee2e9c448d77a2cd91c3dedd930b1cf60 ef396489f61eb45e304466cf3e67fa0af1ee7b04121bdea2 << 384) % P */ TO_LIMB_T(0x3e2f585da55c9ad1), TO_LIMB_T(0x4294213d86c18183), TO_LIMB_T(0x382844c88b623732), TO_LIMB_T(0x92ad2afd19103e18), TO_LIMB_T(0x1d794e4fac7cf0b9), TO_LIMB_T(0x0bd592fc7d825ec8) }, { /* (0x06af0e0437ff400b6831e36d6bd17ffe48395dabc2d3435e 77f76e17009241c5ee67992f72ec05f4c81084fbede3cc09 << 384) % P */ TO_LIMB_T(0x7bcfa7a25aa30fda), TO_LIMB_T(0xdc17dec12a927e7c), TO_LIMB_T(0x2f088dd86b4ebef1), TO_LIMB_T(0xd1ca2087da74d4a7), TO_LIMB_T(0x2da2596696cebc1d), TO_LIMB_T(0x0e2b7eedbbfd87d2) }, }; vec_copy(out, in, sizeof(*out)); cneg_fp(out->X[1], out->X[1], 1); mul_fp2(out->X, out->X, frobenius_x); cneg_fp(out->Y[1], out->Y[1], 1); mul_fp2(out->Y, out->Y, frobenius_y); cneg_fp(out->Z[1], out->Z[1], 1); } /* Galbraith-Lin-Scott, ~67% faster than POINTonE2_mul_w5 */ static void POINTonE2_mult_gls(POINTonE2 *out, const POINTonE2 *in, const pow256 SK) { union { vec256 l; pow256 s; } val; /* break down SK to "digits" with |z| as radix [in constant time] */ limbs_from_le_bytes(val.l, SK, 32); div_by_zz(val.l); div_by_z(val.l); div_by_z(val.l + NLIMBS(256)/2); le_bytes_from_limbs(val.s, val.l, 32); { const byte *scalars[2] = { val.s, NULL }; POINTonE2 table[4][1<<(5-1)]; /* 18KB */ size_t i; POINTonE2_precompute_w5(table[0], in); for (i = 0; i < 1<<(5-1); i++) { psi(&table[1][i], &table[0][i]); psi(&table[2][i], &table[1][i]); psi(&table[3][i], &table[2][i]); POINTonE2_cneg(&table[1][i], 1); /* account for z being negative */ POINTonE2_cneg(&table[3][i], 1); } POINTonE2s_mult_w5(out, NULL, 4, scalars, 64, table); } vec_zero(val.l, sizeof(val)); /* scrub the copy of SK */ }
O3
c
POINTonE2_mult_w5: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movl $0x120, %r12d # imm = 0x120 movl $0x120, %edx # imm = 0x120 callq 0x211a0 leaq 0x120(%rbx), %rdi movq %r14, %rsi callq 0x5bc78 leaq 0x240(%rbx), %r14 movl $0x7, %r13d leaq (%rbx,%r12), %r15 movq %r14, %rdi movq %r15, %rsi movq %rbx, %rdx callq 0x5aed3 leaq (%r14,%r12), %rdi movq %r15, %rsi callq 0x5bc78 addq $0x240, %r14 # imm = 0x240 movq %r15, %rbx decq %r13 jne 0x651da addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
POINTonE2_precompute_w5: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r14, rsi mov rbx, rdi mov r12d, 120h mov edx, 120h call _memcpy lea rdi, [rbx+120h] mov rsi, r14 call POINTonE2_double lea r14, [rbx+240h] mov r13d, 7 loc_651DA: lea r15, [rbx+r12] mov rdi, r14 mov rsi, r15 mov rdx, rbx call POINTonE2_add lea rdi, [r14+r12] mov rsi, r15 call POINTonE2_double add r14, 240h mov rbx, r15 dec r13 jnz short loc_651DA add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long POINTonE2_precompute_w5(long long a1, long long a2) { long long v2; // rbx long long v3; // r14 long long v4; // r13 long long result; // rax v2 = a1; memcpy(a1); POINTonE2_double(a1 + 288, a2); v3 = a1 + 576; v4 = 7LL; do { POINTonE2_add(v3, v2 + 288, v2); result = POINTonE2_double(v3 + 288, v2 + 288); v3 += 576LL; v2 += 288LL; --v4; } while ( v4 ); return result; }
POINTonE2_precompute_w5: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI MOV R12D,0x120 MOV EDX,0x120 CALL 0x001211a0 LEA RDI,[RBX + 0x120] MOV RSI,R14 CALL 0x0015bc78 LEA R14,[RBX + 0x240] MOV R13D,0x7 LAB_001651da: LEA R15,[RBX + R12*0x1] MOV RDI,R14 MOV RSI,R15 MOV RDX,RBX CALL 0x0015aed3 LEA RDI,[R14 + R12*0x1] MOV RSI,R15 CALL 0x0015bc78 ADD R14,0x240 MOV RBX,R15 DEC R13 JNZ 0x001651da ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void POINTonE2_precompute_w5(void *param_1,void *param_2) { void *pvVar1; long lVar2; long lVar3; memcpy(param_1,param_2,0x120); POINTonE2_double((long)param_1 + 0x120,param_2); lVar3 = (long)param_1 + 0x240; lVar2 = 7; do { pvVar1 = (void *)((long)param_1 + 0x120); POINTonE2_add(lVar3,pvVar1,param_1); POINTonE2_double(lVar3 + 0x120,pvVar1); lVar3 = lVar3 + 0x240; lVar2 = lVar2 + -1; param_1 = pvVar1; } while (lVar2 != 0); return; }
27,654
gray_split_conic
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-ft-raster.c
static void gray_split_conic( PVG_FT_Vector* base ) { TPos a, b; base[4].x = base[2].x; b = base[1].x; a = base[3].x = ( base[2].x + b ) / 2; b = base[1].x = ( base[0].x + b ) / 2; base[2].x = ( a + b ) / 2; base[4].y = base[2].y; b = base[1].y; a = base[3].y = ( base[2].y + b ) / 2; b = base[1].y = ( base[0].y + b ) / 2; base[2].y = ( a + b ) / 2; }
O0
c
gray_split_conic: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq 0x20(%rax), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x40(%rax) movq -0x8(%rbp), %rax movq 0x10(%rax), %rax movq %rax, -0x18(%rbp) movq -0x8(%rbp), %rax movq 0x20(%rax), %rax addq -0x18(%rbp), %rax movl $0x2, %ecx cqto idivq %rcx movq -0x8(%rbp), %rcx movq %rax, 0x30(%rcx) movq %rax, -0x10(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax addq -0x18(%rbp), %rax movl $0x2, %ecx cqto idivq %rcx movq -0x8(%rbp), %rcx movq %rax, 0x10(%rcx) movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rax addq -0x18(%rbp), %rax movl $0x2, %ecx cqto idivq %rcx movq %rax, %rcx movq -0x8(%rbp), %rax movq %rcx, 0x20(%rax) movq -0x8(%rbp), %rax movq 0x28(%rax), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x48(%rax) movq -0x8(%rbp), %rax movq 0x18(%rax), %rax movq %rax, -0x18(%rbp) movq -0x8(%rbp), %rax movq 0x28(%rax), %rax addq -0x18(%rbp), %rax movl $0x2, %ecx cqto idivq %rcx movq -0x8(%rbp), %rcx movq %rax, 0x38(%rcx) movq %rax, -0x10(%rbp) movq -0x8(%rbp), %rax movq 0x8(%rax), %rax addq -0x18(%rbp), %rax movl $0x2, %ecx cqto idivq %rcx movq -0x8(%rbp), %rcx movq %rax, 0x18(%rcx) movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rax addq -0x18(%rbp), %rax movl $0x2, %ecx cqto idivq %rcx movq %rax, %rcx movq -0x8(%rbp), %rax movq %rcx, 0x28(%rax) popq %rbp retq nopw %cs:(%rax,%rax)
gray_split_conic: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov rcx, [rax+20h] mov rax, [rbp+var_8] mov [rax+40h], rcx mov rax, [rbp+var_8] mov rax, [rax+10h] mov [rbp+var_18], rax mov rax, [rbp+var_8] mov rax, [rax+20h] add rax, [rbp+var_18] mov ecx, 2 cqo idiv rcx mov rcx, [rbp+var_8] mov [rcx+30h], rax mov [rbp+var_10], rax mov rax, [rbp+var_8] mov rax, [rax] add rax, [rbp+var_18] mov ecx, 2 cqo idiv rcx mov rcx, [rbp+var_8] mov [rcx+10h], rax mov [rbp+var_18], rax mov rax, [rbp+var_10] add rax, [rbp+var_18] mov ecx, 2 cqo idiv rcx mov rcx, rax mov rax, [rbp+var_8] mov [rax+20h], rcx mov rax, [rbp+var_8] mov rcx, [rax+28h] mov rax, [rbp+var_8] mov [rax+48h], rcx mov rax, [rbp+var_8] mov rax, [rax+18h] mov [rbp+var_18], rax mov rax, [rbp+var_8] mov rax, [rax+28h] add rax, [rbp+var_18] mov ecx, 2 cqo idiv rcx mov rcx, [rbp+var_8] mov [rcx+38h], rax mov [rbp+var_10], rax mov rax, [rbp+var_8] mov rax, [rax+8] add rax, [rbp+var_18] mov ecx, 2 cqo idiv rcx mov rcx, [rbp+var_8] mov [rcx+18h], rax mov [rbp+var_18], rax mov rax, [rbp+var_10] add rax, [rbp+var_18] mov ecx, 2 cqo idiv rcx mov rcx, rax mov rax, [rbp+var_8] mov [rax+28h], rcx pop rbp retn
_QWORD * gray_split_conic(_QWORD *a1) { long long v1; // rax long long v2; // rax long long v3; // rax long long v4; // rax __int128 v5; // rtt _QWORD *result; // rax long long v7; // [rsp+0h] [rbp-18h] long long v8; // [rsp+0h] [rbp-18h] long long v9; // [rsp+8h] [rbp-10h] long long v10; // [rsp+8h] [rbp-10h] a1[8] = a1[4]; v7 = a1[2]; v1 = (v7 + a1[4]) / 2; a1[6] = v1; v9 = v1; v2 = (v7 + *a1) / 2; a1[2] = v2; a1[4] = (v2 + v9) / 2; a1[9] = a1[5]; v8 = a1[3]; v3 = (v8 + a1[5]) / 2; a1[7] = v3; v10 = v3; v4 = (v8 + a1[1]) / 2; a1[3] = v4; v5 = v4 + v10; result = a1; a1[5] = v5 / 2; return result; }
gray_split_conic: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x20] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x40],RCX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x20] ADD RAX,qword ptr [RBP + -0x18] MOV ECX,0x2 CQO IDIV RCX MOV RCX,qword ptr [RBP + -0x8] MOV qword ptr [RCX + 0x30],RAX MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] ADD RAX,qword ptr [RBP + -0x18] MOV ECX,0x2 CQO IDIV RCX MOV RCX,qword ptr [RBP + -0x8] MOV qword ptr [RCX + 0x10],RAX MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x10] ADD RAX,qword ptr [RBP + -0x18] MOV ECX,0x2 CQO IDIV RCX MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x20],RCX MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x28] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x48],RCX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x28] ADD RAX,qword ptr [RBP + -0x18] MOV ECX,0x2 CQO IDIV RCX MOV RCX,qword ptr [RBP + -0x8] MOV qword ptr [RCX + 0x38],RAX MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] ADD RAX,qword ptr [RBP + -0x18] MOV ECX,0x2 CQO IDIV RCX MOV RCX,qword ptr [RBP + -0x8] MOV qword ptr [RCX + 0x18],RAX MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x10] ADD RAX,qword ptr [RBP + -0x18] MOV ECX,0x2 CQO IDIV RCX MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x28],RCX POP RBP RET
void gray_split_conic(long *param_1) { long lVar1; long lVar2; param_1[8] = param_1[4]; lVar1 = (param_1[4] + param_1[2]) / 2; param_1[6] = lVar1; lVar2 = (*param_1 + param_1[2]) / 2; param_1[2] = lVar2; param_1[4] = (lVar1 + lVar2) / 2; param_1[9] = param_1[5]; lVar1 = (param_1[5] + param_1[3]) / 2; param_1[7] = lVar1; lVar2 = (param_1[1] + param_1[3]) / 2; param_1[3] = lVar2; param_1[5] = (lVar1 + lVar2) / 2; return; }
27,655
testing::internal::TestEventRepeater::OnTestIterationStart(testing::UnitTest const&, int)
giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest.cc
void TestEventRepeater::OnTestIterationStart(const UnitTest& unit_test, int iteration) { if (forwarding_enabled_) { for (size_t i = 0; i < listeners_.size(); i++) { listeners_[i]->OnTestIterationStart(unit_test, iteration); } } }
O1
cpp
testing::internal::TestEventRepeater::OnTestIterationStart(testing::UnitTest const&, int): cmpb $0x1, 0x8(%rdi) jne 0x24330 pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdi, %r15 movq 0x10(%rdi), %rax cmpq %rax, 0x18(%rdi) je 0x24325 movl %edx, %ebx movq %rsi, %r14 xorl %r12d, %r12d movq (%rax,%r12,8), %rdi movq (%rdi), %rax movq %r14, %rsi movl %ebx, %edx callq *0x18(%rax) incq %r12 movq 0x10(%r15), %rax movq 0x18(%r15), %rcx subq %rax, %rcx sarq $0x3, %rcx cmpq %rcx, %r12 jb 0x242ff addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq nop
_ZN7testing8internal17TestEventRepeater20OnTestIterationStartERKNS_8UnitTestEi: cmp byte ptr [rdi+8], 1 jnz short locret_24330 push r15 push r14 push r12 push rbx push rax mov r15, rdi mov rax, [rdi+10h] cmp [rdi+18h], rax jz short loc_24325 mov ebx, edx mov r14, rsi xor r12d, r12d loc_242FF: mov rdi, [rax+r12*8] mov rax, [rdi] mov rsi, r14 mov edx, ebx call qword ptr [rax+18h] inc r12 mov rax, [r15+10h] mov rcx, [r15+18h] sub rcx, rax sar rcx, 3 cmp r12, rcx jb short loc_242FF loc_24325: add rsp, 8 pop rbx pop r12 pop r14 pop r15 locret_24330: retn
long long testing::internal::TestEventRepeater::OnTestIterationStart( testing::internal::TestEventRepeater *this, const testing::UnitTest *a2, unsigned int a3) { long long result; // rax unsigned long long v5; // r12 if ( *((_BYTE *)this + 8) == 1 ) { result = *((_QWORD *)this + 2); if ( *((_QWORD *)this + 3) != result ) { v5 = 0LL; do { (*(void ( **)(_QWORD, const testing::UnitTest *, _QWORD))(**(_QWORD **)(result + 8 * v5) + 24LL))( *(_QWORD *)(result + 8 * v5), a2, a3); ++v5; result = *((_QWORD *)this + 2); } while ( v5 < (*((_QWORD *)this + 3) - result) >> 3 ); } } return result; }
OnTestIterationStart: CMP byte ptr [RDI + 0x8],0x1 JNZ 0x00124330 PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV R15,RDI MOV RAX,qword ptr [RDI + 0x10] CMP qword ptr [RDI + 0x18],RAX JZ 0x00124325 MOV EBX,EDX MOV R14,RSI XOR R12D,R12D LAB_001242ff: MOV RDI,qword ptr [RAX + R12*0x8] MOV RAX,qword ptr [RDI] MOV RSI,R14 MOV EDX,EBX CALL qword ptr [RAX + 0x18] INC R12 MOV RAX,qword ptr [R15 + 0x10] MOV RCX,qword ptr [R15 + 0x18] SUB RCX,RAX SAR RCX,0x3 CMP R12,RCX JC 0x001242ff LAB_00124325: ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 LAB_00124330: RET
/* testing::internal::TestEventRepeater::OnTestIterationStart(testing::UnitTest const&, int) */ void __thiscall testing::internal::TestEventRepeater::OnTestIterationStart (TestEventRepeater *this,UnitTest *param_1,int param_2) { long *plVar1; long lVar2; ulong uVar3; if ((this[8] == (TestEventRepeater)0x1) && (lVar2 = *(long *)(this + 0x10), *(long *)(this + 0x18) != lVar2)) { uVar3 = 0; do { plVar1 = *(long **)(lVar2 + uVar3 * 8); (**(code **)(*plVar1 + 0x18))(plVar1,param_1,param_2); uVar3 = uVar3 + 1; lVar2 = *(long *)(this + 0x10); } while (uVar3 < (ulong)(*(long *)(this + 0x18) - lVar2 >> 3)); } return; }
27,656
ma_crypt_data_pre_write_hook
eloqsql/storage/maria/ma_crypt.c
static my_bool ma_crypt_data_pre_write_hook(PAGECACHE_IO_HOOK_ARGS *args) { MARIA_SHARE *share= (MARIA_SHARE*) args->data; const uint size= share->block_size; uint key_version; uchar *crypt_buf= my_malloc(PSI_INSTRUMENT_ME, share->block_size, MYF(0)); if (crypt_buf == NULL) { args->crypt_buf= NULL; /* for post-hook */ return 1; } if (!share->base.born_transactional) { /* store a random number instead of LSN (for counter block) */ store_rand_lsn(args->page); } maria_page_crc_set_normal(args); { const uchar *src= args->page; uchar* dst= crypt_buf; uint pageno= (uint)args->pageno; LSN lsn= lsn_korr(src); const uchar page_type= src[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK; const uint head= (page_type <= TAIL_PAGE) ? PAGE_HEADER_SIZE(share) : FULL_PAGE_HEADER_SIZE(share); const uint tail= CRC_SIZE; const uint32 key_version_offset= (page_type <= TAIL_PAGE) ? KEY_VERSION_OFFSET : FULL_PAGE_KEY_VERSION_OFFSET; DBUG_ASSERT(page_type < MAX_PAGE_TYPE); /* 1 - copy head */ memcpy(dst, src, head); /* 2 - encrypt page */ if (ma_encrypt(share, share->crypt_data, src + head, dst + head, size - (head + tail), pageno, lsn, &key_version)) return 1; /* 3 - copy tail */ memcpy(dst + size - tail, src + size - tail, tail); /* 4 - store key version */ int4store(dst + key_version_offset, key_version); } /* swap pointers to instead write out the encrypted block */ args->crypt_buf= args->page; args->page= crypt_buf; return 0; }
O0
c
ma_crypt_data_pre_write_hook: pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movq 0x10(%rax), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movl 0x7bc(%rax), %eax movl %eax, -0x1c(%rbp) movq -0x18(%rbp), %rax movl 0x7bc(%rax), %eax movl %eax, %esi xorl %edi, %edi xorl %eax, %eax movl %eax, %edx callq 0xf3830 movq %rax, -0x28(%rbp) cmpq $0x0, -0x28(%rbp) jne 0x5ec3f movq -0x10(%rbp), %rax movq $0x0, 0x18(%rax) movb $0x1, -0x1(%rbp) jmp 0x5edc5 movq -0x18(%rbp), %rax cmpb $0x0, 0x44c(%rax) jne 0x5ec58 movq -0x10(%rbp), %rax movq (%rax), %rdi callq 0x5f450 movq -0x10(%rbp), %rdi callq 0x5d560 movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x30(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movl %eax, -0x3c(%rbp) movq -0x30(%rbp), %rax movzbl (%rax), %eax movq -0x30(%rbp), %rcx movzbl 0x1(%rcx), %ecx shll $0x8, %ecx orl %ecx, %eax movq -0x30(%rbp), %rcx movzbl 0x2(%rcx), %ecx shll $0x10, %ecx orl %ecx, %eax movl %eax, %eax shlq $0x20, %rax movq -0x30(%rbp), %rcx movl 0x3(%rcx), %ecx orq %rcx, %rax movq %rax, -0x48(%rbp) movq -0x30(%rbp), %rax movzbl 0x7(%rax), %eax andl $0x7, %eax movb %al, -0x49(%rbp) movzbl -0x49(%rbp), %eax cmpl $0x2, %eax jg 0x5ecdd movq -0x18(%rbp), %rax movl 0xc18(%rax), %eax addl $0xc, %eax movl %eax, -0x64(%rbp) jmp 0x5eced movq -0x18(%rbp), %rax movl 0xc18(%rax), %eax addl $0x8, %eax movl %eax, -0x64(%rbp) movl -0x64(%rbp), %eax movl %eax, -0x50(%rbp) movl $0x4, -0x54(%rbp) movzbl -0x49(%rbp), %edx movl $0x8, %eax movl $0xc, %ecx cmpl $0x2, %edx cmovlel %ecx, %eax movl %eax, -0x58(%rbp) jmp 0x5ed13 movq -0x38(%rbp), %rdi movq -0x30(%rbp), %rsi movl -0x50(%rbp), %eax movl %eax, %edx callq 0x2a090 movq -0x18(%rbp), %rdi movq -0x18(%rbp), %rax movq 0xc20(%rax), %rsi movq -0x30(%rbp), %rdx movl -0x50(%rbp), %eax addq %rax, %rdx movq -0x38(%rbp), %rcx movl -0x50(%rbp), %eax addq %rax, %rcx movl -0x1c(%rbp), %r8d movl -0x50(%rbp), %eax addl $0x4, %eax subl %eax, %r8d movl -0x3c(%rbp), %r9d movq -0x48(%rbp), %r10 leaq -0x20(%rbp), %rax movq %r10, (%rsp) movq %rax, 0x8(%rsp) callq 0x5f500 cmpl $0x0, %eax je 0x5ed7a movb $0x1, -0x1(%rbp) jmp 0x5edc5 movq -0x38(%rbp), %rax movl -0x1c(%rbp), %ecx movq -0x30(%rbp), %rdx movl -0x1c(%rbp), %esi movl -0x4(%rdx,%rsi), %edx movl %edx, -0x4(%rax,%rcx) movq -0x38(%rbp), %rax movl -0x58(%rbp), %ecx addq %rcx, %rax movq %rax, -0x60(%rbp) movl -0x20(%rbp), %ecx movq -0x60(%rbp), %rax movl %ecx, (%rax) movq -0x10(%rbp), %rax movq (%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x18(%rax) movq -0x28(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x80, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
ma_crypt_data_pre_write_hook: push rbp mov rbp, rsp sub rsp, 80h mov [rbp+var_10], rdi mov rax, [rbp+var_10] mov rax, [rax+10h] mov [rbp+var_18], rax mov rax, [rbp+var_18] mov eax, [rax+7BCh] mov [rbp+var_1C], eax mov rax, [rbp+var_18] mov eax, [rax+7BCh] mov esi, eax xor edi, edi xor eax, eax mov edx, eax call my_malloc mov [rbp+var_28], rax cmp [rbp+var_28], 0 jnz short loc_5EC3F mov rax, [rbp+var_10] mov qword ptr [rax+18h], 0 mov [rbp+var_1], 1 jmp loc_5EDC5 loc_5EC3F: mov rax, [rbp+var_18] cmp byte ptr [rax+44Ch], 0 jnz short loc_5EC58 mov rax, [rbp+var_10] mov rdi, [rax] call store_rand_lsn loc_5EC58: mov rdi, [rbp+var_10] call maria_page_crc_set_normal mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_30], rax mov rax, [rbp+var_28] mov [rbp+var_38], rax mov rax, [rbp+var_10] mov rax, [rax+8] mov [rbp+var_3C], eax mov rax, [rbp+var_30] movzx eax, byte ptr [rax] mov rcx, [rbp+var_30] movzx ecx, byte ptr [rcx+1] shl ecx, 8 or eax, ecx mov rcx, [rbp+var_30] movzx ecx, byte ptr [rcx+2] shl ecx, 10h or eax, ecx mov eax, eax shl rax, 20h mov rcx, [rbp+var_30] mov ecx, [rcx+3] or rax, rcx mov [rbp+var_48], rax mov rax, [rbp+var_30] movzx eax, byte ptr [rax+7] and eax, 7 mov [rbp+var_49], al movzx eax, [rbp+var_49] cmp eax, 2 jg short loc_5ECDD mov rax, [rbp+var_18] mov eax, [rax+0C18h] add eax, 0Ch mov [rbp+var_64], eax jmp short loc_5ECED loc_5ECDD: mov rax, [rbp+var_18] mov eax, [rax+0C18h] add eax, 8 mov [rbp+var_64], eax loc_5ECED: mov eax, [rbp+var_64] mov [rbp+var_50], eax mov [rbp+var_54], 4 movzx edx, [rbp+var_49] mov eax, 8 mov ecx, 0Ch cmp edx, 2 cmovle eax, ecx mov [rbp+var_58], eax jmp short $+2 loc_5ED13: mov rdi, [rbp+var_38] mov rsi, [rbp+var_30] mov eax, [rbp+var_50] mov edx, eax call _memcpy mov rdi, [rbp+var_18] mov rax, [rbp+var_18] mov rsi, [rax+0C20h] mov rdx, [rbp+var_30] mov eax, [rbp+var_50] add rdx, rax mov rcx, [rbp+var_38] mov eax, [rbp+var_50] add rcx, rax mov r8d, [rbp+var_1C] mov eax, [rbp+var_50] add eax, 4 sub r8d, eax mov r9d, [rbp+var_3C] mov r10, [rbp+var_48] lea rax, [rbp+var_20] mov [rsp+80h+var_80], r10 mov [rsp+80h+var_78], rax call ma_encrypt cmp eax, 0 jz short loc_5ED7A mov [rbp+var_1], 1 jmp short loc_5EDC5 loc_5ED7A: mov rax, [rbp+var_38] mov ecx, [rbp+var_1C] mov rdx, [rbp+var_30] mov esi, [rbp+var_1C] mov edx, [rdx+rsi-4] mov [rax+rcx-4], edx mov rax, [rbp+var_38] mov ecx, [rbp+var_58] add rax, rcx mov [rbp+var_60], rax mov ecx, [rbp+var_20] mov rax, [rbp+var_60] mov [rax], ecx mov rax, [rbp+var_10] mov rcx, [rax] mov rax, [rbp+var_10] mov [rax+18h], rcx mov rcx, [rbp+var_28] mov rax, [rbp+var_10] mov [rax], rcx mov [rbp+var_1], 0 loc_5EDC5: mov al, [rbp+var_1] add rsp, 80h pop rbp retn
char ma_crypt_data_pre_write_hook(long long *a1) { int v1; // eax int v2; // eax unsigned int v4; // [rsp+28h] [rbp-58h] unsigned int v5; // [rsp+30h] [rbp-50h] unsigned __int8 v6; // [rsp+37h] [rbp-49h] unsigned long long v7; // [rsp+38h] [rbp-48h] int v8; // [rsp+44h] [rbp-3Ch] unsigned __int16 *v9; // [rsp+50h] [rbp-30h] long long v10; // [rsp+58h] [rbp-28h] int v11; // [rsp+60h] [rbp-20h] BYREF unsigned int v12; // [rsp+64h] [rbp-1Ch] long long v13; // [rsp+68h] [rbp-18h] long long *v14; // [rsp+70h] [rbp-10h] v14 = a1; v13 = a1[2]; v12 = *(_DWORD *)(v13 + 1980); v10 = my_malloc(0LL, *(unsigned int *)(v13 + 1980), 0LL); if ( v10 ) { if ( !*(_BYTE *)(v13 + 1100) ) store_rand_lsn(*v14); maria_page_crc_set_normal(v14); v9 = (unsigned __int16 *)*v14; v8 = v14[1]; v7 = *(unsigned int *)((char *)v9 + 3) | ((unsigned long long)((*((unsigned __int8 *)v9 + 2) << 16) | (unsigned int)*v9) << 32); v6 = *(_BYTE *)(*v14 + 7) & 7; if ( v6 > 2u ) v1 = *(_DWORD *)(v13 + 3096) + 8; else v1 = *(_DWORD *)(v13 + 3096) + 12; v5 = v1; v2 = 8; if ( v6 <= 2u ) v2 = 12; v4 = v2; memcpy(v10, v9, v5); if ( (unsigned int)ma_encrypt( v13, *(_QWORD *)(v13 + 3104), v5 + (unsigned int)v9, v5 + (unsigned int)v10, v12 - (v5 + 4), v8, v7, (long long)&v11) ) { return 1; } else { *(_DWORD *)(v10 + v12 - 4) = *(_DWORD *)((char *)v9 + v12 - 4); *(_DWORD *)(v4 + v10) = v11; v14[3] = *v14; *v14 = v10; return 0; } } else { v14[3] = 0LL; return 1; } }
ma_crypt_data_pre_write_hook: PUSH RBP MOV RBP,RSP SUB RSP,0x80 MOV qword ptr [RBP + -0x10],RDI MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0x7bc] MOV dword ptr [RBP + -0x1c],EAX MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0x7bc] MOV ESI,EAX XOR EDI,EDI XOR EAX,EAX MOV EDX,EAX CALL 0x001f3830 MOV qword ptr [RBP + -0x28],RAX CMP qword ptr [RBP + -0x28],0x0 JNZ 0x0015ec3f MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x18],0x0 MOV byte ptr [RBP + -0x1],0x1 JMP 0x0015edc5 LAB_0015ec3f: MOV RAX,qword ptr [RBP + -0x18] CMP byte ptr [RAX + 0x44c],0x0 JNZ 0x0015ec58 MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX] CALL 0x0015f450 LAB_0015ec58: MOV RDI,qword ptr [RBP + -0x10] CALL 0x0015d560 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV dword ptr [RBP + -0x3c],EAX MOV RAX,qword ptr [RBP + -0x30] MOVZX EAX,byte ptr [RAX] MOV RCX,qword ptr [RBP + -0x30] MOVZX ECX,byte ptr [RCX + 0x1] SHL ECX,0x8 OR EAX,ECX MOV RCX,qword ptr [RBP + -0x30] MOVZX ECX,byte ptr [RCX + 0x2] SHL ECX,0x10 OR EAX,ECX MOV EAX,EAX SHL RAX,0x20 MOV RCX,qword ptr [RBP + -0x30] MOV ECX,dword ptr [RCX + 0x3] OR RAX,RCX MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x30] MOVZX EAX,byte ptr [RAX + 0x7] AND EAX,0x7 MOV byte ptr [RBP + -0x49],AL MOVZX EAX,byte ptr [RBP + -0x49] CMP EAX,0x2 JG 0x0015ecdd MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0xc18] ADD EAX,0xc MOV dword ptr [RBP + -0x64],EAX JMP 0x0015eced LAB_0015ecdd: MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0xc18] ADD EAX,0x8 MOV dword ptr [RBP + -0x64],EAX LAB_0015eced: MOV EAX,dword ptr [RBP + -0x64] MOV dword ptr [RBP + -0x50],EAX MOV dword ptr [RBP + -0x54],0x4 MOVZX EDX,byte ptr [RBP + -0x49] MOV EAX,0x8 MOV ECX,0xc CMP EDX,0x2 CMOVLE EAX,ECX MOV dword ptr [RBP + -0x58],EAX JMP 0x0015ed13 LAB_0015ed13: MOV RDI,qword ptr [RBP + -0x38] MOV RSI,qword ptr [RBP + -0x30] MOV EAX,dword ptr [RBP + -0x50] MOV EDX,EAX CALL 0x0012a090 MOV RDI,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RAX + 0xc20] MOV RDX,qword ptr [RBP + -0x30] MOV EAX,dword ptr [RBP + -0x50] ADD RDX,RAX MOV RCX,qword ptr [RBP + -0x38] MOV EAX,dword ptr [RBP + -0x50] ADD RCX,RAX MOV R8D,dword ptr [RBP + -0x1c] MOV EAX,dword ptr [RBP + -0x50] ADD EAX,0x4 SUB R8D,EAX MOV R9D,dword ptr [RBP + -0x3c] MOV R10,qword ptr [RBP + -0x48] LEA RAX,[RBP + -0x20] MOV qword ptr [RSP],R10 MOV qword ptr [RSP + 0x8],RAX CALL 0x0015f500 CMP EAX,0x0 JZ 0x0015ed7a MOV byte ptr [RBP + -0x1],0x1 JMP 0x0015edc5 LAB_0015ed7a: MOV RAX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RBP + -0x1c] MOV RDX,qword ptr [RBP + -0x30] MOV ESI,dword ptr [RBP + -0x1c] MOV EDX,dword ptr [RDX + RSI*0x1 + -0x4] MOV dword ptr [RAX + RCX*0x1 + -0x4],EDX MOV RAX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RBP + -0x58] ADD RAX,RCX MOV qword ptr [RBP + -0x60],RAX MOV ECX,dword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x18],RCX MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX MOV byte ptr [RBP + -0x1],0x0 LAB_0015edc5: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x80 POP RBP RET
int1 ma_crypt_data_pre_write_hook(int8 *param_1) { int4 uVar1; int3 *__src; ulong uVar2; int3 uVar3; byte bVar4; uint uVar5; int iVar6; void *__dest; uint local_6c; int4 local_28; uint local_24; long local_20; int8 *local_18; int1 local_9; local_20 = param_1[2]; local_24 = *(uint *)(local_20 + 0x7bc); local_18 = param_1; __dest = (void *)my_malloc(0,*(int4 *)(local_20 + 0x7bc),0); if (__dest == (void *)0x0) { local_18[3] = 0; local_9 = 1; } else { if (*(char *)(local_20 + 0x44c) == '\0') { store_rand_lsn(*local_18); } maria_page_crc_set_normal(local_18); __src = (int3 *)*local_18; uVar2 = local_18[1]; uVar3 = *__src; uVar1 = *(int4 *)((long)__src + 3); bVar4 = *(byte *)((long)__src + 7) & 7; if (bVar4 < 3) { local_6c = *(int *)(local_20 + 0xc18) + 0xc; } else { local_6c = *(int *)(local_20 + 0xc18) + 8; } uVar5 = 8; if (bVar4 < 3) { uVar5 = 0xc; } memcpy(__dest,__src,(ulong)local_6c); iVar6 = ma_encrypt(local_20,*(int8 *)(local_20 + 0xc20),(long)__src + (ulong)local_6c, (long)__dest + (ulong)local_6c,local_24 - (local_6c + 4),uVar2 & 0xffffffff, (ulong)CONCAT34(uVar3,uVar1),&local_28); if (iVar6 == 0) { *(int4 *)((long)__dest + ((ulong)local_24 - 4)) = *(int4 *)((long)__src + ((ulong)local_24 - 4)); *(int4 *)((long)__dest + (ulong)uVar5) = local_28; local_18[3] = *local_18; *local_18 = __dest; local_9 = 0; } else { local_9 = 1; } } return local_9; }
27,657
ggml_backend_sched_set_tensor_backend
llama.cpp/ggml/src/ggml-backend.cpp
void ggml_backend_sched_set_tensor_backend(ggml_backend_sched_t sched, struct ggml_tensor * node, ggml_backend_t backend) { int backend_index = ggml_backend_sched_backend_id(sched, backend); GGML_ASSERT(backend_index >= 0 && backend_index < sched->n_backends); tensor_backend_id(node) = backend_index; SET_CAUSE(node, "usr"); sched->is_reset = false; }
O3
cpp
ggml_backend_sched_set_tensor_backend: pushq %r15 pushq %r14 pushq %rbx movslq 0x4(%rdi), %rax testq %rax, %rax jle 0x27d29 movq %rdi, %rbx xorl %r14d, %r14d cmpq %rdx, 0x8(%rbx,%r14,8) je 0x27d4a incq %r14 cmpq %r14, %rax jne 0x27d1a leaq 0x255c2(%rip), %rdi # 0x4d2f2 leaq 0x22917(%rip), %rdx # 0x4a64e leaq 0x25a65(%rip), %rcx # 0x4d7a3 movl $0x65e, %esi # imm = 0x65E xorl %eax, %eax callq 0x17c80 cmpl %r14d, %eax jle 0x27d29 movq 0x128(%rbx), %r15 leaq 0x110(%rbx), %rdi callq 0x27d6f movl %r14d, (%r15,%rax,4) movb $0x0, (%rbx) popq %rbx popq %r14 popq %r15 retq
ggml_backend_sched_set_tensor_backend: push r15 push r14 push rbx movsxd rax, dword ptr [rdi+4] test rax, rax jle short loc_27D29 mov rbx, rdi xor r14d, r14d loc_27D1A: cmp [rbx+r14*8+8], rdx jz short loc_27D4A inc r14 cmp rax, r14 jnz short loc_27D1A loc_27D29: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aBackendIndex0B; "backend_index >= 0 && backend_index < s"... mov esi, 65Eh xor eax, eax call _ggml_abort loc_27D4A: cmp eax, r14d jle short loc_27D29 mov r15, [rbx+128h] lea rdi, [rbx+110h] call _ZL24ggml_hash_find_or_insertP13ggml_hash_setP11ggml_tensor; ggml_hash_find_or_insert(ggml_hash_set *,ggml_tensor *) mov [r15+rax*4], r14d mov byte ptr [rbx], 0 pop rbx pop r14 pop r15 retn
long long ggml_backend_sched_set_tensor_backend( long long a1, long long a2, long long a3, long long a4, int a5, int a6) { long long v6; // rax long long v7; // r14 long long v8; // r15 long long result; // rax v6 = *(int *)(a1 + 4); if ( v6 <= 0 ) goto LABEL_5; v7 = 0LL; while ( *(_QWORD *)(a1 + 8 * v7 + 8) != a3 ) { if ( v6 == ++v7 ) goto LABEL_5; } if ( (int)v6 <= (int)v7 ) LABEL_5: ggml_abort( (unsigned int)"/workspace/llm4binary/github2025/llama.cpp/ggml/src/ggml-backend.cpp", 1630, (unsigned int)"GGML_ASSERT(%s) failed", (unsigned int)"backend_index >= 0 && backend_index < sched->n_backends", a5, a6); v8 = *(_QWORD *)(a1 + 296); result = ggml_hash_find_or_insert(a1 + 272, a2); *(_DWORD *)(v8 + 4 * result) = v7; *(_BYTE *)a1 = 0; return result; }
ggml_backend_sched_set_tensor_backend: PUSH R15 PUSH R14 PUSH RBX MOVSXD RAX,dword ptr [RDI + 0x4] TEST RAX,RAX JLE 0x00127d29 MOV RBX,RDI XOR R14D,R14D LAB_00127d1a: CMP qword ptr [RBX + R14*0x8 + 0x8],RDX JZ 0x00127d4a INC R14 CMP RAX,R14 JNZ 0x00127d1a LAB_00127d29: LEA RDI,[0x14d2f2] LEA RDX,[0x14a64e] LEA RCX,[0x14d7a3] MOV ESI,0x65e XOR EAX,EAX CALL 0x00117c80 LAB_00127d4a: CMP EAX,R14D JLE 0x00127d29 MOV R15,qword ptr [RBX + 0x128] LEA RDI,[RBX + 0x110] CALL 0x00127d6f MOV dword ptr [R15 + RAX*0x4],R14D MOV byte ptr [RBX],0x0 POP RBX POP R14 POP R15 RET
void ggml_backend_sched_set_tensor_backend(int1 *param_1,ggml_tensor *param_2,long param_3) { int iVar1; long lVar2; long lVar3; long lVar4; iVar1 = *(int *)(param_1 + 4); if (0 < (long)iVar1) { lVar4 = 0; do { if (*(long *)(param_1 + lVar4 * 8 + 8) == param_3) { if ((int)lVar4 < iVar1) { lVar2 = *(long *)(param_1 + 0x128); lVar3 = ggml_hash_find_or_insert((ggml_hash_set *)(param_1 + 0x110),param_2); *(int *)(lVar2 + lVar3 * 4) = (int)lVar4; *param_1 = 0; return; } break; } lVar4 = lVar4 + 1; } while (iVar1 != lVar4); } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github2025/llama.cpp/ggml/src/ggml-backend.cpp",0x65e, "GGML_ASSERT(%s) failed","backend_index >= 0 && backend_index < sched->n_backends"); }
27,658
mysql_stmt_more_results
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
my_bool STDCALL mysql_stmt_more_results(MYSQL_STMT *stmt) { /* MDEV 4604: Server doesn't set MORE_RESULT flag for OutParam result set, so we need to check for SERVER_MORE_RESULTS_EXIST and for SERVER_PS_OUT_PARAMS) */ return (stmt && stmt->mysql && ((stmt->mysql->server_status & SERVER_MORE_RESULTS_EXIST) || (stmt->mysql->server_status & SERVER_PS_OUT_PARAMS))); }
O0
c
mysql_stmt_more_results: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) xorl %eax, %eax cmpq $0x0, -0x8(%rbp) movb %al, -0x9(%rbp) je 0x50161 movq -0x8(%rbp), %rcx xorl %eax, %eax cmpq $0x0, 0x38(%rcx) movb %al, -0x9(%rbp) je 0x50161 movq -0x8(%rbp), %rax movq 0x38(%rax), %rax movl 0x380(%rax), %ecx andl $0x8, %ecx movb $0x1, %al cmpl $0x0, %ecx movb %al, -0xa(%rbp) jne 0x5015b movq -0x8(%rbp), %rax movq 0x38(%rax), %rax movl 0x380(%rax), %eax andl $0x1000, %eax # imm = 0x1000 cmpl $0x0, %eax setne %al movb %al, -0xa(%rbp) movb -0xa(%rbp), %al movb %al, -0x9(%rbp) movb -0x9(%rbp), %al andb $0x1, %al movzbl %al, %eax popq %rbp retq nopl (%rax,%rax)
mysql_stmt_more_results: push rbp mov rbp, rsp mov [rbp+var_8], rdi xor eax, eax cmp [rbp+var_8], 0 mov [rbp+var_9], al jz short loc_50161 mov rcx, [rbp+var_8] xor eax, eax cmp qword ptr [rcx+38h], 0 mov [rbp+var_9], al jz short loc_50161 mov rax, [rbp+var_8] mov rax, [rax+38h] mov ecx, [rax+380h] and ecx, 8 mov al, 1 cmp ecx, 0 mov [rbp+var_A], al jnz short loc_5015B mov rax, [rbp+var_8] mov rax, [rax+38h] mov eax, [rax+380h] and eax, 1000h cmp eax, 0 setnz al mov [rbp+var_A], al loc_5015B: mov al, [rbp+var_A] mov [rbp+var_9], al loc_50161: mov al, [rbp+var_9] and al, 1 movzx eax, al pop rbp retn
_BOOL8 mysql_stmt_more_results(long long a1) { bool v2; // [rsp+0h] [rbp-Ah] bool v3; // [rsp+1h] [rbp-9h] v3 = 0; if ( a1 ) { v3 = 0; if ( *(_QWORD *)(a1 + 56) ) { v2 = 1; if ( (*(_DWORD *)(*(_QWORD *)(a1 + 56) + 896LL) & 8) == 0 ) return (*(_DWORD *)(*(_QWORD *)(a1 + 56) + 896LL) & 0x1000) != 0; return v2; } } return v3; }
mysql_stmt_more_results: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI XOR EAX,EAX CMP qword ptr [RBP + -0x8],0x0 MOV byte ptr [RBP + -0x9],AL JZ 0x00150161 MOV RCX,qword ptr [RBP + -0x8] XOR EAX,EAX CMP qword ptr [RCX + 0x38],0x0 MOV byte ptr [RBP + -0x9],AL JZ 0x00150161 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x38] MOV ECX,dword ptr [RAX + 0x380] AND ECX,0x8 MOV AL,0x1 CMP ECX,0x0 MOV byte ptr [RBP + -0xa],AL JNZ 0x0015015b MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x38] MOV EAX,dword ptr [RAX + 0x380] AND EAX,0x1000 CMP EAX,0x0 SETNZ AL MOV byte ptr [RBP + -0xa],AL LAB_0015015b: MOV AL,byte ptr [RBP + -0xa] MOV byte ptr [RBP + -0x9],AL LAB_00150161: MOV AL,byte ptr [RBP + -0x9] AND AL,0x1 MOVZX EAX,AL POP RBP RET
bool mysql_stmt_more_results(long param_1) { int1 local_12; int1 local_11; local_11 = false; if ((param_1 != 0) && (local_11 = false, *(long *)(param_1 + 0x38) != 0)) { local_12 = true; if ((*(uint *)(*(long *)(param_1 + 0x38) + 0x380) & 8) == 0) { local_12 = (*(uint *)(*(long *)(param_1 + 0x38) + 0x380) & 0x1000) != 0; } local_11 = local_12; } return local_11; }
27,659
parts_valadate_string
navaro[P]qoraal-tictactoe/build_O3/_deps/qoraal_engine-src/src/parts/parts.c
int32_t parts_valadate_string (PENGINE_T instance, uint32_t parm, uint32_t flags) { #if defined CFG_ENGINE_REGISTRY_ENABLE if (flags & PART_ACTION_FLAG_INDEXED) { const char * str = engine_get_string (instance, parm, 0) ; if (str) { if (registry_string_get (str, 0, 0) > 0) { return ENGINE_OK ; } DBG_ENGINE_LOG (ENGINE_LOG_TYPE_ERROR, "ENG :W: validation failed for registry string '%s'", str) ; } return ENGINE_FAIL ; } #endif if (flags & PART_ACTION_FLAG_STRING) { const char* str = engine_get_string (instance, parm, 0) ; if (str) { return ENGINE_OK ; } } return ENGINE_FAIL ; }
O3
c
parts_valadate_string: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax testb $0x8, %dl je 0x8246 movzwl %si, %esi xorl %ebx, %ebx xorl %edx, %edx callq 0xffe1 testq %rax, %rax jne 0x824b movl $0xffffffff, %ebx # imm = 0xFFFFFFFF movl %ebx, %eax addq $0x8, %rsp popq %rbx popq %rbp retq
parts_valadate_string: push rbp mov rbp, rsp push rbx push rax test dl, 8 jz short loc_8246 movzx esi, si xor ebx, ebx xor edx, edx call engine_get_string test rax, rax jnz short loc_824B loc_8246: mov ebx, 0FFFFFFFFh loc_824B: mov eax, ebx add rsp, 8 pop rbx pop rbp retn
long long parts_valadate_string(long long a1, unsigned __int16 a2, char a3) { unsigned int v3; // ebx if ( (a3 & 8) == 0 ) return (unsigned int)-1; v3 = 0; if ( !engine_get_string(a1, a2, 0LL) ) return (unsigned int)-1; return v3; }
parts_valadate_string: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX TEST DL,0x8 JZ 0x00108246 MOVZX ESI,SI XOR EBX,EBX XOR EDX,EDX CALL 0x0010ffe1 TEST RAX,RAX JNZ 0x0010824b LAB_00108246: MOV EBX,0xffffffff LAB_0010824b: MOV EAX,EBX ADD RSP,0x8 POP RBX POP RBP RET
int8 parts_valadate_string(int8 param_1,int2 param_2,ulong param_3) { long lVar1; if (((param_3 & 8) != 0) && (lVar1 = engine_get_string(param_1,param_2,0), lVar1 != 0)) { return 0; } return 0xffffffff; }
27,660
crypto_sign_ed25519_ref10_fe_1
eloqsql/libmariadb/plugins/auth/ref10/fe_1.c
void fe_1(fe h) { h[0] = 1; h[1] = 0; h[2] = 0; h[3] = 0; h[4] = 0; h[5] = 0; h[6] = 0; h[7] = 0; h[8] = 0; h[9] = 0; }
O0
c
crypto_sign_ed25519_ref10_fe_1: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movl $0x1, (%rax) movq -0x8(%rbp), %rax movl $0x0, 0x4(%rax) movq -0x8(%rbp), %rax movl $0x0, 0x8(%rax) movq -0x8(%rbp), %rax movl $0x0, 0xc(%rax) movq -0x8(%rbp), %rax movl $0x0, 0x10(%rax) movq -0x8(%rbp), %rax movl $0x0, 0x14(%rax) movq -0x8(%rbp), %rax movl $0x0, 0x18(%rax) movq -0x8(%rbp), %rax movl $0x0, 0x1c(%rax) movq -0x8(%rbp), %rax movl $0x0, 0x20(%rax) movq -0x8(%rbp), %rax movl $0x0, 0x24(%rax) popq %rbp retq nopw (%rax,%rax)
crypto_sign_ed25519_ref10_fe_1: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov dword ptr [rax], 1 mov rax, [rbp+var_8] mov dword ptr [rax+4], 0 mov rax, [rbp+var_8] mov dword ptr [rax+8], 0 mov rax, [rbp+var_8] mov dword ptr [rax+0Ch], 0 mov rax, [rbp+var_8] mov dword ptr [rax+10h], 0 mov rax, [rbp+var_8] mov dword ptr [rax+14h], 0 mov rax, [rbp+var_8] mov dword ptr [rax+18h], 0 mov rax, [rbp+var_8] mov dword ptr [rax+1Ch], 0 mov rax, [rbp+var_8] mov dword ptr [rax+20h], 0 mov rax, [rbp+var_8] mov dword ptr [rax+24h], 0 pop rbp retn
_DWORD * crypto_sign_ed25519_ref10_fe_1(_DWORD *a1) { _DWORD *result; // rax *a1 = 1; a1[1] = 0; a1[2] = 0; a1[3] = 0; a1[4] = 0; a1[5] = 0; a1[6] = 0; a1[7] = 0; a1[8] = 0; result = a1; a1[9] = 0; return result; }
crypto_sign_ed25519_ref10_fe_1: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX],0x1 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x4],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x8],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0xc],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x10],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x14],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x18],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x1c],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x20],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x24],0x0 POP RBP RET
void crypto_sign_ed25519_ref10_fe_1(int4 *param_1) { *param_1 = 1; param_1[1] = 0; param_1[2] = 0; param_1[3] = 0; param_1[4] = 0; param_1[5] = 0; param_1[6] = 0; param_1[7] = 0; param_1[8] = 0; param_1[9] = 0; return; }
27,661
nglog::LogSink::ToString[abi:cxx11](nglog::LogSeverity, char const*, int, nglog::LogMessageTime const&, char const*, unsigned long)
ng-log[P]ng-log/src/logging.cc
string LogSink::ToString(LogSeverity severity, const char* file, int line, const LogMessageTime& time, const char* message, size_t message_len) { ostringstream stream; stream.fill('0'); stream << LogSeverityNames[severity][0]; if (FLAGS_log_year_in_prefix) { stream << setw(4) << 1900 + time.year(); } stream << setw(2) << 1 + time.month() << setw(2) << time.day() << ' ' << setw(2) << time.hour() << ':' << setw(2) << time.min() << ':' << setw(2) << time.sec() << '.' << setw(6) << time.usec() << ' ' << setfill(' ') << setw(5) << std::this_thread::get_id() << setfill('0') << ' ' << file << ':' << line << "] "; // A call to `write' is enclosed in parenthneses to prevent possible macro // expansion. On Windows, `write' could be a macro defined for portability. (stream.write)(message, static_cast<std::streamsize>(message_len)); return stream.str(); }
O0
cpp
nglog::LogSink::ToString[abi:cxx11](nglog::LogSeverity, char const*, int, nglog::LogMessageTime const&, char const*, unsigned long): pushq %rbp movq %rsp, %rbp subq $0x320, %rsp # imm = 0x320 movq %rdi, -0x1f8(%rbp) movq %rdi, %rax movq %rax, -0x1f0(%rbp) movq 0x10(%rbp), %rax movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) leaq -0x1a8(%rbp), %rdi callq 0x9a10 movq -0x1a8(%rbp), %rax movq -0x18(%rax), %rax leaq -0x1a8(%rbp,%rax), %rdi movl $0x30, %esi callq 0x97f0 jmp 0xfe31 movl -0xc(%rbp), %eax movl %eax, %ecx leaq 0x5f8b3(%rip), %rax # 0x6f6f0 movq (%rax,%rcx,8), %rax movsbl (%rax), %esi leaq -0x1a8(%rbp), %rdi callq 0x98a0 jmp 0xfe52 leaq 0x60d7c(%rip), %rax # 0x70bd5 testb $0x1, (%rax) je 0xfedb movl $0x4, %edi callq 0x17530 movl %eax, -0x1fc(%rbp) jmp 0xfe70 movl -0x1fc(%rbp), %eax movl %eax, -0x1b8(%rbp) movl -0x1b8(%rbp), %esi leaq -0x1a8(%rbp), %rdi callq 0x9880 movq %rax, -0x208(%rbp) jmp 0xfe97 movq -0x28(%rbp), %rdi callq 0x17550 movq -0x208(%rbp), %rdi movl %eax, %esi addl $0x76c, %esi # imm = 0x76C callq 0x9cd0 jmp 0xfeb6 jmp 0xfedb movq %rax, %rcx movl %edx, %eax movq %rcx, -0x1b0(%rbp) movl %eax, -0x1b4(%rbp) leaq -0x1a8(%rbp), %rdi callq 0x9160 jmp 0x1030c movl $0x2, %edi callq 0x17530 movl %eax, -0x20c(%rbp) jmp 0xfeed movl -0x20c(%rbp), %eax movl %eax, -0x1bc(%rbp) movl -0x1bc(%rbp), %esi leaq -0x1a8(%rbp), %rdi callq 0x9880 movq %rax, -0x218(%rbp) jmp 0xff14 movq -0x28(%rbp), %rdi callq 0x175e0 movq -0x218(%rbp), %rdi movl %eax, %esi incl %esi callq 0x9cd0 movq %rax, -0x220(%rbp) jmp 0xff36 movl $0x2, %edi callq 0x17530 movl %eax, -0x224(%rbp) jmp 0xff48 movq -0x220(%rbp), %rdi movl -0x224(%rbp), %eax movl %eax, -0x1c0(%rbp) movl -0x1c0(%rbp), %esi callq 0x9880 movq %rax, -0x230(%rbp) jmp 0xff6f movq -0x28(%rbp), %rdi callq 0x17600 movq -0x230(%rbp), %rdi movl %eax, %esi callq 0x9cd0 movq %rax, -0x238(%rbp) jmp 0xff8f movq -0x238(%rbp), %rdi movl $0x20, %esi callq 0x98a0 movq %rax, -0x240(%rbp) jmp 0xffa9 movl $0x2, %edi callq 0x17530 movl %eax, -0x244(%rbp) jmp 0xffbb movq -0x240(%rbp), %rdi movl -0x244(%rbp), %eax movl %eax, -0x1c4(%rbp) movl -0x1c4(%rbp), %esi callq 0x9880 movq %rax, -0x250(%rbp) jmp 0xffe2 movq -0x28(%rbp), %rdi callq 0x17620 movq -0x250(%rbp), %rdi movl %eax, %esi callq 0x9cd0 movq %rax, -0x258(%rbp) jmp 0x10002 movq -0x258(%rbp), %rdi movl $0x3a, %esi callq 0x98a0 movq %rax, -0x260(%rbp) jmp 0x1001c movl $0x2, %edi callq 0x17530 movl %eax, -0x264(%rbp) jmp 0x1002e movq -0x260(%rbp), %rdi movl -0x264(%rbp), %eax movl %eax, -0x1c8(%rbp) movl -0x1c8(%rbp), %esi callq 0x9880 movq %rax, -0x270(%rbp) jmp 0x10055 movq -0x28(%rbp), %rdi callq 0x17640 movq -0x270(%rbp), %rdi movl %eax, %esi callq 0x9cd0 movq %rax, -0x278(%rbp) jmp 0x10075 movq -0x278(%rbp), %rdi movl $0x3a, %esi callq 0x98a0 movq %rax, -0x280(%rbp) jmp 0x1008f movl $0x2, %edi callq 0x17530 movl %eax, -0x284(%rbp) jmp 0x100a1 movq -0x280(%rbp), %rdi movl -0x284(%rbp), %eax movl %eax, -0x1cc(%rbp) movl -0x1cc(%rbp), %esi callq 0x9880 movq %rax, -0x290(%rbp) jmp 0x100c8 movq -0x28(%rbp), %rdi callq 0x17660 movq -0x290(%rbp), %rdi movl %eax, %esi callq 0x9cd0 movq %rax, -0x298(%rbp) jmp 0x100e8 movq -0x298(%rbp), %rdi movl $0x2e, %esi callq 0x98a0 movq %rax, -0x2a0(%rbp) jmp 0x10102 movl $0x6, %edi callq 0x17530 movl %eax, -0x2a4(%rbp) jmp 0x10114 movq -0x2a0(%rbp), %rdi movl -0x2a4(%rbp), %eax movl %eax, -0x1d0(%rbp) movl -0x1d0(%rbp), %esi callq 0x9880 movq %rax, -0x2b0(%rbp) jmp 0x1013b movq -0x28(%rbp), %rdi callq 0x17670 movq -0x2b0(%rbp), %rdi movq %rax, %rsi callq 0x9d60 movq %rax, -0x2b8(%rbp) jmp 0x1015c movq -0x2b8(%rbp), %rdi movl $0x20, %esi callq 0x98a0 movq %rax, -0x2c0(%rbp) jmp 0x10176 movl $0x20, %edi callq 0x176b0 movb %al, -0x2c1(%rbp) jmp 0x10188 movq -0x2c0(%rbp), %rdi movb -0x2c1(%rbp), %al movb %al, -0x1d1(%rbp) movzbl -0x1d1(%rbp), %esi callq 0x9ba0 movq %rax, -0x2d0(%rbp) jmp 0x101b0 movl $0x5, %edi callq 0x17530 movl %eax, -0x2d4(%rbp) jmp 0x101c2 movq -0x2d0(%rbp), %rdi movl -0x2d4(%rbp), %eax movl %eax, -0x1d8(%rbp) movl -0x1d8(%rbp), %esi callq 0x9880 movq %rax, -0x2e0(%rbp) jmp 0x101e9 callq 0x17500 movq -0x2e0(%rbp), %rdi movq %rax, -0x1e0(%rbp) movq -0x1e0(%rbp), %rsi callq 0x17570 movq %rax, -0x2e8(%rbp) jmp 0x10211 movl $0x30, %edi callq 0x176b0 movb %al, -0x2e9(%rbp) jmp 0x10223 movq -0x2e8(%rbp), %rdi movb -0x2e9(%rbp), %al movb %al, -0x1e1(%rbp) movzbl -0x1e1(%rbp), %esi callq 0x9ba0 movq %rax, -0x2f8(%rbp) jmp 0x1024b movq -0x2f8(%rbp), %rdi movl $0x20, %esi callq 0x98a0 movq %rax, -0x300(%rbp) jmp 0x10265 movq -0x300(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x96f0 movq %rax, -0x308(%rbp) jmp 0x1027e movq -0x308(%rbp), %rdi movl $0x3a, %esi callq 0x98a0 movq %rax, -0x310(%rbp) jmp 0x10298 movq -0x310(%rbp), %rdi movl -0x1c(%rbp), %esi callq 0x9cd0 movq %rax, -0x318(%rbp) jmp 0x102b0 movq -0x318(%rbp), %rdi leaq 0x3d945(%rip), %rsi # 0x4dc03 callq 0x96f0 jmp 0x102c5 movq -0x30(%rbp), %rsi movq 0x10(%rbp), %rdx leaq -0x1a8(%rbp), %rdi callq 0x99d0 jmp 0x102db movq -0x1f8(%rbp), %rdi leaq -0x1a8(%rbp), %rsi callq 0x9740 jmp 0x102f0 leaq -0x1a8(%rbp), %rdi callq 0x9160 movq -0x1f0(%rbp), %rax addq $0x320, %rsp # imm = 0x320 popq %rbp retq movq -0x1b0(%rbp), %rdi callq 0x9d00 nopl (%rax,%rax)
_ZN5nglog7LogSink8ToStringB5cxx11ENS_11LogSeverityEPKciRKNS_14LogMessageTimeES3_m: push rbp mov rbp, rsp sub rsp, 320h mov [rbp+var_1F8], rdi mov rax, rdi mov [rbp+var_1F0], rax mov rax, [rbp+arg_0] mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_18], rdx mov [rbp+var_1C], ecx mov [rbp+var_28], r8 mov [rbp+var_30], r9 lea rdi, [rbp+var_1A8] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void) mov rax, [rbp+var_1A8] mov rax, [rax-18h] lea rdi, [rbp+rax+var_1A8] mov esi, 30h ; '0' call __ZNSt9basic_iosIcSt11char_traitsIcEE4fillEc; std::ios::fill(char) jmp short $+2 loc_FE31: mov eax, [rbp+var_C] mov ecx, eax lea rax, _ZN5nglogL16LogSeverityNamesE; nglog::LogSeverityNames mov rax, [rax+rcx*8] movsx esi, byte ptr [rax] lea rdi, [rbp+var_1A8] call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c; std::operator<<<std::char_traits<char>>(std::ostream &,char) jmp short $+2 loc_FE52: lea rax, _ZN3fLB24FLAGS_log_year_in_prefixE; fLB::FLAGS_log_year_in_prefix test byte ptr [rax], 1 jz short loc_FEDB mov edi, 4; int call _ZSt4setwi; std::setw(int) mov [rbp+var_1FC], eax jmp short $+2 loc_FE70: mov eax, [rbp+var_1FC] mov [rbp+var_1B8], eax mov esi, [rbp+var_1B8] lea rdi, [rbp+var_1A8] call __ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw; std::operator<<<char,std::char_traits<char>>(std::ostream &,std::_Setw) mov [rbp+var_208], rax jmp short $+2 loc_FE97: mov rdi, [rbp+var_28]; this call _ZNK5nglog14LogMessageTime4yearEv; nglog::LogMessageTime::year(void) mov rdi, [rbp+var_208] mov esi, eax add esi, 76Ch call __ZNSolsEi; std::ostream::operator<<(int) jmp short $+2 loc_FEB6: jmp short loc_FEDB mov rcx, rax mov eax, edx mov [rbp+var_1B0], rcx mov [rbp+var_1B4], eax lea rdi, [rbp+var_1A8] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream() jmp loc_1030C loc_FEDB: mov edi, 2; int call _ZSt4setwi; std::setw(int) mov [rbp+var_20C], eax jmp short $+2 loc_FEED: mov eax, [rbp+var_20C] mov [rbp+var_1BC], eax mov esi, [rbp+var_1BC] lea rdi, [rbp+var_1A8] call __ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw; std::operator<<<char,std::char_traits<char>>(std::ostream &,std::_Setw) mov [rbp+var_218], rax jmp short $+2 loc_FF14: mov rdi, [rbp+var_28]; this call _ZNK5nglog14LogMessageTime5monthEv; nglog::LogMessageTime::month(void) mov rdi, [rbp+var_218] mov esi, eax inc esi call __ZNSolsEi; std::ostream::operator<<(int) mov [rbp+var_220], rax jmp short $+2 loc_FF36: mov edi, 2; int call _ZSt4setwi; std::setw(int) mov [rbp+var_224], eax jmp short $+2 loc_FF48: mov rdi, [rbp+var_220] mov eax, [rbp+var_224] mov [rbp+var_1C0], eax mov esi, [rbp+var_1C0] call __ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw; std::operator<<<char,std::char_traits<char>>(std::ostream &,std::_Setw) mov [rbp+var_230], rax jmp short $+2 loc_FF6F: mov rdi, [rbp+var_28]; this call _ZNK5nglog14LogMessageTime3dayEv; nglog::LogMessageTime::day(void) mov rdi, [rbp+var_230] mov esi, eax call __ZNSolsEi; std::ostream::operator<<(int) mov [rbp+var_238], rax jmp short $+2 loc_FF8F: mov rdi, [rbp+var_238] mov esi, 20h ; ' ' call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c; std::operator<<<std::char_traits<char>>(std::ostream &,char) mov [rbp+var_240], rax jmp short $+2 loc_FFA9: mov edi, 2; int call _ZSt4setwi; std::setw(int) mov [rbp+var_244], eax jmp short $+2 loc_FFBB: mov rdi, [rbp+var_240] mov eax, [rbp+var_244] mov [rbp+var_1C4], eax mov esi, [rbp+var_1C4] call __ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw; std::operator<<<char,std::char_traits<char>>(std::ostream &,std::_Setw) mov [rbp+var_250], rax jmp short $+2 loc_FFE2: mov rdi, [rbp+var_28]; this call _ZNK5nglog14LogMessageTime4hourEv; nglog::LogMessageTime::hour(void) mov rdi, [rbp+var_250] mov esi, eax call __ZNSolsEi; std::ostream::operator<<(int) mov [rbp+var_258], rax jmp short $+2 loc_10002: mov rdi, [rbp+var_258] mov esi, 3Ah ; ':' call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c; std::operator<<<std::char_traits<char>>(std::ostream &,char) mov [rbp+var_260], rax jmp short $+2 loc_1001C: mov edi, 2; int call _ZSt4setwi; std::setw(int) mov [rbp+var_264], eax jmp short $+2 loc_1002E: mov rdi, [rbp+var_260] mov eax, [rbp+var_264] mov [rbp+var_1C8], eax mov esi, [rbp+var_1C8] call __ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw; std::operator<<<char,std::char_traits<char>>(std::ostream &,std::_Setw) mov [rbp+var_270], rax jmp short $+2 loc_10055: mov rdi, [rbp+var_28]; this call _ZNK5nglog14LogMessageTime3minEv; nglog::LogMessageTime::min(void) mov rdi, [rbp+var_270] mov esi, eax call __ZNSolsEi; std::ostream::operator<<(int) mov [rbp+var_278], rax jmp short $+2 loc_10075: mov rdi, [rbp+var_278] mov esi, 3Ah ; ':' call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c; std::operator<<<std::char_traits<char>>(std::ostream &,char) mov [rbp+var_280], rax jmp short $+2 loc_1008F: mov edi, 2; int call _ZSt4setwi; std::setw(int) mov [rbp+var_284], eax jmp short $+2 loc_100A1: mov rdi, [rbp+var_280] mov eax, [rbp+var_284] mov [rbp+var_1CC], eax mov esi, [rbp+var_1CC] call __ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw; std::operator<<<char,std::char_traits<char>>(std::ostream &,std::_Setw) mov [rbp+var_290], rax jmp short $+2 loc_100C8: mov rdi, [rbp+var_28]; this call _ZNK5nglog14LogMessageTime3secEv; nglog::LogMessageTime::sec(void) mov rdi, [rbp+var_290] mov esi, eax call __ZNSolsEi; std::ostream::operator<<(int) mov [rbp+var_298], rax jmp short $+2 loc_100E8: mov rdi, [rbp+var_298] mov esi, 2Eh ; '.' call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c; std::operator<<<std::char_traits<char>>(std::ostream &,char) mov [rbp+var_2A0], rax jmp short $+2 loc_10102: mov edi, 6; int call _ZSt4setwi; std::setw(int) mov [rbp+var_2A4], eax jmp short $+2 loc_10114: mov rdi, [rbp+var_2A0] mov eax, [rbp+var_2A4] mov [rbp+var_1D0], eax mov esi, [rbp+var_1D0] call __ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw; std::operator<<<char,std::char_traits<char>>(std::ostream &,std::_Setw) mov [rbp+var_2B0], rax jmp short $+2 loc_1013B: mov rdi, [rbp+var_28]; this call _ZNK5nglog14LogMessageTime4usecEv; nglog::LogMessageTime::usec(void) mov rdi, [rbp+var_2B0] mov rsi, rax call __ZNSolsEl; std::ostream::operator<<(long) mov [rbp+var_2B8], rax jmp short $+2 loc_1015C: mov rdi, [rbp+var_2B8] mov esi, 20h ; ' ' call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c; std::operator<<<std::char_traits<char>>(std::ostream &,char) mov [rbp+var_2C0], rax jmp short $+2 loc_10176: mov edi, 20h ; ' ' call _ZSt7setfillIcESt8_SetfillIT_ES1_; std::setfill<char>(char) mov [rbp+var_2C1], al jmp short $+2 loc_10188: mov rdi, [rbp+var_2C0] mov al, [rbp+var_2C1] mov [rbp+var_1D1], al movzx esi, [rbp+var_1D1] call __ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St8_SetfillIS3_E; std::operator<<<char,std::char_traits<char>>(std::ostream &,std::_Setfill<char>) mov [rbp+var_2D0], rax jmp short $+2 loc_101B0: mov edi, 5; int call _ZSt4setwi; std::setw(int) mov [rbp+var_2D4], eax jmp short $+2 loc_101C2: mov rdi, [rbp+var_2D0]; this mov eax, [rbp+var_2D4] mov [rbp+var_1D8], eax mov esi, [rbp+var_1D8] call __ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw; std::operator<<<char,std::char_traits<char>>(std::ostream &,std::_Setw) mov [rbp+var_2E0], rax jmp short $+2 loc_101E9: call _ZNSt11this_thread6get_idEv; std::this_thread::get_id(void) mov rdi, [rbp+var_2E0] mov [rbp+var_1E0], rax mov rsi, [rbp+var_1E0] call _ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_NSt6thread2idE; std::operator<<<char,std::char_traits<char>>(std::ostream &,std::thread::id) mov [rbp+var_2E8], rax jmp short $+2 loc_10211: mov edi, 30h ; '0' call _ZSt7setfillIcESt8_SetfillIT_ES1_; std::setfill<char>(char) mov [rbp+var_2E9], al jmp short $+2 loc_10223: mov rdi, [rbp+var_2E8] mov al, [rbp+var_2E9] mov [rbp+var_1E1], al movzx esi, [rbp+var_1E1] call __ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St8_SetfillIS3_E; std::operator<<<char,std::char_traits<char>>(std::ostream &,std::_Setfill<char>) mov [rbp+var_2F8], rax jmp short $+2 loc_1024B: mov rdi, [rbp+var_2F8] mov esi, 20h ; ' ' call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c; std::operator<<<std::char_traits<char>>(std::ostream &,char) mov [rbp+var_300], rax jmp short $+2 loc_10265: mov rdi, [rbp+var_300] mov rsi, [rbp+var_18] call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov [rbp+var_308], rax jmp short $+2 loc_1027E: mov rdi, [rbp+var_308] mov esi, 3Ah ; ':' call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c; std::operator<<<std::char_traits<char>>(std::ostream &,char) mov [rbp+var_310], rax jmp short $+2 loc_10298: mov rdi, [rbp+var_310] mov esi, [rbp+var_1C] call __ZNSolsEi; std::ostream::operator<<(int) mov [rbp+var_318], rax jmp short $+2 loc_102B0: mov rdi, [rbp+var_318] lea rsi, aLog_0+4; "] " call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) jmp short $+2 loc_102C5: mov rsi, [rbp+var_30]; char * mov rdx, [rbp+arg_0]; __int64 lea rdi, [rbp+var_1A8]; this call __ZNSo5writeEPKcl; std::ostream::write(char const*,long) jmp short $+2 loc_102DB: mov rdi, [rbp+var_1F8] lea rsi, [rbp+var_1A8] call __ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv; std::ostringstream::str(void) jmp short $+2 loc_102F0: lea rdi, [rbp+var_1A8] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream() mov rax, [rbp+var_1F0] add rsp, 320h pop rbp retn loc_1030C: mov rdi, [rbp+var_1B0] call __Unwind_Resume
long long nglog::LogSink::ToString[abi:cxx11]( long long a1, unsigned int a2, long long a3, unsigned int a4, nglog::LogMessageTime *a5, char *a6, long long a7) { int v7; // eax int v8; // eax unsigned int v9; // eax unsigned int v10; // eax unsigned int v11; // eax unsigned int v12; // eax long long v13; // rax long long v15; // [rsp+8h] [rbp-318h] long long v16; // [rsp+10h] [rbp-310h] long long v17; // [rsp+18h] [rbp-308h] long long v18; // [rsp+20h] [rbp-300h] long long v19; // [rsp+28h] [rbp-2F8h] long long v20; // [rsp+38h] [rbp-2E8h] long long v21; // [rsp+40h] [rbp-2E0h] std::this_thread *v22; // [rsp+50h] [rbp-2D0h] long long v23; // [rsp+60h] [rbp-2C0h] long long v24; // [rsp+68h] [rbp-2B8h] long long v25; // [rsp+70h] [rbp-2B0h] long long v26; // [rsp+80h] [rbp-2A0h] long long v27; // [rsp+88h] [rbp-298h] long long v28; // [rsp+90h] [rbp-290h] long long v29; // [rsp+A0h] [rbp-280h] long long v30; // [rsp+A8h] [rbp-278h] long long v31; // [rsp+B0h] [rbp-270h] long long v32; // [rsp+C0h] [rbp-260h] long long v33; // [rsp+C8h] [rbp-258h] long long v34; // [rsp+D0h] [rbp-250h] long long v35; // [rsp+E0h] [rbp-240h] long long v36; // [rsp+E8h] [rbp-238h] long long v37; // [rsp+F0h] [rbp-230h] long long v38; // [rsp+100h] [rbp-220h] long long v39; // [rsp+108h] [rbp-218h] long long v40; // [rsp+118h] [rbp-208h] unsigned __int8 v41; // [rsp+13Fh] [rbp-1E1h] long long id; // [rsp+140h] [rbp-1E0h] unsigned int v43; // [rsp+148h] [rbp-1D8h] unsigned __int8 v44; // [rsp+14Fh] [rbp-1D1h] unsigned int v45; // [rsp+150h] [rbp-1D0h] unsigned int v46; // [rsp+154h] [rbp-1CCh] unsigned int v47; // [rsp+158h] [rbp-1C8h] unsigned int v48; // [rsp+15Ch] [rbp-1C4h] unsigned int v49; // [rsp+160h] [rbp-1C0h] unsigned int v50; // [rsp+164h] [rbp-1BCh] unsigned int v51; // [rsp+168h] [rbp-1B8h] _QWORD v52[47]; // [rsp+178h] [rbp-1A8h] BYREF char *v53; // [rsp+2F0h] [rbp-30h] nglog::LogMessageTime *v54; // [rsp+2F8h] [rbp-28h] unsigned int v55; // [rsp+304h] [rbp-1Ch] long long v56; // [rsp+308h] [rbp-18h] unsigned int v57; // [rsp+314h] [rbp-Ch] long long v58; // [rsp+318h] [rbp-8h] v58 = a1; v57 = a2; v56 = a3; v55 = a4; v54 = a5; v53 = a6; std::ostringstream::basic_ostringstream(v52); std::ios::fill((char *)v52 + *(_QWORD *)(v52[0] - 24LL), 48LL); std::operator<<<std::char_traits<char>>(v52, (unsigned int)*(char *)*(&nglog::LogSeverityNames + v57)); if ( (fLB::FLAGS_log_year_in_prefix & 1) != 0 ) { v51 = std::setw(4); v40 = std::operator<<<char,std::char_traits<char>>(v52, v51); v7 = nglog::LogMessageTime::year(v54); std::ostream::operator<<(v40, (unsigned int)(v7 + 1900)); } v50 = std::setw(2); v39 = std::operator<<<char,std::char_traits<char>>(v52, v50); v8 = nglog::LogMessageTime::month(v54); v38 = std::ostream::operator<<(v39, (unsigned int)(v8 + 1)); v49 = std::setw(2); v37 = std::operator<<<char,std::char_traits<char>>(v38, v49); v9 = nglog::LogMessageTime::day(v54); v36 = std::ostream::operator<<(v37, v9); v35 = std::operator<<<std::char_traits<char>>(v36, 32LL); v48 = std::setw(2); v34 = std::operator<<<char,std::char_traits<char>>(v35, v48); v10 = nglog::LogMessageTime::hour(v54); v33 = std::ostream::operator<<(v34, v10); v32 = std::operator<<<std::char_traits<char>>(v33, 58LL); v47 = std::setw(2); v31 = std::operator<<<char,std::char_traits<char>>(v32, v47); v11 = nglog::LogMessageTime::min(v54); v30 = std::ostream::operator<<(v31, v11); v29 = std::operator<<<std::char_traits<char>>(v30, 58LL); v46 = std::setw(2); v28 = std::operator<<<char,std::char_traits<char>>(v29, v46); v12 = nglog::LogMessageTime::sec(v54); v27 = std::ostream::operator<<(v28, v12); v26 = std::operator<<<std::char_traits<char>>(v27, 46LL); v45 = std::setw(6); v25 = std::operator<<<char,std::char_traits<char>>(v26, v45); v13 = nglog::LogMessageTime::usec(v54); v24 = std::ostream::operator<<(v25, v13); v23 = std::operator<<<std::char_traits<char>>(v24, 32LL); v44 = std::setfill<char>(32LL); v22 = (std::this_thread *)std::operator<<<char,std::char_traits<char>>(v23, v44); v43 = std::setw(5); v21 = std::operator<<<char,std::char_traits<char>>(v22, v43); id = std::this_thread::get_id(v22); v20 = std::operator<<<char,std::char_traits<char>>(v21, id); v41 = std::setfill<char>(48LL); v19 = std::operator<<<char,std::char_traits<char>>(v20, v41); v18 = std::operator<<<std::char_traits<char>>(v19, 32LL); v17 = std::operator<<<std::char_traits<char>>(v18, v56); v16 = std::operator<<<std::char_traits<char>>(v17, 58LL); v15 = std::ostream::operator<<(v16, v55); std::operator<<<std::char_traits<char>>(v15, "] "); std::ostream::write((std::ostream *)v52, v53, a7); std::ostringstream::str(a1, v52); std::ostringstream::~ostringstream(v52); return a1; }
ToString[abi:cxx11]: PUSH RBP MOV RBP,RSP SUB RSP,0x320 MOV qword ptr [RBP + -0x1f8],RDI MOV RAX,RDI MOV qword ptr [RBP + -0x1f0],RAX MOV RAX,qword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV qword ptr [RBP + -0x18],RDX MOV dword ptr [RBP + -0x1c],ECX MOV qword ptr [RBP + -0x28],R8 MOV qword ptr [RBP + -0x30],R9 LEA RDI,[RBP + -0x1a8] CALL 0x00109a10 MOV RAX,qword ptr [RBP + -0x1a8] MOV RAX,qword ptr [RAX + -0x18] LEA RDI,[RBP + RAX*0x1 + -0x1a8] LAB_0010fe25: MOV ESI,0x30 CALL 0x001097f0 JMP 0x0010fe31 LAB_0010fe31: MOV EAX,dword ptr [RBP + -0xc] MOV ECX,EAX LEA RAX,[0x16f6f0] MOV RAX,qword ptr [RAX + RCX*0x8] MOVSX ESI,byte ptr [RAX] LEA RDI,[RBP + -0x1a8] CALL 0x001098a0 JMP 0x0010fe52 LAB_0010fe52: LEA RAX,[0x170bd5] TEST byte ptr [RAX],0x1 JZ 0x0010fedb MOV EDI,0x4 CALL 0x00117530 MOV dword ptr [RBP + -0x1fc],EAX JMP 0x0010fe70 LAB_0010fe70: MOV EAX,dword ptr [RBP + -0x1fc] MOV dword ptr [RBP + -0x1b8],EAX MOV ESI,dword ptr [RBP + -0x1b8] LEA RDI,[RBP + -0x1a8] CALL 0x00109880 MOV qword ptr [RBP + -0x208],RAX JMP 0x0010fe97 LAB_0010fe97: MOV RDI,qword ptr [RBP + -0x28] CALL 0x00117550 MOV RDI,qword ptr [RBP + -0x208] MOV ESI,EAX ADD ESI,0x76c CALL 0x00109cd0 JMP 0x0010feb6 LAB_0010feb6: JMP 0x0010fedb LAB_0010fedb: MOV EDI,0x2 CALL 0x00117530 MOV dword ptr [RBP + -0x20c],EAX JMP 0x0010feed LAB_0010feed: MOV EAX,dword ptr [RBP + -0x20c] MOV dword ptr [RBP + -0x1bc],EAX MOV ESI,dword ptr [RBP + -0x1bc] LEA RDI,[RBP + -0x1a8] CALL 0x00109880 MOV qword ptr [RBP + -0x218],RAX JMP 0x0010ff14 LAB_0010ff14: MOV RDI,qword ptr [RBP + -0x28] CALL 0x001175e0 MOV RDI,qword ptr [RBP + -0x218] MOV ESI,EAX INC ESI CALL 0x00109cd0 MOV qword ptr [RBP + -0x220],RAX JMP 0x0010ff36 LAB_0010ff36: MOV EDI,0x2 CALL 0x00117530 MOV dword ptr [RBP + -0x224],EAX JMP 0x0010ff48 LAB_0010ff48: MOV RDI,qword ptr [RBP + -0x220] MOV EAX,dword ptr [RBP + -0x224] MOV dword ptr [RBP + -0x1c0],EAX MOV ESI,dword ptr [RBP + -0x1c0] CALL 0x00109880 MOV qword ptr [RBP + -0x230],RAX JMP 0x0010ff6f LAB_0010ff6f: MOV RDI,qword ptr [RBP + -0x28] CALL 0x00117600 MOV RDI,qword ptr [RBP + -0x230] MOV ESI,EAX CALL 0x00109cd0 MOV qword ptr [RBP + -0x238],RAX JMP 0x0010ff8f LAB_0010ff8f: MOV RDI,qword ptr [RBP + -0x238] MOV ESI,0x20 CALL 0x001098a0 MOV qword ptr [RBP + -0x240],RAX JMP 0x0010ffa9 LAB_0010ffa9: MOV EDI,0x2 CALL 0x00117530 MOV dword ptr [RBP + -0x244],EAX JMP 0x0010ffbb LAB_0010ffbb: MOV RDI,qword ptr [RBP + -0x240] MOV EAX,dword ptr [RBP + -0x244] MOV dword ptr [RBP + -0x1c4],EAX MOV ESI,dword ptr [RBP + -0x1c4] CALL 0x00109880 MOV qword ptr [RBP + -0x250],RAX JMP 0x0010ffe2 LAB_0010ffe2: MOV RDI,qword ptr [RBP + -0x28] CALL 0x00117620 MOV RDI,qword ptr [RBP + -0x250] MOV ESI,EAX CALL 0x00109cd0 MOV qword ptr [RBP + -0x258],RAX JMP 0x00110002 LAB_00110002: MOV RDI,qword ptr [RBP + -0x258] MOV ESI,0x3a CALL 0x001098a0 MOV qword ptr [RBP + -0x260],RAX JMP 0x0011001c LAB_0011001c: MOV EDI,0x2 CALL 0x00117530 MOV dword ptr [RBP + -0x264],EAX JMP 0x0011002e LAB_0011002e: MOV RDI,qword ptr [RBP + -0x260] MOV EAX,dword ptr [RBP + -0x264] MOV dword ptr [RBP + -0x1c8],EAX MOV ESI,dword ptr [RBP + -0x1c8] CALL 0x00109880 MOV qword ptr [RBP + -0x270],RAX JMP 0x00110055 LAB_00110055: MOV RDI,qword ptr [RBP + -0x28] CALL 0x00117640 MOV RDI,qword ptr [RBP + -0x270] MOV ESI,EAX CALL 0x00109cd0 MOV qword ptr [RBP + -0x278],RAX JMP 0x00110075 LAB_00110075: MOV RDI,qword ptr [RBP + -0x278] MOV ESI,0x3a CALL 0x001098a0 MOV qword ptr [RBP + -0x280],RAX JMP 0x0011008f LAB_0011008f: MOV EDI,0x2 CALL 0x00117530 MOV dword ptr [RBP + -0x284],EAX JMP 0x001100a1 LAB_001100a1: MOV RDI,qword ptr [RBP + -0x280] MOV EAX,dword ptr [RBP + -0x284] MOV dword ptr [RBP + -0x1cc],EAX MOV ESI,dword ptr [RBP + -0x1cc] CALL 0x00109880 MOV qword ptr [RBP + -0x290],RAX JMP 0x001100c8 LAB_001100c8: MOV RDI,qword ptr [RBP + -0x28] CALL 0x00117660 MOV RDI,qword ptr [RBP + -0x290] MOV ESI,EAX CALL 0x00109cd0 MOV qword ptr [RBP + -0x298],RAX JMP 0x001100e8 LAB_001100e8: MOV RDI,qword ptr [RBP + -0x298] MOV ESI,0x2e CALL 0x001098a0 MOV qword ptr [RBP + -0x2a0],RAX JMP 0x00110102 LAB_00110102: MOV EDI,0x6 CALL 0x00117530 MOV dword ptr [RBP + -0x2a4],EAX JMP 0x00110114 LAB_00110114: MOV RDI,qword ptr [RBP + -0x2a0] MOV EAX,dword ptr [RBP + -0x2a4] MOV dword ptr [RBP + -0x1d0],EAX MOV ESI,dword ptr [RBP + -0x1d0] CALL 0x00109880 MOV qword ptr [RBP + -0x2b0],RAX JMP 0x0011013b LAB_0011013b: MOV RDI,qword ptr [RBP + -0x28] CALL 0x00117670 MOV RDI,qword ptr [RBP + -0x2b0] MOV RSI,RAX CALL 0x00109d60 MOV qword ptr [RBP + -0x2b8],RAX JMP 0x0011015c LAB_0011015c: MOV RDI,qword ptr [RBP + -0x2b8] MOV ESI,0x20 CALL 0x001098a0 MOV qword ptr [RBP + -0x2c0],RAX JMP 0x00110176 LAB_00110176: MOV EDI,0x20 CALL 0x001176b0 MOV byte ptr [RBP + -0x2c1],AL JMP 0x00110188 LAB_00110188: MOV RDI,qword ptr [RBP + -0x2c0] MOV AL,byte ptr [RBP + -0x2c1] MOV byte ptr [RBP + -0x1d1],AL MOVZX ESI,byte ptr [RBP + -0x1d1] CALL 0x00109ba0 MOV qword ptr [RBP + -0x2d0],RAX JMP 0x001101b0 LAB_001101b0: MOV EDI,0x5 CALL 0x00117530 MOV dword ptr [RBP + -0x2d4],EAX JMP 0x001101c2 LAB_001101c2: MOV RDI,qword ptr [RBP + -0x2d0] MOV EAX,dword ptr [RBP + -0x2d4] MOV dword ptr [RBP + -0x1d8],EAX MOV ESI,dword ptr [RBP + -0x1d8] CALL 0x00109880 MOV qword ptr [RBP + -0x2e0],RAX JMP 0x001101e9 LAB_001101e9: CALL 0x00117500 MOV RDI,qword ptr [RBP + -0x2e0] MOV qword ptr [RBP + -0x1e0],RAX MOV RSI,qword ptr [RBP + -0x1e0] CALL 0x00117570 MOV qword ptr [RBP + -0x2e8],RAX JMP 0x00110211 LAB_00110211: MOV EDI,0x30 CALL 0x001176b0 MOV byte ptr [RBP + -0x2e9],AL JMP 0x00110223 LAB_00110223: MOV RDI,qword ptr [RBP + -0x2e8] MOV AL,byte ptr [RBP + -0x2e9] MOV byte ptr [RBP + -0x1e1],AL MOVZX ESI,byte ptr [RBP + -0x1e1] CALL 0x00109ba0 MOV qword ptr [RBP + -0x2f8],RAX JMP 0x0011024b LAB_0011024b: MOV RDI,qword ptr [RBP + -0x2f8] MOV ESI,0x20 CALL 0x001098a0 MOV qword ptr [RBP + -0x300],RAX JMP 0x00110265 LAB_00110265: MOV RDI,qword ptr [RBP + -0x300] MOV RSI,qword ptr [RBP + -0x18] CALL 0x001096f0 MOV qword ptr [RBP + -0x308],RAX JMP 0x0011027e LAB_0011027e: MOV RDI,qword ptr [RBP + -0x308] MOV ESI,0x3a CALL 0x001098a0 MOV qword ptr [RBP + -0x310],RAX JMP 0x00110298 LAB_00110298: MOV RDI,qword ptr [RBP + -0x310] MOV ESI,dword ptr [RBP + -0x1c] CALL 0x00109cd0 MOV qword ptr [RBP + -0x318],RAX JMP 0x001102b0 LAB_001102b0: MOV RDI,qword ptr [RBP + -0x318] LEA RSI,[0x14dc03] CALL 0x001096f0 JMP 0x001102c5 LAB_001102c5: MOV RSI,qword ptr [RBP + -0x30] MOV RDX,qword ptr [RBP + 0x10] LEA RDI,[RBP + -0x1a8] CALL 0x001099d0 JMP 0x001102db LAB_001102db: MOV RDI,qword ptr [RBP + -0x1f8] LEA RSI,[RBP + -0x1a8] CALL 0x00109740 LAB_001102ee: JMP 0x001102f0 LAB_001102f0: LEA RDI,[RBP + -0x1a8] CALL 0x00109160 MOV RAX,qword ptr [RBP + -0x1f0] ADD RSP,0x320 POP RBP RET
/* nglog::LogSink::ToString[abi:cxx11](nglog::LogSeverity, char const*, int, nglog::LogMessageTime const&, char const*, unsigned long) */ int8 nglog::LogSink::ToString_abi_cxx11_ (int8 param_1,uint param_2,char *param_3,int param_4,LogMessageTime *param_5, long param_6) { int1 uVar1; int4 uVar2; int iVar3; ostream *poVar4; int8 uVar5; long lVar6; long local_1b0 [47]; long local_38; LogMessageTime *local_30; int local_24; char *local_20; uint local_14; int8 local_10; local_38 = param_6; local_30 = param_5; local_24 = param_4; local_20 = param_3; local_14 = param_2; local_10 = param_1; std::__cxx11::ostringstream::ostringstream((ostringstream *)local_1b0); /* try { // try from 0010fe25 to 001102ed has its CatchHandler @ 0010feb8 */ std::ios::fill((char)local_1b0 + (char)*(int8 *)(local_1b0[0] + -0x18)); std::operator<<((ostream *)local_1b0,**(char **)(LogSeverityNames + (ulong)local_14 * 8)); if ((fLB::FLAGS_log_year_in_prefix & 1) != 0) { uVar2 = std::setw(4); poVar4 = std::operator<<(local_1b0,uVar2); iVar3 = LogMessageTime::year(local_30); std::ostream::operator<<(poVar4,iVar3 + 0x76c); } uVar2 = std::setw(2); poVar4 = std::operator<<(local_1b0,uVar2); iVar3 = LogMessageTime::month(local_30); uVar5 = std::ostream::operator<<(poVar4,iVar3 + 1); uVar2 = std::setw(2); poVar4 = std::operator<<(uVar5,uVar2); iVar3 = LogMessageTime::day(local_30); poVar4 = (ostream *)std::ostream::operator<<(poVar4,iVar3); poVar4 = std::operator<<(poVar4,' '); uVar2 = std::setw(2); poVar4 = std::operator<<(poVar4,uVar2); iVar3 = LogMessageTime::hour(local_30); poVar4 = (ostream *)std::ostream::operator<<(poVar4,iVar3); poVar4 = std::operator<<(poVar4,':'); uVar2 = std::setw(2); poVar4 = std::operator<<(poVar4,uVar2); iVar3 = LogMessageTime::min(local_30); poVar4 = (ostream *)std::ostream::operator<<(poVar4,iVar3); poVar4 = std::operator<<(poVar4,':'); uVar2 = std::setw(2); poVar4 = std::operator<<(poVar4,uVar2); iVar3 = LogMessageTime::sec(local_30); poVar4 = (ostream *)std::ostream::operator<<(poVar4,iVar3); poVar4 = std::operator<<(poVar4,'.'); uVar2 = std::setw(6); poVar4 = std::operator<<(poVar4,uVar2); lVar6 = LogMessageTime::usec(local_30); poVar4 = (ostream *)std::ostream::operator<<(poVar4,lVar6); poVar4 = std::operator<<(poVar4,' '); uVar1 = std::setfill<char>(' '); poVar4 = std::operator<<(poVar4,uVar1); uVar2 = std::setw(5); poVar4 = std::operator<<(poVar4,uVar2); uVar5 = std::this_thread::get_id(); poVar4 = std::operator<<(poVar4,uVar5); uVar1 = std::setfill<char>('0'); poVar4 = std::operator<<(poVar4,uVar1); poVar4 = std::operator<<(poVar4,' '); poVar4 = std::operator<<(poVar4,local_20); poVar4 = std::operator<<(poVar4,':'); poVar4 = (ostream *)std::ostream::operator<<(poVar4,local_24); std::operator<<(poVar4,"] "); std::ostream::write((char *)local_1b0,local_38); std::__cxx11::ostringstream::str(); std::__cxx11::ostringstream::~ostringstream((ostringstream *)local_1b0); return param_1; }
27,662
js_reflect_has
bluesky950520[P]quickjs/quickjs.c
static JSValue js_reflect_has(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSValue obj, prop; JSAtom atom; int ret; obj = argv[0]; prop = argv[1]; if (JS_VALUE_GET_TAG(obj) != JS_TAG_OBJECT) return JS_ThrowTypeErrorNotAnObject(ctx); atom = JS_ValueToAtom(ctx, prop); if (unlikely(atom == JS_ATOM_NULL)) return JS_EXCEPTION; ret = JS_HasProperty(ctx, obj, atom); JS_FreeAtom(ctx, atom); if (ret < 0) return JS_EXCEPTION; else return js_bool(ret); }
O1
c
js_reflect_has: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rdi, %r14 movq 0x8(%r8), %r15 cmpl $-0x1, %r15d jne 0x12c8f movq (%r8), %r12 movq 0x10(%r8), %rsi movq 0x18(%r8), %rdx movq %r14, %rdi callq 0x280ef pushq $0x6 popq %rbx testl %eax, %eax je 0x12cb5 movl %eax, %ebp movq %r14, %rdi movq %r12, %rsi movq %r15, %rdx movl %eax, %ecx callq 0xf9ef movl %eax, %r15d movq %r14, %rdi movl %ebp, %esi callq 0x24834 testl %r15d, %r15d js 0x12cb5 setne %al movzbl %al, %r15d pushq $0x1 jmp 0x12ca5 leaq 0x90607(%rip), %rsi # 0xa329d xorl %r15d, %r15d movq %r14, %rdi xorl %eax, %eax callq 0x265c3 pushq $0x6 popq %rbx movq %r15, %rax movq %rbx, %rdx popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq xorl %r15d, %r15d jmp 0x12ca6
js_reflect_has: push rbp push r15 push r14 push r12 push rbx mov r14, rdi mov r15, [r8+8] cmp r15d, 0FFFFFFFFh jnz short loc_12C8F mov r12, [r8] mov rsi, [r8+10h] mov rdx, [r8+18h] mov rdi, r14 call JS_ValueToAtom push 6 pop rbx test eax, eax jz short loc_12CB5 mov ebp, eax mov rdi, r14 mov rsi, r12 mov rdx, r15 mov ecx, eax call JS_HasProperty mov r15d, eax mov rdi, r14 mov esi, ebp call JS_FreeAtom test r15d, r15d js short loc_12CB5 setnz al movzx r15d, al push 1 jmp short loc_12CA5 loc_12C8F: lea rsi, aOperandPrototy+20h; "not an object" xor r15d, r15d mov rdi, r14 xor eax, eax call JS_ThrowTypeError push 6 loc_12CA5: pop rbx loc_12CA6: mov rax, r15 mov rdx, rbx pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_12CB5: xor r15d, r15d jmp short loc_12CA6
_BOOL8 js_reflect_has(long long a1, long long a2, int a3, int a4, long long *a5, int a6) { long long v6; // r12 unsigned int v7; // eax unsigned int v8; // ebp int HasProperty; // r15d long long v10; // r15 if ( (unsigned int)a5[1] == -1 ) { v6 = *a5; v7 = JS_ValueToAtom(a1, a5[2], a5[3]); if ( v7 && (v8 = v7, HasProperty = JS_HasProperty(a1, v6, -1, v7), JS_FreeAtom(a1, v8), HasProperty >= 0) ) return HasProperty != 0; else return 0LL; } else { v10 = 0LL; JS_ThrowTypeError(a1, (unsigned int)"not an object", a3, a4, (_DWORD)a5, a6); } return v10; }
js_reflect_has: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV R14,RDI MOV R15,qword ptr [R8 + 0x8] CMP R15D,-0x1 JNZ 0x00112c8f MOV R12,qword ptr [R8] MOV RSI,qword ptr [R8 + 0x10] MOV RDX,qword ptr [R8 + 0x18] MOV RDI,R14 CALL 0x001280ef PUSH 0x6 POP RBX TEST EAX,EAX JZ 0x00112cb5 MOV EBP,EAX MOV RDI,R14 MOV RSI,R12 MOV RDX,R15 MOV ECX,EAX CALL 0x0010f9ef MOV R15D,EAX MOV RDI,R14 MOV ESI,EBP CALL 0x00124834 TEST R15D,R15D JS 0x00112cb5 SETNZ AL MOVZX R15D,AL PUSH 0x1 JMP 0x00112ca5 LAB_00112c8f: LEA RSI,[0x1a329d] XOR R15D,R15D MOV RDI,R14 XOR EAX,EAX CALL 0x001265c3 PUSH 0x6 LAB_00112ca5: POP RBX LAB_00112ca6: MOV RAX,R15 MOV RDX,RBX POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00112cb5: XOR R15D,R15D JMP 0x00112ca6
bool js_reflect_has(int8 param_1) { int8 uVar1; int8 uVar2; int iVar3; int iVar4; int8 *in_R8; uVar1 = in_R8[1]; if ((int)uVar1 == -1) { uVar2 = *in_R8; iVar3 = JS_ValueToAtom(param_1,in_R8[2],in_R8[3]); if (iVar3 != 0) { iVar4 = JS_HasProperty(param_1,uVar2,uVar1,iVar3); JS_FreeAtom(param_1,iVar3); if (-1 < iVar4) { return iVar4 != 0; } } } else { JS_ThrowTypeError(param_1,"not an object"); } return false; }
27,663
js_reflect_has
bluesky950520[P]quickjs/quickjs.c
static JSValue js_reflect_has(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSValue obj, prop; JSAtom atom; int ret; obj = argv[0]; prop = argv[1]; if (JS_VALUE_GET_TAG(obj) != JS_TAG_OBJECT) return JS_ThrowTypeErrorNotAnObject(ctx); atom = JS_ValueToAtom(ctx, prop); if (unlikely(atom == JS_ATOM_NULL)) return JS_EXCEPTION; ret = JS_HasProperty(ctx, obj, atom); JS_FreeAtom(ctx, atom); if (ret < 0) return JS_EXCEPTION; else return js_bool(ret); }
O2
c
js_reflect_has: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rdi, %r14 movq 0x8(%r8), %r15 cmpl $-0x1, %r15d jne 0x6de30 movq (%r8), %r12 movq 0x10(%r8), %rsi movq 0x18(%r8), %rdx movq %r14, %rdi callq 0x21c6c pushq $0x6 popq %rbx testl %eax, %eax je 0x6de3b movl %eax, %ebp movq %r14, %rdi movq %r12, %rsi movq %r15, %rdx movl %eax, %ecx callq 0x21b68 movl %eax, %r15d movq %r14, %rdi movl %ebp, %esi callq 0x1e545 testl %r15d, %r15d js 0x6de3b setne %al movzbl %al, %eax pushq $0x1 popq %rbx jmp 0x6de3d movq %r14, %rdi callq 0x21191 pushq $0x6 popq %rbx xorl %eax, %eax movq %rbx, %rdx popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
js_reflect_has: push rbp push r15 push r14 push r12 push rbx mov r14, rdi mov r15, [r8+8] cmp r15d, 0FFFFFFFFh jnz short loc_6DE30 mov r12, [r8] mov rsi, [r8+10h] mov rdx, [r8+18h] mov rdi, r14 call JS_ValueToAtom push 6 pop rbx test eax, eax jz short loc_6DE3B mov ebp, eax mov rdi, r14 mov rsi, r12 mov rdx, r15 mov ecx, eax call JS_HasProperty mov r15d, eax mov rdi, r14 mov esi, ebp call JS_FreeAtom test r15d, r15d js short loc_6DE3B setnz al movzx eax, al push 1 pop rbx jmp short loc_6DE3D loc_6DE30: mov rdi, r14 call JS_ThrowTypeErrorNotAnObject push 6 pop rbx loc_6DE3B: xor eax, eax loc_6DE3D: mov rdx, rbx pop rbx pop r12 pop r14 pop r15 pop rbp retn
_BOOL8 js_reflect_has( long long a1, long long a2, long long a3, long long a4, long long *a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { long long v14; // r12 unsigned int v15; // eax unsigned int *v16; // r8 int v17; // ebp int HasProperty; // r15d char v20; // [rsp+0h] [rbp-28h] if ( (unsigned int)a5[1] == -1 ) { v14 = *a5; v15 = JS_ValueToAtom(a1, a5[2], a5[3]); if ( v15 ) { v17 = v15; HasProperty = JS_HasProperty(a1, v14, -1, v15, v16); JS_FreeAtom(a1, v17); if ( HasProperty >= 0 ) return HasProperty != 0; } } else { JS_ThrowTypeErrorNotAnObject(a1, a7, a8, a9, a10, a11, a12, a13, a14, a2, a3, a4, (long long)a5, a6, v20); } return 0LL; }
js_reflect_has: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV R14,RDI MOV R15,qword ptr [R8 + 0x8] CMP R15D,-0x1 JNZ 0x0016de30 MOV R12,qword ptr [R8] MOV RSI,qword ptr [R8 + 0x10] MOV RDX,qword ptr [R8 + 0x18] MOV RDI,R14 CALL 0x00121c6c PUSH 0x6 POP RBX TEST EAX,EAX JZ 0x0016de3b MOV EBP,EAX MOV RDI,R14 MOV RSI,R12 MOV RDX,R15 MOV ECX,EAX CALL 0x00121b68 MOV R15D,EAX MOV RDI,R14 MOV ESI,EBP CALL 0x0011e545 TEST R15D,R15D JS 0x0016de3b SETNZ AL MOVZX EAX,AL PUSH 0x1 POP RBX JMP 0x0016de3d LAB_0016de30: MOV RDI,R14 CALL 0x00121191 PUSH 0x6 POP RBX LAB_0016de3b: XOR EAX,EAX LAB_0016de3d: MOV RDX,RBX POP RBX POP R12 POP R14 POP R15 POP RBP RET
bool js_reflect_has(int8 param_1) { int8 uVar1; int8 uVar2; int iVar3; int iVar4; int8 *in_R8; uVar1 = in_R8[1]; if ((int)uVar1 == -1) { uVar2 = *in_R8; iVar3 = JS_ValueToAtom(param_1,in_R8[2],in_R8[3]); if (iVar3 != 0) { iVar4 = JS_HasProperty(param_1,uVar2,uVar1,iVar3); JS_FreeAtom(param_1,iVar3); if (-1 < iVar4) { return iVar4 != 0; } } } else { JS_ThrowTypeErrorNotAnObject(param_1); } return false; }
27,664
JS_AddPerformance
bluesky950520[P]quickjs/quickjs.c
void JS_AddPerformance(JSContext *ctx) { ctx->time_origin = js__now_ms(); JSValue performance = JS_NewObject(ctx); JS_SetPropertyFunctionList(ctx, performance, js_perf_proto_funcs, countof(js_perf_proto_funcs)); JS_DefinePropertyValueStr(ctx, performance, "timeOrigin", js_float64(ctx->time_origin), JS_PROP_ENUMERABLE); JS_DefinePropertyValueStr(ctx, ctx->global_obj, "performance", js_dup(performance), JS_PROP_WRITABLE | JS_PROP_ENUMERABLE | JS_PROP_CONFIGURABLE); JS_FreeValue(ctx, performance); }
O0
c
JS_AddPerformance: subq $0x58, %rsp movq %rdi, 0x50(%rsp) callq 0x5f8f0 movq 0x50(%rsp), %rax movsd %xmm0, 0x1c0(%rax) movq 0x50(%rsp), %rdi callq 0x30860 movq %rax, 0x40(%rsp) movq %rdx, 0x48(%rsp) movq 0x50(%rsp), %rdi movq 0x40(%rsp), %rsi movq 0x48(%rsp), %rdx leaq 0x10a93b(%rip), %rcx # 0x138500 movl $0x1, %r8d callq 0x52df0 movq 0x50(%rsp), %rax movq %rax, 0x8(%rsp) movq 0x50(%rsp), %rax movsd 0x1c0(%rax), %xmm0 callq 0x53950 movq 0x8(%rsp), %rdi movq %rax, 0x30(%rsp) movq %rdx, 0x38(%rsp) movq 0x40(%rsp), %rsi movq 0x48(%rsp), %rdx movq 0x30(%rsp), %r8 movq 0x38(%rsp), %r9 leaq 0xe64cb(%rip), %rcx # 0x1140e1 movl $0x4, (%rsp) callq 0x3d7d0 movq 0x50(%rsp), %rax movq %rax, 0x10(%rsp) movq 0x50(%rsp), %rax movq %rax, 0x18(%rsp) movq 0x40(%rsp), %rdi movq 0x48(%rsp), %rsi callq 0x279c0 movq 0x10(%rsp), %rdi movq %rax, %rcx movq 0x18(%rsp), %rax movq %rcx, 0x20(%rsp) movq %rdx, 0x28(%rsp) movq 0x1a0(%rax), %rsi movq 0x1a8(%rax), %rdx movq 0x20(%rsp), %r8 movq 0x28(%rsp), %r9 leaq 0xe6471(%rip), %rcx # 0x1140ec movl $0x7, (%rsp) callq 0x3d7d0 movq 0x50(%rsp), %rdi movq 0x40(%rsp), %rsi movq 0x48(%rsp), %rdx callq 0x29f80 addq $0x58, %rsp retq
JS_AddPerformance: sub rsp, 58h mov [rsp+58h+var_8], rdi call js__now_ms mov rax, [rsp+58h+var_8] movsd qword ptr [rax+1C0h], xmm0 mov rdi, [rsp+58h+var_8] call JS_NewObject mov [rsp+58h+var_18], rax mov [rsp+58h+var_10], rdx mov rdi, [rsp+58h+var_8] mov rsi, [rsp+58h+var_18] mov rdx, [rsp+58h+var_10] lea rcx, js_perf_proto_funcs mov r8d, 1 call JS_SetPropertyFunctionList mov rax, [rsp+58h+var_8] mov [rsp+58h+var_50], rax mov rax, [rsp+58h+var_8] movsd xmm0, qword ptr [rax+1C0h] call js_float64 mov rdi, [rsp+58h+var_50] mov [rsp+58h+var_28], rax mov [rsp+58h+var_20], rdx mov rsi, [rsp+58h+var_18] mov rdx, [rsp+58h+var_10] mov r8, [rsp+58h+var_28] mov r9, [rsp+58h+var_20] lea rcx, aTimeorigin; "timeOrigin" mov [rsp+58h+var_58], 4 call JS_DefinePropertyValueStr mov rax, [rsp+58h+var_8] mov [rsp+58h+var_48], rax mov rax, [rsp+58h+var_8] mov [rsp+58h+var_40], rax mov rdi, [rsp+58h+var_18] mov rsi, [rsp+58h+var_10] call js_dup mov rdi, [rsp+58h+var_48] mov rcx, rax mov rax, [rsp+58h+var_40] mov [rsp+58h+var_38], rcx mov [rsp+58h+var_30], rdx mov rsi, [rax+1A0h] mov rdx, [rax+1A8h] mov r8, [rsp+58h+var_38] mov r9, [rsp+58h+var_30] lea rcx, aPerformance; "performance" mov [rsp+58h+var_58], 7 call JS_DefinePropertyValueStr mov rdi, [rsp+58h+var_8] mov rsi, [rsp+58h+var_18] mov rdx, [rsp+58h+var_10] call JS_FreeValue add rsp, 58h retn
long long JS_AddPerformance(long long a1) { long long v1; // rdx int v2; // edx unsigned int v3; // eax int v4; // edx int v6; // [rsp+30h] [rbp-28h] _DWORD *v7; // [rsp+40h] [rbp-18h] long long v8; // [rsp+48h] [rbp-10h] *(double *)(a1 + 448) = js__now_ms(); v7 = (_DWORD *)JS_NewObject(a1); v8 = v1; JS_SetPropertyFunctionList(a1, v7, v1, &js_perf_proto_funcs, 1LL); v6 = js_float64(*(double *)(a1 + 448)); JS_DefinePropertyValueStr(a1, (_DWORD)v7, v8, (unsigned int)"timeOrigin", v6, v2, 4); v3 = (unsigned int)js_dup(v7, v8); JS_DefinePropertyValueStr(a1, *(_QWORD *)(a1 + 416), *(_QWORD *)(a1 + 424), (unsigned int)"performance", v3, v4, 7); return JS_FreeValue(a1, (long long)v7, v8); }
JS_AddPerformance: SUB RSP,0x58 MOV qword ptr [RSP + 0x50],RDI CALL 0x0015f8f0 MOV RAX,qword ptr [RSP + 0x50] MOVSD qword ptr [RAX + 0x1c0],XMM0 MOV RDI,qword ptr [RSP + 0x50] CALL 0x00130860 MOV qword ptr [RSP + 0x40],RAX MOV qword ptr [RSP + 0x48],RDX MOV RDI,qword ptr [RSP + 0x50] MOV RSI,qword ptr [RSP + 0x40] MOV RDX,qword ptr [RSP + 0x48] LEA RCX,[0x238500] MOV R8D,0x1 CALL 0x00152df0 MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0x8],RAX MOV RAX,qword ptr [RSP + 0x50] MOVSD XMM0,qword ptr [RAX + 0x1c0] CALL 0x00153950 MOV RDI,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x30],RAX MOV qword ptr [RSP + 0x38],RDX MOV RSI,qword ptr [RSP + 0x40] MOV RDX,qword ptr [RSP + 0x48] MOV R8,qword ptr [RSP + 0x30] MOV R9,qword ptr [RSP + 0x38] LEA RCX,[0x2140e1] MOV dword ptr [RSP],0x4 CALL 0x0013d7d0 MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0x18],RAX MOV RDI,qword ptr [RSP + 0x40] MOV RSI,qword ptr [RSP + 0x48] CALL 0x001279c0 MOV RDI,qword ptr [RSP + 0x10] MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x20],RCX MOV qword ptr [RSP + 0x28],RDX MOV RSI,qword ptr [RAX + 0x1a0] MOV RDX,qword ptr [RAX + 0x1a8] MOV R8,qword ptr [RSP + 0x20] MOV R9,qword ptr [RSP + 0x28] LEA RCX,[0x2140ec] MOV dword ptr [RSP],0x7 CALL 0x0013d7d0 MOV RDI,qword ptr [RSP + 0x50] MOV RSI,qword ptr [RSP + 0x40] MOV RDX,qword ptr [RSP + 0x48] CALL 0x00129f80 ADD RSP,0x58 RET
void JS_AddPerformance(long param_1) { int8 uVar1; int8 uVar2; int1 auVar3 [16]; uVar2 = js__now_ms(); *(int8 *)(param_1 + 0x1c0) = uVar2; auVar3 = JS_NewObject(param_1); uVar1 = auVar3._8_8_; uVar2 = auVar3._0_8_; JS_SetPropertyFunctionList(param_1,uVar2,uVar1,js_perf_proto_funcs,1); auVar3 = js_float64(*(int8 *)(param_1 + 0x1c0)); JS_DefinePropertyValueStr(param_1,uVar2,uVar1,"timeOrigin",auVar3._0_8_,auVar3._8_8_,4); auVar3 = js_dup(uVar2,uVar1); JS_DefinePropertyValueStr (param_1,*(int8 *)(param_1 + 0x1a0),*(int8 *)(param_1 + 0x1a8),"performance" ,auVar3._0_8_,auVar3._8_8_,7); JS_FreeValue(param_1,uVar2,uVar1); return; }
27,665
JS_AddPerformance
bluesky950520[P]quickjs/quickjs.c
void JS_AddPerformance(JSContext *ctx) { ctx->time_origin = js__now_ms(); JSValue performance = JS_NewObject(ctx); JS_SetPropertyFunctionList(ctx, performance, js_perf_proto_funcs, countof(js_perf_proto_funcs)); JS_DefinePropertyValueStr(ctx, performance, "timeOrigin", js_float64(ctx->time_origin), JS_PROP_ENUMERABLE); JS_DefinePropertyValueStr(ctx, ctx->global_obj, "performance", js_dup(performance), JS_PROP_WRITABLE | JS_PROP_ENUMERABLE | JS_PROP_CONFIGURABLE); JS_FreeValue(ctx, performance); }
O2
c
JS_AddPerformance: pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rdi, %rbx callq 0x368e6 movsd %xmm0, 0x1c0(%rbx) movq %rbx, %rdi callq 0x1ee79 movq %rax, %r14 movq %rdx, %r15 leaq 0x9ca10(%rip), %rcx # 0xba410 pushq $0x1 popq %r8 movq %rbx, %rdi movq %rax, %rsi callq 0x2ffaf movq 0x1c0(%rbx), %r8 movl $0x4, (%rsp) leaq 0x6b621(%rip), %rcx # 0x89045 pushq $0x7 popq %r9 movq %rbx, %rdi movq %r14, %rsi movq %r15, %rdx callq 0x245db cmpl $-0x9, %r15d jb 0x1da3f incl (%r14) movq 0x1a0(%rbx), %rsi movq 0x1a8(%rbx), %rdx movl $0x7, (%rsp) leaq 0x6b5f5(%rip), %rcx # 0x89050 movq %rbx, %rdi movq %r14, %r8 movq %r15, %r9 callq 0x245db movq %rbx, %rdi movq %r14, %rsi movq %r15, %rdx addq $0x10, %rsp popq %rbx popq %r14 popq %r15 jmp 0x1bbce
JS_AddPerformance: push r15 push r14 push rbx sub rsp, 10h mov rbx, rdi call js__now_ms movsd qword ptr [rbx+1C0h], xmm0 mov rdi, rbx call JS_NewObject mov r14, rax mov r15, rdx lea rcx, js_perf_proto_funcs push 1 pop r8 mov rdi, rbx mov rsi, rax call JS_SetPropertyFunctionList mov r8, [rbx+1C0h] mov [rsp+28h+var_28], 4 lea rcx, aTimeorigin; "timeOrigin" push 7 pop r9 mov rdi, rbx mov rsi, r14 mov rdx, r15 call JS_DefinePropertyValueStr cmp r15d, 0FFFFFFF7h jb short loc_1DA3F inc dword ptr [r14] loc_1DA3F: mov rsi, [rbx+1A0h] mov rdx, [rbx+1A8h] mov [rsp+28h+var_28], 7 lea rcx, aPerformance; "performance" mov rdi, rbx mov r8, r14 mov r9, r15 call JS_DefinePropertyValueStr mov rdi, rbx mov rsi, r14 mov rdx, r15 add rsp, 10h pop rbx pop r14 pop r15 jmp JS_FreeValue
long long JS_AddPerformance(long long a1) { _DWORD *v1; // r14 long long v2; // rdx long long v3; // r15 *(double *)(a1 + 448) = js__now_ms(); v1 = (_DWORD *)JS_NewObject(a1); v3 = v2; JS_SetPropertyFunctionList(a1, v1, v2, &js_perf_proto_funcs, 1LL); JS_DefinePropertyValueStr(a1, (_DWORD)v1, v3, (unsigned int)"timeOrigin", *(_QWORD *)(a1 + 448), 7, 4); if ( (unsigned int)v3 >= 0xFFFFFFF7 ) ++*v1; JS_DefinePropertyValueStr( a1, *(_QWORD *)(a1 + 416), *(_QWORD *)(a1 + 424), (unsigned int)"performance", (_DWORD)v1, v3, 7); return JS_FreeValue(a1, (long long)v1, v3); }
JS_AddPerformance: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x10 MOV RBX,RDI CALL 0x001368e6 MOVSD qword ptr [RBX + 0x1c0],XMM0 MOV RDI,RBX CALL 0x0011ee79 MOV R14,RAX MOV R15,RDX LEA RCX,[0x1ba410] PUSH 0x1 POP R8 MOV RDI,RBX MOV RSI,RAX CALL 0x0012ffaf MOV R8,qword ptr [RBX + 0x1c0] MOV dword ptr [RSP],0x4 LEA RCX,[0x189045] PUSH 0x7 POP R9 MOV RDI,RBX MOV RSI,R14 MOV RDX,R15 CALL 0x001245db CMP R15D,-0x9 JC 0x0011da3f INC dword ptr [R14] LAB_0011da3f: MOV RSI,qword ptr [RBX + 0x1a0] MOV RDX,qword ptr [RBX + 0x1a8] MOV dword ptr [RSP],0x7 LEA RCX,[0x189050] MOV RDI,RBX MOV R8,R14 MOV R9,R15 CALL 0x001245db MOV RDI,RBX MOV RSI,R14 MOV RDX,R15 ADD RSP,0x10 POP RBX POP R14 POP R15 JMP 0x0011bbce
void JS_AddPerformance(long param_1) { int *piVar1; int8 uVar2; int1 auVar3 [16]; uVar2 = js__now_ms(); *(int8 *)(param_1 + 0x1c0) = uVar2; auVar3 = JS_NewObject(param_1); uVar2 = auVar3._8_8_; piVar1 = auVar3._0_8_; JS_SetPropertyFunctionList(param_1,piVar1,uVar2,js_perf_proto_funcs,1); JS_DefinePropertyValueStr(param_1,piVar1,uVar2,"timeOrigin",*(int8 *)(param_1 + 0x1c0),7,4); if (0xfffffff6 < auVar3._8_4_) { *piVar1 = *piVar1 + 1; } JS_DefinePropertyValueStr (param_1,*(int8 *)(param_1 + 0x1a0),*(int8 *)(param_1 + 0x1a8),"performance" ,piVar1,uVar2,7); JS_FreeValue(param_1,piVar1,uVar2); return; }
27,666
ggml_pad
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
struct ggml_tensor * ggml_pad( struct ggml_context * ctx, struct ggml_tensor * a, int p0, int p1, int p2, int p3) { struct ggml_tensor * result = ggml_new_tensor_4d(ctx, a->type, a->ne[0] + p0, a->ne[1] + p1, a->ne[2] + p2, a->ne[3] + p3); result->op = GGML_OP_PAD; result->src[0] = a; return result; }
O2
c
ggml_pad: pushq %rbx movq %rsi, %rbx movslq %edx, %rdx addq 0x10(%rsi), %rdx movslq %ecx, %rcx addq 0x18(%rsi), %rcx movslq %r8d, %r8 addq 0x20(%rsi), %r8 movl (%rsi), %esi movslq %r9d, %r9 addq 0x28(%rbx), %r9 callq 0x20030 movl $0x37, 0x50(%rax) movq %rbx, 0x98(%rax) popq %rbx retq
ggml_pad: push rbx mov rbx, rsi movsxd rdx, edx add rdx, [rsi+10h] movsxd rcx, ecx add rcx, [rsi+18h] movsxd r8, r8d add r8, [rsi+20h] mov esi, [rsi] movsxd r9, r9d add r9, [rbx+28h] call _ggml_new_tensor_4d mov dword ptr [rax+50h], 37h ; '7' mov [rax+98h], rbx pop rbx retn
long long ggml_pad(long long a1, _QWORD *a2, int a3, int a4, int a5, int a6) { long long result; // rax result = ggml_new_tensor_4d(a1, *(unsigned int *)a2, a2[2] + a3, a2[3] + a4, a2[4] + a5, a2[5] + a6); *(_DWORD *)(result + 80) = 55; *(_QWORD *)(result + 152) = a2; return result; }
ggml_pad: PUSH RBX MOV RBX,RSI MOVSXD RDX,EDX ADD RDX,qword ptr [RSI + 0x10] MOVSXD RCX,ECX ADD RCX,qword ptr [RSI + 0x18] MOVSXD R8,R8D ADD R8,qword ptr [RSI + 0x20] MOV ESI,dword ptr [RSI] MOVSXD R9,R9D ADD R9,qword ptr [RBX + 0x28] CALL 0x00120030 MOV dword ptr [RAX + 0x50],0x37 MOV qword ptr [RAX + 0x98],RBX POP RBX RET
void ggml_pad(int8 param_1,int4 *param_2,int param_3,int param_4,int param_5,int param_6 ) { long lVar1; lVar1 = ggml_new_tensor_4d(param_1,*param_2,(long)param_3 + *(long *)(param_2 + 4), (long)param_4 + *(long *)(param_2 + 6), (long)param_5 + *(long *)(param_2 + 8), (long)param_6 + *(long *)(param_2 + 10)); *(int4 *)(lVar1 + 0x50) = 0x37; *(int4 **)(lVar1 + 0x98) = param_2; return; }
27,667
ggml_pad
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
struct ggml_tensor * ggml_pad( struct ggml_context * ctx, struct ggml_tensor * a, int p0, int p1, int p2, int p3) { struct ggml_tensor * result = ggml_new_tensor_4d(ctx, a->type, a->ne[0] + p0, a->ne[1] + p1, a->ne[2] + p2, a->ne[3] + p3); result->op = GGML_OP_PAD; result->src[0] = a; return result; }
O3
c
ggml_pad: pushq %rbx subq $0x20, %rsp movq %rsi, %rbx movslq %edx, %rax addq 0x10(%rsi), %rax movslq %ecx, %rdx addq 0x18(%rsi), %rdx movl (%rsi), %esi movslq %r8d, %r8 addq 0x20(%rbx), %r8 movslq %r9d, %r9 addq 0x28(%rbx), %r9 movq %rsp, %rcx movq %rax, (%rcx) movq %rdx, 0x8(%rcx) movq %r8, 0x10(%rcx) movq %r9, 0x18(%rcx) movl $0x4, %edx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x1a57f movl $0x37, 0x50(%rax) movq %rbx, 0x98(%rax) addq $0x20, %rsp popq %rbx retq
ggml_pad: push rbx sub rsp, 20h mov rbx, rsi movsxd rax, edx add rax, [rsi+10h] movsxd rdx, ecx add rdx, [rsi+18h] mov esi, [rsi] movsxd r8, r8d add r8, [rbx+20h] movsxd r9, r9d add r9, [rbx+28h] mov rcx, rsp mov [rcx], rax mov [rcx+8], rdx mov [rcx+10h], r8 mov [rcx+18h], r9 mov edx, 4 xor r8d, r8d xor r9d, r9d call ggml_new_tensor_impl mov dword ptr [rax+50h], 37h ; '7' mov [rax+98h], rbx add rsp, 20h pop rbx retn
long long ggml_pad(long long a1, long long a2, int a3, int a4, int a5, int a6, double a7) { long long v8; // rax long long v9; // rdx unsigned int v10; // esi long long v11; // r8 long long v12; // r9 long long result; // rax long long v14[5]; // [rsp+0h] [rbp-28h] BYREF v8 = *(_QWORD *)(a2 + 16) + a3; v9 = *(_QWORD *)(a2 + 24) + a4; v10 = *(_DWORD *)a2; v11 = *(_QWORD *)(a2 + 32) + a5; v12 = *(_QWORD *)(a2 + 40) + a6; v14[0] = v8; v14[1] = v9; v14[2] = v11; v14[3] = v12; result = ggml_new_tensor_impl(a1, v10, 4u, v14, 0LL, 0LL, a7); *(_DWORD *)(result + 80) = 55; *(_QWORD *)(result + 152) = a2; return result; }
ggml_pad: PUSH RBX SUB RSP,0x20 MOV RBX,RSI MOVSXD RAX,EDX ADD RAX,qword ptr [RSI + 0x10] MOVSXD RDX,ECX ADD RDX,qword ptr [RSI + 0x18] MOV ESI,dword ptr [RSI] MOVSXD R8,R8D ADD R8,qword ptr [RBX + 0x20] MOVSXD R9,R9D ADD R9,qword ptr [RBX + 0x28] MOV RCX,RSP MOV qword ptr [RCX],RAX MOV qword ptr [RCX + 0x8],RDX MOV qword ptr [RCX + 0x10],R8 MOV qword ptr [RCX + 0x18],R9 MOV EDX,0x4 XOR R8D,R8D XOR R9D,R9D CALL 0x0011a57f MOV dword ptr [RAX + 0x50],0x37 MOV qword ptr [RAX + 0x98],RBX ADD RSP,0x20 POP RBX RET
void ggml_pad(int8 param_1,int4 *param_2,int param_3,int param_4,int param_5,int param_6 ) { long lVar1; long local_28; long local_20; long local_18; long local_10; local_28 = (long)param_3 + *(long *)(param_2 + 4); local_20 = (long)param_4 + *(long *)(param_2 + 6); local_18 = (long)param_5 + *(long *)(param_2 + 8); local_10 = (long)param_6 + *(long *)(param_2 + 10); lVar1 = ggml_new_tensor_impl(param_1,*param_2,4,&local_28,0,0); *(int4 *)(lVar1 + 0x50) = 0x37; *(int4 **)(lVar1 + 0x98) = param_2; return; }
27,668
my_strtoll10_mb2
eloqsql/strings/ctype-ucs2.c
static longlong my_strtoll10_mb2(CHARSET_INFO *cs __attribute__((unused)), const char *nptr, char **endptr, int *error) { const uchar *s, *end, *start, *n_end, *true_end; uchar UNINIT_VAR(c); unsigned long i, j, k; ulonglong li; int negative; ulong cutoff, cutoff2, cutoff3; my_wc_t wc; int res; my_charset_conv_mb_wc mb_wc= cs->cset->mb_wc; s= (const uchar *) nptr; /* If fixed length string */ if (endptr) { /* Make sure string length is even. Odd length indicates a bug in the caller. Assert in debug, round in production. */ DBUG_ASSERT((*endptr - (const char *) s) % 2 == 0); end= s + ((*endptr - (const char*) s) / 2) * 2; for ( ; ; ) /* Skip leading spaces and tabs */ { if ((res= mb_wc(cs, &wc, s, end)) <= 0) goto no_conv; s+= res; if (wc != ' ' && wc != '\t') break; } } else { /* We don't support null terminated strings in UCS2 */ goto no_conv; } /* Check for a sign. */ negative= 0; if (wc == '-') { *error= -1; /* Mark as negative number */ negative= 1; if ((res= mb_wc(cs, &wc, s, end)) <= 0) goto no_conv; s+= res; /* wc is now expected to hold the first digit. */ cutoff= MAX_NEGATIVE_NUMBER / LFACTOR2; cutoff2= (MAX_NEGATIVE_NUMBER % LFACTOR2) / 100; cutoff3= MAX_NEGATIVE_NUMBER % 100; } else { *error= 0; if (wc == '+') { if ((res= mb_wc(cs, &wc, s, end)) <= 0) goto no_conv; s+= res; /* wc is now expected to hold the first digit. */ } cutoff= ULONGLONG_MAX / LFACTOR2; cutoff2= ULONGLONG_MAX % LFACTOR2 / 100; cutoff3= ULONGLONG_MAX % 100; } /* The code below assumes that 'wc' holds the first digit and 's' points to the next character after it. Scan pre-zeros if any. */ if (wc == '0') { i= 0; for ( ; ; s+= res) { if (s == end) goto end_i; /* Return 0 */ if ((res= mb_wc(cs, &wc, s, end)) <= 0) goto no_conv; if (wc != '0') break; } n_end= s + 2 * INIT_CNT; } else { /* Read first digit to check that it's a valid number */ if ((i= (wc - '0')) > 9) goto no_conv; n_end= s + 2 * (INIT_CNT-1); } /* Handle first 9 digits and store them in i */ if (n_end > end) n_end= end; for ( ; ; s+= res) { if ((res= mb_wc(cs, &wc, s, n_end)) <= 0) break; if (wc2digit_uchar(&c, wc)) goto end_i; i= i*10+c; } if (s == end) goto end_i; /* Handle next 9 digits and store them in j */ j= 0; start= s; /* Used to know how much to shift i */ n_end= true_end= s + 2 * INIT_CNT; if (n_end > end) n_end= end; do { if ((res= mb_wc(cs, &wc, s, end)) <= 0) goto no_conv; if (wc2digit_uchar(&c, wc)) goto end_i_and_j; s+= res; j= j * 10 + c; } while (s != n_end); if (s == end) { if (s != true_end) goto end_i_and_j; goto end3; } /* Handle the next 1 or 2 digits and store them in k */ if ((res= mb_wc(cs, &wc, s, end)) <= 0) goto no_conv; if ((k= (wc - '0')) > 9) goto end3; s+= res; if (s == end) goto end4; if ((res= mb_wc(cs, &wc, s, end)) <= 0) goto no_conv; if (wc2digit_uchar(&c, wc)) goto end4; s+= res; k= k*10+c; *endptr= (char*) s; /* number string should have ended here */ if (s != end && mb_wc(cs, &wc, s, end) > 0 && ((uchar) (wc - '0')) <= 9) goto overflow; /* Check that we didn't get an overflow with the last digit */ if (i > cutoff || (i == cutoff && ((j > cutoff2 || j == cutoff2) && k > cutoff3))) goto overflow; li=i*LFACTOR2+ (ulonglong) j*100 + k; return (longlong) li; overflow: /* *endptr is set here */ *error= MY_ERRNO_ERANGE; return negative ? LONGLONG_MIN : (longlong) ULONGLONG_MAX; end_i: *endptr= (char*) s; return (negative ? ((longlong) -(long) i) : (longlong) i); end_i_and_j: li= (ulonglong) i * lfactor[(size_t) (s-start) / 2] + j; *endptr= (char*) s; return (negative ? -((longlong) li) : (longlong) li); end3: li=(ulonglong) i*LFACTOR+ (ulonglong) j; *endptr= (char*) s; return (negative ? -((longlong) li) : (longlong) li); end4: li=(ulonglong) i*LFACTOR1+ (ulonglong) j * 10 + k; *endptr= (char*) s; if (negative) { if (li > MAX_NEGATIVE_NUMBER) goto overflow; return -((longlong) li); } return (longlong) li; no_conv: /* There was no number to convert. */ *error= MY_ERRNO_EDOM; *endptr= (char *) nptr; return 0; }
O3
c
my_strtoll10_mb2: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movq %rcx, -0x60(%rbp) movq %rsi, -0x68(%rbp) movq %rdx, -0x48(%rbp) testq %rdx, %rdx je 0xc4069 movq %rdi, %r12 movq 0xb8(%rdi), %rax movq 0x28(%rax), %r8 movq -0x48(%rbp), %rax movq (%rax), %rax movq -0x68(%rbp), %rdx subq %rdx, %rax movq %rax, %r15 shrq $0x3f, %r15 addq %rax, %r15 andq $-0x2, %r15 addq %rdx, %r15 leaq -0x30(%rbp), %rsi movq %r15, %rcx movq %r8, -0x38(%rbp) callq *%r8 testl %eax, %eax jle 0xc4069 leaq -0x30(%rbp), %rbx movq -0x68(%rbp), %r13 movq %r13, %rcx movl %eax, %r13d addq %rcx, %r13 movq -0x30(%rbp), %r14 cmpq $0x20, %r14 je 0xc4056 cmpq $0x9, %r14 jne 0xc408f movq %r12, %rdi movq %rbx, %rsi movq %r13, %rdx movq %r15, %rcx callq *-0x38(%rbp) testl %eax, %eax jg 0xc403d movq -0x60(%rbp), %rax movl $0x21, (%rax) movq -0x48(%rbp), %rax movq -0x68(%rbp), %rcx movq %rcx, (%rax) xorl %eax, %eax addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq cmpq $0x2d, %r14 jne 0xc40d5 movq -0x60(%rbp), %rax movl $0xffffffff, (%rax) # imm = 0xFFFFFFFF leaq -0x30(%rbp), %rsi movq %r12, %rdi movq %r13, %rdx movq %r15, %rcx callq *-0x38(%rbp) testl %eax, %eax jle 0xc4069 movl %eax, %eax addq %rax, %r13 movl $0x8, %eax movq %rax, -0x70(%rbp) movl $0x15f797ae, %eax # imm = 0x15F797AE movq %rax, -0x78(%rbp) movl $0x57f5ff8, %eax # imm = 0x57F5FF8 movq %rax, -0x58(%rbp) jmp 0xc411d movq -0x60(%rbp), %rax movl $0x0, (%rax) movl $0xf, %eax movq %rax, -0x70(%rbp) movl $0x2bef2f5c, %eax # imm = 0x2BEF2F5C movq %rax, -0x78(%rbp) movl $0xafebff0, %eax # imm = 0xAFEBFF0 movq %rax, -0x58(%rbp) cmpq $0x2b, %r14 jne 0xc411d leaq -0x30(%rbp), %rsi movq %r12, %rdi movq %r13, %rdx movq %r15, %rcx callq *-0x38(%rbp) testl %eax, %eax jle 0xc4069 movl %eax, %eax addq %rax, %r13 movq -0x30(%rbp), %rax cmpq $0x30, %rax jne 0xc415f cmpq %r15, %r13 je 0xc4158 leaq -0x30(%rbp), %rbx movq %r12, %rdi movq %rbx, %rsi movq %r13, %rdx movq %r15, %rcx callq *-0x38(%rbp) testl %eax, %eax jle 0xc4069 cmpq $0x30, -0x30(%rbp) jne 0xc4176 movl %eax, %eax addq %rax, %r13 cmpq %r15, %r13 jne 0xc4130 xorl %ebx, %ebx jmp 0xc432c addq $-0x30, %rax cmpq $0x9, %rax ja 0xc4069 movq %rax, %rbx leaq 0x10(%r13), %rcx jmp 0xc417c leaq 0x12(%r13), %rcx xorl %ebx, %ebx cmpq %r15, %rcx cmovaq %r15, %rcx leaq -0x30(%rbp), %rsi movq %r12, %rdi movq %r13, %rdx movq %rcx, -0x40(%rbp) callq *-0x38(%rbp) testl %eax, %eax jle 0xc41d2 movq -0x30(%rbp), %rcx cmpq $0x39, %rcx ja 0xc4329 addb $-0x30, %cl cmpb $0x9, %cl ja 0xc4329 leaq (%rbx,%rbx,4), %rdx movzbl %cl, %ecx leaq (%rcx,%rdx,2), %rbx movl %eax, %eax addq %rax, %r13 movq %r12, %rdi leaq -0x30(%rbp), %rsi movq %r13, %rdx movq -0x40(%rbp), %rcx jmp 0xc4191 cmpq %r15, %r13 je 0xc432c movq %rbx, -0x50(%rbp) leaq 0x12(%r13), %rax cmpq %r15, %rax cmovaq %r15, %rax movq %rax, -0x80(%rbp) xorl %ebx, %ebx xorl %esi, %esi movq %rsi, -0x40(%rbp) leaq (%rbx,%r13), %rdx movq %r12, %rdi leaq -0x30(%rbp), %rsi movq %rdx, -0x88(%rbp) movq %r15, %rcx callq *-0x38(%rbp) testl %eax, %eax jle 0xc4069 movq -0x30(%rbp), %rcx cmpq $0x39, %rcx ja 0xc4346 addb $-0x30, %cl cmpb $0x9, %cl movq -0x40(%rbp), %rsi ja 0xc434a movl %eax, %eax addq %rax, %rbx leaq (%rbx,%r13), %r8 leaq (%rsi,%rsi,4), %rax movzbl %cl, %ecx leaq (%rcx,%rax,2), %rsi cmpq -0x80(%rbp), %r8 jne 0xc41f2 cmpq %r15, -0x80(%rbp) je 0xc4388 movq %rsi, -0x40(%rbp) leaq -0x30(%rbp), %rsi movq %r12, %rdi movq %r8, %rbx movq %r8, %rdx movq %r15, %rcx callq *-0x38(%rbp) testl %eax, %eax jle 0xc4069 movq -0x30(%rbp), %r13 addq $-0x30, %r13 cmpq $0x9, %r13 movq -0x40(%rbp), %rsi movq %rbx, %r8 ja 0xc438e movl %eax, %eax addq %rax, %r8 cmpq %r15, %r8 je 0xc43b3 leaq -0x30(%rbp), %rsi movq %r12, %rdi movq %r8, %rbx movq %r8, %rdx movq %r15, %rcx callq *-0x38(%rbp) testl %eax, %eax jle 0xc4069 movq -0x30(%rbp), %rcx cmpq $0x39, %rcx movq -0x40(%rbp), %rsi movq %rbx, %r8 ja 0xc43b3 addb $-0x30, %cl cmpb $0x9, %cl ja 0xc43b3 movq %rcx, %rbx movl %eax, %eax addq %rax, %r8 movq -0x48(%rbp), %rax movq %r8, (%rax) cmpq %r15, %r8 je 0xc4418 movq %r8, %rdx leaq -0x30(%rbp), %rsi movq %r12, %rdi movq %r15, %rcx callq *-0x38(%rbp) testl %eax, %eax jle 0xc4418 movl $0xd0, %eax addl -0x30(%rbp), %eax andl $0xfe, %eax cmpl $0xa, %eax movq -0x50(%rbp), %rdx jae 0xc441c jmp 0xc43f0 movq %r13, %r15 movq %rbx, %rax negq %rax cmpq $0x2d, %r14 movq -0x48(%rbp), %rcx movq %r15, (%rcx) cmovneq %rbx, %rax jmp 0xc4080 movq -0x40(%rbp), %rsi movq -0x88(%rbp), %r15 movq %r15, %rax subq %r13, %rax andq $-0x2, %rax leaq 0x2122ce(%rip), %rcx # 0x2d6630 movq -0x50(%rbp), %rdx imulq (%rcx,%rax,4), %rdx addq %rsi, %rdx movq %rdx, %rax negq %rax cmpq $0x2d, %r14 movq -0x48(%rbp), %rcx movq %r15, (%rcx) cmovneq %rdx, %rax jmp 0xc4080 cmpq $0x12, %rbx jne 0xc4351 imulq $0x3b9aca00, -0x50(%rbp), %rax # imm = 0x3B9ACA00 addq %rax, %rsi movq %rsi, %rax negq %rax cmpq $0x2d, %r14 movq -0x48(%rbp), %rcx movq %r8, (%rcx) cmovneq %rsi, %rax jmp 0xc4080 movabsq $0x2540be400, %rax # imm = 0x2540BE400 movq -0x50(%rbp), %rcx imulq %rax, %rcx leaq (%rsi,%rsi,4), %rax leaq (%rcx,%rax,2), %rax addq %r13, %rax movq -0x48(%rbp), %rcx movq %r8, (%rcx) cmpq $0x2d, %r14 jne 0xc4080 movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000 cmpq %rcx, %rax jbe 0xc4410 xorl %eax, %eax cmpq $0x2d, %r14 setne %al movq -0x60(%rbp), %rcx movl $0x22, (%rcx) negq %rax btsq $0x3f, %rax jmp 0xc4080 negq %rax jmp 0xc4080 movq -0x50(%rbp), %rdx cmpq -0x58(%rbp), %rdx ja 0xc43f0 leaq (,%r13,4), %rax addq %r13, %rax movzbl %bl, %ecx leaq (%rcx,%rax,2), %rax cmpq -0x58(%rbp), %rdx jne 0xc444a movq -0x40(%rbp), %rcx cmpq -0x78(%rbp), %rcx jb 0xc444a cmpq -0x70(%rbp), %rax ja 0xc43f0 movabsq $0x174876e800, %rcx # imm = 0x174876E800 imulq %rcx, %rdx imulq $0x64, -0x40(%rbp), %rcx addq %rax, %rdx addq %rcx, %rdx movq %rdx, %rax jmp 0xc4080
my_strtoll10_mb2: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 68h mov [rbp+var_60], rcx mov [rbp+var_68], rsi mov [rbp+var_48], rdx test rdx, rdx jz short loc_C4069 mov r12, rdi mov rax, [rdi+0B8h] mov r8, [rax+28h] mov rax, [rbp+var_48] mov rax, [rax] mov rdx, [rbp+var_68] sub rax, rdx mov r15, rax shr r15, 3Fh add r15, rax and r15, 0FFFFFFFFFFFFFFFEh add r15, rdx lea rsi, [rbp+var_30] mov rcx, r15 mov [rbp+var_38], r8 call r8 test eax, eax jle short loc_C4069 lea rbx, [rbp+var_30] mov r13, [rbp+var_68] loc_C403D: mov rcx, r13 mov r13d, eax add r13, rcx mov r14, [rbp+var_30] cmp r14, 20h ; ' ' jz short loc_C4056 cmp r14, 9 jnz short loc_C408F loc_C4056: mov rdi, r12 mov rsi, rbx mov rdx, r13 mov rcx, r15 call [rbp+var_38] test eax, eax jg short loc_C403D loc_C4069: mov rax, [rbp+var_60] mov dword ptr [rax], 21h ; '!' mov rax, [rbp+var_48] mov rcx, [rbp+var_68] mov [rax], rcx xor eax, eax loc_C4080: add rsp, 68h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_C408F: cmp r14, 2Dh ; '-' jnz short loc_C40D5 mov rax, [rbp+var_60] mov dword ptr [rax], 0FFFFFFFFh lea rsi, [rbp+var_30] mov rdi, r12 mov rdx, r13 mov rcx, r15 call [rbp+var_38] test eax, eax jle short loc_C4069 mov eax, eax add r13, rax mov eax, 8 mov [rbp+var_70], rax mov eax, 15F797AEh mov [rbp+var_78], rax mov eax, 57F5FF8h mov [rbp+var_58], rax jmp short loc_C411D loc_C40D5: mov rax, [rbp+var_60] mov dword ptr [rax], 0 mov eax, 0Fh mov [rbp+var_70], rax mov eax, 2BEF2F5Ch mov [rbp+var_78], rax mov eax, 0AFEBFF0h mov [rbp+var_58], rax cmp r14, 2Bh ; '+' jnz short loc_C411D lea rsi, [rbp+var_30] mov rdi, r12 mov rdx, r13 mov rcx, r15 call [rbp+var_38] test eax, eax jle loc_C4069 mov eax, eax add r13, rax loc_C411D: mov rax, [rbp+var_30] cmp rax, 30h ; '0' jnz short loc_C415F cmp r13, r15 jz short loc_C4158 lea rbx, [rbp+var_30] loc_C4130: mov rdi, r12 mov rsi, rbx mov rdx, r13 mov rcx, r15 call [rbp+var_38] test eax, eax jle loc_C4069 cmp [rbp+var_30], 30h ; '0' jnz short loc_C4176 mov eax, eax add r13, rax cmp r13, r15 jnz short loc_C4130 loc_C4158: xor ebx, ebx jmp loc_C432C loc_C415F: add rax, 0FFFFFFFFFFFFFFD0h cmp rax, 9 ja loc_C4069 mov rbx, rax lea rcx, [r13+10h] jmp short loc_C417C loc_C4176: lea rcx, [r13+12h] xor ebx, ebx loc_C417C: cmp rcx, r15 cmova rcx, r15 lea rsi, [rbp+var_30] mov rdi, r12 mov rdx, r13 mov [rbp+var_40], rcx loc_C4191: call [rbp+var_38] test eax, eax jle short loc_C41D2 mov rcx, [rbp+var_30] cmp rcx, 39h ; '9' ja loc_C4329 add cl, 0D0h cmp cl, 9 ja loc_C4329 lea rdx, [rbx+rbx*4] movzx ecx, cl lea rbx, [rcx+rdx*2] mov eax, eax add r13, rax mov rdi, r12 lea rsi, [rbp+var_30] mov rdx, r13 mov rcx, [rbp+var_40] jmp short loc_C4191 loc_C41D2: cmp r13, r15 jz loc_C432C mov [rbp+var_50], rbx lea rax, [r13+12h] cmp rax, r15 cmova rax, r15 mov [rbp+var_80], rax xor ebx, ebx xor esi, esi loc_C41F2: mov [rbp+var_40], rsi lea rdx, [rbx+r13] mov rdi, r12 lea rsi, [rbp+var_30] mov [rbp+var_88], rdx mov rcx, r15 call [rbp+var_38] test eax, eax jle loc_C4069 mov rcx, [rbp+var_30] cmp rcx, 39h ; '9' ja loc_C4346 add cl, 0D0h cmp cl, 9 mov rsi, [rbp+var_40] ja loc_C434A mov eax, eax add rbx, rax lea r8, [rbx+r13] lea rax, [rsi+rsi*4] movzx ecx, cl lea rsi, [rcx+rax*2] cmp r8, [rbp+var_80] jnz short loc_C41F2 cmp [rbp+var_80], r15 jz loc_C4388 mov [rbp+var_40], rsi lea rsi, [rbp+var_30] mov rdi, r12 mov rbx, r8 mov rdx, r8 mov rcx, r15 call [rbp+var_38] test eax, eax jle loc_C4069 mov r13, [rbp+var_30] add r13, 0FFFFFFFFFFFFFFD0h cmp r13, 9 mov rsi, [rbp+var_40] mov r8, rbx ja loc_C438E mov eax, eax add r8, rax cmp r8, r15 jz loc_C43B3 lea rsi, [rbp+var_30] mov rdi, r12 mov rbx, r8 mov rdx, r8 mov rcx, r15 call [rbp+var_38] test eax, eax jle loc_C4069 mov rcx, [rbp+var_30] cmp rcx, 39h ; '9' mov rsi, [rbp+var_40] mov r8, rbx ja loc_C43B3 add cl, 0D0h cmp cl, 9 ja loc_C43B3 mov rbx, rcx mov eax, eax add r8, rax mov rax, [rbp+var_48] mov [rax], r8 cmp r8, r15 jz loc_C4418 mov rdx, r8 lea rsi, [rbp+var_30] mov rdi, r12 mov rcx, r15 call [rbp+var_38] test eax, eax jle loc_C4418 mov eax, 0D0h add eax, dword ptr [rbp+var_30] and eax, 0FEh cmp eax, 0Ah mov rdx, [rbp+var_50] jnb loc_C441C jmp loc_C43F0 loc_C4329: mov r15, r13 loc_C432C: mov rax, rbx neg rax cmp r14, 2Dh ; '-' mov rcx, [rbp+var_48] mov [rcx], r15 cmovnz rax, rbx jmp loc_C4080 loc_C4346: mov rsi, [rbp+var_40] loc_C434A: mov r15, [rbp+var_88] loc_C4351: mov rax, r15 sub rax, r13 and rax, 0FFFFFFFFFFFFFFFEh lea rcx, lfactor mov rdx, [rbp+var_50] imul rdx, [rcx+rax*4] add rdx, rsi mov rax, rdx neg rax cmp r14, 2Dh ; '-' mov rcx, [rbp+var_48] mov [rcx], r15 cmovnz rax, rdx jmp loc_C4080 loc_C4388: cmp rbx, 12h jnz short loc_C4351 loc_C438E: imul rax, [rbp+var_50], 3B9ACA00h add rsi, rax mov rax, rsi neg rax cmp r14, 2Dh ; '-' mov rcx, [rbp+var_48] mov [rcx], r8 cmovnz rax, rsi jmp loc_C4080 loc_C43B3: mov rax, 2540BE400h mov rcx, [rbp+var_50] imul rcx, rax lea rax, [rsi+rsi*4] lea rax, [rcx+rax*2] add rax, r13 mov rcx, [rbp+var_48] mov [rcx], r8 cmp r14, 2Dh ; '-' jnz loc_C4080 mov rcx, 8000000000000000h cmp rax, rcx jbe short loc_C4410 loc_C43F0: xor eax, eax cmp r14, 2Dh ; '-' setnz al mov rcx, [rbp+var_60] mov dword ptr [rcx], 22h ; '"' neg rax bts rax, 3Fh ; '?' jmp loc_C4080 loc_C4410: neg rax jmp loc_C4080 loc_C4418: mov rdx, [rbp+var_50] loc_C441C: cmp rdx, [rbp+var_58] ja short loc_C43F0 lea rax, ds:0[r13*4] add rax, r13 movzx ecx, bl lea rax, [rcx+rax*2] cmp rdx, [rbp+var_58] jnz short loc_C444A mov rcx, [rbp+var_40] cmp rcx, [rbp+var_78] jb short loc_C444A cmp rax, [rbp+var_70] ja short loc_C43F0 loc_C444A: mov rcx, 174876E800h imul rdx, rcx imul rcx, [rbp+var_40], 64h ; 'd' add rdx, rax add rdx, rcx mov rax, rdx jmp loc_C4080
unsigned long long my_strtoll10_mb2(long long a1, long long a2, unsigned long long *a3, _DWORD *a4) { long long v4; // r12 unsigned long long v5; // r15 int v6; // eax unsigned long long v7; // r13 long long v8; // r14 unsigned long long result; // rax int v10; // eax int v11; // eax int v12; // eax long long v13; // rbx unsigned long long i; // rdx int v15; // eax unsigned long long v16; // rax long long v17; // rbx long long v18; // rsi int v19; // eax unsigned long long v20; // r8 unsigned long long v21; // rbx int v22; // eax long long v23; // r13 unsigned long long v24; // r8 unsigned long long v25; // rbx int v26; // eax unsigned __int8 v27; // bl unsigned long long v28; // r8 unsigned long long v29; // rdx long long v30; // rdx long long v31; // rsi unsigned long long v32; // rax unsigned long long v33; // [rsp+10h] [rbp-80h] unsigned long long v34; // [rsp+18h] [rbp-78h] unsigned long long v35; // [rsp+20h] [rbp-70h] unsigned long long v38; // [rsp+38h] [rbp-58h] long long v39; // [rsp+40h] [rbp-50h] long long v41; // [rsp+50h] [rbp-40h] unsigned long long v42; // [rsp+50h] [rbp-40h] long long ( *v43)(long long, _QWORD *, long long, unsigned long long); // [rsp+58h] [rbp-38h] _QWORD v44[6]; // [rsp+60h] [rbp-30h] BYREF if ( !a3 ) goto LABEL_7; v4 = a1; v5 = a2 + ((*a3 - a2 + ((*a3 - a2) >> 63)) & 0xFFFFFFFFFFFFFFFELL); v43 = *(long long ( **)(long long, _QWORD *, long long, unsigned long long))(*(_QWORD *)(a1 + 184) + 40LL); v6 = v43(a1, v44, a2, v5); if ( v6 <= 0 ) goto LABEL_7; v7 = a2; while ( 1 ) { v7 += (unsigned int)v6; v8 = v44[0]; if ( v44[0] != 32LL && v44[0] != 9LL ) break; v6 = v43(a1, v44, v7, v5); if ( v6 <= 0 ) goto LABEL_7; } if ( v44[0] == 45LL ) { *a4 = -1; v10 = v43(a1, v44, v7, v5); if ( v10 <= 0 ) goto LABEL_7; v7 += (unsigned int)v10; v35 = 8LL; v34 = 368547758LL; v38 = 92233720LL; } else { *a4 = 0; v35 = 15LL; v34 = 737095516LL; v38 = 184467440LL; if ( v8 == 43 ) { v11 = v43(a1, v44, v7, v5); if ( v11 <= 0 ) goto LABEL_7; v7 += (unsigned int)v11; } } if ( v44[0] == 48LL ) { if ( v7 == v5 ) { LABEL_20: v13 = 0LL; goto LABEL_49; } while ( 1 ) { v12 = v43(a1, v44, v7, v5); if ( v12 <= 0 ) goto LABEL_7; if ( v44[0] != 48LL ) break; v7 += (unsigned int)v12; if ( v7 == v5 ) goto LABEL_20; } v13 = 0LL; goto LABEL_24; } if ( (unsigned long long)(v44[0] - 48LL) > 9 ) { LABEL_7: *a4 = 33; *a3 = a2; return 0LL; } v13 = v44[0] - 48LL; LABEL_24: for ( i = v7; ; i = v7 ) { v15 = ((long long ( *)(long long, _QWORD *, unsigned long long))v43)(a1, v44, i); if ( v15 <= 0 ) break; if ( v44[0] > 0x39uLL || (unsigned __int8)(LOBYTE(v44[0]) - 48) > 9u ) { v5 = v7; LABEL_49: result = -v13; *a3 = v5; if ( v8 != 45 ) return v13; return result; } v13 = (unsigned __int8)(LOBYTE(v44[0]) - 48) + 10 * v13; v7 += (unsigned int)v15; a1 = v4; } if ( v7 == v5 ) goto LABEL_49; v39 = v13; v16 = v7 + 18; if ( v7 + 18 > v5 ) v16 = v5; v33 = v16; v17 = 0LL; v18 = 0LL; do { v41 = v18; v19 = v43(v4, v44, v17 + v7, v5); if ( v19 <= 0 ) goto LABEL_7; if ( v44[0] > 0x39uLL || (unsigned __int8)(LOBYTE(v44[0]) - 48) > 9u ) { v5 = v17 + v7; goto LABEL_53; } v17 += (unsigned int)v19; v20 = v17 + v7; v18 = (unsigned __int8)(LOBYTE(v44[0]) - 48) + 10 * v18; } while ( v17 + v7 != v33 ); if ( v33 == v5 ) { if ( v17 == 18 ) { LABEL_57: v31 = 1000000000 * v39 + v18; result = -v31; *a3 = v20; if ( v8 != 45 ) return v31; return result; } LABEL_53: v30 = v18 + *(_QWORD *)((char *)&lfactor + 4 * ((v5 - v7) & 0xFFFFFFFFFFFFFFFELL)) * v39; result = -v30; *a3 = v5; if ( v8 != 45 ) return v30; return result; } v42 = (unsigned __int8)(LOBYTE(v44[0]) - 48) + 10 * v41; v21 = v17 + v7; v22 = v43(v4, v44, v20, v5); if ( v22 <= 0 ) goto LABEL_7; v23 = v44[0] - 48LL; v20 = v21; if ( (unsigned long long)(v44[0] - 48LL) > 9 ) goto LABEL_57; v24 = (unsigned int)v22 + v21; if ( v24 == v5 ) goto LABEL_60; v25 = (unsigned int)v22 + v21; v26 = v43(v4, v44, v24, v5); if ( v26 <= 0 ) goto LABEL_7; v24 = v25; if ( v44[0] > 0x39uLL || (unsigned __int8)(LOBYTE(v44[0]) - 48) > 9u ) { LABEL_60: result = v23 + 10000000000LL * v39 + 10 * v18; *a3 = v24; if ( v8 != 45 ) return result; if ( result > 0x8000000000000000LL ) goto LABEL_62; return -(long long)result; } else { v27 = LOBYTE(v44[0]) - 48; v28 = (unsigned int)v26 + v24; *a3 = v28; if ( v28 == v5 || (int)v43(v4, v44, v28, v5) <= 0 ) { v29 = v39; } else { v29 = v39; if ( ((LOBYTE(v44[0]) - 48) & 0xFEu) < 0xA ) { LABEL_62: *a4 = 34; return -(long long)(v8 != 45) | 0x8000000000000000LL; } } if ( v29 > v38 ) goto LABEL_62; v32 = v27 + 10 * v23; if ( v29 == v38 && v42 >= v34 && v32 > v35 ) goto LABEL_62; return 100 * v42 + v32 + 100000000000LL * v29; } }
my_strtoll10_mb2: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x68 MOV qword ptr [RBP + -0x60],RCX MOV qword ptr [RBP + -0x68],RSI MOV qword ptr [RBP + -0x48],RDX TEST RDX,RDX JZ 0x001c4069 MOV R12,RDI MOV RAX,qword ptr [RDI + 0xb8] MOV R8,qword ptr [RAX + 0x28] MOV RAX,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RAX] MOV RDX,qword ptr [RBP + -0x68] SUB RAX,RDX MOV R15,RAX SHR R15,0x3f ADD R15,RAX AND R15,-0x2 ADD R15,RDX LEA RSI,[RBP + -0x30] MOV RCX,R15 MOV qword ptr [RBP + -0x38],R8 CALL R8 TEST EAX,EAX JLE 0x001c4069 LEA RBX,[RBP + -0x30] MOV R13,qword ptr [RBP + -0x68] LAB_001c403d: MOV RCX,R13 MOV R13D,EAX ADD R13,RCX MOV R14,qword ptr [RBP + -0x30] CMP R14,0x20 JZ 0x001c4056 CMP R14,0x9 JNZ 0x001c408f LAB_001c4056: MOV RDI,R12 MOV RSI,RBX MOV RDX,R13 MOV RCX,R15 CALL qword ptr [RBP + -0x38] TEST EAX,EAX JG 0x001c403d LAB_001c4069: MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX],0x21 MOV RAX,qword ptr [RBP + -0x48] MOV RCX,qword ptr [RBP + -0x68] MOV qword ptr [RAX],RCX XOR EAX,EAX LAB_001c4080: ADD RSP,0x68 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001c408f: CMP R14,0x2d JNZ 0x001c40d5 MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX],0xffffffff LEA RSI,[RBP + -0x30] MOV RDI,R12 MOV RDX,R13 MOV RCX,R15 CALL qword ptr [RBP + -0x38] TEST EAX,EAX JLE 0x001c4069 MOV EAX,EAX ADD R13,RAX MOV EAX,0x8 MOV qword ptr [RBP + -0x70],RAX MOV EAX,0x15f797ae MOV qword ptr [RBP + -0x78],RAX MOV EAX,0x57f5ff8 MOV qword ptr [RBP + -0x58],RAX JMP 0x001c411d LAB_001c40d5: MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX],0x0 MOV EAX,0xf MOV qword ptr [RBP + -0x70],RAX MOV EAX,0x2bef2f5c MOV qword ptr [RBP + -0x78],RAX MOV EAX,0xafebff0 MOV qword ptr [RBP + -0x58],RAX CMP R14,0x2b JNZ 0x001c411d LEA RSI,[RBP + -0x30] MOV RDI,R12 MOV RDX,R13 MOV RCX,R15 CALL qword ptr [RBP + -0x38] TEST EAX,EAX JLE 0x001c4069 MOV EAX,EAX ADD R13,RAX LAB_001c411d: MOV RAX,qword ptr [RBP + -0x30] CMP RAX,0x30 JNZ 0x001c415f CMP R13,R15 JZ 0x001c4158 LEA RBX,[RBP + -0x30] LAB_001c4130: MOV RDI,R12 MOV RSI,RBX MOV RDX,R13 MOV RCX,R15 CALL qword ptr [RBP + -0x38] TEST EAX,EAX JLE 0x001c4069 CMP qword ptr [RBP + -0x30],0x30 JNZ 0x001c4176 MOV EAX,EAX ADD R13,RAX CMP R13,R15 JNZ 0x001c4130 LAB_001c4158: XOR EBX,EBX JMP 0x001c432c LAB_001c415f: ADD RAX,-0x30 CMP RAX,0x9 JA 0x001c4069 MOV RBX,RAX LEA RCX,[R13 + 0x10] JMP 0x001c417c LAB_001c4176: LEA RCX,[R13 + 0x12] XOR EBX,EBX LAB_001c417c: CMP RCX,R15 CMOVA RCX,R15 LEA RSI,[RBP + -0x30] MOV RDI,R12 MOV RDX,R13 MOV qword ptr [RBP + -0x40],RCX LAB_001c4191: CALL qword ptr [RBP + -0x38] TEST EAX,EAX JLE 0x001c41d2 MOV RCX,qword ptr [RBP + -0x30] CMP RCX,0x39 JA 0x001c4329 ADD CL,0xd0 CMP CL,0x9 JA 0x001c4329 LEA RDX,[RBX + RBX*0x4] MOVZX ECX,CL LEA RBX,[RCX + RDX*0x2] MOV EAX,EAX ADD R13,RAX MOV RDI,R12 LEA RSI,[RBP + -0x30] MOV RDX,R13 MOV RCX,qword ptr [RBP + -0x40] JMP 0x001c4191 LAB_001c41d2: CMP R13,R15 JZ 0x001c432c MOV qword ptr [RBP + -0x50],RBX LEA RAX,[R13 + 0x12] CMP RAX,R15 CMOVA RAX,R15 MOV qword ptr [RBP + -0x80],RAX XOR EBX,EBX XOR ESI,ESI LAB_001c41f2: MOV qword ptr [RBP + -0x40],RSI LEA RDX,[RBX + R13*0x1] MOV RDI,R12 LEA RSI,[RBP + -0x30] MOV qword ptr [RBP + -0x88],RDX MOV RCX,R15 CALL qword ptr [RBP + -0x38] TEST EAX,EAX JLE 0x001c4069 MOV RCX,qword ptr [RBP + -0x30] CMP RCX,0x39 JA 0x001c4346 ADD CL,0xd0 CMP CL,0x9 MOV RSI,qword ptr [RBP + -0x40] JA 0x001c434a MOV EAX,EAX ADD RBX,RAX LEA R8,[RBX + R13*0x1] LEA RAX,[RSI + RSI*0x4] MOVZX ECX,CL LEA RSI,[RCX + RAX*0x2] CMP R8,qword ptr [RBP + -0x80] JNZ 0x001c41f2 CMP qword ptr [RBP + -0x80],R15 JZ 0x001c4388 MOV qword ptr [RBP + -0x40],RSI LEA RSI,[RBP + -0x30] MOV RDI,R12 MOV RBX,R8 MOV RDX,R8 MOV RCX,R15 CALL qword ptr [RBP + -0x38] TEST EAX,EAX JLE 0x001c4069 MOV R13,qword ptr [RBP + -0x30] ADD R13,-0x30 CMP R13,0x9 MOV RSI,qword ptr [RBP + -0x40] MOV R8,RBX JA 0x001c438e MOV EAX,EAX ADD R8,RAX CMP R8,R15 JZ 0x001c43b3 LEA RSI,[RBP + -0x30] MOV RDI,R12 MOV RBX,R8 MOV RDX,R8 MOV RCX,R15 CALL qword ptr [RBP + -0x38] TEST EAX,EAX JLE 0x001c4069 MOV RCX,qword ptr [RBP + -0x30] CMP RCX,0x39 MOV RSI,qword ptr [RBP + -0x40] MOV R8,RBX JA 0x001c43b3 ADD CL,0xd0 CMP CL,0x9 JA 0x001c43b3 MOV RBX,RCX MOV EAX,EAX ADD R8,RAX MOV RAX,qword ptr [RBP + -0x48] MOV qword ptr [RAX],R8 CMP R8,R15 JZ 0x001c4418 MOV RDX,R8 LEA RSI,[RBP + -0x30] MOV RDI,R12 MOV RCX,R15 CALL qword ptr [RBP + -0x38] TEST EAX,EAX JLE 0x001c4418 MOV EAX,0xd0 ADD EAX,dword ptr [RBP + -0x30] AND EAX,0xfe CMP EAX,0xa MOV RDX,qword ptr [RBP + -0x50] JNC 0x001c441c JMP 0x001c43f0 LAB_001c4329: MOV R15,R13 LAB_001c432c: MOV RAX,RBX NEG RAX CMP R14,0x2d MOV RCX,qword ptr [RBP + -0x48] MOV qword ptr [RCX],R15 CMOVNZ RAX,RBX JMP 0x001c4080 LAB_001c4346: MOV RSI,qword ptr [RBP + -0x40] LAB_001c434a: MOV R15,qword ptr [RBP + -0x88] LAB_001c4351: MOV RAX,R15 SUB RAX,R13 AND RAX,-0x2 LEA RCX,[0x3d6630] MOV RDX,qword ptr [RBP + -0x50] IMUL RDX,qword ptr [RCX + RAX*0x4] ADD RDX,RSI MOV RAX,RDX NEG RAX CMP R14,0x2d MOV RCX,qword ptr [RBP + -0x48] MOV qword ptr [RCX],R15 CMOVNZ RAX,RDX JMP 0x001c4080 LAB_001c4388: CMP RBX,0x12 JNZ 0x001c4351 LAB_001c438e: IMUL RAX,qword ptr [RBP + -0x50],0x3b9aca00 ADD RSI,RAX MOV RAX,RSI NEG RAX CMP R14,0x2d MOV RCX,qword ptr [RBP + -0x48] MOV qword ptr [RCX],R8 CMOVNZ RAX,RSI JMP 0x001c4080 LAB_001c43b3: MOV RAX,0x2540be400 MOV RCX,qword ptr [RBP + -0x50] IMUL RCX,RAX LEA RAX,[RSI + RSI*0x4] LEA RAX,[RCX + RAX*0x2] ADD RAX,R13 MOV RCX,qword ptr [RBP + -0x48] MOV qword ptr [RCX],R8 CMP R14,0x2d JNZ 0x001c4080 MOV RCX,-0x8000000000000000 CMP RAX,RCX JBE 0x001c4410 LAB_001c43f0: XOR EAX,EAX CMP R14,0x2d SETNZ AL MOV RCX,qword ptr [RBP + -0x60] MOV dword ptr [RCX],0x22 NEG RAX BTS RAX,0x3f JMP 0x001c4080 LAB_001c4410: NEG RAX JMP 0x001c4080 LAB_001c4418: MOV RDX,qword ptr [RBP + -0x50] LAB_001c441c: CMP RDX,qword ptr [RBP + -0x58] JA 0x001c43f0 LEA RAX,[R13*0x4] ADD RAX,R13 MOVZX ECX,BL LEA RAX,[RCX + RAX*0x2] CMP RDX,qword ptr [RBP + -0x58] JNZ 0x001c444a MOV RCX,qword ptr [RBP + -0x40] CMP RCX,qword ptr [RBP + -0x78] JC 0x001c444a CMP RAX,qword ptr [RBP + -0x70] JA 0x001c43f0 LAB_001c444a: MOV RCX,0x174876e800 IMUL RDX,RCX IMUL RCX,qword ptr [RBP + -0x40],0x64 ADD RDX,RAX ADD RDX,RCX MOV RAX,RDX JMP 0x001c4080
ulong my_strtoll10_mb2(long param_1,ulong param_2,ulong *param_3,int4 *param_4) { code *pcVar1; long lVar2; uint uVar3; int iVar4; ulong uVar5; ulong uVar6; byte bVar7; long lVar8; ulong uVar9; ulong uVar10; ulong uVar11; ulong uVar12; ulong uVar13; ulong local_80; ulong local_78; ulong local_60; int local_38; int4 uStack_34; if (param_3 != (ulong *)0x0) { pcVar1 = *(code **)(*(long *)(param_1 + 0xb8) + 0x28); uVar12 = ((*param_3 - param_2) - ((long)(*param_3 - param_2) >> 0x3f) & 0xfffffffffffffffe) + param_2; uVar3 = (*pcVar1)(param_1,&local_38,param_2,uVar12); if (0 < (int)uVar3) { uVar11 = param_2; do { uVar11 = uVar3 + uVar11; lVar2 = CONCAT44(uStack_34,local_38); if ((lVar2 != 0x20) && (lVar2 != 9)) { if (lVar2 == 0x2d) { *param_4 = 0xffffffff; uVar3 = (*pcVar1)(param_1,&local_38,uVar11,uVar12); if ((int)uVar3 < 1) break; uVar11 = uVar11 + uVar3; local_78 = 8; local_80 = 0x15f797ae; local_60 = 0x57f5ff8; } else { *param_4 = 0; local_78 = 0xf; local_80 = 0x2bef2f5c; local_60 = 0xafebff0; if (lVar2 == 0x2b) { uVar3 = (*pcVar1)(param_1,&local_38,uVar11,uVar12); if ((int)uVar3 < 1) break; uVar11 = uVar11 + uVar3; } } if (CONCAT44(uStack_34,local_38) == 0x30) { if (uVar11 == uVar12) goto LAB_001c4158; goto LAB_001c4130; } uVar5 = CONCAT44(uStack_34,local_38) - 0x30; if (uVar5 < 10) { uVar9 = uVar11 + 0x10; goto LAB_001c417c; } break; } uVar3 = (*pcVar1)(param_1,&local_38,uVar11,uVar12); } while (0 < (int)uVar3); } } LAB_001c4069: *param_4 = 0x21; *param_3 = param_2; return 0; LAB_001c4130: uVar3 = (*pcVar1)(param_1,&local_38,uVar11,uVar12); if ((int)uVar3 < 1) goto LAB_001c4069; if (CONCAT44(uStack_34,local_38) != 0x30) { uVar9 = uVar11 + 0x12; uVar5 = 0; LAB_001c417c: if (uVar12 < uVar9) { uVar9 = uVar12; } while (uVar3 = (*pcVar1)(param_1,&local_38,uVar11,uVar9), 0 < (int)uVar3) { uVar6 = uVar11; if ((0x39 < CONCAT44(uStack_34,local_38)) || (bVar7 = (char)local_38 - 0x30, 9 < bVar7)) goto LAB_001c432c; uVar5 = (ulong)bVar7 + uVar5 * 10; uVar11 = uVar11 + uVar3; } uVar6 = uVar12; if (uVar11 == uVar12) goto LAB_001c432c; uVar6 = uVar11 + 0x12; if (uVar12 < uVar11 + 0x12) { uVar6 = uVar12; } lVar8 = 0; uVar9 = 0; while( true ) { uVar13 = lVar8 + uVar11; uVar3 = (*pcVar1)(param_1,&local_38,uVar13,uVar12); if ((int)uVar3 < 1) break; if ((0x39 < CONCAT44(uStack_34,local_38)) || (bVar7 = (char)local_38 - 0x30, 9 < bVar7)) { LAB_001c4351: uVar9 = uVar5 * *(long *)((long)&lfactor + (uVar13 - uVar11 & 0xfffffffffffffffe) * 4) + uVar9; *param_3 = uVar13; if (lVar2 == 0x2d) { return -uVar9; } return uVar9; } lVar8 = lVar8 + (ulong)uVar3; uVar10 = lVar8 + uVar11; uVar9 = (ulong)bVar7 + uVar9 * 10; if (uVar10 == uVar6) { if (uVar6 == uVar12) { uVar13 = uVar12; if (lVar8 == 0x12) { LAB_001c438e: uVar9 = uVar9 + uVar5 * 1000000000; *param_3 = uVar10; if (lVar2 == 0x2d) { return -uVar9; } return uVar9; } goto LAB_001c4351; } uVar3 = (*pcVar1)(param_1,&local_38,uVar10,uVar12); if ((int)uVar3 < 1) break; uVar11 = CONCAT44(uStack_34,local_38) - 0x30; if (9 < uVar11) goto LAB_001c438e; uVar10 = uVar10 + uVar3; if (uVar10 != uVar12) { uVar3 = (*pcVar1)(param_1,&local_38,uVar10,uVar12); if ((int)uVar3 < 1) break; if ((CONCAT44(uStack_34,local_38) < 0x3a) && (bVar7 = (char)local_38 - 0x30, bVar7 < 10)) { uVar10 = uVar10 + uVar3; *param_3 = uVar10; if ((((uVar10 == uVar12) || (iVar4 = (*pcVar1)(param_1,&local_38,uVar10,uVar12), iVar4 < 1)) || (9 < (local_38 + 0xd0U & 0xfe))) && ((uVar5 <= local_60 && (((uVar12 = (ulong)bVar7 + uVar11 * 10, uVar5 != local_60 || (uVar9 < local_80)) || (uVar12 <= local_78)))))) { return uVar5 * 100000000000 + uVar12 + uVar9 * 100; } goto LAB_001c43f0; } } uVar11 = uVar5 * 10000000000 + uVar9 * 10 + uVar11; *param_3 = uVar10; if (lVar2 != 0x2d) { return uVar11; } if (uVar11 < 0x8000000000000001) { return -uVar11; } LAB_001c43f0: *param_4 = 0x22; return -(ulong)(lVar2 != 0x2d) | 0x8000000000000000; } } goto LAB_001c4069; } uVar11 = uVar11 + uVar3; if (uVar11 == uVar12) { LAB_001c4158: uVar5 = 0; uVar6 = uVar12; LAB_001c432c: *param_3 = uVar6; if (lVar2 == 0x2d) { return -uVar5; } return uVar5; } goto LAB_001c4130; }
27,669
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::scan_number()
llama.cpp/common/json.hpp
token_type scan_number() // lgtm [cpp/use-of-goto] { // reset token_buffer to store the number's bytes reset(); // the type of the parsed number; initially set to unsigned; will be // changed if minus sign, decimal point or exponent is read token_type number_type = token_type::value_unsigned; // state (init): we just found out we need to scan a number switch (current) { case '-': { add(current); goto scan_number_minus; } case '0': { add(current); goto scan_number_zero; } case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { add(current); goto scan_number_any1; } // all other characters are rejected outside scan_number() default: // LCOV_EXCL_LINE JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE } scan_number_minus: // state: we just parsed a leading minus sign number_type = token_type::value_integer; switch (get()) { case '0': { add(current); goto scan_number_zero; } case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { add(current); goto scan_number_any1; } default: { error_message = "invalid number; expected digit after '-'"; return token_type::parse_error; } } scan_number_zero: // state: we just parse a zero (maybe with a leading minus sign) switch (get()) { case '.': { add(decimal_point_char); goto scan_number_decimal1; } case 'e': case 'E': { add(current); goto scan_number_exponent; } default: goto scan_number_done; } scan_number_any1: // state: we just parsed a number 0-9 (maybe with a leading minus sign) switch (get()) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { add(current); goto scan_number_any1; } case '.': { add(decimal_point_char); goto scan_number_decimal1; } case 'e': case 'E': { add(current); goto scan_number_exponent; } default: goto scan_number_done; } scan_number_decimal1: // state: we just parsed a decimal point number_type = token_type::value_float; switch (get()) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { add(current); goto scan_number_decimal2; } default: { error_message = "invalid number; expected digit after '.'"; return token_type::parse_error; } } scan_number_decimal2: // we just parsed at least one number after a decimal point switch (get()) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { add(current); goto scan_number_decimal2; } case 'e': case 'E': { add(current); goto scan_number_exponent; } default: goto scan_number_done; } scan_number_exponent: // we just parsed an exponent number_type = token_type::value_float; switch (get()) { case '+': case '-': { add(current); goto scan_number_sign; } case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { add(current); goto scan_number_any2; } default: { error_message = "invalid number; expected '+', '-', or digit after exponent"; return token_type::parse_error; } } scan_number_sign: // we just parsed an exponent sign switch (get()) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { add(current); goto scan_number_any2; } default: { error_message = "invalid number; expected digit after exponent sign"; return token_type::parse_error; } } scan_number_any2: // we just parsed a number after the exponent or exponent sign switch (get()) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { add(current); goto scan_number_any2; } default: goto scan_number_done; } scan_number_done: // unget the character after the number (we only read it to know that // we are done scanning a number) unget(); char* endptr = nullptr; // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg) errno = 0; // try to parse integers first and fall back to floats if (number_type == token_type::value_unsigned) { const auto x = std::strtoull(token_buffer.data(), &endptr, 10); // we checked the number format before JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size()); if (errno == 0) { value_unsigned = static_cast<number_unsigned_t>(x); if (value_unsigned == x) { return token_type::value_unsigned; } } } else if (number_type == token_type::value_integer) { const auto x = std::strtoll(token_buffer.data(), &endptr, 10); // we checked the number format before JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size()); if (errno == 0) { value_integer = static_cast<number_integer_t>(x); if (value_integer == x) { return token_type::value_integer; } } } // this code is reached if we parse a floating-point number or if an // integer conversion above failed strtof(value_float, token_buffer.data(), &endptr); // we checked the number format before JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size()); return token_type::value_float; }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::scan_number(): pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx callq 0x85564 movl 0x14(%rbx), %eax leal -0x31(%rax), %ecx cmpl $0x9, %ecx jae 0x852de leaq 0x50(%rbx), %r14 movl $0x5, %ebp movsbl %al, %esi movq %r14, %rdi callq 0x22370 leaq 0x50(%rbx), %r14 movq %rbx, %rdi callq 0x225bc leal -0x30(%rax), %ecx cmpl $0xa, %ecx jae 0x851ee movsbl 0x14(%rbx), %esi movq %r14, %rdi callq 0x22370 jmp 0x851d0 cmpl $0x2e, %eax je 0x85350 cmpl $0x45, %eax je 0x853ac cmpl $0x65, %eax je 0x853ac movq %rbx, %rdi callq 0x85500 movq $0x0, (%rsp) callq 0x220e0 movq %rax, %r14 movl $0x0, (%rax) movq 0x50(%rbx), %rdi movq %rsp, %r15 movq %r15, %rsi movl $0xa, %edx cmpl $0x5, %ebp jne 0x85263 callq 0x21dd0 movq 0x50(%rbx), %rcx addq 0x58(%rbx), %rcx cmpq %rcx, (%r15) jne 0x854a6 cmpl $0x0, (%r14) jne 0x8527f movl $0x5, %ecx movl $0x80, %edx jmp 0x852d5 callq 0x21d40 movq 0x50(%rbx), %rcx addq 0x58(%rbx), %rcx cmpq %rcx, (%r15) jne 0x854c2 cmpl $0x0, (%r14) je 0x852cb movq 0x50(%rbx), %rdi movq %rsp, %r14 movq %r14, %rsi callq 0x22430 movsd %xmm0, 0x88(%rbx) movq 0x50(%rbx), %rax addq 0x58(%rbx), %rax movl $0x7, %ecx cmpq %rax, (%r14) je 0x853e6 leaq 0x9625f(%rip), %rdi # 0x11b512 leaq 0x8ee77(%rip), %rdx # 0x114131 leaq 0x97093(%rip), %rcx # 0x11c354 movl $0x21d6, %esi # imm = 0x21D6 jmp 0x854f8 movl $0x6, %ecx movl $0x78, %edx movq %rax, (%rbx,%rdx) jmp 0x853e6 cmpl $0x30, %eax je 0x8531e cmpl $0x2d, %eax jne 0x854de leaq 0x50(%rbx), %r14 movq %r14, %rdi movl $0x2d, %esi callq 0x22370 movq %rbx, %rdi callq 0x225bc leal -0x31(%rax), %ecx cmpl $0x9, %ecx jae 0x8547f movl 0x14(%rbx), %eax movl $0x6, %ebp jmp 0x851c1 leaq 0x50(%rbx), %rdi movl $0x30, %esi callq 0x22370 movl $0x5, %ebp movq %rbx, %rdi callq 0x225bc cmpl $0x65, %eax je 0x853a8 cmpl $0x45, %eax je 0x853a8 cmpl $0x2e, %eax jne 0x85209 leaq 0x50(%rbx), %r14 movsbl 0x90(%rbx), %esi movq %r14, %rdi callq 0x22370 movq %rbx, %rdi callq 0x225bc addl $-0x30, %eax cmpl $0x9, %eax ja 0x8539f leaq 0x50(%rbx), %r14 movsbl 0x14(%rbx), %esi movq %r14, %rdi callq 0x22370 movq %rbx, %rdi callq 0x225bc leal -0x30(%rax), %ecx cmpl $0xa, %ecx jb 0x85373 cmpl $0x65, %eax je 0x853ac cmpl $0x45, %eax jne 0x85433 jmp 0x853ac leaq 0x96f17(%rip), %rax # 0x11c2bd jmp 0x853dd leaq 0x50(%rbx), %r14 movsbl 0x14(%rbx), %esi movq %r14, %rdi callq 0x22370 movq %rbx, %rdi callq 0x225bc leal -0x30(%rax), %ecx cmpl $0xa, %ecx jb 0x853f3 cmpl $0x2d, %eax je 0x85453 cmpl $0x2b, %eax je 0x85453 leaq 0x96f09(%rip), %rax # 0x11c2e6 movq %rax, 0x70(%rbx) movl $0xe, %ecx movl %ecx, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq leaq 0x50(%rbx), %r14 movsbl 0x14(%rbx), %esi movq %r14, %rdi callq 0x22370 movq %rbx, %rdi callq 0x225bc addl $-0x30, %eax cmpl $0x9, %eax ja 0x85433 leaq 0x50(%rbx), %r14 movsbl 0x14(%rbx), %esi movq %r14, %rdi callq 0x22370 movq %rbx, %rdi callq 0x225bc addl $-0x30, %eax cmpl $0xa, %eax jb 0x85417 movq %rbx, %rdi callq 0x85500 movq $0x0, (%rsp) callq 0x220e0 movl $0x0, (%rax) jmp 0x8527f movsbl 0x14(%rbx), %esi leaq 0x50(%rbx), %r14 movq %r14, %rdi callq 0x22370 movq %rbx, %rdi callq 0x225bc addl $-0x30, %eax cmpl $0xa, %eax jb 0x853f7 leaq 0x96ea7(%rip), %rax # 0x11c321 jmp 0x853dd cmpl $0x30, %eax je 0x85490 leaq 0x96e09(%rip), %rax # 0x11c294 jmp 0x853dd movsbl 0x14(%rbx), %esi movq %r14, %rdi callq 0x22370 movl $0x6, %ebp jmp 0x85331 leaq 0x96065(%rip), %rdi # 0x11b512 leaq 0x8ec7d(%rip), %rdx # 0x114131 leaq 0x96e99(%rip), %rcx # 0x11c354 movl $0x21b5, %esi # imm = 0x21B5 jmp 0x854f8 leaq 0x96049(%rip), %rdi # 0x11b512 leaq 0x8ec61(%rip), %rdx # 0x114131 leaq 0x96e7d(%rip), %rcx # 0x11c354 movl $0x21c5, %esi # imm = 0x21C5 jmp 0x854f8 leaq 0x9602d(%rip), %rdi # 0x11b512 leaq 0x8ec45(%rip), %rdx # 0x114131 leaq 0x9297d(%rip), %rcx # 0x117e70 movl $0x20be, %esi # imm = 0x20BE xorl %eax, %eax callq 0x21e60 nop
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE11scan_numberEv: push rbp push r15 push r14 push rbx push rax mov rbx, rdi call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5resetEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::reset(void) mov eax, [rbx+14h] lea ecx, [rax-31h] cmp ecx, 9 jnb loc_852DE lea r14, [rbx+50h] mov ebp, 5 loc_851C1: movsx esi, al mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) lea r14, [rbx+50h] loc_851D0: mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) lea ecx, [rax-30h] cmp ecx, 0Ah jnb short loc_851EE movsx esi, byte ptr [rbx+14h] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) jmp short loc_851D0 loc_851EE: cmp eax, 2Eh ; '.' jz loc_85350 cmp eax, 45h ; 'E' jz loc_853AC cmp eax, 65h ; 'e' jz loc_853AC loc_85209: mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5ungetEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget(void) mov [rsp+28h+var_28], 0 call ___errno_location mov r14, rax mov dword ptr [rax], 0 mov rdi, [rbx+50h] mov r15, rsp mov rsi, r15 mov edx, 0Ah cmp ebp, 5 jnz short loc_85263 call _strtoull mov rcx, [rbx+50h] add rcx, [rbx+58h] cmp [r15], rcx jnz loc_854A6 cmp dword ptr [r14], 0 jnz short loc_8527F mov ecx, 5 mov edx, 80h jmp short loc_852D5 loc_85263: call _strtoll mov rcx, [rbx+50h] add rcx, [rbx+58h] cmp [r15], rcx jnz loc_854C2 cmp dword ptr [r14], 0 jz short loc_852CB loc_8527F: mov rdi, [rbx+50h] mov r14, rsp mov rsi, r14 call _strtod movsd qword ptr [rbx+88h], xmm0 mov rax, [rbx+50h] add rax, [rbx+58h] mov ecx, 7 cmp [r14], rax jz loc_853E6 lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aEndptrTokenBuf; "endptr == token_buffer.data() + token_b"... mov esi, 21D6h jmp loc_854F8 loc_852CB: mov ecx, 6 mov edx, 78h ; 'x' loc_852D5: mov [rbx+rdx], rax jmp loc_853E6 loc_852DE: cmp eax, 30h ; '0' jz short loc_8531E cmp eax, 2Dh ; '-' jnz loc_854DE lea r14, [rbx+50h] mov rdi, r14 mov esi, 2Dh ; '-' call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) lea ecx, [rax-31h] cmp ecx, 9 jnb loc_8547F mov eax, [rbx+14h] mov ebp, 6 jmp loc_851C1 loc_8531E: lea rdi, [rbx+50h] mov esi, 30h ; '0' call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov ebp, 5 loc_85331: mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) cmp eax, 65h ; 'e' jz short loc_853A8 cmp eax, 45h ; 'E' jz short loc_853A8 cmp eax, 2Eh ; '.' jnz loc_85209 lea r14, [rbx+50h] loc_85350: movsx esi, byte ptr [rbx+90h] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) add eax, 0FFFFFFD0h cmp eax, 9 ja short loc_8539F lea r14, [rbx+50h] loc_85373: movsx esi, byte ptr [rbx+14h] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) lea ecx, [rax-30h] cmp ecx, 0Ah jb short loc_85373 cmp eax, 65h ; 'e' jz short loc_853AC cmp eax, 45h ; 'E' jnz loc_85433 jmp short loc_853AC loc_8539F: lea rax, aInvalidNumberE; "invalid number; expected digit after '."... jmp short loc_853DD loc_853A8: lea r14, [rbx+50h] loc_853AC: movsx esi, byte ptr [rbx+14h] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) lea ecx, [rax-30h] cmp ecx, 0Ah jb short loc_853F3 cmp eax, 2Dh ; '-' jz loc_85453 cmp eax, 2Bh ; '+' jz short loc_85453 lea rax, aInvalidNumberE_0; "invalid number; expected '+', '-', or d"... loc_853DD: mov [rbx+70h], rax mov ecx, 0Eh loc_853E6: mov eax, ecx add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn loc_853F3: lea r14, [rbx+50h] loc_853F7: movsx esi, byte ptr [rbx+14h] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) add eax, 0FFFFFFD0h cmp eax, 9 ja short loc_85433 lea r14, [rbx+50h] loc_85417: movsx esi, byte ptr [rbx+14h] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) add eax, 0FFFFFFD0h cmp eax, 0Ah jb short loc_85417 loc_85433: mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5ungetEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget(void) mov [rsp+28h+var_28], 0 call ___errno_location mov dword ptr [rax], 0 jmp loc_8527F loc_85453: movsx esi, byte ptr [rbx+14h] lea r14, [rbx+50h] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) add eax, 0FFFFFFD0h cmp eax, 0Ah jb short loc_853F7 lea rax, aInvalidNumberE_1; "invalid number; expected digit after ex"... jmp loc_853DD loc_8547F: cmp eax, 30h ; '0' jz short loc_85490 lea rax, aInvalidNumberE_2; "invalid number; expected digit after '-"... jmp loc_853DD loc_85490: movsx esi, byte ptr [rbx+14h] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov ebp, 6 jmp loc_85331 loc_854A6: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aEndptrTokenBuf; "endptr == token_buffer.data() + token_b"... mov esi, 21B5h jmp short loc_854F8 loc_854C2: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aEndptrTokenBuf; "endptr == token_buffer.data() + token_b"... mov esi, 21C5h jmp short loc_854F8 loc_854DE: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aAdvancedOption+0ABh; "false" mov esi, 20BEh loc_854F8: xor eax, eax call _ggml_abort nop
long long nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_number( long long a1) { long long v1; // rax int v3; // eax long long v4; // r14 int v5; // ebp long long v6; // r14 int v7; // eax _DWORD *v8; // r14 long long v9; // rdi long long v10; // rax unsigned int v11; // ecx long long v12; // rdx int v13; // eax int v14; // eax int v15; // eax const char *v16; // rax int v17; // eax long long v19; // r14 _QWORD v20[5]; // [rsp+0h] [rbp-28h] BYREF v20[0] = v1; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::reset(a1); v3 = *(_DWORD *)(a1 + 20); if ( (unsigned int)(v3 - 49) >= 9 ) { if ( v3 == 48 ) { std::string::push_back(a1 + 80, 48LL); v5 = 5; } else { if ( v3 != 45 ) { ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/common/json.hpp", 8382LL, "GGML_ASSERT(%s) failed", "false"); return nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp"); } v4 = a1 + 80; std::string::push_back(a1 + 80, 45LL); v13 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get((__m128i *)a1); if ( (unsigned int)(v13 - 49) < 9 ) { v3 = *(_DWORD *)(a1 + 20); v5 = 6; goto LABEL_3; } if ( v13 != 48 ) { v16 = "invalid number; expected digit after '-'"; goto LABEL_40; } std::string::push_back(a1 + 80, (unsigned int)*(char *)(a1 + 20)); v5 = 6; } v14 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get((__m128i *)a1); if ( v14 == 101 || v14 == 69 ) { v6 = a1 + 80; goto LABEL_36; } if ( v14 != 46 ) goto LABEL_9; v6 = a1 + 80; LABEL_28: std::string::push_back(v6, (unsigned int)*(char *)(a1 + 144)); if ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get((__m128i *)a1) - 48 > 9 ) { v16 = "invalid number; expected digit after '.'"; LABEL_40: *(_QWORD *)(a1 + 112) = v16; return 14; } v6 = a1 + 80; do { std::string::push_back(a1 + 80, (unsigned int)*(char *)(a1 + 20)); v15 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get((__m128i *)a1); } while ( (unsigned int)(v15 - 48) < 0xA ); if ( v15 != 101 && v15 != 69 ) { LABEL_45: nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget(a1); v20[0] = 0LL; *(_DWORD *)__errno_location(a1) = 0; goto LABEL_15; } LABEL_36: std::string::push_back(v6, (unsigned int)*(char *)(a1 + 20)); v17 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get((__m128i *)a1); if ( (unsigned int)(v17 - 48) < 0xA ) { v19 = a1 + 80; } else { if ( v17 != 45 && v17 != 43 ) { v16 = "invalid number; expected '+', '-', or digit after exponent"; goto LABEL_40; } v19 = a1 + 80; std::string::push_back(a1 + 80, (unsigned int)*(char *)(a1 + 20)); if ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get((__m128i *)a1) - 48 >= 0xA ) { v16 = "invalid number; expected digit after exponent sign"; goto LABEL_40; } } std::string::push_back(v19, (unsigned int)*(char *)(a1 + 20)); if ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get((__m128i *)a1) - 48 <= 9 ) { do std::string::push_back(a1 + 80, (unsigned int)*(char *)(a1 + 20)); while ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get((__m128i *)a1) - 48 < 0xA ); } goto LABEL_45; } v4 = a1 + 80; v5 = 5; LABEL_3: std::string::push_back(v4, (unsigned int)(char)v3); v6 = a1 + 80; while ( 1 ) { v7 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get((__m128i *)a1); if ( (unsigned int)(v7 - 48) >= 0xA ) break; std::string::push_back(a1 + 80, (unsigned int)*(char *)(a1 + 20)); } if ( v7 == 46 ) goto LABEL_28; if ( v7 == 69 || v7 == 101 ) goto LABEL_36; LABEL_9: nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget(a1); v20[0] = 0LL; v8 = (_DWORD *)__errno_location(a1); *v8 = 0; v9 = *(_QWORD *)(a1 + 80); if ( v5 == 5 ) { v10 = strtoull(v9, v20, 10LL); if ( v20[0] != *(_QWORD *)(a1 + 88) + *(_QWORD *)(a1 + 80) ) { ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/common/json.hpp", 8629LL, "GGML_ASSERT(%s) failed", "endptr == token_buffer.data() + token_buffer.size()"); return nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp"); } if ( !*v8 ) { v11 = 5; v12 = 128LL; LABEL_18: *(_QWORD *)(a1 + v12) = v10; return v11; } } else { v10 = strtoll(v9, v20, 10LL); if ( v20[0] != *(_QWORD *)(a1 + 88) + *(_QWORD *)(a1 + 80) ) { ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/common/json.hpp", 8645LL, "GGML_ASSERT(%s) failed", "endptr == token_buffer.data() + token_buffer.size()"); return nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp"); } if ( !*v8 ) { v11 = 6; v12 = 120LL; goto LABEL_18; } } LABEL_15: *(double *)(a1 + 136) = strtod(*(_QWORD *)(a1 + 80), v20); v11 = 7; if ( v20[0] == *(_QWORD *)(a1 + 88) + *(_QWORD *)(a1 + 80) ) return v11; ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/common/json.hpp", 8662LL, "GGML_ASSERT(%s) failed", "endptr == token_buffer.data() + token_buffer.size()"); return nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp"); }
scan_number: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI CALL 0x00185564 MOV EAX,dword ptr [RBX + 0x14] LEA ECX,[RAX + -0x31] CMP ECX,0x9 JNC 0x001852de LEA R14,[RBX + 0x50] MOV EBP,0x5 LAB_001851c1: MOVSX ESI,AL MOV RDI,R14 CALL 0x00122370 LEA R14,[RBX + 0x50] LAB_001851d0: MOV RDI,RBX CALL 0x001225bc LEA ECX,[RAX + -0x30] CMP ECX,0xa JNC 0x001851ee MOVSX ESI,byte ptr [RBX + 0x14] MOV RDI,R14 CALL 0x00122370 JMP 0x001851d0 LAB_001851ee: CMP EAX,0x2e JZ 0x00185350 CMP EAX,0x45 JZ 0x001853ac CMP EAX,0x65 JZ 0x001853ac LAB_00185209: MOV RDI,RBX CALL 0x00185500 MOV qword ptr [RSP],0x0 CALL 0x001220e0 MOV R14,RAX MOV dword ptr [RAX],0x0 MOV RDI,qword ptr [RBX + 0x50] MOV R15,RSP MOV RSI,R15 MOV EDX,0xa CMP EBP,0x5 JNZ 0x00185263 CALL 0x00121dd0 MOV RCX,qword ptr [RBX + 0x50] ADD RCX,qword ptr [RBX + 0x58] CMP qword ptr [R15],RCX JNZ 0x001854a6 CMP dword ptr [R14],0x0 JNZ 0x0018527f MOV ECX,0x5 MOV EDX,0x80 JMP 0x001852d5 LAB_00185263: CALL 0x00121d40 MOV RCX,qword ptr [RBX + 0x50] ADD RCX,qword ptr [RBX + 0x58] CMP qword ptr [R15],RCX JNZ 0x001854c2 CMP dword ptr [R14],0x0 JZ 0x001852cb LAB_0018527f: MOV RDI,qword ptr [RBX + 0x50] MOV R14,RSP MOV RSI,R14 CALL 0x00122430 MOVSD qword ptr [RBX + 0x88],XMM0 MOV RAX,qword ptr [RBX + 0x50] ADD RAX,qword ptr [RBX + 0x58] MOV ECX,0x7 CMP qword ptr [R14],RAX JZ 0x001853e6 LEA RDI,[0x21b512] LEA RDX,[0x214131] LEA RCX,[0x21c354] MOV ESI,0x21d6 JMP 0x001854f8 LAB_001852cb: MOV ECX,0x6 MOV EDX,0x78 LAB_001852d5: MOV qword ptr [RBX + RDX*0x1],RAX JMP 0x001853e6 LAB_001852de: CMP EAX,0x30 JZ 0x0018531e CMP EAX,0x2d JNZ 0x001854de LEA R14,[RBX + 0x50] MOV RDI,R14 MOV ESI,0x2d CALL 0x00122370 MOV RDI,RBX CALL 0x001225bc LEA ECX,[RAX + -0x31] CMP ECX,0x9 JNC 0x0018547f MOV EAX,dword ptr [RBX + 0x14] MOV EBP,0x6 JMP 0x001851c1 LAB_0018531e: LEA RDI,[RBX + 0x50] MOV ESI,0x30 CALL 0x00122370 MOV EBP,0x5 LAB_00185331: MOV RDI,RBX CALL 0x001225bc CMP EAX,0x65 JZ 0x001853a8 CMP EAX,0x45 JZ 0x001853a8 CMP EAX,0x2e JNZ 0x00185209 LEA R14,[RBX + 0x50] LAB_00185350: MOVSX ESI,byte ptr [RBX + 0x90] MOV RDI,R14 CALL 0x00122370 MOV RDI,RBX CALL 0x001225bc ADD EAX,-0x30 CMP EAX,0x9 JA 0x0018539f LEA R14,[RBX + 0x50] LAB_00185373: MOVSX ESI,byte ptr [RBX + 0x14] MOV RDI,R14 CALL 0x00122370 MOV RDI,RBX CALL 0x001225bc LEA ECX,[RAX + -0x30] CMP ECX,0xa JC 0x00185373 CMP EAX,0x65 JZ 0x001853ac CMP EAX,0x45 JNZ 0x00185433 JMP 0x001853ac LAB_0018539f: LEA RAX,[0x21c2bd] JMP 0x001853dd LAB_001853a8: LEA R14,[RBX + 0x50] LAB_001853ac: MOVSX ESI,byte ptr [RBX + 0x14] MOV RDI,R14 CALL 0x00122370 MOV RDI,RBX CALL 0x001225bc LEA ECX,[RAX + -0x30] CMP ECX,0xa JC 0x001853f3 CMP EAX,0x2d JZ 0x00185453 CMP EAX,0x2b JZ 0x00185453 LEA RAX,[0x21c2e6] LAB_001853dd: MOV qword ptr [RBX + 0x70],RAX MOV ECX,0xe LAB_001853e6: MOV EAX,ECX ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET LAB_001853f3: LEA R14,[RBX + 0x50] LAB_001853f7: MOVSX ESI,byte ptr [RBX + 0x14] MOV RDI,R14 CALL 0x00122370 MOV RDI,RBX CALL 0x001225bc ADD EAX,-0x30 CMP EAX,0x9 JA 0x00185433 LEA R14,[RBX + 0x50] LAB_00185417: MOVSX ESI,byte ptr [RBX + 0x14] MOV RDI,R14 CALL 0x00122370 MOV RDI,RBX CALL 0x001225bc ADD EAX,-0x30 CMP EAX,0xa JC 0x00185417 LAB_00185433: MOV RDI,RBX CALL 0x00185500 MOV qword ptr [RSP],0x0 CALL 0x001220e0 MOV dword ptr [RAX],0x0 JMP 0x0018527f LAB_00185453: MOVSX ESI,byte ptr [RBX + 0x14] LEA R14,[RBX + 0x50] MOV RDI,R14 CALL 0x00122370 MOV RDI,RBX CALL 0x001225bc ADD EAX,-0x30 CMP EAX,0xa JC 0x001853f7 LEA RAX,[0x21c321] JMP 0x001853dd LAB_0018547f: CMP EAX,0x30 JZ 0x00185490 LEA RAX,[0x21c294] JMP 0x001853dd LAB_00185490: MOVSX ESI,byte ptr [RBX + 0x14] MOV RDI,R14 CALL 0x00122370 MOV EBP,0x6 JMP 0x00185331 LAB_001854a6: LEA RDI,[0x21b512] LEA RDX,[0x214131] LEA RCX,[0x21c354] MOV ESI,0x21b5 JMP 0x001854f8 LAB_001854c2: LEA RDI,[0x21b512] LEA RDX,[0x214131] LEA RCX,[0x21c354] MOV ESI,0x21c5 JMP 0x001854f8 LAB_001854de: LEA RDI,[0x21b512] LEA RDX,[0x214131] LEA RCX,[0x217e70] MOV ESI,0x20be LAB_001854f8: XOR EAX,EAX CALL 0x00121e60
/* 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 > > >::scan_number() */ int8 __thiscall nlohmann::json_abi_v3_11_3::detail:: lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::scan_number(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) { char cVar1; int iVar2; int iVar3; char *in_RAX; int *piVar4; ulonglong uVar5; int8 uVar6; char *pcVar7; long lVar8; double dVar9; char *local_28; local_28 = in_RAX; reset(this); iVar3 = *(int *)(this + 0x14); cVar1 = (char)this; if (iVar3 - 0x31U < 9) { iVar3 = 5; LAB_001851c1: std::__cxx11::string::push_back(cVar1 + 'P'); while (iVar2 = get(this), iVar2 - 0x30U < 10) { std::__cxx11::string::push_back(cVar1 + 'P'); } if (iVar2 == 0x2e) { LAB_00185350: std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = get(this); if (9 < iVar3 - 0x30U) { pcVar7 = "invalid number; expected digit after \'.\'"; goto LAB_001853dd; } do { std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = get(this); } while (iVar3 - 0x30U < 10); if ((iVar3 == 0x65) || (iVar3 == 0x45)) goto LAB_001853ac; goto LAB_00185433; } if ((iVar2 == 0x45) || (iVar2 == 0x65)) goto LAB_001853ac; LAB_00185209: unget(this); local_28 = (char *)0x0; piVar4 = __errno_location(); *piVar4 = 0; if (iVar3 == 5) { uVar5 = strtoull(*(char **)(this + 0x50),&local_28,10); if (local_28 != (char *)(*(long *)(this + 0x50) + *(long *)(this + 0x58))) { pcVar7 = "endptr == token_buffer.data() + token_buffer.size()"; uVar6 = 0x21b5; goto LAB_001854f8; } if (*piVar4 == 0) { uVar6 = 5; lVar8 = 0x80; LAB_001852d5: *(ulonglong *)(this + lVar8) = uVar5; return uVar6; } } else { uVar5 = strtoll(*(char **)(this + 0x50),&local_28,10); if (local_28 != (char *)(*(long *)(this + 0x50) + *(long *)(this + 0x58))) { pcVar7 = "endptr == token_buffer.data() + token_buffer.size()"; uVar6 = 0x21c5; goto LAB_001854f8; } if (*piVar4 == 0) { uVar6 = 6; lVar8 = 0x78; goto LAB_001852d5; } } } else { if (iVar3 == 0x30) { std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = 5; } else { if (iVar3 != 0x2d) { pcVar7 = "false"; uVar6 = 0x20be; goto LAB_001854f8; } std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = get(this); if (iVar3 - 0x31U < 9) { iVar3 = 6; goto LAB_001851c1; } if (iVar3 != 0x30) { pcVar7 = "invalid number; expected digit after \'-\'"; goto LAB_001853dd; } std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = 6; } iVar2 = get(this); if ((iVar2 != 0x65) && (iVar2 != 0x45)) { if (iVar2 != 0x2e) goto LAB_00185209; goto LAB_00185350; } LAB_001853ac: std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = get(this); if (9 < iVar3 - 0x30U) { if ((iVar3 != 0x2d) && (iVar3 != 0x2b)) { pcVar7 = "invalid number; expected \'+\', \'-\', or digit after exponent"; LAB_001853dd: *(char **)(this + 0x70) = pcVar7; return 0xe; } std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = get(this); if (9 < iVar3 - 0x30U) { pcVar7 = "invalid number; expected digit after exponent sign"; goto LAB_001853dd; } } std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = get(this); if (iVar3 - 0x30U < 10) { do { std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = get(this); } while (iVar3 - 0x30U < 10); } LAB_00185433: unget(this); local_28 = (char *)0x0; piVar4 = __errno_location(); *piVar4 = 0; } dVar9 = strtod(*(char **)(this + 0x50),&local_28); *(double *)(this + 0x88) = dVar9; if (local_28 == (char *)(*(long *)(this + 0x50) + *(long *)(this + 0x58))) { return 7; } pcVar7 = "endptr == token_buffer.data() + token_buffer.size()"; uVar6 = 0x21d6; LAB_001854f8: /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",uVar6, "GGML_ASSERT(%s) failed",pcVar7); }
27,670
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>::operator[]<char const>(char const*)
monkey531[P]llama/common/./json.hpp
reference operator[](T* key) { return operator[](typename object_t::key_type(key)); }
O3
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>& 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*): pushq %r14 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx leaq 0x8(%rsp), %r14 leaq 0x7(%rsp), %rdx movq %r14, %rdi callq 0x233f4 movq %rbx, %rdi movq %r14, %rsi callq 0x6fb22 movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x690cd movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 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 0x690f6 movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 movq %rbx, %rdi callq 0x18b90
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERSD_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 _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixES9_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[](std::string) mov rbx, rax lea rax, [rsp+38h+var_20] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_690CD mov rsi, [rsp+38h+var_20] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_690CD: 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_690F6 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_690F6: 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 v2; // rbx void *v4[2]; // [rsp+8h] [rbp-30h] BYREF long long v5; // [rsp+18h] [rbp-20h] BYREF std::string::basic_string<std::allocator<char>>(v4, a2); v2 = 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, v4); if ( v4[0] != &v5 ) operator delete(v4[0], v5 + 1); return v2; }
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 0x001233f4 LAB_001690a4: MOV RDI,RBX MOV RSI,R14 CALL 0x0016fb22 LAB_001690af: MOV RBX,RAX LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001690cd MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001186a0 LAB_001690cd: 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>& 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*) */ 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 001690a4 to 001690ae has its CatchHandler @ 001690d8 */ 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; }
27,671
mysql_stmt_execute_start_internal
eloqsql/libmariadb/libmariadb/mariadb_async.c
static void mysql_stmt_execute_start_internal(void *d) { MK_ASYNC_INTERNAL_BODY( mysql_stmt_execute, (parms->stmt), parms->stmt->mysql, int, r_int) }
O0
c
mysql_stmt_execute_start_internal: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x38(%rax), %rax movq 0x480(%rax), %rax movq 0x28(%rax), %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rdi callq 0x52c40 movl %eax, -0x14(%rbp) movl -0x14(%rbp), %ecx movq -0x20(%rbp), %rax movl %ecx, 0x8(%rax) movq -0x20(%rbp), %rax movl $0x0, (%rax) addq $0x20, %rsp popq %rbp retq nopw (%rax,%rax)
mysql_stmt_execute_start_internal: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov [rbp+var_10], rax mov rax, [rbp+var_10] mov rax, [rax] mov rax, [rax+38h] mov rax, [rax+480h] mov rax, [rax+28h] mov [rbp+var_20], rax mov rax, [rbp+var_10] mov rdi, [rax] call mysql_stmt_execute mov [rbp+var_14], eax mov ecx, [rbp+var_14] mov rax, [rbp+var_20] mov [rax+8], ecx mov rax, [rbp+var_20] mov dword ptr [rax], 0 add rsp, 20h pop rbp retn
_DWORD * mysql_stmt_execute_start_internal(long long *a1) { _DWORD *result; // rax _DWORD *v2; // [rsp+0h] [rbp-20h] v2 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)(*a1 + 56) + 1152LL) + 40LL); v2[2] = mysql_stmt_execute(*a1); result = v2; *v2 = 0; return result; }
mysql_stmt_execute_start_internal: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x38] MOV RAX,qword ptr [RAX + 0x480] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX] CALL 0x00152c40 MOV dword ptr [RBP + -0x14],EAX MOV ECX,dword ptr [RBP + -0x14] MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x8],ECX MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX],0x0 ADD RSP,0x20 POP RBP RET
void mysql_stmt_execute_start_internal(long *param_1) { int4 *puVar1; int4 uVar2; puVar1 = *(int4 **)(*(long *)(*(long *)(*param_1 + 0x38) + 0x480) + 0x28); uVar2 = mysql_stmt_execute(*param_1); puVar1[2] = uVar2; *puVar1 = 0; return; }
27,672
common_log::set_file(char const*)
monkey531[P]llama/common/log.cpp
void set_file(const char * path) { pause(); if (file) { fclose(file); } if (path) { file = fopen(path, "w"); } else { file = nullptr; } resume(); }
O2
cpp
common_log::set_file(char const*): pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx callq 0x963b2 movq 0x60(%rbx), %rdi testq %rdi, %rdi je 0x966d9 callq 0x238a0 testq %r14, %r14 je 0x966ef leaq 0x15465(%rip), %rsi # 0xabb4a movq %r14, %rdi callq 0x23a40 jmp 0x966f1 xorl %eax, %eax movq %rax, 0x60(%rbx) movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x96428
_ZN10common_log8set_fileEPKc: push r14 push rbx push rax mov r14, rsi mov rbx, rdi call _ZN10common_log5pauseEv; common_log::pause(void) mov rdi, [rbx+60h] test rdi, rdi jz short loc_966D9 call _fclose loc_966D9: test r14, r14 jz short loc_966EF lea rsi, aGrpAttnW+0Bh; "w" mov rdi, r14 call _fopen jmp short loc_966F1 loc_966EF: xor eax, eax loc_966F1: mov [rbx+60h], rax mov rdi, rbx; this add rsp, 8 pop rbx pop r14 jmp _ZN10common_log6resumeEv; common_log::resume(void)
long long common_log::set_file(common_log *this, const char *a2) { long long v3; // rdi long long v4; // rax common_log::pause(this); v3 = *((_QWORD *)this + 12); if ( v3 ) fclose(v3); if ( a2 ) v4 = fopen(a2, "w"); else v4 = 0LL; *((_QWORD *)this + 12) = v4; return common_log::resume(this); }
set_file: PUSH R14 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI CALL 0x001963b2 MOV RDI,qword ptr [RBX + 0x60] TEST RDI,RDI JZ 0x001966d9 CALL 0x001238a0 LAB_001966d9: TEST R14,R14 JZ 0x001966ef LEA RSI,[0x1abb4a] MOV RDI,R14 CALL 0x00123a40 JMP 0x001966f1 LAB_001966ef: XOR EAX,EAX LAB_001966f1: MOV qword ptr [RBX + 0x60],RAX MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x00196428
/* common_log::set_file(char const*) */ void __thiscall common_log::set_file(common_log *this,char *param_1) { FILE *pFVar1; pause(this); if (*(FILE **)(this + 0x60) != (FILE *)0x0) { fclose(*(FILE **)(this + 0x60)); } if (param_1 == (char *)0x0) { pFVar1 = (FILE *)0x0; } else { pFVar1 = fopen(param_1,"w"); } *(FILE **)(this + 0x60) = pFVar1; resume(this); return; }
27,673
nglog::internal::CheckOpString::~CheckOpString()
ng-log[P]ng-log/src/ng-log/logging.h
CheckOpString(std::unique_ptr<std::string> str) : str_(std::move(str)) {}
O3
c
nglog::internal::CheckOpString::~CheckOpString(): pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx movq (%rdi), %r14 testq %r14, %r14 je 0xa034 movq (%r14), %rdi leaq 0x10(%r14), %rax cmpq %rax, %rdi je 0xa02c callq 0x7620 movq %r14, %rdi callq 0x7620 movq $0x0, (%rbx) addq $0x8, %rsp popq %rbx popq %r14 retq nop
_ZN5nglog8internal13CheckOpStringD2Ev: push r14 push rbx push rax mov rbx, rdi mov r14, [rdi] test r14, r14 jz short loc_A034 mov rdi, [r14] lea rax, [r14+10h] cmp rdi, rax jz short loc_A02C call _free loc_A02C: mov rdi, r14 call _free loc_A034: mov qword ptr [rbx], 0 add rsp, 8 pop rbx pop r14 retn
void nglog::internal::CheckOpString::~CheckOpString(void ***this) { void **v1; // r14 v1 = *this; if ( *this ) { if ( *v1 != v1 + 2 ) free(*v1); free(v1); } *this = 0LL; }
~CheckOpString: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI MOV R14,qword ptr [RDI] TEST R14,R14 JZ 0x0010a034 MOV RDI,qword ptr [R14] LEA RAX,[R14 + 0x10] CMP RDI,RAX JZ 0x0010a02c CALL 0x00107620 LAB_0010a02c: MOV RDI,R14 CALL 0x00107620 LAB_0010a034: MOV qword ptr [RBX],0x0 ADD RSP,0x8 POP RBX POP R14 RET
/* nglog::internal::CheckOpString::~CheckOpString() */ void __thiscall nglog::internal::CheckOpString::~CheckOpString(CheckOpString *this) { int8 *__ptr; __ptr = *(int8 **)this; if (__ptr != (int8 *)0x0) { if ((int8 *)*__ptr != __ptr + 2) { free((int8 *)*__ptr); } free(__ptr); } *(int8 *)this = 0; return; }
27,674
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, 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::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::emplace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&&)
monkey531[P]llama/common/./json.hpp
std::pair<iterator, bool> emplace(const key_type& key, T&& t) { for (auto it = this->begin(); it != this->end(); ++it) { if (m_compare(it->first, key)) { return {it, false}; } } Container::emplace_back(key, std::forward<T>(t)); return {std::prev(this->end()), true}; }
O3
cpp
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, 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::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::emplace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, (%rsp) movq %rsi, %r12 movq %rdi, %r14 movq (%rdi), %rbx movq 0x8(%rdi), %r15 cmpq %r15, %rbx je 0x37bc8 movq (%r12), %r13 movq 0x8(%r12), %rbp cmpq %rbp, 0x8(%rbx) jne 0x37bbf testq %rbp, %rbp je 0x37be3 movq (%rbx), %rdi movq %r13, %rsi movq %rbp, %rdx callq 0x19710 testl %eax, %eax je 0x37be3 addq $0x30, %rbx cmpq %r15, %rbx jne 0x37ba2 movq %r14, %rdi movq %r12, %rsi movq (%rsp), %rdx callq 0x37bf8 movq 0x8(%r14), %rbx addq $-0x30, %rbx movb $0x1, %dl jmp 0x37be5 xorl %edx, %edx movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE7emplaceERSH_OSD_: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov [rsp+38h+var_38], rdx mov r12, rsi mov r14, rdi mov rbx, [rdi] mov r15, [rdi+8] cmp rbx, r15 jz short loc_37BC8 mov r13, [r12] mov rbp, [r12+8] loc_37BA2: cmp [rbx+8], rbp jnz short loc_37BBF test rbp, rbp jz short loc_37BE3 mov rdi, [rbx] mov rsi, r13 mov rdx, rbp call _bcmp test eax, eax jz short loc_37BE3 loc_37BBF: add rbx, 30h ; '0' cmp rbx, r15 jnz short loc_37BA2 loc_37BC8: mov rdi, r14 mov rsi, r12 mov rdx, [rsp+38h+var_38] call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE12emplace_backIJRS7_SF_EEERSG_DpOT_; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::emplace_back<std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&) mov rbx, [r14+8] add rbx, 0FFFFFFFFFFFFFFD0h mov dl, 1 jmp short loc_37BE5 loc_37BE3: xor edx, edx loc_37BE5: mov rax, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::emplace( _QWORD *a1, long long *a2, long long a3) { _QWORD *v3; // rbx _QWORD *v4; // r15 long long v5; // r13 long long v6; // rbp v3 = (_QWORD *)*a1; v4 = (_QWORD *)a1[1]; if ( (_QWORD *)*a1 == v4 ) { LABEL_7: std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::emplace_back<std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( a1, a2, a3); return a1[1] - 48LL; } else { v5 = *a2; v6 = a2[1]; while ( v3[1] != v6 || v6 && (unsigned int)bcmp(*v3, v5) ) { v3 += 6; if ( v3 == v4 ) goto LABEL_7; } } return (long long)v3; }
emplace: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV qword ptr [RSP],RDX MOV R12,RSI MOV R14,RDI MOV RBX,qword ptr [RDI] MOV R15,qword ptr [RDI + 0x8] CMP RBX,R15 JZ 0x00137bc8 MOV R13,qword ptr [R12] MOV RBP,qword ptr [R12 + 0x8] LAB_00137ba2: CMP qword ptr [RBX + 0x8],RBP JNZ 0x00137bbf TEST RBP,RBP JZ 0x00137be3 MOV RDI,qword ptr [RBX] MOV RSI,R13 MOV RDX,RBP CALL 0x00119710 TEST EAX,EAX JZ 0x00137be3 LAB_00137bbf: ADD RBX,0x30 CMP RBX,R15 JNZ 0x00137ba2 LAB_00137bc8: MOV RDI,R14 MOV RSI,R12 MOV RDX,qword ptr [RSP] CALL 0x00137bf8 MOV RBX,qword ptr [R14 + 0x8] ADD RBX,-0x30 MOV DL,0x1 JMP 0x00137be5 LAB_00137be3: XOR EDX,EDX LAB_00137be5: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::string const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> > > >::emplace(std::__cxx11::string const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>&&) */ int1 [16] __thiscall nlohmann::json_abi_v3_11_3:: ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::emplace(ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *this,string *param_1,basic_json *param_2) { int8 *puVar1; void *__s2; size_t __n; int iVar2; int8 extraout_RDX; int8 uVar3; int8 *puVar4; int1 auVar5 [16]; puVar4 = *(int8 **)this; puVar1 = *(int8 **)(this + 8); if (puVar4 != puVar1) { __s2 = *(void **)param_1; __n = *(size_t *)(param_1 + 8); do { if (puVar4[1] == __n) { if (__n != 0) { iVar2 = bcmp((void *)*puVar4,__s2,__n); if (iVar2 != 0) goto LAB_00137bbf; } uVar3 = 0; goto LAB_00137be5; } LAB_00137bbf: puVar4 = puVar4 + 6; } while (puVar4 != puVar1); } std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> :: emplace_back<std::__cxx11::string_const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ((vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *)this,param_1,param_2); puVar4 = (int8 *)(*(long *)(this + 8) + -0x30); uVar3 = CONCAT71((int7)((ulong)extraout_RDX >> 8),1); LAB_00137be5: auVar5._8_8_ = uVar3; auVar5._0_8_ = puVar4; return auVar5; }
27,675
minja::error_location_suffix(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long)::$_0::operator()[abi:cxx11](unsigned long) const
monkey531[P]llama/common/minja.hpp
static std::string error_location_suffix(const std::string & source, size_t pos) { auto get_line = [&](size_t line) { auto start = source.begin(); for (size_t i = 1; i < line; ++i) { start = std::find(start, source.end(), '\n') + 1; } auto end = std::find(start, source.end(), '\n'); return std::string(start, end); }; auto start = source.begin(); auto end = source.end(); auto it = start + pos; auto line = std::count(start, it, '\n') + 1; auto max_line = std::count(start, end, '\n') + 1; auto col = pos - std::string(start, it).rfind('\n'); std::ostringstream out; out << " at row " << line << ", column " << col << ":\n"; if (line > 1) out << get_line(line - 1) << "\n"; out << get_line(line) << "\n"; out << std::string(col - 1, ' ') << "^\n"; if (line < max_line) out << get_line(line + 1) << "\n"; return out.str(); }
O2
cpp
minja::error_location_suffix(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long)::$_0::operator()[abi:cxx11](unsigned long) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r15 movq %rsi, %r12 movq %rdi, %rbx movq (%rsi), %rax movq (%rax), %r14 pushq $0x1 popq %rbp leaq 0x6(%rsp), %r13 movq (%r12), %rax movq (%rax), %rsi addq 0x8(%rax), %rsi cmpq %r15, %rbp jae 0xa6f93 movb $0xa, 0x6(%rsp) movq %r14, %rdi movq %r13, %rdx callq 0xbf50d movq %rax, %r14 incq %r14 incq %rbp jmp 0xa6f68 leaq 0x7(%rsp), %rdx movb $0xa, (%rdx) movq %r14, %rdi callq 0xbf50d leaq 0x10(%rbx), %rcx movq %rcx, (%rbx) movq %rbx, %rdi movq %r14, %rsi movq %rax, %rdx callq 0x620ae movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZZN5minjaL21error_location_suffixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmENK3$_0clB5cxx11Em: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r15, rdx mov r12, rsi mov rbx, rdi mov rax, [rsi] mov r14, [rax] push 1 pop rbp lea r13, [rsp+38h+var_32] loc_A6F68: mov rax, [r12] mov rsi, [rax] add rsi, [rax+8] cmp rbp, r15 jnb short loc_A6F93 mov [rsp+38h+var_32], 0Ah mov rdi, r14 mov rdx, r13 call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIS2_EEET_SE_SE_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>,std::random_access_iterator_tag) mov r14, rax inc r14 inc rbp jmp short loc_A6F68 loc_A6F93: lea rdx, [rsp+38h+var_31] mov byte ptr [rdx], 0Ah mov rdi, r14 call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIS2_EEET_SE_SE_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>,std::random_access_iterator_tag) lea rcx, [rbx+10h] mov [rbx], rcx mov rdi, rbx mov rsi, r14 mov rdx, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag) mov rax, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
_QWORD * minja::error_location_suffix(std::string const&,unsigned long)::$_0::operator()[abi:cxx11]( _QWORD *a1, _BYTE ***a2, unsigned long long a3) { long long v3; // rax _BYTE *v6; // r14 unsigned long long i; // rbp _BYTE *v8; // rsi long long v9; // rax _WORD v11[25]; // [rsp+0h] [rbp-32h] BYREF v11[0] = HIWORD(v3); v6 = **a2; for ( i = 1LL; ; ++i ) { v8 = &(**a2)[(_QWORD)(*a2)[1]]; if ( i >= a3 ) break; LOBYTE(v11[0]) = 10; v6 = (_BYTE *)(std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>( v6, v8, v11) + 1); } HIBYTE(v11[0]) = 10; v9 = std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>( v6, v8, (char *)v11 + 1); *a1 = a1 + 2; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>((long long)a1, v6, v9); return a1; }
operator()[abi:cxx11]: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R15,RDX MOV R12,RSI MOV RBX,RDI MOV RAX,qword ptr [RSI] MOV R14,qword ptr [RAX] PUSH 0x1 POP RBP LEA R13,[RSP + 0x6] LAB_001a6f68: MOV RAX,qword ptr [R12] MOV RSI,qword ptr [RAX] ADD RSI,qword ptr [RAX + 0x8] CMP RBP,R15 JNC 0x001a6f93 MOV byte ptr [RSP + 0x6],0xa MOV RDI,R14 MOV RDX,R13 CALL 0x001bf50d MOV R14,RAX INC R14 INC RBP JMP 0x001a6f68 LAB_001a6f93: LEA RDX,[RSP + 0x7] MOV byte ptr [RDX],0xa MOV RDI,R14 CALL 0x001bf50d LEA RCX,[RBX + 0x10] MOV qword ptr [RBX],RCX MOV RDI,RBX MOV RSI,R14 MOV RDX,RAX CALL 0x001620ae MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* operator()[abi:cxx11](unsigned long) const */ ulong minja::error_location_suffix(std::__cxx11::string_const&,unsigned_long)::$_0:: operator()[abi_cxx11_(ulong param_1) { int8 in_RAX; long lVar1; int8 uVar2; ulong in_RDX; ulong uVar3; long *in_RSI; long lVar4; int8 uStack_38; lVar1 = *(long *)*in_RSI; uStack_38 = in_RAX; for (uVar3 = 1; lVar4 = *(long *)*in_RSI + ((long *)*in_RSI)[1], uVar3 < in_RDX; uVar3 = uVar3 + 1 ) { uStack_38._0_7_ = CONCAT16(10,(int6)uStack_38); lVar1 = std:: __find_if<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,__gnu_cxx::__ops::_Iter_equals_val<char_const>> (lVar1,lVar4,(long)&uStack_38 + 6); lVar1 = lVar1 + 1; } uStack_38 = CONCAT17(10,(int7)uStack_38); uVar2 = std:: __find_if<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,__gnu_cxx::__ops::_Iter_equals_val<char_const>> (lVar1,lVar4); *(ulong *)param_1 = param_1 + 0x10; std::__cxx11::string::_M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>> (param_1,lVar1,uVar2); return param_1; }
27,676
minja::error_location_suffix(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long)::$_0::operator()[abi:cxx11](unsigned long) const
monkey531[P]llama/common/minja.hpp
static std::string error_location_suffix(const std::string & source, size_t pos) { auto get_line = [&](size_t line) { auto start = source.begin(); for (size_t i = 1; i < line; ++i) { start = std::find(start, source.end(), '\n') + 1; } auto end = std::find(start, source.end(), '\n'); return std::string(start, end); }; auto start = source.begin(); auto end = source.end(); auto it = start + pos; auto line = std::count(start, it, '\n') + 1; auto max_line = std::count(start, end, '\n') + 1; auto col = pos - std::string(start, it).rfind('\n'); std::ostringstream out; out << " at row " << line << ", column " << col << ":\n"; if (line > 1) out << get_line(line - 1) << "\n"; out << get_line(line) << "\n"; out << std::string(col - 1, ' ') << "^\n"; if (line < max_line) out << get_line(line + 1) << "\n"; return out.str(); }
O3
cpp
minja::error_location_suffix(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long)::$_0::operator()[abi:cxx11](unsigned long) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1b8, %rsp # imm = 0x1B8 movq %rdx, %r8 movq %rsi, %r14 movq %rdi, 0x38(%rsp) movq (%rsi), %rsi movq 0x8(%r14), %rax testq %rdx, %rdx je 0xdf5b6 xorl %ecx, %ecx xorl %r12d, %r12d xorl %edx, %edx cmpb $0xa, (%rsi,%rcx) sete %dl addq %rdx, %r12 incq %rcx cmpq %rcx, %r8 jne 0xdf5a0 jmp 0xdf5b9 xorl %r12d, %r12d leaq (%rsi,%r8), %rdx testq %rax, %rax movq %r8, 0x28(%rsp) je 0xdf5e3 xorl %ecx, %ecx xorl %r15d, %r15d xorl %edi, %edi cmpb $0xa, (%rsi,%rcx) sete %dil addq %rdi, %r15 incq %rcx cmpq %rcx, %rax jne 0xdf5cc jmp 0xdf5e6 xorl %r15d, %r15d leaq 0x50(%rsp), %rbp movq %rbp, -0x10(%rbp) leaq 0x40(%rsp), %rbx movq %rbx, %rdi callq 0x6de64 movq %rbx, %rdi movl $0xa, %esi movq $-0x1, %rdx callq 0x20570 movq %rax, %r13 movq (%rbx), %rdi cmpq %rbp, %rdi je 0xdf628 movq 0x50(%rsp), %rsi incq %rsi callq 0x1fae0 leaq 0x40(%rsp), %rbx movq %rbx, %rdi callq 0x1fe60 leaq 0x766bf(%rip), %rsi # 0x155cfb movl $0x8, %edx movq %rbx, %rdi callq 0x1fc50 movq 0x28(%rsp), %rbx leaq 0x1(%r12), %rsi leaq 0x40(%rsp), %rdi movq %rsi, 0x30(%rsp) callq 0x1fa30 movq %rax, %rbp leaq 0x69e09(%rip), %rsi # 0x149475 movl $0x9, %edx movq %rax, %rdi callq 0x1fc50 subq %r13, %rbx movq %rbp, %rdi movq %rbx, %rsi callq 0x1f740 leaq 0x7b9b5(%rip), %rsi # 0x15b043 movl $0x2, %edx movq %rax, %rdi callq 0x1fc50 testq %r12, %r12 jle 0xdf74a movq (%r14), %r13 cmpq $0x1, %r12 jne 0xdf6b2 movq %r13, %rsi jmp 0xdf6de leaq -0x1(%r12), %rbp movq (%r14), %rsi addq 0x8(%r14), %rsi movb $0xa, 0x7(%rsp) movq %r13, %rdi leaq 0x7(%rsp), %rdx callq 0x10390f movq %rax, %r13 incq %r13 decq %rbp jne 0xdf6b7 movq (%r14), %rsi addq 0x8(%r14), %rsi leaq 0x7(%rsp), %rdx movb $0xa, (%rdx) movq %r13, %rdi callq 0x10390f leaq 0x18(%rsp), %rbp movq %rbp, -0x10(%rbp) leaq 0x8(%rsp), %rdi movq %r13, %rsi movq %rax, %rdx callq 0x6de64 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx leaq 0x40(%rsp), %rdi callq 0x1fc50 leaq 0x6a59e(%rip), %rsi # 0x149cc4 movl $0x1, %edx movq %rax, %rdi callq 0x1fc50 movq 0x8(%rsp), %rdi cmpq %rbp, %rdi je 0xdf74a movq 0x18(%rsp), %rsi incq %rsi callq 0x1fae0 movq (%r14), %r13 cmpq $0x2, 0x30(%rsp) jb 0xdf78e movq %rbx, 0x28(%rsp) leaq 0x7(%rsp), %rbp movq %r12, %rbx movq (%r14), %rsi addq 0x8(%r14), %rsi movb $0xa, 0x7(%rsp) movq %r13, %rdi movq %rbp, %rdx callq 0x10390f movq %rax, %r13 incq %r13 decq %rbx jne 0xdf762 movq (%r14), %rsi movq 0x28(%rsp), %rbx jmp 0xdf791 movq %r13, %rsi addq 0x8(%r14), %rsi leaq 0x7(%rsp), %rdx movb $0xa, (%rdx) movq %r13, %rdi callq 0x10390f leaq 0x18(%rsp), %rbp movq %rbp, -0x10(%rbp) leaq 0x8(%rsp), %rdi movq %r13, %rsi movq %rax, %rdx callq 0x6de64 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx leaq 0x40(%rsp), %rdi callq 0x1fc50 leaq 0x6a4eb(%rip), %rsi # 0x149cc4 movl $0x1, %edx movq %rax, %rdi callq 0x1fc50 movq 0x8(%rsp), %rdi cmpq %rbp, %rdi je 0xdf7fd movq 0x18(%rsp), %rsi incq %rsi callq 0x1fae0 decq %rbx leaq 0x8(%rsp), %rdi movq %rbp, (%rdi) movq %rbx, %rsi movl $0x20, %edx callq 0x1fc80 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx leaq 0x40(%rsp), %rdi callq 0x1fc50 leaq 0x764d4(%rip), %rsi # 0x155d04 movl $0x2, %edx movq %rax, %rdi callq 0x1fc50 movq 0x8(%rsp), %rdi cmpq %rbp, %rdi je 0xdf854 movq 0x18(%rsp), %rsi incq %rsi callq 0x1fae0 cmpq %r15, %r12 jge 0xdf900 movq (%r14), %r15 cmpq $-0x3, %r12 ja 0xdf897 leaq 0x7(%rsp), %r13 movq 0x30(%rsp), %rbx movq (%r14), %rsi addq 0x8(%r14), %rsi movb $0xa, 0x7(%rsp) movq %r15, %rdi movq %r13, %rdx callq 0x10390f movq %rax, %r15 incq %r15 decq %rbx jne 0xdf870 movq (%r14), %rsi jmp 0xdf89a movq %r15, %rsi addq 0x8(%r14), %rsi leaq 0x7(%rsp), %rdx movb $0xa, (%rdx) movq %r15, %rdi callq 0x10390f leaq 0x8(%rsp), %rdi movq %rbp, (%rdi) movq %r15, %rsi movq %rax, %rdx callq 0x6de64 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx leaq 0x40(%rsp), %rdi callq 0x1fc50 leaq 0x6a3e8(%rip), %rsi # 0x149cc4 movl $0x1, %edx movq %rax, %rdi callq 0x1fc50 movq 0x8(%rsp), %rdi cmpq %rbp, %rdi je 0xdf900 movq 0x18(%rsp), %rsi incq %rsi callq 0x1fae0 leaq 0x48(%rsp), %rsi movq 0x38(%rsp), %rdi callq 0x20110 movq 0xc565a(%rip), %rsi # 0x1a4f70 leaq 0x40(%rsp), %rdi callq 0x1f5c0 leaq 0xb0(%rsp), %rdi callq 0x1f380 addq $0x1b8, %rsp # imm = 0x1B8 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0xdf969 jmp 0xdf969 jmp 0xdf94d jmp 0xdf969 jmp 0xdf969 jmp 0xdf94d jmp 0xdf94d movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %rbp, %rdi je 0xdf96c movq 0x18(%rsp), %rsi incq %rsi callq 0x1fae0 jmp 0xdf96c movq %rax, %rbx movq 0xc55fd(%rip), %rsi # 0x1a4f70 leaq 0x40(%rsp), %rdi callq 0x1f5c0 leaq 0xb0(%rsp), %rdi callq 0x1f380 movq %rbx, %rdi callq 0x20380
_ZN5minjaL21error_location_suffixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 1B8h mov r8, rdx mov r14, rsi mov [rsp+1E8h+var_1B0], rdi mov rsi, [rsi] mov rax, [r14+8] test rdx, rdx jz short loc_DF5B6 xor ecx, ecx xor r12d, r12d loc_DF5A0: xor edx, edx cmp byte ptr [rsi+rcx], 0Ah setz dl add r12, rdx inc rcx cmp r8, rcx jnz short loc_DF5A0 jmp short loc_DF5B9 loc_DF5B6: xor r12d, r12d loc_DF5B9: lea rdx, [rsi+r8] test rax, rax mov [rsp+1E8h+var_1C0], r8 jz short loc_DF5E3 xor ecx, ecx xor r15d, r15d loc_DF5CC: xor edi, edi cmp byte ptr [rsi+rcx], 0Ah setz dil add r15, rdi inc rcx cmp rax, rcx jnz short loc_DF5CC jmp short loc_DF5E6 loc_DF5E3: xor r15d, r15d loc_DF5E6: lea rbp, [rsp+1E8h+var_198] mov [rbp-10h], rbp lea rbx, [rsp+1E8h+var_1A8] mov rdi, rbx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag) mov rdi, rbx mov esi, 0Ah mov rdx, 0FFFFFFFFFFFFFFFFh call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5rfindEcm; std::string::rfind(char,ulong) mov r13, rax mov rdi, [rbx]; void * cmp rdi, rbp jz short loc_DF628 mov rsi, [rsp+1E8h+var_198] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_DF628: lea rbx, [rsp+1E8h+var_1A8] mov rdi, rbx call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void) lea rsi, aAtRow; " at row " mov edx, 8 mov rdi, rbx call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rbx, [rsp+1E8h+var_1C0] lea rsi, [r12+1] lea rdi, [rsp+1E8h+var_1A8] mov [rsp+1E8h+var_1B8], rsi call __ZNSo9_M_insertIlEERSoT_; std::ostream::_M_insert<long>(long) mov rbp, rax lea rsi, aColumn; ", column " mov edx, 9 mov rdi, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) sub rbx, r13 mov rdi, rbp mov rsi, rbx call __ZNSo9_M_insertImEERSoT_; std::ostream::_M_insert<ulong>(ulong) lea rsi, aJsonSchemaConv+1Dh; ":\n" mov edx, 2 mov rdi, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) test r12, r12 jle loc_DF74A mov r13, [r14] cmp r12, 1 jnz short loc_DF6B2 mov rsi, r13 jmp short loc_DF6DE loc_DF6B2: lea rbp, [r12-1] loc_DF6B7: mov rsi, [r14] add rsi, [r14+8] mov [rsp+1E8h+var_1E1], 0Ah mov rdi, r13 lea rdx, [rsp+1E8h+var_1E1] call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIS2_EEET_SE_SE_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>,std::random_access_iterator_tag) mov r13, rax inc r13 dec rbp jnz short loc_DF6B7 mov rsi, [r14] loc_DF6DE: add rsi, [r14+8] lea rdx, [rsp+1E8h+var_1E1] mov byte ptr [rdx], 0Ah mov rdi, r13 call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIS2_EEET_SE_SE_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>,std::random_access_iterator_tag) lea rbp, [rsp+1E8h+var_1D0] mov [rbp-10h], rbp lea rdi, [rsp+1E8h+var_1E0] mov rsi, r13 mov rdx, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag) mov rsi, [rsp+1E8h+var_1E0] mov rdx, [rsp+1E8h+var_1D8] lea rdi, [rsp+1E8h+var_1A8] call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rsi, aDataDone+0Dh; "\n" mov edx, 1 mov rdi, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rdi, [rsp+1E8h+var_1E0]; void * cmp rdi, rbp jz short loc_DF74A mov rsi, [rsp+1E8h+var_1D0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_DF74A: mov r13, [r14] cmp [rsp+1E8h+var_1B8], 2 jb short loc_DF78E mov [rsp+1E8h+var_1C0], rbx lea rbp, [rsp+1E8h+var_1E1] mov rbx, r12 loc_DF762: mov rsi, [r14] add rsi, [r14+8] mov [rsp+1E8h+var_1E1], 0Ah mov rdi, r13 mov rdx, rbp call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIS2_EEET_SE_SE_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>,std::random_access_iterator_tag) mov r13, rax inc r13 dec rbx jnz short loc_DF762 mov rsi, [r14] mov rbx, [rsp+1E8h+var_1C0] jmp short loc_DF791 loc_DF78E: mov rsi, r13 loc_DF791: add rsi, [r14+8] lea rdx, [rsp+1E8h+var_1E1] mov byte ptr [rdx], 0Ah mov rdi, r13 call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIS2_EEET_SE_SE_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>,std::random_access_iterator_tag) lea rbp, [rsp+1E8h+var_1D0] mov [rbp-10h], rbp lea rdi, [rsp+1E8h+var_1E0] mov rsi, r13 mov rdx, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag) mov rsi, [rsp+1E8h+var_1E0] mov rdx, [rsp+1E8h+var_1D8] lea rdi, [rsp+1E8h+var_1A8] call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rsi, aDataDone+0Dh; "\n" mov edx, 1 mov rdi, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rdi, [rsp+1E8h+var_1E0]; void * cmp rdi, rbp jz short loc_DF7FD mov rsi, [rsp+1E8h+var_1D0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_DF7FD: dec rbx lea rdi, [rsp+1E8h+var_1E0] mov [rdi], rbp mov rsi, rbx mov edx, 20h ; ' ' call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char) mov rsi, [rsp+1E8h+var_1E0] mov rdx, [rsp+1E8h+var_1D8] lea rdi, [rsp+1E8h+var_1A8] call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rsi, asc_155D04; "^\n" mov edx, 2 mov rdi, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rdi, [rsp+1E8h+var_1E0]; void * cmp rdi, rbp jz short loc_DF854 mov rsi, [rsp+1E8h+var_1D0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_DF854: cmp r12, r15 jge loc_DF900 mov r15, [r14] cmp r12, 0FFFFFFFFFFFFFFFDh ja short loc_DF897 lea r13, [rsp+1E8h+var_1E1] mov rbx, [rsp+1E8h+var_1B8] loc_DF870: mov rsi, [r14] add rsi, [r14+8] mov [rsp+1E8h+var_1E1], 0Ah mov rdi, r15 mov rdx, r13 call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIS2_EEET_SE_SE_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>,std::random_access_iterator_tag) mov r15, rax inc r15 dec rbx jnz short loc_DF870 mov rsi, [r14] jmp short loc_DF89A loc_DF897: mov rsi, r15 loc_DF89A: add rsi, [r14+8] lea rdx, [rsp+1E8h+var_1E1] mov byte ptr [rdx], 0Ah mov rdi, r15 call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIS2_EEET_SE_SE_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>,std::random_access_iterator_tag) lea rdi, [rsp+1E8h+var_1E0] mov [rdi], rbp mov rsi, r15 mov rdx, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag) mov rsi, [rsp+1E8h+var_1E0] mov rdx, [rsp+1E8h+var_1D8] lea rdi, [rsp+1E8h+var_1A8] call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rsi, aDataDone+0Dh; "\n" mov edx, 1 mov rdi, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rdi, [rsp+1E8h+var_1E0]; void * cmp rdi, rbp jz short loc_DF900 mov rsi, [rsp+1E8h+var_1D0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_DF900: lea rsi, [rsp+1E8h+var_1A0] mov rdi, [rsp+1E8h+var_1B0] call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+1E8h+var_1A8] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream() lea rdi, [rsp+1E8h+var_138]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() add rsp, 1B8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_DF969 jmp short loc_DF969 jmp short loc_DF94D jmp short loc_DF969 jmp short loc_DF969 jmp short loc_DF94D jmp short $+2 loc_DF94D: mov rbx, rax mov rdi, [rsp+arg_0]; void * cmp rdi, rbp jz short loc_DF96C mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_DF96C loc_DF969: mov rbx, rax loc_DF96C: mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+arg_38] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream() lea rdi, [rsp+arg_A8]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov rdi, rbx call __Unwind_Resume
void minja::error_location_suffix(long long a1, long long a2, long long a3) { _BYTE *v4; // rsi long long v5; // rax long long v6; // rcx long long v7; // r12 long long v8; // rcx long long v9; // r15 long long v10; // r13 long long v11; // rbp long long v12; // rbx long long v13; // rax _BYTE *v14; // r13 _BYTE *v15; // rsi long long v16; // rbp long long v17; // rsi _BYTE *v18; // rsi long long v19; // rax long long v20; // rax _BYTE *v21; // r13 long long v22; // rbx long long v23; // rsi _BYTE *v24; // rsi _BYTE *v25; // rsi long long v26; // rax long long v27; // rax long long v28; // rax _BYTE *v29; // r15 unsigned long long v30; // rbx long long v31; // rsi _BYTE *v32; // rsi _BYTE *v33; // rsi long long v34; // rax long long v35; // rax char v36; // [rsp+7h] [rbp-1E1h] BYREF void *v37; // [rsp+8h] [rbp-1E0h] BYREF long long v38; // [rsp+10h] [rbp-1D8h] _QWORD v39[2]; // [rsp+18h] [rbp-1D0h] BYREF long long v40; // [rsp+28h] [rbp-1C0h] unsigned long long v41; // [rsp+30h] [rbp-1B8h] long long v42; // [rsp+38h] [rbp-1B0h] _QWORD *v43; // [rsp+40h] [rbp-1A8h] BYREF char v44[8]; // [rsp+48h] [rbp-1A0h] BYREF _QWORD v45[12]; // [rsp+50h] [rbp-198h] BYREF char v46[312]; // [rsp+B0h] [rbp-138h] BYREF v42 = a1; v4 = *(_BYTE **)a2; v5 = *(_QWORD *)(a2 + 8); if ( a3 ) { v6 = 0LL; v7 = 0LL; do v7 += v4[v6++] == 10; while ( a3 != v6 ); } else { v7 = 0LL; } v40 = a3; if ( v5 ) { v8 = 0LL; v9 = 0LL; do v9 += v4[v8++] == 10; while ( v5 != v8 ); } else { v9 = 0LL; } v43 = v45; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>((long long)&v43, v4, (long long)&v4[a3]); v10 = std::string::rfind(&v43, 10LL, -1LL); if ( v43 != v45 ) operator delete(v43, v45[0] + 1LL); std::ostringstream::basic_ostringstream(&v43); std::__ostream_insert<char,std::char_traits<char>>(&v43, " at row ", 8LL); v41 = v7 + 1; v11 = std::ostream::_M_insert<long>(&v43); std::__ostream_insert<char,std::char_traits<char>>(v11, ", column ", 9LL); v12 = v40 - v10; v13 = std::ostream::_M_insert<unsigned long>(v11, v40 - v10); std::__ostream_insert<char,std::char_traits<char>>(v13, ":\n", 2LL); if ( v7 > 0 ) { v14 = *(_BYTE **)a2; if ( v7 == 1 ) { v15 = *(_BYTE **)a2; } else { v16 = v7 - 1; do { v17 = *(_QWORD *)(a2 + 8) + *(_QWORD *)a2; v36 = 10; v14 = (_BYTE *)(std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>( v14, v17, &v36) + 1); --v16; } while ( v16 ); v15 = *(_BYTE **)a2; } v18 = &v15[*(_QWORD *)(a2 + 8)]; v36 = 10; v19 = std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>( v14, v18, &v36); v37 = v39; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>((long long)&v37, v14, v19); v20 = std::__ostream_insert<char,std::char_traits<char>>(&v43, v37, v38); std::__ostream_insert<char,std::char_traits<char>>(v20, "\n", 1LL); if ( v37 != v39 ) operator delete(v37, v39[0] + 1LL); } v21 = *(_BYTE **)a2; if ( v41 < 2 ) { v24 = *(_BYTE **)a2; } else { v40 = v12; v22 = v7; do { v23 = *(_QWORD *)(a2 + 8) + *(_QWORD *)a2; v36 = 10; v21 = (_BYTE *)(std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>( v21, v23, &v36) + 1); --v22; } while ( v22 ); v24 = *(_BYTE **)a2; v12 = v40; } v25 = &v24[*(_QWORD *)(a2 + 8)]; v36 = 10; v26 = std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>( v21, v25, &v36); v37 = v39; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>((long long)&v37, v21, v26); v27 = std::__ostream_insert<char,std::char_traits<char>>(&v43, v37, v38); std::__ostream_insert<char,std::char_traits<char>>(v27, "\n", 1LL); if ( v37 != v39 ) operator delete(v37, v39[0] + 1LL); v37 = v39; std::string::_M_construct(&v37, v12 - 1, 32LL); v28 = std::__ostream_insert<char,std::char_traits<char>>(&v43, v37, v38); std::__ostream_insert<char,std::char_traits<char>>(v28, "^\n", 2LL); if ( v37 != v39 ) operator delete(v37, v39[0] + 1LL); if ( v7 < v9 ) { v29 = *(_BYTE **)a2; if ( (unsigned long long)v7 > 0xFFFFFFFFFFFFFFFDLL ) { v32 = *(_BYTE **)a2; } else { v30 = v41; do { v31 = *(_QWORD *)(a2 + 8) + *(_QWORD *)a2; v36 = 10; v29 = (_BYTE *)(std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>( v29, v31, &v36) + 1); --v30; } while ( v30 ); v32 = *(_BYTE **)a2; } v33 = &v32[*(_QWORD *)(a2 + 8)]; v36 = 10; v34 = std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>( v29, v33, &v36); v37 = v39; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>((long long)&v37, v29, v34); v35 = std::__ostream_insert<char,std::char_traits<char>>(&v43, v37, v38); std::__ostream_insert<char,std::char_traits<char>>(v35, "\n", 1LL); if ( v37 != v39 ) operator delete(v37, v39[0] + 1LL); } std::stringbuf::str(v42, v44); std::ostringstream::~ostringstream(&v43, &`VTT for'std::ostringstream); std::ios_base::~ios_base((std::ios_base *)v46); }
error_location_suffix: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x1b8 MOV R8,RDX MOV R14,RSI MOV qword ptr [RSP + 0x38],RDI MOV RSI,qword ptr [RSI] MOV RAX,qword ptr [R14 + 0x8] TEST RDX,RDX JZ 0x001df5b6 XOR ECX,ECX XOR R12D,R12D LAB_001df5a0: XOR EDX,EDX CMP byte ptr [RSI + RCX*0x1],0xa SETZ DL ADD R12,RDX INC RCX CMP R8,RCX JNZ 0x001df5a0 JMP 0x001df5b9 LAB_001df5b6: XOR R12D,R12D LAB_001df5b9: LEA RDX,[RSI + R8*0x1] TEST RAX,RAX MOV qword ptr [RSP + 0x28],R8 JZ 0x001df5e3 XOR ECX,ECX XOR R15D,R15D LAB_001df5cc: XOR EDI,EDI CMP byte ptr [RSI + RCX*0x1],0xa SETZ DIL ADD R15,RDI INC RCX CMP RAX,RCX JNZ 0x001df5cc JMP 0x001df5e6 LAB_001df5e3: XOR R15D,R15D LAB_001df5e6: LEA RBP,[RSP + 0x50] MOV qword ptr [RBP + -0x10],RBP LEA RBX,[RSP + 0x40] MOV RDI,RBX CALL 0x0016de64 MOV RDI,RBX MOV ESI,0xa MOV RDX,-0x1 CALL 0x00120570 MOV R13,RAX MOV RDI,qword ptr [RBX] CMP RDI,RBP JZ 0x001df628 MOV RSI,qword ptr [RSP + 0x50] INC RSI CALL 0x0011fae0 LAB_001df628: LEA RBX,[RSP + 0x40] MOV RDI,RBX CALL 0x0011fe60 LAB_001df635: LEA RSI,[0x255cfb] MOV EDX,0x8 MOV RDI,RBX CALL 0x0011fc50 MOV RBX,qword ptr [RSP + 0x28] LEA RSI,[R12 + 0x1] LEA RDI,[RSP + 0x40] MOV qword ptr [RSP + 0x30],RSI CALL 0x0011fa30 MOV RBP,RAX LEA RSI,[0x249475] MOV EDX,0x9 MOV RDI,RAX CALL 0x0011fc50 SUB RBX,R13 MOV RDI,RBP MOV RSI,RBX CALL 0x0011f740 LEA RSI,[0x25b043] MOV EDX,0x2 MOV RDI,RAX CALL 0x0011fc50 TEST R12,R12 JLE 0x001df74a MOV R13,qword ptr [R14] CMP R12,0x1 JNZ 0x001df6b2 MOV RSI,R13 JMP 0x001df6de LAB_001df6b2: LEA RBP,[R12 + -0x1] LAB_001df6b7: MOV RSI,qword ptr [R14] ADD RSI,qword ptr [R14 + 0x8] MOV byte ptr [RSP + 0x7],0xa MOV RDI,R13 LEA RDX,[RSP + 0x7] CALL 0x0020390f MOV R13,RAX INC R13 DEC RBP JNZ 0x001df6b7 MOV RSI,qword ptr [R14] LAB_001df6de: ADD RSI,qword ptr [R14 + 0x8] LEA RDX,[RSP + 0x7] MOV byte ptr [RDX],0xa MOV RDI,R13 CALL 0x0020390f LEA RBP,[RSP + 0x18] MOV qword ptr [RBP + -0x10],RBP LAB_001df6fb: LEA RDI,[RSP + 0x8] MOV RSI,R13 MOV RDX,RAX CALL 0x0016de64 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_001df715: LEA RDI,[RSP + 0x40] CALL 0x0011fc50 LEA RSI,[0x249cc4] MOV EDX,0x1 MOV RDI,RAX CALL 0x0011fc50 MOV RDI,qword ptr [RSP + 0x8] CMP RDI,RBP JZ 0x001df74a MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011fae0 LAB_001df74a: MOV R13,qword ptr [R14] CMP qword ptr [RSP + 0x30],0x2 JC 0x001df78e MOV qword ptr [RSP + 0x28],RBX LEA RBP,[RSP + 0x7] MOV RBX,R12 LAB_001df762: MOV RSI,qword ptr [R14] ADD RSI,qword ptr [R14 + 0x8] MOV byte ptr [RSP + 0x7],0xa MOV RDI,R13 MOV RDX,RBP CALL 0x0020390f MOV R13,RAX INC R13 DEC RBX JNZ 0x001df762 MOV RSI,qword ptr [R14] MOV RBX,qword ptr [RSP + 0x28] JMP 0x001df791 LAB_001df78e: MOV RSI,R13 LAB_001df791: ADD RSI,qword ptr [R14 + 0x8] LEA RDX,[RSP + 0x7] MOV byte ptr [RDX],0xa MOV RDI,R13 CALL 0x0020390f LEA RBP,[RSP + 0x18] MOV qword ptr [RBP + -0x10],RBP LAB_001df7ae: LEA RDI,[RSP + 0x8] MOV RSI,R13 MOV RDX,RAX CALL 0x0016de64 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_001df7c8: LEA RDI,[RSP + 0x40] CALL 0x0011fc50 LEA RSI,[0x249cc4] MOV EDX,0x1 MOV RDI,RAX CALL 0x0011fc50 MOV RDI,qword ptr [RSP + 0x8] CMP RDI,RBP JZ 0x001df7fd MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011fae0 LAB_001df7fd: DEC RBX LEA RDI,[RSP + 0x8] MOV qword ptr [RDI],RBP LAB_001df808: MOV RSI,RBX MOV EDX,0x20 CALL 0x0011fc80 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_001df81f: LEA RDI,[RSP + 0x40] CALL 0x0011fc50 LEA RSI,[0x255d04] MOV EDX,0x2 MOV RDI,RAX CALL 0x0011fc50 MOV RDI,qword ptr [RSP + 0x8] CMP RDI,RBP JZ 0x001df854 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011fae0 LAB_001df854: CMP R12,R15 JGE 0x001df900 MOV R15,qword ptr [R14] CMP R12,-0x3 JA 0x001df897 LEA R13,[RSP + 0x7] MOV RBX,qword ptr [RSP + 0x30] LAB_001df870: MOV RSI,qword ptr [R14] ADD RSI,qword ptr [R14 + 0x8] MOV byte ptr [RSP + 0x7],0xa MOV RDI,R15 MOV RDX,R13 CALL 0x0020390f MOV R15,RAX INC R15 DEC RBX JNZ 0x001df870 MOV RSI,qword ptr [R14] JMP 0x001df89a LAB_001df897: MOV RSI,R15 LAB_001df89a: ADD RSI,qword ptr [R14 + 0x8] LEA RDX,[RSP + 0x7] MOV byte ptr [RDX],0xa MOV RDI,R15 CALL 0x0020390f LEA RDI,[RSP + 0x8] MOV qword ptr [RDI],RBP LAB_001df8b6: MOV RSI,R15 MOV RDX,RAX CALL 0x0016de64 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_001df8cb: LEA RDI,[RSP + 0x40] CALL 0x0011fc50 LEA RSI,[0x249cc4] MOV EDX,0x1 MOV RDI,RAX CALL 0x0011fc50 MOV RDI,qword ptr [RSP + 0x8] CMP RDI,RBP JZ 0x001df900 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011fae0 LAB_001df900: LEA RSI,[RSP + 0x48] LAB_001df905: MOV RDI,qword ptr [RSP + 0x38] CALL 0x00120110 LAB_001df90f: MOV RSI,qword ptr [0x002a4f70] LEA RDI,[RSP + 0x40] CALL 0x0011f5c0 LEA RDI,[RSP + 0xb0] CALL 0x0011f380 ADD RSP,0x1b8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* minja::error_location_suffix(std::__cxx11::string const&, unsigned long) */ void __thiscall minja::error_location_suffix(minja *this,string *param_1,ulong param_2) { long lVar1; ostream *poVar2; int8 uVar3; ulong uVar4; long lVar5; ulong uVar6; long lVar7; ulong uVar8; long lVar9; int1 local_1e1; long *local_1e0; long local_1d8; long local_1d0 [2]; ulong local_1c0; ulong local_1b8; minja *local_1b0; long *local_1a8 [2]; long local_198 [12]; ios_base local_138 [264]; lVar1 = *(long *)param_1; if (param_2 == 0) { uVar8 = 0; } else { uVar4 = 0; uVar8 = 0; do { uVar8 = uVar8 + (*(char *)(lVar1 + uVar4) == '\n'); uVar4 = uVar4 + 1; } while (param_2 != uVar4); } if (*(long *)(param_1 + 8) == 0) { lVar9 = 0; } else { lVar5 = 0; lVar9 = 0; do { lVar9 = lVar9 + (ulong)(*(char *)(lVar1 + lVar5) == '\n'); lVar5 = lVar5 + 1; } while (*(long *)(param_1 + 8) != lVar5); } local_1c0 = param_2; local_1b0 = this; local_1a8[0] = local_198; std::__cxx11::string::_M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>> (local_1a8,lVar1,lVar1 + param_2); lVar1 = std::__cxx11::string::rfind((char)local_1a8,10); if (local_1a8[0] != local_198) { operator_delete(local_1a8[0],local_198[0] + 1); } std::__cxx11::ostringstream::ostringstream((ostringstream *)local_1a8); /* try { // try from 001df635 to 001df69a has its CatchHandler @ 001df969 */ std::__ostream_insert<char,std::char_traits<char>>((ostream *)local_1a8," at row ",8); uVar4 = local_1c0; local_1b8 = uVar8 + 1; poVar2 = std::ostream::_M_insert<long>((long)local_1a8); std::__ostream_insert<char,std::char_traits<char>>(poVar2,", column ",9); uVar4 = uVar4 - lVar1; poVar2 = std::ostream::_M_insert<unsigned_long>((ulong)poVar2); std::__ostream_insert<char,std::char_traits<char>>(poVar2,":\n",2); if (0 < (long)uVar8) { lVar1 = *(long *)param_1; lVar5 = lVar1; if (uVar8 != 1) { lVar7 = uVar8 - 1; do { local_1e1 = 10; lVar5 = std:: __find_if<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,__gnu_cxx::__ops::_Iter_equals_val<char_const>> (lVar5,*(long *)param_1 + *(long *)(param_1 + 8),&local_1e1); lVar5 = lVar5 + 1; lVar7 = lVar7 + -1; } while (lVar7 != 0); lVar1 = *(long *)param_1; } local_1e1 = 10; uVar3 = std:: __find_if<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,__gnu_cxx::__ops::_Iter_equals_val<char_const>> (lVar5,lVar1 + *(long *)(param_1 + 8)); /* try { // try from 001df6fb to 001df70a has its CatchHandler @ 001df941 */ local_1e0 = local_1d0; std::__cxx11::string:: _M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>> (&local_1e0,lVar5,uVar3); /* try { // try from 001df715 to 001df732 has its CatchHandler @ 001df949 */ poVar2 = std::__ostream_insert<char,std::char_traits<char>> ((ostream *)local_1a8,(char *)local_1e0,local_1d8); std::__ostream_insert<char,std::char_traits<char>>(poVar2,"\n",1); if (local_1e0 != local_1d0) { operator_delete(local_1e0,local_1d0[0] + 1); } } lVar1 = *(long *)param_1; lVar5 = lVar1; if (1 < local_1b8) { uVar6 = uVar8; local_1c0 = uVar4; do { local_1e1 = 10; lVar5 = std:: __find_if<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,__gnu_cxx::__ops::_Iter_equals_val<char_const>> (lVar5,*(long *)param_1 + *(long *)(param_1 + 8),&local_1e1); lVar5 = lVar5 + 1; uVar6 = uVar6 - 1; } while (uVar6 != 0); lVar1 = *(long *)param_1; uVar4 = local_1c0; } local_1e1 = 10; uVar3 = std:: __find_if<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,__gnu_cxx::__ops::_Iter_equals_val<char_const>> (lVar5,lVar1 + *(long *)(param_1 + 8)); /* try { // try from 001df7ae to 001df7bd has its CatchHandler @ 001df947 */ local_1e0 = local_1d0; std::__cxx11::string::_M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>> (&local_1e0,lVar5,uVar3); /* try { // try from 001df7c8 to 001df7e5 has its CatchHandler @ 001df94d */ poVar2 = std::__ostream_insert<char,std::char_traits<char>> ((ostream *)local_1a8,(char *)local_1e0,local_1d8); std::__ostream_insert<char,std::char_traits<char>>(poVar2,"\n",1); if (local_1e0 != local_1d0) { operator_delete(local_1e0,local_1d0[0] + 1); } local_1e0 = local_1d0; /* try { // try from 001df808 to 001df814 has its CatchHandler @ 001df945 */ std::__cxx11::string::_M_construct((ulong)&local_1e0,(char)uVar4 + -1); /* try { // try from 001df81f to 001df83c has its CatchHandler @ 001df94b */ poVar2 = std::__ostream_insert<char,std::char_traits<char>> ((ostream *)local_1a8,(char *)local_1e0,local_1d8); std::__ostream_insert<char,std::char_traits<char>>(poVar2,"^\n",2); if (local_1e0 != local_1d0) { operator_delete(local_1e0,local_1d0[0] + 1); } if ((long)uVar8 < lVar9) { lVar1 = *(long *)param_1; lVar9 = lVar1; if (uVar8 < 0xfffffffffffffffe) { uVar8 = local_1b8; do { local_1e1 = 10; lVar9 = std:: __find_if<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,__gnu_cxx::__ops::_Iter_equals_val<char_const>> (lVar9,*(long *)param_1 + *(long *)(param_1 + 8),&local_1e1); lVar9 = lVar9 + 1; uVar8 = uVar8 - 1; } while (uVar8 != 0); lVar1 = *(long *)param_1; } local_1e1 = 10; uVar3 = std:: __find_if<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,__gnu_cxx::__ops::_Iter_equals_val<char_const>> (lVar9,lVar1 + *(long *)(param_1 + 8)); local_1e0 = local_1d0; /* try { // try from 001df8b6 to 001df8c0 has its CatchHandler @ 001df93f */ std::__cxx11::string:: _M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>> (&local_1e0,lVar9,uVar3); /* try { // try from 001df8cb to 001df8e8 has its CatchHandler @ 001df943 */ poVar2 = std::__ostream_insert<char,std::char_traits<char>> ((ostream *)local_1a8,(char *)local_1e0,local_1d8); std::__ostream_insert<char,std::char_traits<char>>(poVar2,"\n",1); if (local_1e0 != local_1d0) { operator_delete(local_1e0,local_1d0[0] + 1); } } /* try { // try from 001df905 to 001df90e has its CatchHandler @ 001df969 */ std::__cxx11::stringbuf::str(); std::__cxx11::ostringstream::~ostringstream((ostringstream *)local_1a8); std::ios_base::~ios_base(local_138); return; }
27,677
minja::Value& nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::operator[]<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 0>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/common/json.hpp
T & operator[](KeyType && key) { return emplace(std::forward<KeyType>(key), T{}).first->second; }
O1
cpp
minja::Value& nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::operator[]<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 0>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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 0x59800 movq %r14, %rdi movl $0x1, %esi callq 0x59800 movq %rsp, %rdx movq %r15, %rdi movq %rbx, %rsi callq 0x8efa6 movq %rax, %rbx movq %r14, %rdi xorl %esi, %esi callq 0x59800 movq %r14, %rdi callq 0x5efec movq 0x38(%rsp), %rdi testq %rdi, %rdi je 0x8e5dd callq 0x6e958 movq 0x28(%rsp), %rdi testq %rdi, %rdi je 0x8e5ec callq 0x6e958 movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0x8e5fb callq 0x6e958 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x8e631 movq 0xa097c(%rip), %rax # 0x12ef88 cmpb $0x0, (%rax) je 0x8e61c movl 0xc(%rdi), %eax leal -0x1(%rax), %ecx movl %ecx, 0xc(%rdi) jmp 0x8e626 movl $0xffffffff, %eax # imm = 0xFFFFFFFF lock xaddl %eax, 0xc(%rdi) cmpl $0x1, %eax jne 0x8e631 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 0x87f62 movq %rbx, %rdi callq 0x1bfb0 nop
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_: 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_EEE7emplaceIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEESI_IN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEEbEOST_OSF_ 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_8E5DD call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_8E5DD: mov rdi, [rsp+68h+var_40] test rdi, rdi jz short loc_8E5EC call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_8E5EC: mov rdi, [rsp+68h+var_50] test rdi, rdi jz short loc_8E5FB call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_8E5FB: mov rdi, [rsp+68h+var_60] test rdi, rdi jz short loc_8E631 mov rax, cs:__libc_single_threaded_ptr cmp byte ptr [rax], 0 jz short loc_8E61C mov eax, [rdi+0Ch] lea ecx, [rax-1] mov [rdi+0Ch], ecx jmp short loc_8E626 loc_8E61C: mov eax, 0FFFFFFFFh lock xadd [rdi+0Ch], eax loc_8E626: cmp eax, 1 jnz short loc_8E631 mov rax, [rdi] call qword ptr [rax+18h] loc_8E631: 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 ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_( 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 = ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEESI_IN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEEbEOST_OSF_( 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; }
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_: 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 0x00159800 MOV RDI,R14 MOV ESI,0x1 CALL 0x00159800 LAB_0018e5ab: MOV RDX,RSP MOV RDI,R15 MOV RSI,RBX CALL 0x0018efa6 LAB_0018e5b9: MOV RBX,RAX MOV RDI,R14 XOR ESI,ESI CALL 0x00159800 MOV RDI,R14 CALL 0x0015efec MOV RDI,qword ptr [RSP + 0x38] TEST RDI,RDI JZ 0x0018e5dd CALL 0x0016e958 LAB_0018e5dd: MOV RDI,qword ptr [RSP + 0x28] TEST RDI,RDI JZ 0x0018e5ec CALL 0x0016e958 LAB_0018e5ec: MOV RDI,qword ptr [RSP + 0x18] TEST RDI,RDI JZ 0x0018e5fb CALL 0x0016e958 LAB_0018e5fb: MOV RDI,qword ptr [RSP + 0x8] TEST RDI,RDI JZ 0x0018e631 MOV RAX,qword ptr [0x0022ef88] CMP byte ptr [RAX],0x0 JZ 0x0018e61c MOV EAX,dword ptr [RDI + 0xc] LEA ECX,[RAX + -0x1] MOV dword ptr [RDI + 0xc],ECX JMP 0x0018e626 LAB_0018e61c: MOV EAX,0xffffffff XADD.LOCK dword ptr [RDI + 0xc],EAX LAB_0018e626: CMP EAX,0x1 JNZ 0x0018e631 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x18] LAB_0018e631: ADD RBX,0x10 MOV RAX,RBX ADD RSP,0x50 POP RBX POP R14 POP R15 RET
long _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_ (int8 param_1,int8 param_2) { 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); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar4); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar4); /* try { // try from 0018e5ab to 0018e5b8 has its CatchHandler @ 0018e642 */ lVar3 = _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEESI_IN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEEbEOST_OSF_ (param_1,param_2,&local_68); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar4); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_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_0022ef88 == '\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; }
27,678
end_io_cache
eloqsql/mysys/mf_iocache.c
int end_io_cache(IO_CACHE *info) { int error=0; DBUG_ENTER("end_io_cache"); DBUG_PRINT("enter",("cache: %p", info)); /* Every thread must call remove_io_thread(). The last one destroys the share elements. */ DBUG_ASSERT(!info->share || !info->share->total_threads); if (info->alloced_buffer) { info->alloced_buffer=0; if (info->file != -1) /* File doesn't exist */ error= my_b_flush_io_cache(info,1); my_free(info->buffer); info->buffer=info->read_pos=(uchar*) 0; } if (info->type == SEQ_READ_APPEND) { /* Destroy allocated mutex */ mysql_mutex_destroy(&info->append_buffer_lock); } info->share= 0; info->type= TYPE_NOT_SET; /* Ensure that flush_io_cache() does nothing */ info->write_end= 0; /* Ensure that my_b_write() fails */ info->write_function= 0; /* my_b_write will crash if used */ DBUG_RETURN(error); }
O3
c
end_io_cache: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx cmpq $0x0, 0x100(%rdi) je 0x5219c movq $0x0, 0x100(%rbx) cmpl $-0x1, 0xd4(%rbx) je 0x521a1 movq %rbx, %rdi movl $0x1, %esi callq 0x511b9 movl %eax, %r14d jmp 0x521a4 xorl %r14d, %r14d jmp 0x521b7 xorl %r14d, %r14d movq 0x20(%rbx), %rdi callq 0x5d2ca xorl %eax, %eax movq %rax, 0x10(%rbx) movq %rax, 0x20(%rbx) cmpl $0x3, 0xb0(%rbx) jne 0x521f0 leaq 0x50(%rbx), %r15 movq 0x90(%rbx), %rdi testq %rdi, %rdi je 0x521e8 leaq 0x2e46f1(%rip), %rax # 0x3368c8 movq (%rax), %rax callq *0x48(%rax) movq $0x0, 0x90(%rbx) movq %r15, %rdi callq 0x28470 xorl %eax, %eax movq %rax, 0x98(%rbx) movl $0x0, 0xb0(%rbx) movq %rax, 0x48(%rbx) movq %rax, 0xa8(%rbx) movl %r14d, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
end_io_cache: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, rdi cmp qword ptr [rdi+100h], 0 jz short loc_5219C mov qword ptr [rbx+100h], 0 cmp dword ptr [rbx+0D4h], 0FFFFFFFFh jz short loc_521A1 mov rdi, rbx mov esi, 1 call my_b_flush_io_cache mov r14d, eax jmp short loc_521A4 loc_5219C: xor r14d, r14d jmp short loc_521B7 loc_521A1: xor r14d, r14d loc_521A4: mov rdi, [rbx+20h] call my_free xor eax, eax mov [rbx+10h], rax mov [rbx+20h], rax loc_521B7: cmp dword ptr [rbx+0B0h], 3 jnz short loc_521F0 lea r15, [rbx+50h] mov rdi, [rbx+90h] test rdi, rdi jz short loc_521E8 lea rax, PSI_server mov rax, [rax] call qword ptr [rax+48h] mov qword ptr [rbx+90h], 0 loc_521E8: mov rdi, r15 call _pthread_mutex_destroy loc_521F0: xor eax, eax mov [rbx+98h], rax mov dword ptr [rbx+0B0h], 0 mov [rbx+48h], rax mov [rbx+0A8h], rax mov eax, r14d add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long end_io_cache(long long a1) { unsigned int v2; // r14d long long v3; // rdi if ( *(_QWORD *)(a1 + 256) ) { *(_QWORD *)(a1 + 256) = 0LL; if ( *(_DWORD *)(a1 + 212) == -1 ) v2 = 0; else v2 = my_b_flush_io_cache((long long *)a1, 1); my_free(*(_QWORD *)(a1 + 32)); *(_QWORD *)(a1 + 16) = 0LL; *(_QWORD *)(a1 + 32) = 0LL; } else { v2 = 0; } if ( *(_DWORD *)(a1 + 176) == 3 ) { v3 = *(_QWORD *)(a1 + 144); if ( v3 ) { (*((void ( **)(long long))PSI_server + 9))(v3); *(_QWORD *)(a1 + 144) = 0LL; } pthread_mutex_destroy(a1 + 80); } *(_QWORD *)(a1 + 152) = 0LL; *(_DWORD *)(a1 + 176) = 0; *(_QWORD *)(a1 + 72) = 0LL; *(_QWORD *)(a1 + 168) = 0LL; return v2; }
end_io_cache: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI CMP qword ptr [RDI + 0x100],0x0 JZ 0x0015219c MOV qword ptr [RBX + 0x100],0x0 CMP dword ptr [RBX + 0xd4],-0x1 JZ 0x001521a1 MOV RDI,RBX MOV ESI,0x1 CALL 0x001511b9 MOV R14D,EAX JMP 0x001521a4 LAB_0015219c: XOR R14D,R14D JMP 0x001521b7 LAB_001521a1: XOR R14D,R14D LAB_001521a4: MOV RDI,qword ptr [RBX + 0x20] CALL 0x0015d2ca XOR EAX,EAX MOV qword ptr [RBX + 0x10],RAX MOV qword ptr [RBX + 0x20],RAX LAB_001521b7: CMP dword ptr [RBX + 0xb0],0x3 JNZ 0x001521f0 LEA R15,[RBX + 0x50] MOV RDI,qword ptr [RBX + 0x90] TEST RDI,RDI JZ 0x001521e8 LEA RAX,[0x4368c8] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x48] MOV qword ptr [RBX + 0x90],0x0 LAB_001521e8: MOV RDI,R15 CALL 0x00128470 LAB_001521f0: XOR EAX,EAX MOV qword ptr [RBX + 0x98],RAX MOV dword ptr [RBX + 0xb0],0x0 MOV qword ptr [RBX + 0x48],RAX MOV qword ptr [RBX + 0xa8],RAX MOV EAX,R14D ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
int4 end_io_cache(long param_1) { int4 uVar1; if (*(long *)(param_1 + 0x100) == 0) { uVar1 = 0; } else { *(int8 *)(param_1 + 0x100) = 0; if (*(int *)(param_1 + 0xd4) == -1) { uVar1 = 0; } else { uVar1 = my_b_flush_io_cache(param_1,1); } my_free(*(int8 *)(param_1 + 0x20)); *(int8 *)(param_1 + 0x10) = 0; *(int8 *)(param_1 + 0x20) = 0; } if (*(int *)(param_1 + 0xb0) == 3) { if (*(long *)(param_1 + 0x90) != 0) { (**(code **)(PSI_server + 0x48))(); *(int8 *)(param_1 + 0x90) = 0; } pthread_mutex_destroy((pthread_mutex_t *)(param_1 + 0x50)); } *(int8 *)(param_1 + 0x98) = 0; *(int4 *)(param_1 + 0xb0) = 0; *(int8 *)(param_1 + 0x48) = 0; *(int8 *)(param_1 + 0xa8) = 0; return uVar1; }
27,679
std::hash<minja::Value>::operator()(minja::Value const&) const
monkey531[P]llama/common/minja.hpp
size_t operator()(const minja::Value & v) const { if (!v.is_hashable()) throw std::runtime_error("Unsupported type for hashing: " + v.dump()); return std::hash<json>()(v.get<json>()); }
O2
cpp
std::hash<minja::Value>::operator()(minja::Value const&) const: pushq %rbp pushq %r14 pushq %rbx subq $0x40, %rsp movq %rsi, %r14 movq %rsi, %rdi callq 0x4dcb6 testb %al, %al je 0x75282 movq %rsp, %rbx movq %rbx, %rdi movq %r14, %rsi callq 0x7531e movq %rbx, %rdi callq 0x756d2 movq %rax, %rbx movq %rsp, %rdi callq 0x46ce8 movq %rbx, %rax addq $0x40, %rsp popq %rbx popq %r14 popq %rbp retq pushq $0x10 popq %rdi callq 0x223e0 movq %rax, %rbx leaq 0x20(%rsp), %rdi pushq $-0x1 popq %rdx movq %r14, %rsi xorl %ecx, %ecx callq 0x4dcc6 leaq 0x2b203(%rip), %rsi # 0xa04a9 movq %rsp, %rdi leaq 0x20(%rsp), %rdx callq 0x3a58f movb $0x1, %bpl movq %rsp, %rsi movq %rbx, %rdi callq 0x22c80 xorl %ebp, %ebp movq 0x6dd26(%rip), %rsi # 0xe2ff0 movq 0x6dc97(%rip), %rdx # 0xe2f68 movq %rbx, %rdi callq 0x22d40 movq %rax, %r14 movq %rsp, %rdi callq 0x22f98 jmp 0x752ec movq %rax, %r14 movb $0x1, %bpl leaq 0x20(%rsp), %rdi callq 0x22f98 testb %bpl, %bpl jne 0x75300 jmp 0x75315 movq %rax, %r14 movq %rbx, %rdi callq 0x225c0 jmp 0x75315 movq %rax, %r14 movq %rsp, %rdi callq 0x46ce8 movq %r14, %rdi callq 0x22da0 nop
_ZNKSt4hashIN5minja5ValueEEclERKS1_: push rbp push r14 push rbx sub rsp, 40h mov r14, rsi mov rdi, rsi; this call _ZNK5minja5Value12is_primitiveEv; minja::Value::is_primitive(void) test al, al jz short loc_75282 mov rbx, rsp mov rdi, rbx mov rsi, r14 call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(void) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail4hashINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEmRKT_; nlohmann::json_abi_v3_11_3::detail::hash<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&) mov rbx, rax mov rdi, rsp 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 rax, rbx add rsp, 40h pop rbx pop r14 pop rbp retn loc_75282: push 10h pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rdi, [rsp+58h+var_38] push 0FFFFFFFFFFFFFFFFh pop rdx mov rsi, r14 xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aUnsupportedTyp; "Unsupported type for hashing: " mov rdi, rsp lea rdx, [rsp+58h+var_38] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 mov rsi, rsp mov rdi, rbx call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax mov rdi, rsp; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_752EC mov r14, rax mov bpl, 1 loc_752EC: lea rdi, [rsp+58h+var_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_75300 jmp short loc_75315 mov r14, rax loc_75300: mov rdi, rbx; void * call ___cxa_free_exception jmp short loc_75315 mov r14, rax mov rdi, rsp 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_75315: mov rdi, r14 call __Unwind_Resume
long long std::hash<minja::Value>::operator()(long long a1, minja::Value *a2) { long long v2; // rbx void *exception; // rbx _BYTE v5[32]; // [rsp+0h] [rbp-58h] BYREF _BYTE v6[56]; // [rsp+20h] [rbp-38h] BYREF if ( !minja::Value::is_primitive(a2) ) { exception = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v6, (long long)a2, 0xFFFFFFFF, 0); std::operator+<char>((long long)v5, (long long)"Unsupported type for hashing: ", (long long)v6); std::runtime_error::runtime_error(exception, v5); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( v5, a2); v2 = nlohmann::json_abi_v3_11_3::detail::hash<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>>(v5); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v5); return v2; }
operator(): PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x40 MOV R14,RSI MOV RDI,RSI CALL 0x0014dcb6 TEST AL,AL JZ 0x00175282 MOV RBX,RSP MOV RDI,RBX MOV RSI,R14 CALL 0x0017531e LAB_00175263: MOV RDI,RBX CALL 0x001756d2 LAB_0017526b: MOV RBX,RAX MOV RDI,RSP CALL 0x00146ce8 MOV RAX,RBX ADD RSP,0x40 POP RBX POP R14 POP RBP RET LAB_00175282: PUSH 0x10 POP RDI CALL 0x001223e0 MOV RBX,RAX LAB_0017528d: LEA RDI,[RSP + 0x20] PUSH -0x1 POP RDX MOV RSI,R14 XOR ECX,ECX CALL 0x0014dcc6 LAB_0017529f: LEA RSI,[0x1a04a9] MOV RDI,RSP LEA RDX,[RSP + 0x20] CALL 0x0013a58f MOV BPL,0x1 LAB_001752b6: MOV RSI,RSP MOV RDI,RBX CALL 0x00122c80 XOR EBP,EBP MOV RSI,qword ptr [0x001e2ff0] MOV RDX,qword ptr [0x001e2f68] MOV RDI,RBX CALL 0x00122d40
/* std::hash<minja::Value>::TEMPNAMEPLACEHOLDERVALUE(minja::Value const&) const */ ulong __thiscall std::hash<minja::Value>::operator()(hash<minja::Value> *this,Value *param_1) { char cVar1; ulong uVar2; runtime_error *this_00; 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> abStack_58 [32]; int1 local_38 [32]; cVar1 = minja::Value::is_primitive(param_1); if (cVar1 != '\0') { minja::Value:: get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (); /* try { // try from 00175263 to 0017526a has its CatchHandler @ 0017530a */ uVar2 = nlohmann::json_abi_v3_11_3::detail:: hash<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>> (abStack_58); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json(abStack_58); return uVar2; } this_00 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0017528d to 0017529e has its CatchHandler @ 001752fd */ minja::Value::dump_abi_cxx11_((int)local_38,SUB81(param_1,0)); /* try { // try from 0017529f to 001752b2 has its CatchHandler @ 001752e6 */ operator+((char *)abStack_58,(string *)"Unsupported type for hashing: "); /* try { // try from 001752b6 to 001752d8 has its CatchHandler @ 001752d9 */ std::runtime_error::runtime_error(this_00,(string *)abStack_58); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_001e2ff0,PTR__runtime_error_001e2f68); }
27,680
MNN::DetectionOutput::Verify(flatbuffers::Verifier&) const
mnn-tts/MNN/schema/current/CaffeOp_generated.h
bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField<int32_t>(verifier, 4) && VerifyField<float>(verifier, 6) && VerifyField<int32_t>(verifier, 8) && VerifyField<int32_t>(verifier, 10) && VerifyField<float>(verifier, 12) && VerifyField<int32_t>(verifier, 14) && VerifyField<int32_t>(verifier, 16) && VerifyField<int32_t>(verifier, 18) && VerifyField<int32_t>(verifier, 20) && VerifyField<float>(verifier, 22) && verifier.EndTable(); }
O0
c
MNN::DetectionOutput::Verify(flatbuffers::Verifier&) const: subq $0x28, %rsp movq %rdi, 0x20(%rsp) movq %rsi, 0x18(%rsp) movq 0x20(%rsp), %rdi movq %rdi, 0x8(%rsp) movq 0x18(%rsp), %rsi callq 0x6d010 movb %al, %cl xorl %eax, %eax testb $0x1, %cl movb %al, 0x17(%rsp) jne 0x75b04 jmp 0x75c82 movq 0x8(%rsp), %rdi movq 0x18(%rsp), %rsi movl $0x4, %edx callq 0x6d570 movb %al, %cl xorl %eax, %eax testb $0x1, %cl movb %al, 0x17(%rsp) jne 0x75b2a jmp 0x75c82 movq 0x8(%rsp), %rdi movq 0x18(%rsp), %rsi movl $0x6, %edx callq 0x6f360 movb %al, %cl xorl %eax, %eax testb $0x1, %cl movb %al, 0x17(%rsp) jne 0x75b50 jmp 0x75c82 movq 0x8(%rsp), %rdi movq 0x18(%rsp), %rsi movl $0x8, %edx callq 0x6d570 movb %al, %cl xorl %eax, %eax testb $0x1, %cl movb %al, 0x17(%rsp) jne 0x75b76 jmp 0x75c82 movq 0x8(%rsp), %rdi movq 0x18(%rsp), %rsi movl $0xa, %edx callq 0x6d570 movb %al, %cl xorl %eax, %eax testb $0x1, %cl movb %al, 0x17(%rsp) jne 0x75b9c jmp 0x75c82 movq 0x8(%rsp), %rdi movq 0x18(%rsp), %rsi movl $0xc, %edx callq 0x6f360 movb %al, %cl xorl %eax, %eax testb $0x1, %cl movb %al, 0x17(%rsp) jne 0x75bc2 jmp 0x75c82 movq 0x8(%rsp), %rdi movq 0x18(%rsp), %rsi movl $0xe, %edx callq 0x6d570 movb %al, %cl xorl %eax, %eax testb $0x1, %cl movb %al, 0x17(%rsp) jne 0x75be8 jmp 0x75c82 movq 0x8(%rsp), %rdi movq 0x18(%rsp), %rsi movl $0x10, %edx callq 0x6d570 movb %al, %cl xorl %eax, %eax testb $0x1, %cl movb %al, 0x17(%rsp) jne 0x75c0b jmp 0x75c82 movq 0x8(%rsp), %rdi movq 0x18(%rsp), %rsi movl $0x12, %edx callq 0x6d570 movb %al, %cl xorl %eax, %eax testb $0x1, %cl movb %al, 0x17(%rsp) jne 0x75c2e jmp 0x75c82 movq 0x8(%rsp), %rdi movq 0x18(%rsp), %rsi movl $0x14, %edx callq 0x6d570 movb %al, %cl xorl %eax, %eax testb $0x1, %cl movb %al, 0x17(%rsp) jne 0x75c51 jmp 0x75c82 movq 0x8(%rsp), %rdi movq 0x18(%rsp), %rsi movl $0x16, %edx callq 0x6f360 movb %al, %cl xorl %eax, %eax testb $0x1, %cl movb %al, 0x17(%rsp) jne 0x75c74 jmp 0x75c82 movq 0x18(%rsp), %rdi callq 0x6d6f0 movb %al, 0x17(%rsp) movb 0x17(%rsp), %al andb $0x1, %al addq $0x28, %rsp retq nopl (%rax)
_ZNK3MNN15DetectionOutput6VerifyERN11flatbuffers8VerifierE: sub rsp, 28h mov [rsp+28h+var_8], rdi mov [rsp+28h+var_10], rsi mov rdi, [rsp+28h+var_8]; this mov [rsp+28h+var_20], rdi mov rsi, [rsp+28h+var_10]; flatbuffers::Verifier * call _ZNK11flatbuffers5Table16VerifyTableStartERNS_8VerifierE; flatbuffers::Table::VerifyTableStart(flatbuffers::Verifier &) mov cl, al xor eax, eax test cl, 1 mov [rsp+28h+var_11], al jnz short loc_75B04 jmp loc_75C82 loc_75B04: mov rdi, [rsp+28h+var_20] mov rsi, [rsp+28h+var_10] mov edx, 4 call _ZNK11flatbuffers5Table11VerifyFieldIiEEbRKNS_8VerifierEt; flatbuffers::Table::VerifyField<int>(flatbuffers::Verifier const&,ushort) mov cl, al xor eax, eax test cl, 1 mov [rsp+28h+var_11], al jnz short loc_75B2A jmp loc_75C82 loc_75B2A: mov rdi, [rsp+28h+var_20] mov rsi, [rsp+28h+var_10] mov edx, 6 call _ZNK11flatbuffers5Table11VerifyFieldIfEEbRKNS_8VerifierEt; flatbuffers::Table::VerifyField<float>(flatbuffers::Verifier const&,ushort) mov cl, al xor eax, eax test cl, 1 mov [rsp+28h+var_11], al jnz short loc_75B50 jmp loc_75C82 loc_75B50: mov rdi, [rsp+28h+var_20] mov rsi, [rsp+28h+var_10] mov edx, 8 call _ZNK11flatbuffers5Table11VerifyFieldIiEEbRKNS_8VerifierEt; flatbuffers::Table::VerifyField<int>(flatbuffers::Verifier const&,ushort) mov cl, al xor eax, eax test cl, 1 mov [rsp+28h+var_11], al jnz short loc_75B76 jmp loc_75C82 loc_75B76: mov rdi, [rsp+28h+var_20] mov rsi, [rsp+28h+var_10] mov edx, 0Ah call _ZNK11flatbuffers5Table11VerifyFieldIiEEbRKNS_8VerifierEt; flatbuffers::Table::VerifyField<int>(flatbuffers::Verifier const&,ushort) mov cl, al xor eax, eax test cl, 1 mov [rsp+28h+var_11], al jnz short loc_75B9C jmp loc_75C82 loc_75B9C: mov rdi, [rsp+28h+var_20] mov rsi, [rsp+28h+var_10] mov edx, 0Ch call _ZNK11flatbuffers5Table11VerifyFieldIfEEbRKNS_8VerifierEt; flatbuffers::Table::VerifyField<float>(flatbuffers::Verifier const&,ushort) mov cl, al xor eax, eax test cl, 1 mov [rsp+28h+var_11], al jnz short loc_75BC2 jmp loc_75C82 loc_75BC2: mov rdi, [rsp+28h+var_20] mov rsi, [rsp+28h+var_10] mov edx, 0Eh call _ZNK11flatbuffers5Table11VerifyFieldIiEEbRKNS_8VerifierEt; flatbuffers::Table::VerifyField<int>(flatbuffers::Verifier const&,ushort) mov cl, al xor eax, eax test cl, 1 mov [rsp+28h+var_11], al jnz short loc_75BE8 jmp loc_75C82 loc_75BE8: mov rdi, [rsp+28h+var_20] mov rsi, [rsp+28h+var_10] mov edx, 10h call _ZNK11flatbuffers5Table11VerifyFieldIiEEbRKNS_8VerifierEt; flatbuffers::Table::VerifyField<int>(flatbuffers::Verifier const&,ushort) mov cl, al xor eax, eax test cl, 1 mov [rsp+28h+var_11], al jnz short loc_75C0B jmp short loc_75C82 loc_75C0B: mov rdi, [rsp+28h+var_20] mov rsi, [rsp+28h+var_10] mov edx, 12h call _ZNK11flatbuffers5Table11VerifyFieldIiEEbRKNS_8VerifierEt; flatbuffers::Table::VerifyField<int>(flatbuffers::Verifier const&,ushort) mov cl, al xor eax, eax test cl, 1 mov [rsp+28h+var_11], al jnz short loc_75C2E jmp short loc_75C82 loc_75C2E: mov rdi, [rsp+28h+var_20] mov rsi, [rsp+28h+var_10] mov edx, 14h call _ZNK11flatbuffers5Table11VerifyFieldIiEEbRKNS_8VerifierEt; flatbuffers::Table::VerifyField<int>(flatbuffers::Verifier const&,ushort) mov cl, al xor eax, eax test cl, 1 mov [rsp+28h+var_11], al jnz short loc_75C51 jmp short loc_75C82 loc_75C51: mov rdi, [rsp+28h+var_20] mov rsi, [rsp+28h+var_10] mov edx, 16h call _ZNK11flatbuffers5Table11VerifyFieldIfEEbRKNS_8VerifierEt; flatbuffers::Table::VerifyField<float>(flatbuffers::Verifier const&,ushort) mov cl, al xor eax, eax test cl, 1 mov [rsp+28h+var_11], al jnz short loc_75C74 jmp short loc_75C82 loc_75C74: mov rdi, [rsp+28h+var_10]; this call _ZN11flatbuffers8Verifier8EndTableEv; flatbuffers::Verifier::EndTable(void) mov [rsp+28h+var_11], al loc_75C82: mov al, [rsp+28h+var_11] and al, 1 add rsp, 28h retn
char MNN::DetectionOutput::Verify(MNN::DetectionOutput *this, flatbuffers::Verifier *a2) { char v3; // [rsp+17h] [rbp-11h] v3 = 0; if ( (flatbuffers::Table::VerifyTableStart(this, a2) & 1) != 0 ) { v3 = 0; if ( (flatbuffers::Table::VerifyField<int>(this, (long long)a2, 4u) & 1) != 0 ) { v3 = 0; if ( (flatbuffers::Table::VerifyField<float>(this, (long long)a2, 6u) & 1) != 0 ) { v3 = 0; if ( (flatbuffers::Table::VerifyField<int>(this, (long long)a2, 8u) & 1) != 0 ) { v3 = 0; if ( (flatbuffers::Table::VerifyField<int>(this, (long long)a2, 0xAu) & 1) != 0 ) { v3 = 0; if ( (flatbuffers::Table::VerifyField<float>(this, (long long)a2, 0xCu) & 1) != 0 ) { v3 = 0; if ( (flatbuffers::Table::VerifyField<int>(this, (long long)a2, 0xEu) & 1) != 0 ) { v3 = 0; if ( (flatbuffers::Table::VerifyField<int>(this, (long long)a2, 0x10u) & 1) != 0 ) { v3 = 0; if ( (flatbuffers::Table::VerifyField<int>(this, (long long)a2, 0x12u) & 1) != 0 ) { v3 = 0; if ( (flatbuffers::Table::VerifyField<int>(this, (long long)a2, 0x14u) & 1) != 0 ) { v3 = 0; if ( (flatbuffers::Table::VerifyField<float>(this, (long long)a2, 0x16u) & 1) != 0 ) v3 = flatbuffers::Verifier::EndTable(a2); } } } } } } } } } } return v3 & 1; }
Verify: SUB RSP,0x28 MOV qword ptr [RSP + 0x20],RDI MOV qword ptr [RSP + 0x18],RSI MOV RDI,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x8],RDI MOV RSI,qword ptr [RSP + 0x18] CALL 0x0016d010 MOV CL,AL XOR EAX,EAX TEST CL,0x1 MOV byte ptr [RSP + 0x17],AL JNZ 0x00175b04 JMP 0x00175c82 LAB_00175b04: MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP + 0x18] MOV EDX,0x4 CALL 0x0016d570 MOV CL,AL XOR EAX,EAX TEST CL,0x1 MOV byte ptr [RSP + 0x17],AL JNZ 0x00175b2a JMP 0x00175c82 LAB_00175b2a: MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP + 0x18] MOV EDX,0x6 CALL 0x0016f360 MOV CL,AL XOR EAX,EAX TEST CL,0x1 MOV byte ptr [RSP + 0x17],AL JNZ 0x00175b50 JMP 0x00175c82 LAB_00175b50: MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP + 0x18] MOV EDX,0x8 CALL 0x0016d570 MOV CL,AL XOR EAX,EAX TEST CL,0x1 MOV byte ptr [RSP + 0x17],AL JNZ 0x00175b76 JMP 0x00175c82 LAB_00175b76: MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP + 0x18] MOV EDX,0xa CALL 0x0016d570 MOV CL,AL XOR EAX,EAX TEST CL,0x1 MOV byte ptr [RSP + 0x17],AL JNZ 0x00175b9c JMP 0x00175c82 LAB_00175b9c: MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP + 0x18] MOV EDX,0xc CALL 0x0016f360 MOV CL,AL XOR EAX,EAX TEST CL,0x1 MOV byte ptr [RSP + 0x17],AL JNZ 0x00175bc2 JMP 0x00175c82 LAB_00175bc2: MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP + 0x18] MOV EDX,0xe CALL 0x0016d570 MOV CL,AL XOR EAX,EAX TEST CL,0x1 MOV byte ptr [RSP + 0x17],AL JNZ 0x00175be8 JMP 0x00175c82 LAB_00175be8: MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP + 0x18] MOV EDX,0x10 CALL 0x0016d570 MOV CL,AL XOR EAX,EAX TEST CL,0x1 MOV byte ptr [RSP + 0x17],AL JNZ 0x00175c0b JMP 0x00175c82 LAB_00175c0b: MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP + 0x18] MOV EDX,0x12 CALL 0x0016d570 MOV CL,AL XOR EAX,EAX TEST CL,0x1 MOV byte ptr [RSP + 0x17],AL JNZ 0x00175c2e JMP 0x00175c82 LAB_00175c2e: MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP + 0x18] MOV EDX,0x14 CALL 0x0016d570 MOV CL,AL XOR EAX,EAX TEST CL,0x1 MOV byte ptr [RSP + 0x17],AL JNZ 0x00175c51 JMP 0x00175c82 LAB_00175c51: MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP + 0x18] MOV EDX,0x16 CALL 0x0016f360 MOV CL,AL XOR EAX,EAX TEST CL,0x1 MOV byte ptr [RSP + 0x17],AL JNZ 0x00175c74 JMP 0x00175c82 LAB_00175c74: MOV RDI,qword ptr [RSP + 0x18] CALL 0x0016d6f0 MOV byte ptr [RSP + 0x17],AL LAB_00175c82: MOV AL,byte ptr [RSP + 0x17] AND AL,0x1 ADD RSP,0x28 RET
/* MNN::DetectionOutput::Verify(flatbuffers::Verifier&) const */ ulong __thiscall MNN::DetectionOutput::Verify(DetectionOutput *this,Verifier *param_1) { bool bVar1; uint uVar2; int8 uVar3; int1 local_11; uVar2 = flatbuffers::Table::VerifyTableStart((Table *)this,param_1); uVar3 = 0; local_11 = 0; if ((uVar2 & 1) != 0) { bVar1 = flatbuffers::Table::VerifyField<int>((Table *)this,param_1,4); uVar3 = 0; local_11 = 0; if (bVar1) { bVar1 = flatbuffers::Table::VerifyField<float>((Table *)this,param_1,6); uVar3 = 0; local_11 = 0; if (bVar1) { bVar1 = flatbuffers::Table::VerifyField<int>((Table *)this,param_1,8); uVar3 = 0; local_11 = 0; if (bVar1) { bVar1 = flatbuffers::Table::VerifyField<int>((Table *)this,param_1,10); uVar3 = 0; local_11 = 0; if (bVar1) { bVar1 = flatbuffers::Table::VerifyField<float>((Table *)this,param_1,0xc); uVar3 = 0; local_11 = 0; if (bVar1) { bVar1 = flatbuffers::Table::VerifyField<int>((Table *)this,param_1,0xe); uVar3 = 0; local_11 = 0; if (bVar1) { bVar1 = flatbuffers::Table::VerifyField<int>((Table *)this,param_1,0x10); uVar3 = 0; local_11 = 0; if (bVar1) { bVar1 = flatbuffers::Table::VerifyField<int>((Table *)this,param_1,0x12); uVar3 = 0; local_11 = 0; if (bVar1) { bVar1 = flatbuffers::Table::VerifyField<int>((Table *)this,param_1,0x14); uVar3 = 0; local_11 = 0; if (bVar1) { bVar1 = flatbuffers::Table::VerifyField<float>((Table *)this,param_1,0x16); uVar3 = 0; local_11 = 0; if (bVar1) { uVar3 = flatbuffers::Verifier::EndTable(param_1); local_11 = (int1)uVar3; } } } } } } } } } } } return CONCAT71((int7)((ulong)uVar3 >> 8),local_11) & 0xffffffffffffff01; }
27,681
gguf_set_val_i32
ngxson[P]ggml-easy/ggml/src/gguf.cpp
void gguf_set_val_i32(struct gguf_context * ctx, const char * key, int32_t val) { gguf_check_reserved_keys(key, val); gguf_remove_key(ctx, key); ctx->kv.emplace_back(key, val); }
O2
cpp
gguf_set_val_i32: pushq %r15 pushq %r14 pushq %rbx subq $0x30, %rsp movq %rsi, %r14 movq %rdi, %rbx movq %rsi, 0x8(%rsp) movl %edx, 0x4(%rsp) leaq 0x10(%rsp), %r15 leaq 0x3(%rsp), %rdx movq %r15, %rdi callq 0x1e820 leaq 0x1a857(%rip), %rsi # 0x5a982 movq %r15, %rdi callq 0x1efa0 testb %al, %al jne 0x4016c leaq 0x10(%rsp), %rdi callq 0x1c9a0 movq %rbx, %rdi movq %r14, %rsi callq 0x1def0 addq $0x8, %rbx leaq 0x8(%rsp), %rsi leaq 0x4(%rsp), %rdx movq %rbx, %rdi callq 0x1c5f0 addq $0x30, %rsp popq %rbx popq %r14 popq %r15 retq leaq 0x1a7a2(%rip), %rdi # 0x5a915 leaq 0x1affc(%rip), %rdx # 0x5b176 movl $0x3a8, %esi # imm = 0x3A8 xorl %eax, %eax callq 0x1e770 movq %rax, %rbx leaq 0x10(%rsp), %rdi callq 0x1c9a0 movq %rbx, %rdi callq 0x1e9b0
gguf_set_val_i32: push r15 push r14 push rbx sub rsp, 30h mov r14, rsi mov rbx, rdi mov [rsp+48h+var_40], rsi mov [rsp+48h+var_44], edx lea r15, [rsp+48h+var_38] lea rdx, [rsp+48h+var_45] mov rdi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rsi, aGeneralAlignme; "general.alignment" mov rdi, r15 call __ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) test al, al jnz short loc_4016C lea rdi, [rsp+48h+var_38] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, rbx mov rsi, r14 call _gguf_remove_key add rbx, 8 lea rsi, [rsp+48h+var_40] lea rdx, [rsp+48h+var_44] mov rdi, rbx call __ZNSt6vectorI7gguf_kvSaIS0_EE12emplace_backIJRPKcRiEEERS0_DpOT_; std::vector<gguf_kv>::emplace_back<char const*&,int &>(char const*&,int &) add rsp, 30h pop rbx pop r14 pop r15 retn loc_4016C: lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGeneralAlignme_0; "general.alignment must be type u32" mov esi, 3A8h xor eax, eax call _ggml_abort mov rbx, rax lea rdi, [rsp+48h+var_38] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, rbx call __Unwind_Resume
long long gguf_set_val_i32( long long a1, long long a2, int a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, double a8, double a9, __m128 a10, __m128 a11) { long long v11; // rcx long long v12; // r8 long long v13; // r9 __m128 v14; // xmm4 __m128 v15; // xmm5 long long v16; // rdx char v18; // [rsp+0h] [rbp-48h] char v19; // [rsp+3h] [rbp-45h] BYREF int v20; // [rsp+4h] [rbp-44h] BYREF long long v21; // [rsp+8h] [rbp-40h] BYREF _BYTE v22[56]; // [rsp+10h] [rbp-38h] BYREF v21 = a2; v20 = a3; std::string::basic_string<std::allocator<char>>(v22, a2, &v19); if ( (unsigned __int8)std::operator==<char>(v22, "general.alignment") ) ggml_abort( "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/gguf.cpp", 936, (long long)"general.alignment must be type u32", v11, v12, v13, a4, a5, a6, a7, v14, v15, a10, a11, v18); std::string::~string(v22); gguf_remove_key(a1, a2, v16); return std::vector<gguf_kv>::emplace_back<char const*&,int &>(a1 + 8, &v21, &v20); }
gguf_set_val_i32: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x30 MOV R14,RSI MOV RBX,RDI MOV qword ptr [RSP + 0x8],RSI MOV dword ptr [RSP + 0x4],EDX LEA R15,[RSP + 0x10] LEA RDX,[RSP + 0x3] MOV RDI,R15 CALL 0x0011e820 LEA RSI,[0x15a982] MOV RDI,R15 CALL 0x0011efa0 TEST AL,AL JNZ 0x0014016c LEA RDI,[RSP + 0x10] CALL 0x0011c9a0 MOV RDI,RBX MOV RSI,R14 CALL 0x0011def0 ADD RBX,0x8 LEA RSI,[RSP + 0x8] LEA RDX,[RSP + 0x4] MOV RDI,RBX CALL 0x0011c5f0 ADD RSP,0x30 POP RBX POP R14 POP R15 RET LAB_0014016c: LEA RDI,[0x15a915] LEA RDX,[0x15b176] MOV ESI,0x3a8 XOR EAX,EAX CALL 0x0011e770
void gguf_set_val_i32(long param_1,char *param_2,int param_3) { bool bVar1; allocator local_45; int local_44; char *local_40; string local_38 [32]; local_44 = param_3; local_40 = param_2; std::__cxx11::string::string<std::allocator<char>>(local_38,param_2,&local_45); bVar1 = std::operator==(local_38,"general.alignment"); if (!bVar1) { std::__cxx11::string::~string(local_38); gguf_remove_key(param_1,param_2); std::vector<gguf_kv,std::allocator<gguf_kv>>::emplace_back<char_const*&,int&> ((vector<gguf_kv,std::allocator<gguf_kv>> *)(param_1 + 8),&local_40,&local_44); return; } /* try { // try from 0014016c to 00140185 has its CatchHandler @ 00140186 */ /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/gguf.cpp",0x3a8, "general.alignment must be type u32"); }
27,682
gguf_set_val_i32
ngxson[P]ggml-easy/ggml/src/gguf.cpp
void gguf_set_val_i32(struct gguf_context * ctx, const char * key, int32_t val) { gguf_check_reserved_keys(key, val); gguf_remove_key(ctx, key); ctx->kv.emplace_back(key, val); }
O3
cpp
gguf_set_val_i32: pushq %r15 pushq %r14 pushq %rbx subq $0x30, %rsp movq %rsi, %r14 movq %rdi, %rbx movq %rsi, 0x8(%rsp) movl %edx, 0x4(%rsp) leaq 0x10(%rsp), %r15 leaq 0x3(%rsp), %rdx movq %r15, %rdi callq 0x17cf0 leaq 0x1bb57(%rip), %rsi # 0x59e52 movq %r15, %rdi callq 0x163e0 testl %eax, %eax je 0x3e34d leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x3e322 movq 0x20(%rsp), %rsi incq %rsi callq 0x17070 movq %rbx, %rdi movq %r14, %rsi callq 0x17650 addq $0x8, %rbx leaq 0x8(%rsp), %rsi leaq 0x4(%rsp), %rdx movq %rbx, %rdi callq 0x16400 addq $0x30, %rsp popq %rbx popq %r14 popq %r15 retq leaq 0x1ba91(%rip), %rdi # 0x59de5 leaq 0x1c2eb(%rip), %rdx # 0x5a646 movl $0x3a8, %esi # imm = 0x3A8 xorl %eax, %eax callq 0x17c60 movq %rax, %rbx leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x3e385 movq 0x20(%rsp), %rsi incq %rsi callq 0x17070 movq %rbx, %rdi callq 0x17e20
gguf_set_val_i32: push r15 push r14 push rbx sub rsp, 30h mov r14, rsi mov rbx, rdi mov [rsp+48h+var_40], rsi mov [rsp+48h+var_44], edx lea r15, [rsp+48h+var_38] lea rdx, [rsp+48h+var_45] mov rdi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rsi, aGeneralAlignme; "general.alignment" mov rdi, r15 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz short loc_3E34D lea rax, [rsp+48h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_3E322 mov rsi, [rsp+48h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3E322: mov rdi, rbx mov rsi, r14 call _gguf_remove_key add rbx, 8 lea rsi, [rsp+48h+var_40] lea rdx, [rsp+48h+var_44] mov rdi, rbx call __ZNSt6vectorI7gguf_kvSaIS0_EE12emplace_backIJRPKcRiEEERS0_DpOT_; std::vector<gguf_kv>::emplace_back<char const*&,int &>(char const*&,int &) add rsp, 30h pop rbx pop r14 pop r15 retn loc_3E34D: lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGeneralAlignme_0; "general.alignment must be type u32" mov esi, 3A8h xor eax, eax call _ggml_abort mov rbx, rax lea rax, [rsp+48h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_3E385 mov rsi, [rsp+48h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3E385: mov rdi, rbx call __Unwind_Resume
long long gguf_set_val_i32(long long a1, long long a2, int a3) { int v3; // ecx int v4; // r8d int v5; // r9d char v7; // [rsp+3h] [rbp-45h] BYREF int v8; // [rsp+4h] [rbp-44h] BYREF long long v9; // [rsp+8h] [rbp-40h] BYREF void *v10[2]; // [rsp+10h] [rbp-38h] BYREF long long v11; // [rsp+20h] [rbp-28h] BYREF v9 = a2; v8 = a3; std::string::basic_string<std::allocator<char>>(v10, a2, &v7); if ( !(unsigned int)std::string::compare(v10, "general.alignment") ) ggml_abort( (unsigned int)"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/gguf.cpp", 936, (unsigned int)"general.alignment must be type u32", v3, v4, v5); if ( v10[0] != &v11 ) operator delete(v10[0], v11 + 1); gguf_remove_key(a1, a2); return std::vector<gguf_kv>::emplace_back<char const*&,int &>(a1 + 8, &v9, &v8); }
gguf_set_val_i32: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x30 MOV R14,RSI MOV RBX,RDI MOV qword ptr [RSP + 0x8],RSI MOV dword ptr [RSP + 0x4],EDX LEA R15,[RSP + 0x10] LEA RDX,[RSP + 0x3] MOV RDI,R15 CALL 0x00117cf0 LEA RSI,[0x159e52] MOV RDI,R15 CALL 0x001163e0 TEST EAX,EAX JZ 0x0013e34d LEA RAX,[RSP + 0x20] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0013e322 MOV RSI,qword ptr [RSP + 0x20] INC RSI CALL 0x00117070 LAB_0013e322: MOV RDI,RBX MOV RSI,R14 CALL 0x00117650 ADD RBX,0x8 LEA RSI,[RSP + 0x8] LEA RDX,[RSP + 0x4] MOV RDI,RBX CALL 0x00116400 ADD RSP,0x30 POP RBX POP R14 POP R15 RET LAB_0013e34d: LEA RDI,[0x159de5] LEA RDX,[0x15a646] MOV ESI,0x3a8 XOR EAX,EAX CALL 0x00117c60
void gguf_set_val_i32(long param_1,char *param_2,int param_3) { int iVar1; allocator local_45; int local_44; char *local_40; long *local_38 [2]; long local_28 [2]; local_44 = param_3; local_40 = param_2; std::__cxx11::string::string<std::allocator<char>>((string *)local_38,param_2,&local_45); iVar1 = std::__cxx11::string::compare((char *)local_38); if (iVar1 != 0) { if (local_38[0] != local_28) { operator_delete(local_38[0],local_28[0] + 1); } gguf_remove_key(param_1,param_2); std::vector<gguf_kv,std::allocator<gguf_kv>>::emplace_back<char_const*&,int&> ((vector<gguf_kv,std::allocator<gguf_kv>> *)(param_1 + 8),&local_40,&local_44); return; } /* try { // try from 0013e34d to 0013e366 has its CatchHandler @ 0013e367 */ /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/gguf.cpp",0x3a8, "general.alignment must be type u32"); }
27,683
testing::internal::NoExecDeathTest::NoExecDeathTest(char const*, testing::Matcher<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>)
giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/src/gtest-death-test.cc
NoExecDeathTest(const char* a_statement, Matcher<const std::string&> matcher) : ForkingDeathTest(a_statement, std::move(matcher)) {}
O3
cpp
testing::internal::NoExecDeathTest::NoExecDeathTest(char const*, testing::Matcher<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>): pushq %rbx subq $0x20, %rsp movq %rdi, %rbx movq 0x8(%rdx), %rcx leaq 0x8(%rsp), %rax movq %rcx, 0x8(%rax) movq 0x10(%rdx), %rcx movq %rcx, 0x10(%rax) movq $0x0, 0x8(%rdx) leaq 0x26814(%rip), %rcx # 0x588b8 movq %rcx, (%rax) movq %rax, %rdx callq 0x104c8 leaq 0x8(%rsp), %rdi callq 0x31d96 leaq 0x26268(%rip), %rax # 0x58328 movq %rax, (%rbx) addq $0x20, %rsp popq %rbx retq movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x31d96 movq %rbx, %rdi callq 0x8990
_ZN7testing8internal15NoExecDeathTestC2EPKcNS_7MatcherIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE: push rbx sub rsp, 20h mov rbx, rdi mov rcx, [rdx+8] lea rax, [rsp+28h+var_20] mov [rax+8], rcx mov rcx, [rdx+10h] mov [rax+10h], rcx mov qword ptr [rdx+8], 0 lea rcx, off_588B8 mov [rax], rcx mov rdx, rax call _ZN7testing8internal16ForkingDeathTestC2EPKcNS_7MatcherIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE; testing::internal::ForkingDeathTest::ForkingDeathTest(char const*,testing::Matcher<std::string const&>) lea rdi, [rsp+28h+var_20] call _ZN7testing8internal11MatcherBaseIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; testing::internal::MatcherBase<std::string const&>::~MatcherBase() lea rax, off_58328 mov [rbx], rax add rsp, 20h pop rbx retn mov rbx, rax lea rdi, [rsp+arg_0] call _ZN7testing8internal11MatcherBaseIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; testing::internal::MatcherBase<std::string const&>::~MatcherBase() mov rdi, rbx call __Unwind_Resume
void ( ** testing::internal::NoExecDeathTest::NoExecDeathTest( _QWORD *a1, long long a2, long long a3))(testing::internal::DeathTestImpl *__hidden this) { void ( **result)(testing::internal::DeathTestImpl *__hidden); // rax _QWORD v4[4]; // [rsp+8h] [rbp-20h] BYREF v4[1] = *(_QWORD *)(a3 + 8); v4[2] = *(_QWORD *)(a3 + 16); *(_QWORD *)(a3 + 8) = 0LL; v4[0] = &off_588B8; testing::internal::ForkingDeathTest::ForkingDeathTest((long long)a1, a2, (long long)v4); testing::internal::MatcherBase<std::string const&>::~MatcherBase((long long)v4); result = off_58328; *a1 = off_58328; return result; }
NoExecDeathTest: PUSH RBX SUB RSP,0x20 MOV RBX,RDI MOV RCX,qword ptr [RDX + 0x8] LEA RAX,[RSP + 0x8] MOV qword ptr [RAX + 0x8],RCX MOV RCX,qword ptr [RDX + 0x10] MOV qword ptr [RAX + 0x10],RCX MOV qword ptr [RDX + 0x8],0x0 LEA RCX,[0x1588b8] MOV qword ptr [RAX],RCX LAB_001320a7: MOV RDX,RAX CALL 0x001104c8 LAB_001320af: LEA RDI,[RSP + 0x8] CALL 0x00131d96 LEA RAX,[0x158328] MOV qword ptr [RBX],RAX ADD RSP,0x20 POP RBX RET
/* testing::internal::NoExecDeathTest::NoExecDeathTest(char const*, testing::Matcher<std::__cxx11::string const&>) */ void __thiscall testing::internal::NoExecDeathTest::NoExecDeathTest (NoExecDeathTest *this,int8 param_1,long param_3) { int **local_20; int8 local_18; int8 local_10; local_18 = *(int8 *)(param_3 + 8); local_10 = *(int8 *)(param_3 + 0x10); *(int8 *)(param_3 + 8) = 0; local_20 = &PTR__MatcherBase_001588b8; /* try { // try from 001320a7 to 001320ae has its CatchHandler @ 001320c9 */ ForkingDeathTest::ForkingDeathTest((ForkingDeathTest *)this,param_1,&local_20); MatcherBase<std::__cxx11::string_const&>::~MatcherBase ((MatcherBase<std::__cxx11::string_const&> *)&local_20); *(int ***)this = &PTR__DeathTestImpl_00158328; return; }
27,684
js_agent_start
bluesky950520[P]quickjs/run-test262.c
static JSValue js_agent_start(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { ThreadLocalStorage *tls = JS_GetRuntimeOpaque(JS_GetRuntime(ctx)); const char *script; Test262Agent *agent; if (JS_GetContextOpaque(ctx) != NULL) return JS_ThrowTypeError(ctx, "cannot be called inside an agent"); script = JS_ToCString(ctx, argv[0]); if (!script) return JS_EXCEPTION; agent = malloc(sizeof(*agent)); memset(agent, 0, sizeof(*agent)); agent->broadcast_func = JS_UNDEFINED; agent->broadcast_sab = JS_UNDEFINED; agent->script = strdup(script); agent->tls = tls; JS_FreeCString(ctx, script); list_add_tail(&agent->link, &tls->agent_list); start_thread(&agent->tid, agent_start, agent); return JS_UNDEFINED; }
O0
c
js_agent_start: subq $0x78, %rsp movq %rsi, 0x58(%rsp) movq %rdx, 0x60(%rsp) movq %rdi, 0x50(%rsp) movl %ecx, 0x4c(%rsp) movq %r8, 0x40(%rsp) movq 0x50(%rsp), %rdi callq 0x2e1f0 movq %rax, %rdi callq 0x299e0 movq %rax, 0x38(%rsp) movq 0x50(%rsp), %rdi callq 0x2dca0 cmpq $0x0, %rax je 0x15125 movq 0x50(%rsp), %rdi leaq 0xfa842(%rip), %rsi # 0x10f951 movb $0x0, %al callq 0x335f0 movq %rax, 0x68(%rsp) movq %rdx, 0x70(%rsp) jmp 0x1523f movq 0x50(%rsp), %rdi movq 0x40(%rsp), %rax movq (%rax), %rsi movq 0x8(%rax), %rdx callq 0x15040 movq %rax, 0x30(%rsp) cmpq $0x0, 0x30(%rsp) jne 0x1515e movl $0x0, 0x68(%rsp) movq $0x6, 0x70(%rsp) jmp 0x1523f movl $0x68, %edi callq 0xe6c0 movq %rax, 0x28(%rsp) movq 0x28(%rsp), %rdi xorl %esi, %esi movl $0x68, %edx callq 0xe370 movq 0x28(%rsp), %rax movl $0x0, 0x18(%rsp) movq $0x3, 0x20(%rsp) movq 0x18(%rsp), %rcx movq %rcx, 0x20(%rax) movq 0x20(%rsp), %rcx movq %rcx, 0x28(%rax) movq 0x28(%rsp), %rax movl $0x0, 0x8(%rsp) movq $0x3, 0x10(%rsp) movq 0x8(%rsp), %rcx movq %rcx, 0x38(%rax) movq 0x10(%rsp), %rcx movq %rcx, 0x40(%rax) movq 0x30(%rsp), %rdi callq 0xe980 movq %rax, %rcx movq 0x28(%rsp), %rax movq %rcx, 0x18(%rax) movq 0x38(%rsp), %rcx movq 0x28(%rsp), %rax movq %rcx, 0x60(%rax) movq 0x50(%rsp), %rdi movq 0x30(%rsp), %rsi callq 0x30140 movq 0x28(%rsp), %rdi movq 0x38(%rsp), %rsi addq $0x58, %rsi callq 0x159f0 movq 0x28(%rsp), %rdi addq $0x10, %rdi movq 0x28(%rsp), %rdx leaq 0x7f7(%rip), %rsi # 0x15a20 callq 0x144e0 movl $0x0, 0x68(%rsp) movq $0x3, 0x70(%rsp) movq 0x68(%rsp), %rax movq 0x70(%rsp), %rdx addq $0x78, %rsp retq nop
js_agent_start: sub rsp, 78h mov [rsp+78h+var_20], rsi mov [rsp+78h+var_18], rdx mov [rsp+78h+var_28], rdi mov [rsp+78h+var_2C], ecx mov [rsp+78h+var_38], r8 mov rdi, [rsp+78h+var_28] call JS_GetRuntime mov rdi, rax call JS_GetRuntimeOpaque mov [rsp+78h+var_40], rax mov rdi, [rsp+78h+var_28] call JS_GetContextOpaque cmp rax, 0 jz short loc_15125 mov rdi, [rsp+78h+var_28] lea rsi, aCannotBeCalled; "cannot be called inside an agent" mov al, 0 call JS_ThrowTypeError mov [rsp+78h+var_10], rax mov [rsp+78h+var_8], rdx jmp loc_1523F loc_15125: mov rdi, [rsp+78h+var_28] mov rax, [rsp+78h+var_38] mov rsi, [rax] mov rdx, [rax+8] call JS_ToCString mov [rsp+78h+var_48], rax cmp [rsp+78h+var_48], 0 jnz short loc_1515E mov dword ptr [rsp+78h+var_10], 0 mov [rsp+78h+var_8], 6 jmp loc_1523F loc_1515E: mov edi, 68h ; 'h' call _malloc mov [rsp+78h+var_50], rax mov rdi, [rsp+78h+var_50] xor esi, esi mov edx, 68h ; 'h' call _memset mov rax, [rsp+78h+var_50] mov dword ptr [rsp+78h+var_60], 0 mov [rsp+78h+var_58], 3 mov rcx, [rsp+78h+var_60] mov [rax+20h], rcx mov rcx, [rsp+78h+var_58] mov [rax+28h], rcx mov rax, [rsp+78h+var_50] mov dword ptr [rsp+78h+var_70], 0 mov [rsp+78h+var_68], 3 mov rcx, [rsp+78h+var_70] mov [rax+38h], rcx mov rcx, [rsp+78h+var_68] mov [rax+40h], rcx mov rdi, [rsp+78h+var_48] call _strdup mov rcx, rax mov rax, [rsp+78h+var_50] mov [rax+18h], rcx mov rcx, [rsp+78h+var_40] mov rax, [rsp+78h+var_50] mov [rax+60h], rcx mov rdi, [rsp+78h+var_28] mov rsi, [rsp+78h+var_48] call JS_FreeCString mov rdi, [rsp+78h+var_50] mov rsi, [rsp+78h+var_40] add rsi, 58h ; 'X' call list_add_tail mov rdi, [rsp+78h+var_50] add rdi, 10h mov rdx, [rsp+78h+var_50] lea rsi, agent_start call start_thread mov dword ptr [rsp+78h+var_10], 0 mov [rsp+78h+var_8], 3 loc_1523F: mov rax, [rsp+78h+var_10] mov rdx, [rsp+78h+var_8] add rsp, 78h retn
long long js_agent_start(long long a1, long long a2, long long a3, long long a4, long long *a5) { long long Runtime; // rax int v6; // edx long long v7; // rcx long long v8; // r8 long long v9; // r9 long long v11; // [rsp+8h] [rbp-70h] long long v12; // [rsp+18h] [rbp-60h] _QWORD *v13; // [rsp+28h] [rbp-50h] long long v14; // [rsp+30h] [rbp-48h] long long RuntimeOpaque; // [rsp+38h] [rbp-40h] long long v17; // [rsp+68h] [rbp-10h] Runtime = JS_GetRuntime(a1); RuntimeOpaque = JS_GetRuntimeOpaque(Runtime); if ( JS_GetContextOpaque(a1) ) return JS_ThrowTypeError(a1, (unsigned int)"cannot be called inside an agent", v6, v7, v8, v9); v14 = JS_ToCString(a1, *a5, a5[1], v7, v8, v9); if ( v14 ) { v13 = (_QWORD *)malloc(104LL); memset(v13, 0LL, 104LL); LODWORD(v12) = 0; v13[4] = v12; v13[5] = 3LL; LODWORD(v11) = 0; v13[7] = v11; v13[8] = 3LL; v13[3] = strdup(v14); v13[12] = RuntimeOpaque; JS_FreeCString(a1, v14); list_add_tail(v13, RuntimeOpaque + 88); start_thread((long long)(v13 + 2), (long long)agent_start, (long long)v13); } LODWORD(v17) = 0; return v17; }
js_agent_start: SUB RSP,0x78 MOV qword ptr [RSP + 0x58],RSI MOV qword ptr [RSP + 0x60],RDX MOV qword ptr [RSP + 0x50],RDI MOV dword ptr [RSP + 0x4c],ECX MOV qword ptr [RSP + 0x40],R8 MOV RDI,qword ptr [RSP + 0x50] CALL 0x0012e1f0 MOV RDI,RAX CALL 0x001299e0 MOV qword ptr [RSP + 0x38],RAX MOV RDI,qword ptr [RSP + 0x50] CALL 0x0012dca0 CMP RAX,0x0 JZ 0x00115125 MOV RDI,qword ptr [RSP + 0x50] LEA RSI,[0x20f951] MOV AL,0x0 CALL 0x001335f0 MOV qword ptr [RSP + 0x68],RAX MOV qword ptr [RSP + 0x70],RDX JMP 0x0011523f LAB_00115125: MOV RDI,qword ptr [RSP + 0x50] MOV RAX,qword ptr [RSP + 0x40] MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x8] CALL 0x00115040 MOV qword ptr [RSP + 0x30],RAX CMP qword ptr [RSP + 0x30],0x0 JNZ 0x0011515e MOV dword ptr [RSP + 0x68],0x0 MOV qword ptr [RSP + 0x70],0x6 JMP 0x0011523f LAB_0011515e: MOV EDI,0x68 CALL 0x0010e6c0 MOV qword ptr [RSP + 0x28],RAX MOV RDI,qword ptr [RSP + 0x28] XOR ESI,ESI MOV EDX,0x68 CALL 0x0010e370 MOV RAX,qword ptr [RSP + 0x28] MOV dword ptr [RSP + 0x18],0x0 MOV qword ptr [RSP + 0x20],0x3 MOV RCX,qword ptr [RSP + 0x18] MOV qword ptr [RAX + 0x20],RCX MOV RCX,qword ptr [RSP + 0x20] MOV qword ptr [RAX + 0x28],RCX MOV RAX,qword ptr [RSP + 0x28] MOV dword ptr [RSP + 0x8],0x0 MOV qword ptr [RSP + 0x10],0x3 MOV RCX,qword ptr [RSP + 0x8] MOV qword ptr [RAX + 0x38],RCX MOV RCX,qword ptr [RSP + 0x10] MOV qword ptr [RAX + 0x40],RCX MOV RDI,qword ptr [RSP + 0x30] CALL 0x0010e980 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RAX + 0x18],RCX MOV RCX,qword ptr [RSP + 0x38] MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RAX + 0x60],RCX MOV RDI,qword ptr [RSP + 0x50] MOV RSI,qword ptr [RSP + 0x30] CALL 0x00130140 MOV RDI,qword ptr [RSP + 0x28] MOV RSI,qword ptr [RSP + 0x38] ADD RSI,0x58 CALL 0x001159f0 MOV RDI,qword ptr [RSP + 0x28] ADD RDI,0x10 MOV RDX,qword ptr [RSP + 0x28] LEA RSI,[0x115a20] CALL 0x001144e0 MOV dword ptr [RSP + 0x68],0x0 MOV qword ptr [RSP + 0x70],0x3 LAB_0011523f: MOV RAX,qword ptr [RSP + 0x68] MOV RDX,qword ptr [RSP + 0x70] ADD RSP,0x78 RET
int1 [16] js_agent_start(int8 param_1) { int8 uVar1; long lVar2; long lVar3; char *__s; void *__s_00; char *pcVar4; int8 *in_R8; int1 auVar5 [16]; uint uStack_6c; uint uStack_5c; int4 local_10; int4 uStack_c; int8 local_8; uVar1 = JS_GetRuntime(param_1); lVar2 = JS_GetRuntimeOpaque(uVar1); lVar3 = JS_GetContextOpaque(param_1); if (lVar3 == 0) { __s = (char *)JS_ToCString(param_1,*in_R8,in_R8[1]); if (__s == (char *)0x0) { local_10 = 0; local_8 = 6; } else { __s_00 = malloc(0x68); memset(__s_00,0,0x68); *(ulong *)((long)__s_00 + 0x20) = (ulong)uStack_5c << 0x20; *(int8 *)((long)__s_00 + 0x28) = 3; *(ulong *)((long)__s_00 + 0x38) = (ulong)uStack_6c << 0x20; *(int8 *)((long)__s_00 + 0x40) = 3; pcVar4 = strdup(__s); *(char **)((long)__s_00 + 0x18) = pcVar4; *(long *)((long)__s_00 + 0x60) = lVar2; JS_FreeCString(param_1,__s); list_add_tail(__s_00,lVar2 + 0x58); start_thread((long)__s_00 + 0x10,agent_start,__s_00); local_10 = 0; local_8 = 3; } } else { auVar5 = JS_ThrowTypeError(param_1,"cannot be called inside an agent"); local_8 = auVar5._8_8_; local_10 = auVar5._0_4_; uStack_c = auVar5._4_4_; } auVar5._4_4_ = uStack_c; auVar5._0_4_ = local_10; auVar5._8_8_ = local_8; return auVar5; }
27,685
js_agent_start
bluesky950520[P]quickjs/run-test262.c
static JSValue js_agent_start(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { ThreadLocalStorage *tls = JS_GetRuntimeOpaque(JS_GetRuntime(ctx)); const char *script; Test262Agent *agent; if (JS_GetContextOpaque(ctx) != NULL) return JS_ThrowTypeError(ctx, "cannot be called inside an agent"); script = JS_ToCString(ctx, argv[0]); if (!script) return JS_EXCEPTION; agent = malloc(sizeof(*agent)); memset(agent, 0, sizeof(*agent)); agent->broadcast_func = JS_UNDEFINED; agent->broadcast_sab = JS_UNDEFINED; agent->script = strdup(script); agent->tls = tls; JS_FreeCString(ctx, script); list_add_tail(&agent->link, &tls->agent_list); start_thread(&agent->tid, agent_start, agent); return JS_UNDEFINED; }
O2
c
js_agent_start: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %r8, %rbx movq %rdi, %r14 callq 0x1dd35 movq %rax, %rdi callq 0x1b9a5 movq %rax, %r15 movq %r14, %rdi callq 0x1da80 testq %rax, %rax je 0x12bf7 leaq 0x72d71(%rip), %rsi # 0x85947 movq %r14, %rdi xorl %eax, %eax callq 0x201fd movq %rdx, %rbx movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %rax, %rcx movl %eax, %eax jmp 0x12c79 movq (%rbx), %rsi movq 0x8(%rbx), %rdx movq %r14, %rdi callq 0x12b93 testq %rax, %rax je 0x12c72 movq %rax, %r12 pushq $0x1 popq %rdi pushq $0x68 popq %rsi callq 0xe560 movq %rax, %r13 pushq $0x3 popq %rbx movq %rbx, 0x28(%rax) movq %rbx, 0x40(%rax) movq %r12, %rdi callq 0xe9c0 movq %rax, 0x18(%r13) movq %r15, 0x60(%r13) movq %r14, %rdi movq %r12, %rsi callq 0x1ec07 movq %r15, %rax addq $0x58, %rax movq 0x58(%r15), %rcx movq %r13, 0x8(%rcx) movq %rcx, (%r13) movq %rax, 0x8(%r13) movq %r13, 0x58(%r15) leaq 0x10(%r13), %rdi leaq 0x3db(%rip), %rsi # 0x13043 movq %r13, %rdx callq 0x12590 jmp 0x12c75 pushq $0x6 popq %rbx xorl %eax, %eax xorl %ecx, %ecx orq %rcx, %rax movq %rbx, %rdx popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq
js_agent_start: push r15 push r14 push r13 push r12 push rbx mov rbx, r8 mov r14, rdi call JS_GetRuntime mov rdi, rax call JS_GetRuntimeOpaque mov r15, rax mov rdi, r14 call JS_GetContextOpaque test rax, rax jz short loc_12BF7 lea rsi, aCannotBeCalled; "cannot be called inside an agent" mov rdi, r14 xor eax, eax call JS_ThrowTypeError mov rbx, rdx mov rcx, 0FFFFFFFF00000000h and rcx, rax mov eax, eax jmp loc_12C79 loc_12BF7: mov rsi, [rbx] mov rdx, [rbx+8] mov rdi, r14 call JS_ToCString test rax, rax jz short loc_12C72 mov r12, rax push 1 pop rdi push 68h ; 'h' pop rsi call _calloc mov r13, rax push 3 pop rbx mov [rax+28h], rbx mov [rax+40h], rbx mov rdi, r12 call _strdup mov [r13+18h], rax mov [r13+60h], r15 mov rdi, r14 mov rsi, r12 call JS_FreeCString mov rax, r15 add rax, 58h ; 'X' mov rcx, [r15+58h] mov [rcx+8], r13 mov [r13+0], rcx mov [r13+8], rax mov [r15+58h], r13 lea rdi, [r13+10h] lea rsi, agent_start mov rdx, r13 call start_thread jmp short loc_12C75 loc_12C72: push 6 pop rbx loc_12C75: xor eax, eax xor ecx, ecx loc_12C79: or rax, rcx mov rdx, rbx pop rbx pop r12 pop r13 pop r14 pop r15 retn
unsigned long long js_agent_start( long long a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, double a6, double a7, __m128 a8, __m128 a9, long long a10, long long a11, long long a12, long long *a13) { long long Runtime; // rax long long RuntimeOpaque; // r15 int v16; // edx int v17; // ecx int v18; // r8d int v19; // r9d unsigned long long v20; // rcx long long v21; // rax long long v22; // rax long long v23; // r12 _QWORD *v24; // r13 long long v25; // rcx double v26; // xmm4_8 double v27; // xmm5_8 Runtime = JS_GetRuntime(a1); RuntimeOpaque = JS_GetRuntimeOpaque(Runtime); if ( JS_GetContextOpaque(a1) ) { v21 = JS_ThrowTypeError(a1, (unsigned int)"cannot be called inside an agent", v16, v17, v18, v19); v20 = v21 & 0xFFFFFFFF00000000LL; v21 = (unsigned int)v21; } else { v22 = JS_ToCString(a1, *a13, a13[1]); if ( v22 ) { v23 = v22; v24 = (_QWORD *)calloc(1LL, 104LL); v24[5] = 3LL; v24[8] = 3LL; v24[3] = strdup(v23); v24[12] = RuntimeOpaque; JS_FreeCString(a1, v23); v25 = *(_QWORD *)(RuntimeOpaque + 88); *(_QWORD *)(v25 + 8) = v24; *v24 = v25; v24[1] = RuntimeOpaque + 88; *(_QWORD *)(RuntimeOpaque + 88) = v24; start_thread((long long)(v24 + 2), (long long)agent_start, (long long)v24, a2, a3, a4, a5, v26, v27, a8, a9); } v21 = 0LL; v20 = 0LL; } return v20 | v21; }
js_agent_start: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX MOV RBX,R8 MOV R14,RDI CALL 0x0011dd35 MOV RDI,RAX CALL 0x0011b9a5 MOV R15,RAX MOV RDI,R14 CALL 0x0011da80 TEST RAX,RAX JZ 0x00112bf7 LEA RSI,[0x185947] MOV RDI,R14 XOR EAX,EAX CALL 0x001201fd MOV RBX,RDX MOV RCX,-0x100000000 AND RCX,RAX MOV EAX,EAX JMP 0x00112c79 LAB_00112bf7: MOV RSI,qword ptr [RBX] MOV RDX,qword ptr [RBX + 0x8] MOV RDI,R14 CALL 0x00112b93 TEST RAX,RAX JZ 0x00112c72 MOV R12,RAX PUSH 0x1 POP RDI PUSH 0x68 POP RSI CALL 0x0010e560 MOV R13,RAX PUSH 0x3 POP RBX MOV qword ptr [RAX + 0x28],RBX MOV qword ptr [RAX + 0x40],RBX MOV RDI,R12 CALL 0x0010e9c0 MOV qword ptr [R13 + 0x18],RAX MOV qword ptr [R13 + 0x60],R15 MOV RDI,R14 MOV RSI,R12 CALL 0x0011ec07 MOV RAX,R15 ADD RAX,0x58 MOV RCX,qword ptr [R15 + 0x58] MOV qword ptr [RCX + 0x8],R13 MOV qword ptr [R13],RCX MOV qword ptr [R13 + 0x8],RAX MOV qword ptr [R15 + 0x58],R13 LEA RDI,[R13 + 0x10] LEA RSI,[0x113043] MOV RDX,R13 CALL 0x00112590 JMP 0x00112c75 LAB_00112c72: PUSH 0x6 POP RBX LAB_00112c75: XOR EAX,EAX XOR ECX,ECX LAB_00112c79: OR RAX,RCX MOV RDX,RBX POP RBX POP R12 POP R13 POP R14 POP R15 RET
int1 [16] js_agent_start(int8 param_1) { int8 uVar1; long lVar2; long lVar3; ulong uVar4; char *__s; long *plVar5; char *pcVar6; ulong uVar7; int8 *in_R8; int1 auVar8 [16]; uVar1 = JS_GetRuntime(); lVar2 = JS_GetRuntimeOpaque(uVar1); lVar3 = JS_GetContextOpaque(param_1); if (lVar3 == 0) { __s = (char *)JS_ToCString(param_1,*in_R8,in_R8[1]); if (__s == (char *)0x0) { uVar1 = 6; } else { plVar5 = (long *)calloc(1,0x68); uVar1 = 3; plVar5[5] = 3; plVar5[8] = 3; pcVar6 = strdup(__s); plVar5[3] = (long)pcVar6; plVar5[0xc] = lVar2; JS_FreeCString(param_1,__s); lVar3 = *(long *)(lVar2 + 0x58); *(long **)(lVar3 + 8) = plVar5; *plVar5 = lVar3; plVar5[1] = lVar2 + 0x58; *(long **)(lVar2 + 0x58) = plVar5; start_thread(plVar5 + 2,agent_start,plVar5); } uVar4 = 0; uVar7 = 0; } else { auVar8 = JS_ThrowTypeError(param_1,"cannot be called inside an agent"); uVar1 = auVar8._8_8_; uVar7 = auVar8._0_8_ & 0xffffffff00000000; uVar4 = auVar8._0_8_ & 0xffffffff; } auVar8._0_8_ = uVar4 | uVar7; auVar8._8_8_ = uVar1; return auVar8; }
27,686
evmone::instr::core::(anonymous namespace)::get_target_address(evmc::address const&, long&, evmone::ExecutionState&)
corpus-core[P]colibri-stateless/build_O0/_deps/evmone_external-src/lib/evmone/instructions_calls.cpp
inline std::variant<evmc::address, Result> get_target_address( const evmc::address& addr, int64_t& gas_left, ExecutionState& state) noexcept { if (state.rev < EVMC_PRAGUE) return addr; const auto delegate_addr = get_delegate_address(state.host, addr); if (!delegate_addr) return addr; const auto delegate_account_access_cost = (state.host.access_account(*delegate_addr) == EVMC_ACCESS_COLD ? instr::cold_account_access_cost : instr::warm_storage_read_cost); if ((gas_left -= delegate_account_access_cost) < 0) return Result{EVMC_OUT_OF_GAS, gas_left}; return *delegate_addr; }
O0
cpp
evmone::instr::core::(anonymous namespace)::get_target_address(evmc::address const&, long&, evmone::ExecutionState&): pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x58(%rbp) movq %rdi, -0x50(%rbp) movq %rsi, -0x8(%rbp) movq %rdx, -0x10(%rbp) movq %rcx, -0x18(%rbp) movq -0x18(%rbp), %rax cmpl $0xd, 0x40(%rax) jge 0x831e8 movq -0x58(%rbp), %rdi movq -0x8(%rbp), %rsi callq 0x89b80 jmp 0x8329f movq -0x18(%rbp), %rsi addq $0x28, %rsi movq -0x8(%rbp), %rdx leaq -0x2d(%rbp), %rdi callq 0x98fb0 leaq -0x2d(%rbp), %rdi callq 0x89bb0 testb $0x1, %al jne 0x8321c movq -0x58(%rbp), %rdi movq -0x8(%rbp), %rsi callq 0x89b80 jmp 0x8329f movq -0x18(%rbp), %rax addq $0x28, %rax movq %rax, -0x60(%rbp) leaq -0x2d(%rbp), %rdi callq 0x89bd0 movq -0x60(%rbp), %rdi movq %rax, %rsi callq 0x3b8e0 movl %eax, %edx movl $0x64, %eax movl $0xa28, %ecx # imm = 0xA28 cmpl $0x0, %edx cmovel %ecx, %eax movl %eax, -0x34(%rbp) movslq -0x34(%rbp), %rdx movq -0x10(%rbp), %rcx movq (%rcx), %rax subq %rdx, %rax movq %rax, (%rcx) cmpq $0x0, %rax jge 0x8328a movq -0x58(%rbp), %rdi movl $0x3, -0x48(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x40(%rbp) leaq -0x48(%rbp), %rsi callq 0x89bf0 jmp 0x8329f leaq -0x2d(%rbp), %rdi callq 0x89bd0 movq -0x58(%rbp), %rdi movq %rax, %rsi callq 0x89b80 movq -0x50(%rbp), %rax addq $0x60, %rsp popq %rbp retq nopl (%rax)
_ZN6evmone5instr4core12_GLOBAL__N_118get_target_addressERKN4evmc7addressERlRNS_14ExecutionStateE: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_58], rdi mov [rbp+var_50], rdi mov [rbp+var_8], rsi mov [rbp+var_10], rdx mov [rbp+var_18], rcx mov rax, [rbp+var_18] cmp dword ptr [rax+40h], 0Dh jge short loc_831E8 mov rdi, [rbp+var_58] mov rsi, [rbp+var_8] call _ZNSt7variantIJN4evmc7addressEN6evmone6ResultEEEC2IRKS1_vvS1_vEEOT_; std::variant<evmc::address,evmone::Result>::variant<evmc::address const&,void,void,evmc::address,void>(evmc::address const&) jmp loc_8329F loc_831E8: mov rsi, [rbp+var_18] add rsi, 28h ; '(' mov rdx, [rbp+var_8] lea rdi, [rbp+var_2D] call _ZN6evmone20get_delegate_addressERKN4evmc13HostInterfaceERKNS0_7addressE; evmone::get_delegate_address(evmc::HostInterface const&,evmc::address const&) lea rdi, [rbp+var_2D] call _ZNKSt8optionalIN4evmc7addressEEcvbEv; std::optional<evmc::address>::operator bool(void) test al, 1 jnz short loc_8321C mov rdi, [rbp+var_58] mov rsi, [rbp+var_8] call _ZNSt7variantIJN4evmc7addressEN6evmone6ResultEEEC2IRKS1_vvS1_vEEOT_; std::variant<evmc::address,evmone::Result>::variant<evmc::address const&,void,void,evmc::address,void>(evmc::address const&) jmp loc_8329F loc_8321C: mov rax, [rbp+var_18] add rax, 28h ; '(' mov [rbp+var_60], rax lea rdi, [rbp+var_2D] call _ZNKRSt8optionalIN4evmc7addressEEdeEv; std::optional<evmc::address>::operator*(void) mov rdi, [rbp+var_60] mov rsi, rax call _ZN4evmc11HostContext14access_accountERKNS_7addressE; evmc::HostContext::access_account(evmc::address const&) mov edx, eax mov eax, 64h ; 'd' mov ecx, 0A28h cmp edx, 0 cmovz eax, ecx mov [rbp+var_34], eax movsxd rdx, [rbp+var_34] mov rcx, [rbp+var_10] mov rax, [rcx] sub rax, rdx mov [rcx], rax cmp rax, 0 jge short loc_8328A mov rdi, [rbp+var_58] mov [rbp+var_48], 3 mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_40], rax lea rsi, [rbp+var_48] call _ZNSt7variantIJN4evmc7addressEN6evmone6ResultEEEC2IS3_vvS3_vEEOT_; std::variant<evmc::address,evmone::Result>::variant<evmone::Result,void,void,evmone::Result,void>(evmone::Result &&) jmp short loc_8329F loc_8328A: lea rdi, [rbp+var_2D] call _ZNKRSt8optionalIN4evmc7addressEEdeEv; std::optional<evmc::address>::operator*(void) mov rdi, [rbp+var_58] mov rsi, rax call _ZNSt7variantIJN4evmc7addressEN6evmone6ResultEEEC2IRKS1_vvS1_vEEOT_; std::variant<evmc::address,evmone::Result>::variant<evmc::address const&,void,void,evmc::address,void>(evmc::address const&) loc_8329F: mov rax, [rbp+var_50] add rsp, 60h pop rbp retn
long long evmone::instr::core::`anonymous namespace'::get_target_address( long long a1, long long a2, long long *a3, long long a4) { int v4; // edx int v5; // eax long long v6; // rax long long v7; // rax long long v9; // [rsp+0h] [rbp-60h] int v10; // [rsp+18h] [rbp-48h] BYREF long long v11; // [rsp+20h] [rbp-40h] int v12; // [rsp+2Ch] [rbp-34h] _BYTE v13[21]; // [rsp+33h] [rbp-2Dh] BYREF long long v14; // [rsp+48h] [rbp-18h] long long *v15; // [rsp+50h] [rbp-10h] long long v16; // [rsp+58h] [rbp-8h] v16 = a2; v15 = a3; v14 = a4; if ( *(int *)(a4 + 64) >= 13 ) { evmone::get_delegate_address(v13, v14 + 40, v16); if ( (std::optional<evmc::address>::operator bool(v13) & 1) != 0 ) { v9 = v14 + 40; std::optional<evmc::address>::operator*(v13); v4 = evmc::HostContext::access_account(v9); v5 = 100; if ( !v4 ) v5 = 2600; v12 = v5; v6 = *v15 - v5; *v15 = v6; if ( v6 >= 0 ) { v7 = std::optional<evmc::address>::operator*(v13); std::variant<evmc::address,evmone::Result>::variant<evmc::address const&,void,void,evmc::address,void>(a1, v7); } else { v10 = 3; v11 = *v15; std::variant<evmc::address,evmone::Result>::variant<evmone::Result,void,void,evmone::Result,void>(a1, &v10); } } else { std::variant<evmc::address,evmone::Result>::variant<evmc::address const&,void,void,evmc::address,void>(a1, v16); } } else { std::variant<evmc::address,evmone::Result>::variant<evmc::address const&,void,void,evmc::address,void>(a1, v16); } return a1; }
get_target_address: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x58],RDI MOV qword ptr [RBP + -0x50],RDI MOV qword ptr [RBP + -0x8],RSI MOV qword ptr [RBP + -0x10],RDX MOV qword ptr [RBP + -0x18],RCX MOV RAX,qword ptr [RBP + -0x18] CMP dword ptr [RAX + 0x40],0xd JGE 0x001831e8 MOV RDI,qword ptr [RBP + -0x58] MOV RSI,qword ptr [RBP + -0x8] CALL 0x00189b80 JMP 0x0018329f LAB_001831e8: MOV RSI,qword ptr [RBP + -0x18] ADD RSI,0x28 MOV RDX,qword ptr [RBP + -0x8] LEA RDI,[RBP + -0x2d] CALL 0x00198fb0 LEA RDI,[RBP + -0x2d] CALL 0x00189bb0 TEST AL,0x1 JNZ 0x0018321c MOV RDI,qword ptr [RBP + -0x58] MOV RSI,qword ptr [RBP + -0x8] CALL 0x00189b80 JMP 0x0018329f LAB_0018321c: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x28 MOV qword ptr [RBP + -0x60],RAX LEA RDI,[RBP + -0x2d] CALL 0x00189bd0 MOV RDI,qword ptr [RBP + -0x60] MOV RSI,RAX CALL 0x0013b8e0 MOV EDX,EAX MOV EAX,0x64 MOV ECX,0xa28 CMP EDX,0x0 CMOVZ EAX,ECX MOV dword ptr [RBP + -0x34],EAX MOVSXD RDX,dword ptr [RBP + -0x34] MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RCX] SUB RAX,RDX MOV qword ptr [RCX],RAX CMP RAX,0x0 JGE 0x0018328a MOV RDI,qword ptr [RBP + -0x58] MOV dword ptr [RBP + -0x48],0x3 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x40],RAX LEA RSI,[RBP + -0x48] CALL 0x00189bf0 JMP 0x0018329f LAB_0018328a: LEA RDI,[RBP + -0x2d] CALL 0x00189bd0 MOV RDI,qword ptr [RBP + -0x58] MOV RSI,RAX CALL 0x00189b80 LAB_0018329f: MOV RAX,qword ptr [RBP + -0x50] ADD RSP,0x60 POP RBP RET
/* evmone::instr::core::(anonymous namespace)::get_target_address(evmc::address const&, long&, evmone::ExecutionState&) */ _anonymous_namespace_ * __thiscall evmone::instr::core::(anonymous_namespace)::get_target_address (_anonymous_namespace_ *this,address *param_1,long *param_2,ExecutionState *param_3) { long lVar1; bool bVar2; int iVar3; HostContext *this_00; address *paVar4; int4 local_50 [2]; long local_48; int local_3c; evmone local_35 [21]; ExecutionState *local_20; long *local_18; address *local_10; local_20 = param_3; local_18 = param_2; local_10 = param_1; if (*(int *)(param_3 + 0x40) < 0xd) { std::variant<evmc::address,evmone::Result>:: variant<evmc::address_const&,void,void,evmc::address,void> ((variant<evmc::address,evmone::Result> *)this,param_1); } else { get_delegate_address(local_35,(HostInterface *)(param_3 + 0x28),param_1); bVar2 = std::optional::operator_cast_to_bool((optional *)local_35); if (bVar2) { this_00 = (HostContext *)(local_20 + 0x28); paVar4 = (address *) std::optional<evmc::address>::operator*((optional<evmc::address> *)local_35); iVar3 = evmc::HostContext::access_account(this_00,paVar4); local_3c = 100; if (iVar3 == 0) { local_3c = 0xa28; } lVar1 = *local_18; *local_18 = lVar1 - local_3c; if (lVar1 - local_3c < 0) { local_50[0] = 3; local_48 = *local_18; std::variant<evmc::address,evmone::Result>:: variant<evmone::Result,void,void,evmone::Result,void> ((variant<evmc::address,evmone::Result> *)this,(Result *)local_50); } else { paVar4 = (address *) std::optional<evmc::address>::operator*((optional<evmc::address> *)local_35); std::variant<evmc::address,evmone::Result>:: variant<evmc::address_const&,void,void,evmc::address,void> ((variant<evmc::address,evmone::Result> *)this,paVar4); } } else { std::variant<evmc::address,evmone::Result>:: variant<evmc::address_const&,void,void,evmc::address,void> ((variant<evmc::address,evmone::Result> *)this,local_10); } } return this; }
27,687
OpenSubdiv::v3_6_0::Bfr::FaceVertex::finalizeOrderedTags()
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/faceVertex.cpp
void FaceVertex::finalizeOrderedTags() { // // A vertex with a set of ordered faces is required to be manifold: // _tag._unOrderedFaces = false; _tag._nonManifoldVerts = false; _tag._boundaryVerts = _vDesc.IsBoundary(); _tag._boundaryNonSharp = _vDesc.IsBoundary(); // // Assign tags (and other members) affected by edge sharpness: // if (_vDesc.HasEdgeSharpness()) { float const * sharpness = &_vDesc._faceEdgeSharpness[0]; // Detect unsharpened boundary edges: bool isBoundary = _tag._boundaryVerts; if (isBoundary) { int last = 2 * _vDesc._numFaces - 1; _tag._boundaryNonSharp = !Sdc::Crease::IsInfinite(sharpness[0]) || !Sdc::Crease::IsInfinite(sharpness[last]); } // Detect interior inf-sharp and semi-sharp edges: int numInfSharpEdges = 0; int numSemiSharpEdges = 0; for (int i = isBoundary; i < _vDesc._numFaces; ++i ) { if (Sdc::Crease::IsInfinite(sharpness[2*i])) { ++ numInfSharpEdges; } else if (Sdc::Crease::IsSharp(sharpness[2*i])) { ++ numSemiSharpEdges; } } // Mark the presence of interior sharp edges: _tag._infSharpEdges = (numInfSharpEdges > 0); _tag._semiSharpEdges = (numSemiSharpEdges > 0); _tag._infSharpDarts = (numInfSharpEdges == 1) && !isBoundary; // Detect edges effectively making the vertex sharp -- note that // a vertex can be both explicitly and implicitly sharp (e.g. low // semi-sharp vertex value with a higher semi-sharp edge): int numInfSharpTotal = numInfSharpEdges + isBoundary * 2; if (numInfSharpTotal > 2) { _isImpInfSharp = true; } else if ((numInfSharpTotal + numSemiSharpEdges) > 2) { _isImpSemiSharp = true; } // Mark the vertex inf-sharp if implicitly inf-sharp: if (!_isExpInfSharp && _isImpInfSharp) { _tag._infSharpVerts = true; _tag._semiSharpVerts = false; } } }
O0
cpp
OpenSubdiv::v3_6_0::Bfr::FaceVertex::finalizeOrderedTags(): pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x30(%rbp) movw 0x98(%rdi), %ax andw $0xfeff, %ax # imm = 0xFEFF orw $0x0, %ax movw %ax, 0x98(%rdi) movw 0x98(%rdi), %ax andw $0xfdff, %ax # imm = 0xFDFF orw $0x0, %ax movw %ax, 0x98(%rdi) callq 0xc6700 movq -0x30(%rbp), %rdi andb $0x1, %al movzbl %al, %eax movw %ax, %cx movw 0x98(%rdi), %ax andw $0x1, %cx andw $-0x2, %ax orw %cx, %ax movw %ax, 0x98(%rdi) callq 0xc6700 movq -0x30(%rbp), %rdi andb $0x1, %al movzbl %al, %eax movw %ax, %cx movw 0x98(%rdi), %ax andw $0x1, %cx shlw $0xa, %cx andw $0xfbff, %ax # imm = 0xFBFF orw %cx, %ax movw %ax, 0x98(%rdi) callq 0xc9fc0 testb $0x1, %al jne 0x1887e6 jmp 0x188a55 movq -0x30(%rbp), %rdi addq $0x8, %rdi callq 0xd4390 movq %rax, %rcx movq -0x30(%rbp), %rax movq %rcx, -0x10(%rbp) movw 0x98(%rax), %ax andw $0x1, %ax cmpw $0x0, %ax setne %al andb $0x1, %al movb %al, -0x11(%rbp) testb $0x1, -0x11(%rbp) je 0x18888b movq -0x30(%rbp), %rax movswl 0x2(%rax), %eax shll %eax subl $0x1, %eax movl %eax, -0x18(%rbp) movq -0x10(%rbp), %rax movss (%rax), %xmm0 callq 0xcdc00 movb %al, %cl movb $0x1, %al testb $0x1, %cl movb %al, -0x31(%rbp) jne 0x188846 jmp 0x18885d movq -0x10(%rbp), %rax movslq -0x18(%rbp), %rcx movss (%rax,%rcx,4), %xmm0 callq 0xcdc00 xorb $-0x1, %al movb %al, -0x31(%rbp) movq -0x30(%rbp), %rax movb -0x31(%rbp), %cl andb $0x1, %cl movzbl %cl, %ecx movw %cx, %dx movw 0x98(%rax), %cx andw $0x1, %dx shlw $0xa, %dx andw $0xfbff, %cx # imm = 0xFBFF orw %dx, %cx movw %cx, 0x98(%rax) movl $0x0, -0x1c(%rbp) movl $0x0, -0x20(%rbp) movb -0x11(%rbp), %al andb $0x1, %al movzbl %al, %eax movl %eax, -0x24(%rbp) movq -0x30(%rbp), %rcx movl -0x24(%rbp), %eax movswl 0x2(%rcx), %ecx cmpl %ecx, %eax jge 0x18890e movq -0x10(%rbp), %rax movl -0x24(%rbp), %ecx shll %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm0 callq 0xcdc00 testb $0x1, %al jne 0x1888cf jmp 0x1888da movl -0x1c(%rbp), %eax addl $0x1, %eax movl %eax, -0x1c(%rbp) jmp 0x188901 movq -0x10(%rbp), %rax movl -0x24(%rbp), %ecx shll %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm0 callq 0xc8ea0 testb $0x1, %al jne 0x1888f6 jmp 0x1888ff movl -0x20(%rbp), %eax addl $0x1, %eax movl %eax, -0x20(%rbp) jmp 0x188901 jmp 0x188903 movl -0x24(%rbp), %eax addl $0x1, %eax movl %eax, -0x24(%rbp) jmp 0x1888a4 movq -0x30(%rbp), %rax cmpl $0x0, -0x1c(%rbp) setg %cl andb $0x1, %cl movzbl %cl, %ecx movw %cx, %dx movw 0x98(%rax), %cx andw $0x1, %dx shlw $0x2, %dx andw $-0x5, %cx orw %dx, %cx movw %cx, 0x98(%rax) cmpl $0x0, -0x20(%rbp) setg %cl andb $0x1, %cl movzbl %cl, %ecx movw %cx, %dx movw 0x98(%rax), %cx andw $0x1, %dx shlw $0x5, %dx andw $-0x21, %cx orw %dx, %cx movw %cx, 0x98(%rax) xorl %eax, %eax cmpl $0x1, -0x1c(%rbp) movb %al, -0x32(%rbp) jne 0x18897f movb -0x11(%rbp), %al xorb $-0x1, %al movb %al, -0x32(%rbp) movq -0x30(%rbp), %rax movb -0x32(%rbp), %cl andb $0x1, %cl movzbl %cl, %ecx movw %cx, %dx movw 0x98(%rax), %cx andw $0x1, %dx shlw $0x3, %dx andw $-0x9, %cx orw %dx, %cx movw %cx, 0x98(%rax) movl -0x1c(%rbp), %eax movb -0x11(%rbp), %cl andb $0x1, %cl movzbl %cl, %ecx shll %ecx addl %ecx, %eax movl %eax, -0x28(%rbp) cmpl $0x2, -0x28(%rbp) jle 0x1889dd movq -0x30(%rbp), %rax movb 0x9f(%rax), %cl andb $-0x5, %cl orb $0x4, %cl movb %cl, 0x9f(%rax) jmp 0x188a00 movl -0x28(%rbp), %eax addl -0x20(%rbp), %eax cmpl $0x2, %eax jle 0x1889fe movq -0x30(%rbp), %rax movb 0x9f(%rax), %cl andb $-0x9, %cl orb $0x8, %cl movb %cl, 0x9f(%rax) jmp 0x188a00 movq -0x30(%rbp), %rax movb 0x9f(%rax), %al andb $0x1, %al cmpb $0x0, %al jne 0x188a53 movq -0x30(%rbp), %rax movb 0x9f(%rax), %al shrb $0x2, %al andb $0x1, %al cmpb $0x0, %al je 0x188a53 movq -0x30(%rbp), %rax movw 0x98(%rax), %cx andw $-0x3, %cx orw $0x2, %cx movw %cx, 0x98(%rax) movw 0x98(%rax), %cx andw $-0x11, %cx orw $0x0, %cx movw %cx, 0x98(%rax) jmp 0x188a55 addq $0x40, %rsp popq %rbp retq nopl (%rax,%rax)
_ZN10OpenSubdiv6v3_6_03Bfr10FaceVertex19finalizeOrderedTagsEv: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_8], rdi mov rdi, [rbp+var_8]; this mov [rbp+var_30], rdi mov ax, [rdi+98h] and ax, 0FEFFh or ax, 0 mov [rdi+98h], ax mov ax, [rdi+98h] and ax, 0FDFFh or ax, 0 mov [rdi+98h], ax call __ZNK10OpenSubdiv6v3_6_03Bfr16VertexDescriptor10IsBoundaryEv; OpenSubdiv::v3_6_0::Bfr::VertexDescriptor::IsBoundary(void) mov rdi, [rbp+var_30]; this and al, 1 movzx eax, al mov cx, ax mov ax, [rdi+98h] and cx, 1 and ax, 0FFFEh or ax, cx mov [rdi+98h], ax call __ZNK10OpenSubdiv6v3_6_03Bfr16VertexDescriptor10IsBoundaryEv; OpenSubdiv::v3_6_0::Bfr::VertexDescriptor::IsBoundary(void) mov rdi, [rbp+var_30]; this and al, 1 movzx eax, al mov cx, ax mov ax, [rdi+98h] and cx, 1 shl cx, 0Ah and ax, 0FBFFh or ax, cx mov [rdi+98h], ax call __ZNK10OpenSubdiv6v3_6_03Bfr16VertexDescriptor16HasEdgeSharpnessEv; OpenSubdiv::v3_6_0::Bfr::VertexDescriptor::HasEdgeSharpness(void) test al, 1 jnz short loc_1887E6 jmp loc_188A55 loc_1887E6: mov rdi, [rbp+var_30] add rdi, 8; this call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferIfLj16ELb1EEcvPfEv; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<float,16u,true>::operator float *(void) mov rcx, rax mov rax, [rbp+var_30] mov [rbp+var_10], rcx mov ax, [rax+98h] and ax, 1 cmp ax, 0 setnz al and al, 1 mov [rbp+var_11], al test [rbp+var_11], 1 jz short loc_18888B mov rax, [rbp+var_30] movsx eax, word ptr [rax+2] shl eax, 1 sub eax, 1 mov [rbp+var_18], eax mov rax, [rbp+var_10] movss xmm0, dword ptr [rax]; float call __ZN10OpenSubdiv6v3_6_03Sdc6Crease10IsInfiniteEf; OpenSubdiv::v3_6_0::Sdc::Crease::IsInfinite(float) mov cl, al mov al, 1 test cl, 1 mov [rbp+var_31], al jnz short loc_188846 jmp short loc_18885D loc_188846: mov rax, [rbp+var_10] movsxd rcx, [rbp+var_18] movss xmm0, dword ptr [rax+rcx*4]; float call __ZN10OpenSubdiv6v3_6_03Sdc6Crease10IsInfiniteEf; OpenSubdiv::v3_6_0::Sdc::Crease::IsInfinite(float) xor al, 0FFh mov [rbp+var_31], al loc_18885D: mov rax, [rbp+var_30] mov cl, [rbp+var_31] and cl, 1 movzx ecx, cl mov dx, cx mov cx, [rax+98h] and dx, 1 shl dx, 0Ah and cx, 0FBFFh or cx, dx mov [rax+98h], cx loc_18888B: mov [rbp+var_1C], 0 mov [rbp+var_20], 0 mov al, [rbp+var_11] and al, 1 movzx eax, al mov [rbp+var_24], eax loc_1888A4: mov rcx, [rbp+var_30] mov eax, [rbp+var_24] movsx ecx, word ptr [rcx+2] cmp eax, ecx jge short loc_18890E mov rax, [rbp+var_10] mov ecx, [rbp+var_24] shl ecx, 1 movsxd rcx, ecx movss xmm0, dword ptr [rax+rcx*4]; float call __ZN10OpenSubdiv6v3_6_03Sdc6Crease10IsInfiniteEf; OpenSubdiv::v3_6_0::Sdc::Crease::IsInfinite(float) test al, 1 jnz short loc_1888CF jmp short loc_1888DA loc_1888CF: mov eax, [rbp+var_1C] add eax, 1 mov [rbp+var_1C], eax jmp short loc_188901 loc_1888DA: mov rax, [rbp+var_10] mov ecx, [rbp+var_24] shl ecx, 1 movsxd rcx, ecx movss xmm0, dword ptr [rax+rcx*4]; float call __ZN10OpenSubdiv6v3_6_03Sdc6Crease7IsSharpEf; OpenSubdiv::v3_6_0::Sdc::Crease::IsSharp(float) test al, 1 jnz short loc_1888F6 jmp short loc_1888FF loc_1888F6: mov eax, [rbp+var_20] add eax, 1 mov [rbp+var_20], eax loc_1888FF: jmp short $+2 loc_188901: jmp short $+2 loc_188903: mov eax, [rbp+var_24] add eax, 1 mov [rbp+var_24], eax jmp short loc_1888A4 loc_18890E: mov rax, [rbp+var_30] cmp [rbp+var_1C], 0 setnle cl and cl, 1 movzx ecx, cl mov dx, cx mov cx, [rax+98h] and dx, 1 shl dx, 2 and cx, 0FFFBh or cx, dx mov [rax+98h], cx cmp [rbp+var_20], 0 setnle cl and cl, 1 movzx ecx, cl mov dx, cx mov cx, [rax+98h] and dx, 1 shl dx, 5 and cx, 0FFDFh or cx, dx mov [rax+98h], cx xor eax, eax cmp [rbp+var_1C], 1 mov [rbp+var_32], al jnz short loc_18897F mov al, [rbp+var_11] xor al, 0FFh mov [rbp+var_32], al loc_18897F: mov rax, [rbp+var_30] mov cl, [rbp+var_32] and cl, 1 movzx ecx, cl mov dx, cx mov cx, [rax+98h] and dx, 1 shl dx, 3 and cx, 0FFF7h or cx, dx mov [rax+98h], cx mov eax, [rbp+var_1C] mov cl, [rbp+var_11] and cl, 1 movzx ecx, cl shl ecx, 1 add eax, ecx mov [rbp+var_28], eax cmp [rbp+var_28], 2 jle short loc_1889DD mov rax, [rbp+var_30] mov cl, [rax+9Fh] and cl, 0FBh or cl, 4 mov [rax+9Fh], cl jmp short loc_188A00 loc_1889DD: mov eax, [rbp+var_28] add eax, [rbp+var_20] cmp eax, 2 jle short loc_1889FE mov rax, [rbp+var_30] mov cl, [rax+9Fh] and cl, 0F7h or cl, 8 mov [rax+9Fh], cl loc_1889FE: jmp short $+2 loc_188A00: mov rax, [rbp+var_30] mov al, [rax+9Fh] and al, 1 cmp al, 0 jnz short loc_188A53 mov rax, [rbp+var_30] mov al, [rax+9Fh] shr al, 2 and al, 1 cmp al, 0 jz short loc_188A53 mov rax, [rbp+var_30] mov cx, [rax+98h] and cx, 0FFFDh or cx, 2 mov [rax+98h], cx mov cx, [rax+98h] and cx, 0FFEFh or cx, 0 mov [rax+98h], cx loc_188A53: jmp short $+2 loc_188A55: add rsp, 40h pop rbp retn
char OpenSubdiv::v3_6_0::Bfr::FaceVertex::finalizeOrderedTags(OpenSubdiv::v3_6_0::Bfr::FaceVertex *this) { char result; // al OpenSubdiv::v3_6_0::Sdc::Crease *v2; // rdi float *v3; // rcx char v4; // [rsp+Eh] [rbp-32h] char v5; // [rsp+Fh] [rbp-31h] int v7; // [rsp+18h] [rbp-28h] int i; // [rsp+1Ch] [rbp-24h] int v9; // [rsp+20h] [rbp-20h] int v10; // [rsp+24h] [rbp-1Ch] int v11; // [rsp+28h] [rbp-18h] char v12; // [rsp+2Fh] [rbp-11h] float *v13; // [rsp+30h] [rbp-10h] *((_WORD *)this + 76) &= ~0x100u; *((_WORD *)this + 76) &= ~0x200u; *((_WORD *)this + 76) = OpenSubdiv::v3_6_0::Bfr::VertexDescriptor::IsBoundary(this) & 1 | *((_WORD *)this + 76) & 0xFFFE; *((_WORD *)this + 76) = ((OpenSubdiv::v3_6_0::Bfr::VertexDescriptor::IsBoundary(this) & 1) << 10) | *((_WORD *)this + 76) & 0xFBFF; result = OpenSubdiv::v3_6_0::Bfr::VertexDescriptor::HasEdgeSharpness(this); if ( (result & 1) != 0 ) { v2 = (OpenSubdiv::v3_6_0::Bfr::FaceVertex *)((char *)this + 8); v3 = (float *)OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<float,16u,true>::operator float *((char *)this + 8); v13 = v3; v12 = (*((_WORD *)this + 76) & 1) != 0; if ( (*((_WORD *)this + 76) & 1) != 0 ) { v11 = 2 * *((__int16 *)this + 1) - 1; v5 = 1; if ( (OpenSubdiv::v3_6_0::Sdc::Crease::IsInfinite(v2, *v3) & 1) != 0 ) v5 = ~(unsigned __int8)OpenSubdiv::v3_6_0::Sdc::Crease::IsInfinite(v2, v13[v11]); *((_WORD *)this + 76) = ((v5 & 1) << 10) | *((_WORD *)this + 76) & 0xFBFF; } v10 = 0; v9 = 0; for ( i = v12 & 1; i < *((__int16 *)this + 1); ++i ) { if ( (OpenSubdiv::v3_6_0::Sdc::Crease::IsInfinite(v2, v13[2 * i]) & 1) != 0 ) { ++v10; } else if ( (OpenSubdiv::v3_6_0::Sdc::Crease::IsSharp(v2, v13[2 * i]) & 1) != 0 ) { ++v9; } } *((_WORD *)this + 76) = (4 * (v10 > 0)) | *((_WORD *)this + 76) & 0xFFFB; *((_WORD *)this + 76) = (32 * (v9 > 0)) | *((_WORD *)this + 76) & 0xFFDF; v4 = 0; if ( v10 == 1 ) v4 = ~v12; *((_WORD *)this + 76) = (8 * (v4 & 1)) | *((_WORD *)this + 76) & 0xFFF7; v7 = 2 * (v12 & 1) + v10; if ( v7 <= 2 ) { if ( v9 + v7 > 2 ) *((_BYTE *)this + 159) = *((_BYTE *)this + 159) & 0xF7 | 8; } else { *((_BYTE *)this + 159) = *((_BYTE *)this + 159) & 0xFB | 4; } result = *((_BYTE *)this + 159) & 1; if ( !result ) { result = (*((_BYTE *)this + 159) & 4) != 0; if ( (*((_BYTE *)this + 159) & 4) != 0 ) { result = (char)this; *((_WORD *)this + 76) = *((_WORD *)this + 76) & 0xFFFD | 2; *((_WORD *)this + 76) &= ~0x10u; } } } return result; }
27,688
OpenSubdiv::v3_6_0::Bfr::FaceVertex::finalizeOrderedTags()
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/faceVertex.cpp
void FaceVertex::finalizeOrderedTags() { // // A vertex with a set of ordered faces is required to be manifold: // _tag._unOrderedFaces = false; _tag._nonManifoldVerts = false; _tag._boundaryVerts = _vDesc.IsBoundary(); _tag._boundaryNonSharp = _vDesc.IsBoundary(); // // Assign tags (and other members) affected by edge sharpness: // if (_vDesc.HasEdgeSharpness()) { float const * sharpness = &_vDesc._faceEdgeSharpness[0]; // Detect unsharpened boundary edges: bool isBoundary = _tag._boundaryVerts; if (isBoundary) { int last = 2 * _vDesc._numFaces - 1; _tag._boundaryNonSharp = !Sdc::Crease::IsInfinite(sharpness[0]) || !Sdc::Crease::IsInfinite(sharpness[last]); } // Detect interior inf-sharp and semi-sharp edges: int numInfSharpEdges = 0; int numSemiSharpEdges = 0; for (int i = isBoundary; i < _vDesc._numFaces; ++i ) { if (Sdc::Crease::IsInfinite(sharpness[2*i])) { ++ numInfSharpEdges; } else if (Sdc::Crease::IsSharp(sharpness[2*i])) { ++ numSemiSharpEdges; } } // Mark the presence of interior sharp edges: _tag._infSharpEdges = (numInfSharpEdges > 0); _tag._semiSharpEdges = (numSemiSharpEdges > 0); _tag._infSharpDarts = (numInfSharpEdges == 1) && !isBoundary; // Detect edges effectively making the vertex sharp -- note that // a vertex can be both explicitly and implicitly sharp (e.g. low // semi-sharp vertex value with a higher semi-sharp edge): int numInfSharpTotal = numInfSharpEdges + isBoundary * 2; if (numInfSharpTotal > 2) { _isImpInfSharp = true; } else if ((numInfSharpTotal + numSemiSharpEdges) > 2) { _isImpSemiSharp = true; } // Mark the vertex inf-sharp if implicitly inf-sharp: if (!_isExpInfSharp && _isImpInfSharp) { _tag._infSharpVerts = true; _tag._semiSharpVerts = false; } } }
O3
cpp
OpenSubdiv::v3_6_0::Bfr::FaceVertex::finalizeOrderedTags(): movzbl (%rdi), %esi movl %esi, %ecx andl $0x10, %ecx movl %ecx, %eax shrl $0x4, %eax movl $0xfffff8fe, %r9d # imm = 0xFFFFF8FE andl 0x98(%rdi), %r9d orl %eax, %r9d movl %ecx, %edx shll $0x6, %edx orl %r9d, %edx movw %dx, 0x98(%rdi) testb $0x40, %sil je 0x898a1 movq 0x8(%rdi), %r8 testb %cl, %cl je 0x897c4 movss (%r8), %xmm0 movw $0x400, %dx # imm = 0x400 ucomiss 0x2b86a(%rip), %xmm0 # 0xb5004 jb 0x897b7 movswq 0x2(%rdi), %rdx movss -0x4(%r8,%rdx,8), %xmm0 xorl %edx, %edx ucomiss 0x2b853(%rip), %xmm0 # 0xb5004 setb %dl shll $0xa, %edx movzwl %dx, %edx orl %r9d, %edx movw %dx, 0x98(%rdi) pushq %rbx movswl 0x2(%rdi), %ebx xorl %r9d, %r9d movl $0x0, %r10d movl $0x0, %r11d cmpl %ebx, %eax jge 0x8983b shrl $0x4, %esi andl $0x1, %esi movl %ebx, %r11d xorl %r10d, %r10d movss 0x2b814(%rip), %xmm0 # 0xb5004 xorl %r9d, %r9d movss (%r8,%rsi,8), %xmm1 xorps %xmm2, %xmm2 cmpltps %xmm1, %xmm2 movaps %xmm0, %xmm3 cmpnleps %xmm1, %xmm3 andps %xmm2, %xmm3 movd %xmm3, %ebx subl %ebx, %r9d ucomiss %xmm0, %xmm1 sbbl $-0x1, %r10d incq %rsi cmpq %rsi, %r11 jne 0x897f3 xorl %esi, %esi testl %r10d, %r10d setne %sil xorl %r8d, %r8d testl %r9d, %r9d setne %r8b shll $0x5, %r8d leal (%r8,%rsi,4), %r11d testb %cl, %cl sete %cl andl $-0x2d, %edx cmpl $0x1, %r10d sete %sil andb %cl, %sil movzbl %sil, %esi shll $0x3, %esi orl %edx, %esi movzwl %r11w, %ecx orl %esi, %ecx movw %cx, 0x98(%rdi) leal (%r10,%rax,2), %edx cmpl $0x2, %edx popq %rbx jle 0x89878 movb 0x9f(%rdi), %al orb $0x4, %al jmp 0x89888 addl %r9d, %edx movb 0x9f(%rdi), %al cmpl $0x3, %edx jl 0x8988e orb $0x8, %al movb %al, 0x9f(%rdi) andb $0x5, %al cmpb $0x4, %al jne 0x898a1 andl $-0x13, %ecx orl $0x2, %ecx movw %cx, 0x98(%rdi) retq
_ZN10OpenSubdiv6v3_6_03Bfr10FaceVertex19finalizeOrderedTagsEv: movzx esi, byte ptr [rdi] mov ecx, esi and ecx, 10h mov eax, ecx shr eax, 4 mov r9d, 0FFFFF8FEh and r9d, [rdi+98h] or r9d, eax mov edx, ecx shl edx, 6 or edx, r9d mov [rdi+98h], dx test sil, 40h jz locret_898A1 mov r8, [rdi+8] test cl, cl jz short loc_897C4 movss xmm0, dword ptr [r8] mov dx, 400h ucomiss xmm0, cs:dword_B5004 jb short loc_897B7 movsx rdx, word ptr [rdi+2] movss xmm0, dword ptr [r8+rdx*8-4] xor edx, edx ucomiss xmm0, cs:dword_B5004 setb dl shl edx, 0Ah loc_897B7: movzx edx, dx or edx, r9d mov [rdi+98h], dx loc_897C4: push rbx movsx ebx, word ptr [rdi+2] xor r9d, r9d mov r10d, 0 mov r11d, 0 cmp eax, ebx jge short loc_8983B shr esi, 4 and esi, 1 mov r11d, ebx xor r10d, r10d movss xmm0, cs:dword_B5004 xor r9d, r9d loc_897F3: movss xmm1, dword ptr [r8+rsi*8] xorps xmm2, xmm2 cmpltps xmm2, xmm1 movaps xmm3, xmm0 cmpnleps xmm3, xmm1 andps xmm3, xmm2 movd ebx, xmm3 sub r9d, ebx ucomiss xmm1, xmm0 sbb r10d, 0FFFFFFFFh inc rsi cmp r11, rsi jnz short loc_897F3 xor esi, esi test r10d, r10d setnz sil xor r8d, r8d test r9d, r9d setnz r8b shl r8d, 5 lea r11d, [r8+rsi*4] loc_8983B: test cl, cl setz cl and edx, 0FFFFFFD3h cmp r10d, 1 setz sil and sil, cl movzx esi, sil shl esi, 3 or esi, edx movzx ecx, r11w or ecx, esi mov [rdi+98h], cx lea edx, [r10+rax*2] cmp edx, 2 pop rbx jle short loc_89878 mov al, [rdi+9Fh] or al, 4 jmp short loc_89888 loc_89878: add edx, r9d mov al, [rdi+9Fh] cmp edx, 3 jl short loc_8988E or al, 8 loc_89888: mov [rdi+9Fh], al loc_8988E: and al, 5 cmp al, 4 jnz short locret_898A1 and ecx, 0FFFFFFEDh or ecx, 2 mov [rdi+98h], cx locret_898A1: retn
char OpenSubdiv::v3_6_0::Bfr::FaceVertex::finalizeOrderedTags(OpenSubdiv::v3_6_0::Bfr::FaceVertex *this) { unsigned int v1; // esi unsigned __int8 v2; // cl int v3; // eax unsigned int v4; // r9d __int16 v5; // dx float *v6; // r8 __int16 v7; // dx int v8; // ebx int v9; // r9d int v10; // r10d __int16 v11; // r11 long long v12; // rsi __m128 v13; // xmm1 __int16 v14; // cx int v15; // edx char v16; // al v1 = *(unsigned __int8 *)this; v2 = *(_BYTE *)this & 0x10; v3 = v2 >> 4; v4 = v3 | *((_DWORD *)this + 38) & 0xFFFFF8FE; v5 = v4 | (v2 << 6); *((_WORD *)this + 76) = v3 | *((_WORD *)this + 76) & 0xF8FE | (v2 << 6); if ( (v1 & 0x40) == 0 ) return v3; v6 = (float *)*((_QWORD *)this + 1); if ( v2 ) { v7 = 1024; if ( *v6 >= 10.0 ) v7 = (v6[2 * *((__int16 *)this + 1) - 1] < 10.0) << 10; v5 = v4 | v7; *((_WORD *)this + 76) = v5; } v8 = *((__int16 *)this + 1); v9 = 0; v10 = 0; v11 = 0; if ( v3 < v8 ) { v12 = (v1 >> 4) & 1; v10 = 0; v9 = 0; do { v13 = (__m128)LODWORD(v6[2 * v12]); v9 -= _mm_cvtsi128_si32((__m128i)_mm_and_ps( _mm_cmpnle_ps((__m128)0x41200000u, v13), _mm_cmplt_ps((__m128)0LL, v13))); v10 -= (v13.m128_f32[0] < 10.0) - 1; ++v12; } while ( v8 != v12 ); v11 = 32 * (v9 != 0) + 4 * (v10 != 0); } v14 = v5 & 0xFFD3 | (8 * (v2 == 0 && v10 == 1)) | v11; *((_WORD *)this + 76) = v14; v15 = v10 + 2 * v3; if ( v15 <= 2 ) { v16 = *((_BYTE *)this + 159); if ( v9 + v15 < 3 ) goto LABEL_15; v16 |= 8u; } else { v16 = *((_BYTE *)this + 159) | 4; } *((_BYTE *)this + 159) = v16; LABEL_15: LOBYTE(v3) = v16 & 5; if ( (_BYTE)v3 == 4 ) *((_WORD *)this + 76) = v14 & 0xFFED | 2; return v3; }
finalizeOrderedTags: MOVZX ESI,byte ptr [RDI] MOV ECX,ESI AND ECX,0x10 MOV EAX,ECX SHR EAX,0x4 MOV R9D,0xfffff8fe AND R9D,dword ptr [RDI + 0x98] OR R9D,EAX MOV EDX,ECX SHL EDX,0x6 OR EDX,R9D MOV word ptr [RDI + 0x98],DX TEST SIL,0x40 JZ 0x001898a1 MOV R8,qword ptr [RDI + 0x8] TEST CL,CL JZ 0x001897c4 MOVSS XMM0,dword ptr [R8] MOV DX,0x400 UCOMISS XMM0,dword ptr [0x001b5004] JC 0x001897b7 MOVSX RDX,word ptr [RDI + 0x2] MOVSS XMM0,dword ptr [R8 + RDX*0x8 + -0x4] XOR EDX,EDX UCOMISS XMM0,dword ptr [0x001b5004] SETC DL SHL EDX,0xa LAB_001897b7: MOVZX EDX,DX OR EDX,R9D MOV word ptr [RDI + 0x98],DX LAB_001897c4: PUSH RBX MOVSX EBX,word ptr [RDI + 0x2] XOR R9D,R9D MOV R10D,0x0 MOV R11D,0x0 CMP EAX,EBX JGE 0x0018983b SHR ESI,0x4 AND ESI,0x1 MOV R11D,EBX XOR R10D,R10D MOVSS XMM0,dword ptr [0x001b5004] XOR R9D,R9D LAB_001897f3: MOVSS XMM1,dword ptr [R8 + RSI*0x8] XORPS XMM2,XMM2 CMPLTPS XMM2,XMM1 MOVAPS XMM3,XMM0 CMPNLEPS XMM3,XMM1 ANDPS XMM3,XMM2 MOVD EBX,XMM3 SUB R9D,EBX UCOMISS XMM1,XMM0 SBB R10D,-0x1 INC RSI CMP R11,RSI JNZ 0x001897f3 XOR ESI,ESI TEST R10D,R10D SETNZ SIL XOR R8D,R8D TEST R9D,R9D SETNZ R8B SHL R8D,0x5 LEA R11D,[R8 + RSI*0x4] LAB_0018983b: TEST CL,CL SETZ CL AND EDX,0xffffffd3 CMP R10D,0x1 SETZ SIL AND SIL,CL MOVZX ESI,SIL SHL ESI,0x3 OR ESI,EDX MOVZX ECX,R11W OR ECX,ESI MOV word ptr [RDI + 0x98],CX LEA EDX,[R10 + RAX*0x2] CMP EDX,0x2 POP RBX JLE 0x00189878 MOV AL,byte ptr [RDI + 0x9f] OR AL,0x4 JMP 0x00189888 LAB_00189878: ADD EDX,R9D MOV AL,byte ptr [RDI + 0x9f] CMP EDX,0x3 JL 0x0018988e OR AL,0x8 LAB_00189888: MOV byte ptr [RDI + 0x9f],AL LAB_0018988e: AND AL,0x5 CMP AL,0x4 JNZ 0x001898a1 AND ECX,0xffffffed OR ECX,0x2 MOV word ptr [RDI + 0x98],CX LAB_001898a1: RET
/* OpenSubdiv::v3_6_0::Bfr::FaceVertex::finalizeOrderedTags() */ void __thiscall OpenSubdiv::v3_6_0::Bfr::FaceVertex::finalizeOrderedTags(FaceVertex *this) { float fVar1; float *pfVar2; ushort uVar3; FaceVertex FVar4; uint uVar5; uint uVar6; ushort uVar7; ulong uVar8; int iVar9; int iVar10; ushort uVar11; FVar4 = *this; uVar6 = (byte)FVar4 & 0x10; uVar5 = uVar6 >> 4; uVar11 = (ushort)*(int4 *)(this + 0x98) & 0xf8fe | (ushort)uVar5; uVar7 = (ushort)(uVar6 << 6) | uVar11; *(ushort *)(this + 0x98) = uVar7; if (((byte)FVar4 & 0x40) == 0) { return; } pfVar2 = *(float **)(this + 8); if ((char)uVar6 != '\0') { uVar7 = 0x400; if (DAT_001b5004 <= *pfVar2) { uVar7 = (ushort)(pfVar2[(long)*(short *)(this + 2) * 2 + -1] < DAT_001b5004) << 10; } uVar7 = uVar7 | uVar11; *(ushort *)(this + 0x98) = uVar7; } iVar9 = 0; iVar10 = 0; uVar11 = 0; if ((int)uVar5 < (int)*(short *)(this + 2)) { uVar8 = (ulong)((byte)FVar4 >> 4 & 1); iVar9 = 0; do { fVar1 = pfVar2[uVar8 * 2]; iVar9 = iVar9 + (uint)(fVar1 < DAT_001b5004 && 0.0 < fVar1); iVar10 = (iVar10 + 1) - (uint)(fVar1 < DAT_001b5004); uVar8 = uVar8 + 1; } while ((uint)(int)*(short *)(this + 2) != uVar8); uVar11 = (ushort)(iVar9 != 0) * 0x20 + (ushort)(iVar10 != 0) * 4; } uVar3 = (ushort)(iVar10 == 1 && (char)uVar6 == '\0') << 3; *(ushort *)(this + 0x98) = uVar11 | uVar3 | uVar7 & 0xffd3; iVar10 = iVar10 + uVar5 * 2; if (iVar10 < 3) { FVar4 = this[0x9f]; if (iVar10 + iVar9 < 3) goto LAB_0018988e; FVar4 = (FaceVertex)((byte)FVar4 | 8); } else { FVar4 = (FaceVertex)((byte)this[0x9f] | 4); } this[0x9f] = FVar4; LAB_0018988e: if (((byte)FVar4 & 5) == 4) { *(ushort *)(this + 0x98) = uVar11 | uVar3 | uVar7 & 0xffc1 | 2; } return; }
27,689
minja::Parser::unexpected(minja::TemplateToken const&) const
monkey531[P]llama/common/minja.hpp
std::runtime_error unexpected(const TemplateToken & token) const { return std::runtime_error("Unexpected " + TemplateToken::typeToString(token.type) + error_location_suffix(*template_str, token.location.pos)); }
O1
cpp
minja::Parser::unexpected(minja::TemplateToken const&) const: pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x88, %rsp movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx movl 0x8(%rdx), %esi leaq 0x68(%rsp), %r12 movq %r12, %rdi callq 0x7e4fa leaq 0x3b728(%rip), %rcx # 0xb96ac movl $0xb, %r8d movq %r12, %rdi xorl %esi, %esi xorl %edx, %edx callq 0x19880 leaq 0x38(%rsp), %r12 movq %r12, -0x10(%r12) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x7dfbe movq %rdx, 0x28(%rsp) movq (%rcx), %rdx movq %rdx, 0x38(%rsp) jmp 0x7dfc6 movups (%rcx), %xmm0 movups %xmm0, (%r12) movq 0x8(%rax), %rdx movq %rdx, 0x30(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq (%r15), %rsi movq 0x20(%r14), %rdx leaq 0x48(%rsp), %rdi callq 0x54020 movq 0x28(%rsp), %rcx movq 0x30(%rsp), %r8 movq 0x50(%rsp), %rdx leaq (%rdx,%r8), %rax movl $0xf, %esi cmpq %r12, %rcx je 0x7e011 movq 0x38(%rsp), %rsi cmpq %rsi, %rax jbe 0x7e030 leaq 0x58(%rsp), %rdi movl $0xf, %esi cmpq %rdi, -0x10(%rdi) je 0x7e02b movq 0x58(%rsp), %rsi cmpq %rsi, %rax jbe 0x7e041 movq 0x48(%rsp), %rsi leaq 0x28(%rsp), %rdi callq 0x19210 jmp 0x7e04f leaq 0x48(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx callq 0x19880 leaq 0x18(%rsp), %rdx movq %rdx, -0x10(%rdx) movq (%rax), %rsi leaq 0x10(%rax), %rcx cmpq %rcx, %rsi je 0x7e073 movq %rsi, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0x7e079 movups (%rcx), %xmm0 movups %xmm0, (%rdx) movq %rax, %rdx addq $0x8, %rdx movq 0x8(%rax), %rsi movq %rsi, 0x10(%rsp) movq %rcx, (%rax) movq $0x0, (%rdx) movb $0x0, (%rcx) leaq 0x8(%rsp), %rsi movq %rbx, %rdi callq 0x19cc0 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x7e0be movq 0x18(%rsp), %rsi incq %rsi callq 0x197a0 leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x7e0d9 movq 0x58(%rsp), %rsi incq %rsi callq 0x197a0 movq 0x28(%rsp), %rdi cmpq %r12, %rdi je 0x7e0f0 movq 0x38(%rsp), %rsi incq %rsi callq 0x197a0 leaq 0x78(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x7e10b movq 0x78(%rsp), %rsi incq %rsi callq 0x197a0 movq %rbx, %rax addq $0x88, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x7e140 movq 0x18(%rsp), %rsi incq %rsi callq 0x197a0 jmp 0x7e140 movq %rax, %rbx leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x7e160 movq 0x58(%rsp), %rsi incq %rsi callq 0x197a0 jmp 0x7e160 movq %rax, %rbx movq 0x28(%rsp), %rdi cmpq %r12, %rdi je 0x7e17c movq 0x38(%rsp), %rsi incq %rsi callq 0x197a0 jmp 0x7e17c movq %rax, %rbx leaq 0x78(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x7e197 movq 0x78(%rsp), %rsi incq %rsi callq 0x197a0 movq %rbx, %rdi callq 0x19e00 nop
_ZNK5minja6Parser10unexpectedERKNS_13TemplateTokenE: push r15; int push r14; int push r12; int push rbx; int sub rsp, 88h mov r14, rdx mov r15, rsi mov rbx, rdi mov esi, [rdx+8] lea r12, [rsp+0A8h+var_40] mov rdi, r12 call _ZN5minja13TemplateToken12typeToStringB5cxx11ENS0_4TypeE; minja::TemplateToken::typeToString(minja::TemplateToken::Type) lea rcx, aUnexpected_0; "Unexpected " mov r8d, 0Bh mov rdi, r12 xor esi, esi xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong) lea r12, [rsp+0A8h+var_70] mov [r12-10h], r12 mov rdx, [rax] mov rcx, rax add rcx, 10h; int cmp rdx, rcx jz short loc_7DFBE mov [rsp+0A8h+var_80], rdx mov rdx, [rcx] mov [rsp+0A8h+var_70], rdx jmp short loc_7DFC6 loc_7DFBE: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r12], xmm0 loc_7DFC6: mov rdx, [rax+8] mov qword ptr [rsp+0A8h+var_78], rdx; int mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 mov rsi, [r15]; int mov rdx, [r14+20h]; int lea rdi, [rsp+0A8h+var_60]; int call _ZN5minjaL21error_location_suffixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm_0; minja::error_location_suffix(std::string const&,ulong) mov rcx, [rsp+0A8h+var_80] mov r8, qword ptr [rsp+0A8h+var_78] mov rdx, [rsp+0A8h+var_58] lea rax, [rdx+r8] mov esi, 0Fh cmp rcx, r12 jz short loc_7E011 mov rsi, [rsp+0A8h+var_70] loc_7E011: cmp rax, rsi jbe short loc_7E030 lea rdi, [rsp+0A8h+var_50] mov esi, 0Fh cmp [rdi-10h], rdi jz short loc_7E02B mov rsi, [rsp+0A8h+var_50] loc_7E02B: cmp rax, rsi jbe short loc_7E041 loc_7E030: mov rsi, qword ptr [rsp+0A8h+var_60] lea rdi, [rsp+0A8h+var_80] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) jmp short loc_7E04F loc_7E041: lea rdi, [rsp+0A8h+var_60] xor esi, esi xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong) loc_7E04F: lea rdx, [rsp+0A8h+var_90] mov [rdx-10h], rdx mov rsi, [rax] lea rcx, [rax+10h] cmp rsi, rcx jz short loc_7E073 mov [rsp+0A8h+var_A0], rsi mov rdx, [rcx] mov [rsp+0A8h+var_90], rdx jmp short loc_7E079 loc_7E073: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [rdx], xmm0 loc_7E079: mov rdx, rax add rdx, 8 mov rsi, [rax+8] mov [rsp+0A8h+var_98], rsi mov [rax], rcx mov qword ptr [rdx], 0 mov byte ptr [rcx], 0 lea rsi, [rsp+0A8h+var_A0] mov rdi, rbx call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) lea rax, [rsp+0A8h+var_90] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_7E0BE mov rsi, [rsp+0A8h+var_90] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_7E0BE: lea rax, [rsp+0A8h+var_50] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_7E0D9 mov rsi, [rsp+0A8h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_7E0D9: mov rdi, [rsp+0A8h+var_80]; void * cmp rdi, r12 jz short loc_7E0F0 mov rsi, [rsp+0A8h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_7E0F0: lea rax, [rsp+0A8h+var_30] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_7E10B mov rsi, [rsp+0A8h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_7E10B: mov rax, rbx add rsp, 88h pop rbx pop r12 pop r14 pop r15 retn mov rbx, rax lea rax, [rsp+arg_10] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_7E140 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_7E140 mov rbx, rax loc_7E140: lea rax, [rsp+arg_50] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_7E160 mov rsi, [rsp+arg_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_7E160 mov rbx, rax loc_7E160: mov rdi, [rsp+arg_20]; void * cmp rdi, r12 jz short loc_7E17C mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_7E17C mov rbx, rax loc_7E17C: lea rax, [rsp+arg_70] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_7E197 mov rsi, [rsp+arg_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_7E197: mov rdi, rbx call __Unwind_Resume
minja::Parser * minja::Parser::unexpected(minja::Parser *this, const minja::TemplateToken *a2, long long a3) { long long v4; // rax __int128 *v5; // rcx unsigned long long v6; // rax unsigned long long v7; // rsi unsigned long long v8; // rsi void **v9; // rax __int128 *v10; // rcx void *v12[2]; // [rsp+8h] [rbp-A0h] BYREF __int128 v13; // [rsp+18h] [rbp-90h] BYREF void *v14; // [rsp+28h] [rbp-80h] BYREF int v15[2]; // [rsp+30h] [rbp-78h] __int128 v16; // [rsp+38h] [rbp-70h] BYREF int v17[2]; // [rsp+48h] [rbp-60h] BYREF long long v18; // [rsp+50h] [rbp-58h] _QWORD v19[2]; // [rsp+58h] [rbp-50h] BYREF void *v20[2]; // [rsp+68h] [rbp-40h] BYREF long long v21; // [rsp+78h] [rbp-30h] BYREF minja::TemplateToken::typeToString[abi:cxx11](v20, *(unsigned int *)(a3 + 8)); v4 = std::string::replace(v20, 0LL, 0LL, "Unexpected ", 11LL); v14 = &v16; v5 = (__int128 *)(v4 + 16); if ( *(_QWORD *)v4 == v4 + 16 ) { v16 = *v5; } else { v14 = *(void **)v4; *(_QWORD *)&v16 = *(_QWORD *)v5; } *(_QWORD *)v15 = *(_QWORD *)(v4 + 8); *(_QWORD *)v4 = v5; *(_QWORD *)(v4 + 8) = 0LL; *(_BYTE *)(v4 + 16) = 0; minja::error_location_suffix((long long)v17, *(_QWORD *)a2, *(_QWORD *)(a3 + 32)); v6 = v18 + *(_QWORD *)v15; v7 = 15LL; if ( v14 != &v16 ) v7 = v16; if ( v6 <= v7 ) goto LABEL_10; v8 = 15LL; if ( *(_QWORD **)v17 != v19 ) v8 = v19[0]; if ( v6 <= v8 ) v9 = (void **)std::string::replace(v17, 0LL, 0LL, v14, *(_QWORD *)v15); else LABEL_10: v9 = (void **)std::string::_M_append(&v14, *(_QWORD *)v17, v18); v12[0] = &v13; v10 = (__int128 *)(v9 + 2); if ( *v9 == v9 + 2 ) { v13 = *v10; } else { v12[0] = *v9; *(_QWORD *)&v13 = *(_QWORD *)v10; } v12[1] = v9[1]; *v9 = v10; v9[1] = 0LL; *(_BYTE *)v10 = 0; std::runtime_error::runtime_error(this, v12); if ( v12[0] != &v13 ) operator delete(v12[0], v13 + 1); if ( *(_QWORD **)v17 != v19 ) operator delete(*(void **)v17, v19[0] + 1LL); if ( v14 != &v16 ) operator delete(v14, v16 + 1); if ( v20[0] != &v21 ) operator delete(v20[0], v21 + 1); return this; }
unexpected: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x88 MOV R14,RDX MOV R15,RSI MOV RBX,RDI MOV ESI,dword ptr [RDX + 0x8] LEA R12,[RSP + 0x68] MOV RDI,R12 CALL 0x0017e4fa LAB_0017df7d: LEA RCX,[0x1b96ac] MOV R8D,0xb MOV RDI,R12 XOR ESI,ESI XOR EDX,EDX CALL 0x00119880 LEA R12,[RSP + 0x38] MOV qword ptr [R12 + -0x10],R12 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x0017dfbe MOV qword ptr [RSP + 0x28],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x38],RDX JMP 0x0017dfc6 LAB_0017dfbe: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R12],XMM0 LAB_0017dfc6: MOV RDX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x30],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R14 + 0x20] LAB_0017dfe5: LEA RDI,[RSP + 0x48] CALL 0x00154020 MOV RCX,qword ptr [RSP + 0x28] MOV R8,qword ptr [RSP + 0x30] MOV RDX,qword ptr [RSP + 0x50] LEA RAX,[RDX + R8*0x1] MOV ESI,0xf CMP RCX,R12 JZ 0x0017e011 MOV RSI,qword ptr [RSP + 0x38] LAB_0017e011: CMP RAX,RSI JBE 0x0017e030 LEA RDI,[RSP + 0x58] MOV ESI,0xf CMP qword ptr [RDI + -0x10],RDI JZ 0x0017e02b MOV RSI,qword ptr [RSP + 0x58] LAB_0017e02b: CMP RAX,RSI JBE 0x0017e041 LAB_0017e030: MOV RSI,qword ptr [RSP + 0x48] LAB_0017e035: LEA RDI,[RSP + 0x28] CALL 0x00119210 JMP 0x0017e04f LAB_0017e041: LEA RDI,[RSP + 0x48] XOR ESI,ESI XOR EDX,EDX CALL 0x00119880 LAB_0017e04f: LEA RDX,[RSP + 0x18] MOV qword ptr [RDX + -0x10],RDX MOV RSI,qword ptr [RAX] LEA RCX,[RAX + 0x10] CMP RSI,RCX JZ 0x0017e073 MOV qword ptr [RSP + 0x8],RSI MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x18],RDX JMP 0x0017e079 LAB_0017e073: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [RDX],XMM0 LAB_0017e079: MOV RDX,RAX ADD RDX,0x8 MOV RSI,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x10],RSI MOV qword ptr [RAX],RCX MOV qword ptr [RDX],0x0 MOV byte ptr [RCX],0x0 LAB_0017e096: LEA RSI,[RSP + 0x8] MOV RDI,RBX CALL 0x00119cc0 LAB_0017e0a3: LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0017e0be MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001197a0 LAB_0017e0be: LEA RAX,[RSP + 0x58] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0017e0d9 MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x001197a0 LAB_0017e0d9: MOV RDI,qword ptr [RSP + 0x28] CMP RDI,R12 JZ 0x0017e0f0 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x001197a0 LAB_0017e0f0: LEA RAX,[RSP + 0x78] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0017e10b MOV RSI,qword ptr [RSP + 0x78] INC RSI CALL 0x001197a0 LAB_0017e10b: MOV RAX,RBX ADD RSP,0x88 POP RBX POP R12 POP R14 POP R15 RET
/* minja::Parser::unexpected(minja::TemplateToken const&) const */ TemplateToken * minja::Parser::unexpected(TemplateToken *param_1) { long *plVar1; int8 *puVar2; ulong *puVar3; long in_RDX; int8 *in_RSI; ulong uVar4; long *local_a0; int8 local_98; long local_90; int8 uStack_88; ulong *local_80; long local_78; ulong local_70; long lStack_68; ulong *local_60; long local_58; ulong local_50 [2]; long *local_40 [2]; long local_30 [2]; TemplateToken::typeToString_abi_cxx11_((TemplateToken *)local_40); /* try { // try from 0017df7d to 0017df95 has its CatchHandler @ 0017e179 */ plVar1 = (long *)std::__cxx11::string::replace((ulong)local_40,0,(char *)0x0,0x1b96ac); puVar3 = (ulong *)(plVar1 + 2); if ((ulong *)*plVar1 == puVar3) { local_70 = *puVar3; lStack_68 = plVar1[3]; local_80 = &local_70; } else { local_70 = *puVar3; local_80 = (ulong *)*plVar1; } local_78 = plVar1[1]; *plVar1 = (long)puVar3; plVar1[1] = 0; *(int1 *)(plVar1 + 2) = 0; /* try { // try from 0017dfe5 to 0017dfee has its CatchHandler @ 0017e15d */ error_location_suffix((minja *)&local_60,(string *)*in_RSI,*(ulong *)(in_RDX + 0x20)); uVar4 = 0xf; if (local_80 != &local_70) { uVar4 = local_70; } if (uVar4 < (ulong)(local_58 + local_78)) { uVar4 = 0xf; if (local_60 != local_50) { uVar4 = local_50[0]; } if ((ulong)(local_58 + local_78) <= uVar4) { puVar2 = (int8 *) std::__cxx11::string::replace((ulong)&local_60,0,(char *)0x0,(ulong)local_80); goto LAB_0017e04f; } } /* try { // try from 0017e035 to 0017e04e has its CatchHandler @ 0017e13d */ puVar2 = (int8 *)std::__cxx11::string::_M_append((char *)&local_80,(ulong)local_60); LAB_0017e04f: local_a0 = &local_90; plVar1 = puVar2 + 2; if ((long *)*puVar2 == plVar1) { local_90 = *plVar1; uStack_88 = puVar2[3]; } else { local_90 = *plVar1; local_a0 = (long *)*puVar2; } local_98 = puVar2[1]; *puVar2 = plVar1; puVar2[1] = 0; *(int1 *)plVar1 = 0; /* try { // try from 0017e096 to 0017e0a2 has its CatchHandler @ 0017e11d */ std::runtime_error::runtime_error((runtime_error *)param_1,(string *)&local_a0); if (local_a0 != &local_90) { operator_delete(local_a0,local_90 + 1); } if (local_60 != local_50) { operator_delete(local_60,local_50[0] + 1); } if (local_80 != &local_70) { operator_delete(local_80,local_70 + 1); } if (local_40[0] != local_30) { operator_delete(local_40[0],local_30[0] + 1); } return param_1; }
27,690
blst_fp_from_uint64
corpus-core[P]colibri-stateless/build_O1/_deps/blst-src/src/exports.c
void blst_fp_from_uint64(vec384 ret, const unsigned long long a[6]) { const union { long one; char little; } is_endian = { 1 }; if (sizeof(limb_t) == 4 && !is_endian.little) { int i; for (i = 0; i < 6; i++) { unsigned long long limb = a[i]; ret[2*i] = (limb_t)limb; ret[2*i+1] = (limb_t)(limb >> 32); } a = (const unsigned long long *)ret; } mul_fp(ret, (const limb_t *)a, BLS12_381_RR); }
O1
c
blst_fp_from_uint64: pushq %rbp movq %rsp, %rbp leaq 0x1a8ca(%rip), %rdx # 0x3fda0 leaq 0x1a643(%rip), %rcx # 0x3fb20 movabsq $-0x760c000300030003, %r8 # imm = 0x89F3FFFCFFFCFFFD popq %rbp jmp 0x34be0
blst_fp_from_uint64: push rbp mov rbp, rsp lea rdx, BLS12_381_RR lea rcx, BLS12_381_P mov r8, 89F3FFFCFFFCFFFDh pop rbp jmp mul_mont_384
long long blst_fp_from_uint64(long long a1, long long a2) { return mul_mont_384(a1, a2, &BLS12_381_RR, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL); }
blst_fp_from_uint64: PUSH RBP MOV RBP,RSP LEA RDX,[0x13fda0] LEA RCX,[0x13fb20] MOV R8,-0x760c000300030003 POP RBP JMP 0x00134be0
void blst_fp_from_uint64(int8 param_1,int8 param_2) { mul_mont_384(param_1,param_2,BLS12_381_RR,BLS12_381_P,0x89f3fffcfffcfffd); return; }
27,691
ft_init_nlq_search
eloqsql/storage/myisam/ft_nlq_search.c
FT_INFO *ft_init_nlq_search(MI_INFO *info, uint keynr, uchar *query, uint query_len, uint flags, uchar *record) { TREE wtree; ALL_IN_ONE aio; FT_DOC *dptr; FT_INFO *dlist=NULL; my_off_t saved_lastpos=info->lastpos; struct st_mysql_ftparser *parser; MYSQL_FTPARSER_PARAM *ftparser_param; DBUG_ENTER("ft_init_nlq_search"); /* black magic ON */ if ((int) (keynr = _mi_check_index(info,keynr)) < 0) DBUG_RETURN(NULL); if (_mi_readinfo(info,F_RDLCK,1)) DBUG_RETURN(NULL); /* black magic OFF */ aio.info=info; aio.keynr=keynr; aio.charset=info->s->keyinfo[keynr].seg->charset; aio.keybuff=info->lastkey+info->s->base.max_key_length; parser= info->s->keyinfo[keynr].parser; if (! (ftparser_param= ftparser_call_initializer(info, keynr, 0))) goto err; bzero(&wtree,sizeof(wtree)); init_tree(&aio.dtree,0,0,sizeof(FT_SUPERDOC),(qsort_cmp2)&FT_SUPERDOC_cmp, NULL, NULL, MYF(0)); ft_parse_init(&wtree, aio.charset); ftparser_param->flags= 0; if (ft_parse(&wtree, query, query_len, parser, ftparser_param, &wtree.mem_root)) goto err; if (tree_walk(&wtree, (tree_walk_action)&walk_and_match, &aio, left_root_right)) goto err; if (flags & FT_EXPAND && ft_query_expansion_limit) { QUEUE best; init_queue(&best,ft_query_expansion_limit,0,0, (queue_compare) &FT_DOC_cmp, 0, 0, 0); tree_walk(&aio.dtree, (tree_walk_action) &walk_and_push, &best, left_root_right); while (best.elements) { my_off_t docid= ((FT_DOC *)queue_remove_top(&best))->dpos; if (!(*info->read_record)(info,docid,record)) { info->update|= HA_STATE_AKTIV; ftparser_param->flags= MYSQL_FTFLAGS_NEED_COPY; if (unlikely(_mi_ft_parse(&wtree, info, keynr, record, ftparser_param, &wtree.mem_root))) { delete_queue(&best); goto err; } } } delete_queue(&best); reset_tree(&aio.dtree); if (tree_walk(&wtree, (tree_walk_action)&walk_and_match, &aio, left_root_right)) goto err; } /* If ndocs == 0, this will not allocate RAM for FT_INFO.doc[], so if ndocs == 0, FT_INFO.doc[] must not be accessed. */ dlist=(FT_INFO *)my_malloc(mi_key_memory_FT_INFO, sizeof(FT_INFO)+ sizeof(FT_DOC)* (int)(aio.dtree.elements_in_tree-1), MYF(0)); if (!dlist) goto err; dlist->please= (struct _ft_vft *) & _ft_vft_nlq; dlist->ndocs=aio.dtree.elements_in_tree; dlist->curdoc=-1; dlist->info=aio.info; dptr=dlist->doc; tree_walk(&aio.dtree, (tree_walk_action) &walk_and_copy, &dptr, left_root_right); if (flags & FT_SORTED) my_qsort2(dlist->doc, dlist->ndocs, sizeof(FT_DOC), (qsort2_cmp)&FT_DOC_cmp, 0); err: delete_tree(&aio.dtree, 0); delete_tree(&wtree, 0); info->lastpos=saved_lastpos; DBUG_RETURN(dlist); }
O3
c
ft_init_nlq_search: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x5b8, %rsp # imm = 0x5B8 movq %r9, -0x50(%rbp) movl %r8d, -0x2c(%rbp) movl %ecx, %r12d movq %rdx, %r15 movq %rdi, %rbx movq 0x170(%rdi), %r14 callq 0x870f4 testl %eax, %eax js 0x75f68 movl %eax, %r13d movq %r14, -0x48(%rbp) xorl %r14d, %r14d movq %rbx, %rdi xorl %esi, %esi movl $0x1, %edx callq 0x7f8ef testl %eax, %eax jne 0x76033 movq %rbx, -0x338(%rbp) movl %r13d, -0x330(%rbp) movq (%rbx), %rax movq 0x218(%rax), %rcx movl %r13d, %edx imulq $0x70, %rdx, %rdx movq 0x28(%rcx,%rdx), %rsi movq (%rsi), %rsi movq %rsi, -0x328(%rbp) movl 0x194(%rax), %eax addq 0x108(%rbx), %rax movq %rax, -0x320(%rbp) movq 0x38(%rcx,%rdx), %rax movq %rax, -0x40(%rbp) xorl %r14d, %r14d movq %rbx, %rdi movl %r13d, %esi xorl %edx, %edx callq 0x76fe9 testq %rax, %rax je 0x7600c leaq -0x5d0(%rbp), %rdi xorl %r14d, %r14d movl $0x298, %edx # imm = 0x298 xorl %esi, %esi movq %rax, -0x38(%rbp) callq 0x29290 leaq -0x318(%rbp), %rdi xorps %xmm0, %xmm0 movups %xmm0, (%rsp) leaq 0x275(%rip), %r8 # 0x76056 xorl %esi, %esi xorl %edx, %edx movl $0x20, %ecx xorl %r9d, %r9d callq 0xa73f4 leaq -0x318(%rbp), %rax movq -0x10(%rax), %rsi leaq -0x5d0(%rbp), %rdi callq 0x76dda movq -0x38(%rbp), %rax movl $0x0, 0x34(%rax) leaq -0x398(%rbp), %r9 leaq -0x5d0(%rbp), %rdi movq %r15, %rsi movq %rax, %r15 movl %r12d, %edx movq -0x40(%rbp), %rcx movq %rax, %r8 callq 0x76e2a testl %eax, %eax jne 0x7600c leaq 0x229(%rip), %rsi # 0x7606f leaq -0x5d0(%rbp), %rdi leaq -0x338(%rbp), %rdx xorl %r14d, %r14d xorl %ecx, %ecx callq 0xa8083 testl %eax, %eax jne 0x7600c movl -0x2c(%rbp), %eax shrb $0x2, %al leaq 0x3113ad(%rip), %rcx # 0x387220 movq (%rcx), %rsi testq %rsi, %rsi setne %cl andb %al, %cl cmpb $0x1, %cl jne 0x75f70 xorl %r12d, %r12d movl %r12d, 0x8(%rsp) movl %r12d, (%rsp) leaq 0x77a(%rip), %r8 # 0x76614 leaq -0x80(%rbp), %r14 movq %r14, %rdi xorl %edx, %edx xorl %ecx, %ecx xorl %r9d, %r9d callq 0xa4e04 leaq 0x78d(%rip), %rsi # 0x76641 leaq -0x318(%rbp), %rdi movq %r14, %rdx xorl %ecx, %ecx callq 0xa8083 cmpl %r12d, 0x10(%r14) movq -0x50(%rbp), %r12 je 0x75f2b movq %r14, %rdi movl $0x1, %esi callq 0xa5056 movq (%rax), %rsi movq %rbx, %rdi movq %r12, %rdx callq *0x140(%rbx) testl %eax, %eax jne 0x75f25 orb $0x2, 0x1d0(%rbx) movq %r15, %r8 movl $0x1, 0x34(%r15) leaq -0x5d0(%rbp), %rdi movq %rbx, %rsi movl %r13d, %edx movq %r12, %rcx leaq -0x398(%rbp), %r9 callq 0x77266 testl %eax, %eax jne 0x76048 cmpl $0x0, -0x70(%rbp) jne 0x75ecf leaq -0x80(%rbp), %rdi callq 0xa4f2c leaq -0x318(%rbp), %rdi callq 0xa75f5 leaq 0x128(%rip), %rsi # 0x7606f leaq -0x5d0(%rbp), %rdi leaq -0x338(%rbp), %rdx xorl %ecx, %ecx callq 0xa8083 testl %eax, %eax je 0x75f70 xorl %r14d, %r14d jmp 0x7600c xorl %r14d, %r14d jmp 0x76033 leaq 0xb8c429(%rip), %rax # 0xc023a0 movl (%rax), %edi movl -0x10c(%rbp), %eax decl %eax movslq %eax, %rsi shlq $0x4, %rsi addq $0x28, %rsi xorl %r14d, %r14d xorl %edx, %edx callq 0xa2a95 testq %rax, %rax leaq -0x318(%rbp), %rdi je 0x7600c movq %rax, %r15 leaq 0x308524(%rip), %rax # 0x37e4d0 movq %rax, (%r15) movl -0x10c(%rbp), %eax movl %eax, 0x10(%r15) movl $0xffffffff, 0x14(%r15) # imm = 0xFFFFFFFF movq -0x338(%rbp), %rax movq %rax, 0x8(%r15) movq %r15, %r14 addq $0x18, %r14 leaq -0x80(%rbp), %rdx movq %r14, (%rdx) leaq 0x6a3(%rip), %rsi # 0x76684 xorl %ecx, %ecx callq 0xa8083 testb $0x2, -0x2c(%rbp) je 0x76009 movslq 0x10(%r15), %rsi leaq 0x61b(%rip), %rcx # 0x76614 movl $0x10, %edx movq %r14, %rdi xorl %r8d, %r8d callq 0x9ec14 movq %r15, %r14 leaq -0x318(%rbp), %rdi xorl %esi, %esi callq 0xa751e leaq -0x5d0(%rbp), %rdi xorl %esi, %esi callq 0xa751e movq -0x48(%rbp), %rax movq %rax, 0x170(%rbx) movq %r14, %rax addq $0x5b8, %rsp # imm = 0x5B8 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq -0x80(%rbp), %rdi callq 0xa4f2c jmp 0x75f60
ft_init_nlq_search: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 5B8h mov [rbp+var_50], r9 mov [rbp+var_2C], r8d mov r12d, ecx mov r15, rdx mov rbx, rdi mov r14, [rdi+170h] call _mi_check_index test eax, eax js loc_75F68 mov r13d, eax mov [rbp+var_48], r14 xor r14d, r14d mov rdi, rbx xor esi, esi mov edx, 1 call _mi_readinfo test eax, eax jnz loc_76033 mov [rbp+var_338], rbx mov [rbp+var_330], r13d mov rax, [rbx] mov rcx, [rax+218h] mov edx, r13d imul rdx, 70h ; 'p' mov rsi, [rcx+rdx+28h] mov rsi, [rsi] mov [rbp+var_328], rsi mov eax, [rax+194h] add rax, [rbx+108h] mov [rbp+var_320], rax mov rax, [rcx+rdx+38h] mov [rbp+var_40], rax xor r14d, r14d mov rdi, rbx mov esi, r13d xor edx, edx call ftparser_call_initializer test rax, rax jz loc_7600C lea rdi, [rbp+var_5D0] xor r14d, r14d mov edx, 298h xor esi, esi mov [rbp+var_38], rax call _memset lea rdi, [rbp+var_318] xorps xmm0, xmm0 movups [rsp+5E0h+var_5E0], xmm0 lea r8, FT_SUPERDOC_cmp xor esi, esi xor edx, edx mov ecx, 20h ; ' ' xor r9d, r9d call init_tree lea rax, [rbp+var_318] mov rsi, [rax-10h] lea rdi, [rbp+var_5D0] call ft_parse_init mov rax, [rbp+var_38] mov dword ptr [rax+34h], 0 lea r9, [rbp+var_398] lea rdi, [rbp+var_5D0] mov rsi, r15 mov r15, rax mov edx, r12d mov rcx, [rbp+var_40] mov r8, rax call ft_parse test eax, eax jnz loc_7600C lea rsi, walk_and_match lea rdi, [rbp+var_5D0] lea rdx, [rbp+var_338] xor r14d, r14d xor ecx, ecx call tree_walk test eax, eax jnz loc_7600C mov eax, [rbp+var_2C] shr al, 2 lea rcx, ft_query_expansion_limit mov rsi, [rcx] test rsi, rsi setnz cl and cl, al cmp cl, 1 jnz loc_75F70 xor r12d, r12d mov dword ptr [rsp+5E0h+var_5E0+8], r12d mov dword ptr [rsp+5E0h+var_5E0], r12d lea r8, FT_DOC_cmp lea r14, [rbp+var_80] mov rdi, r14 xor edx, edx xor ecx, ecx xor r9d, r9d call init_queue lea rsi, walk_and_push lea rdi, [rbp+var_318] mov rdx, r14 xor ecx, ecx call tree_walk cmp [r14+10h], r12d mov r12, [rbp+var_50] jz short loc_75F2B loc_75ECF: mov rdi, r14 mov esi, 1 call queue_remove mov rsi, [rax] mov rdi, rbx mov rdx, r12 call qword ptr [rbx+140h] test eax, eax jnz short loc_75F25 or byte ptr [rbx+1D0h], 2 mov r8, r15 mov dword ptr [r15+34h], 1 lea rdi, [rbp+var_5D0] mov rsi, rbx mov edx, r13d mov rcx, r12 lea r9, [rbp+var_398] call _mi_ft_parse test eax, eax jnz loc_76048 loc_75F25: cmp [rbp+var_70], 0 jnz short loc_75ECF loc_75F2B: lea rdi, [rbp+var_80] call delete_queue lea rdi, [rbp+var_318] call reset_tree lea rsi, walk_and_match lea rdi, [rbp+var_5D0] lea rdx, [rbp+var_338] xor ecx, ecx call tree_walk test eax, eax jz short loc_75F70 loc_75F60: xor r14d, r14d jmp loc_7600C loc_75F68: xor r14d, r14d jmp loc_76033 loc_75F70: lea rax, mi_key_memory_FT_INFO mov edi, [rax] mov eax, [rbp+var_10C] dec eax movsxd rsi, eax shl rsi, 4 add rsi, 28h ; '(' xor r14d, r14d xor edx, edx call my_malloc test rax, rax lea rdi, [rbp+var_318] jz short loc_7600C mov r15, rax lea rax, _ft_vft_nlq mov [r15], rax mov eax, [rbp+var_10C] mov [r15+10h], eax mov dword ptr [r15+14h], 0FFFFFFFFh mov rax, [rbp+var_338] mov [r15+8], rax mov r14, r15 add r14, 18h lea rdx, [rbp+var_80] mov [rdx], r14 lea rsi, walk_and_copy_0 xor ecx, ecx call tree_walk test byte ptr [rbp+var_2C], 2 jz short loc_76009 movsxd rsi, dword ptr [r15+10h] lea rcx, FT_DOC_cmp mov edx, 10h mov rdi, r14 xor r8d, r8d call my_qsort2 loc_76009: mov r14, r15 loc_7600C: lea rdi, [rbp+var_318] xor esi, esi call delete_tree lea rdi, [rbp+var_5D0] xor esi, esi call delete_tree mov rax, [rbp+var_48] mov [rbx+170h], rax loc_76033: mov rax, r14 add rsp, 5B8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_76048: lea rdi, [rbp+var_80] call delete_queue jmp loc_75F60
long long ft_init_nlq_search( long long *a1, long long a2, long long a3, unsigned int a4, int a5, long long a6, double a7) { long long v9; // r14 int v10; // eax unsigned int v11; // r13d long long v12; // r14 long long v13; // rax long long v14; // rcx long long v15; // rdx long long v16; // rax long long v17; // rax long long v18; // rsi long long v19; // r15 long long v20; // r12 _QWORD *v21; // rax long long v22; // rax long long v23; // r15 _BYTE v25[568]; // [rsp+10h] [rbp-5D0h] BYREF _BYTE v26[96]; // [rsp+248h] [rbp-398h] BYREF long long *v27; // [rsp+2A8h] [rbp-338h] BYREF unsigned int v28; // [rsp+2B0h] [rbp-330h] long long v29; // [rsp+2B8h] [rbp-328h] long long v30; // [rsp+2C0h] [rbp-320h] _BYTE v31[524]; // [rsp+2C8h] [rbp-318h] BYREF int v32; // [rsp+4D4h] [rbp-10Ch] _QWORD v33[2]; // [rsp+560h] [rbp-80h] BYREF int v34; // [rsp+570h] [rbp-70h] long long v35; // [rsp+590h] [rbp-50h] long long v36; // [rsp+598h] [rbp-48h] long long v37; // [rsp+5A0h] [rbp-40h] long long v38; // [rsp+5A8h] [rbp-38h] int v39; // [rsp+5B4h] [rbp-2Ch] v35 = a6; v39 = a5; v9 = a1[46]; v10 = mi_check_index(a1, a2); if ( v10 < 0 ) return 0LL; v11 = v10; v36 = v9; v12 = 0LL; if ( !(unsigned int)mi_readinfo(a1, 0LL, 1LL) ) { v27 = a1; v28 = v11; v13 = *a1; v14 = *(_QWORD *)(*a1 + 536); v15 = 112LL * v11; v29 = **(_QWORD **)(v14 + v15 + 40); v30 = a1[33] + *(unsigned int *)(v13 + 404); v37 = *(_QWORD *)(v14 + v15 + 56); v12 = 0LL; v16 = ftparser_call_initializer(a1, v11, 0LL, a7); if ( !v16 ) goto LABEL_18; v12 = 0LL; v38 = v16; memset(v25, 0LL, 664LL); init_tree((unsigned int)v31, 0, 0, 32, (unsigned int)FT_SUPERDOC_cmp, 0, 0LL, 0LL); ft_parse_init(v25, v29); v17 = v38; *(_DWORD *)(v38 + 52) = 0; v18 = a3; v19 = v17; if ( (unsigned int)ft_parse(v25, v18, a4, v37, v17, v26) ) goto LABEL_18; v12 = 0LL; if ( (unsigned int)tree_walk(v25, walk_and_match, &v27, 0LL) ) goto LABEL_18; if ( (((unsigned __int8)v39 >> 2) & (ft_query_expansion_limit != 0LL)) == 1 ) { init_queue((unsigned int)v33, ft_query_expansion_limit, 0, 0, (unsigned int)FT_DOC_cmp, 0, 0, 0); tree_walk(v31, walk_and_push, v33, 0LL); v20 = v35; if ( v34 ) { while ( 1 ) { v21 = (_QWORD *)queue_remove(v33, 1LL); if ( !((unsigned int ( *)(long long *, _QWORD, long long))a1[40])(a1, *v21, v20) ) { *((_BYTE *)a1 + 464) |= 2u; *(_DWORD *)(v19 + 52) = 1; if ( (unsigned int)mi_ft_parse(v25, a1, v11, v20, v19, v26) ) break; } if ( !v34 ) goto LABEL_11; } delete_queue(v33); goto LABEL_12; } LABEL_11: delete_queue(v33); reset_tree(v31); if ( (unsigned int)tree_walk(v25, walk_and_match, &v27, 0LL) ) { LABEL_12: v12 = 0LL; LABEL_18: delete_tree(v31, 0LL); delete_tree(v25, 0LL); a1[46] = v36; return v12; } } v12 = 0LL; v22 = my_malloc(mi_key_memory_FT_INFO, 16LL * (v32 - 1) + 40, 0LL); if ( v22 ) { v23 = v22; *(_QWORD *)v22 = ft_vft_nlq; *(_DWORD *)(v22 + 16) = v32; *(_DWORD *)(v22 + 20) = -1; *(_QWORD *)(v22 + 8) = v27; v33[0] = v22 + 24; tree_walk(v31, walk_and_copy_0, v33, 0LL); if ( (v39 & 2) != 0 ) my_qsort2(v23 + 24, *(int *)(v23 + 16), 16LL, FT_DOC_cmp, 0LL); v12 = v23; } goto LABEL_18; } return v12; }
ft_init_nlq_search: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x5b8 MOV qword ptr [RBP + -0x50],R9 MOV dword ptr [RBP + -0x2c],R8D MOV R12D,ECX MOV R15,RDX MOV RBX,RDI MOV R14,qword ptr [RDI + 0x170] CALL 0x001870f4 TEST EAX,EAX JS 0x00175f68 MOV R13D,EAX MOV qword ptr [RBP + -0x48],R14 XOR R14D,R14D MOV RDI,RBX XOR ESI,ESI MOV EDX,0x1 CALL 0x0017f8ef TEST EAX,EAX JNZ 0x00176033 MOV qword ptr [RBP + -0x338],RBX MOV dword ptr [RBP + -0x330],R13D MOV RAX,qword ptr [RBX] MOV RCX,qword ptr [RAX + 0x218] MOV EDX,R13D IMUL RDX,RDX,0x70 MOV RSI,qword ptr [RCX + RDX*0x1 + 0x28] MOV RSI,qword ptr [RSI] MOV qword ptr [RBP + -0x328],RSI MOV EAX,dword ptr [RAX + 0x194] ADD RAX,qword ptr [RBX + 0x108] MOV qword ptr [RBP + -0x320],RAX MOV RAX,qword ptr [RCX + RDX*0x1 + 0x38] MOV qword ptr [RBP + -0x40],RAX XOR R14D,R14D MOV RDI,RBX MOV ESI,R13D XOR EDX,EDX CALL 0x00176fe9 TEST RAX,RAX JZ 0x0017600c LEA RDI,[RBP + -0x5d0] XOR R14D,R14D MOV EDX,0x298 XOR ESI,ESI MOV qword ptr [RBP + -0x38],RAX CALL 0x00129290 LEA RDI,[RBP + -0x318] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RSP],XMM0 LEA R8,[0x176056] XOR ESI,ESI XOR EDX,EDX MOV ECX,0x20 XOR R9D,R9D CALL 0x001a73f4 LEA RAX,[RBP + -0x318] MOV RSI,qword ptr [RAX + -0x10] LEA RDI,[RBP + -0x5d0] CALL 0x00176dda MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x34],0x0 LEA R9,[RBP + -0x398] LEA RDI,[RBP + -0x5d0] MOV RSI,R15 MOV R15,RAX MOV EDX,R12D MOV RCX,qword ptr [RBP + -0x40] MOV R8,RAX CALL 0x00176e2a TEST EAX,EAX JNZ 0x0017600c LEA RSI,[0x17606f] LEA RDI,[RBP + -0x5d0] LEA RDX,[RBP + -0x338] XOR R14D,R14D XOR ECX,ECX CALL 0x001a8083 TEST EAX,EAX JNZ 0x0017600c MOV EAX,dword ptr [RBP + -0x2c] SHR AL,0x2 LEA RCX,[0x487220] MOV RSI,qword ptr [RCX] TEST RSI,RSI SETNZ CL AND CL,AL CMP CL,0x1 JNZ 0x00175f70 XOR R12D,R12D MOV dword ptr [RSP + 0x8],R12D MOV dword ptr [RSP],R12D LEA R8,[0x176614] LEA R14,[RBP + -0x80] MOV RDI,R14 XOR EDX,EDX XOR ECX,ECX XOR R9D,R9D CALL 0x001a4e04 LEA RSI,[0x176641] LEA RDI,[RBP + -0x318] MOV RDX,R14 XOR ECX,ECX CALL 0x001a8083 CMP dword ptr [R14 + 0x10],R12D MOV R12,qword ptr [RBP + -0x50] JZ 0x00175f2b LAB_00175ecf: MOV RDI,R14 MOV ESI,0x1 CALL 0x001a5056 MOV RSI,qword ptr [RAX] MOV RDI,RBX MOV RDX,R12 CALL qword ptr [RBX + 0x140] TEST EAX,EAX JNZ 0x00175f25 OR byte ptr [RBX + 0x1d0],0x2 MOV R8,R15 MOV dword ptr [R15 + 0x34],0x1 LEA RDI,[RBP + -0x5d0] MOV RSI,RBX MOV EDX,R13D MOV RCX,R12 LEA R9,[RBP + -0x398] CALL 0x00177266 TEST EAX,EAX JNZ 0x00176048 LAB_00175f25: CMP dword ptr [RBP + -0x70],0x0 JNZ 0x00175ecf LAB_00175f2b: LEA RDI,[RBP + -0x80] CALL 0x001a4f2c LEA RDI,[RBP + -0x318] CALL 0x001a75f5 LEA RSI,[0x17606f] LEA RDI,[RBP + -0x5d0] LEA RDX,[RBP + -0x338] XOR ECX,ECX CALL 0x001a8083 TEST EAX,EAX JZ 0x00175f70 LAB_00175f60: XOR R14D,R14D JMP 0x0017600c LAB_00175f68: XOR R14D,R14D JMP 0x00176033 LAB_00175f70: LEA RAX,[0xd023a0] MOV EDI,dword ptr [RAX] MOV EAX,dword ptr [RBP + -0x10c] DEC EAX MOVSXD RSI,EAX SHL RSI,0x4 ADD RSI,0x28 XOR R14D,R14D XOR EDX,EDX CALL 0x001a2a95 TEST RAX,RAX LEA RDI,[RBP + -0x318] JZ 0x0017600c MOV R15,RAX LEA RAX,[0x47e4d0] MOV qword ptr [R15],RAX MOV EAX,dword ptr [RBP + -0x10c] MOV dword ptr [R15 + 0x10],EAX MOV dword ptr [R15 + 0x14],0xffffffff MOV RAX,qword ptr [RBP + -0x338] MOV qword ptr [R15 + 0x8],RAX MOV R14,R15 ADD R14,0x18 LEA RDX,[RBP + -0x80] MOV qword ptr [RDX],R14 LEA RSI,[0x176684] XOR ECX,ECX CALL 0x001a8083 TEST byte ptr [RBP + -0x2c],0x2 JZ 0x00176009 MOVSXD RSI,dword ptr [R15 + 0x10] LEA RCX,[0x176614] MOV EDX,0x10 MOV RDI,R14 XOR R8D,R8D CALL 0x0019ec14 LAB_00176009: MOV R14,R15 LAB_0017600c: LEA RDI,[RBP + -0x318] XOR ESI,ESI CALL 0x001a751e LEA RDI,[RBP + -0x5d0] XOR ESI,ESI CALL 0x001a751e MOV RAX,qword ptr [RBP + -0x48] MOV qword ptr [RBX + 0x170],RAX LAB_00176033: MOV RAX,R14 ADD RSP,0x5b8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00176048: LEA RDI,[RBP + -0x80] CALL 0x001a4f2c JMP 0x00175f60
int8 * ft_init_nlq_search(long *param_1,int8 param_2,int8 param_3,int4 param_4, uint param_5,int8 param_6) { int8 uVar1; uint uVar2; int iVar3; long lVar4; int8 *puVar5; int8 *puVar6; ulong uVar7; ulong uVar8; int1 local_5d8 [568]; int1 local_3a0 [96]; long *local_340; uint local_338; int8 local_330; long local_328; int1 local_320 [524]; int local_114; int8 *local_88 [2]; int local_78; int8 local_58; long local_50; int8 local_48; long local_40; uint local_34; lVar4 = param_1[0x2e]; local_58 = param_6; local_34 = param_5; uVar2 = _mi_check_index(); if ((int)uVar2 < 0) { puVar5 = (int8 *)0x0; } else { puVar5 = (int8 *)0x0; local_50 = lVar4; iVar3 = _mi_readinfo(param_1,0,1); if (iVar3 == 0) { lVar4 = *(long *)(*param_1 + 0x218); local_330 = **(int8 **)(lVar4 + 0x28 + (ulong)uVar2 * 0x70); local_328 = (ulong)*(uint *)(*param_1 + 0x194) + param_1[0x21]; local_48 = *(int8 *)(lVar4 + 0x38 + (ulong)uVar2 * 0x70); local_340 = param_1; local_338 = uVar2; lVar4 = ftparser_call_initializer(param_1,uVar2,0); puVar5 = (int8 *)0x0; if (lVar4 != 0) { local_40 = lVar4; memset(local_5d8,0,0x298); uVar7 = 0; uVar8 = 0; init_tree(local_320,0,0,0x20,FT_SUPERDOC_cmp,0,0,0); ft_parse_init(local_5d8,local_330); lVar4 = local_40; *(int4 *)(local_40 + 0x34) = 0; iVar3 = ft_parse(local_5d8,param_3,param_4,local_48,local_40,local_3a0); puVar5 = (int8 *)0x0; if (iVar3 == 0) { iVar3 = tree_walk(local_5d8,walk_and_match,&local_340,0); puVar5 = (int8 *)0x0; if (iVar3 == 0) { if ((ft_query_expansion_limit != 0 & (byte)local_34 >> 2) == 1) { init_queue(local_88,ft_query_expansion_limit,0,0,FT_DOC_cmp,0, uVar7 & 0xffffffff00000000,uVar8 & 0xffffffff00000000); tree_walk(local_320,walk_and_push,local_88,0); uVar1 = local_58; do { do { if (local_78 == 0) { delete_queue(local_88); reset_tree(local_320); iVar3 = tree_walk(local_5d8,walk_and_match,&local_340,0); if (iVar3 == 0) goto LAB_00175f70; goto LAB_00175f60; } puVar5 = (int8 *)queue_remove(local_88,1); iVar3 = (*(code *)param_1[0x28])(param_1,*puVar5,uVar1); } while (iVar3 != 0); *(byte *)(param_1 + 0x3a) = *(byte *)(param_1 + 0x3a) | 2; *(int4 *)(lVar4 + 0x34) = 1; iVar3 = _mi_ft_parse(local_5d8,param_1,uVar2,uVar1,lVar4,local_3a0); } while (iVar3 == 0); delete_queue(local_88); LAB_00175f60: puVar5 = (int8 *)0x0; } else { LAB_00175f70: puVar6 = (int8 *) my_malloc(mi_key_memory_FT_INFO,(long)(local_114 + -1) * 0x10 + 0x28,0); puVar5 = (int8 *)0x0; if (puVar6 != (int8 *)0x0) { *puVar6 = _ft_vft_nlq; *(int *)(puVar6 + 2) = local_114; *(int4 *)((long)puVar6 + 0x14) = 0xffffffff; puVar6[1] = local_340; local_88[0] = puVar6 + 3; tree_walk(local_320,walk_and_copy,local_88,0); puVar5 = puVar6; if ((local_34 & 2) != 0) { my_qsort2(puVar6 + 3,(long)*(int *)(puVar6 + 2),0x10,FT_DOC_cmp,0); } } } } } } delete_tree(local_320,0); delete_tree(local_5d8,0); param_1[0x2e] = local_50; } } return puVar5; }
27,692
google::protobuf::CheckFieldIndex(google::protobuf::FieldDescriptor const*, int)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/text_format.cc
void CheckFieldIndex(const FieldDescriptor* field, int index) { if (field == nullptr) { return; } if (field->is_repeated() && index == -1) { GOOGLE_LOG(DFATAL) << "Index must be in range of repeated field values. " << "Field: " << field->name(); } else if (!field->is_repeated() && index != -1) { GOOGLE_LOG(DFATAL) << "Index must be -1 for singular fields." << "Field: " << field->name(); } }
O0
cpp
google::protobuf::CheckFieldIndex(google::protobuf::FieldDescriptor const*, int): subq $0xe8, %rsp movq %rdi, 0xe0(%rsp) movl %esi, 0xdc(%rsp) cmpq $0x0, 0xe0(%rsp) jne 0x567ea6 jmp 0x56806d movq 0xe0(%rsp), %rdi callq 0x40f6a0 testb $0x1, %al jne 0x567ebc jmp 0x567f93 cmpl $-0x1, 0xdc(%rsp) jne 0x567f93 leaq 0x9545b(%rip), %rdx # 0x5fd32c leaq 0xa0(%rsp), %rdi movq %rdi, 0x40(%rsp) movl $0x2, %esi movl $0xa3, %ecx callq 0x3ef0b0 movq 0x40(%rsp), %rdi leaq 0x9549b(%rip), %rsi # 0x5fd394 callq 0x3ee970 movq %rax, 0x48(%rsp) jmp 0x567f05 movq 0x48(%rsp), %rdi leaq 0x954b5(%rip), %rsi # 0x5fd3c6 callq 0x3ee970 movq %rax, 0x38(%rsp) jmp 0x567f1d movq 0xe0(%rsp), %rdi callq 0x43acb0 movq %rax, 0x30(%rsp) jmp 0x567f31 movq 0x30(%rsp), %rsi movq 0x38(%rsp), %rdi callq 0x3ee9a0 movq %rax, 0x28(%rsp) jmp 0x567f47 movq 0x28(%rsp), %rsi leaq 0x93(%rsp), %rdi callq 0x3eeb20 jmp 0x567f5b leaq 0xa0(%rsp), %rdi callq 0x3ef0f0 jmp 0x56806d movq %rax, %rcx movl %edx, %eax movq %rcx, 0x98(%rsp) movl %eax, 0x94(%rsp) leaq 0xa0(%rsp), %rdi callq 0x3ef0f0 jmp 0x568075 movq 0xe0(%rsp), %rdi callq 0x40f6a0 testb $0x1, %al jne 0x56806b cmpl $-0x1, 0xdc(%rsp) je 0x56806b leaq 0x9536f(%rip), %rdx # 0x5fd32c leaq 0x58(%rsp), %rdi movq %rdi, 0x18(%rsp) movl $0x2, %esi movl $0xa6, %ecx callq 0x3ef0b0 movq 0x18(%rsp), %rdi leaq 0x953ec(%rip), %rsi # 0x5fd3ce callq 0x3ee970 movq %rax, 0x20(%rsp) jmp 0x567fee movq 0x20(%rsp), %rdi leaq 0x953cc(%rip), %rsi # 0x5fd3c6 callq 0x3ee970 movq %rax, 0x10(%rsp) jmp 0x568006 movq 0xe0(%rsp), %rdi callq 0x43acb0 movq %rax, 0x8(%rsp) jmp 0x56801a movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdi callq 0x3ee9a0 movq %rax, (%rsp) jmp 0x56802f movq (%rsp), %rsi leaq 0x57(%rsp), %rdi callq 0x3eeb20 jmp 0x56803f leaq 0x58(%rsp), %rdi callq 0x3ef0f0 jmp 0x56806b movq %rax, %rcx movl %edx, %eax movq %rcx, 0x98(%rsp) movl %eax, 0x94(%rsp) leaq 0x58(%rsp), %rdi callq 0x3ef0f0 jmp 0x568075 jmp 0x56806d addq $0xe8, %rsp retq movq 0x98(%rsp), %rdi callq 0x198ce0 nopw %cs:(%rax,%rax)
_ZN6google8protobuf15CheckFieldIndexEPKNS0_15FieldDescriptorEi: sub rsp, 0E8h mov [rsp+0E8h+var_8], rdi mov [rsp+0E8h+var_C], esi cmp [rsp+0E8h+var_8], 0 jnz short loc_567EA6 jmp loc_56806D loc_567EA6: mov rdi, [rsp+0E8h+var_8]; this call _ZNK6google8protobuf15FieldDescriptor11is_repeatedEv; google::protobuf::FieldDescriptor::is_repeated(void) test al, 1 jnz short loc_567EBC jmp loc_567F93 loc_567EBC: cmp [rsp+0E8h+var_C], 0FFFFFFFFh jnz loc_567F93 lea rdx, aWorkspaceLlm4b_56; "/workspace/llm4binary/github2025/aimrt_"... lea rdi, [rsp+0E8h+var_48] mov [rsp+0E8h+var_A8], rdi mov esi, 2 mov ecx, 0A3h call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int) mov rdi, [rsp+0E8h+var_A8] lea rsi, aIndexMustBeInR; "Index must be in range of repeated fiel"... call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov [rsp+0E8h+var_A0], rax jmp short $+2 loc_567F05: mov rdi, [rsp+0E8h+var_A0] lea rsi, aField_1; "Field: " call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov [rsp+0E8h+var_B0], rax jmp short $+2 loc_567F1D: mov rdi, [rsp+0E8h+var_8] call _ZNK6google8protobuf15FieldDescriptor4nameB5cxx11Ev; google::protobuf::FieldDescriptor::name(void) mov [rsp+0E8h+var_B8], rax jmp short $+2 loc_567F31: mov rsi, [rsp+0E8h+var_B8] mov rdi, [rsp+0E8h+var_B0] call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&) mov [rsp+0E8h+var_C0], rax jmp short $+2 loc_567F47: mov rsi, [rsp+0E8h+var_C0] lea rdi, [rsp+0E8h+var_55] call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &) jmp short $+2 loc_567F5B: lea rdi, [rsp+0E8h+var_48]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() jmp loc_56806D mov rcx, rax mov eax, edx mov [rsp+arg_90], rcx mov [rsp+arg_8C], eax lea rdi, [rsp+arg_98]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() jmp loc_568075 loc_567F93: mov rdi, [rsp+0E8h+var_8]; this call _ZNK6google8protobuf15FieldDescriptor11is_repeatedEv; google::protobuf::FieldDescriptor::is_repeated(void) test al, 1 jnz loc_56806B cmp [rsp+0E8h+var_C], 0FFFFFFFFh jz loc_56806B lea rdx, aWorkspaceLlm4b_56; "/workspace/llm4binary/github2025/aimrt_"... lea rdi, [rsp+0E8h+var_90] mov [rsp+0E8h+var_D0], rdi mov esi, 2 mov ecx, 0A6h call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int) mov rdi, [rsp+0E8h+var_D0] lea rsi, aIndexMustBe1Fo; "Index must be -1 for singular fields." call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov [rsp+0E8h+var_C8], rax jmp short $+2 loc_567FEE: mov rdi, [rsp+0E8h+var_C8] lea rsi, aField_1; "Field: " call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov [rsp+0E8h+var_D8], rax jmp short $+2 loc_568006: mov rdi, [rsp+0E8h+var_8] call _ZNK6google8protobuf15FieldDescriptor4nameB5cxx11Ev; google::protobuf::FieldDescriptor::name(void) mov [rsp+0E8h+var_E0], rax jmp short $+2 loc_56801A: mov rsi, [rsp+0E8h+var_E0] mov rdi, [rsp+0E8h+var_D8] call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&) mov [rsp+0E8h+var_E8], rax jmp short $+2 loc_56802F: mov rsi, [rsp+0E8h+var_E8] lea rdi, [rsp+0E8h+var_91] call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &) jmp short $+2 loc_56803F: lea rdi, [rsp+0E8h+var_90]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() jmp short loc_56806B mov rcx, rax mov eax, edx mov [rsp+arg_90], rcx mov [rsp+arg_8C], eax lea rdi, [rsp+arg_50]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() jmp short loc_568075 loc_56806B: jmp short $+2 loc_56806D: add rsp, 0E8h retn loc_568075: mov rdi, [rsp+arg_90] call __Unwind_Resume
void google::protobuf::CheckFieldIndex(google::protobuf *this, const google::protobuf::FieldDescriptor *a2) { google::protobuf::internal::LogMessage *v2; // [rsp+0h] [rbp-E8h] long long v3; // [rsp+8h] [rbp-E0h] long long v4; // [rsp+10h] [rbp-D8h] long long v5; // [rsp+20h] [rbp-C8h] google::protobuf::internal::LogMessage *v6; // [rsp+28h] [rbp-C0h] long long v7; // [rsp+30h] [rbp-B8h] long long v8; // [rsp+38h] [rbp-B0h] long long v9; // [rsp+48h] [rbp-A0h] char v10; // [rsp+57h] [rbp-91h] BYREF _BYTE v11[59]; // [rsp+58h] [rbp-90h] BYREF _BYTE v12[13]; // [rsp+93h] [rbp-55h] BYREF _BYTE v13[60]; // [rsp+A0h] [rbp-48h] BYREF int v14; // [rsp+DCh] [rbp-Ch] google::protobuf::FieldDescriptor *v15; // [rsp+E0h] [rbp-8h] v15 = this; v14 = (int)a2; if ( this ) { if ( google::protobuf::FieldDescriptor::is_repeated(v15) && v14 == -1 ) { google::protobuf::internal::LogMessage::LogMessage( (long long)v13, 2, (long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/text_format.cc", 163); v9 = google::protobuf::internal::LogMessage::operator<<( (long long)v13, (long long)"Index must be in range of repeated field values. "); v8 = google::protobuf::internal::LogMessage::operator<<(v9, (long long)"Field: "); v7 = google::protobuf::FieldDescriptor::name[abi:cxx11]((long long)v15); v6 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<(v8, v7); google::protobuf::internal::LogFinisher::operator=((long long)v12, v6); google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v13); } else if ( !google::protobuf::FieldDescriptor::is_repeated(v15) && v14 != -1 ) { google::protobuf::internal::LogMessage::LogMessage( (long long)v11, 2, (long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/text_format.cc", 166); v5 = google::protobuf::internal::LogMessage::operator<<( (long long)v11, (long long)"Index must be -1 for singular fields."); v4 = google::protobuf::internal::LogMessage::operator<<(v5, (long long)"Field: "); v3 = google::protobuf::FieldDescriptor::name[abi:cxx11]((long long)v15); v2 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<(v4, v3); google::protobuf::internal::LogFinisher::operator=((long long)&v10, v2); google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v11); } } }
SharedCtor: SUB RSP,0x38 MOV AL,DL MOV qword ptr [RSP + 0x30],RDI MOV qword ptr [RSP + 0x28],RSI AND AL,0x1 MOV byte ptr [RSP + 0x27],AL MOV RDI,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x18],RDI ADD RDI,0x10 MOV qword ptr [RSP + 0x8],RDI XOR ESI,ESI MOV EDX,0x8 CALL 0x002914a0 MOV RDI,qword ptr [RSP + 0x8] ADD RDI,0x8 MOV qword ptr [RSP + 0x10],RDI XOR ESI,ESI MOV EDX,0x4 CALL 0x002914a0 MOV RDI,qword ptr [RSP + 0x10] CALL 0x004b6830 MOV RDI,qword ptr [RSP + 0x18] ADD RDI,0x10 CALL 0x004b6850 ADD RSP,0x38 RET
/* google::protobuf::StringValue::SharedCtor(google::protobuf::Arena*, bool) */ void google::protobuf::StringValue::SharedCtor(Arena *param_1,bool param_2) { memset(param_1 + 0x10,0,8); memset((CachedSize *)(param_1 + 0x18),0,4); internal::CachedSize::CachedSize((CachedSize *)(param_1 + 0x18)); internal::ArenaStringPtr::InitDefault((ArenaStringPtr *)(param_1 + 0x10)); return; }
27,693
google::protobuf::CheckFieldIndex(google::protobuf::FieldDescriptor const*, int)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/text_format.cc
void CheckFieldIndex(const FieldDescriptor* field, int index) { if (field == nullptr) { return; } if (field->is_repeated() && index == -1) { GOOGLE_LOG(DFATAL) << "Index must be in range of repeated field values. " << "Field: " << field->name(); } else if (!field->is_repeated() && index != -1) { GOOGLE_LOG(DFATAL) << "Index must be -1 for singular fields." << "Field: " << field->name(); } }
O3
cpp
google::protobuf::CheckFieldIndex(google::protobuf::FieldDescriptor const*, int): pushq %r14 pushq %rbx subq $0x48, %rsp testq %rdi, %rdi je 0x1c0ca9 movq %rdi, %rbx movb 0x1(%rdi), %al andb $0x60, %al cmpb $0x60, %al setne %cl cmpl $-0x1, %esi setne %dl orb %cl, %dl jne 0x1c0c3b leaq 0x46ff5(%rip), %rdx # 0x207be0 leaq 0x10(%rsp), %r14 movq %r14, %rdi movl $0x2, %esi movl $0xa3, %ecx callq 0x13e1e6 leaq 0x4703f(%rip), %rsi # 0x207c48 movq %r14, %rdi callq 0x13dce4 leaq 0x47062(%rip), %rsi # 0x207c7a movq %rax, %rdi callq 0x13dce4 movq 0x8(%rbx), %rsi movq %rax, %rdi callq 0x13dcf6 leaq 0xf(%rsp), %rdi movq %rax, %rsi callq 0x13ddbe jmp 0x1c0c9f cmpl $-0x1, %esi sete %cl cmpb $0x60, %al sete %al orb %cl, %al jne 0x1c0ca9 leaq 0x46f8f(%rip), %rdx # 0x207be0 leaq 0x10(%rsp), %r14 movq %r14, %rdi movl $0x2, %esi movl $0xa6, %ecx callq 0x13e1e6 leaq 0x47013(%rip), %rsi # 0x207c82 movq %r14, %rdi callq 0x13dce4 leaq 0x46ffc(%rip), %rsi # 0x207c7a movq %rax, %rdi callq 0x13dce4 movq 0x8(%rbx), %rsi movq %rax, %rdi callq 0x13dcf6 leaq 0xf(%rsp), %rdi movq %rax, %rsi callq 0x13ddbe leaq 0x10(%rsp), %rdi callq 0x13e204 addq $0x48, %rsp popq %rbx popq %r14 retq jmp 0x1c0cb7 jmp 0x1c0cb7 jmp 0x1c0cb7 movq %rax, %rbx leaq 0x10(%rsp), %rdi callq 0x13e204 movq %rbx, %rdi callq 0x83b70
_ZN6google8protobuf15CheckFieldIndexEPKNS0_15FieldDescriptorEi: push r14 push rbx sub rsp, 48h test rdi, rdi jz loc_1C0CA9 mov rbx, rdi mov al, [rdi+1] and al, 60h cmp al, 60h ; '`' setnz cl cmp esi, 0FFFFFFFFh setnz dl or dl, cl jnz short loc_1C0C3B lea rdx, aWorkspaceLlm4b_48; "/workspace/llm4binary/github2025/aimrt_"... lea r14, [rsp+58h+var_48] mov rdi, r14 mov esi, 2 mov ecx, 0A3h call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int) lea rsi, aIndexMustBeInR; "Index must be in range of repeated fiel"... mov rdi, r14 call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) lea rsi, aField_0; "Field: " mov rdi, rax call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov rsi, [rbx+8] mov rdi, rax call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&) lea rdi, [rsp+58h+var_49] mov rsi, rax call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &) jmp short loc_1C0C9F loc_1C0C3B: cmp esi, 0FFFFFFFFh setz cl cmp al, 60h ; '`' setz al or al, cl jnz short loc_1C0CA9 lea rdx, aWorkspaceLlm4b_48; "/workspace/llm4binary/github2025/aimrt_"... lea r14, [rsp+58h+var_48] mov rdi, r14 mov esi, 2 mov ecx, 0A6h call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int) lea rsi, aIndexMustBe1Fo; "Index must be -1 for singular fields." mov rdi, r14 call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) lea rsi, aField_0; "Field: " mov rdi, rax call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov rsi, [rbx+8] mov rdi, rax call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&) lea rdi, [rsp+58h+var_49] mov rsi, rax call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &) loc_1C0C9F: lea rdi, [rsp+58h+var_48]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() loc_1C0CA9: add rsp, 48h pop rbx pop r14 retn jmp short loc_1C0CB7 jmp short loc_1C0CB7 jmp short $+2 loc_1C0CB7: mov rbx, rax lea rdi, [rsp+arg_8]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() mov rdi, rbx call __Unwind_Resume
void google::protobuf::CheckFieldIndex(google::protobuf *this, const google::protobuf::FieldDescriptor *a2) { char v2; // al long long v3; // rax long long v4; // rax google::protobuf::internal::LogMessage *v5; // rax long long v6; // rax long long v7; // rax google::protobuf::internal::LogMessage *v8; // rax char v9; // [rsp+Fh] [rbp-49h] BYREF _BYTE v10[72]; // [rsp+10h] [rbp-48h] BYREF if ( this ) { v2 = *((_BYTE *)this + 1) & 0x60; if ( v2 != 96 || (_DWORD)a2 != -1 ) { if ( (_DWORD)a2 == -1 || v2 == 96 ) return; google::protobuf::internal::LogMessage::LogMessage( (long long)v10, 2, (long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/text_format.cc", 166); v6 = google::protobuf::internal::LogMessage::operator<<( (long long)v10, (long long)"Index must be -1 for singular fields."); v7 = google::protobuf::internal::LogMessage::operator<<(v6, (long long)"Field: "); v8 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<( v7, *((_QWORD **)this + 1)); google::protobuf::internal::LogFinisher::operator=((long long)&v9, v8); } else { google::protobuf::internal::LogMessage::LogMessage( (long long)v10, 2, (long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/text_format.cc", 163); v3 = google::protobuf::internal::LogMessage::operator<<( (long long)v10, (long long)"Index must be in range of repeated field values. "); v4 = google::protobuf::internal::LogMessage::operator<<(v3, (long long)"Field: "); v5 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<( v4, *((_QWORD **)this + 1)); google::protobuf::internal::LogFinisher::operator=((long long)&v9, v5); } google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v10); } }
27,694
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; }
27,695
LefDefParser::lefwLayerDCCutarea(int, double*)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
int lefwLayerDCCutarea(int numCutareas, double *cutareas) { int i; if (!lefwFile) return LEFW_UNINITIALIZED; if (lefwState != LEFW_LAYERDCCURRENT) return LEFW_BAD_ORDER; // cutarea is allowed in Layer non-routing only if (lefwOldState != LEFW_LAYER_START && lefwOldState != LEFW_LAYER && lefwOldState != LEFW_LAYERROUTING_START && lefwOldState != LEFW_LAYERROUTING) return LEFW_BAD_DATA; if (numCutareas <= 0) return LEFW_BAD_DATA; // cutarea is required if (lefwWriteEncrypt) { encPrint(lefwFile, (char*) " CUTAREA "); for (i = 0; i < numCutareas; i++) { encPrint(lefwFile, (char*) "%.11g ", *cutareas++); } encPrint(lefwFile, (char*) ";\n"); } else { fprintf(lefwFile, " CUTAREA "); for (i = 0; i < numCutareas; i++) { fprintf(lefwFile, "%.11g ", *cutareas++); } fprintf(lefwFile, ";\n"); } lefwTableLen = numCutareas; lefwLines++; return LEFW_OK; }
O0
cpp
LefDefParser::lefwLayerDCCutarea(int, double*): subq $0x18, %rsp movl %edi, 0x10(%rsp) movq %rsi, 0x8(%rsp) leaq 0x1e93c(%rip), %rax # 0x32e00 cmpq $0x0, (%rax) jne 0x144d7 movl $0x1, 0x14(%rsp) jmp 0x1466e leaq 0x1eb72(%rip), %rax # 0x33050 cmpl $0x1e, (%rax) je 0x144f0 movl $0x2, 0x14(%rsp) jmp 0x1466e leaq 0x1ebe5(%rip), %rax # 0x330dc cmpl $0x6, (%rax) je 0x1452d leaq 0x1ebd9(%rip), %rax # 0x330dc cmpl $0x1c, (%rax) je 0x1452d leaq 0x1ebcd(%rip), %rax # 0x330dc cmpl $0x7, (%rax) je 0x1452d leaq 0x1ebc1(%rip), %rax # 0x330dc cmpl $0x1f, (%rax) je 0x1452d movl $0x3, 0x14(%rsp) jmp 0x1466e cmpl $0x0, 0x10(%rsp) jg 0x14541 movl $0x3, 0x14(%rsp) jmp 0x1466e cmpl $0x0, 0x1eba4(%rip) # 0x330ec je 0x145c8 leaq 0x1e8af(%rip), %rax # 0x32e00 movq (%rax), %rdi leaq 0x164de(%rip), %rsi # 0x2aa39 movb $0x0, %al callq 0x289b0 movl $0x0, 0x4(%rsp) movl 0x4(%rsp), %eax cmpl 0x10(%rsp), %eax jge 0x145ae leaq 0x1e885(%rip), %rax # 0x32e00 movq (%rax), %rdi movq 0x8(%rsp), %rax movq %rax, %rcx addq $0x8, %rcx movq %rcx, 0x8(%rsp) movsd (%rax), %xmm0 leaq 0x16300(%rip), %rsi # 0x2a89a movb $0x1, %al callq 0x289b0 movl 0x4(%rsp), %eax addl $0x1, %eax movl %eax, 0x4(%rsp) jmp 0x1456a leaq 0x1e84b(%rip), %rax # 0x32e00 movq (%rax), %rdi leaq 0x15995(%rip), %rsi # 0x29f54 movb $0x0, %al callq 0x289b0 jmp 0x14644 leaq 0x1e831(%rip), %rax # 0x32e00 movq (%rax), %rdi leaq 0x16460(%rip), %rsi # 0x2aa39 movb $0x0, %al callq 0x1100 movl $0x0, 0x4(%rsp) movl 0x4(%rsp), %eax cmpl 0x10(%rsp), %eax jge 0x1462c leaq 0x1e807(%rip), %rax # 0x32e00 movq (%rax), %rdi movq 0x8(%rsp), %rax movq %rax, %rcx addq $0x8, %rcx movq %rcx, 0x8(%rsp) movsd (%rax), %xmm0 leaq 0x16282(%rip), %rsi # 0x2a89a movb $0x1, %al callq 0x1100 movl 0x4(%rsp), %eax addl $0x1, %eax movl %eax, 0x4(%rsp) jmp 0x145e8 leaq 0x1e7cd(%rip), %rax # 0x32e00 movq (%rax), %rdi leaq 0x15917(%rip), %rsi # 0x29f54 movb $0x0, %al callq 0x1100 movl 0x10(%rsp), %ecx leaq 0x1ea91(%rip), %rax # 0x330e0 movl %ecx, (%rax) leaq 0x1e9f4(%rip), %rax # 0x3304c movl (%rax), %ecx addl $0x1, %ecx leaq 0x1e9e8(%rip), %rax # 0x3304c movl %ecx, (%rax) movl $0x0, 0x14(%rsp) movl 0x14(%rsp), %eax addq $0x18, %rsp retq nopw (%rax,%rax)
_ZN12LefDefParser18lefwLayerDCCutareaEiPd: sub rsp, 18h mov [rsp+18h+var_8], edi mov [rsp+18h+var_10], rsi lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile cmp qword ptr [rax], 0 jnz short loc_144D7 mov [rsp+18h+var_4], 1 jmp loc_1466E loc_144D7: lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState cmp dword ptr [rax], 1Eh jz short loc_144F0 mov [rsp+18h+var_4], 2 jmp loc_1466E loc_144F0: lea rax, _ZN12LefDefParser12lefwOldStateE; LefDefParser::lefwOldState cmp dword ptr [rax], 6 jz short loc_1452D lea rax, _ZN12LefDefParser12lefwOldStateE; LefDefParser::lefwOldState cmp dword ptr [rax], 1Ch jz short loc_1452D lea rax, _ZN12LefDefParser12lefwOldStateE; LefDefParser::lefwOldState cmp dword ptr [rax], 7 jz short loc_1452D lea rax, _ZN12LefDefParser12lefwOldStateE; LefDefParser::lefwOldState cmp dword ptr [rax], 1Fh jz short loc_1452D mov [rsp+18h+var_4], 3 jmp loc_1466E loc_1452D: cmp [rsp+18h+var_8], 0 jg short loc_14541 mov [rsp+18h+var_4], 3 jmp loc_1466E loc_14541: cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 0; LefDefParser::lefwWriteEncrypt jz short loc_145C8 lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] lea rsi, aCutarea; " CUTAREA " mov al, 0 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) mov [rsp+18h+var_14], 0 loc_1456A: mov eax, [rsp+18h+var_14] cmp eax, [rsp+18h+var_8] jge short loc_145AE lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] mov rax, [rsp+18h+var_10] mov rcx, rax add rcx, 8 mov [rsp+18h+var_10], rcx movsd xmm0, qword ptr [rax] lea rsi, aMinenclosedare+13h; "%.11g " mov al, 1 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) mov eax, [rsp+18h+var_14] add eax, 1 mov [rsp+18h+var_14], eax jmp short loc_1456A loc_145AE: lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] lea rsi, aDividercharS+11h; ";\n" mov al, 0 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) jmp short loc_14644 loc_145C8: lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] lea rsi, aCutarea; " CUTAREA " mov al, 0 call _fprintf mov [rsp+18h+var_14], 0 loc_145E8: mov eax, [rsp+18h+var_14] cmp eax, [rsp+18h+var_8] jge short loc_1462C lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] mov rax, [rsp+18h+var_10] mov rcx, rax add rcx, 8 mov [rsp+18h+var_10], rcx movsd xmm0, qword ptr [rax] lea rsi, aMinenclosedare+13h; "%.11g " mov al, 1 call _fprintf mov eax, [rsp+18h+var_14] add eax, 1 mov [rsp+18h+var_14], eax jmp short loc_145E8 loc_1462C: lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] lea rsi, aDividercharS+11h; ";\n" mov al, 0 call _fprintf loc_14644: mov ecx, [rsp+18h+var_8] lea rax, _ZN12LefDefParser12lefwTableLenE; LefDefParser::lefwTableLen mov [rax], ecx lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines mov ecx, [rax] add ecx, 1 lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines mov [rax], ecx mov [rsp+18h+var_4], 0 loc_1466E: mov eax, [rsp+18h+var_4] add rsp, 18h retn
long long LefDefParser::lefwLayerDCCutarea(LefDefParser *this, double *a2, double *a3, int a4, int a5, int a6) { int v6; // edx int v7; // ecx int v8; // r8d int v9; // r9d double *v10; // rax int i; // [rsp+4h] [rbp-14h] int j; // [rsp+4h] [rbp-14h] if ( *(_QWORD *)&LefDefParser::lefwFile ) { if ( LefDefParser::lefwState == 30 ) { if ( LefDefParser::lefwOldState == 6 || LefDefParser::lefwOldState == 28 || LefDefParser::lefwOldState == 7 || LefDefParser::lefwOldState == 31 ) { if ( (int)this > 0 ) { if ( LefDefParser::lefwWriteEncrypt ) { LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)" CUTAREA ", (_DWORD)a3, a4, a5, a6); for ( i = 0; i < (int)this; ++i ) LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)"%.11g ", v6, (_DWORD)++a2, v8, v9); LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)";\n", v6, v7, v8, v9); } else { fprintf(*(_QWORD *)&LefDefParser::lefwFile, " CUTAREA "); for ( j = 0; j < (int)this; ++j ) { v10 = a2++; fprintf(*(_QWORD *)&LefDefParser::lefwFile, "%.11g ", *v10); } fprintf(*(_QWORD *)&LefDefParser::lefwFile, ";\n"); } LefDefParser::lefwTableLen = (int)this; ++LefDefParser::lefwLines; return 0; } else { return 3; } } else { return 3; } } else { return 2; } } else { return 1; } }
lefwLayerDCCutarea: SUB RSP,0x18 MOV dword ptr [RSP + 0x10],EDI MOV qword ptr [RSP + 0x8],RSI LEA RAX,[0x132e00] CMP qword ptr [RAX],0x0 JNZ 0x001144d7 MOV dword ptr [RSP + 0x14],0x1 JMP 0x0011466e LAB_001144d7: LEA RAX,[0x133050] CMP dword ptr [RAX],0x1e JZ 0x001144f0 MOV dword ptr [RSP + 0x14],0x2 JMP 0x0011466e LAB_001144f0: LEA RAX,[0x1330dc] CMP dword ptr [RAX],0x6 JZ 0x0011452d LEA RAX,[0x1330dc] CMP dword ptr [RAX],0x1c JZ 0x0011452d LEA RAX,[0x1330dc] CMP dword ptr [RAX],0x7 JZ 0x0011452d LEA RAX,[0x1330dc] CMP dword ptr [RAX],0x1f JZ 0x0011452d MOV dword ptr [RSP + 0x14],0x3 JMP 0x0011466e LAB_0011452d: CMP dword ptr [RSP + 0x10],0x0 JG 0x00114541 MOV dword ptr [RSP + 0x14],0x3 JMP 0x0011466e LAB_00114541: CMP dword ptr [0x001330ec],0x0 JZ 0x001145c8 LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] LEA RSI,[0x12aa39] MOV AL,0x0 CALL 0x001289b0 MOV dword ptr [RSP + 0x4],0x0 LAB_0011456a: MOV EAX,dword ptr [RSP + 0x4] CMP EAX,dword ptr [RSP + 0x10] JGE 0x001145ae LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RSP + 0x8] MOV RCX,RAX ADD RCX,0x8 MOV qword ptr [RSP + 0x8],RCX MOVSD XMM0,qword ptr [RAX] LEA RSI,[0x12a89a] MOV AL,0x1 CALL 0x001289b0 MOV EAX,dword ptr [RSP + 0x4] ADD EAX,0x1 MOV dword ptr [RSP + 0x4],EAX JMP 0x0011456a LAB_001145ae: LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] LEA RSI,[0x129f54] MOV AL,0x0 CALL 0x001289b0 JMP 0x00114644 LAB_001145c8: LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] LEA RSI,[0x12aa39] MOV AL,0x0 CALL 0x00101100 MOV dword ptr [RSP + 0x4],0x0 LAB_001145e8: MOV EAX,dword ptr [RSP + 0x4] CMP EAX,dword ptr [RSP + 0x10] JGE 0x0011462c LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RSP + 0x8] MOV RCX,RAX ADD RCX,0x8 MOV qword ptr [RSP + 0x8],RCX MOVSD XMM0,qword ptr [RAX] LEA RSI,[0x12a89a] MOV AL,0x1 CALL 0x00101100 MOV EAX,dword ptr [RSP + 0x4] ADD EAX,0x1 MOV dword ptr [RSP + 0x4],EAX JMP 0x001145e8 LAB_0011462c: LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] LEA RSI,[0x129f54] MOV AL,0x0 CALL 0x00101100 LAB_00114644: MOV ECX,dword ptr [RSP + 0x10] LEA RAX,[0x1330e0] MOV dword ptr [RAX],ECX LEA RAX,[0x13304c] MOV ECX,dword ptr [RAX] ADD ECX,0x1 LEA RAX,[0x13304c] MOV dword ptr [RAX],ECX MOV dword ptr [RSP + 0x14],0x0 LAB_0011466e: MOV EAX,dword ptr [RSP + 0x14] ADD RSP,0x18 RET
/* LefDefParser::lefwLayerDCCutarea(int, double*) */ int4 LefDefParser::lefwLayerDCCutarea(int param_1,double *param_2) { int local_14; double *local_10; int4 local_4; if (lefwFile == (_IO_FILE *)0x0) { local_4 = 1; } else if (lefwState == 0x1e) { if ((((lefwOldState == 6) || (lefwOldState == 0x1c)) || (lefwOldState == 7)) || (lefwOldState == 0x1f)) { if (param_1 < 1) { local_4 = 3; } else { if (lefwWriteEncrypt == 0) { fprintf(lefwFile," CUTAREA "); local_10 = param_2; for (local_14 = 0; local_14 < param_1; local_14 = local_14 + 1) { fprintf(lefwFile,"%.11g ",*local_10); local_10 = local_10 + 1; } fprintf(lefwFile,";\n"); } else { encPrint(lefwFile," CUTAREA "); local_10 = param_2; for (local_14 = 0; local_14 < param_1; local_14 = local_14 + 1) { encPrint(lefwFile,"%.11g ",*local_10); local_10 = local_10 + 1; } encPrint(lefwFile,";\n"); } lefwLines = lefwLines + 1; local_4 = 0; lefwTableLen = param_1; } } else { local_4 = 3; } } else { local_4 = 2; } return local_4; }
27,696
minja::Parser::parseDictionary()
monkey531[P]llama/common/minja.hpp
std::shared_ptr<Expression> parseDictionary() { if (consumeToken("{").empty()) return nullptr; std::vector<std::pair<std::shared_ptr<Expression>, std::shared_ptr<Expression>>> elements; if (!consumeToken("}").empty()) { return std::make_shared<DictExpr>(get_location(), std::move(elements)); } auto parseKeyValuePair = [&]() { auto key = parseExpression(); if (!key) throw std::runtime_error("Expected key in dictionary"); if (consumeToken(":").empty()) throw std::runtime_error("Expected colon betweek key & value in dictionary"); auto value = parseExpression(); if (!value) throw std::runtime_error("Expected value in dictionary"); elements.emplace_back(std::pair(std::move(key), std::move(value))); }; parseKeyValuePair(); while (it != end) { if (!consumeToken(",").empty()) { parseKeyValuePair(); } else if (!consumeToken("}").empty()) { return std::make_shared<DictExpr>(get_location(), std::move(elements)); } else { throw std::runtime_error("Expected comma or closing brace in dictionary"); } } throw std::runtime_error("Expected closing brace"); }
O3
cpp
minja::Parser::parseDictionary(): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movq %rsi, %r14 movq %rdi, %r12 leaq 0x10(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x64d27(%rip), %rsi # 0xf49e1 leaq 0x64d21(%rip), %rdx # 0xf49e2 movq %rsp, %rdi callq 0x2695a leaq 0x20(%rsp), %rdi movq %rsp, %rdx movq %r14, %rsi movl $0x1, %ecx callq 0x88942 leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi movq -0x8(%rax), %rbx cmpq %rax, %rdi je 0x8fcfd movq 0x30(%rsp), %rsi incq %rsi callq 0x1b930 movq (%rsp), %rdi leaq 0x10(%rsp), %rax cmpq %rax, %rdi je 0x8fd18 movq 0x10(%rsp), %rsi incq %rsi callq 0x1b930 xorps %xmm0, %xmm0 testq %rbx, %rbx je 0x8fdd2 movaps %xmm0, 0x40(%rsp) movq $0x0, 0x50(%rsp) movq %rsp, %rdi leaq 0x10(%rsp), %rax movq %rax, (%rdi) leaq 0x69523(%rip), %rsi # 0xf9267 leaq 0x6951d(%rip), %rdx # 0xf9268 callq 0x2695a leaq 0x20(%rsp), %rdi movq %rsp, %rdx movq %r14, %rsi movl $0x1, %ecx callq 0x88942 movq 0x20(%rsp), %rdi movq 0x28(%rsp), %rbx leaq 0x30(%rsp), %rax cmpq %rax, %rdi je 0x8fd86 movq 0x30(%rsp), %rsi incq %rsi callq 0x1b930 movq (%rsp), %rdi leaq 0x10(%rsp), %rax cmpq %rax, %rdi je 0x8fda1 movq 0x10(%rsp), %rsi incq %rsi callq 0x1b930 testq %rbx, %rbx je 0x8fddc movq %r12, %r13 movq (%r14), %r12 movq 0x8(%r14), %r15 testq %r15, %r15 je 0x8ff30 movq 0xa11b8(%rip), %rax # 0x130f78 cmpb $0x0, (%rax) je 0x8ff2b incl 0x8(%r15) jmp 0x8ff30 movups %xmm0, (%r12) jmp 0x9004e movq %r12, 0x60(%rsp) leaq 0x68(%rsp), %rdi movq %r14, (%rdi) leaq 0x40(%rsp), %rax movq %rax, 0x8(%rdi) callq 0x92ffc leaq 0x650dd(%rip), %r12 # 0xf4edb movq %rsp, %r13 leaq 0x20(%rsp), %rbp leaq 0x68(%rsp), %rbx movq 0x20(%r14), %rax cmpq 0x18(%r14), %rax je 0x90060 leaq 0x10(%rsp), %rax movq %rax, (%rsp) movq %r13, %rdi leaq 0x650ae(%rip), %rsi # 0xf4eda movq %r12, %rdx callq 0x2695a movq %rbp, %rdi movq %r14, %rsi movq %r13, %rdx movl $0x1, %ecx callq 0x88942 movq 0x20(%rsp), %rdi movq 0x28(%rsp), %r15 leaq 0x30(%rsp), %rax cmpq %rax, %rdi je 0x8fe68 movq 0x30(%rsp), %rsi incq %rsi callq 0x1b930 movq (%rsp), %rdi leaq 0x10(%rsp), %rax cmpq %rax, %rdi je 0x8fe83 movq 0x10(%rsp), %rsi incq %rsi callq 0x1b930 testq %r15, %r15 je 0x8fe95 movq %rbx, %rdi callq 0x92ffc jmp 0x8fe0b movq %rsp, %rdi leaq 0x10(%rsp), %rax movq %rax, (%rdi) leaq 0x693c0(%rip), %rsi # 0xf9267 leaq 0x693ba(%rip), %rdx # 0xf9268 callq 0x2695a leaq 0x20(%rsp), %rdi movq %rsp, %rdx movq %r14, %rsi movl $0x1, %ecx callq 0x88942 movq 0x20(%rsp), %rdi movq 0x28(%rsp), %rbx leaq 0x30(%rsp), %rax cmpq %rax, %rdi je 0x8fee9 movq 0x30(%rsp), %rsi incq %rsi callq 0x1b930 movq (%rsp), %rdi leaq 0x10(%rsp), %rax cmpq %rax, %rdi je 0x8ff04 movq 0x10(%rsp), %rsi incq %rsi callq 0x1b930 testq %rbx, %rbx je 0x90092 movq (%r14), %r12 movq 0x8(%r14), %r15 testq %r15, %r15 je 0x8ff8b movq 0xa1058(%rip), %rax # 0x130f78 cmpb $0x0, (%rax) je 0x8ff86 incl 0x8(%r15) jmp 0x8ff8b lock incl 0x8(%r15) movq 0x20(%r14), %rbx subq 0x10(%r14), %rbx movl $0x48, %edi callq 0x1b900 leaq 0x9f6af(%rip), %rdx # 0x12f5f8 addq $0x10, %rdx movq %rax, %rcx addq $0x10, %rcx leaq 0x9f44d(%rip), %rsi # 0x12f3a8 addq $0x10, %rsi movabsq $0x100000001, %rdi # imm = 0x100000001 movq %rdi, 0x8(%rax) movq %rdx, (%rax) movq %rsi, 0x10(%rax) movq %r12, 0x18(%rax) movq %r15, 0x20(%rax) testq %r15, %r15 movq %r13, %r12 jne 0x8ffe1 jmp 0x8fff8 lock incl 0x8(%r15) movq 0x20(%r14), %rbx subq 0x10(%r14), %rbx movl $0x48, %edi callq 0x1b900 leaq 0x9f654(%rip), %rdx # 0x12f5f8 addq $0x10, %rdx movq %rax, %rcx addq $0x10, %rcx leaq 0x9f3f2(%rip), %rsi # 0x12f3a8 addq $0x10, %rsi movabsq $0x100000001, %rdi # imm = 0x100000001 movq %rdi, 0x8(%rax) movq %rdx, (%rax) movq %rsi, 0x10(%rax) movq %r12, 0x18(%rax) movq %r15, 0x20(%rax) testq %r15, %r15 movq 0x60(%rsp), %r12 je 0x8fff8 movq 0xa0f90(%rip), %rdx # 0x130f78 cmpb $0x0, (%rdx) je 0x8fff3 incl 0x8(%r15) jmp 0x8fff8 lock incl 0x8(%r15) leaq 0x9f649(%rip), %rdx # 0x12f648 addq $0x10, %rdx movq %rbx, 0x28(%rax) movq %rdx, 0x10(%rax) movaps 0x40(%rsp), %xmm0 movups %xmm0, 0x30(%rax) movq 0x50(%rsp), %rdx movq %rdx, 0x40(%rax) xorps %xmm0, %xmm0 movaps %xmm0, 0x40(%rsp) movq $0x0, 0x50(%rsp) movq %rcx, (%r12) movq %rax, 0x8(%r12) testq %r15, %r15 je 0x90044 movq %r15, %rdi callq 0x267a6 leaq 0x40(%rsp), %rdi callq 0x93234 movq %r12, %rax addq $0x78, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0x10, %edi callq 0x1b480 movq %rax, %r14 leaq 0x64f9a(%rip), %rsi # 0xf500e movq %rax, %rdi callq 0x1b350 movq 0xa0f65(%rip), %rsi # 0x130fe8 movq 0xa0ec6(%rip), %rdx # 0x130f50 movq %r14, %rdi callq 0x1c040 movl $0x10, %edi callq 0x1b480 movq %rax, %r14 leaq 0x64f3a(%rip), %rsi # 0xf4fe0 movq %rax, %rdi callq 0x1b350 jmp 0x9007c jmp 0x900f3 jmp 0x900b8 jmp 0x90119 jmp 0x90104 movq %rax, %rbx testq %r15, %r15 je 0x90107 movq %r15, %rdi callq 0x267a6 jmp 0x90107 jmp 0x90119 jmp 0x90104 movq %rax, %rbx movq (%rsp), %rdi leaq 0x10(%rsp), %rax cmpq %rax, %rdi je 0x90111 movq 0x10(%rsp), %rsi incq %rsi callq 0x1b930 jmp 0x90111 movq %rax, %rbx jmp 0x90111 movq %rax, %rbx movq %r14, %rdi callq 0x1b6c0 jmp 0x90107 jmp 0x90104 jmp 0x90104 movq %rax, %rbx leaq 0x40(%rsp), %rdi callq 0x93234 movq %rbx, %rdi callq 0x1c0d0 movq %rax, %rbx movq (%rsp), %rdi leaq 0x10(%rsp), %rax cmpq %rax, %rdi je 0x90107 movq 0x10(%rsp), %rsi incq %rsi callq 0x1b930 jmp 0x90107 nop
_ZN5minja6Parser15parseDictionaryEv: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 78h mov r14, rsi mov r12, rdi lea rax, [rsp+0A8h+var_98] mov [rax-10h], rax lea rsi, asc_F49E1; "{" lea rdx, asc_F49E1+1; "" mov rdi, rsp call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rdi, [rsp+0A8h+var_88] mov rdx, rsp mov rsi, r14 mov ecx, 1 call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling) lea rax, [rsp+0A8h+var_78] mov rdi, [rax-10h]; void * mov rbx, [rax-8] cmp rdi, rax jz short loc_8FCFD mov rsi, [rsp+0A8h+var_78] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_8FCFD: mov rdi, [rsp+0A8h+var_A8]; void * lea rax, [rsp+0A8h+var_98] cmp rdi, rax jz short loc_8FD18 mov rsi, [rsp+0A8h+var_98] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_8FD18: xorps xmm0, xmm0 test rbx, rbx jz loc_8FDD2 movaps [rsp+0A8h+var_68], xmm0 mov [rsp+0A8h+var_58], 0 mov rdi, rsp lea rax, [rsp+0A8h+var_98] mov [rdi], rax lea rsi, aT020+7; "}" lea rdx, aT020+8; "" call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rdi, [rsp+0A8h+var_88] mov rdx, rsp mov rsi, r14 mov ecx, 1 call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling) mov rdi, [rsp+0A8h+var_88]; void * mov rbx, [rsp+0A8h+var_80] lea rax, [rsp+0A8h+var_78] cmp rdi, rax jz short loc_8FD86 mov rsi, [rsp+0A8h+var_78] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_8FD86: mov rdi, [rsp+0A8h+var_A8]; void * lea rax, [rsp+0A8h+var_98] cmp rdi, rax jz short loc_8FDA1 mov rsi, [rsp+0A8h+var_98] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_8FDA1: test rbx, rbx jz short loc_8FDDC mov r13, r12 mov r12, [r14] mov r15, [r14+8] test r15, r15 jz loc_8FF30 mov rax, cs:__libc_single_threaded_ptr cmp byte ptr [rax], 0 jz loc_8FF2B inc dword ptr [r15+8] jmp loc_8FF30 loc_8FDD2: movups xmmword ptr [r12], xmm0 jmp loc_9004E loc_8FDDC: mov [rsp+0A8h+var_48], r12 lea rdi, [rsp+0A8h+var_40] mov [rdi], r14 lea rax, [rsp+0A8h+var_68] mov [rdi+8], rax call _ZZN5minja6Parser15parseDictionaryEvENKUlvE_clEv; minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(void) lea r12, asc_F4EDA+1; "" mov r13, rsp lea rbp, [rsp+0A8h+var_88] lea rbx, [rsp+0A8h+var_40] loc_8FE0B: mov rax, [r14+20h] cmp rax, [r14+18h] jz loc_90060 lea rax, [rsp+0A8h+var_98] mov [rsp+0A8h+var_A8], rax mov rdi, r13 lea rsi, asc_F4EDA; "," mov rdx, r12 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) mov rdi, rbp mov rsi, r14 mov rdx, r13 mov ecx, 1 call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling) mov rdi, [rsp+0A8h+var_88]; void * mov r15, [rsp+0A8h+var_80] lea rax, [rsp+0A8h+var_78] cmp rdi, rax jz short loc_8FE68 mov rsi, [rsp+0A8h+var_78] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_8FE68: mov rdi, [rsp+0A8h+var_A8]; void * lea rax, [rsp+0A8h+var_98] cmp rdi, rax jz short loc_8FE83 mov rsi, [rsp+0A8h+var_98] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_8FE83: test r15, r15 jz short loc_8FE95 mov rdi, rbx call _ZZN5minja6Parser15parseDictionaryEvENKUlvE_clEv; minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(void) jmp loc_8FE0B loc_8FE95: mov rdi, rsp lea rax, [rsp+0A8h+var_98] mov [rdi], rax lea rsi, aT020+7; "}" lea rdx, aT020+8; "" call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rdi, [rsp+0A8h+var_88] mov rdx, rsp mov rsi, r14 mov ecx, 1 call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling) mov rdi, [rsp+0A8h+var_88]; void * mov rbx, [rsp+0A8h+var_80] lea rax, [rsp+0A8h+var_78] cmp rdi, rax jz short loc_8FEE9 mov rsi, [rsp+0A8h+var_78] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_8FEE9: mov rdi, [rsp+0A8h+var_A8]; void * lea rax, [rsp+0A8h+var_98] cmp rdi, rax jz short loc_8FF04 mov rsi, [rsp+0A8h+var_98] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_8FF04: test rbx, rbx jz loc_90092 mov r12, [r14] mov r15, [r14+8] test r15, r15 jz short loc_8FF8B mov rax, cs:__libc_single_threaded_ptr cmp byte ptr [rax], 0 jz short loc_8FF86 inc dword ptr [r15+8] jmp short loc_8FF8B loc_8FF2B: lock inc dword ptr [r15+8] loc_8FF30: mov rbx, [r14+20h] sub rbx, [r14+10h] mov edi, 48h ; 'H'; unsigned __int64 call __Znwm; operator new(ulong) lea rdx, _ZTVSt23_Sp_counted_ptr_inplaceIN5minja8DictExprESaIS1_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<minja::DictExpr,std::allocator<minja::DictExpr>,(__gnu_cxx::_Lock_policy)2> add rdx, 10h mov rcx, rax add rcx, 10h lea rsi, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression add rsi, 10h mov rdi, 100000001h mov [rax+8], rdi mov [rax], rdx mov [rax+10h], rsi mov [rax+18h], r12 mov [rax+20h], r15 test r15, r15 mov r12, r13 jnz short loc_8FFE1 jmp short loc_8FFF8 loc_8FF86: lock inc dword ptr [r15+8] loc_8FF8B: mov rbx, [r14+20h] sub rbx, [r14+10h] mov edi, 48h ; 'H'; unsigned __int64 call __Znwm; operator new(ulong) lea rdx, _ZTVSt23_Sp_counted_ptr_inplaceIN5minja8DictExprESaIS1_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<minja::DictExpr,std::allocator<minja::DictExpr>,(__gnu_cxx::_Lock_policy)2> add rdx, 10h mov rcx, rax add rcx, 10h lea rsi, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression add rsi, 10h mov rdi, 100000001h mov [rax+8], rdi mov [rax], rdx mov [rax+10h], rsi mov [rax+18h], r12 mov [rax+20h], r15 test r15, r15 mov r12, [rsp+0A8h+var_48] jz short loc_8FFF8 loc_8FFE1: mov rdx, cs:__libc_single_threaded_ptr cmp byte ptr [rdx], 0 jz short loc_8FFF3 inc dword ptr [r15+8] jmp short loc_8FFF8 loc_8FFF3: lock inc dword ptr [r15+8] loc_8FFF8: lea rdx, _ZTVN5minja8DictExprE; `vtable for'minja::DictExpr add rdx, 10h mov [rax+28h], rbx mov [rax+10h], rdx movaps xmm0, [rsp+0A8h+var_68] movups xmmword ptr [rax+30h], xmm0 mov rdx, [rsp+0A8h+var_58] mov [rax+40h], rdx xorps xmm0, xmm0 movaps [rsp+0A8h+var_68], xmm0 mov [rsp+0A8h+var_58], 0 mov [r12], rcx mov [r12+8], rax test r15, r15 jz short loc_90044 mov rdi, r15 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_90044: lea rdi, [rsp+0A8h+var_68] call _ZNSt6vectorISt4pairISt10shared_ptrIN5minja10ExpressionEES4_ESaIS5_EED2Ev; std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>::~vector() loc_9004E: mov rax, r12 add rsp, 78h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_90060: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aExpectedClosin_5; "Expected closing brace" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) loc_9007C: mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, r14; void * call ___cxa_throw loc_90092: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aExpectedCommaO_0; "Expected comma or closing brace in dict"... mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) jmp short loc_9007C jmp short loc_900F3 jmp short loc_900B8 jmp short loc_90119 jmp short loc_90104 loc_900B8: mov rbx, rax test r15, r15 jz short loc_90107 mov rdi, r15 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) jmp short loc_90107 jmp short loc_90119 jmp short loc_90104 mov rbx, rax mov rdi, [rsp+0]; void * lea rax, [rsp+arg_8] cmp rdi, rax jz short loc_90111 mov rsi, [rsp+arg_8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_90111 mov rbx, rax jmp short loc_90111 loc_900F3: mov rbx, rax mov rdi, r14; void * call ___cxa_free_exception jmp short loc_90107 jmp short loc_90104 jmp short $+2 loc_90104: mov rbx, rax loc_90107: lea rdi, [rsp+arg_38] call _ZNSt6vectorISt4pairISt10shared_ptrIN5minja10ExpressionEES4_ESaIS5_EED2Ev; std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>::~vector() loc_90111: mov rdi, rbx call __Unwind_Resume loc_90119: mov rbx, rax mov rdi, [rsp+0]; void * lea rax, [rsp+arg_8] cmp rdi, rax jz short loc_90107 mov rsi, [rsp+arg_8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_90107
minja::Parser * minja::Parser::parseDictionary(minja::Parser *this, _QWORD *a2) { minja::Parser *v2; // r12 long long v3; // rbx long long v4; // rbx long long v5; // r12 volatile signed __int32 *v6; // r15 long long v7; // r15 long long v8; // rbx long long v9; // r12 long long v10; // rbx long long v11; // rax long long v12; // rcx std::runtime_error *exception; // r14 void *v15[2]; // [rsp+0h] [rbp-A8h] BYREF _QWORD v16[2]; // [rsp+10h] [rbp-98h] BYREF void *v17; // [rsp+20h] [rbp-88h] BYREF long long v18; // [rsp+28h] [rbp-80h] _QWORD v19[2]; // [rsp+30h] [rbp-78h] BYREF __int128 v20; // [rsp+40h] [rbp-68h] BYREF long long v21; // [rsp+50h] [rbp-58h] minja::Parser *v22; // [rsp+60h] [rbp-48h] _QWORD *v23; // [rsp+68h] [rbp-40h] __int128 *v24; // [rsp+70h] [rbp-38h] v2 = this; v15[0] = v16; std::string::_M_construct<char const*>((long long)v15, "{", (long long)""); minja::Parser::consumeToken(&v17, (long long)a2, (_BYTE **)v15, 1u); v3 = v18; if ( v17 != v19 ) operator delete(v17, v19[0] + 1LL); if ( v15[0] != v16 ) operator delete(v15[0], v16[0] + 1LL); if ( !v3 ) { *(_OWORD *)this = 0LL; return v2; } v20 = 0LL; v21 = 0LL; v15[0] = v16; std::string::_M_construct<char const*>((long long)v15, "}", (long long)""); minja::Parser::consumeToken(&v17, (long long)a2, (_BYTE **)v15, 1u); v4 = v18; if ( v17 != v19 ) operator delete(v17, v19[0] + 1LL); if ( v15[0] != v16 ) operator delete(v15[0], v16[0] + 1LL); if ( v4 ) { v5 = *a2; v6 = (volatile signed __int32 *)a2[1]; if ( v6 ) { if ( _libc_single_threaded ) ++*((_DWORD *)v6 + 2); else _InterlockedIncrement(v6 + 2); } v10 = a2[4] - a2[2]; v11 = operator new(0x48uLL); v12 = v11 + 16; *(_QWORD *)(v11 + 8) = 0x100000001LL; *(_QWORD *)v11 = &`vtable for'std::_Sp_counted_ptr_inplace<minja::DictExpr,std::allocator<minja::DictExpr>,(__gnu_cxx::_Lock_policy)2> + 2; *(_QWORD *)(v11 + 16) = &`vtable for'minja::Expression + 2; *(_QWORD *)(v11 + 24) = v5; *(_QWORD *)(v11 + 32) = v6; v2 = this; if ( v6 ) goto LABEL_36; goto LABEL_39; } v22 = this; v23 = a2; v24 = &v20; minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(0.0); while ( 1 ) { if ( a2[4] == a2[3] ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Expected closing brace"); goto LABEL_44; } v15[0] = v16; std::string::_M_construct<char const*>((long long)v15, ",", (long long)""); minja::Parser::consumeToken(&v17, (long long)a2, (_BYTE **)v15, 1u); v7 = v18; if ( v17 != v19 ) operator delete(v17, v19[0] + 1LL); if ( v15[0] != v16 ) operator delete(v15[0], v16[0] + 1LL); if ( !v7 ) break; minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(0.0); } v15[0] = v16; std::string::_M_construct<char const*>((long long)v15, "}", (long long)""); minja::Parser::consumeToken(&v17, (long long)a2, (_BYTE **)v15, 1u); v8 = v18; if ( v17 != v19 ) operator delete(v17, v19[0] + 1LL); if ( v15[0] != v16 ) operator delete(v15[0], v16[0] + 1LL); if ( !v8 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Expected comma or closing brace in dictionary"); LABEL_44: __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v9 = *a2; v6 = (volatile signed __int32 *)a2[1]; if ( v6 ) { if ( _libc_single_threaded ) ++*((_DWORD *)v6 + 2); else _InterlockedIncrement(v6 + 2); } v10 = a2[4] - a2[2]; v11 = operator new(0x48uLL); v12 = v11 + 16; *(_QWORD *)(v11 + 8) = 0x100000001LL; *(_QWORD *)v11 = &`vtable for'std::_Sp_counted_ptr_inplace<minja::DictExpr,std::allocator<minja::DictExpr>,(__gnu_cxx::_Lock_policy)2> + 2; *(_QWORD *)(v11 + 16) = &`vtable for'minja::Expression + 2; *(_QWORD *)(v11 + 24) = v9; *(_QWORD *)(v11 + 32) = v6; v2 = v22; if ( v6 ) { LABEL_36: if ( _libc_single_threaded ) ++*((_DWORD *)v6 + 2); else _InterlockedIncrement(v6 + 2); } LABEL_39: *(_QWORD *)(v11 + 40) = v10; *(_QWORD *)(v11 + 16) = &`vtable for'minja::DictExpr + 2; *(_OWORD *)(v11 + 48) = v20; *(_QWORD *)(v11 + 64) = v21; v20 = 0LL; v21 = 0LL; *(_QWORD *)v2 = v12; *((_QWORD *)v2 + 1) = v11; if ( v6 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v6); std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>::~vector(&v20); return v2; }
parseDictionary: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x78 MOV R14,RSI MOV R12,RDI LEA RAX,[RSP + 0x10] MOV qword ptr [RAX + -0x10],RAX LAB_0018fcb3: LEA RSI,[0x1f49e1] LEA RDX,[0x1f49e2] MOV RDI,RSP CALL 0x0012695a LAB_0018fcc9: LEA RDI,[RSP + 0x20] MOV RDX,RSP MOV RSI,R14 MOV ECX,0x1 CALL 0x00188942 LEA RAX,[RSP + 0x30] MOV RDI,qword ptr [RAX + -0x10] MOV RBX,qword ptr [RAX + -0x8] CMP RDI,RAX JZ 0x0018fcfd MOV RSI,qword ptr [RSP + 0x30] INC RSI CALL 0x0011b930 LAB_0018fcfd: MOV RDI,qword ptr [RSP] LEA RAX,[RSP + 0x10] CMP RDI,RAX JZ 0x0018fd18 MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x0011b930 LAB_0018fd18: XORPS XMM0,XMM0 TEST RBX,RBX JZ 0x0018fdd2 MOVAPS xmmword ptr [RSP + 0x40],XMM0 MOV qword ptr [RSP + 0x50],0x0 MOV RDI,RSP LEA RAX,[RSP + 0x10] MOV qword ptr [RDI],RAX LAB_0018fd3d: LEA RSI,[0x1f9267] LEA RDX,[0x1f9268] CALL 0x0012695a LAB_0018fd50: LEA RDI,[RSP + 0x20] MOV RDX,RSP MOV RSI,R14 MOV ECX,0x1 CALL 0x00188942 MOV RDI,qword ptr [RSP + 0x20] MOV RBX,qword ptr [RSP + 0x28] LEA RAX,[RSP + 0x30] CMP RDI,RAX JZ 0x0018fd86 MOV RSI,qword ptr [RSP + 0x30] INC RSI CALL 0x0011b930 LAB_0018fd86: MOV RDI,qword ptr [RSP] LEA RAX,[RSP + 0x10] CMP RDI,RAX JZ 0x0018fda1 MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x0011b930 LAB_0018fda1: TEST RBX,RBX JZ 0x0018fddc MOV R13,R12 MOV R12,qword ptr [R14] MOV R15,qword ptr [R14 + 0x8] TEST R15,R15 JZ 0x0018ff30 MOV RAX,qword ptr [0x00230f78] CMP byte ptr [RAX],0x0 JZ 0x0018ff2b INC dword ptr [R15 + 0x8] JMP 0x0018ff30 LAB_0018fdd2: MOVUPS xmmword ptr [R12],XMM0 JMP 0x0019004e LAB_0018fddc: MOV qword ptr [RSP + 0x60],R12 LEA RDI,[RSP + 0x68] MOV qword ptr [RDI],R14 LEA RAX,[RSP + 0x40] MOV qword ptr [RDI + 0x8],RAX LAB_0018fdf2: CALL 0x00192ffc LEA R12,[0x1f4edb] MOV R13,RSP LEA RBP,[RSP + 0x20] LEA RBX,[RSP + 0x68] LAB_0018fe0b: MOV RAX,qword ptr [R14 + 0x20] CMP RAX,qword ptr [R14 + 0x18] JZ 0x00190060 LEA RAX,[RSP + 0x10] MOV qword ptr [RSP],RAX LAB_0018fe22: MOV RDI,R13 LEA RSI,[0x1f4eda] MOV RDX,R12 CALL 0x0012695a LAB_0018fe34: MOV RDI,RBP MOV RSI,R14 MOV RDX,R13 MOV ECX,0x1 CALL 0x00188942 MOV RDI,qword ptr [RSP + 0x20] MOV R15,qword ptr [RSP + 0x28] LEA RAX,[RSP + 0x30] CMP RDI,RAX JZ 0x0018fe68 MOV RSI,qword ptr [RSP + 0x30] INC RSI CALL 0x0011b930 LAB_0018fe68: MOV RDI,qword ptr [RSP] LEA RAX,[RSP + 0x10] CMP RDI,RAX JZ 0x0018fe83 MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x0011b930 LAB_0018fe83: TEST R15,R15 JZ 0x0018fe95 LAB_0018fe88: MOV RDI,RBX CALL 0x00192ffc JMP 0x0018fe0b LAB_0018fe95: MOV RDI,RSP LEA RAX,[RSP + 0x10] MOV qword ptr [RDI],RAX LAB_0018fea0: LEA RSI,[0x1f9267] LEA RDX,[0x1f9268] CALL 0x0012695a LAB_0018feb3: LEA RDI,[RSP + 0x20] MOV RDX,RSP MOV RSI,R14 MOV ECX,0x1 CALL 0x00188942 MOV RDI,qword ptr [RSP + 0x20] MOV RBX,qword ptr [RSP + 0x28] LEA RAX,[RSP + 0x30] CMP RDI,RAX JZ 0x0018fee9 MOV RSI,qword ptr [RSP + 0x30] INC RSI CALL 0x0011b930 LAB_0018fee9: MOV RDI,qword ptr [RSP] LEA RAX,[RSP + 0x10] CMP RDI,RAX JZ 0x0018ff04 MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x0011b930 LAB_0018ff04: TEST RBX,RBX JZ 0x00190092 MOV R12,qword ptr [R14] MOV R15,qword ptr [R14 + 0x8] TEST R15,R15 JZ 0x0018ff8b MOV RAX,qword ptr [0x00230f78] CMP byte ptr [RAX],0x0 JZ 0x0018ff86 INC dword ptr [R15 + 0x8] JMP 0x0018ff8b LAB_0018ff2b: INC.LOCK dword ptr [R15 + 0x8] LAB_0018ff30: MOV RBX,qword ptr [R14 + 0x20] SUB RBX,qword ptr [R14 + 0x10] LAB_0018ff38: MOV EDI,0x48 CALL 0x0011b900 LEA RDX,[0x22f5f8] ADD RDX,0x10 MOV RCX,RAX ADD RCX,0x10 LEA RSI,[0x22f3a8] ADD RSI,0x10 MOV RDI,0x100000001 MOV qword ptr [RAX + 0x8],RDI MOV qword ptr [RAX],RDX MOV qword ptr [RAX + 0x10],RSI MOV qword ptr [RAX + 0x18],R12 MOV qword ptr [RAX + 0x20],R15 TEST R15,R15 MOV R12,R13 JNZ 0x0018ffe1 JMP 0x0018fff8 LAB_0018ff86: INC.LOCK dword ptr [R15 + 0x8] LAB_0018ff8b: MOV RBX,qword ptr [R14 + 0x20] SUB RBX,qword ptr [R14 + 0x10] LAB_0018ff93: MOV EDI,0x48 CALL 0x0011b900 LAB_0018ff9d: LEA RDX,[0x22f5f8] ADD RDX,0x10 MOV RCX,RAX ADD RCX,0x10 LEA RSI,[0x22f3a8] ADD RSI,0x10 MOV RDI,0x100000001 MOV qword ptr [RAX + 0x8],RDI MOV qword ptr [RAX],RDX MOV qword ptr [RAX + 0x10],RSI MOV qword ptr [RAX + 0x18],R12 MOV qword ptr [RAX + 0x20],R15 TEST R15,R15 MOV R12,qword ptr [RSP + 0x60] JZ 0x0018fff8 LAB_0018ffe1: MOV RDX,qword ptr [0x00230f78] CMP byte ptr [RDX],0x0 JZ 0x0018fff3 INC dword ptr [R15 + 0x8] JMP 0x0018fff8 LAB_0018fff3: INC.LOCK dword ptr [R15 + 0x8] LAB_0018fff8: LEA RDX,[0x22f648] ADD RDX,0x10 MOV qword ptr [RAX + 0x28],RBX MOV qword ptr [RAX + 0x10],RDX MOVAPS XMM0,xmmword ptr [RSP + 0x40] MOVUPS xmmword ptr [RAX + 0x30],XMM0 MOV RDX,qword ptr [RSP + 0x50] MOV qword ptr [RAX + 0x40],RDX XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP + 0x40],XMM0 MOV qword ptr [RSP + 0x50],0x0 MOV qword ptr [R12],RCX MOV qword ptr [R12 + 0x8],RAX TEST R15,R15 JZ 0x00190044 MOV RDI,R15 CALL 0x001267a6 LAB_00190044: LEA RDI,[RSP + 0x40] CALL 0x00193234 LAB_0019004e: MOV RAX,R12 ADD RSP,0x78 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00190060: MOV EDI,0x10 CALL 0x0011b480 MOV R14,RAX LAB_0019006d: LEA RSI,[0x1f500e] MOV RDI,RAX CALL 0x0011b350 LAB_0019007c: MOV RSI,qword ptr [0x00230fe8] MOV RDX,qword ptr [0x00230f50] MOV RDI,R14 CALL 0x0011c040 LAB_00190092: MOV EDI,0x10 CALL 0x0011b480 MOV R14,RAX LAB_0019009f: LEA RSI,[0x1f4fe0] MOV RDI,RAX CALL 0x0011b350 LAB_001900ae: JMP 0x0019007c
/* minja::Parser::parseDictionary() */ int8 * minja::Parser::parseDictionary(void) { int8 uVar1; int8 *puVar2; runtime_error *this; int8 *puVar3; long lVar4; int8 *in_RSI; int8 *in_RDI; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this_00; long *local_a8 [2]; long local_98 [2]; long *local_88; long local_80; long local_78 [2]; int8 local_68; int8 uStack_60; int8 local_58; int8 *local_48; _lambda___1_ local_40 [8]; int8 *local_38; local_a8[0] = local_98; /* try { // try from 0018fcb3 to 0018fcc8 has its CatchHandler @ 001900ee */ std::__cxx11::string::_M_construct<char_const*>(local_a8,&DAT_001f49e1,&DAT_001f49e2); /* try { // try from 0018fcc9 to 0018fcdd has its CatchHandler @ 001900ce */ consumeToken(&local_88); lVar4 = local_80; if (local_88 != local_78) { operator_delete(local_88,local_78[0] + 1); } if (local_a8[0] != local_98) { operator_delete(local_a8[0],local_98[0] + 1); } if (lVar4 == 0) { *in_RDI = 0; in_RDI[1] = 0; } else { local_68 = 0; uStack_60 = 0; local_58 = 0; local_a8[0] = local_98; /* try { // try from 0018fd3d to 0018fd4f has its CatchHandler @ 001900cc */ std::__cxx11::string::_M_construct<char_const*>(local_a8,&DAT_001f9267,&DAT_001f9268); /* try { // try from 0018fd50 to 0018fd64 has its CatchHandler @ 001900ca */ consumeToken(&local_88); lVar4 = local_80; if (local_88 != local_78) { operator_delete(local_88,local_78[0] + 1); } if (local_a8[0] != local_98) { operator_delete(local_a8[0],local_98[0] + 1); } if (lVar4 == 0) { local_38 = &local_68; local_48 = in_RDI; /* try { // try from 0018fdf2 to 0018fdf6 has its CatchHandler @ 00190100 */ parseDictionary()::{lambda()#1}::operator()(local_40); do { if (in_RSI[4] == in_RSI[3]) { this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0019006d to 0019007b has its CatchHandler @ 001900f3 */ std::runtime_error::runtime_error(this,"Expected closing brace"); LAB_0019007c: /* try { // try from 0019007c to 00190091 has its CatchHandler @ 00190100 */ /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_00230fe8,PTR__runtime_error_00230f50); } local_a8[0] = local_98; /* try { // try from 0018fe22 to 0018fe33 has its CatchHandler @ 00190104 */ std::__cxx11::string::_M_construct<char_const*>(local_a8,&DAT_001f4eda,&DAT_001f4edb); /* try { // try from 0018fe34 to 0018fe46 has its CatchHandler @ 00190119 */ consumeToken(&local_88); lVar4 = local_80; if (local_88 != local_78) { operator_delete(local_88,local_78[0] + 1); } if (local_a8[0] != local_98) { operator_delete(local_a8[0],local_98[0] + 1); } if (lVar4 == 0) { local_a8[0] = local_98; /* try { // try from 0018fea0 to 0018feb2 has its CatchHandler @ 001900b6 */ std::__cxx11::string::_M_construct<char_const*>(local_a8,&DAT_001f9267,&DAT_001f9268); /* try { // try from 0018feb3 to 0018fec7 has its CatchHandler @ 001900b4 */ consumeToken(&local_88); if (local_88 != local_78) { operator_delete(local_88,local_78[0] + 1); } if (local_a8[0] != local_98) { operator_delete(local_a8[0],local_98[0] + 1); } if (local_80 == 0) { this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0019009f to 001900ad has its CatchHandler @ 001900b0 */ std::runtime_error::runtime_error(this,"Expected comma or closing brace in dictionary"); goto LAB_0019007c; } uVar1 = *in_RSI; this_00 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)in_RSI[1]; if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { if (*PTR___libc_single_threaded_00230f78 == '\0') { LOCK(); *(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1; UNLOCK(); } else { *(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1; } } lVar4 = in_RSI[4] - in_RSI[2]; /* try { // try from 0018ff93 to 0018ff9c has its CatchHandler @ 001900b2 */ puVar2 = (int8 *)operator_new(0x48); puVar3 = puVar2 + 2; puVar2[1] = 0x100000001; *puVar2 = &PTR___Sp_counted_ptr_inplace_0022f608; puVar2[2] = &PTR___cxa_pure_virtual_0022f3b8; puVar2[3] = uVar1; puVar2[4] = this_00; in_RDI = local_48; if (this_00 == (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) goto LAB_0018fff8; goto LAB_0018ffe1; } /* try { // try from 0018fe88 to 0018fe8f has its CatchHandler @ 00190102 */ parseDictionary()::{lambda()#1}::operator()(local_40); } while( true ); } uVar1 = *in_RSI; this_00 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)in_RSI[1]; if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { if (*PTR___libc_single_threaded_00230f78 == '\0') { LOCK(); *(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1; UNLOCK(); } else { *(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1; } } lVar4 = in_RSI[4] - in_RSI[2]; /* try { // try from 0018ff38 to 0018ff41 has its CatchHandler @ 001900b8 */ puVar2 = (int8 *)operator_new(0x48); puVar3 = puVar2 + 2; puVar2[1] = 0x100000001; *puVar2 = &PTR___Sp_counted_ptr_inplace_0022f608; puVar2[2] = &PTR___cxa_pure_virtual_0022f3b8; puVar2[3] = uVar1; puVar2[4] = this_00; if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { LAB_0018ffe1: if (*PTR___libc_single_threaded_00230f78 == '\0') { LOCK(); *(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1; UNLOCK(); } else { *(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1; } } LAB_0018fff8: puVar2[5] = lVar4; puVar2[2] = &PTR_do_evaluate_0022f658; puVar2[6] = local_68; puVar2[7] = uStack_60; puVar2[8] = local_58; local_68 = 0; uStack_60 = 0; local_58 = 0; *in_RDI = puVar3; in_RDI[1] = puVar2; if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(this_00); } std:: vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>> ::~vector((vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>> *)&local_68); } return in_RDI; }
27,697
translog_set_file_size
eloqsql/storage/maria/ma_loghandler.c
void translog_set_file_size(uint32 size) { struct st_translog_buffer *old_buffer= NULL; DBUG_ENTER("translog_set_file_size"); translog_lock(); DBUG_PRINT("enter", ("Size: %lu", (ulong) size)); DBUG_ASSERT(size % TRANSLOG_PAGE_SIZE == 0); DBUG_ASSERT(size >= TRANSLOG_MIN_FILE_SIZE); log_descriptor.log_file_max_size= size; /* if current file longer then finish it*/ if (LSN_OFFSET(log_descriptor.horizon) >= log_descriptor.log_file_max_size) { old_buffer= log_descriptor.bc.buffer; translog_buffer_next(&log_descriptor.horizon, &log_descriptor.bc, 1); translog_buffer_unlock(old_buffer); } translog_unlock(); if (old_buffer) { translog_buffer_lock(old_buffer); translog_buffer_flush(old_buffer); translog_buffer_unlock(old_buffer); } DBUG_VOID_RETURN; }
O3
c
translog_set_file_size: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movl %edi, %ebx callq 0x442bb movl %ebx, 0x3b3e7c(%rip) # 0x3fd170 cmpl %ebx, 0xbb4aae(%rip) # 0xbfdda8 jae 0x49300 xorl %ebx, %ebx jmp 0x4933b movq 0xbb4ad1(%rip), %rbx # 0xbfddd8 leaq 0xbb4a9a(%rip), %rdi # 0xbfdda8 leaq 0xbb4a9b(%rip), %rsi # 0xbfddb0 movl $0x1, %edx callq 0x493cf movq 0x1000d0(%rbx), %rdi testq %rdi, %rdi jne 0x493ba leaq 0x100090(%rbx), %rdi callq 0x291e0 movq 0xbb4a96(%rip), %r14 # 0xbfddd8 movq 0x1000d0(%r14), %rdi testq %rdi, %rdi jne 0x49396 addq $0x100090, %r14 # imm = 0x100090 movq %r14, %rdi callq 0x291e0 testq %rbx, %rbx je 0x49391 movq %rbx, %rdi callq 0x4435b movq %rbx, %rdi callq 0x48029 movq 0x1000d0(%rbx), %rdi testq %rdi, %rdi jne 0x493a8 addq $0x100090, %rbx # imm = 0x100090 movq %rbx, %rdi popq %rbx popq %r14 popq %rbp jmp 0x291e0 popq %rbx popq %r14 popq %rbp retq leaq 0x33bc73(%rip), %rax # 0x385010 movq (%rax), %rax callq *0x160(%rax) jmp 0x4934e leaq 0x33bc61(%rip), %rax # 0x385010 movq (%rax), %rax callq *0x160(%rax) jmp 0x4937e leaq 0x33bc4f(%rip), %rax # 0x385010 movq (%rax), %rax callq *0x160(%rax) jmp 0x4932f
translog_set_file_size: push rbp mov rbp, rsp push r14 push rbx mov ebx, edi call translog_lock mov cs:dword_3FD170, ebx cmp dword ptr cs:qword_BFDDA8, ebx jnb short loc_49300 xor ebx, ebx jmp short loc_4933B loc_49300: mov rbx, qword ptr cs:xmmword_BFDDD0+8 lea rdi, qword_BFDDA8 lea rsi, xmmword_BFDDB0 mov edx, 1 call translog_buffer_next mov rdi, ds:qword_1000D0[rbx] test rdi, rdi jnz loc_493BA loc_4932F: lea rdi, unk_100090[rbx] call _pthread_mutex_unlock loc_4933B: mov r14, qword ptr cs:xmmword_BFDDD0+8 mov rdi, ds:qword_1000D0[r14] test rdi, rdi jnz short loc_49396 loc_4934E: add r14, 100090h mov rdi, r14 call _pthread_mutex_unlock test rbx, rbx jz short loc_49391 mov rdi, rbx call translog_buffer_lock mov rdi, rbx call translog_buffer_flush mov rdi, ds:qword_1000D0[rbx] test rdi, rdi jnz short loc_493A8 loc_4937E: add rbx, 100090h mov rdi, rbx pop rbx pop r14 pop rbp jmp _pthread_mutex_unlock loc_49391: pop rbx pop r14 pop rbp retn loc_49396: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_4934E loc_493A8: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_4937E loc_493BA: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp loc_4932F
long long translog_set_file_size(unsigned int a1) { long long v1; // rbx long long v2; // r14 long long result; // rax translog_lock(); dword_3FD170 = a1; if ( (unsigned int)qword_BFDDA8 >= a1 ) { v1 = *((_QWORD *)&xmmword_BFDDD0 + 1); translog_buffer_next(&qword_BFDDA8, &xmmword_BFDDB0, 1LL); if ( *(long long *)((char *)&qword_1000D0 + v1) ) PSI_server[44](); pthread_mutex_unlock((char *)&unk_100090 + v1); } else { v1 = 0LL; } v2 = *((_QWORD *)&xmmword_BFDDD0 + 1); if ( *(long long *)((char *)&qword_1000D0 + *((_QWORD *)&xmmword_BFDDD0 + 1)) ) PSI_server[44](); result = pthread_mutex_unlock(v2 + 1048720); if ( v1 ) { translog_buffer_lock(v1); translog_buffer_flush(v1); if ( *(long long *)((char *)&qword_1000D0 + v1) ) PSI_server[44](); return pthread_mutex_unlock(v1 + 1048720); } return result; }
translog_set_file_size: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV EBX,EDI CALL 0x001442bb MOV dword ptr [0x004fd170],EBX CMP dword ptr [0x00cfdda8],EBX JNC 0x00149300 XOR EBX,EBX JMP 0x0014933b LAB_00149300: MOV RBX,qword ptr [0x00cfddd8] LEA RDI,[0xcfdda8] LEA RSI,[0xcfddb0] MOV EDX,0x1 CALL 0x001493cf MOV RDI,qword ptr [RBX + 0x1000d0] TEST RDI,RDI JNZ 0x001493ba LAB_0014932f: LEA RDI,[RBX + 0x100090] CALL 0x001291e0 LAB_0014933b: MOV R14,qword ptr [0x00cfddd8] MOV RDI,qword ptr [R14 + 0x1000d0] TEST RDI,RDI JNZ 0x00149396 LAB_0014934e: ADD R14,0x100090 MOV RDI,R14 CALL 0x001291e0 TEST RBX,RBX JZ 0x00149391 MOV RDI,RBX CALL 0x0014435b MOV RDI,RBX CALL 0x00148029 MOV RDI,qword ptr [RBX + 0x1000d0] TEST RDI,RDI JNZ 0x001493a8 LAB_0014937e: ADD RBX,0x100090 MOV RDI,RBX POP RBX POP R14 POP RBP JMP 0x001291e0 LAB_00149391: POP RBX POP R14 POP RBP RET LAB_00149396: LEA RAX,[0x485010] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x0014934e LAB_001493a8: LEA RAX,[0x485010] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x0014937e LAB_001493ba: LEA RAX,[0x485010] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x0014932f
void translog_set_file_size(uint param_1) { long lVar1; long lVar2; translog_lock(); lVar2 = DAT_00cfddd8; DAT_004fd170 = param_1; if ((uint)DAT_00cfdda8 < param_1) { lVar2 = 0; } else { translog_buffer_next(&DAT_00cfdda8,&DAT_00cfddb0,1); if (*(long *)((long)&Elf64_Phdr_ARRAY_00100040[2].p_filesz + lVar2) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock((pthread_mutex_t *)((long)&Elf64_Phdr_ARRAY_00100040[1].p_paddr + lVar2)); } lVar1 = DAT_00cfddd8; if (*(long *)((long)&Elf64_Phdr_ARRAY_00100040[2].p_filesz + DAT_00cfddd8) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock((pthread_mutex_t *)((long)&Elf64_Phdr_ARRAY_00100040[1].p_paddr + lVar1)); if (lVar2 != 0) { translog_buffer_lock(lVar2); translog_buffer_flush(lVar2); if (*(long *)((long)&Elf64_Phdr_ARRAY_00100040[2].p_filesz + lVar2) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock((pthread_mutex_t *)((long)&Elf64_Phdr_ARRAY_00100040[1].p_paddr + lVar2)); return; } return; }
27,698
get_dynamic
eloqsql/mysys/array.c
void get_dynamic(DYNAMIC_ARRAY *array, void *element, uint idx) { if (idx >= array->elements) { DBUG_PRINT("warning",("To big array idx: %d, array size is %d", idx,array->elements)); bzero(element,array->size_of_element); return; } memcpy(element,array->buffer+idx*array->size_of_element, (size_t) array->size_of_element); }
O0
c
get_dynamic: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movl -0x14(%rbp), %eax movq -0x8(%rbp), %rcx cmpl 0x8(%rcx), %eax jb 0xdc149 jmp 0xdc131 jmp 0xdc133 movq -0x10(%rbp), %rdi movq -0x8(%rbp), %rax movl 0x14(%rax), %eax movl %eax, %edx xorl %esi, %esi callq 0x2a2c0 jmp 0xdc172 movq -0x10(%rbp), %rdi movq -0x8(%rbp), %rax movq (%rax), %rsi movl -0x14(%rbp), %eax movq -0x8(%rbp), %rcx imull 0x14(%rcx), %eax movl %eax, %eax addq %rax, %rsi movq -0x8(%rbp), %rax movl 0x14(%rax), %eax movl %eax, %edx callq 0x2a090 addq $0x20, %rsp popq %rbp retq nopl (%rax,%rax)
get_dynamic: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx mov eax, [rbp+var_14] mov rcx, [rbp+var_8] cmp eax, [rcx+8] jb short loc_DC149 jmp short $+2 loc_DC131: jmp short $+2 loc_DC133: mov rdi, [rbp+var_10] mov rax, [rbp+var_8] mov eax, [rax+14h] mov edx, eax xor esi, esi call _memset jmp short loc_DC172 loc_DC149: mov rdi, [rbp+var_10] mov rax, [rbp+var_8] mov rsi, [rax] mov eax, [rbp+var_14] mov rcx, [rbp+var_8] imul eax, [rcx+14h] mov eax, eax add rsi, rax mov rax, [rbp+var_8] mov eax, [rax+14h] mov edx, eax call _memcpy loc_DC172: add rsp, 20h pop rbp retn
long long get_dynamic(long long a1, long long a2, unsigned int a3) { if ( a3 < *(_DWORD *)(a1 + 8) ) return memcpy(a2, *(_DWORD *)(a1 + 20) * a3 + *(_QWORD *)a1, *(unsigned int *)(a1 + 20)); else return memset(a2, 0LL, *(unsigned int *)(a1 + 20)); }
get_dynamic: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX MOV EAX,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x8] CMP EAX,dword ptr [RCX + 0x8] JC 0x001dc149 JMP 0x001dc131 LAB_001dc131: JMP 0x001dc133 LAB_001dc133: MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x14] MOV EDX,EAX XOR ESI,ESI CALL 0x0012a2c0 JMP 0x001dc172 LAB_001dc149: MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RAX] MOV EAX,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x8] IMUL EAX,dword ptr [RCX + 0x14] MOV EAX,EAX ADD RSI,RAX MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x14] MOV EDX,EAX CALL 0x0012a090 LAB_001dc172: ADD RSP,0x20 POP RBP RET
void get_dynamic(long *param_1,void *param_2,uint param_3) { if (param_3 < *(uint *)(param_1 + 1)) { memcpy(param_2,(void *)(*param_1 + (ulong)(param_3 * *(int *)((long)param_1 + 0x14))), (ulong)*(uint *)((long)param_1 + 0x14)); } else { memset(param_2,0,(ulong)*(uint *)((long)param_1 + 0x14)); } return; }
27,699
ftxui::separatorVSelector(float, float, ftxui::Color, ftxui::Color)::Impl::Render(ftxui::Screen&)
Andrewchistyakov[P]flashcards_lyc/build_O3/_deps/ftxui-src/src/ftxui/dom/separator.cpp
void Render(Screen& screen) override { if (box_.x_max < box_.x_min) { return; } // This are the two location with an empty demi-cell. const int demi_cell_up = int(up_ * 2 - 1); const int demi_cell_down = int(down_ * 2 + 2); const int x = box_.x_min; for (int y = box_.y_min; y <= box_.y_max; ++y) { Pixel& pixel = screen.PixelAt(x, y); const int a = (y - box_.y_min) * 2; const int b = a + 1; const bool a_empty = demi_cell_up == a || demi_cell_down == a; const bool b_empty = demi_cell_up == b || demi_cell_down == b; if (!a_empty && !b_empty) { pixel.character = "│"; pixel.automerge = true; } else { pixel.character = a_empty ? "╷" : "╵"; // NOLINT pixel.automerge = false; } if (demi_cell_up <= a && b <= demi_cell_down) { pixel.foreground_color = selected_color_; } else { pixel.foreground_color = unselected_color_; } } }
O3
cpp
ftxui::separatorVSelector(float, float, ftxui::Color, ftxui::Color)::Impl::Render(ftxui::Screen&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rsi, 0x18(%rsp) movl 0x4c(%rdi), %eax movl %eax, 0x14(%rsp) cmpl %eax, 0x50(%rdi) jl 0x24f56 movq %rdi, %r14 movl 0x54(%rdi), %r15d cmpl 0x58(%rdi), %r15d jg 0x24f56 movsd 0x5c(%r14), %xmm0 addps %xmm0, %xmm0 addps 0x18f60(%rip), %xmm0 # 0x3ddb0 cvttps2dq %xmm0, %xmm0 movd %xmm0, %ebx pshufd $0x55, %xmm0, %xmm1 # xmm1 = xmm0[1,1,1,1] movd %xmm1, %eax leal (%r15,%r15), %r12d movl %eax, 0xc(%rsp) negl %eax movl %eax, 0x8(%rsp) movl %ebx, 0x10(%rsp) negl %ebx pshufd $0x50, %xmm0, %xmm0 # xmm0 = xmm0[0,0,1,1] movdqa %xmm0, 0x20(%rsp) movq 0x18(%rsp), %rdi movl 0x14(%rsp), %esi movl %r15d, %edx callq 0x3985c movq %rax, %r13 movl 0x54(%r14), %eax addl %eax, %eax movl %r12d, %ebp subl %eax, %ebp movl %ebp, %eax leaq 0x18f20(%rip), %rcx # 0x3ddc8 addl %ebx, %eax je 0x24edc movl %ebp, %eax leaq 0x18f13(%rip), %rcx # 0x3ddc8 addl 0x8(%rsp), %eax je 0x24edc leal 0x1(%rbp), %eax movd %eax, %xmm0 pshufd $0x0, %xmm0, %xmm0 # xmm0 = xmm0[0,0,0,0] pcmpeqd 0x20(%rsp), %xmm0 movmskpd %xmm0, %eax leaq 0x18ef4(%rip), %rcx # 0x3ddcc testl %eax, %eax je 0x24efc movq %r13, %rdi addq $0x8, %rdi movq 0x10(%r13), %rdx movl $0x3, %r8d xorl %esi, %esi callq 0xb680 movb (%r13), %al andb $0x7f, %al jmp 0x24f21 movq %r13, %rdi addq $0x8, %rdi movq 0x10(%r13), %rdx movl $0x3, %r8d xorl %esi, %esi leaq 0x1898e(%rip), %rcx # 0x3d8a4 callq 0xb680 movb (%r13), %al orb $-0x80, %al movb %al, (%r13) cmpl 0x10(%rsp), %ebp setge %al cmpl 0xc(%rsp), %ebp setl %cl andb %al, %cl movzbl %cl, %eax movl 0x64(%r14,%rax,4), %eax movl %eax, 0x2c(%r13) leal 0x1(%r15), %eax addl $0x2, %r12d cmpl 0x58(%r14), %r15d movl %eax, %r15d jl 0x24e80 addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
_ZZN5ftxui18separatorVSelectorEffNS_5ColorES0_EN4Impl6RenderERNS_6ScreenE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov [rsp+68h+var_50], rsi mov eax, [rdi+4Ch] mov [rsp+68h+var_54], eax cmp [rdi+50h], eax jl loc_24F56 mov r14, rdi mov r15d, [rdi+54h] cmp r15d, [rdi+58h] jg loc_24F56 movsd xmm0, qword ptr [r14+5Ch] addps xmm0, xmm0 addps xmm0, cs:xmmword_3DDB0 cvttps2dq xmm0, xmm0 movd ebx, xmm0 pshufd xmm1, xmm0, 55h ; 'U' movd eax, xmm1 lea r12d, [r15+r15] mov [rsp+68h+var_5C], eax neg eax mov [rsp+68h+var_60], eax mov [rsp+68h+var_58], ebx neg ebx pshufd xmm0, xmm0, 50h ; 'P' movdqa [rsp+68h+var_48], xmm0 loc_24E80: mov rdi, [rsp+68h+var_50]; this mov esi, [rsp+68h+var_54]; int mov edx, r15d; int call _ZN5ftxui6Screen7PixelAtEii; ftxui::Screen::PixelAt(int,int) mov r13, rax mov eax, [r14+54h] add eax, eax mov ebp, r12d sub ebp, eax mov eax, ebp lea rcx, unk_3DDC8 add eax, ebx jz short loc_24EDC mov eax, ebp lea rcx, unk_3DDC8 add eax, [rsp+68h+var_60] jz short loc_24EDC lea eax, [rbp+1] movd xmm0, eax pshufd xmm0, xmm0, 0 pcmpeqd xmm0, [rsp+68h+var_48] movmskpd eax, xmm0 lea rcx, unk_3DDCC test eax, eax jz short loc_24EFC loc_24EDC: mov rdi, r13 add rdi, 8 mov rdx, [r13+10h] mov r8d, 3 xor esi, esi call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) mov al, [r13+0] and al, 7Fh jmp short loc_24F21 loc_24EFC: mov rdi, r13 add rdi, 8 mov rdx, [r13+10h] mov r8d, 3 xor esi, esi lea rcx, unk_3D8A4 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) mov al, [r13+0] or al, 80h loc_24F21: mov [r13+0], al cmp ebp, [rsp+68h+var_58] setnl al cmp ebp, [rsp+68h+var_5C] setl cl and cl, al movzx eax, cl mov eax, [r14+rax*4+64h] mov [r13+2Ch], eax lea eax, [r15+1] add r12d, 2 cmp r15d, [r14+58h] mov r15d, eax jl loc_24E80 loc_24F56: add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long ftxui::separatorVSelector(float,float,ftxui::Color,ftxui::Color)::Impl::Render( long long a1, ftxui::Screen *a2) { long long result; // rax int v3; // r15d __m128i v4; // xmm0 int v5; // r12d long long v6; // r13 int v7; // ebp void *v8; // rcx char v9; // al int v11; // [rsp+Ch] [rbp-5Ch] int v12; // [rsp+10h] [rbp-58h] int v13; // [rsp+14h] [rbp-54h] __m128i v14; // [rsp+20h] [rbp-48h] result = *(unsigned int *)(a1 + 76); v13 = result; if ( *(_DWORD *)(a1 + 80) >= (int)result ) { v3 = *(_DWORD *)(a1 + 84); if ( v3 <= *(_DWORD *)(a1 + 88) ) { v4 = _mm_cvttps_epi32( _mm_add_ps( _mm_add_ps((__m128)*(unsigned long long *)(a1 + 92), (__m128)*(unsigned long long *)(a1 + 92)), (__m128)xmmword_3DDB0)); v5 = 2 * v3; v11 = _mm_cvtsi128_si32(_mm_shuffle_epi32(v4, 85)); v12 = _mm_cvtsi128_si32(v4); v14 = _mm_shuffle_epi32(v4, 80); do { v6 = ftxui::Screen::PixelAt(a2, v13, v3); v7 = v5 - 2 * *(_DWORD *)(a1 + 84); v8 = &unk_3DDC8; if ( v7 == v12 || (v8 = &unk_3DDC8, v7 == v11) || (v8 = &unk_3DDCC, _mm_movemask_pd((__m128d)_mm_cmpeq_epi32(_mm_shuffle_epi32(_mm_cvtsi32_si128(v7 + 1), 0), v14))) ) { std::string::_M_replace(v6 + 8, 0LL, *(_QWORD *)(v6 + 16), v8, 3LL); v9 = *(_BYTE *)v6 & 0x7F; } else { std::string::_M_replace(v6 + 8, 0LL, *(_QWORD *)(v6 + 16), &unk_3D8A4, 3LL); v9 = *(_BYTE *)v6 | 0x80; } *(_BYTE *)v6 = v9; *(_DWORD *)(v6 + 44) = *(_DWORD *)(a1 + 4LL * ((v7 >= v12) & (unsigned __int8)(v7 < v11)) + 100); result = (unsigned int)(v3 + 1); v5 += 2; } while ( v3++ < *(_DWORD *)(a1 + 88) ); } } return result; }
Screen&): PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV qword ptr [RSP + 0x18],RSI MOV EAX,dword ptr [RDI + 0x4c] MOV dword ptr [RSP + 0x14],EAX CMP dword ptr [RDI + 0x50],EAX JL 0x00124f56 MOV R14,RDI MOV R15D,dword ptr [RDI + 0x54] CMP R15D,dword ptr [RDI + 0x58] JG 0x00124f56 MOVSD XMM0,qword ptr [R14 + 0x5c] ADDPS XMM0,XMM0 ADDPS XMM0,xmmword ptr [0x0013ddb0] CVTTPS2DQ XMM0,XMM0 MOVD EBX,XMM0 PSHUFD XMM1,XMM0,0x55 MOVD EAX,XMM1 LEA R12D,[R15 + R15*0x1] MOV dword ptr [RSP + 0xc],EAX NEG EAX MOV dword ptr [RSP + 0x8],EAX MOV dword ptr [RSP + 0x10],EBX NEG EBX PSHUFD XMM0,XMM0,0x50 MOVDQA xmmword ptr [RSP + 0x20],XMM0 LAB_00124e80: MOV RDI,qword ptr [RSP + 0x18] MOV ESI,dword ptr [RSP + 0x14] MOV EDX,R15D CALL 0x0013985c MOV R13,RAX MOV EAX,dword ptr [R14 + 0x54] ADD EAX,EAX MOV EBP,R12D SUB EBP,EAX MOV EAX,EBP LEA RCX,[0x13ddc8] ADD EAX,EBX JZ 0x00124edc MOV EAX,EBP LEA RCX,[0x13ddc8] ADD EAX,dword ptr [RSP + 0x8] JZ 0x00124edc LEA EAX,[RBP + 0x1] MOVD XMM0,EAX PSHUFD XMM0,XMM0,0x0 PCMPEQD XMM0,xmmword ptr [RSP + 0x20] MOVMSKPD EAX,XMM0 LEA RCX,[0x13ddcc] TEST EAX,EAX JZ 0x00124efc LAB_00124edc: MOV RDI,R13 ADD RDI,0x8 MOV RDX,qword ptr [R13 + 0x10] MOV R8D,0x3 XOR ESI,ESI CALL 0x0010b680 MOV AL,byte ptr [R13] AND AL,0x7f JMP 0x00124f21 LAB_00124efc: MOV RDI,R13 ADD RDI,0x8 MOV RDX,qword ptr [R13 + 0x10] MOV R8D,0x3 XOR ESI,ESI LEA RCX,[0x13d8a4] CALL 0x0010b680 MOV AL,byte ptr [R13] OR AL,0x80 LAB_00124f21: MOV byte ptr [R13],AL CMP EBP,dword ptr [RSP + 0x10] SETGE AL CMP EBP,dword ptr [RSP + 0xc] SETL CL AND CL,AL MOVZX EAX,CL MOV EAX,dword ptr [R14 + RAX*0x4 + 0x64] MOV dword ptr [R13 + 0x2c],EAX LEA EAX,[R15 + 0x1] ADD R12D,0x2 CMP R15D,dword ptr [R14 + 0x58] MOV R15D,EAX JL 0x00124e80 LAB_00124f56: ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* ftxui::separatorVSelector(float, float, ftxui::Color, ftxui::Color)::Impl::Render(ftxui::Screen&) */ void ftxui::separatorVSelector(float,float,ftxui::Color,ftxui::Color)::Impl::Render(ftxui::Screen__ (long param_1,Screen *param_2) { int iVar1; bool bVar2; float fVar3; byte bVar4; int iVar5; byte *pbVar6; int *puVar7; int iVar8; int iVar9; int iVar10; float fVar11; int iVar12; int iVar14; int1 auVar13 [16]; iVar1 = *(int *)(param_1 + 0x4c); if ((iVar1 <= *(int *)(param_1 + 0x50)) && (iVar10 = *(int *)(param_1 + 0x54), iVar10 <= *(int *)(param_1 + 0x58))) { fVar11 = (float)*(int8 *)(param_1 + 0x5c); fVar3 = (float)((ulong)*(int8 *)(param_1 + 0x5c) >> 0x20); iVar12 = (int)(fVar11 + fVar11 + _DAT_0013ddb0); iVar14 = (int)(fVar3 + fVar3 + _UNK_0013ddb4); iVar9 = iVar10 * 2; do { pbVar6 = (byte *)Screen::PixelAt(param_2,iVar1,iVar10); iVar8 = iVar9 + *(int *)(param_1 + 0x54) * -2; puVar7 = &DAT_0013ddc8; if ((iVar8 == iVar12) || (puVar7 = &DAT_0013ddc8, iVar8 == iVar14)) { LAB_00124edc: std::__cxx11::string::_M_replace ((ulong)(pbVar6 + 8),0,*(char **)(pbVar6 + 0x10),(ulong)puVar7); bVar4 = *pbVar6 & 0x7f; } else { iVar5 = iVar8 + 1; auVar13._0_4_ = -(uint)(iVar5 == iVar12); auVar13._4_4_ = -(uint)(iVar5 == iVar12); auVar13._8_4_ = -(uint)(iVar5 == iVar14); auVar13._12_4_ = -(uint)(iVar5 == iVar14); iVar5 = movmskpd(iVar5,auVar13); puVar7 = &DAT_0013ddcc; if (iVar5 != 0) goto LAB_00124edc; std::__cxx11::string::_M_replace((ulong)(pbVar6 + 8),0,*(char **)(pbVar6 + 0x10),0x13d8a4); bVar4 = *pbVar6 | 0x80; } *pbVar6 = bVar4; *(int4 *)(pbVar6 + 0x2c) = *(int4 *)(param_1 + 100 + (ulong)(iVar8 < iVar14 && iVar12 <= iVar8) * 4); iVar9 = iVar9 + 2; bVar2 = iVar10 < *(int *)(param_1 + 0x58); iVar10 = iVar10 + 1; } while (bVar2); } return; }