	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function subreq_ostream_send
_subreq_ostream_send:                   ## @subreq_ostream_send
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	48(%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r13
	movq	_INITIAL@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	%r8d, %edi
	callq	_h2o_send_state_is_in_progress
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	56(%rbx), %rdi
	callq	_h2o_proceed_response_deferred
	movq	_RECEIVED@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movl	$1, (%rbx)
	cmpq	$0, 24(%rbx)
	je	LBB0_17
## %bb.3:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_append_bufs                    ## TAILCALL
LBB0_5:
	movq	_FINAL_RECEIVED@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_append_bufs
	cmpq	$0, 40(%rbx)
	je	LBB0_8
## %bb.18:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_send_response_shortcutted      ## TAILCALL
LBB0_8:
	movl	32(%rbx), %edi
	callq	_mrb_nil_p
	testq	%rax, %rax
	jne	LBB0_16
## %bb.9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mrb_gc_arena_save
	movl	%eax, %r15d
	cmpq	%r14, %r13
	jne	LBB0_10
LBB0_13:
	movq	16(%rbx), %r12
	movq	%rbx, %rdi
	callq	_detach_receiver
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_mrb_nil_value
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	jmp	LBB0_14
LBB0_17:
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	%r8d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_h2o_mruby_sender_do_send       ## TAILCALL
LBB0_10:
	movq	24(%rbx), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.11:
	leaq	24(%rbx), %r12
	movl	8(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_h2o_mruby_new_str
	movl	%eax, %r13d
	movq	24(%rbx), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_h2o_buffer_consume
	movq	16(%rbx), %r12
	movq	%rbx, %rdi
	callq	_detach_receiver
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
LBB0_14:
	xorl	%ecx, %ecx
	callq	_h2o_mruby_run_fiber
LBB0_15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mrb_gc_arena_restore           ## TAILCALL
LBB0_12:
	movq	8(%rbx), %rax
	movq	_FINAL_RECEIVED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_INITIAL,8,3                    ## @INITIAL
	.comm	_RECEIVED,8,3                   ## @RECEIVED
	.comm	_FINAL_RECEIVED,8,3             ## @FINAL_RECEIVED
	.no_dead_strip	_subreq_ostream_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function subreq_ostream_send
_subreq_ostream_send:                   ; @subreq_ostream_send
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	ldr	x0, [x1, #48]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
LBB0_2:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldp	x24, x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x19, [x8]
Lloh0:
	adrp	x8, _INITIAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INITIAL@GOTPAGEOFF]
Lloh2:
	ldr	x25, [x8]
	mov	x0, x4
	bl	_h2o_send_state_is_in_progress
Lloh3:
	adrp	x23, _FINAL_RECEIVED@GOTPAGE
Lloh4:
	ldr	x23, [x23, _FINAL_RECEIVED@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.4:
	add	x0, x20, #56
	bl	_h2o_proceed_response_deferred
Lloh5:
	adrp	x8, _RECEIVED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RECEIVED@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	mov	w8, #1
	str	w8, [x20]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_13
; %bb.6:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_append_bufs
LBB0_7:
	mov	x8, x23
LBB0_8:
	ldr	x8, [x8]
	str	x8, [x20, #8]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_append_bufs
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_send_response_shortcutted
LBB0_10:
	ldr	w0, [x20, #32]
	bl	_mrb_nil_p
	cbnz	x0, LBB0_2
; %bb.11:
	mov	x0, x19
	bl	_mrb_gc_arena_save
	mov	x21, x0
	cmp	x24, x25
	b.ne	LBB0_14
LBB0_12:
	ldr	x22, [x20, #16]
	mov	x0, x20
	bl	_detach_receiver
	mov	x20, x0
	bl	_mrb_nil_value
	mov	x2, x0
	mov	x0, x22
	mov	x1, x20
	b	LBB0_16
LBB0_13:
	mov	x1, x22
	mov	x2, x21
	mov	x3, x4
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_h2o_mruby_sender_do_send
LBB0_14:
	mov	x22, x20
	ldr	x8, [x22, #24]!
	ldr	x2, [x8]
	cbz	x2, LBB0_18
; %bb.15:
	ldr	w1, [x8, #8]
	mov	x0, x19
	bl	_h2o_mruby_new_str
	mov	x23, x0
	ldr	x8, [x20, #24]
	ldr	x1, [x8]
	mov	x0, x22
	bl	_h2o_buffer_consume
	ldr	x22, [x20, #16]
	mov	x0, x20
	bl	_detach_receiver
	mov	x1, x0
	mov	x0, x22
	mov	x2, x23
LBB0_16:
	mov	x3, #0
	bl	_h2o_mruby_run_fiber
LBB0_17:
	mov	x0, x19
	mov	x1, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mrb_gc_arena_restore
LBB0_18:
	ldr	x8, [x20, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_12
	b	LBB0_17
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_INITIAL,8,3                    ; @INITIAL
	.comm	_RECEIVED,8,3                   ; @RECEIVED
	.comm	_FINAL_RECEIVED,8,3             ; @FINAL_RECEIVED
	.no_dead_strip	_subreq_ostream_send
.subsections_via_symbols
