{"type": "func", "start": 4411324, "end": 4411396, "name": "GJMGLayer::updateGroundColor", "pseudocode": "// \n// GJMGLayer::updateGroundColor from 0x434fbc to 0x435004 (72 bytes)\n// \n// 6 xrefs:\n// > LevelEditorLayer::updateEditorMode @ 0x369110\n// > LevelEditorLayer::updateEditorMode @ 0x36912a\n// > GJMGLayer::init @ 0x435146\n// > GJMGLayer::init @ 0x43522a\n// > GJBaseGameLayer::updateLevelColors @ 0x46db10\n// > GJBaseGameLayer::updateLevelColors @ 0x46db3e\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 GJMGLayer::updateGroundColor(GJMGLayer *a1, cocos2d::ccColor3B a2, bool a3)\n{\n  cocos2d::CCSprite *m_ground1Sprite; // r3\n  unsigned int v4; // r4\n  cocos2d::CCArray *v5; // r5\n  int v6; // r0\n  int v7; // [sp+4h] [bp-4h] BYREF\n\n  v7 = *(_DWORD *)&a2.r;\n  m_ground1Sprite = a1->m_ground1Sprite;\n  if ( !a3 )\n    m_ground1Sprite = a1->m_ground2Sprite;\n  if ( m_ground1Sprite )\n  {\n    v4 = 0;\n    v5 = (cocos2d::CCArray *)((int (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSprite *))m_ground1Sprite->getChildren)(\n                               m_ground1Sprite,\n                               a1->m_ground2Sprite);\n    while ( v4 < cocos2d::CCArray::count(v5) )\n    {\n      v6 = cocos2d::CCArray::objectAtIndex(v5, v4++);\n      (*(void (__fastcall **)(int, int *))(*(_DWORD *)v6 + 472))(v6, &v7);\n    }\n  }\n}", "assembly": "; \n; GJMGLayer::updateGroundColor from 0x434fbc to 0x435004 (72 bytes)\n; \n; 6 xrefs:\n; > LevelEditorLayer::updateEditorMode @ 0x369110\n; > LevelEditorLayer::updateEditorMode @ 0x36912a\n; > GJMGLayer::init @ 0x435146\n; > GJMGLayer::init @ 0x43522a\n; > GJBaseGameLayer::updateLevelColors @ 0x46db10\n; > GJBaseGameLayer::updateLevelColors @ 0x46db3e\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            {R0,R1,R4-R6,LR}                                       ; +0x0, 0x434fbc\nSTR             R1, [SP,#8+var_4]                                      ; +0x2, 0x434fbe\nLDR.W           R3, [R0,#0x13C]                                        ; +0x4, 0x434fc0\nLDR.W           R1, [R0,#0x140]                                        ; +0x8, 0x434fc4\nCMP             R2, #0                                                 ; +0xc, 0x434fc8\nIT EQ                                                                  ; +0xe, 0x434fca\nMOVEQ           R3, R1                                                 ; +0x10, 0x434fcc\nCBZ             R3, loc_435000                                         ; +0x12, 0x434fce\nLDR             R2, [R3]                                               ; +0x14, 0x434fd0\nMOV             R0, R3                                                 ; +0x16, 0x434fd2\nADD             R6, SP, #8+var_4                                       ; +0x18, 0x434fd4\nMOVS            R4, #0                                                 ; +0x1a, 0x434fd6\nLDR.W           R2, [R2,#0xEC]                                         ; +0x1c, 0x434fd8\nBLX             R2                                                     ; +0x20, 0x434fdc\nMOV             R5, R0                                                 ; +0x22, 0x434fde\nMOV             R0, R5; this                                           ; +0x24, 0x434fe0\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x26, 0x434fe2\nCMP             R4, R0                                                 ; +0x2a, 0x434fe6\nBCS             loc_435000                                             ; +0x2c, 0x434fe8\nMOV             R1, R4; unsigned int                                   ; +0x2e, 0x434fea\nMOV             R0, R5; this                                           ; +0x30, 0x434fec\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x32, 0x434fee\nMOV             R1, R6                                                 ; +0x36, 0x434ff2\nADDS            R4, #1                                                 ; +0x38, 0x434ff4\nLDR             R3, [R0]                                               ; +0x3a, 0x434ff6\nLDR.W           R3, [R3,#0x1D8]                                        ; +0x3c, 0x434ff8\nBLX             R3                                                     ; +0x40, 0x434ffc\nB               loc_434FE0                                             ; +0x42, 0x434ffe\nADD             SP, SP, #8                                             ; +0x44, 0x435000\nPOP             {R4-R6,PC}                                             ; +0x46, 0x435002", "xrefs": ["LevelEditorLayer::updateEditorMode @ 0x369110", "LevelEditorLayer::updateEditorMode @ 0x36912a", "GJMGLayer::init @ 0x435146", "GJMGLayer::init @ 0x43522a", "GJBaseGameLayer::updateLevelColors @ 0x46db10", "GJBaseGameLayer::updateLevelColors @ 0x46db3e"], "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"}