	.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, %r12
	movq	%rsi, %rax
	subq	24(%rdi), %rax
	movl	%edx, %r15d
	shrq	$3, %rax
	imull	$-1431655765, %eax, %esi        ## imm = 0xAAAAAAAB
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	16(%rdi), %edi
	callq	_netdev_get_tx_queue
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	callq	_bnx2_get_hw_tx_cons
	movq	(%r12), %r14
	xorl	%r13d, %r13d
	cmpq	%rax, %r14
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rax
	jmp	LBB0_14
LBB0_2:
	movq	%rax, %rbx
	xorl	%r13d, %r13d
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, -84(%rbp)                ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rax
	cmpq	%rbx, %r14
	je	LBB0_14
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_BNX2_TX_RING_IDX
	movq	%rax, %r15
	movq	16(%r12), %r12
	leaq	(%rax,%rax,2), %r13
	leaq	(%r12,%r13,8), %rbx
	movq	8(%r12,%r13,8), %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_prefetch
	cmpq	$0, 16(%r12,%r13,8)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	leaq	(%r15,%rbx), %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	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jg	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r12,%r13,8), %r15
	addq	$8, %r15
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r13
	movq	_mapping@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pci_unmap_addr
	movq	%rbx, %r12
	movl	%eax, %ebx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_headlen
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_dma_unmap_single
	movq	$0, (%r15)
	movq	(%r12), %rax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %eax
	shlq	$2, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %r12
	.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	-64(%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	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	movq	_mapping@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pci_unmap_addr
	movl	%eax, %r15d
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_shinfo
	movq	(%rax), %rdi
	addq	%r13, %rdi
	callq	_skb_frag_size
	movl	(%r12), %ecx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_dma_unmap_page
	addq	$4, %r13
	cmpq	%r13, -56(%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
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_kfree_skb
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	incl	%r13d
	movl	-84(%rbp), %r15d                ## 4-byte Reload
	cmpl	%r15d, %r13d
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%r14, %rbx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_bnx2_get_hw_tx_cons
	movq	%rbx, %r14
	movq	%rax, %rbx
	jmp	LBB0_13
LBB0_10:
	movl	%r15d, %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-96(%rbp), %r13                 ## 8-byte Reload
LBB0_14:
	movq	%rax, 8(%r12)
	movq	%r14, (%r12)
	xorl	%eax, %eax
	callq	_smp_mb
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	callq	_netif_tx_queue_stopped
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_20
## %bb.15:
	movq	%r15, %rdi
	movq	%r12, %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	%r12, %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	%r13d, %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	x24, [x21]
	cmp	x24, x0
	str	x20, [sp]                       ; 8-byte Folded Spill
	b.ne	LBB0_2
; %bb.1:
	mov	w23, #0
	mov	x8, x24
	b	LBB0_14
LBB0_2:
	mov	x27, x0
	mov	w23, #0
Lloh0:
	adrp	x20, _mapping@GOTPAGE
Lloh1:
	ldr	x20, [x20, _mapping@GOTPAGEOFF]
	mov	w22, #24
Lloh2:
	adrp	x25, _PCI_DMA_TODEVICE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _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
Lloh4:
	adrp	x20, _mapping@GOTPAGE
Lloh5:
	ldr	x20, [x20, _mapping@GOTPAGEOFF]
	mov	w22, #24
Lloh6:
	adrp	x25, _PCI_DMA_TODEVICE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	mov	x8, x24
	cmp	x24, 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
	str	w23, [sp, #36]                  ; 4-byte Folded Spill
	mov	x0, x24
	bl	_BNX2_TX_RING_IDX
	mov	x28, x0
	ldr	x8, [x21, #16]
	madd	x27, x0, x22, x8
	mov	x23, x27
	ldr	x26, [x23, #8]!
	mov	x0, x26
	bl	_prefetch
	ldr	x8, [x27, #16]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27]
	add	x20, x8, x24
	add	x8, x28, x8
	add	x8, x8, #1
Lloh8:
	adrp	x9, _BNX2_MAX_TX_DESC_CNT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BNX2_MAX_TX_DESC_CNT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ge
	bl	_unlikely
	cmp	x0, #0
	mov	w8, #1
	cinc	x8, x8, ne
	add	x8, x20, x8
Lloh11:
	adrp	x20, _mapping@GOTPAGE
Lloh12:
	ldr	x20, [x20, _mapping@GOTPAGEOFF]
	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	x28, [x19, #8]
	ldr	w1, [x20]
	mov	x0, x27
	bl	_pci_unmap_addr
	mov	x20, x0
	mov	x0, x26
	bl	_skb_headlen
	mov	x2, x0
	ldr	w3, [x25]
	mov	x0, x28
	mov	x1, x20
	bl	_dma_unmap_single
	str	xzr, [x23]
	ldr	x8, [x27]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, #0
	and	x8, x8, #0xffffffff
	lsl	x23, x8, #2
Lloh13:
	adrp	x25, _mapping@GOTPAGE
Lloh14:
	ldr	x25, [x25, _mapping@GOTPAGEOFF]
Lloh15:
	adrp	x19, _PCI_DMA_TODEVICE@GOTPAGE
Lloh16:
	ldr	x19, [x19, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x24
	bl	_BNX2_NEXT_TX_BD
	mov	x24, x0
	ldr	x20, [x22, #16]
	bl	_BNX2_TX_RING_IDX
	mov	w8, #24
	madd	x0, x0, x8, x20
	ldr	x20, [x21, #8]
	ldr	w1, [x25]
	bl	_pci_unmap_addr
	mov	x27, x0
	mov	x0, x26
	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, x27
	bl	_dma_unmap_page
	add	x28, x28, #4
	cmp	x23, x28
	b.ne	LBB0_8
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_BNX2_NEXT_TX_BD
	mov	x24, x0
	mov	x0, x26
	bl	_dev_kfree_skb
	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, x24
	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	x24, x27
	mov	x27, x0
	b	LBB0_3
LBB0_12:
	mov	x23, x26
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldp	x21, x19, [sp, #16]             ; 16-byte Folded Reload
	b	LBB0_14
LBB0_13:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w23, [sp, #36]                  ; 4-byte Folded Reload
LBB0_14:
	stp	x24, x8, [x21]
	bl	_smp_mb
	ldr	x20, [sp]                       ; 8-byte Folded Reload
	mov	x0, x20
	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, x20
	bl	___netif_tx_lock
	mov	x0, x20
	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, x20
	bl	_netif_tx_wake_queue
LBB0_19:
	mov	x0, x20
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.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
