	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_mfc_start_streaming
_s5p_mfc_start_streaming:               ## @s5p_mfc_start_streaming
	.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, %rbx
	movl	8(%rdi), %edi
	callq	_fh_to_ctx
	movq	%rax, %r15
	movq	32(%rax), %r14
	movq	%r14, %rdi
	callq	_IS_MFCV6_PLUS
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	(%rbx), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.2:
	movq	(%r15), %rax
	movq	_MFCINST_GOT_INST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movq	(%r14), %rax
	cmpq	8(%r15), %rax
	jne	LBB0_6
## %bb.4:
	cmpq	$0, 16(%r14)
	je	LBB0_6
## %bb.5:
	movq	_S5P_MFC_R2H_CMD_SEQ_DONE_RET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_s5p_mfc_wait_for_done_ctx
LBB0_6:
	movq	24(%r15), %rsi
	cmpq	%rsi, 16(%r15)
	jge	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	callq	_mfc_err
	movq	_ENOBUFS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_8:
	movq	%r15, %rdi
	callq	_s5p_mfc_ctx_ready
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_set_work_bit_irqsave
LBB0_10:
	movl	8(%r14), %edi
	movq	_try_run@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_s5p_mfc_hw_call
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
	.comm	_MFCINST_GOT_INST,8,3           ## @MFCINST_GOT_INST
	.comm	_S5P_MFC_R2H_CMD_SEQ_DONE_RET,4,2 ## @S5P_MFC_R2H_CMD_SEQ_DONE_RET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Need minimum %d OUTPUT buffers\n"

	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_try_run,4,2                    ## @try_run
	.no_dead_strip	_s5p_mfc_start_streaming
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_mfc_start_streaming
_s5p_mfc_start_streaming:               ; @s5p_mfc_start_streaming
	.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, x0
	ldr	w0, [x0, #8]
	bl	_fh_to_ctx
	mov	x20, x0
	ldr	x19, [x0, #32]
	mov	x0, x19
	bl	_IS_MFCV6_PLUS
	cbz	x0, LBB0_8
; %bb.1:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.2:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _MFCINST_GOT_INST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MFCINST_GOT_INST@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x19]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _S5P_MFC_R2H_CMD_SEQ_DONE_RET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S5P_MFC_R2H_CMD_SEQ_DONE_RET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_s5p_mfc_wait_for_done_ctx
LBB0_6:
	ldp	x8, x1, [x20, #16]
	cmp	x8, x1
	b.ge	LBB0_8
; %bb.7:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_mfc_err
Lloh11:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_8:
	mov	x0, x20
	bl	_s5p_mfc_ctx_ready
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_set_work_bit_irqsave
LBB0_10:
	ldr	w0, [x19, #8]
Lloh14:
	adrp	x8, _try_run@GOTPAGE
Lloh15:
	ldr	x8, [x8, _try_run@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_s5p_mfc_hw_call
	mov	w0, #0
LBB0_11:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
	.comm	_MFCINST_GOT_INST,8,3           ; @MFCINST_GOT_INST
	.comm	_S5P_MFC_R2H_CMD_SEQ_DONE_RET,4,2 ; @S5P_MFC_R2H_CMD_SEQ_DONE_RET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Need minimum %d OUTPUT buffers\n"

	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_try_run,4,2                    ; @try_run
	.no_dead_strip	_s5p_mfc_start_streaming
.subsections_via_symbols
