//
// BIO_copy_next_retry from 0xff5488 to 0xff54c8 (64 bytes)
//
// 23 xrefs:
// > sub_FADD3C @ 0xfae01c
// > sub_FF3E30 @ 0xff3eb0
// > sub_FF3E30 @ 0xff3f20
// > sub_FF4288 @ 0xff43cc
// > sub_FF43E8 @ 0xff44b8
// > sub_FF4550 @ 0xff463c
// > sub_10DC9C8 @ 0x10dcb34
// > sub_10DC9C8 @ 0x10dcd00
// > sub_10DCD0C @ 0x10dcdb8
// > sub_10DCD0C @ 0x10dceac
// > sub_10DCD0C @ 0x10dcef4
// > sub_10DCF10 @ 0x10dd174
// > sub_10DD39C @ 0x10dd4a4
// > sub_10DD5E4 @ 0x10dd668
// > sub_10DD69C @ 0x10dd710
// > sub_10FB90C @ 0x10fbb60
// > sub_10FB90C @ 0x10fbb7c
// > ??> @ 0x10fc5b4
// > ??> @ 0x10fc744
// > sub_10FC9C4 @ 0x10fca58
// > sub_10FEE80 @ 0x10ff07c
// > sub_10FEE80 @ 0x10ff144
// > ??> @ 0xadd70
//
// This function is hookable on this platform (idp: arm, 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 13:15:48 +0000
//
__int64 __fastcall BIO_copy_next_retry(__int64 a1)
{
int v2; // w0
__int64 result; // x0
v2 = BIO_test_flags(*(_QWORD *)(a1 + 56), 0xFu);
BIO_set_flags(a1, v2);
result = *(unsigned int *)(*(_QWORD *)(a1 + 56) + 36LL);
*(_DWORD *)(a1 + 36) = result;
return result;
}