	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_mruby_sender_do_send_buffer ## -- Begin function h2o_mruby_sender_do_send_buffer
	.p2align	4, 0x90
_h2o_mruby_sender_do_send_buffer:       ## @h2o_mruby_sender_do_send_buffer
	.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
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%edi, %edi
	cmpl	$0, 8(%rsi)
	sete	%dil
	callq	_assert
	movq	(%r14), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_h2o_doublebuffer_prepare
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	(%r15), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_3
LBB0_4:
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_H2O_SEND_STATE_IN_PROGRESS@GOTPCREL(%rip), %rcx
	movl	$1, %r15d
LBB0_6:
	movl	(%rcx), %ebx
	leaq	-36(%rbp), %r12
	movq	%r12, %rdi
	movl	%edx, %esi
	movq	%rax, %rdx
	callq	_h2o_sendvec_init_raw
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_h2o_mruby_sender_do_send
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%r15d, %r15d
	testq	%rax, %rax
	setne	%r15b
	movq	_H2O_SEND_STATE_FINAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_H2O_SEND_STATE_FINAL,4,2       ## @H2O_SEND_STATE_FINAL
	.comm	_H2O_SEND_STATE_IN_PROGRESS,4,2 ## @H2O_SEND_STATE_IN_PROGRESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_mruby_sender_do_send_buffer ; -- Begin function h2o_mruby_sender_do_send_buffer
	.p2align	2
_h2o_mruby_sender_do_send_buffer:       ; @h2o_mruby_sender_do_send_buffer
	.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	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x1, #8]
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19]
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_h2o_doublebuffer_prepare
	mov	x2, x0
	cbz	w22, LBB0_3
; %bb.1:
	ldr	x8, [x21]
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
LBB0_3:
	cbz	x2, LBB0_6
; %bb.4:
Lloh0:
	adrp	x8, _H2O_SEND_STATE_IN_PROGRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _H2O_SEND_STATE_IN_PROGRESS@GOTPAGEOFF]
	mov	w20, #1
LBB0_5:
	ldr	w21, [x8]
	add	x0, sp, #12
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_h2o_sendvec_init_raw
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_h2o_mruby_sender_do_send
LBB0_6:
	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
LBB0_7:
	cmp	x2, #0
	cset	w20, ne
Lloh2:
	adrp	x8, _H2O_SEND_STATE_FINAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _H2O_SEND_STATE_FINAL@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_H2O_SEND_STATE_FINAL,4,2       ; @H2O_SEND_STATE_FINAL
	.comm	_H2O_SEND_STATE_IN_PROGRESS,4,2 ; @H2O_SEND_STATE_IN_PROGRESS
.subsections_via_symbols
