	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function reset_rx_pools
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_reset_rx_pools:                        ## @reset_rx_pools
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	movl	4(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, %r15d
	movq	16(%r14), %rax
	movl	(%rax), %edi
	callq	_be32_to_cpu
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movslq	%r15d, %rcx
	leaq	(%rbx,%rcx,4), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	44(%r15,%r13), %edi
	shll	$2, %edx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	leaq	(%r15,%r13), %rdi
	addq	$40, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r15,%r13)
	movl	$1, 16(%r15,%r13)
	incq	%r12
	cmpq	-72(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_11
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	8(%r14), %r15
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_netdev_dbg
	imulq	$56, %r12, %r13
	movl	(%r15,%r13), %r14d
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx,%r12,4), %edi
	callq	_be64_to_cpu
	leaq	(%r15,%r13), %rsi
	addq	$48, %rsi
	cmpl	%eax, %r14d
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_reset_long_term_buff
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r15,%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_free_long_term_buff
	movl	(%rbx,%r12,4), %edi
	callq	_be64_to_cpu
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	imull	4(%r15,%r13), %eax
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_alloc_long_term_buff
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r15,%r13), %edx
	testl	%edx, %edx
	jle	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r15,%r13), %rax
	addq	$4, %rax
	movq	8(%r15,%r13), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%esi, (%rcx,%rsi,4)
	incq	%rsi
	movslq	(%rax), %rdx
	cmpq	%rdx, %rsi
	jl	LBB0_9
	jmp	LBB0_10
LBB0_1:
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Re-setting rx_pool[%d]\n"

	.no_dead_strip	_reset_rx_pools
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reset_rx_pools
_reset_rx_pools:                        ; @reset_rx_pools
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x22, [x0, #16]
	ldr	w0, [x22, #4]
	bl	_be32_to_cpu
	mov	x21, x0
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_be32_to_cpu
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x20, #0
	add	x23, x22, w21, sxtw #2
	mov	w24, #56
	mov	w26, w0
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	madd	x22, x20, x24, x27
	ldr	w0, [x22, #44]
	lsl	w2, w9, #2
	mov	w1, #0
	bl	_memset
	add	x0, x22, #40
	mov	w1, #0
	bl	_atomic_set
	stp	xzr, xzr, [x22, #24]
	mov	w8, #1
	str	w8, [x22, #16]
	add	x20, x20, #1
	cmp	x20, x26
	b.eq	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x27, [x19, #8]
	ldr	w0, [x19]
	mov	x1, x21
	mov	x2, x20
	bl	_netdev_dbg
	madd	x28, x20, x24, x27
	mov	x22, x28
	ldr	w25, [x22], #48
	ldr	w0, [x23, x20, lsl #2]
	bl	_be64_to_cpu
	cmp	w25, w0
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_reset_long_term_buff
	cbz	w0, LBB0_6
	b	LBB0_10
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_free_long_term_buff
	ldr	w0, [x23, x20, lsl #2]
	bl	_be64_to_cpu
	str	w0, [x28]
	madd	x8, x20, x24, x27
	ldr	w8, [x8, #4]
	mul	w2, w8, w0
	mov	x0, x19
	mov	x1, x22
	bl	_alloc_long_term_buff
	cbnz	w0, LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	madd	x8, x20, x24, x27
	ldr	w9, [x8, #4]!
	cmp	w9, #1
	b.lt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x10, #0
	madd	x9, x20, x24, x27
	ldr	x11, [x9, #8]
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w10, [x11, x10, lsl #2]
	add	x10, x10, #1
	ldrsw	x9, [x8]
	cmp	x10, x9
	b.lt	LBB0_8
	b	LBB0_2
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Re-setting rx_pool[%d]\n"

	.no_dead_strip	_reset_rx_pools
.subsections_via_symbols
