	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_tavor_arm_cq             ## -- Begin function mthca_tavor_arm_cq
	.p2align	4, 0x90
_mthca_tavor_arm_cq:                    ## @mthca_tavor_arm_cq
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_IB_CQ_SOLICITED_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movq	%rdi, %r15
	movq	_IB_CQ_SOLICITED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_1
## %bb.2:
	movq	_MTHCA_TAVOR_CQ_DB_REQ_NOT_SOL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_MTHCA_TAVOR_CQ_DB_REQ_NOT@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_to_mcq
	orl	(%rax), %r14d
	movl	(%r15), %edi
	callq	_to_mdev
	movq	_MTHCA_CQ_DOORBELL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	addq	8(%rax), %rbx
	movl	(%r15), %edi
	callq	_to_mdev
	movq	%rax, %rdi
	callq	_MTHCA_GET_DOORBELL_LOCK
	movl	%r14d, %edi
	movl	$-1, %esi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_mthca_write64
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_CQ_SOLICITED_MASK,4,2       ## @IB_CQ_SOLICITED_MASK
	.comm	_IB_CQ_SOLICITED,4,2            ## @IB_CQ_SOLICITED
	.comm	_MTHCA_TAVOR_CQ_DB_REQ_NOT_SOL,4,2 ## @MTHCA_TAVOR_CQ_DB_REQ_NOT_SOL
	.comm	_MTHCA_TAVOR_CQ_DB_REQ_NOT,4,2  ## @MTHCA_TAVOR_CQ_DB_REQ_NOT
	.comm	_MTHCA_CQ_DOORBELL,8,3          ## @MTHCA_CQ_DOORBELL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_tavor_arm_cq             ; -- Begin function mthca_tavor_arm_cq
	.p2align	2
_mthca_tavor_arm_cq:                    ; @mthca_tavor_arm_cq
	.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, x0
Lloh0:
	adrp	x8, _IB_CQ_SOLICITED_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_CQ_SOLICITED_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w1
Lloh3:
	adrp	x9, _IB_CQ_SOLICITED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_CQ_SOLICITED@GOTPAGEOFF]
Lloh5:
	adrp	x10, _MTHCA_TAVOR_CQ_DB_REQ_NOT_SOL@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MTHCA_TAVOR_CQ_DB_REQ_NOT_SOL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x11, _MTHCA_TAVOR_CQ_DB_REQ_NOT@GOTPAGE
Lloh9:
	ldr	x11, [x11, _MTHCA_TAVOR_CQ_DB_REQ_NOT@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x10, x11, eq
	ldr	w20, [x8]
	bl	_to_mcq
	ldr	w8, [x0]
	orr	w20, w8, w20
	ldr	w0, [x19]
	bl	_to_mdev
	ldr	x8, [x0, #8]
Lloh10:
	adrp	x9, _MTHCA_CQ_DOORBELL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MTHCA_CQ_DOORBELL@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x21, x9, x8
	ldr	w0, [x19]
	bl	_to_mdev
	bl	_MTHCA_GET_DOORBELL_LOCK
	mov	x3, x0
	mov	x0, x20
	mov	w1, #-1
	mov	x2, x21
	bl	_mthca_write64
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_CQ_SOLICITED_MASK,4,2       ; @IB_CQ_SOLICITED_MASK
	.comm	_IB_CQ_SOLICITED,4,2            ; @IB_CQ_SOLICITED
	.comm	_MTHCA_TAVOR_CQ_DB_REQ_NOT_SOL,4,2 ; @MTHCA_TAVOR_CQ_DB_REQ_NOT_SOL
	.comm	_MTHCA_TAVOR_CQ_DB_REQ_NOT,4,2  ; @MTHCA_TAVOR_CQ_DB_REQ_NOT
	.comm	_MTHCA_CQ_DOORBELL,8,3          ; @MTHCA_CQ_DOORBELL
.subsections_via_symbols
