	.file	"extr_database.c_ScmGenerateServiceTag.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ScmGenerateServiceTag
	.type	ScmGenerateServiceTag, @function
ScmGenerateServiceTag:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR ServiceTag[rip]
	cmp	eax, -1
	je	.L6
	mov	edx, DWORD PTR 4[rdi]
	test	DWORD PTR SERVICE_WIN32[rip], edx
	je	.L7
	add	eax, 1
	mov	DWORD PTR ServiceTag[rip], eax
	mov	DWORD PTR [rdi], eax
	mov	eax, DWORD PTR ERROR_SUCCESS[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR ERROR_INVALID_PARAMETER[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR ERROR_INVALID_DATA[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	ScmGenerateServiceTag, .-ScmGenerateServiceTag
	.comm	ServiceTag,4,4
	.comm	SERVICE_WIN32,4,4
	.comm	ERROR_SUCCESS,4,4
	.comm	ERROR_INVALID_PARAMETER,4,4
	.comm	ERROR_INVALID_DATA,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_ScmGenerateServiceTag.c"
	.text
	.align	2
	.global	ScmGenerateServiceTag
	.syntax unified
	.arm
	.fpu softvfp
	.type	ScmGenerateServiceTag, %function
ScmGenerateServiceTag:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r1, .L7
	mov	r3, r0
	ldr	r2, [r1]
	cmn	r2, #1
	beq	.L6
	ldr	r0, .L7+4
	ldr	ip, [r3, #4]
	ldr	r0, [r0]
	tst	ip, r0
	ldreq	r3, .L7+8
	addne	r2, r2, #1
	ldreq	r0, [r3]
	ldrne	r0, .L7+12
	strne	r2, [r1]
	ldrne	r0, [r0]
	strne	r2, [r3]
	bx	lr
.L6:
	ldr	r3, .L7+16
	ldr	r0, [r3]
	bx	lr
.L8:
	.align	2
.L7:
	.word	ServiceTag
	.word	SERVICE_WIN32
	.word	ERROR_INVALID_PARAMETER
	.word	ERROR_SUCCESS
	.word	ERROR_INVALID_DATA
	.size	ScmGenerateServiceTag, .-ScmGenerateServiceTag
	.comm	ServiceTag,4,4
	.comm	SERVICE_WIN32,4,4
	.comm	ERROR_SUCCESS,4,4
	.comm	ERROR_INVALID_PARAMETER,4,4
	.comm	ERROR_INVALID_DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
