	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_data_frame
_handle_data_frame:                     ## @handle_data_frame
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	leaq	-56(%rbp), %rdi
	callq	_h2o_http2_decode_data_payload
	testl	%eax, %eax
	jne	LBB0_16
## %bb.1:
	leaq	8(%r14), %r15
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_h2o_http2_window_consume_window
	movq	%r15, %rdi
	callq	_h2o_http2_window_get_avail
	movq	_H2O_HTTP2_SETTINGS_HOST_CONNECTION_WINDOW_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%ebx, %ecx
	shrl	$31, %ecx
	addl	%ebx, %ecx
	sarl	%ecx
	cmpl	%ecx, %eax
	jg	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_h2o_http2_window_get_avail
	subl	%eax, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_send_window_update
LBB0_3:
	movq	8(%r13), %rsi
	movq	%r14, %rdi
	callq	_h2o_http2_conn_get_stream
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	_H2O_HTTP2_STREAM_STATE_RECV_BODY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.8:
	cmpl	$0, 12(%r15)
	je	LBB0_9
LBB0_10:
	movq	%r15, %rdi
	addq	$8, %rdi
	movq	(%r13), %rsi
	callq	_h2o_http2_window_consume_window
	movq	(%r13), %rsi
	movq	%rsi, %rdx
	subq	-56(%rbp), %rdx
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_update_stream_input_window
	movq	-56(%rbp), %rsi
LBB0_12:
	testq	%rsi, %rsi
	jne	LBB0_14
## %bb.13:
	movq	_H2O_HTTP2_FRAME_FLAG_END_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r13)
	je	LBB0_15
LBB0_14:
	movl	-48(%rbp), %edi
	callq	_h2o_iovec_init
	movq	_H2O_HTTP2_FRAME_FLAG_END_STREAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%ecx, %ecx
	andl	16(%r13), %edx
	setne	%cl
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_handle_request_body_chunk
	jmp	LBB0_15
LBB0_4:
	movq	8(%r13), %rsi
	cmpq	(%r14), %rsi
	jle	LBB0_5
## %bb.6:
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r12)
	movq	_H2O_HTTP2_ERROR_PROTOCOL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_16
LBB0_5:
	movq	_H2O_HTTP2_ERROR_STREAM_CLOSED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_stream_send_error
	jmp	LBB0_15
LBB0_9:
	movq	8(%r13), %rsi
	movq	_H2O_HTTP2_ERROR_STREAM_CLOSED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_stream_send_error
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_h2o_http2_stream_reset
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H2O_HTTP2_SETTINGS_HOST_CONNECTION_WINDOW_SIZE,4,2 ## @H2O_HTTP2_SETTINGS_HOST_CONNECTION_WINDOW_SIZE
	.comm	_H2O_HTTP2_ERROR_STREAM_CLOSED,4,2 ## @H2O_HTTP2_ERROR_STREAM_CLOSED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid DATA frame"

	.comm	_H2O_HTTP2_ERROR_PROTOCOL,4,2   ## @H2O_HTTP2_ERROR_PROTOCOL
	.comm	_H2O_HTTP2_STREAM_STATE_RECV_BODY,8,3 ## @H2O_HTTP2_STREAM_STATE_RECV_BODY
	.comm	_H2O_HTTP2_FRAME_FLAG_END_STREAM,4,2 ## @H2O_HTTP2_FRAME_FLAG_END_STREAM
	.no_dead_strip	_handle_data_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_data_frame
_handle_data_frame:                     ; @handle_data_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, sp
	bl	_h2o_http2_decode_data_payload
	cbnz	w0, LBB0_16
; %bb.1:
	add	x21, x19, #8
	ldr	x1, [x20]
	mov	x0, x21
	bl	_h2o_http2_window_consume_window
	mov	x0, x21
	bl	_h2o_http2_window_get_avail
Lloh0:
	adrp	x8, _H2O_HTTP2_SETTINGS_HOST_CONNECTION_WINDOW_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _H2O_HTTP2_SETTINGS_HOST_CONNECTION_WINDOW_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	cmp	w23, #0
	cinc	w8, w23, lt
	cmp	w0, w8, asr #1
	b.gt	LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_h2o_http2_window_get_avail
	sub	w3, w23, w0
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	bl	_send_window_update
LBB0_3:
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	_h2o_http2_conn_get_stream
	cbz	x0, LBB0_11
; %bb.4:
	mov	x21, x0
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _H2O_HTTP2_STREAM_STATE_RECV_BODY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _H2O_HTTP2_STREAM_STATE_RECV_BODY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x21, #12]
	cbz	w8, LBB0_14
LBB0_6:
	add	x0, x21, #8
	ldr	x1, [x20]
	bl	_h2o_http2_window_consume_window
	ldr	x1, [x20]
	ldr	x8, [sp]
	subs	x2, x1, x8
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x21
	bl	_update_stream_input_window
	ldr	x1, [sp]
LBB0_8:
Lloh6:
	adrp	x22, _H2O_HTTP2_FRAME_FLAG_END_STREAM@GOTPAGE
Lloh7:
	ldr	x22, [x22, _H2O_HTTP2_FRAME_FLAG_END_STREAM@GOTPAGEOFF]
	cbnz	x1, LBB0_10
; %bb.9:
	ldr	w8, [x20, #16]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_15
LBB0_10:
	ldr	w0, [sp, #8]
	bl	_h2o_iovec_init
	mov	x2, x0
	ldr	w8, [x20, #16]
	ldr	w9, [x22]
	tst	w9, w8
	cset	w3, ne
	mov	x0, x19
	mov	x1, x21
	bl	_handle_request_body_chunk
	b	LBB0_15
LBB0_11:
	ldr	x1, [x20, #8]
	ldr	x8, [x19]
	cmp	x1, x8
	b.le	LBB0_13
; %bb.12:
Lloh8:
	adrp	x8, l_.str@PAGE
Lloh9:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x22]
Lloh10:
	adrp	x8, _H2O_HTTP2_ERROR_PROTOCOL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_PROTOCOL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_16
LBB0_13:
Lloh13:
	adrp	x8, _H2O_HTTP2_ERROR_STREAM_CLOSED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_STREAM_CLOSED@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_stream_send_error
	b	LBB0_15
LBB0_14:
	ldr	x1, [x20, #8]
Lloh16:
	adrp	x8, _H2O_HTTP2_ERROR_STREAM_CLOSED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_STREAM_CLOSED@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_stream_send_error
	mov	x0, x19
	mov	x1, x21
	bl	_h2o_http2_stream_reset
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_H2O_HTTP2_SETTINGS_HOST_CONNECTION_WINDOW_SIZE,4,2 ; @H2O_HTTP2_SETTINGS_HOST_CONNECTION_WINDOW_SIZE
	.comm	_H2O_HTTP2_ERROR_STREAM_CLOSED,4,2 ; @H2O_HTTP2_ERROR_STREAM_CLOSED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid DATA frame"

	.comm	_H2O_HTTP2_ERROR_PROTOCOL,4,2   ; @H2O_HTTP2_ERROR_PROTOCOL
	.comm	_H2O_HTTP2_STREAM_STATE_RECV_BODY,8,3 ; @H2O_HTTP2_STREAM_STATE_RECV_BODY
	.comm	_H2O_HTTP2_FRAME_FLAG_END_STREAM,4,2 ; @H2O_HTTP2_FRAME_FLAG_END_STREAM
	.no_dead_strip	_handle_data_frame
.subsections_via_symbols
