	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function expand_tseq
_expand_tseq:                           ## @expand_tseq
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	movl	(%r8), %eax
	leal	1(%rax), %esi
	movl	%esi, (%r8)
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r14), %r8d
	movl	20(%r14), %ecx
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_2
LBB0_3:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	addl	8(%r14), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	jle	LBB0_4
## %bb.5:
	movl	$16, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	movslq	%ecx, %rax
	addq	$20, %rbx
	cmpq	%rax, %r15
	jge	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movl	(%rax,%rbx), %edx
	cmpl	20(%r14), %edx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-4(%rax,%rbx), %edi
	movl	16(%r14), %esi
	callq	_memcmp
	movl	(%r12), %ecx
	testl	%eax, %eax
	jne	LBB0_8
LBB0_9:
	cmpl	%ecx, %r15d
	jge	LBB0_10
LBB0_11:
	movq	24(%r12), %rcx
	movl	%r15d, %eax
	leaq	(%rax,%rax,4), %rbx
	cmpb	$66, (%rcx,%rbx,4)
	jne	LBB0_16
## %bb.12:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, 8(%rcx,%rbx,4)
	jle	LBB0_20
## %bb.13:
	movslq	4(%rcx,%rbx,4), %rax
	leaq	(%rax,%rax,2), %r15
	shlq	$3, %r15
	addq	16(%r12), %r15
	leaq	(%rcx,%rbx,4), %rbx
	addq	$8, %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%r15, %r8
	callq	_expand_tseq
	testl	%eax, %eax
	js	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_15 Depth=1
	incq	%r13
	movslq	(%rbx), %rax
	addq	$24, %r15
	cmpq	%rax, %r13
	jl	LBB0_15
	jmp	LBB0_20
LBB0_4:
	xorl	%r15d, %r15d
	cmpl	%ecx, %r15d
	jl	LBB0_11
LBB0_10:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r14), %r8d
	movl	20(%r14), %ecx
	leaq	L_.str.1(%rip), %rdx
LBB0_2:
	movq	%r13, %rdi
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_16:
	movq	%rcx, %r15
	leaq	8(%r12), %rdi
	addq	$4, %r12
	movl	$24, %esi
	movq	%r12, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_alloc_array_elem
	testq	%rax, %rax
	je	LBB0_17
## %bb.19:
	movq	8(%r14), %rcx
	movq	%rcx, 16(%rax)
	movl	4(%r15,%rbx,4), %ecx
	movl	%ecx, (%rax)
	movl	8(%r15,%rbx,4), %ecx
	movl	%ecx, 4(%rax)
	movl	4(%r14), %ecx
	movl	%ecx, 8(%rax)
LBB0_20:
	decl	(%r14)
	xorl	%eax, %eax
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Recursion loop on \"%.*s\"\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Tone-set \"%.*s\" not defined\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_expand_tseq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function expand_tseq
_expand_tseq:                           ; @expand_tseq
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x4
	mov	x20, x0
	ldr	w8, [x4]
	add	w9, w8, #1
	str	w9, [x4]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldp	w4, w3, [x19, #16]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_15
LBB0_2:
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	ldr	w24, [x19, #8]
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.3:
	mov	x26, #0
	mov	x25, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	add	x26, x26, #20
	cmp	x25, w8, sxtw
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22, #24]
	add	x9, x9, x26
	ldr	w2, [x9, #16]
	ldr	w10, [x19, #20]
	cmp	w2, w10
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x9, #12]
	ldr	w1, [x19, #16]
	bl	_memcmp
	ldr	w8, [x22]
	cbnz	w0, LBB0_4
LBB0_7:
	cmp	w25, w8
	b.ge	LBB0_14
LBB0_8:
	ldr	x26, [x22, #24]
	mov	w27, w25
	mov	w8, #20
	umull	x8, w25, w8
	ldrb	w8, [x26, x8]
	cmp	w8, #66
	b.ne	LBB0_17
; %bb.9:
	mov	w8, #20
	madd	x25, x27, x8, x26
	ldr	w8, [x25, #8]!
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.10:
	mov	x26, #0
	add	w23, w24, w23
	ldr	x8, [x22, #16]
	ldursw	x9, [x25, #-4]
	mov	w10, #24
	madd	x24, x9, x10, x8
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	mov	x4, x24
	bl	_expand_tseq
	tbnz	w0, #31, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x25]
	add	x24, x24, #24
	cmp	x26, x8
	b.lt	LBB0_11
	b	LBB0_19
LBB0_13:
	mov	w25, #0
	cmp	w25, w8
	b.lt	LBB0_8
LBB0_14:
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldp	w4, w3, [x19, #16]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_15:
	mov	x0, x20
	bl	_av_log
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_17:
	add	x0, x22, #8
	add	x2, x22, #4
	mov	w1, #24
	mov	x3, x21
	bl	_alloc_array_elem
	cbz	x0, LBB0_21
; %bb.18:
	ldr	x8, [x19, #8]
	str	x8, [x0, #16]
	mov	w8, #20
	madd	x8, x27, x8, x26
	ldur	d0, [x8, #4]
	str	d0, [x0]
	ldr	w8, [x19, #4]
	str	w8, [x0, #8]
LBB0_19:
	mov	w0, #0
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_21:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_16
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Recursion loop on \"%.*s\"\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Tone-set \"%.*s\" not defined\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_expand_tseq
.subsections_via_symbols
