	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_pio_cycle_time             ## -- Begin function ide_pio_cycle_time
	.p2align	4, 0x90
_ide_pio_cycle_time:                    ## @ide_pio_cycle_time
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	_XFER_PIO_0@GOTPCREL(%rip), %rax
	movslq	%esi, %rdi
	addq	(%rax), %rdi
	callq	_ide_timing_find_mode
	movq	%rax, %r14
	movq	_ATA_ID_FIELD_VALID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testb	$2, (%r15,%rax,4)
	jne	LBB0_1
LBB0_10:
	movl	(%r14), %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%rbx), %rdi
	callq	_ata_id_has_iordy
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	_ATA_ID_EIDE_PIO@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_ATA_ID_EIDE_PIO_IORDY@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %rax
	movl	(%r15,%rax,4), %ebx
	cmpl	$2, %r12d
	jg	LBB0_7
## %bb.5:
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.6:
	cmpl	(%r14), %ebx
	jge	LBB0_11
	jmp	LBB0_10
LBB0_7:
	cmpl	$5, %r12d
	jb	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_ata_id_is_cfa
	testq	%rax, %rax
	jne	LBB0_10
LBB0_9:
	testl	%ebx, %ebx
	jne	LBB0_11
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_XFER_PIO_0,8,3                 ## @XFER_PIO_0
	.comm	_ATA_ID_FIELD_VALID,8,3         ## @ATA_ID_FIELD_VALID
	.comm	_ATA_ID_EIDE_PIO_IORDY,8,3      ## @ATA_ID_EIDE_PIO_IORDY
	.comm	_ATA_ID_EIDE_PIO,8,3            ## @ATA_ID_EIDE_PIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_pio_cycle_time             ; -- Begin function ide_pio_cycle_time
	.p2align	2
_ide_pio_cycle_time:                    ; @ide_pio_cycle_time
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x1
	mov	x21, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _XFER_PIO_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XFER_PIO_0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, w1, sxtw
	bl	_ide_timing_find_mode
	mov	x19, x0
Lloh3:
	adrp	x8, _ATA_ID_FIELD_VALID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATA_ID_FIELD_VALID@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w8, [x20, x8, lsl #2]
	tbz	w8, #1, LBB0_6
; %bb.1:
	ldr	x0, [x21]
	bl	_ata_id_has_iordy
Lloh6:
	adrp	x8, _ATA_ID_EIDE_PIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATA_ID_EIDE_PIO@GOTPAGEOFF]
Lloh8:
	adrp	x9, _ATA_ID_EIDE_PIO_IORDY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ATA_ID_EIDE_PIO_IORDY@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	x8, [x8]
	ldr	w21, [x20, x8, lsl #2]
	cmp	w22, #2
	b.gt	LBB0_3
; %bb.2:
	ldr	w8, [x19]
	cmp	w21, #0
	ccmp	w21, w8, #8, ne
	b.lt	LBB0_6
	b	LBB0_7
LBB0_3:
	cmp	w22, #5
	b.lo	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_ata_id_is_cfa
	cbnz	x0, LBB0_6
LBB0_5:
	cbnz	w21, LBB0_7
LBB0_6:
	ldr	w21, [x19]
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_XFER_PIO_0,8,3                 ; @XFER_PIO_0
	.comm	_ATA_ID_FIELD_VALID,8,3         ; @ATA_ID_FIELD_VALID
	.comm	_ATA_ID_EIDE_PIO_IORDY,8,3      ; @ATA_ID_EIDE_PIO_IORDY
	.comm	_ATA_ID_EIDE_PIO,8,3            ; @ATA_ID_EIDE_PIO
.subsections_via_symbols
