	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gre_manip_pkt
_gre_manip_pkt:                         ## @gre_manip_pkt
	.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
	movl	%ecx, %r13d
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movl	%esi, %ecx
	movl	(%rax,%rcx), %r14d
	leal	(%r12,%r14,4), %esi
	addl	$-4, %esi
	callq	_skb_make_writable
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rcx
	movq	_IP_NAT_MANIP_DST@GOTPCREL(%rip), %rax
	movl	$1, %r15d
	cmpl	%r13d, (%rax)
	jne	LBB0_7
## %bb.3:
	leal	(%r12,%r14,4), %eax
	movq	(%rbx), %r12
	movl	%eax, %ebx
	movl	(%r12,%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_7
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.5:
	movq	%rcx, %r14
	movl	(%rcx), %edi
	callq	_ntohs
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	(%r14), %eax
	movl	%eax, (%r12,%rbx)
	jmp	LBB0_7
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IP_NAT_MANIP_DST,4,2           ## @IP_NAT_MANIP_DST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"call_id -> 0x%04x\n"

L_.str.1:                               ## @.str.1
	.asciz	"can't nat unknown GRE version\n"

	.no_dead_strip	_gre_manip_pkt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gre_manip_pkt
_gre_manip_pkt:                         ; @gre_manip_pkt
	.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	x21, x3
	mov	x19, x2
	mov	x20, x0
	ldr	x8, [x0]
	ldr	w8, [x8, w1, uxtw]
	add	w22, w1, w8, lsl #2
	sub	w1, w22, #4
	bl	_skb_make_writable
	cbz	w0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _IP_NAT_MANIP_DST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IP_NAT_MANIP_DST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_5
; %bb.2:
	ldr	x20, [x20]
	ldr	w8, [x20, x22]
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.4:
	ldr	w0, [x19]
	bl	_ntohs
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	w8, [x19]
	str	w8, [x20, x22]
LBB0_5:
	mov	w0, #1
LBB0_6:
	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_7:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_IP_NAT_MANIP_DST,4,2           ; @IP_NAT_MANIP_DST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"call_id -> 0x%04x\n"

l_.str.1:                               ; @.str.1
	.asciz	"can't nat unknown GRE version\n"

	.no_dead_strip	_gre_manip_pkt
.subsections_via_symbols
