	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_archive
_read_archive:                          ## @read_archive
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	_ELF_C_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r13d, %r13d
	movl	$1, %r15d
	jmp	LBB0_1
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_elf_kind
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_terminate
	xorl	%r14d, %r14d
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_free
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_elf_next
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_elf_end
	incl	%r15d
	addl	%r14d, %r13d
	testl	%r14d, %r14d
	js	LBB0_13
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	callq	_elf_begin
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_elf_getarhdr
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_elfterminate
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rax
	xorl	%r14d, %r14d
	cmpb	$47, (%rax)
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_strlen
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%r14d, %eax
	addl	$3, %eax
	movslq	%eax, %r14
	movq	%r14, %rdi
	callq	_xmalloc
	movq	(%rbx), %r8
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_snprintf
	movq	%r12, %rdi
	callq	_elf_kind
	cmpl	$128, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$129, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%rbp), %eax
	movl	%eax, (%rsp)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	callq	_read_archive
	movl	%eax, %r14d
	jmp	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movl	16(%rbp), %r9d
	callq	_read_file
	movl	%eax, %r14d
	jmp	LBB0_11
LBB0_2:
	movl	%r13d, %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ELF_C_READ,4,2                 ## @ELF_C_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't get archive header for member %d"

L_.str.1:                               ## @.str.1
	.asciz	"%s(%s)"

L_.str.2:                               ## @.str.2
	.asciz	"%s: Unknown elf kind %d\n"

	.no_dead_strip	_read_archive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_archive
_read_archive:                          ; @read_archive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w6, [sp, #28]                   ; 4-byte Folded Spill
	stp	x4, x5, [sp, #8]                ; 16-byte Folded Spill
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	mov	w21, #0
Lloh0:
	adrp	x8, _ELF_C_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ELF_C_READ@GOTPAGEOFF]
Lloh2:
	ldr	w28, [x8]
	mov	w26, #1
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w19, #0
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x27
	bl	_elf_next
	mov	x28, x0
	mov	x0, x27
	bl	_elf_end
	add	w26, w26, #1
	add	w21, w19, w21
	tbnz	w19, #31, LBB0_14
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	mov	x1, x28
	mov	x2, x24
	bl	_elf_begin
	cbz	x0, LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, x0
	bl	_elf_getarhdr
	mov	x19, x0
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x26
	bl	_elfterminate
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	ldrb	w8, [x8]
	cmp	w8, #47
	b.eq	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_strlen
	mov	x28, x0
	ldr	x0, [x19]
	bl	_strlen
	add	w8, w28, w0
	add	w8, w8, #3
	sxtw	x20, w8
	mov	x0, x20
	bl	_xmalloc
	mov	x28, x0
	ldr	x4, [x19]
	mov	x1, x20
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x23
	bl	_snprintf
	mov	x0, x27
	bl	_elf_kind
	cmp	w0, #128
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #129
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	mov	x1, x27
	mov	x2, x28
	mov	x3, x22
	ldp	x4, x5, [sp, #8]                ; 16-byte Folded Reload
	ldr	w6, [sp, #28]                   ; 4-byte Folded Reload
	bl	_read_archive
	mov	x19, x0
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x27
	mov	x1, x28
	mov	x2, x22
	ldp	x3, x4, [sp, #8]                ; 16-byte Folded Reload
	ldr	w5, [sp, #28]                   ; 4-byte Folded Reload
	bl	_read_file
	mov	x19, x0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x27
	bl	_elf_kind
	mov	x2, x0
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x28
	bl	_terminate
	mov	w19, #0
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	bl	_free
	b	LBB0_2
LBB0_13:
	mov	x19, x21
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ELF_C_READ,4,2                 ; @ELF_C_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't get archive header for member %d"

l_.str.1:                               ; @.str.1
	.asciz	"%s(%s)"

l_.str.2:                               ; @.str.2
	.asciz	"%s: Unknown elf kind %d\n"

	.no_dead_strip	_read_archive
.subsections_via_symbols
