	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipv6_rthdr_rcv
_ipv6_rthdr_rcv:                        ## @ipv6_rthdr_rcv
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_IP6CB
	movq	%rax, %r15
	movq	32(%rbx), %rdi
	callq	_dev_net
	movq	%rax, %r14
	movq	32(%rbx), %rdi
	callq	_in6_dev_get
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	callq	_in6_dev_put
LBB0_2:
	movq	%rbx, %rdi
	callq	_skb_transport_offset
	leaq	8(%rax), %rsi
	movq	%rbx, %rdi
	callq	_pskb_may_pull
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_skb_transport_offset
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_skb_transport_header
	movl	4(%rax), %eax
	leal	8(,%rax,8), %eax
	movslq	%eax, %rsi
	addq	%r12, %rsi
	movq	%rbx, %rdi
	callq	_pskb_may_pull
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movq	%rbx, %rdi
	callq	_skb_transport_header
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_ipv6_hdr
	leaq	4(%rax), %rdi
	callq	_ipv6_addr_is_multicast
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	(%rbx), %rax
	movq	_PACKET_HOST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.9:
	cmpl	$0, (%r12)
	je	LBB0_10
## %bb.11:
	movq	%rbx, %rdi
	callq	_skb_dst
	movq	%rax, %rdi
	callq	_ip6_dst_idev
	movq	_IPSTATS_MIB_INHDRERRORS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_IP6_INC_STATS_BH
	movq	_ICMPV6_HDR_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_skb_network_header
	cltq
	shlq	$2, %rax
	subq	%rax, %r12
	addq	$4, %r12
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_icmpv6_param_prob
	jmp	LBB0_12
LBB0_4:
	movq	%rbx, %rdi
	callq	_skb_dst
	movq	%rax, %rdi
	callq	_ip6_dst_idev
	movq	_IPSTATS_MIB_INHDRERRORS@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_8:
	movq	%rbx, %rdi
	callq	_skb_dst
	movq	%rax, %rdi
	callq	_ip6_dst_idev
	movq	_IPSTATS_MIB_INADDRERRORS@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_IP6_INC_STATS_BH
	movq	%rbx, %rdi
	callq	_kfree_skb
LBB0_12:
	movl	$-1, %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%rbx, %rdi
	callq	_skb_network_header_len
	movl	%eax, 24(%r15)
	movl	%eax, 28(%r15)
	movl	8(%r12), %eax
	movl	8(%rbx), %ecx
	leal	8(%rcx,%rax,8), %eax
	movl	%eax, 8(%rbx)
	movq	8(%r15), %rax
	movq	%rax, 16(%r15)
	movq	$0, 8(%r15)
	movq	%rbx, %rdi
	callq	_skb_network_header
	cltq
	shlq	$2, %rax
	negq	%rax
	addq	%r12, %rax
	addq	$12, %rax
	movq	%rax, (%r15)
	movl	$1, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_IPSTATS_MIB_INHDRERRORS,4,2    ## @IPSTATS_MIB_INHDRERRORS
	.comm	_PACKET_HOST,8,3                ## @PACKET_HOST
	.comm	_IPSTATS_MIB_INADDRERRORS,4,2   ## @IPSTATS_MIB_INADDRERRORS
	.comm	_ICMPV6_HDR_FIELD,4,2           ## @ICMPV6_HDR_FIELD
	.comm	_CHECKSUM_COMPLETE,8,3          ## @CHECKSUM_COMPLETE
	.comm	_CHECKSUM_NONE,8,3              ## @CHECKSUM_NONE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ICMPV6_EXC_HOPLIMIT,4,2        ## @ICMPV6_EXC_HOPLIMIT
	.comm	_ICMPV6_TIME_EXCEED,4,2         ## @ICMPV6_TIME_EXCEED
	.comm	_IFF_LOOPBACK,4,2               ## @IFF_LOOPBACK
	.comm	_IPPROTO_ROUTING,4,2            ## @IPPROTO_ROUTING
	.comm	_IPSTATS_MIB_OUTDISCARDS,4,2    ## @IPSTATS_MIB_OUTDISCARDS
	.no_dead_strip	_ipv6_rthdr_rcv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipv6_rthdr_rcv
_ipv6_rthdr_rcv:                        ; @ipv6_rthdr_rcv
	.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, x0
	bl	_IP6CB
	mov	x21, x0
	ldr	x0, [x19, #32]
	bl	_dev_net
	mov	x20, x0
	ldr	x0, [x19, #32]
	bl	_in6_dev_get
	cbz	x0, LBB0_2
; %bb.1:
	bl	_in6_dev_put
LBB0_2:
	mov	x0, x19
	bl	_skb_transport_offset
	add	x1, x0, #8
	mov	x0, x19
	bl	_pskb_may_pull
	cbz	w0, LBB0_8
; %bb.3:
	mov	x0, x19
	bl	_skb_transport_offset
	mov	x22, x0
	mov	x0, x19
	bl	_skb_transport_header
	ldr	w8, [x0, #4]
	lsl	w8, w8, #3
	add	w8, w8, #8
	add	x1, x22, w8, sxtw
	mov	x0, x19
	bl	_pskb_may_pull
	cbz	w0, LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_skb_transport_header
	mov	x22, x0
	mov	x0, x19
	bl	_ipv6_hdr
	add	x0, x0, #4
	bl	_ipv6_addr_is_multicast
	cbnz	x0, LBB0_9
; %bb.5:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _PACKET_HOST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PACKET_HOST@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.6:
	ldr	w8, [x22]
	cbz	w8, LBB0_13
; %bb.7:
	mov	x0, x19
	bl	_skb_dst
	bl	_ip6_dst_idev
	mov	x1, x0
Lloh3:
	adrp	x8, _IPSTATS_MIB_INHDRERRORS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPSTATS_MIB_INHDRERRORS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_IP6_INC_STATS_BH
Lloh6:
	adrp	x8, _ICMPV6_HDR_FIELD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ICMPV6_HDR_FIELD@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_skb_network_header
	sub	x8, x22, w0, sxtw #2
	add	x2, x8, #4
	mov	x0, x19
	mov	x1, x20
	bl	_icmpv6_param_prob
	b	LBB0_11
LBB0_8:
	mov	x0, x19
	bl	_skb_dst
	bl	_ip6_dst_idev
	mov	x1, x0
Lloh9:
	adrp	x8, _IPSTATS_MIB_INHDRERRORS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IPSTATS_MIB_INHDRERRORS@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_skb_dst
	bl	_ip6_dst_idev
	mov	x1, x0
Lloh11:
	adrp	x8, _IPSTATS_MIB_INADDRERRORS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IPSTATS_MIB_INADDRERRORS@GOTPAGEOFF]
LBB0_10:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_IP6_INC_STATS_BH
	mov	x0, x19
	bl	_kfree_skb
LBB0_11:
	mov	w0, #-1
LBB0_12:
	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
LBB0_13:
	mov	x0, x19
	bl	_skb_network_header_len
	stp	w0, w0, [x21, #24]
	ldr	w8, [x22, #8]
	ldr	w9, [x19, #8]
	add	w8, w9, w8, lsl #3
	add	w8, w8, #8
	str	w8, [x19, #8]
	ldr	x8, [x21, #8]
	stp	xzr, x8, [x21, #8]
	mov	x0, x19
	bl	_skb_network_header
	sub	x8, x22, w0, sxtw #2
	add	x8, x8, #12
	str	x8, [x21]
	mov	w0, #1
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IPSTATS_MIB_INHDRERRORS,4,2    ; @IPSTATS_MIB_INHDRERRORS
	.comm	_PACKET_HOST,8,3                ; @PACKET_HOST
	.comm	_IPSTATS_MIB_INADDRERRORS,4,2   ; @IPSTATS_MIB_INADDRERRORS
	.comm	_ICMPV6_HDR_FIELD,4,2           ; @ICMPV6_HDR_FIELD
	.comm	_CHECKSUM_COMPLETE,8,3          ; @CHECKSUM_COMPLETE
	.comm	_CHECKSUM_NONE,8,3              ; @CHECKSUM_NONE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ICMPV6_EXC_HOPLIMIT,4,2        ; @ICMPV6_EXC_HOPLIMIT
	.comm	_ICMPV6_TIME_EXCEED,4,2         ; @ICMPV6_TIME_EXCEED
	.comm	_IFF_LOOPBACK,4,2               ; @IFF_LOOPBACK
	.comm	_IPPROTO_ROUTING,4,2            ; @IPPROTO_ROUTING
	.comm	_IPSTATS_MIB_OUTDISCARDS,4,2    ; @IPSTATS_MIB_OUTDISCARDS
	.no_dead_strip	_ipv6_rthdr_rcv
.subsections_via_symbols
