	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StartAudioService              ## -- Begin function StartAudioService
	.p2align	4, 0x90
_StartAudioService:                     ## @StartAudioService
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	_SERVICE_ALL_ACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_OpenService
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	%eax, %ebx
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_StartService
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_WaitForService
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_CloseServiceHandle
	movl	%r14d, %eax
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	callq	_GetLastError
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_logmsg
	jmp	LBB0_2
LBB0_4:
	xorl	%eax, %eax
	callq	_GetLastError
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_logmsg
	movl	%ebx, %edi
	callq	_CloseServiceHandle
LBB0_2:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SERVICE_ALL_ACCESS,4,2         ## @SERVICE_ALL_ACCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to open service %S %x\n"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to start service %S %x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StartAudioService              ; -- Begin function StartAudioService
	.p2align	2
_StartAudioService:                     ; @StartAudioService
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x2
	mov	x19, x1
Lloh0:
	adrp	x8, _SERVICE_ALL_ACCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SERVICE_ALL_ACCESS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_OpenService
	cbz	w0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	w1, #0
	mov	x2, #0
	bl	_StartService
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x20
	mov	x1, x21
	bl	_WaitForService
	mov	x19, x0
	mov	x0, x20
	bl	_CloseServiceHandle
	mov	x0, x19
	b	LBB0_6
LBB0_3:
	bl	_GetLastError
	mov	x2, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_logmsg
	b	LBB0_5
LBB0_4:
	bl	_GetLastError
	mov	x2, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_logmsg
	mov	x0, x20
	bl	_CloseServiceHandle
LBB0_5:
Lloh7:
	adrp	x8, _FALSE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SERVICE_ALL_ACCESS,4,2         ; @SERVICE_ALL_ACCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to open service %S %x\n"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to start service %S %x\n"

.subsections_via_symbols
