	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_opa_smi
_handle_opa_smi:                        ## @handle_opa_smi
	.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	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movl	%ecx, %r14d
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	40(%r8), %r13
	movq	(%rdi), %rdi
	callq	_rdma_cap_ib_switch
	movq	(%rbx), %rcx
	movl	(%rcx), %ecx
	movq	%r13, %rdi
	movq	%rax, %rsi
	movl	%r14d, %edx
	callq	_opa_smi_handle_dr_smp_recv
	movq	_IB_SMI_DISCARD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.1:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	callq	_opa_smi_check_forward_dr_smp
	movl	%eax, %r14d
	movq	_IB_SMI_LOCAL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_2
LBB0_5:
	movq	_IB_SMI_HANDLE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	_IB_SMI_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	(%rbx), %rdi
	callq	_rdma_cap_ib_switch
	cmpl	%r13d, %r14d
	jne	LBB0_6
## %bb.3:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_opa_smi_handle_dr_smp_send
	movq	_IB_SMI_DISCARD@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_9
## %bb.4:
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_opa_smi_check_local_smp
	cmpq	(%r14), %rax
	jne	LBB0_5
	jmp	LBB0_9
LBB0_6:
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_mad_priv_size
	movq	%r14, %rdi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_memcpy
	movq	%r14, 24(%r14)
	movq	40(%r14), %r15
	movq	%r15, 16(%r14)
	leaq	32(%r14), %r13
	movq	%r13, 8(%r14)
	movq	(%rbx), %r14
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_opa_smi_get_fwd_port
	movq	(%r12), %rcx
	movl	(%rcx), %r9d
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ebx
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	movl	%eax, %r8d
	pushq	$1
	pushq	%rbx
	callq	_agent_send_response
	addq	$16, %rsp
	movq	_IB_SMI_DISCARD@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SMI_DISCARD,8,3             ## @IB_SMI_DISCARD
	.comm	_IB_SMI_LOCAL,4,2               ## @IB_SMI_LOCAL
	.comm	_IB_SMI_HANDLE,4,2              ## @IB_SMI_HANDLE
	.comm	_IB_SMI_SEND,4,2                ## @IB_SMI_SEND
	.no_dead_strip	_handle_opa_smi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_opa_smi
_handle_opa_smi:                        ; @handle_opa_smi
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x24, x5
	mov	x22, x4
	mov	x25, x3
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
	ldr	x19, [x4, #40]
	ldr	x0, [x0]
	bl	_rdma_cap_ib_switch
	mov	x1, x0
	ldr	x8, [x21]
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, x25
	bl	_opa_smi_handle_dr_smp_recv
Lloh0:
	adrp	x27, _IB_SMI_DISCARD@GOTPAGE
Lloh1:
	ldr	x27, [x27, _IB_SMI_DISCARD@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.1:
	mov	x0, x19
	bl	_opa_smi_check_forward_dr_smp
Lloh2:
	adrp	x8, _IB_SMI_LOCAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IB_SMI_LOCAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _IB_SMI_HANDLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IB_SMI_HANDLE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_3:
	mov	x26, x0
Lloh8:
	adrp	x8, _IB_SMI_SEND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_SMI_SEND@GOTPAGEOFF]
Lloh10:
	ldr	w28, [x8]
	ldr	x0, [x21]
	bl	_rdma_cap_ib_switch
	mov	x1, x0
	cmp	w26, w28
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x19
	mov	x2, x25
	bl	_opa_smi_handle_dr_smp_send
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.5:
	ldr	x1, [x21]
	mov	x0, x19
	bl	_opa_smi_check_local_smp
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_2
LBB0_6:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	b	LBB0_9
LBB0_7:
	cbz	x1, LBB0_2
; %bb.8:
	mov	x0, x24
	bl	_mad_priv_size
	mov	x2, x0
	mov	x0, x24
	mov	x1, x22
	bl	_memcpy
	ldr	x25, [x24, #40]
	add	x26, x24, #32
	stp	x25, x24, [x24, #16]
	str	x26, [x24, #8]
	ldr	x21, [x21]
	mov	x0, x19
	bl	_opa_smi_get_fwd_port
	mov	x4, x0
	ldr	x8, [x23]
	ldr	w5, [x8]
	ldr	w6, [x22]
	mov	x0, x25
	mov	x1, x26
	mov	x2, x20
	mov	x3, x21
	mov	w7, #1
	bl	_agent_send_response
	ldr	w0, [x27]
LBB0_9:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SMI_DISCARD,8,3             ; @IB_SMI_DISCARD
	.comm	_IB_SMI_LOCAL,4,2               ; @IB_SMI_LOCAL
	.comm	_IB_SMI_HANDLE,4,2              ; @IB_SMI_HANDLE
	.comm	_IB_SMI_SEND,4,2                ; @IB_SMI_SEND
	.no_dead_strip	_handle_opa_smi
.subsections_via_symbols
