	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_extendfile                     ## -- Begin function extendfile
	.p2align	4, 0x90
_extendfile:                            ## @extendfile
	.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
	movl	%r8d, -76(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	movq	24(%rdi), %r14
	movq	_MSDOSFSROOT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_3
## %bb.1:
	movq	_ATTR_DIRECTORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r12)
	je	LBB0_3
## %bb.2:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_33
LBB0_3:
	movq	16(%r12), %rax
	movq	_FC_LASTFC@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rcx
	movq	_FCE_EMPTY@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_7
## %bb.4:
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.5:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	movl	$65535, %esi                    ## imm = 0xFFFF
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_pcbmap
	movl	%eax, %r13d
	movq	_E2BIG@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_33
## %bb.6:
	movq	16(%r12), %rax
	movq	_FC_LASTFC@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rcx
	movq	%rbx, %rdx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
LBB0_7:
	movq	_FC_NEXTTOLASTFC@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	shlq	$4, %rsi
	movq	%rcx, (%rax,%rsi)
	movq	(%rdi), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rcx
	movq	(%rbx), %rsi
	shlq	$4, %rsi
	movq	%rcx, 8(%rax,%rsi)
	testq	%r15, %r15
	jle	LBB0_8
## %bb.9:
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_10 Depth=1
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_32:                                ##   in Loop: Header=BB0_10 Depth=1
	xorl	%r13d, %r13d
	testq	%r15, %r15
	jle	LBB0_33
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r12)
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	16(%r12), %rax
	movq	_FC_LASTFC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rsi
	incq	%rsi
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_10 Depth=1
	xorl	%esi, %esi
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rsi, -48(%rbp)
	movq	_CLUST_EOFE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r15, %rdx
	leaq	-48(%rbp), %r8
	leaq	-56(%rbp), %r9
	callq	_clusteralloc
	testl	%eax, %eax
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	testq	%r13, %r13
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %rax
	movq	%rax, (%r13)
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rdi
	cmpq	$0, (%r12)
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rbx
	movq	_FAT_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r12), %rax
	movq	_FC_LASTFC@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdx
	movq	-48(%rbp), %r8
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_fatentry
	testl	%eax, %eax
	jne	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	16(%r12), %rax
	movq	(%r15), %rsi
	movq	%rsi, %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdx
	incq	%rdx
	movq	-56(%rbp), %rcx
	movq	-48(%rbp), %rax
	movq	%rbx, %r15
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %rax
	movq	%rax, (%r12)
	movq	_FC_LASTFC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	%rdi, %rcx
	xorl	%edx, %edx
LBB0_22:                                ##   in Loop: Header=BB0_10 Depth=1
	subq	%rdi, %r15
	addq	%rcx, %rdx
	decq	%rdx
	addq	%rax, %rcx
	decq	%rcx
	movq	%r12, %rdi
	callq	_fc_setcache
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	movq	_DE_CLEAR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_32
## %bb.23:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_ATTR_DIRECTORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r12)
	je	LBB0_32
## %bb.24:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, -56(%rbp)
	testq	%rax, %rax
	jle	LBB0_32
## %bb.25:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	4(%r14), %r13d
	movq	-48(%rbp), %rsi
	leaq	1(%rsi), %rax
	movq	%rax, -48(%rbp)
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_cntobn
	movl	(%r14), %edx
	movl	%r13d, %edi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_getblk
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_clrbuf
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, (%rax)
	jmp	LBB0_30
LBB0_27:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %rdi
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	4(%r14), %ebx
	movq	-48(%rbp), %rsi
	leaq	1(%rsi), %rax
	movq	%rax, -48(%rbp)
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_cntobn
	movl	(%r14), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_getblk
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_clrbuf
	movq	%rbx, %rdi
LBB0_29:                                ##   in Loop: Header=BB0_10 Depth=1
	callq	_bdwrite
LBB0_30:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, -56(%rbp)
	testq	%rax, %rax
	jg	LBB0_28
	jmp	LBB0_31
LBB0_8:
	xorl	%r13d, %r13d
	jmp	LBB0_33
LBB0_14:
	movl	%eax, %r13d
	jmp	LBB0_33
LBB0_20:
	movl	%eax, %r13d
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_clusterfree
LBB0_33:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSDOSFSROOT,8,3                ## @MSDOSFSROOT
	.comm	_ATTR_DIRECTORY,4,2             ## @ATTR_DIRECTORY
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_FC_LASTFC,8,3                  ## @FC_LASTFC
	.comm	_FCE_EMPTY,8,3                  ## @FCE_EMPTY
	.comm	_E2BIG,4,2                      ## @E2BIG
	.comm	_FC_NEXTTOLASTFC,8,3            ## @FC_NEXTTOLASTFC
	.comm	_CLUST_EOFE,4,2                 ## @CLUST_EOFE
	.comm	_FAT_SET,4,2                    ## @FAT_SET
	.comm	_DE_CLEAR,4,2                   ## @DE_CLEAR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_extendfile                     ; -- Begin function extendfile
	.p2align	2
_extendfile:                            ; @extendfile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x4
	mov	x24, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x19, [x0, #24]
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _MSDOSFSROOT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSDOSFSROOT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x22, #8]
Lloh3:
	adrp	x10, _ATTR_DIRECTORY@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ATTR_DIRECTORY@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh8:
	ldr	w25, [x8]
	b	LBB0_31
LBB0_3:
	ldr	x8, [x22, #16]
Lloh9:
	adrp	x26, _FC_LASTFC@GOTPAGE
Lloh10:
	ldr	x26, [x26, _FC_LASTFC@GOTPAGEOFF]
	ldr	x10, [x26]
	lsl	x10, x10, #4
	ldr	x10, [x8, x10]
Lloh11:
	adrp	x11, _FCE_EMPTY@GOTPAGE
Lloh12:
	ldr	x11, [x11, _FCE_EMPTY@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
	cmp	x10, x11
	ccmp	x9, #0, #4, eq
	b.eq	LBB0_6
; %bb.4:
	add	x3, sp, #8
	mov	x0, x22
	mov	w1, #65535
	mov	w2, #0
	mov	w4, #0
	bl	_pcbmap
	mov	x25, x0
Lloh14:
	adrp	x8, _E2BIG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_31
; %bb.5:
	ldr	x8, [x22, #16]
	ldr	x9, [x26]
	lsl	x9, x9, #4
	ldr	x10, [x8, x9]
LBB0_6:
Lloh17:
	adrp	x9, _FC_NEXTTOLASTFC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _FC_NEXTTOLASTFC@GOTPAGEOFF]
	ldr	x11, [x9]
	lsl	x11, x11, #4
	str	x10, [x8, x11]
	ldr	x10, [x26]
	add	x10, x8, x10, lsl #4
	ldr	x10, [x10, #8]
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #4
	str	x10, [x8, #8]
	cmp	x21, #1
	b.lt	LBB0_28
; %bb.7:
Lloh19:
	adrp	x27, _CLUST_EOFE@GOTPAGE
Lloh20:
	ldr	x27, [x27, _CLUST_EOFE@GOTPAGEOFF]
Lloh21:
	adrp	x28, _DE_CLEAR@GOTPAGE
Lloh22:
	ldr	x28, [x28, _DE_CLEAR@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x23, #0
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x24, #0
	cmp	x21, #0
	b.le	LBB0_28
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_27 Depth 2
	ldr	x8, [x22]
	cbz	x8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x22, #16]
	ldr	x9, [x26]
	add	x8, x8, x9, lsl #4
	ldr	x8, [x8, #8]
	add	x1, x8, #1
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x1, #0
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	str	x1, [sp, #8]
	ldr	w3, [x27]
	add	x4, sp, #8
	mov	x5, sp
	mov	x0, x19
	mov	x2, x21
	bl	_clusteralloc
	cbnz	w0, LBB0_29
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	cbz	x24, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp, #8]
	str	x8, [x24]
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x24, [sp]
	ldr	x8, [x22]
	cbz	x8, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=1
Lloh23:
	adrp	x8, _FAT_SET@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FAT_SET@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldr	x8, [x22, #16]
	ldr	x9, [x26]
	add	x8, x8, x9, lsl #4
	ldr	x2, [x8, #8]
	ldr	x4, [sp, #8]
	mov	x1, x19
	mov	w3, #0
	bl	_fatentry
	cbnz	w0, LBB0_30
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x22, #16]
	ldr	x1, [x26]
	lsl	x9, x1, #4
	ldr	x8, [x8, x9]
	add	x8, x8, #1
	ldp	x10, x9, [sp]
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [sp, #8]
	str	x9, [x22]
	ldr	x1, [x26]
	mov	x10, x24
LBB0_20:                                ;   in Loop: Header=BB0_10 Depth=1
	sub	x21, x21, x24
	sub	x10, x10, #1
	add	x2, x10, x8
	add	x3, x10, x9
	mov	x0, x22
	bl	_fc_setcache
	ldr	w8, [x28]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.21:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x22, #8]
Lloh26:
	adrp	x9, _ATTR_DIRECTORY@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ATTR_DIRECTORY@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.22:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp]
	subs	x8, x8, #1
	str	x8, [sp]
	b.lt	LBB0_9
; %bb.23:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w24, [x19, #4]
	ldr	x1, [sp, #8]
	add	x8, x1, #1
	str	x8, [sp, #8]
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_cntobn
	mov	x1, x0
	ldr	w2, [x19]
	mov	x0, x24
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_getblk
	mov	x24, x0
	bl	_clrbuf
	cbz	x23, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_10 Depth=1
	str	x24, [x23]
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x24
	bl	_bdwrite
LBB0_26:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp]
	subs	x8, x8, #1
	str	x8, [sp]
	b.lt	LBB0_8
LBB0_27:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w23, [x19, #4]
	ldr	x1, [sp, #8]
	add	x8, x1, #1
	str	x8, [sp, #8]
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_cntobn
	mov	x1, x0
	ldr	w2, [x19]
	mov	x0, x23
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_getblk
	mov	x23, x0
	bl	_clrbuf
	mov	x0, x23
	bl	_bdwrite
	ldr	x8, [sp]
	sub	x9, x8, #1
	str	x9, [sp]
	cmp	x8, #0
	b.gt	LBB0_27
	b	LBB0_8
LBB0_28:
	mov	w25, #0
	b	LBB0_31
LBB0_29:
	mov	x25, x0
	b	LBB0_31
LBB0_30:
	mov	x25, x0
	ldr	x1, [sp, #8]
	mov	x0, x19
	mov	x2, #0
	bl	_clusterfree
LBB0_31:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_MSDOSFSROOT,8,3                ; @MSDOSFSROOT
	.comm	_ATTR_DIRECTORY,4,2             ; @ATTR_DIRECTORY
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_FC_LASTFC,8,3                  ; @FC_LASTFC
	.comm	_FCE_EMPTY,8,3                  ; @FCE_EMPTY
	.comm	_E2BIG,4,2                      ; @E2BIG
	.comm	_FC_NEXTTOLASTFC,8,3            ; @FC_NEXTTOLASTFC
	.comm	_CLUST_EOFE,4,2                 ; @CLUST_EOFE
	.comm	_FAT_SET,4,2                    ; @FAT_SET
	.comm	_DE_CLEAR,4,2                   ; @DE_CLEAR
.subsections_via_symbols
