	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lz_encoder_init
_lz_encoder_init:                       ## @lz_encoder_init
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	cmpq	$0, 32(%rdi)
	jne	LBB0_4
## %bb.1:
	movq	_LZMA_MEMCMPLEN_EXTRA@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	addl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_lzma_alloc
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movslq	(%rbx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	movl	(%r12), %esi
	callq	_memzero
LBB0_4:
	movl	96(%rbx), %eax
	movl	%eax, 100(%rbx)
	movl	$0, 4(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%rbx)
	movups	%xmm0, 80(%rbx)
	movslq	8(%rbx), %rsi
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shrq	$2, %rax
	movl	$1, %r12d
	cmpq	%rsi, %rax
	jb	LBB0_15
## %bb.5:
	movslq	12(%rbx), %rcx
	cmpq	%rcx, %rax
	jb	LBB0_15
## %bb.6:
	movq	48(%rbx), %rdi
	shll	$2, %esi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.10:
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_memzero
	jmp	LBB0_11
LBB0_2:
	movl	$1, %r12d
	jmp	LBB0_15
LBB0_7:
	movl	%esi, %edi
	movq	%r15, %rsi
	callq	_lzma_alloc_zero
	movq	%rax, 48(%rbx)
	movl	12(%rbx), %edi
	shll	$2, %edi
	movq	%r15, %rsi
	callq	_lzma_alloc
	movq	%rax, 56(%rbx)
	movq	48(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	testq	%rax, %rax
	je	LBB0_9
LBB0_11:
	movq	$0, 40(%rbx)
	cmpq	$0, 8(%r14)
	je	LBB0_14
## %bb.12:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	jle	LBB0_14
## %bb.13:
	movl	(%rbx), %esi
	callq	_my_min
	movl	%eax, 4(%rbx)
	movq	(%r14), %rsi
	shlq	$2, %rsi
	addq	8(%r14), %rsi
	movq	32(%rbx), %rdi
	movslq	%eax, %rdx
	leaq	(,%rdx,4), %rax
	subq	%rax, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	_LZMA_SYNC_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	callq	*24(%rbx)
LBB0_14:
	movq	_LZMA_RUN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	xorl	%r12d, %r12d
LBB0_15:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r15, %rsi
	callq	_lzma_free
	movq	$0, 48(%rbx)
	movq	56(%rbx), %rdi
	movq	%r15, %rsi
	callq	_lzma_free
	movq	$0, 56(%rbx)
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_LZMA_MEMCMPLEN_EXTRA,4,2       ## @LZMA_MEMCMPLEN_EXTRA
	.comm	_SIZE_MAX,4,2                   ## @SIZE_MAX
	.comm	_LZMA_SYNC_FLUSH,4,2            ## @LZMA_SYNC_FLUSH
	.comm	_LZMA_RUN,4,2                   ## @LZMA_RUN
	.no_dead_strip	_lz_encoder_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lz_encoder_init
_lz_encoder_init:                       ; @lz_encoder_init
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #32]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x22, _LZMA_MEMCMPLEN_EXTRA@GOTPAGE
Lloh1:
	ldr	x22, [x22, _LZMA_MEMCMPLEN_EXTRA@GOTPAGEOFF]
	ldr	w9, [x22]
	add	w0, w9, w8
	mov	x1, x21
	bl	_lzma_alloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_5
; %bb.2:
	ldrsw	x8, [x19]
	add	x0, x0, x8, lsl #2
	ldr	w1, [x22]
	bl	_memzero
LBB0_3:
	ldr	w8, [x19, #96]
	str	w8, [x19, #100]
	str	wzr, [x19, #4]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #64]
	ldrsw	x8, [x19, #8]
Lloh2:
	adrp	x9, _SIZE_MAX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SIZE_MAX@GOTPAGEOFF]
Lloh4:
	ldrsw	x9, [x9]
	lsr	x9, x9, #2
	cmp	x9, x8
	b.lo	LBB0_5
; %bb.4:
	ldrsw	x10, [x19, #12]
	cmp	x9, x10
	b.hs	LBB0_7
LBB0_5:
	mov	w0, #1
LBB0_6:
	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
	ret
LBB0_7:
	ldr	x0, [x19, #48]
	lsl	w1, w8, #2
	cbz	x0, LBB0_9
; %bb.8:
	bl	_memzero
	b	LBB0_11
LBB0_9:
	mov	x0, x1
	mov	x1, x21
	bl	_lzma_alloc_zero
	str	x0, [x19, #48]
	ldr	w8, [x19, #12]
	lsl	w0, w8, #2
	mov	x1, x21
	bl	_lzma_alloc
	mov	x8, x0
	str	x0, [x19, #56]
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_15
; %bb.10:
	cbz	x8, LBB0_15
LBB0_11:
	str	xzr, [x19, #40]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_14
; %bb.12:
	ldr	x0, [x20]
	cmp	x0, #1
	b.lt	LBB0_14
; %bb.13:
	ldr	w1, [x19]
	bl	_my_min
	mov	x2, x0
	str	w0, [x19, #4]
	ldr	x0, [x19, #32]
	ldp	x9, x8, [x20]
	add	x8, x8, x9, lsl #2
	sub	x1, x8, w2, sxtw #2
	bl	_memcpy
Lloh5:
	adrp	x8, _LZMA_SYNC_FLUSH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LZMA_SYNC_FLUSH@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	x8, [x19, #24]
	ldr	w1, [x19, #4]
	mov	x0, x19
	blr	x8
LBB0_14:
	mov	w0, #0
Lloh8:
	adrp	x8, _LZMA_RUN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LZMA_RUN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	b	LBB0_6
LBB0_15:
	mov	x1, x21
	bl	_lzma_free
	str	xzr, [x19, #48]
	ldr	x0, [x19, #56]
	mov	x1, x21
	bl	_lzma_free
	str	xzr, [x19, #56]
	mov	w0, #1
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LZMA_MEMCMPLEN_EXTRA,4,2       ; @LZMA_MEMCMPLEN_EXTRA
	.comm	_SIZE_MAX,4,2                   ; @SIZE_MAX
	.comm	_LZMA_SYNC_FLUSH,4,2            ; @LZMA_SYNC_FLUSH
	.comm	_LZMA_RUN,4,2                   ; @LZMA_RUN
	.no_dead_strip	_lz_encoder_init
.subsections_via_symbols
