	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e1xxx_set_speed_duplex
_mv88e1xxx_set_speed_duplex:            ## @mv88e1xxx_set_speed_duplex
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_MII_BMCR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-36(%rbp), %rdx
	callq	_simple_mdio_read
	testl	%ebx, %ebx
	js	LBB0_6
## %bb.1:
	movq	_BMCR_SPEED100@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BMCR_SPEED1000@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	orl	%edx, %eax
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	notl	%eax
	andl	-36(%rbp), %eax
	movl	%eax, -36(%rbp)
	movq	_SPEED_100@GOTPCREL(%rip), %rsi
	cmpl	%ebx, (%rsi)
	jne	LBB0_3
## %bb.2:
	orl	%edx, %eax
	jmp	LBB0_5
LBB0_3:
	movq	_SPEED_1000@GOTPCREL(%rip), %rdx
	cmpl	%ebx, (%rdx)
	jne	LBB0_6
## %bb.4:
	orl	%ecx, %eax
LBB0_5:
	movl	%eax, -36(%rbp)
LBB0_6:
	testl	%r15d, %r15d
	js	LBB0_7
## %bb.8:
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	%eax, %edx
	notl	%edx
	andl	-36(%rbp), %edx
	movl	%edx, -36(%rbp)
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_10
## %bb.9:
	orl	%eax, %edx
	movl	%edx, -36(%rbp)
	jmp	LBB0_10
LBB0_7:
	movl	-36(%rbp), %edx
LBB0_10:
	movq	_BMCR_SPEED1000@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_12
## %bb.11:
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, -36(%rbp)
LBB0_12:
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_simple_mdio_write
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_SPEED100,4,2              ## @BMCR_SPEED100
	.comm	_BMCR_SPEED1000,4,2             ## @BMCR_SPEED1000
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_BMCR_FULLDPLX,4,2              ## @BMCR_FULLDPLX
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.no_dead_strip	_mv88e1xxx_set_speed_duplex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e1xxx_set_speed_duplex
_mv88e1xxx_set_speed_duplex:            ; @mv88e1xxx_set_speed_duplex
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _MII_BMCR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MII_BMCR@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	bl	_simple_mdio_read
Lloh2:
	adrp	x9, _BMCR_SPEED1000@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BMCR_SPEED1000@GOTPAGEOFF]
Lloh4:
	adrp	x8, _BMCR_ANENABLE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BMCR_ANENABLE@GOTPAGEOFF]
	tbnz	w21, #31, LBB0_6
; %bb.1:
Lloh6:
	adrp	x10, _BMCR_SPEED100@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BMCR_SPEED100@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x10]
	ldr	w10, [x9]
	orr	w11, w10, w12
	ldr	w13, [x8]
	orr	w11, w11, w13
	ldr	w13, [sp, #12]
	bic	w11, w13, w11
	str	w11, [sp, #12]
Lloh9:
	adrp	x13, _SPEED_100@GOTPAGE
Lloh10:
	ldr	x13, [x13, _SPEED_100@GOTPAGEOFF]
Lloh11:
	ldr	w13, [x13]
	cmp	w13, w21
	b.ne	LBB0_3
; %bb.2:
	orr	w10, w11, w12
	b	LBB0_5
LBB0_3:
Lloh12:
	adrp	x12, _SPEED_1000@GOTPAGE
Lloh13:
	ldr	x12, [x12, _SPEED_1000@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
	cmp	w12, w21
	b.ne	LBB0_6
; %bb.4:
	orr	w10, w11, w10
LBB0_5:
	str	w10, [sp, #12]
LBB0_6:
	tbnz	w20, #31, LBB0_9
; %bb.7:
Lloh15:
	adrp	x10, _BMCR_FULLDPLX@GOTPAGE
Lloh16:
	ldr	x10, [x10, _BMCR_FULLDPLX@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	ldr	w11, [x8]
	orr	w11, w11, w10
	ldr	w12, [sp, #12]
	bic	w2, w12, w11
	str	w2, [sp, #12]
Lloh18:
	adrp	x11, _DUPLEX_FULL@GOTPAGE
Lloh19:
	ldr	x11, [x11, _DUPLEX_FULL@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	cmp	w11, w20
	b.ne	LBB0_10
; %bb.8:
	orr	w2, w2, w10
	str	w2, [sp, #12]
	b	LBB0_10
LBB0_9:
	ldr	w2, [sp, #12]
LBB0_10:
	ldr	w9, [x9]
	tst	w9, w2
	b.eq	LBB0_12
; %bb.11:
	ldr	w8, [x8]
	orr	w2, w8, w2
	str	w2, [sp, #12]
LBB0_12:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_simple_mdio_write
	mov	w0, #0
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_SPEED100,4,2              ; @BMCR_SPEED100
	.comm	_BMCR_SPEED1000,4,2             ; @BMCR_SPEED1000
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_BMCR_FULLDPLX,4,2              ; @BMCR_FULLDPLX
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.no_dead_strip	_mv88e1xxx_set_speed_duplex
.subsections_via_symbols
