	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kcm_fire_event
_kcm_fire_event:                        ## @kcm_fire_event
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	$0, -48(%rbp)
	movq	(%rsi), %rbx
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_4
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	32(%rbx), %rsi
	leaq	-48(%rbp), %rdx
	movl	%r15d, %edi
	callq	_kcm_ccache_refresh
	movq	%rax, %r12
	movq	_KRB5KRB_AP_ERR_TKT_EXPIRED@GOTPCREL(%rip), %rax
	movb	$1, %r13b
	cmpq	(%rax), %r12
	jne	LBB0_10
## %bb.3:
	movq	32(%rbx), %rsi
	leaq	-48(%rbp), %rdx
	movl	%r15d, %edi
	callq	_kcm_ccache_acquire
	movq	%rax, %r12
	jmp	LBB0_10
LBB0_4:
	movq	_KRB5_FCC_INTERNAL@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_8
LBB0_5:
	movq	32(%rbx), %rsi
	movl	%r15d, %edi
	callq	_kcm_ccache_destroy_if_empty
	jmp	LBB0_7
LBB0_6:
	movq	32(%rbx), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_kcm_ccache_destroy
LBB0_7:
	movq	%rax, %r12
LBB0_8:
	xorl	%r13d, %r13d
	jmp	LBB0_10
LBB0_9:
	movq	32(%rbx), %rsi
	leaq	-48(%rbp), %rdx
	movl	%r15d, %edi
	callq	_kcm_ccache_acquire
	movq	%rax, %r12
	movb	$1, %r13b
LBB0_10:
	incl	40(%rbx)
	testq	%r12, %r12
	je	LBB0_15
## %bb.11:
	movslq	16(%rbx), %rcx
	movq	%rcx, %rax
	addq	8(%rbx), %rax
	movq	%rax, 8(%rbx)
	movq	_KCM_EVENT_MAX_BACKOFF_TIME@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jge	LBB0_13
## %bb.12:
	addl	%ecx, %ecx
	movl	%ecx, 16(%rbx)
LBB0_13:
	movq	24(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_25
## %bb.14:
	cmpq	%rcx, %rax
	jg	LBB0_24
	jmp	LBB0_25
LBB0_15:
	testb	%r13b, %r13b
	je	LBB0_18
## %bb.16:
	movq	32(%rbx), %rax
	movl	4(%rax), %esi
	leaq	-56(%rbp), %rdx
	movl	%r15d, %edi
	callq	_krb5_unparse_name
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movq	$0, -56(%rbp)
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_18:
	xorl	%r12d, %r12d
	jmp	LBB0_24
LBB0_19:
	movq	-56(%rbp), %rax
LBB0_20:
	cmpl	$131, (%rbx)
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rcx, %rdx
	movq	32(%rbx), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	leaq	L_.str.3(%rip), %r8
	cmovneq	%rax, %r8
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	callq	_kcm_log
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.21:
	callq	_free
LBB0_22:
	movq	-48(%rbp), %rdx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_kcm_ccache_make_default_event
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_24
## %bb.23:
	movl	(%rbx), %eax
	movq	_KCM_EVENT_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_26
LBB0_24:
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_kcm_remove_event_internal
LBB0_25:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_log_event
	xorl	%r12d, %r12d
	jmp	LBB0_25
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_KRB5KRB_AP_ERR_TKT_EXPIRED,8,3 ## @KRB5KRB_AP_ERR_TKT_EXPIRED
	.comm	_KRB5_FCC_INTERNAL,8,3          ## @KRB5_FCC_INTERNAL
	.comm	_KCM_EVENT_MAX_BACKOFF_TIME,4,2 ## @KCM_EVENT_MAX_BACKOFF_TIME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s credentials in cache %s for principal %s"

L_.str.1:                               ## @.str.1
	.asciz	"Acquired"

L_.str.2:                               ## @.str.2
	.asciz	"Renewed"

L_.str.3:                               ## @.str.3
	.asciz	"<none>"

	.comm	_KCM_EVENT_NONE,4,2             ## @KCM_EVENT_NONE
L_.str.4:                               ## @.str.4
	.asciz	"requeuing"

	.no_dead_strip	_kcm_fire_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kcm_fire_event
_kcm_fire_event:                        ; @kcm_fire_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	str	xzr, [sp, #8]
	ldr	x21, [x1]
	ldr	w8, [x21]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_5
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x1, [x21, #32]
	add	x2, sp, #8
	mov	x0, x20
	bl	_kcm_ccache_refresh
Lloh2:
	adrp	x8, _KRB5KRB_AP_ERR_TKT_EXPIRED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KRB5KRB_AP_ERR_TKT_EXPIRED@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
LBB0_3:
	ldr	x1, [x21, #32]
	add	x2, sp, #8
	mov	x0, x20
	bl	_kcm_ccache_acquire
LBB0_4:
	mov	x22, x0
	mov	w8, #1
	b	LBB0_9
LBB0_5:
	mov	w8, #0
Lloh5:
	adrp	x9, _KRB5_FCC_INTERNAL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _KRB5_FCC_INTERNAL@GOTPAGEOFF]
Lloh7:
	ldr	x22, [x9]
	b	LBB0_9
LBB0_6:
	ldr	x1, [x21, #32]
	mov	x0, x20
	bl	_kcm_ccache_destroy_if_empty
	b	LBB0_8
LBB0_7:
	ldr	x8, [x21, #32]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kcm_ccache_destroy
LBB0_8:
	mov	x22, x0
	mov	w8, #0
LBB0_9:
	ldr	w9, [x21, #40]
	add	w9, w9, #1
	str	w9, [x21, #40]
	cbz	x22, LBB0_13
; %bb.10:
	ldrsw	x9, [x21, #16]
	ldr	x8, [x21, #8]
	add	x8, x8, x9
	str	x8, [x21, #8]
Lloh8:
	adrp	x10, _KCM_EVENT_MAX_BACKOFF_TIME@GOTPAGE
Lloh9:
	ldr	x10, [x10, _KCM_EVENT_MAX_BACKOFF_TIME@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ge	LBB0_12
; %bb.11:
	lsl	w9, w9, #1
	str	w9, [x21, #16]
LBB0_12:
	ldr	x9, [x21, #24]
	cmp	x9, #0
	ccmp	x8, x9, #4, ne
	b.gt	LBB0_22
	b	LBB0_23
LBB0_13:
	cbz	w8, LBB0_16
; %bb.14:
	ldr	x8, [x21, #32]
	ldr	w1, [x8, #4]
	mov	x2, sp
	mov	x0, x20
	bl	_krb5_unparse_name
	cbz	x0, LBB0_17
; %bb.15:
	mov	x8, #0
	str	xzr, [sp]
	b	LBB0_18
LBB0_16:
	mov	x22, #0
	b	LBB0_22
LBB0_17:
	ldr	x8, [sp]
LBB0_18:
	ldr	w9, [x21]
Lloh11:
	adrp	x10, l_.str.2@PAGE
Lloh12:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh13:
	adrp	x11, l_.str.1@PAGE
Lloh14:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	w9, #131
	csel	x2, x11, x10, eq
	ldr	x9, [x21, #32]
	ldr	w3, [x9]
Lloh15:
	adrp	x9, l_.str.3@PAGE
Lloh16:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	x8, #0
	csel	x4, x9, x8, eq
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	bl	_kcm_log
	ldr	x0, [sp]
	cbz	x0, LBB0_20
; %bb.19:
	bl	_free
LBB0_20:
	ldr	x2, [sp, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_kcm_ccache_make_default_event
	mov	x22, x0
	cbnz	x0, LBB0_22
; %bb.21:
	ldr	w8, [x21]
Lloh19:
	adrp	x9, _KCM_EVENT_NONE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _KCM_EVENT_NONE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_24
LBB0_22:
	mov	x0, x20
	mov	x1, x19
	bl	_kcm_remove_event_internal
LBB0_23:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_24:
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_log_event
	mov	x22, #0
	b	LBB0_23
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
                                        ; -- End function
	.comm	_KRB5KRB_AP_ERR_TKT_EXPIRED,8,3 ; @KRB5KRB_AP_ERR_TKT_EXPIRED
	.comm	_KRB5_FCC_INTERNAL,8,3          ; @KRB5_FCC_INTERNAL
	.comm	_KCM_EVENT_MAX_BACKOFF_TIME,4,2 ; @KCM_EVENT_MAX_BACKOFF_TIME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s credentials in cache %s for principal %s"

l_.str.1:                               ; @.str.1
	.asciz	"Acquired"

l_.str.2:                               ; @.str.2
	.asciz	"Renewed"

l_.str.3:                               ; @.str.3
	.asciz	"<none>"

	.comm	_KCM_EVENT_NONE,4,2             ; @KCM_EVENT_NONE
l_.str.4:                               ; @.str.4
	.asciz	"requeuing"

	.no_dead_strip	_kcm_fire_event
.subsections_via_symbols
