	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_ioctl
_emac_ioctl:                            ## @emac_ioctl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r12
	leal	-128(%rbx), %eax
	cmpl	$4, %eax
	ja	LBB0_14
## %bb.1:
	movq	8(%r12), %r14
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_13:
	movl	4(%r14), %edi
	callq	_device_get_softc
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	movl	%ebx, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ifmedia_ioctl                  ## TAILCALL
LBB0_10:
	movq	%r14, %rdi
	callq	_EMAC_LOCK
	movq	_IFF_DRV_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_emac_set_rx_mode
	jmp	LBB0_12
LBB0_14:
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ether_ioctl                    ## TAILCALL
LBB0_2:
	movq	%r14, %rdi
	callq	_EMAC_LOCK
	movl	(%r12), %eax
	movq	_IFF_UP@GOTPCREL(%rip), %rdx
	movq	_IFF_DRV_RUNNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	4(%r12), %ecx
	testl	%eax, (%rdx)
	je	LBB0_7
## %bb.3:
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.4:
	xorl	(%r14), %eax
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_9
## %bb.5:
	movq	%r14, %rdi
	callq	_emac_set_rx_mode
	jmp	LBB0_9
LBB0_7:
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_emac_stop_locked
	jmp	LBB0_9
LBB0_6:
	movq	%r14, %rdi
	callq	_emac_init_locked
LBB0_9:
	movl	(%r12), %eax
	movl	%eax, (%r14)
LBB0_12:
	movq	%r14, %rdi
	callq	_EMAC_UNLOCK
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_2
	.long	L0_0_set_13
	.long	L0_0_set_10
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_IFF_DRV_RUNNING,4,2            ## @IFF_DRV_RUNNING
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.no_dead_strip	_emac_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_ioctl
_emac_ioctl:                            ; @emac_ioctl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	sub	w8, w1, #128
	cmp	w8, #4
	b.hi	LBB0_5
; %bb.1:
	ldr	x19, [x20, #8]
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w0, [x19, #4]
	bl	_device_get_softc
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	mov	x3, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ifmedia_ioctl
LBB0_3:
	mov	x0, x19
	bl	_EMAC_LOCK
	ldr	w8, [x20, #4]
Lloh2:
	adrp	x9, _IFF_DRV_RUNNING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IFF_DRV_RUNNING@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.4:
	mov	x0, x19
	bl	_emac_set_rx_mode
	b	LBB0_14
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ether_ioctl
LBB0_6:
	mov	x0, x19
	bl	_EMAC_LOCK
Lloh5:
	adrp	x8, _IFF_UP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IFF_UP@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x8]
	ldp	w8, w9, [x20]
Lloh8:
	adrp	x11, _IFF_DRV_RUNNING@GOTPAGE
Lloh9:
	ldr	x11, [x11, _IFF_DRV_RUNNING@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	and	w9, w11, w9
	tst	w10, w8
	b.eq	LBB0_10
; %bb.7:
	cbz	w9, LBB0_12
; %bb.8:
	ldr	w9, [x19]
	eor	w8, w9, w8
Lloh11:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _IFF_ALLMULTI@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_13
; %bb.9:
	mov	x0, x19
	bl	_emac_set_rx_mode
	b	LBB0_13
LBB0_10:
	cbz	w9, LBB0_13
; %bb.11:
	mov	x0, x19
	bl	_emac_stop_locked
	b	LBB0_13
LBB0_12:
	mov	x0, x19
	bl	_emac_init_locked
LBB0_13:
	ldr	w8, [x20]
	str	w8, [x19]
LBB0_14:
	mov	x0, x19
	bl	_EMAC_UNLOCK
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
                                        ; -- End function
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_IFF_DRV_RUNNING,4,2            ; @IFF_DRV_RUNNING
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.no_dead_strip	_emac_ioctl
.subsections_via_symbols
