#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;

/* Variables and functions */
void configureMultiProtocolRtlsPatch(void) {
  uint8_t *pPatchTab = (uint8_t *)(0x21000000 + 0x03D4);
  pPatchTab[1] = 0;
  pPatchTab[18] = 1;
  pPatchTab[81] = 2;
  pPatchTab[26] = 3;
  pPatchTab[76] = 4;
  pPatchTab[62] = 5;
  pPatchTab[64] = 6;
  pPatchTab[91] = 7;
  pPatchTab[79] = 8;
  pPatchTab[168] = 9;
}


x86 assembly (clang, -O0):
<configureMultiProtocolRtlsPatch>:
push   %rbp
mov    %rsp,%rbp
mov    $0x210003d4,%eax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movl   $0x0,0x4(%rax)
mov    -0x8(%rbp),%rax
movl   $0x1,0x48(%rax)
mov    -0x8(%rbp),%rax
movl   $0x2,0x144(%rax)
mov    -0x8(%rbp),%rax
movl   $0x3,0x68(%rax)
mov    -0x8(%rbp),%rax
movl   $0x4,0x130(%rax)
mov    -0x8(%rbp),%rax
movl   $0x5,0xf8(%rax)
mov    -0x8(%rbp),%rax
movl   $0x6,0x100(%rax)
mov    -0x8(%rbp),%rax
movl   $0x7,0x16c(%rax)
mov    -0x8(%rbp),%rax
movl   $0x8,0x13c(%rax)
mov    -0x8(%rbp),%rax
movl   $0x9,0x2a0(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<configureMultiProtocolRtlsPatch>:
movl   $0x0,0x210003d8
movl   $0x1,0x2100041c
movl   $0x2,0x21000518
movl   $0x3,0x2100043c
movl   $0x4,0x21000504
movl   $0x5,0x210004cc
movl   $0x6,0x210004d4
movl   $0x7,0x21000540
movl   $0x8,0x21000510
movl   $0x9,0x21000674
ret

LLVM IR (-O0):
define void @configureMultiProtocolRtlsPatch() {
%1 = alloca i32*
store i32* inttoptr (i64 553649108 to i32*), i32** %1
%2 = load i32*, i32** %1
%3 = getelementptr inbounds i32, i32* %2, i64 1
store i32 0, i32* %3
%4 = load i32*, i32** %1
%5 = getelementptr inbounds i32, i32* %4, i64 18
store i32 1, i32* %5
%6 = load i32*, i32** %1
%7 = getelementptr inbounds i32, i32* %6, i64 81
store i32 2, i32* %7
%8 = load i32*, i32** %1
%9 = getelementptr inbounds i32, i32* %8, i64 26
store i32 3, i32* %9
%10 = load i32*, i32** %1
%11 = getelementptr inbounds i32, i32* %10, i64 76
store i32 4, i32* %11
%12 = load i32*, i32** %1
%13 = getelementptr inbounds i32, i32* %12, i64 62
store i32 5, i32* %13
%14 = load i32*, i32** %1
%15 = getelementptr inbounds i32, i32* %14, i64 64
store i32 6, i32* %15
%16 = load i32*, i32** %1
%17 = getelementptr inbounds i32, i32* %16, i64 91
store i32 7, i32* %17
%18 = load i32*, i32** %1
%19 = getelementptr inbounds i32, i32* %18, i64 79
store i32 8, i32* %19
%20 = load i32*, i32** %1
%21 = getelementptr inbounds i32, i32* %20, i64 168
store i32 9, i32* %21
ret void
}

LLVM IR (-O2):
define void @configureMultiProtocolRtlsPatch() {
store i32 0, i32* inttoptr (i64 553649112 to i32*)
store i32 1, i32* inttoptr (i64 553649180 to i32*)
store i32 2, i32* inttoptr (i64 553649432 to i32*)
store i32 3, i32* inttoptr (i64 553649212 to i32*)
store i32 4, i32* inttoptr (i64 553649412 to i32*)
store i32 5, i32* inttoptr (i64 553649356 to i32*)
store i32 6, i32* inttoptr (i64 553649364 to i32*)
store i32 7, i32* inttoptr (i64 553649472 to i32*)
store i32 8, i32* inttoptr (i64 553649424 to i32*)
store i32 9, i32* inttoptr (i64 553649780 to i32*)
ret void
}