	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_db_spec
_find_db_spec:                          ## @find_db_spec
	.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	%rdi, %r12
	movl	48(%rdi), %r14d
	leaq	16(%rdi), %r15
	cmpq	$0, 40(%rdi)
	je	LBB0_15
## %bb.1:
	leaq	-40(%rbp), %rsi
	movl	%r14d, %edi
	callq	_hdb_get_dbinfo
	testq	%rax, %rax
	jne	LBB0_24
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-40(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_hdb_dbinfo_get_next
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_hdb_dbinfo_get_realm
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	40(%r12), %rdi
	movq	%rax, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_3
LBB0_6:
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_hdb_dbinfo_get_dbname
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %rdi
	callq	_strdup
	movq	%rax, 32(%r12)
LBB0_8:
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_hdb_dbinfo_get_acl_file
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, %rdi
	callq	_strdup
	movq	%rax, 24(%r12)
LBB0_10:
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_hdb_dbinfo_get_mkey_file
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rax, %rdi
	callq	_strdup
	movq	%rax, (%r15)
LBB0_12:
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_hdb_dbinfo_get_log_file
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%rax, %rdi
	callq	_strdup
	movq	%rax, 8(%r12)
LBB0_14:
	leaq	-40(%rbp), %rsi
	movl	%r14d, %edi
	callq	_hdb_free_dbinfo
LBB0_15:
	cmpq	$0, 32(%r12)
	je	LBB0_16
## %bb.17:
	cmpq	$0, 24(%r12)
	je	LBB0_18
LBB0_19:
	cmpq	$0, (%r15)
	je	LBB0_20
LBB0_21:
	cmpq	$0, 8(%r12)
	je	LBB0_22
LBB0_23:
	addq	$4, %r12
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_set_socket_name
	xorl	%eax, %eax
LBB0_24:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	%r14d, %edi
	callq	_hdb_default_db
	movq	%rax, %rdi
	callq	_strdup
	movq	%rax, 32(%r12)
	cmpq	$0, 24(%r12)
	jne	LBB0_19
LBB0_18:
	leaq	24(%r12), %rbx
	movl	%r14d, %edi
	callq	_hdb_db_dir
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_asprintf
	cmpq	$0, (%r15)
	jne	LBB0_21
LBB0_20:
	movl	%r14d, %edi
	callq	_hdb_db_dir
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_asprintf
	cmpq	$0, 8(%r12)
	jne	LBB0_23
LBB0_22:
	leaq	8(%r12), %rbx
	movl	%r14d, %edi
	callq	_hdb_db_dir
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_asprintf
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/kadmind.acl"

L_.str.1:                               ## @.str.1
	.asciz	"%s/m-key"

L_.str.2:                               ## @.str.2
	.asciz	"%s/log"

	.no_dead_strip	_find_db_spec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_db_spec
_find_db_spec:                          ; @find_db_spec
	.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	x20, x0
	ldr	w19, [x0, #48]
	add	x21, x0, #16
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_15
; %bb.1:
	add	x1, sp, #8
	mov	x0, x19
	bl	_hdb_get_dbinfo
	cbnz	x0, LBB0_22
; %bb.2:
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #8]
	mov	x1, x22
	bl	_hdb_dbinfo_get_next
	cbz	x0, LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_hdb_dbinfo_get_realm
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x0
	ldr	x0, [x20, #40]
	bl	_strcmp
	cbnz	x0, LBB0_3
LBB0_6:
	mov	x0, x19
	mov	x1, x22
	bl	_hdb_dbinfo_get_dbname
	cbz	x0, LBB0_8
; %bb.7:
	bl	_strdup
	str	x0, [x20, #32]
LBB0_8:
	mov	x0, x19
	mov	x1, x22
	bl	_hdb_dbinfo_get_acl_file
	cbz	x0, LBB0_10
; %bb.9:
	bl	_strdup
	str	x0, [x20, #24]
LBB0_10:
	mov	x0, x19
	mov	x1, x22
	bl	_hdb_dbinfo_get_mkey_file
	cbz	x0, LBB0_12
; %bb.11:
	bl	_strdup
	str	x0, [x21]
LBB0_12:
	mov	x0, x19
	mov	x1, x22
	bl	_hdb_dbinfo_get_log_file
	cbz	x0, LBB0_14
; %bb.13:
	bl	_strdup
	str	x0, [x20, #8]
LBB0_14:
	add	x1, sp, #8
	mov	x0, x19
	bl	_hdb_free_dbinfo
LBB0_15:
	ldr	x8, [x20, #32]
	cbnz	x8, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_hdb_default_db
	bl	_strdup
	str	x0, [x20, #32]
LBB0_17:
	mov	x22, x20
	ldr	x8, [x22, #24]!
	cbz	x8, LBB0_23
; %bb.18:
	ldr	x8, [x21]
	cbz	x8, LBB0_24
LBB0_19:
	mov	x21, x20
	ldr	x8, [x21, #8]!
	cbnz	x8, LBB0_21
; %bb.20:
	mov	x0, x19
	bl	_hdb_db_dir
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_asprintf
LBB0_21:
	add	x1, x20, #4
	mov	x0, x19
	bl	_set_socket_name
	mov	x0, #0
LBB0_22:
	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
LBB0_23:
	mov	x0, x19
	bl	_hdb_db_dir
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_asprintf
	ldr	x8, [x21]
	cbnz	x8, LBB0_19
LBB0_24:
	mov	x0, x19
	bl	_hdb_db_dir
	mov	x2, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_asprintf
	b	LBB0_19
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/kadmind.acl"

l_.str.1:                               ; @.str.1
	.asciz	"%s/m-key"

l_.str.2:                               ; @.str.2
	.asciz	"%s/log"

	.no_dead_strip	_find_db_spec
.subsections_via_symbols
