	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iec61883_parse_queue_dv
_iec61883_parse_queue_dv:               ## @iec61883_parse_queue_dv
	.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	%rsi, %r14
	movq	%rdi, %r15
	movl	16(%rdi), %edi
	callq	_avpriv_dv_get_packet
	movl	%eax, %ebx
	testl	%eax, %eax
	jg	LBB0_7
## %bb.1:
	movq	8(%r15), %r12
	testq	%r12, %r12
	je	LBB0_6
## %bb.2:
	movl	16(%r15), %edi
	movq	(%r12), %rdx
	movl	16(%r12), %ecx
	movl	$-1, %ebx
	movq	%r14, %rsi
	movl	$-1, %r8d
	callq	_avpriv_dv_produce_packet
	movl	%eax, %r13d
	movq	8(%r12), %rax
	movq	%rax, 8(%r15)
	testl	%r13d, %r13d
	js	LBB0_3
## %bb.4:
	movq	%r12, %rdi
	callq	_av_free
	decl	(%r15)
	movl	(%r14), %esi
	movl	4(%r14), %edx
	movq	%r14, %rdi
	callq	_av_packet_from_data
	movl	%r13d, %ebx
	testq	%rax, %rax
	jns	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	callq	_av_freep
	movq	%r14, %rdi
	callq	_av_packet_unref
LBB0_6:
	movl	$-1, %ebx
	jmp	LBB0_7
LBB0_3:
	movq	(%r12), %rdi
	callq	_av_free
	movq	%r12, %rdi
	callq	_av_free
	decl	(%r15)
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_iec61883_parse_queue_dv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iec61883_parse_queue_dv
_iec61883_parse_queue_dv:               ; @iec61883_parse_queue_dv
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #16]
	bl	_avpriv_dv_get_packet
	mov	x21, x0
	cmp	w0, #0
	b.gt	LBB0_7
; %bb.1:
	ldr	x22, [x20, #8]
	cbz	x22, LBB0_6
; %bb.2:
	ldr	w0, [x20, #16]
	ldr	x2, [x22]
	ldr	w3, [x22, #16]
	mov	x1, x19
	mov	w4, #-1
	bl	_avpriv_dv_produce_packet
	ldr	x8, [x22, #8]
	str	x8, [x20, #8]
	tbnz	w0, #31, LBB0_5
; %bb.3:
	mov	x21, x0
	mov	x0, x22
	bl	_av_free
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
	ldp	w1, w2, [x19]
	mov	x0, x19
	bl	_av_packet_from_data
	tbz	x0, #63, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_av_freep
	mov	x0, x19
	bl	_av_packet_unref
	b	LBB0_6
LBB0_5:
	ldr	x0, [x22]
	bl	_av_free
	mov	x0, x22
	bl	_av_free
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
LBB0_6:
	mov	w21, #-1
LBB0_7:
	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	_iec61883_parse_queue_dv
.subsections_via_symbols
