	.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_v5
_s5p_mfc_decode_one_frame_v5:           ## @s5p_mfc_decode_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movl	(%rdi), %esi
	movq	_S5P_FIMV_SI_CH0_RELEASE_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mfc_write
	movq	%rbx, %rdi
	callq	_s5p_mfc_set_shared_buffer
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	_s5p_mfc_set_flush
	addl	$-128, %r15d
	cmpl	$2, %r15d
	ja	LBB0_2
## %bb.1:
	movslq	%r15d, %rax
	leaq	l_switch.table.s5p_mfc_decode_one_frame_v5(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	_S5P_FIMV_CH_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	(%rax), %esi
	movq	_S5P_FIMV_CH_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	orl	4(%rbx), %esi
	movq	_S5P_FIMV_SI_CH0_INST_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mfc_write
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_mfc_debug
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S5P_FIMV_SI_CH0_RELEASE_BUF,4,2 ## @S5P_FIMV_SI_CH0_RELEASE_BUF
	.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
	.comm	_S5P_FIMV_CH_LAST_FRAME,4,2     ## @S5P_FIMV_CH_LAST_FRAME
	.comm	_S5P_FIMV_CH_FRAME_START_REALLOC,4,2 ## @S5P_FIMV_CH_FRAME_START_REALLOC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Decoding a usual frame\n"

	.no_dead_strip	_s5p_mfc_decode_one_frame_v5
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.s5p_mfc_decode_one_frame_v5
l_switch.table.s5p_mfc_decode_one_frame_v5:
	.quad	_S5P_FIMV_CH_FRAME_START_REALLOC
	.quad	_S5P_FIMV_CH_LAST_FRAME
	.quad	_S5P_FIMV_CH_FRAME_START

.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_v5
_s5p_mfc_decode_one_frame_v5:           ; @s5p_mfc_decode_one_frame_v5
	.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	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #16]
	ldr	w1, [x0]
Lloh0:
	adrp	x8, _S5P_FIMV_SI_CH0_RELEASE_BUF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S5P_FIMV_SI_CH0_RELEASE_BUF@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mfc_write
	mov	x0, x20
	bl	_s5p_mfc_set_shared_buffer
	ldr	w1, [x20, #8]
	mov	x0, x20
	bl	_s5p_mfc_set_flush
	sub	w8, w21, #128
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, l_switch.table.s5p_mfc_decode_one_frame_v5@PAGE
Lloh4:
	add	x9, x9, l_switch.table.s5p_mfc_decode_one_frame_v5@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
Lloh5:
	adrp	x9, _S5P_FIMV_CH_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _S5P_FIMV_CH_MASK@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh8:
	adrp	x9, _S5P_FIMV_CH_SHIFT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _S5P_FIMV_CH_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	ldr	w9, [x20, #4]
	orr	w1, w8, w9
Lloh11:
	adrp	x8, _S5P_FIMV_SI_CH0_INST_ID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _S5P_FIMV_SI_CH0_INST_ID@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mfc_write
LBB0_2:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_S5P_FIMV_SI_CH0_RELEASE_BUF,4,2 ; @S5P_FIMV_SI_CH0_RELEASE_BUF
	.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
	.comm	_S5P_FIMV_CH_LAST_FRAME,4,2     ; @S5P_FIMV_CH_LAST_FRAME
	.comm	_S5P_FIMV_CH_FRAME_START_REALLOC,4,2 ; @S5P_FIMV_CH_FRAME_START_REALLOC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Decoding a usual frame\n"

	.no_dead_strip	_s5p_mfc_decode_one_frame_v5
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.s5p_mfc_decode_one_frame_v5
l_switch.table.s5p_mfc_decode_one_frame_v5:
	.quad	_S5P_FIMV_CH_FRAME_START_REALLOC
	.quad	_S5P_FIMV_CH_LAST_FRAME
	.quad	_S5P_FIMV_CH_FRAME_START

.subsections_via_symbols
