	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_cons_index
_update_cons_index:                     ## @update_cons_index
	.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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_mthca_is_memfree
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	4(%r15), %edi
	callq	_cpu_to_be32
	movq	8(%r15), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wmb                            ## TAILCALL
LBB0_2:
	movq	_MTHCA_TAVOR_CQ_DB_INC_CI@GOTPCREL(%rip), %rax
	movl	(%r15), %r15d
	orl	(%rax), %r15d
	decl	%r14d
	movq	_MTHCA_CQ_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_TAVOR_CQ_DB_INC_CI,4,2   ## @MTHCA_TAVOR_CQ_DB_INC_CI
	.comm	_MTHCA_CQ_DOORBELL,8,3          ## @MTHCA_CQ_DOORBELL
	.no_dead_strip	_update_cons_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_cons_index
_update_cons_index:                     ; @update_cons_index
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_mthca_is_memfree
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_cpu_to_be32
	ldr	x8, [x19, #8]
	str	w0, [x8]
	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	_wmb
LBB0_2:
Lloh0:
	adrp	x8, _MTHCA_TAVOR_CQ_DB_INC_CI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTHCA_TAVOR_CQ_DB_INC_CI@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w19, w9, w8
	sub	w21, w21, #1
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _MTHCA_CQ_DOORBELL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MTHCA_CQ_DOORBELL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x22, x9, x8
	mov	x0, x20
	bl	_MTHCA_GET_DOORBELL_LOCK
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	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_TAVOR_CQ_DB_INC_CI,4,2   ; @MTHCA_TAVOR_CQ_DB_INC_CI
	.comm	_MTHCA_CQ_DOORBELL,8,3          ; @MTHCA_CQ_DOORBELL
	.no_dead_strip	_update_cons_index
.subsections_via_symbols
