// // sub_1001ED334 from 0x1001ed334 to 0x1001ed3ac (120 bytes) // // 1 xrefs: // > sub_1001ED0B0 @ 0x1001ed1dc // // 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:00:36 +0000 // __int64 __fastcall sub_1001ED334(__int64 a1, FILE *a2, int a3) { char v3; // w20 __int64 v4; // x19 *(_QWORD *)(a1 + 120) = a2; if ( !a2 ) return 0; v3 = a3; v4 = a1; *(_DWORD *)(a1 + 392) = a3; if ( *(_DWORD *)(a1 + 396) == 34 ) { setbuf(a2, nullptr); *(_DWORD *)(v4 + 396) = 0; } if ( (v3 & 2) != 0 ) { *(_DWORD *)(v4 + 396) = 0; if ( fseek(*(FILE **)(v4 + 120), 0, 2) ) { fclose(*(FILE **)(v4 + 120)); *(_QWORD *)(v4 + 120) = 0; return 0; } } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source