{"type": "func", "start": 4412012, "end": 4412196, "name": "GJMGLayer::create", "pseudocode": "// \n// GJMGLayer::create from 0x43526c to 0x435324 (184 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::createMiddleground @ 0x46d242\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 *GJMGLayer::create(int a1)\n{\n  GJMGLayer *v2; // r4\n  GJMGLayer_vtbl *v3; // r3\n  int *v4; // r0\n\n  v2 = (GJMGLayer *)operator new(0x170u);\n  cocos2d::CCLayer::CCLayer(v2);\n  v2->m_showGround1 = 1;\n  v2->m_showGround2 = 1;\n  v2->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJMGLayer_vtbl *)&off_A63CD0;\n  v2->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A63F14;\n  v2->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A63F4C;\n  v2->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A63F58;\n  v2->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A63F68;\n  v2->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A63F78;\n  v2->m_textureWidth = 0.0;\n  v2->m_ground1Sprite = nullptr;\n  v2->m_ground2Sprite = nullptr;\n  v2->m_unk1b0 = nullptr;\n  v2->m_showGround = 0;\n  v2->m_groundWidth = 0.0;\n  v2->m_unk1c4 = 0.0;\n  v2->m_cameraRotated = 0;\n  v2->m_blendMG1 = 0;\n  v2->m_blendMG2 = 0;\n  v2->m_mg1BatchNode = nullptr;\n  v2->m_mg2BatchNode = nullptr;\n  v2->m_groundScale = 0.0;\n  v2->m_ground2Offset = 0.0;\n  if ( GJMGLayer::init(v2, a1) )\n  {\n    cocos2d::CCObject::autorelease(v2);\n  }\n  else\n  {\n    v3 = v2->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v4 = (int *)v2;\n    v2 = nullptr;\n    v3->~GJMGLayer_0((GJMGLayer *)v4);\n  }\n  return v2;\n}", "assembly": "; \n; GJMGLayer::create from 0x43526c to 0x435324 (184 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::createMiddleground @ 0x46d242\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            {R3-R5,LR}                                             ; +0x0, 0x43526c\nMOV             R5, R0                                                 ; +0x2, 0x43526e\nMOV.W           R0, #0x170; unsigned int                               ; +0x4, 0x435270\nBL              _Znwj; operator new(uint)                              ; +0x8, 0x435274\nMOV             R4, R0                                                 ; +0xc, 0x435278\nBL              _ZN7cocos2d7CCLayerC2Ev; cocos2d::CCLayer::CCLayer(void) ; +0xe, 0x43527a\nLDR             R3, =(_ZTV9GJMGLayer_ptr - 0x43528C)                   ; +0x12, 0x43527e\nMOVS            R1, #1                                                 ; +0x14, 0x435280\nMOV             R0, R4; this                                           ; +0x16, 0x435282\nSTRB.W          R1, [R4,#0x154]                                        ; +0x18, 0x435284\nADD             R3, PC; _ZTV9GJMGLayer_ptr                             ; +0x1c, 0x435288\nLDR             R3, [R3]; `vtable for'GJMGLayer ...                    ; +0x1e, 0x43528a\nSTRB.W          R1, [R4,#0x155]                                        ; +0x20, 0x43528c\nADD.W           R2, R3, #8                                             ; +0x24, 0x435290\nMOV             R1, R5; int                                            ; +0x28, 0x435294\nSTR             R2, [R4]                                               ; +0x2a, 0x435296\nADD.W           R2, R3, #0x24C                                         ; +0x2c, 0x435298\nSTR.W           R2, [R4,#0x108]                                        ; +0x30, 0x43529c\nADD.W           R2, R3, #0x284                                         ; +0x34, 0x4352a0\nSTR.W           R2, [R4,#0x10C]                                        ; +0x38, 0x4352a4\nADD.W           R2, R3, #0x290                                         ; +0x3c, 0x4352a8\nSTR.W           R2, [R4,#0x110]                                        ; +0x40, 0x4352ac\nADD.W           R2, R3, #0x2A0                                         ; +0x44, 0x4352b0\nADD.W           R3, R3, #0x2B0                                         ; +0x48, 0x4352b4\nSTR.W           R2, [R4,#0x114]                                        ; +0x4c, 0x4352b8\nSTR.W           R3, [R4,#0x118]                                        ; +0x50, 0x4352bc\nMOVS            R2, #0                                                 ; +0x54, 0x4352c0\nMOVS            R3, #0                                                 ; +0x56, 0x4352c2\nSTR.W           R2, [R4,#0x144]                                        ; +0x58, 0x4352c4\nSTR.W           R3, [R4,#0x13C]                                        ; +0x5c, 0x4352c8\nSTR.W           R3, [R4,#0x140]                                        ; +0x60, 0x4352cc\nSTR.W           R3, [R4,#0x148]                                        ; +0x64, 0x4352d0\nSTRB.W          R3, [R4,#0x14C]                                        ; +0x68, 0x4352d4\nSTR.W           R2, [R4,#0x150]                                        ; +0x6c, 0x4352d8\nSTR.W           R2, [R4,#0x158]                                        ; +0x70, 0x4352dc\nSTRB.W          R3, [R4,#0x15C]                                        ; +0x74, 0x4352e0\nSTRB.W          R3, [R4,#0x15D]                                        ; +0x78, 0x4352e4\nSTRB.W          R3, [R4,#0x15E]                                        ; +0x7c, 0x4352e8\nSTR.W           R3, [R4,#0x160]                                        ; +0x80, 0x4352ec\nSTR.W           R3, [R4,#0x164]                                        ; +0x84, 0x4352f0\nSTR.W           R2, [R4,#0x168]                                        ; +0x88, 0x4352f4\nSTR.W           R2, [R4,#0x16C]                                        ; +0x8c, 0x4352f8\nBL              _ZN9GJMGLayer4initEi; GJMGLayer::init(int)             ; +0x90, 0x4352fc\nMOV             R5, R0                                                 ; +0x94, 0x435300\nCBZ             R0, loc_435316                                         ; +0x96, 0x435302\nMOV             R0, R4; this                                           ; +0x98, 0x435304\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x9a, 0x435306\nB               loc_435320                                             ; +0x9e, 0x43530a\nMOV             R0, R4; p                                              ; +0xa0, 0x43530c\nBL              _ZdlPv; operator delete(void *)                        ; +0xa2, 0x43530e\nBL              __cxa_end_cleanup                                      ; +0xa6, 0x435312\nLDR             R3, [R4]                                               ; +0xaa, 0x435316\nMOV             R0, R4                                                 ; +0xac, 0x435318\nMOV             R4, R5                                                 ; +0xae, 0x43531a\nLDR             R3, [R3,#8]                                            ; +0xb0, 0x43531c\nBLX             R3                                                     ; +0xb2, 0x43531e\nMOV             R0, R4                                                 ; +0xb4, 0x435320\nPOP             {R3-R5,PC}                                             ; +0xb6, 0x435322", "xrefs": ["GJBaseGameLayer::createMiddleground @ 0x46d242"], "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"}