	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CreateServiceListEntry
_CreateServiceListEntry:                ## @CreateServiceListEntry
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	$0, -40(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -64(%rbp)
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_DPRINT
	cmpl	$123, (%r15)
	jne	LBB0_2
## %bb.1:
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_39
LBB0_2:
	movq	$8, -56(%rbp)
	leaq	-96(%rbp), %r8
	leaq	l_.str.1(%rip), %rsi
	leaq	-56(%rbp), %r9
	movl	%r14d, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_RegQueryValueExW
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	cmpq	%rbx, %rax
	jne	LBB0_39
## %bb.3:
	movq	-96(%rbp), %rsi
	movq	_SERVICE_INTERACTIVE_PROCESS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	notq	%rcx
	andq	%rsi, %rcx
	movq	_SERVICE_WIN32_OWN_PROCESS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_7
## %bb.4:
	movq	_SERVICE_WIN32_SHARE_PROCESS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_7
## %bb.5:
	movq	_SERVICE_KERNEL_DRIVER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	je	LBB0_7
## %bb.6:
	movq	_SERVICE_FILE_SYSTEM_DRIVER@GOTPCREL(%rip), %rcx
	movq	%rax, %rbx
	cmpq	(%rcx), %rsi
	jne	LBB0_39
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT
	movq	$8, -56(%rbp)
	leaq	-88(%rbp), %r8
	leaq	l_.str.3(%rip), %rsi
	leaq	-56(%rbp), %r9
	movl	%r14d, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_RegQueryValueExW
	movq	(%r12), %rbx
	cmpq	%rbx, %rax
	jne	LBB0_39
## %bb.8:
	movq	-88(%rbp), %rsi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT
	movq	$8, -56(%rbp)
	leaq	-80(%rbp), %r8
	leaq	l_.str.5(%rip), %rsi
	leaq	-56(%rbp), %r9
	movl	%r14d, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_RegQueryValueExW
	movq	(%r12), %rbx
	cmpq	%rbx, %rax
	jne	LBB0_39
## %bb.9:
	movq	-80(%rbp), %rsi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT
	leaq	-72(%rbp), %r8
	leaq	l_.str.7(%rip), %rsi
	leaq	-56(%rbp), %r9
	movl	%r14d, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_RegQueryValueExW
	cmpq	(%r12), %rax
	jne	LBB0_11
## %bb.10:
	movq	-72(%rbp), %rsi
	jmp	LBB0_12
LBB0_11:
	movq	$0, -72(%rbp)
	xorl	%esi, %esi
LBB0_12:
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT
	leaq	l_.str.9(%rip), %rsi
	leaq	-64(%rbp), %rdx
	movl	%r14d, %edi
	callq	_ScmReadString
	cmpq	(%r12), %rax
	jne	LBB0_14
## %bb.13:
	movq	-64(%rbp), %rsi
	jmp	LBB0_15
LBB0_14:
	movq	$0, -64(%rbp)
	xorl	%esi, %esi
LBB0_15:
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT
	leaq	l_.str.11(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movl	%r14d, %edi
	callq	_ScmReadString
	cmpq	(%r12), %rax
	jne	LBB0_17
## %bb.16:
	movq	-48(%rbp), %rsi
	jmp	LBB0_18
LBB0_17:
	movq	$0, -48(%rbp)
	xorl	%esi, %esi
LBB0_18:
	leaq	L_.str.12(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT
	movq	-96(%rbp), %rdx
	movq	-88(%rbp), %rcx
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ScmCreateNewServiceRecord
	movq	%rax, %rbx
	cmpq	(%r12), %rax
	jne	LBB0_33
## %bb.19:
	movq	-80(%rbp), %rax
	movq	-40(%rbp), %rdi
	movq	%rax, 24(%rdi)
	movq	-72(%rbp), %rax
	movq	%rax, 32(%rdi)
	movq	-64(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.20:
	callq	_ScmSetServiceGroup
	movq	%rax, %rbx
	cmpq	(%r12), %rax
	jne	LBB0_33
LBB0_21:
	movq	-48(%rbp), %rcx
	movq	-40(%rbp), %rax
	testq	%rcx, %rcx
	je	LBB0_23
## %bb.22:
	movq	%rcx, 64(%rax)
	movq	$0, -48(%rbp)
LBB0_23:
	movl	56(%rax), %esi
	leaq	L_.str.13(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT
	movq	-40(%rbp), %rax
	movq	48(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_25
## %bb.24:
	movl	(%rcx), %esi
	leaq	L_.str.14(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT
	movq	-40(%rbp), %rax
LBB0_25:
	movl	40(%rax), %esi
	movl	16(%rax), %edx
	movq	32(%rax), %rcx
	movq	24(%rax), %r8
	leaq	L_.str.15(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT
	movl	%r14d, %edi
	callq	_ScmIsDeleteFlagSet
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-40(%rbp), %rsi
	movl	%eax, 20(%rsi)
	jmp	LBB0_28
LBB0_27:
	movq	-40(%rbp), %rdi
	callq	_ScmGenerateServiceTag
	movq	-40(%rbp), %rsi
LBB0_28:
	movq	_SERVICE_WIN32@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rsi)
	je	LBB0_33
## %bb.29:
	addq	$8, %rsi
	movl	%r14d, %edi
	callq	_ScmReadSecurityDescriptor
	movq	%rax, %rbx
	cmpq	(%r12), %rax
	jne	LBB0_33
## %bb.30:
	movq	-40(%rbp), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_33
## %bb.31:
	leaq	L_.str.16(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT
	movq	-40(%rbp), %rdi
	addq	$8, %rdi
	callq	_ScmCreateDefaultServiceSD
	movq	%rax, %rbx
	cmpq	(%r12), %rax
	jne	LBB0_33
## %bb.32:
	movq	-40(%rbp), %rax
	movq	8(%rax), %rsi
	movl	%r14d, %edi
	callq	_ScmWriteSecurityDescriptor
	movq	%rax, %rbx
LBB0_33:
	cmpq	$0, -64(%rbp)
	je	LBB0_35
## %bb.34:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	-64(%rbp), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
LBB0_35:
	cmpq	$0, -48(%rbp)
	je	LBB0_37
## %bb.36:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	-48(%rbp), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
LBB0_37:
	movq	-40(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_39
## %bb.38:
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_ASSERT
LBB0_39:
	movq	%rbx, %rax
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Service: '%S'\n"

	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.section	__TEXT,__const
	.p2align	2                               ## @.str.1
l_.str.1:
	.long	84                              ## 0x54
	.long	121                             ## 0x79
	.long	112                             ## 0x70
	.long	101                             ## 0x65
	.long	0                               ## 0x0

	.comm	_SERVICE_INTERACTIVE_PROCESS,8,3 ## @SERVICE_INTERACTIVE_PROCESS
	.comm	_SERVICE_WIN32_OWN_PROCESS,8,3  ## @SERVICE_WIN32_OWN_PROCESS
	.comm	_SERVICE_WIN32_SHARE_PROCESS,8,3 ## @SERVICE_WIN32_SHARE_PROCESS
	.comm	_SERVICE_KERNEL_DRIVER,8,3      ## @SERVICE_KERNEL_DRIVER
	.comm	_SERVICE_FILE_SYSTEM_DRIVER,8,3 ## @SERVICE_FILE_SYSTEM_DRIVER
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"Service type: %lx\n"

	.section	__TEXT,__const
	.p2align	2                               ## @.str.3
l_.str.3:
	.long	83                              ## 0x53
	.long	116                             ## 0x74
	.long	97                              ## 0x61
	.long	114                             ## 0x72
	.long	116                             ## 0x74
	.long	0                               ## 0x0

	.section	__TEXT,__cstring,cstring_literals
L_.str.4:                               ## @.str.4
	.asciz	"Start type: %lx\n"

	.section	__TEXT,__const
	.p2align	2                               ## @.str.5
l_.str.5:
	.long	69                              ## 0x45
	.long	114                             ## 0x72
	.long	114                             ## 0x72
	.long	111                             ## 0x6f
	.long	114                             ## 0x72
	.long	67                              ## 0x43
	.long	111                             ## 0x6f
	.long	110                             ## 0x6e
	.long	116                             ## 0x74
	.long	114                             ## 0x72
	.long	111                             ## 0x6f
	.long	108                             ## 0x6c
	.long	0                               ## 0x0

	.section	__TEXT,__cstring,cstring_literals
L_.str.6:                               ## @.str.6
	.asciz	"Error control: %lx\n"

	.section	__TEXT,__const
	.p2align	2                               ## @.str.7
l_.str.7:
	.long	84                              ## 0x54
	.long	97                              ## 0x61
	.long	103                             ## 0x67
	.long	0                               ## 0x0

	.section	__TEXT,__cstring,cstring_literals
L_.str.8:                               ## @.str.8
	.asciz	"Tag: %lx\n"

	.section	__TEXT,__const
	.p2align	2                               ## @.str.9
l_.str.9:
	.long	71                              ## 0x47
	.long	114                             ## 0x72
	.long	111                             ## 0x6f
	.long	117                             ## 0x75
	.long	112                             ## 0x70
	.long	0                               ## 0x0

	.section	__TEXT,__cstring,cstring_literals
L_.str.10:                              ## @.str.10
	.asciz	"Group: %S\n"

	.section	__TEXT,__const
	.p2align	2                               ## @.str.11
l_.str.11:
	.long	68                              ## 0x44
	.long	105                             ## 0x69
	.long	115                             ## 0x73
	.long	112                             ## 0x70
	.long	108                             ## 0x6c
	.long	97                              ## 0x61
	.long	121                             ## 0x79
	.long	78                              ## 0x4e
	.long	97                              ## 0x61
	.long	109                             ## 0x6d
	.long	101                             ## 0x65
	.long	0                               ## 0x0

	.section	__TEXT,__cstring,cstring_literals
L_.str.12:                              ## @.str.12
	.asciz	"Display name: %S\n"

L_.str.13:                              ## @.str.13
	.asciz	"ServiceName: '%S'\n"

L_.str.14:                              ## @.str.14
	.asciz	"Group: '%S'\n"

L_.str.15:                              ## @.str.15
	.asciz	"Start %lx  Type %lx  Tag %lx  ErrorControl %lx\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_SERVICE_WIN32,4,2              ## @SERVICE_WIN32
L_.str.16:                              ## @.str.16
	.asciz	"No security descriptor found! Assign default security descriptor!\n"

	.no_dead_strip	_CreateServiceListEntry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CreateServiceListEntry
_CreateServiceListEntry:                ; @CreateServiceListEntry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	stp	xzr, xzr, [x29, #-48]
	stur	xzr, [x29, #-56]
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINT
	ldr	w8, [x20]
Lloh2:
	adrp	x22, _ERROR_SUCCESS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ERROR_SUCCESS@GOTPAGEOFF]
	cmp	w8, #123
	b.ne	LBB0_2
; %bb.1:
	ldr	x21, [x22]
	b	LBB0_36
LBB0_2:
	mov	w8, #8
	str	x8, [sp, #64]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x4, sp, #56
	add	x5, sp, #64
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	bl	_RegQueryValueExW
	ldr	x21, [x22]
	cmp	x0, x21
	b.ne	LBB0_36
; %bb.3:
	ldr	x8, [sp, #56]
Lloh6:
	adrp	x9, _SERVICE_INTERACTIVE_PROCESS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SERVICE_INTERACTIVE_PROCESS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	bic	x9, x8, x9
Lloh9:
	adrp	x10, _SERVICE_WIN32_OWN_PROCESS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SERVICE_WIN32_OWN_PROCESS@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
Lloh12:
	adrp	x11, _SERVICE_WIN32_SHARE_PROCESS@GOTPAGE
Lloh13:
	ldr	x11, [x11, _SERVICE_WIN32_SHARE_PROCESS@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
Lloh15:
	adrp	x12, _SERVICE_KERNEL_DRIVER@GOTPAGE
Lloh16:
	ldr	x12, [x12, _SERVICE_KERNEL_DRIVER@GOTPAGEOFF]
Lloh17:
	ldr	x12, [x12]
Lloh18:
	adrp	x13, _SERVICE_FILE_SYSTEM_DRIVER@GOTPAGE
Lloh19:
	ldr	x13, [x13, _SERVICE_FILE_SYSTEM_DRIVER@GOTPAGEOFF]
Lloh20:
	ldr	x13, [x13]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	ccmp	x8, x12, #4, ne
	ccmp	x8, x13, #4, ne
	mov	x21, x0
	b.ne	LBB0_36
; %bb.4:
	str	x8, [sp]
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DPRINT
	mov	w8, #8
	str	x8, [sp, #64]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x4, sp, #48
	add	x5, sp, #64
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	bl	_RegQueryValueExW
	ldr	x21, [x22]
	cmp	x0, x21
	b.ne	LBB0_36
; %bb.5:
	ldr	x8, [sp, #48]
	str	x8, [sp]
Lloh25:
	adrp	x0, l_.str.4@PAGE
Lloh26:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DPRINT
	mov	w8, #8
	str	x8, [sp, #64]
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x4, sp, #40
	add	x5, sp, #64
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	bl	_RegQueryValueExW
	ldr	x21, [x22]
	cmp	x0, x21
	b.ne	LBB0_36
; %bb.6:
	ldr	x8, [sp, #40]
	str	x8, [sp]
Lloh29:
	adrp	x0, l_.str.6@PAGE
Lloh30:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_DPRINT
Lloh31:
	adrp	x1, l_.str.7@PAGE
Lloh32:
	add	x1, x1, l_.str.7@PAGEOFF
	add	x4, sp, #32
	add	x5, sp, #64
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	bl	_RegQueryValueExW
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [sp, #32]
	b	LBB0_9
LBB0_8:
	mov	x8, #0
	str	xzr, [sp, #32]
LBB0_9:
	str	x8, [sp]
Lloh33:
	adrp	x0, l_.str.8@PAGE
Lloh34:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_DPRINT
Lloh35:
	adrp	x1, l_.str.9@PAGE
Lloh36:
	add	x1, x1, l_.str.9@PAGEOFF
	sub	x2, x29, #56
	mov	x0, x19
	bl	_ScmReadString
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:
	ldur	x8, [x29, #-56]
	b	LBB0_12
LBB0_11:
	mov	x8, #0
	stur	xzr, [x29, #-56]
LBB0_12:
	str	x8, [sp]
Lloh37:
	adrp	x0, l_.str.10@PAGE
Lloh38:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_DPRINT
Lloh39:
	adrp	x1, l_.str.11@PAGE
Lloh40:
	add	x1, x1, l_.str.11@PAGEOFF
	sub	x2, x29, #48
	mov	x0, x19
	bl	_ScmReadString
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.13:
	ldur	x8, [x29, #-48]
	b	LBB0_15
LBB0_14:
	mov	x8, #0
	stur	xzr, [x29, #-48]
LBB0_15:
	str	x8, [sp]
Lloh41:
	adrp	x0, l_.str.12@PAGE
Lloh42:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_DPRINT
	ldp	x3, x2, [sp, #48]
	sub	x1, x29, #40
	mov	x0, x20
	bl	_ScmCreateNewServiceRecord
	mov	x21, x0
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_30
; %bb.16:
	ldp	x9, x8, [sp, #32]
	ldur	x0, [x29, #-40]
	stp	x8, x9, [x0, #24]
	ldur	x1, [x29, #-56]
	cbz	x1, LBB0_18
; %bb.17:
	bl	_ScmSetServiceGroup
	mov	x21, x0
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_30
LBB0_18:
	ldp	x9, x8, [x29, #-48]
	cbz	x9, LBB0_20
; %bb.19:
	str	x9, [x8, #64]
	stur	xzr, [x29, #-48]
LBB0_20:
	ldr	w8, [x8, #56]
	str	x8, [sp]
Lloh43:
	adrp	x0, l_.str.13@PAGE
Lloh44:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_DPRINT
	ldur	x8, [x29, #-40]
	ldr	x9, [x8, #48]
	cbz	x9, LBB0_22
; %bb.21:
	ldr	w8, [x9]
	str	x8, [sp]
Lloh45:
	adrp	x0, l_.str.14@PAGE
Lloh46:
	add	x0, x0, l_.str.14@PAGEOFF
	bl	_DPRINT
	ldur	x8, [x29, #-40]
LBB0_22:
	ldp	x10, x9, [x8, #24]
	ldr	w11, [x8, #40]
	ldr	w8, [x8, #16]
	stp	x9, x10, [sp, #16]
	stp	x11, x8, [sp]
Lloh47:
	adrp	x0, l_.str.15@PAGE
Lloh48:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_DPRINT
	mov	x0, x19
	bl	_ScmIsDeleteFlagSet
	cbz	x0, LBB0_24
; %bb.23:
Lloh49:
	adrp	x8, _TRUE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x8]
	ldur	x8, [x29, #-40]
	str	w9, [x8, #20]
	b	LBB0_25
LBB0_24:
	ldur	x0, [x29, #-40]
	bl	_ScmGenerateServiceTag
	ldur	x8, [x29, #-40]
LBB0_25:
	ldr	w9, [x8, #16]
Lloh52:
	adrp	x10, _SERVICE_WIN32@GOTPAGE
Lloh53:
	ldr	x10, [x10, _SERVICE_WIN32@GOTPAGEOFF]
Lloh54:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_30
; %bb.26:
	add	x1, x8, #8
	mov	x0, x19
	bl	_ScmReadSecurityDescriptor
	mov	x21, x0
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_30
; %bb.27:
	ldur	x8, [x29, #-40]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_30
; %bb.28:
Lloh55:
	adrp	x0, l_.str.16@PAGE
Lloh56:
	add	x0, x0, l_.str.16@PAGEOFF
	bl	_DPRINT
	ldur	x8, [x29, #-40]
	add	x0, x8, #8
	bl	_ScmCreateDefaultServiceSD
	mov	x21, x0
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_30
; %bb.29:
	ldur	x8, [x29, #-40]
	ldr	x1, [x8, #8]
	mov	x0, x19
	bl	_ScmWriteSecurityDescriptor
	mov	x21, x0
LBB0_30:
	ldur	x8, [x29, #-56]
	cbz	x8, LBB0_32
; %bb.31:
	bl	_GetProcessHeap
	ldur	x2, [x29, #-56]
	mov	w1, #0
	bl	_HeapFree
LBB0_32:
	ldur	x8, [x29, #-48]
	cbz	x8, LBB0_34
; %bb.33:
	bl	_GetProcessHeap
	ldur	x2, [x29, #-48]
	mov	w1, #0
	bl	_HeapFree
LBB0_34:
	ldur	x8, [x29, #-40]
	cbz	x8, LBB0_36
; %bb.35:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	bl	_ASSERT
LBB0_36:
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Service: '%S'\n"

	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.section	__TEXT,__const
	.p2align	2                               ; @.str.1
l_.str.1:
	.long	84                              ; 0x54
	.long	121                             ; 0x79
	.long	112                             ; 0x70
	.long	101                             ; 0x65
	.long	0                               ; 0x0

	.comm	_SERVICE_INTERACTIVE_PROCESS,8,3 ; @SERVICE_INTERACTIVE_PROCESS
	.comm	_SERVICE_WIN32_OWN_PROCESS,8,3  ; @SERVICE_WIN32_OWN_PROCESS
	.comm	_SERVICE_WIN32_SHARE_PROCESS,8,3 ; @SERVICE_WIN32_SHARE_PROCESS
	.comm	_SERVICE_KERNEL_DRIVER,8,3      ; @SERVICE_KERNEL_DRIVER
	.comm	_SERVICE_FILE_SYSTEM_DRIVER,8,3 ; @SERVICE_FILE_SYSTEM_DRIVER
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"Service type: %lx\n"

	.section	__TEXT,__const
	.p2align	2                               ; @.str.3
l_.str.3:
	.long	83                              ; 0x53
	.long	116                             ; 0x74
	.long	97                              ; 0x61
	.long	114                             ; 0x72
	.long	116                             ; 0x74
	.long	0                               ; 0x0

	.section	__TEXT,__cstring,cstring_literals
l_.str.4:                               ; @.str.4
	.asciz	"Start type: %lx\n"

	.section	__TEXT,__const
	.p2align	2                               ; @.str.5
l_.str.5:
	.long	69                              ; 0x45
	.long	114                             ; 0x72
	.long	114                             ; 0x72
	.long	111                             ; 0x6f
	.long	114                             ; 0x72
	.long	67                              ; 0x43
	.long	111                             ; 0x6f
	.long	110                             ; 0x6e
	.long	116                             ; 0x74
	.long	114                             ; 0x72
	.long	111                             ; 0x6f
	.long	108                             ; 0x6c
	.long	0                               ; 0x0

	.section	__TEXT,__cstring,cstring_literals
l_.str.6:                               ; @.str.6
	.asciz	"Error control: %lx\n"

	.section	__TEXT,__const
	.p2align	2                               ; @.str.7
l_.str.7:
	.long	84                              ; 0x54
	.long	97                              ; 0x61
	.long	103                             ; 0x67
	.long	0                               ; 0x0

	.section	__TEXT,__cstring,cstring_literals
l_.str.8:                               ; @.str.8
	.asciz	"Tag: %lx\n"

	.section	__TEXT,__const
	.p2align	2                               ; @.str.9
l_.str.9:
	.long	71                              ; 0x47
	.long	114                             ; 0x72
	.long	111                             ; 0x6f
	.long	117                             ; 0x75
	.long	112                             ; 0x70
	.long	0                               ; 0x0

	.section	__TEXT,__cstring,cstring_literals
l_.str.10:                              ; @.str.10
	.asciz	"Group: %S\n"

	.section	__TEXT,__const
	.p2align	2                               ; @.str.11
l_.str.11:
	.long	68                              ; 0x44
	.long	105                             ; 0x69
	.long	115                             ; 0x73
	.long	112                             ; 0x70
	.long	108                             ; 0x6c
	.long	97                              ; 0x61
	.long	121                             ; 0x79
	.long	78                              ; 0x4e
	.long	97                              ; 0x61
	.long	109                             ; 0x6d
	.long	101                             ; 0x65
	.long	0                               ; 0x0

	.section	__TEXT,__cstring,cstring_literals
l_.str.12:                              ; @.str.12
	.asciz	"Display name: %S\n"

l_.str.13:                              ; @.str.13
	.asciz	"ServiceName: '%S'\n"

l_.str.14:                              ; @.str.14
	.asciz	"Group: '%S'\n"

l_.str.15:                              ; @.str.15
	.asciz	"Start %lx  Type %lx  Tag %lx  ErrorControl %lx\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_SERVICE_WIN32,4,2              ; @SERVICE_WIN32
l_.str.16:                              ; @.str.16
	.asciz	"No security descriptor found! Assign default security descriptor!\n"

	.no_dead_strip	_CreateServiceListEntry
.subsections_via_symbols
