	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sata_oxnas_clear_reg_access_error
_sata_oxnas_clear_reg_access_error:     ## @sata_oxnas_clear_reg_access_error
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	movq	_INT_STATUS@GOTPCREL(%rip), %r12
	movslq	(%r12), %rax
	leaq	(%r15,%rax,4), %rdi
	callq	_ioread32
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTK
	movq	_INT_REG_ACCESS_ERR@GOTPCREL(%rip), %r13
	testl	%ebx, (%r13)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTK
	movl	(%r13), %edi
	movslq	(%r12), %rax
	leaq	(%r15,%rax,4), %rsi
	callq	_iowrite32
LBB0_2:
	movslq	(%r12), %rax
	leaq	(%r15,%rax,4), %rdi
	callq	_ioread32
	testl	%eax, (%r13)
	je	LBB0_3
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPRINTK                        ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_STATUS,4,2                 ## @INT_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ENTER\n"

	.comm	_INT_REG_ACCESS_ERR,4,2         ## @INT_REG_ACCESS_ERR
L_.str.1:                               ## @.str.1
	.asciz	"clearing register access error on port %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"register access error didn't clear\n"

	.no_dead_strip	_sata_oxnas_clear_reg_access_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sata_oxnas_clear_reg_access_error
_sata_oxnas_clear_reg_access_error:     ; @sata_oxnas_clear_reg_access_error
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
Lloh0:
	adrp	x22, _INT_STATUS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _INT_STATUS@GOTPAGEOFF]
	ldrsw	x8, [x22]
	add	x0, x21, x8, lsl #2
	bl	_ioread32
	mov	x20, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTK
Lloh4:
	adrp	x23, _INT_REG_ACCESS_ERR@GOTPAGE
Lloh5:
	ldr	x23, [x23, _INT_REG_ACCESS_ERR@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x19]
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINTK
	ldr	w0, [x23]
	ldrsw	x8, [x22]
	add	x1, x21, x8, lsl #2
	bl	_iowrite32
LBB0_2:
	ldrsw	x8, [x22]
	add	x0, x21, x8, lsl #2
	bl	_ioread32
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_DPRINTK
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_STATUS,4,2                 ; @INT_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ENTER\n"

	.comm	_INT_REG_ACCESS_ERR,4,2         ; @INT_REG_ACCESS_ERR
l_.str.1:                               ; @.str.1
	.asciz	"clearing register access error on port %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"register access error didn't clear\n"

	.no_dead_strip	_sata_oxnas_clear_reg_access_error
.subsections_via_symbols
