	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc52xx_ata_compute_pio_timings
_mpc52xx_ata_compute_pio_timings:       ## @mpc52xx_ata_compute_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$5, %edx
	jb	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movl	(%rdi), %r13d
	movq	8(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movslq	%esi, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_ataspec_t0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edx, %r14d
	imull	$1000, (%rax,%r14,4), %esi      ## imm = 0x3E8
	movl	%r13d, %edi
	callq	_CALC_CLKCYC
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_ataspec_t1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	imull	$1000, (%rax,%r14,4), %esi      ## imm = 0x3E8
	movl	%r13d, %edi
	callq	_CALC_CLKCYC
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_ataspec_t2_8@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	imull	$1000, (%rax,%r14,4), %esi      ## imm = 0x3E8
	movl	%r13d, %edi
	callq	_CALC_CLKCYC
	movl	%eax, %r12d
	movq	_ataspec_t2_16@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	imull	$1000, (%rax,%r14,4), %esi      ## imm = 0x3E8
	movl	%r13d, %edi
	callq	_CALC_CLKCYC
	movl	%eax, %ebx
	movq	_ataspec_t2i@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	imull	$1000, (%rax,%r14,4), %esi      ## imm = 0x3E8
	movl	%r13d, %edi
	callq	_CALC_CLKCYC
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_ataspec_t4@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	imull	$1000, (%rax,%r14,4), %esi      ## imm = 0x3E8
	movl	%r13d, %edi
	callq	_CALC_CLKCYC
	movl	%eax, %r15d
	movq	_ataspec_ta@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	imull	$1000, (%rax,%r14,4), %esi      ## imm = 0x3E8
	movl	%r13d, %edi
	callq	_CALC_CLKCYC
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	shll	$24, %ecx
	shll	$16, %r12d
	orl	%ecx, %r12d
	shll	$8, %ebx
	orl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	orl	%r12d, %ebx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, (%rcx,%rdx,8)
	shll	$24, %r15d
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	shll	$16, %esi
	orl	%r15d, %esi
	shll	$8, %eax
	orl	%esi, %eax
	movl	%eax, 4(%rcx,%rdx,8)
	xorl	%eax, %eax
LBB0_3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ataspec_t0,8,3                 ## @ataspec_t0
	.comm	_ataspec_t1,8,3                 ## @ataspec_t1
	.comm	_ataspec_t2_8,8,3               ## @ataspec_t2_8
	.comm	_ataspec_t2_16,8,3              ## @ataspec_t2_16
	.comm	_ataspec_t2i,8,3                ## @ataspec_t2i
	.comm	_ataspec_t4,8,3                 ## @ataspec_t4
	.comm	_ataspec_ta,8,3                 ## @ataspec_ta
	.no_dead_strip	_mpc52xx_ata_compute_pio_timings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc52xx_ata_compute_pio_timings
_mpc52xx_ata_compute_pio_timings:       ; @mpc52xx_ata_compute_pio_timings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w2, #5
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x19, x1
	ldr	w20, [x0]
	ldr	x8, [x0, #8]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh3:
	adrp	x8, _ataspec_t0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ataspec_t0@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	w9, w2
	lsl	x28, x9, #2
	ldr	w8, [x8, x28]
	mov	w27, #1000
	mul	w1, w8, w27
	mov	x0, x20
	bl	_CALC_CLKCYC
	mov	x21, x0
Lloh6:
	adrp	x8, _ataspec_t1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ataspec_t1@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w8, [x8, x28]
	mul	w1, w8, w27
	mov	x0, x20
	bl	_CALC_CLKCYC
	mov	x22, x0
Lloh9:
	adrp	x8, _ataspec_t2_8@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ataspec_t2_8@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	w8, [x8, x28]
	mul	w1, w8, w27
	mov	x0, x20
	bl	_CALC_CLKCYC
	mov	x23, x0
Lloh12:
	adrp	x8, _ataspec_t2_16@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ataspec_t2_16@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	w8, [x8, x28]
	mul	w1, w8, w27
	mov	x0, x20
	bl	_CALC_CLKCYC
	mov	x24, x0
Lloh15:
	adrp	x8, _ataspec_t2i@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ataspec_t2i@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	w8, [x8, x28]
	mul	w1, w8, w27
	mov	x0, x20
	bl	_CALC_CLKCYC
	mov	x25, x0
Lloh18:
	adrp	x8, _ataspec_t4@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ataspec_t4@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	w8, [x8, x28]
	mul	w1, w8, w27
	mov	x0, x20
	bl	_CALC_CLKCYC
	mov	x26, x0
Lloh21:
	adrp	x8, _ataspec_ta@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ataspec_ta@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	w8, [x8, x28]
	mul	w1, w8, w27
	mov	x0, x20
	bl	_CALC_CLKCYC
	mov	x8, x0
	mov	w0, #0
	lsl	w9, w23, #16
	orr	w9, w9, w21, lsl #24
	orr	w9, w9, w24, lsl #8
	orr	w9, w9, w25
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	add	x10, x10, w19, sxtw #3
	lsl	w11, w26, #24
	orr	w11, w11, w22, lsl #16
	orr	w8, w11, w8, lsl #8
	stp	w9, w8, [x10]
LBB0_3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ataspec_t0,8,3                 ; @ataspec_t0
	.comm	_ataspec_t1,8,3                 ; @ataspec_t1
	.comm	_ataspec_t2_8,8,3               ; @ataspec_t2_8
	.comm	_ataspec_t2_16,8,3              ; @ataspec_t2_16
	.comm	_ataspec_t2i,8,3                ; @ataspec_t2i
	.comm	_ataspec_t4,8,3                 ; @ataspec_t4
	.comm	_ataspec_ta,8,3                 ; @ataspec_ta
	.no_dead_strip	_mpc52xx_ata_compute_pio_timings
.subsections_via_symbols
