	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_mfc_set_enc_params_h264
_s5p_mfc_set_enc_params_h264:           ## @s5p_mfc_set_enc_params_h264
	.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	%rdi, %r12
	movq	152(%rdi), %r14
	callq	_s5p_mfc_set_enc_params
	movq	_S5P_FIMV_ENC_PIC_TYPE_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_mfc_read
	andl	$-196609, %eax                  ## imm = 0xFFFCFFFF
	movl	8(%r12), %esi
	shll	$16, %esi
	orl	%eax, %esi
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_mfc_write
	movq	_S5P_FIMV_ENC_PROFILE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_mfc_read
	andl	$-65344, %eax                   ## imm = 0xFFFF00C0
	movl	40(%r12), %esi
	shll	$8, %esi
	orl	%eax, %esi
	orl	44(%r12), %esi
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_mfc_write
	movl	48(%r12), %esi
	movq	_S5P_FIMV_ENC_PIC_STRUCT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mfc_write
	cmpl	$0, 48(%r12)
	je	LBB0_2
## %bb.1:
	movl	(%r12), %esi
	sarl	%esi
	movq	_S5P_FIMV_ENC_VSIZE_PX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mfc_write
LBB0_2:
	movl	52(%r12), %esi
	movq	_S5P_FIMV_ENC_LF_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mfc_write
	movl	56(%r12), %eax
	movl	$256, %ebx                      ## imm = 0x100
	movl	$256, %ecx                      ## imm = 0x100
	subl	%eax, %ecx
	orl	$16, %ecx
	movl	%eax, %esi
	andl	$15, %esi
	testl	%eax, %eax
	cmovsl	%ecx, %esi
	movq	_S5P_FIMV_ENC_ALPHA_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mfc_write
	movl	60(%r12), %eax
	subl	%eax, %ebx
	orl	$16, %ebx
	movl	%eax, %esi
	andl	$15, %esi
	testl	%eax, %eax
	cmovsl	%ebx, %esi
	movq	_S5P_FIMV_ENC_BETA_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mfc_write
	movq	64(%r12), %rax
	movq	_V4L2_MPEG_VIDEO_H264_ENTROPY_MODE_CABAC@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	sete	%sil
	movq	_S5P_FIMV_ENC_H264_ENTROPY_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mfc_write
	movq	_S5P_FIMV_ENC_H264_NUM_OF_REF@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_mfc_read
	andl	$-128, %eax
	movl	72(%r12), %esi
	shll	$5, %esi
	orl	%eax, %esi
	orl	76(%r12), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_mfc_write
	movl	80(%r12), %esi
	movq	_S5P_FIMV_ENC_H264_TRANS_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mfc_write
	movq	_S5P_FIMV_ENC_RC_CONFIG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_mfc_read
	andl	$-320, %eax                     ## imm = 0xFEC0
	movl	12(%r12), %esi
	shll	$8, %esi
	orl	%eax, %esi
	orl	84(%r12), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_mfc_write
	xorl	%esi, %esi
	cmpq	$0, 32(%r12)
	je	LBB0_5
## %bb.3:
	movl	16(%r12), %ecx
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.4:
	imull	$1000, 20(%r12), %eax           ## imm = 0x3E8
	cltd
	idivl	%ecx
	movl	%eax, %esi
LBB0_5:
	movq	_S5P_FIMV_ENC_RC_FRAME_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mfc_write
	movq	_S5P_FIMV_ENC_RC_QBOUND@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_mfc_read
	andl	$-16192, %eax                   ## imm = 0xC0C0
	movl	88(%r12), %esi
	shll	$8, %esi
	orl	%eax, %esi
	orl	92(%r12), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_mfc_write
	cmpl	$0, 12(%r12)
	je	LBB0_7
## %bb.6:
	movq	_S5P_FIMV_ENC_RC_MB_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_mfc_read
	andl	$-16, %eax
	movl	96(%r12), %ecx
	movl	100(%r12), %edx
	shll	$3, %ecx
	shll	$2, %edx
	orl	%ecx, %edx
	movl	104(%r12), %esi
	addl	%esi, %esi
	orl	%edx, %esi
	orl	%eax, %esi
	orl	108(%r12), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_mfc_write
LBB0_7:
	cmpq	$0, 32(%r12)
	jne	LBB0_10
## %bb.8:
	cmpl	$0, 12(%r12)
	jne	LBB0_10
## %bb.9:
	movq	_P_B_FRAME_QP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_s5p_mfc_read_info_v5
	andl	$-4096, %eax                    ## imm = 0xF000
	movl	112(%r12), %ecx
	movl	116(%r12), %esi
	andl	$63, %ecx
	shll	$6, %ecx
	orl	%eax, %ecx
	andl	$63, %esi
	orl	%ecx, %esi
	movl	(%rbx), %edx
	movq	%r12, %rdi
	callq	_s5p_mfc_write_info_v5
LBB0_10:
	movq	_EXT_ENC_CONTROL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_s5p_mfc_read_info_v5
	andl	$-32769, %eax                   ## imm = 0xFFFF7FFF
	movl	120(%r12), %esi
	addl	%esi, %esi
	orl	%eax, %esi
	movl	(%r14), %edx
	movq	%r12, %rdi
	callq	_s5p_mfc_write_info_v5
	cmpl	$0, 120(%r12)
	je	LBB0_13
## %bb.11:
	movq	_SAMPLE_ASPECT_RATIO_IDC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_s5p_mfc_read_info_v5
	andl	$-256, %eax
	orl	124(%r12), %eax
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_s5p_mfc_write_info_v5
	cmpl	$255, 124(%r12)
	jne	LBB0_13
## %bb.12:
	movq	_EXTENDED_SAR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_s5p_mfc_read_info_v5
	movl	128(%r12), %esi
	shll	$16, %esi
	orl	132(%r12), %esi
	movl	(%rbx), %edx
	movq	%r12, %rdi
	callq	_s5p_mfc_write_info_v5
LBB0_13:
	movq	_H264_I_PERIOD@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_s5p_mfc_read_info_v5
	andl	$-65537, %eax                   ## imm = 0xFFFEFFFF
	movl	136(%r12), %ecx
	movl	%ecx, %esi
	shll	$16, %esi
	orl	%eax, %esi
	testl	%ecx, %ecx
	je	LBB0_15
## %bb.14:
	andl	$-65536, %esi                   ## imm = 0xFFFF0000
	orl	140(%r12), %esi
LBB0_15:
	movl	(%r15), %edx
	movq	%r12, %rdi
	callq	_s5p_mfc_write_info_v5
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_s5p_mfc_read_info_v5
	movq	24(%r12), %rcx
	movq	_V4L2_MPEG_MFC51_VIDEO_FRAME_SKIP_MODE_BUF_LIMIT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_17
## %bb.16:
	movzwl	%ax, %ecx
	movl	144(%r12), %eax
	shll	$16, %eax
	orl	%ecx, %eax
LBB0_17:
	movl	(%r14), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_s5p_mfc_write_info_v5
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S5P_FIMV_ENC_PIC_TYPE_CTRL,4,2 ## @S5P_FIMV_ENC_PIC_TYPE_CTRL
	.comm	_S5P_FIMV_ENC_PROFILE,4,2       ## @S5P_FIMV_ENC_PROFILE
	.comm	_S5P_FIMV_ENC_PIC_STRUCT,4,2    ## @S5P_FIMV_ENC_PIC_STRUCT
	.comm	_S5P_FIMV_ENC_VSIZE_PX,4,2      ## @S5P_FIMV_ENC_VSIZE_PX
	.comm	_S5P_FIMV_ENC_LF_CTRL,4,2       ## @S5P_FIMV_ENC_LF_CTRL
	.comm	_S5P_FIMV_ENC_ALPHA_OFF,4,2     ## @S5P_FIMV_ENC_ALPHA_OFF
	.comm	_S5P_FIMV_ENC_BETA_OFF,4,2      ## @S5P_FIMV_ENC_BETA_OFF
	.comm	_V4L2_MPEG_VIDEO_H264_ENTROPY_MODE_CABAC,8,3 ## @V4L2_MPEG_VIDEO_H264_ENTROPY_MODE_CABAC
	.comm	_S5P_FIMV_ENC_H264_ENTROPY_MODE,4,2 ## @S5P_FIMV_ENC_H264_ENTROPY_MODE
	.comm	_S5P_FIMV_ENC_H264_NUM_OF_REF,4,2 ## @S5P_FIMV_ENC_H264_NUM_OF_REF
	.comm	_S5P_FIMV_ENC_H264_TRANS_FLAG,4,2 ## @S5P_FIMV_ENC_H264_TRANS_FLAG
	.comm	_S5P_FIMV_ENC_RC_CONFIG,4,2     ## @S5P_FIMV_ENC_RC_CONFIG
	.comm	_S5P_FIMV_ENC_RC_FRAME_RATE,4,2 ## @S5P_FIMV_ENC_RC_FRAME_RATE
	.comm	_S5P_FIMV_ENC_RC_QBOUND,4,2     ## @S5P_FIMV_ENC_RC_QBOUND
	.comm	_S5P_FIMV_ENC_RC_MB_CTRL,4,2    ## @S5P_FIMV_ENC_RC_MB_CTRL
	.comm	_P_B_FRAME_QP,4,2               ## @P_B_FRAME_QP
	.comm	_EXT_ENC_CONTROL,4,2            ## @EXT_ENC_CONTROL
	.comm	_SAMPLE_ASPECT_RATIO_IDC,4,2    ## @SAMPLE_ASPECT_RATIO_IDC
	.comm	_EXTENDED_SAR,4,2               ## @EXTENDED_SAR
	.comm	_H264_I_PERIOD,4,2              ## @H264_I_PERIOD
	.comm	_V4L2_MPEG_MFC51_VIDEO_FRAME_SKIP_MODE_BUF_LIMIT,8,3 ## @V4L2_MPEG_MFC51_VIDEO_FRAME_SKIP_MODE_BUF_LIMIT
	.no_dead_strip	_s5p_mfc_set_enc_params_h264
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_mfc_set_enc_params_h264
_s5p_mfc_set_enc_params_h264:           ; @s5p_mfc_set_enc_params_h264
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x20, [x0, #152]
	bl	_s5p_mfc_set_enc_params
Lloh0:
	adrp	x21, _S5P_FIMV_ENC_PIC_TYPE_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _S5P_FIMV_ENC_PIC_TYPE_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_mfc_read
	and	w8, w0, #0xfffcffff
	ldr	w9, [x19, #8]
	orr	w1, w8, w9, lsl #16
	ldr	w2, [x21]
	mov	x0, x20
	bl	_mfc_write
Lloh2:
	adrp	x21, _S5P_FIMV_ENC_PROFILE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _S5P_FIMV_ENC_PROFILE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_mfc_read
	mov	w8, #-65344
	and	w8, w0, w8
	ldp	w9, w10, [x19, #40]
	orr	w8, w8, w9, lsl #8
	orr	w1, w8, w10
	ldr	w2, [x21]
	mov	x0, x20
	bl	_mfc_write
	ldr	w1, [x19, #48]
Lloh4:
	adrp	x8, _S5P_FIMV_ENC_PIC_STRUCT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _S5P_FIMV_ENC_PIC_STRUCT@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_mfc_write
	ldr	w8, [x19, #48]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	asr	w1, w8, #1
Lloh7:
	adrp	x8, _S5P_FIMV_ENC_VSIZE_PX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _S5P_FIMV_ENC_VSIZE_PX@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_mfc_write
LBB0_2:
	ldr	w1, [x19, #52]
Lloh10:
	adrp	x8, _S5P_FIMV_ENC_LF_CTRL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _S5P_FIMV_ENC_LF_CTRL@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_mfc_write
	ldr	w8, [x19, #56]
	mov	w21, #256
	sub	w9, w21, w8
	orr	w9, w9, #0x10
	and	w10, w8, #0xf
	cmp	w8, #0
	csel	w1, w9, w10, lt
Lloh13:
	adrp	x8, _S5P_FIMV_ENC_ALPHA_OFF@GOTPAGE
Lloh14:
	ldr	x8, [x8, _S5P_FIMV_ENC_ALPHA_OFF@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_mfc_write
	ldr	w8, [x19, #60]
	sub	w9, w21, w8
	orr	w9, w9, #0x10
	and	w10, w8, #0xf
	cmp	w8, #0
	csel	w1, w9, w10, lt
Lloh16:
	adrp	x8, _S5P_FIMV_ENC_BETA_OFF@GOTPAGE
Lloh17:
	ldr	x8, [x8, _S5P_FIMV_ENC_BETA_OFF@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_mfc_write
	ldr	x8, [x19, #64]
Lloh19:
	adrp	x9, _V4L2_MPEG_VIDEO_H264_ENTROPY_MODE_CABAC@GOTPAGE
Lloh20:
	ldr	x9, [x9, _V4L2_MPEG_VIDEO_H264_ENTROPY_MODE_CABAC@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w1, eq
Lloh22:
	adrp	x8, _S5P_FIMV_ENC_H264_ENTROPY_MODE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _S5P_FIMV_ENC_H264_ENTROPY_MODE@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_mfc_write
Lloh25:
	adrp	x21, _S5P_FIMV_ENC_H264_NUM_OF_REF@GOTPAGE
Lloh26:
	ldr	x21, [x21, _S5P_FIMV_ENC_H264_NUM_OF_REF@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_mfc_read
	and	w8, w0, #0xffffff80
	ldp	w9, w10, [x19, #72]
	orr	w8, w8, w9, lsl #5
	orr	w1, w8, w10
	ldr	w2, [x21]
	mov	x0, x20
	bl	_mfc_write
	ldr	w1, [x19, #80]
Lloh27:
	adrp	x8, _S5P_FIMV_ENC_H264_TRANS_FLAG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _S5P_FIMV_ENC_H264_TRANS_FLAG@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_mfc_write
Lloh30:
	adrp	x21, _S5P_FIMV_ENC_RC_CONFIG@GOTPAGE
Lloh31:
	ldr	x21, [x21, _S5P_FIMV_ENC_RC_CONFIG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_mfc_read
	mov	w8, #-320
	and	w8, w0, w8
	ldr	w9, [x19, #12]
	orr	w8, w8, w9, lsl #8
	ldr	w9, [x19, #84]
	orr	w1, w8, w9
	ldr	w2, [x21]
	mov	x0, x20
	bl	_mfc_write
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_5
; %bb.4:
	ldr	w9, [x19, #20]
	mov	w10, #1000
	mul	w9, w9, w10
	sdiv	w1, w9, w8
	b	LBB0_6
LBB0_5:
	mov	w1, #0
LBB0_6:
Lloh32:
	adrp	x8, _S5P_FIMV_ENC_RC_FRAME_RATE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _S5P_FIMV_ENC_RC_FRAME_RATE@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_mfc_write
Lloh35:
	adrp	x21, _S5P_FIMV_ENC_RC_QBOUND@GOTPAGE
Lloh36:
	ldr	x21, [x21, _S5P_FIMV_ENC_RC_QBOUND@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_mfc_read
	mov	w8, #-16192
	and	w8, w0, w8
	ldp	w9, w10, [x19, #88]
	orr	w8, w8, w9, lsl #8
	orr	w1, w8, w10
	ldr	w2, [x21]
	mov	x0, x20
	bl	_mfc_write
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_8
; %bb.7:
Lloh37:
	adrp	x21, _S5P_FIMV_ENC_RC_MB_CTRL@GOTPAGE
Lloh38:
	ldr	x21, [x21, _S5P_FIMV_ENC_RC_MB_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_mfc_read
	and	w8, w0, #0xfffffff0
	ldp	w9, w10, [x19, #96]
	orr	w8, w8, w9, lsl #3
	orr	w8, w8, w10, lsl #2
	ldp	w9, w10, [x19, #104]
	orr	w8, w8, w9, lsl #1
	orr	w1, w8, w10
	ldr	w2, [x21]
	mov	x0, x20
	bl	_mfc_write
LBB0_8:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_11
; %bb.9:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_11
; %bb.10:
Lloh39:
	adrp	x20, _P_B_FRAME_QP@GOTPAGE
Lloh40:
	ldr	x20, [x20, _P_B_FRAME_QP@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_s5p_mfc_read_info_v5
	and	w1, w0, #0xfffff000
	ldp	w8, w9, [x19, #112]
	bfi	w1, w8, #6, #6
	bfxil	w1, w9, #0, #6
	ldr	w2, [x20]
	mov	x0, x19
	bl	_s5p_mfc_write_info_v5
LBB0_11:
Lloh41:
	adrp	x20, _EXT_ENC_CONTROL@GOTPAGE
Lloh42:
	ldr	x20, [x20, _EXT_ENC_CONTROL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_s5p_mfc_read_info_v5
	and	w8, w0, #0xffff7fff
	ldr	w9, [x19, #120]
	orr	w1, w8, w9, lsl #1
	ldr	w2, [x20]
	mov	x0, x19
	bl	_s5p_mfc_write_info_v5
	ldr	w8, [x19, #120]
	cbz	w8, LBB0_14
; %bb.12:
Lloh43:
	adrp	x21, _SAMPLE_ASPECT_RATIO_IDC@GOTPAGE
Lloh44:
	ldr	x21, [x21, _SAMPLE_ASPECT_RATIO_IDC@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_s5p_mfc_read_info_v5
	and	w8, w0, #0xffffff00
	ldr	w9, [x19, #124]
	orr	w1, w8, w9
	ldr	w2, [x21]
	mov	x0, x19
	bl	_s5p_mfc_write_info_v5
	ldr	w8, [x19, #124]
	cmp	w8, #255
	b.ne	LBB0_14
; %bb.13:
Lloh45:
	adrp	x21, _EXTENDED_SAR@GOTPAGE
Lloh46:
	ldr	x21, [x21, _EXTENDED_SAR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_s5p_mfc_read_info_v5
	ldp	w8, w9, [x19, #128]
	orr	w1, w9, w8, lsl #16
	ldr	w2, [x21]
	mov	x0, x19
	bl	_s5p_mfc_write_info_v5
LBB0_14:
Lloh47:
	adrp	x21, _H264_I_PERIOD@GOTPAGE
Lloh48:
	ldr	x21, [x21, _H264_I_PERIOD@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_s5p_mfc_read_info_v5
	and	w8, w0, #0xfffeffff
	ldr	w9, [x19, #136]
	orr	w1, w8, w9, lsl #16
	cbz	w9, LBB0_16
; %bb.15:
	and	w8, w1, #0xffff0000
	ldr	w9, [x19, #140]
	orr	w1, w9, w8
LBB0_16:
	ldr	w2, [x21]
	mov	x0, x19
	bl	_s5p_mfc_write_info_v5
	ldr	w1, [x20]
	mov	x0, x19
	bl	_s5p_mfc_read_info_v5
	mov	x1, x0
	ldr	x8, [x19, #24]
Lloh49:
	adrp	x9, _V4L2_MPEG_MFC51_VIDEO_FRAME_SKIP_MODE_BUF_LIMIT@GOTPAGE
Lloh50:
	ldr	x9, [x9, _V4L2_MPEG_MFC51_VIDEO_FRAME_SKIP_MODE_BUF_LIMIT@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.17:
	ldr	w8, [x19, #144]
	bfi	w1, w8, #16, #16
LBB0_18:
	ldr	w2, [x20]
	mov	x0, x19
	bl	_s5p_mfc_write_info_v5
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_S5P_FIMV_ENC_PIC_TYPE_CTRL,4,2 ; @S5P_FIMV_ENC_PIC_TYPE_CTRL
	.comm	_S5P_FIMV_ENC_PROFILE,4,2       ; @S5P_FIMV_ENC_PROFILE
	.comm	_S5P_FIMV_ENC_PIC_STRUCT,4,2    ; @S5P_FIMV_ENC_PIC_STRUCT
	.comm	_S5P_FIMV_ENC_VSIZE_PX,4,2      ; @S5P_FIMV_ENC_VSIZE_PX
	.comm	_S5P_FIMV_ENC_LF_CTRL,4,2       ; @S5P_FIMV_ENC_LF_CTRL
	.comm	_S5P_FIMV_ENC_ALPHA_OFF,4,2     ; @S5P_FIMV_ENC_ALPHA_OFF
	.comm	_S5P_FIMV_ENC_BETA_OFF,4,2      ; @S5P_FIMV_ENC_BETA_OFF
	.comm	_V4L2_MPEG_VIDEO_H264_ENTROPY_MODE_CABAC,8,3 ; @V4L2_MPEG_VIDEO_H264_ENTROPY_MODE_CABAC
	.comm	_S5P_FIMV_ENC_H264_ENTROPY_MODE,4,2 ; @S5P_FIMV_ENC_H264_ENTROPY_MODE
	.comm	_S5P_FIMV_ENC_H264_NUM_OF_REF,4,2 ; @S5P_FIMV_ENC_H264_NUM_OF_REF
	.comm	_S5P_FIMV_ENC_H264_TRANS_FLAG,4,2 ; @S5P_FIMV_ENC_H264_TRANS_FLAG
	.comm	_S5P_FIMV_ENC_RC_CONFIG,4,2     ; @S5P_FIMV_ENC_RC_CONFIG
	.comm	_S5P_FIMV_ENC_RC_FRAME_RATE,4,2 ; @S5P_FIMV_ENC_RC_FRAME_RATE
	.comm	_S5P_FIMV_ENC_RC_QBOUND,4,2     ; @S5P_FIMV_ENC_RC_QBOUND
	.comm	_S5P_FIMV_ENC_RC_MB_CTRL,4,2    ; @S5P_FIMV_ENC_RC_MB_CTRL
	.comm	_P_B_FRAME_QP,4,2               ; @P_B_FRAME_QP
	.comm	_EXT_ENC_CONTROL,4,2            ; @EXT_ENC_CONTROL
	.comm	_SAMPLE_ASPECT_RATIO_IDC,4,2    ; @SAMPLE_ASPECT_RATIO_IDC
	.comm	_EXTENDED_SAR,4,2               ; @EXTENDED_SAR
	.comm	_H264_I_PERIOD,4,2              ; @H264_I_PERIOD
	.comm	_V4L2_MPEG_MFC51_VIDEO_FRAME_SKIP_MODE_BUF_LIMIT,8,3 ; @V4L2_MPEG_MFC51_VIDEO_FRAME_SKIP_MODE_BUF_LIMIT
	.no_dead_strip	_s5p_mfc_set_enc_params_h264
.subsections_via_symbols
