	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function receive_buf
_receive_buf:                           ## @receive_buf
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, %r14
	movl	%ecx, %ebx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	16(%rbp), %r12
	movq	24(%rdi), %r15
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	(%rdi), %eax
	xorl	%edi, %edi
	cmpl	%ecx, %eax
	seta	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	8(%r15), %esi
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	incl	4(%r15)
	cmpq	$0, 16(%r13)
	je	LBB0_2
LBB0_3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_virt_to_head_page
	movl	%eax, %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_page                       ## TAILCALL
LBB0_4:
	movq	%r14, %r8
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	cmpq	$0, 16(%r13)
	je	LBB0_6
## %bb.5:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%ebx, %r9d
	pushq	%r12
	pushq	%r14
	callq	_receive_mergeable
LBB0_9:
	addq	$16, %rsp
	jmp	LBB0_10
LBB0_2:
	cmpq	$0, 8(%r13)
	je	LBB0_3
## %bb.16:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_give_pages                     ## TAILCALL
LBB0_6:
	cmpq	$0, 8(%r13)
	je	LBB0_8
## %bb.7:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%ebx, %r8d
	movq	%r12, %r9
	callq	_receive_big
LBB0_10:
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_11
## %bb.15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r12, %rdi
	callq	_skb_vnet_hdr
	movq	%rax, %rbx
	movq	_VIRTIO_NET_HDR_F_DATA_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_13
## %bb.12:
	movq	_CHECKSUM_UNNECESSARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
LBB0_13:
	movl	4(%r13), %edi
	callq	_virtio_is_little_endian
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_virtio_net_hdr_to_skb
	testq	%rax, %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_14
## %bb.17:
	movl	8(%r14), %esi
	movl	4(%rbx), %ecx
	movl	8(%rbx), %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_net_warn_ratelimited
	incl	(%r14)
	movq	%r12, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_kfree_skb                  ## TAILCALL
LBB0_8:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%ebx, %r9d
	pushq	%r12
	pushq	%r14
	callq	_receive_small
	jmp	LBB0_9
LBB0_14:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %edi
	callq	_vq2rxq
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_skb_record_rx_queue
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_eth_type_trans
	movl	%eax, 8(%r12)
	movl	%eax, %edi
	callq	_ntohs
	movl	(%r12), %ecx
	movl	4(%r12), %edx
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%rbx, %rdi
	movq	%r12, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_napi_gro_receive               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: short packet %i\n"

	.comm	_VIRTIO_NET_HDR_F_DATA_VALID,4,2 ## @VIRTIO_NET_HDR_F_DATA_VALID
	.comm	_CHECKSUM_UNNECESSARY,4,2       ## @CHECKSUM_UNNECESSARY
L_.str.1:                               ## @.str.1
	.asciz	"%s: bad gso: type: %u, size: %u\n"

L_.str.2:                               ## @.str.2
	.asciz	"Receiving skb proto 0x%04x len %i type %i\n"

	.no_dead_strip	_receive_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function receive_buf
_receive_buf:                           ; @receive_buf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x6
	mov	x25, x5
	mov	x26, x4
	mov	x24, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x0, #24]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w8, w9, w8
	cmp	w8, w3
	cset	w0, hi
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w1, [x20, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x24
	bl	_pr_debug
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_5
LBB0_2:
	mov	x0, x22
	bl	_virt_to_head_page
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_put_page
LBB0_3:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_7
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x22
	mov	x4, x26
	mov	x5, x24
	mov	x6, x25
	mov	x7, x23
	bl	_receive_mergeable
	b	LBB0_10
LBB0_5:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_2
; %bb.6:
	mov	x0, x19
	mov	x1, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_give_pages
LBB0_7:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x22
	mov	x4, x24
	mov	x5, x23
	bl	_receive_big
	b	LBB0_10
LBB0_9:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x22
	mov	x4, x26
	mov	x5, x24
	mov	x6, x25
	mov	x7, x23
	bl	_receive_small
LBB0_10:
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
	mov	x0, x22
	bl	_skb_vnet_hdr
	mov	x23, x0
	ldr	w8, [x0]
Lloh5:
	adrp	x9, _VIRTIO_NET_HDR_F_DATA_VALID@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VIRTIO_NET_HDR_F_DATA_VALID@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
Lloh8:
	adrp	x8, _CHECKSUM_UNNECESSARY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CHECKSUM_UNNECESSARY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x22, #12]
LBB0_14:
	ldr	w0, [x21, #4]
	bl	_virtio_is_little_endian
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_virtio_net_hdr_to_skb
	cbz	x0, LBB0_16
; %bb.15:
	ldr	w1, [x20, #8]
	ldp	w3, w2, [x23, #4]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_net_warn_ratelimited
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_dev_kfree_skb
LBB0_16:
	ldr	w0, [x19, #4]
	bl	_vq2rxq
	mov	x1, x0
	mov	x0, x22
	bl	_skb_record_rx_queue
	mov	x0, x22
	mov	x1, x20
	bl	_eth_type_trans
	str	w0, [x22, #8]
	bl	_ntohs
	mov	x1, x0
	ldp	w8, w2, [x22]
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	mov	x1, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_napi_gro_receive
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: short packet %i\n"

	.comm	_VIRTIO_NET_HDR_F_DATA_VALID,4,2 ; @VIRTIO_NET_HDR_F_DATA_VALID
	.comm	_CHECKSUM_UNNECESSARY,4,2       ; @CHECKSUM_UNNECESSARY
l_.str.1:                               ; @.str.1
	.asciz	"%s: bad gso: type: %u, size: %u\n"

l_.str.2:                               ; @.str.2
	.asciz	"Receiving skb proto 0x%04x len %i type %i\n"

	.no_dead_strip	_receive_buf
.subsections_via_symbols
