	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AddServiceToList
_AddServiceToList:                      ## @AddServiceToList
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_wcslen
	movl	%eax, %ebx
	leal	1(%rbx), %r14d
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%ebx, %r14d
	addl	$2, %r14d
	leal	12(,%rbx,4), %ebx
	movl	$1, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	incl	%r14d
	addl	$4, %ebx
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -4(%rax,%r15,4)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%rax,%r15,4)
	jne	LBB0_4
## %bb.7:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	(%r12), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%ebx, %ecx
	callq	_HeapReAlloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%rax, %rbx
	movslq	%r15d, %rax
	leaq	(%rbx,%rax,4), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_StringCchCopy
	movq	%rbx, %r13
	jmp	LBB0_9
LBB0_5:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_GetProcessHeap
	leal	8(,%rbx,4), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%rax, %r12
	addl	$2, %ebx
	movq	%rax, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_StringCchCopy
	movq	%r12, %r13
LBB0_9:
	movslq	%r14d, %rax
	movl	$0, (%r13,%rax,4)
LBB0_10:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_AddServiceToList
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AddServiceToList
_AddServiceToList:                      ; @AddServiceToList
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x22, x0
	mov	x0, x1
	bl	_wcslen
	mov	x21, x0
	add	w19, w0, #1
	ldr	x8, [x22]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x24, #0
	lsl	w9, w21, #2
	add	w23, w9, #12
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	add	w23, w23, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8, x24, lsl #2]
	cbnz	w9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x8, x24, lsl #2
	ldr	w9, [x9, #4]
	cbnz	w9, LBB0_2
; %bb.5:
	bl	_GetProcessHeap
	ldr	x2, [x22]
	mov	w1, #0
	mov	x3, x23
	bl	_HeapReAlloc
	mov	x22, x0
	cbz	x0, LBB0_10
; %bb.6:
	add	x8, x24, #1
	add	x0, x22, w8, sxtw #2
	mov	x1, x19
	mov	x2, x20
	bl	_StringCchCopy
	add	w8, w21, w24
	add	w19, w8, #2
	b	LBB0_9
LBB0_7:
	add	w21, w21, #2
	bl	_GetProcessHeap
	lsl	w2, w21, #2
	mov	w1, #0
	bl	_HeapAlloc
	mov	x22, x0
	cbz	x0, LBB0_10
; %bb.8:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_StringCchCopy
LBB0_9:
	str	wzr, [x22, w19, sxtw #2]
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_AddServiceToList
.subsections_via_symbols
