int __fastcall gcp_cmdFE0B_DestroyAuthenticatedSession(struct gcp_ctx *ctx, struct ta_params *params) { unsigned int arg10; // r0 int v5; // r4 char *v6; // r1 unsigned int asd_refcount; // r0 unsigned int v8; // r0 int v9; // r0 gcp_log(level: 0, fmt: aAmdTaGcpDestro); arg10 = params->arg10; if ( arg10 >> 28 == 0 ) { v6 = (char *)ctx + 80 * HIBYTE(arg10); if ( *((_DWORD *)v6 + 192) == arg10 ) { *((_DWORD *)v6 + 198) = 0; asd_refcount = ctx->asd_refcount; if ( asd_refcount == 0 || (v8 = asd_refcount - 1, ctx->asd_refcount = v8, v8 == 0) ) { v9 = gcp_asd_rpc_305(arg: 2u); if ( v9 != 0 ) return v9 | 0x20000000; } v5 = 0; } else { v5 = 256; } gcp_log(level: 0, fmt: aAmdTaGcpDestro_0); return v5; } return 256; }