{"type": "func", "start": 5371026672, "end": 5371027058, "name": "GJBaseGameLayer::updateZoom", "pseudocode": "// \n// GJBaseGameLayer::updateZoom from 0x140235cf0 to 0x140235e72 (386 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::resetCamera @ 0x14023fc44\n// > LevelEditorLayer::onPlaytest @ 0x1402dfdb2\n// > EffectGameObject::triggerObject @ 0x1404a7354\n// > <???> @ 0x1406ce088\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; // xmm6_4\n  float v9; // xmm0_4\n  bool v10; // zf\n  PlayerObject *m_player1; // rdx\n  int v12; // r8d\n  float v13; // [rsp+20h] [rbp-68h]\n  int v14; // [rsp+98h] [rbp+10h] BYREF\n\n  if ( a2 <= 0.0 )\n    a2 = 1.0;\n  v8 = 0.40000001;\n  v9 = fminf(3.0, a2);\n  if ( v9 >= 0.40000001 )\n    v8 = v9;\n  a1->m_gameState.m_targetCameraZoom = v8;\n  if ( a3 <= 0.0 )\n  {\n    v14 = 14;\n    sub_14024AC30(&a1->m_gameState.m_tweenActions, &v14);\n    a1->m_gameState.m_cameraZoom = v8;\n  }\n  else\n  {\n    GJGameState::tweenValue(&a1->m_gameState, a1->m_gameState.m_cameraZoom, v8, 14, a3, a4, a5, a6, a7);\n  }\n  v10 = !a1->m_skipArtReload;\n  a1->m_gameState.m_unkUint1 = a3;\n  if ( v10 && a1->m_gameState.m_unkBool7 )\n  {\n    m_player1 = a1->m_player1;\n    v12 = 6;\n    if ( m_player1->m_isShip || m_player1->m_isBird || m_player1->m_isDart || m_player1->m_isSwing )\n    {\n      v12 = 5;\n    }\n    else if ( m_player1->m_isBall )\n    {\n      v12 = 16;\n    }\n    else if ( m_player1->m_isSpider )\n    {\n      v12 = 33;\n    }\n    GJBaseGameLayer::updateDualGround(a1, m_player1, v12, a3 == 0.0, v13);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::updateZoom from 0x140235cf0 to 0x140235e72 (386 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::resetCamera @ 0x14023fc44\n; > LevelEditorLayer::onPlaytest @ 0x1402dfdb2\n; > EffectGameObject::triggerObject @ 0x1404a7354\n; > <???> @ 0x1406ce088\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140235cf0\npush    rdi                                                            ; +0x5, 0x140235cf5\nsub     rsp, 80h                                                       ; +0x6, 0x140235cf6\nmovaps  [rsp+88h+var_18], xmm6                                         ; +0xd, 0x140235cfd\nmov     rbx, rcx                                                       ; +0x12, 0x140235d02\nmovaps  [rsp+88h+var_28], xmm7                                         ; +0x15, 0x140235d05\nmovaps  xmm7, xmm2                                                     ; +0x1a, 0x140235d0a\nmovaps  [rsp+88h+var_38], xmm8                                         ; +0x1d, 0x140235d0d\nxorps   xmm8, xmm8                                                     ; +0x23, 0x140235d13\ncomiss  xmm8, xmm1                                                     ; +0x27, 0x140235d17\njb      short loc_140235D25                                            ; +0x2b, 0x140235d1b\nmovss   xmm1, cs:flt_140622C24                                         ; +0x2d, 0x140235d1d\nmovss   xmm0, cs:flt_140622F28                                         ; +0x35, 0x140235d25\nmovss   xmm6, cs:dword_140622AD0                                       ; +0x3d, 0x140235d2d\nminss   xmm0, xmm1                                                     ; +0x45, 0x140235d35\ncomiss  xmm6, xmm0                                                     ; +0x49, 0x140235d39\nja      short loc_140235D41                                            ; +0x4c, 0x140235d3c\nmovaps  xmm6, xmm0                                                     ; +0x4e, 0x140235d3e\ncomiss  xmm7, xmm8                                                     ; +0x51, 0x140235d41\nmovss   dword ptr [rcx+1ACh], xmm6                                     ; +0x55, 0x140235d45\njbe     short loc_140235D9E                                            ; +0x5d, 0x140235d4d\nmov     eax, [rsp+88h+arg_30]                                          ; +0x5f, 0x140235d4f\nmovaps  xmm2, xmm6                                                     ; +0x66, 0x140235d56\nmovss   xmm0, [rsp+88h+arg_20]                                         ; +0x69, 0x140235d59\nmovss   xmm1, dword ptr [rcx+1A8h]                                     ; +0x72, 0x140235d62\nadd     rcx, 1A8h                                                      ; +0x7a, 0x140235d6a\nmov     [rsp+88h+var_48], eax                                          ; +0x81, 0x140235d71\nmov     eax, [rsp+88h+arg_28]                                          ; +0x85, 0x140235d75\nmov     [rsp+88h+var_50], eax                                          ; +0x8c, 0x140235d7c\nmovss   [rsp+88h+var_58], xmm0                                         ; +0x90, 0x140235d80\nmov     [rsp+88h+var_60], r9d                                          ; +0x96, 0x140235d86\nmov     r9d, 0Eh                                                       ; +0x9b, 0x140235d8b\nmovss   [rsp+88h+var_68], xmm7                                         ; +0xa1, 0x140235d91\ncall    GJGameState__tweenValue                                        ; +0xa7, 0x140235d97\njmp     short loc_140235DC5                                            ; +0xac, 0x140235d9c\nadd     rcx, 428h                                                      ; +0xae, 0x140235d9e\nmov     [rsp+88h+arg_8], 0Eh                                           ; +0xb5, 0x140235da5\nlea     rdx, [rsp+88h+arg_8]                                           ; +0xc0, 0x140235db0\ncall    sub_14024AC30                                                  ; +0xc8, 0x140235db8\nmovss   dword ptr [rbx+1A8h], xmm6                                     ; +0xcd, 0x140235dbd\ncmp     byte ptr [rbx+3225h], 0                                        ; +0xd5, 0x140235dc5\nmovss   dword ptr [rbx+2F4h], xmm7                                     ; +0xdc, 0x140235dcc\njnz     short loc_140235E51                                            ; +0xe4, 0x140235dd4\ncmp     byte ptr [rbx+310h], 0                                         ; +0xe6, 0x140235dd6\njz      short loc_140235E51                                            ; +0xed, 0x140235ddd\nucomiss xmm7, xmm8                                                     ; +0xef, 0x140235ddf\njp      short loc_140235DEC                                            ; +0xf3, 0x140235de3\njnz     short loc_140235DEC                                            ; +0xf5, 0x140235de5\nmov     r9b, 1                                                         ; +0xf7, 0x140235de7\njmp     short loc_140235DEF                                            ; +0xfa, 0x140235dea\nxor     r9d, r9d                                                       ; +0xfc, 0x140235dec\nmov     rdx, [rbx+0DA0h]                                               ; +0xff, 0x140235def\nmov     r8d, 6                                                         ; +0x106, 0x140235df6\ncmp     byte ptr [rdx+9B9h], 0                                         ; +0x10c, 0x140235dfc\njnz     short loc_140235E43                                            ; +0x113, 0x140235e03\ncmp     byte ptr [rdx+9BAh], 0                                         ; +0x115, 0x140235e05\njnz     short loc_140235E43                                            ; +0x11c, 0x140235e0c\ncmp     byte ptr [rdx+9BCh], 0                                         ; +0x11e, 0x140235e0e\njnz     short loc_140235E43                                            ; +0x125, 0x140235e15\ncmp     byte ptr [rdx+9C4h], 0                                         ; +0x127, 0x140235e17\njnz     short loc_140235E43                                            ; +0x12e, 0x140235e1e\ncmp     byte ptr [rdx+9BBh], 0                                         ; +0x130, 0x140235e20\njz      short loc_140235E31                                            ; +0x137, 0x140235e27\nmov     r8d, 10h                                                       ; +0x139, 0x140235e29\njmp     short loc_140235E49                                            ; +0x13f, 0x140235e2f\ncmp     byte ptr [rdx+9BEh], 0                                         ; +0x141, 0x140235e31\nmov     eax, 21h ; '!'                                                 ; +0x148, 0x140235e38\ncmovnz  r8d, eax                                                       ; +0x14d, 0x140235e3d\njmp     short loc_140235E49                                            ; +0x151, 0x140235e41\nmov     r8d, 5                                                         ; +0x153, 0x140235e43\nmov     rcx, rbx                                                       ; +0x159, 0x140235e49\ncall    GJBaseGameLayer__updateDualGround                              ; +0x15c, 0x140235e4c\nmov     rbx, [rsp+88h+arg_0]                                           ; +0x161, 0x140235e51\nmovaps  xmm6, [rsp+88h+var_18]                                         ; +0x169, 0x140235e59\nmovaps  xmm7, [rsp+88h+var_28]                                         ; +0x16e, 0x140235e5e\nmovaps  xmm8, [rsp+88h+var_38]                                         ; +0x173, 0x140235e63\nadd     rsp, 80h                                                       ; +0x179, 0x140235e69\npop     rdi                                                            ; +0x180, 0x140235e70\nretn                                                                   ; +0x181, 0x140235e71", "xrefs": ["GJBaseGameLayer::resetCamera @ 0x14023fc44", "LevelEditorLayer::onPlaytest @ 0x1402dfdb2", "EffectGameObject::triggerObject @ 0x1404a7354", "<???> @ 0x1406ce088"], "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"}