	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_sdhci_dmacb
_bcm_sdhci_dmacb:                       ## @bcm_sdhci_dmacb
	.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	%rbx
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, (%rdi)
	movl	%edx, 4(%rdi)
	testl	%edx, %edx
	jle	LBB0_17
## %bb.1:
	movq	8(%rdi), %r10
	movq	16(%rdi), %rcx
	movl	%edx, %r8d
	cmpl	$8, %edx
	jae	LBB0_3
## %bb.2:
	xorl	%edx, %edx
LBB0_13:
	movq	%rdx, %rax
	notq	%rax
	testb	$1, %r8b
	je	LBB0_15
## %bb.14:
	movl	4(%rsi,%rdx,8), %edi
	movl	%edi, (%rcx,%rdx,4)
	movl	(%rsi,%rdx,8), %edi
	movl	%edi, (%r10,%rdx,4)
	orq	$1, %rdx
LBB0_15:
	addq	%r8, %rax
	je	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rsi,%rdx,8), %eax
	movl	%eax, (%rcx,%rdx,4)
	movl	(%rsi,%rdx,8), %eax
	movl	%eax, (%r10,%rdx,4)
	movl	12(%rsi,%rdx,8), %eax
	movl	%eax, 4(%rcx,%rdx,4)
	movl	8(%rsi,%rdx,8), %eax
	movl	%eax, 4(%r10,%rdx,4)
	addq	$2, %rdx
	cmpq	%rdx, %r8
	jne	LBB0_16
	jmp	LBB0_17
LBB0_3:
	leaq	(%rcx,%r8,4), %rdx
	leaq	(%r10,%r8,4), %rdi
	leaq	(%rsi,%r8,8), %rbx
	cmpq	%rdi, %rcx
	setb	%r14b
	cmpq	%rdx, %r10
	setb	%r15b
	cmpq	%rbx, %rcx
	setb	%al
	cmpq	%rsi, %rdx
	seta	%r9b
	cmpq	%rbx, %r10
	setb	%bl
	cmpq	%rsi, %rdi
	seta	%r11b
	xorl	%edx, %edx
	testb	%r15b, %r14b
	jne	LBB0_13
## %bb.4:
	andb	%r9b, %al
	jne	LBB0_13
## %bb.5:
	andb	%r11b, %bl
	jne	LBB0_13
## %bb.6:
	movl	%r8d, %edx
	andl	$-8, %edx
	leaq	-8(%rdx), %rax
	movq	%rax, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%r9, %rax
	andq	$-2, %rax
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rsi,%rdi,8), %xmm0
	movups	16(%rsi,%rdi,8), %xmm1
	movups	32(%rsi,%rdi,8), %xmm2
	movups	48(%rsi,%rdi,8), %xmm3
	movaps	%xmm0, %xmm4
	shufps	$136, %xmm1, %xmm4              ## xmm4 = xmm4[0,2],xmm1[0,2]
	movaps	%xmm2, %xmm5
	shufps	$136, %xmm3, %xmm5              ## xmm5 = xmm5[0,2],xmm3[0,2]
	shufps	$221, %xmm1, %xmm0              ## xmm0 = xmm0[1,3],xmm1[1,3]
	shufps	$221, %xmm3, %xmm2              ## xmm2 = xmm2[1,3],xmm3[1,3]
	movups	%xmm0, (%rcx,%rdi,4)
	movups	%xmm2, 16(%rcx,%rdi,4)
	movups	%xmm4, (%r10,%rdi,4)
	movups	%xmm5, 16(%r10,%rdi,4)
	movups	64(%rsi,%rdi,8), %xmm0
	movups	80(%rsi,%rdi,8), %xmm1
	movups	96(%rsi,%rdi,8), %xmm2
	movups	112(%rsi,%rdi,8), %xmm3
	movaps	%xmm0, %xmm4
	shufps	$136, %xmm1, %xmm4              ## xmm4 = xmm4[0,2],xmm1[0,2]
	movaps	%xmm2, %xmm5
	shufps	$136, %xmm3, %xmm5              ## xmm5 = xmm5[0,2],xmm3[0,2]
	shufps	$221, %xmm1, %xmm0              ## xmm0 = xmm0[1,3],xmm1[1,3]
	shufps	$221, %xmm3, %xmm2              ## xmm2 = xmm2[1,3],xmm3[1,3]
	movups	%xmm0, 32(%rcx,%rdi,4)
	movups	%xmm2, 48(%rcx,%rdi,4)
	movups	%xmm4, 32(%r10,%rdi,4)
	movups	%xmm5, 48(%r10,%rdi,4)
	addq	$16, %rdi
	addq	$-2, %rax
	jne	LBB0_9
## %bb.10:
	testb	$1, %r9b
	je	LBB0_12
LBB0_11:
	leaq	(,%rdi,8), %rax
	orq	$32, %rax
	movups	(%rsi,%rdi,8), %xmm0
	movups	16(%rsi,%rdi,8), %xmm1
	movups	(%rsi,%rax), %xmm2
	movups	16(%rsi,%rax), %xmm3
	movaps	%xmm0, %xmm4
	shufps	$136, %xmm1, %xmm4              ## xmm4 = xmm4[0,2],xmm1[0,2]
	movaps	%xmm2, %xmm5
	shufps	$136, %xmm3, %xmm5              ## xmm5 = xmm5[0,2],xmm3[0,2]
	shufps	$221, %xmm1, %xmm0              ## xmm0 = xmm0[1,3],xmm1[1,3]
	shufps	$221, %xmm3, %xmm2              ## xmm2 = xmm2[1,3],xmm3[1,3]
	movups	%xmm0, (%rcx,%rdi,4)
	movups	%xmm2, 16(%rcx,%rdi,4)
	movups	%xmm4, (%r10,%rdi,4)
	movups	%xmm5, 16(%r10,%rdi,4)
LBB0_12:
	cmpq	%r8, %rdx
	jne	LBB0_13
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%edi, %edi
	testb	$1, %r9b
	jne	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bcm_sdhci_dmacb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_sdhci_dmacb
_bcm_sdhci_dmacb:                       ; @bcm_sdhci_dmacb
	.cfi_startproc
; %bb.0:
	stp	w3, w2, [x0]
	cmp	w2, #1
	b.lt	LBB0_11
; %bb.1:
	ldp	x10, x9, [x0, #8]
	mov	w8, w2
	cmp	w2, #8
	b.hs	LBB0_3
; %bb.2:
	mov	x11, #0
	b	LBB0_9
LBB0_3:
	mov	x11, #0
	lsl	x12, x8, #2
	add	x14, x10, x12
	add	x13, x1, x8, lsl #3
	cmp	x9, x13
	add	x15, x9, x12
	ccmp	x15, x1, #0, lo
	cset	w12, hi
	cmp	x10, x13
	ccmp	x14, x1, #0, lo
	cset	w13, hi
	cmp	x10, x15
	ccmp	x9, x14, #2, lo
	b.lo	LBB0_9
; %bb.4:
	tbnz	w12, #0, LBB0_9
; %bb.5:
	tbnz	w13, #0, LBB0_9
; %bb.6:
	and	x11, x8, #0xfffffff8
	add	x12, x1, #32
	add	x13, x9, #16
	add	x14, x10, #16
	mov	x15, x11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	x16, x12, #32
	ld2.4s	{ v0, v1 }, [x16]
	ld2.4s	{ v2, v3 }, [x12]
	stp	q1, q3, [x13, #-16]
	stp	q0, q2, [x14, #-16]
	add	x12, x12, #64
	add	x13, x13, #32
	add	x14, x14, #32
	subs	x15, x15, #8
	b.ne	LBB0_7
; %bb.8:
	cmp	x11, x8
	b.eq	LBB0_11
LBB0_9:
	lsl	x12, x11, #2
	add	x10, x10, x12
	add	x9, x9, x12
	add	x12, x1, x11, lsl #3
	add	x12, x12, #4
	sub	x8, x8, x11
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x12]
	str	w11, [x9], #4
	ldur	w11, [x12, #-4]
	str	w11, [x10], #4
	add	x12, x12, #8
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_11:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bcm_sdhci_dmacb
.subsections_via_symbols
