	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetConfig                      ## -- Begin function SetConfig
	.p2align	4, 0x90
_SetConfig:                             ## @SetConfig
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	-96(%rbp), %rcx
	movq	%rbx, %rdx
	callq	_ParseCreateConfigArguments
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_SC_MANAGER_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_OpenSCManager
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movl	-44(%rbp), %esi
	movq	_SERVICE_CHANGE_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_OpenService
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%rax, %r15
	movl	-48(%rbp), %esi
	movl	-52(%rbp), %edx
	movl	-56(%rbp), %ecx
	movl	-60(%rbp), %r8d
	movl	-64(%rbp), %r9d
	movq	-72(%rbp), %rax
	testq	%rax, %rax
	leaq	-80(%rbp), %r10
	cmoveq	%rax, %r10
	movl	-84(%rbp), %r11d
	movl	-88(%rbp), %r12d
	movl	-96(%rbp), %eax
	movl	-92(%rbp), %r13d
	subq	$8, %rsp
	movq	%r15, %rdi
	pushq	%rax
	pushq	%r13
	pushq	%r12
	pushq	%r11
	pushq	%r10
	callq	_ChangeServiceConfig
	addq	$48, %rsp
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rdi
	callq	__T
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	__tprintf
	movq	_FALSE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_8
	jmp	LBB0_9
LBB0_1:
	xorl	%eax, %eax
	callq	_SetConfigUsage
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_12
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	__T
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	__tprintf
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	xorl	%eax, %eax
	callq	_ReportLastError
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	callq	__T
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	__tprintf
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	xorl	%eax, %eax
	callq	_ReportLastError
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	callq	__T
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	__tprintf
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_8:
	xorl	%eax, %eax
	callq	_ReportLastError
LBB0_9:
	movq	%r15, %rdi
	callq	_CloseServiceHandle
LBB0_11:
	movq	%r14, %rdi
	callq	_CloseServiceHandle
LBB0_12:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_SC_MANAGER_CONNECT,4,2         ## @SC_MANAGER_CONNECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[SC] OpenSCManager FAILED %lu:\n\n"

	.comm	_SERVICE_CHANGE_CONFIG,4,2      ## @SERVICE_CHANGE_CONFIG
L_.str.1:                               ## @.str.1
	.asciz	"[SC] OpenService FAILED %lu:\n\n"

L_.str.2:                               ## @.str.2
	.asciz	"[SC] ChangeServiceConfig FAILED %lu:\n\n"

L_.str.3:                               ## @.str.3
	.asciz	"[SC] ChangeServiceConfig SUCCESS\n\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetConfig                      ; -- Begin function SetConfig
	.p2align	2
_SetConfig:                             ; @SetConfig
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	add	x3, sp, #24
	mov	x2, x19
	bl	_ParseCreateConfigArguments
	cbz	w0, LBB0_5
; %bb.1:
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.2:
	mov	x20, x0
	ldr	w1, [sp, #76]
Lloh6:
	adrp	x8, _SERVICE_CHANGE_CONFIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SERVICE_CHANGE_CONFIG@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_OpenService
	cbz	x0, LBB0_7
; %bb.3:
	mov	x21, x0
	ldp	w2, w1, [sp, #68]
	ldp	w4, w3, [sp, #60]
	ldr	w5, [sp, #56]
	ldr	x8, [sp, #48]
	add	x9, sp, #24
	add	x9, x9, #16
	cmp	x8, #0
	csel	x6, xzr, x9, eq
	ldp	w8, w7, [sp, #32]
	ldp	w10, w9, [sp, #24]
	stp	w9, w10, [sp, #4]
	str	w8, [sp]
	bl	_ChangeServiceConfig
	cbz	w0, LBB0_8
; %bb.4:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__T
	bl	__tprintf
Lloh11:
	adrp	x8, _FALSE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x19, x8
	b.eq	LBB0_9
	b	LBB0_10
LBB0_5:
	bl	_SetConfigUsage
Lloh14:
	adrp	x8, _FALSE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh16:
	ldr	x19, [x8]
	b	LBB0_12
LBB0_6:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	__T
	mov	x19, x0
	bl	_GetLastError
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x19
	bl	__tprintf
Lloh19:
	adrp	x8, _FALSE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh21:
	ldr	x19, [x8]
	bl	_ReportLastError
	b	LBB0_12
LBB0_7:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__T
	mov	x19, x0
	bl	_GetLastError
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x19
	bl	__tprintf
Lloh24:
	adrp	x8, _FALSE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh26:
	ldr	x19, [x8]
	bl	_ReportLastError
	b	LBB0_11
LBB0_8:
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__T
	mov	x19, x0
	bl	_GetLastError
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x19
	bl	__tprintf
Lloh29:
	adrp	x8, _FALSE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh31:
	ldr	x19, [x8]
LBB0_9:
	bl	_ReportLastError
LBB0_10:
	mov	x0, x21
	bl	_CloseServiceHandle
LBB0_11:
	mov	x0, x20
	bl	_CloseServiceHandle
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_SC_MANAGER_CONNECT,4,2         ; @SC_MANAGER_CONNECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[SC] OpenSCManager FAILED %lu:\n\n"

	.comm	_SERVICE_CHANGE_CONFIG,4,2      ; @SERVICE_CHANGE_CONFIG
l_.str.1:                               ; @.str.1
	.asciz	"[SC] OpenService FAILED %lu:\n\n"

l_.str.2:                               ; @.str.2
	.asciz	"[SC] ChangeServiceConfig FAILED %lu:\n\n"

l_.str.3:                               ; @.str.3
	.asciz	"[SC] ChangeServiceConfig SUCCESS\n\n"

.subsections_via_symbols
