	.file	"extr_main.c_add_purpose.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	add_purpose, @function
add_purpose:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 72
	.cfi_def_cfa_offset 112
	mov	esi, DWORD PTR IDC_CERTIFICATE_USAGES[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	GetDlgItem@PLT
	mov	r12d, DWORD PTR HEAP_ZERO_MEMORY[rip]
	mov	r13d, eax
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	edx, 4
	mov	esi, r12d
	mov	edi, eax
	call	HeapAlloc@PLT
	test	rax, rax
	je	.L1
	mov	edi, ebp
	mov	r12, rax
	call	strlen@PLT
	mov	ebx, eax
	xor	eax, eax
	call	GetProcessHeap@PLT
	lea	edx, 1[rbx]
	xor	esi, esi
	mov	edi, eax
	call	HeapAlloc@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L3
	mov	esi, ebp
	mov	rdi, rax
	call	strcpy@PLT
	mov	QWORD PTR 8[r12], rbx
	mov	edi, DWORD PTR CheckBitmapIndexChecked[rip]
	mov	DWORD PTR [r12], 4
	mov	eax, DWORD PTR LVIF_TEXT[rip]
	or	eax, DWORD PTR LVIF_STATE[rip]
	or	eax, DWORD PTR LVIF_PARAM[rip]
	mov	DWORD PTR [rsp], eax
	call	INDEXTOSTATEIMAGEMASK@PLT
	mov	esi, DWORD PTR LVM_GETITEMCOUNT[rip]
	xor	ecx, ecx
	xor	edx, edx
	mov	DWORD PTR 40[rsp], eax
	mov	eax, DWORD PTR LVIS_STATEIMAGEMASK[rip]
	mov	edi, r13d
	mov	DWORD PTR 36[rsp], eax
	call	SendMessageW@PLT
	mov	esi, DWORD PTR LVM_INSERTITEMA[rip]
	mov	rcx, rsp
	xor	edx, edx
	mov	edi, r13d
	mov	DWORD PTR 32[rsp], eax
	mov	QWORD PTR 24[rsp], 0
	mov	QWORD PTR 16[rsp], r12
	mov	QWORD PTR 8[rsp], rbx
	call	SendMessageA@PLT
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, r12
	xor	esi, esi
	mov	edi, eax
	call	HeapFree@PLT
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	add_purpose, .-add_purpose
	.comm	LVM_INSERTITEMA,4,4
	.comm	LVM_GETITEMCOUNT,4,4
	.comm	LVIS_STATEIMAGEMASK,4,4
	.comm	LVIF_TEXT,4,4
	.comm	LVIF_STATE,4,4
	.comm	LVIF_PARAM,4,4
	.comm	IDC_CERTIFICATE_USAGES,4,4
	.comm	HEAP_ZERO_MEMORY,4,4
	.comm	CheckBitmapIndexChecked,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_main.c_add_purpose.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_purpose, %function
add_purpose:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L11
	mov	r5, r1
	ldr	r1, [r3]
	ldr	r3, .L11+4
	sub	sp, sp, #36
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	GetDlgItem
	mov	r6, r0
	bl	GetProcessHeap
	ldr	r3, .L11+8
	mov	r2, #4
	ldr	r1, [r3]
	bl	HeapAlloc
	subs	r4, r0, #0
	beq	.L1
	bl	GetProcessHeap
	mov	r7, r0
	mov	r0, r5
	bl	strlen
	mov	r2, r0
	mov	r1, #0
	mov	r0, r7
	add	r2, r2, #1
	bl	HeapAlloc
	subs	r7, r0, #0
	beq	.L3
	mov	r1, r5
	bl	strcpy
	mov	r1, #4
	ldr	r0, .L11+12
	ldr	r3, .L11+16
	ldr	r2, .L11+20
	ldr	ip, [r0]
	ldr	r3, [r3]
	ldr	r0, [r2]
	ldr	r2, .L11+24
	orr	r3, r3, ip
	orr	r3, r3, r0
	str	r1, [r4]
	ldr	r0, [r2]
	str	r7, [r4, #4]
	str	r3, [sp]
	bl	INDEXTOSTATEIMAGEMASK
	mov	r3, #0
	ldr	r1, .L11+28
	ldr	r2, .L11+32
	ldr	ip, [r1]
	str	r0, [sp, #24]
	ldr	r1, [r2]
	mov	r0, r6
	mov	r2, r3
	str	ip, [sp, #20]
	bl	SendMessageW
	mov	r2, #0
	mov	ip, r0
	ldr	r3, .L11+36
	mov	r0, r6
	ldr	r1, [r3]
	mov	r3, sp
	str	ip, [sp, #16]
	str	r4, [sp, #8]
	str	r7, [sp, #4]
	str	r2, [sp, #12]
	bl	SendMessageA
.L1:
	ldr	r3, .L11+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L3:
	bl	GetProcessHeap
	mov	r2, r4
	mov	r1, r7
	bl	HeapFree
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	IDC_CERTIFICATE_USAGES
	.word	.LC0
	.word	HEAP_ZERO_MEMORY
	.word	LVIF_STATE
	.word	LVIF_TEXT
	.word	LVIF_PARAM
	.word	CheckBitmapIndexChecked
	.word	LVIS_STATEIMAGEMASK
	.word	LVM_GETITEMCOUNT
	.word	LVM_INSERTITEMA
	.size	add_purpose, .-add_purpose
	.comm	LVM_INSERTITEMA,4,4
	.comm	LVM_GETITEMCOUNT,4,4
	.comm	LVIS_STATEIMAGEMASK,4,4
	.comm	LVIF_TEXT,4,4
	.comm	LVIF_STATE,4,4
	.comm	LVIF_PARAM,4,4
	.comm	IDC_CERTIFICATE_USAGES,4,4
	.comm	HEAP_ZERO_MEMORY,4,4
	.comm	CheckBitmapIndexChecked,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
