	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_remove_event_timer             ## -- Begin function remove_event_timer
	.p2align	4, 0x90
_remove_event_timer:                    ## @remove_event_timer
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %ebx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	xorl	%edi, %edi
	movq	_et_heap_size@GOTPCREL(%rip), %r15
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.3:
	cmpl	(%r15), %ebx
	jg	LBB0_5
## %bb.4:
	movq	_et_heap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%edi, %edi
	cmpq	%r14, (%rax,%rbx,8)
	sete	%dil
LBB0_5:
	callq	_assert
	movl	$0, (%r14)
	movq	_et_heap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%r15), %rcx
	leal	-1(%rcx), %edx
	movl	%edx, (%r15)
	movl	$1, %r14d
	cmpl	%ecx, %ebx
	jge	LBB0_7
## %bb.6:
	movq	(%rax,%rcx,8), %rdi
	movl	%ebx, %esi
	callq	_basic_et_adjust
	jmp	LBB0_7
LBB0_1:
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_et_heap_size,4,2               ## @et_heap_size
	.comm	_et_heap,8,3                    ## @et_heap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_remove_event_timer             ; -- Begin function remove_event_timer
	.p2align	2
_remove_event_timer:                    ; @remove_event_timer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	w19, [x0]
	cbz	w19, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x21, _et_heap_size@GOTPAGE
Lloh1:
	ldr	x21, [x21, _et_heap_size@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w19, #1
	ccmp	w19, w8, #0, ge
Lloh2:
	adrp	x22, _et_heap@GOTPAGE
Lloh3:
	ldr	x22, [x22, _et_heap@GOTPAGEOFF]
	b.le	LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_8
LBB0_4:
	ldr	x8, [x22]
	ldr	x8, [x8, x19, lsl #3]
	cmp	x8, x20
	cset	w0, eq
LBB0_5:
	bl	_assert
	str	wzr, [x20]
	ldr	x8, [x22]
	ldrsw	x9, [x21]
	sub	w10, w9, #1
	str	w10, [x21]
	cmp	w19, w9
	b.ge	LBB0_7
; %bb.6:
	ldr	x0, [x8, x9, lsl #3]
	mov	x1, x19
	bl	_basic_et_adjust
LBB0_7:
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_et_heap_size,4,2               ; @et_heap_size
	.comm	_et_heap,8,3                    ; @et_heap
.subsections_via_symbols
