{"type": "func", "start": 4300242048, "end": 4300242183, "name": "GJRateLevelLayer::rateInfoFinished", "pseudocode": "// \n// GJRateLevelLayer::rateInfoFinished from 0x100507c80 to 0x100507d07 (135 bytes)\n// \n// 2 xrefs:\n// > sub_100507D30 @ 0x100507d3c\n// > <???> @ 0x10095a258\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\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 + 976) + 328LL) - *(_DWORD *)(*(_QWORD *)(a1 + 976) + 332LL) == a2 )\n  {\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1048) + 328LL))(*(_QWORD *)(a1 + 1048), 0);\n    if ( (*(_BYTE *)a3 & 1) != 0 )\n    {\n      sub_100006B70(&v8, *(const void **)(a3 + 16), *(_QWORD *)(a3 + 8), *(double *)a4.i64);\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 0x100507c80 to 0x100507d07 (135 bytes)\n; \n; 2 xrefs:\n; > sub_100507D30 @ 0x100507d3c\n; > <???> @ 0x10095a258\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x100507c80\nmov     rbp, rsp                                                       ; +0x1, 0x100507c81\npush    r14                                                            ; +0x4, 0x100507c84\npush    rbx                                                            ; +0x6, 0x100507c86\nsub     rsp, 20h                                                       ; +0x7, 0x100507c87\nmov     rax, [rdi+3D0h]                                                ; +0xb, 0x100507c8b\nmov     ecx, [rax+148h]                                                ; +0x12, 0x100507c92\nsub     ecx, [rax+14Ch]                                                ; +0x18, 0x100507c98\ncmp     ecx, esi                                                       ; +0x1e, 0x100507c9e\njnz     short loc_100507CFE                                            ; +0x20, 0x100507ca0\nmov     r14, rdx                                                       ; +0x22, 0x100507ca2\nmov     rbx, rdi                                                       ; +0x25, 0x100507ca5\nmov     rdi, [rdi+418h]                                                ; +0x28, 0x100507ca8\nmov     rax, [rdi]                                                     ; +0x2f, 0x100507caf\nxor     esi, esi                                                       ; +0x32, 0x100507cb2\ncall    qword ptr [rax+148h]                                           ; +0x34, 0x100507cb4\ntest    byte ptr [r14], 1                                              ; +0x3a, 0x100507cba\njnz     short loc_100507CD2                                            ; +0x3e, 0x100507cbe\nmov     rax, [r14+10h]                                                 ; +0x40, 0x100507cc0\nmov     [rbp+__p], rax                                                 ; +0x44, 0x100507cc4\nmovups  xmm0, xmmword ptr [r14]                                        ; +0x48, 0x100507cc8\nmovaps  [rbp+var_30], xmm0                                             ; +0x4c, 0x100507ccc\njmp     short loc_100507CE3                                            ; +0x50, 0x100507cd0\nmov     rdx, [r14+8]                                                   ; +0x52, 0x100507cd2\nmov     rsi, [r14+10h]                                                 ; +0x56, 0x100507cd6\nlea     rdi, [rbp+var_30]                                              ; +0x5a, 0x100507cda\ncall    sub_100006B70                                                  ; +0x5e, 0x100507cde\nlea     rsi, [rbp+var_30]                                              ; +0x63, 0x100507ce3\nmov     rdi, rbx                                                       ; +0x67, 0x100507ce7\ncall    GJRateLevelLayer__setupRateInfo                                ; +0x6a, 0x100507cea\ntest    byte ptr [rbp+var_30], 1                                       ; +0x6f, 0x100507cef\njz      short loc_100507CFE                                            ; +0x73, 0x100507cf3\nmov     rdi, [rbp+__p]; __p                                            ; +0x75, 0x100507cf5\ncall    __ZdlPv; operator delete(void *)                               ; +0x79, 0x100507cf9\nadd     rsp, 20h                                                       ; +0x7e, 0x100507cfe\npop     rbx                                                            ; +0x82, 0x100507d02\npop     r14                                                            ; +0x83, 0x100507d03\npop     rbp                                                            ; +0x85, 0x100507d05\nretn                                                                   ; +0x86, 0x100507d06", "xrefs": ["sub_100507D30 @ 0x100507d3c", "<???> @ 0x10095a258"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}