	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipv6_find_tlv                  ## -- Begin function ipv6_find_tlv
	.p2align	4, 0x90
_ipv6_find_tlv:                         ## @ipv6_find_tlv
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_skb_network_header
	movl	(%rbx), %esi
	subl	4(%rbx), %esi
	movq	%rax, %r8
	leal	2(%r15), %edx
	movl	$-1, %eax
	cmpl	%esi, %edx
	jg	LBB0_8
## %bb.1:
	movslq	%r15d, %rcx
	movl	(%r8,%rcx), %edi
	leal	(%r15,%rdi,8), %ecx
	addl	$8, %ecx
	cmpl	%esi, %ecx
	jg	LBB0_8
## %bb.2:
	leal	6(,%rdi,8), %esi
	testl	%esi, %esi
	jg	LBB0_3
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	addl	%edi, %edx
	subl	%edi, %esi
	jle	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%edx, %rbx
	movzbl	(%r8,%rbx), %ecx
	cmpl	%r14d, %ecx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
	cmpb	$-128, %cl
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	1(%rbx,%r8), %edi
	addl	$2, %edi
	cmpl	%esi, %edi
	jbe	LBB0_7
	jmp	LBB0_8
LBB0_4:
	movl	%edx, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipv6_find_tlv                  ; -- Begin function ipv6_find_tlv
	.p2align	2
_ipv6_find_tlv:                         ; @ipv6_find_tlv
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_skb_network_header
	mov	x8, x0
	ldp	w9, w10, [x21]
	add	w0, w20, #2
	sub	w10, w9, w10
	cmp	w0, w10
	b.gt	LBB0_7
; %bb.1:
	ldr	w11, [x8, w20, sxtw]
	add	w9, w20, w11, lsl #3
	add	w12, w9, #8
	mov	w9, #6
	bfi	w9, w11, #3, #29
	cmp	w12, w10
	ccmp	w9, #1, #8, le
	b.ge	LBB0_4
	b	LBB0_7
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w10, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w0, w10, w0
	sub	w9, w9, w10
	cmp	w9, #0
	b.le	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x10, w0
	ldrb	w11, [x8, x10]
	cmp	w11, w19
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w11, #128
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, x8
	ldrb	w10, [x10, #1]
	add	w10, w10, #2
	cmp	w10, w9
	b.ls	LBB0_3
LBB0_7:
	mov	w0, #-1
LBB0_8:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
