	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_deextend                       ## -- Begin function deextend
	.p2align	4, 0x90
_deextend:                              ## @deextend
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	32(%rdi), %r12
	cmpq	$0, 24(%rdi)
	je	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	callq	_FAT32
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movq	_ATTR_DIRECTORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	_EISDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_13
LBB0_5:
	cmpq	%r15, 8(%rbx)
	jge	LBB0_6
## %bb.7:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_de_clcount
	movq	%rax, %r13
	movq	8(%rbx), %rsi
	movq	%r12, %rdi
	callq	_de_clcount
	subq	%rax, %r13
	jle	LBB0_12
## %bb.8:
	cmpq	(%r12), %r13
	jle	LBB0_10
## %bb.9:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_13
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_13
LBB0_6:
	movq	_E2BIG@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_13
LBB0_10:
	movq	_DE_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_extendfile
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r12d
	movq	8(%rbx), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	_detrunc
	jmp	LBB0_13
LBB0_12:
	movq	%r15, 8(%rbx)
	movq	_DE_UPDATE@GOTPCREL(%rip), %rax
	movq	_DE_MODIFIED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, 16(%rbx)
	xorl	%r12d, %r12d
LBB0_13:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ATTR_DIRECTORY,4,2             ## @ATTR_DIRECTORY
	.comm	_EISDIR,4,2                     ## @EISDIR
	.comm	_E2BIG,4,2                      ## @E2BIG
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_DE_CLEAR,4,2                   ## @DE_CLEAR
	.comm	_DE_UPDATE,4,2                  ## @DE_UPDATE
	.comm	_DE_MODIFIED,4,2                ## @DE_MODIFIED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_deextend                       ; -- Begin function deextend
	.p2align	2
_deextend:                              ; @deextend
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldp	x8, x22, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_FAT32
	cbz	w0, LBB0_8
LBB0_2:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _ATTR_DIRECTORY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATTR_DIRECTORY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _EISDIR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EISDIR@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	b	LBB0_13
LBB0_4:
	ldr	x8, [x19, #8]
	cmp	x8, x21
	b.ge	LBB0_9
; %bb.5:
	mov	x0, x22
	mov	x1, x21
	bl	_de_clcount
	mov	x23, x0
	ldr	x1, [x19, #8]
	mov	x0, x22
	bl	_de_clcount
	sub	x1, x23, x0
	cmp	x1, #1
	b.lt	LBB0_12
; %bb.6:
	ldr	x8, [x22]
	cmp	x1, x8
	b.le	LBB0_10
; %bb.7:
Lloh6:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	b	LBB0_13
LBB0_8:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	b	LBB0_13
LBB0_9:
Lloh12:
	adrp	x8, _E2BIG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
	b	LBB0_13
LBB0_10:
Lloh15:
	adrp	x8, _DE_CLEAR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DE_CLEAR@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	bl	_extendfile
	cbz	w0, LBB0_12
; %bb.11:
	mov	x22, x0
	ldr	x1, [x19, #8]
	mov	x0, x19
	mov	w2, #0
	mov	x3, x20
	bl	_detrunc
	b	LBB0_13
LBB0_12:
	mov	w22, #0
	str	x21, [x19, #8]
Lloh18:
	adrp	x8, _DE_UPDATE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DE_UPDATE@GOTPAGEOFF]
Lloh20:
	adrp	x9, _DE_MODIFIED@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DE_MODIFIED@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #16]
	orr	w8, w8, w9
	str	w8, [x19, #16]
LBB0_13:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ATTR_DIRECTORY,4,2             ; @ATTR_DIRECTORY
	.comm	_EISDIR,4,2                     ; @EISDIR
	.comm	_E2BIG,4,2                      ; @E2BIG
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_DE_CLEAR,4,2                   ; @DE_CLEAR
	.comm	_DE_UPDATE,4,2                  ; @DE_UPDATE
	.comm	_DE_MODIFIED,4,2                ; @DE_MODIFIED
.subsections_via_symbols
