	.file	"extr_driver_wired_common.c_driver_wired_get_ifflags.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"socket: %s"
.LC1:
	.string	"ioctl[SIOCGIFFLAGS]: %s"
	.text
	.p2align 4
	.type	driver_wired_get_ifflags, @function
driver_wired_get_ifflags:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	xor	edx, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR SOCK_DGRAM[rip]
	mov	edi, DWORD PTR PF_INET[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	socket@PLT
	test	eax, eax
	js	.L8
	mov	rbx, rsp
	xor	esi, esi
	mov	edx, 8
	mov	ebp, eax
	mov	rdi, rbx
	call	os_memset@PLT
	mov	edx, DWORD PTR IFNAMSIZ[rip]
	mov	edi, DWORD PTR 4[rsp]
	mov	rsi, r12
	call	os_strlcpy@PLT
	mov	esi, DWORD PTR SIOCGIFFLAGS[rip]
	mov	edx, ebx
	mov	edi, ebp
	call	ioctl@PLT
	test	rax, rax
	js	.L9
	mov	edi, ebp
	call	close@PLT
	movzx	eax, WORD PTR [rsp]
	mov	DWORD PTR 0[r13], eax
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edi, DWORD PTR MSG_ERROR[rip]
	lea	rsi, .LC0[rip]
	mov	edx, eax
	call	wpa_printf@PLT
	mov	eax, -1
	jmp	.L1
.L9:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edi, DWORD PTR MSG_ERROR[rip]
	lea	rsi, .LC1[rip]
	mov	edx, eax
	call	wpa_printf@PLT
	mov	edi, ebp
	call	close@PLT
	mov	eax, -1
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	driver_wired_get_ifflags, .-driver_wired_get_ifflags
	.comm	errno,4,4
	.comm	SOCK_DGRAM,4,4
	.comm	SIOCGIFFLAGS,4,4
	.comm	PF_INET,4,4
	.comm	MSG_ERROR,4,4
	.comm	IFNAMSIZ,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_driver_wired_common.c_driver_wired_get_ifflags.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"socket: %s\000"
	.align	2
.LC1:
	.ascii	"ioctl[SIOCGIFFLAGS]: %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	driver_wired_get_ifflags, %function
driver_wired_get_ifflags:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r2, .L11
	mov	r6, r1
	ldr	r1, .L11+4
	ldr	r3, .L11+8
	sub	sp, sp, #16
	mov	r4, r0
	ldr	r1, [r1]
	ldr	r0, [r2]
	mov	r2, #0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	socket
	subs	r5, r0, #0
	blt	.L8
	mov	r2, #8
	mov	r1, #0
	add	r0, sp, #4
	bl	os_memset
	ldr	r3, .L11+12
	mov	r1, r4
	ldr	r2, [r3]
	ldr	r0, [sp, #8]
	bl	os_strlcpy
	ldr	r3, .L11+16
	mov	r0, r5
	ldr	r1, [r3]
	add	r2, sp, #4
	bl	ioctl
	cmp	r0, #0
	blt	.L9
	mov	r0, r5
	bl	close
	mov	r0, #0
	ldrh	r3, [sp, #4]
	str	r3, [r6]
.L1:
	ldr	r3, .L11+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r3, .L11+20
	ldr	r2, .L11+24
	ldr	r0, [r3]
	ldr	r4, [r2]
	bl	strerror
	ldr	r1, .L11+28
	mov	r2, r0
	mov	r0, r4
	bl	wpa_printf
	mvn	r0, #0
	b	.L1
.L9:
	ldr	r3, .L11+20
	ldr	r2, .L11+24
	ldr	r0, [r3]
	ldr	r4, [r2]
	bl	strerror
	ldr	r1, .L11+32
	mov	r2, r0
	mov	r0, r4
	bl	wpa_printf
	mov	r0, r5
	bl	close
	mvn	r0, #0
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	PF_INET
	.word	SOCK_DGRAM
	.word	.LC2
	.word	IFNAMSIZ
	.word	SIOCGIFFLAGS
	.word	errno
	.word	MSG_ERROR
	.word	.LC0
	.word	.LC1
	.size	driver_wired_get_ifflags, .-driver_wired_get_ifflags
	.comm	errno,4,4
	.comm	SOCK_DGRAM,4,4
	.comm	SIOCGIFFLAGS,4,4
	.comm	PF_INET,4,4
	.comm	MSG_ERROR,4,4
	.comm	IFNAMSIZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
