	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_quicly_get_first_timeout       ## -- Begin function quicly_get_first_timeout
	.p2align	4, 0x90
_quicly_get_first_timeout:              ## @quicly_get_first_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_calc_send_window
	testq	%rax, %rax
	jle	LBB0_3
## %bb.1:
	cmpq	$0, 32(%rbx)
	jne	LBB0_9
## %bb.5:
	leaq	40(%rbx), %rdi
	callq	_quicly_linklist_is_linked
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_scheduler_can_send
	testq	%rax, %rax
	je	LBB0_4
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_3:
	cmpl	$0, 24(%rbx)
	je	LBB0_7
LBB0_4:
	movq	16(%rbx), %rax
	movq	8(%rbx), %rcx
	cmpq	%rax, %rcx
	cmovlq	%rcx, %rax
	movq	(%rbx), %rcx
	cmpq	%rax, %rcx
	cmovlq	%rcx, %rax
	jmp	LBB0_10
LBB0_7:
	movq	(%rbx), %rax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_quicly_get_first_timeout       ; -- Begin function quicly_get_first_timeout
	.p2align	2
_quicly_get_first_timeout:              ; @quicly_get_first_timeout
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w1, #0
	mov	w2, #0
	bl	_calc_send_window
	cmp	x0, #1
	b.lt	LBB0_5
; %bb.1:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_4
; %bb.2:
	add	x0, x19, #40
	bl	_quicly_linklist_is_linked
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_scheduler_can_send
	cbz	x0, LBB0_6
LBB0_4:
	mov	x0, #0
	b	LBB0_8
LBB0_5:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_7
LBB0_6:
	ldp	x9, x8, [x19, #8]
	ldr	x10, [x19]
	cmp	x9, x8
	csel	x8, x9, x8, lt
	cmp	x10, x8
	csel	x0, x10, x8, lt
	b	LBB0_8
LBB0_7:
	ldr	x0, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
