	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ena_com_init_io_sq
_ena_com_init_io_sq:                    ## @ena_com_init_io_sq
	.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
	subq	$24, %rsp
	.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, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	leaq	136(%rdx), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	16(%r14), %rax
	movq	%rax, 152(%rbx)
	movl	$4, (%rbx)
	movq	24(%rbx), %rax
	movq	_ENA_ADMIN_PLACEMENT_POLICY_HOST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	16(%rbx), %r13
	shlq	$2, %r13
	movl	8(%r14), %edi
	callq	_dev_to_node
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%r14), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	callq	_set_dev_node
	movl	8(%r14), %edi
	leaq	144(%rbx), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_dma_alloc_coherent
	movq	%rax, 136(%rbx)
	movl	8(%r14), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_set_dev_node
	cmpq	$0, 136(%rbx)
	jne	LBB0_5
## %bb.2:
	movl	8(%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_dma_alloc_coherent
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_3
LBB0_5:
	movq	24(%rbx), %rax
	movq	_ENA_ADMIN_PLACEMENT_POLICY_DEV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.6:
	movq	(%r14), %rax
	movq	%rax, 104(%rbx)
	movq	_ENA_COM_BOUNCE_BUFFER_CNTRL_CNT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	movq	%r12, 112(%rbx)
	movq	$0, 128(%rbx)
	imulq	%rax, %r12
	movl	8(%r14), %edi
	callq	_dev_to_node
	movl	%eax, %r15d
	movl	8(%r14), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	callq	_set_dev_node
	movl	8(%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r12, %rsi
	callq	_devm_kzalloc
	movq	%rax, 120(%rbx)
	movl	8(%r14), %edi
	movl	%r15d, %esi
	callq	_set_dev_node
	cmpq	$0, 120(%rbx)
	jne	LBB0_9
## %bb.7:
	movl	8(%r14), %edi
	movl	(%r13), %edx
	movq	%r12, %rsi
	callq	_devm_kzalloc
	movq	%rax, 120(%rbx)
	testq	%rax, %rax
	je	LBB0_8
LBB0_9:
	leaq	104(%rbx), %r15
	leaq	64(%rbx), %rdi
	movq	%r14, %rsi
	movl	$24, %edx
	callq	_memcpy
	movq	%r15, %rdi
	callq	_ena_com_get_next_bounce_buffer
	movq	%rax, 96(%rbx)
	movl	64(%rbx), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	80(%rbx), %eax
	movl	%eax, 88(%rbx)
	movq	72(%rbx), %rax
	testq	%rax, %rax
	jle	LBB0_11
## %bb.10:
	movq	%rax, 32(%rbx)
LBB0_11:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rbx)
	movl	$1, 40(%rbx)
	xorl	%eax, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	callq	_pr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ENA_COM_IO_QUEUE_DIRECTION_TX,8,3 ## @ENA_COM_IO_QUEUE_DIRECTION_TX
	.comm	_ENA_ADMIN_PLACEMENT_POLICY_HOST,8,3 ## @ENA_ADMIN_PLACEMENT_POLICY_HOST
	.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_ADMIN_PLACEMENT_POLICY_DEV,8,3 ## @ENA_ADMIN_PLACEMENT_POLICY_DEV
	.comm	_ENA_COM_BOUNCE_BUFFER_CNTRL_CNT,8,3 ## @ENA_COM_BOUNCE_BUFFER_CNTRL_CNT
L_.str.1:                               ## @.str.1
	.asciz	"bounce buffer memory allocation failed\n"

	.no_dead_strip	_ena_com_init_io_sq
.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_sq
_ena_com_init_io_sq:                    ; @ena_com_init_io_sq
	.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	x21, x1
	mov	x20, x0
	add	x22, x2, #136
	mov	x0, x22
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x8, [x20, #16]
	str	x8, [x19, #152]
	mov	w8, #4
	str	w8, [x19]
	ldr	x8, [x19, #24]
Lloh0:
	adrp	x9, _ENA_ADMIN_PLACEMENT_POLICY_HOST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ENA_ADMIN_PLACEMENT_POLICY_HOST@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	lsl	x23, x8, #2
	ldr	w0, [x20, #8]
	bl	_dev_to_node
	mov	x25, x0
	ldr	w0, [x20, #8]
	ldr	w1, [x21]
	bl	_set_dev_node
	ldr	w0, [x20, #8]
	add	x24, x19, #144
Lloh3:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x26]
	mov	x1, x23
	mov	x2, x24
	bl	_dma_alloc_coherent
	str	x0, [x19, #136]
	ldr	w0, [x20, #8]
	mov	x1, x25
	bl	_set_dev_node
	ldr	x8, [x19, #136]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x20, #8]
	ldr	w3, [x26]
	mov	x1, x23
	mov	x2, x24
	bl	_dma_alloc_coherent
	str	x0, [x22]
	cbz	x0, LBB0_10
LBB0_3:
	ldr	x8, [x19, #24]
Lloh5:
	adrp	x9, _ENA_ADMIN_PLACEMENT_POLICY_DEV@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ENA_ADMIN_PLACEMENT_POLICY_DEV@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
	ldr	x8, [x20]
	mov	x22, x19
	str	x8, [x22, #104]!
Lloh8:
	adrp	x9, _ENA_COM_BOUNCE_BUFFER_CNTRL_CNT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ENA_COM_BOUNCE_BUFFER_CNTRL_CNT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	str	x9, [x22, #8]
	str	xzr, [x22, #24]
	mul	x23, x9, x8
	ldr	w0, [x20, #8]
	bl	_dev_to_node
	mov	x24, x0
	ldr	w0, [x20, #8]
	ldr	w1, [x21]
	bl	_set_dev_node
	ldr	w0, [x20, #8]
Lloh11:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x1, x23
	bl	_devm_kzalloc
	str	x0, [x22, #16]
	ldr	w0, [x20, #8]
	mov	x1, x24
	bl	_set_dev_node
	ldr	x8, [x22, #16]
	cbnz	x8, LBB0_6
; %bb.5:
	ldr	w0, [x20, #8]
	ldr	w2, [x21]
	mov	x1, x23
	bl	_devm_kzalloc
	str	x0, [x19, #120]
	cbz	x0, LBB0_11
LBB0_6:
	add	x0, x19, #64
	mov	x1, x20
	mov	w2, #24
	bl	_memcpy
	mov	x0, x22
	bl	_ena_com_get_next_bounce_buffer
	str	x0, [x19, #96]
	ldr	w2, [x19, #64]
	mov	w1, #0
	bl	_memset
	ldr	w8, [x19, #80]
	str	w8, [x19, #88]
	ldr	x8, [x19, #72]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.7:
	str	x8, [x19, #32]
LBB0_8:
	mov	w0, #0
	stp	xzr, xzr, [x19, #48]
	mov	w8, #1
	str	w8, [x19, #40]
LBB0_9:
	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_10:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_12:
	bl	_pr_err
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENA_COM_IO_QUEUE_DIRECTION_TX,8,3 ; @ENA_COM_IO_QUEUE_DIRECTION_TX
	.comm	_ENA_ADMIN_PLACEMENT_POLICY_HOST,8,3 ; @ENA_ADMIN_PLACEMENT_POLICY_HOST
	.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_ADMIN_PLACEMENT_POLICY_DEV,8,3 ; @ENA_ADMIN_PLACEMENT_POLICY_DEV
	.comm	_ENA_COM_BOUNCE_BUFFER_CNTRL_CNT,8,3 ; @ENA_COM_BOUNCE_BUFFER_CNTRL_CNT
l_.str.1:                               ; @.str.1
	.asciz	"bounce buffer memory allocation failed\n"

	.no_dead_strip	_ena_com_init_io_sq
.subsections_via_symbols
