	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function match_streams
_match_streams:                         ## @match_streams
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r12
	movq	8(%r12), %rax
	movq	16(%r12), %rcx
	movl	(%rax), %esi
	xorl	%eax, %eax
	cmpl	%esi, (%rcx)
	jge	LBB0_12
## %bb.1:
	movq	%rdi, %r14
	movq	8(%rcx), %rdi
	shll	$2, %esi
	callq	_av_realloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	%rax, %r15
	movq	16(%r12), %rax
	movq	%r15, 8(%rax)
	movslq	(%rax), %rax
	leaq	(%r15,%rax,4), %rdi
	movq	8(%r12), %rcx
	movl	(%rcx), %edx
	subl	%eax, %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	8(%r12), %rax
	movq	16(%r12), %rcx
	movslq	(%rcx), %rbx
	cmpl	(%rax), %ebx
	jge	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	$-1, (%r15,%rbx,4)
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_detect_stream_specific
	testl	%eax, %eax
	js	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movq	8(%r12), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_3:
	movl	(%r12), %eax
	cmpl	$129, %eax
	je	LBB0_8
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_9
## %bb.5:
	movq	%r14, %rdi
	callq	_match_streams_one_to_one
	testl	%eax, %eax
	jns	LBB0_11
	jmp	LBB0_12
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_8:
	movq	%r14, %rdi
	callq	_match_streams_exact_id
	testl	%eax, %eax
	jns	LBB0_11
	jmp	LBB0_12
LBB0_9:
	movq	_AVERROR_BUG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	js	LBB0_12
LBB0_11:
	movq	8(%r12), %rax
	movq	16(%r12), %rcx
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	xorl	%eax, %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVERROR_BUG,4,2                ## @AVERROR_BUG
	.no_dead_strip	_match_streams
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function match_streams
_match_streams:                         ; @match_streams
	.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
	ldr	x22, [x0]
	ldp	x9, x8, [x22, #8]
	ldr	w10, [x8]
	ldr	w9, [x9]
	cmp	w10, w9
	b.ge	LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	x0, [x8, #8]
	lsl	w1, w9, #2
	bl	_av_realloc
	cbz	x0, LBB0_10
; %bb.2:
	mov	x20, x0
	ldp	x9, x8, [x22, #8]
	str	x0, [x8, #8]
	ldrsw	x8, [x8]
	add	x0, x0, x8, lsl #2
	ldr	w9, [x9]
	sub	w8, w9, w8
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	ldp	x9, x8, [x22, #8]
	ldrsw	x21, [x8]
	ldr	w8, [x9]
	cmp	w21, w8
	b.ge	LBB0_6
; %bb.3:
	mov	w23, #-1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	w23, [x20, x21, lsl #2]
	mov	x0, x19
	mov	x1, x21
	bl	_detect_stream_specific
	tbnz	w0, #31, LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	ldr	x8, [x22, #8]
	ldrsw	x8, [x8]
	cmp	x21, x8
	b.lt	LBB0_4
LBB0_6:
	ldr	w8, [x22]
	cmp	w8, #129
	b.eq	LBB0_11
; %bb.7:
	cmp	w8, #128
	b.ne	LBB0_12
; %bb.8:
	mov	x0, x19
	bl	_match_streams_one_to_one
	tbz	w0, #31, LBB0_13
	b	LBB0_14
LBB0_9:
	mov	w0, #0
	b	LBB0_14
LBB0_10:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_11:
	mov	x0, x19
	bl	_match_streams_exact_id
	tbz	w0, #31, LBB0_13
	b	LBB0_14
LBB0_12:
Lloh3:
	adrp	x8, _AVERROR_BUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_BUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	tbnz	w0, #31, LBB0_14
LBB0_13:
	mov	w0, #0
	ldp	x8, x9, [x22, #8]
	ldr	w8, [x8]
	str	w8, [x9]
LBB0_14:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVERROR_BUG,4,2                ; @AVERROR_BUG
	.no_dead_strip	_match_streams
.subsections_via_symbols
