	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_callback
_send_callback:                         ## @send_callback
	.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	%r8, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	20(%r8), %edi
	callq	_h2o_socket_is_writing
	testq	%rax, %rax
	je	LBB0_1
LBB0_2:
	movl	16(%rbx), %edi
	movq	_WSLAY_ERR_WOULDBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wslay_event_set_error
	movl	$-1, %r14d
	jmp	LBB0_4
LBB0_1:
	movslq	(%rbx), %r12
	testq	%r12, %r12
	je	LBB0_2
## %bb.3:
	movq	8(%rbx), %r13
	movq	%r14, %rdi
	callq	_h2o_mem_alloc
	shlq	$4, %r12
	movl	%eax, 8(%r13,%r12)
	movq	%r14, (%r13,%r12)
	movl	%eax, %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	incl	(%rbx)
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WSLAY_ERR_WOULDBLOCK,4,2       ## @WSLAY_ERR_WOULDBLOCK
	.no_dead_strip	_send_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_callback
_send_callback:                         ; @send_callback
	.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	x20, x4
	mov	x19, x2
	mov	x21, x1
	ldr	w0, [x4, #20]
	bl	_h2o_socket_is_writing
	cbz	x0, LBB0_2
LBB0_1:
	ldr	w0, [x20, #16]
Lloh0:
	adrp	x8, _WSLAY_ERR_WOULDBLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WSLAY_ERR_WOULDBLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_wslay_event_set_error
	mov	w19, #-1
	b	LBB0_4
LBB0_2:
	ldrsw	x22, [x20]
	cbz	w22, LBB0_1
; %bb.3:
	ldr	x23, [x20, #8]
	mov	x0, x19
	bl	_h2o_mem_alloc
	add	x8, x23, x22, lsl #4
	str	w0, [x8, #8]
	str	x19, [x8]
	mov	x1, x21
	mov	x2, x19
	bl	_memcpy
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
LBB0_4:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WSLAY_ERR_WOULDBLOCK,4,2       ; @WSLAY_ERR_WOULDBLOCK
	.no_dead_strip	_send_callback
.subsections_via_symbols
