	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function register_progid
_register_progid:                       ## @register_progid
	.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, %r14
	movq	%rcx, %r13
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	_HKEY_CLASSES_ROOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_KEY_READ@GOTPCREL(%rip), %r15
	movq	_KEY_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	orl	(%r15), %r9d
	subq	$8, %rsp
	leaq	-44(%rbp), %rax
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	%rax
	pushq	$0
	callq	_RegCreateKeyExA
	addq	$32, %rsp
	movq	%rax, %rbx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_12
## %bb.1:
	testq	%r13, %r13
	je	LBB0_3
## %bb.2:
	movl	-44(%rbp), %ebx
	movq	_REG_SZ@GOTPCREL(%rip), %rax
	movq	%r14, %r15
	movl	(%rax), %r14d
	movq	%r13, %rdi
	callq	_strlen
	leaq	1(%rax), %r9
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	movq	%r15, %r14
	movq	_KEY_READ@GOTPCREL(%rip), %r15
	movq	%r13, %r8
	callq	_RegSetValueExA
	movq	%rax, %rbx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_11
LBB0_3:
	testq	%r12, %r12
	je	LBB0_5
## %bb.4:
	movl	-44(%rbp), %edi
	movq	%rax, %r13
	movq	_clsid_keyname@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	callq	_register_key_defvalueW
	movq	%rax, %rbx
	movq	%r13, %rax
	cmpq	(%r13), %rbx
	jne	LBB0_11
LBB0_5:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.6:
	movq	%rax, %r12
	movl	-44(%rbp), %edi
	movq	_curver_keyname@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_register_key_defvalueA
	movq	%rax, %rbx
	testq	%r14, %r14
	je	LBB0_11
## %bb.7:
	movq	%r12, %rax
	cmpq	(%r12), %rbx
	je	LBB0_9
	jmp	LBB0_11
LBB0_8:
	testq	%r14, %r14
	je	LBB0_11
LBB0_9:
	movl	-44(%rbp), %edi
	movq	%rax, %r12
	movq	_KEY_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	orl	(%r15), %r9d
	subq	$8, %rsp
	leaq	-48(%rbp), %rax
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	%rax
	pushq	$0
	callq	_RegCreateKeyExA
	addq	$32, %rsp
	movq	%rax, %rbx
	cmpq	(%r12), %rax
	jne	LBB0_11
## %bb.10:
	movl	-48(%rbp), %edi
	callq	_RegCloseKey
LBB0_11:
	movl	-44(%rbp), %edi
	callq	_RegCloseKey
LBB0_12:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HKEY_CLASSES_ROOT,4,2          ## @HKEY_CLASSES_ROOT
	.comm	_KEY_READ,4,2                   ## @KEY_READ
	.comm	_KEY_WRITE,4,2                  ## @KEY_WRITE
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_REG_SZ,4,2                     ## @REG_SZ
	.comm	_clsid_keyname,4,2              ## @clsid_keyname
	.comm	_curver_keyname,4,2             ## @curver_keyname
	.no_dead_strip	_register_progid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function register_progid
_register_progid:                       ; @register_progid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x0
Lloh0:
	adrp	x8, _HKEY_CLASSES_ROOT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HKEY_CLASSES_ROOT@GOTPAGEOFF]
Lloh2:
	adrp	x25, _KEY_READ@GOTPAGE
Lloh3:
	ldr	x25, [x25, _KEY_READ@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w8, [x25]
Lloh5:
	adrp	x26, _KEY_WRITE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _KEY_WRITE@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w5, w9, w8
	str	xzr, [sp]
	add	x7, sp, #12
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	mov	x6, #0
	bl	_RegCreateKeyExA
	mov	x22, x0
Lloh7:
	adrp	x27, _ERROR_SUCCESS@GOTPAGE
Lloh8:
	ldr	x27, [x27, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.1:
	cbz	x23, LBB0_3
; %bb.2:
	ldr	w22, [sp, #12]
Lloh9:
	adrp	x8, _REG_SZ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_SZ@GOTPAGEOFF]
Lloh11:
	ldr	w24, [x8]
	mov	x0, x23
	bl	_strlen
	add	x5, x0, #1
	mov	x0, x22
	mov	x1, #0
	mov	w2, #0
	mov	x3, x24
	mov	x4, x23
	bl	_RegSetValueExA
	mov	x22, x0
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_11
LBB0_3:
	cbz	x21, LBB0_5
; %bb.4:
	ldr	w0, [sp, #12]
Lloh12:
	adrp	x8, _clsid_keyname@GOTPAGE
Lloh13:
	ldr	x8, [x8, _clsid_keyname@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_register_key_defvalueW
	mov	x22, x0
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_11
LBB0_5:
	cbz	x20, LBB0_8
; %bb.6:
	ldr	w0, [sp, #12]
Lloh15:
	adrp	x8, _curver_keyname@GOTPAGE
Lloh16:
	ldr	x8, [x8, _curver_keyname@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_register_key_defvalueA
	mov	x22, x0
	cbz	x19, LBB0_11
; %bb.7:
	ldr	x8, [x27]
	cmp	x22, x8
	b.eq	LBB0_9
	b	LBB0_11
LBB0_8:
	cbz	x19, LBB0_11
LBB0_9:
	ldr	w0, [sp, #12]
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w5, w9, w8
	str	xzr, [sp]
	add	x7, sp, #8
	mov	x1, x19
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	mov	x6, #0
	bl	_RegCreateKeyExA
	mov	x22, x0
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:
	ldr	w0, [sp, #8]
	bl	_RegCloseKey
LBB0_11:
	ldr	w0, [sp, #12]
	bl	_RegCloseKey
LBB0_12:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_HKEY_CLASSES_ROOT,4,2          ; @HKEY_CLASSES_ROOT
	.comm	_KEY_READ,4,2                   ; @KEY_READ
	.comm	_KEY_WRITE,4,2                  ; @KEY_WRITE
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_REG_SZ,4,2                     ; @REG_SZ
	.comm	_clsid_keyname,4,2              ; @clsid_keyname
	.comm	_curver_keyname,4,2             ; @curver_keyname
	.no_dead_strip	_register_progid
.subsections_via_symbols
