	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_getarsym                   ## -- Begin function elf_getarsym
	.p2align	4, 0x90
_elf_getarsym:                          ## @elf_getarsym
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	$0, -24(%rbp)
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	(%rdi), %rax
	movq	_ELF_K_AR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	32(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	movq	16(%rdi), %rax
	movq	%rax, -24(%rbp)
	jmp	LBB0_11
LBB0_2:
	movq	_ARGUMENT@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_LIBELF_SET_ERROR
LBB0_11:
	testq	%r14, %r14
	je	LBB0_13
## %bb.12:
	movq	-24(%rbp), %rax
	movq	%rax, (%r14)
LBB0_13:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	cmpq	$0, 24(%rdi)
	je	LBB0_9
## %bb.6:
	movq	_LIBELF_F_AR_VARIANT_SVR4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rdi)
	je	LBB0_8
## %bb.7:
	leaq	-24(%rbp), %rsi
	callq	__libelf_ar_process_svr4_symtab
	movq	%rax, %rbx
	jmp	LBB0_11
LBB0_9:
	movq	_ARCHIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	leaq	-24(%rbp), %rsi
	callq	__libelf_ar_process_bsd_symtab
	movq	%rax, %rbx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ELF_K_AR,8,3                   ## @ELF_K_AR
	.comm	_ARGUMENT,4,2                   ## @ARGUMENT
	.comm	_LIBELF_F_AR_VARIANT_SVR4,4,2   ## @LIBELF_F_AR_VARIANT_SVR4
	.comm	_ARCHIVE,4,2                    ## @ARCHIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_getarsym                   ; -- Begin function elf_getarsym
	.p2align	2
_elf_getarsym:                          ; @elf_getarsym
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	str	xzr, [sp, #8]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ELF_K_AR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ELF_K_AR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_9
; %bb.3:
	ldr	x9, [x0, #16]
	str	x9, [sp, #8]
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _ARGUMENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARGUMENT@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_LIBELF_SET_ERROR
	mov	x8, #0
LBB0_6:
	cbz	x19, LBB0_8
; %bb.7:
	ldr	x9, [sp, #8]
	str	x9, [x19]
LBB0_8:
	mov	x0, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_9:
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_12
; %bb.10:
	ldr	w8, [x0, #8]
Lloh5:
	adrp	x9, _LIBELF_F_AR_VARIANT_SVR4@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LIBELF_F_AR_VARIANT_SVR4@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	add	x1, sp, #8
	tst	w9, w8
	b.eq	LBB0_13
; %bb.11:
	bl	__libelf_ar_process_svr4_symtab
	mov	x8, x0
	b	LBB0_6
LBB0_12:
Lloh8:
	adrp	x8, _ARCHIVE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ARCHIVE@GOTPAGEOFF]
	b	LBB0_5
LBB0_13:
	bl	__libelf_ar_process_bsd_symtab
	mov	x8, x0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ELF_K_AR,8,3                   ; @ELF_K_AR
	.comm	_ARGUMENT,4,2                   ; @ARGUMENT
	.comm	_LIBELF_F_AR_VARIANT_SVR4,4,2   ; @LIBELF_F_AR_VARIANT_SVR4
	.comm	_ARCHIVE,4,2                    ; @ARCHIVE
.subsections_via_symbols
