	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_kadmin_connection
_open_kadmin_connection:                ## @open_kadmin_connection
	.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
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	_open_kadmin_connection.conf(%rip), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_strdup
	movq	%rax, _open_kadmin_connection.conf+8(%rip)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_KADM5_CONFIG_REALM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, _open_kadmin_connection.conf+16(%rip)
LBB0_4:
	testq	%r12, %r12
	je	LBB0_6
## %bb.5:
	movq	%r12, _open_kadmin_connection.conf(%rip)
	movq	_KADM5_CONFIG_ADMIN_SERVER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, _open_kadmin_connection.conf+16(%rip)
LBB0_6:
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.7:
	movl	%r15d, %edi
	callq	_htons
	movl	%eax, _open_kadmin_connection.conf+20(%rip)
	movq	_KADM5_CONFIG_KADMIND_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, _open_kadmin_connection.conf+16(%rip)
LBB0_8:
	movq	_context@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_KADM5_ADMIN_SERVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-40(%rbp), %rax
	leaq	_open_kadmin_connection.conf(%rip), %r8
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	callq	_kadm5_init_with_password_ctx
	addq	$16, %rsp
	movq	%rax, %rbx
	movq	_open_kadmin_connection.conf+8(%rip), %rdi
	callq	_free
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.9:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rsi
	callq	_krb5_warn
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_10:
	movq	-40(%rbp), %rbx
	jmp	LBB0_11
LBB0_2:
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_krb5_set_error_message
LBB0_11:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_open_kadmin_connection.conf,24,3 ## @open_kadmin_connection.conf
	.comm	_context,4,2                    ## @context
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc: out of memory"

	.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
	.comm	_KADM5_ADMIN_SERVICE,4,2        ## @KADM5_ADMIN_SERVICE
L_.str.1:                               ## @.str.1
	.asciz	"kadm5_init_with_password"

	.no_dead_strip	_open_kadmin_connection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_kadmin_connection
_open_kadmin_connection:                ; @open_kadmin_connection
	.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	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x19, _open_kadmin_connection.conf@PAGE
Lloh1:
	add	x19, x19, _open_kadmin_connection.conf@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	cbz	x23, LBB0_3
; %bb.1:
	mov	x0, x23
	bl	_strdup
	adrp	x8, _open_kadmin_connection.conf@PAGE+8
	str	x0, [x8, _open_kadmin_connection.conf@PAGEOFF+8]
	cbz	x0, LBB0_10
; %bb.2:
Lloh2:
	adrp	x8, _KADM5_CONFIG_REALM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KADM5_CONFIG_REALM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	adrp	x9, _open_kadmin_connection.conf@PAGE+16
	ldr	w10, [x9, _open_kadmin_connection.conf@PAGEOFF+16]
	orr	w8, w10, w8
	str	w8, [x9, _open_kadmin_connection.conf@PAGEOFF+16]
LBB0_3:
	cbz	x22, LBB0_5
; %bb.4:
	str	x22, [x19]
Lloh5:
	adrp	x8, _KADM5_CONFIG_ADMIN_SERVER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KADM5_CONFIG_ADMIN_SERVER@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_5:
	cbz	w21, LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_htons
Lloh8:
	adrp	x8, _open_kadmin_connection.conf@PAGE+16
Lloh9:
	add	x8, x8, _open_kadmin_connection.conf@PAGEOFF+16
Lloh10:
	adrp	x9, _KADM5_CONFIG_KADMIND_PORT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _KADM5_CONFIG_KADMIND_PORT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	ldr	w10, [x8]
	orr	w9, w10, w9
	stp	w9, w0, [x8]
LBB0_7:
Lloh13:
	adrp	x21, _context@GOTPAGE
Lloh14:
	ldr	x21, [x21, _context@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh15:
	adrp	x8, _KADM5_ADMIN_SERVICE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _KADM5_ADMIN_SERVICE@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	add	x7, sp, #8
	mov	x1, x20
	mov	x2, #0
	mov	x4, x19
	mov	w5, #0
	mov	w6, #0
	bl	_kadm5_init_with_password_ctx
	mov	x20, x0
	ldr	x0, [x19, #8]
	bl	_free
	cbz	x20, LBB0_9
; %bb.8:
	ldr	w0, [x21]
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_krb5_warn
	b	LBB0_11
LBB0_9:
	ldr	x0, [sp, #8]
	b	LBB0_12
LBB0_10:
Lloh20:
	adrp	x8, _context@GOTPAGE
Lloh21:
	ldr	x8, [x8, _context@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x2, l_.str@PAGE
Lloh24:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #0
	bl	_krb5_set_error_message
LBB0_11:
	mov	x0, #0
LBB0_12:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_open_kadmin_connection.conf,24,3 ; @open_kadmin_connection.conf
	.comm	_context,4,2                    ; @context
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc: out of memory"

	.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
	.comm	_KADM5_ADMIN_SERVICE,4,2        ; @KADM5_ADMIN_SERVICE
l_.str.1:                               ; @.str.1
	.asciz	"kadm5_init_with_password"

	.no_dead_strip	_open_kadmin_connection
.subsections_via_symbols
