	.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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	leaq	24(%rdi), %r14
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	leaq	16(%rbx), %rsi
	jmp	LBB0_3
LBB0_2:
	movq	32(%rbx), %rax
	movq	(%rax), %rsi
LBB0_3:
	movq	(%rbx), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_h2o_doublebuffer_prepare
	movq	%rax, -32(%rbp)
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.4:
	movq	(%r14), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_7
## %bb.5:
	cmpq	$0, (%rcx)
	je	LBB0_6
LBB0_7:
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movl	$1, %edx
	movq	_H2O_SEND_STATE_IN_PROGRESS@GOTPCREL(%rip), %rax
	cmpq	$0, 8(%rbx)
	je	LBB0_11
LBB0_10:
	movq	_H2O_SEND_STATE_ERROR@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %ecx
	movq	(%rbx), %rdi
	leaq	-32(%rbp), %rsi
	callq	_h2o_send
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	xorl	%edx, %edx
	testq	%rax, %rax
	setne	%dl
	movq	_H2O_SEND_STATE_FINAL@GOTPCREL(%rip), %rax
	cmpq	$0, 8(%rbx)
	jne	LBB0_10
	jmp	LBB0_11
LBB0_14:
	callq	___stack_chk_fail
	.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
	.comm	_H2O_SEND_STATE_ERROR,4,2       ## @H2O_SEND_STATE_ERROR
	.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, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	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]
	mov	x1, x0
	ldr	x8, [x1, #16]!
	add	x20, x1, #8
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #32]
	ldr	x1, [x8]
LBB0_2:
	ldr	x8, [x19]
	ldr	w2, [x8]
	mov	x0, x20
	bl	_h2o_doublebuffer_prepare
	str	x0, [sp]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x9, [x20]
	ldr	x9, [x9]
	cmp	x0, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
LBB0_5:
	cbz	x0, LBB0_8
; %bb.6:
Lloh3:
	adrp	x8, _H2O_SEND_STATE_IN_PROGRESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _H2O_SEND_STATE_IN_PROGRESS@GOTPAGEOFF]
	mov	w2, #1
LBB0_7:
Lloh5:
	adrp	x9, _H2O_SEND_STATE_ERROR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _H2O_SEND_STATE_ERROR@GOTPAGEOFF]
	ldp	x0, x10, [x19]
	cmp	x10, #0
	csel	x8, x8, x9, eq
	ldr	w3, [x8]
	mov	x1, sp
	bl	_h2o_send
LBB0_8:
	ldr	x8, [sp, #8]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_10:
	cmp	x0, #0
	cset	w2, ne
Lloh10:
	adrp	x8, _H2O_SEND_STATE_FINAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _H2O_SEND_STATE_FINAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.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
	.comm	_H2O_SEND_STATE_ERROR,4,2       ; @H2O_SEND_STATE_ERROR
	.no_dead_strip	_do_send
.subsections_via_symbols
