	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm5482_config_init
_bcm5482_config_init:                   ## @bcm5482_config_init
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_bcm54xx_config_init
	movl	%eax, %r15d
	movq	_PHY_BCM_FLAGS_MODE_1000BX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_7
## %bb.1:
	movq	_BCM5482_SHD_SSD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_bcm_phy_read_shadow
	movq	_BCM5482_SHD_SSD_LEDM@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %esi
	movq	_BCM5482_SHD_SSD_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_bcm_phy_write_shadow
	movq	_BCM5482_SSD_SGMII_SLAVE@GOTPCREL(%rip), %rax
	movq	_MII_BCM54XX_EXP_SEL_SSD@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	orl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_bcm_phy_read_exp
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movq	_BCM5482_SSD_SGMII_SLAVE_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%r15d, %edx
	movq	_BCM5482_SSD_SGMII_SLAVE_AD@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_bcm_phy_write_exp
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_BCM5482_SSD_1000BX_CTL@GOTPCREL(%rip), %rax
	movl	(%r12), %ebx
	orl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_bcm_phy_read_exp
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:
	movq	_BCM5482_SSD_1000BX_CTL_PWRDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r15d
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_bcm_phy_write_exp
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movq	_BCM5482_SHD_MODE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_bcm_phy_read_shadow
	movl	(%rbx), %esi
	movq	_BCM5482_SHD_MODE_1000BX@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_bcm_phy_write_shadow
	movq	_BCM5482_SHD_LEDS1@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_BCM_LED_SRC_ACTIVITYLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BCM5482_SHD_LEDS1_LED1
	movl	%eax, %ebx
	movq	_BCM_LED_SRC_LINKSPD2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BCM5482_SHD_LEDS1_LED3
	orl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_bcm_phy_write_shadow
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	jmp	LBB0_7
LBB0_3:
	movl	%eax, %r15d
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_BCM_FLAGS_MODE_1000BX,4,2  ## @PHY_BCM_FLAGS_MODE_1000BX
	.comm	_BCM5482_SHD_SSD,4,2            ## @BCM5482_SHD_SSD
	.comm	_BCM5482_SHD_SSD_LEDM,4,2       ## @BCM5482_SHD_SSD_LEDM
	.comm	_BCM5482_SHD_SSD_EN,4,2         ## @BCM5482_SHD_SSD_EN
	.comm	_BCM5482_SSD_SGMII_SLAVE,4,2    ## @BCM5482_SSD_SGMII_SLAVE
	.comm	_MII_BCM54XX_EXP_SEL_SSD,4,2    ## @MII_BCM54XX_EXP_SEL_SSD
	.comm	_BCM5482_SSD_SGMII_SLAVE_EN,4,2 ## @BCM5482_SSD_SGMII_SLAVE_EN
	.comm	_BCM5482_SSD_SGMII_SLAVE_AD,4,2 ## @BCM5482_SSD_SGMII_SLAVE_AD
	.comm	_BCM5482_SSD_1000BX_CTL,4,2     ## @BCM5482_SSD_1000BX_CTL
	.comm	_BCM5482_SSD_1000BX_CTL_PWRDOWN,4,2 ## @BCM5482_SSD_1000BX_CTL_PWRDOWN
	.comm	_BCM5482_SHD_MODE,4,2           ## @BCM5482_SHD_MODE
	.comm	_BCM5482_SHD_MODE_1000BX,4,2    ## @BCM5482_SHD_MODE_1000BX
	.comm	_BCM5482_SHD_LEDS1,4,2          ## @BCM5482_SHD_LEDS1
	.comm	_BCM_LED_SRC_ACTIVITYLED,4,2    ## @BCM_LED_SRC_ACTIVITYLED
	.comm	_BCM_LED_SRC_LINKSPD2,4,2       ## @BCM_LED_SRC_LINKSPD2
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.no_dead_strip	_bcm5482_config_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm5482_config_init
_bcm5482_config_init:                   ; @bcm5482_config_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	bl	_bcm54xx_config_init
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _PHY_BCM_FLAGS_MODE_1000BX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_BCM_FLAGS_MODE_1000BX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
Lloh3:
	adrp	x20, _BCM5482_SHD_SSD@GOTPAGE
Lloh4:
	ldr	x20, [x20, _BCM5482_SHD_SSD@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_bcm_phy_read_shadow
	ldr	w1, [x20]
Lloh5:
	adrp	x8, _BCM5482_SHD_SSD_LEDM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BCM5482_SHD_SSD_LEDM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh8:
	adrp	x9, _BCM5482_SHD_SSD_EN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BCM5482_SHD_SSD_EN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_bcm_phy_write_shadow
Lloh11:
	adrp	x8, _BCM5482_SSD_SGMII_SLAVE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BCM5482_SSD_SGMII_SLAVE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x22, _MII_BCM54XX_EXP_SEL_SSD@GOTPAGE
Lloh15:
	ldr	x22, [x22, _MII_BCM54XX_EXP_SEL_SSD@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w21, w9, w8
	mov	x0, x19
	mov	x1, x21
	bl	_bcm_phy_read_exp
	mov	x20, x0
	tbnz	w0, #31, LBB0_7
; %bb.2:
Lloh16:
	adrp	x8, _BCM5482_SSD_SGMII_SLAVE_EN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BCM5482_SSD_SGMII_SLAVE_EN@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	orr	w8, w8, w20
Lloh19:
	adrp	x9, _BCM5482_SSD_SGMII_SLAVE_AD@GOTPAGE
Lloh20:
	ldr	x9, [x9, _BCM5482_SSD_SGMII_SLAVE_AD@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	mov	x1, x21
	bl	_bcm_phy_write_exp
	tbnz	w0, #31, LBB0_6
; %bb.3:
Lloh22:
	adrp	x8, _BCM5482_SSD_1000BX_CTL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BCM5482_SSD_1000BX_CTL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w21, w9, w8
	mov	x0, x19
	mov	x1, x21
	bl	_bcm_phy_read_exp
	mov	x20, x0
	tbnz	w0, #31, LBB0_7
; %bb.4:
Lloh25:
	adrp	x8, _BCM5482_SSD_1000BX_CTL_PWRDOWN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BCM5482_SSD_1000BX_CTL_PWRDOWN@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	bic	w2, w20, w8
	mov	x0, x19
	mov	x1, x21
	bl	_bcm_phy_write_exp
	mov	x20, x0
	tbnz	w0, #31, LBB0_7
; %bb.5:
Lloh28:
	adrp	x21, _BCM5482_SHD_MODE@GOTPAGE
Lloh29:
	ldr	x21, [x21, _BCM5482_SHD_MODE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_bcm_phy_read_shadow
	ldr	w1, [x21]
Lloh30:
	adrp	x8, _BCM5482_SHD_MODE_1000BX@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BCM5482_SHD_MODE_1000BX@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	bl	_bcm_phy_write_shadow
Lloh33:
	adrp	x8, _BCM5482_SHD_LEDS1@GOTPAGE
Lloh34:
	ldr	x8, [x8, _BCM5482_SHD_LEDS1@GOTPAGEOFF]
Lloh35:
	ldr	w21, [x8]
Lloh36:
	adrp	x8, _BCM_LED_SRC_ACTIVITYLED@GOTPAGE
Lloh37:
	ldr	x8, [x8, _BCM_LED_SRC_ACTIVITYLED@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_BCM5482_SHD_LEDS1_LED1
	mov	x22, x0
Lloh39:
	adrp	x8, _BCM_LED_SRC_LINKSPD2@GOTPAGE
Lloh40:
	ldr	x8, [x8, _BCM_LED_SRC_LINKSPD2@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	bl	_BCM5482_SHD_LEDS1_LED3
	orr	w2, w0, w22
	mov	x0, x19
	mov	x1, x21
	bl	_bcm_phy_write_shadow
Lloh42:
	adrp	x8, _AUTONEG_DISABLE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	str	w8, [x19, #12]
Lloh45:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh46:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
Lloh48:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh49:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
	b	LBB0_7
LBB0_6:
	mov	x20, x0
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_BCM_FLAGS_MODE_1000BX,4,2  ; @PHY_BCM_FLAGS_MODE_1000BX
	.comm	_BCM5482_SHD_SSD,4,2            ; @BCM5482_SHD_SSD
	.comm	_BCM5482_SHD_SSD_LEDM,4,2       ; @BCM5482_SHD_SSD_LEDM
	.comm	_BCM5482_SHD_SSD_EN,4,2         ; @BCM5482_SHD_SSD_EN
	.comm	_BCM5482_SSD_SGMII_SLAVE,4,2    ; @BCM5482_SSD_SGMII_SLAVE
	.comm	_MII_BCM54XX_EXP_SEL_SSD,4,2    ; @MII_BCM54XX_EXP_SEL_SSD
	.comm	_BCM5482_SSD_SGMII_SLAVE_EN,4,2 ; @BCM5482_SSD_SGMII_SLAVE_EN
	.comm	_BCM5482_SSD_SGMII_SLAVE_AD,4,2 ; @BCM5482_SSD_SGMII_SLAVE_AD
	.comm	_BCM5482_SSD_1000BX_CTL,4,2     ; @BCM5482_SSD_1000BX_CTL
	.comm	_BCM5482_SSD_1000BX_CTL_PWRDOWN,4,2 ; @BCM5482_SSD_1000BX_CTL_PWRDOWN
	.comm	_BCM5482_SHD_MODE,4,2           ; @BCM5482_SHD_MODE
	.comm	_BCM5482_SHD_MODE_1000BX,4,2    ; @BCM5482_SHD_MODE_1000BX
	.comm	_BCM5482_SHD_LEDS1,4,2          ; @BCM5482_SHD_LEDS1
	.comm	_BCM_LED_SRC_ACTIVITYLED,4,2    ; @BCM_LED_SRC_ACTIVITYLED
	.comm	_BCM_LED_SRC_LINKSPD2,4,2       ; @BCM_LED_SRC_LINKSPD2
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.no_dead_strip	_bcm5482_config_init
.subsections_via_symbols
