	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_sub_headers
_parse_sub_headers:                     ## @parse_sub_headers
	.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	%rdi, %r15
	movq	40(%rdi), %rax
	movq	(%rax), %r13
	movq	$0, (%rdi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rdi)
	cmpl	$0, 8(%rdi)
	jle	LBB0_17
## %bb.1:
	movq	%rsi, %r14
	movq	16(%r15), %rbx
	movq	$0, 24(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_chs_parse_header
	testl	%eax, %eax
	js	LBB0_23
## %bb.2:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	leaq	24(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, (%r15)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 16(%rbx)
	movslq	8(%rbx), %rcx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	%rcx, 32(%r15)
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$-1, %eax
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %eax
	notl	%eax
	cmpl	%eax, 12(%rbx)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incq	(%rax)
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r13d
	movl	8(%r15), %r12d
	cmpl	%r12d, %r13d
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%r15), %rax
	movq	%rax, 56(%rbx)
	addq	$32, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_chs_parse_header
	testl	%eax, %eax
	jns	LBB0_3
	jmp	LBB0_23
LBB0_11:
	cmpl	$2, %r12d
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jl	LBB0_17
## %bb.12:
	leal	-1(%r12), %ebx
	shlq	$5, %rbx
	addq	16(%r15), %rbx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	addq	$-32, %rbx
	decl	%r12d
	cmpl	$1, %r12d
	jle	LBB0_17
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_is_hier_dmix_chset
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_find_next_hier_dmix_chset
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_prescale_down_mix
	jmp	LBB0_16
LBB0_17:
	movl	(%r13), %ecx
	movl	$1, %eax
	leal	-129(%rcx), %edx
	cmpl	$2, %edx
	jae	LBB0_18
## %bb.20:
	movq	16(%r15), %rcx
	cmpl	$4, 8(%rcx)
	jg	LBB0_22
## %bb.21:
	xorl	%eax, %eax
	cmpl	$2, 8(%r15)
	setge	%al
	incl	%eax
	jmp	LBB0_22
LBB0_18:
	cmpl	$128, %ecx
	je	LBB0_22
## %bb.19:
	movl	8(%r15), %eax
LBB0_22:
	movl	%eax, 12(%r15)
	xorl	%eax, %eax
LBB0_23:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_parse_sub_headers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_sub_headers
_parse_sub_headers:                     ; @parse_sub_headers
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x0, #40]
	ldr	x22, [x8]
	str	xzr, [x0]
	mov	x23, x0
	str	xzr, [x23, #24]!
	str	xzr, [x0, #32]
	ldr	w8, [x0, #8]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.1:
	mov	x20, x1
	ldr	x21, [x19, #16]
	str	xzr, [x21, #24]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_chs_parse_header
	tbnz	w0, #31, LBB0_24
; %bb.2:
	mov	w24, #0
	mov	w25, #-1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x9, [x19]
	cmp	x8, x9
	b.le	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x8, [x19]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x21, #16]
	ldrsw	x8, [x21, #8]
	cbz	x9, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19, #32]
	add	x9, x9, x8
	str	x9, [x19, #32]
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x21, #12]
	lsl	w8, w25, w8
	mvn	w8, w8
	cmp	w9, w8
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23]
	add	x8, x8, #1
	str	x8, [x23]
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w24, #1
	ldr	w26, [x19, #8]
	cmp	w24, w26
	b.ge	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #32]
	str	x8, [x21, #56]
	add	x21, x21, #32
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_chs_parse_header
	tbz	w0, #31, LBB0_3
	b	LBB0_24
LBB0_11:
	cmp	w26, #2
	b.lt	LBB0_17
; %bb.12:
	ldr	x8, [x19, #16]
	sub	w9, w26, #1
	add	x20, x8, x9, lsl #5
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	sub	x20, x20, #32
	sub	w26, w26, #1
	cmp	w26, #1
	b.le	LBB0_17
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_is_hier_dmix_chset
	cbz	x0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_find_next_hier_dmix_chset
	cbz	x0, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x1, x0
	mov	x0, x20
	bl	_prescale_down_mix
	b	LBB0_13
LBB0_17:
	ldr	w8, [x22]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_20
; %bb.18:
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #8]
	mov	w8, #1
	cmp	w9, #4
	b.gt	LBB0_23
; %bb.19:
	ldr	w9, [x19, #8]
	cmp	w9, #1
	cinc	w8, w8, gt
	b	LBB0_23
LBB0_20:
	cmp	w8, #128
	b.ne	LBB0_22
; %bb.21:
	mov	w8, #1
	b	LBB0_23
LBB0_22:
	ldr	w8, [x19, #8]
LBB0_23:
	mov	w0, #0
	str	w8, [x19, #12]
LBB0_24:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_parse_sub_headers
.subsections_via_symbols
