{"type": "func", "start": 5372945312, "end": 5372946057, "name": "DrawGridLayer::loadTimeMarkers", "pseudocode": "// \n// DrawGridLayer::loadTimeMarkers from 0x14040a3a0 to 0x14040a689 (745 bytes)\n// \n// 4 xrefs:\n// > EditorUI::onPlayback @ 0x1401b4334\n// > LevelEditorLayer::levelSettingsUpdated @ 0x1403ef8bd\n// > LevelEditorLayer::updateGameObjects @ 0x1403faeb0\n// > <???> @ 0x140925cc4\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:31:59 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall DrawGridLayer::loadTimeMarkers(__int64 a1, void **a2)\n{\n  __int64 v2; // r14\n  void **v4; // rcx\n  cocos2d::CCObject *v5; // rcx\n  int v6; // ebp\n  int v7; // xmm0_4\n  cocos2d::CCObject *v8; // rax\n  __int64 v9; // rdx\n  __int64 v10; // rsi\n  const char *v11; // rcx\n  const char *v12; // rcx\n  int v13; // edx\n  float v14; // xmm6_4\n  cocos2d::CCArray *v15; // rbx\n  struct cocos2d::CCObject *v16; // rax\n  cocos2d::CCArray *v17; // rbx\n  struct cocos2d::CCObject *v18; // rax\n  __int128 v19; // [rsp+50h] [rbp-98h] BYREF\n  __int64 v20; // [rsp+60h] [rbp-88h]\n  int v21; // [rsp+68h] [rbp-80h] BYREF\n  void **v22; // [rsp+70h] [rbp-78h]\n\n  v2 = (__int64)a2;\n  v22 = a2;\n  v4 = (void **)(a1 + 528);\n  if ( v4 != a2 )\n  {\n    if ( (unsigned __int64)a2[3] > 0xF )\n      a2 = (void **)*a2;\n    sub_1400405A0(v4, a2, *(_QWORD *)(v2 + 16));\n  }\n  v5 = *(cocos2d::CCObject **)(a1 + 568);\n  v6 = 0;\n  if ( v5 )\n  {\n    cocos2d::CCObject::release(v5);\n    *(_QWORD *)(a1 + 568) = 0;\n  }\n  if ( *(_QWORD *)(a1 + 544) )\n  {\n    switch ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 520) + 3528LL) + 332LL) )\n    {\n      case 1:\n        v7 = *(_DWORD *)(a1 + 612);\n        break;\n      case 2:\n        v7 = *(_DWORD *)(a1 + 620);\n        break;\n      case 3:\n        v7 = *(_DWORD *)(a1 + 624);\n        break;\n      case 4:\n        v7 = *(_DWORD *)(a1 + 628);\n        break;\n      default:\n        v7 = *(_DWORD *)(a1 + 616);\n        break;\n    }\n    *(_DWORD *)(a1 + 608) = v7;\n    v19 = 0;\n    v20 = 0;\n    sub_1401C5360((__int64 *)v2, \"~\", (__int64 *)&v19);\n    v8 = cocos2d::CCArray::createWithCapacity((__int64)(*((_QWORD *)&v19 + 1) - v19) >> 5);\n    *(_QWORD *)(a1 + 568) = v8;\n    cocos2d::CCObject::retain(v8);\n    v9 = v19;\n    if ( (__int64)(*((_QWORD *)&v19 + 1) - v19) >> 5 )\n    {\n      v10 = 0;\n      while ( 1 )\n      {\n        v11 = (const char *)(v10 + v9);\n        if ( *(_QWORD *)(v10 + v9 + 24) > 0xFu )\n          v11 = *(const char **)v11;\n        atof(v11);\n        v12 = (const char *)(v10 + v19 + 32);\n        if ( *((_QWORD *)v12 + 3) > 0xFu )\n          v12 = *(const char **)v12;\n        v14 = atof(v12);\n        if ( v14 == 0.0 )\n          break;\n        if ( v14 >= 0.80000001 )\n          goto LABEL_26;\nLABEL_27:\n        v6 += 2;\n        v10 += 64;\n        v9 = v19;\n        if ( v6 >= (unsigned __int64)((__int64)(*((_QWORD *)&v19 + 1) - v19) >> 5) )\n          goto LABEL_28;\n      }\n      v14 = 0.80000001;\nLABEL_26:\n      LevelTools::posForTimeInternal(\n        (unsigned int)&v21,\n        v13,\n        *(_QWORD *)(a1 + 592),\n        *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 520) + 3528LL) + 332LL),\n        *(_BYTE *)(*(_QWORD *)(*(_QWORD *)(a1 + 520) + 3528LL) + 341LL),\n        0,\n        0,\n        *(_QWORD *)(a1 + 520) + 832LL);\n      v15 = *(cocos2d::CCArray **)(a1 + 568);\n      v16 = cocos2d::CCString::createWithFormat(\"%.02f\", v21);\n      cocos2d::CCArray::addObject(v15, v16);\n      v17 = *(cocos2d::CCArray **)(a1 + 568);\n      v18 = cocos2d::CCString::createWithFormat(\"%.02f\", v14);\n      cocos2d::CCArray::addObject(v17, v18);\n      goto LABEL_27;\n    }\nLABEL_28:\n    sub_1400760C0((__int64 *)&v19);\n  }\n  sub_14003D310(v2);\n}", "assembly": "; \n; DrawGridLayer::loadTimeMarkers from 0x14040a3a0 to 0x14040a689 (745 bytes)\n; \n; 4 xrefs:\n; > EditorUI::onPlayback @ 0x1401b4334\n; > LevelEditorLayer::levelSettingsUpdated @ 0x1403ef8bd\n; > LevelEditorLayer::updateGameObjects @ 0x1403faeb0\n; > <???> @ 0x140925cc4\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:31:59 +0000\n; \nmov     rax, rsp                                                       ; +0x0, 0x14040a3a0\nmov     [rax+18h], rbx                                                 ; +0x3, 0x14040a3a3\nmov     [rax+20h], rbp                                                 ; +0x7, 0x14040a3a7\npush    rsi                                                            ; +0xb, 0x14040a3ab\npush    rdi                                                            ; +0xc, 0x14040a3ac\npush    r14                                                            ; +0xd, 0x14040a3ad\nsub     rsp, 0D0h                                                      ; +0xf, 0x14040a3af\nmovaps  xmmword ptr [rax-28h], xmm6                                    ; +0x16, 0x14040a3b6\nmovaps  xmmword ptr [rax-38h], xmm7                                    ; +0x1a, 0x14040a3ba\nmovaps  xmmword ptr [rax-48h], xmm8                                    ; +0x1e, 0x14040a3be\nmovaps  xmmword ptr [rax-58h], xmm9                                    ; +0x23, 0x14040a3c3\nmovaps  xmmword ptr [rax-68h], xmm10                                   ; +0x28, 0x14040a3c8\nmov     rax, cs:__security_cookie                                      ; +0x2d, 0x14040a3cd\nxor     rax, rsp                                                       ; +0x34, 0x14040a3d4\nmov     [rsp+0E8h+var_70], rax                                         ; +0x37, 0x14040a3d7\nmov     r14, rdx                                                       ; +0x3c, 0x14040a3dc\nmov     rdi, rcx                                                       ; +0x3f, 0x14040a3df\nmov     [rsp+0E8h+var_78], rdx                                         ; +0x42, 0x14040a3e2\nadd     rcx, 210h; void *                                              ; +0x47, 0x14040a3e7\ncmp     rcx, rdx                                                       ; +0x4e, 0x14040a3ee\njz      short loc_14040A406                                            ; +0x51, 0x14040a3f1\ncmp     qword ptr [rdx+18h], 0Fh                                       ; +0x53, 0x14040a3f3\njbe     short loc_14040A3FD                                            ; +0x58, 0x14040a3f8\nmov     rdx, [rdx]; Src                                                ; +0x5a, 0x14040a3fa\nmov     r8, [r14+10h]; Size                                            ; +0x5d, 0x14040a3fd\ncall    sub_1400405A0                                                  ; +0x61, 0x14040a401\nmov     rcx, [rdi+238h]                                                ; +0x66, 0x14040a406\nxor     ebp, ebp                                                       ; +0x6d, 0x14040a40d\ntest    rcx, rcx                                                       ; +0x6f, 0x14040a40f\njz      short loc_14040A421                                            ; +0x72, 0x14040a412\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x74, 0x14040a414\nmov     [rdi+238h], rbp                                                ; +0x7a, 0x14040a41a\ncmp     [rdi+220h], rbp                                                ; +0x81, 0x14040a421\njz      loc_14040A643                                                  ; +0x88, 0x14040a428\nmov     rax, [rdi+208h]                                                ; +0x8e, 0x14040a42e\nmov     rcx, [rax+0DC8h]                                               ; +0x95, 0x14040a435\nmov     edx, [rcx+14Ch]                                                ; +0x9c, 0x14040a43c\nsub     edx, 1                                                         ; +0xa2, 0x14040a442\njz      short loc_14040A47E                                            ; +0xa5, 0x14040a445\nsub     edx, 1                                                         ; +0xa7, 0x14040a447\njz      short loc_14040A474                                            ; +0xaa, 0x14040a44a\nsub     edx, 1                                                         ; +0xac, 0x14040a44c\njz      short loc_14040A46A                                            ; +0xaf, 0x14040a44f\ncmp     edx, 1                                                         ; +0xb1, 0x14040a451\njz      short loc_14040A460                                            ; +0xb4, 0x14040a454\nmovss   xmm0, dword ptr [rdi+268h]                                     ; +0xb6, 0x14040a456\njmp     short loc_14040A486                                            ; +0xbe, 0x14040a45e\nmovss   xmm0, dword ptr [rdi+274h]                                     ; +0xc0, 0x14040a460\njmp     short loc_14040A486                                            ; +0xc8, 0x14040a468\nmovss   xmm0, dword ptr [rdi+270h]                                     ; +0xca, 0x14040a46a\njmp     short loc_14040A486                                            ; +0xd2, 0x14040a472\nmovss   xmm0, dword ptr [rdi+26Ch]                                     ; +0xd4, 0x14040a474\njmp     short loc_14040A486                                            ; +0xdc, 0x14040a47c\nmovss   xmm0, dword ptr [rdi+264h]                                     ; +0xde, 0x14040a47e\nmovss   dword ptr [rdi+260h], xmm0                                     ; +0xe6, 0x14040a486\nxorps   xmm0, xmm0                                                     ; +0xee, 0x14040a48e\nmovdqu  [rsp+0E8h+var_98], xmm0                                        ; +0xf1, 0x14040a491\nmov     [rsp+0E8h+var_88], rbp                                         ; +0xf7, 0x14040a497\nlea     r8, [rsp+0E8h+var_98]                                          ; +0xfc, 0x14040a49c\nlea     rdx, asc_14071A734; \"~\"                                        ; +0x101, 0x14040a4a1\nmov     rcx, r14                                                       ; +0x108, 0x14040a4a8\ncall    sub_1401C5360                                                  ; +0x10b, 0x14040a4ab\nmov     rcx, qword ptr [rsp+0E8h+var_98+8]                             ; +0x110, 0x14040a4b0\nsub     rcx, qword ptr [rsp+0E8h+var_98]                               ; +0x115, 0x14040a4b5\nsar     rcx, 5                                                         ; +0x11a, 0x14040a4ba\ncall    cs:?createWithCapacity@CCArray@cocos2d@@SAPEAV12@I@Z; cocos2d::CCArray::createWithCapacity(uint) ; +0x11e, 0x14040a4be\nmov     [rdi+238h], rax                                                ; +0x124, 0x14040a4c4\nmov     rcx, rax                                                       ; +0x12b, 0x14040a4cb\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x12e, 0x14040a4ce\nmov     rax, [rdi+208h]                                                ; +0x134, 0x14040a4d4\nmov     rcx, [rax+0DC8h]                                               ; +0x13b, 0x14040a4db\nmovss   xmm10, dword ptr [rcx+158h]                                    ; +0x142, 0x14040a4e2\nmov     rax, qword ptr [rsp+0E8h+var_98+8]                             ; +0x14b, 0x14040a4eb\nmov     rdx, qword ptr [rsp+0E8h+var_98]                               ; +0x150, 0x14040a4f0\nsub     rax, rdx                                                       ; +0x155, 0x14040a4f5\nsar     rax, 5                                                         ; +0x158, 0x14040a4f8\ntest    rax, rax                                                       ; +0x15c, 0x14040a4fc\njz      loc_14040A638                                                  ; +0x15f, 0x14040a4ff\nmov     rsi, rbp                                                       ; +0x165, 0x14040a505\nxorps   xmm9, xmm9                                                     ; +0x168, 0x14040a508\nmovss   xmm8, cs:dword_140834FE8                                       ; +0x16c, 0x14040a50c\nlea     rcx, [rsi+rdx]                                                 ; +0x175, 0x14040a515\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0x179, 0x14040a519\njbe     short loc_14040A523                                            ; +0x17e, 0x14040a51e\nmov     rcx, [rcx]; String                                             ; +0x180, 0x14040a520\ncall    cs:atof                                                        ; +0x183, 0x14040a523\nxorps   xmm7, xmm7                                                     ; +0x189, 0x14040a529\ncvtsd2ss xmm7, xmm0                                                    ; +0x18c, 0x14040a52c\nmov     rcx, qword ptr [rsp+0E8h+var_98]                               ; +0x190, 0x14040a530\nadd     rcx, 20h ; ' '                                                 ; +0x195, 0x14040a535\nadd     rcx, rsi                                                       ; +0x199, 0x14040a539\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0x19c, 0x14040a53c\njbe     short loc_14040A546                                            ; +0x1a1, 0x14040a541\nmov     rcx, [rcx]; String                                             ; +0x1a3, 0x14040a543\ncall    cs:atof                                                        ; +0x1a6, 0x14040a546\nxorps   xmm6, xmm6                                                     ; +0x1ac, 0x14040a54c\ncvtsd2ss xmm6, xmm0                                                    ; +0x1af, 0x14040a54f\nsubss   xmm7, xmm10                                                    ; +0x1b3, 0x14040a553\nucomiss xmm6, xmm9                                                     ; +0x1b8, 0x14040a558\njp      short loc_14040A566                                            ; +0x1bc, 0x14040a55c\njnz     short loc_14040A566                                            ; +0x1be, 0x14040a55e\nmovaps  xmm6, xmm8                                                     ; +0x1c0, 0x14040a560\njmp     short loc_14040A570                                            ; +0x1c4, 0x14040a564\ncomiss  xmm6, xmm8                                                     ; +0x1c6, 0x14040a566\njb      loc_14040A614                                                  ; +0x1ca, 0x14040a56a\nmov     rax, [rdi+208h]                                                ; +0x1d0, 0x14040a570\nmov     r9, [rax+0DC8h]                                                ; +0x1d7, 0x14040a577\nadd     rax, 340h                                                      ; +0x1de, 0x14040a57e\nmov     [rsp+0E8h+var_B0], rax                                         ; +0x1e4, 0x14040a584\nmov     [rsp+0E8h+var_B8], 0                                           ; +0x1e9, 0x14040a589\nmov     [rsp+0E8h+var_C0], 0                                           ; +0x1ee, 0x14040a58e\nmovzx   eax, byte ptr [r9+155h]                                        ; +0x1f3, 0x14040a593\nmov     [rsp+0E8h+var_C8], al                                          ; +0x1fb, 0x14040a59b\nmov     r9d, [r9+14Ch]                                                 ; +0x1ff, 0x14040a59f\nmov     r8, [rdi+250h]                                                 ; +0x206, 0x14040a5a6\nmovaps  xmm1, xmm7                                                     ; +0x20d, 0x14040a5ad\nlea     rcx, [rsp+0E8h+var_80]                                         ; +0x210, 0x14040a5b0\ncall    LevelTools__posForTimeInternal                                 ; +0x215, 0x14040a5b5\nmov     rbx, [rdi+238h]                                                ; +0x21a, 0x14040a5ba\nmovss   xmm1, [rsp+0E8h+var_80]                                        ; +0x221, 0x14040a5c1\ncvtps2pd xmm1, xmm1                                                    ; +0x227, 0x14040a5c7\nmovq    rdx, xmm1                                                      ; +0x22a, 0x14040a5ca\nlea     rcx, a02f; \"%.02f\"                                             ; +0x22f, 0x14040a5cf\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x236, 0x14040a5d6\nmov     rdx, rax                                                       ; +0x23c, 0x14040a5dc\nmov     rcx, rbx                                                       ; +0x23f, 0x14040a5df\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x242, 0x14040a5e2\nmov     rbx, [rdi+238h]                                                ; +0x248, 0x14040a5e8\nxorps   xmm1, xmm1                                                     ; +0x24f, 0x14040a5ef\ncvtss2sd xmm1, xmm6                                                    ; +0x252, 0x14040a5f2\nmovq    rdx, xmm1                                                      ; +0x256, 0x14040a5f6\nlea     rcx, a02f; \"%.02f\"                                             ; +0x25b, 0x14040a5fb\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x262, 0x14040a602\nmov     rdx, rax                                                       ; +0x268, 0x14040a608\nmov     rcx, rbx                                                       ; +0x26b, 0x14040a60b\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x26e, 0x14040a60e\nadd     ebp, 2                                                         ; +0x274, 0x14040a614\nadd     rsi, 40h ; '@'                                                 ; +0x277, 0x14040a617\nmov     rcx, qword ptr [rsp+0E8h+var_98+8]                             ; +0x27b, 0x14040a61b\nmov     rdx, qword ptr [rsp+0E8h+var_98]                               ; +0x280, 0x14040a620\nsub     rcx, rdx                                                       ; +0x285, 0x14040a625\nsar     rcx, 5                                                         ; +0x288, 0x14040a628\nmovsxd  rax, ebp                                                       ; +0x28c, 0x14040a62c\ncmp     rax, rcx                                                       ; +0x28f, 0x14040a62f\njb      loc_14040A515                                                  ; +0x292, 0x14040a632\nlea     rcx, [rsp+0E8h+var_98]                                         ; +0x298, 0x14040a638\ncall    sub_1400760C0                                                  ; +0x29d, 0x14040a63d\nnop                                                                    ; +0x2a2, 0x14040a642\nmov     rcx, r14                                                       ; +0x2a3, 0x14040a643\ncall    sub_14003D310                                                  ; +0x2a6, 0x14040a646\nmov     rcx, [rsp+0E8h+var_70]                                         ; +0x2ab, 0x14040a64b\nxor     rcx, rsp; StackCookie                                          ; +0x2b0, 0x14040a650\ncall    __security_check_cookie                                        ; +0x2b3, 0x14040a653\nlea     r11, [rsp+0E8h+var_18]                                         ; +0x2b8, 0x14040a658\nmov     rbx, [r11+30h]                                                 ; +0x2c0, 0x14040a660\nmov     rbp, [r11+38h]                                                 ; +0x2c4, 0x14040a664\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x2c8, 0x14040a668\nmovaps  xmm7, xmmword ptr [r11-20h]                                    ; +0x2cd, 0x14040a66d\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x2d2, 0x14040a672\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0x2d7, 0x14040a677\nmovaps  xmm10, xmmword ptr [r11-50h]                                   ; +0x2dc, 0x14040a67c\nmov     rsp, r11                                                       ; +0x2e1, 0x14040a681\npop     r14                                                            ; +0x2e4, 0x14040a684\npop     rdi                                                            ; +0x2e6, 0x14040a686\npop     rsi                                                            ; +0x2e7, 0x14040a687\nretn                                                                   ; +0x2e8, 0x14040a688", "xrefs": ["EditorUI::onPlayback @ 0x1401b4334", "LevelEditorLayer::levelSettingsUpdated @ 0x1403ef8bd", "LevelEditorLayer::updateGameObjects @ 0x1403faeb0", "<???> @ 0x140925cc4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}