{"type": "func", "start": 4297691108, "end": 4297691336, "name": "GJBaseGameLayer::updateZoom", "pseudocode": "// \n// GJBaseGameLayer::updateZoom from 0x100298fe4 to 0x1002990c8 (228 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::resetCamera @ 0x10029f86c\n// > LevelEditorLayer::onPlaytest @ 0x10040467c\n// > EffectGameObject::triggerObject @ 0x10042c2f8\n// \n// This function is hookable on this platform (idp: arm, 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:02:07 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::updateZoom(__int64 a1, int a2, int a3, int a4, float a5, float a6, float a7)\n{\n  float v9; // s9\n  __int64 result; // x0\n  __int64 v11; // x20\n  int v12; // w2\n  int v13; // [xsp+Ch] [xbp-24h] BYREF\n\n  if ( a5 <= 0.0 )\n    a5 = 1.0;\n  v9 = fmaxf(fminf(a5, 3.0), 0.4);\n  *(float *)(a1 + 428) = v9;\n  if ( a6 <= 0.0 )\n  {\n    v13 = 14;\n    result = (__int64)sub_10001BB58((_QWORD *)(a1 + 1016), &v13);\n    *(float *)(a1 + 424) = v9;\n  }\n  else\n  {\n    result = sub_10027409C(a1 + 424, 14, a2, a3, a4, *(float *)(a1 + 424), v9, a6, a7);\n  }\n  *(float *)(a1 + 756) = a6;\n  if ( (*(_BYTE *)(a1 + 12605) & 1) == 0 && *(_BYTE *)(a1 + 784) == 1 )\n  {\n    v11 = *(_QWORD *)(a1 + 3256);\n    v12 = sub_1002C6310(v11);\n    return GJBaseGameLayer::updateDualGround(a1, v11, v12, a6 == 0.0);\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::updateZoom from 0x100298fe4 to 0x1002990c8 (228 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::resetCamera @ 0x10029f86c\n; > LevelEditorLayer::onPlaytest @ 0x10040467c\n; > EffectGameObject::triggerObject @ 0x10042c2f8\n; \n; This function is hookable on this platform (idp: arm, 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:02:07 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x100298fe4\nSTP             D9, D8, [SP,#0x30+var_20]                              ; +0x4, 0x100298fe8\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x100298fec\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x100298ff0\nADD             X29, SP, #0x30                                         ; +0x10, 0x100298ff4\nFMOV            S8, S1                                                 ; +0x14, 0x100298ff8\nMOV             X19, X0                                                ; +0x18, 0x100298ffc\nFCMP            S0, #0.0                                               ; +0x1c, 0x100299000\nFMOV            S1, #1.0                                               ; +0x20, 0x100299004\nFCSEL           S0, S0, S1, HI                                         ; +0x24, 0x100299008\nFMOV            S1, #3.0                                               ; +0x28, 0x10029900c\nFMINNM          S0, S0, S1                                             ; +0x2c, 0x100299010\nADRP            X8, #dword_10075BD1C@PAGE                              ; +0x30, 0x100299014\nLDR             S1, [X8,#dword_10075BD1C@PAGEOFF]                      ; +0x34, 0x100299018\nFMAXNM          S9, S0, S1                                             ; +0x38, 0x10029901c\nSTR             S9, [X0,#0x1AC]                                        ; +0x3c, 0x100299020\nFCMP            S8, #0.0                                               ; +0x40, 0x100299024\nB.LE            loc_100299058                                          ; +0x44, 0x100299028\nMOV             X4, X3                                                 ; +0x48, 0x10029902c\nMOV             X3, X2                                                 ; +0x4c, 0x100299030\nFMOV            S3, S2                                                 ; +0x50, 0x100299034\nMOV             X2, X1                                                 ; +0x54, 0x100299038\nADD             X0, X19, #0x1A8                                        ; +0x58, 0x10029903c\nLDR             S0, [X0]                                               ; +0x5c, 0x100299040\nFMOV            S1, S9                                                 ; +0x60, 0x100299044\nMOV             W1, #0xE                                               ; +0x64, 0x100299048\nFMOV            S2, S8                                                 ; +0x68, 0x10029904c\nBL              sub_10027409C                                          ; +0x6c, 0x100299050\nB               loc_100299070                                          ; +0x70, 0x100299054\nMOV             W8, #0xE                                               ; +0x74, 0x100299058\nSTR             W8, [SP,#0x30+var_24]                                  ; +0x78, 0x10029905c\nADD             X0, X19, #0x3F8                                        ; +0x7c, 0x100299060\nADD             X1, SP, #0x30+var_24                                   ; +0x80, 0x100299064\nBL              sub_10001BB58                                          ; +0x84, 0x100299068\nSTR             S9, [X19,#0x1A8]                                       ; +0x88, 0x10029906c\nSTR             S8, [X19,#0x2F4]                                       ; +0x8c, 0x100299070\nMOV             W8, #0x313D                                            ; +0x90, 0x100299074\nLDRB            W8, [X19,X8]                                           ; +0x94, 0x100299078\nTBNZ            W8, #0, loc_1002990B4                                  ; +0x98, 0x10029907c\nLDRB            W8, [X19,#0x310]                                       ; +0x9c, 0x100299080\nCMP             W8, #1                                                 ; +0xa0, 0x100299084\nB.NE            loc_1002990B4                                          ; +0xa4, 0x100299088\nLDR             X20, [X19,#0xCB8]                                      ; +0xa8, 0x10029908c\nMOV             X0, X20                                                ; +0xac, 0x100299090\nBL              sub_1002C6310                                          ; +0xb0, 0x100299094\nMOV             X2, X0                                                 ; +0xb4, 0x100299098\nFCMP            S8, #0.0                                               ; +0xb8, 0x10029909c\nCSET            W3, EQ                                                 ; +0xbc, 0x1002990a0\nMOV             X0, X19                                                ; +0xc0, 0x1002990a4\nMOV             X1, X20                                                ; +0xc4, 0x1002990a8\nFMOV            S0, S8                                                 ; +0xc8, 0x1002990ac\nBL              GJBaseGameLayer__updateDualGround                      ; +0xcc, 0x1002990b0\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xd0, 0x1002990b4\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xd4, 0x1002990b8\nLDP             D9, D8, [SP,#0x30+var_20]                              ; +0xd8, 0x1002990bc\nADD             SP, SP, #0x40 ; '@'                                    ; +0xdc, 0x1002990c0\nRET                                                                    ; +0xe0, 0x1002990c4", "xrefs": ["GJBaseGameLayer::resetCamera @ 0x10029f86c", "LevelEditorLayer::onPlaytest @ 0x10040467c", "EffectGameObject::triggerObject @ 0x10042c2f8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}