	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kcm_remove_event               ## -- Begin function kcm_remove_event
	.p2align	4, 0x90
_kcm_remove_event:                      ## @kcm_remove_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	%rsi, -24(%rbp)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_log_event
	movq	_events_mutex@GOTPCREL(%rip), %rdi
	callq	_HEIMDAL_MUTEX_lock
	movq	_events_head@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %rcx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, %rax
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_2
LBB0_4:
	movq	_KRB5_CC_NOTFOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
LBB0_5:
	movq	(%rbx), %rcx
	movq	%rcx, (%rax)
	leaq	-24(%rbp), %rsi
	movl	%r14d, %edi
	callq	_kcm_remove_event_internal
	movl	%eax, %ebx
LBB0_6:
	movq	_events_mutex@GOTPCREL(%rip), %rdi
	callq	_HEIMDAL_MUTEX_unlock
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"removing"

	.comm	_events_mutex,4,2               ## @events_mutex
	.comm	_events_head,8,3                ## @events_head
	.comm	_KRB5_CC_NOTFOUND,4,2           ## @KRB5_CC_NOTFOUND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kcm_remove_event               ; -- Begin function kcm_remove_event
	.p2align	2
_kcm_remove_event:                      ; @kcm_remove_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	str	x1, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_log_event
Lloh2:
	adrp	x0, _events_mutex@GOTPAGE
Lloh3:
	ldr	x0, [x0, _events_mutex@GOTPAGEOFF]
	bl	_HEIMDAL_MUTEX_lock
Lloh4:
	adrp	x8, _events_head@GOTPAGE
Lloh5:
	ldr	x8, [x8, _events_head@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x8]
	cbz	x9, LBB0_4
; %bb.1:
	cmp	x9, x20
	b.eq	LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x9
	ldr	x9, [x9]
	cbz	x9, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x9, x20
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x8, _KRB5_CC_NOTFOUND@GOTPAGE
Lloh8:
	ldr	x8, [x8, _KRB5_CC_NOTFOUND@GOTPAGEOFF]
Lloh9:
	ldr	w19, [x8]
	b	LBB0_7
LBB0_5:
Lloh10:
	adrp	x8, _events_head@GOTPAGE
Lloh11:
	ldr	x8, [x8, _events_head@GOTPAGEOFF]
LBB0_6:
	ldr	x9, [x20]
	str	x9, [x8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_kcm_remove_event_internal
	mov	x19, x0
LBB0_7:
Lloh12:
	adrp	x0, _events_mutex@GOTPAGE
Lloh13:
	ldr	x0, [x0, _events_mutex@GOTPAGEOFF]
	bl	_HEIMDAL_MUTEX_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"removing"

	.comm	_events_mutex,4,2               ; @events_mutex
	.comm	_events_head,8,3                ; @events_head
	.comm	_KRB5_CC_NOTFOUND,4,2           ; @KRB5_CC_NOTFOUND
.subsections_via_symbols
