	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_start_xmit
_bnx2_start_xmit:                       ## @bnx2_start_xmit
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_skb_get_queue_mapping
	movq	16(%r12), %rcx
	movslq	%eax, %rsi
	leaq	(%rsi,%rsi,4), %rax
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leaq	(%rcx,%rax,8), %r13
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_netdev_get_tx_queue
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_bnx2_tx_avail
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_skb_shinfo
	xorl	%edi, %edi
	cmpq	(%rax), %rbx
	setle	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_netif_tx_stop_queue
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rbx
	jmp	LBB0_21
LBB0_2:
	movq	%r15, %rdi
	callq	_skb_headlen
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	movq	(%r13), %r13
	movq	%r13, %rdi
	callq	_BNX2_TX_RING_IDX
	movq	(%r15), %rsi
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rsi
	jne	LBB0_4
## %bb.3:
	movq	_TX_BD_FLAGS_TCP_UDP_CKSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_4:
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_skb_vlan_tag_present
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_TX_BD_FLAGS_VLAN_TAG@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	orl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_skb_vlan_tag_get
	shll	$16, %eax
	orl	%eax, %ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
LBB0_6:
	movq	%r15, %rdi
	callq	_skb_shinfo
	movl	8(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.7:
	movq	_TX_BD_FLAGS_SW_LSO@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	orl	(%rax), %r13d
	movq	%r15, %rdi
	callq	_tcp_optlen
	movq	%r15, %rbx
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_skb_shinfo
	movq	_SKB_GSO_TCPV6@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 12(%rax)
	je	LBB0_11
## %bb.8:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_skb_transport_offset
	movl	%eax, %r12d
	addl	$-4, %r12d
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	andl	$-4, %r15d
	shll	$6, %r15d
	movq	_TX_BD_FLAGS_SW_FLAGS@GOTPCREL(%rip), %rcx
	orl	%r13d, %r15d
	orl	(%rcx), %r15d
	xorl	%edi, %edi
	subl	(%rax), %r12d
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:
	movq	_TX_BD_FLAGS_TCP6_OFF0_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r15d
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_16
LBB0_10:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_18
LBB0_11:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, %r12
	movq	%rbx, %rdi
	callq	_ip_hdr
	movl	(%rax), %eax
	testl	%r15d, %r15d
	jne	LBB0_13
## %bb.12:
	cmpl	$6, %eax
	jl	LBB0_14
LBB0_13:
	shrl	$2, %r15d
	addl	%eax, %r15d
	shll	$8, %r15d
	addl	$-1280, %r15d                   ## imm = 0xFB00
	orl	%r15d, -44(%rbp)                ## 4-byte Folded Spill
LBB0_14:
	movq	%r12, %r15
	jmp	LBB0_17
LBB0_15:
	sarl	$3, %r12d
	movl	%r12d, %edx
	andl	$3, %edx
	movq	_TX_BD_FLAGS_TCP6_OFF0_SHL@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movl	%r12d, %eax
	andl	$16, %eax
	movq	_TX_BD_FLAGS_TCP6_OFF4_SHL@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%r15d, %edx
	orl	%eax, %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	andl	$12, %r12d
	movq	_TX_BD_TCP6_OFF2_SHL@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r12d
	orl	%r12d, -48(%rbp)                ## 4-byte Folded Spill
LBB0_16:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_17:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
LBB0_18:
	movl	-64(%rbp), %r14d                ## 4-byte Reload
	movq	8(%r12), %rdi
	movl	16(%r15), %esi
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edx
	callq	_dma_map_single
	movq	%rax, %rbx
	movq	8(%r12), %rdi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_22
## %bb.19:
	movq	%r15, %rdi
LBB0_20:
	callq	_dev_kfree_skb_any
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rbx
LBB0_21:
	movl	(%rbx), %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	8(%r12,%r13,8), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rcx,2), %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	leaq	(%rax,%rcx,8), %rdi
	movq	%r15, 8(%rax,%rcx,8)
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_dma_unmap_addr_set
	movq	32(%r12,%r13,8), %rcx
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	shlq	$4, %r13
	movl	%ebx, 4(%rcx,%r13)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	shll	$16, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	orl	%eax, %r14d
	movl	%r14d, 8(%rcx,%r13)
	movq	_TX_BD_FLAGS_START@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, 12(%rcx,%r13)
	movq	%r15, %rdi
	callq	_skb_shinfo
	movq	(%rax), %rbx
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movq	-136(%rbp), %r14                ## 8-byte Reload
	movl	%ebx, (%r14,%r12,8)
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_skb_is_gso
	movl	%eax, 16(%r14,%r12,8)
	testl	%ebx, %ebx
	jle	LBB0_27
## %bb.23:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rax,%rcx,8), %r14
	addq	$8, %r14
	movl	%ebx, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_skb_shinfo
	leaq	(,%r13,4), %rbx
	addq	16(%rax), %rbx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_BNX2_NEXT_TX_BD
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_BNX2_TX_RING_IDX
	movq	%rax, %r12
	movq	24(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movl	%eax, %r14d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	8(%r15), %rdi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	callq	_skb_frag_dma_map
	movq	%rax, %rbx
	movq	8(%r15), %rdi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_31
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	leaq	(%r12,%r12,2), %rdi
	shlq	$3, %rdi
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	addq	(%r15), %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_dma_unmap_addr_set
	shlq	$4, %r12
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%ebx, 4(%rcx,%r12)
	orl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	movl	%r14d, 8(%rcx,%r12)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%rcx,%r12)
	incq	%r13
	cmpq	-112(%rbp), %r13                ## 8-byte Folded Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%r15, %r14
	jne	LBB0_24
## %bb.26:
	addq	%r12, %rcx
	jmp	LBB0_28
LBB0_27:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	%r13, %rcx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_28:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	_TX_BD_FLAGS_END@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rcx)
	xorl	%eax, %eax
	callq	_wmb
	movq	8(%rbx), %rsi
	movq	-128(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	callq	_netdev_tx_sent_queue
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_BNX2_NEXT_TX_BD
	movq	%rax, %r12
	movl	8(%rbx), %eax
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	addl	%eax, 16(%r13,%rbx,8)
	movl	24(%r13,%rbx,8), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_BNX2_WR16
	movl	16(%r13,%rbx,8), %edx
	movl	20(%r13,%rbx,8), %esi
	movq	%r15, %rdi
	callq	_BNX2_WR
	movq	%r15, %r13
	movq	-120(%rbp), %r15                ## 8-byte Reload
	movq	%r12, (%r15)
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_bnx2_tx_avail
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setle	%dil
	callq	_unlikely
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	je	LBB0_21
## %bb.29:
	movq	%r14, %rdi
	callq	_netif_tx_stop_queue
	xorl	%eax, %eax
	callq	_smp_mb
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_bnx2_tx_avail
	cmpq	(%r13), %rax
	jle	LBB0_21
## %bb.30:
	movq	%r14, %rdi
	callq	_netif_tx_wake_queue
	jmp	LBB0_21
LBB0_31:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %r15
	movq	%r15, %rdi
	callq	_BNX2_TX_RING_IDX
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	leaq	(%rax,%rax,2), %rax
	leaq	(%rcx,%rax,8), %rdi
	movq	$0, 8(%rcx,%rax,8)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r14
	movq	%rbx, %rsi
	callq	_dma_unmap_addr
	movl	%eax, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_headlen
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_dma_unmap_single
	testl	%r13d, %r13d
	je	LBB0_34
## %bb.32:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_BNX2_NEXT_TX_BD
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_BNX2_TX_RING_IDX
	leaq	(%rax,%rax,2), %rdi
	shlq	$3, %rdi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rdi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_dma_unmap_addr
	movl	%eax, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_shinfo
	movq	16(%rax), %rdi
	addq	%r14, %rdi
	callq	_skb_frag_size
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_dma_unmap_page
	addq	$4, %r14
	decq	%r13
	jne	LBB0_33
LBB0_34:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BUG! Tx ring full when queue awake!\n"

	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_TX_BD_FLAGS_TCP_UDP_CKSUM,4,2  ## @TX_BD_FLAGS_TCP_UDP_CKSUM
	.comm	_TX_BD_FLAGS_VLAN_TAG,4,2       ## @TX_BD_FLAGS_VLAN_TAG
	.comm	_TX_BD_FLAGS_SW_LSO,4,2         ## @TX_BD_FLAGS_SW_LSO
	.comm	_SKB_GSO_TCPV6,4,2              ## @SKB_GSO_TCPV6
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_TX_BD_FLAGS_SW_FLAGS,4,2       ## @TX_BD_FLAGS_SW_FLAGS
	.comm	_TX_BD_FLAGS_TCP6_OFF0_MSK,4,2  ## @TX_BD_FLAGS_TCP6_OFF0_MSK
	.comm	_TX_BD_FLAGS_TCP6_OFF0_SHL,4,2  ## @TX_BD_FLAGS_TCP6_OFF0_SHL
	.comm	_TX_BD_FLAGS_TCP6_OFF4_SHL,4,2  ## @TX_BD_FLAGS_TCP6_OFF4_SHL
	.comm	_TX_BD_TCP6_OFF2_SHL,4,2        ## @TX_BD_TCP6_OFF2_SHL
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_TX_BD_FLAGS_START,4,2          ## @TX_BD_FLAGS_START
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_TX_BD_FLAGS_END,4,2            ## @TX_BD_FLAGS_END
	.comm	_MAX_SKB_FRAGS,8,3              ## @MAX_SKB_FRAGS
	.no_dead_strip	_bnx2_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_start_xmit
_bnx2_start_xmit:                       ; @bnx2_start_xmit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x23, x1
	mov	x20, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x20
	bl	_skb_get_queue_mapping
	mov	x24, x0
	ldr	x21, [x19, #16]
	mov	w8, #40
	smaddl	x22, w0, w8, x21
	mov	x0, x23
	mov	x1, x24
	bl	_netdev_get_tx_queue
	mov	x28, x0
	mov	x0, x19
	mov	x1, x22
	bl	_bnx2_tx_avail
	mov	x25, x0
	mov	x0, x20
	bl	_skb_shinfo
	ldr	x8, [x0]
	cmp	x25, x8
	cset	w0, le
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x28
	bl	_netif_tx_stop_queue
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_netdev_err
Lloh2:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
	b	LBB0_15
LBB0_2:
	str	x21, [sp, #32]                  ; 8-byte Folded Spill
	mov	x0, x20
	bl	_skb_headlen
	mov	x21, x0
	str	x22, [sp, #24]                  ; 8-byte Folded Spill
	ldr	x23, [x22]
	mov	x0, x23
	bl	_BNX2_TX_RING_IDX
	str	x0, [sp, #56]                   ; 8-byte Folded Spill
	ldr	x8, [x20]
Lloh4:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
Lloh7:
	adrp	x10, _TX_BD_FLAGS_TCP_UDP_CKSUM@GOTPAGE
Lloh8:
	ldr	x10, [x10, _TX_BD_FLAGS_TCP_UDP_CKSUM@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w25, w10, wzr, eq
	mov	x0, x20
	bl	_skb_vlan_tag_present
	cbz	x0, LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _TX_BD_FLAGS_VLAN_TAG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TX_BD_FLAGS_VLAN_TAG@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_skb_vlan_tag_get
	orr	w8, w22, w25
	orr	w25, w8, w0, lsl #16
LBB0_4:
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w26, [x0, #8]
	cbz	w26, LBB0_12
; %bb.5:
Lloh13:
	adrp	x8, _TX_BD_FLAGS_SW_LSO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TX_BD_FLAGS_SW_LSO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w25, w8, w25
	mov	x0, x20
	bl	_tcp_optlen
	mov	x27, x0
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w8, [x0, #12]
Lloh16:
	adrp	x9, _SKB_GSO_TCPV6@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SKB_GSO_TCPV6@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	mov	x0, x20
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	bl	_skb_transport_offset
	sub	w8, w0, #4
Lloh19:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	lsl	w10, w27, #6
Lloh22:
	adrp	x11, _TX_BD_FLAGS_SW_FLAGS@GOTPAGE
Lloh23:
	ldr	x11, [x11, _TX_BD_FLAGS_SW_FLAGS@GOTPAGEOFF]
	and	w10, w10, #0xffffff00
Lloh24:
	ldr	w11, [x11]
	orr	w10, w10, w25
	orr	w22, w10, w11
	subs	w25, w8, w9
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_11
; %bb.7:
Lloh25:
	adrp	x8, _TX_BD_FLAGS_TCP6_OFF0_MSK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TX_BD_FLAGS_TCP6_OFF0_MSK@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	bic	w25, w22, w8
	b	LBB0_12
LBB0_8:
	bl	_ip_hdr
	ldr	w8, [x0]
	cbnz	w27, LBB0_10
; %bb.9:
	cmp	w8, #6
	b.lt	LBB0_12
LBB0_10:
	add	w8, w8, w27, lsr #2
	lsl	w8, w8, #8
	sub	w8, w8, #1280
	orr	w25, w8, w25
	b	LBB0_12
LBB0_11:
	asr	w8, w25, #3
	and	w9, w8, #0x3
Lloh28:
	adrp	x10, _TX_BD_FLAGS_TCP6_OFF0_SHL@GOTPAGE
Lloh29:
	ldr	x10, [x10, _TX_BD_FLAGS_TCP6_OFF0_SHL@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	and	w10, w8, #0x10
Lloh31:
	adrp	x11, _TX_BD_FLAGS_TCP6_OFF4_SHL@GOTPAGE
Lloh32:
	ldr	x11, [x11, _TX_BD_FLAGS_TCP6_OFF4_SHL@GOTPAGEOFF]
Lloh33:
	ldr	w11, [x11]
	lsl	w10, w10, w11
	orr	w9, w9, w22
	orr	w25, w9, w10
	and	w8, w8, #0xc
Lloh34:
	adrp	x9, _TX_BD_TCP6_OFF2_SHL@GOTPAGE
Lloh35:
	ldr	x9, [x9, _TX_BD_TCP6_OFF2_SHL@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	orr	w26, w8, w26
LBB0_12:
	ldr	x0, [x19, #8]
	ldr	w1, [x20, #16]
Lloh37:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh39:
	ldr	w3, [x8]
	mov	x2, x21
	bl	_dma_map_single
	mov	x27, x0
	ldr	x0, [x19, #8]
	mov	x1, x27
	bl	_dma_mapping_error
	cbz	x0, LBB0_16
LBB0_13:
	mov	x0, x20
	bl	_dev_kfree_skb_any
LBB0_14:
Lloh40:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_16:
	sxtw	x10, w24
	mov	w8, #40
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	stp	x10, x28, [sp, #8]              ; 16-byte Folded Spill
	madd	x28, x10, x8, x9
	mov	x22, x28
	ldr	x8, [x22, #8]!
	mov	w9, #24
	str	w21, [sp, #40]                  ; 4-byte Folded Spill
	ldr	x21, [sp, #56]                  ; 8-byte Folded Reload
	madd	x24, x21, x9, x8
	str	x20, [x24, #8]
	mov	x0, x24
	mov	x1, x27
	mov	x2, x27
	bl	_dma_unmap_addr_set
	ldr	x8, [x28, #32]!
	mov	x9, x25
	add	x25, x8, x21, lsl #4
	lsl	w8, w26, #16
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
	ldr	w10, [sp, #40]                  ; 4-byte Folded Reload
	orr	w8, w8, w10
	stp	w27, w8, [x25, #4]
Lloh42:
	adrp	x8, _TX_BD_FLAGS_START@GOTPAGE
Lloh43:
	ldr	x8, [x8, _TX_BD_FLAGS_START@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	str	w9, [sp, #56]                   ; 4-byte Folded Spill
	orr	w8, w8, w9
	str	w8, [x25, #12]
	mov	x0, x20
	bl	_skb_shinfo
	ldr	x21, [x0]
	str	w21, [x24]
	mov	x0, x20
	bl	_skb_is_gso
	str	w0, [x24, #16]
	cmp	w21, #1
	b.lt	LBB0_20
; %bb.17:
	str	x22, [sp, #40]                  ; 8-byte Folded Spill
	mov	x27, #0
	and	x21, x21, #0xffffffff
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_skb_shinfo
	ldr	x8, [x0, #16]
	add	x24, x8, x27, lsl #2
	mov	x0, x23
	bl	_BNX2_NEXT_TX_BD
	mov	x23, x0
	bl	_BNX2_TX_RING_IDX
	mov	x25, x0
	ldr	x22, [x28]
	mov	x0, x24
	bl	_skb_frag_size
	mov	x26, x0
	ldr	x0, [x19, #8]
Lloh45:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh47:
	ldr	w4, [x8]
	mov	x1, x24
	mov	w2, #0
	mov	x3, x26
	bl	_skb_frag_dma_map
	mov	x24, x0
	ldr	x0, [x19, #8]
	mov	x1, x24
	bl	_dma_mapping_error
	cbnz	x0, LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	mov	w9, #24
	madd	x0, x25, x9, x8
	mov	x1, x24
	mov	x2, x24
	bl	_dma_unmap_addr_set
	add	x25, x22, x25, lsl #4
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	orr	w8, w26, w8
	stp	w24, w8, [x25, #4]
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	str	w8, [x25, #12]
	add	x27, x27, #1
	cmp	x27, x21
	b.ne	LBB0_18
LBB0_20:
Lloh48:
	adrp	x8, _TX_BD_FLAGS_END@GOTPAGE
Lloh49:
	ldr	x8, [x8, _TX_BD_FLAGS_END@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	ldr	w9, [x25, #12]
	orr	w8, w9, w8
	str	w8, [x25, #12]
	bl	_wmb
	ldr	x1, [x20, #8]
	ldr	x21, [sp, #16]                  ; 8-byte Folded Reload
	mov	x0, x21
	bl	_netdev_tx_sent_queue
	mov	x0, x23
	bl	_BNX2_NEXT_TX_BD
	mov	x23, x0
	ldr	w8, [x20, #8]
	mov	w9, #40
	ldr	x10, [sp, #32]                  ; 8-byte Folded Reload
	ldr	x11, [sp, #8]                   ; 8-byte Folded Reload
	madd	x20, x11, x9, x10
	ldr	w9, [x20, #16]
	add	w8, w9, w8
	str	w8, [x20, #16]
	ldr	w1, [x20, #24]
	mov	x0, x19
	mov	x2, x23
	bl	_BNX2_WR16
	ldp	w2, w1, [x20, #16]
	mov	x0, x19
	bl	_BNX2_WR
	ldr	x20, [sp, #24]                  ; 8-byte Folded Reload
	str	x23, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2_tx_avail
Lloh51:
	adrp	x8, _MAX_SKB_FRAGS@GOTPAGE
Lloh52:
	ldr	x8, [x8, _MAX_SKB_FRAGS@GOTPAGEOFF]
Lloh53:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, le
	bl	_unlikely
	cbz	x0, LBB0_14
; %bb.21:
	mov	x0, x21
	bl	_netif_tx_stop_queue
	bl	_smp_mb
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2_tx_avail
	ldr	x8, [x19]
	cmp	x0, x8
	b.le	LBB0_14
; %bb.22:
	mov	x0, x21
	bl	_netif_tx_wake_queue
	b	LBB0_14
LBB0_23:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x21, [x8]
	mov	x0, x21
	bl	_BNX2_TX_RING_IDX
	ldr	x26, [sp, #40]                  ; 8-byte Folded Reload
	ldr	x8, [x26]
	mov	w9, #24
	madd	x0, x0, x9, x8
	str	xzr, [x0, #8]
	ldr	x22, [x19, #8]
	mov	x1, x24
	bl	_dma_unmap_addr
	mov	x23, x0
	mov	x0, x20
	bl	_skb_headlen
	mov	x2, x0
Lloh54:
	adrp	x28, _PCI_DMA_TODEVICE@GOTPAGE
Lloh55:
	ldr	x28, [x28, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh56:
	ldr	w3, [x28]
	mov	x0, x22
	mov	x1, x23
	bl	_dma_unmap_single
	cbz	w27, LBB0_13
; %bb.24:
	mov	x25, #0
	mov	w28, #24
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_BNX2_NEXT_TX_BD
	mov	x21, x0
	bl	_BNX2_TX_RING_IDX
	ldr	x8, [x26]
	madd	x0, x0, x28, x8
	ldr	x22, [x19, #8]
	mov	x1, x24
	bl	_dma_unmap_addr
	mov	x23, x0
	mov	x0, x20
	bl	_skb_shinfo
	ldr	x8, [x0, #16]
	add	x0, x8, x25
	bl	_skb_frag_size
	mov	x2, x0
Lloh57:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh58:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh59:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x23
	bl	_dma_unmap_page
	add	x25, x25, #4
	subs	x27, x27, #1
	b.ne	LBB0_25
	b	LBB0_13
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BUG! Tx ring full when queue awake!\n"

	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_TX_BD_FLAGS_TCP_UDP_CKSUM,4,2  ; @TX_BD_FLAGS_TCP_UDP_CKSUM
	.comm	_TX_BD_FLAGS_VLAN_TAG,4,2       ; @TX_BD_FLAGS_VLAN_TAG
	.comm	_TX_BD_FLAGS_SW_LSO,4,2         ; @TX_BD_FLAGS_SW_LSO
	.comm	_SKB_GSO_TCPV6,4,2              ; @SKB_GSO_TCPV6
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_TX_BD_FLAGS_SW_FLAGS,4,2       ; @TX_BD_FLAGS_SW_FLAGS
	.comm	_TX_BD_FLAGS_TCP6_OFF0_MSK,4,2  ; @TX_BD_FLAGS_TCP6_OFF0_MSK
	.comm	_TX_BD_FLAGS_TCP6_OFF0_SHL,4,2  ; @TX_BD_FLAGS_TCP6_OFF0_SHL
	.comm	_TX_BD_FLAGS_TCP6_OFF4_SHL,4,2  ; @TX_BD_FLAGS_TCP6_OFF4_SHL
	.comm	_TX_BD_TCP6_OFF2_SHL,4,2        ; @TX_BD_TCP6_OFF2_SHL
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_TX_BD_FLAGS_START,4,2          ; @TX_BD_FLAGS_START
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_TX_BD_FLAGS_END,4,2            ; @TX_BD_FLAGS_END
	.comm	_MAX_SKB_FRAGS,8,3              ; @MAX_SKB_FRAGS
	.no_dead_strip	_bnx2_start_xmit
.subsections_via_symbols
