	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_vdec_g_v_ctrl
_mtk_vdec_g_v_ctrl:                     ## @mtk_vdec_g_v_ctrl
	.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	%rdi, %r14
	callq	_ctrl_to_ctx
	cmpl	$128, (%r14)
	jne	LBB0_4
## %bb.1:
	movl	4(%rax), %ecx
	movq	_MTK_STATE_HEADER@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jge	LBB0_2
## %bb.3:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_mtk_v4l2_debug
	movl	$0, 4(%r14)
	jmp	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_2:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTK_STATE_HEADER,4,2           ## @MTK_STATE_HEADER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Seqinfo not ready"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_vdec_g_v_ctrl
_mtk_vdec_g_v_ctrl:                     ; @mtk_vdec_g_v_ctrl
	.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, x0
	bl	_ctrl_to_ctx
	ldr	w9, [x19]
	cmp	w9, #128
	b.ne	LBB0_3
; %bb.1:
	mov	x8, x0
	ldr	w9, [x0, #4]
Lloh0:
	adrp	x10, _MTK_STATE_HEADER@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MTK_STATE_HEADER@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ge	LBB0_4
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	bl	_mtk_v4l2_debug
	mov	w0, #0
	str	wzr, [x19, #4]
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	w0, #0
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MTK_STATE_HEADER,4,2           ; @MTK_STATE_HEADER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Seqinfo not ready"

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