	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Encode
_Encode:                                ## @Encode
	.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
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rcx, %rdi
	callq	_UNUSED_VAR
	movq	_g_Alloc@GOTPCREL(%rip), %rdi
	callq	_LzmaEnc_Create
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	-76(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_LzmaEncProps_Init
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_LzmaEnc_SetProps
	movq	%rax, %rbx
	movq	_SZ_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_8
## %bb.3:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	_LZMA_PROPS_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	addl	$8, %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movslq	(%rbx), %rax
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_LzmaEnc_WriteProperties
	movq	%rax, %rbx
	movq	-56(%rbp), %rdx
	movslq	%r13d, %rax
	movq	%rax, (%r14,%rdx,8)
	movl	%eax, %ecx
	sarl	$8, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, 8(%r14,%rdx,8)
	movl	%eax, %ecx
	sarl	$16, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, 16(%r14,%rdx,8)
	sarl	$24, %eax
	cltq
	movq	%rax, 24(%r14,%rdx,8)
	addq	$8, %rdx
	movq	%rdx, -56(%rbp)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	*(%r15)
	cmpq	-56(%rbp), %rax
	jne	LBB0_4
## %bb.5:
	movq	_SZ_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_7
## %bb.6:
	movq	_g_Alloc@GOTPCREL(%rip), %r8
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	movq	%r8, %r9
	callq	_LzmaEnc_Encode
	movq	%rax, %rbx
	jmp	LBB0_7
LBB0_1:
	movq	_SZ_ERROR_MEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_9
LBB0_4:
	movq	_SZ_ERROR_WRITE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_7:
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
LBB0_8:
	movq	_g_Alloc@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movq	%rdx, %rsi
	callq	_LzmaEnc_Destroy
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_g_Alloc,4,2                    ## @g_Alloc
	.comm	_SZ_ERROR_MEM,8,3               ## @SZ_ERROR_MEM
	.comm	_SZ_OK,8,3                      ## @SZ_OK
	.comm	_LZMA_PROPS_SIZE,4,2            ## @LZMA_PROPS_SIZE
	.comm	_SZ_ERROR_WRITE,8,3             ## @SZ_ERROR_WRITE
	.no_dead_strip	_Encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function Encode
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_Encode:                                ; @Encode
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #32
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	mov	x0, x3
	bl	_UNUSED_VAR
Lloh3:
	adrp	x0, _g_Alloc@GOTPAGE
Lloh4:
	ldr	x0, [x0, _g_Alloc@GOTPAGEOFF]
	bl	_LzmaEnc_Create
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	sub	x0, x29, #76
	bl	_LzmaEncProps_Init
	sub	x1, x29, #76
	mov	x0, x19
	bl	_LzmaEnc_SetProps
	mov	x22, x0
Lloh5:
	adrp	x26, _SZ_OK@GOTPAGE
Lloh6:
	ldr	x26, [x26, _SZ_OK@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.2:
	mov	x25, sp
Lloh7:
	adrp	x12, _LZMA_PROPS_SIZE@GOTPAGE
Lloh8:
	ldr	x12, [x12, _LZMA_PROPS_SIZE@GOTPAGEOFF]
	ldr	w8, [x12]
	add	w8, w8, #8
	lsl	x8, x8, #3
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x24, x9, x8
	mov	sp, x24
	ldrsw	x8, [x12]
	stur	x8, [x29, #-88]
	sub	x2, x29, #88
	mov	x0, x19
	mov	x1, x24
	bl	_LzmaEnc_WriteProperties
	mov	x22, x0
	ldur	x8, [x29, #-88]
	sxtw	x9, w23
	add	x10, x24, x8, lsl #3
	str	x9, [x10]
	dup.2s	v0, w23
Lloh11:
	adrp	x9, lCPI0_0@PAGE
Lloh12:
	ldr	d1, [x9, lCPI0_0@PAGEOFF]
	sshl.2s	v0, v0, v1
	sshll.2d	v0, v0, #0
	stur	q0, [x10, #8]
	sbfx	x9, x23, #24, #8
	str	x9, [x10, #24]
	add	x2, x8, #8
	stur	x2, [x29, #-88]
	ldr	x8, [x21]
	mov	x0, x21
	mov	x1, x24
	blr	x8
	ldur	x8, [x29, #-88]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x26]
	cmp	x22, x8
	b.ne	LBB0_7
; %bb.4:
Lloh13:
	adrp	x4, _g_Alloc@GOTPAGE
Lloh14:
	ldr	x4, [x4, _g_Alloc@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, #0
	mov	x5, x4
	bl	_LzmaEnc_Encode
	mov	x22, x0
	b	LBB0_7
LBB0_5:
Lloh15:
	adrp	x8, _SZ_ERROR_MEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SZ_ERROR_MEM@GOTPAGEOFF]
Lloh17:
	ldr	x22, [x8]
	b	LBB0_9
LBB0_6:
Lloh18:
	adrp	x8, _SZ_ERROR_WRITE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SZ_ERROR_WRITE@GOTPAGEOFF]
Lloh20:
	ldr	x22, [x8]
LBB0_7:
	mov	sp, x25
LBB0_8:
Lloh21:
	adrp	x1, _g_Alloc@GOTPAGE
Lloh22:
	ldr	x1, [x1, _g_Alloc@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x1
	bl	_LzmaEnc_Destroy
LBB0_9:
	ldur	x8, [x29, #-72]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x22
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_g_Alloc,4,2                    ; @g_Alloc
	.comm	_SZ_ERROR_MEM,8,3               ; @SZ_ERROR_MEM
	.comm	_SZ_OK,8,3                      ; @SZ_OK
	.comm	_LZMA_PROPS_SIZE,4,2            ; @LZMA_PROPS_SIZE
	.comm	_SZ_ERROR_WRITE,8,3             ; @SZ_ERROR_WRITE
	.no_dead_strip	_Encode
.subsections_via_symbols
