; ; CCSpriteWithHue::updateColorMatrix from 0x1005f03b0 to 0x1005f05e3 (563 bytes) ; ; 4 xrefs: ; > CCSpriteWithHue::updateHue @ 0x1005f02a5 ; > CCSpriteWithHue::setHue @ 0x1005f02bd ; > CCSpriteWithHue::updateColor @ 0x1005f03a7 ; > CCSpriteWithHue::setHueDegrees @ 0x1005f087e ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; push rbp ; +0x0, 0x1005f03b0 mov rbp, rsp ; +0x1, 0x1005f03b1 push rbx ; +0x4, 0x1005f03b4 push rax ; +0x5, 0x1005f03b5 mov rbx, rdi ; +0x6, 0x1005f03b6 movss xmm0, dword ptr [rdi+254h]; float ; +0x9, 0x1005f03b9 call ___sincosf_stret ; +0x11, 0x1005f03c1 movshdup xmm3, xmm0 ; +0x16, 0x1005f03c6 movss xmm1, cs:dword_10081B078 ; +0x1a, 0x1005f03ca movss xmm4, cs:dword_100821AF8 ; +0x22, 0x1005f03d2 movaps xmm2, xmm3 ; +0x2a, 0x1005f03da mulss xmm2, xmm4 ; +0x2d, 0x1005f03dd mulss xmm4, xmm0 ; +0x31, 0x1005f03e1 movsldup xmm8, xmm0 ; +0x35, 0x1005f03e5 mulss xmm0, xmm1 ; +0x3a, 0x1005f03ea addss xmm2, xmm0 ; +0x3e, 0x1005f03ee xorps xmm0, xmm0 ; +0x42, 0x1005f03f2 addss xmm2, xmm0 ; +0x45, 0x1005f03f5 movss xmm6, cs:dword_100821AFC ; +0x49, 0x1005f03f9 movaps xmm5, xmm3 ; +0x51, 0x1005f0401 mulss xmm5, xmm6 ; +0x54, 0x1005f0404 addss xmm4, xmm5 ; +0x58, 0x1005f0408 addss xmm4, xmm0 ; +0x5c, 0x1005f040c movaps xmm5, xmm4 ; +0x60, 0x1005f0410 mulss xmm5, xmm0 ; +0x63, 0x1005f0413 movsldup xmm11, xmm2 ; +0x67, 0x1005f0417 mulss xmm2, cs:dword_100821B08 ; +0x6c, 0x1005f041c addss xmm2, xmm5 ; +0x74, 0x1005f0424 insertps xmm5, xmm4, 10h ; +0x78, 0x1005f0428 movss xmm10, cs:dword_100821B00 ; +0x7e, 0x1005f042e mulps xmm11, xmm10 ; +0x87, 0x1005f0437 addps xmm11, xmm5 ; +0x8b, 0x1005f043b movss xmm9, cs:dword_100821B04 ; +0x8f, 0x1005f043f addps xmm11, xmm9 ; +0x98, 0x1005f0448 addss xmm2, cs:dword_100821B0C ; +0x9c, 0x1005f044c movshdup xmm12, xmm11 ; +0xa4, 0x1005f0454 movaps xmm5, xmm12 ; +0xa9, 0x1005f0459 mulss xmm5, xmm0 ; +0xad, 0x1005f045d addss xmm5, xmm11 ; +0xb1, 0x1005f0461 movaps xmm7, xmm12 ; +0xb6, 0x1005f0466 mulss xmm7, xmm1 ; +0xba, 0x1005f046a mulss xmm11, xmm0 ; +0xbe, 0x1005f046e addss xmm7, xmm11 ; +0xc3, 0x1005f0473 mulss xmm12, xmm6 ; +0xc8, 0x1005f0478 addss xmm12, xmm11 ; +0xcd, 0x1005f047d movzx eax, byte ptr [rbx+148h] ; +0xd2, 0x1005f0482 xorps xmm4, xmm4 ; +0xd9, 0x1005f0489 cvtsi2ss xmm4, eax ; +0xdc, 0x1005f048c mulss xmm1, xmm2 ; +0xe0, 0x1005f0490 addss xmm1, xmm12 ; +0xe4, 0x1005f0494 divss xmm4, cs:dword_100815C10 ; +0xe9, 0x1005f0499 movsd xmm11, cs:qword_100821A50 ; +0xf1, 0x1005f04a1 mulps xmm11, xmm8 ; +0xfa, 0x1005f04aa movsd xmm13, cs:qword_100821A60 ; +0xfe, 0x1005f04ae movaps xmm6, xmm3 ; +0x107, 0x1005f04b7 mulps xmm6, xmm13 ; +0x10a, 0x1005f04ba addps xmm6, xmm11 ; +0x10e, 0x1005f04be xorps xmm12, xmm12 ; +0x112, 0x1005f04c2 addps xmm6, xmm12 ; +0x116, 0x1005f04c6 mulps xmm3, cs:xmmword_100821A70 ; +0x11a, 0x1005f04ca mulps xmm8, xmm13 ; +0x121, 0x1005f04d1 addps xmm8, xmm3 ; +0x125, 0x1005f04d5 addps xmm8, xmm12 ; +0x129, 0x1005f04d9 mulps xmm12, xmm8 ; +0x12d, 0x1005f04dd movsldup xmm11, xmm6 ; +0x131, 0x1005f04e1 movaps xmm3, xmm12 ; +0x136, 0x1005f04e6 insertps xmm3, xmm8, 1Ch ; +0x13a, 0x1005f04ea mulps xmm11, xmm10 ; +0x141, 0x1005f04f1 addps xmm11, xmm3 ; +0x145, 0x1005f04f5 addps xmm11, xmm9 ; +0x149, 0x1005f04f9 movshdup xmm3, xmm6 ; +0x14d, 0x1005f04fd insertps xmm8, xmm12, 4Ch ; 'L' ; +0x151, 0x1005f0501 mulps xmm3, xmm10 ; +0x158, 0x1005f0508 addps xmm3, xmm8 ; +0x15c, 0x1005f050c addps xmm3, xmm9 ; +0x160, 0x1005f0510 mulps xmm6, cs:xmmword_100821A80 ; +0x164, 0x1005f0514 addps xmm6, xmm12 ; +0x16b, 0x1005f051b addps xmm6, cs:xmmword_100821A90 ; +0x16f, 0x1005f051f movaps xmm8, xmm6 ; +0x176, 0x1005f0526 shufps xmm8, xmm6, 40h ; '@' ; +0x17a, 0x1005f052a movshdup xmm9, xmm11 ; +0x17f, 0x1005f052f movaps xmm10, xmm9 ; +0x184, 0x1005f0534 mulss xmm10, xmm0 ; +0x188, 0x1005f0538 addss xmm10, xmm11 ; +0x18d, 0x1005f053d movsd xmm12, cs:qword_100821AA0 ; +0x192, 0x1005f0542 mulps xmm9, xmm12 ; +0x19b, 0x1005f054b mulss xmm11, xmm0 ; +0x19f, 0x1005f054f movsldup xmm11, xmm11 ; +0x1a4, 0x1005f0554 addps xmm11, xmm9 ; +0x1a9, 0x1005f0559 movshdup xmm9, xmm3 ; +0x1ad, 0x1005f055d movaps xmm13, xmm9 ; +0x1b2, 0x1005f0562 mulss xmm13, xmm0 ; +0x1b6, 0x1005f0566 addss xmm13, xmm3 ; +0x1bb, 0x1005f056b movlhps xmm10, xmm11 ; +0x1c0, 0x1005f0570 shufps xmm10, xmm11, 0D8h ; +0x1c4, 0x1005f0574 insertps xmm10, xmm13, 30h ; '0' ; +0x1c9, 0x1005f0579 mulps xmm8, cs:xmmword_100821AB0 ; +0x1d0, 0x1005f0580 addps xmm8, xmm10 ; +0x1d8, 0x1005f0588 mulps xmm9, xmm12 ; +0x1dc, 0x1005f058c mulss xmm3, xmm0 ; +0x1e0, 0x1005f0590 movsldup xmm0, xmm3 ; +0x1e4, 0x1005f0594 addps xmm0, xmm9 ; +0x1e8, 0x1005f0598 insertps xmm0, xmm5, 20h ; ' ' ; +0x1ec, 0x1005f059c insertps xmm0, xmm7, 30h ; '0' ; +0x1f2, 0x1005f05a2 mulss xmm1, xmm4 ; +0x1f8, 0x1005f05a8 shufps xmm4, xmm4, 0 ; +0x1fc, 0x1005f05ac mulps xmm8, xmm4 ; +0x200, 0x1005f05b0 movups xmmword ptr [rbx+264h], xmm8 ; +0x204, 0x1005f05b4 shufps xmm6, xmm2, 5 ; +0x20c, 0x1005f05bc mulps xmm6, cs:xmmword_100821AC0 ; +0x210, 0x1005f05c0 addps xmm6, xmm0 ; +0x217, 0x1005f05c7 mulps xmm6, xmm4 ; +0x21a, 0x1005f05ca movups xmmword ptr [rbx+274h], xmm6 ; +0x21d, 0x1005f05cd movss dword ptr [rbx+284h], xmm1 ; +0x224, 0x1005f05d4 add rsp, 8 ; +0x22c, 0x1005f05dc pop rbx ; +0x230, 0x1005f05e0 pop rbp ; +0x231, 0x1005f05e1 retn ; +0x232, 0x1005f05e2