	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __func_name_from_ord
___func_name_from_ord:                  ## @__func_name_from_ord
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_R2_SDB_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str.2(%rip), %rcx
	callq	_R_JOIN_4_PATHS
	movslq	%eax, %rbx
	xorl	%edi, %edi
	callq	_r_sys_prefix
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_r_str_newf
	movq	%rax, %rbx
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_r_str_newf
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_r_file_exists
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	xorl	%edi, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sdb_new
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_sdb_get
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_free
	movq	%rbx, %r14
LBB0_3:
	movq	%r15, %rdi
	callq	_sdb_close
	movq	%r15, %rdi
	callq	_free
LBB0_4:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_R2_SDB_FORMAT,4,2              ## @R2_SDB_FORMAT
L_.str.1:                               ## @.str.1
	.asciz	"dll"

L_.str.2:                               ## @.str.2
	.asciz	"%s.sdb"

L_.str.3:                               ## @.str.3
	.asciz	"%d"

	.no_dead_strip	___func_name_from_ord
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __func_name_from_ord
___func_name_from_ord:                  ; @__func_name_from_ord
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _R2_SDB_FORMAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R2_SDB_FORMAT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh7:
	adrp	x3, l_.str.2@PAGE
Lloh8:
	add	x3, x3, l_.str.2@PAGEOFF
	bl	_R_JOIN_4_PATHS
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x21, w0
	mov	x0, #0
	bl	_r_sys_prefix
	mov	x1, x0
	str	x20, [sp]
	mov	x0, x21
	bl	_r_str_newf
	mov	x20, x0
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_r_str_newf
	mov	x19, x0
	mov	x0, x20
	bl	_r_file_exists
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, #0
	mov	x1, x20
	mov	w2, #0
	bl	_sdb_new
	mov	x20, x0
	mov	x1, x19
	mov	x2, #0
	bl	_sdb_get
	cbz	x0, LBB0_3
; %bb.2:
	mov	x21, x0
	mov	x0, x19
	bl	_free
	mov	x19, x21
LBB0_3:
	mov	x0, x20
	bl	_sdb_close
	mov	x0, x20
	bl	_free
LBB0_4:
	mov	x0, x19
	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	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_R2_SDB_FORMAT,4,2              ; @R2_SDB_FORMAT
l_.str.1:                               ; @.str.1
	.asciz	"dll"

l_.str.2:                               ; @.str.2
	.asciz	"%s.sdb"

l_.str.3:                               ; @.str.3
	.asciz	"%d"

	.no_dead_strip	___func_name_from_ord
.subsections_via_symbols
