	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function bsFinishWrite
LCPI0_0:
	.quad	-8                              ## 0xfffffffffffffff8
	.quad	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_bsFinishWrite:                         ## @bsFinishWrite
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, (%rdi)
	jle	LBB0_4
## %bb.1:
	movq	24(%rdi), %rcx
	movl	16(%rdi), %eax
	movq	8(%rdi), %rdx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [18446744073709551608,1]
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %esi
	sarl	$24, %esi
	movslq	%esi, %rsi
	movq	%rsi, (%rcx,%rdx,8)
	shll	$8, %eax
	movq	(%rdi), %rsi
	movdqu	(%rdi), %xmm1
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, (%rdi)
	pextrq	$1, %xmm1, %rdx
	cmpq	$8, %rsi
	jg	LBB0_2
## %bb.3:
	movl	%eax, 16(%rdi)
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bsFinishWrite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bsFinishWrite
_bsFinishWrite:                         ; @bsFinishWrite
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	x8, [x0, #24]
	ldr	w9, [x0, #16]
	ldr	x10, [x0, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sbfx	x11, x9, #24, #8
	str	x11, [x8, x10, lsl #3]
	ldp	x11, x10, [x0]
	add	x10, x10, #1
	lsl	w9, w9, #8
	subs	x11, x11, #8
	stp	x11, x10, [x0]
	b.gt	LBB0_2
; %bb.3:
	str	w9, [x0, #16]
LBB0_4:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bsFinishWrite
.subsections_via_symbols
