	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asf_reader_find_track
_asf_reader_find_track:                 ## @asf_reader_find_track
	.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
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %r12
	andl	$127, %r14d
	movq	(%r12), %rax
	movl	(%rax,%r14,4), %eax
	movl	(%rdi), %ecx
	cmpl	%ecx, %eax
	jae	LBB0_1
## %bb.2:
	movq	8(%rbx), %rdx
	movq	(%rdx,%rax,8), %rax
	testl	%r15d, %r15d
	jne	LBB0_4
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	je	LBB0_8
LBB0_4:
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movq	_ASF_TRACKS_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jae	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_vc_container_allocate_track
	movq	8(%rbx), %rdx
	movl	(%rbx), %ecx
	movq	%rax, (%rdx,%rcx,8)
	testq	%rax, %rax
	je	LBB0_7
## %bb.12:
	movq	(%rax), %rdx
	movq	(%rdx), %rdx
	movl	%r14d, (%rdx)
	movq	(%r12), %rdx
	movl	%ecx, (%rdx,%r14,4)
	incl	(%rbx)
	jmp	LBB0_11
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.9:
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_LOG_DEBUG
	xorl	%eax, %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASF_TRACKS_MAX,4,2             ## @ASF_TRACKS_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not create track for stream id: %i"

	.no_dead_strip	_asf_reader_find_track
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asf_reader_find_track
_asf_reader_find_track:                 ; @asf_reader_find_track
	.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	x21, x2
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x22, [x8]
	and	w20, w1, #0x7f
	ldr	x8, [x22]
	ldr	w9, [x8, w20, uxtw #2]
	ldr	w8, [x0]
	cmp	w9, w8
	b.hs	LBB0_2
; %bb.1:
	ldr	x10, [x19, #8]
	ldr	x0, [x10, x9, lsl #3]
	cbnz	w21, LBB0_3
	b	LBB0_8
LBB0_2:
	mov	x0, #0
	cbz	w21, LBB0_8
LBB0_3:
	cbnz	x0, LBB0_8
; %bb.4:
Lloh0:
	adrp	x9, _ASF_TRACKS_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ASF_TRACKS_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.hs	LBB0_7
; %bb.5:
	mov	x0, x19
	mov	w1, #4
	bl	_vc_container_allocate_track
	ldr	x9, [x19, #8]
	ldr	w8, [x19]
	str	x0, [x9, x8, lsl #3]
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x9, [x0]
	ldr	x9, [x9]
	str	w20, [x9]
	ldr	x9, [x22]
	str	w8, [x9, x20, lsl #2]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_11
LBB0_7:
	mov	x0, #0
LBB0_8:
	cbz	w21, LBB0_11
; %bb.9:
	cbnz	x0, LBB0_11
; %bb.10:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_LOG_DEBUG
	mov	x0, #0
LBB0_11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ASF_TRACKS_MAX,4,2             ; @ASF_TRACKS_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not create track for stream id: %i"

	.no_dead_strip	_asf_reader_find_track
.subsections_via_symbols
