	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm5461_enable_fiber
_bcm5461_enable_fiber:                  ## @bcm5461_enable_fiber
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_MII_NCONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64523, %edx                    ## imm = 0xFC0B
	callq	_sungem_phy_write
	testl	%r14d, %r14d
	je	LBB0_1
## %bb.2:
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$480, %edx                      ## imm = 0x1E0
	callq	_sungem_phy_write
	movl	$4416, %edx                     ## imm = 0x1140
	jmp	LBB0_3
LBB0_1:
	movl	$320, %edx                      ## imm = 0x140
LBB0_3:
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sungem_phy_write
	movl	%r14d, (%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_NCONFIG,4,2                ## @MII_NCONFIG
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.no_dead_strip	_bcm5461_enable_fiber
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm5461_enable_fiber
_bcm5461_enable_fiber:                  ; @bcm5461_enable_fiber
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MII_NCONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_NCONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #64523
	bl	_sungem_phy_write
	cbz	w19, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #480
	bl	_sungem_phy_write
	mov	w2, #4416
	b	LBB0_3
LBB0_2:
	mov	w2, #320
LBB0_3:
Lloh6:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sungem_phy_write
	str	w19, [x20]
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_NCONFIG,4,2                ; @MII_NCONFIG
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.no_dead_strip	_bcm5461_enable_fiber
.subsections_via_symbols
