	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ena_setup_rx_resources
_ena_setup_rx_resources:                ## @ena_setup_rx_resources
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	16(%rdi), %r12
	movq	%rsi, %rdi
	callq	_ENA_IO_IRQ_IDX
	imulq	$56, %r15, %r13
	cmpq	$0, 48(%r12,%r13)
	je	LBB0_2
## %bb.1:
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_err
	movq	_EEXIST@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_2:
	leaq	(%r12,%r13), %rcx
	addq	$48, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	(%r12,%r13), %ecx
	leal	4(,%rcx,4), %ebx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r14,%rax,4), %edi
	callq	_cpu_to_node
	movl	%eax, %r15d
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_vzalloc_node
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movl	%ebx, %edi
	movq	%rcx, %rbx
	callq	_vzalloc
	movq	%rbx, %rcx
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_4
LBB0_6:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%r13), %r14
	movl	(%r14), %ebx
	shll	$2, %ebx
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_vzalloc_node
	movq	%rax, 8(%r12,%r13)
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	leaq	(%r12,%r13), %r15
	addq	$8, %r15
	movl	%ebx, %edi
	callq	_vzalloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_8
LBB0_9:
	cmpl	$0, (%r14)
	jle	LBB0_12
## %bb.10:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, (%rax,%rcx,4)
	incq	%rcx
	movslq	(%r14), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_11
LBB0_12:
	leaq	(%r12,%r13), %rdi
	addq	$40, %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r12,%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 16(%r12,%r13)
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	callq	_vfree
	movq	$0, (%rbx)
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_ifup,4,2                       ## @ifup
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx_buffer_info is not NULL"

	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_ena_setup_rx_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ena_setup_rx_resources
_ena_setup_rx_resources:                ; @ena_setup_rx_resources
	.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	x20, x1
	mov	x21, x0
	ldp	x23, x24, [x0, #8]
	mov	x0, x1
	bl	_ENA_IO_IRQ_IDX
	mov	w8, #56
	madd	x26, x20, x8, x24
	ldr	x8, [x26, #48]!
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ifup@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x21]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	bl	_netif_err
Lloh5:
	adrp	x8, _EEXIST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_3:
	mov	x19, x0
	mov	w8, #56
	madd	x25, x20, x8, x24
	ldr	w8, [x25]
	lsl	w8, w8, #2
	add	w22, w8, #4
	ldr	w0, [x23, x0, lsl #2]
	bl	_cpu_to_node
	mov	x21, x0
	mov	x0, x22
	mov	x1, x21
	bl	_vzalloc_node
	str	x0, [x26]
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_vzalloc
	str	x0, [x26]
	cbz	x0, LBB0_13
LBB0_5:
	ldr	w8, [x25]
	lsl	w22, w8, #2
	mov	x0, x22
	mov	x1, x21
	bl	_vzalloc_node
	mov	w8, #56
	madd	x21, x20, x8, x24
	str	x0, [x21, #8]!
	cbnz	x0, LBB0_7
; %bb.6:
	mov	x0, x22
	bl	_vzalloc
	str	x0, [x21]
	cbz	x0, LBB0_12
LBB0_7:
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x8, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	str	w8, [x0, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x9, [x25]
	cmp	x8, x9
	b.lt	LBB0_9
LBB0_10:
	mov	w8, #56
	madd	x20, x20, x8, x24
	add	x0, x20, #40
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w0, #0
	stp	xzr, xzr, [x20, #24]
	ldr	w8, [x23, x19, lsl #2]
	str	w8, [x20, #16]
LBB0_11:
	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_12:
	ldr	x0, [x26]
	bl	_vfree
	str	xzr, [x26]
LBB0_13:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ifup,4,2                       ; @ifup
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx_buffer_info is not NULL"

	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ena_setup_rx_resources
.subsections_via_symbols
