	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_tx_int
_bnx2_tx_int:                           ## @bnx2_tx_int
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rax
	subq	24(%rdi), %rax
	movl	%edx, %r15d
	shrq	$3, %rax
	imull	$-1431655765, %eax, %esi        ## imm = 0xAAAAAAAB
	movl	16(%rdi), %edi
	callq	_netdev_get_tx_queue
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_bnx2_get_hw_tx_cons
	movq	(%rbx), %r14
	cmpq	%rax, %r14
	jne	LBB0_2
## %bb.1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	movq	%r14, %r13
	jmp	LBB0_14
LBB0_2:
	xorl	%r12d, %r12d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	%r15d, -92(%rbp)                ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rbx
	movq	%r14, %r13
	cmpq	%rax, %r14
	je	LBB0_14
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_BNX2_TX_RING_IDX
	movq	%rax, %r13
	movq	16(%rbx), %r15
	leaq	(%rax,%rax,2), %r12
	leaq	(%r15,%r12,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r15,%r12,8), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	8(%rax), %rdi
	callq	_prefetch
	cmpq	$0, 16(%r15,%r12,8)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	leaq	(%rbx,%r13), %rax
	incq	%rax
	addq	%r14, %rbx
	xorl	%edi, %edi
	movq	_BNX2_MAX_TX_DESC_CNT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setge	%dil
	callq	_unlikely
	cmpq	$1, %rax
	sbbq	$0, %rbx
	addq	$2, %rbx
	cmpq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	jg	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r15,%r12,8), %r15
	addq	$8, %r15
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r12
	movq	_mapping@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_dma_unmap_addr
	movl	%eax, %r13d
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_headlen
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_dma_unmap_single
	movq	$0, (%r15)
	movq	(%rbx), %rax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %eax
	shlq	$2, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	callq	_BNX2_NEXT_TX_BD
	movq	%rax, %r14
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rbx
	movq	%r14, %rdi
	callq	_BNX2_TX_RING_IDX
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,8), %rdi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r13
	movq	_mapping@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dma_unmap_addr
	movl	%eax, %ebx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_shinfo
	movq	(%rax), %rdi
	addq	%r12, %rdi
	callq	_skb_frag_size
	movl	(%r15), %ecx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_dma_unmap_page
	addq	$4, %r12
	cmpq	%r12, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_BNX2_NEXT_TX_BD
	movq	%rax, %r14
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	addl	(%rdi), %ebx
	callq	_dev_kfree_skb_any
	movq	-104(%rbp), %r12                ## 8-byte Reload
	incl	%r12d
	movl	-92(%rbp), %r15d                ## 4-byte Reload
	cmpl	%r15d, %r12d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%r14, %rax
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movq	%rax, %r14
	callq	_bnx2_get_hw_tx_cons
	jmp	LBB0_13
LBB0_10:
	movl	%r15d, %r12d
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_5:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-104(%rbp), %r12                ## 8-byte Reload
LBB0_14:
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_netdev_tx_completed_queue
	movq	%r13, 8(%rbx)
	movq	%r14, (%rbx)
	movq	%r15, %r14
	xorl	%eax, %eax
	callq	_smp_mb
	movq	%r15, %rdi
	callq	_netif_tx_queue_stopped
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_20
## %bb.15:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bnx2_tx_avail
	cmpq	(%r15), %rax
	jle	LBB0_20
## %bb.16:
	xorl	%eax, %eax
	callq	_smp_processor_id
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	___netif_tx_lock
	movq	%r14, %rdi
	callq	_netif_tx_queue_stopped
	testl	%eax, %eax
	je	LBB0_19
## %bb.17:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bnx2_tx_avail
	cmpq	(%r15), %rax
	jle	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	callq	_netif_tx_wake_queue
LBB0_19:
	movq	%r14, %rdi
	callq	___netif_tx_unlock
LBB0_20:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2_MAX_TX_DESC_CNT,8,3       ## @BNX2_MAX_TX_DESC_CNT
	.comm	_mapping,4,2                    ## @mapping
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.no_dead_strip	_bnx2_tx_int
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_tx_int
_bnx2_tx_int:                           ; @bnx2_tx_int
	.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
	mov	x26, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #24]
	sub	x8, x1, x8
	lsr	x8, x8, #3
	mov	w9, #43691
	movk	w9, #43690, lsl #16
	mul	w1, w8, w9
	ldr	w0, [x0, #16]
	bl	_netdev_get_tx_queue
	mov	x20, x0
	mov	x0, x21
	bl	_bnx2_get_hw_tx_cons
	ldr	x25, [x21]
	cmp	x25, x0
	str	x20, [sp]                       ; 8-byte Folded Spill
	b.ne	LBB0_2
; %bb.1:
	mov	w28, #0
	mov	w23, #0
	mov	x20, x25
	b	LBB0_14
LBB0_2:
	mov	x27, x0
	mov	w23, #0
	mov	w28, #0
	mov	w22, #24
Lloh0:
	adrp	x24, _PCI_DMA_TODEVICE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	str	w26, [sp, #12]                  ; 4-byte Folded Spill
	stp	x21, x19, [sp, #16]             ; 16-byte Folded Spill
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w22, #24
Lloh2:
	adrp	x24, _PCI_DMA_TODEVICE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	mov	x20, x25
	cmp	x25, x27
	b.eq	LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	str	x27, [sp, #40]                  ; 8-byte Folded Spill
	stp	w28, w23, [sp, #32]             ; 8-byte Folded Spill
	mov	x0, x25
	bl	_BNX2_TX_RING_IDX
	mov	x20, x0
	ldr	x8, [x21, #16]
	madd	x28, x0, x22, x8
	mov	x26, x28
	ldr	x27, [x26, #8]!
	add	x0, x27, #8
	bl	_prefetch
	ldr	x8, [x28, #16]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x28]
	add	x23, x8, x25
	add	x8, x20, x8
	add	x8, x8, #1
Lloh4:
	adrp	x9, _BNX2_MAX_TX_DESC_CNT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _BNX2_MAX_TX_DESC_CNT@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ge
	bl	_unlikely
	cmp	x0, #0
	mov	w8, #1
	cinc	x8, x8, ne
	add	x8, x23, x8
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	cmp	x8, x9
	b.gt	LBB0_13
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x20, [x19, #8]
Lloh7:
	adrp	x8, _mapping@GOTPAGE
Lloh8:
	ldr	x8, [x8, _mapping@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x28
	bl	_dma_unmap_addr
	mov	x23, x0
	mov	x0, x27
	bl	_skb_headlen
	mov	x2, x0
	ldr	w3, [x24]
	mov	x0, x20
	mov	x1, x23
	bl	_dma_unmap_single
	str	xzr, [x26]
	ldr	x8, [x28]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, #0
	and	x8, x8, #0xffffffff
	lsl	x26, x8, #2
Lloh10:
	adrp	x22, _mapping@GOTPAGE
Lloh11:
	ldr	x22, [x22, _mapping@GOTPAGEOFF]
Lloh12:
	adrp	x19, _PCI_DMA_TODEVICE@GOTPAGE
Lloh13:
	ldr	x19, [x19, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	ldp	x24, x21, [sp, #16]             ; 16-byte Folded Reload
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x25
	bl	_BNX2_NEXT_TX_BD
	mov	x25, x0
	ldr	x20, [x24, #16]
	bl	_BNX2_TX_RING_IDX
	mov	w8, #24
	madd	x0, x0, x8, x20
	ldr	x20, [x21, #8]
	ldr	w1, [x22]
	bl	_dma_unmap_addr
	mov	x23, x0
	mov	x0, x27
	bl	_skb_shinfo
	ldr	x8, [x0]
	add	x0, x8, x28
	bl	_skb_frag_size
	mov	x2, x0
	ldr	w3, [x19]
	mov	x0, x20
	mov	x1, x23
	bl	_dma_unmap_page
	add	x28, x28, #4
	cmp	x26, x28
	b.ne	LBB0_8
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	_BNX2_NEXT_TX_BD
	mov	x25, x0
	ldr	w8, [x27]
	ldr	w28, [sp, #32]                  ; 4-byte Folded Reload
	add	w28, w28, w8
	mov	x0, x27
	bl	_dev_kfree_skb_any
	ldr	w23, [sp, #36]                  ; 4-byte Folded Reload
	add	w23, w23, #1
	ldr	w26, [sp, #12]                  ; 4-byte Folded Reload
	cmp	w23, w26
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x27, [sp, #40]                  ; 8-byte Folded Reload
	cmp	x27, x25
	ldp	x21, x19, [sp, #16]             ; 16-byte Folded Reload
	b.ne	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_bnx2_get_hw_tx_cons
	mov	x25, x27
	mov	x27, x0
	b	LBB0_3
LBB0_12:
	mov	x23, x26
	ldr	x20, [sp, #40]                  ; 8-byte Folded Reload
	ldp	x21, x19, [sp, #16]             ; 16-byte Folded Reload
	b	LBB0_14
LBB0_13:
	ldr	x20, [sp, #40]                  ; 8-byte Folded Reload
	ldp	w28, w23, [sp, #32]             ; 8-byte Folded Reload
LBB0_14:
	ldr	x22, [sp]                       ; 8-byte Folded Reload
	mov	x0, x22
	mov	x1, x23
	mov	x2, x28
	bl	_netdev_tx_completed_queue
	stp	x25, x20, [x21]
	bl	_smp_mb
	mov	x0, x22
	bl	_netif_tx_queue_stopped
	bl	_unlikely
	cbz	x0, LBB0_20
; %bb.15:
	mov	x0, x19
	mov	x1, x21
	bl	_bnx2_tx_avail
	ldr	x8, [x19]
	cmp	x0, x8
	b.le	LBB0_20
; %bb.16:
	bl	_smp_processor_id
	mov	x1, x0
	mov	x0, x22
	bl	___netif_tx_lock
	mov	x0, x22
	bl	_netif_tx_queue_stopped
	cbz	w0, LBB0_19
; %bb.17:
	mov	x0, x19
	mov	x1, x21
	bl	_bnx2_tx_avail
	ldr	x8, [x19]
	cmp	x0, x8
	b.le	LBB0_19
; %bb.18:
	mov	x0, x22
	bl	_netif_tx_wake_queue
LBB0_19:
	mov	x0, x22
	bl	___netif_tx_unlock
LBB0_20:
	mov	x0, x23
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2_MAX_TX_DESC_CNT,8,3       ; @BNX2_MAX_TX_DESC_CNT
	.comm	_mapping,4,2                    ; @mapping
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.no_dead_strip	_bnx2_tx_int
.subsections_via_symbols
