	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm7xxx_config_init
_bcm7xxx_config_init:                   ## @bcm7xxx_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, %rbx
	movq	_MII_BCM7XXX_AUX_MODE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_MII_BCM7XXX_64CLK_MDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_phy_write
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	movq	_MII_BCM7XXX_TEST@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_MII_BCM7XXX_SHD_MODE_2@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_phy_set_clr_bits
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	_MII_BCM7XXX_100TX_DISC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$3840, %edx                     ## imm = 0xF00
	callq	_phy_write
	movl	$10, %edi
	callq	_udelay
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$3072, %edx                     ## imm = 0xC00
	callq	_phy_write
	movq	_MII_BCM7XXX_100TX_FALSE_CAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$30037, %edx                    ## imm = 0x7555
	callq	_phy_write
	movl	(%r14), %esi
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_phy_set_clr_bits
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BCM7XXX_AUX_MODE,4,2       ## @MII_BCM7XXX_AUX_MODE
	.comm	_MII_BCM7XXX_64CLK_MDIO,4,2     ## @MII_BCM7XXX_64CLK_MDIO
	.comm	_MII_BCM7XXX_TEST,4,2           ## @MII_BCM7XXX_TEST
	.comm	_MII_BCM7XXX_SHD_MODE_2,4,2     ## @MII_BCM7XXX_SHD_MODE_2
	.comm	_MII_BCM7XXX_100TX_DISC,4,2     ## @MII_BCM7XXX_100TX_DISC
	.comm	_MII_BCM7XXX_100TX_FALSE_CAR,4,2 ## @MII_BCM7XXX_100TX_FALSE_CAR
	.no_dead_strip	_bcm7xxx_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_config_init
_bcm7xxx_config_init:                   ; @bcm7xxx_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
Lloh0:
	adrp	x20, _MII_BCM7XXX_AUX_MODE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MII_BCM7XXX_AUX_MODE@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _MII_BCM7XXX_64CLK_MDIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MII_BCM7XXX_64CLK_MDIO@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_phy_write
	ldr	w1, [x20]
	mov	x0, x19
	bl	_phy_read
Lloh5:
	adrp	x20, _MII_BCM7XXX_TEST@GOTPAGE
Lloh6:
	ldr	x20, [x20, _MII_BCM7XXX_TEST@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh7:
	adrp	x21, _MII_BCM7XXX_SHD_MODE_2@GOTPAGE
Lloh8:
	ldr	x21, [x21, _MII_BCM7XXX_SHD_MODE_2@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	x3, x2
	bl	_phy_set_clr_bits
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh9:
	adrp	x22, _MII_BCM7XXX_100TX_DISC@GOTPAGE
Lloh10:
	ldr	x22, [x22, _MII_BCM7XXX_100TX_DISC@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #3840
	bl	_phy_write
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #3072
	bl	_phy_write
Lloh11:
	adrp	x8, _MII_BCM7XXX_100TX_FALSE_CAR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MII_BCM7XXX_100TX_FALSE_CAR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #30037
	bl	_phy_write
	ldr	w1, [x20]
	ldr	w3, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_phy_set_clr_bits
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_2:
	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 AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BCM7XXX_AUX_MODE,4,2       ; @MII_BCM7XXX_AUX_MODE
	.comm	_MII_BCM7XXX_64CLK_MDIO,4,2     ; @MII_BCM7XXX_64CLK_MDIO
	.comm	_MII_BCM7XXX_TEST,4,2           ; @MII_BCM7XXX_TEST
	.comm	_MII_BCM7XXX_SHD_MODE_2,4,2     ; @MII_BCM7XXX_SHD_MODE_2
	.comm	_MII_BCM7XXX_100TX_DISC,4,2     ; @MII_BCM7XXX_100TX_DISC
	.comm	_MII_BCM7XXX_100TX_FALSE_CAR,4,2 ; @MII_BCM7XXX_100TX_FALSE_CAR
	.no_dead_strip	_bcm7xxx_config_init
.subsections_via_symbols
