{"type": "func", "start": 4641432, "end": 4641538, "name": "GJBaseGameLayer::createGroundLayer", "pseudocode": "// \n// GJBaseGameLayer::createGroundLayer from 0x46d298 to 0x46d302 (106 bytes)\n// \n// 5 xrefs:\n// > PlayLayer::setupHasCompleted @ 0x31bcb6\n// > LevelEditorLayer::init @ 0x376b08\n// > GJBaseGameLayer::asyncGLoaded @ 0x46dc38\n// > GJBaseGameLayer::syncBGTextures @ 0x476f3c\n// > LevelSettingsLayer::selectArtClosed @ 0x56fa0a\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\nvoid GJBaseGameLayer::createGroundLayer(GJBaseGameLayer *a1, int a2, int a3)\n{\n  GJGroundLayer *v6; // r0\n  GJGroundLayer_vtbl *v7; // r3\n  GJGroundLayer *v8; // r0\n\n  if ( a1->m_groundLayer )\n    GJBaseGameLayer::removeGroundLayer(a1);\n  if ( a2 >= 22 )\n    a2 = (int)&dword_14 + 2;\n  v6 = GJGroundLayer::create(a2, a3);\n  v7 = v6->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  a1->m_groundLayer = v6;\n  v7->setTag(v6, a2);\n  a1->m_objectParent->addChild_0(a1->m_objectParent, a1->m_groundLayer, 40);\n  v8 = GJGroundLayer::create(a2, a3);\n  a1->m_groundLayer2 = v8;\n  a1->m_objectParent->addChild_0(a1->m_objectParent, v8, 40);\n  ((void (__fastcall *)(GJGroundLayer *, int))a1->m_groundLayer2->setScaleY)(a1->m_groundLayer2, -1082130432);\n}", "assembly": "; \n; GJBaseGameLayer::createGroundLayer from 0x46d298 to 0x46d302 (106 bytes)\n; \n; 5 xrefs:\n; > PlayLayer::setupHasCompleted @ 0x31bcb6\n; > LevelEditorLayer::init @ 0x376b08\n; > GJBaseGameLayer::asyncGLoaded @ 0x46dc38\n; > GJBaseGameLayer::syncBGTextures @ 0x476f3c\n; > LevelSettingsLayer::selectArtClosed @ 0x56fa0a\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\nLDR.W           R3, [R0,#0xA04]                                        ; +0x0, 0x46d298\nPUSH            {R4-R6,LR}                                             ; +0x4, 0x46d29c\nMOV             R4, R0                                                 ; +0x6, 0x46d29e\nMOV             R5, R1                                                 ; +0x8, 0x46d2a0\nMOV             R6, R2                                                 ; +0xa, 0x46d2a2\nCBZ             R3, loc_46D2AA                                         ; +0xc, 0x46d2a4\nBL              _ZN15GJBaseGameLayer17removeGroundLayerEv; GJBaseGameLayer::removeGroundLayer(void) ; +0xe, 0x46d2a6\nCMP             R5, #0x16                                              ; +0x12, 0x46d2aa\nMOV             R1, R6; int                                            ; +0x14, 0x46d2ac\nIT GE                                                                  ; +0x16, 0x46d2ae\nMOVGE           R5, #(dword_14+2)                                      ; +0x18, 0x46d2b0\nMOV             R0, R5; this                                           ; +0x1a, 0x46d2b2\nBL              _ZN13GJGroundLayer6createEii; GJGroundLayer::create(int,int) ; +0x1c, 0x46d2b4\nMOV             R1, R5                                                 ; +0x20, 0x46d2b8\nLDR             R3, [R0]                                               ; +0x22, 0x46d2ba\nSTR.W           R0, [R4,#0xA04]                                        ; +0x24, 0x46d2bc\nLDR             R3, [R3,#0x24]                                         ; +0x28, 0x46d2c0\nBLX             R3                                                     ; +0x2a, 0x46d2c2\nLDR.W           R0, [R4,#0x9E4]                                        ; +0x2c, 0x46d2c4\nLDR.W           R1, [R4,#0xA04]                                        ; +0x30, 0x46d2c8\nMOVS            R2, #0x28 ; '('                                        ; +0x34, 0x46d2cc\nLDR             R3, [R0]                                               ; +0x36, 0x46d2ce\nLDR.W           R3, [R3,#0xE0]                                         ; +0x38, 0x46d2d0\nBLX             R3                                                     ; +0x3c, 0x46d2d4\nMOV             R1, R6; int                                            ; +0x3e, 0x46d2d6\nMOV             R0, R5; this                                           ; +0x40, 0x46d2d8\nBL              _ZN13GJGroundLayer6createEii; GJGroundLayer::create(int,int) ; +0x42, 0x46d2da\nMOVS            R2, #0x28 ; '('                                        ; +0x46, 0x46d2de\nSTR.W           R0, [R4,#0xA08]                                        ; +0x48, 0x46d2e0\nMOV             R1, R0                                                 ; +0x4c, 0x46d2e4\nLDR.W           R0, [R4,#0x9E4]                                        ; +0x4e, 0x46d2e6\nLDR             R3, [R0]                                               ; +0x52, 0x46d2ea\nLDR.W           R3, [R3,#0xE0]                                         ; +0x54, 0x46d2ec\nBLX             R3                                                     ; +0x58, 0x46d2f0\nLDR.W           R0, [R4,#0xA08]                                        ; +0x5a, 0x46d2f2\nLDR             R1, =0xBF800000                                        ; +0x5e, 0x46d2f6\nPOP.W           {R4-R6,LR}                                             ; +0x60, 0x46d2f8\nLDR             R3, [R0]                                               ; +0x64, 0x46d2fc\nLDR             R3, [R3,#0x48]                                         ; +0x66, 0x46d2fe\nBX              R3                                                     ; +0x68, 0x46d300", "xrefs": ["PlayLayer::setupHasCompleted @ 0x31bcb6", "LevelEditorLayer::init @ 0x376b08", "GJBaseGameLayer::asyncGLoaded @ 0x46dc38", "GJBaseGameLayer::syncBGTextures @ 0x476f3c", "LevelSettingsLayer::selectArtClosed @ 0x56fa0a"], "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"}