{"type": "func", "start": 8756888, "end": 8757076, "name": "GJBaseGameLayer::getTargetFlyCameraY", "pseudocode": "// \n// GJBaseGameLayer::getTargetFlyCameraY from 0x859e98 to 0x859f54 (188 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::animateInDualGroundNew @ 0x87fcbc\n// > <???> @ 0x579a8\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\nfloat GJBaseGameLayer::getTargetFlyCameraY(GJBaseGameLayer *a1, GameObject *a2)\n{\n  GameObject *m_lastActivatedPortal2; // x2\n  StartPosObject *m_startPosObject; // x0\n  __int64 v5; // [xsp+20h] [xbp+20h] BYREF\n\n  if ( !a1->m_gameState.m_isDualMode )\n  {\n    if ( a2 )\n      goto LABEL_5;\n    m_startPosObject = a1->m_startPosObject;\n    if ( !m_startPosObject )\n      return 0.0;\nLABEL_8:\n    m_startPosObject->getStartPos((const GameObject *)&v5);\n    return *((float *)&v5 + 1);\n  }\n  m_lastActivatedPortal2 = a1->m_gameState.m_lastActivatedPortal2;\n  if ( m_lastActivatedPortal2 )\n  {\n    ((void (__fastcall *)(__int64 *__return_ptr, GameObject *))m_lastActivatedPortal2->getStartPos)(\n      &v5,\n      a1->m_gameState.m_lastActivatedPortal2);\n    return *((float *)&v5 + 1);\n  }\n  m_startPosObject = a1->m_startPosObject;\n  if ( m_startPosObject )\n    goto LABEL_8;\n  if ( !a2 )\n    return 0.0;\nLABEL_5:\n  ((void (__fastcall *)(__int64 *__return_ptr, GameObject *))a2->getStartPos)(&v5, a2);\n  return *((float *)&v5 + 1);\n}", "assembly": "; \n; GJBaseGameLayer::getTargetFlyCameraY from 0x859e98 to 0x859f54 (188 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::animateInDualGroundNew @ 0x87fcbc\n; > <???> @ 0x579a8\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, 0x859e98\nMOV             X29, SP                                                ; +0x4, 0x859e9c\nSTR             X19, [SP,#0x30+var_20]                                 ; +0x8, 0x859ea0\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x859ea4\nLDRB            W2, [X0,#0x412]                                        ; +0x10, 0x859ea8\nLDR             X3, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x14, 0x859eac\nLDR             X3, [X3]                                               ; +0x18, 0x859eb0\nSTR             X3, [X29,#0x30+var_8]                                  ; +0x1c, 0x859eb4\nCBZ             W2, loc_859EE0                                         ; +0x20, 0x859eb8\nLDR             X2, [X0,#0x3F8]                                        ; +0x24, 0x859ebc\nCBZ             X2, loc_859F3C                                         ; +0x28, 0x859ec0\nLDR             X1, [X2]                                               ; +0x2c, 0x859ec4\nADD             X8, X29, #0x30+var_10                                  ; +0x30, 0x859ec8\nMOV             X0, X2                                                 ; +0x34, 0x859ecc\nLDR             X1, [X1,#0x708]                                        ; +0x38, 0x859ed0\nBLR             X1                                                     ; +0x3c, 0x859ed4\nLDR             S0, [X29,#0x30+var_C]                                  ; +0x40, 0x859ed8\nB               loc_859EFC                                             ; +0x44, 0x859edc\nCBZ             X1, loc_859F1C                                         ; +0x48, 0x859ee0\nLDR             X2, [X1]                                               ; +0x4c, 0x859ee4\nMOV             X0, X1                                                 ; +0x50, 0x859ee8\nADD             X8, X29, #0x30+var_10                                  ; +0x54, 0x859eec\nLDR             X1, [X2,#0x708]                                        ; +0x58, 0x859ef0\nBLR             X1                                                     ; +0x5c, 0x859ef4\nLDR             S0, [X29,#0x30+var_C]                                  ; +0x60, 0x859ef8\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x64, 0x859efc\nLDR             X1, [X29,#0x30+var_8]                                  ; +0x68, 0x859f00\nLDR             X0, [X19]                                              ; +0x6c, 0x859f04\nCMP             X1, X0                                                 ; +0x70, 0x859f08\nB.NE            loc_859F50                                             ; +0x74, 0x859f0c\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x78, 0x859f10\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x7c, 0x859f14\nRET                                                                    ; +0x80, 0x859f18\nLDR             X0, [X0,#0x31E8]                                       ; +0x84, 0x859f1c\nCBZ             X0, loc_859F48                                         ; +0x88, 0x859f20\nLDR             X1, [X0]                                               ; +0x8c, 0x859f24\nADD             X8, X29, #0x30+var_10                                  ; +0x90, 0x859f28\nLDR             X1, [X1,#0x708]                                        ; +0x94, 0x859f2c\nBLR             X1                                                     ; +0x98, 0x859f30\nLDR             S0, [X29,#0x30+var_C]                                  ; +0x9c, 0x859f34\nB               loc_859EFC                                             ; +0xa0, 0x859f38\nLDR             X0, [X0,#0x31E8]                                       ; +0xa4, 0x859f3c\nCBNZ            X0, loc_859F24                                         ; +0xa8, 0x859f40\nCBNZ            X1, loc_859EE4                                         ; +0xac, 0x859f44\nFMOV            S0, WZR                                                ; +0xb0, 0x859f48\nB               loc_859EFC                                             ; +0xb4, 0x859f4c\nBL              .__stack_chk_fail                                      ; +0xb8, 0x859f50", "xrefs": ["GJBaseGameLayer::animateInDualGroundNew @ 0x87fcbc", "<???> @ 0x579a8"], "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"}