	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__zip_cdir_write                ## -- Begin function _zip_cdir_write
	.p2align	4, 0x90
__zip_cdir_write:                       ## @_zip_cdir_write
	.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	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rcx, %rdi
	callq	_ftello
	testq	%rax, %rax
	js	LBB0_7
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	testq	%r13, %r13
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %r14
	je	LBB0_8
## %bb.2:
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	32(%rcx), %rax
	movslq	(%rbx,%r15,4), %rdx
	shlq	$4, %rdx
	movq	8(%rax,%rdx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rax,%rdx), %rdi
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_ZIP_FL_CENTRAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	__zip_dirent_write
	testl	%eax, %eax
	js	LBB0_22
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %eax
	cmovnel	%eax, %r12d
	incq	%r15
	cmpq	%r15, %r13
	jne	LBB0_3
	jmp	LBB0_9
LBB0_7:
	movq	_ZIP_ER_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	jmp	LBB0_21
LBB0_8:
	xorl	%r12d, %r12d
LBB0_9:
	movq	%r14, %r15
	movq	%r14, %rdi
	callq	_ftello
	testq	%rax, %rax
	js	LBB0_16
## %bb.10:
	movq	%rax, %rdx
	movq	%rax, %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	subq	%rax, %r14
	movq	_ZIP_UINT32_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%r13, %rbx
	movq	%rax, %r13
	ja	LBB0_13
## %bb.11:
	movq	_ZIP_UINT16_MAX@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jb	LBB0_13
## %bb.12:
	testl	%r12d, %r12d
	je	LBB0_14
LBB0_13:
	movq	_EOCD64_MAGIC@GOTPCREL(%rip), %rax
	movq	%rdx, %r12
	movl	(%rax), %edi
	movl	$1, %esi
	movl	$4, %edx
	movq	%r15, %rcx
	callq	_fwrite
	movq	_EOCD64LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	addq	$-12, %rdi
	movq	%r15, %rsi
	callq	__zip_write8
	movl	$45, %edi
	movq	%r15, %rsi
	callq	__zip_write2
	movl	$45, %edi
	movq	%r15, %rsi
	callq	__zip_write2
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	__zip_write4
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	__zip_write4
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	__zip_write8
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	__zip_write8
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	__zip_write8
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	__zip_write8
	movq	_EOCD64LOC_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	movl	$4, %edx
	movq	%r15, %rcx
	callq	_fwrite
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	__zip_write4
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	__zip_write8
	movl	$1, %edi
	movq	%r15, %rsi
	callq	__zip_write4
LBB0_14:
	movq	_EOCD_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	movl	$4, %edx
	movq	%r15, %rcx
	callq	_fwrite
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	__zip_write4
	movq	_ZIP_UINT16_MAX@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	cmpq	%rbx, %rdi
	cmovaeq	%rbx, %rdi
	movq	%r15, %rsi
	callq	__zip_write2
	movq	(%r12), %rax
	cmpq	%rbx, %rax
	cmovbq	%rax, %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	__zip_write2
	movq	_ZIP_UINT32_MAX@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	cmpq	%rdi, %r14
	cmovbq	%r14, %rdi
	movq	%r15, %rsi
	callq	__zip_write4
	movq	(%rbx), %rdi
	cmpq	%rdi, %r13
	cmovbq	%r13, %rdi
	movq	%r15, %rsi
	callq	__zip_write4
	xorl	%eax, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, 24(%rcx)
	setne	%al
	movq	8(%rcx,%rax,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.15:
	movq	(%rbx), %rdi
	movq	%r15, %rsi
	callq	__zip_write2
	movl	(%rbx), %edx
	movl	8(%rbx), %edi
	movl	$1, %esi
	movq	%r15, %rcx
	callq	_fwrite
	jmp	LBB0_18
LBB0_16:
	movq	_ZIP_ER_READ@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_17:
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	__zip_write2
LBB0_18:
	movq	%r15, %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_23
## %bb.19:
	movq	_ZIP_ER_WRITE@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %esi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_21:
	callq	__zip_error_set
LBB0_22:
	movl	$-1, %r14d
LBB0_23:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZIP_ER_READ,4,2                ## @ZIP_ER_READ
	.comm	_errno,4,2                      ## @errno
	.comm	_ZIP_FL_CENTRAL,4,2             ## @ZIP_FL_CENTRAL
	.comm	_ZIP_UINT32_MAX,8,3             ## @ZIP_UINT32_MAX
	.comm	_ZIP_UINT16_MAX,8,3             ## @ZIP_UINT16_MAX
	.comm	_EOCD64_MAGIC,4,2               ## @EOCD64_MAGIC
	.comm	_EOCD64LEN,4,2                  ## @EOCD64LEN
	.comm	_EOCD64LOC_MAGIC,4,2            ## @EOCD64LOC_MAGIC
	.comm	_EOCD_MAGIC,4,2                 ## @EOCD_MAGIC
	.comm	_ZIP_ER_WRITE,4,2               ## @ZIP_ER_WRITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__zip_cdir_write                ; -- Begin function _zip_cdir_write
	.p2align	2
__zip_cdir_write:                       ; @_zip_cdir_write
	.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	x23, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x3
	bl	_ftello
	tbnz	x0, #63, LBB0_12
; %bb.1:
	mov	x21, x0
	mov	w27, #0
	cbz	x23, LBB0_7
; %bb.2:
Lloh0:
	adrp	x24, _ZIP_FL_CENTRAL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ZIP_FL_CENTRAL@GOTPAGEOFF]
	mov	x25, x23
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldrsw	x9, [x22]
	add	x10, x8, x9, lsl #4
	ldr	x0, [x10, #8]
	cbnz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x24]
	mov	x1, x20
	mov	x3, x19
	bl	__zip_dirent_write
	tbnz	w0, #31, LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #0
	csinc	w27, w27, wzr, eq
	add	x22, x22, #4
	subs	x25, x25, #1
	b.ne	LBB0_3
LBB0_7:
	mov	x0, x20
	bl	_ftello
	tbnz	x0, #63, LBB0_12
; %bb.8:
	mov	x24, x0
	sub	x22, x0, x21
Lloh2:
	adrp	x25, _ZIP_UINT32_MAX@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ZIP_UINT32_MAX@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh4:
	adrp	x26, _ZIP_UINT16_MAX@GOTPAGE
Lloh5:
	ldr	x26, [x26, _ZIP_UINT16_MAX@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	x21, x8
	ccmp	x9, x23, #0, ls
	ccmp	w27, #0, #0, hs
	b.eq	LBB0_10
; %bb.9:
Lloh6:
	adrp	x8, _EOCD64_MAGIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOCD64_MAGIC@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #1
	mov	w2, #4
	mov	x3, x20
	bl	_fwrite
Lloh9:
	adrp	x8, _EOCD64LEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOCD64LEN@GOTPAGEOFF]
Lloh11:
	ldrsw	x8, [x8]
	sub	x0, x8, #12
	mov	x1, x20
	bl	__zip_write8
	mov	w0, #45
	mov	x1, x20
	bl	__zip_write2
	mov	w0, #45
	mov	x1, x20
	bl	__zip_write2
	mov	x0, #0
	mov	x1, x20
	bl	__zip_write4
	mov	x0, #0
	mov	x1, x20
	bl	__zip_write4
	mov	x0, x23
	mov	x1, x20
	bl	__zip_write8
	mov	x0, x23
	mov	x1, x20
	bl	__zip_write8
	mov	x0, x22
	mov	x1, x20
	bl	__zip_write8
	mov	x0, x21
	mov	x1, x20
	bl	__zip_write8
Lloh12:
	adrp	x8, _EOCD64LOC_MAGIC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EOCD64LOC_MAGIC@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	w1, #1
	mov	w2, #4
	mov	x3, x20
	bl	_fwrite
	mov	x0, #0
	mov	x1, x20
	bl	__zip_write4
	mov	x0, x24
	mov	x1, x20
	bl	__zip_write8
	mov	w0, #1
	mov	x1, x20
	bl	__zip_write4
LBB0_10:
Lloh15:
	adrp	x8, _EOCD_MAGIC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EOCD_MAGIC@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	w1, #1
	mov	w2, #4
	mov	x3, x20
	bl	_fwrite
	mov	x0, #0
	mov	x1, x20
	bl	__zip_write4
	ldr	x8, [x26]
	cmp	x8, x23
	csel	x0, x8, x23, lo
	mov	x1, x20
	bl	__zip_write2
	ldr	x8, [x26]
	cmp	x8, x23
	csel	x0, x8, x23, lo
	mov	x1, x20
	bl	__zip_write2
	ldr	x8, [x25]
	cmp	x22, x8
	csel	x0, x22, x8, lo
	mov	x1, x20
	bl	__zip_write4
	ldr	x8, [x25]
	cmp	x21, x8
	csel	x0, x21, x8, lo
	mov	x1, x20
	bl	__zip_write4
	ldr	x8, [x19, #24]
	mov	w9, #16
	mov	w10, #8
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	x21, [x19, x8]
	cbz	x21, LBB0_13
; %bb.11:
	ldr	x0, [x21]
	mov	x1, x20
	bl	__zip_write2
	ldr	w0, [x21, #8]
	ldr	w2, [x21]
	mov	w1, #1
	mov	x3, x20
	bl	_fwrite
	b	LBB0_14
LBB0_12:
Lloh18:
	adrp	x8, _ZIP_ER_READ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ZIP_ER_READ@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
	mov	x0, #0
	mov	x1, x20
	bl	__zip_write2
LBB0_14:
	mov	x0, x20
	bl	_ferror
	cbz	x0, LBB0_18
; %bb.15:
Lloh20:
	adrp	x8, _ZIP_ER_WRITE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ZIP_ER_WRITE@GOTPAGEOFF]
LBB0_16:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _errno@GOTPAGE
Lloh23:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	bl	__zip_error_set
LBB0_17:
	mov	w22, #-1
LBB0_18:
	mov	x0, x22
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ZIP_ER_READ,4,2                ; @ZIP_ER_READ
	.comm	_errno,4,2                      ; @errno
	.comm	_ZIP_FL_CENTRAL,4,2             ; @ZIP_FL_CENTRAL
	.comm	_ZIP_UINT32_MAX,8,3             ; @ZIP_UINT32_MAX
	.comm	_ZIP_UINT16_MAX,8,3             ; @ZIP_UINT16_MAX
	.comm	_EOCD64_MAGIC,4,2               ; @EOCD64_MAGIC
	.comm	_EOCD64LEN,4,2                  ; @EOCD64LEN
	.comm	_EOCD64LOC_MAGIC,4,2            ; @EOCD64LOC_MAGIC
	.comm	_EOCD_MAGIC,4,2                 ; @EOCD_MAGIC
	.comm	_ZIP_ER_WRITE,4,2               ; @ZIP_ER_WRITE
.subsections_via_symbols
