	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_window_update_frame
_handle_window_update_frame:            ## @handle_window_update_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	-40(%rbp), %rdi
	leaq	-44(%rbp), %rcx
	callq	_h2o_http2_decode_window_update_payload
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	%eax, %ebx
	cmpl	$0, -44(%rbp)
	je	LBB0_14
## %bb.2:
	movq	(%r15), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_stream_send_error
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_get_stream
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	movq	%rax, %r14
	movq	_h2o_httpclient_error_http2_protocol_violation@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_call_callback_with_error
	movq	%r14, %rdi
	callq	_close_stream
	jmp	LBB0_14
LBB0_4:
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.7:
	cmpq	(%r14), %rsi
	jle	LBB0_8
## %bb.11:
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%r12)
	movq	_H2O_HTTP2_ERROR_PROTOCOL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_5:
	leaq	8(%r14), %rdi
	movl	-40(%rbp), %esi
	callq	_h2o_http2_window_update
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r12)
	movq	_H2O_HTTP2_ERROR_FLOW_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_8:
	movq	%r14, %rdi
	callq	_get_stream
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	%rax, %rbx
	movl	-40(%rbp), %esi
	movq	%rax, %rdi
	callq	_update_stream_output_window
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	(%r15), %rsi
	movq	_H2O_HTTP2_ERROR_FLOW_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_stream_send_error
	movq	_h2o_httpclient_error_flow_control@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_call_callback_with_error
	movq	%rbx, %rdi
	callq	_close_stream
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_12:
	movq	%r14, %rdi
	callq	_conn_get_buffer_window
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jle	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_request_write
LBB0_14:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_h2o_httpclient_error_http2_protocol_violation,4,2 ## @h2o_httpclient_error_http2_protocol_violation
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"flow control window overflow"

	.comm	_H2O_HTTP2_ERROR_FLOW_CONTROL,4,2 ## @H2O_HTTP2_ERROR_FLOW_CONTROL
	.comm	_h2o_httpclient_error_flow_control,4,2 ## @h2o_httpclient_error_flow_control
L_.str.1:                               ## @.str.1
	.asciz	"invalid stream id in WINDOW_UPDATE frame"

	.comm	_H2O_HTTP2_ERROR_PROTOCOL,4,2   ## @H2O_HTTP2_ERROR_PROTOCOL
	.no_dead_strip	_handle_window_update_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_window_update_frame
_handle_window_update_frame:            ; @handle_window_update_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	add	x0, sp, #8
	add	x3, sp, #4
	bl	_h2o_http2_decode_window_update_payload
	cbz	w0, LBB0_4
; %bb.1:
	mov	x2, x0
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_15
; %bb.2:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_stream_send_error
	ldr	x1, [x20]
	mov	x0, x19
	bl	_get_stream
	cbz	x0, LBB0_14
; %bb.3:
	mov	x19, x0
Lloh0:
	adrp	x8, _h2o_httpclient_error_http2_protocol_violation@GOTPAGE
Lloh1:
	ldr	x8, [x8, _h2o_httpclient_error_http2_protocol_violation@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_call_callback_with_error
	mov	x0, x19
	bl	_close_stream
	b	LBB0_14
LBB0_4:
	ldr	x1, [x20]
	cbz	x1, LBB0_7
; %bb.5:
	ldr	x8, [x19]
	cmp	x1, x8
	b.le	LBB0_9
; %bb.6:
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x21]
Lloh5:
	adrp	x8, _H2O_HTTP2_ERROR_PROTOCOL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_PROTOCOL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	b	LBB0_15
LBB0_7:
	add	x0, x19, #8
	ldr	w1, [sp, #8]
	bl	_h2o_http2_window_update
	cbz	x0, LBB0_12
; %bb.8:
Lloh8:
	adrp	x8, l_.str@PAGE
Lloh9:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x21]
Lloh10:
	adrp	x8, _H2O_HTTP2_ERROR_FLOW_CONTROL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_FLOW_CONTROL@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	b	LBB0_15
LBB0_9:
	mov	x0, x19
	bl	_get_stream
	cbz	x0, LBB0_12
; %bb.10:
	mov	x21, x0
	ldr	w1, [sp, #8]
	bl	_update_stream_output_window
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x1, [x20]
Lloh13:
	adrp	x8, _H2O_HTTP2_ERROR_FLOW_CONTROL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_FLOW_CONTROL@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_stream_send_error
Lloh16:
	adrp	x8, _h2o_httpclient_error_flow_control@GOTPAGE
Lloh17:
	ldr	x8, [x8, _h2o_httpclient_error_flow_control@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_call_callback_with_error
	mov	x0, x21
	bl	_close_stream
	b	LBB0_14
LBB0_12:
	mov	x0, x19
	bl	_conn_get_buffer_window
	cmp	x0, #1
	b.lt	LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_request_write
LBB0_14:
	mov	w2, #0
LBB0_15:
	mov	x0, x2
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_h2o_httpclient_error_http2_protocol_violation,4,2 ; @h2o_httpclient_error_http2_protocol_violation
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"flow control window overflow"

	.comm	_H2O_HTTP2_ERROR_FLOW_CONTROL,4,2 ; @H2O_HTTP2_ERROR_FLOW_CONTROL
	.comm	_h2o_httpclient_error_flow_control,4,2 ; @h2o_httpclient_error_flow_control
l_.str.1:                               ; @.str.1
	.asciz	"invalid stream id in WINDOW_UPDATE frame"

	.comm	_H2O_HTTP2_ERROR_PROTOCOL,4,2   ; @H2O_HTTP2_ERROR_PROTOCOL
	.no_dead_strip	_handle_window_update_frame
.subsections_via_symbols
