	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_codebook_header
_put_codebook_header:                   ## @put_codebook_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	%rsi, %r15
	movq	%rdi, %r14
	movl	$24, %esi
	movl	$5653314, %edx                  ## imm = 0x564342
	callq	_put_bits
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_put_bits
	movl	4(%r15), %edx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_put_bits
	movl	4(%r15), %r12d
	movl	$1, %ebx
	cmpl	$2, %r12d
	jl	LBB0_9
## %bb.1:
	movq	8(%r15), %rax
	movl	(%rax), %ecx
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %edx
	movl	(%rax,%rbx,4), %ecx
	cmpl	%edx, %ecx
	jl	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_2
## %bb.4:
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	jmp	LBB0_5
LBB0_9:
	xorl	%edx, %edx
	cmpl	%r12d, %ebx
	sete	%dl
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_put_bits
	cmpl	%r12d, %ebx
	jne	LBB0_10
LBB0_5:
	movq	8(%r15), %rax
	movl	(%rax), %r12d
	leal	-1(%r12), %edx
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_put_bits
	movl	4(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_29
## %bb.6:
	xorl	%r13d, %r13d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ebx, %ebx
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ilog
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_put_bits
	incl	%r12d
	movl	4(%r15), %eax
	cmpl	%r13d, %eax
	jle	LBB0_29
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movl	%eax, %edi
	subl	%r13d, %edi
	jle	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r15), %rcx
	movl	%eax, %edi
	subl	%r13d, %edi
	movl	%r13d, %edx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%rdx,%rbx), %esi
	cmpl	%r12d, (%rcx,%rsi,4)
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	incq	%rbx
	cmpq	%rbx, %rdi
	jne	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%edi, %ebx
	movl	%eax, %r13d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	addl	%ebx, %r13d
	jmp	LBB0_17
LBB0_10:
	movl	4(%r15), %r12d
	testl	%r12d, %r12d
	jle	LBB0_11
## %bb.18:
	movq	8(%r15), %rax
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rax,%r13,4)
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	incq	%r13
	cmpq	%r13, %r12
	jne	LBB0_19
## %bb.21:
	movl	%r12d, %r13d
	jmp	LBB0_22
LBB0_11:
	xorl	%r13d, %r13d
LBB0_22:
	xorl	%edx, %edx
	cmpl	%r12d, %r13d
	setne	%dl
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_put_bits
	cmpl	$0, 4(%r15)
	jle	LBB0_29
## %bb.23:
	xorl	%ebx, %ebx
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_24 Depth=1
	incq	%rbx
	movslq	4(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_29
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%r12d, %r13d
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	8(%r15), %rax
	xorl	%edx, %edx
	cmpl	$0, (%rax,%rbx,4)
	setne	%dl
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_put_bits
LBB0_26:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %edx
	testl	%edx, %edx
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=1
	decl	%edx
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_put_bits
	jmp	LBB0_28
LBB0_29:
	movl	16(%r15), %edx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_put_bits
	movl	16(%r15), %edi
	testl	%edi, %edi
	je	LBB0_36
## %bb.30:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	(%r15), %esi
	movl	4(%r15), %edx
	callq	_cb_lookup_vals
	movl	%eax, %ebx
	movq	24(%r15), %rax
	movl	(%rax), %edi
	callq	_ilog
	movl	%eax, %r14d
	movl	%ebx, %r13d
	cmpl	$2, %ebx
	jl	LBB0_33
## %bb.31:
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movl	(%rax,%r12,4), %edi
	callq	_ilog
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_FFMAX
	movl	%eax, %r14d
	incq	%r12
	cmpq	%r12, %r13
	jne	LBB0_32
LBB0_33:
	movl	40(%r15), %esi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_put_float
	movl	36(%r15), %esi
	movq	%r12, %rdi
	callq	_put_float
	leal	-1(%r14), %edx
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_put_bits
	movl	32(%r15), %edx
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_put_bits
	testl	%ebx, %ebx
	jle	LBB0_36
## %bb.34:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_put_bits
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_35
LBB0_36:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_put_codebook_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_codebook_header
_put_codebook_header:                   ; @put_codebook_header
	.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, x1
	mov	x20, x0
	mov	w1, #24
	mov	w2, #17218
	movk	w2, #86, lsl #16
	bl	_put_bits
	ldr	w2, [x19]
	mov	x0, x20
	mov	w1, #16
	bl	_put_bits
	ldr	w2, [x19, #4]
	mov	x0, x20
	mov	w1, #24
	bl	_put_bits
	ldr	w21, [x19, #4]
	cmp	w21, #2
	b.lt	LBB0_5
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	mov	w22, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8, x22, lsl #2]
	cmp	w10, w9
	b.lt	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	mov	x9, x10
	cmp	x21, x22
	b.ne	LBB0_2
; %bb.4:
	mov	x0, x20
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	b	LBB0_7
LBB0_5:
	mov	w22, #1
LBB0_6:
	cmp	w22, w21
	cset	w2, eq
	mov	x0, x20
	mov	w1, #1
	bl	_put_bits
	cmp	w22, w21
	b.ne	LBB0_17
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	w22, [x8]
	sub	w2, w22, #1
	mov	x0, x20
	mov	w1, #5
	bl	_put_bits
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_30
; %bb.8:
	mov	w23, #0
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	w21, #0
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ilog
	mov	x1, x0
	mov	x0, x20
	mov	x2, x21
	bl	_put_bits
	add	w22, w22, #1
	ldr	w8, [x19, #4]
	cmp	w8, w23
	b.le	LBB0_30
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	subs	w0, w8, w23
	b.le	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x21, #0
	ldr	x9, [x19, #8]
	mov	w10, w23
LBB0_13:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w11, w10, w21
	ldr	w11, [x9, w11, uxtw #2]
	cmp	w11, w22
	b.ne	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	add	x21, x21, #1
	cmp	x0, x21
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x21, x0
	mov	x23, x8
	b	LBB0_10
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w23, w23, w21
	b	LBB0_10
LBB0_17:
	ldr	w21, [x19, #4]
	cmp	w21, #1
	b.lt	LBB0_22
; %bb.18:
	mov	x22, #0
	ldr	x8, [x19, #8]
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8, x22, lsl #2]
	cbz	w9, LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x22, x22, #1
	cmp	x21, x22
	b.ne	LBB0_19
; %bb.21:
	mov	x22, x21
	b	LBB0_23
LBB0_22:
	mov	w22, #0
LBB0_23:
	cmp	w22, w21
	cset	w2, ne
	mov	x0, x20
	mov	w1, #1
	bl	_put_bits
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_30
; %bb.24:
	mov	x23, #0
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19, #4]
	cmp	x23, x8
	b.ge	LBB0_30
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	cmp	w22, w21
	b.eq	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x23, lsl #2]
	cmp	w8, #0
	cset	w2, ne
	mov	x0, x20
	mov	w1, #1
	bl	_put_bits
LBB0_28:                                ;   in Loop: Header=BB0_26 Depth=1
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x23, lsl #2]
	cbz	w8, LBB0_25
; %bb.29:                               ;   in Loop: Header=BB0_26 Depth=1
	sub	w2, w8, #1
	mov	x0, x20
	mov	w1, #5
	bl	_put_bits
	b	LBB0_25
LBB0_30:
	ldr	w2, [x19, #16]
	mov	x0, x20
	mov	w1, #4
	bl	_put_bits
	ldr	w0, [x19, #16]
	cbz	w0, LBB0_37
; %bb.31:
	ldp	w1, w2, [x19]
	bl	_cb_lookup_vals
	mov	x22, x0
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	bl	_ilog
	mov	x21, x0
	mov	w23, w22
	cmp	w22, #1
	b.le	LBB0_34
; %bb.32:
	lsl	x24, x23, #2
	mov	w25, #4
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w0, [x8, x25]
	bl	_ilog
	mov	x1, x0
	mov	x0, x21
	bl	_FFMAX
	mov	x21, x0
	add	x25, x25, #4
	cmp	x24, x25
	b.ne	LBB0_33
LBB0_34:
	ldr	w1, [x19, #40]
	mov	x0, x20
	bl	_put_float
	ldr	w1, [x19, #36]
	mov	x0, x20
	bl	_put_float
	sub	w2, w21, #1
	mov	x0, x20
	mov	w1, #4
	bl	_put_bits
	ldr	w2, [x19, #32]
	mov	x0, x20
	mov	w1, #1
	bl	_put_bits
	cmp	w22, #1
	b.lt	LBB0_37
; %bb.35:
	mov	x22, #0
	lsl	x23, x23, #2
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w2, [x8, x22]
	mov	x0, x20
	mov	x1, x21
	bl	_put_bits
	add	x22, x22, #4
	cmp	x23, x22
	b.ne	LBB0_36
LBB0_37:
	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	_put_codebook_header
.subsections_via_symbols
