	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetServiceFailure
_GetServiceFailure:                     ## @GetServiceFailure
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	$0, -48(%rbp)
	movq	_SC_MANAGER_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_OpenSCManager
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	8(%r12), %rax
	movl	(%rax), %esi
	movq	_SERVICE_QUERY_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_OpenService
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movq	%rax, %r15
	movq	_SERVICE_CONFIG_FAILURE_ACTIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %r8
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_QueryServiceConfig2
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	cmpq	$0, -48(%rbp)
	je	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	-48(%rbp), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r13
	movq	_SERVICE_CONFIG_FAILURE_ACTIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_QueryServiceConfig2
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	%r13, (%r12)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	cmpq	%r12, %r14
	je	LBB0_11
	jmp	LBB0_12
LBB0_1:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_15
LBB0_13:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_14
LBB0_7:
	movq	_ERROR_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SetLastError
LBB0_5:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_12
LBB0_9:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_11:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	_HeapFree
	movq	%r12, %r14
LBB0_12:
	movq	%r15, %rdi
	callq	_CloseServiceHandle
LBB0_14:
	movq	%rbx, %rdi
	callq	_CloseServiceHandle
LBB0_15:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_SC_MANAGER_CONNECT,4,2         ## @SC_MANAGER_CONNECT
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_SERVICE_QUERY_CONFIG,4,2       ## @SERVICE_QUERY_CONFIG
	.comm	_SERVICE_CONFIG_FAILURE_ACTIONS,4,2 ## @SERVICE_CONFIG_FAILURE_ACTIONS
	.comm	_ERROR_OUTOFMEMORY,4,2          ## @ERROR_OUTOFMEMORY
	.no_dead_strip	_GetServiceFailure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetServiceFailure
_GetServiceFailure:                     ; @GetServiceFailure
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x0
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	str	xzr, [sp, #8]
Lloh3:
	adrp	x8, _SC_MANAGER_CONNECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SC_MANAGER_CONNECT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, #0
	mov	x1, #0
	bl	_OpenSCManager
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x8, [x22, #8]
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _SERVICE_QUERY_CONFIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SERVICE_QUERY_CONFIG@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_OpenService
	cbz	x0, LBB0_7
; %bb.2:
	mov	x21, x0
Lloh9:
	adrp	x24, _SERVICE_CONFIG_FAILURE_ACTIONS@GOTPAGE
Lloh10:
	ldr	x24, [x24, _SERVICE_CONFIG_FAILURE_ACTIONS@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x4, sp, #8
	mov	x2, #0
	mov	x3, #0
	bl	_QueryServiceConfig2
	ldr	x8, [sp, #8]
	cmp	w0, #0
	ccmp	x8, #0, #0, eq
	b.eq	LBB0_9
; %bb.3:
	bl	_GetProcessHeap
	ldr	x2, [sp, #8]
	mov	w1, #0
	bl	_HeapAlloc
	cbz	x0, LBB0_8
; %bb.4:
	mov	x23, x0
	ldr	w1, [x24]
	ldr	x3, [sp, #8]
	add	x4, sp, #8
	mov	x0, x21
	mov	x2, x23
	bl	_QueryServiceConfig2
	cbz	w0, LBB0_10
; %bb.5:
	str	x23, [x22]
Lloh11:
	adrp	x8, _FALSE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh13:
	ldr	x22, [x8]
	cmp	x20, x22
	b.eq	LBB0_11
	b	LBB0_12
LBB0_6:
Lloh14:
	adrp	x8, _FALSE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh16:
	ldr	x20, [x8]
	b	LBB0_14
LBB0_7:
Lloh17:
	adrp	x8, _FALSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh19:
	ldr	x20, [x8]
	b	LBB0_13
LBB0_8:
Lloh20:
	adrp	x8, _ERROR_OUTOFMEMORY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERROR_OUTOFMEMORY@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_SetLastError
LBB0_9:
Lloh23:
	adrp	x8, _FALSE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh25:
	ldr	x20, [x8]
	b	LBB0_12
LBB0_10:
Lloh26:
	adrp	x8, _FALSE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh28:
	ldr	x22, [x8]
LBB0_11:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x23
	bl	_HeapFree
	mov	x20, x22
LBB0_12:
	mov	x0, x21
	bl	_CloseServiceHandle
LBB0_13:
	mov	x0, x19
	bl	_CloseServiceHandle
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_SC_MANAGER_CONNECT,4,2         ; @SC_MANAGER_CONNECT
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_SERVICE_QUERY_CONFIG,4,2       ; @SERVICE_QUERY_CONFIG
	.comm	_SERVICE_CONFIG_FAILURE_ACTIONS,4,2 ; @SERVICE_CONFIG_FAILURE_ACTIONS
	.comm	_ERROR_OUTOFMEMORY,4,2          ; @ERROR_OUTOFMEMORY
	.no_dead_strip	_GetServiceFailure
.subsections_via_symbols
