	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_wait_ready                 ## -- Begin function ata_wait_ready
	.p2align	4, 0x90
_ata_wait_ready:                        ## @ata_wait_ready
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_jiffies@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movq	_ATA_TMOUT_FF_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_ata_deadline
	movq	%rax, %r14
	movq	(%r15), %rax
	xorl	%edi, %edi
	cmpq	%r15, 8(%rax)
	sete	%dil
	callq	_WARN_ON
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	cmovneq	%rbx, %r14
	movq	(%r13), %r13
	movq	%r15, %rdi
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	callq	*%r12
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jle	LBB0_1
LBB0_17:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movl	%eax, %r12d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	_jiffies@GOTPCREL(%rip), %r13
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rdi
	movl	$50, %esi
	callq	_ata_msleep
	movq	(%r13), %r13
	movq	%rbx, %rdi
	callq	*%r14
	movl	%eax, %r12d
	movl	%r15d, %r14d
	testl	%eax, %eax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jg	LBB0_16
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ata_link_online
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_ATA_FLAG_SATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ata_link_offline
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_time_before
	testq	%rax, %rax
	jne	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%r12d, %r12d
	jne	LBB0_17
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r15d
	testl	%r14d, %r14d
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_HZ@GOTPCREL(%rip), %r14
	movslq	(%r14), %rax
	leaq	(%rax,%rax,4), %rsi
	addq	-64(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	%r13, %rdi
	callq	_time_after
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	subq	%r13, %rbx
	movslq	(%r14), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	cmpq	%rcx, %rbx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	_jiffies@GOTPCREL(%rip), %r13
	jbe	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_KERN_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rdx
	movl	%r12d, %ecx
	callq	_ata_link_printk
	movl	$1, %r15d
	jmp	LBB0_15
LBB0_16:
	xorl	%r12d, %r12d
	jmp	LBB0_17
LBB0_9:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_ATA_TMOUT_FF_WAIT,4,2          ## @ATA_TMOUT_FF_WAIT
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ATA_FLAG_SATA,4,2              ## @ATA_FLAG_SATA
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_HZ,4,2                         ## @HZ
	.comm	_KERN_WARNING,4,2               ## @KERN_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"link is slow to respond, please be patient (ready=%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_wait_ready                 ; -- Begin function ata_wait_ready
	.p2align	2
_ata_wait_ready:                        ; @ata_wait_ready
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x27, _jiffies@GOTPAGE
Lloh1:
	ldr	x27, [x27, _jiffies@GOTPAGEOFF]
	ldr	x22, [x27]
Lloh2:
	adrp	x8, _ATA_TMOUT_FF_WAIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ATA_TMOUT_FF_WAIT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_ata_deadline
	mov	x23, x0
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	cmp	x8, x21
	cset	w0, eq
	bl	_WARN_ON
	mov	x0, x23
	mov	x1, x20
	bl	_time_after
	cmp	x0, #0
	csel	x23, x23, x20, eq
	ldr	x26, [x27]
	mov	x0, x21
	blr	x19
	cmp	w0, #0
	b.le	LBB0_3
LBB0_1:
	mov	w25, #0
LBB0_2:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_3:
	mov	x25, x0
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	mov	w23, #0
Lloh5:
	adrp	x28, _ENODEV@GOTPAGE
Lloh6:
	ldr	x28, [x28, _ENODEV@GOTPAGEOFF]
Lloh7:
	adrp	x24, _HZ@GOTPAGE
Lloh8:
	ldr	x24, [x24, _HZ@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
Lloh9:
	adrp	x8, _KERN_WARNING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KERN_WARNING@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x25
	bl	_ata_link_printk
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w23, #1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x21]
	mov	w1, #50
	bl	_ata_msleep
	ldr	x26, [x27]
	mov	x0, x21
	blr	x19
	mov	x25, x0
	cmp	w0, #1
	b.ge	LBB0_1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x28]
	cmn	w25, w8
	b.ne	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_ata_link_online
	cbnz	x0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x21]
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _ATA_FLAG_SATA@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ATA_FLAG_SATA@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_ata_link_offline
	cbnz	w0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x26
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_time_before
	cbnz	x0, LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	cbnz	w25, LBB0_2
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x26
	mov	x1, x20
	bl	_time_after
	cbnz	x0, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	cbnz	w23, LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	ldrsw	x8, [x24]
	add	x8, x8, x8, lsl #2
	add	x1, x22, x8
	mov	x0, x26
	bl	_time_after
	cbz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	ldrsw	x8, [x24]
	add	x8, x8, x8, lsl #1
	sub	x9, x20, x26
	cmp	x9, x8
	b.hi	LBB0_4
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w23, #0
	b	LBB0_6
LBB0_18:
Lloh17:
	adrp	x8, _EBUSY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_ATA_TMOUT_FF_WAIT,4,2          ; @ATA_TMOUT_FF_WAIT
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ATA_FLAG_SATA,4,2              ; @ATA_FLAG_SATA
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_HZ,4,2                         ; @HZ
	.comm	_KERN_WARNING,4,2               ; @KERN_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"link is slow to respond, please be patient (ready=%d)\n"

.subsections_via_symbols
