	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm7xxx_28nm_config_init
_bcm7xxx_28nm_config_init:              ## @bcm7xxx_28nm_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	16(%rdi), %edi
	callq	_PHY_BRCM_7XXX_REV
	movl	%eax, %ebx
	movl	16(%r14), %edi
	callq	_PHY_BRCM_7XXX_PATCH
	movl	%eax, %r15d
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	movq	8(%r14), %rax
	movl	(%rax), %ebx
	notl	%ebx
	andl	(%r14), %ebx
LBB0_2:
	movq	%r14, %rdi
	callq	_phydev_name
	movq	8(%r14), %rcx
	movl	4(%rcx), %edx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	callq	_pr_info_once
	movq	_MII_BMSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_phy_read
	cmpl	$175, %ebx
	jle	LBB0_3
## %bb.7:
	cmpl	$223, %ebx
	jg	LBB0_11
## %bb.8:
	cmpl	$176, %ebx
	je	LBB0_6
## %bb.9:
	cmpl	$208, %ebx
	jne	LBB0_16
## %bb.10:
	movq	%r14, %rdi
	callq	_bcm7xxx_28nm_d0_afe_config_init
	testl	%eax, %eax
	jne	LBB0_19
	jmp	LBB0_16
LBB0_3:
	cmpl	$1, %ebx
	je	LBB0_14
## %bb.4:
	cmpl	$16, %ebx
	je	LBB0_13
## %bb.5:
	cmpl	$160, %ebx
	jne	LBB0_16
LBB0_6:
	movq	%r14, %rdi
	callq	_bcm_phy_28nm_a0b0_afe_config_init
	testl	%eax, %eax
	jne	LBB0_19
	jmp	LBB0_16
LBB0_11:
	cmpl	$224, %ebx
	je	LBB0_13
## %bb.12:
	cmpl	$240, %ebx
	jne	LBB0_16
LBB0_13:
	movq	%r14, %rdi
	callq	_bcm7xxx_28nm_e0_plus_afe_config_init
	testl	%eax, %eax
	jne	LBB0_19
	jmp	LBB0_16
LBB0_14:
	movq	%r14, %rdi
	callq	_bcm7xxx_28nm_a0_patch_afe_config_init
	testl	%eax, %eax
	jne	LBB0_19
LBB0_16:
	leaq	-28(%rbp), %rsi
	movq	%r14, %rdi
	callq	_bcm_phy_downshift_get
	testl	%eax, %eax
	jne	LBB0_19
## %bb.17:
	movl	-28(%rbp), %eax
	movq	_DOWNSHIFT_DEV_DISABLE@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpl	(%rcx), %eax
	sete	%sil
	movq	%r14, %rdi
	callq	_bcm_phy_set_eee
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_bcm_phy_enable_apd
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s PHY revision: 0x%02x, patch: %d\n"

	.comm	_MII_BMSR,4,2                   ## @MII_BMSR
	.comm	_DOWNSHIFT_DEV_DISABLE,4,2      ## @DOWNSHIFT_DEV_DISABLE
	.no_dead_strip	_bcm7xxx_28nm_config_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm7xxx_28nm_config_init
_bcm7xxx_28nm_config_init:              ; @bcm7xxx_28nm_config_init
	.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	x19, x0
	ldr	w0, [x0, #16]
	bl	_PHY_BRCM_7XXX_REV
	mov	x20, x0
	ldr	w0, [x19, #16]
	bl	_PHY_BRCM_7XXX_PATCH
	mov	x21, x0
	cbnz	w20, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	ldr	x9, [x19, #8]
	ldr	w9, [x9]
	bic	w20, w8, w9
LBB0_2:
	mov	x0, x19
	bl	_phydev_name
	mov	x1, x0
	ldr	x8, [x19, #8]
	ldr	w2, [x8, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x20
	mov	x4, x21
	bl	_pr_info_once
Lloh2:
	adrp	x8, _MII_BMSR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MII_BMSR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	cmp	w20, #175
	b.le	LBB0_7
; %bb.3:
	cmp	w20, #223
	b.gt	LBB0_11
; %bb.4:
	cmp	w20, #176
	b.eq	LBB0_10
; %bb.5:
	cmp	w20, #208
	b.ne	LBB0_15
; %bb.6:
	mov	x0, x19
	bl	_bcm7xxx_28nm_d0_afe_config_init
	cbnz	w0, LBB0_18
	b	LBB0_15
LBB0_7:
	cmp	w20, #1
	b.eq	LBB0_14
; %bb.8:
	cmp	w20, #16
	b.eq	LBB0_13
; %bb.9:
	cmp	w20, #160
	b.ne	LBB0_15
LBB0_10:
	mov	x0, x19
	bl	_bcm_phy_28nm_a0b0_afe_config_init
	cbnz	w0, LBB0_18
	b	LBB0_15
LBB0_11:
	cmp	w20, #224
	b.eq	LBB0_13
; %bb.12:
	cmp	w20, #240
	b.ne	LBB0_15
LBB0_13:
	mov	x0, x19
	bl	_bcm7xxx_28nm_e0_plus_afe_config_init
	cbnz	w0, LBB0_18
	b	LBB0_15
LBB0_14:
	mov	x0, x19
	bl	_bcm7xxx_28nm_a0_patch_afe_config_init
	cbnz	w0, LBB0_18
LBB0_15:
	add	x1, sp, #12
	mov	x0, x19
	bl	_bcm_phy_downshift_get
	cbnz	w0, LBB0_18
; %bb.16:
	ldr	w8, [sp, #12]
Lloh5:
	adrp	x9, _DOWNSHIFT_DEV_DISABLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DOWNSHIFT_DEV_DISABLE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w1, eq
	mov	x0, x19
	bl	_bcm_phy_set_eee
	cbnz	w0, LBB0_18
; %bb.17:
	mov	x0, x19
	mov	w1, #1
	bl	_bcm_phy_enable_apd
LBB0_18:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s PHY revision: 0x%02x, patch: %d\n"

	.comm	_MII_BMSR,4,2                   ; @MII_BMSR
	.comm	_DOWNSHIFT_DEV_DISABLE,4,2      ; @DOWNSHIFT_DEV_DISABLE
	.no_dead_strip	_bcm7xxx_28nm_config_init
.subsections_via_symbols
