	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ena_com_indirect_table_allocate
_ena_com_indirect_table_allocate:       ## @ena_com_indirect_table_allocate
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	_ENA_ADMIN_RSS_REDIRECTION_TABLE_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rsi
	xorl	%ecx, %ecx
	callq	_ena_com_get_feature
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	movl	-40(%rbp), %edi
	movl	-36(%rbp), %eax
	cmpl	%r14d, %edi
	jg	LBB0_3
## %bb.2:
	cmpl	%r14d, %eax
	jl	LBB0_3
## %bb.4:
	movl	$4, %r15d
	movl	%r14d, %ecx
	shlq	%cl, %r15
	movl	(%r12), %edi
	leaq	24(%r12), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	%r15, %rsi
	callq	_dma_alloc_coherent
	movq	%rax, 16(%r12)
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movl	(%r12), %edi
	movl	(%rbx), %edx
	movq	%r15, %rsi
	callq	_devm_kzalloc
	movl	%eax, 28(%r12)
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	(%r12), %edi
	movq	16(%r12), %rdx
	movl	24(%r12), %ecx
	movq	%r15, %rsi
	callq	_dma_free_coherent
	movq	$0, 16(%r12)
LBB0_8:
	movl	$0, 8(%r12)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movl	$1, %esi
	movl	%r14d, %ecx
	shll	%cl, %esi
	movl	$1, %edx
	movl	%edi, %ecx
	shll	%cl, %edx
	movl	$1, %ebx
	movl	%eax, %ecx
	shll	%cl, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %ecx
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%r14d, 8(%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ENA_ADMIN_RSS_REDIRECTION_TABLE_CONFIG,4,2 ## @ENA_ADMIN_RSS_REDIRECTION_TABLE_CONFIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"indirect table size doesn't fit. requested size: %d while min is:%d and max %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_ena_com_indirect_table_allocate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ena_com_indirect_table_allocate
_ena_com_indirect_table_allocate:       ; @ena_com_indirect_table_allocate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ENA_ADMIN_RSS_REDIRECTION_TABLE_CONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENA_ADMIN_RSS_REDIRECTION_TABLE_CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	w3, #0
	bl	_ena_com_get_feature
	mov	x21, x0
	bl	_unlikely
	cbnz	x0, LBB0_8
; %bb.1:
	ldp	w8, w9, [sp, #8]
	cmp	w8, w20
	ccmp	w9, w20, #8, le
	b.ge	LBB0_3
; %bb.2:
	mov	w10, #1
	lsl	w1, w10, w20
	lsl	w2, w10, w8
	lsl	w3, w10, w9
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
	mov	w8, #4
	lsl	x21, x8, x20
	ldr	w0, [x19]
	add	x2, x19, #24
Lloh7:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x1, x21
	bl	_dma_alloc_coherent
	str	x0, [x19, #16]
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_6
; %bb.4:
	ldr	w0, [x19]
	ldr	w2, [x22]
	mov	x1, x21
	bl	_devm_kzalloc
	str	w0, [x19, #28]
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.5:
	ldr	w0, [x19]
	ldr	x2, [x19, #16]
	ldr	w3, [x19, #24]
	mov	x1, x21
	bl	_dma_free_coherent
	str	xzr, [x19, #16]
LBB0_6:
	str	wzr, [x19, #8]
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	mov	w21, #0
	str	w20, [x19, #8]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENA_ADMIN_RSS_REDIRECTION_TABLE_CONFIG,4,2 ; @ENA_ADMIN_RSS_REDIRECTION_TABLE_CONFIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"indirect table size doesn't fit. requested size: %d while min is:%d and max %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ena_com_indirect_table_allocate
.subsections_via_symbols
