	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AddAssociation
_AddAssociation:                        ## @AddAssociation
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	_HKEY_LOCAL_MACHINE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	__T
	movq	_KEY_ALL_ACCESS@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	leaq	-56(%rbp), %r8
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_RegOpenKeyEx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r12
	movl	$-1, %ebx
	cmpq	(%r12), %rax
	jne	LBB0_3
## %bb.1:
	movq	-56(%rbp), %rdi
	movq	_REG_OPTION_NON_VOLATILE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	(%r13), %r9d
	subq	$8, %rsp
	leaq	-48(%rbp), %rax
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	pushq	$0
	pushq	%rax
	pushq	$0
	callq	_RegCreateKeyEx
	addq	$32, %rsp
	movq	%rax, %r15
	movq	-56(%rbp), %rdi
	callq	_RegCloseKey
	cmpq	(%r12), %r15
	jne	LBB0_3
## %bb.2:
	movq	-48(%rbp), %rbx
	movq	_REG_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	__tcslen
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %r9d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_RegSetValueEx
	movq	%rax, %rbx
	movq	-48(%rbp), %rdi
	callq	_RegCloseKey
	xorl	%eax, %eax
	cmpq	(%r12), %rbx
	sete	%al
	leal	(%rax,%rax), %ebx
	addl	$-2, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HKEY_LOCAL_MACHINE,4,2         ## @HKEY_LOCAL_MACHINE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SOFTWARE\\Classes"

	.comm	_KEY_ALL_ACCESS,4,2             ## @KEY_ALL_ACCESS
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_REG_OPTION_NON_VOLATILE,4,2    ## @REG_OPTION_NON_VOLATILE
	.comm	_REG_SZ,4,2                     ## @REG_SZ
	.no_dead_strip	_AddAssociation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AddAssociation
_AddAssociation:                        ; @AddAssociation
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	mov	x20, x0
	stp	xzr, xzr, [sp, #16]
Lloh0:
	adrp	x8, _HKEY_LOCAL_MACHINE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HKEY_LOCAL_MACHINE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	__T
	mov	x1, x0
Lloh5:
	adrp	x23, _KEY_ALL_ACCESS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _KEY_ALL_ACCESS@GOTPAGEOFF]
	ldr	w3, [x23]
	add	x4, sp, #24
	mov	x0, x21
	mov	w2, #0
	bl	_RegOpenKeyEx
Lloh7:
	adrp	x22, _ERROR_SUCCESS@GOTPAGE
Lloh8:
	ldr	x22, [x22, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	x0, [sp, #24]
Lloh9:
	adrp	x8, _REG_OPTION_NON_VOLATILE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_OPTION_NON_VOLATILE@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	ldr	w5, [x23]
	str	xzr, [sp]
	add	x7, sp, #16
	mov	x1, x20
	mov	w2, #0
	mov	x3, #0
	mov	x6, #0
	bl	_RegCreateKeyEx
	mov	x20, x0
	ldr	x0, [sp, #24]
	bl	_RegCloseKey
	ldr	x8, [x22]
	cmp	x20, x8
	b.ne	LBB0_3
; %bb.2:
	ldr	x20, [sp, #16]
Lloh12:
	adrp	x8, _REG_SZ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REG_SZ@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	mov	x0, x19
	bl	__tcslen
	lsl	w8, w0, #2
	add	w5, w8, #4
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	mov	x3, x21
	mov	x4, x19
	bl	_RegSetValueEx
	mov	x19, x0
	ldr	x0, [sp, #16]
	bl	_RegCloseKey
	ldr	x8, [x22]
	cmp	x19, x8
	mov	w8, #-2
	csel	w0, wzr, w8, eq
	b	LBB0_4
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HKEY_LOCAL_MACHINE,4,2         ; @HKEY_LOCAL_MACHINE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SOFTWARE\\Classes"

	.comm	_KEY_ALL_ACCESS,4,2             ; @KEY_ALL_ACCESS
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_REG_OPTION_NON_VOLATILE,4,2    ; @REG_OPTION_NON_VOLATILE
	.comm	_REG_SZ,4,2                     ; @REG_SZ
	.no_dead_strip	_AddAssociation
.subsections_via_symbols
