; ; CustomizeObjectLayer::onLiveEdit from 0x1400a7f10 to 0x1400a8010 (256 bytes) ; ; 2 xrefs: ; > CustomizeObjectLayer::init @ 0x1400a6cb5 ; > @ 0x1406c7764 ; ; 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, 0x1400a7f10 mov [rsp+arg_8], rbp ; +0x5, 0x1400a7f15 mov [rsp+arg_18], rsi ; +0xa, 0x1400a7f1a push rdi ; +0xf, 0x1400a7f1f sub rsp, 20h ; +0x10, 0x1400a7f20 mov rbx, rcx ; +0x14, 0x1400a7f24 mov dl, 1 ; +0x17, 0x1400a7f27 call CustomizeObjectLayer__getActiveMode ; +0x19, 0x1400a7f29 mov ebp, eax ; +0x1e, 0x1400a7f2e xor edx, edx ; +0x20, 0x1400a7f30 mov rcx, rbx ; +0x22, 0x1400a7f32 call CustomizeObjectLayer__onClose ; +0x25, 0x1400a7f35 mov rax, cs:qword_1406C2ED8 ; +0x2a, 0x1400a7f3a test rax, rax ; +0x31, 0x1400a7f41 jnz short loc_1400A7F75 ; +0x34, 0x1400a7f44 mov ecx, 668h; Size ; +0x36, 0x1400a7f46 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x3b, 0x1400a7f4b mov [rsp+28h+arg_10], rax ; +0x40, 0x1400a7f50 mov rcx, rax ; +0x45, 0x1400a7f55 call sub_14017AB00 ; +0x48, 0x1400a7f58 nop ; +0x4d, 0x1400a7f5d mov cs:qword_1406C2ED8, rax ; +0x4e, 0x1400a7f5e mov rdx, [rax] ; +0x55, 0x1400a7f65 mov rcx, rax ; +0x58, 0x1400a7f68 call qword ptr [rdx+48h] ; +0x5b, 0x1400a7f6b mov rax, cs:qword_1406C2ED8 ; +0x5e, 0x1400a7f6e mov rax, [rax+210h] ; +0x65, 0x1400a7f75 mov rsi, [rax+38A0h] ; +0x6c, 0x1400a7f7c mov rcx, [rsi+538h] ; +0x73, 0x1400a7f83 test rcx, rcx ; +0x7a, 0x1400a7f8a jz short loc_1400A7F9D ; +0x7d, 0x1400a7f8d mov byte ptr [rcx+475h], 0 ; +0x7f, 0x1400a7f8f call GameObject__updateObjectEditorColor ; +0x86, 0x1400a7f96 jmp short loc_1400A7FF2 ; +0x8b, 0x1400a7f9b mov rcx, [rsi+340h] ; +0x8d, 0x1400a7f9d call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x94, 0x1400a7fa4 test eax, eax ; +0x9a, 0x1400a7faa jz short loc_1400A7FF2 ; +0x9c, 0x1400a7fac mov rax, [rsi+340h] ; +0x9e, 0x1400a7fae test rax, rax ; +0xa5, 0x1400a7fb5 jz short loc_1400A7FF2 ; +0xa8, 0x1400a7fb8 mov rbx, [rax+38h] ; +0xaa, 0x1400a7fba mov eax, [rbx] ; +0xae, 0x1400a7fbe test eax, eax ; +0xb0, 0x1400a7fc0 jz short loc_1400A7FF2 ; +0xb2, 0x1400a7fc2 mov rbx, [rbx+10h] ; +0xb4, 0x1400a7fc4 lea rdi, [rax-1] ; +0xb8, 0x1400a7fc8 lea rdi, [rbx+rdi*8] ; +0xbc, 0x1400a7fcc cmp rbx, rdi ; +0xc0, 0x1400a7fd0 ja short loc_1400A7FF2 ; +0xc3, 0x1400a7fd3 mov rcx, [rbx] ; +0xc5, 0x1400a7fd5 test rcx, rcx ; +0xc8, 0x1400a7fd8 jz short loc_1400A7FF2 ; +0xcb, 0x1400a7fdb mov byte ptr [rcx+475h], 0 ; +0xcd, 0x1400a7fdd call GameObject__updateObjectEditorColor ; +0xd4, 0x1400a7fe4 add rbx, 8 ; +0xd9, 0x1400a7fe9 cmp rbx, rdi ; +0xdd, 0x1400a7fed jbe short loc_1400A7FD5 ; +0xe0, 0x1400a7ff0 mov edx, ebp ; +0xe2, 0x1400a7ff2 mov rcx, rsi ; +0xe4, 0x1400a7ff4 mov rbx, [rsp+28h+arg_0] ; +0xe7, 0x1400a7ff7 mov rbp, [rsp+28h+arg_8] ; +0xec, 0x1400a7ffc mov rsi, [rsp+28h+arg_18] ; +0xf1, 0x1400a8001 add rsp, 20h ; +0xf6, 0x1400a8006 pop rdi ; +0xfa, 0x1400a800a jmp EditorUI__showLiveColorSelectForMode ; +0xfb, 0x1400a800b