	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_tlv_tnl_enc_lim
_parse_tlv_tnl_enc_lim:                 ## @parse_tlv_tnl_enc_lim
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	(%rsi), %r13
	movq	%r13, %rdi
	callq	_ipv6_ext_hdr
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_24
## %bb.1:
	movq	_NEXTHDR_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_24
## %bb.2:
	movl	$8, %r14d
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movslq	%r14d, %r15
	leaq	(%rbx,%r15,8), %rcx
	addq	$128, %rcx
	movq	(%r12), %rax
	cmpq	%rax, %rcx
	jbe	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rcx
	subq	%rax, %rcx
	shrq	$3, %rcx
	leal	(%r14,%rcx), %esi
	addl	$16, %esi
	movq	%r12, %rdi
	callq	_pskb_may_pull
	testl	%eax, %eax
	je	LBB0_23
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rbx,%r15,8), %r12
	movq	_NEXTHDR_FRAGMENT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$8, %eax
	cmpq	$0, (%r12)
	je	LBB0_10
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_NEXTHDR_AUTH@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %eax
	leal	8(,%rax,4), %eax
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_ipv6_optlen
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_NEXTHDR_DEST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r13
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	addl	%r14d, %eax
	movslq	%eax, %rcx
	leaq	18(%r15), %rdx
	cmpq	%rcx, %rdx
	ja	LBB0_21
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	addl	$2, %r14d
	addq	$2, %r15
	movq	_IPV6_TLV_TNL_ENCAP_LIMIT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=2
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	8(%rbx,%r15,8), %esi
	addl	$2, %esi
LBB0_20:                                ##   in Loop: Header=BB0_14 Depth=2
	addl	%esi, %r14d
	movslq	%r14d, %r15
	leaq	16(%r15), %rsi
	cmpq	%rcx, %rsi
	ja	LBB0_21
LBB0_14:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx,%r15,8), %rsi
	cmpq	%rdx, %rsi
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	cmpl	$1, 8(%rbx,%r15,8)
	jne	LBB0_17
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	$1, %esi
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	%r14d, %eax
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r14d
	movq	8(%r12), %r13
	movq	%r13, %rdi
	callq	_ipv6_ext_hdr
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_NEXTHDR_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_3
LBB0_23:
	xorl	%ecx, %ecx
	jmp	LBB0_24
LBB0_16:
	movl	%r14d, %ecx
LBB0_24:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NEXTHDR_NONE,8,3               ## @NEXTHDR_NONE
	.comm	_NEXTHDR_FRAGMENT,8,3           ## @NEXTHDR_FRAGMENT
	.comm	_NEXTHDR_AUTH,8,3               ## @NEXTHDR_AUTH
	.comm	_NEXTHDR_DEST,8,3               ## @NEXTHDR_DEST
	.comm	_IPV6_TLV_TNL_ENCAP_LIMIT,8,3   ## @IPV6_TLV_TNL_ENCAP_LIMIT
	.no_dead_strip	_parse_tlv_tnl_enc_lim
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_tlv_tnl_enc_lim
_parse_tlv_tnl_enc_lim:                 ; @parse_tlv_tnl_enc_lim
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x20, x0
	ldr	x22, [x1]
	mov	x0, x22
	bl	_ipv6_ext_hdr
Lloh0:
	adrp	x23, _NEXTHDR_NONE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NEXTHDR_NONE@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, #0
	ccmp	x22, x8, #4, ne
	b.ne	LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	w24, #8
Lloh2:
	adrp	x25, _NEXTHDR_FRAGMENT@GOTPAGE
Lloh3:
	ldr	x25, [x25, _NEXTHDR_FRAGMENT@GOTPAGEOFF]
Lloh4:
	adrp	x26, _NEXTHDR_DEST@GOTPAGE
Lloh5:
	ldr	x26, [x26, _NEXTHDR_DEST@GOTPAGEOFF]
Lloh6:
	adrp	x27, _IPV6_TLV_TNL_ENCAP_LIMIT@GOTPAGE
Lloh7:
	ldr	x27, [x27, _IPV6_TLV_TNL_ENCAP_LIMIT@GOTPAGEOFF]
Lloh8:
	adrp	x28, _NEXTHDR_AUTH@GOTPAGE
Lloh9:
	ldr	x28, [x28, _NEXTHDR_AUTH@GOTPAGEOFF]
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	add	x21, x19, w24, sxtw #3
	add	x9, x21, #128
	ldr	x8, [x20]
	cmp	x9, x8
	b.ls	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x8, x19, x8
	lsr	x8, x8, #3
	add	w8, w24, w8
	add	w1, w8, #16
	mov	x0, x20
	bl	_pskb_may_pull
	cbz	w0, LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	cmp	x22, x8
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	cbnz	x8, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #8
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x28]
	cmp	x22, x8
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	lsl	w8, w8, #2
	add	w0, w8, #8
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_ipv6_optlen
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26]
	cmp	x22, x8
	b.ne	LBB0_21
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w11, w24, #2
	add	w24, w0, w24
	sxtw	x8, w24
	sxtw	x10, w11
	add	x9, x10, #16
	cmp	x9, x8
	b.hi	LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x27]
	mov	x0, x11
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_18 Depth=2
	cbz	x11, LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	w10, [x10, #8]
	add	w10, w10, #2
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	add	w0, w10, w0
	sxtw	x10, w0
	add	x11, x10, #16
	cmp	x11, x8
	b.hi	LBB0_22
LBB0_18:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x10, x19, x10, lsl #3
	ldr	x11, [x10]
	cmp	x11, x9
	b.ne	LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	w12, [x10, #8]
	cmp	w12, #1
	b.ne	LBB0_15
	b	LBB0_2
LBB0_20:                                ;   in Loop: Header=BB0_18 Depth=2
	mov	w10, #1
	b	LBB0_17
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w0, w24
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x22, [x21, #8]
	mov	x0, x22
	bl	_ipv6_ext_hdr
	mov	x8, x0
	mov	w0, #0
	cbz	x8, LBB0_2
; %bb.23:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23]
	cmp	x22, x8
	b.ne	LBB0_4
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_NEXTHDR_NONE,8,3               ; @NEXTHDR_NONE
	.comm	_NEXTHDR_FRAGMENT,8,3           ; @NEXTHDR_FRAGMENT
	.comm	_NEXTHDR_AUTH,8,3               ; @NEXTHDR_AUTH
	.comm	_NEXTHDR_DEST,8,3               ; @NEXTHDR_DEST
	.comm	_IPV6_TLV_TNL_ENCAP_LIMIT,8,3   ; @IPV6_TLV_TNL_ENCAP_LIMIT
	.no_dead_strip	_parse_tlv_tnl_enc_lim
.subsections_via_symbols
