	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm5400_init
_bcm5400_init:                          ## @bcm5400_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_BCM5400_AUXCONTROL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_sungem_phy_read
	movq	_MII_BCM5400_AUXCONTROL_PWR10BASET@GOTPCREL(%rip), %r15
	orl	(%r15), %eax
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_sungem_phy_write
	movq	_MII_BCM5400_GB_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_sungem_phy_read
	movq	_MII_BCM5400_GB_CONTROL_FULLDUPLEXCAP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_sungem_phy_write
	movl	$100, %edi
	callq	_udelay
	movq	%rbx, %rdi
	movl	$31, %esi
	callq	_reset_one_mii_phy
	movq	_MII_BCM5201_MULTIPHY@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	$31, %esi
	callq	___sungem_phy_read
	movq	_MII_BCM5201_MULTIPHY_SERIALMODE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	$31, %esi
	movl	%eax, %ecx
	callq	___sungem_phy_write
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_sungem_phy_read
	movl	(%r15), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_sungem_phy_write
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BCM5400_AUXCONTROL,4,2     ## @MII_BCM5400_AUXCONTROL
	.comm	_MII_BCM5400_AUXCONTROL_PWR10BASET,4,2 ## @MII_BCM5400_AUXCONTROL_PWR10BASET
	.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	_bcm5400_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm5400_init
_bcm5400_init:                          ; @bcm5400_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_BCM5400_AUXCONTROL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MII_BCM5400_AUXCONTROL@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_sungem_phy_read
Lloh2:
	adrp	x21, _MII_BCM5400_AUXCONTROL_PWR10BASET@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MII_BCM5400_AUXCONTROL_PWR10BASET@GOTPAGEOFF]
	ldr	w8, [x21]
	orr	w2, w8, w0
	ldr	w1, [x20]
	mov	x0, x19
	bl	_sungem_phy_write
Lloh4:
	adrp	x22, _MII_BCM5400_GB_CONTROL@GOTPAGE
Lloh5:
	ldr	x22, [x22, _MII_BCM5400_GB_CONTROL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_sungem_phy_read
Lloh6:
	adrp	x8, _MII_BCM5400_GB_CONTROL_FULLDUPLEXCAP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MII_BCM5400_GB_CONTROL_FULLDUPLEXCAP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w1, [x22]
	mov	x0, x19
	bl	_sungem_phy_write
	mov	w0, #100
	bl	_udelay
	mov	x0, x19
	mov	w1, #31
	bl	_reset_one_mii_phy
Lloh9:
	adrp	x22, _MII_BCM5201_MULTIPHY@GOTPAGE
Lloh10:
	ldr	x22, [x22, _MII_BCM5201_MULTIPHY@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #31
	bl	___sungem_phy_read
Lloh11:
	adrp	x8, _MII_BCM5201_MULTIPHY_SERIALMODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MII_BCM5201_MULTIPHY_SERIALMODE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w3, w8, w0
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #31
	bl	___sungem_phy_write
	ldr	w1, [x20]
	mov	x0, x19
	bl	_sungem_phy_read
	ldr	w8, [x21]
	bic	w2, w0, w8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_sungem_phy_write
	mov	w0, #0
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BCM5400_AUXCONTROL,4,2     ; @MII_BCM5400_AUXCONTROL
	.comm	_MII_BCM5400_AUXCONTROL_PWR10BASET,4,2 ; @MII_BCM5400_AUXCONTROL_PWR10BASET
	.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	_bcm5400_init
.subsections_via_symbols
