	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kcm_op_get_ticket
_kcm_op_get_ticket:                     ## @kcm_op_get_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %r15d
	movq	%rsi, %r12
	movl	%edi, %r14d
	movq	$0, -64(%rbp)
	leaq	-104(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_krb5_ret_stringz
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	movq	-48(%rbp), %rcx
	movl	%r14d, %edi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_KCM_LOG_REQUEST_NAME
	leaq	-72(%rbp), %rsi
	movq	%r13, %rdi
	callq	_krb5_ret_uint32
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	leaq	-84(%rbp), %rsi
	movq	%r13, %rdi
	callq	_krb5_ret_int32
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	movq	%rax, %rbx
LBB0_11:
	movq	-48(%rbp), %rcx
LBB0_12:
	movq	%rcx, %rdi
	callq	_free
LBB0_13:
	movq	%rbx, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	callq	_krb5_ret_principal
	movq	-48(%rbp), %rcx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %rbx
	jmp	LBB0_12
LBB0_6:
	leaq	-56(%rbp), %r8
	movl	%r14d, %edi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_kcm_ccache_resolve_client
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %rbx
	movq	-64(%rbp), %rsi
	movl	%r14d, %edi
	callq	_krb5_free_principal
	jmp	LBB0_11
LBB0_8:
	movq	-56(%rbp), %rdi
	callq	_HEIMDAL_MUTEX_lock
	movq	-56(%rbp), %rsi
	leaq	-108(%rbp), %rbx
	movl	%r14d, %edi
	movq	%rbx, %rdx
	callq	_kcm_internal_ccache
	movq	-56(%rbp), %rax
	movl	4(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, -96(%rbp)
	movq	$0, -104(%rbp)
	movl	-72(%rbp), %edx
	leaq	-104(%rbp), %r8
	leaq	-80(%rbp), %r9
	movl	%r14d, %edi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	callq	_krb5_get_credentials_with_flags
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi
	callq	_HEIMDAL_MUTEX_unlock
	movq	-64(%rbp), %rsi
	movl	%r14d, %edi
	callq	_krb5_free_principal
	testq	%rbx, %rbx
	jne	LBB0_10
## %bb.9:
	movq	-80(%rbp), %rsi
	movl	%r14d, %edi
	callq	_krb5_free_cred_contents
LBB0_10:
	movq	-56(%rbp), %rsi
	movl	%r14d, %edi
	callq	_kcm_release_ccache
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_kcm_op_get_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_ticket
_kcm_op_get_ticket:                     ; @kcm_op_get_ticket
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	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
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	str	xzr, [sp, #56]
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	add	x1, sp, #64
	mov	x0, x23
	bl	_krb5_ret_stringz
	mov	x20, x0
	cbnz	x0, LBB0_6
; %bb.1:
	ldr	x3, [sp, #64]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_KCM_LOG_REQUEST_NAME
	add	x1, sp, #8
	mov	x0, x23
	bl	_krb5_ret_uint32
	cbnz	x0, LBB0_3
; %bb.2:
	add	x8, sp, #24
	add	x1, x8, #20
	mov	x0, x23
	bl	_krb5_ret_int32
	cbz	x0, LBB0_7
LBB0_3:
	mov	x20, x0
LBB0_4:
	ldr	x3, [sp, #64]
LBB0_5:
	mov	x0, x3
	bl	_free
LBB0_6:
	mov	x0, x20
	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
	add	sp, sp, #144
	ret
LBB0_7:
	add	x1, sp, #56
	mov	x0, x23
	bl	_krb5_ret_principal
	ldr	x3, [sp, #64]
	cbz	x0, LBB0_9
; %bb.8:
	mov	x20, x0
	b	LBB0_5
LBB0_9:
	sub	x4, x29, #56
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_kcm_ccache_resolve_client
	cbz	x0, LBB0_11
; %bb.10:
	mov	x20, x0
	ldr	x1, [sp, #56]
	mov	x0, x19
	bl	_krb5_free_principal
	b	LBB0_4
LBB0_11:
	ldur	x0, [x29, #-56]
	bl	_HEIMDAL_MUTEX_lock
	ldur	x1, [x29, #-56]
	add	x2, sp, #52
	mov	x0, x19
	bl	_kcm_internal_ccache
	ldur	x8, [x29, #-56]
	ldr	w8, [x8, #4]
	str	w8, [sp, #40]
	ldr	x8, [sp, #56]
	stp	xzr, x8, [sp, #24]
	ldr	w2, [sp, #8]
	add	x3, sp, #52
	add	x4, sp, #24
	add	x5, sp, #16
	mov	x0, x19
	mov	w1, #0
	bl	_krb5_get_credentials_with_flags
	mov	x20, x0
	ldur	x0, [x29, #-56]
	bl	_HEIMDAL_MUTEX_unlock
	ldr	x1, [sp, #56]
	mov	x0, x19
	bl	_krb5_free_principal
	cbnz	x20, LBB0_13
; %bb.12:
	ldr	x1, [sp, #16]
	mov	x0, x19
	bl	_krb5_free_cred_contents
LBB0_13:
	ldur	x1, [x29, #-56]
	mov	x0, x19
	bl	_kcm_release_ccache
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_kcm_op_get_ticket
.subsections_via_symbols
