	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_find_cached_pkey            ## -- Begin function ib_find_cached_pkey
	.p2align	4, 0x90
_ib_find_cached_pkey:                   ## @ib_find_cached_pkey
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	callq	_rdma_start_port
	cmpq	%rbx, %rax
	jg	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_rdma_end_port
	cmpq	%rbx, %rax
	jge	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_14
LBB0_3:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	negl	%r12d
	movq	%r15, %rdi
	callq	_read_lock_irqsave
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %r14
	movq	%r15, %rdi
	callq	_rdma_start_port
	subq	%rax, %rbx
	movq	(%r14,%rbx,8), %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	$-1, (%r8)
	movl	(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.4:
	movq	8(%rcx), %rsi
	movl	$-1, %ecx
	xorl	%edx, %edx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rdx,4), %ebx
	movl	%ebx, %edi
	xorl	%r13d, %edi
	testl	$32767, %edi                    ## imm = 0x7FFF
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	$32768, %ebx                    ## imm = 0x8000
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, %ecx
	jmp	LBB0_8
LBB0_9:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_13
## %bb.10:
	testl	%ecx, %ecx
	jns	LBB0_12
	jmp	LBB0_13
LBB0_11:
	movl	%edx, %ecx
LBB0_12:
	movl	%ecx, (%r8)
	xorl	%r12d, %r12d
LBB0_13:
	movq	%r15, %rdi
	callq	_read_unlock_irqrestore
LBB0_14:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_find_cached_pkey            ; -- Begin function ib_find_cached_pkey
	.p2align	2
_ib_find_cached_pkey:                   ; @ib_find_cached_pkey
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	bl	_rdma_start_port
	cmp	x0, x23
	b.gt	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_rdma_end_port
	cmp	x0, x23
	b.ge	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_3:
	neg	w21, w24
	mov	x0, x19
	bl	_read_lock_irqsave
	ldr	x25, [x19, #8]
	mov	x0, x19
	bl	_rdma_start_port
	sub	x8, x23, x0
	ldr	x10, [x25, x8, lsl #3]
	mov	w8, #-1
	str	w8, [x20]
	ldr	w8, [x10]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.4:
	mov	x9, #0
	ldr	x11, [x10, #8]
	mov	w10, #-1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.eq	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11, x9, lsl #2]
	eor	w13, w12, w22
	tst	w13, #0x7fff
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	tbnz	w12, #15, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x10, x9
	b	LBB0_5
LBB0_9:
	cbz	w24, LBB0_13
; %bb.10:
	tbz	w10, #31, LBB0_12
	b	LBB0_13
LBB0_11:
	mov	x10, x9
LBB0_12:
	mov	w21, #0
	str	w10, [x20]
LBB0_13:
	mov	x0, x19
	bl	_read_unlock_irqrestore
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
