	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_evloop_destroy             ## -- Begin function h2o_evloop_destroy
	.p2align	4, 0x90
_h2o_evloop_destroy:                    ## @h2o_evloop_destroy
	.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
	movl	(%rdi), %edi
	callq	_h2o_timerwheel_get_wake_at
	movq	_UINT64_MAX@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%rdi), %rax
	movq	%rax, 40(%rbx)
	movq	%rdi, 24(%rdi)
	callq	_h2o_socket_close
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rdi), %rax
	movq	%rax, 32(%rbx)
	movq	%rdi, 24(%rdi)
	callq	_h2o_socket_close
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_3
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rdi), %rax
	movq	%rax, 16(%rbx)
	callq	_free
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_4
## %bb.6:
	movq	%rbx, %rdi
	callq	_evloop_do_dispose
	movl	(%rbx), %edi
	callq	_h2o_timerwheel_destroy
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT64_MAX,8,3                 ## @UINT64_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_evloop_destroy             ; -- Begin function h2o_evloop_destroy
	.p2align	2
_h2o_evloop_destroy:                    ; @h2o_evloop_destroy
	.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
	ldr	w0, [x0]
	bl	_h2o_timerwheel_get_wake_at
Lloh0:
	adrp	x8, _UINT64_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UINT64_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0, #24]
	str	x8, [x19, #40]
	str	x0, [x0, #24]
	bl	_h2o_socket_close
	ldr	x0, [x19, #40]
	cbnz	x0, LBB0_1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x0, #24]
	str	x8, [x19, #32]
	str	x0, [x0, #24]
	bl	_h2o_socket_close
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #32]
	cbnz	x0, LBB0_2
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x0, #8]
	str	x8, [x19, #16]
	bl	_free
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #16]
	cbnz	x0, LBB0_4
; %bb.6:
	mov	x0, x19
	bl	_evloop_do_dispose
	ldr	w0, [x19]
	bl	_h2o_timerwheel_destroy
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT64_MAX,8,3                 ; @UINT64_MAX
.subsections_via_symbols
