	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ena_com_admin_init_aenq
_ena_com_admin_init_aenq:               ## @ena_com_admin_init_aenq
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_ENA_ASYNC_QUEUE_DEPTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 8(%rbx)
	callq	_ADMIN_AENQ_SIZE
	movl	40(%rbx), %edi
	leaq	32(%rbx), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %esi
	callq	_dma_alloc_coherent
	movl	%eax, 36(%rbx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	8(%rbx), %eax
	movl	32(%rbx), %edi
	movl	%eax, 12(%rbx)
	movl	$1, 16(%rbx)
	callq	_ENA_DMA_ADDR_TO_UINT32_LOW
	movl	%eax, %r15d
	movl	32(%rbx), %edi
	callq	_ENA_DMA_ADDR_TO_UINT32_HIGH
	movl	%eax, %r12d
	movq	_ENA_REGS_AENQ_BASE_LO_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	%r15d, %edi
	callq	_writel
	movq	_ENA_REGS_AENQ_BASE_HI_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	%r12d, %edi
	callq	_writel
	movq	_ENA_REGS_AENQ_CAPS_AENQ_DEPTH_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	8(%rbx), %eax
	movq	_ENA_REGS_AENQ_CAPS_AENQ_ENTRY_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$4, %edi
	shlq	%cl, %rdi
	movq	_ENA_REGS_AENQ_CAPS_AENQ_ENTRY_SIZE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edi
	orl	%eax, %edi
	movq	_ENA_REGS_AENQ_CAPS_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_writel
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_5:
	movq	%r14, 24(%rbx)
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENA_ASYNC_QUEUE_DEPTH,4,2      ## @ENA_ASYNC_QUEUE_DEPTH
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"memory allocation failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENA_REGS_AENQ_BASE_LO_OFF,8,3  ## @ENA_REGS_AENQ_BASE_LO_OFF
	.comm	_ENA_REGS_AENQ_BASE_HI_OFF,8,3  ## @ENA_REGS_AENQ_BASE_HI_OFF
	.comm	_ENA_REGS_AENQ_CAPS_AENQ_DEPTH_MASK,4,2 ## @ENA_REGS_AENQ_CAPS_AENQ_DEPTH_MASK
	.comm	_ENA_REGS_AENQ_CAPS_AENQ_ENTRY_SIZE_SHIFT,4,2 ## @ENA_REGS_AENQ_CAPS_AENQ_ENTRY_SIZE_SHIFT
	.comm	_ENA_REGS_AENQ_CAPS_AENQ_ENTRY_SIZE_MASK,4,2 ## @ENA_REGS_AENQ_CAPS_AENQ_ENTRY_SIZE_MASK
	.comm	_ENA_REGS_AENQ_CAPS_OFF,8,3     ## @ENA_REGS_AENQ_CAPS_OFF
L_.str.1:                               ## @.str.1
	.asciz	"aenq handlers pointer is NULL\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ena_com_admin_init_aenq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ena_com_admin_init_aenq
_ena_com_admin_init_aenq:               ; @ena_com_admin_init_aenq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ENA_ASYNC_QUEUE_DEPTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENA_ASYNC_QUEUE_DEPTH@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	w0, [x20, #8]
	bl	_ADMIN_AENQ_SIZE
	mov	x1, x0
	ldr	w0, [x20, #40]
	add	x2, x20, #32
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	bl	_dma_alloc_coherent
	str	w0, [x20, #36]
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x20, #8]
	mov	w9, #1
	stp	w8, w9, [x20, #12]
	ldr	w0, [x20, #32]
	bl	_ENA_DMA_ADDR_TO_UINT32_LOW
	mov	x21, x0
	ldr	w0, [x20, #32]
	bl	_ENA_DMA_ADDR_TO_UINT32_HIGH
	mov	x22, x0
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _ENA_REGS_AENQ_BASE_LO_OFF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ENA_REGS_AENQ_BASE_LO_OFF@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writel
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _ENA_REGS_AENQ_BASE_HI_OFF@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ENA_REGS_AENQ_BASE_HI_OFF@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x22
	bl	_writel
Lloh12:
	adrp	x8, _ENA_REGS_AENQ_CAPS_AENQ_DEPTH_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENA_REGS_AENQ_CAPS_AENQ_DEPTH_MASK@GOTPAGEOFF]
	ldr	w9, [x20, #8]
Lloh14:
	ldr	w8, [x8]
	and	w8, w8, w9
Lloh15:
	adrp	x9, _ENA_REGS_AENQ_CAPS_AENQ_ENTRY_SIZE_SHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ENA_REGS_AENQ_CAPS_AENQ_ENTRY_SIZE_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	mov	w10, #4
	lsl	x9, x10, x9
Lloh18:
	adrp	x10, _ENA_REGS_AENQ_CAPS_AENQ_ENTRY_SIZE_MASK@GOTPAGE
Lloh19:
	ldr	x10, [x10, _ENA_REGS_AENQ_CAPS_AENQ_ENTRY_SIZE_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	and	w9, w10, w9
	orr	w0, w9, w8
	ldr	x8, [x20]
Lloh21:
	adrp	x9, _ENA_REGS_AENQ_CAPS_OFF@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ENA_REGS_AENQ_CAPS_OFF@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	cmp	x19, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.2:
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	str	x19, [x20, #24]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ENA_ASYNC_QUEUE_DEPTH,4,2      ; @ENA_ASYNC_QUEUE_DEPTH
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"memory allocation failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENA_REGS_AENQ_BASE_LO_OFF,8,3  ; @ENA_REGS_AENQ_BASE_LO_OFF
	.comm	_ENA_REGS_AENQ_BASE_HI_OFF,8,3  ; @ENA_REGS_AENQ_BASE_HI_OFF
	.comm	_ENA_REGS_AENQ_CAPS_AENQ_DEPTH_MASK,4,2 ; @ENA_REGS_AENQ_CAPS_AENQ_DEPTH_MASK
	.comm	_ENA_REGS_AENQ_CAPS_AENQ_ENTRY_SIZE_SHIFT,4,2 ; @ENA_REGS_AENQ_CAPS_AENQ_ENTRY_SIZE_SHIFT
	.comm	_ENA_REGS_AENQ_CAPS_AENQ_ENTRY_SIZE_MASK,4,2 ; @ENA_REGS_AENQ_CAPS_AENQ_ENTRY_SIZE_MASK
	.comm	_ENA_REGS_AENQ_CAPS_OFF,8,3     ; @ENA_REGS_AENQ_CAPS_OFF
l_.str.1:                               ; @.str.1
	.asciz	"aenq handlers pointer is NULL\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ena_com_admin_init_aenq
.subsections_via_symbols
