	.file	"extr_proxyodbc.c_ODBC_ReplicateODBCInstToRegistry.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Driver settings are not currently replicated to the registry\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Software\\ODBC\\ODBCINST.INI"
.LC2:
	.string	"ODBC Drivers"
.LC3:
	.string	"Installed"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Error %d replicating driver %s\n"
	.align 8
.LC5:
	.string	"Error %d checking for %s in drivers\n"
	.section	.rodata.str1.1
.LC6:
	.string	"Error %d closing %s key\n"
	.section	.rodata.str1.8
	.align 8
.LC7:
	.string	"Error %d ensuring driver key %s\n"
	.align 8
.LC8:
	.string	"Unusually long driver name %s not replicated\n"
	.section	.rodata.str1.1
.LC9:
	.string	"Error %d enumerating drivers\n"
.LC10:
	.string	"Error %d closing hDrivers\n"
	.section	.rodata.str1.8
	.align 8
.LC11:
	.string	"Error %d opening HKLM\\S\\O\\OI\\Drivers\n"
	.align 8
.LC12:
	.string	"Error %d closing HKLM\\S\\O\\ODBCINST.INI\n"
	.align 8
.LC13:
	.string	"Error %d opening HKLM\\S\\O\\ODBCINST.INI\n"
	.align 8
.LC14:
	.string	"May not have replicated all ODBC drivers to the registry\n"
	.text
	.p2align 4
	.type	ODBC_ReplicateODBCInstToRegistry, @function
ODBC_ReplicateODBCInstToRegistry:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edi
	lea	rdi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 312
	.cfi_def_cfa_offset 368
	mov	r12d, DWORD PTR FALSE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 296[rsp], rax
	xor	eax, eax
	call	TRACE@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 376
	xor	ecx, ecx
	xor	edx, edx
	push	0
	.cfi_def_cfa_offset 384
	mov	r9d, DWORD PTR KEY_ALL_ACCESS[rip]
	lea	rsi, .LC1[rip]
	mov	r8d, DWORD PTR REG_OPTION_NON_VOLATILE[rip]
	mov	edi, DWORD PTR HKEY_LOCAL_MACHINE[rip]
	lea	rax, 28[rsp]
	push	rax
	.cfi_def_cfa_offset 392
	push	0
	.cfi_def_cfa_offset 400
	call	RegCreateKeyExA@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 368
	cmp	DWORD PTR ERROR_SUCCESS[rip], eax
	je	.L21
	mov	esi, eax
	lea	rdi, .LC13[rip]
	xor	eax, eax
	call	TRACE@PLT
.L16:
	test	r12d, r12d
	je	.L22
.L1:
	mov	rax, QWORD PTR 296[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 312
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L21:
	.cfi_restore_state
	sub	rsp, 8
	.cfi_def_cfa_offset 376
	mov	r9d, DWORD PTR KEY_ALL_ACCESS[rip]
	xor	ecx, ecx
	xor	edx, edx
	push	0
	.cfi_def_cfa_offset 384
	mov	r8d, DWORD PTR REG_OPTION_NON_VOLATILE[rip]
	lea	rsi, .LC2[rip]
	lea	rax, 32[rsp]
	push	rax
	.cfi_def_cfa_offset 392
	push	0
	.cfi_def_cfa_offset 400
	mov	edi, DWORD PTR 44[rsp]
	call	RegCreateKeyExA@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 368
	cmp	DWORD PTR ERROR_SUCCESS[rip], eax
	mov	esi, eax
	jne	.L3
	mov	r12d, DWORD PTR TRUE[rip]
	lea	rbx, 32[rsp]
	lea	r13, 24[rsp]
	mov	r15d, DWORD PTR SQL_FETCH_FIRST[rip]
	lea	r14, 20[rsp]
	.p2align 4,,10
	.p2align 3
.L4:
	push	0
	.cfi_def_cfa_offset 376
	xor	r9d, r9d
	mov	ecx, 256
	mov	rdx, rbx
	push	0
	.cfi_def_cfa_offset 384
	mov	r8, r13
	mov	esi, r15d
	mov	edi, ebp
	call	ODBC32_SQLDrivers@PLT
	cmp	QWORD PTR SQL_SUCCESS[rip], rax
	pop	rdx
	.cfi_def_cfa_offset 376
	pop	rcx
	.cfi_def_cfa_offset 368
	je	.L11
	cmp	QWORD PTR SQL_SUCCESS_WITH_INFO[rip], rax
	jne	.L24
.L11:
	mov	rdi, rbx
	mov	r15d, DWORD PTR SQL_FETCH_NEXT[rip]
	call	lstrlenA@PLT
	cmp	rax, QWORD PTR 24[rsp]
	je	.L25
	mov	rsi, rbx
	lea	rdi, .LC8[rip]
	xor	eax, eax
	call	WARN@PLT
	mov	r12d, DWORD PTR FALSE[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rdi, .LC14[rip]
	xor	eax, eax
	call	WARN@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rdi, .LC11[rip]
	xor	eax, eax
	call	TRACE@PLT
.L14:
	mov	edi, DWORD PTR 12[rsp]
	call	RegCloseKey@PLT
	cmp	DWORD PTR ERROR_SUCCESS[rip], eax
	mov	esi, eax
	je	.L16
	lea	rdi, .LC12[rip]
	xor	eax, eax
	call	TRACE@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edi, DWORD PTR 16[rsp]
	xor	r9d, r9d
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	mov	rsi, rbx
	call	RegQueryValueExA@PLT
	cmp	DWORD PTR ERROR_FILE_NOT_FOUND[rip], eax
	je	.L26
	cmp	DWORD PTR ERROR_SUCCESS[rip], eax
	je	.L7
	mov	esi, eax
	mov	rdx, rbx
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	TRACE@PLT
	mov	r12d, DWORD PTR FALSE[rip]
.L7:
	sub	rsp, 8
	.cfi_def_cfa_offset 376
	mov	r9d, DWORD PTR KEY_ALL_ACCESS[rip]
	xor	ecx, ecx
	xor	edx, edx
	push	0
	.cfi_def_cfa_offset 384
	mov	r8d, DWORD PTR REG_OPTION_NON_VOLATILE[rip]
	mov	rsi, rbx
	push	r14
	.cfi_def_cfa_offset 392
	push	0
	.cfi_def_cfa_offset 400
	mov	edi, DWORD PTR 44[rsp]
	call	RegCreateKeyExA@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 368
	cmp	DWORD PTR ERROR_SUCCESS[rip], eax
	mov	esi, eax
	je	.L27
	mov	rdx, rbx
	lea	rdi, .LC7[rip]
	xor	eax, eax
	call	TRACE@PLT
	mov	r12d, DWORD PTR FALSE[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edi, DWORD PTR 20[rsp]
	call	RegCloseKey@PLT
	cmp	DWORD PTR ERROR_SUCCESS[rip], eax
	mov	esi, eax
	je	.L4
	mov	rdx, rbx
	lea	rdi, .LC6[rip]
	xor	eax, eax
	call	TRACE@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L24:
	cmp	QWORD PTR SQL_NO_DATA[rip], rax
	je	.L12
	mov	esi, eax
	lea	rdi, .LC9[rip]
	xor	eax, eax
	call	TRACE@PLT
	mov	r12d, DWORD PTR FALSE[rip]
.L12:
	mov	edi, DWORD PTR 16[rsp]
	call	RegCloseKey@PLT
	cmp	DWORD PTR ERROR_SUCCESS[rip], eax
	mov	esi, eax
	je	.L14
	lea	rdi, .LC10[rip]
	xor	eax, eax
	call	TRACE@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L26:
	mov	ecx, DWORD PTR REG_SZ[rip]
	mov	edi, DWORD PTR 16[rsp]
	xor	edx, edx
	mov	rsi, rbx
	mov	r9d, 10
	lea	r8, .LC3[rip]
	call	RegSetValueExA@PLT
	cmp	DWORD PTR ERROR_SUCCESS[rip], eax
	mov	esi, eax
	je	.L7
	mov	rdx, rbx
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	TRACE@PLT
	mov	r12d, DWORD PTR FALSE[rip]
	jmp	.L7
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ODBC_ReplicateODBCInstToRegistry, .-ODBC_ReplicateODBCInstToRegistry
	.comm	TRUE,4,4
	.comm	SQL_SUCCESS_WITH_INFO,8,8
	.comm	SQL_SUCCESS,8,8
	.comm	SQL_NO_DATA,8,8
	.comm	SQL_FETCH_NEXT,4,4
	.comm	SQL_FETCH_FIRST,4,4
	.comm	REG_SZ,4,4
	.comm	REG_OPTION_NON_VOLATILE,4,4
	.comm	KEY_ALL_ACCESS,4,4
	.comm	HKEY_LOCAL_MACHINE,4,4
	.comm	FALSE,4,4
	.comm	ERROR_SUCCESS,4,4
	.comm	ERROR_FILE_NOT_FOUND,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_proxyodbc.c_ODBC_ReplicateODBCInstToRegistry.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Driver settings are not currently replicated to the"
	.ascii	" registry\012\000"
	.align	2
.LC1:
	.ascii	"Software\\ODBC\\ODBCINST.INI\000"
	.align	2
.LC2:
	.ascii	"ODBC Drivers\000"
	.align	2
.LC3:
	.ascii	"Installed\000"
	.align	2
.LC4:
	.ascii	"Error %d replicating driver %s\012\000"
	.align	2
.LC5:
	.ascii	"Error %d checking for %s in drivers\012\000"
	.align	2
.LC6:
	.ascii	"Error %d closing %s key\012\000"
	.align	2
.LC7:
	.ascii	"Error %d ensuring driver key %s\012\000"
	.align	2
.LC8:
	.ascii	"Unusually long driver name %s not replicated\012\000"
	.align	2
.LC9:
	.ascii	"Error %d enumerating drivers\012\000"
	.align	2
.LC10:
	.ascii	"Error %d closing hDrivers\012\000"
	.align	2
.LC11:
	.ascii	"Error %d opening HKLM\\S\\O\\OI\\Drivers\012\000"
	.align	2
.LC12:
	.ascii	"Error %d closing HKLM\\S\\O\\ODBCINST.INI\012\000"
	.align	2
.LC13:
	.ascii	"Error %d opening HKLM\\S\\O\\ODBCINST.INI\012\000"
	.align	2
.LC14:
	.ascii	"May not have replicated all ODBC drivers to the reg"
	.ascii	"istry\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ODBC_ReplicateODBCInstToRegistry, %function
ODBC_ReplicateODBCInstToRegistry:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, #0
	ldr	r3, .L28
	ldr	r7, .L28+4
	ldr	r9, .L28+8
	ldr	r10, .L28+12
	sub	sp, sp, #308
	mov	r4, r0
	ldr	r0, .L28+16
	ldr	r3, [r3]
	str	r3, [sp, #300]
	mov	r3,#0
	ldr	r6, [r7]
	bl	TRACE
	ldr	r2, [r9]
	ldr	r3, [r10]
	ldr	r0, .L28+20
	str	r2, [sp, #4]
	str	r3, [sp]
	add	r1, sp, #28
	str	r8, [sp, #16]
	str	r8, [sp, #8]
	mov	r3, r8
	ldr	r0, [r0]
	mov	r2, r8
	str	r1, [sp, #12]
	ldr	r1, .L28+24
	bl	RegCreateKeyExA
	ldr	r5, .L28+28
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L21
	mov	r1, r0
	ldr	r0, .L28+32
	bl	TRACE
.L16:
	cmp	r6, #0
	beq	.L22
.L1:
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [sp, #300]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	add	sp, sp, #308
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	ldr	r1, [r9]
	ldr	r2, [r10]
	add	r3, sp, #32
	stmib	sp, {r1, r8}
	str	r2, [sp]
	str	r3, [sp, #12]
	mov	r2, r8
	mov	r3, r8
	ldr	r1, .L28+36
	ldr	r0, [sp, #28]
	str	r8, [sp, #16]
	bl	RegCreateKeyExA
	ldr	r3, [r5]
	cmp	r3, r0
	bne	.L3
	ldr	r2, .L28+40
	ldr	r3, .L28+44
	ldr	r6, [r2]
	ldr	r8, [r3]
	ldr	fp, .L28+48
.L4:
	mov	r3, #0
	add	r2, sp, #36
	str	r2, [sp]
	str	r3, [sp, #12]
	str	r3, [sp, #8]
	str	r3, [sp, #4]
	mov	r1, r8
	mov	r3, #256
	mov	r0, r4
	add	r2, sp, #44
	bl	ODBC32_SQLDrivers
	ldr	r3, [fp]
	cmp	r3, r0
	beq	.L11
	ldr	r3, .L28+52
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L24
.L11:
	ldr	r3, .L28+56
	add	r0, sp, #44
	ldr	r8, [r3]
	bl	lstrlenA
	ldr	r3, [sp, #36]
	cmp	r0, r3
	beq	.L25
	ldr	r0, .L28+60
	add	r1, sp, #44
	bl	WARN
	ldr	r6, [r7]
	b	.L4
.L22:
	ldr	r0, .L28+64
	bl	WARN
	b	.L1
.L3:
	mov	r1, r0
	ldr	r0, .L28+68
	bl	TRACE
.L14:
	ldr	r0, [sp, #28]
	bl	RegCloseKey
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L16
	mov	r1, r0
	ldr	r0, .L28+72
	bl	TRACE
	b	.L16
.L25:
	mov	r2, #0
	ldr	r0, [sp, #32]
	mov	r3, r2
	str	r2, [sp, #4]
	str	r2, [sp]
	add	r1, sp, #44
	bl	RegQueryValueExA
	ldr	r3, .L28+76
	mov	r2, #0
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L26
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L7
	mov	r1, r0
	add	r2, sp, #44
	ldr	r0, .L28+80
	bl	TRACE
	ldr	r6, [r7]
.L7:
	mov	r3, #0
	ldr	r0, [r10]
	ldr	ip, [r9]
	add	r1, sp, #40
	mov	r2, r3
	stm	sp, {r0, ip}
	str	r3, [sp, #16]
	str	r3, [sp, #8]
	str	r1, [sp, #12]
	ldr	r0, [sp, #28]
	add	r1, sp, #44
	bl	RegCreateKeyExA
	ldr	r3, [r5]
	mov	r1, r0
	cmp	r3, r0
	beq	.L27
	ldr	r0, .L28+84
	add	r2, sp, #44
	bl	TRACE
	ldr	r6, [r7]
	b	.L4
.L27:
	ldr	r0, [sp, #40]
	bl	RegCloseKey
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L4
	mov	r1, r0
	add	r2, sp, #44
	ldr	r0, .L28+88
	bl	TRACE
	b	.L4
.L24:
	ldr	r3, .L28+92
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L12
	mov	r1, r0
	ldr	r0, .L28+96
	bl	TRACE
	ldr	r6, [r7]
.L12:
	ldr	r0, [sp, #32]
	bl	RegCloseKey
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L14
	mov	r1, r0
	ldr	r0, .L28+100
	bl	TRACE
	b	.L14
.L26:
	mov	r0, #10
	ldr	r1, .L28+104
	ldr	r3, .L28+108
	str	r0, [sp, #4]
	ldr	r3, [r3]
	ldr	r0, [sp, #32]
	str	r1, [sp]
	add	r1, sp, #44
	bl	RegSetValueExA
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L7
	mov	r1, r0
	add	r2, sp, #44
	ldr	r0, .L28+112
	bl	TRACE
	ldr	r6, [r7]
	b	.L7
.L23:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	.LC15
	.word	FALSE
	.word	KEY_ALL_ACCESS
	.word	REG_OPTION_NON_VOLATILE
	.word	.LC0
	.word	HKEY_LOCAL_MACHINE
	.word	.LC1
	.word	ERROR_SUCCESS
	.word	.LC13
	.word	.LC2
	.word	TRUE
	.word	SQL_FETCH_FIRST
	.word	SQL_SUCCESS
	.word	SQL_SUCCESS_WITH_INFO
	.word	SQL_FETCH_NEXT
	.word	.LC8
	.word	.LC14
	.word	.LC11
	.word	.LC12
	.word	ERROR_FILE_NOT_FOUND
	.word	.LC5
	.word	.LC7
	.word	.LC6
	.word	SQL_NO_DATA
	.word	.LC9
	.word	.LC10
	.word	.LC3
	.word	REG_SZ
	.word	.LC4
	.size	ODBC_ReplicateODBCInstToRegistry, .-ODBC_ReplicateODBCInstToRegistry
	.comm	TRUE,4,4
	.comm	SQL_SUCCESS_WITH_INFO,4,4
	.comm	SQL_SUCCESS,4,4
	.comm	SQL_NO_DATA,4,4
	.comm	SQL_FETCH_NEXT,4,4
	.comm	SQL_FETCH_FIRST,4,4
	.comm	REG_SZ,4,4
	.comm	REG_OPTION_NON_VOLATILE,4,4
	.comm	KEY_ALL_ACCESS,4,4
	.comm	HKEY_LOCAL_MACHINE,4,4
	.comm	FALSE,4,4
	.comm	ERROR_SUCCESS,4,4
	.comm	ERROR_FILE_NOT_FOUND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
