; ; GameObject::addColorSpriteToParent from 0x14019bfc0 to 0x14019c1b8 (504 bytes) ; ; 8 xrefs: ; > GameObject::activateObject @ 0x140190b7e ; > LevelEditorLayer::updateVisibility @ 0x1402d9238 ; > PlayLayer::updateVisibility @ 0x1403afcfa ; > AnimatedGameObject::activateObject @ 0x1404a3bb0 ; > @ 0x1406791c0 ; > @ 0x1406791d4 ; > @ 0x1406791e4 ; > @ 0x1406cbd18 ; ; 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_10], rbx ; +0x0, 0x14019bfc0 mov [rsp+arg_18], rbp ; +0x5, 0x14019bfc5 push rdi ; +0xa, 0x14019bfca sub rsp, 20h ; +0xb, 0x14019bfcb mov rbx, [rcx+380h] ; +0xf, 0x14019bfcf movzx ebp, dl ; +0x16, 0x14019bfd6 mov rdi, rcx ; +0x19, 0x14019bfd9 test rbx, rbx ; +0x1c, 0x14019bfdc jz loc_14019C1A8 ; +0x1f, 0x14019bfdf cmp byte ptr [rcx+290h], 0 ; +0x25, 0x14019bfe5 jnz loc_14019C1A8 ; +0x2c, 0x14019bfec movzx eax, byte ptr [rcx+37Dh] ; +0x32, 0x14019bff2 cmp [rcx+37Ch], al ; +0x39, 0x14019bff9 jnz short loc_14019C015 ; +0x3f, 0x14019bfff mov rbx, [rsp+28h+arg_10] ; +0x41, 0x14019c001 mov rbp, [rsp+28h+arg_18] ; +0x46, 0x14019c006 add rsp, 20h ; +0x4b, 0x14019c00b pop rdi ; +0x4f, 0x14019c00f jmp GameObject__addColorSpriteToSelf ; +0x50, 0x14019c010 mov [rsp+28h+arg_0], rsi ; +0x55, 0x14019c015 mov esi, [rcx+46Ch] ; +0x5a, 0x14019c01a mov [rsp+28h+arg_8], r14 ; +0x60, 0x14019c020 movzx r14d, byte ptr [rcx+36Ah] ; +0x65, 0x14019c025 mov byte ptr [rcx+36Ah], 0 ; +0x6d, 0x14019c02d test esi, esi ; +0x74, 0x14019c034 jnz short loc_14019C03E ; +0x76, 0x14019c036 mov esi, [rcx+464h] ; +0x78, 0x14019c038 test al, al ; +0x7e, 0x14019c03e jz short loc_14019C04D ; +0x80, 0x14019c040 cmp byte ptr [rcx+425h], 0 ; +0x82, 0x14019c042 jz short loc_14019C04D ; +0x89, 0x14019c049 inc esi ; +0x8b, 0x14019c04b mov rax, [rcx] ; +0x8d, 0x14019c04d mov rbx, [rbx] ; +0x90, 0x14019c050 call qword ptr [rax+80h] ; +0x93, 0x14019c053 mov rcx, [rdi+380h] ; +0x99, 0x14019c059 movaps xmm1, xmm0 ; +0xa0, 0x14019c060 call qword ptr [rbx+78h] ; +0xa3, 0x14019c063 mov rax, [rdi+380h] ; +0xa6, 0x14019c066 mov rcx, rdi ; +0xad, 0x14019c06d mov rbx, [rax] ; +0xb0, 0x14019c070 mov rax, [rdi] ; +0xb3, 0x14019c073 call qword ptr [rax+90h] ; +0xb6, 0x14019c076 mov rcx, [rdi+380h] ; +0xbc, 0x14019c07c movaps xmm1, xmm0 ; +0xc3, 0x14019c083 call qword ptr [rbx+88h] ; +0xc6, 0x14019c086 mov rax, [rdi+380h] ; +0xcc, 0x14019c08c mov rcx, rdi ; +0xd3, 0x14019c093 mov rbx, [rax] ; +0xd6, 0x14019c096 mov rax, [rdi] ; +0xd9, 0x14019c099 call qword ptr [rax+168h] ; +0xdc, 0x14019c09c mov rcx, [rdi+380h] ; +0xe2, 0x14019c0a2 movaps xmm1, xmm0 ; +0xe9, 0x14019c0a9 call qword ptr [rbx+160h] ; +0xec, 0x14019c0ac mov rax, [rdi+380h] ; +0xf2, 0x14019c0b2 mov rcx, rdi ; +0xf9, 0x14019c0b9 mov rbx, [rax] ; +0xfc, 0x14019c0bc mov rax, [rdi] ; +0xff, 0x14019c0bf call qword ptr [rax+178h] ; +0x102, 0x14019c0c2 mov rcx, [rdi+380h] ; +0x108, 0x14019c0c8 movaps xmm1, xmm0 ; +0x10f, 0x14019c0cf call qword ptr [rbx+170h] ; +0x112, 0x14019c0d2 mov rcx, rdi ; +0x118, 0x14019c0d8 call GameObject__getParentMode ; +0x11b, 0x14019c0db movzx r8d, byte ptr [rdi+37Dh] ; +0x120, 0x14019c0e0 mov r9d, eax ; +0x128, 0x14019c0e8 mov edx, esi ; +0x12b, 0x14019c0eb mov rcx, rdi ; +0x12d, 0x14019c0ed call GameObject__parentForZLayer ; +0x130, 0x14019c0f0 mov rcx, [rdi+380h] ; +0x135, 0x14019c0f5 mov rbx, rax ; +0x13c, 0x14019c0fc mov rdx, [rcx] ; +0x13f, 0x14019c0ff call qword ptr [rdx+1E8h] ; +0x142, 0x14019c102 mov rsi, [rsp+28h+arg_0] ; +0x148, 0x14019c108 cmp rax, rbx ; +0x14d, 0x14019c10d jz short loc_14019C178 ; +0x150, 0x14019c110 mov rcx, [rdi+380h] ; +0x152, 0x14019c112 xor edx, edx ; +0x159, 0x14019c119 mov r8, [rcx] ; +0x15b, 0x14019c11b call qword ptr [r8+1F8h] ; +0x15e, 0x14019c11e mov r8d, [rdi+470h] ; +0x165, 0x14019c125 test r8d, r8d ; +0x16c, 0x14019c12c jnz short loc_14019C138 ; +0x16f, 0x14019c12f mov r8d, [rdi+420h] ; +0x171, 0x14019c131 mov rax, [rbx] ; +0x178, 0x14019c138 mov rcx, rbx ; +0x17b, 0x14019c13b mov rdx, [rdi+380h] ; +0x17e, 0x14019c13e call qword ptr [rax+1B8h] ; +0x185, 0x14019c145 test r14b, r14b ; +0x18b, 0x14019c14b jz short loc_14019C1A3 ; +0x18e, 0x14019c14e mov rax, [rdi+380h] ; +0x190, 0x14019c150 mov rcx, rdi ; +0x197, 0x14019c157 mov rbx, [rax] ; +0x19a, 0x14019c15a mov rax, [rdi] ; +0x19d, 0x14019c15d call qword ptr [rax+0C8h] ; +0x1a0, 0x14019c160 mov rcx, [rdi+380h] ; +0x1a6, 0x14019c166 mov rdx, rax ; +0x1ad, 0x14019c16d call qword ptr [rbx+0B8h] ; +0x1b0, 0x14019c170 jmp short loc_14019C1A3 ; +0x1b6, 0x14019c176 test bpl, bpl ; +0x1b8, 0x14019c178 jz short loc_14019C1A3 ; +0x1bb, 0x14019c17b mov r8d, [rdi+470h] ; +0x1bd, 0x14019c17d test r8d, r8d ; +0x1c4, 0x14019c184 jnz short loc_14019C190 ; +0x1c7, 0x14019c187 mov r8d, [rdi+420h] ; +0x1c9, 0x14019c189 mov rax, [rbx] ; +0x1d0, 0x14019c190 mov rcx, rbx ; +0x1d3, 0x14019c193 mov rdx, [rdi+380h] ; +0x1d6, 0x14019c196 call qword ptr [rax+238h] ; +0x1dd, 0x14019c19d mov r14, [rsp+28h+arg_8] ; +0x1e3, 0x14019c1a3 mov rbx, [rsp+28h+arg_10] ; +0x1e8, 0x14019c1a8 mov rbp, [rsp+28h+arg_18] ; +0x1ed, 0x14019c1ad add rsp, 20h ; +0x1f2, 0x14019c1b2 pop rdi ; +0x1f6, 0x14019c1b6 retn ; +0x1f7, 0x14019c1b7