	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smi_handle_dr_smp_recv         ## -- Begin function smi_handle_dr_smp_recv
	.p2align	4, 0x90
_smi_handle_dr_smp_recv:                ## @smi_handle_dr_smp_recv
	.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	8(%rdi), %r14
	movq	_IB_SMP_MAX_PATH_HOPS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jge	LBB0_27
## %bb.1:
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rdi, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r13
	callq	_ib_get_smp_direction
	testl	%eax, %eax
	je	LBB0_2
## %bb.14:
	testq	%r14, %r14
	je	LBB0_17
## %bb.15:
	leaq	1(%r14), %rax
	cmpq	%rax, %r13
	jne	LBB0_17
## %bb.16:
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	leaq	-1(%rax), %rdx
	movq	%rdx, (%rbx)
	cmpl	%r12d, -4(%rcx,%rax,4)
	je	LBB0_24
	jmp	LBB0_27
LBB0_2:
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	testq	%r13, %r13
	je	LBB0_27
LBB0_4:
	testq	%r13, %r13
	je	LBB0_8
## %bb.5:
	cmpq	%r14, %r13
	jge	LBB0_8
## %bb.6:
	movq	_RDMA_NODE_IB_SWITCH@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rax)
	jne	LBB0_27
## %bb.7:
	movq	16(%rbx), %rax
	movl	%r12d, (%rax,%r13,4)
	movq	24(%rbx), %rax
	cmpl	%r15d, 4(%rax,%r13,4)
	jle	LBB0_24
	jmp	LBB0_27
LBB0_17:
	cmpq	$2, %r13
	jl	LBB0_21
## %bb.18:
	cmpq	%r14, %r13
	jg	LBB0_21
## %bb.19:
	movq	_RDMA_NODE_IB_SWITCH@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rax)
	jne	LBB0_27
## %bb.20:
	movq	16(%rbx), %rax
	cmpl	%r15d, -4(%rax,%r13,4)
	jle	LBB0_24
	jmp	LBB0_27
LBB0_21:
	cmpq	$1, %r13
	jne	LBB0_26
## %bb.22:
	movq	40(%rbx), %rax
	movq	_IB_LID_PERMISSIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.23:
	decq	(%rbx)
	jmp	LBB0_24
LBB0_8:
	cmpq	%r14, %r13
	jne	LBB0_13
## %bb.9:
	testq	%r14, %r14
	je	LBB0_11
## %bb.10:
	movq	16(%rbx), %rax
	movl	%r12d, (%rax,%r13,4)
LBB0_11:
	movq	_RDMA_NODE_IB_SWITCH@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rax)
	je	LBB0_24
## %bb.12:
	movq	32(%rbx), %rax
	movq	_IB_LID_PERMISSIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_24
	jmp	LBB0_27
LBB0_26:
	testq	%r13, %r13
	jne	LBB0_27
LBB0_24:
	movq	_IB_SMI_HANDLE@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_13:
	incq	%r14
	cmpq	%r14, %r13
	je	LBB0_24
LBB0_27:
	movq	_IB_SMI_DISCARD@GOTPCREL(%rip), %rax
LBB0_28:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	_RDMA_NODE_IB_SWITCH@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rax)
	je	LBB0_24
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SMP_MAX_PATH_HOPS,8,3       ## @IB_SMP_MAX_PATH_HOPS
	.comm	_IB_SMI_DISCARD,4,2             ## @IB_SMI_DISCARD
	.comm	_RDMA_NODE_IB_SWITCH,8,3        ## @RDMA_NODE_IB_SWITCH
	.comm	_IB_SMI_HANDLE,4,2              ## @IB_SMI_HANDLE
	.comm	_IB_LID_PERMISSIVE,8,3          ## @IB_LID_PERMISSIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smi_handle_dr_smp_recv         ; -- Begin function smi_handle_dr_smp_recv
	.p2align	2
_smi_handle_dr_smp_recv:                ; @smi_handle_dr_smp_recv
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x24, [x0, #8]
Lloh0:
	adrp	x8, _IB_SMP_MAX_PATH_HOPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_SMP_MAX_PATH_HOPS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x24, x8
	b.ge	LBB0_16
; %bb.1:
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x23, [x0]
	bl	_ib_get_smp_direction
	cbz	w0, LBB0_5
; %bb.2:
	cbz	x24, LBB0_11
; %bb.3:
	add	x8, x24, #1
	cmp	x23, x8
	b.ne	LBB0_11
; %bb.4:
	ldr	x8, [x19]
	sub	x8, x8, #1
	ldr	x9, [x19, #16]
	ldr	w9, [x9, x8, lsl #2]
Lloh3:
	adrp	x10, _IB_SMI_HANDLE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IB_SMI_HANDLE@GOTPAGEOFF]
	str	x8, [x19]
Lloh5:
	adrp	x8, _IB_SMI_DISCARD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IB_SMI_DISCARD@GOTPAGEOFF]
	cmp	w9, w22
	csel	x8, x10, x8, eq
	b	LBB0_17
LBB0_5:
	cbz	x24, LBB0_7
; %bb.6:
	cbz	x23, LBB0_16
LBB0_7:
	cbz	x23, LBB0_21
; %bb.8:
	cmp	x23, x24
	b.ge	LBB0_21
; %bb.9:
Lloh7:
	adrp	x8, _RDMA_NODE_IB_SWITCH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RDMA_NODE_IB_SWITCH@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_16
; %bb.10:
	lsl	x8, x23, #2
	ldp	x9, x10, [x19, #16]
	str	w22, [x9, x8]
	add	x8, x8, x10
Lloh10:
	adrp	x9, _IB_SMI_HANDLE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IB_SMI_HANDLE@GOTPAGEOFF]
	ldr	w8, [x8, #4]
	b	LBB0_15
LBB0_11:
	cmp	x23, #2
	b.lt	LBB0_18
; %bb.12:
	cmp	x23, x24
	b.gt	LBB0_18
; %bb.13:
Lloh12:
	adrp	x8, _RDMA_NODE_IB_SWITCH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RDMA_NODE_IB_SWITCH@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_16
; %bb.14:
	ldr	x8, [x19, #16]
	add	x8, x8, x23, lsl #2
Lloh15:
	adrp	x9, _IB_SMI_HANDLE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IB_SMI_HANDLE@GOTPAGEOFF]
	ldur	w8, [x8, #-4]
LBB0_15:
Lloh17:
	adrp	x10, _IB_SMI_DISCARD@GOTPAGE
Lloh18:
	ldr	x10, [x10, _IB_SMI_DISCARD@GOTPAGEOFF]
	cmp	w8, w21
	csel	x8, x10, x9, gt
	b	LBB0_17
LBB0_16:
Lloh19:
	adrp	x8, _IB_SMI_DISCARD@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IB_SMI_DISCARD@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_18:
	cmp	x23, #1
	b.ne	LBB0_26
; %bb.19:
	ldr	x8, [x19, #40]
Lloh21:
	adrp	x9, _IB_LID_PERMISSIVE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IB_LID_PERMISSIVE@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_28
; %bb.20:
	ldr	x8, [x19]
	sub	x8, x8, #1
	str	x8, [x19]
Lloh24:
	adrp	x8, _IB_SMI_HANDLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IB_SMI_HANDLE@GOTPAGEOFF]
	b	LBB0_17
LBB0_21:
	cmp	x23, x24
	b.ne	LBB0_27
; %bb.22:
	cbz	x24, LBB0_24
; %bb.23:
	ldr	x8, [x19, #16]
	str	w22, [x8, x23, lsl #2]
LBB0_24:
Lloh26:
	adrp	x8, _RDMA_NODE_IB_SWITCH@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RDMA_NODE_IB_SWITCH@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x8]
Lloh29:
	adrp	x8, _IB_SMI_HANDLE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IB_SMI_HANDLE@GOTPAGEOFF]
	cmp	x9, x20
	b.eq	LBB0_17
; %bb.25:
Lloh31:
	adrp	x9, _IB_LID_PERMISSIVE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _IB_LID_PERMISSIVE@GOTPAGEOFF]
	ldr	x10, [x19, #32]
Lloh33:
	ldr	x9, [x9]
Lloh34:
	adrp	x11, _IB_SMI_DISCARD@GOTPAGE
Lloh35:
	ldr	x11, [x11, _IB_SMI_DISCARD@GOTPAGEOFF]
	cmp	x10, x9
	csel	x8, x8, x11, eq
	b	LBB0_17
LBB0_26:
Lloh36:
	adrp	x8, _IB_SMI_HANDLE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IB_SMI_HANDLE@GOTPAGEOFF]
Lloh38:
	adrp	x9, _IB_SMI_DISCARD@GOTPAGE
Lloh39:
	ldr	x9, [x9, _IB_SMI_DISCARD@GOTPAGEOFF]
	cmp	x23, #0
	csel	x8, x8, x9, eq
	b	LBB0_17
LBB0_27:
Lloh40:
	adrp	x8, _IB_SMI_HANDLE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IB_SMI_HANDLE@GOTPAGEOFF]
	add	x9, x24, #1
Lloh42:
	adrp	x10, _IB_SMI_DISCARD@GOTPAGE
Lloh43:
	ldr	x10, [x10, _IB_SMI_DISCARD@GOTPAGEOFF]
	cmp	x23, x9
	csel	x8, x8, x10, eq
	b	LBB0_17
LBB0_28:
Lloh44:
	adrp	x8, _RDMA_NODE_IB_SWITCH@GOTPAGE
Lloh45:
	ldr	x8, [x8, _RDMA_NODE_IB_SWITCH@GOTPAGEOFF]
Lloh46:
	adrp	x9, _IB_SMI_HANDLE@GOTPAGE
Lloh47:
	ldr	x9, [x9, _IB_SMI_HANDLE@GOTPAGEOFF]
Lloh48:
	ldr	x8, [x8]
Lloh49:
	adrp	x10, _IB_SMI_DISCARD@GOTPAGE
Lloh50:
	ldr	x10, [x10, _IB_SMI_DISCARD@GOTPAGEOFF]
	cmp	x8, x20
	csel	x8, x9, x10, eq
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SMP_MAX_PATH_HOPS,8,3       ; @IB_SMP_MAX_PATH_HOPS
	.comm	_IB_SMI_DISCARD,4,2             ; @IB_SMI_DISCARD
	.comm	_RDMA_NODE_IB_SWITCH,8,3        ; @RDMA_NODE_IB_SWITCH
	.comm	_IB_SMI_HANDLE,4,2              ; @IB_SMI_HANDLE
	.comm	_IB_LID_PERMISSIVE,8,3          ; @IB_LID_PERMISSIVE
.subsections_via_symbols
