// // lws_hdr_total_length from 0x858378 to 0x8583a0 (40 bytes) // // 6 xrefs: // > lws_hdr_copy @ 0x85841a // > sub_858548 @ 0x8587c4 // > sub_858548 @ 0x858ae6 // > sub_859ADC @ 0x859b20 // > sub_859ADC @ 0x859cd8 // > sub_859ADC @ 0x859cee // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:02:37 +0000 // int __fastcall lws_hdr_total_length(int *a1, int a2) { int v2; // r4 int v3; // r1 int v4; // r3 int result; // r0 int v6; // r2 v2 = *a1; v3 = a2 + *a1; v4 = *(unsigned __int8 *)(v3 + 988); result = v4; if ( *(_BYTE *)(v3 + 988) ) { result = 0; do { v6 = v2 + 6 * v4; v4 = *(unsigned __int8 *)(v6 + 8); result += *(unsigned __int16 *)(v6 + 6); } while ( *(_BYTE *)(v6 + 8) ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source