	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_zip_trailer
_write_zip_trailer:                     ## @write_zip_trailer
	.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
	movq	%rdi, %r14
	movl	$0, -44(%rbp)
	movl	$101010256, %esi                ## imm = 0x6054B50
	callq	_copy_le32
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_copy_le16
	xorl	%esi, %esi
	callq	_copy_le16
	movq	_zip_dir_entries@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-44(%rbp), %r13
	movq	%r13, %rdx
	callq	_copy_le16_clamp
	movl	(%rbx), %esi
	movq	%r13, %rdx
	callq	_copy_le16_clamp
	movq	_zip_dir@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_copy_le32
	movq	_zip_offset@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdx
	callq	_copy_le32_clamp
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movq	_the_hash_algo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %r15d
LBB0_2:
	movl	%r15d, %esi
	callq	_copy_le16
	movq	8(%r12), %rsi
	movl	(%r12), %edx
	movl	$1, %edi
	callq	_write_or_die
	cmpl	$0, -44(%rbp)
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_write_zip64_trailer
LBB0_4:
	movq	_ZIP_DIR_TRAILER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-80(%rbp), %rsi
	movl	$1, %edi
	callq	_write_or_die
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_oid_to_hex
	movq	_the_hash_algo@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %edx
	movl	$1, %edi
	movq	%rax, %rsi
	callq	_write_or_die
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_zip_dir_entries,4,2            ## @zip_dir_entries
	.comm	_zip_dir,16,3                   ## @zip_dir
	.comm	_zip_offset,4,2                 ## @zip_offset
	.comm	_the_hash_algo,8,3              ## @the_hash_algo
	.comm	_ZIP_DIR_TRAILER_SIZE,4,2       ## @ZIP_DIR_TRAILER_SIZE
	.no_dead_strip	_write_zip_trailer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_zip_trailer
_write_zip_trailer:                     ; @write_zip_trailer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	str	wzr, [sp, #12]
	mov	w1, #19280
	movk	w1, #1541, lsl #16
	bl	_copy_le32
	mov	w1, #0
	bl	_copy_le16
	mov	w1, #0
	bl	_copy_le16
Lloh0:
	adrp	x20, _zip_dir_entries@GOTPAGE
Lloh1:
	ldr	x20, [x20, _zip_dir_entries@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_copy_le16_clamp
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_copy_le16_clamp
Lloh2:
	adrp	x21, _zip_dir@GOTPAGE
Lloh3:
	ldr	x21, [x21, _zip_dir@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_copy_le32
Lloh4:
	adrp	x8, _zip_offset@GOTPAGE
Lloh5:
	ldr	x8, [x8, _zip_offset@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_copy_le32_clamp
Lloh7:
	adrp	x20, _the_hash_algo@GOTPAGE
Lloh8:
	ldr	x20, [x20, _the_hash_algo@GOTPAGEOFF]
	cbz	x19, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	w1, [x8]
	b	LBB0_3
LBB0_2:
	mov	w1, #0
LBB0_3:
	bl	_copy_le16
	ldr	x1, [x21, #8]
	ldr	w2, [x21]
	mov	w0, #1
	bl	_write_or_die
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_5
; %bb.4:
	bl	_write_zip64_trailer
LBB0_5:
Lloh9:
	adrp	x8, _ZIP_DIR_TRAILER_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ZIP_DIR_TRAILER_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x1, sp, #16
	mov	w0, #1
	bl	_write_or_die
	cbz	x19, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_oid_to_hex
	mov	x1, x0
	ldr	x8, [x20]
	ldr	w2, [x8]
	mov	w0, #1
	bl	_write_or_die
LBB0_7:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_zip_dir_entries,4,2            ; @zip_dir_entries
	.comm	_zip_dir,16,3                   ; @zip_dir
	.comm	_zip_offset,4,2                 ; @zip_offset
	.comm	_the_hash_algo,8,3              ; @the_hash_algo
	.comm	_ZIP_DIR_TRAILER_SIZE,4,2       ; @ZIP_DIR_TRAILER_SIZE
	.no_dead_strip	_write_zip_trailer
.subsections_via_symbols
