// // DrawGridLayer::loadTimeMarkers from 0x1402e8cd0 to 0x1402e8fea (794 bytes) // // 4 xrefs: // > EditorUI::onPlayback @ 0x140111c64 // > LevelEditorLayer::levelSettingsUpdated @ 0x1402d3776 // > LevelEditorLayer::updateGameObjects @ 0x1402dc623 // > @ 0x1406d3818 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=2 void __fastcall DrawGridLayer::loadTimeMarkers(__int64 a1, void **a2) { __int64 v2; // r14 void **v4; // rcx cocos2d::CCObject *v5; // rcx int v6; // esi int v7; // xmm0_4 void *v8; // r12 char *v9; // rbp unsigned __int64 v10; // r15 struct cocos2d::CCArray *v11; // rax char *v12; // rbx const char *v13; // rcx const char *v14; // rcx double v15; // xmm0_8 float v16; // xmm6_4 struct cocos2d::CCString *v17; // rax struct cocos2d::CCString *v18; // rax __int64 i; // rbx char *v20; // rax int *v21; // [rsp+30h] [rbp-C8h] int v22; // [rsp+50h] [rbp-A8h] void *Block[2]; // [rsp+58h] [rbp-A0h] BYREF __int64 v24; // [rsp+68h] [rbp-90h] void **v25; // [rsp+70h] [rbp-88h] v2 = (__int64)a2; v25 = a2; v4 = (void **)(a1 + 528); if ( v4 != a2 ) { if ( (unsigned __int64)a2[3] > 0xF ) a2 = (void **)*a2; sub_14003CCE0(v4, a2, *(_QWORD *)(v2 + 16)); } v5 = *(cocos2d::CCObject **)(a1 + 568); v6 = 0; if ( v5 ) { cocos2d::CCObject::release(v5); *(_QWORD *)(a1 + 568) = 0; } if ( *(_QWORD *)(a1 + 544) ) { switch ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 520) + 3504LL) + 332LL) ) { case 1: v7 = *(_DWORD *)(a1 + 612); break; case 2: v7 = *(_DWORD *)(a1 + 620); break; case 3: v7 = *(_DWORD *)(a1 + 624); break; case 4: v7 = *(_DWORD *)(a1 + 628); break; default: v7 = *(_DWORD *)(a1 + 616); break; } *(_DWORD *)(a1 + 608) = v7; *(_OWORD *)Block = 0; v24 = 0; sub_1400DE660((__int64 *)v2, byte_14053CC70, (__int64 *)Block); v8 = Block[1]; v9 = (char *)Block[0]; v10 = ((char *)Block[1] - (char *)Block[0]) >> 5; v11 = cocos2d::CCArray::createWithCapacity(v10); *(_QWORD *)(a1 + 568) = v11; cocos2d::CCObject::retain(v11); if ( v10 ) { v12 = v9 + 32; while ( 1 ) { v13 = v12 - 32; if ( *((_QWORD *)v12 - 1) > 0xFu ) v13 = *(const char **)v13; atof(v13); v14 = v12; if ( *((_QWORD *)v12 + 3) > 0xFu ) v14 = *(const char **)v12; v15 = atof(v14); v16 = v15; if ( v16 == 0.0 ) break; if ( v16 >= 0.80000001 ) goto LABEL_26; LABEL_27: v6 += 2; v12 += 64; if ( v6 >= v10 ) goto LABEL_28; } v16 = 0.80000001; LABEL_26: LOBYTE(v21) = 0; LevelTools::posForTimeInternal( *(float *)&v15, (cocos2d::CCArray *)(*(_QWORD *)(a1 + 520) + 832LL), *(_QWORD *)(a1 + 592), *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 520) + 3504LL) + 332LL), *(_BYTE *)(*(_QWORD *)(*(_QWORD *)(a1 + 520) + 3504LL) + 341LL), 0, v21, *(_QWORD *)(a1 + 520) + 832); v17 = cocos2d::CCString::createWithFormat("%.02f", v22); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 568), v17); v18 = cocos2d::CCString::createWithFormat("%.02f", v16); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 568), v18); goto LABEL_27; } LABEL_28: if ( v9 ) { for ( i = (__int64)v9; (void *)i != v8; i += 32 ) sub_14003A830(i); v20 = v9; if ( ((v24 - (_QWORD)v9) & 0xFFFFFFFFFFFFFFE0uLL) >= 0x1000 ) { v9 = *((char **)v9 - 1); if ( (unsigned __int64)(v20 - v9 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v9); } } sub_14003A830(v2); }