	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_lidlmc
_set_lidlmc:                            ## @set_lidlmc
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movb	(%rdi), %cl
	movl	$-1, %eax
	shll	%cl, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	16(%rdi), %r13
	movq	_DCC_CFG_PORT_CONFIG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_read_csr
	movl	%eax, %r15d
	movq	8(%r14), %rbx
	movq	_IB_MULTICAST_LID_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_be16_to_cpu
	xorl	%r12d, %r12d
	cmpq	%rax, %rbx
	jge	LBB0_2
## %bb.1:
	movl	8(%r14), %r12d
LBB0_2:
	movq	_DCC_CFG_PORT_CONFIG1_TARGET_DLID_SMASK@GOTPCREL(%rip), %rax
	movq	_DCC_CFG_PORT_CONFIG1_DLID_MASK_SMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %r15d
	movq	_DCC_CFG_PORT_CONFIG1_TARGET_DLID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	movq	_DCC_CFG_PORT_CONFIG1_TARGET_DLID_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_DCC_CFG_PORT_CONFIG1_DLID_MASK_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_DCC_CFG_PORT_CONFIG1_DLID_MASK_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%r15d, %esi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	andl	%r15d, %edx
	shll	%cl, %edx
	orl	%esi, %eax
	orl	%eax, %edx
	movq	16(%r14), %rdi
	movq	_DCC_CFG_PORT_CONFIG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_write_csr
	movq	_SEND_CTXT_CHECK_SLID_MASK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r15d, %ebx
	movq	_SEND_CTXT_CHECK_SLID_MASK_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	andl	%r15d, %r12d
	movq	_SEND_CTXT_CHECK_SLID_VALUE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movq	_SEND_CTXT_CHECK_SLID_VALUE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r12d
	movq	%r13, %rdi
	callq	_chip_send_contexts
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	orl	%ebx, %r12d
	xorl	%ebx, %ebx
	leaq	L_.str(%rip), %r15
	movq	_SEND_CTXT_CHECK_SLID@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_LINKVERB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_hfi1_cdbg
	movl	(%r14), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r12d, %ecx
	callq	_write_kctxt_csr
	incl	%ebx
	movq	%r13, %rdi
	callq	_chip_send_contexts
	cmpl	%eax, %ebx
	jl	LBB0_4
LBB0_5:
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sdma_update_lmc                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DCC_CFG_PORT_CONFIG1,4,2       ## @DCC_CFG_PORT_CONFIG1
	.comm	_IB_MULTICAST_LID_BASE,4,2      ## @IB_MULTICAST_LID_BASE
	.comm	_DCC_CFG_PORT_CONFIG1_TARGET_DLID_SMASK,4,2 ## @DCC_CFG_PORT_CONFIG1_TARGET_DLID_SMASK
	.comm	_DCC_CFG_PORT_CONFIG1_DLID_MASK_SMASK,4,2 ## @DCC_CFG_PORT_CONFIG1_DLID_MASK_SMASK
	.comm	_DCC_CFG_PORT_CONFIG1_TARGET_DLID_MASK,4,2 ## @DCC_CFG_PORT_CONFIG1_TARGET_DLID_MASK
	.comm	_DCC_CFG_PORT_CONFIG1_TARGET_DLID_SHIFT,4,2 ## @DCC_CFG_PORT_CONFIG1_TARGET_DLID_SHIFT
	.comm	_DCC_CFG_PORT_CONFIG1_DLID_MASK_MASK,4,2 ## @DCC_CFG_PORT_CONFIG1_DLID_MASK_MASK
	.comm	_DCC_CFG_PORT_CONFIG1_DLID_MASK_SHIFT,4,2 ## @DCC_CFG_PORT_CONFIG1_DLID_MASK_SHIFT
	.comm	_SEND_CTXT_CHECK_SLID_MASK_MASK,4,2 ## @SEND_CTXT_CHECK_SLID_MASK_MASK
	.comm	_SEND_CTXT_CHECK_SLID_MASK_SHIFT,4,2 ## @SEND_CTXT_CHECK_SLID_MASK_SHIFT
	.comm	_SEND_CTXT_CHECK_SLID_VALUE_MASK,4,2 ## @SEND_CTXT_CHECK_SLID_VALUE_MASK
	.comm	_SEND_CTXT_CHECK_SLID_VALUE_SHIFT,4,2 ## @SEND_CTXT_CHECK_SLID_VALUE_SHIFT
	.comm	_LINKVERB,4,2                   ## @LINKVERB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SendContext[%d].SLID_CHECK = 0x%x"

	.comm	_SEND_CTXT_CHECK_SLID,4,2       ## @SEND_CTXT_CHECK_SLID
	.no_dead_strip	_set_lidlmc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_lidlmc
_set_lidlmc:                            ; @set_lidlmc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x0
	ldr	x19, [x0, #16]
	ldr	w8, [x0]
	mov	w9, #-1
	lsl	w20, w9, w8
Lloh0:
	adrp	x24, _DCC_CFG_PORT_CONFIG1@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DCC_CFG_PORT_CONFIG1@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_read_csr
	mov	x23, x0
	ldr	x21, [x22, #8]
Lloh2:
	adrp	x8, _IB_MULTICAST_LID_BASE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IB_MULTICAST_LID_BASE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_be16_to_cpu
	cmp	x21, x0
	b.ge	LBB0_2
; %bb.1:
	ldr	w21, [x22, #8]
	b	LBB0_3
LBB0_2:
	mov	w21, #0
LBB0_3:
Lloh5:
	adrp	x8, _DCC_CFG_PORT_CONFIG1_TARGET_DLID_SMASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DCC_CFG_PORT_CONFIG1_TARGET_DLID_SMASK@GOTPAGEOFF]
Lloh7:
	adrp	x9, _DCC_CFG_PORT_CONFIG1_DLID_MASK_SMASK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DCC_CFG_PORT_CONFIG1_DLID_MASK_SMASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w23, w8
Lloh11:
	adrp	x9, _DCC_CFG_PORT_CONFIG1_TARGET_DLID_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DCC_CFG_PORT_CONFIG1_TARGET_DLID_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	and	w9, w9, w21
Lloh14:
	adrp	x10, _DCC_CFG_PORT_CONFIG1_TARGET_DLID_SHIFT@GOTPAGE
Lloh15:
	ldr	x10, [x10, _DCC_CFG_PORT_CONFIG1_TARGET_DLID_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh17:
	adrp	x10, _DCC_CFG_PORT_CONFIG1_DLID_MASK_MASK@GOTPAGE
Lloh18:
	ldr	x10, [x10, _DCC_CFG_PORT_CONFIG1_DLID_MASK_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	and	w10, w10, w20
Lloh20:
	adrp	x11, _DCC_CFG_PORT_CONFIG1_DLID_MASK_SHIFT@GOTPAGE
Lloh21:
	ldr	x11, [x11, _DCC_CFG_PORT_CONFIG1_DLID_MASK_SHIFT@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	lsl	w10, w10, w11
	orr	w8, w9, w8
	orr	w2, w8, w10
	ldr	x0, [x22, #16]
	ldr	w1, [x24]
	bl	_write_csr
Lloh23:
	adrp	x8, _SEND_CTXT_CHECK_SLID_MASK_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SEND_CTXT_CHECK_SLID_MASK_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w26, [x8]
Lloh26:
	adrp	x8, _SEND_CTXT_CHECK_SLID_MASK_SHIFT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SEND_CTXT_CHECK_SLID_MASK_SHIFT@GOTPAGEOFF]
Lloh28:
	ldr	w24, [x8]
Lloh29:
	adrp	x8, _SEND_CTXT_CHECK_SLID_VALUE_MASK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SEND_CTXT_CHECK_SLID_VALUE_MASK@GOTPAGEOFF]
Lloh31:
	ldr	w25, [x8]
Lloh32:
	adrp	x8, _SEND_CTXT_CHECK_SLID_VALUE_SHIFT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SEND_CTXT_CHECK_SLID_VALUE_SHIFT@GOTPAGEOFF]
Lloh34:
	ldr	w23, [x8]
	mov	x0, x19
	bl	_chip_send_contexts
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.4:
	mov	w22, #0
	and	w8, w26, w20
	lsl	w8, w8, w24
	and	w9, w21, w20
	and	w9, w9, w25
	lsl	w9, w9, w23
	orr	w23, w9, w8
Lloh35:
	adrp	x25, _LINKVERB@GOTPAGE
Lloh36:
	ldr	x25, [x25, _LINKVERB@GOTPAGEOFF]
Lloh37:
	adrp	x24, l_.str@PAGE
Lloh38:
	add	x24, x24, l_.str@PAGEOFF
Lloh39:
	adrp	x26, _SEND_CTXT_CHECK_SLID@GOTPAGE
Lloh40:
	ldr	x26, [x26, _SEND_CTXT_CHECK_SLID@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	mov	x1, x24
	mov	x2, x22
	mov	x3, x23
	bl	_hfi1_cdbg
	ldr	w2, [x26]
	mov	x0, x19
	mov	x1, x22
	mov	x3, x23
	bl	_write_kctxt_csr
	add	w22, w22, #1
	mov	x0, x19
	bl	_chip_send_contexts
	cmp	w22, w0
	b.lt	LBB0_5
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_sdma_update_lmc
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_DCC_CFG_PORT_CONFIG1,4,2       ; @DCC_CFG_PORT_CONFIG1
	.comm	_IB_MULTICAST_LID_BASE,4,2      ; @IB_MULTICAST_LID_BASE
	.comm	_DCC_CFG_PORT_CONFIG1_TARGET_DLID_SMASK,4,2 ; @DCC_CFG_PORT_CONFIG1_TARGET_DLID_SMASK
	.comm	_DCC_CFG_PORT_CONFIG1_DLID_MASK_SMASK,4,2 ; @DCC_CFG_PORT_CONFIG1_DLID_MASK_SMASK
	.comm	_DCC_CFG_PORT_CONFIG1_TARGET_DLID_MASK,4,2 ; @DCC_CFG_PORT_CONFIG1_TARGET_DLID_MASK
	.comm	_DCC_CFG_PORT_CONFIG1_TARGET_DLID_SHIFT,4,2 ; @DCC_CFG_PORT_CONFIG1_TARGET_DLID_SHIFT
	.comm	_DCC_CFG_PORT_CONFIG1_DLID_MASK_MASK,4,2 ; @DCC_CFG_PORT_CONFIG1_DLID_MASK_MASK
	.comm	_DCC_CFG_PORT_CONFIG1_DLID_MASK_SHIFT,4,2 ; @DCC_CFG_PORT_CONFIG1_DLID_MASK_SHIFT
	.comm	_SEND_CTXT_CHECK_SLID_MASK_MASK,4,2 ; @SEND_CTXT_CHECK_SLID_MASK_MASK
	.comm	_SEND_CTXT_CHECK_SLID_MASK_SHIFT,4,2 ; @SEND_CTXT_CHECK_SLID_MASK_SHIFT
	.comm	_SEND_CTXT_CHECK_SLID_VALUE_MASK,4,2 ; @SEND_CTXT_CHECK_SLID_VALUE_MASK
	.comm	_SEND_CTXT_CHECK_SLID_VALUE_SHIFT,4,2 ; @SEND_CTXT_CHECK_SLID_VALUE_SHIFT
	.comm	_LINKVERB,4,2                   ; @LINKVERB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SendContext[%d].SLID_CHECK = 0x%x"

	.comm	_SEND_CTXT_CHECK_SLID,4,2       ; @SEND_CTXT_CHECK_SLID
	.no_dead_strip	_set_lidlmc
.subsections_via_symbols
