	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mkuz_lzma_compress             ## -- Begin function mkuz_lzma_compress
	.p2align	4, 0x90
_mkuz_lzma_compress:                    ## @mkuz_lzma_compress
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	24(%rdi), %esi
	movq	_LZMA_CHECK_CRC32@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_lzma_stream_encoder
	movq	_LZMA_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.1:
	movq	_LZMA_MEMLIMIT_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_4:
	movl	16(%r15), %eax
	movl	%eax, 20(%rbx)
	movq	8(%r15), %rax
	movq	%rax, 8(%rbx)
	movl	16(%r14), %eax
	movl	%eax, 16(%rbx)
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movq	_LZMA_FINISH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_lzma_code
	movq	_LZMA_STREAM_END@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	8(%r15), %rcx
	subq	8(%rbx), %rcx
	movq	(%r14), %r8
	subq	(%rbx), %r8
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_errx
LBB0_6:
	movq	(%r14), %rax
	subq	(%rbx), %rax
	movq	%rax, 8(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LZMA_CHECK_CRC32,4,2           ## @LZMA_CHECK_CRC32
	.comm	_LZMA_OK,8,3                    ## @LZMA_OK
	.comm	_LZMA_MEMLIMIT_ERROR,8,3        ## @LZMA_MEMLIMIT_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't compress data: LZMA_MEMLIMIT_ERROR"

L_.str.1:                               ## @.str.1
	.asciz	"can't compress data: LZMA compressor ERROR"

	.comm	_LZMA_FINISH,4,2                ## @LZMA_FINISH
	.comm	_LZMA_STREAM_END,8,3            ## @LZMA_STREAM_END
L_.str.2:                               ## @.str.2
	.asciz	"lzma_code FINISH failed, code=%d, pos(in=%zd, out=%zd)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mkuz_lzma_compress             ; -- Begin function mkuz_lzma_compress
	.p2align	2
_mkuz_lzma_compress:                    ; @mkuz_lzma_compress
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w1, [x0, #24]
Lloh0:
	adrp	x8, _LZMA_CHECK_CRC32@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LZMA_CHECK_CRC32@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_lzma_stream_encoder
Lloh3:
	adrp	x8, _LZMA_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LZMA_OK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _LZMA_MEMLIMIT_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LZMA_MEMLIMIT_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_3:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_4:
	ldr	w8, [x21, #16]
	ldr	x9, [x21, #8]
	ldr	w10, [x19, #16]
	stp	w10, w8, [x20, #16]
	ldr	x8, [x19]
	stp	x8, x9, [x20]
Lloh13:
	adrp	x8, _LZMA_FINISH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LZMA_FINISH@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_lzma_code
Lloh16:
	adrp	x8, _LZMA_STREAM_END@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LZMA_STREAM_END@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x21, #8]
	ldp	x10, x9, [x20]
	sub	x8, x8, x9
	ldr	x9, [x19]
	sub	x9, x9, x10
	stp	x8, x9, [sp, #8]
	str	x0, [sp]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_6:
	ldr	x8, [x19]
	ldr	x9, [x20]
	sub	x8, x8, x9
	str	x8, [x19, #8]
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_LZMA_CHECK_CRC32,4,2           ; @LZMA_CHECK_CRC32
	.comm	_LZMA_OK,8,3                    ; @LZMA_OK
	.comm	_LZMA_MEMLIMIT_ERROR,8,3        ; @LZMA_MEMLIMIT_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't compress data: LZMA_MEMLIMIT_ERROR"

l_.str.1:                               ; @.str.1
	.asciz	"can't compress data: LZMA compressor ERROR"

	.comm	_LZMA_FINISH,4,2                ; @LZMA_FINISH
	.comm	_LZMA_STREAM_END,8,3            ; @LZMA_STREAM_END
l_.str.2:                               ; @.str.2
	.asciz	"lzma_code FINISH failed, code=%d, pos(in=%zd, out=%zd)"

.subsections_via_symbols
