	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffs_dump_dirbuf
_ffs_dump_dirbuf:                       ## @ffs_dump_dirbuf
	.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
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	xorl	%edi, %edi
	testq	%r12, %r12
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movl	(%r12), %edx
	movl	4(%r12), %ecx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printf
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %r14
	movl	24(%r14,%rbx), %edi
	movl	%r15d, %esi
	callq	_ufs_rw16
	movl	%eax, %r13d
	movl	20(%r14,%rbx), %edi
	movl	%r15d, %esi
	callq	_ufs_rw32
	movl	%eax, %r15d
	movl	16(%r14,%rbx), %edi
	callq	_DTTOIF
	movl	%eax, %edi
	callq	_inode_type
	movl	(%r14,%rbx), %r9d
	movq	8(%r14,%rbx), %rcx
	movq	%rcx, (%rsp)
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	%rax, %rdx
	movq	%rbx, %rcx
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_printf
	movslq	%r13d, %rax
	addq	%rax, %rbx
	xorl	%edi, %edi
	testl	%eax, %eax
	setg	%dil
	callq	_assert
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ffs_dump_dirbuf: dir %s size %d cur %d\n"

L_.str.1:                               ## @.str.1
	.asciz	" inode %4d %7s offset %4d reclen %3d namlen %3d name %s\n"

	.no_dead_strip	_ffs_dump_dirbuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffs_dump_dirbuf
_ffs_dump_dirbuf:                       ; @ffs_dump_dirbuf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x2
	mov	x21, x1
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	cmp	x21, #0
	cset	w0, ne
	bl	_assert
	ldp	w8, w9, [x20]
	stp	x8, x9, [sp, #8]
	str	x21, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x24, #0
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x25, x8, x24
	ldr	w0, [x25, #24]
	mov	x1, x19
	bl	_ufs_rw16
	mov	x22, x0
	ldr	w0, [x25, #20]
	mov	x1, x19
	bl	_ufs_rw32
	mov	x23, x0
	ldr	w0, [x25, #16]
	bl	_DTTOIF
	bl	_inode_type
	ldr	x8, [x25, #8]
	ldr	w9, [x25]
	stp	x9, x8, [sp, #32]
	stp	x24, x22, [sp, #16]
	stp	x23, x0, [sp]
	mov	x0, x21
	bl	_printf
	add	x24, x24, w22, sxtw
	cmp	w22, #0
	cset	w0, gt
	bl	_assert
	ldrsw	x8, [x20]
	cmp	x24, x8
	b.lt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ffs_dump_dirbuf: dir %s size %d cur %d\n"

l_.str.1:                               ; @.str.1
	.asciz	" inode %4d %7s offset %4d reclen %3d namlen %3d name %s\n"

	.no_dead_strip	_ffs_dump_dirbuf
.subsections_via_symbols
