	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm7xxx_28nm_ephy_config_init
_bcm7xxx_28nm_ephy_config_init:         ## @bcm7xxx_28nm_ephy_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	(%rax), %ebx
	notl	%ebx
	andl	(%rdi), %ebx
	callq	_phydev_name
	movq	8(%r14), %rcx
	movl	4(%rcx), %edx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%ebx, %ecx
	callq	_pr_info_once
	movq	_MII_BMSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_phy_read
	cmpl	$1, %ebx
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_bcm7xxx_28nm_ephy_01_afe_config_init
	testl	%eax, %eax
	jne	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	callq	_bcm7xxx_28nm_ephy_eee_enable
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bcm7xxx_28nm_ephy_apd_enable   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s PHY revision: 0x%02x\n"

	.comm	_MII_BMSR,4,2                   ## @MII_BMSR
	.no_dead_strip	_bcm7xxx_28nm_ephy_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_ephy_config_init
_bcm7xxx_28nm_ephy_config_init:         ; @bcm7xxx_28nm_ephy_config_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	ldr	x9, [x0, #8]
	ldr	w9, [x9]
	bic	w20, w8, w9
	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
	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, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_bcm7xxx_28nm_ephy_01_afe_config_init
	cbnz	w0, LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_bcm7xxx_28nm_ephy_eee_enable
	cbz	w0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bcm7xxx_28nm_ephy_apd_enable
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s PHY revision: 0x%02x\n"

	.comm	_MII_BMSR,4,2                   ; @MII_BMSR
	.no_dead_strip	_bcm7xxx_28nm_ephy_config_init
.subsections_via_symbols
