	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gss_krb5_export_lucid_sec_context ## -- Begin function gss_krb5_export_lucid_sec_context
	.p2align	4, 0x90
_gss_krb5_export_lucid_sec_context:     ## @gss_krb5_export_lucid_sec_context
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -64(%rbp)
	movq	_GSS_C_NO_BUFFER_SET@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	%rax, -56(%rbp)
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.1:
	cmpl	$1, %edx
	jne	LBB0_16
## %bb.2:
	movq	(%rsi), %rsi
	movq	_GSS_C_NO_CONTEXT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_16
## %bb.3:
	movq	%rcx, %r15
	movq	%rdi, %r12
	movq	_GSS_KRB5_EXPORT_LUCID_CONTEXT_V1_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rcx
	callq	_gss_inquire_sec_context_by_oid
	testl	%eax, %eax
	jne	LBB0_18
## %bb.4:
	movq	-56(%rbp), %rax
	cmpq	(%rbx), %rax
	je	LBB0_19
## %bb.5:
	cmpl	$1, (%rax)
	jne	LBB0_19
## %bb.6:
	leaq	-64(%rbp), %rdi
	callq	_krb5_init_context
	testl	%eax, %eax
	je	LBB0_20
## %bb.7:
	movl	%eax, %r13d
LBB0_8:
	xorl	%r14d, %r14d
LBB0_9:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_gss_release_buffer_set
LBB0_10:
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_krb5_free_context
LBB0_12:
	testl	%r13d, %r13d
	je	LBB0_38
## %bb.13:
	testq	%r14, %r14
	je	LBB0_15
## %bb.14:
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	_gss_krb5_free_lucid_sec_context
LBB0_15:
	movl	%r13d, (%r12)
	jmp	LBB0_16
LBB0_19:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_gss_release_buffer_set
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
LBB0_16:
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	$1, %edi
	movl	$48, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_39
## %bb.21:
	movq	%rax, %r14
	movq	-56(%rbp), %rax
	movq	8(%rax), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	callq	_krb5_storage_from_mem
	testq	%rax, %rax
	je	LBB0_40
## %bb.22:
	movq	%rax, %rbx
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_krb5_ret_uint32
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_42
## %bb.23:
	cmpl	$1, -48(%rbp)
	jne	LBB0_41
## %bb.24:
	movl	$1, (%r14)
	leaq	4(%r14), %rsi
	movq	%rbx, %rdi
	callq	_krb5_ret_uint32
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_42
## %bb.25:
	leaq	8(%r14), %rsi
	movq	%rbx, %rdi
	callq	_krb5_ret_uint32
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_42
## %bb.26:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_krb5_ret_uint32
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_42
## %bb.27:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_krb5_ret_uint32
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_42
## %bb.28:
	movl	-48(%rbp), %eax
	orl	%eax, 12(%r14)
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_krb5_ret_uint32
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_42
## %bb.29:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_krb5_ret_uint32
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_42
## %bb.30:
	movl	-48(%rbp), %eax
	orl	%eax, 16(%r14)
	leaq	20(%r14), %rsi
	movq	%rbx, %rdi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	callq	_krb5_ret_uint32
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_42
## %bb.31:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	cmpl	$1, %eax
	je	LBB0_43
## %bb.32:
	testl	%eax, %eax
	jne	LBB0_41
## %bb.33:
	leaq	36(%r14), %rsi
	movq	%rbx, %rdi
	callq	_krb5_ret_uint32
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_42
## %bb.34:
	leaq	40(%r14), %rsi
	movq	%rbx, %rdi
	callq	_krb5_ret_uint32
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_42
## %bb.35:
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_krb5_ret_keyblock
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_42
## %bb.36:
	movq	%r14, %rsi
	addq	$44, %rsi
LBB0_37:
	leaq	-44(%rbp), %rdi
	callq	_set_key
	movl	%eax, %r13d
	movq	-64(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	callq	_krb5_free_keyblock_contents
	testl	%r13d, %r13d
	jne	LBB0_42
	jmp	LBB0_49
LBB0_38:
	movl	$0, (%r12)
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_39:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_8
LBB0_40:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_9
LBB0_41:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_42:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_gss_release_buffer_set
	movq	%rbx, %rdi
	callq	_krb5_storage_free
	jmp	LBB0_10
LBB0_43:
	leaq	24(%r14), %rsi
	movq	%rbx, %rdi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	callq	_krb5_ret_uint32
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_42
## %bb.44:
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_krb5_ret_keyblock
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_42
## %bb.45:
	leaq	32(%r14), %rsi
	leaq	-44(%rbp), %rdi
	callq	_set_key
	movl	%eax, %r13d
	movq	-64(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	callq	_krb5_free_keyblock_contents
	testl	%r13d, %r13d
	jne	LBB0_42
## %bb.46:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_49
## %bb.47:
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_krb5_ret_keyblock
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_42
## %bb.48:
	movq	%r14, %rsi
	addq	$28, %rsi
	jmp	LBB0_37
LBB0_49:
	movq	%r14, (%r15)
	xorl	%r13d, %r13d
	jmp	LBB0_42
	.cfi_endproc
                                        ## -- End function
	.comm	_GSS_C_NO_BUFFER_SET,8,3        ## @GSS_C_NO_BUFFER_SET
	.comm	_GSS_C_NO_CONTEXT,8,3           ## @GSS_C_NO_CONTEXT
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_GSS_S_FAILURE,4,2              ## @GSS_S_FAILURE
	.comm	_GSS_KRB5_EXPORT_LUCID_CONTEXT_V1_X,4,2 ## @GSS_KRB5_EXPORT_LUCID_CONTEXT_V1_X
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GSS_S_COMPLETE,4,2             ## @GSS_S_COMPLETE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gss_krb5_export_lucid_sec_context ; -- Begin function gss_krb5_export_lucid_sec_context
	.p2align	2
_gss_krb5_export_lucid_sec_context:     ; @gss_krb5_export_lucid_sec_context
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	str	xzr, [sp, #24]
Lloh0:
	adrp	x20, _GSS_C_NO_BUFFER_SET@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GSS_C_NO_BUFFER_SET@GOTPAGEOFF]
	ldr	x8, [x20]
	str	x8, [sp, #16]
	cbz	x1, LBB0_34
; %bb.1:
	cmp	w2, #1
	b.ne	LBB0_34
; %bb.2:
	ldr	x1, [x1]
Lloh2:
	adrp	x8, _GSS_C_NO_CONTEXT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GSS_C_NO_CONTEXT@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x1, x8
	b.eq	LBB0_34
; %bb.3:
	mov	x21, x3
	mov	x19, x0
Lloh5:
	adrp	x8, _GSS_KRB5_EXPORT_LUCID_CONTEXT_V1_X@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GSS_KRB5_EXPORT_LUCID_CONTEXT_V1_X@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x3, sp, #16
	bl	_gss_inquire_sec_context_by_oid
	cbnz	w0, LBB0_36
; %bb.4:
	ldr	x8, [sp, #16]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.5:
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.6:
	add	x0, sp, #24
	bl	_krb5_init_context
	cbz	w0, LBB0_9
; %bb.7:
	mov	x23, x0
	mov	x20, #0
	b	LBB0_28
LBB0_8:
	add	x1, sp, #16
	mov	x0, x19
	bl	_gss_release_buffer_set
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	w8, [x19]
	b	LBB0_34
LBB0_9:
	mov	w0, #1
	mov	w1, #48
	bl	_calloc
	mov	x20, x0
	cbz	x0, LBB0_27
; %bb.10:
	ldr	x8, [sp, #16]
	ldr	x8, [x8, #8]
	ldp	w1, w0, [x8]
	bl	_krb5_storage_from_mem
	cbz	x0, LBB0_27
; %bb.11:
	mov	x22, x0
	add	x1, sp, #12
	bl	_krb5_ret_uint32
	mov	x23, x0
	cbnz	w0, LBB0_39
; %bb.12:
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.ne	LBB0_38
; %bb.13:
	mov	x1, x20
	str	w8, [x1], #4
	mov	x0, x22
	bl	_krb5_ret_uint32
	mov	x23, x0
	cbnz	w0, LBB0_39
; %bb.14:
	add	x1, x20, #8
	mov	x0, x22
	bl	_krb5_ret_uint32
	mov	x23, x0
	cbnz	w0, LBB0_39
; %bb.15:
	add	x1, sp, #12
	mov	x0, x22
	bl	_krb5_ret_uint32
	mov	x23, x0
	cbnz	w0, LBB0_39
; %bb.16:
	add	x1, sp, #12
	mov	x0, x22
	bl	_krb5_ret_uint32
	mov	x23, x0
	cbnz	w0, LBB0_39
; %bb.17:
	ldr	w8, [sp, #12]
	ldr	w9, [x20, #12]
	orr	w8, w9, w8
	str	w8, [x20, #12]
	add	x1, sp, #12
	mov	x0, x22
	bl	_krb5_ret_uint32
	mov	x23, x0
	cbnz	w0, LBB0_39
; %bb.18:
	add	x1, sp, #12
	mov	x0, x22
	bl	_krb5_ret_uint32
	mov	x23, x0
	cbnz	w0, LBB0_39
; %bb.19:
	ldr	w8, [sp, #12]
	ldr	w9, [x20, #16]
	orr	w8, w9, w8
	str	w8, [x20, #16]
	add	x24, x20, #20
	mov	x0, x22
	mov	x1, x24
	bl	_krb5_ret_uint32
	mov	x23, x0
	cbnz	w0, LBB0_39
; %bb.20:
	ldr	w8, [x24]
	cmp	w8, #1
	b.eq	LBB0_40
; %bb.21:
	cbnz	w8, LBB0_38
; %bb.22:
	add	x1, x20, #36
	mov	x0, x22
	bl	_krb5_ret_uint32
	mov	x23, x0
	cbnz	w0, LBB0_39
; %bb.23:
	add	x1, x20, #40
	mov	x0, x22
	bl	_krb5_ret_uint32
	mov	x23, x0
	cbnz	w0, LBB0_39
; %bb.24:
	add	x1, sp, #8
	mov	x0, x22
	bl	_krb5_ret_keyblock
	mov	x23, x0
	cbnz	w0, LBB0_39
; %bb.25:
	add	x1, x20, #44
LBB0_26:
	add	x0, sp, #8
	bl	_set_key
	mov	x23, x0
	ldr	x0, [sp, #24]
	add	x1, sp, #8
	bl	_krb5_free_keyblock_contents
	cbnz	w23, LBB0_39
	b	LBB0_46
LBB0_27:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
LBB0_28:
	add	x1, sp, #16
	mov	x0, x19
	bl	_gss_release_buffer_set
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_30
LBB0_29:
	bl	_krb5_free_context
LBB0_30:
	cbz	w23, LBB0_37
; %bb.31:
	cbz	x20, LBB0_33
; %bb.32:
	mov	x0, #0
	mov	x1, x20
	bl	_gss_krb5_free_lucid_sec_context
LBB0_33:
	str	w23, [x19]
LBB0_34:
Lloh14:
	adrp	x8, _GSS_S_FAILURE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GSS_S_FAILURE@GOTPAGEOFF]
LBB0_35:
	ldr	w0, [x8]
LBB0_36:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_37:
	str	wzr, [x19]
Lloh16:
	adrp	x8, _GSS_S_COMPLETE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GSS_S_COMPLETE@GOTPAGEOFF]
	b	LBB0_35
LBB0_38:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w23, [x8]
LBB0_39:
	add	x1, sp, #16
	mov	x0, x19
	bl	_gss_release_buffer_set
	mov	x0, x22
	bl	_krb5_storage_free
	ldr	x0, [sp, #24]
	cbnz	x0, LBB0_29
	b	LBB0_30
LBB0_40:
	add	x24, x20, #24
	mov	x0, x22
	mov	x1, x24
	bl	_krb5_ret_uint32
	mov	x23, x0
	cbnz	w0, LBB0_39
; %bb.41:
	add	x1, sp, #8
	mov	x0, x22
	bl	_krb5_ret_keyblock
	mov	x23, x0
	cbnz	w0, LBB0_39
; %bb.42:
	add	x1, x20, #32
	add	x0, sp, #8
	bl	_set_key
	mov	x23, x0
	ldr	x0, [sp, #24]
	add	x1, sp, #8
	bl	_krb5_free_keyblock_contents
	cbnz	w23, LBB0_39
; %bb.43:
	ldr	w8, [x24]
	cbz	w8, LBB0_46
; %bb.44:
	add	x1, sp, #8
	mov	x0, x22
	bl	_krb5_ret_keyblock
	mov	x23, x0
	cbnz	w0, LBB0_39
; %bb.45:
	add	x1, x20, #28
	b	LBB0_26
LBB0_46:
	mov	w23, #0
	str	x20, [x21]
	b	LBB0_39
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GSS_C_NO_BUFFER_SET,8,3        ; @GSS_C_NO_BUFFER_SET
	.comm	_GSS_C_NO_CONTEXT,8,3           ; @GSS_C_NO_CONTEXT
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_GSS_S_FAILURE,4,2              ; @GSS_S_FAILURE
	.comm	_GSS_KRB5_EXPORT_LUCID_CONTEXT_V1_X,4,2 ; @GSS_KRB5_EXPORT_LUCID_CONTEXT_V1_X
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GSS_S_COMPLETE,4,2             ; @GSS_S_COMPLETE
.subsections_via_symbols
