	.file	"extr_lguest.c_configure_device.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Setting %s interface address"
.LC1:
	.string	"Bringing interface %s up"
	.text
	.p2align 4
	.type	configure_device, @function
configure_device:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, edx
	mov	edx, 12
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	r13, 12[rsp]
	mov	rdi, r13
	call	memset@PLT
	mov	edi, DWORD PTR 16[rsp]
	mov	rsi, r12
	call	strcpy@PLT
	mov	eax, DWORD PTR AF_INET[rip]
	mov	edi, r14d
	mov	DWORD PTR 24[rsp], eax
	call	htonl@PLT
	mov	esi, DWORD PTR SIOCSIFADDR[rip]
	mov	rdx, r13
	mov	edi, ebp
	mov	DWORD PTR 20[rsp], eax
	call	ioctl@PLT
	test	rax, rax
	jne	.L13
.L2:
	mov	eax, DWORD PTR IFF_UP[rip]
	mov	esi, DWORD PTR SIOCSIFFLAGS[rip]
	mov	rdx, r13
	mov	edi, ebp
	mov	DWORD PTR 12[rsp], eax
	call	ioctl@PLT
	test	rax, rax
	jne	.L14
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdx, r12
	lea	rsi, .LC0[rip]
	mov	edi, 1
	call	err@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdx, r12
	lea	rsi, .LC1[rip]
	mov	edi, 1
	call	err@PLT
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	configure_device, .-configure_device
	.comm	SIOCSIFFLAGS,4,4
	.comm	SIOCSIFADDR,4,4
	.comm	IFF_UP,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_lguest.c_configure_device.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Setting %s interface address\000"
	.align	2
.LC1:
	.ascii	"Bringing interface %s up\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	configure_device, %function
configure_device:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, lr}
	mov	r5, r2
	ldr	r2, .L16
	sub	sp, sp, #16
	mov	r4, r0
	mov	r0, r3
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	mov	r6, r1
	str	r3, [sp]
	str	r3, [sp, #4]
	str	r3, [sp, #8]
	bl	strcpy
	ldr	r3, .L16+4
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [sp, #12]
	bl	htonl
	mov	r3, r0
	ldr	r2, .L16+8
	mov	r0, r4
	ldr	r1, [r2]
	mov	r2, sp
	str	r3, [sp, #8]
	bl	ioctl
	cmp	r0, #0
	bne	.L13
.L2:
	ldr	r3, .L16+12
	ldr	r1, .L16+16
	ldr	r3, [r3]
	mov	r2, sp
	mov	r0, r4
	ldr	r1, [r1]
	str	r3, [sp]
	bl	ioctl
	cmp	r0, #0
	bne	.L14
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L13:
	mov	r2, r6
	ldr	r1, .L16+20
	mov	r0, #1
	bl	err
	b	.L2
.L14:
	mov	r2, r6
	ldr	r1, .L16+24
	mov	r0, #1
	bl	err
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC2
	.word	AF_INET
	.word	SIOCSIFADDR
	.word	IFF_UP
	.word	SIOCSIFFLAGS
	.word	.LC0
	.word	.LC1
	.size	configure_device, .-configure_device
	.comm	SIOCSIFFLAGS,4,4
	.comm	SIOCSIFADDR,4,4
	.comm	IFF_UP,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
