	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_decoder_cmd
_vidioc_decoder_cmd:                    ## @vidioc_decoder_cmd
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_fh_to_ctx
	movq	%rax, %r14
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_vidioc_try_decoder_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_mtk_v4l2_debug
	movl	(%r14), %edi
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_v4l2_m2m_get_vq
	movq	%rax, %r12
	movl	(%r15), %eax
	cmpl	$129, %eax
	je	LBB0_9
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.3:
	movl	(%r14), %edi
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_v4l2_m2m_get_vq
	movq	%rax, %rdi
	callq	_vb2_is_streaming
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movq	%r12, %rdi
	callq	_vb2_is_streaming
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	(%r14), %edi
	movq	8(%r14), %rsi
	callq	_v4l2_m2m_buf_queue
	movl	(%r14), %edi
	callq	_v4l2_m2m_try_schedule
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_9:
	movq	%r12, %rdi
	callq	_vb2_clear_last_buffer_dequeued
	jmp	LBB0_11
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
LBB0_5:
	xorl	%ebx, %ebx
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_mtk_v4l2_debug
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"decoder cmd=%u"

	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,4,2 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
L_.str.1:                               ## @.str.1
	.asciz	"Output stream is off. No need to flush."

L_.str.2:                               ## @.str.2
	.asciz	"Capture stream is off. No need to flush."

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vidioc_decoder_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_decoder_cmd
_vidioc_decoder_cmd:                    ; @vidioc_decoder_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x1
	bl	_fh_to_ctx
	mov	x19, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_vidioc_try_decoder_cmd
	cbz	w0, LBB0_2
LBB0_1:
	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
	add	sp, sp, #64
	ret
LBB0_2:
	ldr	w8, [x20]
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_mtk_v4l2_debug
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_v4l2_m2m_get_vq
	mov	x21, x0
	ldr	w8, [x20]
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.4:
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_v4l2_m2m_get_vq
	bl	_vb2_is_streaming
	cbz	w0, LBB0_9
; %bb.5:
	mov	x0, x21
	bl	_vb2_is_streaming
	cbz	w0, LBB0_10
; %bb.6:
	ldr	w0, [x19]
	ldr	x1, [x19, #8]
	bl	_v4l2_m2m_buf_queue
	ldr	w0, [x19]
	bl	_v4l2_m2m_try_schedule
	mov	w0, #0
	b	LBB0_1
LBB0_7:
	mov	x0, x21
	bl	_vb2_clear_last_buffer_dequeued
	mov	w0, #0
	b	LBB0_1
LBB0_8:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
LBB0_9:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	mov	w0, #1
	bl	_mtk_v4l2_debug
	mov	w0, #0
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"decoder cmd=%u"

	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,4,2 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
l_.str.1:                               ; @.str.1
	.asciz	"Output stream is off. No need to flush."

l_.str.2:                               ; @.str.2
	.asciz	"Capture stream is off. No need to flush."

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vidioc_decoder_cmd
.subsections_via_symbols
