	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fci_flush_cabinet
_fci_flush_cabinet:                     ## @fci_flush_cabinet
	.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	%rsi, %r13
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	callq	_fci_flush_folder
	testq	%rax, %rax
	je	LBB0_28
## %bb.1:
	leaq	72(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	cmovneq	%r12, %r15
	testq	%r13, %r13
	cmoveq	%r12, %r15
	testq	%r15, %r15
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 152(%r14)
	movq	_FALSE@GOTPCREL(%rip), %r13
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rax
	cmpq	(%r13), %rax
	je	LBB0_35
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 16(%r14)
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%r14)
	jne	LBB0_35
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 24(%r14)
	jne	LBB0_35
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_write_cabinet
	testl	%eax, %eax
	je	LBB0_37
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 144(%r14)
	cmpq	$0, 8(%r14)
	movq	(%r13), %rcx
	je	LBB0_33
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, 8(%r14)
	cmpq	$0, (%r14)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 32(%r14)
	jne	LBB0_35
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 64(%r14)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	100(%r14), %esi
	movl	136(%r14), %edi
	movq	_CB_MAX_CABINET_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	callq	_memcpy
	movl	96(%r14), %esi
	movl	132(%r14), %edi
	movq	_CB_MAX_DISK_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	callq	_memcpy
	movq	(%r13), %rax
	movq	%rax, 64(%r14)
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	120(%r14), %rax
	movq	32(%rax), %rcx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rcx, 32(%rbx)
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	%xmm1, 16(%rbx)
	movups	%xmm0, (%rbx)
	movq	%r14, %rdi
	callq	_get_header_size
	movq	(%r14), %rdx
	movq	%rdx, %rcx
	testq	%rdx, %rdx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	addq	(%rbx), %rax
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, %rbx
	addq	%rcx, %rax
	addq	32(%r14), %rax
	addq	40(%r14), %rax
	addq	24(%r14), %rax
	movq	16(%r14), %rcx
	movq	48(%r14), %r12
	leaq	(%rcx,%rax), %r15
	addq	$4, %r15
	cmpq	(%r13), %r12
	jne	LBB0_24
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	80(%r14), %rax
	cmpq	%r15, %rax
	jge	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_CB_MAX_CABINET_NAME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%r15, %rcx
	movq	_CB_MAX_DISK_NAME@GOTPCREL(%rip), %rdx
	addq	(%rdx), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	120(%r14), %rdi
	incl	32(%rdi)
	movl	112(%r14), %edx
	movl	128(%r14), %esi
	movl	%esi, 116(%r14)
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
	testl	%eax, %eax
	je	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r12, 48(%r14)
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%r12, %r12
	je	LBB0_29
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	80(%r14), %rbx
	movl	100(%r14), %edi
	callq	_strlen
	movq	%rax, %r12
	movl	96(%r14), %edi
	callq	_strlen
	addq	%r12, %r15
	addq	%r15, %rax
	incq	%rax
	cmpq	%rax, %rbx
	jg	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %r12
	movq	%r12, 48(%r14)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r15, 8(%r14)
	movq	(%r14), %rbx
LBB0_27:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_fci_flush_folder
	movq	%r12, %r13
	testq	%rax, %rax
	jne	LBB0_2
LBB0_28:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_38
LBB0_29:
	movq	56(%r14), %rax
	cmpq	88(%r14), %rax
	jge	LBB0_39
## %bb.30:
	cmpq	$0, (%r14)
	jle	LBB0_3
## %bb.31:
	movq	(%r13), %rsi
	movq	%r14, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_fci_flush_folder
	testq	%rax, %rax
	je	LBB0_37
## %bb.32:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 64(%r14)
	jmp	LBB0_38
LBB0_3:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_38
LBB0_33:
	movq	%rcx, 64(%r14)
	cmpq	$0, (%r14)
	jg	LBB0_35
## %bb.34:
	cmpq	$0, 32(%r14)
	je	LBB0_38
LBB0_35:
	movq	_FCIERR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ERROR_GEN_FAILURE@GOTPCREL(%rip), %rax
LBB0_36:
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_set_error
LBB0_37:
	movq	(%r13), %rax
LBB0_38:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_39:
	movq	(%r13), %rsi
	movq	%r14, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fci_flush_folder               ## TAILCALL
LBB0_22:
	movq	_FCIERR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ERROR_FUNCTION_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_FCIERR_NONE,4,2                ## @FCIERR_NONE
	.comm	_ERROR_GEN_FAILURE,4,2          ## @ERROR_GEN_FAILURE
	.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_cabinet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fci_flush_cabinet
_fci_flush_cabinet:                     ; @fci_flush_cabinet
	.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	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x27, [x0]
Lloh0:
	adrp	x25, _TRUE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _TRUE@GOTPAGEOFF]
	ldr	x28, [x25]
Lloh2:
	adrp	x24, _FALSE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _FALSE@GOTPAGEOFF]
	ldr	x22, [x24]
	bl	_fci_flush_folder
	cbz	x0, LBB0_35
; %bb.1:
	add	x26, x19, #72
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x27, #0
	ccmp	x23, #0, #4, eq
	csel	x8, x28, x22, ne
	cbnz	x8, LBB0_30
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #152]
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_33
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	cbnz	x8, LBB0_33
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_33
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_write_cabinet
	cbz	w0, LBB0_35
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x25]
	str	x0, [x19, #144]
	ldr	x9, [x19, #8]
	ldr	x8, [x24]
	cbz	x9, LBB0_31
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	str	x8, [x19, #8]
	ldr	x8, [x19]
	cbnz	x8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_33
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19, #136]
	ldr	w1, [x19, #100]
Lloh4:
	adrp	x8, _CB_MAX_CABINET_NAME@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CB_MAX_CABINET_NAME@GOTPAGEOFF]
Lloh6:
	ldr	x2, [x8]
	bl	_memcpy
	ldr	w0, [x19, #132]
	ldr	w1, [x19, #96]
Lloh7:
	adrp	x8, _CB_MAX_DISK_NAME@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CB_MAX_DISK_NAME@GOTPAGEOFF]
Lloh9:
	ldr	x2, [x8]
	bl	_memcpy
	ldr	x8, [x24]
	str	x8, [x19, #64]
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #120]
	ldr	x9, [x8, #32]
	ldp	q1, q0, [x8]
	stp	q1, q0, [x26]
	str	x9, [x26, #32]
	mov	x0, x19
	bl	_get_header_size
	ldr	x27, [x19]
	cbz	x27, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26]
	add	x0, x8, x0
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	x8, x9, [x19, #32]
	ldp	x11, x10, [x19, #16]
	add	x12, x27, x0
	add	x8, x12, x8
	add	x8, x8, x9
	add	x8, x8, x10
	add	x8, x8, x11
	add	x23, x8, #4
	ldr	x22, [x19, #48]
	ldr	x8, [x24]
	cmp	x22, x8
	b.ne	LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #80]
	cmp	x8, x23
	b.ge	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x28, [x25]
	b	LBB0_25
LBB0_19:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh10:
	adrp	x9, _CB_MAX_CABINET_NAME@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CB_MAX_CABINET_NAME@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
Lloh13:
	adrp	x10, _CB_MAX_DISK_NAME@GOTPAGE
Lloh14:
	ldr	x10, [x10, _CB_MAX_DISK_NAME@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	add	x9, x9, x23
	add	x9, x9, x10
	cmp	x8, x9
	b.ge	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x19, #120]
	ldr	w8, [x0, #32]
	add	w8, w8, #1
	str	w8, [x0, #32]
	ldr	w1, [x19, #128]
	str	w1, [x19, #116]
	ldr	w2, [x19, #112]
	blr	x21
	cbz	w0, LBB0_38
; %bb.21:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x22, [x25]
	str	x22, [x19, #48]
LBB0_22:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	x22, LBB0_26
; %bb.23:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x27, [x19, #80]
	ldr	w0, [x19, #100]
	bl	_strlen
	mov	x22, x0
	ldr	w0, [x19, #96]
	bl	_strlen
	add	x8, x23, x22
	add	x8, x8, x0
	add	x8, x8, #1
	cmp	x27, x8
	b.gt	LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x22, [x24]
	str	x22, [x19, #48]
	ldr	x28, [x25]
	str	x28, [x19, #8]
	ldr	x27, [x19]
LBB0_25:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_fci_flush_folder
	mov	x23, x22
	cbnz	x0, LBB0_2
	b	LBB0_35
LBB0_26:
	ldr	x8, [x19, #56]
	ldr	x9, [x19, #88]
	cmp	x8, x9
	b.ge	LBB0_37
; %bb.27:
	ldr	x8, [x19]
	cmp	x8, #0
	b.le	LBB0_30
; %bb.28:
	ldr	x1, [x24]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	bl	_fci_flush_folder
	cbz	x0, LBB0_35
; %bb.29:
	ldr	x0, [x25]
	str	x0, [x19, #64]
	b	LBB0_36
LBB0_30:
	ldr	x0, [x25]
	b	LBB0_36
LBB0_31:
	str	x8, [x19, #64]
	ldr	x8, [x19]
	cmp	x8, #0
	b.gt	LBB0_33
; %bb.32:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_36
LBB0_33:
Lloh16:
	adrp	x8, _FCIERR_NONE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FCIERR_NONE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _ERROR_GEN_FAILURE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERROR_GEN_FAILURE@GOTPAGEOFF]
LBB0_34:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_set_error
LBB0_35:
	ldr	x0, [x24]
LBB0_36:
	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
LBB0_37:
	ldr	x1, [x24]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	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
	b	_fci_flush_folder
LBB0_38:
Lloh21:
	adrp	x8, _FCIERR_NONE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FCIERR_NONE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _ERROR_FUNCTION_FAILED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ERROR_FUNCTION_FAILED@GOTPAGEOFF]
	b	LBB0_34
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_FCIERR_NONE,4,2                ; @FCIERR_NONE
	.comm	_ERROR_GEN_FAILURE,4,2          ; @ERROR_GEN_FAILURE
	.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_cabinet
.subsections_via_symbols
