	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtfs_node_write                ## -- Begin function dtfs_node_write
	.p2align	4, 0x90
_dtfs_node_write:                       ## @dtfs_node_write
	.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	%r8, %r15
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rsi, %rdi
	callq	_DTFS_CTOF
	movq	(%r12), %rdx
	movq	_VREG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_1
## %bb.2:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %r13
	movl	16(%rbp), %eax
	movq	_PUFFS_IO_APPEND@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	8(%r12), %rax
	cmovneq	%rax, %rbx
	movq	(%r15), %r14
	leaq	(%r14,%rbx), %rsi
	cmpq	%rax, %rsi
	jbe	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_dtfs_setsize
	movq	(%r15), %r14
LBB0_4:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.5:
	movq	_DTFS_BLOCKSIZE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_BLOCKLEFT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_MIN
	movq	%rax, %r12
	movq	_DTFS_BLOCKSHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_BLOCKNUM
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	cltq
	movq	(%rcx,%rax,8), %r14
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_BLOCKOFF
	cltq
	leaq	(%r14,%rax,4), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_memcpy
	addq	%r12, %rbx
	movq	(%r15), %r14
	subq	%r12, %r14
	movq	%r14, (%r15)
	jne	LBB0_6
LBB0_7:
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_dtfs_updatetimes
	jmp	LBB0_8
LBB0_1:
	movq	_EISDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VREG,8,3                       ## @VREG
	.comm	_EISDIR,4,2                     ## @EISDIR
	.comm	_PUFFS_IO_APPEND,4,2            ## @PUFFS_IO_APPEND
	.comm	_DTFS_BLOCKSIZE,4,2             ## @DTFS_BLOCKSIZE
	.comm	_DTFS_BLOCKSHIFT,4,2            ## @DTFS_BLOCKSHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtfs_node_write                ; -- Begin function dtfs_node_write
	.p2align	2
_dtfs_node_write:                       ; @dtfs_node_write
	.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
	mov	x23, x6
	mov	x20, x4
	mov	x24, x3
	mov	x21, x2
	mov	x19, x1
	mov	x0, x1
	bl	_DTFS_CTOF
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _VREG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VREG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	mov	x22, x0
Lloh3:
	adrp	x8, _PUFFS_IO_APPEND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PUFFS_IO_APPEND@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	tst	w8, w23
	csel	x23, x24, x9, eq
	ldr	x24, [x20]
	add	x1, x24, x23
	cmp	x1, x9
	b.ls	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_dtfs_setsize
	ldr	x24, [x20]
LBB0_3:
	cbz	x24, LBB0_6
; %bb.4:
Lloh6:
	adrp	x25, _DTFS_BLOCKSIZE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _DTFS_BLOCKSIZE@GOTPAGEOFF]
Lloh8:
	adrp	x26, _DTFS_BLOCKSHIFT@GOTPAGE
Lloh9:
	ldr	x26, [x26, _DTFS_BLOCKSHIFT@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	mov	x0, x23
	bl	_BLOCKLEFT
	mov	x1, x0
	mov	x0, x24
	bl	_MIN
	mov	x24, x0
	ldr	w1, [x26]
	mov	x0, x23
	bl	_BLOCKNUM
	ldr	x8, [x22]
	ldr	x27, [x8, w0, sxtw #3]
	ldr	w1, [x25]
	mov	x0, x23
	bl	_BLOCKOFF
	add	x0, x27, w0, sxtw #2
	mov	x1, x21
	mov	x2, x24
	bl	_memcpy
	add	x23, x24, x23
	ldr	x8, [x20]
	subs	x24, x8, x24
	str	x24, [x20]
	b.ne	LBB0_5
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	mov	w3, #1
	bl	_dtfs_updatetimes
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x8, _EISDIR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EISDIR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_VREG,8,3                       ; @VREG
	.comm	_EISDIR,4,2                     ; @EISDIR
	.comm	_PUFFS_IO_APPEND,4,2            ; @PUFFS_IO_APPEND
	.comm	_DTFS_BLOCKSIZE,4,2             ; @DTFS_BLOCKSIZE
	.comm	_DTFS_BLOCKSHIFT,4,2            ; @DTFS_BLOCKSHIFT
.subsections_via_symbols
