	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db_exist                       ## -- Begin function db_exist
	.p2align	4, 0x90
_db_exist:                              ## @db_exist
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	_OOBLNO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rsi, %rax
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_1:
	movq	_EXM_NOFILEYET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_ex_emsg
	movb	$1, %al
	jmp	LBB0_9
LBB0_4:
	cmpq	%rax, (%rbx)
	jne	LBB0_5
## %bb.8:
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_db_get
	testl	%eax, %eax
	sete	%al
	jmp	LBB0_9
LBB0_5:
	movq	_SC_TINPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_F_ISSET
	movq	(%rbx), %r15
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%r12), %edi
	movq	__texth@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_TAILQ_LAST
	movl	(%r12), %edi
	addq	(%rax), %r15
	callq	_TAILQ_FIRST
	subq	(%rax), %r15
LBB0_7:
	cmpq	%r14, %r15
	setge	%al
LBB0_9:
	movzbl	%al, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXM_NOFILEYET,4,2              ## @EXM_NOFILEYET
	.comm	_OOBLNO,8,3                     ## @OOBLNO
	.comm	_SC_TINPUT,4,2                  ## @SC_TINPUT
	.comm	__texth,4,2                     ## @_texth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db_exist                       ; -- Begin function db_exist
	.p2align	2
_db_exist:                              ; @db_exist
	.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	x20, x0
	ldr	x21, [x0, #8]
	cbz	x21, LBB0_3
; %bb.1:
	mov	x19, x1
Lloh0:
	adrp	x8, _OOBLNO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OOBLNO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_9
LBB0_3:
Lloh3:
	adrp	x8, _EXM_NOFILEYET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EXM_NOFILEYET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, #0
	bl	_ex_emsg
	mov	w0, #1
	b	LBB0_9
LBB0_4:
	ldr	x9, [x21]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_db_get
	cmp	w0, #0
	cset	w0, eq
	b	LBB0_9
LBB0_6:
Lloh6:
	adrp	x8, _SC_TINPUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SC_TINPUT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_F_ISSET
	ldr	x21, [x21]
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w0, [x20]
Lloh9:
	adrp	x8, __texth@GOTPAGE
Lloh10:
	ldr	x8, [x8, __texth@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_TAILQ_LAST
	ldr	x22, [x0]
	ldr	w0, [x20]
	bl	_TAILQ_FIRST
	ldr	x8, [x0]
	add	x9, x22, x21
	sub	x21, x9, x8
LBB0_8:
	cmp	x21, x19
	cset	w0, ge
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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EXM_NOFILEYET,4,2              ; @EXM_NOFILEYET
	.comm	_OOBLNO,8,3                     ; @OOBLNO
	.comm	_SC_TINPUT,4,2                  ; @SC_TINPUT
	.comm	__texth,4,2                     ; @_texth
.subsections_via_symbols
