	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function coda_start_encoding
_coda_start_encoding:                   ## @coda_start_encoding
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %r12
	leaq	20(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_get_q_data
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_get_q_data
	movq	%rax, %r14
	movl	(%rax), %r13d
	movl	%r13d, -68(%rbp)
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movl	48(%rbx), %edi
	callq	_v4l2_m2m_next_dst_buf
	xorl	%r15d, %r15d
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_vb2_dma_contig_plane_dma_addr
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movl	4(%r14), %ebx
	movq	%r12, %r14
	movq	%r12, %rdi
	callq	_coda_is_initialized
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	cmpl	$129, %r13d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_8
## %bb.3:
	movq	128(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.5:
	cmpq	$0, 8(%rax)
	je	LBB0_6
LBB0_7:
	movl	124(%r12), %esi
	movq	%r12, %rdi
	callq	_coda_set_jpeg_compression_quality
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	188(%r12), %esi
	movq	_CODA_REG_BIT_PARA_BUF_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
	movl	184(%r12), %edi
	callq	_CODA_REG_BIT_RD_PTR
	movq	%r14, %rdi
	movq	%rbx, %r15
	movl	-80(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_coda_write
	movl	184(%r12), %edi
	callq	_CODA_REG_BIT_WR_PTR
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %rbx
	movl	%eax, %edx
	callq	_coda_write
	movq	8(%r14), %rax
	movl	$-131, %edx
	addl	(%rax), %edx
	cmpl	$3, %edx
	ja	LBB0_13
## %bb.9:
	movq	_CODADX6_STREAM_BUF_PIC_RESET@GOTPCREL(%rip), %rcx
	movq	_CODADX6_STREAM_BUF_DYNALLOC_EN@GOTPCREL(%rip), %rax
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_10:
	movq	_CODA9_GDI_WPROT_RGN_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_coda_write
LBB0_11:
	movq	_CODA7_STREAM_BUF_PIC_RESET@GOTPCREL(%rip), %rcx
	movq	_CODA7_STREAM_BUF_DYNALLOC_EN@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_CODA_REG_BIT_STREAM_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
LBB0_13:
	movq	_CODA_FRAME_CHROMA_INTERLEAVE@GOTPCREL(%rip), %rcx
	movq	_CODA9_FRAME_TILED2LINEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%rcx), %esi
	notl	%esi
	andl	(%r12), %esi
	andl	$-1537, %esi                    ## imm = 0xF9FF
	movl	%esi, (%r12)
	movslq	(%rbx), %rdx
	movq	_V4L2_PIX_FMT_NV12@GOTPCREL(%rip), %rdi
	cmpq	%rdx, (%rdi)
	jne	LBB0_15
## %bb.14:
	orl	(%rcx), %esi
	movl	%esi, (%r12)
LBB0_15:
	movq	8(%r12), %rcx
	movq	_GDI_TILED_FRAME_MB_RASTER_MAP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_17
## %bb.16:
	orl	(%rax), %esi
	orl	$1536, %esi                     ## imm = 0x600
	movl	%esi, (%r12)
LBB0_17:
	movq	_CODA_REG_BIT_FRAME_MEM_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
	movq	8(%r14), %rax
	movl	(%rax), %eax
	cmpl	$132, %eax
	jne	LBB0_19
## %bb.18:
	movl	16(%r14), %esi
	movq	_CODADX6_REG_BIT_SEARCH_RAM_BASE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
	movq	8(%r14), %rax
	movl	(%rax), %eax
LBB0_19:
	addl	$-131, %eax
	cmpl	$3, %eax
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	ja	LBB0_20
## %bb.21:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_23:
	cmpl	$130, %r13d
	jne	LBB0_25
## %bb.24:
	movl	12(%rbx), %edi
	movl	$16, %esi
	callq	_round_up
	movq	%rbx, %rdx
	movl	%eax, %ebx
	movq	_CODA7_PICWIDTH_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_CODA7_PICWIDTH_OFFSET@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movl	16(%rdx), %edi
	movl	$16, %esi
	callq	_round_up
	movl	%eax, %esi
	movq	_CODA7_PICHEIGHT_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movq	_CODA_PICHEIGHT_OFFSET@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	orl	%ebx, %esi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_27
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_v4l2_err
	movq	_EFAULT@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	%r15d, %ebx
	jmp	LBB0_101
LBB0_25:
	movq	_CODA7_PICWIDTH_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	12(%rbx), %eax
	movq	_CODA7_PICWIDTH_OFFSET@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_CODA7_PICHEIGHT_MASK@GOTPCREL(%rip), %rcx
	jmp	LBB0_26
LBB0_20:
	xorl	%esi, %esi
	jmp	LBB0_27
LBB0_22:
	movq	_CODADX6_PICWIDTH_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	12(%rbx), %eax
	movq	_CODADX6_PICWIDTH_OFFSET@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_CODADX6_PICHEIGHT_MASK@GOTPCREL(%rip), %rcx
LBB0_26:
	movl	(%rcx), %esi
	andl	16(%rbx), %esi
	movq	_CODA_PICHEIGHT_OFFSET@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	orl	%eax, %esi
LBB0_27:
	movq	_CODA_CMD_ENC_SEQ_SRC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
	cmpl	$129, %r13d
	jne	LBB0_29
## %bb.28:
	movl	$0, 56(%r12)
	movq	_CODA_CMD_ENC_SEQ_SRC_F_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_coda_write
	leaq	136(%r12), %r13
	movq	136(%r12), %rax
	movl	4(%rax), %eax
	movl	%eax, 120(%r12)
	movq	_CODA_CMD_ENC_SEQ_JPG_PARA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_coda_write
	movl	80(%r12), %esi
	movq	_CODA_CMD_ENC_SEQ_JPG_RST_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
	movq	_CODA_CMD_ENC_SEQ_JPG_THUMB_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_coda_write
	movq	_CODA_CMD_ENC_SEQ_JPG_THUMB_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_coda_write
	movq	_CODA_CMD_ENC_SEQ_JPG_THUMB_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_coda_write
	movq	%r12, %rdi
	callq	_coda_jpeg_write_tables
	jmp	LBB0_40
LBB0_29:
	movl	56(%r12), %esi
	movq	_CODA_CMD_ENC_SEQ_SRC_F_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
	movq	136(%r12), %rax
	movl	4(%rax), %eax
	movl	%eax, 120(%r12)
	cmpl	$130, %r13d
	je	LBB0_35
## %bb.30:
	cmpl	$128, %r13d
	jne	LBB0_102
## %bb.31:
	movq	8(%r14), %rax
	cmpl	$133, (%rax)
	jne	LBB0_32
## %bb.33:
	movq	_CODA9_STD_MPEG4@GOTPCREL(%rip), %rax
	jmp	LBB0_34
LBB0_4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kmalloc
	movq	128(%r12), %rcx
	movq	%rax, (%rcx)
	movq	128(%r12), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_7
LBB0_6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kmalloc
	movq	128(%r12), %rcx
	movq	%rax, 8(%rcx)
	jmp	LBB0_7
LBB0_35:
	movq	8(%r14), %rax
	cmpl	$133, (%rax)
	jne	LBB0_36
## %bb.37:
	movq	_CODA9_STD_H264@GOTPCREL(%rip), %rax
	jmp	LBB0_38
LBB0_102:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_v4l2_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_100
LBB0_32:
	movq	_CODA_STD_MPEG4@GOTPCREL(%rip), %rax
LBB0_34:
	movl	(%rax), %esi
	movq	_CODA_CMD_ENC_SEQ_COD_STD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
	xorl	%esi, %esi
	movq	_CODA_CMD_ENC_SEQ_MP4_PARA@GOTPCREL(%rip), %rax
	jmp	LBB0_39
LBB0_36:
	movq	_CODA_STD_H264@GOTPCREL(%rip), %rax
LBB0_38:
	movl	(%rax), %esi
	movq	_CODA_CMD_ENC_SEQ_COD_STD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
	movq	_CODA_264PARAM_DISABLEDEBLK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	60(%r12), %eax
	movq	_CODA_264PARAM_DISABLEDEBLK_OFFSET@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_CODA_264PARAM_DEBLKFILTEROFFSETALPHA_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	64(%r12), %edx
	movq	_CODA_264PARAM_DEBLKFILTEROFFSETALPHA_OFFSET@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_CODA_264PARAM_DEBLKFILTEROFFSETBETA_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	68(%r12), %esi
	movq	_CODA_264PARAM_DEBLKFILTEROFFSETBETA_OFFSET@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	orl	%eax, %edx
	movl	72(%r12), %eax
	movq	_CODA_264PARAM_CONSTRAINEDINTRAPREDFLAG_OFFSET@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%esi, %eax
	orl	%edx, %eax
	movq	_CODA_264PARAM_CHROMAQPOFFSET_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	76(%r12), %esi
	orl	%eax, %esi
	movq	_CODA_CMD_ENC_SEQ_264_PARA@GOTPCREL(%rip), %rax
LBB0_39:
	leaq	136(%r12), %r13
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
	movq	%r12, %rdi
	callq	_coda_slice_mode
	movq	_CODA_CMD_ENC_SEQ_SLICE_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_coda_write
	movl	84(%r12), %esi
	movq	_CODA_CMD_ENC_SEQ_GOP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
LBB0_40:
	movl	88(%r12), %eax
	testl	%eax, %eax
	je	LBB0_41
## %bb.42:
	movq	$0, 92(%r12)
	movq	_CODA_RATECONTROL_BITRATE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_CODA_RATECONTROL_BITRATE_OFFSET@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_CODA_RATECONTROL_ENABLE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	$1, %edx
	orl	%eax, %edx
	movq	_CODA_RATECONTROL_INITIALDELAY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	100(%r12), %ebx
	movq	_CODA_RATECONTROL_INITIALDELAY_OFFSET@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	orl	%edx, %ebx
	movq	8(%r14), %rax
	cmpl	$133, (%rax)
	jne	LBB0_44
## %bb.43:
	movl	$31, %edi
	callq	_BIT
	orl	%eax, %ebx
	jmp	LBB0_44
LBB0_41:
	xorl	%ebx, %ebx
LBB0_44:
	movq	_CODA_CMD_ENC_SEQ_RC_PARA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_coda_write
	movl	104(%r12), %esi
	movq	_CODA_CMD_ENC_SEQ_RC_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
	movl	108(%r12), %esi
	movq	_CODA_CMD_ENC_SEQ_INTRA_REFRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
	movq	_CODA_CMD_ENC_SEQ_BB_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	-80(%rbp), %esi                 ## 4-byte Reload
	callq	_coda_write
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leal	1023(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$10, %esi
	movq	_CODA_CMD_ENC_SEQ_BB_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
	movq	8(%r14), %rax
	cmpl	$133, (%rax)
	jne	LBB0_45
## %bb.46:
	movq	_CODA9_DEFAULT_GAMMA@GOTPCREL(%rip), %rax
	jmp	LBB0_47
LBB0_45:
	movq	_CODA_DEFAULT_GAMMA@GOTPCREL(%rip), %rax
LBB0_47:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_49
## %bb.48:
	movq	_CODA_GAMMA_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movq	_CODA_GAMMA_OFFSET@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	movq	_CODA_CMD_ENC_SEQ_RC_GAMMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
LBB0_49:
	movl	112(%r12), %eax
	movl	116(%r12), %esi
	movl	%eax, %ecx
	orl	%esi, %ecx
	je	LBB0_51
## %bb.50:
	movq	_CODA_QPMIN_OFFSET@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_CODA_QPMAX_OFFSET@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	orl	%eax, %esi
	movq	_CODA_CMD_ENC_SEQ_RC_QP_MIN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
LBB0_51:
	movq	8(%r14), %rax
	movl	(%rax), %eax
	cmpl	$133, %eax
	jne	LBB0_54
## %bb.52:
	movq	_CODA9_OPTION_RCQPMAX_OFFSET@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %esi
	shll	%cl, %esi
	movl	116(%r12), %eax
	testl	%eax, %eax
	cmovel	%eax, %esi
	movq	_CODA_DEFAULT_GAMMA@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_63
## %bb.53:
	movq	_CODA9_OPTION_GAMMA_OFFSET@GOTPCREL(%rip), %rax
	jmp	LBB0_62
LBB0_54:
	movq	_CODA_DEFAULT_GAMMA@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_55
## %bb.56:
	cmpl	$132, %eax
	jne	LBB0_58
## %bb.57:
	movq	_CODADX6_OPTION_GAMMA_OFFSET@GOTPCREL(%rip), %rax
	jmp	LBB0_59
LBB0_55:
	xorl	%eax, %eax
	jmp	LBB0_60
LBB0_58:
	movq	_CODA7_OPTION_GAMMA_OFFSET@GOTPCREL(%rip), %rax
LBB0_59:
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
LBB0_60:
	movq	_CODA7_OPTION_RCQPMIN_OFFSET@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %esi
	shll	%cl, %esi
	movl	112(%r12), %ecx
	testl	%ecx, %ecx
	cmovel	%ecx, %esi
	orl	%eax, %esi
	cmpl	$0, 116(%r12)
	je	LBB0_63
## %bb.61:
	movq	_CODA7_OPTION_RCQPMAX_OFFSET@GOTPCREL(%rip), %rax
LBB0_62:
	movb	(%rax), %al
	btsl	%eax, %esi
LBB0_63:
	movq	_CODA_CMD_ENC_SEQ_OPTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
	movq	_CODA_CMD_ENC_SEQ_RC_INTERVAL_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_coda_write
	movq	%r12, %rdi
	callq	_coda_setup_iram
	cmpl	$130, %r15d
	jne	LBB0_70
## %bb.64:
	movq	8(%r14), %rcx
	movl	$-131, %eax
	addl	(%rcx), %eax
	cmpl	$3, %eax
	ja	LBB0_70
## %bb.65:
	leaq	LJTI0_2(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_67:
	movl	152(%r12), %esi
	movq	_CODA7_CMD_ENC_SEQ_SEARCH_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
	movl	156(%r12), %ebx
	movq	_CODA7_CMD_ENC_SEQ_SEARCH_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_69
LBB0_66:
	movq	_FMO_SLICE_SAVE_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shll	$7, %ebx
	movq	_CODADX6_CMD_ENC_SEQ_FMO@GOTPCREL(%rip), %rax
	jmp	LBB0_69
LBB0_68:
	movq	_CODA9_CMD_ENC_SEQ_ME_OPTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_coda_write
	movq	_CODA9_CMD_ENC_SEQ_INTRA_WEIGHT@GOTPCREL(%rip), %rax
LBB0_69:
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_coda_write
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_70:
	movq	_CODA_COMMAND_SEQ_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_coda_command_sync
	testl	%eax, %eax
	js	LBB0_71
## %bb.73:
	movq	_CODA_RET_ENC_SEQ_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_coda_read
	testq	%rax, %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_74
## %bb.75:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movl	$1, 16(%r12)
	cmpl	$129, %r15d
	jne	LBB0_76
## %bb.79:
	movl	$0, 20(%r12)
	xorl	%esi, %esi
	xorl	%ebx, %ebx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_80
LBB0_71:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_72:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_v4l2_err
	jmp	LBB0_100
LBB0_74:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_v4l2_err
	movq	_EFAULT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_100
LBB0_76:
	movq	8(%r14), %rax
	xorl	%ecx, %ecx
	cmpl	$133, (%rax)
	sete	%cl
	leal	2(%rcx,%rcx), %eax
	movl	%eax, 20(%r12)
	movq	%r12, %rdi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_coda_alloc_framebuffers
	testl	%eax, %eax
	js	LBB0_77
## %bb.78:
	movl	8(%r13), %ebx
	movl	$2, %esi
LBB0_80:
	movq	_CODA_CMD_SET_FRAME_BUF_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
	movq	_CODA_CMD_SET_FRAME_BUF_STRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_coda_write
	movq	8(%r14), %rax
	movl	(%rax), %eax
	cmpl	$134, %eax
	je	LBB0_82
## %bb.81:
	cmpl	$131, %eax
	jne	LBB0_83
LBB0_82:
	movl	8(%r13), %esi
	movq	_CODA7_CMD_SET_FRAME_SOURCE_BUF_STRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
	movq	8(%r14), %rax
	movl	(%rax), %eax
LBB0_83:
	cmpl	$132, %eax
	je	LBB0_86
## %bb.84:
	movl	160(%r12), %esi
	movq	_CODA7_CMD_SET_FRAME_AXI_BIT_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
	movl	164(%r12), %esi
	movq	_CODA7_CMD_SET_FRAME_AXI_IPACDC_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
	movl	168(%r12), %esi
	movq	_CODA7_CMD_SET_FRAME_AXI_DBKY_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
	movl	172(%r12), %esi
	movq	_CODA7_CMD_SET_FRAME_AXI_DBKC_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
	movl	176(%r12), %esi
	movq	_CODA7_CMD_SET_FRAME_AXI_OVL_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
	movq	8(%r14), %rax
	cmpl	$133, (%rax)
	jne	LBB0_86
## %bb.85:
	movl	180(%r12), %esi
	movq	_CODA9_CMD_SET_FRAME_AXI_BTP_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
	movslq	(%r13), %rsi
	movq	%r12, %rdi
	callq	_coda9_set_frame_cache
	movq	144(%r12), %rax
	movl	8(%rax), %esi
	movq	_CODA9_CMD_SET_FRAME_SUBSAMP_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
	movq	144(%r12), %rax
	movl	12(%rax), %esi
	movq	_CODA9_CMD_SET_FRAME_SUBSAMP_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_coda_write
LBB0_86:
	movq	_CODA_COMMAND_SET_FRAME_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_coda_command_sync
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_87
## %bb.88:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %ecx
	movl	16(%rax), %r8d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r9
	movl	56(%r12), %eax
	movzwl	%ax, %ebx
	sarl	$16, %eax
	incl	%eax
	subq	$8, %rsp
	leaq	-68(%rbp), %r10
	leaq	L_.str.6(%rip), %rdx
	movl	$1, %edi
	movq	%r12, %rsi
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	callq	_coda_dbg
	addq	$32, %rsp
	movl	48(%r12), %edi
	callq	_v4l2_m2m_next_dst_buf
	movq	%rax, %r15
	movl	-68(%rbp), %eax
	cmpl	$128, %eax
	je	LBB0_96
## %bb.89:
	cmpl	$130, %eax
	movl	%r13d, %ebx
	jne	LBB0_100
## %bb.90:
	movq	_CODA_HEADER_H264_SPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	24(%r12), %r8
	movq	32(%r12), %rax
	movq	(%rax), %rcx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_coda_encode_header
	testl	%eax, %eax
	js	LBB0_99
## %bb.91:
	movq	40(%r12), %rax
	movq	8(%rax), %rax
	cmpl	$133, (%rax)
	je	LBB0_94
## %bb.92:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %esi
	movl	16(%rax), %edx
	movl	%esi, %eax
	orl	%edx, %eax
	testb	$15, %al
	je	LBB0_94
## %bb.93:
	movq	24(%r12), %r8
	movq	32(%r12), %rax
	movq	(%rax), %rcx
	movq	%r12, %rdi
	movl	$8, %r9d
	callq	_coda_h264_sps_fixup
	testl	%eax, %eax
	js	LBB0_99
LBB0_94:
	movq	_CODA_HEADER_H264_PPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	24(%r12), %r8
	movq	32(%r12), %rax
	movq	8(%rax), %rcx
	addq	$8, %r8
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_coda_encode_header
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_100
## %bb.95:
	movq	24(%r12), %rax
	movq	32(%r12), %rcx
	movq	8(%rax), %rdi
	addq	(%rax), %rdi
	movq	16(%rcx), %rsi
	callq	_coda_h264_padding
	movq	24(%r12), %rcx
	movq	%rax, 16(%rcx)
	jmp	LBB0_100
LBB0_87:
	leaq	L_.str.5(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_v4l2_err
	movl	%r13d, %ebx
	jmp	LBB0_100
LBB0_77:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_72
LBB0_96:
	movq	_CODA_HEADER_MP4V_VOS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	24(%r12), %r8
	movq	32(%r12), %rax
	movq	(%rax), %rcx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_coda_encode_header
	testl	%eax, %eax
	js	LBB0_99
## %bb.97:
	movq	_CODA_HEADER_MP4V_VIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	24(%r12), %r8
	movq	32(%r12), %rax
	movq	8(%rax), %rcx
	addq	$8, %r8
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_coda_encode_header
	testl	%eax, %eax
	js	LBB0_99
## %bb.98:
	movq	_CODA_HEADER_MP4V_VOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	24(%r12), %r8
	movq	32(%r12), %rax
	movq	16(%rax), %rcx
	addq	$16, %r8
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_coda_encode_header
LBB0_99:
	movl	%eax, %ebx
LBB0_100:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_101:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_10
	.long	L0_0_set_11
.set L0_1_set_23, LBB0_23-LJTI0_1
.set L0_1_set_22, LBB0_22-LJTI0_1
.set L0_1_set_25, LBB0_25-LJTI0_1
LJTI0_1:
	.long	L0_1_set_23
	.long	L0_1_set_22
	.long	L0_1_set_25
	.long	L0_1_set_23
.set L0_2_set_67, LBB0_67-LJTI0_2
.set L0_2_set_66, LBB0_66-LJTI0_2
.set L0_2_set_68, LBB0_68-LJTI0_2
LJTI0_2:
	.long	L0_2_set_67
	.long	L0_2_set_66
	.long	L0_2_set_68
	.long	L0_2_set_67
	.end_data_region
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,4,2 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"coda is not initialized.\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_CODA_REG_BIT_PARA_BUF_ADDR,4,2 ## @CODA_REG_BIT_PARA_BUF_ADDR
	.comm	_CODADX6_STREAM_BUF_DYNALLOC_EN,4,2 ## @CODADX6_STREAM_BUF_DYNALLOC_EN
	.comm	_CODADX6_STREAM_BUF_PIC_RESET,4,2 ## @CODADX6_STREAM_BUF_PIC_RESET
	.comm	_CODA_REG_BIT_STREAM_CTRL,4,2   ## @CODA_REG_BIT_STREAM_CTRL
	.comm	_CODA9_GDI_WPROT_RGN_EN,4,2     ## @CODA9_GDI_WPROT_RGN_EN
	.comm	_CODA7_STREAM_BUF_DYNALLOC_EN,4,2 ## @CODA7_STREAM_BUF_DYNALLOC_EN
	.comm	_CODA7_STREAM_BUF_PIC_RESET,4,2 ## @CODA7_STREAM_BUF_PIC_RESET
	.comm	_CODA_FRAME_CHROMA_INTERLEAVE,4,2 ## @CODA_FRAME_CHROMA_INTERLEAVE
	.comm	_CODA9_FRAME_TILED2LINEAR,4,2   ## @CODA9_FRAME_TILED2LINEAR
	.comm	_V4L2_PIX_FMT_NV12,8,3          ## @V4L2_PIX_FMT_NV12
	.comm	_GDI_TILED_FRAME_MB_RASTER_MAP,8,3 ## @GDI_TILED_FRAME_MB_RASTER_MAP
	.comm	_CODA_REG_BIT_FRAME_MEM_CTRL,4,2 ## @CODA_REG_BIT_FRAME_MEM_CTRL
	.comm	_CODADX6_REG_BIT_SEARCH_RAM_BASE_ADDR,4,2 ## @CODADX6_REG_BIT_SEARCH_RAM_BASE_ADDR
	.comm	_CODADX6_PICWIDTH_MASK,4,2      ## @CODADX6_PICWIDTH_MASK
	.comm	_CODADX6_PICWIDTH_OFFSET,4,2    ## @CODADX6_PICWIDTH_OFFSET
	.comm	_CODADX6_PICHEIGHT_MASK,4,2     ## @CODADX6_PICHEIGHT_MASK
	.comm	_CODA_PICHEIGHT_OFFSET,4,2      ## @CODA_PICHEIGHT_OFFSET
	.comm	_CODA7_PICWIDTH_MASK,4,2        ## @CODA7_PICWIDTH_MASK
	.comm	_CODA7_PICWIDTH_OFFSET,4,2      ## @CODA7_PICWIDTH_OFFSET
	.comm	_CODA7_PICHEIGHT_MASK,4,2       ## @CODA7_PICHEIGHT_MASK
	.comm	_CODA_CMD_ENC_SEQ_SRC_SIZE,4,2  ## @CODA_CMD_ENC_SEQ_SRC_SIZE
	.comm	_CODA_CMD_ENC_SEQ_SRC_F_RATE,4,2 ## @CODA_CMD_ENC_SEQ_SRC_F_RATE
	.comm	_CODA9_STD_MPEG4,4,2            ## @CODA9_STD_MPEG4
	.comm	_CODA_CMD_ENC_SEQ_COD_STD,4,2   ## @CODA_CMD_ENC_SEQ_COD_STD
	.comm	_CODA_STD_MPEG4,4,2             ## @CODA_STD_MPEG4
	.comm	_CODA_CMD_ENC_SEQ_MP4_PARA,4,2  ## @CODA_CMD_ENC_SEQ_MP4_PARA
	.comm	_CODA9_STD_H264,4,2             ## @CODA9_STD_H264
	.comm	_CODA_STD_H264,4,2              ## @CODA_STD_H264
	.comm	_CODA_264PARAM_DISABLEDEBLK_MASK,4,2 ## @CODA_264PARAM_DISABLEDEBLK_MASK
	.comm	_CODA_264PARAM_DISABLEDEBLK_OFFSET,4,2 ## @CODA_264PARAM_DISABLEDEBLK_OFFSET
	.comm	_CODA_264PARAM_DEBLKFILTEROFFSETALPHA_MASK,4,2 ## @CODA_264PARAM_DEBLKFILTEROFFSETALPHA_MASK
	.comm	_CODA_264PARAM_DEBLKFILTEROFFSETALPHA_OFFSET,4,2 ## @CODA_264PARAM_DEBLKFILTEROFFSETALPHA_OFFSET
	.comm	_CODA_264PARAM_DEBLKFILTEROFFSETBETA_MASK,4,2 ## @CODA_264PARAM_DEBLKFILTEROFFSETBETA_MASK
	.comm	_CODA_264PARAM_DEBLKFILTEROFFSETBETA_OFFSET,4,2 ## @CODA_264PARAM_DEBLKFILTEROFFSETBETA_OFFSET
	.comm	_CODA_264PARAM_CONSTRAINEDINTRAPREDFLAG_OFFSET,4,2 ## @CODA_264PARAM_CONSTRAINEDINTRAPREDFLAG_OFFSET
	.comm	_CODA_264PARAM_CHROMAQPOFFSET_MASK,4,2 ## @CODA_264PARAM_CHROMAQPOFFSET_MASK
	.comm	_CODA_CMD_ENC_SEQ_264_PARA,4,2  ## @CODA_CMD_ENC_SEQ_264_PARA
	.comm	_CODA_CMD_ENC_SEQ_JPG_PARA,4,2  ## @CODA_CMD_ENC_SEQ_JPG_PARA
	.comm	_CODA_CMD_ENC_SEQ_JPG_RST_INTERVAL,4,2 ## @CODA_CMD_ENC_SEQ_JPG_RST_INTERVAL
	.comm	_CODA_CMD_ENC_SEQ_JPG_THUMB_EN,4,2 ## @CODA_CMD_ENC_SEQ_JPG_THUMB_EN
	.comm	_CODA_CMD_ENC_SEQ_JPG_THUMB_SIZE,4,2 ## @CODA_CMD_ENC_SEQ_JPG_THUMB_SIZE
	.comm	_CODA_CMD_ENC_SEQ_JPG_THUMB_OFFSET,4,2 ## @CODA_CMD_ENC_SEQ_JPG_THUMB_OFFSET
L_.str.1:                               ## @.str.1
	.asciz	"dst format (0x%08x) invalid.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CODA_CMD_ENC_SEQ_SLICE_MODE,4,2 ## @CODA_CMD_ENC_SEQ_SLICE_MODE
	.comm	_CODA_CMD_ENC_SEQ_GOP_SIZE,4,2  ## @CODA_CMD_ENC_SEQ_GOP_SIZE
	.comm	_CODA_RATECONTROL_BITRATE_MASK,4,2 ## @CODA_RATECONTROL_BITRATE_MASK
	.comm	_CODA_RATECONTROL_BITRATE_OFFSET,4,2 ## @CODA_RATECONTROL_BITRATE_OFFSET
	.comm	_CODA_RATECONTROL_ENABLE_MASK,4,2 ## @CODA_RATECONTROL_ENABLE_MASK
	.comm	_CODA_RATECONTROL_INITIALDELAY_MASK,4,2 ## @CODA_RATECONTROL_INITIALDELAY_MASK
	.comm	_CODA_RATECONTROL_INITIALDELAY_OFFSET,4,2 ## @CODA_RATECONTROL_INITIALDELAY_OFFSET
	.comm	_CODA_CMD_ENC_SEQ_RC_PARA,4,2   ## @CODA_CMD_ENC_SEQ_RC_PARA
	.comm	_CODA_CMD_ENC_SEQ_RC_BUF_SIZE,4,2 ## @CODA_CMD_ENC_SEQ_RC_BUF_SIZE
	.comm	_CODA_CMD_ENC_SEQ_INTRA_REFRESH,4,2 ## @CODA_CMD_ENC_SEQ_INTRA_REFRESH
	.comm	_CODA_CMD_ENC_SEQ_BB_START,4,2  ## @CODA_CMD_ENC_SEQ_BB_START
	.comm	_CODA_CMD_ENC_SEQ_BB_SIZE,4,2   ## @CODA_CMD_ENC_SEQ_BB_SIZE
	.comm	_CODA9_DEFAULT_GAMMA,4,2        ## @CODA9_DEFAULT_GAMMA
	.comm	_CODA_DEFAULT_GAMMA,4,2         ## @CODA_DEFAULT_GAMMA
	.comm	_CODA_GAMMA_MASK,4,2            ## @CODA_GAMMA_MASK
	.comm	_CODA_GAMMA_OFFSET,4,2          ## @CODA_GAMMA_OFFSET
	.comm	_CODA_CMD_ENC_SEQ_RC_GAMMA,4,2  ## @CODA_CMD_ENC_SEQ_RC_GAMMA
	.comm	_CODA_QPMIN_OFFSET,4,2          ## @CODA_QPMIN_OFFSET
	.comm	_CODA_QPMAX_OFFSET,4,2          ## @CODA_QPMAX_OFFSET
	.comm	_CODA_CMD_ENC_SEQ_RC_QP_MIN_MAX,4,2 ## @CODA_CMD_ENC_SEQ_RC_QP_MIN_MAX
	.comm	_CODA9_OPTION_RCQPMAX_OFFSET,4,2 ## @CODA9_OPTION_RCQPMAX_OFFSET
	.comm	_CODA9_OPTION_GAMMA_OFFSET,4,2  ## @CODA9_OPTION_GAMMA_OFFSET
	.comm	_CODADX6_OPTION_GAMMA_OFFSET,4,2 ## @CODADX6_OPTION_GAMMA_OFFSET
	.comm	_CODA7_OPTION_GAMMA_OFFSET,4,2  ## @CODA7_OPTION_GAMMA_OFFSET
	.comm	_CODA7_OPTION_RCQPMIN_OFFSET,4,2 ## @CODA7_OPTION_RCQPMIN_OFFSET
	.comm	_CODA7_OPTION_RCQPMAX_OFFSET,4,2 ## @CODA7_OPTION_RCQPMAX_OFFSET
	.comm	_CODA_CMD_ENC_SEQ_OPTION,4,2    ## @CODA_CMD_ENC_SEQ_OPTION
	.comm	_CODA_CMD_ENC_SEQ_RC_INTERVAL_MODE,4,2 ## @CODA_CMD_ENC_SEQ_RC_INTERVAL_MODE
	.comm	_FMO_SLICE_SAVE_BUF_SIZE,4,2    ## @FMO_SLICE_SAVE_BUF_SIZE
	.comm	_CODADX6_CMD_ENC_SEQ_FMO,4,2    ## @CODADX6_CMD_ENC_SEQ_FMO
	.comm	_CODA7_CMD_ENC_SEQ_SEARCH_BASE,4,2 ## @CODA7_CMD_ENC_SEQ_SEARCH_BASE
	.comm	_CODA7_CMD_ENC_SEQ_SEARCH_SIZE,4,2 ## @CODA7_CMD_ENC_SEQ_SEARCH_SIZE
	.comm	_CODA9_CMD_ENC_SEQ_ME_OPTION,4,2 ## @CODA9_CMD_ENC_SEQ_ME_OPTION
	.comm	_CODA9_CMD_ENC_SEQ_INTRA_WEIGHT,4,2 ## @CODA9_CMD_ENC_SEQ_INTRA_WEIGHT
	.comm	_CODA_COMMAND_SEQ_INIT,4,2      ## @CODA_COMMAND_SEQ_INIT
L_.str.2:                               ## @.str.2
	.asciz	"CODA_COMMAND_SEQ_INIT timeout\n"

	.comm	_CODA_RET_ENC_SEQ_SUCCESS,4,2   ## @CODA_RET_ENC_SEQ_SUCCESS
L_.str.3:                               ## @.str.3
	.asciz	"CODA_COMMAND_SEQ_INIT failed\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to allocate framebuffers\n"

	.comm	_CODA_CMD_SET_FRAME_BUF_NUM,4,2 ## @CODA_CMD_SET_FRAME_BUF_NUM
	.comm	_CODA_CMD_SET_FRAME_BUF_STRIDE,4,2 ## @CODA_CMD_SET_FRAME_BUF_STRIDE
	.comm	_CODA7_CMD_SET_FRAME_SOURCE_BUF_STRIDE,4,2 ## @CODA7_CMD_SET_FRAME_SOURCE_BUF_STRIDE
	.comm	_CODA7_CMD_SET_FRAME_AXI_BIT_ADDR,4,2 ## @CODA7_CMD_SET_FRAME_AXI_BIT_ADDR
	.comm	_CODA7_CMD_SET_FRAME_AXI_IPACDC_ADDR,4,2 ## @CODA7_CMD_SET_FRAME_AXI_IPACDC_ADDR
	.comm	_CODA7_CMD_SET_FRAME_AXI_DBKY_ADDR,4,2 ## @CODA7_CMD_SET_FRAME_AXI_DBKY_ADDR
	.comm	_CODA7_CMD_SET_FRAME_AXI_DBKC_ADDR,4,2 ## @CODA7_CMD_SET_FRAME_AXI_DBKC_ADDR
	.comm	_CODA7_CMD_SET_FRAME_AXI_OVL_ADDR,4,2 ## @CODA7_CMD_SET_FRAME_AXI_OVL_ADDR
	.comm	_CODA9_CMD_SET_FRAME_AXI_BTP_ADDR,4,2 ## @CODA9_CMD_SET_FRAME_AXI_BTP_ADDR
	.comm	_CODA9_CMD_SET_FRAME_SUBSAMP_A,4,2 ## @CODA9_CMD_SET_FRAME_SUBSAMP_A
	.comm	_CODA9_CMD_SET_FRAME_SUBSAMP_B,4,2 ## @CODA9_CMD_SET_FRAME_SUBSAMP_B
	.comm	_CODA_COMMAND_SET_FRAME_BUF,4,2 ## @CODA_COMMAND_SET_FRAME_BUF
L_.str.5:                               ## @.str.5
	.asciz	"CODA_COMMAND_SET_FRAME_BUF timeout\n"

L_.str.6:                               ## @.str.6
	.asciz	"start encoding %dx%d %4.4s->%4.4s @ %d/%d Hz\n"

	.comm	_CODA_HEADER_H264_SPS,4,2       ## @CODA_HEADER_H264_SPS
	.comm	_CODA_HEADER_H264_PPS,4,2       ## @CODA_HEADER_H264_PPS
	.comm	_CODA_HEADER_MP4V_VOS,4,2       ## @CODA_HEADER_MP4V_VOS
	.comm	_CODA_HEADER_MP4V_VIS,4,2       ## @CODA_HEADER_MP4V_VIS
	.comm	_CODA_HEADER_MP4V_VOL,4,2       ## @CODA_HEADER_MP4V_VOL
	.no_dead_strip	_coda_start_encoding
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function coda_start_encoding
_coda_start_encoding:                   ; @coda_start_encoding
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	ldr	x19, [x0, #40]
	add	x22, x19, #20
Lloh0:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_get_q_data
	mov	x21, x0
Lloh3:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_get_q_data
	mov	x25, x0
	ldr	w23, [x0]
	str	w23, [sp, #12]
	ldr	w0, [x20, #48]
	bl	_v4l2_m2m_next_dst_buf
	mov	w1, #0
	bl	_vb2_dma_contig_plane_dma_addr
	mov	x24, x0
	ldr	w27, [x25, #4]
	mov	x0, x19
	bl	_coda_is_initialized
	cbz	w0, LBB0_20
; %bb.1:
	cmp	w23, #129
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x20, #128]
	ldr	x9, [x8]
	cbz	x9, LBB0_32
; %bb.3:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_33
LBB0_4:
	ldr	w1, [x20, #124]
	mov	x0, x20
	bl	_coda_set_jpeg_compression_quality
LBB0_5:
	mov	x0, x19
	bl	_mutex_lock
	ldr	w1, [x20, #188]
Lloh6:
	adrp	x8, _CODA_REG_BIT_PARA_BUF_ADDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CODA_REG_BIT_PARA_BUF_ADDR@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
	ldr	w0, [x20, #184]
	bl	_CODA_REG_BIT_RD_PTR
	mov	x2, x0
	mov	x0, x19
	mov	x1, x24
	bl	_coda_write
	ldr	w0, [x20, #184]
	bl	_CODA_REG_BIT_WR_PTR
	mov	x2, x0
	mov	x0, x19
	mov	x1, x24
	bl	_coda_write
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	sub	w10, w8, #131
	cmp	w10, #3
	b.hi	LBB0_10
; %bb.6:
Lloh9:
	adrp	x8, _CODADX6_STREAM_BUF_PIC_RESET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CODADX6_STREAM_BUF_PIC_RESET@GOTPAGEOFF]
Lloh11:
	adrp	x9, _CODADX6_STREAM_BUF_DYNALLOC_EN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CODADX6_STREAM_BUF_DYNALLOC_EN@GOTPAGEOFF]
Lloh13:
	adrp	x11, lJTI0_0@PAGE
Lloh14:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_7
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_7:
Lloh15:
	adrp	x8, _CODA9_GDI_WPROT_RGN_EN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CODA9_GDI_WPROT_RGN_EN@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_coda_write
LBB0_8:
Lloh18:
	adrp	x8, _CODA7_STREAM_BUF_PIC_RESET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CODA7_STREAM_BUF_PIC_RESET@GOTPAGEOFF]
Lloh20:
	adrp	x9, _CODA7_STREAM_BUF_DYNALLOC_EN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CODA7_STREAM_BUF_DYNALLOC_EN@GOTPAGEOFF]
LBB0_9:
	ldr	w9, [x9]
	ldr	w8, [x8]
	orr	w1, w8, w9
Lloh22:
	adrp	x8, _CODA_REG_BIT_STREAM_CTRL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CODA_REG_BIT_STREAM_CTRL@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
LBB0_10:
Lloh25:
	adrp	x9, _CODA_FRAME_CHROMA_INTERLEAVE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _CODA_FRAME_CHROMA_INTERLEAVE@GOTPAGEOFF]
Lloh27:
	adrp	x8, _CODA9_FRAME_TILED2LINEAR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CODA9_FRAME_TILED2LINEAR@GOTPAGEOFF]
	ldr	w10, [x9]
	ldr	w11, [x8]
	orr	w10, w11, w10
	ldr	w11, [x20]
	bic	w10, w11, w10
	and	w1, w10, #0xfffff9ff
	str	w1, [x20]
	ldrsw	x10, [x21]
Lloh29:
	adrp	x11, _V4L2_PIX_FMT_NV12@GOTPAGE
Lloh30:
	ldr	x11, [x11, _V4L2_PIX_FMT_NV12@GOTPAGEOFF]
Lloh31:
	ldr	x11, [x11]
	cmp	x11, x10
	b.ne	LBB0_12
; %bb.11:
	ldr	w9, [x9]
	orr	w1, w9, w1
	str	w1, [x20]
LBB0_12:
	ldr	x9, [x20, #8]
Lloh32:
	adrp	x10, _GDI_TILED_FRAME_MB_RASTER_MAP@GOTPAGE
Lloh33:
	ldr	x10, [x10, _GDI_TILED_FRAME_MB_RASTER_MAP@GOTPAGEOFF]
Lloh34:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_14
; %bb.13:
	ldr	w8, [x8]
	orr	w8, w8, w1
	orr	w1, w8, #0x600
	str	w1, [x20]
LBB0_14:
Lloh35:
	adrp	x8, _CODA_REG_BIT_FRAME_MEM_CTRL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CODA_REG_BIT_FRAME_MEM_CTRL@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #132
	b.ne	LBB0_16
; %bb.15:
	ldr	w1, [x19, #16]
Lloh38:
	adrp	x8, _CODADX6_REG_BIT_SEARCH_RAM_BASE_ADDR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _CODADX6_REG_BIT_SEARCH_RAM_BASE_ADDR@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
LBB0_16:
	sub	w8, w8, #131
	cmp	w8, #3
	b.hi	LBB0_22
; %bb.17:
Lloh41:
	adrp	x9, lJTI0_1@PAGE
Lloh42:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_18
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_18:
	cmp	w23, #130
	b.ne	LBB0_21
; %bb.19:
	ldr	w0, [x21, #12]
	mov	w1, #16
	bl	_round_up
Lloh43:
	adrp	x8, _CODA7_PICWIDTH_MASK@GOTPAGE
Lloh44:
	ldr	x8, [x8, _CODA7_PICWIDTH_MASK@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh46:
	adrp	x9, _CODA7_PICWIDTH_OFFSET@GOTPAGE
Lloh47:
	ldr	x9, [x9, _CODA7_PICWIDTH_OFFSET@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	lsl	w25, w8, w9
	ldr	w0, [x21, #16]
	mov	w1, #16
	bl	_round_up
Lloh49:
	adrp	x8, _CODA7_PICHEIGHT_MASK@GOTPAGE
Lloh50:
	ldr	x8, [x8, _CODA7_PICHEIGHT_MASK@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh52:
	adrp	x9, _CODA_PICHEIGHT_OFFSET@GOTPAGE
Lloh53:
	ldr	x9, [x9, _CODA_PICHEIGHT_OFFSET@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	orr	w1, w8, w25
	b	LBB0_25
LBB0_20:
Lloh55:
	adrp	x1, l_.str@PAGE
Lloh56:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_v4l2_err
Lloh57:
	adrp	x8, _EFAULT@GOTPAGE
Lloh58:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_89
LBB0_21:
Lloh60:
	adrp	x8, _CODA7_PICWIDTH_MASK@GOTPAGE
Lloh61:
	ldr	x8, [x8, _CODA7_PICWIDTH_MASK@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
Lloh63:
	adrp	x9, _CODA7_PICWIDTH_OFFSET@GOTPAGE
Lloh64:
	ldr	x9, [x9, _CODA7_PICWIDTH_OFFSET@GOTPAGEOFF]
	ldp	w10, w11, [x21, #12]
	and	w8, w8, w10
Lloh65:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh66:
	adrp	x9, _CODA7_PICHEIGHT_MASK@GOTPAGE
Lloh67:
	ldr	x9, [x9, _CODA7_PICHEIGHT_MASK@GOTPAGEOFF]
	b	LBB0_24
LBB0_22:
	mov	w1, #0
	b	LBB0_25
LBB0_23:
Lloh68:
	adrp	x8, _CODADX6_PICWIDTH_MASK@GOTPAGE
Lloh69:
	ldr	x8, [x8, _CODADX6_PICWIDTH_MASK@GOTPAGEOFF]
Lloh70:
	ldr	w8, [x8]
Lloh71:
	adrp	x9, _CODADX6_PICWIDTH_OFFSET@GOTPAGE
Lloh72:
	ldr	x9, [x9, _CODADX6_PICWIDTH_OFFSET@GOTPAGEOFF]
	ldp	w10, w11, [x21, #12]
	and	w8, w8, w10
Lloh73:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh74:
	adrp	x9, _CODADX6_PICHEIGHT_MASK@GOTPAGE
Lloh75:
	ldr	x9, [x9, _CODADX6_PICHEIGHT_MASK@GOTPAGEOFF]
LBB0_24:
	ldr	w9, [x9]
	and	w9, w9, w11
Lloh76:
	adrp	x10, _CODA_PICHEIGHT_OFFSET@GOTPAGE
Lloh77:
	ldr	x10, [x10, _CODA_PICHEIGHT_OFFSET@GOTPAGEOFF]
Lloh78:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w1, w9, w8
LBB0_25:
Lloh79:
	adrp	x8, _CODA_CMD_ENC_SEQ_SRC_SIZE@GOTPAGE
Lloh80:
	ldr	x8, [x8, _CODA_CMD_ENC_SEQ_SRC_SIZE@GOTPAGEOFF]
Lloh81:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
	cmp	w23, #129
	b.ne	LBB0_29
; %bb.26:
	str	wzr, [x20, #56]
Lloh82:
	adrp	x8, _CODA_CMD_ENC_SEQ_SRC_F_RATE@GOTPAGE
Lloh83:
	ldr	x8, [x8, _CODA_CMD_ENC_SEQ_SRC_F_RATE@GOTPAGEOFF]
Lloh84:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_coda_write
	mov	x26, x20
	ldr	x8, [x26, #136]!
	ldr	w8, [x8, #4]
	str	w8, [x20, #120]
Lloh85:
	adrp	x8, _CODA_CMD_ENC_SEQ_JPG_PARA@GOTPAGE
Lloh86:
	ldr	x8, [x8, _CODA_CMD_ENC_SEQ_JPG_PARA@GOTPAGEOFF]
Lloh87:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_coda_write
	ldr	w1, [x20, #80]
Lloh88:
	adrp	x8, _CODA_CMD_ENC_SEQ_JPG_RST_INTERVAL@GOTPAGE
Lloh89:
	ldr	x8, [x8, _CODA_CMD_ENC_SEQ_JPG_RST_INTERVAL@GOTPAGEOFF]
Lloh90:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
Lloh91:
	adrp	x8, _CODA_CMD_ENC_SEQ_JPG_THUMB_EN@GOTPAGE
Lloh92:
	ldr	x8, [x8, _CODA_CMD_ENC_SEQ_JPG_THUMB_EN@GOTPAGEOFF]
Lloh93:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_coda_write
Lloh94:
	adrp	x8, _CODA_CMD_ENC_SEQ_JPG_THUMB_SIZE@GOTPAGE
Lloh95:
	ldr	x8, [x8, _CODA_CMD_ENC_SEQ_JPG_THUMB_SIZE@GOTPAGEOFF]
Lloh96:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_coda_write
Lloh97:
	adrp	x8, _CODA_CMD_ENC_SEQ_JPG_THUMB_OFFSET@GOTPAGE
Lloh98:
	ldr	x8, [x8, _CODA_CMD_ENC_SEQ_JPG_THUMB_OFFSET@GOTPAGEOFF]
Lloh99:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_coda_write
	mov	x0, x20
	bl	_coda_jpeg_write_tables
	ldr	w8, [x20, #88]
	cbz	w8, LBB0_36
LBB0_27:
	stp	wzr, wzr, [x20, #92]
Lloh100:
	adrp	x9, _CODA_RATECONTROL_BITRATE_MASK@GOTPAGE
Lloh101:
	ldr	x9, [x9, _CODA_RATECONTROL_BITRATE_MASK@GOTPAGEOFF]
Lloh102:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh103:
	adrp	x9, _CODA_RATECONTROL_BITRATE_OFFSET@GOTPAGE
Lloh104:
	ldr	x9, [x9, _CODA_RATECONTROL_BITRATE_OFFSET@GOTPAGEOFF]
Lloh105:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh106:
	adrp	x9, _CODA_RATECONTROL_ENABLE_MASK@GOTPAGE
Lloh107:
	ldr	x9, [x9, _CODA_RATECONTROL_ENABLE_MASK@GOTPAGEOFF]
Lloh108:
	ldr	w9, [x9]
	and	w9, w9, #0x1
	orr	w8, w9, w8
	ldr	w9, [x20, #100]
Lloh109:
	adrp	x10, _CODA_RATECONTROL_INITIALDELAY_MASK@GOTPAGE
Lloh110:
	ldr	x10, [x10, _CODA_RATECONTROL_INITIALDELAY_MASK@GOTPAGEOFF]
Lloh111:
	ldr	w10, [x10]
	and	w9, w10, w9
Lloh112:
	adrp	x10, _CODA_RATECONTROL_INITIALDELAY_OFFSET@GOTPAGE
Lloh113:
	ldr	x10, [x10, _CODA_RATECONTROL_INITIALDELAY_OFFSET@GOTPAGEOFF]
Lloh114:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w25, w8, w9
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #133
	b.ne	LBB0_37
; %bb.28:
	mov	w0, #31
	bl	_BIT
	orr	w25, w0, w25
	b	LBB0_37
LBB0_29:
	ldr	w1, [x20, #56]
Lloh115:
	adrp	x8, _CODA_CMD_ENC_SEQ_SRC_F_RATE@GOTPAGE
Lloh116:
	ldr	x8, [x8, _CODA_CMD_ENC_SEQ_SRC_F_RATE@GOTPAGEOFF]
Lloh117:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
	mov	x26, x20
	ldr	x8, [x26, #136]!
	ldr	w8, [x8, #4]
	stur	w8, [x26, #-16]
	cmp	w23, #130
	b.eq	LBB0_34
; %bb.30:
	cmp	w23, #128
	b.ne	LBB0_47
; %bb.31:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh118:
	adrp	x9, _CODA9_STD_MPEG4@GOTPAGE
Lloh119:
	ldr	x9, [x9, _CODA9_STD_MPEG4@GOTPAGEOFF]
Lloh120:
	adrp	x10, _CODA_STD_MPEG4@GOTPAGE
Lloh121:
	ldr	x10, [x10, _CODA_STD_MPEG4@GOTPAGEOFF]
	cmp	w8, #133
	csel	x8, x9, x10, eq
	ldr	w1, [x8]
Lloh122:
	adrp	x8, _CODA_CMD_ENC_SEQ_COD_STD@GOTPAGE
Lloh123:
	ldr	x8, [x8, _CODA_CMD_ENC_SEQ_COD_STD@GOTPAGEOFF]
Lloh124:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
	mov	w1, #0
Lloh125:
	adrp	x8, _CODA_CMD_ENC_SEQ_MP4_PARA@GOTPAGE
Lloh126:
	ldr	x8, [x8, _CODA_CMD_ENC_SEQ_MP4_PARA@GOTPAGEOFF]
	b	LBB0_35
LBB0_32:
Lloh127:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh128:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh129:
	ldr	w1, [x8]
	mov	w0, #64
	bl	_kmalloc
	ldr	x8, [x20, #128]
	str	x0, [x8]
	ldr	x8, [x20, #128]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_4
LBB0_33:
Lloh130:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh131:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh132:
	ldr	w1, [x8]
	mov	w0, #64
	bl	_kmalloc
	ldr	x8, [x20, #128]
	str	x0, [x8, #8]
	b	LBB0_4
LBB0_34:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh133:
	adrp	x9, _CODA9_STD_H264@GOTPAGE
Lloh134:
	ldr	x9, [x9, _CODA9_STD_H264@GOTPAGEOFF]
Lloh135:
	adrp	x10, _CODA_STD_H264@GOTPAGE
Lloh136:
	ldr	x10, [x10, _CODA_STD_H264@GOTPAGEOFF]
	cmp	w8, #133
	csel	x8, x9, x10, eq
	ldr	w1, [x8]
Lloh137:
	adrp	x8, _CODA_CMD_ENC_SEQ_COD_STD@GOTPAGE
Lloh138:
	ldr	x8, [x8, _CODA_CMD_ENC_SEQ_COD_STD@GOTPAGEOFF]
Lloh139:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
Lloh140:
	adrp	x8, _CODA_264PARAM_DISABLEDEBLK_MASK@GOTPAGE
Lloh141:
	ldr	x8, [x8, _CODA_264PARAM_DISABLEDEBLK_MASK@GOTPAGEOFF]
Lloh142:
	ldr	w8, [x8]
Lloh143:
	adrp	x9, _CODA_264PARAM_DISABLEDEBLK_OFFSET@GOTPAGE
Lloh144:
	ldr	x9, [x9, _CODA_264PARAM_DISABLEDEBLK_OFFSET@GOTPAGEOFF]
	ldp	w10, w11, [x20, #60]
	and	w8, w8, w10
Lloh145:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh146:
	adrp	x9, _CODA_264PARAM_DEBLKFILTEROFFSETALPHA_MASK@GOTPAGE
Lloh147:
	ldr	x9, [x9, _CODA_264PARAM_DEBLKFILTEROFFSETALPHA_MASK@GOTPAGEOFF]
Lloh148:
	ldr	w9, [x9]
	and	w9, w9, w11
Lloh149:
	adrp	x10, _CODA_264PARAM_DEBLKFILTEROFFSETALPHA_OFFSET@GOTPAGE
Lloh150:
	ldr	x10, [x10, _CODA_264PARAM_DEBLKFILTEROFFSETALPHA_OFFSET@GOTPAGEOFF]
Lloh151:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
Lloh152:
	adrp	x9, _CODA_264PARAM_DEBLKFILTEROFFSETBETA_MASK@GOTPAGE
Lloh153:
	ldr	x9, [x9, _CODA_264PARAM_DEBLKFILTEROFFSETBETA_MASK@GOTPAGEOFF]
Lloh154:
	ldr	w9, [x9]
	ldp	w10, w11, [x20, #68]
	and	w9, w9, w10
Lloh155:
	adrp	x10, _CODA_264PARAM_DEBLKFILTEROFFSETBETA_OFFSET@GOTPAGE
Lloh156:
	ldr	x10, [x10, _CODA_264PARAM_DEBLKFILTEROFFSETBETA_OFFSET@GOTPAGEOFF]
Lloh157:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh158:
	adrp	x10, _CODA_264PARAM_CONSTRAINEDINTRAPREDFLAG_OFFSET@GOTPAGE
Lloh159:
	ldr	x10, [x10, _CODA_264PARAM_CONSTRAINEDINTRAPREDFLAG_OFFSET@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh160:
	ldr	w9, [x10]
	lsl	w9, w11, w9
	orr	w8, w8, w9
Lloh161:
	adrp	x9, _CODA_264PARAM_CHROMAQPOFFSET_MASK@GOTPAGE
Lloh162:
	ldr	x9, [x9, _CODA_264PARAM_CHROMAQPOFFSET_MASK@GOTPAGEOFF]
	ldr	w10, [x20, #76]
Lloh163:
	ldr	w9, [x9]
	and	w9, w9, w10
	orr	w1, w8, w9
Lloh164:
	adrp	x8, _CODA_CMD_ENC_SEQ_264_PARA@GOTPAGE
Lloh165:
	ldr	x8, [x8, _CODA_CMD_ENC_SEQ_264_PARA@GOTPAGEOFF]
LBB0_35:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
	mov	x0, x20
	bl	_coda_slice_mode
	mov	x1, x0
Lloh166:
	adrp	x8, _CODA_CMD_ENC_SEQ_SLICE_MODE@GOTPAGE
Lloh167:
	ldr	x8, [x8, _CODA_CMD_ENC_SEQ_SLICE_MODE@GOTPAGEOFF]
Lloh168:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
	ldr	w1, [x20, #84]
Lloh169:
	adrp	x8, _CODA_CMD_ENC_SEQ_GOP_SIZE@GOTPAGE
Lloh170:
	ldr	x8, [x8, _CODA_CMD_ENC_SEQ_GOP_SIZE@GOTPAGEOFF]
Lloh171:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
	ldr	w8, [x20, #88]
	cbnz	w8, LBB0_27
LBB0_36:
	mov	w25, #0
LBB0_37:
Lloh172:
	adrp	x8, _CODA_CMD_ENC_SEQ_RC_PARA@GOTPAGE
Lloh173:
	ldr	x8, [x8, _CODA_CMD_ENC_SEQ_RC_PARA@GOTPAGEOFF]
Lloh174:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x25
	bl	_coda_write
	ldr	w1, [x20, #104]
Lloh175:
	adrp	x8, _CODA_CMD_ENC_SEQ_RC_BUF_SIZE@GOTPAGE
Lloh176:
	ldr	x8, [x8, _CODA_CMD_ENC_SEQ_RC_BUF_SIZE@GOTPAGEOFF]
Lloh177:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
	ldr	w1, [x20, #108]
Lloh178:
	adrp	x8, _CODA_CMD_ENC_SEQ_INTRA_REFRESH@GOTPAGE
Lloh179:
	ldr	x8, [x8, _CODA_CMD_ENC_SEQ_INTRA_REFRESH@GOTPAGEOFF]
Lloh180:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
Lloh181:
	adrp	x8, _CODA_CMD_ENC_SEQ_BB_START@GOTPAGE
Lloh182:
	ldr	x8, [x8, _CODA_CMD_ENC_SEQ_BB_START@GOTPAGEOFF]
Lloh183:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x24
	bl	_coda_write
	add	w8, w27, #1023
	cmp	w27, #0
	csel	w8, w8, w27, lt
	asr	w1, w8, #10
Lloh184:
	adrp	x8, _CODA_CMD_ENC_SEQ_BB_SIZE@GOTPAGE
Lloh185:
	ldr	x8, [x8, _CODA_CMD_ENC_SEQ_BB_SIZE@GOTPAGEOFF]
Lloh186:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh187:
	adrp	x9, _CODA9_DEFAULT_GAMMA@GOTPAGE
Lloh188:
	ldr	x9, [x9, _CODA9_DEFAULT_GAMMA@GOTPAGEOFF]
Lloh189:
	adrp	x24, _CODA_DEFAULT_GAMMA@GOTPAGE
Lloh190:
	ldr	x24, [x24, _CODA_DEFAULT_GAMMA@GOTPAGEOFF]
	cmp	w8, #133
	csel	x8, x9, x24, eq
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_39
; %bb.38:
Lloh191:
	adrp	x9, _CODA_GAMMA_MASK@GOTPAGE
Lloh192:
	ldr	x9, [x9, _CODA_GAMMA_MASK@GOTPAGEOFF]
Lloh193:
	ldr	w9, [x9]
Lloh194:
	adrp	x10, _CODA_GAMMA_OFFSET@GOTPAGE
Lloh195:
	ldr	x10, [x10, _CODA_GAMMA_OFFSET@GOTPAGEOFF]
	and	w8, w9, w8
Lloh196:
	ldr	w9, [x10]
	lsl	w1, w8, w9
Lloh197:
	adrp	x8, _CODA_CMD_ENC_SEQ_RC_GAMMA@GOTPAGE
Lloh198:
	ldr	x8, [x8, _CODA_CMD_ENC_SEQ_RC_GAMMA@GOTPAGEOFF]
Lloh199:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
LBB0_39:
	ldp	w9, w8, [x20, #112]
	orr	w10, w9, w8
	cbz	w10, LBB0_41
; %bb.40:
Lloh200:
	adrp	x10, _CODA_QPMIN_OFFSET@GOTPAGE
Lloh201:
	ldr	x10, [x10, _CODA_QPMIN_OFFSET@GOTPAGEOFF]
Lloh202:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh203:
	adrp	x10, _CODA_QPMAX_OFFSET@GOTPAGE
Lloh204:
	ldr	x10, [x10, _CODA_QPMAX_OFFSET@GOTPAGEOFF]
Lloh205:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	orr	w1, w8, w9
Lloh206:
	adrp	x8, _CODA_CMD_ENC_SEQ_RC_QP_MIN_MAX@GOTPAGE
Lloh207:
	ldr	x8, [x8, _CODA_CMD_ENC_SEQ_RC_QP_MIN_MAX@GOTPAGEOFF]
Lloh208:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
LBB0_41:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #133
	b.ne	LBB0_44
; %bb.42:
	ldr	w9, [x20, #116]
Lloh209:
	adrp	x8, _CODA9_OPTION_RCQPMAX_OFFSET@GOTPAGE
Lloh210:
	ldr	x8, [x8, _CODA9_OPTION_RCQPMAX_OFFSET@GOTPAGEOFF]
Lloh211:
	ldr	w10, [x8]
	mov	w8, #1
	lsl	w10, w8, w10
	cmp	w9, #0
	csel	w1, wzr, w10, eq
	ldr	w9, [x24]
	cmp	w9, #1
	b.lt	LBB0_54
; %bb.43:
Lloh212:
	adrp	x9, _CODA9_OPTION_GAMMA_OFFSET@GOTPAGE
Lloh213:
	ldr	x9, [x9, _CODA9_OPTION_GAMMA_OFFSET@GOTPAGEOFF]
Lloh214:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	b	LBB0_53
LBB0_44:
	ldr	w9, [x24]
	cmp	w9, #1
	b.lt	LBB0_48
; %bb.45:
	cmp	w8, #132
	b.ne	LBB0_49
; %bb.46:
Lloh215:
	adrp	x8, _CODADX6_OPTION_GAMMA_OFFSET@GOTPAGE
Lloh216:
	ldr	x8, [x8, _CODADX6_OPTION_GAMMA_OFFSET@GOTPAGEOFF]
	b	LBB0_50
LBB0_47:
	str	x23, [sp]
Lloh217:
	adrp	x1, l_.str.1@PAGE
Lloh218:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_v4l2_err
Lloh219:
	adrp	x8, _EINVAL@GOTPAGE
Lloh220:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_67
LBB0_48:
	mov	w8, #0
	b	LBB0_51
LBB0_49:
Lloh221:
	adrp	x8, _CODA7_OPTION_GAMMA_OFFSET@GOTPAGE
Lloh222:
	ldr	x8, [x8, _CODA7_OPTION_GAMMA_OFFSET@GOTPAGEOFF]
LBB0_50:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
LBB0_51:
Lloh223:
	adrp	x9, _CODA7_OPTION_RCQPMIN_OFFSET@GOTPAGE
Lloh224:
	ldr	x9, [x9, _CODA7_OPTION_RCQPMIN_OFFSET@GOTPAGEOFF]
Lloh225:
	ldr	w10, [x9]
	mov	w9, #1
	lsl	w10, w9, w10
	ldp	w11, w12, [x20, #112]
	cmp	w11, #0
	csel	w10, wzr, w10, eq
	orr	w1, w10, w8
	cbz	w12, LBB0_54
; %bb.52:
Lloh226:
	adrp	x8, _CODA7_OPTION_RCQPMAX_OFFSET@GOTPAGE
Lloh227:
	ldr	x8, [x8, _CODA7_OPTION_RCQPMAX_OFFSET@GOTPAGEOFF]
Lloh228:
	ldr	w8, [x8]
	lsl	w8, w9, w8
LBB0_53:
	orr	w1, w8, w1
LBB0_54:
Lloh229:
	adrp	x8, _CODA_CMD_ENC_SEQ_OPTION@GOTPAGE
Lloh230:
	ldr	x8, [x8, _CODA_CMD_ENC_SEQ_OPTION@GOTPAGEOFF]
Lloh231:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
Lloh232:
	adrp	x8, _CODA_CMD_ENC_SEQ_RC_INTERVAL_MODE@GOTPAGE
Lloh233:
	ldr	x8, [x8, _CODA_CMD_ENC_SEQ_RC_INTERVAL_MODE@GOTPAGEOFF]
Lloh234:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_coda_write
	mov	x0, x20
	bl	_coda_setup_iram
	cmp	w23, #130
	b.ne	LBB0_61
; %bb.55:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	sub	w8, w8, #131
	cmp	w8, #3
	b.hi	LBB0_61
; %bb.56:
Lloh235:
	adrp	x9, lJTI0_2@PAGE
Lloh236:
	add	x9, x9, lJTI0_2@PAGEOFF
	adr	x10, LBB0_57
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_57:
	ldr	w1, [x20, #152]
Lloh237:
	adrp	x8, _CODA7_CMD_ENC_SEQ_SEARCH_BASE@GOTPAGE
Lloh238:
	ldr	x8, [x8, _CODA7_CMD_ENC_SEQ_SEARCH_BASE@GOTPAGEOFF]
Lloh239:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
	ldr	w1, [x20, #156]
Lloh240:
	adrp	x8, _CODA7_CMD_ENC_SEQ_SEARCH_SIZE@GOTPAGE
Lloh241:
	ldr	x8, [x8, _CODA7_CMD_ENC_SEQ_SEARCH_SIZE@GOTPAGEOFF]
	b	LBB0_60
LBB0_58:
Lloh242:
	adrp	x8, _FMO_SLICE_SAVE_BUF_SIZE@GOTPAGE
Lloh243:
	ldr	x8, [x8, _FMO_SLICE_SAVE_BUF_SIZE@GOTPAGEOFF]
Lloh244:
	ldr	w8, [x8]
	lsl	w1, w8, #7
Lloh245:
	adrp	x8, _CODADX6_CMD_ENC_SEQ_FMO@GOTPAGE
Lloh246:
	ldr	x8, [x8, _CODADX6_CMD_ENC_SEQ_FMO@GOTPAGEOFF]
	b	LBB0_60
LBB0_59:
Lloh247:
	adrp	x8, _CODA9_CMD_ENC_SEQ_ME_OPTION@GOTPAGE
Lloh248:
	ldr	x8, [x8, _CODA9_CMD_ENC_SEQ_ME_OPTION@GOTPAGEOFF]
Lloh249:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_coda_write
	mov	w1, #0
Lloh250:
	adrp	x8, _CODA9_CMD_ENC_SEQ_INTRA_WEIGHT@GOTPAGE
Lloh251:
	ldr	x8, [x8, _CODA9_CMD_ENC_SEQ_INTRA_WEIGHT@GOTPAGEOFF]
LBB0_60:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
LBB0_61:
Lloh252:
	adrp	x8, _CODA_COMMAND_SEQ_INIT@GOTPAGE
Lloh253:
	ldr	x8, [x8, _CODA_COMMAND_SEQ_INIT@GOTPAGEOFF]
Lloh254:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_coda_command_sync
	tbnz	w0, #31, LBB0_65
; %bb.62:
Lloh255:
	adrp	x8, _CODA_RET_ENC_SEQ_SUCCESS@GOTPAGE
Lloh256:
	ldr	x8, [x8, _CODA_RET_ENC_SEQ_SUCCESS@GOTPAGEOFF]
Lloh257:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_coda_read
	cbz	x0, LBB0_66
; %bb.63:
	mov	w8, #1
	str	w8, [x20, #16]
	cmp	w23, #129
	b.ne	LBB0_68
; %bb.64:
	mov	w1, #0
	mov	w23, #0
	str	wzr, [x20, #20]
	b	LBB0_70
LBB0_65:
	mov	x24, x0
Lloh258:
	adrp	x1, l_.str.2@PAGE
Lloh259:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_87
LBB0_66:
Lloh260:
	adrp	x1, l_.str.3@PAGE
Lloh261:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_v4l2_err
Lloh262:
	adrp	x8, _EFAULT@GOTPAGE
Lloh263:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_67:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_88
LBB0_68:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	mov	w9, #2
	mov	w10, #4
	cmp	w8, #133
	csel	w8, w10, w9, eq
	str	w8, [x20, #20]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	bl	_coda_alloc_framebuffers
	tbnz	w0, #31, LBB0_86
; %bb.69:
	ldr	w23, [x21, #8]
	mov	w1, #2
LBB0_70:
Lloh264:
	adrp	x8, _CODA_CMD_SET_FRAME_BUF_NUM@GOTPAGE
Lloh265:
	ldr	x8, [x8, _CODA_CMD_SET_FRAME_BUF_NUM@GOTPAGEOFF]
Lloh266:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
Lloh267:
	adrp	x8, _CODA_CMD_SET_FRAME_BUF_STRIDE@GOTPAGE
Lloh268:
	ldr	x8, [x8, _CODA_CMD_SET_FRAME_BUF_STRIDE@GOTPAGEOFF]
Lloh269:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x23
	bl	_coda_write
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #134
	b.eq	LBB0_72
; %bb.71:
	cmp	w8, #131
	b.ne	LBB0_73
LBB0_72:
	ldr	w1, [x21, #8]
Lloh270:
	adrp	x8, _CODA7_CMD_SET_FRAME_SOURCE_BUF_STRIDE@GOTPAGE
Lloh271:
	ldr	x8, [x8, _CODA7_CMD_SET_FRAME_SOURCE_BUF_STRIDE@GOTPAGEOFF]
Lloh272:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
LBB0_73:
	cmp	w8, #132
	b.eq	LBB0_76
; %bb.74:
	ldr	w1, [x20, #160]
Lloh273:
	adrp	x8, _CODA7_CMD_SET_FRAME_AXI_BIT_ADDR@GOTPAGE
Lloh274:
	ldr	x8, [x8, _CODA7_CMD_SET_FRAME_AXI_BIT_ADDR@GOTPAGEOFF]
Lloh275:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
	ldr	w1, [x20, #164]
Lloh276:
	adrp	x8, _CODA7_CMD_SET_FRAME_AXI_IPACDC_ADDR@GOTPAGE
Lloh277:
	ldr	x8, [x8, _CODA7_CMD_SET_FRAME_AXI_IPACDC_ADDR@GOTPAGEOFF]
Lloh278:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
	ldr	w1, [x20, #168]
Lloh279:
	adrp	x8, _CODA7_CMD_SET_FRAME_AXI_DBKY_ADDR@GOTPAGE
Lloh280:
	ldr	x8, [x8, _CODA7_CMD_SET_FRAME_AXI_DBKY_ADDR@GOTPAGEOFF]
Lloh281:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
	ldr	w1, [x20, #172]
Lloh282:
	adrp	x8, _CODA7_CMD_SET_FRAME_AXI_DBKC_ADDR@GOTPAGE
Lloh283:
	ldr	x8, [x8, _CODA7_CMD_SET_FRAME_AXI_DBKC_ADDR@GOTPAGEOFF]
Lloh284:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
	ldr	w1, [x20, #176]
Lloh285:
	adrp	x8, _CODA7_CMD_SET_FRAME_AXI_OVL_ADDR@GOTPAGE
Lloh286:
	ldr	x8, [x8, _CODA7_CMD_SET_FRAME_AXI_OVL_ADDR@GOTPAGEOFF]
Lloh287:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #133
	b.ne	LBB0_76
; %bb.75:
	ldr	w1, [x20, #180]
Lloh288:
	adrp	x8, _CODA9_CMD_SET_FRAME_AXI_BTP_ADDR@GOTPAGE
Lloh289:
	ldr	x8, [x8, _CODA9_CMD_SET_FRAME_AXI_BTP_ADDR@GOTPAGEOFF]
Lloh290:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
	ldrsw	x1, [x21]
	mov	x0, x20
	bl	_coda9_set_frame_cache
	ldr	x8, [x20, #144]
	ldr	w1, [x8, #8]
Lloh291:
	adrp	x8, _CODA9_CMD_SET_FRAME_SUBSAMP_A@GOTPAGE
Lloh292:
	ldr	x8, [x8, _CODA9_CMD_SET_FRAME_SUBSAMP_A@GOTPAGEOFF]
Lloh293:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
	ldr	x8, [x20, #144]
	ldr	w1, [x8, #12]
Lloh294:
	adrp	x8, _CODA9_CMD_SET_FRAME_SUBSAMP_B@GOTPAGE
Lloh295:
	ldr	x8, [x8, _CODA9_CMD_SET_FRAME_SUBSAMP_B@GOTPAGEOFF]
Lloh296:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_coda_write
LBB0_76:
Lloh297:
	adrp	x8, _CODA_COMMAND_SET_FRAME_BUF@GOTPAGE
Lloh298:
	ldr	x8, [x8, _CODA_COMMAND_SET_FRAME_BUF@GOTPAGEOFF]
Lloh299:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_coda_command_sync
	mov	x24, x0
	tbnz	w0, #31, LBB0_85
; %bb.77:
	ldp	w3, w4, [x21, #12]
	ldr	x5, [x26]
	ldr	w8, [x20, #56]
	and	w7, w8, #0xffff
	asr	w8, w8, #16
	add	w8, w8, #1
	str	w8, [sp]
Lloh300:
	adrp	x2, l_.str.6@PAGE
Lloh301:
	add	x2, x2, l_.str.6@PAGEOFF
	add	x6, sp, #12
	mov	w0, #1
	mov	x1, x20
	bl	_coda_dbg
	ldr	w0, [x20, #48]
	bl	_v4l2_m2m_next_dst_buf
	mov	x22, x0
	ldr	w8, [sp, #12]
	cmp	w8, #128
	b.eq	LBB0_90
; %bb.78:
	cmp	w8, #130
	b.ne	LBB0_88
; %bb.79:
Lloh302:
	adrp	x8, _CODA_HEADER_H264_SPS@GOTPAGE
Lloh303:
	ldr	x8, [x8, _CODA_HEADER_H264_SPS@GOTPAGEOFF]
Lloh304:
	ldr	w2, [x8]
	ldp	x4, x8, [x20, #24]
	ldr	x3, [x8]
	mov	x0, x20
	mov	x1, x22
	bl	_coda_encode_header
	tbnz	w0, #31, LBB0_93
; %bb.80:
	ldr	x8, [x20, #40]
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	cmp	w8, #133
	b.eq	LBB0_83
; %bb.81:
	ldp	w1, w2, [x21, #12]
	orr	w8, w1, w2
	tst	w8, #0xf
	b.eq	LBB0_83
; %bb.82:
	ldp	x4, x8, [x20, #24]
	ldr	x3, [x8]
	mov	x0, x20
	mov	w5, #8
	bl	_coda_h264_sps_fixup
	tbnz	w0, #31, LBB0_93
LBB0_83:
Lloh305:
	adrp	x8, _CODA_HEADER_H264_PPS@GOTPAGE
Lloh306:
	ldr	x8, [x8, _CODA_HEADER_H264_PPS@GOTPAGEOFF]
Lloh307:
	ldr	w2, [x8]
	ldp	x9, x8, [x20, #24]
	ldr	x3, [x8, #8]
	add	x4, x9, #8
	mov	x0, x20
	mov	x1, x22
	bl	_coda_encode_header
	mov	x24, x0
	tbnz	w0, #31, LBB0_88
; %bb.84:
	ldp	x8, x9, [x20, #24]
	ldp	x10, x8, [x8]
	add	x0, x8, x10
	ldr	x1, [x9, #16]
	bl	_coda_h264_padding
	ldr	x8, [x20, #24]
	str	x0, [x8, #16]
	b	LBB0_88
LBB0_85:
Lloh308:
	adrp	x1, l_.str.5@PAGE
Lloh309:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_87
LBB0_86:
	mov	x24, x0
Lloh310:
	adrp	x1, l_.str.4@PAGE
Lloh311:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_87:
	mov	x0, x22
	bl	_v4l2_err
LBB0_88:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_89:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_90:
Lloh312:
	adrp	x8, _CODA_HEADER_MP4V_VOS@GOTPAGE
Lloh313:
	ldr	x8, [x8, _CODA_HEADER_MP4V_VOS@GOTPAGEOFF]
Lloh314:
	ldr	w2, [x8]
	ldp	x4, x8, [x20, #24]
	ldr	x3, [x8]
	mov	x0, x20
	mov	x1, x22
	bl	_coda_encode_header
	tbnz	w0, #31, LBB0_93
; %bb.91:
Lloh315:
	adrp	x8, _CODA_HEADER_MP4V_VIS@GOTPAGE
Lloh316:
	ldr	x8, [x8, _CODA_HEADER_MP4V_VIS@GOTPAGEOFF]
Lloh317:
	ldr	w2, [x8]
	ldp	x9, x8, [x20, #24]
	ldr	x3, [x8, #8]
	add	x4, x9, #8
	mov	x0, x20
	mov	x1, x22
	bl	_coda_encode_header
	tbnz	w0, #31, LBB0_93
; %bb.92:
Lloh318:
	adrp	x8, _CODA_HEADER_MP4V_VOL@GOTPAGE
Lloh319:
	ldr	x8, [x8, _CODA_HEADER_MP4V_VOL@GOTPAGEOFF]
Lloh320:
	ldr	w2, [x8]
	ldp	x9, x8, [x20, #24]
	ldr	x3, [x8, #16]
	add	x4, x9, #16
	mov	x0, x20
	mov	x1, x22
	bl	_coda_encode_header
LBB0_93:
	mov	x24, x0
	b	LBB0_88
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh112, Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.loh AdrpLdrGot	Lloh125, Lloh126
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGot	Lloh120, Lloh121
	.loh AdrpLdrGot	Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh127, Lloh128, Lloh129
	.loh AdrpLdrGotLdr	Lloh130, Lloh131, Lloh132
	.loh AdrpLdrGot	Lloh164, Lloh165
	.loh AdrpLdrGotLdr	Lloh161, Lloh162, Lloh163
	.loh AdrpLdrGotLdr	Lloh158, Lloh159, Lloh160
	.loh AdrpLdrGotLdr	Lloh155, Lloh156, Lloh157
	.loh AdrpLdrGotLdr	Lloh152, Lloh153, Lloh154
	.loh AdrpLdrGotLdr	Lloh149, Lloh150, Lloh151
	.loh AdrpLdrGotLdr	Lloh146, Lloh147, Lloh148
	.loh AdrpLdrGotLdr	Lloh143, Lloh144, Lloh145
	.loh AdrpLdrGotLdr	Lloh140, Lloh141, Lloh142
	.loh AdrpLdrGotLdr	Lloh137, Lloh138, Lloh139
	.loh AdrpLdrGot	Lloh135, Lloh136
	.loh AdrpLdrGot	Lloh133, Lloh134
	.loh AdrpLdrGotLdr	Lloh169, Lloh170, Lloh171
	.loh AdrpLdrGotLdr	Lloh166, Lloh167, Lloh168
	.loh AdrpLdrGot	Lloh189, Lloh190
	.loh AdrpLdrGot	Lloh187, Lloh188
	.loh AdrpLdrGotLdr	Lloh184, Lloh185, Lloh186
	.loh AdrpLdrGotLdr	Lloh181, Lloh182, Lloh183
	.loh AdrpLdrGotLdr	Lloh178, Lloh179, Lloh180
	.loh AdrpLdrGotLdr	Lloh175, Lloh176, Lloh177
	.loh AdrpLdrGotLdr	Lloh172, Lloh173, Lloh174
	.loh AdrpLdrGotLdr	Lloh197, Lloh198, Lloh199
	.loh AdrpLdrGotLdr	Lloh194, Lloh195, Lloh196
	.loh AdrpLdrGotLdr	Lloh191, Lloh192, Lloh193
	.loh AdrpLdrGotLdr	Lloh206, Lloh207, Lloh208
	.loh AdrpLdrGotLdr	Lloh203, Lloh204, Lloh205
	.loh AdrpLdrGotLdr	Lloh200, Lloh201, Lloh202
	.loh AdrpLdrGotLdr	Lloh209, Lloh210, Lloh211
	.loh AdrpLdrGotLdr	Lloh212, Lloh213, Lloh214
	.loh AdrpLdrGot	Lloh215, Lloh216
	.loh AdrpLdrGot	Lloh219, Lloh220
	.loh AdrpAdd	Lloh217, Lloh218
	.loh AdrpLdrGot	Lloh221, Lloh222
	.loh AdrpLdrGotLdr	Lloh223, Lloh224, Lloh225
	.loh AdrpLdrGotLdr	Lloh226, Lloh227, Lloh228
	.loh AdrpLdrGotLdr	Lloh232, Lloh233, Lloh234
	.loh AdrpLdrGotLdr	Lloh229, Lloh230, Lloh231
	.loh AdrpAdd	Lloh235, Lloh236
	.loh AdrpLdrGot	Lloh240, Lloh241
	.loh AdrpLdrGotLdr	Lloh237, Lloh238, Lloh239
	.loh AdrpLdrGot	Lloh245, Lloh246
	.loh AdrpLdrGotLdr	Lloh242, Lloh243, Lloh244
	.loh AdrpLdrGot	Lloh250, Lloh251
	.loh AdrpLdrGotLdr	Lloh247, Lloh248, Lloh249
	.loh AdrpLdrGotLdr	Lloh252, Lloh253, Lloh254
	.loh AdrpLdrGotLdr	Lloh255, Lloh256, Lloh257
	.loh AdrpAdd	Lloh258, Lloh259
	.loh AdrpLdrGot	Lloh262, Lloh263
	.loh AdrpAdd	Lloh260, Lloh261
	.loh AdrpLdrGotLdr	Lloh267, Lloh268, Lloh269
	.loh AdrpLdrGotLdr	Lloh264, Lloh265, Lloh266
	.loh AdrpLdrGotLdr	Lloh270, Lloh271, Lloh272
	.loh AdrpLdrGotLdr	Lloh285, Lloh286, Lloh287
	.loh AdrpLdrGotLdr	Lloh282, Lloh283, Lloh284
	.loh AdrpLdrGotLdr	Lloh279, Lloh280, Lloh281
	.loh AdrpLdrGotLdr	Lloh276, Lloh277, Lloh278
	.loh AdrpLdrGotLdr	Lloh273, Lloh274, Lloh275
	.loh AdrpLdrGotLdr	Lloh294, Lloh295, Lloh296
	.loh AdrpLdrGotLdr	Lloh291, Lloh292, Lloh293
	.loh AdrpLdrGotLdr	Lloh288, Lloh289, Lloh290
	.loh AdrpLdrGotLdr	Lloh297, Lloh298, Lloh299
	.loh AdrpAdd	Lloh300, Lloh301
	.loh AdrpLdrGotLdr	Lloh302, Lloh303, Lloh304
	.loh AdrpLdrGotLdr	Lloh305, Lloh306, Lloh307
	.loh AdrpAdd	Lloh308, Lloh309
	.loh AdrpAdd	Lloh310, Lloh311
	.loh AdrpLdrGotLdr	Lloh312, Lloh313, Lloh314
	.loh AdrpLdrGotLdr	Lloh315, Lloh316, Lloh317
	.loh AdrpLdrGotLdr	Lloh318, Lloh319, Lloh320
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
lJTI0_1:
	.byte	(LBB0_18-LBB0_18)>>2
	.byte	(LBB0_23-LBB0_18)>>2
	.byte	(LBB0_21-LBB0_18)>>2
	.byte	(LBB0_18-LBB0_18)>>2
lJTI0_2:
	.byte	(LBB0_57-LBB0_57)>>2
	.byte	(LBB0_58-LBB0_57)>>2
	.byte	(LBB0_59-LBB0_57)>>2
	.byte	(LBB0_57-LBB0_57)>>2
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,4,2 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"coda is not initialized.\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_CODA_REG_BIT_PARA_BUF_ADDR,4,2 ; @CODA_REG_BIT_PARA_BUF_ADDR
	.comm	_CODADX6_STREAM_BUF_DYNALLOC_EN,4,2 ; @CODADX6_STREAM_BUF_DYNALLOC_EN
	.comm	_CODADX6_STREAM_BUF_PIC_RESET,4,2 ; @CODADX6_STREAM_BUF_PIC_RESET
	.comm	_CODA_REG_BIT_STREAM_CTRL,4,2   ; @CODA_REG_BIT_STREAM_CTRL
	.comm	_CODA9_GDI_WPROT_RGN_EN,4,2     ; @CODA9_GDI_WPROT_RGN_EN
	.comm	_CODA7_STREAM_BUF_DYNALLOC_EN,4,2 ; @CODA7_STREAM_BUF_DYNALLOC_EN
	.comm	_CODA7_STREAM_BUF_PIC_RESET,4,2 ; @CODA7_STREAM_BUF_PIC_RESET
	.comm	_CODA_FRAME_CHROMA_INTERLEAVE,4,2 ; @CODA_FRAME_CHROMA_INTERLEAVE
	.comm	_CODA9_FRAME_TILED2LINEAR,4,2   ; @CODA9_FRAME_TILED2LINEAR
	.comm	_V4L2_PIX_FMT_NV12,8,3          ; @V4L2_PIX_FMT_NV12
	.comm	_GDI_TILED_FRAME_MB_RASTER_MAP,8,3 ; @GDI_TILED_FRAME_MB_RASTER_MAP
	.comm	_CODA_REG_BIT_FRAME_MEM_CTRL,4,2 ; @CODA_REG_BIT_FRAME_MEM_CTRL
	.comm	_CODADX6_REG_BIT_SEARCH_RAM_BASE_ADDR,4,2 ; @CODADX6_REG_BIT_SEARCH_RAM_BASE_ADDR
	.comm	_CODADX6_PICWIDTH_MASK,4,2      ; @CODADX6_PICWIDTH_MASK
	.comm	_CODADX6_PICWIDTH_OFFSET,4,2    ; @CODADX6_PICWIDTH_OFFSET
	.comm	_CODADX6_PICHEIGHT_MASK,4,2     ; @CODADX6_PICHEIGHT_MASK
	.comm	_CODA_PICHEIGHT_OFFSET,4,2      ; @CODA_PICHEIGHT_OFFSET
	.comm	_CODA7_PICWIDTH_MASK,4,2        ; @CODA7_PICWIDTH_MASK
	.comm	_CODA7_PICWIDTH_OFFSET,4,2      ; @CODA7_PICWIDTH_OFFSET
	.comm	_CODA7_PICHEIGHT_MASK,4,2       ; @CODA7_PICHEIGHT_MASK
	.comm	_CODA_CMD_ENC_SEQ_SRC_SIZE,4,2  ; @CODA_CMD_ENC_SEQ_SRC_SIZE
	.comm	_CODA_CMD_ENC_SEQ_SRC_F_RATE,4,2 ; @CODA_CMD_ENC_SEQ_SRC_F_RATE
	.comm	_CODA9_STD_MPEG4,4,2            ; @CODA9_STD_MPEG4
	.comm	_CODA_CMD_ENC_SEQ_COD_STD,4,2   ; @CODA_CMD_ENC_SEQ_COD_STD
	.comm	_CODA_STD_MPEG4,4,2             ; @CODA_STD_MPEG4
	.comm	_CODA_CMD_ENC_SEQ_MP4_PARA,4,2  ; @CODA_CMD_ENC_SEQ_MP4_PARA
	.comm	_CODA9_STD_H264,4,2             ; @CODA9_STD_H264
	.comm	_CODA_STD_H264,4,2              ; @CODA_STD_H264
	.comm	_CODA_264PARAM_DISABLEDEBLK_MASK,4,2 ; @CODA_264PARAM_DISABLEDEBLK_MASK
	.comm	_CODA_264PARAM_DISABLEDEBLK_OFFSET,4,2 ; @CODA_264PARAM_DISABLEDEBLK_OFFSET
	.comm	_CODA_264PARAM_DEBLKFILTEROFFSETALPHA_MASK,4,2 ; @CODA_264PARAM_DEBLKFILTEROFFSETALPHA_MASK
	.comm	_CODA_264PARAM_DEBLKFILTEROFFSETALPHA_OFFSET,4,2 ; @CODA_264PARAM_DEBLKFILTEROFFSETALPHA_OFFSET
	.comm	_CODA_264PARAM_DEBLKFILTEROFFSETBETA_MASK,4,2 ; @CODA_264PARAM_DEBLKFILTEROFFSETBETA_MASK
	.comm	_CODA_264PARAM_DEBLKFILTEROFFSETBETA_OFFSET,4,2 ; @CODA_264PARAM_DEBLKFILTEROFFSETBETA_OFFSET
	.comm	_CODA_264PARAM_CONSTRAINEDINTRAPREDFLAG_OFFSET,4,2 ; @CODA_264PARAM_CONSTRAINEDINTRAPREDFLAG_OFFSET
	.comm	_CODA_264PARAM_CHROMAQPOFFSET_MASK,4,2 ; @CODA_264PARAM_CHROMAQPOFFSET_MASK
	.comm	_CODA_CMD_ENC_SEQ_264_PARA,4,2  ; @CODA_CMD_ENC_SEQ_264_PARA
	.comm	_CODA_CMD_ENC_SEQ_JPG_PARA,4,2  ; @CODA_CMD_ENC_SEQ_JPG_PARA
	.comm	_CODA_CMD_ENC_SEQ_JPG_RST_INTERVAL,4,2 ; @CODA_CMD_ENC_SEQ_JPG_RST_INTERVAL
	.comm	_CODA_CMD_ENC_SEQ_JPG_THUMB_EN,4,2 ; @CODA_CMD_ENC_SEQ_JPG_THUMB_EN
	.comm	_CODA_CMD_ENC_SEQ_JPG_THUMB_SIZE,4,2 ; @CODA_CMD_ENC_SEQ_JPG_THUMB_SIZE
	.comm	_CODA_CMD_ENC_SEQ_JPG_THUMB_OFFSET,4,2 ; @CODA_CMD_ENC_SEQ_JPG_THUMB_OFFSET
l_.str.1:                               ; @.str.1
	.asciz	"dst format (0x%08x) invalid.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CODA_CMD_ENC_SEQ_SLICE_MODE,4,2 ; @CODA_CMD_ENC_SEQ_SLICE_MODE
	.comm	_CODA_CMD_ENC_SEQ_GOP_SIZE,4,2  ; @CODA_CMD_ENC_SEQ_GOP_SIZE
	.comm	_CODA_RATECONTROL_BITRATE_MASK,4,2 ; @CODA_RATECONTROL_BITRATE_MASK
	.comm	_CODA_RATECONTROL_BITRATE_OFFSET,4,2 ; @CODA_RATECONTROL_BITRATE_OFFSET
	.comm	_CODA_RATECONTROL_ENABLE_MASK,4,2 ; @CODA_RATECONTROL_ENABLE_MASK
	.comm	_CODA_RATECONTROL_INITIALDELAY_MASK,4,2 ; @CODA_RATECONTROL_INITIALDELAY_MASK
	.comm	_CODA_RATECONTROL_INITIALDELAY_OFFSET,4,2 ; @CODA_RATECONTROL_INITIALDELAY_OFFSET
	.comm	_CODA_CMD_ENC_SEQ_RC_PARA,4,2   ; @CODA_CMD_ENC_SEQ_RC_PARA
	.comm	_CODA_CMD_ENC_SEQ_RC_BUF_SIZE,4,2 ; @CODA_CMD_ENC_SEQ_RC_BUF_SIZE
	.comm	_CODA_CMD_ENC_SEQ_INTRA_REFRESH,4,2 ; @CODA_CMD_ENC_SEQ_INTRA_REFRESH
	.comm	_CODA_CMD_ENC_SEQ_BB_START,4,2  ; @CODA_CMD_ENC_SEQ_BB_START
	.comm	_CODA_CMD_ENC_SEQ_BB_SIZE,4,2   ; @CODA_CMD_ENC_SEQ_BB_SIZE
	.comm	_CODA9_DEFAULT_GAMMA,4,2        ; @CODA9_DEFAULT_GAMMA
	.comm	_CODA_DEFAULT_GAMMA,4,2         ; @CODA_DEFAULT_GAMMA
	.comm	_CODA_GAMMA_MASK,4,2            ; @CODA_GAMMA_MASK
	.comm	_CODA_GAMMA_OFFSET,4,2          ; @CODA_GAMMA_OFFSET
	.comm	_CODA_CMD_ENC_SEQ_RC_GAMMA,4,2  ; @CODA_CMD_ENC_SEQ_RC_GAMMA
	.comm	_CODA_QPMIN_OFFSET,4,2          ; @CODA_QPMIN_OFFSET
	.comm	_CODA_QPMAX_OFFSET,4,2          ; @CODA_QPMAX_OFFSET
	.comm	_CODA_CMD_ENC_SEQ_RC_QP_MIN_MAX,4,2 ; @CODA_CMD_ENC_SEQ_RC_QP_MIN_MAX
	.comm	_CODA9_OPTION_RCQPMAX_OFFSET,4,2 ; @CODA9_OPTION_RCQPMAX_OFFSET
	.comm	_CODA9_OPTION_GAMMA_OFFSET,4,2  ; @CODA9_OPTION_GAMMA_OFFSET
	.comm	_CODADX6_OPTION_GAMMA_OFFSET,4,2 ; @CODADX6_OPTION_GAMMA_OFFSET
	.comm	_CODA7_OPTION_GAMMA_OFFSET,4,2  ; @CODA7_OPTION_GAMMA_OFFSET
	.comm	_CODA7_OPTION_RCQPMIN_OFFSET,4,2 ; @CODA7_OPTION_RCQPMIN_OFFSET
	.comm	_CODA7_OPTION_RCQPMAX_OFFSET,4,2 ; @CODA7_OPTION_RCQPMAX_OFFSET
	.comm	_CODA_CMD_ENC_SEQ_OPTION,4,2    ; @CODA_CMD_ENC_SEQ_OPTION
	.comm	_CODA_CMD_ENC_SEQ_RC_INTERVAL_MODE,4,2 ; @CODA_CMD_ENC_SEQ_RC_INTERVAL_MODE
	.comm	_FMO_SLICE_SAVE_BUF_SIZE,4,2    ; @FMO_SLICE_SAVE_BUF_SIZE
	.comm	_CODADX6_CMD_ENC_SEQ_FMO,4,2    ; @CODADX6_CMD_ENC_SEQ_FMO
	.comm	_CODA7_CMD_ENC_SEQ_SEARCH_BASE,4,2 ; @CODA7_CMD_ENC_SEQ_SEARCH_BASE
	.comm	_CODA7_CMD_ENC_SEQ_SEARCH_SIZE,4,2 ; @CODA7_CMD_ENC_SEQ_SEARCH_SIZE
	.comm	_CODA9_CMD_ENC_SEQ_ME_OPTION,4,2 ; @CODA9_CMD_ENC_SEQ_ME_OPTION
	.comm	_CODA9_CMD_ENC_SEQ_INTRA_WEIGHT,4,2 ; @CODA9_CMD_ENC_SEQ_INTRA_WEIGHT
	.comm	_CODA_COMMAND_SEQ_INIT,4,2      ; @CODA_COMMAND_SEQ_INIT
l_.str.2:                               ; @.str.2
	.asciz	"CODA_COMMAND_SEQ_INIT timeout\n"

	.comm	_CODA_RET_ENC_SEQ_SUCCESS,4,2   ; @CODA_RET_ENC_SEQ_SUCCESS
l_.str.3:                               ; @.str.3
	.asciz	"CODA_COMMAND_SEQ_INIT failed\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to allocate framebuffers\n"

	.comm	_CODA_CMD_SET_FRAME_BUF_NUM,4,2 ; @CODA_CMD_SET_FRAME_BUF_NUM
	.comm	_CODA_CMD_SET_FRAME_BUF_STRIDE,4,2 ; @CODA_CMD_SET_FRAME_BUF_STRIDE
	.comm	_CODA7_CMD_SET_FRAME_SOURCE_BUF_STRIDE,4,2 ; @CODA7_CMD_SET_FRAME_SOURCE_BUF_STRIDE
	.comm	_CODA7_CMD_SET_FRAME_AXI_BIT_ADDR,4,2 ; @CODA7_CMD_SET_FRAME_AXI_BIT_ADDR
	.comm	_CODA7_CMD_SET_FRAME_AXI_IPACDC_ADDR,4,2 ; @CODA7_CMD_SET_FRAME_AXI_IPACDC_ADDR
	.comm	_CODA7_CMD_SET_FRAME_AXI_DBKY_ADDR,4,2 ; @CODA7_CMD_SET_FRAME_AXI_DBKY_ADDR
	.comm	_CODA7_CMD_SET_FRAME_AXI_DBKC_ADDR,4,2 ; @CODA7_CMD_SET_FRAME_AXI_DBKC_ADDR
	.comm	_CODA7_CMD_SET_FRAME_AXI_OVL_ADDR,4,2 ; @CODA7_CMD_SET_FRAME_AXI_OVL_ADDR
	.comm	_CODA9_CMD_SET_FRAME_AXI_BTP_ADDR,4,2 ; @CODA9_CMD_SET_FRAME_AXI_BTP_ADDR
	.comm	_CODA9_CMD_SET_FRAME_SUBSAMP_A,4,2 ; @CODA9_CMD_SET_FRAME_SUBSAMP_A
	.comm	_CODA9_CMD_SET_FRAME_SUBSAMP_B,4,2 ; @CODA9_CMD_SET_FRAME_SUBSAMP_B
	.comm	_CODA_COMMAND_SET_FRAME_BUF,4,2 ; @CODA_COMMAND_SET_FRAME_BUF
l_.str.5:                               ; @.str.5
	.asciz	"CODA_COMMAND_SET_FRAME_BUF timeout\n"

l_.str.6:                               ; @.str.6
	.asciz	"start encoding %dx%d %4.4s->%4.4s @ %d/%d Hz\n"

	.comm	_CODA_HEADER_H264_SPS,4,2       ; @CODA_HEADER_H264_SPS
	.comm	_CODA_HEADER_H264_PPS,4,2       ; @CODA_HEADER_H264_PPS
	.comm	_CODA_HEADER_MP4V_VOS,4,2       ; @CODA_HEADER_MP4V_VOS
	.comm	_CODA_HEADER_MP4V_VIS,4,2       ; @CODA_HEADER_MP4V_VIS
	.comm	_CODA_HEADER_MP4V_VOL,4,2       ; @CODA_HEADER_MP4V_VOL
	.no_dead_strip	_coda_start_encoding
.subsections_via_symbols
