	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function el3_ioctl
_el3_ioctl:                             ## @el3_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, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_if_mii
	movq	%rax, %r12
	movl	(%r15), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	4(%r14), %esi
	movl	(%rbx), %edx
	movl	(%r12), %r8d
	movl	4(%r12), %r9d
	movl	8(%r12), %eax
	movl	12(%r12), %ebx
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %ecx
	pushq	%rbx
	pushq	%rax
	callq	_pr_debug
	addq	$16, %rsp
	cmpl	$128, %r13d
	je	LBB0_6
## %bb.1:
	cmpl	$129, %r13d
	je	LBB0_4
## %bb.2:
	cmpl	$130, %r13d
	jne	LBB0_7
## %bb.3:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	andl	$31, %eax
	movl	%eax, (%r12)
LBB0_4:
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_EL3_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	addl	%r14d, %edi
	callq	_inw
	movl	%eax, %ebx
	sarl	$13, %ebx
	movl	$4, %edi
	callq	_EL3WINDOW
	movl	(%r12), %esi
	movl	4(%r12), %edx
	andl	$31, %esi
	andl	$31, %edx
	movl	%r14d, %edi
	callq	_mdio_read
	movl	%eax, 12(%r12)
	jmp	LBB0_5
LBB0_6:
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_EL3_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	addl	%r14d, %edi
	callq	_inw
	movl	%eax, %ebx
	sarl	$13, %ebx
	movl	$4, %edi
	callq	_EL3WINDOW
	movl	(%r12), %esi
	movl	4(%r12), %edx
	andl	$31, %esi
	andl	$31, %edx
	movl	8(%r12), %ecx
	movl	%r14d, %edi
	callq	_mdio_write
LBB0_5:
	movl	%ebx, %edi
	callq	_EL3WINDOW
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_7:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	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	"%s: In ioct(%-.6s, %#4.4x) %4.4x %4.4x %4.4x %4.4x.\n"

	.comm	_EL3_CMD,4,2                    ## @EL3_CMD
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_el3_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function el3_ioctl
_el3_ioctl:                             ; @el3_ioctl
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	w19, [x24]
	mov	x0, x23
	bl	_if_mii
	mov	x20, x0
	ldr	w25, [x21]
	ldr	w1, [x24, #4]
	ldr	w2, [x23]
	ldp	w4, w5, [x0]
	ldp	w6, w7, [x0, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x22
	bl	_pr_debug
	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:
	and	w8, w25, #0x1f
	str	w8, [x20]
LBB0_4:
	add	x21, x21, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x8, _EL3_CMD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EL3_CMD@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	add	w0, w8, w19
	bl	_inw
	asr	w22, w0, #13
	mov	w0, #4
	bl	_EL3WINDOW
	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, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh5:
	adrp	x8, _EL3_CMD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EL3_CMD@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	add	w0, w8, w19
	bl	_inw
	asr	w22, w0, #13
	mov	w0, #4
	bl	_EL3WINDOW
	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, x22
	bl	_EL3WINDOW
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: In ioct(%-.6s, %#4.4x) %4.4x %4.4x %4.4x %4.4x.\n"

	.comm	_EL3_CMD,4,2                    ; @EL3_CMD
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_el3_ioctl
.subsections_via_symbols
