; ; GJBaseGameLayer::tryGetMainObject from 0x140224520 to 0x14022458c (108 bytes) ; ; 31 xrefs: ; > GJBaseGameLayer::playKeyframeAnimation @ 0x140217d46 ; > GJBaseGameLayer::getSavedPosition @ 0x140219312 ; > GJBaseGameLayer::getSavedPosition @ 0x1402193f0 ; > GJBaseGameLayer::triggerMoveCommand @ 0x14021ec87 ; > GJBaseGameLayer::triggerMoveCommand @ 0x14021ecb6 ; > GJBaseGameLayer::triggerTransformCommand @ 0x14021f576 ; > GJBaseGameLayer::updateGradientLayers @ 0x1402203df ; > GJBaseGameLayer::updateGradientLayers @ 0x1402203f0 ; > GJBaseGameLayer::updateGradientLayers @ 0x140220401 ; > GJBaseGameLayer::updateGradientLayers @ 0x140220412 ; > GJBaseGameLayer::positionForShaderTarget @ 0x140223592 ; > GJBaseGameLayer::speedForShaderTarget @ 0x14022364b ; > GJBaseGameLayer::tryGetObject @ 0x1402245b5 ; > GJBaseGameLayer::positionUIObjects @ 0x1402261e8 ; > GJBaseGameLayer::processAreaEffects @ 0x1402287d4 ; > GJBaseGameLayer::processAdvancedFollowAction @ 0x14022f71b ; > GJBaseGameLayer::updateCamera @ 0x14023bde2 ; > GJBaseGameLayer::updateCamera @ 0x14023be45 ; > GJBaseGameLayer::updateCamera @ 0x14023bea5 ; > GJBaseGameLayer::updateCamera @ 0x14023bf11 ; > GJBaseGameLayer::updateCamera @ 0x14023bf72 ; > GJBaseGameLayer::updateStaticCameraPosToGroup @ 0x14023ee6d ; > GJBaseGameLayer::spawnParticleTrigger @ 0x14023ff63 ; > GJBaseGameLayer::volumeForProximityEffect @ 0x14024276f ; > GJBaseGameLayer::visit @ 0x1402477dc ; > GJBaseGameLayer::visit @ 0x1402477ed ; > GJBaseGameLayer::visit @ 0x1402477fe ; > GJBaseGameLayer::visit @ 0x14024780f ; > PlayLayer::activatePlatformerEndTrigger @ 0x1403ac37d ; > PlayLayer::processCheckpoints @ 0x1403b49f0 ; > @ 0x1406cd6d4 ; ; 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_0], rbx ; +0x0, 0x140224520 push rdi ; +0x5, 0x140224525 sub rsp, 20h ; +0x6, 0x140224526 movsxd rbx, edx ; +0xa, 0x14022452a mov rdi, rcx ; +0xd, 0x14022452d test edx, edx ; +0x10, 0x140224530 jle short loc_14022457F ; +0x12, 0x140224532 mov rcx, [rcx+0F60h] ; +0x14, 0x140224534 mov rdx, rbx ; +0x1b, 0x14022453b call cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x1e, 0x14022453e test rax, rax ; +0x24, 0x140224544 jnz short loc_140224581 ; +0x27, 0x140224547 mov edx, ebx ; +0x29, 0x140224549 mov rcx, rdi ; +0x2b, 0x14022454b call GJBaseGameLayer__getGroup ; +0x2e, 0x14022454e mov rbx, rax ; +0x33, 0x140224553 test rax, rax ; +0x36, 0x140224556 jz short loc_14022457F ; +0x39, 0x140224559 mov rcx, rax ; +0x3b, 0x14022455b call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3e, 0x14022455e cmp eax, 1 ; +0x44, 0x140224564 jnz short loc_14022457F ; +0x47, 0x140224567 xor edx, edx ; +0x49, 0x140224569 mov rcx, rbx ; +0x4b, 0x14022456b mov rbx, [rsp+28h+arg_0] ; +0x4e, 0x14022456e add rsp, 20h ; +0x53, 0x140224573 pop rdi ; +0x57, 0x140224577 jmp cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x58, 0x140224578 xor eax, eax ; +0x5f, 0x14022457f mov rbx, [rsp+28h+arg_0] ; +0x61, 0x140224581 add rsp, 20h ; +0x66, 0x140224586 pop rdi ; +0x6a, 0x14022458a retn ; +0x6b, 0x14022458b