#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_do_command(char *);
int /*<<< orphan*/ iptables_fw_destroy_mention(char *, char *, char *);
void fw_destroy() {
  iptables_fw_destroy_mention("nat", "PREROUTING", "FUHAI_DNATPMP");
  iptables_do_command("-t nat -F "
                      "FUHAI_DNATPMP");
  iptables_do_command("-t nat -X "
                      "FUHAI_DNATPMP");
  iptables_do_command("-t nat -F "
                      "WIFI2Router");
  iptables_do_command("-t nat -X "
                      "WIFI2Router");
}


x86 assembly (clang, -O0):
<fw_destroy>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
lea    0xed2(%rip),%rsi
lea    0xee0(%rip),%rdx
call   1030 <iptables_fw_destroy_mention@plt>
lea    0xeca(%rip),%rdi
call   1040 <iptables_do_command@plt>
lea    0xed6(%rip),%rdi
call   1040 <iptables_do_command@plt>
lea    0xee2(%rip),%rdi
call   1040 <iptables_do_command@plt>
lea    0xeec(%rip),%rdi
call   1040 <iptables_do_command@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<fw_destroy>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0xed5(%rip),%rsi
lea    0xee3(%rip),%rdx
call   1030 <iptables_fw_destroy_mention@plt>
lea    0xecd(%rip),%rdi
call   1040 <iptables_do_command@plt>
lea    0xed9(%rip),%rdi
call   1040 <iptables_do_command@plt>
lea    0xee5(%rip),%rdi
call   1040 <iptables_do_command@plt>
lea    0xeef(%rip),%rdi
pop    %rax
jmp    1040 <iptables_do_command@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"nat\00"
@.str.1 = [11 x i8] c"PREROUTING\00"
@.str.2 = [14 x i8] c"FUHAI_DNATPMP\00"
@.str.3 = [24 x i8] c"-t nat -F FUHAI_DNATPMP\00"
@.str.4 = [24 x i8] c"-t nat -X FUHAI_DNATPMP\00"
@.str.5 = [22 x i8] c"-t nat -F WIFI2Router\00"
@.str.6 = [22 x i8] c"-t nat -X WIFI2Router\00"
define void @fw_destroy() {
%1 = call i32 @iptables_fw_destroy_mention(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%2 = call i32 @iptables_do_command(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%3 = call i32 @iptables_do_command(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%4 = call i32 @iptables_do_command(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0))
%5 = call i32 @iptables_do_command(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"nat\00"
@.str.1 = [11 x i8] c"PREROUTING\00"
@.str.2 = [14 x i8] c"FUHAI_DNATPMP\00"
@.str.3 = [24 x i8] c"-t nat -F FUHAI_DNATPMP\00"
@.str.4 = [24 x i8] c"-t nat -X FUHAI_DNATPMP\00"
@.str.5 = [22 x i8] c"-t nat -F WIFI2Router\00"
@.str.6 = [22 x i8] c"-t nat -X WIFI2Router\00"
define void @fw_destroy() {
%1 = tail call i32 @iptables_fw_destroy_mention(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%2 = tail call i32 @iptables_do_command(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%3 = tail call i32 @iptables_do_command(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%4 = tail call i32 @iptables_do_command(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0))
%5 = tail call i32 @iptables_do_command(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
ret void
}