; ; GJBaseGameLayer::addUIObject from 0x140225f50 to 0x140226064 (276 bytes) ; ; 5 xrefs: ; > GJBaseGameLayer::positionUIObjects @ 0x14022627f ; > GJBaseGameLayer::positionUIObjects @ 0x14022642b ; > @ 0x140680218 ; > @ 0x140680228 ; > @ 0x1406cd7f4 ; ; 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_18], rsi ; +0x0, 0x140225f50 push rdi ; +0x5, 0x140225f55 sub rsp, 30h ; +0x6, 0x140225f56 cmp byte ptr [rdx+549h], 0 ; +0xa, 0x140225f5a mov rdi, rdx ; +0x11, 0x140225f61 mov rsi, rcx ; +0x14, 0x140225f64 jnz loc_140226059 ; +0x17, 0x140225f67 mov eax, [rdx+39Ch] ; +0x1d, 0x140225f6d lea r8, [rsp+38h+arg_8] ; +0x23, 0x140225f73 lea rdx, [rsp+38h+var_18] ; +0x28, 0x140225f78 mov [rsp+38h+arg_0], rbx ; +0x2d, 0x140225f7d add rcx, 910h ; +0x32, 0x140225f82 mov dword ptr [rsp+38h+arg_8], eax ; +0x39, 0x140225f89 call sub_14024F3B0 ; +0x3d, 0x140225f8d lea rdx, [rsp+38h+arg_10] ; +0x42, 0x140225f92 mov rcx, rdi ; +0x47, 0x140225f97 mov rbx, [rax] ; +0x4a, 0x140225f9a mov rax, [rdi] ; +0x4d, 0x140225f9d call qword ptr [rax+670h] ; +0x50, 0x140225fa0 mov rdx, rax ; +0x56, 0x140225fa6 lea rcx, [rbx+14h] ; +0x59, 0x140225fa9 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x5d, 0x140225fad mov rdx, rdi ; +0x63, 0x140225fb3 mov rcx, rsi ; +0x66, 0x140225fb6 call GJBaseGameLayer__removeObjectFromSection ; +0x69, 0x140225fb9 mov rax, [rdi] ; +0x6e, 0x140225fbe mov dl, 1 ; +0x71, 0x140225fc1 mov rcx, rdi ; +0x73, 0x140225fc3 call qword ptr [rax+478h] ; +0x76, 0x140225fc6 mov dword ptr [rdi+278h], 0FFFFFFFFh ; +0x7c, 0x140225fcc mov rdx, rdi ; +0x86, 0x140225fd6 mov byte ptr [rdi+549h], 1 ; +0x89, 0x140225fd9 mov rcx, [rsi+3548h] ; +0x90, 0x140225fe0 call cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x97, 0x140225fe7 cmp dword ptr [rdi+40Ch], 718h ; +0x9d, 0x140225fed mov rbx, [rsp+38h+arg_0] ; +0xa7, 0x140225ff7 jnz short loc_140226059 ; +0xac, 0x140225ffc movsxd r9, dword ptr [rsi+3638h] ; +0xae, 0x140225ffe lea rcx, [rsi+3620h] ; +0xb5, 0x140226005 mov rdx, [rcx+8] ; +0xbc, 0x14022600c mov r8, [rcx] ; +0xc0, 0x140226010 mov rax, rdx ; +0xc3, 0x140226013 sub rax, r8 ; +0xc6, 0x140226016 mov [rsp+38h+arg_8], rdi ; +0xc9, 0x140226019 sar rax, 3 ; +0xce, 0x14022601e cmp r9, rax ; +0xd2, 0x140226022 jb short loc_140226043 ; +0xd5, 0x140226025 cmp rdx, [rcx+10h] ; +0xd7, 0x140226027 jz short loc_140226037 ; +0xdb, 0x14022602b mov [rdx], rdi ; +0xdd, 0x14022602d add qword ptr [rcx+8], 8 ; +0xe0, 0x140226030 jmp short loc_140226047 ; +0xe5, 0x140226035 lea r8, [rsp+38h+arg_8] ; +0xe7, 0x140226037 call sub_140063110 ; +0xec, 0x14022603c jmp short loc_140226047 ; +0xf1, 0x140226041 mov [r8+r9*8], rdi ; +0xf3, 0x140226043 mov eax, [rsi+3638h] ; +0xf7, 0x140226047 mov [rdi+274h], eax ; +0xfd, 0x14022604d inc dword ptr [rsi+3638h] ; +0x103, 0x140226053 mov rsi, [rsp+38h+arg_18] ; +0x109, 0x140226059 add rsp, 30h ; +0x10e, 0x14022605e pop rdi ; +0x112, 0x140226062 retn ; +0x113, 0x140226063