	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___ibv_get_cq_event             ## -- Begin function __ibv_get_cq_event
	.p2align	4, 0x90
___ibv_get_cq_event:                    ## @__ibv_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	(%rdi), %edi
	leaq	-32(%rbp), %rsi
	movl	$8, %edx
	callq	_read
	movl	$-1, %ebx
	cmpl	$8, %eax
	jne	LBB0_3
## %bb.1:
	movq	-32(%rbp), %rax
	movq	%rax, (%r15)
	movq	8(%rax), %rax
	movq	%rax, (%r14)
	movq	(%r15), %rdi
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	xorl	%ebx, %ebx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:
	callq	*%rcx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___ibv_get_cq_event             ; -- Begin function __ibv_get_cq_event
	.p2align	2
___ibv_get_cq_event:                    ; @__ibv_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
	mov	x20, x2
	mov	x19, x1
	ldr	w0, [x0]
	add	x1, sp, #8
	mov	w2, #8
	bl	_read
	cmp	w0, #8
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [sp, #8]
	str	x8, [x19]
	ldr	x8, [x8, #8]
	str	x8, [x20]
	ldr	x0, [x19]
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	blr	x8
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
