{"type": "func", "start": 4409680, "end": 4409852, "name": "GJGroundLayer::create", "pseudocode": "// \n// GJGroundLayer::create from 0x434950 to 0x4349fc (172 bytes)\n// \n// 4 xrefs:\n// > MenuGameLayer::init @ 0x3aa288\n// > LevelSelectLayer::init @ 0x409fe8\n// > GJBaseGameLayer::createGroundLayer @ 0x46d2b4\n// > GJBaseGameLayer::createGroundLayer @ 0x46d2da\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 *GJGroundLayer::create(int a1, int a2)\n{\n  GJGroundLayer *v4; // r4\n  GJGroundLayer_vtbl *v5; // r3\n  int *v6; // r0\n\n  v4 = (GJGroundLayer *)operator new(0x168u);\n  cocos2d::CCLayer::CCLayer(v4);\n  v4->m_showGround1 = 1;\n  v4->m_showGround2 = 1;\n  v4->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJGroundLayer_vtbl *)&off_A63740;\n  v4->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A6398C;\n  v4->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A639C4;\n  v4->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A639D0;\n  v4->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A639E0;\n  v4->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A639F0;\n  v4->m_textureWidth = 0.0;\n  v4->m_groundWidth = 0.0;\n  v4->m_unk1cc = 0.0;\n  v4->m_ground1Sprite = nullptr;\n  v4->m_ground2Sprite = nullptr;\n  v4->m_lineSprite = nullptr;\n  v4->m_showGround = 0;\n  v4->m_blendLine = 0;\n  v4->m_lineType = 0;\n  v4->m_cameraRotated = 0;\n  if ( GJGroundLayer::init(v4, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease(v4);\n  }\n  else\n  {\n    v5 = v4->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v6 = (int *)v4;\n    v4 = nullptr;\n    v5->~GJGroundLayer_0((GJGroundLayer *)v6);\n  }\n  return v4;\n}", "assembly": "; \n; GJGroundLayer::create from 0x434950 to 0x4349fc (172 bytes)\n; \n; 4 xrefs:\n; > MenuGameLayer::init @ 0x3aa288\n; > LevelSelectLayer::init @ 0x409fe8\n; > GJBaseGameLayer::createGroundLayer @ 0x46d2b4\n; > GJBaseGameLayer::createGroundLayer @ 0x46d2da\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            {R4-R6,LR}                                             ; +0x0, 0x434950\nMOV             R6, R0                                                 ; +0x2, 0x434952\nMOV.W           R0, #0x168; unsigned int                               ; +0x4, 0x434954\nMOV             R5, R1                                                 ; +0x8, 0x434958\nBL              _Znwj; operator new(uint)                              ; +0xa, 0x43495a\nMOV             R4, R0                                                 ; +0xe, 0x43495e\nBL              _ZN7cocos2d7CCLayerC2Ev; cocos2d::CCLayer::CCLayer(void) ; +0x10, 0x434960\nLDR             R3, =(_ZTV13GJGroundLayer_ptr - 0x434972)              ; +0x14, 0x434964\nMOVS            R1, #1                                                 ; +0x16, 0x434966\nMOV             R0, R4; this                                           ; +0x18, 0x434968\nSTRB.W          R1, [R4,#0x15C]                                        ; +0x1a, 0x43496a\nADD             R3, PC; _ZTV13GJGroundLayer_ptr                        ; +0x1e, 0x43496e\nLDR             R3, [R3]; `vtable for'GJGroundLayer ...                ; +0x20, 0x434970\nSTRB.W          R1, [R4,#0x15D]                                        ; +0x22, 0x434972\nADD.W           R2, R3, #8                                             ; +0x26, 0x434976\nMOV             R1, R6; int                                            ; +0x2a, 0x43497a\nSTR             R2, [R4]                                               ; +0x2c, 0x43497c\nADD.W           R2, R3, #0x254                                         ; +0x2e, 0x43497e\nSTR.W           R2, [R4,#0x108]                                        ; +0x32, 0x434982\nADD.W           R2, R3, #0x28C                                         ; +0x36, 0x434986\nSTR.W           R2, [R4,#0x10C]                                        ; +0x3a, 0x43498a\nADD.W           R2, R3, #0x298                                         ; +0x3e, 0x43498e\nSTR.W           R2, [R4,#0x110]                                        ; +0x42, 0x434992\nADD.W           R2, R3, #0x2A8                                         ; +0x46, 0x434996\nADD.W           R3, R3, #0x2B8                                         ; +0x4a, 0x43499a\nSTR.W           R2, [R4,#0x114]                                        ; +0x4e, 0x43499e\nSTR.W           R3, [R4,#0x118]                                        ; +0x52, 0x4349a2\nMOVS            R2, #0                                                 ; +0x56, 0x4349a6\nMOVS            R3, #0                                                 ; +0x58, 0x4349a8\nSTR.W           R2, [R4,#0x144]                                        ; +0x5a, 0x4349aa\nSTR.W           R2, [R4,#0x158]                                        ; +0x5e, 0x4349ae\nSTR.W           R2, [R4,#0x160]                                        ; +0x62, 0x4349b2\nMOV             R2, R5; int                                            ; +0x66, 0x4349b6\nSTR.W           R3, [R4,#0x13C]                                        ; +0x68, 0x4349b8\nSTR.W           R3, [R4,#0x140]                                        ; +0x6c, 0x4349bc\nSTR.W           R3, [R4,#0x148]                                        ; +0x70, 0x4349c0\nSTRB.W          R3, [R4,#0x14C]                                        ; +0x74, 0x4349c4\nSTRB.W          R3, [R4,#0x14D]                                        ; +0x78, 0x4349c8\nSTR.W           R3, [R4,#0x154]                                        ; +0x7c, 0x4349cc\nSTRB.W          R3, [R4,#0x164]                                        ; +0x80, 0x4349d0\nBL              _ZN13GJGroundLayer4initEii; GJGroundLayer::init(int,int) ; +0x84, 0x4349d4\nMOV             R5, R0                                                 ; +0x88, 0x4349d8\nCBZ             R0, loc_4349EE                                         ; +0x8a, 0x4349da\nMOV             R0, R4; this                                           ; +0x8c, 0x4349dc\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x8e, 0x4349de\nB               loc_4349F8                                             ; +0x92, 0x4349e2\nMOV             R0, R4; p                                              ; +0x94, 0x4349e4\nBL              _ZdlPv; operator delete(void *)                        ; +0x96, 0x4349e6\nBL              __cxa_end_cleanup                                      ; +0x9a, 0x4349ea\nLDR             R3, [R4]                                               ; +0x9e, 0x4349ee\nMOV             R0, R4                                                 ; +0xa0, 0x4349f0\nMOV             R4, R5                                                 ; +0xa2, 0x4349f2\nLDR             R3, [R3,#8]                                            ; +0xa4, 0x4349f4\nBLX             R3                                                     ; +0xa6, 0x4349f6\nMOV             R0, R4                                                 ; +0xa8, 0x4349f8\nPOP             {R4-R6,PC}                                             ; +0xaa, 0x4349fa", "xrefs": ["MenuGameLayer::init @ 0x3aa288", "LevelSelectLayer::init @ 0x409fe8", "GJBaseGameLayer::createGroundLayer @ 0x46d2b4", "GJBaseGameLayer::createGroundLayer @ 0x46d2da"], "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"}