	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_qplib_get_pkey            ## -- Begin function bnxt_qplib_get_pkey
	.p2align	4, 0x90
_bnxt_qplib_get_pkey:                   ## @bnxt_qplib_get_pkey
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$65535, %edx                    ## imm = 0xFFFF
	jne	LBB0_2
## %bb.1:
	movl	$65535, (%rcx)                  ## imm = 0xFFFF
	jmp	LBB0_5
LBB0_2:
	movl	(%rsi), %eax
	cmpl	%edx, %eax
	jle	LBB0_3
## %bb.4:
	movslq	%edx, %rax
	shlq	$2, %rax
	addq	8(%rsi), %rax
	movq	%rcx, %rdi
	movq	%rax, %rsi
	movl	$4, %edx
	callq	_memcpy
LBB0_5:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_3:
	movq	(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %ecx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Index %d exceeded PKEY table max (%d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_qplib_get_pkey            ; -- Begin function bnxt_qplib_get_pkey
	.p2align	2
_bnxt_qplib_get_pkey:                   ; @bnxt_qplib_get_pkey
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	w8, #65535
	cmp	w2, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	str	w8, [x3]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w8, [x1]
	cmp	w8, w2
	b.le	LBB0_4
; %bb.3:
	ldr	x8, [x1, #8]
	add	x1, x8, w2, sxtw #2
	mov	x0, x3
	mov	w2, #4
	bl	_memcpy
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x8
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Index %d exceeded PKEY table max (%d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
