{"type": "func", "start": 3700240, "end": 3700332, "name": "EditorUI::zoomGameLayer", "pseudocode": "// \n// EditorUI::zoomGameLayer from 0x387610 to 0x38766c (92 bytes)\n// \n// 3 xrefs:\n// > EditorUI::zoomIn @ 0x387672\n// > EditorUI::zoomOut @ 0x387678\n// > EditorUI::scrollWheel @ 0x3876da\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 EditorUI::zoomGameLayer(EditorUI *a1, bool a2)\n{\n  _BOOL4 v3; // r5\n  float v4; // r0\n  float v5; // s15\n\n  v3 = a2;\n  v4 = COERCE_FLOAT(((int (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getScale)(a1->m_editorLayer->m_objectLayer));\n  if ( v3 )\n    v5 = v4 + 0.1;\n  else\n    v5 = v4 - 0.1;\n  if ( v5 > 4.0 )\n  {\n    v5 = 4.0;\n  }\n  else if ( v5 < 0.1 )\n  {\n    v5 = 0.1;\n  }\n  EditorUI::updateZoom(a1, v5);\n}", "assembly": "; \n; EditorUI::zoomGameLayer from 0x387610 to 0x38766c (92 bytes)\n; \n; 3 xrefs:\n; > EditorUI::zoomIn @ 0x387672\n; > EditorUI::zoomOut @ 0x387678\n; > EditorUI::scrollWheel @ 0x3876da\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\nPUSH            {R3-R5,LR}                                             ; +0x0, 0x387610\nMOV             R4, R0                                                 ; +0x2, 0x387612\nLDR.W           R3, [R0,#0x340]                                        ; +0x4, 0x387614\nMOV             R5, R1                                                 ; +0x8, 0x387618\nLDR.W           R0, [R3,#0x9F0]                                        ; +0xa, 0x38761a\nLDR             R3, [R0]                                               ; +0xe, 0x38761e\nLDR             R3, [R3,#0x54]                                         ; +0x10, 0x387620\nBLX             R3                                                     ; +0x12, 0x387622\nVLDR            S14, =0.1                                              ; +0x14, 0x387624\nVMOV            S15, R0                                                ; +0x18, 0x387628\nCBZ             R5, loc_387634                                         ; +0x1c, 0x38762c\nVADD.F32        S15, S15, S14                                          ; +0x1e, 0x38762e\nB               loc_387638                                             ; +0x22, 0x387632\nVSUB.F32        S15, S15, S14                                          ; +0x24, 0x387634\nVMOV.F32        S13, #4.0                                              ; +0x28, 0x387638\nVCMPE.F32       S15, S13                                               ; +0x2c, 0x38763c\nVMRS            APSR_nzcv, FPSCR                                       ; +0x30, 0x387640\nBGT             loc_38765A                                             ; +0x34, 0x387644\nVCMP.F32        S15, S14                                               ; +0x36, 0x387646\nVLDR            S14, =0.1                                              ; +0x3a, 0x38764a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x3e, 0x38764e\nIT MI                                                                  ; +0x42, 0x387652\nVMOVMI.F32      S15, S14                                               ; +0x44, 0x387654\nB               loc_38765E                                             ; +0x48, 0x387658\nVMOV.F32        S15, S13                                               ; +0x4a, 0x38765a\nMOV             R0, R4; this                                           ; +0x4e, 0x38765e\nVMOV            R1, S15; float                                         ; +0x50, 0x387660\nPOP.W           {R3-R5,LR}                                             ; +0x54, 0x387664\nB.W             _ZN8EditorUI10updateZoomEf; EditorUI::updateZoom(float) ; +0x58, 0x387668", "xrefs": ["EditorUI::zoomIn @ 0x387672", "EditorUI::zoomOut @ 0x387678", "EditorUI::scrollWheel @ 0x3876da"], "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"}