	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_kadmin_context
_get_kadmin_context:                    ## @get_kadmin_context
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	testq	%rdi, %rdi
	jne	LBB0_3
## %bb.1:
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_hdb_db_dir
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdi
	movl	%eax, %edx
	callq	_asprintf
	movq	-40(%rbp), %rdi
	testq	%rdi, %rdi
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	movq	-40(%rbp), %rdi
LBB0_3:
	leaq	-48(%rbp), %rsi
	callq	_krb5_prepend_config_files_default
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_context@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.2(%rip), %rcx
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_5:
	movq	_context@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	-48(%rbp), %rsi
	callq	_krb5_set_config_files
	movq	%rax, %rbx
	movq	-48(%rbp), %rdi
	callq	_krb5_free_config_files
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.6:
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rcx
	movl	$1, %esi
	movq	%rbx, %rdx
	callq	_krb5_err
LBB0_7:
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:
	movq	_KADM5_CONFIG_REALM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -32(%rbp)
	movq	%r14, -40(%rbp)
LBB0_9:
	movl	(%r15), %edi
	movq	_KADM5_ADMIN_SERVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %rax
	leaq	-40(%rbp), %r8
	movl	%ecx, %esi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	callq	_kadm5_init_with_password_ctx
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	(%r15), %edi
	leaq	L_.str.4(%rip), %rcx
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_11:
	movq	-56(%rbp), %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/kdc.conf"

	.comm	_context,4,2                    ## @context
L_.str.1:                               ## @.str.1
	.asciz	"out of memory"

L_.str.2:                               ## @.str.2
	.asciz	"getting configuration files"

L_.str.3:                               ## @.str.3
	.asciz	"reading configuration files"

	.comm	_KADM5_CONFIG_REALM,4,2         ## @KADM5_CONFIG_REALM
	.comm	_KADM5_ADMIN_SERVICE,4,2        ## @KADM5_ADMIN_SERVICE
L_.str.4:                               ## @.str.4
	.asciz	"kadm5_init_with_password_ctx"

	.no_dead_strip	_get_kadmin_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_kadmin_context
_get_kadmin_context:                    ; @get_kadmin_context
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
Lloh0:
	adrp	x21, _context@GOTPAGE
Lloh1:
	ldr	x21, [x21, _context@GOTPAGEOFF]
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x21]
	bl	_hdb_db_dir
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #16
	bl	_asprintf
	ldr	x0, [sp, #16]
	cbnz	x0, LBB0_3
; %bb.2:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x0, [sp, #16]
LBB0_3:
	mov	x1, sp
	bl	_krb5_prepend_config_files_default
	cbz	x0, LBB0_5
; %bb.4:
	mov	x2, x0
	ldr	w0, [x21]
Lloh6:
	adrp	x3, l_.str.2@PAGE
Lloh7:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w1, #1
	bl	_krb5_err
LBB0_5:
	ldr	w0, [x21]
	ldr	x1, [sp]
	bl	_krb5_set_config_files
	mov	x20, x0
	ldr	x0, [sp]
	bl	_krb5_free_config_files
	cbz	x20, LBB0_7
; %bb.6:
	ldr	w0, [x21]
Lloh8:
	adrp	x3, l_.str.3@PAGE
Lloh9:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	w1, #1
	mov	x2, x20
	bl	_krb5_err
LBB0_7:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	cbz	x19, LBB0_9
; %bb.8:
Lloh10:
	adrp	x8, _KADM5_CONFIG_REALM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _KADM5_CONFIG_REALM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [sp, #24]
	orr	w8, w9, w8
	str	w8, [sp, #24]
	str	x19, [sp, #16]
LBB0_9:
	ldr	w0, [x21]
Lloh13:
	adrp	x8, _KADM5_ADMIN_SERVICE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KADM5_ADMIN_SERVICE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x4, sp, #16
	add	x7, sp, #8
	mov	x2, #0
	mov	x3, x1
	mov	w5, #0
	mov	w6, #0
	bl	_kadm5_init_with_password_ctx
	cbz	x0, LBB0_11
; %bb.10:
	mov	x2, x0
	ldr	w0, [x21]
Lloh16:
	adrp	x3, l_.str.4@PAGE
Lloh17:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	w1, #1
	bl	_krb5_err
LBB0_11:
	ldr	x0, [sp, #8]
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/kdc.conf"

	.comm	_context,4,2                    ; @context
l_.str.1:                               ; @.str.1
	.asciz	"out of memory"

l_.str.2:                               ; @.str.2
	.asciz	"getting configuration files"

l_.str.3:                               ; @.str.3
	.asciz	"reading configuration files"

	.comm	_KADM5_CONFIG_REALM,4,2         ; @KADM5_CONFIG_REALM
	.comm	_KADM5_ADMIN_SERVICE,4,2        ; @KADM5_ADMIN_SERVICE
l_.str.4:                               ; @.str.4
	.asciz	"kadm5_init_with_password_ctx"

	.no_dead_strip	_get_kadmin_context
.subsections_via_symbols
