	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipgre_rcv
_ipgre_rcv:                             ## @ipgre_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	callq	_dev_net
	movq	%rax, %r15
	movq	(%r14), %rbx
	movq	_ETH_P_TEB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %rbx
	jne	LBB0_1
## %bb.2:
	movq	_gre_tap_net_id@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ipgre_net_id@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_net_generic
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_ip_hdr
	movq	(%r12), %rcx
	movl	(%rcx), %esi
	movl	8(%r14), %r9d
	movl	12(%r14), %edx
	movl	(%rax), %r8d
	movl	4(%rax), %ecx
	movq	%r15, %rdi
	callq	_ip_tunnel_lookup
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_ip_tunnel_rcv
	movq	_PACKET_RCVD@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_PACKET_REJECT@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_TEB,4,2                  ## @ETH_P_TEB
	.comm	_gre_tap_net_id,4,2             ## @gre_tap_net_id
	.comm	_ipgre_net_id,4,2               ## @ipgre_net_id
	.comm	_PACKET_RCVD,4,2                ## @PACKET_RCVD
	.comm	_PACKET_REJECT,4,2              ## @PACKET_REJECT
	.no_dead_strip	_ipgre_rcv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipgre_rcv
_ipgre_rcv:                             ; @ipgre_rcv
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
	mov	x20, x0
	ldr	x0, [x0]
	bl	_dev_net
	mov	x21, x0
	ldr	x22, [x19]
Lloh0:
	adrp	x8, _ETH_P_TEB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_TEB@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htons
Lloh3:
	adrp	x8, _gre_tap_net_id@GOTPAGE
Lloh4:
	ldr	x8, [x8, _gre_tap_net_id@GOTPAGEOFF]
Lloh5:
	adrp	x9, _ipgre_net_id@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ipgre_net_id@GOTPAGEOFF]
	cmp	x22, x0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x0, x21
	bl	_net_generic
	mov	x21, x0
	mov	x0, x20
	bl	_ip_hdr
	ldr	x8, [x20]
	ldr	w1, [x8]
	ldp	w4, w3, [x0]
	ldp	w5, w2, [x19, #8]
	mov	x0, x21
	bl	_ip_tunnel_lookup
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, x20
	mov	x2, x19
	mov	w3, #0
	bl	_ip_tunnel_rcv
Lloh7:
	adrp	x8, _PACKET_RCVD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PACKET_RCVD@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _PACKET_REJECT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PACKET_REJECT@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_TEB,4,2                  ; @ETH_P_TEB
	.comm	_gre_tap_net_id,4,2             ; @gre_tap_net_id
	.comm	_ipgre_net_id,4,2               ; @ipgre_net_id
	.comm	_PACKET_RCVD,4,2                ; @PACKET_RCVD
	.comm	_PACKET_REJECT,4,2              ; @PACKET_REJECT
	.no_dead_strip	_ipgre_rcv
.subsections_via_symbols
