	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_venc_s_ctrl
_vidioc_venc_s_ctrl:                    ## @vidioc_venc_s_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_ctrl_to_ctx
	movq	%rax, %r14
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$10, %eax
	ja	LBB0_14
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movl	4(%rbx), %edx
	leaq	L_.str.5(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_mtk_v4l2_debug
	movl	4(%rbx), %eax
	movl	%eax, 24(%r14)
	jmp	LBB0_15
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_15
LBB0_6:
	movl	4(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_mtk_v4l2_debug
	movl	4(%rbx), %eax
	movl	%eax, 28(%r14)
	jmp	LBB0_15
LBB0_8:
	movl	4(%rbx), %edx
	leaq	L_.str.6(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_mtk_v4l2_debug
	movl	4(%rbx), %eax
	movl	%eax, 20(%r14)
	jmp	LBB0_15
LBB0_5:
	movl	4(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_mtk_v4l2_debug
	movl	4(%rbx), %eax
	movl	%eax, 32(%r14)
	jmp	LBB0_15
LBB0_9:
	movl	4(%rbx), %edx
	leaq	L_.str.7(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_mtk_v4l2_debug
	movl	4(%rbx), %eax
	movl	%eax, 16(%r14)
	jmp	LBB0_15
LBB0_10:
	movl	4(%rbx), %edx
	leaq	L_.str.8(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_mtk_v4l2_debug
	movl	4(%rbx), %eax
	movl	%eax, 12(%r14)
	movq	_MTK_ENCODE_PARAM_INTRA_PERIOD@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movl	4(%rbx), %edx
	leaq	L_.str.9(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_mtk_v4l2_debug
	movl	4(%rbx), %eax
	movl	%eax, 8(%r14)
	movq	_MTK_ENCODE_PARAM_GOP_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_4:
	movl	4(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_mtk_v4l2_debug
	movl	4(%rbx), %eax
	movl	%eax, 36(%r14)
	jmp	LBB0_15
LBB0_12:
	leaq	L_.str.10(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_mtk_v4l2_debug
	movl	$1, 4(%r14)
	movq	_MTK_ENCODE_PARAM_FORCE_INTRA@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_3:
	movl	4(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_mtk_v4l2_debug
	movl	4(%rbx), %eax
	movl	%eax, 40(%r14)
	jmp	LBB0_15
LBB0_2:
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_mtk_v4l2_debug
	movl	4(%rbx), %eax
	movl	%eax, 44(%r14)
	movq	_MTK_ENCODE_PARAM_BITRATE@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_15:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_4
	.long	L0_0_set_12
	.long	L0_0_set_3
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"V4L2_CID_MPEG_VIDEO_BITRATE val = %d"

	.comm	_MTK_ENCODE_PARAM_BITRATE,4,2   ## @MTK_ENCODE_PARAM_BITRATE
L_.str.1:                               ## @.str.1
	.asciz	"V4L2_CID_MPEG_VIDEO_B_FRAMES val = %d"

L_.str.2:                               ## @.str.2
	.asciz	"V4L2_CID_MPEG_VIDEO_FRAME_RC_ENABLE val = %d"

L_.str.3:                               ## @.str.3
	.asciz	"V4L2_CID_MPEG_VIDEO_H264_MAX_QP val = %d"

L_.str.4:                               ## @.str.4
	.asciz	"V4L2_CID_MPEG_VIDEO_HEADER_MODE val = %d"

L_.str.5:                               ## @.str.5
	.asciz	"V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE val = %d"

L_.str.6:                               ## @.str.6
	.asciz	"V4L2_CID_MPEG_VIDEO_H264_PROFILE val = %d"

L_.str.7:                               ## @.str.7
	.asciz	"V4L2_CID_MPEG_VIDEO_H264_LEVEL val = %d"

L_.str.8:                               ## @.str.8
	.asciz	"V4L2_CID_MPEG_VIDEO_H264_I_PERIOD val = %d"

	.comm	_MTK_ENCODE_PARAM_INTRA_PERIOD,4,2 ## @MTK_ENCODE_PARAM_INTRA_PERIOD
L_.str.9:                               ## @.str.9
	.asciz	"V4L2_CID_MPEG_VIDEO_GOP_SIZE val = %d"

	.comm	_MTK_ENCODE_PARAM_GOP_SIZE,4,2  ## @MTK_ENCODE_PARAM_GOP_SIZE
L_.str.10:                              ## @.str.10
	.asciz	"V4L2_CID_MPEG_VIDEO_FORCE_KEY_FRAME"

	.comm	_MTK_ENCODE_PARAM_FORCE_INTRA,4,2 ## @MTK_ENCODE_PARAM_FORCE_INTRA
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vidioc_venc_s_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_venc_s_ctrl
_vidioc_venc_s_ctrl:                    ; @vidioc_venc_s_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_ctrl_to_ctx
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #10
	b.hi	LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x20, #4]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.5@PAGE
Lloh3:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #2
	bl	_mtk_v4l2_debug
	mov	w0, #0
	ldr	w8, [x20, #4]
	str	w8, [x19, #24]
	b	LBB0_15
LBB0_3:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_4:
	ldr	w8, [x20, #4]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.4@PAGE
Lloh8:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #2
	bl	_mtk_v4l2_debug
	mov	w0, #0
	ldr	w8, [x20, #4]
	str	w8, [x19, #28]
	b	LBB0_15
LBB0_5:
	ldr	w8, [x20, #4]
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.6@PAGE
Lloh10:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #2
	bl	_mtk_v4l2_debug
	mov	w0, #0
	ldr	w8, [x20, #4]
	str	w8, [x19, #20]
	b	LBB0_15
LBB0_6:
	ldr	w8, [x20, #4]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #2
	bl	_mtk_v4l2_debug
	mov	w0, #0
	ldr	w8, [x20, #4]
	str	w8, [x19, #32]
	b	LBB0_15
LBB0_7:
	ldr	w8, [x20, #4]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.7@PAGE
Lloh14:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #2
	bl	_mtk_v4l2_debug
	mov	w0, #0
	ldr	w8, [x20, #4]
	str	w8, [x19, #16]
	b	LBB0_15
LBB0_8:
	ldr	w8, [x20, #4]
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.8@PAGE
Lloh16:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #2
	bl	_mtk_v4l2_debug
	mov	w0, #0
	ldr	w8, [x20, #4]
	str	w8, [x19, #12]
Lloh17:
	adrp	x8, _MTK_ENCODE_PARAM_INTRA_PERIOD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MTK_ENCODE_PARAM_INTRA_PERIOD@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:
	ldr	w8, [x20, #4]
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.9@PAGE
Lloh20:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w0, #2
	bl	_mtk_v4l2_debug
	mov	w0, #0
	ldr	w8, [x20, #4]
	str	w8, [x19, #8]
Lloh21:
	adrp	x8, _MTK_ENCODE_PARAM_GOP_SIZE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MTK_ENCODE_PARAM_GOP_SIZE@GOTPAGEOFF]
	b	LBB0_14
LBB0_10:
	ldr	w8, [x20, #4]
	str	x8, [sp]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #2
	bl	_mtk_v4l2_debug
	mov	w0, #0
	ldr	w8, [x20, #4]
	str	w8, [x19, #36]
	b	LBB0_15
LBB0_11:
Lloh25:
	adrp	x1, l_.str.10@PAGE
Lloh26:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	w0, #2
	bl	_mtk_v4l2_debug
	mov	w0, #0
Lloh27:
	adrp	x8, _MTK_ENCODE_PARAM_FORCE_INTRA@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MTK_ENCODE_PARAM_FORCE_INTRA@GOTPAGEOFF]
	mov	w9, #1
Lloh29:
	ldr	w8, [x8]
	ldr	w10, [x19]
	orr	w8, w10, w8
	stp	w8, w9, [x19]
	b	LBB0_15
LBB0_12:
	ldr	w8, [x20, #4]
	str	x8, [sp]
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_mtk_v4l2_debug
	mov	w0, #0
	ldr	w8, [x20, #4]
	str	w8, [x19, #40]
	b	LBB0_15
LBB0_13:
	ldr	w8, [x20, #4]
	str	x8, [sp]
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_mtk_v4l2_debug
	mov	w0, #0
	ldr	w8, [x20, #4]
	str	w8, [x19, #44]
Lloh34:
	adrp	x8, _MTK_ENCODE_PARAM_BITRATE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MTK_ENCODE_PARAM_BITRATE@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"V4L2_CID_MPEG_VIDEO_BITRATE val = %d"

	.comm	_MTK_ENCODE_PARAM_BITRATE,4,2   ; @MTK_ENCODE_PARAM_BITRATE
l_.str.1:                               ; @.str.1
	.asciz	"V4L2_CID_MPEG_VIDEO_B_FRAMES val = %d"

l_.str.2:                               ; @.str.2
	.asciz	"V4L2_CID_MPEG_VIDEO_FRAME_RC_ENABLE val = %d"

l_.str.3:                               ; @.str.3
	.asciz	"V4L2_CID_MPEG_VIDEO_H264_MAX_QP val = %d"

l_.str.4:                               ; @.str.4
	.asciz	"V4L2_CID_MPEG_VIDEO_HEADER_MODE val = %d"

l_.str.5:                               ; @.str.5
	.asciz	"V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE val = %d"

l_.str.6:                               ; @.str.6
	.asciz	"V4L2_CID_MPEG_VIDEO_H264_PROFILE val = %d"

l_.str.7:                               ; @.str.7
	.asciz	"V4L2_CID_MPEG_VIDEO_H264_LEVEL val = %d"

l_.str.8:                               ; @.str.8
	.asciz	"V4L2_CID_MPEG_VIDEO_H264_I_PERIOD val = %d"

	.comm	_MTK_ENCODE_PARAM_INTRA_PERIOD,4,2 ; @MTK_ENCODE_PARAM_INTRA_PERIOD
l_.str.9:                               ; @.str.9
	.asciz	"V4L2_CID_MPEG_VIDEO_GOP_SIZE val = %d"

	.comm	_MTK_ENCODE_PARAM_GOP_SIZE,4,2  ; @MTK_ENCODE_PARAM_GOP_SIZE
l_.str.10:                              ; @.str.10
	.asciz	"V4L2_CID_MPEG_VIDEO_FORCE_KEY_FRAME"

	.comm	_MTK_ENCODE_PARAM_FORCE_INTRA,4,2 ; @MTK_ENCODE_PARAM_FORCE_INTRA
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vidioc_venc_s_ctrl
.subsections_via_symbols
