//
// sub_D1442C from 0xd1442c to 0xd14588 (348 bytes)
//
// 1 xrefs:
// > ??> @ 0x121e988
//
// 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
//
_QWORD *__usercall sub_D1442C@(int a1@, _QWORD *a2@)
{
_QWORD *result; // x0
*a2 = &byte_124B6C8;
switch ( a1 )
{
case 1:
sub_D1798C(a2, "Future already retrieved", 24);
result = a2;
break;
case 2:
sub_D1798C(a2, "Promise already satisfied", 25);
result = a2;
break;
case 3:
sub_D1798C(a2, "No associated state", 19);
result = a2;
break;
case 4:
sub_D1798C(a2, "Broken promise", 14);
result = a2;
break;
default:
sub_D1798C(a2, "Unknown error", 13);
result = a2;
break;
}
return result;
}