{"type": "func", "start": 4295954016, "end": 4295954156, "name": "GJBaseGameLayer::asyncMGLoaded", "pseudocode": "// \n// GJBaseGameLayer::asyncMGLoaded from 0x1000f0e60 to 0x1000f0eec (140 bytes)\n// \n// 1 xrefs:\n// > GameManager::finishedLoadingMGAsync @ 0x10036cb35\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:21:11 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::asyncMGLoaded(__int64 a1, int a2, double a3)\n{\n  __int64 v4; // rdi\n  unsigned int v5; // r15d\n  __int64 v6; // rax\n\n  v4 = *(_QWORD *)(a1 + 3976);\n  if ( v4 )\n  {\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 520LL))(v4);\n    *(_QWORD *)(a1 + 3976) = 0;\n  }\n  if ( a2 > 0 )\n  {\n    v5 = 3;\n    if ( (unsigned int)a2 < 3 )\n      v5 = a2;\n    v6 = GJMGLayer::create(v5, a3);\n    *(_QWORD *)(a1 + 3976) = v6;\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 72LL))(v6, v5);\n    a3 = (*(double (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 3896) + 464LL))(\n           *(_QWORD *)(a1 + 3896),\n           *(_QWORD *)(a1 + 3976),\n           4294967257LL);\n  }\n  return GJBaseGameLayer::updateLevelColors(a1, a3);\n}", "assembly": "; \n; GJBaseGameLayer::asyncMGLoaded from 0x1000f0e60 to 0x1000f0eec (140 bytes)\n; \n; 1 xrefs:\n; > GameManager::finishedLoadingMGAsync @ 0x10036cb35\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:21:11 +0000\n; \npush    rbp                                                            ; +0x0, 0x1000f0e60\nmov     rbp, rsp                                                       ; +0x1, 0x1000f0e61\npush    r15                                                            ; +0x4, 0x1000f0e64\npush    r14                                                            ; +0x6, 0x1000f0e66\npush    rbx                                                            ; +0x8, 0x1000f0e68\npush    rax                                                            ; +0x9, 0x1000f0e69\nmov     r14d, esi                                                      ; +0xa, 0x1000f0e6a\nmov     rbx, rdi                                                       ; +0xd, 0x1000f0e6d\nmov     rdi, [rdi+0F88h]                                               ; +0x10, 0x1000f0e70\ntest    rdi, rdi                                                       ; +0x17, 0x1000f0e77\njz      short loc_1000F0E90                                            ; +0x1a, 0x1000f0e7a\nmov     rax, [rdi]                                                     ; +0x1c, 0x1000f0e7c\ncall    qword ptr [rax+208h]                                           ; +0x1f, 0x1000f0e7f\nmov     qword ptr [rbx+0F88h], 0                                       ; +0x25, 0x1000f0e85\ntest    r14d, r14d                                                     ; +0x30, 0x1000f0e90\njle     short loc_1000F0EDA                                            ; +0x33, 0x1000f0e93\ncmp     r14d, 3                                                        ; +0x35, 0x1000f0e95\nmov     r15d, 3                                                        ; +0x39, 0x1000f0e99\ncmovb   r15d, r14d                                                     ; +0x3f, 0x1000f0e9f\nmov     edi, r15d                                                      ; +0x43, 0x1000f0ea3\ncall    GJMGLayer__create                                              ; +0x46, 0x1000f0ea6\nmov     [rbx+0F88h], rax                                               ; +0x4b, 0x1000f0eab\nmov     rcx, [rax]                                                     ; +0x52, 0x1000f0eb2\nmov     rdi, rax                                                       ; +0x55, 0x1000f0eb5\nmov     esi, r15d                                                      ; +0x58, 0x1000f0eb8\ncall    qword ptr [rcx+48h]                                            ; +0x5b, 0x1000f0ebb\nmov     rdi, [rbx+0F38h]                                               ; +0x5e, 0x1000f0ebe\nmov     rsi, [rbx+0F88h]                                               ; +0x65, 0x1000f0ec5\nmov     rax, [rdi]                                                     ; +0x6c, 0x1000f0ecc\nmov     edx, 0FFFFFFD9h                                                ; +0x6f, 0x1000f0ecf\ncall    qword ptr [rax+1D0h]                                           ; +0x74, 0x1000f0ed4\nmov     rdi, rbx                                                       ; +0x7a, 0x1000f0eda\nadd     rsp, 8                                                         ; +0x7d, 0x1000f0edd\npop     rbx                                                            ; +0x81, 0x1000f0ee1\npop     r14                                                            ; +0x82, 0x1000f0ee2\npop     r15                                                            ; +0x84, 0x1000f0ee4\npop     rbp                                                            ; +0x86, 0x1000f0ee6\njmp     GJBaseGameLayer__updateLevelColors                             ; +0x87, 0x1000f0ee7", "xrefs": ["GameManager::finishedLoadingMGAsync @ 0x10036cb35"], "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"}