{"type": "func", "start": 8780848, "end": 8781000, "name": "GJBaseGameLayer::tryGetObject", "pseudocode": "// \n// GJBaseGameLayer::tryGetObject from 0x85fc30 to 0x85fcc8 (152 bytes)\n// \n// 21 xrefs:\n// > EditorUI::findAndSelectObject @ 0x6be5ac\n// > GJBaseGameLayer::resetPlayer @ 0x85fdf8\n// > GJBaseGameLayer::getMoveTargetDelta @ 0x85ff0c\n// > GJBaseGameLayer::getMoveTargetDelta @ 0x85ff80\n// > GJBaseGameLayer::getRotateCommandTargets @ 0x85ffbc\n// > GJBaseGameLayer::getRotateCommandTargets @ 0x85ffd0\n// > GJBaseGameLayer::getRotateCommandTargets @ 0x86002c\n// > GJBaseGameLayer::getFollowSpeedVal @ 0x8637e8\n// > GJBaseGameLayer::getFollowSpeedVal @ 0x8638cc\n// > GJBaseGameLayer::spawnParticleTrigger @ 0x867a94\n// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x86cd54\n// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x86cd68\n// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x86cd7c\n// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x86cd90\n// > GJBaseGameLayer::triggerRotateCommand @ 0x86ceb4\n// > GJBaseGameLayer::triggerRotateCommand @ 0x86cec4\n// > GJBaseGameLayer::triggerRotateCommand @ 0x86ced4\n// > GJBaseGameLayer::triggerRotateCommand @ 0x86cee4\n// > GJBaseGameLayer::triggerDynamicMoveCommand @ 0x874d58\n// > GJBaseGameLayer::triggerDynamicMoveCommand @ 0x874e54\n// > <???> @ 0x50d48\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nGameObject *GJBaseGameLayer::tryGetObject(GJBaseGameLayer *a1, int a2)\n{\n  GameObject *result; // x0\n  cocos2d::CCArray *Group; // x19\n  float v6; // s0\n  unsigned int v7; // w0\n  float v8; // [xsp+20h] [xbp+20h]\n\n  if ( a2 <= 0 )\n    return nullptr;\n  result = GJBaseGameLayer::tryGetMainObject(a1, a2);\n  if ( result )\n    return result;\n  Group = GJBaseGameLayer::getGroup(a1, a2);\n  if ( !(unsigned int)cocos2d::CCArray::count(Group) )\n    return nullptr;\n  v6 = GameToolbox::fast_rand_0_1();\n  if ( v6 == 1.0 )\n    v6 = 0.0;\n  v8 = v6;\n  v7 = cocos2d::CCArray::count(Group);\n  return (GameObject *)cocos2d::CCArray::objectAtIndex(Group, (int)(float)((float)v7 * v8));\n}", "assembly": "; \n; GJBaseGameLayer::tryGetObject from 0x85fc30 to 0x85fcc8 (152 bytes)\n; \n; 21 xrefs:\n; > EditorUI::findAndSelectObject @ 0x6be5ac\n; > GJBaseGameLayer::resetPlayer @ 0x85fdf8\n; > GJBaseGameLayer::getMoveTargetDelta @ 0x85ff0c\n; > GJBaseGameLayer::getMoveTargetDelta @ 0x85ff80\n; > GJBaseGameLayer::getRotateCommandTargets @ 0x85ffbc\n; > GJBaseGameLayer::getRotateCommandTargets @ 0x85ffd0\n; > GJBaseGameLayer::getRotateCommandTargets @ 0x86002c\n; > GJBaseGameLayer::getFollowSpeedVal @ 0x8637e8\n; > GJBaseGameLayer::getFollowSpeedVal @ 0x8638cc\n; > GJBaseGameLayer::spawnParticleTrigger @ 0x867a94\n; > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x86cd54\n; > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x86cd68\n; > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x86cd7c\n; > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x86cd90\n; > GJBaseGameLayer::triggerRotateCommand @ 0x86ceb4\n; > GJBaseGameLayer::triggerRotateCommand @ 0x86cec4\n; > GJBaseGameLayer::triggerRotateCommand @ 0x86ced4\n; > GJBaseGameLayer::triggerRotateCommand @ 0x86cee4\n; > GJBaseGameLayer::triggerDynamicMoveCommand @ 0x874d58\n; > GJBaseGameLayer::triggerDynamicMoveCommand @ 0x874e54\n; > <???> @ 0x50d48\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x85fc30\nCMP             W1, WZR                                                ; +0x4, 0x85fc34\nMOV             X29, SP                                                ; +0x8, 0x85fc38\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0xc, 0x85fc3c\nB.LE            loc_85FC78                                             ; +0x10, 0x85fc40\nMOV             X20, X0                                                ; +0x14, 0x85fc44\nMOV             W19, W1                                                ; +0x18, 0x85fc48\nBL              _ZN15GJBaseGameLayer16tryGetMainObjectEi; GJBaseGameLayer::tryGetMainObject(int) ; +0x1c, 0x85fc4c\nCBZ             X0, loc_85FC60                                         ; +0x20, 0x85fc50\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x24, 0x85fc54\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x28, 0x85fc58\nRET                                                                    ; +0x2c, 0x85fc5c\nMOV             W1, W19; int                                           ; +0x30, 0x85fc60\nMOV             X0, X20; this                                          ; +0x34, 0x85fc64\nBL              _ZN15GJBaseGameLayer8getGroupEi; GJBaseGameLayer::getGroup(int) ; +0x38, 0x85fc68\nMOV             X19, X0                                                ; +0x3c, 0x85fc6c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x40, 0x85fc70\nCBNZ            W0, loc_85FC88                                         ; +0x44, 0x85fc74\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x48, 0x85fc78\nMOV             X0, #0                                                 ; +0x4c, 0x85fc7c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x50, 0x85fc80\nRET                                                                    ; +0x54, 0x85fc84\nBL              _ZN11GameToolbox13fast_rand_0_1Ev; GameToolbox::fast_rand_0_1(void) ; +0x58, 0x85fc88\nFMOV            S1, #1.0                                               ; +0x5c, 0x85fc8c\nFCMP            S0, S1                                                 ; +0x60, 0x85fc90\nB.NE            loc_85FC9C                                             ; +0x64, 0x85fc94\nFMOV            S0, WZR                                                ; +0x68, 0x85fc98\nMOV             X0, X19; this                                          ; +0x6c, 0x85fc9c\nSTR             Q0, [X29,#0x30+var_10]                                 ; +0x70, 0x85fca0\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x74, 0x85fca4\nUCVTF           S1, W0                                                 ; +0x78, 0x85fca8\nMOV             X0, X19; this                                          ; +0x7c, 0x85fcac\nLDR             Q0, [X29,#0x30+var_10]                                 ; +0x80, 0x85fcb0\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x84, 0x85fcb4\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x88, 0x85fcb8\nFMUL            S0, S1, S0                                             ; +0x8c, 0x85fcbc\nFCVTZS          W1, S0; unsigned int                                   ; +0x90, 0x85fcc0\nB               _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x94, 0x85fcc4", "xrefs": ["EditorUI::findAndSelectObject @ 0x6be5ac", "GJBaseGameLayer::resetPlayer @ 0x85fdf8", "GJBaseGameLayer::getMoveTargetDelta @ 0x85ff0c", "GJBaseGameLayer::getMoveTargetDelta @ 0x85ff80", "GJBaseGameLayer::getRotateCommandTargets @ 0x85ffbc", "GJBaseGameLayer::getRotateCommandTargets @ 0x85ffd0", "GJBaseGameLayer::getRotateCommandTargets @ 0x86002c", "GJBaseGameLayer::getFollowSpeedVal @ 0x8637e8", "GJBaseGameLayer::getFollowSpeedVal @ 0x8638cc", "GJBaseGameLayer::spawnParticleTrigger @ 0x867a94", "GJBaseGameLayer::triggerDynamicRotateCommand @ 0x86cd54", "GJBaseGameLayer::triggerDynamicRotateCommand @ 0x86cd68", "GJBaseGameLayer::triggerDynamicRotateCommand @ 0x86cd7c", "GJBaseGameLayer::triggerDynamicRotateCommand @ 0x86cd90", "GJBaseGameLayer::triggerRotateCommand @ 0x86ceb4", "GJBaseGameLayer::triggerRotateCommand @ 0x86cec4", "GJBaseGameLayer::triggerRotateCommand @ 0x86ced4", "GJBaseGameLayer::triggerRotateCommand @ 0x86cee4", "GJBaseGameLayer::triggerDynamicMoveCommand @ 0x874d58", "GJBaseGameLayer::triggerDynamicMoveCommand @ 0x874e54", "<???> @ 0x50d48"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}