	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dtoverlay_list_all
_dtoverlay_list_all:                    ## @dtoverlay_list_all
	.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	%rdi, %r12
	leaq	-56(%rbp), %rdi
	callq	_string_vec_init
	movq	_overlay_src_dir@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_opendir
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_readdir
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	callq	_strlen
	cmpl	$5, %eax
	jl	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r15d
	leal	-5(%r15), %r14d
	movq	(%rbx), %rdi
	addq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rsi
	leal	-3(%r15), %edx
	leaq	-56(%rbp), %rdi
	callq	_string_vec_add
	movb	$0, (%rax,%r14)
	addl	$-4, %r15d
	movb	$32, (%rax,%r15)
	jmp	LBB0_5
LBB0_6:
	movq	%r13, %rdi
	callq	_closedir
	cmpl	$0, (%r12)
	jle	LBB0_18
## %bb.7:
	xorl	%r14d, %r14d
	leaq	-56(%rbp), %r15
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	leal	2(%r13), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_string_vec_add
	movq	%rax, %rbx
	movslq	%r13d, %rax
	movb	$0, (%rbx,%rax)
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	movslq	%r13d, %rax
	movb	$42, 1(%rax,%rbx)
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r14
	movslq	(%r12), %rax
	cmpq	%rax, %r14
	jge	LBB0_18
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r14,8), %rax
	movq	(%rax), %rdi
	movl	$95, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %rbx
	incq	%rbx
	movq	%rbx, %rdi
	movl	$46, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %r13
	subq	%rbx, %r13
	cmpl	$7, %r13d
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$7, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_17
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_string_vec_find
	testl	%eax, %eax
	js	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, %r13d
	jmp	LBB0_16
LBB0_18:
	cmpl	$0, -48(%rbp)
	je	LBB0_19
## %bb.20:
	leaq	-56(%rbp), %rdi
	callq	_string_vec_sort
	leaq	L_str(%rip), %rdi
	callq	_puts
	cmpl	$0, -48(%rbp)
	jle	LBB0_23
## %bb.21:
	leaq	L_.str.5(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax
	movq	(%rax,%rbx,8), %r15
	movq	%r15, %rdi
	callq	_strlen
	cltq
	movsbl	1(%rax,%r15), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_printf
	incq	%rbx
	movslq	-48(%rbp), %rax
	cmpq	%rax, %rbx
	jl	LBB0_22
	jmp	LBB0_23
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	callq	_error
	jmp	LBB0_24
LBB0_19:
	leaq	L_str.6(%rip), %rdi
	callq	_puts
LBB0_23:
	leaq	-56(%rbp), %rdi
	callq	_string_vec_uninit
	xorl	%eax, %eax
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_overlay_src_dir,4,2            ## @overlay_src_dir
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".dtbo"

L_.str.1:                               ## @.str.1
	.asciz	"Internal error"

L_.str.2:                               ## @.str.2
	.asciz	"dtparam"

L_.str.5:                               ## @.str.5
	.asciz	"%c %s\n"

L_str:                                  ## @str
	.asciz	"All overlays (* = loaded):"

L_str.6:                                ## @str.6
	.asciz	"No overlays found"

	.no_dead_strip	_dtoverlay_list_all
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dtoverlay_list_all
_dtoverlay_list_all:                    ; @dtoverlay_list_all
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x0
	add	x0, sp, #16
	bl	_string_vec_init
Lloh0:
	adrp	x8, _overlay_src_dir@GOTPAGE
Lloh1:
	ldr	x8, [x8, _overlay_src_dir@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_opendir
	mov	x20, x0
	bl	_readdir
	cbz	x0, LBB0_6
; %bb.1:
	mov	x22, x0
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
	mov	w24, #32
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_readdir
	mov	x22, x0
	cbz	x0, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	bl	_strlen
	subs	w25, w0, #5
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	ldr	x8, [x22]
	add	x0, x8, x25
	mov	x1, x21
	bl	_strcmp
	cbnz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x22]
	sub	w2, w23, #3
	add	x0, sp, #16
	bl	_string_vec_add
	strb	wzr, [x0, x25]
	sub	w8, w23, #4
	strb	w24, [x0, w8, uxtw]
	b	LBB0_2
LBB0_6:
	mov	x0, x20
	bl	_closedir
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.7:
	mov	x23, #0
Lloh5:
	adrp	x20, l_.str.2@PAGE
Lloh6:
	add	x20, x20, l_.str.2@PAGEOFF
	mov	w24, #42
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_11 Depth=1
	add	w2, w21, #2
	add	x0, sp, #16
	mov	x1, x22
	bl	_string_vec_add
	mov	x22, x0
	strb	wzr, [x0, w21, sxtw]
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x22, w21, sxtw
	strb	w24, [x8, #1]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19]
	cmp	x23, x8
	b.ge	LBB0_17
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x0, [x8]
	mov	w1, #95
	bl	_strchr
	cbz	x0, LBB0_21
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x22, x0, #1
	mov	x0, x22
	mov	w1, #46
	bl	_strchr
	cbz	x0, LBB0_21
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	sub	x21, x0, x22
	cmp	w21, #7
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x22
	mov	x1, x20
	mov	w2, #7
	bl	_memcmp
	cbz	x0, LBB0_10
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x0, sp, #16
	mov	x1, x22
	mov	x2, x21
	bl	_string_vec_find
	tbnz	w0, #31, LBB0_8
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [sp, #16]
	ldr	x22, [x8, w0, uxtw #3]
	mov	x0, x22
	bl	_strlen
	mov	x21, x0
	b	LBB0_9
LBB0_17:
	ldr	w8, [sp, #24]
	cbz	w8, LBB0_22
; %bb.18:
	add	x0, sp, #16
	bl	_string_vec_sort
Lloh7:
	adrp	x0, l_str@PAGE
Lloh8:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	w8, [sp, #24]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.19:
	mov	x21, #0
Lloh9:
	adrp	x19, l_.str.5@PAGE
Lloh10:
	add	x19, x19, l_.str.5@PAGEOFF
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #16]
	ldr	x20, [x8, x21, lsl #3]
	mov	x0, x20
	bl	_strlen
	add	x8, x20, w0, sxtw
	ldrsb	x8, [x8, #1]
	stp	x8, x20, [sp]
	mov	x0, x19
	bl	_printf
	add	x21, x21, #1
	ldrsw	x8, [sp, #24]
	cmp	x21, x8
	b.lt	LBB0_20
	b	LBB0_23
LBB0_21:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
	b	LBB0_24
LBB0_22:
Lloh13:
	adrp	x0, l_str.6@PAGE
Lloh14:
	add	x0, x0, l_str.6@PAGEOFF
	bl	_puts
LBB0_23:
	add	x0, sp, #16
	bl	_string_vec_uninit
	mov	w0, #0
LBB0_24:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_overlay_src_dir,4,2            ; @overlay_src_dir
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".dtbo"

l_.str.1:                               ; @.str.1
	.asciz	"Internal error"

l_.str.2:                               ; @.str.2
	.asciz	"dtparam"

l_.str.5:                               ; @.str.5
	.asciz	"%c %s\n"

l_str:                                  ; @str
	.asciz	"All overlays (* = loaded):"

l_str.6:                                ; @str.6
	.asciz	"No overlays found"

	.no_dead_strip	_dtoverlay_list_all
.subsections_via_symbols
