	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gre_unique_tuple
_gre_unique_tuple:                      ## @gre_unique_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_IP_NAT_MANIP_SRC@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	cmpl	%edx, (%rax)
	sete	%r14b
	movq	_IP_NAT_RANGE_PROTO_SPECIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_3
## %bb.4:
	movl	8(%r12), %edi
	callq	_ntohs
	movl	%eax, %r15d
	movl	4(%r12), %edi
	callq	_ntohs
	movl	%eax, %r12d
	subl	%r15d, %r12d
	leaq	L_.str.1(%rip), %rdi
	leal	1(%r12), %edx
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	incl	%r12d
	jne	LBB0_5
	jmp	LBB0_9
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_pr_debug
	leaq	L_.str.1(%rip), %rdi
	movl	$1, %r15d
	movl	$65535, %r12d                   ## imm = 0xFFFF
	movl	$1, %esi
	movl	$65535, %edx                    ## imm = 0xFFFF
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_5:
	movb	%r14b, %r13b
	shlq	$2, %r13
	movl	_gre_unique_tuple.key(%rip), %eax
	movl	%r12d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edx, %edx
	divl	%r12d
                                        ## kill: def $edx killed $edx def $rdx
	leal	(%rdx,%r15), %edi
	callq	_htons
	movl	%eax, (%rbx,%r13)
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_nf_nat_used_tuple
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	_gre_unique_tuple.key(%rip), %eax
	incl	%eax
	movl	%eax, _gre_unique_tuple.key(%rip)
	decl	%r14d
	jne	LBB0_6
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_10
LBB0_7:
	movl	$1, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_gre_unique_tuple.key,4,2 ## @gre_unique_tuple.key
	.comm	_IP_NAT_MANIP_SRC,4,2           ## @IP_NAT_MANIP_SRC
	.comm	_IP_NAT_RANGE_PROTO_SPECIFIED,4,2 ## @IP_NAT_RANGE_PROTO_SPECIFIED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%p: NATing GRE PPTP\n"

L_.str.1:                               ## @.str.1
	.asciz	"min = %u, range_size = %u\n"

L_.str.2:                               ## @.str.2
	.asciz	"%p: no NAT mapping\n"

	.no_dead_strip	_gre_unique_tuple
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gre_unique_tuple
_gre_unique_tuple:                      ; @gre_unique_tuple
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w8, [x3]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x19, x3
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _IP_NAT_MANIP_SRC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IP_NAT_MANIP_SRC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	cset	w23, eq
	ldr	w8, [x1]
Lloh3:
	adrp	x9, _IP_NAT_RANGE_PROTO_SPECIFIED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IP_NAT_RANGE_PROTO_SPECIFIED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	w0, [x22, #8]
	bl	_ntohs
	mov	x21, x0
	ldr	w0, [x22, #4]
	bl	_ntohs
	sub	w8, w0, w21
	add	w22, w8, #1
	stp	x21, x22, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	cbz	w22, LBB0_8
; %bb.3:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_5
LBB0_4:
	str	x19, [sp]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	w22, #65535
	mov	w21, #1
	stp	x21, x22, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
LBB0_5:
	lsl	x23, x23, #2
	adrp	x24, _gre_unique_tuple.key@PAGE
	ldr	w8, [x24, _gre_unique_tuple.key@PAGEOFF]
	mov	x25, x22
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	udiv	w9, w8, w22
	msub	w8, w9, w22, w8
	add	w0, w8, w21
	bl	_htons
	str	w0, [x20, x23]
	mov	x0, x20
	mov	x1, x19
	bl	_nf_nat_used_tuple
	cbz	w0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x24, _gre_unique_tuple.key@PAGEOFF]
	add	w8, w8, #1
	str	w8, [x24, _gre_unique_tuple.key@PAGEOFF]
	subs	w25, w25, #1
	b.ne	LBB0_6
LBB0_8:
	str	x19, [sp]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
LBB0_9:
	mov	w0, #0
	b	LBB0_11
LBB0_10:
	mov	w0, #1
LBB0_11:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_gre_unique_tuple.key,4,2 ; @gre_unique_tuple.key
	.comm	_IP_NAT_MANIP_SRC,4,2           ; @IP_NAT_MANIP_SRC
	.comm	_IP_NAT_RANGE_PROTO_SPECIFIED,4,2 ; @IP_NAT_RANGE_PROTO_SPECIFIED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%p: NATing GRE PPTP\n"

l_.str.1:                               ; @.str.1
	.asciz	"min = %u, range_size = %u\n"

l_.str.2:                               ; @.str.2
	.asciz	"%p: no NAT mapping\n"

	.no_dead_strip	_gre_unique_tuple
.subsections_via_symbols
