	.file	"extr_ena.c_ena_ioctl.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ioctl promisc/allmulti\n"
	.text
	.p2align 4
	.type	ena_ioctl, @function
ena_ioctl:
.LFB0:
	.cfi_startproc
	endbr64
	lea	eax, -128[rsi]
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	r13, QWORD PTR 16[rdi]
	cmp	eax, 6
	ja	.L2
	lea	rcx, .L4[rip]
	movsx	rax, DWORD PTR [rcx+rax*4]
	add	rax, rcx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L8-.L4
	.long	.L5-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L13-.L4
	.long	.L13-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r12d, DWORD PTR [rdi]
	and	r12d, DWORD PTR IFF_UP[rip]
	je	.L10
	call	if_getdrvflags@PLT
	test	DWORD PTR IFF_DRV_RUNNING[rip], eax
	je	.L11
	mov	eax, DWORD PTR IFF_PROMISC[rip]
	or	eax, DWORD PTR IFF_ALLMULTI[rip]
	test	DWORD PTR 0[rbp], eax
	jne	.L26
	.p2align 4,,10
	.p2align 3
.L13:
	xor	r12d, r12d
.L1:
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rdx, 4[r13]
	mov	ecx, esi
	mov	rsi, r12
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	ifmedia_ioctl@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	eax, DWORD PTR [rdx]
	cmp	eax, DWORD PTR 4[rdi]
	je	.L13
	mov	DWORD PTR 4[rdi], eax
	call	if_getdrvflags@PLT
	test	DWORD PTR IFF_DRV_RUNNING[rip], eax
	je	.L13
	mov	rdi, r13
	call	sx_xlock@PLT
	mov	rdi, r13
	call	ena_down@PLT
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR 4[rdx]
	cmp	DWORD PTR 8[rdi], eax
	je	.L13
	mov	rdi, r13
	call	sx_xlock@PLT
	mov	rdi, r13
	call	ena_down@PLT
	mov	esi, DWORD PTR 4[r12]
	mov	rdi, rbp
	call	ena_change_mtu@PLT
.L24:
	mov	rdi, r13
	call	ena_up@PLT
	mov	rdi, r13
	mov	r12d, eax
	call	sx_unlock@PLT
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	ether_ioctl@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	call	if_getdrvflags@PLT
	test	DWORD PTR IFF_DRV_RUNNING[rip], eax
	je	.L13
	mov	rdi, r13
	call	sx_xlock@PLT
	mov	rdi, r13
	call	ena_down@PLT
	mov	rdi, r13
	call	sx_unlock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edi, DWORD PTR 8[r13]
	lea	rsi, .LC0[rip]
	xor	r12d, r12d
	call	device_printf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, r13
	call	sx_xlock@PLT
	jmp	.L24
	.cfi_endproc
.LFE0:
	.size	ena_ioctl, .-ena_ioctl
	.comm	IFF_UP,4,4
	.comm	IFF_PROMISC,4,4
	.comm	IFF_DRV_RUNNING,4,4
	.comm	IFF_ALLMULTI,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_ena.c_ena_ioctl.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ioctl promisc/allmulti\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ena_ioctl, %function
ena_ioctl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r1
	sub	r1, r1, #128
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r5, r2
	ldr	r6, [r0, #12]
	cmp	r1, #6
	ldrls	pc, [pc, r1, asl #2]
	b	.L2
.L4:
	.word	.L8
	.word	.L5
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L13
	.word	.L13
.L7:
	ldr	r3, .L27
	ldr	r5, [r0]
	ldr	r3, [r3]
	ands	r5, r5, r3
	beq	.L10
	bl	if_getdrvflags
	ldr	r3, .L27+4
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L11
	ldr	r2, .L27+8
	ldr	r3, .L27+12
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r4]
	orr	r3, r3, r1
	tst	r3, r2
	bne	.L26
.L13:
	mov	r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L5:
	mov	r1, r5
	add	r2, r6, #4
	pop	{r4, r5, r6, lr}
	b	ifmedia_ioctl
.L6:
	ldr	r3, [r2]
	ldr	r2, [r0, #4]
	cmp	r3, r2
	beq	.L13
	str	r3, [r0, #4]
	bl	if_getdrvflags
	ldr	r3, .L27+4
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L13
	mov	r0, r6
	bl	sx_xlock
	mov	r0, r6
	bl	ena_down
	b	.L24
.L8:
	ldr	r2, [r0, #8]
	ldr	r3, [r5, #4]
	cmp	r2, r3
	beq	.L13
	mov	r0, r6
	bl	sx_xlock
	mov	r0, r6
	bl	ena_down
	mov	r0, r4
	ldr	r1, [r5, #4]
	bl	ena_change_mtu
.L24:
	mov	r0, r6
	bl	ena_up
	mov	r5, r0
	mov	r0, r6
	bl	sx_unlock
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L10:
	bl	if_getdrvflags
	ldr	r3, .L27+4
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L13
	mov	r0, r6
	bl	sx_xlock
	mov	r0, r6
	bl	ena_down
	mov	r0, r6
	bl	sx_unlock
	b	.L1
.L26:
	ldr	r0, [r6, #8]
	ldr	r1, .L27+16
	bl	device_printf
	mov	r5, #0
	b	.L1
.L11:
	mov	r0, r6
	bl	sx_xlock
	b	.L24
.L2:
	mov	r1, r3
	pop	{r4, r5, r6, lr}
	b	ether_ioctl
.L28:
	.align	2
.L27:
	.word	IFF_UP
	.word	IFF_DRV_RUNNING
	.word	IFF_ALLMULTI
	.word	IFF_PROMISC
	.word	.LC0
	.size	ena_ioctl, .-ena_ioctl
	.comm	IFF_UP,4,4
	.comm	IFF_PROMISC,4,4
	.comm	IFF_DRV_RUNNING,4,4
	.comm	IFF_ALLMULTI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
