	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function count_files
_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	$568, %rsp                      ## imm = 0x238
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	%rsp, -568(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	%rax, -592(%rbp)                ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -600(%rbp)                ## 8-byte Spill
	movl	$512, %eax                      ## imm = 0x200
	addl	(%rbx), %eax
	movq	%rax, -576(%rbp)                ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -584(%rbp)                ## 8-byte Spill
	movq	_count_files.manifest(%rip), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	_distdir@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdx
	movq	-600(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-592(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_snprintf
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	movq	%rax, %rdi
	movq	%rax, _count_files.manifest(%rip)
	testq	%rax, %rax
	je	LBB0_11
LBB0_2:
	callq	_rewind
	movq	_count_files.manifest(%rip), %rdx
	leaq	-560(%rbp), %rdi
	movl	$512, %esi                      ## imm = 0x200
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	leaq	L_.str.2(%rip), %r14
	leaq	-560(%rbp), %r12
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_count_files.manifest(%rip), %rdx
	movq	%r12, %rdi
	movl	$512, %esi                      ## imm = 0x200
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_strcspn
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$1, -560(%rbp)
	sbbq	$-1, %rbx
	leaq	(%rbx,%rbp), %r13
	addq	$-560, %r13                     ## imm = 0xFDD0
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_strcspn
	cmpb	$1, -560(%rbp,%rbx)
	movq	%rax, %rbx
	sbbq	$-1, %rbx
	addq	%r13, %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strcspn
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtol
	movq	%rax, %r13
	testl	%r13d, %r13d
	jne	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.10:
	xorl	%r13d, %r13d
	jmp	LBB0_19
LBB0_11:
	xorl	%eax, %eax
	callq	_archive_read_new
	movq	_archive@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	movq	%rax, %rdi
	callq	_archive_read_support_format_all
	movq	(%r14), %rdi
	callq	_archive_read_support_filter_all
	movq	_distdir@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.5(%rip), %rdx
	movq	-600(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-592(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_snprintf
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_archive_read_open_filename
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_17
## %bb.13:
	movl	$-1, %r13d
	leaq	-608(%rbp), %rbx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_archive_read_next_header
	incl	%r13d
	cmpl	(%r12), %eax
	je	LBB0_14
## %bb.15:
	movq	(%r14), %rdi
	callq	_archive_read_free
	movq	$0, (%r14)
	jmp	LBB0_19
LBB0_16:
	xorl	%edi, %edi
	callq	_archive_error_string
	leaq	L_.str.3(%rip), %rdx
	movq	-584(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-576(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_dialog_msgbox
	jmp	LBB0_18
LBB0_17:
	movq	(%r14), %rdi
	callq	_archive_error_string
	leaq	L_.str.6(%rip), %rdx
	movq	-584(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-576(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r15, %rcx
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_snprintf
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_dialog_msgbox
	movq	$0, (%r14)
LBB0_18:
	movl	$-1, %r13d
LBB0_19:
	movq	-568(%rbp), %rax                ## 8-byte Reload
	movq	%rax, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_count_files.manifest,8,3 ## @count_files.manifest
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/MANIFEST"

	.comm	_distdir,8,3                    ## @distdir
L_.str.1:                               ## @.str.1
	.asciz	"r"

L_.str.2:                               ## @.str.2
	.asciz	"\t"

	.comm	_errno,8,3                      ## @errno
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_archive,8,3                    ## @archive
L_.str.3:                               ## @.str.3
	.asciz	"Error: %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"Extract Error"

	.comm	_TRUE,4,2                       ## @TRUE
L_.str.5:                               ## @.str.5
	.asciz	"%s/%s"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
L_.str.6:                               ## @.str.6
	.asciz	"Error while extracting %s: %s\n"

	.no_dead_strip	_count_files
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function count_files
_count_files:                           ; @count_files
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #544
	mov	x19, sp
	mov	x21, x0
	mov	x8, sp
	str	x8, [x19]                       ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
	ldr	w23, [x8]
	mov	x9, x23
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x23, #15
	and	x10, x10, #0x1fffffff0
	sub	x24, x9, x10
	mov	sp, x24
	ldr	w8, [x8]
	add	w22, w8, #512
	mov	x9, x22
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	adrp	x28, _count_files.manifest@PAGE
	ldr	x0, [x28, _count_files.manifest@PAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _distdir@GOTPAGE
Lloh10:
	ldr	x8, [x8, _distdir@GOTPAGEOFF]
Lloh11:
	ldr	x3, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	mov	x1, x23
	bl	_snprintf
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_fopen
	str	x0, [x28, _count_files.manifest@PAGEOFF]
	cbz	x0, LBB0_11
LBB0_2:
	bl	_rewind
	ldr	x2, [x28, _count_files.manifest@PAGEOFF]
	add	x27, x19, #16
	add	x0, x19, #16
	mov	w1, #512
	bl	_fgets
	cbz	x0, LBB0_11
; %bb.3:
Lloh16:
	adrp	x25, l_.str.2@PAGE
Lloh17:
	add	x25, x25, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x2, [x28, _count_files.manifest@PAGEOFF]
	add	x0, x19, #16
	mov	w1, #512
	bl	_fgets
	cbz	x0, LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x19, #16
	mov	x1, x25
	bl	_strcspn
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, x0
	add	x0, x19, #16
	mov	x1, x21
	mov	x2, x26
	bl	_strncmp
	cbnz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x19, #16]
	cmp	w8, #0
	cinc	x8, x26, ne
	add	x26, x27, x8
	mov	x0, x26
	mov	x1, x25
	bl	_strcspn
	ldrb	w8, [x26]
	cmp	w8, #0
	cinc	x8, x0, ne
	add	x26, x26, x8
	mov	x0, x26
	mov	x1, x25
	bl	_strcspn
	cbz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x26
	mov	x1, #0
	mov	w2, #10
	bl	_strtol
	mov	x26, x0
	cbnz	w26, LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh18:
	adrp	x8, _errno@GOTPAGE
Lloh19:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _EINVAL@GOTPAGE
Lloh22:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.10:
	mov	w26, #0
	b	LBB0_19
LBB0_11:
	bl	_archive_read_new
Lloh24:
	adrp	x25, _archive@GOTPAGE
Lloh25:
	ldr	x25, [x25, _archive@GOTPAGEOFF]
	str	x0, [x25]
	cbz	x0, LBB0_16
; %bb.12:
	bl	_archive_read_support_format_all
	ldr	x0, [x25]
	bl	_archive_read_support_filter_all
Lloh26:
	adrp	x8, _distdir@GOTPAGE
Lloh27:
	ldr	x8, [x8, _distdir@GOTPAGEOFF]
Lloh28:
	ldr	x3, [x8]
	str	x21, [sp, #-16]!
Lloh29:
	adrp	x2, l_.str.5@PAGE
Lloh30:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x24
	mov	x1, x23
	bl	_snprintf
	add	sp, sp, #16
	ldr	x0, [x25]
	mov	x1, x24
	mov	w2, #4096
	bl	_archive_read_open_filename
Lloh31:
	adrp	x23, _ARCHIVE_OK@GOTPAGE
Lloh32:
	ldr	x23, [x23, _ARCHIVE_OK@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_17
; %bb.13:
	mov	w26, #-1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x25]
	add	x1, x19, #8
	bl	_archive_read_next_header
	ldr	w8, [x23]
	add	w26, w26, #1
	cmp	w0, w8
	b.eq	LBB0_14
; %bb.15:
	ldr	x0, [x25]
	bl	_archive_read_free
	str	xzr, [x25]
	b	LBB0_19
LBB0_16:
	bl	_archive_error_string
	mov	x3, x0
Lloh33:
	adrp	x2, l_.str.3@PAGE
Lloh34:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	bl	_snprintf
Lloh35:
	adrp	x8, _TRUE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh37:
	ldr	w4, [x8]
Lloh38:
	adrp	x0, l_.str.4@PAGE
Lloh39:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	bl	_dialog_msgbox
	b	LBB0_18
LBB0_17:
	ldr	x0, [x25]
	bl	_archive_error_string
	str	x0, [sp, #-16]!
Lloh40:
	adrp	x2, l_.str.6@PAGE
Lloh41:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	mov	x3, x21
	bl	_snprintf
	add	sp, sp, #16
Lloh42:
	adrp	x8, _TRUE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh44:
	ldr	w4, [x8]
Lloh45:
	adrp	x0, l_.str.4@PAGE
Lloh46:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	bl	_dialog_msgbox
	str	xzr, [x25]
LBB0_18:
	mov	w26, #-1
LBB0_19:
	ldr	x8, [x19]                       ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-96]
Lloh47:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh48:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	mov	x0, x26
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_count_files.manifest,8,3 ; @count_files.manifest
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/MANIFEST"

	.comm	_distdir,8,3                    ; @distdir
l_.str.1:                               ; @.str.1
	.asciz	"r"

l_.str.2:                               ; @.str.2
	.asciz	"\t"

	.comm	_errno,8,3                      ; @errno
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_archive,8,3                    ; @archive
l_.str.3:                               ; @.str.3
	.asciz	"Error: %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"Extract Error"

	.comm	_TRUE,4,2                       ; @TRUE
l_.str.5:                               ; @.str.5
	.asciz	"%s/%s"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
l_.str.6:                               ; @.str.6
	.asciz	"Error while extracting %s: %s\n"

	.no_dead_strip	_count_files
.subsections_via_symbols
