	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___ide_wait_stat                ## -- Begin function __ide_wait_stat
	.p2align	4, 0x90
___ide_wait_stat:                       ## @__ide_wait_stat
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %rbx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %r14
	movq	(%r14), %r15
	movl	$1, %edi
	callq	_udelay
	movq	%r14, %rdi
	callq	*(%r15)
	movq	_ATA_BUSY@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_7
## %bb.1:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	callq	_local_save_flags
	xorl	%eax, %eax
	callq	_local_irq_enable_in_hardirq
	movq	_jiffies@GOTPCREL(%rip), %r12
	addq	(%r12), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	*(%r15)
	testl	%eax, (%r13)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%r14, %rdi
	callq	*(%r15)
	testl	%eax, (%r13)
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	callq	_local_irq_restore
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_18:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_20
LBB0_6:
	callq	_local_irq_restore
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_7:
	movl	$1, %edi
	callq	_udelay
	movq	%r14, %rdi
	callq	*(%r15)
	movl	%eax, %r13d
	movl	%eax, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_OK_STAT
	testq	%rax, %rax
	jne	LBB0_19
## %bb.8:
	movl	$1, %edi
	callq	_udelay
	movq	%r14, %rdi
	callq	*(%r15)
	movl	%eax, %r13d
	movl	%eax, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_OK_STAT
	testq	%rax, %rax
	jne	LBB0_19
## %bb.9:
	movl	$1, %edi
	callq	_udelay
	movq	%r14, %rdi
	callq	*(%r15)
	movl	%eax, %r13d
	movl	%eax, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_OK_STAT
	testq	%rax, %rax
	jne	LBB0_19
## %bb.10:
	movl	$1, %edi
	callq	_udelay
	movq	%r14, %rdi
	callq	*(%r15)
	movl	%eax, %r13d
	movl	%eax, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_OK_STAT
	testq	%rax, %rax
	jne	LBB0_19
## %bb.11:
	movl	$1, %edi
	callq	_udelay
	movq	%r14, %rdi
	callq	*(%r15)
	movl	%eax, %r13d
	movl	%eax, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_OK_STAT
	testq	%rax, %rax
	jne	LBB0_19
## %bb.12:
	movl	$1, %edi
	callq	_udelay
	movq	%r14, %rdi
	callq	*(%r15)
	movl	%eax, %r13d
	movl	%eax, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_OK_STAT
	testq	%rax, %rax
	jne	LBB0_19
## %bb.13:
	movl	$1, %edi
	callq	_udelay
	movq	%r14, %rdi
	callq	*(%r15)
	movl	%eax, %r13d
	movl	%eax, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_OK_STAT
	testq	%rax, %rax
	jne	LBB0_19
## %bb.14:
	movl	$1, %edi
	callq	_udelay
	movq	%r14, %rdi
	callq	*(%r15)
	movl	%eax, %r13d
	movl	%eax, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_OK_STAT
	testq	%rax, %rax
	jne	LBB0_19
## %bb.15:
	movl	$1, %edi
	callq	_udelay
	movq	%r14, %rdi
	callq	*(%r15)
	movl	%eax, %r13d
	movl	%eax, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_OK_STAT
	testq	%rax, %rax
	jne	LBB0_19
## %bb.16:
	movl	$1, %edi
	callq	_udelay
	movq	%r14, %rdi
	callq	*(%r15)
	movl	%eax, %r13d
	movl	%eax, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_OK_STAT
	testq	%rax, %rax
	je	LBB0_17
LBB0_19:
	movl	%r13d, (%r12)
	xorl	%eax, %eax
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	%r13d, (%r12)
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_BUSY,4,2                   ## @ATA_BUSY
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EFAULT,4,2                     ## @EFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___ide_wait_stat                ; -- Begin function __ide_wait_stat
	.p2align	2
___ide_wait_stat:                       ; @__ide_wait_stat
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x22, [x0]
	ldr	x24, [x22]
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x24]
	mov	x0, x22
	blr	x8
Lloh0:
	adrp	x25, _ATA_BUSY@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ATA_BUSY@GOTPAGEOFF]
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.1:
	bl	_local_save_flags
	bl	_local_irq_enable_in_hardirq
Lloh2:
	adrp	x26, _jiffies@GOTPAGE
Lloh3:
	ldr	x26, [x26, _jiffies@GOTPAGEOFF]
	ldr	x8, [x26]
	add	x23, x8, x23
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	mov	x0, x22
	blr	x8
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x26]
	mov	x1, x23
	bl	_time_after
	cbz	x0, LBB0_2
; %bb.4:
	ldr	x8, [x24]
	mov	x0, x22
	blr	x8
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.5:
	mov	x23, x0
	bl	_local_irq_restore
	str	w23, [x19]
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_7:
	bl	_local_irq_restore
LBB0_8:
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x24]
	mov	x0, x22
	blr	x8
	mov	x23, x0
	mov	x1, x21
	mov	x2, x20
	bl	_OK_STAT
	cbnz	x0, LBB0_18
; %bb.9:
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x24]
	mov	x0, x22
	blr	x8
	mov	x23, x0
	mov	x1, x21
	mov	x2, x20
	bl	_OK_STAT
	cbnz	x0, LBB0_18
; %bb.10:
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x24]
	mov	x0, x22
	blr	x8
	mov	x23, x0
	mov	x1, x21
	mov	x2, x20
	bl	_OK_STAT
	cbnz	x0, LBB0_18
; %bb.11:
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x24]
	mov	x0, x22
	blr	x8
	mov	x23, x0
	mov	x1, x21
	mov	x2, x20
	bl	_OK_STAT
	cbnz	x0, LBB0_18
; %bb.12:
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x24]
	mov	x0, x22
	blr	x8
	mov	x23, x0
	mov	x1, x21
	mov	x2, x20
	bl	_OK_STAT
	cbnz	x0, LBB0_18
; %bb.13:
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x24]
	mov	x0, x22
	blr	x8
	mov	x23, x0
	mov	x1, x21
	mov	x2, x20
	bl	_OK_STAT
	cbnz	x0, LBB0_18
; %bb.14:
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x24]
	mov	x0, x22
	blr	x8
	mov	x23, x0
	mov	x1, x21
	mov	x2, x20
	bl	_OK_STAT
	cbnz	x0, LBB0_18
; %bb.15:
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x24]
	mov	x0, x22
	blr	x8
	mov	x23, x0
	mov	x1, x21
	mov	x2, x20
	bl	_OK_STAT
	cbnz	x0, LBB0_18
; %bb.16:
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x24]
	mov	x0, x22
	blr	x8
	mov	x23, x0
	mov	x1, x21
	mov	x2, x20
	bl	_OK_STAT
	cbnz	x0, LBB0_18
; %bb.17:
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x24]
	mov	x0, x22
	blr	x8
	mov	x23, x0
	mov	x1, x21
	mov	x2, x20
	bl	_OK_STAT
	cbz	x0, LBB0_20
LBB0_18:
	mov	w0, #0
	str	w23, [x19]
LBB0_19:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_20:
	str	w23, [x19]
Lloh6:
	adrp	x8, _EFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_BUSY,4,2                   ; @ATA_BUSY
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EFAULT,4,2                     ; @EFAULT
.subsections_via_symbols
