	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_csi_queue_setup
_sun4i_csi_queue_setup:                 ## @sun4i_csi_queue_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	callq	_vb2_get_drv_priv
	movl	(%rax), %r9d
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.1:
	cmpl	%r9d, %ecx
	jne	LBB0_7
## %bb.2:
	testl	%r9d, %r9d
	je	LBB0_14
## %bb.3:
	movq	8(%rax), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rdx,4), %ecx
	cmpl	(%rax,%rdx,4), %ecx
	jb	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdx
	cmpq	%rdx, %r9
	jne	LBB0_4
	jmp	LBB0_14
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_25
LBB0_8:
	movl	%r9d, (%r14)
	testl	%r9d, %r9d
	je	LBB0_14
## %bb.9:
	movq	8(%rax), %rdx
	xorl	%esi, %esi
	cmpl	$8, %r9d
	jb	LBB0_21
## %bb.10:
	movq	%rbx, %rax
	subq	%rdx, %rax
	cmpq	$32, %rax
	jb	LBB0_21
## %bb.11:
	movl	%r9d, %esi
	andl	$-8, %esi
	leaq	-8(%rsi), %rax
	movq	%rax, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %r8d
	andl	$3, %r8d
	cmpq	$24, %rax
	jae	LBB0_15
## %bb.12:
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_14:
	xorl	%eax, %eax
	jmp	LBB0_25
LBB0_15:
	andq	$-4, %rdi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rdx,%rax,4), %xmm0
	movups	16(%rdx,%rax,4), %xmm1
	movups	%xmm0, (%rbx,%rax,4)
	movups	%xmm1, 16(%rbx,%rax,4)
	movups	32(%rdx,%rax,4), %xmm0
	movups	48(%rdx,%rax,4), %xmm1
	movups	%xmm0, 32(%rbx,%rax,4)
	movups	%xmm1, 48(%rbx,%rax,4)
	movups	64(%rdx,%rax,4), %xmm0
	movups	80(%rdx,%rax,4), %xmm1
	movups	%xmm0, 64(%rbx,%rax,4)
	movups	%xmm1, 80(%rbx,%rax,4)
	movups	96(%rdx,%rax,4), %xmm0
	movups	112(%rdx,%rax,4), %xmm1
	movups	%xmm0, 96(%rbx,%rax,4)
	movups	%xmm1, 112(%rbx,%rax,4)
	addq	$32, %rax
	addq	$-4, %rdi
	jne	LBB0_16
LBB0_17:
	testq	%r8, %r8
	je	LBB0_20
## %bb.18:
	leaq	(%rbx,%rax,4), %rdi
	addq	$16, %rdi
	leaq	(%rdx,%rax,4), %rax
	addq	$16, %rax
	shlq	$5, %r8
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rax,%rcx), %xmm0
	movups	(%rax,%rcx), %xmm1
	movups	%xmm0, -16(%rdi,%rcx)
	movups	%xmm1, (%rdi,%rcx)
	addq	$32, %rcx
	cmpq	%rcx, %r8
	jne	LBB0_19
LBB0_20:
	xorl	%eax, %eax
	cmpq	%r9, %rsi
	je	LBB0_25
LBB0_21:
	movq	%rsi, %rdi
	notq	%rdi
	addq	%r9, %rdi
	movq	%r9, %rax
	andq	$3, %rax
	je	LBB0_23
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rsi,4), %ecx
	movl	%ecx, (%rbx,%rsi,4)
	incq	%rsi
	decq	%rax
	jne	LBB0_22
LBB0_23:
	xorl	%eax, %eax
	cmpq	$3, %rdi
	jb	LBB0_25
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rsi,4), %ecx
	movl	%ecx, (%rbx,%rsi,4)
	movl	4(%rdx,%rsi,4), %ecx
	movl	%ecx, 4(%rbx,%rsi,4)
	movl	8(%rdx,%rsi,4), %ecx
	movl	%ecx, 8(%rbx,%rsi,4)
	movl	12(%rdx,%rsi,4), %ecx
	movl	%ecx, 12(%rbx,%rsi,4)
	addq	$4, %rsi
	cmpq	%rsi, %r9
	jne	LBB0_24
LBB0_25:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_sun4i_csi_queue_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_csi_queue_setup
_sun4i_csi_queue_setup:                 ; @sun4i_csi_queue_setup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x3
	mov	x20, x2
	bl	_vb2_get_drv_priv
	ldr	w8, [x0]
	ldr	w9, [x20]
	cbz	w9, LBB0_7
; %bb.1:
	cmp	w9, w8
	b.ne	LBB0_6
; %bb.2:
	cbz	w8, LBB0_15
; %bb.3:
	ldr	x9, [x0, #8]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x19]
	ldr	w11, [x9]
	cmp	w10, w11
	b.lo	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x19, x19, #4
	add	x9, x9, #4
	subs	x8, x8, #1
	b.ne	LBB0_4
	b	LBB0_15
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_7:
	str	w8, [x20]
	cbz	w8, LBB0_15
; %bb.8:
	mov	x9, #0
	ldr	x10, [x0, #8]
	cmp	w8, #16
	b.lo	LBB0_13
; %bb.9:
	sub	x11, x19, x10
	cmp	x11, #64
	b.lo	LBB0_13
; %bb.10:
	and	x9, x8, #0xfffffff0
	add	x11, x19, #32
	add	x12, x10, #32
	mov	x13, x9
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	stp	q0, q1, [x11, #-32]
	stp	q2, q3, [x11], #64
	subs	x13, x13, #16
	b.ne	LBB0_11
; %bb.12:
	cmp	x9, x8
	b.eq	LBB0_15
LBB0_13:
	lsl	x12, x9, #2
	add	x11, x19, x12
	add	x10, x10, x12
	sub	x8, x8, x9
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x10], #4
	str	w9, [x11], #4
	subs	x8, x8, #1
	b.ne	LBB0_14
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_sun4i_csi_queue_setup
.subsections_via_symbols
