	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_timeout_index
_remove_timeout_index:                  ## @remove_timeout_index
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r12d
	movq	_num_active_timeouts@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	testl	%edi, %edi
	js	LBB0_2
## %bb.1:
	cmpl	%r12d, %ecx
	jg	LBB0_3
LBB0_2:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	decl	%ecx
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_elog
LBB0_3:
	movq	_active_timeouts@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movslq	%r12d, %rbx
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %edi
	callq	_Assert
	movq	(%r15), %rcx
	movq	(%rcx,%rbx,8), %rax
	movl	$0, (%rax)
	movl	(%r14), %r9d
	leal	1(%r12), %edx
	cmpl	%r9d, %edx
	jge	LBB0_11
## %bb.4:
	movslq	%edx, %rsi
	movq	(%rcx,%rsi,8), %rdx
	movq	%rdx, (%rcx,%rbx,8)
	leaq	1(%rsi), %rcx
	cmpl	%ecx, %r9d
	je	LBB0_11
## %bb.5:
	movl	%r9d, %edx
	subl	%r12d, %edx
	leal	-3(%r9), %edi
	testb	$1, %dl
	jne	LBB0_7
## %bb.6:
	movq	%rcx, %rdx
	movq	%rsi, %rcx
	cmpl	%r12d, %edi
	jne	LBB0_9
	jmp	LBB0_11
LBB0_7:
	movq	(%r15), %rdx
	movq	8(%rdx,%rsi,8), %rbx
	movq	%rbx, (%rdx,%rsi,8)
	addq	$2, %rsi
	movq	%rsi, %rdx
	cmpl	%r12d, %edi
	je	LBB0_11
LBB0_9:
	movl	%r9d, %esi
	negl	%esi
	leaq	1(%rdx), %rbx
	shlq	$32, %rdx
	movabsq	$8589934592, %r8                ## imm = 0x200000000
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movq	-8(%rdi,%rbx,8), %rax
	movslq	%ecx, %rcx
	movq	%rax, (%rdi,%rcx,8)
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rcx
	movq	%rdx, %rdi
	sarq	$29, %rdi
	movq	%rcx, (%rax,%rdi)
	movq	%rbx, %rcx
	addq	$2, %rbx
	leal	(%rsi,%rbx), %eax
	addq	%r8, %rdx
	cmpl	$1, %eax
	jne	LBB0_10
LBB0_11:
	decl	%r9d
	movl	%r9d, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_num_active_timeouts,4,2        ## @num_active_timeouts
	.comm	_FATAL,4,2                      ## @FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timeout index %d out of range 0..%d"

	.comm	_active_timeouts,8,3            ## @active_timeouts
	.no_dead_strip	_remove_timeout_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_timeout_index
_remove_timeout_index:                  ; @remove_timeout_index
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _num_active_timeouts@GOTPAGE
Lloh1:
	ldr	x20, [x20, _num_active_timeouts@GOTPAGEOFF]
	ldr	w8, [x20]
	tbnz	w0, #31, LBB0_2
; %bb.1:
	cmp	w8, w19
	b.gt	LBB0_3
LBB0_2:
Lloh2:
	adrp	x9, _FATAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FATAL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
	sub	w3, w8, #1
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_elog
LBB0_3:
Lloh7:
	adrp	x21, _active_timeouts@GOTPAGE
Lloh8:
	ldr	x21, [x21, _active_timeouts@GOTPAGEOFF]
	ldr	x8, [x21]
	sbfiz	x22, x19, #3, #32
	ldr	x8, [x8, x22]
	ldr	w0, [x8]
	bl	_Assert
	ldr	x10, [x21]
	ldr	x8, [x10, x22]
	str	wzr, [x8]
	ldr	w8, [x20]
	add	w9, w19, #1
	cmp	w9, w8
	b.ge	LBB0_7
; %bb.4:
	sxtw	x11, w19
	ldr	x12, [x10, w9, sxtw #3]
	str	x12, [x10, x11, lsl #3]
	add	w10, w9, #1
	cmp	w8, w10
	b.eq	LBB0_7
; %bb.5:
	sxtw	x11, w9
	lsl	x9, x11, #32
	sub	w10, w8, w19
	sub	w10, w10, #2
	lsl	x11, x11, #3
	add	x11, x11, #8
	mov	x12, #4294967296
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x21]
	ldr	x14, [x13, x11]
	asr	x15, x9, #29
	str	x14, [x13, x15]
	add	x9, x9, x12
	add	x11, x11, #8
	subs	w10, w10, #1
	b.ne	LBB0_6
LBB0_7:
	sub	w8, w8, #1
	str	w8, [x20]
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_num_active_timeouts,4,2        ; @num_active_timeouts
	.comm	_FATAL,4,2                      ; @FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timeout index %d out of range 0..%d"

	.comm	_active_timeouts,8,3            ; @active_timeouts
	.no_dead_strip	_remove_timeout_index
.subsections_via_symbols
