	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_mruby_sender_do_send       ## -- Begin function h2o_mruby_sender_do_send
	.p2align	4, 0x90
_h2o_mruby_sender_do_send:              ## @h2o_mruby_sender_do_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, %r14
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	8(%rdi), %r13
	xorl	%edi, %edi
	cmpl	$0, (%r13)
	sete	%dil
	callq	_assert
	movq	8(%r13), %rax
	movq	_SIZE_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.1:
	testq	%r12, %r12
	je	LBB0_2
## %bb.3:
	xorl	%edx, %edx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	subq	%rsi, %rax
	movq	%rax, 8(%r13)
	incq	%rdx
	cmpq	%rdx, %r12
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rax, %rax
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx,%rdx,8), %rsi
	cmpq	%rsi, %rax
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, (%rbx,%rdx,8)
	movq	%rax, %rsi
	jmp	LBB0_7
LBB0_2:
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_8:
	movq	%r12, %rdx
LBB0_9:
	movl	%edx, %r12d
LBB0_10:
	movq	_H2O_SEND_STATE_FINAL@GOTPCREL(%rip), %rdx
	cmpq	%r14, (%rdx)
	jne	LBB0_14
## %bb.11:
	movq	%r14, %rdx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.12:
	movq	_H2O_SEND_STATE_ERROR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
LBB0_13:
	testq	%rax, %rax
	cmovneq	%rdx, %r14
LBB0_14:
	movq	%r14, %rdi
	callq	_h2o_send_state_is_in_progress
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movl	$1, (%r13)
LBB0_16:
	movl	(%r15), %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_h2o_sendvec                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SIZE_MAX,8,3                   ## @SIZE_MAX
	.comm	_H2O_SEND_STATE_FINAL,8,3       ## @H2O_SEND_STATE_FINAL
	.comm	_H2O_SEND_STATE_ERROR,8,3       ## @H2O_SEND_STATE_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_mruby_sender_do_send       ; -- Begin function h2o_mruby_sender_do_send
	.p2align	2
_h2o_mruby_sender_do_send:              ; @h2o_mruby_sender_do_send
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x23, [x0, #8]
	ldr	w8, [x23]
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x23, #8]
Lloh0:
	adrp	x9, _SIZE_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SIZE_MAX@GOTPAGEOFF]
	ldr	x10, [x9]
	cmp	x8, x10
	b.eq	LBB0_9
; %bb.1:
	cbz	x22, LBB0_9
; %bb.2:
	mov	x10, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x8, x8, x11
	str	x8, [x23, #8]
	add	x10, x10, #1
	cmp	x22, x10
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x11, [x20, x10, lsl #3]
	cmp	x8, x11
	b.ge	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x8, [x20, x10, lsl #3]
	mov	x11, x8
	b	LBB0_3
LBB0_7:
	mov	x10, x22
LBB0_8:
	and	x22, x10, #0xffffffff
LBB0_9:
Lloh2:
	adrp	x10, _H2O_SEND_STATE_FINAL@GOTPAGE
Lloh3:
	ldr	x10, [x10, _H2O_SEND_STATE_FINAL@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x10, x19
	b.ne	LBB0_11
; %bb.10:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	x8, #0, #4, ne
Lloh5:
	adrp	x8, _H2O_SEND_STATE_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _H2O_SEND_STATE_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	csel	x19, x19, x8, eq
LBB0_11:
	mov	x0, x19
	bl	_h2o_send_state_is_in_progress
	cbnz	w0, LBB0_13
; %bb.12:
	mov	w8, #1
	str	w8, [x23]
LBB0_13:
	ldr	w0, [x21]
	mov	x1, x20
	mov	x2, x22
	mov	x3, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_h2o_sendvec
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SIZE_MAX,8,3                   ; @SIZE_MAX
	.comm	_H2O_SEND_STATE_FINAL,8,3       ; @H2O_SEND_STATE_FINAL
	.comm	_H2O_SEND_STATE_ERROR,8,3       ; @H2O_SEND_STATE_ERROR
.subsections_via_symbols
