#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 */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ _readsw(void const *, void *, int);
void readsw(const void *a, void *b, int c) {
  do {
    if (0)
      (*((((52) & 0x7f) < 96)
             ? &(*(volatile unsigned long
                       *)((unsigned long)&(
                              *((volatile unsigned long *)0x40E00018)) +
                          (((52) & 0x60) >> 3)))
             : &(*((volatile unsigned long *)0x40E00118)))) =
          (1 << ((52) & 0x1f));
    else
      (*((((52) & 0x7f) < 96)
             ? &(*(volatile unsigned long
                       *)((unsigned long)&(
                              *((volatile unsigned long *)0x40E00024)) +
                          (((52) & 0x60) >> 3)))
             : &(*((volatile unsigned long *)0x40E00124)))) =
          (1 << ((52) & 0x1f));
  } while (0);
  do {
    if (1)
      (*((((94) & 0x7f) < 96)
             ? &(*(volatile unsigned long
                       *)((unsigned long)&(
                              *((volatile unsigned long *)0x40E00018)) +
                          (((94) & 0x60) >> 3)))
             : &(*((volatile unsigned long *)0x40E00118)))) =
          (1 << ((94) & 0x1f));
    else
      (*((((94) & 0x7f) < 96)
             ? &(*(volatile unsigned long
                       *)((unsigned long)&(
                              *((volatile unsigned long *)0x40E00024)) +
                          (((94) & 0x60) >> 3)))
             : &(*((volatile unsigned long *)0x40E00124)))) =
          (1 << ((94) & 0x1f));
  } while (0);
  _readsw(a, b, c);
  do {
    if (0)
      (*((((94) & 0x7f) < 96)
             ? &(*(volatile unsigned long
                       *)((unsigned long)&(
                              *((volatile unsigned long *)0x40E00018)) +
                          (((94) & 0x60) >> 3)))
             : &(*((volatile unsigned long *)0x40E00118)))) =
          (1 << ((94) & 0x1f));
    else
      (*((((94) & 0x7f) < 96)
             ? &(*(volatile unsigned long
                       *)((unsigned long)&(
                              *((volatile unsigned long *)0x40E00024)) +
                          (((94) & 0x60) >> 3)))
             : &(*((volatile unsigned long *)0x40E00124)))) =
          (1 << ((94) & 0x1f));
  } while (0);
}


x86 assembly (clang, -O0):
<readsw>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    $0x40e00028,%eax
movq   $0x100000,(%rax)
jmp    1134 <readsw+0x24>
mov    $0x40e00020,%eax
movq   $0x40000000,(%rax)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <_readsw@plt>
mov    $0x40e0002c,%eax
movq   $0x40000000,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<readsw>:
push   %rax
movq   $0x100000,0x40e00028
movq   $0x40000000,0x40e00020
call   1030 <_readsw@plt>
movq   $0x40000000,0x40e0002c
pop    %rax
ret

LLVM IR (-O0):
define void @readsw(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
br label %7
7: ; preds = %3
store volatile i64 1048576, i64* inttoptr (i64 1088421928 to i64*)
br label %8
8: ; preds = %7
br label %9
9: ; preds = %8
store volatile i64 1073741824, i64* inttoptr (i64 1088421920 to i64*)
br label %10
10: ; preds = %9
%11 = load i8*, i8** %4
%12 = load i8*, i8** %5
%13 = load i32, i32* %6
%14 = call i32 @_readsw(i8* %11, i8* %12, i32 %13)
br label %15
15: ; preds = %10
store volatile i64 1073741824, i64* inttoptr (i64 1088421932 to i64*)
br label %16
16: ; preds = %15
ret void
}

LLVM IR (-O2):
define void @readsw(i8* %0, i8* %1, i32 %2) {
store volatile i64 1048576, i64* inttoptr (i64 1088421928 to i64*)
store volatile i64 1073741824, i64* inttoptr (i64 1088421920 to i64*)
%4 = tail call i32 @_readsw(i8* %0, i8* %1, i32 %2)
store volatile i64 1073741824, i64* inttoptr (i64 1088421932 to i64*)
ret void
}