	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function md5_doc_idx_lookup
_md5_doc_idx_lookup:                    ## @md5_doc_idx_lookup
	.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	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %r14d
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.1:
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	$-1, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, %r14d
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r14d, %eax
	subl	%ebx, %eax
	cmpl	$1, %eax
	jle	LBB0_6
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rbx,%r14), %r15d
	sarl	%r15d
	movl	%r15d, %eax
	shll	$4, %eax
	movslq	%eax, %rdi
	addq	16(%r12), %rdi
	movq	%r13, %rsi
	movl	$16, %edx
	callq	_memcmp
	testq	%rax, %rax
	jg	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, %ebx
	jmp	LBB0_3
LBB0_6:
	testl	%ebx, %ebx
	js	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	shll	$4, %eax
	movslq	%eax, %rdi
	addq	16(%r12), %rdi
	movq	%r13, %rsi
	movl	$16, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_11
LBB0_8:
	movq	_STORAGE_ERR_DOC_NOT_FOUND@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	8(%r12), %rax
	movl	%ebx, %ecx
	movq	(%rax,%rcx,8), %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorq	%rax, %rdx
	movq	_STORAGE_SECRET_MASK@GOTPCREL(%rip), %rcx
	testq	%rdx, (%rcx)
	je	LBB0_13
## %bb.12:
	movq	_STORAGE_ERR_WRONG_SECRET@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_13:
	movq	_FILE_OFFSET_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_STORAGE_ERR_DOC_NOT_FOUND,4,2  ## @STORAGE_ERR_DOC_NOT_FOUND
	.comm	_STORAGE_SECRET_MASK,8,3        ## @STORAGE_SECRET_MASK
	.comm	_STORAGE_ERR_WRONG_SECRET,4,2   ## @STORAGE_ERR_WRONG_SECRET
	.comm	_FILE_OFFSET_MASK,8,3           ## @FILE_OFFSET_MASK
	.no_dead_strip	_md5_doc_idx_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function md5_doc_idx_lookup
_md5_doc_idx_lookup:                    ; @md5_doc_idx_lookup
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w24, [x0]
	cmp	w24, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	mov	w23, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w23, w24
	asr	w25, w8, #1
	ldr	x8, [x21, #16]
	lsl	w9, w25, #4
	add	x0, x8, w9, sxtw
	mov	x1, x22
	mov	w2, #16
	bl	_memcmp
	cmp	x0, #1
	csel	w24, w24, w25, lt
	csel	w23, w25, w23, lt
	sub	w8, w24, w23
	cmp	w8, #1
	b.gt	LBB0_2
; %bb.3:
	tbnz	w23, #31, LBB0_5
; %bb.4:
	ldr	x8, [x21, #16]
	lsl	w9, w23, #4
	add	x0, x8, w9, sxtw
	mov	x1, x22
	mov	w2, #16
	bl	_memcmp
	cbz	x0, LBB0_8
LBB0_5:
Lloh0:
	adrp	x8, _STORAGE_ERR_DOC_NOT_FOUND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STORAGE_ERR_DOC_NOT_FOUND@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
LBB0_7:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	x8, [x21, #8]
	ldr	x8, [x8, w23, uxtw #3]
	eor	x9, x8, x20
Lloh2:
	adrp	x10, _STORAGE_SECRET_MASK@GOTPAGE
Lloh3:
	ldr	x10, [x10, _STORAGE_SECRET_MASK@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	tst	x9, x10
	b.eq	LBB0_10
; %bb.9:
Lloh5:
	adrp	x8, _STORAGE_ERR_WRONG_SECRET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STORAGE_ERR_WRONG_SECRET@GOTPAGEOFF]
	b	LBB0_6
LBB0_10:
	mov	w0, #0
Lloh7:
	adrp	x9, _FILE_OFFSET_MASK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FILE_OFFSET_MASK@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	and	x8, x9, x8
	str	x8, [x19]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_STORAGE_ERR_DOC_NOT_FOUND,4,2  ; @STORAGE_ERR_DOC_NOT_FOUND
	.comm	_STORAGE_SECRET_MASK,8,3        ; @STORAGE_SECRET_MASK
	.comm	_STORAGE_ERR_WRONG_SECRET,4,2   ; @STORAGE_ERR_WRONG_SECRET
	.comm	_FILE_OFFSET_MASK,8,3           ; @FILE_OFFSET_MASK
	.no_dead_strip	_md5_doc_idx_lookup
.subsections_via_symbols
