	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd8111e_ioctl
_amd8111e_ioctl:                        ## @amd8111e_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_if_mii
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	cmpl	$128, %ebx
	je	LBB0_5
## %bb.1:
	cmpl	$129, %ebx
	je	LBB0_4
## %bb.2:
	cmpl	$130, %ebx
	jne	LBB0_6
## %bb.3:
	movl	4(%r14), %eax
	movl	%eax, 8(%r15)
LBB0_4:
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movl	8(%r15), %esi
	movq	_PHY_REG_ADDR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	(%r15), %edx
	leaq	-28(%rbp), %rcx
	movq	%r14, %rdi
	callq	_amd8111e_read_phy
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movl	-28(%rbp), %eax
	movl	%eax, 12(%r15)
	jmp	LBB0_7
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movl	4(%r15), %ecx
	movl	8(%r15), %esi
	movq	_PHY_REG_ADDR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	(%r15), %edx
	movq	%r14, %rdi
	callq	_amd8111e_write_phy
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	jmp	LBB0_7
LBB0_6:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_REG_ADDR_MASK,4,2          ## @PHY_REG_ADDR_MASK
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_amd8111e_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd8111e_ioctl
_amd8111e_ioctl:                        ; @amd8111e_ioctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x20, x0
	mov	x0, x1
	bl	_if_mii
	mov	x19, x0
	mov	x0, x20
	bl	_netdev_priv
	mov	x20, x0
	cmp	w21, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w21, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w21, #130
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x20, #4]
	str	w8, [x19, #8]
LBB0_4:
	mov	x0, x20
	bl	_spin_lock_irq
	ldr	w1, [x19, #8]
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _PHY_REG_ADDR_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_REG_ADDR_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w2, w9, w8
	add	x3, sp, #12
	mov	x0, x20
	bl	_amd8111e_read_phy
	mov	x21, x0
	mov	x0, x20
	bl	_spin_unlock_irq
	ldr	w8, [sp, #12]
	str	w8, [x19, #12]
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	bl	_spin_lock_irq
	ldp	w3, w1, [x19, #4]
Lloh3:
	adrp	x8, _PHY_REG_ADDR_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHY_REG_ADDR_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	and	w2, w8, w9
	mov	x0, x20
	bl	_amd8111e_write_phy
	mov	x19, x0
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	x0, x19
	b	LBB0_8
LBB0_6:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_REG_ADDR_MASK,4,2          ; @PHY_REG_ADDR_MASK
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_amd8111e_ioctl
.subsections_via_symbols
