	.file	"extr_install.c_test_profile_items.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"No common program files directory exists\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%s\\TestDir"
.LC2:
	.string	"need admin rights\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"[Version]\nSignature=\"$Chicago$\"\n[DefaultInstall]\nProfileItems=TestItem,TestItem2,TestGroup\n[TestItem]\nName=TestItem\nCmdLine=11,,notepad.exe\n[TestItem2]\nName=TestItem2\nCmdLine=11,,notepad.exe\nSubDir=TestDir\n[TestGroup]\nName=TestGroup,4\n"
	.section	.rodata.str1.1
.LC4:
	.string	"%s\\%s"
.LC5:
	.string	"DefaultInstall"
.LC6:
	.string	"%s\\TestItem.lnk"
.LC7:
	.string	"directory not created\n"
.LC8:
	.string	"%s\\TestDir\\TestItem2.lnk"
.LC9:
	.string	"link not created\n"
.LC10:
	.string	"%s\\TestGroup"
.LC11:
	.string	"group not created\n"
.LC12:
	.string	"%s\\TestItem2.lnk"
	.text
	.p2align 4
	.type	test_profile_items, @function
test_profile_items:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 24
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_PATH[rip]
	mov	rsi, rsp
	mov	rbx, rsp
	add	rax, 15
	mov	rcx, rax
	mov	rdx, rax
	and	rcx, -4096
	and	rdx, -16
	sub	rsi, rcx
	mov	rcx, rsi
	cmp	rsp, rcx
	je	.L3
.L21:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rcx
	jne	.L21
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L22
.L4:
	mov	rdx, rax
	mov	rsi, rsp
	and	rax, -4096
	mov	r12, rsp
	sub	rsi, rax
	and	rdx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L6
.L23:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L23
.L6:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L24
.L7:
	mov	ecx, DWORD PTR SHGFP_TYPE_CURRENT[rip]
	mov	esi, DWORD PTR CSIDL_COMMON_PROGRAMS[rip]
	xor	edx, edx
	xor	edi, edi
	mov	r8, rsp
	mov	r13, rsp
	call	SHGetFolderPathA@PLT
	cmp	rax, QWORD PTR S_OK[rip]
	jne	.L25
	mov	esi, DWORD PTR MAX_PATH[rip]
	mov	rdi, r12
	mov	rcx, rsp
	lea	rdx, .LC1[rip]
	call	snprintf@PLT
	xor	esi, esi
	mov	rdi, r12
	call	CreateDirectoryA@PLT
	test	eax, eax
	jne	.L10
	call	GetLastError@PLT
	cmp	rax, QWORD PTR ERROR_ACCESS_DENIED[rip]
	je	.L26
.L10:
	mov	rdi, r12
	call	RemoveDirectoryA@PLT
	mov	rdi, QWORD PTR inffile[rip]
	lea	rsi, .LC3[rip]
	call	create_inf_file@PLT
	mov	rcx, QWORD PTR inffile[rip]
	mov	rdx, QWORD PTR CURR_DIR[rip]
	mov	rdi, r12
	lea	rsi, .LC4[rip]
	call	sprintf@PLT
	mov	rdx, r12
	mov	esi, 128
	lea	rdi, .LC5[rip]
	call	run_cmdline@PLT
	mov	esi, DWORD PTR MAX_PATH[rip]
	mov	rcx, r13
	mov	rdi, r12
	lea	rdx, .LC6[rip]
	call	snprintf@PLT
	mov	esi, DWORD PTR MAX_PATH[rip]
	mov	rcx, r13
	mov	rdi, r12
	lea	rdx, .LC1[rip]
	call	snprintf@PLT
	mov	rdi, r12
	call	GetFileAttributesA@PLT
	xor	edi, edi
	cmp	QWORD PTR INVALID_FILE_ATTRIBUTES[rip], rax
	lea	rsi, .LC7[rip]
	setne	dil
	call	ok@PLT
	mov	esi, DWORD PTR MAX_PATH[rip]
	mov	rcx, r13
	mov	rdi, r12
	lea	rdx, .LC8[rip]
	call	snprintf@PLT
	mov	rdi, r12
	call	GetFileAttributesA@PLT
	xor	edi, edi
	cmp	QWORD PTR INVALID_FILE_ATTRIBUTES[rip], rax
	lea	rsi, .LC9[rip]
	setne	dil
	call	ok@PLT
	mov	esi, DWORD PTR MAX_PATH[rip]
	mov	rcx, r13
	mov	rdi, r12
	lea	rdx, .LC10[rip]
	call	snprintf@PLT
	mov	rdi, r12
	call	GetFileAttributesA@PLT
	xor	edi, edi
	cmp	QWORD PTR INVALID_FILE_ATTRIBUTES[rip], rax
	lea	rsi, .LC11[rip]
	setne	dil
	call	ok@PLT
	mov	esi, DWORD PTR MAX_PATH[rip]
	mov	rcx, r13
	mov	rdi, r12
	lea	rdx, .LC6[rip]
	call	snprintf@PLT
	mov	rdi, r12
	call	DeleteFileA@PLT
	mov	esi, DWORD PTR MAX_PATH[rip]
	mov	rcx, r13
	mov	rdi, r12
	lea	rdx, .LC8[rip]
	call	snprintf@PLT
	mov	rdi, r12
	call	DeleteFileA@PLT
	mov	esi, DWORD PTR MAX_PATH[rip]
	mov	rcx, r13
	mov	rdi, r12
	lea	rdx, .LC12[rip]
	call	snprintf@PLT
	mov	rdi, r12
	call	DeleteFileA@PLT
	mov	esi, DWORD PTR MAX_PATH[rip]
	mov	rcx, r13
	mov	rdi, r12
	lea	rdx, .LC1[rip]
	call	snprintf@PLT
	mov	rdi, r12
	call	RemoveDirectoryA@PLT
	mov	esi, DWORD PTR MAX_PATH[rip]
	mov	rdi, r12
	mov	rcx, r13
	lea	rdx, .LC10[rip]
	call	snprintf@PLT
	mov	rdi, r12
	call	RemoveDirectoryA@PLT
.L9:
	mov	rdi, QWORD PTR inffile[rip]
	call	DeleteFileA@PLT
	mov	rsp, rbx
.L1:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L27
	lea	rsp, -24[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L25:
	lea	rdi, .LC0[rip]
	call	skip@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L24:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rdi, .LC2[rip]
	call	skip@PLT
	mov	rsp, rbx
	jmp	.L1
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_profile_items, .-test_profile_items
	.comm	inffile,8,8
	.comm	S_OK,8,8
	.comm	SHGFP_TYPE_CURRENT,4,4
	.comm	MAX_PATH,4,4
	.comm	INVALID_FILE_ATTRIBUTES,8,8
	.comm	ERROR_ACCESS_DENIED,8,8
	.comm	CURR_DIR,8,8
	.comm	CSIDL_COMMON_PROGRAMS,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_install.c_test_profile_items.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"No common program files directory exists\012\000"
	.align	2
.LC1:
	.ascii	"%s\\TestDir\000"
	.align	2
.LC2:
	.ascii	"need admin rights\012\000"
	.align	2
.LC3:
	.ascii	"[Version]\012Signature=\"$Chicago$\"\012[DefaultIns"
	.ascii	"tall]\012ProfileItems=TestItem,TestItem2,TestGroup\012"
	.ascii	"[TestItem]\012Name=TestItem\012CmdLine=11,,notepad."
	.ascii	"exe\012[TestItem2]\012Name=TestItem2\012CmdLine=11,"
	.ascii	",notepad.exe\012SubDir=TestDir\012[TestGroup]\012Na"
	.ascii	"me=TestGroup,4\012\000"
	.align	2
.LC4:
	.ascii	"%s\\%s\000"
	.align	2
.LC5:
	.ascii	"DefaultInstall\000"
	.align	2
.LC6:
	.ascii	"%s\\TestItem.lnk\000"
	.align	2
.LC7:
	.ascii	"directory not created\012\000"
	.align	2
.LC8:
	.ascii	"%s\\TestDir\\TestItem2.lnk\000"
	.align	2
.LC9:
	.ascii	"link not created\012\000"
	.align	2
.LC10:
	.ascii	"%s\\TestGroup\000"
	.align	2
.LC11:
	.ascii	"group not created\012\000"
	.align	2
.LC12:
	.ascii	"%s\\TestItem2.lnk\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_profile_items, %function
test_profile_items:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #16
	mov	r2, #0
	ldr	r5, .L11
	ldr	r0, .L11+4
	ldr	r1, [r5]
	mov	r8, sp
	add	r1, r1, #7
	bic	r1, r1, #7
	sub	sp, sp, r1
	ldr	r3, .L11+8
	add	r4, sp, #8
	sub	sp, sp, r1
	ldr	r1, [r0]
	ldr	r0, .L11+12
	add	r6, sp, #8
	ldr	r0, [r0]
	str	r0, [fp, #-32]
	mov	r0,#0
	ldr	r3, [r3]
	mov	r0, r2
	str	r6, [sp]
	bl	SHGetFolderPathA
	ldr	r3, .L11+16
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L2
	ldr	r0, .L11+20
	bl	skip
	ldr	r7, .L11+24
.L3:
	ldr	r0, [r7]
	bl	DeleteFileA
	mov	sp, r8
.L1:
	ldr	r3, .L11+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L2:
	mov	r3, r6
	ldr	r2, .L11+28
	ldr	r1, [r5]
	mov	r0, r4
	bl	snprintf
	mov	r1, #0
	mov	r0, r4
	bl	CreateDirectoryA
	cmp	r0, #0
	bne	.L4
	bl	GetLastError
	ldr	r3, .L11+32
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L10
.L4:
	ldr	r7, .L11+24
	mov	r0, r4
	bl	RemoveDirectoryA
	ldr	r0, [r7]
	ldr	r1, .L11+36
	bl	create_inf_file
	ldr	r2, .L11+40
	ldr	r3, [r7]
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, .L11+44
	bl	sprintf
	mov	r2, r4
	mov	r1, #128
	ldr	r0, .L11+48
	bl	run_cmdline
	mov	r3, r6
	ldr	r1, [r5]
	mov	r0, r4
	ldr	r2, .L11+52
	bl	snprintf
	mov	r3, r6
	ldr	r2, .L11+28
	ldr	r1, [r5]
	mov	r0, r4
	bl	snprintf
	mov	r0, r4
	bl	GetFileAttributesA
	ldr	r9, .L11+56
	ldr	r1, .L11+60
	ldr	r3, [r9]
	subs	r0, r3, r0
	movne	r0, #1
	bl	ok
	mov	r3, r6
	ldr	r2, .L11+64
	ldr	r1, [r5]
	mov	r0, r4
	bl	snprintf
	mov	r0, r4
	bl	GetFileAttributesA
	ldr	r3, [r9]
	ldr	r1, .L11+68
	subs	r0, r3, r0
	movne	r0, #1
	bl	ok
	mov	r3, r6
	ldr	r2, .L11+72
	ldr	r1, [r5]
	mov	r0, r4
	bl	snprintf
	mov	r0, r4
	bl	GetFileAttributesA
	ldr	r3, [r9]
	ldr	r1, .L11+76
	subs	r0, r3, r0
	movne	r0, #1
	bl	ok
	mov	r3, r6
	ldr	r1, [r5]
	ldr	r2, .L11+52
	mov	r0, r4
	bl	snprintf
	mov	r0, r4
	bl	DeleteFileA
	mov	r3, r6
	ldr	r1, [r5]
	ldr	r2, .L11+64
	mov	r0, r4
	bl	snprintf
	mov	r0, r4
	bl	DeleteFileA
	mov	r3, r6
	ldr	r1, [r5]
	ldr	r2, .L11+80
	mov	r0, r4
	bl	snprintf
	mov	r0, r4
	bl	DeleteFileA
	mov	r3, r6
	ldr	r1, [r5]
	ldr	r2, .L11+28
	mov	r0, r4
	bl	snprintf
	mov	r0, r4
	bl	RemoveDirectoryA
	mov	r3, r6
	mov	r0, r4
	ldr	r1, [r5]
	ldr	r2, .L11+72
	bl	snprintf
	mov	r0, r4
	bl	RemoveDirectoryA
	b	.L3
.L10:
	ldr	r0, .L11+84
	bl	skip
	mov	sp, r8
	b	.L1
.L9:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	MAX_PATH
	.word	CSIDL_COMMON_PROGRAMS
	.word	SHGFP_TYPE_CURRENT
	.word	.LC13
	.word	S_OK
	.word	.LC0
	.word	inffile
	.word	.LC1
	.word	ERROR_ACCESS_DENIED
	.word	.LC3
	.word	CURR_DIR
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	INVALID_FILE_ATTRIBUTES
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC2
	.size	test_profile_items, .-test_profile_items
	.comm	inffile,4,4
	.comm	S_OK,4,4
	.comm	SHGFP_TYPE_CURRENT,4,4
	.comm	MAX_PATH,4,4
	.comm	INVALID_FILE_ATTRIBUTES,4,4
	.comm	ERROR_ACCESS_DENIED,4,4
	.comm	CURR_DIR,4,4
	.comm	CSIDL_COMMON_PROGRAMS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
