	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_context_dispose
_on_context_dispose:                    ## @on_context_dispose
	.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	%rsi, %r14
	movq	%rdi, %r15
	leaq	16(%rdi), %rsi
	movq	%r14, %rdi
	callq	_h2o_context_get_handler_context
	movq	%rax, %r12
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	8(%r15), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, (%rcx,%rbx,8)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, %rax
	jne	LBB0_3
## %bb.5:
	movq	%rax, %rbx
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
LBB0_6:
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setne	%dil
	callq	_assert
	movq	8(%r15), %rax
	leaq	(%rax,%rbx,8), %rsi
	leaq	(%rax,%rbx,8), %rdi
	addq	$8, %rdi
	notq	%rbx
	addq	(%r15), %rbx
	movq	%rbx, %rdx
	callq	_memmove
	decq	(%r15)
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_h2o_multithread_unregister_receiver
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_on_context_dispose
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_context_dispose
_on_context_dispose:                    ; @on_context_dispose
	.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	x19, x1
	mov	x20, x0
	add	x1, x0, #16
	mov	x0, x19
	bl	_h2o_context_get_handler_context
	mov	x21, x0
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x22, #0
	ldr	x9, [x20, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x22, lsl #3]
	cmp	x10, x21
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	cmp	x8, x22
	b.ne	LBB0_2
; %bb.4:
	mov	x22, x8
	b	LBB0_6
LBB0_5:
	mov	x22, #0
LBB0_6:
	cmp	x22, x8
	cset	w0, ne
	bl	_assert
	ldp	x9, x8, [x20]
	add	x1, x8, x22, lsl #3
	add	x0, x1, #8
	mvn	x8, x22
	add	x2, x9, x8
	bl	_memmove
	ldr	x8, [x20]
	sub	x8, x8, #1
	str	x8, [x20]
	ldr	w0, [x19]
	mov	x1, x21
	bl	_h2o_multithread_unregister_receiver
	mov	x0, x21
	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	_free
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_on_context_dispose
.subsections_via_symbols
