	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netdrv_ioctl
_netdrv_ioctl:                          ## @netdrv_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, %r14d
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_if_mii
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_DPRINTK
	cmpl	$128, %r14d
	je	LBB0_5
## %bb.1:
	cmpl	$129, %r14d
	je	LBB0_4
## %bb.2:
	cmpl	$130, %r14d
	jne	LBB0_6
## %bb.3:
	movq	(%r12), %rax
	movl	(%rax), %eax
	andl	$63, %eax
	movl	%eax, (%r15)
LBB0_4:
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	(%r15), %esi
	movl	4(%r15), %edx
	andl	$31, %esi
	andl	$31, %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mdio_read
	movl	%eax, 12(%r15)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%r13d, %r13d
	jmp	LBB0_7
LBB0_5:
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	(%r15), %esi
	movl	4(%r15), %edx
	andl	$31, %esi
	andl	$31, %edx
	movl	8(%r15), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mdio_write
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_7
LBB0_6:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_DPRINTK
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ENTER\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"EXIT, returning %d\n"

	.no_dead_strip	_netdrv_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netdrv_ioctl
_netdrv_ioctl:                          ; @netdrv_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	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	mov	x0, x20
	bl	_if_mii
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTK
	cmp	w22, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w22, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w22, #130
	b.ne	LBB0_7
; %bb.3:
	ldr	x8, [x21]
	ldr	w8, [x8]
	and	w8, w8, #0x3f
	str	w8, [x20]
LBB0_4:
	add	x21, x21, #8
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldp	w8, w9, [x20]
	and	w1, w8, #0x1f
	and	w2, w9, #0x1f
	mov	x0, x19
	bl	_mdio_read
	str	w0, [x20, #12]
	b	LBB0_6
LBB0_5:
	add	x21, x21, #8
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldp	w8, w9, [x20]
	and	w1, w8, #0x1f
	and	w2, w9, #0x1f
	ldr	w3, [x20, #8]
	mov	x0, x19
	bl	_mdio_write
LBB0_6:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	w19, #0
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_8:
	str	x19, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINTK
	mov	x0, x19
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ENTER\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"EXIT, returning %d\n"

	.no_dead_strip	_netdrv_ioctl
.subsections_via_symbols
