	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_pio_timings
_get_pio_timings:                       ## @get_pio_timings
	.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, %ebx
	movq	%rdi, %r15
	movq	_XFER_PIO_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%esi, %edi
	callq	_ide_timing_find_mode
	movl	(%rax), %r12d
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ide_pio_cycle_time
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ide_pio_need_iordy
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	shll	$6, %ecx
	leal	29(%r12), %eax
	cltq
	imulq	$-2004318071, %rax, %rax        ## imm = 0x88888889
	shrq	$32, %rax
	addl	%r12d, %eax
	addl	$29, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	sarl	$4, %eax
	addl	%edx, %eax
	imull	$-30, %eax, %edx
	addl	%r14d, %edx
	addl	$29, %edx
	movl	$2290649225, %esi               ## imm = 0x88888889
	imulq	%rdx, %rsi
	shrq	$36, %rsi
	addl	$58, %r12d
	shll	$8, %eax
	addl	$-256, %eax
	xorl	%edi, %edi
	cmpl	$59, %r12d
	cmovbl	%edi, %eax
	decl	%esi
	cmpl	$30, %edx
	cmovbl	%edi, %esi
	orl	%ecx, %eax
	orl	%esi, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XFER_PIO_0,4,2                 ## @XFER_PIO_0
	.no_dead_strip	_get_pio_timings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_pio_timings
_get_pio_timings:                       ; @get_pio_timings
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _XFER_PIO_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XFER_PIO_0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w0, w8, w1
	bl	_ide_timing_find_mode
	ldr	w22, [x0]
	mov	x0, x20
	mov	x1, x19
	bl	_ide_pio_cycle_time
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_ide_pio_need_iordy
	cmp	x0, #0
	cset	w8, ne
	add	w9, w22, #29
	mov	w10, #34953
	movk	w10, #34952, lsl #16
	smull	x11, w9, w10
	lsr	x11, x11, #32
	add	w9, w11, w9
	asr	w11, w9, #4
	add	w9, w11, w9, lsr #31
	mov	w11, #-30
	madd	w11, w9, w11, w21
	add	w11, w11, #29
	umull	x10, w11, w10
	lsr	x10, x10, #36
	add	w12, w22, #58
	lsl	w9, w9, #8
	sub	w9, w9, #256
	cmp	w12, #59
	csel	w9, wzr, w9, lo
	sub	w10, w10, #1
	cmp	w11, #30
	csel	w10, wzr, w10, lo
	bfi	w9, w8, #6, #1
	orr	w0, w9, w10
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_XFER_PIO_0,4,2                 ; @XFER_PIO_0
	.no_dead_strip	_get_pio_timings
.subsections_via_symbols
