	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffs_balloc_ufs1
_ffs_balloc_ufs1:                       ## @ffs_balloc_ufs1
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rsp, -192(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	32(%rdi), %r14
	movq	_UFS_NIADDR@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	addl	$2, %eax
	shlq	$4, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -128(%rbp)                ## 8-byte Spill
	movl	(%r12), %eax
	incl	%eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -120(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_UFS_FSNEEDSWAP
	movl	%eax, %r12d
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_lblkno
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rbx
	callq	_blkoff
	movl	%eax, %r13d
	addl	-64(%rbp), %r13d                ## 4-byte Folded Reload
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	$0, (%rbx)
LBB0_2:
	xorl	%edi, %edi
	cmpl	(%r14), %r13d
	setle	%dil
	callq	_assert
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	js	LBB0_15
## %bb.3:
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_lblkno
	movq	_UFS_NDADDR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_8
## %bb.4:
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %rax
	jge	LBB0_9
## %bb.5:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_blksize
	testl	%eax, %eax
	jle	LBB0_7
## %bb.6:
	cmpl	(%r14), %eax
	jl	LBB0_63
LBB0_7:
	movq	(%rbx), %rcx
LBB0_8:
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
LBB0_9:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, %rdx
	movl	%r12d, -76(%rbp)                ## 4-byte Spill
	jge	LBB0_16
## %bb.10:
	movq	8(%r15), %rax
	movq	(%rax,%rdx,8), %rdi
	movl	%r12d, %esi
	movq	%rdx, %r12
	callq	_ufs_rw32
	movq	%rax, %r14
	movq	(%r15), %r15
	movq	%r12, %rsi
	incq	%rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_lblktosize
	testq	%r14, %r14
	je	LBB0_22
## %bb.11:
	cmpq	%rax, %r15
	jge	LBB0_24
## %bb.12:
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_blkoff
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_fragroundup
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_fragroundup
	cmpl	%r14d, %eax
	jg	LBB0_63
## %bb.13:
	movq	-112(%rbp), %r8                 ## 8-byte Reload
	testq	%r8, %r8
	je	LBB0_38
## %bb.14:
	movl	24(%r15), %edi
	xorl	%r13d, %r13d
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	jmp	LBB0_26
LBB0_15:
	movq	_EFBIG@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_39
LBB0_16:
	leaq	-92(%rbp), %rcx
	movq	%r15, %rdi
	movq	%rdx, %rsi
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_ufs_getlbns
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_39
## %bb.17:
	movl	-92(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_64
## %bb.18:
	decl	%eax
	movl	%eax, -92(%rbp)
	movq	16(%r15), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdi
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	callq	_ufs_rw32
	testq	%rax, %rax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_34
## %bb.19:
	xorl	%eax, %eax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
LBB0_20:
	movl	24(%r15), %edi
	movq	24(%rbx), %rsi
	movl	(%r12), %edx
	leaq	-56(%rbp), %r8
	xorl	%ecx, %ecx
	callq	_bread
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_41
LBB0_21:
	movq	-56(%rbp), %rdi
	callq	_brelse
	jmp	LBB0_39
LBB0_22:
	cmpq	%rax, %r15
	jge	LBB0_29
## %bb.23:
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_fragroundup
	movl	%eax, %r15d
	jmp	LBB0_30
LBB0_24:
	movq	-112(%rbp), %r8                 ## 8-byte Reload
	testq	%r8, %r8
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_38
## %bb.25:
	movl	24(%rax), %edi
	movl	(%rbx), %edx
	xorl	%r13d, %r13d
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
LBB0_26:
	xorl	%ecx, %ecx
	movq	%r8, %r14
	callq	_bread
	testl	%eax, %eax
	je	LBB0_39
## %bb.27:
	movl	%eax, %ebx
	movq	(%r14), %rdi
LBB0_28:
	callq	_brelse
	movl	%ebx, %r13d
	jmp	LBB0_39
LBB0_29:
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movl	(%rbx), %r15d
LBB0_30:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	8(%rbx), %rcx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r12d, %edx
	callq	_ffs_blkpref_ufs1
	leaq	-104(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	movl	%r15d, %ecx
	callq	_ffs_alloc
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_39
## %bb.31:
	testq	%r14, %r14
	je	LBB0_33
## %bb.32:
	movl	24(%rbx), %edi
	movq	%r12, %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_getblk
	movq	%rax, %r15
	movq	%rax, -56(%rbp)
	movq	-104(%rbp), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_fsbtodb
	movq	%rax, (%r15)
	movq	-56(%rbp), %r15
	movq	%r15, %rdi
	callq	_clrbuf
	movq	%r15, (%r14)
LBB0_33:
	movq	-104(%rbp), %rdi
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	callq	_ufs_rw32
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx,%r12,8)
LBB0_38:
	xorl	%r13d, %r13d
LBB0_39:
	movq	-192(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_62
## %bb.40:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	movq	%r15, %rdi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ffs_blkpref_ufs1
	movl	(%r12), %ecx
	leaq	-104(%rbp), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	callq	_ffs_alloc
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_39
## %bb.35:
	movq	-104(%rbp), %r14
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	%r14, (%rax)
	movl	24(%r15), %edi
	movq	24(%rbx), %rsi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_getblk
	movq	%rax, %r12
	movq	%rax, -56(%rbp)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_fsbtodb
	movq	%rax, (%r12)
	movq	-56(%rbp), %r15
	movq	%r15, %rdi
	callq	_clrbuf
	movq	%r15, %rdi
	callq	_bwrite
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_39
## %bb.36:
	addq	$8, -120(%rbp)                  ## 8-byte Folded Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r15
	movq	(%rbx), %r12
	movq	%r14, %rdi
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	callq	_ufs_rw32
	movq	%rax, (%r15,%r12,8)
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_20
LBB0_41:
	movabsq	$4294967296, %rcx               ## imm = 0x100000000
	leaq	24(%rbx), %rdx
	movl	$1, %r12d
	movl	$1, %esi
	movq	%rdx, -184(%rbp)                ## 8-byte Spill
LBB0_42:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_43 Depth 2
	movq	%rsi, %rdi
	shlq	$32, %rdi
	movslq	%esi, %r15
	addq	%rcx, %rdi
	leaq	1(%r15), %rcx
	shlq	$4, %r15
	addq	%rdx, %r15
	movl	%esi, %r14d
	.p2align	4, 0x90
LBB0_43:                                ##   Parent Loop BB0_42 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rdi, -160(%rbp)                ## 8-byte Spill
	movq	%rcx, -168(%rbp)                ## 8-byte Spill
	movq	-56(%rbp), %rax
	movq	8(%rax), %rbx
	shlq	$4, %r12
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	(%rax,%r12), %rax
	movq	(%rbx,%rax,8), %rdi
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	callq	_ufs_rw32
	movslq	-92(%rbp), %rcx
	cmpl	%ecx, %r14d
	je	LBB0_51
## %bb.44:                              ##   in Loop: Header=BB0_43 Depth=2
	testq	%rax, %rax
	je	LBB0_46
## %bb.45:                              ##   in Loop: Header=BB0_43 Depth=2
	movq	-56(%rbp), %rdi
	callq	_brelse
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %edi
	movq	(%r15), %rsi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	leaq	-56(%rbp), %r8
	callq	_bread
	movl	%eax, %r13d
	incl	%r14d
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	-160(%rbp), %rdi                ## 8-byte Reload
	addq	%rax, %rdi
	movq	-168(%rbp), %r12                ## 8-byte Reload
	leaq	1(%r12), %rcx
	addq	$16, %r15
	testl	%r13d, %r13d
	je	LBB0_43
	jmp	LBB0_21
LBB0_46:                                ##   in Loop: Header=BB0_42 Depth=1
	movq	%rbx, -144(%rbp)                ## 8-byte Spill
	movq	-152(%rbp), %r14                ## 8-byte Reload
	testq	%r14, %r14
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_48
## %bb.47:                              ##   in Loop: Header=BB0_42 Depth=1
	movq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ffs_blkpref_ufs1
	movq	%rax, %r14
LBB0_48:                                ##   in Loop: Header=BB0_42 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	leaq	-104(%rbp), %r8
	callq	_ffs_alloc
	movl	%eax, %r13d
	testl	%eax, %eax
	movq	-120(%rbp), %rax                ## 8-byte Reload
	jne	LBB0_21
## %bb.49:                              ##   in Loop: Header=BB0_42 Depth=1
	movq	%r14, -152(%rbp)                ## 8-byte Spill
	movq	-104(%rbp), %rbx
	movq	%rbx, (%rax)
	movl	24(%r15), %edi
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	-160(%rbp), %r14                ## 8-byte Reload
	sarq	$28, %r14
	movq	-128(%rbp), %r15                ## 8-byte Reload
	movq	8(%r15,%r14), %rsi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_getblk
	movq	%rax, %r13
	movq	%rax, -136(%rbp)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, -176(%rbp)                ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_fsbtodb
	movq	%rax, (%r13)
	movq	-136(%rbp), %r13
	movq	%r13, %rdi
	callq	_clrbuf
	movq	%r13, %rdi
	callq	_bwrite
	testl	%eax, %eax
	jne	LBB0_56
## %bb.50:                              ##   in Loop: Header=BB0_42 Depth=1
	addq	%r15, %r12
	movq	-160(%rbp), %rbx                ## 8-byte Reload
	sarq	$32, %rbx
	addq	%r15, %r14
	addq	$8, %r14
	addq	$8, -120(%rbp)                  ## 8-byte Folded Spill
	movq	-176(%rbp), %rdi                ## 8-byte Reload
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	callq	_ufs_rw32
	movq	(%r12), %rcx
	movq	-144(%rbp), %rdx                ## 8-byte Reload
	movq	%rax, (%rdx,%rcx,8)
	movq	-56(%rbp), %rdi
	callq	_bwrite
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %edi
	movq	(%r14), %rsi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	leaq	-56(%rbp), %r8
	callq	_bread
	movl	%eax, %r13d
	movq	%rbx, %r12
	testl	%eax, %eax
	movabsq	$4294967296, %rcx               ## imm = 0x100000000
	movq	-184(%rbp), %rdx                ## 8-byte Reload
	movq	-168(%rbp), %rsi                ## 8-byte Reload
	je	LBB0_42
	jmp	LBB0_21
LBB0_51:
	testq	%rax, %rax
	movq	-112(%rbp), %r14                ## 8-byte Reload
	je	LBB0_55
## %bb.52:
	movq	-56(%rbp), %rdi
	callq	_brelse
	testq	%r14, %r14
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_38
## %bb.53:
	movl	24(%rax), %edi
	movl	(%rcx), %edx
	xorl	%r13d, %r13d
	leaq	-136(%rbp), %r8
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_bread
	movq	-136(%rbp), %rdi
	testl	%eax, %eax
	je	LBB0_58
## %bb.54:
	movl	%eax, %ebx
	jmp	LBB0_28
LBB0_55:
	shlq	$4, %rcx
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%rcx), %edx
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%rbx, %rcx
	callq	_ffs_blkpref_ufs1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %ecx
	leaq	-104(%rbp), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_ffs_alloc
	testl	%eax, %eax
	je	LBB0_59
LBB0_56:
	movl	%eax, %r13d
	jmp	LBB0_21
LBB0_58:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	%rdi, (%rax)
	jmp	LBB0_39
LBB0_59:
	movq	%rbx, -144(%rbp)                ## 8-byte Spill
	movq	-104(%rbp), %r13
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	%r13, (%rax)
	movq	-112(%rbp), %r14                ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_61
## %bb.60:
	movl	24(%r15), %edi
	movl	(%r12), %edx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_getblk
	movq	%r12, %rdi
	movq	%rax, %r12
	movq	%rax, -136(%rbp)
	movq	%r13, %rsi
	callq	_fsbtodb
	movq	%rax, (%r12)
	movq	-136(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_clrbuf
	movq	%rbx, (%r14)
LBB0_61:
	movq	%r13, %rdi
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	callq	_ufs_rw32
	movslq	-92(%rbp), %rcx
	shlq	$4, %rcx
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	movq	(%rdx,%rcx), %rcx
	movq	-144(%rbp), %rdx                ## 8-byte Reload
	movq	%rax, (%rdx,%rcx,8)
	movq	-56(%rbp), %rdi
	callq	_bwrite
	jmp	LBB0_38
LBB0_62:
	callq	___stack_chk_fail
LBB0_63:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_65
LBB0_64:
	leaq	L_.str.1(%rip), %rdi
LBB0_65:
	callq	_warnx
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_UFS_NIADDR,4,2                 ## @UFS_NIADDR
	.comm	_EFBIG,4,2                      ## @EFBIG
	.comm	_UFS_NDADDR,8,3                 ## @UFS_NDADDR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"need to ffs_realloccg; not supported!"

L_.str.1:                               ## @.str.1
	.asciz	"ffs_balloc: ufs_getlbns returned indirect block"

	.no_dead_strip	_ffs_balloc_ufs1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffs_balloc_ufs1
_ffs_balloc_ufs1:                       ; @ffs_balloc_ufs1
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #112
	mov	x23, x3
	mov	x25, x2
	mov	x26, x1
	mov	x20, x0
	mov	x19, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x22, [x0, #32]
Lloh3:
	adrp	x12, _UFS_NIADDR@GOTPAGE
Lloh4:
	ldr	x12, [x12, _UFS_NIADDR@GOTPAGEOFF]
	ldr	w8, [x12]
	add	w8, w8, #2
	lsl	x8, x8, #4
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x27, x9, x8
	mov	sp, x27
	ldr	w8, [x12]
	add	w8, w8, #1
	lsl	x8, x8, #3
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x8, x9, x8
	mov	x28, x8
	mov	sp, x8
	mov	x0, x22
	bl	_UFS_FSNEEDSWAP
	mov	x24, x0
	mov	x0, x22
	mov	x1, x26
	bl	_lblkno
	mov	x21, x0
	mov	x0, x22
	mov	x1, x26
	bl	_blkoff
	add	w25, w0, w25
	cbz	x23, LBB0_2
; %bb.1:
	str	xzr, [x23]
LBB0_2:
	ldr	w8, [x22]
	cmp	w25, w8
	cset	w0, le
	bl	_assert
	tbnz	x21, #63, LBB0_14
; %bb.3:
	stur	x19, [x29, #-128]               ; 8-byte Folded Spill
	ldr	x1, [x20]
	mov	x0, x22
	bl	_lblkno
Lloh9:
	adrp	x19, _UFS_NDADDR@GOTPAGE
Lloh10:
	ldr	x19, [x19, _UFS_NDADDR@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x0, x8
	ccmp	x0, x21, #0, lt
	b.ge	LBB0_7
; %bb.4:
	mov	x2, x0
	mov	x0, x22
	mov	x1, x20
	bl	_blksize
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.5:
	ldr	w8, [x22]
	cmp	w0, w8
	b.lt	LBB0_63
LBB0_6:
	ldr	x8, [x19]
LBB0_7:
	cmp	x21, x8
	stur	w24, [x29, #-132]               ; 4-byte Folded Spill
	b.ge	LBB0_15
; %bb.8:
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x21, lsl #3]
	mov	x1, x24
	bl	_ufs_rw32
	mov	x24, x0
	ldr	x19, [x20]
	add	x1, x21, #1
	mov	x0, x22
	bl	_lblktosize
	cmp	x19, x0
	cbz	x24, LBB0_30
; %bb.9:
	b.ge	LBB0_32
; %bb.10:
	mov	x19, x23
	ldr	x1, [x20]
	mov	x0, x22
	bl	_blkoff
	mov	x1, x0
	mov	x0, x22
	bl	_fragroundup
	mov	x23, x0
	mov	x0, x22
	mov	x1, x25
	bl	_fragroundup
	cmp	w0, w23
	b.gt	LBB0_63
; %bb.11:
	cbz	x19, LBB0_35
; %bb.12:
	ldr	w0, [x20, #24]
	mov	x1, x21
	mov	x2, x23
	mov	x3, #0
	mov	x4, x19
	bl	_bread
	mov	x27, x0
	cbz	w0, LBB0_51
; %bb.13:
	ldr	x0, [x19]
	b	LBB0_50
LBB0_14:
Lloh11:
	adrp	x8, _EFBIG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EFBIG@GOTPAGEOFF]
Lloh13:
	ldr	w27, [x8]
	b	LBB0_52
LBB0_15:
	sub	x3, x29, #116
	mov	x0, x20
	mov	x1, x21
	mov	x2, x27
	bl	_ufs_getlbns
	mov	x8, x27
	mov	x27, x0
	ldur	x19, [x29, #-128]               ; 8-byte Folded Reload
	cbnz	w0, LBB0_52
; %bb.16:
	stur	x8, [x29, #-144]                ; 8-byte Folded Spill
	ldur	w8, [x29, #-116]
	cmp	w8, #0
	b.le	LBB0_64
; %bb.17:
	sub	w8, w8, #1
	stur	w8, [x29, #-116]
	ldr	x8, [x20, #16]
	ldur	x25, [x29, #-144]               ; 8-byte Folded Reload
	ldr	x9, [x25]
	ldr	x0, [x8, x9, lsl #3]
	ldur	w1, [x29, #-132]                ; 4-byte Folded Reload
	bl	_ufs_rw32
	cbz	x0, LBB0_41
; %bb.18:
	mov	x19, x28
	mov	x24, #0
LBB0_19:
	ldr	w0, [x20, #24]
	ldr	x1, [x25, #24]
	ldr	w2, [x22]
	sub	x4, x29, #96
	mov	x3, #0
	bl	_bread
	mov	x27, x0
	cbnz	w0, LBB0_49
; %bb.20:
	add	x9, x25, #24
	mov	w11, #1
	mov	x10, #4294967296
	mov	w25, #1
	stp	x9, x23, [x29, #-176]           ; 16-byte Folded Spill
LBB0_21:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_22 Depth 2
	stp	x24, x19, [x29, #-160]          ; 16-byte Folded Spill
	sxtw	x8, w25
	add	x23, x10, x25, lsl #32
	add	x8, x8, #1
	mov	x28, x25
	add	x24, x9, w25, sxtw #4
	mov	x25, x11
LBB0_22:                                ;   Parent Loop BB0_21 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	x27, [x29, #-144]               ; 8-byte Folded Reload
	add	x19, x27, x25, lsl #4
	mov	x25, x8
	ldur	x8, [x29, #-96]
	ldr	x26, [x8, #8]
	ldr	x8, [x19]
	ldr	x0, [x26, x8, lsl #3]
	ldur	w1, [x29, #-132]                ; 4-byte Folded Reload
	bl	_ufs_rw32
	ldursw	x8, [x29, #-116]
	cmp	w28, w8
	b.eq	LBB0_44
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=2
	cbz	x0, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=2
	ldur	x0, [x29, #-96]
	bl	_brelse
	ldr	w0, [x20, #24]
	ldr	x1, [x24], #16
	ldr	w2, [x22]
	sub	x4, x29, #96
	mov	x3, #0
	bl	_bread
	add	w28, w28, #1
	mov	x8, #4294967296
	add	x23, x23, x8
	add	x8, x25, #1
	cbz	w0, LBB0_22
	b	LBB0_48
LBB0_25:                                ;   in Loop: Header=BB0_21 Depth=1
	ldur	x24, [x29, #-160]               ; 8-byte Folded Reload
	cbnz	x24, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	mov	x3, #0
	bl	_ffs_blkpref_ufs1
	mov	x24, x0
LBB0_27:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	w3, [x22]
	sub	x4, x29, #112
	mov	x0, x20
	mov	x1, x21
	mov	x2, x24
	bl	_ffs_alloc
	ldur	x28, [x29, #-152]               ; 8-byte Folded Reload
	cbnz	w0, LBB0_48
; %bb.28:                               ;   in Loop: Header=BB0_21 Depth=1
	stur	x24, [x29, #-160]               ; 8-byte Folded Spill
	ldur	x8, [x29, #-112]
	stur	x8, [x29, #-184]                ; 8-byte Folded Spill
	str	x8, [x28]
	ldr	w0, [x20, #24]
	ldur	x8, [x29, #-144]                ; 8-byte Folded Reload
	add	x24, x8, x23, asr #28
	ldr	x1, [x24, #8]!
	ldr	w2, [x22]
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_getblk
	mov	x27, x0
	stur	x0, [x29, #-104]
	mov	x0, x22
	ldur	x1, [x29, #-184]                ; 8-byte Folded Reload
	mov	x28, x1
	bl	_fsbtodb
	str	x0, [x27]
	ldur	x27, [x29, #-104]
	mov	x0, x27
	bl	_clrbuf
	mov	x0, x27
	bl	_bwrite
	cbnz	w0, LBB0_48
; %bb.29:                               ;   in Loop: Header=BB0_21 Depth=1
	asr	x23, x23, #32
	ldur	x8, [x29, #-152]                ; 8-byte Folded Reload
	add	x8, x8, #8
	stur	x8, [x29, #-152]                ; 8-byte Folded Spill
	mov	x0, x28
	ldur	w1, [x29, #-132]                ; 4-byte Folded Reload
	bl	_ufs_rw32
	ldr	x8, [x19]
	str	x0, [x26, x8, lsl #3]
	ldur	x0, [x29, #-96]
	bl	_bwrite
	ldr	w0, [x20, #24]
	ldr	x1, [x24]
	ldr	w2, [x22]
	sub	x4, x29, #96
	mov	x3, #0
	bl	_bread
	mov	x11, x23
	mov	x27, x0
	ldp	x24, x19, [x29, #-160]          ; 16-byte Folded Reload
	ldur	x9, [x29, #-176]                ; 8-byte Folded Reload
	mov	x10, #4294967296
	cbz	w0, LBB0_21
	b	LBB0_49
LBB0_30:
	b.ge	LBB0_36
; %bb.31:
	mov	x0, x22
	mov	x1, x25
	bl	_fragroundup
	mov	x24, x0
	b	LBB0_37
LBB0_32:
	cbz	x23, LBB0_35
; %bb.33:
	ldr	w0, [x20, #24]
	ldr	w2, [x22]
	mov	x1, x21
	mov	x3, #0
	mov	x4, x23
	bl	_bread
	mov	x27, x0
	ldur	x19, [x29, #-128]               ; 8-byte Folded Reload
	cbz	w0, LBB0_52
; %bb.34:
	ldr	x0, [x23]
	bl	_brelse
	b	LBB0_52
LBB0_35:
	mov	w27, #0
	b	LBB0_51
LBB0_36:
	ldr	w24, [x22]
LBB0_37:
	ldur	x19, [x29, #-128]               ; 8-byte Folded Reload
	ldr	x3, [x20, #8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x21
	bl	_ffs_blkpref_ufs1
	mov	x2, x0
	sub	x4, x29, #112
	mov	x0, x20
	mov	x1, x21
	mov	x3, x24
	bl	_ffs_alloc
	mov	x27, x0
	cbnz	w0, LBB0_52
; %bb.38:
	cbz	x23, LBB0_40
; %bb.39:
	ldr	w0, [x20, #24]
	mov	x1, x21
	mov	x2, x24
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_getblk
	mov	x24, x0
	stur	x0, [x29, #-96]
	ldur	x1, [x29, #-112]
	mov	x0, x22
	bl	_fsbtodb
	str	x0, [x24]
	ldur	x22, [x29, #-96]
	mov	x0, x22
	bl	_clrbuf
	str	x22, [x23]
LBB0_40:
	ldur	x0, [x29, #-112]
	ldur	w1, [x29, #-132]                ; 4-byte Folded Reload
	bl	_ufs_rw32
	mov	w27, #0
	ldr	x8, [x20, #8]
	str	x0, [x8, x21, lsl #3]
	b	LBB0_52
LBB0_41:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	mov	x3, #0
	bl	_ffs_blkpref_ufs1
	mov	x24, x0
	ldr	w3, [x22]
	sub	x4, x29, #112
	mov	x0, x20
	mov	x1, x21
	mov	x2, x24
	bl	_ffs_alloc
	mov	x27, x0
	ldur	x19, [x29, #-128]               ; 8-byte Folded Reload
	cbnz	w0, LBB0_52
; %bb.42:
	ldur	x26, [x29, #-112]
	str	x26, [x28]
	ldr	w0, [x20, #24]
	ldr	x1, [x25, #24]
	ldr	w2, [x22]
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_getblk
	mov	x27, x0
	stur	x0, [x29, #-96]
	mov	x0, x22
	mov	x1, x26
	bl	_fsbtodb
	str	x0, [x27]
	ldur	x27, [x29, #-96]
	mov	x0, x27
	bl	_clrbuf
	mov	x0, x27
	bl	_bwrite
	mov	x27, x0
	cbnz	w0, LBB0_52
; %bb.43:
	add	x28, x28, #8
	ldr	x19, [x20, #16]
	mov	x27, x24
	mov	x24, x23
	ldr	x23, [x25]
	mov	x0, x26
	ldur	w1, [x29, #-132]                ; 4-byte Folded Reload
	bl	_ufs_rw32
	str	x0, [x19, x23, lsl #3]
	mov	x23, x24
	mov	x24, x27
	mov	x19, x28
	b	LBB0_19
LBB0_44:
	cbz	x0, LBB0_54
; %bb.45:
	ldur	x0, [x29, #-96]
	bl	_brelse
	ldur	x23, [x29, #-128]               ; 8-byte Folded Reload
	ldur	x19, [x29, #-168]               ; 8-byte Folded Reload
	cbz	x19, LBB0_60
; %bb.46:
	ldr	w0, [x20, #24]
	ldr	w2, [x22]
	sub	x4, x29, #104
	mov	x1, x21
	mov	x3, #0
	bl	_bread
	mov	x27, x0
	ldur	x0, [x29, #-104]
	cbz	w27, LBB0_56
; %bb.47:
	bl	_brelse
	b	LBB0_61
LBB0_48:
	mov	x27, x0
LBB0_49:
	ldur	x0, [x29, #-96]
LBB0_50:
	bl	_brelse
LBB0_51:
	ldur	x19, [x29, #-128]               ; 8-byte Folded Reload
LBB0_52:
	mov	sp, x19
	ldur	x8, [x29, #-88]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_62
; %bb.53:
	mov	x0, x27
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_54:
	lsl	x8, x8, #4
	ldr	w2, [x27, x8]
	mov	x0, x20
	mov	x1, x21
	mov	x3, x26
	bl	_ffs_blkpref_ufs1
	mov	x2, x0
	ldr	w3, [x22]
	sub	x4, x29, #112
	mov	x0, x20
	mov	x1, x21
	bl	_ffs_alloc
	ldur	x23, [x29, #-128]               ; 8-byte Folded Reload
	ldur	x19, [x29, #-168]               ; 8-byte Folded Reload
	cbz	w0, LBB0_57
; %bb.55:
	mov	x27, x0
	ldur	x0, [x29, #-96]
	bl	_brelse
	b	LBB0_61
LBB0_56:
	str	x0, [x19]
	b	LBB0_61
LBB0_57:
	ldur	x25, [x29, #-112]
	ldur	x8, [x29, #-152]                ; 8-byte Folded Reload
	str	x25, [x8]
	cbz	x19, LBB0_59
; %bb.58:
	ldr	w0, [x20, #24]
	ldr	w2, [x22]
	mov	x1, x21
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_getblk
	mov	x20, x0
	stur	x0, [x29, #-104]
	mov	x0, x22
	mov	x1, x25
	bl	_fsbtodb
	str	x0, [x20]
	ldur	x20, [x29, #-104]
	mov	x0, x20
	bl	_clrbuf
	str	x20, [x19]
LBB0_59:
	mov	x0, x25
	ldur	w1, [x29, #-132]                ; 4-byte Folded Reload
	bl	_ufs_rw32
	ldursw	x8, [x29, #-116]
	lsl	x8, x8, #4
	ldur	x9, [x29, #-144]                ; 8-byte Folded Reload
	ldr	x8, [x9, x8]
	str	x0, [x26, x8, lsl #3]
	ldur	x0, [x29, #-96]
	bl	_bwrite
LBB0_60:
	mov	w27, #0
LBB0_61:
	mov	x19, x23
	b	LBB0_52
LBB0_62:
	bl	___stack_chk_fail
LBB0_63:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
	bl	_abort
LBB0_64:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warnx
	bl	_abort
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_UFS_NIADDR,4,2                 ; @UFS_NIADDR
	.comm	_EFBIG,4,2                      ; @EFBIG
	.comm	_UFS_NDADDR,8,3                 ; @UFS_NDADDR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"need to ffs_realloccg; not supported!"

l_.str.1:                               ; @.str.1
	.asciz	"ffs_balloc: ufs_getlbns returned indirect block"

	.no_dead_strip	_ffs_balloc_ufs1
.subsections_via_symbols
