	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LzmaEnc_SetProps               ## -- Begin function LzmaEnc_SetProps
	.p2align	4, 0x90
_LzmaEnc_SetProps:                      ## @LzmaEnc_SetProps
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movups	(%rsi), %xmm0
	movups	16(%rsi), %xmm1
	movups	32(%rsi), %xmm2
	movups	48(%rsi), %xmm3
	movaps	%xmm3, -32(%rbp)
	movaps	%xmm2, -48(%rbp)
	movaps	%xmm1, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	leaq	-80(%rbp), %rdi
	callq	_LzmaEncProps_Normalize
	movq	-80(%rbp), %rdx
	movq	_LZMA_LC_MAX@GOTPCREL(%rip), %rcx
	movq	_SZ_ERROR_PARAM@GOTPCREL(%rip), %rax
	cmpq	(%rcx), %rdx
	jg	LBB0_9
## %bb.1:
	movq	-72(%rbp), %rsi
	movq	_LZMA_LP_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	jg	LBB0_9
## %bb.2:
	movq	-64(%rbp), %r8
	movq	_LZMA_PB_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r8
	jg	LBB0_9
## %bb.3:
	movl	-56(%rbp), %r9d
	movq	_kDicLogSizeMaxCompress@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edi
	shll	%cl, %edi
	cmpl	%edi, %r9d
	jg	LBB0_9
## %bb.4:
	movq	_kLzmaMaxHistorySize@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r9d
	jg	LBB0_9
## %bb.5:
	movl	%r9d, (%rbx)
	movl	-52(%rbp), %eax
	cmpl	$6, %eax
	movl	$5, %ecx
	cmovael	%eax, %ecx
	movq	_LZMA_MATCH_LEN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	cmovael	%eax, %ecx
	movl	%ecx, 4(%rbx)
	movq	%rdx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%r8, 24(%rbx)
	xorl	%eax, %eax
	cmpq	$0, -48(%rbp)
	sete	%al
	movl	%eax, 32(%rbx)
	xorl	%eax, %eax
	cmpq	$0, -24(%rbp)
	setne	%al
	movq	%rax, 56(%rbx)
	je	LBB0_6
## %bb.7:
	movl	-40(%rbp), %eax
	cmpl	$4, %eax
	movl	$4, %ecx
	cmovbl	%eax, %ecx
	cmpl	$2, %eax
	movl	$2, %eax
	cmovgel	%ecx, %eax
	jmp	LBB0_8
LBB0_6:
	movl	$4, %eax
LBB0_8:
	movl	%eax, 48(%rbx)
	movl	-28(%rbp), %eax
	movl	%eax, 52(%rbx)
	movl	-32(%rbp), %eax
	movl	%eax, 40(%rbx)
	xorl	%eax, %eax
	cmpl	$2, -36(%rbp)
	setge	%al
	movl	%eax, 36(%rbx)
	movq	_SZ_OK@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LZMA_LC_MAX,8,3                ## @LZMA_LC_MAX
	.comm	_LZMA_LP_MAX,8,3                ## @LZMA_LP_MAX
	.comm	_LZMA_PB_MAX,8,3                ## @LZMA_PB_MAX
	.comm	_kDicLogSizeMaxCompress,4,2     ## @kDicLogSizeMaxCompress
	.comm	_kLzmaMaxHistorySize,4,2        ## @kLzmaMaxHistorySize
	.comm	_SZ_ERROR_PARAM,4,2             ## @SZ_ERROR_PARAM
	.comm	_LZMA_MATCH_LEN_MAX,4,2         ## @LZMA_MATCH_LEN_MAX
	.comm	_SZ_OK,4,2                      ## @SZ_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LzmaEnc_SetProps               ; -- Begin function LzmaEnc_SetProps
	.p2align	2
_LzmaEnc_SetProps:                      ; @LzmaEnc_SetProps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	q0, q1, [x1]
	stp	q0, q1, [sp]
	ldp	q0, q1, [x1, #32]
	stp	q0, q1, [sp, #32]
	mov	x0, sp
	bl	_LzmaEncProps_Normalize
	ldr	x8, [sp]
Lloh0:
	adrp	x9, _LZMA_LC_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LZMA_LC_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_3
; %bb.1:
	ldr	x9, [sp, #8]
Lloh3:
	adrp	x10, _LZMA_LP_MAX@GOTPAGE
Lloh4:
	ldr	x10, [x10, _LZMA_LP_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.gt	LBB0_3
; %bb.2:
	ldr	x10, [sp, #16]
Lloh6:
	adrp	x11, _LZMA_PB_MAX@GOTPAGE
Lloh7:
	ldr	x11, [x11, _LZMA_PB_MAX@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x10, x11
	b.le	LBB0_5
LBB0_3:
Lloh9:
	adrp	x11, _SZ_ERROR_PARAM@GOTPAGE
Lloh10:
	ldr	x11, [x11, _SZ_ERROR_PARAM@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x11]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
	ldr	w12, [sp, #24]
Lloh11:
	adrp	x11, _kDicLogSizeMaxCompress@GOTPAGE
Lloh12:
	ldr	x11, [x11, _kDicLogSizeMaxCompress@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	mov	w13, #1
	lsl	w13, w13, w11
Lloh14:
	adrp	x11, _SZ_ERROR_PARAM@GOTPAGE
Lloh15:
	ldr	x11, [x11, _SZ_ERROR_PARAM@GOTPAGEOFF]
	cmp	w12, w13
	b.gt	LBB0_4
; %bb.6:
Lloh16:
	adrp	x13, _kLzmaMaxHistorySize@GOTPAGE
Lloh17:
	ldr	x13, [x13, _kLzmaMaxHistorySize@GOTPAGEOFF]
Lloh18:
	ldr	w13, [x13]
	cmp	w12, w13
	b.gt	LBB0_4
; %bb.7:
	str	w12, [x19]
	ldr	w11, [sp, #28]
	mov	w12, #5
	cmp	w11, #5
	csel	w11, w11, w12, hi
Lloh19:
	adrp	x12, _LZMA_MATCH_LEN_MAX@GOTPAGE
Lloh20:
	ldr	x12, [x12, _LZMA_MATCH_LEN_MAX@GOTPAGEOFF]
Lloh21:
	ldr	w12, [x12]
	cmp	w11, w12
	csel	w11, w11, w12, lo
	str	w11, [x19, #4]
	stp	x8, x9, [x19, #8]
	str	x10, [x19, #24]
	ldr	x8, [sp, #32]
	cmp	x8, #0
	cset	w8, eq
	str	w8, [x19, #32]
	ldr	x9, [sp, #56]
	cmp	x9, #0
	cset	w8, ne
	str	x8, [x19, #56]
	mov	w8, #4
	cbz	x9, LBB0_9
; %bb.8:
	ldr	w9, [sp, #40]
	cmp	w9, #4
	csel	w8, w9, w8, lo
	mov	w10, #2
	cmp	w9, #2
	csel	w8, w10, w8, lt
LBB0_9:
	str	w8, [x19, #48]
	ldp	w9, w8, [sp, #48]
	str	w8, [x19, #52]
	str	w9, [x19, #40]
	ldr	w8, [sp, #44]
	cmp	w8, #1
	cset	w8, gt
	str	w8, [x19, #36]
Lloh22:
	adrp	x11, _SZ_OK@GOTPAGE
Lloh23:
	ldr	x11, [x11, _SZ_OK@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_LZMA_LC_MAX,8,3                ; @LZMA_LC_MAX
	.comm	_LZMA_LP_MAX,8,3                ; @LZMA_LP_MAX
	.comm	_LZMA_PB_MAX,8,3                ; @LZMA_PB_MAX
	.comm	_kDicLogSizeMaxCompress,4,2     ; @kDicLogSizeMaxCompress
	.comm	_kLzmaMaxHistorySize,4,2        ; @kLzmaMaxHistorySize
	.comm	_SZ_ERROR_PARAM,4,2             ; @SZ_ERROR_PARAM
	.comm	_LZMA_MATCH_LEN_MAX,4,2         ; @LZMA_MATCH_LEN_MAX
	.comm	_SZ_OK,4,2                      ; @SZ_OK
.subsections_via_symbols
