{"type": "func", "start": 4295145864, "end": 4295145976, "name": "GJGroundLayer::create", "pseudocode": "// \n// GJGroundLayer::create from 0x10002b988 to 0x10002b9f8 (112 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::createGroundLayer @ 0x1001de188\n// > GJBaseGameLayer::createGroundLayer @ 0x1001de1c0\n// > MenuGameLayer::init @ 0x10039a6fc\n// > LevelSelectLayer::init @ 0x100401af0\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\nGJGroundLayer *__fastcall GJGroundLayer::create(int a1, int a2)\n{\n  GJGroundLayer *v4; // x19\n\n  v4 = (GJGroundLayer *)operator new(0x1D8u);\n  sub_10002D1A8();\n  if ( GJGroundLayer::init(v4, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease(v4);\n  }\n  else\n  {\n    ((void (__fastcall *)(GJGroundLayer *))v4->~GJGroundLayer_0)(v4);\n    return nullptr;\n  }\n  return v4;\n}", "assembly": "; \n; GJGroundLayer::create from 0x10002b988 to 0x10002b9f8 (112 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::createGroundLayer @ 0x1001de188\n; > GJBaseGameLayer::createGroundLayer @ 0x1001de1c0\n; > MenuGameLayer::init @ 0x10039a6fc\n; > LevelSelectLayer::init @ 0x100401af0\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x10002b988\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10002b98c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10002b990\nADD             X29, SP, #0x20                                         ; +0xc, 0x10002b994\nMOV             X20, X1                                                ; +0x10, 0x10002b998\nMOV             X21, X0                                                ; +0x14, 0x10002b99c\nMOV             W0, #0x1D8; __sz                                       ; +0x18, 0x10002b9a0\nBL              __Znwm; operator new(ulong)                            ; +0x1c, 0x10002b9a4\nMOV             X19, X0                                                ; +0x20, 0x10002b9a8\nBL              sub_10002D1A8                                          ; +0x24, 0x10002b9ac\nMOV             X0, X19                                                ; +0x28, 0x10002b9b0\nMOV             X1, X21                                                ; +0x2c, 0x10002b9b4\nMOV             X2, X20                                                ; +0x30, 0x10002b9b8\nBL              GJGroundLayer__init                                    ; +0x34, 0x10002b9bc\nCBZ             W0, loc_10002B9D0                                      ; +0x38, 0x10002b9c0\nMOV             X0, X19                                                ; +0x3c, 0x10002b9c4\nBL              cocos2d__CCObject__autorelease                         ; +0x40, 0x10002b9c8\nB               loc_10002B9E4                                          ; +0x44, 0x10002b9cc\nLDR             X8, [X19]                                              ; +0x48, 0x10002b9d0\nLDR             X8, [X8,#0x10]                                         ; +0x4c, 0x10002b9d4\nMOV             X0, X19                                                ; +0x50, 0x10002b9d8\nBLR             X8                                                     ; +0x54, 0x10002b9dc\nMOV             X19, #0                                                ; +0x58, 0x10002b9e0\nMOV             X0, X19                                                ; +0x5c, 0x10002b9e4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x60, 0x10002b9e8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x64, 0x10002b9ec\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x68, 0x10002b9f0\nRET                                                                    ; +0x6c, 0x10002b9f4", "xrefs": ["GJBaseGameLayer::createGroundLayer @ 0x1001de188", "GJBaseGameLayer::createGroundLayer @ 0x1001de1c0", "MenuGameLayer::init @ 0x10039a6fc", "LevelSelectLayer::init @ 0x100401af0"], "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"}