	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_pio_need_iordy             ## -- Begin function ata_pio_need_iordy
	.p2align	4, 0x90
_ata_pio_need_iordy:                    ## @ata_pio_need_iordy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	_ATA_PFLAG_RESETTING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r14d, %r14d
	testl	%ecx, (%rax)
	jne	LBB0_7
## %bb.1:
	movq	_ATA_FLAG_NO_IORDY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_2
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_ata_id_is_cfa
	movq	(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_XFER_PIO_5@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_7
## %bb.4:
	movq	_XFER_PIO_6@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_7
LBB0_5:
	movq	_XFER_PIO_2@GOTPCREL(%rip), %rax
	movl	$1, %r14d
	cmpq	(%rax), %rcx
	jg	LBB0_7
## %bb.6:
	movl	8(%rbx), %edi
	callq	_ata_id_has_iordy
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_PFLAG_RESETTING,4,2        ## @ATA_PFLAG_RESETTING
	.comm	_ATA_FLAG_NO_IORDY,4,2          ## @ATA_FLAG_NO_IORDY
	.comm	_XFER_PIO_5,8,3                 ## @XFER_PIO_5
	.comm	_XFER_PIO_6,8,3                 ## @XFER_PIO_6
	.comm	_XFER_PIO_2,8,3                 ## @XFER_PIO_2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_pio_need_iordy             ; -- Begin function ata_pio_need_iordy
	.p2align	2
_ata_pio_need_iordy:                    ; @ata_pio_need_iordy
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _ATA_PFLAG_RESETTING@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ATA_PFLAG_RESETTING@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x8, #4]
Lloh3:
	adrp	x9, _ATA_FLAG_NO_IORDY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATA_FLAG_NO_IORDY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_ata_id_is_cfa
	ldr	x8, [x19]
	cbz	x0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x9, _XFER_PIO_5@GOTPAGE
Lloh7:
	ldr	x9, [x9, _XFER_PIO_5@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _XFER_PIO_6@GOTPAGE
Lloh10:
	ldr	x10, [x10, _XFER_PIO_6@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_2
LBB0_6:
Lloh12:
	adrp	x9, _XFER_PIO_2@GOTPAGE
Lloh13:
	ldr	x9, [x9, _XFER_PIO_2@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_8
; %bb.7:
	mov	w0, #1
	b	LBB0_3
LBB0_8:
	ldr	w0, [x19, #8]
	bl	_ata_id_has_iordy
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_PFLAG_RESETTING,4,2        ; @ATA_PFLAG_RESETTING
	.comm	_ATA_FLAG_NO_IORDY,4,2          ; @ATA_FLAG_NO_IORDY
	.comm	_XFER_PIO_5,8,3                 ; @XFER_PIO_5
	.comm	_XFER_PIO_6,8,3                 ; @XFER_PIO_6
	.comm	_XFER_PIO_2,8,3                 ; @XFER_PIO_2
.subsections_via_symbols
