	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kcm_run_events                 ## -- Begin function kcm_run_events
	.p2align	4, 0x90
_kcm_run_events:                        ## @kcm_run_events
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	_events_mutex@GOTPCREL(%rip), %rdi
	callq	_HEIMDAL_MUTEX_lock
	movq	_last_run@GOTPCREL(%rip), %rcx
	movq	_KCM_EVENT_QUEUE_INTERVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	(%rcx), %rax
	cmpq	%r15, %rax
	jg	LBB0_13
## %bb.1:
	movq	_events_head@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_2
LBB0_12:
	movq	_last_run@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
LBB0_13:
	movq	_events_mutex@GOTPCREL(%rip), %rdi
	callq	_HEIMDAL_MUTEX_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	32(%rax), %rcx
	addq	$32, %rbx
	movq	%rcx, %rax
	testq	%rcx, %rcx
	je	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r15, 8(%rax)
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r15, %rax
	jg	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_kcm_remove_event_internal
	leaq	L_.str.1(%rip), %r12
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_kcm_fire_event
	leaq	L_.str(%rip), %r12
	testq	%rax, %rax
	je	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rcx
	movq	24(%rcx), %rcx
	movl	(%rcx), %r13d
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_krb5_get_err_text
	movl	$1, %edi
	movq	%r12, %rsi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_kcm_log
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_events_mutex,4,2               ## @events_mutex
	.comm	_last_run,8,3                   ## @last_run
	.comm	_KCM_EVENT_QUEUE_INTERVAL,8,3   ## @KCM_EVENT_QUEUE_INTERVAL
	.comm	_events_head,8,3                ## @events_head
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not fire event for cache %s: %s"

L_.str.1:                               ## @.str.1
	.asciz	"Could not expire event for cache %s: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kcm_run_events                 ; -- Begin function kcm_run_events
	.p2align	2
_kcm_run_events:                        ; @kcm_run_events
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, _events_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _events_mutex@GOTPAGEOFF]
	bl	_HEIMDAL_MUTEX_lock
Lloh2:
	adrp	x24, _last_run@GOTPAGE
Lloh3:
	ldr	x24, [x24, _last_run@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh4:
	adrp	x9, _KCM_EVENT_QUEUE_INTERVAL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _KCM_EVENT_QUEUE_INTERVAL@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x8, x9, x8
	cmp	x8, x19
	b.gt	LBB0_14
; %bb.1:
Lloh7:
	adrp	x8, _events_head@GOTPAGE
Lloh8:
	ldr	x8, [x8, _events_head@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.2:
Lloh10:
	adrp	x21, _events_head@GOTPAGE
Lloh11:
	ldr	x21, [x21, _events_head@GOTPAGEOFF]
Lloh12:
	adrp	x25, l_.str.1@PAGE
Lloh13:
	add	x25, x25, l_.str.1@PAGEOFF
Lloh14:
	adrp	x26, l_.str@PAGE
Lloh15:
	add	x26, x26, l_.str@PAGEOFF
	b	LBB0_8
LBB0_3:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_kcm_fire_event
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x1, x0
	mov	x22, x26
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, #24]
	ldr	w23, [x8]
	mov	x0, x20
	bl	_krb5_get_err_text
	mov	x3, x0
	mov	w0, #1
	mov	x1, x22
	mov	x2, x23
	bl	_kcm_log
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x21]
	cbz	x8, LBB0_13
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x8, #32]!
	mov	x21, x8
	mov	x8, x9
	cbz	x9, LBB0_13
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8]
	cbz	x9, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x8, #8]
	cmp	x9, x19
	b.le	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x8, #16]
	cmp	x8, #0
	ccmp	x8, x19, #0, ne
	b.gt	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_kcm_remove_event_internal
	cbz	x0, LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x1, x0
	mov	x22, x25
	b	LBB0_5
LBB0_13:
	str	x19, [x24]
LBB0_14:
Lloh16:
	adrp	x0, _events_mutex@GOTPAGE
Lloh17:
	ldr	x0, [x0, _events_mutex@GOTPAGEOFF]
	bl	_HEIMDAL_MUTEX_unlock
	mov	x0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_events_mutex,4,2               ; @events_mutex
	.comm	_last_run,8,3                   ; @last_run
	.comm	_KCM_EVENT_QUEUE_INTERVAL,8,3   ; @KCM_EVENT_QUEUE_INTERVAL
	.comm	_events_head,8,3                ; @events_head
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not fire event for cache %s: %s"

l_.str.1:                               ; @.str.1
	.asciz	"Could not expire event for cache %s: %s"

.subsections_via_symbols
