	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kadm5_ad_init_with_password_ctx ## -- Begin function kadm5_ad_init_with_password_ctx
	.p2align	4, 0x90
_kadm5_ad_init_with_password_ctx:       ## @kadm5_ad_init_with_password_ctx
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movl	%edi, %r12d
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%r14, %rdi
	callq	_set_funcs
	movl	%r12d, 16(%r14)
	movq	_initialize_kadm5_error_table_r@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_krb5_add_et_list
	movl	16(%r14), %edi
	leaq	20(%r14), %rdx
	movq	%r15, %rsi
	callq	_krb5_parse_name
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r12
LBB0_9:
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_17
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_17:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_KADM5_CONFIG_REALM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_7
## %bb.5:
	movq	8(%r13), %rdi
	callq	_strdup
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	testq	%r12, %r12
	jne	LBB0_9
	jmp	LBB0_10
LBB0_7:
	movl	16(%r14), %edi
	movq	%r14, %rsi
	addq	$8, %rsi
	callq	_krb5_get_default_realm
	movq	%rax, %r12
	testq	%r12, %r12
	jne	LBB0_9
LBB0_10:
	movq	%r15, %rdi
	callq	_strdup
	movq	%rax, (%r14)
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.11:
	cmpb	$0, (%rbx)
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	jmp	LBB0_14
LBB0_13:
	movq	%r14, %rdi
	xorl	%esi, %esi
LBB0_14:
	callq	_ad_get_cred
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	callq	_kadm5_ad_destroy
	jmp	LBB0_17
LBB0_16:
	movq	24(%rbp), %rax
	movq	%r14, (%rax)
	xorl	%r12d, %r12d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_initialize_kadm5_error_table_r,4,2 ## @initialize_kadm5_error_table_r
	.comm	_KADM5_CONFIG_REALM,4,2         ## @KADM5_CONFIG_REALM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kadm5_ad_init_with_password_ctx ; -- Begin function kadm5_ad_init_with_password_ctx
	.p2align	2
_kadm5_ad_init_with_password_ctx:       ; @kadm5_ad_init_with_password_ctx
	.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
	mov	x19, x7
	mov	x24, x4
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	w0, #24
	bl	_malloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	mov	x0, x20
	bl	_set_funcs
	str	w23, [x20, #16]
Lloh0:
	adrp	x8, _initialize_kadm5_error_table_r@GOTPAGE
Lloh1:
	ldr	x8, [x8, _initialize_kadm5_error_table_r@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_krb5_add_et_list
	ldr	w0, [x20, #16]
	add	x2, x20, #20
	mov	x1, x22
	bl	_krb5_parse_name
	cbz	x0, LBB0_6
; %bb.2:
	mov	x23, x0
LBB0_3:
	mov	x0, x20
	bl	_free
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	x23, [x8]
LBB0_5:
	mov	x0, x23
	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_6:
	ldr	w8, [x24]
Lloh6:
	adrp	x9, _KADM5_CONFIG_REALM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _KADM5_CONFIG_REALM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
	ldr	x0, [x24, #8]
	bl	_strdup
	str	x0, [x20, #8]
	cbnz	x0, LBB0_10
; %bb.8:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	x23, [x8]
	cbnz	x23, LBB0_3
	b	LBB0_10
LBB0_9:
	ldr	w0, [x20, #16]
	add	x1, x20, #8
	bl	_krb5_get_default_realm
	mov	x23, x0
	cbnz	x23, LBB0_3
LBB0_10:
	mov	x0, x22
	bl	_strdup
	str	x0, [x20]
	cbz	x21, LBB0_13
; %bb.11:
	ldrb	w8, [x21]
	cbz	w8, LBB0_13
; %bb.12:
	mov	x0, x20
	mov	x1, x21
	b	LBB0_14
LBB0_13:
	mov	x0, x20
	mov	x1, #0
LBB0_14:
	bl	_ad_get_cred
	mov	x23, x0
	cbz	x0, LBB0_16
; %bb.15:
	mov	x0, x20
	bl	_kadm5_ad_destroy
	b	LBB0_5
LBB0_16:
	str	x20, [x19]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_initialize_kadm5_error_table_r,4,2 ; @initialize_kadm5_error_table_r
	.comm	_KADM5_CONFIG_REALM,4,2         ; @KADM5_CONFIG_REALM
.subsections_via_symbols
