	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip4ip6_tnl_xmit
_ip4ip6_tnl_xmit:                       ## @ip4ip6_tnl_xmit
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_ip_hdr
	movq	%rax, %r12
	movq	(%rbx), %rax
	movq	_IPPROTO_IPIP@GOTPCREL(%rip), %rcx
	movl	$-1, %r13d
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	(%rcx), %rax
	jne	LBB0_11
LBB0_2:
	movq	%rbx, %rdi
	callq	_ip6_tnl_xmit_ctl
	testl	%eax, %eax
	je	LBB0_11
## %bb.3:
	movq	_IP6_TNL_F_IGN_ENCAP_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$-1, %ecx
	testl	%eax, 8(%rbx)
	jne	LBB0_5
## %bb.4:
	movl	12(%rbx), %ecx
LBB0_5:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rsi
	addq	$16, %rsi
	leaq	-64(%rbp), %rdi
	movl	$16, %edx
	callq	_memcpy
	movq	_IPPROTO_IPIP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	%r12, %rdi
	callq	_ipv4_get_dsfield
	movl	%eax, %r13d
	movq	_IP6_TNL_F_USE_ORIG_TCLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_7
## %bb.6:
	movl	(%r12), %edi
	movq	_IPV6_TCLASS_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	callq	_htonl
	movq	_IPV6_TCLASS_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	orl	%eax, -64(%rbp)
LBB0_7:
	leaq	-64(%rbp), %rcx
	leaq	-48(%rbp), %r9
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_ip6_tnl_xmit2
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rcx
	movl	$-1, %r13d
	addl	(%rcx), %eax
	jne	LBB0_11
## %bb.10:
	movq	_ICMP_DEST_UNREACH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ICMP_FRAG_NEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-48(%rbp), %edi
	callq	_htonl
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_icmp_send
	jmp	LBB0_11
LBB0_8:
	xorl	%r13d, %r13d
LBB0_11:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_IPIP,8,3               ## @IPPROTO_IPIP
	.comm	_IP6_TNL_F_IGN_ENCAP_LIMIT,4,2  ## @IP6_TNL_F_IGN_ENCAP_LIMIT
	.comm	_IP6_TNL_F_USE_ORIG_TCLASS,4,2  ## @IP6_TNL_F_USE_ORIG_TCLASS
	.comm	_IPV6_TCLASS_SHIFT,4,2          ## @IPV6_TCLASS_SHIFT
	.comm	_IPV6_TCLASS_MASK,4,2           ## @IPV6_TCLASS_MASK
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_ICMP_DEST_UNREACH,4,2          ## @ICMP_DEST_UNREACH
	.comm	_ICMP_FRAG_NEEDED,4,2           ## @ICMP_FRAG_NEEDED
	.no_dead_strip	_ip4ip6_tnl_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip4ip6_tnl_xmit
_ip4ip6_tnl_xmit:                       ; @ip4ip6_tnl_xmit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x23, x0
	mov	x0, x19
	bl	_ip_hdr
	ldr	x8, [x23]
Lloh0:
	adrp	x24, _IPPROTO_IPIP@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IPPROTO_IPIP@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, #0
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_10
; %bb.1:
	mov	x22, x0
	mov	x0, x23
	bl	_ip6_tnl_xmit_ctl
	cbz	w0, LBB0_10
; %bb.2:
	ldr	w8, [x23, #8]
Lloh2:
	adrp	x9, _IP6_TNL_F_IGN_ENCAP_LIMIT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IP6_TNL_F_IGN_ENCAP_LIMIT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	w21, #-1
	b	LBB0_5
LBB0_4:
	ldr	w21, [x23, #12]
LBB0_5:
	add	x1, x23, #16
	add	x0, sp, #16
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x24]
	str	x8, [sp, #24]
	mov	x0, x22
	bl	_ipv4_get_dsfield
	mov	x24, x0
	ldr	w8, [x23, #8]
Lloh5:
	adrp	x9, _IP6_TNL_F_USE_ORIG_TCLASS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IP6_TNL_F_USE_ORIG_TCLASS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	w8, [x22]
Lloh8:
	adrp	x9, _IPV6_TCLASS_SHIFT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IPV6_TCLASS_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	lsl	w0, w8, w9
	bl	_htonl
Lloh11:
	adrp	x8, _IPV6_TCLASS_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IPV6_TCLASS_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	and	w8, w8, w0
	ldr	w9, [sp, #16]
	orr	w8, w9, w8
	str	w8, [sp, #16]
LBB0_7:
	add	x3, sp, #16
	add	x5, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	mov	x4, x21
	bl	_ip6_tnl_xmit2
	cbz	w0, LBB0_11
; %bb.8:
Lloh14:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_10
; %bb.9:
Lloh17:
	adrp	x8, _ICMP_DEST_UNREACH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ICMP_DEST_UNREACH@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
Lloh20:
	adrp	x8, _ICMP_FRAG_NEEDED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ICMP_FRAG_NEEDED@GOTPAGEOFF]
Lloh22:
	ldr	w21, [x8]
	ldr	w0, [sp, #12]
	bl	_htonl
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_icmp_send
LBB0_10:
	mov	w0, #-1
LBB0_11:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_IPIP,8,3               ; @IPPROTO_IPIP
	.comm	_IP6_TNL_F_IGN_ENCAP_LIMIT,4,2  ; @IP6_TNL_F_IGN_ENCAP_LIMIT
	.comm	_IP6_TNL_F_USE_ORIG_TCLASS,4,2  ; @IP6_TNL_F_USE_ORIG_TCLASS
	.comm	_IPV6_TCLASS_SHIFT,4,2          ; @IPV6_TCLASS_SHIFT
	.comm	_IPV6_TCLASS_MASK,4,2           ; @IPV6_TCLASS_MASK
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_ICMP_DEST_UNREACH,4,2          ; @ICMP_DEST_UNREACH
	.comm	_ICMP_FRAG_NEEDED,4,2           ; @ICMP_FRAG_NEEDED
	.no_dead_strip	_ip4ip6_tnl_xmit
.subsections_via_symbols
