; ; CustomizeObjectLayer::onSelectMode from 0x1400a8ff0 to 0x1400a91f6 (518 bytes) ; ; 4 xrefs: ; > CustomizeObjectLayer::init @ 0x1400a7ca3 ; > CustomizeObjectLayer::init @ 0x1400a5a06 ; > CustomizeObjectLayer::init @ 0x1400a6e3f ; > @ 0x1406c7800 ; ; 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, 0x1400a8ff0 mov [rsp+arg_8], rbp ; +0x5, 0x1400a8ff5 mov [rsp+arg_10], rsi ; +0xa, 0x1400a8ffa push rdi ; +0xf, 0x1400a8fff sub rsp, 20h ; +0x10, 0x1400a9000 mov rax, [rdx] ; +0x14, 0x1400a9004 mov rdi, rcx ; +0x17, 0x1400a9007 mov rcx, rdx ; +0x1a, 0x1400a900a call qword ptr [rax+38h] ; +0x1d, 0x1400a900d mov rcx, [rdi+308h] ; +0x20, 0x1400a9010 mov [rdi+2D0h], eax ; +0x27, 0x1400a9017 cmp eax, 1 ; +0x2d, 0x1400a901d jnz short loc_1400A902B ; +0x30, 0x1400a9020 lea rdx, aBaseColor; "Base Color" ; +0x32, 0x1400a9022 jmp short loc_1400A903E ; +0x39, 0x1400a9029 lea rdx, aDetailColor; "Detail Color" ; +0x3b, 0x1400a902b cmp eax, 2 ; +0x42, 0x1400a9032 jz short loc_1400A903E ; +0x45, 0x1400a9035 lea rdx, aInsertText; "Insert Text" ; +0x47, 0x1400a9037 add rcx, 168h ; +0x4e, 0x1400a903e mov rax, [rcx] ; +0x55, 0x1400a9045 call qword ptr [rax] ; +0x58, 0x1400a9048 mov rcx, [rdi+2E0h] ; +0x5a, 0x1400a904a lea rsi, aGjButton04Png; "GJ_button_04.png" ; +0x61, 0x1400a9051 cmp dword ptr [rdi+2D0h], 1 ; +0x68, 0x1400a9058 lea rbp, aGjButton03Png; "GJ_button_03.png" ; +0x6f, 0x1400a905f mov rbx, rsi ; +0x76, 0x1400a9066 cmovz rbx, rbp ; +0x79, 0x1400a9069 mov rax, [rcx] ; +0x7d, 0x1400a906d call qword ptr [rax+3A8h] ; +0x80, 0x1400a9070 mov rcx, rax ; +0x86, 0x1400a9076 mov rdx, rbx ; +0x89, 0x1400a9079 call ButtonSprite__updateBGImage ; +0x8c, 0x1400a907c mov rcx, [rdi+2E8h] ; +0x91, 0x1400a9081 mov rbx, rsi ; +0x98, 0x1400a9088 cmp dword ptr [rdi+2D0h], 2 ; +0x9b, 0x1400a908b cmovz rbx, rbp ; +0xa2, 0x1400a9092 mov rax, [rcx] ; +0xa6, 0x1400a9096 call qword ptr [rax+3A8h] ; +0xa9, 0x1400a9099 mov rcx, rax ; +0xaf, 0x1400a909f mov rdx, rbx ; +0xb2, 0x1400a90a2 call ButtonSprite__updateBGImage ; +0xb5, 0x1400a90a5 mov rcx, [rdi+2F0h] ; +0xba, 0x1400a90aa test rcx, rcx ; +0xc1, 0x1400a90b1 jz short loc_1400A90D5 ; +0xc4, 0x1400a90b4 cmp dword ptr [rdi+2D0h], 3 ; +0xc6, 0x1400a90b6 mov rax, [rcx] ; +0xcd, 0x1400a90bd cmovz rsi, rbp ; +0xd0, 0x1400a90c0 call qword ptr [rax+3A8h] ; +0xd4, 0x1400a90c4 mov rcx, rax ; +0xda, 0x1400a90ca mov rdx, rsi ; +0xdd, 0x1400a90cd call ButtonSprite__updateBGImage ; +0xe0, 0x1400a90d0 mov rcx, rdi ; +0xe5, 0x1400a90d5 call CustomizeObjectLayer__toggleVisible ; +0xe8, 0x1400a90d8 mov rcx, [rdi+2F8h] ; +0xed, 0x1400a90dd cmp dword ptr [rdi+2D0h], 1 ; +0xf4, 0x1400a90e4 setz dl ; +0xfb, 0x1400a90eb mov rax, [rcx] ; +0xfe, 0x1400a90ee call qword ptr [rax+140h] ; +0x101, 0x1400a90f1 mov rcx, [rdi+2F8h] ; +0x107, 0x1400a90f7 cmp dword ptr [rdi+2D0h], 1 ; +0x10e, 0x1400a90fe setz dl ; +0x115, 0x1400a9105 mov rax, [rcx] ; +0x118, 0x1400a9108 call qword ptr [rax+398h] ; +0x11b, 0x1400a910b mov rcx, [rdi+300h] ; +0x121, 0x1400a9111 cmp dword ptr [rdi+2D0h], 2 ; +0x128, 0x1400a9118 setz dl ; +0x12f, 0x1400a911f mov rax, [rcx] ; +0x132, 0x1400a9122 call qword ptr [rax+140h] ; +0x135, 0x1400a9125 mov rcx, [rdi+300h] ; +0x13b, 0x1400a912b cmp dword ptr [rdi+2D0h], 2 ; +0x142, 0x1400a9132 setz dl ; +0x149, 0x1400a9139 mov rax, [rcx] ; +0x14c, 0x1400a913c call qword ptr [rax+398h] ; +0x14f, 0x1400a913f mov rcx, [rdi+378h] ; +0x155, 0x1400a9145 cmp dword ptr [rdi+2D0h], 3 ; +0x15c, 0x1400a914c setnz dl ; +0x163, 0x1400a9153 mov rax, [rcx] ; +0x166, 0x1400a9156 call qword ptr [rax+140h] ; +0x169, 0x1400a9159 mov rcx, [rdi+378h] ; +0x16f, 0x1400a915f cmp dword ptr [rdi+2D0h], 3 ; +0x176, 0x1400a9166 setnz dl ; +0x17d, 0x1400a916d mov rax, [rcx] ; +0x180, 0x1400a9170 call qword ptr [rax+398h] ; +0x183, 0x1400a9173 mov rcx, rdi ; +0x189, 0x1400a9179 call CustomizeObjectLayer__updateHSVButtons ; +0x18c, 0x1400a917c mov rcx, rdi ; +0x191, 0x1400a9181 call CustomizeObjectLayer__updateColorSprite ; +0x194, 0x1400a9184 mov dl, 1 ; +0x199, 0x1400a9189 mov rcx, rdi ; +0x19b, 0x1400a918b call CustomizeObjectLayer__getActiveMode ; +0x19e, 0x1400a918e cmp eax, 3E8h ; +0x1a3, 0x1400a9193 jl short loc_1400A91A6 ; +0x1a8, 0x1400a9198 mov ecx, eax ; +0x1aa, 0x1400a919a call GJSpecialColorSelect__textForColorIdx ; +0x1ac, 0x1400a919c mov rdx, rax ; +0x1b1, 0x1400a91a1 jmp short loc_1400A91CE ; +0x1b4, 0x1400a91a4 test eax, eax ; +0x1b6, 0x1400a91a6 jle short loc_1400A91C7 ; +0x1b8, 0x1400a91a8 mov edx, eax ; +0x1ba, 0x1400a91aa lea rcx, aI_11; "%i" ; +0x1bc, 0x1400a91ac call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x1c3, 0x1400a91b3 mov rcx, rax ; +0x1c9, 0x1400a91b9 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x1cc, 0x1400a91bc mov rdx, rax ; +0x1d2, 0x1400a91c2 jmp short loc_1400A91CE ; +0x1d5, 0x1400a91c5 lea rdx, asc_140518984; " " ; +0x1d7, 0x1400a91c7 mov rcx, [rdi+310h] ; +0x1de, 0x1400a91ce add rcx, 168h ; +0x1e5, 0x1400a91d5 mov rax, [rcx] ; +0x1ec, 0x1400a91dc mov rbx, [rsp+28h+arg_0] ; +0x1ef, 0x1400a91df mov rbp, [rsp+28h+arg_8] ; +0x1f4, 0x1400a91e4 mov rsi, [rsp+28h+arg_10] ; +0x1f9, 0x1400a91e9 add rsp, 20h ; +0x1fe, 0x1400a91ee pop rdi ; +0x202, 0x1400a91f2 jmp qword ptr [rax] ; +0x203, 0x1400a91f3