{"type": "func", "start": 7693892, "end": 7694012, "name": "AnimatedGameObject::updateChildSpriteColor", "pseudocode": "// \n// AnimatedGameObject::updateChildSpriteColor from 0x756644 to 0x7566bc (120 bytes)\n// \n// 5 xrefs:\n// > PlayLayer::updateVisibility @ 0x5ce650\n// > LevelEditorLayer::updateObjectColors @ 0x65fa1c\n// > LevelEditorLayer::updateVisibility @ 0x6633b0\n// > LevelEditorLayer::updateVisibility @ 0x6633c0\n// > <???> @ 0xb0bc8\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 AnimatedGameObject::updateChildSpriteColor(AnimatedGameObject *a1, cocos2d::ccColor3B a2)\n{\n  cocos2d::CCSprite *m_childSprite; // x0\n  unsigned int v3; // w19\n  cocos2d::CCArray *v4; // x20\n  __int64 v5; // x0\n  bool v6; // cf\n  unsigned int v7; // w1\n  __int64 v8; // [xsp+38h] [xbp+38h] BYREF\n\n  v8 = *(_QWORD *)&a2.r;\n  m_childSprite = a1->m_childSprite;\n  if ( m_childSprite )\n  {\n    v3 = 0;\n    v4 = m_childSprite->getChildren(m_childSprite);\n    while ( 1 )\n    {\n      v6 = v3 >= (unsigned int)cocos2d::CCArray::count(v4);\n      v7 = v3++;\n      if ( v6 )\n        break;\n      v5 = cocos2d::CCArray::objectAtIndex(v4, v7);\n      (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v5 + 944LL))(v5, &v8);\n    }\n  }\n}", "assembly": "; \n; AnimatedGameObject::updateChildSpriteColor from 0x756644 to 0x7566bc (120 bytes)\n; \n; 5 xrefs:\n; > PlayLayer::updateVisibility @ 0x5ce650\n; > LevelEditorLayer::updateObjectColors @ 0x65fa1c\n; > LevelEditorLayer::updateVisibility @ 0x6633b0\n; > LevelEditorLayer::updateVisibility @ 0x6633c0\n; > <???> @ 0xb0bc8\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_40]!                                ; +0x0, 0x756644\nMOV             X29, SP                                                ; +0x4, 0x756648\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x75664c\nSTR             X21, [SP,#0x40+var_20]                                 ; +0xc, 0x756650\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x10, 0x756654\nLDR             X0, [X0,#0x5B0]                                        ; +0x14, 0x756658\nCBZ             X0, loc_7566AC                                         ; +0x18, 0x75665c\nLDR             X1, [X0]                                               ; +0x1c, 0x756660\nMOV             W19, #0                                                ; +0x20, 0x756664\nADD             X21, X29, #0x40+var_8                                  ; +0x24, 0x756668\nLDR             X1, [X1,#0x1D8]                                        ; +0x28, 0x75666c\nBLR             X1                                                     ; +0x2c, 0x756670\nMOV             X20, X0                                                ; +0x30, 0x756674\nB               loc_756690                                             ; +0x34, 0x756678\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x38, 0x75667c\nLDR             X2, [X0]                                               ; +0x3c, 0x756680\nMOV             X1, X21                                                ; +0x40, 0x756684\nLDR             X2, [X2,#0x3B0]                                        ; +0x44, 0x756688\nBLR             X2                                                     ; +0x48, 0x75668c\nMOV             X0, X20; this                                          ; +0x4c, 0x756690\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x50, 0x756694\nCMP             W19, W0                                                ; +0x54, 0x756698\nMOV             W1, W19; unsigned int                                  ; +0x58, 0x75669c\nMOV             X0, X20; this                                          ; +0x5c, 0x7566a0\nADD             W19, W19, #1                                           ; +0x60, 0x7566a4\nB.CC            loc_75667C                                             ; +0x64, 0x7566a8\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x68, 0x7566ac\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x6c, 0x7566b0\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x70, 0x7566b4\nRET                                                                    ; +0x74, 0x7566b8", "xrefs": ["PlayLayer::updateVisibility @ 0x5ce650", "LevelEditorLayer::updateObjectColors @ 0x65fa1c", "LevelEditorLayer::updateVisibility @ 0x6633b0", "LevelEditorLayer::updateVisibility @ 0x6633c0", "<???> @ 0xb0bc8"], "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"}