	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScmAssignNewTag                ## -- Begin function ScmAssignNewTag
	.p2align	4, 0x90
_ScmAssignNewTag:                       ## @ScmAssignNewTag
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	%rsp, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -72(%rbp)
	movq	_TAG_ARRAY_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_ASSERT
	xorl	%edi, %edi
	cmpq	$0, 16(%r15)
	setne	%dil
	callq	_ASSERT
	movq	_HKEY_LOCAL_MACHINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_KEY_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	l_.str(%rip), %rsi
	xorl	%r13d, %r13d
	leaq	-72(%rbp), %r8
	xorl	%edx, %edx
	callq	_RegOpenKeyExW
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rbx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	(%rbx), %rax
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	jne	LBB0_4
## %bb.1:
	movq	$0, -64(%rbp)
	movq	-72(%rbp), %rdi
	movq	16(%r15), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %r9
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_RegQueryValueExW
	cmpq	(%rbx), %rax
	je	LBB0_60
## %bb.2:
	movq	_ERROR_MORE_DATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_60
## %bb.3:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
LBB0_4:
	xorl	%r9d, %r9d
LBB0_5:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	leaq	24(%r15), %r14
	movq	_TAG_ARRAY_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r9, %r10
	andq	$-4, %r10
	leaq	1(%r10), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	%r12, %rax
	addq	$16, %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	leaq	1(%r9), %r11
	movl	$1, %r15d
	pcmpeqd	%xmm7, %xmm7
	movq	%r9, -112(%rbp)                 ## 8-byte Spill
	movq	%r10, -104(%rbp)                ## 8-byte Spill
	movq	%r11, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	-112(%rbp), %r9                 ## 8-byte Reload
	movq	-104(%rbp), %r10                ## 8-byte Reload
	movq	-96(%rbp), %r11                 ## 8-byte Reload
	pcmpeqd	%xmm7, %xmm7
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	addq	%rcx, %r15
	testq	%rbx, %rbx
	jne	LBB0_50
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_19 Depth 2
                                        ##     Child Loop BB0_24 Depth 2
                                        ##     Child Loop BB0_40 Depth 2
                                        ##     Child Loop BB0_35 Depth 2
                                        ##     Child Loop BB0_46 Depth 2
	movslq	%r8d, %rcx
	testl	%ecx, %ecx
	jle	LBB0_20
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	$8, %r8d
	jae	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rcx, %rsi
	andq	$-8, %rsi
	movd	%edx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rsi), %rax
	movq	%rax, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %ebx
	andl	$7, %ebx
	cmpq	$56, %rax
	jae	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	andq	$-8, %rdi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqa	%xmm0, (%r12,%rax,4)
	movdqa	%xmm0, 16(%r12,%rax,4)
	movdqa	%xmm0, 32(%r12,%rax,4)
	movdqa	%xmm0, 48(%r12,%rax,4)
	movdqa	%xmm0, 64(%r12,%rax,4)
	movdqa	%xmm0, 80(%r12,%rax,4)
	movdqa	%xmm0, 96(%r12,%rax,4)
	movdqa	%xmm0, 112(%r12,%rax,4)
	movdqa	%xmm0, 128(%r12,%rax,4)
	movdqa	%xmm0, 144(%r12,%rax,4)
	movdqa	%xmm0, 160(%r12,%rax,4)
	movdqa	%xmm0, 176(%r12,%rax,4)
	movdqa	%xmm0, 192(%r12,%rax,4)
	movdqa	%xmm0, 208(%r12,%rax,4)
	movdqa	%xmm0, 224(%r12,%rax,4)
	movdqa	%xmm0, 240(%r12,%rax,4)
	addq	$64, %rax
	addq	$-8, %rdi
	jne	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	leaq	(%rdi,%rax,4), %rax
	shlq	$5, %rbx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqa	%xmm0, -16(%rax,%rdi)
	movdqa	%xmm0, (%rax,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %rbx
	jne	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rcx, %rsi
	je	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%edx, (%r12,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_19
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=1
	testq	%r9, %r9
	jle	LBB0_33
## %bb.21:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %eax
	cmpq	$4, %r9
	jb	LBB0_40
## %bb.22:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	movd	%r8d, %xmm1
	pshufd	$80, %xmm1, %xmm1               ## xmm1 = xmm1[0,0,1,1]
	xorl	%esi, %esi
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_24 Depth=2
	addq	$4, %rsi
	cmpq	%rsi, %r10
	je	LBB0_32
LBB0_24:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	8(%r13,%rsi,8), %xmm3
	movdqu	24(%r13,%rsi,8), %xmm2
	psubq	%xmm0, %xmm3
	pshufd	$232, %xmm3, %xmm4              ## xmm4 = xmm3[0,2,2,3]
	movdqa	%xmm1, %xmm5
	pcmpgtd	%xmm4, %xmm5
	pcmpgtd	%xmm7, %xmm4
	pmovsxdq	%xmm4, %xmm6
	pmovsxdq	%xmm5, %xmm4
	pand	%xmm6, %xmm4
	movd	%xmm4, %eax
	testb	$1, %al
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	%xmm3, %rax
	cltq
	movl	%edx, (%r12,%rax,4)
LBB0_26:                                ##   in Loop: Header=BB0_24 Depth=2
	pextrb	$8, %xmm4, %eax
	testb	$1, %al
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=2
	pextrq	$1, %xmm3, %rax
	cltq
	movl	%edx, (%r12,%rax,4)
LBB0_28:                                ##   in Loop: Header=BB0_24 Depth=2
	psubq	%xmm0, %xmm2
	pshufd	$232, %xmm2, %xmm3              ## xmm3 = xmm2[0,2,2,3]
	movdqa	%xmm1, %xmm4
	pcmpgtd	%xmm3, %xmm4
	pcmpgtd	%xmm7, %xmm3
	pmovsxdq	%xmm3, %xmm5
	pmovsxdq	%xmm4, %xmm3
	pand	%xmm5, %xmm3
	movd	%xmm3, %eax
	testb	$1, %al
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	%xmm2, %rax
	cltq
	movl	%edx, (%r12,%rax,4)
LBB0_30:                                ##   in Loop: Header=BB0_24 Depth=2
	pextrb	$8, %xmm3, %eax
	testb	$1, %al
	je	LBB0_23
## %bb.31:                              ##   in Loop: Header=BB0_24 Depth=2
	pextrq	$1, %xmm2, %rax
	cltq
	movl	%edx, (%r12,%rax,4)
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-128(%rbp), %rax                ## 8-byte Reload
	cmpq	%r10, %r9
	jne	LBB0_40
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r14), %rbx
	cmpq	%r14, %rbx
	jne	LBB0_35
	jmp	LBB0_44
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_35 Depth=2
	movq	(%rbx), %rbx
	cmpq	%r14, %rbx
	je	LBB0_43
LBB0_35:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_ASSERT
	movq	_SERVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ServiceListEntry@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_CONTAINING_RECORD
	movq	16(%rax), %rcx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	cmpq	16(%rdx), %rcx
	jne	LBB0_34
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=2
	movq	(%rax), %rax
	subq	%r15, %rax
	testl	%eax, %eax
	js	LBB0_34
## %bb.37:                              ##   in Loop: Header=BB0_35 Depth=2
	movq	_TAG_ARRAY_SIZE@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jle	LBB0_34
## %bb.38:                              ##   in Loop: Header=BB0_35 Depth=2
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cltq
	movl	%ecx, (%r12,%rax,4)
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_40 Depth=2
	incq	%rax
	cmpq	%rax, %r11
	je	LBB0_33
LBB0_40:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13,%rax,8), %rsi
	subq	%r15, %rsi
	testl	%esi, %esi
	js	LBB0_39
## %bb.41:                              ##   in Loop: Header=BB0_40 Depth=2
	cmpl	%esi, %r8d
	jle	LBB0_39
## %bb.42:                              ##   in Loop: Header=BB0_40 Depth=2
	movslq	%esi, %rsi
	movl	%edx, (%r12,%rsi,4)
	jmp	LBB0_39
	.p2align	4, 0x90
LBB0_43:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_TAG_ARRAY_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movslq	%r8d, %rcx
LBB0_44:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%ebx, %ebx
	testl	%r8d, %r8d
	jle	LBB0_6
## %bb.45:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-112(%rbp), %r9                 ## 8-byte Reload
	movq	-104(%rbp), %r10                ## 8-byte Reload
	movq	-96(%rbp), %r11                 ## 8-byte Reload
	pcmpeqd	%xmm7, %xmm7
	.p2align	4, 0x90
LBB0_46:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, (%r12,%rbx,4)
	je	LBB0_49
## %bb.47:                              ##   in Loop: Header=BB0_46 Depth=2
	incq	%rbx
	cmpq	%rbx, %rcx
	jne	LBB0_46
## %bb.48:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_49:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	%r15, %rbx
	jmp	LBB0_7
LBB0_50:
	testq	%r13, %r13
	je	LBB0_52
## %bb.51:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	_HeapFree
LBB0_52:
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_53:
	movq	-72(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_55
## %bb.54:
	callq	_RegCloseKey
LBB0_55:
	testq	%rbx, %rbx
	je	LBB0_57
## %bb.56:
	movq	%rbx, (%r15)
	movl	8(%r15), %edx
	movq	16(%r15), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_DPRINT
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_58
LBB0_57:
	movl	8(%r15), %esi
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %rdx
	callq	_DPRINT1
LBB0_58:
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_67
## %bb.59:
	movq	%r12, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_60:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	-64(%rbp), %rdx
	movl	%eax, %edi
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_64
## %bb.61:
	movq	%rax, %r13
	movq	-72(%rbp), %rdi
	movq	16(%r15), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %r9
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r13, %r8
	callq	_RegQueryValueExW
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	(%rbx), %rax
	jne	LBB0_4
## %bb.62:
	movq	-64(%rbp), %rsi
	cmpq	$8, %rsi
	jb	LBB0_4
## %bb.63:
	movq	(%r13), %rdi
	shrq	$3, %rsi
	decq	%rsi
	callq	_min
	movq	%rax, %r9
	jmp	LBB0_5
LBB0_64:
	movq	_ERROR_NOT_ENOUGH_MEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_53
LBB0_67:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TAG_ARRAY_SIZE,4,2             ## @TAG_ARRAY_SIZE
	.comm	_HKEY_LOCAL_MACHINE,4,2         ## @HKEY_LOCAL_MACHINE
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	83                              ## 0x53
	.long	121                             ## 0x79
	.long	115                             ## 0x73
	.long	116                             ## 0x74
	.long	101                             ## 0x65
	.long	109                             ## 0x6d
	.long	92                              ## 0x5c
	.long	67                              ## 0x43
	.long	117                             ## 0x75
	.long	114                             ## 0x72
	.long	114                             ## 0x72
	.long	101                             ## 0x65
	.long	110                             ## 0x6e
	.long	116                             ## 0x74
	.long	67                              ## 0x43
	.long	111                             ## 0x6f
	.long	110                             ## 0x6e
	.long	116                             ## 0x74
	.long	114                             ## 0x72
	.long	111                             ## 0x6f
	.long	108                             ## 0x6c
	.long	83                              ## 0x53
	.long	101                             ## 0x65
	.long	116                             ## 0x74
	.long	92                              ## 0x5c
	.long	67                              ## 0x43
	.long	111                             ## 0x6f
	.long	110                             ## 0x6e
	.long	116                             ## 0x74
	.long	114                             ## 0x72
	.long	111                             ## 0x6f
	.long	108                             ## 0x6c
	.long	92                              ## 0x5c
	.long	71                              ## 0x47
	.long	114                             ## 0x72
	.long	111                             ## 0x6f
	.long	117                             ## 0x75
	.long	112                             ## 0x70
	.long	79                              ## 0x4f
	.long	114                             ## 0x72
	.long	100                             ## 0x64
	.long	101                             ## 0x65
	.long	114                             ## 0x72
	.long	76                              ## 0x4c
	.long	105                             ## 0x69
	.long	115                             ## 0x73
	.long	116                             ## 0x74
	.long	0                               ## 0x0

	.comm	_KEY_READ,4,2                   ## @KEY_READ
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_ERROR_MORE_DATA,8,3            ## @ERROR_MORE_DATA
	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
	.comm	_ERROR_NOT_ENOUGH_MEMORY,8,3    ## @ERROR_NOT_ENOUGH_MEMORY
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_SERVICE,4,2                    ## @SERVICE
	.comm	_ServiceListEntry,4,2           ## @ServiceListEntry
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Assigning new tag %lu to service %S in group %S\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to assign new tag to service %S, error=%lu\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScmAssignNewTag                ; -- Begin function ScmAssignNewTag
	.p2align	2
_ScmAssignNewTag:                       ; @ScmAssignNewTag
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #96
	mov	x19, x0
	mov	x20, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	stur	xzr, [x29, #-96]
Lloh3:
	adrp	x26, _TAG_ARRAY_SIZE@GOTPAGE
Lloh4:
	ldr	x26, [x26, _TAG_ARRAY_SIZE@GOTPAGEOFF]
	ldr	w8, [x26]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x27, x9, x8
	mov	sp, x27
	cmp	x0, #0
	cset	w0, ne
	bl	_ASSERT
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, ne
	bl	_ASSERT
Lloh7:
	adrp	x8, _HKEY_LOCAL_MACHINE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HKEY_LOCAL_MACHINE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _KEY_READ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _KEY_READ@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	sub	x4, x29, #96
	mov	w2, #0
	bl	_RegOpenKeyExW
Lloh15:
	adrp	x21, _ERROR_SUCCESS@GOTPAGE
Lloh16:
	ldr	x21, [x21, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	stur	x20, [x29, #-160]               ; 8-byte Folded Spill
	b.ne	LBB0_6
; %bb.1:
	stur	xzr, [x29, #-104]
	ldur	x0, [x29, #-96]
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
	sub	x5, x29, #104
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_RegQueryValueExW
	ldr	x8, [x21]
Lloh17:
	adrp	x9, _ERROR_MORE_DATA@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ERROR_MORE_DATA@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_6
; %bb.2:
	bl	_GetProcessHeap
Lloh20:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldur	x2, [x29, #-104]
	bl	_HeapAlloc
	mov	x23, x0
	cbz	x0, LBB0_64
; %bb.3:
	ldur	x0, [x29, #-96]
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
	sub	x5, x29, #104
	mov	x2, #0
	mov	x3, #0
	mov	x4, x23
	bl	_RegQueryValueExW
	mov	x22, #0
	ldr	x8, [x21]
	cmp	x0, x8
	stur	x0, [x29, #-168]                ; 8-byte Folded Spill
	b.ne	LBB0_7
; %bb.4:
	ldur	x8, [x29, #-104]
	cmp	x8, #8
	b.lo	LBB0_7
; %bb.5:
	ldr	x0, [x23]
	lsr	x8, x8, #3
	sub	x1, x8, #1
	bl	_min
	mov	x22, x0
	b	LBB0_7
LBB0_6:
	stur	x0, [x29, #-168]                ; 8-byte Folded Spill
	mov	x23, #0
	mov	x22, #0
LBB0_7:
	add	x28, x19, #24
	ldr	w8, [x26]
	and	x9, x22, #0xfffffffffffffff8
	stp	x23, x9, [x29, #-120]           ; 16-byte Folded Spill
	orr	x10, x9, #0x1
	add	x9, x27, #32
	stp	x9, x10, [x29, #-144]           ; 16-byte Folded Spill
	add	x9, x23, #40
	stur	x9, [x29, #-152]                ; 8-byte Folded Spill
	add	x9, x22, #1
	stur	x9, [x29, #-128]                ; 8-byte Folded Spill
Lloh23:
	adrp	x24, _SERVICE@GOTPAGE
Lloh24:
	ldr	x24, [x24, _SERVICE@GOTPAGEOFF]
	mov	w21, #1
Lloh25:
	adrp	x20, _ServiceListEntry@GOTPAGE
Lloh26:
	ldr	x20, [x20, _ServiceListEntry@GOTPAGEOFF]
Lloh27:
	adrp	x25, _TRUE@GOTPAGE
Lloh28:
	ldr	x25, [x25, _TRUE@GOTPAGEOFF]
	movi.2d	v7, #0xffffffffffffffff
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x23, #0
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x21, x21, x9
	cbnz	x23, LBB0_55
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
                                        ;     Child Loop BB0_23 Depth 2
                                        ;     Child Loop BB0_52 Depth 2
                                        ;     Child Loop BB0_42 Depth 2
                                        ;     Child Loop BB0_48 Depth 2
	sxtw	x9, w8
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
Lloh29:
	adrp	x10, _FALSE@GOTPAGE
Lloh30:
	ldr	x10, [x10, _FALSE@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	cmp	w8, #16
	b.hs	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x11, #0
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	and	x11, x9, #0xfffffffffffffff0
	dup.4s	v0, w10
	mov	x12, x11
	ldur	x13, [x29, #-144]               ; 8-byte Folded Reload
LBB0_14:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	q0, q0, [x13, #-32]
	stp	q0, q0, [x13], #64
	subs	x12, x12, #16
	b.ne	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	x11, x9
	b.eq	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	sub	x12, x9, x11
	add	x11, x27, x11, lsl #2
LBB0_17:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w10, [x11], #4
	subs	x12, x12, #1
	b.ne	LBB0_17
LBB0_18:                                ;   in Loop: Header=BB0_10 Depth=1
	cmp	x22, #1
	b.lt	LBB0_40
; %bb.19:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w10, [x25]
	cmp	x22, #8
	b.hs	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w12, #1
	b	LBB0_50
LBB0_21:                                ;   in Loop: Header=BB0_10 Depth=1
	dup.2d	v0, x21
	dup.2s	v1, w8
	ldur	x11, [x29, #-112]               ; 8-byte Folded Reload
	ldur	x12, [x29, #-152]               ; 8-byte Folded Reload
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=2
	add	x12, x12, #64
	subs	x11, x11, #8
	b.eq	LBB0_39
LBB0_23:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q4, q3, [x12, #-32]
	ldr	q2, [x12, #16]
	sub.2d	v4, v4, v0
	xtn.2s	v5, v4
	cmgt.2s	v6, v5, v7
	cmgt.2s	v5, v1, v5
	and.8b	v5, v6, v5
	shl.2d	v4, v4, #32
	sshr.2d	v4, v4, #32
	fmov	w13, s5
	tbz	w13, #0, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=2
	fmov	x13, d4
	str	w10, [x27, x13, lsl #2]
LBB0_25:                                ;   in Loop: Header=BB0_23 Depth=2
	mov.s	w13, v5[1]
	tbz	w13, #0, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_23 Depth=2
	mov.d	x13, v4[1]
	str	w10, [x27, x13, lsl #2]
LBB0_27:                                ;   in Loop: Header=BB0_23 Depth=2
	sub.2d	v3, v3, v0
	xtn.2s	v4, v3
	cmgt.2s	v5, v4, v7
	cmgt.2s	v4, v1, v4
	and.8b	v4, v5, v4
	shl.2d	v3, v3, #32
	sshr.2d	v3, v3, #32
	fmov	w13, s4
	tbz	w13, #0, LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_23 Depth=2
	fmov	x13, d3
	str	w10, [x27, x13, lsl #2]
LBB0_29:                                ;   in Loop: Header=BB0_23 Depth=2
	mov.s	w13, v4[1]
	tbz	w13, #0, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_23 Depth=2
	mov.d	x13, v3[1]
	str	w10, [x27, x13, lsl #2]
LBB0_31:                                ;   in Loop: Header=BB0_23 Depth=2
	ldr	q3, [x12]
	sub.2d	v3, v3, v0
	xtn.2s	v4, v3
	cmgt.2s	v5, v4, v7
	cmgt.2s	v4, v1, v4
	and.8b	v4, v5, v4
	shl.2d	v3, v3, #32
	sshr.2d	v3, v3, #32
	fmov	w13, s4
	tbz	w13, #0, LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_23 Depth=2
	fmov	x13, d3
	str	w10, [x27, x13, lsl #2]
LBB0_33:                                ;   in Loop: Header=BB0_23 Depth=2
	mov.s	w13, v4[1]
	tbz	w13, #0, LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_23 Depth=2
	mov.d	x13, v3[1]
	str	w10, [x27, x13, lsl #2]
LBB0_35:                                ;   in Loop: Header=BB0_23 Depth=2
	sub.2d	v2, v2, v0
	xtn.2s	v3, v2
	cmgt.2s	v4, v3, v7
	cmgt.2s	v3, v1, v3
	and.8b	v3, v4, v3
	shl.2d	v2, v2, #32
	sshr.2d	v2, v2, #32
	fmov	w13, s3
	tbz	w13, #0, LBB0_37
; %bb.36:                               ;   in Loop: Header=BB0_23 Depth=2
	fmov	x13, d2
	str	w10, [x27, x13, lsl #2]
LBB0_37:                                ;   in Loop: Header=BB0_23 Depth=2
	mov.s	w13, v3[1]
	tbz	w13, #0, LBB0_22
; %bb.38:                               ;   in Loop: Header=BB0_23 Depth=2
	mov.d	x13, v2[1]
	str	w10, [x27, x13, lsl #2]
	b	LBB0_22
LBB0_39:                                ;   in Loop: Header=BB0_10 Depth=1
	ldur	x12, [x29, #-136]               ; 8-byte Folded Reload
	ldur	x11, [x29, #-112]               ; 8-byte Folded Reload
	cmp	x22, x11
	b.ne	LBB0_50
LBB0_40:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x23, [x28]
	cmp	x23, x28
	b.ne	LBB0_42
	b	LBB0_47
LBB0_41:                                ;   in Loop: Header=BB0_42 Depth=2
	ldr	x23, [x23]
	cmp	x23, x28
	b.eq	LBB0_46
LBB0_42:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x23, #0
	cset	w0, ne
	bl	_ASSERT
	ldr	w1, [x24]
	ldr	w2, [x20]
	mov	x0, x23
	bl	_CONTAINING_RECORD
	ldr	x8, [x0, #16]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.ne	LBB0_41
; %bb.43:                               ;   in Loop: Header=BB0_42 Depth=2
	ldr	x8, [x0]
	sub	x8, x8, x21
	tbnz	w8, #31, LBB0_41
; %bb.44:                               ;   in Loop: Header=BB0_42 Depth=2
	ldr	w9, [x26]
	cmp	w9, w8
	b.le	LBB0_41
; %bb.45:                               ;   in Loop: Header=BB0_42 Depth=2
	ldr	w9, [x25]
	sbfiz	x8, x8, #2, #32
	str	w9, [x27, x8]
	b	LBB0_41
LBB0_46:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x26]
	sxtw	x9, w8
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_47:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x10, x27
	mov	x11, x9
	mov	x23, x21
	cmp	w8, #1
	movi.2d	v7, #0xffffffffffffffff
	b.lt	LBB0_8
LBB0_48:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x10]
	cbz	w12, LBB0_9
; %bb.49:                               ;   in Loop: Header=BB0_48 Depth=2
	add	x23, x23, #1
	add	x10, x10, #4
	subs	x11, x11, #1
	b.ne	LBB0_48
	b	LBB0_8
LBB0_50:                                ;   in Loop: Header=BB0_10 Depth=1
	ldp	x11, x13, [x29, #-128]          ; 16-byte Folded Reload
	sub	x11, x11, x12
	add	x12, x13, x12, lsl #3
	b	LBB0_52
LBB0_51:                                ;   in Loop: Header=BB0_52 Depth=2
	add	x12, x12, #8
	subs	x11, x11, #1
	b.eq	LBB0_40
LBB0_52:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x13, [x12]
	sub	x13, x13, x21
	tbnz	w13, #31, LBB0_51
; %bb.53:                               ;   in Loop: Header=BB0_52 Depth=2
	cmp	w8, w13
	b.le	LBB0_51
; %bb.54:                               ;   in Loop: Header=BB0_52 Depth=2
	sbfiz	x13, x13, #2, #32
	str	w10, [x27, x13]
	b	LBB0_51
LBB0_55:
	ldur	x20, [x29, #-120]               ; 8-byte Folded Reload
	cbz	x20, LBB0_57
; %bb.56:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x20
	bl	_HeapFree
LBB0_57:
	ldur	x20, [x29, #-160]               ; 8-byte Folded Reload
	ldur	x0, [x29, #-96]
	cbz	x0, LBB0_59
LBB0_58:
	bl	_RegCloseKey
LBB0_59:
	cbz	x23, LBB0_61
; %bb.60:
	str	x23, [x19]
	ldr	w2, [x19, #8]
	ldr	x8, [x19, #16]
	ldr	w3, [x8]
Lloh32:
	adrp	x0, l_.str.1@PAGE
Lloh33:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	bl	_DPRINT
Lloh34:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh36:
	ldr	x19, [x8]
	b	LBB0_62
LBB0_61:
	ldr	w1, [x19, #8]
Lloh37:
	adrp	x0, l_.str.2@PAGE
Lloh38:
	add	x0, x0, l_.str.2@PAGEOFF
	ldur	x19, [x29, #-168]               ; 8-byte Folded Reload
	mov	x2, x19
	bl	_DPRINT1
LBB0_62:
	mov	sp, x20
	ldur	x8, [x29, #-88]
Lloh39:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh40:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_65
; %bb.63:
	mov	x0, x19
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_64:
Lloh42:
	adrp	x8, _ERROR_NOT_ENOUGH_MEMORY@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ERROR_NOT_ENOUGH_MEMORY@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	stur	x8, [x29, #-168]                ; 8-byte Folded Spill
	ldur	x0, [x29, #-96]
	cbnz	x0, LBB0_58
	b	LBB0_59
LBB0_65:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_TAG_ARRAY_SIZE,4,2             ; @TAG_ARRAY_SIZE
	.comm	_HKEY_LOCAL_MACHINE,4,2         ; @HKEY_LOCAL_MACHINE
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	83                              ; 0x53
	.long	121                             ; 0x79
	.long	115                             ; 0x73
	.long	116                             ; 0x74
	.long	101                             ; 0x65
	.long	109                             ; 0x6d
	.long	92                              ; 0x5c
	.long	67                              ; 0x43
	.long	117                             ; 0x75
	.long	114                             ; 0x72
	.long	114                             ; 0x72
	.long	101                             ; 0x65
	.long	110                             ; 0x6e
	.long	116                             ; 0x74
	.long	67                              ; 0x43
	.long	111                             ; 0x6f
	.long	110                             ; 0x6e
	.long	116                             ; 0x74
	.long	114                             ; 0x72
	.long	111                             ; 0x6f
	.long	108                             ; 0x6c
	.long	83                              ; 0x53
	.long	101                             ; 0x65
	.long	116                             ; 0x74
	.long	92                              ; 0x5c
	.long	67                              ; 0x43
	.long	111                             ; 0x6f
	.long	110                             ; 0x6e
	.long	116                             ; 0x74
	.long	114                             ; 0x72
	.long	111                             ; 0x6f
	.long	108                             ; 0x6c
	.long	92                              ; 0x5c
	.long	71                              ; 0x47
	.long	114                             ; 0x72
	.long	111                             ; 0x6f
	.long	117                             ; 0x75
	.long	112                             ; 0x70
	.long	79                              ; 0x4f
	.long	114                             ; 0x72
	.long	100                             ; 0x64
	.long	101                             ; 0x65
	.long	114                             ; 0x72
	.long	76                              ; 0x4c
	.long	105                             ; 0x69
	.long	115                             ; 0x73
	.long	116                             ; 0x74
	.long	0                               ; 0x0

	.comm	_KEY_READ,4,2                   ; @KEY_READ
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_ERROR_MORE_DATA,8,3            ; @ERROR_MORE_DATA
	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
	.comm	_ERROR_NOT_ENOUGH_MEMORY,8,3    ; @ERROR_NOT_ENOUGH_MEMORY
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_SERVICE,4,2                    ; @SERVICE
	.comm	_ServiceListEntry,4,2           ; @ServiceListEntry
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Assigning new tag %lu to service %S in group %S\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to assign new tag to service %S, error=%lu\n"

.subsections_via_symbols
