	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nat64stl_handle_icmp6
_nat64stl_handle_icmp6:                 ## @nat64stl_handle_icmp6
	.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	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$0, -36(%rbp)
	leaq	4(%rsi), %r12
	leaq	-36(%rbp), %rsi
	movq	%rdx, %rdi
	callq	_nat64_getlasthdr
	movq	_IPPROTO_ICMPV6@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.1:
	movl	-36(%rbp), %esi
	movq	%rbx, %rdi
	callq	_mtodo
	movl	(%rax), %eax
	andl	$-4, %eax
	cmpl	$128, %eax
	jne	LBB0_3
## %bb.2:
	movl	-36(%rbp), %esi
	addl	$4, %esi
	movl	%esi, -36(%rbp)
	movslq	%esi, %rax
	movq	_ICMP_MINLEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rcx, %rax
	addq	$4, %rax
	cmpq	%rax, 8(%rbx)
	jae	LBB0_6
LBB0_3:
	movq	_dropped@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_NAT64STAT_INC
	movq	_NAT64MFREE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpq	%rax, (%rbx)
	jae	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_m_pullup
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	movq	%rax, %rbx
	movl	-36(%rbp), %esi
LBB0_9:
	movq	%rbx, %rdi
	callq	_mtodo
	movl	12(%r14), %esi
	leaq	-40(%rbp), %r8
	movq	%r15, %rdi
	movl	$4, %edx
	movq	%rax, %rcx
	callq	_ipfw_lookup_table
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	_NAT64_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_15
## %bb.11:
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%r14), %ecx
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_nat64stl_log
	jmp	LBB0_16
LBB0_12:
	movq	%rbx, %rdi
	callq	_m_freem
	jmp	LBB0_14
LBB0_13:
	movq	_nomem@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_NAT64STAT_INC
LBB0_14:
	movq	_NAT64RETURN@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_15:
	xorl	%r12d, %r12d
LBB0_16:
	movl	-40(%rbp), %esi
	movq	_nh4@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_TARG_VAL
	movl	%eax, %edi
	callq	_htonl
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	movq	%r12, %r9
	callq	_nat64_handle_icmp6
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_ICMPV6,4,2             ## @IPPROTO_ICMPV6
	.comm	_dropped,4,2                    ## @dropped
	.comm	_NAT64MFREE,4,2                 ## @NAT64MFREE
	.comm	_ICMP_MINLEN,8,3                ## @ICMP_MINLEN
	.comm	_nomem,4,2                      ## @nomem
	.comm	_NAT64RETURN,4,2                ## @NAT64RETURN
	.comm	_NAT64_LOG,4,2                  ## @NAT64_LOG
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_nh4,4,2                        ## @nh4
	.no_dead_strip	_nat64stl_handle_icmp6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nat64stl_handle_icmp6
_nat64stl_handle_icmp6:                 ; @nat64stl_handle_icmp6
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	str	wzr, [sp]
	add	x22, x1, #4
	mov	x1, sp
	mov	x0, x2
	bl	_nat64_getlasthdr
Lloh0:
	adrp	x8, _IPPROTO_ICMPV6@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPPROTO_ICMPV6@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.1:
	ldr	w1, [sp]
	mov	x0, x20
	bl	_mtodo
	ldr	w8, [x0]
	and	w8, w8, #0xfffffffc
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [sp]
	add	w1, w8, #4
	str	w1, [sp]
	ldr	x9, [x20, #8]
Lloh3:
	adrp	x8, _ICMP_MINLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICMP_MINLEN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x8, x8, w1, sxtw
	add	x8, x8, #4
	cmp	x9, x8
	b.hs	LBB0_6
LBB0_3:
Lloh6:
	adrp	x8, _dropped@GOTPAGE
Lloh7:
	ldr	x8, [x8, _dropped@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_NAT64STAT_INC
Lloh9:
	adrp	x8, _NAT64MFREE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NAT64MFREE@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
LBB0_5:
	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
LBB0_6:
	ldr	x9, [x20]
	cmp	x9, x8
	b.hs	LBB0_9
; %bb.7:
	mov	x0, x20
	mov	x1, x8
	bl	_m_pullup
	cbz	x0, LBB0_13
; %bb.8:
	mov	x20, x0
	ldr	w1, [sp]
LBB0_9:
	mov	x0, x20
	bl	_mtodo
	mov	x3, x0
	ldr	w1, [x19, #12]
	add	x4, sp, #4
	mov	x0, x21
	mov	w2, #4
	bl	_ipfw_lookup_table
	cbz	x0, LBB0_12
; %bb.10:
	ldr	w8, [x19]
Lloh11:
	adrp	x9, _NAT64_LOG@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NAT64_LOG@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.11:
Lloh14:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	ldr	w3, [x19, #8]
	add	x22, sp, #8
	add	x0, sp, #8
	mov	x1, x20
	bl	_nat64stl_log
	b	LBB0_16
LBB0_12:
	mov	x0, x20
	bl	_m_freem
	b	LBB0_14
LBB0_13:
Lloh17:
	adrp	x8, _nomem@GOTPAGE
Lloh18:
	ldr	x8, [x8, _nomem@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_NAT64STAT_INC
LBB0_14:
Lloh20:
	adrp	x8, _NAT64RETURN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NAT64RETURN@GOTPAGEOFF]
	b	LBB0_4
LBB0_15:
	mov	x22, #0
LBB0_16:
	ldr	w1, [sp, #4]
Lloh22:
	adrp	x8, _nh4@GOTPAGE
Lloh23:
	ldr	x8, [x8, _nh4@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_TARG_VAL
	bl	_htonl
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	mov	w3, #0
	mov	x4, x19
	mov	x5, x22
	bl	_nat64_handle_icmp6
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_ICMPV6,4,2             ; @IPPROTO_ICMPV6
	.comm	_dropped,4,2                    ; @dropped
	.comm	_NAT64MFREE,4,2                 ; @NAT64MFREE
	.comm	_ICMP_MINLEN,8,3                ; @ICMP_MINLEN
	.comm	_nomem,4,2                      ; @nomem
	.comm	_NAT64RETURN,4,2                ; @NAT64RETURN
	.comm	_NAT64_LOG,4,2                  ; @NAT64_LOG
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_nh4,4,2                        ; @nh4
	.no_dead_strip	_nat64stl_handle_icmp6
.subsections_via_symbols
