	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wait_sata_command_not_busy
_wait_sata_command_not_busy:            ## @wait_sata_command_not_busy
	.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	_MAX_NOT_BUSY_LOOPS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movslq	%edi, %r14
	movq	_sata_regs_base@GOTPCREL(%rip), %r15
	movq	_SATA_COMMAND_OFF@GOTPCREL(%rip), %r12
	movq	_SATA_CMD_BUSY_BIT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%r14,8), %rax
	movslq	(%r12), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	(%r13), %ecx
	btl	%ecx, %eax
	jae	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$100, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_1
## %bb.3:
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_4:
	movl	$1, %r14d
	testl	%ebx, %ebx
	jne	LBB0_6
LBB0_5:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_NOT_BUSY_LOOPS,4,2         ## @MAX_NOT_BUSY_LOOPS
	.comm	_sata_regs_base,8,3             ## @sata_regs_base
	.comm	_SATA_COMMAND_OFF,4,2           ## @SATA_COMMAND_OFF
	.comm	_SATA_CMD_BUSY_BIT,4,2          ## @SATA_CMD_BUSY_BIT
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"wait_sata_command_not_busy() Timed out of wait for SATA command to finish"

	.no_dead_strip	_wait_sata_command_not_busy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wait_sata_command_not_busy
_wait_sata_command_not_busy:            ; @wait_sata_command_not_busy
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _MAX_NOT_BUSY_LOOPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_NOT_BUSY_LOOPS@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	sxtw	x19, w0
Lloh3:
	adrp	x21, _sata_regs_base@GOTPAGE
Lloh4:
	ldr	x21, [x21, _sata_regs_base@GOTPAGEOFF]
Lloh5:
	adrp	x22, _SATA_COMMAND_OFF@GOTPAGE
Lloh6:
	ldr	x22, [x22, _SATA_COMMAND_OFF@GOTPAGEOFF]
Lloh7:
	adrp	x23, _SATA_CMD_BUSY_BIT@GOTPAGE
Lloh8:
	ldr	x23, [x23, _SATA_CMD_BUSY_BIT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, x19, lsl #3]
	ldrsw	x9, [x22]
	ldr	w8, [x8, x9, lsl #2]
	ldr	w9, [x23]
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #100
	bl	_udelay
	subs	w20, w20, #1
	b.ne	LBB0_1
; %bb.3:
	mov	w19, #0
	b	LBB0_5
LBB0_4:
	mov	w19, #1
	cbnz	w20, LBB0_6
LBB0_5:
Lloh9:
	adrp	x0, l_str@PAGE
Lloh10:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_NOT_BUSY_LOOPS,4,2         ; @MAX_NOT_BUSY_LOOPS
	.comm	_sata_regs_base,8,3             ; @sata_regs_base
	.comm	_SATA_COMMAND_OFF,4,2           ; @SATA_COMMAND_OFF
	.comm	_SATA_CMD_BUSY_BIT,4,2          ; @SATA_CMD_BUSY_BIT
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"wait_sata_command_not_busy() Timed out of wait for SATA command to finish"

	.no_dead_strip	_wait_sata_command_not_busy
.subsections_via_symbols
