	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lzma2_encoder_init
_lzma2_encoder_init:                    ## @lzma2_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
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	24(%rdi), %rdi
	testq	%rdi, %rdi
	jne	LBB0_6
## %bb.3:
	movl	$48, %edi
	movq	%r14, %rsi
	callq	_lzma_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rdi
	movq	%rax, 24(%r12)
	movq	_lzma2_encode@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r12)
	movq	_lzma2_encoder_end@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r12)
	movq	_lzma2_encoder_options_update@GOTPCREL(%rip), %rax
	movq	%rax, (%r12)
	movq	$0, 32(%rdi)
LBB0_6:
	leaq	16(%rdi), %rdx
	movups	(%rbx), %xmm0
	movups	%xmm0, 16(%rdi)
	movq	_SEQ_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rdi)
	movq	$1, (%rdi)
	cmpq	$0, 24(%rdi)
	je	LBB0_7
## %bb.8:
	xorl	%eax, %eax
	cmpq	$0, (%rdx)
	sete	%al
	jmp	LBB0_9
LBB0_1:
	movq	_LZMA_PROG_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	movl	$1, %eax
LBB0_9:
	movl	%eax, 8(%rdi)
	addq	$32, %rdi
	movq	%r14, %rsi
	movq	%r15, %rcx
	callq	_lzma_lzma_encoder_create
	movl	%eax, %edi
	callq	_return_if_error
	movq	8(%r15), %rcx
	movq	(%r15), %rsi
	addq	%rcx, %rsi
	movq	_LZMA2_CHUNK_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_LZMA_OK@GOTPCREL(%rip), %rax
	cmpq	%rdx, %rsi
	jge	LBB0_11
## %bb.10:
	subq	%rcx, %rdx
	movq	%rdx, (%r15)
	jmp	LBB0_11
LBB0_4:
	movq	_LZMA_MEM_ERROR@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LZMA_PROG_ERROR,4,2            ## @LZMA_PROG_ERROR
	.comm	_LZMA_MEM_ERROR,4,2             ## @LZMA_MEM_ERROR
	.comm	_lzma2_encode,4,2               ## @lzma2_encode
	.comm	_lzma2_encoder_end,4,2          ## @lzma2_encoder_end
	.comm	_lzma2_encoder_options_update,4,2 ## @lzma2_encoder_options_update
	.comm	_SEQ_INIT,4,2                   ## @SEQ_INIT
	.comm	_LZMA2_CHUNK_MAX,8,3            ## @LZMA2_CHUNK_MAX
	.comm	_LZMA_OK,4,2                    ## @LZMA_OK
	.no_dead_strip	_lzma2_encoder_init
.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 lzma2_encoder_init
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_lzma2_encoder_init:                    ; @lzma2_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
	cbz	x2, LBB0_6
; %bb.1:
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x0, [x0, #24]
	cbnz	x0, LBB0_4
; %bb.2:
	mov	w0, #48
	mov	x1, x20
	bl	_lzma_alloc
	cbz	x0, LBB0_12
; %bb.3:
Lloh0:
	adrp	x8, _lzma2_encode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lzma2_encode@GOTPAGEOFF]
Lloh2:
	adrp	x9, _lzma2_encoder_end@GOTPAGE
Lloh3:
	ldr	x9, [x9, _lzma2_encoder_end@GOTPAGEOFF]
	stp	x8, x0, [x22, #16]
Lloh4:
	adrp	x8, _lzma2_encoder_options_update@GOTPAGE
Lloh5:
	ldr	x8, [x8, _lzma2_encoder_options_update@GOTPAGEOFF]
	stp	x8, x9, [x22]
	str	xzr, [x0, #32]
LBB0_4:
	add	x2, x0, #16
	ldr	q0, [x21]
	str	q0, [x0, #16]
Lloh6:
	adrp	x8, _SEQ_INIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SEQ_INIT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x0, #40]
Lloh9:
	adrp	x8, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0]
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x8, [x2]
	cmp	x8, #0
	cset	w8, eq
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x8, _LZMA_PROG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LZMA_PROG_ERROR@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
	mov	w8, #1
LBB0_8:
	str	w8, [x0, #8]
	add	x0, x0, #32
	mov	x1, x20
	mov	x3, x19
	bl	_lzma_lzma_encoder_create
	bl	_return_if_error
	ldp	x10, x8, [x19]
Lloh13:
	adrp	x9, _LZMA2_CHUNK_MAX@GOTPAGE
Lloh14:
	ldr	x9, [x9, _LZMA2_CHUNK_MAX@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x10, x8, x10
	cmp	x10, x9
	b.ge	LBB0_10
; %bb.9:
	sub	x8, x9, x8
	str	x8, [x19]
LBB0_10:
Lloh16:
	adrp	x8, _LZMA_OK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LZMA_OK@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	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_12:
Lloh18:
	adrp	x8, _LZMA_MEM_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LZMA_MEM_ERROR@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_LZMA_PROG_ERROR,4,2            ; @LZMA_PROG_ERROR
	.comm	_LZMA_MEM_ERROR,4,2             ; @LZMA_MEM_ERROR
	.comm	_lzma2_encode,4,2               ; @lzma2_encode
	.comm	_lzma2_encoder_end,4,2          ; @lzma2_encoder_end
	.comm	_lzma2_encoder_options_update,4,2 ; @lzma2_encoder_options_update
	.comm	_SEQ_INIT,4,2                   ; @SEQ_INIT
	.comm	_LZMA2_CHUNK_MAX,8,3            ; @LZMA2_CHUNK_MAX
	.comm	_LZMA_OK,4,2                    ; @LZMA_OK
	.no_dead_strip	_lzma2_encoder_init
.subsections_via_symbols
