	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_vnic_bypass_rcv           ## -- Begin function hfi1_vnic_bypass_rcv
	.p2align	4, 0x90
_hfi1_vnic_bypass_rcv:                  ## @hfi1_vnic_bypass_rcv
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	16(%rax), %r15
	movl	4(%rdi), %edi
	callq	_hfi1_16B_get_l4
	movl	%eax, %ebx
	movq	_OPA_16B_L4_ETHR@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %ebx
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	4(%r14), %edi
	callq	_HFI1_VNIC_GET_VESWID
	movl	%eax, %r13d
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_xa_load
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	$0, -56(%rbp)
	movq	_ULONG_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_XA_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %rsi
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_xa_find
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r15
	movq	_vport_cntr_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	(%r15), %rax
	incl	4(%rax)
	movq	_vport_cntr_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
LBB0_5:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_1:
	movl	$-1, %r13d
	xorl	%r12d, %r12d
LBB0_6:
	xorl	%edi, %edi
	testq	%r12, %r12
	sete	%dil
	callq	_unlikely
	movq	8(%r14), %rcx
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	8(%rcx), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	callq	_dd_dev_warn
	jmp	LBB0_15
LBB0_8:
	movq	(%rcx), %r15
	movq	16(%r12), %r13
	movl	8(%r12), %edi
	callq	_netif_oper_up
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	(%r12), %rax
	leaq	(%r15,%r15,2), %rcx
	incl	8(%rax,%rcx,4)
	leaq	4(,%r15,8), %rdi
	addq	%r13, %rdi
	callq	_skb_queue_purge
	jmp	LBB0_15
LBB0_10:
	leaq	4(,%r15,8), %rbx
	addq	%r13, %rbx
	movq	%rbx, %rdi
	callq	_skb_queue_len
	movq	_HFI1_VNIC_RCV_Q_SIZE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_11
## %bb.12:
	movl	8(%r12), %edi
	movl	(%r14), %esi
	callq	_netdev_alloc_skb
	xorl	%edi, %edi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_13
LBB0_11:
	movq	(%r12), %rax
	leaq	(%r15,%r15,2), %rcx
	incl	(%rax,%rcx,4)
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %edi
	movl	(%r14), %edx
	movl	4(%r14), %esi
	callq	_memcpy
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_skb_put
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_skb_queue_tail
	leaq	(,%r15,8), %rbx
	addq	%r13, %rbx
	movq	%rbx, %rdi
	callq	_napi_schedule_prep
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	callq	_v_dbg
	movq	%rbx, %rdi
	callq	___napi_schedule
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_OPA_16B_L4_ETHR,4,2            ## @OPA_16B_L4_ETHR
	.comm	_ULONG_MAX,4,2                  ## @ULONG_MAX
	.comm	_XA_PRESENT,4,2                 ## @XA_PRESENT
	.comm	_vport_cntr_lock,4,2            ## @vport_cntr_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vnic rcv err: l4 %d vesw id %d ctx %d\n"

	.comm	_HFI1_VNIC_RCV_Q_SIZE,8,3       ## @HFI1_VNIC_RCV_Q_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"napi %d scheduling\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_vnic_bypass_rcv           ; -- Begin function hfi1_vnic_bypass_rcv
	.p2align	2
_hfi1_vnic_bypass_rcv:                  ; @hfi1_vnic_bypass_rcv
	.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	x19, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8, #16]
	ldr	w0, [x0, #4]
	bl	_hfi1_16B_get_l4
	mov	x22, x0
Lloh0:
	adrp	x8, _OPA_16B_L4_ETHR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OPA_16B_L4_ETHR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_HFI1_VNIC_GET_VESWID
	mov	x23, x0
	mov	x0, x21
	mov	x1, x23
	bl	_xa_load
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.2:
	str	xzr, [sp, #8]
Lloh3:
	adrp	x8, _ULONG_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ULONG_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _XA_PRESENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XA_PRESENT@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x0, x21
	bl	_xa_find
	cbz	x0, LBB0_5
; %bb.3:
	mov	x24, x0
Lloh9:
	adrp	x25, _vport_cntr_lock@GOTPAGE
Lloh10:
	ldr	x25, [x25, _vport_cntr_lock@GOTPAGEOFF]
	mov	x0, x25
	bl	_spin_lock
	ldr	x8, [x24]
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
	mov	x0, x25
	bl	_spin_unlock
	b	LBB0_5
LBB0_4:
	mov	x20, #0
	mov	w23, #-1
LBB0_5:
	cmp	x20, #0
	cset	w0, eq
	bl	_unlikely
	ldr	x8, [x19, #8]
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w4, [x8, #8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	mov	x3, x23
	bl	_dd_dev_warn
	b	LBB0_12
LBB0_7:
	ldr	x21, [x8]
	ldr	x24, [x20, #16]
	ldr	w0, [x20, #8]
	bl	_netif_oper_up
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x20]
	mov	w9, #12
	madd	x8, x21, x9, x8
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
	add	x8, x24, x21, lsl #3
	add	x0, x8, #4
	bl	_skb_queue_purge
	b	LBB0_12
LBB0_9:
	add	x8, x24, x21, lsl #3
	add	x22, x8, #4
	mov	x0, x22
	bl	_skb_queue_len
Lloh13:
	adrp	x8, _HFI1_VNIC_RCV_Q_SIZE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HFI1_VNIC_RCV_Q_SIZE@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, gt
	bl	_unlikely
	cbnz	x0, LBB0_11
; %bb.10:
	ldr	w0, [x20, #8]
	ldr	w1, [x19]
	bl	_netdev_alloc_skb
	mov	x23, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_13
LBB0_11:
	ldr	x8, [x20]
	mov	w9, #12
	mul	x9, x21, x9
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
LBB0_12:
	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_13:
	ldr	w0, [x23]
	ldp	w2, w1, [x19]
	bl	_memcpy
	ldr	w1, [x19]
	mov	x0, x23
	bl	_skb_put
	mov	x0, x22
	mov	x1, x23
	bl	_skb_queue_tail
	add	x19, x24, x21, lsl #3
	mov	x0, x19
	bl	_napi_schedule_prep
	cbz	x0, LBB0_12
; %bb.14:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_v_dbg
	mov	x0, x19
	bl	___napi_schedule
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_OPA_16B_L4_ETHR,4,2            ; @OPA_16B_L4_ETHR
	.comm	_ULONG_MAX,4,2                  ; @ULONG_MAX
	.comm	_XA_PRESENT,4,2                 ; @XA_PRESENT
	.comm	_vport_cntr_lock,4,2            ; @vport_cntr_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vnic rcv err: l4 %d vesw id %d ctx %d\n"

	.comm	_HFI1_VNIC_RCV_Q_SIZE,8,3       ; @HFI1_VNIC_RCV_Q_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"napi %d scheduling\n"

.subsections_via_symbols
