	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm5401_init
_bcm5401_init:                          ## @bcm5401_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, %rbx
	movq	_MII_PHYSID2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sungem_phy_read
	andl	$15, %eax
	cmpl	$3, %eax
	je	LBB0_2
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	movl	$24, %esi
	movl	$3104, %edx                     ## imm = 0xC20
	callq	_sungem_phy_write
	movq	%rbx, %rdi
	movl	$23, %esi
	movl	$18, %edx
	callq	_sungem_phy_write
	movq	%rbx, %rdi
	movl	$21, %esi
	movl	$6148, %edx                     ## imm = 0x1804
	callq	_sungem_phy_write
	movq	%rbx, %rdi
	movl	$23, %esi
	movl	$19, %edx
	callq	_sungem_phy_write
	movq	%rbx, %rdi
	movl	$21, %esi
	movl	$4612, %edx                     ## imm = 0x1204
	callq	_sungem_phy_write
	movq	%rbx, %rdi
	movl	$23, %esi
	movl	$32774, %edx                    ## imm = 0x8006
	callq	_sungem_phy_write
	movq	%rbx, %rdi
	movl	$21, %esi
	movl	$306, %edx                      ## imm = 0x132
	callq	_sungem_phy_write
	movq	%rbx, %rdi
	movl	$23, %esi
	movl	$32774, %edx                    ## imm = 0x8006
	callq	_sungem_phy_write
	movq	%rbx, %rdi
	movl	$21, %esi
	movl	$562, %edx                      ## imm = 0x232
	callq	_sungem_phy_write
	movq	%rbx, %rdi
	movl	$23, %esi
	movl	$8223, %edx                     ## imm = 0x201F
	callq	_sungem_phy_write
	movq	%rbx, %rdi
	movl	$21, %esi
	movl	$2592, %edx                     ## imm = 0xA20
	callq	_sungem_phy_write
LBB0_3:
	movq	_MII_BCM5400_GB_CONTROL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_sungem_phy_read
	movq	_MII_BCM5400_GB_CONTROL_FULLDUPLEXCAP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_sungem_phy_write
	movl	$10, %edi
	callq	_udelay
	movq	%rbx, %rdi
	movl	$31, %esi
	callq	_reset_one_mii_phy
	movq	_MII_BCM5201_MULTIPHY@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	$31, %esi
	callq	___sungem_phy_read
	movq	_MII_BCM5201_MULTIPHY_SERIALMODE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	$31, %esi
	movl	%eax, %ecx
	callq	___sungem_phy_write
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_PHYSID2,4,2                ## @MII_PHYSID2
	.comm	_MII_BCM5400_GB_CONTROL,4,2     ## @MII_BCM5400_GB_CONTROL
	.comm	_MII_BCM5400_GB_CONTROL_FULLDUPLEXCAP,4,2 ## @MII_BCM5400_GB_CONTROL_FULLDUPLEXCAP
	.comm	_MII_BCM5201_MULTIPHY,4,2       ## @MII_BCM5201_MULTIPHY
	.comm	_MII_BCM5201_MULTIPHY_SERIALMODE,4,2 ## @MII_BCM5201_MULTIPHY_SERIALMODE
	.no_dead_strip	_bcm5401_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm5401_init
_bcm5401_init:                          ; @bcm5401_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
Lloh0:
	adrp	x8, _MII_PHYSID2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_PHYSID2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_sungem_phy_read
	and	w8, w0, #0xf
	cmp	w8, #3
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #24
	mov	w2, #3104
	bl	_sungem_phy_write
	mov	x0, x19
	mov	w1, #23
	mov	w2, #18
	bl	_sungem_phy_write
	mov	x0, x19
	mov	w1, #21
	mov	w2, #6148
	bl	_sungem_phy_write
	mov	x0, x19
	mov	w1, #23
	mov	w2, #19
	bl	_sungem_phy_write
	mov	x0, x19
	mov	w1, #21
	mov	w2, #4612
	bl	_sungem_phy_write
	mov	x0, x19
	mov	w1, #23
	mov	w2, #32774
	bl	_sungem_phy_write
	mov	x0, x19
	mov	w1, #21
	mov	w2, #306
	bl	_sungem_phy_write
	mov	x0, x19
	mov	w1, #23
	mov	w2, #32774
	bl	_sungem_phy_write
	mov	x0, x19
	mov	w1, #21
	mov	w2, #562
	bl	_sungem_phy_write
	mov	x0, x19
	mov	w1, #23
	mov	w2, #8223
	bl	_sungem_phy_write
	mov	x0, x19
	mov	w1, #21
	mov	w2, #2592
	bl	_sungem_phy_write
LBB0_2:
Lloh3:
	adrp	x20, _MII_BCM5400_GB_CONTROL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _MII_BCM5400_GB_CONTROL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_sungem_phy_read
Lloh5:
	adrp	x8, _MII_BCM5400_GB_CONTROL_FULLDUPLEXCAP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MII_BCM5400_GB_CONTROL_FULLDUPLEXCAP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w1, [x20]
	mov	x0, x19
	bl	_sungem_phy_write
	mov	w0, #10
	bl	_udelay
	mov	x0, x19
	mov	w1, #31
	bl	_reset_one_mii_phy
Lloh8:
	adrp	x20, _MII_BCM5201_MULTIPHY@GOTPAGE
Lloh9:
	ldr	x20, [x20, _MII_BCM5201_MULTIPHY@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #31
	bl	___sungem_phy_read
Lloh10:
	adrp	x8, _MII_BCM5201_MULTIPHY_SERIALMODE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MII_BCM5201_MULTIPHY_SERIALMODE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w3, w8, w0
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #31
	bl	___sungem_phy_write
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_PHYSID2,4,2                ; @MII_PHYSID2
	.comm	_MII_BCM5400_GB_CONTROL,4,2     ; @MII_BCM5400_GB_CONTROL
	.comm	_MII_BCM5400_GB_CONTROL_FULLDUPLEXCAP,4,2 ; @MII_BCM5400_GB_CONTROL_FULLDUPLEXCAP
	.comm	_MII_BCM5201_MULTIPHY,4,2       ; @MII_BCM5201_MULTIPHY
	.comm	_MII_BCM5201_MULTIPHY_SERIALMODE,4,2 ; @MII_BCM5201_MULTIPHY_SERIALMODE
	.no_dead_strip	_bcm5401_init
.subsections_via_symbols
