	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function disarm_cq
_disarm_cq:                             ## @disarm_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_mthca_is_memfree
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_MTHCA_EQ_DB_DISARM_CQ@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_MTHCA_EQ_DOORBELL@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	addq	8(%rbx), %r12
	movq	%rbx, %rdi
	callq	_MTHCA_GET_DOORBELL_LOCK
	movl	%r15d, %edi
	movl	%r14d, %esi
	movq	%r12, %rdx
	movl	%eax, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mthca_write64                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MTHCA_EQ_DB_DISARM_CQ,4,2      ## @MTHCA_EQ_DB_DISARM_CQ
	.comm	_MTHCA_EQ_DOORBELL,8,3          ## @MTHCA_EQ_DOORBELL
	.no_dead_strip	_disarm_cq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function disarm_cq
_disarm_cq:                             ; @disarm_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, x2
	mov	x21, x1
	mov	x20, x0
	bl	_mthca_is_memfree
	cbz	w0, LBB0_2
; %bb.1:
	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
LBB0_2:
Lloh0:
	adrp	x8, _MTHCA_EQ_DB_DISARM_CQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTHCA_EQ_DB_DISARM_CQ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w21, w8, w21
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _MTHCA_EQ_DOORBELL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MTHCA_EQ_DOORBELL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x22, x9, x8
	mov	x0, x20
	bl	_MTHCA_GET_DOORBELL_LOCK
	mov	x3, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	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
	b	_mthca_write64
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MTHCA_EQ_DB_DISARM_CQ,4,2      ; @MTHCA_EQ_DB_DISARM_CQ
	.comm	_MTHCA_EQ_DOORBELL,8,3          ; @MTHCA_EQ_DOORBELL
	.no_dead_strip	_disarm_cq
.subsections_via_symbols
