	.file	"extr_database.c_ScmControlService.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ScmControlService() called\n"
.LC1:
	.string	"WriteFile() returned FALSE\n"
.LC2:
	.string	"dwError: ERROR_IO_PENDING\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"WaitForSingleObject() returned %lu\n"
	.align 8
.LC4:
	.string	"CancelIo() failed (Error: %lu)\n"
	.align 8
.LC5:
	.string	"GetOverlappedResult() failed (Error %lu)\n"
	.align 8
.LC6:
	.string	"WriteFile() failed (Error %lu)\n"
	.section	.rodata.str1.1
.LC7:
	.string	"ReadFile() returned FALSE\n"
	.section	.rodata.str1.8
	.align 8
.LC8:
	.string	"ReadFile() failed (Error %lu)\n"
	.section	.rodata.str1.1
.LC9:
	.string	"ScmControlService() done\n"
	.text
	.p2align 4
	.globl	ScmControlService
	.type	ScmControlService, @function
ScmControlService:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pxor	xmm0, xmm0
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	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	rbp, rdi
	lea	rdi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	r13, QWORD PTR ERROR_SUCCESS[rip]
	mov	QWORD PTR 8[rsp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	movaps	XMMWORD PTR 48[rsp], xmm0
	mov	QWORD PTR 32[rsp], 0
	mov	QWORD PTR 40[rsp], 0
	call	DPRINT@PLT
	lea	rdi, ControlServiceCriticalSection[rip]
	call	EnterCriticalSection@PLT
	mov	rdi, r14
	call	wcslen@PLT
	mov	r12d, DWORD PTR HEAP_ZERO_MEMORY[rip]
	add	eax, 1
	cdqe
	lea	r15, 4[0+rax*4]
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, r15
	mov	esi, r12d
	mov	edi, eax
	call	HeapAlloc@PLT
	test	rax, rax
	je	.L20
	mov	r12, rax
	mov	QWORD PTR 40[rax], r15
	mov	rax, QWORD PTR 8[rsp]
	mov	rsi, r14
	mov	DWORD PTR 24[r12], ebx
	lea	rdi, 4[r12]
	lea	r14, 48[rsp]
	mov	QWORD PTR 32[r12], rax
	lea	rbx, 32[rsp]
	mov	DWORD PTR [r12], 4
	call	wcscpy@PLT
	mov	r8, r14
	mov	rcx, rbx
	mov	rdx, r15
	mov	QWORD PTR 16[r12], 0
	mov	rsi, r12
	mov	rdi, rbp
	mov	QWORD PTR 8[r12], 0
	call	WriteFile@PLT
	cmp	QWORD PTR FALSE[rip], rax
	je	.L21
.L4:
	lea	r15, 40[rsp]
	lea	rsi, 24[rsp]
	mov	r8, r14
	mov	rdi, rbp
	mov	rcx, r15
	mov	edx, 8
	mov	QWORD PTR 48[rsp], 0
	call	ReadFile@PLT
	cmp	QWORD PTR FALSE[rip], rax
	je	.L22
.L8:
	xor	eax, eax
	call	GetProcessHeap@PLT
	xor	esi, esi
	mov	rdx, r12
	mov	edi, eax
	call	HeapFree@PLT
	cmp	QWORD PTR 40[rsp], 8
	jne	.L12
	mov	r13, QWORD PTR 24[rsp]
.L12:
	lea	rdi, ControlServiceCriticalSection[rip]
	call	LeaveCriticalSection@PLT
	lea	rdi, .LC9[rip]
	xor	eax, eax
	call	DPRINT@PLT
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r13
	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
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	DPRINT@PLT
	xor	eax, eax
	call	GetLastError@PLT
	cmp	QWORD PTR ERROR_IO_PENDING[rip], rax
	mov	r13, rax
	jne	.L5
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	DPRINT@PLT
	mov	esi, DWORD PTR PipeTimeout[rip]
	mov	rdi, rbp
	call	WaitForSingleObject@PLT
	lea	rdi, .LC3[rip]
	mov	r13, rax
	mov	rsi, rax
	xor	eax, eax
	call	DPRINT@PLT
	cmp	QWORD PTR WAIT_TIMEOUT[rip], r13
	je	.L18
	cmp	QWORD PTR WAIT_OBJECT_0[rip], r13
	jne	.L4
	mov	ecx, DWORD PTR TRUE[rip]
	mov	rdx, rbx
	mov	rsi, r14
	mov	rdi, rbp
	call	GetOverlappedResult@PLT
	cmp	QWORD PTR FALSE[rip], rax
	jne	.L4
.L15:
	xor	eax, eax
	call	GetLastError@PLT
	lea	rdi, .LC5[rip]
	mov	rsi, rax
	mov	r13, rax
	call	DPRINT1@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	call	DPRINT1@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L20:
	lea	rdi, ControlServiceCriticalSection[rip]
	call	LeaveCriticalSection@PLT
	mov	r13, QWORD PTR ERROR_NOT_ENOUGH_MEMORY[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rdi, .LC7[rip]
	xor	eax, eax
	call	DPRINT@PLT
	xor	eax, eax
	call	GetLastError@PLT
	cmp	QWORD PTR ERROR_IO_PENDING[rip], rax
	mov	r13, rax
	jne	.L9
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	DPRINT@PLT
	mov	esi, DWORD PTR PipeTimeout[rip]
	mov	rdi, rbp
	call	WaitForSingleObject@PLT
	lea	rdi, .LC3[rip]
	mov	r13, rax
	mov	rsi, rax
	xor	eax, eax
	call	DPRINT@PLT
	cmp	QWORD PTR WAIT_TIMEOUT[rip], r13
	je	.L18
	cmp	QWORD PTR WAIT_OBJECT_0[rip], r13
	jne	.L8
	mov	ecx, DWORD PTR TRUE[rip]
	mov	rdx, r15
	mov	rsi, r14
	mov	rdi, rbp
	call	GetOverlappedResult@PLT
	cmp	QWORD PTR FALSE[rip], rax
	jne	.L8
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	call	DPRINT1@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, rbp
	call	CancelIo@PLT
	cmp	QWORD PTR FALSE[rip], rax
	je	.L24
.L11:
	mov	r13, QWORD PTR ERROR_SERVICE_REQUEST_TIMEOUT[rip]
	jmp	.L8
.L24:
	xor	eax, eax
	call	GetLastError@PLT
	lea	rdi, .LC4[rip]
	mov	rsi, rax
	call	DPRINT1@PLT
	jmp	.L11
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ScmControlService, .-ScmControlService
	.comm	WAIT_TIMEOUT,8,8
	.comm	WAIT_OBJECT_0,8,8
	.comm	TRUE,4,4
	.comm	PipeTimeout,4,4
	.comm	HEAP_ZERO_MEMORY,4,4
	.comm	FALSE,8,8
	.comm	ERROR_SUCCESS,8,8
	.comm	ERROR_SERVICE_REQUEST_TIMEOUT,8,8
	.comm	ERROR_NOT_ENOUGH_MEMORY,8,8
	.comm	ERROR_IO_PENDING,8,8
	.comm	ControlServiceCriticalSection,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_database.c_ScmControlService.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ScmControlService() called\012\000"
	.align	2
.LC1:
	.ascii	"WriteFile() returned FALSE\012\000"
	.align	2
.LC2:
	.ascii	"dwError: ERROR_IO_PENDING\012\000"
	.align	2
.LC3:
	.ascii	"WaitForSingleObject() returned %lu\012\000"
	.align	2
.LC4:
	.ascii	"CancelIo() failed (Error: %lu)\012\000"
	.align	2
.LC5:
	.ascii	"GetOverlappedResult() failed (Error %lu)\012\000"
	.align	2
.LC6:
	.ascii	"WriteFile() failed (Error %lu)\012\000"
	.align	2
.LC7:
	.ascii	"ReadFile() returned FALSE\012\000"
	.align	2
.LC8:
	.ascii	"ReadFile() failed (Error %lu)\012\000"
	.align	2
.LC9:
	.ascii	"ScmControlService() done\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ScmControlService
	.syntax unified
	.arm
	.fpu softvfp
	.type	ScmControlService, %function
ScmControlService:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, #0
	mov	fp, r1
	ldr	ip, .L25
	mov	r10, r3
	ldr	r3, .L25+4
	sub	sp, sp, #36
	mov	r8, r0
	ldr	r0, .L25+8
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r9, r2
	ldr	r7, [ip]
	str	r6, [sp, #12]
	str	r6, [sp, #16]
	str	r6, [sp, #20]
	str	r6, [sp, #24]
	bl	DPRINT
	ldr	r0, .L25+12
	bl	EnterCriticalSection
	mov	r0, fp
	bl	wcslen
	lsl	r5, r0, #2
	bl	GetProcessHeap
	ldr	r3, .L25+16
	add	r5, r5, #8
	mov	r2, r5
	ldr	r1, [r3]
	bl	HeapAlloc
	subs	r4, r0, #0
	beq	.L20
	mov	r3, #4
	mov	r0, r4
	str	r5, [r4, #20]
	mov	r1, fp
	str	r10, [r4, #16]
	str	r9, [r4, #12]
	str	r3, [r0], #4
	bl	wcscpy
	add	r3, sp, #20
	mov	r2, r5
	str	r6, [r4, #8]
	str	r6, [r4, #4]
	mov	r1, r4
	str	r3, [sp]
	mov	r0, r8
	add	r3, sp, #12
	bl	WriteFile
	ldr	r5, .L25+20
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L21
.L4:
	mov	ip, #0
	add	r3, sp, #20
	str	r3, [sp]
	mov	r2, #4
	add	r3, sp, #16
	mov	r0, r8
	add	r1, sp, #8
	str	ip, [sp, #20]
	bl	ReadFile
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L22
.L8:
	bl	GetProcessHeap
	mov	r2, r4
	mov	r1, #0
	bl	HeapFree
	ldr	r3, [sp, #16]
	ldr	r0, .L25+12
	cmp	r3, #4
	ldreq	r7, [sp, #8]
	bl	LeaveCriticalSection
	ldr	r0, .L25+24
	bl	DPRINT
.L1:
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	mov	r0, r7
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	ldr	r0, .L25+28
	bl	DPRINT
	bl	GetLastError
	ldr	r3, .L25+32
	mov	r7, r0
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L5
	ldr	r0, .L25+36
	bl	DPRINT
	ldr	r3, .L25+40
	mov	r0, r8
	ldr	r1, [r3]
	bl	WaitForSingleObject
	mov	r7, r0
	ldr	r0, .L25+44
	mov	r1, r7
	bl	DPRINT
	ldr	r3, .L25+48
	ldr	r3, [r3]
	cmp	r3, r7
	beq	.L18
	ldr	r3, .L25+52
	ldr	r3, [r3]
	cmp	r3, r7
	bne	.L4
	ldr	r3, .L25+56
	mov	r0, r8
	ldr	r3, [r3]
	add	r2, sp, #12
	add	r1, sp, #20
	bl	GetOverlappedResult
	ldr	r3, [r5]
	cmp	r3, r0
	bne	.L4
.L15:
	bl	GetLastError
	mov	r7, r0
	ldr	r0, .L25+60
	mov	r1, r7
	bl	DPRINT1
	b	.L8
.L5:
	mov	r1, r0
	ldr	r0, .L25+64
	bl	DPRINT1
	b	.L8
.L20:
	ldr	r0, .L25+12
	bl	LeaveCriticalSection
	ldr	r3, .L25+68
	ldr	r7, [r3]
	b	.L1
.L22:
	ldr	r0, .L25+72
	bl	DPRINT
	bl	GetLastError
	ldr	r3, .L25+32
	mov	r7, r0
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L9
	ldr	r0, .L25+36
	bl	DPRINT
	ldr	r3, .L25+40
	mov	r0, r8
	ldr	r1, [r3]
	bl	WaitForSingleObject
	mov	r7, r0
	ldr	r0, .L25+44
	mov	r1, r7
	bl	DPRINT
	ldr	r3, .L25+48
	ldr	r3, [r3]
	cmp	r3, r7
	beq	.L18
	ldr	r3, .L25+52
	ldr	r3, [r3]
	cmp	r3, r7
	bne	.L8
	ldr	r3, .L25+56
	mov	r0, r8
	ldr	r3, [r3]
	add	r2, sp, #16
	add	r1, sp, #20
	bl	GetOverlappedResult
	ldr	r3, [r5]
	cmp	r3, r0
	bne	.L8
	b	.L15
.L9:
	mov	r1, r0
	ldr	r0, .L25+76
	bl	DPRINT1
	b	.L8
.L18:
	mov	r0, r8
	bl	CancelIo
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L24
.L11:
	ldr	r3, .L25+80
	ldr	r7, [r3]
	b	.L8
.L24:
	bl	GetLastError
	mov	r1, r0
	ldr	r0, .L25+84
	bl	DPRINT1
	b	.L11
.L23:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	ERROR_SUCCESS
	.word	.LC10
	.word	.LC0
	.word	ControlServiceCriticalSection
	.word	HEAP_ZERO_MEMORY
	.word	FALSE
	.word	.LC9
	.word	.LC1
	.word	ERROR_IO_PENDING
	.word	.LC2
	.word	PipeTimeout
	.word	.LC3
	.word	WAIT_TIMEOUT
	.word	WAIT_OBJECT_0
	.word	TRUE
	.word	.LC5
	.word	.LC6
	.word	ERROR_NOT_ENOUGH_MEMORY
	.word	.LC7
	.word	.LC8
	.word	ERROR_SERVICE_REQUEST_TIMEOUT
	.word	.LC4
	.size	ScmControlService, .-ScmControlService
	.comm	WAIT_TIMEOUT,4,4
	.comm	WAIT_OBJECT_0,4,4
	.comm	TRUE,4,4
	.comm	PipeTimeout,4,4
	.comm	HEAP_ZERO_MEMORY,4,4
	.comm	FALSE,4,4
	.comm	ERROR_SUCCESS,4,4
	.comm	ERROR_SERVICE_REQUEST_TIMEOUT,4,4
	.comm	ERROR_NOT_ENOUGH_MEMORY,4,4
	.comm	ERROR_IO_PENDING,4,4
	.comm	ControlServiceCriticalSection,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
