{"type": "func", "start": 6733780, "end": 6734036, "name": "DrawGridLayer::updateTimeMarkers", "pseudocode": "// \n// DrawGridLayer::updateTimeMarkers from 0x66bfd4 to 0x66c0d4 (256 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::updateGameObjects @ 0x67b684\n// > EditorUI::onPlayback @ 0x689410\n// > <???> @ 0xb2fb0\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 DrawGridLayer::updateTimeMarkers(DrawGridLayer *a1)\n{\n  void *v2; // x0\n  unsigned int *v3; // x2\n  int v4; // w1\n  __int64 v5; // [xsp+40h] [xbp+40h] BYREF\n\n  a1->m_updateTimeMarkers = 1;\n  a1->m_updateSpeedObjects = 0;\n  DrawGridLayer::sortSpeedObjects(a1);\n  sub_D18D28(&v5, &a1->m_timeMarkerString);\n  DrawGridLayer::loadTimeMarkers((__int64)a1, &v5);\n  v2 = (void *)(v5 - 24);\n  if ( (__int64 *)(v5 - 24) != &qword_124B6B0 )\n  {\n    if ( &pthread_create )\n    {\n      v3 = (unsigned int *)(v5 - 8);\n      do\n        v4 = __ldaxr(v3);\n      while ( __stlxr(v4 - 1, v3) );\n    }\n    else\n    {\n      v4 = *(_DWORD *)(v5 - 8);\n      *(_DWORD *)(v5 - 8) = v4 - 1;\n    }\n    if ( v4 <= 0 )\n      operator delete(v2);\n  }\n}", "assembly": "; \n; DrawGridLayer::updateTimeMarkers from 0x66bfd4 to 0x66c0d4 (256 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::updateGameObjects @ 0x67b684\n; > EditorUI::onPlayback @ 0x689410\n; > <???> @ 0xb2fb0\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\nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x66bfd4\nMOV             W2, #1                                                 ; +0x4, 0x66bfd8\nMOV             X29, SP                                                ; +0x8, 0x66bfdc\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0xc, 0x66bfe0\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x66bfe4\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x14, 0x66bfe8\nADD             X20, X29, #0x50+var_10                                 ; +0x18, 0x66bfec\nMOV             X21, X0                                                ; +0x1c, 0x66bff0\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x66bff4\nSTRB            W2, [X0,#0x258]                                        ; +0x24, 0x66bff8\nSTRB            WZR, [X0,#0x259]                                       ; +0x28, 0x66bffc\nLDR             X1, [X1]                                               ; +0x2c, 0x66c000\nSTR             X1, [X29,#0x50+var_8]                                  ; +0x30, 0x66c004\nBL              _ZN13DrawGridLayer16sortSpeedObjectsEv; DrawGridLayer::sortSpeedObjects(void) ; +0x34, 0x66c008\nMOV             X0, X20                                                ; +0x38, 0x66c00c\nADD             X1, X21, #0x208                                        ; +0x3c, 0x66c010\nBL              sub_D18D28                                             ; +0x40, 0x66c014\nMOV             X0, X21                                                ; +0x44, 0x66c018\nMOV             X1, X20                                                ; +0x48, 0x66c01c\nBL              _ZN13DrawGridLayer15loadTimeMarkersESs; DrawGridLayer::loadTimeMarkers(std::string) ; +0x4c, 0x66c020\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x50, 0x66c024\nLDR             X2, [X29,#0x50+var_10]                                 ; +0x54, 0x66c028\nSUB             X0, X2, #0x18; p                                       ; +0x58, 0x66c02c\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x5c, 0x66c030\nCMP             X0, X1                                                 ; +0x60, 0x66c034\nB.NE            loc_66C060                                             ; +0x64, 0x66c038\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x68, 0x66c03c\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x6c, 0x66c040\nLDR             X0, [X19]                                              ; +0x70, 0x66c044\nCMP             X1, X0                                                 ; +0x74, 0x66c048\nB.NE            loc_66C0A4                                             ; +0x78, 0x66c04c\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x7c, 0x66c050\nLDR             X21, [SP,#0x50+var_30]                                 ; +0x80, 0x66c054\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x84, 0x66c058\nRET                                                                    ; +0x88, 0x66c05c\nADRP            X1, #pthread_create_ptr_0@PAGE                         ; +0x8c, 0x66c060\nLDR             X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0x90, 0x66c064\nCBZ             X1, loc_66C094                                         ; +0x94, 0x66c068\nSUB             X2, X2, #8                                             ; +0x98, 0x66c06c\nLDAXR           W1, [X2]                                               ; +0x9c, 0x66c070\nSUB             W3, W1, #1                                             ; +0xa0, 0x66c074\nSTLXR           W4, W3, [X2]                                           ; +0xa4, 0x66c078\nCBNZ            W4, loc_66C070                                         ; +0xa8, 0x66c07c\nCMP             W1, WZR                                                ; +0xac, 0x66c080\nB.GT            loc_66C03C                                             ; +0xb0, 0x66c084\nADD             X1, X29, #0x50+var_18                                  ; +0xb4, 0x66c088\nBL              j__ZdlPv; operator delete(void *)                      ; +0xb8, 0x66c08c\nB               loc_66C03C                                             ; +0xbc, 0x66c090\nLDUR            W1, [X2,#-8]                                           ; +0xc0, 0x66c094\nSUB             W3, W1, #1                                             ; +0xc4, 0x66c098\nSTUR            W3, [X2,#-8]                                           ; +0xc8, 0x66c09c\nB               loc_66C080                                             ; +0xcc, 0x66c0a0\nBL              .__stack_chk_fail                                      ; +0xd0, 0x66c0a4\nADRP            X1, #off_122EFE8@PAGE                                  ; +0xd4, 0x66c0a8\nMOV             X19, X0                                                ; +0xd8, 0x66c0ac\nLDR             X0, [X29,#0x50+var_10]                                 ; +0xdc, 0x66c0b0\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0xe0, 0x66c0b4\nSUB             X0, X0, #0x18                                          ; +0xe4, 0x66c0b8\nCMP             X0, X1                                                 ; +0xe8, 0x66c0bc\nB.EQ            loc_66C0CC                                             ; +0xec, 0x66c0c0\nADD             X1, X29, #0x50+var_18                                  ; +0xf0, 0x66c0c4\nBL              sub_4DB660                                             ; +0xf4, 0x66c0c8\nMOV             X0, X19                                                ; +0xf8, 0x66c0cc\nBL              _Unwind_Resume                                         ; +0xfc, 0x66c0d0", "xrefs": ["LevelEditorLayer::updateGameObjects @ 0x67b684", "EditorUI::onPlayback @ 0x689410", "<???> @ 0xb2fb0"], "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"}