	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function myri10ge_free_rings
_myri10ge_free_rings:                   ## @myri10ge_free_rings
	.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
	cmpq	$0, 16(%rdi)
	je	LBB0_16
## %bb.1:
	movq	%rdi, %r12
	movq	112(%rdi), %r14
	movl	72(%rdi), %ebx
	movl	76(%rdi), %eax
	cmpl	%eax, %ebx
	jge	LBB0_7
## %bb.2:
	movq	_MYRI10GE_ALLOC_SIZE@GOTPCREL(%rip), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rdx
	movq	96(%r12), %rsi
	movslq	%ecx, %rax
	leaq	(%rax,%rax,2), %rcx
	movq	%rdx, 16(%rsi,%rcx,8)
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%r14), %edi
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %r13
	addq	%r13, %rsi
	movq	(%r14), %rdx
	callq	_myri10ge_unmap_rx_page
	movq	96(%r12), %rax
	movl	8(%rax,%r13), %edi
	callq	_put_page
	incl	%ebx
	movl	76(%r12), %eax
	cmpl	%eax, %ebx
	jge	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	80(%r12), %ecx
	andl	%ebx, %ecx
	decl	%eax
	cmpl	%eax, %ebx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%ecx, %rax
	movq	96(%r12), %rsi
	jmp	LBB0_6
LBB0_7:
	leaq	16(%r12), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, 8(%r14)
	movl	44(%r12), %ebx
	je	LBB0_8
## %bb.9:
	movl	40(%r12), %eax
	cmpl	%eax, %ebx
	jge	LBB0_15
## %bb.10:
	movq	_MXGEFW_PAD@GOTPCREL(%rip), %r15
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_MYRI10GE_ALLOC_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	64(%r12), %rsi
	movslq	%ecx, %rax
	leaq	(%rax,%rax,2), %rcx
	movq	%rdx, 16(%rsi,%rcx,8)
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	16(%r14), %edi
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %r13
	addq	%r13, %rsi
	movq	(%r15), %rdx
	addq	8(%r14), %rdx
	callq	_myri10ge_unmap_rx_page
	movq	64(%r12), %rax
	movl	8(%rax,%r13), %edi
	callq	_put_page
	incl	%ebx
	movl	40(%r12), %eax
	cmpl	%eax, %ebx
	jge	LBB0_15
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	48(%r12), %ecx
	andl	%ebx, %ecx
	decl	%eax
	cmpl	%eax, %ebx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movslq	%ecx, %rax
	movq	64(%r12), %rsi
	jmp	LBB0_14
LBB0_8:
	movl	%ebx, 40(%r12)
LBB0_15:
	movq	96(%r12), %rdi
	callq	_kfree
	movq	64(%r12), %rdi
	callq	_kfree
	movq	32(%r12), %rdi
	callq	_kfree
	movq	88(%r12), %rdi
	callq	_kfree
	movq	56(%r12), %rdi
	callq	_kfree
	movq	24(%r12), %rdi
	callq	_kfree
	xorps	%xmm0, %xmm0
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movups	%xmm0, (%rax)
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MYRI10GE_ALLOC_SIZE,8,3        ## @MYRI10GE_ALLOC_SIZE
	.comm	_MXGEFW_PAD,8,3                 ## @MXGEFW_PAD
	.comm	_bus,4,2                        ## @bus
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.no_dead_strip	_myri10ge_free_rings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function myri10ge_free_rings
_myri10ge_free_rings:                   ; @myri10ge_free_rings
	.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, x0
	ldr	x8, [x20, #16]!
	cbz	x8, LBB0_16
; %bb.1:
	mov	x19, x0
	ldr	x21, [x20, #96]
	ldp	w22, w8, [x0, #72]
	cmp	w22, w8
	b.ge	LBB0_7
; %bb.2:
Lloh0:
	adrp	x23, _MYRI10GE_ALLOC_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MYRI10GE_ALLOC_SIZE@GOTPAGEOFF]
	mov	w24, #24
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x11, [x23]
	ldr	x8, [x19, #96]
	mov	x9, x10
	sxtw	x9, w9
	smaddl	x10, w10, w24, x8
	str	x11, [x10, #16]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x21, #16]
	add	x9, x9, x9, lsl #1
	lsl	x25, x9, #3
	add	x1, x8, x25
	ldr	x2, [x21]
	bl	_myri10ge_unmap_rx_page
	ldr	x8, [x19, #96]
	add	x8, x8, x25
	ldr	w0, [x8, #8]
	bl	_put_page
	add	w22, w22, #1
	ldr	w8, [x19, #76]
	cmp	w22, w8
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19, #80]
	and	w10, w9, w22
	sub	w8, w8, #1
	cmp	w22, w8
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x9, w10
	ldr	x8, [x19, #96]
	b	LBB0_4
LBB0_7:
	ldr	x8, [x21, #8]
	ldr	w22, [x19, #44]
	cbz	x8, LBB0_14
; %bb.8:
	ldr	w8, [x19, #40]
	cmp	w22, w8
	b.ge	LBB0_15
; %bb.9:
Lloh2:
	adrp	x23, _MYRI10GE_ALLOC_SIZE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MYRI10GE_ALLOC_SIZE@GOTPAGEOFF]
	mov	w24, #24
Lloh4:
	adrp	x25, _MXGEFW_PAD@GOTPAGE
Lloh5:
	ldr	x25, [x25, _MXGEFW_PAD@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x11, [x23]
	ldr	x8, [x19, #64]
	mov	x9, x10
	sxtw	x9, w9
	smaddl	x10, w10, w24, x8
	str	x11, [x10, #16]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x21, #16]
	add	x9, x9, x9, lsl #1
	lsl	x26, x9, #3
	add	x1, x8, x26
	ldr	x8, [x21, #8]
	ldr	x9, [x25]
	add	x2, x9, x8
	bl	_myri10ge_unmap_rx_page
	ldr	x8, [x19, #64]
	add	x8, x8, x26
	ldr	w0, [x8, #8]
	bl	_put_page
	add	w22, w22, #1
	ldr	w8, [x19, #40]
	cmp	w22, w8
	b.ge	LBB0_15
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19, #48]
	and	w10, w9, w22
	sub	w8, w8, #1
	cmp	w22, w8
	b.eq	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	sxtw	x9, w10
	ldr	x8, [x19, #64]
	b	LBB0_11
LBB0_14:
	str	w22, [x19, #40]
LBB0_15:
	ldr	x0, [x19, #96]
	bl	_kfree
	ldr	x0, [x19, #64]
	bl	_kfree
	ldr	x0, [x19, #32]
	bl	_kfree
	ldr	x0, [x19, #88]
	bl	_kfree
	ldr	x0, [x19, #56]
	bl	_kfree
	ldr	x0, [x19, #24]
	bl	_kfree
	stp	xzr, xzr, [x20]
LBB0_16:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MYRI10GE_ALLOC_SIZE,8,3        ; @MYRI10GE_ALLOC_SIZE
	.comm	_MXGEFW_PAD,8,3                 ; @MXGEFW_PAD
	.comm	_bus,4,2                        ; @bus
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.no_dead_strip	_myri10ge_free_rings
.subsections_via_symbols
