	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nicvf_tso_count_subdescs
_nicvf_tso_count_subdescs:              ## @nicvf_tso_count_subdescs
	.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	%rdi, %rbx
	callq	_skb_shinfo
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_skb_transport_offset
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_tcp_hdrlen
	movl	%eax, %r14d
	movl	(%rbx), %r15d
	movl	(%r12), %r13d
	movq	%rbx, %rdi
	callq	_skb_headlen
                                        ## kill: def $eax killed $eax def $rax
	movl	4(%r12), %edx
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	addl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	subl	%r14d, %eax
	subl	%r14d, %r15d
	movq	$-1, %rbx
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	movl	%r13d, %edi
	xorl	%esi, %esi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r12), %edx
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	subl	%edi, %r15d
	cmpl	%edi, %r15d
	cmovbl	%r15d, %edi
	incl	%esi
	cmpl	%edx, %esi
	jge	LBB0_12
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_7 Depth 3
	incl	%r14d
	testl	%edi, %edi
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	xorl	%r13d, %r13d
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	movl	%edi, %edx
	subl	%r13d, %edx
	movq	%rax, %rsi
	subq	%rcx, %rsi
	cmpq	%rdx, %rsi
	cmovgeq	%rdx, %rsi
	addq	%rsi, %rcx
	addl	%r13d, %esi
	incl	%r14d
	movl	%esi, %r13d
	cmpl	%esi, %edi
	jbe	LBB0_10
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_7 Depth 3
	cmpq	%rcx, %rax
	jg	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	leaq	4(,%rbx,4), %r15
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	incq	%rbx
	movq	8(%r12), %rdi
	addq	%r15, %rdi
	callq	_skb_frag_size
	addq	$4, %r15
	testq	%rax, %rax
	jle	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	xorl	%ecx, %ecx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_9
LBB0_1:
	xorl	%r14d, %r14d
LBB0_12:
	addl	%edx, %r14d
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nicvf_tso_count_subdescs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nicvf_tso_count_subdescs
_nicvf_tso_count_subdescs:              ; @nicvf_tso_count_subdescs
	.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	x22, x0
	bl	_skb_shinfo
	mov	x19, x0
	mov	x0, x22
	bl	_skb_transport_offset
	mov	x20, x0
	mov	x0, x22
	bl	_tcp_hdrlen
	mov	x21, x0
	ldr	w25, [x22]
	ldr	w23, [x19]
	mov	x0, x22
	bl	_skb_headlen
	ldr	w9, [x19, #4]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.1:
	mov	w24, #0
	mov	w22, #0
	mov	x8, #0
	add	w10, w21, w20
	sub	w0, w0, w10
	sub	w20, w25, w10
	mov	x21, #-1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x19, #4]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w20, w20, w23
	cmp	w20, w23
	csel	w23, w20, w23, lo
	add	w24, w24, #1
	cmp	w24, w9
	b.ge	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
	add	w22, w22, #1
	cbz	w23, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w25, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	sub	w9, w23, w25
	sub	x10, x0, x8
	cmp	x10, x9
	csel	x9, x10, x9, lt
	add	x8, x9, x8
	add	w22, w22, #1
	add	w25, w25, w9
	cmp	w23, w25
	b.ls	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
	cmp	x0, x8
	b.gt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	lsl	x8, x21, #2
	add	x26, x8, #4
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	x21, x21, #1
	ldr	x8, [x19, #8]
	add	x0, x8, x26
	bl	_skb_frag_size
	add	x26, x26, #4
	cmp	x0, #1
	b.lt	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	mov	x8, #0
	b	LBB0_6
LBB0_11:
	mov	w22, #0
LBB0_12:
	add	w0, w9, w22
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nicvf_tso_count_subdescs
.subsections_via_symbols
