	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_buffer_meta_flush              ## -- Begin function buffer_meta_flush
	.p2align	4, 0x90
_buffer_meta_flush:                     ## @buffer_meta_flush
	.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	_global_offset@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_metafile_header_tmp@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	movq	_buffer_meta_key_len@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	leal	4(%rax), %ecx
	movl	%ecx, 4(%rbx)
	movl	%eax, 8(%rbx)
	movq	_buffer_meta_number@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%esi, 12(%rbx)
	movq	_buffer_meta_pos@GOTPCREL(%rip), %r13
	shll	$3, %esi
	movl	(%r13), %eax
	addl	%esi, %eax
	movl	%eax, 16(%rbx)
	movq	_buffer_shifts@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_compute_crc32
	movl	%eax, %r14d
	movq	_buffer_meta@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%r13), %esi
	callq	_compute_crc32
	movl	(%r13), %edx
	movl	%r14d, %edi
	movq	_global_offset@GOTPCREL(%rip), %r14
	movl	%eax, %esi
	callq	_compute_crc32_combine
	movl	%eax, 20(%rbx)
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_writeout
	movq	_buffer_meta_key@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%r15), %esi
	callq	_writeout
	movq	_buffer_shifts@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%r12), %esi
	shll	$3, %esi
	callq	_writeout
	movq	_buffer_meta@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%r13), %esi
	callq	_writeout
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_write_buffer_number@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	(%rbx), %edi
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	movl	(%rbx), %edi
	movl	(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
LBB0_2:
	movl	(%r12), %eax
	shll	$3, %eax
	addl	(%r15), %eax
	addl	(%r13), %eax
	movl	(%r14), %ecx
	addl	%ecx, %eax
	addl	$4, %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_buffer_meta_init               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_global_offset,4,2              ## @global_offset
	.comm	_metafile_header_tmp,24,2       ## @metafile_header_tmp
	.comm	_buffer_meta_key_len,4,2        ## @buffer_meta_key_len
	.comm	_buffer_meta_number,4,2         ## @buffer_meta_number
	.comm	_buffer_meta_pos,4,2            ## @buffer_meta_pos
	.comm	_buffer_shifts,8,3              ## @buffer_shifts
	.comm	_buffer_meta,8,3                ## @buffer_meta
	.comm	_buffer_meta_key,8,3            ## @buffer_meta_key
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"writing metafile %d\n"

	.comm	_write_buffer_number,4,2        ## @write_buffer_number
L_.str.1:                               ## @.str.1
	.asciz	"offset = %lld\n"

L_.str.2:                               ## @.str.2
	.asciz	"number of records = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_buffer_meta_flush              ; -- Begin function buffer_meta_flush
	.p2align	2
_buffer_meta_flush:                     ; @buffer_meta_flush
	.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
Lloh0:
	adrp	x21, _global_offset@GOTPAGE
Lloh1:
	ldr	x21, [x21, _global_offset@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x19, _metafile_header_tmp@GOTPAGE
Lloh3:
	ldr	x19, [x19, _metafile_header_tmp@GOTPAGEOFF]
Lloh4:
	adrp	x22, _buffer_meta_key_len@GOTPAGE
Lloh5:
	ldr	x22, [x22, _buffer_meta_key_len@GOTPAGEOFF]
	ldr	w9, [x22]
	add	w10, w9, #4
	stp	w8, w10, [x19]
Lloh6:
	adrp	x23, _buffer_meta_number@GOTPAGE
Lloh7:
	ldr	x23, [x23, _buffer_meta_number@GOTPAGEOFF]
	ldr	w8, [x23]
	stp	w9, w8, [x19, #8]
Lloh8:
	adrp	x24, _buffer_meta_pos@GOTPAGE
Lloh9:
	ldr	x24, [x24, _buffer_meta_pos@GOTPAGEOFF]
	ldr	w9, [x24]
	lsl	w1, w8, #3
	add	w8, w9, w1
	str	w8, [x19, #16]
Lloh10:
	adrp	x25, _buffer_shifts@GOTPAGE
Lloh11:
	ldr	x25, [x25, _buffer_shifts@GOTPAGEOFF]
	ldr	x0, [x25]
	bl	_compute_crc32
	mov	x20, x0
Lloh12:
	adrp	x26, _buffer_meta@GOTPAGE
Lloh13:
	ldr	x26, [x26, _buffer_meta@GOTPAGEOFF]
	ldr	x0, [x26]
	ldr	w1, [x24]
	bl	_compute_crc32
	mov	x1, x0
	ldr	w2, [x24]
	mov	x0, x20
	bl	_compute_crc32_combine
	str	w0, [x19, #20]
	mov	x0, x19
	mov	w1, #4
	bl	_writeout
Lloh14:
	adrp	x8, _buffer_meta_key@GOTPAGE
Lloh15:
	ldr	x8, [x8, _buffer_meta_key@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
	ldr	w1, [x22]
	bl	_writeout
	ldr	x0, [x25]
	ldr	w8, [x23]
	lsl	w1, w8, #3
	bl	_writeout
	ldr	x0, [x26]
	ldr	w1, [x24]
	bl	_writeout
Lloh17:
	adrp	x8, _verbosity@GOTPAGE
Lloh18:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w8, #3
	b.lt	LBB0_2
; %bb.1:
Lloh20:
	adrp	x19, _stderr@GOTPAGE
Lloh21:
	ldr	x19, [x19, _stderr@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh22:
	adrp	x8, _write_buffer_number@GOTPAGE
Lloh23:
	ldr	x8, [x8, _write_buffer_number@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	w0, [x19]
	ldr	w2, [x21]
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	ldr	w0, [x19]
	ldr	w2, [x23]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
LBB0_2:
	ldr	w8, [x22]
	ldr	w9, [x23]
	add	w8, w8, w9, lsl #3
	ldr	w9, [x24]
	ldr	w10, [x21]
	add	w8, w8, w9
	add	w8, w8, w10
	add	w8, w8, #4
	str	w8, [x21]
	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
	b	_buffer_meta_init
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_global_offset,4,2              ; @global_offset
	.comm	_metafile_header_tmp,24,2       ; @metafile_header_tmp
	.comm	_buffer_meta_key_len,4,2        ; @buffer_meta_key_len
	.comm	_buffer_meta_number,4,2         ; @buffer_meta_number
	.comm	_buffer_meta_pos,4,2            ; @buffer_meta_pos
	.comm	_buffer_shifts,8,3              ; @buffer_shifts
	.comm	_buffer_meta,8,3                ; @buffer_meta
	.comm	_buffer_meta_key,8,3            ; @buffer_meta_key
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"writing metafile %d\n"

	.comm	_write_buffer_number,4,2        ; @write_buffer_number
l_.str.1:                               ; @.str.1
	.asciz	"offset = %lld\n"

l_.str.2:                               ; @.str.2
	.asciz	"number of records = %d\n"

.subsections_via_symbols
