{"type": "func", "start": 3043388, "end": 3043510, "name": "CCPartAnimSprite::setColor", "pseudocode": "// \n// CCPartAnimSprite::setColor from 0x2e703c to 0x2e70b6 (122 bytes)\n// \n// 3 xrefs:\n// > CCAnimatedSprite::switchToMode @ 0x2e4282\n// > CCAnimatedSprite::setColor @ 0x2e45b8\n// > GJRobotSprite::updateColors @ 0x4b7f88\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 CCPartAnimSprite::setColor(CCPartAnimSprite *a1, cocos2d::ccColor3B a2)\n{\n  cocos2d::CCObject **arr; // r5\n  cocos2d::CCObject **v4; // r7\n  cocos2d::CCObject **v5; // r4\n  int v6; // r0\n  int v7; // t1\n  int v8; // [sp+4h] [bp-8h] BYREF\n\n  v8 = *(_DWORD *)&a2.r;\n  cocos2d::CCSprite::setColor(a1, (const cocos2d::ccColor3B *)&v8);\n  if ( a1->getChildren(a1) && a1->getChildren(a1)->data->num )\n  {\n    arr = a1->getChildren(a1)->data->arr;\n    v4 = a1->getChildren(a1)->data->arr;\n    v5 = &v4[a1->getChildren(a1)->data->num] + 0x3FFFFFFF;\n    while ( arr <= v5 )\n    {\n      v7 = (int)*arr++;\n      v6 = v7;\n      if ( !v7 )\n        break;\n      (*(void (__fastcall **)(int, int *))(*(_DWORD *)v6 + 472))(v6, &v8);\n    }\n  }\n}", "assembly": "; \n; CCPartAnimSprite::setColor from 0x2e703c to 0x2e70b6 (122 bytes)\n; \n; 3 xrefs:\n; > CCAnimatedSprite::switchToMode @ 0x2e4282\n; > CCAnimatedSprite::setColor @ 0x2e45b8\n; > GJRobotSprite::updateColors @ 0x4b7f88\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            {R0-R2,R4-R7,LR}                                       ; +0x0, 0x2e703c\nADD             R6, SP, #0xC+var_4                                     ; +0x2, 0x2e703e\nMOV             R4, R0                                                 ; +0x4, 0x2e7040\nSTR.W           R1, [R6,#-4]!                                          ; +0x6, 0x2e7042\nMOV             R1, R6                                                 ; +0xa, 0x2e7046\nBL              _ZN7cocos2d8CCSprite8setColorERKNS_10_ccColor3BE; cocos2d::CCSprite::setColor(cocos2d::_ccColor3B const&) ; +0xc, 0x2e7048\nLDR             R3, [R4]                                               ; +0x10, 0x2e704c\nMOV             R0, R4                                                 ; +0x12, 0x2e704e\nLDR.W           R3, [R3,#0xEC]                                         ; +0x14, 0x2e7050\nBLX             R3                                                     ; +0x18, 0x2e7054\nCBZ             R0, loc_2E70B2                                         ; +0x1a, 0x2e7056\nLDR             R3, [R4]                                               ; +0x1c, 0x2e7058\nMOV             R0, R4                                                 ; +0x1e, 0x2e705a\nLDR.W           R3, [R3,#0xEC]                                         ; +0x20, 0x2e705c\nBLX             R3                                                     ; +0x24, 0x2e7060\nLDR             R3, [R0,#0x34]                                         ; +0x26, 0x2e7062\nLDR             R3, [R3]                                               ; +0x28, 0x2e7064\nCBZ             R3, loc_2E70B2                                         ; +0x2a, 0x2e7066\nLDR             R3, [R4]                                               ; +0x2c, 0x2e7068\nMOV             R0, R4                                                 ; +0x2e, 0x2e706a\nLDR.W           R3, [R3,#0xEC]                                         ; +0x30, 0x2e706c\nBLX             R3                                                     ; +0x34, 0x2e7070\nLDR             R3, [R0,#0x34]                                         ; +0x36, 0x2e7072\nMOV             R0, R4                                                 ; +0x38, 0x2e7074\nLDR             R5, [R3,#0xC]                                          ; +0x3a, 0x2e7076\nLDR             R3, [R4]                                               ; +0x3c, 0x2e7078\nLDR.W           R3, [R3,#0xEC]                                         ; +0x3e, 0x2e707a\nBLX             R3                                                     ; +0x42, 0x2e707e\nLDR             R3, [R0,#0x34]                                         ; +0x44, 0x2e7080\nMOV             R0, R4                                                 ; +0x46, 0x2e7082\nLDR             R7, [R3,#0xC]                                          ; +0x48, 0x2e7084\nLDR             R3, [R4]                                               ; +0x4a, 0x2e7086\nLDR.W           R3, [R3,#0xEC]                                         ; +0x4c, 0x2e7088\nBLX             R3                                                     ; +0x50, 0x2e708c\nLDR             R3, [R0,#0x34]                                         ; +0x52, 0x2e708e\nLDR             R3, [R3]                                               ; +0x54, 0x2e7090\nADD.W           R3, R3, #0x40000000                                    ; +0x56, 0x2e7092\nSUBS            R3, #1                                                 ; +0x5a, 0x2e7096\nADD.W           R4, R7, R3,LSL#2                                       ; +0x5c, 0x2e7098\nCMP             R5, R4                                                 ; +0x60, 0x2e709c\nBHI             loc_2E70B2                                             ; +0x62, 0x2e709e\nLDR.W           R0, [R5],#4                                            ; +0x64, 0x2e70a0\nCBZ             R0, loc_2E70B2                                         ; +0x68, 0x2e70a4\nLDR             R3, [R0]                                               ; +0x6a, 0x2e70a6\nMOV             R1, R6                                                 ; +0x6c, 0x2e70a8\nLDR.W           R3, [R3,#0x1D8]                                        ; +0x6e, 0x2e70aa\nBLX             R3                                                     ; +0x72, 0x2e70ae\nB               loc_2E709C                                             ; +0x74, 0x2e70b0\nADD             SP, SP, #0xC                                           ; +0x76, 0x2e70b2\nPOP             {R4-R7,PC}                                             ; +0x78, 0x2e70b4", "xrefs": ["CCAnimatedSprite::switchToMode @ 0x2e4282", "CCAnimatedSprite::setColor @ 0x2e45b8", "GJRobotSprite::updateColors @ 0x4b7f88"], "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"}