	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__kadm5_c_init_context          ## -- Begin function _kadm5_c_init_context
	.p2align	4, 0x90
__kadm5_c_init_context:                 ## @_kadm5_c_init_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	%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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	$32, %edi
	callq	_malloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_initialize_kadm5_error_table_r@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_krb5_add_et_list
	movq	(%r12), %rdi
	callq	_set_funcs
	movq	(%r12), %rbx
	movl	%r14d, 24(%rbx)
	movl	(%r15), %r13d
	movq	_KADM5_CONFIG_REALM@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_5
## %bb.3:
	movq	8(%r15), %rdi
	callq	_strdup
	movq	%rax, 16(%rbx)
	movq	(%r12), %rax
	cmpq	$0, 16(%rax)
	jne	LBB0_8
## %bb.4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	jne	LBB0_15
	jmp	LBB0_7
LBB0_5:
	addq	$16, %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_krb5_get_default_realm
	movq	%rax, %rbx
	testq	%rbx, %rbx
	jne	LBB0_15
LBB0_7:
	movl	(%r15), %r13d
LBB0_8:
	movq	_KADM5_CONFIG_ADMIN_SERVER@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_12
## %bb.9:
	movq	16(%r15), %rdi
	callq	_strdup
	movq	(%r12), %rcx
	movq	%rax, 8(%rcx)
LBB0_10:
	movq	(%r12), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.16:
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	%rax, %rdi
	incq	%rdi
	movb	$0, (%rax)
	jmp	LBB0_19
LBB0_12:
	movq	(%r12), %rsi
	addq	$16, %rsi
	leaq	-48(%rbp), %rdx
	movl	%r14d, %edi
	callq	_krb5_get_krb_admin_hst
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, %rbx
	movq	(%r12), %rax
	movq	16(%rax), %rdi
	callq	_free
LBB0_15:
	movq	(%r12), %rdi
	callq	_free
	jmp	LBB0_26
LBB0_11:
	movq	16(%rax), %rdi
	callq	_free
	movq	(%r12), %rdi
	callq	_free
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_26
LBB0_17:
	xorl	%edi, %edi
LBB0_19:
	movq	(%r12), %rcx
	movq	$0, (%rcx)
	movq	_KADM5_CONFIG_KADMIND_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_21
## %bb.20:
	movq	24(%r15), %rax
	jmp	LBB0_23
LBB0_21:
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.22:
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	callq	_strtol
	movl	%eax, %edi
	callq	_htons
	movq	(%r12), %rcx
LBB0_23:
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_25
LBB0_24:
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movl	%r14d, %edi
	movl	$749, %ecx                      ## imm = 0x2ED
	callq	_krb5_getportbyname
	movq	(%r12), %rcx
	movq	%rax, (%rcx)
LBB0_25:
	xorl	%ebx, %ebx
LBB0_26:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	-48(%rbp), %rbx
	movq	(%rbx), %rdi
	callq	_strdup
	movq	(%r12), %rcx
	movq	%rax, 8(%rcx)
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_krb5_free_krbhst
	jmp	LBB0_10
	.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
	.comm	_KADM5_CONFIG_ADMIN_SERVER,4,2  ## @KADM5_CONFIG_ADMIN_SERVER
	.comm	_KADM5_CONFIG_KADMIND_PORT,4,2  ## @KADM5_CONFIG_KADMIND_PORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kerberos-adm"

L_.str.1:                               ## @.str.1
	.asciz	"tcp"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__kadm5_c_init_context          ; -- Begin function _kadm5_c_init_context
	.p2align	2
__kadm5_c_init_context:                 ; @_kadm5_c_init_context
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	w0, #32
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_17
; %bb.1:
	mov	w1, #0
	mov	w2, #32
	bl	_memset
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, x20
	bl	_krb5_add_et_list
	ldr	x0, [x19]
	bl	_set_funcs
	ldr	x23, [x19]
	str	w20, [x23, #24]
	ldr	w22, [x21]
Lloh3:
	adrp	x8, _KADM5_CONFIG_REALM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KADM5_CONFIG_REALM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_4
; %bb.2:
	ldr	x0, [x21, #8]
	bl	_strdup
	str	x0, [x23, #16]
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_6
; %bb.3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	x22, [x8]
	cbnz	x22, LBB0_15
	b	LBB0_5
LBB0_4:
	add	x1, x23, #16
	mov	x0, x20
	bl	_krb5_get_default_realm
	mov	x22, x0
	cbnz	x22, LBB0_15
LBB0_5:
	ldr	w22, [x21]
LBB0_6:
Lloh9:
	adrp	x8, _KADM5_CONFIG_ADMIN_SERVER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KADM5_CONFIG_ADMIN_SERVER@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_13
; %bb.7:
	ldr	x0, [x21, #16]
	bl	_strdup
	ldr	x8, [x19]
	str	x0, [x8, #8]
LBB0_8:
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_16
; %bb.9:
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_11
; %bb.10:
	strb	wzr, [x0], #1
LBB0_11:
	ldr	x8, [x19]
	str	xzr, [x8]
	ldr	w9, [x21]
Lloh12:
	adrp	x10, _KADM5_CONFIG_KADMIND_PORT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _KADM5_CONFIG_KADMIND_PORT@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_19
; %bb.12:
	ldr	x0, [x21, #24]
	str	x0, [x8]
	cbnz	x0, LBB0_21
	b	LBB0_22
LBB0_13:
	ldr	x8, [x19]
	add	x1, x8, #16
	add	x2, sp, #8
	mov	x0, x20
	bl	_krb5_get_krb_admin_hst
	cbz	x0, LBB0_23
; %bb.14:
	mov	x22, x0
	ldr	x8, [x19]
	ldr	x0, [x8, #16]
	bl	_free
LBB0_15:
	ldr	x0, [x19]
	bl	_free
	b	LBB0_18
LBB0_16:
	ldr	x0, [x8, #16]
	bl	_free
	ldr	x0, [x19]
	bl	_free
LBB0_17:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	x22, [x8]
LBB0_18:
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_19:
	cbz	x0, LBB0_22
; %bb.20:
	add	x1, sp, #8
	mov	w2, #0
	bl	_strtol
	bl	_htons
	ldr	x8, [x19]
	str	x0, [x8]
	cbz	x0, LBB0_22
LBB0_21:
	mov	x22, #0
	b	LBB0_18
LBB0_22:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
Lloh20:
	adrp	x2, l_.str.1@PAGE
Lloh21:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w3, #749
	bl	_krb5_getportbyname
	mov	x22, #0
	ldr	x8, [x19]
	str	x0, [x8]
	b	LBB0_18
LBB0_23:
	ldr	x22, [sp, #8]
	ldr	x0, [x22]
	bl	_strdup
	ldr	x8, [x19]
	str	x0, [x8, #8]
	mov	x0, x20
	mov	x1, x22
	bl	_krb5_free_krbhst
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.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
	.comm	_KADM5_CONFIG_ADMIN_SERVER,4,2  ; @KADM5_CONFIG_ADMIN_SERVER
	.comm	_KADM5_CONFIG_KADMIND_PORT,4,2  ; @KADM5_CONFIG_KADMIND_PORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kerberos-adm"

l_.str.1:                               ; @.str.1
	.asciz	"tcp"

.subsections_via_symbols
