//
// KeybindCapturePopup::updateConflictLabel from 0x79a4b8 to 0x79a7ee (822 bytes)
//
// 1 xrefs:
// > KeybindCapturePopup::updateChordDisplay @ 0x79a8b2
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:49 +0000
//
char **__fastcall KeybindCapturePopup::updateConflictLabel(KeybindCapturePopup *this)
{
unsigned int v1; // r5
int v2; // r2
float v5; // r6
GJKeybindManager *v6; // r0
GJKeybindManager *v7; // r10
GJKeybindManager *v8; // r0
int v9; // r1
GJKeybindManager *v10; // r0
GJKeybindManager *v11; // r0
int v12; // r2
int v13; // r3
char *v14; // r0
int v15; // r2
int v16; // r3
char *v17; // r1
int v18; // r0
void (__fastcall *v19)(int, char **); // r3
char *v20; // r1
int *v21; // r0
int v22; // r0
int v23; // r3
int v24; // r1
unsigned int i; // r5
GJKeybindManager *v26; // r7
GJKeybindManager *v27; // r0
GJKeybindManager *v28; // r0
int v29; // r2
int v30; // r3
int *v31; // r0
int v32; // r3
void (__fastcall *v33)(int *, _BYTE *); // r3
char *v34; // r1
int v35; // r0
void (__fastcall *v36)(int, char **); // r2
int v37; // r3
char *v38; // r0
_BYTE v39[4]; // [sp+Ch] [bp-48h] BYREF
char *v40[3]; // [sp+10h] [bp-44h] BYREF
int v41; // [sp+1Ch] [bp-38h] BYREF
int v42; // [sp+20h] [bp-34h]
int v43; // [sp+24h] [bp-30h]
int v44; // [sp+28h] [bp-2Ch] BYREF
int v45; // [sp+2Ch] [bp-28h]
int v46; // [sp+30h] [bp-24h]
char *v47[3]; // [sp+34h] [bp-20h] BYREF
int v48[2]; // [sp+40h] [bp-14h] BYREF
char *v49; // [sp+48h] [bp-Ch]
int v50; // [sp+4Ch] [bp-8h]
v1 = 0;
v2 = _stack_chk_guard;
*((_BYTE *)this + 740) = 0;
v50 = v2;
if ( !*((_DWORD *)this + 183) || !*((_DWORD *)this + 179) )
return (char **)(*(int (__fastcall **)(_DWORD, const char *))(**((_DWORD **)this + 191) + 464))(
*((_DWORD *)this + 191),
" ");
if ( *((_DWORD *)this + 190) )
v5 = 0.6;
else
v5 = 0.5;
v6 = (GJKeybindManager *)GJKeybindManager::sharedState(this);
v7 = (GJKeybindManager *)GJKeybindManager::groupForAction(v6, *((_DWORD *)this + 181));
v8 = (GJKeybindManager *)(*(int (__fastcall **)(char **))(**((_DWORD **)this + 179) + 12))(v40);
v41 = 0;
v42 = 0;
v43 = 0;
while ( v1 < (v40[1] - v40[0]) >> 2 )
{
if ( *(_DWORD *)&v40[0][4 * v1] != *((_DWORD *)this + 181) )
{
if ( *((_BYTE *)this + 739)
|| (v10 = (GJKeybindManager *)GJKeybindManager::sharedState(v8),
v11 = (GJKeybindManager *)GJKeybindManager::groupForAction(v10, *(_DWORD *)&v40[0][4 * v1]),
(v8 = (GJKeybindManager *)GJKeybindManager::groupsConflict(v11, v7, v12)) != nullptr) )
{
if ( (v41 & 1) != 0 )
v13 = v42;
else
v13 = (int)(unsigned __int8)v41 >> 1;
if ( v13 )
std::string::append(&v41, ", ");
v14 = (char *)GJKeybindManager::actionToString(*(GJKeybindManager **)&v40[0][4 * v1], v9);
v8 = (GJKeybindManager *)std::string::append(&v41, v14);
}
}
++v1;
}
v15 = *((unsigned __int8 *)this + 739);
if ( (v41 & 1) != 0 )
v16 = v42;
else
v16 = (int)(unsigned __int8)v41 >> 1;
if ( !v16 )
{
if ( *((_BYTE *)this + 739) )
{
v44 = 0;
v45 = 0;
v46 = 0;
v22 = GJKeybindManager::sharedState((GJKeybindManager *)((unsigned __int8)v41 << 31));
GJKeybindManager::actionsForChord((GJKeybindManager *)v47, v22, *((_DWORD *)this + 183), v23);
for ( i = 0; i < (v47[1] - v47[0]) >> 2; ++i )
{
v26 = *(GJKeybindManager **)&v47[0][4 * i];
if ( v26 != *((GJKeybindManager **)this + 181)
&& !GJKeybindManager::isMovementAction(*(GJKeybindManager **)&v47[0][4 * i], v24) )
{
v27 = (GJKeybindManager *)GJKeybindManager::sharedState(nullptr);
v28 = (GJKeybindManager *)GJKeybindManager::groupForAction(v27, (int)v26);
if ( GJKeybindManager::groupsConflict(v28, v7, v29) )
{
if ( (v44 & 1) != 0 )
v37 = v45;
else
v37 = (int)(unsigned __int8)v44 >> 1;
if ( v37 )
std::string::append(&v44, ", ");
v38 = (char *)GJKeybindManager::actionToString(v26, v24);
std::string::append(&v44, v38);
}
}
}
if ( (v44 & 1) != 0 )
v30 = v45;
else
v30 = (int)(unsigned __int8)v44 >> 1;
if ( v30 )
{
std::operator+(v48, "Overrides ", (unsigned __int8 *)&v44);
v31 = *((int **)this + 191);
v32 = *v31;
v39[0] = -1;
v39[1] = -106;
v33 = *(void (__fastcall **)(int *, _BYTE *))(v32 + 536);
v39[2] = 50;
v33(v31, v39);
if ( (v48[0] & 1) != 0 )
v34 = v49;
else
v34 = (char *)v48 + 1;
(*(void (__fastcall **)(_DWORD, char *))(**((_DWORD **)this + 191) + 464))(*((_DWORD *)this + 191), v34);
cocos2d::CCLabelBMFont::limitLabelWidth(
*((cocos2d::CCLabelBMFont **)this + 191),
*((float *)this + 139) - 40.0,
v5,
0.1);
std::string::~string((int)v48);
std::__vector_base::~__vector_base(v47);
v21 = &v44;
goto LABEL_44;
}
std::__vector_base::~__vector_base(v47);
std::string::~string((int)&v44);
}
v35 = *((_DWORD *)this + 191);
if ( !*((_BYTE *)this + 737) || *((_DWORD *)this + 190) )
{
(*(void (__fastcall **)(int))(*(_DWORD *)v35 + 464))(v35);
}
else
{
v36 = *(void (__fastcall **)(int, char **))(*(_DWORD *)v35 + 536);
LOWORD(v47[0]) = -26986;
BYTE2(v47[0]) = -106;
v36(v35, v47);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 191) + 80))(*((_DWORD *)this + 191), 1056964608);
(*(void (__fastcall **)(_DWORD))(**((_DWORD **)this + 191) + 464))(*((_DWORD *)this + 191));
}
goto LABEL_50;
}
*((_BYTE *)this + 740) = v15;
if ( v15 )
v17 = "Already used by ";
else
v17 = "Used by ";
std::operator+(v48, v17, (unsigned __int8 *)&v41);
v18 = *((_DWORD *)this + 191);
v19 = *(void (__fastcall **)(int, char **))(*(_DWORD *)v18 + 536);
LOWORD(v47[0]) = -26881;
BYTE2(v47[0]) = 50;
v19(v18, v47);
if ( (v48[0] & 1) != 0 )
v20 = v49;
else
v20 = (char *)v48 + 1;
(*(void (__fastcall **)(_DWORD, char *))(**((_DWORD **)this + 191) + 464))(*((_DWORD *)this + 191), v20);
cocos2d::CCLabelBMFont::limitLabelWidth(
*((cocos2d::CCLabelBMFont **)this + 191),
*((float *)this + 139) - 40.0,
v5,
0.1);
v21 = v48;
LABEL_44:
std::string::~string((int)v21);
LABEL_50:
std::string::~string((int)&v41);
return std::__vector_base::~__vector_base(v40);
}