	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mkuz_lzma_init                 ## -- Begin function mkuz_lzma_init
	.p2align	4, 0x90
_mkuz_lzma_init:                        ## @mkuz_lzma_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edx
	movq	_USE_DEFAULT_LEVEL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_2
## %bb.1:
	movq	_LZMA_PRESET_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, (%r14)
LBB0_2:
	cmpl	$10, %edx
	jb	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_4:
	movl	$24, %edi
	callq	_mkuz_safe_zmalloc
	movq	%rax, %r15
	movq	_LZMA_STREAM_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movq	%r15, %rbx
	addq	$8, %rbx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_lzma_lzma_preset
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_6:
	movq	_LZMA_FILTER_LZMA2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, 8(%rcx)
	movq	_LZMA_VLI_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rcx)
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USE_DEFAULT_LEVEL,4,2          ## @USE_DEFAULT_LEVEL
	.comm	_LZMA_PRESET_DEFAULT,4,2        ## @LZMA_PRESET_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"provided compression level %d is invalid"

	.comm	_LZMA_STREAM_INIT,8,3           ## @LZMA_STREAM_INIT
L_.str.1:                               ## @.str.1
	.asciz	"Error loading LZMA preset"

	.comm	_LZMA_FILTER_LZMA2,4,2          ## @LZMA_FILTER_LZMA2
	.comm	_LZMA_VLI_UNKNOWN,4,2           ## @LZMA_VLI_UNKNOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mkuz_lzma_init                 ; -- Begin function mkuz_lzma_init
	.p2align	2
_mkuz_lzma_init:                        ; @mkuz_lzma_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _USE_DEFAULT_LEVEL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _USE_DEFAULT_LEVEL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _LZMA_PRESET_DEFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LZMA_PRESET_DEFAULT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_2:
	cmp	w8, #10
	b.lo	LBB0_4
; %bb.3:
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_4:
	mov	w0, #24
	bl	_mkuz_safe_zmalloc
	mov	x20, x0
Lloh8:
	adrp	x8, _LZMA_STREAM_INIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LZMA_STREAM_INIT@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x0, #16]
	add	x21, x0, #8
	ldr	w1, [x19]
	mov	x0, x21
	bl	_lzma_lzma_preset
	cbz	x0, LBB0_6
; %bb.5:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_6:
Lloh13:
	adrp	x8, _LZMA_FILTER_LZMA2@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LZMA_FILTER_LZMA2@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	x9, [x20]
	str	w8, [x9]
	str	x21, [x9, #8]
Lloh16:
	adrp	x8, _LZMA_VLI_UNKNOWN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LZMA_VLI_UNKNOWN@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x9, #16]
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_USE_DEFAULT_LEVEL,4,2          ; @USE_DEFAULT_LEVEL
	.comm	_LZMA_PRESET_DEFAULT,4,2        ; @LZMA_PRESET_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"provided compression level %d is invalid"

	.comm	_LZMA_STREAM_INIT,8,3           ; @LZMA_STREAM_INIT
l_.str.1:                               ; @.str.1
	.asciz	"Error loading LZMA preset"

	.comm	_LZMA_FILTER_LZMA2,4,2          ; @LZMA_FILTER_LZMA2
	.comm	_LZMA_VLI_UNKNOWN,4,2           ; @LZMA_VLI_UNKNOWN
.subsections_via_symbols
