; ; cocos2d::CCFollow::initWithTarget from 0x1800242e0 to 0x180024440 (352 bytes) ; ; 3 xrefs: ; > cocos2d::CCFollow::create @ 0x180024186 ; > @ 0x1801438a8 ; > @ 0x1801af154 ; ; 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, 0x1800242e0 mov [rsp+arg_18], rsi ; +0x5, 0x1800242e5 push rdi ; +0xa, 0x1800242ea sub rsp, 20h ; +0xb, 0x1800242eb mov rdi, rcx ; +0xf, 0x1800242ef mov rsi, r8 ; +0x12, 0x1800242f2 mov rcx, rdx; this ; +0x15, 0x1800242f5 mov rbx, rdx ; +0x18, 0x1800242f8 call ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x1b, 0x1800242fb lea rdx, unk_1801A8370; struct cocos2d::CCRect * ; +0x20, 0x180024300 mov [rdi+50h], rbx ; +0x27, 0x180024307 mov rcx, rsi; this ; +0x2b, 0x18002430b call ?equals@CCRect@cocos2d@@QEBA_NAEBV12@@Z; cocos2d::CCRect::equals(cocos2d::CCRect const &) ; +0x2e, 0x18002430e xor al, 1 ; +0x33, 0x180024313 mov [rdi+58h], al ; +0x35, 0x180024315 mov byte ptr [rdi+59h], 0 ; +0x38, 0x180024318 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x3c, 0x18002431c mov rcx, rax ; +0x41, 0x180024321 lea rdx, [rsp+28h+arg_0] ; +0x44, 0x180024324 call ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x49, 0x180024329 movss xmm2, [rsp+28h+arg_4] ; +0x4e, 0x18002432e lea rcx, [rsp+28h+arg_8] ; +0x54, 0x180024334 movss xmm1, [rsp+28h+arg_0] ; +0x59, 0x180024339 call kmVec2Fill ; +0x5f, 0x18002433f mov rdx, rax ; +0x64, 0x180024344 lea rcx, [rdi+64h] ; +0x67, 0x180024347 call ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x6b, 0x18002434b movss xmm2, cs:dword_1800E6308 ; +0x70, 0x180024350 lea rdx, [rsp+28h+arg_8] ; +0x78, 0x180024358 lea rcx, [rdi+64h] ; +0x7d, 0x18002435d call ??DCCSize@cocos2d@@QEBA?AV01@M@Z; cocos2d::CCSize::operator*(float) ; +0x81, 0x180024361 lea rcx, [rdi+5Ch] ; +0x86, 0x180024366 lea rdx, [rsp+28h+arg_8] ; +0x8a, 0x18002436a call ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x8f, 0x18002436f cmp byte ptr [rdi+58h], 0 ; +0x94, 0x180024374 jz loc_18002442E ; +0x98, 0x180024378 movss xmm2, dword ptr [rsi+8] ; +0x9e, 0x18002437e addss xmm2, dword ptr [rsi] ; +0xa3, 0x180024383 movss xmm0, dword ptr cs:xmmword_1800E61C0 ; +0xa7, 0x180024387 subss xmm2, dword ptr [rdi+64h] ; +0xaf, 0x18002438f xorps xmm2, xmm0 ; +0xb4, 0x180024394 movss dword ptr [rdi+6Ch], xmm2 ; +0xb7, 0x180024397 movss xmm4, dword ptr [rsi] ; +0xbc, 0x18002439c xorps xmm4, xmm0 ; +0xc0, 0x1800243a0 comiss xmm2, xmm4 ; +0xc3, 0x1800243a3 movss dword ptr [rdi+70h], xmm4 ; +0xc6, 0x1800243a6 movss xmm1, dword ptr [rsi+4] ; +0xcb, 0x1800243ab xorps xmm1, xmm0 ; +0xd0, 0x1800243b0 movss dword ptr [rdi+74h], xmm1 ; +0xd3, 0x1800243b3 movss xmm3, dword ptr [rsi+0Ch] ; +0xd8, 0x1800243b8 addss xmm3, dword ptr [rsi+4] ; +0xdd, 0x1800243bd subss xmm3, dword ptr [rdi+68h] ; +0xe2, 0x1800243c2 xorps xmm3, xmm0 ; +0xe7, 0x1800243c7 movss dword ptr [rdi+78h], xmm3 ; +0xea, 0x1800243ca jbe short loc_1800243ED ; +0xef, 0x1800243cf addss xmm4, xmm2 ; +0xf1, 0x1800243d1 movaps xmm2, xmm4 ; +0xf5, 0x1800243d5 mulss xmm2, cs:dword_1800E6308 ; +0xf8, 0x1800243d8 movss dword ptr [rdi+6Ch], xmm2 ; +0x100, 0x1800243e0 movaps xmm4, xmm2 ; +0x105, 0x1800243e5 movss dword ptr [rdi+70h], xmm2 ; +0x108, 0x1800243e8 comiss xmm3, xmm1 ; +0x10d, 0x1800243ed jbe short loc_18002440B ; +0x110, 0x1800243f0 addss xmm1, xmm3 ; +0x112, 0x1800243f2 mulss xmm1, cs:dword_1800E6308 ; +0x116, 0x1800243f6 movss dword ptr [rdi+78h], xmm1 ; +0x11e, 0x1800243fe movaps xmm3, xmm1 ; +0x123, 0x180024403 movss dword ptr [rdi+74h], xmm1 ; +0x126, 0x180024406 ucomiss xmm1, xmm3 ; +0x12b, 0x18002440b jp short loc_18002442E ; +0x12e, 0x18002440e jnz short loc_18002442E ; +0x130, 0x180024410 ucomiss xmm2, xmm4 ; +0x132, 0x180024412 jp short loc_18002442E ; +0x135, 0x180024415 mov al, 1 ; +0x137, 0x180024417 jnz short loc_180024430 ; +0x139, 0x180024419 mov [rdi+59h], al ; +0x13b, 0x18002441b mov rbx, [rsp+28h+arg_10] ; +0x13e, 0x18002441e mov rsi, [rsp+28h+arg_18] ; +0x143, 0x180024423 add rsp, 20h ; +0x148, 0x180024428 pop rdi ; +0x14c, 0x18002442c retn ; +0x14d, 0x18002442d mov al, 1 ; +0x14e, 0x18002442e mov rbx, [rsp+28h+arg_10] ; +0x150, 0x180024430 mov rsi, [rsp+28h+arg_18] ; +0x155, 0x180024435 add rsp, 20h ; +0x15a, 0x18002443a pop rdi ; +0x15e, 0x18002443e retn ; +0x15f, 0x18002443f