	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function seq_open_db
_seq_open_db:                           ## @seq_open_db
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r15, %rcx
	callq	_snprintf
	leaq	-56(%rbp), %rdi
	movq	%r12, %rsi
	callq	__map_file
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	leaq	48(%r14), %rdi
	movq	__CITRUS_LOOKUP_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	__db_hash_std@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %rsi
	xorl	%r8d, %r8d
	callq	__db_open
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r15d
	leaq	-56(%rbp), %rdi
	callq	__unmap_file
	movl	%r15d, %ebx
	jmp	LBB0_4
LBB0_3:
	movl	-56(%rbp), %eax
	movl	%eax, 56(%r14)
	movl	48(%r14), %edi
	callq	__db_get_num_entries
	movl	%eax, 52(%r14)
	movq	$0, 40(%r14)
	movl	$1, (%r14)
	movq	_seq_lookup_db@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r14)
	movq	_seq_next_db@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r14)
	movq	_seq_get_num_entries_db@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	movq	_seq_close_db@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
LBB0_4:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s.db"

	.comm	__CITRUS_LOOKUP_MAGIC,4,2       ## @_CITRUS_LOOKUP_MAGIC
	.comm	__db_hash_std,4,2               ## @_db_hash_std
	.comm	_seq_lookup_db,4,2              ## @seq_lookup_db
	.comm	_seq_next_db,4,2                ## @seq_next_db
	.comm	_seq_get_num_entries_db,4,2     ## @seq_get_num_entries_db
	.comm	_seq_close_db,4,2               ## @seq_close_db
	.no_dead_strip	_seq_open_db
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function seq_open_db
_seq_open_db:                           ; @seq_open_db
	.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
	sub	sp, sp, #16
	mov	x3, x1
	mov	x19, x0
	mov	x21, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x9, x1
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_snprintf
	sub	x0, x29, #48
	mov	x1, x20
	bl	__map_file
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.1:
	add	x0, x19, #48
Lloh10:
	adrp	x8, __CITRUS_LOOKUP_MAGIC@GOTPAGE
Lloh11:
	ldr	x8, [x8, __CITRUS_LOOKUP_MAGIC@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x8, __db_hash_std@GOTPAGE
Lloh14:
	ldr	x8, [x8, __db_hash_std@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	sub	x1, x29, #48
	mov	x4, #0
	bl	__db_open
	mov	x20, x0
	cbz	w0, LBB0_3
; %bb.2:
	sub	x0, x29, #48
	bl	__unmap_file
	b	LBB0_4
LBB0_3:
	ldur	w8, [x29, #-48]
	str	w8, [x19, #56]
	ldr	w0, [x19, #48]
	bl	__db_get_num_entries
	str	w0, [x19, #52]
	str	xzr, [x19, #40]
	mov	w8, #1
	str	w8, [x19]
Lloh16:
	adrp	x8, _seq_lookup_db@GOTPAGE
Lloh17:
	ldr	x8, [x8, _seq_lookup_db@GOTPAGEOFF]
Lloh18:
	adrp	x9, _seq_next_db@GOTPAGE
Lloh19:
	ldr	x9, [x9, _seq_next_db@GOTPAGEOFF]
	stp	x9, x8, [x19, #24]
Lloh20:
	adrp	x8, _seq_get_num_entries_db@GOTPAGE
Lloh21:
	ldr	x8, [x8, _seq_get_num_entries_db@GOTPAGEOFF]
Lloh22:
	adrp	x9, _seq_close_db@GOTPAGE
Lloh23:
	ldr	x9, [x9, _seq_close_db@GOTPAGEOFF]
	stp	x9, x8, [x19, #8]
LBB0_4:
	mov	sp, x21
	ldur	x8, [x29, #-40]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	sub	sp, x29, #32
	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
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s.db"

	.comm	__CITRUS_LOOKUP_MAGIC,4,2       ; @_CITRUS_LOOKUP_MAGIC
	.comm	__db_hash_std,4,2               ; @_db_hash_std
	.comm	_seq_lookup_db,4,2              ; @seq_lookup_db
	.comm	_seq_next_db,4,2                ; @seq_next_db
	.comm	_seq_get_num_entries_db,4,2     ; @seq_get_num_entries_db
	.comm	_seq_close_db,4,2               ; @seq_close_db
	.no_dead_strip	_seq_open_db
.subsections_via_symbols
