	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TigerFinalize
_TigerFinalize:                         ## @TigerFinalize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movslq	4(%rdi), %rax
	leal	(,%rax,8), %ecx
	addl	%ecx, (%rdi)
	movq	8(%rdi), %rcx
	leal	1(%rax), %edx
	movl	%edx, 4(%rdi)
	movl	$1, (%rcx,%rax,4)
	movslq	4(%rdi), %rax
	leal	7(%rax), %edx
	testq	%rax, %rax
	cmovnsl	%eax, %edx
	andl	$-8, %edx
	movl	%eax, %esi
	subl	%edx, %esi
	je	LBB0_2
## %bb.1:
	leaq	(%rcx,%rax,4), %rdi
	movl	$8, %edx
	subl	%esi, %edx
	xorl	%esi, %esi
	callq	_memset
	movl	4(%rbx), %ecx
	leal	7(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	andl	$-8, %eax
	addl	$8, %eax
	movl	%eax, 4(%rbx)
LBB0_2:
	movq	8(%rbx), %rcx
	cmpl	$57, %eax
	jl	LBB0_4
## %bb.3:
	movl	%eax, %edx
	leaq	(%rcx,%rdx,4), %rdi
	movl	$64, %edx
	subl	%eax, %edx
	xorl	%esi, %esi
	callq	_memset
	movl	20(%rbx), %edi
	movq	8(%rbx), %rsi
	movl	16(%rbx), %edx
	callq	_tiger_compress
	movq	8(%rbx), %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	jmp	LBB0_5
LBB0_4:
	movslq	%eax, %rdx
	leaq	(%rcx,%rdx,4), %rdi
	movl	$56, %edx
	subl	%eax, %edx
	xorl	%esi, %esi
LBB0_5:
	callq	_memset
	movl	$224, %edi
	addq	8(%rbx), %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	20(%rbx), %edi
	movq	8(%rbx), %rsi
	movl	16(%rbx), %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_tiger_compress                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_TigerFinalize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TigerFinalize
_TigerFinalize:                         ; @TigerFinalize
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	w9, w8, [x0]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	add	w10, w9, w8, lsl #3
	ldr	x9, [x0, #8]
	add	w11, w8, #1
	stp	w10, w11, [x0]
	mov	w10, #1
	str	w10, [x9, x8, lsl #2]
	ldr	w8, [x0, #4]
	negs	w10, w8
	and	w10, w10, #0x7
	and	w11, w8, #0x7
	csneg	w10, w11, w10, mi
	cbz	w10, LBB0_2
; %bb.1:
	sxtw	x8, w8
	add	x0, x9, x8, lsl #2
	mov	w8, #8
	sub	w2, w8, w10
	mov	w1, #0
	bl	_memset
	ldr	w8, [x19, #4]
	negs	w9, w8
	and	w9, w9, #0x7
	and	w10, w8, #0x7
	csneg	w9, w10, w9, mi
	sub	w8, w8, w9
	add	w8, w8, #8
	str	w8, [x19, #4]
LBB0_2:
	ldr	x9, [x19, #8]
	cmp	w8, #57
	b.lt	LBB0_4
; %bb.3:
	add	x0, x9, w8, uxtw #2
	mov	w9, #64
	sub	w2, w9, w8
	mov	w1, #0
	bl	_memset
	ldr	x1, [x19, #8]
	ldp	w2, w0, [x19, #16]
	bl	_tiger_compress
	ldr	x0, [x19, #8]
	mov	w1, #0
	mov	w2, #56
	b	LBB0_5
LBB0_4:
	add	x0, x9, w8, sxtw #2
	mov	w9, #56
	sub	w2, w9, w8
	mov	w1, #0
LBB0_5:
	bl	_memset
	ldr	x8, [x19, #8]
	add	x0, x8, #224
	mov	x1, x19
	mov	w2, #4
	bl	_memcpy
	ldr	x1, [x19, #8]
	ldp	w2, w0, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tiger_compress
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_TigerFinalize
.subsections_via_symbols
