{"type": "func", "start": 4412200, "end": 4412268, "name": "GJMGLayer::updateGroundOpacity", "pseudocode": "// \n// GJMGLayer::updateGroundOpacity from 0x435328 to 0x43536c (68 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::updateLevelColors @ 0x46db6a\n// > GJBaseGameLayer::updateLevelColors @ 0x46db96\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::updateGroundOpacity(GJMGLayer *a1, unsigned __int8 a2, bool a3)\n{\n  int v3; // r6\n  cocos2d::CCSprite *m_ground1Sprite; // r3\n  unsigned int v5; // r4\n  cocos2d::CCArray *v6; // r5\n  int v7; // r0\n\n  v3 = a2;\n  m_ground1Sprite = a1->m_ground1Sprite;\n  if ( !a3 )\n    m_ground1Sprite = a1->m_ground2Sprite;\n  if ( m_ground1Sprite )\n  {\n    v5 = 0;\n    v6 = (cocos2d::CCArray *)((int (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSprite *))m_ground1Sprite->getChildren)(\n                               m_ground1Sprite,\n                               a1->m_ground2Sprite);\n    while ( v5 < cocos2d::CCArray::count(v6) )\n    {\n      v7 = cocos2d::CCArray::objectAtIndex(v6, v5++);\n      (*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 448))(v7, v3);\n    }\n  }\n}", "assembly": "; \n; GJMGLayer::updateGroundOpacity from 0x435328 to 0x43536c (68 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::updateLevelColors @ 0x46db6a\n; > GJBaseGameLayer::updateLevelColors @ 0x46db96\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, 0x435328\nMOV             R6, R1                                                 ; +0x2, 0x43532a\nLDR.W           R3, [R0,#0x13C]                                        ; +0x4, 0x43532c\nLDR.W           R1, [R0,#0x140]                                        ; +0x8, 0x435330\nCMP             R2, #0                                                 ; +0xc, 0x435334\nIT EQ                                                                  ; +0xe, 0x435336\nMOVEQ           R3, R1                                                 ; +0x10, 0x435338\nCBZ             R3, locret_43536A                                      ; +0x12, 0x43533a\nLDR             R2, [R3]                                               ; +0x14, 0x43533c\nMOV             R0, R3                                                 ; +0x16, 0x43533e\nMOVS            R4, #0                                                 ; +0x18, 0x435340\nLDR.W           R2, [R2,#0xEC]                                         ; +0x1a, 0x435342\nBLX             R2                                                     ; +0x1e, 0x435346\nMOV             R5, R0                                                 ; +0x20, 0x435348\nMOV             R0, R5; this                                           ; +0x22, 0x43534a\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x24, 0x43534c\nCMP             R4, R0                                                 ; +0x28, 0x435350\nBCS             locret_43536A                                          ; +0x2a, 0x435352\nMOV             R1, R4; unsigned int                                   ; +0x2c, 0x435354\nMOV             R0, R5; this                                           ; +0x2e, 0x435356\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x30, 0x435358\nMOV             R1, R6                                                 ; +0x34, 0x43535c\nADDS            R4, #1                                                 ; +0x36, 0x43535e\nLDR             R3, [R0]                                               ; +0x38, 0x435360\nLDR.W           R3, [R3,#0x1C0]                                        ; +0x3a, 0x435362\nBLX             R3                                                     ; +0x3e, 0x435366\nB               loc_43534A                                             ; +0x40, 0x435368\nPOP             {R4-R6,PC}                                             ; +0x42, 0x43536a", "xrefs": ["GJBaseGameLayer::updateLevelColors @ 0x46db6a", "GJBaseGameLayer::updateLevelColors @ 0x46db96"], "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"}