{"type": "func", "start": 4300237136, "end": 4300237271, "name": "GJRateLevelLayer::rateInfoFinished", "pseudocode": "// \n// GJRateLevelLayer::rateInfoFinished from 0x100506950 to 0x1005069d7 (135 bytes)\n// \n// 2 xrefs:\n// > sub_100506A00 @ 0x100506a0c\n// > <???> @ 0x100b65940\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:31:32 +0000\n// \n\nvoid __fastcall GJRateLevelLayer::rateInfoFinished(\n        __int64 a1,\n        int a2,\n        __int64 a3,\n        __m128 a4,\n        double a5,\n        double a6,\n        double a7)\n{\n  __m128 v8; // [rsp+0h] [rbp-30h] BYREF\n  void *__p; // [rsp+10h] [rbp-20h]\n\n  if ( *(_DWORD *)(*(_QWORD *)(a1 + 1048) + 328LL) - *(_DWORD *)(*(_QWORD *)(a1 + 1048) + 332LL) == a2 )\n  {\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1120) + 344LL))(*(_QWORD *)(a1 + 1120), 0);\n    if ( (*(_BYTE *)a3 & 1) != 0 )\n    {\n      sub_10001AD30(&v8, *(const void **)(a3 + 16), *(_QWORD *)(a3 + 8));\n    }\n    else\n    {\n      __p = *(void **)(a3 + 16);\n      a4 = *(__m128 *)a3;\n      v8 = *(__m128 *)a3;\n    }\n    GJRateLevelLayer::setupRateInfo(a1, (__int64)&v8, *(double *)a4.i64, a5, a6, a7);\n    if ( (v8.i8[0] & 1) != 0 )\n      operator delete(__p);\n  }\n}", "assembly": "; \n; GJRateLevelLayer::rateInfoFinished from 0x100506950 to 0x1005069d7 (135 bytes)\n; \n; 2 xrefs:\n; > sub_100506A00 @ 0x100506a0c\n; > <???> @ 0x100b65940\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:31:32 +0000\n; \npush    rbp                                                            ; +0x0, 0x100506950\nmov     rbp, rsp                                                       ; +0x1, 0x100506951\npush    r14                                                            ; +0x4, 0x100506954\npush    rbx                                                            ; +0x6, 0x100506956\nsub     rsp, 20h                                                       ; +0x7, 0x100506957\nmov     rax, [rdi+418h]                                                ; +0xb, 0x10050695b\nmov     ecx, [rax+148h]                                                ; +0x12, 0x100506962\nsub     ecx, [rax+14Ch]                                                ; +0x18, 0x100506968\ncmp     ecx, esi                                                       ; +0x1e, 0x10050696e\njnz     short loc_1005069CE                                            ; +0x20, 0x100506970\nmov     r14, rdx                                                       ; +0x22, 0x100506972\nmov     rbx, rdi                                                       ; +0x25, 0x100506975\nmov     rdi, [rdi+460h]                                                ; +0x28, 0x100506978\nmov     rax, [rdi]                                                     ; +0x2f, 0x10050697f\nxor     esi, esi                                                       ; +0x32, 0x100506982\ncall    qword ptr [rax+158h]                                           ; +0x34, 0x100506984\ntest    byte ptr [r14], 1                                              ; +0x3a, 0x10050698a\njnz     short loc_1005069A2                                            ; +0x3e, 0x10050698e\nmov     rax, [r14+10h]                                                 ; +0x40, 0x100506990\nmov     [rbp+__p], rax                                                 ; +0x44, 0x100506994\nmovups  xmm0, xmmword ptr [r14]                                        ; +0x48, 0x100506998\nmovaps  [rbp+var_30], xmm0                                             ; +0x4c, 0x10050699c\njmp     short loc_1005069B3                                            ; +0x50, 0x1005069a0\nmov     rdx, [r14+8]                                                   ; +0x52, 0x1005069a2\nmov     rsi, [r14+10h]                                                 ; +0x56, 0x1005069a6\nlea     rdi, [rbp+var_30]                                              ; +0x5a, 0x1005069aa\ncall    sub_10001AD30                                                  ; +0x5e, 0x1005069ae\nlea     rsi, [rbp+var_30]                                              ; +0x63, 0x1005069b3\nmov     rdi, rbx                                                       ; +0x67, 0x1005069b7\ncall    GJRateLevelLayer__setupRateInfo                                ; +0x6a, 0x1005069ba\ntest    byte ptr [rbp+var_30], 1                                       ; +0x6f, 0x1005069bf\njz      short loc_1005069CE                                            ; +0x73, 0x1005069c3\nmov     rdi, [rbp+__p]; __p                                            ; +0x75, 0x1005069c5\ncall    __ZdlPv; operator delete(void *)                               ; +0x79, 0x1005069c9\nadd     rsp, 20h                                                       ; +0x7e, 0x1005069ce\npop     rbx                                                            ; +0x82, 0x1005069d2\npop     r14                                                            ; +0x83, 0x1005069d3\npop     rbp                                                            ; +0x85, 0x1005069d5\nretn                                                                   ; +0x86, 0x1005069d6", "xrefs": ["sub_100506A00 @ 0x100506a0c", "<???> @ 0x100b65940"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}