	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nat64lsn_get_pg
_nat64lsn_get_pg:                       ## @nat64lsn_get_pg
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, %rbx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, %r15
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	callq	_ck_pr_load_ptr
	movq	%rax, %r12
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ck_pr_load_32
	movl	%eax, %r14d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	leal	31(%r14), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$5, %esi
	callq	_ISSET32
	xorl	%ecx, %ecx
	testq	%rax, %rax
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
                                        ## kill: def $r14d killed $r14d killed $r14 def $r14
	cmovel	%ecx, %r14d
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rax
	movslq	%r15d, %rdi
	shlq	$3, %rdi
	addq	(%rax), %rdi
	callq	_ck_pr_load_ptr
	movq	%rax, %r12
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%r13d
	movq	_NAT64LSN_TRY_PGCNT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jge	LBB0_10
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_ck_pr_fence_load
	testq	%r12, %r12
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_FREEMASK_BITCOUNT
	testq	%rax, %rax
	jg	LBB0_3
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	leal	(%r14,%r13), %r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leal	31(%r15), %ebx
	testl	%r15d, %r15d
	cmovnsl	%r15d, %ebx
	movl	%ebx, %r12d
	sarl	$5, %r12d
	movl	%r12d, %esi
	callq	_ISSET32
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	andl	$-32, %ebx
	subl	%ebx, %r15d
	movslq	%r12d, %rbx
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%rbx,4), %edi
	movl	%r15d, %esi
	callq	_ISSET32
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_9
LBB0_10:
	movl	%r14d, %r15d
	addl	%r13d, %r15d
	leal	31(%r14,%r13), %r12d
	cmovnsl	%r15d, %r12d
	sarl	$5, %r12d
LBB0_11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_ISSET32
	xorl	%r12d, %r12d
	testq	%rax, %rax
	cmovel	%r12d, %r15d
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %edx
	callq	_ck_pr_cas_32
LBB0_12:
	movq	%r12, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	testl	%r13d, %r13d
	je	LBB0_12
## %bb.4:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_ck_pr_cas_ptr
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_NAT64LSN_TRY_PGCNT,4,2         ## @NAT64LSN_TRY_PGCNT
	.no_dead_strip	_nat64lsn_get_pg
.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
_nat64lsn_get_pg:                       ; @nat64lsn_get_pg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x5
	mov	x19, x4
	mov	x24, x2
	mov	x25, x1
	mov	x21, x0
	str	x3, [sp, #16]                   ; 8-byte Folded Spill
	mov	x0, x3
	bl	_ck_pr_load_ptr
	mov	x27, x0
	str	x19, [sp, #24]                  ; 8-byte Folded Spill
	mov	x0, x19
	bl	_ck_pr_load_32
	mov	x20, x0
	ldr	w0, [x21]
	add	w8, w20, #31
	cmp	w20, #0
	csel	w8, w8, w20, lt
	asr	w1, w8, #5
	bl	_ISSET32
	mov	w22, #0
	cmp	x0, #0
	csel	w26, wzr, w20, eq
Lloh0:
	adrp	x19, _NAT64LSN_TRY_PGCNT@GOTPAGE
Lloh1:
	ldr	x19, [x19, _NAT64LSN_TRY_PGCNT@GOTPAGEOFF]
	str	x27, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x8, w27
	ldr	x8, [x24, x8, lsl #3]
	ldr	x8, [x8]
	add	x0, x8, w28, sxtw #3
	bl	_ck_pr_load_ptr
	mov	x27, x0
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #1
	ldr	w8, [x19]
	cmp	w22, w8
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_ck_pr_fence_load
	cbz	x27, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x27
	mov	x1, x23
	bl	_FREEMASK_BITCOUNT
	cmp	x0, #1
	b.ge	LBB0_12
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w26, w22
	ldr	w0, [x21]
	add	w9, w8, #31
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w27, w8, #5
	mov	x1, x27
	bl	_ISSET32
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x25, w27, sxtw #2]
	add	w8, w26, w22
	sub	w28, w8, w27, lsl #5
	mov	x1, x28
	bl	_ISSET32
	cbnz	x0, LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, #0
	b	LBB0_2
LBB0_8:
	add	w19, w26, w22
	b	LBB0_10
LBB0_9:
	add	w19, w26, w22
	add	w8, w19, #31
	cmp	w19, #0
	csel	w8, w8, w19, lt
	asr	w27, w8, #5
LBB0_10:
	ldr	w0, [x21]
	mov	x1, x27
	bl	_ISSET32
	cmp	x0, #0
	csel	w2, wzr, w19, eq
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x1, x20
	bl	_ck_pr_cas_32
	mov	x27, #0
LBB0_11:
	mov	x0, x27
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_12:
	cbz	w22, LBB0_11
; %bb.13:
	ldp	x1, x0, [sp, #8]                ; 16-byte Folded Reload
	mov	x2, x27
	bl	_ck_pr_cas_ptr
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NAT64LSN_TRY_PGCNT,4,2         ; @NAT64LSN_TRY_PGCNT
	.no_dead_strip	_nat64lsn_get_pg
.subsections_via_symbols
