; ; GJColorSetupLayer::updateSpriteColor from 0x140256a10 to 0x140256b7a (362 bytes) ; ; 2 xrefs: ; > GJColorSetupLayer::updateSpriteColors @ 0x1402569b3 ; > @ 0x1406cf984 ; ; 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 ; mov [rsp+arg_0], rbx ; +0x0, 0x140256a10 mov [rsp+arg_8], rbp ; +0x5, 0x140256a15 push rsi ; +0xa, 0x140256a1a push rdi ; +0xb, 0x140256a1b push r14 ; +0xc, 0x140256a1c sub rsp, 20h ; +0xe, 0x140256a1e mov rbp, rdx ; +0x12, 0x140256a22 lea rbx, [r8+168h] ; +0x15, 0x140256a25 mov rdi, [rbx] ; +0x1c, 0x140256a2c mov rsi, rcx ; +0x1f, 0x140256a2f mov edx, r9d ; +0x22, 0x140256a32 lea rcx, aColI; "Col %i" ; +0x25, 0x140256a35 mov r14d, r9d ; +0x2c, 0x140256a3c call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x2f, 0x140256a3f mov rcx, rax ; +0x35, 0x140256a45 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x38, 0x140256a48 mov rdx, rax ; +0x3e, 0x140256a4e mov rcx, rbx ; +0x41, 0x140256a51 call qword ptr [rdi] ; +0x44, 0x140256a54 xor eax, eax ; +0x46, 0x140256a56 mov r8d, r14d ; +0x48, 0x140256a58 test r14d, r14d ; +0x4b, 0x140256a5b cmovs r8d, eax ; +0x4e, 0x140256a5e mov eax, 44Dh ; +0x52, 0x140256a62 cmp r8d, eax ; +0x57, 0x140256a67 cmovg r8d, eax ; +0x5a, 0x140256a6a mov rax, [rsi+288h] ; +0x5e, 0x140256a6e movsxd rdx, r8d ; +0x65, 0x140256a75 mov rcx, [rax+140h] ; +0x68, 0x140256a78 mov rax, [rcx+2E0h] ; +0x6f, 0x140256a7f cmp qword ptr [rax+rdx*8], 0 ; +0x76, 0x140256a86 jz loc_140256B11 ; +0x7b, 0x140256a8b mov edx, r14d ; +0x81, 0x140256a91 call GJEffectManager__getColorAction ; +0x84, 0x140256a94 mov rbx, rax ; +0x89, 0x140256a99 test rax, rax ; +0x8c, 0x140256a9c jz short loc_140256B11 ; +0x8f, 0x140256a9f movzx r8d, byte ptr [rax+7Eh] ; +0x91, 0x140256aa1 mov rcx, rbp ; +0x96, 0x140256aa6 mov edx, [rax+78h] ; +0x99, 0x140256aa9 call ColorChannelSprite__updateCopyLabel ; +0x9c, 0x140256aac movss xmm1, dword ptr [rbx+60h] ; +0xa1, 0x140256ab1 mov rcx, rbp ; +0xa6, 0x140256ab6 call ColorChannelSprite__updateOpacity ; +0xa9, 0x140256ab9 movzx edx, byte ptr [rbx+54h] ; +0xae, 0x140256abe mov rcx, rbp ; +0xb2, 0x140256ac2 call ColorChannelSprite__updateBlending ; +0xb5, 0x140256ac5 cmp dword ptr [rbx+78h], 0 ; +0xba, 0x140256aca movzx eax, word ptr [rbx+48h] ; +0xbe, 0x140256ace mov [rsp+38h+arg_18], ax ; +0xc2, 0x140256ad2 movzx eax, byte ptr [rbx+4Ah] ; +0xc7, 0x140256ad7 mov [rsp+38h+arg_1A], al ; +0xcb, 0x140256adb jz short loc_140256AFE ; +0xcf, 0x140256adf cmp byte ptr [rbx+7Eh], 0 ; +0xd1, 0x140256ae1 jnz short loc_140256AFE ; +0xd5, 0x140256ae5 movzx eax, cs:word_140529AA4 ; +0xd7, 0x140256ae7 mov [rsp+38h+arg_18], ax ; +0xde, 0x140256aee movzx eax, cs:byte_140529AA6 ; +0xe3, 0x140256af3 mov [rsp+38h+arg_1A], al ; +0xea, 0x140256afa lea rcx, [rbp+140h] ; +0xee, 0x140256afe mov rax, [rcx] ; +0xf5, 0x140256b05 lea rdx, [rsp+38h+arg_18] ; +0xf8, 0x140256b08 call qword ptr [rax] ; +0xfd, 0x140256b0d jmp short loc_140256B67 ; +0xff, 0x140256b0f lea rcx, [rbp+140h] ; +0x101, 0x140256b11 mov rax, [rcx] ; +0x108, 0x140256b18 lea rdx, word_140529AB0 ; +0x10b, 0x140256b1b call qword ptr [rax] ; +0x112, 0x140256b22 mov rcx, [rbp+258h] ; +0x114, 0x140256b24 test rcx, rcx ; +0x11b, 0x140256b2b jz short loc_140256B3B ; +0x11e, 0x140256b2e mov rax, [rcx] ; +0x120, 0x140256b30 xor edx, edx ; +0x123, 0x140256b33 call qword ptr [rax+140h] ; +0x125, 0x140256b35 movss xmm1, cs:flt_140622C24 ; +0x12b, 0x140256b3b mov rcx, rbp ; +0x133, 0x140256b43 call ColorChannelSprite__updateOpacity ; +0x136, 0x140256b46 cmp qword ptr [rbp+268h], 0 ; +0x13b, 0x140256b4b jz short loc_140256B67 ; +0x143, 0x140256b53 mov rcx, [rbp+268h] ; +0x145, 0x140256b55 xor edx, edx ; +0x14c, 0x140256b5c mov rax, [rcx] ; +0x14e, 0x140256b5e call qword ptr [rax+140h] ; +0x151, 0x140256b61 mov rbx, [rsp+38h+arg_0] ; +0x157, 0x140256b67 mov rbp, [rsp+38h+arg_8] ; +0x15c, 0x140256b6c add rsp, 20h ; +0x161, 0x140256b71 pop r14 ; +0x165, 0x140256b75 pop rdi ; +0x167, 0x140256b77 pop rsi ; +0x168, 0x140256b78 retn ; +0x169, 0x140256b79