	.file	"128138.c"
	.intel_syntax noprefix
	.text
	.local	verbose
	.comm	verbose,4,4
	.globl	die
	.type	die, @function
die:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	die, .-die
	.section	.rodata
.LC0:
	.string	"%d.%d.%d.%d"
	.text
	.globl	ipaddr
	.type	ipaddr, @function
ipaddr:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	shr	eax, 24
	mov	esi, eax
	mov	eax, DWORD PTR -4[rbp]
	shr	eax, 16
	movzx	ecx, al
	mov	eax, DWORD PTR -4[rbp]
	shr	eax, 8
	movzx	edx, al
	mov	eax, DWORD PTR -4[rbp]
	movzx	eax, al
	mov	r9d, esi
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, .LC0[rip]
	lea	rdi, buf.0[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, buf.0[rip]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	ipaddr, .-ipaddr
	.section	.rodata
	.align 8
.LC1:
	.string	"usage: netcfg [<interface> {dhcp|up|down}]\n"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	usage, .-usage
	.section	.rodata
.LC2:
	.string	"UP  "
.LC3:
	.string	"DOWN"
.LC4:
	.string	"%-8s %s  "
.LC5:
	.string	"%-16s"
.LC6:
	.string	"0x%08x\n"
	.text
	.globl	dump_interface
	.type	dump_interface, @function
dump_interface:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rcx, -12[rbp]
	lea	rdx, -16[rbp]
	lea	rsi, -20[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	ifc_get_info@PLT
	test	eax, eax
	je	.L6
	mov	eax, 0
	jmp	.L10
.L6:
	mov	eax, DWORD PTR -12[rbp]
	and	eax, 1
	test	eax, eax
	je	.L8
	lea	rax, .LC2[rip]
	jmp	.L9
.L8:
	lea	rax, .LC3[rip]
.L9:
	mov	rcx, QWORD PTR -40[rbp]
	mov	rdx, rax
	mov	rsi, rcx
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	ipaddr
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	ipaddr
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L10:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	dump_interface, .-dump_interface
	.section	.rodata
.LC7:
	.string	"/sys/class/net"
	.text
	.globl	dump_interfaces
	.type	dump_interfaces, @function
dump_interfaces:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	lea	rdi, .LC7[rip]
	call	opendir@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L15
	mov	eax, -1
	jmp	.L14
.L17:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 19[rax]
	cmp	al, 46
	jne	.L16
	jmp	.L15
.L16:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 19
	mov	rdi, rax
	call	dump_interface
.L15:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L17
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	closedir@PLT
	mov	eax, 0
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	dump_interfaces, .-dump_interfaces
	.globl	CMDS
	.section	.rodata
.LC8:
	.string	"dhcp"
.LC9:
	.string	"up"
.LC10:
	.string	"down"
.LC11:
	.string	"flhosts"
.LC12:
	.string	"deldefault"
	.section	.data.rel,"aw"
	.align 32
	.type	CMDS, @object
	.size	CMDS, 144
CMDS:
	.quad	.LC8
	.long	1
	.zero	4
	.quad	do_dhcp
	.quad	.LC9
	.long	1
	.zero	4
	.quad	ifc_up
	.quad	.LC10
	.long	1
	.zero	4
	.quad	ifc_down
	.quad	.LC11
	.long	1
	.zero	4
	.quad	ifc_remove_host_routes
	.quad	.LC12
	.long	1
	.zero	4
	.quad	ifc_remove_default_route
	.quad	0
	.long	0
	.zero	4
	.quad	0
	.text
	.type	call_func, @function
call_func:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	QWORD PTR -56[rbp], rdx
	cmp	DWORD PTR -44[rbp], 3
	je	.L19
	cmp	DWORD PTR -44[rbp], 3
	ja	.L20
	cmp	DWORD PTR -44[rbp], 1
	je	.L21
	cmp	DWORD PTR -44[rbp], 2
	je	.L22
	jmp	.L20
.L21:
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	rdx
	jmp	.L23
.L22:
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rcx
	jmp	.L23
.L19:
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 8
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	r8, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	r8
	jmp	.L23
.L20:
	mov	eax, -1
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	call_func, .-call_func
	.section	.rodata
	.align 8
.LC13:
	.string	"Cannot perform requested operation"
	.align 8
.LC14:
	.string	"not enough arguments for '%s'\n"
.LC15:
	.string	"action '%s' failed (%s)\n"
.LC16:
	.string	"no such action '%s'\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	eax, 0
	call	ifc_init@PLT
	test	eax, eax
	je	.L25
	lea	rdi, .LC13[rip]
	call	die
.L25:
	cmp	DWORD PTR -36[rbp], 1
	jne	.L26
	call	dump_interfaces
	mov	DWORD PTR -20[rbp], eax
	mov	eax, 0
	call	ifc_close@PLT
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L27
.L26:
	cmp	DWORD PTR -36[rbp], 2
	jg	.L28
	call	usage
.L28:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 16
	jbe	.L29
	call	usage
.L29:
	sub	DWORD PTR -36[rbp], 2
	add	QWORD PTR -48[rbp], 16
	jmp	.L30
.L37:
	mov	DWORD PTR -28[rbp], 0
	jmp	.L31
.L36:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, CMDS[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L32
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, CMDS[rip+8]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jge	.L33
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	call	ifc_close@PLT
	mov	edi, 1
	call	exit@PLT
.L33:
	mov	ecx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, CMDS[rip+16]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdx, QWORD PTR -48[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	call_func
	test	eax, eax
	je	.L34
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	mov	eax, 0
	call	strerror@PLT
	mov	ecx, eax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	call	ifc_close@PLT
	mov	edi, 1
	call	exit@PLT
.L34:
	mov	eax, DWORD PTR -24[rbp]
	sub	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 3
	add	QWORD PTR -48[rbp], rax
	jmp	.L30
.L32:
	add	DWORD PTR -28[rbp], 1
.L31:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, CMDS[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L36
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	usage
.L35:
.L30:
	cmp	DWORD PTR -36[rbp], 0
	jg	.L37
	mov	eax, 0
	call	ifc_close@PLT
	mov	eax, 0
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.local	buf.0
	.comm	buf.0,32,32
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"128138.c"
	.text
	.local	verbose
	.comm	verbose,4,4
	.align	2
	.global	die
	.syntax unified
	.arm
	.fpu softvfp
	.type	die, %function
die:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
	.size	die, .-die
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d.%d.%d.%d\000"
	.text
	.align	2
	.global	ipaddr
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipaddr, %function
ipaddr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	and	r1, r3, #255
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #8
	and	r0, r3, #255
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #16
	and	r3, r3, #255
	ldr	r2, [fp, #-8]
	lsr	r2, r2, #24
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r0
	mov	r2, r1
	ldr	r1, .L4
	ldr	r0, .L4+4
	bl	sprintf
	ldr	r3, .L4+4
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	buf.5196
	.size	ipaddr, .-ipaddr
	.section	.rodata
	.align	2
.LC1:
	.ascii	"usage: netcfg [<interface> {dhcp|up|down}]\012\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L7
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L7+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L8:
	.align	2
.L7:
	.word	stderr
	.word	.LC1
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC2:
	.ascii	"UP  \000"
	.align	2
.LC3:
	.ascii	"DOWN\000"
	.align	2
.LC4:
	.ascii	"%-8s %s  \000"
	.align	2
.LC5:
	.ascii	"%-16s\000"
	.align	2
.LC6:
	.ascii	"0x%08x\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dump_interface
	.syntax unified
	.arm
	.fpu softvfp
	.type	dump_interface, %function
dump_interface:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #12
	sub	r2, fp, #16
	sub	r1, fp, #20
	ldr	r0, [fp, #-24]
	bl	ifc_get_info
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	mov	r3, #0
	b	.L14
.L10:
	ldr	r3, [fp, #-12]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L16+4
	b	.L13
.L12:
	ldr	r3, .L16+8
.L13:
	mov	r2, r3
	ldr	r1, [fp, #-24]
	ldr	r0, .L16+12
	bl	printf
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	ipaddr
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L16+16
	bl	printf
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	ipaddr
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L16+16
	bl	printf
	ldr	r3, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L16+20
	bl	printf
	mov	r3, #0
.L14:
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC7
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	dump_interface, .-dump_interface
	.section	.rodata
	.align	2
.LC8:
	.ascii	"/sys/class/net\000"
	.text
	.align	2
	.global	dump_interfaces
	.syntax unified
	.arm
	.fpu softvfp
	.type	dump_interfaces, %function
dump_interfaces:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L24
	bl	opendir
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L21
	mvn	r3, #0
	b	.L20
.L23:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #11]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L22
	b	.L21
.L22:
	ldr	r3, [fp, #-8]
	add	r3, r3, #11
	mov	r0, r3
	bl	dump_interface
.L21:
	ldr	r0, [fp, #-12]
	bl	readdir
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L23
	ldr	r0, [fp, #-12]
	bl	closedir
	mov	r3, #0
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC8
	.size	dump_interfaces, .-dump_interfaces
	.global	CMDS
	.section	.rodata
	.align	2
.LC9:
	.ascii	"dhcp\000"
	.align	2
.LC10:
	.ascii	"up\000"
	.align	2
.LC11:
	.ascii	"down\000"
	.align	2
.LC12:
	.ascii	"flhosts\000"
	.align	2
.LC13:
	.ascii	"deldefault\000"
	.data
	.align	2
	.type	CMDS, %object
	.size	CMDS, 72
CMDS:
	.word	.LC9
	.word	1
	.word	do_dhcp
	.word	.LC10
	.word	1
	.word	ifc_up
	.word	.LC11
	.word	1
	.word	ifc_down
	.word	.LC12
	.word	1
	.word	ifc_remove_host_routes
	.word	.LC13
	.word	1
	.word	ifc_remove_default_route
	.word	0
	.word	0
	.word	0
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	call_func, %function
call_func:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	cmp	r3, #3
	beq	.L27
	ldr	r3, [fp, #-28]
	cmp	r3, #3
	bhi	.L28
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	beq	.L29
	ldr	r3, [fp, #-28]
	cmp	r3, #2
	beq	.L30
	b	.L28
.L29:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r0, r2
	blx	r3
	mov	r3, r0
	b	.L31
.L30:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	mov	r0, r2
	blx	r3
	mov	r3, r0
	b	.L31
.L27:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #8
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	blx	r3
	mov	r3, r0
	b	.L31
.L28:
	mvn	r3, #0
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	call_func, .-call_func
	.section	.rodata
	.align	2
.LC14:
	.ascii	"Cannot perform requested operation\000"
	.align	2
.LC15:
	.ascii	"not enough arguments for '%s'\012\000"
	.align	2
.LC16:
	.ascii	"action '%s' failed (%s)\012\000"
	.align	2
.LC17:
	.ascii	"no such action '%s'\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	bl	ifc_init
	mov	r3, r0
	cmp	r3, #0
	beq	.L33
	ldr	r0, .L45
	bl	die
.L33:
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	bne	.L34
	bl	dump_interfaces
	str	r0, [fp, #-16]
	bl	ifc_close
	ldr	r3, [fp, #-16]
	b	.L35
.L34:
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	bgt	.L36
	bl	usage
.L36:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-28]
	bl	strlen
	mov	r3, r0
	cmp	r3, #16
	bls	.L37
	bl	usage
.L37:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #2
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-44]
	add	r3, r3, #8
	str	r3, [fp, #-44]
	b	.L38
.L44:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L39
.L43:
	ldr	r3, [fp, #-44]
	ldr	r0, [r3]
	ldr	r1, .L45+4
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	mov	r1, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L40
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	ldr	r1, .L45+4
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bge	.L41
	ldr	r3, .L45+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, .L45+12
	mov	r0, r3
	bl	fprintf
	bl	ifc_close
	mov	r0, #1
	bl	exit
.L41:
	ldr	r1, .L45+4
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	ldr	r2, [fp, #-44]
	mov	r0, r3
	bl	call_func
	mov	r3, r0
	cmp	r3, #0
	beq	.L42
	ldr	r3, .L45+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-24]
	ldr	r1, .L45+16
	mov	r0, r4
	bl	fprintf
	bl	ifc_close
	mov	r0, #1
	bl	exit
.L42:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-44]
	b	.L38
.L40:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L39:
	ldr	r1, .L45+4
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L43
	ldr	r3, .L45+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L45+20
	bl	fprintf
	bl	usage
.L38:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bgt	.L44
	bl	ifc_close
	mov	r3, #0
.L35:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC14
	.word	CMDS
	.word	stderr
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	main, .-main
	.local	buf.5196
	.comm	buf.5196,32,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
