	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_free_tx_pkt
_bnx2x_free_tx_pkt:                     ## @bnx2x_free_tx_pkt
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	16(%rsi), %r13
	leaq	(%rdx,%rdx,2), %r12
	leaq	(%r13,%r12,8), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	(%r13,%r12,8), %rdi
	movq	16(%r13,%r12,8), %r15
	callq	_TX_BD
	movq	%rax, %r14
	leaq	8(%r15), %rdi
	callq	_prefetch
	movq	_NETIF_MSG_TX_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movq	%r15, -144(%rbp)                ## 8-byte Spill
	movq	%r15, %r9
	callq	_DP
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	4(%rax,%r14,8), %edi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	movq	(%r13,%r12,8), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_NEXT_TX_IDX
	movq	%rax, %rdi
	callq	_TX_BD
	movq	%rax, %rdi
	callq	_NEXT_TX_IDX
	movq	%rax, %rdi
	callq	_TX_BD
	movq	%r12, %rdx
	movq	%rax, %r12
	movl	8(%r13,%rdx,8), %eax
	movq	_BNX2X_HAS_SECOND_PBD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	%r13, -136(%rbp)                ## 8-byte Spill
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	leaq	8(%r13,%rdx,8), %r13
	leal	-3(%rbx), %r15d
	movq	%r12, %rdi
	callq	_NEXT_TX_IDX
	movq	%rax, %rdi
	callq	_TX_BD
	movq	%rax, %r12
	movl	(%r13), %eax
	jmp	LBB0_3
LBB0_1:
	leal	-2(%rbx), %r15d
LBB0_3:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,8), %rcx
	addq	$4, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	_BNX2X_TSO_SPLIT_BD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_4
## %bb.5:
	leaq	(,%r12,8), %rdi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	addq	(%r14), %rdi
	callq	_BD_UNMAP_LEN
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	decl	%r15d
	movq	%r12, %rdi
	callq	_NEXT_TX_IDX
	movq	%rax, %rdi
	callq	_TX_BD
	movq	%rax, %r12
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_6:
	movq	(%rbx), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_BD_UNMAP_ADDR
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_BD_UNMAP_LEN
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	addq	%rax, %rdx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	%ebx, %esi
	callq	_dma_unmap_single
	testl	%r15d, %r15d
	jle	LBB0_10
## %bb.7:
	leaq	(,%r12,8), %rbx
	addq	(%r14), %rbx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_BD_UNMAP_ADDR
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_BD_UNMAP_LEN
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdx
	callq	_dma_unmap_page
	decl	%r15d
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	callq	_NEXT_TX_IDX
	movq	%rax, %rdi
	callq	_TX_BD
	movq	%rax, %r12
	leaq	(,%rax,8), %rbx
	addq	(%r14), %rbx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r13
	movq	%rbx, %rdi
	callq	_BD_UNMAP_ADDR
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_BD_UNMAP_LEN
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r13, %rdi
	movl	%r14d, %esi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_10:
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rax,%rcx,8), %r14
	addq	$16, %r14
	xorl	%edi, %edi
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	testq	%rbx, %rbx
	sete	%dil
	callq	_WARN_ON
	movq	%rbx, %rdi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
	movl	(%rbx), %eax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_dev_kfree_skb_any
LBB0_12:
	movslq	-112(%rbp), %rax                ## 4-byte Folded Reload
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	addq	%rcx, %rax
	decq	%rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	$0, (%rcx)
	movq	$0, (%r14)
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_MSG_TX_DONE,4,2          ## @NETIF_MSG_TX_DONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fp[%d]: pkt_idx %d  buff @(%p)->skb %p\n"

	.comm	_BNX2X_HAS_SECOND_PBD,4,2       ## @BNX2X_HAS_SECOND_PBD
	.comm	_BNX2X_TSO_SPLIT_BD,4,2         ## @BNX2X_TSO_SPLIT_BD
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_MAX_SKB_FRAGS,4,2              ## @MAX_SKB_FRAGS
	.no_dead_strip	_bnx2x_free_tx_pkt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_free_tx_pkt
_bnx2x_free_tx_pkt:                     ; @bnx2x_free_tx_pkt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	stp	x3, x4, [sp, #8]                ; 16-byte Folded Spill
	mov	x25, x2
	mov	x23, x1
	mov	x24, x0
	ldr	x8, [x1, #16]
	mov	w9, #24
	madd	x19, x2, x9, x8
	mov	x8, x19
	ldr	x22, [x8, #16]!
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	ldr	x0, [x19]
	bl	_TX_BD
	mov	x26, x0
	add	x0, x22, #8
	bl	_prefetch
Lloh0:
	adrp	x8, _NETIF_MSG_TX_DONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_MSG_TX_DONE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x23, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x25
	mov	x4, x19
	mov	x5, x22
	bl	_DP
	ldr	x8, [x23]
	add	x27, x8, x26, lsl #3
	ldr	w0, [x27, #4]!
	bl	_le16_to_cpu
	mov	x21, x0
	ldr	x8, [x19]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	mov	x0, x26
	bl	_NEXT_TX_IDX
	bl	_TX_BD
	bl	_NEXT_TX_IDX
	bl	_TX_BD
	mov	x26, x0
	mov	x20, x19
	ldr	w8, [x20, #8]!
Lloh5:
	adrp	x9, _BNX2X_HAS_SECOND_PBD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BNX2X_HAS_SECOND_PBD@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	sub	w25, w21, #3
	mov	x0, x26
	bl	_NEXT_TX_IDX
	bl	_TX_BD
	mov	x26, x0
	ldr	w8, [x20]
	b	LBB0_3
LBB0_2:
	sub	w25, w21, #2
LBB0_3:
Lloh8:
	adrp	x9, _BNX2X_TSO_SPLIT_BD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BNX2X_TSO_SPLIT_BD@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	str	w21, [sp, #36]                  ; 4-byte Folded Spill
	b.eq	LBB0_5
; %bb.4:
	ldr	x8, [x23]
	add	x0, x8, x26, lsl #3
	bl	_BD_UNMAP_LEN
	mov	x28, x0
	sub	w25, w25, #1
	mov	x0, x26
	bl	_NEXT_TX_IDX
	bl	_TX_BD
	mov	x26, x0
	b	LBB0_6
LBB0_5:
	mov	x28, #0
LBB0_6:
	ldr	x20, [x24]
	mov	x0, x27
	bl	_BD_UNMAP_ADDR
	mov	x21, x0
	mov	x0, x27
	bl	_BD_UNMAP_LEN
	add	x2, x0, x28
Lloh11:
	adrp	x28, _DMA_TO_DEVICE@GOTPAGE
Lloh12:
	ldr	x28, [x28, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x28]
	mov	x0, x20
	mov	x1, x21
	bl	_dma_unmap_single
	cmp	w25, #1
	b.lt	LBB0_10
; %bb.7:
	ldr	x8, [x23]
	add	x20, x8, x26, lsl #3
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x24]
	mov	x0, x20
	bl	_BD_UNMAP_ADDR
	mov	x27, x0
	mov	x0, x20
	bl	_BD_UNMAP_LEN
	mov	x2, x0
	ldr	w3, [x28]
	mov	x0, x21
	mov	x1, x27
	bl	_dma_unmap_page
	subs	w25, w25, #1
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x26
	bl	_NEXT_TX_IDX
	bl	_TX_BD
	mov	x26, x0
	ldr	x8, [x23]
	add	x20, x8, x0, lsl #3
	b	LBB0_8
LBB0_10:
	cmp	x22, #0
	cset	w0, eq
	bl	_WARN_ON
	mov	x0, x22
	bl	_likely
	cbz	x0, LBB0_12
; %bb.11:
	ldp	x9, x10, [sp, #8]               ; 16-byte Folded Reload
	ldr	w8, [x9]
	add	w8, w8, #1
	str	w8, [x9]
	ldr	w8, [x22]
	ldr	w9, [x10]
	add	w8, w9, w8
	str	w8, [x10]
	mov	x0, x22
	bl	_dev_kfree_skb_any
LBB0_12:
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	sub	w8, w8, #1
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x0, x9, w8, sxtw
	str	xzr, [x19]
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	str	xzr, [x8]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_MSG_TX_DONE,4,2          ; @NETIF_MSG_TX_DONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fp[%d]: pkt_idx %d  buff @(%p)->skb %p\n"

	.comm	_BNX2X_HAS_SECOND_PBD,4,2       ; @BNX2X_HAS_SECOND_PBD
	.comm	_BNX2X_TSO_SPLIT_BD,4,2         ; @BNX2X_TSO_SPLIT_BD
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_MAX_SKB_FRAGS,4,2              ; @MAX_SKB_FRAGS
	.no_dead_strip	_bnx2x_free_tx_pkt
.subsections_via_symbols
