	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netsec_uninit_pkt_dring
_netsec_uninit_pkt_dring:               ## @netsec_uninit_pkt_dring
	.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, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rcx
	movslq	%esi, %rax
	leaq	(%rax,%rax,4), %rax
	cmpq	$0, 16(%rcx,%rax,8)
	je	LBB0_19
## %bb.1:
	movq	24(%rcx,%rax,8), %r15
	testq	%r15, %r15
	je	LBB0_19
## %bb.2:
	movl	%esi, %ebx
	leaq	(%rcx,%rax,8), %r14
	addq	$24, %r14
	movq	_DESC_NUM@GOTPCREL(%rip), %rsi
	cmpq	$0, (%rsi)
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.10:
	leaq	(%rcx,%rax,8), %rax
	addq	$32, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %r13d
	movl	$12, %r12d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%r12), %edi
	testl	%edi, %edi
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_NETSEC_RING_RX@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	callq	_virt_to_page
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_page_pool_put_page
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_NETSEC_RING_TX@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	movl	-8(%r15,%r12), %edx
	movl	-4(%r15,%r12), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_single
	movl	-12(%r15,%r12), %edi
	callq	_dev_kfree_skb
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_DESC_NUM@GOTPCREL(%rip), %rsi
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	(%rsi), %rdx
	cmpq	%rdx, %r13
	jae	LBB0_4
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r14), %r15
	incq	%r13
	addq	$16, %r12
	jmp	LBB0_11
LBB0_3:
	xorl	%edx, %edx
LBB0_4:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	leaq	(%r12,%r13,8), %r15
	addq	$16, %r15
	movq	_NETSEC_RING_RX@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_8
## %bb.5:
	leaq	(%r12,%r13,8), %rdi
	addq	$36, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_xdp_rxq_info_is_reg
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_xdp_rxq_info_unreg
LBB0_7:
	movl	32(%r12,%r13,8), %edi
	callq	_page_pool_destroy
	movq	_DESC_NUM@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
LBB0_8:
	movq	(%r14), %rdi
	shlq	$4, %rdx
	xorl	%esi, %esi
	callq	_memset
	movq	(%r15), %rdi
	movq	_DESC_SZ@GOTPCREL(%rip), %rax
	movq	_DESC_NUM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	imulq	(%rax), %rdx
	xorl	%esi, %esi
	callq	_memset
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r12,%r13,8)
	movq	_NETSEC_RING_TX@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_19
## %bb.9:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_reset_queue             ## TAILCALL
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DESC_NUM,8,3                   ## @DESC_NUM
	.comm	_NETSEC_RING_RX,4,2             ## @NETSEC_RING_RX
	.comm	_NETSEC_RING_TX,4,2             ## @NETSEC_RING_TX
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_DESC_SZ,8,3                    ## @DESC_SZ
	.no_dead_strip	_netsec_uninit_pkt_dring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netsec_uninit_pkt_dring
_netsec_uninit_pkt_dring:               ; @netsec_uninit_pkt_dring
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x22, [x0, #8]
	mov	w8, #40
	smaddl	x24, w1, w8, x22
	ldr	x8, [x24, #16]!
	cbz	x8, LBB0_19
; %bb.1:
	mov	x20, x1
	sxtw	x19, w20
	mov	w8, #40
	madd	x27, x19, x8, x22
	ldr	x8, [x27, #24]!
	cbz	x8, LBB0_19
; %bb.2:
Lloh0:
	adrp	x26, _DESC_NUM@GOTPAGE
Lloh1:
	ldr	x26, [x26, _DESC_NUM@GOTPAGEOFF]
	ldr	x9, [x26]
Lloh2:
	adrp	x21, _NETSEC_RING_RX@GOTPAGE
Lloh3:
	ldr	x21, [x21, _NETSEC_RING_RX@GOTPAGEOFF]
	cbz	x9, LBB0_12
; %bb.3:
	mov	x28, #0
	mov	w9, #40
	str	x19, [sp]                       ; 8-byte Folded Spill
	madd	x9, x19, x9, x22
	add	x25, x9, #32
	mov	w23, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x8, x28
	ldr	w0, [x9, #12]
	cbz	w0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x21]
	cmp	w9, w20
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_virt_to_page
	mov	x1, x0
	ldr	w0, [x25]
	mov	w2, #0
	bl	_page_pool_put_page
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh4:
	adrp	x9, _NETSEC_RING_TX@GOTPAGE
Lloh5:
	ldr	x9, [x9, _NETSEC_RING_TX@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w9, w20
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w0, [x9, #4]
	add	x19, x8, x28
	ldp	w2, w1, [x19, #4]
Lloh7:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	bl	_dma_unmap_single
	ldr	w0, [x19]
	bl	_dev_kfree_skb
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26]
	cmp	x23, x8
	b.hs	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27]
	add	x23, x23, #1
	add	x28, x28, #16
	b	LBB0_4
LBB0_11:
	ldr	x19, [sp]                       ; 8-byte Folded Reload
	b	LBB0_13
LBB0_12:
	mov	x8, #0
LBB0_13:
	ldr	w9, [x21]
	cmp	w9, w20
	b.ne	LBB0_17
; %bb.14:
	mov	w8, #40
	madd	x8, x19, x8, x22
	add	x21, x8, #36
	mov	x0, x21
	bl	_xdp_rxq_info_is_reg
	cbz	x0, LBB0_16
; %bb.15:
	mov	x0, x21
	bl	_xdp_rxq_info_unreg
LBB0_16:
	mov	w8, #40
	madd	x8, x19, x8, x22
	ldr	w0, [x8, #32]
	bl	_page_pool_destroy
	ldr	x8, [x26]
LBB0_17:
	ldr	x0, [x27]
	lsl	x2, x8, #4
	mov	w1, #0
	bl	_memset
	ldr	x0, [x24]
Lloh10:
	adrp	x8, _DESC_SZ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DESC_SZ@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x9, [x26]
	mul	x2, x9, x8
	mov	w1, #0
	bl	_memset
	mov	w8, #40
	madd	x8, x19, x8, x22
	stp	xzr, xzr, [x8]
Lloh13:
	adrp	x8, _NETSEC_RING_TX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NETSEC_RING_TX@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_19
; %bb.18:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_netdev_reset_queue
LBB0_19:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DESC_NUM,8,3                   ; @DESC_NUM
	.comm	_NETSEC_RING_RX,4,2             ; @NETSEC_RING_RX
	.comm	_NETSEC_RING_TX,4,2             ; @NETSEC_RING_TX
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_DESC_SZ,8,3                    ; @DESC_SZ
	.no_dead_strip	_netsec_uninit_pkt_dring
.subsections_via_symbols
