#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */
typedef struct TYPE_4__ TYPE_1__;

/* Type definitions */
struct TYPE_4__ {
  unsigned int *data;
  int num;
  unsigned int Nh;
  unsigned int Nl;
  unsigned long h0;
  unsigned long h1;
  unsigned long h2;
  unsigned long h3;
  unsigned long h4;
};
typedef TYPE_1__ SHA_CTX;

/* Variables and functions */
int /*<<< orphan*/ sha1_block_host_order(TYPE_1__ *, unsigned int *, int);
int SHA1_Final(unsigned char *md, SHA_CTX *c) {
  register unsigned int *p;
  register unsigned long l;
  register int i, j;
  static const unsigned char end[4] = {0x80, 0x00, 0x00, 0x00};
  const unsigned char *cp = end;
  p = c->data;
  i = c->num >> 2;
  j = c->num & 0x03;
  l = (j == 0) ? 0 : p[i];
  {
    switch (j) {
    case 0:
      l = ((unsigned long)(*((cp)++))) << 24;
    case 1:
      l |= ((unsigned long)(*((cp)++))) << 16;
    case 2:
      l |= ((unsigned long)(*((cp)++))) << 8;
    case 3:
      l |= ((unsigned long)(*((cp)++)));
    }
  };
  p[i++] = l;
  if (i > (16 - 2)) {
    if (i < 16)
      p[i] = 0;
    sha1_block_host_order(c, p, 1);
    i = 0;
  }
  for (; i < (16 - 2); i++)
    p[i] = 0;
  p[16 - 2] = c->Nh;
  p[16 - 1] = c->Nl;
  sha1_block_host_order(c, p, 1);
  do {
    unsigned long ll;
    ll = (c)->h0;
    ({
      unsigned int r = (ll);
      asm("bswapl %0" : "=r"(r) : "0"(r));
      *((unsigned int *)((md))) = r;
      ((md)) += 4;
      r;
    });
    ll = (c)->h1;
    ({
      unsigned int r = (ll);
      asm("bswapl %0" : "=r"(r) : "0"(r));
      *((unsigned int *)((md))) = r;
      ((md)) += 4;
      r;
    });
    ll = (c)->h2;
    ({
      unsigned int r = (ll);
      asm("bswapl %0" : "=r"(r) : "0"(r));
      *((unsigned int *)((md))) = r;
      ((md)) += 4;
      r;
    });
    ll = (c)->h3;
    ({
      unsigned int r = (ll);
      asm("bswapl %0" : "=r"(r) : "0"(r));
      *((unsigned int *)((md))) = r;
      ((md)) += 4;
      r;
    });
    ll = (c)->h4;
    ({
      unsigned int r = (ll);
      asm("bswapl %0" : "=r"(r) : "0"(r));
      *((unsigned int *)((md))) = r;
      ((md)) += 4;
      r;
    });
  } while (0);
  c->num = 0;
  return 1;
}


x86 assembly (clang, -O0):
<SHA1_Final>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xee9(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%eax
sar    $0x2,%eax
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%eax
and    $0x3,%eax
mov    %eax,-0x28(%rbp)
cmpl   $0x0,-0x28(%rbp)
jne    1164 <SHA1_Final+0x54>
xor    %eax,%eax
mov    %eax,-0x64(%rbp)
jmp    1172 <SHA1_Final+0x62>
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%eax
mov    %eax,%eax
mov    %rax,-0x20(%rbp)
mov    -0x28(%rbp),%eax
mov    %rax,-0x70(%rbp)
sub    $0x3,%rax
ja     1210 <SHA1_Final+0x100>
mov    -0x70(%rbp),%rax
lea    0xe69(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
movzbl (%rax),%eax
shl    $0x18,%rax
mov    %rax,-0x20(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
movzbl (%rax),%eax
shl    $0x10,%rax
or     -0x20(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
movzbl (%rax),%eax
shl    $0x8,%rax
or     -0x20(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
movzbl (%rax),%eax
or     -0x20(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    %eax,%edx
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x24(%rbp)
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
cmpl   $0xe,-0x24(%rbp)
jle    1267 <SHA1_Final+0x157>
cmpl   $0x10,-0x24(%rbp)
jge    124e <SHA1_Final+0x13e>
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x1,%edx
call   1030 <sha1_block_host_order@plt>
movl   $0x0,-0x24(%rbp)
jmp    126c <SHA1_Final+0x15c>
cmpl   $0xe,-0x24(%rbp)
jge    1293 <SHA1_Final+0x183>
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    126c <SHA1_Final+0x15c>
mov    -0x10(%rbp),%rax
mov    0xc(%rax),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,0x38(%rax)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,0x3c(%rax)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x1,%edx
call   1030 <sha1_block_host_order@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
bswap  %eax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x8(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
bswap  %eax
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x8(%rbp)
mov    -0x44(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
bswap  %eax
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x8(%rbp)
mov    -0x4c(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x10(%rbp),%rax
mov    0x30(%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    %eax,-0x54(%rbp)
mov    -0x54(%rbp),%eax
bswap  %eax
mov    %eax,-0x54(%rbp)
mov    -0x54(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x8(%rbp)
mov    -0x54(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x10(%rbp),%rax
mov    0x38(%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    %eax,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
bswap  %eax
mov    %eax,-0x5c(%rbp)
mov    -0x5c(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x8(%rbp)
mov    -0x5c(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movl   $0x0,0x8(%rax)
mov    $0x1,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SHA1_Final>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%rbx
mov    %rdi,%r14
mov    (%rsi),%r15
mov    0x8(%rsi),%edx
mov    %edx,%eax
sar    $0x2,%eax
mov    %edx,%ecx
movslq %eax,%r8
and    $0x3,%ecx
je     1157 <SHA1_Final+0x37>
mov    (%r15,%r8,4),%esi
lea    0xeb5(%rip),%rdi
cmp    $0x3,%ecx
je     117b <SHA1_Final+0x5b>
cmp    $0x2,%ecx
je     116f <SHA1_Final+0x4f>
jmp    1163 <SHA1_Final+0x43>
mov    $0x80000000,%esi
lea    0xe9e(%rip),%rdi
movzbl (%rdi),%ecx
add    $0x1,%rdi
shl    $0x10,%ecx
or     %ecx,%esi
movzbl (%rdi),%ecx
add    $0x1,%rdi
shl    $0x8,%ecx
or     %ecx,%esi
movzbl (%rdi),%ecx
or     %esi,%ecx
mov    %ecx,(%r15,%r8,4)
cmp    $0x37,%edx
jle    11aa <SHA1_Final+0x8a>
cmp    $0x3b,%edx
ja     1196 <SHA1_Final+0x76>
movl   $0x0,0x3c(%r15)
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x1,%edx
call   1040 <sha1_block_host_order@plt>
xor    %eax,%eax
jmp    11b2 <SHA1_Final+0x92>
cmp    $0x33,%edx
jg     11ce <SHA1_Final+0xae>
add    $0x1,%eax
cltq
lea    (%r15,%rax,4),%rdi
mov    $0xd,%ecx
sub    %eax,%ecx
lea    0x4(,%rcx,4),%rdx
xor    %esi,%esi
call   1030 <memset@plt>
mov    0xc(%rbx),%eax
mov    %eax,0x38(%r15)
mov    0x10(%rbx),%eax
mov    %eax,0x3c(%r15)
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x1,%edx
call   1040 <sha1_block_host_order@plt>
mov    0x18(%rbx),%eax
bswap  %eax
mov    %eax,(%r14)
mov    0x20(%rbx),%eax
bswap  %eax
mov    %eax,0x4(%r14)
mov    0x28(%rbx),%eax
bswap  %eax
mov    %eax,0x8(%r14)
mov    0x30(%rbx),%eax
bswap  %eax
mov    %eax,0xc(%r14)
mov    0x38(%rbx),%eax
bswap  %eax
mov    %eax,0x10(%r14)
movl   $0x0,0x8(%rbx)
mov    $0x1,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.TYPE_4__ = type { i32*, i32, i32, i32, i64, i64, i64, i64, i64 }
@SHA1_Final.end = internal constant [4 x i8] c"\80\00\00\00"
define i32 @SHA1_Final(i8* %0, %struct.TYPE_4__* %1) {
%3 = alloca i8*
%4 = alloca %struct.TYPE_4__*
%5 = alloca i32*
%6 = alloca i64
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i64
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
store i8* %0, i8** %3
store %struct.TYPE_4__* %1, %struct.TYPE_4__** %4
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @SHA1_Final.end, i64 0, i64 0), i8** %9
%21 = load %struct.TYPE_4__*, %struct.TYPE_4__** %4
%22 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %21, i32 0, i32 0
%23 = load i32*, i32** %22
store i32* %23, i32** %5
%24 = load %struct.TYPE_4__*, %struct.TYPE_4__** %4
%25 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %24, i32 0, i32 1
%26 = load i32, i32* %25
%27 = ashr i32 %26, 2
store i32 %27, i32* %7
%28 = load %struct.TYPE_4__*, %struct.TYPE_4__** %4
%29 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %28, i32 0, i32 1
%30 = load i32, i32* %29
%31 = and i32 %30, 3
store i32 %31, i32* %8
%32 = load i32, i32* %8
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %35
34: ; preds = %2
br label %41
35: ; preds = %2
%36 = load i32*, i32** %5
%37 = load i32, i32* %7
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i32, i32* %36, i64 %38
%40 = load i32, i32* %39
br label %41
41: ; preds = %35, %34
%42 = phi i32 [ 0, %34 ], [ %40, %35 ]
%43 = zext i32 %42 to i64
store i64 %43, i64* %6
%44 = load i32, i32* %8
switch i32 %44, label %74 [
i32 0, label %45
i32 1, label %51
i32 2, label %59
i32 3, label %67
]
45: ; preds = %41
%46 = load i8*, i8** %9
%47 = getelementptr inbounds i8, i8* %46, i32 1
store i8* %47, i8** %9
%48 = load i8, i8* %46
%49 = zext i8 %48 to i64
%50 = shl i64 %49, 24
store i64 %50, i64* %6
br label %51
51: ; preds = %41, %45
%52 = load i8*, i8** %9
%53 = getelementptr inbounds i8, i8* %52, i32 1
store i8* %53, i8** %9
%54 = load i8, i8* %52
%55 = zext i8 %54 to i64
%56 = shl i64 %55, 16
%57 = load i64, i64* %6
%58 = or i64 %57, %56
store i64 %58, i64* %6
br label %59
59: ; preds = %41, %51
%60 = load i8*, i8** %9
%61 = getelementptr inbounds i8, i8* %60, i32 1
store i8* %61, i8** %9
%62 = load i8, i8* %60
%63 = zext i8 %62 to i64
%64 = shl i64 %63, 8
%65 = load i64, i64* %6
%66 = or i64 %65, %64
store i64 %66, i64* %6
br label %67
67: ; preds = %41, %59
%68 = load i8*, i8** %9
%69 = getelementptr inbounds i8, i8* %68, i32 1
store i8* %69, i8** %9
%70 = load i8, i8* %68
%71 = zext i8 %70 to i64
%72 = load i64, i64* %6
%73 = or i64 %72, %71
store i64 %73, i64* %6
br label %74
74: ; preds = %67, %41
%75 = load i64, i64* %6
%76 = trunc i64 %75 to i32
%77 = load i32*, i32** %5
%78 = load i32, i32* %7
%79 = add nsw i32 %78, 1
store i32 %79, i32* %7
%80 = sext i32 %78 to i64
%81 = getelementptr inbounds i32, i32* %77, i64 %80
store i32 %76, i32* %81
%82 = load i32, i32* %7
%83 = icmp sgt i32 %82, 14
br i1 %83, label %84, label %96
84: ; preds = %74
%85 = load i32, i32* %7
%86 = icmp slt i32 %85, 16
br i1 %86, label %87, label %92
87: ; preds = %84
%88 = load i32*, i32** %5
%89 = load i32, i32* %7
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i32, i32* %88, i64 %90
store i32 0, i32* %91
br label %92
92: ; preds = %87, %84
%93 = load %struct.TYPE_4__*, %struct.TYPE_4__** %4
%94 = load i32*, i32** %5
%95 = call i32 @sha1_block_host_order(%struct.TYPE_4__* %93, i32* %94, i32 1)
store i32 0, i32* %7
br label %96
96: ; preds = %92, %74
br label %97
97: ; preds = %105, %96
%98 = load i32, i32* %7
%99 = icmp slt i32 %98, 14
br i1 %99, label %100, label %108
100: ; preds = %97
%101 = load i32*, i32** %5
%102 = load i32, i32* %7
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i32, i32* %101, i64 %103
store i32 0, i32* %104
br label %105
105: ; preds = %100
%106 = load i32, i32* %7
%107 = add nsw i32 %106, 1
store i32 %107, i32* %7
br label %97
108: ; preds = %97
%109 = load %struct.TYPE_4__*, %struct.TYPE_4__** %4
%110 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %109, i32 0, i32 2
%111 = load i32, i32* %110
%112 = load i32*, i32** %5
%113 = getelementptr inbounds i32, i32* %112, i64 14
store i32 %111, i32* %113
%114 = load %struct.TYPE_4__*, %struct.TYPE_4__** %4
%115 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %114, i32 0, i32 3
%116 = load i32, i32* %115
%117 = load i32*, i32** %5
%118 = getelementptr inbounds i32, i32* %117, i64 15
store i32 %116, i32* %118
%119 = load %struct.TYPE_4__*, %struct.TYPE_4__** %4
%120 = load i32*, i32** %5
%121 = call i32 @sha1_block_host_order(%struct.TYPE_4__* %119, i32* %120, i32 1)
br label %122
122: ; preds = %108
%123 = load %struct.TYPE_4__*, %struct.TYPE_4__** %4
%124 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %123, i32 0, i32 4
%125 = load i64, i64* %124
store i64 %125, i64* %10
%126 = load i64, i64* %10
%127 = trunc i64 %126 to i32
store i32 %127, i32* %11
%128 = load i32, i32* %11
%129 = call i32 asm "bswapl $0", "=r,0,~{dirflag},~{fpsr},~{flags}"(i32 %128)
store i32 %129, i32* %11
%130 = load i32, i32* %11
%131 = load i8*, i8** %3
%132 = bitcast i8* %131 to i32*
store i32 %130, i32* %132
%133 = load i8*, i8** %3
%134 = getelementptr inbounds i8, i8* %133, i64 4
store i8* %134, i8** %3
%135 = load i32, i32* %11
store i32 %135, i32* %12
%136 = load i32, i32* %12
%137 = load %struct.TYPE_4__*, %struct.TYPE_4__** %4
%138 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %137, i32 0, i32 5
%139 = load i64, i64* %138
store i64 %139, i64* %10
%140 = load i64, i64* %10
%141 = trunc i64 %140 to i32
store i32 %141, i32* %13
%142 = load i32, i32* %13
%143 = call i32 asm "bswapl $0", "=r,0,~{dirflag},~{fpsr},~{flags}"(i32 %142)
store i32 %143, i32* %13
%144 = load i32, i32* %13
%145 = load i8*, i8** %3
%146 = bitcast i8* %145 to i32*
store i32 %144, i32* %146
%147 = load i8*, i8** %3
%148 = getelementptr inbounds i8, i8* %147, i64 4
store i8* %148, i8** %3
%149 = load i32, i32* %13
store i32 %149, i32* %14
%150 = load i32, i32* %14
%151 = load %struct.TYPE_4__*, %struct.TYPE_4__** %4
%152 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %151, i32 0, i32 6
%153 = load i64, i64* %152
store i64 %153, i64* %10
%154 = load i64, i64* %10
%155 = trunc i64 %154 to i32
store i32 %155, i32* %15
%156 = load i32, i32* %15
%157 = call i32 asm "bswapl $0", "=r,0,~{dirflag},~{fpsr},~{flags}"(i32 %156)
store i32 %157, i32* %15
%158 = load i32, i32* %15
%159 = load i8*, i8** %3
%160 = bitcast i8* %159 to i32*
store i32 %158, i32* %160
%161 = load i8*, i8** %3
%162 = getelementptr inbounds i8, i8* %161, i64 4
store i8* %162, i8** %3
%163 = load i32, i32* %15
store i32 %163, i32* %16
%164 = load i32, i32* %16
%165 = load %struct.TYPE_4__*, %struct.TYPE_4__** %4
%166 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %165, i32 0, i32 7
%167 = load i64, i64* %166
store i64 %167, i64* %10
%168 = load i64, i64* %10
%169 = trunc i64 %168 to i32
store i32 %169, i32* %17
%170 = load i32, i32* %17
%171 = call i32 asm "bswapl $0", "=r,0,~{dirflag},~{fpsr},~{flags}"(i32 %170)
store i32 %171, i32* %17
%172 = load i32, i32* %17
%173 = load i8*, i8** %3
%174 = bitcast i8* %173 to i32*
store i32 %172, i32* %174
%175 = load i8*, i8** %3
%176 = getelementptr inbounds i8, i8* %175, i64 4
store i8* %176, i8** %3
%177 = load i32, i32* %17
store i32 %177, i32* %18
%178 = load i32, i32* %18
%179 = load %struct.TYPE_4__*, %struct.TYPE_4__** %4
%180 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %179, i32 0, i32 8
%181 = load i64, i64* %180
store i64 %181, i64* %10
%182 = load i64, i64* %10
%183 = trunc i64 %182 to i32
store i32 %183, i32* %19
%184 = load i32, i32* %19
%185 = call i32 asm "bswapl $0", "=r,0,~{dirflag},~{fpsr},~{flags}"(i32 %184)
store i32 %185, i32* %19
%186 = load i32, i32* %19
%187 = load i8*, i8** %3
%188 = bitcast i8* %187 to i32*
store i32 %186, i32* %188
%189 = load i8*, i8** %3
%190 = getelementptr inbounds i8, i8* %189, i64 4
store i8* %190, i8** %3
%191 = load i32, i32* %19
store i32 %191, i32* %20
%192 = load i32, i32* %20
br label %193
193: ; preds = %122
%194 = load %struct.TYPE_4__*, %struct.TYPE_4__** %4
%195 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %194, i32 0, i32 1
store i32 0, i32* %195
ret i32 1
}

LLVM IR (-O2):
%struct.TYPE_4__ = type { i32*, i32, i32, i32, i64, i64, i64, i64, i64 }
@SHA1_Final.end = internal unnamed_addr constant [4 x i8] c"\80\00\00\00"
define i32 @SHA1_Final(i8* nocapture writeonly %0, %struct.TYPE_4__* %1) {
%3 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %1, i64 0, i32 0
%4 = load i32*, i32** %3
%5 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %1, i64 0, i32 1
%6 = load i32, i32* %5
%7 = ashr i32 %6, 2
%8 = and i32 %6, 3
%9 = icmp eq i32 %8, 0
%10 = sext i32 %7 to i64
br i1 %9, label %14, label %11
11: ; preds = %2
%12 = getelementptr inbounds i32, i32* %4, i64 %10
%13 = load i32, i32* %12
switch i32 %8, label %38 [
i32 3, label %30
i32 1, label %14
i32 2, label %22
]
14: ; preds = %2, %11
%15 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @SHA1_Final.end, i64 0, i64 0), %11 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @SHA1_Final.end, i64 0, i64 1), %2 ]
%16 = phi i32 [ %13, %11 ], [ -2147483648, %2 ]
%17 = getelementptr inbounds i8, i8* %15, i64 1
%18 = load i8, i8* %15
%19 = zext i8 %18 to i32
%20 = shl nuw nsw i32 %19, 16
%21 = or i32 %20, %16
br label %22
22: ; preds = %11, %14
%23 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @SHA1_Final.end, i64 0, i64 0), %11 ], [ %17, %14 ]
%24 = phi i32 [ %13, %11 ], [ %21, %14 ]
%25 = getelementptr inbounds i8, i8* %23, i64 1
%26 = load i8, i8* %23
%27 = zext i8 %26 to i32
%28 = shl nuw nsw i32 %27, 8
%29 = or i32 %28, %24
br label %30
30: ; preds = %11, %22
%31 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @SHA1_Final.end, i64 0, i64 0), %11 ], [ %25, %22 ]
%32 = phi i32 [ %13, %11 ], [ %29, %22 ]
%33 = load i8, i8* %31
%34 = zext i8 %33 to i32
%35 = or i32 %32, %34
%36 = getelementptr inbounds i32, i32* %4, i64 %10
store i32 %35, i32* %36
%37 = icmp sgt i32 %6, 55
br i1 %37, label %39, label %45
38: ; preds = %11
unreachable
39: ; preds = %30
%40 = icmp ult i32 %6, 60
br i1 %40, label %41, label %43
41: ; preds = %39
%42 = getelementptr inbounds i32, i32* %4, i64 15
store i32 0, i32* %42
br label %43
43: ; preds = %39, %41
%44 = tail call i32 @sha1_block_host_order(%struct.TYPE_4__* %1, i32* %4, i32 1)
br label %48
45: ; preds = %30
%46 = add nsw i32 %7, 1
%47 = icmp slt i32 %6, 52
br i1 %47, label %48, label %57
48: ; preds = %43, %45
%49 = phi i32 [ 0, %43 ], [ %46, %45 ]
%50 = sext i32 %49 to i64
%51 = getelementptr i32, i32* %4, i64 %50
%52 = bitcast i32* %51 to i8*
%53 = sub nsw i32 13, %49
%54 = zext i32 %53 to i64
%55 = shl nuw nsw i64 %54, 2
%56 = add nuw nsw i64 %55, 4
br label %57
57: ; preds = %48, %45
%58 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %1, i64 0, i32 2
%59 = load i32, i32* %58
%60 = getelementptr inbounds i32, i32* %4, i64 14
store i32 %59, i32* %60
%61 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %1, i64 0, i32 3
%62 = load i32, i32* %61
%63 = getelementptr inbounds i32, i32* %4, i64 15
store i32 %62, i32* %63
%64 = tail call i32 @sha1_block_host_order(%struct.TYPE_4__* %1, i32* %4, i32 1)
%65 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %1, i64 0, i32 4
%66 = load i64, i64* %65
%67 = trunc i64 %66 to i32
%68 = tail call i32 asm "bswapl $0", "=r,0,~{dirflag},~{fpsr},~{flags}"(i32 %67)
%69 = bitcast i8* %0 to i32*
store i32 %68, i32* %69
%70 = getelementptr inbounds i8, i8* %0, i64 4
%71 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %1, i64 0, i32 5
%72 = load i64, i64* %71
%73 = trunc i64 %72 to i32
%74 = tail call i32 asm "bswapl $0", "=r,0,~{dirflag},~{fpsr},~{flags}"(i32 %73)
%75 = bitcast i8* %70 to i32*
store i32 %74, i32* %75
%76 = getelementptr inbounds i8, i8* %0, i64 8
%77 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %1, i64 0, i32 6
%78 = load i64, i64* %77
%79 = trunc i64 %78 to i32
%80 = tail call i32 asm "bswapl $0", "=r,0,~{dirflag},~{fpsr},~{flags}"(i32 %79)
%81 = bitcast i8* %76 to i32*
store i32 %80, i32* %81
%82 = getelementptr inbounds i8, i8* %0, i64 12
%83 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %1, i64 0, i32 7
%84 = load i64, i64* %83
%85 = trunc i64 %84 to i32
%86 = tail call i32 asm "bswapl $0", "=r,0,~{dirflag},~{fpsr},~{flags}"(i32 %85)
%87 = bitcast i8* %82 to i32*
store i32 %86, i32* %87
%88 = getelementptr inbounds i8, i8* %0, i64 16
%89 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %1, i64 0, i32 8
%90 = load i64, i64* %89
%91 = trunc i64 %90 to i32
%92 = tail call i32 asm "bswapl $0", "=r,0,~{dirflag},~{fpsr},~{flags}"(i32 %91)
%93 = bitcast i8* %88 to i32*
store i32 %92, i32* %93
store i32 0, i32* %5
ret i32 1
}