	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pre_task_out_intr
_pre_task_out_intr:                     ## @pre_task_out_intr
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_ATA_DRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%rdi), %ecx
	movq	_WAIT_DRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-28(%rbp), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ide_wait_stat
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_IDE_TFLAG_MULTI_PIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r14), %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	_IDE_DFLAG_LBA48@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rbx), %ecx
	movl	4(%rbx), %esi
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_5
LBB0_2:
	movq	_IDE_DFLAG_UNMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_local_irq_disable
LBB0_4:
	movq	_WAIT_WORSTCASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_task_pio_intr@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ide_set_handler
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_ide_pio_datablock
	movq	_ide_started@GOTPCREL(%rip), %r15
LBB0_5:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_DRQ,4,2                    ## @ATA_DRQ
	.comm	_WAIT_DRQ,4,2                   ## @WAIT_DRQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: no DRQ after issuing %sWRITE%s\n"

	.comm	_IDE_TFLAG_MULTI_PIO,4,2        ## @IDE_TFLAG_MULTI_PIO
L_.str.1:                               ## @.str.1
	.asciz	"MULT"

L_.str.2:                               ## @.str.2
	.space	1

	.comm	_IDE_DFLAG_LBA48,4,2            ## @IDE_DFLAG_LBA48
L_.str.3:                               ## @.str.3
	.asciz	"_EXT"

	.comm	_IDE_DFLAG_UNMASK,4,2           ## @IDE_DFLAG_UNMASK
	.comm	_task_pio_intr,4,2              ## @task_pio_intr
	.comm	_WAIT_WORSTCASE,4,2             ## @WAIT_WORSTCASE
	.comm	_ide_started,4,2                ## @ide_started
	.no_dead_strip	_pre_task_out_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pre_task_out_intr
_pre_task_out_intr:                     ; @pre_task_out_intr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ATA_DRQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATA_DRQ@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	ldr	w3, [x0, #8]
Lloh3:
	adrp	x8, _WAIT_DRQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WAIT_DRQ@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	add	x0, sp, #12
	mov	x1, x19
	bl	_ide_wait_stat
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _IDE_TFLAG_MULTI_PIO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IDE_TFLAG_MULTI_PIO@GOTPAGEOFF]
Lloh8:
	adrp	x10, l_.str.1@PAGE
Lloh9:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh10:
	adrp	x11, l_.str.2@PAGE
Lloh11:
	add	x11, x11, l_.str.2@PAGEOFF
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x2, x11, x10, eq
Lloh13:
	adrp	x8, _IDE_DFLAG_LBA48@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IDE_DFLAG_LBA48@GOTPAGEOFF]
	ldp	w9, w1, [x19]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x10, l_.str.3@PAGE
Lloh17:
	add	x10, x10, l_.str.3@PAGEOFF
	tst	w8, w9
	csel	x3, x11, x10, eq
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	add	x8, sp, #12
	b	LBB0_5
LBB0_2:
	ldr	w8, [x19]
Lloh20:
	adrp	x9, _IDE_DFLAG_UNMASK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IDE_DFLAG_UNMASK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
	bl	_local_irq_disable
LBB0_4:
Lloh23:
	adrp	x8, _WAIT_WORSTCASE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _WAIT_WORSTCASE@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x1, _task_pio_intr@GOTPAGE
Lloh27:
	ldr	x1, [x1, _task_pio_intr@GOTPAGEOFF]
	mov	x0, x19
	bl	_ide_set_handler
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_ide_pio_datablock
Lloh28:
	adrp	x8, _ide_started@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ide_started@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh12
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_DRQ,4,2                    ; @ATA_DRQ
	.comm	_WAIT_DRQ,4,2                   ; @WAIT_DRQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: no DRQ after issuing %sWRITE%s\n"

	.comm	_IDE_TFLAG_MULTI_PIO,4,2        ; @IDE_TFLAG_MULTI_PIO
l_.str.1:                               ; @.str.1
	.asciz	"MULT"

l_.str.2:                               ; @.str.2
	.space	1

	.comm	_IDE_DFLAG_LBA48,4,2            ; @IDE_DFLAG_LBA48
l_.str.3:                               ; @.str.3
	.asciz	"_EXT"

	.comm	_IDE_DFLAG_UNMASK,4,2           ; @IDE_DFLAG_UNMASK
	.comm	_task_pio_intr,4,2              ; @task_pio_intr
	.comm	_WAIT_WORSTCASE,4,2             ; @WAIT_WORSTCASE
	.comm	_ide_started,4,2                ; @ide_started
	.no_dead_strip	_pre_task_out_intr
.subsections_via_symbols
