	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_write                       ## -- Begin function do_write
	.p2align	4, 0x90
_do_write:                              ## @do_write
	.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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %r14
	movq	%rdi, %rbx
	movq	%rsi, -32(%rbp)
	movq	%rdx, -24(%rbp)
	xorl	%edi, %edi
	cmpq	$0, 40(%rbx)
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	sete	%dil
	callq	_assert
	movq	%r14, 40(%rbx)
	movl	36(%rbx), %edi
	leaq	-32(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	callq	_write_core
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	24(%rbx), %r14
	movq	%r14, 8(%rbx)
	movl	$1, (%rbx)
	leaq	L_.str(%rip), %rdi
	callq	_H2O_STRLIT
	movl	%eax, %edi
	callq	_h2o_iovec_init
	movq	%rax, (%r14)
	movq	%rdx, 8(%r14)
LBB0_3:
	movq	_H2O_SOCKET_FLAG_IS_WRITE_NOTIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%rbx)
	movq	%rbx, %rdi
	callq	_link_to_pending
	jmp	LBB0_12
LBB0_2:
	movq	-24(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	shll	$4, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_h2o_mem_alloc
	movq	%rax, 8(%rbx)
	movq	%rax, 16(%rbx)
	movq	-32(%rbp), %r8
	movq	-40(%rbp), %rcx
	movq	8(%r8), %rdx
	addq	%rcx, %rdx
	movq	%rdx, 8(%rax)
	movq	(%r8), %rdx
	subq	%rcx, %rdx
	movq	%rdx, (%rax)
	movq	-24(%rbp), %r9
	cmpq	$2, %r9
	jb	LBB0_11
## %bb.5:
	movups	16(%r8), %xmm0
	movups	%xmm0, 16(%rax)
	je	LBB0_11
## %bb.6:
	movl	$2, %eax
	cmpq	$3, %r9
	je	LBB0_9
## %bb.7:
	leaq	-2(%r9), %rsi
	leaq	48(%r8), %rdi
	andq	$-2, %rsi
	negq	%rsi
	movl	$2, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdx
	movups	-16(%rdi,%rcx), %xmm0
	movups	%xmm0, 32(%rdx,%rcx)
	movq	8(%rbx), %rdx
	movups	(%rdi,%rcx), %xmm0
	movups	%xmm0, 48(%rdx,%rcx)
	addq	$32, %rcx
	leaq	(%rsi,%rax), %rdx
	addq	$2, %rdx
	addq	$2, %rax
	cmpq	$2, %rdx
	jne	LBB0_8
LBB0_9:
	testb	$1, %r9b
	je	LBB0_11
## %bb.10:
	movq	8(%rbx), %rcx
	shlq	$4, %rax
	movups	(%r8,%rax), %xmm0
	movups	%xmm0, (%rcx,%rax)
LBB0_11:
	movl	%r9d, (%rbx)
	movq	%rbx, %rdi
	callq	_link_to_statechanged
LBB0_12:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"deadbeef"

	.comm	_H2O_SOCKET_FLAG_IS_WRITE_NOTIFY,4,2 ## @H2O_SOCKET_FLAG_IS_WRITE_NOTIFY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_write                       ; -- Begin function do_write
	.p2align	2
_do_write:                              ; @do_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x20, x3
	mov	x19, x0
	stp	x2, x1, [sp, #16]
	ldr	x8, [x0, #40]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	str	x20, [x19, #40]
	ldr	w0, [x19, #36]
	add	x1, sp, #24
	add	x2, sp, #16
	add	x3, sp, #8
	bl	_write_core
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x20, [x19, #24]
	str	x20, [x19, #8]
	mov	w8, #1
	str	w8, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_H2O_STRLIT
	bl	_h2o_iovec_init
	stp	x0, x1, [x20]
LBB0_2:
Lloh2:
	adrp	x8, _H2O_SOCKET_FLAG_IS_WRITE_NOTIFY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _H2O_SOCKET_FLAG_IS_WRITE_NOTIFY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
	str	w8, [x19, #32]
	mov	x0, x19
	bl	_link_to_pending
	b	LBB0_9
LBB0_3:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_2
; %bb.4:
	lsl	w0, w8, #4
	bl	_h2o_mem_alloc
	stp	x0, x0, [x19, #8]
	ldr	x8, [sp, #24]
	ldr	x9, [x8, #8]
	ldr	x10, [sp, #8]
	add	x9, x10, x9
	str	x9, [x0, #8]
	ldr	x9, [x8]
	sub	x9, x9, x10
	str	x9, [x0]
	ldr	x9, [sp, #16]
	subs	x10, x9, #2
	b.lo	LBB0_8
; %bb.5:
	ldr	q0, [x8, #16]
	str	q0, [x0, #16]
	b.eq	LBB0_8
; %bb.6:
	mov	w11, #32
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x19, #8]
	ldr	q0, [x8, x11]
	str	q0, [x12, x11]
	add	x11, x11, #16
	subs	x10, x10, #1
	b.ne	LBB0_7
LBB0_8:
	str	w9, [x19]
	mov	x0, x19
	bl	_link_to_statechanged
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"deadbeef"

	.comm	_H2O_SOCKET_FLAG_IS_WRITE_NOTIFY,4,2 ; @H2O_SOCKET_FLAG_IS_WRITE_NOTIFY
.subsections_via_symbols
