	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rdx, %r8
	movq	(%rdi), %r12
	movq	(%rcx), %rdx
	movq	32(%r12), %rdi
	movq	(%rdi), %rax
	subq	%rsi, %rax
	xorl	%ebx, %ebx
	cmpq	%rax, %rdx
	jb	LBB0_2
## %bb.1:
	movq	%rax, (%rcx)
	movl	$1, %ebx
	movq	%rax, %rdx
LBB0_2:
	movl	%ebx, (%r14)
	addq	8(%rdi), %rsi
	movq	%r8, %rdi
	callq	_memcpy
	cmpl	$0, (%r14)
	je	LBB0_8
## %bb.3:
	movq	16(%r12), %r14
	testq	%r14, %r14
	je	LBB0_8
## %bb.4:
	movq	$0, 16(%r12)
	movq	(%r12), %rdi
	movq	24(%r12), %r15
	addq	$8, %r12
	callq	_quicly_sendstate_is_open
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movq	_H2O_SEND_STATE_FINAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_H2O_SEND_STATE_IN_PROGRESS@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	*%r15
LBB0_8:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H2O_SEND_STATE_IN_PROGRESS,4,2 ## @H2O_SEND_STATE_IN_PROGRESS
	.comm	_H2O_SEND_STATE_FINAL,4,2       ## @H2O_SEND_STATE_FINAL
	.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:
	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, x4
	mov	x8, x2
	ldr	x21, [x0]
	ldr	x2, [x3]
	ldr	x9, [x21, #32]
	ldr	x10, [x9]
	sub	x11, x10, x1
	cmp	x2, x11
	b.hs	LBB0_2
; %bb.1:
	mov	w10, #0
	b	LBB0_3
LBB0_2:
	str	x11, [x3]
	mov	w10, #1
	mov	x2, x11
LBB0_3:
	str	w10, [x19]
	ldr	x9, [x9, #8]
	add	x1, x9, x1
	mov	x0, x8
	bl	_memcpy
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.4:
	ldr	x19, [x21, #16]
	cbz	x19, LBB0_6
; %bb.5:
	str	xzr, [x21, #16]
	ldr	x22, [x21, #24]
	add	x20, x21, #8
	ldr	x0, [x21]
	bl	_quicly_sendstate_is_open
Lloh0:
	adrp	x8, _H2O_SEND_STATE_IN_PROGRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _H2O_SEND_STATE_IN_PROGRESS@GOTPAGEOFF]
Lloh2:
	adrp	x9, _H2O_SEND_STATE_FINAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _H2O_SEND_STATE_FINAL@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	blr	x22
LBB0_6:
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_H2O_SEND_STATE_IN_PROGRESS,4,2 ; @H2O_SEND_STATE_IN_PROGRESS
	.comm	_H2O_SEND_STATE_FINAL,4,2       ; @H2O_SEND_STATE_FINAL
	.no_dead_strip	_on_send_emit
.subsections_via_symbols
