	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function OnOK
_OnOK:                                  ## @OnOK
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_IDC_REPORTASWORKSTATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BM_GETCHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_SendDlgItemMessageW
	movq	_BST_CHECKED@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	%edx, -16(%rbp)
	movq	_HKEY_LOCAL_MACHINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ReportAsWorkstationKey@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KEY_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	leaq	-12(%rbp), %rax
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	%rax
	pushq	$0
	callq	_RegCreateKeyEx
	addq	$32, %rsp
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	-12(%rbp), %ebx
	leaq	L_.str(%rip), %rdi
	callq	__T
	movq	_REG_DWORD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-16(%rbp), %r8
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	$4, %r9d
	callq	_RegSetValueEx
	movl	-12(%rbp), %edi
	callq	_RegCloseKey
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_REPORTASWORKSTATION,4,2    ## @IDC_REPORTASWORKSTATION
	.comm	_BM_GETCHECK,4,2                ## @BM_GETCHECK
	.comm	_BST_CHECKED,8,3                ## @BST_CHECKED
	.comm	_HKEY_LOCAL_MACHINE,4,2         ## @HKEY_LOCAL_MACHINE
	.comm	_ReportAsWorkstationKey,4,2     ## @ReportAsWorkstationKey
	.comm	_KEY_WRITE,4,2                  ## @KEY_WRITE
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ReportAsWorkstation"

	.comm	_REG_DWORD,4,2                  ## @REG_DWORD
	.no_dead_strip	_OnOK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function OnOK
_OnOK:                                  ; @OnOK
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _IDC_REPORTASWORKSTATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDC_REPORTASWORKSTATION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _BM_GETCHECK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BM_GETCHECK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w3, #0
	mov	w4, #0
	bl	_SendDlgItemMessageW
Lloh6:
	adrp	x8, _BST_CHECKED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BST_CHECKED@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w8, eq
	str	w8, [sp, #8]
Lloh9:
	adrp	x8, _HKEY_LOCAL_MACHINE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HKEY_LOCAL_MACHINE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _ReportAsWorkstationKey@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ReportAsWorkstationKey@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _KEY_WRITE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _KEY_WRITE@GOTPAGEOFF]
Lloh17:
	ldr	w5, [x8]
	str	xzr, [sp]
	add	x7, sp, #12
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	mov	x6, #0
	bl	_RegCreateKeyEx
Lloh18:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	w19, [sp, #12]
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	__T
	mov	x1, x0
Lloh23:
	adrp	x8, _REG_DWORD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _REG_DWORD@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x19
	mov	w2, #0
	mov	w5, #4
	bl	_RegSetValueEx
	ldr	w0, [sp, #12]
	bl	_RegCloseKey
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_REPORTASWORKSTATION,4,2    ; @IDC_REPORTASWORKSTATION
	.comm	_BM_GETCHECK,4,2                ; @BM_GETCHECK
	.comm	_BST_CHECKED,8,3                ; @BST_CHECKED
	.comm	_HKEY_LOCAL_MACHINE,4,2         ; @HKEY_LOCAL_MACHINE
	.comm	_ReportAsWorkstationKey,4,2     ; @ReportAsWorkstationKey
	.comm	_KEY_WRITE,4,2                  ; @KEY_WRITE
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ReportAsWorkstation"

	.comm	_REG_DWORD,4,2                  ; @REG_DWORD
	.no_dead_strip	_OnOK
.subsections_via_symbols
