	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_block_data
_write_block_data:                      ## @write_block_data
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r12
	movq	_MAX_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	movq	%r15, %rsi
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movl	(%r12), %r13d
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movl	4(%r12), %eax
	cmpl	%eax, %r13d
	jbe	LBB0_1
LBB0_4:
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	(%r14), %r14
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rcx), %ecx
	testl	%ecx, %ecx
	je	LBB0_18
## %bb.5:
	xorl	%edi, %edi
	cmpl	%eax, %r13d
	ja	LBB0_12
	.p2align	4, 0x90
LBB0_7:
	movl	%edi, -68(%rbp)                 ## 4-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	$4, %r14
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_put_sbits
	incl	%r13d
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	cmpl	%eax, %r13d
	movq	%r15, %rsi
	ja	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	%r13d, %edx
	movzbl	(%rax,%rdx,4), %ecx
	sarl	%cl, %ebx
	movq	%rsi, %r15
	subl	(%rsi,%rdx,4), %ebx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rdx,4), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rdx,4), %r12d
	testl	%eax, %eax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	js	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %edx
	movl	%r12d, %ecx
	sarl	%cl, %edx
	movq	_ff_mlp_huffman_tables@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rax
	movslq	%edx, %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_put_bits
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rcx), %ecx
	movl	-68(%rbp), %edi                 ## 4-byte Reload
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	addq	$8, %r14
	incl	%edi
	cmpl	%ecx, %edi
	jae	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %r13d
	cmpl	%eax, %r13d
	jbe	LBB0_7
	jmp	LBB0_12
LBB0_18:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	%r14, (%rax)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	8(%r14), %r9
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %r8
	movl	%r13d, %edi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%edi
	cmpl	%eax, %edi
	ja	LBB0_4
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edi, %edi
	leaq	(%rdi,%rdi,2), %r11
	movl	(%r9,%r11,4), %ecx
	subl	(%r8,%rdi,4), %ecx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx,%rdi,4)
	movl	4(%r9,%r11,4), %r10d
	leal	-1(%r10), %edx
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	%edx, (%rbx,%rdi,4)
	movl	8(%r9,%r11,4), %ebx
	movl	%ebx, (%rsi,%rdi,4)
	testl	%r10d, %r10d
	jle	LBB0_3
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$-7, %edx
	shll	%cl, %edx
	addl	%edx, %ebx
	movl	%ebx, (%rsi,%rdi,4)
	subl	%r10d, %ecx
	addl	$2, %ecx
	testl	%ecx, %ecx
	jns	LBB0_16
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	decl	%ecx
	testl	%ecx, %ecx
	js	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	addl	%edx, %ebx
	movl	%ebx, (%rsi,%rdi,4)
	jmp	LBB0_17
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CHANNELS,4,2               ## @MAX_CHANNELS
	.comm	_ff_mlp_huffman_tables,8,3      ## @ff_mlp_huffman_tables
	.no_dead_strip	_write_block_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_block_data
_write_block_data:                      ; @write_block_data
	.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
	sub	sp, sp, #32
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldp	x25, x24, [x0, #16]
	stur	x0, [x29, #-104]                ; 8-byte Folded Spill
	ldr	x23, [x0]
Lloh3:
	adrp	x8, _MAX_CHANNELS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_CHANNELS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x26, x9, x12
	mov	sp, x26
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x27, x9, x12
	mov	sp, x27
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x28, x8, x12
	mov	sp, x28
	ldp	w19, w8, [x25]
	cmp	w19, w8
	b.ls	LBB0_12
LBB0_1:
	ldr	w9, [x24, #8]
	cbz	w9, LBB0_10
; %bb.2:
	mov	w10, #0
	cmp	w19, w8
	b.hi	LBB0_8
LBB0_3:
	stur	w10, [x29, #-92]                ; 4-byte Folded Spill
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_put_sbits
	add	w19, w19, #1
	ldr	w8, [x25, #4]
	cmp	w19, w8
	b.hi	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23], #4
	ldr	x9, [x24]
	mov	w10, w19
	lsl	x10, x10, #2
	ldr	w9, [x9, x10]
	ldr	w11, [x26, x10]
	asr	w8, w8, w9
	sub	w21, w8, w11
	ldr	w8, [x27, x10]
	ldr	w22, [x28, x10]
	tbnz	w8, #31, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	asr	w9, w21, w22
Lloh12:
	adrp	x10, _ff_mlp_huffman_tables@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ff_mlp_huffman_tables@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	ldr	x8, [x10, x8, lsl #3]
	ldr	x8, [x8, w9, sxtw #3]
	ldp	w2, w1, [x8]
	mov	x0, x20
	bl	_put_bits
	b	LBB0_4
LBB0_7:
	ldr	w9, [x24, #8]
	ldur	w10, [x29, #-92]                ; 4-byte Folded Reload
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x23, #8
	add	w10, w10, #1
	cmp	w10, w9
	b.hs	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w19, [x25]
	cmp	w19, w8
	b.ls	LBB0_3
	b	LBB0_8
LBB0_10:
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	str	x23, [x8]
	ldur	x8, [x29, #-88]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.11:
	sub	sp, x29, #80
	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_12:
	ldur	x9, [x29, #-104]                ; 8-byte Folded Reload
	ldr	x9, [x9, #8]
	ldr	x10, [x24]
	mov	w11, #12
	mov	w12, #-7
	mov	w13, #-1
	mov	x15, x19
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w15, w14, #1
	cmp	w15, w8
	b.hi	LBB0_1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	w14, w15
	lsl	x0, x14, #2
	ldr	w16, [x10, x0]
	umaddl	x15, w15, w11, x9
	ldp	w1, w17, [x15]
	sub	w16, w1, w16
	str	w16, [x28, x0]
	ldr	w15, [x15, #8]
	str	w15, [x26, x0]
	subs	w1, w17, #1
	str	w1, [x27, x0]
	b.lt	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	lsl	w0, w12, w16
	add	w15, w15, w0
	str	w15, [x26, x14, lsl #2]
	sub	w16, w16, w17
	add	w16, w16, #2
	tbz	w16, #31, LBB0_17
	b	LBB0_13
LBB0_16:                                ;   in Loop: Header=BB0_14 Depth=1
	sub	w16, w16, #1
	tbnz	w16, #31, LBB0_13
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=1
	lsl	w16, w13, w16
	add	w15, w15, w16
	str	w15, [x26, x14, lsl #2]
	b	LBB0_13
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CHANNELS,4,2               ; @MAX_CHANNELS
	.comm	_ff_mlp_huffman_tables,8,3      ; @ff_mlp_huffman_tables
	.no_dead_strip	_write_block_data
.subsections_via_symbols
