	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_free_tx_skbs
_bnx2_free_tx_skbs:                     ## @bnx2_free_tx_skbs
	.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	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_16
## %bb.1:
	movq	%rdi, %r14
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r14), %edi
	movl	%r15d, %esi
	callq	_netdev_get_tx_queue
	movl	%eax, %edi
	callq	_netdev_tx_reset_queue
	movl	(%r14), %eax
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	cmpq	%rcx, %r15
	jge	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
	movq	16(%r14), %rcx
	movq	(%rcx,%r15,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	_BNX2_TX_DESC_CNT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
	movslq	%r13d, %rbx
	shlq	$4, %rbx
	movq	8(%rdx,%rbx), %r12
	testq	%r12, %r12
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	leaq	(%rdx,%rbx), %rax
	addq	$8, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rdx,%rbx), %rdi
	movq	%r14, %r15
	movq	8(%r14), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_mapping@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	callq	_dma_unmap_addr
	movl	%eax, %r14d
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_skb_headlen
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_dma_unmap_single
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rbx), %ebx
	movl	%r13d, %edi
	callq	_BNX2_NEXT_TX_BD
	movl	%eax, %r13d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	shlq	$2, -48(%rbp)                   ## 8-byte Folded Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rbx
	movl	%r13d, %edi
	callq	_BNX2_TX_RING_IDX
	shlq	$4, %rax
	addq	%rax, %rbx
	movq	8(%r15), %r14
	movq	_mapping@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dma_unmap_addr
	movl	%eax, %ebx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_shinfo
	movq	(%rax), %rdi
	addq	%r12, %rdi
	callq	_skb_frag_size
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movq	%r15, %r14
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_dma_unmap_page
	movl	%r13d, %edi
	callq	_BNX2_NEXT_TX_BD
	movl	%eax, %r13d
	addq	$4, %r12
	cmpq	%r12, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_10
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=2
	movl	%r13d, %edi
	callq	_BNX2_NEXT_TX_BD
	movl	%eax, %r13d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	%r15, %r14
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_kfree_skb
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	_BNX2_TX_DESC_CNT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jge	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %rdx
	jmp	LBB0_5
LBB0_16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2_TX_DESC_CNT,4,2           ## @BNX2_TX_DESC_CNT
	.comm	_mapping,4,2                    ## @mapping
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.no_dead_strip	_bnx2_free_tx_skbs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_free_tx_skbs
_bnx2_free_tx_skbs:                     ; @bnx2_free_tx_skbs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.1:
	mov	x19, x0
	mov	x26, #0
Lloh0:
	adrp	x25, _mapping@GOTPAGE
Lloh1:
	ldr	x25, [x25, _mapping@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #4]
	mov	x1, x26
	bl	_netdev_get_tx_queue
	bl	_netdev_tx_reset_queue
	ldr	w9, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	cmp	x26, w9, sxtw
	b.ge	LBB0_16
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
	ldr	x24, [x19, #16]
	ldr	x8, [x24, x26, lsl #3]
	cbz	x8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh2:
	adrp	x9, _BNX2_TX_DESC_CNT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BNX2_TX_DESC_CNT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w22, #0
	str	x24, [sp, #8]                   ; 8-byte Folded Spill
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
	sxtw	x23, w22
	add	x27, x8, w22, sxtw #4
	ldr	x21, [x27, #8]!
	cbz	x21, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x22, x8, x23, lsl #4
	ldr	x24, [x19, #8]
	mov	x28, x25
	ldr	w1, [x25]
	mov	x0, x22
	bl	_dma_unmap_addr
	mov	x25, x0
	mov	x0, x21
	bl	_skb_headlen
	mov	x2, x0
Lloh5:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x24
	mov	x1, x25
	bl	_dma_unmap_single
	str	xzr, [x27]
	ldr	w24, [x22]
	mov	x0, x23
	bl	_BNX2_NEXT_TX_BD
	mov	x22, x0
	cmp	w24, #1
	b.lt	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x25, #0
	lsl	x27, x24, #2
	mov	x20, x19
Lloh8:
	adrp	x19, _PCI_DMA_TODEVICE@GOTPAGE
Lloh9:
	ldr	x19, [x19, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x23, [x24, x26, lsl #3]
	mov	x0, x22
	bl	_BNX2_TX_RING_IDX
	add	x0, x23, x0, lsl #4
	ldr	x23, [x20, #8]
	ldr	w1, [x28]
	bl	_dma_unmap_addr
	mov	x24, x0
	mov	x0, x21
	bl	_skb_shinfo
	ldr	x8, [x0]
	add	x0, x8, x25
	bl	_skb_frag_size
	mov	x2, x0
	ldr	w3, [x19]
	mov	x0, x23
	mov	x1, x24
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
	bl	_dma_unmap_page
	mov	x0, x22
	bl	_BNX2_NEXT_TX_BD
	mov	x22, x0
	add	x25, x25, #4
	cmp	x27, x25
	b.ne	LBB0_10
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x23
	bl	_BNX2_NEXT_TX_BD
	mov	x22, x0
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x20, x19
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x21
	bl	_dev_kfree_skb
	mov	x25, x28
	mov	x19, x20
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=2
Lloh10:
	adrp	x8, _BNX2_TX_DESC_CNT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BNX2_TX_DESC_CNT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ge	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x24, x26, lsl #3]
	b	LBB0_7
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2_TX_DESC_CNT,4,2           ; @BNX2_TX_DESC_CNT
	.comm	_mapping,4,2                    ; @mapping
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.no_dead_strip	_bnx2_free_tx_skbs
.subsections_via_symbols
