	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vb2ops_vdec_queue_setup
_vb2ops_vdec_queue_setup:               ## @vb2ops_vdec_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	%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	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_vb2_get_drv_priv
	movq	%rax, %r12
	movl	(%r15), %esi
	movq	%rax, %rdi
	callq	_mtk_vdec_get_q_data
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%r13), %r8d
	testq	%r8, %r8
	je	LBB0_7
## %bb.3:
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rcx,4), %edx
	cmpl	(%rax,%rcx,4), %edx
	jb	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rcx
	cmpq	%rcx, %r8
	jne	LBB0_5
	jmp	LBB0_9
LBB0_1:
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_mtk_v4l2_err
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_7:
	movl	(%r15), %ecx
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpl	(%rdx), %ecx
	sete	%sil
	incl	%esi
	movl	%esi, (%r13)
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rcx,4), %edx
	movl	%edx, (%rbx,%rcx,4)
	incq	%rcx
	movl	(%r13), %r8d
	cmpq	%r8, %rcx
	jb	LBB0_8
LBB0_9:
	movl	(%r12), %edx
	movl	(%r15), %ecx
	movl	(%r14), %r9d
	movl	(%rbx), %eax
	movl	4(%rbx), %ebx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
                                        ## kill: def $r8d killed $r8d killed $r8
	pushq	%rbx
	pushq	%rax
	callq	_mtk_v4l2_debug
	addq	$16, %rsp
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vq->type=%d err\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
L_.str.1:                               ## @.str.1
	.asciz	"[%d]\t type = %d, get %d plane(s), %d buffer(s) of size 0x%x 0x%x "

	.no_dead_strip	_vb2ops_vdec_queue_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vb2ops_vdec_queue_setup
_vb2ops_vdec_queue_setup:               ; @vb2ops_vdec_queue_setup
	.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	x19, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	bl	_vb2_get_drv_priv
	mov	x22, x0
	ldr	w1, [x21]
	bl	_mtk_vdec_get_q_data
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w4, [x23]
	cbz	w4, LBB0_7
; %bb.2:
	ldr	x8, [x0]
	mov	x9, x4
	mov	x10, x19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	ldr	w12, [x8]
	cmp	w11, w12
	b.lo	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #4
	add	x8, x8, #4
	subs	x9, x9, #1
	b.ne	LBB0_3
	b	LBB0_10
LBB0_5:
	ldr	w1, [x21]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_mtk_v4l2_err
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_7:
	mov	x8, #0
	ldr	w9, [x21]
Lloh5:
	adrp	x10, _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w9, w10
	mov	w9, #1
	cinc	w9, w9, eq
	str	w9, [x23]
	ldr	x9, [x0]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x10, x8, #2
	ldr	w11, [x9, x10]
	str	w11, [x19, x10]
	add	x8, x8, #1
	ldr	w4, [x23]
	cmp	x8, x4
	b.lo	LBB0_8
; %bb.9:
                                        ; kill: def $w4 killed $w4 killed $x4 def $x4
LBB0_10:
	ldr	w2, [x22]
	ldr	w3, [x21]
	ldr	w5, [x20]
	ldp	w6, w7, [x19]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_mtk_v4l2_debug
	mov	w0, #0
LBB0_11:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vq->type=%d err\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
l_.str.1:                               ; @.str.1
	.asciz	"[%d]\t type = %d, get %d plane(s), %d buffer(s) of size 0x%x 0x%x "

	.no_dead_strip	_vb2ops_vdec_queue_setup
.subsections_via_symbols
