	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_next_poll
_mlx5_next_poll:                        ## @mlx5_next_poll
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	callq	_ibv_cq_ex_to_cq
	movl	%eax, %edi
	callq	_to_mcq
	movq	%rax, %rbx
	leaq	-40(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	movq	%rax, %rdi
	callq	_mlx5_get_next_cqe
	movq	_CQ_EMPTY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.1:
	movq	_POLLING_MODE_STALL_ADAPTIVE@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	_MLX5_CQ_FLAGS_EMPTY_DURING_POLL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_3:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_4:
	movq	-40(%rbp), %rsi
	movq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	callq	_mlx5_parse_lazy_cqe
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CQ_EMPTY,4,2                   ## @CQ_EMPTY
	.comm	_POLLING_MODE_STALL_ADAPTIVE,4,2 ## @POLLING_MODE_STALL_ADAPTIVE
	.comm	_MLX5_CQ_FLAGS_EMPTY_DURING_POLL,4,2 ## @MLX5_CQ_FLAGS_EMPTY_DURING_POLL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_mlx5_next_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_next_poll
_mlx5_next_poll:                        ; @mlx5_next_poll
	.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	x19, x2
	mov	x21, x1
	bl	_ibv_cq_ex_to_cq
	bl	_to_mcq
	mov	x20, x0
	add	x1, sp, #8
	mov	x2, sp
	bl	_mlx5_get_next_cqe
Lloh0:
	adrp	x8, _CQ_EMPTY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CQ_EMPTY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _POLLING_MODE_STALL_ADAPTIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _POLLING_MODE_STALL_ADAPTIVE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _MLX5_CQ_FLAGS_EMPTY_DURING_POLL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX5_CQ_FLAGS_EMPTY_DURING_POLL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_3:
Lloh9:
	adrp	x8, _ENOENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
	ldp	x2, x1, [sp]
	mov	x0, x20
	mov	x3, x19
	bl	_mlx5_parse_lazy_cqe
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CQ_EMPTY,4,2                   ; @CQ_EMPTY
	.comm	_POLLING_MODE_STALL_ADAPTIVE,4,2 ; @POLLING_MODE_STALL_ADAPTIVE
	.comm	_MLX5_CQ_FLAGS_EMPTY_DURING_POLL,4,2 ; @MLX5_CQ_FLAGS_EMPTY_DURING_POLL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_mlx5_next_poll
.subsections_via_symbols
