	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip6_tnl_rcv_ctl
_ip6_tnl_rcv_ctl:                       ## @ip6_tnl_rcv_ctl
	.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	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_dev_net
	movq	%rax, %r15
	movq	_IP6_TNL_F_CAP_RCV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_1
## %bb.2:
	movq	24(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	callq	_dev_get_by_index
	movq	%rax, %r14
	jmp	LBB0_5
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_3:
	xorl	%r14d, %r14d
LBB0_5:
	leaq	16(%rbx), %r13
	movq	%r13, %rdi
	callq	_ipv6_addr_is_multicast
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_ipv6_chk_addr
	movl	%eax, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	addq	$12, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ipv6_chk_addr
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_likely
	xorl	%r12d, %r12d
	testq	%rax, %rax
	setne	%r12b
LBB0_8:
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_dev_put
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IP6_TNL_F_CAP_RCV,4,2          ## @IP6_TNL_F_CAP_RCV
	.no_dead_strip	_ip6_tnl_rcv_ctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip6_tnl_rcv_ctl
_ip6_tnl_rcv_ctl:                       ; @ip6_tnl_rcv_ctl
	.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	x20, x0
	ldr	w0, [x0]
	bl	_dev_net
	ldr	w8, [x20, #8]
Lloh0:
	adrp	x9, _IP6_TNL_F_CAP_RCV@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IP6_TNL_F_CAP_RCV@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	x1, [x20, #24]
	cbz	x1, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_dev_get_by_index
	mov	x19, x0
	b	LBB0_5
LBB0_3:
	mov	w20, #0
	b	LBB0_9
LBB0_4:
	mov	x19, #0
LBB0_5:
	add	x22, x20, #16
	mov	x0, x22
	bl	_ipv6_addr_is_multicast
	cbnz	x0, LBB0_7
; %bb.6:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	mov	w3, #0
	bl	_ipv6_chk_addr
	bl	_likely
	cbz	x0, LBB0_10
LBB0_7:
	add	x1, x20, #12
	mov	x0, x21
	mov	x2, #0
	mov	w3, #0
	bl	_ipv6_chk_addr
	cmp	w0, #0
	cset	w0, eq
	bl	_likely
	cmp	x0, #0
	cset	w20, ne
	cbz	x19, LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_dev_put
LBB0_9:
	mov	x0, x20
	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_10:
	mov	w20, #0
	cbnz	x19, LBB0_8
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IP6_TNL_F_CAP_RCV,4,2          ; @IP6_TNL_F_CAP_RCV
	.no_dead_strip	_ip6_tnl_rcv_ctl
.subsections_via_symbols
