	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function entity_read_do_send_error
_entity_read_do_send_error:             ## @entity_read_do_send_error
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %rbx
	leaq	8(%rdi), %r13
	movq	$0, 24(%rdi)
	movq	$0, 48(%rdi)
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_set_timeout
	movl	40(%rbx), %edi
	callq	_h2o_socket_read_stop
	cmpq	$0, 16(%rbx)
	movq	(%rbx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_OSTREAM_STATE_HEAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.4:
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	incl	(%rax,%r14,4)
	movq	_H2O_SEND_ERROR_HTTP1_CLOSE_CONNECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_h2o_send_error_generic         ## TAILCALL
LBB0_2:
	movq	$0, (%r13)
	movq	_OSTREAM_STATE_DONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cleanup_connection             ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OSTREAM_STATE_HEAD,8,3         ## @OSTREAM_STATE_HEAD
	.comm	_H2O_SEND_ERROR_HTTP1_CLOSE_CONNECTION,4,2 ## @H2O_SEND_ERROR_HTTP1_CLOSE_CONNECTION
	.comm	_OSTREAM_STATE_DONE,8,3         ## @OSTREAM_STATE_DONE
	.no_dead_strip	_entity_read_do_send_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function entity_read_do_send_error
_entity_read_do_send_error:             ; @entity_read_do_send_error
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x24, x2
	mov	x21, x1
	mov	x22, x0
	add	x23, x0, #8
	str	xzr, [x0, #24]
	str	xzr, [x0, #48]
	mov	w1, #0
	mov	x2, #0
	bl	_set_timeout
	ldr	w0, [x22, #40]
	bl	_h2o_socket_read_stop
	ldr	x9, [x22, #16]
	ldr	x8, [x22]
Lloh0:
	adrp	x10, _OSTREAM_STATE_HEAD@GOTPAGE
Lloh1:
	ldr	x10, [x10, _OSTREAM_STATE_HEAD@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, #0
	ccmp	x8, x10, #0, eq
	b.eq	LBB0_3
; %bb.1:
	str	xzr, [x23]
Lloh3:
	adrp	x9, _OSTREAM_STATE_DONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OSTREAM_STATE_DONE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_cleanup_connection
LBB0_3:
	ldr	x8, [x22, #32]
	ldr	x8, [x8]
	lsl	x9, x24, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
Lloh6:
	adrp	x8, _H2O_SEND_ERROR_HTTP1_CLOSE_CONNECTION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _H2O_SEND_ERROR_HTTP1_CLOSE_CONNECTION@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_h2o_send_error_generic
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_OSTREAM_STATE_HEAD,8,3         ; @OSTREAM_STATE_HEAD
	.comm	_H2O_SEND_ERROR_HTTP1_CLOSE_CONNECTION,4,2 ; @H2O_SEND_ERROR_HTTP1_CLOSE_CONNECTION
	.comm	_OSTREAM_STATE_DONE,8,3         ; @OSTREAM_STATE_DONE
	.no_dead_strip	_entity_read_do_send_error
.subsections_via_symbols
