	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function WriteEndMarker
_WriteEndMarker:                        ## @WriteEndMarker
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	12(%rdi), %r14
	movq	(%rdi), %rax
	movq	48(%rdi), %rcx
	leaq	(,%rsi,4), %rsi
	addq	(%rcx,%rax,8), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_RangeEnc_EncodeBit
	movq	(%rbx), %rsi
	shlq	$2, %rsi
	addq	40(%rbx), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_RangeEnc_EncodeBit
	movq	_kMatchNextStates@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, (%rbx)
	movq	_LZMA_MATCH_LEN_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	32(%rbx), %rdi
	xorl	%r8d, %r8d
	cmpl	$0, 28(%rbx)
	sete	%r8b
	movl	24(%rbx), %r9d
	movq	%r14, %rsi
	xorl	%edx, %edx
	movq	%r15, %rcx
	callq	_LenEnc_Encode2
	movq	16(%rbx), %r15
	movq	%r12, %rdi
	callq	_GetLenToPosState
	movl	(%r15,%rax,4), %esi
	movq	_kNumPosSlotBits@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$-1, %eax
	shll	%cl, %eax
	notl	%eax
	movq	%r14, %rdi
	movl	%ecx, %edx
	movl	%eax, %ecx
	callq	_RcTree_Encode
	movq	_kNumAlignBits@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	$1073741823, %esi               ## imm = 0x3FFFFFFF
	shrq	%cl, %rsi
	movl	$30, %edx
	subl	%ecx, %edx
	movq	%r14, %rdi
	callq	_RangeEnc_EncodeDirectBits
	movl	8(%rbx), %esi
	movq	(%r15), %rdx
	movq	_kAlignMask@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RcTree_ReverseEncode           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_kMatchNextStates,8,3           ## @kMatchNextStates
	.comm	_LZMA_MATCH_LEN_MIN,8,3         ## @LZMA_MATCH_LEN_MIN
	.comm	_kNumPosSlotBits,4,2            ## @kNumPosSlotBits
	.comm	_kNumAlignBits,8,3              ## @kNumAlignBits
	.comm	_kAlignMask,4,2                 ## @kAlignMask
	.no_dead_strip	_WriteEndMarker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function WriteEndMarker
_WriteEndMarker:                        ; @WriteEndMarker
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
	mov	x20, x0
	add	x19, x0, #12
	ldr	x8, [x0, #48]
	ldr	x9, [x0]
	ldr	x8, [x8, x9, lsl #3]
	add	x1, x8, x1, lsl #2
	mov	x0, x19
	mov	w2, #1
	bl	_RangeEnc_EncodeBit
	ldr	x8, [x20, #40]
	ldr	x9, [x20]
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	mov	w2, #0
	bl	_RangeEnc_EncodeBit
Lloh0:
	adrp	x8, _kMatchNextStates@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kMatchNextStates@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	x8, [x8, x9, lsl #3]
	str	x8, [x20]
Lloh3:
	adrp	x8, _LZMA_MATCH_LEN_MIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LZMA_MATCH_LEN_MIN@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x8]
	add	x0, x20, #32
	ldp	w5, w8, [x20, #24]
	cmp	w8, #0
	cset	w4, eq
	mov	x1, x19
	mov	x2, #0
	mov	x3, x21
	bl	_LenEnc_Encode2
	ldr	x21, [x20, #16]
	mov	x0, x22
	bl	_GetLenToPosState
	ldr	w1, [x21, x0, lsl #2]
Lloh6:
	adrp	x8, _kNumPosSlotBits@GOTPAGE
Lloh7:
	ldr	x8, [x8, _kNumPosSlotBits@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w8, #-1
	lsl	w8, w8, w2
	mvn	w3, w8
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_RcTree_Encode
Lloh9:
	adrp	x21, _kNumAlignBits@GOTPAGE
Lloh10:
	ldr	x21, [x21, _kNumAlignBits@GOTPAGEOFF]
	ldr	x8, [x21]
	mov	w9, #1073741823
	lsr	x1, x9, x8
	mov	w9, #30
	sub	w2, w9, w8
	mov	x0, x19
	bl	_RangeEnc_EncodeDirectBits
	ldr	w1, [x20, #8]
Lloh11:
	adrp	x8, _kAlignMask@GOTPAGE
Lloh12:
	ldr	x8, [x8, _kAlignMask@GOTPAGEOFF]
	ldr	x2, [x21]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_RcTree_ReverseEncode
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_kMatchNextStates,8,3           ; @kMatchNextStates
	.comm	_LZMA_MATCH_LEN_MIN,8,3         ; @LZMA_MATCH_LEN_MIN
	.comm	_kNumPosSlotBits,4,2            ; @kNumPosSlotBits
	.comm	_kNumAlignBits,8,3              ; @kNumAlignBits
	.comm	_kAlignMask,4,2                 ; @kAlignMask
	.no_dead_strip	_WriteEndMarker
.subsections_via_symbols
