	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qedr_query_pkey                ## -- Begin function qedr_query_pkey
	.p2align	4, 0x90
_qedr_query_pkey:                       ## @qedr_query_pkey
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_QEDR_ROCE_PKEY_TABLE_LEN@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jle	LBB0_1
## %bb.2:
	movq	_QEDR_ROCE_PKEY_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QEDR_ROCE_PKEY_TABLE_LEN,8,3   ## @QEDR_ROCE_PKEY_TABLE_LEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QEDR_ROCE_PKEY_DEFAULT,8,3     ## @QEDR_ROCE_PKEY_DEFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qedr_query_pkey                ; -- Begin function qedr_query_pkey
	.p2align	2
_qedr_query_pkey:                       ; @qedr_query_pkey
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _QEDR_ROCE_PKEY_TABLE_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QEDR_ROCE_PKEY_TABLE_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.le	LBB0_2
; %bb.1:
	mov	w0, #0
Lloh3:
	adrp	x8, _QEDR_ROCE_PKEY_DEFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QEDR_ROCE_PKEY_DEFAULT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x3]
	ret
LBB0_2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_QEDR_ROCE_PKEY_TABLE_LEN,8,3   ; @QEDR_ROCE_PKEY_TABLE_LEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QEDR_ROCE_PKEY_DEFAULT,8,3     ; @QEDR_ROCE_PKEY_DEFAULT
.subsections_via_symbols
