	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_timerwheel_get_wake_at     ## -- Begin function h2o_timerwheel_get_wake_at
	.p2align	4, 0x90
_h2o_timerwheel_get_wake_at:            ## @h2o_timerwheel_get_wake_at
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 8(%rdi)
	je	LBB0_22
## %bb.1:
	movq	%rdi, %r14
	movq	(%rdi), %r15
	xorl	%r13d, %r13d
	movq	_H2O_TIMERWHEEL_BITS_PER_WHEEL@GOTPCREL(%rip), %rax
	movq	_H2O_TIMERWHEEL_SLOTS_PER_WHEEL@GOTPCREL(%rip), %rbx
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_16 Depth 2
                                        ##       Child Loop BB0_18 Depth 3
	movq	(%rax), %rcx
	imulq	%r13, %rcx
	movl	$1, %eax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_timer_slot
	cmpq	(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jae	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	shlq	$2, %r12
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r14), %rax
	movq	(%rax,%r13,8), %rdi
	addq	%r12, %rdi
	callq	_h2o_linklist_is_empty
	testl	%eax, %eax
	je	LBB0_23
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	addq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	incq	%rbx
	addq	$4, %r12
	movq	_H2O_TIMERWHEEL_SLOTS_PER_WHEEL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jb	LBB0_4
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%r13), %rbx
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	cmpq	8(%r14), %rbx
	jae	LBB0_16
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r12
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_timer_slot
	movq	%rax, %r13
	movq	16(%r14), %rax
	leaq	(,%r13,4), %rdi
	addq	(%rax,%r12,8), %rdi
	callq	_h2o_linklist_is_empty
	xorl	%ecx, %ecx
	testq	%r13, %r13
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	$11, %ecx
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	movl	$8, %edx
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	%ecx, %edx
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=2
	testl	%edx, %edx
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=2
	incq	%r12
	cmpq	8(%r14), %r12
	jb	LBB0_9
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$11, %edx
	jne	LBB0_23
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_18 Depth 3
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	testq	%r13, %r13
	je	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	%r13, %r12
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %r12
	addq	%r15, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_16 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	16(%r14), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rdi
	addq	%rbx, %rdi
	callq	_h2o_linklist_is_empty
	testl	%eax, %eax
	je	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=3
	addq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	addq	$4, %rbx
	decq	%r13
	jne	LBB0_18
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	_H2O_TIMERWHEEL_SLOTS_PER_WHEEL@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	subq	-48(%rbp), %r15                 ## 8-byte Folded Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %r15
	addq	%r12, %r15
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	cmpq	8(%r14), %rbx
	jb	LBB0_8
	jmp	LBB0_16
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r13
	cmpq	8(%r14), %rbx
	movq	_H2O_TIMERWHEEL_BITS_PER_WHEEL@GOTPCREL(%rip), %rax
	movq	_H2O_TIMERWHEEL_SLOTS_PER_WHEEL@GOTPCREL(%rip), %rbx
	jb	LBB0_2
LBB0_22:
	movq	_UINT64_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_23:
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H2O_TIMERWHEEL_BITS_PER_WHEEL,8,3 ## @H2O_TIMERWHEEL_BITS_PER_WHEEL
	.comm	_H2O_TIMERWHEEL_SLOTS_PER_WHEEL,8,3 ## @H2O_TIMERWHEEL_SLOTS_PER_WHEEL
	.comm	_UINT64_MAX,8,3                 ## @UINT64_MAX
	.comm	_w,4,2                          ## @w
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_timerwheel_get_wake_at     ; -- Begin function h2o_timerwheel_get_wake_at
	.p2align	2
_h2o_timerwheel_get_wake_at:            ; @h2o_timerwheel_get_wake_at
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_18
; %bb.1:
	mov	x20, x0
	mov	x21, #0
Lloh0:
	adrp	x8, _H2O_TIMERWHEEL_BITS_PER_WHEEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _H2O_TIMERWHEEL_BITS_PER_WHEEL@GOTPAGEOFF]
	ldr	x19, [x0]
	mov	w9, #1
	mov	w22, #11
Lloh2:
	adrp	x28, _H2O_TIMERWHEEL_SLOTS_PER_WHEEL@GOTPAGE
Lloh3:
	ldr	x28, [x28, _H2O_TIMERWHEEL_SLOTS_PER_WHEEL@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
                                        ;       Child Loop BB0_14 Depth 3
	ldr	x8, [x8]
	mul	x8, x8, x21
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	lsl	x26, x9, x8
	mov	x0, x21
	mov	x1, x19
	bl	_timer_slot
	mov	x25, x0
	ldr	x8, [x28]
	cmp	x0, x8
	b.hs	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	lsl	x23, x25, #2
	mov	x24, x25
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #16]
	ldr	x8, [x8, x21, lsl #3]
	add	x0, x8, x23
	bl	_h2o_linklist_is_empty
	cbz	w0, LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x19, x19, x26
	add	x24, x24, #1
	ldr	x8, [x28]
	add	x23, x23, #4
	cmp	x24, x8
	b.lo	LBB0_4
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x27, x21, #1
LBB0_7:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
                                        ;       Child Loop BB0_14 Depth 3
	ldr	x8, [x20, #8]
	cmp	x27, x8
	b.hs	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x23, x27
LBB0_9:                                 ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x23
	mov	x1, x19
	bl	_timer_slot
	mov	x24, x0
	ldr	x8, [x20, #16]
	ldr	x8, [x8, x23, lsl #3]
	add	x0, x8, x0, lsl #2
	bl	_h2o_linklist_is_empty
	cmp	x24, #0
	csel	w8, wzr, w22, eq
	cmp	w0, #0
	mov	w9, #8
	csel	w8, w9, w8, eq
	cbnz	w8, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=3
	add	x23, x23, #1
	ldr	x8, [x20, #8]
	cmp	x23, x8
	b.lo	LBB0_9
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	w8, #11
	b.ne	LBB0_19
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=2
	cbz	x25, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=2
	mov	x24, #0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	lsl	x8, x25, x8
	add	x23, x19, x8
	mov	x22, x25
LBB0_14:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x20, #16]
	ldr	x8, [x8, x21, lsl #3]
	add	x0, x8, x24
	bl	_h2o_linklist_is_empty
	cbz	w0, LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=3
	add	x19, x19, x26
	add	x24, x24, #4
	subs	x22, x22, #1
	b.ne	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x28]
	sub	x8, x8, x25
	mov	x25, #0
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	lsl	x8, x8, x9
	add	x19, x8, x23
	mov	w22, #11
	b	LBB0_7
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20, #8]
	mov	x21, x27
	cmp	x27, x8
Lloh4:
	adrp	x8, _H2O_TIMERWHEEL_BITS_PER_WHEEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _H2O_TIMERWHEEL_BITS_PER_WHEEL@GOTPAGEOFF]
	mov	w9, #1
	b.lo	LBB0_2
LBB0_18:
Lloh6:
	adrp	x8, _UINT64_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UINT64_MAX@GOTPAGEOFF]
Lloh8:
	ldr	x19, [x8]
LBB0_19:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_H2O_TIMERWHEEL_BITS_PER_WHEEL,8,3 ; @H2O_TIMERWHEEL_BITS_PER_WHEEL
	.comm	_H2O_TIMERWHEEL_SLOTS_PER_WHEEL,8,3 ; @H2O_TIMERWHEEL_SLOTS_PER_WHEEL
	.comm	_UINT64_MAX,8,3                 ; @UINT64_MAX
	.comm	_w,4,2                          ; @w
.subsections_via_symbols
