	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enic_queue_wq_skb_tso
_enic_queue_wq_skb_tso:                 ## @enic_queue_wq_skb_tso
	.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
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_skb_headlen
	movl	%eax, %r12d
	movl	(%r14), %r15d
	cmpq	$0, 8(%r14)
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	je	LBB0_2
## %bb.1:
	callq	_skb_inner_transport_header
	movl	%eax, %ebx
	subl	4(%r14), %ebx
	movq	%r14, %rdi
	callq	_inner_tcp_hdrlen
	addl	%ebx, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_enic_preload_tcp_csum_encap
	jmp	LBB0_3
LBB0_2:
	callq	_skb_transport_offset
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_tcp_hdrlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%ebx, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_enic_preload_tcp_csum
LBB0_3:
	subl	%r12d, %r15d
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.4:
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_WQ_ENET_MAX_DESC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_min
	movl	%eax, %ebx
	movq	(%r13), %rdi
	movl	4(%r14), %esi
	addl	-56(%rbp), %esi                 ## 4-byte Folded Reload
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edx
	callq	_pci_map_single
	movq	%r14, %r15
	movl	%eax, %r14d
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_enic_dma_map_check
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r12d, %eax
	xorl	%ebx, %eax
	xorl	%r10d, %r10d
	orl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	sete	%r10b
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	movq	-80(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	movl	16(%rbp), %eax
	pushq	%rax
	pushq	%r10
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	callq	_enic_queue_wq_desc_tso
	addq	$32, %rsp
	addl	%ebx, -56(%rbp)                 ## 4-byte Folded Spill
	subl	%ebx, %r12d
	movq	%r15, %r14
	jne	LBB0_5
LBB0_8:
	xorl	%eax, %eax
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.9:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_skb_shinfo
	movq	(%rax), %r13
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	addq	$4, %r13
	testl	%r15d, %r15d
	je	LBB0_15
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	%r13, %rdi
	callq	_skb_frag_size
	subl	%eax, %r15d
	movq	%r13, %rdi
	callq	_skb_frag_size
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%eax, %r12d
	xorl	%r14d, %r14d
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_WQ_ENET_MAX_DESC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_min
	movl	%eax, %ebx
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rdi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rsi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	callq	_skb_frag_dma_map
	movl	%eax, %r13d
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_enic_dma_map_check
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_6
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	%r12d, %eax
	xorl	%ebx, %eax
	xorl	%r8d, %r8d
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	orl	%r15d, %eax
	sete	%r8b
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movl	16(%rbp), %r9d
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_enic_queue_wq_desc_cont
	addl	%ebx, %r14d
	subl	%ebx, %r12d
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_12
	jmp	LBB0_14
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	xorl	%eax, %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_WQ_ENET_MAX_DESC_LEN,8,3       ## @WQ_ENET_MAX_DESC_LEN
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_enic_queue_wq_skb_tso
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enic_queue_wq_skb_tso
_enic_queue_wq_skb_tso:                 ; @enic_queue_wq_skb_tso
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	stp	w5, w6, [sp, #24]               ; 8-byte Folded Spill
	str	w4, [sp, #20]                   ; 4-byte Folded Spill
	mov	x25, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x2
	bl	_skb_headlen
	mov	x26, x0
	ldr	w19, [x20]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_skb_inner_transport_header
	ldr	w8, [x20, #4]
	sub	w23, w0, w8
	mov	x0, x20
	bl	_inner_tcp_hdrlen
	add	w27, w23, w0
	mov	x0, x20
	bl	_enic_preload_tcp_csum_encap
	sub	w19, w19, w26
	cbnz	w26, LBB0_3
	b	LBB0_6
LBB0_2:
	mov	x0, x20
	bl	_skb_transport_offset
	mov	x23, x0
	mov	x0, x20
	bl	_tcp_hdrlen
	add	w27, w0, w23
	mov	x0, x20
	bl	_enic_preload_tcp_csum
	sub	w19, w19, w26
	cbz	w26, LBB0_6
LBB0_3:
	mov	w24, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
Lloh0:
	adrp	x8, _WQ_ENET_MAX_DESC_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WQ_ENET_MAX_DESC_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_min
	mov	x28, x0
	ldr	x0, [x22]
	ldr	w8, [x20, #4]
	add	w1, w8, w24
Lloh3:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x2, x28
	bl	_pci_map_single
	mov	x23, x0
	mov	x0, x22
	mov	x1, x23
	bl	_enic_dma_map_check
	bl	_unlikely
	cbnz	x0, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w19, #0
	ccmp	w26, w28, #0, eq
	cset	w8, eq
	ldp	w7, w9, [sp, #24]               ; 8-byte Folded Reload
	stp	w8, w9, [sp]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	mov	x3, x28
	mov	x4, x25
	mov	x5, x27
	ldr	w6, [sp, #20]                   ; 4-byte Folded Reload
	bl	_enic_queue_wq_desc_tso
	add	w24, w28, w24
	subs	w26, w26, w28
	b.ne	LBB0_4
LBB0_6:
	cbz	w19, LBB0_14
; %bb.7:
	mov	x0, x20
	bl	_skb_shinfo
	ldr	x23, [x0]
Lloh6:
	adrp	x28, _DMA_TO_DEVICE@GOTPAGE
Lloh7:
	ldr	x28, [x28, _DMA_TO_DEVICE@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x23, x23, #4
	cbz	w19, LBB0_14
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	mov	x0, x23
	bl	_skb_frag_size
	sub	w19, w19, w0
	mov	x0, x23
	bl	_skb_frag_size
	cbz	w0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x24, x0
	mov	w25, #0
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
Lloh8:
	adrp	x8, _WQ_ENET_MAX_DESC_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WQ_ENET_MAX_DESC_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_min
	mov	x26, x0
	ldr	x0, [x22]
	ldr	w4, [x28]
	mov	x1, x23
	mov	x2, x25
	mov	x3, x26
	bl	_skb_frag_dma_map
	mov	x27, x0
	mov	x0, x22
	mov	x1, x27
	bl	_enic_dma_map_check
	bl	_unlikely
	cbnz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	cmp	w19, #0
	ccmp	w24, w26, #0, eq
	cset	w4, eq
	mov	x0, x21
	mov	x1, x20
	mov	x2, x27
	mov	x3, x26
	ldr	w5, [sp, #28]                   ; 4-byte Folded Reload
	bl	_enic_queue_wq_desc_cont
	add	w25, w26, w25
	subs	w24, w24, w26
	b.ne	LBB0_11
	b	LBB0_8
LBB0_13:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_WQ_ENET_MAX_DESC_LEN,8,3       ; @WQ_ENET_MAX_DESC_LEN
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_enic_queue_wq_skb_tso
.subsections_via_symbols
