	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ds_get_cq_event
_ds_get_cq_event:                       ## @ds_get_cq_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	cmpq	$0, (%rdi)
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	leaq	-24(%rbp), %rsi
	movl	$1, %edx
	movl	$-1, %ecx
	callq	_epoll_wait
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:
	movq	-24(%rbp), %r14
	movq	8(%r14), %rax
	movl	4(%rax), %edi
	leaq	-40(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	callq	_ibv_get_cq_event
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_ibv_ack_cq_events
	movq	$0, (%r14)
	movq	$0, (%rbx)
	xorl	%eax, %eax
LBB0_4:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ds_get_cq_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ds_get_cq_event
_ds_get_cq_event:                       ; @ds_get_cq_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #8]
	add	x1, sp, #24
	mov	w2, #1
	mov	w3, #-1
	bl	_epoll_wait
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.2:
	ldr	x20, [sp, #24]
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #4]
	add	x1, sp, #16
	add	x2, sp, #8
	bl	_ibv_get_cq_event
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	mov	w1, #1
	bl	_ibv_ack_cq_events
	mov	w0, #0
	str	xzr, [x20]
	str	xzr, [x19]
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ds_get_cq_event
.subsections_via_symbols
