	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_create_cq
_rs_create_cq:                          ## @rs_create_cq
	.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	%rsi, %rbx
	movq	%rdi, %r15
	movl	32(%rsi), %edi
	callq	_ibv_create_comp_channel
	movq	%rax, (%rbx)
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movl	32(%rbx), %edi
	movq	8(%r15), %rsi
	addq	16(%r15), %rsi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	xorl	%r8d, %r8d
	callq	_ibv_create_cq
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%edx, (%r15)
	je	LBB0_4
## %bb.3:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fcntl
	movq	%rax, %rcx
	movq	8(%rbx), %rax
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:
	movq	%rax, %rdi
	callq	_ibv_destroy_cq
	movq	$0, 8(%rbx)
LBB0_6:
	movq	(%rbx), %rdi
	callq	_ibv_destroy_comp_channel
	movq	$0, (%rbx)
	jmp	LBB0_7
LBB0_4:
	xorl	%r14d, %r14d
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_ibv_req_notify_cq
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	%rax, 24(%rbx)
	movq	%rcx, 16(%rbx)
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.no_dead_strip	_rs_create_cq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_create_cq
_rs_create_cq:                          ; @rs_create_cq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #32]
	bl	_ibv_create_comp_channel
	str	x0, [x19]
	cbz	x0, LBB0_6
; %bb.1:
	mov	x3, x0
	ldr	w0, [x19, #32]
	ldp	x9, x8, [x20, #8]
	add	x1, x9, x8
	mov	x2, x19
	mov	w4, #0
	bl	_ibv_create_cq
	str	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	tst	w2, w8
	b.eq	LBB0_7
; %bb.3:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_fcntl
	mov	x8, x0
	ldr	x0, [x19, #8]
	cbz	x8, LBB0_7
; %bb.4:
	bl	_ibv_destroy_cq
	str	xzr, [x19, #8]
LBB0_5:
	ldr	x0, [x19]
	bl	_ibv_destroy_comp_channel
	str	xzr, [x19]
LBB0_6:
	mov	w0, #-1
	b	LBB0_8
LBB0_7:
	mov	w1, #0
	bl	_ibv_req_notify_cq
	mov	w0, #0
	ldp	x8, x9, [x19]
	stp	x9, x8, [x19, #16]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.no_dead_strip	_rs_create_cq
.subsections_via_symbols
