	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__citrus_db_get_entry           ## -- Begin function _citrus_db_get_entry
	.p2align	4, 0x90
__citrus_db_get_entry:                  ## @_citrus_db_get_entry
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %rsi
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	callq	__memstream_bind
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	__memstream_getregion
	movq	%rax, %r15
	movl	20(%rax), %edi
	callq	_be32toh
	testl	%ebx, %ebx
	js	LBB0_2
## %bb.1:
	cmpl	%ebx, %eax
	jle	LBB0_2
## %bb.3:
	movl	16(%r15), %edi
	callq	_be32toh
	movq	__CITRUS_DB_ENTRY_SIZE@GOTPCREL(%rip), %r15
	imull	(%r15), %ebx
	addl	%eax, %ebx
	movslq	%ebx, %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-40(%rbp), %rdi
	callq	__citrus_memory_stream_seek
	testq	%rax, %rax
	je	LBB0_4
LBB0_9:
	movq	_EFTYPE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r15), %edx
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	callq	__memstream_getregion
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rax, %r15
	movl	12(%rax), %edi
	callq	_be32toh
	movl	(%rbx), %edx
	leaq	-40(%rbp), %rdi
	movl	%eax, %esi
	callq	__memstream_seek
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:
	movl	8(%r15), %edi
	callq	_be32toh
	leaq	-40(%rbp), %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	__memstream_getregion
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	4(%r15), %edi
	callq	_be32toh
	movl	(%rbx), %edx
	leaq	-40(%rbp), %rdi
	movl	%eax, %esi
	callq	__memstream_seek
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movl	(%r15), %edi
	callq	_be32toh
	leaq	-40(%rbp), %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	__memstream_getregion
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_9
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	__CITRUS_DB_ENTRY_SIZE,4,2      ## @_CITRUS_DB_ENTRY_SIZE
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_EFTYPE,4,2                     ## @EFTYPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__citrus_db_get_entry           ; -- Begin function _citrus_db_get_entry
	.p2align	2
__citrus_db_get_entry:                  ; @_citrus_db_get_entry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x1, x0
	add	x0, sp, #8
	bl	__memstream_bind
	add	x0, sp, #8
	mov	x1, #0
	mov	w2, #24
	bl	__memstream_getregion
	mov	x22, x0
	ldr	w0, [x0, #20]
	bl	_be32toh
	tbnz	w21, #31, LBB0_4
; %bb.1:
	cmp	w0, w21
	b.le	LBB0_4
; %bb.2:
	ldr	w0, [x22, #16]
	bl	_be32toh
Lloh0:
	adrp	x23, __CITRUS_DB_ENTRY_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, __CITRUS_DB_ENTRY_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	madd	w8, w8, w21, w0
	sxtw	x1, w8
Lloh2:
	adrp	x22, _SEEK_SET@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x0, sp, #8
	bl	__citrus_memory_stream_seek
	cbz	x0, LBB0_7
LBB0_3:
Lloh4:
	adrp	x8, _EFTYPE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EFTYPE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	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
	add	sp, sp, #80
	ret
LBB0_7:
	ldr	w2, [x23]
	add	x0, sp, #8
	mov	x1, #0
	bl	__memstream_getregion
	cbz	x0, LBB0_3
; %bb.8:
	mov	x21, x0
	ldr	w0, [x0, #12]
	bl	_be32toh
	mov	x1, x0
	ldr	w2, [x22]
	add	x0, sp, #8
	bl	__memstream_seek
	cbnz	x0, LBB0_3
; %bb.9:
	ldr	w0, [x21, #8]
	bl	_be32toh
	mov	x2, x0
	add	x0, sp, #8
	mov	x1, x20
	bl	__memstream_getregion
	cbz	x0, LBB0_3
; %bb.10:
	ldr	w0, [x21, #4]
	bl	_be32toh
	mov	x1, x0
	ldr	w2, [x22]
	add	x0, sp, #8
	bl	__memstream_seek
	cbnz	x0, LBB0_3
; %bb.11:
	ldr	w0, [x21]
	bl	_be32toh
	mov	x2, x0
	add	x0, sp, #8
	mov	x1, x19
	bl	__memstream_getregion
Lloh8:
	adrp	x8, _EFTYPE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EFTYPE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, w8, wzr, eq
	b	LBB0_6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	__CITRUS_DB_ENTRY_SIZE,4,2      ; @_CITRUS_DB_ENTRY_SIZE
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_EFTYPE,4,2                     ; @EFTYPE
.subsections_via_symbols
