	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_main_header
_put_main_header:                       ## @put_main_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
	subq	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$50000, %r14d                   ## imm = 0xC350
	movl	$50000, %edi                    ## imm = 0xC350
	callq	_av_mallocz
	movq	%rax, -152(%rbp)
	testq	%rax, %rax
	je	LBB0_34
## %bb.1:
	movq	%rax, %r15
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	-44(%rbp), %r13
	movq	%r13, %rdi
	movq	%rax, %rsi
	movl	$50000, %edx                    ## imm = 0xC350
	callq	_init_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$118, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$111, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$114, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$98, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$105, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$115, %edx
	callq	_put_bits
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_put_bits32
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_put_bits
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	80(%rax), %esi
	movq	%r13, %rdi
	callq	_put_bits32
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_put_bits32
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_put_bits32
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_put_bits32
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_put_bits
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	4(%rax), %edx
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_put_bits
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	%r13, %rdi
	callq	_flush_put_bits
	movq	%r13, %rdi
	callq	_put_bits_count
	sarl	$3, %eax
	subl	%eax, %r14d
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	cltq
	movq	%r15, -128(%rbp)                ## 8-byte Spill
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	leaq	(%r15,%rax,4), %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_init_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$3, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$118, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$111, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$114, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$98, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$105, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$115, %edx
	callq	_put_bits
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_put_bits32
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_put_bits32
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	%r13, %rdi
	callq	_flush_put_bits
	movq	%r13, %rdi
	callq	_put_bits_count
                                        ## kill: def $eax killed $eax def $rax
	sarl	$3, %eax
	subl	%eax, %r14d
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	cltq
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leaq	(%rbx,%rax,4), %rsi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_init_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$5, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$118, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$111, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$114, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$98, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$105, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$115, %edx
	callq	_put_bits
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %edx
	decl	%edx
	movq	%r13, %rdi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	$8, %esi
	callq	_put_bits
	cmpl	$0, 16(%r13)
	jle	LBB0_4
## %bb.2:
	xorl	%r15d, %r15d
	leaq	-44(%rbp), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	72(%r13), %rsi
	addq	%r15, %rsi
	movq	%r14, %rdi
	callq	_put_codebook_header
	incq	%rbx
	movslq	16(%r13), %rax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$6, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$16, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movl	20(%r13), %edx
	decl	%edx
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_put_bits
	cmpl	$0, 20(%r13)
	jle	LBB0_7
## %bb.5:
	xorl	%r15d, %r15d
	leaq	-44(%rbp), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	64(%r13), %rsi
	addq	%r15, %rsi
	movq	%r14, %rdi
	callq	_put_floor_header
	incq	%rbx
	movslq	20(%r13), %rax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movl	24(%r13), %edx
	decl	%edx
	leaq	-44(%rbp), %rdi
	movl	$6, %esi
	callq	_put_bits
	cmpl	$0, 24(%r13)
	jle	LBB0_10
## %bb.8:
	xorl	%r15d, %r15d
	leaq	-44(%rbp), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r13), %rsi
	addq	%r15, %rsi
	movq	%r14, %rdi
	callq	_put_residue_header
	incq	%rbx
	movslq	24(%r13), %rax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_10:
	movl	28(%r13), %edx
	decl	%edx
	leaq	-44(%rbp), %rdi
	movl	$6, %esi
	callq	_put_bits
	cmpl	$0, 28(%r13)
	jle	LBB0_27
## %bb.11:
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r12
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	incq	%rbx
	movslq	28(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_27
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_21 Depth 2
                                        ##     Child Loop BB0_25 Depth 2
	movq	48(%r13), %r14
	movq	%r12, %rdi
	movl	$16, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%rbx, -144(%rbp)                ## 8-byte Spill
	leaq	(%rbx,%rbx,2), %rbx
	shlq	$4, %rbx
	xorl	%edx, %edx
	cmpl	$2, (%r14,%rbx)
	setge	%dl
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_put_bits
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	(%r14,%rbx), %edx
	cmpl	$2, %edx
	jl	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	decl	%edx
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_put_bits
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%r14,%rbx), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	xorl	%edx, %edx
	cmpl	$0, 4(%r14,%rbx)
	setne	%dl
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_put_bits
	movl	4(%r14,%rbx), %edx
	testl	%edx, %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %r13
	addq	$4, %r13
	decl	%edx
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_put_bits
	cmpl	$0, (%r13)
	jle	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %r14
	addq	$8, %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %edi
	decl	%edi
	callq	_ilog
	movq	(%r14), %rcx
	movl	(%rcx,%r15,4), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_put_bits
	movl	(%rbx), %edi
	decl	%edi
	callq	_ilog
	movq	8(%r14), %rcx
	movl	(%rcx,%r15,4), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_put_bits
	incq	%r15
	movslq	(%r13), %rax
	cmpq	%rax, %r15
	jl	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r12, %rdi
	movl	$2, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	-136(%rbp), %r15                ## 8-byte Reload
	movl	(%r15), %eax
	cmpl	$2, %eax
	movq	%rbx, %r13
	jl	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$0, (%r13)
	jle	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %r14
	addq	$24, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_put_bits
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r15), %eax
LBB0_23:                                ##   in Loop: Header=BB0_12 Depth=1
	testl	%eax, %eax
	jle	LBB0_26
LBB0_24:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %r14
	addq	$32, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_25:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movl	$8, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_put_bits
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_put_bits
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_25
	jmp	LBB0_26
LBB0_27:
	movl	32(%r13), %edx
	decl	%edx
	leaq	-44(%rbp), %rdi
	movl	$6, %esi
	callq	_put_bits
	cmpl	$0, 32(%r13)
	jle	LBB0_30
## %bb.28:
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r14
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r13), %rax
	movl	(%rax,%rbx,8), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_put_bits
	movq	%r14, %rdi
	movl	$16, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%r14, %rdi
	movl	$16, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	40(%r13), %rax
	movl	4(%rax,%rbx,8), %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	incq	%rbx
	movslq	32(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_29
LBB0_30:
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	callq	_flush_put_bits
	movq	%rbx, %rdi
	callq	_put_bits_count
	movl	%eax, %r14d
	sarl	$3, %r14d
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	addl	-84(%rbp), %r12d                ## 4-byte Folded Reload
	leal	(%r12,%r14), %eax
	cltq
	imulq	$-2139062143, %rax, %rcx        ## imm = 0x80808081
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$7, %ecx
	addl	%edx, %ecx
	leal	(%rax,%rcx), %edi
	addl	$64, %edi
	callq	_av_mallocz
	movq	%rax, %rbx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	testq	%rbx, %rbx
	je	LBB0_31
## %bb.32:
	leaq	4(%rbx), %rdi
	movl	$2, (%rbx)
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movl	%r13d, %esi
	callq	_av_xiphlacing
	cltq
	leaq	(%rbx,%rax,4), %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movl	%r15d, %esi
	callq	_av_xiphlacing
	cltq
	leaq	(%rbx,%rax,4), %rbx
	movq	%rbx, %rdi
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	-128(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	leaq	(%rbx,%r13,4), %rbx
	movq	%rbx, %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movl	%r15d, %edx
	callq	_memcpy
	leaq	(%rbx,%r15,4), %rbx
	movslq	-80(%rbp), %rax                 ## 4-byte Folded Reload
	leaq	(%r12,%rax,4), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_memcpy
	leaq	(%rbx,%r14,4), %rbx
	leaq	-152(%rbp), %rdi
	callq	_av_freep
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	subq	(%rax), %rbx
	shrq	$2, %rbx
	jmp	LBB0_33
LBB0_34:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_31:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
LBB0_33:
	movl	%ebx, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_put_main_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_main_header
_put_main_header:                       ; @put_main_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x1
	mov	x21, x0
	mov	w22, #50000
	mov	w0, #50000
	bl	_av_mallocz
	str	x0, [sp, #48]
	cbz	x0, LBB0_32
; %bb.1:
	mov	x19, x0
	add	x0, sp, #60
	mov	x1, x19
	mov	w2, #50000
	bl	_init_put_bits
	add	x0, sp, #60
	mov	w1, #8
	mov	w2, #1
	bl	_put_bits
	add	x0, sp, #60
	mov	w1, #8
	mov	w2, #118
	bl	_put_bits
	add	x0, sp, #60
	mov	w1, #8
	mov	w2, #111
	bl	_put_bits
	add	x0, sp, #60
	mov	w1, #8
	mov	w2, #114
	bl	_put_bits
	add	x0, sp, #60
	mov	w1, #8
	mov	w2, #98
	bl	_put_bits
	add	x0, sp, #60
	mov	w1, #8
	mov	w2, #105
	bl	_put_bits
	add	x0, sp, #60
	mov	w1, #8
	mov	w2, #115
	bl	_put_bits
	add	x0, sp, #60
	mov	w1, #0
	bl	_put_bits32
	ldr	w2, [x21]
	add	x0, sp, #60
	mov	w1, #8
	bl	_put_bits
	ldr	w1, [x21, #80]
	add	x0, sp, #60
	bl	_put_bits32
	add	x0, sp, #60
	mov	w1, #0
	bl	_put_bits32
	add	x0, sp, #60
	mov	w1, #0
	bl	_put_bits32
	add	x0, sp, #60
	mov	w1, #0
	bl	_put_bits32
	ldr	x8, [x21, #8]
	ldr	w2, [x8]
	add	x0, sp, #60
	mov	w1, #4
	bl	_put_bits
	ldr	x8, [x21, #8]
	ldr	w2, [x8, #4]
	add	x0, sp, #60
	mov	w1, #4
	bl	_put_bits
	add	x0, sp, #60
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	add	x0, sp, #60
	bl	_flush_put_bits
	add	x0, sp, #60
	bl	_put_bits_count
	mov	x23, x0
	asr	w8, w0, #3
	sub	w24, w22, w8
	str	x19, [sp, #16]                  ; 8-byte Folded Spill
	add	x19, x19, w8, sxtw #2
	add	x0, sp, #60
	mov	x1, x19
	mov	x2, x24
	bl	_init_put_bits
	add	x0, sp, #60
	mov	w1, #8
	mov	w2, #3
	bl	_put_bits
	add	x0, sp, #60
	mov	w1, #8
	mov	w2, #118
	bl	_put_bits
	add	x0, sp, #60
	mov	w1, #8
	mov	w2, #111
	bl	_put_bits
	add	x0, sp, #60
	mov	w1, #8
	mov	w2, #114
	bl	_put_bits
	add	x0, sp, #60
	mov	w1, #8
	mov	w2, #98
	bl	_put_bits
	add	x0, sp, #60
	mov	w1, #8
	mov	w2, #105
	bl	_put_bits
	add	x0, sp, #60
	mov	w1, #8
	mov	w2, #115
	bl	_put_bits
	add	x0, sp, #60
	mov	w1, #0
	bl	_put_bits32
	add	x0, sp, #60
	mov	w1, #0
	bl	_put_bits32
	add	x0, sp, #60
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	add	x0, sp, #60
	bl	_flush_put_bits
	add	x0, sp, #60
	bl	_put_bits_count
	mov	x25, x0
	asr	w8, w0, #3
	sub	w2, w24, w8
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	add	x1, x19, w8, sxtw #2
	add	x0, sp, #60
	bl	_init_put_bits
	add	x0, sp, #60
	mov	w1, #8
	mov	w2, #5
	bl	_put_bits
	add	x0, sp, #60
	mov	w1, #8
	mov	w2, #118
	bl	_put_bits
	add	x0, sp, #60
	mov	w1, #8
	mov	w2, #111
	bl	_put_bits
	add	x0, sp, #60
	mov	w1, #8
	mov	w2, #114
	bl	_put_bits
	add	x0, sp, #60
	mov	w1, #8
	mov	w2, #98
	bl	_put_bits
	add	x0, sp, #60
	mov	w1, #8
	mov	w2, #105
	bl	_put_bits
	add	x0, sp, #60
	mov	w1, #8
	mov	w2, #115
	bl	_put_bits
	ldr	w8, [x21, #16]
	sub	w2, w8, #1
	add	x0, sp, #60
	mov	w1, #8
	bl	_put_bits
	ldr	w8, [x21, #16]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x19, #0
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #72]
	add	x1, x8, x19
	add	x0, sp, #60
	bl	_put_codebook_header
	add	x22, x22, #1
	ldrsw	x8, [x21, #16]
	add	x19, x19, #4
	cmp	x22, x8
	b.lt	LBB0_3
LBB0_4:
	add	x0, sp, #60
	mov	w1, #6
	mov	w2, #0
	bl	_put_bits
	add	x0, sp, #60
	mov	w1, #16
	mov	w2, #0
	bl	_put_bits
	ldr	w8, [x21, #20]
	sub	w2, w8, #1
	add	x0, sp, #60
	mov	w1, #6
	bl	_put_bits
	ldr	w8, [x21, #20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x19, #0
	mov	x22, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #64]
	add	x1, x8, x19
	add	x0, sp, #60
	bl	_put_floor_header
	add	x22, x22, #1
	ldrsw	x8, [x21, #20]
	add	x19, x19, #4
	cmp	x22, x8
	b.lt	LBB0_6
LBB0_7:
	str	x20, [sp, #40]                  ; 8-byte Folded Spill
	ldr	w8, [x21, #24]
	sub	w2, w8, #1
	add	x0, sp, #60
	mov	w1, #6
	bl	_put_bits
	ldr	w8, [x21, #24]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x19, #0
	mov	x22, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #56]
	add	x1, x8, x19
	add	x0, sp, #60
	bl	_put_residue_header
	add	x22, x22, #1
	ldrsw	x8, [x21, #24]
	add	x19, x19, #4
	cmp	x22, x8
	b.lt	LBB0_9
LBB0_10:
	sbfx	x9, x23, #3, #29
	sbfx	x8, x25, #3, #29
	stp	x9, x8, [sp, #24]               ; 16-byte Folded Spill
	ldr	w8, [x21, #28]
	sub	w2, w8, #1
	add	x0, sp, #60
	mov	w1, #6
	bl	_put_bits
	ldr	w8, [x21, #28]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.11:
	mov	x25, #0
	mov	w26, #48
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x21, #28]
	cmp	x25, x8
	b.ge	LBB0_27
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
                                        ;     Child Loop BB0_22 Depth 2
                                        ;     Child Loop BB0_26 Depth 2
	ldr	x28, [x21, #48]
	add	x0, sp, #60
	mov	w1, #16
	mov	w2, #0
	bl	_put_bits
	madd	x27, x25, x26, x28
	ldr	w8, [x27]
	cmp	w8, #1
	cset	w2, gt
	add	x0, sp, #60
	mov	w1, #1
	bl	_put_bits
	ldr	w8, [x27]
	cmp	w8, #2
	b.lt	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	sub	w2, w8, #1
	add	x0, sp, #60
	mov	w1, #4
	bl	_put_bits
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	madd	x19, x25, x26, x28
	ldr	w8, [x19, #4]!
	cmp	w8, #0
	cset	w2, ne
	add	x0, sp, #60
	mov	w1, #1
	bl	_put_bits
	ldr	w8, [x19]
	cbz	w8, LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	sub	w2, w8, #1
	add	x0, sp, #60
	mov	w1, #8
	bl	_put_bits
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x22, #0
	madd	x8, x25, x26, x28
	add	x23, x8, #8
	add	x24, x8, #16
LBB0_18:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x21]
	sub	w0, w8, #1
	bl	_ilog
	mov	x1, x0
	ldr	x8, [x23]
	lsl	x20, x22, #2
	ldr	w2, [x8, x20]
	add	x0, sp, #60
	bl	_put_bits
	ldr	w8, [x21]
	sub	w0, w8, #1
	bl	_ilog
	mov	x1, x0
	ldr	x8, [x24]
	ldr	w2, [x8, x20]
	add	x0, sp, #60
	bl	_put_bits
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.lt	LBB0_18
LBB0_19:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x0, sp, #60
	mov	w1, #2
	mov	w2, #0
	bl	_put_bits
	ldr	w8, [x27]
	cmp	w8, #1
	b.le	LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.21:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x19, #0
	madd	x8, x25, x26, x28
	add	x22, x8, #24
LBB0_22:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22]
	ldr	w2, [x8, x19, lsl #2]
	add	x0, sp, #60
	mov	w1, #4
	bl	_put_bits
	add	x19, x19, #1
	ldrsw	x8, [x21]
	cmp	x19, x8
	b.lt	LBB0_22
; %bb.23:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x27]
LBB0_24:                                ;   in Loop: Header=BB0_13 Depth=1
	cmp	w8, #1
	b.lt	LBB0_12
LBB0_25:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x19, #0
	madd	x8, x25, x26, x28
	add	x22, x8, #32
	add	x23, x8, #40
LBB0_26:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #60
	mov	w1, #8
	mov	w2, #0
	bl	_put_bits
	ldr	x8, [x22]
	lsl	x20, x19, #2
	ldr	w2, [x8, x20]
	add	x0, sp, #60
	mov	w1, #8
	bl	_put_bits
	ldr	x8, [x23]
	ldr	w2, [x8, x20]
	add	x0, sp, #60
	mov	w1, #8
	bl	_put_bits
	add	x19, x19, #1
	ldrsw	x8, [x27]
	cmp	x19, x8
	b.lt	LBB0_26
	b	LBB0_12
LBB0_27:
	ldr	w8, [x21, #32]
	sub	w2, w8, #1
	add	x0, sp, #60
	mov	w1, #6
	bl	_put_bits
	ldr	w8, [x21, #32]
	cmp	w8, #1
	b.lt	LBB0_30
; %bb.28:
	mov	x19, #0
	mov	x22, #0
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #40]
	ldr	w2, [x8, x19]
	add	x0, sp, #60
	mov	w1, #1
	bl	_put_bits
	add	x0, sp, #60
	mov	w1, #16
	mov	w2, #0
	bl	_put_bits
	add	x0, sp, #60
	mov	w1, #16
	mov	w2, #0
	bl	_put_bits
	ldr	x8, [x21, #40]
	add	x8, x8, x19
	ldr	w2, [x8, #4]
	add	x0, sp, #60
	mov	w1, #8
	bl	_put_bits
	add	x22, x22, #1
	ldrsw	x8, [x21, #32]
	add	x19, x19, #8
	cmp	x22, x8
	b.lt	LBB0_29
LBB0_30:
	add	x0, sp, #60
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	add	x0, sp, #60
	bl	_flush_put_bits
	add	x0, sp, #60
	bl	_put_bits_count
	asr	w21, w0, #3
	ldp	x24, x22, [sp, #24]             ; 16-byte Folded Reload
	add	w19, w22, w24
	add	w8, w19, w21
	mov	w9, #32897
	movk	w9, #32896, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w9, w9, w8
	asr	w10, w9, #7
	add	w9, w10, w9, lsr #31
	add	w8, w8, w9
	add	w0, w8, #64
	bl	_av_mallocz
	ldr	x20, [sp, #40]                  ; 8-byte Folded Reload
	str	x0, [x20]
	cbz	x0, LBB0_33
; %bb.31:
	mov	x25, x0
	mov	w8, #2
	str	w8, [x25], #4
	mov	x0, x25
	mov	x1, x24
	bl	_av_xiphlacing
	add	x25, x25, w0, sxtw #2
	mov	x0, x25
	mov	x1, x22
	bl	_av_xiphlacing
	add	x25, x25, w0, sxtw #2
	mov	x0, x25
	ldr	x23, [sp, #16]                  ; 8-byte Folded Reload
	mov	x1, x23
	mov	x2, x24
	bl	_memcpy
	add	x24, x25, x24, lsl #2
	mov	x0, x24
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x22
	bl	_memcpy
	add	x22, x24, x22, lsl #2
	add	x1, x23, w19, sxtw #2
	mov	x0, x22
	mov	x2, x21
	bl	_memcpy
	add	x19, x22, w21, uxtw #2
	add	x0, sp, #48
	bl	_av_freep
	ldr	x8, [x20]
	sub	x8, x19, x8
	lsr	x0, x8, #2
	b	LBB0_34
LBB0_32:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_AVERROR
LBB0_33:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_AVERROR
                                        ; kill: def $w0 killed $w0 def $x0
LBB0_34:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_put_main_header
.subsections_via_symbols
