	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnad_txq_wi_prepare
_bnad_txq_wi_prepare:                   ## @bnad_txq_wi_prepare
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rdx, %rdi
	callq	_skb_vlan_tag_present
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_skb_vlan_tag_get
	movq	%rax, %rbx
	movq	_BNA_TXQ_WI_CF_INS_PRIO@GOTPCREL(%rip), %rax
	movq	_BNA_TXQ_WI_CF_INS_VLAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	jmp	LBB0_3
LBB0_2:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
LBB0_3:
	movq	_BNAD_RF_CEE_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r12), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r14), %eax
	andl	$7, %eax
	movq	_VLAN_PRIO_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	andl	$8191, %ebx                     ## imm = 0x1FFF
	orl	%eax, %ebx
	movq	_BNA_TXQ_WI_CF_INS_PRIO@GOTPCREL(%rip), %rax
	movq	_BNA_TXQ_WI_CF_INS_VLAN@GOTPCREL(%rip), %rcx
	orl	(%rax), %r15d
	orl	(%rcx), %r15d
LBB0_5:
	movl	%ebx, %edi
	callq	_htons
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%rax, 40(%r14)
	movq	%r13, %rdi
	callq	_skb_is_gso
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%r13, %rdi
	callq	_skb_shinfo
	movslq	(%rax), %r14
	movq	(%r12), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r14d
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	_tx_skb_mss_too_long@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_8:
	movq	_BNA_TXQ_WI_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%rax, 32(%r14)
	movq	$0, 24(%r14)
	movq	(%r12), %rax
	movslq	(%rax), %rax
	movq	_VLAN_ETH_HLEN@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	xorl	%edi, %edi
	cmpq	%rax, (%r13)
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	_tx_skb_non_tso_too_long@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_10:
	movq	%r13, %rdi
	callq	_skb_transport_offset
	movq	%rax, %rbx
	addq	%r14, %rbx
	movq	%r13, %rdi
	callq	_tcp_hdrlen
	cltq
	addq	%rbx, %rax
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	setge	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	movq	_BNA_TXQ_WI_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%rax, 32(%r14)
	movq	$0, 24(%r14)
	movq	_tx_skb_tso_too_short@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_BNAD_UPDATE_CTR
	jmp	LBB0_16
LBB0_12:
	movq	8(%r13), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.13:
	movq	%r13, %rdi
	callq	_vlan_get_protocol
	movq	%rax, %rbx
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %rbx
	je	LBB0_25
## %bb.14:
	xorl	%eax, %eax
	jmp	LBB0_26
LBB0_15:
	movq	_BNA_TXQ_WI_SEND_LSO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 32(%rcx)
	movl	%r14d, %edi
	movq	%rcx, %r14
	callq	_htons
	movq	%rax, 24(%r14)
LBB0_16:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_bnad_tso_prepare
	testq	%rax, %rax
	je	LBB0_21
## %bb.17:
	movq	_tx_skb_tso_prepare@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_BNAD_UPDATE_CTR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_19:
	subl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	_BNA_TXQ_WI_CF_IP_CKSUM@GOTPCREL(%rip), %rax
	movq	_BNA_TXQ_WI_CF_TCP_CKSUM@GOTPCREL(%rip), %rcx
	orl	(%rax), %r15d
	orl	(%rcx), %r15d
	movq	%r13, %rdi
	callq	_tcp_hdrlen
	movl	%eax, %ebx
	sarl	$2, %ebx
	movq	%r13, %rdi
	callq	_skb_transport_offset
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_BNA_TXQ_WI_L4_HDR_N_OFFSET
	movl	%eax, %edi
	callq	_htons
	jmp	LBB0_23
LBB0_22:
	xorl	%eax, %eax
LBB0_23:
	movq	%rax, 16(%r14)
LBB0_24:
	movl	%r15d, %edi
	callq	_htons
	movq	%rax, 8(%r14)
	movq	(%r13), %rdi
	callq	_htonl
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_25:
	movq	%r13, %rdi
	callq	_ip_hdr
	movq	(%rax), %rax
LBB0_26:
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_29
## %bb.27:
	movq	_BNA_TXQ_WI_CF_TCP_CKSUM@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	%r13, %rdi
	callq	_skb_transport_offset
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	%rax, %rsi
	callq	_BNA_TXQ_WI_L4_HDR_N_OFFSET
	movl	%eax, %edi
	callq	_htons
	movq	%rax, 16(%r14)
	movq	_tcpcsum_offload@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_BNAD_UPDATE_CTR
	movq	%r13, %rdi
	callq	_skb_headlen
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_skb_transport_offset
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_tcp_hdrlen
	cltq
	addq	%r14, %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	xorl	%edi, %edi
	cmpq	%rax, -56(%rbp)                 ## 8-byte Folded Reload
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_24
## %bb.28:
	movq	_tx_skb_tcp_hdr@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_29:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_33
## %bb.30:
	movq	_BNA_TXQ_WI_CF_UDP_CKSUM@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	%r13, %rdi
	callq	_skb_transport_offset
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	%rax, %rsi
	callq	_BNA_TXQ_WI_L4_HDR_N_OFFSET
	movl	%eax, %edi
	callq	_htons
	movq	%rax, 16(%r14)
	movq	_udpcsum_offload@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_BNAD_UPDATE_CTR
	movq	%r13, %rdi
	callq	_skb_headlen
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_skb_transport_offset
	addq	$4, %rax
	xorl	%edi, %edi
	cmpq	%rax, %r14
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	setb	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_24
## %bb.31:
	movq	_tx_skb_udp_hdr@GOTPCREL(%rip), %rax
LBB0_32:
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_BNAD_UPDATE_CTR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_33:
	movq	_tx_skb_csum_err@GOTPCREL(%rip), %rax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_BNA_TXQ_WI_CF_INS_PRIO,4,2     ## @BNA_TXQ_WI_CF_INS_PRIO
	.comm	_BNA_TXQ_WI_CF_INS_VLAN,4,2     ## @BNA_TXQ_WI_CF_INS_VLAN
	.comm	_BNAD_RF_CEE_RUNNING,4,2        ## @BNAD_RF_CEE_RUNNING
	.comm	_VLAN_PRIO_SHIFT,4,2            ## @VLAN_PRIO_SHIFT
	.comm	_tx_skb_mss_too_long,4,2        ## @tx_skb_mss_too_long
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BNA_TXQ_WI_SEND,4,2            ## @BNA_TXQ_WI_SEND
	.comm	_tx_skb_tso_too_short,4,2       ## @tx_skb_tso_too_short
	.comm	_BNA_TXQ_WI_SEND_LSO,4,2        ## @BNA_TXQ_WI_SEND_LSO
	.comm	_tx_skb_tso_prepare,4,2         ## @tx_skb_tso_prepare
	.comm	_BNA_TXQ_WI_CF_IP_CKSUM,4,2     ## @BNA_TXQ_WI_CF_IP_CKSUM
	.comm	_BNA_TXQ_WI_CF_TCP_CKSUM,4,2    ## @BNA_TXQ_WI_CF_TCP_CKSUM
	.comm	_VLAN_ETH_HLEN,8,3              ## @VLAN_ETH_HLEN
	.comm	_tx_skb_non_tso_too_long,4,2    ## @tx_skb_non_tso_too_long
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_IPPROTO_TCP,8,3                ## @IPPROTO_TCP
	.comm	_tcpcsum_offload,4,2            ## @tcpcsum_offload
	.comm	_tx_skb_tcp_hdr,4,2             ## @tx_skb_tcp_hdr
	.comm	_IPPROTO_UDP,8,3                ## @IPPROTO_UDP
	.comm	_BNA_TXQ_WI_CF_UDP_CKSUM,4,2    ## @BNA_TXQ_WI_CF_UDP_CKSUM
	.comm	_udpcsum_offload,4,2            ## @udpcsum_offload
	.comm	_tx_skb_udp_hdr,4,2             ## @tx_skb_udp_hdr
	.comm	_tx_skb_csum_err,4,2            ## @tx_skb_csum_err
	.comm	_ETH_P_IPV6,4,2                 ## @ETH_P_IPV6
	.no_dead_strip	_bnad_txq_wi_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnad_txq_wi_prepare
_bnad_txq_wi_prepare:                   ; @bnad_txq_wi_prepare
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x24, x1
	mov	x22, x0
	mov	x0, x2
	bl	_skb_vlan_tag_present
Lloh0:
	adrp	x25, _BNA_TXQ_WI_CF_INS_PRIO@GOTPAGE
Lloh1:
	ldr	x25, [x25, _BNA_TXQ_WI_CF_INS_PRIO@GOTPAGEOFF]
Lloh2:
	adrp	x26, _BNA_TXQ_WI_CF_INS_VLAN@GOTPAGE
Lloh3:
	ldr	x26, [x26, _BNA_TXQ_WI_CF_INS_VLAN@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_skb_vlan_tag_get
	mov	x23, x0
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w21, w9, w8
	b	LBB0_3
LBB0_2:
	mov	w21, #0
	mov	w23, #0
LBB0_3:
Lloh4:
	adrp	x8, _BNAD_RF_CEE_RUNNING@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BNAD_RF_CEE_RUNNING@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	add	x1, x22, #8
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w8, [x24]
	and	w8, w8, #0x7
Lloh7:
	adrp	x9, _VLAN_PRIO_SHIFT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _VLAN_PRIO_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	and	w9, w23, #0x1fff
	orr	w23, w8, w9
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w8, w8, w21
	orr	w21, w8, w9
LBB0_5:
	mov	x0, x23
	bl	_htons
	str	x0, [x19, #40]
	mov	x0, x20
	bl	_skb_is_gso
	cbz	x0, LBB0_8
; %bb.6:
	mov	x0, x20
	bl	_skb_shinfo
	ldrsw	x23, [x0]
	ldr	x8, [x22]
	ldr	w8, [x8]
	cmp	w23, w8
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.7:
Lloh10:
	adrp	x8, _tx_skb_mss_too_long@GOTPAGE
Lloh11:
	ldr	x8, [x8, _tx_skb_mss_too_long@GOTPAGEOFF]
	b	LBB0_18
LBB0_8:
Lloh12:
	adrp	x8, _BNA_TXQ_WI_SEND@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BNA_TXQ_WI_SEND@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_htons
	stp	xzr, x0, [x19, #24]
	ldr	x8, [x20]
	ldr	x9, [x22]
	ldrsw	x9, [x9]
Lloh15:
	adrp	x10, _VLAN_ETH_HLEN@GOTPAGE
Lloh16:
	ldr	x10, [x10, _VLAN_ETH_HLEN@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	add	x9, x10, x9
	cmp	x8, x9
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_12
; %bb.9:
Lloh18:
	adrp	x8, _tx_skb_non_tso_too_long@GOTPAGE
Lloh19:
	ldr	x8, [x8, _tx_skb_non_tso_too_long@GOTPAGEOFF]
	b	LBB0_18
LBB0_10:
	mov	x0, x20
	bl	_skb_transport_offset
	add	x24, x0, x23
	mov	x0, x20
	bl	_tcp_hdrlen
	add	x8, x24, w0, sxtw
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w0, ge
	bl	_unlikely
	cbz	x0, LBB0_15
; %bb.11:
Lloh20:
	adrp	x8, _BNA_TXQ_WI_SEND@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BNA_TXQ_WI_SEND@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_htons
	stp	xzr, x0, [x19, #24]
Lloh23:
	adrp	x8, _tx_skb_tso_too_short@GOTPAGE
Lloh24:
	ldr	x8, [x8, _tx_skb_tso_too_short@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_BNAD_UPDATE_CTR
	b	LBB0_16
LBB0_12:
	ldr	x8, [x20, #8]
Lloh26:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh27:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.13:
	mov	x0, x20
	bl	_vlan_get_protocol
	mov	x23, x0
Lloh29:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_htons
	cmp	x23, x0
	b.eq	LBB0_24
; %bb.14:
	mov	x8, #0
	b	LBB0_25
LBB0_15:
Lloh32:
	adrp	x8, _BNA_TXQ_WI_SEND_LSO@GOTPAGE
Lloh33:
	ldr	x8, [x8, _BNA_TXQ_WI_SEND_LSO@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_htons
	str	x0, [x19, #32]
	mov	x0, x23
	bl	_htons
	str	x0, [x19, #24]
LBB0_16:
	mov	x0, x22
	mov	x1, x20
	bl	_bnad_tso_prepare
	cbz	x0, LBB0_20
; %bb.17:
Lloh35:
	adrp	x8, _tx_skb_tso_prepare@GOTPAGE
Lloh36:
	ldr	x8, [x8, _tx_skb_tso_prepare@GOTPAGEOFF]
LBB0_18:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_BNAD_UPDATE_CTR
Lloh37:
	adrp	x8, _EINVAL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_19:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_20:
Lloh40:
	adrp	x8, _BNA_TXQ_WI_CF_IP_CKSUM@GOTPAGE
Lloh41:
	ldr	x8, [x8, _BNA_TXQ_WI_CF_IP_CKSUM@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	adrp	x9, _BNA_TXQ_WI_CF_TCP_CKSUM@GOTPAGE
Lloh44:
	ldr	x9, [x9, _BNA_TXQ_WI_CF_TCP_CKSUM@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w8, w8, w21
	orr	w21, w8, w9
	mov	x0, x20
	bl	_tcp_hdrlen
	asr	w22, w0, #2
	mov	x0, x20
	bl	_skb_transport_offset
	mov	x1, x0
	mov	x0, x22
	bl	_BNA_TXQ_WI_L4_HDR_N_OFFSET
	bl	_htons
	b	LBB0_22
LBB0_21:
	mov	x0, #0
LBB0_22:
	str	x0, [x19, #16]
LBB0_23:
	mov	x0, x21
	bl	_htons
	str	x0, [x19, #8]
	ldr	x0, [x20]
	bl	_htonl
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_19
LBB0_24:
	mov	x0, x20
	bl	_ip_hdr
	ldr	x8, [x0]
LBB0_25:
Lloh46:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh47:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_28
; %bb.26:
Lloh49:
	adrp	x8, _BNA_TXQ_WI_CF_TCP_CKSUM@GOTPAGE
Lloh50:
	ldr	x8, [x8, _BNA_TXQ_WI_CF_TCP_CKSUM@GOTPAGEOFF]
Lloh51:
	ldr	w25, [x8]
	mov	x0, x20
	bl	_skb_transport_offset
	mov	x1, x0
	mov	w0, #0
	bl	_BNA_TXQ_WI_L4_HDR_N_OFFSET
	bl	_htons
	str	x0, [x19, #16]
Lloh52:
	adrp	x8, _tcpcsum_offload@GOTPAGE
Lloh53:
	ldr	x8, [x8, _tcpcsum_offload@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_BNAD_UPDATE_CTR
	mov	x0, x20
	bl	_skb_headlen
	mov	x23, x0
	mov	x0, x20
	bl	_skb_transport_offset
	mov	x24, x0
	mov	x0, x20
	bl	_tcp_hdrlen
	add	x8, x24, w0, sxtw
	cmp	x23, x8
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_32
; %bb.27:
Lloh55:
	adrp	x8, _tx_skb_tcp_hdr@GOTPAGE
Lloh56:
	ldr	x8, [x8, _tx_skb_tcp_hdr@GOTPAGEOFF]
	b	LBB0_18
LBB0_28:
Lloh57:
	adrp	x9, _IPPROTO_UDP@GOTPAGE
Lloh58:
	ldr	x9, [x9, _IPPROTO_UDP@GOTPAGEOFF]
Lloh59:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_31
; %bb.29:
Lloh60:
	adrp	x8, _BNA_TXQ_WI_CF_UDP_CKSUM@GOTPAGE
Lloh61:
	ldr	x8, [x8, _BNA_TXQ_WI_CF_UDP_CKSUM@GOTPAGEOFF]
Lloh62:
	ldr	w24, [x8]
	mov	x0, x20
	bl	_skb_transport_offset
	mov	x1, x0
	mov	w0, #0
	bl	_BNA_TXQ_WI_L4_HDR_N_OFFSET
	bl	_htons
	str	x0, [x19, #16]
Lloh63:
	adrp	x8, _udpcsum_offload@GOTPAGE
Lloh64:
	ldr	x8, [x8, _udpcsum_offload@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_BNAD_UPDATE_CTR
	mov	x0, x20
	bl	_skb_headlen
	mov	x23, x0
	mov	x0, x20
	bl	_skb_transport_offset
	add	x8, x0, #4
	cmp	x23, x8
	cset	w0, lo
	bl	_unlikely
	cbz	x0, LBB0_33
; %bb.30:
Lloh66:
	adrp	x8, _tx_skb_udp_hdr@GOTPAGE
Lloh67:
	ldr	x8, [x8, _tx_skb_udp_hdr@GOTPAGEOFF]
	b	LBB0_18
LBB0_31:
Lloh68:
	adrp	x8, _tx_skb_csum_err@GOTPAGE
Lloh69:
	ldr	x8, [x8, _tx_skb_csum_err@GOTPAGEOFF]
	b	LBB0_18
LBB0_32:
	orr	w21, w25, w21
	b	LBB0_23
LBB0_33:
	orr	w21, w24, w21
	b	LBB0_23
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.comm	_BNA_TXQ_WI_CF_INS_PRIO,4,2     ; @BNA_TXQ_WI_CF_INS_PRIO
	.comm	_BNA_TXQ_WI_CF_INS_VLAN,4,2     ; @BNA_TXQ_WI_CF_INS_VLAN
	.comm	_BNAD_RF_CEE_RUNNING,4,2        ; @BNAD_RF_CEE_RUNNING
	.comm	_VLAN_PRIO_SHIFT,4,2            ; @VLAN_PRIO_SHIFT
	.comm	_tx_skb_mss_too_long,4,2        ; @tx_skb_mss_too_long
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BNA_TXQ_WI_SEND,4,2            ; @BNA_TXQ_WI_SEND
	.comm	_tx_skb_tso_too_short,4,2       ; @tx_skb_tso_too_short
	.comm	_BNA_TXQ_WI_SEND_LSO,4,2        ; @BNA_TXQ_WI_SEND_LSO
	.comm	_tx_skb_tso_prepare,4,2         ; @tx_skb_tso_prepare
	.comm	_BNA_TXQ_WI_CF_IP_CKSUM,4,2     ; @BNA_TXQ_WI_CF_IP_CKSUM
	.comm	_BNA_TXQ_WI_CF_TCP_CKSUM,4,2    ; @BNA_TXQ_WI_CF_TCP_CKSUM
	.comm	_VLAN_ETH_HLEN,8,3              ; @VLAN_ETH_HLEN
	.comm	_tx_skb_non_tso_too_long,4,2    ; @tx_skb_non_tso_too_long
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_IPPROTO_TCP,8,3                ; @IPPROTO_TCP
	.comm	_tcpcsum_offload,4,2            ; @tcpcsum_offload
	.comm	_tx_skb_tcp_hdr,4,2             ; @tx_skb_tcp_hdr
	.comm	_IPPROTO_UDP,8,3                ; @IPPROTO_UDP
	.comm	_BNA_TXQ_WI_CF_UDP_CKSUM,4,2    ; @BNA_TXQ_WI_CF_UDP_CKSUM
	.comm	_udpcsum_offload,4,2            ; @udpcsum_offload
	.comm	_tx_skb_udp_hdr,4,2             ; @tx_skb_udp_hdr
	.comm	_tx_skb_csum_err,4,2            ; @tx_skb_csum_err
	.comm	_ETH_P_IPV6,4,2                 ; @ETH_P_IPV6
	.no_dead_strip	_bnad_txq_wi_prepare
.subsections_via_symbols
