	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip6_forward_proxy_check
_ip6_forward_proxy_check:               ## @ip6_forward_proxy_check
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_ipv6_hdr
	movq	%rax, %r14
	movq	(%rax), %rbx
	movq	%rbx, -40(%rbp)
	movq	%rbx, %rdi
	callq	_ipv6_ext_hdr
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_ipv6_skip_exthdr
	testl	%eax, %eax
	js	LBB0_11
## %bb.2:
	movq	-40(%rbp), %rbx
	movl	%eax, %r12d
	jmp	LBB0_4
LBB0_3:
	movl	$16, %r12d
LBB0_4:
	movq	_IPPROTO_ICMPV6@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	callq	_skb_network_header
	leaq	(%rax,%r12), %rsi
	subq	(%r15), %rsi
	incq	%rsi
	movq	%r15, %rdi
	callq	_pskb_may_pull
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:
	movq	%r15, %rdi
	callq	_skb_network_header
	movl	$-133, %ecx
	addl	(%rax,%r12), %ecx
	movl	$1, %eax
	cmpl	$-6, %ecx
	ja	LBB0_12
LBB0_7:
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_ipv6_addr_type
	movq	_IPV6_ADDR_LINKLOCAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.8:
	movq	%r15, %rdi
	callq	_dst_link_failure
	movl	$-1, %eax
	jmp	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_ICMPV6,8,3             ## @IPPROTO_ICMPV6
	.comm	_IPV6_ADDR_LINKLOCAL,4,2        ## @IPV6_ADDR_LINKLOCAL
	.no_dead_strip	_ip6_forward_proxy_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip6_forward_proxy_check
_ip6_forward_proxy_check:               ; @ip6_forward_proxy_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	bl	_ipv6_hdr
	mov	x20, x0
	ldr	x21, [x0]
	str	x21, [sp, #8]
	mov	x0, x21
	bl	_ipv6_ext_hdr
	cbz	x0, LBB0_3
; %bb.1:
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #16
	bl	_ipv6_skip_exthdr
	tbnz	w0, #31, LBB0_9
; %bb.2:
	ldr	x21, [sp, #8]
	mov	w22, w0
	b	LBB0_4
LBB0_3:
	mov	w22, #16
LBB0_4:
Lloh0:
	adrp	x8, _IPPROTO_ICMPV6@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPPROTO_ICMPV6@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_skb_network_header
	ldr	x8, [x19]
	add	x9, x22, x0
	sub	x8, x9, x8
	add	x1, x8, #1
	mov	x0, x19
	bl	_pskb_may_pull
	cbz	w0, LBB0_11
; %bb.6:
	mov	x0, x19
	bl	_skb_network_header
	ldr	w8, [x0, x22]
	sub	w8, w8, #133
	cmn	w8, #6
	b.hi	LBB0_10
LBB0_7:
	add	x0, x20, #8
	bl	_ipv6_addr_type
Lloh3:
	adrp	x8, _IPV6_ADDR_LINKLOCAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPV6_ADDR_LINKLOCAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_dst_link_failure
	mov	w0, #-1
	b	LBB0_11
LBB0_9:
	mov	w0, #0
	b	LBB0_11
LBB0_10:
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_ICMPV6,8,3             ; @IPPROTO_ICMPV6
	.comm	_IPV6_ADDR_LINKLOCAL,4,2        ; @IPV6_ADDR_LINKLOCAL
	.no_dead_strip	_ip6_forward_proxy_check
.subsections_via_symbols
