	.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_h263
_s5p_mfc_set_enc_params_h263:           ## @s5p_mfc_set_enc_params_h263
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	64(%rdi), %rax
	movq	(%rax), %r15
	xorl	%eax, %eax
	callq	_mfc_debug_enter
	movq	%r14, %rdi
	callq	_s5p_mfc_set_enc_params
	movl	24(%r15), %esi
	movl	$16, %edi
	callq	_writel
	movl	20(%r15), %edi
	callq	_readl
	andl	$-257, %eax                     ## imm = 0xFEFF
	movl	(%r14), %ebx
	andl	$1, %ebx
	shll	$8, %ebx
	orl	%eax, %ebx
	movl	20(%r15), %esi
	movl	%ebx, %edi
	callq	_writel
	andl	$-64, %ebx
	movl	40(%r14), %edi
	andl	$63, %edi
	orl	%ebx, %edi
	movl	20(%r15), %esi
	callq	_writel
	movl	44(%r14), %eax
	movl	48(%r14), %edi
	andl	$63, %eax
	shll	$8, %eax
	andl	$63, %edi
	orl	%eax, %edi
	movl	16(%r15), %esi
	callq	_writel
	movl	12(%r15), %esi
	xorl	%edi, %edi
	callq	_writel
	cmpq	$0, 32(%r14)
	je	LBB0_1
LBB0_3:
	movl	4(%r14), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	8(%r14), %ecx
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.5:
	shll	$16, %eax
	movzwl	%cx, %edi
	orl	%eax, %edi
	movl	8(%r15), %esi
	callq	_writel
	jmp	LBB0_6
LBB0_1:
	cmpl	$0, (%r14)
	jne	LBB0_6
## %bb.2:
	movl	40(%r14), %edi
	movl	52(%r14), %eax
	andl	$63, %eax
	shll	$16, %eax
	movl	56(%r14), %ecx
	andl	$63, %ecx
	shll	$8, %ecx
	orl	%eax, %ecx
	andl	$63, %edi
	orl	%ecx, %edi
	movl	12(%r15), %esi
	callq	_writel
	cmpq	$0, 32(%r14)
	jne	LBB0_3
LBB0_6:
	movq	16(%r14), %rax
	movq	_V4L2_MPEG_MFC51_VIDEO_FRAME_SKIP_MODE_BUF_LIMIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:
	movzwl	24(%r14), %edi
	movl	4(%r15), %esi
	callq	_writel
	cmpq	$0, 32(%r14)
	je	LBB0_9
## %bb.8:
	movl	28(%r14), %edi
	movl	(%r15), %esi
	callq	_writel
LBB0_9:
	xorl	%eax, %eax
	callq	_mfc_debug_leave
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_h263
.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_h263
_s5p_mfc_set_enc_params_h263:           ; @s5p_mfc_set_enc_params_h263
	.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, #64]
	ldr	x21, [x8]
	bl	_mfc_debug_enter
	mov	x0, x19
	bl	_s5p_mfc_set_enc_params
	ldr	w1, [x21, #24]
	mov	w0, #16
	bl	_writel
	ldr	w0, [x21, #20]
	bl	_readl
	mov	x20, x0
	ldr	w8, [x19]
	bfi	w20, w8, #8, #1
	ldr	w1, [x21, #20]
	mov	x0, x20
	bl	_writel
	ldr	w8, [x19, #40]
	bfxil	w20, w8, #0, #6
	ldr	w1, [x21, #20]
	mov	x0, x20
	bl	_writel
	ldp	w8, w9, [x19, #44]
	and	w0, w9, #0x3f
	bfi	w0, w8, #8, #6
	ldr	w1, [x21, #16]
	bl	_writel
	ldr	w1, [x21, #12]
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_4
LBB0_1:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_6
; %bb.2:
	ldr	w0, [x19, #8]
	cbz	w0, LBB0_6
; %bb.3:
	bfi	w0, w8, #16, #16
	ldr	w1, [x21, #8]
	bl	_writel
	b	LBB0_6
LBB0_4:
	ldr	w8, [x19]
	cbnz	w8, LBB0_6
; %bb.5:
	ldp	w8, w9, [x19, #52]
	ubfiz	w0, w8, #16, #6
	bfi	w0, w9, #8, #6
	ldr	w8, [x19, #40]
	bfxil	w0, w8, #0, #6
	ldr	w1, [x21, #12]
	bl	_writel
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_1
LBB0_6:
	ldr	x8, [x19, #16]
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_9
; %bb.7:
	ldrh	w0, [x19, #24]
	ldr	w1, [x21, #4]
	bl	_writel
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w0, [x19, #28]
	ldr	w1, [x21]
	bl	_writel
LBB0_9:
	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
	.cfi_endproc
                                        ; -- End function
	.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_h263
.subsections_via_symbols
