	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	224(%rdi), %rax
	movq	(%rax), %r13
	xorl	%eax, %eax
	callq	_mfc_debug_enter
	movq	%r15, %rdi
	callq	_s5p_mfc_set_enc_params
	movq	192(%r13), %rdi
	callq	_readl
	andl	$-196609, %eax                  ## imm = 0xFFFCFFFF
	movl	8(%r15), %edi
	andl	$3, %edi
	shll	$16, %edi
	orl	%eax, %edi
	movq	192(%r13), %rsi
	callq	_writel
	movl	48(%r15), %eax
	movl	52(%r15), %edi
	shll	$8, %eax
	movzwl	%ax, %eax
	andl	$63, %edi
	orl	%eax, %edi
	movq	184(%r13), %rsi
	callq	_writel
	movq	176(%r13), %rdi
	callq	_readl
	andl	$-257, %eax                     ## imm = 0xFEFF
	movl	12(%r15), %ebx
	andl	$1, %ebx
	shll	$8, %ebx
	orl	%eax, %ebx
	movq	176(%r13), %rsi
	movl	%ebx, %edi
	callq	_writel
	andl	$-64, %ebx
	movl	56(%r15), %edi
	andl	$63, %edi
	orl	%ebx, %edi
	movq	176(%r13), %rsi
	callq	_writel
	movl	60(%r15), %eax
	movl	64(%r15), %edi
	andl	$63, %eax
	shll	$8, %eax
	andl	$63, %edi
	orl	%eax, %edi
	movq	168(%r13), %rsi
	callq	_writel
	movq	160(%r13), %rsi
	xorl	%edi, %edi
	callq	_writel
	cmpq	$0, 40(%r15)
	je	LBB0_1
LBB0_3:
	movl	16(%r15), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	20(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.5:
	shll	$16, %eax
	movzwl	%cx, %edi
	orl	%eax, %edi
	movq	152(%r13), %rsi
	callq	_writel
	jmp	LBB0_6
LBB0_1:
	cmpl	$0, 12(%r15)
	je	LBB0_2
LBB0_6:
	movq	24(%r15), %rax
	movq	_V4L2_MPEG_MFC51_VIDEO_FRAME_SKIP_MODE_BUF_LIMIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:
	movzwl	76(%r15), %edi
	movq	144(%r13), %rsi
	callq	_writel
	cmpq	$0, 40(%r15)
	je	LBB0_9
## %bb.8:
	movl	32(%r15), %edi
	movq	136(%r13), %rsi
	callq	_writel
LBB0_9:
	movl	80(%r15), %edi
	shll	$3, %edi
	andl	$8, %edi
	movq	48(%r13), %rsi
	callq	_writel
	cmpl	$0, 80(%r15)
	je	LBB0_11
## %bb.10:
	movl	(%r15), %edi
	sarl	%edi
	movq	128(%r13), %rsi
	callq	_writel
	movl	(%r15), %edi
	sarl	%edi
	movq	120(%r13), %rsi
	callq	_writel
LBB0_11:
	movq	48(%r13), %rdi
	callq	_readl
                                        ## kill: def $eax killed $eax def $rax
	andl	$-7, %eax
	movl	84(%r15), %ecx
	andl	$3, %ecx
	leal	(%rax,%rcx,2), %edi
	movq	48(%r13), %rsi
	callq	_writel
	movl	88(%r15), %eax
	movl	$256, %ebx                      ## imm = 0x100
	movl	$256, %ecx                      ## imm = 0x100
	subl	%eax, %ecx
	orl	$16, %ecx
	movl	%eax, %edi
	andl	$15, %edi
	testl	%eax, %eax
	cmovsl	%ecx, %edi
	movq	112(%r13), %rsi
	callq	_writel
	movl	92(%r15), %eax
	subl	%eax, %ebx
	orl	$16, %ebx
	movl	%eax, %edi
	andl	$15, %edi
	testl	%eax, %eax
	cmovsl	%ebx, %edi
	movq	104(%r13), %rsi
	callq	_writel
	movq	48(%r13), %rdi
	callq	_readl
	andl	$-2, %eax
	movl	96(%r15), %edi
	andl	$1, %edi
	orl	%eax, %edi
	movq	48(%r13), %rsi
	callq	_writel
	movq	48(%r13), %rdi
	callq	_readl
	andl	$-129, %eax
	movl	100(%r15), %ecx
	shll	$7, %ecx
	movzbl	%cl, %edi
	orl	%eax, %edi
	xorl	$128, %edi
	movq	48(%r13), %rsi
	callq	_writel
	movq	48(%r13), %rdi
	callq	_readl
	andl	$-12289, %eax                   ## imm = 0xCFFF
	movl	104(%r15), %ebx
	andl	$3, %ebx
	shll	$12, %ebx
	orl	%eax, %ebx
	movq	48(%r13), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	96(%r13), %rsi
	xorl	%edi, %edi
	callq	_writel
	cmpl	$0, 12(%r15)
	je	LBB0_13
## %bb.12:
	movl	108(%r15), %eax
	movl	112(%r15), %ecx
	andl	$1, %eax
	shll	$3, %eax
	andl	$1, %ecx
	leal	(%rax,%rcx,4), %eax
	movl	116(%r15), %ecx
	andl	$1, %ecx
	leal	(%rax,%rcx,2), %eax
	movl	120(%r15), %ebx
	andl	$1, %ebx
	orl	%eax, %ebx
	movq	96(%r13), %rsi
	movl	%ebx, %edi
	callq	_writel
LBB0_13:
	movq	48(%r13), %rdi
	callq	_readl
	andl	$-33, %ebx
	movl	124(%r15), %r14d
	shll	$5, %r14d
	andl	$32, %r14d
	orl	%ebx, %r14d
	movq	48(%r13), %rsi
	movl	%r14d, %edi
	callq	_writel
	movq	88(%r13), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	80(%r13), %rsi
	xorl	%edi, %edi
	callq	_writel
	cmpl	$0, 124(%r15)
	je	LBB0_16
## %bb.14:
	movzbl	128(%r15), %r14d
	movq	88(%r13), %rsi
	movl	%r14d, %edi
	callq	_writel
	cmpl	$255, 128(%r15)
	jne	LBB0_16
## %bb.15:
	movl	132(%r15), %eax
	shll	$16, %eax
	movzwl	136(%r15), %r14d
	orl	%eax, %r14d
	movq	80(%r13), %rsi
	movl	%r14d, %edi
	callq	_writel
LBB0_16:
	movq	48(%r13), %rdi
	callq	_readl
	andl	$-17, %r14d
	movl	140(%r15), %r12d
	shll	$4, %r12d
	andl	$16, %r12d
	orl	%r14d, %r12d
	movq	48(%r13), %rsi
	movl	%r12d, %edi
	callq	_writel
	movq	72(%r13), %rsi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_writel
	cmpl	$0, 140(%r15)
	je	LBB0_18
## %bb.17:
	movzwl	144(%r15), %r12d
	movq	72(%r13), %rsi
	movl	%r12d, %edi
	callq	_writel
LBB0_18:
	movq	48(%r13), %rdi
	callq	_readl
	movl	%r12d, %edi
	andl	$-1537, %edi                    ## imm = 0xF9FF
	movq	48(%r13), %rsi
	callq	_writel
	movq	48(%r13), %rdi
	callq	_readl
	movl	%r12d, %edi
	andl	$-17921, %edi                   ## imm = 0xB9FF
	movq	48(%r13), %rsi
	callq	_writel
	movq	48(%r13), %rdi
	callq	_readl
	andl	$-17985, %r12d                  ## imm = 0xB9BF
	movl	148(%r15), %ebx
	shll	$6, %ebx
	andl	$64, %ebx
	orl	%r12d, %ebx
	movq	48(%r13), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	48(%r13), %rdi
	callq	_readl
	andl	$-18177, %ebx                   ## imm = 0xB8FF
	movl	140(%r15), %edi
	andl	$1, %edi
	shll	$8, %edi
	orl	%ebx, %edi
	movq	48(%r13), %rsi
	callq	_writel
	cmpq	$0, 216(%r15)
	je	LBB0_24
## %bb.19:
	movl	152(%r15), %eax
	testl	%eax, %eax
	je	LBB0_24
## %bb.20:
	movl	156(%r15), %ecx
	andl	$1, %ecx
	andl	$7, %eax
	leal	(%rax,%rcx,8), %r14d
	movq	56(%r13), %rsi
	movl	%r14d, %edi
	callq	_writel
	cmpl	$0, 152(%r15)
	jle	LBB0_24
## %bb.21:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	160(%r15), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	160(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	leal	(,%rbx,4), %esi
	addq	64(%r13), %rsi
	callq	_writel
	incq	%rbx
	movslq	152(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_22
LBB0_24:
	movq	56(%r13), %rsi
	movl	%r14d, %edi
	callq	_writel
	movq	48(%r13), %rdi
	callq	_readl
	movl	168(%r15), %edi
	andl	$1, %edi
	shll	$25, %edi
	orl	%r14d, %edi
	movq	48(%r13), %rsi
	callq	_writel
	cmpl	$0, 168(%r15)
	je	LBB0_26
## %bb.25:
	movl	172(%r15), %eax
	movl	176(%r15), %ecx
	andl	$1, %eax
	andl	$3, %ecx
	leal	(%rcx,%rax,4), %edi
	movq	40(%r13), %rsi
	callq	_writel
LBB0_26:
	cmpq	$0, 208(%r15)
	je	LBB0_27
## %bb.28:
	movl	180(%r15), %esi
	leal	-128(%rsi), %eax
	cmpl	$3, %eax
	ja	LBB0_40
## %bb.29:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_37:
	cmpl	$3, 184(%r15)
	jl	LBB0_39
## %bb.38:
	movl	$2, 184(%r15)
LBB0_39:
	movl	188(%r15), %edi
	andl	$1, %edi
	movq	24(%r13), %rsi
	callq	_writel
	movl	192(%r15), %edi
	movq	16(%r13), %rsi
	callq	_writel
	jmp	LBB0_41
LBB0_27:
	xorl	%edi, %edi
	jmp	LBB0_42
LBB0_2:
	movl	56(%r15), %edi
	movl	68(%r15), %eax
	andl	$63, %eax
	shll	$16, %eax
	movl	72(%r15), %ecx
	andl	$63, %ecx
	shll	$8, %ecx
	orl	%eax, %ecx
	andl	$63, %edi
	orl	%ecx, %edi
	movq	160(%r13), %rsi
	callq	_writel
	cmpq	$0, 40(%r15)
	jne	LBB0_3
	jmp	LBB0_6
LBB0_35:
	cmpl	$5, 184(%r15)
	jl	LBB0_41
## %bb.36:
	movl	$4, 184(%r15)
	jmp	LBB0_41
LBB0_30:
	movl	184(%r15), %eax
	cmpl	$5, %eax
	jl	LBB0_32
## %bb.31:
	movl	$4, 184(%r15)
	jmp	LBB0_33
LBB0_40:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_mfc_err
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, 180(%r15)
	jmp	LBB0_41
LBB0_32:
	testb	$15, %al
	je	LBB0_41
LBB0_33:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movq	200(%r15), %rax
	movl	(%rax,%rbx), %edi
	decl	%edi
	movslq	32(%r13), %rsi
	addq	%rbx, %rsi
	callq	_writel
	incq	%r14
	movl	184(%r15), %eax
	andl	$15, %eax
	addq	$4, %rbx
	cmpq	%rax, %r14
	jb	LBB0_34
LBB0_41:
	movl	180(%r15), %edi
	movq	8(%r13), %rsi
	callq	_writel
	movl	184(%r15), %edi
	decl	%edi
LBB0_42:
	movq	(%r13), %rsi
	callq	_writel
	xorl	%eax, %eax
	callq	_mfc_debug_leave
	xorl	%eax, %eax
	addq	$8, %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_37, LBB0_37-LJTI0_0
.set L0_0_set_35, LBB0_35-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
LJTI0_0:
	.long	L0_0_set_37
	.long	L0_0_set_35
	.long	L0_0_set_37
	.long	L0_0_set_30
	.end_data_region
                                        ## -- End function
	.comm	_V4L2_MPEG_MFC51_VIDEO_FRAME_SKIP_MODE_BUF_LIMIT,8,3 ## @V4L2_MPEG_MFC51_VIDEO_FRAME_SKIP_MODE_BUF_LIMIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported map type for FMO: %d\n"

	.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
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function s5p_mfc_set_enc_params_h264
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_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	x8, [x0, #224]
	ldr	x21, [x8]
	bl	_mfc_debug_enter
	mov	x0, x19
	bl	_s5p_mfc_set_enc_params
	ldr	x0, [x21, #192]
	bl	_readl
	ldr	w8, [x19, #8]
	bfi	w0, w8, #16, #2
	ldr	x1, [x21, #192]
	bl	_writel
	ldp	w8, w9, [x19, #48]
	and	w0, w9, #0x3f
	bfi	w0, w8, #8, #8
	ldr	x1, [x21, #184]
	bl	_writel
	ldr	x0, [x21, #176]
	bl	_readl
	mov	x20, x0
	ldr	w8, [x19, #12]
	bfi	w20, w8, #8, #1
	ldr	x1, [x21, #176]
	mov	x0, x20
	bl	_writel
	ldr	w8, [x19, #56]
	bfxil	w20, w8, #0, #6
	ldr	x1, [x21, #176]
	mov	x0, x20
	bl	_writel
	ldp	w8, w9, [x19, #60]
	and	w0, w9, #0x3f
	bfi	w0, w8, #8, #6
	ldr	x1, [x21, #168]
	bl	_writel
	ldr	x1, [x21, #160]
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_4
LBB0_1:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_5
; %bb.2:
	ldr	w0, [x19, #20]
	cbz	w0, LBB0_5
; %bb.3:
	bfi	w0, w8, #16, #16
	ldr	x1, [x21, #152]
	bl	_writel
	b	LBB0_5
LBB0_4:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_33
LBB0_5:
	ldr	x8, [x19, #24]
Lloh0:
	adrp	x9, _V4L2_MPEG_MFC51_VIDEO_FRAME_SKIP_MODE_BUF_LIMIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_MPEG_MFC51_VIDEO_FRAME_SKIP_MODE_BUF_LIMIT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	ldrh	w0, [x19, #76]
	ldr	x1, [x21, #144]
	bl	_writel
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w0, [x19, #32]
	ldr	x1, [x21, #136]
	bl	_writel
LBB0_8:
	ldr	w8, [x19, #80]
	ubfiz	w0, w8, #3, #1
	ldr	x1, [x21, #48]
	bl	_writel
	ldr	w8, [x19, #80]
	cbz	w8, LBB0_10
; %bb.9:
	ldr	w8, [x19]
	asr	w0, w8, #1
	ldr	x1, [x21, #128]
	bl	_writel
	ldr	w8, [x19]
	asr	w0, w8, #1
	ldr	x1, [x21, #120]
	bl	_writel
LBB0_10:
	ldr	x0, [x21, #48]
	bl	_readl
	ldr	w8, [x19, #84]
	bfi	w0, w8, #1, #2
	ldr	x1, [x21, #48]
	bl	_writel
	ldr	w8, [x19, #88]
	mov	w20, #256
	sub	w9, w20, w8
	orr	w9, w9, #0x10
	and	w10, w8, #0xf
	cmp	w8, #0
	csel	w0, w9, w10, lt
	ldr	x1, [x21, #112]
	bl	_writel
	ldr	w8, [x19, #92]
	sub	w9, w20, w8
	orr	w9, w9, #0x10
	and	w10, w8, #0xf
	cmp	w8, #0
	csel	w0, w9, w10, lt
	ldr	x1, [x21, #104]
	bl	_writel
	ldr	x0, [x21, #48]
	bl	_readl
	ldr	w8, [x19, #96]
	bfxil	w0, w8, #0, #1
	ldr	x1, [x21, #48]
	bl	_writel
	ldr	x0, [x21, #48]
	bl	_readl
	ldr	w8, [x19, #100]
	bfi	w0, w8, #7, #1
	eor	w0, w0, #0x80
	ldr	x1, [x21, #48]
	bl	_writel
	ldr	x0, [x21, #48]
	bl	_readl
	mov	x20, x0
	ldr	w8, [x19, #104]
	bfi	w20, w8, #12, #2
	ldr	x1, [x21, #48]
	mov	x0, x20
	bl	_writel
	ldr	x1, [x21, #96]
	mov	w0, #0
	bl	_writel
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_12
; %bb.11:
	ldp	w8, w9, [x19, #108]
	ubfiz	w20, w8, #3, #1
	bfi	w20, w9, #2, #1
	ldp	w8, w9, [x19, #116]
	bfi	w20, w8, #1, #1
	bfxil	w20, w9, #0, #1
	ldr	x1, [x21, #96]
	mov	x0, x20
	bl	_writel
LBB0_12:
	ldr	x0, [x21, #48]
	bl	_readl
	ldr	w8, [x19, #124]
	bfi	w20, w8, #5, #1
	ldr	x1, [x21, #48]
	mov	x0, x20
	bl	_writel
	ldr	x1, [x21, #88]
	mov	w0, #0
	bl	_writel
	ldr	x1, [x21, #80]
	mov	w0, #0
	bl	_writel
	ldr	w8, [x19, #124]
	cbz	w8, LBB0_15
; %bb.13:
	ldrb	w20, [x19, #128]
	ldr	x1, [x21, #88]
	mov	x0, x20
	bl	_writel
	ldr	w8, [x19, #128]
	cmp	w8, #255
	b.ne	LBB0_15
; %bb.14:
	ldr	w8, [x19, #132]
	ldrh	w20, [x19, #136]
	bfi	w20, w8, #16, #16
	ldr	x1, [x21, #80]
	mov	x0, x20
	bl	_writel
LBB0_15:
	ldr	x0, [x21, #48]
	bl	_readl
	ldr	w8, [x19, #140]
	bfi	w20, w8, #4, #1
	ldr	x1, [x21, #48]
	mov	x0, x20
	bl	_writel
	ldr	x1, [x21, #72]
	mov	w0, #0
	bl	_writel
	ldr	w8, [x19, #140]
	cbz	w8, LBB0_17
; %bb.16:
	ldrh	w20, [x19, #144]
	ldr	x1, [x21, #72]
	mov	x0, x20
	bl	_writel
LBB0_17:
	ldr	x0, [x21, #48]
	bl	_readl
	and	w0, w20, #0xfffff9ff
	ldr	x1, [x21, #48]
	bl	_writel
	ldr	x0, [x21, #48]
	bl	_readl
	mov	w8, #-17921
	and	w0, w20, w8
	ldr	x1, [x21, #48]
	bl	_writel
	ldr	x0, [x21, #48]
	bl	_readl
	mov	w8, #-17985
	and	w20, w20, w8
	ldr	w8, [x19, #148]
	bfi	w20, w8, #6, #1
	ldr	x1, [x21, #48]
	mov	x0, x20
	bl	_writel
	ldr	x0, [x21, #48]
	bl	_readl
	and	w8, w20, #0xfffff8ff
	ldr	w9, [x19, #140]
	ubfiz	w9, w9, #8, #1
	orr	w0, w9, w8
	ldr	x1, [x21, #48]
	bl	_writel
	ldr	x8, [x19, #216]
	cbz	x8, LBB0_23
; %bb.18:
	ldr	w8, [x19, #152]
	cbz	w8, LBB0_23
; %bb.19:
	ldr	w9, [x19, #156]
	and	w20, w8, #0x7
	bfi	w20, w9, #3, #1
	ldr	x1, [x21, #56]
	mov	x0, x20
	bl	_writel
	ldr	w8, [x19, #152]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.20:
	mov	x22, #0
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #160]
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.ge	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x8, [x19, #160]
	lsl	x9, x22, #2
	ldr	w0, [x8, x9]
	ldr	x8, [x21, #64]
	and	x9, x9, #0xfffffffc
	add	x1, x8, x9
	bl	_writel
	add	x22, x22, #1
	ldrsw	x8, [x19, #152]
	cmp	x22, x8
	b.lt	LBB0_21
	b	LBB0_24
LBB0_23:
	mov	w20, #0
LBB0_24:
	ldr	x1, [x21, #56]
	mov	x0, x20
	bl	_writel
	ldr	x0, [x21, #48]
	bl	_readl
	ldr	w8, [x19, #168]
	bfi	w20, w8, #25, #1
	ldr	x1, [x21, #48]
	mov	x0, x20
	bl	_writel
	ldr	w8, [x19, #168]
	cbz	w8, LBB0_26
; %bb.25:
	ldp	w8, w9, [x19, #172]
	and	w0, w9, #0x3
	bfi	w0, w8, #2, #1
	ldr	x1, [x21, #40]
	bl	_writel
LBB0_26:
	ldr	x8, [x19, #208]
	cbz	x8, LBB0_32
; %bb.27:
	ldr	w1, [x19, #180]
	sub	w8, w1, #128
	cmp	w8, #3
	b.hi	LBB0_38
; %bb.28:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_29
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_29:
	ldr	w8, [x19, #184]
	cmp	w8, #3
	b.lt	LBB0_31
; %bb.30:
	mov	w8, #2
	str	w8, [x19, #184]
LBB0_31:
	ldr	w8, [x19, #188]
	and	w0, w8, #0x1
	ldr	x1, [x21, #24]
	bl	_writel
	ldr	w0, [x19, #192]
	ldr	x1, [x21, #16]
	bl	_writel
	b	LBB0_42
LBB0_32:
	mov	w0, #0
	b	LBB0_43
LBB0_33:
	ldp	w8, w9, [x19, #68]
	ubfiz	w0, w8, #16, #6
	bfi	w0, w9, #8, #6
	ldr	w8, [x19, #56]
	bfxil	w0, w8, #0, #6
	ldr	x1, [x21, #160]
	bl	_writel
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_1
	b	LBB0_5
LBB0_34:
	ldr	w8, [x19, #184]
	cmp	w8, #5
	b.lt	LBB0_42
; %bb.35:
	mov	w8, #4
	str	w8, [x19, #184]
	b	LBB0_42
LBB0_36:
	ldr	w8, [x19, #184]
	cmp	w8, #5
	b.lt	LBB0_39
; %bb.37:
	mov	w8, #4
	str	w8, [x19, #184]
	b	LBB0_40
LBB0_38:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_mfc_err
Lloh7:
	adrp	x8, lCPI0_0@PAGE
Lloh8:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #180]
	b	LBB0_42
LBB0_39:
	tst	w8, #0xf
	b.eq	LBB0_42
LBB0_40:
	mov	x20, #0
	mov	x22, #0
LBB0_41:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #200]
	ldr	w8, [x8, x20]
	sub	w0, w8, #1
	ldrsw	x8, [x21, #32]
	add	x1, x20, x8
	bl	_writel
	add	x22, x22, #1
	ldr	w8, [x19, #184]
	and	x8, x8, #0xf
	add	x20, x20, #4
	cmp	x22, x8
	b.lo	LBB0_41
LBB0_42:
	ldr	w0, [x19, #180]
	ldr	x1, [x21, #8]
	bl	_writel
	ldr	w8, [x19, #184]
	sub	w0, w8, #1
LBB0_43:
	ldr	x1, [x21]
	bl	_writel
	bl	_mfc_debug_leave
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_29-LBB0_29)>>2
	.byte	(LBB0_34-LBB0_29)>>2
	.byte	(LBB0_29-LBB0_29)>>2
	.byte	(LBB0_36-LBB0_29)>>2
                                        ; -- End function
	.comm	_V4L2_MPEG_MFC51_VIDEO_FRAME_SKIP_MODE_BUF_LIMIT,8,3 ; @V4L2_MPEG_MFC51_VIDEO_FRAME_SKIP_MODE_BUF_LIMIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported map type for FMO: %d\n"

	.no_dead_strip	_s5p_mfc_set_enc_params_h264
.subsections_via_symbols
