{"type": "func", "start": 5144016, "end": 5144076, "name": "AnimatedGameObject::updateChildSpriteColor", "pseudocode": "// \n// AnimatedGameObject::updateChildSpriteColor from 0x4e7dd0 to 0x4e7e0c (60 bytes)\n// \n// 4 xrefs:\n// > PlayLayer::updateVisibility @ 0x407054\n// > LevelEditorLayer::updateObjectColors @ 0x461836\n// > LevelEditorLayer::updateVisibility @ 0x462efe\n// > LevelEditorLayer::updateVisibility @ 0x463346\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:51:06 +0000\n// \n\nunsigned int __fastcall AnimatedGameObject::updateChildSpriteColor(int a1, int a2)\n{\n  unsigned int result; // r0\n  unsigned int v3; // r4\n  cocos2d::CCArray *v4; // r5\n  int v5; // r0\n  int v6; // [sp+4h] [bp-4h] BYREF\n\n  v6 = a2;\n  result = *(_DWORD *)(a1 + 1280);\n  if ( result )\n  {\n    v3 = 0;\n    v4 = (cocos2d::CCArray *)(*(int (__fastcall **)(unsigned int))(*(_DWORD *)result + 244))(result);\n    while ( 1 )\n    {\n      result = cocos2d::CCArray::count(v4);\n      if ( v3 >= result )\n        break;\n      v5 = cocos2d::CCArray::objectAtIndex(v4, v3++);\n      (*(void (__fastcall **)(int, int *))(*(_DWORD *)v5 + 480))(v5, &v6);\n    }\n  }\n  return result;\n}", "assembly": "; \n; AnimatedGameObject::updateChildSpriteColor from 0x4e7dd0 to 0x4e7e0c (60 bytes)\n; \n; 4 xrefs:\n; > PlayLayer::updateVisibility @ 0x407054\n; > LevelEditorLayer::updateObjectColors @ 0x461836\n; > LevelEditorLayer::updateVisibility @ 0x462efe\n; > LevelEditorLayer::updateVisibility @ 0x463346\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:51:06 +0000\n; \nPUSH            {R0,R1,R4-R6,LR}                                       ; +0x0, 0x4e7dd0\nSTR             R1, [SP,#8+var_4]                                      ; +0x2, 0x4e7dd2\nLDR.W           R0, [R0,#0x500]                                        ; +0x4, 0x4e7dd4\nCBZ             R0, loc_4E7E08                                         ; +0x8, 0x4e7dd8\nLDR             R3, [R0]                                               ; +0xa, 0x4e7dda\nADD             R6, SP, #8+var_4                                       ; +0xc, 0x4e7ddc\nMOVS            R4, #0                                                 ; +0xe, 0x4e7dde\nLDR.W           R3, [R3,#0xF4]                                         ; +0x10, 0x4e7de0\nBLX             R3                                                     ; +0x14, 0x4e7de4\nMOV             R5, R0                                                 ; +0x16, 0x4e7de6\nMOV             R0, R5; this                                           ; +0x18, 0x4e7de8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1a, 0x4e7dea\nCMP             R4, R0                                                 ; +0x1e, 0x4e7dee\nBCS             loc_4E7E08                                             ; +0x20, 0x4e7df0\nMOV             R1, R4; unsigned int                                   ; +0x22, 0x4e7df2\nMOV             R0, R5; this                                           ; +0x24, 0x4e7df4\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x26, 0x4e7df6\nMOV             R1, R6                                                 ; +0x2a, 0x4e7dfa\nADDS            R4, #1                                                 ; +0x2c, 0x4e7dfc\nLDR             R3, [R0]                                               ; +0x2e, 0x4e7dfe\nLDR.W           R3, [R3,#0x1E0]                                        ; +0x30, 0x4e7e00\nBLX             R3                                                     ; +0x34, 0x4e7e04\nB               loc_4E7DE8                                             ; +0x36, 0x4e7e06\nADD             SP, SP, #8                                             ; +0x38, 0x4e7e08\nPOP             {R4-R6,PC}                                             ; +0x3a, 0x4e7e0a", "xrefs": ["PlayLayer::updateVisibility @ 0x407054", "LevelEditorLayer::updateObjectColors @ 0x461836", "LevelEditorLayer::updateVisibility @ 0x462efe", "LevelEditorLayer::updateVisibility @ 0x463346"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}