{"type": "func", "start": 4295149568, "end": 4295149756, "name": "GJMGLayer::create", "pseudocode": "// \n// GJMGLayer::create from 0x10002c800 to 0x10002c8bc (188 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::createMiddleground @ 0x1001de2f8\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\nGJMGLayer *__fastcall GJMGLayer::create(int a1)\n{\n  char *v2; // x19\n\n  v2 = (char *)operator new(0x1E8u);\n  cocos2d::CCLayer::CCLayer();\n  *(_QWORD *)v2 = &off_1007653C0;\n  *((_QWORD *)v2 + 40) = off_100765848;\n  *((_QWORD *)v2 + 41) = &off_1007658B8;\n  *((_QWORD *)v2 + 42) = off_1007658D0;\n  *((_QWORD *)v2 + 43) = &off_1007658F0;\n  *((_QWORD *)v2 + 44) = off_100765910;\n  *((_QWORD *)v2 + 54) = 0;\n  v2[440] = 0;\n  *((_DWORD *)v2 + 111) = 0;\n  *((_QWORD *)v2 + 51) = 0;\n  *((_QWORD *)v2 + 52) = 0;\n  *((_DWORD *)v2 + 106) = 0;\n  *((_WORD *)v2 + 224) = 257;\n  *((_DWORD *)v2 + 113) = 0;\n  *(_DWORD *)(v2 + 455) = 0;\n  *((_QWORD *)v2 + 59) = 0;\n  *((_QWORD *)v2 + 60) = 0;\n  *((_QWORD *)v2 + 58) = 0;\n  if ( GJMGLayer::init((GJMGLayer *)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 (GJMGLayer *)v2;\n}", "assembly": "; \n; GJMGLayer::create from 0x10002c800 to 0x10002c8bc (188 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::createMiddleground @ 0x1001de2f8\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, 0x10002c800\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10002c804\nADD             X29, SP, #0x10                                         ; +0x8, 0x10002c808\nMOV             X20, X0                                                ; +0xc, 0x10002c80c\nMOV             W0, #0x1E8; __sz                                       ; +0x10, 0x10002c810\nBL              __Znwm; operator new(ulong)                            ; +0x14, 0x10002c814\nMOV             X19, X0                                                ; +0x18, 0x10002c818\nBL              cocos2d__CCLayer__CCLayer                              ; +0x1c, 0x10002c81c\nADRL            X8, off_1007653C0                                      ; +0x20, 0x10002c820\nSTR             X8, [X19]                                              ; +0x28, 0x10002c828\nADD             X9, X8, #(off_100765848 - 0x1007653C0)                 ; +0x2c, 0x10002c82c\nADD             X10, X8, #(off_1007658B8 - 0x1007653C0)                ; +0x30, 0x10002c830\nSTP             X9, X10, [X19,#0x140]                                  ; +0x34, 0x10002c834\nADD             X9, X8, #(off_1007658D0 - 0x1007653C0)                 ; +0x38, 0x10002c838\nADD             X10, X8, #(off_1007658F0 - 0x1007653C0)                ; +0x3c, 0x10002c83c\nSTP             X9, X10, [X19,#0x150]                                  ; +0x40, 0x10002c840\nADD             X8, X8, #(off_100765910 - 0x1007653C0)                 ; +0x44, 0x10002c844\nSTR             X8, [X19,#0x160]                                       ; +0x48, 0x10002c848\nSTR             XZR, [X19,#0x1B0]                                      ; +0x4c, 0x10002c84c\nSTRB            WZR, [X19,#0x1B8]                                      ; +0x50, 0x10002c850\nSTR             WZR, [X19,#0x1BC]                                      ; +0x54, 0x10002c854\nSTP             XZR, XZR, [X19,#0x198]                                 ; +0x58, 0x10002c858\nSTR             WZR, [X19,#0x1A8]                                      ; +0x5c, 0x10002c85c\nMOV             W8, #0x101                                             ; +0x60, 0x10002c860\nSTRH            W8, [X19,#0x1C0]                                       ; +0x64, 0x10002c864\nADD             X8, X19, #0x1C4                                        ; +0x68, 0x10002c868\nSTR             WZR, [X19,#0x1C4]                                      ; +0x6c, 0x10002c86c\nSTUR            WZR, [X8,#3]                                           ; +0x70, 0x10002c870\nSTP             XZR, XZR, [X19,#0x1D8]                                 ; +0x74, 0x10002c874\nSTR             XZR, [X19,#0x1D0]                                      ; +0x78, 0x10002c878\nMOV             X0, X19                                                ; +0x7c, 0x10002c87c\nMOV             X1, X20                                                ; +0x80, 0x10002c880\nBL              GJMGLayer__init                                        ; +0x84, 0x10002c884\nCBZ             W0, loc_10002C898                                      ; +0x88, 0x10002c888\nMOV             X0, X19                                                ; +0x8c, 0x10002c88c\nBL              cocos2d__CCObject__autorelease                         ; +0x90, 0x10002c890\nB               loc_10002C8AC                                          ; +0x94, 0x10002c894\nLDR             X8, [X19]                                              ; +0x98, 0x10002c898\nLDR             X8, [X8,#0x10]                                         ; +0x9c, 0x10002c89c\nMOV             X0, X19                                                ; +0xa0, 0x10002c8a0\nBLR             X8                                                     ; +0xa4, 0x10002c8a4\nMOV             X19, #0                                                ; +0xa8, 0x10002c8a8\nMOV             X0, X19                                                ; +0xac, 0x10002c8ac\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xb0, 0x10002c8b0\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xb4, 0x10002c8b4\nRET                                                                    ; +0xb8, 0x10002c8b8", "xrefs": ["GJBaseGameLayer::createMiddleground @ 0x1001de2f8"], "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"}