	.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_vp8
_s5p_mfc_set_enc_params_vp8:            ## @s5p_mfc_set_enc_params_vp8
	.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	72(%rdi), %rax
	movq	(%rax), %r15
	xorl	%eax, %eax
	callq	_mfc_debug_enter
	movq	%r14, %rdi
	callq	_s5p_mfc_set_enc_params
	movl	32(%r15), %edi
	callq	_readl
	andl	$-196609, %eax                  ## imm = 0xFFFCFFFF
	movl	(%r14), %edi
	andl	$3, %edi
	shll	$16, %edi
	orl	%eax, %edi
	movl	32(%r15), %esi
	callq	_writel
	movl	40(%r14), %edi
	andl	$3, %edi
	movl	28(%r15), %esi
	callq	_writel
	movl	20(%r15), %edi
	callq	_readl
	andl	$-257, %eax                     ## imm = 0xFEFF
	movl	4(%r14), %ebx
	andl	$1, %ebx
	shll	$8, %ebx
	orl	%eax, %ebx
	movl	20(%r15), %esi
	movl	%ebx, %edi
	callq	_writel
	cmpq	$0, 32(%r14)
	je	LBB0_4
## %bb.1:
	movl	8(%r14), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	12(%r14), %ecx
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.3:
	shll	$16, %eax
	movzwl	%cx, %ebx
	orl	%eax, %ebx
	movl	24(%r15), %esi
	movl	%ebx, %edi
	callq	_writel
LBB0_4:
	andl	$-128, %ebx
	movl	44(%r14), %edi
	andl	$127, %edi
	orl	%ebx, %edi
	movl	20(%r15), %esi
	callq	_writel
	movl	16(%r15), %esi
	xorl	%edi, %edi
	callq	_writel
	cmpq	$0, 32(%r14)
	jne	LBB0_7
## %bb.5:
	cmpl	$0, 4(%r14)
	jne	LBB0_7
## %bb.6:
	movl	44(%r14), %edi
	movl	48(%r14), %eax
	andl	$127, %eax
	shll	$8, %eax
	andl	$127, %edi
	orl	%eax, %edi
	movl	16(%r15), %esi
	callq	_writel
LBB0_7:
	movl	52(%r14), %eax
	movl	56(%r14), %edi
	andl	$127, %eax
	shll	$8, %eax
	andl	$127, %edi
	orl	%eax, %edi
	movl	12(%r15), %esi
	callq	_writel
	movq	16(%r14), %rax
	movq	_V4L2_MPEG_MFC51_VIDEO_FRAME_SKIP_MODE_BUF_LIMIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.8:
	movzwl	24(%r14), %edi
	movl	8(%r15), %esi
	callq	_writel
	cmpq	$0, 32(%r14)
	je	LBB0_10
## %bb.9:
	movl	28(%r14), %edi
	movl	4(%r15), %esi
	callq	_writel
LBB0_10:
	movl	60(%r14), %eax
	movl	64(%r14), %edx
	addl	$-128, %edx
	xorl	%ecx, %ecx
	cmpl	$2, %edx
	ja	LBB0_12
## %bb.11:
	movslq	%edx, %rcx
	leaq	l_switch.table.s5p_mfc_set_enc_params_vp8(%rip), %rdx
	movl	(%rdx,%rcx,4), %ecx
LBB0_12:
	andl	$1, %eax
	shll	$10, %eax
	movl	68(%r14), %edi
	andl	$2, %edi
	orl	%ecx, %edi
	orl	%eax, %edi
	movl	(%r15), %esi
	callq	_writel
	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_vp8
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.s5p_mfc_set_enc_params_vp8
l_switch.table.s5p_mfc_set_enc_params_vp8:
	.long	64                              ## 0x40
	.long	32                              ## 0x20
	.long	16                              ## 0x10

.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_vp8
_s5p_mfc_set_enc_params_vp8:            ; @s5p_mfc_set_enc_params_vp8
	.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, #72]
	ldr	x22, [x8]
	bl	_mfc_debug_enter
	mov	x0, x19
	bl	_s5p_mfc_set_enc_params
	ldr	w0, [x22, #32]
	bl	_readl
	ldr	w8, [x19]
	bfi	w0, w8, #16, #2
	ldr	w1, [x22, #32]
	bl	_writel
	ldr	w8, [x19, #40]
	and	w0, w8, #0x3
	ldr	w1, [x22, #28]
	bl	_writel
	ldr	w0, [x22, #20]
	bl	_readl
	mov	x20, x0
	ldr	w8, [x19, #4]
	bfi	w20, w8, #8, #1
	ldr	w1, [x22, #20]
	mov	x0, x20
	bl	_writel
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_4
; %bb.2:
	ldr	w21, [x19, #12]
	cbz	w21, LBB0_4
; %bb.3:
	bfi	w21, w8, #16, #16
	ldr	w1, [x22, #24]
	mov	x0, x21
	bl	_writel
	mov	x20, x21
LBB0_4:
	ldr	w8, [x19, #44]
	bfxil	w20, w8, #0, #7
	ldr	w1, [x22, #20]
	mov	x0, x20
	bl	_writel
	ldr	w1, [x22, #16]
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_7
; %bb.5:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_7
; %bb.6:
	ldp	w9, w8, [x19, #44]
	and	w0, w9, #0x7f
	bfi	w0, w8, #8, #7
	ldr	w1, [x22, #16]
	bl	_writel
LBB0_7:
	ldp	w8, w9, [x19, #52]
	and	w0, w9, #0x7f
	bfi	w0, w8, #8, #7
	ldr	w1, [x22, #12]
	bl	_writel
	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_10
; %bb.8:
	ldrh	w0, [x19, #24]
	ldr	w1, [x22, #8]
	bl	_writel
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w0, [x19, #28]
	ldr	w1, [x22, #4]
	bl	_writel
LBB0_10:
	ldp	w8, w9, [x19, #60]
	sub	w9, w9, #128
	cmp	w9, #2
	b.hi	LBB0_12
; %bb.11:
Lloh3:
	adrp	x10, l_switch.table.s5p_mfc_set_enc_params_vp8@PAGE
Lloh4:
	add	x10, x10, l_switch.table.s5p_mfc_set_enc_params_vp8@PAGEOFF
	ldr	w9, [x10, w9, sxtw #2]
	b	LBB0_13
LBB0_12:
	mov	w9, #0
LBB0_13:
	ubfiz	w8, w8, #10, #1
	orr	w8, w9, w8
	ldr	w9, [x19, #68]
	and	w9, w9, #0x2
	orr	w0, w8, w9
	ldr	w1, [x22]
	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
	.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_vp8
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.s5p_mfc_set_enc_params_vp8
l_switch.table.s5p_mfc_set_enc_params_vp8:
	.long	64                              ; 0x40
	.long	32                              ; 0x20
	.long	16                              ; 0x10

.subsections_via_symbols
