	.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_v6
_s5p_mfc_encode_one_frame_v6:           ## @s5p_mfc_encode_one_frame_v6
	.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, %rbx
	movq	24(%rdi), %r14
	movq	8(%r14), %r12
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_mfc_debug
	movq	(%rbx), %rax
	movq	_S5P_MFC_CODEC_H264_ENC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_s5p_mfc_h264_set_aso_slice_order_v6
LBB0_2:
	movq	%rbx, %rdi
	callq	_s5p_mfc_set_slice_mode
	movq	8(%rbx), %rax
	movq	_MFCINST_FINISHING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	_S5P_FIMV_CH_LAST_FRAME_V6@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_S5P_FIMV_CH_FRAME_START_V6@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r15d
	movl	16(%rbx), %edi
	movl	(%r12), %esi
	callq	_writel
	movl	(%r14), %edi
	movq	_cmd_host2risc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	callq	_s5p_mfc_hw_call
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	callq	_mfc_debug
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"++\n"

	.comm	_S5P_MFC_CODEC_H264_ENC,8,3     ## @S5P_MFC_CODEC_H264_ENC
	.comm	_MFCINST_FINISHING,8,3          ## @MFCINST_FINISHING
	.comm	_S5P_FIMV_CH_FRAME_START_V6,4,2 ## @S5P_FIMV_CH_FRAME_START_V6
	.comm	_S5P_FIMV_CH_LAST_FRAME_V6,4,2  ## @S5P_FIMV_CH_LAST_FRAME_V6
	.comm	_cmd_host2risc,4,2              ## @cmd_host2risc
L_.str.1:                               ## @.str.1
	.asciz	"--\n"

	.no_dead_strip	_s5p_mfc_encode_one_frame_v6
.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_v6
_s5p_mfc_encode_one_frame_v6:           ; @s5p_mfc_encode_one_frame_v6
	.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	x20, x0
	ldr	x19, [x0, #24]
	ldr	x22, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_mfc_debug
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _S5P_MFC_CODEC_H264_ENC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _S5P_MFC_CODEC_H264_ENC@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_s5p_mfc_h264_set_aso_slice_order_v6
LBB0_2:
	mov	x0, x20
	bl	_s5p_mfc_set_slice_mode
	ldr	x8, [x20, #8]
Lloh5:
	adrp	x9, _MFCINST_FINISHING@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MFCINST_FINISHING@GOTPAGEOFF]
Lloh7:
	adrp	x10, _S5P_FIMV_CH_LAST_FRAME_V6@GOTPAGE
Lloh8:
	ldr	x10, [x10, _S5P_FIMV_CH_LAST_FRAME_V6@GOTPAGEOFF]
Lloh9:
	adrp	x11, _S5P_FIMV_CH_FRAME_START_V6@GOTPAGE
Lloh10:
	ldr	x11, [x11, _S5P_FIMV_CH_FRAME_START_V6@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w21, [x8]
	ldr	w0, [x20, #16]
	ldr	w1, [x22]
	bl	_writel
	ldr	w0, [x19]
Lloh12:
	adrp	x8, _cmd_host2risc@GOTPAGE
Lloh13:
	ldr	x8, [x8, _cmd_host2risc@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x2, x19
	mov	x3, x21
	mov	x4, #0
	bl	_s5p_mfc_hw_call
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_mfc_debug
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"++\n"

	.comm	_S5P_MFC_CODEC_H264_ENC,8,3     ; @S5P_MFC_CODEC_H264_ENC
	.comm	_MFCINST_FINISHING,8,3          ; @MFCINST_FINISHING
	.comm	_S5P_FIMV_CH_FRAME_START_V6,4,2 ; @S5P_FIMV_CH_FRAME_START_V6
	.comm	_S5P_FIMV_CH_LAST_FRAME_V6,4,2  ; @S5P_FIMV_CH_LAST_FRAME_V6
	.comm	_cmd_host2risc,4,2              ; @cmd_host2risc
l_.str.1:                               ; @.str.1
	.asciz	"--\n"

	.no_dead_strip	_s5p_mfc_encode_one_frame_v6
.subsections_via_symbols
