	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_sff_busy_sleep             ## -- Begin function ata_sff_busy_sleep
	.p2align	4, 0x90
_ata_sff_busy_sleep:                    ## @ata_sff_busy_sleep
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	_ATA_BUSY@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$300, %edx                      ## imm = 0x12C
	callq	_ata_sff_busy_wait
	movl	%eax, %ebx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_ata_deadline
	cmpl	$255, %ebx
	je	LBB0_5
## %bb.1:
	movq	%rax, %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, (%r14)
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r13, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	$50, %esi
	callq	_ata_msleep
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	$3, %edx
	callq	_ata_sff_busy_wait
	movl	%eax, %ebx
	cmpl	$255, %eax
	jne	LBB0_2
LBB0_5:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ata_deadline
LBB0_12:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
LBB0_15:
	subl	(%rax), %r12d
LBB0_16:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	testl	%ebx, (%r14)
	je	LBB0_8
## %bb.7:
	movq	_KERN_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_ata_port_printk
LBB0_8:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ata_deadline
	movq	%rax, %r13
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, (%r14)
	je	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r13, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	movl	$50, %esi
	callq	_ata_msleep
	movq	(%r15), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	movl	%eax, %ebx
	cmpl	$255, %eax
	jne	LBB0_9
	jmp	LBB0_12
LBB0_13:
	testl	%ebx, (%r14)
	je	LBB0_16
## %bb.14:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_DIV_ROUND_UP
	leaq	L_.str.1(%rip), %rdx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%eax, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_ata_port_printk
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_BUSY,4,2                   ## @ATA_BUSY
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_KERN_WARNING,4,2               ## @KERN_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port is slow to respond, please be patient (Status 0x%x)\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
L_.str.1:                               ## @.str.1
	.asciz	"port failed to respond (%lu secs, Status 0x%x)\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_sff_busy_sleep             ; -- Begin function ata_sff_busy_sleep
	.p2align	2
_ata_sff_busy_sleep:                    ; @ata_sff_busy_sleep
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _ATA_BUSY@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ATA_BUSY@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w2, #300
	bl	_ata_sff_busy_wait
	mov	x21, x0
Lloh2:
	adrp	x25, _jiffies@GOTPAGE
Lloh3:
	ldr	x25, [x25, _jiffies@GOTPAGEOFF]
	ldr	x22, [x25]
	mov	x0, x22
	mov	x1, x23
	bl	_ata_deadline
	cmp	w21, #255
	b.eq	LBB0_5
; %bb.1:
	mov	x23, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	tst	w8, w21
	b.eq	LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x25]
	mov	x1, x23
	bl	_time_before
	cbz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	w1, #50
	bl	_ata_msleep
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #3
	bl	_ata_sff_busy_wait
	mov	x21, x0
	cmp	w0, #255
	b.ne	LBB0_2
LBB0_5:
	mov	x0, x22
	mov	x1, x20
	bl	_ata_deadline
LBB0_6:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	ldr	w8, [x24]
	tst	w8, w21
	b.eq	LBB0_11
; %bb.10:
Lloh6:
	adrp	x8, _KERN_WARNING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KERN_WARNING@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	bl	_ata_port_printk
LBB0_11:
	mov	x0, x22
	mov	x1, x20
	bl	_ata_deadline
	mov	x22, x0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	tst	w8, w21
	b.eq	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x0, [x25]
	mov	x1, x22
	bl	_time_before
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	mov	w1, #50
	bl	_ata_msleep
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x21, x0
	cmp	w0, #255
	b.ne	LBB0_12
	b	LBB0_6
LBB0_15:
	ldr	w8, [x24]
	tst	w8, w21
	b.eq	LBB0_17
; %bb.16:
Lloh11:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
	mov	x0, x20
	mov	w1, #1000
	bl	_DIV_ROUND_UP
	mov	x3, x0
	str	x21, [sp]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	bl	_ata_port_printk
Lloh16:
	adrp	x8, _EBUSY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_7
LBB0_17:
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_BUSY,4,2                   ; @ATA_BUSY
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_KERN_WARNING,4,2               ; @KERN_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port is slow to respond, please be patient (Status 0x%x)\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
l_.str.1:                               ; @.str.1
	.asciz	"port failed to respond (%lu secs, Status 0x%x)\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
