	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmveth_start_xmit
_ibmveth_start_xmit:                    ## @ibmveth_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	$136, %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, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	cmpq	$0, 48(%rax)
	je	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	callq	_skb_has_frag_list
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	callq	___skb_linearize
	testq	%rax, %rax
	jne	LBB0_25
LBB0_3:
	movq	%r12, %rdi
	callq	_skb_shinfo
	cmpl	$6, (%rax)
	jl	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	___skb_linearize
	testq	%rax, %rax
	jne	LBB0_25
LBB0_5:
	movq	(%r12), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.6:
	movq	8(%r12), %rbx
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %rbx
	jne	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_ip_hdr
	movq	(%rax), %rax
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
LBB0_8:
	movq	8(%r12), %rbx
	movq	_ETH_P_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %rbx
	jne	LBB0_12
## %bb.9:
	movq	%r12, %rdi
	callq	_ipv6_hdr
	movq	(%rax), %rax
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
LBB0_10:
	movq	%r12, %rdi
	callq	_skb_checksum_help
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	jmp	LBB0_25
LBB0_12:
	movq	_IBMVETH_BUF_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%r12), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.13:
	movq	%r12, %rdi
	callq	_skb_transport_header
	movslq	16(%r12), %rcx
	movq	_IBMVETH_BUF_NO_CSUM@GOTPCREL(%rip), %rdx
	orl	(%rdx), %r15d
	movq	_IBMVETH_BUF_CSUM_GOOD@GOTPCREL(%rip), %rdx
	orl	(%rdx), %r15d
	movw	$0, (%rax,%rcx)
	movq	%r12, %rdi
	callq	_skb_is_gso
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	cmpq	$0, 24(%r13)
	je	LBB0_16
## %bb.15:
	movq	_IBMVETH_BUF_LRG_SND@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
LBB0_16:
	leaq	-144(%rbp), %rdi
	xorl	%esi, %esi
	movl	$96, %edx
	callq	_memset
	movq	%r12, %rdi
	callq	_skb_is_nonlinear
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	movl	20(%r12), %edx
	movq	_tx_copybreak@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jb	LBB0_23
LBB0_18:
	movq	8(%r13), %rbx
	movq	%r13, -168(%rbp)                ## 8-byte Spill
	movl	24(%r12), %r13d
	movq	%r12, %rdi
	callq	_skb_headlen
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	-168(%rbp), %r13                ## 8-byte Reload
	movl	%eax, %edx
	callq	_dma_map_single
	movq	%rax, %rbx
	movq	8(%r13), %rdi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_29
LBB0_19:
	movq	_FW_FEATURE_CMO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_firmware_has_feature
	testl	%eax, %eax
	jne	LBB0_21
## %bb.20:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
LBB0_21:
	incl	(%r13)
	movq	%r12, %rdi
	callq	_skb_linearize
	testq	%rax, %rax
	jne	LBB0_25
## %bb.22:
	leaq	-144(%rbp), %rdi
	xorl	%esi, %esi
	movl	$96, %edx
	callq	_memset
	movl	20(%r12), %edx
LBB0_23:
	movl	40(%r13), %esi
	movq	%r12, %rdi
	callq	_skb_copy_from_linear_data
	orl	20(%r12), %r15d
	movl	%r15d, -144(%rbp)
	movq	32(%r13), %rax
	movq	%rax, -136(%rbp)
	leaq	-144(%rbp), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_ibmveth_send
	testq	%rax, %rax
	je	LBB0_38
## %bb.24:
	incl	16(%r13)
LBB0_25:
	addq	$4, %r14
	movl	$1, %eax
LBB0_26:
	addl	%eax, (%r14)
LBB0_27:
	movq	%r12, %rdi
	callq	_dev_consume_skb_any
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_54
## %bb.28:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	movq	%r14, -160(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	callq	_skb_headlen
	movl	%r15d, -148(%rbp)               ## 4-byte Spill
	orl	%r15d, %eax
	movl	%eax, -144(%rbp)
	movq	%rbx, -136(%rbp)
	movq	%r12, %rdi
	callq	_skb_shinfo
	cmpl	$0, (%rax)
	jle	LBB0_33
## %bb.30:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	movq	%r12, -176(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_skb_shinfo
	movq	16(%rax), %rbx
	addq	%r14, %rbx
	movq	%r13, %r12
	movq	8(%r13), %r13
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_skb_frag_dma_map
	movq	%rax, %r13
	movq	8(%r12), %rdi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_40
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	%rbx, %rdi
	callq	_skb_frag_size
	orl	-148(%rbp), %eax                ## 4-byte Folded Reload
	incq	%r15
	movl	%eax, -128(%rbp,%r14,4)
	movq	%r13, -120(%rbp,%r14,4)
	movq	-176(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	callq	_skb_shinfo
	movslq	(%rax), %rax
	addq	$4, %r14
	cmpq	%rax, %r15
	movq	-168(%rbp), %r13                ## 8-byte Reload
	jl	LBB0_31
LBB0_33:
	movq	(%r12), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_39
## %bb.34:
	movq	%r12, %rdi
	callq	_skb_is_gso
	testq	%rax, %rax
	movq	-160(%rbp), %rbx                ## 8-byte Reload
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r15
	je	LBB0_46
## %bb.35:
	cmpq	$0, 24(%r13)
	je	LBB0_45
## %bb.36:
	movq	%r12, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %rdx
LBB0_37:
	incl	20(%r13)
	jmp	LBB0_47
LBB0_38:
	incl	8(%r14)
	movl	20(%r12), %eax
	jmp	LBB0_26
LBB0_39:
	xorl	%edx, %edx
	movq	-160(%rbp), %rbx                ## 8-byte Reload
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r15
	jmp	LBB0_47
LBB0_40:
	testl	%r15d, %r15d
	movq	-168(%rbp), %r13                ## 8-byte Reload
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r12
	je	LBB0_43
## %bb.41:
	leaq	-120(%rbp), %rbx
	movq	_IBMVETH_BUF_LEN_MASK@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdi
	movq	(%rbx), %rsi
	movl	(%r14), %edx
	andl	-8(%rbx), %edx
	movl	(%r12), %ecx
	callq	_dma_unmap_page
	addq	$16, %rbx
	decq	%r15
	jne	LBB0_42
LBB0_43:
	movq	8(%r13), %rdi
	movq	-136(%rbp), %rsi
	movq	_IBMVETH_BUF_LEN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	-144(%rbp), %edx
	movl	(%r12), %ecx
	callq	_dma_unmap_single
	movq	-176(%rbp), %r12                ## 8-byte Reload
	movq	-160(%rbp), %r14                ## 8-byte Reload
	movl	-148(%rbp), %r15d               ## 4-byte Reload
	jmp	LBB0_19
LBB0_45:
	movq	%r12, %rdi
	callq	_skb_is_gso_v6
	testl	%eax, %eax
	je	LBB0_53
LBB0_46:
	xorl	%edx, %edx
LBB0_47:
	leaq	-144(%rbp), %rsi
	movq	%r13, %rdi
	callq	_ibmveth_send
	testq	%rax, %rax
	je	LBB0_49
## %bb.48:
	incl	16(%r13)
	addq	$4, %rbx
	movl	$1, %eax
	jmp	LBB0_50
LBB0_49:
	incl	8(%rbx)
	movl	20(%r12), %eax
LBB0_50:
	addl	%eax, (%rbx)
	movq	8(%r13), %rdi
	movq	-136(%rbp), %rsi
	movq	_IBMVETH_BUF_LEN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	-144(%rbp), %edx
	movl	(%r15), %ecx
	callq	_dma_unmap_single
	movq	%r12, %rdi
	callq	_skb_shinfo
	cmpl	$0, (%rax)
	jle	LBB0_27
## %bb.51:
	movq	%r15, %r14
	leaq	-120(%rbp), %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_52:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdi
	movq	(%rbx), %rsi
	movq	_IBMVETH_BUF_LEN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	-8(%rbx), %edx
	movl	(%r14), %ecx
	callq	_dma_unmap_page
	movq	%r12, %rdi
	callq	_skb_shinfo
	movslq	(%rax), %rax
	incq	%r15
	addq	$16, %rbx
	cmpq	%rax, %r15
	jl	LBB0_52
	jmp	LBB0_27
LBB0_53:
	movq	%r12, %rdi
	callq	_ip_hdr
	movl	$65535, 8(%rax)                 ## imm = 0xFFFF
	movq	%r12, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %rdi
	callq	_cpu_to_be16
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_tcp_hdr
	movl	%r14d, (%rax)
	xorl	%edx, %edx
	jmp	LBB0_37
LBB0_54:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_IPPROTO_TCP,8,3                ## @IPPROTO_TCP
	.comm	_ETH_P_IPV6,4,2                 ## @ETH_P_IPV6
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx: failed to checksum packet\n"

	.comm	_IBMVETH_BUF_VALID,4,2          ## @IBMVETH_BUF_VALID
	.comm	_IBMVETH_BUF_NO_CSUM,4,2        ## @IBMVETH_BUF_NO_CSUM
	.comm	_IBMVETH_BUF_CSUM_GOOD,4,2      ## @IBMVETH_BUF_CSUM_GOOD
	.comm	_IBMVETH_BUF_LRG_SND,4,2        ## @IBMVETH_BUF_LRG_SND
	.comm	_tx_copybreak,4,2               ## @tx_copybreak
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_IBMVETH_BUF_LEN_MASK,4,2       ## @IBMVETH_BUF_LEN_MASK
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_FW_FEATURE_CMO,4,2             ## @FW_FEATURE_CMO
L_.str.1:                               ## @.str.1
	.asciz	"tx: unable to map xmit buffer\n"

	.no_dead_strip	_ibmveth_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmveth_start_xmit
_ibmveth_start_xmit:                    ; @ibmveth_start_xmit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	mov	x0, x1
	bl	_netdev_priv
	mov	x21, x0
	ldr	x8, [x0, #48]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_skb_has_frag_list
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	___skb_linearize
	cbnz	x0, LBB0_25
LBB0_3:
	mov	x0, x19
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w8, #6
	b.lt	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	___skb_linearize
	cbnz	x0, LBB0_25
LBB0_5:
	ldr	x8, [x19]
Lloh3:
	adrp	x23, _CHECKSUM_PARTIAL@GOTPAGE
Lloh4:
	ldr	x23, [x23, _CHECKSUM_PARTIAL@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.6:
	ldr	x22, [x19, #8]
Lloh5:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_htons
	cmp	x22, x0
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_ip_hdr
	ldr	x8, [x0]
Lloh8:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
LBB0_8:
	ldr	x22, [x19, #8]
Lloh11:
	adrp	x8, _ETH_P_IPV6@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ETH_P_IPV6@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_htons
	cmp	x22, x0
	b.ne	LBB0_12
; %bb.9:
	mov	x0, x19
	bl	_ipv6_hdr
	ldr	x8, [x0]
Lloh14:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_12
LBB0_10:
	mov	x0, x19
	bl	_skb_checksum_help
	cbz	x0, LBB0_12
; %bb.11:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	b	LBB0_25
LBB0_12:
Lloh19:
	adrp	x8, _IBMVETH_BUF_VALID@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IBMVETH_BUF_VALID@GOTPAGEOFF]
Lloh21:
	ldr	w25, [x8]
	ldr	x8, [x19]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.13:
	mov	x0, x19
	bl	_skb_transport_header
	ldrsw	x8, [x19, #16]
Lloh22:
	adrp	x9, _IBMVETH_BUF_NO_CSUM@GOTPAGE
Lloh23:
	ldr	x9, [x9, _IBMVETH_BUF_NO_CSUM@GOTPAGEOFF]
Lloh24:
	adrp	x10, _IBMVETH_BUF_CSUM_GOOD@GOTPAGE
Lloh25:
	ldr	x10, [x10, _IBMVETH_BUF_CSUM_GOOD@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	ldr	w10, [x10]
	orr	w9, w9, w25
	orr	w25, w9, w10
	strh	wzr, [x0, x8]
	mov	x0, x19
	bl	_skb_is_gso
	cbz	x0, LBB0_16
; %bb.14:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_16
; %bb.15:
Lloh28:
	adrp	x8, _IBMVETH_BUF_LRG_SND@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IBMVETH_BUF_LRG_SND@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	orr	w25, w8, w25
LBB0_16:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #96
	bl	_memset
	mov	x0, x19
	bl	_skb_is_nonlinear
	cbnz	w0, LBB0_18
; %bb.17:
	ldr	w2, [x19, #20]
Lloh31:
	adrp	x8, _tx_copybreak@GOTPAGE
Lloh32:
	ldr	x8, [x8, _tx_copybreak@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	w2, w8
	b.lo	LBB0_23
LBB0_18:
	ldr	x22, [x21, #8]
	ldr	w23, [x19, #24]
	mov	x0, x19
	bl	_skb_headlen
	mov	x2, x0
Lloh34:
	adrp	x24, _DMA_TO_DEVICE@GOTPAGE
Lloh35:
	ldr	x24, [x24, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	x0, x22
	mov	x1, x23
	bl	_dma_map_single
	mov	x22, x0
	ldr	x0, [x21, #8]
	mov	x1, x22
	bl	_dma_mapping_error
	cbz	x0, LBB0_29
LBB0_19:
Lloh36:
	adrp	x8, _FW_FEATURE_CMO@GOTPAGE
Lloh37:
	ldr	x8, [x8, _FW_FEATURE_CMO@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_firmware_has_feature
	cbnz	w0, LBB0_21
; %bb.20:
Lloh39:
	adrp	x1, l_.str.1@PAGE
Lloh40:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
LBB0_21:
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	mov	x0, x19
	bl	_skb_linearize
	cbnz	x0, LBB0_25
; %bb.22:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #96
	bl	_memset
	ldr	w2, [x19, #20]
LBB0_23:
	ldr	w1, [x21, #40]
	mov	x0, x19
	bl	_skb_copy_from_linear_data
	ldr	w8, [x19, #20]
	orr	w8, w8, w25
	str	w8, [sp, #8]
	ldr	x8, [x21, #32]
	str	x8, [sp, #16]
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, #0
	bl	_ibmveth_send
	cbz	x0, LBB0_38
; %bb.24:
	ldr	w8, [x21, #16]
	add	w8, w8, #1
	str	w8, [x21, #16]
LBB0_25:
	add	x20, x20, #4
	mov	w8, #1
LBB0_26:
	ldr	w9, [x20]
	add	w8, w9, w8
	str	w8, [x20]
LBB0_27:
	mov	x0, x19
	bl	_dev_consume_skb_any
Lloh41:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh42:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	ldur	x8, [x29, #-88]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_52
; %bb.28:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_29:
	mov	x0, x19
	bl	_skb_headlen
	orr	w8, w0, w25
	str	w8, [sp, #8]
	str	x22, [sp, #16]
	mov	x0, x19
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_33
; %bb.30:
	mov	x28, #0
	mov	x27, #0
	add	x8, sp, #8
	add	x26, x8, #24
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_skb_shinfo
	ldr	x8, [x0, #16]
	add	x22, x8, x28
	ldr	x23, [x21, #8]
	mov	x0, x22
	bl	_skb_frag_size
	mov	x3, x0
	ldr	w4, [x24]
	mov	x0, x23
	mov	x1, x22
	mov	w2, #0
	bl	_skb_frag_dma_map
	mov	x23, x0
	ldr	x0, [x21, #8]
	mov	x1, x23
	bl	_dma_mapping_error
	cbnz	x0, LBB0_39
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	mov	x0, x22
	bl	_skb_frag_size
	orr	w8, w0, w25
	add	x27, x27, #1
	stur	w8, [x26, #-8]
	str	x23, [x26], #16
	mov	x0, x19
	bl	_skb_shinfo
	ldrsw	x8, [x0]
	add	x28, x28, #4
	cmp	x27, x8
	b.lt	LBB0_31
LBB0_33:
	ldr	x8, [x19]
Lloh47:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh48:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_44
; %bb.34:
	mov	x0, x19
	bl	_skb_is_gso
	cbz	x0, LBB0_44
; %bb.35:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_43
; %bb.36:
	mov	x0, x19
	bl	_skb_shinfo
	ldr	x2, [x0, #8]
LBB0_37:
	ldr	w8, [x21, #20]
	add	w8, w8, #1
	str	w8, [x21, #20]
	b	LBB0_45
LBB0_38:
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	ldr	w8, [x19, #20]
	b	LBB0_26
LBB0_39:
	cbz	w27, LBB0_42
; %bb.40:
	add	x8, sp, #8
	add	x22, x8, #24
Lloh50:
	adrp	x23, _IBMVETH_BUF_LEN_MASK@GOTPAGE
Lloh51:
	ldr	x23, [x23, _IBMVETH_BUF_LEN_MASK@GOTPAGEOFF]
LBB0_41:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21, #8]
	ldr	x1, [x22]
	ldur	w8, [x22, #-8]
	ldr	w9, [x23]
	and	w2, w9, w8
	ldr	w3, [x24]
	bl	_dma_unmap_page
	add	x22, x22, #16
	subs	x27, x27, #1
	b.ne	LBB0_41
LBB0_42:
	ldr	x0, [x21, #8]
	ldr	x1, [sp, #16]
	ldr	w8, [sp, #8]
Lloh52:
	adrp	x9, _IBMVETH_BUF_LEN_MASK@GOTPAGE
Lloh53:
	ldr	x9, [x9, _IBMVETH_BUF_LEN_MASK@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	and	w2, w9, w8
	ldr	w3, [x24]
	bl	_dma_unmap_single
	b	LBB0_19
LBB0_43:
	mov	x0, x19
	bl	_skb_is_gso_v6
	cbz	w0, LBB0_51
LBB0_44:
	mov	x2, #0
LBB0_45:
	add	x1, sp, #8
	mov	x0, x21
	bl	_ibmveth_send
	cbz	x0, LBB0_47
; %bb.46:
	ldr	w8, [x21, #16]
	add	w8, w8, #1
	str	w8, [x21, #16]
	add	x20, x20, #4
	mov	w8, #1
	b	LBB0_48
LBB0_47:
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	ldr	w8, [x19, #20]
LBB0_48:
	ldr	w9, [x20]
	add	w8, w9, w8
	str	w8, [x20]
	ldr	x0, [x21, #8]
	ldr	x1, [sp, #16]
	ldr	w8, [sp, #8]
Lloh55:
	adrp	x20, _IBMVETH_BUF_LEN_MASK@GOTPAGE
Lloh56:
	ldr	x20, [x20, _IBMVETH_BUF_LEN_MASK@GOTPAGEOFF]
	ldr	w9, [x20]
	and	w2, w9, w8
	ldr	w3, [x24]
	bl	_dma_unmap_single
	mov	x0, x19
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.49:
	mov	x22, #0
	add	x8, sp, #8
	add	x23, x8, #24
LBB0_50:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21, #8]
	ldr	x1, [x23]
	ldur	w8, [x23, #-8]
	ldr	w9, [x20]
	and	w2, w9, w8
	ldr	w3, [x24]
	bl	_dma_unmap_page
	mov	x0, x19
	bl	_skb_shinfo
	ldrsw	x8, [x0]
	add	x22, x22, #1
	add	x23, x23, #16
	cmp	x22, x8
	b.lt	LBB0_50
	b	LBB0_27
LBB0_51:
	mov	x0, x19
	bl	_ip_hdr
	mov	w8, #65535
	str	w8, [x0, #8]
	mov	x0, x19
	bl	_skb_shinfo
	ldr	x0, [x0, #8]
	bl	_cpu_to_be16
	mov	x22, x0
	mov	x0, x19
	bl	_tcp_hdr
	mov	x2, #0
	str	w22, [x0]
	b	LBB0_37
LBB0_52:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh26
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_IPPROTO_TCP,8,3                ; @IPPROTO_TCP
	.comm	_ETH_P_IPV6,4,2                 ; @ETH_P_IPV6
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx: failed to checksum packet\n"

	.comm	_IBMVETH_BUF_VALID,4,2          ; @IBMVETH_BUF_VALID
	.comm	_IBMVETH_BUF_NO_CSUM,4,2        ; @IBMVETH_BUF_NO_CSUM
	.comm	_IBMVETH_BUF_CSUM_GOOD,4,2      ; @IBMVETH_BUF_CSUM_GOOD
	.comm	_IBMVETH_BUF_LRG_SND,4,2        ; @IBMVETH_BUF_LRG_SND
	.comm	_tx_copybreak,4,2               ; @tx_copybreak
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_IBMVETH_BUF_LEN_MASK,4,2       ; @IBMVETH_BUF_LEN_MASK
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_FW_FEATURE_CMO,4,2             ; @FW_FEATURE_CMO
l_.str.1:                               ; @.str.1
	.asciz	"tx: unable to map xmit buffer\n"

	.no_dead_strip	_ibmveth_start_xmit
.subsections_via_symbols
