	.file	"extr_regsvr.c_register_progid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	register_progid, @function
register_progid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	xor	edx, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r8
	xor	r8d, r8d
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	xor	ecx, ecx
	sub	rsp, 32
	.cfi_def_cfa_offset 88
	mov	edi, DWORD PTR HKEY_CLASSES_ROOT[rip]
	mov	r9d, DWORD PTR KEY_READ[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 16[rsp], rax
	xor	eax, eax
	push	0
	.cfi_def_cfa_offset 96
	or	r9d, DWORD PTR KEY_WRITE[rip]
	lea	rax, 16[rsp]
	push	rax
	.cfi_def_cfa_offset 104
	push	0
	.cfi_def_cfa_offset 112
	call	RegCreateKeyExA@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 80
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	mov	r12, rax
	jne	.L1
	mov	r15d, DWORD PTR [rsp]
	test	rbx, rbx
	je	.L3
	mov	rdi, rbx
	call	strlen@PLT
	mov	ecx, DWORD PTR REG_SZ[rip]
	xor	edx, edx
	xor	esi, esi
	mov	edi, r15d
	lea	r9, 1[rax]
	mov	r8, rbx
	call	RegSetValueExA@PLT
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	mov	r15d, DWORD PTR [rsp]
	mov	r12, rax
	je	.L3
.L5:
	mov	edi, r15d
	call	RegCloseKey@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L26
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	test	r14, r14
	je	.L6
	mov	esi, DWORD PTR clsid_keyname[rip]
	mov	edi, r15d
	mov	rdx, r14
	call	register_key_defvalueW@PLT
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	mov	r15d, DWORD PTR [rsp]
	mov	r12, rax
	jne	.L5
.L6:
	test	r13, r13
	je	.L8
	mov	esi, DWORD PTR curver_keyname[rip]
	mov	edi, r15d
	mov	rdx, r13
	call	register_key_defvalueA@PLT
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	mov	r15d, DWORD PTR [rsp]
	mov	r12, rax
	jne	.L5
.L8:
	test	rbp, rbp
	je	.L5
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	r9d, DWORD PTR KEY_READ[rip]
	xor	r8d, r8d
	xor	ecx, ecx
	push	0
	.cfi_def_cfa_offset 96
	or	r9d, DWORD PTR KEY_WRITE[rip]
	xor	edx, edx
	mov	rsi, rbp
	mov	edi, r15d
	lea	rax, 20[rsp]
	push	rax
	.cfi_def_cfa_offset 104
	push	0
	.cfi_def_cfa_offset 112
	call	RegCreateKeyExA@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 80
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	mov	r12, rax
	je	.L27
.L10:
	mov	r15d, DWORD PTR [rsp]
	mov	edi, r15d
	call	RegCloseKey@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edi, DWORD PTR 4[rsp]
	call	RegCloseKey@PLT
	jmp	.L10
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	register_progid, .-register_progid
	.comm	curver_keyname,4,4
	.comm	clsid_keyname,4,4
	.comm	REG_SZ,4,4
	.comm	KEY_WRITE,4,4
	.comm	KEY_READ,4,4
	.comm	HKEY_CLASSES_ROOT,4,4
	.comm	ERROR_SUCCESS,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_regsvr.c_register_progid.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	register_progid, %function
register_progid:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, #0
	ldr	r10, .L28
	ldr	r9, .L28+4
	mov	r7, r2
	mov	r5, r3
	ldr	r2, [r9]
	ldr	r3, [r10]
	sub	sp, sp, #52
	orr	r3, r3, r2
	mov	r6, r0
	ldr	r0, .L28+8
	str	r3, [sp, #4]
	str	r4, [sp, #16]
	str	r4, [sp, #8]
	str	r4, [sp]
	add	ip, sp, #36
	ldr	r0, [r0]
	str	ip, [sp, #12]
	ldr	ip, .L28+12
	mov	r3, r4
	mov	r2, r4
	ldr	ip, [ip]
	str	ip, [sp, #44]
	mov	ip,#0
	ldr	fp, [sp, #88]
	bl	RegCreateKeyExA
	ldr	r8, .L28+16
	mov	r2, r0
	ldr	r3, [r8]
	cmp	r3, r0
	bne	.L1
	cmp	r5, r4
	ldr	r3, [sp, #36]
	beq	.L3
	mov	r0, r5
	str	r3, [sp, #28]
	bl	strlen
	ldr	r3, [sp, #28]
	ldr	r2, .L28+20
	add	r0, r0, #1
	str	r0, [sp, #4]
	str	r5, [sp]
	mov	r0, r3
	mov	r1, r4
	ldr	r3, [r2]
	mov	r2, r4
	bl	RegSetValueExA
	ldr	r3, [r8]
	mov	r2, r0
	cmp	r3, r0
	ldr	r3, [sp, #36]
	beq	.L3
.L5:
	mov	r0, r3
	str	r2, [sp, #28]
	bl	RegCloseKey
	ldr	r2, [sp, #28]
.L1:
	ldr	r3, .L28+12
	ldr	r1, [r3]
	ldr	r3, [sp, #44]
	eors	r1, r3, r1
	mov	r3, #0
	bne	.L26
	mov	r0, r2
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	cmp	r6, #0
	beq	.L6
	ldr	r1, .L28+24
	mov	r2, r6
	mov	r0, r3
	ldr	r1, [r1]
	bl	register_key_defvalueW
	ldr	r3, [r8]
	mov	r2, r0
	cmp	r3, r0
	ldr	r3, [sp, #36]
	bne	.L5
.L6:
	cmp	r7, #0
	beq	.L8
	ldr	r1, .L28+28
	mov	r2, r7
	mov	r0, r3
	ldr	r1, [r1]
	bl	register_key_defvalueA
	ldr	r3, [r8]
	mov	r2, r0
	cmp	r3, r0
	ldr	r3, [sp, #36]
	bne	.L5
.L8:
	cmp	fp, #0
	beq	.L5
	mov	r2, #0
	ldr	r0, [r9]
	ldr	r1, [r10]
	add	ip, sp, #40
	orr	r1, r1, r0
	str	r1, [sp, #4]
	mov	r0, r3
	str	r2, [sp, #16]
	mov	r3, r2
	str	r2, [sp, #8]
	str	r2, [sp]
	mov	r1, fp
	str	ip, [sp, #12]
	bl	RegCreateKeyExA
	ldr	r3, [r8]
	mov	r2, r0
	cmp	r3, r0
	beq	.L27
.L10:
	ldr	r3, [sp, #36]
	str	r2, [sp, #28]
	mov	r0, r3
	bl	RegCloseKey
	ldr	r2, [sp, #28]
	b	.L1
.L27:
	str	r0, [sp, #28]
	ldr	r0, [sp, #40]
	bl	RegCloseKey
	ldr	r2, [sp, #28]
	b	.L10
.L26:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	KEY_READ
	.word	KEY_WRITE
	.word	HKEY_CLASSES_ROOT
	.word	.LC0
	.word	ERROR_SUCCESS
	.word	REG_SZ
	.word	clsid_keyname
	.word	curver_keyname
	.size	register_progid, .-register_progid
	.comm	curver_keyname,4,4
	.comm	clsid_keyname,4,4
	.comm	REG_SZ,4,4
	.comm	KEY_WRITE,4,4
	.comm	KEY_READ,4,4
	.comm	HKEY_CLASSES_ROOT,4,4
	.comm	ERROR_SUCCESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
