	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ib_poll_cq                ## -- Begin function mlx4_ib_poll_cq
	.p2align	4, 0x90
_mlx4_ib_poll_cq:                       ## @mlx4_ib_poll_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movl	%esi, %r15d
	callq	_to_mcq
	movq	%rax, %r14
	movq	$0, -56(%rbp)
	movl	8(%rax), %edi
	callq	_to_mdev
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	_MLX4_DEVICE_STATE_INTERNAL_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.7:
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	callq	_mlx4_ib_poll_sw_comp
	jmp	LBB0_6
LBB0_1:
	movl	$0, -44(%rbp)
	testl	%r15d, %r15d
	jle	LBB0_5
## %bb.2:
	movl	$1, %ebx
	leaq	-56(%rbp), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_mlx4_ib_poll_one
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, -44(%rbp)
	addq	$4, %r13
	leal	1(%rbx), %eax
	cmpl	%r15d, %ebx
	movl	%eax, %ebx
	jl	LBB0_3
LBB0_5:
	movq	%r14, %rdi
	addq	$4, %rdi
	callq	_mlx4_cq_set_ci
LBB0_6:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	-44(%rbp), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_DEVICE_STATE_INTERNAL_ERROR,4,2 ## @MLX4_DEVICE_STATE_INTERNAL_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ib_poll_cq                ; -- Begin function mlx4_ib_poll_cq
	.p2align	2
_mlx4_ib_poll_cq:                       ; @mlx4_ib_poll_cq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	bl	_to_mcq
	mov	x19, x0
	str	xzr, [sp, #8]
	ldr	w0, [x0, #8]
	bl	_to_mdev
	mov	x22, x0
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _MLX4_DEVICE_STATE_INTERNAL_ERROR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX4_DEVICE_STATE_INTERNAL_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	add	x3, sp, #4
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_mlx4_ib_poll_sw_comp
	b	LBB0_7
LBB0_2:
	str	wzr, [sp, #4]
	cmp	w21, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w22, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x20
	bl	_mlx4_ib_poll_one
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w22, [sp, #4]
	add	x20, x20, #4
	add	w8, w22, #1
	cmp	w22, w21
	mov	x22, x8
	b.lt	LBB0_4
LBB0_6:
	add	x0, x19, #4
	bl	_mlx4_cq_set_ci
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldr	w0, [sp, #4]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_DEVICE_STATE_INTERNAL_ERROR,4,2 ; @MLX4_DEVICE_STATE_INTERNAL_ERROR
.subsections_via_symbols
