	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nat64lsn_next_pgidx
_nat64lsn_next_pgidx:                   ## @nat64lsn_next_pgidx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movl	(%rdx), %eax
	movl	(%rsi), %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	jge	LBB0_3
## %bb.2:
	incl	%eax
	jmp	LBB0_9
LBB0_3:
	movl	$0, (%rdx)
	movq	_UINT16_MAX@GOTPCREL(%rip), %rax
	cmpl	$65, (%rax)
	jl	LBB0_5
## %bb.4:
	movl	$64, (%rdx)
	jmp	LBB0_10
LBB0_5:
	movq	_NAT64_MIN_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	cmpl	$128, %eax
	je	LBB0_8
## %bb.6:
	cmpl	$129, %eax
	jne	LBB0_11
## %bb.7:
	movl	$128, (%rdx)
	jmp	LBB0_10
LBB0_8:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	movl	%eax, (%rdx)
LBB0_10:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_11:
	movl	$129, (%rdx)
	movq	(%rdx), %rax
	cmpq	(%rdi), %rax
	jge	LBB0_13
## %bb.12:
	incq	%rax
	movq	%rax, (%rdx)
	movl	$1, %eax
	popq	%rbp
	retq
LBB0_13:
	movq	_LAST_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT16_MAX,4,2                 ## @UINT16_MAX
	.comm	_NAT64_MIN_PORT,4,2             ## @NAT64_MIN_PORT
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
	.comm	_LAST_IDX,4,2                   ## @LAST_IDX
	.no_dead_strip	_nat64lsn_next_pgidx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nat64lsn_next_pgidx
_nat64lsn_next_pgidx:                   ; @nat64lsn_next_pgidx
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_3
; %bb.1:
	ldr	w8, [x2]
	ldr	w9, [x1]
	sub	w9, w9, #1
	cmp	w8, w9
	b.ge	LBB0_3
; %bb.2:
	mov	w0, #0
	add	w8, w8, #1
	str	w8, [x2]
	ret
LBB0_3:
	str	wzr, [x2]
Lloh0:
	adrp	x8, _UINT16_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UINT16_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #65
	b.lt	LBB0_5
; %bb.4:
	mov	w0, #0
	mov	w8, #64
	str	w8, [x2]
	ret
LBB0_5:
Lloh3:
	adrp	x8, _NAT64_MIN_PORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NAT64_MIN_PORT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x2]
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.6:
	cmp	w8, #129
	b.ne	LBB0_9
; %bb.7:
	mov	w0, #0
	mov	w8, #128
	str	w8, [x2]
	ret
LBB0_8:
	mov	w0, #0
Lloh6:
	adrp	x8, _IPPROTO_UDP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPPROTO_UDP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x2]
	ret
LBB0_9:
	mov	w8, #129
	str	w8, [x2]
	ldr	x8, [x2]
	ldr	x9, [x0]
	cmp	x8, x9
	b.ge	LBB0_11
; %bb.10:
	add	x8, x8, #1
	str	x8, [x2]
	mov	w0, #1
	ret
LBB0_11:
Lloh9:
	adrp	x8, _LAST_IDX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LAST_IDX@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x2]
	mov	w0, #-1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT16_MAX,4,2                 ; @UINT16_MAX
	.comm	_NAT64_MIN_PORT,4,2             ; @NAT64_MIN_PORT
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
	.comm	_LAST_IDX,4,2                   ; @LAST_IDX
	.no_dead_strip	_nat64lsn_next_pgidx
.subsections_via_symbols
