	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kcm_op_get_initial_ticket
_kcm_op_get_initial_ticket:             ## @kcm_op_get_initial_ticket
	.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	%rcx, %rbx
	movl	%edx, %r15d
	movq	%rsi, %r12
	movl	%edi, %r14d
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	leaq	-52(%rbp), %rdi
	callq	_krb5_keyblock_zero
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_krb5_ret_stringz
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_16
## %bb.1:
	movq	-64(%rbp), %rcx
	movl	%r14d, %edi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_KCM_LOG_REQUEST_NAME
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_krb5_ret_int8
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	%rax, %r13
	movq	-64(%rbp), %rdi
	callq	_free
LBB0_16:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpq	$0, -80(%rbp)
	je	LBB0_5
## %bb.4:
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_krb5_ret_principal
	testq	%rax, %rax
	jne	LBB0_2
LBB0_5:
	leaq	-52(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_krb5_ret_keyblock
	movq	-64(%rbp), %rcx
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rax, %r13
	movq	%rcx, %rdi
	callq	_free
	movq	-72(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.7:
	movl	%r14d, %edi
	callq	_krb5_free_principal
	jmp	LBB0_16
LBB0_8:
	leaq	-48(%rbp), %r8
	movl	%r14d, %edi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_kcm_ccache_resolve_client
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_13
## %bb.9:
	movq	-48(%rbp), %rdi
	callq	_HEIMDAL_MUTEX_lock
	movq	-48(%rbp), %rsi
	movq	16(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_krb5_free_principal
	movq	-48(%rbp), %rsi
	movq	$0, 16(%rsi)
LBB0_11:
	addq	$8, %rsi
	movl	%r14d, %edi
	callq	_krb5_free_keyblock
	movq	-72(%rbp), %rax
	movq	-48(%rbp), %rsi
	movq	%rax, 16(%rsi)
	movl	-52(%rbp), %eax
	movl	%eax, 8(%rsi)
	movq	_KCM_FLAGS_USE_CACHED_KEY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	orl	%eax, 4(%rsi)
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_kcm_ccache_enqueue_default
	movq	-48(%rbp), %rdi
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	%rax, %r13
	movq	$0, 16(%rdi)
	addq	$8, %rdi
	callq	_krb5_keyblock_zero
	movl	(%rbx), %eax
	notl	%eax
	movq	-48(%rbp), %rdi
	andl	%eax, 4(%rdi)
	callq	_HEIMDAL_MUTEX_unlock
LBB0_13:
	movq	-64(%rbp), %rdi
	callq	_free
	movq	-72(%rbp), %rsi
	movl	%r14d, %edi
	callq	_krb5_free_principal
	leaq	-52(%rbp), %rsi
	movl	%r14d, %edi
	callq	_krb5_free_keyblock
LBB0_15:
	movq	-48(%rbp), %rsi
	movl	%r14d, %edi
	callq	_kcm_release_ccache
	jmp	LBB0_16
LBB0_14:
	callq	_HEIMDAL_MUTEX_unlock
	movq	-64(%rbp), %rdi
	callq	_free
	xorl	%r13d, %r13d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_KCM_FLAGS_USE_CACHED_KEY,4,2   ## @KCM_FLAGS_USE_CACHED_KEY
	.no_dead_strip	_kcm_op_get_initial_ticket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kcm_op_get_initial_ticket
_kcm_op_get_initial_ticket:             ; @kcm_op_get_initial_ticket
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	stp	xzr, xzr, [sp, #16]
	add	x0, sp, #12
	bl	_krb5_keyblock_zero
	add	x1, sp, #32
	mov	x0, x23
	bl	_krb5_ret_stringz
	mov	x20, x0
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	x3, [sp, #32]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_KCM_LOG_REQUEST_NAME
	add	x1, sp, #24
	mov	x0, x23
	bl	_krb5_ret_int8
	cbz	x0, LBB0_4
LBB0_2:
	mov	x20, x0
	ldr	x0, [sp, #32]
	bl	_free
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_6
; %bb.5:
	add	x1, sp, #16
	mov	x0, x23
	bl	_krb5_ret_principal
	cbnz	x0, LBB0_2
LBB0_6:
	add	x1, sp, #12
	mov	x0, x23
	bl	_krb5_ret_keyblock
	ldr	x3, [sp, #32]
	cbz	x0, LBB0_9
; %bb.7:
	mov	x20, x0
	mov	x0, x3
	bl	_free
	ldr	x1, [sp, #16]
	cbz	x1, LBB0_3
; %bb.8:
	mov	x0, x19
	bl	_krb5_free_principal
	b	LBB0_3
LBB0_9:
	add	x4, sp, #40
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_kcm_ccache_resolve_client
	mov	x20, x0
	cbnz	x0, LBB0_14
; %bb.10:
	ldr	x0, [sp, #40]
	bl	_HEIMDAL_MUTEX_lock
	ldr	x8, [sp, #40]
	ldr	x1, [x8, #16]
	cbz	x1, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_krb5_free_principal
	ldr	x8, [sp, #40]
	str	xzr, [x8, #16]
LBB0_12:
	add	x1, x8, #8
	mov	x0, x19
	bl	_krb5_free_keyblock
	ldr	x8, [sp, #16]
	ldr	x1, [sp, #40]
	str	x8, [x1, #16]
Lloh0:
	adrp	x21, _KCM_FLAGS_USE_CACHED_KEY@GOTPAGE
Lloh1:
	ldr	x21, [x21, _KCM_FLAGS_USE_CACHED_KEY@GOTPAGEOFF]
	ldr	w8, [sp, #12]
	ldr	w9, [x21]
	ldr	w10, [x1, #4]
	orr	w9, w10, w9
	stp	w9, w8, [x1, #4]
	mov	x0, x19
	mov	x2, #0
	bl	_kcm_ccache_enqueue_default
	mov	x20, x0
	ldr	x0, [sp, #40]
	cbz	x20, LBB0_16
; %bb.13:
	str	xzr, [x0, #16]
	add	x0, x0, #8
	bl	_krb5_keyblock_zero
	ldr	w8, [x21]
	ldr	x0, [sp, #40]
	ldr	w9, [x0, #4]
	bic	w8, w9, w8
	str	w8, [x0, #4]
	bl	_HEIMDAL_MUTEX_unlock
LBB0_14:
	ldr	x0, [sp, #32]
	bl	_free
	ldr	x1, [sp, #16]
	mov	x0, x19
	bl	_krb5_free_principal
	add	x1, sp, #12
	mov	x0, x19
	bl	_krb5_free_keyblock
LBB0_15:
	ldr	x1, [sp, #40]
	mov	x0, x19
	bl	_kcm_release_ccache
	b	LBB0_3
LBB0_16:
	bl	_HEIMDAL_MUTEX_unlock
	ldr	x0, [sp, #32]
	bl	_free
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_KCM_FLAGS_USE_CACHED_KEY,4,2   ; @KCM_FLAGS_USE_CACHED_KEY
	.no_dead_strip	_kcm_op_get_initial_ticket
.subsections_via_symbols
