	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_poll_cq                  ## -- Begin function ipath_poll_cq
	.p2align	4, 0x90
_ipath_poll_cq:                         ## @ipath_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %ebx
	callq	_to_icq
	cmpq	$0, 24(%rax)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_9
LBB0_2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r14), %rdx
	movq	16(%r14), %rax
	movq	(%rax), %rcx
	cmpq	%rdx, %rcx
	cmovaeq	%rdx, %rcx
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.4:
	movl	%ebx, %r12d
	movq	8(%rax), %rsi
	xorl	%r8d, %r8d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, %rcx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rax), %rdi
	movl	(%rdi,%rcx,4), %edi
	movl	%edi, (%r15,%rbx,4)
	cmpq	%rdx, %rcx
	leaq	1(%rcx), %rcx
	cmovaeq	%r8, %rcx
	incq	%rbx
	cmpl	%ebx, %r12d
	jne	LBB0_5
	jmp	LBB0_8
LBB0_3:
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_7:
	movl	%ebx, %r12d
	movq	%rsi, %rcx
LBB0_8:
	movq	%rcx, (%rax)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_9:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_poll_cq                  ; -- Begin function ipath_poll_cq
	.p2align	2
_ipath_poll_cq:                         ; @ipath_poll_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	x20, x2
	mov	x21, x1
	bl	_to_icq
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_2:
	mov	x19, x0
	bl	_spin_lock_irqsave
	ldp	x10, x8, [x19, #8]
	ldr	x9, [x8]
	cmp	x9, x10
	csel	x9, x9, x10, lo
	cmp	w21, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x11, #0
	mov	w21, w21
	ldr	x12, [x8, #8]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x9, x12
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x13, [x8, #16]
	ldr	w13, [x13, x9, lsl #2]
	str	w13, [x20, x11, lsl #2]
	cmp	x9, x10
	csinc	x9, xzr, x9, hs
	add	x11, x11, #1
	cmp	w21, w11
	b.ne	LBB0_4
	b	LBB0_8
LBB0_6:
	mov	w21, #0
	b	LBB0_8
LBB0_7:
	mov	x21, x11
	mov	x9, x12
LBB0_8:
	str	x9, [x8]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_9:
	mov	x0, x21
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
