	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_restart_header
_write_restart_header:                  ## @write_restart_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, %r12
	movq	%rdi, %rbx
	movq	8(%rdi), %r13
	movl	32(%r13), %edi
	callq	_xor_32_to_8
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_put_bits_count
	movl	%eax, %r14d
	movq	%r12, %rdi
	movl	$14, %esi
	movl	$12778, %edx                    ## imm = 0x31EA
	callq	_put_bits
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_put_bits
	movl	(%r13), %edx
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_put_bits
	movl	4(%r13), %edx
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_put_bits
	movl	8(%r13), %edx
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_put_bits
	movl	12(%r13), %edx
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_put_bits
	movl	16(%r13), %edx
	movq	%r12, %rdi
	movl	$23, %esi
	callq	_put_bits
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movl	20(%r13), %edx
	movq	%r12, %rdi
	movl	$5, %esi
	callq	_put_bits
	movl	24(%r13), %edx
	movq	%r12, %rdi
	movl	$5, %esi
	callq	_put_bits
	movl	24(%r13), %edx
	movq	%r12, %rdi
	movl	$5, %esi
	callq	_put_bits
	movl	28(%r13), %edx
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_put_bits
	movq	%r12, %rdi
	movl	$8, %esi
	movl	%r15d, %edx
	callq	_put_bits
	movq	%r12, %rdi
	movl	$16, %esi
	xorl	%edx, %edx
	callq	_put_bits
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$6, %esi
	movl	%ebx, %edx
	callq	_put_bits
	incl	%ebx
	cmpl	8(%r13), %ebx
	jbe	LBB0_1
## %bb.2:
	movl	(%r12), %eax
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_flush_put_bits
	movl	(%r12), %ebx
	movq	%r12, %rdi
	callq	_put_bits_count
	subl	%r14d, %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ff_mlp_restart_checksum
	movq	%r12, %rdi
	movl	$8, %esi
	movl	%eax, %edx
	callq	_put_bits
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_write_restart_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_restart_header
_write_restart_header:                  ; @write_restart_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x22, x0
	ldr	x23, [x0, #8]
	ldr	w0, [x23, #32]
	bl	_xor_32_to_8
	mov	x21, x0
	mov	x0, x19
	bl	_put_bits_count
	mov	x20, x0
	mov	x0, x19
	mov	w1, #14
	mov	w2, #12778
	bl	_put_bits
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #16
	bl	_put_bits
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #4
	bl	_put_bits
	ldr	w2, [x23, #4]
	mov	x0, x19
	mov	w1, #4
	bl	_put_bits
	ldr	w2, [x23, #8]
	mov	x0, x19
	mov	w1, #4
	bl	_put_bits
	ldr	w2, [x23, #12]
	mov	x0, x19
	mov	w1, #4
	bl	_put_bits
	ldr	w2, [x23, #16]
	mov	x0, x19
	mov	w1, #23
	bl	_put_bits
	mov	x0, x19
	mov	w1, #4
	mov	w2, #0
	bl	_put_bits
	ldr	w2, [x23, #20]
	mov	x0, x19
	mov	w1, #5
	bl	_put_bits
	ldr	w2, [x23, #24]
	mov	x0, x19
	mov	w1, #5
	bl	_put_bits
	ldr	w2, [x23, #24]
	mov	x0, x19
	mov	w1, #5
	bl	_put_bits
	ldr	w2, [x23, #28]
	mov	x0, x19
	mov	w1, #1
	bl	_put_bits
	mov	x0, x19
	mov	w1, #8
	mov	x2, x21
	bl	_put_bits
	mov	x0, x19
	mov	w1, #16
	mov	w2, #0
	bl	_put_bits
	mov	w21, #0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #6
	mov	x2, x21
	bl	_put_bits
	add	w21, w21, #1
	ldr	w8, [x23, #8]
	cmp	w21, w8
	b.ls	LBB0_1
; %bb.2:
	ldr	w8, [x19]
	str	w8, [sp, #8]
	add	x0, sp, #8
	bl	_flush_put_bits
	ldr	w21, [x19]
	mov	x0, x19
	bl	_put_bits_count
	sub	w1, w0, w20
	mov	x0, x21
	bl	_ff_mlp_restart_checksum
	mov	x2, x0
	mov	x0, x19
	mov	w1, #8
	bl	_put_bits
	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
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_write_restart_header
.subsections_via_symbols
