	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Write_EndOfCentralDirectoryRecord ## -- Begin function Write_EndOfCentralDirectoryRecord
	.p2align	4, 0x90
_Write_EndOfCentralDirectoryRecord:     ## @Write_EndOfCentralDirectoryRecord
	.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
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	12(%rdi), %r14
	movl	8(%rdi), %esi
	movq	_ENDHEADERMAGIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	movl	$4, %ecx
	callq	_zip64local_putValue
	movq	_ZIP_OK@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	cmpl	%ecx, %eax
	je	LBB0_1
## %bb.2:
	cmpl	%ecx, %eax
	je	LBB0_3
LBB0_4:
	cmpl	%ecx, %eax
	je	LBB0_5
LBB0_6:
	cmpl	(%r13), %eax
	jne	LBB0_8
LBB0_7:
	movl	(%rbx), %eax
	movl	8(%rbx), %esi
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	movl	$65535, %ecx                    ## imm = 0xFFFF
	cmovll	%eax, %ecx
	movslq	%ecx, %rdx
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	_zip64local_putValue
LBB0_8:
	movl	(%r13), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_10
## %bb.9:
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	movl	$4, %ecx
	callq	_zip64local_putValue
	movl	(%r13), %ecx
LBB0_10:
	cmpl	%ecx, %eax
	jne	LBB0_11
## %bb.12:
	movslq	4(%rbx), %rax
	movslq	%r15d, %rcx
	subq	%rax, %rcx
	cmpl	$-1, %ecx
	movl	8(%rbx), %esi
	movl	$4294967295, %edx               ## imm = 0xFFFFFFFF
	cmovneq	%rcx, %rdx
	movq	%r14, %rdi
	movl	$4, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_zip64local_putValue            ## TAILCALL
LBB0_1:
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$2, %ecx
	callq	_zip64local_putValue
	movl	(%r13), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_4
LBB0_3:
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$2, %ecx
	callq	_zip64local_putValue
	movl	(%r13), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_6
LBB0_5:
	movl	(%rbx), %eax
	movl	8(%rbx), %esi
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	movl	$65535, %ecx                    ## imm = 0xFFFF
	cmovll	%eax, %ecx
	movslq	%ecx, %rdx
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	_zip64local_putValue
	cmpl	(%r13), %eax
	je	LBB0_7
	jmp	LBB0_8
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZIP_OK,4,2                     ## @ZIP_OK
	.comm	_ENDHEADERMAGIC,8,3             ## @ENDHEADERMAGIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Write_EndOfCentralDirectoryRecord ; -- Begin function Write_EndOfCentralDirectoryRecord
	.p2align	2
_Write_EndOfCentralDirectoryRecord:     ; @Write_EndOfCentralDirectoryRecord
	.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	x21, x2
	mov	x22, x1
	mov	x20, x0
	add	x19, x0, #12
	ldr	w1, [x0, #8]
Lloh0:
	adrp	x8, _ENDHEADERMAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENDHEADERMAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x8]
	mov	x0, x19
	mov	w3, #4
	bl	_zip64local_putValue
Lloh3:
	adrp	x23, _ZIP_OK@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ZIP_OK@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_10
; %bb.1:
	cmp	w0, w8
	b.eq	LBB0_11
LBB0_2:
	cmp	w0, w8
	b.ne	LBB0_4
LBB0_3:
	ldr	w8, [x20]
	ldr	w1, [x20, #8]
	mov	w9, #65535
	cmp	w8, w9
	csel	w8, w8, w9, lt
	sxtw	x2, w8
	mov	x0, x19
	mov	w3, #2
	bl	_zip64local_putValue
LBB0_4:
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.5:
	ldr	w8, [x20]
	ldr	w1, [x20, #8]
	mov	w9, #65535
	cmp	w8, w9
	csel	w8, w8, w9, lt
	sxtw	x2, w8
	mov	x0, x19
	mov	w3, #2
	bl	_zip64local_putValue
LBB0_6:
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.7:
	ldr	w1, [x20, #8]
	mov	x0, x19
	mov	x2, x22
	mov	w3, #4
	bl	_zip64local_putValue
	ldr	w8, [x23]
LBB0_8:
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.9:
	sxtw	x8, w21
	ldp	w9, w1, [x20, #4]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	sub	x8, x8, x9
	cmn	w8, #1
	mov	w9, #-1
	csel	x2, x9, x8, eq
	mov	x0, x19
	mov	w3, #4
	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
	b	_zip64local_putValue
LBB0_10:
	ldr	w1, [x20, #8]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #2
	bl	_zip64local_putValue
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_2
LBB0_11:
	ldr	w1, [x20, #8]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #2
	bl	_zip64local_putValue
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_3
	b	LBB0_4
LBB0_12:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ZIP_OK,4,2                     ; @ZIP_OK
	.comm	_ENDHEADERMAGIC,8,3             ; @ENDHEADERMAGIC
.subsections_via_symbols
