	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1e_mii_ioctl
_atl1e_mii_ioctl:                       ## @atl1e_mii_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %r14
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_if_mii
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	cmpl	$128, %r13d
	je	LBB0_6
## %bb.2:
	cmpl	$129, %r13d
	je	LBB0_9
## %bb.3:
	cmpl	$130, %r13d
	jne	LBB0_11
## %bb.4:
	movl	$0, 12(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_6:
	movl	(%r15), %edx
	cmpl	$32, %edx
	jae	LBB0_12
## %bb.7:
	movl	4(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_dbg
	movq	%r14, %rdi
	addq	$4, %rdi
	movl	(%r15), %esi
	movl	4(%r15), %edx
	callq	_atl1e_write_phy_reg
	testl	%eax, %eax
	jne	LBB0_10
LBB0_16:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_9:
	movq	%r14, %rdi
	addq	$4, %rdi
	movl	(%r15), %esi
	andl	$31, %esi
	addq	$8, %r15
	movq	%r15, %rdx
	callq	_atl1e_read_phy_reg
	testl	%eax, %eax
	je	LBB0_16
LBB0_10:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_13:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EFAULT,4,2                     ## @EFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<atl1e_mii_ioctl> write %x %x"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_atl1e_mii_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1e_mii_ioctl
_atl1e_mii_ioctl:                       ; @atl1e_mii_ioctl
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x23, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x22, [x0, #8]
	mov	x0, x20
	bl	_if_mii
	mov	x20, x0
	mov	x0, x23
	bl	_netif_running
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_spin_lock_irqsave
	cmp	w21, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w21, #129
	b.eq	LBB0_9
; %bb.3:
	cmp	w21, #130
	b.ne	LBB0_11
; %bb.4:
	mov	w21, #0
	str	wzr, [x20, #12]
	b	LBB0_14
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_15
LBB0_6:
	ldr	w2, [x20]
	cmp	w2, #32
	b.hs	LBB0_12
; %bb.7:
	ldr	w3, [x20, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
	add	x0, x19, #4
	ldp	w1, w2, [x20]
	bl	_atl1e_write_phy_reg
	cbnz	w0, LBB0_10
LBB0_8:
	mov	w21, #0
	b	LBB0_14
LBB0_9:
	add	x0, x19, #4
	ldr	w8, [x20], #8
	and	w1, w8, #0x1f
	mov	x2, x20
	bl	_atl1e_read_phy_reg
	cbz	w0, LBB0_8
LBB0_10:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh7:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh9:
	adrp	x8, _EFAULT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_14:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EFAULT,4,2                     ; @EFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<atl1e_mii_ioctl> write %x %x"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_atl1e_mii_ioctl
.subsections_via_symbols
