	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_free_rx_bds
_bnx2x_free_rx_bds:                     ## @bnx2x_free_rx_bds
	.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
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_7
## %bb.1:
	movq	_NUM_RX_BD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.2:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %edx
	xorl	%r13d, %r13d
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r14,%r13), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r15
	movq	_mapping@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	callq	_dma_unmap_addr
	movl	(%r12), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dma_unmap_single
	movq	$0, (%r14,%r13)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_frag_free
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	_NUM_RX_BD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	%eax, %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %r14
	addq	$8, %r13
	incq	%rdx
	jmp	LBB0_3
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_RX_BD,4,2                  ## @NUM_RX_BD
	.comm	_mapping,4,2                    ## @mapping
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_bnx2x_free_rx_bds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_free_rx_bds
_bnx2x_free_rx_bds:                     ; @bnx2x_free_rx_bds
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x26, [x0, #8]
Lloh0:
	adrp	x22, _NUM_RX_BD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NUM_RX_BD@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	x26, #0
	ccmp	w8, #1, #8, ne
	b.ge	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	mov	x23, #0
	ldr	x24, [x0, #16]
	mov	w25, #1
Lloh2:
	adrp	x27, _mapping@GOTPAGE
Lloh3:
	ldr	x27, [x27, _mapping@GOTPAGEOFF]
Lloh4:
	adrp	x28, _DMA_FROM_DEVICE@GOTPAGE
Lloh5:
	ldr	x28, [x28, _DMA_FROM_DEVICE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x26, x23
	ldr	x20, [x0]
	cbz	x20, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x21, [x24]
	ldr	w1, [x27]
	bl	_dma_unmap_addr
	mov	x1, x0
	ldr	w2, [x19]
	ldr	w3, [x28]
	mov	x0, x21
	bl	_dma_unmap_single
	str	xzr, [x26, x23]
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2x_frag_free
	ldr	w8, [x22]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x25, w8, sxtw
	b.ge	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x26, [x19, #8]
	add	x23, x23, #8
	add	x25, x25, #1
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_RX_BD,4,2                  ; @NUM_RX_BD
	.comm	_mapping,4,2                    ; @mapping
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_bnx2x_free_rx_bds
.subsections_via_symbols
