	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ena_com_init_io_cq
_ena_com_init_io_cq:                    ## @ena_com_init_io_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	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	40(%rdx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	$4, (%rbx)
	movq	16(%rbx), %r13
	shlq	$2, %r13
	movl	(%r12), %edi
	callq	_dev_to_node
	movl	%eax, %r15d
	movl	(%r12), %edi
	movl	(%r14), %esi
	callq	_set_dev_node
	movl	(%r12), %edi
	leaq	48(%rbx), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_dma_alloc_coherent
	movq	%rax, 40(%rbx)
	movl	(%r12), %edi
	movl	%r15d, %esi
	callq	_set_dev_node
	cmpq	$0, 40(%rbx)
	jne	LBB0_3
## %bb.1:
	movl	(%r12), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_dma_alloc_coherent
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movl	$1, 24(%rbx)
	movq	$0, 32(%rbx)
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_ENA_COM_IO_QUEUE_DIRECTION_TX,8,3 ## @ENA_COM_IO_QUEUE_DIRECTION_TX
	.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
	.no_dead_strip	_ena_com_init_io_cq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ena_com_init_io_cq
_ena_com_init_io_cq:                    ; @ena_com_init_io_cq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x23, x1
	mov	x21, x0
	add	x20, x2, #40
	mov	x0, x20
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	w8, #4
	str	w8, [x19]
	ldr	x8, [x19, #16]
	lsl	x22, x8, #2
	ldr	w0, [x21]
	bl	_dev_to_node
	mov	x24, x0
	ldr	w0, [x21]
	ldr	w1, [x23]
	bl	_set_dev_node
	ldr	w0, [x21]
	add	x23, x19, #48
Lloh0:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x25]
	mov	x1, x22
	mov	x2, x23
	bl	_dma_alloc_coherent
	str	x0, [x19, #40]
	ldr	w0, [x21]
	mov	x1, x24
	bl	_set_dev_node
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x21]
	ldr	w3, [x25]
	mov	x1, x22
	mov	x2, x23
	bl	_dma_alloc_coherent
	str	x0, [x20]
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19, #24]
	str	xzr, [x19, #32]
LBB0_3:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ENA_COM_IO_QUEUE_DIRECTION_TX,8,3 ; @ENA_COM_IO_QUEUE_DIRECTION_TX
	.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
	.no_dead_strip	_ena_com_init_io_cq
.subsections_via_symbols
