; ; CustomizeObjectLayer::determineStartValues from 0x1400a8750 to 0x1400a8971 (545 bytes) ; ; 2 xrefs: ; > CustomizeObjectLayer::init @ 0x1400a5973 ; > @ 0x1406c77c4 ; ; 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_8], rbx ; +0x0, 0x1400a8750 push rsi ; +0x5, 0x1400a8755 sub rsp, 20h ; +0x6, 0x1400a8756 mov rbx, rcx ; +0xa, 0x1400a875a mov rcx, [rcx+298h] ; +0xd, 0x1400a875d test rcx, rcx ; +0x14, 0x1400a8764 jz loc_1400A882F ; +0x17, 0x1400a8767 movzx eax, word ptr [rcx+418h] ; +0x1d, 0x1400a876d test ax, ax ; +0x24, 0x1400a8774 jnz short loc_1400A8782 ; +0x27, 0x1400a8777 movzx eax, byte ptr [rcx+514h] ; +0x29, 0x1400a8779 jmp short loc_1400A8789 ; +0x30, 0x1400a8780 cmp ax, 1 ; +0x32, 0x1400a8782 setz al ; +0x36, 0x1400a8786 test al, al ; +0x39, 0x1400a8789 jnz short loc_1400A87B1 ; +0x3b, 0x1400a878b cmp qword ptr [rcx+380h], 0 ; +0x3d, 0x1400a878d jnz short loc_1400A87B1 ; +0x45, 0x1400a8795 mov rax, [rcx+450h] ; +0x47, 0x1400a8797 mov edx, [rax+4] ; +0x4e, 0x1400a879e cmp edx, 3ECh ; +0x51, 0x1400a87a1 jz short loc_1400A87B1 ; +0x57, 0x1400a87a7 test edx, edx ; +0x59, 0x1400a87a9 jz short loc_1400A87B1 ; +0x5b, 0x1400a87ab xor esi, esi ; +0x5d, 0x1400a87ad jmp short loc_1400A87B8 ; +0x5f, 0x1400a87af mov rsi, [rcx+450h] ; +0x61, 0x1400a87b1 test rsi, rsi ; +0x68, 0x1400a87b8 setnz al ; +0x6b, 0x1400a87bb mov [rbx+2D8h], al ; +0x6e, 0x1400a87be movzx eax, word ptr [rcx+418h] ; +0x74, 0x1400a87c4 test ax, ax ; +0x7b, 0x1400a87cb jnz short loc_1400A87D9 ; +0x7e, 0x1400a87ce movzx eax, byte ptr [rcx+514h] ; +0x80, 0x1400a87d0 jmp short loc_1400A87E0 ; +0x87, 0x1400a87d7 cmp ax, 1 ; +0x89, 0x1400a87d9 setz al ; +0x8d, 0x1400a87dd test al, al ; +0x90, 0x1400a87e0 jnz short loc_1400A8804 ; +0x92, 0x1400a87e2 cmp qword ptr [rcx+380h], 0 ; +0x94, 0x1400a87e4 jnz short loc_1400A8804 ; +0x9c, 0x1400a87ec mov rax, [rcx+450h] ; +0x9e, 0x1400a87ee mov edx, [rax+4] ; +0xa5, 0x1400a87f5 cmp edx, 3ECh ; +0xa8, 0x1400a87f8 jz short loc_1400A8804 ; +0xae, 0x1400a87fe test edx, edx ; +0xb0, 0x1400a8800 jnz short loc_1400A880B ; +0xb2, 0x1400a8802 mov rax, [rcx+458h] ; +0xb4, 0x1400a8804 test rax, rax ; +0xbb, 0x1400a880b setnz al ; +0xbe, 0x1400a880e mov [rbx+2D9h], al ; +0xc1, 0x1400a8811 movzx eax, byte ptr [rcx+404h] ; +0xc7, 0x1400a8817 mov [rbx+2DAh], al ; +0xce, 0x1400a881e mov rbx, [rsp+28h+arg_8] ; +0xd4, 0x1400a8824 add rsp, 20h ; +0xd9, 0x1400a8829 pop rsi ; +0xdd, 0x1400a882d retn ; +0xde, 0x1400a882e mov rcx, [rbx+2A0h] ; +0xdf, 0x1400a882f xor esi, esi ; +0xe6, 0x1400a8836 mov [rsp+28h+arg_0], rdi ; +0xe8, 0x1400a8838 mov edi, esi ; +0xed, 0x1400a883d mov byte ptr [rbx+2DAh], 1 ; +0xef, 0x1400a883f call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xf6, 0x1400a8846 test eax, eax ; +0xfc, 0x1400a884c jz loc_1400A8961 ; +0xfe, 0x1400a884e nop dword ptr [rax+00h] ; +0x104, 0x1400a8854 nop dword ptr [rax+rax+00000000h] ; +0x108, 0x1400a8858 mov rcx, [rbx+2A0h] ; +0x110, 0x1400a8860 mov edx, edi ; +0x117, 0x1400a8867 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x119, 0x1400a8869 mov rcx, rax ; +0x11f, 0x1400a886f cmp [rbx+2D8h], sil ; +0x122, 0x1400a8872 jz short loc_1400A888A ; +0x129, 0x1400a8879 cmp [rbx+2D9h], sil ; +0x12b, 0x1400a887b jnz loc_1400A893A ; +0x132, 0x1400a8882 jmp short loc_1400A88DF ; +0x138, 0x1400a8888 movzx eax, word ptr [rax+418h] ; +0x13a, 0x1400a888a test ax, ax ; +0x141, 0x1400a8891 jnz short loc_1400A889F ; +0x144, 0x1400a8894 movzx eax, byte ptr [rcx+514h] ; +0x146, 0x1400a8896 jmp short loc_1400A88A6 ; +0x14d, 0x1400a889d cmp ax, 1 ; +0x14f, 0x1400a889f setz al ; +0x153, 0x1400a88a3 test al, al ; +0x156, 0x1400a88a6 jnz short loc_1400A88CC ; +0x158, 0x1400a88a8 cmp [rcx+380h], rsi ; +0x15a, 0x1400a88aa jnz short loc_1400A88CC ; +0x161, 0x1400a88b1 mov rax, [rcx+450h] ; +0x163, 0x1400a88b3 mov edx, [rax+4] ; +0x16a, 0x1400a88ba cmp edx, 3ECh ; +0x16d, 0x1400a88bd jz short loc_1400A88CC ; +0x173, 0x1400a88c3 mov rax, rsi ; +0x175, 0x1400a88c5 test edx, edx ; +0x178, 0x1400a88c8 jnz short loc_1400A88D3 ; +0x17a, 0x1400a88ca mov rax, [rcx+450h] ; +0x17c, 0x1400a88cc test rax, rax ; +0x183, 0x1400a88d3 setnz al ; +0x186, 0x1400a88d6 mov [rbx+2D8h], al ; +0x189, 0x1400a88d9 cmp [rbx+2D9h], sil ; +0x18f, 0x1400a88df jnz short loc_1400A893A ; +0x196, 0x1400a88e6 movzx eax, word ptr [rcx+418h] ; +0x198, 0x1400a88e8 test ax, ax ; +0x19f, 0x1400a88ef jnz short loc_1400A88FD ; +0x1a2, 0x1400a88f2 movzx eax, byte ptr [rcx+514h] ; +0x1a4, 0x1400a88f4 jmp short loc_1400A8904 ; +0x1ab, 0x1400a88fb cmp ax, 1 ; +0x1ad, 0x1400a88fd setz al ; +0x1b1, 0x1400a8901 test al, al ; +0x1b4, 0x1400a8904 jnz short loc_1400A8927 ; +0x1b6, 0x1400a8906 cmp [rcx+380h], rsi ; +0x1b8, 0x1400a8908 jnz short loc_1400A8927 ; +0x1bf, 0x1400a890f mov rax, [rcx+450h] ; +0x1c1, 0x1400a8911 mov edx, [rax+4] ; +0x1c8, 0x1400a8918 cmp edx, 3ECh ; +0x1cb, 0x1400a891b jz short loc_1400A8927 ; +0x1d1, 0x1400a8921 test edx, edx ; +0x1d3, 0x1400a8923 jnz short loc_1400A892E ; +0x1d5, 0x1400a8925 mov rax, [rcx+458h] ; +0x1d7, 0x1400a8927 test rax, rax ; +0x1de, 0x1400a892e setnz al ; +0x1e1, 0x1400a8931 mov [rbx+2D9h], al ; +0x1e4, 0x1400a8934 cmp [rcx+404h], sil ; +0x1ea, 0x1400a893a jnz short loc_1400A894A ; +0x1f1, 0x1400a8941 mov [rbx+2DAh], sil ; +0x1f3, 0x1400a8943 mov rcx, [rbx+2A0h] ; +0x1fa, 0x1400a894a inc edi ; +0x201, 0x1400a8951 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x203, 0x1400a8953 cmp edi, eax ; +0x209, 0x1400a8959 jb loc_1400A8860 ; +0x20b, 0x1400a895b mov rdi, [rsp+28h+arg_0] ; +0x211, 0x1400a8961 mov rbx, [rsp+28h+arg_8] ; +0x216, 0x1400a8966 add rsp, 20h ; +0x21b, 0x1400a896b pop rsi ; +0x21f, 0x1400a896f retn ; +0x220, 0x1400a8970