	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SetButtonStates
_SetButtonStates:                       ## @SetButtonStates
	.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
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	8(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	_IDC_START@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	movq	_IDC_RESUME@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rbx
	jg	LBB0_4
## %bb.1:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	_FALSE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_GetDlgItem
	movl	(%r13), %esi
	movl	%eax, %edi
	callq	_EnableWindow
	leaq	1(%rbx), %rax
	cmpq	(%r15), %rbx
	movq	%rax, %rbx
	jl	LBB0_2
## %bb.3:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	8(%r13), %rax
LBB0_4:
	movl	(%rax), %edi
	callq	_GetServiceConfig
	movq	%rax, %r15
	movq	_SERVICE_STOPPED@GOTPCREL(%rip), %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	(%rbx), %rax
	jne	LBB0_7
## %bb.5:
	testq	%r15, %r15
	je	LBB0_7
## %bb.6:
	movq	(%r15), %rax
	movq	_SERVICE_DISABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
LBB0_7:
	movq	_SERVICE_ACCEPT_STOP@GOTPCREL(%rip), %rcx
	movq	_SERVICE_RUNNING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, (%rcx)
	je	LBB0_10
## %bb.8:
	cmpq	%rax, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_10
## %bb.9:
	movq	_IDC_STOP@GOTPCREL(%rip), %r14
	jmp	LBB0_13
LBB0_10:
	movq	_SERVICE_ACCEPT_PAUSE_CONTINUE@GOTPCREL(%rip), %rcx
	testq	%rdx, (%rcx)
	je	LBB0_14
## %bb.11:
	cmpq	%rax, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_14
## %bb.12:
	movq	_IDC_PAUSE@GOTPCREL(%rip), %r14
LBB0_13:
	movq	(%r14), %rsi
	movl	%r12d, %edi
	callq	_GetDlgItem
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_EnableWindow
LBB0_14:
	movq	_IDC_START_PARAM@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r12d, %edi
	callq	_GetDlgItem
	xorl	%esi, %esi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rbx), %rcx
	jne	LBB0_17
## %bb.15:
	testq	%r15, %r15
	je	LBB0_17
## %bb.16:
	movq	(%r15), %rcx
	movq	_SERVICE_DISABLED@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rcx
	setne	%sil
LBB0_17:
	movl	%eax, %edi
	callq	_EnableWindow
	testq	%r15, %r15
	je	LBB0_19
## %bb.18:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_HeapFree
LBB0_19:
	movl	(%r13), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SetMenuAndButtonStates         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_START,8,3                  ## @IDC_START
	.comm	_IDC_RESUME,8,3                 ## @IDC_RESUME
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_SERVICE_STOPPED,8,3            ## @SERVICE_STOPPED
	.comm	_SERVICE_DISABLED,8,3           ## @SERVICE_DISABLED
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_SERVICE_ACCEPT_STOP,8,3        ## @SERVICE_ACCEPT_STOP
	.comm	_SERVICE_RUNNING,8,3            ## @SERVICE_RUNNING
	.comm	_IDC_STOP,8,3                   ## @IDC_STOP
	.comm	_SERVICE_ACCEPT_PAUSE_CONTINUE,8,3 ## @SERVICE_ACCEPT_PAUSE_CONTINUE
	.comm	_IDC_PAUSE,8,3                  ## @IDC_PAUSE
	.comm	_IDC_START_PARAM,8,3            ## @IDC_START_PARAM
	.no_dead_strip	_SetButtonStates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SetButtonStates
_SetButtonStates:                       ; @SetButtonStates
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _IDC_START@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IDC_START@GOTPAGEOFF]
	ldp	x23, x22, [x8, #8]
Lloh2:
	ldr	x21, [x9]
Lloh3:
	adrp	x24, _IDC_RESUME@GOTPAGE
Lloh4:
	ldr	x24, [x24, _IDC_RESUME@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x21, x9
	b.gt	LBB0_4
; %bb.1:
Lloh5:
	adrp	x25, _FALSE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _FALSE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_GetDlgItem
	ldr	w1, [x25]
	bl	_EnableWindow
	add	x8, x21, #1
	ldr	x9, [x24]
	cmp	x21, x9
	mov	x21, x8
	b.lt	LBB0_2
; %bb.3:
	ldr	x8, [x19, #8]
LBB0_4:
	ldr	w0, [x8]
	bl	_GetServiceConfig
	mov	x21, x0
Lloh7:
	adrp	x24, _SERVICE_STOPPED@GOTPAGE
Lloh8:
	ldr	x24, [x24, _SERVICE_STOPPED@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x22, x8
	ccmp	x0, #0, #4, eq
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x21]
Lloh9:
	adrp	x9, _SERVICE_DISABLED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SERVICE_DISABLED@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
LBB0_6:
Lloh12:
	adrp	x8, _SERVICE_ACCEPT_STOP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SERVICE_ACCEPT_STOP@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	and	x9, x8, x23
Lloh15:
	adrp	x8, _SERVICE_RUNNING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SERVICE_RUNNING@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x9, #0
	ccmp	x22, x8, #0, ne
	b.eq	LBB0_9
; %bb.7:
Lloh18:
	adrp	x9, _SERVICE_ACCEPT_PAUSE_CONTINUE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SERVICE_ACCEPT_PAUSE_CONTINUE@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	and	x9, x9, x23
	cmp	x9, #0
	ccmp	x22, x8, #0, ne
	b.ne	LBB0_12
; %bb.8:
Lloh21:
	adrp	x8, _IDC_PAUSE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IDC_PAUSE@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh23:
	adrp	x8, _IDC_STOP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IDC_STOP@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh25:
	adrp	x8, _IDC_START@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IDC_START@GOTPAGEOFF]
LBB0_11:
	ldr	x1, [x8]
	mov	x0, x20
	bl	_GetDlgItem
Lloh27:
	adrp	x8, _TRUE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	bl	_EnableWindow
LBB0_12:
Lloh30:
	adrp	x8, _IDC_START_PARAM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IDC_START_PARAM@GOTPAGEOFF]
Lloh32:
	ldr	x1, [x8]
	mov	x0, x20
	bl	_GetDlgItem
	mov	w1, #0
	ldr	x8, [x24]
	cmp	x22, x8
	b.ne	LBB0_15
; %bb.13:
	cbz	x21, LBB0_15
; %bb.14:
	ldr	x8, [x21]
Lloh33:
	adrp	x9, _SERVICE_DISABLED@GOTPAGE
Lloh34:
	ldr	x9, [x9, _SERVICE_DISABLED@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w1, ne
LBB0_15:
	bl	_EnableWindow
	cbz	x21, LBB0_17
; %bb.16:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x21
	bl	_HeapFree
LBB0_17:
	ldr	w0, [x19]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_SetMenuAndButtonStates
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_START,8,3                  ; @IDC_START
	.comm	_IDC_RESUME,8,3                 ; @IDC_RESUME
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_SERVICE_STOPPED,8,3            ; @SERVICE_STOPPED
	.comm	_SERVICE_DISABLED,8,3           ; @SERVICE_DISABLED
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_SERVICE_ACCEPT_STOP,8,3        ; @SERVICE_ACCEPT_STOP
	.comm	_SERVICE_RUNNING,8,3            ; @SERVICE_RUNNING
	.comm	_IDC_STOP,8,3                   ; @IDC_STOP
	.comm	_SERVICE_ACCEPT_PAUSE_CONTINUE,8,3 ; @SERVICE_ACCEPT_PAUSE_CONTINUE
	.comm	_IDC_PAUSE,8,3                  ; @IDC_PAUSE
	.comm	_IDC_START_PARAM,8,3            ; @IDC_START_PARAM
	.no_dead_strip	_SetButtonStates
.subsections_via_symbols
