	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xvip_dma_buffer_queue
_xvip_dma_buffer_queue:                 ## @xvip_dma_buffer_queue
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_to_vb2_v4l2_buffer
	movq	%rax, %r14
	movl	(%r15), %edi
	callq	_vb2_get_drv_priv
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_to_xvip_dma_buffer
	movq	%rax, %r14
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_vb2_dma_contig_plane_dma_addr
	movq	8(%rbx), %rcx
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rsi
	movq	_DMA_PREP_INTERRUPT@GOTPCREL(%rip), %rdi
	movq	_DMA_CTRL_ACK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rdi), %edx
	cmpq	(%rsi), %rcx
	jne	LBB0_2
## %bb.1:
	leaq	64(%rbx), %r8
	movl	$1, %r12d
	xorl	%edi, %edi
	movq	_DMA_DEV_TO_MEM@GOTPCREL(%rip), %rsi
	jmp	LBB0_3
LBB0_2:
	leaq	48(%rbx), %r8
	movl	$1, %edi
	movq	_DMA_MEM_TO_DEV@GOTPCREL(%rip), %rsi
LBB0_3:
	movl	(%rsi), %ecx
	movq	%rax, (%r8)
	leaq	32(%rbx), %rsi
	movl	%ecx, 56(%rbx)
	movl	%edi, 32(%rbx)
	movl	%r12d, 36(%rbx)
	movl	$1, 40(%rbx)
	movslq	72(%rbx), %rax
	movq	88(%rbx), %rcx
	movq	96(%rbx), %rdi
	movslq	(%rdi), %rdi
	imulq	%rax, %rdi
	movl	%edi, (%rcx)
	movq	80(%rbx), %rax
	subq	%rdi, %rax
	movq	%rax, 8(%rcx)
	movl	(%rbx), %edi
	movl	76(%rbx), %eax
	movl	%eax, 44(%rbx)
	callq	_dmaengine_prep_interleaved_dma
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rax, %r15
	leaq	8(%rbx), %r12
	movq	_xvip_dma_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%r14, (%r15)
	leaq	16(%rbx), %r13
	movq	%r13, %rdi
	callq	_spin_lock_irq
	movq	%rbx, %rsi
	addq	$20, %rsi
	movq	%r14, %rdi
	callq	_list_add_tail
	movq	%r13, %rdi
	callq	_spin_unlock_irq
	movq	%r15, %rdi
	callq	_dmaengine_submit
	movq	%r12, %rdi
	callq	_vb2_is_streaming
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dma_async_issue_pending        ## TAILCALL
LBB0_6:
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	addq	$4, %r14
	movq	_VB2_BUF_STATE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vb2_buffer_done                ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_DMA_PREP_INTERRUPT,4,2         ## @DMA_PREP_INTERRUPT
	.comm	_DMA_CTRL_ACK,4,2               ## @DMA_CTRL_ACK
	.comm	_DMA_DEV_TO_MEM,4,2             ## @DMA_DEV_TO_MEM
	.comm	_DMA_MEM_TO_DEV,4,2             ## @DMA_MEM_TO_DEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to prepare DMA transfer\n"

	.comm	_VB2_BUF_STATE_ERROR,4,2        ## @VB2_BUF_STATE_ERROR
	.comm	_xvip_dma_complete,4,2          ## @xvip_dma_complete
	.no_dead_strip	_xvip_dma_buffer_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function xvip_dma_buffer_queue
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
lCPI0_1:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_xvip_dma_buffer_queue:                 ; @xvip_dma_buffer_queue
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x0
	bl	_to_vb2_v4l2_buffer
	mov	x20, x0
	ldr	w0, [x21]
	bl	_vb2_get_drv_priv
	mov	x19, x0
	mov	x0, x20
	bl	_to_xvip_dma_buffer
	mov	x20, x0
	mov	x0, x21
	mov	w1, #0
	bl	_vb2_dma_contig_plane_dma_addr
	mov	x21, x19
	ldr	x8, [x21, #8]!
Lloh0:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	fmov	d0, x9
	fmov	d1, x8
	cmeq	d0, d1, d0
Lloh3:
	adrp	x10, lCPI0_0@PAGE
Lloh4:
	ldr	d1, [x10, lCPI0_0@PAGEOFF]
Lloh5:
	adrp	x10, lCPI0_1@PAGE
Lloh6:
	ldr	d2, [x10, lCPI0_1@PAGEOFF]
Lloh7:
	adrp	x10, _DMA_PREP_INTERRUPT@GOTPAGE
Lloh8:
	ldr	x10, [x10, _DMA_PREP_INTERRUPT@GOTPAGEOFF]
	bsl.8b	v0, v2, v1
Lloh9:
	ldr	w10, [x10]
Lloh10:
	adrp	x11, _DMA_CTRL_ACK@GOTPAGE
Lloh11:
	ldr	x11, [x11, _DMA_CTRL_ACK@GOTPAGEOFF]
Lloh12:
	ldr	w11, [x11]
	orr	w2, w11, w10
	mov	w10, #48
	mov	w11, #64
	cmp	x8, x9
	csel	x8, x11, x10, eq
Lloh13:
	adrp	x9, _DMA_MEM_TO_DEV@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DMA_MEM_TO_DEV@GOTPAGEOFF]
Lloh15:
	adrp	x10, _DMA_DEV_TO_MEM@GOTPAGE
Lloh16:
	ldr	x10, [x10, _DMA_DEV_TO_MEM@GOTPAGEOFF]
	csel	x9, x10, x9, eq
	ldr	w9, [x9]
	str	x0, [x19, x8]
	str	w9, [x19, #56]
	mov	x1, x19
	str	d0, [x1, #32]!
	ldr	x8, [x19, #96]
	ldrsw	x8, [x8]
	ldp	w9, w10, [x19, #72]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	mul	x8, x8, x9
	ldp	x11, x9, [x19, #80]
	str	w8, [x9]
	sub	x8, x11, x8
	str	x8, [x9, #8]
	mov	w8, #1
	stp	w8, w10, [x19, #40]
	ldr	w0, [x19]
	bl	_dmaengine_prep_interleaved_dma
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
Lloh17:
	adrp	x8, _xvip_dma_complete@GOTPAGE
Lloh18:
	ldr	x8, [x8, _xvip_dma_complete@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	str	x20, [x0]
	add	x23, x19, #16
	mov	x0, x23
	bl	_spin_lock_irq
	add	x1, x19, #20
	mov	x0, x20
	bl	_list_add_tail
	mov	x0, x23
	bl	_spin_unlock_irq
	mov	x0, x22
	bl	_dmaengine_submit
	mov	x0, x21
	bl	_vb2_is_streaming
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dma_async_issue_pending
LBB0_3:
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	add	x0, x20, #4
Lloh22:
	adrp	x8, _VB2_BUF_STATE_ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VB2_BUF_STATE_ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_vb2_buffer_done
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdrp	Lloh5, Lloh7
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_DMA_PREP_INTERRUPT,4,2         ; @DMA_PREP_INTERRUPT
	.comm	_DMA_CTRL_ACK,4,2               ; @DMA_CTRL_ACK
	.comm	_DMA_DEV_TO_MEM,4,2             ; @DMA_DEV_TO_MEM
	.comm	_DMA_MEM_TO_DEV,4,2             ; @DMA_MEM_TO_DEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to prepare DMA transfer\n"

	.comm	_VB2_BUF_STATE_ERROR,4,2        ; @VB2_BUF_STATE_ERROR
	.comm	_xvip_dma_complete,4,2          ; @xvip_dma_complete
	.no_dead_strip	_xvip_dma_buffer_queue
.subsections_via_symbols
