	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ehca_cq_assign_qp              ## -- Begin function ehca_cq_assign_qp
	.p2align	4, 0x90
_ehca_cq_assign_qp:                     ## @ehca_cq_assign_qp
	.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	%rsi, %r12
	movq	%rdi, %r15
	movl	(%rsi), %r14d
	movq	_QP_HASHTAB_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	decl	%ebx
	andl	%r14d, %ebx
	leaq	8(%rdi), %r13
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	addq	$4, %r12
	shlq	$2, %rbx
	addq	16(%r15), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_hlist_add_head
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movl	(%r15), %edx
	movl	4(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %ecx
	callq	_ehca_dbg
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QP_HASHTAB_LEN,4,2             ## @QP_HASHTAB_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cq_num=%x real_qp_num=%x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ehca_cq_assign_qp              ; -- Begin function ehca_cq_assign_qp
	.p2align	2
_ehca_cq_assign_qp:                     ; @ehca_cq_assign_qp
	.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	x19, x1
	mov	x20, x0
	ldr	w21, [x19], #4
Lloh0:
	adrp	x8, _QP_HASHTAB_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QP_HASHTAB_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w8, #1
	and	x23, x8, x21
	add	x22, x0, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #16]
	add	x1, x8, x23, lsl #2
	mov	x0, x19
	bl	_hlist_add_head
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldp	w2, w0, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x21
	bl	_ehca_dbg
	mov	w0, #0
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_QP_HASHTAB_LEN,4,2             ; @QP_HASHTAB_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cq_num=%x real_qp_num=%x"

.subsections_via_symbols
