	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cq_thread
_cq_thread:                             ## @cq_thread
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_DEBUG_LOG
	leaq	-48(%rbp), %r14
	leaq	-56(%rbp), %r15
	movq	_stderr@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_pthread_testcancel
	movl	8(%rbx), %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_ibv_get_cq_event
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	xorl	%edi, %edi
	callq	_pthread_exit
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi
	cmpq	(%rbx), %rdi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
	xorl	%edi, %edi
	callq	_pthread_exit
	movq	(%rbx), %rdi
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%esi, %esi
	callq	_ibv_req_notify_cq
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_fprintf
	xorl	%edi, %edi
	callq	_pthread_exit
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_rping_cq_event_handler
	movl	%eax, %r13d
	movq	(%rbx), %rdi
	movl	$1, %esi
	callq	_ibv_ack_cq_events
	testl	%r13d, %r13d
	je	LBB0_1
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edi, %edi
	callq	_pthread_exit
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cq_thread started.\n"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Failed to get cq event!\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unknown CQ!\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to set notify!\n"

	.no_dead_strip	_cq_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cq_thread
_cq_thread:                             ; @cq_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DEBUG_LOG
Lloh2:
	adrp	x24, _stderr@GOTPAGE
Lloh3:
	ldr	x24, [x24, _stderr@GOTPAGEOFF]
Lloh4:
	adrp	x20, l_.str.3@PAGE
Lloh5:
	add	x20, x20, l_.str.3@PAGEOFF
Lloh6:
	adrp	x21, l_.str.2@PAGE
Lloh7:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh8:
	adrp	x22, l_.str.1@PAGE
Lloh9:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_pthread_testcancel
	ldr	w0, [x19, #8]
	add	x1, sp, #8
	mov	x2, sp
	bl	_ibv_get_cq_event
	cbz	w0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x24]
	mov	x1, x22
	bl	_fprintf
	mov	x0, #0
	bl	_pthread_exit
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [sp, #8]
	ldr	x8, [x19]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	bl	_fprintf
	mov	x0, #0
	bl	_pthread_exit
	ldr	x0, [x19]
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w1, #0
	bl	_ibv_req_notify_cq
	cbz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x24]
	mov	x1, x20
	bl	_fprintf
	mov	x0, #0
	bl	_pthread_exit
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_rping_cq_event_handler
	mov	x23, x0
	ldr	x0, [x19]
	mov	w1, #1
	bl	_ibv_ack_cq_events
	cbz	w23, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, #0
	bl	_pthread_exit
	b	LBB0_1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cq_thread started.\n"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Failed to get cq event!\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unknown CQ!\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to set notify!\n"

	.no_dead_strip	_cq_thread
.subsections_via_symbols
