	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm5421_init
_bcm5421_init:                          ## @bcm5421_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	_MII_PHYSID1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sungem_phy_read
	movl	%eax, %ebx
	shll	$16, %ebx
	movq	_MII_PHYSID2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sungem_phy_read
	orl	%ebx, %eax
	cmpl	$2121952, %eax                  ## imm = 0x2060E0
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	$24, %esi
	movl	$4103, %edx                     ## imm = 0x1007
	callq	_sungem_phy_write
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_sungem_phy_read
	orl	$1024, %eax                     ## imm = 0x400
	movq	%r14, %rdi
	movl	$24, %esi
	movl	%eax, %edx
	callq	_sungem_phy_write
	movq	%r14, %rdi
	movl	$24, %esi
	movl	$7, %edx
	callq	_sungem_phy_write
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_sungem_phy_read
	orl	$2048, %eax                     ## imm = 0x800
	movq	%r14, %rdi
	movl	$24, %esi
	movl	%eax, %edx
	callq	_sungem_phy_write
	movq	%r14, %rdi
	movl	$23, %esi
	movl	$10, %edx
	callq	_sungem_phy_write
	movq	%r14, %rdi
	movl	$21, %esi
	callq	_sungem_phy_read
	orl	$512, %eax                      ## imm = 0x200
	movq	%r14, %rdi
	movl	$21, %esi
	movl	%eax, %edx
	jmp	LBB0_4
LBB0_2:
	andl	$-16, %eax
	cmpl	$2122464, %eax                  ## imm = 0x2062E0
	jne	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	movl	$4, %esi
	movl	$481, %edx                      ## imm = 0x1E1
	callq	_sungem_phy_write
	movq	%r14, %rdi
	movl	$9, %esi
	movl	$768, %edx                      ## imm = 0x300
LBB0_4:
	callq	_sungem_phy_write
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_PHYSID1,4,2                ## @MII_PHYSID1
	.comm	_MII_PHYSID2,4,2                ## @MII_PHYSID2
	.no_dead_strip	_bcm5421_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm5421_init
_bcm5421_init:                          ; @bcm5421_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
	mov	w21, #24800
	movk	w21, #32, lsl #16
Lloh0:
	adrp	x8, _MII_PHYSID1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_PHYSID1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_sungem_phy_read
	mov	x20, x0
Lloh3:
	adrp	x8, _MII_PHYSID2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MII_PHYSID2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sungem_phy_read
	orr	w8, w0, w20, lsl #16
	cmp	w8, w21
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #24
	mov	w2, #4103
	bl	_sungem_phy_write
	mov	x0, x19
	mov	w1, #24
	bl	_sungem_phy_read
	orr	w2, w0, #0x400
	mov	x0, x19
	mov	w1, #24
	bl	_sungem_phy_write
	mov	x0, x19
	mov	w1, #24
	mov	w2, #7
	bl	_sungem_phy_write
	mov	x0, x19
	mov	w1, #24
	bl	_sungem_phy_read
	orr	w2, w0, #0x800
	mov	x0, x19
	mov	w1, #24
	bl	_sungem_phy_write
	mov	x0, x19
	mov	w1, #23
	mov	w2, #10
	bl	_sungem_phy_write
	mov	x0, x19
	mov	w1, #21
	bl	_sungem_phy_read
	orr	w2, w0, #0x200
	mov	x0, x19
	mov	w1, #21
	b	LBB0_4
LBB0_2:
	and	w8, w8, #0xfffffff0
	add	w9, w21, #512
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x19
	mov	w1, #4
	mov	w2, #481
	bl	_sungem_phy_write
	mov	x0, x19
	mov	w1, #9
	mov	w2, #768
LBB0_4:
	bl	_sungem_phy_write
LBB0_5:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_PHYSID1,4,2                ; @MII_PHYSID1
	.comm	_MII_PHYSID2,4,2                ; @MII_PHYSID2
	.no_dead_strip	_bcm5421_init
.subsections_via_symbols
