	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffs_write_file
_ffs_write_file:                        ## @ffs_write_file
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	8(%rcx), %r15
	movq	%rcx, -160(%rbp)
	movq	$0, -152(%rbp)
	xorl	%edi, %edi
	testq	%r13, %r13
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%r12, %r12
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	testq	%r15, %r15
	setne	%dil
	callq	_assert
	movq	_mode@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_DIP
	movl	%eax, %edi
	callq	_S_ISREG
	movl	%eax, %r15d
	movq	(%r12), %rax
	movq	%rax, -112(%rbp)
	leaq	-160(%rbp), %rax
	movq	%rax, -120(%rbp)
	movq	_debug@GOTPCREL(%rip), %rcx
	movq	_DEBUG_FS_WRITE_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_DIP
	movq	_S_IFMT@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, %edi
	callq	_inode_type
	movl	%r14d, %ebx
	movq	%rax, %r14
	movq	_size@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_DIP
	movslq	%eax, %r9
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	movq	%r14, %r8
	movl	%ebx, %r14d
	xorl	%eax, %eax
	callq	_printf
	testl	%r15d, %r15d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdi
	cmoveq	%rax, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_printf
LBB0_2:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, -136(%rbp)
	movq	_size@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_DIP
	movl	%eax, -132(%rbp)
	xorl	%eax, %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$1, (%rcx)
	sete	%al
	leaq	-128(,%rax,4), %rdi
	addq	%rbp, %rdi
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_DIP
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	%r12, -144(%rbp)                ## 8-byte Spill
	movl	%r14d, -100(%rbp)               ## 4-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.6:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	callq	_emalloc
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	$292, %edx                      ## imm = 0x124
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.7:
	xorl	%r12d, %r12d
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_9
LBB0_3:
	leaq	-128(%rbp), %rdi
	movl	-136(%rbp), %esi
	movq	%r12, %rdx
	callq	_ffs_write_inode
	jmp	LBB0_31
LBB0_5:
	movl	$-1, -48(%rbp)                  ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_8:
	movl	$-1, -48(%rbp)                  ## 4-byte Folded Spill
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_err
LBB0_9:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movq	_size@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_DIP
	testl	%eax, %eax
	jle	LBB0_27
## %bb.10:
	movl	%eax, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-96(%rbp), %rdi
	callq	_brelse
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	testl	%r13d, %r13d
	movl	$0, %eax
	cmovel	%r14d, %eax
	cltq
	addq	%rax, %r15
	movq	%r15, %r12
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	subl	%r14d, %ebx
	jle	LBB0_27
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	movl	%ebx, %edi
	callq	_MIN
	movl	%eax, %r14d
	testl	%r13d, %r13d
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	je	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_read
	cmpl	$-1, %eax
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	%r14d, %eax
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%r13d, %ecx
	leaq	L_.str.5(%rip), %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %r8d
	movl	%r14d, %r9d
	callq	_errx
	movq	%r12, %r15
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%ebx, %r13d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %ecx
	leaq	L_.str.4(%rip), %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_err
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r12, %r15
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_size@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_DIP
	movl	%eax, %ebx
	movl	%r13d, %edx
	subl	%r13d, %ebx
	movq	_DEBUG_FS_WRITE_FILE_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movslq	%ebx, %r12
	movslq	%r14d, %r13
	movq	_debug@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%edx, %r8d
	leaq	L_.str.6(%rip), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_printf
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	-136(%rbp), %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	leaq	-96(%rbp), %rcx
	callq	_ffs_balloc
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_21 Depth=2
	movl	$1, %edi
	leaq	L_.str.7(%rip), %rsi
	movl	-100(%rbp), %edx                ## 4-byte Reload
	movq	%r12, %r8
	movq	%r13, %r9
	xorl	%eax, %eax
	callq	_err
LBB0_25:                                ##   in Loop: Header=BB0_21 Depth=2
	movq	-96(%rbp), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movq	-96(%rbp), %rdi
	callq	_bwrite
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_26
LBB0_21:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%rax, %rax
	je	LBB0_25
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	movq	%rbx, %rcx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=2
	movq	_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_DIP
	movq	_S_IFMT@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, %edi
	callq	_inode_type
	movq	%rax, %rcx
	jmp	LBB0_24
LBB0_27:
	leaq	-128(%rbp), %rdi
	movl	-136(%rbp), %esi
	movq	-144(%rbp), %rdx                ## 8-byte Reload
	callq	_ffs_write_inode
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_29
## %bb.28:
	callq	_free
LBB0_29:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	cmpl	$-1, %edi
	je	LBB0_31
## %bb.30:
	callq	_close
LBB0_31:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mode,4,2                       ## @mode
	.comm	_debug,4,2                      ## @debug
	.comm	_DEBUG_FS_WRITE_FILE,4,2        ## @DEBUG_FS_WRITE_FILE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ffs_write_file: ino %u, din %p, isfile %d, %s, size %lld"

	.comm	_S_IFMT,4,2                     ## @S_IFMT
	.comm	_size,4,2                       ## @size
L_.str.1:                               ## @.str.1
	.asciz	", file '%s'\n"

L_.str.2:                               ## @.str.2
	.asciz	", buffer %p\n"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.3:                               ## @.str.3
	.asciz	"Can't open `%s' for reading"

L_.str.4:                               ## @.str.4
	.asciz	"Reading `%s', %lld bytes to go"

L_.str.5:                               ## @.str.5
	.asciz	"Reading `%s', %lld bytes to go, read %zd bytes, expected %ju bytes, does metalog size= attribute mismatch source size?"

	.comm	_DEBUG_FS_WRITE_FILE_BLOCK,4,2  ## @DEBUG_FS_WRITE_FILE_BLOCK
L_.str.6:                               ## @.str.6
	.asciz	"ffs_write_file: write %p offset %lld size %lld left %lld\n"

	.comm	_errno,8,3                      ## @errno
L_.str.7:                               ## @.str.7
	.asciz	"Writing inode %d (%s), bytes %lld + %lld"

	.no_dead_strip	_ffs_write_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffs_write_file
_ffs_write_file:                        ; @ffs_write_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x24, x0
	ldr	x19, [x3, #8]
	stp	x3, xzr, [sp, #88]
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	cmp	x20, #0
	cset	w0, ne
	bl	_assert
	cmp	x22, #0
	cset	w0, ne
	bl	_assert
	str	x19, [sp, #72]                  ; 8-byte Folded Spill
	cmp	x19, #0
	cset	w0, ne
	bl	_assert
Lloh0:
	adrp	x19, _mode@GOTPAGE
Lloh1:
	ldr	x19, [x19, _mode@GOTPAGEOFF]
	ldr	w1, [x19]
	mov	x0, x24
	bl	_DIP
	bl	_S_ISREG
	mov	x23, x0
	ldr	x8, [x22]
	add	x9, sp, #88
	stp	x9, x8, [sp, #128]
Lloh2:
	adrp	x8, _debug@GOTPAGE
Lloh3:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _DEBUG_FS_WRITE_FILE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DEBUG_FS_WRITE_FILE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x26, _size@GOTPAGE
Lloh9:
	ldr	x26, [x26, _size@GOTPAGEOFF]
Lloh10:
	adrp	x25, _S_IFMT@GOTPAGE
Lloh11:
	ldr	x25, [x25, _S_IFMT@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x19]
	mov	x0, x24
	bl	_DIP
	ldr	w8, [x25]
	and	w0, w8, w0
	bl	_inode_type
	mov	x19, x0
	ldr	w1, [x26]
	mov	x0, x24
	bl	_DIP
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	stp	x19, x8, [sp, #24]
	stp	x24, x23, [sp, #8]
	mov	x8, x21
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
Lloh14:
	adrp	x8, l_.str.1@PAGE
Lloh15:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh16:
	adrp	x9, l_.str.2@PAGE
Lloh17:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w23, #0
	csel	x0, x9, x8, eq
	str	x20, [sp]
	bl	_printf
LBB0_2:
	str	w21, [sp, #112]
	ldr	w1, [x26]
	mov	x0, x24
	bl	_DIP
	str	w0, [sp, #116]
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
	add	x9, sp, #112
	add	x19, x9, #8
	add	x9, x9, #12
	cmp	w8, #1
	csel	x0, x9, x19, eq
	mov	x1, x24
	mov	w2, #4
	bl	_memcpy
	ldr	w1, [x26]
	mov	x0, x24
	bl	_DIP
	cbz	w0, LBB0_6
; %bb.3:
	str	x22, [sp, #48]                  ; 8-byte Folded Spill
	cbz	w23, LBB0_7
; %bb.4:
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	ldr	w0, [x8, #4]
	bl	_emalloc
	mov	x22, x0
Lloh18:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #292
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.5:
	str	w0, [sp, #60]                   ; 4-byte Folded Spill
	mov	x25, #0
	b	LBB0_9
LBB0_6:
	ldr	w1, [sp, #112]
	mov	x0, x19
	mov	x2, x22
	bl	_ffs_write_inode
	b	LBB0_30
LBB0_7:
	mov	x22, #0
	mov	w8, #-1
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
	mov	x25, x20
	b	LBB0_9
LBB0_8:
Lloh21:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_err
	mov	x25, #0
	mov	w8, #-1
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
LBB0_9:
	ldr	w1, [x26]
	str	x24, [sp, #80]                  ; 8-byte Folded Spill
	mov	x0, x24
	bl	_DIP
	cmp	w0, #1
	b.lt	LBB0_26
; %bb.10:
	mov	x26, x0
Lloh26:
	adrp	x28, _errno@GOTPAGE
Lloh27:
	ldr	x28, [x28, _errno@GOTPAGEOFF]
Lloh28:
	adrp	x27, l_.str.7@PAGE
Lloh29:
	add	x27, x27, l_.str.7@PAGEOFF
	str	x22, [sp, #64]                  ; 8-byte Folded Spill
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x0, [sp, #104]
	bl	_brelse
	cmp	w23, #0
	csel	w8, w19, wzr, eq
	add	x25, x24, w8, sxtw
	sub	w26, w26, w19
	cmp	w26, #0
	ldr	x22, [sp, #64]                  ; 8-byte Folded Reload
	b.le	LBB0_26
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_23 Depth 2
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	ldr	w1, [x8, #4]
	mov	x0, x26
	bl	_MIN
	mov	x19, x0
	cbz	w23, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [sp, #60]                   ; 4-byte Folded Reload
	mov	x1, x22
	mov	x2, x19
	bl	_read
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x4, x0
	mov	x24, x22
	cmp	w0, w19
	b.eq	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh30:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	mov	w3, w26
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x20
	mov	x5, x19
	bl	_errx
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
Lloh35:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	mov	w8, w26
	stp	x20, x8, [sp]
Lloh38:
	adrp	x1, l_.str.4@PAGE
Lloh39:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_err
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x24, x25
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=1
Lloh40:
	adrp	x8, _size@GOTPAGE
Lloh41:
	ldr	x8, [x8, _size@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	ldr	x0, [sp, #80]                   ; 8-byte Folded Reload
	bl	_DIP
	sub	w8, w0, w26
Lloh43:
	adrp	x9, _debug@GOTPAGE
Lloh44:
	ldr	x9, [x9, _debug@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
Lloh46:
	adrp	x10, _DEBUG_FS_WRITE_FILE_BLOCK@GOTPAGE
Lloh47:
	ldr	x10, [x10, _DEBUG_FS_WRITE_FILE_BLOCK@GOTPAGEOFF]
Lloh48:
	ldr	w10, [x10]
	sxtw	x25, w8
	sxtw	x22, w19
	tst	w10, w9
	b.eq	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w8, w26
	stp	x24, x25, [sp]
	stp	x22, x8, [sp, #16]
Lloh49:
	adrp	x0, l_.str.6@PAGE
Lloh50:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
LBB0_20:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x0, sp, #112
	add	x3, sp, #104
	mov	x1, x25
	mov	x2, x19
	bl	_ffs_balloc
	str	x0, [x28]
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=2
	stp	x25, x22, [sp, #16]
	stp	x21, x0, [sp]
	mov	w0, #1
	mov	x1, x27
	bl	_err
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=2
	ldr	x8, [sp, #104]
	ldr	x0, [x8]
	mov	x1, x24
	mov	x2, x19
	bl	_memcpy
	ldr	x0, [sp, #104]
	bl	_bwrite
	str	x0, [x28]
	cbz	x0, LBB0_11
LBB0_23:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	x0, LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=2
	mov	x0, x20
	cbnz	w23, LBB0_21
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=2
Lloh51:
	adrp	x8, _mode@GOTPAGE
Lloh52:
	ldr	x8, [x8, _mode@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	ldr	x0, [sp, #80]                   ; 8-byte Folded Reload
	bl	_DIP
Lloh54:
	adrp	x8, _S_IFMT@GOTPAGE
Lloh55:
	ldr	x8, [x8, _S_IFMT@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	and	w0, w8, w0
	bl	_inode_type
	b	LBB0_21
LBB0_26:
	add	x8, sp, #112
	add	x0, x8, #8
	ldr	w1, [sp, #112]
	ldr	x2, [sp, #48]                   ; 8-byte Folded Reload
	bl	_ffs_write_inode
	cbz	x22, LBB0_28
; %bb.27:
	mov	x0, x22
	bl	_free
LBB0_28:
	ldr	w0, [sp, #60]                   ; 4-byte Folded Reload
	cmn	w0, #1
	b.eq	LBB0_30
; %bb.29:
	bl	_close
LBB0_30:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_mode,4,2                       ; @mode
	.comm	_debug,4,2                      ; @debug
	.comm	_DEBUG_FS_WRITE_FILE,4,2        ; @DEBUG_FS_WRITE_FILE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ffs_write_file: ino %u, din %p, isfile %d, %s, size %lld"

	.comm	_S_IFMT,4,2                     ; @S_IFMT
	.comm	_size,4,2                       ; @size
l_.str.1:                               ; @.str.1
	.asciz	", file '%s'\n"

l_.str.2:                               ; @.str.2
	.asciz	", buffer %p\n"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.3:                               ; @.str.3
	.asciz	"Can't open `%s' for reading"

l_.str.4:                               ; @.str.4
	.asciz	"Reading `%s', %lld bytes to go"

l_.str.5:                               ; @.str.5
	.asciz	"Reading `%s', %lld bytes to go, read %zd bytes, expected %ju bytes, does metalog size= attribute mismatch source size?"

	.comm	_DEBUG_FS_WRITE_FILE_BLOCK,4,2  ; @DEBUG_FS_WRITE_FILE_BLOCK
l_.str.6:                               ; @.str.6
	.asciz	"ffs_write_file: write %p offset %lld size %lld left %lld\n"

	.comm	_errno,8,3                      ; @errno
l_.str.7:                               ; @.str.7
	.asciz	"Writing inode %d (%s), bytes %lld + %lld"

	.no_dead_strip	_ffs_write_file
.subsections_via_symbols
