	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Lzma2Enc_MtCallback_Write
_Lzma2Enc_MtCallback_Write:             ## @Lzma2Enc_MtCallback_Write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	%esi, %eax
	movq	(%rdi), %rcx
	movq	24(%rdi), %rdi
	movq	(%rcx,%rax,8), %r14
	movq	32(%rbx), %rcx
	movq	(%rcx,%rax,8), %rsi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%r14, %rdx
	callq	_ISeqOutStream_Write
	cmpq	%r14, %rax
	je	LBB0_6
## %bb.2:
	movq	_SZ_ERROR_WRITE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	cmpq	8(%rbx), %r14
	jbe	LBB0_5
## %bb.4:
	movq	_SZ_ERROR_OUTPUT_EOF@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	16(%rbx), %rdi
	movq	%r14, %rdx
	callq	_memcpy
	subq	%r14, 8(%rbx)
	addq	%r14, 16(%rbx)
LBB0_6:
	movq	_SZ_OK@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SZ_OK,4,2                      ## @SZ_OK
	.comm	_SZ_ERROR_WRITE,4,2             ## @SZ_ERROR_WRITE
	.comm	_SZ_ERROR_OUTPUT_EOF,4,2        ## @SZ_ERROR_OUTPUT_EOF
	.no_dead_strip	_Lzma2Enc_MtCallback_Write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Lzma2Enc_MtCallback_Write
_Lzma2Enc_MtCallback_Write:             ; @Lzma2Enc_MtCallback_Write
	.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	x20, x0
	ldr	x8, [x0]
	mov	w9, w1
	lsl	x9, x9, #3
	ldr	x19, [x8, x9]
	ldp	x0, x8, [x0, #24]
	ldr	x1, [x8, x9]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x2, x19
	bl	_ISeqOutStream_Write
Lloh0:
	adrp	x8, _SZ_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SZ_OK@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SZ_ERROR_WRITE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SZ_ERROR_WRITE@GOTPAGEOFF]
	cmp	x0, x19
	csel	x8, x8, x9, eq
	b	LBB0_5
LBB0_2:
	ldr	x8, [x20, #8]
	cmp	x19, x8
	b.ls	LBB0_4
; %bb.3:
Lloh4:
	adrp	x8, _SZ_ERROR_OUTPUT_EOF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SZ_ERROR_OUTPUT_EOF@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	ldr	x0, [x20, #16]
	mov	x2, x19
	bl	_memcpy
	ldp	x8, x9, [x20, #8]
	sub	x8, x8, x19
	add	x9, x9, x19
	stp	x8, x9, [x20, #8]
Lloh6:
	adrp	x8, _SZ_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SZ_OK@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SZ_OK,4,2                      ; @SZ_OK
	.comm	_SZ_ERROR_WRITE,4,2             ; @SZ_ERROR_WRITE
	.comm	_SZ_ERROR_OUTPUT_EOF,4,2        ; @SZ_ERROR_OUTPUT_EOF
	.no_dead_strip	_Lzma2Enc_MtCallback_Write
.subsections_via_symbols
