	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function XzEncProps_Normalize_Fixed
_XzEncProps_Normalize_Fixed:            ## @XzEncProps_Normalize_Fixed
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	20(%rdi), %rax
	movq	%rax, -40(%rbp)
	testl	%eax, %eax
	jg	LBB0_2
## %bb.1:
	movl	(%r12), %eax
	movl	%eax, -40(%rbp)
LBB0_2:
	leaq	-40(%rbp), %rdi
	callq	_Lzma2EncProps_Normalize
	movl	-40(%rbp), %esi
	movl	20(%r12), %ecx
	movl	(%r12), %r15d
	movl	4(%r12), %r14d
	movq	_MTCODER__THREADS_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	%edi, %r14d
	cmovgel	%edi, %r14d
	testl	%r15d, %r15d
	jle	LBB0_6
## %bb.3:
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.4:
	testl	%ecx, %ecx
	jg	LBB0_7
## %bb.5:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%r14d
	cmpl	%r15d, %r14d
	movl	$1, %ecx
	cmovbel	%eax, %ecx
	jmp	LBB0_9
LBB0_6:
	cmpl	$2, %r14d
	movl	$1, %eax
	cmovll	%eax, %r14d
LBB0_7:
	imull	%r14d, %esi
	movl	%esi, %r15d
	jmp	LBB0_9
LBB0_8:
	movl	%r15d, %eax
	cltd
	idivl	%esi
	movl	%eax, %r14d
	testl	%eax, %eax
	movl	$1, %eax
	cmovel	%eax, %ecx
	cmovel	%r15d, %r14d
	cmpl	%edi, %r14d
	cmovgel	%edi, %r14d
LBB0_9:
	leaq	20(%r12), %rdi
	movl	%ecx, 20(%r12)
	movl	8(%r12), %ebx
	movl	12(%r12), %eax
	cmpl	$-1, %ebx
	je	LBB0_11
## %bb.10:
	cmpl	%ebx, %eax
	jae	LBB0_12
LBB0_11:
	movl	%eax, 24(%r12)
LBB0_12:
	callq	_Lzma2EncProps_Normalize
	cmpl	$2, %r14d
	jl	LBB0_16
## %bb.13:
	cmpl	$-1, %ebx
	je	LBB0_16
## %bb.14:
	movl	12(%r12), %ecx
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	imull	%eax, %ecx
	xorl	%edx, %edx
	cmpl	%ebx, %ecx
	setne	%dl
	addl	%eax, %edx
	movl	$1, %eax
	cmovnel	%edx, %eax
	movl	20(%r12), %ecx
	imull	%eax, %ecx
	cmpl	%r14d, %edx
	cmovael	%r14d, %eax
	cmovbl	%ecx, %r15d
	jmp	LBB0_17
LBB0_16:
	movl	%r14d, %eax
LBB0_17:
	movl	%r14d, 4(%r12)
	movl	%eax, 16(%r12)
	movl	%r15d, (%r12)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTCODER__THREADS_MAX,4,2       ## @MTCODER__THREADS_MAX
	.no_dead_strip	_XzEncProps_Normalize_Fixed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function XzEncProps_Normalize_Fixed
_XzEncProps_Normalize_Fixed:            ; @XzEncProps_Normalize_Fixed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	x20, x0
	ldr	x8, [x20, #20]!
	str	x8, [sp, #8]
	cmp	w8, #0
	b.gt	LBB0_2
; %bb.1:
	ldr	w8, [x19]
	str	w8, [sp, #8]
LBB0_2:
	add	x0, sp, #8
	bl	_Lzma2EncProps_Normalize
	ldr	w8, [sp, #8]
	ldr	w9, [x19, #20]
	ldp	w11, w10, [x19]
Lloh0:
	adrp	x12, _MTCODER__THREADS_MAX@GOTPAGE
Lloh1:
	ldr	x12, [x12, _MTCODER__THREADS_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x12]
	cmp	w10, w12
	csel	w10, w10, w12, lt
	mul	w13, w10, w8
	udiv	w14, w11, w10
	cmp	w10, w11
	csinc	w14, w14, wzr, ls
	cmp	w9, #0
	csel	w14, w9, w14, gt
	csel	w13, w13, w11, gt
	sdiv	w15, w11, w8
	cmp	w15, #0
	csel	w15, w11, w15, eq
	csinc	w16, w9, wzr, ne
	cmp	w15, w12
	csel	w12, w15, w12, lt
	cmp	w10, #0
	csel	w14, w14, w16, gt
	csel	w12, w10, w12, gt
	csel	w13, w13, w11, gt
	cmp	w10, #1
	csinc	w10, w10, wzr, gt
	mul	w8, w10, w8
	cmp	w11, #0
	csel	w9, w14, w9, gt
	csel	w21, w12, w10, gt
	csel	w22, w13, w8, gt
	str	w9, [x19, #20]
	ldp	w23, w8, [x19, #8]
	cmn	w23, #1
	b.eq	LBB0_4
; %bb.3:
	cmp	w8, w23
	b.hs	LBB0_5
LBB0_4:
	str	w8, [x19, #24]
LBB0_5:
	mov	x0, x20
	bl	_Lzma2EncProps_Normalize
	cmp	w21, #2
	ccmn	w23, #1, #4, ge
	b.ne	LBB0_7
; %bb.6:
	mov	x8, x21
	b	LBB0_8
LBB0_7:
	ldr	w8, [x19, #20]
	ldr	w9, [x19, #12]
	udiv	w10, w23, w9
	mul	w9, w10, w9
	cmp	w9, w23
	cinc	w9, w10, ne
	cmp	w9, #0
	csinc	w10, w9, wzr, ne
	mul	w11, w10, w8
	cmp	w9, w21
	csel	w8, w10, w21, lo
	csel	w22, w11, w22, lo
LBB0_8:
	str	w8, [x19, #16]
	stp	w22, w21, [x19]
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MTCODER__THREADS_MAX,4,2       ; @MTCODER__THREADS_MAX
	.no_dead_strip	_XzEncProps_Normalize_Fixed
.subsections_via_symbols
