{"type": "func", "start": 5371717616, "end": 5371717786, "name": "LevelEditorLayer::timeForPos", "pseudocode": "// \n// LevelEditorLayer::timeForPos from 0x1402de7f0 to 0x1402de89a (170 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405863b8\n// > <???> @ 0x1406d3428\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\nfloat LevelEditorLayer::timeForPos(LevelEditorLayer *a1, cocos2d::CCPoint a2, int a3, int a4, bool a5, int a6)\n{\n  DrawGridLayer *m_drawGridLayer; // rdi\n  LevelSettingsObject *m_levelSettings; // rbx\n  cocos2d::CCPoint v11; // rax\n  cocos2d::CCPoint v13; // [rsp+50h] [rbp-18h] BYREF\n  cocos2d::CCPoint v14; // [rsp+70h] [rbp+8h] BYREF\n\n  cocos2d::CCPoint::CCPoint(&v14);\n  m_drawGridLayer = a1->m_drawGridLayer;\n  m_levelSettings = m_drawGridLayer->m_editorLayer->m_levelSettings;\n  cocos2d::CCPoint::CCPoint(&v13);\n  return LevelTools::timeForPos(\n           v11,\n           m_drawGridLayer->m_speedObjects,\n           m_levelSettings->m_startSpeed,\n           a3,\n           a4,\n           a5,\n           m_levelSettings->m_platformerMode,\n           0,\n           0,\n           a6);\n}", "assembly": "; \n; LevelEditorLayer::timeForPos from 0x1402de7f0 to 0x1402de89a (170 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405863b8\n; > <???> @ 0x1406d3428\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1402de7f0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1402de7f5\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1402de7fa\npush    rdi                                                            ; +0xf, 0x1402de7ff\nsub     rsp, 60h                                                       ; +0x10, 0x1402de800\nmov     rbx, rcx                                                       ; +0x14, 0x1402de804\nmov     esi, r9d                                                       ; +0x17, 0x1402de807\nlea     rcx, [rsp+68h+arg_0]                                           ; +0x1a, 0x1402de80a\nmov     ebp, r8d                                                       ; +0x1f, 0x1402de80f\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x22, 0x1402de812\nmov     rdi, [rbx+38C8h]                                               ; +0x28, 0x1402de818\nmov     rdx, rax                                                       ; +0x2f, 0x1402de81f\nmov     rcx, [rdi+208h]                                                ; +0x32, 0x1402de822\nmov     rbx, [rcx+0DB0h]                                               ; +0x39, 0x1402de829\nlea     rcx, [rsp+68h+var_18]                                          ; +0x40, 0x1402de830\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x45, 0x1402de835\nmov     r8d, [rbx+14Ch]                                                ; +0x4b, 0x1402de83b\nmov     r9d, ebp                                                       ; +0x52, 0x1402de842\nmov     rdx, [rdi+250h]                                                ; +0x55, 0x1402de845\nmov     rcx, rax                                                       ; +0x5c, 0x1402de84c\nmov     eax, [rsp+68h+arg_28]                                          ; +0x5f, 0x1402de84f\nmov     [rsp+68h+var_20], eax                                          ; +0x66, 0x1402de856\nmovzx   eax, byte ptr [rbx+155h]                                       ; +0x6a, 0x1402de85a\nmov     [rsp+68h+var_28], 0                                            ; +0x71, 0x1402de861\nmov     [rsp+68h+var_30], 0                                            ; +0x76, 0x1402de866\nmov     [rsp+68h+var_38], al                                           ; +0x7b, 0x1402de86b\nmovzx   eax, [rsp+68h+arg_20]                                          ; +0x7f, 0x1402de86f\nmov     [rsp+68h+var_40], al                                           ; +0x87, 0x1402de877\nmov     [rsp+68h+var_48], esi                                          ; +0x8b, 0x1402de87b\ncall    LevelTools__timeForPos                                         ; +0x8f, 0x1402de87f\nlea     r11, [rsp+68h+var_8]                                           ; +0x94, 0x1402de884\nmov     rbx, [r11+18h]                                                 ; +0x99, 0x1402de889\nmov     rbp, [r11+20h]                                                 ; +0x9d, 0x1402de88d\nmov     rsi, [r11+28h]                                                 ; +0xa1, 0x1402de891\nmov     rsp, r11                                                       ; +0xa5, 0x1402de895\npop     rdi                                                            ; +0xa8, 0x1402de898\nretn                                                                   ; +0xa9, 0x1402de899", "xrefs": ["<???> @ 0x1405863b8", "<???> @ 0x1406d3428"], "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"}