{"type": "func", "start": 4297602624, "end": 4297602760, "name": "CreatorLayer::onGauntlets", "pseudocode": "// \n// CreatorLayer::onGauntlets from 0x100283640 to 0x1002836c8 (136 bytes)\n// \n// 1 xrefs:\n// > CreatorLayer::init @ 0x100282597\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:27:44 +0000\n// \n\nvoid __fastcall CreatorLayer::onGauntlets(__int64 a1, __int64 a2, double a3)\n{\n  __int64 v3; // rax\n  __int64 v4; // rax\n  __int64 v5; // rdi\n  __int64 v6; // rbx\n  __int64 v7; // rax\n  char *v8; // rsi\n  __int64 v9; // rdx\n  __int64 v10; // rax\n\n  v3 = GameLevelManager::sharedState(a3);\n  if ( (unsigned __int8)GameLevelManager::hasNewGauntlets(v3) )\n    *(_BYTE *)(GameLevelManager::sharedState(a3) + 1448) = 1;\n  v4 = GameLevelManager::sharedState(a3);\n  GameLevelManager::markGauntletsSeen(v4);\n  v5 = *(_QWORD *)(a1 + 472);\n  if ( v5 )\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 576LL))(v5);\n  v6 = cocos2d::CCDirector::sharedDirector(v5, a2);\n  v7 = GauntletSelectLayer::scene(0);\n  v8 = cocos2d::CCTransitionFade::create_1(v7, 0.5);\n  cocos2d::CCDirector::pushScene(v6, v8);\n  GameManager::sharedState(v6, v8, v9);\n  *(_DWORD *)(v10 + 708) = 1;\n}", "assembly": "; \n; CreatorLayer::onGauntlets from 0x100283640 to 0x1002836c8 (136 bytes)\n; \n; 1 xrefs:\n; > CreatorLayer::init @ 0x100282597\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:27:44 +0000\n; \npush    rbp                                                            ; +0x0, 0x100283640\nmov     rbp, rsp                                                       ; +0x1, 0x100283641\npush    rbx                                                            ; +0x4, 0x100283644\npush    rax                                                            ; +0x5, 0x100283645\nmov     rbx, rdi                                                       ; +0x6, 0x100283646\ncall    GameLevelManager__sharedState                                  ; +0x9, 0x100283649\nmov     rdi, rax                                                       ; +0xe, 0x10028364e\ncall    GameLevelManager__hasNewGauntlets                              ; +0x11, 0x100283651\ntest    al, al                                                         ; +0x16, 0x100283656\njz      short loc_100283666                                            ; +0x18, 0x100283658\ncall    GameLevelManager__sharedState                                  ; +0x1a, 0x10028365a\nmov     byte ptr [rax+5A8h], 1                                         ; +0x1f, 0x10028365f\ncall    GameLevelManager__sharedState                                  ; +0x26, 0x100283666\nmov     rdi, rax                                                       ; +0x2b, 0x10028366b\ncall    GameLevelManager__markGauntletsSeen                            ; +0x2e, 0x10028366e\nmov     rdi, [rbx+1D8h]                                                ; +0x33, 0x100283673\ntest    rdi, rdi                                                       ; +0x3a, 0x10028367a\njz      short loc_100283688                                            ; +0x3d, 0x10028367d\nmov     rax, [rdi]                                                     ; +0x3f, 0x10028367f\ncall    qword ptr [rax+240h]                                           ; +0x42, 0x100283682\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x48, 0x100283688\nmov     rbx, rax                                                       ; +0x4d, 0x10028368d\nxor     edi, edi                                                       ; +0x50, 0x100283690\ncall    GauntletSelectLayer__scene                                     ; +0x52, 0x100283692\nmovss   xmm0, cs:dword_100A03578                                       ; +0x57, 0x100283697\nmov     rdi, rax                                                       ; +0x5f, 0x10028369f\ncall    cocos2d__CCTransitionFade__create_1                            ; +0x62, 0x1002836a2\nmov     rdi, rbx                                                       ; +0x67, 0x1002836a7\nmov     rsi, rax                                                       ; +0x6a, 0x1002836aa\ncall    cocos2d__CCDirector__pushScene                                 ; +0x6d, 0x1002836ad\ncall    GameManager__sharedState                                       ; +0x72, 0x1002836b2\nmov     dword ptr [rax+2C4h], 1                                        ; +0x77, 0x1002836b7\nadd     rsp, 8                                                         ; +0x81, 0x1002836c1\npop     rbx                                                            ; +0x85, 0x1002836c5\npop     rbp                                                            ; +0x86, 0x1002836c6\nretn                                                                   ; +0x87, 0x1002836c7", "xrefs": ["CreatorLayer::init @ 0x100282597"], "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"}