	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opa_smp_check
_opa_smp_check:                         ## @opa_smp_check
	.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	%r9, %r14
	movl	%r8d, %r15d
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	callq	_ppd_from_ibp
	cmpl	$15, %r12d
	jne	LBB0_8
## %bb.1:
	movq	%rax, %rdi
	movl	%r13d, %esi
	movl	$15, %edx
	movl	%r15d, %ecx
	movq	%rax, %r12
	callq	_rcv_pkey_check
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movq	%r12, %rdi
	movq	(%r14), %rax
	movq	_IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_4:
	movl	8(%r14), %r9d
	xorl	%eax, %eax
	leal	-128(%r9), %r8d
	cmpl	$5, %r8d
	ja	LBB0_9
## %bb.5:
	movl	$43, %ecx
	btl	%r8d, %ecx
	jae	LBB0_13
## %bb.6:
	movq	_FULL_MGMT_P_KEY@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	je	LBB0_13
LBB0_7:
	movl	%r13d, %esi
	movl	%r15d, %edx
	callq	_ingress_pkey_table_fail
LBB0_8:
	movl	$1, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_IB_PORT_SM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	jne	LBB0_13
## %bb.10:
	movq	_IB_MGMT_METHOD_TRAP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r9d
	je	LBB0_8
## %bb.11:
	movq	_FULL_MGMT_P_KEY@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	jne	LBB0_7
## %bb.12:
	movq	_IB_SMP_UNSUP_METHOD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 12(%r14)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE,8,3 ## @IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE
	.comm	_IB_MGMT_CLASS_SUBN_LID_ROUTED,8,3 ## @IB_MGMT_CLASS_SUBN_LID_ROUTED
	.comm	_FULL_MGMT_P_KEY,4,2            ## @FULL_MGMT_P_KEY
	.comm	_IB_PORT_SM,4,2                 ## @IB_PORT_SM
	.comm	_IB_MGMT_METHOD_TRAP,4,2        ## @IB_MGMT_METHOD_TRAP
	.comm	_IB_SMP_UNSUP_METHOD,4,2        ## @IB_SMP_UNSUP_METHOD
	.no_dead_strip	_opa_smp_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opa_smp_check
_opa_smp_check:                         ; @opa_smp_check
	.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
	mov	x22, x5
	mov	x19, x4
	mov	x24, x2
	mov	x20, x1
	mov	x23, x0
	bl	_ppd_from_ibp
	cmp	w24, #15
	b.ne	LBB0_7
; %bb.1:
	mov	x21, x0
	mov	x1, x20
	mov	w2, #15
	mov	x3, x19
	bl	_rcv_pkey_check
	cbnz	x0, LBB0_7
; %bb.2:
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x22, #8]
	sub	w9, w8, #128
	cmp	w9, #5
	b.hi	LBB0_9
; %bb.4:
	mov	w8, #1
	lsl	w8, w8, w9
	mov	w9, #43
	tst	w8, w9
	b.eq	LBB0_10
; %bb.5:
Lloh6:
	adrp	x8, _FULL_MGMT_P_KEY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FULL_MGMT_P_KEY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_10
LBB0_6:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_ingress_pkey_table_fail
LBB0_7:
	mov	w0, #1
LBB0_8:
	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_9:
	ldr	w9, [x23]
Lloh9:
	adrp	x10, _IB_PORT_SM@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IB_PORT_SM@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
LBB0_10:
	mov	w0, #0
	b	LBB0_8
LBB0_11:
Lloh12:
	adrp	x9, _IB_MGMT_METHOD_TRAP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IB_MGMT_METHOD_TRAP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.12:
Lloh15:
	adrp	x8, _FULL_MGMT_P_KEY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FULL_MGMT_P_KEY@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_6
; %bb.13:
	mov	w0, #0
Lloh18:
	adrp	x8, _IB_SMP_UNSUP_METHOD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IB_SMP_UNSUP_METHOD@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x22, #12]
	orr	w8, w9, w8
	str	w8, [x22, #12]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE,8,3 ; @IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE
	.comm	_IB_MGMT_CLASS_SUBN_LID_ROUTED,8,3 ; @IB_MGMT_CLASS_SUBN_LID_ROUTED
	.comm	_FULL_MGMT_P_KEY,4,2            ; @FULL_MGMT_P_KEY
	.comm	_IB_PORT_SM,4,2                 ; @IB_PORT_SM
	.comm	_IB_MGMT_METHOD_TRAP,4,2        ; @IB_MGMT_METHOD_TRAP
	.comm	_IB_SMP_UNSUP_METHOD,4,2        ; @IB_SMP_UNSUP_METHOD
	.no_dead_strip	_opa_smp_check
.subsections_via_symbols
