	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_http2_conn_request_write   ## -- Begin function h2o_http2_conn_request_write
	.p2align	4, 0x90
_h2o_http2_conn_request_write:          ## @h2o_http2_conn_request_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	_H2O_HTTP2_CONN_STATE_IS_CLOSING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_h2o_socket_is_reading
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_bytes_in_buf
	movq	_H2O_HTTP2_DEFAULT_OUTBUF_SOFT_MAX_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_4
## %bb.3:
	movl	8(%rbx), %edi
	callq	_h2o_socket_read_stop
LBB0_4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_request_gathered_write         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_H2O_HTTP2_CONN_STATE_IS_CLOSING,8,3 ## @H2O_HTTP2_CONN_STATE_IS_CLOSING
	.comm	_H2O_HTTP2_DEFAULT_OUTBUF_SOFT_MAX_SIZE,8,3 ## @H2O_HTTP2_DEFAULT_OUTBUF_SOFT_MAX_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_http2_conn_request_write   ; -- Begin function h2o_http2_conn_request_write
	.p2align	2
_h2o_http2_conn_request_write:          ; @h2o_http2_conn_request_write
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _H2O_HTTP2_CONN_STATE_IS_CLOSING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _H2O_HTTP2_CONN_STATE_IS_CLOSING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_h2o_socket_is_reading
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_bytes_in_buf
Lloh3:
	adrp	x8, _H2O_HTTP2_DEFAULT_OUTBUF_SOFT_MAX_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _H2O_HTTP2_DEFAULT_OUTBUF_SOFT_MAX_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_5
; %bb.4:
	ldr	w0, [x19, #8]
	bl	_h2o_socket_read_stop
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_request_gathered_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_H2O_HTTP2_CONN_STATE_IS_CLOSING,8,3 ; @H2O_HTTP2_CONN_STATE_IS_CLOSING
	.comm	_H2O_HTTP2_DEFAULT_OUTBUF_SOFT_MAX_SIZE,8,3 ; @H2O_HTTP2_DEFAULT_OUTBUF_SOFT_MAX_SIZE
.subsections_via_symbols
