	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc52xx_ata_compute_mdma_timings
_mpc52xx_ata_compute_mdma_timings:      ## @mpc52xx_ata_compute_mdma_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, %eax
	movq	(%rdi), %rdx
	movq	8(%rdi), %r8
	movslq	%esi, %rcx
	leaq	(%rax,%rax,8), %rsi
	leaq	(%rsi,%rsi,2), %rsi
	addq	%rax, %rsi
	movl	(%rdx,%rsi), %eax
	movl	4(%rdx,%rsi), %edi
	shll	$24, %eax
	shll	$16, %edi
	orl	%eax, %edi
	movl	8(%rdx,%rsi), %eax
	shll	$8, %eax
	orl	%edi, %eax
	orl	12(%rdx,%rsi), %eax
	shlq	$4, %rcx
	movl	%eax, (%r8,%rcx)
	movl	16(%rdx,%rsi), %eax
	movl	20(%rdx,%rsi), %edi
	shll	$24, %eax
	shll	$16, %edi
	orl	%eax, %edi
	movl	24(%rdx,%rsi), %eax
	shll	$8, %eax
	orl	%edi, %eax
	movl	%eax, 4(%r8,%rcx)
	movq	$0, 8(%r8,%rcx)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mpc52xx_ata_compute_mdma_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_mdma_timings
_mpc52xx_ata_compute_mdma_timings:      ; @mpc52xx_ata_compute_mdma_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, #28
	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
	add	x8, x8, w1, sxtw #4
	ldp	w11, w12, [x9, #16]
	lsl	w12, w12, #16
	orr	w11, w12, w11, lsl #24
	ldr	w9, [x9, #24]
	orr	w9, w11, w9, lsl #8
	stp	w10, w9, [x8]
	str	xzr, [x8, #8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mpc52xx_ata_compute_mdma_timings
.subsections_via_symbols
