	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_cr
_write_cr:                              ## @write_cr
	.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, %eax
	movl	%edi, %ebx
	movq	_SATA_PHY_ASIC_STAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_writel
	xorl	%eax, %eax
	callq	_wait_cr_ack
	movq	_CR_CAP_DATA@GOTPCREL(%rip), %rax
	orw	(%rax), %bx
	movq	_SATA_PHY_ASIC_DATA@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movzwl	%bx, %edi
	callq	_writel
	xorl	%eax, %eax
	callq	_wait_cr_ack
	movq	_CR_WRITE_ENABLE@GOTPCREL(%rip), %rax
	movzwl	(%rax), %edi
	movl	(%r14), %esi
	callq	_writel
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wait_cr_ack                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SATA_PHY_ASIC_STAT,4,2         ## @SATA_PHY_ASIC_STAT
	.comm	_CR_CAP_DATA,2,1                ## @CR_CAP_DATA
	.comm	_SATA_PHY_ASIC_DATA,4,2         ## @SATA_PHY_ASIC_DATA
	.comm	_CR_WRITE_ENABLE,2,1            ## @CR_WRITE_ENABLE
	.no_dead_strip	_write_cr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_cr
_write_cr:                              ; @write_cr
	.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	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x9, _SATA_PHY_ASIC_STAT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SATA_PHY_ASIC_STAT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_writel
	bl	_wait_cr_ack
Lloh3:
	adrp	x8, _CR_CAP_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CR_CAP_DATA@GOTPAGEOFF]
	ldrh	w8, [x8]
	orr	w0, w8, w19
Lloh5:
	adrp	x19, _SATA_PHY_ASIC_DATA@GOTPAGE
Lloh6:
	ldr	x19, [x19, _SATA_PHY_ASIC_DATA@GOTPAGEOFF]
	ldr	w1, [x19]
	bl	_writel
	bl	_wait_cr_ack
Lloh7:
	adrp	x8, _CR_WRITE_ENABLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CR_WRITE_ENABLE@GOTPAGEOFF]
	ldrh	w0, [x8]
	ldr	w1, [x19]
	bl	_writel
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wait_cr_ack
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SATA_PHY_ASIC_STAT,4,2         ; @SATA_PHY_ASIC_STAT
	.comm	_CR_CAP_DATA,2,1                ; @CR_CAP_DATA
	.comm	_SATA_PHY_ASIC_DATA,4,2         ; @SATA_PHY_ASIC_DATA
	.comm	_CR_WRITE_ENABLE,2,1            ; @CR_WRITE_ENABLE
	.no_dead_strip	_write_cr
.subsections_via_symbols
