	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_receive_bypass
_process_receive_bypass:                ## @process_receive_bypass
	.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	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	(%rax), %r14
	callq	_hfi1_is_vnic_packet
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_hfi1_vnic_bypass_rcv
	jmp	LBB0_15
LBB0_2:
	movq	%rbx, %rdi
	callq	_hfi1_setup_bypass_packet
	testq	%rax, %rax
	jne	LBB0_15
## %bb.3:
	movq	%rbx, %rdi
	callq	_trace_hfi1_rcvhdr
	movl	(%rbx), %edi
	callq	_rhf_err_flags
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_handle_eflags
	jmp	LBB0_15
LBB0_5:
	movl	20(%rbx), %edi
	callq	_hfi1_16B_get_l2
	cmpl	$2, %eax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_hfi1_16B_rcv
	jmp	LBB0_15
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dd_dev_err
	leaq	24(%r14), %rdi
	callq	_incr_cntr64
	movl	(%r14), %ecx
	movq	_OPA_EI_STATUS_SMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, %eax
	jne	LBB0_15
## %bb.8:
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.9:
	movq	_RHF_LEN_ERR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%rbx)
	jne	LBB0_14
## %bb.10:
	movq	(%rdx), %rsi
	movq	%rsi, 16(%r14)
	cmpl	$9, 16(%rbx)
	jb	LBB0_11
## %bb.12:
	movq	8(%rdx), %rdx
	jmp	LBB0_13
LBB0_11:
	xorl	%edx, %edx
LBB0_13:
	movq	%rdx, 8(%r14)
LBB0_14:
	movq	_BAD_L2_ERR@GOTPCREL(%rip), %rdx
	orl	%ecx, %eax
	orl	(%rdx), %eax
	movl	%eax, (%r14)
LBB0_15:
	movq	_RHF_RCV_CONTINUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RHF_RCV_CONTINUE,4,2           ## @RHF_RCV_CONTINUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bypass packets other than 16B are not supported in normal operation. Dropping\n"

	.comm	_OPA_EI_STATUS_SMASK,4,2        ## @OPA_EI_STATUS_SMASK
	.comm	_RHF_LEN_ERR,4,2                ## @RHF_LEN_ERR
	.comm	_BAD_L2_ERR,4,2                 ## @BAD_L2_ERR
	.no_dead_strip	_process_receive_bypass
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_receive_bypass
_process_receive_bypass:                ; @process_receive_bypass
	.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, x0
	ldr	x8, [x0, #24]
	ldr	x19, [x8]
	bl	_hfi1_is_vnic_packet
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_hfi1_vnic_bypass_rcv
	b	LBB0_15
LBB0_2:
	mov	x0, x20
	bl	_hfi1_setup_bypass_packet
	cbnz	x0, LBB0_15
; %bb.3:
	mov	x0, x20
	bl	_trace_hfi1_rcvhdr
	ldr	w0, [x20]
	bl	_rhf_err_flags
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_handle_eflags
	b	LBB0_15
LBB0_5:
	ldr	w0, [x20, #20]
	bl	_hfi1_16B_get_l2
	cmp	w0, #2
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_hfi1_16B_rcv
	b	LBB0_15
LBB0_7:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dd_dev_err
	add	x0, x19, #24
	bl	_incr_cntr64
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _OPA_EI_STATUS_SMASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _OPA_EI_STATUS_SMASK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_15
; %bb.8:
	ldr	x10, [x20, #8]
	cbz	x10, LBB0_14
; %bb.9:
	ldr	w11, [x20]
Lloh5:
	adrp	x12, _RHF_LEN_ERR@GOTPAGE
Lloh6:
	ldr	x12, [x12, _RHF_LEN_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w12, [x12]
	tst	w12, w11
	b.ne	LBB0_14
; %bb.10:
	ldr	x11, [x10]
	str	x11, [x19, #16]
	ldr	w11, [x20, #16]
	cmp	w11, #9
	b.lo	LBB0_12
; %bb.11:
	ldr	x10, [x10, #8]
	b	LBB0_13
LBB0_12:
	mov	x10, #0
LBB0_13:
	str	x10, [x19, #8]
LBB0_14:
Lloh8:
	adrp	x10, _BAD_L2_ERR@GOTPAGE
Lloh9:
	ldr	x10, [x10, _BAD_L2_ERR@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w8, w8, w10
	str	w8, [x19]
LBB0_15:
Lloh11:
	adrp	x8, _RHF_RCV_CONTINUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RHF_RCV_CONTINUE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_RHF_RCV_CONTINUE,4,2           ; @RHF_RCV_CONTINUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bypass packets other than 16B are not supported in normal operation. Dropping\n"

	.comm	_OPA_EI_STATUS_SMASK,4,2        ; @OPA_EI_STATUS_SMASK
	.comm	_RHF_LEN_ERR,4,2                ; @RHF_LEN_ERR
	.comm	_BAD_L2_ERR,4,2                 ; @BAD_L2_ERR
	.no_dead_strip	_process_receive_bypass
.subsections_via_symbols
