{"type": "func", "start": 4299652608, "end": 4299652736, "name": "EditorUI::zoomGameLayer", "pseudocode": "// \n// EditorUI::zoomGameLayer from 0x100477e00 to 0x100477e80 (128 bytes)\n// \n// 3 xrefs:\n// > EditorUI::scrollWheel @ 0x1001640f4\n// > EditorUI::zoomIn @ 0x100471628\n// > EditorUI::zoomOut @ 0x100471658\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:05:42 +0000\n// \n\n__int64 __fastcall EditorUI::zoomGameLayer(__int64 a1, int a2)\n{\n  float v4; // s0\n  float v5; // s1\n  float v6; // s0\n\n  (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1440) + 3920LL) + 168LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL));\n  v5 = -0.1;\n  if ( a2 )\n    v5 = 0.1;\n  v6 = roundf((float)((float)(v5 + v4) / 0.1) + 0.001) * 0.1;\n  if ( v6 > 10.0 )\n    v6 = 10.0;\n  if ( v6 < 0.1 )\n    v6 = 0.1;\n  return EditorUI::updateZoom_1(a1, v6);\n}", "assembly": "; \n; EditorUI::zoomGameLayer from 0x100477e00 to 0x100477e80 (128 bytes)\n; \n; 3 xrefs:\n; > EditorUI::scrollWheel @ 0x1001640f4\n; > EditorUI::zoomIn @ 0x100471628\n; > EditorUI::zoomOut @ 0x100471658\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:05:42 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100477e00\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100477e04\nADD             X29, SP, #0x10                                         ; +0x8, 0x100477e08\nMOV             X19, X1                                                ; +0xc, 0x100477e0c\nMOV             X20, X0                                                ; +0x10, 0x100477e10\nLDR             X8, [X0,#0x5A0]                                        ; +0x14, 0x100477e14\nLDR             X0, [X8,#0xF50]                                        ; +0x18, 0x100477e18\nLDR             X8, [X0]                                               ; +0x1c, 0x100477e1c\nLDR             X8, [X8,#0xA8]                                         ; +0x20, 0x100477e20\nBLR             X8                                                     ; +0x24, 0x100477e24\nCMP             W19, #0                                                ; +0x28, 0x100477e28\nADRP            X8, #dword_10075E32C@PAGE                              ; +0x2c, 0x100477e2c\nLDR             S1, [X8,#dword_10075E32C@PAGEOFF]                      ; +0x30, 0x100477e30\nADRP            X8, #dword_10075BD10@PAGE                              ; +0x34, 0x100477e34\nLDR             S2, [X8,#dword_10075BD10@PAGEOFF]                      ; +0x38, 0x100477e38\nFCSEL           S1, S2, S1, NE                                         ; +0x3c, 0x100477e3c\nFADD            S0, S1, S0                                             ; +0x40, 0x100477e40\nFDIV            S0, S0, S2                                             ; +0x44, 0x100477e44\nADRP            X8, #dword_10075CFEC@PAGE                              ; +0x48, 0x100477e48\nLDR             S1, [X8,#dword_10075CFEC@PAGEOFF]                      ; +0x4c, 0x100477e4c\nFADD            S0, S0, S1                                             ; +0x50, 0x100477e50\nFRINTA          S0, S0                                                 ; +0x54, 0x100477e54\nFMUL            S0, S0, S2                                             ; +0x58, 0x100477e58\nFMOV            S1, #10.0                                              ; +0x5c, 0x100477e5c\nFCMP            S0, S1                                                 ; +0x60, 0x100477e60\nFCSEL           S0, S1, S0, GT                                         ; +0x64, 0x100477e64\nFCMP            S0, S2                                                 ; +0x68, 0x100477e68\nFCSEL           S0, S2, S0, MI                                         ; +0x6c, 0x100477e6c\nMOV             X0, X20                                                ; +0x70, 0x100477e70\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x74, 0x100477e74\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x78, 0x100477e78\nB               EditorUI__updateZoom_1                                 ; +0x7c, 0x100477e7c", "xrefs": ["EditorUI::scrollWheel @ 0x1001640f4", "EditorUI::zoomIn @ 0x100471628", "EditorUI::zoomOut @ 0x100471658"], "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"}