	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_nextscn                    ## -- Begin function elf_nextscn
	.p2align	4, 0x90
_elf_nextscn:                           ## @elf_nextscn
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rsi, %rdx
	movq	%rdi, %rax
	movq	(%rdi), %rcx
	movq	_ELF_K_ELF@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_4
## %bb.2:
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.3:
	cmpq	%rax, (%rdx)
	je	LBB0_6
LBB0_4:
	movq	_ARGUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_LIBELF_SET_ERROR
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_5:
	movl	$1, %esi
	movq	%rax, %rdi
	popq	%rbp
	jmp	_elf_getscn                     ## TAILCALL
LBB0_6:
	movq	_scntree@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	addq	$8, %rax
	movq	%rax, %rsi
	popq	%rbp
	jmp	_RB_NEXT                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ELF_K_ELF,8,3                  ## @ELF_K_ELF
	.comm	_ARGUMENT,4,2                   ## @ARGUMENT
	.comm	_scntree,4,2                    ## @scntree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_nextscn                    ; -- Begin function elf_nextscn
	.p2align	2
_elf_nextscn:                           ; @elf_nextscn
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ELF_K_ELF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ELF_K_ELF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	x2, x1
	cbz	x1, LBB0_5
; %bb.3:
	ldr	x8, [x2]
	cmp	x8, x0
	b.eq	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _ARGUMENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARGUMENT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_LIBELF_SET_ERROR
	mov	x0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	w1, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_elf_getscn
LBB0_6:
Lloh6:
	adrp	x8, _scntree@GOTPAGE
Lloh7:
	ldr	x8, [x8, _scntree@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	x1, x0, #8
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_RB_NEXT
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ELF_K_ELF,8,3                  ; @ELF_K_ELF
	.comm	_ARGUMENT,4,2                   ; @ARGUMENT
	.comm	_scntree,4,2                    ; @scntree
.subsections_via_symbols
