	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtk_vcodec_dec_ctrls_setup     ## -- Begin function mtk_vcodec_dec_ctrls_setup
	.p2align	4, 0x90
_mtk_vcodec_dec_ctrls_setup:            ## @mtk_vcodec_dec_ctrls_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$1, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_MIN_BUFFERS_FOR_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, (%rsp)
	movq	_mtk_vcodec_dec_ctrl_ops@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	movl	$32, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CTRL_FLAG_VOLATILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
	movq	_V4L2_CID_MPEG_VIDEO_VP9_PROFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_V4L2_MPEG_VIDEO_VP9_PROFILE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%r8d, %r8d
	movl	%ecx, %r9d
	callq	_v4l2_ctrl_new_std_menu
	movl	(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_mtk_v4l2_err
	movl	(%rbx), %r14d
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_v4l2_ctrl_handler_setup
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mtk_vcodec_dec_ctrl_ops,4,2    ## @mtk_vcodec_dec_ctrl_ops
	.comm	_V4L2_CID_MIN_BUFFERS_FOR_CAPTURE,4,2 ## @V4L2_CID_MIN_BUFFERS_FOR_CAPTURE
	.comm	_V4L2_CTRL_FLAG_VOLATILE,4,2    ## @V4L2_CTRL_FLAG_VOLATILE
	.comm	_V4L2_CID_MPEG_VIDEO_VP9_PROFILE,4,2 ## @V4L2_CID_MPEG_VIDEO_VP9_PROFILE
	.comm	_V4L2_MPEG_VIDEO_VP9_PROFILE_0,4,2 ## @V4L2_MPEG_VIDEO_VP9_PROFILE_0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Adding control failed %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtk_vcodec_dec_ctrls_setup     ; -- Begin function mtk_vcodec_dec_ctrls_setup
	.p2align	2
_mtk_vcodec_dec_ctrls_setup:            ; @mtk_vcodec_dec_ctrls_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, x0
	mov	w1, #1
	bl	_v4l2_ctrl_handler_init
Lloh0:
	adrp	x8, _V4L2_CID_MIN_BUFFERS_FOR_CAPTURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_CID_MIN_BUFFERS_FOR_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x20, _mtk_vcodec_dec_ctrl_ops@GOTPAGE
Lloh4:
	ldr	x20, [x20, _mtk_vcodec_dec_ctrl_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	mov	w4, #32
	mov	w5, #1
	mov	w6, #1
	bl	_v4l2_ctrl_new_std
Lloh5:
	adrp	x8, _V4L2_CTRL_FLAG_VOLATILE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_CTRL_FLAG_VOLATILE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
Lloh8:
	adrp	x8, _V4L2_CID_MPEG_VIDEO_VP9_PROFILE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_CID_MPEG_VIDEO_VP9_PROFILE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _V4L2_MPEG_VIDEO_VP9_PROFILE_0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_MPEG_VIDEO_VP9_PROFILE_0@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #0
	mov	x5, x3
	bl	_v4l2_ctrl_new_std_menu
	ldr	w1, [x19]
	cbz	w1, LBB0_2
; %bb.1:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_mtk_v4l2_err
	ldr	w0, [x19]
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_v4l2_ctrl_handler_setup
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_mtk_vcodec_dec_ctrl_ops,4,2    ; @mtk_vcodec_dec_ctrl_ops
	.comm	_V4L2_CID_MIN_BUFFERS_FOR_CAPTURE,4,2 ; @V4L2_CID_MIN_BUFFERS_FOR_CAPTURE
	.comm	_V4L2_CTRL_FLAG_VOLATILE,4,2    ; @V4L2_CTRL_FLAG_VOLATILE
	.comm	_V4L2_CID_MPEG_VIDEO_VP9_PROFILE,4,2 ; @V4L2_CID_MPEG_VIDEO_VP9_PROFILE
	.comm	_V4L2_MPEG_VIDEO_VP9_PROFILE_0,4,2 ; @V4L2_MPEG_VIDEO_VP9_PROFILE_0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Adding control failed %d"

.subsections_via_symbols
