	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_auth
_init_auth:                             ## @init_auth
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	40(%rbp), %r15
	leaq	-72(%rbp), %rdi
	callq	_krb5_data_zero
	leaq	-96(%rbp), %rdi
	callq	_krb5_data_zero
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	$0, (%rbx)
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	_GSS_KRB5_MECHANISM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_2:
	testq	%r12, %r12
	je	LBB0_3
## %bb.6:
	movq	8(%r12), %rsi
	movq	%rsi, 8(%r13)
	leaq	32(%r13), %rdx
	movl	%r14d, %edi
	callq	_krb5_cc_get_principal
	testq	%rax, %rax
	je	LBB0_7
LBB0_22:
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rbx
	jmp	LBB0_23
LBB0_3:
	leaq	8(%r13), %r15
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_krb5_cc_default
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_23
## %bb.4:
	movq	_CLOSE_CCACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r13)
	movq	8(%r13), %rsi
	leaq	32(%r13), %rdx
	movl	%r14d, %edi
	callq	_krb5_cc_get_principal
	testq	%rax, %rax
	je	LBB0_5
LBB0_23:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	(%rbx), %rbx
LBB0_24:
	movq	8(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_27
## %bb.25:
	movq	_CLOSE_CCACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_27
## %bb.26:
	movl	%r14d, %edi
	callq	_krb5_cc_close
LBB0_27:
	movq	$0, 8(%r13)
LBB0_28:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	8(%r13), %r15
	movq	(%r12), %rsi
LBB0_8:
	movq	24(%rbp), %rbx
	movl	%r14d, %edi
	callq	_krb5_set_default_in_tkt_etypes
	movq	(%r15), %rsi
	leaq	L_.str(%rip), %rcx
	leaq	-72(%rbp), %r8
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_krb5_cc_get_config
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_13
## %bb.9:
	cmpl	$0, -72(%rbp)
	jle	LBB0_11
## %bb.10:
	movq	-64(%rbp), %rax
	movl	$1, %r15d
	testb	$2, (%rax)
	je	LBB0_12
LBB0_11:
	xorl	%r15d, %r15d
LBB0_12:
	leaq	-72(%rbp), %rdi
	callq	_krb5_data_free
LBB0_13:
	movq	8(%r13), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	%r13, %rcx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	xorl	%r9d, %r9d
	pushq	64(%rbp)
	pushq	%rbx
	callq	_gsskrb5_get_creds
	addq	$16, %rsp
	movq	%rax, %rbx
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.14:
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.15:
	movq	8(%r13), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	%r13, %rcx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	movl	$1, %r9d
	pushq	64(%rbp)
	pushq	24(%rbp)
	callq	_gsskrb5_get_creds
	addq	$16, %rsp
	movq	%rax, %rbx
LBB0_16:
	testq	%rbx, %rbx
	jne	LBB0_24
## %bb.17:
	movq	16(%r13), %rax
	movl	4(%rax), %eax
	movl	%eax, 28(%r13)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	__gss_DES3_get_mic_compat
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_24
## %bb.18:
	movl	28(%r13), %edx
	leaq	-80(%rbp), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	__gsskrb5_lifetime_left
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_24
## %bb.19:
	cmpq	$0, -80(%rbp)
	je	LBB0_20
## %bb.21:
	movl	24(%r13), %esi
	movq	16(%r13), %rdx
	movl	%r14d, %edi
	callq	_krb5_auth_con_setkey
	movl	24(%r13), %esi
	movq	16(%r13), %rdx
	movl	%r14d, %edi
	callq	_krb5_auth_con_generatelocalsubkey
	testq	%rax, %rax
	jne	LBB0_22
## %bb.29:
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_28
LBB0_5:
	xorl	%esi, %esi
	jmp	LBB0_8
LBB0_20:
	movq	_GSS_S_CONTEXT_EXPIRED@GOTPCREL(%rip), %rbx
	xorl	%eax, %eax
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_GSS_S_FAILURE,8,3              ## @GSS_S_FAILURE
	.comm	_GSS_KRB5_MECHANISM,4,2         ## @GSS_KRB5_MECHANISM
	.comm	_CLOSE_CCACHE,4,2               ## @CLOSE_CCACHE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"realm-config"

	.comm	_GSS_S_CONTEXT_EXPIRED,8,3      ## @GSS_S_CONTEXT_EXPIRED
	.comm	_GSS_S_COMPLETE,8,3             ## @GSS_S_COMPLETE
	.no_dead_strip	_init_auth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_auth
_init_auth:                             ; @init_auth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x22, x7
	mov	x23, x4
	mov	x20, x3
	mov	x19, x2
	mov	x24, x1
	mov	x21, x0
	ldr	x25, [x29, #24]
	add	x0, sp, #32
	bl	_krb5_data_zero
	add	x0, sp, #16
	bl	_krb5_data_zero
	str	xzr, [x21]
	cbz	x25, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _GSS_KRB5_MECHANISM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GSS_KRB5_MECHANISM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x25]
LBB0_2:
	cbz	x24, LBB0_7
; %bb.3:
	ldr	x1, [x24, #8]
	mov	x25, x19
	str	x1, [x25, #8]!
	add	x2, x25, #24
	mov	x0, x20
	bl	_krb5_cc_get_principal
	cbnz	x0, LBB0_9
; %bb.4:
	ldr	x1, [x24]
LBB0_5:
	ldr	x24, [x29, #48]
	mov	x0, x20
	bl	_krb5_set_default_in_tkt_etypes
	ldr	x1, [x25]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	add	x4, sp, #32
	mov	x0, x20
	mov	x2, #0
	bl	_krb5_cc_get_config
	cbz	x0, LBB0_16
; %bb.6:
	mov	w26, #1
	b	LBB0_21
LBB0_7:
	add	x25, x19, #8
	mov	x0, x20
	mov	x1, x25
	bl	_krb5_cc_default
	cbnz	x0, LBB0_9
; %bb.8:
Lloh5:
	adrp	x8, _CLOSE_CCACHE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CLOSE_CCACHE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	x1, [x19, #8]
	add	x2, x19, #32
	mov	x0, x20
	bl	_krb5_cc_get_principal
	cbz	x0, LBB0_30
LBB0_9:
Lloh8:
	adrp	x8, _GSS_S_FAILURE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GSS_S_FAILURE@GOTPAGEOFF]
LBB0_10:
	str	x0, [x21]
	ldr	x25, [x8]
LBB0_11:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_14
; %bb.12:
	ldr	w8, [x19]
Lloh10:
	adrp	x9, _CLOSE_CCACHE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CLOSE_CCACHE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_krb5_cc_close
LBB0_14:
	str	xzr, [x19, #8]
LBB0_15:
	mov	x0, x25
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_16:
	ldr	w8, [sp, #32]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.17:
	ldr	x8, [sp, #40]
	ldrb	w8, [x8]
	tbnz	w8, #1, LBB0_19
; %bb.18:
	mov	w26, #1
	b	LBB0_20
LBB0_19:
	mov	w26, #0
LBB0_20:
	add	x0, sp, #32
	bl	_krb5_data_free
LBB0_21:
	ldr	x2, [x19, #8]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	mov	x4, x23
	mov	w5, #0
	mov	x6, x22
	mov	x7, x24
	bl	_gsskrb5_get_creds
	mov	x25, x0
	cbz	w26, LBB0_24
; %bb.22:
	cbz	x25, LBB0_24
; %bb.23:
	ldr	x2, [x19, #8]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	mov	x4, x23
	mov	w5, #1
	mov	x6, x22
	mov	x7, x24
	bl	_gsskrb5_get_creds
	mov	x25, x0
LBB0_24:
	cbnz	x25, LBB0_11
; %bb.25:
	ldr	x8, [x19, #16]
	ldr	w8, [x8, #4]
	str	w8, [x19, #28]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	__gss_DES3_get_mic_compat
	mov	x25, x0
	cbnz	x0, LBB0_11
; %bb.26:
	ldr	w2, [x19, #28]
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	__gsskrb5_lifetime_left
	mov	x25, x0
	cbnz	x0, LBB0_11
; %bb.27:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_31
; %bb.28:
	ldr	w1, [x19, #24]
	ldr	x2, [x19, #16]
	mov	x0, x20
	bl	_krb5_auth_con_setkey
	ldr	w1, [x19, #24]
	ldr	x2, [x19, #16]
	mov	x0, x20
	bl	_krb5_auth_con_generatelocalsubkey
	cbnz	x0, LBB0_9
; %bb.29:
Lloh13:
	adrp	x8, _GSS_S_COMPLETE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GSS_S_COMPLETE@GOTPAGEOFF]
Lloh15:
	ldr	x25, [x8]
	b	LBB0_15
LBB0_30:
	mov	x1, #0
	b	LBB0_5
LBB0_31:
	mov	x0, #0
Lloh16:
	adrp	x8, _GSS_S_CONTEXT_EXPIRED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GSS_S_CONTEXT_EXPIRED@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GSS_S_FAILURE,8,3              ; @GSS_S_FAILURE
	.comm	_GSS_KRB5_MECHANISM,4,2         ; @GSS_KRB5_MECHANISM
	.comm	_CLOSE_CCACHE,4,2               ; @CLOSE_CCACHE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"realm-config"

	.comm	_GSS_S_CONTEXT_EXPIRED,8,3      ; @GSS_S_CONTEXT_EXPIRED
	.comm	_GSS_S_COMPLETE,8,3             ; @GSS_S_COMPLETE
	.no_dead_strip	_init_auth
.subsections_via_symbols
