; ; GJBaseGameLayer::tryGetObject from 0x140224590 to 0x140224672 (226 bytes) ; ; 26 xrefs: ; > EditorUI::findAndSelectObject @ 0x1400e6f06 ; > GJBaseGameLayer::resetPlayer @ 0x14021211e ; > GJBaseGameLayer::triggerMoveCommand @ 0x14021eb59 ; > GJBaseGameLayer::triggerMoveCommand @ 0x14021eb80 ; > GJBaseGameLayer::triggerMoveCommand @ 0x14021ec8e ; > GJBaseGameLayer::triggerMoveCommand @ 0x14021ecc0 ; > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x14021f2c8 ; > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x14021f2de ; > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x14021f306 ; > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x14021f36a ; > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x14021f380 ; > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x14021f396 ; > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x14021f3af ; > GJBaseGameLayer::getFollowSpeedVal @ 0x14022e9aa ; > GJBaseGameLayer::getFollowSpeedVal @ 0x14022e9e3 ; > EffectGameObject::triggerObject @ 0x1404a6744 ; > EffectGameObject::triggerObject @ 0x1404a6756 ; > EffectGameObject::triggerObject @ 0x1404a6780 ; > EffectGameObject::triggerObject @ 0x1404a67c4 ; > EffectGameObject::triggerObject @ 0x1404a67d6 ; > EffectGameObject::triggerObject @ 0x1404a67e8 ; > EffectGameObject::triggerObject @ 0x1404a67fa ; > EffectGameObject::triggerObject @ 0x1404a7a95 ; > @ 0x14068001c ; > @ 0x140680030 ; > @ 0x1406cd6e0 ; ; 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, 0x140224590 push rsi ; +0x5, 0x140224595 sub rsp, 30h ; +0x6, 0x140224596 mov ebx, edx ; +0xa, 0x14022459a mov rsi, rcx ; +0xc, 0x14022459c test edx, edx ; +0xf, 0x14022459f jg short loc_1402245B0 ; +0x11, 0x1402245a1 xor eax, eax ; +0x13, 0x1402245a3 mov rbx, [rsp+38h+arg_8] ; +0x15, 0x1402245a5 add rsp, 30h ; +0x1a, 0x1402245aa pop rsi ; +0x1e, 0x1402245ae retn ; +0x1f, 0x1402245af mov [rsp+38h+arg_0], rdi ; +0x20, 0x1402245b0 call GJBaseGameLayer__tryGetMainObject ; +0x25, 0x1402245b5 mov rdi, rax ; +0x2a, 0x1402245ba test rax, rax ; +0x2d, 0x1402245bd jnz loc_14022465F ; +0x30, 0x1402245c0 mov edx, ebx ; +0x36, 0x1402245c6 mov rcx, rsi ; +0x38, 0x1402245c8 call GJBaseGameLayer__getGroup ; +0x3b, 0x1402245cb mov rcx, rax ; +0x40, 0x1402245d0 mov rbx, rax ; +0x43, 0x1402245d3 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x46, 0x1402245d6 test eax, eax ; +0x4c, 0x1402245dc jz short loc_14022465F ; +0x4e, 0x1402245de imul rcx, cs:qword_1406C2E90, 343FDh ; +0x50, 0x1402245e0 movaps [rsp+38h+var_18], xmm6 ; +0x5b, 0x1402245eb xorps xmm6, xmm6 ; +0x60, 0x1402245f0 add rcx, 269EC3h ; +0x63, 0x1402245f3 mov cs:qword_1406C2E90, rcx ; +0x6a, 0x1402245fa shr rcx, 10h ; +0x71, 0x140224601 and ecx, 7FFFh ; +0x75, 0x140224605 cvtsi2ss xmm6, rcx ; +0x7b, 0x14022460b divss xmm6, cs:dword_140623644 ; +0x80, 0x140224610 ucomiss xmm6, cs:flt_140622C24 ; +0x88, 0x140224618 jp short loc_140224626 ; +0x8f, 0x14022461f jnz short loc_140224626 ; +0x91, 0x140224621 xorps xmm6, xmm6 ; +0x93, 0x140224623 mov rcx, rbx ; +0x96, 0x140224626 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x99, 0x140224629 xorps xmm0, xmm0 ; +0x9f, 0x14022462f mov eax, eax ; +0xa2, 0x140224632 mov rcx, rbx ; +0xa4, 0x140224634 cvtsi2ss xmm0, rax ; +0xa7, 0x140224637 mulss xmm0, xmm6 ; +0xac, 0x14022463c cvttss2si edx, xmm0 ; +0xb0, 0x140224640 movaps xmm6, [rsp+38h+var_18] ; +0xb4, 0x140224644 mov rdi, [rsp+38h+arg_0] ; +0xb9, 0x140224649 mov rbx, [rsp+38h+arg_8] ; +0xbe, 0x14022464e add rsp, 30h ; +0xc3, 0x140224653 pop rsi ; +0xc7, 0x140224657 jmp cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xc8, 0x140224658 mov rbx, [rsp+38h+arg_8] ; +0xcf, 0x14022465f mov rax, rdi ; +0xd4, 0x140224664 mov rdi, [rsp+38h+arg_0] ; +0xd7, 0x140224667 add rsp, 30h ; +0xdc, 0x14022466c pop rsi ; +0xe0, 0x140224670 retn ; +0xe1, 0x140224671