	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function recv_callback
_recv_callback:                         ## @recv_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%r8, %r14
	movq	(%r8), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	cmpq	%rdx, %rcx
	cmovbq	%rcx, %rbx
	movl	8(%rax), %eax
	movq	%rsi, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_h2o_buffer_consume
	jmp	LBB0_3
LBB0_1:
	movl	8(%r14), %edi
	movq	_WSLAY_ERR_WOULDBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wslay_event_set_error
	movl	$-1, %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WSLAY_ERR_WOULDBLOCK,4,2       ## @WSLAY_ERR_WOULDBLOCK
	.no_dead_strip	_recv_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function recv_callback
_recv_callback:                         ; @recv_callback
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x4
	ldr	x8, [x4]
	ldr	x8, [x8]
	ldr	x9, [x8]
	cbz	x9, LBB0_2
; %bb.1:
	cmp	x9, x2
	csel	x19, x9, x2, lo
	ldr	w8, [x8, #8]
	mov	x0, x1
	mov	x1, x8
	mov	x2, x19
	bl	_memcpy
	ldr	x0, [x20]
	mov	x1, x19
	bl	_h2o_buffer_consume
	b	LBB0_3
LBB0_2:
	ldr	w0, [x20, #8]
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
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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	_recv_callback
.subsections_via_symbols
