{"type": "func", "start": 6443042448, "end": 6443042659, "name": "cocos2d::CCSprite::updateColor", "pseudocode": "// \n// cocos2d::CCSprite::updateColor from 0x180090690 to 0x180090763 (211 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCSprite::setColor @ 0x18008f5d4\n// > cocos2d::CCSprite::setOpacity @ 0x18008f80c\n// > cocos2d::CCSprite::setOpacityModifyRGB @ 0x18008f845\n// > cocos2d::CCSprite::updateDisplayedColor @ 0x18009078a\n// > cocos2d::CCSprite::updateDisplayedOpacity @ 0x1800907aa\n// > <???> @ 0x18014cf68\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:22:07 +0000\n// \n\nvoid __fastcall cocos2d::CCSprite::updateColor(cocos2d::CCSprite *this)\n{\n  float v1; // xmm1_4\n  bool v2; // zf\n  struct cocos2d::_ccV3F_C4B_T2F_Quad *v3; // rdx\n  unsigned int v4; // r8d\n  int v5; // [rsp+8h] [rbp+8h]\n\n  LOWORD(v5) = *((_WORD *)this + 165);\n  BYTE2(v5) = *((_BYTE *)this + 332);\n  HIBYTE(v5) = *((_BYTE *)this + 328);\n  if ( *((_BYTE *)this + 556) )\n  {\n    v1 = (float)*((unsigned __int8 *)this + 328) / 255.0;\n    LOBYTE(v5) = (int)(float)((float)*((unsigned __int8 *)this + 330) * v1);\n    BYTE1(v5) = (int)(float)((float)*((unsigned __int8 *)this + 331) * v1);\n    BYTE2(v5) = (int)(float)((float)*((unsigned __int8 *)this + 332) * v1);\n  }\n  v2 = *((_QWORD *)this + 46) == 0;\n  v3 = (cocos2d::CCSprite *)((char *)this + 460);\n  *((_DWORD *)this + 124) = v5;\n  *((_DWORD *)this + 136) = v5;\n  *((_DWORD *)this + 118) = v5;\n  *((_DWORD *)this + 130) = v5;\n  if ( !v2 )\n  {\n    v4 = *((_DWORD *)this + 90);\n    if ( v4 == -1 )\n    {\n      LOBYTE(v3) = 1;\n      (*(void (__fastcall **)(cocos2d::CCSprite *, struct cocos2d::_ccV3F_C4B_T2F_Quad *))(*(_QWORD *)this + 1048LL))(\n        this,\n        v3);\n    }\n    else\n    {\n      cocos2d::CCTextureAtlas::updateQuad(*((cocos2d::CCTextureAtlas **)this + 44), v3, v4);\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCSprite::updateColor from 0x180090690 to 0x180090763 (211 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCSprite::setColor @ 0x18008f5d4\n; > cocos2d::CCSprite::setOpacity @ 0x18008f80c\n; > cocos2d::CCSprite::setOpacityModifyRGB @ 0x18008f845\n; > cocos2d::CCSprite::updateDisplayedColor @ 0x18009078a\n; > cocos2d::CCSprite::updateDisplayedOpacity @ 0x1800907aa\n; > <???> @ 0x18014cf68\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:22:07 +0000\n; \ncmp     byte ptr [rcx+22Ch], 0                                         ; +0x0, 0x180090690\nmovzx   edx, byte ptr [rcx+14Ah]                                       ; +0x7, 0x180090697\nmovzx   r8d, byte ptr [rcx+14Bh]                                       ; +0xe, 0x18009069e\nmovzx   r9d, byte ptr [rcx+14Ch]                                       ; +0x16, 0x1800906a6\nmovzx   eax, byte ptr [rcx+148h]                                       ; +0x1e, 0x1800906ae\nmov     byte ptr [rsp+arg_0], dl                                       ; +0x25, 0x1800906b5\nmov     byte ptr [rsp+arg_0+1], r8b                                    ; +0x29, 0x1800906b9\nmov     byte ptr [rsp+arg_0+2], r9b                                    ; +0x2e, 0x1800906be\nmov     byte ptr [rsp+arg_0+3], al                                     ; +0x33, 0x1800906c3\njz      short loc_180090713                                            ; +0x37, 0x1800906c7\nmovd    xmm1, eax                                                      ; +0x39, 0x1800906c9\ncvtdq2ps xmm1, xmm1                                                    ; +0x3d, 0x1800906cd\nmovd    xmm0, edx                                                      ; +0x40, 0x1800906d0\ndivss   xmm1, cs:dword_1800EB878                                       ; +0x44, 0x1800906d4\ncvtdq2ps xmm0, xmm0                                                    ; +0x4c, 0x1800906dc\nmulss   xmm0, xmm1                                                     ; +0x4f, 0x1800906df\ncvttss2si eax, xmm0                                                    ; +0x53, 0x1800906e3\nmovd    xmm0, r8d                                                      ; +0x57, 0x1800906e7\ncvtdq2ps xmm0, xmm0                                                    ; +0x5c, 0x1800906ec\nmov     byte ptr [rsp+arg_0], al                                       ; +0x5f, 0x1800906ef\nmulss   xmm0, xmm1                                                     ; +0x63, 0x1800906f3\ncvttss2si eax, xmm0                                                    ; +0x67, 0x1800906f7\nmovd    xmm0, r9d                                                      ; +0x6b, 0x1800906fb\ncvtdq2ps xmm0, xmm0                                                    ; +0x70, 0x180090700\nmov     byte ptr [rsp+arg_0+1], al                                     ; +0x73, 0x180090703\nmulss   xmm0, xmm1                                                     ; +0x77, 0x180090707\ncvttss2si eax, xmm0                                                    ; +0x7b, 0x18009070b\nmov     byte ptr [rsp+arg_0+2], al                                     ; +0x7f, 0x18009070f\ncmp     qword ptr [rcx+170h], 0                                        ; +0x83, 0x180090713\nlea     rdx, [rcx+1CCh]; struct cocos2d::_ccV3F_C4B_T2F_Quad *         ; +0x8b, 0x18009071b\nmov     eax, [rsp+arg_0]                                               ; +0x92, 0x180090722\nmov     [rdx+24h], eax                                                 ; +0x96, 0x180090726\nmov     [rcx+220h], eax                                                ; +0x99, 0x180090729\nmov     [rcx+1D8h], eax                                                ; +0x9f, 0x18009072f\nmov     [rcx+208h], eax                                                ; +0xa5, 0x180090735\njz      short locret_180090762                                         ; +0xab, 0x18009073b\nmov     r8d, [rcx+168h]; unsigned int                                  ; +0xad, 0x18009073d\ncmp     r8d, 0FFFFFFFFh                                                ; +0xb4, 0x180090744\njz      short loc_180090756                                            ; +0xb8, 0x180090748\nmov     rcx, [rcx+160h]; this                                          ; +0xba, 0x18009074a\njmp     ?updateQuad@CCTextureAtlas@cocos2d@@QEAAXPEAU_ccV3F_C4B_T2F_Quad@2@I@Z; cocos2d::CCTextureAtlas::updateQuad(cocos2d::_ccV3F_C4B_T2F_Quad *,uint) ; +0xc1, 0x180090751\nmov     rax, [rcx]                                                     ; +0xc6, 0x180090756\nmov     dl, 1                                                          ; +0xc9, 0x180090759\njmp     qword ptr [rax+418h]                                           ; +0xcb, 0x18009075b\nretn                                                                   ; +0xd2, 0x180090762", "xrefs": ["cocos2d::CCSprite::setColor @ 0x18008f5d4", "cocos2d::CCSprite::setOpacity @ 0x18008f80c", "cocos2d::CCSprite::setOpacityModifyRGB @ 0x18008f845", "cocos2d::CCSprite::updateDisplayedColor @ 0x18009078a", "cocos2d::CCSprite::updateDisplayedOpacity @ 0x1800907aa", "<???> @ 0x18014cf68"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}