	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mpc52xx_ata_compute_udma_timings
LCPI0_0:
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	4                               ## 0x4
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	8                               ## 0x8
	.byte	9                               ## 0x9
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	12                              ## 0xc
LCPI0_1:
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	0                               ## 0x0
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	4                               ## 0x4
	.byte	5                               ## 0x5
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	8                               ## 0x8
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	12                              ## 0xc
	.byte	13                              ## 0xd
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_mpc52xx_ata_compute_udma_timings:      ## @mpc52xx_ata_compute_udma_timings
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$3, %edx
	jb	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_2:
	movl	%edx, %edx
	movq	(%rdi), %rcx
	movq	8(%rdi), %rax
	movslq	%esi, %rsi
	movq	%rdx, %rdi
	shlq	$6, %rdi
	leaq	(%rdi,%rdx,4), %rdx
	movd	4(%rcx,%rdx), %xmm0             ## xmm0 = mem[0],zero,zero,zero
	pinsrd	$1, 16(%rcx,%rdx), %xmm0
	pinsrd	$2, 36(%rcx,%rdx), %xmm0
	pinsrd	$3, 48(%rcx,%rdx), %xmm0
	leaq	(%rsi,%rsi,2), %rsi
	pshufb	LCPI0_0(%rip), %xmm0            ## xmm0 = zero,zero,xmm0[0,1],zero,zero,zero,xmm0[4],zero,zero,xmm0[8,9],zero,zero,zero,xmm0[12]
	movd	(%rcx,%rdx), %xmm1              ## xmm1 = mem[0],zero,zero,zero
	pinsrd	$1, 20(%rcx,%rdx), %xmm1
	pinsrd	$2, 32(%rcx,%rdx), %xmm1
	pinsrd	$3, 52(%rcx,%rdx), %xmm1
	pshufb	LCPI0_1(%rip), %xmm1            ## xmm1 = zero,zero,zero,xmm1[0],zero,zero,xmm1[4,5],zero,zero,zero,xmm1[8],zero,zero,xmm1[12,13]
	por	%xmm0, %xmm1
	movd	8(%rcx,%rdx), %xmm0             ## xmm0 = mem[0],zero,zero,zero
	pinsrd	$1, 24(%rcx,%rdx), %xmm0
	pinsrd	$2, 40(%rcx,%rdx), %xmm0
	pinsrd	$3, 56(%rcx,%rdx), %xmm0
	pslld	$8, %xmm0
	movd	12(%rcx,%rdx), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	pinsrd	$1, 28(%rcx,%rdx), %xmm2
	pinsrd	$2, 44(%rcx,%rdx), %xmm2
	pinsrd	$3, 60(%rcx,%rdx), %xmm2
	por	%xmm0, %xmm2
	por	%xmm1, %xmm2
	movdqu	%xmm2, (%rax,%rsi,8)
	movl	64(%rcx,%rdx), %ecx
	shll	$24, %ecx
	movl	%ecx, 16(%rax,%rsi,8)
	movl	$1, 20(%rax,%rsi,8)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mpc52xx_ata_compute_udma_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_udma_timings
_mpc52xx_ata_compute_udma_timings:      ; @mpc52xx_ata_compute_udma_timings
	.cfi_startproc
; %bb.0:
	cmp	w2, #3
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_2:
	mov	x8, x0
	mov	w0, #0
	ldp	x9, x8, [x8]
	mov	w10, #68
	umaddl	x9, w2, w10, x9
	ldp	w10, w11, [x9]
	lsl	w11, w11, #16
	orr	w10, w11, w10, lsl #24
	ldp	w11, w12, [x9, #8]
	orr	w10, w10, w11, lsl #8
	orr	w10, w10, w12
	mov	w11, #24
	smaddl	x8, w1, w11, x8
	ldp	w11, w12, [x9, #16]
	lsl	w12, w12, #16
	orr	w11, w12, w11, lsl #24
	ldp	w12, w13, [x9, #24]
	orr	w11, w11, w12, lsl #8
	orr	w11, w11, w13
	stp	w10, w11, [x8]
	ldp	w10, w11, [x9, #32]
	lsl	w11, w11, #16
	orr	w10, w11, w10, lsl #24
	ldp	w11, w12, [x9, #40]
	orr	w10, w10, w11, lsl #8
	orr	w10, w10, w12
	str	w10, [x8, #8]
	ldp	w10, w11, [x9, #48]
	lsl	w11, w11, #16
	orr	w10, w11, w10, lsl #24
	ldr	w11, [x9, #56]
	orr	w10, w10, w11, lsl #8
	ldur	d0, [x9, #60]
	mov.s	v1[0], w10
	orr.8b	v1, v0, v1
	shl.2s	v0, v0, #24
	mov.s	v1[1], v0[1]
	stur	d1, [x8, #12]
	mov	w9, #1
	str	w9, [x8, #20]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mpc52xx_ata_compute_udma_timings
.subsections_via_symbols
