	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_cq_event
_get_cq_event:                          ## @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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	_ctx@GOTPCREL(%rip), %rbx
	movl	8(%rbx), %edi
	leaq	-16(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	callq	_ibv_get_cq_event
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_6:
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_7
LBB0_2:
	movq	-16(%rbp), %rdx
	cmpq	(%rbx), %rdx
	je	LBB0_4
## %bb.3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_7:
	movl	$1, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	xorl	%ebx, %ebx
	movq	%rdx, %rdi
	xorl	%esi, %esi
	callq	_ibv_req_notify_cq
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ctx,16,3                       ## @ctx
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get cq_event\n"

L_.str.1:                               ## @.str.1
	.asciz	"CQ event for unknown CQ %p\n"

L_.str.2:                               ## @.str.2
	.asciz	"Couldn't request CQ notification\n"

	.no_dead_strip	_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 get_cq_event
_get_cq_event:                          ; @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
Lloh0:
	adrp	x19, _ctx@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ctx@GOTPAGEOFF]
	ldr	w0, [x19, #8]
	add	x1, sp, #24
	add	x2, sp, #16
	bl	_ibv_get_cq_event
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
	ldr	x0, [sp, #24]
	ldr	x8, [x19]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _stderr@GOTPAGE
Lloh8:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	x0, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	b	LBB0_6
LBB0_4:
	mov	w1, #0
	bl	_ibv_req_notify_cq
	cbz	x0, LBB0_7
; %bb.5:
Lloh12:
	adrp	x8, _stderr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	bl	_fprintf
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ctx,16,3                       ; @ctx
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get cq_event\n"

l_.str.1:                               ; @.str.1
	.asciz	"CQ event for unknown CQ %p\n"

l_.str.2:                               ; @.str.2
	.asciz	"Couldn't request CQ notification\n"

	.no_dead_strip	_get_cq_event
.subsections_via_symbols
