	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm54xx_phydsp_config
_bcm54xx_phydsp_config:                 ## @bcm54xx_phydsp_config
	.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
	movq	%rdi, %r14
	movq	_MII_BCM54XX_AUXCTL_SHDWSEL_AUXCTL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_MII_BCM54XX_AUXCTL_ACTL_SMDSP_ENA@GOTPCREL(%rip), %rax
	movq	_MII_BCM54XX_AUXCTL_ACTL_TX_6DB@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	orl	(%rax), %edx
	callq	_bcm54xx_auxctl_write
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_10
## %bb.1:
	movq	%r14, %rdi
	callq	_BRCM_PHY_MODEL
	movq	_PHY_ID_BCM50610@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_BRCM_PHY_MODEL
	movq	_PHY_ID_BCM50610M@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_3:
	movq	_MII_BCM54XX_EXP_EXP08@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MII_BCM54XX_EXP_EXP08_RJCT_2MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_bcm_phy_write_exp
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:
	movq	(%r14), %rax
	movq	(%rax), %rax
	cmpq	(%r13), %rax
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_bcm50610_a0_workaround
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
LBB0_6:
	movq	%r14, %rdi
	callq	_BRCM_PHY_MODEL
	movq	_PHY_ID_BCM57780@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:
	movq	_MII_BCM54XX_EXP_EXP75@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_bcm_phy_read_exp
	testl	%eax, %eax
	js	LBB0_9
## %bb.8:
	movq	_MII_BCM54XX_EXP_EXP75_CM_OSC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_bcm_phy_write_exp
	movl	%eax, %ebx
LBB0_9:
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_bcm54xx_auxctl_write
	testl	%ebx, %ebx
	cmovel	%eax, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BCM54XX_AUXCTL_SHDWSEL_AUXCTL,4,2 ## @MII_BCM54XX_AUXCTL_SHDWSEL_AUXCTL
	.comm	_MII_BCM54XX_AUXCTL_ACTL_SMDSP_ENA,4,2 ## @MII_BCM54XX_AUXCTL_ACTL_SMDSP_ENA
	.comm	_MII_BCM54XX_AUXCTL_ACTL_TX_6DB,4,2 ## @MII_BCM54XX_AUXCTL_ACTL_TX_6DB
	.comm	_PHY_ID_BCM50610,8,3            ## @PHY_ID_BCM50610
	.comm	_PHY_ID_BCM50610M,8,3           ## @PHY_ID_BCM50610M
	.comm	_MII_BCM54XX_EXP_EXP08,4,2      ## @MII_BCM54XX_EXP_EXP08
	.comm	_MII_BCM54XX_EXP_EXP08_RJCT_2MHZ,4,2 ## @MII_BCM54XX_EXP_EXP08_RJCT_2MHZ
	.comm	_PHY_ID_BCM57780,8,3            ## @PHY_ID_BCM57780
	.comm	_MII_BCM54XX_EXP_EXP75,4,2      ## @MII_BCM54XX_EXP_EXP75
	.comm	_MII_BCM54XX_EXP_EXP75_CM_OSC,4,2 ## @MII_BCM54XX_EXP_EXP75_CM_OSC
	.no_dead_strip	_bcm54xx_phydsp_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm54xx_phydsp_config
_bcm54xx_phydsp_config:                 ; @bcm54xx_phydsp_config
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x21, _MII_BCM54XX_AUXCTL_SHDWSEL_AUXCTL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MII_BCM54XX_AUXCTL_SHDWSEL_AUXCTL@GOTPAGEOFF]
Lloh2:
	adrp	x8, _MII_BCM54XX_AUXCTL_ACTL_SMDSP_ENA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MII_BCM54XX_AUXCTL_ACTL_SMDSP_ENA@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x22, _MII_BCM54XX_AUXCTL_ACTL_TX_6DB@GOTPAGE
Lloh6:
	ldr	x22, [x22, _MII_BCM54XX_AUXCTL_ACTL_TX_6DB@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w2, w9, w8
	bl	_bcm54xx_auxctl_write
	mov	x20, x0
	tbnz	w0, #31, LBB0_10
; %bb.1:
	mov	x0, x19
	bl	_BRCM_PHY_MODEL
Lloh7:
	adrp	x23, _PHY_ID_BCM50610@GOTPAGE
Lloh8:
	ldr	x23, [x23, _PHY_ID_BCM50610@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_BRCM_PHY_MODEL
Lloh9:
	adrp	x8, _PHY_ID_BCM50610M@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PHY_ID_BCM50610M@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
LBB0_3:
Lloh12:
	adrp	x8, _MII_BCM54XX_EXP_EXP08@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MII_BCM54XX_EXP_EXP08@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _MII_BCM54XX_EXP_EXP08_RJCT_2MHZ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MII_BCM54XX_EXP_EXP08_RJCT_2MHZ@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_bcm_phy_write_exp
	mov	x20, x0
	tbnz	w0, #31, LBB0_9
; %bb.4:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_bcm50610_a0_workaround
	mov	x20, x0
	tbnz	w0, #31, LBB0_9
LBB0_6:
	mov	x0, x19
	bl	_BRCM_PHY_MODEL
Lloh18:
	adrp	x8, _PHY_ID_BCM57780@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PHY_ID_BCM57780@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.7:
Lloh21:
	adrp	x23, _MII_BCM54XX_EXP_EXP75@GOTPAGE
Lloh22:
	ldr	x23, [x23, _MII_BCM54XX_EXP_EXP75@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_bcm_phy_read_exp
	tbnz	w0, #31, LBB0_9
; %bb.8:
Lloh23:
	adrp	x8, _MII_BCM54XX_EXP_EXP75_CM_OSC@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MII_BCM54XX_EXP_EXP75_CM_OSC@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w1, [x23]
	mov	x0, x19
	bl	_bcm_phy_write_exp
	mov	x20, x0
LBB0_9:
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_bcm54xx_auxctl_write
	cmp	w20, #0
	csel	w20, w0, w20, eq
LBB0_10:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BCM54XX_AUXCTL_SHDWSEL_AUXCTL,4,2 ; @MII_BCM54XX_AUXCTL_SHDWSEL_AUXCTL
	.comm	_MII_BCM54XX_AUXCTL_ACTL_SMDSP_ENA,4,2 ; @MII_BCM54XX_AUXCTL_ACTL_SMDSP_ENA
	.comm	_MII_BCM54XX_AUXCTL_ACTL_TX_6DB,4,2 ; @MII_BCM54XX_AUXCTL_ACTL_TX_6DB
	.comm	_PHY_ID_BCM50610,8,3            ; @PHY_ID_BCM50610
	.comm	_PHY_ID_BCM50610M,8,3           ; @PHY_ID_BCM50610M
	.comm	_MII_BCM54XX_EXP_EXP08,4,2      ; @MII_BCM54XX_EXP_EXP08
	.comm	_MII_BCM54XX_EXP_EXP08_RJCT_2MHZ,4,2 ; @MII_BCM54XX_EXP_EXP08_RJCT_2MHZ
	.comm	_PHY_ID_BCM57780,8,3            ; @PHY_ID_BCM57780
	.comm	_MII_BCM54XX_EXP_EXP75,4,2      ; @MII_BCM54XX_EXP_EXP75
	.comm	_MII_BCM54XX_EXP_EXP75_CM_OSC,4,2 ; @MII_BCM54XX_EXP_EXP75_CM_OSC
	.no_dead_strip	_bcm54xx_phydsp_config
.subsections_via_symbols
