	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_find_exact_cached_pkey      ## -- Begin function ib_find_exact_cached_pkey
	.p2align	4, 0x90
_ib_find_exact_cached_pkey:             ## @ib_find_exact_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	callq	_start_port
	cmpq	%rbx, %rax
	jg	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_end_port
	cmpq	%rbx, %rax
	jge	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movl	%r13d, %r15d
	jmp	LBB0_9
LBB0_3:
	movq	%r14, %rdi
	callq	_read_lock_irqsave
	movq	8(%r14), %r13
	movq	%r14, %rdi
	callq	_start_port
	subq	%rax, %rbx
	movq	(%r13,%rbx,8), %rcx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	$-1, (%rsi)
	movl	(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.4:
	movq	8(%rcx), %rcx
	shlq	$4, %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, (%rcx,%rdx)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$16, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_5
	jmp	LBB0_8
LBB0_6:
	movq	8(%rcx,%rdx), %rax
	movq	%rax, (%rsi)
	xorl	%r15d, %r15d
LBB0_8:
	movq	%r14, %rdi
	callq	_read_unlock_irqrestore
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %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_exact_cached_pkey      ; -- Begin function ib_find_exact_cached_pkey
	.p2align	2
_ib_find_exact_cached_pkey:             ; @ib_find_exact_cached_pkey
	.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	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	bl	_start_port
	cmp	x0, x23
	b.gt	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_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_9
LBB0_3:
	neg	w21, w21
	mov	x0, x19
	bl	_read_lock_irqsave
	ldr	x24, [x19, #8]
	mov	x0, x19
	bl	_start_port
	sub	x8, x23, x0
	ldr	x9, [x24, x8, lsl #3]
	mov	x8, #-1
	str	x8, [x20]
	ldr	w8, [x9]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	ldr	x9, [x9, #8]
	add	x9, x9, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x9, #-8]
	cmp	x10, x22
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #16
	subs	x8, x8, #1
	b.ne	LBB0_5
	b	LBB0_8
LBB0_7:
	mov	w21, #0
	ldr	x8, [x9]
	str	x8, [x20]
LBB0_8:
	mov	x0, x19
	bl	_read_unlock_irqrestore
LBB0_9:
	mov	x0, x21
	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
	.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
