	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netsec_free_dring
_netsec_free_dring:                     ## @netsec_free_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r14
	movslq	%esi, %rax
	leaq	(%rax,%rax,2), %rbx
	movq	8(%r14,%rbx,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	leaq	(%r14,%rbx,8), %r15
	addq	$8, %r15
	movl	(%rdi), %edi
	movq	_DESC_SZ@GOTPCREL(%rip), %rax
	movq	_DESC_NUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	imull	(%rax), %esi
	movl	16(%r14,%rbx,8), %ecx
	callq	_dma_free_coherent
	movq	$0, (%r15)
LBB0_2:
	movq	(%r14,%rbx,8), %rdi
	callq	_kfree
	movq	$0, (%r14,%rbx,8)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DESC_SZ,4,2                    ## @DESC_SZ
	.comm	_DESC_NUM,4,2                   ## @DESC_NUM
	.no_dead_strip	_netsec_free_dring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netsec_free_dring
_netsec_free_dring:                     ; @netsec_free_dring
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x19, [x0, #8]
	sxtw	x20, w1
	mov	w8, #24
	smaddl	x21, w1, w8, x19
	ldr	x2, [x21, #8]!
	cbz	x2, LBB0_2
; %bb.1:
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _DESC_SZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DESC_SZ@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DESC_NUM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DESC_NUM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	mul	w1, w9, w8
	mov	w8, #24
	madd	x8, x20, x8, x19
	ldr	w3, [x8, #16]
	bl	_dma_free_coherent
	str	xzr, [x21]
LBB0_2:
	mov	w8, #24
	mul	x20, x20, x8
	ldr	x0, [x19, x20]
	bl	_kfree
	str	xzr, [x19, x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DESC_SZ,4,2                    ; @DESC_SZ
	.comm	_DESC_NUM,4,2                   ; @DESC_NUM
	.no_dead_strip	_netsec_free_dring
.subsections_via_symbols
