	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_request_body_chunk
_handle_request_body_chunk:             ## @handle_request_body_chunk
	.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
	movl	%ecx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	24(%rsi), %rax
	addq	%rdx, %rax
	movq	%rax, 24(%rsi)
	movq	(%rdi), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rcx), %rax
	jbe	LBB0_3
## %bb.1:
	movl	16(%rbx), %esi
	movq	_H2O_HTTP2_ERROR_REFUSED_STREAM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	%rdx, %r12
	movq	32(%rbx), %rcx
	movq	_SIZE_MAX@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_6
## %bb.4:
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.5:
	cmpq	%rcx, %rax
	jne	LBB0_15
LBB0_6:
	cmpl	$0, 64(%rbx)
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_h2o_http2_stream_set_blocked_by_server
LBB0_8:
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.9:
	movq	_H2O_HTTP2_STREAM_STATE_REQ_PENDING@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, (%rbx)
	jge	LBB0_12
## %bb.10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_h2o_http2_stream_set_state
	cmpq	$0, 56(%rbx)
	je	LBB0_12
## %bb.11:
	movq	_H2O_HTTP2_STREAM_STATE_SEND_HEADERS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_h2o_http2_stream_set_state
LBB0_12:
	movl	48(%rbx), %edi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	*40(%rbx)
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movl	16(%rbx), %esi
	movq	_H2O_HTTP2_ERROR_STREAM_CLOSED@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_16:
	testl	%r15d, %r15d
	je	LBB0_20
## %bb.17:
	cmpq	$0, 8(%rbx)
	je	LBB0_19
## %bb.18:
	movq	%rbx, %rdi
	callq	_finish_body_streaming
LBB0_19:
	movq	(%rbx), %rax
	movq	_H2O_HTTP2_STREAM_STATE_END_STREAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.21:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_h2o_http2_stream_close         ## TAILCALL
LBB0_14:
	cmpq	%rcx, %rax
	jbe	LBB0_6
LBB0_15:
	movl	16(%rbx), %esi
	movq	_H2O_HTTP2_ERROR_PROTOCOL@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_stream_send_error
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_h2o_http2_stream_reset         ## TAILCALL
LBB0_20:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H2O_HTTP2_ERROR_REFUSED_STREAM,4,2 ## @H2O_HTTP2_ERROR_REFUSED_STREAM
	.comm	_SIZE_MAX,8,3                   ## @SIZE_MAX
	.comm	_H2O_HTTP2_ERROR_PROTOCOL,4,2   ## @H2O_HTTP2_ERROR_PROTOCOL
	.comm	_H2O_HTTP2_STREAM_STATE_REQ_PENDING,8,3 ## @H2O_HTTP2_STREAM_STATE_REQ_PENDING
	.comm	_H2O_HTTP2_STREAM_STATE_SEND_HEADERS,8,3 ## @H2O_HTTP2_STREAM_STATE_SEND_HEADERS
	.comm	_H2O_HTTP2_ERROR_STREAM_CLOSED,4,2 ## @H2O_HTTP2_ERROR_STREAM_CLOSED
	.comm	_H2O_HTTP2_STREAM_STATE_END_STREAM,8,3 ## @H2O_HTTP2_STREAM_STATE_END_STREAM
	.no_dead_strip	_handle_request_body_chunk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_request_body_chunk
_handle_request_body_chunk:             ; @handle_request_body_chunk
	.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
	ldr	x8, [x1, #24]
	ldr	x9, [x0]
	ldr	x9, [x9]
	ldr	x9, [x9]
	add	x8, x8, x2
	cmp	x8, x9
	str	x8, [x1, #24]
	b.ls	LBB0_2
; %bb.1:
	ldr	w1, [x19, #16]
Lloh0:
	adrp	x8, _H2O_HTTP2_ERROR_REFUSED_STREAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_REFUSED_STREAM@GOTPAGEOFF]
	b	LBB0_20
LBB0_2:
	mov	x21, x3
	mov	x22, x2
	ldr	x9, [x19, #32]
Lloh2:
	adrp	x10, _SIZE_MAX@GOTPAGE
Lloh3:
	ldr	x10, [x10, _SIZE_MAX@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_5
; %bb.3:
	cmp	x8, x9
	cbz	w21, LBB0_18
; %bb.4:
	b.ne	LBB0_19
LBB0_5:
	ldr	w8, [x19, #64]
	cbnz	w8, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_h2o_http2_stream_set_blocked_by_server
LBB0_7:
	cbz	w21, LBB0_11
; %bb.8:
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _H2O_HTTP2_STREAM_STATE_REQ_PENDING@GOTPAGE
Lloh6:
	ldr	x9, [x9, _H2O_HTTP2_STREAM_STATE_REQ_PENDING@GOTPAGEOFF]
Lloh7:
	ldr	x2, [x9]
	cmp	x8, x2
	b.ge	LBB0_11
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	bl	_h2o_http2_stream_set_state
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_11
; %bb.10:
Lloh8:
	adrp	x8, _H2O_HTTP2_STREAM_STATE_SEND_HEADERS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _H2O_HTTP2_STREAM_STATE_SEND_HEADERS@GOTPAGEOFF]
Lloh10:
	ldr	x2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_h2o_http2_stream_set_state
LBB0_11:
	ldr	x8, [x19, #40]
	ldr	w0, [x19, #48]
	mov	x1, x22
	mov	x2, x21
	blr	x8
	cbz	x0, LBB0_13
; %bb.12:
	ldr	w1, [x19, #16]
Lloh11:
	adrp	x8, _H2O_HTTP2_ERROR_STREAM_CLOSED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_STREAM_CLOSED@GOTPAGEOFF]
	b	LBB0_20
LBB0_13:
	cbz	w21, LBB0_21
; %bb.14:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_finish_body_streaming
LBB0_16:
	ldr	x8, [x19]
Lloh13:
	adrp	x9, _H2O_HTTP2_STREAM_STATE_END_STREAM@GOTPAGE
Lloh14:
	ldr	x9, [x9, _H2O_HTTP2_STREAM_STATE_END_STREAM@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.17:
	mov	x0, x20
	mov	x1, x19
	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	_h2o_http2_stream_close
LBB0_18:
	b.ls	LBB0_5
LBB0_19:
	ldr	w1, [x19, #16]
Lloh16:
	adrp	x8, _H2O_HTTP2_ERROR_PROTOCOL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_PROTOCOL@GOTPAGEOFF]
LBB0_20:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_stream_send_error
	mov	x0, x20
	mov	x1, x19
	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	_h2o_http2_stream_reset
LBB0_21:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_H2O_HTTP2_ERROR_REFUSED_STREAM,4,2 ; @H2O_HTTP2_ERROR_REFUSED_STREAM
	.comm	_SIZE_MAX,8,3                   ; @SIZE_MAX
	.comm	_H2O_HTTP2_ERROR_PROTOCOL,4,2   ; @H2O_HTTP2_ERROR_PROTOCOL
	.comm	_H2O_HTTP2_STREAM_STATE_REQ_PENDING,8,3 ; @H2O_HTTP2_STREAM_STATE_REQ_PENDING
	.comm	_H2O_HTTP2_STREAM_STATE_SEND_HEADERS,8,3 ; @H2O_HTTP2_STREAM_STATE_SEND_HEADERS
	.comm	_H2O_HTTP2_ERROR_STREAM_CLOSED,4,2 ; @H2O_HTTP2_ERROR_STREAM_CLOSED
	.comm	_H2O_HTTP2_STREAM_STATE_END_STREAM,8,3 ; @H2O_HTTP2_STREAM_STATE_END_STREAM
	.no_dead_strip	_handle_request_body_chunk
.subsections_via_symbols
