	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_next                       ## -- Begin function elf_next
	.p2align	4, 0x90
_elf_next:                              ## @elf_next
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ELF_C_NULL@GOTPCREL(%rip), %r14
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movq	40(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_2
## %bb.3:
	movq	(%r15), %rax
	movq	_ELF_K_AR@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	8(%r15), %rax
	movq	_ELF_C_READ@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	sete	%dil
	callq	_assert
	movq	16(%rbx), %rax
	xorl	%edi, %edi
	cmpq	16(%r15), %rax
	setg	%dil
	callq	_assert
	movl	16(%rbx), %eax
	movl	24(%rbx), %ecx
	subl	16(%r15), %eax
	addl	%ecx, %eax
	incl	%eax
	andl	$-2, %eax
	xorl	%ecx, %ecx
	cmpl	24(%r15), %eax
	cmovll	%eax, %ecx
	movl	%ecx, 32(%r15)
	jmp	LBB0_4
LBB0_2:
	movq	_ARGUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_LIBELF_SET_ERROR
LBB0_4:
	movq	(%r14), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ELF_C_NULL,8,3                 ## @ELF_C_NULL
	.comm	_ARGUMENT,4,2                   ## @ARGUMENT
	.comm	_ELF_K_AR,8,3                   ## @ELF_K_AR
	.comm	_ELF_C_READ,8,3                 ## @ELF_C_READ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_next                       ; -- Begin function elf_next
	.p2align	2
_elf_next:                              ; @elf_next
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #40]
	cbz	x20, LBB0_3
; %bb.2:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _ELF_K_AR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ELF_K_AR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x21, _ELF_C_READ@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ELF_C_READ@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19, #16]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	cset	w0, gt
	bl	_assert
	ldr	w8, [x19, #16]
	ldr	w9, [x20, #16]
	ldr	w10, [x19, #24]
	sub	w8, w8, w9
	add	w8, w8, w10
	add	w8, w8, #1
	and	w8, w8, #0xfffffffe
	ldr	w9, [x20, #24]
	cmp	w8, w9
	csel	w8, w8, wzr, lt
	str	w8, [x20, #32]
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _ARGUMENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ARGUMENT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_LIBELF_SET_ERROR
LBB0_4:
Lloh8:
	adrp	x21, _ELF_C_NULL@GOTPAGE
Lloh9:
	ldr	x21, [x21, _ELF_C_NULL@GOTPAGEOFF]
LBB0_5:
	ldr	x0, [x21]
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ELF_C_NULL,8,3                 ; @ELF_C_NULL
	.comm	_ARGUMENT,4,2                   ; @ARGUMENT
	.comm	_ELF_K_AR,8,3                   ; @ELF_K_AR
	.comm	_ELF_C_READ,8,3                 ; @ELF_C_READ
.subsections_via_symbols
