// // EditorUI::updateDpadStepLabel from 0x1401f4000 to 0x1401f429b (667 bytes) // // 3 xrefs: // > EditorUI::setCustomMoveStep @ 0x1401ae8f7 // > EditorUI::setDpadStep @ 0x1401f3f6d // > @ 0x14091aa50 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:28:09 +0000 // // Hidden C++ exception states: #wind=1 void __fastcall EditorUI::updateDpadStepLabel(__int64 a1) { __int64 v2; // rsi _BYTE *v3; // rdx size_t v4; // rbx cocos2d::CCString *v5; // rax char *CString; // rax __int64 v7; // rbx size_t v8; // r8 void **v9; // rcx void **v10; // rdx void **v11; // r9 unsigned __int64 v12; // r8 unsigned __int64 v13; // rbx void **v14; // rax void **v15; // rax void **v16; // rax void **v17; // rdx __int16 v18; // ax char v19; // cl void *v20; // rcx __int16 v21; // [rsp+30h] [rbp-30h] BYREF char v22; // [rsp+32h] [rbp-2Eh] void *Block[2]; // [rsp+38h] [rbp-28h] BYREF void **v24; // [rsp+48h] [rbp-18h] unsigned __int64 v25; // [rsp+50h] [rbp-10h] if ( !*(_QWORD *)(a1 + 1696) ) return; v2 = 32LL * *(int *)(a1 + 1672); *(_OWORD *)Block = 0; v24 = nullptr; v25 = 15; LOBYTE(Block[0]) = 0; v3 = *(_BYTE **)((char *)&unk_1407032B0 + v2 + 8); if ( v3 ) { v4 = -1; do ++v4; while ( v3[v4] ); sub_1400405A0(Block, v3, v4); LABEL_25: v11 = (void **)Block[0]; v12 = v25; goto LABEL_26; } v5 = cocos2d::CCString::createWithFormat("%.3f", *(float *)(a1 + 1704)); CString = (char *)cocos2d::CCString::getCString(v5); v7 = -1; v8 = -1; do ++v8; while ( CString[v8] ); sub_1400405A0(Block, CString, v8); v10 = Block; v11 = (void **)Block[0]; if ( v25 > 0xF ) v10 = (void **)Block[0]; v12 = (unsigned __int64)v24; if ( v24 ) { v9 = (void **)((char *)v24 + (_QWORD)v10 - 1); if ( *(_BYTE *)v9 == 48 ) { while ( v9 != v10 ) { v9 = (void **)((char *)v9 - 1); if ( *(_BYTE *)v9 != 48 ) goto LABEL_14; } } else { LABEL_14: v7 = (char *)v9 - (char *)v10; } } v13 = v7 + 1; if ( (unsigned __int64)v24 < v13 ) LABEL_40: sub_14003F4D0(v9, v10, v12, v11); v24 = (void **)v13; v14 = Block; if ( v25 > 0xF ) v14 = (void **)Block[0]; *((_BYTE *)v14 + v13) = 0; v15 = Block; v11 = (void **)Block[0]; v12 = v25; if ( v25 > 0xF ) v15 = (void **)Block[0]; v10 = v24; if ( *((_BYTE *)v15 + (_QWORD)v24 - 1) == 46 ) { v9 = (void **)((char *)v24 - 1); if ( v24 ) { v24 = (void **)((char *)v24 - 1); v16 = Block; if ( v25 > 0xF ) v16 = (void **)Block[0]; *((_BYTE *)v9 + (_QWORD)v16) = 0; goto LABEL_25; } goto LABEL_40; } LABEL_26: v17 = Block; if ( v12 > 0xF ) v17 = v11; (**(void (__fastcall ***)(__int64, void **))(*(_QWORD *)(a1 + 1696) + 360LL))(*(_QWORD *)(a1 + 1696) + 360LL, v17); if ( *(_DWORD *)((char *)&unk_1407032B0 + v2 + 28) == 1 ) { v21 = -7425; v19 = 74; } else { if ( *(_DWORD *)((char *)&unk_1407032B0 + v2 + 28) != 2 ) { v18 = -1; v19 = -1; goto LABEL_34; } v21 = -32001; v19 = -36; } v18 = v21; LABEL_34: v21 = v18; v22 = v19; (**(void (__fastcall ***)(__int64, __int16 *))(*(_QWORD *)(a1 + 1696) + 368LL))(*(_QWORD *)(a1 + 1696) + 368LL, &v21); cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 1696), 26.0, 0.44999999, 0.1); if ( v25 > 0xF ) { v20 = Block[0]; if ( v25 + 1 >= 0x1000 ) { v20 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v20 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v20); } }