	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xvip_pipeline_set_stream
_xvip_pipeline_set_stream:              ## @xvip_pipeline_set_stream
	.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
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%rbx), %eax
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.1:
	movl	4(%rbx), %ecx
	decl	%ecx
	xorl	%r15d, %r15d
	cmpl	%ecx, %eax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_xvip_pipeline_start_stop
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movl	(%rbx), %eax
LBB0_4:
	incl	%eax
	movl	%eax, (%rbx)
	jmp	LBB0_7
LBB0_5:
	xorl	%r15d, %r15d
	decl	%eax
	movl	%eax, (%rbx)
	jne	LBB0_7
## %bb.6:
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_xvip_pipeline_start_stop
LBB0_7:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_xvip_pipeline_set_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xvip_pipeline_set_stream
_xvip_pipeline_set_stream:              ; @xvip_pipeline_set_stream
	.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
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x20]
	cbz	w21, LBB0_4
; %bb.1:
	ldr	w9, [x20, #4]
	sub	w9, w9, #1
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.2:
	mov	x0, x20
	mov	w1, #1
	bl	_xvip_pipeline_start_stop
	mov	x21, x0
	tbnz	w0, #31, LBB0_9
; %bb.3:
	ldr	w8, [x20]
	b	LBB0_8
LBB0_4:
	subs	w8, w8, #1
	str	w8, [x20]
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	mov	w1, #0
	bl	_xvip_pipeline_start_stop
LBB0_6:
	mov	w21, #0
	b	LBB0_9
LBB0_7:
	mov	w21, #0
LBB0_8:
	add	w8, w8, #1
	str	w8, [x20]
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_xvip_pipeline_set_stream
.subsections_via_symbols
