	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gsskrb5_get_creds
_gsskrb5_get_creds:                     ## @gsskrb5_get_creds
	.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
	movl	%r9d, %r14d
	movl	%r8d, -64(%rbp)                 ## 4-byte Spill
	movq	%rcx, %rbx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leaq	16(%rcx), %r13
	movq	16(%rcx), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	%r12d, %edi
	callq	_krb5_free_principal
	movq	$0, (%r13)
LBB0_2:
	leaq	8(%rbx), %r15
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movl	%r12d, %edi
	callq	_krb5_free_creds
	movq	$0, (%r15)
LBB0_4:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	24(%rbx), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	movq	%r13, %r9
	callq	__gsskrb5_canon_name
	testq	%rax, %rax
	jne	LBB0_18
## %bb.5:
	movl	%r12d, %r15d
	movq	16(%rbp), %r14
	leaq	-104(%rbp), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	24(%rbx), %eax
	movl	%eax, -80(%rbp)
	movq	16(%rbx), %rax
	movq	%rax, -88(%rbp)
	testq	%r14, %r14
	je	LBB0_6
## %bb.7:
	movq	_GSS_C_INDEFINITE@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:
	leaq	-56(%rbp), %rsi
	movl	%r15d, %edi
	callq	_krb5_timeofday
	addq	-56(%rbp), %r14
	movq	%r14, %r12
	jmp	LBB0_9
LBB0_6:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_9:
	movq	%r12, -96(%rbp)
	movq	_KEYTYPE_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	leaq	-104(%rbp), %rcx
	movl	%r15d, %edi
	xorl	%esi, %esi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	_krb5_get_credentials
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rax, (%r13)
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rax
LBB0_17:
	movq	(%rax), %rax
	jmp	LBB0_18
LBB0_11:
	movq	8(%rbx), %rax
	movl	(%rax), %edx
	movl	%edx, (%rbx)
	leaq	-56(%rbp), %rcx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	__gsskrb5_lifetime_left
	testq	%rax, %rax
	je	LBB0_12
LBB0_18:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	24(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.15:
	movq	%rax, (%rcx)
LBB0_16:
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	movq	_GSS_S_CONTEXT_EXPIRED@GOTPCREL(%rip), %rax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_GSS_C_INDEFINITE,8,3           ## @GSS_C_INDEFINITE
	.comm	_KEYTYPE_NULL,4,2               ## @KEYTYPE_NULL
	.comm	_GSS_S_FAILURE,8,3              ## @GSS_S_FAILURE
	.comm	_GSS_S_CONTEXT_EXPIRED,8,3      ## @GSS_S_CONTEXT_EXPIRED
	.comm	_GSS_S_COMPLETE,8,3             ## @GSS_S_COMPLETE
	.no_dead_strip	_gsskrb5_get_creds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gsskrb5_get_creds
_gsskrb5_get_creds:                     ; @gsskrb5_get_creds
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x7
	mov	x24, x6
	mov	x27, x5
	mov	x26, x4
	mov	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	mov	x28, x3
	ldr	x1, [x28, #16]!
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_krb5_free_principal
	str	xzr, [x28]
LBB0_2:
	mov	x25, x22
	ldr	x1, [x25, #8]!
	cbz	x1, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_krb5_free_creds
	str	xzr, [x25]
LBB0_4:
	ldr	w3, [x22, #24]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x27
	mov	x4, x26
	mov	x5, x28
	bl	__gsskrb5_canon_name
	cbnz	x0, LBB0_12
; %bb.5:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	x8, #0
	ldr	w9, [x22, #24]
	str	w9, [sp, #40]
	ldr	x9, [x22, #16]
	str	x9, [sp, #32]
	cbz	x24, LBB0_8
; %bb.6:
Lloh0:
	adrp	x9, _GSS_C_INDEFINITE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GSS_C_INDEFINITE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x9, x24
	b.eq	LBB0_8
; %bb.7:
	add	x1, sp, #8
	mov	x0, x21
	bl	_krb5_timeofday
	ldr	x8, [sp, #8]
	add	x8, x8, x24
LBB0_8:
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _KEYTYPE_NULL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KEYTYPE_NULL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	add	x3, sp, #16
	mov	x0, x21
	mov	w1, #0
	mov	x2, x23
	mov	x4, x25
	bl	_krb5_get_credentials
	cbz	x0, LBB0_11
; %bb.9:
	str	x0, [x20]
Lloh6:
	adrp	x8, _GSS_S_FAILURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GSS_S_FAILURE@GOTPAGEOFF]
LBB0_10:
	ldr	x0, [x8]
	b	LBB0_12
LBB0_11:
	ldr	x8, [x22, #8]
	ldr	w2, [x8]
	str	w2, [x22]
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	__gsskrb5_lifetime_left
	cbz	x0, LBB0_13
LBB0_12:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_13:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_17
; %bb.14:
	cbz	x19, LBB0_16
; %bb.15:
	str	x8, [x19]
LBB0_16:
Lloh8:
	adrp	x8, _GSS_S_COMPLETE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GSS_S_COMPLETE@GOTPAGEOFF]
	b	LBB0_10
LBB0_17:
	str	xzr, [x20]
Lloh10:
	adrp	x8, _GSS_S_CONTEXT_EXPIRED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GSS_S_CONTEXT_EXPIRED@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GSS_C_INDEFINITE,8,3           ; @GSS_C_INDEFINITE
	.comm	_KEYTYPE_NULL,4,2               ; @KEYTYPE_NULL
	.comm	_GSS_S_FAILURE,8,3              ; @GSS_S_FAILURE
	.comm	_GSS_S_CONTEXT_EXPIRED,8,3      ; @GSS_S_CONTEXT_EXPIRED
	.comm	_GSS_S_COMPLETE,8,3             ; @GSS_S_COMPLETE
	.no_dead_strip	_gsskrb5_get_creds
.subsections_via_symbols
