	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LzmaEncProps_Normalize         ## -- Begin function LzmaEncProps_Normalize
	.p2align	4, 0x90
_LzmaEncProps_Normalize:                ## @LzmaEncProps_Normalize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	movl	4(%rdi), %edx
	testl	%ecx, %ecx
	movl	$5, %eax
	cmovnsl	%ecx, %eax
	movl	%eax, (%rdi)
	testl	%edx, %edx
	jne	LBB0_2
## %bb.1:
	leal	(%rax,%rax), %ecx
	movl	$16384, %esi                    ## imm = 0x4000
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	xorl	%edx, %edx
	cmpl	$6, %eax
	setne	%dl
	shll	$25, %edx
	addl	$33554432, %edx                 ## imm = 0x2000000
	cmpl	$6, %eax
	cmovbl	%esi, %edx
	movl	%edx, 4(%rdi)
LBB0_2:
	movl	8(%rdi), %ecx
	cmpl	%ecx, %edx
	jle	LBB0_36
## %bb.3:
	movl	$65536, %edx                    ## imm = 0x10000
	cmpl	$65536, %ecx                    ## imm = 0x10000
	jbe	LBB0_35
## %bb.4:
	movl	$98304, %edx                    ## imm = 0x18000
	cmpl	$98304, %ecx                    ## imm = 0x18000
	jbe	LBB0_35
## %bb.5:
	movl	$131072, %edx                   ## imm = 0x20000
	cmpl	$131073, %ecx                   ## imm = 0x20001
	jb	LBB0_35
## %bb.6:
	movl	$196608, %edx                   ## imm = 0x30000
	cmpl	$196609, %ecx                   ## imm = 0x30001
	jb	LBB0_35
## %bb.7:
	movl	$262144, %edx                   ## imm = 0x40000
	cmpl	$262145, %ecx                   ## imm = 0x40001
	jb	LBB0_35
## %bb.8:
	movl	$393216, %edx                   ## imm = 0x60000
	cmpl	$393217, %ecx                   ## imm = 0x60001
	jb	LBB0_35
## %bb.9:
	movl	$524288, %edx                   ## imm = 0x80000
	cmpl	$524289, %ecx                   ## imm = 0x80001
	jb	LBB0_35
## %bb.10:
	movl	$786432, %edx                   ## imm = 0xC0000
	cmpl	$786433, %ecx                   ## imm = 0xC0001
	jb	LBB0_35
## %bb.11:
	movl	$1048576, %edx                  ## imm = 0x100000
	cmpl	$1048577, %ecx                  ## imm = 0x100001
	jb	LBB0_35
## %bb.12:
	movl	$1572864, %edx                  ## imm = 0x180000
	cmpl	$1572865, %ecx                  ## imm = 0x180001
	jb	LBB0_35
## %bb.13:
	movl	$2097152, %edx                  ## imm = 0x200000
	cmpl	$2097153, %ecx                  ## imm = 0x200001
	jb	LBB0_35
## %bb.14:
	movl	$3145728, %edx                  ## imm = 0x300000
	cmpl	$3145729, %ecx                  ## imm = 0x300001
	jb	LBB0_35
## %bb.15:
	movl	$4194304, %edx                  ## imm = 0x400000
	cmpl	$4194305, %ecx                  ## imm = 0x400001
	jb	LBB0_35
## %bb.16:
	movl	$6291456, %edx                  ## imm = 0x600000
	cmpl	$6291457, %ecx                  ## imm = 0x600001
	jb	LBB0_35
## %bb.17:
	movl	$8388608, %edx                  ## imm = 0x800000
	cmpl	$8388609, %ecx                  ## imm = 0x800001
	jb	LBB0_35
## %bb.18:
	movl	$12582912, %edx                 ## imm = 0xC00000
	cmpl	$12582913, %ecx                 ## imm = 0xC00001
	jb	LBB0_35
## %bb.19:
	movl	$16777216, %edx                 ## imm = 0x1000000
	cmpl	$16777217, %ecx                 ## imm = 0x1000001
	jb	LBB0_35
## %bb.20:
	movl	$25165824, %edx                 ## imm = 0x1800000
	cmpl	$25165825, %ecx                 ## imm = 0x1800001
	jb	LBB0_35
## %bb.21:
	movl	$33554432, %edx                 ## imm = 0x2000000
	cmpl	$33554433, %ecx                 ## imm = 0x2000001
	jb	LBB0_35
## %bb.22:
	movl	$50331648, %edx                 ## imm = 0x3000000
	cmpl	$50331649, %ecx                 ## imm = 0x3000001
	jb	LBB0_35
## %bb.23:
	movl	$67108864, %edx                 ## imm = 0x4000000
	cmpl	$67108865, %ecx                 ## imm = 0x4000001
	jb	LBB0_35
## %bb.24:
	movl	$100663296, %edx                ## imm = 0x6000000
	cmpl	$100663297, %ecx                ## imm = 0x6000001
	jb	LBB0_35
## %bb.25:
	movl	$134217728, %edx                ## imm = 0x8000000
	cmpl	$134217729, %ecx                ## imm = 0x8000001
	jb	LBB0_35
## %bb.26:
	movl	$201326592, %edx                ## imm = 0xC000000
	cmpl	$201326593, %ecx                ## imm = 0xC000001
	jb	LBB0_35
## %bb.27:
	movl	$268435456, %edx                ## imm = 0x10000000
	cmpl	$268435457, %ecx                ## imm = 0x10000001
	jb	LBB0_35
## %bb.28:
	movl	$402653184, %edx                ## imm = 0x18000000
	cmpl	$402653185, %ecx                ## imm = 0x18000001
	jb	LBB0_35
## %bb.29:
	movl	$536870912, %edx                ## imm = 0x20000000
	cmpl	$536870913, %ecx                ## imm = 0x20000001
	jb	LBB0_35
## %bb.30:
	movl	$805306368, %edx                ## imm = 0x30000000
	cmpl	$805306369, %ecx                ## imm = 0x30000001
	jb	LBB0_35
## %bb.31:
	movl	$1073741824, %edx               ## imm = 0x40000000
	cmpl	$1073741825, %ecx               ## imm = 0x40000001
	jb	LBB0_35
## %bb.32:
	movl	$1610612736, %edx               ## imm = 0x60000000
	cmpl	$1610612737, %ecx               ## imm = 0x60000001
	jb	LBB0_35
## %bb.33:
	movl	$-2147483648, %edx              ## imm = 0x80000000
	cmpl	$-2147483647, %ecx              ## imm = 0x80000001
	jb	LBB0_35
## %bb.34:
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	cmpl	$-1073741824, %ecx              ## imm = 0xC0000000
	ja	LBB0_36
LBB0_35:
	movl	%edx, 4(%rdi)
LBB0_36:
	cmpl	$0, 12(%rdi)
	js	LBB0_37
## %bb.38:
	cmpq	$0, 16(%rdi)
	js	LBB0_39
LBB0_40:
	cmpl	$0, 24(%rdi)
	js	LBB0_41
LBB0_42:
	movl	28(%rdi), %edx
	testl	%edx, %edx
	jns	LBB0_44
## %bb.43:
	xorl	%edx, %edx
	cmpl	$5, %eax
	setae	%dl
	movl	%edx, 28(%rdi)
LBB0_44:
	movl	32(%rdi), %esi
	testl	%esi, %esi
	jns	LBB0_46
## %bb.45:
	xorl	%esi, %esi
	cmpl	$7, %eax
	setae	%sil
	shll	$5, %esi
	addl	$32, %esi
	movl	%esi, 32(%rdi)
LBB0_46:
	movl	36(%rdi), %eax
	testl	%eax, %eax
	js	LBB0_47
## %bb.48:
	cmpl	$0, 40(%rdi)
	js	LBB0_49
LBB0_50:
	cmpl	$0, 44(%rdi)
	je	LBB0_51
LBB0_52:
	cmpl	$0, 48(%rdi)
	js	LBB0_53
LBB0_54:
	popq	%rbp
	retq
LBB0_37:
	movl	$3, 12(%rdi)
	cmpq	$0, 16(%rdi)
	jns	LBB0_40
LBB0_39:
	movq	$0, 16(%rdi)
	cmpl	$0, 24(%rdi)
	jns	LBB0_42
LBB0_41:
	movl	$2, 24(%rdi)
	jmp	LBB0_42
LBB0_47:
	xorl	%eax, %eax
	testl	%edx, %edx
	setne	%al
	movl	%eax, 36(%rdi)
	cmpl	$0, 40(%rdi)
	jns	LBB0_50
LBB0_49:
	movl	$4, 40(%rdi)
	cmpl	$0, 44(%rdi)
	jne	LBB0_52
LBB0_51:
	shrl	%esi
	addl	$16, %esi
	testl	%eax, %eax
	sete	%cl
	shrl	%cl, %esi
	movl	%esi, 44(%rdi)
	cmpl	$0, 48(%rdi)
	jns	LBB0_54
LBB0_53:
	testl	%eax, %eax
	sete	%al
	testl	%edx, %edx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %eax
	movl	$2, %ecx
	subl	%eax, %ecx
	movl	%ecx, 48(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LzmaEncProps_Normalize         ; -- Begin function LzmaEncProps_Normalize
	.p2align	2
_LzmaEncProps_Normalize:                ; @LzmaEncProps_Normalize
	.cfi_startproc
; %bb.0:
	mov	w8, #5
	ldp	w10, w9, [x0]
	cmp	w10, #0
	csel	w8, w8, w10, lt
	str	w8, [x0]
	cbnz	w9, LBB0_2
; %bb.1:
	lsl	w9, w8, #1
	mov	w10, #16384
	lsl	w9, w10, w9
	mov	w10, #67108864
	mov	w11, #33554432
	cmp	w8, #6
	csel	w10, w11, w10, eq
	csel	w9, w9, w10, lo
	str	w9, [x0, #4]
LBB0_2:
	ldr	w10, [x0, #8]
	cmp	w9, w10
	b.le	LBB0_67
; %bb.3:
	cmp	w10, #16, lsl #12               ; =65536
	b.ls	LBB0_35
; %bb.4:
	cmp	w10, #24, lsl #12               ; =98304
	b.ls	LBB0_36
; %bb.5:
	cmp	w10, #32, lsl #12               ; =131072
	b.ls	LBB0_37
; %bb.6:
	cmp	w10, #48, lsl #12               ; =196608
	b.ls	LBB0_38
; %bb.7:
	cmp	w10, #64, lsl #12               ; =262144
	b.ls	LBB0_39
; %bb.8:
	cmp	w10, #96, lsl #12               ; =393216
	b.ls	LBB0_40
; %bb.9:
	cmp	w10, #128, lsl #12              ; =524288
	b.ls	LBB0_41
; %bb.10:
	cmp	w10, #192, lsl #12              ; =786432
	b.ls	LBB0_42
; %bb.11:
	cmp	w10, #256, lsl #12              ; =1048576
	b.ls	LBB0_43
; %bb.12:
	cmp	w10, #384, lsl #12              ; =1572864
	b.ls	LBB0_44
; %bb.13:
	cmp	w10, #512, lsl #12              ; =2097152
	b.ls	LBB0_45
; %bb.14:
	cmp	w10, #768, lsl #12              ; =3145728
	b.ls	LBB0_46
; %bb.15:
	cmp	w10, #1024, lsl #12             ; =4194304
	b.ls	LBB0_47
; %bb.16:
	cmp	w10, #1536, lsl #12             ; =6291456
	b.ls	LBB0_48
; %bb.17:
	cmp	w10, #2048, lsl #12             ; =8388608
	b.ls	LBB0_49
; %bb.18:
	cmp	w10, #3072, lsl #12             ; =12582912
	b.ls	LBB0_50
; %bb.19:
	mov	w9, #1
	movk	w9, #256, lsl #16
	cmp	w10, w9
	b.lo	LBB0_51
; %bb.20:
	mov	w9, #1
	movk	w9, #384, lsl #16
	cmp	w10, w9
	b.lo	LBB0_52
; %bb.21:
	mov	w9, #1
	movk	w9, #512, lsl #16
	cmp	w10, w9
	b.lo	LBB0_53
; %bb.22:
	mov	w9, #1
	movk	w9, #768, lsl #16
	cmp	w10, w9
	b.lo	LBB0_54
; %bb.23:
	mov	w9, #1
	movk	w9, #1024, lsl #16
	cmp	w10, w9
	b.lo	LBB0_55
; %bb.24:
	mov	w9, #1
	movk	w9, #1536, lsl #16
	cmp	w10, w9
	b.lo	LBB0_56
; %bb.25:
	mov	w9, #1
	movk	w9, #2048, lsl #16
	cmp	w10, w9
	b.lo	LBB0_57
; %bb.26:
	mov	w9, #1
	movk	w9, #3072, lsl #16
	cmp	w10, w9
	b.lo	LBB0_58
; %bb.27:
	mov	w9, #1
	movk	w9, #4096, lsl #16
	cmp	w10, w9
	b.lo	LBB0_59
; %bb.28:
	mov	w9, #1
	movk	w9, #6144, lsl #16
	cmp	w10, w9
	b.lo	LBB0_60
; %bb.29:
	mov	w9, #1
	movk	w9, #8192, lsl #16
	cmp	w10, w9
	b.lo	LBB0_61
; %bb.30:
	mov	w9, #1
	movk	w9, #12288, lsl #16
	cmp	w10, w9
	b.lo	LBB0_62
; %bb.31:
	mov	w9, #1
	movk	w9, #16384, lsl #16
	cmp	w10, w9
	b.lo	LBB0_63
; %bb.32:
	mov	w9, #1
	movk	w9, #24576, lsl #16
	cmp	w10, w9
	b.lo	LBB0_64
; %bb.33:
	mov	w9, #-2147483647
	cmp	w10, w9
	b.lo	LBB0_65
; %bb.34:
	mov	w9, #-1073741824
	cmp	w10, w9
	b.ls	LBB0_66
	b	LBB0_67
LBB0_35:
	mov	w9, #65536
	b	LBB0_66
LBB0_36:
	mov	w9, #98304
	b	LBB0_66
LBB0_37:
	mov	w9, #131072
	b	LBB0_66
LBB0_38:
	mov	w9, #196608
	b	LBB0_66
LBB0_39:
	mov	w9, #262144
	b	LBB0_66
LBB0_40:
	mov	w9, #393216
	b	LBB0_66
LBB0_41:
	mov	w9, #524288
	b	LBB0_66
LBB0_42:
	mov	w9, #786432
	b	LBB0_66
LBB0_43:
	mov	w9, #1048576
	b	LBB0_66
LBB0_44:
	mov	w9, #1572864
	b	LBB0_66
LBB0_45:
	mov	w9, #2097152
	b	LBB0_66
LBB0_46:
	mov	w9, #3145728
	b	LBB0_66
LBB0_47:
	mov	w9, #4194304
	b	LBB0_66
LBB0_48:
	mov	w9, #6291456
	b	LBB0_66
LBB0_49:
	mov	w9, #8388608
	b	LBB0_66
LBB0_50:
	mov	w9, #12582912
	b	LBB0_66
LBB0_51:
	mov	w9, #16777216
	b	LBB0_66
LBB0_52:
	mov	w9, #25165824
	b	LBB0_66
LBB0_53:
	mov	w9, #33554432
	b	LBB0_66
LBB0_54:
	mov	w9, #50331648
	b	LBB0_66
LBB0_55:
	mov	w9, #67108864
	b	LBB0_66
LBB0_56:
	mov	w9, #100663296
	b	LBB0_66
LBB0_57:
	mov	w9, #134217728
	b	LBB0_66
LBB0_58:
	mov	w9, #201326592
	b	LBB0_66
LBB0_59:
	mov	w9, #268435456
	b	LBB0_66
LBB0_60:
	mov	w9, #402653184
	b	LBB0_66
LBB0_61:
	mov	w9, #536870912
	b	LBB0_66
LBB0_62:
	mov	w9, #805306368
	b	LBB0_66
LBB0_63:
	mov	w9, #1073741824
	b	LBB0_66
LBB0_64:
	mov	w9, #1610612736
	b	LBB0_66
LBB0_65:
	mov	w9, #-2147483648
LBB0_66:
	str	w9, [x0, #4]
LBB0_67:
	ldr	w9, [x0, #12]
	tbnz	w9, #31, LBB0_77
; %bb.68:
	ldr	x9, [x0, #16]
	tbnz	x9, #63, LBB0_78
LBB0_69:
	ldr	w9, [x0, #24]
	tbnz	w9, #31, LBB0_79
LBB0_70:
	ldr	w9, [x0, #28]
	tbnz	w9, #31, LBB0_80
LBB0_71:
	ldr	w10, [x0, #32]
	tbnz	w10, #31, LBB0_81
LBB0_72:
	ldr	w8, [x0, #36]
	tbnz	w8, #31, LBB0_82
LBB0_73:
	ldr	w11, [x0, #40]
	tbnz	w11, #31, LBB0_83
LBB0_74:
	ldr	w11, [x0, #44]
	cbz	w11, LBB0_84
LBB0_75:
	ldr	w10, [x0, #48]
	tbnz	w10, #31, LBB0_85
LBB0_76:
	ret
LBB0_77:
	mov	w9, #3
	str	w9, [x0, #12]
	ldr	x9, [x0, #16]
	tbz	x9, #63, LBB0_69
LBB0_78:
	str	xzr, [x0, #16]
	ldr	w9, [x0, #24]
	tbz	w9, #31, LBB0_70
LBB0_79:
	mov	w9, #2
	str	w9, [x0, #24]
	ldr	w9, [x0, #28]
	tbz	w9, #31, LBB0_71
LBB0_80:
	cmp	w8, #4
	cset	w9, hi
	str	w9, [x0, #28]
	ldr	w10, [x0, #32]
	tbz	w10, #31, LBB0_72
LBB0_81:
	mov	w10, #64
	mov	w11, #32
	cmp	w8, #7
	csel	w10, w11, w10, lo
	str	w10, [x0, #32]
	ldr	w8, [x0, #36]
	tbz	w8, #31, LBB0_73
LBB0_82:
	cmp	w9, #0
	cset	w8, ne
	str	w8, [x0, #36]
	ldr	w11, [x0, #40]
	tbz	w11, #31, LBB0_74
LBB0_83:
	mov	w11, #4
	str	w11, [x0, #40]
	ldr	w11, [x0, #44]
	cbnz	w11, LBB0_75
LBB0_84:
	lsr	w10, w10, #1
	add	w10, w10, #16
	cmp	w8, #0
	cset	w11, eq
	lsr	w10, w10, w11
	str	w10, [x0, #44]
	ldr	w10, [x0, #48]
	tbz	w10, #31, LBB0_76
LBB0_85:
	cmp	w9, #0
	ccmp	w8, #0, #4, ne
	mov	w8, #1
	cinc	w8, w8, ne
	str	w8, [x0, #48]
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
