	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wait_not_busy
_wait_not_busy:                         ## @wait_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
	imulq	$1000, %rsi, %rax               ## imm = 0x3E8
	shrq	%rax
	movabsq	$-6640827866535438581, %rcx     ## imm = 0xA3D70A3D70A3D70B
	mulq	%rcx
	movq	%rdx, %rbx
	shrq	$4, %rbx
	movslq	%edi, %r14
	movq	_SATA_ORB2_OFF@GOTPCREL(%rip), %r12
	movq	_SATA_COMMAND_BIT@GOTPCREL(%rip), %r13
	movq	_ATA_STATUS_BSY_BIT@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_sata_regs_base@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rax
	movslq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rax
	movzbl	(%r13), %ecx
	shrq	%cl, %rax
	movl	(%r15), %ecx
	btq	%rcx, %rax
	jae	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$50000, %edi                    ## imm = 0xC350
	callq	_udelay
	decq	%rbx
	jne	LBB0_1
## %bb.4:
	movl	$1, %eax
	jmp	LBB0_5
LBB0_2:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sata_regs_base,8,3             ## @sata_regs_base
	.comm	_SATA_ORB2_OFF,4,2              ## @SATA_ORB2_OFF
	.comm	_SATA_COMMAND_BIT,8,3           ## @SATA_COMMAND_BIT
	.comm	_ATA_STATUS_BSY_BIT,8,3         ## @ATA_STATUS_BSY_BIT
	.no_dead_strip	_wait_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_not_busy
_wait_not_busy:                         ; @wait_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
	mov	w8, #1000
	mul	x8, x1, x8
	lsr	x8, x8, #1
	mov	x9, #55051
	movk	x9, #28835, lsl #16
	movk	x9, #2621, lsl #32
	movk	x9, #41943, lsl #48
	umulh	x8, x8, x9
	lsr	x19, x8, #4
	sxtw	x20, w0
Lloh0:
	adrp	x21, _sata_regs_base@GOTPAGE
Lloh1:
	ldr	x21, [x21, _sata_regs_base@GOTPAGEOFF]
Lloh2:
	adrp	x22, _SATA_ORB2_OFF@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SATA_ORB2_OFF@GOTPAGEOFF]
Lloh4:
	adrp	x23, _SATA_COMMAND_BIT@GOTPAGE
Lloh5:
	ldr	x23, [x23, _SATA_COMMAND_BIT@GOTPAGEOFF]
Lloh6:
	adrp	x24, _ATA_STATUS_BSY_BIT@GOTPAGE
Lloh7:
	ldr	x24, [x24, _ATA_STATUS_BSY_BIT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, x20, lsl #3]
	ldrsw	x9, [x22]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x9, [x23]
	lsr	x8, x8, x9
	ldr	x9, [x24]
	lsr	x8, x8, x9
	tbz	w8, #0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #50000
	bl	_udelay
	subs	x19, x19, #1
	b.ne	LBB0_1
; %bb.3:
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_sata_regs_base,8,3             ; @sata_regs_base
	.comm	_SATA_ORB2_OFF,4,2              ; @SATA_ORB2_OFF
	.comm	_SATA_COMMAND_BIT,8,3           ; @SATA_COMMAND_BIT
	.comm	_ATA_STATUS_BSY_BIT,8,3         ; @ATA_STATUS_BSY_BIT
	.no_dead_strip	_wait_not_busy
.subsections_via_symbols
