	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function genmii_setup_forced
_genmii_setup_forced:                   ## @genmii_setup_forced
	.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
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rdi)
	movl	%esi, (%rdi)
	movl	%edx, 4(%rdi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rdi)
	movq	_MII_BMCR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_phy_read
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rcx
	movq	_BMCR_SPEED100@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_BMCR_SPEED1000@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	%eax, %r15d
	movl	(%r13), %esi
	movq	_BMCR_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%r15d, %edx
	movq	%rbx, %rdi
	callq	_phy_write
	cmpl	$128, %r12d
	je	LBB0_7
## %bb.3:
	cmpl	$130, %r12d
	je	LBB0_9
## %bb.4:
	cmpl	$129, %r12d
	jne	LBB0_6
## %bb.5:
	movq	_BMCR_SPEED100@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movl	%r15d, %r12d
	jmp	LBB0_12
LBB0_7:
	movq	_BMCR_SPEED1000@GOTPCREL(%rip), %rax
LBB0_8:
	orl	(%rax), %r15d
LBB0_9:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	movl	$0, %edx
	cmpl	%r14d, (%rax)
	jne	LBB0_11
## %bb.10:
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_11:
	orl	%r15d, %edx
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_phy_write
	jmp	LBB0_12
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_12:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_FULLDPLX,4,2              ## @BMCR_FULLDPLX
	.comm	_BMCR_SPEED100,4,2              ## @BMCR_SPEED100
	.comm	_BMCR_SPEED1000,4,2             ## @BMCR_SPEED1000
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.comm	_BMCR_RESET,4,2                 ## @BMCR_RESET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.no_dead_strip	_genmii_setup_forced
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function genmii_setup_forced
_genmii_setup_forced:                   ; @genmii_setup_forced
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _AUTONEG_DISABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #24]
	stp	w1, w2, [x0]
	stp	xzr, xzr, [x0, #8]
Lloh3:
	adrp	x22, _MII_BMCR@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MII_BMCR@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_phy_read
	tbnz	w0, #31, LBB0_9
; %bb.1:
Lloh5:
	adrp	x23, _BMCR_FULLDPLX@GOTPAGE
Lloh6:
	ldr	x23, [x23, _BMCR_FULLDPLX@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh7:
	adrp	x25, _BMCR_SPEED100@GOTPAGE
Lloh8:
	ldr	x25, [x25, _BMCR_SPEED100@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w9, w8
Lloh9:
	adrp	x26, _BMCR_SPEED1000@GOTPAGE
Lloh10:
	ldr	x26, [x26, _BMCR_SPEED1000@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _BMCR_ANENABLE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w24, w0, w8
	ldr	w1, [x22]
Lloh14:
	adrp	x8, _BMCR_RESET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BMCR_RESET@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w2, w24, w8
	mov	x0, x19
	bl	_phy_write
	cmp	w21, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w21, #130
	b.eq	LBB0_7
; %bb.3:
	cmp	w21, #129
	b.ne	LBB0_8
; %bb.4:
	ldr	w8, [x25]
	b	LBB0_6
LBB0_5:
	ldr	w8, [x26]
LBB0_6:
	orr	w24, w8, w24
LBB0_7:
Lloh17:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x23]
	cmp	w8, w20
	csel	w8, w9, wzr, eq
	orr	w2, w8, w24
	ldr	w1, [x22]
	mov	x0, x19
	bl	_phy_write
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_FULLDPLX,4,2              ; @BMCR_FULLDPLX
	.comm	_BMCR_SPEED100,4,2              ; @BMCR_SPEED100
	.comm	_BMCR_SPEED1000,4,2             ; @BMCR_SPEED1000
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.comm	_BMCR_RESET,4,2                 ; @BMCR_RESET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.no_dead_strip	_genmii_setup_forced
.subsections_via_symbols
