	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gre_pkt_to_tuple
_gre_pkt_to_tuple:                      ## @gre_pkt_to_tuple
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_skb_dst
	movq	(%rax), %rdi
LBB0_2:
	callq	_dev_net
	movq	%rax, %r14
	leaq	-56(%rbp), %rcx
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	$16, %edx
	callq	_skb_header_pointer
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_GRE_VERSION_PPTP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	leaq	-72(%rbp), %rcx
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	$8, %edx
	callq	_skb_header_pointer
	movl	$1, %r12d
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%rax, %r13
	movl	12(%rbx), %edi
	callq	_ntohs
	movq	_GRE_PROTOCOL_PPTP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.8:
	movl	8(%r13), %eax
	movl	%eax, 16(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_gre_keymap_lookup
	movl	%eax, (%r15)
	jmp	LBB0_9
LBB0_4:
	movq	$0, 8(%r15)
	movq	$0, 24(%r15)
	movl	$1, %r12d
LBB0_9:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	xorl	%r12d, %r12d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GRE_VERSION_PPTP,8,3           ## @GRE_VERSION_PPTP
	.comm	_GRE_PROTOCOL_PPTP,8,3          ## @GRE_PROTOCOL_PPTP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GRE_VERSION_PPTP but unknown proto\n"

	.no_dead_strip	_gre_pkt_to_tuple
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gre_pkt_to_tuple
_gre_pkt_to_tuple:                      ; @gre_pkt_to_tuple
	.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	x19, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x0, [x0]
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_skb_dst
	ldr	x0, [x0]
LBB0_2:
	bl	_dev_net
	mov	x21, x0
	mov	x3, sp
	mov	x0, x22
	mov	x1, x20
	mov	w2, #16
	bl	_skb_header_pointer
	cbz	x0, LBB0_7
; %bb.3:
	mov	x23, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _GRE_VERSION_PPTP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GRE_VERSION_PPTP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	add	x3, sp, #16
	mov	x0, x22
	mov	x1, x20
	mov	w2, #8
	bl	_skb_header_pointer
	cbz	x0, LBB0_8
; %bb.5:
	mov	x20, x0
	ldr	w0, [x23, #12]
	bl	_ntohs
Lloh3:
	adrp	x8, _GRE_PROTOCOL_PPTP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GRE_PROTOCOL_PPTP@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.6:
	ldr	w8, [x20, #8]
	str	w8, [x19, #16]
	mov	x0, x21
	mov	x1, x19
	bl	_gre_keymap_lookup
	str	w0, [x19]
	b	LBB0_8
LBB0_7:
	str	xzr, [x19, #8]
	str	xzr, [x19, #24]
LBB0_8:
	mov	w0, #1
LBB0_9:
	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
LBB0_10:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	w0, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GRE_VERSION_PPTP,8,3           ; @GRE_VERSION_PPTP
	.comm	_GRE_PROTOCOL_PPTP,8,3          ; @GRE_PROTOCOL_PPTP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GRE_VERSION_PPTP but unknown proto\n"

	.no_dead_strip	_gre_pkt_to_tuple
.subsections_via_symbols
