	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_binlog_headers0         ## -- Begin function create_binlog_headers0
	.p2align	4, 0x90
_create_binlog_headers0:                ## @create_binlog_headers0
	.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	_binlog_headers@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	sete	%al
	movq	_KHDR@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	movq	%rsi, %r15
	movl	%edi, %r14d
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	_stdout_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	$2, (%rbx)
	movq	_kfs_Hdr@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_create_kfs_header_basic
	movq	(%rbx), %rax
	movq	%rax, (%r12)
	movq	_kfs_binlog@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 100(%rax)
	xorl	%edi, %edi
	callq	_time
	movq	(%r12), %rcx
	movl	%eax, 40(%rcx)
	incl	96(%rcx)
	xorl	%eax, %eax
	callq	_kfs_random_hash
	movq	(%r12), %rcx
	movq	%rax, 88(%rcx)
	xorl	%eax, %eax
	callq	_kfs_random_hash
	movq	(%r12), %rcx
	movq	%rax, 72(%rcx)
	movq	%rax, 80(%rcx)
	leaq	L_.str(%rip), %r13
	movq	%r13, %rdi
	callq	_kfs_string_hash
	movq	(%r12), %rcx
	movl	%eax, 64(%rcx)
	movl	60(%rcx), %edi
	movq	%r13, %rsi
	callq	_strcpy
	movq	_split_mod@GOTPCREL(%rip), %r13
	cmpl	$2, (%r13)
	movq	(%r12), %rax
	movl	56(%rax), %edi
	jl	LBB0_3
## %bb.2:
	movq	_split_min@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_sprintf
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
LBB0_4:
	movq	(%r12), %rax
	movabsq	$4294975488, %rcx               ## imm = 0x100002000
	movq	%rcx, (%rax)
	movl	36(%rax), %edi
	movl	40(%rax), %ecx
	movl	%ecx, 44(%rax)
	movl	%ecx, 48(%rax)
	movl	%ecx, 52(%rax)
	movq	_default_progname@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	callq	_strcpy
	movq	(%r12), %rax
	movl	32(%rax), %edi
	movq	(%rbx), %rsi
	callq	_strcpy
	movq	(%r12), %rdi
	movl	%r14d, 8(%rdi)
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_strlen
	movq	(%r12), %rcx
	cmpl	$512, %eax                      ## imm = 0x200
	movl	$512, %edx                      ## imm = 0x200
	cmovll	%eax, %edx
	movl	%edx, 12(%rcx)
	movl	28(%rcx), %edi
	movq	%r15, %rsi
	callq	_memcpy
	movq	(%r12), %rdi
LBB0_6:
	movl	(%r13), %eax
	movl	%eax, 16(%rdi)
	movq	_split_min@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rdi)
	movq	_split_max@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rdi)
	callq	_fix_kfs_header_crc32
	movq	_targ_fd@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_lseek
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movl	(%r14), %edi
	movq	_kfs_Hdr@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_write
	xorl	%edi, %edi
	cmpl	$4096, %eax                     ## imm = 0x1000
	sete	%dil
	callq	_assert
	movl	(%r14), %edi
	movq	(%rbx), %rsi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_write
	xorl	%edi, %edi
	cmpl	$4096, %eax                     ## imm = 0x1000
	sete	%dil
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_binlog_headers,4,2             ## @binlog_headers
	.comm	_KHDR,8,3                       ## @KHDR
	.comm	_stdout_mode,8,3                ## @stdout_mode
	.comm	_kfs_Hdr,8,3                    ## @kfs_Hdr
	.comm	_kfs_binlog,4,2                 ## @kfs_binlog
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"money"

	.comm	_split_mod,4,2                  ## @split_mod
L_.str.1:                               ## @.str.1
	.asciz	"money%03d"

	.comm	_split_min,4,2                  ## @split_min
	.comm	_default_progname,8,3           ## @default_progname
	.comm	_split_max,4,2                  ## @split_max
	.comm	_targ_fd,4,2                    ## @targ_fd
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function create_binlog_headers0
lCPI0_0:
	.long	8192                            ; 0x2000
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_create_binlog_headers0
	.p2align	2
_create_binlog_headers0:                ; @create_binlog_headers0
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _binlog_headers@GOTPAGE
Lloh1:
	ldr	x21, [x21, _binlog_headers@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #0
Lloh2:
	adrp	x23, _KHDR@GOTPAGE
Lloh3:
	ldr	x23, [x23, _KHDR@GOTPAGEOFF]
	ldr	x8, [x23]
	ccmp	x8, #0, #0, eq
	cset	w0, eq
	bl	_assert
Lloh4:
	adrp	x8, _stdout_mode@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stdout_mode@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	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
	ret
LBB0_2:
	mov	w8, #2
	str	w8, [x21]
Lloh7:
	adrp	x22, _kfs_Hdr@GOTPAGE
Lloh8:
	ldr	x22, [x22, _kfs_Hdr@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_create_kfs_header_basic
	ldr	x8, [x22]
	str	x8, [x23]
Lloh9:
	adrp	x9, _kfs_binlog@GOTPAGE
Lloh10:
	ldr	x9, [x9, _kfs_binlog@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	str	w9, [x8, #100]
	mov	w0, #0
	bl	_time
	ldr	x8, [x23]
	str	w0, [x8, #40]
	ldr	w9, [x8, #96]
	add	w9, w9, #1
	str	w9, [x8, #96]
	bl	_kfs_random_hash
	ldr	x8, [x23]
	str	x0, [x8, #88]
	bl	_kfs_random_hash
	ldr	x8, [x23]
	stp	x0, x0, [x8, #72]
Lloh12:
	adrp	x21, l_.str@PAGE
Lloh13:
	add	x21, x21, l_.str@PAGEOFF
	mov	x0, x21
	bl	_kfs_string_hash
	ldr	x8, [x23]
	str	w0, [x8, #64]
	ldr	w0, [x8, #60]
	mov	x1, x21
	bl	_strcpy
Lloh14:
	adrp	x21, _split_mod@GOTPAGE
Lloh15:
	ldr	x21, [x21, _split_mod@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	x9, [x23]
	ldr	w0, [x9, #56]
Lloh16:
	adrp	x24, _split_min@GOTPAGE
Lloh17:
	ldr	x24, [x24, _split_min@GOTPAGEOFF]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.3:
	ldr	w2, [x24]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_sprintf
	b	LBB0_5
LBB0_4:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
LBB0_5:
	ldr	x8, [x23]
	ldp	w0, w9, [x8, #36]
	stp	w9, w9, [x8, #44]
	str	w9, [x8, #52]
Lloh22:
	adrp	x9, lCPI0_0@PAGE
Lloh23:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8]
Lloh24:
	adrp	x25, _default_progname@GOTPAGE
Lloh25:
	ldr	x25, [x25, _default_progname@GOTPAGEOFF]
	ldr	x1, [x25]
	bl	_strcpy
	ldr	x8, [x23]
	ldr	w0, [x8, #32]
	ldr	x1, [x25]
	bl	_strcpy
	ldr	x0, [x23]
	str	w20, [x0, #8]
	cbz	x19, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_strlen
	ldr	x8, [x23]
	mov	w9, #512
	cmp	w0, #512
	csel	w2, w0, w9, lt
	str	w2, [x8, #12]
	ldr	w0, [x8, #28]
	mov	x1, x19
	bl	_memcpy
	ldr	x0, [x23]
LBB0_7:
	ldr	w8, [x21]
	ldr	w9, [x24]
	stp	w8, w9, [x0, #16]
Lloh26:
	adrp	x8, _split_max@GOTPAGE
Lloh27:
	ldr	x8, [x8, _split_max@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x0, #24]
	bl	_fix_kfs_header_crc32
Lloh29:
	adrp	x19, _targ_fd@GOTPAGE
Lloh30:
	ldr	x19, [x19, _targ_fd@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh31:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_lseek
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	ldr	w0, [x19]
	ldr	x1, [x22]
	mov	w2, #4096
	bl	_write
	cmp	w0, #1, lsl #12                 ; =4096
	cset	w0, eq
	bl	_assert
	ldr	w0, [x19]
	ldr	x1, [x22]
	mov	w2, #4096
	bl	_write
	cmp	w0, #1, lsl #12                 ; =4096
	cset	w0, eq
	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	_assert
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdr	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_binlog_headers,4,2             ; @binlog_headers
	.comm	_KHDR,8,3                       ; @KHDR
	.comm	_stdout_mode,8,3                ; @stdout_mode
	.comm	_kfs_Hdr,8,3                    ; @kfs_Hdr
	.comm	_kfs_binlog,4,2                 ; @kfs_binlog
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"money"

	.comm	_split_mod,4,2                  ; @split_mod
l_.str.1:                               ; @.str.1
	.asciz	"money%03d"

	.comm	_split_min,4,2                  ; @split_min
	.comm	_default_progname,8,3           ; @default_progname
	.comm	_split_max,4,2                  ; @split_max
	.comm	_targ_fd,4,2                    ; @targ_fd
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
.subsections_via_symbols
