	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxio_create_cq                 ## -- Begin function cxio_create_cq
	.p2align	4, 0x90
_cxio_create_cq:                        ## @cxio_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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movb	(%rsi), %cl
	movl	$4, %ebx
	shlq	%cl, %rbx
	movl	16(%rdi), %edi
	callq	_cxio_hal_get_cqid
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	orl	$1, %ebx
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_kzalloc
	movl	%eax, 24(%r15)
	testl	%eax, %eax
	je	LBB0_1
LBB0_4:
	movq	8(%r14), %rdi
	leaq	8(%r15), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %esi
	callq	_dma_alloc_coherent
	movl	%eax, 28(%r15)
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	_mapping@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r15), %rdx
	movq	%r15, %rdi
	callq	_dma_unmap_addr_set
	movups	8(%r15), %xmm0
	movups	%xmm0, -48(%rbp)
	movb	(%r15), %cl
	movl	$1, %eax
	shlq	%cl, %rax
	movq	%rax, -72(%rbp)
	movabsq	$4295032831, %rax               ## imm = 0x10000FFFF
	movq	%rax, -64(%rbp)
	movq	(%r14), %rdi
	movq	(%rdi), %rax
	movq	_T3A@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	%edx, -56(%rbp)
	movq	_RDMA_CQ_SETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	callq	*8(%rdi)
	jmp	LBB0_7
LBB0_5:
	movl	24(%r15), %edi
	callq	_kfree
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_mapping,4,2                    ## @mapping
	.comm	_T3A,8,3                        ## @T3A
	.comm	_RDMA_CQ_SETUP,4,2              ## @RDMA_CQ_SETUP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function cxio_create_cq
lCPI0_0:
	.long	65535                           ; 0xffff
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_cxio_create_cq
	.p2align	2
_cxio_create_cq:                        ; @cxio_create_cq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x1]
	ldr	w0, [x0, #16]
	bl	_cxio_hal_get_cqid
	str	x0, [x20, #16]
	cbz	x0, LBB0_6
; %bb.1:
	mov	w8, #4
	lsl	x8, x8, x21
	orr	w21, w8, #0x1
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	cbz	w22, LBB0_3
; %bb.2:
	ldr	w1, [x23]
	mov	x0, x21
	bl	_kzalloc
	str	w0, [x20, #24]
	cbz	w0, LBB0_6
LBB0_3:
	ldr	x0, [x19, #8]
	add	x2, x20, #8
	ldr	w3, [x23]
	mov	x1, x21
	bl	_dma_alloc_coherent
	str	w0, [x20, #28]
	cbz	w0, LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _mapping@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mapping@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	x2, [x20, #8]
	mov	x0, x20
	bl	_dma_unmap_addr_set
	ldur	q0, [x20, #8]
	stur	q0, [sp, #32]
	ldr	x8, [x20]
	mov	w9, #1
	lsl	x8, x9, x8
	str	x8, [sp, #8]
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #16]
	ldr	x0, [x19]
	ldr	x8, [x0]
Lloh7:
	adrp	x9, _T3A@GOTPAGE
Lloh8:
	ldr	x9, [x9, _T3A@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	str	w8, [sp, #24]
	ldr	x8, [x0, #8]
Lloh10:
	adrp	x9, _RDMA_CQ_SETUP@GOTPAGE
Lloh11:
	ldr	x9, [x9, _RDMA_CQ_SETUP@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x9]
	add	x2, sp, #8
	blr	x8
	b	LBB0_7
LBB0_5:
	ldr	w0, [x20, #24]
	bl	_kfree
LBB0_6:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_mapping,4,2                    ; @mapping
	.comm	_T3A,8,3                        ; @T3A
	.comm	_RDMA_CQ_SETUP,4,2              ; @RDMA_CQ_SETUP
.subsections_via_symbols
