	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_lookup_qpn                 ## -- Begin function qib_lookup_qpn
	.p2align	4, 0x90
_qib_lookup_qpn:                        ## @qib_lookup_qpn
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpl	$2, %esi
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_rcu_read_lock
	xorl	%eax, %eax
	testl	%r15d, %r15d
	sete	%al
	movl	(%rbx,%rax,4), %edi
	callq	_rcu_dereference
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_7
LBB0_2:
	movq	%rbx, %rdi
	callq	_atomic_inc_not_zero
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	xorl	%r14d, %r14d
	testq	%rax, %rax
	cmoveq	%rbx, %r14
	jmp	LBB0_7
LBB0_3:
	movq	%rbx, %rdi
	callq	_ppd_from_ibp
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_qpn_hash
	movl	%eax, %r12d
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	(%rbx), %rax
	movl	%r12d, %ecx
	movl	(%rax,%rcx,4), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r15d, 4(%rbx)
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%rbx), %edi
	callq	_rcu_dereference
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
LBB0_7:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_lookup_qpn                 ; -- Begin function qib_lookup_qpn
	.p2align	2
_qib_lookup_qpn:                        ; @qib_lookup_qpn
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	cmp	w1, #2
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
	bl	_rcu_read_lock
	cmp	w19, #0
	cset	w8, eq
	ldr	w0, [x20, w8, uxtw #2]
	bl	_rcu_dereference
	mov	x20, x0
	cbz	x0, LBB0_7
LBB0_2:
	mov	x0, x20
	bl	_atomic_inc_not_zero
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cmp	x0, #0
	csel	x19, x20, xzr, eq
	b	LBB0_8
LBB0_3:
	mov	x0, x20
	bl	_ppd_from_ibp
	ldr	x20, [x0]
	mov	x0, x20
	mov	x1, x19
	bl	_qpn_hash
	mov	x21, x0
	bl	_rcu_read_lock
	ldr	x8, [x20]
	ldr	w0, [x8, w21, uxtw #2]
	bl	_rcu_dereference
	cbz	x0, LBB0_7
; %bb.4:
	mov	x20, x0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, #4]
	cmp	w8, w19
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x20, #8]
	bl	_rcu_dereference
	mov	x20, x0
	cbnz	x0, LBB0_5
LBB0_7:
	mov	x19, #0
LBB0_8:
	bl	_rcu_read_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
