{"type": "func", "start": 5372035760, "end": 5372035986, "name": "GJBaseGameLayer::tryGetObject", "pseudocode": "// \n// GJBaseGameLayer::tryGetObject from 0x14032c2b0 to 0x14032c392 (226 bytes)\n// \n// 25 xrefs:\n// > GJBaseGameLayer::resetPlayer @ 0x140318ff8\n// > GJBaseGameLayer::triggerMoveCommand @ 0x140326607\n// > GJBaseGameLayer::triggerMoveCommand @ 0x140326631\n// > GJBaseGameLayer::triggerMoveCommand @ 0x140326747\n// > GJBaseGameLayer::triggerMoveCommand @ 0x14032677c\n// > GJBaseGameLayer::triggerRotateCommand @ 0x140326e37\n// > GJBaseGameLayer::triggerRotateCommand @ 0x140326e51\n// > GJBaseGameLayer::triggerRotateCommand @ 0x140326e7c\n// > GJBaseGameLayer::triggerRotateCommand @ 0x140326eff\n// > GJBaseGameLayer::triggerRotateCommand @ 0x140326f0c\n// > GJBaseGameLayer::triggerRotateCommand @ 0x140326f19\n// > GJBaseGameLayer::triggerRotateCommand @ 0x140326f26\n// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x140327028\n// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x14032703e\n// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x140327066\n// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x1403270ca\n// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x1403270e0\n// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x1403270f6\n// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x14032710f\n// > GJBaseGameLayer::getFollowSpeedVal @ 0x1403374da\n// > GJBaseGameLayer::getFollowSpeedVal @ 0x140337516\n// > EffectGameObject::triggerObject @ 0x140649567\n// > <???> @ 0x1408b6084\n// > <???> @ 0x1408b6098\n// > <???> @ 0x14091f2a4\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:30:30 +0000\n// \n\nstruct cocos2d::CCObject *__fastcall GJBaseGameLayer::tryGetObject(__int64 a1, int a2)\n{\n  struct cocos2d::CCObject *MainObject; // rdi\n  struct cocos2d::CCObject *Group; // rbx\n  float v7; // xmm6_4\n  int v8; // eax\n\n  if ( a2 <= 0 )\n    return nullptr;\n  MainObject = GJBaseGameLayer::tryGetMainObject(a1, a2);\n  if ( MainObject )\n    return MainObject;\n  Group = GJBaseGameLayer::getGroup(a1, (unsigned int)a2);\n  if ( !cocos2d::CCArray::count(Group) )\n    return MainObject;\n  qword_14090BF68 = 214013 * qword_14090BF68 + 2531011;\n  v7 = (float)(((unsigned __int64)qword_14090BF68 >> 16) & 0x7FFF) / 32767.0;\n  if ( v7 == 1.0 )\n    v7 = 0.0;\n  v8 = cocos2d::CCArray::count(Group);\n  return cocos2d::CCArray::objectAtIndex(Group, (int)(float)((float)v8 * v7));\n}", "assembly": "; \n; GJBaseGameLayer::tryGetObject from 0x14032c2b0 to 0x14032c392 (226 bytes)\n; \n; 25 xrefs:\n; > GJBaseGameLayer::resetPlayer @ 0x140318ff8\n; > GJBaseGameLayer::triggerMoveCommand @ 0x140326607\n; > GJBaseGameLayer::triggerMoveCommand @ 0x140326631\n; > GJBaseGameLayer::triggerMoveCommand @ 0x140326747\n; > GJBaseGameLayer::triggerMoveCommand @ 0x14032677c\n; > GJBaseGameLayer::triggerRotateCommand @ 0x140326e37\n; > GJBaseGameLayer::triggerRotateCommand @ 0x140326e51\n; > GJBaseGameLayer::triggerRotateCommand @ 0x140326e7c\n; > GJBaseGameLayer::triggerRotateCommand @ 0x140326eff\n; > GJBaseGameLayer::triggerRotateCommand @ 0x140326f0c\n; > GJBaseGameLayer::triggerRotateCommand @ 0x140326f19\n; > GJBaseGameLayer::triggerRotateCommand @ 0x140326f26\n; > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x140327028\n; > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x14032703e\n; > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x140327066\n; > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x1403270ca\n; > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x1403270e0\n; > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x1403270f6\n; > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x14032710f\n; > GJBaseGameLayer::getFollowSpeedVal @ 0x1403374da\n; > GJBaseGameLayer::getFollowSpeedVal @ 0x140337516\n; > EffectGameObject::triggerObject @ 0x140649567\n; > <???> @ 0x1408b6084\n; > <???> @ 0x1408b6098\n; > <???> @ 0x14091f2a4\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:30:30 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14032c2b0\npush    rsi                                                            ; +0x5, 0x14032c2b5\nsub     rsp, 30h                                                       ; +0x6, 0x14032c2b6\nmov     ebx, edx                                                       ; +0xa, 0x14032c2ba\nmov     rsi, rcx                                                       ; +0xc, 0x14032c2bc\ntest    edx, edx                                                       ; +0xf, 0x14032c2bf\njg      short loc_14032C2D0                                            ; +0x11, 0x14032c2c1\nxor     eax, eax                                                       ; +0x13, 0x14032c2c3\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x15, 0x14032c2c5\nadd     rsp, 30h                                                       ; +0x1a, 0x14032c2ca\npop     rsi                                                            ; +0x1e, 0x14032c2ce\nretn                                                                   ; +0x1f, 0x14032c2cf\nmov     [rsp+38h+arg_0], rdi                                           ; +0x20, 0x14032c2d0\ncall    GJBaseGameLayer__tryGetMainObject                              ; +0x25, 0x14032c2d5\nmov     rdi, rax                                                       ; +0x2a, 0x14032c2da\ntest    rax, rax                                                       ; +0x2d, 0x14032c2dd\njnz     loc_14032C37F                                                  ; +0x30, 0x14032c2e0\nmov     edx, ebx                                                       ; +0x36, 0x14032c2e6\nmov     rcx, rsi                                                       ; +0x38, 0x14032c2e8\ncall    GJBaseGameLayer__getGroup                                      ; +0x3b, 0x14032c2eb\nmov     rcx, rax                                                       ; +0x40, 0x14032c2f0\nmov     rbx, rax                                                       ; +0x43, 0x14032c2f3\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x46, 0x14032c2f6\ntest    eax, eax                                                       ; +0x4c, 0x14032c2fc\njz      short loc_14032C37F                                            ; +0x4e, 0x14032c2fe\nimul    rcx, cs:qword_14090BF68, 343FDh                                ; +0x50, 0x14032c300\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x5b, 0x14032c30b\nxorps   xmm6, xmm6                                                     ; +0x60, 0x14032c310\nadd     rcx, 269EC3h                                                   ; +0x63, 0x14032c313\nmov     cs:qword_14090BF68, rcx                                        ; +0x6a, 0x14032c31a\nshr     rcx, 10h                                                       ; +0x71, 0x14032c321\nand     ecx, 7FFFh                                                     ; +0x75, 0x14032c325\ncvtsi2ss xmm6, rcx                                                     ; +0x7b, 0x14032c32b\ndivss   xmm6, cs:dword_140835BDC                                       ; +0x80, 0x14032c330\nucomiss xmm6, cs:flt_140835080                                         ; +0x88, 0x14032c338\njp      short loc_14032C346                                            ; +0x8f, 0x14032c33f\njnz     short loc_14032C346                                            ; +0x91, 0x14032c341\nxorps   xmm6, xmm6                                                     ; +0x93, 0x14032c343\nmov     rcx, rbx                                                       ; +0x96, 0x14032c346\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x99, 0x14032c349\nxorps   xmm0, xmm0                                                     ; +0x9f, 0x14032c34f\nmov     eax, eax                                                       ; +0xa2, 0x14032c352\nmov     rcx, rbx                                                       ; +0xa4, 0x14032c354\ncvtsi2ss xmm0, rax                                                     ; +0xa7, 0x14032c357\nmulss   xmm0, xmm6                                                     ; +0xac, 0x14032c35c\ncvttss2si edx, xmm0                                                    ; +0xb0, 0x14032c360\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xb4, 0x14032c364\nmov     rdi, [rsp+38h+arg_0]                                           ; +0xb9, 0x14032c369\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xbe, 0x14032c36e\nadd     rsp, 30h                                                       ; +0xc3, 0x14032c373\npop     rsi                                                            ; +0xc7, 0x14032c377\njmp     cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xc8, 0x14032c378\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xcf, 0x14032c37f\nmov     rax, rdi                                                       ; +0xd4, 0x14032c384\nmov     rdi, [rsp+38h+arg_0]                                           ; +0xd7, 0x14032c387\nadd     rsp, 30h                                                       ; +0xdc, 0x14032c38c\npop     rsi                                                            ; +0xe0, 0x14032c390\nretn                                                                   ; +0xe1, 0x14032c391", "xrefs": ["GJBaseGameLayer::resetPlayer @ 0x140318ff8", "GJBaseGameLayer::triggerMoveCommand @ 0x140326607", "GJBaseGameLayer::triggerMoveCommand @ 0x140326631", "GJBaseGameLayer::triggerMoveCommand @ 0x140326747", "GJBaseGameLayer::triggerMoveCommand @ 0x14032677c", "GJBaseGameLayer::triggerRotateCommand @ 0x140326e37", "GJBaseGameLayer::triggerRotateCommand @ 0x140326e51", "GJBaseGameLayer::triggerRotateCommand @ 0x140326e7c", "GJBaseGameLayer::triggerRotateCommand @ 0x140326eff", "GJBaseGameLayer::triggerRotateCommand @ 0x140326f0c", "GJBaseGameLayer::triggerRotateCommand @ 0x140326f19", "GJBaseGameLayer::triggerRotateCommand @ 0x140326f26", "GJBaseGameLayer::triggerDynamicRotateCommand @ 0x140327028", "GJBaseGameLayer::triggerDynamicRotateCommand @ 0x14032703e", "GJBaseGameLayer::triggerDynamicRotateCommand @ 0x140327066", "GJBaseGameLayer::triggerDynamicRotateCommand @ 0x1403270ca", "GJBaseGameLayer::triggerDynamicRotateCommand @ 0x1403270e0", "GJBaseGameLayer::triggerDynamicRotateCommand @ 0x1403270f6", "GJBaseGameLayer::triggerDynamicRotateCommand @ 0x14032710f", "GJBaseGameLayer::getFollowSpeedVal @ 0x1403374da", "GJBaseGameLayer::getFollowSpeedVal @ 0x140337516", "EffectGameObject::triggerObject @ 0x140649567", "<???> @ 0x1408b6084", "<???> @ 0x1408b6098", "<???> @ 0x14091f2a4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}