{"type": "func", "start": 4296961536, "end": 4296961672, "name": "GJBaseGameLayer::getTargetFlyCameraY", "pseudocode": "// \n// GJBaseGameLayer::getTargetFlyCameraY from 0x1001e6e00 to 0x1001e6e88 (136 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::animateInDualGroundNew @ 0x1001e6bdc\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 __fastcall GJBaseGameLayer::getTargetFlyCameraY(GJBaseGameLayer *a1, GameObject *a2)\n{\n  StartPosObject *m_lastActivatedPortal2; // x9\n  StartPosObject *m_startPosObject; // x0\n  __int64 v5; // [xsp+8h] [xbp-8h] BYREF\n\n  if ( a1->m_gameState.m_isDualMode\n    && ((m_lastActivatedPortal2 = (StartPosObject *)a1->m_gameState.m_lastActivatedPortal2) != nullptr\n     || (m_lastActivatedPortal2 = a1->m_startPosObject) != nullptr) )\n  {\n    ((void (__fastcall *)(__int64 *__return_ptr, StartPosObject *, GameObject *))m_lastActivatedPortal2->getStartPos)(\n      &v5,\n      m_lastActivatedPortal2,\n      a2);\n  }\n  else if ( a2 )\n  {\n    ((void (__fastcall *)(__int64 *__return_ptr, GameObject *))a2->getStartPos)(&v5, a2);\n  }\n  else\n  {\n    m_startPosObject = a1->m_startPosObject;\n    if ( !m_startPosObject )\n      return 0.0;\n    ((void (__fastcall *)(__int64 *__return_ptr, StartPosObject *))m_startPosObject->getStartPos)(&v5, m_startPosObject);\n  }\n  return *((float *)&v5 + 1);\n}", "assembly": "; \n; GJBaseGameLayer::getTargetFlyCameraY from 0x1001e6e00 to 0x1001e6e88 (136 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::animateInDualGroundNew @ 0x1001e6bdc\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\nSUB             SP, SP, #0x20                                          ; +0x0, 0x1001e6e00\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1001e6e04\nADD             X29, SP, #0x10                                         ; +0x8, 0x1001e6e08\nLDRB            W8, [X0,#0x3F2]                                        ; +0xc, 0x1001e6e0c\nCMP             W8, #1                                                 ; +0x10, 0x1001e6e10\nB.NE            loc_1001E6E40                                          ; +0x14, 0x1001e6e14\nLDR             X9, [X0,#0x3D8]                                        ; +0x18, 0x1001e6e18\nCBNZ            X9, loc_1001E6E28                                      ; +0x1c, 0x1001e6e1c\nLDR             X9, [X0,#0x3018]                                       ; +0x20, 0x1001e6e20\nCBZ             X9, loc_1001E6E40                                      ; +0x24, 0x1001e6e24\nLDR             X8, [X9]                                               ; +0x28, 0x1001e6e28\nLDR             X10, [X8,#0x708]                                       ; +0x2c, 0x1001e6e2c\nADD             X8, SP, #0x10+var_8                                    ; +0x30, 0x1001e6e30\nMOV             X0, X9                                                 ; +0x34, 0x1001e6e34\nBLR             X10                                                    ; +0x38, 0x1001e6e38\nB               loc_1001E6E70                                          ; +0x3c, 0x1001e6e3c\nCBZ             X1, loc_1001E6E58                                      ; +0x40, 0x1001e6e40\nLDR             X8, [X1]                                               ; +0x44, 0x1001e6e44\nLDR             X9, [X8,#0x708]                                        ; +0x48, 0x1001e6e48\nADD             X8, SP, #0x10+var_8                                    ; +0x4c, 0x1001e6e4c\nMOV             X0, X1                                                 ; +0x50, 0x1001e6e50\nB               loc_1001E6E6C                                          ; +0x54, 0x1001e6e54\nLDR             X0, [X0,#0x3018]                                       ; +0x58, 0x1001e6e58\nCBZ             X0, loc_1001E6E80                                      ; +0x5c, 0x1001e6e5c\nLDR             X8, [X0]                                               ; +0x60, 0x1001e6e60\nLDR             X9, [X8,#0x708]                                        ; +0x64, 0x1001e6e64\nADD             X8, SP, #0x10+var_8                                    ; +0x68, 0x1001e6e68\nBLR             X9                                                     ; +0x6c, 0x1001e6e6c\nLDR             S0, [SP,#0x10+var_4]                                   ; +0x70, 0x1001e6e70\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x74, 0x1001e6e74\nADD             SP, SP, #0x20 ; ' '                                    ; +0x78, 0x1001e6e78\nRET                                                                    ; +0x7c, 0x1001e6e7c\nFMOV            S0, WZR                                                ; +0x80, 0x1001e6e80\nB               loc_1001E6E74                                          ; +0x84, 0x1001e6e84", "xrefs": ["GJBaseGameLayer::animateInDualGroundNew @ 0x1001e6bdc"], "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"}