// // ossl_statem_client_write_transition from 0xfc6dbc to 0xfc6f1c (352 bytes) // // 5 xrefs: // > sub_FC5998 @ 0xfc5c4c // > sub_FC5998 @ 0xfc6090 // > @ 0xb93b0 // > sub_FC5998 @ 0xfc5aa0 // > @ 0x1545598 // // 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:24 +0000 // __int64 __fastcall ossl_statem_client_write_transition(__int64 a1) { __int64 v1; // x1 unsigned int v2; // w2 __int64 *v4; // x0 __int64 v5; // x3 int v6; // w0 v1 = a1 + 72; switch ( *(_DWORD *)(a1 + 92) ) { case 0: case 1: case 2: *(_DWORD *)(a1 + 92) = 12; return 1; case 8: v2 = 1; if ( !*(_DWORD *)(*(_QWORD *)(a1 + 144) + 568LL) ) goto LABEL_19; *(_DWORD *)(a1 + 92) = 13; return v2; case 0xB: if ( *(_DWORD *)(a1 + 176) ) goto LABEL_7; goto LABEL_18; case 0xC: return 2; case 0xD: LABEL_19: *(_DWORD *)(a1 + 92) = 14; return 1; case 0xE: v4 = *(__int64 **)(a1 + 144); v2 = 1; v5 = *v4; if ( *((_DWORD *)v4 + 142) == 1 ) v6 = 15; else v6 = 16; *(_DWORD *)(v1 + 20) = v6; if ( (v5 & 0x10) != 0 ) goto LABEL_7; return v2; case 0xF: LABEL_7: *(_DWORD *)(v1 + 20) = 16; return 1; case 0x10: if ( (*(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 192LL) + 104LL) & 8) != 0 || !*(_DWORD *)(*(_QWORD *)(a1 + 144) + 968LL) ) { goto LABEL_10; } v2 = 1; *(_DWORD *)(a1 + 92) = 17; return v2; case 0x11: LABEL_10: *(_DWORD *)(a1 + 92) = 18; return 1; case 0x12: v2 = 2; if ( *(_DWORD *)(a1 + 176) ) { LABEL_18: *(_DWORD *)(a1 + 92) = 1; ossl_statem_set_in_init(a1, 0); return 1; } return v2; default: return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source