	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function regset
_regset:                                ## @regset
	.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
	movq	%r8, %r15
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movq	%rdi, %rbx
	movq	$0, -48(%rbp)
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	cmpq	$0, (%rsi)
	movq	%rbx, %rdi
	je	LBB0_4
## %bb.2:
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	_KEY_ALL_ACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	leaq	-48(%rbp), %rax
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	%rax
	pushq	$0
	callq	_RegCreateKeyExW
	addq	$32, %rsp
	movl	%eax, %r14d
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_7
## %bb.3:
	movq	-48(%rbp), %rdi
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
LBB0_4:
	movq	%r13, %rsi
	xorl	%edx, %edx
	movl	%r12d, %ecx
	movq	%r15, %r8
	callq	_RegSetValueExW
	movl	%eax, %r14d
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:
	cmpq	%rbx, %rdi
	je	LBB0_7
## %bb.6:
	callq	_RegCloseKey
LBB0_7:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_ALL_ACCESS,4,2             ## @KEY_ALL_ACCESS
	.comm	_ERROR_SUCCESS,4,2              ## @ERROR_SUCCESS
	.no_dead_strip	_regset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function regset
_regset:                                ; @regset
	.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	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x0
	str	xzr, [sp, #8]
	cbz	x1, LBB0_4
; %bb.1:
	ldr	x8, [x1]
	mov	x0, x19
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _KEY_ALL_ACCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KEY_ALL_ACCESS@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
	str	wzr, [sp]
	add	x7, sp, #8
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w6, #0
	bl	_RegCreateKeyExW
	mov	x24, x0
Lloh3:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.3:
	ldr	x0, [sp, #8]
LBB0_4:
	mov	x1, x23
	mov	w2, #0
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	bl	_RegSetValueExW
	mov	x24, x0
	ldr	x0, [sp, #8]
	cmp	x0, #0
	ccmp	x0, x19, #4, ne
	b.eq	LBB0_6
; %bb.5:
	bl	_RegCloseKey
LBB0_6:
	mov	x0, x24
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_ALL_ACCESS,4,2             ; @KEY_ALL_ACCESS
	.comm	_ERROR_SUCCESS,4,2              ; @ERROR_SUCCESS
	.no_dead_strip	_regset
.subsections_via_symbols
