	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acquire_initiator_cred
_acquire_initiator_cred:                ## @acquire_initiator_cred
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	$0, -72(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_GSS_C_NO_OID@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	_GSS_C_CRED_PASSWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gss_oid_equal
	testq	%rax, %rax
	je	LBB0_12
LBB0_2:
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	32(%rbp), %rbx
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	leaq	-48(%rbp), %rdx
	movl	%r13d, %edi
	callq	_krb5_cc_cache_match
	testq	%rax, %rax
	je	LBB0_28
LBB0_4:
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
LBB0_5:
	addq	$16, %rbx
	leaq	-56(%rbp), %rdx
	movl	%r13d, %edi
	callq	_krb5_cc_get_principal
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	movq	-48(%rbp), %rsi
	movl	%r13d, %edi
	callq	_krb5_cc_close
	movq	$0, -56(%rbp)
LBB0_7:
	cmpq	$0, (%rbx)
	je	LBB0_16
LBB0_8:
	leaq	-64(%rbp), %rsi
	movl	%r13d, %edi
	callq	_krb5_get_init_creds_opt_alloc
	testq	%rax, %rax
	jne	LBB0_11
## %bb.18:
	movq	_GSS_C_NO_OID@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	je	LBB0_22
## %bb.19:
	movq	_GSS_C_CRED_PASSWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gss_oid_equal
	testq	%rax, %rax
	je	LBB0_22
## %bb.20:
	movq	(%rbx), %rdx
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %ecx
	subq	$8, %rsp
	leaq	-88(%rbp), %rsi
	movl	%r13d, %edi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	-64(%rbp)
	pushq	$0
	pushq	$0
	callq	_krb5_get_init_creds_password
	addq	$32, %rsp
	jmp	LBB0_42
LBB0_10:
	leaq	-48(%rbp), %rsi
	movl	%r13d, %edi
	callq	_krb5_cc_default
	testq	%rax, %rax
	jne	LBB0_11
## %bb.21:
	movq	-48(%rbp), %rsi
	jmp	LBB0_5
LBB0_12:
	movq	_KRB5_NOCREDS_SUPPLIED@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	cmpq	$0, -88(%rbp)
	jne	LBB0_31
	jmp	LBB0_32
LBB0_13:
	movq	(%rbx), %rsi
	movq	-56(%rbp), %rdx
	movl	%r13d, %edi
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.14:
	callq	_krb5_principal_compare
	movq	_FALSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.15:
	movq	-56(%rbp), %rsi
	movl	%r13d, %edi
	callq	_krb5_free_principal
	movq	$0, -56(%rbp)
	movq	-48(%rbp), %rsi
	movl	%r13d, %edi
	callq	_krb5_cc_close
	movq	$0, -48(%rbp)
	jmp	LBB0_26
LBB0_16:
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_krb5_get_default_principal
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_8
LBB0_22:
	leaq	-72(%rbp), %rsi
	movl	%r13d, %edi
	callq	_get_keytab
	testq	%rax, %rax
	je	LBB0_41
## %bb.23:
	movq	%rax, %r14
	movq	-64(%rbp), %rsi
	movl	%r13d, %edi
	callq	_krb5_get_init_creds_opt_free
	cmpq	$0, -88(%rbp)
	jne	LBB0_31
	jmp	LBB0_32
LBB0_24:
	movq	%rdx, %rsi
	movq	%rbx, %rdx
	callq	_krb5_copy_principal
	testq	%rax, %rax
	jne	LBB0_11
LBB0_26:
	cmpq	$0, -56(%rbp)
	je	LBB0_7
## %bb.27:
	movq	-48(%rbp), %rdx
	movq	32(%rbp), %rbx
	movq	16(%rbx), %rcx
	leaq	8(%rbx), %r8
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	___gsskrb5_ccache_lifetime
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_40
LBB0_28:
	movq	-48(%rbp), %rax
	movq	%rax, (%rbx)
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_29:
	xorl	%r14d, %r14d
	cmpq	$0, -88(%rbp)
	jne	LBB0_31
	jmp	LBB0_32
LBB0_40:
	movq	%rax, %r12
	movq	-48(%rbp), %rsi
	movl	%r13d, %edi
	callq	_krb5_cc_close
	jmp	LBB0_29
LBB0_41:
	movq	(%rbx), %rdx
	movq	-72(%rbp), %rcx
	subq	$8, %rsp
	leaq	-88(%rbp), %rsi
	movl	%r13d, %edi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	-64(%rbp)
	callq	_krb5_get_init_creds_keytab
	addq	$16, %rsp
LBB0_42:
	movq	%rax, %r14
	movq	-64(%rbp), %rsi
	movl	%r13d, %edi
	callq	_krb5_get_init_creds_opt_free
	testq	%r14, %r14
	jne	LBB0_30
## %bb.43:
	movq	_krb5_cc_type_memory@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rcx
	movl	%r13d, %edi
	xorl	%edx, %edx
	callq	_krb5_cc_new_unique
	testq	%rax, %rax
	je	LBB0_45
LBB0_11:
	movq	%rax, %r14
LBB0_30:
	cmpq	$0, -88(%rbp)
	je	LBB0_32
LBB0_31:
	leaq	-88(%rbp), %rsi
	movl	%r13d, %edi
	callq	_krb5_free_cred_contents
LBB0_32:
	movq	-56(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_34
## %bb.33:
	movl	%r13d, %edi
	callq	_krb5_free_principal
LBB0_34:
	movq	-72(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_36
## %bb.35:
	movl	%r13d, %edi
	callq	_krb5_kt_close
LBB0_36:
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_39
## %bb.37:
	testq	%r14, %r14
	je	LBB0_39
## %bb.38:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
LBB0_39:
	movq	%r12, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_45:
	movq	-48(%rbp), %rsi
	movq	-88(%rbp), %rdx
	movl	%r13d, %edi
	callq	_krb5_cc_initialize
	movq	-48(%rbp), %rsi
	testq	%rax, %rax
	je	LBB0_47
## %bb.46:
	movq	%rax, %r14
	jmp	LBB0_49
LBB0_47:
	leaq	-88(%rbp), %rdx
	movl	%r13d, %edi
	callq	_krb5_cc_store_cred
	testq	%rax, %rax
	je	LBB0_50
## %bb.48:
	movq	%rax, %r14
	movq	-48(%rbp), %rsi
LBB0_49:
	movl	%r13d, %edi
	callq	_krb5_cc_destroy
	cmpq	$0, -88(%rbp)
	jne	LBB0_31
	jmp	LBB0_32
LBB0_50:
	movl	-80(%rbp), %eax
	movq	32(%rbp), %rbx
	movl	%eax, 8(%rbx)
	movq	_GSS_CF_DESTROY_CRED_ON_RELEASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%rbx)
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_GSS_S_FAILURE,8,3              ## @GSS_S_FAILURE
	.comm	_GSS_C_NO_OID,8,3               ## @GSS_C_NO_OID
	.comm	_GSS_C_CRED_PASSWORD,4,2        ## @GSS_C_CRED_PASSWORD
	.comm	_KRB5_NOCREDS_SUPPLIED,8,3      ## @KRB5_NOCREDS_SUPPLIED
	.comm	_GSS_S_COMPLETE,8,3             ## @GSS_S_COMPLETE
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_krb5_cc_type_memory,4,2        ## @krb5_cc_type_memory
	.comm	_GSS_CF_DESTROY_CRED_ON_RELEASE,4,2 ## @GSS_CF_DESTROY_CRED_ON_RELEASE
	.no_dead_strip	_acquire_initiator_cred
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acquire_initiator_cred
_acquire_initiator_cred:                ; @acquire_initiator_cred
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #40]
Lloh0:
	adrp	x8, _GSS_S_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GSS_S_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	add	x0, sp, #48
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh3:
	adrp	x28, _GSS_C_NO_OID@GOTPAGE
Lloh4:
	ldr	x28, [x28, _GSS_C_NO_OID@GOTPAGEOFF]
	ldr	x8, [x28]
Lloh5:
	adrp	x26, _GSS_S_COMPLETE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _GSS_S_COMPLETE@GOTPAGEOFF]
	cmp	x8, x23
	b.eq	LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _GSS_C_CRED_PASSWORD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GSS_C_CRED_PASSWORD@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_gss_oid_equal
	cbz	x0, LBB0_14
LBB0_2:
	ldr	x27, [x29, #16]
	mov	x24, x27
	ldr	x1, [x24, #16]!
	cbz	x1, LBB0_4
; %bb.3:
	add	x2, sp, #24
	mov	x0, x20
	bl	_krb5_cc_cache_match
	cbz	x0, LBB0_24
LBB0_4:
	ldr	x1, [sp, #24]
	cbz	x1, LBB0_12
LBB0_5:
	add	x2, sp, #40
	mov	x0, x20
	bl	_krb5_cc_get_principal
	cbz	x0, LBB0_15
; %bb.6:
	ldr	x1, [sp, #24]
	mov	x0, x20
	bl	_krb5_cc_close
	str	xzr, [sp, #40]
LBB0_7:
	ldr	x8, [x24]
	cbz	x8, LBB0_18
LBB0_8:
	add	x1, sp, #32
	mov	x0, x20
	bl	_krb5_get_init_creds_opt_alloc
	cbnz	x0, LBB0_29
; %bb.9:
	ldr	x8, [x28]
	cmp	x8, x23
	b.eq	LBB0_19
; %bb.10:
Lloh10:
	adrp	x8, _GSS_C_CRED_PASSWORD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GSS_C_CRED_PASSWORD@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_gss_oid_equal
	cbz	x0, LBB0_19
; %bb.11:
	ldr	x2, [x24]
	ldr	w3, [x22]
	ldr	x8, [sp, #32]
	str	x8, [sp]
	add	x1, sp, #48
	mov	x0, x20
	mov	x4, #0
	mov	x5, #0
	mov	w6, #0
	mov	x7, #0
	bl	_krb5_get_init_creds_password
	b	LBB0_27
LBB0_12:
	add	x1, sp, #24
	mov	x0, x20
	bl	_krb5_cc_default
	cbnz	x0, LBB0_29
; %bb.13:
	ldr	x1, [sp, #24]
	b	LBB0_5
LBB0_14:
Lloh13:
	adrp	x8, _KRB5_NOCREDS_SUPPLIED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KRB5_NOCREDS_SUPPLIED@GOTPAGEOFF]
Lloh15:
	ldr	x25, [x8]
	ldr	x8, [sp, #48]
	cbnz	x8, LBB0_31
	b	LBB0_32
LBB0_15:
	ldr	x1, [x24]
	ldr	x2, [sp, #40]
	mov	x0, x20
	cbz	x1, LBB0_21
; %bb.16:
	bl	_krb5_principal_compare
Lloh16:
	adrp	x8, _FALSE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_22
; %bb.17:
	ldr	x1, [sp, #40]
	mov	x0, x20
	bl	_krb5_free_principal
	str	xzr, [sp, #40]
	ldr	x1, [sp, #24]
	mov	x0, x20
	bl	_krb5_cc_close
	str	xzr, [sp, #24]
	b	LBB0_22
LBB0_18:
	mov	x0, x20
	mov	x1, x24
	bl	_krb5_get_default_principal
	cbnz	x0, LBB0_29
	b	LBB0_8
LBB0_19:
	add	x1, sp, #16
	mov	x0, x20
	bl	_get_keytab
	cbz	x0, LBB0_26
; %bb.20:
	mov	x25, x0
	ldr	x1, [sp, #32]
	mov	x0, x20
	bl	_krb5_get_init_creds_opt_free
	ldr	x8, [sp, #48]
	cbnz	x8, LBB0_31
	b	LBB0_32
LBB0_21:
	mov	x1, x2
	mov	x2, x24
	bl	_krb5_copy_principal
	cbnz	x0, LBB0_29
LBB0_22:
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_7
; %bb.23:
	ldr	x2, [sp, #24]
	ldr	x3, [x27, #16]
	add	x4, x27, #8
	mov	x0, x19
	mov	x1, x20
	bl	___gsskrb5_ccache_lifetime
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_25
LBB0_24:
	mov	x25, #0
	ldr	x8, [sp, #24]
	str	x8, [x27]
	ldr	x21, [x26]
	ldr	x8, [sp, #48]
	cbnz	x8, LBB0_31
	b	LBB0_32
LBB0_25:
	mov	x21, x0
	ldr	x1, [sp, #24]
	mov	x0, x20
	bl	_krb5_cc_close
	mov	x25, #0
	ldr	x8, [sp, #48]
	cbnz	x8, LBB0_31
	b	LBB0_32
LBB0_26:
	ldr	x2, [x24]
	ldr	x3, [sp, #16]
	ldr	x6, [sp, #32]
	add	x1, sp, #48
	mov	x0, x20
	mov	w4, #0
	mov	x5, #0
	bl	_krb5_get_init_creds_keytab
LBB0_27:
	mov	x25, x0
	ldr	x1, [sp, #32]
	mov	x0, x20
	bl	_krb5_get_init_creds_opt_free
	cbnz	x25, LBB0_30
; %bb.28:
Lloh19:
	adrp	x8, _krb5_cc_type_memory@GOTPAGE
Lloh20:
	ldr	x8, [x8, _krb5_cc_type_memory@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	add	x3, sp, #24
	mov	x0, x20
	mov	x2, #0
	bl	_krb5_cc_new_unique
	cbz	x0, LBB0_39
LBB0_29:
	mov	x25, x0
LBB0_30:
	ldr	x8, [sp, #48]
	cbz	x8, LBB0_32
LBB0_31:
	add	x1, sp, #48
	mov	x0, x20
	bl	_krb5_free_cred_contents
LBB0_32:
	ldr	x1, [sp, #40]
	cbz	x1, LBB0_34
; %bb.33:
	mov	x0, x20
	bl	_krb5_free_principal
LBB0_34:
	ldr	x1, [sp, #16]
	cbz	x1, LBB0_36
; %bb.35:
	mov	x0, x20
	bl	_krb5_kt_close
LBB0_36:
	ldr	x8, [x26]
	cmp	x21, x8
	ccmp	x25, #0, #4, ne
	b.eq	LBB0_38
; %bb.37:
	str	x25, [x19]
LBB0_38:
	mov	x0, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_39:
	ldr	x1, [sp, #24]
	ldr	x2, [sp, #48]
	mov	x0, x20
	bl	_krb5_cc_initialize
	ldr	x1, [sp, #24]
	cbz	x0, LBB0_41
; %bb.40:
	mov	x25, x0
	b	LBB0_43
LBB0_41:
	add	x2, sp, #48
	mov	x0, x20
	bl	_krb5_cc_store_cred
	cbz	x0, LBB0_44
; %bb.42:
	mov	x25, x0
	ldr	x1, [sp, #24]
LBB0_43:
	mov	x0, x20
	bl	_krb5_cc_destroy
	ldr	x8, [sp, #48]
	cbnz	x8, LBB0_31
	b	LBB0_32
LBB0_44:
	ldr	w8, [sp, #56]
	str	w8, [x27, #8]
Lloh22:
	adrp	x8, _GSS_CF_DESTROY_CRED_ON_RELEASE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GSS_CF_DESTROY_CRED_ON_RELEASE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x27, #24]
	orr	w8, w9, w8
	str	w8, [x27, #24]
	b	LBB0_24
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_GSS_S_FAILURE,8,3              ; @GSS_S_FAILURE
	.comm	_GSS_C_NO_OID,8,3               ; @GSS_C_NO_OID
	.comm	_GSS_C_CRED_PASSWORD,4,2        ; @GSS_C_CRED_PASSWORD
	.comm	_KRB5_NOCREDS_SUPPLIED,8,3      ; @KRB5_NOCREDS_SUPPLIED
	.comm	_GSS_S_COMPLETE,8,3             ; @GSS_S_COMPLETE
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_krb5_cc_type_memory,4,2        ; @krb5_cc_type_memory
	.comm	_GSS_CF_DESTROY_CRED_ON_RELEASE,4,2 ; @GSS_CF_DESTROY_CRED_ON_RELEASE
	.no_dead_strip	_acquire_initiator_cred
.subsections_via_symbols
