	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ib_arm_cq                 ## -- Begin function mlx4_ib_arm_cq
	.p2align	4, 0x90
_mlx4_ib_arm_cq:                        ## @mlx4_ib_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_to_mcq
	movq	_IB_CQ_SOLICITED_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	movq	%rax, %r14
	movq	_IB_CQ_SOLICITED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_1
## %bb.2:
	movq	_MLX4_CQ_DB_REQ_NOT_SOL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_MLX4_CQ_DB_REQ_NOT@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r12d
	movl	(%r15), %edi
	callq	_to_mdev
	movl	4(%rax), %ebx
	movl	(%r15), %edi
	callq	_to_mdev
	movq	%rax, %rdi
	callq	_MLX4_GET_DOORBELL_LOCK
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_mlx4_cq_arm
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	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	_MLX4_CQ_DB_REQ_NOT_SOL,4,2     ## @MLX4_CQ_DB_REQ_NOT_SOL
	.comm	_MLX4_CQ_DB_REQ_NOT,4,2         ## @MLX4_CQ_DB_REQ_NOT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ib_arm_cq                 ; -- Begin function mlx4_ib_arm_cq
	.p2align	2
_mlx4_ib_arm_cq:                        ; @mlx4_ib_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, x1
	mov	x20, x0
	bl	_to_mcq
	mov	x21, 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, w19
Lloh3:
	adrp	x9, _IB_CQ_SOLICITED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_CQ_SOLICITED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _MLX4_CQ_DB_REQ_NOT_SOL@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MLX4_CQ_DB_REQ_NOT_SOL@GOTPAGEOFF]
Lloh8:
	adrp	x11, _MLX4_CQ_DB_REQ_NOT@GOTPAGE
Lloh9:
	ldr	x11, [x11, _MLX4_CQ_DB_REQ_NOT@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x10, x11, eq
	ldr	w19, [x8]
	ldr	w0, [x20]
	bl	_to_mdev
	ldr	w22, [x0, #4]
	ldr	w0, [x20]
	bl	_to_mdev
	bl	_MLX4_GET_DOORBELL_LOCK
	mov	x3, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_mlx4_cq_arm
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.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	_MLX4_CQ_DB_REQ_NOT_SOL,4,2     ; @MLX4_CQ_DB_REQ_NOT_SOL
	.comm	_MLX4_CQ_DB_REQ_NOT,4,2         ; @MLX4_CQ_DB_REQ_NOT
.subsections_via_symbols
