	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_detrunc                        ## -- Begin function detrunc
	.p2align	4, 0x90
_detrunc:                               ## @detrunc
	.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	$40, %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	%esi, %r15d
	movq	%rdi, %rbx
	movq	_ATTR_DIRECTORY@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	andl	(%rdi), %r14d
	movq	40(%rdi), %r12
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movslq	%edx, %rdi
	callq	_MSDOSFS_DPRINTF
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	callq	_FAT32
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	cmpl	%r15d, 4(%rbx)
	jge	LBB0_4
## %bb.27:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_deextend                       ## TAILCALL
LBB0_4:
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.10:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_de_clcount
	leaq	-1(%rax), %rsi
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_pcbmap
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
	jmp	LBB0_6
LBB0_2:
	movslq	16(%rbx), %rdi
	callq	_MSDOSFS_DPRINTF
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_26
LBB0_5:
	movl	8(%rbx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, -48(%rbp)
	movl	$0, 8(%rbx)
	movl	$-1, -44(%rbp)
LBB0_6:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_de_clcount
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_fc_purge
	movl	(%r12), %eax
	andl	%r15d, %eax
	je	LBB0_17
## %bb.7:
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.8:
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %esi
	movq	%r12, %rdi
	callq	_cntobn
	movl	16(%r12), %edi
	movq	8(%r12), %rdx
	leaq	-72(%rbp), %r8
	movl	%eax, %esi
	xorl	%ecx, %ecx
	callq	_bread
	movq	-72(%rbp), %rdi
	testl	%eax, %eax
	je	LBB0_14
## %bb.9:
	movl	%eax, %r13d
	callq	_brelse
	jmp	LBB0_13
LBB0_14:
	movslq	-56(%rbp), %rax                 ## 4-byte Folded Reload
	movq	(%rdi), %rdi
	addq	%rax, %rdi
	movq	8(%r12), %rdx
	subq	%rax, %rdx
	xorl	%esi, %esi
	callq	_memset
	movq	_IO_SYNC@GOTPCREL(%rip), %rax
	movq	-72(%rbp), %rdi
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_16
## %bb.15:
	callq	_bwrite
	jmp	LBB0_17
LBB0_16:
	callq	_bdwrite
LBB0_17:
	movl	%r15d, 4(%rbx)
	testl	%r14d, %r14d
	jne	LBB0_19
## %bb.18:
	movq	_DE_UPDATE@GOTPCREL(%rip), %rax
	movq	_DE_MODIFIED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, 12(%rbx)
LBB0_19:
	movslq	-44(%rbp), %rdi
	callq	_MSDOSFS_DPRINTF
	movl	-44(%rbp), %edx
	cmpl	$-1, %edx
	je	LBB0_22
## %bb.20:
	movq	_FAT_GET_AND_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CLUST_EOFE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-48(%rbp), %rcx
	movq	%r12, %rsi
	callq	_fatentry
	testl	%eax, %eax
	je	LBB0_21
LBB0_12:
	movl	%eax, %r13d
LBB0_13:
	movslq	%r13d, %rdi
	callq	_MSDOSFS_DPRINTF
LBB0_26:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	%r12, %r14
	movq	_FC_LASTFC@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	decl	%r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_de_cluster
	movl	-44(%rbp), %ecx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_fc_setcache
	movl	-48(%rbp), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r14, %r12
LBB0_22:
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %esi
	je	LBB0_25
## %bb.23:
	movq	%r12, %rdi
	callq	_MSDOSFSEOF
                                        ## implicit-def: $r13d
	testl	%eax, %eax
	jne	LBB0_26
## %bb.24:
	movl	-48(%rbp), %esi
	movq	%r12, %rdi
	callq	_freeclusterchain
LBB0_25:
                                        ## implicit-def: $r13d
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_ATTR_DIRECTORY,4,2             ## @ATTR_DIRECTORY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IO_SYNC,4,2                    ## @IO_SYNC
	.comm	_DE_UPDATE,4,2                  ## @DE_UPDATE
	.comm	_DE_MODIFIED,4,2                ## @DE_MODIFIED
	.comm	_FAT_GET_AND_SET,4,2            ## @FAT_GET_AND_SET
	.comm	_CLUST_EOFE,4,2                 ## @CLUST_EOFE
	.comm	_FC_LASTFC,4,2                  ## @FC_LASTFC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_detrunc                        ; -- Begin function detrunc
	.p2align	2
_detrunc:                               ; @detrunc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x23, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w24, [x0]
Lloh0:
	adrp	x8, _ATTR_DIRECTORY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATTR_DIRECTORY@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
	ldr	x19, [x0, #40]
	sxtw	x0, w22
	bl	_MSDOSFS_DPRINTF
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_FAT32
	cbz	w0, LBB0_7
LBB0_2:
	ldr	w8, [x20, #4]
	cmp	w8, w21
	b.ge	LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	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
	add	sp, sp, #96
	b	_deextend
LBB0_4:
	cbz	w21, LBB0_8
; %bb.5:
	mov	x0, x19
	mov	x1, x21
	bl	_de_clcount
	sub	x1, x0, #1
	add	x3, sp, #12
	mov	x0, x20
	mov	w2, #0
	mov	w4, #0
	bl	_pcbmap
	cbz	w0, LBB0_9
; %bb.6:
	mov	x23, x0
	sxtw	x0, w23
	bl	_MSDOSFS_DPRINTF
	b	LBB0_25
LBB0_7:
	ldrsw	x0, [x20, #16]
	bl	_MSDOSFS_DPRINTF
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	b	LBB0_25
LBB0_8:
	ldr	w23, [x20, #8]
	str	wzr, [x20, #8]
	mov	w8, #-1
	stp	w23, w8, [sp, #8]
	b	LBB0_10
LBB0_9:
                                        ; implicit-def: $w23
LBB0_10:
	and	w25, w25, w24
	mov	x0, x19
	mov	x1, x21
	bl	_de_clcount
	mov	x1, x0
	mov	x0, x20
	bl	_fc_purge
	ldr	w8, [x19]
	and	w26, w8, w21
	cmp	w26, #0
	ccmp	w25, #0, #4, ne
	b.ne	LBB0_16
LBB0_11:
	str	w21, [x20, #4]
	cbnz	w25, LBB0_13
; %bb.12:
Lloh6:
	adrp	x8, _DE_UPDATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DE_UPDATE@GOTPAGEOFF]
Lloh8:
	adrp	x9, _DE_MODIFIED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DE_MODIFIED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x20, #12]
	orr	w8, w8, w9
	str	w8, [x20, #12]
LBB0_13:
	ldrsw	x0, [sp, #12]
	bl	_MSDOSFS_DPRINTF
	ldr	w2, [sp, #12]
	cmn	w2, #1
	b.eq	LBB0_21
; %bb.14:
Lloh12:
	adrp	x8, _FAT_GET_AND_SET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FAT_GET_AND_SET@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _CLUST_EOFE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CLUST_EOFE@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
	add	x3, sp, #8
	mov	x1, x19
	bl	_fatentry
	cbz	w0, LBB0_20
; %bb.15:
	mov	x23, x0
	sxtw	x0, w23
	bl	_MSDOSFS_DPRINTF
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_25
LBB0_16:
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_cntobn
	mov	x1, x0
	ldr	w0, [x19, #16]
	ldr	x2, [x19, #8]
	mov	x4, sp
	mov	w3, #0
	bl	_bread
	mov	x24, x0
	ldr	x0, [sp]
	cbz	w24, LBB0_18
; %bb.17:
	bl	_brelse
	sxtw	x0, w24
	bl	_MSDOSFS_DPRINTF
	mov	x23, x24
	b	LBB0_25
LBB0_18:
	sxtw	x8, w26
	ldr	x9, [x0]
	add	x0, x9, x8
	ldr	x9, [x19, #8]
	sub	x2, x9, x8
	mov	w1, #0
	bl	_memset
Lloh18:
	adrp	x8, _IO_SYNC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IO_SYNC@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	x0, [sp]
	tst	w8, w22
	b.eq	LBB0_26
; %bb.19:
	bl	_bwrite
	b	LBB0_11
LBB0_20:
Lloh21:
	adrp	x8, _FC_LASTFC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FC_LASTFC@GOTPAGEOFF]
Lloh23:
	ldr	w22, [x8]
	sub	w1, w21, #1
	mov	x0, x19
	bl	_de_cluster
	mov	x2, x0
	ldr	w3, [sp, #12]
	mov	x0, x20
	mov	x1, x22
	bl	_fc_setcache
	ldr	w23, [sp, #8]
LBB0_21:
	cbz	w23, LBB0_24
; %bb.22:
	mov	x0, x19
	mov	x1, x23
	bl	_MSDOSFSEOF
                                        ; implicit-def: $w23
	cbnz	w0, LBB0_25
; %bb.23:
	ldr	w1, [sp, #8]
	mov	x0, x19
	bl	_freeclusterchain
LBB0_24:
                                        ; implicit-def: $w23
LBB0_25:
	mov	x0, x23
	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
	add	sp, sp, #96
	ret
LBB0_26:
	bl	_bdwrite
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ATTR_DIRECTORY,4,2             ; @ATTR_DIRECTORY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IO_SYNC,4,2                    ; @IO_SYNC
	.comm	_DE_UPDATE,4,2                  ; @DE_UPDATE
	.comm	_DE_MODIFIED,4,2                ; @DE_MODIFIED
	.comm	_FAT_GET_AND_SET,4,2            ; @FAT_GET_AND_SET
	.comm	_CLUST_EOFE,4,2                 ; @CLUST_EOFE
	.comm	_FC_LASTFC,4,2                  ; @FC_LASTFC
.subsections_via_symbols
