	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_free_rx_mem
_bnx2_free_rx_mem:                      ## @bnx2_free_rx_mem
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	jle	LBB0_13
## %bb.1:
	movq	%rdi, %r14
	xorl	%ecx, %ecx
	movq	_RXBD_RING_SIZE@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx,%r13), %rdi
	callq	_vfree
	movq	$0, (%rbx,%r13)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movslq	(%r14), %rax
	cmpq	%rax, %rcx
	jge	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
	movq	24(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r14), %eax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rcx,2), %r13
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rcx
	shlq	$4, %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx), %r12
	addq	$32, %r12
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	$0, (%rcx,%rbx,8)
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rcx
	movq	(%rcx,%rbx,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	16(%r14), %rdi
	movl	(%r15), %esi
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %ecx
	callq	_dma_free_coherent
	movq	(%r12), %rcx
	movl	4(%r14), %eax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	shlq	$4, %r13
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	24(%rbx,%r13), %rdi
	callq	_vfree
	movq	$0, 24(%rbx,%r13)
	movl	8(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%r13), %r12
	addq	$8, %r12
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	$0, (%rcx,%rbx,8)
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_12
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rcx
	movq	(%rcx,%rbx,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	16(%r14), %rdi
	movl	(%r15), %esi
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %ecx
	callq	_dma_free_coherent
	movq	(%r12), %rcx
	movl	8(%r14), %eax
	jmp	LBB0_11
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RXBD_RING_SIZE,4,2             ## @RXBD_RING_SIZE
	.no_dead_strip	_bnx2_free_rx_mem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_free_rx_mem
_bnx2_free_rx_mem:                      ; @bnx2_free_rx_mem
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x19, x0
	mov	x20, #0
	mov	w21, #48
Lloh0:
	adrp	x22, _RXBD_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RXBD_RING_SIZE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mul	x24, x20, x21
	ldr	x0, [x23, x24]
	bl	_vfree
	str	xzr, [x23, x24]
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.ge	LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x23, [x19, #24]
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, #0
	madd	x9, x20, x21, x23
	add	x25, x9, #32
	add	x26, x9, #40
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	str	xzr, [x9, x24, lsl #3]
	add	x24, x24, #1
	cmp	x24, w8, sxtw
	b.ge	LBB0_8
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x25]
	ldr	x2, [x9, x24, lsl #3]
	cbz	x2, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x0, [x19, #16]
	ldr	w1, [x22]
	ldr	x8, [x26]
	ldr	w3, [x8, x24, lsl #2]
	bl	_dma_free_coherent
	ldr	x9, [x25]
	ldr	w8, [x19, #4]
	b	LBB0_5
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	madd	x24, x20, x21, x23
	ldr	x0, [x24, #24]
	bl	_vfree
	str	xzr, [x24, #24]
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, #0
	madd	x9, x20, x21, x23
	add	x25, x9, #8
	add	x26, x9, #16
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	str	xzr, [x9, x24, lsl #3]
	add	x24, x24, #1
	cmp	x24, w8, sxtw
	b.ge	LBB0_2
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x25]
	ldr	x2, [x9, x24, lsl #3]
	cbz	x2, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x0, [x19, #16]
	ldr	w1, [x22]
	ldr	x8, [x26]
	ldr	w3, [x8, x24, lsl #2]
	bl	_dma_free_coherent
	ldr	x9, [x25]
	ldr	w8, [x19, #8]
	b	LBB0_10
LBB0_13:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_RXBD_RING_SIZE,4,2             ; @RXBD_RING_SIZE
	.no_dead_strip	_bnx2_free_rx_mem
.subsections_via_symbols
