	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _mlx4_start_poll
__mlx4_start_poll:                      ## @_mlx4_start_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	callq	_ibv_cq_ex_to_cq
	movl	%eax, %edi
	callq	_to_mcq
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_2:
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_pthread_spin_lock
LBB0_4:
	movq	$0, 8(%r15)
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	callq	_mlx4_get_next_cqe
	movq	_CQ_EMPTY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.5:
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_pthread_spin_unlock
LBB0_7:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_8:
	movq	-32(%rbp), %rsi
	movq	%r15, %rdi
	callq	_mlx4_parse_lazy_cqe
	movl	%eax, %ebx
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.9:
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	_pthread_spin_unlock
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CQ_EMPTY,4,2                   ## @CQ_EMPTY
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	__mlx4_start_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _mlx4_start_poll
__mlx4_start_poll:                      ; @_mlx4_start_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
	ldr	w0, [x21]
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	b	LBB0_11
LBB0_2:
	cbz	w19, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_pthread_spin_lock
LBB0_4:
	str	xzr, [x20, #8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_mlx4_get_next_cqe
Lloh3:
	adrp	x8, _CQ_EMPTY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CQ_EMPTY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.5:
	cbz	w19, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_pthread_spin_unlock
LBB0_7:
Lloh6:
	adrp	x8, _ENOENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	b	LBB0_11
LBB0_8:
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_mlx4_parse_lazy_cqe
	mov	x21, x0
	cbz	w19, LBB0_11
; %bb.9:
	cbz	w21, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_pthread_spin_unlock
LBB0_11:
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CQ_EMPTY,4,2                   ; @CQ_EMPTY
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	__mlx4_start_poll
.subsections_via_symbols
