	.file	"extr_package.c_create_file_with_version.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\\version.dll"
	.text
	.p2align 4
	.type	create_file_with_version, @function
create_file_with_version:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	r8, rsi
	mov	r9, rdi
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_PATH[rip]
	mov	rcx, rsp
	mov	rsi, rax
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L20:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L20
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L21
.L4:
	mov	r12, rsp
	mov	QWORD PTR -88[rbp], r8
	mov	r14d, DWORD PTR FALSE[rip]
	mov	rdi, r12
	mov	QWORD PTR -72[rbp], r9
	call	GetSystemDirectoryA@PLT
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	call	lstrcatA@PLT
	mov	r9, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR FALSE[rip]
	mov	rdi, r12
	mov	rsi, r9
	mov	QWORD PTR -80[rbp], r9
	call	CopyFileA@PLT
	mov	rdi, r12
	lea	rsi, -60[rbp]
	call	GetFileVersionInfoSizeA@PLT
	mov	r15d, eax
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	edx, r15d
	xor	esi, esi
	mov	edi, eax
	call	HeapAlloc@PLT
	xor	esi, esi
	mov	rdi, r12
	mov	edx, r15d
	mov	rcx, rax
	mov	r13, rax
	call	GetFileVersionInfoA@PLT
	mov	rdx, QWORD PTR 0[r13]
	mov	rdi, rdx
	mov	QWORD PTR -72[rbp], rdx
	call	lstrlenW@PLT
	mov	rdx, QWORD PTR -72[rbp]
	mov	rdi, r13
	cdqe
	lea	rsi, 4[rdx+rax*4]
	mov	edx, 4
	call	roundpos@PLT
	mov	r8, QWORD PTR -88[rbp]
	mov	r9, QWORD PTR -80[rbp]
	mov	QWORD PTR 16[rax], rbx
	mov	esi, DWORD PTR FALSE[rip]
	mov	QWORD PTR 24[rax], r8
	mov	rdi, r9
	mov	QWORD PTR 8[rax], r8
	mov	QWORD PTR [rax], rbx
	call	BeginUpdateResourceA@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L22
.L5:
	xor	eax, eax
	call	GetProcessHeap@PLT
	xor	esi, esi
	mov	rdx, r13
	mov	edi, eax
	call	HeapFree@PLT
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	lea	rsp, -40[rbp]
	mov	eax, r14d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	esi, DWORD PTR SUBLANG_NEUTRAL[rip]
	mov	edi, DWORD PTR LANG_NEUTRAL[rip]
	call	MAKELANGID@PLT
	mov	edi, DWORD PTR VS_VERSION_INFO[rip]
	mov	ebx, eax
	call	MAKEINTRESOURCE@PLT
	mov	esi, DWORD PTR RT_VERSION[rip]
	mov	r9d, r15d
	mov	ecx, ebx
	mov	rdx, rax
	mov	r8, r13
	mov	edi, r12d
	call	UpdateResourceA@PLT
	test	eax, eax
	je	.L5
	mov	esi, DWORD PTR FALSE[rip]
	mov	edi, r12d
	call	EndUpdateResourceA@PLT
	test	eax, eax
	cmovne	r14d, DWORD PTR TRUE[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L21:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	create_file_with_version, .-create_file_with_version
	.comm	VS_VERSION_INFO,4,4
	.comm	TRUE,4,4
	.comm	SUBLANG_NEUTRAL,4,4
	.comm	RT_VERSION,8,8
	.comm	MAX_PATH,4,4
	.comm	LANG_NEUTRAL,4,4
	.comm	FALSE,4,4
	.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_package.c_create_file_with_version.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\\version.dll\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_file_with_version, %function
create_file_with_version:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #28
	mov	r8, r0
	ldr	r3, .L17
	ldr	r9, .L17+4
	ldr	r0, [r3]
	mov	r7, r1
	lsl	r3, r0, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L17+8
	add	r10, sp, #8
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	ldr	r3, [r9]
	mov	r1, r0
	mov	r0, r10
	str	r3, [fp, #-48]
	mov	r6, r2
	bl	GetSystemDirectoryA
	ldr	r1, .L17+12
	mov	r0, r10
	bl	lstrcatA
	ldr	r2, [r9]
	mov	r1, r8
	mov	r0, r10
	bl	CopyFileA
	sub	r1, fp, #44
	mov	r0, r10
	bl	GetFileVersionInfoSizeA
	mov	r5, r0
	bl	GetProcessHeap
	mov	r2, r5
	mov	r1, #0
	bl	HeapAlloc
	mov	r4, r0
	mov	r2, r5
	mov	r3, r4
	mov	r1, #0
	mov	r0, r10
	bl	GetFileVersionInfoA
	ldr	r1, [r4]
	mov	r0, r1
	str	r1, [fp, #-52]
	bl	lstrlenW
	ldr	r1, [fp, #-52]
	add	r0, r0, #1
	add	r1, r1, r0, lsl #2
	mov	r2, #4
	mov	r0, r4
	bl	roundpos
	mov	r3, r0
	ldr	r1, [r9]
	stm	r3, {r6, r7}
	str	r6, [r3, #8]
	mov	r0, r8
	str	r7, [r3, #12]
	bl	BeginUpdateResourceA
	subs	r6, r0, #0
	bne	.L15
.L2:
	bl	GetProcessHeap
	mov	r2, r4
	mov	r1, #0
	bl	HeapFree
	ldr	r3, .L17+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	ldr	r0, [fp, #-48]
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	ldr	r2, .L17+16
	ldr	r3, .L17+20
	ldr	r0, [r2]
	ldr	r8, [r3]
	bl	MAKEINTRESOURCE
	ldr	r2, .L17+24
	ldr	r3, .L17+28
	ldr	r1, [r2]
	mov	r7, r0
	ldr	r0, [r3]
	bl	MAKELANGID
	mov	r2, r7
	mov	r3, r0
	mov	r1, r8
	mov	r0, r6
	stm	sp, {r4, r5}
	bl	UpdateResourceA
	cmp	r0, #0
	beq	.L2
	mov	r0, r6
	ldr	r1, [r9]
	bl	EndUpdateResourceA
	cmp	r0, #0
	ldrne	r3, .L17+32
	ldrne	r3, [r3]
	strne	r3, [fp, #-48]
	b	.L2
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	MAX_PATH
	.word	FALSE
	.word	.LC1
	.word	.LC0
	.word	VS_VERSION_INFO
	.word	RT_VERSION
	.word	SUBLANG_NEUTRAL
	.word	LANG_NEUTRAL
	.word	TRUE
	.size	create_file_with_version, .-create_file_with_version
	.comm	VS_VERSION_INFO,4,4
	.comm	TRUE,4,4
	.comm	SUBLANG_NEUTRAL,4,4
	.comm	RT_VERSION,4,4
	.comm	MAX_PATH,4,4
	.comm	LANG_NEUTRAL,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
