	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_non_kept_pack_filenames
_get_non_kept_pack_filenames:           ## @get_non_kept_pack_filenames
	.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
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_packdir@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	movq	%rax, %r14
	leaq	-56(%rbp), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_free
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_readdir
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_15
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	cmpl	$0, (%rbx)
	jle	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14), %edi
	movq	8(%rbx), %rax
	movl	(%rax,%r12,4), %esi
	callq	_fspathcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	incq	%r12
	movslq	(%rbx), %rax
	cmpq	%rax, %r12
	jl	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	jg	LBB0_9
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r12d, %eax
	jg	LBB0_14
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	callq	_strip_suffix
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %edi
	movq	-56(%rbp), %rsi
	callq	_xmemdupz
	movq	%rax, %r14
	movq	_packdir@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rdx
	callq	_mkpath
	movl	%eax, %edi
	callq	_file_exists
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_string_list_append_nodup
	jmp	LBB0_14
LBB0_15:
	movq	%r15, %rdi
	callq	_closedir
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_packdir,4,2                    ## @packdir
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".pack"

L_.str.1:                               ## @.str.1
	.asciz	"%s/%s.keep"

	.no_dead_strip	_get_non_kept_pack_filenames
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_non_kept_pack_filenames
_get_non_kept_pack_filenames:           ; @get_non_kept_pack_filenames
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x25, _packdir@GOTPAGE
Lloh1:
	ldr	x25, [x25, _packdir@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_opendir
	cbz	x0, LBB0_15
; %bb.1:
	mov	x21, x0
	bl	_readdir
	cbz	x0, LBB0_14
; %bb.2:
	mov	x24, x0
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
Lloh4:
	adrp	x23, l_.str.1@PAGE
Lloh5:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_string_list_append_nodup
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_readdir
	mov	x24, x0
	cbz	x0, LBB0_14
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, #0
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x24]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, x26, lsl #2]
	bl	_fspathcmp
	cbz	w0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x26, x26, #1
	ldrsw	x8, [x19]
	cmp	x26, x8
	b.lt	LBB0_7
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19]
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #1
	ccmp	w8, w26, #4, ge
	b.gt	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x24]
	add	x2, sp, #8
	mov	x1, x22
	bl	_strip_suffix
	cbz	w0, LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x24]
	ldr	x1, [sp, #8]
	bl	_xmemdupz
	mov	x24, x0
	ldr	w1, [x25]
	mov	x0, x23
	mov	x2, x24
	bl	_mkpath
	bl	_file_exists
	cbz	w0, LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_free
	b	LBB0_4
LBB0_14:
	mov	x0, x21
	bl	_closedir
LBB0_15:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_packdir,4,2                    ; @packdir
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".pack"

l_.str.1:                               ; @.str.1
	.asciz	"%s/%s.keep"

	.no_dead_strip	_get_non_kept_pack_filenames
.subsections_via_symbols
