{"type": "func", "start": 4649016, "end": 4649114, "name": "GJBaseGameLayer::getTargetFlyCameraY", "pseudocode": "// \n// GJBaseGameLayer::getTargetFlyCameraY from 0x46f038 to 0x46f09a (98 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::animateInDualGroundNew @ 0x487bfe\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  StartPosObject *m_lastActivatedPortal2; // r1\n  _DWORD v5[2]; // [sp+4h] [bp-Ch] BYREF\n\n  v5[0] = a2;\n  if ( a1->m_gameState.m_isDualMode )\n  {\n    m_lastActivatedPortal2 = (StartPosObject *)a1->m_gameState.m_lastActivatedPortal2;\n    if ( !m_lastActivatedPortal2 )\n    {\n      m_lastActivatedPortal2 = a1->m_startPosObject;\n      if ( !m_lastActivatedPortal2 )\n      {\n        if ( !a2 )\n          return 0.0;\n        goto LABEL_6;\n      }\n    }\n    goto LABEL_8;\n  }\n  if ( a2 )\n  {\nLABEL_6:\n    a2->getStartPos((cocos2d::CCPoint *)v5, a2);\n    return *(float *)&v5[1];\n  }\n  m_lastActivatedPortal2 = a1->m_startPosObject;\n  if ( m_lastActivatedPortal2 )\n  {\nLABEL_8:\n    ((void (__fastcall *)(_DWORD *))m_lastActivatedPortal2->getStartPos)(v5);\n    return *(float *)&v5[1];\n  }\n  return 0.0;\n}", "assembly": "; \n; GJBaseGameLayer::getTargetFlyCameraY from 0x46f038 to 0x46f09a (98 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::animateInDualGroundNew @ 0x487bfe\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\nPUSH            {R0-R4,LR}                                             ; +0x0, 0x46f038\nMOV             R3, R1                                                 ; +0x2, 0x46f03a\nLDR             R2, =(__stack_chk_guard_ptr - 0x46F042)                ; +0x4, 0x46f03c\nADD             R2, PC; __stack_chk_guard_ptr                          ; +0x6, 0x46f03e\nLDR             R2, [R2]; __stack_chk_guard                            ; +0x8, 0x46f040\nLDR             R1, [R2]                                               ; +0xa, 0x46f042\nMOV             R4, R2                                                 ; +0xc, 0x46f044\nSTR             R1, [SP,#0x10+var_4]                                   ; +0xe, 0x46f046\nLDRB.W          R1, [R0,#0x372]                                        ; +0x10, 0x46f048\nCBZ             R1, loc_46F05E                                         ; +0x14, 0x46f04c\nLDR.W           R1, [R0,#0x35C]                                        ; +0x16, 0x46f04e\nCBNZ            R1, loc_46F076                                         ; +0x1a, 0x46f052\nMOVW            R2, #0x2A84                                            ; +0x1c, 0x46f054\nLDR             R1, [R0,R2]                                            ; +0x20, 0x46f058\nCBNZ            R1, loc_46F076                                         ; +0x22, 0x46f05a\nB               loc_46F084                                             ; +0x24, 0x46f05c\nCBZ             R3, loc_46F06E                                         ; +0x26, 0x46f05e\nLDR             R2, [R3]                                               ; +0x28, 0x46f060\nADD             R0, SP, #0x10+var_C                                    ; +0x2a, 0x46f062\nMOV             R1, R3                                                 ; +0x2c, 0x46f064\nLDR.W           R2, [R2,#0x384]                                        ; +0x2e, 0x46f066\nBLX             R2                                                     ; +0x32, 0x46f06a\nB               loc_46F080                                             ; +0x34, 0x46f06c\nMOVW            R3, #0x2A84                                            ; +0x36, 0x46f06e\nLDR             R1, [R0,R3]                                            ; +0x3a, 0x46f072\nCBZ             R1, loc_46F088                                         ; +0x3c, 0x46f074\nLDR             R3, [R1]                                               ; +0x3e, 0x46f076\nADD             R0, SP, #0x10+var_C                                    ; +0x40, 0x46f078\nLDR.W           R3, [R3,#0x384]                                        ; +0x42, 0x46f07a\nBLX             R3                                                     ; +0x46, 0x46f07e\nLDR             R0, [SP,#0x10+var_8]                                   ; +0x48, 0x46f080\nB               loc_46F08A                                             ; +0x4a, 0x46f082\nCMP             R3, #0                                                 ; +0x4c, 0x46f084\nBNE             loc_46F060                                             ; +0x4e, 0x46f086\nMOVS            R0, #0                                                 ; +0x50, 0x46f088\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x52, 0x46f08a\nLDR             R3, [R4]                                               ; +0x54, 0x46f08c\nCMP             R2, R3                                                 ; +0x56, 0x46f08e\nBEQ             loc_46F096                                             ; +0x58, 0x46f090\nBLX             __stack_chk_fail                                       ; +0x5a, 0x46f092\nADD             SP, SP, #0x10                                          ; +0x5e, 0x46f096\nPOP             {R4,PC}                                                ; +0x60, 0x46f098", "xrefs": ["GJBaseGameLayer::animateInDualGroundNew @ 0x487bfe"], "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"}