	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drop_if_recursive_routing
_drop_if_recursive_routing:             ## @drop_if_recursive_routing
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$0, -20(%rbp)
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	16(%rax), %rcx
	movq	%rcx, -32(%rbp)
	movups	(%rax), %xmm0
	movaps	%xmm0, -48(%rbp)
	movl	16(%rdi), %edi
	callq	_TUNNEL_TYPE
	leaq	8(%rbx), %rsi
	leaq	-20(%rbp), %rdx
	movl	%eax, %edi
	callq	_get_tun_ip_ver
	cmpl	$6, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$4, %eax
	jne	LBB0_10
## %bb.3:
	movq	%r14, %rdi
	callq	_BLEN
	movl	-20(%rbp), %ecx
	addl	$8, %ecx
	cmpl	%ecx, %eax
	jl	LBB0_10
## %bb.4:
	movq	-40(%rbp), %rax
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.5:
	movq	%r14, %rdi
	callq	_BPTR
	movslq	-20(%rbp), %rcx
	movq	-32(%rbp), %rdx
	cmpq	(%rax,%rcx), %rdx
	je	LBB0_9
	jmp	LBB0_10
LBB0_6:
	movq	%r14, %rdi
	callq	_BLEN
	movl	-20(%rbp), %ecx
	addl	$4, %ecx
	cmpl	%ecx, %eax
	jl	LBB0_10
## %bb.7:
	movq	-40(%rbp), %rax
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	callq	_BPTR
	movslq	-20(%rbp), %rsi
	addq	%rax, %rsi
	leaq	-48(%rbp), %rdi
	callq	_IN6_ARE_ADDR_EQUAL
	testq	%rax, %rax
	je	LBB0_10
LBB0_9:
	xorl	%eax, %eax
	callq	_gc_new
	movl	%eax, -24(%rbp)
	movq	$0, 8(%rbx)
	movq	_D_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%rbx), %rdi
	leaq	-24(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_print_link_socket_actual
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_msg
	movq	%rbx, %rdi
	callq	_gc_free
LBB0_10:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_D_LOW,4,2                      ## @D_LOW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Recursive routing detected, drop tun packet to %s"

	.no_dead_strip	_drop_if_recursive_routing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drop_if_recursive_routing
_drop_if_recursive_routing:             ; @drop_if_recursive_routing
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	str	wzr, [sp, #12]
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	q0, [x8]
	ldr	x8, [x8, #16]
	str	x8, [sp, #32]
	str	q0, [sp, #16]
	ldr	w0, [x0, #16]
	bl	_TUNNEL_TYPE
	add	x1, x19, #8
	add	x2, sp, #12
	bl	_get_tun_ip_ver
	cmp	w0, #6
	b.eq	LBB0_6
; %bb.2:
	cmp	w0, #4
	b.ne	LBB0_10
; %bb.3:
	mov	x0, x20
	bl	_BLEN
	ldr	w8, [sp, #12]
	add	w8, w8, #8
	cmp	w0, w8
	b.lt	LBB0_10
; %bb.4:
	ldr	x8, [sp, #24]
Lloh0:
	adrp	x9, _AF_INET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.5:
	mov	x0, x20
	bl	_BPTR
	ldrsw	x8, [sp, #12]
	ldr	x9, [sp, #32]
	ldr	x8, [x0, x8]
	cmp	x9, x8
	b.eq	LBB0_9
	b	LBB0_10
LBB0_6:
	mov	x0, x20
	bl	_BLEN
	ldr	w8, [sp, #12]
	add	w8, w8, #4
	cmp	w0, w8
	b.lt	LBB0_10
; %bb.7:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, _AF_INET6@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AF_INET6@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x20
	bl	_BPTR
	ldrsw	x8, [sp, #12]
	add	x1, x0, x8
	add	x0, sp, #16
	bl	_IN6_ARE_ADDR_EQUAL
	cbz	x0, LBB0_10
LBB0_9:
	bl	_gc_new
	str	w0, [sp, #8]
	str	xzr, [x19, #8]
Lloh6:
	adrp	x8, _D_LOW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _D_LOW@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	ldr	x0, [x19]
	add	x1, sp, #8
	bl	_print_link_socket_actual
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_msg
	add	x0, sp, #8
	bl	_gc_free
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_D_LOW,4,2                      ; @D_LOW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Recursive routing detected, drop tun packet to %s"

	.no_dead_strip	_drop_if_recursive_routing
.subsections_via_symbols
