	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nat64lsn_get_pg_byidx
_nat64lsn_get_pg_byidx:                 ## @nat64lsn_get_pg_byidx
	.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, %rbx
	movq	8(%rdi), %r15
	movl	(%rsi), %eax
	xorl	%r14d, %r14d
	movb	(%rdi), %dl
	xorl	%ecx, %ecx
	subb	%dl, %cl
	movl	$-1, %edx
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %edx
	notl	%edx
	andl	%eax, %edx
	movslq	%edx, %rcx
	imulq	$56, %rcx, %r12
	xorl	%edi, %edi
	cmpl	%eax, (%r15,%r12)
	sete	%dil
	callq	_MPASS
	movl	(%rbx), %ecx
	movq	_NAT64_MIN_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	negl	%edx
	leal	(%rcx,%rdx), %ebx
	addl	$63, %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$6, %ebx
	cmpl	$128, %ecx
	je	LBB0_5
## %bb.1:
	cmpl	$129, %ecx
	je	LBB0_7
## %bb.2:
	cmpl	$130, %ecx
	jne	LBB0_10
## %bb.3:
	movq	48(%r15,%r12), %rcx
	leal	2047(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$11, %edx
	movslq	%edx, %r14
	movl	(%rcx,%r14,4), %edi
	leal	31(%rbx), %eax
	testl	%ebx, %ebx
	cmovnsl	%ebx, %eax
	andl	$-32, %eax
	subl	%eax, %ebx
	movl	%ebx, %esi
	callq	_ISSET32
	testl	%eax, %eax
	je	LBB0_11
## %bb.4:
	movq	40(%r15,%r12), %rax
	jmp	LBB0_9
LBB0_5:
	movq	16(%r15,%r12), %rcx
	leal	2047(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$11, %edx
	movslq	%edx, %r14
	movl	(%rcx,%r14,4), %edi
	leal	31(%rbx), %eax
	testl	%ebx, %ebx
	cmovnsl	%ebx, %eax
	andl	$-32, %eax
	subl	%eax, %ebx
	movl	%ebx, %esi
	callq	_ISSET32
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:
	movq	8(%r15,%r12), %rax
	jmp	LBB0_9
LBB0_7:
	movq	32(%r15,%r12), %rcx
	leal	2047(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$11, %edx
	movslq	%edx, %r14
	movl	(%rcx,%r14,4), %edi
	leal	31(%rbx), %eax
	testl	%ebx, %ebx
	cmovnsl	%ebx, %eax
	andl	$-32, %eax
	subl	%eax, %ebx
	movl	%ebx, %esi
	callq	_ISSET32
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	movq	24(%r15,%r12), %rax
LBB0_9:
	movq	(%rax,%r14,8), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %r14
	jmp	LBB0_10
LBB0_11:
	xorl	%r14d, %r14d
LBB0_10:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAT64_MIN_PORT,4,2             ## @NAT64_MIN_PORT
	.no_dead_strip	_nat64lsn_get_pg_byidx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nat64lsn_get_pg_byidx
_nat64lsn_get_pg_byidx:                 ; @nat64lsn_get_pg_byidx
	.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
	ldr	x20, [x0, #8]
	ldr	w8, [x1]
	ldr	w9, [x0]
	neg	w9, w9
	mov	w10, #-1
	lsl	w9, w10, w9
	bic	w9, w8, w9
	sxtw	x21, w9
	mov	w10, #56
	smull	x9, w9, w10
	ldr	w9, [x20, x9]
	cmp	w9, w8
	cset	w0, eq
	bl	_MPASS
	ldr	w10, [x19]
Lloh0:
	adrp	x8, _NAT64_MIN_PORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAT64_MIN_PORT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w9, w10, w8
	add	w8, w9, #63
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w8, w8, #6
	cmp	w10, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w10, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	w10, #130
	b.ne	LBB0_10
; %bb.3:
	mov	w10, #56
	madd	x10, x21, x10, x20
	ldr	x10, [x10, #48]
	add	w11, w9, #2047
	cmp	w9, #0
	csel	w22, w11, w9, lt
	asr	w9, w22, #11
	ldr	w0, [x10, w9, sxtw #2]
	negs	w9, w8
	and	w9, w9, #0x1f
	and	w8, w8, #0x1f
	csneg	w19, w8, w9, mi
	mov	x1, x19
	bl	_ISSET32
	cbz	w0, LBB0_10
; %bb.4:
	sbfx	x8, x22, #11, #21
	mov	w9, #56
	madd	x9, x21, x9, x20
	ldr	x9, [x9, #40]
	b	LBB0_9
LBB0_5:
	mov	w10, #56
	madd	x10, x21, x10, x20
	ldr	x10, [x10, #16]
	add	w11, w9, #2047
	cmp	w9, #0
	csel	w22, w11, w9, lt
	asr	w9, w22, #11
	ldr	w0, [x10, w9, sxtw #2]
	negs	w9, w8
	and	w9, w9, #0x1f
	and	w8, w8, #0x1f
	csneg	w19, w8, w9, mi
	mov	x1, x19
	bl	_ISSET32
	cbz	w0, LBB0_10
; %bb.6:
	sbfx	x8, x22, #11, #21
	mov	w9, #56
	madd	x9, x21, x9, x20
	ldr	x9, [x9, #8]
	b	LBB0_9
LBB0_7:
	mov	w10, #56
	madd	x10, x21, x10, x20
	ldr	x10, [x10, #32]
	add	w11, w9, #2047
	cmp	w9, #0
	csel	w22, w11, w9, lt
	asr	w9, w22, #11
	ldr	w0, [x10, w9, sxtw #2]
	negs	w9, w8
	and	w9, w9, #0x1f
	and	w8, w8, #0x1f
	csneg	w19, w8, w9, mi
	mov	x1, x19
	bl	_ISSET32
	cbz	w0, LBB0_10
; %bb.8:
	sbfx	x8, x22, #11, #21
	mov	w9, #56
	madd	x9, x21, x9, x20
	ldr	x9, [x9, #24]
LBB0_9:
	ldr	x8, [x9, x8, lsl #3]
	ldr	x8, [x8]
	ldr	x0, [x8, w19, sxtw #3]
	b	LBB0_11
LBB0_10:
	mov	x0, #0
LBB0_11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NAT64_MIN_PORT,4,2             ; @NAT64_MIN_PORT
	.no_dead_strip	_nat64lsn_get_pg_byidx
.subsections_via_symbols
