{"type": "func", "start": 4751020, "end": 4751230, "name": "GJBaseGameLayer::updateZoom", "pseudocode": "// \n// GJBaseGameLayer::updateZoom from 0x487eac to 0x487f7e (210 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::onPlaytest @ 0x36e9f4\n// > EffectGameObject::triggerObject @ 0x3ee460\n// > GJBaseGameLayer::resetCamera @ 0x48803a\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\nvoid GJBaseGameLayer::updateZoom(GJBaseGameLayer *a1, float a2, float a3, int a4, float a5, int a6, int a7)\n{\n  float v8; // s16\n  GJGameState *p_m_gameState; // r0\n  _BOOL4 m_skipArtReload; // r3\n  PlayerObject *m_player1; // r5\n  GameObjectType ActiveMode; // r0\n\n  v8 = a2;\n  if ( a2 > 0.0 )\n  {\n    if ( a2 >= 3.0 )\n    {\n      v8 = 3.0;\n    }\n    else if ( a2 <= 0.4 )\n    {\n      v8 = 0.4;\n    }\n  }\n  else\n  {\n    v8 = 1.0;\n  }\n  a1->m_gameState.m_targetCameraZoom = v8;\n  p_m_gameState = &a1->m_gameState;\n  if ( a3 <= 0.0 )\n  {\n    GJGameState::stopTweenAction(p_m_gameState, 14);\n    a1->m_gameState.m_cameraZoom = v8;\n  }\n  else\n  {\n    GJGameState::tweenValue(p_m_gameState, a1->m_gameState.m_cameraZoom, v8, 14, a3, a4, a5, a6, a7);\n  }\n  m_skipArtReload = a1->m_skipArtReload;\n  a1->m_gameState.m_unkUint1 = a3;\n  if ( !m_skipArtReload && a1->m_gameState.m_unkBool7 )\n  {\n    m_player1 = a1->m_player1;\n    ActiveMode = PlayerObject::getActiveMode(m_player1);\n    GJBaseGameLayer::updateDualGround(a1, m_player1, ActiveMode, a3 == 0.0, a3);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::updateZoom from 0x487eac to 0x487f7e (210 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::onPlaytest @ 0x36e9f4\n; > EffectGameObject::triggerObject @ 0x3ee460\n; > GJBaseGameLayer::resetCamera @ 0x48803a\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            {R4,R5,LR}                                             ; +0x0, 0x487eac\nMOV             R4, R0                                                 ; +0x2, 0x487eae\nVPUSH           {D8}                                                   ; +0x4, 0x487eb0\nVMOV            S16, R1                                                ; +0x8, 0x487eb4\nSUB             SP, SP, #0x1C; float                                   ; +0xc, 0x487eb8\nVMOV            S17, R2                                                ; +0xe, 0x487eba\nVCMPE.F32       S16, #0.0                                              ; +0x12, 0x487ebe\nLDR             R5, [SP,#0x1C+arg_0]                                   ; +0x16, 0x487ec2\nLDR             R1, [SP,#0x1C+arg_4]                                   ; +0x18, 0x487ec4\nLDR             R2, [SP,#0x1C+arg_8]                                   ; +0x1a, 0x487ec6\nVMRS            APSR_nzcv, FPSCR                                       ; +0x1c, 0x487ec8\nBLS             loc_487EF8                                             ; +0x20, 0x487ecc\nVMOV.F32        S15, #3.0                                              ; +0x22, 0x487ece\nVCMPE.F32       S16, S15                                               ; +0x26, 0x487ed2\nVMRS            APSR_nzcv, FPSCR                                       ; +0x2a, 0x487ed6\nBPL             loc_487EF0                                             ; +0x2e, 0x487eda\nVLDR            S15, =0.4                                              ; +0x30, 0x487edc\nVCMPE.F32       S16, S15                                               ; +0x34, 0x487ee0\nVMRS            APSR_nzcv, FPSCR                                       ; +0x38, 0x487ee4\nIT LE                                                                  ; +0x3c, 0x487ee8\nVMOVLE.F32      S16, S15                                               ; +0x3e, 0x487eea\nB               loc_487EFC                                             ; +0x42, 0x487eee\nBMI             loc_487EFC                                             ; +0x44, 0x487ef0\nVMOV.F32        S16, S15                                               ; +0x46, 0x487ef2\nB               loc_487EFC                                             ; +0x4a, 0x487ef6\nVMOV.F32        S16, #1.0                                              ; +0x4c, 0x487ef8\nVSTR            S16, [R4,#0x14C]                                       ; +0x50, 0x487efc\nADD.W           R0, R4, #0x148; this                                   ; +0x54, 0x487f00\nVCMPE.F32       S17, #0.0                                              ; +0x58, 0x487f04\nVMRS            APSR_nzcv, FPSCR                                       ; +0x5c, 0x487f08\nBLE             loc_487F2A                                             ; +0x60, 0x487f0c\nSTR             R3, [SP,#0x1C+var_18]; int                             ; +0x62, 0x487f0e\nMOVS            R3, #0xE; int                                          ; +0x64, 0x487f10\nSTR             R1, [SP,#0x1C+var_10]; int                             ; +0x66, 0x487f12\nSTR             R2, [SP,#0x1C+var_C]; int                              ; +0x68, 0x487f14\nVSTR            S17, [SP,#0x1C+var_1C]                                 ; +0x6a, 0x487f16\nSTR             R5, [SP,#0x1C+var_14]; float                           ; +0x6e, 0x487f1a\nLDR.W           R1, [R4,#0x148]; float                                 ; +0x70, 0x487f1c\nVMOV            R2, S16; float                                         ; +0x74, 0x487f20\nBL              _ZN11GJGameState10tweenValueEffififii; GJGameState::tweenValue(float,float,int,float,int,float,int,int) ; +0x78, 0x487f24\nB               loc_487F34                                             ; +0x7c, 0x487f28\nMOVS            R1, #0xE; int                                          ; +0x7e, 0x487f2a\nBL              _ZN11GJGameState15stopTweenActionEi; GJGameState::stopTweenAction(int) ; +0x80, 0x487f2c\nVSTR            S16, [R4,#0x148]                                       ; +0x84, 0x487f30\nMOVW            R3, #0x2AE9                                            ; +0x88, 0x487f34\nLDRB            R3, [R4,R3]                                            ; +0x8c, 0x487f38\nVSTR            S17, [R4,#0x294]                                       ; +0x8e, 0x487f3a\nCBNZ            R3, loc_487F76                                         ; +0x92, 0x487f3e\nLDRB.W          R3, [R4,#0x2B0]                                        ; +0x94, 0x487f40\nCBZ             R3, loc_487F76                                         ; +0x98, 0x487f44\nLDR.W           R5, [R4,#0x8B8]                                        ; +0x9a, 0x487f46\nMOV             R0, R5; this                                           ; +0x9e, 0x487f4a\nBL              _ZN12PlayerObject13getActiveModeEv; PlayerObject::getActiveMode(void) ; +0xa0, 0x487f4c\nVCMP.F32        S17, #0.0                                              ; +0xa4, 0x487f50\nVSTR            S17, [SP,#0x1C+arg_0]                                  ; +0xa8, 0x487f54\nMOV             R1, R5; PlayerObject *                                 ; +0xac, 0x487f58\nVMRS            APSR_nzcv, FPSCR                                       ; +0xae, 0x487f5a\nITE EQ                                                                 ; +0xb2, 0x487f5e\nMOVEQ           R3, #1                                                 ; +0xb4, 0x487f60\nMOVNE           R3, #0; bool                                           ; +0xb6, 0x487f62\nMOV             R2, R0; int                                            ; +0xb8, 0x487f64\nMOV             R0, R4; this                                           ; +0xba, 0x487f66\nADD             SP, SP, #0x1C                                          ; +0xbc, 0x487f68\nVPOP            {D8}                                                   ; +0xbe, 0x487f6a\nPOP.W           {R4,R5,LR}                                             ; +0xc2, 0x487f6e\nB.W             _ZN15GJBaseGameLayer16updateDualGroundEP12PlayerObjectibf; GJBaseGameLayer::updateDualGround(PlayerObject *,int,bool,float) ; +0xc6, 0x487f72\nADD             SP, SP, #0x1C                                          ; +0xca, 0x487f76\nVPOP            {D8}                                                   ; +0xcc, 0x487f78\nPOP             {R4,R5,PC}                                             ; +0xd0, 0x487f7c", "xrefs": ["LevelEditorLayer::onPlaytest @ 0x36e9f4", "EffectGameObject::triggerObject @ 0x3ee460", "GJBaseGameLayer::resetCamera @ 0x48803a"], "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"}