	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gre_cisco_rcv
_gre_cisco_rcv:                         ## @gre_cisco_rcv
	.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	%rdi, %r12
	movl	$0, -52(%rbp)
	leaq	-48(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	callq	_parse_gre_header
	testq	%rax, %rax
	js	LBB0_8
## %bb.1:
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	_GRE_IP_PROTO_MAX@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_7
## %bb.2:
	xorl	%ebx, %ebx
	movq	_gre_cisco_proto_list@GOTPCREL(%rip), %r13
	movq	_PACKET_RCVD@GOTPCREL(%rip), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	leaq	-48(%rbp), %rsi
	callq	*(%rax)
	cmpl	(%r14), %eax
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	jmp	LBB0_9
LBB0_7:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	_ICMP_DEST_UNREACH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ICMP_PORT_UNREACH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_icmp_send
LBB0_8:
	movq	%r12, %rdi
	callq	_kfree_skb
LBB0_9:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRE_IP_PROTO_MAX,4,2           ## @GRE_IP_PROTO_MAX
	.comm	_gre_cisco_proto_list,8,3       ## @gre_cisco_proto_list
	.comm	_PACKET_RCVD,4,2                ## @PACKET_RCVD
	.comm	_ICMP_DEST_UNREACH,4,2          ## @ICMP_DEST_UNREACH
	.comm	_ICMP_PORT_UNREACH,4,2          ## @ICMP_PORT_UNREACH
	.no_dead_strip	_gre_cisco_rcv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gre_cisco_rcv
_gre_cisco_rcv:                         ; @gre_cisco_rcv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	str	wzr, [sp, #4]
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_parse_gre_header
	tbnz	x0, #63, LBB0_8
; %bb.1:
	bl	_rcu_read_lock
Lloh0:
	adrp	x20, _GRE_IP_PROTO_MAX@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GRE_IP_PROTO_MAX@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x21, #0
Lloh2:
	adrp	x22, _gre_cisco_proto_list@GOTPAGE
Lloh3:
	ldr	x22, [x22, _gre_cisco_proto_list@GOTPAGEOFF]
Lloh4:
	adrp	x23, _PACKET_RCVD@GOTPAGE
Lloh5:
	ldr	x23, [x23, _PACKET_RCVD@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w0, [x8, x21, lsl #2]
	bl	_rcu_dereference
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x0]
	add	x1, sp, #8
	mov	x0, x19
	blr	x8
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.6:
	bl	_rcu_read_unlock
	b	LBB0_9
LBB0_7:
	bl	_rcu_read_unlock
Lloh6:
	adrp	x8, _ICMP_DEST_UNREACH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ICMP_DEST_UNREACH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _ICMP_PORT_UNREACH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICMP_PORT_UNREACH@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_icmp_send
LBB0_8:
	mov	x0, x19
	bl	_kfree_skb
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GRE_IP_PROTO_MAX,4,2           ; @GRE_IP_PROTO_MAX
	.comm	_gre_cisco_proto_list,8,3       ; @gre_cisco_proto_list
	.comm	_PACKET_RCVD,4,2                ; @PACKET_RCVD
	.comm	_ICMP_DEST_UNREACH,4,2          ; @ICMP_DEST_UNREACH
	.comm	_ICMP_PORT_UNREACH,4,2          ; @ICMP_PORT_UNREACH
	.no_dead_strip	_gre_cisco_rcv
.subsections_via_symbols
