{"type": "func", "start": 5372589520, "end": 5372589664, "name": "PlayLayer::timeForPos", "pseudocode": "// \n// PlayLayer::timeForPos from 0x1403b35d0 to 0x1403b3660 (144 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405c9c48\n// > <???> @ 0x1406d6e84\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 PlayLayer::timeForPos(PlayLayer *a1, cocos2d::CCPoint a2, int a3, int a4, bool a5, int a6)\n{\n  PlayerObject *m_player1; // rbx\n  LevelSettingsObject *m_levelSettings; // rdi\n  cocos2d::CCPoint v11; // rax\n  cocos2d::CCPoint v13; // [rsp+70h] [rbp+8h] BYREF\n\n  m_player1 = a1->m_player1;\n  m_levelSettings = a1->m_levelSettings;\n  cocos2d::CCPoint::CCPoint(&v13);\n  return LevelTools::timeForPos(\n           v11,\n           a1->m_speedObjects,\n           m_levelSettings->m_startSpeed,\n           a3,\n           a4,\n           a5,\n           m_player1->m_isPlatformer,\n           0,\n           0,\n           0);\n}", "assembly": "; \n; PlayLayer::timeForPos from 0x1403b35d0 to 0x1403b3660 (144 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405c9c48\n; > <???> @ 0x1406d6e84\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, 0x1403b35d0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1403b35d5\npush    rsi                                                            ; +0xa, 0x1403b35da\npush    rdi                                                            ; +0xb, 0x1403b35db\npush    r14                                                            ; +0xc, 0x1403b35dc\nsub     rsp, 50h                                                       ; +0xe, 0x1403b35de\nmov     rbx, [rcx+0DA0h]                                               ; +0x12, 0x1403b35e2\nmov     r14, rcx                                                       ; +0x19, 0x1403b35e9\nmov     rdi, [rcx+0DB0h]                                               ; +0x1c, 0x1403b35ec\nmov     esi, r9d                                                       ; +0x23, 0x1403b35f3\nlea     rcx, [rsp+68h+arg_0]                                           ; +0x26, 0x1403b35f6\nmov     ebp, r8d                                                       ; +0x2b, 0x1403b35fb\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x2e, 0x1403b35fe\nmov     r8d, [rdi+14Ch]                                                ; +0x34, 0x1403b3604\nmov     r9d, ebp                                                       ; +0x3b, 0x1403b360b\nmov     rdx, [r14+3890h]                                               ; +0x3e, 0x1403b360e\nmov     rcx, rax                                                       ; +0x45, 0x1403b3615\nmovzx   eax, byte ptr [rbx+0B70h]                                      ; +0x48, 0x1403b3618\nmov     [rsp+68h+var_20], 0                                            ; +0x4f, 0x1403b361f\nmov     [rsp+68h+var_28], 0                                            ; +0x57, 0x1403b3627\nmov     [rsp+68h+var_30], 0                                            ; +0x5c, 0x1403b362c\nmov     [rsp+68h+var_38], al                                           ; +0x61, 0x1403b3631\nmovzx   eax, [rsp+68h+arg_20]                                          ; +0x65, 0x1403b3635\nmov     [rsp+68h+var_40], al                                           ; +0x6d, 0x1403b363d\nmov     [rsp+68h+var_48], esi                                          ; +0x71, 0x1403b3641\ncall    LevelTools__timeForPos                                         ; +0x75, 0x1403b3645\nmov     rbx, [rsp+68h+arg_8]                                           ; +0x7a, 0x1403b364a\nmov     rbp, [rsp+68h+arg_10]                                          ; +0x7f, 0x1403b364f\nadd     rsp, 50h                                                       ; +0x87, 0x1403b3657\npop     r14                                                            ; +0x8b, 0x1403b365b\npop     rdi                                                            ; +0x8d, 0x1403b365d\npop     rsi                                                            ; +0x8e, 0x1403b365e\nretn                                                                   ; +0x8f, 0x1403b365f", "xrefs": ["<???> @ 0x1405c9c48", "<???> @ 0x1406d6e84"], "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"}