	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_mux_track
_add_mux_track:                         ## @add_mux_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	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	(%rdi), %r15d
	movl	4(%rdi), %eax
	cmpl	%eax, %r15d
	jge	LBB0_2
## %bb.1:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	16(%rbx), %r13
	jmp	LBB0_4
LBB0_2:
	leal	(%rax,%rax), %ecx
	testl	%eax, %eax
	movl	$32, %r15d
	cmovnel	%ecx, %r15d
	movq	16(%rbx), %rdi
	leal	(,%r15,8), %esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r13
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%rax, 16(%rbx)
	movl	%r15d, 4(%rbx)
	movl	(%rbx), %r15d
LBB0_4:
	movl	$24, %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, %r14
	movq	%r12, 16(%rax)
	movl	$8, (%rax)
	movl	$1, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, 8(%r14)
	leal	1(%r15), %eax
	movl	%eax, (%rbx)
	movslq	%r15d, %rsi
	movq	%r14, (%r13,%rsi,8)
	movl	12(%rbx), %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_hb_bitvec_set
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
## %bb.7:
	movl	8(%rbx), %edi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hb_bitvec_set                  ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hb_error                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"add_mux_track: realloc failed, too many tracks (>%d)"

	.no_dead_strip	_add_mux_track
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_mux_track
_add_mux_track:                         ; @add_mux_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	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldp	w21, w8, [x0]
	cmp	w21, w8
	b.ge	LBB0_2
; %bb.1:
	ldr	x23, [x19, #16]
	b	LBB0_4
LBB0_2:
	lsl	w9, w8, #1
	mov	w10, #32
	cmp	w8, #0
	csel	w21, w10, w9, eq
	ldr	x0, [x19, #16]
	lsl	w1, w21, #3
	bl	_realloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x23, x0
	str	x0, [x19, #16]
	str	w21, [x19, #4]
	ldr	w21, [x19]
LBB0_4:
	mov	w0, #24
	mov	w1, #1
	bl	_calloc
	mov	x24, x0
	str	x22, [x0, #16]
	mov	w8, #8
	str	w8, [x0]
	mov	w0, #1
	mov	w1, #8
	bl	_calloc
	str	x0, [x24, #8]
	add	w8, w21, #1
	str	w8, [x19]
	str	x24, [x23, w21, sxtw #3]
	ldr	w0, [x19, #12]
	mov	x1, x21
	bl	_hb_bitvec_set
	cbz	w20, LBB0_6
; %bb.5:
	ldr	w0, [x19, #8]
	mov	x1, x21
	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	_hb_bitvec_set
LBB0_6:
	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
LBB0_7:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	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	_hb_error
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"add_mux_track: realloc failed, too many tracks (>%d)"

	.no_dead_strip	_add_mux_track
.subsections_via_symbols
