	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_qp_port_pkey_settings
_check_qp_port_pkey_settings:           ## @check_qp_port_pkey_settings
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %rcx
	movq	_IB_PORT_PKEY_NOT_VALID@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rcx
	jne	LBB0_2
LBB0_5:
	movl	$0, %eax
	cmpq	%rcx, (%rbx)
	je	LBB0_8
## %bb.6:
	leaq	-28(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_get_pkey_and_subnet_prefix
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	-28(%rbp), %edi
	movl	-32(%rbp), %esi
	movq	%r14, %rdx
	callq	_enforce_qp_pkey_security
	jmp	LBB0_8
LBB0_2:
	leaq	8(%rbx), %rdi
	leaq	-28(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	callq	_get_pkey_and_subnet_prefix
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movl	-28(%rbp), %edi
	movl	-32(%rbp), %esi
	movq	%r14, %rdx
	callq	_enforce_qp_pkey_security
	testl	%eax, %eax
	je	LBB0_4
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%r15), %rcx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_PORT_PKEY_NOT_VALID,8,3     ## @IB_PORT_PKEY_NOT_VALID
	.no_dead_strip	_check_qp_port_pkey_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_qp_port_pkey_settings
_check_qp_port_pkey_settings:           ; @check_qp_port_pkey_settings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]!
Lloh0:
	adrp	x21, _IB_PORT_PKEY_NOT_VALID@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IB_PORT_PKEY_NOT_VALID@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_2:
	ldr	x9, [x20]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.3:
	mov	w0, #0
	b	LBB0_9
LBB0_4:
	add	x1, sp, #8
	add	x2, sp, #12
	bl	_get_pkey_and_subnet_prefix
	cbnz	w0, LBB0_9
; %bb.5:
	ldp	w0, w1, [sp, #8]
	mov	x2, x19
	bl	_enforce_qp_pkey_security
	cbnz	w0, LBB0_9
; %bb.6:
	ldr	x8, [x21]
	b	LBB0_2
LBB0_7:
	add	x1, sp, #8
	add	x2, sp, #12
	mov	x0, x20
	bl	_get_pkey_and_subnet_prefix
	cbnz	w0, LBB0_9
; %bb.8:
	ldp	w0, w1, [sp, #8]
	mov	x2, x19
	bl	_enforce_qp_pkey_security
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_PORT_PKEY_NOT_VALID,8,3     ; @IB_PORT_PKEY_NOT_VALID
	.no_dead_strip	_check_qp_port_pkey_settings
.subsections_via_symbols
