	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fci_flush_folder
_fci_flush_folder:                      ## @fci_flush_folder
	.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	%rdi, %rbx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	%rcx, %r14
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.4:
	movq	%rdx, %r12
	movq	%rsi, %r15
	cmpq	$0, (%rbx)
	je	LBB0_7
## %bb.5:
	cmpq	$0, 8(%rbx)
	jne	LBB0_6
LBB0_7:
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.9:
	cmpq	$0, 72(%rbx)
	je	LBB0_11
## %bb.10:
	cmpq	$0, 32(%rbx)
	jne	LBB0_36
LBB0_11:
	movq	_FALSE@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, 72(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_add_data_block
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:
	movq	$0, 64(%rbx)
	movq	%rbx, %rdi
	callq	_get_header_size
	addq	88(%rbx), %rax
	addq	32(%rbx), %rax
	addq	40(%rbx), %rax
	addq	16(%rbx), %rax
	addq	24(%rbx), %rax
	movq	48(%rbx), %rcx
	leaq	(%rcx,%rax), %rdx
	addq	$4, %rdx
	movq	%rdx, 120(%rbx)
	movq	$0, 128(%rbx)
	movq	_statusFolder@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	104(%rbx), %ecx
	xorl	%esi, %esi
	callq	*%r14
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.16:
	movq	%rbx, %rdi
	callq	_get_header_size
	addq	40(%rbx), %rax
	addq	32(%rbx), %rax
	addq	48(%rbx), %rax
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.17:
	movq	88(%rbx), %rdx
	addq	%rdx, %rax
	addq	$4, %rax
LBB0_18:
	movq	(%rbx), %rdi
	movq	_FALSE@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rdi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_26
## %bb.19:
	cmpq	%rdi, 8(%rbx)
	jne	LBB0_26
## %bb.20:
	testq	%r15, %r15
	jne	LBB0_22
## %bb.21:
	movq	_CB_MAX_CABINET_NAME@GOTPCREL(%rip), %rdx
	movq	_CB_MAX_DISK_NAME@GOTPCREL(%rip), %rsi
	addq	%rax, %rcx
	addq	24(%rbx), %rcx
	addq	(%rdx), %rcx
	addq	(%rsi), %rcx
	cmpq	%rcx, 96(%rbx)
	jge	LBB0_26
LBB0_22:
	movq	80(%rbx), %rdi
	incl	8(%rdi)
	movq	120(%rbx), %rsi
	movq	%rsi, 112(%rbx)
	movl	104(%rbx), %edx
	callq	*%r12
	testl	%eax, %eax
	je	LBB0_23
## %bb.25:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, (%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_26:
	testq	%rdi, %rdi
	jne	LBB0_28
## %bb.27:
	cmpq	$0, 8(%rbx)
	je	LBB0_32
LBB0_28:
	movq	80(%rbx), %rcx
	movq	96(%rbx), %rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rcx), %edi
	movq	24(%rbx), %r13
	addq	%rax, %r13
	addq	16(%rbx), %r13
	callq	_strlen
	movq	%rax, %r12
	movq	80(%rbx), %rax
	movl	(%rax), %edi
	callq	_strlen
	testq	%r15, %r15
	jne	LBB0_30
## %bb.29:
	addq	%r12, %r13
	addq	%r13, %rax
	incq	%rax
	cmpq	%rax, -48(%rbp)                 ## 8-byte Folded Reload
	jle	LBB0_30
## %bb.37:
	cmpq	$0, 8(%rbx)
	movq	_FALSE@GOTPCREL(%rip), %r13
	je	LBB0_32
## %bb.38:
	movq	_FCIERR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ERROR_GEN_FAILURE@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %edx
	movq	%rbx, %rdi
	jmp	LBB0_14
LBB0_2:
	movq	_FCIERR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ERROR_BAD_ARGUMENTS@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_8:
	cmpq	$0, 24(%rbx)
	je	LBB0_36
LBB0_6:
	movq	_FCIERR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ERROR_GEN_FAILURE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_set_error
	movq	_FALSE@GOTPCREL(%rip), %r13
LBB0_15:
	movq	(%r13), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_FCIERR_USER_ABORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
LBB0_14:
	callq	_set_error
	jmp	LBB0_15
LBB0_30:
	movq	_FALSE@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, (%rbx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	80(%rbx), %rax
	movq	96(%rbx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rax), %edi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	addq	16(%rbx), %r12
	callq	_strlen
	movq	%rax, %r15
	movq	80(%rbx), %rax
	movl	(%rax), %edi
	callq	_strlen
	addq	%r12, %r15
	addq	%r15, %rax
	addq	$2, %rax
	cmpq	%rax, -48(%rbp)                 ## 8-byte Folded Reload
	jle	LBB0_15
## %bb.31:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%rbx)
	movq	_FALSE@GOTPCREL(%rip), %r13
LBB0_32:
	movq	%rbx, %rdi
	callq	_add_folder
	testq	%rax, %rax
	je	LBB0_15
## %bb.33:
	movq	%rax, %r15
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r14, %rcx
	callq	_add_data_to_folder
	testl	%eax, %eax
	je	LBB0_15
## %bb.34:
	movq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_add_files_to_folder
	testl	%eax, %eax
	je	LBB0_15
## %bb.35:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%rbx)
LBB0_36:
	movq	_TRUE@GOTPCREL(%rip), %r13
	jmp	LBB0_15
LBB0_23:
	movq	_FCIERR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ERROR_FUNCTION_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_FCIERR_NONE,4,2                ## @FCIERR_NONE
	.comm	_ERROR_BAD_ARGUMENTS,4,2        ## @ERROR_BAD_ARGUMENTS
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_ERROR_GEN_FAILURE,4,2          ## @ERROR_GEN_FAILURE
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_statusFolder,4,2               ## @statusFolder
	.comm	_FCIERR_USER_ABORT,4,2          ## @FCIERR_USER_ABORT
	.comm	_CB_MAX_CABINET_NAME,8,3        ## @CB_MAX_CABINET_NAME
	.comm	_CB_MAX_DISK_NAME,8,3           ## @CB_MAX_DISK_NAME
	.comm	_ERROR_FUNCTION_FAILED,4,2      ## @ERROR_FUNCTION_FAILED
	.no_dead_strip	_fci_flush_folder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fci_flush_folder
_fci_flush_folder:                      ; @fci_flush_folder
	.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	x19, x0
	cbz	x2, LBB0_22
; %bb.1:
	mov	x20, x3
	cbz	x3, LBB0_22
; %bb.2:
	mov	x22, x2
	mov	x21, x1
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_24
LBB0_4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_23
; %bb.5:
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_36
LBB0_7:
Lloh0:
	adrp	x23, _FALSE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x8, [x19, #72]
	mov	x0, x19
	mov	x1, x20
	bl	_add_data_block
	cbz	w0, LBB0_28
; %bb.8:
	str	xzr, [x19, #64]
	mov	x0, x19
	bl	_get_header_size
	ldr	x8, [x19, #88]
	ldp	x9, x10, [x19, #32]
	add	x8, x0, x8
	add	x8, x8, x9
	ldp	x9, x11, [x19, #16]
	add	x8, x8, x10
	add	x8, x8, x9
	ldr	x9, [x19, #48]
	add	x8, x8, x11
	add	x8, x8, x9
	add	x2, x8, #4
	stp	x2, xzr, [x19, #120]
Lloh2:
	adrp	x8, _statusFolder@GOTPAGE
Lloh3:
	ldr	x8, [x8, _statusFolder@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w3, [x19, #104]
	mov	x1, #0
	blr	x20
	cmn	w0, #1
	b.eq	LBB0_29
; %bb.9:
	mov	x0, x19
	bl	_get_header_size
	ldp	x9, x8, [x19, #32]
	add	x8, x8, x0
	add	x8, x8, x9
	ldr	x9, [x19, #48]
	add	x24, x8, x9
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_11
; %bb.10:
	ldr	x8, [x19, #88]
	add	x8, x24, x8
	add	x24, x8, #4
LBB0_11:
	ldr	x8, [x19]
	ldr	x10, [x23]
	cmp	x8, x10
	b.ne	LBB0_17
; %bb.12:
	ldr	x10, [x19, #8]
	cmp	x10, x8
	b.ne	LBB0_17
; %bb.13:
	cbnz	x21, LBB0_15
; %bb.14:
	ldr	x10, [x19, #96]
	ldr	x11, [x19, #24]
Lloh5:
	adrp	x12, _CB_MAX_CABINET_NAME@GOTPAGE
Lloh6:
	ldr	x12, [x12, _CB_MAX_CABINET_NAME@GOTPAGEOFF]
Lloh7:
	ldr	x12, [x12]
Lloh8:
	adrp	x13, _CB_MAX_DISK_NAME@GOTPAGE
Lloh9:
	ldr	x13, [x13, _CB_MAX_DISK_NAME@GOTPAGEOFF]
Lloh10:
	ldr	x13, [x13]
	add	x9, x24, x9
	add	x9, x9, x11
	add	x9, x9, x12
	add	x9, x9, x13
	cmp	x10, x9
	b.ge	LBB0_17
LBB0_15:
	ldr	x0, [x19, #80]
	ldr	w8, [x0, #8]
	add	w8, w8, #1
	str	w8, [x0, #8]
	ldr	x1, [x19, #120]
	str	x1, [x19, #112]
	ldr	w2, [x19, #104]
	blr	x22
	cbz	w0, LBB0_37
; %bb.16:
Lloh11:
	adrp	x8, _TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_17:
	cbnz	x8, LBB0_19
; %bb.18:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_32
LBB0_19:
	ldr	x25, [x19, #96]
	ldp	x27, x26, [x19, #16]
	ldr	x8, [x19, #80]
	ldr	w0, [x8, #4]
	bl	_strlen
	mov	x22, x0
	ldr	x8, [x19, #80]
	ldr	w0, [x8]
	bl	_strlen
	cbnz	x21, LBB0_30
; %bb.20:
	add	x8, x24, x26
	add	x8, x8, x27
	add	x8, x8, x22
	add	x8, x8, x0
	add	x8, x8, #1
	cmp	x25, x8
	b.le	LBB0_30
; %bb.21:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_24
	b	LBB0_32
LBB0_22:
Lloh14:
	adrp	x8, _FCIERR_NONE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FCIERR_NONE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _ERROR_BAD_ARGUMENTS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERROR_BAD_ARGUMENTS@GOTPAGEOFF]
	b	LBB0_25
LBB0_23:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_36
LBB0_24:
Lloh19:
	adrp	x8, _FCIERR_NONE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FCIERR_NONE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _ERROR_GEN_FAILURE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERROR_GEN_FAILURE@GOTPAGEOFF]
LBB0_25:
	ldr	w2, [x8]
	mov	x0, x19
LBB0_26:
	bl	_set_error
LBB0_27:
Lloh24:
	adrp	x23, _FALSE@GOTPAGE
Lloh25:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
LBB0_28:
	ldr	x0, [x23]
	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
LBB0_29:
Lloh26:
	adrp	x8, _FCIERR_USER_ABORT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FCIERR_USER_ABORT@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	b	LBB0_26
LBB0_30:
	ldr	x8, [x23]
	str	x8, [x19]
Lloh29:
	adrp	x22, _TRUE@GOTPAGE
Lloh30:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
	ldr	x8, [x22]
	str	x8, [x19, #8]
	ldr	x25, [x19, #96]
	ldr	x26, [x19, #16]
	ldr	x8, [x19, #80]
	ldr	w0, [x8, #4]
	bl	_strlen
	mov	x21, x0
	ldr	x8, [x19, #80]
	ldr	w0, [x8]
	bl	_strlen
	add	x8, x24, x26
	add	x8, x8, x21
	add	x8, x8, x0
	add	x8, x8, #2
	cmp	x25, x8
	b.le	LBB0_28
; %bb.31:
	ldr	x8, [x22]
	str	x8, [x19, #72]
LBB0_32:
	mov	x0, x19
	bl	_add_folder
	cbz	x0, LBB0_27
; %bb.33:
	mov	x21, x0
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	bl	_add_data_to_folder
	cbz	w0, LBB0_27
; %bb.34:
	ldr	x2, [sp, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_add_files_to_folder
	cbz	w0, LBB0_27
; %bb.35:
	stp	xzr, xzr, [x19, #56]
LBB0_36:
Lloh31:
	adrp	x23, _TRUE@GOTPAGE
Lloh32:
	ldr	x23, [x23, _TRUE@GOTPAGEOFF]
	b	LBB0_28
LBB0_37:
Lloh33:
	adrp	x8, _FCIERR_NONE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _FCIERR_NONE@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x8, _ERROR_FUNCTION_FAILED@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ERROR_FUNCTION_FAILED@GOTPAGEOFF]
	b	LBB0_25
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_FCIERR_NONE,4,2                ; @FCIERR_NONE
	.comm	_ERROR_BAD_ARGUMENTS,4,2        ; @ERROR_BAD_ARGUMENTS
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_ERROR_GEN_FAILURE,4,2          ; @ERROR_GEN_FAILURE
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_statusFolder,4,2               ; @statusFolder
	.comm	_FCIERR_USER_ABORT,4,2          ; @FCIERR_USER_ABORT
	.comm	_CB_MAX_CABINET_NAME,8,3        ; @CB_MAX_CABINET_NAME
	.comm	_CB_MAX_DISK_NAME,8,3           ; @CB_MAX_DISK_NAME
	.comm	_ERROR_FUNCTION_FAILED,4,2      ; @ERROR_FUNCTION_FAILED
	.no_dead_strip	_fci_flush_folder
.subsections_via_symbols
