	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_index                     ## -- Begin function load_index
	.p2align	4, 0x90
_load_index:                            ## @load_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_BIO_new_file
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	-72(%rbp), %rsi
	movq	%r12, %rdi
	callq	_BIO_get_fp
	movq	-72(%rbp), %rdi
	callq	_fileno
	leaq	-56(%rbp), %rsi
	movl	%eax, %edi
	callq	_fstat
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	_DB_NUMBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_TXT_DB_read
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	leaq	L_.str.3(%rip), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r14, %rcx
	callq	_BIO_snprintf
	movq	%r13, %rdi
	callq	_app_load_config_quiet
	movq	%rax, %r13
	leaq	L_.str.4(%rip), %rsi
	movl	$24, %edi
	callq	_app_malloc
	movq	%rax, %rbx
	movq	%r15, 16(%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_3:
	movq	_SYS_F_FSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SYSerr
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rcx
	movl	$3, %edi
	movq	%r14, %rdx
	callq	_ERR_add_error_data
LBB0_1:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERR_print_errors
LBB0_5:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_7:
	movl	$1, %eax
LBB0_9:
	movl	%eax, 8(%rbx)
	testq	%r13, %r13
	je	LBB0_12
## %bb.10:
	leaq	L_.str.5(%rip), %rdx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_NCONF_get_string
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_parse_yesno
	movl	%eax, 8(%rbx)
LBB0_12:
	movq	%r14, %rdi
	callq	_OPENSSL_strdup
	movl	%eax, 4(%rbx)
	movl	-56(%rbp), %eax
	movl	%eax, (%rbx)
LBB0_13:
	movq	%r13, %rdi
	callq	_NCONF_free
	xorl	%edi, %edi
	callq	_TXT_DB_free
	movq	%r12, %rdi
	callq	_BIO_free_all
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BSIZE,4,2                      ## @BSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_bio_err,4,2                    ## @bio_err
	.comm	_SYS_F_FSTAT,4,2                ## @SYS_F_FSTAT
	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"fstat('"

L_.str.2:                               ## @.str.2
	.asciz	"')"

	.comm	_DB_NUMBER,4,2                  ## @DB_NUMBER
L_.str.3:                               ## @.str.3
	.asciz	"%s.attr"

L_.str.4:                               ## @.str.4
	.asciz	"new DB"

L_.str.5:                               ## @.str.5
	.asciz	"unique_subject"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_index                     ; -- Begin function load_index
	.p2align	2
_load_index:                            ; @load_index
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #32
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _BSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_BIO_new_file
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	sub	x1, x29, #64
	mov	x0, x19
	bl	_BIO_get_fp
	ldur	x0, [x29, #-64]
	bl	_fileno
	sub	x1, x29, #72
	bl	_fstat
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.2:
Lloh10:
	adrp	x8, _DB_NUMBER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DB_NUMBER@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_TXT_DB_read
	cbz	x0, LBB0_7
; %bb.3:
	mov	x24, x0
Lloh13:
	adrp	x2, l_.str.3@PAGE
Lloh14:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x23
	mov	x1, x22
	mov	x3, x20
	bl	_BIO_snprintf
	mov	x0, x23
	bl	_app_load_config_quiet
	mov	x23, x0
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #24
	bl	_app_malloc
	mov	x22, x0
	str	x24, [x0, #16]
	cbz	x21, LBB0_8
; %bb.4:
	ldr	w8, [x21]
	str	w8, [x22, #8]
	cbnz	x23, LBB0_9
	b	LBB0_11
LBB0_5:
Lloh17:
	adrp	x8, _SYS_F_FSTAT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SYS_F_FSTAT@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_SYSerr
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh25:
	adrp	x3, l_.str.2@PAGE
Lloh26:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w0, #3
	mov	x2, x20
	bl	_ERR_add_error_data
LBB0_6:
Lloh27:
	adrp	x8, _bio_err@GOTPAGE
Lloh28:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_ERR_print_errors
LBB0_7:
	mov	x23, #0
	mov	x22, #0
	b	LBB0_12
LBB0_8:
	mov	w8, #1
	str	w8, [x22, #8]
	cbz	x23, LBB0_11
LBB0_9:
Lloh30:
	adrp	x2, l_.str.5@PAGE
Lloh31:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x23
	mov	x1, #0
	bl	_NCONF_get_string
	cbz	x0, LBB0_11
; %bb.10:
	mov	w1, #1
	bl	_parse_yesno
	str	w0, [x22, #8]
LBB0_11:
	mov	x0, x20
	bl	_OPENSSL_strdup
	ldur	w8, [x29, #-72]
	stp	w8, w0, [x22]
LBB0_12:
	mov	x0, x23
	bl	_NCONF_free
	mov	x0, #0
	bl	_TXT_DB_free
	mov	x0, x19
	bl	_BIO_free_all
	ldur	x8, [x29, #-56]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x22
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_BSIZE,4,2                      ; @BSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_bio_err,4,2                    ; @bio_err
	.comm	_SYS_F_FSTAT,4,2                ; @SYS_F_FSTAT
	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"fstat('"

l_.str.2:                               ; @.str.2
	.asciz	"')"

	.comm	_DB_NUMBER,4,2                  ; @DB_NUMBER
l_.str.3:                               ; @.str.3
	.asciz	"%s.attr"

l_.str.4:                               ; @.str.4
	.asciz	"new DB"

l_.str.5:                               ; @.str.5
	.asciz	"unique_subject"

.subsections_via_symbols
