{"type": "func", "start": 4297051932, "end": 4297052160, "name": "GJBaseGameLayer::updateZoom", "pseudocode": "// \n// GJBaseGameLayer::updateZoom from 0x1001fcf1c to 0x1001fd000 (228 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::resetCamera @ 0x100202aec\n// > LevelEditorLayer::onPlaytest @ 0x100362ae8\n// > EffectGameObject::triggerObject @ 0x100385d44\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 __fastcall GJBaseGameLayer::updateZoom(GJBaseGameLayer *a1, float a2, float a3, int a4, float a5, int a6, int a7)\n{\n  float v9; // s9\n  PlayerObject *m_player1; // x20\n  GameObjectType ActiveMode; // w2\n  int v12; // [xsp+Ch] [xbp-24h] BYREF\n\n  if ( a2 <= 0.0 )\n    a2 = 1.0;\n  v9 = fmaxf(fminf(a2, 3.0), 0.4);\n  a1->m_gameState.m_targetCameraZoom = v9;\n  if ( a3 <= 0.0 )\n  {\n    v12 = 14;\n    sub_10001B104(&a1->m_gameState.m_tweenActions.__table_.__bucket_list_.__ptr_.__value_, &v12);\n    a1->m_gameState.m_cameraZoom = v9;\n  }\n  else\n  {\n    GJGameState::tweenValue(&a1->m_gameState, a1->m_gameState.m_cameraZoom, v9, 14, a3, a4, a5, a6, a7);\n  }\n  a1->m_gameState.m_unkUint1 = a3;\n  if ( !a1->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 0x1001fcf1c to 0x1001fd000 (228 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::resetCamera @ 0x100202aec\n; > LevelEditorLayer::onPlaytest @ 0x100362ae8\n; > EffectGameObject::triggerObject @ 0x100385d44\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, #0x40                                          ; +0x0, 0x1001fcf1c\nSTP             D9, D8, [SP,#0x30+var_20]                              ; +0x4, 0x1001fcf20\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1001fcf24\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1001fcf28\nADD             X29, SP, #0x30                                         ; +0x10, 0x1001fcf2c\nFMOV            S8, S1                                                 ; +0x14, 0x1001fcf30\nMOV             X19, X0                                                ; +0x18, 0x1001fcf34\nFCMP            S0, #0.0                                               ; +0x1c, 0x1001fcf38\nFMOV            S1, #1.0                                               ; +0x20, 0x1001fcf3c\nFCSEL           S0, S0, S1, HI                                         ; +0x24, 0x1001fcf40\nFMOV            S1, #3.0                                               ; +0x28, 0x1001fcf44\nFMINNM          S0, S0, S1                                             ; +0x2c, 0x1001fcf48\nADRP            X8, #dword_10063537C@PAGE                              ; +0x30, 0x1001fcf4c\nLDR             S1, [X8,#dword_10063537C@PAGEOFF]                      ; +0x34, 0x1001fcf50\nFMAXNM          S9, S0, S1                                             ; +0x38, 0x1001fcf54\nSTR             S9, [X0,#0x1AC]                                        ; +0x3c, 0x1001fcf58\nFCMP            S8, #0.0                                               ; +0x40, 0x1001fcf5c\nB.LE            loc_1001FCF90                                          ; +0x44, 0x1001fcf60\nMOV             X4, X3                                                 ; +0x48, 0x1001fcf64\nMOV             X3, X2                                                 ; +0x4c, 0x1001fcf68\nFMOV            S3, S2                                                 ; +0x50, 0x1001fcf6c\nMOV             X2, X1                                                 ; +0x54, 0x1001fcf70\nADD             X0, X19, #0x1A8                                        ; +0x58, 0x1001fcf74\nLDR             S0, [X0]                                               ; +0x5c, 0x1001fcf78\nFMOV            S1, S9                                                 ; +0x60, 0x1001fcf7c\nMOV             W1, #0xE                                               ; +0x64, 0x1001fcf80\nFMOV            S2, S8                                                 ; +0x68, 0x1001fcf84\nBL              GJGameState__tweenValue                                ; +0x6c, 0x1001fcf88\nB               loc_1001FCFA8                                          ; +0x70, 0x1001fcf8c\nMOV             W8, #0xE                                               ; +0x74, 0x1001fcf90\nSTR             W8, [SP,#0x30+var_24]                                  ; +0x78, 0x1001fcf94\nADD             X0, X19, #0x3F8                                        ; +0x7c, 0x1001fcf98\nADD             X1, SP, #0x30+var_24                                   ; +0x80, 0x1001fcf9c\nBL              sub_10001B104                                          ; +0x84, 0x1001fcfa0\nSTR             S9, [X19,#0x1A8]                                       ; +0x88, 0x1001fcfa4\nSTR             S8, [X19,#0x2F4]                                       ; +0x8c, 0x1001fcfa8\nMOV             W8, #0x30B5                                            ; +0x90, 0x1001fcfac\nLDRB            W8, [X19,X8]                                           ; +0x94, 0x1001fcfb0\nTBNZ            W8, #0, loc_1001FCFEC                                  ; +0x98, 0x1001fcfb4\nLDRB            W8, [X19,#0x310]                                       ; +0x9c, 0x1001fcfb8\nCMP             W8, #1                                                 ; +0xa0, 0x1001fcfbc\nB.NE            loc_1001FCFEC                                          ; +0xa4, 0x1001fcfc0\nLDR             X20, [X19,#0xCC8]                                      ; +0xa8, 0x1001fcfc4\nMOV             X0, X20                                                ; +0xac, 0x1001fcfc8\nBL              PlayerObject__getActiveMode                            ; +0xb0, 0x1001fcfcc\nMOV             X2, X0                                                 ; +0xb4, 0x1001fcfd0\nFCMP            S8, #0.0                                               ; +0xb8, 0x1001fcfd4\nCSET            W3, EQ                                                 ; +0xbc, 0x1001fcfd8\nMOV             X0, X19                                                ; +0xc0, 0x1001fcfdc\nMOV             X1, X20                                                ; +0xc4, 0x1001fcfe0\nFMOV            S0, S8                                                 ; +0xc8, 0x1001fcfe4\nBL              GJBaseGameLayer__updateDualGround                      ; +0xcc, 0x1001fcfe8\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xd0, 0x1001fcfec\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xd4, 0x1001fcff0\nLDP             D9, D8, [SP,#0x30+var_20]                              ; +0xd8, 0x1001fcff4\nADD             SP, SP, #0x40 ; '@'                                    ; +0xdc, 0x1001fcff8\nRET                                                                    ; +0xe0, 0x1001fcffc", "xrefs": ["GJBaseGameLayer::resetCamera @ 0x100202aec", "LevelEditorLayer::onPlaytest @ 0x100362ae8", "EffectGameObject::triggerObject @ 0x100385d44"], "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"}