{"type": "func", "start": 4295151356, "end": 4295151492, "name": "GJMGLayer::updateGroundOpacity", "pseudocode": "// \n// GJMGLayer::updateGroundOpacity from 0x10002cefc to 0x10002cf84 (136 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::updateLevelColors @ 0x1001de040\n// > GJBaseGameLayer::updateLevelColors @ 0x1001de064\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\n// local variable allocation has failed, the output may be wrong!\nvoid __fastcall GJMGLayer::updateGroundOpacity(GJMGLayer *a1, unsigned __int8 a2, bool a3)\n{\n  __int64 v3; // x8\n  __int64 v4; // x0\n  __int64 v5; // x19\n  __int64 v6; // x20\n  __int64 v7; // x21\n  __int64 v8; // x0\n\n  v3 = 416;\n  if ( a3 )\n    v3 = 408;\n  v4 = *(__int64 *)((char *)&a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v3);\n  if ( v4 )\n  {\n    v5 = a2;\n    v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 472LL))(v4);\n    if ( (unsigned int)sub_10024A36C(v6) )\n    {\n      v7 = 0;\n      do\n      {\n        v8 = sub_10024A388(v6, v7);\n        (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 896LL))(v8, v5);\n        v7 = (unsigned int)(v7 + 1);\n      }\n      while ( (unsigned int)v7 < (unsigned int)sub_10024A36C(v6) );\n    }\n  }\n}", "assembly": "; \n; GJMGLayer::updateGroundOpacity from 0x10002cefc to 0x10002cf84 (136 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::updateLevelColors @ 0x1001de040\n; > GJBaseGameLayer::updateLevelColors @ 0x1001de064\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\nCMP             W2, #0                                                 ; +0x0, 0x10002cefc\nMOV             W8, #0x1A0                                             ; +0x4, 0x10002cf00\nMOV             W9, #0x198                                             ; +0x8, 0x10002cf04\nCSEL            X8, X9, X8, NE                                         ; +0xc, 0x10002cf08\nLDR             X0, [X0,X8]                                            ; +0x10, 0x10002cf0c\nCBZ             X0, locret_10002CF80                                   ; +0x14, 0x10002cf10\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x18, 0x10002cf14\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x1c, 0x10002cf18\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x20, 0x10002cf1c\nADD             X29, SP, #0x20                                         ; +0x24, 0x10002cf20\nMOV             X19, X1                                                ; +0x28, 0x10002cf24\nLDR             X8, [X0]                                               ; +0x2c, 0x10002cf28\nLDR             X8, [X8,#0x1D8]                                        ; +0x30, 0x10002cf2c\nBLR             X8                                                     ; +0x34, 0x10002cf30\nMOV             X20, X0                                                ; +0x38, 0x10002cf34\nBL              sub_10024A36C                                          ; +0x3c, 0x10002cf38\nCBZ             W0, loc_10002CF74                                      ; +0x40, 0x10002cf3c\nMOV             W21, #0                                                ; +0x44, 0x10002cf40\nMOV             X0, X20                                                ; +0x48, 0x10002cf44\nMOV             X1, X21                                                ; +0x4c, 0x10002cf48\nBL              sub_10024A388                                          ; +0x50, 0x10002cf4c\nLDR             X8, [X0]                                               ; +0x54, 0x10002cf50\nLDR             X8, [X8,#0x380]                                        ; +0x58, 0x10002cf54\nMOV             X1, X19                                                ; +0x5c, 0x10002cf58\nBLR             X8                                                     ; +0x60, 0x10002cf5c\nADD             W21, W21, #1                                           ; +0x64, 0x10002cf60\nMOV             X0, X20                                                ; +0x68, 0x10002cf64\nBL              sub_10024A36C                                          ; +0x6c, 0x10002cf68\nCMP             W21, W0                                                ; +0x70, 0x10002cf6c\nB.CC            loc_10002CF44                                          ; +0x74, 0x10002cf70\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x78, 0x10002cf74\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x7c, 0x10002cf78\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x80, 0x10002cf7c\nRET                                                                    ; +0x84, 0x10002cf80", "xrefs": ["GJBaseGameLayer::updateLevelColors @ 0x1001de040", "GJBaseGameLayer::updateLevelColors @ 0x1001de064"], "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"}