	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_send
_do_send:                               ## @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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	24(%rdi), %r15
	leaq	16(%rdi), %r14
	movq	8(%rdi), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_h2o_doublebuffer_prepare
	movq	%rax, -40(%rbp)
	xorl	%edx, %edx
	testq	%rax, %rax
	setne	%cl
	cmpq	$0, 32(%rbx)
	jne	LBB0_6
## %bb.1:
	movq	(%r15), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_6
## %bb.2:
	movq	(%r14), %rsi
	cmpq	$0, (%rsi)
	je	LBB0_3
LBB0_6:
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	_H2O_SEND_STATE_IN_PROGRESS@GOTPCREL(%rip), %rax
LBB0_8:
	movb	%cl, %dl
	movl	(%rax), %ecx
	movq	8(%rbx), %rdi
	leaq	-40(%rbp), %rsi
	callq	_h2o_send
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%rbx), %rsi
	movq	_SIZE_MAX@GOTPCREL(%rip), %r8
	movq	_H2O_SEND_STATE_FINAL@GOTPCREL(%rip), %rdi
	movq	%rdi, %rax
	cmpq	(%r8), %rsi
	je	LBB0_5
## %bb.4:
	movq	_H2O_SEND_STATE_ERROR@GOTPCREL(%rip), %rax
LBB0_5:
	testq	%rsi, %rsi
	cmoveq	%rdi, %rax
	jmp	LBB0_8
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SIZE_MAX,8,3                   ## @SIZE_MAX
	.comm	_H2O_SEND_STATE_FINAL,4,2       ## @H2O_SEND_STATE_FINAL
	.comm	_H2O_SEND_STATE_ERROR,4,2       ## @H2O_SEND_STATE_ERROR
	.comm	_H2O_SEND_STATE_IN_PROGRESS,4,2 ## @H2O_SEND_STATE_IN_PROGRESS
	.no_dead_strip	_do_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_send
_do_send:                               ; @do_send
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	add	x21, x0, #24
	add	x20, x0, #16
	ldr	x8, [x0, #8]
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_h2o_doublebuffer_prepare
	str	x0, [sp]
	cmp	x0, #0
	cset	w2, ne
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x21]
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
LBB0_3:
	cbz	x0, LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _H2O_SEND_STATE_IN_PROGRESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _H2O_SEND_STATE_IN_PROGRESS@GOTPAGEOFF]
LBB0_5:
	ldr	w3, [x8]
	ldr	x0, [x19, #8]
	mov	x1, sp
	bl	_h2o_send
LBB0_6:
	ldr	x8, [sp, #8]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.7:
	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_8:
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _SIZE_MAX@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SIZE_MAX@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	x8, #0, #4, ne
Lloh11:
	adrp	x8, _H2O_SEND_STATE_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _H2O_SEND_STATE_ERROR@GOTPAGEOFF]
Lloh13:
	adrp	x9, _H2O_SEND_STATE_FINAL@GOTPAGE
Lloh14:
	ldr	x9, [x9, _H2O_SEND_STATE_FINAL@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	b	LBB0_5
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SIZE_MAX,8,3                   ; @SIZE_MAX
	.comm	_H2O_SEND_STATE_FINAL,4,2       ; @H2O_SEND_STATE_FINAL
	.comm	_H2O_SEND_STATE_ERROR,4,2       ; @H2O_SEND_STATE_ERROR
	.comm	_H2O_SEND_STATE_IN_PROGRESS,4,2 ; @H2O_SEND_STATE_IN_PROGRESS
	.no_dead_strip	_do_send
.subsections_via_symbols
