{"type": "func", "start": 4297269884, "end": 4297270052, "name": "GauntletLayer::create", "pseudocode": "// \n// GauntletLayer::create from 0x10023227c to 0x100232324 (168 bytes)\n// \n// 1 xrefs:\n// > GauntletLayer::scene @ 0x100232254\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\nGauntletLayer *__fastcall GauntletLayer::create(GauntletType a1)\n{\n  char *v2; // x19\n\n  v2 = (char *)operator new(0x1E0u);\n  cocos2d::CCLayer::CCLayer((__int64)v2);\n  *(_QWORD *)v2 = off_1007C6970;\n  *((_QWORD *)v2 + 40) = off_1007C6E00;\n  *((_QWORD *)v2 + 41) = &off_1007C6E70;\n  *((_QWORD *)v2 + 42) = off_1007C6E88;\n  *((_QWORD *)v2 + 43) = &off_1007C6EA8;\n  *((_QWORD *)v2 + 44) = off_1007C6EC8;\n  *((_QWORD *)v2 + 52) = 0;\n  *((_QWORD *)v2 + 53) = 0;\n  *((_QWORD *)v2 + 51) = off_1007C6EF0;\n  *((_QWORD *)v2 + 59) = 0;\n  *(_OWORD *)(v2 + 440) = 0u;\n  *(_OWORD *)(v2 + 456) = 0u;\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    return nullptr;\n  }\n  return (GauntletLayer *)v2;\n}", "assembly": "; \n; GauntletLayer::create from 0x10023227c to 0x100232324 (168 bytes)\n; \n; 1 xrefs:\n; > GauntletLayer::scene @ 0x100232254\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10023227c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100232280\nADD             X29, SP, #0x10                                         ; +0x8, 0x100232284\nMOV             X20, X0                                                ; +0xc, 0x100232288\nMOV             W0, #0x1E0; __sz                                       ; +0x10, 0x10023228c\nBL              __Znwm; operator new(ulong)                            ; +0x14, 0x100232290\nMOV             X19, X0                                                ; +0x18, 0x100232294\nBL              cocos2d__CCLayer__CCLayer                              ; +0x1c, 0x100232298\nADRL            X8, off_1007C6970                                      ; +0x20, 0x10023229c\nSTR             X8, [X19]                                              ; +0x28, 0x1002322a4\nADD             X9, X8, #(off_1007C6E00 - 0x1007C6970)                 ; +0x2c, 0x1002322a8\nADD             X10, X8, #(off_1007C6E70 - 0x1007C6970)                ; +0x30, 0x1002322ac\nSTP             X9, X10, [X19,#0x140]                                  ; +0x34, 0x1002322b0\nADD             X9, X8, #(off_1007C6E88 - 0x1007C6970)                 ; +0x38, 0x1002322b4\nADD             X10, X8, #(off_1007C6EA8 - 0x1007C6970)                ; +0x3c, 0x1002322b8\nSTP             X9, X10, [X19,#0x150]                                  ; +0x40, 0x1002322bc\nADD             X9, X8, #(off_1007C6EC8 - 0x1007C6970)                 ; +0x44, 0x1002322c0\nSTR             X9, [X19,#0x160]                                       ; +0x48, 0x1002322c4\nADD             X8, X8, #(off_1007C6EF0 - 0x1007C6970)                 ; +0x4c, 0x1002322c8\nADD             X9, X19, #0x1B8                                        ; +0x50, 0x1002322cc\nSTP             XZR, XZR, [X19,#0x1A0]                                 ; +0x54, 0x1002322d0\nSTR             X8, [X19,#0x198]                                       ; +0x58, 0x1002322d4\nSTR             XZR, [X19,#0x1D8]                                      ; +0x5c, 0x1002322d8\nMOVI            V0.16B, #0                                             ; +0x60, 0x1002322dc\nSTP             Q0, Q0, [X9]                                           ; +0x64, 0x1002322e0\nMOV             X0, X19                                                ; +0x68, 0x1002322e4\nMOV             X1, X20                                                ; +0x6c, 0x1002322e8\nBL              GauntletLayer__init                                    ; +0x70, 0x1002322ec\nCBZ             W0, loc_100232300                                      ; +0x74, 0x1002322f0\nMOV             X0, X19                                                ; +0x78, 0x1002322f4\nBL              cocos2d__CCObject__autorelease                         ; +0x7c, 0x1002322f8\nB               loc_100232314                                          ; +0x80, 0x1002322fc\nLDR             X8, [X19]                                              ; +0x84, 0x100232300\nLDR             X8, [X8,#0x10]                                         ; +0x88, 0x100232304\nMOV             X0, X19                                                ; +0x8c, 0x100232308\nBLR             X8                                                     ; +0x90, 0x10023230c\nMOV             X19, #0                                                ; +0x94, 0x100232310\nMOV             X0, X19                                                ; +0x98, 0x100232314\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x9c, 0x100232318\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xa0, 0x10023231c\nRET                                                                    ; +0xa4, 0x100232320", "xrefs": ["GauntletLayer::scene @ 0x100232254"], "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"}