	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_count_files                    ## -- Begin function count_files
	.p2align	4, 0x90
_count_files:                           ## @count_files
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	_EV_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_elf_version
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_warning
	incl	%ebx
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	cmpq	%r15, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_17
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %r12
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_open
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r14d
	movq	_ELF_C_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_elf_begin
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_elf_kind
	cmpl	$128, %eax
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$129, %eax
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %edi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_count_archive
	testl	%eax, %eax
	js	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	addl	%eax, -44(%rbp)                 ## 4-byte Folded Spill
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_warning
	incl	%ebx
	jmp	LBB0_15
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_warning
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_elf_end
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %edi
	callq	_close
	jmp	LBB0_16
LBB0_17:
	movl	$-1, %eax
	testl	%ebx, %ebx
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jg	LBB0_19
	jmp	LBB0_18
LBB0_1:
	xorl	%r14d, %r14d
LBB0_18:
	leaq	L_.str.3(%rip), %rsi
	movl	$2, %edi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	callq	_debug
	movl	%r14d, %eax
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_CURRENT,4,2                 ## @EV_CURRENT
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't read input file %s"

	.comm	_ELF_C_READ,4,2                 ## @ELF_C_READ
L_.str.1:                               ## @.str.1
	.asciz	"Can't open input file %s: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"Input file %s is corrupt\n"

L_.str.3:                               ## @.str.3
	.asciz	"Found %d files in %d input files\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_count_files                    ; -- Begin function count_files
	.p2align	2
_count_files:                           ; @count_files
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _EV_CURRENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_CURRENT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_elf_version
	cmp	w19, #1
	b.lt	LBB0_18
; %bb.1:
	mov	w20, #0
	mov	w28, #0
	str	w19, [sp, #12]                  ; 4-byte Folded Spill
	mov	w24, w19
Lloh3:
	adrp	x23, _O_RDONLY@GOTPAGE
Lloh4:
	ldr	x23, [x23, _O_RDONLY@GOTPAGEOFF]
Lloh5:
	adrp	x22, l_.str@PAGE
Lloh6:
	add	x22, x22, l_.str@PAGEOFF
Lloh7:
	adrp	x19, _ELF_C_READ@GOTPAGE
Lloh8:
	ldr	x19, [x19, _ELF_C_READ@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x1, x26
	bl	_warning
	add	w28, w28, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #8
	subs	x24, x24, #1
	b.eq	LBB0_16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x21]
	ldr	w1, [x23]
	mov	x0, x26
	bl	_open
	tbnz	w0, #31, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x0
	ldr	w1, [x19]
	mov	x2, #0
	bl	_elf_begin
	cbz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x0
	bl	_elf_kind
	cmp	w0, #128
	b.eq	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #129
	b.ne	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	mov	x1, x27
	mov	x2, x26
	bl	_count_archive
	tbnz	w0, #31, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w0, w20
	b	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #-1
	bl	_elf_errmsg
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x26
	bl	_warning
	add	w28, w28, #1
	b	LBB0_15
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x26
	bl	_warning
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w28, w28, #1
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x27
	bl	_elf_end
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	_close
	b	LBB0_3
LBB0_16:
	cmp	w28, #0
	ldr	w19, [sp, #12]                  ; 4-byte Folded Reload
	b.le	LBB0_19
; %bb.17:
	mov	w20, #-1
	b	LBB0_20
LBB0_18:
	mov	w20, #0
LBB0_19:
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #2
	mov	x2, x20
	mov	x3, x19
	bl	_debug
LBB0_20:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_CURRENT,4,2                 ; @EV_CURRENT
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't read input file %s"

	.comm	_ELF_C_READ,4,2                 ; @ELF_C_READ
l_.str.1:                               ; @.str.1
	.asciz	"Can't open input file %s: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"Input file %s is corrupt\n"

l_.str.3:                               ; @.str.3
	.asciz	"Found %d files in %d input files\n"

.subsections_via_symbols
