	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axnet_ioctl
_axnet_ioctl:                           ## @axnet_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
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_PRIV
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_if_mii
	movq	%rax, %r14
	movq	_AXNET_MII_EEP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	(%rbx), %edi
	cmpl	$128, %r12d
	je	LBB0_6
## %bb.1:
	cmpl	$130, %r12d
	je	LBB0_4
## %bb.2:
	cmpl	$129, %r12d
	jne	LBB0_7
## %bb.3:
	movl	8(%r14), %esi
	jmp	LBB0_5
LBB0_6:
	movl	8(%r14), %esi
	movl	(%r14), %edx
	movl	4(%r14), %ecx
	andl	$31, %edx
	callq	_mdio_write
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movl	(%r15), %esi
	movl	%esi, 8(%r14)
LBB0_5:
	movl	(%r14), %edx
	andl	$31, %edx
	callq	_mdio_read
	movl	%eax, 12(%r14)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_7:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AXNET_MII_EEP,4,2              ## @AXNET_MII_EEP
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_axnet_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axnet_ioctl
_axnet_ioctl:                           ; @axnet_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	x20, x2
	mov	x19, x1
	mov	x22, x0
	bl	_PRIV
	mov	x21, x0
	mov	x0, x19
	bl	_if_mii
	mov	x19, x0
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _AXNET_MII_EEP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AXNET_MII_EEP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w0, w9, w8
	cmp	w20, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w20, #130
	b.eq	LBB0_5
; %bb.2:
	cmp	w20, #129
	b.ne	LBB0_7
; %bb.3:
	ldr	w1, [x19, #8]
	b	LBB0_6
LBB0_4:
	ldp	w3, w1, [x19, #4]
	ldr	w8, [x19]
	and	w2, w8, #0x1f
	bl	_mdio_write
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	ldr	w1, [x21]
	str	w1, [x19, #8]
LBB0_6:
	ldr	w8, [x19]
	and	w2, w8, #0x1f
	bl	_mdio_read
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #12]
	b	LBB0_8
LBB0_7:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AXNET_MII_EEP,4,2              ; @AXNET_MII_EEP
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_axnet_ioctl
.subsections_via_symbols
