	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netbe_recv                     ## -- Begin function netbe_recv
	.p2align	4, 0x90
_netbe_recv:                            ## @netbe_recv
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	%edx, -36(%rbp)
	movl	(%rdi), %r14d
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.1:
	movl	4(%rbx), %eax
	cmpl	%eax, %r14d
	je	LBB0_4
## %bb.2:
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	(%r15), %r12
	leaq	-36(%rbp), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_iov_trim
	movq	%rax, %r15
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_memset
	movq	_VNET_HDR_LEN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_4
## %bb.3:
	movl	$1, (%r12)
LBB0_4:
	movl	-36(%rbp), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*8(%rbx)
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovgl	%r14d, %ecx
	addl	%ecx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VNET_HDR_LEN,4,2               ## @VNET_HDR_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netbe_recv                     ; -- Begin function netbe_recv
	.p2align	2
_netbe_recv:                            ; @netbe_recv
	.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	x21, x1
	mov	x20, x0
	str	w2, [sp, #12]
	ldr	w19, [x0]
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	cbz	w19, LBB0_4
; %bb.1:
	ldr	w8, [x20, #4]
	cmp	w19, w8
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	ldr	x22, [x21]
	add	x1, sp, #12
	mov	x0, x21
	mov	x2, x19
	bl	_iov_trim
	mov	x21, x0
	mov	x0, x22
	mov	w1, #0
	mov	x2, x19
	bl	_memset
Lloh0:
	adrp	x8, _VNET_HDR_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VNET_HDR_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w19, w8
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x22]
LBB0_4:
	ldr	x8, [x20, #8]
	ldr	w2, [sp, #12]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	cmp	w0, #0
	csel	w8, w19, wzr, gt
	add	w0, w8, w0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VNET_HDR_LEN,4,2               ; @VNET_HDR_LEN
.subsections_via_symbols
