	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efa_com_create_cq              ## -- Begin function efa_com_create_cq
	.p2align	4, 0x90
_efa_com_create_cq:                     ## @efa_com_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
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	-68(%rbp), %rdx
	movq	$0, -68(%rbp)
	leaq	4(%rdi), %r12
	movq	_EFA_ADMIN_CREATE_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	(%rsi), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movq	_EFA_ADMIN_CREATE_CQ_CMD_CQ_ENTRY_SIZE_WORDS_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	movl	%ecx, -72(%rbp)
	movl	4(%rsi), %eax
	movl	%eax, -52(%rbp)
	movl	16(%rsi), %eax
	movl	%eax, -56(%rbp)
	movl	12(%rsi), %eax
	movl	%eax, -60(%rbp)
	movl	8(%rsi), %edi
	leaq	-64(%rbp), %rsi
	callq	_efa_com_set_dma_addr
	leaq	-72(%rbp), %rsi
	leaq	-40(%rbp), %rcx
	movq	%r12, %rdi
	movl	$28, %edx
	movl	$4, %r8d
	callq	_efa_com_cmd_exec
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_ibdev_err_ratelimited
	jmp	LBB0_3
LBB0_2:
	movl	-40(%rbp), %eax
	movl	%eax, 4(%r14)
	movl	4(%rbx), %eax
	movl	%eax, (%r14)
LBB0_3:
	movl	%r12d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFA_ADMIN_CREATE_CQ,4,2        ## @EFA_ADMIN_CREATE_CQ
	.comm	_EFA_ADMIN_CREATE_CQ_CMD_CQ_ENTRY_SIZE_WORDS_MASK,4,2 ## @EFA_ADMIN_CREATE_CQ_CMD_CQ_ENTRY_SIZE_WORDS_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create cq[%d]\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efa_com_create_cq              ; -- Begin function efa_com_create_cq
	.p2align	2
_efa_com_create_cq:                     ; @efa_com_create_cq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x8, sp, #8
	orr	x2, x8, #0x4
	stur	xzr, [sp, #12]
	ldp	w9, w10, [x1]
	add	w11, w9, #3
	cmp	w9, #0
	csel	w9, w11, w9, lt
Lloh0:
	adrp	x11, _EFA_ADMIN_CREATE_CQ_CMD_CQ_ENTRY_SIZE_WORDS_MASK@GOTPAGE
Lloh1:
	ldr	x11, [x11, _EFA_ADMIN_CREATE_CQ_CMD_CQ_ENTRY_SIZE_WORDS_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	and	w9, w11, w9, asr #2
	add	x22, x0, #4
	str	w9, [sp, #8]
Lloh3:
	adrp	x9, _EFA_ADMIN_CREATE_CQ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EFA_ADMIN_CREATE_CQ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w10, w9, [sp, #28]
	ldur	d0, [x1, #12]
	stur	d0, [sp, #20]
	ldr	w0, [x1, #8]
	add	x1, x8, #8
	bl	_efa_com_set_dma_addr
	add	x1, sp, #8
	add	x3, sp, #40
	mov	x0, x22
	mov	w2, #28
	mov	w4, #4
	bl	_efa_com_cmd_exec
	mov	x22, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x21]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_ibdev_err_ratelimited
	b	LBB0_3
LBB0_2:
	ldr	w8, [sp, #40]
	str	w8, [x19, #4]
	ldr	w8, [x20, #4]
	str	w8, [x19]
LBB0_3:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EFA_ADMIN_CREATE_CQ,4,2        ; @EFA_ADMIN_CREATE_CQ
	.comm	_EFA_ADMIN_CREATE_CQ_CMD_CQ_ENTRY_SIZE_WORDS_MASK,4,2 ; @EFA_ADMIN_CREATE_CQ_CMD_CQ_ENTRY_SIZE_WORDS_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create cq[%d]\n"

.subsections_via_symbols
