	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_set_phy_speed_duplex        ## -- Begin function t3_set_phy_speed_duplex
	.p2align	4, 0x90
_t3_set_phy_speed_duplex:               ## @t3_set_phy_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	%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, %ebx
	movq	%rdi, %r15
	movq	_MDIO_DEVAD_NONE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_MII_BMCR@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-44(%rbp), %rcx
	callq	_t3_mdio_read
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	testl	%ebx, %ebx
	js	LBB0_7
## %bb.2:
	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	-44(%rbp), %eax
	movl	%eax, -44(%rbp)
	movq	_SPEED_100@GOTPCREL(%rip), %rsi
	cmpl	%ebx, (%rsi)
	jne	LBB0_4
## %bb.3:
	orl	%edx, %eax
	jmp	LBB0_6
LBB0_4:
	movq	_SPEED_1000@GOTPCREL(%rip), %rdx
	cmpl	%ebx, (%rdx)
	jne	LBB0_7
## %bb.5:
	orl	%ecx, %eax
LBB0_6:
	movl	%eax, -44(%rbp)
LBB0_7:
	testl	%r14d, %r14d
	js	LBB0_8
## %bb.9:
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	notl	%ecx
	andl	-44(%rbp), %ecx
	movl	%ecx, -44(%rbp)
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rdx
	cmpl	%r14d, (%rdx)
	jne	LBB0_11
## %bb.10:
	orl	%eax, %ecx
	movl	%ecx, -44(%rbp)
	jmp	LBB0_11
LBB0_8:
	movl	-44(%rbp), %ecx
LBB0_11:
	movq	_BMCR_SPEED1000@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_13
## %bb.12:
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -44(%rbp)
LBB0_13:
	movl	(%r12), %esi
	movl	(%r13), %edx
	movq	%r15, %rdi
	callq	_t3_mdio_write
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_DEVAD_NONE,4,2            ## @MDIO_DEVAD_NONE
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_set_phy_speed_duplex        ; -- Begin function t3_set_phy_speed_duplex
	.p2align	2
_t3_set_phy_speed_duplex:               ; @t3_set_phy_speed_duplex
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _MDIO_DEVAD_NONE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MDIO_DEVAD_NONE@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x23, _MII_BMCR@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MII_BMCR@GOTPAGEOFF]
	ldr	w2, [x23]
	add	x3, sp, #12
	bl	_t3_mdio_read
	cbnz	w0, LBB0_14
; %bb.1:
Lloh4:
	adrp	x9, _BMCR_SPEED1000@GOTPAGE
Lloh5:
	ldr	x9, [x9, _BMCR_SPEED1000@GOTPAGEOFF]
Lloh6:
	adrp	x8, _BMCR_ANENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BMCR_ANENABLE@GOTPAGEOFF]
	tbnz	w21, #31, LBB0_7
; %bb.2:
Lloh8:
	adrp	x10, _BMCR_SPEED100@GOTPAGE
Lloh9:
	ldr	x10, [x10, _BMCR_SPEED100@GOTPAGEOFF]
Lloh10:
	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]
Lloh11:
	adrp	x13, _SPEED_100@GOTPAGE
Lloh12:
	ldr	x13, [x13, _SPEED_100@GOTPAGEOFF]
Lloh13:
	ldr	w13, [x13]
	cmp	w13, w21
	b.ne	LBB0_4
; %bb.3:
	orr	w10, w11, w12
	b	LBB0_6
LBB0_4:
Lloh14:
	adrp	x12, _SPEED_1000@GOTPAGE
Lloh15:
	ldr	x12, [x12, _SPEED_1000@GOTPAGEOFF]
Lloh16:
	ldr	w12, [x12]
	cmp	w12, w21
	b.ne	LBB0_7
; %bb.5:
	orr	w10, w11, w10
LBB0_6:
	str	w10, [sp, #12]
LBB0_7:
	tbnz	w20, #31, LBB0_10
; %bb.8:
Lloh17:
	adrp	x10, _BMCR_FULLDPLX@GOTPAGE
Lloh18:
	ldr	x10, [x10, _BMCR_FULLDPLX@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	ldr	w11, [x8]
	orr	w11, w11, w10
	ldr	w12, [sp, #12]
	bic	w3, w12, w11
	str	w3, [sp, #12]
Lloh20:
	adrp	x11, _DUPLEX_FULL@GOTPAGE
Lloh21:
	ldr	x11, [x11, _DUPLEX_FULL@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	cmp	w11, w20
	b.ne	LBB0_11
; %bb.9:
	orr	w3, w3, w10
	str	w3, [sp, #12]
	b	LBB0_11
LBB0_10:
	ldr	w3, [sp, #12]
LBB0_11:
	ldr	w9, [x9]
	tst	w9, w3
	b.eq	LBB0_13
; %bb.12:
	ldr	w8, [x8]
	orr	w3, w8, w3
	str	w3, [sp, #12]
LBB0_13:
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_t3_mdio_write
LBB0_14:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_DEVAD_NONE,4,2            ; @MDIO_DEVAD_NONE
	.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
.subsections_via_symbols
