//
// KeybindCapturePopup::dKeybindCapturePopup from 0x14044e250 to 0x14044e376 (294 bytes)
//
// 4 xrefs:
// > sub_14044F0E8 @ 0x14044f0ef
// > sub_14044F0F4 @ 0x14044f0fb
// > ??> @ 0x140794040
// > ??> @ 0x1409275d8
//
// 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:32:26 +0000
//
// Hidden C++ exception states: #wind=1
_QWORD *__fastcall KeybindCapturePopup::dKeybindCapturePopup(_QWORD *Block, char a2)
{
__int64 v4; // rax
__int64 v5; // rcx
cocos2d::CCTextureCache *v6; // rax
*Block = &KeybindCapturePopup::`vftable';
Block[40] = &KeybindCapturePopup::`vftable';
Block[41] = &KeybindCapturePopup::`vftable';
Block[42] = &KeybindCapturePopup::`vftable';
Block[43] = &KeybindCapturePopup::`vftable';
Block[44] = &KeybindCapturePopup::`vftable';
Block[51] = &KeybindCapturePopup::`vftable';
Block[54] = &KeybindCapturePopup::`vftable';
Block[68] = &KeybindCapturePopup::`vftable';
Block[83] = &KeybindCapturePopup::`vftable';
Block[84] = &KeybindCapturePopup::`vftable';
Block[125] = &KeybindCapturePopup::`vftable';
v4 = cocos2d::CCDirector::sharedDirector(Block);
*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 176LL))(v4) + 158) = 0;
if ( *((_BYTE *)Block + 1038) )
{
v6 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v5);
cocos2d::CCTextureCache::removeTextureForKey(v6, "controller_outline.png");
}
Block[125] = &InputCaptureDelegate::`vftable';
SetupTriggerPopup::dSetupTriggerPopup(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}