	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jme_ioctl
_jme_ioctl:                             ## @jme_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
	subq	$24, %rsp
	.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
	movq	%rbx, %rdi
	callq	_if_mii
	movq	%rax, %r12
	movq	_SIOCSMIIREG@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_4
## %bb.1:
	movl	(%r12), %eax
	movq	_BMCR_RESET@GOTPCREL(%rip), %rcx
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_2
LBB0_4:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	leaq	12(%r15), %rdi
	leaq	-44(%rbp), %rcx
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_generic_mii_ioctl
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	testl	%ebx, %ebx
	jne	LBB0_9
## %bb.5:
	movq	_SIOCSMIIREG@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_9
## %bb.6:
	cmpl	$0, -44(%rbp)
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_jme_reset_link
LBB0_8:
	movq	%r15, %rsi
	addq	$4, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_jme_get_link_ksettings
	movq	_JME_FLAG_SSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_set_bit
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_2:
	movq	_BMCR_SPEED1000@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIOCSMIIREG,4,2                ## @SIOCSMIIREG
	.comm	_BMCR_RESET,4,2                 ## @BMCR_RESET
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.comm	_BMCR_SPEED1000,4,2             ## @BMCR_SPEED1000
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_JME_FLAG_SSET,4,2              ## @JME_FLAG_SSET
	.no_dead_strip	_jme_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jme_ioctl
_jme_ioctl:                             ; @jme_ioctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x22
	bl	_if_mii
	mov	x22, x0
Lloh0:
	adrp	x24, _SIOCSMIIREG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SIOCSMIIREG@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, w21
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _BMCR_RESET@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BMCR_RESET@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _BMCR_ANENABLE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_7
LBB0_2:
	add	x23, x19, #8
	mov	x0, x23
	bl	_spin_lock_bh
	add	x0, x19, #12
	add	x3, sp, #12
	mov	x1, x22
	mov	x2, x21
	bl	_generic_mii_ioctl
	mov	x22, x0
	mov	x0, x23
	bl	_spin_unlock_bh
	cbnz	w22, LBB0_9
; %bb.3:
	ldr	w8, [x24]
	cmp	w8, w21
	b.ne	LBB0_9
; %bb.4:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_jme_reset_link
LBB0_6:
	add	x1, x19, #4
	mov	x0, x20
	bl	_jme_get_link_ksettings
Lloh8:
	adrp	x8, _JME_FLAG_SSET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _JME_FLAG_SSET@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
	mov	w22, #0
	b	LBB0_9
LBB0_7:
Lloh11:
	adrp	x9, _BMCR_SPEED1000@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BMCR_SPEED1000@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.8:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SIOCSMIIREG,4,2                ; @SIOCSMIIREG
	.comm	_BMCR_RESET,4,2                 ; @BMCR_RESET
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.comm	_BMCR_SPEED1000,4,2             ; @BMCR_SPEED1000
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_JME_FLAG_SSET,4,2              ; @JME_FLAG_SSET
	.no_dead_strip	_jme_ioctl
.subsections_via_symbols
