	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_create_cq               ## -- Begin function ocrdma_create_cq
	.p2align	4, 0x90
_ocrdma_create_cq:                      ## @ocrdma_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %r15
	movl	%esi, %r13d
	callq	_get_ocrdma_dev
	movq	%rax, %r14
	testq	%r12, %r12
	je	LBB0_4
## %bb.1:
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	movl	$8, %edx
	callq	_ib_copy_from_udata
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	$0, -48(%rbp)
LBB0_5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rbx
	leaq	44(%rax), %rdi
	callq	_spin_lock_init
	leaq	40(%rbx), %rdi
	callq	_spin_lock_init
	leaq	36(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	32(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r14, 24(%rbx)
	movq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_ocrdma_mbx_create_cq
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r13d, %edi
	jmp	LBB0_13
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_13:
	callq	_ERR_PTR
	movq	%rax, %rbx
LBB0_14:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_ocrdma_copy_cq_uresp
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	%eax, %r15d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ocrdma_mbx_destroy_cq
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r15d, %edi
	jmp	LBB0_13
LBB0_11:
	movq	_OCRDMA_CQE_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	$1, (%rbx)
	movq	(%r14), %rax
	movq	8(%rbx), %rcx
	movq	%rbx, (%rax,%rcx,8)
	addq	$16, %rbx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_OCRDMA_CQE_VALID,4,2           ## @OCRDMA_CQE_VALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_create_cq               ; -- Begin function ocrdma_create_cq
	.p2align	2
_ocrdma_create_cq:                      ; @ocrdma_create_cq
	.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	x21, x4
	mov	x20, x3
	mov	x23, x1
	bl	_get_ocrdma_dev
	mov	x19, x0
	cbz	x21, LBB0_3
; %bb.1:
	add	x0, sp, #8
	mov	x1, x21
	mov	w2, #8
	bl	_ib_copy_from_udata
	cbz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _EFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
	str	xzr, [sp, #8]
LBB0_4:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.5:
	mov	x22, x0
	add	x0, x0, #44
	bl	_spin_lock_init
	add	x0, x22, #40
	bl	_spin_lock_init
	add	x0, x22, #36
	bl	_INIT_LIST_HEAD
	add	x0, x22, #32
	bl	_INIT_LIST_HEAD
	str	x19, [x22, #24]
	ldr	x3, [sp, #8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_ocrdma_mbx_create_cq
	cbz	w0, LBB0_11
; %bb.6:
	mov	x23, x0
	mov	x0, x22
	bl	_kfree
	mov	x0, x23
	b	LBB0_9
LBB0_7:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	bl	_ERR_PTR
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
	cbz	x20, LBB0_14
; %bb.12:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_ocrdma_copy_cq_uresp
	cbz	w0, LBB0_14
; %bb.13:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x22
	bl	_ocrdma_mbx_destroy_cq
	mov	x0, x22
	bl	_kfree
	mov	x0, x20
	b	LBB0_9
LBB0_14:
Lloh7:
	adrp	x8, _OCRDMA_CQE_VALID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OCRDMA_CQE_VALID@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x22, #20]
	mov	w8, #1
	str	w8, [x22]
	ldr	x8, [x19]
	ldr	x9, [x22, #8]
	str	x22, [x8, x9, lsl #3]
	add	x0, x22, #16
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_OCRDMA_CQE_VALID,4,2           ; @OCRDMA_CQE_VALID
.subsections_via_symbols
