{"type": "func", "start": 8311340, "end": 8311476, "name": "GJMGLayer::updateGroundOpacity", "pseudocode": "// \n// GJMGLayer::updateGroundOpacity from 0x7ed22c to 0x7ed2b4 (136 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::updateLevelColors @ 0x857fa4\n// > GJBaseGameLayer::updateLevelColors @ 0x857fc8\n// > <???> @ 0xa5150\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  unsigned int v3; // w21\n  cocos2d::CCSprite *m_ground1Sprite; // x1\n  cocos2d::CCSprite *m_ground2Sprite; // x0\n  unsigned int v6; // w19\n  cocos2d::CCArray *v7; // x20\n  __int64 v8; // x0\n  bool v9; // cf\n  unsigned int v10; // w1\n\n  v3 = a2;\n  m_ground1Sprite = a1->m_ground1Sprite;\n  m_ground2Sprite = a1->m_ground2Sprite;\n  if ( !a3 )\n    m_ground1Sprite = m_ground2Sprite;\n  if ( m_ground1Sprite )\n  {\n    v6 = 0;\n    v7 = m_ground1Sprite->getChildren(m_ground1Sprite);\n    while ( 1 )\n    {\n      v9 = v6 >= (unsigned int)cocos2d::CCArray::count(v7);\n      v10 = v6++;\n      if ( v9 )\n        break;\n      v8 = cocos2d::CCArray::objectAtIndex(v7, v10);\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v8 + 896LL))(v8, v3);\n    }\n  }\n}", "assembly": "; \n; GJMGLayer::updateGroundOpacity from 0x7ed22c to 0x7ed2b4 (136 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::updateLevelColors @ 0x857fa4\n; > GJBaseGameLayer::updateLevelColors @ 0x857fc8\n; > <???> @ 0xa5150\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x7ed22c\nUXTB            W2, W2                                                 ; +0x4, 0x7ed230\nMOV             X29, SP                                                ; +0x8, 0x7ed234\nSTR             X21, [SP,#0x30+var_10]                                 ; +0xc, 0x7ed238\nUXTB            W21, W1                                                ; +0x10, 0x7ed23c\nLDR             X1, [X0,#0x198]                                        ; +0x14, 0x7ed240\nCMP             W2, WZR                                                ; +0x18, 0x7ed244\nLDR             X0, [X0,#0x1A0]                                        ; +0x1c, 0x7ed248\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x20, 0x7ed24c\nCSEL            X1, X1, X0, NE                                         ; +0x24, 0x7ed250\nCBZ             X1, loc_7ED2A4                                         ; +0x28, 0x7ed254\nLDR             X2, [X1]                                               ; +0x2c, 0x7ed258\nMOV             X0, X1                                                 ; +0x30, 0x7ed25c\nMOV             W19, #0                                                ; +0x34, 0x7ed260\nLDR             X1, [X2,#0x1D8]                                        ; +0x38, 0x7ed264\nBLR             X1                                                     ; +0x3c, 0x7ed268\nMOV             X20, X0                                                ; +0x40, 0x7ed26c\nB               loc_7ED288                                             ; +0x44, 0x7ed270\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x48, 0x7ed274\nLDR             X2, [X0]                                               ; +0x4c, 0x7ed278\nMOV             W1, W21                                                ; +0x50, 0x7ed27c\nLDR             X2, [X2,#0x380]                                        ; +0x54, 0x7ed280\nBLR             X2                                                     ; +0x58, 0x7ed284\nMOV             X0, X20; this                                          ; +0x5c, 0x7ed288\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x60, 0x7ed28c\nCMP             W19, W0                                                ; +0x64, 0x7ed290\nMOV             W1, W19; unsigned int                                  ; +0x68, 0x7ed294\nMOV             X0, X20; this                                          ; +0x6c, 0x7ed298\nADD             W19, W19, #1                                           ; +0x70, 0x7ed29c\nB.CC            loc_7ED274                                             ; +0x74, 0x7ed2a0\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x78, 0x7ed2a4\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x7c, 0x7ed2a8\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x80, 0x7ed2ac\nRET                                                                    ; +0x84, 0x7ed2b0", "xrefs": ["GJBaseGameLayer::updateLevelColors @ 0x857fa4", "GJBaseGameLayer::updateLevelColors @ 0x857fc8", "<???> @ 0xa5150"], "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"}