	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kadm_connect
_kadm_connect:                          ## @kadm_connect
	.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
	subq	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_rk_INVALID_SOCKET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movq	_NI_MAXSERV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	60(%r13), %r12d
	leaq	-208(%rbp), %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -196(%rbp)
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -200(%rbp)
	movl	56(%r13), %edi
	callq	_ntohs
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
	callq	_snprintf
	movq	(%r13), %rbx
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strchr
	leaq	1(%rax), %r15
	testq	%rax, %rax
	cmoveq	%rbx, %r15
	leaq	-72(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	leaq	-208(%rbp), %rdx
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%r12d, %edi
	callq	_krb5_clear_error_message
	movq	_KADM5_BAD_SERVER_NAME@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_2:
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r14
	testq	%r14, %r14
	je	LBB0_9
## %bb.3:
	leaq	L_.str.1(%rip), %r13
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	40(%r14), %r14
	testq	%r14, %r14
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r14), %edi
	movl	8(%r14), %edx
	movl	12(%r14), %esi
	callq	_socket
	movq	%rax, -80(%rbp)
	testq	%rax, %rax
	js	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movq	%rax, %rdi
	callq	_connect
	testq	%rax, %rax
	jns	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r12d, %edi
	callq	_krb5_clear_error_message
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r12d, %edi
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_krb5_warn
	movq	%rbx, %rdi
	callq	_rk_closesocket
	jmp	LBB0_4
LBB0_8:
	movq	-72(%rbp), %rdi
	jmp	LBB0_10
LBB0_9:
	xorl	%edi, %edi
LBB0_10:
	callq	_freeaddrinfo
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_krb5_clear_error_message
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movq	%r15, %rdx
	callq	_krb5_warnx
	movq	_KADM5_FAILURE@GOTPCREL(%rip), %rax
LBB0_11:
	movq	(%rax), %r15
LBB0_12:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_13:
	movq	%rbx, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_45
## %bb.14:
	movq	%r15, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movl	52(%r12), %esi
	movl	48(%r12), %edx
	movl	44(%r12), %r8d
	movl	40(%r12), %r9d
	leaq	-84(%rbp), %rax
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	xorl	%ecx, %ecx
	pushq	%rax
	pushq	16(%r12)
	callq	__kadm5_c_get_cred_cache
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	%rax, %r15
	movq	-72(%rbp), %rdi
	callq	_freeaddrinfo
	movq	%rbx, %rdi
LBB0_17:
	callq	_rk_closesocket
	jmp	LBB0_12
LBB0_18:
	movq	32(%r12), %rcx
	movq	_KADM5_ADMIN_SERVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.19:
	leaq	L_.str.3(%rip), %rsi
	leaq	-104(%rbp), %rdi
	xorl	%eax, %eax
	callq	_asprintf
	jmp	LBB0_21
LBB0_20:
	leaq	L_.str.4(%rip), %rsi
	leaq	-104(%rbp), %rdi
	xorl	%eax, %eax
	callq	_asprintf
LBB0_21:
	movq	-104(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_26
## %bb.22:
	leaq	-88(%rbp), %rdx
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_krb5_parse_name
	movq	%rax, %r15
	movq	-104(%rbp), %rdi
	callq	_free
	testq	%r15, %r15
	je	LBB0_27
## %bb.23:
	movq	-72(%rbp), %rdi
	callq	_freeaddrinfo
	cmpq	$0, 16(%r12)
	jne	LBB0_25
## %bb.24:
	movl	-84(%rbp), %esi
	movl	%ebx, %edi
	callq	_krb5_cc_close
LBB0_25:
	movq	-80(%rbp), %rdi
	jmp	LBB0_17
LBB0_26:
	movq	-72(%rbp), %rdi
	callq	_freeaddrinfo
	movq	%rbx, %rdi
	callq	_rk_closesocket
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_krb5_clear_error_message
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_27:
	leaq	24(%r12), %r13
	movq	$0, 24(%r12)
	movq	_KADMIN_APPL_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-88(%rbp), %r9d
	movl	%ebx, %edi
	movq	_AP_OPTS_MUTUAL_REQUIRED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	-84(%rbp), %edx
	subq	$64, %rsp
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rsp)
	movl	%edx, 24(%rsp)
	movups	%xmm0, 8(%rsp)
	movl	%eax, (%rsp)
	movq	$0, 48(%rsp)
	leaq	-80(%rbp), %rdx
	movq	%r13, %rsi
	xorl	%r8d, %r8d
	callq	_krb5_sendauth
	addq	$64, %rsp
	testq	%rax, %rax
	je	LBB0_32
## %bb.28:
	movq	%rax, %r15
	movq	_KRB5_SENDAUTH_BADAPPLVERS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_37
## %bb.29:
	movq	-80(%rbp), %rdi
	callq	_rk_closesocket
	movl	16(%r14), %edi
	movl	8(%r14), %edx
	movl	12(%r14), %esi
	callq	_socket
	movq	%rax, -80(%rbp)
	testq	%rax, %rax
	js	LBB0_44
## %bb.30:
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movq	%rax, %rdi
	callq	_connect
	testq	%rax, %rax
	js	LBB0_43
## %bb.31:
	movq	_KADMIN_OLD_APPL_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-88(%rbp), %r9d
	movl	(%rbx), %eax
	movl	-84(%rbp), %edx
	subq	$64, %rsp
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rsp)
	movl	%edx, 24(%rsp)
	movups	%xmm0, 8(%rsp)
	movl	%eax, (%rsp)
	movq	$0, 48(%rsp)
	leaq	-80(%rbp), %rdx
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	movq	%r13, %rsi
	xorl	%r8d, %r8d
	callq	_krb5_sendauth
	addq	$64, %rsp
	movq	%rax, %r15
	movq	-72(%rbp), %rdi
	callq	_freeaddrinfo
	testq	%r15, %r15
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_38
	jmp	LBB0_40
LBB0_32:
	leaq	-160(%rbp), %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	32(%r12), %rax
	testq	%rax, %rax
	je	LBB0_34
## %bb.33:
	movq	_KADM5_CONFIG_REALM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, -128(%rbp)
	movq	%rax, -136(%rbp)
LBB0_34:
	leaq	-160(%rbp), %rsi
	leaq	-108(%rbp), %r14
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movq	%r14, %rdx
	callq	__kadm5_marshal_params
	movq	(%r13), %rsi
	leaq	-80(%rbp), %rdx
	movl	%ebx, %edi
	movq	%r14, %rcx
	callq	_krb5_write_priv_message
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_krb5_data_free
	testq	%r15, %r15
	je	LBB0_39
## %bb.35:
	movq	-72(%rbp), %rdi
	callq	_freeaddrinfo
	movq	-80(%rbp), %rdi
	callq	_rk_closesocket
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 16(%rax)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_13
## %bb.36:
	movl	-84(%rbp), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_krb5_cc_close
	jmp	LBB0_13
LBB0_37:
	movq	-72(%rbp), %rdi
	callq	_freeaddrinfo
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_38:
	movq	-80(%rbp), %rdi
	callq	_rk_closesocket
	jmp	LBB0_13
LBB0_39:
	movq	-72(%rbp), %rdi
	callq	_freeaddrinfo
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movl	-52(%rbp), %r14d                ## 4-byte Reload
LBB0_40:
	movl	-88(%rbp), %esi
	movl	%r14d, %edi
	callq	_krb5_free_principal
	cmpq	$0, 16(%r13)
	jne	LBB0_42
## %bb.41:
	movl	-84(%rbp), %esi
	movl	%r14d, %edi
	callq	_krb5_cc_close
LBB0_42:
	movq	-80(%rbp), %rax
	movq	%rax, 8(%r13)
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_43:
	movq	-80(%rbp), %rdi
	callq	_rk_closesocket
LBB0_44:
	movq	-72(%rbp), %rdi
	callq	_freeaddrinfo
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_krb5_clear_error_message
	movq	_errno@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_45:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_rk_INVALID_SOCKET,8,3          ## @rk_INVALID_SOCKET
	.comm	_NI_MAXSERV,4,2                 ## @NI_MAXSERV
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u"

	.comm	_KADM5_BAD_SERVER_NAME,8,3      ## @KADM5_BAD_SERVER_NAME
	.comm	_errno,8,3                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"connect(%s)"

L_.str.2:                               ## @.str.2
	.asciz	"failed to contact %s"

	.comm	_KADM5_FAILURE,8,3              ## @KADM5_FAILURE
L_.str.3:                               ## @.str.3
	.asciz	"%s@%s"

	.comm	_KADM5_ADMIN_SERVICE,4,2        ## @KADM5_ADMIN_SERVICE
L_.str.4:                               ## @.str.4
	.asciz	"%s"

	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_KADMIN_APPL_VERSION,4,2        ## @KADMIN_APPL_VERSION
	.comm	_AP_OPTS_MUTUAL_REQUIRED,4,2    ## @AP_OPTS_MUTUAL_REQUIRED
	.comm	_KADM5_CONFIG_REALM,4,2         ## @KADM5_CONFIG_REALM
	.comm	_KRB5_SENDAUTH_BADAPPLVERS,8,3  ## @KRB5_SENDAUTH_BADAPPLVERS
	.comm	_KADMIN_OLD_APPL_VERSION,4,2    ## @KADMIN_OLD_APPL_VERSION
	.no_dead_strip	_kadm_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kadm_connect
_kadm_connect:                          ; @kadm_connect
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #144
	mov	x20, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _rk_INVALID_SOCKET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _rk_INVALID_SOCKET@GOTPAGEOFF]
	stur	x8, [x29, #-72]
Lloh5:
	ldr	x8, [x9]
	stur	x8, [x29, #-88]
Lloh6:
	adrp	x8, _NI_MAXSERV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NI_MAXSERV@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	mov	x9, x21
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	ldr	w19, [x0, #60]
	sub	x0, x29, #144
	mov	w1, #0
	mov	w2, #48
	bl	_memset
Lloh11:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x29, #-136]
	ldr	w0, [x20, #56]
	bl	_ntohs
	mov	x3, x0
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	mov	x1, x21
	bl	_snprintf
	ldr	x21, [x20]
	mov	x0, x21
	mov	w1, #47
	bl	_strchr
	cmp	x0, #0
	csinc	x21, x21, x0, eq
	sub	x2, x29, #144
	sub	x3, x29, #96
	mov	x0, x21
	mov	x1, x22
	bl	_getaddrinfo
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_krb5_clear_error_message
Lloh19:
	adrp	x8, _KADM5_BAD_SERVER_NAME@GOTPAGE
Lloh20:
	ldr	x8, [x8, _KADM5_BAD_SERVER_NAME@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	ldur	x26, [x29, #-96]
	cbz	x26, LBB0_9
; %bb.3:
Lloh21:
	adrp	x25, _errno@GOTPAGE
Lloh22:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
Lloh23:
	adrp	x23, l_.str.1@PAGE
Lloh24:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x26, [x26, #40]
	cbz	x26, LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w1, w0, [x26, #12]
	ldr	w2, [x26, #8]
	bl	_socket
	stur	x0, [x29, #-88]
	tbnz	x0, #63, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x0
	ldp	w2, w1, [x26]
	bl	_connect
	tbz	x0, #63, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_krb5_clear_error_message
	ldr	x1, [x25]
	mov	x0, x19
	mov	x2, x23
	mov	x3, x21
	bl	_krb5_warn
	mov	x0, x22
	bl	_rk_closesocket
	b	LBB0_4
LBB0_8:
	ldur	x0, [x29, #-96]
	b	LBB0_10
LBB0_9:
	mov	x0, #0
LBB0_10:
	bl	_freeaddrinfo
	mov	x0, x19
	bl	_krb5_clear_error_message
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_krb5_warnx
Lloh27:
	adrp	x8, _KADM5_FAILURE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _KADM5_FAILURE@GOTPAGEOFF]
LBB0_11:
	ldr	x21, [x8]
LBB0_12:
	mov	sp, x24
	ldur	x8, [x29, #-72]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_42
; %bb.13:
	mov	x0, x21
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
	ldp	w2, w1, [x20, #48]
	ldp	w5, w4, [x20, #40]
	ldr	x6, [x20, #16]
	sub	x7, x29, #80
	mov	x0, x19
	mov	x3, #0
	bl	__kadm5_c_get_cred_cache
	cbz	x0, LBB0_16
; %bb.15:
	mov	x21, x0
	ldur	x0, [x29, #-96]
	bl	_freeaddrinfo
	mov	x0, x22
	bl	_rk_closesocket
	b	LBB0_12
LBB0_16:
	ldr	x8, [x20, #32]
Lloh32:
	adrp	x9, _KADM5_ADMIN_SERVICE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _KADM5_ADMIN_SERVICE@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x9]
	cbz	x8, LBB0_18
; %bb.17:
	str	x8, [sp, #-16]!
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
	sub	x0, x29, #152
	bl	_asprintf
	add	sp, sp, #16
	b	LBB0_19
LBB0_18:
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	sub	x0, x29, #152
	bl	_asprintf
LBB0_19:
	ldur	x1, [x29, #-152]
	cbz	x1, LBB0_23
; %bb.20:
	sub	x2, x29, #76
	mov	x0, x19
	bl	_krb5_parse_name
	mov	x21, x0
	ldur	x0, [x29, #-152]
	bl	_free
	cbz	x21, LBB0_24
; %bb.21:
	ldur	x0, [x29, #-96]
	bl	_freeaddrinfo
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_35
; %bb.22:
	ldur	w1, [x29, #-80]
	mov	x0, x19
	bl	_krb5_cc_close
	b	LBB0_35
LBB0_23:
	ldur	x0, [x29, #-96]
	bl	_freeaddrinfo
	mov	x0, x22
	bl	_rk_closesocket
	mov	x0, x19
	bl	_krb5_clear_error_message
Lloh39:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_11
LBB0_24:
	mov	x22, x20
	str	xzr, [x22, #24]!
Lloh41:
	adrp	x8, _KADMIN_APPL_VERSION@GOTPAGE
Lloh42:
	ldr	x8, [x8, _KADMIN_APPL_VERSION@GOTPAGEOFF]
Lloh43:
	ldr	w3, [x8]
	ldp	w8, w5, [x29, #-80]
Lloh44:
	adrp	x23, _AP_OPTS_MUTUAL_REQUIRED@GOTPAGE
Lloh45:
	ldr	x23, [x23, _AP_OPTS_MUTUAL_REQUIRED@GOTPAGEOFF]
	ldr	w6, [x23]
	sub	sp, sp, #48
	stp	xzr, xzr, [sp, #16]
	sub	x2, x29, #88
	str	xzr, [sp, #32]
	str	w8, [sp, #8]
	str	xzr, [sp]
	mov	x0, x19
	mov	x1, x22
	mov	x4, #0
	mov	x7, #0
	bl	_krb5_sendauth
	add	sp, sp, #48
	cbz	x0, LBB0_29
; %bb.25:
	mov	x21, x0
Lloh46:
	adrp	x8, _KRB5_SENDAUTH_BADAPPLVERS@GOTPAGE
Lloh47:
	ldr	x8, [x8, _KRB5_SENDAUTH_BADAPPLVERS@GOTPAGEOFF]
Lloh48:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_34
; %bb.26:
	ldur	x0, [x29, #-88]
	bl	_rk_closesocket
	ldp	w1, w0, [x26, #12]
	ldr	w2, [x26, #8]
	bl	_socket
	stur	x0, [x29, #-88]
	tbnz	x0, #63, LBB0_41
; %bb.27:
	ldp	w2, w1, [x26]
	bl	_connect
	tbnz	x0, #63, LBB0_40
; %bb.28:
Lloh49:
	adrp	x8, _KADMIN_OLD_APPL_VERSION@GOTPAGE
Lloh50:
	ldr	x8, [x8, _KADMIN_OLD_APPL_VERSION@GOTPAGEOFF]
Lloh51:
	ldr	w3, [x8]
	ldp	w8, w5, [x29, #-80]
	ldr	w6, [x23]
	sub	sp, sp, #48
	stp	xzr, xzr, [sp, #16]
	sub	x2, x29, #88
	str	xzr, [sp, #32]
	str	w8, [sp, #8]
	str	xzr, [sp]
	mov	x0, x19
	mov	x1, x22
	mov	x4, #0
	mov	x7, #0
	bl	_krb5_sendauth
	add	sp, sp, #48
	mov	x21, x0
	ldur	x0, [x29, #-96]
	bl	_freeaddrinfo
	cbnz	x21, LBB0_35
	b	LBB0_37
LBB0_29:
	sub	x0, x29, #208
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_31
; %bb.30:
Lloh52:
	adrp	x9, _KADM5_CONFIG_REALM@GOTPAGE
Lloh53:
	ldr	x9, [x9, _KADM5_CONFIG_REALM@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	ldur	w10, [x29, #-176]
	orr	w9, w10, w9
	stur	w9, [x29, #-176]
	stur	x8, [x29, #-184]
LBB0_31:
	sub	x1, x29, #208
	sub	x2, x29, #156
	mov	x0, x19
	bl	__kadm5_marshal_params
	ldr	x1, [x22]
	sub	x2, x29, #88
	sub	x3, x29, #156
	mov	x0, x19
	bl	_krb5_write_priv_message
	mov	x21, x0
	sub	x0, x29, #156
	bl	_krb5_data_free
	cbz	x21, LBB0_36
; %bb.32:
	ldur	x0, [x29, #-96]
	bl	_freeaddrinfo
	ldur	x0, [x29, #-88]
	bl	_rk_closesocket
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_12
; %bb.33:
	ldur	w1, [x29, #-80]
	mov	x0, x19
	bl	_krb5_cc_close
	b	LBB0_12
LBB0_34:
	ldur	x0, [x29, #-96]
	bl	_freeaddrinfo
LBB0_35:
	ldur	x0, [x29, #-88]
	bl	_rk_closesocket
	b	LBB0_12
LBB0_36:
	ldur	x0, [x29, #-96]
	bl	_freeaddrinfo
LBB0_37:
	ldur	w1, [x29, #-76]
	mov	x0, x19
	bl	_krb5_free_principal
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_39
; %bb.38:
	ldur	w1, [x29, #-80]
	mov	x0, x19
	bl	_krb5_cc_close
LBB0_39:
	mov	x21, #0
	ldur	x8, [x29, #-88]
	str	x8, [x20, #8]
	b	LBB0_12
LBB0_40:
	ldur	x0, [x29, #-88]
	bl	_rk_closesocket
LBB0_41:
	ldur	x0, [x29, #-96]
	bl	_freeaddrinfo
	mov	x0, x19
	bl	_krb5_clear_error_message
	ldr	x21, [x25]
	b	LBB0_12
LBB0_42:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_rk_INVALID_SOCKET,8,3          ; @rk_INVALID_SOCKET
	.comm	_NI_MAXSERV,4,2                 ; @NI_MAXSERV
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u"

	.comm	_KADM5_BAD_SERVER_NAME,8,3      ; @KADM5_BAD_SERVER_NAME
	.comm	_errno,8,3                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"connect(%s)"

l_.str.2:                               ; @.str.2
	.asciz	"failed to contact %s"

	.comm	_KADM5_FAILURE,8,3              ; @KADM5_FAILURE
l_.str.3:                               ; @.str.3
	.asciz	"%s@%s"

	.comm	_KADM5_ADMIN_SERVICE,4,2        ; @KADM5_ADMIN_SERVICE
l_.str.4:                               ; @.str.4
	.asciz	"%s"

	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_KADMIN_APPL_VERSION,4,2        ; @KADMIN_APPL_VERSION
	.comm	_AP_OPTS_MUTUAL_REQUIRED,4,2    ; @AP_OPTS_MUTUAL_REQUIRED
	.comm	_KADM5_CONFIG_REALM,4,2         ; @KADM5_CONFIG_REALM
	.comm	_KRB5_SENDAUTH_BADAPPLVERS,8,3  ; @KRB5_SENDAUTH_BADAPPLVERS
	.comm	_KADMIN_OLD_APPL_VERSION,4,2    ; @KADMIN_OLD_APPL_VERSION
	.no_dead_strip	_kadm_connect
.subsections_via_symbols
