	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jme_set_100m_half
_jme_set_100m_half:                     ## @jme_set_100m_half
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_jme_phy_on
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movq	_MII_BMCR@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	callq	_jme_mdio_read
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rcx
	movq	_BMCR_SPEED100@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	(%rcx), %ecx
	orl	%edx, %ecx
	movq	_BMCR_SPEED1000@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	notl	%ecx
	andl	%eax, %ecx
	orl	%edx, %ecx
	cmpl	%ecx, %eax
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movl	(%r14), %edx
	callq	_jme_mdio_write
LBB0_2:
	xorl	%edx, %edx
	cmpq	$0, (%rbx)
	movq	_JME_GHC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GHC_SPEED_100M@GOTPCREL(%rip), %rax
	je	LBB0_4
## %bb.3:
	movq	_GHC_LINK_POLL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_4:
	orl	(%rax), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_jwrite32                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.comm	_BMCR_SPEED100,4,2              ## @BMCR_SPEED100
	.comm	_BMCR_SPEED1000,4,2             ## @BMCR_SPEED1000
	.comm	_BMCR_FULLDPLX,4,2              ## @BMCR_FULLDPLX
	.comm	_JME_GHC,4,2                    ## @JME_GHC
	.comm	_GHC_SPEED_100M,4,2             ## @GHC_SPEED_100M
	.comm	_GHC_LINK_POLL,4,2              ## @GHC_LINK_POLL
	.no_dead_strip	_jme_set_100m_half
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jme_set_100m_half
_jme_set_100m_half:                     ; @jme_set_100m_half
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_jme_phy_on
	ldp	w1, w0, [x19, #8]
Lloh0:
	adrp	x20, _MII_BMCR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MII_BMCR@GOTPAGEOFF]
	ldr	w2, [x20]
	bl	_jme_mdio_read
Lloh2:
	adrp	x8, _BMCR_ANENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _BMCR_SPEED100@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BMCR_SPEED100@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x10, _BMCR_SPEED1000@GOTPAGE
Lloh9:
	ldr	x10, [x10, _BMCR_SPEED1000@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	adrp	x11, _BMCR_FULLDPLX@GOTPAGE
Lloh12:
	ldr	x11, [x11, _BMCR_FULLDPLX@GOTPAGEOFF]
	orr	w8, w8, w10
Lloh13:
	ldr	w10, [x11]
	orr	w8, w8, w10
	bic	w8, w0, w8
	orr	w3, w8, w9
	cmp	w0, w3
	b.eq	LBB0_2
; %bb.1:
	ldp	w1, w0, [x19, #8]
	ldr	w2, [x20]
	bl	_jme_mdio_write
LBB0_2:
	ldr	x8, [x19]
Lloh14:
	adrp	x9, _JME_GHC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _JME_GHC@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x9]
Lloh17:
	adrp	x9, _GHC_SPEED_100M@GOTPAGE
Lloh18:
	ldr	x9, [x9, _GHC_SPEED_100M@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _GHC_LINK_POLL@GOTPAGE
Lloh21:
	ldr	x10, [x10, _GHC_LINK_POLL@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	cmp	x8, #0
	csel	w8, wzr, w10, eq
	orr	w2, w9, w8
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_jwrite32
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.comm	_BMCR_SPEED100,4,2              ; @BMCR_SPEED100
	.comm	_BMCR_SPEED1000,4,2             ; @BMCR_SPEED1000
	.comm	_BMCR_FULLDPLX,4,2              ; @BMCR_FULLDPLX
	.comm	_JME_GHC,4,2                    ; @JME_GHC
	.comm	_GHC_SPEED_100M,4,2             ; @GHC_SPEED_100M
	.comm	_GHC_LINK_POLL,4,2              ; @GHC_LINK_POLL
	.no_dead_strip	_jme_set_100m_half
.subsections_via_symbols
