	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %edi
	callq	_fh_to_ctx
	movq	%rax, %rbx
	movq	16(%rax), %r14
	leaq	8(%rax), %rdi
	callq	_v4l2_ctrl_handler_setup
	movq	(%rbx), %rax
	movq	_MFCINST_FINISHING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_MFCINST_FINISHED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	movq	_MFCINST_RUNNING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_3:
	movq	%rbx, %rdi
	callq	_s5p_mfc_ctx_ready
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_set_work_bit_irqsave
LBB0_5:
	movl	(%r14), %edi
	movq	_try_run@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_s5p_mfc_hw_call
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MFCINST_FINISHING,8,3          ## @MFCINST_FINISHING
	.comm	_MFCINST_FINISHED,8,3           ## @MFCINST_FINISHED
	.comm	_MFCINST_RUNNING,8,3            ## @MFCINST_RUNNING
	.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	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
	ldr	w0, [x0]
	bl	_fh_to_ctx
	mov	x20, x0
	ldr	x19, [x0, #16]
	add	x0, x0, #8
	bl	_v4l2_ctrl_handler_setup
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _MFCINST_FINISHING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MFCINST_FINISHING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _MFCINST_FINISHED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MFCINST_FINISHED@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _MFCINST_RUNNING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MFCINST_RUNNING@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_2:
	mov	x0, x20
	bl	_s5p_mfc_ctx_ready
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_set_work_bit_irqsave
LBB0_4:
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _try_run@GOTPAGE
Lloh10:
	ldr	x8, [x8, _try_run@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_s5p_mfc_hw_call
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MFCINST_FINISHING,8,3          ; @MFCINST_FINISHING
	.comm	_MFCINST_FINISHED,8,3           ; @MFCINST_FINISHED
	.comm	_MFCINST_RUNNING,8,3            ; @MFCINST_RUNNING
	.comm	_try_run,4,2                    ; @try_run
	.no_dead_strip	_s5p_mfc_start_streaming
.subsections_via_symbols
