	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __prescan_rxq
___prescan_rxq:                         ## @__prescan_rxq
	.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	%rdi, %r12
	movq	24(%rdi), %rbx
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	callq	_init_ps_mdata
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_hfi1_process_ecn_slowpath
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	_IB_BECN_SMASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_IB_FECN_SMASK@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	notq	%rax
	andq	%rax, %r15
	movq	%r15, %rdi
	callq	_cpu_to_be32
	movq	(%r12), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 4(%rcx)
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	-48(%rbp), %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_update_ps_mdata
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_rcd_to_iport
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movslq	-48(%rbp), %rax
	shlq	$2, %rax
	addq	16(%rbx), %rax
	movq	%r12, %r13
	movq	24(%r12), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %r15
	movq	8(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_rhf_to_cpu
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_rhf_rcv_type
	movq	%rax, %r14
	leaq	-48(%rbp), %rdi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	callq	_ps_done
	testq	%rax, %rax
	jne	LBB0_13
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	-48(%rbp), %rdi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	callq	_ps_skip
	testq	%rax, %rax
	movq	%r13, %r12
	jne	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_RHF_RCV_TYPE_IB@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%r12), %rdi
	movq	%r15, %rsi
	callq	_hfi1_get_msgheader
	movq	%rax, %rbx
	movq	%rax, 16(%r12)
	movq	%rax, %rdi
	callq	_ib_get_lnh
	movq	_HFI1_LRH_BTH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	$16, %rbx
	movq	%rbx, (%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_HFI1_LRH_GRH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rax
	addq	$8, %rax
	movq	%rax, (%r12)
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, 8(%r12)
	movq	%r12, %rdi
	callq	_hfi1_may_ecn
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edi
	callq	_be32_to_cpu
	movq	%rax, %r15
	movq	_RVT_QPN_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	andq	%r15, %rbx
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_rvt_lookup_qpn
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	jmp	LBB0_12
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RHF_RCV_TYPE_IB,8,3            ## @RHF_RCV_TYPE_IB
	.comm	_HFI1_LRH_BTH,8,3               ## @HFI1_LRH_BTH
	.comm	_HFI1_LRH_GRH,8,3               ## @HFI1_LRH_GRH
	.comm	_RVT_QPN_MASK,8,3               ## @RVT_QPN_MASK
	.comm	_IB_FECN_SMASK,8,3              ## @IB_FECN_SMASK
	.comm	_IB_BECN_SMASK,8,3              ## @IB_BECN_SMASK
	.no_dead_strip	___prescan_rxq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __prescan_rxq
___prescan_rxq:                         ; @__prescan_rxq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x20, [x0, #24]
	add	x0, sp, #8
	mov	x1, x19
	bl	_init_ps_mdata
Lloh0:
	adrp	x26, _RHF_RCV_TYPE_IB@GOTPAGE
Lloh1:
	ldr	x26, [x26, _RHF_RCV_TYPE_IB@GOTPAGEOFF]
Lloh2:
	adrp	x27, _HFI1_LRH_BTH@GOTPAGE
Lloh3:
	ldr	x27, [x27, _HFI1_LRH_BTH@GOTPAGEOFF]
Lloh4:
	adrp	x28, _HFI1_LRH_GRH@GOTPAGE
Lloh5:
	ldr	x28, [x28, _HFI1_LRH_GRH@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x19
	mov	w2, #1
	bl	_hfi1_process_ecn_slowpath
	bl	_rcu_read_unlock
Lloh6:
	adrp	x8, _IB_FECN_SMASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_FECN_SMASK@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _IB_BECN_SMASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IB_BECN_SMASK@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	orr	x8, x9, x8
	bic	x0, x23, x8
	bl	_cpu_to_be32
	ldr	x8, [x19]
	ldr	x8, [x8]
	str	w0, [x8, #4]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #8
	mov	x1, x20
	bl	_update_ps_mdata
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_rcd_to_iport
	mov	x21, x0
	ldrsw	x8, [sp, #8]
	ldp	x22, x9, [x20, #8]
	add	x8, x9, x8, lsl #2
	ldr	x9, [x19, #24]
	ldrsw	x9, [x9]
	add	x23, x8, x9, lsl #2
	mov	x0, x23
	bl	_rhf_to_cpu
	mov	x25, x0
	bl	_rhf_rcv_type
	mov	x24, x0
	add	x0, sp, #8
	mov	x1, x25
	mov	x2, x20
	bl	_ps_done
	cbnz	x0, LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #8
	mov	x1, x25
	mov	x2, x20
	bl	_ps_skip
	ldr	x8, [x26]
	cmp	x0, #0
	ccmp	x24, x8, #0, eq
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19, #24]
	mov	x1, x23
	bl	_hfi1_get_msgheader
	mov	x23, x0
	str	x0, [x19, #16]
	bl	_ib_get_lnh
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x23, #16
	mov	x23, #0
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x23, #8
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	stp	x8, x23, [x19]
	mov	x0, x19
	bl	_hfi1_may_ecn
	cbz	w0, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w0, [x8, #4]
	bl	_be32_to_cpu
	mov	x23, x0
Lloh12:
	adrp	x8, _RVT_QPN_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RVT_QPN_MASK@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	and	x24, x8, x0
	bl	_rcu_read_lock
	mov	x0, x22
	mov	x1, x21
	mov	x2, x24
	bl	_rvt_lookup_qpn
	cbnz	x0, LBB0_1
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	bl	_rcu_read_unlock
	b	LBB0_2
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RHF_RCV_TYPE_IB,8,3            ; @RHF_RCV_TYPE_IB
	.comm	_HFI1_LRH_BTH,8,3               ; @HFI1_LRH_BTH
	.comm	_HFI1_LRH_GRH,8,3               ; @HFI1_LRH_GRH
	.comm	_RVT_QPN_MASK,8,3               ; @RVT_QPN_MASK
	.comm	_IB_FECN_SMASK,8,3              ; @IB_FECN_SMASK
	.comm	_IB_BECN_SMASK,8,3              ; @IB_BECN_SMASK
	.no_dead_strip	___prescan_rxq
.subsections_via_symbols
