	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smi_handle_dr_smp_send         ## -- Begin function smi_handle_dr_smp_send
	.p2align	4, 0x90
_smi_handle_dr_smp_send:                ## @smi_handle_dr_smp_send
	.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), %rbx
	movq	_IB_SMP_MAX_PATH_HOPS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jge	LBB0_26
## %bb.1:
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	(%rdi), %r12
	callq	_ib_get_smp_direction
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.3:
	leaq	1(%rbx), %rax
	cmpq	%rax, %r12
	je	LBB0_4
LBB0_9:
	cmpq	$2, %r12
	jl	LBB0_17
## %bb.10:
	cmpq	%rbx, %r12
	jg	LBB0_17
## %bb.11:
	movq	_RDMA_NODE_IB_SWITCH@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_26
LBB0_4:
	movq	(%r13), %rax
	movq	32(%r13), %rcx
	leaq	-1(%rax), %rdx
	movq	%rdx, (%r13)
	cmpl	%r14d, -4(%rcx,%rax,4)
	je	LBB0_8
	jmp	LBB0_26
LBB0_5:
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.6:
	testq	%r12, %r12
	jne	LBB0_13
LBB0_7:
	movq	(%r13), %rax
	movq	16(%r13), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, (%r13)
	cmpl	%r14d, 4(%rcx,%rax,4)
	jne	LBB0_26
	jmp	LBB0_8
LBB0_13:
	testq	%r12, %r12
	je	LBB0_22
## %bb.14:
	cmpq	%rbx, %r12
	jge	LBB0_22
## %bb.15:
	movq	_RDMA_NODE_IB_SWITCH@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	je	LBB0_7
	jmp	LBB0_26
LBB0_17:
	testq	%r12, %r12
	je	LBB0_8
## %bb.18:
	cmpq	$1, %r12
	jne	LBB0_26
## %bb.19:
	decq	(%r13)
	movq	_RDMA_NODE_IB_SWITCH@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	je	LBB0_8
## %bb.20:
	movq	40(%r13), %rax
	jmp	LBB0_21
LBB0_22:
	cmpq	%rbx, %r12
	jne	LBB0_25
## %bb.23:
	incq	(%r13)
	movq	_RDMA_NODE_IB_SWITCH@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	je	LBB0_8
## %bb.24:
	movq	24(%r13), %rax
LBB0_21:
	movq	_IB_LID_PERMISSIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
LBB0_8:
	movq	_IB_SMI_HANDLE@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_25:
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_8
LBB0_26:
	movq	_IB_SMI_DISCARD@GOTPCREL(%rip), %rax
LBB0_27:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	_IB_SMI_HANDLE,4,2              ## @IB_SMI_HANDLE
	.comm	_RDMA_NODE_IB_SWITCH,8,3        ## @RDMA_NODE_IB_SWITCH
	.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_send         ; -- Begin function smi_handle_dr_smp_send
	.p2align	2
_smi_handle_dr_smp_send:                ; @smi_handle_dr_smp_send
	.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	x23, [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	x23, x8
	b.ge	LBB0_19
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0]
	bl	_ib_get_smp_direction
	cbz	w0, LBB0_5
; %bb.2:
	cbz	x23, LBB0_9
; %bb.3:
	add	x8, x23, #1
	cmp	x22, x8
	b.ne	LBB0_9
LBB0_4:
	ldr	x8, [x19]
	sub	x8, x8, #1
	ldr	x9, [x19, #32]
	b	LBB0_8
LBB0_5:
	cbz	x23, LBB0_12
; %bb.6:
	cbnz	x22, LBB0_12
LBB0_7:
	ldr	x8, [x19]
	add	x8, x8, #1
	ldr	x9, [x19, #16]
LBB0_8:
	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, w20
	csel	x8, x10, x8, eq
	b	LBB0_20
LBB0_9:
	cmp	x22, #2
	b.lt	LBB0_15
; %bb.10:
	cmp	x22, x23
	b.gt	LBB0_15
; %bb.11:
Lloh7:
	adrp	x8, _RDMA_NODE_IB_SWITCH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RDMA_NODE_IB_SWITCH@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x8, x21
	b.eq	LBB0_4
	b	LBB0_19
LBB0_12:
	cbz	x22, LBB0_21
; %bb.13:
	cmp	x22, x23
	b.ge	LBB0_21
; %bb.14:
Lloh10:
	adrp	x8, _RDMA_NODE_IB_SWITCH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RDMA_NODE_IB_SWITCH@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x8, x21
	b.eq	LBB0_7
	b	LBB0_19
LBB0_15:
	cbz	x22, LBB0_25
; %bb.16:
	cmp	x22, #1
	b.ne	LBB0_19
; %bb.17:
	ldr	x8, [x19]
	sub	x8, x8, #1
	str	x8, [x19]
Lloh13:
	adrp	x8, _RDMA_NODE_IB_SWITCH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RDMA_NODE_IB_SWITCH@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x8]
Lloh16:
	adrp	x8, _IB_SMI_HANDLE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IB_SMI_HANDLE@GOTPAGEOFF]
	cmp	x9, x21
	b.eq	LBB0_20
; %bb.18:
Lloh18:
	adrp	x9, _IB_LID_PERMISSIVE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IB_LID_PERMISSIVE@GOTPAGEOFF]
	ldr	x10, [x19, #40]
	b	LBB0_24
LBB0_19:
Lloh20:
	adrp	x8, _IB_SMI_DISCARD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IB_SMI_DISCARD@GOTPAGEOFF]
LBB0_20:
	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_21:
	cmp	x22, x23
	b.ne	LBB0_26
; %bb.22:
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
Lloh22:
	adrp	x8, _RDMA_NODE_IB_SWITCH@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RDMA_NODE_IB_SWITCH@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x8]
Lloh25:
	adrp	x8, _IB_SMI_HANDLE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IB_SMI_HANDLE@GOTPAGEOFF]
	cmp	x9, x21
	b.eq	LBB0_20
; %bb.23:
Lloh27:
	adrp	x9, _IB_LID_PERMISSIVE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IB_LID_PERMISSIVE@GOTPAGEOFF]
	ldr	x10, [x19, #24]
LBB0_24:
	ldr	x9, [x9]
Lloh29:
	adrp	x11, _IB_SMI_DISCARD@GOTPAGE
Lloh30:
	ldr	x11, [x11, _IB_SMI_DISCARD@GOTPAGEOFF]
	cmp	x10, x9
	csel	x8, x8, x11, eq
	b	LBB0_20
LBB0_25:
Lloh31:
	adrp	x8, _IB_SMI_HANDLE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IB_SMI_HANDLE@GOTPAGEOFF]
	b	LBB0_20
LBB0_26:
Lloh33:
	adrp	x8, _IB_SMI_HANDLE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IB_SMI_HANDLE@GOTPAGEOFF]
	add	x9, x23, #1
Lloh35:
	adrp	x10, _IB_SMI_DISCARD@GOTPAGE
Lloh36:
	ldr	x10, [x10, _IB_SMI_DISCARD@GOTPAGEOFF]
	cmp	x22, x9
	csel	x8, x8, x10, eq
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.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	_IB_SMI_HANDLE,4,2              ; @IB_SMI_HANDLE
	.comm	_RDMA_NODE_IB_SWITCH,8,3        ; @RDMA_NODE_IB_SWITCH
	.comm	_IB_LID_PERMISSIVE,8,3          ; @IB_LID_PERMISSIVE
.subsections_via_symbols
