	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_primary_audio_header
_put_primary_audio_header:              ## @put_primary_audio_header
	.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
	movq	%rdi, %r12
	leaq	24(%rdi), %r14
	movq	_SUBFRAMES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	decl	%edx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_put_bits
	movl	(%r12), %edx
	decl	%edx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_put_bits
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_18
## %bb.1:
	xorl	%ebx, %ebx
	movq	_DCAENC_SUBBANDS@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edx
	addl	$-2, %edx
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_put_bits
	incl	%ebx
	movl	(%r12), %eax
	cmpl	%eax, %ebx
	jl	LBB0_2
## %bb.3:
	testl	%eax, %eax
	jle	LBB0_18
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edx
	decl	%edx
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_put_bits
	incl	%ebx
	movl	(%r12), %eax
	cmpl	%eax, %ebx
	jl	LBB0_5
## %bb.6:
	testl	%eax, %eax
	jle	LBB0_18
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	callq	_put_bits
	incl	%ebx
	movl	(%r12), %eax
	cmpl	%eax, %ebx
	jl	LBB0_8
## %bb.9:
	testl	%eax, %eax
	jle	LBB0_18
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$2, %esi
	xorl	%edx, %edx
	callq	_put_bits
	incl	%ebx
	movl	(%r12), %eax
	cmpl	%eax, %ebx
	jl	LBB0_11
## %bb.12:
	testl	%eax, %eax
	jle	LBB0_18
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$3, %esi
	movl	$6, %edx
	callq	_put_bits
	incl	%ebx
	movl	(%r12), %eax
	cmpl	%eax, %ebx
	jl	LBB0_14
## %bb.15:
	testl	%eax, %eax
	jle	LBB0_18
## %bb.16:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_put_bits
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_17
LBB0_18:
	movq	_DCA_CODE_BOOKS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_34
## %bb.19:
	xorl	%r15d, %r15d
	movq	_ff_dca_quant_index_sel_nbits@GOTPCREL(%rip), %r13
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%r15
	movslq	%ecx, %rdx
	cmpq	%rdx, %r15
	jge	LBB0_25
LBB0_20:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
	testl	%eax, %eax
	jle	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_20 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %rax
	movl	(%rax,%r15,4), %esi
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax,%r15,4), %edx
	movq	%r14, %rdi
	callq	_put_bits
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	_DCA_CODE_BOOKS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_24
LBB0_25:
	testl	%ecx, %ecx
	jle	LBB0_34
## %bb.26:
	xorl	%ebx, %ebx
	movq	_ff_dca_quant_index_group_size@GOTPCREL(%rip), %r13
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	_DCA_CODE_BOOKS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_33:                                ##   in Loop: Header=BB0_27 Depth=1
	incq	%rbx
	movslq	%ecx, %rdx
	cmpq	%rdx, %rbx
	jge	LBB0_34
LBB0_27:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_29 Depth 2
	testl	%eax, %eax
	jle	LBB0_33
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_29 Depth=2
	incq	%r15
	movslq	%eax, %rcx
	cmpq	%rcx, %r15
	jge	LBB0_32
LBB0_29:                                ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r12), %rcx
	movq	(%rcx,%r15,8), %rcx
	movl	(%rcx,%rbx,4), %ecx
	movq	(%r13), %rdx
	cmpl	(%rdx,%rbx,4), %ecx
	jge	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=2
	movq	%r14, %rdi
	movl	$2, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movl	(%r12), %eax
	jmp	LBB0_31
LBB0_34:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUBFRAMES,4,2                  ## @SUBFRAMES
	.comm	_DCAENC_SUBBANDS,4,2            ## @DCAENC_SUBBANDS
	.comm	_DCA_CODE_BOOKS,4,2             ## @DCA_CODE_BOOKS
	.comm	_ff_dca_quant_index_sel_nbits,8,3 ## @ff_dca_quant_index_sel_nbits
	.comm	_ff_dca_quant_index_group_size,8,3 ## @ff_dca_quant_index_group_size
	.no_dead_strip	_put_primary_audio_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_primary_audio_header
_put_primary_audio_header:              ; @put_primary_audio_header
	.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	x19, x0
	add	x20, x0, #24
Lloh0:
	adrp	x8, _SUBFRAMES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUBFRAMES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w2, w8, #1
	mov	x0, x20
	mov	w1, #4
	bl	_put_bits
	ldr	w8, [x19]
	sub	w2, w8, #1
	mov	x0, x20
	mov	w1, #3
	bl	_put_bits
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.1:
	mov	w22, #0
Lloh3:
	adrp	x21, _DCAENC_SUBBANDS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _DCAENC_SUBBANDS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	sub	w2, w8, #2
	mov	x0, x20
	mov	w1, #5
	bl	_put_bits
	add	w22, w22, #1
	ldr	w8, [x19]
	cmp	w22, w8
	b.lt	LBB0_2
; %bb.3:
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.4:
	mov	w22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	sub	w2, w8, #1
	mov	x0, x20
	mov	w1, #5
	bl	_put_bits
	add	w22, w22, #1
	ldr	w8, [x19]
	cmp	w22, w8
	b.lt	LBB0_5
; %bb.6:
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.7:
	mov	w21, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #3
	mov	w2, #0
	bl	_put_bits
	add	w21, w21, #1
	ldr	w8, [x19]
	cmp	w21, w8
	b.lt	LBB0_8
; %bb.9:
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.10:
	mov	w21, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #2
	mov	w2, #0
	bl	_put_bits
	add	w21, w21, #1
	ldr	w8, [x19]
	cmp	w21, w8
	b.lt	LBB0_11
; %bb.12:
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.13:
	mov	w21, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #3
	mov	w2, #6
	bl	_put_bits
	add	w21, w21, #1
	ldr	w8, [x19]
	cmp	w21, w8
	b.lt	LBB0_14
; %bb.15:
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.16:
	mov	x21, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w2, [x8, x21, lsl #2]
	mov	x0, x20
	mov	w1, #3
	bl	_put_bits
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.lt	LBB0_17
; %bb.18:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_19:
Lloh5:
	adrp	x21, _DCA_CODE_BOOKS@GOTPAGE
Lloh6:
	ldr	x21, [x21, _DCA_CODE_BOOKS@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w9, #1
	b.lt	LBB0_35
; %bb.20:
	mov	x22, #0
Lloh7:
	adrp	x23, _ff_dca_quant_index_sel_nbits@GOTPAGE
Lloh8:
	ldr	x23, [x23, _ff_dca_quant_index_sel_nbits@GOTPAGEOFF]
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x22, x22, #1
	cmp	x22, w9, sxtw
	b.ge	LBB0_26
LBB0_22:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x24, #0
LBB0_24:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x23]
	lsl	x9, x22, #2
	ldr	w1, [x8, x9]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x24, lsl #3]
	ldr	w2, [x8, x9]
	mov	x0, x20
	bl	_put_bits
	add	x24, x24, #1
	ldrsw	x8, [x19]
	cmp	x24, x8
	b.lt	LBB0_24
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	w9, [x21]
	b	LBB0_21
LBB0_26:
	cmp	w9, #1
	b.lt	LBB0_35
; %bb.27:
	mov	x22, #0
Lloh9:
	adrp	x23, _ff_dca_quant_index_group_size@GOTPAGE
Lloh10:
	ldr	x23, [x23, _ff_dca_quant_index_group_size@GOTPAGEOFF]
	b	LBB0_30
LBB0_28:                                ;   in Loop: Header=BB0_30 Depth=1
	ldr	w9, [x21]
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=1
	add	x22, x22, #1
	cmp	x22, w9, sxtw
	b.ge	LBB0_35
LBB0_30:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_33 Depth 2
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	mov	x24, #0
	b	LBB0_33
LBB0_32:                                ;   in Loop: Header=BB0_33 Depth=2
	add	x24, x24, #1
	cmp	x24, w8, sxtw
	b.ge	LBB0_28
LBB0_33:                                ;   Parent Loop BB0_30 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x19, #16]
	ldr	x9, [x9, x24, lsl #3]
	lsl	x10, x22, #2
	ldr	w9, [x9, x10]
	ldr	x11, [x23]
	ldr	w10, [x11, x10]
	cmp	w9, w10
	b.ge	LBB0_32
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=2
	mov	x0, x20
	mov	w1, #2
	mov	w2, #0
	bl	_put_bits
	ldr	w8, [x19]
	b	LBB0_32
LBB0_35:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SUBFRAMES,4,2                  ; @SUBFRAMES
	.comm	_DCAENC_SUBBANDS,4,2            ; @DCAENC_SUBBANDS
	.comm	_DCA_CODE_BOOKS,4,2             ; @DCA_CODE_BOOKS
	.comm	_ff_dca_quant_index_sel_nbits,8,3 ; @ff_dca_quant_index_sel_nbits
	.comm	_ff_dca_quant_index_group_size,8,3 ; @ff_dca_quant_index_group_size
	.no_dead_strip	_put_primary_audio_header
.subsections_via_symbols
