	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_http2_conn_register_for_proceed_callback ## -- Begin function h2o_http2_conn_register_for_proceed_callback
	.p2align	4, 0x90
_h2o_http2_conn_register_for_proceed_callback: ## @h2o_http2_conn_register_for_proceed_callback
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_h2o_http2_conn_request_write
	movq	%rbx, %rdi
	callq	_h2o_http2_stream_has_pending_data
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movq	_H2O_HTTP2_STREAM_STATE_SEND_BODY_IS_FINAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
## %bb.4:
	addq	$8, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_h2o_linklist_insert            ## TAILCALL
LBB0_2:
	leaq	16(%rbx), %rdi
	callq	_h2o_http2_window_get_avail
	testq	%rax, %rax
	jle	LBB0_5
## %bb.3:
	leaq	8(%rbx), %rdi
	callq	_h2o_linklist_is_linked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	addq	$12, %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_h2o_http2_scheduler_activate   ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H2O_HTTP2_STREAM_STATE_SEND_BODY_IS_FINAL,8,3 ## @H2O_HTTP2_STREAM_STATE_SEND_BODY_IS_FINAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_http2_conn_register_for_proceed_callback ; -- Begin function h2o_http2_conn_register_for_proceed_callback
	.p2align	2
_h2o_http2_conn_register_for_proceed_callback: ; @h2o_http2_conn_register_for_proceed_callback
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_h2o_http2_conn_request_write
	mov	x0, x19
	bl	_h2o_http2_stream_has_pending_data
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _H2O_HTTP2_STREAM_STATE_SEND_BODY_IS_FINAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _H2O_HTTP2_STREAM_STATE_SEND_BODY_IS_FINAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.2:
	add	x1, x19, #8
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_h2o_linklist_insert
LBB0_3:
	add	x0, x19, #16
	bl	_h2o_http2_window_get_avail
	cmp	x0, #1
	b.lt	LBB0_5
; %bb.4:
	add	x0, x19, #8
	bl	_h2o_linklist_is_linked
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	add	x0, x19, #12
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_h2o_http2_scheduler_activate
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_H2O_HTTP2_STREAM_STATE_SEND_BODY_IS_FINAL,8,3 ; @H2O_HTTP2_STREAM_STATE_SEND_BODY_IS_FINAL
.subsections_via_symbols
