	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pe_nextscn                     ## -- Begin function pe_nextscn
	.p2align	4, 0x90
_pe_nextscn:                            ## @pe_nextscn
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.4:
	movq	_ps_next@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rsi, %rdi
	movl	%eax, %esi
	callq	_STAILQ_NEXT
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_9
LBB0_3:
	callq	_STAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_9
LBB0_6:
	movq	_ps_next@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %ecx
	decl	%ecx
	cmpl	$65535, %ecx                    ## imm = 0xFFFF
	jb	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rbx), %esi
	movq	%rax, %rdi
	callq	_STAILQ_NEXT
	testq	%rax, %rax
	jne	LBB0_7
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_ps_next,4,2                    ## @ps_next
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pe_nextscn                     ; -- Begin function pe_nextscn
	.p2align	2
_pe_nextscn:                            ; @pe_nextscn
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x19, _ps_next@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ps_next@GOTPAGEOFF]
	cbz	x1, LBB0_4
; %bb.2:
	ldr	w8, [x19]
	mov	x0, x1
	mov	x1, x8
	bl	_STAILQ_NEXT
	cbnz	x0, LBB0_5
	b	LBB0_8
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _errno@GOTPAGE
Lloh6:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh7:
	str	w8, [x9]
	b	LBB0_8
LBB0_4:
	bl	_STAILQ_FIRST
	cbz	x0, LBB0_8
LBB0_5:
	mov	w20, #65535
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x0]
	sub	w8, w8, #1
	cmp	w8, w20
	b.lo	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x19]
	bl	_STAILQ_NEXT
	cbnz	x0, LBB0_6
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_ps_next,4,2                    ; @ps_next
.subsections_via_symbols
