	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CRYPT_GetFuncFromReg
_CRYPT_GetFuncFromReg:                  ## @CRYPT_GetFuncFromReg
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, %rdx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r13, %rsi
	callq	_CRYPT_GetKeyName
	movq	%rax, %r15
	movq	_HKEY_LOCAL_MACHINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_KEY_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %r8
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_RegOpenKeyExA
	testq	%rax, %rax
	je	LBB0_1
## %bb.22:
	movq	%rax, %rdi
	callq	_SetLastError
	jmp	LBB0_23
LBB0_1:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	$0, -56(%rbp)
	movl	-44(%rbp), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-64(%rbp), %rcx
	leaq	-56(%rbp), %r9
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_RegQueryValueExA
	movq	_ERROR_MORE_DATA@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r13, %rbx
	cmpq	(%r12), %rax
	jne	LBB0_5
LBB0_3:
	movq	-64(%rbp), %rax
	movq	_REG_SZ@GOTPCREL(%rip), %rcx
	movq	%r13, %rbx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	-56(%rbp), %edi
	callq	_CryptMemAlloc
	movq	%rax, %rbx
	movl	-44(%rbp), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-64(%rbp), %rcx
	leaq	-56(%rbp), %r9
	xorl	%edx, %edx
	movq	%rax, %r8
	callq	_RegQueryValueExA
LBB0_5:
	movl	-44(%rbp), %edi
	movq	_DllW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rcx
	leaq	-56(%rbp), %r9
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_RegQueryValueExW
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	cmpq	(%r12), %rax
	jne	LBB0_18
LBB0_7:
	movq	-64(%rbp), %rcx
	movq	_REG_SZ@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_18
## %bb.8:
	movl	-56(%rbp), %edi
	callq	_CryptMemAlloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.9:
	movq	%rax, %r12
	movl	-44(%rbp), %edi
	movq	_DllW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %r9
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_RegQueryValueExW
	testq	%rax, %rax
	je	LBB0_10
## %bb.16:
	movq	%rax, %rdi
	callq	_SetLastError
LBB0_17:
	movq	%r12, %rdi
	callq	_CryptMemFree
	jmp	LBB0_19
LBB0_18:
	movq	%rax, %rdi
	callq	_SetLastError
LBB0_19:
	cmpq	%r13, %rbx
	je	LBB0_21
## %bb.20:
	movq	%rbx, %rdi
	callq	_CryptMemFree
LBB0_21:
	movl	-44(%rbp), %edi
	callq	_RegCloseKey
LBB0_23:
	movq	%r15, %rdi
	callq	_CryptMemFree
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r12, %rdi
	callq	_LoadLibraryW
	testq	%rax, %rax
	je	LBB0_17
## %bb.11:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	callq	_GetProcAddress
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:
	movl	$24, %edi
	callq	_CryptMemAlloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 16(%rax)
	movq	$0, (%rax)
	movl	$0, 8(%rax)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_17
LBB0_14:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
LBB0_15:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_FreeLibrary
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_HKEY_LOCAL_MACHINE,4,2         ## @HKEY_LOCAL_MACHINE
	.comm	_KEY_READ,4,2                   ## @KEY_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FuncName"

	.comm	_ERROR_MORE_DATA,8,3            ## @ERROR_MORE_DATA
	.comm	_REG_SZ,8,3                     ## @REG_SZ
	.comm	_DllW,4,2                       ## @DllW
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_CRYPT_GetFuncFromReg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CRYPT_GetFuncFromReg
_CRYPT_GetFuncFromReg:                  ; @CRYPT_GetFuncFromReg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x4
	mov	x24, x3
	mov	x21, x2
	mov	x2, x1
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	mov	x1, x21
	bl	_CRYPT_GetKeyName
	mov	x20, x0
Lloh3:
	adrp	x8, _HKEY_LOCAL_MACHINE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HKEY_LOCAL_MACHINE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _KEY_READ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KEY_READ@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x4, sp, #28
	mov	x1, x20
	mov	w2, #0
	bl	_RegOpenKeyExA
	cbz	x0, LBB0_2
; %bb.1:
	bl	_SetLastError
	b	LBB0_15
LBB0_2:
	str	xzr, [sp, #8]
	ldr	w0, [sp, #28]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #16
	add	x5, sp, #8
	mov	x2, #0
	mov	x4, #0
	bl	_RegQueryValueExA
Lloh11:
	adrp	x26, _ERROR_MORE_DATA@GOTPAGE
Lloh12:
	ldr	x26, [x26, _ERROR_MORE_DATA@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, #0
	ccmp	x0, x8, #4, ne
Lloh13:
	adrp	x25, _REG_SZ@GOTPAGE
Lloh14:
	ldr	x25, [x25, _REG_SZ@GOTPAGEOFF]
	mov	x23, x21
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [sp, #16]
	ldr	x9, [x25]
	mov	x23, x21
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [sp, #8]
	bl	_CryptMemAlloc
	mov	x23, x0
	ldr	w0, [sp, #28]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #16
	add	x5, sp, #8
	mov	x2, #0
	mov	x4, x23
	bl	_RegQueryValueExA
LBB0_5:
	ldr	w0, [sp, #28]
Lloh17:
	adrp	x27, _DllW@GOTPAGE
Lloh18:
	ldr	x27, [x27, _DllW@GOTPAGEOFF]
	ldr	w1, [x27]
	add	x3, sp, #16
	add	x5, sp, #8
	mov	x2, #0
	mov	x4, #0
	bl	_RegQueryValueExW
	ldr	x8, [x26]
	cmp	x0, #0
	ccmp	x0, x8, #4, ne
	b.ne	LBB0_11
; %bb.6:
	ldr	x8, [sp, #16]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.7:
	ldr	w0, [sp, #8]
	bl	_CryptMemAlloc
	cbz	x0, LBB0_12
; %bb.8:
	mov	x25, x0
	ldr	w0, [sp, #28]
	ldr	w1, [x27]
	add	x5, sp, #8
	mov	x2, #0
	mov	x3, #0
	mov	x4, x25
	bl	_RegQueryValueExW
	cbz	x0, LBB0_16
; %bb.9:
	bl	_SetLastError
LBB0_10:
	mov	x0, x25
	bl	_CryptMemFree
	b	LBB0_12
LBB0_11:
	bl	_SetLastError
LBB0_12:
	cmp	x23, x21
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x23
	bl	_CryptMemFree
LBB0_14:
	ldr	w0, [sp, #28]
	bl	_RegCloseKey
LBB0_15:
	mov	x0, x20
	bl	_CryptMemFree
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_16:
	mov	x0, x25
	bl	_LoadLibraryW
	cbz	x0, LBB0_10
; %bb.17:
	mov	x26, x0
	mov	x1, x23
	bl	_GetProcAddress
	str	w0, [x24]
	cbz	w0, LBB0_21
; %bb.18:
	mov	w0, #24
	bl	_CryptMemAlloc
	cbz	x0, LBB0_20
; %bb.19:
	str	x26, [x0, #16]
	str	xzr, [x0]
	str	wzr, [x0, #8]
	str	x0, [x22]
Lloh19:
	adrp	x8, _TRUE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh21:
	ldr	w19, [x8]
	b	LBB0_10
LBB0_20:
	str	xzr, [x22]
LBB0_21:
	mov	x0, x26
	bl	_FreeLibrary
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_HKEY_LOCAL_MACHINE,4,2         ; @HKEY_LOCAL_MACHINE
	.comm	_KEY_READ,4,2                   ; @KEY_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FuncName"

	.comm	_ERROR_MORE_DATA,8,3            ; @ERROR_MORE_DATA
	.comm	_REG_SZ,8,3                     ; @REG_SZ
	.comm	_DllW,4,2                       ; @DllW
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_CRYPT_GetFuncFromReg
.subsections_via_symbols
