{"type": "func", "start": 4300673168, "end": 4300673419, "name": "GauntletSelectLayer::dGauntletSelectLayer", "pseudocode": "// \n// GauntletSelectLayer::dGauntletSelectLayer from 0x100571090 to 0x10057118b (251 bytes)\n// \n// 4 xrefs:\n// > sub_1005711A0 @ 0x1005711a5\n// > sub_1005711B0 @ 0x1005711bc\n// > sub_1005711D0 @ 0x1005711d9\n// > sub_1005711F0 @ 0x100571203\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 GauntletSelectLayer::dGauntletSelectLayer(__int64 a1)\n{\n  cocos2d::CCObject *v2; // rdi\n\n  *(_QWORD *)a1 = off_1009649F0;\n  *(_QWORD *)(a1 + 320) = off_100964E98;\n  *(_QWORD *)(a1 + 328) = &off_100964F08;\n  *(_QWORD *)(a1 + 336) = off_100964F20;\n  *(_QWORD *)(a1 + 344) = off_100964F40;\n  *(_QWORD *)(a1 + 352) = off_100964F60;\n  *(_QWORD *)(a1 + 408) = off_100964F88;\n  *(_QWORD *)(a1 + 416) = off_100964FB8;\n  *(_QWORD *)(a1 + 424) = off_100964FF0;\n  if ( GameLevelManager::sharedState()->m_levelManagerDelegate == (LevelManagerDelegate *)(a1 + 416) )\n    GameLevelManager::sharedState()->m_levelManagerDelegate = nullptr;\n  if ( GameManager::sharedState()->m_rewardedVideoDelegate == (RewardedVideoDelegate *)(a1 + 424) )\n    GameManager::sharedState()->m_rewardedVideoDelegate = nullptr;\n  GameManager::sharedState()->m_unk664 = 0;\n  v2 = *(cocos2d::CCObject **)(a1 + 496);\n  if ( v2 )\n    cocos2d::CCObject::release(v2);\n  return cocos2d::CCLayer::dCCLayer((_QWORD *)a1);\n}", "assembly": "; \n; GauntletSelectLayer::dGauntletSelectLayer from 0x100571090 to 0x10057118b (251 bytes)\n; \n; 4 xrefs:\n; > sub_1005711A0 @ 0x1005711a5\n; > sub_1005711B0 @ 0x1005711bc\n; > sub_1005711D0 @ 0x1005711d9\n; > sub_1005711F0 @ 0x100571203\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, 0x100571090\nmov     rbp, rsp                                                       ; +0x1, 0x100571091\npush    rbx                                                            ; +0x4, 0x100571094\npush    rax                                                            ; +0x5, 0x100571095\nmov     rbx, rdi                                                       ; +0x6, 0x100571096\nlea     rax, off_1009649F0                                             ; +0x9, 0x100571099\nmov     [rdi], rax                                                     ; +0x10, 0x1005710a0\nlea     rax, off_100964E98                                             ; +0x13, 0x1005710a3\nmov     [rdi+140h], rax                                                ; +0x1a, 0x1005710aa\nlea     rax, off_100964F08                                             ; +0x21, 0x1005710b1\nmov     [rdi+148h], rax                                                ; +0x28, 0x1005710b8\nlea     rax, off_100964F20                                             ; +0x2f, 0x1005710bf\nmov     [rdi+150h], rax                                                ; +0x36, 0x1005710c6\nlea     rax, off_100964F40                                             ; +0x3d, 0x1005710cd\nmov     [rdi+158h], rax                                                ; +0x44, 0x1005710d4\nlea     rax, off_100964F60                                             ; +0x4b, 0x1005710db\nmov     [rdi+160h], rax                                                ; +0x52, 0x1005710e2\nlea     rax, off_100964F88                                             ; +0x59, 0x1005710e9\nmov     [rdi+198h], rax                                                ; +0x60, 0x1005710f0\nlea     rax, off_100964FB8                                             ; +0x67, 0x1005710f7\nmov     [rdi+1A0h], rax                                                ; +0x6e, 0x1005710fe\nlea     rax, off_100964FF0                                             ; +0x75, 0x100571105\nmov     [rdi+1A8h], rax                                                ; +0x7c, 0x10057110c\ncall    GameLevelManager__sharedState                                  ; +0x83, 0x100571113\nlea     rcx, [rbx+1A0h]                                                ; +0x88, 0x100571118\ncmp     [rax+2D0h], rcx                                                ; +0x8f, 0x10057111f\njnz     short loc_100571138                                            ; +0x96, 0x100571126\ncall    GameLevelManager__sharedState                                  ; +0x98, 0x100571128\nmov     qword ptr [rax+2D0h], 0                                        ; +0x9d, 0x10057112d\ncall    GameManager__sharedState                                       ; +0xa8, 0x100571138\nlea     rcx, [rbx+1A8h]                                                ; +0xad, 0x10057113d\ncmp     [rax+4A8h], rcx                                                ; +0xb4, 0x100571144\njnz     short loc_10057115D                                            ; +0xbb, 0x10057114b\ncall    GameManager__sharedState                                       ; +0xbd, 0x10057114d\nmov     qword ptr [rax+4A8h], 0                                        ; +0xc2, 0x100571152\ncall    GameManager__sharedState                                       ; +0xcd, 0x10057115d\nmov     dword ptr [rax+634h], 0                                        ; +0xd2, 0x100571162\nmov     rdi, [rbx+1F0h]                                                ; +0xdc, 0x10057116c\ntest    rdi, rdi                                                       ; +0xe3, 0x100571173\njz      short loc_10057117D                                            ; +0xe6, 0x100571176\ncall    cocos2d__CCObject__release                                     ; +0xe8, 0x100571178\nmov     rdi, rbx                                                       ; +0xed, 0x10057117d\nadd     rsp, 8                                                         ; +0xf0, 0x100571180\npop     rbx                                                            ; +0xf4, 0x100571184\npop     rbp                                                            ; +0xf5, 0x100571185\njmp     cocos2d__CCLayer__dCCLayer                                     ; +0xf6, 0x100571186", "xrefs": ["sub_1005711A0 @ 0x1005711a5", "sub_1005711B0 @ 0x1005711bc", "sub_1005711D0 @ 0x1005711d9", "sub_1005711F0 @ 0x100571203"], "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"}