	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_mfc_encode_one_frame_v5
_s5p_mfc_encode_one_frame_v5:           ## @s5p_mfc_encode_one_frame_v5
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	24(%rdi), %r14
	movq	(%rax), %rax
	movq	_V4L2_PIX_FMT_NV12M@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_V4L2_PIX_FMT_NV12MT@GOTPCREL(%rip), %rcx
	movl	$3, %esi
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	movq	_S5P_FIMV_ENC_MAP_FOR_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mfc_write
LBB0_3:
	movq	%rbx, %rdi
	callq	_s5p_mfc_set_shared_buffer
	movq	(%rbx), %rax
	movq	_MFCINST_FINISHING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	_S5P_FIMV_CH_LAST_FRAME@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_S5P_FIMV_CH_FRAME_START@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	movq	_S5P_FIMV_CH_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movq	_S5P_FIMV_CH_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	orl	8(%rbx), %esi
	movq	_S5P_FIMV_SI_CH0_INST_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mfc_write
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_PIX_FMT_NV12M,8,3         ## @V4L2_PIX_FMT_NV12M
	.comm	_S5P_FIMV_ENC_MAP_FOR_CUR,4,2   ## @S5P_FIMV_ENC_MAP_FOR_CUR
	.comm	_V4L2_PIX_FMT_NV12MT,8,3        ## @V4L2_PIX_FMT_NV12MT
	.comm	_MFCINST_FINISHING,8,3          ## @MFCINST_FINISHING
	.comm	_S5P_FIMV_CH_LAST_FRAME,4,2     ## @S5P_FIMV_CH_LAST_FRAME
	.comm	_S5P_FIMV_CH_FRAME_START,4,2    ## @S5P_FIMV_CH_FRAME_START
	.comm	_S5P_FIMV_CH_MASK,4,2           ## @S5P_FIMV_CH_MASK
	.comm	_S5P_FIMV_CH_SHIFT,4,2          ## @S5P_FIMV_CH_SHIFT
	.comm	_S5P_FIMV_SI_CH0_INST_ID,4,2    ## @S5P_FIMV_SI_CH0_INST_ID
	.no_dead_strip	_s5p_mfc_encode_one_frame_v5
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_mfc_encode_one_frame_v5
_s5p_mfc_encode_one_frame_v5:           ; @s5p_mfc_encode_one_frame_v5
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldp	x8, x19, [x0, #16]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _V4L2_PIX_FMT_NV12M@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_PIX_FMT_NV12M@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w1, #0
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x9, _V4L2_PIX_FMT_NV12MT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_PIX_FMT_NV12MT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	mov	w1, #3
LBB0_4:
Lloh6:
	adrp	x8, _S5P_FIMV_ENC_MAP_FOR_CUR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S5P_FIMV_ENC_MAP_FOR_CUR@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mfc_write
LBB0_5:
	mov	x0, x20
	bl	_s5p_mfc_set_shared_buffer
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _MFCINST_FINISHING@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MFCINST_FINISHING@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _S5P_FIMV_CH_LAST_FRAME@GOTPAGE
Lloh13:
	ldr	x10, [x10, _S5P_FIMV_CH_LAST_FRAME@GOTPAGEOFF]
Lloh14:
	adrp	x11, _S5P_FIMV_CH_FRAME_START@GOTPAGE
Lloh15:
	ldr	x11, [x11, _S5P_FIMV_CH_FRAME_START@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
Lloh16:
	adrp	x9, _S5P_FIMV_CH_MASK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _S5P_FIMV_CH_MASK@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh18:
	ldr	w9, [x9]
	and	w8, w8, w9
Lloh19:
	adrp	x9, _S5P_FIMV_CH_SHIFT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _S5P_FIMV_CH_SHIFT@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	ldr	w9, [x20, #8]
	orr	w1, w8, w9
Lloh22:
	adrp	x8, _S5P_FIMV_SI_CH0_INST_ID@GOTPAGE
Lloh23:
	ldr	x8, [x8, _S5P_FIMV_SI_CH0_INST_ID@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mfc_write
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_PIX_FMT_NV12M,8,3         ; @V4L2_PIX_FMT_NV12M
	.comm	_S5P_FIMV_ENC_MAP_FOR_CUR,4,2   ; @S5P_FIMV_ENC_MAP_FOR_CUR
	.comm	_V4L2_PIX_FMT_NV12MT,8,3        ; @V4L2_PIX_FMT_NV12MT
	.comm	_MFCINST_FINISHING,8,3          ; @MFCINST_FINISHING
	.comm	_S5P_FIMV_CH_LAST_FRAME,4,2     ; @S5P_FIMV_CH_LAST_FRAME
	.comm	_S5P_FIMV_CH_FRAME_START,4,2    ; @S5P_FIMV_CH_FRAME_START
	.comm	_S5P_FIMV_CH_MASK,4,2           ; @S5P_FIMV_CH_MASK
	.comm	_S5P_FIMV_CH_SHIFT,4,2          ; @S5P_FIMV_CH_SHIFT
	.comm	_S5P_FIMV_SI_CH0_INST_ID,4,2    ; @S5P_FIMV_SI_CH0_INST_ID
	.no_dead_strip	_s5p_mfc_encode_one_frame_v5
.subsections_via_symbols
