	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alignStreams
_alignStreams:                          ## @alignStreams
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_19
## %bb.1:
	movq	%rdi, %r12
	cmpl	$0, (%rdi)
	jle	LBB0_19
## %bb.2:
	movq	%rsi, %rbx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rcx, %rdx
	movq	%rdx, %rax
	cmovgq	%rcx, %rax
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	cmoveq	%rcx, %rax
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movslq	(%r12), %rax
	cmpq	%rax, %r13
	jge	LBB0_15
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	8(%r12), %r14
	leaq	(,%r13,2), %r15
	addq	%r13, %r15
	movl	16(%r14,%r15,8), %edi
	xorl	%esi, %esi
	callq	_hb_list_item
	movq	%rax, -72(%rbp)
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r14,%r15,8), %r12
	addq	$16, %r12
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax), %rcx
	cmpq	%rbx, %rcx
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	(%r12), %edi
	movq	%rax, %rsi
	callq	_hb_list_rem
	leaq	-72(%rbp), %rdi
	callq	_hb_buffer_close
	movl	(%r12), %edi
	xorl	%esi, %esi
	callq	_hb_list_item
	movq	%rax, -72(%rbp)
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14,%r15,8), %rax
	movq	_SYNC_TYPE_AUDIO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r14,%r15,8), %rax
	movq	_HB_ACODEC_PASS_FLAG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rcx, %rax
	cmovleq	%rcx, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_13
LBB0_15:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r15
	je	LBB0_19
## %bb.16:
	testl	%eax, %eax
	jle	LBB0_19
## %bb.17:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rsi
	addq	%r14, %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_alignStream
	incq	%rbx
	movslq	(%r12), %rax
	addq	$24, %r14
	cmpq	%rax, %rbx
	jl	LBB0_18
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_SYNC_TYPE_AUDIO,8,3            ## @SYNC_TYPE_AUDIO
	.comm	_HB_ACODEC_PASS_FLAG,4,2        ## @HB_ACODEC_PASS_FLAG
	.no_dead_strip	_alignStreams
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alignStreams
_alignStreams:                          ; @alignStreams
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_17
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.2:
	mov	x21, x1
	mov	x23, #0
	mov	w24, #0
Lloh0:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	mov	w25, #24
Lloh3:
	adrp	x26, _SYNC_TYPE_AUDIO@GOTPAGE
Lloh4:
	ldr	x26, [x26, _SYNC_TYPE_AUDIO@GOTPAGEOFF]
Lloh5:
	adrp	x27, _HB_ACODEC_PASS_FLAG@GOTPAGE
Lloh6:
	ldr	x27, [x27, _HB_ACODEC_PASS_FLAG@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh7:
	adrp	x9, _AV_NOPTS_VALUE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x20, x8
	ccmp	x20, x9, #4, le
	csel	x20, x8, x20, eq
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19]
	cmp	x23, x8
	b.ge	LBB0_14
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x28, [x19, #8]
	madd	x22, x23, x25, x28
	ldr	w0, [x22, #16]!
	mov	w1, #0
	bl	_hb_list_item
	str	x0, [sp, #8]
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x0
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x1]
	cmp	x8, x21
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w0, [x22]
	bl	_hb_list_rem
	add	x0, sp, #8
	bl	_hb_buffer_close
	ldr	w0, [x22]
	mov	w1, #0
	bl	_hb_list_item
	mov	x1, x0
	str	x0, [sp, #8]
	cbnz	x0, LBB0_7
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mul	x9, x23, x25
	ldr	x9, [x28, x9]
	ldr	x10, [x26]
	cmp	x9, x10
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	madd	x9, x23, x25, x28
	ldr	x9, [x9, #8]
	ldr	w9, [x9]
	ldr	w10, [x27]
	tst	w10, w9
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	x20, x8
	csel	x20, x20, x8, gt
	mov	w24, #1
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w24, LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w24, #1
	b	LBB0_4
LBB0_14:
Lloh10:
	adrp	x9, _AV_NOPTS_VALUE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x20, x9
	ccmp	w8, #1, #8, ne
	b.lt	LBB0_17
; %bb.15:
	mov	x21, #0
	mov	x22, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x1, x8, x21
	mov	x0, x19
	mov	x2, x20
	bl	_alignStream
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x21, x21, #24
	cmp	x22, x8
	b.lt	LBB0_16
LBB0_17:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_SYNC_TYPE_AUDIO,8,3            ; @SYNC_TYPE_AUDIO
	.comm	_HB_ACODEC_PASS_FLAG,4,2        ; @HB_ACODEC_PASS_FLAG
	.no_dead_strip	_alignStreams
.subsections_via_symbols
