	.file	"extr_spy.c_spy_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Software\\Wine\\Debug"
.LC1:
	.string	"SpyInclude"
.LC2:
	.string	"SpyExclude"
.LC3:
	.string	"INCLUDEALL"
.LC4:
	.string	"Include=%s\n"
.LC5:
	.string	"SpyExcludeDWP"
.LC6:
	.string	"Exclude=%s\n"
.LC7:
	.string	"EXCLUDEALL"
	.text
	.p2align 4
	.type	spy_init, @function
spy_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 1056
	.cfi_def_cfa_offset 1104
	mov	edi, DWORD PTR message[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 1048[rsp], rax
	xor	eax, eax
	call	TRACE_ON@PLT
	test	eax, eax
	je	.L40
	mov	rax, QWORD PTR TLS_OUT_OF_INDEXES[rip]
	cmp	QWORD PTR indent_tls_index[rip], rax
	je	.L41
.L5:
	cmp	QWORD PTR spy_exclude[rip], 0
	je	.L7
.L21:
	movzx	eax, BYTE PTR TRUE[rip]
.L1:
	mov	rcx, QWORD PTR 1048[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L42
	add	rsp, 1056
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	eax, DWORD PTR SPY_MAX_MSGNUM[rip]
	mov	ebp, DWORD PTR HEAP_ZERO_MEMORY[rip]
	lea	r12d, 2[rax]
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	edx, r12d
	mov	esi, ebp
	mov	edi, eax
	call	HeapAlloc@PLT
	mov	edi, DWORD PTR HKEY_CURRENT_USER[rip]
	lea	rdx, 4[rsp]
	lea	rsi, .LC0[rip]
	mov	r12, rax
	call	RegOpenKeyA@PLT
	test	eax, eax
	je	.L43
.L8:
	xor	edx, edx
	mov	rsi, r12
	lea	rdi, spy_exclude[rip]
	call	InterlockedCompareExchangePointer@PLT
	test	rax, rax
	je	.L21
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, r12
	xor	esi, esi
	mov	edi, eax
	call	HeapFree@PLT
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L40:
	movzx	eax, BYTE PTR FALSE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L41:
	xor	eax, eax
	call	TlsAlloc@PLT
	mov	rdx, QWORD PTR TLS_OUT_OF_INDEXES[rip]
	lea	rdi, indent_tls_index[rip]
	mov	esi, eax
	mov	ebp, eax
	call	InterlockedCompareExchange@PLT
	cmp	rax, QWORD PTR TLS_OUT_OF_INDEXES[rip]
	je	.L5
	mov	edi, ebp
	call	TlsFree@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L43:
	lea	rbp, 16[rsp]
	lea	r14, 12[rsp]
	mov	edi, DWORD PTR 4[rsp]
	xor	edx, edx
	lea	r13, 8[rsp]
	mov	r9, r14
	mov	r8d, ebp
	mov	BYTE PTR 16[rsp], 0
	mov	rcx, r13
	lea	rsi, .LC1[rip]
	mov	DWORD PTR 12[rsp], 1024
	call	RegQueryValueExA@PLT
	test	eax, eax
	je	.L9
.L12:
	mov	edi, DWORD PTR 4[rsp]
	xor	edx, edx
	mov	r9, r14
	mov	r8d, ebp
	mov	rcx, r13
	lea	rsi, .LC2[rip]
	mov	BYTE PTR 16[rsp], 0
	mov	DWORD PTR 12[rsp], 1024
	call	RegQueryValueExA@PLT
	test	eax, eax
	je	.L44
.L11:
	mov	edi, DWORD PTR 4[rsp]
	xor	edx, edx
	mov	r9, r14
	mov	r8d, ebp
	mov	rcx, r13
	lea	rsi, .LC5[rip]
	mov	DWORD PTR 12[rsp], 1024
	call	RegQueryValueExA@PLT
	test	eax, eax
	je	.L45
.L16:
	mov	edi, DWORD PTR 4[rsp]
	call	RegCloseKey@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	strcmp@PLT
	test	rax, rax
	je	.L12
	mov	rsi, rbp
	lea	rdi, .LC4[rip]
	call	TRACE@PLT
	mov	ecx, DWORD PTR SPY_MAX_MSGNUM[rip]
	test	ecx, ecx
	js	.L12
	xor	ebx, ebx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L13:
	mov	BYTE PTR [r12+rbx], al
	add	rbx, 1
	cmp	DWORD PTR SPY_MAX_MSGNUM[rip], ebx
	jl	.L12
.L14:
	mov	rax, QWORD PTR MessageTypeNames[rip]
	mov	rsi, QWORD PTR [rax+rbx*8]
	xor	eax, eax
	test	rsi, rsi
	je	.L13
	mov	rdi, rbp
	call	strstr@PLT
	test	rax, rax
	sete	al
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L45:
	movsx	rax, DWORD PTR SPY_MAX_MSGNUM[rip]
	mov	rdi, rbp
	lea	rbx, 1[r12+rax]
	call	atoi@PLT
	mov	BYTE PTR [rbx], al
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L44:
	mov	rsi, rbp
	lea	rdi, .LC6[rip]
	call	TRACE@PLT
	lea	rsi, .LC7[rip]
	mov	rdi, rbp
	call	strcmp@PLT
	test	rax, rax
	je	.L17
	mov	edx, DWORD PTR SPY_MAX_MSGNUM[rip]
	xor	ebx, ebx
	test	edx, edx
	jns	.L18
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L20:
	mov	BYTE PTR [r12+rbx], al
	add	rbx, 1
	cmp	DWORD PTR SPY_MAX_MSGNUM[rip], ebx
	jl	.L11
.L18:
	mov	rax, QWORD PTR MessageTypeNames[rip]
	mov	rsi, QWORD PTR [rax+rbx*8]
	xor	eax, eax
	test	rsi, rsi
	je	.L20
	mov	rdi, rbp
	call	strstr@PLT
	test	rax, rax
	setne	al
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L17:
	mov	eax, DWORD PTR SPY_MAX_MSGNUM[rip]
	test	eax, eax
	js	.L11
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L19:
	movzx	edx, BYTE PTR TRUE[rip]
	mov	BYTE PTR [r12+rax], dl
	add	rax, 1
	cmp	DWORD PTR SPY_MAX_MSGNUM[rip], eax
	jge	.L19
	jmp	.L11
.L42:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	spy_init, .-spy_init
	.comm	spy_exclude,8,8
	.comm	message,4,4
	.comm	indent_tls_index,8,8
	.comm	TRUE,1,1
	.comm	TLS_OUT_OF_INDEXES,8,8
	.comm	SPY_MAX_MSGNUM,4,4
	.comm	MessageTypeNames,8,8
	.comm	HKEY_CURRENT_USER,4,4
	.comm	HEAP_ZERO_MEMORY,4,4
	.comm	FALSE,1,1
	.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_spy.c_spy_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Software\\Wine\\Debug\000"
	.align	2
.LC1:
	.ascii	"SpyInclude\000"
	.align	2
.LC2:
	.ascii	"SpyExclude\000"
	.align	2
.LC3:
	.ascii	"INCLUDEALL\000"
	.align	2
.LC4:
	.ascii	"Include=%s\012\000"
	.align	2
.LC5:
	.ascii	"SpyExcludeDWP\000"
	.align	2
.LC6:
	.ascii	"Exclude=%s\012\000"
	.align	2
.LC7:
	.ascii	"EXCLUDEALL\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	spy_init, %function
spy_init:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L49
	ldr	r2, .L49+4
	sub	sp, sp, #1040
	sub	sp, sp, #8
	ldr	r0, [r3]
	ldr	r2, [r2]
	str	r2, [sp, #1044]
	mov	r2,#0
	bl	TRACE_ON
	cmp	r0, #0
	beq	.L43
	ldr	r5, .L49+8
	ldr	r4, .L49+12
	ldr	r2, [r5]
	ldr	r3, [r4]
	cmp	r2, r3
	beq	.L44
.L5:
	ldr	r3, .L49+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L49+20
	ldrb	r0, [r3]	@ zero_extendqisi2
.L3:
	ldr	r3, .L49+4
	ldr	r2, [r3]
	ldr	r3, [sp, #1044]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L45
	add	sp, sp, #1040
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	ldr	r5, .L49+24
	bl	GetProcessHeap
	ldr	r3, .L49+28
	ldr	r2, [r5]
	ldr	r1, [r3]
	add	r2, r2, #2
	bl	HeapAlloc
	ldr	r3, .L49+32
	add	r2, sp, #8
	mov	r4, r0
	ldr	r1, .L49+36
	ldr	r0, [r3]
	bl	RegOpenKeyA
	subs	r2, r0, #0
	beq	.L37
	ldr	r6, .L49+20
.L8:
	mov	r2, #0
	mov	r1, r4
	ldr	r0, .L49+16
	bl	InterlockedCompareExchangePointer
	cmp	r0, #0
	bne	.L46
.L22:
	ldrb	r0, [r6]	@ zero_extendqisi2
	b	.L3
.L43:
	ldr	r3, .L49+40
	ldrb	r0, [r3]	@ zero_extendqisi2
	b	.L3
.L44:
	bl	TlsAlloc
	mov	r6, r0
	ldr	r2, [r4]
	mov	r0, r5
	mov	r1, r6
	bl	InterlockedCompareExchange
	ldr	r3, [r4]
	cmp	r0, r3
	beq	.L5
	mov	r0, r6
	bl	TlsFree
	b	.L5
.L46:
	bl	GetProcessHeap
	mov	r2, r4
	mov	r1, #0
	bl	HeapFree
	b	.L22
.L37:
	mov	ip, #1024
	add	r3, sp, #24
	sub	r7, r3, #8
	add	r8, sp, #20
	ldr	r1, .L49+44
	ldr	r0, [sp, #8]
	str	r8, [sp]
	str	r7, [sp, #4]
	add	r3, sp, #12
	strb	r2, [sp, #20]
	str	ip, [sp, #16]
	bl	RegQueryValueExA
	subs	r6, r0, #0
	bne	.L12
	mov	r0, r8
	ldr	r1, .L49+48
	bl	strcmp
	cmp	r0, #0
	bne	.L47
.L12:
	mov	r2, #0
	mov	ip, #1024
	ldr	r1, .L49+52
	ldr	r0, [sp, #8]
	str	r7, [sp, #4]
	str	r8, [sp]
	add	r3, sp, #12
	strb	r2, [sp, #20]
	str	ip, [sp, #16]
	bl	RegQueryValueExA
	subs	r6, r0, #0
	beq	.L10
.L41:
	ldr	r6, .L49+20
.L11:
	mov	ip, #1024
	mov	r2, #0
	ldr	r1, .L49+56
	ldr	r0, [sp, #8]
	str	r7, [sp, #4]
	str	r8, [sp]
	add	r3, sp, #12
	str	ip, [sp, #16]
	bl	RegQueryValueExA
	cmp	r0, #0
	beq	.L48
.L16:
	ldr	r0, [sp, #8]
	bl	RegCloseKey
	b	.L8
.L47:
	mov	r1, r8
	ldr	r0, .L49+60
	bl	TRACE
	ldr	r3, [r5]
	cmp	r3, #0
	blt	.L12
	ldr	r9, .L49+64
	sub	r10, r4, #1
	b	.L14
.L13:
	strb	r1, [r10, #1]!
	ldr	r3, [r5]
	add	r6, r6, #1
	cmp	r3, r6
	blt	.L12
.L14:
	ldr	r3, [r9]
	ldr	r1, [r3, r6, lsl #2]
	cmp	r1, #0
	beq	.L13
	mov	r0, r8
	bl	strstr
	clz	r1, r0
	lsr	r1, r1, #5
	b	.L13
.L48:
	mov	r0, r8
	ldr	r5, [r5]
	bl	atoi
	add	r5, r5, #1
	strb	r0, [r4, r5]
	b	.L16
.L10:
	mov	r1, r8
	ldr	r0, .L49+68
	bl	TRACE
	mov	r0, r8
	ldr	r1, .L49+72
	bl	strcmp
	cmp	r0, #0
	ldr	r3, [r5]
	beq	.L17
	cmp	r3, #0
	ldrge	r9, .L49+64
	subge	r10, r4, #1
	bge	.L21
	b	.L41
.L20:
	strb	r1, [r10, #1]!
	ldr	r3, [r5]
	add	r6, r6, #1
	cmp	r3, r6
	blt	.L41
.L21:
	ldr	r3, [r9]
	ldr	r1, [r3, r6, lsl #2]
	cmp	r1, #0
	beq	.L20
	mov	r0, r8
	bl	strstr
	subs	r1, r0, #0
	movne	r1, #1
	b	.L20
.L17:
	cmp	r3, #0
	ldrge	r6, .L49+20
	subge	r2, r4, #1
	blt	.L41
.L19:
	ldrb	r1, [r6]	@ zero_extendqisi2
	add	r3, r2, #2
	strb	r1, [r2, #1]!
	ldr	r1, [r5]
	sub	r3, r3, r4
	cmp	r1, r3
	bge	.L19
	b	.L11
.L45:
	bl	__stack_chk_fail
.L50:
	.align	2
.L49:
	.word	message
	.word	.LC8
	.word	indent_tls_index
	.word	TLS_OUT_OF_INDEXES
	.word	spy_exclude
	.word	TRUE
	.word	SPY_MAX_MSGNUM
	.word	HEAP_ZERO_MEMORY
	.word	HKEY_CURRENT_USER
	.word	.LC0
	.word	FALSE
	.word	.LC1
	.word	.LC3
	.word	.LC2
	.word	.LC5
	.word	.LC4
	.word	MessageTypeNames
	.word	.LC6
	.word	.LC7
	.size	spy_init, .-spy_init
	.comm	spy_exclude,4,4
	.comm	message,4,4
	.comm	indent_tls_index,4,4
	.comm	TRUE,1,1
	.comm	TLS_OUT_OF_INDEXES,4,4
	.comm	SPY_MAX_MSGNUM,4,4
	.comm	MessageTypeNames,4,4
	.comm	HKEY_CURRENT_USER,4,4
	.comm	HEAP_ZERO_MEMORY,4,4
	.comm	FALSE,1,1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
