	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_timeout                    ## -- Begin function add_timeout
	.p2align	4, 0x90
_add_timeout:                           ## @add_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
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_MID_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rdx, %rsi
	callq	_DH_DbgPrint
	movq	_timeouts@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.1:
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rax), %rcx
	movq	%rax, %rdx
	testq	%rcx, %rcx
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	cmpq	%rbx, (%rcx)
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r15, 8(%rax)
	jne	LBB0_7
## %bb.4:
	movq	24(%rax), %rcx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.5:
	movq	%rcx, 24(%rdx)
	jmp	LBB0_12
LBB0_8:
	movq	_free_timeouts@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	24(%rax), %rdx
	movq	%rdx, (%rcx)
	jmp	LBB0_11
LBB0_10:
	movl	$32, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_21
LBB0_11:
	movq	%rbx, (%rax)
	movq	%r15, 8(%rax)
LBB0_12:
	movq	(%r12), %rcx
LBB0_13:
	movq	%r14, 16(%rax)
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.14:
	cmpq	%r14, 16(%rcx)
	jle	LBB0_16
LBB0_15:
	movq	%rcx, 24(%rax)
	movq	%rax, (%r12)
LBB0_20:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rdx
	movq	24(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpq	%r14, 16(%rcx)
	jle	LBB0_16
## %bb.18:
	movq	%rcx, 24(%rax)
	movq	%rax, 24(%rdx)
	jmp	LBB0_20
LBB0_19:
	movq	%rax, 24(%rdx)
	movq	$0, 24(%rax)
	jmp	LBB0_20
LBB0_21:
	leaq	L_.str.1(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_6:
	movq	%rcx, (%r12)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_MID_TRACE,4,2                  ## @MID_TRACE
	.comm	_timeouts,8,3                   ## @timeouts
	.comm	_free_timeouts,8,3              ## @free_timeouts
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Can't allocate timeout structure!"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_timeout                    ; -- Begin function add_timeout
	.p2align	2
_add_timeout:                           ; @add_timeout
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MID_TRACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MID_TRACE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x2
	bl	_DH_DbgPrint
Lloh3:
	adrp	x22, _timeouts@GOTPAGE
Lloh4:
	ldr	x22, [x22, _timeouts@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x9, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x0, #24]
	mov	x9, x0
	cbz	x8, LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x8
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x0, #8]
	cmp	x8, x20
	b.ne	LBB0_2
; %bb.5:
	ldr	x8, [x0, #24]
	cbz	x9, LBB0_20
; %bb.6:
	str	x8, [x9, #24]
	b	LBB0_11
LBB0_7:
Lloh5:
	adrp	x8, _free_timeouts@GOTPAGE
Lloh6:
	ldr	x8, [x8, _free_timeouts@GOTPAGEOFF]
	ldr	x0, [x8]
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x9, [x0, #24]
	str	x9, [x8]
	b	LBB0_10
LBB0_9:
	mov	w0, #32
	bl	_malloc
	cbz	x0, LBB0_19
LBB0_10:
	stp	x21, x20, [x0]
LBB0_11:
	ldr	x8, [x22]
	str	x19, [x0, #16]
	cbz	x8, LBB0_13
LBB0_12:
	ldr	x9, [x8, #16]
	cmp	x9, x19
	b.le	LBB0_15
LBB0_13:
	str	x8, [x0, #24]
	str	x0, [x22]
LBB0_14:
	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
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x9, x8
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x10, [x8, #16]
	cmp	x10, x19
	b.le	LBB0_15
; %bb.17:
	str	x8, [x0, #24]
	str	x0, [x9, #24]
	b	LBB0_14
LBB0_18:
	str	x0, [x9, #24]
	str	xzr, [x0, #24]
	b	LBB0_14
LBB0_19:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	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
	b	_error
LBB0_20:
	str	x8, [x22]
	str	x19, [x0, #16]
	cbnz	x8, LBB0_12
	b	LBB0_13
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MID_TRACE,4,2                  ; @MID_TRACE
	.comm	_timeouts,8,3                   ; @timeouts
	.comm	_free_timeouts,8,3              ; @free_timeouts
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Can't allocate timeout structure!"

.subsections_via_symbols
