	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__gsskrb5_init                  ## -- Begin function _gsskrb5_init
	.p2align	4, 0x90
__gsskrb5_init:                         ## @_gsskrb5_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_context_mutex@GOTPCREL(%rip), %rdi
	callq	_HEIMDAL_MUTEX_lock
	movq	_created_key@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_destroy_context@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_context_key@GOTPCREL(%rip), %rdi
	xorl	%edx, %edx
	callq	_HEIMDAL_key_create
	movl	$1, (%rbx)
LBB0_2:
	movq	_context_mutex@GOTPCREL(%rip), %rdi
	callq	_HEIMDAL_MUTEX_unlock
	movq	_context_key@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_HEIMDAL_getspecific
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_4:
	movq	%r14, %rdi
	callq	_krb5_init_context
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	(%r15), %edi
	movq	(%r14), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_HEIMDAL_setspecific
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_context_mutex,4,2              ## @context_mutex
	.comm	_created_key,4,2                ## @created_key
	.comm	_context_key,4,2                ## @context_key
	.comm	_destroy_context,4,2            ## @destroy_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__gsskrb5_init                  ; -- Begin function _gsskrb5_init
	.p2align	2
__gsskrb5_init:                         ; @_gsskrb5_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, _context_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _context_mutex@GOTPAGEOFF]
	bl	_HEIMDAL_MUTEX_lock
Lloh2:
	adrp	x20, _created_key@GOTPAGE
Lloh3:
	ldr	x20, [x20, _created_key@GOTPAGEOFF]
	ldr	w8, [x20]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _destroy_context@GOTPAGE
Lloh5:
	ldr	x8, [x8, _destroy_context@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x0, _context_key@GOTPAGE
Lloh8:
	ldr	x0, [x0, _context_key@GOTPAGEOFF]
	mov	x2, #0
	bl	_HEIMDAL_key_create
	mov	w8, #1
	str	w8, [x20]
LBB0_2:
Lloh9:
	adrp	x0, _context_mutex@GOTPAGE
Lloh10:
	ldr	x0, [x0, _context_mutex@GOTPAGEOFF]
	bl	_HEIMDAL_MUTEX_unlock
Lloh11:
	adrp	x20, _context_key@GOTPAGE
Lloh12:
	ldr	x20, [x20, _context_key@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_HEIMDAL_getspecific
	str	x0, [x19]
	cbz	x0, LBB0_4
LBB0_3:
	mov	x0, #0
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_krb5_init_context
	cbz	x0, LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w0, [x20]
	ldr	x1, [x19]
	mov	x2, #0
	bl	_HEIMDAL_setspecific
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_context_mutex,4,2              ; @context_mutex
	.comm	_created_key,4,2                ; @created_key
	.comm	_context_key,4,2                ; @context_key
	.comm	_destroy_context,4,2            ; @destroy_context
.subsections_via_symbols
