	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetBootFiles                   ## -- Begin function GetBootFiles
	.p2align	4, 0x90
_GetBootFiles:                          ## @GetBootFiles
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_C_MAXFILE@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	movq	_BootFiles@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_FreeStr
	movq	(%r14), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %r15
	jmp	LBB0_9
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%rbx), %edi
	callq	_NewStr
	movq	_BootFiles@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%r14d, %rdx
	movq	%rax, (%rcx,%rdx,8)
	cmpq	$1, %rax
	sbbl	$-1, %r14d
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %rdi
	callq	_readdir
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_15
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_stat
	testq	%rax, %rax
	js	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_S_IFMT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-48(%rbp), %eax
	movq	_S_IFREG@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	(%r12), %r14d
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_syslog
	jmp	LBB0_14
LBB0_15:
	movq	%r13, %rdi
	callq	_closedir
	testl	%r14d, %r14d
	jne	LBB0_18
	jmp	LBB0_16
LBB0_5:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BootDir@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_17
LBB0_7:
	movq	%r13, %rdi
	callq	_closedir
LBB0_16:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BootDir@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
LBB0_17:
	callq	_syslog
	xorl	%r14d, %r14d
LBB0_18:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_C_MAXFILE,4,2                  ## @C_MAXFILE
	.comm	_BootFiles,8,3                  ## @BootFiles
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.1:                               ## @.str.1
	.asciz	"GetBootFiles: can't open directory (%s)\n"

	.comm	_BootDir,4,2                    ## @BootDir
	.comm	_S_IFMT,4,2                     ## @S_IFMT
	.comm	_S_IFREG,4,2                    ## @S_IFREG
L_.str.2:                               ## @.str.2
	.asciz	"GetBootFiles: too many boot files (%s ignored)"

L_.str.3:                               ## @.str.3
	.asciz	"GetBootFiles: no boot files (%s)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetBootFiles                   ; -- Begin function GetBootFiles
	.p2align	2
_GetBootFiles:                          ; @GetBootFiles
	.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
Lloh0:
	adrp	x23, _C_MAXFILE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _C_MAXFILE@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x24, _BootFiles@GOTPAGE
Lloh3:
	ldr	x24, [x24, _BootFiles@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x0, [x8, x19, lsl #3]
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_FreeStr
	ldr	x8, [x24]
	str	xzr, [x8, x19, lsl #3]
	add	x19, x19, #1
	ldrsw	x8, [x23]
	cmp	x19, x8
	b.lt	LBB0_2
LBB0_4:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_opendir
	cbz	x0, LBB0_14
; %bb.5:
	mov	x19, x0
	bl	_readdir
Lloh6:
	adrp	x25, _LOG_ERR@GOTPAGE
Lloh7:
	ldr	x25, [x25, _LOG_ERR@GOTPAGEOFF]
	cbz	x0, LBB0_15
; %bb.6:
	mov	x22, x0
	mov	w20, #0
Lloh8:
	adrp	x26, _S_IFMT@GOTPAGE
Lloh9:
	ldr	x26, [x26, _S_IFMT@GOTPAGEOFF]
Lloh10:
	adrp	x27, _S_IFREG@GOTPAGE
Lloh11:
	ldr	x27, [x27, _S_IFREG@GOTPAGEOFF]
Lloh12:
	adrp	x21, l_.str.2@PAGE
Lloh13:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x22]
	bl	_NewStr
	ldr	x8, [x24]
	str	x0, [x8, w20, sxtw #3]
	cmp	x0, #0
	cinc	w20, w20, ne
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	bl	_readdir
	mov	x22, x0
	cbz	x0, LBB0_13
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	add	x1, sp, #8
	bl	_stat
	tbnz	x0, #63, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [sp, #8]
	ldr	w9, [x26]
	and	w8, w9, w8
	ldr	w9, [x27]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x23]
	cmp	w20, w8
	b.ne	LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x25]
	ldr	w2, [x22]
	mov	x1, x21
	bl	_syslog
	b	LBB0_8
LBB0_13:
	mov	x0, x19
	bl	_closedir
	cbnz	w20, LBB0_18
	b	LBB0_16
LBB0_14:
Lloh14:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _BootDir@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BootDir@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_15:
	mov	x0, x19
	bl	_closedir
LBB0_16:
	ldr	w0, [x25]
Lloh22:
	adrp	x8, _BootDir@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BootDir@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_17:
	bl	_syslog
	mov	w20, #0
LBB0_18:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_C_MAXFILE,4,2                  ; @C_MAXFILE
	.comm	_BootFiles,8,3                  ; @BootFiles
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.1:                               ; @.str.1
	.asciz	"GetBootFiles: can't open directory (%s)\n"

	.comm	_BootDir,4,2                    ; @BootDir
	.comm	_S_IFMT,4,2                     ; @S_IFMT
	.comm	_S_IFREG,4,2                    ; @S_IFREG
l_.str.2:                               ; @.str.2
	.asciz	"GetBootFiles: too many boot files (%s ignored)"

l_.str.3:                               ; @.str.3
	.asciz	"GetBootFiles: no boot files (%s)\n"

.subsections_via_symbols
