	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_mfc_decode_one_frame_v6
_s5p_mfc_decode_one_frame_v6:           ## @s5p_mfc_decode_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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	8(%r14), %r12
	movl	(%rdi), %edi
	movl	8(%r12), %esi
	callq	_writel
	movl	4(%rbx), %edi
	andl	$1, %edi
	movl	4(%r12), %esi
	callq	_writel
	movl	8(%rbx), %edi
	movl	(%r12), %esi
	callq	_writel
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.2:
	cmpl	$1, %r15d
	jne	LBB0_6
## %bb.3:
	movq	_S5P_FIMV_CH_LAST_FRAME_V6@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_S5P_FIMV_CH_FRAME_START_V6@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%r14), %edi
	movq	_cmd_host2risc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	callq	_s5p_mfc_hw_call
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	callq	_mfc_debug
	jmp	LBB0_5
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_mfc_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cmd_host2risc,4,2              ## @cmd_host2risc
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported last frame arg.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Decoding a usual frame.\n"

	.no_dead_strip	_s5p_mfc_decode_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_decode_one_frame_v6
_s5p_mfc_decode_one_frame_v6:           ; @s5p_mfc_decode_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, x1
	mov	x21, x0
	ldr	x19, [x0, #16]
	ldr	x22, [x19, #8]
	ldr	w0, [x0]
	ldr	w1, [x22, #8]
	bl	_writel
	ldr	w8, [x21, #4]
	and	w0, w8, #0x1
	ldr	w1, [x22, #4]
	bl	_writel
	ldr	w0, [x21, #8]
	ldr	w1, [x22]
	bl	_writel
	cbz	w20, LBB0_3
; %bb.1:
	cmp	w20, #1
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _S5P_FIMV_CH_LAST_FRAME_V6@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S5P_FIMV_CH_LAST_FRAME_V6@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _S5P_FIMV_CH_FRAME_START_V6@GOTPAGE
Lloh3:
	ldr	x8, [x8, _S5P_FIMV_CH_FRAME_START_V6@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x19]
Lloh4:
	adrp	x9, _cmd_host2risc@GOTPAGE
Lloh5:
	ldr	x9, [x9, _cmd_host2risc@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x9]
	ldr	w3, [x8]
	mov	x2, x19
	mov	x4, #0
	bl	_s5p_mfc_hw_call
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_mfc_debug
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_mfc_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_cmd_host2risc,4,2              ; @cmd_host2risc
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported last frame arg.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Decoding a usual frame.\n"

	.no_dead_strip	_s5p_mfc_decode_one_frame_v6
.subsections_via_symbols
