	.file	"extr_LzmaEnc.c_LzmaEnc_WriteProperties.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	LzmaEnc_WriteProperties
	.type	LzmaEnc_WriteProperties, @function
LzmaEnc_WriteProperties:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rcx, QWORD PTR LZMA_PROPS_SIZE[rip]
	cmp	QWORD PTR [rdx], rcx
	jl	.L10
	mov	eax, DWORD PTR [rdi]
	mov	QWORD PTR [rdx], rcx
	mov	r8d, 3
	mov	ecx, 11
	mov	edx, DWORD PTR 4[rdi]
	lea	edx, [rdx+rdx*4]
	add	edx, DWORD PTR 8[rdi]
	lea	edx, [rdx+rdx*8]
	movsx	rdx, edx
	add	rdx, QWORD PTR 16[rdi]
	mov	edi, 2
	mov	QWORD PTR [rsi], rdx
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edx, edi
	sal	edx, cl
	cmp	edx, eax
	jge	.L7
	mov	edx, r8d
	sal	edx, cl
	cmp	edx, eax
	jge	.L7
	add	ecx, 1
	cmp	ecx, 31
	jne	.L5
.L4:
	movsx	rdx, eax
	mov	QWORD PTR 8[rsi], rdx
	mov	edx, eax
	sar	edx, 8
	movsx	rdx, edx
	mov	QWORD PTR 16[rsi], rdx
	mov	edx, eax
	sar	eax, 24
	sar	edx, 16
	cdqe
	movsx	rdx, edx
	mov	QWORD PTR 32[rsi], rax
	mov	eax, DWORD PTR SZ_OK[rip]
	mov	QWORD PTR 24[rsi], rdx
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, DWORD PTR SZ_ERROR_PARAM[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	LzmaEnc_WriteProperties, .-LzmaEnc_WriteProperties
	.comm	SZ_OK,4,4
	.comm	SZ_ERROR_PARAM,4,4
	.comm	LZMA_PROPS_SIZE,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_LzmaEnc.c_LzmaEnc_WriteProperties.c"
	.text
	.align	2
	.global	LzmaEnc_WriteProperties
	.syntax unified
	.arm
	.fpu softvfp
	.type	LzmaEnc_WriteProperties, %function
LzmaEnc_WriteProperties:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L12
	push	{r4, r5, r6, lr}
	ldr	r3, [r2]
	ldr	r6, [ip]
	cmp	r3, r6
	blt	.L11
	ldmib	r0, {r5, ip}
	mov	lr, #2
	mov	r4, #3
	mov	r3, #11
	add	r5, r5, r5, lsl lr
	add	r5, r5, ip
	ldr	ip, [r0]
	str	r6, [r2]
	ldr	r2, [r0, #12]
	add	r5, r5, r5, lsl r4
	add	r5, r5, r2
	str	r5, [r1]
.L5:
	cmp	ip, lr, lsl r3
	lsl	r2, lr, r3
	ble	.L7
	cmp	ip, r4, lsl r3
	lsl	r2, r4, r3
	add	r3, r3, #1
	ble	.L7
	cmp	r3, #31
	bne	.L5
.L4:
	ldr	r3, .L12+4
	asr	lr, ip, #8
	ldr	r0, [r3]
	asr	r2, ip, #16
	asr	r3, ip, #24
	stmib	r1, {ip, lr}
	str	r2, [r1, #12]
	str	r3, [r1, #16]
	pop	{r4, r5, r6, pc}
.L7:
	mov	ip, r2
	b	.L4
.L11:
	ldr	r3, .L12+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	LZMA_PROPS_SIZE
	.word	SZ_OK
	.word	SZ_ERROR_PARAM
	.size	LzmaEnc_WriteProperties, .-LzmaEnc_WriteProperties
	.comm	SZ_OK,4,4
	.comm	SZ_ERROR_PARAM,4,4
	.comm	LZMA_PROPS_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
