	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_index
_update_index:                          ## @update_index
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	_DB_NUMBER@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	leal	8(,%rax,8), %edi
	leaq	L_.str(%rip), %rsi
	callq	_app_malloc
	movq	%rax, %r15
	movslq	(%r12), %r8
	testq	%r8, %r8
	jle	LBB0_15
## %bb.1:
	movl	%r8d, %r9d
	xorl	%edx, %edx
	cmpl	$4, %r9d
	jb	LBB0_11
## %bb.2:
	movq	%r15, %rax
	subq	%rbx, %rax
	cmpq	$32, %rax
	jb	LBB0_11
## %bb.3:
	movl	%r9d, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rax
	movq	%rax, %rdi
	shrq	$2, %rdi
	incq	%rdi
	movl	%edi, %esi
	andl	$3, %esi
	cmpq	$12, %rax
	jae	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	andq	$-4, %rdi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rbx,%rax,8), %xmm0
	movups	16(%rbx,%rax,8), %xmm1
	movups	%xmm0, (%r15,%rax,8)
	movups	%xmm1, 16(%r15,%rax,8)
	movups	32(%rbx,%rax,8), %xmm0
	movups	48(%rbx,%rax,8), %xmm1
	movups	%xmm0, 32(%r15,%rax,8)
	movups	%xmm1, 48(%r15,%rax,8)
	movups	64(%rbx,%rax,8), %xmm0
	movups	80(%rbx,%rax,8), %xmm1
	movups	%xmm0, 64(%r15,%rax,8)
	movups	%xmm1, 80(%r15,%rax,8)
	movups	96(%rbx,%rax,8), %xmm0
	movups	112(%rbx,%rax,8), %xmm1
	movups	%xmm0, 96(%r15,%rax,8)
	movups	%xmm1, 112(%r15,%rax,8)
	addq	$16, %rax
	addq	$-4, %rdi
	jne	LBB0_6
LBB0_7:
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.8:
	leaq	(%r15,%rax,8), %rdi
	addq	$16, %rdi
	leaq	(%rbx,%rax,8), %rax
	addq	$16, %rax
	shlq	$5, %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movups	-16(%rax,%rcx), %xmm0
	movups	(%rax,%rcx), %xmm1
	movups	%xmm0, -16(%rdi,%rcx)
	movups	%xmm1, (%rdi,%rcx)
	addq	$32, %rcx
	cmpq	%rcx, %rsi
	jne	LBB0_9
LBB0_10:
	cmpq	%r9, %rdx
	je	LBB0_15
LBB0_11:
	movq	%rdx, %rax
	notq	%rax
	addq	%r9, %rax
	movq	%r9, %rsi
	andq	$3, %rsi
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rdx,8), %rcx
	movq	%rcx, (%r15,%rdx,8)
	incq	%rdx
	decq	%rsi
	jne	LBB0_12
LBB0_13:
	cmpq	$3, %rax
	jb	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rdx,8), %rax
	movq	%rax, (%r15,%rdx,8)
	movq	8(%rbx,%rdx,8), %rax
	movq	%rax, 8(%r15,%rdx,8)
	movq	16(%rbx,%rdx,8), %rax
	movq	%rax, 16(%r15,%rdx,8)
	movq	24(%rbx,%rdx,8), %rax
	movq	%rax, 24(%r15,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %r9
	jne	LBB0_14
LBB0_15:
	movq	$0, (%r15,%r8,8)
	movq	(%r14), %rdi
	movq	%r15, %rsi
	callq	_TXT_DB_insert
	movl	$1, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	movq	_bio_err@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BIO_printf
	movl	(%r12), %edi
	movq	(%r14), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_BIO_printf
	movq	%r15, %rdi
	callq	_OPENSSL_free
LBB0_17:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DB_NUMBER,4,2                  ## @DB_NUMBER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"row pointers"

	.comm	_bio_err,4,2                    ## @bio_err
L_.str.1:                               ## @.str.1
	.asciz	"failed to update srpvfile\n"

L_.str.2:                               ## @.str.2
	.asciz	"TXT_DB error number %ld\n"

	.no_dead_strip	_update_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_index
_update_index:                          ; @update_index
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _DB_NUMBER@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DB_NUMBER@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	w8, w8, #3
	add	w0, w8, #8
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_app_malloc
	mov	x19, x0
	ldr	w9, [x22]
	sxtw	x8, w9
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x10, #0
	cmp	w9, #8
	b.lo	LBB0_6
; %bb.2:
	sub	x11, x19, x21
	cmp	x11, #64
	b.lo	LBB0_6
; %bb.3:
	and	x10, x9, #0xfffffff8
	add	x11, x19, #32
	add	x12, x21, #32
	mov	x13, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	stp	q0, q1, [x11, #-32]
	stp	q2, q3, [x11], #64
	subs	x13, x13, #8
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x9
	b.eq	LBB0_8
LBB0_6:
	lsl	x12, x10, #3
	add	x11, x19, x12
	add	x12, x21, x12
	sub	x9, x9, x10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x12], #8
	str	x10, [x11], #8
	subs	x9, x9, #1
	b.ne	LBB0_7
LBB0_8:
	str	xzr, [x19, x8, lsl #3]
	ldr	x0, [x20]
	mov	x1, x19
	bl	_TXT_DB_insert
	cbz	w0, LBB0_10
; %bb.9:
	mov	w0, #1
	b	LBB0_11
LBB0_10:
Lloh4:
	adrp	x21, _bio_err@GOTPAGE
Lloh5:
	ldr	x21, [x21, _bio_err@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_BIO_printf
	ldr	w0, [x21]
	ldr	x8, [x20]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_BIO_printf
	mov	x0, x19
	bl	_OPENSSL_free
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DB_NUMBER,4,2                  ; @DB_NUMBER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"row pointers"

	.comm	_bio_err,4,2                    ; @bio_err
l_.str.1:                               ; @.str.1
	.asciz	"failed to update srpvfile\n"

l_.str.2:                               ; @.str.2
	.asciz	"TXT_DB error number %ld\n"

	.no_dead_strip	_update_index
.subsections_via_symbols
