	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_new_program                 ## -- Begin function av_new_program
	.p2align	4, 0x90
_av_new_program:                        ## @av_new_program
	.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, %r14
	movq	_AV_LOG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%r15d, %ecx
	callq	_av_log
	movl	(%r14), %edx
	testl	%edx, %edx
	jle	LBB0_9
## %bb.1:
	movq	8(%r14), %rcx
	leaq	-1(%rdx), %rsi
	movl	%edx, %r8d
	andl	$3, %r8d
	cmpq	$3, %rsi
	jae	LBB0_3
## %bb.2:
	xorl	%esi, %esi
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_3:
	andl	$-4, %edx
	xorl	%esi, %esi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rdi
	movq	8(%rcx,%rsi,8), %rax
	cmpl	%r15d, (%rdi)
	cmoveq	%rdi, %rbx
	cmpl	%r15d, (%rax)
	cmoveq	%rax, %rbx
	movq	16(%rcx,%rsi,8), %rax
	cmpl	%r15d, (%rax)
	cmoveq	%rax, %rbx
	movq	24(%rcx,%rsi,8), %rax
	cmpl	%r15d, (%rax)
	cmoveq	%rax, %rbx
	addq	$4, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_4
LBB0_5:
	testq	%r8, %r8
	je	LBB0_8
## %bb.6:
	leaq	(%rcx,%rsi,8), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rax
	cmpl	%r15d, (%rax)
	cmoveq	%rax, %rbx
	incq	%rdx
	cmpq	%rdx, %r8
	jne	LBB0_7
LBB0_8:
	testq	%rbx, %rbx
	jne	LBB0_12
LBB0_9:
	movl	$48, %edi
	callq	_av_mallocz
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %rbx
	leaq	8(%r14), %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_dynarray_add
	movq	_AVDISCARD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movl	$-1, 4(%rbx)
LBB0_12:
	movl	%r15d, (%rbx)
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	_AV_PTS_WRAP_IGNORE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rbx)
	movq	%rax, 8(%rbx)
	movq	%rax, 16(%rbx)
	jmp	LBB0_13
LBB0_10:
	xorl	%ebx, %ebx
LBB0_13:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_TRACE,4,2               ## @AV_LOG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"new_program: id=0x%04x\n"

	.comm	_AVDISCARD_NONE,4,2             ## @AVDISCARD_NONE
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_AV_PTS_WRAP_IGNORE,4,2         ## @AV_PTS_WRAP_IGNORE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_new_program                 ; -- Begin function av_new_program
	.p2align	2
_av_new_program:                        ; @av_new_program
	.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	x21, x0
Lloh0:
	adrp	x8, _AV_LOG_TRACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_TRACE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x19
	bl	_av_log
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, #0
	ldr	x9, [x21, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9], #8
	ldr	w11, [x10]
	cmp	w11, w19
	csel	x20, x10, x20, eq
	subs	x8, x8, #1
	b.ne	LBB0_2
; %bb.3:
	cbnz	x20, LBB0_6
LBB0_4:
	mov	w0, #48
	bl	_av_mallocz
	mov	x20, x0
	cbz	x0, LBB0_7
; %bb.5:
	add	x0, x21, #8
	mov	x1, x21
	mov	x2, x20
	bl	_dynarray_add
Lloh5:
	adrp	x8, _AVDISCARD_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVDISCARD_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #40]
	mov	w8, #-1
	str	w8, [x20, #4]
LBB0_6:
	str	w19, [x20]
Lloh8:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x20, #32]
Lloh11:
	adrp	x9, _AV_PTS_WRAP_IGNORE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AV_PTS_WRAP_IGNORE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	str	w9, [x20, #24]
	stp	x8, x8, [x20, #8]
LBB0_7:
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_TRACE,4,2               ; @AV_LOG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"new_program: id=0x%04x\n"

	.comm	_AVDISCARD_NONE,4,2             ; @AVDISCARD_NONE
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_AV_PTS_WRAP_IGNORE,4,2         ; @AV_PTS_WRAP_IGNORE
.subsections_via_symbols
