	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__citrus_lookup_factory_convert ## -- Begin function _citrus_lookup_factory_convert
	.p2align	4, 0x90
__citrus_lookup_factory_convert:        ## @_citrus_lookup_factory_convert
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	__db_hash_std@GOTPCREL(%rip), %rsi
	leaq	-48(%rbp), %rdi
	xorl	%edx, %edx
	callq	__db_factory_create
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	leaq	-56(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_fgetln
	movq	-48(%rbp), %rdi
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdx
	movq	%rax, %rsi
	callq	_convert_line
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	callq	__db_factory_free
	jmp	LBB0_8
LBB0_5:
	leaq	-40(%rbp), %rsi
	callq	_dump_db
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	callq	__db_factory_free
	testl	%ebx, %ebx
	jne	LBB0_8
## %bb.6:
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	callq	__region_head
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	__region_size
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$1, %edx
	movq	%r14, %rcx
	callq	_fwrite
	xorl	%ebx, %ebx
	cmpl	$1, %eax
	je	LBB0_8
## %bb.7:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__db_hash_std,4,2               ## @_db_hash_std
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__citrus_lookup_factory_convert ; -- Begin function _citrus_lookup_factory_convert
	.p2align	2
__citrus_lookup_factory_convert:        ; @_citrus_lookup_factory_convert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, __db_hash_std@GOTPAGE
Lloh1:
	ldr	x1, [x1, __db_hash_std@GOTPAGEOFF]
	add	x0, sp, #24
	mov	x2, #0
	bl	__db_factory_create
	mov	x21, x0
	cbnz	w0, LBB0_6
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x2, [sp, #8]
	bl	_convert_line
	cbnz	w0, LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x20
	bl	_fgetln
	mov	x1, x0
	ldr	x0, [sp, #24]
	cbnz	x1, LBB0_1
; %bb.3:
	add	x1, sp, #16
	bl	_dump_db
	mov	x21, x0
	ldr	x0, [sp, #24]
	bl	__db_factory_free
	cbnz	w21, LBB0_6
; %bb.4:
	add	x0, sp, #16
	bl	__region_head
	mov	x20, x0
	add	x0, sp, #16
	bl	__region_size
	mov	x1, x0
	mov	x0, x20
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, #1
	csel	w21, wzr, w8, eq
	b	LBB0_6
LBB0_5:
	mov	x21, x0
	ldr	x0, [sp, #24]
	bl	__db_factory_free
LBB0_6:
	mov	x0, 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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	__db_hash_std,4,2               ; @_db_hash_std
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
