	.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
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.1:
	movq	(%r13), %rsi
	movq	%r14, %rdi
	callq	_get_stream
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r15
	movq	48(%rax), %rax
	movq	_STREAM_STATE_BODY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	leaq	8(%r15), %r12
	movl	16(%r15), %edi
	callq	_get_max_buffer_size
	movq	40(%r15), %rcx
	movq	-56(%rbp), %rdx
	movq	(%rcx), %rcx
	addq	%rdx, %rcx
	cmpq	%rax, %rcx
	jbe	LBB0_9
## %bb.4:
	movq	_h2o_httpclient_error_flow_control@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	*8(%r15)
	movq	(%r15), %rsi
	movq	24(%r15), %rdi
	movq	_H2O_HTTP2_ERROR_FLOW_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_14
LBB0_5:
	movq	(%r13), %rsi
	cmpq	(%r14), %rsi
	jle	LBB0_8
## %bb.6:
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r12)
	movq	_H2O_HTTP2_ERROR_PROTOCOL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_17
LBB0_7:
	movq	(%r13), %rsi
	movq	_H2O_HTTP2_ERROR_PROTOCOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_stream_send_error
	movq	_h2o_httpclient_error_http2_protocol_violation@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_call_callback_with_error
	jmp	LBB0_15
LBB0_8:
	movq	_H2O_HTTP2_ERROR_STREAM_CLOSED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_stream_send_error
	jmp	LBB0_16
LBB0_9:
	leaq	40(%r15), %rdi
	movq	-48(%rbp), %rsi
	callq	_h2o_buffer_append
	leaq	8(%r14), %rdi
	movq	-56(%rbp), %rsi
	callq	_h2o_http2_window_consume_window
	movq	%r15, %rdi
	addq	$32, %rdi
	movq	-56(%rbp), %rsi
	callq	_h2o_http2_window_consume_window
	movq	_H2O_HTTP2_FRAME_FLAG_END_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	8(%r13), %ebx
	je	LBB0_11
## %bb.10:
	movq	_h2o_httpclient_error_is_eos@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	jmp	LBB0_12
LBB0_11:
	xorl	%esi, %esi
LBB0_12:
	movq	%r12, %rdi
	callq	*8(%r15)
	testq	%rax, %rax
	je	LBB0_18
## %bb.13:
	movq	(%r13), %rsi
	movq	_H2O_HTTP2_ERROR_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
LBB0_14:
	callq	_stream_send_error
LBB0_15:
	movq	%r15, %rdi
	callq	_close_stream
LBB0_16:
	xorl	%ebx, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	testl	%ebx, %ebx
	je	LBB0_20
## %bb.19:
	movq	%r15, %rdi
	callq	_close_response
	jmp	LBB0_16
LBB0_20:
	movq	24(%r15), %rdi
	leaq	8(%rdi), %rdx
	movq	_H2O_HTTP2_SETTINGS_CLIENT_CONNECTION_WINDOW_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_enqueue_window_update
	movq	%r12, %rdi
	callq	_do_update_window
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.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	_STREAM_STATE_BODY,8,3          ## @STREAM_STATE_BODY
	.comm	_h2o_httpclient_error_http2_protocol_violation,4,2 ## @h2o_httpclient_error_http2_protocol_violation
	.comm	_h2o_httpclient_error_flow_control,8,3 ## @h2o_httpclient_error_flow_control
	.comm	_H2O_HTTP2_ERROR_FLOW_CONTROL,4,2 ## @H2O_HTTP2_ERROR_FLOW_CONTROL
	.comm	_H2O_HTTP2_FRAME_FLAG_END_STREAM,4,2 ## @H2O_HTTP2_FRAME_FLAG_END_STREAM
	.comm	_h2o_httpclient_error_is_eos,8,3 ## @h2o_httpclient_error_is_eos
	.comm	_H2O_HTTP2_ERROR_INTERNAL,4,2   ## @H2O_HTTP2_ERROR_INTERNAL
	.comm	_H2O_HTTP2_SETTINGS_CLIENT_CONNECTION_WINDOW_SIZE,4,2 ## @H2O_HTTP2_SETTINGS_CLIENT_CONNECTION_WINDOW_SIZE
	.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	x21, x1
	mov	x20, x0
	mov	x0, sp
	bl	_h2o_http2_decode_data_payload
	cbnz	w0, LBB0_14
; %bb.1:
	ldr	x1, [x21]
	mov	x0, x20
	bl	_get_stream
	cbz	x0, LBB0_5
; %bb.2:
	mov	x19, x0
	ldr	x8, [x0, #48]
Lloh0:
	adrp	x9, _STREAM_STATE_BODY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STREAM_STATE_BODY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	ldr	w0, [x19, #16]
	bl	_get_max_buffer_size
	mov	x8, x0
	mov	x0, x19
	ldr	x9, [x0, #40]!
	sub	x22, x0, #32
	ldr	x9, [x9]
	ldr	x2, [sp]
	add	x9, x2, x9
	cmp	x9, x8
	b.ls	LBB0_9
; %bb.4:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _h2o_httpclient_error_flow_control@GOTPAGE
Lloh4:
	ldr	x9, [x9, _h2o_httpclient_error_flow_control@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x9]
	mov	x0, x22
	blr	x8
	ldr	x0, [x19, #24]
	ldr	x1, [x19]
Lloh6:
	adrp	x8, _H2O_HTTP2_ERROR_FLOW_CONTROL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_FLOW_CONTROL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	b	LBB0_11
LBB0_5:
	ldr	x1, [x21]
	ldr	x8, [x20]
	cmp	x1, x8
	b.le	LBB0_8
; %bb.6:
Lloh9:
	adrp	x8, l_.str@PAGE
Lloh10:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x22]
Lloh11:
	adrp	x8, _H2O_HTTP2_ERROR_PROTOCOL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_PROTOCOL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_7:
	ldr	x1, [x21]
Lloh14:
	adrp	x8, _H2O_HTTP2_ERROR_PROTOCOL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_PROTOCOL@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_stream_send_error
Lloh17:
	adrp	x8, _h2o_httpclient_error_http2_protocol_violation@GOTPAGE
Lloh18:
	ldr	x8, [x8, _h2o_httpclient_error_http2_protocol_violation@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_call_callback_with_error
	b	LBB0_12
LBB0_8:
Lloh20:
	adrp	x8, _H2O_HTTP2_ERROR_STREAM_CLOSED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_STREAM_CLOSED@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_stream_send_error
	b	LBB0_13
LBB0_9:
	ldr	x1, [sp, #8]
	bl	_h2o_buffer_append
	add	x0, x20, #8
	ldr	x1, [sp]
	bl	_h2o_http2_window_consume_window
	add	x0, x19, #32
	ldr	x1, [sp]
	bl	_h2o_http2_window_consume_window
	ldr	w8, [x21, #8]
Lloh23:
	adrp	x9, _H2O_HTTP2_FRAME_FLAG_END_STREAM@GOTPAGE
Lloh24:
	ldr	x9, [x9, _H2O_HTTP2_FRAME_FLAG_END_STREAM@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	ands	w23, w9, w8
	ldr	x8, [x19, #8]
Lloh26:
	adrp	x9, _h2o_httpclient_error_is_eos@GOTPAGE
Lloh27:
	ldr	x9, [x9, _h2o_httpclient_error_is_eos@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	csel	x1, xzr, x9, eq
	mov	x0, x22
	blr	x8
	cbz	x0, LBB0_15
; %bb.10:
	ldr	x1, [x21]
Lloh29:
	adrp	x8, _H2O_HTTP2_ERROR_INTERNAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_INTERNAL@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x20
LBB0_11:
	bl	_stream_send_error
LBB0_12:
	mov	x0, x19
	bl	_close_stream
LBB0_13:
	mov	w0, #0
LBB0_14:
	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
LBB0_15:
	cbz	w23, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_close_response
	b	LBB0_13
LBB0_17:
	ldr	x0, [x19, #24]
	add	x2, x0, #8
Lloh32:
	adrp	x8, _H2O_HTTP2_SETTINGS_CLIENT_CONNECTION_WINDOW_SIZE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _H2O_HTTP2_SETTINGS_CLIENT_CONNECTION_WINDOW_SIZE@GOTPAGEOFF]
Lloh34:
	ldr	w3, [x8]
	mov	w1, #0
	bl	_enqueue_window_update
	mov	x0, x22
	bl	_do_update_window
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.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	_STREAM_STATE_BODY,8,3          ; @STREAM_STATE_BODY
	.comm	_h2o_httpclient_error_http2_protocol_violation,4,2 ; @h2o_httpclient_error_http2_protocol_violation
	.comm	_h2o_httpclient_error_flow_control,8,3 ; @h2o_httpclient_error_flow_control
	.comm	_H2O_HTTP2_ERROR_FLOW_CONTROL,4,2 ; @H2O_HTTP2_ERROR_FLOW_CONTROL
	.comm	_H2O_HTTP2_FRAME_FLAG_END_STREAM,4,2 ; @H2O_HTTP2_FRAME_FLAG_END_STREAM
	.comm	_h2o_httpclient_error_is_eos,8,3 ; @h2o_httpclient_error_is_eos
	.comm	_H2O_HTTP2_ERROR_INTERNAL,4,2   ; @H2O_HTTP2_ERROR_INTERNAL
	.comm	_H2O_HTTP2_SETTINGS_CLIENT_CONNECTION_WINDOW_SIZE,4,2 ; @H2O_HTTP2_SETTINGS_CLIENT_CONNECTION_WINDOW_SIZE
	.no_dead_strip	_handle_data_frame
.subsections_via_symbols
