#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 */
typedef int uint8_t;
typedef int uint32_t;

/* Variables and functions */
void configurePropPatch(void) {
  uint8_t *pParserPatchTab = (uint8_t *)(0x21000000 + 0x0390);
  uint8_t *pPatchTab = (uint8_t *)(0x21000000 + 0x0398);
  uint32_t *pIrqPatch = (uint32_t *)(0x21000000 + 0x0434);
  pPatchTab[84] = 0;
  pPatchTab[142] = 1;
  pPatchTab[66] = 2;
  pPatchTab[102] = 3;
  pPatchTab[28] = 4;
  pPatchTab[104] = 5;
  pPatchTab[75] = 6;
  pPatchTab[73] = 7;
  pPatchTab[117] = 8;
  pPatchTab[105] = 9;
  pPatchTab[106] = 10;
  pPatchTab[70] = 11;
  pPatchTab[71] = 12;
  pPatchTab[69] = 13;
  pParserPatchTab[0] = 14;
  pPatchTab[60] = 15;
  pIrqPatch[21] = 0x21004381;
}


x86 assembly (clang, -O0):
<configurePropPatch>:
push   %rbp
mov    %rsp,%rbp
mov    $0x21000390,%eax
mov    %rax,-0x8(%rbp)
mov    $0x21000398,%eax
mov    %rax,-0x10(%rbp)
mov    $0x21000434,%eax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movl   $0x0,0x150(%rax)
mov    -0x10(%rbp),%rax
movl   $0x1,0x238(%rax)
mov    -0x10(%rbp),%rax
movl   $0x2,0x108(%rax)
mov    -0x10(%rbp),%rax
movl   $0x3,0x198(%rax)
mov    -0x10(%rbp),%rax
movl   $0x4,0x70(%rax)
mov    -0x10(%rbp),%rax
movl   $0x5,0x1a0(%rax)
mov    -0x10(%rbp),%rax
movl   $0x6,0x12c(%rax)
mov    -0x10(%rbp),%rax
movl   $0x7,0x124(%rax)
mov    -0x10(%rbp),%rax
movl   $0x8,0x1d4(%rax)
mov    -0x10(%rbp),%rax
movl   $0x9,0x1a4(%rax)
mov    -0x10(%rbp),%rax
movl   $0xa,0x1a8(%rax)
mov    -0x10(%rbp),%rax
movl   $0xb,0x118(%rax)
mov    -0x10(%rbp),%rax
movl   $0xc,0x11c(%rax)
mov    -0x10(%rbp),%rax
movl   $0xd,0x114(%rax)
mov    -0x8(%rbp),%rax
movl   $0xe,(%rax)
mov    -0x10(%rbp),%rax
movl   $0xf,0xf0(%rax)
mov    -0x18(%rbp),%rax
movl   $0x21004381,0x54(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<configurePropPatch>:
movl   $0x0,0x210004e8
movl   $0x1,0x210005d0
movl   $0x2,0x210004a0
movl   $0x3,0x21000530
movl   $0x4,0x21000408
movl   $0x5,0x21000538
movl   $0x6,0x210004c4
movl   $0x7,0x210004bc
movl   $0x8,0x2100056c
movl   $0x9,0x2100053c
movl   $0xa,0x21000540
movl   $0xb,0x210004b0
movl   $0xc,0x210004b4
movl   $0xd,0x210004ac
movl   $0xe,0x21000390
movl   $0x21004381,0x21000488
ret

LLVM IR (-O0):
define void @configurePropPatch() {
%1 = alloca i32*
%2 = alloca i32*
%3 = alloca i32*
store i32* inttoptr (i64 553649040 to i32*), i32** %1
store i32* inttoptr (i64 553649048 to i32*), i32** %2
store i32* inttoptr (i64 553649204 to i32*), i32** %3
%4 = load i32*, i32** %2
%5 = getelementptr inbounds i32, i32* %4, i64 84
store i32 0, i32* %5
%6 = load i32*, i32** %2
%7 = getelementptr inbounds i32, i32* %6, i64 142
store i32 1, i32* %7
%8 = load i32*, i32** %2
%9 = getelementptr inbounds i32, i32* %8, i64 66
store i32 2, i32* %9
%10 = load i32*, i32** %2
%11 = getelementptr inbounds i32, i32* %10, i64 102
store i32 3, i32* %11
%12 = load i32*, i32** %2
%13 = getelementptr inbounds i32, i32* %12, i64 28
store i32 4, i32* %13
%14 = load i32*, i32** %2
%15 = getelementptr inbounds i32, i32* %14, i64 104
store i32 5, i32* %15
%16 = load i32*, i32** %2
%17 = getelementptr inbounds i32, i32* %16, i64 75
store i32 6, i32* %17
%18 = load i32*, i32** %2
%19 = getelementptr inbounds i32, i32* %18, i64 73
store i32 7, i32* %19
%20 = load i32*, i32** %2
%21 = getelementptr inbounds i32, i32* %20, i64 117
store i32 8, i32* %21
%22 = load i32*, i32** %2
%23 = getelementptr inbounds i32, i32* %22, i64 105
store i32 9, i32* %23
%24 = load i32*, i32** %2
%25 = getelementptr inbounds i32, i32* %24, i64 106
store i32 10, i32* %25
%26 = load i32*, i32** %2
%27 = getelementptr inbounds i32, i32* %26, i64 70
store i32 11, i32* %27
%28 = load i32*, i32** %2
%29 = getelementptr inbounds i32, i32* %28, i64 71
store i32 12, i32* %29
%30 = load i32*, i32** %2
%31 = getelementptr inbounds i32, i32* %30, i64 69
store i32 13, i32* %31
%32 = load i32*, i32** %1
%33 = getelementptr inbounds i32, i32* %32, i64 0
store i32 14, i32* %33
%34 = load i32*, i32** %2
%35 = getelementptr inbounds i32, i32* %34, i64 60
store i32 15, i32* %35
%36 = load i32*, i32** %3
%37 = getelementptr inbounds i32, i32* %36, i64 21
store i32 553665409, i32* %37
ret void
}

LLVM IR (-O2):
define void @configurePropPatch() {
store i32 0, i32* inttoptr (i64 553649384 to i32*)
store i32 1, i32* inttoptr (i64 553649616 to i32*)
store i32 2, i32* inttoptr (i64 553649312 to i32*)
store i32 3, i32* inttoptr (i64 553649456 to i32*)
store i32 4, i32* inttoptr (i64 553649160 to i32*)
store i32 5, i32* inttoptr (i64 553649464 to i32*)
store i32 6, i32* inttoptr (i64 553649348 to i32*)
store i32 7, i32* inttoptr (i64 553649340 to i32*)
store i32 8, i32* inttoptr (i64 553649516 to i32*)
store i32 9, i32* inttoptr (i64 553649468 to i32*)
store i32 10, i32* inttoptr (i64 553649472 to i32*)
store i32 11, i32* inttoptr (i64 553649328 to i32*)
store i32 12, i32* inttoptr (i64 553649332 to i32*)
store i32 13, i32* inttoptr (i64 553649324 to i32*)
store i32 14, i32* inttoptr (i64 553649040 to i32*)
store i32 553665409, i32* inttoptr (i64 553649288 to i32*)
ret void
}