{"type": "func", "start": 4298712256, "end": 4298712441, "name": "GauntletLayer::dGauntletLayer", "pseudocode": "// \n// GauntletLayer::dGauntletLayer from 0x1003924c0 to 0x100392579 (185 bytes)\n// \n// 0 xrefs:\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\n__int64 __fastcall GauntletLayer::dGauntletLayer(LevelManagerDelegate *a1)\n{\n  cocos2d::CCObject *v2; // rdi\n\n  a1->__vftable = (LevelManagerDelegate_vtbl *)off_10091FC78;\n  a1[40].__vftable = (LevelManagerDelegate_vtbl *)off_100920108;\n  a1[41].__vftable = (LevelManagerDelegate_vtbl *)&off_100920178;\n  a1[42].__vftable = (LevelManagerDelegate_vtbl *)off_100920190;\n  a1[43].__vftable = (LevelManagerDelegate_vtbl *)off_1009201B0;\n  a1[44].__vftable = (LevelManagerDelegate_vtbl *)off_1009201D0;\n  a1[51].__vftable = (LevelManagerDelegate_vtbl *)off_1009201F8;\n  if ( GameLevelManager::sharedState()->m_levelManagerDelegate != &a1[51] )\n  {\n    v2 = (cocos2d::CCObject *)a1[58].__vftable;\n    if ( !v2 )\n      return cocos2d::CCLayer::dCCLayer(a1);\n    goto LABEL_5;\n  }\n  GameLevelManager::sharedState()->m_levelManagerDelegate = nullptr;\n  v2 = (cocos2d::CCObject *)a1[58].__vftable;\n  if ( v2 )\nLABEL_5:\n    cocos2d::CCObject::release(v2);\n  return cocos2d::CCLayer::dCCLayer(a1);\n}", "assembly": "; \n; GauntletLayer::dGauntletLayer from 0x1003924c0 to 0x100392579 (185 bytes)\n; \n; 0 xrefs:\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, 0x1003924c0\nmov     rbp, rsp                                                       ; +0x1, 0x1003924c1\npush    rbx                                                            ; +0x4, 0x1003924c4\npush    rax                                                            ; +0x5, 0x1003924c5\nmov     rbx, rdi                                                       ; +0x6, 0x1003924c6\nlea     rax, off_10091FC78                                             ; +0x9, 0x1003924c9\nmov     [rdi], rax                                                     ; +0x10, 0x1003924d0\nlea     rax, off_100920108                                             ; +0x13, 0x1003924d3\nmov     [rdi+140h], rax                                                ; +0x1a, 0x1003924da\nlea     rax, off_100920178                                             ; +0x21, 0x1003924e1\nmov     [rdi+148h], rax                                                ; +0x28, 0x1003924e8\nlea     rax, off_100920190                                             ; +0x2f, 0x1003924ef\nmov     [rdi+150h], rax                                                ; +0x36, 0x1003924f6\nlea     rax, off_1009201B0                                             ; +0x3d, 0x1003924fd\nmov     [rdi+158h], rax                                                ; +0x44, 0x100392504\nlea     rax, off_1009201D0                                             ; +0x4b, 0x10039250b\nmov     [rdi+160h], rax                                                ; +0x52, 0x100392512\nlea     rax, off_1009201F8                                             ; +0x59, 0x100392519\nmov     [rdi+198h], rax                                                ; +0x60, 0x100392520\ncall    GameLevelManager__sharedState                                  ; +0x67, 0x100392527\nlea     rcx, [rbx+198h]                                                ; +0x6c, 0x10039252c\ncmp     [rax+2D0h], rcx                                                ; +0x73, 0x100392533\njz      short loc_10039254A                                            ; +0x7a, 0x10039253a\nmov     rdi, [rbx+1D0h]                                                ; +0x7c, 0x10039253c\ntest    rdi, rdi                                                       ; +0x83, 0x100392543\njnz     short loc_100392566                                            ; +0x86, 0x100392546\njmp     short loc_10039256B                                            ; +0x88, 0x100392548\ncall    GameLevelManager__sharedState                                  ; +0x8a, 0x10039254a\nmov     qword ptr [rax+2D0h], 0                                        ; +0x8f, 0x10039254f\nmov     rdi, [rbx+1D0h]                                                ; +0x9a, 0x10039255a\ntest    rdi, rdi                                                       ; +0xa1, 0x100392561\njz      short loc_10039256B                                            ; +0xa4, 0x100392564\ncall    cocos2d__CCObject__release                                     ; +0xa6, 0x100392566\nmov     rdi, rbx                                                       ; +0xab, 0x10039256b\nadd     rsp, 8                                                         ; +0xae, 0x10039256e\npop     rbx                                                            ; +0xb2, 0x100392572\npop     rbp                                                            ; +0xb3, 0x100392573\njmp     cocos2d__CCLayer__dCCLayer                                     ; +0xb4, 0x100392574", "xrefs": [], "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"}