	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gve_tx_add_skb
_gve_tx_add_skb:                        ## @gve_tx_add_skb
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_skb_is_gso
	movl	%eax, %r13d
	movq	8(%rbx), %rax
	andq	(%rbx), %rax
	movq	40(%rbx), %r14
	movq	%rax, %r12
	leaq	(,%rax,4), %rax
	addq	32(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_skb_checksum_start_offset
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
	testl	%r13d, %r13d
	je	LBB0_2
## %bb.1:
	callq	_tcp_hdrlen
	movl	%eax, %r13d
	addl	-56(%rbp), %r13d                ## 4-byte Folded Reload
	jmp	LBB0_3
LBB0_2:
	callq	_skb_headlen
	movl	%eax, %r13d
LBB0_3:
	shlq	$4, %r12
	movq	%r15, 8(%r14,%r12)
	leaq	16(%rbx), %rdi
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	%r13d, %esi
	callq	_gve_tx_fifo_pad_alloc_one_frag
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r13), %esi
	movq	(%r14,%r12), %rdx
	movq	%r15, %rdi
	callq	_gve_tx_alloc_fifo
	xorl	%edi, %edi
	subl	$1, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	setb	%dil
	leaq	L_.str(%rip), %rsi
	callq	_WARN
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %esi
	subl	%r13d, %esi
	movq	(%r14,%r12), %rdx
	addq	$32, %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_gve_tx_alloc_fifo
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leal	1(%rax), %r8d
	movq	(%r14,%r12), %rax
	movq	%r15, %rsi
	movslq	-44(%rbp), %r15                 ## 4-byte Folded Reload
	shlq	$4, %r15
	movq	8(%rax,%r15), %rax
	movq	%rax, (%rsp)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%r13d, %r9d
	callq	_gve_tx_fill_pkt_desc
	movq	(%r14,%r12), %rax
	movq	8(%rax,%r15), %rdx
	addq	24(%rbx), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	%r13d, %ecx
	callq	_skb_copy_bits
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	movq	(%r14,%r12), %rax
	movq	8(%rax,%r15), %rdx
	movl	(%rax,%r15), %ecx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_gve_dma_sync_for_device
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	testl	%edx, %edx
	jle	LBB0_6
## %bb.4:
	addq	%r12, %r14
	addl	$2, %edx
	movq	(%r14), %rax
	movl	$2, %ecx
	subq	%rdx, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	$1, %r15d
	movl	$40, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rdi
	addq	%r15, %rdi
	andq	8(%rbx), %rdi
	shlq	$2, %rdi
	addq	32(%rbx), %rdi
	movl	-8(%rax,%r12), %ecx
	movq	(%rax,%r12), %r8
	movq	%r14, %r13
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_gve_tx_fill_seg_desc
	movq	(%r13), %rax
	movq	(%rax,%r12), %rdx
	addq	24(%rbx), %rdx
	movl	-8(%rax,%r12), %ecx
	movq	%r14, %rdi
	movq	%r13, %r14
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_skb_copy_bits
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	movq	(%r14), %rax
	movq	(%rax,%r12), %rdx
	movl	-8(%rax,%r12), %ecx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_gve_dma_sync_for_device
	movq	(%r14), %rax
	addl	-8(%rax,%r12), %r13d
	addq	$16, %r12
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addq	%r15, %rcx
	incq	%rcx
	incq	%r15
	cmpq	$1, %rcx
	jne	LBB0_5
LBB0_6:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hdr_nfrags should never be 0!"

	.no_dead_strip	_gve_tx_add_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gve_tx_add_skb
_gve_tx_add_skb:                        ; @gve_tx_add_skb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_skb_is_gso
	mov	x22, x0
	ldp	x8, x9, [x21]
	and	x24, x9, x8
	ldp	x8, x25, [x21, #32]
	add	x8, x8, x24, lsl #2
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	mov	x0, x20
	bl	_skb_checksum_start_offset
	mov	x26, x0
	mov	x0, x20
	cbz	w22, LBB0_2
; %bb.1:
	bl	_tcp_hdrlen
	add	w23, w0, w26
	b	LBB0_3
LBB0_2:
	bl	_skb_headlen
	mov	x23, x0
LBB0_3:
	add	x25, x25, x24, lsl #4
	str	x20, [x25, #8]
	add	x24, x21, #16
	mov	x0, x24
	mov	x1, x23
	bl	_gve_tx_fifo_pad_alloc_one_frag
	add	w1, w0, w23
	ldr	x2, [x25]
	mov	x0, x24
	bl	_gve_tx_alloc_fifo
	mov	x28, x0
	cmp	w0, #0
	cset	w0, eq
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN
	ldr	w8, [x20]
	sub	w1, w8, w23
	ldr	x8, [x25]
	add	x2, x8, #32
	mov	x0, x24
	bl	_gve_tx_alloc_fifo
	mov	x27, x0
	add	w24, w0, #1
	ldr	x8, [x25]
	sbfiz	x9, x28, #4, #32
	sub	x28, x9, #16
	add	x8, x8, x28
	ldr	x6, [x8, #8]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x20
	mov	x2, x22
	mov	x3, x26
	mov	x4, x24
	mov	x5, x23
	bl	_gve_tx_fill_pkt_desc
	ldr	x8, [x21, #24]
	ldr	x9, [x25]
	add	x9, x9, x28
	ldr	x9, [x9, #8]
	add	x2, x9, x8
	mov	x0, x20
	mov	w1, #0
	mov	x3, x23
	bl	_skb_copy_bits
	ldr	x8, [x21, #16]
	ldr	w1, [x8]
	ldr	x8, [x25]
	add	x8, x8, x28
	ldr	x2, [x8, #8]
	ldr	w3, [x8]
	mov	x0, x19
	bl	_gve_dma_sync_for_device
	cmp	w27, #1
	b.lt	LBB0_6
; %bb.4:
	add	w26, w27, #2
	ldr	x8, [x25]
	mov	w27, #2
	mov	w28, #40
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x10, [x21]
	add	x9, x27, x9
	sub	x9, x9, #1
	and	x9, x9, x10
	ldr	x10, [x21, #32]
	add	x0, x10, x9, lsl #2
	add	x8, x8, x28
	ldur	w3, [x8, #-8]
	ldr	x4, [x8]
	mov	x1, x20
	mov	x2, x22
	bl	_gve_tx_fill_seg_desc
	ldr	x8, [x21, #24]
	ldr	x9, [x25]
	add	x9, x9, x28
	ldr	x10, [x9]
	add	x2, x10, x8
	ldur	w3, [x9, #-8]
	mov	x0, x20
	mov	x1, x23
	bl	_skb_copy_bits
	ldr	x8, [x21, #16]
	ldr	w1, [x8]
	ldr	x8, [x25]
	add	x8, x8, x28
	ldr	x2, [x8]
	ldur	w3, [x8, #-8]
	mov	x0, x19
	bl	_gve_dma_sync_for_device
	ldr	x8, [x25]
	add	x9, x8, x28
	ldur	w9, [x9, #-8]
	add	w23, w9, w23
	add	x27, x27, #1
	add	x28, x28, #16
	cmp	x26, x27
	b.ne	LBB0_5
LBB0_6:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hdr_nfrags should never be 0!"

	.no_dead_strip	_gve_tx_add_skb
.subsections_via_symbols
