#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*/ change_gpio_function(int *, int, int);
void enable_jtag(void) {
  change_gpio_function((int *)0x20200000, 0b010, 12);
  change_gpio_function((int *)0x20200008, 0b011, 6);
  change_gpio_function((int *)0x20200008, 0b011, 9);
  change_gpio_function((int *)0x20200008, 0b011, 12);
  change_gpio_function((int *)0x20200008, 0b011, 15);
  change_gpio_function((int *)0x20200008, 0b011, 21);
}


x86 assembly (clang, -O0):
<enable_jtag>:
push   %rbp
mov    %rsp,%rbp
mov    $0x20200000,%edi
mov    $0x2,%esi
mov    $0xc,%edx
call   1030 <change_gpio_function@plt>
mov    $0x20200008,%edi
mov    $0x3,%esi
mov    $0x6,%edx
call   1030 <change_gpio_function@plt>
mov    $0x20200008,%edi
mov    $0x3,%esi
mov    $0x9,%edx
call   1030 <change_gpio_function@plt>
mov    $0x20200008,%edi
mov    $0x3,%esi
mov    $0xc,%edx
call   1030 <change_gpio_function@plt>
mov    $0x20200008,%edi
mov    $0x3,%esi
mov    $0xf,%edx
call   1030 <change_gpio_function@plt>
mov    $0x20200008,%edi
mov    $0x3,%esi
mov    $0x15,%edx
call   1030 <change_gpio_function@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<enable_jtag>:
push   %rax
mov    $0x20200000,%edi
mov    $0x2,%esi
mov    $0xc,%edx
call   1030 <change_gpio_function@plt>
mov    $0x20200008,%edi
mov    $0x3,%esi
mov    $0x6,%edx
call   1030 <change_gpio_function@plt>
mov    $0x20200008,%edi
mov    $0x3,%esi
mov    $0x9,%edx
call   1030 <change_gpio_function@plt>
mov    $0x20200008,%edi
mov    $0x3,%esi
mov    $0xc,%edx
call   1030 <change_gpio_function@plt>
mov    $0x20200008,%edi
mov    $0x3,%esi
mov    $0xf,%edx
call   1030 <change_gpio_function@plt>
mov    $0x20200008,%edi
mov    $0x3,%esi
mov    $0x15,%edx
pop    %rax
jmp    1030 <change_gpio_function@plt>

LLVM IR (-O0):
define void @enable_jtag() {
%1 = call i32 @change_gpio_function(i32* inttoptr (i64 538968064 to i32*), i32 2, i32 12)
%2 = call i32 @change_gpio_function(i32* inttoptr (i64 538968072 to i32*), i32 3, i32 6)
%3 = call i32 @change_gpio_function(i32* inttoptr (i64 538968072 to i32*), i32 3, i32 9)
%4 = call i32 @change_gpio_function(i32* inttoptr (i64 538968072 to i32*), i32 3, i32 12)
%5 = call i32 @change_gpio_function(i32* inttoptr (i64 538968072 to i32*), i32 3, i32 15)
%6 = call i32 @change_gpio_function(i32* inttoptr (i64 538968072 to i32*), i32 3, i32 21)
ret void
}

LLVM IR (-O2):
define void @enable_jtag() {
%1 = tail call i32 @change_gpio_function(i32* inttoptr (i64 538968064 to i32*), i32 2, i32 12)
%2 = tail call i32 @change_gpio_function(i32* inttoptr (i64 538968072 to i32*), i32 3, i32 6)
%3 = tail call i32 @change_gpio_function(i32* inttoptr (i64 538968072 to i32*), i32 3, i32 9)
%4 = tail call i32 @change_gpio_function(i32* inttoptr (i64 538968072 to i32*), i32 3, i32 12)
%5 = tail call i32 @change_gpio_function(i32* inttoptr (i64 538968072 to i32*), i32 3, i32 15)
%6 = tail call i32 @change_gpio_function(i32* inttoptr (i64 538968072 to i32*), i32 3, i32 21)
ret void
}