	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LzmaEnc_WriteProperties        ## -- Begin function LzmaEnc_WriteProperties
	.p2align	4, 0x90
_LzmaEnc_WriteProperties:               ## @LzmaEnc_WriteProperties
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_LZMA_PROPS_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%rcx, (%rdx)
	jge	LBB0_2
## %bb.1:
	movq	_SZ_ERROR_PARAM@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_2:
	movl	(%rdi), %eax
	movq	%rcx, (%rdx)
	movslq	4(%rdi), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	movslq	8(%rdi), %rdx
	addq	%rcx, %rdx
	leaq	(%rdx,%rdx,8), %rcx
	addq	16(%rdi), %rcx
	movq	%rcx, (%rsi)
	cmpl	$4194303, %eax                  ## imm = 0x3FFFFF
	jle	LBB0_22
## %bb.3:
	movl	%eax, %ecx
	jmp	LBB0_24
LBB0_22:
	movl	$4096, %ecx                     ## imm = 0x1000
	cmpl	$4096, %eax                     ## imm = 0x1000
	jle	LBB0_24
## %bb.23:
	movl	$6144, %ecx                     ## imm = 0x1800
	cmpl	$6144, %eax                     ## imm = 0x1800
	jbe	LBB0_24
## %bb.4:
	movl	$8192, %ecx                     ## imm = 0x2000
	cmpl	$8193, %eax                     ## imm = 0x2001
	jb	LBB0_24
## %bb.5:
	movl	$12288, %ecx                    ## imm = 0x3000
	cmpl	$12289, %eax                    ## imm = 0x3001
	jb	LBB0_24
## %bb.6:
	movl	$16384, %ecx                    ## imm = 0x4000
	cmpl	$16385, %eax                    ## imm = 0x4001
	jb	LBB0_24
## %bb.7:
	movl	$24576, %ecx                    ## imm = 0x6000
	cmpl	$24577, %eax                    ## imm = 0x6001
	jb	LBB0_24
## %bb.8:
	movl	$32768, %ecx                    ## imm = 0x8000
	cmpl	$32769, %eax                    ## imm = 0x8001
	jb	LBB0_24
## %bb.9:
	movl	$49152, %ecx                    ## imm = 0xC000
	cmpl	$49153, %eax                    ## imm = 0xC001
	jb	LBB0_24
## %bb.10:
	movl	$65536, %ecx                    ## imm = 0x10000
	cmpl	$65537, %eax                    ## imm = 0x10001
	jb	LBB0_24
## %bb.11:
	movl	$98304, %ecx                    ## imm = 0x18000
	cmpl	$98305, %eax                    ## imm = 0x18001
	jb	LBB0_24
## %bb.12:
	movl	$131072, %ecx                   ## imm = 0x20000
	cmpl	$131073, %eax                   ## imm = 0x20001
	jb	LBB0_24
## %bb.13:
	movl	$196608, %ecx                   ## imm = 0x30000
	cmpl	$196609, %eax                   ## imm = 0x30001
	jb	LBB0_24
## %bb.14:
	movl	$262144, %ecx                   ## imm = 0x40000
	cmpl	$262145, %eax                   ## imm = 0x40001
	jb	LBB0_24
## %bb.15:
	movl	$393216, %ecx                   ## imm = 0x60000
	cmpl	$393217, %eax                   ## imm = 0x60001
	jb	LBB0_24
## %bb.16:
	movl	$524288, %ecx                   ## imm = 0x80000
	cmpl	$524289, %eax                   ## imm = 0x80001
	jb	LBB0_24
## %bb.17:
	movl	$786432, %ecx                   ## imm = 0xC0000
	cmpl	$786433, %eax                   ## imm = 0xC0001
	jb	LBB0_24
## %bb.18:
	movl	$1048576, %ecx                  ## imm = 0x100000
	cmpl	$1048577, %eax                  ## imm = 0x100001
	jb	LBB0_24
## %bb.19:
	movl	$1572864, %ecx                  ## imm = 0x180000
	cmpl	$1572865, %eax                  ## imm = 0x180001
	jb	LBB0_24
## %bb.20:
	movl	$2097152, %ecx                  ## imm = 0x200000
	cmpl	$2097153, %eax                  ## imm = 0x200001
	jb	LBB0_24
## %bb.21:
	xorl	%ecx, %ecx
	cmpl	$3145729, %eax                  ## imm = 0x300001
	setae	%cl
	shll	$20, %ecx
	addl	$3145728, %ecx                  ## imm = 0x300000
LBB0_24:
	movl	%ecx, %eax
	movq	%rax, 8(%rsi)
	movl	%ecx, %eax
	shrl	$8, %eax
	movq	%rax, 16(%rsi)
	movl	%ecx, %eax
	shrl	$16, %eax
	movq	%rax, 24(%rsi)
	shrl	$24, %ecx
	movq	%rcx, 32(%rsi)
	movq	_SZ_OK@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LZMA_PROPS_SIZE,8,3            ## @LZMA_PROPS_SIZE
	.comm	_SZ_ERROR_PARAM,4,2             ## @SZ_ERROR_PARAM
	.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
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function LzmaEnc_WriteProperties
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_LzmaEnc_WriteProperties
	.p2align	2
_LzmaEnc_WriteProperties:               ; @LzmaEnc_WriteProperties
	.cfi_startproc
; %bb.0:
	ldr	x9, [x2]
Lloh0:
	adrp	x8, _LZMA_PROPS_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LZMA_PROPS_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SZ_ERROR_PARAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SZ_ERROR_PARAM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ret
LBB0_2:
	str	x8, [x2]
	ldp	w9, w8, [x0]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	add	x8, x8, x8, lsl #2
	ldrsw	x10, [x0, #8]
	add	x8, x8, x10
	add	x8, x8, x8, lsl #3
	ldr	x10, [x0, #16]
	add	x8, x10, x8
	str	x8, [x1]
	mov	x8, x9
	cmp	w9, #1024, lsl #12              ; =4194304
	b.ge	LBB0_24
; %bb.3:
	cmp	w9, #1, lsl #12                 ; =4096
	b.le	LBB0_23
; %bb.4:
	mov	w8, #6144
	cmp	w9, w8
	b.ls	LBB0_24
; %bb.5:
	cmp	w9, #2, lsl #12                 ; =8192
	b.ls	LBB0_25
; %bb.6:
	cmp	w9, #3, lsl #12                 ; =12288
	b.ls	LBB0_26
; %bb.7:
	cmp	w9, #4, lsl #12                 ; =16384
	b.ls	LBB0_27
; %bb.8:
	cmp	w9, #6, lsl #12                 ; =24576
	b.ls	LBB0_28
; %bb.9:
	cmp	w9, #8, lsl #12                 ; =32768
	b.ls	LBB0_29
; %bb.10:
	cmp	w9, #12, lsl #12                ; =49152
	b.ls	LBB0_30
; %bb.11:
	cmp	w9, #16, lsl #12                ; =65536
	b.ls	LBB0_31
; %bb.12:
	cmp	w9, #24, lsl #12                ; =98304
	b.ls	LBB0_32
; %bb.13:
	cmp	w9, #32, lsl #12                ; =131072
	b.ls	LBB0_33
; %bb.14:
	cmp	w9, #48, lsl #12                ; =196608
	b.ls	LBB0_34
; %bb.15:
	cmp	w9, #64, lsl #12                ; =262144
	b.ls	LBB0_35
; %bb.16:
	cmp	w9, #96, lsl #12                ; =393216
	b.ls	LBB0_36
; %bb.17:
	cmp	w9, #128, lsl #12               ; =524288
	b.ls	LBB0_37
; %bb.18:
	cmp	w9, #192, lsl #12               ; =786432
	b.ls	LBB0_38
; %bb.19:
	cmp	w9, #256, lsl #12               ; =1048576
	b.ls	LBB0_39
; %bb.20:
	cmp	w9, #384, lsl #12               ; =1572864
	b.ls	LBB0_40
; %bb.21:
	cmp	w9, #512, lsl #12               ; =2097152
	b.ls	LBB0_41
; %bb.22:
	mov	w8, #3145728
	mov	w10, #4194304
	cmp	w9, #768, lsl #12               ; =3145728
	csel	w8, w10, w8, hi
	b	LBB0_24
LBB0_23:
	mov	w8, #4096
LBB0_24:
	mov	w9, w8
	str	x9, [x1, #8]
	dup.2s	v0, w8
Lloh6:
	adrp	x9, lCPI0_0@PAGE
Lloh7:
	ldr	d1, [x9, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	ushll.2d	v0, v0, #0
	str	q0, [x1, #16]
	lsr	w8, w8, #24
	str	x8, [x1, #32]
Lloh8:
	adrp	x8, _SZ_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SZ_OK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ret
LBB0_25:
	mov	w8, #8192
	b	LBB0_24
LBB0_26:
	mov	w8, #12288
	b	LBB0_24
LBB0_27:
	mov	w8, #16384
	b	LBB0_24
LBB0_28:
	mov	w8, #24576
	b	LBB0_24
LBB0_29:
	mov	w8, #32768
	b	LBB0_24
LBB0_30:
	mov	w8, #49152
	b	LBB0_24
LBB0_31:
	mov	w8, #65536
	b	LBB0_24
LBB0_32:
	mov	w8, #98304
	b	LBB0_24
LBB0_33:
	mov	w8, #131072
	b	LBB0_24
LBB0_34:
	mov	w8, #196608
	b	LBB0_24
LBB0_35:
	mov	w8, #262144
	b	LBB0_24
LBB0_36:
	mov	w8, #393216
	b	LBB0_24
LBB0_37:
	mov	w8, #524288
	b	LBB0_24
LBB0_38:
	mov	w8, #786432
	b	LBB0_24
LBB0_39:
	mov	w8, #1048576
	b	LBB0_24
LBB0_40:
	mov	w8, #1572864
	b	LBB0_24
LBB0_41:
	mov	w8, #2097152
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdr	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LZMA_PROPS_SIZE,8,3            ; @LZMA_PROPS_SIZE
	.comm	_SZ_ERROR_PARAM,4,2             ; @SZ_ERROR_PARAM
	.comm	_SZ_OK,4,2                      ; @SZ_OK
.subsections_via_symbols
