	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vnet_port_free_tx_bufs
_vnet_port_free_tx_bufs:                ## @vnet_port_free_tx_bufs
	.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
	pushq	%rax
	.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), %r15
	movq	_VIO_DRIVER_TX_RING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,4), %rbx
	movq	24(%r15,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	8(%r14), %edi
	movl	4(%r15,%rbx,8), %edx
	imull	(%r15,%rbx,8), %edx
	movl	32(%r15,%rbx,8), %ecx
	movq	8(%r15,%rbx,8), %r8
	callq	_ldc_free_exp_dring
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15,%rbx,8)
	movups	%xmm0, 16(%r15,%rbx,8)
LBB0_2:
	movq	_VNET_TX_RING_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.3:
	movq	(%r14), %rax
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movslq	%ecx, %rdx
	addq	$16, %rbx
	cmpq	%rdx, %r13
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rbx), %r12
	testq	%r12, %r12
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r14), %edi
	movl	8(%rax,%rbx), %edx
	movl	12(%rax,%rbx), %esi
	callq	_ldc_unmap
	movq	%r12, %rdi
	callq	_kfree
	movq	(%r14), %rax
	movq	$0, (%rax,%rbx)
	movl	(%r15), %ecx
	jmp	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIO_DRIVER_TX_RING,8,3         ## @VIO_DRIVER_TX_RING
	.comm	_VNET_TX_RING_SIZE,4,2          ## @VNET_TX_RING_SIZE
	.no_dead_strip	_vnet_port_free_tx_bufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vnet_port_free_tx_bufs
_vnet_port_free_tx_bufs:                ; @vnet_port_free_tx_bufs
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _VIO_DRIVER_TX_RING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VIO_DRIVER_TX_RING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	w10, #40
	madd	x10, x9, x10, x8
	ldr	x1, [x10, #24]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
	mov	w10, #40
	madd	x20, x9, x10, x8
	ldp	w8, w9, [x20]
	mul	w2, w9, w8
	ldr	w3, [x20, #32]
	ldr	x4, [x20, #8]
	bl	_ldc_free_exp_dring
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x20]
LBB0_2:
Lloh3:
	adrp	x21, _VNET_TX_RING_SIZE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _VNET_TX_RING_SIZE@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x22, #0
	mov	x23, #0
	ldr	x8, [x19]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	add	x22, x22, #16
	cmp	x23, w9, sxtw
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x8, x22]
	cbz	x20, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #8]
	add	x8, x8, x22
	ldp	w2, w1, [x8, #8]
	bl	_ldc_unmap
	mov	x0, x20
	bl	_kfree
	ldr	x8, [x19]
	str	xzr, [x8, x22]
	ldr	w9, [x21]
	b	LBB0_4
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_VIO_DRIVER_TX_RING,8,3         ; @VIO_DRIVER_TX_RING
	.comm	_VNET_TX_RING_SIZE,4,2          ; @VNET_TX_RING_SIZE
	.no_dead_strip	_vnet_port_free_tx_bufs
.subsections_via_symbols
