	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avpriv_dv_get_packet           ## -- Begin function avpriv_dv_get_packet
	.p2align	4, 0x90
_avpriv_dv_get_packet:                  ## @avpriv_dv_get_packet
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r8d
	movl	$-1, %eax
	testl	%r8d, %r8d
	jle	LBB0_6
## %bb.1:
	movq	16(%rdi), %r9
	xorl	%edx, %edx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdx
	cmpq	%rdx, %r8
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r9,%rdx,8)
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rdi), %r10
	movl	(%r10,%rdx,4), %ecx
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.5:
	movl	%ecx, (%rsi)
	movl	$0, (%r10,%rdx,4)
	movl	(%rsi), %eax
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avpriv_dv_get_packet           ; -- Begin function avpriv_dv_get_packet
	.p2align	2
_avpriv_dv_get_packet:                  ; @avpriv_dv_get_packet
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x9, #0
	ldr	x10, [x0, #16]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x9, lsl #3]
	cbz	x11, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x0, #8]
	ldr	w12, [x11, x9, lsl #2]
	cbz	w12, LBB0_2
; %bb.5:
	str	w12, [x1]
	str	wzr, [x11, x9, lsl #2]
	ldr	w0, [x1]
	ret
LBB0_6:
	mov	w0, #-1
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
