{"type": "func", "start": 3700348, "end": 3700498, "name": "EditorUI::scrollWheel", "pseudocode": "// \n// EditorUI::scrollWheel from 0x38767c to 0x387712 (150 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditorUI::scrollWheel @ 0x38771c\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::scrollWheel(EditorUI *a1, float a2, float a3)\n{\n  double v3; // d0\n  float v7; // r2\n  cocos2d::CCDirector *v8; // r0\n  bool v9; // r1\n  cocos2d::CCPoint v10; // r1\n  cocos2d::CCPoint v11; // [sp+4h] [bp-Ch] BYREF\n\n  v7 = *(float *)&a1->m_editorLayer->m_playbackMode;\n  if ( LODWORD(v7) != 1 )\n  {\n    sub_37B740((int)a1, a2, v7, (int)&_stack_chk_guard);\n    a1->m_keyTime = v3;\n    v8 = cocos2d::CCDirector::sharedDirector();\n    if ( v8->getKeyboardDispatcher(v8)->m_bControlPressed )\n    {\n      v9 = a2 <= 0.0 && a3 <= 0.0;\n      EditorUI::zoomGameLayer(a1, v9);\n    }\n    else\n    {\n      cocos2d::CCPoint::CCPoint(&v11, a3, a2);\n      LODWORD(v10.x) = &v11;\n      EditorUI::moveGamelayer(a1, v10);\n      EditorUI::updateSlider(a1);\n    }\n  }\n}", "assembly": "; \n; EditorUI::scrollWheel from 0x38767c to 0x387712 (150 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditorUI::scrollWheel @ 0x38771c\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x387684)                ; +0x0, 0x38767c\nPUSH            {R4-R6,LR}                                             ; +0x2, 0x38767e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x387680\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x387682\nVPUSH           {D8}                                                   ; +0x8, 0x387684\nMOV             R5, R0                                                 ; +0xc, 0x387688\nMOV             R4, R3                                                 ; +0xe, 0x38768a\nVMOV            S17, R2                                                ; +0x10, 0x38768c\nLDR             R2, [R3]                                               ; +0x14, 0x387690\nSUB             SP, SP, #0x10                                          ; +0x16, 0x387692\nVMOV            S16, R1                                                ; +0x18, 0x387694\nSTR             R2, [SP,#0x10+var_4]                                   ; +0x1c, 0x387698\nLDR.W           R2, [R0,#0x340]                                        ; +0x1e, 0x38769a\nLDR.W           R2, [R2,#0x60C]                                        ; +0x22, 0x38769e\nCMP             R2, #1                                                 ; +0x26, 0x3876a2\nBEQ             loc_3876FE                                             ; +0x28, 0x3876a4\nBL              sub_37B740                                             ; +0x2a, 0x3876a6\nVSTR            D0, [R5,#0x398]                                        ; +0x2e, 0x3876aa\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x32, 0x3876ae\nLDR             R3, [R0]                                               ; +0x36, 0x3876b2\nLDR             R3, [R3,#0x60]                                         ; +0x38, 0x3876b4\nBLX             R3                                                     ; +0x3a, 0x3876b6\nLDRB.W          R3, [R0,#0x45]                                         ; +0x3c, 0x3876b8\nCBZ             R3, loc_3876E0                                         ; +0x40, 0x3876bc\nVCMPE.F32       S16, #0.0                                              ; +0x42, 0x3876be\nMOV             R0, R5; this                                           ; +0x46, 0x3876c2\nVMRS            APSR_nzcv, FPSCR                                       ; +0x48, 0x3876c4\nBGT             loc_3876D4                                             ; +0x4c, 0x3876c8\nVCMPE.F32       S17, #0.0                                              ; +0x4e, 0x3876ca\nVMRS            APSR_nzcv, FPSCR                                       ; +0x52, 0x3876ce\nBLE             loc_3876D8                                             ; +0x56, 0x3876d2\nMOVS            R1, #0                                                 ; +0x58, 0x3876d4\nB               loc_3876DA                                             ; +0x5a, 0x3876d6\nMOVS            R1, #1; bool                                           ; +0x5c, 0x3876d8\nBL              _ZN8EditorUI13zoomGameLayerEb; EditorUI::zoomGameLayer(bool) ; +0x5e, 0x3876da\nB               loc_3876FE                                             ; +0x62, 0x3876de\nADD             R6, SP, #0x10+var_C                                    ; +0x64, 0x3876e0\nVMOV            R1, S17; float                                         ; +0x66, 0x3876e2\nVMOV            R2, S16; float                                         ; +0x6a, 0x3876e6\nMOV             R0, R6; this                                           ; +0x6e, 0x3876ea\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x70, 0x3876ec\nMOV             R0, R5                                                 ; +0x74, 0x3876f0\nMOV             R1, R6                                                 ; +0x76, 0x3876f2\nBL              _ZN8EditorUI13moveGamelayerEN7cocos2d7CCPointE; EditorUI::moveGamelayer(cocos2d::CCPoint) ; +0x78, 0x3876f4\nMOV             R0, R5; this                                           ; +0x7c, 0x3876f8\nBL              _ZN8EditorUI12updateSliderEv; EditorUI::updateSlider(void) ; +0x7e, 0x3876fa\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x82, 0x3876fe\nLDR             R3, [R4]                                               ; +0x84, 0x387700\nCMP             R2, R3                                                 ; +0x86, 0x387702\nBEQ             loc_38770A                                             ; +0x88, 0x387704\nBLX             __stack_chk_fail                                       ; +0x8a, 0x387706\nADD             SP, SP, #0x10                                          ; +0x8e, 0x38770a\nVPOP            {D8}                                                   ; +0x90, 0x38770c\nPOP             {R4-R6,PC}                                             ; +0x94, 0x387710", "xrefs": ["`non-virtual thunk to'EditorUI::scrollWheel @ 0x38771c"], "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"}