// // sub_10067850C from 0x10067850c to 0x10067860c (256 bytes) // // 2 xrefs: // > sub_1006773BC @ 0x1006774b4 // > sub_1006773BC @ 0x10067824c // // 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 11:11:13 +0000 // __int64 __fastcall sub_10067850C(__int64 a1, __int64 a2, size_t __n) { unsigned __int64 v6; // x9 unsigned __int64 v7; // x8 char *v8; // x0 unsigned __int64 v9; // x9 unsigned __int64 v10; // x8 size_t v11; // x22 __int64 v12; // x24 void *v13; // x23 char *v14; // x0 _BYTE *v16; // x10 size_t v17; // x9 v6 = *(_QWORD *)(a2 + 120) + __n; v7 = *(_QWORD *)(a1 + 2376); if ( v6 < v7 ) { v8 = *(char **)(a2 + 112); LABEL_10: memcpy(v8, *(const void **)(a2 + 136), __n); v16 = (_BYTE *)(*(_QWORD *)(a2 + 112) + __n); v17 = *(_QWORD *)(a2 + 120) + __n; *(_QWORD *)(a2 + 112) = v16; *(_QWORD *)(a2 + 120) = v17; *v16 = 0; return 0; } if ( v6 <= 0x19000 ) { v9 = (3 * v6) >> 1; v10 = 2 * v7; if ( v9 <= v10 ) v11 = v10; else v11 = v9; v12 = *(_QWORD *)(a2 + 112); v13 = *(void **)(a1 + 2368); v14 = (char *)off_1009E5FE0(v13, v11); if ( v14 ) { *(_QWORD *)(a1 + 2376) = v11; *(_QWORD *)(a1 + 2368) = v14; v8 = &v14[v12 - (_QWORD)v13]; *(_QWORD *)(a2 + 112) = v8; goto LABEL_10; } sub_10067889C(a1, "Failed to alloc memory for big header!"); } else { sub_10067889C(a1, "Avoided giant realloc for header (max is %d)!"); } return 27; }
GD Web Decomp Icon

GD Web Decomp

Raw Source