	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function createdb
_createdb:                              ## @createdb
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_sdb_new
	movq	_s@GOTPCREL(%rip), %r15
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %edi
	callq	_sdb_disk_create
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	(%r15), %edi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	movl	$61, %ecx
	callq	_insertkeys
	movl	(%r15), %edi
	movq	_options@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sdb_config
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_stdin_slurp
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %rbx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_free
	xorl	%edi, %edi
	callq	_stdin_slurp
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$61, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rdx
	incq	%rdx
	movb	$0, (%rax)
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_sdb_disk_insert
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_eprintf
	movl	$1, %r14d
	jmp	LBB0_9
LBB0_8:
	movl	(%r15), %edi
	callq	_sdb_disk_finish
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_s,4,2                          ## @s
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot create database\n"

	.comm	_options,4,2                    ## @options
	.no_dead_strip	_createdb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function createdb
_createdb:                              ; @createdb
	.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	x19, x2
	mov	x20, x1
	mov	x1, x0
	mov	x0, #0
	mov	w2, #0
	bl	_sdb_new
Lloh0:
	adrp	x21, _s@GOTPAGE
Lloh1:
	ldr	x21, [x21, _s@GOTPAGEOFF]
	str	w0, [x21]
	cbz	w0, LBB0_7
; %bb.1:
	bl	_sdb_disk_create
	cbz	w0, LBB0_7
; %bb.2:
	ldr	w0, [x21]
	mov	x1, x20
	mov	x2, x19
	mov	w3, #61
	bl	_insertkeys
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _options@GOTPAGE
Lloh3:
	ldr	x8, [x8, _options@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_sdb_config
	mov	x0, #0
	bl	_stdin_slurp
	cbz	x0, LBB0_8
; %bb.3:
	mov	x19, x0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_free
	mov	x0, #0
	bl	_stdin_slurp
	mov	x19, x0
	cbz	x0, LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #61
	bl	_strchr
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x2, x0
	strb	wzr, [x2], #1
	ldr	w0, [x21]
	mov	x1, x19
	bl	_sdb_disk_insert
	b	LBB0_4
LBB0_7:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_eprintf
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	ldr	w0, [x21]
	bl	_sdb_disk_finish
	mov	w0, #0
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_s,4,2                          ; @s
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot create database\n"

	.comm	_options,4,2                    ; @options
	.no_dead_strip	_createdb
.subsections_via_symbols
