; ; CustomizeObjectLayer::updateColorSprite from 0x1001daa20 to 0x1001daae5 (197 bytes) ; ; 9 xrefs: ; > CustomizeObjectLayer::onSelectMode @ 0x1001d99e5 ; > CustomizeObjectLayer::onSelectColor @ 0x1001d9f67 ; > CustomizeObjectLayer::onUpdateCustomColor @ 0x1001da03b ; > CustomizeObjectLayer::onNextColorChannel @ 0x1001da6e6 ; > CustomizeObjectLayer::onPaste @ 0x1001da7b3 ; > CustomizeObjectLayer::colorSetupClosed @ 0x1001dae86 ; > CustomizeObjectLayer::colorSelectClosed @ 0x1001db255 ; > sub_1001DB260 @ 0x1001db26c ; > CustomizeObjectLayer::textChanged @ 0x1001db92b ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 12:26:26 +0000 ; push rbp ; +0x0, 0x1001daa20 mov rbp, rsp ; +0x1, 0x1001daa21 push r14 ; +0x4, 0x1001daa24 push rbx ; +0x6, 0x1001daa26 mov rbx, rdi ; +0x7, 0x1001daa27 mov al, 1 ; +0xa, 0x1001daa2a cmp dword ptr [rdi+2E8h], 3 ; +0xc, 0x1001daa2c jz loc_1001DAAC6 ; +0x13, 0x1001daa33 mov rdi, rbx ; +0x19, 0x1001daa39 mov esi, 1 ; +0x1c, 0x1001daa3c call CustomizeObjectLayer__getActiveMode ; +0x21, 0x1001daa41 mov r14d, eax ; +0x26, 0x1001daa46 test eax, eax ; +0x29, 0x1001daa49 jle short loc_1001DAA9A ; +0x2b, 0x1001daa4b call GameManager__sharedState ; +0x2d, 0x1001daa4d mov rax, [rax+228h] ; +0x32, 0x1001daa52 mov rax, [rax+0CC8h] ; +0x39, 0x1001daa59 mov rdi, [rax+140h] ; +0x40, 0x1001daa60 mov esi, r14d ; +0x47, 0x1001daa67 call GJEffectManager__colorExists ; +0x4a, 0x1001daa6a test al, al ; +0x4f, 0x1001daa6f jz short loc_1001DAA9A ; +0x51, 0x1001daa71 call GameManager__sharedState ; +0x53, 0x1001daa73 mov rax, [rax+228h] ; +0x58, 0x1001daa78 mov rax, [rax+0CC8h] ; +0x5f, 0x1001daa7f mov rdi, [rax+140h] ; +0x66, 0x1001daa86 mov esi, r14d ; +0x6d, 0x1001daa8d call GJEffectManager__getColorAction ; +0x70, 0x1001daa90 mov rsi, rax ; +0x75, 0x1001daa95 jmp short loc_1001DAA9C ; +0x78, 0x1001daa98 xor esi, esi ; +0x7a, 0x1001daa9a mov rdi, [rbx+380h] ; +0x7c, 0x1001daa9c call ColorChannelSprite__updateValues ; +0x83, 0x1001daaa3 test r14d, r14d ; +0x88, 0x1001daaa8 setle al ; +0x8b, 0x1001daaab lea ecx, [r14-3EDh] ; +0x8e, 0x1001daaae cmp ecx, 7 ; +0x95, 0x1001daab5 ja short loc_1001DAAC6 ; +0x98, 0x1001daab8 test r14d, r14d ; +0x9a, 0x1001daaba setle dl ; +0x9d, 0x1001daabd mov al, 0E7h ; +0xa0, 0x1001daac0 shr al, cl ; +0xa2, 0x1001daac2 or al, dl ; +0xa4, 0x1001daac4 mov rdi, [rbx+388h] ; +0xa6, 0x1001daac6 not al ; +0xad, 0x1001daacd mov rcx, [rdi] ; +0xaf, 0x1001daacf mov rcx, [rcx+158h] ; +0xb2, 0x1001daad2 movzx esi, al ; +0xb9, 0x1001daad9 and esi, 1 ; +0xbc, 0x1001daadc pop rbx ; +0xbf, 0x1001daadf pop r14 ; +0xc0, 0x1001daae0 pop rbp ; +0xc2, 0x1001daae2 jmp rcx ; +0xc3, 0x1001daae3