	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function insert_timeout
_insert_timeout:                        ## @insert_timeout
	.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	%esi, %ebx
	movq	%rdi, %r14
	movq	_num_active_timeouts@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	testl	%esi, %esi
	js	LBB0_2
## %bb.1:
	cmpl	%ebx, %ecx
	jge	LBB0_3
LBB0_2:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_elog
LBB0_3:
	movq	_all_timeouts@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax,%r14,4)
	sete	%dil
	callq	_Assert
	movq	(%r12), %rdx
	movl	$1, (%rdx,%r14,4)
	movslq	(%r15), %r9
	cmpl	%ebx, %r9d
	jle	LBB0_4
## %bb.5:
	movslq	%ebx, %r10
	movl	%r9d, %esi
	subl	%ebx, %esi
	movq	%r10, %r8
	notq	%r8
	addq	%r9, %r8
	movq	%r9, %rdx
	andq	$3, %rsi
	je	LBB0_8
## %bb.6:
	movq	_active_timeouts@GOTPCREL(%rip), %rbx
	movq	%r9, %rax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-1(%rax), %rdx
	movq	(%rbx), %rdi
	movq	-8(%rdi,%rax,8), %rcx
	movq	%rcx, (%rdi,%rax,8)
	movq	%rdx, %rax
	decq	%rsi
	jne	LBB0_7
LBB0_8:
	cmpq	$3, %r8
	jb	LBB0_11
## %bb.9:
	movq	_active_timeouts@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rax
	movq	-8(%rax,%rdx,8), %rcx
	movq	%rcx, (%rax,%rdx,8)
	movq	(%rsi), %rax
	movq	-16(%rax,%rdx,8), %rcx
	movq	%rcx, -8(%rax,%rdx,8)
	movq	(%rsi), %rax
	movq	-24(%rax,%rdx,8), %rcx
	movq	%rcx, -16(%rax,%rdx,8)
	movq	(%rsi), %rax
	movq	-32(%rax,%rdx,8), %rcx
	movq	%rcx, -24(%rax,%rdx,8)
	leaq	-4(%rdx), %rax
	movq	%rax, %rdx
	cmpq	%r10, %rax
	jg	LBB0_10
LBB0_11:
	movq	(%r12), %rdx
	jmp	LBB0_12
LBB0_4:
	movslq	%ebx, %r10
LBB0_12:
	leaq	(%rdx,%r14,4), %rax
	movq	_active_timeouts@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx,%r10,8)
	incl	%r9d
	movl	%r9d, (%r15)
	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	_all_timeouts,8,3               ## @all_timeouts
	.comm	_active_timeouts,8,3            ## @active_timeouts
	.no_dead_strip	_insert_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function insert_timeout
_insert_timeout:                        ; @insert_timeout
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _num_active_timeouts@GOTPAGE
Lloh1:
	ldr	x21, [x21, _num_active_timeouts@GOTPAGEOFF]
	ldr	w3, [x21]
	tbnz	w1, #31, LBB0_2
; %bb.1:
	cmp	w3, w20
	b.ge	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _FATAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_elog
LBB0_3:
Lloh7:
	adrp	x22, _all_timeouts@GOTPAGE
Lloh8:
	ldr	x22, [x22, _all_timeouts@GOTPAGEOFF]
	ldr	x8, [x22]
	lsl	x23, x19, #2
	ldr	w8, [x8, x23]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	ldr	x11, [x22]
	mov	w8, #1
	str	w8, [x11, x23]
	ldrsw	x8, [x21]
Lloh9:
	adrp	x9, _active_timeouts@GOTPAGE
Lloh10:
	ldr	x9, [x9, _active_timeouts@GOTPAGEOFF]
	cmp	w8, w20
	b.le	LBB0_7
; %bb.4:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	sxtw	x10, w20
	mov	x11, x8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9]
	add	x12, x12, x11, lsl #3
	sub	x13, x11, #1
	ldur	x11, [x12, #-8]
	str	x11, [x12]
	mov	x11, x13
	cmp	x13, x10
	b.gt	LBB0_5
; %bb.6:
	ldr	x11, [x22]
	b	LBB0_8
LBB0_7:
	sxtw	x10, w20
LBB0_8:
	add	x11, x11, x19, lsl #2
	ldr	x9, [x9]
	str	x11, [x9, x10, lsl #3]
	add	w8, w8, #1
	str	w8, [x21]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.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	_all_timeouts,8,3               ; @all_timeouts
	.comm	_active_timeouts,8,3            ; @active_timeouts
	.no_dead_strip	_insert_timeout
.subsections_via_symbols
