	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tmp_write_lev                  ## -- Begin function tmp_write_lev
	.p2align	4, 0x90
_tmp_write_lev:                         ## @tmp_write_lev
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	addl	$3, %edx
	movl	%edx, %ebx
	andl	$-4, %ebx
	xorl	%edi, %edi
	cmpl	$1048576, %edx                  ## imm = 0x100000
	setb	%dil
	callq	_assert
	movq	(%r12), %rdi
	movslq	%ebx, %r15
	leaq	(%rdi,%r15), %rax
	cmpq	8(%r12), %rax
	jle	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_tmp_flush_out
	movq	(%r12), %rax
	addq	%r15, %rax
	xorl	%edi, %edi
	cmpq	8(%r12), %rax
	setle	%dil
	callq	_assert
	movq	(%r12), %rdi
LBB0_2:
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	addq	%r15, (%r12)
	addl	%r15d, 16(%r12)
	movl	20(%r12), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_crc32_partial
	movl	%eax, 20(%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tmp_write_lev                  ; -- Begin function tmp_write_lev
	.p2align	2
_tmp_write_lev:                         ; @tmp_write_lev
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	add	w8, w2, #3
	and	w21, w8, #0xfffffffc
	cmp	w8, #256, lsl #12               ; =1048576
	cset	w0, lo
	bl	_assert
	sxtw	x21, w21
	ldp	x0, x8, [x19]
	add	x9, x0, x21
	cmp	x9, x8
	b.le	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_tmp_flush_out
	ldp	x8, x9, [x19]
	add	x8, x8, x21
	cmp	x8, x9
	cset	w0, le
	bl	_assert
	ldr	x0, [x19]
LBB0_2:
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x19]
	add	x8, x8, x21
	str	x8, [x19]
	ldp	w8, w2, [x19, #16]
	add	w8, w8, w21
	str	w8, [x19, #16]
	mov	x0, x20
	mov	x1, x21
	bl	_crc32_partial
	str	w0, [x19, #20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
