	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function NextPgcn
_NextPgcn:                              ## @NextPgcn
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %ecx
	movl	$1, %eax
	shll	%cl, %eax
	movslq	%esi, %r8
	sarl	$5, %ecx
	movslq	%ecx, %rcx
	orl	%eax, (%rdx,%rcx,4)
	movq	(%rdi), %rsi
	movq	8(%rsi), %rax
	movq	-8(%rax,%r8,8), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jle	LBB0_4
## %bb.1:
	movq	_MAX_PGCN@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %ecx
	jge	LBB0_4
## %bb.2:
	cmpl	(%rsi), %ecx
	jg	LBB0_4
## %bb.3:
	movq	%rcx, %rax
	shrq	$5, %rax
	movl	(%rdx,%rax,4), %edx
	xorl	%eax, %eax
	btl	%ecx, %edx
	cmovael	%ecx, %eax
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PGCN,4,2                   ## @MAX_PGCN
	.no_dead_strip	_NextPgcn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function NextPgcn
_NextPgcn:                              ; @NextPgcn
	.cfi_startproc
; %bb.0:
	mov	w8, #1
	lsl	w8, w8, w1
	asr	w9, w1, #5
	sbfiz	x9, x9, #2, #32
	ldr	w10, [x2, x9]
	orr	w8, w10, w8
	str	w8, [x2, x9]
	ldr	x9, [x0]
	ldr	x8, [x9, #8]
	add	x8, x8, w1, sxtw #3
	ldur	x8, [x8, #-8]
	ldr	w8, [x8]
Lloh0:
	adrp	x10, _MAX_PGCN@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MAX_PGCN@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w8, #1
	ccmp	w8, w10, #0, ge
	b.lt	LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_4
; %bb.3:
	mov	w0, #0
	ret
LBB0_4:
	lsr	x9, x8, #3
	and	x9, x9, #0x1ffffffc
	ldr	w9, [x2, x9]
	lsr	w9, w9, w8
	tst	w9, #0x1
	csel	w0, w8, wzr, eq
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PGCN,4,2                   ; @MAX_PGCN
	.no_dead_strip	_NextPgcn
.subsections_via_symbols
