//
// std::rethrow_exception from 0xd1f29c to 0xd1f318 (124 bytes)
//
// 1 xrefs:
// > ??> @ 0xc7a58
//
// 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
//
void __fastcall __noreturn std::rethrow_exception(std::__exception_ptr::exception_ptr *a1)
{
__int64 v1; // x20
_QWORD *dependent_exception; // x19
unsigned int *v3; // x0
unsigned int v4; // w1
v1 = std::__exception_ptr::exception_ptr::_M_get(a1);
dependent_exception = _cxa_allocate_dependent_exception();
v3 = (unsigned int *)(v1 - 128);
*dependent_exception = v1;
do
v4 = __ldaxr(v3);
while ( __stlxr(v4 + 1, v3) );
dependent_exception[2] = std::get_unexpected();
dependent_exception[3] = std::get_terminate();
dependent_exception[10] = 0x474E5543432B2B01LL;
dependent_exception[11] = sub_D1F048;
Unwind_RaiseException(dependent_exception + 10);
_cxa_begin_catch(dependent_exception + 10);
std::terminate();
}