	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vtenc_q_pop
_vtenc_q_pop:                           ## @vtenc_q_pop
	.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
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %r13
	leaq	24(%rdi), %r12
	movq	%r12, %rdi
	callq	_pthread_mutex_lock
	cmpl	$0, (%r13)
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_pthread_mutex_unlock
	movl	(%r13), %eax
	jmp	LBB0_22
LBB0_2:
	cmpq	$0, 56(%r13)
	je	LBB0_5
## %bb.3:
	movq	8(%r13), %rax
	cmpq	16(%r13), %rax
	jne	LBB0_5
## %bb.4:
	movq	$0, (%r15)
	movq	%r12, %rdi
	callq	_pthread_mutex_unlock
	jmp	LBB0_21
LBB0_5:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	40(%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
LBB0_11:
	movq	24(%rbx), %rax
	movq	%rax, 40(%r13)
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movq	$0, 32(%r13)
LBB0_13:
	movq	%r12, %rdi
	callq	_pthread_mutex_unlock
	movq	16(%rbx), %rax
	movq	%rax, (%r15)
	movq	(%rbx), %rdi
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_16
## %bb.14:
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rdi, (%rax)
	jmp	LBB0_20
LBB0_6:
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.7:
	leaq	48(%r13), %r14
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_pthread_cond_wait
	movq	40(%r13), %rbx
	testq	%rbx, %rbx
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$0, (%r13)
	je	LBB0_8
LBB0_10:
	movq	%r12, %rdi
	callq	_pthread_mutex_unlock
	movq	$0, (%r15)
	jmp	LBB0_21
LBB0_16:
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.17:
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	%rax, %rdi
	callq	_av_free
	movq	(%rbx), %rdi
LBB0_19:
	callq	_av_free
LBB0_20:
	movq	%rbx, %rdi
	callq	_av_free
	incq	16(%r13)
LBB0_21:
	xorl	%eax, %eax
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vtenc_q_pop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vtenc_q_pop
_vtenc_q_pop:                           ; @vtenc_q_pop
	.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	x20, x3
	mov	x21, x2
	mov	x24, x1
	mov	x19, x0
	add	x22, x0, #24
	mov	x0, x22
	bl	_pthread_mutex_lock
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_pthread_mutex_unlock
	ldr	w0, [x19]
	b	LBB0_21
LBB0_2:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_5
; %bb.3:
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	str	xzr, [x21]
	mov	x0, x22
	bl	_pthread_mutex_unlock
	mov	w0, #0
	b	LBB0_21
LBB0_5:
	ldr	x23, [x19, #40]
	cbz	x23, LBB0_11
LBB0_6:
	ldr	x8, [x23, #24]
	str	x8, [x19, #40]
	cbnz	x8, LBB0_8
; %bb.7:
	str	xzr, [x19, #32]
LBB0_8:
	mov	x0, x22
	bl	_pthread_mutex_unlock
	ldr	x8, [x23, #16]
	str	x8, [x21]
	ldr	x0, [x23]
	cbz	x20, LBB0_16
; %bb.9:
	cbz	x8, LBB0_16
; %bb.10:
	str	x0, [x20]
	b	LBB0_20
LBB0_11:
	cbz	w24, LBB0_15
; %bb.12:
	add	x24, x19, #48
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	mov	x1, x22
	bl	_pthread_cond_wait
	ldr	x23, [x19, #40]
	cbnz	x23, LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x19]
	cbz	w8, LBB0_13
LBB0_15:
	mov	x0, x22
	bl	_pthread_mutex_unlock
	mov	w0, #0
	str	xzr, [x21]
	b	LBB0_21
LBB0_16:
	cbz	x0, LBB0_20
; %bb.17:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_19
; %bb.18:
	mov	x0, x8
	bl	_av_free
	ldr	x0, [x23]
LBB0_19:
	bl	_av_free
LBB0_20:
	mov	x0, x23
	bl	_av_free
	mov	w0, #0
	ldr	x8, [x19, #16]
	add	x8, x8, #1
	str	x8, [x19, #16]
LBB0_21:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vtenc_q_pop
.subsections_via_symbols
