	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_reuse_rx_skb_pages
_bnx2_reuse_rx_skb_pages:               ## @bnx2_reuse_rx_skb_pages
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rsi, %r12
	movq	(%rsi), %r15
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	%rdx, %r14
	movq	24(%r12), %r13
	movq	%rdx, %rdi
	callq	_skb_shinfo
	movq	(%rax), %rcx
	movq	8(%rax), %rdx
	leaq	-1(%rcx), %rsi
	movq	%rsi, (%rax)
	movq	-8(%rdx,%rcx,8), %rax
	movq	$0, -8(%rdx,%rcx,8)
	movq	%rax, (%r13,%r15,8)
	movq	%r14, %rdi
	callq	_dev_kfree_skb
LBB0_2:
	movq	8(%r12), %rax
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.3:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_BNX2_NEXT_RX_BD
	movq	%rax, %rdi
	callq	_BNX2_RX_PG_RING_IDX
	movq	%rax, %r15
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_BNX2_NEXT_RX_BD
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	decl	%ebx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_BNX2_RX_PG_RING_IDX
	movq	%rax, %r14
	movq	16(%r12), %rbx
	movq	24(%r12), %r13
	movq	%r15, %rdi
	callq	_BNX2_RX_RING
	movq	(%rbx,%rax,8), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_BNX2_RX_IDX
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rbx
	movq	%r14, %rdi
	callq	_BNX2_RX_RING
	movq	(%rbx,%rax,8), %r12
	movq	%r14, %rdi
	callq	_BNX2_RX_IDX
	cmpq	%r15, %r14
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	leaq	(,%r15,8), %rdi
	addq	%r13, %rdi
	leaq	(%r13,%r14,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%r13,%r15,8), %rax
	movq	%rax, (%r13,%r14,8)
	movq	$0, (%r13,%r15,8)
	movq	_mapping@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %esi
	callq	_pci_unmap_addr
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_pci_unmap_addr_set
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	4(%rcx,%rdx,8), %eax
	movl	%eax, 4(%r12,%rbx,8)
	movl	(%rcx,%rdx,8), %eax
	movl	%eax, (%r12,%rbx,8)
	jmp	LBB0_6
LBB0_7:
	movq	%rax, 8(%r12)
	movq	%r15, (%r12)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mapping,4,2                    ## @mapping
	.no_dead_strip	_bnx2_reuse_rx_skb_pages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_reuse_rx_skb_pages
_bnx2_reuse_rx_skb_pages:               ; @bnx2_reuse_rx_skb_pages
	.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
	mov	x20, x3
	mov	x19, x1
	ldr	x21, [x1]
	cbz	x2, LBB0_2
; %bb.1:
	mov	x22, x2
	ldr	x23, [x19, #24]
	mov	x0, x2
	bl	_skb_shinfo
	ldp	x8, x9, [x0]
	sub	x8, x8, #1
	lsl	x10, x8, #3
	ldr	x11, [x9, x10]
	str	x8, [x0]
	str	xzr, [x9, x10]
	str	x11, [x23, x21, lsl #3]
	mov	x0, x22
	bl	_dev_kfree_skb
LBB0_2:
	ldr	x22, [x19, #8]
	cmp	w20, #1
	b.ge	LBB0_5
LBB0_3:
	stp	x21, x22, [x19]
	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_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_BNX2_NEXT_RX_BD
	bl	_BNX2_RX_PG_RING_IDX
	mov	x21, x0
	mov	x0, x22
	bl	_BNX2_NEXT_RX_BD
	mov	x22, x0
	subs	w20, w20, #1
	b.eq	LBB0_3
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_BNX2_RX_PG_RING_IDX
	mov	x24, x0
	ldp	x23, x26, [x19, #16]
	mov	x0, x21
	bl	_BNX2_RX_RING
	ldr	x28, [x23, x0, lsl #3]
	mov	x0, x21
	bl	_BNX2_RX_IDX
	mov	x23, x0
	ldr	x25, [x19, #16]
	mov	x0, x24
	bl	_BNX2_RX_RING
	ldr	x27, [x25, x0, lsl #3]
	mov	x0, x24
	bl	_BNX2_RX_IDX
	cmp	x24, x21
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, x0
	add	x0, x26, x21, lsl #3
	add	x24, x26, x24, lsl #3
	ldr	x8, [x0]
	str	x8, [x24]
	str	xzr, [x0]
Lloh0:
	adrp	x8, _mapping@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mapping@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
	mov	x1, x26
	bl	_pci_unmap_addr
	mov	x2, x0
	mov	x0, x24
	mov	x1, x26
	bl	_pci_unmap_addr_set
	ldr	d0, [x28, x23, lsl #3]
	str	d0, [x27, x25, lsl #3]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mapping,4,2                    ; @mapping
	.no_dead_strip	_bnx2_reuse_rx_skb_pages
.subsections_via_symbols
