	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsp1_video_streamon
_vsp1_video_streamon:                   ## @vsp1_video_streamon
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_to_vsp1_video
	movq	%rax, %r15
	movq	8(%rax), %rax
	movq	16(%r15), %r13
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpq	(%rbx), %rax
	jne	LBB0_2
LBB0_3:
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_vsp1_video_pipeline_get
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.10:
	movq	%r13, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_9
LBB0_4:
	movl	%r12d, %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	___media_pipeline_start
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_mutex_unlock
	testl	%r12d, %r12d
	js	LBB0_8
## %bb.5:
	movq	%r15, %rdi
	callq	_vsp1_video_verify_format
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	addq	$8, %rdi
	movl	%ebx, %esi
	callq	_vb2_streamon
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jns	LBB0_9
LBB0_7:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_media_pipeline_stop
LBB0_8:
	movq	%r14, %rdi
	callq	_vsp1_video_pipeline_put
LBB0_9:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_vsp1_video_streamon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsp1_video_streamon
_vsp1_video_streamon:                   ; @vsp1_video_streamon
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x0
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_to_vsp1_video
	mov	x19, x0
	ldr	x24, [x0, #16]
	mov	x22, x0
	ldr	x8, [x22, #8]!
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_2:
	mov	x0, x24
	bl	_mutex_lock
	mov	x0, x19
	bl	_vsp1_video_pipeline_get
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x24
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_4:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_11
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	___media_pipeline_start
	mov	x23, x0
	mov	x0, x24
	bl	_mutex_unlock
	tbnz	w23, #31, LBB0_10
; %bb.6:
	mov	x0, x19
	bl	_vsp1_video_verify_format
	tbnz	w0, #31, LBB0_9
; %bb.7:
	mov	x0, x22
	mov	x1, x21
	bl	_vb2_streamon
	tbnz	w0, #31, LBB0_9
; %bb.8:
	mov	w23, #0
	b	LBB0_11
LBB0_9:
	mov	x23, x0
	mov	x0, x19
	bl	_media_pipeline_stop
LBB0_10:
	mov	x0, x20
	bl	_vsp1_video_pipeline_put
LBB0_11:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_vsp1_video_streamon
.subsections_via_symbols
