	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps_find_track
_ps_find_track:                         ## @ps_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	%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
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	(%rdi), %ecx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	8(%r14), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, %rcx
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rbx,8), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx), %rdx
	cmpq	%r13, (%rdx)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r12, 8(%rdx)
	jne	LBB0_5
## %bb.16:
	movq	(%rax,%rbx,8), %rax
	testl	%r15d, %r15d
	jne	LBB0_8
	jmp	LBB0_12
LBB0_6:
	xorl	%eax, %eax
	movl	%ecx, %ebx
	testl	%r15d, %r15d
	jne	LBB0_8
	jmp	LBB0_12
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	testl	%r15d, %r15d
	je	LBB0_12
LBB0_8:
	testq	%rax, %rax
	jne	LBB0_12
## %bb.9:
	movq	_PS_TRACKS_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jae	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_vc_container_allocate_track
	movq	8(%r14), %rcx
	movl	%ebx, %edx
	movq	%rax, (%rcx,%rdx,8)
	testq	%rax, %rax
	je	LBB0_11
## %bb.17:
	movq	(%rax), %rcx
	movq	(%rcx), %rcx
	movq	%r13, (%rcx)
	movq	%r12, 8(%rcx)
	incl	(%r14)
	jmp	LBB0_15
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	testl	%r15d, %r15d
	je	LBB0_15
## %bb.13:
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_LOG_DEBUG
	xorl	%eax, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PS_TRACKS_MAX,4,2              ## @PS_TRACKS_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not create track for stream id: %i"

	.no_dead_strip	_ps_find_track
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps_find_track
_ps_find_track:                         ; @ps_find_track
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x23, #0
	ldr	x9, [x19, #8]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	cmp	x8, x23
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x23, lsl #3]
	ldr	x10, [x10]
	ldr	x10, [x10]
	ldr	x11, [x10]
	cmp	x11, x20
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x10, #8]
	cmp	x10, x22
	b.ne	LBB0_2
; %bb.5:
	ldr	x0, [x9, x23, lsl #3]
	cbnz	w21, LBB0_8
	b	LBB0_13
LBB0_6:
	mov	x0, #0
	mov	x23, x8
	cbnz	w21, LBB0_8
	b	LBB0_13
LBB0_7:
	mov	w23, #0
	mov	x0, #0
	cbz	w21, LBB0_13
LBB0_8:
	cbnz	x0, LBB0_13
; %bb.9:
Lloh0:
	adrp	x8, _PS_TRACKS_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PS_TRACKS_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w23, w8
	b.hs	LBB0_12
; %bb.10:
	mov	x0, x19
	mov	w1, #16
	bl	_vc_container_allocate_track
	ldr	x8, [x19, #8]
	str	x0, [x8, w23, uxtw #3]
	cbz	x0, LBB0_13
; %bb.11:
	ldr	x8, [x0]
	ldr	x8, [x8]
	stp	x20, x22, [x8]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_16
LBB0_12:
	mov	x0, #0
LBB0_13:
	cbz	w21, LBB0_16
; %bb.14:
	cbnz	x0, LBB0_16
; %bb.15:
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_16:
	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 AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PS_TRACKS_MAX,4,2              ; @PS_TRACKS_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not create track for stream id: %i"

	.no_dead_strip	_ps_find_track
.subsections_via_symbols
