#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*/ iptables_cmd(int, char *);
void fw_reset(void) {
  iptables_cmd(1, "-t filter -F MIA");
  iptables_cmd(1, "-t filter -D FORWARD -j MIA");
  iptables_cmd(1, "-t filter -X MIA");
  iptables_cmd(1, "-t filter -F MIA_Inbound");
  iptables_cmd(1, "-t filter -D MIA -j MIA_Inbound");
  iptables_cmd(1, "-t filter -X MIA_Inbound");
  iptables_cmd(1, "-t nat -F MIA_Inspect");
  iptables_cmd(1, "-t nat -D PREROUTING -j MIA_Inspect");
  iptables_cmd(1, "-t nat -X MIA_Inspect");
  iptables_cmd(1, "-t nat -F MIA_NAT");
  iptables_cmd(1, "-t nat -D POSTROUTING -j MIA_NAT");
  iptables_cmd(1, "-t nat -X MIA_NAT");
  iptables_cmd(1, "-t mangle -F MIA");
  iptables_cmd(1, "-t mangle -D PREROUTING -j MIA");
  iptables_cmd(1, "-t mangle -X MIA");
}


x86 assembly (clang, -O0):
<fw_reset>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
lea    0xee0(%rip),%rsi
call   1030 <iptables_cmd@plt>
mov    $0x1,%edi
lea    0xee0(%rip),%rsi
call   1030 <iptables_cmd@plt>
mov    $0x1,%edi
lea    0xeeb(%rip),%rsi
call   1030 <iptables_cmd@plt>
mov    $0x1,%edi
lea    0xeeb(%rip),%rsi
call   1030 <iptables_cmd@plt>
mov    $0x1,%edi
lea    0xef3(%rip),%rsi
call   1030 <iptables_cmd@plt>
mov    $0x1,%edi
lea    0xf02(%rip),%rsi
call   1030 <iptables_cmd@plt>
mov    $0x1,%edi
lea    0xf0a(%rip),%rsi
call   1030 <iptables_cmd@plt>
mov    $0x1,%edi
lea    0xf0f(%rip),%rsi
call   1030 <iptables_cmd@plt>
mov    $0x1,%edi
lea    0xf22(%rip),%rsi
call   1030 <iptables_cmd@plt>
mov    $0x1,%edi
lea    0xf27(%rip),%rsi
call   1030 <iptables_cmd@plt>
mov    $0x1,%edi
lea    0xf28(%rip),%rsi
call   1030 <iptables_cmd@plt>
mov    $0x1,%edi
lea    0xf38(%rip),%rsi
call   1030 <iptables_cmd@plt>
mov    $0x1,%edi
lea    0xf39(%rip),%rsi
call   1030 <iptables_cmd@plt>
mov    $0x1,%edi
lea    0xf39(%rip),%rsi
call   1030 <iptables_cmd@plt>
mov    $0x1,%edi
lea    0xf47(%rip),%rsi
call   1030 <iptables_cmd@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<fw_reset>:
push   %rax
lea    0xee8(%rip),%rsi
mov    $0x1,%edi
call   1030 <iptables_cmd@plt>
lea    0xee8(%rip),%rsi
mov    $0x1,%edi
call   1030 <iptables_cmd@plt>
lea    0xef3(%rip),%rsi
mov    $0x1,%edi
call   1030 <iptables_cmd@plt>
lea    0xef3(%rip),%rsi
mov    $0x1,%edi
call   1030 <iptables_cmd@plt>
lea    0xefb(%rip),%rsi
mov    $0x1,%edi
call   1030 <iptables_cmd@plt>
lea    0xf0a(%rip),%rsi
mov    $0x1,%edi
call   1030 <iptables_cmd@plt>
lea    0xf12(%rip),%rsi
mov    $0x1,%edi
call   1030 <iptables_cmd@plt>
lea    0xf17(%rip),%rsi
mov    $0x1,%edi
call   1030 <iptables_cmd@plt>
lea    0xf2a(%rip),%rsi
mov    $0x1,%edi
call   1030 <iptables_cmd@plt>
lea    0xf2f(%rip),%rsi
mov    $0x1,%edi
call   1030 <iptables_cmd@plt>
lea    0xf30(%rip),%rsi
mov    $0x1,%edi
call   1030 <iptables_cmd@plt>
lea    0xf40(%rip),%rsi
mov    $0x1,%edi
call   1030 <iptables_cmd@plt>
lea    0xf41(%rip),%rsi
mov    $0x1,%edi
call   1030 <iptables_cmd@plt>
lea    0xf41(%rip),%rsi
mov    $0x1,%edi
call   1030 <iptables_cmd@plt>
lea    0xf4f(%rip),%rsi
mov    $0x1,%edi
pop    %rax
jmp    1030 <iptables_cmd@plt>

LLVM IR (-O0):
@.str = [17 x i8] c"-t filter -F MIA\00"
@.str.1 = [28 x i8] c"-t filter -D FORWARD -j MIA\00"
@.str.2 = [17 x i8] c"-t filter -X MIA\00"
@.str.3 = [25 x i8] c"-t filter -F MIA_Inbound\00"
@.str.4 = [32 x i8] c"-t filter -D MIA -j MIA_Inbound\00"
@.str.5 = [25 x i8] c"-t filter -X MIA_Inbound\00"
@.str.6 = [22 x i8] c"-t nat -F MIA_Inspect\00"
@.str.7 = [36 x i8] c"-t nat -D PREROUTING -j MIA_Inspect\00"
@.str.8 = [22 x i8] c"-t nat -X MIA_Inspect\00"
@.str.9 = [18 x i8] c"-t nat -F MIA_NAT\00"
@.str.10 = [33 x i8] c"-t nat -D POSTROUTING -j MIA_NAT\00"
@.str.11 = [18 x i8] c"-t nat -X MIA_NAT\00"
@.str.12 = [17 x i8] c"-t mangle -F MIA\00"
@.str.13 = [31 x i8] c"-t mangle -D PREROUTING -j MIA\00"
@.str.14 = [17 x i8] c"-t mangle -X MIA\00"
define void @fw_reset() {
%1 = call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.14, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [17 x i8] c"-t filter -F MIA\00"
@.str.1 = [28 x i8] c"-t filter -D FORWARD -j MIA\00"
@.str.2 = [17 x i8] c"-t filter -X MIA\00"
@.str.3 = [25 x i8] c"-t filter -F MIA_Inbound\00"
@.str.4 = [32 x i8] c"-t filter -D MIA -j MIA_Inbound\00"
@.str.5 = [25 x i8] c"-t filter -X MIA_Inbound\00"
@.str.6 = [22 x i8] c"-t nat -F MIA_Inspect\00"
@.str.7 = [36 x i8] c"-t nat -D PREROUTING -j MIA_Inspect\00"
@.str.8 = [22 x i8] c"-t nat -X MIA_Inspect\00"
@.str.9 = [18 x i8] c"-t nat -F MIA_NAT\00"
@.str.10 = [33 x i8] c"-t nat -D POSTROUTING -j MIA_NAT\00"
@.str.11 = [18 x i8] c"-t nat -X MIA_NAT\00"
@.str.12 = [17 x i8] c"-t mangle -F MIA\00"
@.str.13 = [31 x i8] c"-t mangle -D PREROUTING -j MIA\00"
@.str.14 = [17 x i8] c"-t mangle -X MIA\00"
define void @fw_reset() {
%1 = tail call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.10, i64 0, i64 0))
%12 = tail call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.11, i64 0, i64 0))
%13 = tail call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0))
%14 = tail call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.13, i64 0, i64 0))
%15 = tail call i32 @iptables_cmd(i32 1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.14, i64 0, i64 0))
ret void
}