	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function OnInitSysSettingsDialog
_OnInitSysSettingsDialog:               ## @OnInitSysSettingsDialog
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_REG_DWORD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$8, -40(%rbp)
	movq	_HKEY_LOCAL_MACHINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ReportAsWorkstationKey@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KEY_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-28(%rbp), %r8
	xorl	%edx, %edx
	callq	_RegOpenKeyEx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.1:
	movl	-28(%rbp), %ebx
	leaq	L_.str(%rip), %rdi
	callq	__T
	leaq	-56(%rbp), %r8
	leaq	-48(%rbp), %rcx
	leaq	-40(%rbp), %r9
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_RegQueryValueEx
	cmpq	(%r15), %rax
	jne	LBB0_4
## %bb.2:
	movq	-56(%rbp), %rax
	movq	_FALSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_IDC_REPORTASWORKSTATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BM_SETCHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BST_CHECKED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	xorl	%r8d, %r8d
	callq	_SendDlgItemMessageW
LBB0_4:
	movl	-28(%rbp), %edi
	callq	_RegCloseKey
LBB0_5:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_DWORD,8,3                  ## @REG_DWORD
	.comm	_HKEY_LOCAL_MACHINE,4,2         ## @HKEY_LOCAL_MACHINE
	.comm	_ReportAsWorkstationKey,4,2     ## @ReportAsWorkstationKey
	.comm	_KEY_READ,4,2                   ## @KEY_READ
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ReportAsWorkstation"

	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_IDC_REPORTASWORKSTATION,4,2    ## @IDC_REPORTASWORKSTATION
	.comm	_BM_SETCHECK,4,2                ## @BM_SETCHECK
	.comm	_BST_CHECKED,4,2                ## @BST_CHECKED
	.no_dead_strip	_OnInitSysSettingsDialog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function OnInitSysSettingsDialog
_OnInitSysSettingsDialog:               ; @OnInitSysSettingsDialog
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _REG_DWORD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_DWORD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	mov	w8, #8
	stp	x8, x9, [sp]
Lloh3:
	adrp	x8, _HKEY_LOCAL_MACHINE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HKEY_LOCAL_MACHINE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _ReportAsWorkstationKey@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ReportAsWorkstationKey@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _KEY_READ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KEY_READ@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	add	x4, sp, #28
	mov	w2, #0
	bl	_RegOpenKeyEx
Lloh12:
	adrp	x21, _ERROR_SUCCESS@GOTPAGE
Lloh13:
	ldr	x21, [x21, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.1:
	ldr	w20, [sp, #28]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	__T
	mov	x1, x0
	add	x3, sp, #8
	add	x4, sp, #16
	mov	x5, sp
	mov	x0, x20
	mov	w2, #0
	bl	_RegQueryValueEx
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [sp, #16]
Lloh16:
	adrp	x9, _FALSE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
Lloh19:
	adrp	x8, _IDC_REPORTASWORKSTATION@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IDC_REPORTASWORKSTATION@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _BM_SETCHECK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BM_SETCHECK@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x8, _BST_CHECKED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BST_CHECKED@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w4, #0
	bl	_SendDlgItemMessageW
LBB0_4:
	ldr	w0, [sp, #28]
	bl	_RegCloseKey
LBB0_5:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_DWORD,8,3                  ; @REG_DWORD
	.comm	_HKEY_LOCAL_MACHINE,4,2         ; @HKEY_LOCAL_MACHINE
	.comm	_ReportAsWorkstationKey,4,2     ; @ReportAsWorkstationKey
	.comm	_KEY_READ,4,2                   ; @KEY_READ
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ReportAsWorkstation"

	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_IDC_REPORTASWORKSTATION,4,2    ; @IDC_REPORTASWORKSTATION
	.comm	_BM_SETCHECK,4,2                ; @BM_SETCHECK
	.comm	_BST_CHECKED,4,2                ; @BST_CHECKED
	.no_dead_strip	_OnInitSysSettingsDialog
.subsections_via_symbols
