	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_send_emit
_on_send_emit:                          ## @on_send_emit
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	(%rdi), %r8
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %rax
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	leaq	(%rdx,%rax,4), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	16(%r8), %r14
	testq	%rsi, %rsi
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r12
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r14, %r13
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	cmpq	32(%r8), %r15
	setb	%dil
	callq	_assert
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movq	40(%r8), %rax
	movq	(%rax,%rbx), %rax
	subq	%r13, %rax
	cmpq	%rax, %r12
	jb	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	addq	$16, %rbx
	movl	$0, %r13d
	movl	$0, %r14d
	subq	%rax, %r12
	jne	LBB0_3
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_4:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %r14
LBB0_6:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rax
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	subq	%r12, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leaq	12(%r8), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	-1(%r15), %rax
	shlq	$4, %r15
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rax
	cmpq	32(%r8), %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	40(%r8), %rax
	leaq	(%rax,%r15), %rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	addq	%rcx, %r14
	movq	(%rax,%r15), %rcx
	movq	8(%rax,%r15), %rax
	subq	%r14, %rcx
	movq	%r13, %rbx
	subq	%r12, %rbx
	sarq	$2, %rbx
	cmpq	%rcx, %rbx
	cmovaeq	%rcx, %rbx
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_h2o_iovec_init
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	*-48(%rbp)                      ## 8-byte Folded Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	addq	$16, %r15
	leaq	(%r12,%rbx,4), %r12
	movl	$0, %r14d
	movl	$0, %ecx
	cmpq	%r13, %r12
	movq	-112(%rbp), %rax                ## 8-byte Reload
	jne	LBB0_9
## %bb.13:
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	sarq	$2, %rcx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, (%rax)
	jne	LBB0_14
	jmp	LBB0_19
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	jmp	LBB0_19
LBB0_10:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	subq	-88(%rbp), %r12                 ## 8-byte Folded Reload
	sarq	$2, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
LBB0_14:
	movq	(%r8), %rax
	movq	_H2O_SEND_STATE_IN_PROGRESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.15:
	cmpl	$0, 24(%r8)
	jne	LBB0_19
## %bb.16:
	movq	%r8, %rdi
	callq	_retain_sendvecs
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	$1, 24(%r8)
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_h2o_proceed_response_deferred
	jmp	LBB0_19
LBB0_18:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	8(%r8), %edi
	movq	_H2O_HTTP3_ERROR_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r8, %rbx
	callq	_quicly_reset_stream
	movq	_H2O_HTTP3_SERVER_STREAM_STATE_CLOSE_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_set_state
LBB0_19:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H2O_SEND_STATE_IN_PROGRESS,8,3 ## @H2O_SEND_STATE_IN_PROGRESS
	.comm	_H2O_HTTP3_ERROR_INTERNAL,4,2   ## @H2O_HTTP3_ERROR_INTERNAL
	.comm	_H2O_HTTP3_SERVER_STREAM_STATE_CLOSE_WAIT,4,2 ## @H2O_HTTP3_SERVER_STREAM_STATE_CLOSE_WAIT
	.no_dead_strip	_on_send_emit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_send_emit
_on_send_emit:                          ; @on_send_emit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	stp	x2, x4, [sp, #16]               ; 16-byte Folded Spill
	ldr	x19, [x0]
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x8, [x3]
	add	x28, x2, x8, lsl #2
	ldr	x8, [x19, #16]
	cbz	x1, LBB0_4
; %bb.1:
	mov	x23, x1
	mov	x24, #0
	mov	x21, #0
	mov	x20, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	cmp	x21, x8
	cset	w0, lo
	bl	_assert
	ldr	x8, [x19, #40]
	ldr	x8, [x8, x24]
	sub	x8, x8, x20
	subs	x10, x23, x8
	b.lo	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, #0
	mov	x9, #0
	mov	x8, #0
	add	x21, x21, #1
	add	x24, x24, #16
	mov	x23, x10
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	x9, #0
	mov	x21, #0
	b	LBB0_6
LBB0_5:
	mov	x9, x23
	mov	x8, x20
LBB0_6:
	ldp	x24, x10, [sp, #16]             ; 16-byte Folded Reload
	str	wzr, [x10]
	subs	x10, x28, x24
	b.eq	LBB0_12
; %bb.7:
	str	x10, [sp]                       ; 8-byte Folded Spill
	add	x23, x19, #12
	sub	x20, x21, #1
	lsl	x21, x21, #4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #32]
	add	x20, x20, #1
	cmp	x20, x10
	b.eq	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x10, [x19, #40]
	add	x26, x10, x21
	ldp	x10, x11, [x26]
	add	x27, x8, x9
	sub	x8, x10, x27
	sub	x9, x28, x24
	asr	x9, x9, #2
	cmp	x9, x8
	csel	x25, x9, x8, lo
	ldr	x22, [x11]
	mov	x0, x24
	mov	x1, x25
	bl	_h2o_iovec_init
	mov	x2, x0
	mov	x0, x26
	mov	x1, x23
	mov	x3, x27
	blr	x22
	cbz	w0, LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x8, #0
	mov	x9, #0
	add	x21, x21, #16
	add	x24, x24, x25, lsl #2
	cmp	x24, x28
	b.ne	LBB0_8
; %bb.11:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
	ldp	x9, x10, [sp]                   ; 16-byte Folded Reload
	asr	x9, x9, #2
	str	x9, [x10]
	cbnz	w8, LBB0_14
	b	LBB0_19
LBB0_12:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	xzr, [x8]
	b	LBB0_19
LBB0_13:
	mov	w8, #1
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	str	w8, [x9]
	ldp	x9, x8, [sp, #8]                ; 16-byte Folded Reload
	sub	x8, x24, x8
	asr	x8, x8, #2
	str	x8, [x9]
LBB0_14:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _H2O_SEND_STATE_IN_PROGRESS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _H2O_SEND_STATE_IN_PROGRESS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.15:
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_19
; %bb.16:
	mov	x0, x19
	bl	_retain_sendvecs
	cbz	w0, LBB0_18
; %bb.17:
	mov	w8, #1
	str	w8, [x19, #24]
	mov	x0, x23
	bl	_h2o_proceed_response_deferred
	b	LBB0_19
LBB0_18:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	xzr, [x8]
	mov	w8, #1
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	str	w8, [x9]
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x8, _H2O_HTTP3_ERROR_INTERNAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _H2O_HTTP3_ERROR_INTERNAL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_quicly_reset_stream
Lloh6:
	adrp	x8, _H2O_HTTP3_SERVER_STREAM_STATE_CLOSE_WAIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _H2O_HTTP3_SERVER_STREAM_STATE_CLOSE_WAIT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_set_state
LBB0_19:
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_H2O_SEND_STATE_IN_PROGRESS,8,3 ; @H2O_SEND_STATE_IN_PROGRESS
	.comm	_H2O_HTTP3_ERROR_INTERNAL,4,2   ; @H2O_HTTP3_ERROR_INTERNAL
	.comm	_H2O_HTTP3_SERVER_STREAM_STATE_CLOSE_WAIT,4,2 ; @H2O_HTTP3_SERVER_STREAM_STATE_CLOSE_WAIT
	.no_dead_strip	_on_send_emit
.subsections_via_symbols
