	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_get_cq_event
_rs_get_cq_event:                       ## @rs_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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%r14d, %r14d
	cmpq	$0, 32(%rdi)
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	40(%rdi), %rax
	movl	4(%rax), %edi
	leaq	-32(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	callq	_ibv_get_cq_event
	testl	%eax, %eax
	je	LBB0_2
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_EAGAIN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_8
## %bb.6:
	movq	_EINTR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_8
## %bb.7:
	movq	_rs_error@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rbx)
LBB0_8:
	movl	%eax, %r14d
	jmp	LBB0_9
LBB0_2:
	movq	(%rbx), %rsi
	movq	16(%rbx), %rax
	incq	%rsi
	movq	%rsi, (%rbx)
	addq	8(%rbx), %rax
	cmpq	%rax, %rsi
	jl	LBB0_4
## %bb.3:
	movq	40(%rbx), %rax
	movl	(%rax), %edi
	callq	_ibv_ack_cq_events
	movq	$0, (%rbx)
LBB0_4:
	movq	$0, 32(%rbx)
LBB0_9:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_rs_error,4,2                   ## @rs_error
	.no_dead_strip	_rs_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 rs_get_cq_event
_rs_get_cq_event:                       ; @rs_get_cq_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #40]
	ldr	w0, [x8, #4]
	add	x1, sp, #8
	mov	x2, sp
	bl	_ibv_get_cq_event
	cbz	w0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _EINTR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _EINTR@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_8
; %bb.3:
Lloh9:
	adrp	x8, _rs_error@GOTPAGE
Lloh10:
	ldr	x8, [x8, _rs_error@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	b	LBB0_8
LBB0_4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	ldp	x8, x9, [x19]
	add	x1, x8, #1
	str	x1, [x19]
	ldr	x8, [x19, #16]
	add	x8, x8, x9
	cmp	x1, x8
	b.lt	LBB0_7
; %bb.6:
	ldr	x8, [x19, #40]
	ldr	w0, [x8]
	bl	_ibv_ack_cq_events
	str	xzr, [x19]
LBB0_7:
	mov	w0, #0
	str	xzr, [x19, #32]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_rs_error,4,2                   ; @rs_error
	.no_dead_strip	_rs_get_cq_event
.subsections_via_symbols
