	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sfs_ls                         ## -- Begin function sfs_ls
	.p2align	4, 0x90
_sfs_ls:                                ## @sfs_ls
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rsi
	leaq	-32(%rbp), %rdi
	xorl	%edx, %edx
	callq	_sqfs_open_image
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_die
LBB0_2:
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sqfs_inode_root
	leaq	-56(%rbp), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_sqfs_traverse_open
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_die
LBB0_4:
	leaq	-56(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	callq	_sqfs_traverse_next
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	leaq	L_.str.2(%rip), %r14
	leaq	-56(%rbp), %r15
	leaq	-40(%rbp), %rbx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_sqfs_traverse_next
	testq	%rax, %rax
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -48(%rbp)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_printf
	jmp	LBB0_8
LBB0_9:
	cmpq	$0, -40(%rbp)
	je	LBB0_11
## %bb.10:
	leaq	L_.str.3(%rip), %rdi
	callq	_die
LBB0_11:
	leaq	-56(%rbp), %rdi
	callq	_sqfs_traverse_close
	movl	-32(%rbp), %edi
	callq	_sqfs_fd_close
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQFS_OK,8,3                    ## @SQFS_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sqfs_open_image error"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"sqfs_traverse_next error"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sfs_ls                         ; -- Begin function sfs_ls
	.p2align	2
_sfs_ls:                                ; @sfs_ls
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x1, x0
	mov	x0, sp
	mov	w2, #0
	bl	_sqfs_open_image
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_2:
	mov	x0, sp
	bl	_sqfs_inode_root
	mov	x2, x0
	add	x0, sp, #8
	mov	x1, sp
	bl	_sqfs_traverse_open
	str	x0, [sp, #24]
	cbz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_die
LBB0_4:
	add	x0, sp, #8
	add	x1, sp, #24
	bl	_sqfs_traverse_next
	cbz	x0, LBB0_9
; %bb.5:
Lloh4:
	adrp	x19, l_.str.2@PAGE
Lloh5:
	add	x19, x19, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #8
	add	x1, sp, #24
	bl	_sqfs_traverse_next
	cbz	x0, LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #16]
	cbnz	w8, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_printf
	b	LBB0_6
LBB0_9:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_11
; %bb.10:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_die
LBB0_11:
	add	x0, sp, #8
	bl	_sqfs_traverse_close
	ldr	w0, [sp]
	bl	_sqfs_fd_close
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SQFS_OK,8,3                    ; @SQFS_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sqfs_open_image error"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"sqfs_traverse_next error"

.subsections_via_symbols
