	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function init_fecn_handling
LCPI0_0:
	.long	95                              ## 0x5f
	.long	133                             ## 0x85
	.long	64                              ## 0x40
	.long	8                               ## 0x8
LCPI0_1:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_init_fecn_handling:                    ## @init_fecn_handling
	.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	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_TID_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_HFI1_CAP_IS_KSET
	movl	$1, %r10d
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r12), %r10d
LBB0_2:
	movl	4(%r12), %ecx
	movl	%ecx, %r15d
	subl	%r10d, %r15d
	movl	(%r14), %eax
	leal	(%rax,%r15), %edi
	movq	_NUM_MAP_ENTRIES@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmpl	%esi, %edi
	jge	LBB0_7
## %bb.3:
	movl	%eax, %edi
	subl	%r10d, %edi
	addl	%esi, %edi
	movslq	%edi, %r8
	cmpl	%r10d, %ecx
	jle	LBB0_6
## %bb.4:
	movq	8(%r14), %rdi
	movq	_RCV_RSM_MAP_TABLE_RCV_CONTEXT_A_MASK@GOTPCREL(%rip), %r9
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leal	7(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	movl	%esi, %ebx
	andl	$-8, %ebx
	movl	%eax, %ecx
	subl	%ebx, %ecx
	shll	$3, %ecx
	sarl	$3, %esi
	movslq	%esi, %rsi
	movl	(%r9), %ebx
	shll	%cl, %ebx
	notl	%ebx
	movl	%r10d, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	andl	(%rdi,%rsi,4), %ebx
	orl	%ebx, %edx
	movl	%edx, (%rdi,%rsi,4)
	incl	%r10d
	incl	%eax
	cmpl	4(%r12), %r10d
	jl	LBB0_5
LBB0_6:
	movq	%r8, -40(%rbp)
	movq	$0, -48(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [95,133,64,8]
	movaps	%xmm0, -96(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [1,1,1,1]
	movaps	%xmm0, -80(%rbp)
	movq	_RSM_INS_FECN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %rdx
	movq	%r12, %rdi
	callq	_add_rsm_rule
	addl	%r15d, (%r14)
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dd_dev_err                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TID_RDMA,4,2                   ## @TID_RDMA
	.comm	_NUM_MAP_ENTRIES,4,2            ## @NUM_MAP_ENTRIES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FECN handling disabled - too many contexts allocated\n"

	.comm	_RCV_RSM_MAP_TABLE_RCV_CONTEXT_A_MASK,4,2 ## @RCV_RSM_MAP_TABLE_RCV_CONTEXT_A_MASK
	.comm	_RSM_INS_FECN,4,2               ## @RSM_INS_FECN
	.no_dead_strip	_init_fecn_handling
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function init_fecn_handling
lCPI0_0:
	.long	95                              ; 0x5f
	.long	133                             ; 0x85
	.long	64                              ; 0x40
	.long	8                               ; 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_init_fecn_handling:                    ; @init_fecn_handling
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _TID_RDMA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TID_RDMA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_HFI1_CAP_IS_KSET
	cbz	x0, LBB0_2
; %bb.1:
	mov	w8, #1
	b	LBB0_3
LBB0_2:
	ldr	w8, [x20]
LBB0_3:
	ldr	w11, [x20, #4]
	ldr	w9, [x19]
	sub	w21, w11, w8
	add	w12, w9, w21
Lloh3:
	adrp	x10, _NUM_MAP_ENTRIES@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NUM_MAP_ENTRIES@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w12, w10
	b.ge	LBB0_8
; %bb.4:
	sub	w12, w9, w8
	add	w10, w12, w10
	sxtw	x10, w10
	cmp	w11, w8
	b.le	LBB0_7
; %bb.5:
	ldr	x11, [x19, #8]
	lsl	w12, w9, #3
Lloh6:
	adrp	x13, _RCV_RSM_MAP_TABLE_RCV_CONTEXT_A_MASK@GOTPAGE
Lloh7:
	ldr	x13, [x13, _RCV_RSM_MAP_TABLE_RCV_CONTEXT_A_MASK@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w14, w9, #7
	cmp	w9, #0
	csel	w14, w14, w9, lt
	asr	w14, w14, #3
	sub	w15, w12, w14, lsl #6
	sbfiz	x14, x14, #2, #32
	ldr	w16, [x11, x14]
	ldr	w17, [x13]
	lsl	w17, w17, w15
	bic	w16, w16, w17
	lsl	w15, w8, w15
	orr	w15, w16, w15
	str	w15, [x11, x14]
	add	w8, w8, #1
	add	w9, w9, #1
	ldr	w14, [x20, #4]
	add	w12, w12, #8
	cmp	w8, w14
	b.lt	LBB0_6
LBB0_7:
	stp	xzr, x10, [sp, #48]
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stp	xzr, xzr, [sp, #32]
	movi.4s	v1, #1
	stp	q0, q1, [sp]
Lloh10:
	adrp	x8, _RSM_INS_FECN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RSM_INS_FECN@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x20
	bl	_add_rsm_rule
	ldr	w8, [x19]
	add	w8, w8, w21
	str	w8, [x19]
	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
	add	sp, sp, #112
	ret
LBB0_8:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	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
	add	sp, sp, #112
	b	_dd_dev_err
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdrp	Lloh8, Lloh10
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TID_RDMA,4,2                   ; @TID_RDMA
	.comm	_NUM_MAP_ENTRIES,4,2            ; @NUM_MAP_ENTRIES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FECN handling disabled - too many contexts allocated\n"

	.comm	_RCV_RSM_MAP_TABLE_RCV_CONTEXT_A_MASK,4,2 ; @RCV_RSM_MAP_TABLE_RCV_CONTEXT_A_MASK
	.comm	_RSM_INS_FECN,4,2               ; @RSM_INS_FECN
	.no_dead_strip	_init_fecn_handling
.subsections_via_symbols
