{"type": "func", "start": 4295945456, "end": 4295945584, "name": "DrawGridLayer::timeForPos", "pseudocode": "// \n// DrawGridLayer::timeForPos from 0x1000eecf0 to 0x1000eed70 (128 bytes)\n// \n// 4 xrefs:\n// > EditorUI::onPlayback @ 0x10000c43a\n// > EditorUI::onPlayback @ 0x10000c47b\n// > EditorPauseLayer::init @ 0x10029163a\n// > EditorPauseLayer::saveLevel @ 0x1002949fc\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\n// local variable allocation has failed, the output may be wrong!\nfloat __fastcall DrawGridLayer::timeForPos(\n        DrawGridLayer *a1,\n        cocos2d::CCPoint a2,\n        int a3,\n        int a4,\n        bool a5,\n        bool a6,\n        bool a7,\n        int a8)\n{\n  cocos2d::CCPoint v11; // xmm0_8\n  __int64 v13; // [rsp+8h] [rbp-38h] BYREF\n  _BOOL8 v14; // [rsp+10h] [rbp-30h]\n\n  v14 = a7;\n  *(double *)&v11 = sub_10028CC60(&v13);\n  return LevelTools::timeForPos(\n           v11,\n           (cocos2d::CCArray *)&v13,\n           (int)a1->m_speedObjects,\n           a1->m_editorLayer->m_levelSettings->m_startSpeed,\n           a4,\n           a5,\n           a6,\n           a1->m_editorLayer->m_levelSettings->m_platformerMode,\n           v14,\n           (unsigned __int8)a8);\n}", "assembly": "; \n; DrawGridLayer::timeForPos from 0x1000eecf0 to 0x1000eed70 (128 bytes)\n; \n; 4 xrefs:\n; > EditorUI::onPlayback @ 0x10000c43a\n; > EditorUI::onPlayback @ 0x10000c47b\n; > EditorPauseLayer::init @ 0x10029163a\n; > EditorPauseLayer::saveLevel @ 0x1002949fc\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    rbp                                                            ; +0x0, 0x1000eecf0\nmov     rbp, rsp                                                       ; +0x1, 0x1000eecf1\npush    r15                                                            ; +0x4, 0x1000eecf4\npush    r14                                                            ; +0x6, 0x1000eecf6\npush    r13                                                            ; +0x8, 0x1000eecf8\npush    r12                                                            ; +0xa, 0x1000eecfa\npush    rbx                                                            ; +0xc, 0x1000eecfc\nsub     rsp, 18h                                                       ; +0xd, 0x1000eecfd\nmov     [rbp+var_30], r9                                               ; +0x11, 0x1000eed01\nmov     r14d, r8d                                                      ; +0x15, 0x1000eed05\nmov     r15d, ecx                                                      ; +0x18, 0x1000eed08\nmov     r12d, edx                                                      ; +0x1b, 0x1000eed0b\nmov     r13, rdi                                                       ; +0x1e, 0x1000eed0e\nlea     rbx, [rbp+var_38]                                              ; +0x21, 0x1000eed11\nmov     rdi, rbx                                                       ; +0x25, 0x1000eed15\ncall    sub_10028CC60                                                  ; +0x28, 0x1000eed18\nmov     rax, [r13+1F0h]                                                ; +0x2d, 0x1000eed1d\nmov     rsi, [r13+230h]                                                ; +0x34, 0x1000eed24\nmov     rax, [rax+0CB0h]                                               ; +0x3b, 0x1000eed2b\nmov     edx, [rax+14Ch]                                                ; +0x42, 0x1000eed32\nmovzx   eax, byte ptr [rax+155h]                                       ; +0x48, 0x1000eed38\nmovzx   r10d, byte ptr [rbp+arg_0]                                     ; +0x4f, 0x1000eed3f\nmov     rdi, rbx                                                       ; +0x54, 0x1000eed44\nmov     ecx, r12d                                                      ; +0x57, 0x1000eed47\nmov     r8d, r15d                                                      ; +0x5a, 0x1000eed4a\nmov     r9d, r14d                                                      ; +0x5d, 0x1000eed4d\nmov     r11d, [rbp+arg_8]                                              ; +0x60, 0x1000eed50\npush    r11                                                            ; +0x64, 0x1000eed54\npush    r10                                                            ; +0x66, 0x1000eed56\npush    [rbp+var_30]                                                   ; +0x68, 0x1000eed58\npush    rax                                                            ; +0x6b, 0x1000eed5b\ncall    LevelTools__timeForPos                                         ; +0x6c, 0x1000eed5c\nadd     rsp, 38h                                                       ; +0x71, 0x1000eed61\npop     rbx                                                            ; +0x75, 0x1000eed65\npop     r12                                                            ; +0x76, 0x1000eed66\npop     r13                                                            ; +0x78, 0x1000eed68\npop     r14                                                            ; +0x7a, 0x1000eed6a\npop     r15                                                            ; +0x7c, 0x1000eed6c\npop     rbp                                                            ; +0x7e, 0x1000eed6e\nretn                                                                   ; +0x7f, 0x1000eed6f", "xrefs": ["EditorUI::onPlayback @ 0x10000c43a", "EditorUI::onPlayback @ 0x10000c47b", "EditorPauseLayer::init @ 0x10029163a", "EditorPauseLayer::saveLevel @ 0x1002949fc"], "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"}