{"type": "func", "start": 4298713264, "end": 4298713513, "name": "GauntletLayer::scene", "pseudocode": "// \n// GauntletLayer::scene from 0x1003928b0 to 0x1003929a9 (249 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::onBack @ 0x1002c2317\n// > GauntletSelectLayer::onPlay @ 0x100572a52\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\ncocos2d::CCScene *__fastcall GauntletLayer::scene(GauntletType a1)\n{\n  cocos2d::CCScene *v1; // rbx\n  char *v2; // r14\n\n  v1 = cocos2d::CCScene::create();\n  AppDelegate::get()->m_runningScene = v1;\n  v2 = (char *)operator new(0x1E0u);\n  cocos2d::CCLayer::CCLayer(v2);\n  *(_QWORD *)v2 = off_10091FC78;\n  *((_QWORD *)v2 + 40) = off_100920108;\n  *((_QWORD *)v2 + 41) = &off_100920178;\n  *((_QWORD *)v2 + 42) = off_100920190;\n  *((_QWORD *)v2 + 43) = off_1009201B0;\n  *((_QWORD *)v2 + 44) = off_1009201D0;\n  *((_QWORD *)v2 + 51) = off_1009201F8;\n  *((_OWORD *)v2 + 26) = 0;\n  *(_OWORD *)(v2 + 440) = 0;\n  *(_OWORD *)(v2 + 456) = 0;\n  *((_QWORD *)v2 + 59) = 0;\n  if ( GauntletLayer::init((GauntletLayer *)v2, a1) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);\n    v2 = nullptr;\n  }\n  ((void (__fastcall *)(cocos2d::CCScene *, char *))v1->addChild)(v1, v2);\n  return v1;\n}", "assembly": "; \n; GauntletLayer::scene from 0x1003928b0 to 0x1003929a9 (249 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::onBack @ 0x1002c2317\n; > GauntletSelectLayer::onPlay @ 0x100572a52\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, 0x1003928b0\nmov     rbp, rsp                                                       ; +0x1, 0x1003928b1\npush    r15                                                            ; +0x4, 0x1003928b4\npush    r14                                                            ; +0x6, 0x1003928b6\npush    rbx                                                            ; +0x8, 0x1003928b8\npush    rax                                                            ; +0x9, 0x1003928b9\nmov     r15d, edi                                                      ; +0xa, 0x1003928ba\ncall    cocos2d__CCScene__create                                       ; +0xd, 0x1003928bd\nmov     rbx, rax                                                       ; +0x12, 0x1003928c2\ncall    AppDelegate__get                                               ; +0x15, 0x1003928c5\nmov     [rax+48h], rbx                                                 ; +0x1a, 0x1003928ca\nmov     edi, 1E0h; __sz                                                ; +0x1e, 0x1003928ce\ncall    __Znwm; operator new(ulong)                                    ; +0x23, 0x1003928d3\nmov     r14, rax                                                       ; +0x28, 0x1003928d8\nmov     rdi, rax                                                       ; +0x2b, 0x1003928db\ncall    cocos2d__CCLayer__CCLayer                                      ; +0x2e, 0x1003928de\nlea     rax, off_10091FC78                                             ; +0x33, 0x1003928e3\nmov     [r14], rax                                                     ; +0x3a, 0x1003928ea\nlea     rax, off_100920108                                             ; +0x3d, 0x1003928ed\nmov     [r14+140h], rax                                                ; +0x44, 0x1003928f4\nlea     rax, off_100920178                                             ; +0x4b, 0x1003928fb\nmov     [r14+148h], rax                                                ; +0x52, 0x100392902\nlea     rax, off_100920190                                             ; +0x59, 0x100392909\nmov     [r14+150h], rax                                                ; +0x60, 0x100392910\nlea     rax, off_1009201B0                                             ; +0x67, 0x100392917\nmov     [r14+158h], rax                                                ; +0x6e, 0x10039291e\nlea     rax, off_1009201D0                                             ; +0x75, 0x100392925\nmov     [r14+160h], rax                                                ; +0x7c, 0x10039292c\nlea     rax, off_1009201F8                                             ; +0x83, 0x100392933\nmov     [r14+198h], rax                                                ; +0x8a, 0x10039293a\nxorps   xmm0, xmm0                                                     ; +0x91, 0x100392941\nmovups  xmmword ptr [r14+1A0h], xmm0                                   ; +0x94, 0x100392944\nmovups  xmmword ptr [r14+1B8h], xmm0                                   ; +0x9c, 0x10039294c\nmovups  xmmword ptr [r14+1C8h], xmm0                                   ; +0xa4, 0x100392954\nmov     qword ptr [r14+1D8h], 0                                        ; +0xac, 0x10039295c\nmov     rdi, r14                                                       ; +0xb7, 0x100392967\nmov     esi, r15d                                                      ; +0xba, 0x10039296a\ncall    GauntletLayer__init                                            ; +0xbd, 0x10039296d\ntest    al, al                                                         ; +0xc2, 0x100392972\njz      short loc_100392980                                            ; +0xc4, 0x100392974\nmov     rdi, r14                                                       ; +0xc6, 0x100392976\ncall    cocos2d__CCObject__autorelease                                 ; +0xc9, 0x100392979\njmp     short loc_10039298C                                            ; +0xce, 0x10039297e\nmov     rax, [r14]                                                     ; +0xd0, 0x100392980\nmov     rdi, r14                                                       ; +0xd3, 0x100392983\ncall    qword ptr [rax+10h]                                            ; +0xd6, 0x100392986\nxor     r14d, r14d                                                     ; +0xd9, 0x100392989\nmov     rax, [rbx]                                                     ; +0xdc, 0x10039298c\nmov     rdi, rbx                                                       ; +0xdf, 0x10039298f\nmov     rsi, r14                                                       ; +0xe2, 0x100392992\ncall    qword ptr [rax+1B8h]                                           ; +0xe5, 0x100392995\nmov     rax, rbx                                                       ; +0xeb, 0x10039299b\nadd     rsp, 8                                                         ; +0xee, 0x10039299e\npop     rbx                                                            ; +0xf2, 0x1003929a2\npop     r14                                                            ; +0xf3, 0x1003929a3\npop     r15                                                            ; +0xf5, 0x1003929a5\npop     rbp                                                            ; +0xf7, 0x1003929a7\nretn                                                                   ; +0xf8, 0x1003929a8", "xrefs": ["LevelInfoLayer::onBack @ 0x1002c2317", "GauntletSelectLayer::onPlay @ 0x100572a52"], "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"}