{"type": "func", "start": 5372111552, "end": 5372111935, "name": "GJBaseGameLayer::updateZoom", "pseudocode": "// \n// GJBaseGameLayer::updateZoom from 0x14033eac0 to 0x14033ec3f (383 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::resetCamera @ 0x140349864\n// > LevelEditorLayer::onPlaytest @ 0x1403fe96c\n// > EffectGameObject::triggerObject @ 0x140648e20\n// > <???> @ 0x14091fcb8\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:30:38 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::updateZoom(__int64 a1, float a2, float a3, int a4, int a5, int a6, int a7)\n{\n  float v8; // xmm8_4\n  __int64 result; // rax\n  bool v10; // zf\n  _BYTE *v11; // rdx\n  int v12; // r8d\n  int v13; // [rsp+98h] [rbp+10h] BYREF\n\n  if ( a2 <= 0.0 )\n    a2 = 1.0;\n  v8 = fmaxf(0.40000001, fminf(3.0, a2));\n  *(float *)(a1 + 428) = v8;\n  if ( a3 <= 0.0 )\n  {\n    v13 = 14;\n    result = sub_140355080(a1 + 1064, &v13);\n    *(float *)(a1 + 424) = v8;\n  }\n  else\n  {\n    result = GJGameState::tweenValue(a1 + 424, *(float *)(a1 + 424), v8, 14, SLODWORD(a3), a4, a5, a6, a7);\n  }\n  v10 = *(_BYTE *)(a1 + 13085) == 0;\n  *(float *)(a1 + 756) = a3;\n  if ( v10 && *(_BYTE *)(a1 + 784) )\n  {\n    v11 = *(_BYTE **)(a1 + 3512);\n    v12 = 6;\n    if ( v11[2497] || v11[2498] || v11[2500] || v11[2508] )\n    {\n      v12 = 5;\n    }\n    else if ( v11[2499] )\n    {\n      v12 = 16;\n    }\n    else if ( v11[2502] )\n    {\n      v12 = 33;\n    }\n    return GJBaseGameLayer::updateDualGround(a1, (__int64)v11, v12);\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::updateZoom from 0x14033eac0 to 0x14033ec3f (383 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::resetCamera @ 0x140349864\n; > LevelEditorLayer::onPlaytest @ 0x1403fe96c\n; > EffectGameObject::triggerObject @ 0x140648e20\n; > <???> @ 0x14091fcb8\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:30:38 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14033eac0\npush    rdi                                                            ; +0x5, 0x14033eac5\nsub     rsp, 80h                                                       ; +0x6, 0x14033eac6\nmovaps  [rsp+88h+var_18], xmm6                                         ; +0xd, 0x14033eacd\nmov     rbx, rcx                                                       ; +0x12, 0x14033ead2\nmovaps  [rsp+88h+var_28], xmm7                                         ; +0x15, 0x14033ead5\nmovaps  xmm6, xmm2                                                     ; +0x1a, 0x14033eada\nxorps   xmm7, xmm7                                                     ; +0x1d, 0x14033eadd\nmovaps  [rsp+88h+var_38], xmm8                                         ; +0x20, 0x14033eae0\ncomiss  xmm7, xmm1                                                     ; +0x26, 0x14033eae6\njb      short loc_14033EAF3                                            ; +0x29, 0x14033eae9\nmovss   xmm1, cs:flt_140835080                                         ; +0x2b, 0x14033eaeb\ncomiss  xmm6, xmm7                                                     ; +0x33, 0x14033eaf3\nmovss   xmm0, cs:flt_140835388                                         ; +0x36, 0x14033eaf6\nmovss   xmm8, cs:dword_140834EDC                                       ; +0x3e, 0x14033eafe\nminss   xmm0, xmm1                                                     ; +0x47, 0x14033eb07\nmaxss   xmm8, xmm0                                                     ; +0x4b, 0x14033eb0b\nmovss   dword ptr [rcx+1ACh], xmm8                                     ; +0x50, 0x14033eb10\njbe     short loc_14033EB6B                                            ; +0x59, 0x14033eb19\nmov     eax, [rsp+88h+arg_30]                                          ; +0x5b, 0x14033eb1b\nmovaps  xmm2, xmm8                                                     ; +0x62, 0x14033eb22\nmovss   xmm0, [rsp+88h+arg_20]                                         ; +0x66, 0x14033eb26\nmovss   xmm1, dword ptr [rcx+1A8h]                                     ; +0x6f, 0x14033eb2f\nadd     rcx, 1A8h                                                      ; +0x77, 0x14033eb37\nmov     [rsp+88h+var_48], eax                                          ; +0x7e, 0x14033eb3e\nmov     eax, [rsp+88h+arg_28]                                          ; +0x82, 0x14033eb42\nmov     [rsp+88h+var_50], eax                                          ; +0x89, 0x14033eb49\nmovss   [rsp+88h+var_58], xmm0                                         ; +0x8d, 0x14033eb4d\nmov     [rsp+88h+var_60], r9d                                          ; +0x93, 0x14033eb53\nmov     r9d, 0Eh                                                       ; +0x98, 0x14033eb58\nmovss   [rsp+88h+var_68], xmm6                                         ; +0x9e, 0x14033eb5e\ncall    GJGameState__tweenValue                                        ; +0xa4, 0x14033eb64\njmp     short loc_14033EB93                                            ; +0xa9, 0x14033eb69\nadd     rcx, 428h                                                      ; +0xab, 0x14033eb6b\nmov     [rsp+88h+arg_8], 0Eh                                           ; +0xb2, 0x14033eb72\nlea     rdx, [rsp+88h+arg_8]                                           ; +0xbd, 0x14033eb7d\ncall    sub_140355080                                                  ; +0xc5, 0x14033eb85\nmovss   dword ptr [rbx+1A8h], xmm8                                     ; +0xca, 0x14033eb8a\ncmp     byte ptr [rbx+331Dh], 0                                        ; +0xd3, 0x14033eb93\nmovss   dword ptr [rbx+2F4h], xmm6                                     ; +0xda, 0x14033eb9a\njnz     short loc_14033EC1E                                            ; +0xe2, 0x14033eba2\ncmp     byte ptr [rbx+310h], 0                                         ; +0xe4, 0x14033eba4\njz      short loc_14033EC1E                                            ; +0xeb, 0x14033ebab\nucomiss xmm6, xmm7                                                     ; +0xed, 0x14033ebad\njp      short loc_14033EBB9                                            ; +0xf0, 0x14033ebb0\njnz     short loc_14033EBB9                                            ; +0xf2, 0x14033ebb2\nmov     r9b, 1                                                         ; +0xf4, 0x14033ebb4\njmp     short loc_14033EBBC                                            ; +0xf7, 0x14033ebb7\nxor     r9d, r9d                                                       ; +0xf9, 0x14033ebb9\nmov     rdx, [rbx+0DB8h]                                               ; +0xfc, 0x14033ebbc\nmov     r8d, 6                                                         ; +0x103, 0x14033ebc3\ncmp     byte ptr [rdx+9C1h], 0                                         ; +0x109, 0x14033ebc9\njnz     short loc_14033EC10                                            ; +0x110, 0x14033ebd0\ncmp     byte ptr [rdx+9C2h], 0                                         ; +0x112, 0x14033ebd2\njnz     short loc_14033EC10                                            ; +0x119, 0x14033ebd9\ncmp     byte ptr [rdx+9C4h], 0                                         ; +0x11b, 0x14033ebdb\njnz     short loc_14033EC10                                            ; +0x122, 0x14033ebe2\ncmp     byte ptr [rdx+9CCh], 0                                         ; +0x124, 0x14033ebe4\njnz     short loc_14033EC10                                            ; +0x12b, 0x14033ebeb\ncmp     byte ptr [rdx+9C3h], 0                                         ; +0x12d, 0x14033ebed\njz      short loc_14033EBFE                                            ; +0x134, 0x14033ebf4\nmov     r8d, 10h                                                       ; +0x136, 0x14033ebf6\njmp     short loc_14033EC16                                            ; +0x13c, 0x14033ebfc\ncmp     byte ptr [rdx+9C6h], 0                                         ; +0x13e, 0x14033ebfe\nmov     eax, 21h ; '!'                                                 ; +0x145, 0x14033ec05\ncmovnz  r8d, eax                                                       ; +0x14a, 0x14033ec0a\njmp     short loc_14033EC16                                            ; +0x14e, 0x14033ec0e\nmov     r8d, 5                                                         ; +0x150, 0x14033ec10\nmov     rcx, rbx                                                       ; +0x156, 0x14033ec16\ncall    GJBaseGameLayer__updateDualGround                              ; +0x159, 0x14033ec19\nmov     rbx, [rsp+88h+arg_0]                                           ; +0x15e, 0x14033ec1e\nmovaps  xmm6, [rsp+88h+var_18]                                         ; +0x166, 0x14033ec26\nmovaps  xmm7, [rsp+88h+var_28]                                         ; +0x16b, 0x14033ec2b\nmovaps  xmm8, [rsp+88h+var_38]                                         ; +0x170, 0x14033ec30\nadd     rsp, 80h                                                       ; +0x176, 0x14033ec36\npop     rdi                                                            ; +0x17d, 0x14033ec3d\nretn                                                                   ; +0x17e, 0x14033ec3e", "xrefs": ["GJBaseGameLayer::resetCamera @ 0x140349864", "LevelEditorLayer::onPlaytest @ 0x1403fe96c", "EffectGameObject::triggerObject @ 0x140648e20", "<???> @ 0x14091fcb8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}